diff --git a/browser/account-transfers.module-WS265DLT.js b/browser/account-transfers.module-3HW2IDTS.js similarity index 99% rename from browser/account-transfers.module-WS265DLT.js rename to browser/account-transfers.module-3HW2IDTS.js index af10a2112..c77e56b06 100644 --- a/browser/account-transfers.module-WS265DLT.js +++ b/browser/account-transfers.module-3HW2IDTS.js @@ -1 +1 @@ -import{a as B}from"./chunk-SKSBMOXL.js";import{$a as he,$d as Pe,Bd as X,Cd as st,Da as P,Dc as Ee,Dd as we,De as Ne,Ea as N,Ee as qe,Fb as q,Fd as ct,G,Ga as w,Gd as Z,H as qt,Hd as Lt,Ia as x,Id as tt,Ja as h,Jd as mt,K as T,Kg as Ue,L as b,Ld as pt,M as S,Mc as V,Na as Dt,Nd as Oe,Oa as At,Oc as De,Od as dt,Pa as Mt,Pd as ut,Qa as M,Qd as ft,Qe as yt,Rc as xt,Sc as Y,Sd as Ct,Ua as r,Ud as Q,Va as c,Wa as u,Wc as J,Xa as g,Xc as I,Xd as _t,Ya as Ie,Yc as K,Zc as it,_ as se,_a as Te,_f as Ve,ab as xe,ad as Bt,ag as Re,bb as Rt,bd as Ae,bg as Le,ca as e,cd as nt,cg as He,dd as bt,de as vt,eb as U,ed as Me,fb as et,fd as at,hb as o,hc as H,hf as Ht,ib as l,id as rt,if as $t,ja as O,jb as kt,jf as Ut,ka as Vt,kc as ht,kd as ke,lc as W,ld as ot,lf as Gt,mf as jt,na as y,nc as ce,nd as Be,of as zt,pb as be,pd as St,pf as Qt,pg as $e,qb as Se,qd as Fe,ra as _,rc as j,rd as R,rf as Wt,sa as v,sd as $,sf as Yt,ta as E,ua as D,uf as Jt,va as A,vd as z,wa as d,xa as n,xd as lt,xf as Ft,ya as i,za as C,zb as ye}from"./chunk-AA5NALQN.js";import{a as Pt,b as Nt}from"./chunk-PHUH23IY.js";var Qe=()=>["../","edit"],We=()=>["../","list-account-transactions"];function Ye(t,m){t&1&&(n(0,"button",1),r(1),o(2,"translate"),i()),t&2&&(d("routerLink",U(4,We)),e(),u(" ",l(2,2,"labels.buttons.View Transactions History")," "))}function Je(t,m){t&1&&(n(0,"span"),r(1),o(2,"translate"),i()),t&2&&(e(),u(" ",l(2,1,"labels.inputs.Within Bank")," "))}function Ke(t,m){t&1&&(n(0,"span"),r(1),o(2,"translate"),i()),t&2&&(e(),u(" ",l(2,1,"labels.inputs.Own Account")," "))}var Xt=(()=>{class t{constructor(){this.route=T(H),this.allowclientedit=!1,this.route.data.subscribe(a=>{this.standingInstructionsData=a.standingInstructionsData,this.standingInstructionsData.fromClient.id===this.standingInstructionsData.toClient.id&&(this.allowclientedit=!1)})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-standing-instructions"]],decls:125,vars:90,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-fill"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"]],template:function(p,s){p&1&&(n(0,"div",0)(1,"button",1),C(2,"fa-icon",2),r(3),o(4,"translate"),i(),y(5,Ye,3,5,"button",3),i(),n(6,"div",4)(7,"mat-card")(8,"mat-card-content")(9,"div",5)(10,"h2",6),r(11),i(),C(12,"mat-divider",7),n(13,"div",8)(14,"span",9),r(15),o(16,"translate"),i(),n(17,"span",10),r(18),i()(),n(19,"div",8)(20,"span",9),r(21),o(22,"translate"),i(),n(23,"span",10),r(24),i()(),n(25,"div",8)(26,"span",9),r(27),o(28,"translate"),i(),n(29,"span",10),r(30),i()(),n(31,"div",8)(32,"span",9),r(33),o(34,"translate"),i(),n(35,"span",10),r(36),i()(),n(37,"div",8)(38,"span",9),r(39),o(40,"translate"),i(),n(41,"span",10),r(42),i()(),n(43,"div",8)(44,"span",9),r(45),o(46,"translate"),i(),n(47,"span",10),r(48),i()(),n(49,"div",8)(50,"span",9),r(51),o(52,"translate"),i(),n(53,"span",10),_(54,Je,3,3,"span"),_(55,Ke,3,3,"span"),i()(),n(56,"div",8)(57,"span",9),r(58),o(59,"translate"),i(),n(60,"span",10),r(61),i()(),n(62,"div",8)(63,"span",9),r(64),o(65,"translate"),i(),n(66,"span",10),r(67),i()(),n(68,"div",8)(69,"span",9),r(70),o(71,"translate"),i(),n(72,"span",10),r(73),i()(),n(74,"div",8)(75,"span",9),r(76),o(77,"translate"),i(),n(78,"span",10),r(79),i()(),n(80,"div",8)(81,"span",9),r(82),o(83,"translate"),i(),n(84,"span",10),r(85),i()(),n(86,"div",8)(87,"span",9),r(88),o(89,"translate"),i(),n(90,"span",10),r(91),i()(),n(92,"div",8)(93,"span",9),r(94),o(95,"translate"),i(),n(96,"span",10),r(97),o(98,"dateFormat"),o(99,"dateFormat"),i()(),n(100,"div",8)(101,"span",9),r(102),o(103,"translate"),i(),n(104,"span",10),r(105),i()(),n(106,"div",8)(107,"span",9),r(108),o(109,"translate"),i(),n(110,"span",10),r(111),i()(),n(112,"div",8)(113,"span",9),r(114),o(115,"translate"),i(),n(116,"span",10),r(117),i()(),n(118,"div",8)(119,"span",9),r(120),o(121,"translate"),i(),n(122,"span",10),r(123),o(124,"dateFormat"),i()()()()()()),p&2&&(e(),d("routerLink",U(89,Qe)),e(2),u(" ",l(4,45,"labels.buttons.Edit")," "),e(2),d("mifosxHasPermission","READ_ACCOUNTTRANSFER"),e(6),c(s.standingInstructionsData.name),e(),d("inset",!0),e(3),u("",l(16,47,"labels.inputs.Applicant"),":"),e(3),c(s.standingInstructionsData.fromClient.displayName),e(3),u("",l(22,49,"labels.inputs.Type"),":"),e(3),c(s.standingInstructionsData.transferType.value),e(3),u("",l(28,51,"labels.inputs.Priority"),":"),e(3),c(s.standingInstructionsData.priority.value),e(3),u("",l(34,53,"labels.inputs.Status"),":"),e(3),c(s.standingInstructionsData.status.value),e(3),u("",l(40,55,"labels.inputs.From Account Type"),":"),e(3),c(s.standingInstructionsData.fromAccountType.value),e(3),u("",l(46,57,"labels.inputs.From Account"),":"),e(3),g("",s.standingInstructionsData.fromAccount.productName," - ",s.standingInstructionsData.fromAccount.accountNo),e(3),u("",l(52,59,"labels.inputs.Destination"),":"),e(3),v(s.allowclientedit?54:-1),e(),v(s.allowclientedit?-1:55),e(3),u("",l(59,61,"labels.inputs.To Office"),":"),e(3),c(s.standingInstructionsData.toOffice.name),e(3),u("",l(65,63,"labels.inputs.Beneficiary"),":"),e(3),c(s.standingInstructionsData.toClient.displayName),e(3),u("",l(71,65,"labels.inputs.To Account Type"),":"),e(3),c(s.standingInstructionsData.toAccountType.value),e(3),u("",l(77,67,"labels.inputs.To Account"),":"),e(3),g("",s.standingInstructionsData.toAccount.productName," - ",s.standingInstructionsData.toAccount.accountNo),e(3),u("",l(83,69,"labels.inputs.Standing Instruction Type"),":"),e(3),c(s.standingInstructionsData.instructionType.value),e(3),u("",l(89,71,"labels.inputs.Amount"),":"),e(3),c(s.standingInstructionsData.amount),e(3),u("",l(95,73,"labels.inputs.Validity"),":"),e(3),g("",l(98,75,s.standingInstructionsData.validFrom)," - ",l(99,77,s.standingInstructionsData.validTill)),e(5),u("",l(103,79,"labels.inputs.Recurrence Type"),":"),e(3),c(s.standingInstructionsData.recurrenceType.value),e(3),u("",l(109,81,"labels.inputs.Interval"),":"),e(3),c(s.standingInstructionsData.recurrenceInterval),e(3),u("",l(115,83,"labels.inputs.Recurrence Frequency"),":"),e(3),c(s.standingInstructionsData.recurrenceFrequency.value),e(3),u("",l(121,85,"labels.inputs.On Month Day"),":"),e(3),c(l(124,87,s.standingInstructionsData.recurrenceOnMonthDay)))},dependencies:[q,R,W,$,z,j,Q,_t,vt,Ct,V],styles:[".mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 1em}"]})}}return t})();var Xe=()=>["../view"];function Ze(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ti(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Priority")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ei(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ii(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Status")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ni(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ai(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid From Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ri(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid Till Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function oi(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function li(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function si(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ci(t,m){if(t&1){let a=w();n(0,"button",33),x("click",function(){b(a);let s=h();return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h();d("disabled",!a.editStandingInstructionsForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}var ee=(()=>{class t{constructor(){this.formBuilder=T(St),this.route=T(H),this.router=T(ht),this.accountTransfersService=T(B),this.settingsService=T(Y),this.dateUtils=T(xt),this.allowclientedit=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.route.data.subscribe(a=>{this.standingInstructionsData=a.standingInstructionsDataAndTemplate,this.standingInstructionsId=a.standingInstructionsDataAndTemplate.id,this.standingInstructionsData.fromClient.id===this.standingInstructionsData.toClient.id&&(this.allowclientedit=!1),this.setOptions()})}ngOnInit(){this.createEditStandingInstructionsForm();let p=new Date().getFullYear();this.standingInstructionsData.recurrenceOnMonthDay&&this.standingInstructionsData.recurrenceOnMonthDay.push(p),this.editStandingInstructionsForm.patchValue({name:this.standingInstructionsData.name,applicant:this.standingInstructionsData.fromClient.displayName,type:this.standingInstructionsData.transferType.value,priority:this.standingInstructionsData.priority.id,status:this.standingInstructionsData.status.id,fromAccountType:this.standingInstructionsData.fromAccountType.value,fromAccount:this.standingInstructionsData.fromAccount.productName,destination:this.allowclientedit?"Within Bank":"Own Account",toOffice:this.standingInstructionsData.toOffice.name,toClientId:this.standingInstructionsData.toClient.displayName,toAccountType:this.standingInstructionsData.toAccountType.value,toAccount:this.standingInstructionsData.toAccount.productName,instructionType:this.standingInstructionsData.instructionType.id,amount:this.standingInstructionsData.amount,validFrom:this.standingInstructionsData.validFrom&&new Date(this.standingInstructionsData.validFrom),validTill:this.standingInstructionsData.validTill&&new Date(this.standingInstructionsData.validTill),recurrenceType:this.standingInstructionsData.recurrenceType.id,recurrenceInterval:this.standingInstructionsData.recurrenceInterval,recurrenceFrequency:this.standingInstructionsData.recurrenceFrequency.id,recurrenceOnMonthDay:this.standingInstructionsData.recurrenceOnMonthDay&&new Date(this.standingInstructionsData.recurrenceOnMonthDay)})}createEditStandingInstructionsForm(){this.editStandingInstructionsForm=this.formBuilder.group({name:[{value:"",disabled:!0}],applicant:[{value:"",disabled:!0}],type:[{value:"",disabled:!0}],priority:["",I.required],status:["",I.required],fromAccountType:[{value:"",disabled:!0}],fromAccount:[{value:"",disabled:!0}],destination:[{value:"",disabled:!0}],toOffice:[{value:"",disabled:!0}],toClientId:[{value:"",disabled:!0}],toAccountType:[{value:"",disabled:!0}],toAccount:[{value:"",disabled:!0}],instructionType:"",amount:"",validFrom:["",I.required],validTill:["",I.required],recurrenceType:["",I.required],recurrenceInterval:"",recurrenceFrequency:"",recurrenceOnMonthDay:""})}setOptions(){this.priorityTypeData=this.standingInstructionsData.priorityOptions,this.statusTypeData=this.standingInstructionsData.statusOptions,this.instructionTypeData=this.standingInstructionsData.instructionTypeOptions,this.recurrenceTypeData=this.standingInstructionsData.recurrenceTypeOptions,this.recurrenceFrequencyTypeData=this.standingInstructionsData.recurrenceFrequencyOptions}submit(){let a=this.settingsService.dateFormat,p=this.settingsService.language.code,s={amount:this.editStandingInstructionsForm.value.amount,dateFormat:a,instructionType:this.editStandingInstructionsForm.value.instructionType,locale:p,monthDayFormat:"dd MMMM",priority:this.editStandingInstructionsForm.value.priority,recurrenceFrequency:this.editStandingInstructionsForm.value.recurrenceFrequency,recurrenceInterval:this.editStandingInstructionsForm.value.recurrenceInterval,recurrenceOnMonthDay:this.dateUtils.formatDate(this.editStandingInstructionsForm.value.recurrenceOnMonthDay,"dd MMMM"),recurrenceType:this.editStandingInstructionsForm.value.recurrenceType,status:this.editStandingInstructionsForm.value.status,validFrom:this.dateUtils.formatDate(this.editStandingInstructionsForm.value.validFrom,a),validTill:this.dateUtils.formatDate(this.editStandingInstructionsForm.value.validTill,a)};this.accountTransfersService.updateStandingInstructionsData(this.standingInstructionsId,s).subscribe(f=>{this.router.navigate(["../view"],{relativeTo:this.route})})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-standing-instructions"]],decls:134,vars:84,consts:[["validFromDatePicker",""],["validTillDatePicker",""],["recurrenceOnMonthDayDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name"],["matInput","","formControlName","applicant"],["matInput","","formControlName","type"],["matInput","","formControlName","fromAccountType"],["required","","formControlName","priority"],[3,"value"],["required","","formControlName","status"],["matInput","","formControlName","fromAccount"],["matInput","","formControlName","destination"],["matInput","","formControlName","toOffice"],["matInput","","formControlName","toClientId"],["matInput","","formControlName","toAccountType"],["matInput","","formControlName","toAccount"],["formControlName","instructionType"],["matInput","","formControlName","amount"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","validFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","validTill",3,"min","max","matDatepicker"],["required","","formControlName","recurrenceType"],["matInput","","formControlName","recurrenceInterval"],["formControlName","recurrenceFrequency"],["matInput","","formControlName","recurrenceOnMonthDay",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(p,s){if(p&1){let f=w();n(0,"div",3)(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"mat-form-field",6)(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",7),i(),n(10,"mat-form-field",6)(11,"mat-label"),r(12),o(13,"translate"),i(),C(14,"input",8),i(),n(15,"mat-form-field",6)(16,"mat-label"),r(17),o(18,"translate"),i(),C(19,"input",9),i(),n(20,"mat-form-field",6)(21,"mat-label"),r(22),o(23,"translate"),i(),C(24,"input",10),i(),n(25,"mat-form-field",6)(26,"mat-label"),r(27),o(28,"translate"),i(),n(29,"mat-select",11),D(30,Ze,2,2,"mat-option",12,E),i(),_(32,ti,7,9,"mat-error"),i(),n(33,"mat-form-field",6)(34,"mat-label"),r(35),o(36,"translate"),i(),n(37,"mat-select",13),D(38,ei,2,2,"mat-option",12,E),i(),_(40,ii,7,9,"mat-error"),i(),n(41,"mat-form-field",6)(42,"mat-label"),r(43),o(44,"translate"),i(),C(45,"input",14),i(),n(46,"mat-form-field",6)(47,"mat-label"),r(48),o(49,"translate"),i(),C(50,"input",15),i(),n(51,"mat-form-field",6)(52,"mat-label"),r(53),o(54,"translate"),i(),C(55,"input",16),i(),n(56,"mat-form-field",6)(57,"mat-label"),r(58),o(59,"translate"),i(),C(60,"input",17),i(),n(61,"mat-form-field",6)(62,"mat-label"),r(63),o(64,"translate"),i(),C(65,"input",18),i(),n(66,"mat-form-field",6)(67,"mat-label"),r(68),o(69,"translate"),i(),C(70,"input",19),i(),n(71,"mat-form-field",6)(72,"mat-label"),r(73),o(74,"translate"),i(),n(75,"mat-select",20),D(76,ni,2,2,"mat-option",12,E),i()(),n(78,"mat-form-field",6)(79,"mat-label"),r(80),o(81,"translate"),i(),C(82,"input",21),i(),n(83,"mat-form-field",22),x("click",function(){b(f);let F=M(90);return S(F.open())}),n(84,"mat-label"),r(85),o(86,"translate"),i(),C(87,"input",23)(88,"mat-datepicker-toggle",24)(89,"mat-datepicker",null,0),_(91,ai,7,9,"mat-error"),i(),n(92,"mat-form-field",22),x("click",function(){b(f);let F=M(99);return S(F.open())}),n(93,"mat-label"),r(94),o(95,"translate"),i(),C(96,"input",25)(97,"mat-datepicker-toggle",24)(98,"mat-datepicker",null,1),_(100,ri,7,9,"mat-error"),i(),n(101,"mat-form-field",6)(102,"mat-label"),r(103),o(104,"translate"),i(),n(105,"mat-select",26),D(106,oi,2,2,"mat-option",12,E),i(),_(108,li,7,9,"mat-error"),i(),n(109,"mat-form-field",6)(110,"mat-label"),r(111),o(112,"translate"),i(),C(113,"input",27),i(),n(114,"mat-form-field",6)(115,"mat-label"),r(116),o(117,"translate"),i(),n(118,"mat-select",28),D(119,si,2,2,"mat-option",12,E),i()(),n(121,"mat-form-field",22),x("click",function(){b(f);let F=M(128);return S(F.open())}),n(122,"mat-label"),r(123),o(124,"translate"),i(),C(125,"input",29)(126,"mat-datepicker-toggle",24)(127,"mat-datepicker",null,2),i()()(),n(129,"mat-card-actions",30)(130,"button",31),r(131),o(132,"translate"),i(),y(133,ci,3,4,"button",32),i()()()()}if(p&2){let f=M(90),k=M(99),F=M(128);e(2),d("formGroup",s.editStandingInstructionsForm),e(5),c(l(8,41,"labels.inputs.name")),e(5),c(l(13,43,"labels.inputs.Applicant")),e(5),c(l(18,45,"labels.inputs.Type")),e(5),c(l(23,47,"labels.inputs.From Account Type")),e(5),c(l(28,49,"labels.inputs.Priority")),e(3),A(s.priorityTypeData),e(2),v(s.editStandingInstructionsForm.controls.priority.hasError("required")?32:-1),e(3),c(l(36,51,"labels.inputs.Status")),e(3),A(s.statusTypeData),e(2),v(s.editStandingInstructionsForm.controls.status.hasError("required")?40:-1),e(3),c(l(44,53,"labels.inputs.From Account")),e(5),c(l(49,55,"labels.inputs.Destination")),e(5),c(l(54,57,"labels.inputs.To Office")),e(5),c(l(59,59,"labels.inputs.Beneficiary")),e(5),c(l(64,61,"labels.inputs.To Account Type")),e(5),c(l(69,63,"labels.inputs.To Account")),e(5),c(l(74,65,"labels.inputs.Standing Instruction Type")),e(3),A(s.instructionTypeData),e(4),c(l(81,67,"labels.inputs.Amount")),e(5),c(l(86,69,"labels.inputs.Validity from")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",f),e(),d("for",f),e(3),v(s.editStandingInstructionsForm.controls.validFrom.hasError("required")?91:-1),e(3),c(l(95,71,"labels.inputs.Validity To")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",k),e(),d("for",k),e(3),v(s.editStandingInstructionsForm.controls.validTill.hasError("required")?100:-1),e(3),c(l(104,73,"labels.inputs.Recurrence Type")),e(3),A(s.recurrenceTypeData),e(2),v(s.editStandingInstructionsForm.controls.recurrenceType.hasError("required")?108:-1),e(3),c(l(112,75,"labels.inputs.Interval")),e(5),c(l(117,77,"labels.inputs.Recurrence Frequency")),e(3),A(s.recurrenceFrequencyTypeData),e(4),c(l(124,79,"labels.inputs.On Month Day")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",F),e(),d("for",F),e(4),d("routerLink",U(83,Xe)),e(),u(" ",l(132,81,"labels.buttons.Cancel")," "),e(2),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION")}},dependencies:[q,R,nt,J,K,it,ot,at,rt,W,$,z,lt,Z,X,st,ct,tt,pt,mt,ut,ft,dt,j,Q,V],encapsulation:2})}}return t})();var mi=()=>["../"];function pi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.name")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.inputs.required")))}function di(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ui(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.inputs.required")))}function fi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Ci(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Priority")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function _i(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function vi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Status")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function gi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Ii(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.From Account Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ti(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),g(" ",a.productName," - ",a.accountNo," ")}}function hi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.From Account")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function xi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function bi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Destination")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Si(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.name," ")}}function yi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.To Office")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ei(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.displayName," ")}}function Di(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Beneficiary")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ai(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Mi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.To Account Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ki(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),g(" ",a.productName," - ",a.accountNo," ")}}function Bi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.To Account")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Fi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function wi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Standing Instruction Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Oi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Pi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid From Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ni(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid Till Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function qi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Vi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ri(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Interval")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Li(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Hi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Frequency")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function $i(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.On Month Day")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ui(t,m){if(t&1){let a=w();n(0,"button",33),x("click",function(){b(a);let s=h();return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h();d("disabled",!a.createStandingInstructionsForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}var ie=(()=>{class t{constructor(){this.formBuilder=T(St),this.route=T(H),this.router=T(ht),this.accountTransfersService=T(B),this.settingsService=T(Y),this.dateUtils=T(xt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.allowclientedit=!0,this.route.data.subscribe(a=>{this.standingIntructionsTemplate=a.standingIntructionsTemplate,this.setParams(),this.setOptions()})}setParams(){switch(this.officeId=this.route.snapshot.queryParams.officeId,this.accountType=this.route.snapshot.queryParams.accountType,this.clientId=this.route.parent.snapshot.params.clientId,this.accountType){case"fromloans":this.accountTypeId="1";break;case"fromsavings":this.accountTypeId="2";break;default:this.accountTypeId="0"}}ngOnInit(){this.createCreateStandingInstructionsForm(),this.buildDependencies(),this.createStandingInstructionsForm.patchValue({applicant:this.standingIntructionsTemplate.fromClient.displayName})}createCreateStandingInstructionsForm(){this.createStandingInstructionsForm=this.formBuilder.group({name:["",I.required],applicant:[{value:"",disabled:!0}],transferType:["",I.required],priority:["",I.required],status:["",I.required],fromAccountType:["",I.required],fromAccountId:["",I.required],destination:["",I.required],toOfficeId:["",I.required],toClientId:["",I.required],toAccountType:["",I.required],toAccountId:["",I.required],instructionType:["",I.required],amount:["",I.required],validFrom:["",I.required],validTill:["",I.required],recurrenceType:["",I.required],recurrenceInterval:["",I.required],recurrenceFrequency:["",I.required],recurrenceOnMonthDay:["",I.required]})}setOptions(){this.transferTypeData=this.standingIntructionsTemplate.transferTypeOptions,this.priorityTypeData=this.standingIntructionsTemplate.priorityOptions,this.statusTypeData=this.standingIntructionsTemplate.statusOptions,this.fromAccountTypeData=this.standingIntructionsTemplate.fromAccountTypeOptions,this.fromAccountData=this.standingIntructionsTemplate.fromAccountOptions,this.destinationTypeData=[{id:1,value:"own account"},{id:2,value:"with in bank"}],this.toOfficeTypeData=this.standingIntructionsTemplate.toOfficeOptions,this.toClientTypeData=this.standingIntructionsTemplate.toClientOptions,this.toAccountTypeData=this.standingIntructionsTemplate.toAccountTypeOptions,this.toAccountData=this.standingIntructionsTemplate.toAccountOptions,this.instructionTypeData=this.standingIntructionsTemplate.instructionTypeOptions,this.recurrenceTypeData=this.standingIntructionsTemplate.recurrenceTypeOptions,this.recurrenceFrequencyTypeData=this.standingIntructionsTemplate.recurrenceFrequencyOptions}buildDependencies(){this.createStandingInstructionsForm.get("destination").valueChanges.subscribe(a=>{a===1?(this.allowclientedit=!1,this.createStandingInstructionsForm.patchValue({toOfficeId:this.officeId,toClientId:this.clientId}),this.ToOfficeId=!0,this.ToClientId=!0,this.changeEvent()):(this.allowclientedit=!0,this.createStandingInstructionsForm.patchValue({toOfficeId:"",toClientId:""}),this.createStandingInstructionsForm.controls.toOfficeId.enable(),this.createStandingInstructionsForm.controls.toClientId.enable())})}changeEvent(){let a=this.refineObject(this.createStandingInstructionsForm.value);this.accountTransfersService.getStandingInstructionsTemplate(this.clientId,this.officeId,this.accountTypeId,a).subscribe(p=>{this.standingIntructionsTemplate=p,this.setOptions()})}refineObject(a){let p=Object.getOwnPropertyNames(a);for(let s=0;s{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-create-standing-instructions"]],decls:164,vars:100,consts:[["validFromDatePicker",""],["validTillDatePicker",""],["recurrenceOnMonthDayDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["matInput","","formControlName","applicant"],["required","","formControlName","transferType",3,"selectionChange"],[3,"value"],["required","","formControlName","priority"],["required","","formControlName","status"],["required","","formControlName","fromAccountType",3,"selectionChange"],["required","","formControlName","fromAccountId",3,"selectionChange"],["required","","formControlName","destination"],["required","","formControlName","toOfficeId",3,"selectionChange","disabled"],["required","","formControlName","toClientId",3,"selectionChange","disabled"],["required","","formControlName","toAccountType",3,"selectionChange"],["required","","formControlName","toAccountId",3,"selectionChange"],["formControlName","instructionType"],["type","number","matInput","","required","","formControlName","amount"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","validFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","validTill",3,"min","max","matDatepicker"],["required","","formControlName","recurrenceType"],["type","number","matInput","","required","","formControlName","recurrenceInterval"],["required","","formControlName","recurrenceFrequency"],["required","","matInput","","formControlName","recurrenceOnMonthDay",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(p,s){if(p&1){let f=w();n(0,"div",3)(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"mat-form-field",6)(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",7),_(10,pi,7,9,"mat-error"),i(),n(11,"mat-form-field",6)(12,"mat-label"),r(13),o(14,"translate"),i(),C(15,"input",8),i(),n(16,"mat-form-field",6)(17,"mat-label"),r(18),o(19,"translate"),i(),n(20,"mat-select",9),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(21,di,2,2,"mat-option",10,E),i(),_(23,ui,7,9,"mat-error"),i(),n(24,"mat-form-field",6)(25,"mat-label"),r(26),o(27,"translate"),i(),n(28,"mat-select",11),D(29,fi,2,2,"mat-option",10,E),i(),_(31,Ci,7,9,"mat-error"),i(),n(32,"mat-form-field",6)(33,"mat-label"),r(34),o(35,"translate"),i(),n(36,"mat-select",12),D(37,_i,2,2,"mat-option",10,E),i(),_(39,vi,7,9,"mat-error"),i(),n(40,"mat-form-field",6)(41,"mat-label"),r(42),o(43,"translate"),i(),n(44,"mat-select",13),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(45,gi,2,2,"mat-option",10,E),i(),_(47,Ii,7,9,"mat-error"),i(),n(48,"mat-form-field",6)(49,"mat-label"),r(50),o(51,"translate"),i(),n(52,"mat-select",14),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(53,Ti,2,3,"mat-option",10,E),i(),_(55,hi,7,9,"mat-error"),i(),n(56,"mat-form-field",6)(57,"mat-label"),r(58),o(59,"translate"),i(),n(60,"mat-select",15),D(61,xi,2,2,"mat-option",10,E),i(),_(63,bi,7,9,"mat-error"),i(),n(64,"mat-form-field",6)(65,"mat-label"),r(66),o(67,"translate"),i(),n(68,"mat-select",16),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(69,Si,2,2,"mat-option",10,E),i(),_(71,yi,7,9,"mat-error"),i(),n(72,"mat-form-field",6)(73,"mat-label"),r(74),o(75,"translate"),i(),n(76,"mat-select",17),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(77,Ei,2,2,"mat-option",10,E),i(),_(79,Di,7,9,"mat-error"),i(),n(80,"mat-form-field",6)(81,"mat-label"),r(82),o(83,"translate"),i(),n(84,"mat-select",18),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(85,Ai,2,2,"mat-option",10,E),i(),_(87,Mi,7,9,"mat-error"),i(),n(88,"mat-form-field",6)(89,"mat-label"),r(90),o(91,"translate"),i(),n(92,"mat-select",19),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(93,ki,2,3,"mat-option",10,E),i(),_(95,Bi,7,9,"mat-error"),i(),n(96,"mat-form-field",6)(97,"mat-label"),r(98),o(99,"translate"),i(),n(100,"mat-select",20),D(101,Fi,2,2,"mat-option",10,E),i(),_(103,wi,7,9,"mat-error"),i(),n(104,"mat-form-field",6)(105,"mat-label"),r(106),o(107,"translate"),i(),C(108,"input",21),_(109,Oi,7,9,"mat-error"),i(),n(110,"mat-form-field",22),x("click",function(){b(f);let F=M(117);return S(F.open())}),n(111,"mat-label"),r(112),o(113,"translate"),i(),C(114,"input",23)(115,"mat-datepicker-toggle",24)(116,"mat-datepicker",null,0),_(118,Pi,7,9,"mat-error"),i(),n(119,"mat-form-field",22),x("click",function(){b(f);let F=M(126);return S(F.open())}),n(120,"mat-label"),r(121),o(122,"translate"),i(),C(123,"input",25)(124,"mat-datepicker-toggle",24)(125,"mat-datepicker",null,1),_(127,Ni,7,9,"mat-error"),i(),n(128,"mat-form-field",6)(129,"mat-label"),r(130),o(131,"translate"),i(),n(132,"mat-select",26),D(133,qi,2,2,"mat-option",10,E),i(),_(135,Vi,7,9,"mat-error"),i(),n(136,"mat-form-field",6)(137,"mat-label"),r(138),o(139,"translate"),i(),C(140,"input",27),_(141,Ri,7,9,"mat-error"),i(),n(142,"mat-form-field",6)(143,"mat-label"),r(144),o(145,"translate"),i(),n(146,"mat-select",28),D(147,Li,2,2,"mat-option",10,E),i(),_(149,Hi,7,9,"mat-error"),i(),n(150,"mat-form-field",22),x("click",function(){b(f);let F=M(157);return S(F.open())}),n(151,"mat-label"),r(152),o(153,"translate"),i(),C(154,"input",29)(155,"mat-datepicker-toggle",24)(156,"mat-datepicker",null,2),_(158,$i,7,9,"mat-error"),i()()(),n(159,"mat-card-actions",30)(160,"button",31),r(161),o(162,"translate"),i(),y(163,Ui,3,4,"button",32),i()()()()}if(p&2){let f=M(117),k=M(126),F=M(157);e(2),d("formGroup",s.createStandingInstructionsForm),e(5),c(l(8,57,"labels.inputs.name")),e(3),v(s.createStandingInstructionsForm.controls.name.hasError("required")?10:-1),e(3),c(l(14,59,"labels.inputs.Applicant")),e(5),c(l(19,61,"labels.inputs.Type")),e(3),A(s.transferTypeData),e(2),v(s.createStandingInstructionsForm.controls.transferType.hasError("required")?23:-1),e(3),c(l(27,63,"labels.inputs.Priority")),e(3),A(s.priorityTypeData),e(2),v(s.createStandingInstructionsForm.controls.priority.hasError("required")?31:-1),e(3),c(l(35,65,"labels.inputs.Status")),e(3),A(s.statusTypeData),e(2),v(s.createStandingInstructionsForm.controls.status.hasError("required")?39:-1),e(3),c(l(43,67,"labels.inputs.From Account Type")),e(3),A(s.fromAccountTypeData),e(2),v(s.createStandingInstructionsForm.controls.fromAccountType.hasError("required")?47:-1),e(3),c(l(51,69,"labels.inputs.From Account")),e(3),A(s.fromAccountData),e(2),v(s.createStandingInstructionsForm.controls.fromAccountId.hasError("required")?55:-1),e(3),c(l(59,71,"labels.inputs.Destination")),e(3),A(s.destinationTypeData),e(2),v(s.createStandingInstructionsForm.controls.destination.hasError("required")?63:-1),e(3),c(l(67,73,"labels.inputs.To Office")),e(2),d("disabled",s.ToOfficeId),e(),A(s.toOfficeTypeData),e(2),v(s.createStandingInstructionsForm.controls.toOfficeId.hasError("required")?71:-1),e(3),c(l(75,75,"labels.inputs.Beneficiary")),e(2),d("disabled",s.ToClientId),e(),A(s.toClientTypeData),e(2),v(s.createStandingInstructionsForm.controls.toClientId.hasError("required")?79:-1),e(3),c(l(83,77,"labels.inputs.To Account Type")),e(3),A(s.toAccountTypeData),e(2),v(s.createStandingInstructionsForm.controls.toAccountType.hasError("required")?87:-1),e(3),c(l(91,79,"labels.inputs.To Account")),e(3),A(s.toAccountData),e(2),v(s.createStandingInstructionsForm.controls.toAccountId.hasError("required")?95:-1),e(3),c(l(99,81,"labels.inputs.Standing Instruction Type")),e(3),A(s.instructionTypeData),e(2),v(s.createStandingInstructionsForm.controls.instructionType.hasError("required")?103:-1),e(3),c(l(107,83,"labels.inputs.Amount")),e(3),v(s.createStandingInstructionsForm.controls.amount.hasError("required")?109:-1),e(3),c(l(113,85,"labels.inputs.Validity from")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",f),e(),d("for",f),e(3),v(s.createStandingInstructionsForm.controls.validFrom.hasError("required")?118:-1),e(3),c(l(122,87,"labels.inputs.Validity To")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",k),e(),d("for",k),e(3),v(s.createStandingInstructionsForm.controls.validTill.hasError("required")?127:-1),e(3),c(l(131,89,"labels.inputs.Recurrence Type")),e(3),A(s.recurrenceTypeData),e(2),v(s.createStandingInstructionsForm.controls.recurrenceType.hasError("required")?135:-1),e(3),c(l(139,91,"labels.inputs.Interval")),e(3),v(s.createStandingInstructionsForm.controls.recurrenceInterval.hasError("required")?141:-1),e(3),c(l(145,93,"labels.inputs.Recurrence Frequency")),e(3),A(s.recurrenceFrequencyTypeData),e(2),v(s.createStandingInstructionsForm.controls.recurrenceFrequency.hasError("required")?149:-1),e(3),c(l(153,95,"labels.inputs.On Month Day")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",F),e(),d("for",F),e(3),v(s.createStandingInstructionsForm.controls.recurrenceOnMonthDay.hasError("required")?158:-1),e(2),d("routerLink",U(99,mi)),e(),u(" ",l(162,97,"labels.buttons.Cancel")," "),e(2),d("mifosxHasPermission","CREATE_STANDINGINSTRUCTION")}},dependencies:[q,R,nt,J,bt,K,it,ot,at,rt,W,$,z,lt,Z,X,st,ct,tt,pt,mt,ut,ft,dt,j,Q,V],encapsulation:2})}}return t})();var Ge=t=>({balance:t}),Gi=()=>["../.."];function ji(t,m){t&1&&(n(0,"div",4),C(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9),i())}function zi(t,m){if(t&1){let a=w();P(0),n(1,"button",23),x("click",function(){b(a);let s=h(4);return S(s.searchAccountByNumber())}),r(2),o(3,"translate"),i(),N()}if(t&2){let a=h(4);e(),d("disabled",a.phoneAccount.length!==10),e(),u(" ",l(3,2,"labels.buttons.Search")," ")}}function Qi(t,m){t&1&&(n(0,"mat-card-actions",17),y(1,zi,4,4,"ng-container",22),i()),t&2&&(e(),d("mifosxHasPermission","CREATE_ACCOUNTTRANSFER"))}function Wi(t,m){if(t&1){let a=w();n(0,"div",10)(1,"div",18)(2,"h3",11),r(3),o(4,"translate"),i(),n(5,"mat-form-field",19)(6,"mat-label"),r(7),o(8,"translate"),i(),n(9,"input",20,0),xe("ngModelChange",function(s){b(a);let f=h(2);return he(f.phoneAccount,s)||(f.phoneAccount=s),S(s)}),i(),n(11,"mat-hint",21),r(12),i()()(),_(13,Qi,2,1,"mat-card-actions",17),i()}if(t&2){let a=h(2);e(3),c(l(4,6,"labels.heading.Transferred To")),e(4),c(l(8,8,"labels.inputs.Phone Number")),e(2),d("readonly",a.interbankTransferForm),Te("ngModel",a.phoneAccount),e(3),u("",a.phoneAccount.length||0,"/10"),e(),v(a.interbankTransferForm?-1:13)}}function Yi(t,m){t&1&&C(0,"mat-divider")}function Ji(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ki(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.name," ")}}function Xi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Office")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Zi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Client")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function tn(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a),e(),g(" ",a.id," - ",a.displayName," ")}}function en(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function nn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Account Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function an(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),g(" ",a.productName," - ",a.accountNo," ")}}function rn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Account")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function on(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ln(t,m){if(t&1&&(n(0,"mat-error"),C(1,"fa-icon",38),r(2),o(3,"translate"),i()),t&2){let a=h(3);e(2),u(" ",kt(3,1,"errors.validation.msg.savingsproduct.insufficient.balance",et(4,Ge,a.balance))," ")}}function sn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Description")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function cn(t,m){if(t&1){let a=w();n(0,"form",16)(1,"h3",11),r(2),o(3,"translate"),i(),n(4,"div",24)(5,"mat-form-field",25),x("click",function(){b(a);let s=M(12);return S(s.open())}),n(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",26)(10,"mat-datepicker-toggle",27)(11,"mat-datepicker",null,1),_(13,Ji,7,9,"mat-error"),i(),n(14,"mat-form-field",28)(15,"mat-label"),r(16),o(17,"translate"),i(),n(18,"mat-select",29),x("selectionChange",function(){b(a);let s=h(2);return S(s.changeEvent())}),D(19,Ki,2,2,"mat-option",30,E),i(),_(21,Xi,7,9,"mat-error"),i(),n(22,"mat-form-field",28)(23,"mat-label"),r(24),o(25,"translate"),i(),C(26,"input",31),_(27,Zi,7,9,"mat-error"),i(),n(28,"mat-autocomplete",32,2),D(30,tn,2,3,"mat-option",30,E),i(),n(32,"mat-form-field",28)(33,"mat-label"),r(34),o(35,"translate"),i(),n(36,"mat-select",33),x("selectionChange",function(){b(a);let s=h(2);return S(s.changeEvent())}),D(37,en,2,2,"mat-option",30,E),i(),_(39,nn,7,9,"mat-error"),i(),n(40,"mat-form-field",28)(41,"mat-label"),r(42),o(43,"translate"),i(),n(44,"mat-select",34),x("selectionChange",function(){b(a);let s=h(2);return S(s.changeEvent())}),D(45,an,2,3,"mat-option",30,E),i(),_(47,rn,7,9,"mat-error"),i(),n(48,"mat-form-field",28)(49,"mat-label"),r(50),o(51,"translate"),i(),C(52,"input",35),_(53,on,7,9,"mat-error"),_(54,ln,4,6,"mat-error"),i(),n(55,"mat-form-field",36)(56,"mat-label"),r(57),o(58,"translate"),i(),C(59,"textarea",37),_(60,sn,7,9,"mat-error"),i()()()}if(t&2){let a,p=M(12),s=M(29),f=h(2);d("formGroup",f.makeAccountTransferForm),e(2),c(l(3,23,"labels.heading.Transfer Details")),e(5),c(l(8,25,"labels.inputs.Transaction Date")),e(2),d("min",f.minDate)("max",f.maxDate)("matDatepicker",p),e(),d("for",p),e(3),v(f.makeAccountTransferForm.controls.transferDate.hasError("required")?13:-1),e(3),c(l(17,27,"labels.inputs.Office")),e(3),A(f.toOfficeTypeData),e(2),v(f.makeAccountTransferForm.controls.toOfficeId.hasError("required")?21:-1),e(3),c(l(25,29,"labels.inputs.Client")),e(2),d("matAutocomplete",s),e(),v(f.makeAccountTransferForm.controls.toClientId.hasError("required")?27:-1),e(),d("displayWith",f.displayClient),e(2),A(f.clientsData),e(4),c(l(35,31,"labels.inputs.Account Type")),e(3),A(f.toAccountTypeData),e(2),v(f.makeAccountTransferForm.controls.toAccountType.hasError("required")?39:-1),e(3),c(l(43,33,"labels.inputs.Account")),e(3),A(f.toAccountData),e(2),v(f.makeAccountTransferForm.controls.toAccountId.hasError("required")?47:-1),e(3),c(l(51,35,"labels.inputs.Amount")),e(3),v(f.makeAccountTransferForm.controls.transferAmount.hasError("required")?53:-1),e(),v((a=f.makeAccountTransferForm.get("transferAmount"))!=null&&a.hasError("amountExceedsBalance")?54:-1),e(3),c(l(58,37,"labels.inputs.Description")),e(3),v(f.makeAccountTransferForm.controls.transferDescription.hasError("required")?60:-1)}}function mn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function pn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function dn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),i()),t&2&&(e(),g(" ",l(2,2,"labels.inputs.Amount")," ",l(3,4,"labels.commons.mustBeAtLeast")," 0.01 "))}function un(t,m){if(t&1&&(n(0,"mat-error"),C(1,"fa-icon",38),r(2),o(3,"translate"),i()),t&2){let a=h(3);e(2),u(" ",kt(3,1,"errors.validation.msg.savingsproduct.insufficient.balance",et(4,Ge,a.balance))," ")}}function fn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Description")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Cn(t,m){if(t&1){let a=w();n(0,"form",16)(1,"h3",11),r(2),o(3,"translate"),i(),n(4,"div",24)(5,"mat-form-field",25),x("click",function(){b(a);let s=M(12);return S(s.open())}),n(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",26)(10,"mat-datepicker-toggle",27)(11,"mat-datepicker",null,1),_(13,mn,7,9,"mat-error"),i(),n(14,"mat-form-field",28)(15,"mat-label"),r(16),o(17,"translate"),i(),C(18,"input",39),i(),n(19,"mat-form-field",28)(20,"mat-label"),r(21),o(22,"translate"),i(),C(23,"input",40),i(),n(24,"mat-form-field",28)(25,"mat-label"),r(26),o(27,"translate"),i(),C(28,"input",41),i(),n(29,"mat-form-field",28)(30,"mat-label"),r(31),o(32,"translate"),i(),C(33,"input",42),i(),n(34,"mat-form-field",28)(35,"mat-label"),r(36),o(37,"translate"),i(),C(38,"input",35),_(39,pn,7,9,"mat-error"),_(40,dn,4,6,"mat-error"),_(41,un,4,6,"mat-error"),i(),n(42,"mat-form-field",36)(43,"mat-label"),r(44),o(45,"translate"),i(),C(46,"textarea",37),_(47,fn,7,9,"mat-error"),i()()()}if(t&2){let a,p=M(12),s=h(2);d("formGroup",s.makeAccountTransferForm),e(2),c(l(3,22,"labels.heading.Transfer Details")),e(5),c(l(8,24,"labels.inputs.Transaction Date")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",p),e(),d("for",p),e(3),v(s.makeAccountTransferForm.controls.transferDate.hasError("required")?13:-1),e(3),c(l(17,26,"labels.inputs.Bank")),e(2),d("readonly",!0),e(3),c(l(22,28,"labels.inputs.Client")),e(2),d("readonly",!0),e(3),c(l(27,30,"labels.inputs.Account Type")),e(2),d("readonly",!0),e(3),c(l(32,32,"labels.inputs.Account")),e(2),d("readonly",!0),e(3),c(l(37,34,"labels.inputs.Amount")),e(3),v(s.makeAccountTransferForm.controls.transferAmount.hasError("required")?39:-1),e(),v(s.makeAccountTransferForm.controls.transferAmount.hasError("min")?40:-1),e(),v((a=s.makeAccountTransferForm.get("transferAmount"))!=null&&a.hasError("amountExceedsBalance")?41:-1),e(3),c(l(45,36,"labels.inputs.Description")),e(3),v(s.makeAccountTransferForm.controls.transferDescription.hasError("required")?47:-1)}}function _n(t,m){if(t&1){let a=w();n(0,"button",45),x("click",function(){b(a);let s=h(4);return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h(4);d("disabled",!a.makeAccountTransferForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}function vn(t,m){if(t&1){let a=w();n(0,"button",45),x("click",function(){b(a);let s=h(4);return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h(4);d("disabled",!a.makeAccountTransferForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}function gn(t,m){if(t&1&&(P(0),_(1,_n,3,4,"button",44),_(2,vn,3,4,"button",44),N()),t&2){let a=h(3);e(),v(a.interbank&&a.interbankTransferForm?1:-1),e(),v(a.interbank?-1:2)}}function In(t,m){t&1&&(n(0,"mat-card-actions",17)(1,"button",43),r(2),o(3,"translate"),i(),y(4,gn,3,2,"ng-container",22),i()),t&2&&(e(),d("routerLink",U(5,Gi)),e(),u(" ",l(3,3,"labels.buttons.Cancel")," "),e(2),d("mifosxHasPermission","CREATE_ACCOUNTTRANSFER"))}function Tn(t,m){if(t&1&&(n(0,"mat-card",5)(1,"mat-card-content")(2,"div",10)(3,"h3",11),r(4),o(5,"translate"),i(),C(6,"mat-divider"),n(7,"div",12)(8,"div",13)(9,"div",14),r(10),o(11,"translate"),i(),n(12,"div",15),r(13),i()(),n(14,"div",13)(15,"div",14),r(16),o(17,"translate"),i(),n(18,"div",15),r(19),i()(),n(20,"div",13)(21,"div",14),r(22),o(23,"translate"),i(),n(24,"div",15),r(25),i()(),n(26,"div",13)(27,"div",14),r(28),o(29,"translate"),i(),n(30,"div",15),r(31),i()(),n(32,"div",13)(33,"div",14),r(34),o(35,"translate"),i(),n(36,"div",15),r(37),i()()()(),_(38,Wi,14,10,"div",10),_(39,Yi,1,0,"mat-divider"),_(40,cn,61,39,"form",16),_(41,Cn,48,38,"form",16),i(),_(42,In,5,6,"mat-card-actions",17),i()),t&2){let a=h();e(4),c(l(5,17,"labels.heading.Transferring From Details")),e(6),c(l(11,19,"labels.inputs.Applicant")),e(3),c(a.accountTransferTemplateData.fromClient.displayName),e(3),c(l(17,21,"labels.inputs.Office")),e(3),c(a.accountTransferTemplateData.fromOffice.name),e(3),c(l(23,23,"labels.inputs.From Account")),e(3),g(" ",a.accountTransferTemplateData.fromAccount.productName,"\xA0-\xA0#",a.accountTransferTemplateData.fromAccount.accountNo," "),e(3),c(l(29,25,"labels.inputs.From Account Type")),e(3),c(a.accountTransferTemplateData.fromAccountType.value),e(3),c(l(35,27,"labels.inputs.Currency")),e(3),c(a.accountTransferTemplateData.currency.name),e(),v(a.interbank?38:-1),e(),v(a.interbank?-1:39),e(),v(!a.interbank&&a.makeAccountTransferForm?40:-1),e(),v(a.interbank&&a.interbankTransferForm&&a.makeAccountTransferForm?41:-1),e(),v(!a.isLoading&&a.makeAccountTransferForm?42:-1)}}var ne=(()=>{class t{constructor(){this.formBuilder=T(St),this.route=T(H),this.router=T(ht),this.accountTransfersService=T(B),this.dateUtils=T(xt),this.settingsService=T(Y),this.clientsService=T(He),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.interbank=!1,this.phoneAccount="",this.interbankTransferForm=!1,this.balance=0,this.isLoading=!1,this.route.data.subscribe(a=>{this.accountTransferTemplateData=a.accountTransferTemplate,this.setParams(),this.setOptions()})}setParams(){switch(this.accountType=this.route.snapshot.queryParams.accountType,this.accountType){case"fromloans":this.accountTypeId="1",this.id=this.route.snapshot.queryParams.loanId;break;case"fromsavings":case"interbank":this.accountTypeId="2",this.id=this.route.snapshot.queryParams.savingsId,this.interbank=this.route.snapshot.queryParams.interbank==="true";let a=this.router.currentNavigation()?.extras?.state?.balance,p=this.accountTransferTemplateData?.fromAccount?.availableBalance??this.accountTransferTemplateData?.fromAccount?.summary?.accountBalance??this.accountTransferTemplateData?.fromAccount?.balance??0;this.balance=typeof a=="number"?a:p;break;default:this.accountTypeId="0"}}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.interbank?this.createEmptyInterbankForm():this.createMakeAccountTransferForm()}createEmptyInterbankForm(){this.makeAccountTransferForm=this.formBuilder.group({toBank:["",I.required],toClientId:["",I.required],toAccountType:["",I.required],toAccountId:["",I.required],transferAmount:[0,[I.required,I.min(.01),this.amountExceedsBalanceValidator.bind(this)]],transferDate:[this.settingsService.businessDate,I.required],transferDescription:["",I.required]})}createMakeAccountTransferForm(){this.makeAccountTransferForm=this.formBuilder.group({toOfficeId:["",I.required],toClientId:["",I.required],toAccountType:["",I.required],toAccountId:["",I.required],transferAmount:[this.accountTransferTemplateData.transferAmount,[I.required,I.min(.01),this.amountExceedsBalanceValidator.bind(this)]],transferDate:[this.settingsService.businessDate,I.required],transferDescription:["",I.required]})}createMakeAccountInterbankTransferForm(a){if(!a){console.error("Account data is undefined"),this.isLoading=!1;return}let p=this.accountTransferTemplateData?.transferAmount>0?this.accountTransferTemplateData.transferAmount:1;this.makeAccountTransferForm=this.formBuilder.group({toBank:[a.destinationFspId||"",I.required],toClientId:[(a.firstName||a.firsName||"")+" "+(a.lastName||""),I.required],toAccountType:["Saving Account",I.required],toAccountId:[a.partyId||"",I.required],transferAmount:[p,[I.required,I.min(.01),this.amountExceedsBalanceValidator.bind(this)]],transferDate:[this.settingsService.businessDate,I.required],transferDescription:["Transferencia interbancaria",I.required]}),this.isLoading=!1}amountExceedsBalanceValidator(a){return a.value>this.balance?{amountExceedsBalance:!0}:null}setOptions(){this.toOfficeTypeData=this.accountTransferTemplateData.toOfficeOptions,this.toAccountTypeData=this.accountTransferTemplateData.toAccountTypeOptions,this.toAccountData=this.accountTransferTemplateData.toAccountOptions}changeEvent(){let a=this.refineObject(this.makeAccountTransferForm.value);this.accountTransfersService.newAccountTranferResource(this.id,this.accountTypeId,a).subscribe(p=>{this.accountTransferTemplateData=p,this.toClientTypeData=p.toClientOptions,this.setOptions()})}refineObject(a){delete a.transferAmount,delete a.transferDate,delete a.transferDescription,a.toClientId&&typeof a.toClientId=="object"&&(a.toClientId=a.toClientId.id);let p=Object.getOwnPropertyNames(a);for(let s=0;s{typeof a=="string"&&a.length>=2&&(this.clientsService.getFilteredClients("displayName","ASC",!0,a).subscribe(p=>{this.clientsData=p.pageItems}),this.changeEvent())})}displayClient(a){return a?a.displayName:void 0}submit(){this.interbank?this.makeInterbankTransfer():this.makeTransfer()}makeTransfer(){this.isLoading=!0;let a=this.settingsService.dateFormat,p=this.settingsService.language.code,s;typeof this.makeAccountTransferForm.controls.toClientId.value=="object"?s=this.makeAccountTransferForm.controls.toClientId.value.id:s=this.makeAccountTransferForm.controls.toClientId.value;let f=Nt(Pt({},this.makeAccountTransferForm.value),{transferDate:this.dateUtils.formatDate(this.makeAccountTransferForm.value.transferDate,a),dateFormat:a,locale:p,toClientId:s,fromAccountId:this.id,fromAccountType:this.accountTypeId,fromClientId:this.accountTransferTemplateData.fromClient.id,fromOfficeId:this.accountTransferTemplateData.fromClient.officeId});this.accountTransfersService.createAccountTransfer(f).subscribe(()=>{this.isLoading=!1,this.router.navigate(["../../transactions"],{relativeTo:this.route})})}makeInterbankTransfer(){if(this.isLoading=!0,!this.makeAccountTransferForm.valid){console.error("Interbank form is not valid"),this.isLoading=!1;return}let a={homeTransactionId:crypto.randomUUID(),from:{fspId:De.fineractPlatformTenantId,idType:"MSISDN",idValue:this.accountTransferTemplateData.fromAccount.externalId?.trim()||""},to:{fspId:this.makeAccountTransferForm.controls.toBank.value,idType:"MSISDN",idValue:this.makeAccountTransferForm.controls.toAccountId.value},amountType:"SEND",amount:{currencyCode:this.accountTransferTemplateData.currency.code,amount:this.makeAccountTransferForm.controls.transferAmount.value},transactionType:{scenario:"TRANSFER",subScenario:"DOMESTIC",initiator:"PAYER",initiatorType:"CUSTOMER"},note:this.makeAccountTransferForm.controls.transferDescription.value};this.accountTransfersService.sendInterbankTransfer(JSON.stringify(a)).subscribe(p=>{p.systemMessage&&(this.isLoading=!1,this.router.navigate(["../../transactions"],{relativeTo:this.route}))},p=>{console.error("Interbank transfer error:",p),this.isLoading=!1})}searchAccountByNumber(){!this.phoneAccount||this.phoneAccount.length!==10||(this.isLoading=!0,this.accountTransfersService.getAccountByNumber(this.phoneAccount,this.accountTransferTemplateData.currency.code).subscribe(a=>{this.interbankTransferForm=!0,this.createMakeAccountInterbankTransferForm(a)},a=>{console.error("searching account error:",a),this.isLoading=!1}))}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-make-account-transfers"]],decls:3,vars:2,consts:[["input",""],["transferDatePicker",""],["clientsAutocomplete","matAutocomplete"],[1,"container"],[1,"loader-wrapper"],[1,"transfer-card"],[1,"bottom","triangle"],[1,"top","triangle"],[1,"left","triangle"],[1,"right","triangle"],[1,"section-container"],[1,"section-title","transfer-heading"],[1,"info-grid"],[1,"info-row"],[1,"info-label"],[1,"info-value"],[1,"transfer-form",3,"formGroup"],[1,"action-buttons"],[1,"interbank-section"],[1,"full-width"],["matInput","","type","tel","maxlength","10","required","","placeholder","Enter phone number","title","Phone number",3,"ngModelChange","readonly","ngModel"],["align","end"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary","id","search-button",1,"primary-button",3,"click","disabled"],[1,"form-grid"],[1,"form-field",3,"click"],["matInput","","required","","formControlName","transferDate","placeholder","Select date","title","Transaction Date",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"form-field"],["required","","formControlName","toOfficeId",3,"selectionChange"],[3,"value"],["matInput","","formControlName","toClientId","placeholder","Select or type client name","title","Client name",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["required","","formControlName","toAccountType",3,"selectionChange"],["required","","formControlName","toAccountId",3,"selectionChange"],["type","number","matInput","","required","","formControlName","transferAmount","placeholder","Enter amount","title","Transfer amount","min","0.01","step","0.01"],[1,"form-field","description-field"],["matInput","","formControlName","transferDescription","cdkTextareaAutosize","","cdkAutosizeMinRows","2","placeholder","Enter transfer description","title","Transfer description"],["icon","exclamation-triangle","size","md"],["matInput","","formControlName","toBank","placeholder","Bank","title","Bank",3,"readonly"],["matInput","","formControlName","toClientId","placeholder","Client","title","Client",3,"readonly"],["matInput","","formControlName","toAccountType","placeholder","Account Type","title","Account Type",3,"readonly"],["matInput","","formControlName","toAccountId","placeholder","Account","title","Account",3,"readonly"],["type","button","mat-raised-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"primary-button",3,"disabled"],["mat-raised-button","","color","primary",1,"primary-button",3,"click","disabled"]],template:function(p,s){p&1&&(n(0,"div",3),_(1,ji,5,0,"div",4),_(2,Tn,43,29,"mat-card",5),i()),p&2&&(e(),v(s.isLoading?1:-1),e(),v(s.isLoading?-1:2))},dependencies:[q,R,nt,J,bt,K,it,ot,Be,ke,at,rt,W,$,z,lt,Z,X,st,ct,we,tt,pt,mt,ut,ft,dt,j,Q,vt,Fe,Ae,qe,Ne,_t,Lt,V],styles:[".container[_ngcontent-%COMP%]{max-width:42rem;margin:0 auto;padding:1rem}.transfer-card[_ngcontent-%COMP%]{border-radius:8px;box-shadow:0 2px 10px #00000014;margin-bottom:1.5rem;overflow:hidden}.section-container[_ngcontent-%COMP%]{margin-bottom:2rem}.section-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#333;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid rgba(0,0,0,.12)}.section-title.transfer-heading[_ngcontent-%COMP%]{font-weight:700}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%;gap:.75rem}@media (width >= 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,50%)}}.info-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem;background-color:#00000005;border-radius:4px}.info-row[_ngcontent-%COMP%]:hover{background-color:#0000000a}.info-label[_ngcontent-%COMP%]{flex:0 0 40%;color:#000000b3;font-weight:500}.info-value[_ngcontent-%COMP%]{flex:1;color:#000000de}mat-divider[_ngcontent-%COMP%]{margin:1rem 0}.interbank-section[_ngcontent-%COMP%]{margin-bottom:1rem}.transfer-form[_ngcontent-%COMP%]{margin-top:1rem}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%;gap:1rem}@media (width >= 768px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);gap:1.5rem}}.form-row[_ngcontent-%COMP%]{display:contents}.form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}@media (width >= 768px){.form-field[_ngcontent-%COMP%]:nth-child(odd){margin-right:.5rem}}@media (width >= 768px){.form-field[_ngcontent-%COMP%]:nth-child(2n){margin-left:.5rem}}.form-field.description-field[_ngcontent-%COMP%]{grid-column:1/-1}.form-field.description-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:80px;resize:vertical} .mat-form-field{width:100%}.action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem;padding:1rem 1.5rem;margin-top:1rem}@media (width <= 576px){.action-buttons[_ngcontent-%COMP%]{flex-direction:column}}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}@media (width <= 576px){.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}}.action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#f5f5f5;color:#000000de;box-shadow:0 1px 3px #0000001f}.action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;box-shadow:0 2px 5px #0000002e}.action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#f5f5f5;color:#000000de;font-weight:400;border:none;box-shadow:none}.action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;box-shadow:0 2px 5px #0000002e}.loader-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:300px;position:relative}@keyframes _ngcontent-%COMP%_rotate-triangle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.triangle[_ngcontent-%COMP%]{position:absolute;width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:34px solid rgba(0,0,0,.05);animation:_ngcontent-%COMP%_rotate-triangle 1.5s infinite linear}.triangle[_ngcontent-%COMP%]:hover{border-bottom-color:#00000014}.dark-theme[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{color:#ffffffde}.dark-theme[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#fff;border-bottom-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .transfer-heading[_ngcontent-%COMP%]{color:#fff;font-weight:700}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]:hover{background-color:#505050}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde;font-weight:400;border:none;box-shadow:none}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]:hover{background-color:#505050}.dark-theme[_nghost-%COMP%] .transfer-heading[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .transfer-heading[_ngcontent-%COMP%]{color:#fff;font-weight:700}.dark-theme[_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde}.dark-theme[_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde;font-weight:400;border:none;box-shadow:none}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#fff}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .transfer-heading[_ngcontent-%COMP%]{color:#fff;font-weight:700}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde;font-weight:400;border:none;box-shadow:none} mat-form-field.error-warn.mat-form-field-invalid .mat-form-field-ripple{background-color:#000000de!important} mat-form-field.error-warn.mat-form-field-invalid .mat-form-field-label{color:#0009!important} mat-form-field.error-warn.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#0009!important} mat-form-field.error-warn.mat-form-field-invalid .mat-error{color:#0009!important} .mat-form-field-flex{align-items:center}.transfer-form[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{margin-bottom:1rem}.readonly-field[_ngcontent-%COMP%]{background-color:#00000005;cursor:not-allowed} .mat-input-element{font-size:14px}"]})}}return t})();var hn=["instructionsTable"],xn=()=>[10,25,50,100],bn=t=>["../",t,"edit"],Sn=t=>["../",t,"view"];function yn(t,m){if(t&1&&(n(0,"div",3)(1,"span",24)(2,"h3",25),r(3),o(4,"translate"),i()(),n(5,"span",26)(6,"h3",25),r(7),i()()()),t&2){let a=h();e(3),c(l(4,2,"labels.heading.Client Type")),e(4),c(a.clientName)}}function En(t,m){if(t&1&&(n(0,"div",3)(1,"mat-form-field",27),C(2,"input",28),i(),n(3,"mat-form-field",27),C(4,"input",29),i()()),t&2){let a=h();e(2),d("formControl",a.clientNameControl),e(2),d("formControl",a.fromClientId)}}function Dn(t,m){if(t&1&&(n(0,"mat-option",7),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function An(t,m){if(t&1){let a=w();n(0,"button",30),x("click",function(){b(a);let s=h();return S(s.filterStandingInstructions())}),r(1),o(2,"translate"),o(3,"titlecase"),i()}t&2&&(e(),u(" ",l(3,3,l(2,1,"labels.buttons.Filter"))," "))}function Mn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Client")))}function kn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g(" ",a.fromClient.displayName,"-",a.fromClient.id," ")}}function Bn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.From Account")))}function Fn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g(" ",a.fromAccount.accountNo," (",a.fromAccountType.value,") ")}}function wn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Beneficiary")))}function On(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),c(a.toClient.displayName)}}function Pn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.To Account")))}function Nn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g(" ",a.toAccount.accountNo," (",a.toAccountType.value,") ")}}function qn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Amount")))}function Vn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g("",a.instructionType.value,"/",a.amount)}}function Rn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Validity")))}function Ln(t,m){if(t&1&&(n(0,"td",32),r(1),o(2,"dateFormat"),o(3,"dateFormat"),i()),t&2){let a=m.$implicit;e(),g(" ",l(2,2,a.validFrom)," to ",l(3,4,a.validTill)," ")}}function Hn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Actions")))}function $n(t,m){if(t&1&&(n(0,"button",34),o(1,"translate"),C(2,"i",35),i()),t&2){let a=h(2).$implicit;d("matTooltip",Rt(l(1,3,"tooltips.Edit Standing Instruction")))("routerLink",et(5,bn,a.id))}}function Un(t,m){t&1&&(n(0,"span"),y(1,$n,3,7,"button",33),i()),t&2&&(e(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Gn(t,m){if(t&1){let a=w();n(0,"button",37),o(1,"translate"),x("click",function(){b(a);let s=h(2).$implicit,f=h();return S(f.deleteStandingInstruction(s.id))}),C(2,"i",38),i()}t&2&&d("matTooltip",Rt(l(1,2,"tooltips.Delete Standing Instruction")))}function jn(t,m){t&1&&(n(0,"span"),y(1,Gn,3,4,"button",36),i()),t&2&&(e(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function zn(t,m){if(t&1&&(n(0,"button",34),o(1,"translate"),C(2,"i",39),i()),t&2){let a=h().$implicit;d("matTooltip",Rt(l(1,3,"tooltips.View Standing Instruction")))("routerLink",et(5,Sn,a.id))}}function Qn(t,m){if(t&1&&(n(0,"td",32),_(1,Un,2,1,"span"),_(2,jn,2,1,"span"),y(3,zn,3,7,"button",33),i()),t&2){let a=m.$implicit;e(),v(a.status.value!=="Deleted"?1:-1),e(),v(a.status.value!=="Deleted"?2:-1),e(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Wn(t,m){t&1&&C(0,"tr",40)}function Yn(t,m){t&1&&C(0,"tr",41)}var ae=(()=>{class t{constructor(){this.route=T(H),this.accountTransfersService=T(B),this.settingsService=T(Y),this.dialog=T(Ee),this.transferType=new Bt,this.fromAccountId=new Bt,this.clientNameControl=new Bt,this.fromClientId=new Bt,this.dataSource=new Ft,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.data.subscribe(a=>{this.standingIntructionsTemplateData=a.standingIntructionsTemplate,a.standingIntructionsTemplate.fromClient&&(this.clientName=this.standingIntructionsTemplateData.fromClient.displayName,this.getStandingInstructions()),this.setParams(),this.transferTypeDatas=this.standingIntructionsTemplateData.transferTypeOptions})}setParams(){switch(this.accountType=this.route.snapshot.queryParams.accountType,this.accountType){case"fromloans":this.accountTypeId="1";break;case"fromsavings":this.accountTypeId="2";break;default:this.accountTypeId="0"}this.isFromClient=!!this.route.parent.parent.snapshot.params.clientId}filterStandingInstructions(){this.getStandingInstructions()}getStandingInstructions(){let a=this.settingsService.dateFormat,p=this.settingsService.language.code,s={clientId:this.standingIntructionsTemplateData.fromClient.id||this.fromClientId.value,clientName:this.standingIntructionsTemplateData.fromClient.displayName||this.clientNameControl.value,locale:p,dateFormat:a,limit:14,offset:0,fromAccountType:this.accountTypeId,fromAccountId:this.fromAccountId.value,fromTransferType:this.transferType.value};this.accountTransfersService.getStandingInstructions(s).subscribe(f=>{this.instructionsData=f.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(a){this.dialog.open(Pe,{data:{deleteContext:`standing instruction id: ${a}`}}).afterClosed().subscribe(s=>{s.delete&&this.accountTransfersService.deleteStandingInstrucions(a).subscribe(()=>{})})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-list-standing-instructions"]],viewQuery:function(p,s){if(p&1&&(Dt(hn,7),Dt(yt,7)),p&2){let f;At(f=Mt())&&(s.instructionTableRef=f.first),At(f=Mt())&&(s.paginator=f.first)}},decls:41,vars:15,consts:[["instructionsTable",""],[1,"container"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill"],[3,"inset"],[1,"type-field"],[3,"formControl"],[3,"value"],[1,"account-Id-field"],["matInput","","placeholder","From Account Id",3,"formControl"],["mat-raised-button","","color","primary","class","filter-button",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"flex-40"],[1,"mat-h3"],[1,"client-Name"],[1,"flex-30"],["matInput","","placeholder","ClientName",3,"formControl"],["matInput","","placeholder","From Client Id",3,"formControl"],["mat-raised-button","","color","primary",1,"filter-button",3,"click"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip","routerLink"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(p,s){p&1&&(n(0,"mat-card",1)(1,"div",2),_(2,yn,8,4,"div",3),_(3,En,5,2,"div",3),C(4,"mat-divider",4),n(5,"mat-form-field",5)(6,"mat-label"),r(7),o(8,"translate"),i(),n(9,"mat-select",6),D(10,Dn,2,2,"mat-option",7,E),i()(),n(12,"mat-form-field",8),C(13,"input",9),i(),y(14,An,4,5,"button",10),i(),n(15,"table",11,0),P(17,12),y(18,Mn,3,3,"th",13)(19,kn,2,2,"td",14),N(),P(20,15),y(21,Bn,3,3,"th",13)(22,Fn,2,2,"td",14),N(),P(23,16),y(24,wn,3,3,"th",13)(25,On,2,1,"td",14),N(),P(26,17),y(27,Pn,3,3,"th",13)(28,Nn,2,2,"td",14),N(),P(29,18),y(30,qn,3,3,"th",13)(31,Vn,2,2,"td",14),N(),P(32,19),y(33,Rn,3,3,"th",13)(34,Ln,4,6,"td",14),N(),P(35,20),y(36,Hn,3,3,"th",13)(37,Qn,4,3,"td",14),N(),y(38,Wn,1,0,"tr",21)(39,Yn,1,0,"tr",22),i(),C(40,"mat-paginator",23),i()),p&2&&(e(2),v(s.isFromClient?2:-1),e(),v(s.isFromClient?-1:3),e(),d("inset",!0),e(3),c(l(8,12,"labels.inputs.Type")),e(2),d("formControl",s.transferType),e(),A(s.transferTypeDatas),e(3),d("formControl",s.fromAccountId),e(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION"),e(),d("dataSource",s.dataSource),e(23),d("matHeaderRowDef",s.displayedColumns),e(),d("matRowDefColumns",s.displayedColumns),e(),d("pageSize",10)("pageSizeOptions",U(14,xn)))},dependencies:[q,R,J,K,Me,W,$,Z,X,tt,pt,mt,j,Q,vt,Ht,Gt,Ut,jt,$t,zt,Oe,Qt,Yt,Wt,Jt,yt,ye,Ct,V],styles:[".container[_ngcontent-%COMP%] .filter-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:2rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.mat-divider[_ngcontent-%COMP%]{border-top-color:#fff}"]})}}return t})();var Jn=()=>[5,10,25,50,100];function Kn(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Transaction Date")))}function Xn(t,m){if(t&1&&(n(0,"td",17),r(1),o(2,"dateFormat"),i()),t&2){let a=m.$implicit;e(),c(l(2,1,a.transferDate))}}function Zn(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Amount")))}function ta(t,m){if(t&1&&(n(0,"td",17),r(1),i()),t&2){let a=m.$implicit;e(),c(a.transferAmount)}}function ea(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Notes")))}function ia(t,m){if(t&1&&(n(0,"td",17),r(1),i()),t&2){let a=m.$implicit;e(),c(a.transferDescription)}}function na(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Reversed")))}function aa(t,m){if(t&1&&(n(0,"td",17),r(1),o(2,"yesNo"),i()),t&2){let a=m.$implicit;e(),c(l(2,1,a.reversed))}}function ra(t,m){t&1&&C(0,"tr",18)}function oa(t,m){t&1&&C(0,"tr",19)}var re=(()=>{class t{constructor(){this.route=T(H),this.dataSource=new Ft,this.displayedColumns=["transactionDate","amount","notes","reversed"],this.route.data.subscribe(a=>{this.listTransactionData=a.listTransactionData,this.dataSource=new Ft(this.listTransactionData.transactions.pageItems),this.dataSource.paginator=this.paginator})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-list-transactions"]],viewQuery:function(p,s){if(p&1&&Dt(yt,7),p&2){let f;At(f=Mt())&&(s.paginator=f.first)}},decls:36,vars:19,consts:[[1,"container","m-b-20"],[1,"mat-elevation-z8"],[1,"layout-row-wrap"],[1,"flex-25","header"],[1,"flex-25"],[1,"mat-elevation-z8","container"],["mat-table","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["matColumnDef","notes"],["matColumnDef","reversed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(p,s){p&1&&(n(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"div",3),r(5),o(6,"translate"),i(),n(7,"div",4),r(8),i(),n(9,"div",3),r(10),o(11,"translate"),i(),n(12,"div",4),r(13),i(),n(14,"div",3),r(15),o(16,"translate"),i(),n(17,"div",4),r(18),i()()()()(),n(19,"div",5)(20,"table",6),P(21,7),y(22,Kn,3,3,"th",8)(23,Xn,3,3,"td",9),N(),P(24,10),y(25,Zn,3,3,"th",8)(26,ta,2,1,"td",9),N(),P(27,11),y(28,ea,3,3,"th",8)(29,ia,2,1,"td",9),N(),P(30,12),y(31,na,3,3,"th",8)(32,aa,3,3,"td",9),N(),y(33,ra,1,0,"tr",13)(34,oa,1,0,"tr",14),i(),C(35,"mat-paginator",15),i()),p&2&&(e(5),u(" ",l(6,12,"labels.inputs.From Account")," "),e(3),g(" ",s.listTransactionData.fromAccount.accountNo,"(",s.listTransactionData.fromAccountType.value,") "),e(2),u(" ",l(11,14,"labels.inputs.To Account")," "),e(3),g(" ",s.listTransactionData.toAccount.accountNo,"(",s.listTransactionData.toAccountType.value,") "),e(2),u(" ",l(16,16,"labels.inputs.Destination")," "),e(3),u(" ",s.listTransactionData.toClient.displayName," "),e(2),d("dataSource",s.dataSource),e(13),d("matHeaderRowDef",s.displayedColumns),e(),d("matRowDefColumns",s.displayedColumns),e(),d("pageSizeOptions",U(18,Jn)))},dependencies:[q,R,$,z,Ht,Gt,Ut,jt,$t,zt,Qt,Yt,Wt,Jt,yt,Ct,V,Re],styles:[".content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:3rem}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();function la(t,m){t&1&&(n(0,"button",13),C(1,"fa-icon",14),r(2),o(3,"translate"),i()),t&2&&(e(2),u("",l(3,1,"labels.buttons.Undo")," "))}function sa(t,m){t&1&&(n(0,"span"),y(1,la,4,3,"button",12),i()),t&2&&(e(),d("mifosxHasPermission","ADJUST_ACCOUNTTRANSFER"))}var oe=(()=>{class t{constructor(){this.route=T(H),this.location=T(be),this.route.data.subscribe(a=>{this.viewAccountTransferData=a.viewAccountTransferData})}transferToClient(a){return`/#/clients/${a.id}`}transferToAccount(a,p){return`/#/clients/${a.id}/savings-accounts/${p.id}`}goBack(){this.location.back()}transactionColor(){return this.viewAccountTransferData.reversed?"undo":"active"}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-account-transfer"]],decls:93,vars:69,consts:[[1,"container"],[1,"container","m-b-20","align-end","gap-2px"],[1,"layout-row-wrap","responsive-column"],[1,"flex-100",3,"ngClass"],[1,"mat-h3","flex-fill"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[3,"href"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",4,"mifosxHasPermission"],["mat-raised-button","","color","warn"],["icon","undo",1,"m-r-10"]],template:function(p,s){p&1&&(n(0,"div",0)(1,"div",1),_(2,sa,2,1,"span"),i(),n(3,"mat-card")(4,"mat-card-content")(5,"div",2),C(6,"div",3),n(7,"h3",4),r(8),o(9,"translate"),i(),C(10,"mat-divider",5),n(11,"div",6)(12,"span",7),r(13),o(14,"translate"),i(),n(15,"span",8),r(16),o(17,"formatNumber"),i()(),n(18,"div",6)(19,"span",7),r(20),o(21,"translate"),i(),n(22,"span",8),r(23),o(24,"dateFormat"),i()(),n(25,"div",6)(26,"span",7),r(27),o(28,"translate"),i(),n(29,"span",8),r(30),i()(),n(31,"h3",4),r(32),o(33,"translate"),i(),C(34,"mat-divider",5),n(35,"div",6)(36,"span",7),r(37),o(38,"translate"),i(),n(39,"span",8),r(40),i()(),n(41,"div",6)(42,"span",7),r(43),o(44,"translate"),i(),n(45,"span",8),r(46),i()(),n(47,"div",6)(48,"span",7),r(49),o(50,"translate"),i(),n(51,"span",8),r(52),i()(),n(53,"div",6)(54,"span",7),r(55),o(56,"translate"),i(),n(57,"span",8),r(58),i()(),n(59,"h3",4),r(60),o(61,"translate"),i(),C(62,"mat-divider",5),n(63,"div",6)(64,"span",7),r(65),o(66,"translate"),i(),n(67,"span",8),r(68),i()(),n(69,"div",6)(70,"span",7),r(71),o(72,"translate"),i(),n(73,"span",8)(74,"a",9),r(75),i()()(),n(76,"div",6)(77,"span",7),r(78),o(79,"translate"),i(),n(80,"span",8),r(81),i()(),n(82,"div",6)(83,"span",7),r(84),o(85,"translate"),i(),n(86,"span",8)(87,"a",9),r(88),i()()()()(),n(89,"mat-card-actions",10)(90,"button",11),x("click",function(){return s.goBack()}),r(91),o(92,"translate"),i()()()()),p&2&&(e(2),v(s.viewAccountTransferData.reversed?-1:2),e(4),d("ngClass",s.transactionColor()),e(2),c(l(9,35,"labels.heading.Transaction Details")),e(2),d("inset",!0),e(3),u("",l(14,37,"labels.inputs.Transaction Amount"),":"),e(3),Ie("",s.viewAccountTransferData.currency.displaySymbol," ",l(17,39,s.viewAccountTransferData.transferAmount)," (",s.viewAccountTransferData.currency.code,")"),e(4),u("",l(21,41,"labels.inputs.Transaction Date"),":"),e(3),c(l(24,43,s.viewAccountTransferData.transferDate)),e(4),u("",l(28,45,"labels.inputs.Destination"),":"),e(3),c(s.viewAccountTransferData.transferDescription),e(2),c(l(33,47,"labels.heading.Transferred From")),e(2),d("inset",!0),e(3),u("",l(38,49,"labels.inputs.Office"),":"),e(3),c(s.viewAccountTransferData.fromOffice.name),e(3),u("",l(44,51,"labels.inputs.Client"),":"),e(3),c(s.viewAccountTransferData.fromClient.displayName),e(3),u("",l(50,53,"labels.inputs.Account Type"),":"),e(3),c(s.viewAccountTransferData.fromAccountType.value),e(3),u("",l(56,55,"labels.inputs.Account No"),":"),e(3),c(s.viewAccountTransferData.fromAccount.accountNo),e(2),c(l(61,57,"labels.heading.Transferred To")),e(2),d("inset",!0),e(3),u("",l(66,59,"labels.inputs.Office"),":"),e(3),c(s.viewAccountTransferData.toOffice.name),e(3),u("",l(72,61,"labels.inputs.Client"),":"),e(3),d("href",s.transferToClient(s.viewAccountTransferData.toClient),se),e(),u(" ",s.viewAccountTransferData.toClient.displayName),e(3),u("",l(79,63,"labels.inputs.Account Type"),":"),e(3),c(s.viewAccountTransferData.toAccountType.value),e(3),u("",l(85,65,"labels.inputs.Account No"),":"),e(3),d("href",s.transferToAccount(s.viewAccountTransferData.toClient,s.viewAccountTransferData.toAccount),se),e(),u(" ",s.viewAccountTransferData.toAccount.accountNo),e(3),u(" ",l(92,67,"labels.buttons.Back")," "))},dependencies:[q,Se,R,$,z,lt,j,Q,_t,vt,Ct,V,Ve],styles:["h3[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}"]})}}return t})();var fe=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.parent.paramMap.get("standingInstructionsId");return this.accountTransfersService.getStandingInstructionsData(p)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var Ce=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.parent.paramMap.get("standingInstructionsId");return this.accountTransfersService.getStandingInstructionsDataAndTemplate(p)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var le=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.queryParamMap.get("officeId"),s=a.queryParamMap.get("accountType"),f=a.parent.paramMap.get("clientId");switch(s){case"fromloans":this.accountTypeId="1";break;case"fromsavings":this.accountTypeId="2";break;default:this.accountTypeId="0"}return this.accountTransfersService.getStandingInstructionsTemplate(f,p,this.accountTypeId)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var _e=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){switch(a.queryParamMap.get("accountType")){case"fromloans":this.accountTypeId="1",this.id=a.queryParamMap.get("loanId");break;case"fromsavings":this.accountTypeId="2",this.id=a.queryParamMap.get("savingsId");break;case"interbank":this.accountTypeId="2",this.id=a.queryParamMap.get("savingsId");break;default:this.accountTypeId="0"}return this.accountTransfersService.newAccountTranferResource(this.id,this.accountTypeId)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var ve=(()=>{class t{constructor(){this.accountTransfersService=T(B),this.settingsService=T(Y)}resolve(a){let p=a.parent.paramMap.get("standingInstructionsId"),s=this.settingsService.dateFormat,f=this.settingsService.language.code;return this.accountTransfersService.getStandingInstructionsTransactions(p,s,f)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var ge=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.paramMap.get("transferid");return this.accountTransfersService.getViewAccountTransferDetails(p)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var ca=[{path:"",children:[{path:"create-standing-instructions",data:{title:"Create Standing Instructions",breadcrumb:"Create Standing Instructions",routeParamBreadcrumb:"Create Standing Instructions"},component:ie,resolve:{standingIntructionsTemplate:le}},{path:"make-account-transfer",data:{title:"Account Transfer",breadcrumb:"Account Transfer",routeParamBreadcrumb:"Account Transfer"},component:ne,resolve:{accountTransferTemplate:_e}},{path:"list-standing-instructions",data:{title:"List Standing Instructions",breadcrumb:"List Standing Instructions",routeParamBreadcrumb:"List Standing Instructions"},component:ae,resolve:{standingIntructionsTemplate:le}},{path:"account-transfers",data:{title:"View Account Transfer",breadcrumb:"Account Transfers",routeParamBreadcrumb:!1},children:[{path:":transferid",data:{routeParamBreadcrumb:"transferid"},component:oe,resolve:{viewAccountTransferData:ge}}]},{path:":standingInstructionsId",data:{title:"Standing Instructions",routeParamBreadcrumb:"standingInstructionsId"},children:[{path:"view",data:{title:"View Standing Instructions",breadcrumb:"view",routeParamBreadcrumb:!1},component:Xt,resolve:{standingInstructionsData:fe}},{path:"edit",data:{title:"Edit Standing Instructions",breadcrumb:"edit",routeParamBreadcrumb:!1},component:ee,resolve:{standingInstructionsDataAndTemplate:Ce}},{path:"list-account-transactions",data:{title:"List Account Transactions",breadcrumb:"List Account Transactions",routeParamBreadcrumb:"List Account Transactions"},component:re,resolve:{listTransactionData:ve}}]}]}],je=(()=>{class t{static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275mod=Vt({type:t})}static{this.\u0275inj=qt({providers:[fe,Ce,le,_e,ve,ge],imports:[ce.forChild(ca),ce]})}}return t})();var ma=t=>({balance:t});function pa(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function da(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ua(t,m){if(t&1&&(n(0,"mat-error"),C(1,"fa-icon",15),r(2),o(3,"translate"),i()),t&2){let a=h();e(2),u(" ",kt(3,1,"errors.validation.msg.savingsproduct.insufficient.balance",et(4,ma,a.balance))," ")}}function fa(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Description")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}var ze=(()=>{class t{constructor(){this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-make-account-interbank-transfers"]],inputs:{makeAccountTransferForm:"makeAccountTransferForm",balance:"balance"},decls:45,vars:30,consts:[["transferDatePicker",""],["amntInput",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","transferDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-98"],["matInput","","formControlName","toBank"],["matInput","","formControlName","toClientId"],["matInput","","formControlName","toAccountType"],["matInput","","formControlName","toAccountId"],[1,"flex-98","error-warn"],["type","number","matInput","","required","","formControlName","transferAmount"],["matInput","","formControlName","transferDescription","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["icon","exclamation-triangle","size","md"]],template:function(p,s){if(p&1){let f=w();n(0,"form",2)(1,"div",3)(2,"mat-form-field",4),x("click",function(){b(f);let F=M(9);return S(F.open())}),n(3,"mat-label"),r(4),o(5,"translate"),i(),C(6,"input",5)(7,"mat-datepicker-toggle",6)(8,"mat-datepicker",null,0),_(10,pa,7,9,"mat-error"),i(),n(11,"mat-form-field",7)(12,"mat-label"),r(13),o(14,"translate"),i(),C(15,"input",8),i(),n(16,"mat-form-field",7)(17,"mat-label"),r(18),o(19,"translate"),i(),C(20,"input",9),i(),n(21,"mat-form-field",7)(22,"mat-label"),r(23),o(24,"translate"),i(),C(25,"input",10),i(),n(26,"mat-form-field",7)(27,"mat-label"),r(28),o(29,"translate"),i(),C(30,"input",11),i(),n(31,"mat-form-field",12)(32,"mat-label"),r(33),o(34,"translate"),i(),C(35,"input",13,1),_(37,da,7,9,"mat-error"),_(38,ua,4,6,"mat-error"),i(),n(39,"mat-form-field",7)(40,"mat-label"),r(41),o(42,"translate"),i(),C(43,"textarea",14),_(44,fa,7,9,"mat-error"),i()()()}if(p&2){let f,k=M(9);d("formGroup",s.makeAccountTransferForm),e(4),c(l(5,16,"labels.inputs.Transaction Date")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",k),e(),d("for",k),e(3),v(s.makeAccountTransferForm.controls.transferDate.hasError("required")?10:-1),e(3),c(l(14,18,"labels.inputs.Bank")),e(5),c(l(19,20,"labels.inputs.Client")),e(5),c(l(24,22,"labels.inputs.Account Type")),e(5),c(l(29,24,"labels.inputs.Account")),e(5),c(l(34,26,"labels.inputs.Amount")),e(4),v(s.makeAccountTransferForm.controls.transferAmount.hasError("required")?37:-1),e(),v((f=s.makeAccountTransferForm.get("transferAmount"))!=null&&f.hasError("amountExceedsBalance")?38:-1),e(3),c(l(42,28,"labels.inputs.Description")),e(3),v(s.makeAccountTransferForm.controls.transferDescription.hasError("required")?44:-1)}},dependencies:[q,R,nt,J,bt,K,it,ot,at,rt,Z,X,st,ct,tt,ut,ft,dt,_t,Lt,V],styles:["h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var il=(()=>{class t{static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275mod=Vt({type:t})}static{this.\u0275inj=qt({imports:[Ue,Le,$e,je,Xt,ee,ie,ne,ae,re,oe,ze]})}}return t})();export{il as AccountTransfersModule}; +import{a as B}from"./chunk-3NGD4RPL.js";import{$a as he,$d as Pe,Bd as X,Cd as st,Da as P,Dc as Ee,Dd as we,De as Ne,Ea as N,Ee as qe,Fb as q,Fd as ct,G,Ga as w,Gd as Z,H as qt,Hd as Lt,Ia as x,Id as tt,Ja as h,Jd as mt,K as T,Kg as Ue,L as b,Ld as pt,M as S,Mc as V,Na as Dt,Nd as Oe,Oa as At,Oc as De,Od as dt,Pa as Mt,Pd as ut,Qa as M,Qd as ft,Qe as yt,Rc as xt,Sc as Y,Sd as Ct,Ua as r,Ud as Q,Va as c,Wa as u,Wc as J,Xa as g,Xc as I,Xd as _t,Ya as Ie,Yc as K,Zc as it,_ as se,_a as Te,_f as Ve,ab as xe,ad as Bt,ag as Re,bb as Rt,bd as Ae,bg as Le,ca as e,cd as nt,cg as He,dd as bt,de as vt,eb as U,ed as Me,fb as et,fd as at,hb as o,hc as H,hf as Ht,ib as l,id as rt,if as $t,ja as O,jb as kt,jf as Ut,ka as Vt,kc as ht,kd as ke,lc as W,ld as ot,lf as Gt,mf as jt,na as y,nc as ce,nd as Be,of as zt,pb as be,pd as St,pf as Qt,pg as $e,qb as Se,qd as Fe,ra as _,rc as j,rd as R,rf as Wt,sa as v,sd as $,sf as Yt,ta as E,ua as D,uf as Jt,va as A,vd as z,wa as d,xa as n,xd as lt,xf as Ft,ya as i,za as C,zb as ye}from"./chunk-BJA4FJSH.js";import{a as Pt,b as Nt}from"./chunk-PHUH23IY.js";var Qe=()=>["../","edit"],We=()=>["../","list-account-transactions"];function Ye(t,m){t&1&&(n(0,"button",1),r(1),o(2,"translate"),i()),t&2&&(d("routerLink",U(4,We)),e(),u(" ",l(2,2,"labels.buttons.View Transactions History")," "))}function Je(t,m){t&1&&(n(0,"span"),r(1),o(2,"translate"),i()),t&2&&(e(),u(" ",l(2,1,"labels.inputs.Within Bank")," "))}function Ke(t,m){t&1&&(n(0,"span"),r(1),o(2,"translate"),i()),t&2&&(e(),u(" ",l(2,1,"labels.inputs.Own Account")," "))}var Xt=(()=>{class t{constructor(){this.route=T(H),this.allowclientedit=!1,this.route.data.subscribe(a=>{this.standingInstructionsData=a.standingInstructionsData,this.standingInstructionsData.fromClient.id===this.standingInstructionsData.toClient.id&&(this.allowclientedit=!1)})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-standing-instructions"]],decls:125,vars:90,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-fill"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"]],template:function(p,s){p&1&&(n(0,"div",0)(1,"button",1),C(2,"fa-icon",2),r(3),o(4,"translate"),i(),y(5,Ye,3,5,"button",3),i(),n(6,"div",4)(7,"mat-card")(8,"mat-card-content")(9,"div",5)(10,"h2",6),r(11),i(),C(12,"mat-divider",7),n(13,"div",8)(14,"span",9),r(15),o(16,"translate"),i(),n(17,"span",10),r(18),i()(),n(19,"div",8)(20,"span",9),r(21),o(22,"translate"),i(),n(23,"span",10),r(24),i()(),n(25,"div",8)(26,"span",9),r(27),o(28,"translate"),i(),n(29,"span",10),r(30),i()(),n(31,"div",8)(32,"span",9),r(33),o(34,"translate"),i(),n(35,"span",10),r(36),i()(),n(37,"div",8)(38,"span",9),r(39),o(40,"translate"),i(),n(41,"span",10),r(42),i()(),n(43,"div",8)(44,"span",9),r(45),o(46,"translate"),i(),n(47,"span",10),r(48),i()(),n(49,"div",8)(50,"span",9),r(51),o(52,"translate"),i(),n(53,"span",10),_(54,Je,3,3,"span"),_(55,Ke,3,3,"span"),i()(),n(56,"div",8)(57,"span",9),r(58),o(59,"translate"),i(),n(60,"span",10),r(61),i()(),n(62,"div",8)(63,"span",9),r(64),o(65,"translate"),i(),n(66,"span",10),r(67),i()(),n(68,"div",8)(69,"span",9),r(70),o(71,"translate"),i(),n(72,"span",10),r(73),i()(),n(74,"div",8)(75,"span",9),r(76),o(77,"translate"),i(),n(78,"span",10),r(79),i()(),n(80,"div",8)(81,"span",9),r(82),o(83,"translate"),i(),n(84,"span",10),r(85),i()(),n(86,"div",8)(87,"span",9),r(88),o(89,"translate"),i(),n(90,"span",10),r(91),i()(),n(92,"div",8)(93,"span",9),r(94),o(95,"translate"),i(),n(96,"span",10),r(97),o(98,"dateFormat"),o(99,"dateFormat"),i()(),n(100,"div",8)(101,"span",9),r(102),o(103,"translate"),i(),n(104,"span",10),r(105),i()(),n(106,"div",8)(107,"span",9),r(108),o(109,"translate"),i(),n(110,"span",10),r(111),i()(),n(112,"div",8)(113,"span",9),r(114),o(115,"translate"),i(),n(116,"span",10),r(117),i()(),n(118,"div",8)(119,"span",9),r(120),o(121,"translate"),i(),n(122,"span",10),r(123),o(124,"dateFormat"),i()()()()()()),p&2&&(e(),d("routerLink",U(89,Qe)),e(2),u(" ",l(4,45,"labels.buttons.Edit")," "),e(2),d("mifosxHasPermission","READ_ACCOUNTTRANSFER"),e(6),c(s.standingInstructionsData.name),e(),d("inset",!0),e(3),u("",l(16,47,"labels.inputs.Applicant"),":"),e(3),c(s.standingInstructionsData.fromClient.displayName),e(3),u("",l(22,49,"labels.inputs.Type"),":"),e(3),c(s.standingInstructionsData.transferType.value),e(3),u("",l(28,51,"labels.inputs.Priority"),":"),e(3),c(s.standingInstructionsData.priority.value),e(3),u("",l(34,53,"labels.inputs.Status"),":"),e(3),c(s.standingInstructionsData.status.value),e(3),u("",l(40,55,"labels.inputs.From Account Type"),":"),e(3),c(s.standingInstructionsData.fromAccountType.value),e(3),u("",l(46,57,"labels.inputs.From Account"),":"),e(3),g("",s.standingInstructionsData.fromAccount.productName," - ",s.standingInstructionsData.fromAccount.accountNo),e(3),u("",l(52,59,"labels.inputs.Destination"),":"),e(3),v(s.allowclientedit?54:-1),e(),v(s.allowclientedit?-1:55),e(3),u("",l(59,61,"labels.inputs.To Office"),":"),e(3),c(s.standingInstructionsData.toOffice.name),e(3),u("",l(65,63,"labels.inputs.Beneficiary"),":"),e(3),c(s.standingInstructionsData.toClient.displayName),e(3),u("",l(71,65,"labels.inputs.To Account Type"),":"),e(3),c(s.standingInstructionsData.toAccountType.value),e(3),u("",l(77,67,"labels.inputs.To Account"),":"),e(3),g("",s.standingInstructionsData.toAccount.productName," - ",s.standingInstructionsData.toAccount.accountNo),e(3),u("",l(83,69,"labels.inputs.Standing Instruction Type"),":"),e(3),c(s.standingInstructionsData.instructionType.value),e(3),u("",l(89,71,"labels.inputs.Amount"),":"),e(3),c(s.standingInstructionsData.amount),e(3),u("",l(95,73,"labels.inputs.Validity"),":"),e(3),g("",l(98,75,s.standingInstructionsData.validFrom)," - ",l(99,77,s.standingInstructionsData.validTill)),e(5),u("",l(103,79,"labels.inputs.Recurrence Type"),":"),e(3),c(s.standingInstructionsData.recurrenceType.value),e(3),u("",l(109,81,"labels.inputs.Interval"),":"),e(3),c(s.standingInstructionsData.recurrenceInterval),e(3),u("",l(115,83,"labels.inputs.Recurrence Frequency"),":"),e(3),c(s.standingInstructionsData.recurrenceFrequency.value),e(3),u("",l(121,85,"labels.inputs.On Month Day"),":"),e(3),c(l(124,87,s.standingInstructionsData.recurrenceOnMonthDay)))},dependencies:[q,R,W,$,z,j,Q,_t,vt,Ct,V],styles:[".mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 1em}"]})}}return t})();var Xe=()=>["../view"];function Ze(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ti(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Priority")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ei(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ii(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Status")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ni(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ai(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid From Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ri(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid Till Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function oi(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function li(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function si(t,m){if(t&1&&(n(0,"mat-option",12),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ci(t,m){if(t&1){let a=w();n(0,"button",33),x("click",function(){b(a);let s=h();return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h();d("disabled",!a.editStandingInstructionsForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}var ee=(()=>{class t{constructor(){this.formBuilder=T(St),this.route=T(H),this.router=T(ht),this.accountTransfersService=T(B),this.settingsService=T(Y),this.dateUtils=T(xt),this.allowclientedit=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.route.data.subscribe(a=>{this.standingInstructionsData=a.standingInstructionsDataAndTemplate,this.standingInstructionsId=a.standingInstructionsDataAndTemplate.id,this.standingInstructionsData.fromClient.id===this.standingInstructionsData.toClient.id&&(this.allowclientedit=!1),this.setOptions()})}ngOnInit(){this.createEditStandingInstructionsForm();let p=new Date().getFullYear();this.standingInstructionsData.recurrenceOnMonthDay&&this.standingInstructionsData.recurrenceOnMonthDay.push(p),this.editStandingInstructionsForm.patchValue({name:this.standingInstructionsData.name,applicant:this.standingInstructionsData.fromClient.displayName,type:this.standingInstructionsData.transferType.value,priority:this.standingInstructionsData.priority.id,status:this.standingInstructionsData.status.id,fromAccountType:this.standingInstructionsData.fromAccountType.value,fromAccount:this.standingInstructionsData.fromAccount.productName,destination:this.allowclientedit?"Within Bank":"Own Account",toOffice:this.standingInstructionsData.toOffice.name,toClientId:this.standingInstructionsData.toClient.displayName,toAccountType:this.standingInstructionsData.toAccountType.value,toAccount:this.standingInstructionsData.toAccount.productName,instructionType:this.standingInstructionsData.instructionType.id,amount:this.standingInstructionsData.amount,validFrom:this.standingInstructionsData.validFrom&&new Date(this.standingInstructionsData.validFrom),validTill:this.standingInstructionsData.validTill&&new Date(this.standingInstructionsData.validTill),recurrenceType:this.standingInstructionsData.recurrenceType.id,recurrenceInterval:this.standingInstructionsData.recurrenceInterval,recurrenceFrequency:this.standingInstructionsData.recurrenceFrequency.id,recurrenceOnMonthDay:this.standingInstructionsData.recurrenceOnMonthDay&&new Date(this.standingInstructionsData.recurrenceOnMonthDay)})}createEditStandingInstructionsForm(){this.editStandingInstructionsForm=this.formBuilder.group({name:[{value:"",disabled:!0}],applicant:[{value:"",disabled:!0}],type:[{value:"",disabled:!0}],priority:["",I.required],status:["",I.required],fromAccountType:[{value:"",disabled:!0}],fromAccount:[{value:"",disabled:!0}],destination:[{value:"",disabled:!0}],toOffice:[{value:"",disabled:!0}],toClientId:[{value:"",disabled:!0}],toAccountType:[{value:"",disabled:!0}],toAccount:[{value:"",disabled:!0}],instructionType:"",amount:"",validFrom:["",I.required],validTill:["",I.required],recurrenceType:["",I.required],recurrenceInterval:"",recurrenceFrequency:"",recurrenceOnMonthDay:""})}setOptions(){this.priorityTypeData=this.standingInstructionsData.priorityOptions,this.statusTypeData=this.standingInstructionsData.statusOptions,this.instructionTypeData=this.standingInstructionsData.instructionTypeOptions,this.recurrenceTypeData=this.standingInstructionsData.recurrenceTypeOptions,this.recurrenceFrequencyTypeData=this.standingInstructionsData.recurrenceFrequencyOptions}submit(){let a=this.settingsService.dateFormat,p=this.settingsService.language.code,s={amount:this.editStandingInstructionsForm.value.amount,dateFormat:a,instructionType:this.editStandingInstructionsForm.value.instructionType,locale:p,monthDayFormat:"dd MMMM",priority:this.editStandingInstructionsForm.value.priority,recurrenceFrequency:this.editStandingInstructionsForm.value.recurrenceFrequency,recurrenceInterval:this.editStandingInstructionsForm.value.recurrenceInterval,recurrenceOnMonthDay:this.dateUtils.formatDate(this.editStandingInstructionsForm.value.recurrenceOnMonthDay,"dd MMMM"),recurrenceType:this.editStandingInstructionsForm.value.recurrenceType,status:this.editStandingInstructionsForm.value.status,validFrom:this.dateUtils.formatDate(this.editStandingInstructionsForm.value.validFrom,a),validTill:this.dateUtils.formatDate(this.editStandingInstructionsForm.value.validTill,a)};this.accountTransfersService.updateStandingInstructionsData(this.standingInstructionsId,s).subscribe(f=>{this.router.navigate(["../view"],{relativeTo:this.route})})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-standing-instructions"]],decls:134,vars:84,consts:[["validFromDatePicker",""],["validTillDatePicker",""],["recurrenceOnMonthDayDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name"],["matInput","","formControlName","applicant"],["matInput","","formControlName","type"],["matInput","","formControlName","fromAccountType"],["required","","formControlName","priority"],[3,"value"],["required","","formControlName","status"],["matInput","","formControlName","fromAccount"],["matInput","","formControlName","destination"],["matInput","","formControlName","toOffice"],["matInput","","formControlName","toClientId"],["matInput","","formControlName","toAccountType"],["matInput","","formControlName","toAccount"],["formControlName","instructionType"],["matInput","","formControlName","amount"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","validFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","validTill",3,"min","max","matDatepicker"],["required","","formControlName","recurrenceType"],["matInput","","formControlName","recurrenceInterval"],["formControlName","recurrenceFrequency"],["matInput","","formControlName","recurrenceOnMonthDay",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(p,s){if(p&1){let f=w();n(0,"div",3)(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"mat-form-field",6)(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",7),i(),n(10,"mat-form-field",6)(11,"mat-label"),r(12),o(13,"translate"),i(),C(14,"input",8),i(),n(15,"mat-form-field",6)(16,"mat-label"),r(17),o(18,"translate"),i(),C(19,"input",9),i(),n(20,"mat-form-field",6)(21,"mat-label"),r(22),o(23,"translate"),i(),C(24,"input",10),i(),n(25,"mat-form-field",6)(26,"mat-label"),r(27),o(28,"translate"),i(),n(29,"mat-select",11),D(30,Ze,2,2,"mat-option",12,E),i(),_(32,ti,7,9,"mat-error"),i(),n(33,"mat-form-field",6)(34,"mat-label"),r(35),o(36,"translate"),i(),n(37,"mat-select",13),D(38,ei,2,2,"mat-option",12,E),i(),_(40,ii,7,9,"mat-error"),i(),n(41,"mat-form-field",6)(42,"mat-label"),r(43),o(44,"translate"),i(),C(45,"input",14),i(),n(46,"mat-form-field",6)(47,"mat-label"),r(48),o(49,"translate"),i(),C(50,"input",15),i(),n(51,"mat-form-field",6)(52,"mat-label"),r(53),o(54,"translate"),i(),C(55,"input",16),i(),n(56,"mat-form-field",6)(57,"mat-label"),r(58),o(59,"translate"),i(),C(60,"input",17),i(),n(61,"mat-form-field",6)(62,"mat-label"),r(63),o(64,"translate"),i(),C(65,"input",18),i(),n(66,"mat-form-field",6)(67,"mat-label"),r(68),o(69,"translate"),i(),C(70,"input",19),i(),n(71,"mat-form-field",6)(72,"mat-label"),r(73),o(74,"translate"),i(),n(75,"mat-select",20),D(76,ni,2,2,"mat-option",12,E),i()(),n(78,"mat-form-field",6)(79,"mat-label"),r(80),o(81,"translate"),i(),C(82,"input",21),i(),n(83,"mat-form-field",22),x("click",function(){b(f);let F=M(90);return S(F.open())}),n(84,"mat-label"),r(85),o(86,"translate"),i(),C(87,"input",23)(88,"mat-datepicker-toggle",24)(89,"mat-datepicker",null,0),_(91,ai,7,9,"mat-error"),i(),n(92,"mat-form-field",22),x("click",function(){b(f);let F=M(99);return S(F.open())}),n(93,"mat-label"),r(94),o(95,"translate"),i(),C(96,"input",25)(97,"mat-datepicker-toggle",24)(98,"mat-datepicker",null,1),_(100,ri,7,9,"mat-error"),i(),n(101,"mat-form-field",6)(102,"mat-label"),r(103),o(104,"translate"),i(),n(105,"mat-select",26),D(106,oi,2,2,"mat-option",12,E),i(),_(108,li,7,9,"mat-error"),i(),n(109,"mat-form-field",6)(110,"mat-label"),r(111),o(112,"translate"),i(),C(113,"input",27),i(),n(114,"mat-form-field",6)(115,"mat-label"),r(116),o(117,"translate"),i(),n(118,"mat-select",28),D(119,si,2,2,"mat-option",12,E),i()(),n(121,"mat-form-field",22),x("click",function(){b(f);let F=M(128);return S(F.open())}),n(122,"mat-label"),r(123),o(124,"translate"),i(),C(125,"input",29)(126,"mat-datepicker-toggle",24)(127,"mat-datepicker",null,2),i()()(),n(129,"mat-card-actions",30)(130,"button",31),r(131),o(132,"translate"),i(),y(133,ci,3,4,"button",32),i()()()()}if(p&2){let f=M(90),k=M(99),F=M(128);e(2),d("formGroup",s.editStandingInstructionsForm),e(5),c(l(8,41,"labels.inputs.name")),e(5),c(l(13,43,"labels.inputs.Applicant")),e(5),c(l(18,45,"labels.inputs.Type")),e(5),c(l(23,47,"labels.inputs.From Account Type")),e(5),c(l(28,49,"labels.inputs.Priority")),e(3),A(s.priorityTypeData),e(2),v(s.editStandingInstructionsForm.controls.priority.hasError("required")?32:-1),e(3),c(l(36,51,"labels.inputs.Status")),e(3),A(s.statusTypeData),e(2),v(s.editStandingInstructionsForm.controls.status.hasError("required")?40:-1),e(3),c(l(44,53,"labels.inputs.From Account")),e(5),c(l(49,55,"labels.inputs.Destination")),e(5),c(l(54,57,"labels.inputs.To Office")),e(5),c(l(59,59,"labels.inputs.Beneficiary")),e(5),c(l(64,61,"labels.inputs.To Account Type")),e(5),c(l(69,63,"labels.inputs.To Account")),e(5),c(l(74,65,"labels.inputs.Standing Instruction Type")),e(3),A(s.instructionTypeData),e(4),c(l(81,67,"labels.inputs.Amount")),e(5),c(l(86,69,"labels.inputs.Validity from")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",f),e(),d("for",f),e(3),v(s.editStandingInstructionsForm.controls.validFrom.hasError("required")?91:-1),e(3),c(l(95,71,"labels.inputs.Validity To")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",k),e(),d("for",k),e(3),v(s.editStandingInstructionsForm.controls.validTill.hasError("required")?100:-1),e(3),c(l(104,73,"labels.inputs.Recurrence Type")),e(3),A(s.recurrenceTypeData),e(2),v(s.editStandingInstructionsForm.controls.recurrenceType.hasError("required")?108:-1),e(3),c(l(112,75,"labels.inputs.Interval")),e(5),c(l(117,77,"labels.inputs.Recurrence Frequency")),e(3),A(s.recurrenceFrequencyTypeData),e(4),c(l(124,79,"labels.inputs.On Month Day")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",F),e(),d("for",F),e(4),d("routerLink",U(83,Xe)),e(),u(" ",l(132,81,"labels.buttons.Cancel")," "),e(2),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION")}},dependencies:[q,R,nt,J,K,it,ot,at,rt,W,$,z,lt,Z,X,st,ct,tt,pt,mt,ut,ft,dt,j,Q,V],encapsulation:2})}}return t})();var mi=()=>["../"];function pi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.name")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.inputs.required")))}function di(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function ui(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.inputs.required")))}function fi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Ci(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Priority")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function _i(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function vi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Status")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function gi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Ii(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.From Account Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ti(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),g(" ",a.productName," - ",a.accountNo," ")}}function hi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.From Account")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function xi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function bi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Destination")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Si(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.name," ")}}function yi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.To Office")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ei(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.displayName," ")}}function Di(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Beneficiary")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ai(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Mi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.To Account Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ki(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),g(" ",a.productName," - ",a.accountNo," ")}}function Bi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.To Account")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Fi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function wi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Standing Instruction Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Oi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Pi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid From Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ni(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Valid Till Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function qi(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Vi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ri(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Interval")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Li(t,m){if(t&1&&(n(0,"mat-option",10),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function Hi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Recurrence Frequency")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function $i(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.On Month Day")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ui(t,m){if(t&1){let a=w();n(0,"button",33),x("click",function(){b(a);let s=h();return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h();d("disabled",!a.createStandingInstructionsForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}var ie=(()=>{class t{constructor(){this.formBuilder=T(St),this.route=T(H),this.router=T(ht),this.accountTransfersService=T(B),this.settingsService=T(Y),this.dateUtils=T(xt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.allowclientedit=!0,this.route.data.subscribe(a=>{this.standingIntructionsTemplate=a.standingIntructionsTemplate,this.setParams(),this.setOptions()})}setParams(){switch(this.officeId=this.route.snapshot.queryParams.officeId,this.accountType=this.route.snapshot.queryParams.accountType,this.clientId=this.route.parent.snapshot.params.clientId,this.accountType){case"fromloans":this.accountTypeId="1";break;case"fromsavings":this.accountTypeId="2";break;default:this.accountTypeId="0"}}ngOnInit(){this.createCreateStandingInstructionsForm(),this.buildDependencies(),this.createStandingInstructionsForm.patchValue({applicant:this.standingIntructionsTemplate.fromClient.displayName})}createCreateStandingInstructionsForm(){this.createStandingInstructionsForm=this.formBuilder.group({name:["",I.required],applicant:[{value:"",disabled:!0}],transferType:["",I.required],priority:["",I.required],status:["",I.required],fromAccountType:["",I.required],fromAccountId:["",I.required],destination:["",I.required],toOfficeId:["",I.required],toClientId:["",I.required],toAccountType:["",I.required],toAccountId:["",I.required],instructionType:["",I.required],amount:["",I.required],validFrom:["",I.required],validTill:["",I.required],recurrenceType:["",I.required],recurrenceInterval:["",I.required],recurrenceFrequency:["",I.required],recurrenceOnMonthDay:["",I.required]})}setOptions(){this.transferTypeData=this.standingIntructionsTemplate.transferTypeOptions,this.priorityTypeData=this.standingIntructionsTemplate.priorityOptions,this.statusTypeData=this.standingIntructionsTemplate.statusOptions,this.fromAccountTypeData=this.standingIntructionsTemplate.fromAccountTypeOptions,this.fromAccountData=this.standingIntructionsTemplate.fromAccountOptions,this.destinationTypeData=[{id:1,value:"own account"},{id:2,value:"with in bank"}],this.toOfficeTypeData=this.standingIntructionsTemplate.toOfficeOptions,this.toClientTypeData=this.standingIntructionsTemplate.toClientOptions,this.toAccountTypeData=this.standingIntructionsTemplate.toAccountTypeOptions,this.toAccountData=this.standingIntructionsTemplate.toAccountOptions,this.instructionTypeData=this.standingIntructionsTemplate.instructionTypeOptions,this.recurrenceTypeData=this.standingIntructionsTemplate.recurrenceTypeOptions,this.recurrenceFrequencyTypeData=this.standingIntructionsTemplate.recurrenceFrequencyOptions}buildDependencies(){this.createStandingInstructionsForm.get("destination").valueChanges.subscribe(a=>{a===1?(this.allowclientedit=!1,this.createStandingInstructionsForm.patchValue({toOfficeId:this.officeId,toClientId:this.clientId}),this.ToOfficeId=!0,this.ToClientId=!0,this.changeEvent()):(this.allowclientedit=!0,this.createStandingInstructionsForm.patchValue({toOfficeId:"",toClientId:""}),this.createStandingInstructionsForm.controls.toOfficeId.enable(),this.createStandingInstructionsForm.controls.toClientId.enable())})}changeEvent(){let a=this.refineObject(this.createStandingInstructionsForm.value);this.accountTransfersService.getStandingInstructionsTemplate(this.clientId,this.officeId,this.accountTypeId,a).subscribe(p=>{this.standingIntructionsTemplate=p,this.setOptions()})}refineObject(a){let p=Object.getOwnPropertyNames(a);for(let s=0;s{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-create-standing-instructions"]],decls:164,vars:100,consts:[["validFromDatePicker",""],["validTillDatePicker",""],["recurrenceOnMonthDayDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["matInput","","formControlName","applicant"],["required","","formControlName","transferType",3,"selectionChange"],[3,"value"],["required","","formControlName","priority"],["required","","formControlName","status"],["required","","formControlName","fromAccountType",3,"selectionChange"],["required","","formControlName","fromAccountId",3,"selectionChange"],["required","","formControlName","destination"],["required","","formControlName","toOfficeId",3,"selectionChange","disabled"],["required","","formControlName","toClientId",3,"selectionChange","disabled"],["required","","formControlName","toAccountType",3,"selectionChange"],["required","","formControlName","toAccountId",3,"selectionChange"],["formControlName","instructionType"],["type","number","matInput","","required","","formControlName","amount"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","validFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","validTill",3,"min","max","matDatepicker"],["required","","formControlName","recurrenceType"],["type","number","matInput","","required","","formControlName","recurrenceInterval"],["required","","formControlName","recurrenceFrequency"],["required","","matInput","","formControlName","recurrenceOnMonthDay",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(p,s){if(p&1){let f=w();n(0,"div",3)(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"mat-form-field",6)(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",7),_(10,pi,7,9,"mat-error"),i(),n(11,"mat-form-field",6)(12,"mat-label"),r(13),o(14,"translate"),i(),C(15,"input",8),i(),n(16,"mat-form-field",6)(17,"mat-label"),r(18),o(19,"translate"),i(),n(20,"mat-select",9),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(21,di,2,2,"mat-option",10,E),i(),_(23,ui,7,9,"mat-error"),i(),n(24,"mat-form-field",6)(25,"mat-label"),r(26),o(27,"translate"),i(),n(28,"mat-select",11),D(29,fi,2,2,"mat-option",10,E),i(),_(31,Ci,7,9,"mat-error"),i(),n(32,"mat-form-field",6)(33,"mat-label"),r(34),o(35,"translate"),i(),n(36,"mat-select",12),D(37,_i,2,2,"mat-option",10,E),i(),_(39,vi,7,9,"mat-error"),i(),n(40,"mat-form-field",6)(41,"mat-label"),r(42),o(43,"translate"),i(),n(44,"mat-select",13),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(45,gi,2,2,"mat-option",10,E),i(),_(47,Ii,7,9,"mat-error"),i(),n(48,"mat-form-field",6)(49,"mat-label"),r(50),o(51,"translate"),i(),n(52,"mat-select",14),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(53,Ti,2,3,"mat-option",10,E),i(),_(55,hi,7,9,"mat-error"),i(),n(56,"mat-form-field",6)(57,"mat-label"),r(58),o(59,"translate"),i(),n(60,"mat-select",15),D(61,xi,2,2,"mat-option",10,E),i(),_(63,bi,7,9,"mat-error"),i(),n(64,"mat-form-field",6)(65,"mat-label"),r(66),o(67,"translate"),i(),n(68,"mat-select",16),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(69,Si,2,2,"mat-option",10,E),i(),_(71,yi,7,9,"mat-error"),i(),n(72,"mat-form-field",6)(73,"mat-label"),r(74),o(75,"translate"),i(),n(76,"mat-select",17),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(77,Ei,2,2,"mat-option",10,E),i(),_(79,Di,7,9,"mat-error"),i(),n(80,"mat-form-field",6)(81,"mat-label"),r(82),o(83,"translate"),i(),n(84,"mat-select",18),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(85,Ai,2,2,"mat-option",10,E),i(),_(87,Mi,7,9,"mat-error"),i(),n(88,"mat-form-field",6)(89,"mat-label"),r(90),o(91,"translate"),i(),n(92,"mat-select",19),x("selectionChange",function(){return b(f),S(s.changeEvent())}),D(93,ki,2,3,"mat-option",10,E),i(),_(95,Bi,7,9,"mat-error"),i(),n(96,"mat-form-field",6)(97,"mat-label"),r(98),o(99,"translate"),i(),n(100,"mat-select",20),D(101,Fi,2,2,"mat-option",10,E),i(),_(103,wi,7,9,"mat-error"),i(),n(104,"mat-form-field",6)(105,"mat-label"),r(106),o(107,"translate"),i(),C(108,"input",21),_(109,Oi,7,9,"mat-error"),i(),n(110,"mat-form-field",22),x("click",function(){b(f);let F=M(117);return S(F.open())}),n(111,"mat-label"),r(112),o(113,"translate"),i(),C(114,"input",23)(115,"mat-datepicker-toggle",24)(116,"mat-datepicker",null,0),_(118,Pi,7,9,"mat-error"),i(),n(119,"mat-form-field",22),x("click",function(){b(f);let F=M(126);return S(F.open())}),n(120,"mat-label"),r(121),o(122,"translate"),i(),C(123,"input",25)(124,"mat-datepicker-toggle",24)(125,"mat-datepicker",null,1),_(127,Ni,7,9,"mat-error"),i(),n(128,"mat-form-field",6)(129,"mat-label"),r(130),o(131,"translate"),i(),n(132,"mat-select",26),D(133,qi,2,2,"mat-option",10,E),i(),_(135,Vi,7,9,"mat-error"),i(),n(136,"mat-form-field",6)(137,"mat-label"),r(138),o(139,"translate"),i(),C(140,"input",27),_(141,Ri,7,9,"mat-error"),i(),n(142,"mat-form-field",6)(143,"mat-label"),r(144),o(145,"translate"),i(),n(146,"mat-select",28),D(147,Li,2,2,"mat-option",10,E),i(),_(149,Hi,7,9,"mat-error"),i(),n(150,"mat-form-field",22),x("click",function(){b(f);let F=M(157);return S(F.open())}),n(151,"mat-label"),r(152),o(153,"translate"),i(),C(154,"input",29)(155,"mat-datepicker-toggle",24)(156,"mat-datepicker",null,2),_(158,$i,7,9,"mat-error"),i()()(),n(159,"mat-card-actions",30)(160,"button",31),r(161),o(162,"translate"),i(),y(163,Ui,3,4,"button",32),i()()()()}if(p&2){let f=M(117),k=M(126),F=M(157);e(2),d("formGroup",s.createStandingInstructionsForm),e(5),c(l(8,57,"labels.inputs.name")),e(3),v(s.createStandingInstructionsForm.controls.name.hasError("required")?10:-1),e(3),c(l(14,59,"labels.inputs.Applicant")),e(5),c(l(19,61,"labels.inputs.Type")),e(3),A(s.transferTypeData),e(2),v(s.createStandingInstructionsForm.controls.transferType.hasError("required")?23:-1),e(3),c(l(27,63,"labels.inputs.Priority")),e(3),A(s.priorityTypeData),e(2),v(s.createStandingInstructionsForm.controls.priority.hasError("required")?31:-1),e(3),c(l(35,65,"labels.inputs.Status")),e(3),A(s.statusTypeData),e(2),v(s.createStandingInstructionsForm.controls.status.hasError("required")?39:-1),e(3),c(l(43,67,"labels.inputs.From Account Type")),e(3),A(s.fromAccountTypeData),e(2),v(s.createStandingInstructionsForm.controls.fromAccountType.hasError("required")?47:-1),e(3),c(l(51,69,"labels.inputs.From Account")),e(3),A(s.fromAccountData),e(2),v(s.createStandingInstructionsForm.controls.fromAccountId.hasError("required")?55:-1),e(3),c(l(59,71,"labels.inputs.Destination")),e(3),A(s.destinationTypeData),e(2),v(s.createStandingInstructionsForm.controls.destination.hasError("required")?63:-1),e(3),c(l(67,73,"labels.inputs.To Office")),e(2),d("disabled",s.ToOfficeId),e(),A(s.toOfficeTypeData),e(2),v(s.createStandingInstructionsForm.controls.toOfficeId.hasError("required")?71:-1),e(3),c(l(75,75,"labels.inputs.Beneficiary")),e(2),d("disabled",s.ToClientId),e(),A(s.toClientTypeData),e(2),v(s.createStandingInstructionsForm.controls.toClientId.hasError("required")?79:-1),e(3),c(l(83,77,"labels.inputs.To Account Type")),e(3),A(s.toAccountTypeData),e(2),v(s.createStandingInstructionsForm.controls.toAccountType.hasError("required")?87:-1),e(3),c(l(91,79,"labels.inputs.To Account")),e(3),A(s.toAccountData),e(2),v(s.createStandingInstructionsForm.controls.toAccountId.hasError("required")?95:-1),e(3),c(l(99,81,"labels.inputs.Standing Instruction Type")),e(3),A(s.instructionTypeData),e(2),v(s.createStandingInstructionsForm.controls.instructionType.hasError("required")?103:-1),e(3),c(l(107,83,"labels.inputs.Amount")),e(3),v(s.createStandingInstructionsForm.controls.amount.hasError("required")?109:-1),e(3),c(l(113,85,"labels.inputs.Validity from")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",f),e(),d("for",f),e(3),v(s.createStandingInstructionsForm.controls.validFrom.hasError("required")?118:-1),e(3),c(l(122,87,"labels.inputs.Validity To")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",k),e(),d("for",k),e(3),v(s.createStandingInstructionsForm.controls.validTill.hasError("required")?127:-1),e(3),c(l(131,89,"labels.inputs.Recurrence Type")),e(3),A(s.recurrenceTypeData),e(2),v(s.createStandingInstructionsForm.controls.recurrenceType.hasError("required")?135:-1),e(3),c(l(139,91,"labels.inputs.Interval")),e(3),v(s.createStandingInstructionsForm.controls.recurrenceInterval.hasError("required")?141:-1),e(3),c(l(145,93,"labels.inputs.Recurrence Frequency")),e(3),A(s.recurrenceFrequencyTypeData),e(2),v(s.createStandingInstructionsForm.controls.recurrenceFrequency.hasError("required")?149:-1),e(3),c(l(153,95,"labels.inputs.On Month Day")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",F),e(),d("for",F),e(3),v(s.createStandingInstructionsForm.controls.recurrenceOnMonthDay.hasError("required")?158:-1),e(2),d("routerLink",U(99,mi)),e(),u(" ",l(162,97,"labels.buttons.Cancel")," "),e(2),d("mifosxHasPermission","CREATE_STANDINGINSTRUCTION")}},dependencies:[q,R,nt,J,bt,K,it,ot,at,rt,W,$,z,lt,Z,X,st,ct,tt,pt,mt,ut,ft,dt,j,Q,V],encapsulation:2})}}return t})();var Ge=t=>({balance:t}),Gi=()=>["../.."];function ji(t,m){t&1&&(n(0,"div",4),C(1,"div",6)(2,"div",7)(3,"div",8)(4,"div",9),i())}function zi(t,m){if(t&1){let a=w();P(0),n(1,"button",23),x("click",function(){b(a);let s=h(4);return S(s.searchAccountByNumber())}),r(2),o(3,"translate"),i(),N()}if(t&2){let a=h(4);e(),d("disabled",a.phoneAccount.length!==10),e(),u(" ",l(3,2,"labels.buttons.Search")," ")}}function Qi(t,m){t&1&&(n(0,"mat-card-actions",17),y(1,zi,4,4,"ng-container",22),i()),t&2&&(e(),d("mifosxHasPermission","CREATE_ACCOUNTTRANSFER"))}function Wi(t,m){if(t&1){let a=w();n(0,"div",10)(1,"div",18)(2,"h3",11),r(3),o(4,"translate"),i(),n(5,"mat-form-field",19)(6,"mat-label"),r(7),o(8,"translate"),i(),n(9,"input",20,0),xe("ngModelChange",function(s){b(a);let f=h(2);return he(f.phoneAccount,s)||(f.phoneAccount=s),S(s)}),i(),n(11,"mat-hint",21),r(12),i()()(),_(13,Qi,2,1,"mat-card-actions",17),i()}if(t&2){let a=h(2);e(3),c(l(4,6,"labels.heading.Transferred To")),e(4),c(l(8,8,"labels.inputs.Phone Number")),e(2),d("readonly",a.interbankTransferForm),Te("ngModel",a.phoneAccount),e(3),u("",a.phoneAccount.length||0,"/10"),e(),v(a.interbankTransferForm?-1:13)}}function Yi(t,m){t&1&&C(0,"mat-divider")}function Ji(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Ki(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.name," ")}}function Xi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Office")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Zi(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Client")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function tn(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a),e(),g(" ",a.id," - ",a.displayName," ")}}function en(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function nn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Account Type")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function an(t,m){if(t&1&&(n(0,"mat-option",30),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),g(" ",a.productName," - ",a.accountNo," ")}}function rn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Account")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function on(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ln(t,m){if(t&1&&(n(0,"mat-error"),C(1,"fa-icon",38),r(2),o(3,"translate"),i()),t&2){let a=h(3);e(2),u(" ",kt(3,1,"errors.validation.msg.savingsproduct.insufficient.balance",et(4,Ge,a.balance))," ")}}function sn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Description")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function cn(t,m){if(t&1){let a=w();n(0,"form",16)(1,"h3",11),r(2),o(3,"translate"),i(),n(4,"div",24)(5,"mat-form-field",25),x("click",function(){b(a);let s=M(12);return S(s.open())}),n(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",26)(10,"mat-datepicker-toggle",27)(11,"mat-datepicker",null,1),_(13,Ji,7,9,"mat-error"),i(),n(14,"mat-form-field",28)(15,"mat-label"),r(16),o(17,"translate"),i(),n(18,"mat-select",29),x("selectionChange",function(){b(a);let s=h(2);return S(s.changeEvent())}),D(19,Ki,2,2,"mat-option",30,E),i(),_(21,Xi,7,9,"mat-error"),i(),n(22,"mat-form-field",28)(23,"mat-label"),r(24),o(25,"translate"),i(),C(26,"input",31),_(27,Zi,7,9,"mat-error"),i(),n(28,"mat-autocomplete",32,2),D(30,tn,2,3,"mat-option",30,E),i(),n(32,"mat-form-field",28)(33,"mat-label"),r(34),o(35,"translate"),i(),n(36,"mat-select",33),x("selectionChange",function(){b(a);let s=h(2);return S(s.changeEvent())}),D(37,en,2,2,"mat-option",30,E),i(),_(39,nn,7,9,"mat-error"),i(),n(40,"mat-form-field",28)(41,"mat-label"),r(42),o(43,"translate"),i(),n(44,"mat-select",34),x("selectionChange",function(){b(a);let s=h(2);return S(s.changeEvent())}),D(45,an,2,3,"mat-option",30,E),i(),_(47,rn,7,9,"mat-error"),i(),n(48,"mat-form-field",28)(49,"mat-label"),r(50),o(51,"translate"),i(),C(52,"input",35),_(53,on,7,9,"mat-error"),_(54,ln,4,6,"mat-error"),i(),n(55,"mat-form-field",36)(56,"mat-label"),r(57),o(58,"translate"),i(),C(59,"textarea",37),_(60,sn,7,9,"mat-error"),i()()()}if(t&2){let a,p=M(12),s=M(29),f=h(2);d("formGroup",f.makeAccountTransferForm),e(2),c(l(3,23,"labels.heading.Transfer Details")),e(5),c(l(8,25,"labels.inputs.Transaction Date")),e(2),d("min",f.minDate)("max",f.maxDate)("matDatepicker",p),e(),d("for",p),e(3),v(f.makeAccountTransferForm.controls.transferDate.hasError("required")?13:-1),e(3),c(l(17,27,"labels.inputs.Office")),e(3),A(f.toOfficeTypeData),e(2),v(f.makeAccountTransferForm.controls.toOfficeId.hasError("required")?21:-1),e(3),c(l(25,29,"labels.inputs.Client")),e(2),d("matAutocomplete",s),e(),v(f.makeAccountTransferForm.controls.toClientId.hasError("required")?27:-1),e(),d("displayWith",f.displayClient),e(2),A(f.clientsData),e(4),c(l(35,31,"labels.inputs.Account Type")),e(3),A(f.toAccountTypeData),e(2),v(f.makeAccountTransferForm.controls.toAccountType.hasError("required")?39:-1),e(3),c(l(43,33,"labels.inputs.Account")),e(3),A(f.toAccountData),e(2),v(f.makeAccountTransferForm.controls.toAccountId.hasError("required")?47:-1),e(3),c(l(51,35,"labels.inputs.Amount")),e(3),v(f.makeAccountTransferForm.controls.transferAmount.hasError("required")?53:-1),e(),v((a=f.makeAccountTransferForm.get("transferAmount"))!=null&&a.hasError("amountExceedsBalance")?54:-1),e(3),c(l(58,37,"labels.inputs.Description")),e(3),v(f.makeAccountTransferForm.controls.transferDescription.hasError("required")?60:-1)}}function mn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function pn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function dn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),i()),t&2&&(e(),g(" ",l(2,2,"labels.inputs.Amount")," ",l(3,4,"labels.commons.mustBeAtLeast")," 0.01 "))}function un(t,m){if(t&1&&(n(0,"mat-error"),C(1,"fa-icon",38),r(2),o(3,"translate"),i()),t&2){let a=h(3);e(2),u(" ",kt(3,1,"errors.validation.msg.savingsproduct.insufficient.balance",et(4,Ge,a.balance))," ")}}function fn(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Description")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function Cn(t,m){if(t&1){let a=w();n(0,"form",16)(1,"h3",11),r(2),o(3,"translate"),i(),n(4,"div",24)(5,"mat-form-field",25),x("click",function(){b(a);let s=M(12);return S(s.open())}),n(6,"mat-label"),r(7),o(8,"translate"),i(),C(9,"input",26)(10,"mat-datepicker-toggle",27)(11,"mat-datepicker",null,1),_(13,mn,7,9,"mat-error"),i(),n(14,"mat-form-field",28)(15,"mat-label"),r(16),o(17,"translate"),i(),C(18,"input",39),i(),n(19,"mat-form-field",28)(20,"mat-label"),r(21),o(22,"translate"),i(),C(23,"input",40),i(),n(24,"mat-form-field",28)(25,"mat-label"),r(26),o(27,"translate"),i(),C(28,"input",41),i(),n(29,"mat-form-field",28)(30,"mat-label"),r(31),o(32,"translate"),i(),C(33,"input",42),i(),n(34,"mat-form-field",28)(35,"mat-label"),r(36),o(37,"translate"),i(),C(38,"input",35),_(39,pn,7,9,"mat-error"),_(40,dn,4,6,"mat-error"),_(41,un,4,6,"mat-error"),i(),n(42,"mat-form-field",36)(43,"mat-label"),r(44),o(45,"translate"),i(),C(46,"textarea",37),_(47,fn,7,9,"mat-error"),i()()()}if(t&2){let a,p=M(12),s=h(2);d("formGroup",s.makeAccountTransferForm),e(2),c(l(3,22,"labels.heading.Transfer Details")),e(5),c(l(8,24,"labels.inputs.Transaction Date")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",p),e(),d("for",p),e(3),v(s.makeAccountTransferForm.controls.transferDate.hasError("required")?13:-1),e(3),c(l(17,26,"labels.inputs.Bank")),e(2),d("readonly",!0),e(3),c(l(22,28,"labels.inputs.Client")),e(2),d("readonly",!0),e(3),c(l(27,30,"labels.inputs.Account Type")),e(2),d("readonly",!0),e(3),c(l(32,32,"labels.inputs.Account")),e(2),d("readonly",!0),e(3),c(l(37,34,"labels.inputs.Amount")),e(3),v(s.makeAccountTransferForm.controls.transferAmount.hasError("required")?39:-1),e(),v(s.makeAccountTransferForm.controls.transferAmount.hasError("min")?40:-1),e(),v((a=s.makeAccountTransferForm.get("transferAmount"))!=null&&a.hasError("amountExceedsBalance")?41:-1),e(3),c(l(45,36,"labels.inputs.Description")),e(3),v(s.makeAccountTransferForm.controls.transferDescription.hasError("required")?47:-1)}}function _n(t,m){if(t&1){let a=w();n(0,"button",45),x("click",function(){b(a);let s=h(4);return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h(4);d("disabled",!a.makeAccountTransferForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}function vn(t,m){if(t&1){let a=w();n(0,"button",45),x("click",function(){b(a);let s=h(4);return S(s.submit())}),r(1),o(2,"translate"),i()}if(t&2){let a=h(4);d("disabled",!a.makeAccountTransferForm.valid),e(),u(" ",l(2,2,"labels.buttons.Submit")," ")}}function gn(t,m){if(t&1&&(P(0),_(1,_n,3,4,"button",44),_(2,vn,3,4,"button",44),N()),t&2){let a=h(3);e(),v(a.interbank&&a.interbankTransferForm?1:-1),e(),v(a.interbank?-1:2)}}function In(t,m){t&1&&(n(0,"mat-card-actions",17)(1,"button",43),r(2),o(3,"translate"),i(),y(4,gn,3,2,"ng-container",22),i()),t&2&&(e(),d("routerLink",U(5,Gi)),e(),u(" ",l(3,3,"labels.buttons.Cancel")," "),e(2),d("mifosxHasPermission","CREATE_ACCOUNTTRANSFER"))}function Tn(t,m){if(t&1&&(n(0,"mat-card",5)(1,"mat-card-content")(2,"div",10)(3,"h3",11),r(4),o(5,"translate"),i(),C(6,"mat-divider"),n(7,"div",12)(8,"div",13)(9,"div",14),r(10),o(11,"translate"),i(),n(12,"div",15),r(13),i()(),n(14,"div",13)(15,"div",14),r(16),o(17,"translate"),i(),n(18,"div",15),r(19),i()(),n(20,"div",13)(21,"div",14),r(22),o(23,"translate"),i(),n(24,"div",15),r(25),i()(),n(26,"div",13)(27,"div",14),r(28),o(29,"translate"),i(),n(30,"div",15),r(31),i()(),n(32,"div",13)(33,"div",14),r(34),o(35,"translate"),i(),n(36,"div",15),r(37),i()()()(),_(38,Wi,14,10,"div",10),_(39,Yi,1,0,"mat-divider"),_(40,cn,61,39,"form",16),_(41,Cn,48,38,"form",16),i(),_(42,In,5,6,"mat-card-actions",17),i()),t&2){let a=h();e(4),c(l(5,17,"labels.heading.Transferring From Details")),e(6),c(l(11,19,"labels.inputs.Applicant")),e(3),c(a.accountTransferTemplateData.fromClient.displayName),e(3),c(l(17,21,"labels.inputs.Office")),e(3),c(a.accountTransferTemplateData.fromOffice.name),e(3),c(l(23,23,"labels.inputs.From Account")),e(3),g(" ",a.accountTransferTemplateData.fromAccount.productName,"\xA0-\xA0#",a.accountTransferTemplateData.fromAccount.accountNo," "),e(3),c(l(29,25,"labels.inputs.From Account Type")),e(3),c(a.accountTransferTemplateData.fromAccountType.value),e(3),c(l(35,27,"labels.inputs.Currency")),e(3),c(a.accountTransferTemplateData.currency.name),e(),v(a.interbank?38:-1),e(),v(a.interbank?-1:39),e(),v(!a.interbank&&a.makeAccountTransferForm?40:-1),e(),v(a.interbank&&a.interbankTransferForm&&a.makeAccountTransferForm?41:-1),e(),v(!a.isLoading&&a.makeAccountTransferForm?42:-1)}}var ne=(()=>{class t{constructor(){this.formBuilder=T(St),this.route=T(H),this.router=T(ht),this.accountTransfersService=T(B),this.dateUtils=T(xt),this.settingsService=T(Y),this.clientsService=T(He),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.interbank=!1,this.phoneAccount="",this.interbankTransferForm=!1,this.balance=0,this.isLoading=!1,this.route.data.subscribe(a=>{this.accountTransferTemplateData=a.accountTransferTemplate,this.setParams(),this.setOptions()})}setParams(){switch(this.accountType=this.route.snapshot.queryParams.accountType,this.accountType){case"fromloans":this.accountTypeId="1",this.id=this.route.snapshot.queryParams.loanId;break;case"fromsavings":case"interbank":this.accountTypeId="2",this.id=this.route.snapshot.queryParams.savingsId,this.interbank=this.route.snapshot.queryParams.interbank==="true";let a=this.router.currentNavigation()?.extras?.state?.balance,p=this.accountTransferTemplateData?.fromAccount?.availableBalance??this.accountTransferTemplateData?.fromAccount?.summary?.accountBalance??this.accountTransferTemplateData?.fromAccount?.balance??0;this.balance=typeof a=="number"?a:p;break;default:this.accountTypeId="0"}}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.interbank?this.createEmptyInterbankForm():this.createMakeAccountTransferForm()}createEmptyInterbankForm(){this.makeAccountTransferForm=this.formBuilder.group({toBank:["",I.required],toClientId:["",I.required],toAccountType:["",I.required],toAccountId:["",I.required],transferAmount:[0,[I.required,I.min(.01),this.amountExceedsBalanceValidator.bind(this)]],transferDate:[this.settingsService.businessDate,I.required],transferDescription:["",I.required]})}createMakeAccountTransferForm(){this.makeAccountTransferForm=this.formBuilder.group({toOfficeId:["",I.required],toClientId:["",I.required],toAccountType:["",I.required],toAccountId:["",I.required],transferAmount:[this.accountTransferTemplateData.transferAmount,[I.required,I.min(.01),this.amountExceedsBalanceValidator.bind(this)]],transferDate:[this.settingsService.businessDate,I.required],transferDescription:["",I.required]})}createMakeAccountInterbankTransferForm(a){if(!a){console.error("Account data is undefined"),this.isLoading=!1;return}let p=this.accountTransferTemplateData?.transferAmount>0?this.accountTransferTemplateData.transferAmount:1;this.makeAccountTransferForm=this.formBuilder.group({toBank:[a.destinationFspId||"",I.required],toClientId:[(a.firstName||a.firsName||"")+" "+(a.lastName||""),I.required],toAccountType:["Saving Account",I.required],toAccountId:[a.partyId||"",I.required],transferAmount:[p,[I.required,I.min(.01),this.amountExceedsBalanceValidator.bind(this)]],transferDate:[this.settingsService.businessDate,I.required],transferDescription:["Transferencia interbancaria",I.required]}),this.isLoading=!1}amountExceedsBalanceValidator(a){return a.value>this.balance?{amountExceedsBalance:!0}:null}setOptions(){this.toOfficeTypeData=this.accountTransferTemplateData.toOfficeOptions,this.toAccountTypeData=this.accountTransferTemplateData.toAccountTypeOptions,this.toAccountData=this.accountTransferTemplateData.toAccountOptions}changeEvent(){let a=this.refineObject(this.makeAccountTransferForm.value);this.accountTransfersService.newAccountTranferResource(this.id,this.accountTypeId,a).subscribe(p=>{this.accountTransferTemplateData=p,this.toClientTypeData=p.toClientOptions,this.setOptions()})}refineObject(a){delete a.transferAmount,delete a.transferDate,delete a.transferDescription,a.toClientId&&typeof a.toClientId=="object"&&(a.toClientId=a.toClientId.id);let p=Object.getOwnPropertyNames(a);for(let s=0;s{typeof a=="string"&&a.length>=2&&(this.clientsService.getFilteredClients("displayName","ASC",!0,a).subscribe(p=>{this.clientsData=p.pageItems}),this.changeEvent())})}displayClient(a){return a?a.displayName:void 0}submit(){this.interbank?this.makeInterbankTransfer():this.makeTransfer()}makeTransfer(){this.isLoading=!0;let a=this.settingsService.dateFormat,p=this.settingsService.language.code,s;typeof this.makeAccountTransferForm.controls.toClientId.value=="object"?s=this.makeAccountTransferForm.controls.toClientId.value.id:s=this.makeAccountTransferForm.controls.toClientId.value;let f=Nt(Pt({},this.makeAccountTransferForm.value),{transferDate:this.dateUtils.formatDate(this.makeAccountTransferForm.value.transferDate,a),dateFormat:a,locale:p,toClientId:s,fromAccountId:this.id,fromAccountType:this.accountTypeId,fromClientId:this.accountTransferTemplateData.fromClient.id,fromOfficeId:this.accountTransferTemplateData.fromClient.officeId});this.accountTransfersService.createAccountTransfer(f).subscribe(()=>{this.isLoading=!1,this.router.navigate(["../../transactions"],{relativeTo:this.route})})}makeInterbankTransfer(){if(this.isLoading=!0,!this.makeAccountTransferForm.valid){console.error("Interbank form is not valid"),this.isLoading=!1;return}let a={homeTransactionId:crypto.randomUUID(),from:{fspId:De.fineractPlatformTenantId,idType:"MSISDN",idValue:this.accountTransferTemplateData.fromAccount.externalId?.trim()||""},to:{fspId:this.makeAccountTransferForm.controls.toBank.value,idType:"MSISDN",idValue:this.makeAccountTransferForm.controls.toAccountId.value},amountType:"SEND",amount:{currencyCode:this.accountTransferTemplateData.currency.code,amount:this.makeAccountTransferForm.controls.transferAmount.value},transactionType:{scenario:"TRANSFER",subScenario:"DOMESTIC",initiator:"PAYER",initiatorType:"CUSTOMER"},note:this.makeAccountTransferForm.controls.transferDescription.value};this.accountTransfersService.sendInterbankTransfer(JSON.stringify(a)).subscribe(p=>{p.systemMessage&&(this.isLoading=!1,this.router.navigate(["../../transactions"],{relativeTo:this.route}))},p=>{console.error("Interbank transfer error:",p),this.isLoading=!1})}searchAccountByNumber(){!this.phoneAccount||this.phoneAccount.length!==10||(this.isLoading=!0,this.accountTransfersService.getAccountByNumber(this.phoneAccount,this.accountTransferTemplateData.currency.code).subscribe(a=>{this.interbankTransferForm=!0,this.createMakeAccountInterbankTransferForm(a)},a=>{console.error("searching account error:",a),this.isLoading=!1}))}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-make-account-transfers"]],decls:3,vars:2,consts:[["input",""],["transferDatePicker",""],["clientsAutocomplete","matAutocomplete"],[1,"container"],[1,"loader-wrapper"],[1,"transfer-card"],[1,"bottom","triangle"],[1,"top","triangle"],[1,"left","triangle"],[1,"right","triangle"],[1,"section-container"],[1,"section-title","transfer-heading"],[1,"info-grid"],[1,"info-row"],[1,"info-label"],[1,"info-value"],[1,"transfer-form",3,"formGroup"],[1,"action-buttons"],[1,"interbank-section"],[1,"full-width"],["matInput","","type","tel","maxlength","10","required","","placeholder","Enter phone number","title","Phone number",3,"ngModelChange","readonly","ngModel"],["align","end"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary","id","search-button",1,"primary-button",3,"click","disabled"],[1,"form-grid"],[1,"form-field",3,"click"],["matInput","","required","","formControlName","transferDate","placeholder","Select date","title","Transaction Date",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"form-field"],["required","","formControlName","toOfficeId",3,"selectionChange"],[3,"value"],["matInput","","formControlName","toClientId","placeholder","Select or type client name","title","Client name",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],["required","","formControlName","toAccountType",3,"selectionChange"],["required","","formControlName","toAccountId",3,"selectionChange"],["type","number","matInput","","required","","formControlName","transferAmount","placeholder","Enter amount","title","Transfer amount","min","0.01","step","0.01"],[1,"form-field","description-field"],["matInput","","formControlName","transferDescription","cdkTextareaAutosize","","cdkAutosizeMinRows","2","placeholder","Enter transfer description","title","Transfer description"],["icon","exclamation-triangle","size","md"],["matInput","","formControlName","toBank","placeholder","Bank","title","Bank",3,"readonly"],["matInput","","formControlName","toClientId","placeholder","Client","title","Client",3,"readonly"],["matInput","","formControlName","toAccountType","placeholder","Account Type","title","Account Type",3,"readonly"],["matInput","","formControlName","toAccountId","placeholder","Account","title","Account",3,"readonly"],["type","button","mat-raised-button","",1,"cancel-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"primary-button",3,"disabled"],["mat-raised-button","","color","primary",1,"primary-button",3,"click","disabled"]],template:function(p,s){p&1&&(n(0,"div",3),_(1,ji,5,0,"div",4),_(2,Tn,43,29,"mat-card",5),i()),p&2&&(e(),v(s.isLoading?1:-1),e(),v(s.isLoading?-1:2))},dependencies:[q,R,nt,J,bt,K,it,ot,Be,ke,at,rt,W,$,z,lt,Z,X,st,ct,we,tt,pt,mt,ut,ft,dt,j,Q,vt,Fe,Ae,qe,Ne,_t,Lt,V],styles:[".container[_ngcontent-%COMP%]{max-width:42rem;margin:0 auto;padding:1rem}.transfer-card[_ngcontent-%COMP%]{border-radius:8px;box-shadow:0 2px 10px #00000014;margin-bottom:1.5rem;overflow:hidden}.section-container[_ngcontent-%COMP%]{margin-bottom:2rem}.section-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:600;color:#333;margin:0 0 1rem;padding-bottom:.5rem;border-bottom:1px solid rgba(0,0,0,.12)}.section-title.transfer-heading[_ngcontent-%COMP%]{font-weight:700}.info-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%;gap:.75rem}@media (width >= 768px){.info-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,50%)}}.info-row[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem;background-color:#00000005;border-radius:4px}.info-row[_ngcontent-%COMP%]:hover{background-color:#0000000a}.info-label[_ngcontent-%COMP%]{flex:0 0 40%;color:#000000b3;font-weight:500}.info-value[_ngcontent-%COMP%]{flex:1;color:#000000de}mat-divider[_ngcontent-%COMP%]{margin:1rem 0}.interbank-section[_ngcontent-%COMP%]{margin-bottom:1rem}.transfer-form[_ngcontent-%COMP%]{margin-top:1rem}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%;gap:1rem}@media (width >= 768px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:repeat(2,1fr);gap:1.5rem}}.form-row[_ngcontent-%COMP%]{display:contents}.form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}@media (width >= 768px){.form-field[_ngcontent-%COMP%]:nth-child(odd){margin-right:.5rem}}@media (width >= 768px){.form-field[_ngcontent-%COMP%]:nth-child(2n){margin-left:.5rem}}.form-field.description-field[_ngcontent-%COMP%]{grid-column:1/-1}.form-field.description-field[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{min-height:80px;resize:vertical} .mat-form-field{width:100%}.action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:1rem;padding:1rem 1.5rem;margin-top:1rem}@media (width <= 576px){.action-buttons[_ngcontent-%COMP%]{flex-direction:column}}.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px}@media (width <= 576px){.action-buttons[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;margin-bottom:.5rem}}.action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#f5f5f5;color:#000000de;box-shadow:0 1px 3px #0000001f}.action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;box-shadow:0 2px 5px #0000002e}.action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#f5f5f5;color:#000000de;font-weight:400;border:none;box-shadow:none}.action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]:hover{background-color:#e0e0e0;box-shadow:0 2px 5px #0000002e}.loader-wrapper[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:300px;position:relative}@keyframes _ngcontent-%COMP%_rotate-triangle{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.triangle[_ngcontent-%COMP%]{position:absolute;width:0;height:0;border-left:20px solid transparent;border-right:20px solid transparent;border-bottom:34px solid rgba(0,0,0,.05);animation:_ngcontent-%COMP%_rotate-triangle 1.5s infinite linear}.triangle[_ngcontent-%COMP%]:hover{border-bottom-color:#00000014}.dark-theme[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{color:#ffffffde}.dark-theme[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#fff;border-bottom-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .transfer-heading[_ngcontent-%COMP%]{color:#fff;font-weight:700}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]:hover{background-color:#505050}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde;font-weight:400;border:none;box-shadow:none}.dark-theme[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]:hover{background-color:#505050}.dark-theme[_nghost-%COMP%] .transfer-heading[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .transfer-heading[_ngcontent-%COMP%]{color:#fff;font-weight:700}.dark-theme[_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde}.dark-theme[_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde;font-weight:400;border:none;box-shadow:none}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{color:#fff}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .transfer-heading[_ngcontent-%COMP%]{color:#fff;font-weight:700}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde}body.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%] .primary-button[_ngcontent-%COMP%]{background-color:#424242;color:#ffffffde;font-weight:400;border:none;box-shadow:none} mat-form-field.error-warn.mat-form-field-invalid .mat-form-field-ripple{background-color:#000000de!important} mat-form-field.error-warn.mat-form-field-invalid .mat-form-field-label{color:#0009!important} mat-form-field.error-warn.mat-form-field-invalid .mat-form-field-label .mat-form-field-required-marker{color:#0009!important} mat-form-field.error-warn.mat-form-field-invalid .mat-error{color:#0009!important} .mat-form-field-flex{align-items:center}.transfer-form[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{margin-bottom:1rem}.readonly-field[_ngcontent-%COMP%]{background-color:#00000005;cursor:not-allowed} .mat-input-element{font-size:14px}"]})}}return t})();var hn=["instructionsTable"],xn=()=>[10,25,50,100],bn=t=>["../",t,"edit"],Sn=t=>["../",t,"view"];function yn(t,m){if(t&1&&(n(0,"div",3)(1,"span",24)(2,"h3",25),r(3),o(4,"translate"),i()(),n(5,"span",26)(6,"h3",25),r(7),i()()()),t&2){let a=h();e(3),c(l(4,2,"labels.heading.Client Type")),e(4),c(a.clientName)}}function En(t,m){if(t&1&&(n(0,"div",3)(1,"mat-form-field",27),C(2,"input",28),i(),n(3,"mat-form-field",27),C(4,"input",29),i()()),t&2){let a=h();e(2),d("formControl",a.clientNameControl),e(2),d("formControl",a.fromClientId)}}function Dn(t,m){if(t&1&&(n(0,"mat-option",7),r(1),i()),t&2){let a=m.$implicit;d("value",a.id),e(),u(" ",a.value," ")}}function An(t,m){if(t&1){let a=w();n(0,"button",30),x("click",function(){b(a);let s=h();return S(s.filterStandingInstructions())}),r(1),o(2,"translate"),o(3,"titlecase"),i()}t&2&&(e(),u(" ",l(3,3,l(2,1,"labels.buttons.Filter"))," "))}function Mn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Client")))}function kn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g(" ",a.fromClient.displayName,"-",a.fromClient.id," ")}}function Bn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.From Account")))}function Fn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g(" ",a.fromAccount.accountNo," (",a.fromAccountType.value,") ")}}function wn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Beneficiary")))}function On(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),c(a.toClient.displayName)}}function Pn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.To Account")))}function Nn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g(" ",a.toAccount.accountNo," (",a.toAccountType.value,") ")}}function qn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Amount")))}function Vn(t,m){if(t&1&&(n(0,"td",32),r(1),i()),t&2){let a=m.$implicit;e(),g("",a.instructionType.value,"/",a.amount)}}function Rn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Validity")))}function Ln(t,m){if(t&1&&(n(0,"td",32),r(1),o(2,"dateFormat"),o(3,"dateFormat"),i()),t&2){let a=m.$implicit;e(),g(" ",l(2,2,a.validFrom)," to ",l(3,4,a.validTill)," ")}}function Hn(t,m){t&1&&(n(0,"th",31),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Actions")))}function $n(t,m){if(t&1&&(n(0,"button",34),o(1,"translate"),C(2,"i",35),i()),t&2){let a=h(2).$implicit;d("matTooltip",Rt(l(1,3,"tooltips.Edit Standing Instruction")))("routerLink",et(5,bn,a.id))}}function Un(t,m){t&1&&(n(0,"span"),y(1,$n,3,7,"button",33),i()),t&2&&(e(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Gn(t,m){if(t&1){let a=w();n(0,"button",37),o(1,"translate"),x("click",function(){b(a);let s=h(2).$implicit,f=h();return S(f.deleteStandingInstruction(s.id))}),C(2,"i",38),i()}t&2&&d("matTooltip",Rt(l(1,2,"tooltips.Delete Standing Instruction")))}function jn(t,m){t&1&&(n(0,"span"),y(1,Gn,3,4,"button",36),i()),t&2&&(e(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function zn(t,m){if(t&1&&(n(0,"button",34),o(1,"translate"),C(2,"i",39),i()),t&2){let a=h().$implicit;d("matTooltip",Rt(l(1,3,"tooltips.View Standing Instruction")))("routerLink",et(5,Sn,a.id))}}function Qn(t,m){if(t&1&&(n(0,"td",32),_(1,Un,2,1,"span"),_(2,jn,2,1,"span"),y(3,zn,3,7,"button",33),i()),t&2){let a=m.$implicit;e(),v(a.status.value!=="Deleted"?1:-1),e(),v(a.status.value!=="Deleted"?2:-1),e(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Wn(t,m){t&1&&C(0,"tr",40)}function Yn(t,m){t&1&&C(0,"tr",41)}var ae=(()=>{class t{constructor(){this.route=T(H),this.accountTransfersService=T(B),this.settingsService=T(Y),this.dialog=T(Ee),this.transferType=new Bt,this.fromAccountId=new Bt,this.clientNameControl=new Bt,this.fromClientId=new Bt,this.dataSource=new Ft,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.data.subscribe(a=>{this.standingIntructionsTemplateData=a.standingIntructionsTemplate,a.standingIntructionsTemplate.fromClient&&(this.clientName=this.standingIntructionsTemplateData.fromClient.displayName,this.getStandingInstructions()),this.setParams(),this.transferTypeDatas=this.standingIntructionsTemplateData.transferTypeOptions})}setParams(){switch(this.accountType=this.route.snapshot.queryParams.accountType,this.accountType){case"fromloans":this.accountTypeId="1";break;case"fromsavings":this.accountTypeId="2";break;default:this.accountTypeId="0"}this.isFromClient=!!this.route.parent.parent.snapshot.params.clientId}filterStandingInstructions(){this.getStandingInstructions()}getStandingInstructions(){let a=this.settingsService.dateFormat,p=this.settingsService.language.code,s={clientId:this.standingIntructionsTemplateData.fromClient.id||this.fromClientId.value,clientName:this.standingIntructionsTemplateData.fromClient.displayName||this.clientNameControl.value,locale:p,dateFormat:a,limit:14,offset:0,fromAccountType:this.accountTypeId,fromAccountId:this.fromAccountId.value,fromTransferType:this.transferType.value};this.accountTransfersService.getStandingInstructions(s).subscribe(f=>{this.instructionsData=f.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(a){this.dialog.open(Pe,{data:{deleteContext:`standing instruction id: ${a}`}}).afterClosed().subscribe(s=>{s.delete&&this.accountTransfersService.deleteStandingInstrucions(a).subscribe(()=>{})})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-list-standing-instructions"]],viewQuery:function(p,s){if(p&1&&(Dt(hn,7),Dt(yt,7)),p&2){let f;At(f=Mt())&&(s.instructionTableRef=f.first),At(f=Mt())&&(s.paginator=f.first)}},decls:41,vars:15,consts:[["instructionsTable",""],[1,"container"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill"],[3,"inset"],[1,"type-field"],[3,"formControl"],[3,"value"],[1,"account-Id-field"],["matInput","","placeholder","From Account Id",3,"formControl"],["mat-raised-button","","color","primary","class","filter-button",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"flex-40"],[1,"mat-h3"],[1,"client-Name"],[1,"flex-30"],["matInput","","placeholder","ClientName",3,"formControl"],["matInput","","placeholder","From Client Id",3,"formControl"],["mat-raised-button","","color","primary",1,"filter-button",3,"click"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip","routerLink"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(p,s){p&1&&(n(0,"mat-card",1)(1,"div",2),_(2,yn,8,4,"div",3),_(3,En,5,2,"div",3),C(4,"mat-divider",4),n(5,"mat-form-field",5)(6,"mat-label"),r(7),o(8,"translate"),i(),n(9,"mat-select",6),D(10,Dn,2,2,"mat-option",7,E),i()(),n(12,"mat-form-field",8),C(13,"input",9),i(),y(14,An,4,5,"button",10),i(),n(15,"table",11,0),P(17,12),y(18,Mn,3,3,"th",13)(19,kn,2,2,"td",14),N(),P(20,15),y(21,Bn,3,3,"th",13)(22,Fn,2,2,"td",14),N(),P(23,16),y(24,wn,3,3,"th",13)(25,On,2,1,"td",14),N(),P(26,17),y(27,Pn,3,3,"th",13)(28,Nn,2,2,"td",14),N(),P(29,18),y(30,qn,3,3,"th",13)(31,Vn,2,2,"td",14),N(),P(32,19),y(33,Rn,3,3,"th",13)(34,Ln,4,6,"td",14),N(),P(35,20),y(36,Hn,3,3,"th",13)(37,Qn,4,3,"td",14),N(),y(38,Wn,1,0,"tr",21)(39,Yn,1,0,"tr",22),i(),C(40,"mat-paginator",23),i()),p&2&&(e(2),v(s.isFromClient?2:-1),e(),v(s.isFromClient?-1:3),e(),d("inset",!0),e(3),c(l(8,12,"labels.inputs.Type")),e(2),d("formControl",s.transferType),e(),A(s.transferTypeDatas),e(3),d("formControl",s.fromAccountId),e(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION"),e(),d("dataSource",s.dataSource),e(23),d("matHeaderRowDef",s.displayedColumns),e(),d("matRowDefColumns",s.displayedColumns),e(),d("pageSize",10)("pageSizeOptions",U(14,xn)))},dependencies:[q,R,J,K,Me,W,$,Z,X,tt,pt,mt,j,Q,vt,Ht,Gt,Ut,jt,$t,zt,Oe,Qt,Yt,Wt,Jt,yt,ye,Ct,V],styles:[".container[_ngcontent-%COMP%] .filter-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:2rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.mat-divider[_ngcontent-%COMP%]{border-top-color:#fff}"]})}}return t})();var Jn=()=>[5,10,25,50,100];function Kn(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Transaction Date")))}function Xn(t,m){if(t&1&&(n(0,"td",17),r(1),o(2,"dateFormat"),i()),t&2){let a=m.$implicit;e(),c(l(2,1,a.transferDate))}}function Zn(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Amount")))}function ta(t,m){if(t&1&&(n(0,"td",17),r(1),i()),t&2){let a=m.$implicit;e(),c(a.transferAmount)}}function ea(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Notes")))}function ia(t,m){if(t&1&&(n(0,"td",17),r(1),i()),t&2){let a=m.$implicit;e(),c(a.transferDescription)}}function na(t,m){t&1&&(n(0,"th",16),r(1),o(2,"translate"),i()),t&2&&(e(),c(l(2,1,"labels.inputs.Reversed")))}function aa(t,m){if(t&1&&(n(0,"td",17),r(1),o(2,"yesNo"),i()),t&2){let a=m.$implicit;e(),c(l(2,1,a.reversed))}}function ra(t,m){t&1&&C(0,"tr",18)}function oa(t,m){t&1&&C(0,"tr",19)}var re=(()=>{class t{constructor(){this.route=T(H),this.dataSource=new Ft,this.displayedColumns=["transactionDate","amount","notes","reversed"],this.route.data.subscribe(a=>{this.listTransactionData=a.listTransactionData,this.dataSource=new Ft(this.listTransactionData.transactions.pageItems),this.dataSource.paginator=this.paginator})}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-list-transactions"]],viewQuery:function(p,s){if(p&1&&Dt(yt,7),p&2){let f;At(f=Mt())&&(s.paginator=f.first)}},decls:36,vars:19,consts:[[1,"container","m-b-20"],[1,"mat-elevation-z8"],[1,"layout-row-wrap"],[1,"flex-25","header"],[1,"flex-25"],[1,"mat-elevation-z8","container"],["mat-table","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["matColumnDef","notes"],["matColumnDef","reversed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(p,s){p&1&&(n(0,"div",0)(1,"mat-card",1)(2,"mat-card-content")(3,"div",2)(4,"div",3),r(5),o(6,"translate"),i(),n(7,"div",4),r(8),i(),n(9,"div",3),r(10),o(11,"translate"),i(),n(12,"div",4),r(13),i(),n(14,"div",3),r(15),o(16,"translate"),i(),n(17,"div",4),r(18),i()()()()(),n(19,"div",5)(20,"table",6),P(21,7),y(22,Kn,3,3,"th",8)(23,Xn,3,3,"td",9),N(),P(24,10),y(25,Zn,3,3,"th",8)(26,ta,2,1,"td",9),N(),P(27,11),y(28,ea,3,3,"th",8)(29,ia,2,1,"td",9),N(),P(30,12),y(31,na,3,3,"th",8)(32,aa,3,3,"td",9),N(),y(33,ra,1,0,"tr",13)(34,oa,1,0,"tr",14),i(),C(35,"mat-paginator",15),i()),p&2&&(e(5),u(" ",l(6,12,"labels.inputs.From Account")," "),e(3),g(" ",s.listTransactionData.fromAccount.accountNo,"(",s.listTransactionData.fromAccountType.value,") "),e(2),u(" ",l(11,14,"labels.inputs.To Account")," "),e(3),g(" ",s.listTransactionData.toAccount.accountNo,"(",s.listTransactionData.toAccountType.value,") "),e(2),u(" ",l(16,16,"labels.inputs.Destination")," "),e(3),u(" ",s.listTransactionData.toClient.displayName," "),e(2),d("dataSource",s.dataSource),e(13),d("matHeaderRowDef",s.displayedColumns),e(),d("matRowDefColumns",s.displayedColumns),e(),d("pageSizeOptions",U(18,Jn)))},dependencies:[q,R,$,z,Ht,Gt,Ut,jt,$t,zt,Qt,Yt,Wt,Jt,yt,Ct,V,Re],styles:[".content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:3rem}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();function la(t,m){t&1&&(n(0,"button",13),C(1,"fa-icon",14),r(2),o(3,"translate"),i()),t&2&&(e(2),u("",l(3,1,"labels.buttons.Undo")," "))}function sa(t,m){t&1&&(n(0,"span"),y(1,la,4,3,"button",12),i()),t&2&&(e(),d("mifosxHasPermission","ADJUST_ACCOUNTTRANSFER"))}var oe=(()=>{class t{constructor(){this.route=T(H),this.location=T(be),this.route.data.subscribe(a=>{this.viewAccountTransferData=a.viewAccountTransferData})}transferToClient(a){return`/#/clients/${a.id}`}transferToAccount(a,p){return`/#/clients/${a.id}/savings-accounts/${p.id}`}goBack(){this.location.back()}transactionColor(){return this.viewAccountTransferData.reversed?"undo":"active"}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-account-transfer"]],decls:93,vars:69,consts:[[1,"container"],[1,"container","m-b-20","align-end","gap-2px"],[1,"layout-row-wrap","responsive-column"],[1,"flex-100",3,"ngClass"],[1,"mat-h3","flex-fill"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[3,"href"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"click"],["mat-raised-button","","color","warn",4,"mifosxHasPermission"],["mat-raised-button","","color","warn"],["icon","undo",1,"m-r-10"]],template:function(p,s){p&1&&(n(0,"div",0)(1,"div",1),_(2,sa,2,1,"span"),i(),n(3,"mat-card")(4,"mat-card-content")(5,"div",2),C(6,"div",3),n(7,"h3",4),r(8),o(9,"translate"),i(),C(10,"mat-divider",5),n(11,"div",6)(12,"span",7),r(13),o(14,"translate"),i(),n(15,"span",8),r(16),o(17,"formatNumber"),i()(),n(18,"div",6)(19,"span",7),r(20),o(21,"translate"),i(),n(22,"span",8),r(23),o(24,"dateFormat"),i()(),n(25,"div",6)(26,"span",7),r(27),o(28,"translate"),i(),n(29,"span",8),r(30),i()(),n(31,"h3",4),r(32),o(33,"translate"),i(),C(34,"mat-divider",5),n(35,"div",6)(36,"span",7),r(37),o(38,"translate"),i(),n(39,"span",8),r(40),i()(),n(41,"div",6)(42,"span",7),r(43),o(44,"translate"),i(),n(45,"span",8),r(46),i()(),n(47,"div",6)(48,"span",7),r(49),o(50,"translate"),i(),n(51,"span",8),r(52),i()(),n(53,"div",6)(54,"span",7),r(55),o(56,"translate"),i(),n(57,"span",8),r(58),i()(),n(59,"h3",4),r(60),o(61,"translate"),i(),C(62,"mat-divider",5),n(63,"div",6)(64,"span",7),r(65),o(66,"translate"),i(),n(67,"span",8),r(68),i()(),n(69,"div",6)(70,"span",7),r(71),o(72,"translate"),i(),n(73,"span",8)(74,"a",9),r(75),i()()(),n(76,"div",6)(77,"span",7),r(78),o(79,"translate"),i(),n(80,"span",8),r(81),i()(),n(82,"div",6)(83,"span",7),r(84),o(85,"translate"),i(),n(86,"span",8)(87,"a",9),r(88),i()()()()(),n(89,"mat-card-actions",10)(90,"button",11),x("click",function(){return s.goBack()}),r(91),o(92,"translate"),i()()()()),p&2&&(e(2),v(s.viewAccountTransferData.reversed?-1:2),e(4),d("ngClass",s.transactionColor()),e(2),c(l(9,35,"labels.heading.Transaction Details")),e(2),d("inset",!0),e(3),u("",l(14,37,"labels.inputs.Transaction Amount"),":"),e(3),Ie("",s.viewAccountTransferData.currency.displaySymbol," ",l(17,39,s.viewAccountTransferData.transferAmount)," (",s.viewAccountTransferData.currency.code,")"),e(4),u("",l(21,41,"labels.inputs.Transaction Date"),":"),e(3),c(l(24,43,s.viewAccountTransferData.transferDate)),e(4),u("",l(28,45,"labels.inputs.Destination"),":"),e(3),c(s.viewAccountTransferData.transferDescription),e(2),c(l(33,47,"labels.heading.Transferred From")),e(2),d("inset",!0),e(3),u("",l(38,49,"labels.inputs.Office"),":"),e(3),c(s.viewAccountTransferData.fromOffice.name),e(3),u("",l(44,51,"labels.inputs.Client"),":"),e(3),c(s.viewAccountTransferData.fromClient.displayName),e(3),u("",l(50,53,"labels.inputs.Account Type"),":"),e(3),c(s.viewAccountTransferData.fromAccountType.value),e(3),u("",l(56,55,"labels.inputs.Account No"),":"),e(3),c(s.viewAccountTransferData.fromAccount.accountNo),e(2),c(l(61,57,"labels.heading.Transferred To")),e(2),d("inset",!0),e(3),u("",l(66,59,"labels.inputs.Office"),":"),e(3),c(s.viewAccountTransferData.toOffice.name),e(3),u("",l(72,61,"labels.inputs.Client"),":"),e(3),d("href",s.transferToClient(s.viewAccountTransferData.toClient),se),e(),u(" ",s.viewAccountTransferData.toClient.displayName),e(3),u("",l(79,63,"labels.inputs.Account Type"),":"),e(3),c(s.viewAccountTransferData.toAccountType.value),e(3),u("",l(85,65,"labels.inputs.Account No"),":"),e(3),d("href",s.transferToAccount(s.viewAccountTransferData.toClient,s.viewAccountTransferData.toAccount),se),e(),u(" ",s.viewAccountTransferData.toAccount.accountNo),e(3),u(" ",l(92,67,"labels.buttons.Back")," "))},dependencies:[q,Se,R,$,z,lt,j,Q,_t,vt,Ct,V,Ve],styles:["h3[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}"]})}}return t})();var fe=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.parent.paramMap.get("standingInstructionsId");return this.accountTransfersService.getStandingInstructionsData(p)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var Ce=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.parent.paramMap.get("standingInstructionsId");return this.accountTransfersService.getStandingInstructionsDataAndTemplate(p)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var le=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.queryParamMap.get("officeId"),s=a.queryParamMap.get("accountType"),f=a.parent.paramMap.get("clientId");switch(s){case"fromloans":this.accountTypeId="1";break;case"fromsavings":this.accountTypeId="2";break;default:this.accountTypeId="0"}return this.accountTransfersService.getStandingInstructionsTemplate(f,p,this.accountTypeId)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var _e=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){switch(a.queryParamMap.get("accountType")){case"fromloans":this.accountTypeId="1",this.id=a.queryParamMap.get("loanId");break;case"fromsavings":this.accountTypeId="2",this.id=a.queryParamMap.get("savingsId");break;case"interbank":this.accountTypeId="2",this.id=a.queryParamMap.get("savingsId");break;default:this.accountTypeId="0"}return this.accountTransfersService.newAccountTranferResource(this.id,this.accountTypeId)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var ve=(()=>{class t{constructor(){this.accountTransfersService=T(B),this.settingsService=T(Y)}resolve(a){let p=a.parent.paramMap.get("standingInstructionsId"),s=this.settingsService.dateFormat,f=this.settingsService.language.code;return this.accountTransfersService.getStandingInstructionsTransactions(p,s,f)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var ge=(()=>{class t{constructor(){this.accountTransfersService=T(B)}resolve(a){let p=a.paramMap.get("transferid");return this.accountTransfersService.getViewAccountTransferDetails(p)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275prov=G({token:t,factory:t.\u0275fac})}}return t})();var ca=[{path:"",children:[{path:"create-standing-instructions",data:{title:"Create Standing Instructions",breadcrumb:"Create Standing Instructions",routeParamBreadcrumb:"Create Standing Instructions"},component:ie,resolve:{standingIntructionsTemplate:le}},{path:"make-account-transfer",data:{title:"Account Transfer",breadcrumb:"Account Transfer",routeParamBreadcrumb:"Account Transfer"},component:ne,resolve:{accountTransferTemplate:_e}},{path:"list-standing-instructions",data:{title:"List Standing Instructions",breadcrumb:"List Standing Instructions",routeParamBreadcrumb:"List Standing Instructions"},component:ae,resolve:{standingIntructionsTemplate:le}},{path:"account-transfers",data:{title:"View Account Transfer",breadcrumb:"Account Transfers",routeParamBreadcrumb:!1},children:[{path:":transferid",data:{routeParamBreadcrumb:"transferid"},component:oe,resolve:{viewAccountTransferData:ge}}]},{path:":standingInstructionsId",data:{title:"Standing Instructions",routeParamBreadcrumb:"standingInstructionsId"},children:[{path:"view",data:{title:"View Standing Instructions",breadcrumb:"view",routeParamBreadcrumb:!1},component:Xt,resolve:{standingInstructionsData:fe}},{path:"edit",data:{title:"Edit Standing Instructions",breadcrumb:"edit",routeParamBreadcrumb:!1},component:ee,resolve:{standingInstructionsDataAndTemplate:Ce}},{path:"list-account-transactions",data:{title:"List Account Transactions",breadcrumb:"List Account Transactions",routeParamBreadcrumb:"List Account Transactions"},component:re,resolve:{listTransactionData:ve}}]}]}],je=(()=>{class t{static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275mod=Vt({type:t})}static{this.\u0275inj=qt({providers:[fe,Ce,le,_e,ve,ge],imports:[ce.forChild(ca),ce]})}}return t})();var ma=t=>({balance:t});function pa(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function da(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}function ua(t,m){if(t&1&&(n(0,"mat-error"),C(1,"fa-icon",15),r(2),o(3,"translate"),i()),t&2){let a=h();e(2),u(" ",kt(3,1,"errors.validation.msg.savingsproduct.insufficient.balance",et(4,ma,a.balance))," ")}}function fa(t,m){t&1&&(n(0,"mat-error"),r(1),o(2,"translate"),o(3,"translate"),n(4,"strong"),r(5),o(6,"translate"),i()()),t&2&&(e(),g(" ",l(2,3,"labels.inputs.Transfer Description")," ",l(3,5,"labels.commons.is")," "),e(4),c(l(6,7,"labels.commons.required")))}var ze=(()=>{class t{constructor(){this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1)}static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-make-account-interbank-transfers"]],inputs:{makeAccountTransferForm:"makeAccountTransferForm",balance:"balance"},decls:45,vars:30,consts:[["transferDatePicker",""],["amntInput",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","transferDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-98"],["matInput","","formControlName","toBank"],["matInput","","formControlName","toClientId"],["matInput","","formControlName","toAccountType"],["matInput","","formControlName","toAccountId"],[1,"flex-98","error-warn"],["type","number","matInput","","required","","formControlName","transferAmount"],["matInput","","formControlName","transferDescription","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["icon","exclamation-triangle","size","md"]],template:function(p,s){if(p&1){let f=w();n(0,"form",2)(1,"div",3)(2,"mat-form-field",4),x("click",function(){b(f);let F=M(9);return S(F.open())}),n(3,"mat-label"),r(4),o(5,"translate"),i(),C(6,"input",5)(7,"mat-datepicker-toggle",6)(8,"mat-datepicker",null,0),_(10,pa,7,9,"mat-error"),i(),n(11,"mat-form-field",7)(12,"mat-label"),r(13),o(14,"translate"),i(),C(15,"input",8),i(),n(16,"mat-form-field",7)(17,"mat-label"),r(18),o(19,"translate"),i(),C(20,"input",9),i(),n(21,"mat-form-field",7)(22,"mat-label"),r(23),o(24,"translate"),i(),C(25,"input",10),i(),n(26,"mat-form-field",7)(27,"mat-label"),r(28),o(29,"translate"),i(),C(30,"input",11),i(),n(31,"mat-form-field",12)(32,"mat-label"),r(33),o(34,"translate"),i(),C(35,"input",13,1),_(37,da,7,9,"mat-error"),_(38,ua,4,6,"mat-error"),i(),n(39,"mat-form-field",7)(40,"mat-label"),r(41),o(42,"translate"),i(),C(43,"textarea",14),_(44,fa,7,9,"mat-error"),i()()()}if(p&2){let f,k=M(9);d("formGroup",s.makeAccountTransferForm),e(4),c(l(5,16,"labels.inputs.Transaction Date")),e(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",k),e(),d("for",k),e(3),v(s.makeAccountTransferForm.controls.transferDate.hasError("required")?10:-1),e(3),c(l(14,18,"labels.inputs.Bank")),e(5),c(l(19,20,"labels.inputs.Client")),e(5),c(l(24,22,"labels.inputs.Account Type")),e(5),c(l(29,24,"labels.inputs.Account")),e(5),c(l(34,26,"labels.inputs.Amount")),e(4),v(s.makeAccountTransferForm.controls.transferAmount.hasError("required")?37:-1),e(),v((f=s.makeAccountTransferForm.get("transferAmount"))!=null&&f.hasError("amountExceedsBalance")?38:-1),e(3),c(l(42,28,"labels.inputs.Description")),e(3),v(s.makeAccountTransferForm.controls.transferDescription.hasError("required")?44:-1)}},dependencies:[q,R,nt,J,bt,K,it,ot,at,rt,Z,X,st,ct,tt,ut,ft,dt,_t,Lt,V],styles:["h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var il=(()=>{class t{static{this.\u0275fac=function(p){return new(p||t)}}static{this.\u0275mod=Vt({type:t})}static{this.\u0275inj=qt({imports:[Ue,Le,$e,je,Xt,ee,ie,ne,ae,re,oe,ze]})}}return t})();export{il as AccountTransfersModule}; diff --git a/browser/chunk-SKSBMOXL.js b/browser/chunk-3NGD4RPL.js similarity index 97% rename from browser/chunk-SKSBMOXL.js rename to browser/chunk-3NGD4RPL.js index 6cb8cd985..3c4266e3b 100644 --- a/browser/chunk-SKSBMOXL.js +++ b/browser/chunk-3NGD4RPL.js @@ -1 +1 @@ -import{B as g,G as f,K as l,Nb as u,Ob as a,Oc as i,Rb as N}from"./chunk-AA5NALQN.js";import{a as d,b as h}from"./chunk-PHUH23IY.js";var P=(()=>{class c{constructor(){this.http=l(N)}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){let n=new a().set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:n})}updateStandingInstructionsData(t,n){let s=new a().set("command","update");return this.http.put(`/standinginstructions/${t}`,n,{params:s})}getStandingInstructionsTemplate(t,n,s,e){let r=new a().set("fromAccountType",s).set("fromClientId",t).set("fromOfficeId",n);if(e){let o=Object.getOwnPropertyNames(e);for(let p=0;p{let o=JSON.stringify(h(d({},s),{ownerFspId:r.fspId}));return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/partyinfo`,o,{headers:e})}))}sendInterbankTransfer(t){let n=new u({"Content-Type":"application/json"});return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/executetransfer`,t,{headers:n})}static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275prov=f({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{P as a}; +import{B as g,G as f,K as l,Nb as u,Ob as a,Oc as i,Rb as N}from"./chunk-BJA4FJSH.js";import{a as d,b as h}from"./chunk-PHUH23IY.js";var P=(()=>{class c{constructor(){this.http=l(N)}getStandingInstructionsData(t){return this.http.get(`/standinginstructions/${t}`)}getStandingInstructionsDataAndTemplate(t){let n=new a().set("associations","template");return this.http.get(`/standinginstructions/${t}`,{params:n})}updateStandingInstructionsData(t,n){let s=new a().set("command","update");return this.http.put(`/standinginstructions/${t}`,n,{params:s})}getStandingInstructionsTemplate(t,n,s,e){let r=new a().set("fromAccountType",s).set("fromClientId",t).set("fromOfficeId",n);if(e){let o=Object.getOwnPropertyNames(e);for(let p=0;p{let o=JSON.stringify(h(d({},s),{ownerFspId:r.fspId}));return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/partyinfo`,o,{headers:e})}))}sendInterbankTransfer(t){let n=new u({"Content-Type":"application/json"});return this.http.post(`${i.vNextApiUrl}${i.vNextApiVersion}${i.vNextApiProvider}/executetransfer`,t,{headers:n})}static{this.\u0275fac=function(n){return new(n||c)}}static{this.\u0275prov=f({token:c,factory:c.\u0275fac,providedIn:"root"})}}return c})();export{P as a}; diff --git a/browser/chunk-E77RWCNF.js b/browser/chunk-6OZIX2D7.js similarity index 81% rename from browser/chunk-E77RWCNF.js rename to browser/chunk-6OZIX2D7.js index df4a66e09..4b4b74be9 100644 --- a/browser/chunk-E77RWCNF.js +++ b/browser/chunk-6OZIX2D7.js @@ -1 +1 @@ -import{G as i,K as r,fg as n}from"./chunk-AA5NALQN.js";var f=(()=>{class t{constructor(){this.savingsService=r(n)}resolve(c){let e=c.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountData(e)}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();export{f as a}; +import{G as i,K as r,fg as n}from"./chunk-BJA4FJSH.js";var f=(()=>{class t{constructor(){this.savingsService=r(n)}resolve(c){let e=c.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountData(e)}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();export{f as a}; diff --git a/browser/chunk-AA5NALQN.js b/browser/chunk-BJA4FJSH.js similarity index 88% rename from browser/chunk-AA5NALQN.js rename to browser/chunk-BJA4FJSH.js index 5f1670aa4..7c0c1b897 100644 --- a/browser/chunk-AA5NALQN.js +++ b/browser/chunk-BJA4FJSH.js @@ -1,21 +1,21 @@ -import{a as q,b as Ne,c as $v,e as Gv,g as e3,h as Hr}from"./chunk-PHUH23IY.js";var Um=Gv((O7,R1)=>{(function(t,i){typeof O7=="object"&&typeof R1<"u"?R1.exports=i():typeof define=="function"&&define.amd?define(i):t.moment=i()})(O7,function(){"use strict";var t;function i(){return t.apply(null,arguments)}function e(l){t=l}function n(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function o(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function r(l,u){return Object.prototype.hasOwnProperty.call(l,u)}function a(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var u;for(u in l)if(r(l,u))return!1;return!0}function s(l){return l===void 0}function c(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function m(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function f(l,u){var g=[],b,C=l.length;for(b=0;b>>0,b;for(b=0;b0)for(g=0;g{(function(t,i){typeof O7=="object"&&typeof R1<"u"?R1.exports=i():typeof define=="function"&&define.amd?define(i):t.moment=i()})(O7,function(){"use strict";var t;function i(){return t.apply(null,arguments)}function e(l){t=l}function n(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function o(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function r(l,u){return Object.prototype.hasOwnProperty.call(l,u)}function a(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;var u;for(u in l)if(r(l,u))return!1;return!0}function s(l){return l===void 0}function c(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function m(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function f(l,u){var g=[],b,C=l.length;for(b=0;b>>0,b;for(b=0;b0)for(g=0;g=0;return(A?g?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+b}var $h=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Au=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gh={},xl={};function Ve(l,u,g,b){var C=b;typeof b=="string"&&(C=function(){return this[b]()}),l&&(xl[l]=C),u&&(xl[u[0]]=function(){return Br(C.apply(this,arguments),u[1],u[2])}),g&&(xl[g]=function(){return this.localeData().ordinal(C.apply(this,arguments),l)})}function iN(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function oN(l){var u=l.match($h),g,b;for(g=0,b=u.length;g=0&&Au.test(l);)l=l.replace(Au,b),Au.lastIndex=0,g-=1;return l}var rN={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function aN(l){var u=this._longDateFormat[l],g=this._longDateFormat[l.toUpperCase()];return u||!g?u:(this._longDateFormat[l]=g.match($h).map(function(b){return b==="MMMM"||b==="MM"||b==="DD"||b==="dddd"?b.slice(1):b}).join(""),this._longDateFormat[l])}var sN="Invalid date";function cN(){return this._invalidDate}var lN="%d",dN=/\d{1,2}/;function uN(l){return this._ordinal.replace("%d",l)}var mN={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function pN(l,u,g,b){var C=this._relativeTime[g];return Oi(C)?C(l,u,g,b):C.replace(/%d/i,l)}function fN(l,u){var g=this._relativeTime[l>0?"future":"past"];return Oi(g)?g(u):g.replace(/%s/i,u)}var ev={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function jo(l){return typeof l=="string"?ev[l]||ev[l.toLowerCase()]:void 0}function Wh(l){var u={},g,b;for(b in l)r(l,b)&&(g=jo(b),g&&(u[g]=l[b]));return u}var hN={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function gN(l){var u=[],g;for(g in l)r(l,g)&&u.push({unit:g,priority:hN[g]});return u.sort(function(b,C){return b.priority-C.priority}),u}var tv=/\d/,xo=/\d\d/,nv=/\d{3}/,qh=/\d{4}/,Ru=/[+-]?\d{6}/,hn=/\d\d?/,iv=/\d\d\d\d?/,ov=/\d\d\d\d\d\d?/,Nu=/\d{1,3}/,Yh=/\d{1,4}/,Fu=/[+-]?\d{1,6}/,Ml=/\d+/,Vu=/[+-]?\d+/,_N=/Z|[+-]\d\d:?\d\d/gi,Bu=/Z|[+-]\d\d(?::?\d\d)?/gi,bN=/[+-]?\d+(\.\d{1,3})?/,B2=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,wl=/^[1-9]\d?/,Qh=/^([1-9]\d|\d)/,ju;ju={};function Le(l,u,g){ju[l]=Oi(u)?u:function(b,C){return b&&g?g:u}}function vN(l,u){return r(ju,l)?ju[l](u._strict,u._locale):new RegExp(yN(l))}function yN(l){return ya(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(u,g,b,C,A){return g||b||C||A}))}function ya(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ho(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function It(l){var u=+l,g=0;return u!==0&&isFinite(u)&&(g=Ho(u)),g}var Kh={};function Zt(l,u){var g,b=u,C;for(typeof l=="string"&&(l=[l]),c(u)&&(b=function(A,ie){ie[u]=It(A)}),C=l.length,g=0;g68?1900:2e3)};var rv=Dl("FullYear",!0);function wN(){return Hu(this.year())}function Dl(l,u){return function(g){return g!=null?(av(this,l,g),i.updateOffset(this,u),this):U2(this,l)}}function U2(l,u){if(!l.isValid())return NaN;var g=l._d,b=l._isUTC;switch(u){case"Milliseconds":return b?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return b?g.getUTCSeconds():g.getSeconds();case"Minutes":return b?g.getUTCMinutes():g.getMinutes();case"Hours":return b?g.getUTCHours():g.getHours();case"Date":return b?g.getUTCDate():g.getDate();case"Day":return b?g.getUTCDay():g.getDay();case"Month":return b?g.getUTCMonth():g.getMonth();case"FullYear":return b?g.getUTCFullYear():g.getFullYear();default:return NaN}}function av(l,u,g){var b,C,A,ie,Pe;if(!(!l.isValid()||isNaN(g))){switch(b=l._d,C=l._isUTC,u){case"Milliseconds":return void(C?b.setUTCMilliseconds(g):b.setMilliseconds(g));case"Seconds":return void(C?b.setUTCSeconds(g):b.setSeconds(g));case"Minutes":return void(C?b.setUTCMinutes(g):b.setMinutes(g));case"Hours":return void(C?b.setUTCHours(g):b.setHours(g));case"Date":return void(C?b.setUTCDate(g):b.setDate(g));case"FullYear":break;default:return}A=g,ie=l.month(),Pe=l.date(),Pe=Pe===29&&ie===1&&!Hu(A)?28:Pe,C?b.setUTCFullYear(A,ie,Pe):b.setFullYear(A,ie,Pe)}}function DN(l){return l=jo(l),Oi(this[l])?this[l]():this}function SN(l,u){if(typeof l=="object"){l=Wh(l);var g=gN(l),b,C=g.length;for(b=0;b=0?(Pe=new Date(l+400,u,g,b,C,A,ie),isFinite(Pe.getFullYear())&&Pe.setFullYear(l)):Pe=new Date(l,u,g,b,C,A,ie),Pe}function $2(l){var u,g;return l<100&&l>=0?(g=Array.prototype.slice.call(arguments),g[0]=l+400,u=new Date(Date.UTC.apply(null,g)),isFinite(u.getUTCFullYear())&&u.setUTCFullYear(l)):u=new Date(Date.UTC.apply(null,arguments)),u}function Uu(l,u,g){var b=7+u-g,C=(7+$2(l,0,b).getUTCDay()-u)%7;return-C+b-1}function mv(l,u,g,b,C){var A=(7+g-b)%7,ie=Uu(l,b,C),Pe=1+7*(u-1)+A+ie,st,Pt;return Pe<=0?(st=l-1,Pt=H2(st)+Pe):Pe>H2(l)?(st=l+1,Pt=Pe-H2(l)):(st=l,Pt=Pe),{year:st,dayOfYear:Pt}}function G2(l,u,g){var b=Uu(l.year(),u,g),C=Math.floor((l.dayOfYear()-b-1)/7)+1,A,ie;return C<1?(ie=l.year()-1,A=C+Ma(ie,u,g)):C>Ma(l.year(),u,g)?(A=C-Ma(l.year(),u,g),ie=l.year()+1):(ie=l.year(),A=C),{week:A,year:ie}}function Ma(l,u,g){var b=Uu(l,u,g),C=Uu(l+1,u,g);return(H2(l)-b+C)/7}Ve("w",["ww",2],"wo","week"),Ve("W",["WW",2],"Wo","isoWeek"),Le("w",hn,wl),Le("ww",hn,xo),Le("W",hn,wl),Le("WW",hn,xo),j2(["w","ww","W","WW"],function(l,u,g,b){u[b.substr(0,1)]=It(l)});function VN(l){return G2(l,this._week.dow,this._week.doy).week}var BN={dow:0,doy:6};function jN(){return this._week.dow}function HN(){return this._week.doy}function UN(l){var u=this.localeData().week(this);return l==null?u:this.add((l-u)*7,"d")}function $N(l){var u=G2(this,1,4).week;return l==null?u:this.add((l-u)*7,"d")}Ve("d",0,"do","day"),Ve("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),Ve("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),Ve("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),Ve("e",0,0,"weekday"),Ve("E",0,0,"isoWeekday"),Le("d",hn),Le("e",hn),Le("E",hn),Le("dd",function(l,u){return u.weekdaysMinRegex(l)}),Le("ddd",function(l,u){return u.weekdaysShortRegex(l)}),Le("dddd",function(l,u){return u.weekdaysRegex(l)}),j2(["dd","ddd","dddd"],function(l,u,g,b){var C=g._locale.weekdaysParse(l,b,g._strict);C!=null?u.d=C:O(g).invalidWeekday=l}),j2(["d","e","E"],function(l,u,g,b){u[b]=It(l)});function GN(l,u){return typeof l!="string"?l:isNaN(l)?(l=u.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function WN(l,u){return typeof l=="string"?u.weekdaysParse(l)%7||7:isNaN(l)?null:l}function Zh(l,u){return l.slice(u,7).concat(l.slice(0,u))}var qN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),YN="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),QN=B2,KN=B2,XN=B2;function ZN(l,u){var g=n(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(u)?"format":"standalone"];return l===!0?Zh(g,this._week.dow):l?g[l.day()]:g}function JN(l){return l===!0?Zh(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function eF(l){return l===!0?Zh(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function tF(l,u,g){var b,C,A,ie=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],b=0;b<7;++b)A=x([2e3,1]).day(b),this._minWeekdaysParse[b]=this.weekdaysMin(A,"").toLocaleLowerCase(),this._shortWeekdaysParse[b]=this.weekdaysShort(A,"").toLocaleLowerCase(),this._weekdaysParse[b]=this.weekdays(A,"").toLocaleLowerCase();return g?u==="dddd"?(C=Hn.call(this._weekdaysParse,ie),C!==-1?C:null):u==="ddd"?(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1?C:null):(C=Hn.call(this._minWeekdaysParse,ie),C!==-1?C:null):u==="dddd"?(C=Hn.call(this._weekdaysParse,ie),C!==-1||(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1)?C:(C=Hn.call(this._minWeekdaysParse,ie),C!==-1?C:null)):u==="ddd"?(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1||(C=Hn.call(this._weekdaysParse,ie),C!==-1)?C:(C=Hn.call(this._minWeekdaysParse,ie),C!==-1?C:null)):(C=Hn.call(this._minWeekdaysParse,ie),C!==-1||(C=Hn.call(this._weekdaysParse,ie),C!==-1)?C:(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1?C:null))}function nF(l,u,g){var b,C,A;if(this._weekdaysParseExact)return tF.call(this,l,u,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),b=0;b<7;b++){if(C=x([2e3,1]).day(b),g&&!this._fullWeekdaysParse[b]&&(this._fullWeekdaysParse[b]=new RegExp("^"+this.weekdays(C,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[b]=new RegExp("^"+this.weekdaysShort(C,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[b]=new RegExp("^"+this.weekdaysMin(C,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[b]||(A="^"+this.weekdays(C,"")+"|^"+this.weekdaysShort(C,"")+"|^"+this.weekdaysMin(C,""),this._weekdaysParse[b]=new RegExp(A.replace(".",""),"i")),g&&u==="dddd"&&this._fullWeekdaysParse[b].test(l))return b;if(g&&u==="ddd"&&this._shortWeekdaysParse[b].test(l))return b;if(g&&u==="dd"&&this._minWeekdaysParse[b].test(l))return b;if(!g&&this._weekdaysParse[b].test(l))return b}}function iF(l){if(!this.isValid())return l!=null?this:NaN;var u=U2(this,"Day");return l!=null?(l=GN(l,this.localeData()),this.add(l-u,"d")):u}function oF(l){if(!this.isValid())return l!=null?this:NaN;var u=(this.day()+7-this.localeData()._week.dow)%7;return l==null?u:this.add(l-u,"d")}function rF(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var u=WN(l,this.localeData());return this.day(this.day()%7?u:u-7)}else return this.day()||7}function aF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jh.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=QN),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function sF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jh.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=KN),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jh.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=XN),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jh(){function l(qi,Ea){return Ea.length-qi.length}var u=[],g=[],b=[],C=[],A,ie,Pe,st,Pt;for(A=0;A<7;A++)ie=x([2e3,1]).day(A),Pe=ya(this.weekdaysMin(ie,"")),st=ya(this.weekdaysShort(ie,"")),Pt=ya(this.weekdays(ie,"")),u.push(Pe),g.push(st),b.push(Pt),C.push(Pe),C.push(st),C.push(Pt);u.sort(l),g.sort(l),b.sort(l),C.sort(l),this._weekdaysRegex=new RegExp("^("+C.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+b.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function e6(){return this.hours()%12||12}function lF(){return this.hours()||24}Ve("H",["HH",2],0,"hour"),Ve("h",["hh",2],0,e6),Ve("k",["kk",2],0,lF),Ve("hmm",0,0,function(){return""+e6.apply(this)+Br(this.minutes(),2)}),Ve("hmmss",0,0,function(){return""+e6.apply(this)+Br(this.minutes(),2)+Br(this.seconds(),2)}),Ve("Hmm",0,0,function(){return""+this.hours()+Br(this.minutes(),2)}),Ve("Hmmss",0,0,function(){return""+this.hours()+Br(this.minutes(),2)+Br(this.seconds(),2)});function fv(l,u){Ve(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),u)})}fv("a",!0),fv("A",!1);function hv(l,u){return u._meridiemParse}Le("a",hv),Le("A",hv),Le("H",hn,Qh),Le("h",hn,wl),Le("k",hn,wl),Le("HH",hn,xo),Le("hh",hn,xo),Le("kk",hn,xo),Le("hmm",iv),Le("hmmss",ov),Le("Hmm",iv),Le("Hmmss",ov),Zt(["H","HH"],ri),Zt(["k","kk"],function(l,u,g){var b=It(l);u[ri]=b===24?0:b}),Zt(["a","A"],function(l,u,g){g._isPm=g._locale.isPM(l),g._meridiem=l}),Zt(["h","hh"],function(l,u,g){u[ri]=It(l),O(g).bigHour=!0}),Zt("hmm",function(l,u,g){var b=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b)),O(g).bigHour=!0}),Zt("hmmss",function(l,u,g){var b=l.length-4,C=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b,2)),u[xa]=It(l.substr(C)),O(g).bigHour=!0}),Zt("Hmm",function(l,u,g){var b=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b))}),Zt("Hmmss",function(l,u,g){var b=l.length-4,C=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b,2)),u[xa]=It(l.substr(C))});function dF(l){return(l+"").toLowerCase().charAt(0)==="p"}var uF=/[ap]\.?m?\.?/i,mF=Dl("Hours",!0);function pF(l,u,g){return l>11?g?"pm":"PM":g?"am":"AM"}var gv={calendar:tN,longDateFormat:rN,invalidDate:sN,ordinal:lN,dayOfMonthOrdinalParse:dN,relativeTime:mN,months:EN,monthsShort:sv,week:BN,weekdays:qN,weekdaysMin:YN,weekdaysShort:pv,meridiemParse:uF},Dn={},W2={},q2;function fF(l,u){var g,b=Math.min(l.length,u.length);for(g=0;g0;){if(C=$u(A.slice(0,g).join("-")),C)return C;if(b&&b.length>=g&&fF(A,b)>=g-1)break;g--}u++}return q2}function gF(l){return!!(l&&l.match("^[^/\\\\]*$"))}function $u(l){var u=null,g;if(Dn[l]===void 0&&typeof R1<"u"&&R1&&R1.exports&&gF(l))try{u=q2._abbr,g=$v,g("./locale/"+l),ss(u)}catch{Dn[l]=null}return Dn[l]}function ss(l,u){var g;return l&&(s(u)?g=wa(l):g=t6(l,u),g?q2=g:typeof console<"u"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),q2._abbr}function t6(l,u){if(u!==null){var g,b=gv;if(u.abbr=l,Dn[l]!=null)Pu("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),b=Dn[l]._config;else if(u.parentLocale!=null)if(Dn[u.parentLocale]!=null)b=Dn[u.parentLocale]._config;else if(g=$u(u.parentLocale),g!=null)b=g._config;else return W2[u.parentLocale]||(W2[u.parentLocale]=[]),W2[u.parentLocale].push({name:l,config:u}),null;return Dn[l]=new V2(F2(b,u)),W2[l]&&W2[l].forEach(function(C){t6(C.name,C.config)}),ss(l),Dn[l]}else return delete Dn[l],null}function _F(l,u){if(u!=null){var g,b,C=gv;Dn[l]!=null&&Dn[l].parentLocale!=null?Dn[l].set(F2(Dn[l]._config,u)):(b=$u(l),b!=null&&(C=b._config),u=F2(C,u),b==null&&(u.abbr=l),g=new V2(u),g.parentLocale=Dn[l],Dn[l]=g),ss(l)}else Dn[l]!=null&&(Dn[l].parentLocale!=null?(Dn[l]=Dn[l].parentLocale,l===ss()&&ss(l)):Dn[l]!=null&&delete Dn[l]);return Dn[l]}function wa(l){var u;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return q2;if(!n(l)){if(u=$u(l),u)return u;l=[l]}return hF(l)}function bF(){return Uh(Dn)}function n6(l){var u,g=l._a;return g&&O(l).overflow===-2&&(u=g[Ca]<0||g[Ca]>11?Ca:g[jr]<1||g[jr]>Xh(g[Ti],g[Ca])?jr:g[ri]<0||g[ri]>24||g[ri]===24&&(g[lr]!==0||g[xa]!==0||g[lc]!==0)?ri:g[lr]<0||g[lr]>59?lr:g[xa]<0||g[xa]>59?xa:g[lc]<0||g[lc]>999?lc:-1,O(l)._overflowDayOfYear&&(ujr)&&(u=jr),O(l)._overflowWeeks&&u===-1&&(u=xN),O(l)._overflowWeekday&&u===-1&&(u=MN),O(l).overflow=u),l}var vF=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yF=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,CF=/Z|[+-]\d\d(?::?\d\d)?/,Gu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],i6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xF=/^\/?Date\((-?\d+)/i,MF=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wF={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bv(l){var u,g,b=l._i,C=vF.exec(b)||yF.exec(b),A,ie,Pe,st,Pt=Gu.length,qi=i6.length;if(C){for(O(l).iso=!0,u=0,g=Pt;uH2(ie)||l._dayOfYear===0)&&(O(l)._overflowDayOfYear=!0),g=$2(ie,0,l._dayOfYear),l._a[Ca]=g.getUTCMonth(),l._a[jr]=g.getUTCDate()),u=0;u<3&&l._a[u]==null;++u)l._a[u]=b[u]=C[u];for(;u<7;u++)l._a[u]=b[u]=l._a[u]==null?u===2?1:0:l._a[u];l._a[ri]===24&&l._a[lr]===0&&l._a[xa]===0&&l._a[lc]===0&&(l._nextDay=!0,l._a[ri]=0),l._d=(l._useUTC?$2:FN).apply(null,b),A=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[ri]=24),l._w&&typeof l._w.d<"u"&&l._w.d!==A&&(O(l).weekdayMismatch=!0)}}function PF(l){var u,g,b,C,A,ie,Pe,st,Pt;u=l._w,u.GG!=null||u.W!=null||u.E!=null?(A=1,ie=4,g=Sl(u.GG,l._a[Ti],G2(gn(),1,4).year),b=Sl(u.W,1),C=Sl(u.E,1),(C<1||C>7)&&(st=!0)):(A=l._locale._week.dow,ie=l._locale._week.doy,Pt=G2(gn(),A,ie),g=Sl(u.gg,l._a[Ti],Pt.year),b=Sl(u.w,Pt.week),u.d!=null?(C=u.d,(C<0||C>6)&&(st=!0)):u.e!=null?(C=u.e+A,(u.e<0||u.e>6)&&(st=!0)):C=A),b<1||b>Ma(g,A,ie)?O(l)._overflowWeeks=!0:st!=null?O(l)._overflowWeekday=!0:(Pe=mv(g,b,C,A,ie),l._a[Ti]=Pe.year,l._dayOfYear=Pe.dayOfYear)}i.ISO_8601=function(){},i.RFC_2822=function(){};function r6(l){if(l._f===i.ISO_8601){bv(l);return}if(l._f===i.RFC_2822){vv(l);return}l._a=[],O(l).empty=!0;var u=""+l._i,g,b,C,A,ie,Pe=u.length,st=0,Pt,qi;for(C=Jb(l._f,l._locale).match($h)||[],qi=C.length,g=0;g0&&O(l).unusedInput.push(ie),u=u.slice(u.indexOf(b)+b.length),st+=b.length),xl[A]?(b?O(l).empty=!1:O(l).unusedTokens.push(A),CN(A,b,l)):l._strict&&!b&&O(l).unusedTokens.push(A);O(l).charsLeftOver=Pe-st,u.length>0&&O(l).unusedInput.push(u),l._a[ri]<=12&&O(l).bigHour===!0&&l._a[ri]>0&&(O(l).bigHour=void 0),O(l).parsedDateParts=l._a.slice(0),O(l).meridiem=l._meridiem,l._a[ri]=LF(l._locale,l._a[ri],l._meridiem),Pt=O(l).era,Pt!==null&&(l._a[Ti]=l._locale.erasConvertYear(Pt,l._a[Ti])),o6(l),n6(l)}function LF(l,u,g){var b;return g==null?u:l.meridiemHour!=null?l.meridiemHour(u,g):(l.isPM!=null&&(b=l.isPM(g),b&&u<12&&(u+=12),!b&&u===12&&(u=0)),u)}function AF(l){var u,g,b,C,A,ie,Pe=!1,st=l._f.length;if(st===0){O(l).invalidFormat=!0,l._d=new Date(NaN);return}for(C=0;Cthis?this:l:Z()});function xv(l,u){var g,b;if(u.length===1&&n(u[0])&&(u=u[0]),!u.length)return gn();for(g=u[0],b=1;bthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tV(){if(!s(this._isDSTShifted))return this._isDSTShifted;var l={},u;return Et(l,this),l=yv(l),l._a?(u=l._isUTC?x(l._a):gn(l._a),this._isDSTShifted=this.isValid()&&WF(l._a,u.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function nV(){return this.isValid()?!this._isUTC:!1}function iV(){return this.isValid()?this._isUTC:!1}function wv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var oV=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,rV=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function dr(l,u){var g=l,b=null,C,A,ie;return qu(l)?g={ms:l._milliseconds,d:l._days,M:l._months}:c(l)||!isNaN(+l)?(g={},u?g[u]=+l:g.milliseconds=+l):(b=oV.exec(l))?(C=b[1]==="-"?-1:1,g={y:0,d:It(b[jr])*C,h:It(b[ri])*C,m:It(b[lr])*C,s:It(b[xa])*C,ms:It(a6(b[lc]*1e3))*C}):(b=rV.exec(l))?(C=b[1]==="-"?-1:1,g={y:dc(b[2],C),M:dc(b[3],C),w:dc(b[4],C),d:dc(b[5],C),h:dc(b[6],C),m:dc(b[7],C),s:dc(b[8],C)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(ie=aV(gn(g.from),gn(g.to)),g={},g.ms=ie.milliseconds,g.M=ie.months),A=new Wu(g),qu(l)&&r(l,"_locale")&&(A._locale=l._locale),qu(l)&&r(l,"_isValid")&&(A._isValid=l._isValid),A}dr.fn=Wu.prototype,dr.invalid=GF;function dc(l,u){var g=l&&parseFloat(l.replace(",","."));return(isNaN(g)?0:g)*u}function Dv(l,u){var g={};return g.months=u.month()-l.month()+(u.year()-l.year())*12,l.clone().add(g.months,"M").isAfter(u)&&--g.months,g.milliseconds=+u-+l.clone().add(g.months,"M"),g}function aV(l,u){var g;return l.isValid()&&u.isValid()?(u=c6(u,l),l.isBefore(u)?g=Dv(l,u):(g=Dv(u,l),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function Sv(l,u){return function(g,b){var C,A;return b!==null&&!isNaN(+b)&&(Pu(u,"moment()."+u+"(period, number) is deprecated. Please use moment()."+u+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),A=g,g=b,b=A),C=dr(g,b),kv(this,C,l),this}}function kv(l,u,g,b){var C=u._milliseconds,A=a6(u._days),ie=a6(u._months);l.isValid()&&(b=b??!0,ie&&lv(l,U2(l,"Month")+ie*g),A&&av(l,"Date",U2(l,"Date")+A*g),C&&l._d.setTime(l._d.valueOf()+C*g),b&&i.updateOffset(l,A||ie))}var sV=Sv(1,"add"),cV=Sv(-1,"subtract");function Ev(l){return typeof l=="string"||l instanceof String}function lV(l){return fn(l)||m(l)||Ev(l)||c(l)||uV(l)||dV(l)||l===null||l===void 0}function dV(l){var u=o(l)&&!a(l),g=!1,b=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],C,A,ie=b.length;for(C=0;Cg.valueOf():g.valueOf()9999?zu(g,u?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Oi(Date.prototype.toISOString)?u?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",zu(g,"Z")):zu(g,u?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function DV(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",u="",g,b,C,A;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",u="Z"),g="["+l+'("]',b=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",C="-MM-DD[T]HH:mm:ss.SSS",A=u+'[")]',this.format(g+b+C+A)}function SV(l){l||(l=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var u=zu(this,l);return this.localeData().postformat(u)}function kV(l,u){return this.isValid()&&(fn(l)&&l.isValid()||gn(l).isValid())?dr({to:this,from:l}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function EV(l){return this.from(gn(),l)}function IV(l,u){return this.isValid()&&(fn(l)&&l.isValid()||gn(l).isValid())?dr({from:this,to:l}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function OV(l){return this.to(gn(),l)}function Iv(l){var u;return l===void 0?this._locale._abbr:(u=wa(l),u!=null&&(this._locale=u),this)}var Ov=oi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function Tv(){return this._locale}var Qu=1e3,kl=60*Qu,Ku=60*kl,Pv=(365*400+97)*24*Ku;function El(l,u){return(l%u+u)%u}function Lv(l,u,g){return l<100&&l>=0?new Date(l+400,u,g)-Pv:new Date(l,u,g).valueOf()}function Av(l,u,g){return l<100&&l>=0?Date.UTC(l+400,u,g)-Pv:Date.UTC(l,u,g)}function TV(l){var u,g;if(l=jo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Av:Lv,l){case"year":u=g(this.year(),0,1);break;case"quarter":u=g(this.year(),this.month()-this.month()%3,1);break;case"month":u=g(this.year(),this.month(),1);break;case"week":u=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":u=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":u=g(this.year(),this.month(),this.date());break;case"hour":u=this._d.valueOf(),u-=El(u+(this._isUTC?0:this.utcOffset()*kl),Ku);break;case"minute":u=this._d.valueOf(),u-=El(u,kl);break;case"second":u=this._d.valueOf(),u-=El(u,Qu);break}return this._d.setTime(u),i.updateOffset(this,!0),this}function PV(l){var u,g;if(l=jo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Av:Lv,l){case"year":u=g(this.year()+1,0,1)-1;break;case"quarter":u=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":u=g(this.year(),this.month()+1,1)-1;break;case"week":u=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":u=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":u=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":u=this._d.valueOf(),u+=Ku-El(u+(this._isUTC?0:this.utcOffset()*kl),Ku)-1;break;case"minute":u=this._d.valueOf(),u+=kl-El(u,kl)-1;break;case"second":u=this._d.valueOf(),u+=Qu-El(u,Qu)-1;break}return this._d.setTime(u),i.updateOffset(this,!0),this}function LV(){return this._d.valueOf()-(this._offset||0)*6e4}function AV(){return Math.floor(this.valueOf()/1e3)}function zV(){return new Date(this.valueOf())}function RV(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function NV(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function FV(){return this.isValid()?this.toISOString():null}function VV(){return Y(this)}function BV(){return v({},O(this))}function jV(){return O(this).overflow}function HV(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr"),Ve("NN",0,0,"eraAbbr"),Ve("NNN",0,0,"eraAbbr"),Ve("NNNN",0,0,"eraName"),Ve("NNNNN",0,0,"eraNarrow"),Ve("y",["y",1],"yo","eraYear"),Ve("y",["yy",2],0,"eraYear"),Ve("y",["yyy",3],0,"eraYear"),Ve("y",["yyyy",4],0,"eraYear"),Le("N",d6),Le("NN",d6),Le("NNN",d6),Le("NNNN",JV),Le("NNNNN",eB),Zt(["N","NN","NNN","NNNN","NNNNN"],function(l,u,g,b){var C=g._locale.erasParse(l,b,g._strict);C?O(g).era=C:O(g).invalidEra=l}),Le("y",Ml),Le("yy",Ml),Le("yyy",Ml),Le("yyyy",Ml),Le("yo",tB),Zt(["y","yy","yyy","yyyy"],Ti),Zt(["yo"],function(l,u,g,b){var C;g._locale._eraYearOrdinalRegex&&(C=l.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?u[Ti]=g._locale.eraYearOrdinalParse(l,C):u[Ti]=parseInt(l,10)});function UV(l,u){var g,b,C,A=this._eras||wa("en")._eras;for(g=0,b=A.length;g=0)return A[b]}function GV(l,u){var g=l.since<=l.until?1:-1;return u===void 0?i(l.since).year():i(l.since).year()+(u-l.offset)*g}function WV(){var l,u,g,b=this.localeData().eras();for(l=0,u=b.length;lA&&(u=A),cB.call(this,l,u,g,b,C))}function cB(l,u,g,b,C){var A=mv(l,u,g,b,C),ie=$2(A.year,0,A.dayOfYear);return this.year(ie.getUTCFullYear()),this.month(ie.getUTCMonth()),this.date(ie.getUTCDate()),this}Ve("Q",0,"Qo","quarter"),Le("Q",tv),Zt("Q",function(l,u){u[Ca]=(It(l)-1)*3});function lB(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date"),Le("D",hn,wl),Le("DD",hn,xo),Le("Do",function(l,u){return l?u._dayOfMonthOrdinalParse||u._ordinalParse:u._dayOfMonthOrdinalParseLenient}),Zt(["D","DD"],jr),Zt("Do",function(l,u){u[jr]=It(l.match(hn)[0])});var Rv=Dl("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear"),Le("DDD",Nu),Le("DDDD",nv),Zt(["DDD","DDDD"],function(l,u,g){g._dayOfYear=It(l)});function dB(l){var u=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?u:this.add(l-u,"d")}Ve("m",["mm",2],0,"minute"),Le("m",hn,Qh),Le("mm",hn,xo),Zt(["m","mm"],lr);var uB=Dl("Minutes",!1);Ve("s",["ss",2],0,"second"),Le("s",hn,Qh),Le("ss",hn,xo),Zt(["s","ss"],xa);var mB=Dl("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)}),Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ve(0,["SSS",3],0,"millisecond"),Ve(0,["SSSS",4],0,function(){return this.millisecond()*10}),Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Le("S",Nu,tv),Le("SS",Nu,xo),Le("SSS",Nu,nv);var cs,Nv;for(cs="SSSS";cs.length<=9;cs+="S")Le(cs,Ml);function pB(l,u){u[lc]=It(("0."+l)*1e3)}for(cs="S";cs.length<=9;cs+="S")Zt(cs,pB);Nv=Dl("Milliseconds",!1),Ve("z",0,0,"zoneAbbr"),Ve("zz",0,0,"zoneName");function fB(){return this._isUTC?"UTC":""}function hB(){return this._isUTC?"Coordinated Universal Time":""}var ge=Ht.prototype;ge.add=sV,ge.calendar=fV,ge.clone=hV,ge.diff=xV,ge.endOf=PV,ge.format=SV,ge.from=kV,ge.fromNow=EV,ge.to=IV,ge.toNow=OV,ge.get=DN,ge.invalidAt=jV,ge.isAfter=gV,ge.isBefore=_V,ge.isBetween=bV,ge.isSame=vV,ge.isSameOrAfter=yV,ge.isSameOrBefore=CV,ge.isValid=VV,ge.lang=Ov,ge.locale=Iv,ge.localeData=Tv,ge.max=VF,ge.min=FF,ge.parsingFlags=BV,ge.set=SN,ge.startOf=TV,ge.subtract=cV,ge.toArray=RV,ge.toObject=NV,ge.toDate=zV,ge.toISOString=wV,ge.inspect=DV,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=FV,ge.toString=MV,ge.unix=AV,ge.valueOf=LV,ge.creationData=HV,ge.eraName=WV,ge.eraNarrow=qV,ge.eraAbbr=YV,ge.eraYear=QV,ge.year=rv,ge.isLeapYear=wN,ge.weekYear=nB,ge.isoWeekYear=iB,ge.quarter=ge.quarters=lB,ge.month=dv,ge.daysInMonth=zN,ge.week=ge.weeks=UN,ge.isoWeek=ge.isoWeeks=$N,ge.weeksInYear=aB,ge.weeksInWeekYear=sB,ge.isoWeeksInYear=oB,ge.isoWeeksInISOWeekYear=rB,ge.date=Rv,ge.day=ge.days=iF,ge.weekday=oF,ge.isoWeekday=rF,ge.dayOfYear=dB,ge.hour=ge.hours=mF,ge.minute=ge.minutes=uB,ge.second=ge.seconds=mB,ge.millisecond=ge.milliseconds=Nv,ge.utcOffset=YF,ge.utc=KF,ge.local=XF,ge.parseZone=ZF,ge.hasAlignedHourOffset=JF,ge.isDST=eV,ge.isLocal=nV,ge.isUtcOffset=iV,ge.isUtc=wv,ge.isUTC=wv,ge.zoneAbbr=fB,ge.zoneName=hB,ge.dates=oi("dates accessor is deprecated. Use date instead.",Rv),ge.months=oi("months accessor is deprecated. Use month instead",dv),ge.years=oi("years accessor is deprecated. Use year instead",rv),ge.zone=oi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",QF),ge.isDSTShifted=oi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",tV);function gB(l){return gn(l*1e3)}function _B(){return gn.apply(null,arguments).parseZone()}function Fv(l){return l}var jt=V2.prototype;jt.calendar=nN,jt.longDateFormat=aN,jt.invalidDate=cN,jt.ordinal=uN,jt.preparse=Fv,jt.postformat=Fv,jt.relativeTime=pN,jt.pastFuture=fN,jt.set=Lu,jt.eras=UV,jt.erasParse=$V,jt.erasConvertYear=GV,jt.erasAbbrRegex=XV,jt.erasNameRegex=KV,jt.erasNarrowRegex=ZV,jt.months=TN,jt.monthsShort=PN,jt.monthsParse=AN,jt.monthsRegex=NN,jt.monthsShortRegex=RN,jt.week=VN,jt.firstDayOfYear=HN,jt.firstDayOfWeek=jN,jt.weekdays=ZN,jt.weekdaysMin=eF,jt.weekdaysShort=JN,jt.weekdaysParse=nF,jt.weekdaysRegex=aF,jt.weekdaysShortRegex=sF,jt.weekdaysMinRegex=cF,jt.isPM=dF,jt.meridiem=pF;function Zu(l,u,g,b){var C=wa(),A=x().set(b,u);return C[g](A,l)}function Vv(l,u,g){if(c(l)&&(u=l,l=void 0),l=l||"",u!=null)return Zu(l,u,g,"month");var b,C=[];for(b=0;b<12;b++)C[b]=Zu(l,b,g,"month");return C}function m6(l,u,g,b){typeof l=="boolean"?(c(u)&&(g=u,u=void 0),u=u||""):(u=l,g=u,l=!1,c(u)&&(g=u,u=void 0),u=u||"");var C=wa(),A=l?C._week.dow:0,ie,Pe=[];if(g!=null)return Zu(u,(g+A)%7,b,"day");for(ie=0;ie<7;ie++)Pe[ie]=Zu(u,(ie+A)%7,b,"day");return Pe}function bB(l,u){return Vv(l,u,"months")}function vB(l,u){return Vv(l,u,"monthsShort")}function yB(l,u,g){return m6(l,u,g,"weekdays")}function CB(l,u,g){return m6(l,u,g,"weekdaysShort")}function xB(l,u,g){return m6(l,u,g,"weekdaysMin")}ss("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(l){var u=l%10,g=It(l%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th";return l+g}}),i.lang=oi("moment.lang is deprecated. Use moment.locale instead.",ss),i.langData=oi("moment.langData is deprecated. Use moment.localeData instead.",wa);var Da=Math.abs;function MB(){var l=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),l.milliseconds=Da(l.milliseconds),l.seconds=Da(l.seconds),l.minutes=Da(l.minutes),l.hours=Da(l.hours),l.months=Da(l.months),l.years=Da(l.years),this}function Bv(l,u,g,b){var C=dr(u,g);return l._milliseconds+=b*C._milliseconds,l._days+=b*C._days,l._months+=b*C._months,l._bubble()}function wB(l,u){return Bv(this,l,u,1)}function DB(l,u){return Bv(this,l,u,-1)}function jv(l){return l<0?Math.floor(l):Math.ceil(l)}function SB(){var l=this._milliseconds,u=this._days,g=this._months,b=this._data,C,A,ie,Pe,st;return l>=0&&u>=0&&g>=0||l<=0&&u<=0&&g<=0||(l+=jv(p6(g)+u)*864e5,u=0,g=0),b.milliseconds=l%1e3,C=Ho(l/1e3),b.seconds=C%60,A=Ho(C/60),b.minutes=A%60,ie=Ho(A/60),b.hours=ie%24,u+=Ho(ie/24),st=Ho(Hv(u)),g+=st,u-=jv(p6(st)),Pe=Ho(g/12),g%=12,b.days=u,b.months=g,b.years=Pe,this}function Hv(l){return l*4800/146097}function p6(l){return l*146097/4800}function kB(l){if(!this.isValid())return NaN;var u,g,b=this._milliseconds;if(l=jo(l),l==="month"||l==="quarter"||l==="year")switch(u=this._days+b/864e5,g=this._months+Hv(u),l){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(u=this._days+Math.round(p6(this._months)),l){case"week":return u/7+b/6048e5;case"day":return u+b/864e5;case"hour":return u*24+b/36e5;case"minute":return u*1440+b/6e4;case"second":return u*86400+b/1e3;case"millisecond":return Math.floor(u*864e5)+b;default:throw new Error("Unknown unit "+l)}}function Sa(l){return function(){return this.as(l)}}var Uv=Sa("ms"),EB=Sa("s"),IB=Sa("m"),OB=Sa("h"),TB=Sa("d"),PB=Sa("w"),LB=Sa("M"),AB=Sa("Q"),zB=Sa("y"),RB=Uv;function NB(){return dr(this)}function FB(l){return l=jo(l),this.isValid()?this[l+"s"]():NaN}function uc(l){return function(){return this.isValid()?this._data[l]:NaN}}var VB=uc("milliseconds"),BB=uc("seconds"),jB=uc("minutes"),HB=uc("hours"),UB=uc("days"),$B=uc("months"),GB=uc("years");function WB(){return Ho(this.days()/7)}var ka=Math.round,Il={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qB(l,u,g,b,C){return C.relativeTime(u||1,!!g,l,b)}function YB(l,u,g,b){var C=dr(l).abs(),A=ka(C.as("s")),ie=ka(C.as("m")),Pe=ka(C.as("h")),st=ka(C.as("d")),Pt=ka(C.as("M")),qi=ka(C.as("w")),Ea=ka(C.as("y")),ls=A<=g.ss&&["s",A]||A0,ls[4]=b,qB.apply(null,ls)}function QB(l){return l===void 0?ka:typeof l=="function"?(ka=l,!0):!1}function KB(l,u){return Il[l]===void 0?!1:u===void 0?Il[l]:(Il[l]=u,l==="s"&&(Il.ss=u-1),!0)}function XB(l,u){if(!this.isValid())return this.localeData().invalidDate();var g=!1,b=Il,C,A;return typeof l=="object"&&(u=l,l=!1),typeof l=="boolean"&&(g=l),typeof u=="object"&&(b=Object.assign({},Il,u),u.s!=null&&u.ss==null&&(b.ss=u.s-1)),C=this.localeData(),A=YB(this,!g,b,C),g&&(A=C.pastFuture(+this,A)),C.postformat(A)}var f6=Math.abs;function Ol(l){return(l>0)-(l<0)||+l}function Ju(){if(!this.isValid())return this.localeData().invalidDate();var l=f6(this._milliseconds)/1e3,u=f6(this._days),g=f6(this._months),b,C,A,ie,Pe=this.asSeconds(),st,Pt,qi,Ea;return Pe?(b=Ho(l/60),C=Ho(b/60),l%=60,b%=60,A=Ho(g/12),g%=12,ie=l?l.toFixed(3).replace(/\.?0+$/,""):"",st=Pe<0?"-":"",Pt=Ol(this._months)!==Ol(Pe)?"-":"",qi=Ol(this._days)!==Ol(Pe)?"-":"",Ea=Ol(this._milliseconds)!==Ol(Pe)?"-":"",st+"P"+(A?Pt+A+"Y":"")+(g?Pt+g+"M":"")+(u?qi+u+"D":"")+(C||b||l?"T":"")+(C?Ea+C+"H":"")+(b?Ea+b+"M":"")+(l?Ea+ie+"S":"")):"P0D"}var Rt=Wu.prototype;Rt.isValid=$F,Rt.abs=MB,Rt.add=wB,Rt.subtract=DB,Rt.as=kB,Rt.asMilliseconds=Uv,Rt.asSeconds=EB,Rt.asMinutes=IB,Rt.asHours=OB,Rt.asDays=TB,Rt.asWeeks=PB,Rt.asMonths=LB,Rt.asQuarters=AB,Rt.asYears=zB,Rt.valueOf=RB,Rt._bubble=SB,Rt.clone=NB,Rt.get=FB,Rt.milliseconds=VB,Rt.seconds=BB,Rt.minutes=jB,Rt.hours=HB,Rt.days=UB,Rt.weeks=WB,Rt.months=$B,Rt.years=GB,Rt.humanize=XB,Rt.toISOString=Ju,Rt.toString=Ju,Rt.toJSON=Ju,Rt.locale=Iv,Rt.localeData=Tv,Rt.toIsoString=oi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ju),Rt.lang=Ov,Ve("X",0,0,"unix"),Ve("x",0,0,"valueOf"),Le("x",Vu),Le("X",bN),Zt("X",function(l,u,g){g._d=new Date(parseFloat(l)*1e3)}),Zt("x",function(l,u,g){g._d=new Date(It(l))});return i.version="2.30.1",e(gn),i.fn=ge,i.min=BF,i.max=jF,i.now=HF,i.utc=x,i.unix=gB,i.months=bB,i.isDate=m,i.locale=ss,i.invalid=Z,i.duration=dr,i.isMoment=fn,i.weekdays=yB,i.parseZone=_B,i.localeData=wa,i.isDuration=qu,i.monthsShort=vB,i.weekdaysMin=xB,i.defineLocale=t6,i.updateLocale=_F,i.locales=bF,i.weekdaysShort=CB,i.normalizeUnits=jo,i.relativeTimeRounding=QB,i.relativeTimeThreshold=KB,i.calendarFormat=pV,i.prototype=ge,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i})});var aS=Gv((yye,rS)=>{function qm(t){var i=" ";if(isNaN(parseInt(t)))i=t;else switch(t){case 1:i=" ";break;case 2:i=" ";break;case 3:i=" ";break;case 4:i=" ";break;case 5:i=" ";break;case 6:i=" ";break;case 7:i=" ";break;case 8:i=" ";break;case 9:i=" ";break;case 10:i=" ";break;case 11:i=" ";break;case 12:i=" ";break}for(var e=[` +`+new Error().stack),g=!1}return u.apply(this,arguments)},u)}var Cl={};function Pu(l,u){i.deprecationHandler!=null&&i.deprecationHandler(l,u),Cl[l]||(Bo(u),Cl[l]=!0)}i.suppressDeprecationWarnings=!1,i.deprecationHandler=null;function Oi(l){return typeof Function<"u"&&l instanceof Function||Object.prototype.toString.call(l)==="[object Function]"}function Lu(l){var u,g;for(g in l)r(l,g)&&(u=l[g],Oi(u)?this[g]=u:this["_"+g]=u);this._config=l,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function F2(l,u){var g=v({},l),b;for(b in u)r(u,b)&&(o(l[b])&&o(u[b])?(g[b]={},v(g[b],l[b]),v(g[b],u[b])):u[b]!=null?g[b]=u[b]:delete g[b]);for(b in l)r(l,b)&&!r(u,b)&&o(l[b])&&(g[b]=v({},g[b]));return g}function V2(l){l!=null&&this.set(l)}var Uh;Object.keys?Uh=Object.keys:Uh=function(l){var u,g=[];for(u in l)r(l,u)&&g.push(u);return g};var tN={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function nN(l,u,g){var b=this._calendar[l]||this._calendar.sameElse;return Oi(b)?b.call(u,g):b}function Br(l,u,g){var b=""+Math.abs(l),C=u-b.length,A=l>=0;return(A?g?"+":"":"-")+Math.pow(10,Math.max(0,C)).toString().substr(1)+b}var $h=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Au=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Gh={},xl={};function Ve(l,u,g,b){var C=b;typeof b=="string"&&(C=function(){return this[b]()}),l&&(xl[l]=C),u&&(xl[u[0]]=function(){return Br(C.apply(this,arguments),u[1],u[2])}),g&&(xl[g]=function(){return this.localeData().ordinal(C.apply(this,arguments),l)})}function iN(l){return l.match(/\[[\s\S]/)?l.replace(/^\[|\]$/g,""):l.replace(/\\/g,"")}function oN(l){var u=l.match($h),g,b;for(g=0,b=u.length;g=0&&Au.test(l);)l=l.replace(Au,b),Au.lastIndex=0,g-=1;return l}var rN={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function aN(l){var u=this._longDateFormat[l],g=this._longDateFormat[l.toUpperCase()];return u||!g?u:(this._longDateFormat[l]=g.match($h).map(function(b){return b==="MMMM"||b==="MM"||b==="DD"||b==="dddd"?b.slice(1):b}).join(""),this._longDateFormat[l])}var sN="Invalid date";function cN(){return this._invalidDate}var lN="%d",dN=/\d{1,2}/;function uN(l){return this._ordinal.replace("%d",l)}var mN={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function pN(l,u,g,b){var C=this._relativeTime[g];return Oi(C)?C(l,u,g,b):C.replace(/%d/i,l)}function fN(l,u){var g=this._relativeTime[l>0?"future":"past"];return Oi(g)?g(u):g.replace(/%s/i,u)}var ev={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function jo(l){return typeof l=="string"?ev[l]||ev[l.toLowerCase()]:void 0}function Wh(l){var u={},g,b;for(b in l)r(l,b)&&(g=jo(b),g&&(u[g]=l[b]));return u}var hN={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1};function gN(l){var u=[],g;for(g in l)r(l,g)&&u.push({unit:g,priority:hN[g]});return u.sort(function(b,C){return b.priority-C.priority}),u}var tv=/\d/,xo=/\d\d/,nv=/\d{3}/,qh=/\d{4}/,Ru=/[+-]?\d{6}/,hn=/\d\d?/,iv=/\d\d\d\d?/,ov=/\d\d\d\d\d\d?/,Nu=/\d{1,3}/,Yh=/\d{1,4}/,Fu=/[+-]?\d{1,6}/,Ml=/\d+/,Vu=/[+-]?\d+/,_N=/Z|[+-]\d\d:?\d\d/gi,Bu=/Z|[+-]\d\d(?::?\d\d)?/gi,bN=/[+-]?\d+(\.\d{1,3})?/,B2=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,wl=/^[1-9]\d?/,Qh=/^([1-9]\d|\d)/,ju;ju={};function Le(l,u,g){ju[l]=Oi(u)?u:function(b,C){return b&&g?g:u}}function vN(l,u){return r(ju,l)?ju[l](u._strict,u._locale):new RegExp(yN(l))}function yN(l){return ya(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(u,g,b,C,A){return g||b||C||A}))}function ya(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function Ho(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function It(l){var u=+l,g=0;return u!==0&&isFinite(u)&&(g=Ho(u)),g}var Kh={};function Zt(l,u){var g,b=u,C;for(typeof l=="string"&&(l=[l]),c(u)&&(b=function(A,ie){ie[u]=It(A)}),C=l.length,g=0;g68?1900:2e3)};var rv=Dl("FullYear",!0);function wN(){return Hu(this.year())}function Dl(l,u){return function(g){return g!=null?(av(this,l,g),i.updateOffset(this,u),this):U2(this,l)}}function U2(l,u){if(!l.isValid())return NaN;var g=l._d,b=l._isUTC;switch(u){case"Milliseconds":return b?g.getUTCMilliseconds():g.getMilliseconds();case"Seconds":return b?g.getUTCSeconds():g.getSeconds();case"Minutes":return b?g.getUTCMinutes():g.getMinutes();case"Hours":return b?g.getUTCHours():g.getHours();case"Date":return b?g.getUTCDate():g.getDate();case"Day":return b?g.getUTCDay():g.getDay();case"Month":return b?g.getUTCMonth():g.getMonth();case"FullYear":return b?g.getUTCFullYear():g.getFullYear();default:return NaN}}function av(l,u,g){var b,C,A,ie,Pe;if(!(!l.isValid()||isNaN(g))){switch(b=l._d,C=l._isUTC,u){case"Milliseconds":return void(C?b.setUTCMilliseconds(g):b.setMilliseconds(g));case"Seconds":return void(C?b.setUTCSeconds(g):b.setSeconds(g));case"Minutes":return void(C?b.setUTCMinutes(g):b.setMinutes(g));case"Hours":return void(C?b.setUTCHours(g):b.setHours(g));case"Date":return void(C?b.setUTCDate(g):b.setDate(g));case"FullYear":break;default:return}A=g,ie=l.month(),Pe=l.date(),Pe=Pe===29&&ie===1&&!Hu(A)?28:Pe,C?b.setUTCFullYear(A,ie,Pe):b.setFullYear(A,ie,Pe)}}function DN(l){return l=jo(l),Oi(this[l])?this[l]():this}function SN(l,u){if(typeof l=="object"){l=Wh(l);var g=gN(l),b,C=g.length;for(b=0;b=0?(Pe=new Date(l+400,u,g,b,C,A,ie),isFinite(Pe.getFullYear())&&Pe.setFullYear(l)):Pe=new Date(l,u,g,b,C,A,ie),Pe}function $2(l){var u,g;return l<100&&l>=0?(g=Array.prototype.slice.call(arguments),g[0]=l+400,u=new Date(Date.UTC.apply(null,g)),isFinite(u.getUTCFullYear())&&u.setUTCFullYear(l)):u=new Date(Date.UTC.apply(null,arguments)),u}function Uu(l,u,g){var b=7+u-g,C=(7+$2(l,0,b).getUTCDay()-u)%7;return-C+b-1}function mv(l,u,g,b,C){var A=(7+g-b)%7,ie=Uu(l,b,C),Pe=1+7*(u-1)+A+ie,st,Pt;return Pe<=0?(st=l-1,Pt=H2(st)+Pe):Pe>H2(l)?(st=l+1,Pt=Pe-H2(l)):(st=l,Pt=Pe),{year:st,dayOfYear:Pt}}function G2(l,u,g){var b=Uu(l.year(),u,g),C=Math.floor((l.dayOfYear()-b-1)/7)+1,A,ie;return C<1?(ie=l.year()-1,A=C+Ma(ie,u,g)):C>Ma(l.year(),u,g)?(A=C-Ma(l.year(),u,g),ie=l.year()+1):(ie=l.year(),A=C),{week:A,year:ie}}function Ma(l,u,g){var b=Uu(l,u,g),C=Uu(l+1,u,g);return(H2(l)-b+C)/7}Ve("w",["ww",2],"wo","week"),Ve("W",["WW",2],"Wo","isoWeek"),Le("w",hn,wl),Le("ww",hn,xo),Le("W",hn,wl),Le("WW",hn,xo),j2(["w","ww","W","WW"],function(l,u,g,b){u[b.substr(0,1)]=It(l)});function VN(l){return G2(l,this._week.dow,this._week.doy).week}var BN={dow:0,doy:6};function jN(){return this._week.dow}function HN(){return this._week.doy}function UN(l){var u=this.localeData().week(this);return l==null?u:this.add((l-u)*7,"d")}function $N(l){var u=G2(this,1,4).week;return l==null?u:this.add((l-u)*7,"d")}Ve("d",0,"do","day"),Ve("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),Ve("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),Ve("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),Ve("e",0,0,"weekday"),Ve("E",0,0,"isoWeekday"),Le("d",hn),Le("e",hn),Le("E",hn),Le("dd",function(l,u){return u.weekdaysMinRegex(l)}),Le("ddd",function(l,u){return u.weekdaysShortRegex(l)}),Le("dddd",function(l,u){return u.weekdaysRegex(l)}),j2(["dd","ddd","dddd"],function(l,u,g,b){var C=g._locale.weekdaysParse(l,b,g._strict);C!=null?u.d=C:O(g).invalidWeekday=l}),j2(["d","e","E"],function(l,u,g,b){u[b]=It(l)});function GN(l,u){return typeof l!="string"?l:isNaN(l)?(l=u.weekdaysParse(l),typeof l=="number"?l:null):parseInt(l,10)}function WN(l,u){return typeof l=="string"?u.weekdaysParse(l)%7||7:isNaN(l)?null:l}function Zh(l,u){return l.slice(u,7).concat(l.slice(0,u))}var qN="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),pv="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),YN="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),QN=B2,KN=B2,XN=B2;function ZN(l,u){var g=n(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(u)?"format":"standalone"];return l===!0?Zh(g,this._week.dow):l?g[l.day()]:g}function JN(l){return l===!0?Zh(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort}function eF(l){return l===!0?Zh(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin}function tF(l,u,g){var b,C,A,ie=l.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],b=0;b<7;++b)A=x([2e3,1]).day(b),this._minWeekdaysParse[b]=this.weekdaysMin(A,"").toLocaleLowerCase(),this._shortWeekdaysParse[b]=this.weekdaysShort(A,"").toLocaleLowerCase(),this._weekdaysParse[b]=this.weekdays(A,"").toLocaleLowerCase();return g?u==="dddd"?(C=Hn.call(this._weekdaysParse,ie),C!==-1?C:null):u==="ddd"?(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1?C:null):(C=Hn.call(this._minWeekdaysParse,ie),C!==-1?C:null):u==="dddd"?(C=Hn.call(this._weekdaysParse,ie),C!==-1||(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1)?C:(C=Hn.call(this._minWeekdaysParse,ie),C!==-1?C:null)):u==="ddd"?(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1||(C=Hn.call(this._weekdaysParse,ie),C!==-1)?C:(C=Hn.call(this._minWeekdaysParse,ie),C!==-1?C:null)):(C=Hn.call(this._minWeekdaysParse,ie),C!==-1||(C=Hn.call(this._weekdaysParse,ie),C!==-1)?C:(C=Hn.call(this._shortWeekdaysParse,ie),C!==-1?C:null))}function nF(l,u,g){var b,C,A;if(this._weekdaysParseExact)return tF.call(this,l,u,g);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),b=0;b<7;b++){if(C=x([2e3,1]).day(b),g&&!this._fullWeekdaysParse[b]&&(this._fullWeekdaysParse[b]=new RegExp("^"+this.weekdays(C,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[b]=new RegExp("^"+this.weekdaysShort(C,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[b]=new RegExp("^"+this.weekdaysMin(C,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[b]||(A="^"+this.weekdays(C,"")+"|^"+this.weekdaysShort(C,"")+"|^"+this.weekdaysMin(C,""),this._weekdaysParse[b]=new RegExp(A.replace(".",""),"i")),g&&u==="dddd"&&this._fullWeekdaysParse[b].test(l))return b;if(g&&u==="ddd"&&this._shortWeekdaysParse[b].test(l))return b;if(g&&u==="dd"&&this._minWeekdaysParse[b].test(l))return b;if(!g&&this._weekdaysParse[b].test(l))return b}}function iF(l){if(!this.isValid())return l!=null?this:NaN;var u=U2(this,"Day");return l!=null?(l=GN(l,this.localeData()),this.add(l-u,"d")):u}function oF(l){if(!this.isValid())return l!=null?this:NaN;var u=(this.day()+7-this.localeData()._week.dow)%7;return l==null?u:this.add(l-u,"d")}function rF(l){if(!this.isValid())return l!=null?this:NaN;if(l!=null){var u=WN(l,this.localeData());return this.day(this.day()%7?u:u-7)}else return this.day()||7}function aF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jh.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(r(this,"_weekdaysRegex")||(this._weekdaysRegex=QN),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)}function sF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jh.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(r(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=KN),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function cF(l){return this._weekdaysParseExact?(r(this,"_weekdaysRegex")||Jh.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(r(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=XN),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Jh(){function l(qi,Ea){return Ea.length-qi.length}var u=[],g=[],b=[],C=[],A,ie,Pe,st,Pt;for(A=0;A<7;A++)ie=x([2e3,1]).day(A),Pe=ya(this.weekdaysMin(ie,"")),st=ya(this.weekdaysShort(ie,"")),Pt=ya(this.weekdays(ie,"")),u.push(Pe),g.push(st),b.push(Pt),C.push(Pe),C.push(st),C.push(Pt);u.sort(l),g.sort(l),b.sort(l),C.sort(l),this._weekdaysRegex=new RegExp("^("+C.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+b.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+g.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+u.join("|")+")","i")}function e6(){return this.hours()%12||12}function lF(){return this.hours()||24}Ve("H",["HH",2],0,"hour"),Ve("h",["hh",2],0,e6),Ve("k",["kk",2],0,lF),Ve("hmm",0,0,function(){return""+e6.apply(this)+Br(this.minutes(),2)}),Ve("hmmss",0,0,function(){return""+e6.apply(this)+Br(this.minutes(),2)+Br(this.seconds(),2)}),Ve("Hmm",0,0,function(){return""+this.hours()+Br(this.minutes(),2)}),Ve("Hmmss",0,0,function(){return""+this.hours()+Br(this.minutes(),2)+Br(this.seconds(),2)});function fv(l,u){Ve(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),u)})}fv("a",!0),fv("A",!1);function hv(l,u){return u._meridiemParse}Le("a",hv),Le("A",hv),Le("H",hn,Qh),Le("h",hn,wl),Le("k",hn,wl),Le("HH",hn,xo),Le("hh",hn,xo),Le("kk",hn,xo),Le("hmm",iv),Le("hmmss",ov),Le("Hmm",iv),Le("Hmmss",ov),Zt(["H","HH"],ri),Zt(["k","kk"],function(l,u,g){var b=It(l);u[ri]=b===24?0:b}),Zt(["a","A"],function(l,u,g){g._isPm=g._locale.isPM(l),g._meridiem=l}),Zt(["h","hh"],function(l,u,g){u[ri]=It(l),O(g).bigHour=!0}),Zt("hmm",function(l,u,g){var b=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b)),O(g).bigHour=!0}),Zt("hmmss",function(l,u,g){var b=l.length-4,C=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b,2)),u[xa]=It(l.substr(C)),O(g).bigHour=!0}),Zt("Hmm",function(l,u,g){var b=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b))}),Zt("Hmmss",function(l,u,g){var b=l.length-4,C=l.length-2;u[ri]=It(l.substr(0,b)),u[lr]=It(l.substr(b,2)),u[xa]=It(l.substr(C))});function dF(l){return(l+"").toLowerCase().charAt(0)==="p"}var uF=/[ap]\.?m?\.?/i,mF=Dl("Hours",!0);function pF(l,u,g){return l>11?g?"pm":"PM":g?"am":"AM"}var gv={calendar:tN,longDateFormat:rN,invalidDate:sN,ordinal:lN,dayOfMonthOrdinalParse:dN,relativeTime:mN,months:EN,monthsShort:sv,week:BN,weekdays:qN,weekdaysMin:YN,weekdaysShort:pv,meridiemParse:uF},Dn={},W2={},q2;function fF(l,u){var g,b=Math.min(l.length,u.length);for(g=0;g0;){if(C=$u(A.slice(0,g).join("-")),C)return C;if(b&&b.length>=g&&fF(A,b)>=g-1)break;g--}u++}return q2}function gF(l){return!!(l&&l.match("^[^/\\\\]*$"))}function $u(l){var u=null,g;if(Dn[l]===void 0&&typeof R1<"u"&&R1&&R1.exports&&gF(l))try{u=q2._abbr,g=$v,g("./locale/"+l),ss(u)}catch{Dn[l]=null}return Dn[l]}function ss(l,u){var g;return l&&(s(u)?g=wa(l):g=t6(l,u),g?q2=g:typeof console<"u"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),q2._abbr}function t6(l,u){if(u!==null){var g,b=gv;if(u.abbr=l,Dn[l]!=null)Pu("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),b=Dn[l]._config;else if(u.parentLocale!=null)if(Dn[u.parentLocale]!=null)b=Dn[u.parentLocale]._config;else if(g=$u(u.parentLocale),g!=null)b=g._config;else return W2[u.parentLocale]||(W2[u.parentLocale]=[]),W2[u.parentLocale].push({name:l,config:u}),null;return Dn[l]=new V2(F2(b,u)),W2[l]&&W2[l].forEach(function(C){t6(C.name,C.config)}),ss(l),Dn[l]}else return delete Dn[l],null}function _F(l,u){if(u!=null){var g,b,C=gv;Dn[l]!=null&&Dn[l].parentLocale!=null?Dn[l].set(F2(Dn[l]._config,u)):(b=$u(l),b!=null&&(C=b._config),u=F2(C,u),b==null&&(u.abbr=l),g=new V2(u),g.parentLocale=Dn[l],Dn[l]=g),ss(l)}else Dn[l]!=null&&(Dn[l].parentLocale!=null?(Dn[l]=Dn[l].parentLocale,l===ss()&&ss(l)):Dn[l]!=null&&delete Dn[l]);return Dn[l]}function wa(l){var u;if(l&&l._locale&&l._locale._abbr&&(l=l._locale._abbr),!l)return q2;if(!n(l)){if(u=$u(l),u)return u;l=[l]}return hF(l)}function bF(){return Uh(Dn)}function n6(l){var u,g=l._a;return g&&O(l).overflow===-2&&(u=g[Ca]<0||g[Ca]>11?Ca:g[jr]<1||g[jr]>Xh(g[Ti],g[Ca])?jr:g[ri]<0||g[ri]>24||g[ri]===24&&(g[lr]!==0||g[xa]!==0||g[lc]!==0)?ri:g[lr]<0||g[lr]>59?lr:g[xa]<0||g[xa]>59?xa:g[lc]<0||g[lc]>999?lc:-1,O(l)._overflowDayOfYear&&(ujr)&&(u=jr),O(l)._overflowWeeks&&u===-1&&(u=xN),O(l)._overflowWeekday&&u===-1&&(u=MN),O(l).overflow=u),l}var vF=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,yF=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,CF=/Z|[+-]\d\d(?::?\d\d)?/,Gu=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],i6=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],xF=/^\/?Date\((-?\d+)/i,MF=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,wF={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function bv(l){var u,g,b=l._i,C=vF.exec(b)||yF.exec(b),A,ie,Pe,st,Pt=Gu.length,qi=i6.length;if(C){for(O(l).iso=!0,u=0,g=Pt;uH2(ie)||l._dayOfYear===0)&&(O(l)._overflowDayOfYear=!0),g=$2(ie,0,l._dayOfYear),l._a[Ca]=g.getUTCMonth(),l._a[jr]=g.getUTCDate()),u=0;u<3&&l._a[u]==null;++u)l._a[u]=b[u]=C[u];for(;u<7;u++)l._a[u]=b[u]=l._a[u]==null?u===2?1:0:l._a[u];l._a[ri]===24&&l._a[lr]===0&&l._a[xa]===0&&l._a[lc]===0&&(l._nextDay=!0,l._a[ri]=0),l._d=(l._useUTC?$2:FN).apply(null,b),A=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[ri]=24),l._w&&typeof l._w.d<"u"&&l._w.d!==A&&(O(l).weekdayMismatch=!0)}}function PF(l){var u,g,b,C,A,ie,Pe,st,Pt;u=l._w,u.GG!=null||u.W!=null||u.E!=null?(A=1,ie=4,g=Sl(u.GG,l._a[Ti],G2(gn(),1,4).year),b=Sl(u.W,1),C=Sl(u.E,1),(C<1||C>7)&&(st=!0)):(A=l._locale._week.dow,ie=l._locale._week.doy,Pt=G2(gn(),A,ie),g=Sl(u.gg,l._a[Ti],Pt.year),b=Sl(u.w,Pt.week),u.d!=null?(C=u.d,(C<0||C>6)&&(st=!0)):u.e!=null?(C=u.e+A,(u.e<0||u.e>6)&&(st=!0)):C=A),b<1||b>Ma(g,A,ie)?O(l)._overflowWeeks=!0:st!=null?O(l)._overflowWeekday=!0:(Pe=mv(g,b,C,A,ie),l._a[Ti]=Pe.year,l._dayOfYear=Pe.dayOfYear)}i.ISO_8601=function(){},i.RFC_2822=function(){};function r6(l){if(l._f===i.ISO_8601){bv(l);return}if(l._f===i.RFC_2822){vv(l);return}l._a=[],O(l).empty=!0;var u=""+l._i,g,b,C,A,ie,Pe=u.length,st=0,Pt,qi;for(C=Jb(l._f,l._locale).match($h)||[],qi=C.length,g=0;g0&&O(l).unusedInput.push(ie),u=u.slice(u.indexOf(b)+b.length),st+=b.length),xl[A]?(b?O(l).empty=!1:O(l).unusedTokens.push(A),CN(A,b,l)):l._strict&&!b&&O(l).unusedTokens.push(A);O(l).charsLeftOver=Pe-st,u.length>0&&O(l).unusedInput.push(u),l._a[ri]<=12&&O(l).bigHour===!0&&l._a[ri]>0&&(O(l).bigHour=void 0),O(l).parsedDateParts=l._a.slice(0),O(l).meridiem=l._meridiem,l._a[ri]=LF(l._locale,l._a[ri],l._meridiem),Pt=O(l).era,Pt!==null&&(l._a[Ti]=l._locale.erasConvertYear(Pt,l._a[Ti])),o6(l),n6(l)}function LF(l,u,g){var b;return g==null?u:l.meridiemHour!=null?l.meridiemHour(u,g):(l.isPM!=null&&(b=l.isPM(g),b&&u<12&&(u+=12),!b&&u===12&&(u=0)),u)}function AF(l){var u,g,b,C,A,ie,Pe=!1,st=l._f.length;if(st===0){O(l).invalidFormat=!0,l._d=new Date(NaN);return}for(C=0;Cthis?this:l:Z()});function xv(l,u){var g,b;if(u.length===1&&n(u[0])&&(u=u[0]),!u.length)return gn();for(g=u[0],b=1;bthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function tV(){if(!s(this._isDSTShifted))return this._isDSTShifted;var l={},u;return Et(l,this),l=yv(l),l._a?(u=l._isUTC?x(l._a):gn(l._a),this._isDSTShifted=this.isValid()&&WF(l._a,u.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function nV(){return this.isValid()?!this._isUTC:!1}function iV(){return this.isValid()?this._isUTC:!1}function wv(){return this.isValid()?this._isUTC&&this._offset===0:!1}var oV=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,rV=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function dr(l,u){var g=l,b=null,C,A,ie;return qu(l)?g={ms:l._milliseconds,d:l._days,M:l._months}:c(l)||!isNaN(+l)?(g={},u?g[u]=+l:g.milliseconds=+l):(b=oV.exec(l))?(C=b[1]==="-"?-1:1,g={y:0,d:It(b[jr])*C,h:It(b[ri])*C,m:It(b[lr])*C,s:It(b[xa])*C,ms:It(a6(b[lc]*1e3))*C}):(b=rV.exec(l))?(C=b[1]==="-"?-1:1,g={y:dc(b[2],C),M:dc(b[3],C),w:dc(b[4],C),d:dc(b[5],C),h:dc(b[6],C),m:dc(b[7],C),s:dc(b[8],C)}):g==null?g={}:typeof g=="object"&&("from"in g||"to"in g)&&(ie=aV(gn(g.from),gn(g.to)),g={},g.ms=ie.milliseconds,g.M=ie.months),A=new Wu(g),qu(l)&&r(l,"_locale")&&(A._locale=l._locale),qu(l)&&r(l,"_isValid")&&(A._isValid=l._isValid),A}dr.fn=Wu.prototype,dr.invalid=GF;function dc(l,u){var g=l&&parseFloat(l.replace(",","."));return(isNaN(g)?0:g)*u}function Dv(l,u){var g={};return g.months=u.month()-l.month()+(u.year()-l.year())*12,l.clone().add(g.months,"M").isAfter(u)&&--g.months,g.milliseconds=+u-+l.clone().add(g.months,"M"),g}function aV(l,u){var g;return l.isValid()&&u.isValid()?(u=c6(u,l),l.isBefore(u)?g=Dv(l,u):(g=Dv(u,l),g.milliseconds=-g.milliseconds,g.months=-g.months),g):{milliseconds:0,months:0}}function Sv(l,u){return function(g,b){var C,A;return b!==null&&!isNaN(+b)&&(Pu(u,"moment()."+u+"(period, number) is deprecated. Please use moment()."+u+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),A=g,g=b,b=A),C=dr(g,b),kv(this,C,l),this}}function kv(l,u,g,b){var C=u._milliseconds,A=a6(u._days),ie=a6(u._months);l.isValid()&&(b=b??!0,ie&&lv(l,U2(l,"Month")+ie*g),A&&av(l,"Date",U2(l,"Date")+A*g),C&&l._d.setTime(l._d.valueOf()+C*g),b&&i.updateOffset(l,A||ie))}var sV=Sv(1,"add"),cV=Sv(-1,"subtract");function Ev(l){return typeof l=="string"||l instanceof String}function lV(l){return fn(l)||m(l)||Ev(l)||c(l)||uV(l)||dV(l)||l===null||l===void 0}function dV(l){var u=o(l)&&!a(l),g=!1,b=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],C,A,ie=b.length;for(C=0;Cg.valueOf():g.valueOf()9999?zu(g,u?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Oi(Date.prototype.toISOString)?u?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",zu(g,"Z")):zu(g,u?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function DV(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l="moment",u="",g,b,C,A;return this.isLocal()||(l=this.utcOffset()===0?"moment.utc":"moment.parseZone",u="Z"),g="["+l+'("]',b=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",C="-MM-DD[T]HH:mm:ss.SSS",A=u+'[")]',this.format(g+b+C+A)}function SV(l){l||(l=this.isUtc()?i.defaultFormatUtc:i.defaultFormat);var u=zu(this,l);return this.localeData().postformat(u)}function kV(l,u){return this.isValid()&&(fn(l)&&l.isValid()||gn(l).isValid())?dr({to:this,from:l}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function EV(l){return this.from(gn(),l)}function IV(l,u){return this.isValid()&&(fn(l)&&l.isValid()||gn(l).isValid())?dr({from:this,to:l}).locale(this.locale()).humanize(!u):this.localeData().invalidDate()}function OV(l){return this.to(gn(),l)}function Iv(l){var u;return l===void 0?this._locale._abbr:(u=wa(l),u!=null&&(this._locale=u),this)}var Ov=oi("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function Tv(){return this._locale}var Qu=1e3,kl=60*Qu,Ku=60*kl,Pv=(365*400+97)*24*Ku;function El(l,u){return(l%u+u)%u}function Lv(l,u,g){return l<100&&l>=0?new Date(l+400,u,g)-Pv:new Date(l,u,g).valueOf()}function Av(l,u,g){return l<100&&l>=0?Date.UTC(l+400,u,g)-Pv:Date.UTC(l,u,g)}function TV(l){var u,g;if(l=jo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Av:Lv,l){case"year":u=g(this.year(),0,1);break;case"quarter":u=g(this.year(),this.month()-this.month()%3,1);break;case"month":u=g(this.year(),this.month(),1);break;case"week":u=g(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":u=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":u=g(this.year(),this.month(),this.date());break;case"hour":u=this._d.valueOf(),u-=El(u+(this._isUTC?0:this.utcOffset()*kl),Ku);break;case"minute":u=this._d.valueOf(),u-=El(u,kl);break;case"second":u=this._d.valueOf(),u-=El(u,Qu);break}return this._d.setTime(u),i.updateOffset(this,!0),this}function PV(l){var u,g;if(l=jo(l),l===void 0||l==="millisecond"||!this.isValid())return this;switch(g=this._isUTC?Av:Lv,l){case"year":u=g(this.year()+1,0,1)-1;break;case"quarter":u=g(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":u=g(this.year(),this.month()+1,1)-1;break;case"week":u=g(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":u=g(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":u=g(this.year(),this.month(),this.date()+1)-1;break;case"hour":u=this._d.valueOf(),u+=Ku-El(u+(this._isUTC?0:this.utcOffset()*kl),Ku)-1;break;case"minute":u=this._d.valueOf(),u+=kl-El(u,kl)-1;break;case"second":u=this._d.valueOf(),u+=Qu-El(u,Qu)-1;break}return this._d.setTime(u),i.updateOffset(this,!0),this}function LV(){return this._d.valueOf()-(this._offset||0)*6e4}function AV(){return Math.floor(this.valueOf()/1e3)}function zV(){return new Date(this.valueOf())}function RV(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]}function NV(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}}function FV(){return this.isValid()?this.toISOString():null}function VV(){return Y(this)}function BV(){return v({},O(this))}function jV(){return O(this).overflow}function HV(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Ve("N",0,0,"eraAbbr"),Ve("NN",0,0,"eraAbbr"),Ve("NNN",0,0,"eraAbbr"),Ve("NNNN",0,0,"eraName"),Ve("NNNNN",0,0,"eraNarrow"),Ve("y",["y",1],"yo","eraYear"),Ve("y",["yy",2],0,"eraYear"),Ve("y",["yyy",3],0,"eraYear"),Ve("y",["yyyy",4],0,"eraYear"),Le("N",d6),Le("NN",d6),Le("NNN",d6),Le("NNNN",JV),Le("NNNNN",eB),Zt(["N","NN","NNN","NNNN","NNNNN"],function(l,u,g,b){var C=g._locale.erasParse(l,b,g._strict);C?O(g).era=C:O(g).invalidEra=l}),Le("y",Ml),Le("yy",Ml),Le("yyy",Ml),Le("yyyy",Ml),Le("yo",tB),Zt(["y","yy","yyy","yyyy"],Ti),Zt(["yo"],function(l,u,g,b){var C;g._locale._eraYearOrdinalRegex&&(C=l.match(g._locale._eraYearOrdinalRegex)),g._locale.eraYearOrdinalParse?u[Ti]=g._locale.eraYearOrdinalParse(l,C):u[Ti]=parseInt(l,10)});function UV(l,u){var g,b,C,A=this._eras||wa("en")._eras;for(g=0,b=A.length;g=0)return A[b]}function GV(l,u){var g=l.since<=l.until?1:-1;return u===void 0?i(l.since).year():i(l.since).year()+(u-l.offset)*g}function WV(){var l,u,g,b=this.localeData().eras();for(l=0,u=b.length;lA&&(u=A),cB.call(this,l,u,g,b,C))}function cB(l,u,g,b,C){var A=mv(l,u,g,b,C),ie=$2(A.year,0,A.dayOfYear);return this.year(ie.getUTCFullYear()),this.month(ie.getUTCMonth()),this.date(ie.getUTCDate()),this}Ve("Q",0,"Qo","quarter"),Le("Q",tv),Zt("Q",function(l,u){u[Ca]=(It(l)-1)*3});function lB(l){return l==null?Math.ceil((this.month()+1)/3):this.month((l-1)*3+this.month()%3)}Ve("D",["DD",2],"Do","date"),Le("D",hn,wl),Le("DD",hn,xo),Le("Do",function(l,u){return l?u._dayOfMonthOrdinalParse||u._ordinalParse:u._dayOfMonthOrdinalParseLenient}),Zt(["D","DD"],jr),Zt("Do",function(l,u){u[jr]=It(l.match(hn)[0])});var Rv=Dl("Date",!0);Ve("DDD",["DDDD",3],"DDDo","dayOfYear"),Le("DDD",Nu),Le("DDDD",nv),Zt(["DDD","DDDD"],function(l,u,g){g._dayOfYear=It(l)});function dB(l){var u=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?u:this.add(l-u,"d")}Ve("m",["mm",2],0,"minute"),Le("m",hn,Qh),Le("mm",hn,xo),Zt(["m","mm"],lr);var uB=Dl("Minutes",!1);Ve("s",["ss",2],0,"second"),Le("s",hn,Qh),Le("ss",hn,xo),Zt(["s","ss"],xa);var mB=Dl("Seconds",!1);Ve("S",0,0,function(){return~~(this.millisecond()/100)}),Ve(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),Ve(0,["SSS",3],0,"millisecond"),Ve(0,["SSSS",4],0,function(){return this.millisecond()*10}),Ve(0,["SSSSS",5],0,function(){return this.millisecond()*100}),Ve(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),Ve(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),Ve(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),Ve(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),Le("S",Nu,tv),Le("SS",Nu,xo),Le("SSS",Nu,nv);var cs,Nv;for(cs="SSSS";cs.length<=9;cs+="S")Le(cs,Ml);function pB(l,u){u[lc]=It(("0."+l)*1e3)}for(cs="S";cs.length<=9;cs+="S")Zt(cs,pB);Nv=Dl("Milliseconds",!1),Ve("z",0,0,"zoneAbbr"),Ve("zz",0,0,"zoneName");function fB(){return this._isUTC?"UTC":""}function hB(){return this._isUTC?"Coordinated Universal Time":""}var ge=Ht.prototype;ge.add=sV,ge.calendar=fV,ge.clone=hV,ge.diff=xV,ge.endOf=PV,ge.format=SV,ge.from=kV,ge.fromNow=EV,ge.to=IV,ge.toNow=OV,ge.get=DN,ge.invalidAt=jV,ge.isAfter=gV,ge.isBefore=_V,ge.isBetween=bV,ge.isSame=vV,ge.isSameOrAfter=yV,ge.isSameOrBefore=CV,ge.isValid=VV,ge.lang=Ov,ge.locale=Iv,ge.localeData=Tv,ge.max=VF,ge.min=FF,ge.parsingFlags=BV,ge.set=SN,ge.startOf=TV,ge.subtract=cV,ge.toArray=RV,ge.toObject=NV,ge.toDate=zV,ge.toISOString=wV,ge.inspect=DV,typeof Symbol<"u"&&Symbol.for!=null&&(ge[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),ge.toJSON=FV,ge.toString=MV,ge.unix=AV,ge.valueOf=LV,ge.creationData=HV,ge.eraName=WV,ge.eraNarrow=qV,ge.eraAbbr=YV,ge.eraYear=QV,ge.year=rv,ge.isLeapYear=wN,ge.weekYear=nB,ge.isoWeekYear=iB,ge.quarter=ge.quarters=lB,ge.month=dv,ge.daysInMonth=zN,ge.week=ge.weeks=UN,ge.isoWeek=ge.isoWeeks=$N,ge.weeksInYear=aB,ge.weeksInWeekYear=sB,ge.isoWeeksInYear=oB,ge.isoWeeksInISOWeekYear=rB,ge.date=Rv,ge.day=ge.days=iF,ge.weekday=oF,ge.isoWeekday=rF,ge.dayOfYear=dB,ge.hour=ge.hours=mF,ge.minute=ge.minutes=uB,ge.second=ge.seconds=mB,ge.millisecond=ge.milliseconds=Nv,ge.utcOffset=YF,ge.utc=KF,ge.local=XF,ge.parseZone=ZF,ge.hasAlignedHourOffset=JF,ge.isDST=eV,ge.isLocal=nV,ge.isUtcOffset=iV,ge.isUtc=wv,ge.isUTC=wv,ge.zoneAbbr=fB,ge.zoneName=hB,ge.dates=oi("dates accessor is deprecated. Use date instead.",Rv),ge.months=oi("months accessor is deprecated. Use month instead",dv),ge.years=oi("years accessor is deprecated. Use year instead",rv),ge.zone=oi("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",QF),ge.isDSTShifted=oi("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",tV);function gB(l){return gn(l*1e3)}function _B(){return gn.apply(null,arguments).parseZone()}function Fv(l){return l}var jt=V2.prototype;jt.calendar=nN,jt.longDateFormat=aN,jt.invalidDate=cN,jt.ordinal=uN,jt.preparse=Fv,jt.postformat=Fv,jt.relativeTime=pN,jt.pastFuture=fN,jt.set=Lu,jt.eras=UV,jt.erasParse=$V,jt.erasConvertYear=GV,jt.erasAbbrRegex=XV,jt.erasNameRegex=KV,jt.erasNarrowRegex=ZV,jt.months=TN,jt.monthsShort=PN,jt.monthsParse=AN,jt.monthsRegex=NN,jt.monthsShortRegex=RN,jt.week=VN,jt.firstDayOfYear=HN,jt.firstDayOfWeek=jN,jt.weekdays=ZN,jt.weekdaysMin=eF,jt.weekdaysShort=JN,jt.weekdaysParse=nF,jt.weekdaysRegex=aF,jt.weekdaysShortRegex=sF,jt.weekdaysMinRegex=cF,jt.isPM=dF,jt.meridiem=pF;function Zu(l,u,g,b){var C=wa(),A=x().set(b,u);return C[g](A,l)}function Vv(l,u,g){if(c(l)&&(u=l,l=void 0),l=l||"",u!=null)return Zu(l,u,g,"month");var b,C=[];for(b=0;b<12;b++)C[b]=Zu(l,b,g,"month");return C}function m6(l,u,g,b){typeof l=="boolean"?(c(u)&&(g=u,u=void 0),u=u||""):(u=l,g=u,l=!1,c(u)&&(g=u,u=void 0),u=u||"");var C=wa(),A=l?C._week.dow:0,ie,Pe=[];if(g!=null)return Zu(u,(g+A)%7,b,"day");for(ie=0;ie<7;ie++)Pe[ie]=Zu(u,(ie+A)%7,b,"day");return Pe}function bB(l,u){return Vv(l,u,"months")}function vB(l,u){return Vv(l,u,"monthsShort")}function yB(l,u,g){return m6(l,u,g,"weekdays")}function CB(l,u,g){return m6(l,u,g,"weekdaysShort")}function xB(l,u,g){return m6(l,u,g,"weekdaysMin")}ss("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(l){var u=l%10,g=It(l%100/10)===1?"th":u===1?"st":u===2?"nd":u===3?"rd":"th";return l+g}}),i.lang=oi("moment.lang is deprecated. Use moment.locale instead.",ss),i.langData=oi("moment.langData is deprecated. Use moment.localeData instead.",wa);var Da=Math.abs;function MB(){var l=this._data;return this._milliseconds=Da(this._milliseconds),this._days=Da(this._days),this._months=Da(this._months),l.milliseconds=Da(l.milliseconds),l.seconds=Da(l.seconds),l.minutes=Da(l.minutes),l.hours=Da(l.hours),l.months=Da(l.months),l.years=Da(l.years),this}function Bv(l,u,g,b){var C=dr(u,g);return l._milliseconds+=b*C._milliseconds,l._days+=b*C._days,l._months+=b*C._months,l._bubble()}function wB(l,u){return Bv(this,l,u,1)}function DB(l,u){return Bv(this,l,u,-1)}function jv(l){return l<0?Math.floor(l):Math.ceil(l)}function SB(){var l=this._milliseconds,u=this._days,g=this._months,b=this._data,C,A,ie,Pe,st;return l>=0&&u>=0&&g>=0||l<=0&&u<=0&&g<=0||(l+=jv(p6(g)+u)*864e5,u=0,g=0),b.milliseconds=l%1e3,C=Ho(l/1e3),b.seconds=C%60,A=Ho(C/60),b.minutes=A%60,ie=Ho(A/60),b.hours=ie%24,u+=Ho(ie/24),st=Ho(Hv(u)),g+=st,u-=jv(p6(st)),Pe=Ho(g/12),g%=12,b.days=u,b.months=g,b.years=Pe,this}function Hv(l){return l*4800/146097}function p6(l){return l*146097/4800}function kB(l){if(!this.isValid())return NaN;var u,g,b=this._milliseconds;if(l=jo(l),l==="month"||l==="quarter"||l==="year")switch(u=this._days+b/864e5,g=this._months+Hv(u),l){case"month":return g;case"quarter":return g/3;case"year":return g/12}else switch(u=this._days+Math.round(p6(this._months)),l){case"week":return u/7+b/6048e5;case"day":return u+b/864e5;case"hour":return u*24+b/36e5;case"minute":return u*1440+b/6e4;case"second":return u*86400+b/1e3;case"millisecond":return Math.floor(u*864e5)+b;default:throw new Error("Unknown unit "+l)}}function Sa(l){return function(){return this.as(l)}}var Uv=Sa("ms"),EB=Sa("s"),IB=Sa("m"),OB=Sa("h"),TB=Sa("d"),PB=Sa("w"),LB=Sa("M"),AB=Sa("Q"),zB=Sa("y"),RB=Uv;function NB(){return dr(this)}function FB(l){return l=jo(l),this.isValid()?this[l+"s"]():NaN}function uc(l){return function(){return this.isValid()?this._data[l]:NaN}}var VB=uc("milliseconds"),BB=uc("seconds"),jB=uc("minutes"),HB=uc("hours"),UB=uc("days"),$B=uc("months"),GB=uc("years");function WB(){return Ho(this.days()/7)}var ka=Math.round,Il={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function qB(l,u,g,b,C){return C.relativeTime(u||1,!!g,l,b)}function YB(l,u,g,b){var C=dr(l).abs(),A=ka(C.as("s")),ie=ka(C.as("m")),Pe=ka(C.as("h")),st=ka(C.as("d")),Pt=ka(C.as("M")),qi=ka(C.as("w")),Ea=ka(C.as("y")),ls=A<=g.ss&&["s",A]||A0,ls[4]=b,qB.apply(null,ls)}function QB(l){return l===void 0?ka:typeof l=="function"?(ka=l,!0):!1}function KB(l,u){return Il[l]===void 0?!1:u===void 0?Il[l]:(Il[l]=u,l==="s"&&(Il.ss=u-1),!0)}function XB(l,u){if(!this.isValid())return this.localeData().invalidDate();var g=!1,b=Il,C,A;return typeof l=="object"&&(u=l,l=!1),typeof l=="boolean"&&(g=l),typeof u=="object"&&(b=Object.assign({},Il,u),u.s!=null&&u.ss==null&&(b.ss=u.s-1)),C=this.localeData(),A=YB(this,!g,b,C),g&&(A=C.pastFuture(+this,A)),C.postformat(A)}var f6=Math.abs;function Ol(l){return(l>0)-(l<0)||+l}function Ju(){if(!this.isValid())return this.localeData().invalidDate();var l=f6(this._milliseconds)/1e3,u=f6(this._days),g=f6(this._months),b,C,A,ie,Pe=this.asSeconds(),st,Pt,qi,Ea;return Pe?(b=Ho(l/60),C=Ho(b/60),l%=60,b%=60,A=Ho(g/12),g%=12,ie=l?l.toFixed(3).replace(/\.?0+$/,""):"",st=Pe<0?"-":"",Pt=Ol(this._months)!==Ol(Pe)?"-":"",qi=Ol(this._days)!==Ol(Pe)?"-":"",Ea=Ol(this._milliseconds)!==Ol(Pe)?"-":"",st+"P"+(A?Pt+A+"Y":"")+(g?Pt+g+"M":"")+(u?qi+u+"D":"")+(C||b||l?"T":"")+(C?Ea+C+"H":"")+(b?Ea+b+"M":"")+(l?Ea+ie+"S":"")):"P0D"}var Rt=Wu.prototype;Rt.isValid=$F,Rt.abs=MB,Rt.add=wB,Rt.subtract=DB,Rt.as=kB,Rt.asMilliseconds=Uv,Rt.asSeconds=EB,Rt.asMinutes=IB,Rt.asHours=OB,Rt.asDays=TB,Rt.asWeeks=PB,Rt.asMonths=LB,Rt.asQuarters=AB,Rt.asYears=zB,Rt.valueOf=RB,Rt._bubble=SB,Rt.clone=NB,Rt.get=FB,Rt.milliseconds=VB,Rt.seconds=BB,Rt.minutes=jB,Rt.hours=HB,Rt.days=UB,Rt.weeks=WB,Rt.months=$B,Rt.years=GB,Rt.humanize=XB,Rt.toISOString=Ju,Rt.toString=Ju,Rt.toJSON=Ju,Rt.locale=Iv,Rt.localeData=Tv,Rt.toIsoString=oi("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Ju),Rt.lang=Ov,Ve("X",0,0,"unix"),Ve("x",0,0,"valueOf"),Le("x",Vu),Le("X",bN),Zt("X",function(l,u,g){g._d=new Date(parseFloat(l)*1e3)}),Zt("x",function(l,u,g){g._d=new Date(It(l))});return i.version="2.30.1",e(gn),i.fn=ge,i.min=BF,i.max=jF,i.now=HF,i.utc=x,i.unix=gB,i.months=bB,i.isDate=m,i.locale=ss,i.invalid=Z,i.duration=dr,i.isMoment=fn,i.weekdays=yB,i.parseZone=_B,i.localeData=wa,i.isDuration=qu,i.monthsShort=vB,i.weekdaysMin=xB,i.defineLocale=t6,i.updateLocale=_F,i.locales=bF,i.weekdaysShort=CB,i.normalizeUnits=jo,i.relativeTimeRounding=QB,i.relativeTimeThreshold=KB,i.calendarFormat=pV,i.prototype=ge,i.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},i})});var aS=Gv((Cye,rS)=>{function qm(t){var i=" ";if(isNaN(parseInt(t)))i=t;else switch(t){case 1:i=" ";break;case 2:i=" ";break;case 3:i=" ";break;case 4:i=" ";break;case 5:i=" ";break;case 6:i=" ";break;case 7:i=" ";break;case 8:i=" ";break;case 9:i=" ";break;case 10:i=" ";break;case 11:i=" ";break;case 12:i=" ";break}for(var e=[` `],n=0;n<100;n++)e.push(e[n]+i);return e}function Wa(){this.step=" ",this.shift=qm(this.step)}Wa.prototype.xml=function(t,i){var e=t.replace(/>\s{0,}<").replace(/-1?(a+=c[r]+e[s],o=!0,(e[s].search(/-->/)>-1||e[s].search(/\]>/)>-1||e[s].search(/!DOCTYPE/)>-1)&&(o=!1)):e[s].search(/-->/)>-1||e[s].search(/\]>/)>-1?(a+=e[s],o=!1):/^<\w/.exec(e[s-1])&&/^<\/\w/.exec(e[s])&&/^<[\w:\-\.\,]+/.exec(e[s-1])==/^<\/[\w:\-\.\,]+/.exec(e[s])[0].replace("/","")?(a+=e[s],o||r--):e[s].search(/<\w/)>-1&&e[s].search(/<\//)==-1&&e[s].search(/\/>/)==-1?a=o?a+=e[s]:a+=c[r++]+e[s]:e[s].search(/<\w/)>-1&&e[s].search(/<\//)>-1?a=o?a+=e[s]:a+=c[r]+e[s]:e[s].search(/<\//)>-1?a=o?a+=e[s]:a+=c[--r]+e[s]:e[s].search(/\/>/)>-1?a=o?a+=e[s]:a+=c[r]+e[s]:e[s].search(/<\?/)>-1||e[s].search(/xmlns\:/)>-1||e[s].search(/xmlns\=/)>-1?a+=c[r]+e[s]:a+=e[s];return a[0]==` `?a.slice(1):a};Wa.prototype.json=function(t,e){var e=e||this.step;return typeof JSON>"u"?t:typeof t=="string"?JSON.stringify(JSON.parse(t),null,e):typeof t=="object"?JSON.stringify(t,null,e):t};Wa.prototype.css=function(t,i){var e=t.replace(/\s{1,}/g," ").replace(/\{/g,"{~::~").replace(/\}/g,"~::~}~::~").replace(/\;/g,";~::~").replace(/\/\*/g,"~::~/*").replace(/\*\//g,"*/~::~").replace(/~::~\s{0,}~::~/g,"~::~").split("~::~"),n=e.length,o=0,r="",a=0,s=i?qm(i):this.shift;for(a=0;a/g,"").replace(/[ \r\n\t]{1,}xmlns/g," xmlns");return e.replace(/>\s{0,}<")};Wa.prototype.jsonmin=function(t){return typeof JSON>"u"?t:JSON.stringify(JSON.parse(t),null,0)};Wa.prototype.cssmin=function(t,i){var e=i?t:t.replace(/\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\//g,"");return e.replace(/\s{1,}/g," ").replace(/\{\s{1,}/g,"{").replace(/\}\s{1,}/g,"}").replace(/\;\s{1,}/g,";").replace(/\/\*\s{1,}/g,"/*").replace(/\*\/\s{1,}/g,"*/")};Wa.prototype.sqlmin=function(t){return t.replace(/\s{1,}/g," ").replace(/\s{1,}\(/,"(").replace(/\s{1,}\)/,")")};rS.exports=new Wa});var h6;function t3(){return h6}function Ur(t){let i=h6;return h6=t,i}var Wv=Symbol("NotFound");function Tl(t){return t===Wv||t?.name==="\u0275NotFound"}var Pi=null,n3=!1,g6=1,ZB=null,Yn=Symbol("SIGNAL");function Je(t){let i=Pi;return Pi=t,i}function a3(){return Pi}var mc={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function ds(t){if(n3)throw new Error("");if(Pi===null)return;Pi.consumerOnSignalRead(t);let i=Pi.producersTail;if(i!==void 0&&i.producer===t)return;let e,n=Pi.recomputing;if(n&&(e=i!==void 0?i.nextProducer:Pi.producers,e!==void 0&&e.producer===t)){Pi.producersTail=e,e.lastReadVersion=t.version;return}let o=t.consumersTail;if(o!==void 0&&o.consumer===Pi&&(!n||ej(o,Pi)))return;let r=Pl(Pi),a={producer:t,consumer:Pi,nextProducer:e,prevConsumer:o,lastReadVersion:t.version,nextConsumer:void 0};Pi.producersTail=a,i!==void 0?i.nextProducer=a:Pi.producers=a,r&&Kv(t,a)}function qv(){g6++}function s3(t){if(!(Pl(t)&&!t.dirty)&&!(!t.dirty&&t.lastCleanEpoch===g6)){if(!t.producerMustRecompute(t)&&!fc(t)){r3(t);return}t.producerRecomputeValue(t),r3(t)}}function _6(t){if(t.consumers===void 0)return;let i=n3;n3=!0;try{for(let e=t.consumers;e!==void 0;e=e.nextConsumer){let n=e.consumer;n.dirty||JB(n)}}finally{n3=i}}function b6(){return Pi?.consumerAllowSignalWrites!==!1}function JB(t){t.dirty=!0,_6(t),t.consumerMarkedDirty?.(t)}function r3(t){t.dirty=!1,t.lastCleanEpoch=g6}function us(t){return t&&Yv(t),Je(t)}function Yv(t){t.producersTail=void 0,t.recomputing=!0}function pc(t,i){Je(i),t&&Qv(t)}function Qv(t){t.recomputing=!1;let i=t.producersTail,e=i!==void 0?i.nextProducer:t.producers;if(e!==void 0){if(Pl(t))do e=v6(e);while(e!==void 0);i!==void 0?i.nextProducer=void 0:t.producers=void 0}}function fc(t){for(let i=t.producers;i!==void 0;i=i.nextProducer){let e=i.producer,n=i.lastReadVersion;if(n!==e.version||(s3(e),n!==e.version))return!0}return!1}function ms(t){if(Pl(t)){let i=t.producers;for(;i!==void 0;)i=v6(i)}t.producers=void 0,t.producersTail=void 0,t.consumers=void 0,t.consumersTail=void 0}function Kv(t,i){let e=t.consumersTail,n=Pl(t);if(e!==void 0?(i.nextConsumer=e.nextConsumer,e.nextConsumer=i):(i.nextConsumer=void 0,t.consumers=i),i.prevConsumer=e,t.consumersTail=i,!n)for(let o=t.producers;o!==void 0;o=o.nextProducer)Kv(o.producer,o)}function v6(t){let i=t.producer,e=t.nextProducer,n=t.nextConsumer,o=t.prevConsumer;if(t.nextConsumer=void 0,t.prevConsumer=void 0,n!==void 0?n.prevConsumer=o:i.consumersTail=o,o!==void 0)o.nextConsumer=n;else if(i.consumers=n,!Pl(i)){let r=i.producers;for(;r!==void 0;)r=v6(r)}return e}function Pl(t){return t.consumerIsAlwaysLive||t.consumers!==void 0}function c3(t){ZB?.(t)}function ej(t,i){let e=i.producersTail;if(e!==void 0){let n=i.producers;do{if(n===t)return!0;if(n===e)break;n=n.nextProducer}while(n!==void 0)}return!1}function l3(t,i){return Object.is(t,i)}function K2(t,i){let e=Object.create(tj);e.computation=t,i!==void 0&&(e.equal=i);let n=()=>{if(s3(e),ds(e),e.value===Q2)throw e.error;return e.value};return n[Yn]=e,c3(e),n}var i3=Symbol("UNSET"),o3=Symbol("COMPUTING"),Q2=Symbol("ERRORED"),tj=Ne(q({},mc),{value:i3,dirty:!0,error:null,equal:l3,kind:"computed",producerMustRecompute(t){return t.value===i3||t.value===o3},producerRecomputeValue(t){if(t.value===o3)throw new Error("");let i=t.value;t.value=o3;let e=us(t),n,o=!1;try{n=t.computation(),Je(null),o=i!==i3&&i!==Q2&&n!==Q2&&t.equal(i,n)}catch(r){n=Q2,t.error=r}finally{pc(t,e)}if(o){t.value=i;return}t.value=n,t.version++}});function nj(){throw new Error}var Xv=nj;function Zv(t){Xv(t)}function y6(t){Xv=t}var ij=null;function C6(t,i){let e=Object.create(X2);e.value=t,i!==void 0&&(e.equal=i);let n=()=>Jv(e);return n[Yn]=e,c3(e),[n,a=>hc(e,a),a=>x6(e,a)]}function Jv(t){return ds(t),t.value}function hc(t,i){b6()||Zv(t),t.equal(t.value,i)||(t.value=i,oj(t))}function x6(t,i){b6()||Zv(t),hc(t,i(t.value))}var X2=Ne(q({},mc),{equal:l3,value:void 0,kind:"signal"});function oj(t){t.version++,qv(),_6(t),ij?.(t)}function qe(t){return typeof t=="function"}function Ll(t){let e=t(n=>{Error.call(n),n.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var d3=Ll(t=>function(e){t(this),this.message=e?`${e.length} errors occurred during unsubscription: ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=e});function gc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Se=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(qe(n))try{n()}catch(r){i=r instanceof d3?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{ey(r)}catch(a){i=i??[],a instanceof d3?i=[...i,...a.errors]:i.push(a)}}if(i)throw new d3(i)}}add(i){var e;if(i&&i!==this)if(this.closed)ey(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&gc(e,i)}remove(i){let{_finalizers:e}=this;e&&gc(e,i),i instanceof t&&i._removeParent(this)}};Se.EMPTY=(()=>{let t=new Se;return t.closed=!0,t})();var M6=Se.EMPTY;function u3(t){return t instanceof Se||t&&"closed"in t&&qe(t.remove)&&qe(t.add)&&qe(t.unsubscribe)}function ey(t){qe(t)?t():t.unsubscribe()}var ur={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Al={setTimeout(t,i,...e){let{delegate:n}=Al;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Al;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function m3(t){Al.setTimeout(()=>{let{onUnhandledError:i}=ur;if(i)i(t);else throw t})}function _c(){}var ty=w6("C",void 0,void 0);function ny(t){return w6("E",void 0,t)}function iy(t){return w6("N",t,void 0)}function w6(t,i,e){return{kind:t,value:i,error:e}}var bc=null;function zl(t){if(ur.useDeprecatedSynchronousErrorHandling){let i=!bc;if(i&&(bc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=bc;if(bc=null,e)throw n}}else t()}function oy(t){ur.useDeprecatedSynchronousErrorHandling&&bc&&(bc.errorThrown=!0,bc.error=t)}var vc=class extends Se{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,u3(i)&&i.add(this)):this.destination=sj}static create(i,e,n){return new mr(i,e,n)}next(i){this.isStopped?S6(iy(i),this):this._next(i)}error(i){this.isStopped?S6(ny(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?S6(ty,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},rj=Function.prototype.bind;function D6(t,i){return rj.call(t,i)}var k6=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){p3(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){p3(n)}else p3(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){p3(e)}}},mr=class extends vc{constructor(i,e,n){super();let o;if(qe(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ur.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&D6(i.next,r),error:i.error&&D6(i.error,r),complete:i.complete&&D6(i.complete,r)}):o=i}this.destination=new k6(o)}};function p3(t){ur.useDeprecatedSynchronousErrorHandling?oy(t):m3(t)}function aj(t){throw t}function S6(t,i){let{onStoppedNotification:e}=ur;e&&Al.setTimeout(()=>e(t,i))}var sj={closed:!0,next:_c,error:aj,complete:_c};var Rl=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Yi(t){return t}function E6(...t){return I6(t)}function I6(t){return t.length===0?Yi:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=lj(e)?e:new mr(e,n,o);return zl(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=ry(n),new n((o,r)=>{let a=new mr({next:s=>{try{e(s)}catch(c){r(c),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[Rl](){return this}pipe(...e){return I6(e)(this)}toPromise(e){return e=ry(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function ry(t){var i;return(i=t??ur.Promise)!==null&&i!==void 0?i:Promise}function cj(t){return t&&qe(t.next)&&qe(t.error)&&qe(t.complete)}function lj(t){return t&&t instanceof vc||cj(t)&&u3(t)}function O6(t){return qe(t?.lift)}function Qe(t){return i=>{if(O6(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function et(t,i,e,n,o){return new T6(t,i,e,n,o)}var T6=class extends vc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){i.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function Nl(){return Qe((t,i)=>{let e=null;t._refCount++;let n=et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var ps=class extends Fe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,O6(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Se;let e=this.getSubject();i.add(this.source.subscribe(et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Se.EMPTY)}return i}refCount(){return Nl()(this)}};var Fl={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=Fl;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Se(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=Fl;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=Fl;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var ay=Ll(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new f3(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new ay}next(e){zl(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){zl(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){zl(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?M6:(this.currentObservers=null,r.push(e),new Se(()=>{this.currentObservers=null,gc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(i,e)=>new f3(i,e),t})(),f3=class extends B{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:M6}};var ct=class extends B{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var Z2={now(){return(Z2.delegate||Date).now()},delegate:void 0};var pr=class extends B{constructor(i=1/0,e=1/0,n=Z2){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;a0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Fl.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(Fl.cancelAnimationFrame(e),i._scheduled=void 0)}};var _3=class extends jl{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var b3=new _3(g3);var Sn=new Fe(t=>t.complete());function v3(t){return t&&qe(t.schedule)}function P6(t){return t[t.length-1]}function y3(t){return qe(P6(t))?t.pop():void 0}function $r(t){return v3(P6(t))?t.pop():void 0}function cy(t,i){return typeof P6(t)=="number"?t.pop():i}function nue(t,i,e,n){var o=arguments.length,r=o<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,i,e,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(r=(o<3?a(r):o>3?a(i,e,r):a(i,e))||r);return o>3&&r&&Object.defineProperty(i,e,r),r}function dy(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(f){try{m(n.next(f))}catch(v){a(v)}}function c(f){try{m(n.throw(f))}catch(v){a(v)}}function m(f){f.done?r(f.value):o(f.value).then(s,c)}m((n=n.apply(t,i||[])).next())})}function ly(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function yc(t){return this instanceof yc?(this.v=t,this):new yc(t)}function uy(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(M){return function(O){return Promise.resolve(O).then(M,v)}}function s(M,O){n[M]&&(o[M]=function(K){return new Promise(function(Y,Z){r.push([M,K,Y,Z])>1||c(M,K)})},O&&(o[M]=O(o[M])))}function c(M,O){try{m(n[M](O))}catch(K){x(r[0][3],K)}}function m(M){M.value instanceof yc?Promise.resolve(M.value.v).then(f,v):x(r[0][2],M)}function f(M){c("next",M)}function v(M){c("throw",M)}function x(M,O){M(O),r.shift(),r.length&&c(r[0][0],r[0][1])}}function my(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof ly=="function"?ly(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,c){a=t[r](a),o(s,c,a.done,a.value)})}}function o(r,a,s,c){Promise.resolve(c).then(function(m){r({value:m,done:s})},a)}}var Hl=t=>t&&typeof t.length=="number"&&typeof t!="function";function C3(t){return qe(t?.then)}function x3(t){return qe(t[Rl])}function M3(t){return Symbol.asyncIterator&&qe(t?.[Symbol.asyncIterator])}function w3(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function dj(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var D3=dj();function S3(t){return qe(t?.[D3])}function k3(t){return uy(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield yc(e.read());if(o)return yield yc(void 0);yield yield yc(n)}}finally{e.releaseLock()}})}function E3(t){return qe(t?.getReader)}function Ut(t){if(t instanceof Fe)return t;if(t!=null){if(x3(t))return uj(t);if(Hl(t))return mj(t);if(C3(t))return pj(t);if(M3(t))return py(t);if(S3(t))return fj(t);if(E3(t))return hj(t)}throw w3(t)}function uj(t){return new Fe(i=>{let e=t[Rl]();if(qe(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mj(t){return new Fe(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,m3)})}function fj(t){return new Fe(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function py(t){return new Fe(i=>{gj(t,i).catch(e=>i.error(e))})}function hj(t){return py(k3(t))}function gj(t,i){var e,n,o,r;return dy(this,void 0,void 0,function*(){try{for(e=my(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function fo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function I3(t,i=0){return Qe((e,n)=>{e.subscribe(et(n,o=>fo(n,t,()=>n.next(o),i),()=>fo(n,t,()=>n.complete(),i),o=>fo(n,t,()=>n.error(o),i)))})}function O3(t,i=0){return Qe((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function fy(t,i){return Ut(t).pipe(O3(i),I3(i))}function hy(t,i){return Ut(t).pipe(O3(i),I3(i))}function gy(t,i){return new Fe(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function _y(t,i){return new Fe(e=>{let n;return fo(e,i,()=>{n=t[D3](),fo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>qe(n?.return)&&n.return()})}function T3(t,i){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{fo(e,i,()=>{let n=t[Symbol.asyncIterator]();fo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function by(t,i){return T3(k3(t),i)}function vy(t,i){if(t!=null){if(x3(t))return fy(t,i);if(Hl(t))return gy(t,i);if(C3(t))return hy(t,i);if(M3(t))return T3(t,i);if(S3(t))return _y(t,i);if(E3(t))return by(t,i)}throw w3(t)}function tn(t,i){return i?vy(t,i):Ut(t)}function re(...t){let i=$r(t);return tn(t,i)}function Gr(t,i){let e=qe(t)?t:()=>t,n=o=>o.error(e());return new Fe(i?o=>i.schedule(n,0,o):n)}function ai(t){return!!t&&(t instanceof Fe||qe(t.lift)&&qe(t.subscribe))}var fr=Ll(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function L6(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new mr({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new fr)}});t.subscribe(r)})}function yy(t){return t instanceof Date&&!isNaN(t)}function me(t,i){return Qe((e,n)=>{let o=0;e.subscribe(et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:_j}=Array;function bj(t,i){return _j(i)?t(...i):t(i)}function Ul(t){return me(i=>bj(t,i))}var{isArray:vj}=Array,{getPrototypeOf:yj,prototype:Cj,keys:xj}=Object;function P3(t){if(t.length===1){let i=t[0];if(vj(i))return{args:i,keys:null};if(Mj(i)){let e=xj(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function Mj(t){return t&&typeof t=="object"&&yj(t)===Cj}function L3(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function gi(...t){let i=$r(t),e=y3(t),{args:n,keys:o}=P3(t);if(n.length===0)return tn([],i);let r=new Fe(wj(n,i,o?a=>L3(o,a):Yi));return e?r.pipe(Ul(e)):r}function wj(t,i,e=Yi){return n=>{Cy(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let c=0;c{let m=tn(t[c],i),f=!1;m.subscribe(et(n,v=>{r[c]=v,f||(f=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function Cy(t,i,e){t?fo(e,t,i):i()}function xy(t,i,e,n,o,r,a,s){let c=[],m=0,f=0,v=!1,x=()=>{v&&!c.length&&!m&&i.complete()},M=K=>m{r&&i.next(K),m++;let Y=!1;Ut(e(K,f++)).subscribe(et(i,Z=>{o?.(Z),r?M(Z):i.next(Z)},()=>{Y=!0},void 0,()=>{if(Y)try{for(m--;c.length&&mO(Z)):O(Z)}x()}catch(Z){i.error(Z)}}))};return t.subscribe(et(i,M,()=>{v=!0,x()})),()=>{s?.()}}function _n(t,i,e=1/0){return qe(i)?_n((n,o)=>me((r,a)=>i(n,r,o,a))(Ut(t(n,o))),e):(typeof i=="number"&&(e=i),Qe((n,o)=>xy(n,o,t,e)))}function Wr(t=1/0){return _n(Yi,t)}function My(){return Wr(1)}function Li(...t){return My()(tn(t,$r(t)))}function Ai(t){return new Fe(i=>{Ut(t()).subscribe(i)})}function Oa(...t){let i=y3(t),{args:e,keys:n}=P3(t),o=new Fe(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),c=a,m=a;for(let f=0;f{v||(v=!0,m--),s[f]=x},()=>c--,void 0,()=>{(!c||!v)&&(m||r.next(n?L3(n,s):s),r.complete())}))}});return i?o.pipe(Ul(i)):o}var Dj=["addListener","removeListener"],Sj=["addEventListener","removeEventListener"],kj=["on","off"];function ed(t,i,e,n){if(qe(e)&&(n=e,e=void 0),n)return ed(t,i,e).pipe(Ul(n));let[o,r]=Oj(t)?Sj.map(a=>s=>t[a](i,s,e)):Ej(t)?Dj.map(wy(t,i)):Ij(t)?kj.map(wy(t,i)):[];if(!o&&Hl(t))return _n(a=>ed(a,i,e))(Ut(t));if(!o)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...c)=>a.next(1r(s)})}function wy(t,i){return e=>n=>t[e](i,n)}function Ej(t){return qe(t.addListener)&&qe(t.removeListener)}function Ij(t){return qe(t.on)&&qe(t.off)}function Oj(t){return qe(t.addEventListener)&&qe(t.removeEventListener)}function Ta(t=0,i,e=sy){let n=-1;return i!=null&&(v3(i)?e=i:n=i),new Fe(o=>{let r=yy(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function A6(t=0,i=Ia){return t<0&&(t=0),Ta(t,t,i)}function ft(...t){let i=$r(t),e=cy(t,1/0),n=t;return n.length?n.length===1?Ut(n[0]):Wr(e)(tn(n,i)):Sn}function Ae(t,i){return Qe((e,n)=>{let o=0;e.subscribe(et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function Dy(t){return Qe((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let m=o;o=null,e.next(m)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};i.subscribe(et(e,m=>{n=!0,o=m,r||Ut(t(m)).subscribe(r=et(e,s,c))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function $l(t,i=Ia){return Dy(()=>Ta(t,i))}function Mo(t){return Qe((i,e)=>{let n=null,o=!1,r;n=i.subscribe(et(e,void 0,void 0,a=>{r=Ut(t(a,Mo(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function A3(t,i,e,n,o){return(r,a)=>{let s=e,c=i,m=0;r.subscribe(et(a,f=>{let v=m++;c=s?t(c,f,v):(s=!0,f),n&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}function z3(t,i){return Qe(A3(t,i,arguments.length>=2,!1,!0))}function Qi(t,i){return qe(i)?_n(t,i,1):_n(t,1)}function hr(t,i=Ia){return Qe((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let m=r;r=null,n.next(m)}};function c(){let m=a+t,f=i.now();if(f{r=m,a=i.now(),o||(o=i.schedule(c,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function fs(t){return Qe((i,e)=>{let n=!1;i.subscribe(et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function Be(t){return t<=0?()=>Sn:Qe((i,e)=>{let n=0;i.subscribe(et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function Sy(){return Qe((t,i)=>{t.subscribe(et(i,_c))})}function Gl(t){return me(()=>t)}function z6(t,i){return i?e=>Li(i.pipe(Be(1),Sy()),e.pipe(z6(t))):_n((e,n)=>Ut(t(e,n)).pipe(Be(1),Gl(e)))}function td(t,i=Ia){let e=Ta(t,i);return z6(()=>e)}function Wl(t,i=Yi){return t=t??Tj,Qe((e,n)=>{let o,r=!0;e.subscribe(et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function Tj(t,i){return t===i}function R3(t=Pj){return Qe((i,e)=>{let n=!1;i.subscribe(et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function Pj(){return new fr}function qr(t){return Qe((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Yr(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ae((o,r)=>t(o,r,n)):Yi,Be(1),e?fs(i):R3(()=>new fr))}function ql(t){return t<=0?()=>Sn:Qe((i,e)=>{let n=[];i.subscribe(et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function R6(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ae((o,r)=>t(o,r,n)):Yi,ql(1),e?fs(i):R3(()=>new fr))}function N3(){return Qe((t,i)=>{let e,n=!1;t.subscribe(et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function N6(t,i){return Qe(A3(t,i,arguments.length>=2,!0))}function nd(t={}){let{connector:i=()=>new B,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,m=0,f=!1,v=!1,x=()=>{s?.unsubscribe(),s=void 0},M=()=>{x(),a=c=void 0,f=v=!1},O=()=>{let K=a;M(),K?.unsubscribe()};return Qe((K,Y)=>{m++,!v&&!f&&x();let Z=c=c??i();Y.add(()=>{m--,m===0&&!v&&!f&&(s=F6(O,o))}),Z.subscribe(Y),!a&&m>0&&(a=new mr({next:Oe=>Z.next(Oe),error:Oe=>{v=!0,x(),s=F6(M,e,Oe),Z.error(Oe)},complete:()=>{f=!0,x(),s=F6(M,n),Z.complete()}}),Ut(K).subscribe(a))})(r)}}function F6(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new mr({next:()=>{n.unsubscribe(),t()}});return Ut(i(...e)).subscribe(n)}function hs(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,nd({connector:()=>new pr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Cc(t){return Ae((i,e)=>t<=e)}function We(...t){let i=$r(t);return Qe((e,n)=>{(i?Li(t,e,i):Li(t,e)).subscribe(n)})}function lt(t,i){return Qe((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(et(n,c=>{o?.unsubscribe();let m=0,f=r++;Ut(t(c,f)).subscribe(o=et(n,v=>n.next(i?i(c,v,f,m++):v),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function ye(t){return Qe((i,e)=>{Ut(t).subscribe(et(e,()=>e.complete(),_c)),!e.closed&&i.subscribe(e)})}function V6(t,i=!1){return Qe((e,n)=>{let o=0;e.subscribe(et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function Ot(t,i,e){let n=qe(t)||i||e?{next:t,error:i,complete:e}:t;return n?Qe((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(et(r,c=>{var m;(m=n.next)===null||m===void 0||m.call(n,c),r.next(c)},()=>{var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),r.complete()},c=>{var m;s=!1,(m=n.error)===null||m===void 0||m.call(n,c),r.error(c)},()=>{var c,m;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(m=n.finalize)===null||m===void 0||m.call(n)}))}):Yi}function ky(t){let i=Je(null);try{return t()}finally{Je(i)}}var Ey=Ne(q({},mc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Iy(t){if(t.dirty=!1,t.version>0&&!fc(t))return;t.version++;let i=us(t);try{t.cleanup(),t.fn()}finally{pc(t,i)}}var j3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",pe=class extends Error{code;constructor(i,e){super($o(i,e)),this.code=i}};function Lj(t){return`NG0${Math.abs(t)}`}function $o(t,i){return`${Lj(t)}${i?": "+i:""}`}var Qn=globalThis;function Wt(t){for(let i in t)if(t[i]===Wt)return i;throw Error("")}function Py(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function La(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(La).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` -`);return n>=0?e.slice(0,n):e}function H3(t,i){return t?i?`${t} ${i}`:t:i||""}var Aj=Wt({__forward_ref__:Wt});function kt(t){return t.__forward_ref__=kt,t.toString=function(){return La(this())},t}function si(t){return X6(t)?t():t}function X6(t){return typeof t=="function"&&t.hasOwnProperty(Aj)&&t.__forward_ref__===kt}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function X(t){return{providers:t.providers||[],imports:t.imports||[]}}function sd(t){return zj(t,U3)}function Z6(t){return sd(t)!==null}function zj(t,i){return t.hasOwnProperty(i)&&t[i]||null}function Rj(t){let i=t?.[U3]??null;return i||null}function j6(t){return t&&t.hasOwnProperty(V3)?t[V3]:null}var U3=Wt({\u0275prov:Wt}),V3=Wt({\u0275inj:Wt}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function J6(t){return t&&!!t.\u0275providers}var eg=Wt({\u0275cmp:Wt}),tg=Wt({\u0275dir:Wt}),ng=Wt({\u0275pipe:Wt}),ig=Wt({\u0275mod:Wt}),od=Wt({\u0275fac:Wt}),Sc=Wt({__NG_ELEMENT_ID__:Wt}),Oy=Wt({__NG_ENV_ID__:Wt});function Ri(t){return typeof t=="string"?t:t==null?"":String(t)}function Ly(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ri(t)}var Ay=Wt({ngErrorCode:Wt}),Nj=Wt({ngErrorMessage:Wt}),Fj=Wt({ngTokenPath:Wt});function og(t,i){return zy("",-200,i)}function $3(t,i){throw new pe(-201,!1)}function zy(t,i,e){let n=new pe(i,t);return n[Ay]=i,n[Nj]=t,e&&(n[Fj]=e),n}function Vj(t){return t[Ay]}var H6;function Ry(){return H6}function Ki(t){let i=H6;return H6=t,i}function rg(t,i,e){let n=sd(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;$3(t,"Injector")}var Bj={},xc=Bj,U6="__NG_DI_FLAG__",$6=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Mc(e)||0;try{return this.injector.get(i,n&8?null:xc,n)}catch(o){if(Tl(o))return o;throw o}}};function jj(t,i=0){let e=t3();if(e===void 0)throw new pe(-203,!1);if(e===null)return rg(t,void 0,i);{let n=Hj(i),o=e.retrieve(t,n);if(Tl(o)){if(n.optional)return null;throw o}return o}}function ke(t,i=0){return(Ry()||jj)(si(t),i)}function d(t,i){return ke(t,Mc(i))}function Mc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Hj(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function G6(t){let i=[];for(let e=0;eArray.isArray(e)?G3(e,i):i(e))}function sg(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function cd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Vy(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function W3(t,i,e){let n=Ql(t,i);return n>=0?t[n|1]=e:(n=~n,By(t,n,i,e)),n}function q3(t,i){let e=Ql(t,i);if(e>=0)return t[e|1]}function Ql(t,i){return $j(t,i,1)}function $j(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return G3(i,a=>{let s=a;B3(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&Uy(o,r),e}function Uy(t,i){for(let e=0;e{i(r,n)})}}function B3(t,i,e,n){if(t=si(t),!t)return!1;let o=null,r=j6(t),a=!r&&Qr(t);if(!r&&!a){let c=t.ngModule;if(r=j6(c),r)o=c;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let c=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let m of c)B3(m,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let m;try{G3(r.imports,f=>{B3(f,i,e,n)&&(m||=[],m.push(f))})}finally{}m!==void 0&&Uy(m,i)}if(!s){let m=gs(o)||(()=>new o);i({provide:o,useFactory:m,deps:zi},o),i({provide:lg,useValue:o,multi:!0},o),i({provide:Aa,useValue:()=>ke(o),multi:!0},o)}let c=r.providers;if(c!=null&&!s){let m=t;mg(c,f=>{i(f,m)})}}else return!1;return o!==t&&t.providers!==void 0}function mg(t,i){for(let e of t)J6(e)&&(e=e.\u0275providers),Array.isArray(e)?mg(e,i):i(e)}var Gj=Wt({provide:String,useValue:Wt});function $y(t){return t!==null&&typeof t=="object"&&Gj in t}function Wj(t){return!!(t&&t.useExisting)}function qj(t){return!!(t&&t.useFactory)}function wc(t){return typeof t=="function"}function Gy(t){return!!t.useClass}var ld=new L(""),F3={},Ty={},B6;function Kl(){return B6===void 0&&(B6=new rd),B6}var Qt=class{},Dc=class extends Qt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,q6(i,a=>this.processProvider(a)),this.records.set(cg,Yl(void 0,this)),o.has("environment")&&this.records.set(Qt,Yl(void 0,this));let r=this.records.get(ld);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(lg,zi,{self:!0}))}retrieve(i,e){let n=Mc(e)||0;try{return this.get(i,xc,n)}catch(o){if(Tl(o))return o;throw o}}destroy(){id(this),this._destroyed=!0;let i=Je(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Je(i)}}onDestroy(i){return id(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){id(this);let e=Ur(this),n=Ki(void 0),o;try{return i()}finally{Ur(e),Ki(n)}}get(i,e=xc,n){if(id(this),i.hasOwnProperty(Oy))return i[Oy](this);let o=Mc(n),r,a=Ur(this),s=Ki(void 0);try{if(!(o&4)){let m=this.records.get(i);if(m===void 0){let f=Zj(i)&&sd(i);f&&this.injectableDefInScope(f)?m=Yl(W6(i),F3):m=null,this.records.set(i,m)}if(m!=null)return this.hydrate(i,m,o)}let c=o&2?Kl():this.parent;return e=o&8&&e===xc?null:e,c.get(i,e)}catch(c){let m=Vj(c);throw m===-200||m===-201?new pe(m,null):c}finally{Ki(s),Ur(a)}}resolveInjectorInitializers(){let i=Je(null),e=Ur(this),n=Ki(void 0),o;try{let r=this.get(Aa,zi,{self:!0});for(let a of r)a()}finally{Ur(e),Ki(n),Je(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(La(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=si(i);let e=wc(i)?i:si(i&&i.provide),n=Qj(i);if(!wc(i)&&i.multi===!0){let o=this.records.get(e);o||(o=Yl(void 0,F3,!0),o.factory=()=>G6(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=Je(null);try{if(e.value===Ty)throw og(La(i));return e.value===F3&&(e.value=Ty,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Xj(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Je(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=si(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function W6(t){let i=sd(t),e=i!==null?i.factory:gs(t);if(e!==null)return e;if(t instanceof L)throw new pe(204,!1);if(t instanceof Function)return Yj(t);throw new pe(204,!1)}function Yj(t){if(t.length>0)throw new pe(204,!1);let e=Rj(t);return e!==null?()=>e.factory(t):()=>new t}function Qj(t){if($y(t))return Yl(void 0,t.useValue);{let i=pg(t);return Yl(i,F3)}}function pg(t,i,e){let n;if(wc(t)){let o=si(t);return gs(o)||W6(o)}else if($y(t))n=()=>si(t.useValue);else if(qj(t))n=()=>t.useFactory(...G6(t.deps||[]));else if(Wj(t))n=(o,r)=>ke(si(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=si(t&&(t.useClass||t.provide));if(Kj(t))n=()=>new o(...G6(t.deps));else return gs(o)||W6(o)}return n}function id(t){if(t.destroyed)throw new pe(205,!1)}function Yl(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Kj(t){return!!t.deps}function Xj(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Zj(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function q6(t,i){for(let e of t)Array.isArray(e)?q6(e,i):e&&J6(e)?q6(e.\u0275providers,i):i(e)}function bi(t,i){let e;t instanceof Dc?(id(t),e=t):e=new $6(t);let n,o=Ur(e),r=Ki(void 0);try{return i()}finally{Ur(o),Ki(r)}}function fg(){return Ry()!==void 0||t3()!=null}var _r=0,Ge=1,it=2,ci=3,Go=4,Xi=5,kc=6,Xl=7,Rn=8,za=9,Kr=10,Kt=11,Zl=12,hg=13,Ec=14,Ni=15,vs=16,Ic=17,Xr=18,dd=19,gg=20,Pa=21,Q3=22,Ra=23,wo=24,Oc=25,Tc=26,nn=27,Wy=1,_g=6,ys=7,ud=8,Pc=9,Nn=10;function Zr(t){return Array.isArray(t)&&typeof t[Wy]=="object"}function br(t){return Array.isArray(t)&&t[Wy]===!0}function bg(t){return(t.flags&4)!==0}function Na(t){return t.componentOffset>-1}function Jl(t){return(t.flags&1)===1}function vr(t){return!!t.template}function e1(t){return(t[it]&512)!==0}function Lc(t){return(t[it]&256)===256}var vg="svg",qy="math";function Wo(t){for(;Array.isArray(t);)t=t[_r];return t}function yg(t,i){return Wo(i[t])}function qo(t,i){return Wo(i[t.index])}function md(t,i){return t.data[i]}function t1(t,i){return t[i]}function Cg(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Yo(t,i){let e=i[t];return Zr(e)?e:e[_r]}function Yy(t){return(t[it]&4)===4}function K3(t){return(t[it]&128)===128}function Qy(t){return br(t[ci])}function Do(t,i){return i==null?null:t[i]}function xg(t){t[Ic]=0}function Mg(t){t[it]&1024||(t[it]|=1024,K3(t)&&Cs(t))}function Ky(t,i){for(;t>0;)i=i[Ec],t--;return i}function pd(t){return!!(t[it]&9216||t[wo]?.dirty)}function X3(t){t[Kr].changeDetectionScheduler?.notify(8),t[it]&64&&(t[it]|=1024),pd(t)&&Cs(t)}function Cs(t){t[Kr].changeDetectionScheduler?.notify(0);let i=_s(t);for(;i!==null&&!(i[it]&8192||(i[it]|=8192,!K3(i)));)i=_s(i)}function wg(t,i){if(Lc(t))throw new pe(911,!1);t[Pa]===null&&(t[Pa]=[]),t[Pa].push(i)}function Xy(t,i){if(t[Pa]===null)return;let e=t[Pa].indexOf(i);e!==-1&&t[Pa].splice(e,1)}function _s(t){let i=t[ci];return br(i)?i[ci]:i}function Dg(t){return t[Xl]??=[]}function Sg(t){return t.cleanup??=[]}function Zy(t,i,e,n){let o=Dg(i);o.push(e),t.firstCreatePass&&Sg(t).push(n,o.length-1)}var yt={lFrame:lC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Y6=!1;function Jy(){return yt.lFrame.elementDepthCount}function eC(){yt.lFrame.elementDepthCount++}function kg(){yt.lFrame.elementDepthCount--}function Z3(){return yt.bindingsEnabled}function Eg(){return yt.skipHydrationRootTNode!==null}function Ig(t){return yt.skipHydrationRootTNode===t}function Og(){yt.skipHydrationRootTNode=null}function ze(){return yt.lFrame.lView}function on(){return yt.lFrame.tView}function G(t){return yt.lFrame.contextLView=t,t[Rn]}function W(t){return yt.lFrame.contextLView=null,t}function Kn(){let t=Tg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tg(){return yt.lFrame.currentTNode}function tC(){let t=yt.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function n1(t,i){let e=yt.lFrame;e.currentTNode=t,e.isParent=i}function Pg(){return yt.lFrame.isParent}function Lg(){yt.lFrame.isParent=!1}function nC(){return yt.lFrame.contextLView}function Ag(){return Y6}function i1(t){let i=Y6;return Y6=t,i}function Fa(){let t=yt.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function J3(){return yt.lFrame.bindingIndex}function iC(t){return yt.lFrame.bindingIndex=t}function Jr(){return yt.lFrame.bindingIndex++}function o1(t){let i=yt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function oC(){return yt.lFrame.inI18n}function rC(t,i){let e=yt.lFrame;e.bindingIndex=e.bindingRootIndex=t,e4(i)}function aC(){return yt.lFrame.currentDirectiveIndex}function e4(t){yt.lFrame.currentDirectiveIndex=t}function sC(t){let i=yt.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function t4(){return yt.lFrame.currentQueryIndex}function fd(t){yt.lFrame.currentQueryIndex=t}function Jj(t){let i=t[Ge];return i.type===2?i.declTNode:i.type===1?t[Xi]:null}function zg(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=Jj(r),o===null||(r=r[Ec],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=yt.lFrame=cC();return n.currentTNode=i,n.lView=t,!0}function n4(t){let i=cC(),e=t[Ge];yt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function cC(){let t=yt.lFrame,i=t===null?null:t.child;return i===null?lC(t):i}function lC(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function dC(){let t=yt.lFrame;return yt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Rg=dC;function i4(){let t=dC();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function uC(t){return(yt.lFrame.contextLView=Ky(t,yt.lFrame.contextLView))[Rn]}function Qo(){return yt.lFrame.selectedIndex}function xs(t){yt.lFrame.selectedIndex=t}function r1(){let t=yt.lFrame;return md(t.tView,t.selectedIndex)}function $t(){yt.lFrame.currentNamespace=vg}function Ko(){eH()}function eH(){yt.lFrame.currentNamespace=null}function mC(){return yt.lFrame.currentNamespace}var pC=!0;function o4(){return pC}function hd(t){pC=t}function Q6(t,i=null,e=null,n){let o=Ng(t,i,e,n);return o.resolveInjectorInitializers(),o}function Ng(t,i=null,e=null,n,o=new Set){let r=[e||zi,Hy(t)];return n=n||(typeof t=="object"?void 0:La(t)),new Dc(r,i||Kl(),n||null,o)}var be=class t{static THROW_IF_NOT_FOUND=xc;static NULL=new rd;static create(i,e){if(Array.isArray(i))return Q6({name:""},e,i,"");{let n=i.name??"";return Q6({name:n},i.parent,i.providers,n)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>ke(cg)});static __NG_ELEMENT_ID__=-1},Me=new L(""),Fi=(()=>{class t{static __NG_ELEMENT_ID__=tH;static __NG_ENV_ID__=e=>e}return t})(),ad=class extends Fi{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return wg(e,i),()=>Xy(e,i)}};function tH(){return new ad(ze())}var _i=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Zi=new L("",{providedIn:"root",factory:()=>{let t=d(Qt),i;return e=>{t.destroyed&&!i?setTimeout(()=>{throw e}):(i??=t.get(_i),i.handleError(e))}}}),fC={provide:Aa,useValue:()=>void d(_i),multi:!0};function ea(t){return typeof t=="function"&&t[Yn]!==void 0}function we(t,i){let[e,n,o]=C6(t,i?.equal),r=e,a=r[Yn];return r.set=n,r.update=o,r.asReadonly=r4.bind(r),r}function r4(){let t=this[Yn];if(t.readonlyFn===void 0){let i=()=>this();i[Yn]=t,t.readonlyFn=i}return t.readonlyFn}function Fg(t){return ea(t)&&typeof t.set=="function"}var Ac=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=nH}return t})();function nH(){return new Ac(ze(),Kn())}var Uo=class{},gd=new L("",{providedIn:"root",factory:()=>!1});var Vg=new L(""),Bg=new L(""),ta=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ct(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),a1=(()=>{class t{internalPendingTasks=d(ta);scheduler=d(Uo);errorHandler=d(Zi);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();function zc(...t){}var _d=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new K6})}return t})(),K6=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}};function f1(t){return{toString:t}.toString()}var a4="__parameters__";function cH(t){return function(...e){if(t){let n=t(...e);for(let o in n)this[o]=n[o]}}}function ZC(t,i,e){return f1(()=>{let n=cH(i);function o(...r){if(this instanceof o)return n.apply(this,r),this;let a=new o(...r);return s.annotation=a,s;function s(c,m,f){let v=c.hasOwnProperty(a4)?c[a4]:Object.defineProperty(c,a4,{value:[]})[a4];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(a),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var Xo=ag(ZC("Optional"),8);var oa=ag(ZC("SkipSelf"),4);function JC(t){let i=Qn.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function lH(t){return typeof t=="function"}var b4=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function ex(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Re=(()=>{let t=()=>tx;return t.ngInherit=!0,t})();function tx(t){return t.type.prototype.ngOnChanges&&(t.setInput=uH),dH}function dH(){let t=ix(this),i=t?.current;if(i){let e=t.previous;if(e===gr)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function uH(t,i,e,n,o){let r=this.declaredInputs[n],a=ix(t)||mH(t,{previous:gr,current:null}),s=a.current||(a.current={}),c=a.previous,m=c[r];s[r]=new b4(m&&m.currentValue,e,c===gr),ex(t,i,o,e)}var nx="__ngSimpleChanges__";function ix(t){return t[nx]||null}function mH(t,i){return t[nx]=i}var hC=[];var rn=function(t,i=null,e){for(let n=0;n=n)break}else i[c]<0&&(t[Ic]+=65536),(s>14>16&&(t[it]&3)===i&&(t[it]+=16384,gC(s,r)):gC(s,r)}var c1=-1,Nc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function hH(t){return(t.flags&8)!==0}function gH(t){return(t.flags&16)!==0}function _H(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function y4(t,i){let e=vH(t),n=i;for(;e>0;)n=n[Ec],e--;return n}var Xg=!0;function C4(t){let i=Xg;return Xg=t,i}var yH=256,cx=yH-1,lx=5,CH=0,na={};function xH(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Sc)&&(n=e[Sc]),n==null&&(n=e[Sc]=CH++);let o=n&cx,r=1<>lx)]|=r}function x4(t,i){let e=dx(t,i);if(e!==-1)return e;let n=i[Ge];n.firstCreatePass&&(t.injectorIndex=i.length,Hg(n.data,t),Hg(i,null),Hg(n.blueprint,null));let o=R8(t,i),r=t.injectorIndex;if(sx(o)){let a=v4(o),s=y4(o,i),c=s[Ge].data;for(let m=0;m<8;m++)i[r+m]=s[a+m]|c[a+m]}return i[r+8]=o,r}function Hg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function dx(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function R8(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=hx(o),n===null)return c1;if(e++,o=o[Ec],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return c1}function Zg(t,i,e){xH(t,i,e)}function MH(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,v=n?s:s+f,x=o?s+f:m;for(let M=v;M=c&&O.type===e)return M}if(o){let M=a[c];if(M&&vr(M)&&M.type===e)return c}return null}function Cd(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof Nc){let s=r;if(s.resolving){let M=Ly(a[e]);throw og(M)}let c=C4(s.canSeeViewProviders);s.resolving=!0;let m=a[e].type||a[e],f,v=s.injectImpl?Ki(s.injectImpl):null,x=zg(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&pH(e,a[e],i)}finally{v!==null&&Ki(v),C4(c),s.resolving=!1,Rg()}}return r}function DH(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Sc)?t[Sc]:void 0;return typeof i=="number"?i>=0?i&cx:SH:i}function bC(t,i,e){let n=1<>lx)]&n)}function vC(t,i){return!(t&2)&&!(t&1&&i)}var Rc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return px(this._tNode,this._lView,i,Mc(n),e)}};function SH(){return new Rc(Kn(),ze())}function Ie(t){return f1(()=>{let i=t.prototype.constructor,e=i[od]||Jg(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[od]||Jg(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jg(t){return X6(t)?()=>{let i=Jg(si(t));return i&&i()}:gs(t)}function kH(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[it]&2048&&!e1(a);){let s=fx(r,a,e,n|2,na);if(s!==na)return s;let c=r.parent;if(!c){let m=a[gg];if(m){let f=m.get(e,na,n);if(f!==na)return f}c=hx(a),a=a[Ec]}r=c}return o}function hx(t){let i=t[Ge],e=i.type;return e===2?i.declTNode:e===1?t[Xi]:null}function Od(t){return MH(Kn(),t)}function EH(){return h1(Kn(),ze())}function h1(t,i){return new Q(qo(t,i))}var Q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=EH}return t})();function gx(t){return t instanceof Q?t.nativeElement:t}function IH(){return this._results[Symbol.iterator]()}var In=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new B}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=Fy(i);(this._changesDetected=!Ny(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=IH};function _x(t){return(t.flags&128)===128}var N8=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(N8||{}),bx=new Map,OH=0;function TH(){return OH++}function PH(t){bx.set(t[dd],t)}function e8(t){bx.delete(t[dd])}var yC="__ngContext__";function d1(t,i){Zr(i)?(t[yC]=i[dd],PH(i)):t[yC]=i}function vx(t){return Cx(t[Zl])}function yx(t){return Cx(t[Go])}function Cx(t){for(;t!==null&&!br(t);)t=t[Go];return t}var t8;function F8(t){t8=t}function V8(){if(t8!==void 0)return t8;if(typeof document<"u")return document;throw new pe(210,!1)}var Ds=new L("",{providedIn:"root",factory:()=>LH}),LH="ng",R4=new L(""),Bc=new L("",{providedIn:"platform",factory:()=>"unknown"});var Td=new L(""),g1=new L("",{providedIn:"root",factory:()=>V8().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var AH="h",zH="b";var xx="r";var Mx="di";var wx=!1,Dx=new L("",{providedIn:"root",factory:()=>wx});var N4=new L("");var RH=(t,i,e,n)=>{};function NH(t,i,e,n){RH(t,i,e,n)}function F4(t){return(t.flags&32)===32}var FH=()=>null;function Sx(t,i,e=!1){return FH(t,i,e)}function kx(t,i){let e=t.contentQueries;if(e!==null){let n=Je(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return s4}function V4(t){return VH()?.createHTML(t)||t}var c4;function Ex(){if(c4===void 0&&(c4=null,Qn.trustedTypes))try{c4=Qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return c4}function CC(t){return Ex()?.createHTML(t)||t}function xC(t){return Ex()?.createScriptURL(t)||t}var Ba=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${j3})`}},i8=class extends Ba{getTypeName(){return"HTML"}},o8=class extends Ba{getTypeName(){return"Style"}},r8=class extends Ba{getTypeName(){return"Script"}},a8=class extends Ba{getTypeName(){return"URL"}},s8=class extends Ba{getTypeName(){return"ResourceURL"}};function So(t){return t instanceof Ba?t.changingThisBreaksApplicationSecurity:t}function ra(t,i){let e=Ix(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${j3})`)}return e===i}function Ix(t){return t instanceof Ba&&t.getTypeName()||null}function j8(t){return new i8(t)}function H8(t){return new o8(t)}function U8(t){return new r8(t)}function $8(t){return new a8(t)}function G8(t){return new s8(t)}function BH(t){let i=new l8(t);return jH()?new c8(i):i}var c8=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(V4(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},l8=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=V4(i),e}};function jH(){try{return!!new window.DOMParser().parseFromString(V4(""),"text/html")}catch{return!1}}var HH=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Pd(t){return t=String(t),t.match(HH)?t:"unsafe:"+t}function ja(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Ld(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var Ox=ja("area,br,col,hr,img,wbr"),Tx=ja("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Px=ja("rp,rt"),UH=Ld(Px,Tx),$H=Ld(Tx,ja("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),GH=Ld(Px,ja("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),MC=Ld(Ox,$H,GH,UH),Lx=ja("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),WH=ja("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qH=ja("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),YH=Ld(Lx,WH,qH),QH=ja("script,style,template"),d8=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=ZH(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=XH(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=wC(i).toLowerCase();if(!MC.hasOwnProperty(e))return this.sanitizedSomething=!0,!QH.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=wC(i).toLowerCase();MC.hasOwnProperty(e)&&!Ox.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(DC(i))}};function KH(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function XH(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw Ax(i);return i}function ZH(t){let i=t.firstChild;if(i&&KH(t,i))throw Ax(i);return i}function wC(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function Ax(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var JH=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eU=/([^\#-~ |!])/g;function DC(t){return t.replace(/&/g,"&").replace(JH,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(eU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var l4;function B4(t,i){let e=null;try{l4=l4||BH(t);let n=i?String(i):"";e=l4.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=l4.getInertBodyElement(n)}while(n!==r);let s=new d8().sanitizeChildren(SC(e)||e);return V4(s)}finally{if(e){let n=SC(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function SC(t){return"content"in t&&tU(t)?t.content:null}function tU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var nU=/^>|^->||--!>|)/g,oU="\u200B$1\u200B";function rU(t){return t.replace(nU,i=>i.replace(iU,oU))}function aU(t,i){return t.createText(i)}function sU(t,i,e){t.setValue(i,e)}function cU(t,i){return t.createComment(rU(i))}function zx(t,i,e){return t.createElement(i,e)}function M4(t,i,e,n,o){t.insertBefore(i,e,n,o)}function Rx(t,i,e){t.appendChild(i,e)}function kC(t,i,e,n,o){n!==null?M4(t,i,e,n,o):Rx(t,i,e)}function Nx(t,i,e,n){t.removeChild(null,i,e,n)}function lU(t,i,e){t.setAttribute(i,"style",e)}function dU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function Fx(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&_H(t,i,n),o!==null&&dU(t,i,o),r!==null&&lU(t,i,r)}var Fn=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t})(Fn||{});function jc(t){let i=q8();return i?CC(i.sanitize(Fn.HTML,t)||""):ra(t,"HTML")?CC(So(t)):B4(V8(),Ri(t))}function _1(t){let i=q8();return i?i.sanitize(Fn.URL,t)||"":ra(t,"URL")?So(t):Pd(Ri(t))}function Vx(t){let i=q8();if(i)return xC(i.sanitize(Fn.RESOURCE_URL,t)||"");if(ra(t,"ResourceURL"))return xC(So(t));throw new pe(904,!1)}function uU(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?Vx:_1}function W8(t,i,e){return uU(i,e)(t)}function q8(){let t=ze();return t&&t[Kr].sanitizer}function mU(t){return t.ownerDocument.defaultView}function pU(t){return t.ownerDocument}function Bx(t){return t instanceof Function?t():t}function fU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var jx="ng-template";function hU(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?v="":v=o[f+1].toLowerCase(),n&2&&m!==v){if(yr(n))return!1;a=!0}}}}return yr(n)||a}function yr(t){return(t&1)===0}function bU(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!yr(a)&&(i+=EC(r,o),o=""),n=a,r=r||!yr(n);e++}return o!==""&&(i+=EC(r,o)),i}function wU(t){return t.map(MU).join(",")}function DU(t){let i=[],e=[],n=1,o=2;for(;nnull),a=n;if(i&&typeof i=="object"){let c=i;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Se&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},j=m8;function qx(t){let i,e;function n(){t=zc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function OC(t){return queueMicrotask(()=>t()),()=>{t=zc}}var J8="isAngularZone",w4=J8+"_ID",OU=0,se=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new j(!1);onMicrotaskEmpty=new j(!1);onStable=new j(!1);onError=new j(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Wx}=i;if(typeof Zone>"u")throw new pe(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,LU(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(J8)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new pe(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new pe(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,TU,zc,zc);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},TU={};function e5(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function PU(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){qx(()=>{t.callbackScheduled=!1,p8(t),t.isCheckStableRunning=!0,e5(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),p8(t)}function LU(t){let i=()=>{PU(t)},e=OU++;t._inner=t._inner.fork({name:"angular",properties:{[J8]:!0,[w4]:e,[w4+e]:!0},onInvokeTask:(n,o,r,a,s,c)=>{if(AU(c))return n.invokeTask(r,a,s,c);try{return TC(t),n.invokeTask(r,a,s,c)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),PC(t)}},onInvoke:(n,o,r,a,s,c,m)=>{try{return TC(t),n.invoke(r,a,s,c,m)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!zU(c)&&i(),PC(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,p8(t),e5(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function p8(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function TC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function PC(t){t._nesting--,e5(t)}var xd=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new j;onMicrotaskEmpty=new j;onStable=new j;onError=new j;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function AU(t){return Yx(t,"__ignore_ng_zone__")}function zU(t){return Yx(t,"__scheduler_tick__")}function Yx(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function Qx(t="zone.js",i){return t==="noop"?new xd:t==="zone.js"?new se(i):t}var U4=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),t5=[0,1,2,3],n5=(()=>{class t{ngZone=d(se);scheduler=d(Uo);errorHandler=d(_i,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){d(Ss,{optional:!0})}execute(){let e=this.sequences.size>0;e&&rn(16),this.executing=!0;for(let n of t5)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&rn(17)}register(e){let{view:n}=e;n!==void 0?((n[Oc]??=[]).push(e),Cs(n),n[it]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,n){return n?n.run(H4.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),Md=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Oc];i&&(this.view[Oc]=i.filter(e=>e!==this))}};function Ct(t,i){let e=i?.injector??d(be);return aa("NgAfterNextRender"),NU(t,e,i,!0)}function RU(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function NU(t,i,e,n){let o=i.get(U4);o.impl??=i.get(n5);let r=i.get(Ss,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(Fi):null,s=i.get(Ac,null,{optional:!0}),c=new Md(o.impl,RU(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(c),c}var Kx=new L("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Xx(t,i,e){let n=t.get(Kx);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function FU(t,i){let e=t.get(Kx);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function VU(t,i){for(let[e,n]of i)Xx(t,n.animateFns)}function LC(t,i,e,n){let o=t?.[Tc]?.enter;i!==null&&o&&o.has(e.index)&&VU(n,o)}function s1(t,i,e,n,o,r,a,s){if(o!=null){let c,m=!1;br(o)?c=o:Zr(o)&&(m=!0,o=o[_r]);let f=Wo(o);t===0&&n!==null?(LC(s,n,r,e),a==null?Rx(i,n,f):M4(i,n,f,a||null,!0)):t===1&&n!==null?(LC(s,n,r,e),M4(i,n,f,a||null,!0)):t===2?AC(s,r,e,v=>{Nx(i,f,m,v)}):t===3&&AC(s,r,e,()=>{i.destroyNode(f)}),c!=null&&KU(i,t,e,c,r,n,a)}}function BU(t,i){Zx(t,i),i[_r]=null,i[Xi]=null}function jU(t,i,e,n,o,r){n[_r]=o,n[Xi]=i,G4(t,n,e,1,o,r)}function Zx(t,i){i[Kr].changeDetectionScheduler?.notify(9),G4(t,i,i[Kt],2,null,null)}function HU(t){let i=t[Zl];if(!i)return Ug(t[Ge],t);for(;i;){let e=null;if(Zr(i))e=i[Zl];else{let n=i[Nn];n&&(e=n)}if(!e){for(;i&&!i[Go]&&i!==t;)Zr(i)&&Ug(i[Ge],i),i=i[ci];i===null&&(i=t),Zr(i)&&Ug(i[Ge],i),e=i&&i[Go]}i=e}}function i5(t,i){let e=t[Pc],n=e.indexOf(i);e.splice(n,1)}function $4(t,i){if(Lc(i))return;let e=i[Kt];e.destroyNode&&G4(t,i,e,3,null,null),HU(i)}function Ug(t,i){if(Lc(i))return;let e=Je(null);try{i[it]&=-129,i[it]|=256,i[wo]&&ms(i[wo]),GU(t,i),$U(t,i),i[Ge].type===1&&i[Kt].destroy();let n=i[vs];if(n!==null&&br(i[ci])){n!==i[ci]&&i5(n,i);let o=i[Xr];o!==null&&o.detachView(t)}e8(i)}finally{Je(e)}}function AC(t,i,e,n){let o=t?.[Tc];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&Fc.add(t),Xx(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let c=0;c{t[Tc].running=void 0,Fc.delete(t),i(!0)});return}i(!1)}function $U(t,i){let e=t.cleanup,n=i[Xl];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[Xl]=null);let o=i[Pa];if(o!==null){i[Pa]=null;for(let a=0;ann&&Gx(t,i,nn,!1),rn(a?2:0,o,e),e(n,o)}finally{xs(r),rn(a?3:1,o,e)}}function W4(t,i,e){n$(t,i,e),(e.flags&64)===64&&i$(t,i,e)}function Ad(t,i,e=qo){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function t$(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function oM(t,i,e,n,o,r){let a=i[Ge];if(q4(t,a,i,e,n)){Na(t)&&aM(i,t.index);return}t.type&3&&(e=t$(e)),rM(t,i,e,n,o,r)}function rM(t,i,e,n,o,r){if(t.type&3){let a=qo(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function aM(t,i){let e=Yo(i,t);e[it]&16||(e[it]|=64)}function n$(t,i,e){let n=e.directiveStart,o=e.directiveEnd;Na(e)&&EU(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||x4(e,i);let r=e.initialInputs;for(let a=n;a{Cs(t.lView)},consumerOnSignalRead(){this.lView[wo]=this}});function h$(t){let i=t[wo]??Object.create(g$);return i.lView=t,i}var g$=Ne(q({},mc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=_s(t.lView);for(;i&&!uM(i[Ge]);)i=_s(i);i&&Mg(i)},consumerOnSignalRead(){this.lView[wo]=this}});function uM(t){return t.type!==2}function mM(t){if(t[Ra]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Ra])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[it]&8192)}}var _$=100;function pM(t,i=0){let n=t[Kr].rendererFactory,o=!1;o||n.begin?.();try{b$(t,i)}finally{o||n.end?.()}}function b$(t,i){let e=Ag();try{i1(!0),h8(t,i);let n=0;for(;pd(t);){if(n===_$)throw new pe(103,!1);n++,h8(t,1)}}finally{i1(e)}}function v$(t,i,e,n){if(Lc(i))return;let o=i[it],r=!1,a=!1;n4(i);let s=!0,c=null,m=null;r||(uM(t)?(m=u$(i),c=us(m)):a3()===null?(s=!1,m=h$(i),c=us(m)):i[wo]&&(ms(i[wo]),i[wo]=null));try{xg(i),iC(t.bindingStartIndex),e!==null&&iM(t,i,e,2,n);let f=(o&3)===3;if(!r)if(f){let M=t.preOrderCheckHooks;M!==null&&p4(i,M,null)}else{let M=t.preOrderHooks;M!==null&&f4(i,M,0,null),jg(i,0)}if(a||y$(i),mM(i),fM(i,0),t.contentQueries!==null&&kx(t,i),!r)if(f){let M=t.contentCheckHooks;M!==null&&p4(i,M)}else{let M=t.contentHooks;M!==null&&f4(i,M,1),jg(i,1)}x$(t,i);let v=t.components;v!==null&&gM(i,v,0);let x=t.viewQuery;if(x!==null&&n8(2,x,n),!r)if(f){let M=t.viewCheckHooks;M!==null&&p4(i,M)}else{let M=t.viewHooks;M!==null&&f4(i,M,2),jg(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Q3]){for(let M of i[Q3])M();i[Q3]=null}r||(lM(i),i[it]&=-73)}catch(f){throw r||Cs(i),f}finally{m!==null&&(pc(m,c),s&&p$(m)),i4()}}function fM(t,i){for(let e=vx(t);e!==null;e=yx(e))for(let n=Nn;n0&&(t[e-1][Go]=n[Go]);let r=cd(t,Nn+i);BU(n[Ge],n);let a=r[Xr];a!==null&&a.detachView(r[Ge]),n[ci]=null,n[Go]=null,n[it]&=-129}return n}function M$(t,i,e,n){let o=Nn+n,r=e.length;n>0&&(e[o-1][Go]=i),n-1&&(Dd(i,n),cd(e,n))}this._attachedToViewContainer=!1}$4(this._lView[Ge],this._lView)}onDestroy(i){wg(this._lView,i)}markForCheck(){d5(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[it]&=-129}reattach(){X3(this._lView),this._lView[it]|=128}detectChanges(){this._lView[it]|=1024,pM(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new pe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=e1(this._lView),e=this._lView[vs];e!==null&&!i&&i5(e,this._lView),Zx(this._lView[Ge],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new pe(902,!1);this._appRef=i;let e=e1(this._lView),n=this._lView[vs];n!==null&&!e&&yM(n,this._lView),X3(this._lView)}};var tt=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=w$;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=zd(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Ms(r)}}return t})();function w$(){return Y4(Kn(),ze())}function Y4(t,i){return t.type&4?new tt(i,t,h1(t,i)):null}function b1(t,i,e,n,o){let r=t.data[i];if(r===null)r=D$(t,i,e,n,o),oC()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=tC();r.injectorIndex=a===null?-1:a.injectorIndex}return n1(r,!0),r}function D$(t,i,e,n,o){let r=Tg(),a=Pg(),s=a?r:r&&r.parent,c=t.data[i]=k$(t,s,e,i,n,o);return S$(t,c,r,a),c}function S$(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function k$(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Eg()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var W6e=new RegExp(`^(\\d+)*(${zH}|${AH})*(.*)`);function E$(t){let i=t[_g]??[],n=t[ci][Kt],o=[];for(let r of i)r.data[Mx]!==void 0?o.push(r):I$(r,n);t[_g]=o}function I$(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xx];for(;enull,T$=()=>null;function D4(t,i){return O$(t,i)}function CM(t,i,e){return T$(t,i,e)}var xM=class{},Q4=class{},g8=class{resolveComponentFactory(i){throw new pe(917,!1)}},Nd=class{static NULL=new g8},On=class{},Ke=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>P$()}return t})();function P$(){let t=ze(),i=Kn(),e=Yo(i.index,t);return(Zr(e)?e:t)[Kt]}var MM=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var g4={},_8=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,g4,n);return o!==g4||e===g4?o:this.parentInjector.get(i,e,n)}};function S4(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let x=0;x0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function B$(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(Wo(K[t.index])):t.index;OM(O,i,e,r,s,M,!1)}}return m}function $$(t){return t.startsWith("animation")||t.startsWith("transition")}function G$(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rc?s[c]:null}typeof a=="string"&&(r+=2)}return null}function OM(t,i,e,n,o,r,a){let s=i.firstCreatePass?Sg(i):null,c=Dg(e),m=c.length;c.push(o,r),s&&s.push(n,t,m,(m+1)*(a?-1:1))}function BC(t,i,e,n,o,r){let a=i[e],s=i[Ge],m=s.data[e].outputs[n],v=a[m].subscribe(r);OM(t.index,s,i,o,r,v,!0)}var b8=Symbol("BINDING");var k4=class extends Nd{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=Qr(i);return new ws(e,this.ngModule)}};function W$(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&j4.SignalBased)!==0};return o&&(r.transform=o),r})}function q$(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function Y$(t,i,e){let n=i instanceof Qt?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new _8(e,n):e}function Q$(t){let i=t.get(On,null);if(i===null)throw new pe(407,!1);let e=t.get(MM,null),n=t.get(Uo,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1}}function K$(t,i){let e=TM(t);return zx(i,e,e==="svg"?vg:e==="math"?qy:null)}function TM(t){return(t.selectors[0][0]||"div").toLowerCase()}var ws=class extends Q4{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=W$(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=q$(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=wU(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){rn(22);let s=Je(null);try{let c=this.componentDef,m=X$(n,c,a,r),f=Y$(c,o||this.ngModule,i),v=Q$(f),x=v.rendererFactory.createRenderer(null,c),M=n?ZU(x,n,c.encapsulation,f):K$(c,x),O=a?.some(jC)||r?.some(Z=>typeof Z!="function"&&Z.bindings.some(jC)),K=K8(null,m,null,512|Ux(c),null,null,v,x,f,null,Sx(M,f,!0));K[nn]=M,n4(K);let Y=null;try{let Z=u5(nn,K,2,"#host",()=>m.directiveRegistry,!0,0);Fx(x,M,Z),d1(M,K),W4(m,K,Z),B8(m,Z,K),m5(m,Z),e!==void 0&&J$(Z,this.ngContentSelectors,e),Y=Yo(Z.index,K),K[Rn]=Y[Rn],l5(m,K,null)}catch(Z){throw Y!==null&&e8(Y),e8(K),Z}finally{rn(23),i4()}return new E4(this.componentType,K,!!O)}finally{Je(s)}}};function X$(t,i,e,n){let o=t?["ng-version","20.3.15"]:DU(i.selectors[0]),r=null,a=null,s=0;if(e)for(let f of e)s+=f[b8].requiredVars,f.create&&(f.targetIdx=0,(r??=[]).push(f)),f.update&&(f.targetIdx=0,(a??=[]).push(f));if(n)for(let f=0;f{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function jC(t){let i=t[b8].kind;return i==="input"||i==="twoWay"}var E4=class extends xM{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=md(e[Ge],nn),this.location=h1(this._tNode,e),this.instance=Yo(this._tNode.index,e)[Rn],this.hostView=this.changeDetectorRef=new Ms(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=q4(n,o[Ge],o,i,e);this.previousInputValues.set(i,e);let a=Yo(n.index,o);d5(a,1)}get injector(){return new Rc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function J$(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=eG}return t})();function eG(){let t=Kn();return LM(t,ze())}var tG=dt,PM=class extends tG{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return h1(this._hostTNode,this._hostLView)}get injector(){return new Rc(this._hostTNode,this._hostLView)}get parentInjector(){let i=R8(this._hostTNode,this._hostLView);if(sx(i)){let e=y4(i,this._hostLView),n=v4(i),o=e[Ge].data[n+8];return new Rc(o,e)}else return new Rc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=HC(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-Nn}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=D4(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,u1(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let c=i&&!lH(i),m;if(c)m=e;else{let Y=e||{};m=Y.index,n=Y.injector,o=Y.projectableNodes,r=Y.environmentInjector||Y.ngModuleRef,a=Y.directives,s=Y.bindings}let f=c?i:new ws(Qr(i)),v=n||this.parentInjector;if(!r&&f.ngModule==null){let Z=(c?v:this.parentInjector).get(Qt,null);Z&&(r=Z)}let x=Qr(f.componentType??{}),M=D4(this._lContainer,x?.id??null),O=M?.firstChild??null,K=f.create(v,o,O,r,a,s);return this.insertImpl(K.hostView,m,u1(this._hostTNode,M)),K}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(Qy(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let c=o[ci],m=new PM(c,c[Xi],c[ci]);m.detach(m.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Rd(a,o,r,n),i.attachToViewContainerRef(),sg($g(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=HC(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Dd(this._lContainer,e);n&&(cd($g(this._lContainer),e),$4(n[Ge],n))}detach(i){let e=this._adjustIndex(i,-1),n=Dd(this._lContainer,e);return n&&cd($g(this._lContainer),e)!=null?new Ms(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function HC(t){return t[ud]}function $g(t){return t[ud]||(t[ud]=[])}function LM(t,i){let e,n=i[t.index];return br(n)?e=n:(e=_M(n,i,null,t),i[t.index]=e,X8(i,e)),iG(e,i,t,n),new PM(e,t,i)}function nG(t,i){let e=t[Kt],n=e.createComment(""),o=qo(i,t),r=e.parentNode(o);return M4(e,r,n,e.nextSibling(o),!1),n}var iG=aG,oG=()=>!1;function rG(t,i,e){return oG(t,i,e)}function aG(t,i,e,n){if(t[ys])return;let o;e.type&8?o=Wo(n):o=nG(i,e),t[ys]=o}var v8=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},y8=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let m=r[s+1],f=i[-c];for(let v=Nn;vi.trim())}function FM(t,i,e){t.queries===null&&(t.queries=new C8),t.queries.track(new x8(i,e))}function mG(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function h5(t,i){return t.queries.getByIndex(i)}function VM(t,i){let e=t[Ge],n=h5(e,i);return n.crossesNgTemplate?M8(e,t,i,[]):AM(e,t,n,i)}function BM(t,i,e){let n,o=K2(()=>{n._dirtyCounter();let r=pG(n,t);if(i&&r===void 0)throw new pe(-951,!1);return r});return n=o[Yn],n._dirtyCounter=we(0),n._flatValue=void 0,o}function g5(t){return BM(!0,!1,t)}function _5(t){return BM(!0,!0,t)}function jM(t,i){let e=t[Yn];e._lView=ze(),e._queryIndex=i,e._queryList=f5(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function pG(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[it]&4)return i?void 0:zi;let o=f5(e,n),r=VM(e,n);return o.reset(r,gx),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function HM(t){let i=[],e=new Map;function n(o){let r=e.get(o);if(!r){let a=t(o);e.set(o,r=a.then(s=>hG(o,s)))}return r}return O4.forEach((o,r)=>{let a=[];o.templateUrl&&a.push(n(o.templateUrl).then(m=>{o.template=m}));let s=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=s,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let m=o.styles.length,f=o.styleUrls;o.styleUrls.forEach((v,x)=>{s.push(""),a.push(n(v).then(M=>{s[m+x]=M,f.splice(f.indexOf(v),1),f.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&a.push(n(o.styleUrl).then(m=>{s.push(m),o.styleUrl=void 0}));let c=Promise.all(a).then(()=>gG(r));i.push(c)}),UM(),Promise.all(i).then(()=>{})}var O4=new Map,fG=new Set;function UM(){let t=O4;return O4=new Map,t}function $M(){return O4.size===0}function hG(t,i){return typeof i=="string"?i:i.status!==void 0&&i.status!==200?Promise.reject(new pe(918,!1)):i.text()}function gG(t){fG.delete(t)}var ia=class{},X4=class{};var kd=class extends ia{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new k4(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=dg(i);this._bootstrapComponents=Bx(r.bootstrap),this._r3Injector=Ng(i,e,[{provide:ia,useValue:this},{provide:Nd,useValue:this.componentFactoryResolver},...n],La(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Ed=class extends X4{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new kd(this.moduleType,i,[])}};function GM(t,i,e){return new kd(t,i,e,!1)}var T4=class extends ia{injector;componentFactoryResolver=new k4(this);instance=null;constructor(i){super();let e=new Dc([...i.providers,{provide:ia,useValue:this},{provide:Nd,useValue:this.componentFactoryResolver}],i.parent||Kl(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function v1(t,i,e=null){return new T4({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var _G=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=ug(!1,e.type),o=n.length>0?v1([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(ke(Qt))})}return t})();function P(t){return f1(()=>{let i=WM(t),e=Ne(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===N8.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(_G).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Va.Emulated,styles:t.styles||zi,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&aa("NgStandalone"),qM(e);let n=t.dependencies;return e.directiveDefs=UC(n,bG),e.pipeDefs=UC(n,jy),e.id=CG(e),e})}function bG(t){return Qr(t)||Y3(t)}function J(t){return f1(()=>({type:t.type,bootstrap:t.bootstrap||zi,declarations:t.declarations||zi,imports:t.imports||zi,exports:t.exports||zi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function vG(t,i){if(t==null)return gr;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,c;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,c=o[3]||null):(r=o,a=o,s=j4.None,c=null),e[r]=[n,s,c],i[r]=a}return e}function yG(t){if(t==null)return gr;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function z(t){return f1(()=>{let i=WM(t);return qM(i),i})}function wt(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function WM(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||gr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||zi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:vG(t.inputs,i),outputs:yG(t.outputs),debugInfo:null}}function qM(t){t.features?.forEach(i=>i(t))}function UC(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function CG(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function xG(t){return Object.getPrototypeOf(t.prototype).constructor}function ce(t){let i=xG(t.type),e=!0,n=[t];for(;i;){let o;if(vr(t))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new pe(903,!1);o=i.\u0275dir}if(o){if(e){n.push(o);let a=t;a.inputs=Gg(t.inputs),a.declaredInputs=Gg(t.declaredInputs),a.outputs=Gg(t.outputs);let s=o.hostBindings;s&&kG(t,s);let c=o.viewQuery,m=o.contentQueries;if(c&&DG(t,c),m&&SG(t,m),MG(t,o),Py(t.outputs,o.outputs),vr(o)&&o.data.animation){let f=t.data;f.animation=(f.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let a=0;a=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=l1(o.hostAttrs,e=l1(e,o.hostAttrs))}}function Gg(t){return t===gr?{}:t===zi?[]:t}function DG(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function SG(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function kG(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function b5(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=EG,e.hostDirectives=n?t.map(w8):[t]):n?e.hostDirectives.unshift(...t.map(w8)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function EG(t){let i=[],e=!1,n=null,o=null;for(let r=0;r{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var J4=new L(""),y1=new L(""),Vd=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,fg()&&(this._destroyRef=d(Fi,{optional:!0})??void 0),v5||(KM(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,n,o){if(o&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(ke(se),ke(Bd),ke(y1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Bd=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return v5?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function KM(t){v5=t}var v5;function Ha(t){return!!t&&typeof t.then=="function"}function em(t){return!!t&&typeof t.subscribe=="function"}var y5=new L("");function tm(t){return bs([{provide:y5,multi:!0,useValue:t}])}var C5=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=d(y5,{optional:!0})??[];injector=d(be);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=bi(this.injector,o);if(Ha(r))e.push(r);else if(em(r)){let a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nm=new L("");function XM(){y6(()=>{let t="";throw new pe(600,t)})}function ZM(t){return t.isBoundToModule}var LG=10;function x5(t,i){return Array.isArray(i)?i.reduce(x5,t):q(q({},t),i)}var li=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=d(Zi);afterRenderManager=d(U4);zonelessEnabled=d(gd);rootEffectScheduler=d(_d);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new B;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=d(ta);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(me(e=>!e))}constructor(){d(Ss,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=d(Qt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=be.NULL){return this._injector.get(se).run(()=>{rn(10);let a=e instanceof Q4;if(!this._injector.get(C5).done){let O="";throw new pe(405,O)}let c;a?c=e:c=this._injector.get(Nd).resolveComponentFactory(e),this.componentTypes.push(c.componentType);let m=ZM(c)?void 0:this._injector.get(ia),f=n||c.selector,v=c.create(o,[],f,m),x=v.location.nativeElement,M=v.injector.get(J4,null);return M?.registerApplication(x),v.onDestroy(()=>{this.detachView(v.hostView),vd(this.components,v),M?.unregisterApplication(x)}),this._loadComponent(v),rn(11,v),v})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){rn(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(H4.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new pe(101,!1);let e=Je(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Je(e),this.afterTick.next(),rn(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(On,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++pd(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;vd(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get(nm,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>vd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new pe(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vd(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function C1(t,i){let e=ze(),n=Jr();if(Ji(e,n,i)){let o=on(),r=r1();if(q4(r,o,e,t,i))Na(r)&&aM(e,r.index);else{let s=qo(r,e);sM(e[Kt],s,null,r.value,t,i,null)}}return C1}function te(t,i,e,n){let o=ze(),r=Jr();if(Ji(o,r,i)){let a=on(),s=r1();r$(s,o,t,i,e,n)}return te}var J6e=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function M5(){return ze()[Ni][Rn]}var D8=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Wg(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function AG(t,i,e){let n,o,r=0,a=t.length-1,s=void 0;if(Array.isArray(i)){let c=i.length-1;for(;r<=a&&r<=c;){let m=t.at(r),f=i[r],v=Wg(r,m,r,f,e);if(v!==0){v<0&&t.updateValue(r,f),r++;continue}let x=t.at(a),M=i[c],O=Wg(a,x,c,M,e);if(O!==0){O<0&&t.updateValue(a,M),a--,c--;continue}let K=e(r,m),Y=e(a,x),Z=e(r,f);if(Object.is(Z,Y)){let Oe=e(c,M);Object.is(Oe,K)?(t.swap(r,a),t.updateValue(a,M),c--,a--):t.move(a,r),t.updateValue(r,f),r++;continue}if(n??=new P4,o??=qC(t,r,a,e),S8(t,n,r,Z))t.updateValue(r,f),r++,a++;else if(o.has(Z))n.set(K,t.detach(r)),a--;else{let Oe=t.create(r,i[r]);t.attach(r,Oe),r++,a++}}for(;r<=c;)WC(t,n,e,r,i[r]),r++}else if(i!=null){let c=i[Symbol.iterator](),m=c.next();for(;!m.done&&r<=a;){let f=t.at(r),v=m.value,x=Wg(r,f,r,v,e);if(x!==0)x<0&&t.updateValue(r,v),r++,m=c.next();else{n??=new P4,o??=qC(t,r,a,e);let M=e(r,v);if(S8(t,n,r,M))t.updateValue(r,v),r++,a++,m=c.next();else if(!o.has(M))t.attach(r,t.create(r,v)),r++,a++,m=c.next();else{let O=e(r,f);n.set(O,t.detach(r)),a--}}}for(;!m.done;)WC(t,n,e,t.length,m.value),m=c.next()}for(;r<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function S8(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function WC(t,i,e,n,o){if(S8(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function qC(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var P4=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function E(t,i,e,n,o,r,a,s){aa("NgControlFlow");let c=ze(),m=on(),f=Do(m.consts,r);return m1(c,m,t,i,e,n,o,f,256,a,s),w5}function w5(t,i,e,n,o,r,a,s){aa("NgControlFlow");let c=ze(),m=on(),f=Do(m.consts,r);return m1(c,m,t,i,e,n,o,f,512,a,s),w5}function I(t,i){aa("NgControlFlow");let e=ze(),n=Jr(),o=e[n]!==Xn?e[n]:-1,r=o!==-1?L4(e,nn+o):void 0,a=0;if(Ji(e,n,t)){let s=Je(null);try{if(r!==void 0&&vM(r,a),t!==-1){let c=nn+t,m=L4(e,c),f=O8(e[Ge],c),v=CM(m,f,e),x=zd(e,f,i,{dehydratedView:v});Rd(m,x,a,u1(f,v))}}finally{Je(s)}}else if(r!==void 0){let s=bM(r,a);s!==void 0&&(s[Rn]=i)}}var k8=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Nn}};function ht(t,i){return i}var E8=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function Xe(t,i,e,n,o,r,a,s,c,m,f,v,x){aa("NgControlFlow");let M=ze(),O=on(),K=c!==void 0,Y=ze(),Z=s?a.bind(Y[Ni][Rn]):a,Oe=new E8(K,Z);Y[nn+t]=Oe,m1(M,O,t+1,i,e,n,o,Do(O.consts,r),256),K&&m1(M,O,t+2,c,m,f,v,Do(O.consts,x),512)}var I8=class extends D8{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-Nn}at(i){return this.getLView(i)[Rn].$implicit}attach(i,e){let n=e[kc];this.needsIndexUpdate||=i!==this.length,Rd(this.lContainer,e,i,u1(this.templateTNode,n)),zG(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,RG(this.lContainer,i),NG(this.lContainer,i)}create(i,e){let n=D4(this.lContainer,this.templateTNode.tView.ssrId),o=zd(this.hostLView,this.templateTNode,new k8(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(i){$4(i[Ge],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[Rn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[za];FU(r,o),Fc.delete(n),o.detachedLeaveAnimationFns=void 0}}function RG(t,i){if(t.length<=Nn)return;let e=Nn+i,n=t[e],o=n?n[Tc]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function NG(t,i){return Dd(t,i)}function FG(t,i){return bM(t,i)}function O8(t,i){return md(t,i)}function D(t,i,e){let n=ze(),o=Jr();if(Ji(n,o,i)){let r=on(),a=r1();oM(a,n,t,i,n[Kt],e)}return D}function T8(t,i,e,n,o){q4(i,t,e,o?"class":"style",n)}function h(t,i,e,n){let o=ze(),r=o[Ge],a=t+nn,s=r.firstCreatePass?u5(a,o,2,i,a5,Z3(),e,n):r.data[a];if(s5(s,o,t,i,JM),Jl(s)){let c=o[Ge];W4(c,o,s),B8(c,s,o)}return n!=null&&Ad(o,s),h}function _(){let t=on(),i=Kn(),e=c5(i);return t.firstCreatePass&&m5(t,e),Ig(e)&&Og(),kg(),e.classesWithoutHost!=null&&hH(e)&&T8(t,e,ze(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&gH(e)&&T8(t,e,ze(),e.stylesWithoutHost,!1),_}function F(t,i,e,n){return h(t,i,e,n),_(),F}function nt(t,i,e,n){let o=ze(),r=o[Ge],a=t+nn,s=r.firstCreatePass?H$(a,r,2,i,e,n):r.data[a];return s5(s,o,t,i,JM),n!=null&&Ad(o,s),nt}function rt(){let t=Kn(),i=c5(t);return Ig(i)&&Og(),kg(),rt}function Tn(t,i,e,n){return nt(t,i,e,n),rt(),Tn}var JM=(t,i,e,n,o)=>(hd(!0),zx(i[Kt],n,mC()));function Vi(t,i,e){let n=ze(),o=n[Ge],r=t+nn,a=o.firstCreatePass?u5(r,n,8,"ng-container",a5,Z3(),i,e):o.data[r];if(s5(a,n,t,"ng-container",VG),Jl(a)){let s=n[Ge];W4(s,n,a),B8(s,a,n)}return e!=null&&Ad(n,a),Vi}function Bi(){let t=on(),i=Kn(),e=c5(i);return t.firstCreatePass&&m5(t,e),Bi}function Vt(t,i,e){return Vi(t,i,e),Bi(),Vt}var VG=(t,i,e,n,o)=>(hd(!0),cU(i[Kt],""));function le(){return ze()}function Lt(t,i,e){let n=ze(),o=Jr();if(Ji(n,o,i)){let r=on(),a=r1();rM(a,n,t,i,n[Kt],e)}return Lt}var d4=void 0;function BG(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var jG=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],d4,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],d4,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",d4,"{1} 'at' {0}",d4],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",BG],yd={};function D5(t,i,e){typeof i!="string"&&(e=i,i=t[bn.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),yd[i]=t,e&&(yd[i][bn.ExtraData]=e)}function eo(t){let i=HG(t),e=YC(i);if(e)return e;let n=i.split("-")[0];if(e=YC(n),e)return e;if(n==="en")return jG;throw new pe(701,!1)}function YC(t){return t in yd||(yd[t]=Qn.ng&&Qn.ng.common&&Qn.ng.common.locales&&Qn.ng.common.locales[t]),yd[t]}var bn=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(bn||{});function HG(t){return t.toLowerCase().replace(/_/g,"-")}var jd="en-US",UG="USD";var $G=jd;function ew(t){typeof t=="string"&&($G=t.toLowerCase().replace(/_/g,"-"))}function N(t,i,e){let n=ze(),o=on(),r=Kn();return tw(o,n,n[Kt],r,t,i,e),N}function im(t,i,e){let n=ze(),o=on(),r=Kn();return(r.type&3||e)&&IM(r,o,n,e,n[Kt],t,i,_4(r,n,i)),im}function tw(t,i,e,n,o,r,a){let s=!0,c=null;if((n.type&3||a)&&(c??=_4(n,i,r),IM(n,t,i,a,e,o,r,c)&&(s=!1)),s){let m=n.outputs?.[o],f=n.hostDirectiveOutputs?.[o];if(f&&f.length)for(let v=0;v>17&32767}function qG(t){return(t&2)==2}function YG(t,i){return t&131071|i<<17}function P8(t){return t|2}function p1(t){return(t&131068)>>2}function qg(t,i){return t&-131069|i<<2}function QG(t){return(t&1)===1}function L8(t){return t|1}function KG(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Vc(a),c=p1(a);t[n]=e;let m=!1,f;if(Array.isArray(e)){let v=e;f=v[1],(f===null||Ql(v,f)>0)&&(m=!0)}else f=e;if(o)if(c!==0){let x=Vc(t[s+1]);t[n+1]=u4(x,s),x!==0&&(t[x+1]=qg(t[x+1],n)),t[s+1]=YG(t[s+1],n)}else t[n+1]=u4(s,0),s!==0&&(t[s+1]=qg(t[s+1],n)),s=n;else t[n+1]=u4(c,0),s===0?s=n:t[c+1]=qg(t[c+1],n),c=n;m&&(t[n+1]=P8(t[n+1])),QC(t,f,n,!0),QC(t,f,n,!1),XG(i,f,t,n,r),a=u4(s,c),r?i.classBindings=a:i.styleBindings=a}function XG(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&Ql(r,i)>=0&&(e[n+1]=L8(e[n+1]))}function QC(t,i,e,n){let o=t[e+1],r=i===null,a=n?Vc(o):p1(o),s=!1;for(;a!==0&&(s===!1||r);){let c=t[a],m=t[a+1];ZG(c,i)&&(s=!0,t[a+1]=n?L8(m):P8(m)),a=n?Vc(m):p1(m)}s&&(t[e+1]=n?P8(o):L8(o))}function ZG(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?Ql(t,i)>=0:!1}var Cr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function JG(t){return t.substring(Cr.key,Cr.keyEnd)}function eW(t){return tW(t),nw(t,iw(t,0,Cr.textEnd))}function nw(t,i){let e=Cr.textEnd;return e===i?-1:(i=Cr.keyEnd=nW(t,Cr.key=i,e),iw(t,i,e))}function tW(t){Cr.key=0,Cr.keyEnd=0,Cr.value=0,Cr.valueEnd=0,Cr.textEnd=t.length}function iw(t,i,e){for(;i32;)i++;return i}function At(t,i,e){return ow(t,i,e,!1),At}function oe(t,i){return ow(t,i,null,!0),oe}function Tt(t){oW(dW,iW,t,!0)}function iW(t,i){for(let e=eW(i);e>=0;e=nw(i,e))W3(t,JG(i),!0)}function ow(t,i,e,n){let o=ze(),r=on(),a=o1(2);if(r.firstUpdatePass&&aw(r,t,a,n),i!==Xn&&Ji(o,a,i)){let s=r.data[Qo()];sw(r,s,o,o[Kt],t,o[a+1]=mW(i,e),n,a)}}function oW(t,i,e,n){let o=on(),r=o1(2);o.firstUpdatePass&&aw(o,null,r,n);let a=ze();if(e!==Xn&&Ji(a,r,e)){let s=o.data[Qo()];if(cw(s,n)&&!rw(o,r)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(e=H3(c,e||"")),T8(o,s,a,e,n)}else uW(o,s,a,a[Kt],a[r+1],a[r+1]=lW(t,i,e),n,r)}}function rw(t,i){return i>=t.expandoStartIndex}function aw(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[Qo()],a=rw(t,e);cw(r,n)&&i===null&&!a&&(i=!1),i=rW(o,r,i,n),KG(o,r,i,e,a,n)}}function rW(t,i,e,n){let o=sC(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yg(null,t,i,e,n),e=Id(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yg(o,t,i,e,n),r===null){let c=aW(t,i,n);c!==void 0&&Array.isArray(c)&&(c=Yg(null,t,i,c[1],n),c=Id(c,i.attrs,n),sW(t,i,n,c))}else r=cW(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function aW(t,i,e){let n=e?i.classBindings:i.styleBindings;if(p1(n)!==0)return t[Vc(n)]}function sW(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Vc(o)]=n}function cW(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let c=t[o],m=Array.isArray(c),f=m?c[1]:c,v=f===null,x=e[o+1];x===Xn&&(x=v?zi:void 0);let M=v?q3(x,n):f===n?x:void 0;if(m&&!A4(M)&&(M=q3(c,n)),A4(M)&&(s=M,a))return s;let O=t[o+1];o=a?Vc(O):p1(O)}if(i!==null){let c=r?i.residualClasses:i.residualStyles;c!=null&&(s=q3(c,n))}return s}function A4(t){return t!==void 0}function mW(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=La(So(t)))),t}function cw(t,i){return(t.flags&(i?8:16))!==0}function y(t,i=""){let e=ze(),n=on(),o=t+nn,r=n.firstCreatePass?b1(n,o,1,i,null):n.data[o],a=pW(n,e,r,i,t);e[o]=a,o4()&&o5(n,e,a,r),n1(r,!1)}var pW=(t,i,e,n,o)=>(hd(!0),aU(i[Kt],n));function lw(t,i,e,n=""){return Ji(t,Jr(),e)?i+Ri(e)+n:Xn}function dw(t,i,e,n,o,r=""){let a=J3(),s=Sd(t,a,e,o);return o1(2),s?i+Ri(e)+n+Ri(o)+r:Xn}function fW(t,i,e,n,o,r,a,s=""){let c=J3(),m=kM(t,c,e,o,a);return o1(3),m?i+Ri(e)+n+Ri(o)+r+Ri(a)+s:Xn}function hW(t,i,e,n,o,r,a,s,c,m=""){let f=J3(),v=EM(t,f,e,o,a,c);return o1(4),v?i+Ri(e)+n+Ri(o)+r+Ri(a)+s+Ri(c)+m:Xn}function T(t){return ne("",t),T}function ne(t,i,e){let n=ze(),o=lw(n,t,i,e);return o!==Xn&&rm(n,Qo(),o),ne}function Dt(t,i,e,n,o){let r=ze(),a=dw(r,t,i,e,n,o);return a!==Xn&&rm(r,Qo(),a),Dt}function Ua(t,i,e,n,o,r,a){let s=ze(),c=fW(s,t,i,e,n,o,r,a);return c!==Xn&&rm(s,Qo(),c),Ua}function uw(t,i,e,n,o,r,a,s,c){let m=ze(),f=hW(m,t,i,e,n,o,r,a,s,c);return f!==Xn&&rm(m,Qo(),f),uw}function rm(t,i,e){let n=yg(i,t);sU(t[Kt],n,e)}function M1(t,i,e){Fg(i)&&(i=i());let n=ze(),o=Jr();if(Ji(n,o,i)){let r=on(),a=r1();oM(a,n,t,i,n[Kt],e)}return M1}function Hd(t,i){let e=Fg(t);return e&&t.set(i),e}function w1(t,i){let e=ze(),n=on(),o=Kn();return tw(n,e,e[Kt],o,t,i),w1}function Ft(t){return Ji(ze(),Jr(),t)?Ri(t):Xn}function Uc(t,i,e=""){return lw(ze(),t,i,e)}function am(t,i,e,n,o=""){return dw(ze(),t,i,e,n,o)}function gW(t,i,e){let n=on();if(n.firstCreatePass){let o=vr(t);A8(e,n.data,n.blueprint,o,!0),A8(i,n.data,n.blueprint,o,!1)}}function A8(t,i,e,n,o){if(t=si(t),Array.isArray(t))for(let r=0;r>20;if(wc(t)||!t.multi){let M=new Nc(m,o,Ce,null),O=Kg(c,i,o?f:f+x,v);O===-1?(Zg(x4(s,a),r,c),Qg(r,t,i.length),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(M),a.push(M)):(e[O]=M,a[O]=M)}else{let M=Kg(c,i,f+x,v),O=Kg(c,i,f,f+x),K=M>=0&&e[M],Y=O>=0&&e[O];if(o&&!Y||!o&&!K){Zg(x4(s,a),r,c);let Z=vW(o?bW:_W,e.length,o,n,m,t);!o&&Y&&(e[O].providerFactory=Z),Qg(r,t,i.length,0),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(Z),a.push(Z)}else{let Z=mw(e[o?O:M],m,!o&&n);Qg(r,t,M>-1?M:O,Z)}!o&&n&&Y&&e[O].componentProviders++}}}function Qg(t,i,e,n){let o=wc(i),r=Gy(i);if(o||r){let c=(r?si(i.useClass):i).prototype.ngOnDestroy;if(c){let m=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let f=m.indexOf(e);f===-1?m.push(e,[n,c]):m[f+1].push(n,c)}else m.push(e,c)}}}function mw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kg(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>gW(n,o?o(t):t,i)}}function ko(t,i,e){let n=Fa()+t,o=ze();return o[n]===Xn?Fd(o,n,e?i.call(e):i()):U$(o,n)}function Eo(t,i,e,n){return pw(ze(),Fa(),t,i,e,n)}function D1(t,i,e,n,o){return fw(ze(),Fa(),t,i,e,n,o)}function k5(t,i,e,n,o,r){return hw(ze(),Fa(),t,i,e,n,o,r)}function sm(t,i){let e=t[i];return e===Xn?void 0:e}function pw(t,i,e,n,o,r){let a=i+e;return Ji(t,a,o)?Fd(t,a+1,r?n.call(r,o):n(o)):sm(t,a+1)}function fw(t,i,e,n,o,r,a){let s=i+e;return Sd(t,s,o,r)?Fd(t,s+2,a?n.call(a,o,r):n(o,r)):sm(t,s+2)}function hw(t,i,e,n,o,r,a,s){let c=i+e;return kM(t,c,o,r,a)?Fd(t,c+3,s?n.call(s,o,r,a):n(o,r,a)):sm(t,c+3)}function yW(t,i,e,n,o,r,a,s,c){let m=i+e;return EM(t,m,o,r,a,s)?Fd(t,m+4,c?n.call(c,o,r,a,s):n(o,r,a,s)):sm(t,m+4)}function S(t,i){let e=on(),n,o=t+nn;e.firstCreatePass?(n=CW(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=gs(n.type,!0)),a,s=Ki(Ce);try{let c=C4(!1),m=r();return C4(c),Cg(e,ze(),o,m),m}finally{Ki(s)}}function CW(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function k(t,i,e){let n=t+nn,o=ze(),r=t1(o,n);return lm(o,n)?pw(o,Fa(),i,r.transform,e,r):r.transform(e)}function Zo(t,i,e,n){let o=t+nn,r=ze(),a=t1(r,o);return lm(r,o)?fw(r,Fa(),i,a.transform,e,n,a):a.transform(e,n)}function xW(t,i,e,n,o){let r=t+nn,a=ze(),s=t1(a,r);return lm(a,r)?hw(a,Fa(),i,s.transform,e,n,o,s):s.transform(e,n,o)}function cm(t,i,e,n,o,r){let a=t+nn,s=ze(),c=t1(s,a);return lm(s,a)?yW(s,Fa(),i,c.transform,e,n,o,r,c):c.transform(e,n,o,r)}function lm(t,i){return t[Ge].data[i].pure}function ks(t,i){return Y4(t,i)}var m4=null;function gw(t){m4!==null&&(t.defaultEncapsulation!==m4.defaultEncapsulation||t.preserveWhitespaces!==m4.preserveWhitespaces)||(m4=t)}var z4=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},E5=(()=>{class t{compileModuleSync(e){return new Ed(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=dg(e),r=Bx(o.declarations).reduce((a,s)=>{let c=Qr(s);return c&&a.push(new ws(c)),a},[]);return new z4(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_w=new L("");var MW=(()=>{class t{zone=d(se);changeDetectionScheduler=d(Uo);applicationRef=d(li);applicationErrorHandler=d(Zi);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bw({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(Ne(q({},I5()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:Aa,multi:!0,useFactory:()=>{let n=d(MW,{optional:!0});return()=>n.initialize()}},{provide:Aa,multi:!0,useFactory:()=>{let n=d(wW);return()=>{n.initialize()}}},i===!0?{provide:Vg,useValue:!0}:[],{provide:Bg,useValue:e??Wx},{provide:Zi,useFactory:()=>{let n=d(se),o=d(Qt),r;return a=>{n.runOutsideAngular(()=>{o.destroyed&&!r?setTimeout(()=>{throw a}):(r??=o.get(_i),r.handleError(a))})}}}]}function I5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var wW=(()=>{class t{subscription=new Se;initialized=!1;zone=d(se);pendingTasks=d(ta);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vw=(()=>{class t{applicationErrorHandler=d(Zi);appRef=d(li);taskService=d(ta);ngZone=d(se);zonelessEnabled=d(gd);tracing=d(Ss,{optional:!0});disableScheduling=d(Vg,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Se;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(w4):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(d(Bg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof xd||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,n=!0;break}case 12:{this.appRef.dirtyFlags|=16,n=!0;break}case 13:{this.appRef.dirtyFlags|=2,n=!0;break}case 11:{n=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let o=this.useMicrotaskScheduler?OC:qx;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(w4+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.taskService.remove(e),this.applicationErrorHandler(n)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,OC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DW(){return typeof $localize<"u"&&$localize.locale||jd}var wr=new L("",{providedIn:"root",factory:()=>d(wr,{optional:!0,skipSelf:!0})||DW()}),O5=new L("",{providedIn:"root",factory:()=>UG});var dm=class{destroyed=!1;listeners=null;errorHandler=d(_i,{optional:!0});destroyRef=d(Fi);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(i){if(this.destroyed)throw new pe(953,!1);return(this.listeners??=[]).push(i),{unsubscribe:()=>{let e=this.listeners?.indexOf(i);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(i){if(this.destroyed){console.warn($o(953,!1));return}if(this.listeners===null)return;let e=Je(null);try{for(let n of this.listeners)try{n(i)}catch(o){this.errorHandler?.handleError(o)}}finally{Je(e)}}};function Vn(t){return ky(t)}function Zn(t,i){return K2(t,i?.equal)}var T5=class{[Yn];constructor(i){this[Yn]=i}destroy(){this[Yn].destroy()}};function sa(t,i){let e=i?.injector??d(be),n=i?.manualCleanup!==!0?e.get(Fi):null,o,r=e.get(Ac,null,{optional:!0}),a=e.get(Uo);return r!==null?(o=EW(r.view,a,t),n instanceof ad&&n._lView===r.view&&(n=null)):o=IW(t,e.get(_d),a),o.injector=e,n!==null&&(o.onDestroyFn=n.onDestroy(()=>o.destroy())),new T5(o)}var yw=Ne(q({},Ey),{cleanupFns:void 0,zone:null,onDestroyFn:zc,run(){let t=i1(!1);try{Iy(this)}finally{i1(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Je(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Je(t)}}}),SW=Ne(q({},yw),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){ms(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),kW=Ne(q({},yw),{consumerMarkedDirty(){this.view[it]|=8192,Cs(this.view),this.notifier.notify(13)},destroy(){ms(this),this.onDestroyFn(),this.cleanup(),this.view[Ra]?.delete(this)}});function EW(t,i,e){let n=Object.create(kW);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=Cw(n,e),t[Ra]??=new Set,t[Ra].add(n),n.consumerMarkedDirty(n),n}function IW(t,i,e){let n=Object.create(SW);return n.fn=Cw(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function Cw(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}var fm=Symbol("InputSignalNode#UNSET"),Lw=Ne(q({},X2),{transformFn:void 0,applyValueToInputSignal(t,i){hc(t,i)}});function Aw(t,i){let e=Object.create(Lw);e.value=t,e.transformFn=i?.transform;function n(){if(ds(e),e.value===fm){let o=null;throw new pe(-950,o)}return e.value}return n[Yn]=e,n}var dn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Od(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},zw=new L("");zw.__NG_ELEMENT_ID__=t=>{let i=Kn();if(i===null)throw new pe(204,!1);if(i.type&2)return i.value;if(t&8)return null;throw new pe(204,!1)};function xw(t,i){return Aw(t,i)}function FW(t){return Aw(fm,t)}var S1=(xw.required=FW,xw);function Mw(t,i){return g5(i)}function VW(t,i){return _5(i)}var $d=(Mw.required=VW,Mw);function ww(t,i){return g5(i)}function BW(t,i){return _5(i)}var Rw=(ww.required=BW,ww);function Nw(t,i){let e=Object.create(Lw),n=new dm;e.value=t;function o(){return ds(e),Dw(e.value),e.value}return o[Yn]=e,o.asReadonly=r4.bind(o),o.set=r=>{e.equal(e.value,r)||(hc(e,r),n.emit(r))},o.update=r=>{Dw(e.value),o.set(r(e.value))},o.subscribe=n.subscribe.bind(n),o.destroyRef=n.destroyRef,o}function Dw(t){if(t===fm)throw new pe(952,!1)}function Sw(t,i){return Nw(t,i)}function jW(t){return Nw(fm,t)}var to=(Sw.required=jW,Sw);function HW(t,i,e){let n=new Ed(e);return Promise.resolve(n)}function kw(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var um=new L(""),UW=new L("");function Ud(t){return!t.moduleRef}function $W(t){let i=Ud(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{Ud(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Zi),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Ud(t)){let r=()=>i.destroy(),a=t.platformInjector.get(um);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(um);a.add(r),t.moduleRef.onDestroy(()=>{vd(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return WW(n,e,()=>{let r=i.get(ta),a=r.add(),s=i.get(C5);return s.runInitializers(),s.donePromise.then(()=>{let c=i.get(wr,jd);if(ew(c||jd),!i.get(UW,!0))return Ud(t)?i.get(li):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Ud(t)){let f=i.get(li);return t.rootComponent!==void 0&&f.bootstrap(t.rootComponent),f}else return Fw?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void r.remove(a))})})}var Fw;function Ew(){Fw=GW}function GW(t,i){let e=t.injector.get(li);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new pe(-403,!1);i.push(t)}function WW(t,i,e){try{let n=e();return Ha(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var Vw=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=n?.scheduleInRootZone,r=()=>Qx(n?.ngZone,Ne(q({},I5({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=n?.ignoreChangesOutsideZone,s=[bw({ngZoneFactory:r,ignoreChangesOutsideZone:a}),{provide:Uo,useExisting:vw},fC],c=GM(e.moduleType,this.injector,s);return Ew(),$W({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=x5({},n);return Ew(),HW(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new pe(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(um,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(ke(be))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),j5=null;function qW(t){if(U5())throw new pe(400,!1);XM(),j5=t;let i=t.get(Vw);return KW(t),i}function H5(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=U5();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??qW(YW(s,n))}return QW(o)}}function YW(t=[],i){return be.create({name:i,providers:[{provide:ld,useValue:"platform"},{provide:um,useValue:new Set([()=>j5=null])},...t]})}function QW(t){let i=U5();if(!i)throw new pe(-401,!1);return i}function U5(){return j5?.get(Vw)??null}function KW(t){let i=t.get(R4,null);bi(t,()=>{i?.forEach(e=>e())})}var xe=(()=>{class t{static __NG_ELEMENT_ID__=XW}return t})();function XW(t){return ZW(Kn(),ze(),(t&16)===16)}function ZW(t,i,e){if(Na(t)&&!e){let n=Yo(t.index,i);return new Ms(n,n)}else if(t.type&175){let n=i[Ni];return new Ms(n,i)}return null}var L5=class{constructor(){}supports(i){return p5(i)}create(i){return new A5(i)}},JW=(t,i)=>i,A5=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||JW}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new z5(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new mm),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new mm),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},z5=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},R5=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},mm=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new R5,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Iw(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new V5(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},V5=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function Ow(){return new Io([new L5])}var Io=(()=>{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:Ow});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=d(t,{optional:!0,skipSelf:!0});return t.create(e,n||Ow())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new pe(901,!1)}}return t})();function Tw(){return new hm([new N5])}var hm=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:Tw});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=d(t,{optional:!0,skipSelf:!0});return t.create(e,n||Tw())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new pe(901,!1)}}return t})();var Bw=H5(null,"core",[]),jw=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(ke(li))};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function H(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ut(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var P5=Symbol("NOT_SET"),Hw=new Set,eq=Ne(q({},X2),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:P5,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ds(m),m.value),m.signal[Yn]=m,m.registerCleanupFn=f=>(m.cleanup??=new Set).add(f),this.nodes[s]=m,this.hooks[s]=f=>m.phaseFn(f)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??Hw)e()}finally{ms(i)}}};function Uw(t,i){let e=i?.injector??d(be),n=e.get(Uo),o=e.get(U4),r=e.get(Ss,null,{optional:!0});o.impl??=e.get(n5);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(Ac,null,{optional:!0}),c=new B5(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(c),c}function gm(t,i){let e=Qr(t),n=i.elementInjector||Kl();return new ws(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function $w(t){let i=Qr(t);if(!i)return null;let e=new ws(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var qw=null;function Oo(){return qw}function $5(t){qw??=t}var Gd=class{},Wd=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(Yw),providedIn:"platform"})}return t})(),G5=new L(""),Yw=(()=>{class t extends Wd{_location;_history;_doc=d(Me);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Oo().getBaseHref(this._doc)}onPopState(e){let n=Oo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Oo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function _m(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function Gw(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Dr(t){return t&&t[0]!=="?"?`?${t}`:t}var Sr=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(vm),providedIn:"root"})}return t})(),bm=new L(""),vm=(()=>{class t extends Sr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??d(Me).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return _m(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Dr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ke(Wd),ke(bm,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jo=(()=>{class t{_subject=new B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=iq(Gw(Ww(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Dr(n))}normalize(e){return t.stripTrailingSlash(nq(this._basePath,Ww(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Dr(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Dr(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=Dr;static joinWithSlash=_m;static stripTrailingSlash=Gw;static \u0275fac=function(n){return new(n||t)(ke(Sr))};static \u0275prov=R({token:t,factory:()=>tq(),providedIn:"root"})}return t})();function tq(){return new Jo(ke(Sr))}function nq(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function Ww(t){return t.replace(/\/index.html$/,"")}function iq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var t7=(()=>{class t extends Sr{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=_m(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ke(Wd),ke(bm,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),nD={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Im=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Im||{});var ji=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(ji||{}),Jt=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(Jt||{}),ho=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(ho||{}),Di={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function iD(t){return eo(t)[bn.LocaleId]}function oD(t,i,e){let n=eo(t),o=[n[bn.DayPeriodsFormat],n[bn.DayPeriodsStandalone]],r=er(o,i);return er(r,e)}function rD(t,i,e){let n=eo(t),o=[n[bn.DaysFormat],n[bn.DaysStandalone]],r=er(o,i);return er(r,e)}function aD(t,i,e){let n=eo(t),o=[n[bn.MonthsFormat],n[bn.MonthsStandalone]],r=er(o,i);return er(r,e)}function sD(t,i){let n=eo(t)[bn.Eras];return er(n,i)}function qd(t,i){let e=eo(t);return er(e[bn.DateFormat],i)}function Yd(t,i){let e=eo(t);return er(e[bn.TimeFormat],i)}function Qd(t,i){let n=eo(t)[bn.DateTimeFormat];return er(n,i)}function Er(t,i){let e=eo(t),n=e[bn.NumberSymbols][i];if(typeof n>"u"){if(i===Di.CurrencyDecimal)return e[bn.NumberSymbols][Di.Decimal];if(i===Di.CurrencyGroup)return e[bn.NumberSymbols][Di.Group]}return n}function n7(t,i){return eo(t)[bn.NumberFormats][i]}function oq(t){return eo(t)[bn.Currencies]}function cD(t){if(!t[bn.ExtraData])throw new pe(2303,!1)}function lD(t){let i=eo(t);return cD(i),(i[bn.ExtraData][2]||[]).map(n=>typeof n=="string"?W5(n):[W5(n[0]),W5(n[1])])}function dD(t,i,e){let n=eo(t);cD(n);let o=[n[bn.ExtraData][0],n[bn.ExtraData][1]],r=er(o,i)||[];return er(r,e)||[]}function er(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new pe(2304,!1)}function W5(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function uD(t,i,e="en"){let n=oq(e)[t]||nD[t]||[],o=n[1];return i==="narrow"&&typeof o=="string"?o:n[0]||t}var rq=2;function mD(t){let i,e=nD[t];return e&&(i=e[2]),typeof i=="number"?i:rq}var aq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ym={},sq=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function pD(t,i,e,n){let o=gq(t);i=$a(e,i)||i;let a=[],s;for(;i;)if(s=sq.exec(i),s){a=a.concat(s.slice(1));let f=a.pop();if(!f)break;i=f}else{a.push(i);break}let c=o.getTimezoneOffset();n&&(c=hD(n,c),o=hq(o,n));let m="";return a.forEach(f=>{let v=pq(f);m+=v?v(o,e,c):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),m}function Dm(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function $a(t,i){let e=iD(t);if(ym[e]??={},ym[e][i])return ym[e][i];let n="";switch(i){case"shortDate":n=qd(t,ho.Short);break;case"mediumDate":n=qd(t,ho.Medium);break;case"longDate":n=qd(t,ho.Long);break;case"fullDate":n=qd(t,ho.Full);break;case"shortTime":n=Yd(t,ho.Short);break;case"mediumTime":n=Yd(t,ho.Medium);break;case"longTime":n=Yd(t,ho.Long);break;case"fullTime":n=Yd(t,ho.Full);break;case"short":let o=$a(t,"shortTime"),r=$a(t,"shortDate");n=Cm(Qd(t,ho.Short),[o,r]);break;case"medium":let a=$a(t,"mediumTime"),s=$a(t,"mediumDate");n=Cm(Qd(t,ho.Medium),[a,s]);break;case"long":let c=$a(t,"longTime"),m=$a(t,"longDate");n=Cm(Qd(t,ho.Long),[c,m]);break;case"full":let f=$a(t,"fullTime"),v=$a(t,"fullDate");n=Cm(Qd(t,ho.Full),[f,v]);break}return n&&(ym[e][i]=n),n}function Cm(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function kr(t,i,e="-",n,o){let r="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,r=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return cq(s,i);let c=Er(a,Di.MinusSign);return kr(s,i,c,n,o)}}function lq(t,i){switch(t){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new pe(2301,!1)}}function un(t,i,e=ji.Format,n=!1){return function(o,r){return dq(o,r,t,i,e,n)}}function dq(t,i,e,n,o,r){switch(e){case 2:return aD(i,o,n)[t.getMonth()];case 1:return rD(i,o,n)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(r){let m=lD(i),f=dD(i,o,n),v=m.findIndex(x=>{if(Array.isArray(x)){let[M,O]=x,K=a>=M.hours&&s>=M.minutes,Y=a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+kr(a,2,r)+kr(Math.abs(o%60),2,r);case 1:return"GMT"+(o>=0?"+":"")+kr(a,1,r);case 2:return"GMT"+(o>=0?"+":"")+kr(a,2,r)+":"+kr(Math.abs(o%60),2,r);case 3:return n===0?"Z":(o>=0?"+":"")+kr(a,2,r)+":"+kr(Math.abs(o%60),2,r);default:throw new pe(2310,!1)}}}var uq=0,wm=4;function mq(t){let i=Dm(t,uq,1).getDay();return Dm(t,0,1+(i<=wm?wm:wm+7)-i)}function fD(t){let i=t.getDay(),e=i===0?-3:wm-i;return Dm(t.getFullYear(),t.getMonth(),t.getDate()+e)}function q5(t,i=!1){return function(e,n){let o;if(i){let r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+r)/7)}else{let r=fD(e),a=mq(r.getFullYear()),s=r.getTime()-a.getTime();o=1+Math.round(s/6048e5)}return kr(o,t,Er(n,Di.MinusSign))}}function Mm(t,i=!1){return function(e,n){let r=fD(e).getFullYear();return kr(r,t,Er(n,Di.MinusSign),i)}}var Y5={};function pq(t){if(Y5[t])return Y5[t];let i;switch(t){case"G":case"GG":case"GGG":i=un(3,Jt.Abbreviated);break;case"GGGG":i=un(3,Jt.Wide);break;case"GGGGG":i=un(3,Jt.Narrow);break;case"y":i=Jn(0,1,0,!1,!0);break;case"yy":i=Jn(0,2,0,!0,!0);break;case"yyy":i=Jn(0,3,0,!1,!0);break;case"yyyy":i=Jn(0,4,0,!1,!0);break;case"Y":i=Mm(1);break;case"YY":i=Mm(2,!0);break;case"YYY":i=Mm(3);break;case"YYYY":i=Mm(4);break;case"M":case"L":i=Jn(1,1,1);break;case"MM":case"LL":i=Jn(1,2,1);break;case"MMM":i=un(2,Jt.Abbreviated);break;case"MMMM":i=un(2,Jt.Wide);break;case"MMMMM":i=un(2,Jt.Narrow);break;case"LLL":i=un(2,Jt.Abbreviated,ji.Standalone);break;case"LLLL":i=un(2,Jt.Wide,ji.Standalone);break;case"LLLLL":i=un(2,Jt.Narrow,ji.Standalone);break;case"w":i=q5(1);break;case"ww":i=q5(2);break;case"W":i=q5(1,!0);break;case"d":i=Jn(2,1);break;case"dd":i=Jn(2,2);break;case"c":case"cc":i=Jn(7,1);break;case"ccc":i=un(1,Jt.Abbreviated,ji.Standalone);break;case"cccc":i=un(1,Jt.Wide,ji.Standalone);break;case"ccccc":i=un(1,Jt.Narrow,ji.Standalone);break;case"cccccc":i=un(1,Jt.Short,ji.Standalone);break;case"E":case"EE":case"EEE":i=un(1,Jt.Abbreviated);break;case"EEEE":i=un(1,Jt.Wide);break;case"EEEEE":i=un(1,Jt.Narrow);break;case"EEEEEE":i=un(1,Jt.Short);break;case"a":case"aa":case"aaa":i=un(0,Jt.Abbreviated);break;case"aaaa":i=un(0,Jt.Wide);break;case"aaaaa":i=un(0,Jt.Narrow);break;case"b":case"bb":case"bbb":i=un(0,Jt.Abbreviated,ji.Standalone,!0);break;case"bbbb":i=un(0,Jt.Wide,ji.Standalone,!0);break;case"bbbbb":i=un(0,Jt.Narrow,ji.Standalone,!0);break;case"B":case"BB":case"BBB":i=un(0,Jt.Abbreviated,ji.Format,!0);break;case"BBBB":i=un(0,Jt.Wide,ji.Format,!0);break;case"BBBBB":i=un(0,Jt.Narrow,ji.Format,!0);break;case"h":i=Jn(3,1,-12);break;case"hh":i=Jn(3,2,-12);break;case"H":i=Jn(3,1);break;case"HH":i=Jn(3,2);break;case"m":i=Jn(4,1);break;case"mm":i=Jn(4,2);break;case"s":i=Jn(5,1);break;case"ss":i=Jn(5,2);break;case"S":i=Jn(6,1);break;case"SS":i=Jn(6,2);break;case"SSS":i=Jn(6,3);break;case"Z":case"ZZ":case"ZZZ":i=xm(0);break;case"ZZZZZ":i=xm(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=xm(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=xm(2);break;default:return null}return Y5[t]=i,i}function hD(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function fq(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function hq(t,i,e){let o=t.getTimezoneOffset(),r=hD(i,o);return fq(t,-1*(r-o))}function gq(t){if(Qw(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,r=1,a=1]=t.split("-").map(s=>+s);return Dm(o,r-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(aq))return _q(n)}let i=new Date(t);if(!Qw(i))throw new pe(2311,!1);return i}function _q(t){let i=new Date(0),e=0,n=0,o=t[8]?i.setUTCFullYear:i.setFullYear,r=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,c=Number(t[6]||0),m=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(i,a,s,c,m),i}function Qw(t){return t instanceof Date&&!isNaN(t.valueOf())}var bq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Kw=22,Sm=".",Kd="0",vq=";",yq=",",Q5="#",Xw="\xA4";function gD(t,i,e,n,o,r,a=!1){let s="",c=!1;if(!isFinite(t))s=Er(e,Di.Infinity);else{let m=xq(t);a&&(m=Cq(m));let f=i.minInt,v=i.minFrac,x=i.maxFrac;if(r){let Oe=r.match(bq);if(Oe===null)throw new pe(2306,!1);let Mt=Oe[1],Et=Oe[3],Ht=Oe[5];Mt!=null&&(f=K5(Mt)),Et!=null&&(v=K5(Et)),Ht!=null?x=K5(Ht):Et!=null&&v>x&&(x=v)}Mq(m,v,x);let M=m.digits,O=m.integerLen,K=m.exponent,Y=[];for(c=M.every(Oe=>!Oe);O0?Y=M.splice(O,M.length):(Y=M,M=[0]);let Z=[];for(M.length>=i.lgSize&&Z.unshift(M.splice(-i.lgSize,M.length).join(""));M.length>i.gSize;)Z.unshift(M.splice(-i.gSize,M.length).join(""));M.length&&Z.unshift(M.join("")),s=Z.join(Er(e,n)),Y.length&&(s+=Er(e,o)+Y.join("")),K&&(s+=Er(e,Di.Exponential)+"+"+K)}return t<0&&!c?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function Om(t,i,e,n,o){let r=n7(i,Im.Currency),a=bD(r,Er(i,Di.MinusSign));return a.minFrac=mD(n),a.maxFrac=a.minFrac,gD(t,a,i,Di.CurrencyGroup,Di.CurrencyDecimal,o).replace(Xw,e).replace(Xw,"").trim()}function _D(t,i,e){let n=n7(i,Im.Decimal),o=bD(n,Er(i,Di.MinusSign));return gD(t,o,i,Di.Group,Di.Decimal,e)}function bD(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(vq),o=n[0],r=n[1],a=o.indexOf(Sm)!==-1?o.split(Sm):[o.substring(0,o.lastIndexOf(Kd)+1),o.substring(o.lastIndexOf(Kd)+1)],s=a[0],c=a[1]||"";e.posPre=s.substring(0,s.indexOf(Q5));for(let f=0;f-1&&(i=i.replace(Sm,"")),(r=i.search(/e/i))>0?(o<0&&(o=r),o+=+i.slice(r+1),i=i.substring(0,r)):o<0&&(o=i.length),r=0;i.charAt(r)===Kd;r++);if(r===(s=i.length))n=[0],o=1;else{for(s--;i.charAt(s)===Kd;)s--;for(o-=r,n=[],a=0;r<=s;r++,a++)n[a]=Number(i.charAt(r))}return o>Kw&&(n=n.splice(0,Kw-1),e=o-1,o=1),{digits:n,exponent:e,integerLen:o}}function Mq(t,i,e){if(i>e)throw new pe(2307,!1);let n=t.digits,o=n.length-t.integerLen,r=Math.min(Math.max(i,o),e),a=r+t.integerLen,s=n[a];if(a>0){n.splice(Math.max(t.integerLen,a));for(let v=a;v=5)if(a-1<0){for(let v=0;v>a;v--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;o=m?O.pop():c=!1),x>=10?1:0},0);f&&(n.unshift(f),t.integerLen++)}function K5(t){let i=parseInt(t);if(isNaN(i))throw new pe(2305,!1);return i}var X5=/\s+/,Zw=[],Un=(()=>{class t{_ngEl;_renderer;initialClasses=Zw;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(X5):Zw}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(X5):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(X5).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(Ce(Q),Ce(Ke))};static \u0275dir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var km=class{$implicit;ngForOf;index;count;constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},vD=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((o,r,a)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new km(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)n.remove(r===null?void 0:r);else if(r!==null){let s=n.get(r);n.move(s,a),Jw(s,o)}});for(let o=0,r=n.length;o{let r=n.get(o.currentIndex);Jw(r,o)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(Ce(dt),Ce(tt),Ce(Io))};static \u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function Jw(t,i){t.context.$implicit=i.item}var wq=(()=>{class t{_viewContainer;_context=new Em;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){eD(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){eD(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(Ce(dt),Ce(tt))};static \u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Em=class{$implicit=null;ngIf=null};function eD(t,i){if(t&&!t.createEmbeddedView)throw new pe(2020,!1)}var Z5=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,e){this._viewContainerRef=i,this._templateRef=e}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},yD=(()=>{class t{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){let n=e===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(let n of this._defaultViews)n.enforceState(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),Dq=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new Z5(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(Ce(dt),Ce(tt),Ce(yD,9))};static \u0275dir=z({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})();var i7=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:xr.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(Ce(Q),Ce(hm),Ce(Ke))};static \u0275dir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Es=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(Ce(dt))};static \u0275dir=z({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Re]})}return t})();function k1(t,i){return new pe(2100,!1)}var J5=class{createSubscription(i,e,n){return Vn(()=>i.subscribe({next:e,error:n}))}dispose(i){Vn(()=>i.unsubscribe())}},e7=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},Sq=new e7,kq=new J5,Xd=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=d(Zi);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Ha(e))return Sq;if(em(e))return kq;throw k1(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(Ce(xe,16))};static \u0275pipe=wt({name:"async",type:t,pure:!1})}return t})(),Eq=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw k1(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=wt({name:"lowercase",type:t,pure:!0})}return t})(),Iq=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Oq=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw k1(t,e);return e.replace(Iq,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=wt({name:"titlecase",type:t,pure:!0})}return t})();var Tq="mediumDate",CD=new L(""),xD=new L(""),E1=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,r){if(e==null||e===""||e!==e)return null;try{let a=n??this.defaultOptions?.dateFormat??Tq,s=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return pD(e,a,r||this.locale,s)}catch(a){throw k1(t,a.message)}}static \u0275fac=function(n){return new(n||t)(Ce(wr,16),Ce(CD,24),Ce(xD,24))};static \u0275pipe=wt({name:"date",type:t,pure:!0})}return t})();var Pq=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=wt({name:"json",type:t,pure:!1})}return t})();function Lq(t,i){return{key:t,value:i}}var Aq=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=tD;transform(e,n=tD){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(Lq(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(Ce(hm,16))};static \u0275pipe=wt({name:"keyvalue",type:t,pure:!1})}return t})();function tD(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{_locale;constructor(e){this._locale=e}transform(e,n,o){if(!MD(e))return null;o||=this._locale;try{let r=wD(e);return _D(r,o,n)}catch(r){throw k1(t,r.message)}}static \u0275fac=function(n){return new(n||t)(Ce(wr,16))};static \u0275pipe=wt({name:"number",type:t,pure:!0})}return t})();var o7=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,o="symbol",r,a){if(!MD(e))return null;a||=this._locale,typeof o=="boolean"&&(o=o?"symbol":"code");let s=n||this._defaultCurrencyCode;o!=="code"&&(o==="symbol"||o==="symbol-narrow"?s=uD(s,o==="symbol"?"wide":"narrow",a):s=o);try{let c=wD(e);return Om(c,a,s,n,r)}catch(c){throw k1(t,c.message)}}static \u0275fac=function(n){return new(n||t)(Ce(wr,16),Ce(O5,16))};static \u0275pipe=wt({name:"currency",type:t,pure:!0})}return t})();function MD(t){return!(t==null||t===""||t!==t)}function wD(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new pe(2309,!1);return t}var he=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function Jd(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var $c=class{};function gbe(t,i,e){return D5(t,i,e)}var a7="browser";function DD(t){return t===a7}var SD=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new r7(d(Me),window)})}return t})(),r7=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ne(q({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=zq(this.document,i);n&&(this.scrollToElement(n,e),n.focus())}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch{console.warn($o(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ne(q({},e),{left:o-a[0],top:r-a[1]}))}};function zq(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var e0=class{_doc;constructor(i){this._doc=i}manager},Tm=(()=>{class t extends e0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Lm=new L(""),u7=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof Tm));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof Tm);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new pe(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(ke(Lm),ke(se))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),s7="ng-app-id";function kD(t){for(let i of t)i.remove()}function ED(t,i){let e=i.createElement("style");return e.textContent=t,e}function Rq(t,i,e,n){let o=t.head?.querySelectorAll(`style[${s7}="${i}"],link[${s7}="${i}"]`);if(o)for(let r of o)r.removeAttribute(s7),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function l7(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var m7=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,Rq(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,ED);n?.forEach(o=>this.addUsage(o,this.external,l7))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(kD(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])kD(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,ED(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,l7(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(ke(Me),ke(Ds),ke(g1,8),ke(Bc))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),c7={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},p7=/%COMP%/g;var OD="%COMP%",Nq=`_nghost-${OD}`,Fq=`_ngcontent-${OD}`,Vq=!0,Bq=new L("",{providedIn:"root",factory:()=>Vq});function jq(t){return Fq.replace(p7,t)}function Hq(t){return Nq.replace(p7,t)}function TD(t,i){return i.map(e=>e.replace(p7,t))}var f7=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,o,r,a,s,c=null,m=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=c,this.tracingService=m,this.platformIsServer=!1,this.defaultRenderer=new t0(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof Pm?o.applyToHost(e):o instanceof n0&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,c=this.eventManager,m=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,v=this.platformIsServer,x=this.tracingService;switch(n.encapsulation){case Va.Emulated:r=new Pm(c,m,n,this.appId,f,a,s,v,x);break;case Va.ShadowDom:return new d7(c,m,e,n,a,s,this.nonce,v,x);default:r=new n0(c,m,n,f,a,s,v,x);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(ke(u7),ke(m7),ke(Ds),ke(Bq),ke(Me),ke(se),ke(g1),ke(Ss,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),t0=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.tracingService=r}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(c7[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(ID(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(ID(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new pe(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=c7[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=c7[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(xr.DashCase|xr.Important)?i.style.setProperty(e,n,o&xr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&xr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=Oo().getGlobalEventTarget(this.doc,i),!i))throw new pe(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function ID(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var d7=class extends t0{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,c,m),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=o.styles;f=TD(o.id,f);for(let x of f){let M=document.createElement("style");s&&M.setAttribute("nonce",s),M.textContent=x,this.shadowRoot.appendChild(M)}let v=o.getExternalStyles?.();if(v)for(let x of v){let M=l7(x,r);s&&M.setAttribute("nonce",s),this.shadowRoot.appendChild(M)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},n0=class extends t0{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,s,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let f=n.styles;this.styles=m?TD(m,f):f,this.styleUrls=n.getExternalStyles?.(m)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Fc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Pm=class extends n0{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,c,m){let f=o+"-"+n.id;super(i,e,n,r,a,s,c,m,f),this.contentAttr=jq(f),this.hostAttr=Hq(f)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var Am=class t extends Gd{supportsDOMEvents=!0;static makeCurrent(){$5(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Uq();return e==null?null:$q(e)}resetBaseElement(){i0=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Jd(document.cookie,i)}},i0=null;function Uq(){return i0=i0||document.head.querySelector("base"),i0?i0.getAttribute("href"):null}function $q(t){return new URL(t,document.baseURI).pathname}var zm=class{addToWindow(i){Qn.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new pe(5103,!1);return r},Qn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Qn.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Qn.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Qn.frameworkStabilizers||(Qn.frameworkStabilizers=[]),Qn.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?Oo().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},Gq=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),PD=["alt","control","meta","shift"],Wq={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qq={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},LD=(()=>{class t extends e0{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Oo().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),PD.forEach(m=>{let f=n.indexOf(m);f>-1&&(n.splice(f,1),a+=m+".")}),a+=r,n.length!=0||r.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let o=Wq[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),PD.forEach(a=>{if(a!==o){let s=qq[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Yq(){Am.makeCurrent()}function Qq(){return new _i}function Kq(){return F8(document),document}var Xq=[{provide:Bc,useValue:a7},{provide:R4,useValue:Yq,multi:!0},{provide:Me,useFactory:Kq}],Zq=H5(Bw,"browser",Xq);var Jq=[{provide:y1,useClass:zm},{provide:J4,useClass:Vd,deps:[se,Bd,y1]},{provide:Vd,useClass:Vd,deps:[se,Bd,y1]}],eY=[{provide:ld,useValue:"root"},{provide:_i,useFactory:Qq},{provide:Lm,useClass:Tm,multi:!0,deps:[Me]},{provide:Lm,useClass:LD,multi:!0,deps:[Me]},f7,m7,u7,{provide:On,useExisting:f7},{provide:$c,useClass:Gq},[]],tY=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[...eY,...Jq],imports:[he,jw]})}return t})();var T1=class{},o0=class{},To=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` -`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Nm=class{encodeKey(i){return AD(i)}encodeValue(i){return AD(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function nY(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}var iY=/%(\d[a-f0-9])/gi,oY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function AD(t){return encodeURIComponent(t).replace(iY,(i,e)=>oY[e]??i)}function Rm(t){return`${t}`}var ee=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Nm,i.fromString){if(i.fromObject)throw new pe(2805,!1);this.map=nY(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(Rm):[Rm(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Rm(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(Rm(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Fm=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function rY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function RD(t){return typeof Blob<"u"&&t instanceof Blob}function ND(t){return typeof FormData<"u"&&t instanceof FormData}function aY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var FD="Content-Type",VD="Accept",jD="X-Request-URL",HD="text/plain",UD="application/json",sY=`${UD}, ${HD}, */*`,I1=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(rY(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new pe(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer&&(this.referrer=r.referrer),this.transferCache=r.transferCache}if(this.headers??=new To,this.context??=new Fm,!this.params)this.params=new ee,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),c=s===-1?"?":sHt.set(fn,i.setHeaders[fn]),Oe)),i.setParams&&(Mt=Object.keys(i.setParams).reduce((Ht,fn)=>Ht.set(fn,i.setParams[fn]),Mt)),new t(e,n,K,{params:Mt,headers:Oe,context:Et,reportProgress:Z,responseType:o,withCredentials:Y,transferCache:M,keepalive:r,cache:s,priority:a,timeout:O,mode:c,redirect:m,credentials:f,referrer:v,integrity:x})}},Gc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Gc||{}),P1=class{headers;status;statusText;url;ok;type;redirected;constructor(i,e=200,n="OK"){this.headers=i.headers||new To,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.ok=this.status>=200&&this.status<300}},Vm=class t extends P1{constructor(i={}){super(i)}type=Gc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},r0=class t extends P1{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Gc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected})}},O1=class extends P1{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},cY=200,lY=204;function h7(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var Bn=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof I1)r=e;else{let c;o.headers instanceof To?c=o.headers:c=new To(o.headers);let m;o.params&&(o.params instanceof ee?m=o.params:m=new ee({fromObject:o.params})),r=new I1(e,n,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:m,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let a=re(r).pipe(Qi(c=>this.handler.handle(c)));if(e instanceof I1||o.observe==="events")return a;let s=a.pipe(Ae(c=>c instanceof r0));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(me(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new pe(2806,!1);return c.body}));case"blob":return s.pipe(me(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new pe(2807,!1);return c.body}));case"text":return s.pipe(me(c=>{if(c.body!==null&&typeof c.body!="string")throw new pe(2808,!1);return c.body}));case"json":default:return s.pipe(me(c=>c.body))}case"response":return s;default:throw new pe(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new ee().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,h7(o,n))}post(e,n,o={}){return this.request("POST",e,h7(o,n))}put(e,n,o={}){return this.request("PUT",e,h7(o,n))}static \u0275fac=function(n){return new(n||t)(ke(T1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var dY=new L("");function $D(t,i){return i(t)}function uY(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function mY(t,i,e){return(n,o)=>bi(e,()=>i(n,r=>t(r,o)))}var GD=new L(""),_7=new L(""),WD=new L(""),b7=new L("",{providedIn:"root",factory:()=>!0});function pY(){let t=null;return(i,e)=>{t===null&&(t=(d(GD,{optional:!0})??[]).reduceRight(uY,$D));let n=d(a1);if(d(b7)){let r=n.add();return t(i,e).pipe(qr(r))}else return t(i,e)}}var Bm=(()=>{class t extends T1{backend;injector;chain=null;pendingTasks=d(a1);contributeToStability=d(b7);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(_7),...this.injector.get(WD,[])]));this.chain=n.reduceRight((o,r)=>mY(o,r,this.injector),$D)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(qr(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ke(o0),ke(Qt))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var fY=/^\)\]\}',?\n/,hY=RegExp(`^${jD}:`,"m");function gY(t){return"responseURL"in t&&t.responseURL?t.responseURL:hY.test(t.getAllResponseHeaders())?t.getResponseHeader(jD):null}var g7=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new pe(-2800,!1);let n=this.xhrFactory;return re(null).pipe(lt(()=>new Fe(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((Y,Z)=>a.setRequestHeader(Y,Z.join(","))),e.headers.has(VD)||a.setRequestHeader(VD,sY),!e.headers.has(FD)){let Y=e.detectContentTypeHeader();Y!==null&&a.setRequestHeader(FD,Y)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let Y=e.responseType.toLowerCase();a.responseType=Y!=="json"?Y:"text"}let s=e.serializeBody(),c=null,m=()=>{if(c!==null)return c;let Y=a.statusText||"OK",Z=new To(a.getAllResponseHeaders()),Oe=gY(a)||e.url;return c=new Vm({headers:Z,status:a.status,statusText:Y,url:Oe}),c},f=()=>{let{headers:Y,status:Z,statusText:Oe,url:Mt}=m(),Et=null;Z!==lY&&(Et=typeof a.response>"u"?a.responseText:a.response),Z===0&&(Z=Et?cY:0);let Ht=Z>=200&&Z<300;if(e.responseType==="json"&&typeof Et=="string"){let fn=Et;Et=Et.replace(fY,"");try{Et=Et!==""?JSON.parse(Et):null}catch(Bo){Et=fn,Ht&&(Ht=!1,Et={error:Bo,text:Et})}}Ht?(r.next(new r0({body:Et,headers:Y,status:Z,statusText:Oe,url:Mt||void 0})),r.complete()):r.error(new O1({error:Et,headers:Y,status:Z,statusText:Oe,url:Mt||void 0}))},v=Y=>{let{url:Z}=m(),Oe=new O1({error:Y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:Z||void 0});r.error(Oe)},x=v;e.timeout&&(x=Y=>{let{url:Z}=m(),Oe=new O1({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:Z||void 0});r.error(Oe)});let M=!1,O=Y=>{M||(r.next(m()),M=!0);let Z={type:Gc.DownloadProgress,loaded:Y.loaded};Y.lengthComputable&&(Z.total=Y.total),e.responseType==="text"&&a.responseText&&(Z.partialText=a.responseText),r.next(Z)},K=Y=>{let Z={type:Gc.UploadProgress,loaded:Y.loaded};Y.lengthComputable&&(Z.total=Y.total),r.next(Z)};return a.addEventListener("load",f),a.addEventListener("error",v),a.addEventListener("timeout",x),a.addEventListener("abort",v),e.reportProgress&&(a.addEventListener("progress",O),s!==null&&a.upload&&a.upload.addEventListener("progress",K)),a.send(s),r.next({type:Gc.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",f),a.removeEventListener("timeout",x),e.reportProgress&&(a.removeEventListener("progress",O),s!==null&&a.upload&&a.upload.removeEventListener("progress",K)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(ke($c))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),qD=new L(""),_Y="XSRF-TOKEN",bY=new L("",{providedIn:"root",factory:()=>_Y}),vY="X-XSRF-TOKEN",yY=new L("",{providedIn:"root",factory:()=>vY}),a0=class{},CY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Jd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ke(Me),ke(bY))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),xY=/^(?:https?:)?\/\//i;function MY(t,i){if(!d(qD)||t.method==="GET"||t.method==="HEAD"||xY.test(t.url))return i(t);let e=d(a0).getToken(),n=d(yY);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var v7=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(v7||{});function wY(t,i){return{\u0275kind:t,\u0275providers:i}}function DY(...t){let i=[Bn,g7,Bm,{provide:T1,useExisting:Bm},{provide:o0,useFactory:()=>d(dY,{optional:!0})??d(g7)},{provide:_7,useValue:MY,multi:!0},{provide:qD,useValue:!0},{provide:a0,useClass:CY}];for(let e of t)i.push(...e.\u0275providers);return bs(i)}var BD=new L("");function SY(){return wY(v7.LegacyInterceptors,[{provide:BD,useFactory:pY},{provide:_7,useExisting:BD,multi:!0}])}var YD=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ga=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=ke(EY),o},providedIn:"root"})}return t})(),EY=(()=>{class t extends Ga{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Fn.NONE:return n;case Fn.HTML:return ra(n,"HTML")?So(n):B4(this._doc,String(n)).toString();case Fn.STYLE:return ra(n,"Style")?So(n):n;case Fn.SCRIPT:if(ra(n,"Script"))return So(n);throw new pe(5200,!1);case Fn.URL:return ra(n,"URL")?So(n):Pd(String(n));case Fn.RESOURCE_URL:if(ra(n,"ResourceURL"))return So(n);throw new pe(5201,!1);default:throw new pe(5202,!1)}}bypassSecurityTrustHtml(e){return j8(e)}bypassSecurityTrustStyle(e){return H8(e)}bypassSecurityTrustScript(e){return U8(e)}bypassSecurityTrustUrl(e){return $8(e)}bypassSecurityTrustResourceUrl(e){return G8(e)}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var L1=class{},KD=(()=>{class t extends L1{getTranslation(e){return re({})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),c0=class{},XD=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Hm(t,i){if(t===i)return!0;if(t===null||i===null)return!1;if(t!==t&&i!==i)return!0;let e=typeof t,n=typeof i,o,r,a;if(e==n&&e=="object")if(Array.isArray(t)){if(!Array.isArray(i))return!1;if((o=t.length)==i.length){for(r=0;r{d0(i[n])?n in t?e[n]=y7(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):y7({},i)}function C7(t,i){let e=i.split(".");i="";do i+=e.shift(),Is(t)&&Is(t[i])&&(d0(t[i])||S7(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function OY(t,i,e){let n=i.split("."),o=t;for(let r=0;r{class t extends A1{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(k7(e))return this.interpolateString(e,n);if(IY(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(o,r)=>{let a=C7(n,r);return Is(a)?a:o}):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),z1=class{},JD=(()=>{class t extends z1{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),l0=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},x7=new L("ISOLATE_TRANSLATE_SERVICE"),M7=new L("USE_DEFAULT_LANG"),w7=new L("DEFAULT_LANGUAGE"),D7=new L("USE_EXTEND"),s0=t=>ai(t)?t:re(t),Po=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,o,r,a,s=!0,c=!1,m=!1,f){this.store=e,this.currentLoader=n,this.compiler=o,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=s,this.extend=m,c&&(this.store=new l0),f&&this.setDefaultLang(f)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Be(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return re(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return ai(n)?(n.pipe(Be(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),re(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(hs(1),Be(1));return this.loadingTranslations=n.pipe(me(o=>this.compiler.compileTranslations(o,e)),hs(1),Be(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},o),this.translations[e]):o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),n}setTranslation(e,n,o=!1){let r=this.compiler.compileTranslations(n,e);(o||this.extend)&&this.translations[e]?this.translations[e]=y7(this.translations[e],r):this.translations[e]=r,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(o=>!this.langs.includes(o));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,o){let r;if(e&&(r=this.runInterpolation(C7(e,n),o)),r===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.runInterpolation(C7(this.translations[this.defaultLang],n),o)),r===void 0){let a={key:n,translateService:this};typeof o<"u"&&(a.interpolateParams=o),r=this.missingTranslationHandler.handle(a)}return r!==void 0?r:n}runInterpolation(e,n){if(S7(e))return e.map(o=>this.runInterpolation(o,n));if(d0(e)){let o={};for(let r in e){let a=this.runInterpolation(e[r],n);a!==void 0&&(o[r]=a)}return o}else return this.parser.interpolate(e,n)}getParsedResult(e,n,o){if(n instanceof Array){let r={},a=!1;for(let c of n)r[c]=this.getParsedResultForKey(e,c,o),a=a||ai(r[c]);if(!a)return r;let s=n.map(c=>s0(r[c]));return Oa(s).pipe(me(c=>{let m={};return c.forEach((f,v)=>{m[n[v]]=f}),m}))}return this.getParsedResultForKey(e,n,o)}get(e,n){if(!Is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Qi(o=>s0(this.getParsedResult(o,e,n)))):s0(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Li(Ai(()=>this.get(e,n)),this.onTranslationChange.pipe(lt(o=>{let r=this.getParsedResult(o.translations,e,n);return s0(r)})))}stream(e,n){if(!Is(e)||!e.length)throw new Error('Parameter "key" required');return Li(Ai(()=>this.get(e,n)),this.onLangChange.pipe(lt(o=>{let r=this.getParsedResult(o.translations,e,n);return s0(r)})))}instant(e,n){if(!Is(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let o=this.getParsedResult(this.translations[this.currentLang],e,n);return ai(o)?Array.isArray(e)?e.reduce((r,a)=>(r[a]=a,r),{}):e:o}set(e,n,o=this.currentLang){OY(this.translations[o],e,k7(n)?this.compiler.compile(n,o):this.compiler.compileTranslations(n,o)),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ke(l0),ke(L1),ke(z1),ke(A1),ke(c0),ke(M7),ke(x7),ke(D7),ke(w7))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Te=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,o){let r=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(o){let a=this.translate.getParsedResult(o,e,n);ai(a)?a.subscribe(r):r(a)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return e;if(Hm(e,this.lastKey)&&Hm(n,this.lastParams))return this.value;let o;if(Is(n[0])&&n.length)if(k7(n[0])&&n[0].length){let r=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{o=JSON.parse(r)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else d0(n[0])&&(o=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||t)(Ce(Po,16),Ce(xe,16))};static \u0275pipe=wt({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var E7=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:L1,useClass:KD},e.compiler||{provide:z1,useClass:JD},e.parser||{provide:A1,useClass:ZD},e.missingTranslationHandler||{provide:c0,useClass:XD},l0,{provide:x7,useValue:e.isolate},{provide:M7,useValue:e.useDefaultLang},{provide:D7,useValue:e.extend},{provide:w7,useValue:e.defaultLanguage},Po]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:L1,useClass:KD},e.compiler||{provide:z1,useClass:JD},e.parser||{provide:A1,useClass:ZD},e.missingTranslationHandler||{provide:c0,useClass:XD},{provide:x7,useValue:e.isolate},{provide:M7,useValue:e.useDefaultLang},{provide:D7,useValue:e.extend},{provide:w7,useValue:e.defaultLanguage},Po]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var I7={mifos_x:{version:"251213",hash:"4c00e58"},allow_switching_backend_instance:!0};var an=window.env||{},mt={production:!0,version:I7.mifos_x.version,hash:I7.mifos_x.hash,fineractPlatformTenantId:an.fineractPlatformTenantId||"default",fineractPlatformTenantIds:an.fineractPlatformTenantIds||"default",baseApiUrls:an.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:an.fineractApiUrl||(an.fineractApiUrls?.length>0?an.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:an.oauthServerUrl||an.fineractApiUrl+an.apiProvider,allowServerSwitch:an.allowServerSwitch||"true",apiProvider:an.apiProvider||"/fineract-provider/api",apiVersion:an.apiVersion||"/v1",apiActuator:an.apiActuator||"/fineract-provider",serverUrl:"",oauth:{enabled:an.oauthServerEnabled||!1,serverUrl:an.oauthServerUrl||"",appId:an.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:an.defaultLanguage||"en-US",supportedLanguages:an.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:an.preloadClients||!0,defaultCharDelimiter:an.defaultCharDelimiter||",",displayBackEndInfo:an.displayBackEndInfo||"true",displayTenantSelector:an.displayTenantSelector||"true",waitTimeForNotifications:an.waitTimeForNotifications||60,waitTimeForCOBCatchUp:an.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:an.sessionIdleTimeout||3e5}},httpCacheEnabled:an.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:an.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var eS=(()=>{class t{transform(e,n,o,r){if(e){if(n==="loan"&&(o==="closed"?e=e.filter(a=>a.status.code==="loanStatusType.closed.written.off"||a.status.code==="loanStatusType.closed.obligations.met"||a.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||a.status.code==="loanStatusType.withdrawn.by.client"||a.status.code==="loanStatusType.rejected"):e=e.filter(a=>a.status.code!=="loanStatusType.closed.written.off"&&a.status.code!=="loanStatusType.closed.obligations.met"&&a.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&a.status.code!=="loanStatusType.withdrawn.by.client"&&a.status.code!=="loanStatusType.rejected")),n==="saving"&&(r==="isFixed"?e=e.filter(a=>a.depositType.value==="Fixed Deposit"):r==="isRecurring"?e=e.filter(a=>a.depositType.value==="Recurring Deposit"):r==="isSavings"&&(e=e.filter(a=>a.depositType.value==="Savings")),o==="closed"?e=e.filter(a=>a.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||a.status.code==="savingsAccountStatusType.closed"||a.status.code==="savingsAccountStatusType.pre.mature.closure"||a.status.code==="savingsAccountStatusType.rejected"):e=e.filter(a=>a.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&a.status.code!=="savingsAccountStatusType.closed"&&a.status.code!=="savingsAccountStatusType.pre.mature.closure"&&a.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(o==="closed"?e=e.filter(a=>a.status.code==="shareAccountStatusType.closed"||a.status.code==="shareAccountStatusType.rejected"):e=e.filter(a=>a.status.code!=="shareAccountStatusType.closed"&&a.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(o===!1)e=e.filter(a=>a.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(a=>a.active===!1&&a.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"accountsFilter",type:t,pure:!0})}}return t})();var tS=(()=>{class t{transform(e,n,o,r){return e&&(e=e.filter(a=>!(a.currency.code!==o||r&&a.chargeTimeType.id===12||n.filter(s=>s.id===a.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"chargesFilter",type:t,pure:!0})}}return t})();var nS=(()=>{class t{transform(e,n){return e&&(e=e.filter(o=>o.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Os=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var N1=e3(Um());var go=(()=>{class t{constructor(){this.datePipe=d(E1)}static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}getDate(e){return this.datePipe.transform(e,"yyyy-MM-dd")}formatDate(e,n){return new E1(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,N1.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,N1.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,N1.default)(e).toDate()}parseDatetime(e){return(0,N1.default)(e).toDate()}convertToDate(e,n){return(0,N1.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xt=(()=>{class t{constructor(){this.alertService=d(Os),this.dateUtils=d(go),this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){return JSON.parse(localStorage.getItem("mifosXDateFormat"))}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),JSON.parse(localStorage.getItem("mifosXLanguage"))}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return JSON.parse(localStorage.getItem("mifosXServers"))}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return JSON.parse(localStorage.getItem("mifosXTenantIdentifiers"))}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(o=>{if(o.type===n){let r=new Date(o.date);this.setBusinessDate(this.dateUtils.formatDate(r,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(r,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return JSON.parse(localStorage.getItem("mifosXThemeDarkEnabled"))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $m=e3(Um());var Lo=(()=>{class t{constructor(){this.settingsService=d(Xt)}transform(e,n){let o=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let r;return $m.default.locale(this.settingsService.language.code),e instanceof Array?r=(0,$m.default)(e.join("-"),"YYYY-MM-DD"):r=(0,$m.default)(e),n==null?r.format(o):r.format(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"dateFormat",type:t,pure:!0})}}return t})();var u0=e3(Um());var ca=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let o;if(Array.isArray(e)){let[a,s,c,m,f,v]=e;m!=null?o=(0,u0.default)({year:a,month:(s??1)-1,date:c,hour:m,minute:f??0,second:v??0}):o=(0,u0.default)({year:a,month:(s??1)-1,date:c})}else typeof e=="number"&&e<1e12?o=u0.default.unix(e):o=(0,u0.default)(e);let r=n??"yyyy-MM-ddTHH:mm:ssZ";return o.format(r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Wm=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let r=e.length;return r>20?e.substring(r-20,r):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"externalIdentifier",type:t,pure:!0})}}return t})();var iS=new WeakMap,oS=(()=>{class t{constructor(){this.sanitizer=d(Ga)}transform(e,n,o,r){if(!n||!o||e===null||e===void 0)return"";let a=iS.get(n);a||(a=new Map,iS.set(n,a));let s=a.get(o);if(!s){if(s=new Map,Array.isArray(n))for(let f of n)f&&f[o]!==void 0&&f[o]!==null&&s.set(f[o],f);a.set(o,s)}let c=s.get(e),m=c?c[r]??"":"";return typeof m=="string"?this.sanitizer.sanitize(Fn.HTML,m)||"":String(m||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"find",type:t,pure:!0})}}return t})();var Ts=(()=>{class t{constructor(){this.decimalFormat=d(Zd),this.settingsService=d(Xt)}transform(e,n){if(e===void 0)return n||"";let o=this.settingsService.decimals,r=`1.${o}-${o}`;return this.decimalFormat.transform(e,r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"formatNumber",type:t,pure:!0})}}return t})();var sS=e3(aS());var Ym=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return sS.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"prettyPrint",type:t,pure:!0})}}return t})();var cS=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"statusLookup",type:t,pure:!0})}}return t})();var Wc=(()=>{class t{constructor(){this.translateService=d(Po)}transform(e,n,o="labels"){let r=`${o}.${n}.${e}`;return this.translateService.instant(r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"translateKey",type:t,pure:!0})}}return t})();var Qm=(()=>{class t{transform(e,n){if(e.length<=40)return e;let o=e.substring(0,30);return n&&(o=e.substring(0,n)),o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"truncateText",type:t,pure:!0})}}return t})();var dS=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let r=n.pop(),a=r.slice(0,r.indexOf("?"));n.push(a)}return n.map(r=>r.split("-").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"urlToString",type:t,pure:!0})}}return t})();var Km=(()=>{class t{constructor(){this.translateService=d(Po)}transform(e,...n){if(e==null)return null;let o=e?"Yes":"No";return this.translateService.instant("labels.buttons."+o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"yesNo",type:t,pure:!0})}}return t})();var uS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({providers:[cS,eS,tS,nS,oS,dS,Lo,ca,Wm,Ts,Km,Ym,Wc,Qm],imports:[he]})}}return t})();var qa={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Xm="Authorization",LY="Fineract-Platform-TenantId",mS="Fineract-Platform-TFA-Token",pS=(()=>{class t{constructor(){this.settingsService=d(Xt)}intercept(e,n){return this.settingsService.tenantIdentifier&&(qa.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:qa.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?qa.headers[Xm]=`Bearer ${e}`:qa.headers[Xm]=`Basic ${e}`}setTwoFactorAccessToken(e){qa.headers[mS]=e}removeAuthorization(){delete qa.headers[Xm]}removeAuthorizationTenant(){delete qa.headers[Xm],delete qa.headers[LY]}removeTwoFactorAuthorization(){delete qa.headers[mS]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Zm=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(){this.http=d(Bn),this.alertService=d(Os),this.authenticationInterceptor=d(pS),this.userLoggedIn$=new ct(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken";let e=this.authenticationInterceptor;this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let n=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(n){n.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():e.setAuthorizationToken(n.base64EncodedAuthenticationKey),o&&e.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let o=new ee;o=o.set("username",e.username),o=o.set("password",e.password),o=o.set("client_id",`${mt.oauth.appId}`),o=o.set("grant_type","password"),o=o.set("remember_me",this.rememberMe?"true":"false");let r=new To;return r=r.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,o.toString(),{headers:r}).pipe(me(a=>(this.getUserDetails(a),re(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(me(o=>(this.onLoginSuccess(o),re(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new To;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(o=>{this.onLoginSuccess(o),o.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),o=new ee;o=o.set("username",n.username),o=o.set("client_id",`${mt.oauth.appId}`),o=o.set("refresh_token",e),o=o.set("grant_type","refresh_token");let r=new To;return r=r.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,o.toString(),{headers:r}).subscribe(a=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(a)),this.authenticationInterceptor.setAuthorizationToken(a.access_token),this.refreshTokenOnExpiry(a.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=a.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let o=new ee;o=o.set("username",n.username),o=o.set("client_id",`${mt.oauth.appId}`),o=o.set("refresh_token",e);let r=new To;return r=r.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,o.toString(),{headers:r}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),re(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(o)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(me(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Ps=(()=>{class t{constructor(){this.templateRef=d(tt),this.viewContainer=d(dt),this.authenticationService=d(Zm);let e=this.authenticationService.getCredentials();this.userPermissions=e.permissions}set mifosxHasPermission(e){if(typeof e!="string")throw new Error("hasPermission value must be a string");this.viewContainer.clear(),this.hasPermission(e)&&this.viewContainer.createEmbeddedView(this.templateRef)}hasPermission(e){return e=e.trim(),this.userPermissions.includes("ALL_FUNCTIONS")?!0:e!==""?e.substring(0,5)==="READ_"&&this.userPermissions.includes("ALL_FUNCTIONS_READ")?!0:!!this.userPermissions.includes(e):!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var CS=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(Ce(Ke),Ce(Q))};static \u0275dir=z({type:t})}return t})(),xS=(()=>{class t extends CS{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,features:[ce]})}return t})(),di=new L("");var AY={provide:di,useExisting:kt(()=>yi),multi:!0};function zY(){let t=Oo()?Oo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var RY=new L(""),yi=(()=>{class t extends CS{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!zY())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(Ce(Ke),Ce(Q),Ce(RY,8))};static \u0275dir=z({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&N("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[de([AY]),ce]})}return t})();function A7(t){return t==null||z7(t)===0}function z7(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Ci=new L(""),Yc=new L(""),NY=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,en=class{static min(i){return MS(i)}static max(i){return wS(i)}static required(i){return DS(i)}static requiredTrue(i){return FY(i)}static email(i){return VY(i)}static minLength(i){return SS(i)}static maxLength(i){return kS(i)}static pattern(i){return BY(i)}static nullValidator(i){return ep()}static compose(i){return LS(i)}static composeAsync(i){return AS(i)}};function MS(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function DS(t){return A7(t.value)?{required:!0}:null}function FY(t){return t.value===!0?null:{required:!0}}function VY(t){return A7(t.value)||NY.test(t.value)?null:{email:!0}}function SS(t){return i=>{let e=i.value?.length??z7(i.value);return e===null||e===0?null:e{let e=i.value?.length??z7(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function BY(t){if(!t)return ep;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(A7(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function ep(t){return null}function ES(t){return t!=null}function IS(t){return Ha(t)?tn(t):t}function OS(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function TS(t,i){return i.map(e=>e(t))}function jY(t){return!t.validate}function PS(t){return t.map(i=>jY(i)?i:e=>i.validate(e))}function LS(t){if(!t)return null;let i=t.filter(ES);return i.length==0?null:function(e){return OS(TS(e,i))}}function R7(t){return t!=null?LS(PS(t)):null}function AS(t){if(!t)return null;let i=t.filter(ES);return i.length==0?null:function(e){let n=TS(e,i).map(IS);return Oa(n).pipe(me(OS))}}function N7(t){return t!=null?AS(PS(t)):null}function fS(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function zS(t){return t._rawValidators}function RS(t){return t._rawAsyncValidators}function T7(t){return t?Array.isArray(t)?t:[t]:[]}function tp(t,i){return Array.isArray(t)?t.includes(i):t===i}function hS(t,i){let e=T7(i);return T7(t).forEach(o=>{tp(e,o)||e.push(o)}),e}function gS(t,i){return T7(i).filter(e=>!tp(t,e))}var np=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=R7(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=N7(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},vi=class extends np{name;get formDirective(){return null}get path(){return null}},ei=class extends np{_parent=null;name=null;valueAccessor=null},ip=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},HY={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},ECe=Ne(q({},HY),{"[class.ng-submitted]":"isSubmitted"}),mn=(()=>{class t extends ip{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Ce(ei,2))};static \u0275dir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ce]})}return t})(),tr=(()=>{class t extends ip{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Ce(vi,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ce]})}return t})();var m0="VALID",Jm="INVALID",F1="PENDING",p0="DISABLED",As=class{},op=class extends As{value;source;constructor(i,e){super(),this.value=i,this.source=e}},h0=class extends As{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},g0=class extends As{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},V1=class extends As{status;source;constructor(i,e){super(),this.status=i,this.source=e}},rp=class extends As{source;constructor(i){super(),this.source=i}},_0=class extends As{source;constructor(i){super(),this.source=i}};function F7(t){return(lp(t)?t.validators:t)||null}function UY(t){return Array.isArray(t)?R7(t):t||null}function V7(t,i){return(lp(i)?i.asyncValidators:t)||null}function $Y(t){return Array.isArray(t)?N7(t):t||null}function lp(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function NS(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new pe(1e3,"");if(!n[e])throw new pe(1001,"")}function FS(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new pe(1002,"")})}var B1=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return Vn(this.statusReactive)}set status(i){Vn(()=>this.statusReactive.set(i))}_status=Zn(()=>this.statusReactive());statusReactive=we(void 0);get valid(){return this.status===m0}get invalid(){return this.status===Jm}get pending(){return this.status==F1}get disabled(){return this.status===p0}get enabled(){return this.status!==p0}errors;get pristine(){return Vn(this.pristineReactive)}set pristine(i){Vn(()=>this.pristineReactive.set(i))}_pristine=Zn(()=>this.pristineReactive());pristineReactive=we(!0);get dirty(){return!this.pristine}get touched(){return Vn(this.touchedReactive)}set touched(i){Vn(()=>this.touchedReactive.set(i))}_touched=Zn(()=>this.touchedReactive());touchedReactive=we(!1);get untouched(){return!this.touched}_events=new B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(hS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(hS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(gS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(gS(i,this._rawAsyncValidators))}hasValidator(i){return tp(this._rawValidators,i)}hasAsyncValidator(i){return tp(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Ne(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new g0(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new g0(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Ne(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new h0(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new h0(!0,n))}markAsPending(i={}){this.status=F1;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new V1(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Ne(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=p0,this.errors=null,this._forEachChild(o=>{o.disable(Ne(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new op(this.value,n)),this._events.next(new V1(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ne(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=m0,this._forEachChild(n=>{n.enable(Ne(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ne(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===m0||this.status===F1)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new op(this.value,e)),this._events.next(new V1(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Ne(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?p0:m0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=F1,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=IS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new V1(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?p0:this.errors?Jm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F1)?F1:this._anyControlsHaveStatus(Jm)?Jm:m0}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),o&&this._events.next(new h0(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new g0(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){lp(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=UY(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=$Y(this._rawAsyncValidators)}},qc=class extends B1{constructor(i,e,n){super(F7(e),V7(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){FS(this,!0,i),Object.keys(i).forEach(n=>{NS(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new _0(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var VS=qc;var P7=class extends qc{};var j1=new L("",{providedIn:"root",factory:()=>dp}),dp="always";function up(t,i){return[...i.path,t]}function b0(t,i,e=dp){B7(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),WY(t,i),YY(t,i),qY(t,i),GY(t,i)}function ap(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),cp(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function sp(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function GY(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function B7(t,i){let e=zS(t);i.validator!==null?t.setValidators(fS(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=RS(t);i.asyncValidator!==null?t.setAsyncValidators(fS(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();sp(i._rawValidators,o),sp(i._rawAsyncValidators,o)}function cp(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=zS(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=RS(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return sp(i._rawValidators,n),sp(i._rawAsyncValidators,n),e}function WY(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&BS(t,i)})}function qY(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&BS(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function BS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function YY(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function jS(t,i){t==null,B7(t,i)}function QY(t,i){return cp(t,i)}function j7(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function KY(t){return Object.getPrototypeOf(t.constructor)===xS}function HS(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function H7(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===yi?e=r:KY(r)?n=r:o=r}),o||n||e||null}function XY(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var ZY={provide:vi,useExisting:kt(()=>H1)},f0=Promise.resolve(),H1=(()=>{class t extends vi{callSetDisabledState;get submitted(){return Vn(this.submittedReactive)}_submitted=Zn(()=>this.submittedReactive());submittedReactive=we(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new qc({},R7(e),N7(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){f0.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),b0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){f0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){f0.then(()=>{let n=this._findContainer(e.path),o=new qc({});jS(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){f0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){f0.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),HS(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new rp(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(Ce(Ci,10),Ce(Yc,10),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[de([ZY]),ce]})}return t})();function _S(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function bS(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ls=class extends B1{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(F7(e),V7(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(bS(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new _0(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){_S(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){_S(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){bS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},Hi=Ls,JY=t=>t instanceof Ls,eQ=(()=>{class t extends vi{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return up(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,standalone:!1,features:[ce]})}return t})();var tQ={provide:ei,useExisting:kt(()=>nQ)},vS=Promise.resolve(),nQ=(()=>{class t extends ei{_changeDetectorRef;callSetDisabledState;control=new Ls;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=H7(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),j7(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){b0(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){vS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&H(n);vS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?up(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(Ce(vi,9),Ce(Ci,10),Ce(Yc,10),Ce(di,10),Ce(xe,8),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[de([tQ]),ce,Re]})}return t})();var zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),iQ={provide:di,useExisting:kt(()=>oQ),multi:!0},oQ=(()=>{class t extends xS{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&N("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[de([iQ]),ce]})}return t})();var U7=new L(""),rQ={provide:ei,useExisting:kt(()=>Si)},Si=(()=>{class t extends ei{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=H7(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&ap(n,this,!1),b0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}j7(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ap(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(Ce(Ci,10),Ce(Yc,10),Ce(di,10),Ce(U7,8),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[de([rQ]),ce,Re]})}return t})(),aQ={provide:vi,useExisting:kt(()=>ui)},ui=(()=>{class t extends vi{callSetDisabledState;get submitted(){return Vn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zn(()=>this._submittedReactive());_submittedReactive=we(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(cp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return b0(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){ap(e.control||null,e,!1),XY(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),HS(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new rp(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(ap(n||null,e),JY(o)&&(b0(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);jS(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&QY(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){B7(this.form,this),this._oldForm&&cp(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(Ce(Ci,10),Ce(Yc,10),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[de([aQ]),ce,Re]})}return t})(),sQ={provide:vi,useExisting:kt(()=>US)},US=(()=>{class t extends eQ{name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){GS(this._parent)}static \u0275fac=function(n){return new(n||t)(Ce(vi,13),Ce(Ci,10),Ce(Yc,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[de([sQ]),ce]})}return t})(),cQ={provide:vi,useExisting:kt(()=>$S)},$S=(()=>{class t extends vi{_parent;name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){GS(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return up(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(Ce(vi,13),Ce(Ci,10),Ce(Yc,10))};static \u0275dir=z({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[de([cQ]),ce]})}return t})();function GS(t){return!(t instanceof US)&&!(t instanceof ui)&&!(t instanceof $S)}var lQ={provide:ei,useExisting:kt(()=>Ao)},Ao=(()=>{class t extends ei{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=H7(this,r)}ngOnChanges(e){this._added||this._setUpControl(),j7(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return up(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||t)(Ce(vi,13),Ce(Ci,10),Ce(Yc,10),Ce(di,10),Ce(U7,8))};static \u0275dir=z({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[de([lQ]),ce,Re]})}return t})();function WS(t){return typeof t=="number"?t:parseInt(t,10)}function qS(t){return typeof t=="number"?t:parseFloat(t)}var v0=(()=>{class t{_validator=ep;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):ep,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,features:[Re]})}return t})(),dQ={provide:Ci,useExisting:kt(()=>uQ),multi:!0},uQ=(()=>{class t extends v0{max;inputName="max";normalizeInput=e=>qS(e);createValidator=e=>wS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&te("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[de([dQ]),ce]})}return t})(),mQ={provide:Ci,useExisting:kt(()=>pQ),multi:!0},pQ=(()=>{class t extends v0{min;inputName="min";normalizeInput=e=>qS(e);createValidator=e=>MS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&te("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[de([mQ]),ce]})}return t})(),fQ={provide:Ci,useExisting:kt(()=>Ir),multi:!0};var Ir=(()=>{class t extends v0{required;inputName="required";normalizeInput=H;createValidator=e=>DS;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&te("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[de([fQ]),ce]})}return t})();var hQ={provide:Ci,useExisting:kt(()=>gQ),multi:!0},gQ=(()=>{class t extends v0{minlength;inputName="minlength";normalizeInput=e=>WS(e);createValidator=e=>SS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&te("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[de([hQ]),ce]})}return t})(),_Q={provide:Ci,useExisting:kt(()=>bQ),multi:!0},bQ=(()=>{class t extends v0{maxlength;inputName="maxlength";normalizeInput=e=>WS(e);createValidator=e=>kS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&te("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[de([_Q]),ce]})}return t})();var YS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})(),L7=class extends B1{constructor(i,e,n){super(F7(e),V7(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){Array.isArray(i)?i.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let o=this._adjustIndex(i);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){FS(this,!1,i),i.forEach((n,o)=>{NS(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,o)=>{n.reset(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new _0(this))}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function yS(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var vQ=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let o=this._reduceControls(e),r={};return yS(n)?r=n:n!==null&&(r.validators=n.validator,r.asyncValidators=n.asyncValidator),new qc(o,r)}record(e,n=null){let o=this._reduceControls(e);return new P7(o,n)}control(e,n,o){let r={};return this.useNonNullable?(yS(n)?r=n:(r.validators=n,r.asyncValidators=o),new Ls(e,Ne(q({},r),{nonNullable:!0}))):new Ls(e,n,o)}array(e,n,o){let r=e.map(a=>this._createControl(a));return new L7(r,n,o)}_reduceControls(e){let n={};return Object.keys(e).forEach(o=>{n[o]=this._createControl(e[o])}),n}_createControl(e){if(e instanceof Ls)return e;if(e instanceof B1)return e;if(Array.isArray(e)){let n=e[0],o=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(n,o,r)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Rs=(()=>{class t extends vQ{group(e,n=null){return super.group(e,n)}control(e,n,o){return super.control(e,n,o)}array(e,n,o){return super.array(e,n,o)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var QS=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:j1,useValue:e.callSetDisabledState??dp}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[YS]})}return t})(),ve=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:U7,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:j1,useValue:e.callSetDisabledState??dp}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[YS]})}return t})();var KS=(()=>{class t{constructor(){this.locale=d(wr),this.el=d(Q),this.control=d(ei),this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}parse(e){return e==""?""+this.sufix:Om(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,o){n&1&&N("blur",function(a){return o.blur(a.target)})("focus",function(a){return o.focus(a.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var UCe=(()=>{class t{constructor(){this.control=d(ei),this.el=d(Q)}onFocus(){this.control.control?.markAsTouched(),this.control.control?.updateValueAndValidity()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,o){n&1&&N("focus",function(){return o.onFocus()})}})}}return t})();var XS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({imports:[he]})}}return t})();var nr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function Ya(t){return t.buttons===0||t.detail===0}function Qa(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var $7;function ZS(){if($7==null){let t=typeof document<"u"?document.head:null;$7=!!(t&&(t.createShadowRoot||t.attachShadow))}return $7}function Qc(t){if(ZS()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function no(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function jn(t){return t.composedPath?t.composedPath()[0]:t.target}var G7;try{G7=typeof Intl<"u"&&Intl.v8BreakIterator}catch{G7=!1}var je=(()=>{class t{_platformId=d(Bc);isBrowser=this._platformId?DD(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||G7)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var y0;function JS(){if(y0==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>y0=!0}))}finally{y0=y0||!1}return y0}function Ns(t){return JS()?t:!!t.capture}function vn(t,i=0){return mp(t)?Number(t):arguments.length===2?i:0}function mp(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function kn(t){return t instanceof Q?t.nativeElement:t}var ek=new L("cdk-input-modality-detector-options"),tk={ignoreKeys:[18,17,224,91,16]},nk=650,W7={passive:!0,capture:!0},ik=(()=>{class t{_platform=d(je);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ct(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=jn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Qa(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=jn(e)};constructor(){let e=d(se),n=d(Me),o=d(ek,{optional:!0});if(this._options=q(q({},tk),o),this.modalityDetected=this._modality.pipe(Cc(1)),this.modalityChanged=this.modalityDetected.pipe(Wl()),this._platform.isBrowser){let r=d(On).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,W7),r.listen(n,"mousedown",this._onMousedown,W7),r.listen(n,"touchstart",this._onTouchstart,W7)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),C0=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(C0||{}),ok=new L("cdk-focus-monitor-default-options"),pp=Ns({passive:!0,capture:!0}),sn=(()=>{class t{_ngZone=d(se);_platform=d(je);_inputModalityDetector=d(ik);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=d(Me);_stopInputModalityDetector=new B;constructor(){let e=d(ok,{optional:!0});this._detectionMode=e?.detectionMode||C0.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=jn(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=kn(e);if(!this._platform.isBrowser||o.nodeType!==1)return re();let r=Qc(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new B,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=kn(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=kn(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===C0.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===C0.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?nk:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=jn(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,pp),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,pp)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ye(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,pp),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,pp),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=d(Q);_focusMonitor=d(sn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var fp=new WeakMap,at=(()=>{class t{_appRef;_injector=d(be);_environmentInjector=d(Qt);load(e){let n=this._appRef=this._appRef||this._injector.get(li),o=fp.get(n);o||(o={loaders:new Set,refs:[]},fp.set(n,o),n.onDestroy(()=>{fp.get(n)?.refs.forEach(r=>r.destroy()),fp.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(gm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _o=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} -`],encapsulation:2,changeDetection:0})}return t})();function Or(t){return Array.isArray(t)?t:[t]}var rk=new Set,Kc,hp=(()=>{class t{_platform=d(je);_nonce=d(g1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):CQ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&yQ(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yQ(t,i){if(!rk.has(t))try{Kc||(Kc=document.createElement("style"),i&&Kc.setAttribute("nonce",i),Kc.setAttribute("type","text/css"),document.head.appendChild(Kc)),Kc.sheet&&(Kc.sheet.insertRule(`@media ${t} {body{ }}`,0),rk.add(t))}catch(e){console.error(e)}}function CQ(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Xc=(()=>{class t{_mediaMatcher=d(hp);_zone=d(se);_queries=new Map;_destroySubject=new B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ak(Or(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=ak(Or(e)).map(a=>this._registerQuery(a).observable),r=gi(o);return r=Li(r.pipe(Be(1)),r.pipe(Cc(1),hr(0))),r.pipe(me(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:m})=>{s.matches=s.matches||c,s.breakpoints[m]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new Fe(a=>{let s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(We(n),me(({matches:a})=>({query:e,matches:a})),ye(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ak(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function xQ(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ck=(()=>{class t{_mutationObserverFactory=d(sk);_observedElements=new Map;_ngZone=d(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=kn(e);return new Fe(o=>{let a=this._observeElement(n).pipe(me(s=>s.filter(c=>!xQ(c))),Ae(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new B,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),M0=(()=>{class t{_contentObserver=d(ck);_elementRef=d(Q);event=new j;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=vn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(hr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",H],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),U1=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[sk]})}return t})();var Vs=(()=>{class t{_platform=d(je);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return wQ(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=MQ(PQ(e));if(n&&(lk(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=lk(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!OQ(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return TQ(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MQ(t){try{return t.frameElement}catch{return null}}function wQ(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function DQ(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function SQ(t){return EQ(t)&&t.type=="hidden"}function kQ(t){return IQ(t)&&t.hasAttribute("href")}function EQ(t){return t.nodeName.toLowerCase()=="input"}function IQ(t){return t.nodeName.toLowerCase()=="a"}function mk(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function lk(t){if(!mk(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function OQ(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function TQ(t){return SQ(t)?!1:DQ(t)||kQ(t)||t.hasAttribute("contenteditable")||mk(t)}function PQ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var gp=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?Ct(i,{injector:this._injector}):setTimeout(i)}},$1=(()=>{class t{_checker=d(Vs);_ngZone=d(se);_document=d(Me);_injector=d(be);constructor(){d(at).load(_o)}create(e,n=!1){return new gp(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Y7=(()=>{class t{_elementRef=d(Q);_focusTrapFactory=d($1);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){d(je).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=no(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",H],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",H]},exportAs:["cdkTrapFocus"],features:[Re]})}return t})(),pk=new L("liveAnnouncerElement",{providedIn:"root",factory:fk});function fk(){return null}var hk=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),LQ=0,w0=(()=>{class t{_ngZone=d(se);_defaultOptions=d(hk,{optional:!0});_liveElement;_document=d(Me);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=d(pk,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=d(je);_hasCheckedHighContrastMode;_document=d(Me);_breakpointSubscription;constructor(){this._breakpointSubscription=d(Xc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fs.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fs.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fs.BLACK_ON_WHITE}return Fs.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(q7,dk,uk),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Fs.BLACK_ON_WHITE?e.add(q7,dk):n===Fs.WHITE_ON_BLACK&&e.add(q7,uk)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ka=(()=>{class t{constructor(){d(_p)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[U1]})}return t})();var Q7={},He=(()=>{class t{_appId=d(Ds);getId(e){return this._appId!=="ng"&&(e+=this._appId),Q7.hasOwnProperty(e)||(Q7[e]=0),`${e}${Q7[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var AQ=200,G1=class{_letterKeyStream=new B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new B;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:AQ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ot(e=>this._pressedLetters.push(e)),hr(i),Ae(()=>this._pressedLetters.length>0),me(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;nt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var W1=class{_items;_activeItemIndex=we(-1);_activeItem=we(null);_wrap=!1;_typeaheadSubscription=Se.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof In?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):ea(i)&&(this._effectRef=sa(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new B;change=new B;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new G1(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var Zc=class extends W1{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Tr=class extends W1{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function Jc(t){return ai(t)?t:re(t)}var K7=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=Se.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let i=0;for(let n=0;n{this._items=n.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):ai(i)?i.subscribe(n=>{this._items=n,this._typeahead?.setItems(n),this._updateActiveItemIndex(n),this._initializeFocus()}):(this._items=i,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new B;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(i){switch(i.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(i.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(i,e={}){e.emitChangeEvent??=!0;let n=typeof i=="number"?i:this._items.findIndex(a=>this._trackByFn(a)===this._trackByFn(i));if(n<0||n>=this._items.length)return;let o=this._items[n];if(this._activeItem!==null&&this._trackByFn(o)===this._trackByFn(this._activeItem))return;let r=this._activeItem;this._activeItem=o??null,this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n),this._activeItem?.focus(),r?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(i){let e=this._activeItem;if(!e)return;let n=i.findIndex(o=>this._trackByFn(o)===this._trackByFn(e));n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}_setTypeAhead(i){this._typeahead=new G1(this._items,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(i){for(let e=i+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return i}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let i=this._activeItem.getParent();if(!i||this._skipPredicateFn(i))return;this.focusItem(i)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?Jc(this._activeItem.getChildren()).pipe(Be(1)).subscribe(i=>{let e=i.find(n=>!this._skipPredicateFn(n));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(i){return typeof i.isDisabled=="boolean"?i.isDisabled:i.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let i=this._activeItem.getParent(),e;i?e=Jc(i.getChildren()):e=re(this._items.filter(n=>n.getParent()===null)),e.pipe(Be(1)).subscribe(n=>{for(let o of n)o.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function zQ(){return(t,i)=>new K7(t,i)}var bk=new L("tree-key-manager",{providedIn:"root",factory:zQ});var yk=" ";function q1(t,i,e){let n=Cp(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(yk)))}function Bs(t,i,e){let n=Cp(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(yk)):t.removeAttribute(i)}function Cp(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var Ck="cdk-describedby-message",yp="cdk-describedby-host",Z7=0,Y1=(()=>{class t{_platform=d(je);_document=d(Me);_messageRegistry=new Map;_messagesContainer=null;_id=`${Z7++}`;constructor(){d(at).load(_o),this._id=d(Ds)+"-"+Z7++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=X7(n,o);typeof n!="string"?(vk(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=X7(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${yp}="${this._id}"]`);for(let n=0;no.indexOf(Ck)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);q1(e,"aria-describedby",o.messageElement.id),e.setAttribute(yp,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Bs(e,"aria-describedby",o.messageElement.id),e.removeAttribute(yp)}_isElementDescribedByMessage(e,n){let o=Cp(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function X7(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function vk(t,i){t.id||(t.id=`${Ck}-${i}-${Z7++}`)}var RQ=["mat-internal-form-field",""],NQ=["*"],Q1=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:RQ,ngContentSelectors:NQ,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} + `)}`:"",this.name="UnsubscriptionError",this.errors=e});function gc(t,i){if(t){let e=t.indexOf(i);0<=e&&t.splice(e,1)}}var Se=class t{constructor(i){this.initialTeardown=i,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let i;if(!this.closed){this.closed=!0;let{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let r of e)r.remove(this);else e.remove(this);let{initialTeardown:n}=this;if(qe(n))try{n()}catch(r){i=r instanceof d3?r.errors:[r]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let r of o)try{ey(r)}catch(a){i=i??[],a instanceof d3?i=[...i,...a.errors]:i.push(a)}}if(i)throw new d3(i)}}add(i){var e;if(i&&i!==this)if(this.closed)ey(i);else{if(i instanceof t){if(i.closed||i._hasParent(this))return;i._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(i)}}_hasParent(i){let{_parentage:e}=this;return e===i||Array.isArray(e)&&e.includes(i)}_addParent(i){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(i),e):e?[e,i]:i}_removeParent(i){let{_parentage:e}=this;e===i?this._parentage=null:Array.isArray(e)&&gc(e,i)}remove(i){let{_finalizers:e}=this;e&&gc(e,i),i instanceof t&&i._removeParent(this)}};Se.EMPTY=(()=>{let t=new Se;return t.closed=!0,t})();var M6=Se.EMPTY;function u3(t){return t instanceof Se||t&&"closed"in t&&qe(t.remove)&&qe(t.add)&&qe(t.unsubscribe)}function ey(t){qe(t)?t():t.unsubscribe()}var ur={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Al={setTimeout(t,i,...e){let{delegate:n}=Al;return n?.setTimeout?n.setTimeout(t,i,...e):setTimeout(t,i,...e)},clearTimeout(t){let{delegate:i}=Al;return(i?.clearTimeout||clearTimeout)(t)},delegate:void 0};function m3(t){Al.setTimeout(()=>{let{onUnhandledError:i}=ur;if(i)i(t);else throw t})}function _c(){}var ty=w6("C",void 0,void 0);function ny(t){return w6("E",void 0,t)}function iy(t){return w6("N",t,void 0)}function w6(t,i,e){return{kind:t,value:i,error:e}}var bc=null;function zl(t){if(ur.useDeprecatedSynchronousErrorHandling){let i=!bc;if(i&&(bc={errorThrown:!1,error:null}),t(),i){let{errorThrown:e,error:n}=bc;if(bc=null,e)throw n}}else t()}function oy(t){ur.useDeprecatedSynchronousErrorHandling&&bc&&(bc.errorThrown=!0,bc.error=t)}var vc=class extends Se{constructor(i){super(),this.isStopped=!1,i?(this.destination=i,u3(i)&&i.add(this)):this.destination=sj}static create(i,e,n){return new mr(i,e,n)}next(i){this.isStopped?S6(iy(i),this):this._next(i)}error(i){this.isStopped?S6(ny(i),this):(this.isStopped=!0,this._error(i))}complete(){this.isStopped?S6(ty,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(i){this.destination.next(i)}_error(i){try{this.destination.error(i)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},rj=Function.prototype.bind;function D6(t,i){return rj.call(t,i)}var k6=class{constructor(i){this.partialObserver=i}next(i){let{partialObserver:e}=this;if(e.next)try{e.next(i)}catch(n){p3(n)}}error(i){let{partialObserver:e}=this;if(e.error)try{e.error(i)}catch(n){p3(n)}else p3(i)}complete(){let{partialObserver:i}=this;if(i.complete)try{i.complete()}catch(e){p3(e)}}},mr=class extends vc{constructor(i,e,n){super();let o;if(qe(i)||!i)o={next:i??void 0,error:e??void 0,complete:n??void 0};else{let r;this&&ur.useDeprecatedNextContext?(r=Object.create(i),r.unsubscribe=()=>this.unsubscribe(),o={next:i.next&&D6(i.next,r),error:i.error&&D6(i.error,r),complete:i.complete&&D6(i.complete,r)}):o=i}this.destination=new k6(o)}};function p3(t){ur.useDeprecatedSynchronousErrorHandling?oy(t):m3(t)}function aj(t){throw t}function S6(t,i){let{onStoppedNotification:e}=ur;e&&Al.setTimeout(()=>e(t,i))}var sj={closed:!0,next:_c,error:aj,complete:_c};var Rl=typeof Symbol=="function"&&Symbol.observable||"@@observable";function Yi(t){return t}function E6(...t){return I6(t)}function I6(t){return t.length===0?Yi:t.length===1?t[0]:function(e){return t.reduce((n,o)=>o(n),e)}}var Fe=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){let n=new t;return n.source=this,n.operator=e,n}subscribe(e,n,o){let r=lj(e)?e:new mr(e,n,o);return zl(()=>{let{operator:a,source:s}=this;r.add(a?a.call(r,s):s?this._subscribe(r):this._trySubscribe(r))}),r}_trySubscribe(e){try{return this._subscribe(e)}catch(n){e.error(n)}}forEach(e,n){return n=ry(n),new n((o,r)=>{let a=new mr({next:s=>{try{e(s)}catch(c){r(c),a.unsubscribe()}},error:r,complete:o});this.subscribe(a)})}_subscribe(e){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(e)}[Rl](){return this}pipe(...e){return I6(e)(this)}toPromise(e){return e=ry(e),new e((n,o)=>{let r;this.subscribe(a=>r=a,a=>o(a),()=>n(r))})}}return t.create=i=>new t(i),t})();function ry(t){var i;return(i=t??ur.Promise)!==null&&i!==void 0?i:Promise}function cj(t){return t&&qe(t.next)&&qe(t.error)&&qe(t.complete)}function lj(t){return t&&t instanceof vc||cj(t)&&u3(t)}function O6(t){return qe(t?.lift)}function Qe(t){return i=>{if(O6(i))return i.lift(function(e){try{return t(e,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function et(t,i,e,n,o){return new T6(t,i,e,n,o)}var T6=class extends vc{constructor(i,e,n,o,r,a){super(i),this.onFinalize=r,this.shouldUnsubscribe=a,this._next=e?function(s){try{e(s)}catch(c){i.error(c)}}:super._next,this._error=o?function(s){try{o(s)}catch(c){i.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=n?function(){try{n()}catch(s){i.error(s)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var i;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((i=this.onFinalize)===null||i===void 0||i.call(this))}}};function Nl(){return Qe((t,i)=>{let e=null;t._refCount++;let n=et(i,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount){e=null;return}let o=t._connection,r=e;e=null,o&&(!r||o===r)&&o.unsubscribe(),i.unsubscribe()});t.subscribe(n),n.closed||(e=t.connect())})}var ps=class extends Fe{constructor(i,e){super(),this.source=i,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,O6(i)&&(this.lift=i.lift)}_subscribe(i){return this.getSubject().subscribe(i)}getSubject(){let i=this._subject;return(!i||i.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:i}=this;this._subject=this._connection=null,i?.unsubscribe()}connect(){let i=this._connection;if(!i){i=this._connection=new Se;let e=this.getSubject();i.add(this.source.subscribe(et(e,void 0,()=>{this._teardown(),e.complete()},n=>{this._teardown(),e.error(n)},()=>this._teardown()))),i.closed&&(this._connection=null,i=Se.EMPTY)}return i}refCount(){return Nl()(this)}};var Fl={schedule(t){let i=requestAnimationFrame,e=cancelAnimationFrame,{delegate:n}=Fl;n&&(i=n.requestAnimationFrame,e=n.cancelAnimationFrame);let o=i(r=>{e=void 0,t(r)});return new Se(()=>e?.(o))},requestAnimationFrame(...t){let{delegate:i}=Fl;return(i?.requestAnimationFrame||requestAnimationFrame)(...t)},cancelAnimationFrame(...t){let{delegate:i}=Fl;return(i?.cancelAnimationFrame||cancelAnimationFrame)(...t)},delegate:void 0};var ay=Ll(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var B=(()=>{class t extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){let n=new f3(this,this);return n.operator=e,n}_throwIfClosed(){if(this.closed)throw new ay}next(e){zl(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let n of this.currentObservers)n.next(e)}})}error(e){zl(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;let{observers:n}=this;for(;n.length;)n.shift().error(e)}})}complete(){zl(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){let{hasError:n,isStopped:o,observers:r}=this;return n||o?M6:(this.currentObservers=null,r.push(e),new Se(()=>{this.currentObservers=null,gc(r,e)}))}_checkFinalizedStatuses(e){let{hasError:n,thrownError:o,isStopped:r}=this;n?e.error(o):r&&e.complete()}asObservable(){let e=new Fe;return e.source=this,e}}return t.create=(i,e)=>new f3(i,e),t})(),f3=class extends B{constructor(i,e){super(),this.destination=i,this.source=e}next(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.next)===null||n===void 0||n.call(e,i)}error(i){var e,n;(n=(e=this.destination)===null||e===void 0?void 0:e.error)===null||n===void 0||n.call(e,i)}complete(){var i,e;(e=(i=this.destination)===null||i===void 0?void 0:i.complete)===null||e===void 0||e.call(i)}_subscribe(i){var e,n;return(n=(e=this.source)===null||e===void 0?void 0:e.subscribe(i))!==null&&n!==void 0?n:M6}};var ct=class extends B{constructor(i){super(),this._value=i}get value(){return this.getValue()}_subscribe(i){let e=super._subscribe(i);return!e.closed&&i.next(this._value),e}getValue(){let{hasError:i,thrownError:e,_value:n}=this;if(i)throw e;return this._throwIfClosed(),n}next(i){super.next(this._value=i)}};var Z2={now(){return(Z2.delegate||Date).now()},delegate:void 0};var pr=class extends B{constructor(i=1/0,e=1/0,n=Z2){super(),this._bufferSize=i,this._windowTime=e,this._timestampProvider=n,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===1/0,this._bufferSize=Math.max(1,i),this._windowTime=Math.max(1,e)}next(i){let{isStopped:e,_buffer:n,_infiniteTimeWindow:o,_timestampProvider:r,_windowTime:a}=this;e||(n.push(i),!o&&n.push(r.now()+a)),this._trimBuffer(),super.next(i)}_subscribe(i){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(i),{_infiniteTimeWindow:n,_buffer:o}=this,r=o.slice();for(let a=0;a0?super.requestAsyncId(i,e,n):(i.actions.push(this),i._scheduled||(i._scheduled=Fl.requestAnimationFrame(()=>i.flush(void 0))))}recycleAsyncId(i,e,n=0){var o;if(n!=null?n>0:this.delay>0)return super.recycleAsyncId(i,e,n);let{actions:r}=i;e!=null&&e===i._scheduled&&((o=r[r.length-1])===null||o===void 0?void 0:o.id)!==e&&(Fl.cancelAnimationFrame(e),i._scheduled=void 0)}};var _3=class extends jl{flush(i){this._active=!0;let e;i?e=i.id:(e=this._scheduled,this._scheduled=void 0);let{actions:n}=this,o;i=i||n.shift();do if(o=i.execute(i.state,i.delay))break;while((i=n[0])&&i.id===e&&n.shift());if(this._active=!1,o){for(;(i=n[0])&&i.id===e&&n.shift();)i.unsubscribe();throw o}}};var b3=new _3(g3);var Sn=new Fe(t=>t.complete());function v3(t){return t&&qe(t.schedule)}function P6(t){return t[t.length-1]}function y3(t){return qe(P6(t))?t.pop():void 0}function $r(t){return v3(P6(t))?t.pop():void 0}function cy(t,i){return typeof P6(t)=="number"?t.pop():i}function iue(t,i,e,n){var o=arguments.length,r=o<3?i:n===null?n=Object.getOwnPropertyDescriptor(i,e):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")r=Reflect.decorate(t,i,e,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(r=(o<3?a(r):o>3?a(i,e,r):a(i,e))||r);return o>3&&r&&Object.defineProperty(i,e,r),r}function dy(t,i,e,n){function o(r){return r instanceof e?r:new e(function(a){a(r)})}return new(e||(e=Promise))(function(r,a){function s(f){try{m(n.next(f))}catch(v){a(v)}}function c(f){try{m(n.throw(f))}catch(v){a(v)}}function m(f){f.done?r(f.value):o(f.value).then(s,c)}m((n=n.apply(t,i||[])).next())})}function ly(t){var i=typeof Symbol=="function"&&Symbol.iterator,e=i&&t[i],n=0;if(e)return e.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(i?"Object is not iterable.":"Symbol.iterator is not defined.")}function yc(t){return this instanceof yc?(this.v=t,this):new yc(t)}function uy(t,i,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=e.apply(t,i||[]),o,r=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),s("next"),s("throw"),s("return",a),o[Symbol.asyncIterator]=function(){return this},o;function a(w){return function(O){return Promise.resolve(O).then(w,v)}}function s(w,O){n[w]&&(o[w]=function(K){return new Promise(function(Y,Z){r.push([w,K,Y,Z])>1||c(w,K)})},O&&(o[w]=O(o[w])))}function c(w,O){try{m(n[w](O))}catch(K){x(r[0][3],K)}}function m(w){w.value instanceof yc?Promise.resolve(w.value.v).then(f,v):x(r[0][2],w)}function f(w){c("next",w)}function v(w){c("throw",w)}function x(w,O){w(O),r.shift(),r.length&&c(r[0][0],r[0][1])}}function my(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t[Symbol.asyncIterator],e;return i?i.call(t):(t=typeof ly=="function"?ly(t):t[Symbol.iterator](),e={},n("next"),n("throw"),n("return"),e[Symbol.asyncIterator]=function(){return this},e);function n(r){e[r]=t[r]&&function(a){return new Promise(function(s,c){a=t[r](a),o(s,c,a.done,a.value)})}}function o(r,a,s,c){Promise.resolve(c).then(function(m){r({value:m,done:s})},a)}}var Hl=t=>t&&typeof t.length=="number"&&typeof t!="function";function C3(t){return qe(t?.then)}function x3(t){return qe(t[Rl])}function M3(t){return Symbol.asyncIterator&&qe(t?.[Symbol.asyncIterator])}function w3(t){return new TypeError(`You provided ${t!==null&&typeof t=="object"?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function dj(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var D3=dj();function S3(t){return qe(t?.[D3])}function k3(t){return uy(this,arguments,function*(){let e=t.getReader();try{for(;;){let{value:n,done:o}=yield yc(e.read());if(o)return yield yc(void 0);yield yield yc(n)}}finally{e.releaseLock()}})}function E3(t){return qe(t?.getReader)}function Ut(t){if(t instanceof Fe)return t;if(t!=null){if(x3(t))return uj(t);if(Hl(t))return mj(t);if(C3(t))return pj(t);if(M3(t))return py(t);if(S3(t))return fj(t);if(E3(t))return hj(t)}throw w3(t)}function uj(t){return new Fe(i=>{let e=t[Rl]();if(qe(e.subscribe))return e.subscribe(i);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function mj(t){return new Fe(i=>{for(let e=0;e{t.then(e=>{i.closed||(i.next(e),i.complete())},e=>i.error(e)).then(null,m3)})}function fj(t){return new Fe(i=>{for(let e of t)if(i.next(e),i.closed)return;i.complete()})}function py(t){return new Fe(i=>{gj(t,i).catch(e=>i.error(e))})}function hj(t){return py(k3(t))}function gj(t,i){var e,n,o,r;return dy(this,void 0,void 0,function*(){try{for(e=my(t);n=yield e.next(),!n.done;){let a=n.value;if(i.next(a),i.closed)return}}catch(a){o={error:a}}finally{try{n&&!n.done&&(r=e.return)&&(yield r.call(e))}finally{if(o)throw o.error}}i.complete()})}function fo(t,i,e,n=0,o=!1){let r=i.schedule(function(){e(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(r),!o)return r}function I3(t,i=0){return Qe((e,n)=>{e.subscribe(et(n,o=>fo(n,t,()=>n.next(o),i),()=>fo(n,t,()=>n.complete(),i),o=>fo(n,t,()=>n.error(o),i)))})}function O3(t,i=0){return Qe((e,n)=>{n.add(t.schedule(()=>e.subscribe(n),i))})}function fy(t,i){return Ut(t).pipe(O3(i),I3(i))}function hy(t,i){return Ut(t).pipe(O3(i),I3(i))}function gy(t,i){return new Fe(e=>{let n=0;return i.schedule(function(){n===t.length?e.complete():(e.next(t[n++]),e.closed||this.schedule())})})}function _y(t,i){return new Fe(e=>{let n;return fo(e,i,()=>{n=t[D3](),fo(e,i,()=>{let o,r;try{({value:o,done:r}=n.next())}catch(a){e.error(a);return}r?e.complete():e.next(o)},0,!0)}),()=>qe(n?.return)&&n.return()})}function T3(t,i){if(!t)throw new Error("Iterable cannot be null");return new Fe(e=>{fo(e,i,()=>{let n=t[Symbol.asyncIterator]();fo(e,i,()=>{n.next().then(o=>{o.done?e.complete():e.next(o.value)})},0,!0)})})}function by(t,i){return T3(k3(t),i)}function vy(t,i){if(t!=null){if(x3(t))return fy(t,i);if(Hl(t))return gy(t,i);if(C3(t))return hy(t,i);if(M3(t))return T3(t,i);if(S3(t))return _y(t,i);if(E3(t))return by(t,i)}throw w3(t)}function tn(t,i){return i?vy(t,i):Ut(t)}function re(...t){let i=$r(t);return tn(t,i)}function Gr(t,i){let e=qe(t)?t:()=>t,n=o=>o.error(e());return new Fe(i?o=>i.schedule(n,0,o):n)}function ai(t){return!!t&&(t instanceof Fe||qe(t.lift)&&qe(t.subscribe))}var fr=Ll(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function L6(t,i){let e=typeof i=="object";return new Promise((n,o)=>{let r=new mr({next:a=>{n(a),r.unsubscribe()},error:o,complete:()=>{e?n(i.defaultValue):o(new fr)}});t.subscribe(r)})}function yy(t){return t instanceof Date&&!isNaN(t)}function me(t,i){return Qe((e,n)=>{let o=0;e.subscribe(et(n,r=>{n.next(t.call(i,r,o++))}))})}var{isArray:_j}=Array;function bj(t,i){return _j(i)?t(...i):t(i)}function Ul(t){return me(i=>bj(t,i))}var{isArray:vj}=Array,{getPrototypeOf:yj,prototype:Cj,keys:xj}=Object;function P3(t){if(t.length===1){let i=t[0];if(vj(i))return{args:i,keys:null};if(Mj(i)){let e=xj(i);return{args:e.map(n=>i[n]),keys:e}}}return{args:t,keys:null}}function Mj(t){return t&&typeof t=="object"&&yj(t)===Cj}function L3(t,i){return t.reduce((e,n,o)=>(e[n]=i[o],e),{})}function gi(...t){let i=$r(t),e=y3(t),{args:n,keys:o}=P3(t);if(n.length===0)return tn([],i);let r=new Fe(wj(n,i,o?a=>L3(o,a):Yi));return e?r.pipe(Ul(e)):r}function wj(t,i,e=Yi){return n=>{Cy(i,()=>{let{length:o}=t,r=new Array(o),a=o,s=o;for(let c=0;c{let m=tn(t[c],i),f=!1;m.subscribe(et(n,v=>{r[c]=v,f||(f=!0,s--),s||n.next(e(r.slice()))},()=>{--a||n.complete()}))},n)},n)}}function Cy(t,i,e){t?fo(e,t,i):i()}function xy(t,i,e,n,o,r,a,s){let c=[],m=0,f=0,v=!1,x=()=>{v&&!c.length&&!m&&i.complete()},w=K=>m{r&&i.next(K),m++;let Y=!1;Ut(e(K,f++)).subscribe(et(i,Z=>{o?.(Z),r?w(Z):i.next(Z)},()=>{Y=!0},void 0,()=>{if(Y)try{for(m--;c.length&&mO(Z)):O(Z)}x()}catch(Z){i.error(Z)}}))};return t.subscribe(et(i,w,()=>{v=!0,x()})),()=>{s?.()}}function _n(t,i,e=1/0){return qe(i)?_n((n,o)=>me((r,a)=>i(n,r,o,a))(Ut(t(n,o))),e):(typeof i=="number"&&(e=i),Qe((n,o)=>xy(n,o,t,e)))}function Wr(t=1/0){return _n(Yi,t)}function My(){return Wr(1)}function Li(...t){return My()(tn(t,$r(t)))}function Ai(t){return new Fe(i=>{Ut(t()).subscribe(i)})}function Oa(...t){let i=y3(t),{args:e,keys:n}=P3(t),o=new Fe(r=>{let{length:a}=e;if(!a){r.complete();return}let s=new Array(a),c=a,m=a;for(let f=0;f{v||(v=!0,m--),s[f]=x},()=>c--,void 0,()=>{(!c||!v)&&(m||r.next(n?L3(n,s):s),r.complete())}))}});return i?o.pipe(Ul(i)):o}var Dj=["addListener","removeListener"],Sj=["addEventListener","removeEventListener"],kj=["on","off"];function ed(t,i,e,n){if(qe(e)&&(n=e,e=void 0),n)return ed(t,i,e).pipe(Ul(n));let[o,r]=Oj(t)?Sj.map(a=>s=>t[a](i,s,e)):Ej(t)?Dj.map(wy(t,i)):Ij(t)?kj.map(wy(t,i)):[];if(!o&&Hl(t))return _n(a=>ed(a,i,e))(Ut(t));if(!o)throw new TypeError("Invalid event target");return new Fe(a=>{let s=(...c)=>a.next(1r(s)})}function wy(t,i){return e=>n=>t[e](i,n)}function Ej(t){return qe(t.addListener)&&qe(t.removeListener)}function Ij(t){return qe(t.on)&&qe(t.off)}function Oj(t){return qe(t.addEventListener)&&qe(t.removeEventListener)}function Ta(t=0,i,e=sy){let n=-1;return i!=null&&(v3(i)?e=i:n=i),new Fe(o=>{let r=yy(t)?+t-e.now():t;r<0&&(r=0);let a=0;return e.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},r)})}function A6(t=0,i=Ia){return t<0&&(t=0),Ta(t,t,i)}function ft(...t){let i=$r(t),e=cy(t,1/0),n=t;return n.length?n.length===1?Ut(n[0]):Wr(e)(tn(n,i)):Sn}function Ae(t,i){return Qe((e,n)=>{let o=0;e.subscribe(et(n,r=>t.call(i,r,o++)&&n.next(r)))})}function Dy(t){return Qe((i,e)=>{let n=!1,o=null,r=null,a=!1,s=()=>{if(r?.unsubscribe(),r=null,n){n=!1;let m=o;o=null,e.next(m)}a&&e.complete()},c=()=>{r=null,a&&e.complete()};i.subscribe(et(e,m=>{n=!0,o=m,r||Ut(t(m)).subscribe(r=et(e,s,c))},()=>{a=!0,(!n||!r||r.closed)&&e.complete()}))})}function $l(t,i=Ia){return Dy(()=>Ta(t,i))}function Mo(t){return Qe((i,e)=>{let n=null,o=!1,r;n=i.subscribe(et(e,void 0,void 0,a=>{r=Ut(t(a,Mo(t)(i))),n?(n.unsubscribe(),n=null,r.subscribe(e)):o=!0})),o&&(n.unsubscribe(),n=null,r.subscribe(e))})}function A3(t,i,e,n,o){return(r,a)=>{let s=e,c=i,m=0;r.subscribe(et(a,f=>{let v=m++;c=s?t(c,f,v):(s=!0,f),n&&a.next(c)},o&&(()=>{s&&a.next(c),a.complete()})))}}function z3(t,i){return Qe(A3(t,i,arguments.length>=2,!1,!0))}function Qi(t,i){return qe(i)?_n(t,i,1):_n(t,1)}function hr(t,i=Ia){return Qe((e,n)=>{let o=null,r=null,a=null,s=()=>{if(o){o.unsubscribe(),o=null;let m=r;r=null,n.next(m)}};function c(){let m=a+t,f=i.now();if(f{r=m,a=i.now(),o||(o=i.schedule(c,t),n.add(o))},()=>{s(),n.complete()},void 0,()=>{r=o=null}))})}function fs(t){return Qe((i,e)=>{let n=!1;i.subscribe(et(e,o=>{n=!0,e.next(o)},()=>{n||e.next(t),e.complete()}))})}function Be(t){return t<=0?()=>Sn:Qe((i,e)=>{let n=0;i.subscribe(et(e,o=>{++n<=t&&(e.next(o),t<=n&&e.complete())}))})}function Sy(){return Qe((t,i)=>{t.subscribe(et(i,_c))})}function Gl(t){return me(()=>t)}function z6(t,i){return i?e=>Li(i.pipe(Be(1),Sy()),e.pipe(z6(t))):_n((e,n)=>Ut(t(e,n)).pipe(Be(1),Gl(e)))}function td(t,i=Ia){let e=Ta(t,i);return z6(()=>e)}function Wl(t,i=Yi){return t=t??Tj,Qe((e,n)=>{let o,r=!0;e.subscribe(et(n,a=>{let s=i(a);(r||!t(o,s))&&(r=!1,o=s,n.next(a))}))})}function Tj(t,i){return t===i}function R3(t=Pj){return Qe((i,e)=>{let n=!1;i.subscribe(et(e,o=>{n=!0,e.next(o)},()=>n?e.complete():e.error(t())))})}function Pj(){return new fr}function qr(t){return Qe((i,e)=>{try{i.subscribe(e)}finally{e.add(t)}})}function Yr(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ae((o,r)=>t(o,r,n)):Yi,Be(1),e?fs(i):R3(()=>new fr))}function ql(t){return t<=0?()=>Sn:Qe((i,e)=>{let n=[];i.subscribe(et(e,o=>{n.push(o),t{for(let o of n)e.next(o);e.complete()},void 0,()=>{n=null}))})}function R6(t,i){let e=arguments.length>=2;return n=>n.pipe(t?Ae((o,r)=>t(o,r,n)):Yi,ql(1),e?fs(i):R3(()=>new fr))}function N3(){return Qe((t,i)=>{let e,n=!1;t.subscribe(et(i,o=>{let r=e;e=o,n&&i.next([r,o]),n=!0}))})}function N6(t,i){return Qe(A3(t,i,arguments.length>=2,!0))}function nd(t={}){let{connector:i=()=>new B,resetOnError:e=!0,resetOnComplete:n=!0,resetOnRefCountZero:o=!0}=t;return r=>{let a,s,c,m=0,f=!1,v=!1,x=()=>{s?.unsubscribe(),s=void 0},w=()=>{x(),a=c=void 0,f=v=!1},O=()=>{let K=a;w(),K?.unsubscribe()};return Qe((K,Y)=>{m++,!v&&!f&&x();let Z=c=c??i();Y.add(()=>{m--,m===0&&!v&&!f&&(s=F6(O,o))}),Z.subscribe(Y),!a&&m>0&&(a=new mr({next:Oe=>Z.next(Oe),error:Oe=>{v=!0,x(),s=F6(w,e,Oe),Z.error(Oe)},complete:()=>{f=!0,x(),s=F6(w,n),Z.complete()}}),Ut(K).subscribe(a))})(r)}}function F6(t,i,...e){if(i===!0){t();return}if(i===!1)return;let n=new mr({next:()=>{n.unsubscribe(),t()}});return Ut(i(...e)).subscribe(n)}function hs(t,i,e){let n,o=!1;return t&&typeof t=="object"?{bufferSize:n=1/0,windowTime:i=1/0,refCount:o=!1,scheduler:e}=t:n=t??1/0,nd({connector:()=>new pr(n,i,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function Cc(t){return Ae((i,e)=>t<=e)}function We(...t){let i=$r(t);return Qe((e,n)=>{(i?Li(t,e,i):Li(t,e)).subscribe(n)})}function lt(t,i){return Qe((e,n)=>{let o=null,r=0,a=!1,s=()=>a&&!o&&n.complete();e.subscribe(et(n,c=>{o?.unsubscribe();let m=0,f=r++;Ut(t(c,f)).subscribe(o=et(n,v=>n.next(i?i(c,v,f,m++):v),()=>{o=null,s()}))},()=>{a=!0,s()}))})}function ye(t){return Qe((i,e)=>{Ut(t).subscribe(et(e,()=>e.complete(),_c)),!e.closed&&i.subscribe(e)})}function V6(t,i=!1){return Qe((e,n)=>{let o=0;e.subscribe(et(n,r=>{let a=t(r,o++);(a||i)&&n.next(r),!a&&n.complete()}))})}function Ot(t,i,e){let n=qe(t)||i||e?{next:t,error:i,complete:e}:t;return n?Qe((o,r)=>{var a;(a=n.subscribe)===null||a===void 0||a.call(n);let s=!0;o.subscribe(et(r,c=>{var m;(m=n.next)===null||m===void 0||m.call(n,c),r.next(c)},()=>{var c;s=!1,(c=n.complete)===null||c===void 0||c.call(n),r.complete()},c=>{var m;s=!1,(m=n.error)===null||m===void 0||m.call(n,c),r.error(c)},()=>{var c,m;s&&((c=n.unsubscribe)===null||c===void 0||c.call(n)),(m=n.finalize)===null||m===void 0||m.call(n)}))}):Yi}function ky(t){let i=Je(null);try{return t()}finally{Je(i)}}var Ey=Ne(q({},mc),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"});function Iy(t){if(t.dirty=!1,t.version>0&&!fc(t))return;t.version++;let i=us(t);try{t.cleanup(),t.fn()}finally{pc(t,i)}}var j3="https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss",pe=class extends Error{code;constructor(i,e){super($o(i,e)),this.code=i}};function Lj(t){return`NG0${Math.abs(t)}`}function $o(t,i){return`${Lj(t)}${i?": "+i:""}`}var Qn=globalThis;function Wt(t){for(let i in t)if(t[i]===Wt)return i;throw Error("")}function Py(t,i){for(let e in i)i.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=i[e])}function La(t){if(typeof t=="string")return t;if(Array.isArray(t))return`[${t.map(La).join(", ")}]`;if(t==null)return""+t;let i=t.overriddenName||t.name;if(i)return`${i}`;let e=t.toString();if(e==null)return""+e;let n=e.indexOf(` +`);return n>=0?e.slice(0,n):e}function H3(t,i){return t?i?`${t} ${i}`:t:i||""}var Aj=Wt({__forward_ref__:Wt});function kt(t){return t.__forward_ref__=kt,t.toString=function(){return La(this())},t}function si(t){return X6(t)?t():t}function X6(t){return typeof t=="function"&&t.hasOwnProperty(Aj)&&t.__forward_ref__===kt}function R(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function X(t){return{providers:t.providers||[],imports:t.imports||[]}}function sd(t){return zj(t,U3)}function Z6(t){return sd(t)!==null}function zj(t,i){return t.hasOwnProperty(i)&&t[i]||null}function Rj(t){let i=t?.[U3]??null;return i||null}function j6(t){return t&&t.hasOwnProperty(V3)?t[V3]:null}var U3=Wt({\u0275prov:Wt}),V3=Wt({\u0275inj:Wt}),L=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(i,e){this._desc=i,this.\u0275prov=void 0,typeof e=="number"?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.\u0275prov=R({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function J6(t){return t&&!!t.\u0275providers}var eg=Wt({\u0275cmp:Wt}),tg=Wt({\u0275dir:Wt}),ng=Wt({\u0275pipe:Wt}),ig=Wt({\u0275mod:Wt}),od=Wt({\u0275fac:Wt}),Sc=Wt({__NG_ELEMENT_ID__:Wt}),Oy=Wt({__NG_ENV_ID__:Wt});function Ri(t){return typeof t=="string"?t:t==null?"":String(t)}function Ly(t){return typeof t=="function"?t.name||t.toString():typeof t=="object"&&t!=null&&typeof t.type=="function"?t.type.name||t.type.toString():Ri(t)}var Ay=Wt({ngErrorCode:Wt}),Nj=Wt({ngErrorMessage:Wt}),Fj=Wt({ngTokenPath:Wt});function og(t,i){return zy("",-200,i)}function $3(t,i){throw new pe(-201,!1)}function zy(t,i,e){let n=new pe(i,t);return n[Ay]=i,n[Nj]=t,e&&(n[Fj]=e),n}function Vj(t){return t[Ay]}var H6;function Ry(){return H6}function Ki(t){let i=H6;return H6=t,i}function rg(t,i,e){let n=sd(t);if(n&&n.providedIn=="root")return n.value===void 0?n.value=n.factory():n.value;if(e&8)return null;if(i!==void 0)return i;$3(t,"Injector")}var Bj={},xc=Bj,U6="__NG_DI_FLAG__",$6=class{injector;constructor(i){this.injector=i}retrieve(i,e){let n=Mc(e)||0;try{return this.injector.get(i,n&8?null:xc,n)}catch(o){if(Tl(o))return o;throw o}}};function jj(t,i=0){let e=t3();if(e===void 0)throw new pe(-203,!1);if(e===null)return rg(t,void 0,i);{let n=Hj(i),o=e.retrieve(t,n);if(Tl(o)){if(n.optional)return null;throw o}return o}}function ke(t,i=0){return(Ry()||jj)(si(t),i)}function d(t,i){return ke(t,Mc(i))}function Mc(t){return typeof t>"u"||typeof t=="number"?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function Hj(t){return{optional:!!(t&8),host:!!(t&1),self:!!(t&2),skipSelf:!!(t&4)}}function G6(t){let i=[];for(let e=0;eArray.isArray(e)?G3(e,i):i(e))}function sg(t,i,e){i>=t.length?t.push(e):t.splice(i,0,e)}function cd(t,i){return i>=t.length-1?t.pop():t.splice(i,1)[0]}function Vy(t,i){let e=[];for(let n=0;ni;){let r=o-2;t[o]=t[r],o--}t[i]=e,t[i+1]=n}}function W3(t,i,e){let n=Ql(t,i);return n>=0?t[n|1]=e:(n=~n,By(t,n,i,e)),n}function q3(t,i){let e=Ql(t,i);if(e>=0)return t[e|1]}function Ql(t,i){return $j(t,i,1)}function $j(t,i,e){let n=0,o=t.length>>e;for(;o!==n;){let r=n+(o-n>>1),a=t[r<i?o=r:n=r+1}return~(o<{e.push(a)};return G3(i,a=>{let s=a;B3(s,r,[],n)&&(o||=[],o.push(s))}),o!==void 0&&Uy(o,r),e}function Uy(t,i){for(let e=0;e{i(r,n)})}}function B3(t,i,e,n){if(t=si(t),!t)return!1;let o=null,r=j6(t),a=!r&&Qr(t);if(!r&&!a){let c=t.ngModule;if(r=j6(c),r)o=c;else return!1}else{if(a&&!a.standalone)return!1;o=t}let s=n.has(o);if(a){if(s)return!1;if(n.add(o),a.dependencies){let c=typeof a.dependencies=="function"?a.dependencies():a.dependencies;for(let m of c)B3(m,i,e,n)}}else if(r){if(r.imports!=null&&!s){n.add(o);let m;try{G3(r.imports,f=>{B3(f,i,e,n)&&(m||=[],m.push(f))})}finally{}m!==void 0&&Uy(m,i)}if(!s){let m=gs(o)||(()=>new o);i({provide:o,useFactory:m,deps:zi},o),i({provide:lg,useValue:o,multi:!0},o),i({provide:Aa,useValue:()=>ke(o),multi:!0},o)}let c=r.providers;if(c!=null&&!s){let m=t;mg(c,f=>{i(f,m)})}}else return!1;return o!==t&&t.providers!==void 0}function mg(t,i){for(let e of t)J6(e)&&(e=e.\u0275providers),Array.isArray(e)?mg(e,i):i(e)}var Gj=Wt({provide:String,useValue:Wt});function $y(t){return t!==null&&typeof t=="object"&&Gj in t}function Wj(t){return!!(t&&t.useExisting)}function qj(t){return!!(t&&t.useFactory)}function wc(t){return typeof t=="function"}function Gy(t){return!!t.useClass}var ld=new L(""),F3={},Ty={},B6;function Kl(){return B6===void 0&&(B6=new rd),B6}var Qt=class{},Dc=class extends Qt{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(i,e,n,o){super(),this.parent=e,this.source=n,this.scopes=o,q6(i,a=>this.processProvider(a)),this.records.set(cg,Yl(void 0,this)),o.has("environment")&&this.records.set(Qt,Yl(void 0,this));let r=this.records.get(ld);r!=null&&typeof r.value=="string"&&this.scopes.add(r.value),this.injectorDefTypes=new Set(this.get(lg,zi,{self:!0}))}retrieve(i,e){let n=Mc(e)||0;try{return this.get(i,xc,n)}catch(o){if(Tl(o))return o;throw o}}destroy(){id(this),this._destroyed=!0;let i=Je(null);try{for(let n of this._ngOnDestroyHooks)n.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let n of e)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Je(i)}}onDestroy(i){return id(this),this._onDestroyHooks.push(i),()=>this.removeOnDestroy(i)}runInContext(i){id(this);let e=Ur(this),n=Ki(void 0),o;try{return i()}finally{Ur(e),Ki(n)}}get(i,e=xc,n){if(id(this),i.hasOwnProperty(Oy))return i[Oy](this);let o=Mc(n),r,a=Ur(this),s=Ki(void 0);try{if(!(o&4)){let m=this.records.get(i);if(m===void 0){let f=Zj(i)&&sd(i);f&&this.injectableDefInScope(f)?m=Yl(W6(i),F3):m=null,this.records.set(i,m)}if(m!=null)return this.hydrate(i,m,o)}let c=o&2?Kl():this.parent;return e=o&8&&e===xc?null:e,c.get(i,e)}catch(c){let m=Vj(c);throw m===-200||m===-201?new pe(m,null):c}finally{Ki(s),Ur(a)}}resolveInjectorInitializers(){let i=Je(null),e=Ur(this),n=Ki(void 0),o;try{let r=this.get(Aa,zi,{self:!0});for(let a of r)a()}finally{Ur(e),Ki(n),Je(i)}}toString(){let i=[],e=this.records;for(let n of e.keys())i.push(La(n));return`R3Injector[${i.join(", ")}]`}processProvider(i){i=si(i);let e=wc(i)?i:si(i&&i.provide),n=Qj(i);if(!wc(i)&&i.multi===!0){let o=this.records.get(e);o||(o=Yl(void 0,F3,!0),o.factory=()=>G6(o.multi),this.records.set(e,o)),e=i,o.multi.push(i)}this.records.set(e,n)}hydrate(i,e,n){let o=Je(null);try{if(e.value===Ty)throw og(La(i));return e.value===F3&&(e.value=Ty,e.value=e.factory(void 0,n)),typeof e.value=="object"&&e.value&&Xj(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{Je(o)}}injectableDefInScope(i){if(!i.providedIn)return!1;let e=si(i.providedIn);return typeof e=="string"?e==="any"||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(i){let e=this._onDestroyHooks.indexOf(i);e!==-1&&this._onDestroyHooks.splice(e,1)}};function W6(t){let i=sd(t),e=i!==null?i.factory:gs(t);if(e!==null)return e;if(t instanceof L)throw new pe(204,!1);if(t instanceof Function)return Yj(t);throw new pe(204,!1)}function Yj(t){if(t.length>0)throw new pe(204,!1);let e=Rj(t);return e!==null?()=>e.factory(t):()=>new t}function Qj(t){if($y(t))return Yl(void 0,t.useValue);{let i=pg(t);return Yl(i,F3)}}function pg(t,i,e){let n;if(wc(t)){let o=si(t);return gs(o)||W6(o)}else if($y(t))n=()=>si(t.useValue);else if(qj(t))n=()=>t.useFactory(...G6(t.deps||[]));else if(Wj(t))n=(o,r)=>ke(si(t.useExisting),r!==void 0&&r&8?8:void 0);else{let o=si(t&&(t.useClass||t.provide));if(Kj(t))n=()=>new o(...G6(t.deps));else return gs(o)||W6(o)}return n}function id(t){if(t.destroyed)throw new pe(205,!1)}function Yl(t,i,e=!1){return{factory:t,value:i,multi:e?[]:void 0}}function Kj(t){return!!t.deps}function Xj(t){return t!==null&&typeof t=="object"&&typeof t.ngOnDestroy=="function"}function Zj(t){return typeof t=="function"||typeof t=="object"&&t.ngMetadataName==="InjectionToken"}function q6(t,i){for(let e of t)Array.isArray(e)?q6(e,i):e&&J6(e)?q6(e.\u0275providers,i):i(e)}function bi(t,i){let e;t instanceof Dc?(id(t),e=t):e=new $6(t);let n,o=Ur(e),r=Ki(void 0);try{return i()}finally{Ur(o),Ki(r)}}function fg(){return Ry()!==void 0||t3()!=null}var _r=0,Ge=1,it=2,ci=3,Go=4,Xi=5,kc=6,Xl=7,Rn=8,za=9,Kr=10,Kt=11,Zl=12,hg=13,Ec=14,Ni=15,vs=16,Ic=17,Xr=18,dd=19,gg=20,Pa=21,Q3=22,Ra=23,wo=24,Oc=25,Tc=26,nn=27,Wy=1,_g=6,ys=7,ud=8,Pc=9,Nn=10;function Zr(t){return Array.isArray(t)&&typeof t[Wy]=="object"}function br(t){return Array.isArray(t)&&t[Wy]===!0}function bg(t){return(t.flags&4)!==0}function Na(t){return t.componentOffset>-1}function Jl(t){return(t.flags&1)===1}function vr(t){return!!t.template}function e1(t){return(t[it]&512)!==0}function Lc(t){return(t[it]&256)===256}var vg="svg",qy="math";function Wo(t){for(;Array.isArray(t);)t=t[_r];return t}function yg(t,i){return Wo(i[t])}function qo(t,i){return Wo(i[t.index])}function md(t,i){return t.data[i]}function t1(t,i){return t[i]}function Cg(t,i,e,n){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),i[e]=n}function Yo(t,i){let e=i[t];return Zr(e)?e:e[_r]}function Yy(t){return(t[it]&4)===4}function K3(t){return(t[it]&128)===128}function Qy(t){return br(t[ci])}function Do(t,i){return i==null?null:t[i]}function xg(t){t[Ic]=0}function Mg(t){t[it]&1024||(t[it]|=1024,K3(t)&&Cs(t))}function Ky(t,i){for(;t>0;)i=i[Ec],t--;return i}function pd(t){return!!(t[it]&9216||t[wo]?.dirty)}function X3(t){t[Kr].changeDetectionScheduler?.notify(8),t[it]&64&&(t[it]|=1024),pd(t)&&Cs(t)}function Cs(t){t[Kr].changeDetectionScheduler?.notify(0);let i=_s(t);for(;i!==null&&!(i[it]&8192||(i[it]|=8192,!K3(i)));)i=_s(i)}function wg(t,i){if(Lc(t))throw new pe(911,!1);t[Pa]===null&&(t[Pa]=[]),t[Pa].push(i)}function Xy(t,i){if(t[Pa]===null)return;let e=t[Pa].indexOf(i);e!==-1&&t[Pa].splice(e,1)}function _s(t){let i=t[ci];return br(i)?i[ci]:i}function Dg(t){return t[Xl]??=[]}function Sg(t){return t.cleanup??=[]}function Zy(t,i,e,n){let o=Dg(i);o.push(e),t.firstCreatePass&&Sg(t).push(n,o.length-1)}var yt={lFrame:lC(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Y6=!1;function Jy(){return yt.lFrame.elementDepthCount}function eC(){yt.lFrame.elementDepthCount++}function kg(){yt.lFrame.elementDepthCount--}function Z3(){return yt.bindingsEnabled}function Eg(){return yt.skipHydrationRootTNode!==null}function Ig(t){return yt.skipHydrationRootTNode===t}function Og(){yt.skipHydrationRootTNode=null}function ze(){return yt.lFrame.lView}function on(){return yt.lFrame.tView}function G(t){return yt.lFrame.contextLView=t,t[Rn]}function W(t){return yt.lFrame.contextLView=null,t}function Kn(){let t=Tg();for(;t!==null&&t.type===64;)t=t.parent;return t}function Tg(){return yt.lFrame.currentTNode}function tC(){let t=yt.lFrame,i=t.currentTNode;return t.isParent?i:i.parent}function n1(t,i){let e=yt.lFrame;e.currentTNode=t,e.isParent=i}function Pg(){return yt.lFrame.isParent}function Lg(){yt.lFrame.isParent=!1}function nC(){return yt.lFrame.contextLView}function Ag(){return Y6}function i1(t){let i=Y6;return Y6=t,i}function Fa(){let t=yt.lFrame,i=t.bindingRootIndex;return i===-1&&(i=t.bindingRootIndex=t.tView.bindingStartIndex),i}function J3(){return yt.lFrame.bindingIndex}function iC(t){return yt.lFrame.bindingIndex=t}function Jr(){return yt.lFrame.bindingIndex++}function o1(t){let i=yt.lFrame,e=i.bindingIndex;return i.bindingIndex=i.bindingIndex+t,e}function oC(){return yt.lFrame.inI18n}function rC(t,i){let e=yt.lFrame;e.bindingIndex=e.bindingRootIndex=t,e4(i)}function aC(){return yt.lFrame.currentDirectiveIndex}function e4(t){yt.lFrame.currentDirectiveIndex=t}function sC(t){let i=yt.lFrame.currentDirectiveIndex;return i===-1?null:t[i]}function t4(){return yt.lFrame.currentQueryIndex}function fd(t){yt.lFrame.currentQueryIndex=t}function Jj(t){let i=t[Ge];return i.type===2?i.declTNode:i.type===1?t[Xi]:null}function zg(t,i,e){if(e&4){let o=i,r=t;for(;o=o.parent,o===null&&!(e&1);)if(o=Jj(r),o===null||(r=r[Ec],o.type&10))break;if(o===null)return!1;i=o,t=r}let n=yt.lFrame=cC();return n.currentTNode=i,n.lView=t,!0}function n4(t){let i=cC(),e=t[Ge];yt.lFrame=i,i.currentTNode=e.firstChild,i.lView=t,i.tView=e,i.contextLView=t,i.bindingIndex=e.bindingStartIndex,i.inI18n=!1}function cC(){let t=yt.lFrame,i=t===null?null:t.child;return i===null?lC(t):i}function lC(t){let i={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null,inI18n:!1};return t!==null&&(t.child=i),i}function dC(){let t=yt.lFrame;return yt.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}var Rg=dC;function i4(){let t=dC();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function uC(t){return(yt.lFrame.contextLView=Ky(t,yt.lFrame.contextLView))[Rn]}function Qo(){return yt.lFrame.selectedIndex}function xs(t){yt.lFrame.selectedIndex=t}function r1(){let t=yt.lFrame;return md(t.tView,t.selectedIndex)}function $t(){yt.lFrame.currentNamespace=vg}function Ko(){eH()}function eH(){yt.lFrame.currentNamespace=null}function mC(){return yt.lFrame.currentNamespace}var pC=!0;function o4(){return pC}function hd(t){pC=t}function Q6(t,i=null,e=null,n){let o=Ng(t,i,e,n);return o.resolveInjectorInitializers(),o}function Ng(t,i=null,e=null,n,o=new Set){let r=[e||zi,Hy(t)];return n=n||(typeof t=="object"?void 0:La(t)),new Dc(r,i||Kl(),n||null,o)}var be=class t{static THROW_IF_NOT_FOUND=xc;static NULL=new rd;static create(i,e){if(Array.isArray(i))return Q6({name:""},e,i,"");{let n=i.name??"";return Q6({name:n},i.parent,i.providers,n)}}static \u0275prov=R({token:t,providedIn:"any",factory:()=>ke(cg)});static __NG_ELEMENT_ID__=-1},Me=new L(""),Fi=(()=>{class t{static __NG_ELEMENT_ID__=tH;static __NG_ENV_ID__=e=>e}return t})(),ad=class extends Fi{_lView;constructor(i){super(),this._lView=i}get destroyed(){return Lc(this._lView)}onDestroy(i){let e=this._lView;return wg(e,i),()=>Xy(e,i)}};function tH(){return new ad(ze())}var _i=class{_console=console;handleError(i){this._console.error("ERROR",i)}},Zi=new L("",{providedIn:"root",factory:()=>{let t=d(Qt),i;return e=>{t.destroyed&&!i?setTimeout(()=>{throw e}):(i??=t.get(_i),i.handleError(e))}}}),fC={provide:Aa,useValue:()=>void d(_i),multi:!0};function ea(t){return typeof t=="function"&&t[Yn]!==void 0}function we(t,i){let[e,n,o]=C6(t,i?.equal),r=e,a=r[Yn];return r.set=n,r.update=o,r.asReadonly=r4.bind(r),r}function r4(){let t=this[Yn];if(t.readonlyFn===void 0){let i=()=>this();i[Yn]=t,t.readonlyFn=i}return t.readonlyFn}function Fg(t){return ea(t)&&typeof t.set=="function"}var Ac=(()=>{class t{view;node;constructor(e,n){this.view=e,this.node=n}static __NG_ELEMENT_ID__=nH}return t})();function nH(){return new Ac(ze(),Kn())}var Uo=class{},gd=new L("",{providedIn:"root",factory:()=>!1});var Vg=new L(""),Bg=new L(""),ta=(()=>{class t{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new ct(!1);get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),a1=(()=>{class t{internalPendingTasks=d(ta);scheduler=d(Uo);errorHandler=d(Zi);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let n=this.add();e().catch(this.errorHandler).finally(n)}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})();function zc(...t){}var _d=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new K6})}return t})(),K6=class{dirtyEffectCount=0;queues=new Map;add(i){this.enqueue(i),this.schedule(i)}schedule(i){i.dirty&&this.dirtyEffectCount++}remove(i){let e=i.zone,n=this.queues.get(e);n.has(i)&&(n.delete(i),i.dirty&&this.dirtyEffectCount--)}enqueue(i){let e=i.zone;this.queues.has(e)||this.queues.set(e,new Set);let n=this.queues.get(e);n.has(i)||n.add(i)}flush(){for(;this.dirtyEffectCount>0;){let i=!1;for(let[e,n]of this.queues)e===null?i||=this.flushQueue(n):i||=e.run(()=>this.flushQueue(n));i||(this.dirtyEffectCount=0)}}flushQueue(i){let e=!1;for(let n of i)n.dirty&&(this.dirtyEffectCount--,e=!0,n.run());return e}};function f1(t){return{toString:t}.toString()}var a4="__parameters__";function cH(t){return function(...e){if(t){let n=t(...e);for(let o in n)this[o]=n[o]}}}function ZC(t,i,e){return f1(()=>{let n=cH(i);function o(...r){if(this instanceof o)return n.apply(this,r),this;let a=new o(...r);return s.annotation=a,s;function s(c,m,f){let v=c.hasOwnProperty(a4)?c[a4]:Object.defineProperty(c,a4,{value:[]})[a4];for(;v.length<=f;)v.push(null);return(v[f]=v[f]||[]).push(a),c}}return o.prototype.ngMetadataName=t,o.annotationCls=o,o})}var Xo=ag(ZC("Optional"),8);var oa=ag(ZC("SkipSelf"),4);function JC(t){let i=Qn.ng;if(i&&i.\u0275compilerFacade)return i.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function lH(t){return typeof t=="function"}var b4=class{previousValue;currentValue;firstChange;constructor(i,e,n){this.previousValue=i,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}};function ex(t,i,e,n){i!==null?i.applyValueToInputSignal(i,n):t[e]=n}var Re=(()=>{let t=()=>tx;return t.ngInherit=!0,t})();function tx(t){return t.type.prototype.ngOnChanges&&(t.setInput=uH),dH}function dH(){let t=ix(this),i=t?.current;if(i){let e=t.previous;if(e===gr)t.previous=i;else for(let n in i)e[n]=i[n];t.current=null,this.ngOnChanges(i)}}function uH(t,i,e,n,o){let r=this.declaredInputs[n],a=ix(t)||mH(t,{previous:gr,current:null}),s=a.current||(a.current={}),c=a.previous,m=c[r];s[r]=new b4(m&&m.currentValue,e,c===gr),ex(t,i,o,e)}var nx="__ngSimpleChanges__";function ix(t){return t[nx]||null}function mH(t,i){return t[nx]=i}var hC=[];var rn=function(t,i=null,e){for(let n=0;n=n)break}else i[c]<0&&(t[Ic]+=65536),(s>14>16&&(t[it]&3)===i&&(t[it]+=16384,gC(s,r)):gC(s,r)}var c1=-1,Nc=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(i,e,n,o){this.factory=i,this.name=o,this.canSeeViewProviders=e,this.injectImpl=n}};function hH(t){return(t.flags&8)!==0}function gH(t){return(t.flags&16)!==0}function _H(t,i,e){let n=0;for(;ni){a=r-1;break}}}for(;r>16}function y4(t,i){let e=vH(t),n=i;for(;e>0;)n=n[Ec],e--;return n}var Xg=!0;function C4(t){let i=Xg;return Xg=t,i}var yH=256,cx=yH-1,lx=5,CH=0,na={};function xH(t,i,e){let n;typeof e=="string"?n=e.charCodeAt(0)||0:e.hasOwnProperty(Sc)&&(n=e[Sc]),n==null&&(n=e[Sc]=CH++);let o=n&cx,r=1<>lx)]|=r}function x4(t,i){let e=dx(t,i);if(e!==-1)return e;let n=i[Ge];n.firstCreatePass&&(t.injectorIndex=i.length,Hg(n.data,t),Hg(i,null),Hg(n.blueprint,null));let o=R8(t,i),r=t.injectorIndex;if(sx(o)){let a=v4(o),s=y4(o,i),c=s[Ge].data;for(let m=0;m<8;m++)i[r+m]=s[a+m]|c[a+m]}return i[r+8]=o,r}function Hg(t,i){t.push(0,0,0,0,0,0,0,0,i)}function dx(t,i){return t.injectorIndex===-1||t.parent&&t.parent.injectorIndex===t.injectorIndex||i[t.injectorIndex+8]===null?-1:t.injectorIndex}function R8(t,i){if(t.parent&&t.parent.injectorIndex!==-1)return t.parent.injectorIndex;let e=0,n=null,o=i;for(;o!==null;){if(n=hx(o),n===null)return c1;if(e++,o=o[Ec],n.injectorIndex!==-1)return n.injectorIndex|e<<16}return c1}function Zg(t,i,e){xH(t,i,e)}function MH(t,i){if(i==="class")return t.classes;if(i==="style")return t.styles;let e=t.attrs;if(e){let n=e.length,o=0;for(;o>20,v=n?s:s+f,x=o?s+f:m;for(let w=v;w=c&&O.type===e)return w}if(o){let w=a[c];if(w&&vr(w)&&w.type===e)return c}return null}function Cd(t,i,e,n,o){let r=t[e],a=i.data;if(r instanceof Nc){let s=r;if(s.resolving){let w=Ly(a[e]);throw og(w)}let c=C4(s.canSeeViewProviders);s.resolving=!0;let m=a[e].type||a[e],f,v=s.injectImpl?Ki(s.injectImpl):null,x=zg(t,n,0);try{r=t[e]=s.factory(void 0,o,a,t,n),i.firstCreatePass&&e>=n.directiveStart&&pH(e,a[e],i)}finally{v!==null&&Ki(v),C4(c),s.resolving=!1,Rg()}}return r}function DH(t){if(typeof t=="string")return t.charCodeAt(0)||0;let i=t.hasOwnProperty(Sc)?t[Sc]:void 0;return typeof i=="number"?i>=0?i&cx:SH:i}function bC(t,i,e){let n=1<>lx)]&n)}function vC(t,i){return!(t&2)&&!(t&1&&i)}var Rc=class{_tNode;_lView;constructor(i,e){this._tNode=i,this._lView=e}get(i,e,n){return px(this._tNode,this._lView,i,Mc(n),e)}};function SH(){return new Rc(Kn(),ze())}function Ie(t){return f1(()=>{let i=t.prototype.constructor,e=i[od]||Jg(i),n=Object.prototype,o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==n;){let r=o[od]||Jg(o);if(r&&r!==e)return r;o=Object.getPrototypeOf(o)}return r=>new r})}function Jg(t){return X6(t)?()=>{let i=Jg(si(t));return i&&i()}:gs(t)}function kH(t,i,e,n,o){let r=t,a=i;for(;r!==null&&a!==null&&a[it]&2048&&!e1(a);){let s=fx(r,a,e,n|2,na);if(s!==na)return s;let c=r.parent;if(!c){let m=a[gg];if(m){let f=m.get(e,na,n);if(f!==na)return f}c=hx(a),a=a[Ec]}r=c}return o}function hx(t){let i=t[Ge],e=i.type;return e===2?i.declTNode:e===1?t[Xi]:null}function Od(t){return MH(Kn(),t)}function EH(){return h1(Kn(),ze())}function h1(t,i){return new Q(qo(t,i))}var Q=(()=>{class t{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=EH}return t})();function gx(t){return t instanceof Q?t.nativeElement:t}function IH(){return this._results[Symbol.iterator]()}var In=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new B}constructor(i=!1){this._emitDistinctChangesOnly=i}get(i){return this._results[i]}map(i){return this._results.map(i)}filter(i){return this._results.filter(i)}find(i){return this._results.find(i)}reduce(i,e){return this._results.reduce(i,e)}forEach(i){this._results.forEach(i)}some(i){return this._results.some(i)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(i,e){this.dirty=!1;let n=Fy(i);(this._changesDetected=!Ny(this._results,n,e))&&(this._results=n,this.length=n.length,this.last=n[this.length-1],this.first=n[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(i){this._onDirty=i}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=IH};function _x(t){return(t.flags&128)===128}var N8=(function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t})(N8||{}),bx=new Map,OH=0;function TH(){return OH++}function PH(t){bx.set(t[dd],t)}function e8(t){bx.delete(t[dd])}var yC="__ngContext__";function d1(t,i){Zr(i)?(t[yC]=i[dd],PH(i)):t[yC]=i}function vx(t){return Cx(t[Zl])}function yx(t){return Cx(t[Go])}function Cx(t){for(;t!==null&&!br(t);)t=t[Go];return t}var t8;function F8(t){t8=t}function V8(){if(t8!==void 0)return t8;if(typeof document<"u")return document;throw new pe(210,!1)}var Ds=new L("",{providedIn:"root",factory:()=>LH}),LH="ng",R4=new L(""),Bc=new L("",{providedIn:"platform",factory:()=>"unknown"});var Td=new L(""),g1=new L("",{providedIn:"root",factory:()=>V8().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var AH="h",zH="b";var xx="r";var Mx="di";var wx=!1,Dx=new L("",{providedIn:"root",factory:()=>wx});var N4=new L("");var RH=(t,i,e,n)=>{};function NH(t,i,e,n){RH(t,i,e,n)}function F4(t){return(t.flags&32)===32}var FH=()=>null;function Sx(t,i,e=!1){return FH(t,i,e)}function kx(t,i){let e=t.contentQueries;if(e!==null){let n=Je(null);try{for(let o=0;ot,createScript:t=>t,createScriptURL:t=>t})}catch{}return s4}function V4(t){return VH()?.createHTML(t)||t}var c4;function Ex(){if(c4===void 0&&(c4=null,Qn.trustedTypes))try{c4=Qn.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return c4}function CC(t){return Ex()?.createHTML(t)||t}function xC(t){return Ex()?.createScriptURL(t)||t}var Ba=class{changingThisBreaksApplicationSecurity;constructor(i){this.changingThisBreaksApplicationSecurity=i}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${j3})`}},i8=class extends Ba{getTypeName(){return"HTML"}},o8=class extends Ba{getTypeName(){return"Style"}},r8=class extends Ba{getTypeName(){return"Script"}},a8=class extends Ba{getTypeName(){return"URL"}},s8=class extends Ba{getTypeName(){return"ResourceURL"}};function So(t){return t instanceof Ba?t.changingThisBreaksApplicationSecurity:t}function ra(t,i){let e=Ix(t);if(e!=null&&e!==i){if(e==="ResourceURL"&&i==="URL")return!0;throw new Error(`Required a safe ${i}, got a ${e} (see ${j3})`)}return e===i}function Ix(t){return t instanceof Ba&&t.getTypeName()||null}function j8(t){return new i8(t)}function H8(t){return new o8(t)}function U8(t){return new r8(t)}function $8(t){return new a8(t)}function G8(t){return new s8(t)}function BH(t){let i=new l8(t);return jH()?new c8(i):i}var c8=class{inertDocumentHelper;constructor(i){this.inertDocumentHelper=i}getInertBodyElement(i){i=""+i;try{let e=new window.DOMParser().parseFromString(V4(i),"text/html").body;return e===null?this.inertDocumentHelper.getInertBodyElement(i):(e.firstChild?.remove(),e)}catch{return null}}},l8=class{defaultDoc;inertDocument;constructor(i){this.defaultDoc=i,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(i){let e=this.inertDocument.createElement("template");return e.innerHTML=V4(i),e}};function jH(){try{return!!new window.DOMParser().parseFromString(V4(""),"text/html")}catch{return!1}}var HH=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Pd(t){return t=String(t),t.match(HH)?t:"unsafe:"+t}function ja(t){let i={};for(let e of t.split(","))i[e]=!0;return i}function Ld(...t){let i={};for(let e of t)for(let n in e)e.hasOwnProperty(n)&&(i[n]=!0);return i}var Ox=ja("area,br,col,hr,img,wbr"),Tx=ja("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Px=ja("rp,rt"),UH=Ld(Px,Tx),$H=Ld(Tx,ja("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),GH=Ld(Px,ja("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),MC=Ld(Ox,$H,GH,UH),Lx=ja("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),WH=ja("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),qH=ja("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),YH=Ld(Lx,WH,qH),QH=ja("script,style,template"),d8=class{sanitizedSomething=!1;buf=[];sanitizeChildren(i){let e=i.firstChild,n=!0,o=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild){o.push(e),e=ZH(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=XH(e);if(r){e=r;break}e=o.pop()}}return this.buf.join("")}startElement(i){let e=wC(i).toLowerCase();if(!MC.hasOwnProperty(e))return this.sanitizedSomething=!0,!QH.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);let n=i.attributes;for(let o=0;o"),!0}endElement(i){let e=wC(i).toLowerCase();MC.hasOwnProperty(e)&&!Ox.hasOwnProperty(e)&&(this.buf.push(""))}chars(i){this.buf.push(DC(i))}};function KH(t,i){return(t.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function XH(t){let i=t.nextSibling;if(i&&t!==i.previousSibling)throw Ax(i);return i}function ZH(t){let i=t.firstChild;if(i&&KH(t,i))throw Ax(i);return i}function wC(t){let i=t.nodeName;return typeof i=="string"?i:"FORM"}function Ax(t){return new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`)}var JH=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,eU=/([^\#-~ |!])/g;function DC(t){return t.replace(/&/g,"&").replace(JH,function(i){let e=i.charCodeAt(0),n=i.charCodeAt(1);return"&#"+((e-55296)*1024+(n-56320)+65536)+";"}).replace(eU,function(i){return"&#"+i.charCodeAt(0)+";"}).replace(//g,">")}var l4;function B4(t,i){let e=null;try{l4=l4||BH(t);let n=i?String(i):"";e=l4.getInertBodyElement(n);let o=5,r=n;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,n=r,r=e.innerHTML,e=l4.getInertBodyElement(n)}while(n!==r);let s=new d8().sanitizeChildren(SC(e)||e);return V4(s)}finally{if(e){let n=SC(e)||e;for(;n.firstChild;)n.firstChild.remove()}}}function SC(t){return"content"in t&&tU(t)?t.content:null}function tU(t){return t.nodeType===Node.ELEMENT_NODE&&t.nodeName==="TEMPLATE"}var nU=/^>|^->||--!>|)/g,oU="\u200B$1\u200B";function rU(t){return t.replace(nU,i=>i.replace(iU,oU))}function aU(t,i){return t.createText(i)}function sU(t,i,e){t.setValue(i,e)}function cU(t,i){return t.createComment(rU(i))}function zx(t,i,e){return t.createElement(i,e)}function M4(t,i,e,n,o){t.insertBefore(i,e,n,o)}function Rx(t,i,e){t.appendChild(i,e)}function kC(t,i,e,n,o){n!==null?M4(t,i,e,n,o):Rx(t,i,e)}function Nx(t,i,e,n){t.removeChild(null,i,e,n)}function lU(t,i,e){t.setAttribute(i,"style",e)}function dU(t,i,e){e===""?t.removeAttribute(i,"class"):t.setAttribute(i,"class",e)}function Fx(t,i,e){let{mergedAttrs:n,classes:o,styles:r}=e;n!==null&&_H(t,i,n),o!==null&&dU(t,i,o),r!==null&&lU(t,i,r)}var Fn=(function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t})(Fn||{});function jc(t){let i=q8();return i?CC(i.sanitize(Fn.HTML,t)||""):ra(t,"HTML")?CC(So(t)):B4(V8(),Ri(t))}function _1(t){let i=q8();return i?i.sanitize(Fn.URL,t)||"":ra(t,"URL")?So(t):Pd(Ri(t))}function Vx(t){let i=q8();if(i)return xC(i.sanitize(Fn.RESOURCE_URL,t)||"");if(ra(t,"ResourceURL"))return xC(So(t));throw new pe(904,!1)}function uU(t,i){return i==="src"&&(t==="embed"||t==="frame"||t==="iframe"||t==="media"||t==="script")||i==="href"&&(t==="base"||t==="link")?Vx:_1}function W8(t,i,e){return uU(i,e)(t)}function q8(){let t=ze();return t&&t[Kr].sanitizer}function mU(t){return t.ownerDocument.defaultView}function pU(t){return t.ownerDocument}function Bx(t){return t instanceof Function?t():t}function fU(t,i,e){let n=t.length;for(;;){let o=t.indexOf(i,e);if(o===-1)return o;if(o===0||t.charCodeAt(o-1)<=32){let r=i.length;if(o+r===n||t.charCodeAt(o+r)<=32)return o}e=o+1}}var jx="ng-template";function hU(t,i,e,n){let o=0;if(n){for(;o-1){let r;for(;++or?v="":v=o[f+1].toLowerCase(),n&2&&m!==v){if(yr(n))return!1;a=!0}}}}return yr(n)||a}function yr(t){return(t&1)===0}function bU(t,i,e,n){if(i===null)return-1;let o=0;if(n||!e){let r=!1;for(;o-1)for(e++;e0?'="'+s+'"':"")+"]"}else n&8?o+="."+a:n&4&&(o+=" "+a);else o!==""&&!yr(a)&&(i+=EC(r,o),o=""),n=a,r=r||!yr(n);e++}return o!==""&&(i+=EC(r,o)),i}function wU(t){return t.map(MU).join(",")}function DU(t){let i=[],e=[],n=1,o=2;for(;nnull),a=n;if(i&&typeof i=="object"){let c=i;o=c.next?.bind(c),r=c.error?.bind(c),a=c.complete?.bind(c)}this.__isAsync&&(r=this.wrapInTimeout(r),o&&(o=this.wrapInTimeout(o)),a&&(a=this.wrapInTimeout(a)));let s=super.subscribe({next:o,error:r,complete:a});return i instanceof Se&&i.add(s),s}wrapInTimeout(i){return e=>{let n=this.pendingTasks?.add();setTimeout(()=>{try{i(e)}finally{n!==void 0&&this.pendingTasks?.remove(n)}})}}},j=m8;function qx(t){let i,e;function n(){t=zc;try{e!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(e),i!==void 0&&clearTimeout(i)}catch{}}return i=setTimeout(()=>{t(),n()}),typeof requestAnimationFrame=="function"&&(e=requestAnimationFrame(()=>{t(),n()})),()=>n()}function OC(t){return queueMicrotask(()=>t()),()=>{t=zc}}var J8="isAngularZone",w4=J8+"_ID",OU=0,se=class t{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new j(!1);onMicrotaskEmpty=new j(!1);onStable=new j(!1);onError=new j(!1);constructor(i){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:r=Wx}=i;if(typeof Zone>"u")throw new pe(908,!1);Zone.assertZonePatched();let a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&n,a.shouldCoalesceRunChangeDetection=o,a.callbackScheduled=!1,a.scheduleInRootZone=r,LU(a)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(J8)===!0}static assertInAngularZone(){if(!t.isInAngularZone())throw new pe(909,!1)}static assertNotInAngularZone(){if(t.isInAngularZone())throw new pe(909,!1)}run(i,e,n){return this._inner.run(i,e,n)}runTask(i,e,n,o){let r=this._inner,a=r.scheduleEventTask("NgZoneEvent: "+o,i,TU,zc,zc);try{return r.runTask(a,e,n)}finally{r.cancelTask(a)}}runGuarded(i,e,n){return this._inner.runGuarded(i,e,n)}runOutsideAngular(i){return this._outer.run(i)}},TU={};function e5(t){if(t._nesting==0&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function PU(t){if(t.isCheckStableRunning||t.callbackScheduled)return;t.callbackScheduled=!0;function i(){qx(()=>{t.callbackScheduled=!1,p8(t),t.isCheckStableRunning=!0,e5(t),t.isCheckStableRunning=!1})}t.scheduleInRootZone?Zone.root.run(()=>{i()}):t._outer.run(()=>{i()}),p8(t)}function LU(t){let i=()=>{PU(t)},e=OU++;t._inner=t._inner.fork({name:"angular",properties:{[J8]:!0,[w4]:e,[w4+e]:!0},onInvokeTask:(n,o,r,a,s,c)=>{if(AU(c))return n.invokeTask(r,a,s,c);try{return TC(t),n.invokeTask(r,a,s,c)}finally{(t.shouldCoalesceEventChangeDetection&&a.type==="eventTask"||t.shouldCoalesceRunChangeDetection)&&i(),PC(t)}},onInvoke:(n,o,r,a,s,c,m)=>{try{return TC(t),n.invoke(r,a,s,c,m)}finally{t.shouldCoalesceRunChangeDetection&&!t.callbackScheduled&&!zU(c)&&i(),PC(t)}},onHasTask:(n,o,r,a)=>{n.hasTask(r,a),o===r&&(a.change=="microTask"?(t._hasPendingMicrotasks=a.microTask,p8(t),e5(t)):a.change=="macroTask"&&(t.hasPendingMacrotasks=a.macroTask))},onHandleError:(n,o,r,a)=>(n.handleError(r,a),t.runOutsideAngular(()=>t.onError.emit(a)),!1)})}function p8(t){t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&t.callbackScheduled===!0?t.hasPendingMicrotasks=!0:t.hasPendingMicrotasks=!1}function TC(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function PC(t){t._nesting--,e5(t)}var xd=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new j;onMicrotaskEmpty=new j;onStable=new j;onError=new j;run(i,e,n){return i.apply(e,n)}runGuarded(i,e,n){return i.apply(e,n)}runOutsideAngular(i){return i()}runTask(i,e,n,o){return i.apply(e,n)}};function AU(t){return Yx(t,"__ignore_ng_zone__")}function zU(t){return Yx(t,"__scheduler_tick__")}function Yx(t,i){return!Array.isArray(t)||t.length!==1?!1:t[0]?.data?.[i]===!0}function Qx(t="zone.js",i){return t==="noop"?new xd:t==="zone.js"?new se(i):t}var U4=(()=>{class t{impl=null;execute(){this.impl?.execute()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),t5=[0,1,2,3],n5=(()=>{class t{ngZone=d(se);scheduler=d(Uo);errorHandler=d(_i,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){d(Ss,{optional:!0})}execute(){let e=this.sequences.size>0;e&&rn(16),this.executing=!0;for(let n of t5)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[n]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let r=o.hooks[n];return r(o.pipelinedValue)},o.snapshot))}catch(r){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(r)}this.executing=!1;for(let n of this.sequences)n.afterRun(),n.once&&(this.sequences.delete(n),n.destroy());for(let n of this.deferredRegistrations)this.sequences.add(n);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&rn(17)}register(e){let{view:n}=e;n!==void 0?((n[Oc]??=[]).push(e),Cs(n),n[it]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,n){return n?n.run(H4.AFTER_NEXT_RENDER,e):e()}static \u0275prov=R({token:t,providedIn:"root",factory:()=>new t})}return t})(),Md=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(i,e,n,o,r,a=null){this.impl=i,this.hooks=e,this.view=n,this.once=o,this.snapshot=a,this.unregisterOnDestroy=r?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let i=this.view?.[Oc];i&&(this.view[Oc]=i.filter(e=>e!==this))}};function Ct(t,i){let e=i?.injector??d(be);return aa("NgAfterNextRender"),NU(t,e,i,!0)}function RU(t){return t instanceof Function?[void 0,void 0,t,void 0]:[t.earlyRead,t.write,t.mixedReadWrite,t.read]}function NU(t,i,e,n){let o=i.get(U4);o.impl??=i.get(n5);let r=i.get(Ss,null,{optional:!0}),a=e?.manualCleanup!==!0?i.get(Fi):null,s=i.get(Ac,null,{optional:!0}),c=new Md(o.impl,RU(t),s?.view,n,a,r?.snapshot(null));return o.impl.register(c),c}var Kx=new L("",{providedIn:"root",factory:()=>({queue:new Set,isScheduled:!1,scheduler:null})});function Xx(t,i,e){let n=t.get(Kx);if(Array.isArray(i))for(let o of i)n.queue.add(o),e?.detachedLeaveAnimationFns?.push(o);else n.queue.add(i),e?.detachedLeaveAnimationFns?.push(i);n.scheduler&&n.scheduler(t)}function FU(t,i){let e=t.get(Kx);if(i.detachedLeaveAnimationFns){for(let n of i.detachedLeaveAnimationFns)e.queue.delete(n);i.detachedLeaveAnimationFns=void 0}}function VU(t,i){for(let[e,n]of i)Xx(t,n.animateFns)}function LC(t,i,e,n){let o=t?.[Tc]?.enter;i!==null&&o&&o.has(e.index)&&VU(n,o)}function s1(t,i,e,n,o,r,a,s){if(o!=null){let c,m=!1;br(o)?c=o:Zr(o)&&(m=!0,o=o[_r]);let f=Wo(o);t===0&&n!==null?(LC(s,n,r,e),a==null?Rx(i,n,f):M4(i,n,f,a||null,!0)):t===1&&n!==null?(LC(s,n,r,e),M4(i,n,f,a||null,!0)):t===2?AC(s,r,e,v=>{Nx(i,f,m,v)}):t===3&&AC(s,r,e,()=>{i.destroyNode(f)}),c!=null&&KU(i,t,e,c,r,n,a)}}function BU(t,i){Zx(t,i),i[_r]=null,i[Xi]=null}function jU(t,i,e,n,o,r){n[_r]=o,n[Xi]=i,G4(t,n,e,1,o,r)}function Zx(t,i){i[Kr].changeDetectionScheduler?.notify(9),G4(t,i,i[Kt],2,null,null)}function HU(t){let i=t[Zl];if(!i)return Ug(t[Ge],t);for(;i;){let e=null;if(Zr(i))e=i[Zl];else{let n=i[Nn];n&&(e=n)}if(!e){for(;i&&!i[Go]&&i!==t;)Zr(i)&&Ug(i[Ge],i),i=i[ci];i===null&&(i=t),Zr(i)&&Ug(i[Ge],i),e=i&&i[Go]}i=e}}function i5(t,i){let e=t[Pc],n=e.indexOf(i);e.splice(n,1)}function $4(t,i){if(Lc(i))return;let e=i[Kt];e.destroyNode&&G4(t,i,e,3,null,null),HU(i)}function Ug(t,i){if(Lc(i))return;let e=Je(null);try{i[it]&=-129,i[it]|=256,i[wo]&&ms(i[wo]),GU(t,i),$U(t,i),i[Ge].type===1&&i[Kt].destroy();let n=i[vs];if(n!==null&&br(i[ci])){n!==i[ci]&&i5(n,i);let o=i[Xr];o!==null&&o.detachView(t)}e8(i)}finally{Je(e)}}function AC(t,i,e,n){let o=t?.[Tc];if(o==null||o.leave==null||!o.leave.has(i.index))return n(!1);t&&Fc.add(t),Xx(e,()=>{if(o.leave&&o.leave.has(i.index)){let a=o.leave.get(i.index),s=[];if(a){for(let c=0;c{t[Tc].running=void 0,Fc.delete(t),i(!0)});return}i(!1)}function $U(t,i){let e=t.cleanup,n=i[Xl];if(e!==null)for(let a=0;a=0?n[s]():n[-s].unsubscribe(),a+=2}else{let s=n[e[a+1]];e[a].call(s)}n!==null&&(i[Xl]=null);let o=i[Pa];if(o!==null){i[Pa]=null;for(let a=0;ann&&Gx(t,i,nn,!1),rn(a?2:0,o,e),e(n,o)}finally{xs(r),rn(a?3:1,o,e)}}function W4(t,i,e){n$(t,i,e),(e.flags&64)===64&&i$(t,i,e)}function Ad(t,i,e=qo){let n=i.localNames;if(n!==null){let o=i.index+1;for(let r=0;rnull;function t$(t){return t==="class"?"className":t==="for"?"htmlFor":t==="formaction"?"formAction":t==="innerHtml"?"innerHTML":t==="readonly"?"readOnly":t==="tabindex"?"tabIndex":t}function oM(t,i,e,n,o,r){let a=i[Ge];if(q4(t,a,i,e,n)){Na(t)&&aM(i,t.index);return}t.type&3&&(e=t$(e)),rM(t,i,e,n,o,r)}function rM(t,i,e,n,o,r){if(t.type&3){let a=qo(t,i);n=r!=null?r(n,t.value||"",e):n,o.setProperty(a,e,n)}else t.type&12}function aM(t,i){let e=Yo(i,t);e[it]&16||(e[it]|=64)}function n$(t,i,e){let n=e.directiveStart,o=e.directiveEnd;Na(e)&&EU(i,e,t.data[n+e.componentOffset]),t.firstCreatePass||x4(e,i);let r=e.initialInputs;for(let a=n;a{Cs(t.lView)},consumerOnSignalRead(){this.lView[wo]=this}});function h$(t){let i=t[wo]??Object.create(g$);return i.lView=t,i}var g$=Ne(q({},mc),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:t=>{let i=_s(t.lView);for(;i&&!uM(i[Ge]);)i=_s(i);i&&Mg(i)},consumerOnSignalRead(){this.lView[wo]=this}});function uM(t){return t.type!==2}function mM(t){if(t[Ra]===null)return;let i=!0;for(;i;){let e=!1;for(let n of t[Ra])n.dirty&&(e=!0,n.zone===null||Zone.current===n.zone?n.run():n.zone.run(()=>n.run()));i=e&&!!(t[it]&8192)}}var _$=100;function pM(t,i=0){let n=t[Kr].rendererFactory,o=!1;o||n.begin?.();try{b$(t,i)}finally{o||n.end?.()}}function b$(t,i){let e=Ag();try{i1(!0),h8(t,i);let n=0;for(;pd(t);){if(n===_$)throw new pe(103,!1);n++,h8(t,1)}}finally{i1(e)}}function v$(t,i,e,n){if(Lc(i))return;let o=i[it],r=!1,a=!1;n4(i);let s=!0,c=null,m=null;r||(uM(t)?(m=u$(i),c=us(m)):a3()===null?(s=!1,m=h$(i),c=us(m)):i[wo]&&(ms(i[wo]),i[wo]=null));try{xg(i),iC(t.bindingStartIndex),e!==null&&iM(t,i,e,2,n);let f=(o&3)===3;if(!r)if(f){let w=t.preOrderCheckHooks;w!==null&&p4(i,w,null)}else{let w=t.preOrderHooks;w!==null&&f4(i,w,0,null),jg(i,0)}if(a||y$(i),mM(i),fM(i,0),t.contentQueries!==null&&kx(t,i),!r)if(f){let w=t.contentCheckHooks;w!==null&&p4(i,w)}else{let w=t.contentHooks;w!==null&&f4(i,w,1),jg(i,1)}x$(t,i);let v=t.components;v!==null&&gM(i,v,0);let x=t.viewQuery;if(x!==null&&n8(2,x,n),!r)if(f){let w=t.viewCheckHooks;w!==null&&p4(i,w)}else{let w=t.viewHooks;w!==null&&f4(i,w,2),jg(i,2)}if(t.firstUpdatePass===!0&&(t.firstUpdatePass=!1),i[Q3]){for(let w of i[Q3])w();i[Q3]=null}r||(lM(i),i[it]&=-73)}catch(f){throw r||Cs(i),f}finally{m!==null&&(pc(m,c),s&&p$(m)),i4()}}function fM(t,i){for(let e=vx(t);e!==null;e=yx(e))for(let n=Nn;n0&&(t[e-1][Go]=n[Go]);let r=cd(t,Nn+i);BU(n[Ge],n);let a=r[Xr];a!==null&&a.detachView(r[Ge]),n[ci]=null,n[Go]=null,n[it]&=-129}return n}function M$(t,i,e,n){let o=Nn+n,r=e.length;n>0&&(e[o-1][Go]=i),n-1&&(Dd(i,n),cd(e,n))}this._attachedToViewContainer=!1}$4(this._lView[Ge],this._lView)}onDestroy(i){wg(this._lView,i)}markForCheck(){d5(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[it]&=-129}reattach(){X3(this._lView),this._lView[it]|=128}detectChanges(){this._lView[it]|=1024,pM(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new pe(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let i=e1(this._lView),e=this._lView[vs];e!==null&&!i&&i5(e,this._lView),Zx(this._lView[Ge],this._lView)}attachToAppRef(i){if(this._attachedToViewContainer)throw new pe(902,!1);this._appRef=i;let e=e1(this._lView),n=this._lView[vs];n!==null&&!e&&yM(n,this._lView),X3(this._lView)}};var tt=(()=>{class t{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=w$;constructor(e,n,o){this._declarationLView=e,this._declarationTContainer=n,this.elementRef=o}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,n){return this.createEmbeddedViewImpl(e,n)}createEmbeddedViewImpl(e,n,o){let r=zd(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:n,dehydratedView:o});return new Ms(r)}}return t})();function w$(){return Y4(Kn(),ze())}function Y4(t,i){return t.type&4?new tt(i,t,h1(t,i)):null}function b1(t,i,e,n,o){let r=t.data[i];if(r===null)r=D$(t,i,e,n,o),oC()&&(r.flags|=32);else if(r.type&64){r.type=e,r.value=n,r.attrs=o;let a=tC();r.injectorIndex=a===null?-1:a.injectorIndex}return n1(r,!0),r}function D$(t,i,e,n,o){let r=Tg(),a=Pg(),s=a?r:r&&r.parent,c=t.data[i]=k$(t,s,e,i,n,o);return S$(t,c,r,a),c}function S$(t,i,e,n){t.firstChild===null&&(t.firstChild=i),e!==null&&(n?e.child==null&&i.parent!==null&&(e.child=i):e.next===null&&(e.next=i,i.prev=e))}function k$(t,i,e,n,o,r){let a=i?i.injectorIndex:-1,s=0;return Eg()&&(s|=128),{type:e,index:n,insertBeforeIndex:null,injectorIndex:a,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:s,providerIndexes:0,value:o,attrs:r,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:i,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var q6e=new RegExp(`^(\\d+)*(${zH}|${AH})*(.*)`);function E$(t){let i=t[_g]??[],n=t[ci][Kt],o=[];for(let r of i)r.data[Mx]!==void 0?o.push(r):I$(r,n);t[_g]=o}function I$(t,i){let e=0,n=t.firstChild;if(n){let o=t.data[xx];for(;enull,T$=()=>null;function D4(t,i){return O$(t,i)}function CM(t,i,e){return T$(t,i,e)}var xM=class{},Q4=class{},g8=class{resolveComponentFactory(i){throw new pe(917,!1)}},Nd=class{static NULL=new g8},On=class{},Ke=(()=>{class t{destroyNode=null;static __NG_ELEMENT_ID__=()=>P$()}return t})();function P$(){let t=ze(),i=Kn(),e=Yo(i.index,t);return(Zr(e)?e:t)[Kt]}var MM=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>null})}return t})();var g4={},_8=class{injector;parentInjector;constructor(i,e){this.injector=i,this.parentInjector=e}get(i,e,n){let o=this.injector.get(i,g4,n);return o!==g4||e===g4?o:this.parentInjector.get(i,e,n)}};function S4(t,i,e){let n=e?t.styles:null,o=e?t.classes:null,r=0;if(i!==null)for(let a=0;a0&&(e.directiveToIndex=new Map);for(let x=0;x0;){let e=t[--i];if(typeof e=="number"&&e<0)return e}return 0}function B$(t,i,e){if(e){if(i.exportAs)for(let n=0;nn(Wo(K[t.index])):t.index;OM(O,i,e,r,s,w,!1)}}return m}function $$(t){return t.startsWith("animation")||t.startsWith("transition")}function G$(t,i,e,n){let o=t.cleanup;if(o!=null)for(let r=0;rc?s[c]:null}typeof a=="string"&&(r+=2)}return null}function OM(t,i,e,n,o,r,a){let s=i.firstCreatePass?Sg(i):null,c=Dg(e),m=c.length;c.push(o,r),s&&s.push(n,t,m,(m+1)*(a?-1:1))}function BC(t,i,e,n,o,r){let a=i[e],s=i[Ge],m=s.data[e].outputs[n],v=a[m].subscribe(r);OM(t.index,s,i,o,r,v,!0)}var b8=Symbol("BINDING");var k4=class extends Nd{ngModule;constructor(i){super(),this.ngModule=i}resolveComponentFactory(i){let e=Qr(i);return new ws(e,this.ngModule)}};function W$(t){return Object.keys(t).map(i=>{let[e,n,o]=t[i],r={propName:e,templateName:i,isSignal:(n&j4.SignalBased)!==0};return o&&(r.transform=o),r})}function q$(t){return Object.keys(t).map(i=>({propName:t[i],templateName:i}))}function Y$(t,i,e){let n=i instanceof Qt?i:i?.injector;return n&&t.getStandaloneInjector!==null&&(n=t.getStandaloneInjector(n)||n),n?new _8(e,n):e}function Q$(t){let i=t.get(On,null);if(i===null)throw new pe(407,!1);let e=t.get(MM,null),n=t.get(Uo,null);return{rendererFactory:i,sanitizer:e,changeDetectionScheduler:n,ngReflect:!1}}function K$(t,i){let e=TM(t);return zx(i,e,e==="svg"?vg:e==="math"?qy:null)}function TM(t){return(t.selectors[0][0]||"div").toLowerCase()}var ws=class extends Q4{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=W$(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=q$(this.componentDef.outputs),this.cachedOutputs}constructor(i,e){super(),this.componentDef=i,this.ngModule=e,this.componentType=i.type,this.selector=wU(i.selectors),this.ngContentSelectors=i.ngContentSelectors??[],this.isBoundToModule=!!e}create(i,e,n,o,r,a){rn(22);let s=Je(null);try{let c=this.componentDef,m=X$(n,c,a,r),f=Y$(c,o||this.ngModule,i),v=Q$(f),x=v.rendererFactory.createRenderer(null,c),w=n?ZU(x,n,c.encapsulation,f):K$(c,x),O=a?.some(jC)||r?.some(Z=>typeof Z!="function"&&Z.bindings.some(jC)),K=K8(null,m,null,512|Ux(c),null,null,v,x,f,null,Sx(w,f,!0));K[nn]=w,n4(K);let Y=null;try{let Z=u5(nn,K,2,"#host",()=>m.directiveRegistry,!0,0);Fx(x,w,Z),d1(w,K),W4(m,K,Z),B8(m,Z,K),m5(m,Z),e!==void 0&&J$(Z,this.ngContentSelectors,e),Y=Yo(Z.index,K),K[Rn]=Y[Rn],l5(m,K,null)}catch(Z){throw Y!==null&&e8(Y),e8(K),Z}finally{rn(23),i4()}return new E4(this.componentType,K,!!O)}finally{Je(s)}}};function X$(t,i,e,n){let o=t?["ng-version","20.3.15"]:DU(i.selectors[0]),r=null,a=null,s=0;if(e)for(let f of e)s+=f[b8].requiredVars,f.create&&(f.targetIdx=0,(r??=[]).push(f)),f.update&&(f.targetIdx=0,(a??=[]).push(f));if(n)for(let f=0;f{if(e&1&&t)for(let n of t)n.create();if(e&2&&i)for(let n of i)n.update()}}function jC(t){let i=t[b8].kind;return i==="input"||i==="twoWay"}var E4=class extends xM{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(i,e,n){super(),this._rootLView=e,this._hasInputBindings=n,this._tNode=md(e[Ge],nn),this.location=h1(this._tNode,e),this.instance=Yo(this._tNode.index,e)[Rn],this.hostView=this.changeDetectorRef=new Ms(e,void 0),this.componentType=i}setInput(i,e){this._hasInputBindings;let n=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(i)&&Object.is(this.previousInputValues.get(i),e))return;let o=this._rootLView,r=q4(n,o[Ge],o,i,e);this.previousInputValues.set(i,e);let a=Yo(n.index,o);d5(a,1)}get injector(){return new Rc(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(i){this.hostView.onDestroy(i)}};function J$(t,i,e){let n=t.projection=[];for(let o=0;o{class t{static __NG_ELEMENT_ID__=eG}return t})();function eG(){let t=Kn();return LM(t,ze())}var tG=dt,PM=class extends tG{_lContainer;_hostTNode;_hostLView;constructor(i,e,n){super(),this._lContainer=i,this._hostTNode=e,this._hostLView=n}get element(){return h1(this._hostTNode,this._hostLView)}get injector(){return new Rc(this._hostTNode,this._hostLView)}get parentInjector(){let i=R8(this._hostTNode,this._hostLView);if(sx(i)){let e=y4(i,this._hostLView),n=v4(i),o=e[Ge].data[n+8];return new Rc(o,e)}else return new Rc(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(i){let e=HC(this._lContainer);return e!==null&&e[i]||null}get length(){return this._lContainer.length-Nn}createEmbeddedView(i,e,n){let o,r;typeof n=="number"?o=n:n!=null&&(o=n.index,r=n.injector);let a=D4(this._lContainer,i.ssrId),s=i.createEmbeddedViewImpl(e||{},r,a);return this.insertImpl(s,o,u1(this._hostTNode,a)),s}createComponent(i,e,n,o,r,a,s){let c=i&&!lH(i),m;if(c)m=e;else{let Y=e||{};m=Y.index,n=Y.injector,o=Y.projectableNodes,r=Y.environmentInjector||Y.ngModuleRef,a=Y.directives,s=Y.bindings}let f=c?i:new ws(Qr(i)),v=n||this.parentInjector;if(!r&&f.ngModule==null){let Z=(c?v:this.parentInjector).get(Qt,null);Z&&(r=Z)}let x=Qr(f.componentType??{}),w=D4(this._lContainer,x?.id??null),O=w?.firstChild??null,K=f.create(v,o,O,r,a,s);return this.insertImpl(K.hostView,m,u1(this._hostTNode,w)),K}insert(i,e){return this.insertImpl(i,e,!0)}insertImpl(i,e,n){let o=i._lView;if(Qy(o)){let s=this.indexOf(i);if(s!==-1)this.detach(s);else{let c=o[ci],m=new PM(c,c[Xi],c[ci]);m.detach(m.indexOf(i))}}let r=this._adjustIndex(e),a=this._lContainer;return Rd(a,o,r,n),i.attachToViewContainerRef(),sg($g(a),r,i),i}move(i,e){return this.insert(i,e)}indexOf(i){let e=HC(this._lContainer);return e!==null?e.indexOf(i):-1}remove(i){let e=this._adjustIndex(i,-1),n=Dd(this._lContainer,e);n&&(cd($g(this._lContainer),e),$4(n[Ge],n))}detach(i){let e=this._adjustIndex(i,-1),n=Dd(this._lContainer,e);return n&&cd($g(this._lContainer),e)!=null?new Ms(n):null}_adjustIndex(i,e=0){return i??this.length+e}};function HC(t){return t[ud]}function $g(t){return t[ud]||(t[ud]=[])}function LM(t,i){let e,n=i[t.index];return br(n)?e=n:(e=_M(n,i,null,t),i[t.index]=e,X8(i,e)),iG(e,i,t,n),new PM(e,t,i)}function nG(t,i){let e=t[Kt],n=e.createComment(""),o=qo(i,t),r=e.parentNode(o);return M4(e,r,n,e.nextSibling(o),!1),n}var iG=aG,oG=()=>!1;function rG(t,i,e){return oG(t,i,e)}function aG(t,i,e,n){if(t[ys])return;let o;e.type&8?o=Wo(n):o=nG(i,e),t[ys]=o}var v8=class t{queryList;matches=null;constructor(i){this.queryList=i}clone(){return new t(this.queryList)}setDirty(){this.queryList.setDirty()}},y8=class t{queries;constructor(i=[]){this.queries=i}createEmbeddedView(i){let e=i.queries;if(e!==null){let n=i.contentQueries!==null?i.contentQueries[0]:e.length,o=[];for(let r=0;r0)n.push(a[s/2]);else{let m=r[s+1],f=i[-c];for(let v=Nn;vi.trim())}function FM(t,i,e){t.queries===null&&(t.queries=new C8),t.queries.track(new x8(i,e))}function mG(t,i){let e=t.contentQueries||(t.contentQueries=[]),n=e.length?e[e.length-1]:-1;i!==n&&e.push(t.queries.length-1,i)}function h5(t,i){return t.queries.getByIndex(i)}function VM(t,i){let e=t[Ge],n=h5(e,i);return n.crossesNgTemplate?M8(e,t,i,[]):AM(e,t,n,i)}function BM(t,i,e){let n,o=K2(()=>{n._dirtyCounter();let r=pG(n,t);if(i&&r===void 0)throw new pe(-951,!1);return r});return n=o[Yn],n._dirtyCounter=we(0),n._flatValue=void 0,o}function g5(t){return BM(!0,!1,t)}function _5(t){return BM(!0,!0,t)}function jM(t,i){let e=t[Yn];e._lView=ze(),e._queryIndex=i,e._queryList=f5(e._lView,i),e._queryList.onDirty(()=>e._dirtyCounter.update(n=>n+1))}function pG(t,i){let e=t._lView,n=t._queryIndex;if(e===void 0||n===void 0||e[it]&4)return i?void 0:zi;let o=f5(e,n),r=VM(e,n);return o.reset(r,gx),i?o.first:o._changesDetected||t._flatValue===void 0?t._flatValue=o.toArray():t._flatValue}function HM(t){let i=[],e=new Map;function n(o){let r=e.get(o);if(!r){let a=t(o);e.set(o,r=a.then(s=>hG(o,s)))}return r}return O4.forEach((o,r)=>{let a=[];o.templateUrl&&a.push(n(o.templateUrl).then(m=>{o.template=m}));let s=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=s,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let m=o.styles.length,f=o.styleUrls;o.styleUrls.forEach((v,x)=>{s.push(""),a.push(n(v).then(w=>{s[m+x]=w,f.splice(f.indexOf(v),1),f.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&a.push(n(o.styleUrl).then(m=>{s.push(m),o.styleUrl=void 0}));let c=Promise.all(a).then(()=>gG(r));i.push(c)}),UM(),Promise.all(i).then(()=>{})}var O4=new Map,fG=new Set;function UM(){let t=O4;return O4=new Map,t}function $M(){return O4.size===0}function hG(t,i){return typeof i=="string"?i:i.status!==void 0&&i.status!==200?Promise.reject(new pe(918,!1)):i.text()}function gG(t){fG.delete(t)}var ia=class{},X4=class{};var kd=class extends ia{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new k4(this);constructor(i,e,n,o=!0){super(),this.ngModuleType=i,this._parent=e;let r=dg(i);this._bootstrapComponents=Bx(r.bootstrap),this._r3Injector=Ng(i,e,[{provide:ia,useValue:this},{provide:Nd,useValue:this.componentFactoryResolver},...n],La(i),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let i=this._r3Injector;!i.destroyed&&i.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(i){this.destroyCbs.push(i)}},Ed=class extends X4{moduleType;constructor(i){super(),this.moduleType=i}create(i){return new kd(this.moduleType,i,[])}};function GM(t,i,e){return new kd(t,i,e,!1)}var T4=class extends ia{injector;componentFactoryResolver=new k4(this);instance=null;constructor(i){super();let e=new Dc([...i.providers,{provide:ia,useValue:this},{provide:Nd,useValue:this.componentFactoryResolver}],i.parent||Kl(),i.debugName,new Set(["environment"]));this.injector=e,i.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(i){this.injector.onDestroy(i)}};function v1(t,i,e=null){return new T4({providers:t,parent:i,debugName:e,runEnvironmentInitializers:!0}).injector}var _G=(()=>{class t{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let n=ug(!1,e.type),o=n.length>0?v1([n],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e,o)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=R({token:t,providedIn:"environment",factory:()=>new t(ke(Qt))})}return t})();function P(t){return f1(()=>{let i=WM(t),e=Ne(q({},i),{decls:t.decls,vars:t.vars,template:t.template,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,onPush:t.changeDetection===N8.OnPush,directiveDefs:null,pipeDefs:null,dependencies:i.standalone&&t.dependencies||null,getStandaloneInjector:i.standalone?o=>o.get(_G).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:t.signals??!1,data:t.data||{},encapsulation:t.encapsulation||Va.Emulated,styles:t.styles||zi,_:null,schemas:t.schemas||null,tView:null,id:""});i.standalone&&aa("NgStandalone"),qM(e);let n=t.dependencies;return e.directiveDefs=UC(n,bG),e.pipeDefs=UC(n,jy),e.id=CG(e),e})}function bG(t){return Qr(t)||Y3(t)}function J(t){return f1(()=>({type:t.type,bootstrap:t.bootstrap||zi,declarations:t.declarations||zi,imports:t.imports||zi,exports:t.exports||zi,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function vG(t,i){if(t==null)return gr;let e={};for(let n in t)if(t.hasOwnProperty(n)){let o=t[n],r,a,s,c;Array.isArray(o)?(s=o[0],r=o[1],a=o[2]??r,c=o[3]||null):(r=o,a=o,s=j4.None,c=null),e[r]=[n,s,c],i[r]=a}return e}function yG(t){if(t==null)return gr;let i={};for(let e in t)t.hasOwnProperty(e)&&(i[t[e]]=e);return i}function z(t){return f1(()=>{let i=WM(t);return qM(i),i})}function wt(t){return{type:t.type,name:t.name,factory:null,pure:t.pure!==!1,standalone:t.standalone??!0,onDestroy:t.type.prototype.ngOnDestroy||null}}function WM(t){let i={};return{type:t.type,providersResolver:null,factory:null,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputConfig:t.inputs||gr,exportAs:t.exportAs||null,standalone:t.standalone??!0,signals:t.signals===!0,selectors:t.selectors||zi,viewQuery:t.viewQuery||null,features:t.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,inputs:vG(t.inputs,i),outputs:yG(t.outputs),debugInfo:null}}function qM(t){t.features?.forEach(i=>i(t))}function UC(t,i){return t?()=>{let e=typeof t=="function"?t():t,n=[];for(let o of e){let r=i(o);r!==null&&n.push(r)}return n}:null}function CG(t){let i=0,e=typeof t.consts=="function"?"":t.consts,n=[t.selectors,t.ngContentSelectors,t.hostVars,t.hostAttrs,e,t.vars,t.decls,t.encapsulation,t.standalone,t.signals,t.exportAs,JSON.stringify(t.inputs),JSON.stringify(t.outputs),Object.getOwnPropertyNames(t.type.prototype),!!t.contentQueries,!!t.viewQuery];for(let r of n.join("|"))i=Math.imul(31,i)+r.charCodeAt(0)<<0;return i+=2147483648,"c"+i}function xG(t){return Object.getPrototypeOf(t.prototype).constructor}function ce(t){let i=xG(t.type),e=!0,n=[t];for(;i;){let o;if(vr(t))o=i.\u0275cmp||i.\u0275dir;else{if(i.\u0275cmp)throw new pe(903,!1);o=i.\u0275dir}if(o){if(e){n.push(o);let a=t;a.inputs=Gg(t.inputs),a.declaredInputs=Gg(t.declaredInputs),a.outputs=Gg(t.outputs);let s=o.hostBindings;s&&kG(t,s);let c=o.viewQuery,m=o.contentQueries;if(c&&DG(t,c),m&&SG(t,m),MG(t,o),Py(t.outputs,o.outputs),vr(o)&&o.data.animation){let f=t.data;f.animation=(f.animation||[]).concat(o.data.animation)}}let r=o.features;if(r)for(let a=0;a=0;n--){let o=t[n];o.hostVars=i+=o.hostVars,o.hostAttrs=l1(o.hostAttrs,e=l1(e,o.hostAttrs))}}function Gg(t){return t===gr?{}:t===zi?[]:t}function DG(t,i){let e=t.viewQuery;e?t.viewQuery=(n,o)=>{i(n,o),e(n,o)}:t.viewQuery=i}function SG(t,i){let e=t.contentQueries;e?t.contentQueries=(n,o,r)=>{i(n,o,r),e(n,o,r)}:t.contentQueries=i}function kG(t,i){let e=t.hostBindings;e?t.hostBindings=(n,o)=>{i(n,o),e(n,o)}:t.hostBindings=i}function b5(t){let i=e=>{let n=Array.isArray(t);e.hostDirectives===null?(e.resolveHostDirectives=EG,e.hostDirectives=n?t.map(w8):[t]):n?e.hostDirectives.unshift(...t.map(w8)):e.hostDirectives.unshift(t)};return i.ngInherit=!0,i}function EG(t){let i=[],e=!1,n=null,o=null;for(let r=0;r{class t{log(e){console.log(e)}warn(e){console.warn(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();var J4=new L(""),y1=new L(""),Vd=(()=>{class t{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(e,n,o){this._ngZone=e,this.registry=n,fg()&&(this._destroyRef=d(Fi,{optional:!0})??void 0),v5||(KM(o),o.addToWindow(n)),this._watchAngularEvents(),e.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let e=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),n=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{e.unsubscribe(),n.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb()}});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(n=>n.updateCb&&n.updateCb(e)?(clearTimeout(n.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,n,o){let r=-1;n&&n>0&&(r=setTimeout(()=>{this._callbacks=this._callbacks.filter(a=>a.timeoutId!==r),e()},n)),this._callbacks.push({doneCb:e,timeoutId:r,updateCb:o})}whenStable(e,n,o){if(o&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,n,o),this._runCallbacksIfReady()}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,n,o){return[]}static \u0275fac=function(n){return new(n||t)(ke(se),ke(Bd),ke(y1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Bd=(()=>{class t{_applications=new Map;registerApplication(e,n){this._applications.set(e,n)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,n=!0){return v5?.findTestabilityInTree(this,e,n)??null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})();function KM(t){v5=t}var v5;function Ha(t){return!!t&&typeof t.then=="function"}function em(t){return!!t&&typeof t.subscribe=="function"}var y5=new L("");function tm(t){return bs([{provide:y5,multi:!0,useValue:t}])}var C5=(()=>{class t{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,n)=>{this.resolve=e,this.reject=n});appInits=d(y5,{optional:!0})??[];injector=d(be);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let o of this.appInits){let r=bi(this.injector,o);if(Ha(r))e.push(r);else if(em(r)){let a=new Promise((s,c)=>{r.subscribe({complete:s,error:c})});e.push(a)}}let n=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{n()}).catch(o=>{this.reject(o)}),e.length===0&&n(),this.initialized=!0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),nm=new L("");function XM(){y6(()=>{let t="";throw new pe(600,t)})}function ZM(t){return t.isBoundToModule}var LG=10;function x5(t,i){return Array.isArray(i)?i.reduce(x5,t):q(q({},t),i)}var li=(()=>{class t{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=d(Zi);afterRenderManager=d(U4);zonelessEnabled=d(gd);rootEffectScheduler=d(_d);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new B;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=d(ta);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(me(e=>!e))}constructor(){d(Ss,{optional:!0})}whenStable(){let e;return new Promise(n=>{e=this.isStable.subscribe({next:o=>{o&&n()}})}).finally(()=>{e.unsubscribe()})}_injector=d(Qt);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,n){return this.bootstrapImpl(e,n)}bootstrapImpl(e,n,o=be.NULL){return this._injector.get(se).run(()=>{rn(10);let a=e instanceof Q4;if(!this._injector.get(C5).done){let O="";throw new pe(405,O)}let c;a?c=e:c=this._injector.get(Nd).resolveComponentFactory(e),this.componentTypes.push(c.componentType);let m=ZM(c)?void 0:this._injector.get(ia),f=n||c.selector,v=c.create(o,[],f,m),x=v.location.nativeElement,w=v.injector.get(J4,null);return w?.registerApplication(x),v.onDestroy(()=>{this.detachView(v.hostView),vd(this.components,v),w?.unregisterApplication(x)}),this._loadComponent(v),rn(11,v),v})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){rn(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(H4.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new pe(101,!1);let e=Je(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,Je(e),this.afterTick.next(),rn(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(On,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++pd(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let n=e;this._views.push(n),n.attachToAppRef(this)}detachView(e){let n=e;vd(this._views,n),n.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(e),this._injector.get(nm,[]).forEach(o=>o(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>vd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new pe(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function vd(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function C1(t,i){let e=ze(),n=Jr();if(Ji(e,n,i)){let o=on(),r=r1();if(q4(r,o,e,t,i))Na(r)&&aM(e,r.index);else{let s=qo(r,e);sM(e[Kt],s,null,r.value,t,i,null)}}return C1}function ne(t,i,e,n){let o=ze(),r=Jr();if(Ji(o,r,i)){let a=on(),s=r1();r$(s,o,t,i,e,n)}return ne}var ege=typeof document<"u"&&typeof document?.documentElement?.getAnimations=="function";function M5(){return ze()[Ni][Rn]}var D8=class{destroy(i){}updateValue(i,e){}swap(i,e){let n=Math.min(i,e),o=Math.max(i,e),r=this.detach(o);if(o-n>1){let a=this.detach(n);this.attach(n,r),this.attach(o,a)}else this.attach(n,r)}move(i,e){this.attach(e,this.detach(i))}};function Wg(t,i,e,n,o){return t===e&&Object.is(i,n)?1:Object.is(o(t,i),o(e,n))?-1:0}function AG(t,i,e){let n,o,r=0,a=t.length-1,s=void 0;if(Array.isArray(i)){let c=i.length-1;for(;r<=a&&r<=c;){let m=t.at(r),f=i[r],v=Wg(r,m,r,f,e);if(v!==0){v<0&&t.updateValue(r,f),r++;continue}let x=t.at(a),w=i[c],O=Wg(a,x,c,w,e);if(O!==0){O<0&&t.updateValue(a,w),a--,c--;continue}let K=e(r,m),Y=e(a,x),Z=e(r,f);if(Object.is(Z,Y)){let Oe=e(c,w);Object.is(Oe,K)?(t.swap(r,a),t.updateValue(a,w),c--,a--):t.move(a,r),t.updateValue(r,f),r++;continue}if(n??=new P4,o??=qC(t,r,a,e),S8(t,n,r,Z))t.updateValue(r,f),r++,a++;else if(o.has(Z))n.set(K,t.detach(r)),a--;else{let Oe=t.create(r,i[r]);t.attach(r,Oe),r++,a++}}for(;r<=c;)WC(t,n,e,r,i[r]),r++}else if(i!=null){let c=i[Symbol.iterator](),m=c.next();for(;!m.done&&r<=a;){let f=t.at(r),v=m.value,x=Wg(r,f,r,v,e);if(x!==0)x<0&&t.updateValue(r,v),r++,m=c.next();else{n??=new P4,o??=qC(t,r,a,e);let w=e(r,v);if(S8(t,n,r,w))t.updateValue(r,v),r++,a++,m=c.next();else if(!o.has(w))t.attach(r,t.create(r,v)),r++,a++,m=c.next();else{let O=e(r,f);n.set(O,t.detach(r)),a--}}}for(;!m.done;)WC(t,n,e,t.length,m.value),m=c.next()}for(;r<=a;)t.destroy(t.detach(a--));n?.forEach(c=>{t.destroy(c)})}function S8(t,i,e,n){return i!==void 0&&i.has(n)?(t.attach(e,i.get(n)),i.delete(n),!0):!1}function WC(t,i,e,n,o){if(S8(t,i,n,e(n,o)))t.updateValue(n,o);else{let r=t.create(n,o);t.attach(n,r)}}function qC(t,i,e,n){let o=new Set;for(let r=i;r<=e;r++)o.add(n(r,t.at(r)));return o}var P4=class{kvMap=new Map;_vMap=void 0;has(i){return this.kvMap.has(i)}delete(i){if(!this.has(i))return!1;let e=this.kvMap.get(i);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(i,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(i),!0}get(i){return this.kvMap.get(i)}set(i,e){if(this.kvMap.has(i)){let n=this.kvMap.get(i);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(n);)n=o.get(n);o.set(n,e)}else this.kvMap.set(i,e)}forEach(i){for(let[e,n]of this.kvMap)if(i(n,e),this._vMap!==void 0){let o=this._vMap;for(;o.has(n);)n=o.get(n),i(n,e)}}};function E(t,i,e,n,o,r,a,s){aa("NgControlFlow");let c=ze(),m=on(),f=Do(m.consts,r);return m1(c,m,t,i,e,n,o,f,256,a,s),w5}function w5(t,i,e,n,o,r,a,s){aa("NgControlFlow");let c=ze(),m=on(),f=Do(m.consts,r);return m1(c,m,t,i,e,n,o,f,512,a,s),w5}function I(t,i){aa("NgControlFlow");let e=ze(),n=Jr(),o=e[n]!==Xn?e[n]:-1,r=o!==-1?L4(e,nn+o):void 0,a=0;if(Ji(e,n,t)){let s=Je(null);try{if(r!==void 0&&vM(r,a),t!==-1){let c=nn+t,m=L4(e,c),f=O8(e[Ge],c),v=CM(m,f,e),x=zd(e,f,i,{dehydratedView:v});Rd(m,x,a,u1(f,v))}}finally{Je(s)}}else if(r!==void 0){let s=bM(r,a);s!==void 0&&(s[Rn]=i)}}var k8=class{lContainer;$implicit;$index;constructor(i,e,n){this.lContainer=i,this.$implicit=e,this.$index=n}get $count(){return this.lContainer.length-Nn}};function ht(t,i){return i}var E8=class{hasEmptyBlock;trackByFn;liveCollection;constructor(i,e,n){this.hasEmptyBlock=i,this.trackByFn=e,this.liveCollection=n}};function Xe(t,i,e,n,o,r,a,s,c,m,f,v,x){aa("NgControlFlow");let w=ze(),O=on(),K=c!==void 0,Y=ze(),Z=s?a.bind(Y[Ni][Rn]):a,Oe=new E8(K,Z);Y[nn+t]=Oe,m1(w,O,t+1,i,e,n,o,Do(O.consts,r),256),K&&m1(w,O,t+2,c,m,f,v,Do(O.consts,x),512)}var I8=class extends D8{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(i,e,n){super(),this.lContainer=i,this.hostLView=e,this.templateTNode=n}get length(){return this.lContainer.length-Nn}at(i){return this.getLView(i)[Rn].$implicit}attach(i,e){let n=e[kc];this.needsIndexUpdate||=i!==this.length,Rd(this.lContainer,e,i,u1(this.templateTNode,n)),zG(this.lContainer,i)}detach(i){return this.needsIndexUpdate||=i!==this.length-1,RG(this.lContainer,i),NG(this.lContainer,i)}create(i,e){let n=D4(this.lContainer,this.templateTNode.tView.ssrId),o=zd(this.hostLView,this.templateTNode,new k8(this.lContainer,e,i),{dehydratedView:n});return this.operationsCounter?.recordCreate(),o}destroy(i){$4(i[Ge],i),this.operationsCounter?.recordDestroy()}updateValue(i,e){this.getLView(i)[Rn].$implicit=e}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let i=0;i0){let r=n[za];FU(r,o),Fc.delete(n),o.detachedLeaveAnimationFns=void 0}}function RG(t,i){if(t.length<=Nn)return;let e=Nn+i,n=t[e],o=n?n[Tc]:void 0;o&&o.leave&&o.leave.size>0&&(o.detachedLeaveAnimationFns=[])}function NG(t,i){return Dd(t,i)}function FG(t,i){return bM(t,i)}function O8(t,i){return md(t,i)}function D(t,i,e){let n=ze(),o=Jr();if(Ji(n,o,i)){let r=on(),a=r1();oM(a,n,t,i,n[Kt],e)}return D}function T8(t,i,e,n,o){q4(i,t,e,o?"class":"style",n)}function h(t,i,e,n){let o=ze(),r=o[Ge],a=t+nn,s=r.firstCreatePass?u5(a,o,2,i,a5,Z3(),e,n):r.data[a];if(s5(s,o,t,i,JM),Jl(s)){let c=o[Ge];W4(c,o,s),B8(c,s,o)}return n!=null&&Ad(o,s),h}function _(){let t=on(),i=Kn(),e=c5(i);return t.firstCreatePass&&m5(t,e),Ig(e)&&Og(),kg(),e.classesWithoutHost!=null&&hH(e)&&T8(t,e,ze(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&gH(e)&&T8(t,e,ze(),e.stylesWithoutHost,!1),_}function F(t,i,e,n){return h(t,i,e,n),_(),F}function nt(t,i,e,n){let o=ze(),r=o[Ge],a=t+nn,s=r.firstCreatePass?H$(a,r,2,i,e,n):r.data[a];return s5(s,o,t,i,JM),n!=null&&Ad(o,s),nt}function rt(){let t=Kn(),i=c5(t);return Ig(i)&&Og(),kg(),rt}function Tn(t,i,e,n){return nt(t,i,e,n),rt(),Tn}var JM=(t,i,e,n,o)=>(hd(!0),zx(i[Kt],n,mC()));function Vi(t,i,e){let n=ze(),o=n[Ge],r=t+nn,a=o.firstCreatePass?u5(r,n,8,"ng-container",a5,Z3(),i,e):o.data[r];if(s5(a,n,t,"ng-container",VG),Jl(a)){let s=n[Ge];W4(s,n,a),B8(s,a,n)}return e!=null&&Ad(n,a),Vi}function Bi(){let t=on(),i=Kn(),e=c5(i);return t.firstCreatePass&&m5(t,e),Bi}function Vt(t,i,e){return Vi(t,i,e),Bi(),Vt}var VG=(t,i,e,n,o)=>(hd(!0),cU(i[Kt],""));function le(){return ze()}function Lt(t,i,e){let n=ze(),o=Jr();if(Ji(n,o,i)){let r=on(),a=r1();rM(a,n,t,i,n[Kt],e)}return Lt}var d4=void 0;function BG(t){let i=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return i===1&&e===0?1:5}var jG=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],d4,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],d4,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",d4,"{1} 'at' {0}",d4],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",BG],yd={};function D5(t,i,e){typeof i!="string"&&(e=i,i=t[bn.LocaleId]),i=i.toLowerCase().replace(/_/g,"-"),yd[i]=t,e&&(yd[i][bn.ExtraData]=e)}function eo(t){let i=HG(t),e=YC(i);if(e)return e;let n=i.split("-")[0];if(e=YC(n),e)return e;if(n==="en")return jG;throw new pe(701,!1)}function YC(t){return t in yd||(yd[t]=Qn.ng&&Qn.ng.common&&Qn.ng.common.locales&&Qn.ng.common.locales[t]),yd[t]}var bn=(function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t})(bn||{});function HG(t){return t.toLowerCase().replace(/_/g,"-")}var jd="en-US",UG="USD";var $G=jd;function ew(t){typeof t=="string"&&($G=t.toLowerCase().replace(/_/g,"-"))}function N(t,i,e){let n=ze(),o=on(),r=Kn();return tw(o,n,n[Kt],r,t,i,e),N}function im(t,i,e){let n=ze(),o=on(),r=Kn();return(r.type&3||e)&&IM(r,o,n,e,n[Kt],t,i,_4(r,n,i)),im}function tw(t,i,e,n,o,r,a){let s=!0,c=null;if((n.type&3||a)&&(c??=_4(n,i,r),IM(n,t,i,a,e,o,r,c)&&(s=!1)),s){let m=n.outputs?.[o],f=n.hostDirectiveOutputs?.[o];if(f&&f.length)for(let v=0;v>17&32767}function qG(t){return(t&2)==2}function YG(t,i){return t&131071|i<<17}function P8(t){return t|2}function p1(t){return(t&131068)>>2}function qg(t,i){return t&-131069|i<<2}function QG(t){return(t&1)===1}function L8(t){return t|1}function KG(t,i,e,n,o,r){let a=r?i.classBindings:i.styleBindings,s=Vc(a),c=p1(a);t[n]=e;let m=!1,f;if(Array.isArray(e)){let v=e;f=v[1],(f===null||Ql(v,f)>0)&&(m=!0)}else f=e;if(o)if(c!==0){let x=Vc(t[s+1]);t[n+1]=u4(x,s),x!==0&&(t[x+1]=qg(t[x+1],n)),t[s+1]=YG(t[s+1],n)}else t[n+1]=u4(s,0),s!==0&&(t[s+1]=qg(t[s+1],n)),s=n;else t[n+1]=u4(c,0),s===0?s=n:t[c+1]=qg(t[c+1],n),c=n;m&&(t[n+1]=P8(t[n+1])),QC(t,f,n,!0),QC(t,f,n,!1),XG(i,f,t,n,r),a=u4(s,c),r?i.classBindings=a:i.styleBindings=a}function XG(t,i,e,n,o){let r=o?t.residualClasses:t.residualStyles;r!=null&&typeof i=="string"&&Ql(r,i)>=0&&(e[n+1]=L8(e[n+1]))}function QC(t,i,e,n){let o=t[e+1],r=i===null,a=n?Vc(o):p1(o),s=!1;for(;a!==0&&(s===!1||r);){let c=t[a],m=t[a+1];ZG(c,i)&&(s=!0,t[a+1]=n?L8(m):P8(m)),a=n?Vc(m):p1(m)}s&&(t[e+1]=n?P8(o):L8(o))}function ZG(t,i){return t===null||i==null||(Array.isArray(t)?t[1]:t)===i?!0:Array.isArray(t)&&typeof i=="string"?Ql(t,i)>=0:!1}var Cr={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function JG(t){return t.substring(Cr.key,Cr.keyEnd)}function eW(t){return tW(t),nw(t,iw(t,0,Cr.textEnd))}function nw(t,i){let e=Cr.textEnd;return e===i?-1:(i=Cr.keyEnd=nW(t,Cr.key=i,e),iw(t,i,e))}function tW(t){Cr.key=0,Cr.keyEnd=0,Cr.value=0,Cr.valueEnd=0,Cr.textEnd=t.length}function iw(t,i,e){for(;i32;)i++;return i}function At(t,i,e){return ow(t,i,e,!1),At}function oe(t,i){return ow(t,i,null,!0),oe}function Tt(t){oW(dW,iW,t,!0)}function iW(t,i){for(let e=eW(i);e>=0;e=nw(i,e))W3(t,JG(i),!0)}function ow(t,i,e,n){let o=ze(),r=on(),a=o1(2);if(r.firstUpdatePass&&aw(r,t,a,n),i!==Xn&&Ji(o,a,i)){let s=r.data[Qo()];sw(r,s,o,o[Kt],t,o[a+1]=mW(i,e),n,a)}}function oW(t,i,e,n){let o=on(),r=o1(2);o.firstUpdatePass&&aw(o,null,r,n);let a=ze();if(e!==Xn&&Ji(a,r,e)){let s=o.data[Qo()];if(cw(s,n)&&!rw(o,r)){let c=n?s.classesWithoutHost:s.stylesWithoutHost;c!==null&&(e=H3(c,e||"")),T8(o,s,a,e,n)}else uW(o,s,a,a[Kt],a[r+1],a[r+1]=lW(t,i,e),n,r)}}function rw(t,i){return i>=t.expandoStartIndex}function aw(t,i,e,n){let o=t.data;if(o[e+1]===null){let r=o[Qo()],a=rw(t,e);cw(r,n)&&i===null&&!a&&(i=!1),i=rW(o,r,i,n),KG(o,r,i,e,a,n)}}function rW(t,i,e,n){let o=sC(t),r=n?i.residualClasses:i.residualStyles;if(o===null)(n?i.classBindings:i.styleBindings)===0&&(e=Yg(null,t,i,e,n),e=Id(e,i.attrs,n),r=null);else{let a=i.directiveStylingLast;if(a===-1||t[a]!==o)if(e=Yg(o,t,i,e,n),r===null){let c=aW(t,i,n);c!==void 0&&Array.isArray(c)&&(c=Yg(null,t,i,c[1],n),c=Id(c,i.attrs,n),sW(t,i,n,c))}else r=cW(t,i,n)}return r!==void 0&&(n?i.residualClasses=r:i.residualStyles=r),e}function aW(t,i,e){let n=e?i.classBindings:i.styleBindings;if(p1(n)!==0)return t[Vc(n)]}function sW(t,i,e,n){let o=e?i.classBindings:i.styleBindings;t[Vc(o)]=n}function cW(t,i,e){let n,o=i.directiveEnd;for(let r=1+i.directiveStylingLast;r0;){let c=t[o],m=Array.isArray(c),f=m?c[1]:c,v=f===null,x=e[o+1];x===Xn&&(x=v?zi:void 0);let w=v?q3(x,n):f===n?x:void 0;if(m&&!A4(w)&&(w=q3(c,n)),A4(w)&&(s=w,a))return s;let O=t[o+1];o=a?Vc(O):p1(O)}if(i!==null){let c=r?i.residualClasses:i.residualStyles;c!=null&&(s=q3(c,n))}return s}function A4(t){return t!==void 0}function mW(t,i){return t==null||t===""||(typeof i=="string"?t=t+i:typeof t=="object"&&(t=La(So(t)))),t}function cw(t,i){return(t.flags&(i?8:16))!==0}function y(t,i=""){let e=ze(),n=on(),o=t+nn,r=n.firstCreatePass?b1(n,o,1,i,null):n.data[o],a=pW(n,e,r,i,t);e[o]=a,o4()&&o5(n,e,a,r),n1(r,!1)}var pW=(t,i,e,n,o)=>(hd(!0),aU(i[Kt],n));function lw(t,i,e,n=""){return Ji(t,Jr(),e)?i+Ri(e)+n:Xn}function dw(t,i,e,n,o,r=""){let a=J3(),s=Sd(t,a,e,o);return o1(2),s?i+Ri(e)+n+Ri(o)+r:Xn}function fW(t,i,e,n,o,r,a,s=""){let c=J3(),m=kM(t,c,e,o,a);return o1(3),m?i+Ri(e)+n+Ri(o)+r+Ri(a)+s:Xn}function hW(t,i,e,n,o,r,a,s,c,m=""){let f=J3(),v=EM(t,f,e,o,a,c);return o1(4),v?i+Ri(e)+n+Ri(o)+r+Ri(a)+s+Ri(c)+m:Xn}function T(t){return ee("",t),T}function ee(t,i,e){let n=ze(),o=lw(n,t,i,e);return o!==Xn&&rm(n,Qo(),o),ee}function St(t,i,e,n,o){let r=ze(),a=dw(r,t,i,e,n,o);return a!==Xn&&rm(r,Qo(),a),St}function Ua(t,i,e,n,o,r,a){let s=ze(),c=fW(s,t,i,e,n,o,r,a);return c!==Xn&&rm(s,Qo(),c),Ua}function uw(t,i,e,n,o,r,a,s,c){let m=ze(),f=hW(m,t,i,e,n,o,r,a,s,c);return f!==Xn&&rm(m,Qo(),f),uw}function rm(t,i,e){let n=yg(i,t);sU(t[Kt],n,e)}function M1(t,i,e){Fg(i)&&(i=i());let n=ze(),o=Jr();if(Ji(n,o,i)){let r=on(),a=r1();oM(a,n,t,i,n[Kt],e)}return M1}function Hd(t,i){let e=Fg(t);return e&&t.set(i),e}function w1(t,i){let e=ze(),n=on(),o=Kn();return tw(n,e,e[Kt],o,t,i),w1}function Ft(t){return Ji(ze(),Jr(),t)?Ri(t):Xn}function Uc(t,i,e=""){return lw(ze(),t,i,e)}function am(t,i,e,n,o=""){return dw(ze(),t,i,e,n,o)}function gW(t,i,e){let n=on();if(n.firstCreatePass){let o=vr(t);A8(e,n.data,n.blueprint,o,!0),A8(i,n.data,n.blueprint,o,!1)}}function A8(t,i,e,n,o){if(t=si(t),Array.isArray(t))for(let r=0;r>20;if(wc(t)||!t.multi){let w=new Nc(m,o,Ce,null),O=Kg(c,i,o?f:f+x,v);O===-1?(Zg(x4(s,a),r,c),Qg(r,t,i.length),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(w),a.push(w)):(e[O]=w,a[O]=w)}else{let w=Kg(c,i,f+x,v),O=Kg(c,i,f,f+x),K=w>=0&&e[w],Y=O>=0&&e[O];if(o&&!Y||!o&&!K){Zg(x4(s,a),r,c);let Z=vW(o?bW:_W,e.length,o,n,m,t);!o&&Y&&(e[O].providerFactory=Z),Qg(r,t,i.length,0),i.push(c),s.directiveStart++,s.directiveEnd++,o&&(s.providerIndexes+=1048576),e.push(Z),a.push(Z)}else{let Z=mw(e[o?O:w],m,!o&&n);Qg(r,t,w>-1?w:O,Z)}!o&&n&&Y&&e[O].componentProviders++}}}function Qg(t,i,e,n){let o=wc(i),r=Gy(i);if(o||r){let c=(r?si(i.useClass):i).prototype.ngOnDestroy;if(c){let m=t.destroyHooks||(t.destroyHooks=[]);if(!o&&i.multi){let f=m.indexOf(e);f===-1?m.push(e,[n,c]):m[f+1].push(n,c)}else m.push(e,c)}}}function mw(t,i,e){return e&&t.componentProviders++,t.multi.push(i)-1}function Kg(t,i,e,n){for(let o=e;o{e.providersResolver=(n,o)=>gW(n,o?o(t):t,i)}}function ko(t,i,e){let n=Fa()+t,o=ze();return o[n]===Xn?Fd(o,n,e?i.call(e):i()):U$(o,n)}function Eo(t,i,e,n){return pw(ze(),Fa(),t,i,e,n)}function D1(t,i,e,n,o){return fw(ze(),Fa(),t,i,e,n,o)}function k5(t,i,e,n,o,r){return hw(ze(),Fa(),t,i,e,n,o,r)}function sm(t,i){let e=t[i];return e===Xn?void 0:e}function pw(t,i,e,n,o,r){let a=i+e;return Ji(t,a,o)?Fd(t,a+1,r?n.call(r,o):n(o)):sm(t,a+1)}function fw(t,i,e,n,o,r,a){let s=i+e;return Sd(t,s,o,r)?Fd(t,s+2,a?n.call(a,o,r):n(o,r)):sm(t,s+2)}function hw(t,i,e,n,o,r,a,s){let c=i+e;return kM(t,c,o,r,a)?Fd(t,c+3,s?n.call(s,o,r,a):n(o,r,a)):sm(t,c+3)}function yW(t,i,e,n,o,r,a,s,c){let m=i+e;return EM(t,m,o,r,a,s)?Fd(t,m+4,c?n.call(c,o,r,a,s):n(o,r,a,s)):sm(t,m+4)}function S(t,i){let e=on(),n,o=t+nn;e.firstCreatePass?(n=CW(i,e.pipeRegistry),e.data[o]=n,n.onDestroy&&(e.destroyHooks??=[]).push(o,n.onDestroy)):n=e.data[o];let r=n.factory||(n.factory=gs(n.type,!0)),a,s=Ki(Ce);try{let c=C4(!1),m=r();return C4(c),Cg(e,ze(),o,m),m}finally{Ki(s)}}function CW(t,i){if(i)for(let e=i.length-1;e>=0;e--){let n=i[e];if(t===n.name)return n}}function k(t,i,e){let n=t+nn,o=ze(),r=t1(o,n);return lm(o,n)?pw(o,Fa(),i,r.transform,e,r):r.transform(e)}function Zo(t,i,e,n){let o=t+nn,r=ze(),a=t1(r,o);return lm(r,o)?fw(r,Fa(),i,a.transform,e,n,a):a.transform(e,n)}function xW(t,i,e,n,o){let r=t+nn,a=ze(),s=t1(a,r);return lm(a,r)?hw(a,Fa(),i,s.transform,e,n,o,s):s.transform(e,n,o)}function cm(t,i,e,n,o,r){let a=t+nn,s=ze(),c=t1(s,a);return lm(s,a)?yW(s,Fa(),i,c.transform,e,n,o,r,c):c.transform(e,n,o,r)}function lm(t,i){return t[Ge].data[i].pure}function ks(t,i){return Y4(t,i)}var m4=null;function gw(t){m4!==null&&(t.defaultEncapsulation!==m4.defaultEncapsulation||t.preserveWhitespaces!==m4.preserveWhitespaces)||(m4=t)}var z4=class{ngModuleFactory;componentFactories;constructor(i,e){this.ngModuleFactory=i,this.componentFactories=e}},E5=(()=>{class t{compileModuleSync(e){return new Ed(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){let n=this.compileModuleSync(e),o=dg(e),r=Bx(o.declarations).reduce((a,s)=>{let c=Qr(s);return c&&a.push(new ws(c)),a},[]);return new z4(n,r)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),_w=new L("");var MW=(()=>{class t{zone=d(se);changeDetectionScheduler=d(Uo);applicationRef=d(li);applicationErrorHandler=d(Zi);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{try{this.applicationRef.dirtyFlags|=1,this.applicationRef._tick()}catch(e){this.applicationErrorHandler(e)}})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function bw({ngZoneFactory:t,ignoreChangesOutsideZone:i,scheduleInRootZone:e}){return t??=()=>new se(Ne(q({},I5()),{scheduleInRootZone:e})),[{provide:se,useFactory:t},{provide:Aa,multi:!0,useFactory:()=>{let n=d(MW,{optional:!0});return()=>n.initialize()}},{provide:Aa,multi:!0,useFactory:()=>{let n=d(wW);return()=>{n.initialize()}}},i===!0?{provide:Vg,useValue:!0}:[],{provide:Bg,useValue:e??Wx},{provide:Zi,useFactory:()=>{let n=d(se),o=d(Qt),r;return a=>{n.runOutsideAngular(()=>{o.destroyed&&!r?setTimeout(()=>{throw a}):(r??=o.get(_i),r.handleError(a))})}}}]}function I5(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:t?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:t?.runCoalescing??!1}}var wW=(()=>{class t{subscription=new Se;initialized=!1;zone=d(se);pendingTasks=d(ta);initialize(){if(this.initialized)return;this.initialized=!0;let e=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(e=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{se.assertNotInAngularZone(),queueMicrotask(()=>{e!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(e),e=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{se.assertInAngularZone(),e??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var vw=(()=>{class t{applicationErrorHandler=d(Zi);appRef=d(li);taskService=d(ta);ngZone=d(se);zonelessEnabled=d(gd);tracing=d(Ss,{optional:!0});disableScheduling=d(Vg,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Se;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(w4):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(d(Bg,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof xd||!this.zoneIsDefined)}notify(e){if(!this.zonelessEnabled&&e===5)return;let n=!1;switch(e){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,n=!0;break}case 12:{this.appRef.dirtyFlags|=16,n=!0;break}case 13:{this.appRef.dirtyFlags|=2,n=!0;break}case 11:{n=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(n))return;let o=this.useMicrotaskScheduler?OC:qx;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(e){return!(this.disableScheduling&&!e||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(w4+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(n){this.taskService.remove(e),this.applicationErrorHandler(n)}finally{this.cleanup()}this.useMicrotaskScheduler=!0,OC(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function DW(){return typeof $localize<"u"&&$localize.locale||jd}var wr=new L("",{providedIn:"root",factory:()=>d(wr,{optional:!0,skipSelf:!0})||DW()}),O5=new L("",{providedIn:"root",factory:()=>UG});var dm=class{destroyed=!1;listeners=null;errorHandler=d(_i,{optional:!0});destroyRef=d(Fi);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(i){if(this.destroyed)throw new pe(953,!1);return(this.listeners??=[]).push(i),{unsubscribe:()=>{let e=this.listeners?.indexOf(i);e!==void 0&&e!==-1&&this.listeners?.splice(e,1)}}}emit(i){if(this.destroyed){console.warn($o(953,!1));return}if(this.listeners===null)return;let e=Je(null);try{for(let n of this.listeners)try{n(i)}catch(o){this.errorHandler?.handleError(o)}}finally{Je(e)}}};function Vn(t){return ky(t)}function Zn(t,i){return K2(t,i?.equal)}var T5=class{[Yn];constructor(i){this[Yn]=i}destroy(){this[Yn].destroy()}};function sa(t,i){let e=i?.injector??d(be),n=i?.manualCleanup!==!0?e.get(Fi):null,o,r=e.get(Ac,null,{optional:!0}),a=e.get(Uo);return r!==null?(o=EW(r.view,a,t),n instanceof ad&&n._lView===r.view&&(n=null)):o=IW(t,e.get(_d),a),o.injector=e,n!==null&&(o.onDestroyFn=n.onDestroy(()=>o.destroy())),new T5(o)}var yw=Ne(q({},Ey),{cleanupFns:void 0,zone:null,onDestroyFn:zc,run(){let t=i1(!1);try{Iy(this)}finally{i1(t)}},cleanup(){if(!this.cleanupFns?.length)return;let t=Je(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],Je(t)}}}),SW=Ne(q({},yw),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){ms(this),this.onDestroyFn(),this.cleanup(),this.scheduler.remove(this)}}),kW=Ne(q({},yw),{consumerMarkedDirty(){this.view[it]|=8192,Cs(this.view),this.notifier.notify(13)},destroy(){ms(this),this.onDestroyFn(),this.cleanup(),this.view[Ra]?.delete(this)}});function EW(t,i,e){let n=Object.create(kW);return n.view=t,n.zone=typeof Zone<"u"?Zone.current:null,n.notifier=i,n.fn=Cw(n,e),t[Ra]??=new Set,t[Ra].add(n),n.consumerMarkedDirty(n),n}function IW(t,i,e){let n=Object.create(SW);return n.fn=Cw(n,t),n.scheduler=i,n.notifier=e,n.zone=typeof Zone<"u"?Zone.current:null,n.scheduler.add(n),n.notifier.notify(12),n}function Cw(t,i){return()=>{i(e=>(t.cleanupFns??=[]).push(e))}}var fm=Symbol("InputSignalNode#UNSET"),Lw=Ne(q({},X2),{transformFn:void 0,applyValueToInputSignal(t,i){hc(t,i)}});function Aw(t,i){let e=Object.create(Lw);e.value=t,e.transformFn=i?.transform;function n(){if(ds(e),e.value===fm){let o=null;throw new pe(-950,o)}return e.value}return n[Yn]=e,n}var dn=class{attributeName;constructor(i){this.attributeName=i}__NG_ELEMENT_ID__=()=>Od(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},zw=new L("");zw.__NG_ELEMENT_ID__=t=>{let i=Kn();if(i===null)throw new pe(204,!1);if(i.type&2)return i.value;if(t&8)return null;throw new pe(204,!1)};function xw(t,i){return Aw(t,i)}function FW(t){return Aw(fm,t)}var S1=(xw.required=FW,xw);function Mw(t,i){return g5(i)}function VW(t,i){return _5(i)}var $d=(Mw.required=VW,Mw);function ww(t,i){return g5(i)}function BW(t,i){return _5(i)}var Rw=(ww.required=BW,ww);function Nw(t,i){let e=Object.create(Lw),n=new dm;e.value=t;function o(){return ds(e),Dw(e.value),e.value}return o[Yn]=e,o.asReadonly=r4.bind(o),o.set=r=>{e.equal(e.value,r)||(hc(e,r),n.emit(r))},o.update=r=>{Dw(e.value),o.set(r(e.value))},o.subscribe=n.subscribe.bind(n),o.destroyRef=n.destroyRef,o}function Dw(t){if(t===fm)throw new pe(952,!1)}function Sw(t,i){return Nw(t,i)}function jW(t){return Nw(fm,t)}var to=(Sw.required=jW,Sw);function HW(t,i,e){let n=new Ed(e);return Promise.resolve(n)}function kw(t){for(let i=t.length-1;i>=0;i--)if(t[i]!==void 0)return t[i]}var um=new L(""),UW=new L("");function Ud(t){return!t.moduleRef}function $W(t){let i=Ud(t)?t.r3Injector:t.moduleRef.injector,e=i.get(se);return e.run(()=>{Ud(t)?t.r3Injector.resolveInjectorInitializers():t.moduleRef.resolveInjectorInitializers();let n=i.get(Zi),o;if(e.runOutsideAngular(()=>{o=e.onError.subscribe({next:n})}),Ud(t)){let r=()=>i.destroy(),a=t.platformInjector.get(um);a.add(r),i.onDestroy(()=>{o.unsubscribe(),a.delete(r)})}else{let r=()=>t.moduleRef.destroy(),a=t.platformInjector.get(um);a.add(r),t.moduleRef.onDestroy(()=>{vd(t.allPlatformModules,t.moduleRef),o.unsubscribe(),a.delete(r)})}return WW(n,e,()=>{let r=i.get(ta),a=r.add(),s=i.get(C5);return s.runInitializers(),s.donePromise.then(()=>{let c=i.get(wr,jd);if(ew(c||jd),!i.get(UW,!0))return Ud(t)?i.get(li):(t.allPlatformModules.push(t.moduleRef),t.moduleRef);if(Ud(t)){let f=i.get(li);return t.rootComponent!==void 0&&f.bootstrap(t.rootComponent),f}else return Fw?.(t.moduleRef,t.allPlatformModules),t.moduleRef}).finally(()=>void r.remove(a))})})}var Fw;function Ew(){Fw=GW}function GW(t,i){let e=t.injector.get(li);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(n=>e.bootstrap(n));else if(t.instance.ngDoBootstrap)t.instance.ngDoBootstrap(e);else throw new pe(-403,!1);i.push(t)}function WW(t,i,e){try{let n=e();return Ha(n)?n.catch(o=>{throw i.runOutsideAngular(()=>t(o)),o}):n}catch(n){throw i.runOutsideAngular(()=>t(n)),n}}var Vw=(()=>{class t{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(e){this._injector=e}bootstrapModuleFactory(e,n){let o=n?.scheduleInRootZone,r=()=>Qx(n?.ngZone,Ne(q({},I5({eventCoalescing:n?.ngZoneEventCoalescing,runCoalescing:n?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),a=n?.ignoreChangesOutsideZone,s=[bw({ngZoneFactory:r,ignoreChangesOutsideZone:a}),{provide:Uo,useExisting:vw},fC],c=GM(e.moduleType,this.injector,s);return Ew(),$W({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(e,n=[]){let o=x5({},n);return Ew(),HW(this.injector,o,e).then(r=>this.bootstrapModuleFactory(r,o))}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new pe(404,!1);this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n());let e=this._injector.get(um,null);e&&(e.forEach(n=>n()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(n){return new(n||t)(ke(be))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"platform"})}return t})(),j5=null;function qW(t){if(U5())throw new pe(400,!1);XM(),j5=t;let i=t.get(Vw);return KW(t),i}function H5(t,i,e=[]){let n=`Platform: ${i}`,o=new L(n);return(r=[])=>{let a=U5();if(!a){let s=[...e,...r,{provide:o,useValue:!0}];a=t?.(s)??qW(YW(s,n))}return QW(o)}}function YW(t=[],i){return be.create({name:i,providers:[{provide:ld,useValue:"platform"},{provide:um,useValue:new Set([()=>j5=null])},...t]})}function QW(t){let i=U5();if(!i)throw new pe(-401,!1);return i}function U5(){return j5?.get(Vw)??null}function KW(t){let i=t.get(R4,null);bi(t,()=>{i?.forEach(e=>e())})}var xe=(()=>{class t{static __NG_ELEMENT_ID__=XW}return t})();function XW(t){return ZW(Kn(),ze(),(t&16)===16)}function ZW(t,i,e){if(Na(t)&&!e){let n=Yo(t.index,i);return new Ms(n,n)}else if(t.type&175){let n=i[Ni];return new Ms(n,i)}return null}var L5=class{constructor(){}supports(i){return p5(i)}create(i){return new A5(i)}},JW=(t,i)=>i,A5=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(i){this._trackByFn=i||JW}forEachItem(i){let e;for(e=this._itHead;e!==null;e=e._next)i(e)}forEachOperation(i){let e=this._itHead,n=this._removalsHead,o=0,r=null;for(;e||n;){let a=!n||e&&e.currentIndex{a=this._trackByFn(o,s),e===null||!Object.is(e.trackById,a)?(e=this._mismatch(e,s,a,o),n=!0):(n&&(e=this._verifyReinsertion(e,s,a,o)),Object.is(e.item,s)||this._addIdentityChange(e,s)),e=e._next,o++}),this.length=o;return this._truncate(e),this.collection=i,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let i;for(i=this._previousItHead=this._itHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._additionsHead;i!==null;i=i._nextAdded)i.previousIndex=i.currentIndex;for(this._additionsHead=this._additionsTail=null,i=this._movesHead;i!==null;i=i._nextMoved)i.previousIndex=i.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(i,e,n,o){let r;return i===null?r=this._itTail:(r=i._prev,this._remove(i)),i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._reinsertAfter(i,r,o)):(i=this._linkedRecords===null?null:this._linkedRecords.get(n,o),i!==null?(Object.is(i.item,e)||this._addIdentityChange(i,e),this._moveAfter(i,r,o)):i=this._addAfter(new z5(e,n),r,o)),i}_verifyReinsertion(i,e,n,o){let r=this._unlinkedRecords===null?null:this._unlinkedRecords.get(n,null);return r!==null?i=this._reinsertAfter(r,i._prev,o):i.currentIndex!=o&&(i.currentIndex=o,this._addToMoves(i,o)),i}_truncate(i){for(;i!==null;){let e=i._next;this._addToRemovals(this._unlink(i)),i=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(i,e,n){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(i);let o=i._prevRemoved,r=i._nextRemoved;return o===null?this._removalsHead=r:o._nextRemoved=r,r===null?this._removalsTail=o:r._prevRemoved=o,this._insertAfter(i,e,n),this._addToMoves(i,n),i}_moveAfter(i,e,n){return this._unlink(i),this._insertAfter(i,e,n),this._addToMoves(i,n),i}_addAfter(i,e,n){return this._insertAfter(i,e,n),this._additionsTail===null?this._additionsTail=this._additionsHead=i:this._additionsTail=this._additionsTail._nextAdded=i,i}_insertAfter(i,e,n){let o=e===null?this._itHead:e._next;return i._next=o,i._prev=e,o===null?this._itTail=i:o._prev=i,e===null?this._itHead=i:e._next=i,this._linkedRecords===null&&(this._linkedRecords=new mm),this._linkedRecords.put(i),i.currentIndex=n,i}_remove(i){return this._addToRemovals(this._unlink(i))}_unlink(i){this._linkedRecords!==null&&this._linkedRecords.remove(i);let e=i._prev,n=i._next;return e===null?this._itHead=n:e._next=n,n===null?this._itTail=e:n._prev=e,i}_addToMoves(i,e){return i.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=i:this._movesTail=this._movesTail._nextMoved=i),i}_addToRemovals(i){return this._unlinkedRecords===null&&(this._unlinkedRecords=new mm),this._unlinkedRecords.put(i),i.currentIndex=null,i._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=i,i._prevRemoved=null):(i._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=i),i}_addIdentityChange(i,e){return i.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=i:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=i,i}},z5=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(i,e){this.item=i,this.trackById=e}},R5=class{_head=null;_tail=null;add(i){this._head===null?(this._head=this._tail=i,i._nextDup=null,i._prevDup=null):(this._tail._nextDup=i,i._prevDup=this._tail,i._nextDup=null,this._tail=i)}get(i,e){let n;for(n=this._head;n!==null;n=n._nextDup)if((e===null||e<=n.currentIndex)&&Object.is(n.trackById,i))return n;return null}remove(i){let e=i._prevDup,n=i._nextDup;return e===null?this._head=n:e._nextDup=n,n===null?this._tail=e:n._prevDup=e,this._head===null}},mm=class{map=new Map;put(i){let e=i.trackById,n=this.map.get(e);n||(n=new R5,this.map.set(e,n)),n.add(i)}get(i,e){let n=i,o=this.map.get(n);return o?o.get(i,e):null}remove(i){let e=i.trackById;return this.map.get(e).remove(i)&&this.map.delete(e),i}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function Iw(t,i,e){let n=t.previousIndex;if(n===null)return n;let o=0;return e&&n{if(e&&e.key===o)this._maybeAddToChanges(e,n),this._appendAfter=e,e=e._next;else{let r=this._getOrCreateRecordForKey(o,n);e=this._insertBeforeOrAppend(e,r)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let n=e;n!==null;n=n._nextRemoved)n===this._mapHead&&(this._mapHead=null),this._records.delete(n.key),n._nextRemoved=n._next,n.previousValue=n.currentValue,n.currentValue=null,n._prev=null,n._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(i,e){if(i){let n=i._prev;return e._next=i,e._prev=n,i._prev=e,n&&(n._next=e),i===this._mapHead&&(this._mapHead=e),this._appendAfter=i,i}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(i,e){if(this._records.has(i)){let o=this._records.get(i);this._maybeAddToChanges(o,e);let r=o._prev,a=o._next;return r&&(r._next=a),a&&(a._prev=r),o._next=null,o._prev=null,o}let n=new V5(i);return this._records.set(i,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let i;for(this._previousMapHead=this._mapHead,i=this._previousMapHead;i!==null;i=i._next)i._nextPrevious=i._next;for(i=this._changesHead;i!==null;i=i._nextChanged)i.previousValue=i.currentValue;for(i=this._additionsHead;i!=null;i=i._nextAdded)i.previousValue=i.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(i,e){Object.is(e,i.currentValue)||(i.previousValue=i.currentValue,i.currentValue=e,this._addToChanges(i))}_addToAdditions(i){this._additionsHead===null?this._additionsHead=this._additionsTail=i:(this._additionsTail._nextAdded=i,this._additionsTail=i)}_addToChanges(i){this._changesHead===null?this._changesHead=this._changesTail=i:(this._changesTail._nextChanged=i,this._changesTail=i)}_forEach(i,e){i instanceof Map?i.forEach(e):Object.keys(i).forEach(n=>e(i[n],n))}},V5=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(i){this.key=i}};function Ow(){return new Io([new L5])}var Io=(()=>{class t{factories;static \u0275prov=R({token:t,providedIn:"root",factory:Ow});constructor(e){this.factories=e}static create(e,n){if(n!=null){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=d(t,{optional:!0,skipSelf:!0});return t.create(e,n||Ow())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n!=null)return n;throw new pe(901,!1)}}return t})();function Tw(){return new hm([new N5])}var hm=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:Tw});factories;constructor(e){this.factories=e}static create(e,n){if(n){let o=n.factories.slice();e=e.concat(o)}return new t(e)}static extend(e){return{provide:t,useFactory:()=>{let n=d(t,{optional:!0,skipSelf:!0});return t.create(e,n||Tw())}}}find(e){let n=this.factories.find(o=>o.supports(e));if(n)return n;throw new pe(901,!1)}}return t})();var Bw=H5(null,"core",[]),jw=(()=>{class t{constructor(e){}static \u0275fac=function(n){return new(n||t)(ke(li))};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function H(t){return typeof t=="boolean"?t:t!=null&&t!=="false"}function ut(t,i=NaN){return!isNaN(parseFloat(t))&&!isNaN(Number(t))?Number(t):i}var P5=Symbol("NOT_SET"),Hw=new Set,eq=Ne(q({},X2),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:P5,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(ds(m),m.value),m.signal[Yn]=m,m.registerCleanupFn=f=>(m.cleanup??=new Set).add(f),this.nodes[s]=m,this.hooks[s]=f=>m.phaseFn(f)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){super.destroy();for(let i of this.nodes)if(i)try{for(let e of i.cleanup??Hw)e()}finally{ms(i)}}};function Uw(t,i){let e=i?.injector??d(be),n=e.get(Uo),o=e.get(U4),r=e.get(Ss,null,{optional:!0});o.impl??=e.get(n5);let a=t;typeof a=="function"&&(a={mixedReadWrite:t});let s=e.get(Ac,null,{optional:!0}),c=new B5(o.impl,[a.earlyRead,a.write,a.mixedReadWrite,a.read],s?.view,n,e,r?.snapshot(null));return o.impl.register(c),c}function gm(t,i){let e=Qr(t),n=i.elementInjector||Kl();return new ws(e).create(n,i.projectableNodes,i.hostElement,i.environmentInjector,i.directives,i.bindings)}function $w(t){let i=Qr(t);if(!i)return null;let e=new ws(i);return{get selector(){return e.selector},get type(){return e.componentType},get inputs(){return e.inputs},get outputs(){return e.outputs},get ngContentSelectors(){return e.ngContentSelectors},get isStandalone(){return i.standalone},get isSignal(){return i.signals}}}var qw=null;function Oo(){return qw}function $5(t){qw??=t}var Gd=class{},Wd=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(Yw),providedIn:"platform"})}return t})(),G5=new L(""),Yw=(()=>{class t extends Wd{_location;_history;_doc=d(Me);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Oo().getBaseHref(this._doc)}onPopState(e){let n=Oo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("popstate",e,!1),()=>n.removeEventListener("popstate",e)}onHashChange(e){let n=Oo().getGlobalEventTarget(this._doc,"window");return n.addEventListener("hashchange",e,!1),()=>n.removeEventListener("hashchange",e)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(e){this._location.pathname=e}pushState(e,n,o){this._history.pushState(e,n,o)}replaceState(e,n,o){this._history.replaceState(e,n,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new t,providedIn:"platform"})}return t})();function _m(t,i){return t?i?t.endsWith("/")?i.startsWith("/")?t+i.slice(1):t+i:i.startsWith("/")?t+i:`${t}/${i}`:t:i}function Gw(t){let i=t.search(/#|\?|$/);return t[i-1]==="/"?t.slice(0,i-1)+t.slice(i):t}function Dr(t){return t&&t[0]!=="?"?`?${t}`:t}var Sr=(()=>{class t{historyGo(e){throw new Error("")}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(vm),providedIn:"root"})}return t})(),bm=new L(""),vm=(()=>{class t extends Sr{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,this._baseHref=n??this._platformLocation.getBaseHrefFromDOM()??d(Me).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return _m(this._baseHref,e)}path(e=!1){let n=this._platformLocation.pathname+Dr(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${n}${o}`:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r));this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r));this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ke(Wd),ke(bm,8))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Jo=(()=>{class t{_subject=new B;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let n=this._locationStrategy.getBaseHref();this._basePath=iq(Gw(Ww(n))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,n=""){return this.path()==this.normalize(e+Dr(n))}normalize(e){return t.stripTrailingSlash(nq(this._basePath,Ww(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,n="",o=null){this._locationStrategy.pushState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Dr(n)),o)}replaceState(e,n="",o=null){this._locationStrategy.replaceState(o,"",e,n),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Dr(n)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(n=>{this._notifyUrlChangeListeners(n.url,n.state)}),()=>{let n=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(n,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",n){this._urlChangeListeners.forEach(o=>o(e,n))}subscribe(e,n,o){return this._subject.subscribe({next:e,error:n??void 0,complete:o??void 0})}static normalizeQueryParams=Dr;static joinWithSlash=_m;static stripTrailingSlash=Gw;static \u0275fac=function(n){return new(n||t)(ke(Sr))};static \u0275prov=R({token:t,factory:()=>tq(),providedIn:"root"})}return t})();function tq(){return new Jo(ke(Sr))}function nq(t,i){if(!t||!i.startsWith(t))return i;let e=i.substring(t.length);return e===""||["/",";","?","#"].includes(e[0])?e:i}function Ww(t){return t.replace(/\/index.html$/,"")}function iq(t){if(new RegExp("^(https?:)?//").test(t)){let[,e]=t.split(/\/\/[^\/]+/);return e}return t}var t7=(()=>{class t extends Sr{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,n){super(),this._platformLocation=e,n!=null&&(this._baseHref=n)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let n=this._platformLocation.hash??"#";return n.length>0?n.substring(1):n}prepareExternalUrl(e){let n=_m(this._baseHref,e);return n.length>0?"#"+n:n}pushState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,n,a)}replaceState(e,n,o,r){let a=this.prepareExternalUrl(o+Dr(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,n,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(n){return new(n||t)(ke(Wd),ke(bm,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),nD={ADP:[void 0,void 0,0],AFN:[void 0,"\u060B",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058F",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20BC"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09F3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xA5","\xA5"],COP:[void 0,"$",2],CRC:[void 0,"\u20A1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010D",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xA3"],ESP:[void 0,"\u20A7",0],EUR:["\u20AC"],FJD:[void 0,"$"],FKP:[void 0,"\xA3"],GBP:["\xA3"],GEL:[void 0,"\u20BE"],GHS:[void 0,"GH\u20B5"],GIP:[void 0,"\xA3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20AA"],INR:["\u20B9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xA5",void 0,0],KHR:[void 0,"\u17DB"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20A9",0],KRW:["\u20A9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20B8"],LAK:[void 0,"\u20AD",0],LBP:[void 0,"L\xA3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20AE",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20A6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20B1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20B2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20BD"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xA3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xA3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xA3",0],THB:[void 0,"\u0E3F"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20BA"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20B4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20AB",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202FCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xA4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},Im=(function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t})(Im||{});var ji=(function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t})(ji||{}),Jt=(function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t})(Jt||{}),ho=(function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t})(ho||{}),Di={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function iD(t){return eo(t)[bn.LocaleId]}function oD(t,i,e){let n=eo(t),o=[n[bn.DayPeriodsFormat],n[bn.DayPeriodsStandalone]],r=er(o,i);return er(r,e)}function rD(t,i,e){let n=eo(t),o=[n[bn.DaysFormat],n[bn.DaysStandalone]],r=er(o,i);return er(r,e)}function aD(t,i,e){let n=eo(t),o=[n[bn.MonthsFormat],n[bn.MonthsStandalone]],r=er(o,i);return er(r,e)}function sD(t,i){let n=eo(t)[bn.Eras];return er(n,i)}function qd(t,i){let e=eo(t);return er(e[bn.DateFormat],i)}function Yd(t,i){let e=eo(t);return er(e[bn.TimeFormat],i)}function Qd(t,i){let n=eo(t)[bn.DateTimeFormat];return er(n,i)}function Er(t,i){let e=eo(t),n=e[bn.NumberSymbols][i];if(typeof n>"u"){if(i===Di.CurrencyDecimal)return e[bn.NumberSymbols][Di.Decimal];if(i===Di.CurrencyGroup)return e[bn.NumberSymbols][Di.Group]}return n}function n7(t,i){return eo(t)[bn.NumberFormats][i]}function oq(t){return eo(t)[bn.Currencies]}function cD(t){if(!t[bn.ExtraData])throw new pe(2303,!1)}function lD(t){let i=eo(t);return cD(i),(i[bn.ExtraData][2]||[]).map(n=>typeof n=="string"?W5(n):[W5(n[0]),W5(n[1])])}function dD(t,i,e){let n=eo(t);cD(n);let o=[n[bn.ExtraData][0],n[bn.ExtraData][1]],r=er(o,i)||[];return er(r,e)||[]}function er(t,i){for(let e=i;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new pe(2304,!1)}function W5(t){let[i,e]=t.split(":");return{hours:+i,minutes:+e}}function uD(t,i,e="en"){let n=oq(e)[t]||nD[t]||[],o=n[1];return i==="narrow"&&typeof o=="string"?o:n[0]||t}var rq=2;function mD(t){let i,e=nD[t];return e&&(i=e[2]),typeof i=="number"?i:rq}var aq=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ym={},sq=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;function pD(t,i,e,n){let o=gq(t);i=$a(e,i)||i;let a=[],s;for(;i;)if(s=sq.exec(i),s){a=a.concat(s.slice(1));let f=a.pop();if(!f)break;i=f}else{a.push(i);break}let c=o.getTimezoneOffset();n&&(c=hD(n,c),o=hq(o,n));let m="";return a.forEach(f=>{let v=pq(f);m+=v?v(o,e,c):f==="''"?"'":f.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),m}function Dm(t,i,e){let n=new Date(0);return n.setFullYear(t,i,e),n.setHours(0,0,0),n}function $a(t,i){let e=iD(t);if(ym[e]??={},ym[e][i])return ym[e][i];let n="";switch(i){case"shortDate":n=qd(t,ho.Short);break;case"mediumDate":n=qd(t,ho.Medium);break;case"longDate":n=qd(t,ho.Long);break;case"fullDate":n=qd(t,ho.Full);break;case"shortTime":n=Yd(t,ho.Short);break;case"mediumTime":n=Yd(t,ho.Medium);break;case"longTime":n=Yd(t,ho.Long);break;case"fullTime":n=Yd(t,ho.Full);break;case"short":let o=$a(t,"shortTime"),r=$a(t,"shortDate");n=Cm(Qd(t,ho.Short),[o,r]);break;case"medium":let a=$a(t,"mediumTime"),s=$a(t,"mediumDate");n=Cm(Qd(t,ho.Medium),[a,s]);break;case"long":let c=$a(t,"longTime"),m=$a(t,"longDate");n=Cm(Qd(t,ho.Long),[c,m]);break;case"full":let f=$a(t,"fullTime"),v=$a(t,"fullDate");n=Cm(Qd(t,ho.Full),[f,v]);break}return n&&(ym[e][i]=n),n}function Cm(t,i){return i&&(t=t.replace(/\{([^}]+)}/g,function(e,n){return i!=null&&n in i?i[n]:e})),t}function kr(t,i,e="-",n,o){let r="";(t<0||o&&t<=0)&&(o?t=-t+1:(t=-t,r=e));let a=String(t);for(;a.length0||s>-e)&&(s+=e),t===3)s===0&&e===-12&&(s=12);else if(t===6)return cq(s,i);let c=Er(a,Di.MinusSign);return kr(s,i,c,n,o)}}function lq(t,i){switch(t){case 0:return i.getFullYear();case 1:return i.getMonth();case 2:return i.getDate();case 3:return i.getHours();case 4:return i.getMinutes();case 5:return i.getSeconds();case 6:return i.getMilliseconds();case 7:return i.getDay();default:throw new pe(2301,!1)}}function un(t,i,e=ji.Format,n=!1){return function(o,r){return dq(o,r,t,i,e,n)}}function dq(t,i,e,n,o,r){switch(e){case 2:return aD(i,o,n)[t.getMonth()];case 1:return rD(i,o,n)[t.getDay()];case 0:let a=t.getHours(),s=t.getMinutes();if(r){let m=lD(i),f=dD(i,o,n),v=m.findIndex(x=>{if(Array.isArray(x)){let[w,O]=x,K=a>=w.hours&&s>=w.minutes,Y=a0?Math.floor(o/60):Math.ceil(o/60);switch(t){case 0:return(o>=0?"+":"")+kr(a,2,r)+kr(Math.abs(o%60),2,r);case 1:return"GMT"+(o>=0?"+":"")+kr(a,1,r);case 2:return"GMT"+(o>=0?"+":"")+kr(a,2,r)+":"+kr(Math.abs(o%60),2,r);case 3:return n===0?"Z":(o>=0?"+":"")+kr(a,2,r)+":"+kr(Math.abs(o%60),2,r);default:throw new pe(2310,!1)}}}var uq=0,wm=4;function mq(t){let i=Dm(t,uq,1).getDay();return Dm(t,0,1+(i<=wm?wm:wm+7)-i)}function fD(t){let i=t.getDay(),e=i===0?-3:wm-i;return Dm(t.getFullYear(),t.getMonth(),t.getDate()+e)}function q5(t,i=!1){return function(e,n){let o;if(i){let r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+r)/7)}else{let r=fD(e),a=mq(r.getFullYear()),s=r.getTime()-a.getTime();o=1+Math.round(s/6048e5)}return kr(o,t,Er(n,Di.MinusSign))}}function Mm(t,i=!1){return function(e,n){let r=fD(e).getFullYear();return kr(r,t,Er(n,Di.MinusSign),i)}}var Y5={};function pq(t){if(Y5[t])return Y5[t];let i;switch(t){case"G":case"GG":case"GGG":i=un(3,Jt.Abbreviated);break;case"GGGG":i=un(3,Jt.Wide);break;case"GGGGG":i=un(3,Jt.Narrow);break;case"y":i=Jn(0,1,0,!1,!0);break;case"yy":i=Jn(0,2,0,!0,!0);break;case"yyy":i=Jn(0,3,0,!1,!0);break;case"yyyy":i=Jn(0,4,0,!1,!0);break;case"Y":i=Mm(1);break;case"YY":i=Mm(2,!0);break;case"YYY":i=Mm(3);break;case"YYYY":i=Mm(4);break;case"M":case"L":i=Jn(1,1,1);break;case"MM":case"LL":i=Jn(1,2,1);break;case"MMM":i=un(2,Jt.Abbreviated);break;case"MMMM":i=un(2,Jt.Wide);break;case"MMMMM":i=un(2,Jt.Narrow);break;case"LLL":i=un(2,Jt.Abbreviated,ji.Standalone);break;case"LLLL":i=un(2,Jt.Wide,ji.Standalone);break;case"LLLLL":i=un(2,Jt.Narrow,ji.Standalone);break;case"w":i=q5(1);break;case"ww":i=q5(2);break;case"W":i=q5(1,!0);break;case"d":i=Jn(2,1);break;case"dd":i=Jn(2,2);break;case"c":case"cc":i=Jn(7,1);break;case"ccc":i=un(1,Jt.Abbreviated,ji.Standalone);break;case"cccc":i=un(1,Jt.Wide,ji.Standalone);break;case"ccccc":i=un(1,Jt.Narrow,ji.Standalone);break;case"cccccc":i=un(1,Jt.Short,ji.Standalone);break;case"E":case"EE":case"EEE":i=un(1,Jt.Abbreviated);break;case"EEEE":i=un(1,Jt.Wide);break;case"EEEEE":i=un(1,Jt.Narrow);break;case"EEEEEE":i=un(1,Jt.Short);break;case"a":case"aa":case"aaa":i=un(0,Jt.Abbreviated);break;case"aaaa":i=un(0,Jt.Wide);break;case"aaaaa":i=un(0,Jt.Narrow);break;case"b":case"bb":case"bbb":i=un(0,Jt.Abbreviated,ji.Standalone,!0);break;case"bbbb":i=un(0,Jt.Wide,ji.Standalone,!0);break;case"bbbbb":i=un(0,Jt.Narrow,ji.Standalone,!0);break;case"B":case"BB":case"BBB":i=un(0,Jt.Abbreviated,ji.Format,!0);break;case"BBBB":i=un(0,Jt.Wide,ji.Format,!0);break;case"BBBBB":i=un(0,Jt.Narrow,ji.Format,!0);break;case"h":i=Jn(3,1,-12);break;case"hh":i=Jn(3,2,-12);break;case"H":i=Jn(3,1);break;case"HH":i=Jn(3,2);break;case"m":i=Jn(4,1);break;case"mm":i=Jn(4,2);break;case"s":i=Jn(5,1);break;case"ss":i=Jn(5,2);break;case"S":i=Jn(6,1);break;case"SS":i=Jn(6,2);break;case"SSS":i=Jn(6,3);break;case"Z":case"ZZ":case"ZZZ":i=xm(0);break;case"ZZZZZ":i=xm(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":i=xm(1);break;case"OOOO":case"ZZZZ":case"zzzz":i=xm(2);break;default:return null}return Y5[t]=i,i}function hD(t,i){t=t.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?i:e}function fq(t,i){return t=new Date(t.getTime()),t.setMinutes(t.getMinutes()+i),t}function hq(t,i,e){let o=t.getTimezoneOffset(),r=hD(i,o);return fq(t,-1*(r-o))}function gq(t){if(Qw(t))return t;if(typeof t=="number"&&!isNaN(t))return new Date(t);if(typeof t=="string"){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){let[o,r=1,a=1]=t.split("-").map(s=>+s);return Dm(o,r-1,a)}let e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let n;if(n=t.match(aq))return _q(n)}let i=new Date(t);if(!Qw(i))throw new pe(2311,!1);return i}function _q(t){let i=new Date(0),e=0,n=0,o=t[8]?i.setUTCFullYear:i.setFullYear,r=t[8]?i.setUTCHours:i.setHours;t[9]&&(e=Number(t[9]+t[10]),n=Number(t[9]+t[11])),o.call(i,Number(t[1]),Number(t[2])-1,Number(t[3]));let a=Number(t[4]||0)-e,s=Number(t[5]||0)-n,c=Number(t[6]||0),m=Math.floor(parseFloat("0."+(t[7]||0))*1e3);return r.call(i,a,s,c,m),i}function Qw(t){return t instanceof Date&&!isNaN(t.valueOf())}var bq=/^(\d+)?\.((\d+)(-(\d+))?)?$/,Kw=22,Sm=".",Kd="0",vq=";",yq=",",Q5="#",Xw="\xA4";function gD(t,i,e,n,o,r,a=!1){let s="",c=!1;if(!isFinite(t))s=Er(e,Di.Infinity);else{let m=xq(t);a&&(m=Cq(m));let f=i.minInt,v=i.minFrac,x=i.maxFrac;if(r){let Oe=r.match(bq);if(Oe===null)throw new pe(2306,!1);let Mt=Oe[1],Et=Oe[3],Ht=Oe[5];Mt!=null&&(f=K5(Mt)),Et!=null&&(v=K5(Et)),Ht!=null?x=K5(Ht):Et!=null&&v>x&&(x=v)}Mq(m,v,x);let w=m.digits,O=m.integerLen,K=m.exponent,Y=[];for(c=w.every(Oe=>!Oe);O0?Y=w.splice(O,w.length):(Y=w,w=[0]);let Z=[];for(w.length>=i.lgSize&&Z.unshift(w.splice(-i.lgSize,w.length).join(""));w.length>i.gSize;)Z.unshift(w.splice(-i.gSize,w.length).join(""));w.length&&Z.unshift(w.join("")),s=Z.join(Er(e,n)),Y.length&&(s+=Er(e,o)+Y.join("")),K&&(s+=Er(e,Di.Exponential)+"+"+K)}return t<0&&!c?s=i.negPre+s+i.negSuf:s=i.posPre+s+i.posSuf,s}function Om(t,i,e,n,o){let r=n7(i,Im.Currency),a=bD(r,Er(i,Di.MinusSign));return a.minFrac=mD(n),a.maxFrac=a.minFrac,gD(t,a,i,Di.CurrencyGroup,Di.CurrencyDecimal,o).replace(Xw,e).replace(Xw,"").trim()}function _D(t,i,e){let n=n7(i,Im.Decimal),o=bD(n,Er(i,Di.MinusSign));return gD(t,o,i,Di.Group,Di.Decimal,e)}function bD(t,i="-"){let e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},n=t.split(vq),o=n[0],r=n[1],a=o.indexOf(Sm)!==-1?o.split(Sm):[o.substring(0,o.lastIndexOf(Kd)+1),o.substring(o.lastIndexOf(Kd)+1)],s=a[0],c=a[1]||"";e.posPre=s.substring(0,s.indexOf(Q5));for(let f=0;f-1&&(i=i.replace(Sm,"")),(r=i.search(/e/i))>0?(o<0&&(o=r),o+=+i.slice(r+1),i=i.substring(0,r)):o<0&&(o=i.length),r=0;i.charAt(r)===Kd;r++);if(r===(s=i.length))n=[0],o=1;else{for(s--;i.charAt(s)===Kd;)s--;for(o-=r,n=[],a=0;r<=s;r++,a++)n[a]=Number(i.charAt(r))}return o>Kw&&(n=n.splice(0,Kw-1),e=o-1,o=1),{digits:n,exponent:e,integerLen:o}}function Mq(t,i,e){if(i>e)throw new pe(2307,!1);let n=t.digits,o=n.length-t.integerLen,r=Math.min(Math.max(i,o),e),a=r+t.integerLen,s=n[a];if(a>0){n.splice(Math.max(t.integerLen,a));for(let v=a;v=5)if(a-1<0){for(let v=0;v>a;v--)n.unshift(0),t.integerLen++;n.unshift(1),t.integerLen++}else n[a-1]++;for(;o=m?O.pop():c=!1),x>=10?1:0},0);f&&(n.unshift(f),t.integerLen++)}function K5(t){let i=parseInt(t);if(isNaN(i))throw new pe(2305,!1);return i}var X5=/\s+/,Zw=[],Un=(()=>{class t{_ngEl;_renderer;initialClasses=Zw;rawClass;stateMap=new Map;constructor(e,n){this._ngEl=e,this._renderer=n}set klass(e){this.initialClasses=e!=null?e.trim().split(X5):Zw}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(X5):e}ngDoCheck(){for(let n of this.initialClasses)this._updateState(n,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let n of e)this._updateState(n,!0);else if(e!=null)for(let n of Object.keys(e))this._updateState(n,!!e[n]);this._applyStateDiff()}_updateState(e,n){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==n&&(o.changed=!0,o.enabled=n),o.touched=!0):this.stateMap.set(e,{enabled:n,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let n=e[0],o=e[1];o.changed?(this._toggleClass(n,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(n,!1),this.stateMap.delete(n)),o.touched=!1}}_toggleClass(e,n){e=e.trim(),e.length>0&&e.split(X5).forEach(o=>{n?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(n){return new(n||t)(Ce(Q),Ce(Ke))};static \u0275dir=z({type:t,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return t})();var km=class{$implicit;ngForOf;index;count;constructor(i,e,n,o){this.$implicit=i,this.ngForOf=e,this.index=n,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},vD=(()=>{class t{_viewContainer;_template;_differs;set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(e,n,o){this._viewContainer=e,this._template=n,this._differs=o}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){let e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){let n=this._viewContainer;e.forEachOperation((o,r,a)=>{if(o.previousIndex==null)n.createEmbeddedView(this._template,new km(o.item,this._ngForOf,-1,-1),a===null?void 0:a);else if(a==null)n.remove(r===null?void 0:r);else if(r!==null){let s=n.get(r);n.move(s,a),Jw(s,o)}});for(let o=0,r=n.length;o{let r=n.get(o.currentIndex);Jw(r,o)})}static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(Ce(dt),Ce(tt),Ce(Io))};static \u0275dir=z({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return t})();function Jw(t,i){t.context.$implicit=i.item}var wq=(()=>{class t{_viewContainer;_context=new Em;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(e,n){this._viewContainer=e,this._thenTemplateRef=n}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){eD(e,!1),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){eD(e,!1),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(e,n){return!0}static \u0275fac=function(n){return new(n||t)(Ce(dt),Ce(tt))};static \u0275dir=z({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return t})(),Em=class{$implicit=null;ngIf=null};function eD(t,i){if(t&&!t.createEmbeddedView)throw new pe(2020,!1)}var Z5=class{_viewContainerRef;_templateRef;_created=!1;constructor(i,e){this._viewContainerRef=i,this._templateRef=e}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(i){i&&!this._created?this.create():!i&&this._created&&this.destroy()}},yD=(()=>{class t{_defaultViews=[];_defaultUsed=!1;_caseCount=0;_lastCaseCheckIndex=0;_lastCasesMatched=!1;_ngSwitch;set ngSwitch(e){this._ngSwitch=e,this._caseCount===0&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){let n=e===this._ngSwitch;return this._lastCasesMatched||=n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(let n of this._defaultViews)n.enforceState(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}})}return t})(),Dq=(()=>{class t{ngSwitch;_view;ngSwitchCase;constructor(e,n,o){this.ngSwitch=o,o._addCase(),this._view=new Z5(e,n)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}static \u0275fac=function(n){return new(n||t)(Ce(dt),Ce(tt),Ce(yD,9))};static \u0275dir=z({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}})}return t})();var i7=(()=>{class t{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,n,o){this._ngEl=e,this._differs=n,this._renderer=o}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,n){let[o,r]=e.split("."),a=o.indexOf("-")===-1?void 0:xr.DashCase;n!=null?this._renderer.setStyle(this._ngEl.nativeElement,o,r?`${n}${r}`:n,a):this._renderer.removeStyle(this._ngEl.nativeElement,o,a)}_applyChanges(e){e.forEachRemovedItem(n=>this._setStyle(n.key,null)),e.forEachAddedItem(n=>this._setStyle(n.key,n.currentValue)),e.forEachChangedItem(n=>this._setStyle(n.key,n.currentValue))}static \u0275fac=function(n){return new(n||t)(Ce(Q),Ce(hm),Ce(Ke))};static \u0275dir=z({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}})}return t})(),Es=(()=>{class t{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let n=this._viewContainerRef;if(this._viewRef&&n.remove(n.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=n.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,n,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,n,o):!1,get:(e,n,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,n,o)}})}static \u0275fac=function(n){return new(n||t)(Ce(dt))};static \u0275dir=z({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Re]})}return t})();function k1(t,i){return new pe(2100,!1)}var J5=class{createSubscription(i,e,n){return Vn(()=>i.subscribe({next:e,error:n}))}dispose(i){Vn(()=>i.unsubscribe())}},e7=class{createSubscription(i,e,n){return i.then(o=>e?.(o),o=>n?.(o)),{unsubscribe:()=>{e=null,n=null}}}dispose(i){i.unsubscribe()}},Sq=new e7,kq=new J5,Xd=(()=>{class t{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;applicationErrorHandler=d(Zi);constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,n=>this._updateLatestValue(e,n),n=>this.applicationErrorHandler(n))}_selectStrategy(e){if(Ha(e))return Sq;if(em(e))return kq;throw k1(t,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,n){e===this._obj&&(this._latestValue=n,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(n){return new(n||t)(Ce(xe,16))};static \u0275pipe=wt({name:"async",type:t,pure:!1})}return t})(),Eq=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw k1(t,e);return e.toLowerCase()}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=wt({name:"lowercase",type:t,pure:!0})}return t})(),Iq=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g,Oq=(()=>{class t{transform(e){if(e==null)return null;if(typeof e!="string")throw k1(t,e);return e.replace(Iq,n=>n[0].toUpperCase()+n.slice(1).toLowerCase())}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=wt({name:"titlecase",type:t,pure:!0})}return t})();var Tq="mediumDate",CD=new L(""),xD=new L(""),E1=(()=>{class t{locale;defaultTimezone;defaultOptions;constructor(e,n,o){this.locale=e,this.defaultTimezone=n,this.defaultOptions=o}transform(e,n,o,r){if(e==null||e===""||e!==e)return null;try{let a=n??this.defaultOptions?.dateFormat??Tq,s=o??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return pD(e,a,r||this.locale,s)}catch(a){throw k1(t,a.message)}}static \u0275fac=function(n){return new(n||t)(Ce(wr,16),Ce(CD,24),Ce(xD,24))};static \u0275pipe=wt({name:"date",type:t,pure:!0})}return t})();var Pq=(()=>{class t{transform(e){return JSON.stringify(e,null,2)}static \u0275fac=function(n){return new(n||t)};static \u0275pipe=wt({name:"json",type:t,pure:!1})}return t})();function Lq(t,i){return{key:t,value:i}}var Aq=(()=>{class t{differs;constructor(e){this.differs=e}differ;keyValues=[];compareFn=tD;transform(e,n=tD){if(!e||!(e instanceof Map)&&typeof e!="object")return null;this.differ??=this.differs.find(e).create();let o=this.differ.diff(e),r=n!==this.compareFn;return o&&(this.keyValues=[],o.forEachItem(a=>{this.keyValues.push(Lq(a.key,a.currentValue))})),(o||r)&&(n&&this.keyValues.sort(n),this.compareFn=n),this.keyValues}static \u0275fac=function(n){return new(n||t)(Ce(hm,16))};static \u0275pipe=wt({name:"keyvalue",type:t,pure:!1})}return t})();function tD(t,i){let e=t.key,n=i.key;if(e===n)return 0;if(e==null)return 1;if(n==null)return-1;if(typeof e=="string"&&typeof n=="string")return e{class t{_locale;constructor(e){this._locale=e}transform(e,n,o){if(!MD(e))return null;o||=this._locale;try{let r=wD(e);return _D(r,o,n)}catch(r){throw k1(t,r.message)}}static \u0275fac=function(n){return new(n||t)(Ce(wr,16))};static \u0275pipe=wt({name:"number",type:t,pure:!0})}return t})();var o7=(()=>{class t{_locale;_defaultCurrencyCode;constructor(e,n="USD"){this._locale=e,this._defaultCurrencyCode=n}transform(e,n=this._defaultCurrencyCode,o="symbol",r,a){if(!MD(e))return null;a||=this._locale,typeof o=="boolean"&&(o=o?"symbol":"code");let s=n||this._defaultCurrencyCode;o!=="code"&&(o==="symbol"||o==="symbol-narrow"?s=uD(s,o==="symbol"?"wide":"narrow",a):s=o);try{let c=wD(e);return Om(c,a,s,n,r)}catch(c){throw k1(t,c.message)}}static \u0275fac=function(n){return new(n||t)(Ce(wr,16),Ce(O5,16))};static \u0275pipe=wt({name:"currency",type:t,pure:!0})}return t})();function MD(t){return!(t==null||t===""||t!==t)}function wD(t){if(typeof t=="string"&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if(typeof t!="number")throw new pe(2309,!1);return t}var he=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function Jd(t,i){i=encodeURIComponent(i);for(let e of t.split(";")){let n=e.indexOf("="),[o,r]=n==-1?[e,""]:[e.slice(0,n),e.slice(n+1)];if(o.trim()===i)return decodeURIComponent(r)}return null}var $c=class{};function _be(t,i,e){return D5(t,i,e)}var a7="browser";function DD(t){return t===a7}var SD=(()=>{class t{static \u0275prov=R({token:t,providedIn:"root",factory:()=>new r7(d(Me),window)})}return t})(),r7=class{document;window;offset=()=>[0,0];constructor(i,e){this.document=i,this.window=e}setOffset(i){Array.isArray(i)?this.offset=()=>i:this.offset=i}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(i,e){this.window.scrollTo(Ne(q({},e),{left:i[0],top:i[1]}))}scrollToAnchor(i,e){let n=zq(this.document,i);n&&(this.scrollToElement(n,e),n.focus())}setHistoryScrollRestoration(i){try{this.window.history.scrollRestoration=i}catch{console.warn($o(2400,!1))}}scrollToElement(i,e){let n=i.getBoundingClientRect(),o=n.left+this.window.pageXOffset,r=n.top+this.window.pageYOffset,a=this.offset();this.window.scrollTo(Ne(q({},e),{left:o-a[0],top:r-a[1]}))}};function zq(t,i){let e=t.getElementById(i)||t.getElementsByName(i)[0];if(e)return e;if(typeof t.createTreeWalker=="function"&&t.body&&typeof t.body.attachShadow=="function"){let n=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT),o=n.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(i)||r.querySelector(`[name="${i}"]`);if(a)return a}o=n.nextNode()}}return null}var e0=class{_doc;constructor(i){this._doc=i}manager},Tm=(()=>{class t extends e0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,n,o,r){return e.addEventListener(n,o,r),()=>this.removeEventListener(e,n,o,r)}removeEventListener(e,n,o,r){return e.removeEventListener(n,o,r)}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),Lm=new L(""),u7=(()=>{class t{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,n){this._zone=n,e.forEach(a=>{a.manager=this});let o=e.filter(a=>!(a instanceof Tm));this._plugins=o.slice().reverse();let r=e.find(a=>a instanceof Tm);r&&this._plugins.push(r)}addEventListener(e,n,o,r){return this._findPluginFor(n).addEventListener(e,n,o,r)}getZone(){return this._zone}_findPluginFor(e){let n=this._eventNameToPlugin.get(e);if(n)return n;if(n=this._plugins.find(r=>r.supports(e)),!n)throw new pe(5101,!1);return this._eventNameToPlugin.set(e,n),n}static \u0275fac=function(n){return new(n||t)(ke(Lm),ke(se))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),s7="ng-app-id";function kD(t){for(let i of t)i.remove()}function ED(t,i){let e=i.createElement("style");return e.textContent=t,e}function Rq(t,i,e,n){let o=t.head?.querySelectorAll(`style[${s7}="${i}"],link[${s7}="${i}"]`);if(o)for(let r of o)r.removeAttribute(s7),r instanceof HTMLLinkElement?n.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function l7(t,i){let e=i.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",t),e}var m7=(()=>{class t{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,n,o,r={}){this.doc=e,this.appId=n,this.nonce=o,Rq(e,n,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,n){for(let o of e)this.addUsage(o,this.inline,ED);n?.forEach(o=>this.addUsage(o,this.external,l7))}removeStyles(e,n){for(let o of e)this.removeUsage(o,this.inline);n?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,n,o){let r=n.get(e);r?r.usage++:n.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,n){let o=n.get(e);o&&(o.usage--,o.usage<=0&&(kD(o.elements),n.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])kD(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[n,{elements:o}]of this.inline)o.push(this.addElement(e,ED(n,this.doc)));for(let[n,{elements:o}]of this.external)o.push(this.addElement(e,l7(n,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,n){return this.nonce&&n.setAttribute("nonce",this.nonce),e.appendChild(n)}static \u0275fac=function(n){return new(n||t)(ke(Me),ke(Ds),ke(g1,8),ke(Bc))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),c7={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},p7=/%COMP%/g;var OD="%COMP%",Nq=`_nghost-${OD}`,Fq=`_ngcontent-${OD}`,Vq=!0,Bq=new L("",{providedIn:"root",factory:()=>Vq});function jq(t){return Fq.replace(p7,t)}function Hq(t){return Nq.replace(p7,t)}function TD(t,i){return i.map(e=>e.replace(p7,t))}var f7=(()=>{class t{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,n,o,r,a,s,c=null,m=null){this.eventManager=e,this.sharedStylesHost=n,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.ngZone=s,this.nonce=c,this.tracingService=m,this.platformIsServer=!1,this.defaultRenderer=new t0(e,a,s,this.platformIsServer,this.tracingService)}createRenderer(e,n){if(!e||!n)return this.defaultRenderer;let o=this.getOrCreateRenderer(e,n);return o instanceof Pm?o.applyToHost(e):o instanceof n0&&o.applyStyles(),o}getOrCreateRenderer(e,n){let o=this.rendererByCompId,r=o.get(n.id);if(!r){let a=this.doc,s=this.ngZone,c=this.eventManager,m=this.sharedStylesHost,f=this.removeStylesOnCompDestroy,v=this.platformIsServer,x=this.tracingService;switch(n.encapsulation){case Va.Emulated:r=new Pm(c,m,n,this.appId,f,a,s,v,x);break;case Va.ShadowDom:return new d7(c,m,e,n,a,s,this.nonce,v,x);default:r=new n0(c,m,n,f,a,s,v,x);break}o.set(n.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(n){return new(n||t)(ke(u7),ke(m7),ke(Ds),ke(Bq),ke(Me),ke(se),ke(g1),ke(Ss,8))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),t0=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(i,e,n,o,r){this.eventManager=i,this.doc=e,this.ngZone=n,this.platformIsServer=o,this.tracingService=r}destroy(){}destroyNode=null;createElement(i,e){return e?this.doc.createElementNS(c7[e]||e,i):this.doc.createElement(i)}createComment(i){return this.doc.createComment(i)}createText(i){return this.doc.createTextNode(i)}appendChild(i,e){(ID(i)?i.content:i).appendChild(e)}insertBefore(i,e,n){i&&(ID(i)?i.content:i).insertBefore(e,n)}removeChild(i,e){e.remove()}selectRootElement(i,e){let n=typeof i=="string"?this.doc.querySelector(i):i;if(!n)throw new pe(-5104,!1);return e||(n.textContent=""),n}parentNode(i){return i.parentNode}nextSibling(i){return i.nextSibling}setAttribute(i,e,n,o){if(o){e=o+":"+e;let r=c7[o];r?i.setAttributeNS(r,e,n):i.setAttribute(e,n)}else i.setAttribute(e,n)}removeAttribute(i,e,n){if(n){let o=c7[n];o?i.removeAttributeNS(o,e):i.removeAttribute(`${n}:${e}`)}else i.removeAttribute(e)}addClass(i,e){i.classList.add(e)}removeClass(i,e){i.classList.remove(e)}setStyle(i,e,n,o){o&(xr.DashCase|xr.Important)?i.style.setProperty(e,n,o&xr.Important?"important":""):i.style[e]=n}removeStyle(i,e,n){n&xr.DashCase?i.style.removeProperty(e):i.style[e]=""}setProperty(i,e,n){i!=null&&(i[e]=n)}setValue(i,e){i.nodeValue=e}listen(i,e,n,o){if(typeof i=="string"&&(i=Oo().getGlobalEventTarget(this.doc,i),!i))throw new pe(5102,!1);let r=this.decoratePreventDefault(n);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(i,e,r)),this.eventManager.addEventListener(i,e,r,o)}decoratePreventDefault(i){return e=>{if(e==="__ngUnwrap__")return i;i(e)===!1&&e.preventDefault()}}};function ID(t){return t.tagName==="TEMPLATE"&&t.content!==void 0}var d7=class extends t0{sharedStylesHost;hostEl;shadowRoot;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,c,m),this.sharedStylesHost=e,this.hostEl=n,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let f=o.styles;f=TD(o.id,f);for(let x of f){let w=document.createElement("style");s&&w.setAttribute("nonce",s),w.textContent=x,this.shadowRoot.appendChild(w)}let v=o.getExternalStyles?.();if(v)for(let x of v){let w=l7(x,r);s&&w.setAttribute("nonce",s),this.shadowRoot.appendChild(w)}}nodeOrShadowRoot(i){return i===this.hostEl?this.shadowRoot:i}appendChild(i,e){return super.appendChild(this.nodeOrShadowRoot(i),e)}insertBefore(i,e,n){return super.insertBefore(this.nodeOrShadowRoot(i),e,n)}removeChild(i,e){return super.removeChild(null,e)}parentNode(i){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(i)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},n0=class extends t0{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(i,e,n,o,r,a,s,c,m){super(i,r,a,s,c),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let f=n.styles;this.styles=m?TD(m,f):f,this.styleUrls=n.getExternalStyles?.(m)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&Fc.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Pm=class extends n0{contentAttr;hostAttr;constructor(i,e,n,o,r,a,s,c,m){let f=o+"-"+n.id;super(i,e,n,r,a,s,c,m,f),this.contentAttr=jq(f),this.hostAttr=Hq(f)}applyToHost(i){this.applyStyles(),this.setAttribute(i,this.hostAttr,"")}createElement(i,e){let n=super.createElement(i,e);return super.setAttribute(n,this.contentAttr,""),n}};var Am=class t extends Gd{supportsDOMEvents=!0;static makeCurrent(){$5(new t)}onAndCancel(i,e,n,o){return i.addEventListener(e,n,o),()=>{i.removeEventListener(e,n,o)}}dispatchEvent(i,e){i.dispatchEvent(e)}remove(i){i.remove()}createElement(i,e){return e=e||this.getDefaultDocument(),e.createElement(i)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(i){return i.nodeType===Node.ELEMENT_NODE}isShadowRoot(i){return i instanceof DocumentFragment}getGlobalEventTarget(i,e){return e==="window"?window:e==="document"?i:e==="body"?i.body:null}getBaseHref(i){let e=Uq();return e==null?null:$q(e)}resetBaseElement(){i0=null}getUserAgent(){return window.navigator.userAgent}getCookie(i){return Jd(document.cookie,i)}},i0=null;function Uq(){return i0=i0||document.head.querySelector("base"),i0?i0.getAttribute("href"):null}function $q(t){return new URL(t,document.baseURI).pathname}var zm=class{addToWindow(i){Qn.getAngularTestability=(n,o=!0)=>{let r=i.findTestabilityInTree(n,o);if(r==null)throw new pe(5103,!1);return r},Qn.getAllAngularTestabilities=()=>i.getAllTestabilities(),Qn.getAllAngularRootElements=()=>i.getAllRootElements();let e=n=>{let o=Qn.getAllAngularTestabilities(),r=o.length,a=function(){r--,r==0&&n()};o.forEach(s=>{s.whenStable(a)})};Qn.frameworkStabilizers||(Qn.frameworkStabilizers=[]),Qn.frameworkStabilizers.push(e)}findTestabilityInTree(i,e,n){if(e==null)return null;let o=i.getTestability(e);return o??(n?Oo().isShadowRoot(e)?this.findTestabilityInTree(i,e.host,!0):this.findTestabilityInTree(i,e.parentElement,!0):null)}},Gq=(()=>{class t{build(){return new XMLHttpRequest}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),PD=["alt","control","meta","shift"],Wq={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},qq={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey},LD=(()=>{class t extends e0{constructor(e){super(e)}supports(e){return t.parseEventName(e)!=null}addEventListener(e,n,o,r){let a=t.parseEventName(n),s=t.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Oo().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let n=e.toLowerCase().split("."),o=n.shift();if(n.length===0||!(o==="keydown"||o==="keyup"))return null;let r=t._normalizeKey(n.pop()),a="",s=n.indexOf("code");if(s>-1&&(n.splice(s,1),a="code."),PD.forEach(m=>{let f=n.indexOf(m);f>-1&&(n.splice(f,1),a+=m+".")}),a+=r,n.length!=0||r.length===0)return null;let c={};return c.domEventName=o,c.fullKey=a,c}static matchEventFullKeyCode(e,n){let o=Wq[e.key]||e.key,r="";return n.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),PD.forEach(a=>{if(a!==o){let s=qq[a];s(e)&&(r+=a+".")}}),r+=o,r===n)}static eventCallback(e,n,o){return r=>{t.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>n(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Yq(){Am.makeCurrent()}function Qq(){return new _i}function Kq(){return F8(document),document}var Xq=[{provide:Bc,useValue:a7},{provide:R4,useValue:Yq,multi:!0},{provide:Me,useFactory:Kq}],Zq=H5(Bw,"browser",Xq);var Jq=[{provide:y1,useClass:zm},{provide:J4,useClass:Vd,deps:[se,Bd,y1]},{provide:Vd,useClass:Vd,deps:[se,Bd,y1]}],eY=[{provide:ld,useValue:"root"},{provide:_i,useFactory:Qq},{provide:Lm,useClass:Tm,multi:!0,deps:[Me]},{provide:Lm,useClass:LD,multi:!0,deps:[Me]},f7,m7,u7,{provide:On,useExisting:f7},{provide:$c,useClass:Gq},[]],tY=(()=>{class t{constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[...eY,...Jq],imports:[he,jw]})}return t})();var T1=class{},o0=class{},To=class t{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(i){i?typeof i=="string"?this.lazyInit=()=>{this.headers=new Map,i.split(` +`).forEach(e=>{let n=e.indexOf(":");if(n>0){let o=e.slice(0,n),r=e.slice(n+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&i instanceof Headers?(this.headers=new Map,i.forEach((e,n)=>{this.addHeaderEntry(n,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(i).forEach(([e,n])=>{this.setHeaderEntries(e,n)})}:this.headers=new Map}has(i){return this.init(),this.headers.has(i.toLowerCase())}get(i){this.init();let e=this.headers.get(i.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(i){return this.init(),this.headers.get(i.toLowerCase())||null}append(i,e){return this.clone({name:i,value:e,op:"a"})}set(i,e){return this.clone({name:i,value:e,op:"s"})}delete(i,e){return this.clone({name:i,value:e,op:"d"})}maybeSetNormalizedName(i,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,i)}init(){this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(i=>this.applyUpdate(i)),this.lazyUpdate=null))}copyFrom(i){i.init(),Array.from(i.headers.keys()).forEach(e=>{this.headers.set(e,i.headers.get(e)),this.normalizedNames.set(e,i.normalizedNames.get(e))})}clone(i){let e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([i]),e}applyUpdate(i){let e=i.name.toLowerCase();switch(i.op){case"a":case"s":let n=i.value;if(typeof n=="string"&&(n=[n]),n.length===0)return;this.maybeSetNormalizedName(i.name,e);let o=(i.op==="a"?this.headers.get(e):void 0)||[];o.push(...n),this.headers.set(e,o);break;case"d":let r=i.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(i,e){let n=i.toLowerCase();this.maybeSetNormalizedName(i,n),this.headers.has(n)?this.headers.get(n).push(e):this.headers.set(n,[e])}setHeaderEntries(i,e){let n=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=i.toLowerCase();this.headers.set(o,n),this.maybeSetNormalizedName(i,o)}forEach(i){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>i(this.normalizedNames.get(e),this.headers.get(e)))}};var Nm=class{encodeKey(i){return AD(i)}encodeValue(i){return AD(i)}decodeKey(i){return decodeURIComponent(i)}decodeValue(i){return decodeURIComponent(i)}};function nY(t,i){let e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[i.decodeKey(o),""]:[i.decodeKey(o.slice(0,r)),i.decodeValue(o.slice(r+1))],c=e.get(a)||[];c.push(s),e.set(a,c)}),e}var iY=/%(\d[a-f0-9])/gi,oY={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function AD(t){return encodeURIComponent(t).replace(iY,(i,e)=>oY[e]??i)}function Rm(t){return`${t}`}var te=class t{map;encoder;updates=null;cloneFrom=null;constructor(i={}){if(this.encoder=i.encoder||new Nm,i.fromString){if(i.fromObject)throw new pe(2805,!1);this.map=nY(i.fromString,this.encoder)}else i.fromObject?(this.map=new Map,Object.keys(i.fromObject).forEach(e=>{let n=i.fromObject[e],o=Array.isArray(n)?n.map(Rm):[Rm(n)];this.map.set(e,o)})):this.map=null}has(i){return this.init(),this.map.has(i)}get(i){this.init();let e=this.map.get(i);return e?e[0]:null}getAll(i){return this.init(),this.map.get(i)||null}keys(){return this.init(),Array.from(this.map.keys())}append(i,e){return this.clone({param:i,value:e,op:"a"})}appendAll(i){let e=[];return Object.keys(i).forEach(n=>{let o=i[n];Array.isArray(o)?o.forEach(r=>{e.push({param:n,value:r,op:"a"})}):e.push({param:n,value:o,op:"a"})}),this.clone(e)}set(i,e){return this.clone({param:i,value:e,op:"s"})}delete(i,e){return this.clone({param:i,value:e,op:"d"})}toString(){return this.init(),this.keys().map(i=>{let e=this.encoder.encodeKey(i);return this.map.get(i).map(n=>e+"="+this.encoder.encodeValue(n)).join("&")}).filter(i=>i!=="").join("&")}clone(i){let e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(i),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(i=>this.map.set(i,this.cloneFrom.map.get(i))),this.updates.forEach(i=>{switch(i.op){case"a":case"s":let e=(i.op==="a"?this.map.get(i.param):void 0)||[];e.push(Rm(i.value)),this.map.set(i.param,e);break;case"d":if(i.value!==void 0){let n=this.map.get(i.param)||[],o=n.indexOf(Rm(i.value));o!==-1&&n.splice(o,1),n.length>0?this.map.set(i.param,n):this.map.delete(i.param)}else{this.map.delete(i.param);break}}}),this.cloneFrom=this.updates=null)}};var Fm=class{map=new Map;set(i,e){return this.map.set(i,e),this}get(i){return this.map.has(i)||this.map.set(i,i.defaultValue()),this.map.get(i)}delete(i){return this.map.delete(i),this}has(i){return this.map.has(i)}keys(){return this.map.keys()}};function rY(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function zD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function RD(t){return typeof Blob<"u"&&t instanceof Blob}function ND(t){return typeof FormData<"u"&&t instanceof FormData}function aY(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}var FD="Content-Type",VD="Accept",jD="X-Request-URL",HD="text/plain",UD="application/json",sY=`${UD}, ${HD}, */*`,I1=class t{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;responseType="json";method;params;urlWithParams;transferCache;timeout;constructor(i,e,n,o){this.url=e,this.method=i.toUpperCase();let r;if(rY(this.method)||o?(this.body=n!==void 0?n:null,r=o):r=n,r){if(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,this.keepalive=!!r.keepalive,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),r.priority&&(this.priority=r.priority),r.cache&&(this.cache=r.cache),r.credentials&&(this.credentials=r.credentials),typeof r.timeout=="number"){if(r.timeout<1||!Number.isInteger(r.timeout))throw new pe(2822,"");this.timeout=r.timeout}r.mode&&(this.mode=r.mode),r.redirect&&(this.redirect=r.redirect),r.integrity&&(this.integrity=r.integrity),r.referrer&&(this.referrer=r.referrer),this.transferCache=r.transferCache}if(this.headers??=new To,this.context??=new Fm,!this.params)this.params=new te,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),c=s===-1?"?":sHt.set(fn,i.setHeaders[fn]),Oe)),i.setParams&&(Mt=Object.keys(i.setParams).reduce((Ht,fn)=>Ht.set(fn,i.setParams[fn]),Mt)),new t(e,n,K,{params:Mt,headers:Oe,context:Et,reportProgress:Z,responseType:o,withCredentials:Y,transferCache:w,keepalive:r,cache:s,priority:a,timeout:O,mode:c,redirect:m,credentials:f,referrer:v,integrity:x})}},Gc=(function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t})(Gc||{}),P1=class{headers;status;statusText;url;ok;type;redirected;constructor(i,e=200,n="OK"){this.headers=i.headers||new To,this.status=i.status!==void 0?i.status:e,this.statusText=i.statusText||n,this.url=i.url||null,this.redirected=i.redirected,this.ok=this.status>=200&&this.status<300}},Vm=class t extends P1{constructor(i={}){super(i)}type=Gc.ResponseHeader;clone(i={}){return new t({headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0})}},r0=class t extends P1{body;constructor(i={}){super(i),this.body=i.body!==void 0?i.body:null}type=Gc.Response;clone(i={}){return new t({body:i.body!==void 0?i.body:this.body,headers:i.headers||this.headers,status:i.status!==void 0?i.status:this.status,statusText:i.statusText||this.statusText,url:i.url||this.url||void 0,redirected:i.redirected??this.redirected})}},O1=class extends P1{name="HttpErrorResponse";message;error;ok=!1;constructor(i){super(i,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${i.url||"(unknown url)"}`:this.message=`Http failure response for ${i.url||"(unknown url)"}: ${i.status} ${i.statusText}`,this.error=i.error||null}},cY=200,lY=204;function h7(t,i){return{body:i,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials,credentials:t.credentials,transferCache:t.transferCache,timeout:t.timeout,keepalive:t.keepalive,priority:t.priority,cache:t.cache,mode:t.mode,redirect:t.redirect,integrity:t.integrity,referrer:t.referrer}}var Bn=(()=>{class t{handler;constructor(e){this.handler=e}request(e,n,o={}){let r;if(e instanceof I1)r=e;else{let c;o.headers instanceof To?c=o.headers:c=new To(o.headers);let m;o.params&&(o.params instanceof te?m=o.params:m=new te({fromObject:o.params})),r=new I1(e,n,o.body!==void 0?o.body:null,{headers:c,context:o.context,params:m,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache,keepalive:o.keepalive,priority:o.priority,cache:o.cache,mode:o.mode,redirect:o.redirect,credentials:o.credentials,referrer:o.referrer,integrity:o.integrity,timeout:o.timeout})}let a=re(r).pipe(Qi(c=>this.handler.handle(c)));if(e instanceof I1||o.observe==="events")return a;let s=a.pipe(Ae(c=>c instanceof r0));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(me(c=>{if(c.body!==null&&!(c.body instanceof ArrayBuffer))throw new pe(2806,!1);return c.body}));case"blob":return s.pipe(me(c=>{if(c.body!==null&&!(c.body instanceof Blob))throw new pe(2807,!1);return c.body}));case"text":return s.pipe(me(c=>{if(c.body!==null&&typeof c.body!="string")throw new pe(2808,!1);return c.body}));case"json":default:return s.pipe(me(c=>c.body))}case"response":return s;default:throw new pe(2809,!1)}}delete(e,n={}){return this.request("DELETE",e,n)}get(e,n={}){return this.request("GET",e,n)}head(e,n={}){return this.request("HEAD",e,n)}jsonp(e,n){return this.request("JSONP",e,{params:new te().append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,n={}){return this.request("OPTIONS",e,n)}patch(e,n,o={}){return this.request("PATCH",e,h7(o,n))}post(e,n,o={}){return this.request("POST",e,h7(o,n))}put(e,n,o={}){return this.request("PUT",e,h7(o,n))}static \u0275fac=function(n){return new(n||t)(ke(T1))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var dY=new L("");function $D(t,i){return i(t)}function uY(t,i){return(e,n)=>i.intercept(e,{handle:o=>t(o,n)})}function mY(t,i,e){return(n,o)=>bi(e,()=>i(n,r=>t(r,o)))}var GD=new L(""),_7=new L(""),WD=new L(""),b7=new L("",{providedIn:"root",factory:()=>!0});function pY(){let t=null;return(i,e)=>{t===null&&(t=(d(GD,{optional:!0})??[]).reduceRight(uY,$D));let n=d(a1);if(d(b7)){let r=n.add();return t(i,e).pipe(qr(r))}else return t(i,e)}}var Bm=(()=>{class t extends T1{backend;injector;chain=null;pendingTasks=d(a1);contributeToStability=d(b7);constructor(e,n){super(),this.backend=e,this.injector=n}handle(e){if(this.chain===null){let n=Array.from(new Set([...this.injector.get(_7),...this.injector.get(WD,[])]));this.chain=n.reduceRight((o,r)=>mY(o,r,this.injector),$D)}if(this.contributeToStability){let n=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(qr(n))}else return this.chain(e,n=>this.backend.handle(n))}static \u0275fac=function(n){return new(n||t)(ke(o0),ke(Qt))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var fY=/^\)\]\}',?\n/,hY=RegExp(`^${jD}:`,"m");function gY(t){return"responseURL"in t&&t.responseURL?t.responseURL:hY.test(t.getAllResponseHeaders())?t.getResponseHeader(jD):null}var g7=(()=>{class t{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new pe(-2800,!1);let n=this.xhrFactory;return re(null).pipe(lt(()=>new Fe(r=>{let a=n.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((Y,Z)=>a.setRequestHeader(Y,Z.join(","))),e.headers.has(VD)||a.setRequestHeader(VD,sY),!e.headers.has(FD)){let Y=e.detectContentTypeHeader();Y!==null&&a.setRequestHeader(FD,Y)}if(e.timeout&&(a.timeout=e.timeout),e.responseType){let Y=e.responseType.toLowerCase();a.responseType=Y!=="json"?Y:"text"}let s=e.serializeBody(),c=null,m=()=>{if(c!==null)return c;let Y=a.statusText||"OK",Z=new To(a.getAllResponseHeaders()),Oe=gY(a)||e.url;return c=new Vm({headers:Z,status:a.status,statusText:Y,url:Oe}),c},f=()=>{let{headers:Y,status:Z,statusText:Oe,url:Mt}=m(),Et=null;Z!==lY&&(Et=typeof a.response>"u"?a.responseText:a.response),Z===0&&(Z=Et?cY:0);let Ht=Z>=200&&Z<300;if(e.responseType==="json"&&typeof Et=="string"){let fn=Et;Et=Et.replace(fY,"");try{Et=Et!==""?JSON.parse(Et):null}catch(Bo){Et=fn,Ht&&(Ht=!1,Et={error:Bo,text:Et})}}Ht?(r.next(new r0({body:Et,headers:Y,status:Z,statusText:Oe,url:Mt||void 0})),r.complete()):r.error(new O1({error:Et,headers:Y,status:Z,statusText:Oe,url:Mt||void 0}))},v=Y=>{let{url:Z}=m(),Oe=new O1({error:Y,status:a.status||0,statusText:a.statusText||"Unknown Error",url:Z||void 0});r.error(Oe)},x=v;e.timeout&&(x=Y=>{let{url:Z}=m(),Oe=new O1({error:new DOMException("Request timed out","TimeoutError"),status:a.status||0,statusText:a.statusText||"Request timeout",url:Z||void 0});r.error(Oe)});let w=!1,O=Y=>{w||(r.next(m()),w=!0);let Z={type:Gc.DownloadProgress,loaded:Y.loaded};Y.lengthComputable&&(Z.total=Y.total),e.responseType==="text"&&a.responseText&&(Z.partialText=a.responseText),r.next(Z)},K=Y=>{let Z={type:Gc.UploadProgress,loaded:Y.loaded};Y.lengthComputable&&(Z.total=Y.total),r.next(Z)};return a.addEventListener("load",f),a.addEventListener("error",v),a.addEventListener("timeout",x),a.addEventListener("abort",v),e.reportProgress&&(a.addEventListener("progress",O),s!==null&&a.upload&&a.upload.addEventListener("progress",K)),a.send(s),r.next({type:Gc.Sent}),()=>{a.removeEventListener("error",v),a.removeEventListener("abort",v),a.removeEventListener("load",f),a.removeEventListener("timeout",x),e.reportProgress&&(a.removeEventListener("progress",O),s!==null&&a.upload&&a.upload.removeEventListener("progress",K)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(n){return new(n||t)(ke($c))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),qD=new L(""),_Y="XSRF-TOKEN",bY=new L("",{providedIn:"root",factory:()=>_Y}),vY="X-XSRF-TOKEN",yY=new L("",{providedIn:"root",factory:()=>vY}),a0=class{},CY=(()=>{class t{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,n){this.doc=e,this.cookieName=n}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=Jd(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(n){return new(n||t)(ke(Me),ke(bY))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),xY=/^(?:https?:)?\/\//i;function MY(t,i){if(!d(qD)||t.method==="GET"||t.method==="HEAD"||xY.test(t.url))return i(t);let e=d(a0).getToken(),n=d(yY);return e!=null&&!t.headers.has(n)&&(t=t.clone({headers:t.headers.set(n,e)})),i(t)}var v7=(function(t){return t[t.Interceptors=0]="Interceptors",t[t.LegacyInterceptors=1]="LegacyInterceptors",t[t.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",t[t.NoXsrfProtection=3]="NoXsrfProtection",t[t.JsonpSupport=4]="JsonpSupport",t[t.RequestsMadeViaParent=5]="RequestsMadeViaParent",t[t.Fetch=6]="Fetch",t})(v7||{});function wY(t,i){return{\u0275kind:t,\u0275providers:i}}function DY(...t){let i=[Bn,g7,Bm,{provide:T1,useExisting:Bm},{provide:o0,useFactory:()=>d(dY,{optional:!0})??d(g7)},{provide:_7,useValue:MY,multi:!0},{provide:qD,useValue:!0},{provide:a0,useClass:CY}];for(let e of t)i.push(...e.\u0275providers);return bs(i)}var BD=new L("");function SY(){return wY(v7.LegacyInterceptors,[{provide:BD,useFactory:pY},{provide:_7,useExisting:BD,multi:!0}])}var YD=(()=>{class t{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Ga=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:function(n){let o=null;return n?o=new(n||t):o=ke(EY),o},providedIn:"root"})}return t})(),EY=(()=>{class t extends Ga{_doc;constructor(e){super(),this._doc=e}sanitize(e,n){if(n==null)return null;switch(e){case Fn.NONE:return n;case Fn.HTML:return ra(n,"HTML")?So(n):B4(this._doc,String(n)).toString();case Fn.STYLE:return ra(n,"Style")?So(n):n;case Fn.SCRIPT:if(ra(n,"Script"))return So(n);throw new pe(5200,!1);case Fn.URL:return ra(n,"URL")?So(n):Pd(String(n));case Fn.RESOURCE_URL:if(ra(n,"ResourceURL"))return So(n);throw new pe(5201,!1);default:throw new pe(5202,!1)}}bypassSecurityTrustHtml(e){return j8(e)}bypassSecurityTrustStyle(e){return H8(e)}bypassSecurityTrustScript(e){return U8(e)}bypassSecurityTrustUrl(e){return $8(e)}bypassSecurityTrustResourceUrl(e){return G8(e)}static \u0275fac=function(n){return new(n||t)(ke(Me))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var L1=class{},KD=(()=>{class t extends L1{getTranslation(e){return re({})}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),c0=class{},XD=(()=>{class t{handle(e){return e.key}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function Hm(t,i){if(t===i)return!0;if(t===null||i===null)return!1;if(t!==t&&i!==i)return!0;let e=typeof t,n=typeof i,o,r,a;if(e==n&&e=="object")if(Array.isArray(t)){if(!Array.isArray(i))return!1;if((o=t.length)==i.length){for(r=0;r{d0(i[n])?n in t?e[n]=y7(t[n],i[n]):Object.assign(e,{[n]:i[n]}):Object.assign(e,{[n]:i[n]})}),e):y7({},i)}function C7(t,i){let e=i.split(".");i="";do i+=e.shift(),Is(t)&&Is(t[i])&&(d0(t[i])||S7(t[i])||!e.length)?(t=t[i],i=""):e.length?i+=".":t=void 0;while(e.length);return t}function OY(t,i,e){let n=i.split("."),o=t;for(let r=0;r{class t extends A1{templateMatcher=/{{\s?([^{}\s]*)\s?}}/g;interpolate(e,n){if(k7(e))return this.interpolateString(e,n);if(IY(e))return this.interpolateFunction(e,n)}interpolateFunction(e,n){return e(n)}interpolateString(e,n){return n?e.replace(this.templateMatcher,(o,r)=>{let a=C7(n,r);return Is(a)?a:o}):e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),z1=class{},JD=(()=>{class t extends z1{compile(e,n){return e}compileTranslations(e,n){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),l0=class{defaultLang;currentLang=this.defaultLang;translations={};langs=[];onTranslationChange=new j;onLangChange=new j;onDefaultLangChange=new j},x7=new L("ISOLATE_TRANSLATE_SERVICE"),M7=new L("USE_DEFAULT_LANG"),w7=new L("DEFAULT_LANGUAGE"),D7=new L("USE_EXTEND"),s0=t=>ai(t)?t:re(t),Po=(()=>{class t{store;currentLoader;compiler;parser;missingTranslationHandler;useDefaultLang;extend;loadingTranslations;pending=!1;_translationRequests={};lastUseLanguage=null;get onTranslationChange(){return this.store.onTranslationChange}get onLangChange(){return this.store.onLangChange}get onDefaultLangChange(){return this.store.onDefaultLangChange}get defaultLang(){return this.store.defaultLang}set defaultLang(e){this.store.defaultLang=e}get currentLang(){return this.store.currentLang}set currentLang(e){this.store.currentLang=e}get langs(){return this.store.langs}set langs(e){this.store.langs=e}get translations(){return this.store.translations}set translations(e){this.store.translations=e}constructor(e,n,o,r,a,s=!0,c=!1,m=!1,f){this.store=e,this.currentLoader=n,this.compiler=o,this.parser=r,this.missingTranslationHandler=a,this.useDefaultLang=s,this.extend=m,c&&(this.store=new l0),f&&this.setDefaultLang(f)}setDefaultLang(e){if(e===this.defaultLang)return;let n=this.retrieveTranslations(e);typeof n<"u"?(this.defaultLang==null&&(this.defaultLang=e),n.pipe(Be(1)).subscribe(()=>{this.changeDefaultLang(e)})):this.changeDefaultLang(e)}getDefaultLang(){return this.defaultLang}use(e){if(this.lastUseLanguage=e,e===this.currentLang)return re(this.translations[e]);this.currentLang||(this.currentLang=e);let n=this.retrieveTranslations(e);return ai(n)?(n.pipe(Be(1)).subscribe(()=>{this.changeLang(e)}),n):(this.changeLang(e),re(this.translations[e]))}changeLang(e){e===this.lastUseLanguage&&(this.currentLang=e,this.onLangChange.emit({lang:e,translations:this.translations[e]}),this.defaultLang==null&&this.changeDefaultLang(e))}retrieveTranslations(e){if(typeof this.translations[e]>"u"||this.extend)return this._translationRequests[e]=this._translationRequests[e]||this.loadAndCompileTranslations(e),this._translationRequests[e]}getTranslation(e){return this.loadAndCompileTranslations(e)}loadAndCompileTranslations(e){this.pending=!0;let n=this.currentLoader.getTranslation(e).pipe(hs(1),Be(1));return this.loadingTranslations=n.pipe(me(o=>this.compiler.compileTranslations(o,e)),hs(1),Be(1)),this.loadingTranslations.subscribe({next:o=>{this.translations[e]=this.extend&&this.translations[e]?q(q({},o),this.translations[e]):o,this.updateLangs(),this.pending=!1},error:o=>{this.pending=!1}}),n}setTranslation(e,n,o=!1){let r=this.compiler.compileTranslations(n,e);(o||this.extend)&&this.translations[e]?this.translations[e]=y7(this.translations[e],r):this.translations[e]=r,this.updateLangs(),this.onTranslationChange.emit({lang:e,translations:this.translations[e]})}getLangs(){return this.langs}addLangs(e){let n=e.filter(o=>!this.langs.includes(o));n.length>0&&(this.langs=[...this.langs,...n])}updateLangs(){this.addLangs(Object.keys(this.translations))}getParsedResultForKey(e,n,o){let r;if(e&&(r=this.runInterpolation(C7(e,n),o)),r===void 0&&this.defaultLang!=null&&this.defaultLang!==this.currentLang&&this.useDefaultLang&&(r=this.runInterpolation(C7(this.translations[this.defaultLang],n),o)),r===void 0){let a={key:n,translateService:this};typeof o<"u"&&(a.interpolateParams=o),r=this.missingTranslationHandler.handle(a)}return r!==void 0?r:n}runInterpolation(e,n){if(S7(e))return e.map(o=>this.runInterpolation(o,n));if(d0(e)){let o={};for(let r in e){let a=this.runInterpolation(e[r],n);a!==void 0&&(o[r]=a)}return o}else return this.parser.interpolate(e,n)}getParsedResult(e,n,o){if(n instanceof Array){let r={},a=!1;for(let c of n)r[c]=this.getParsedResultForKey(e,c,o),a=a||ai(r[c]);if(!a)return r;let s=n.map(c=>s0(r[c]));return Oa(s).pipe(me(c=>{let m={};return c.forEach((f,v)=>{m[n[v]]=f}),m}))}return this.getParsedResultForKey(e,n,o)}get(e,n){if(!Is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return this.pending?this.loadingTranslations.pipe(Qi(o=>s0(this.getParsedResult(o,e,n)))):s0(this.getParsedResult(this.translations[this.currentLang],e,n))}getStreamOnTranslationChange(e,n){if(!Is(e)||!e.length)throw new Error('Parameter "key" is required and cannot be empty');return Li(Ai(()=>this.get(e,n)),this.onTranslationChange.pipe(lt(o=>{let r=this.getParsedResult(o.translations,e,n);return s0(r)})))}stream(e,n){if(!Is(e)||!e.length)throw new Error('Parameter "key" required');return Li(Ai(()=>this.get(e,n)),this.onLangChange.pipe(lt(o=>{let r=this.getParsedResult(o.translations,e,n);return s0(r)})))}instant(e,n){if(!Is(e)||e.length===0)throw new Error('Parameter "key" is required and cannot be empty');let o=this.getParsedResult(this.translations[this.currentLang],e,n);return ai(o)?Array.isArray(e)?e.reduce((r,a)=>(r[a]=a,r),{}):e:o}set(e,n,o=this.currentLang){OY(this.translations[o],e,k7(n)?this.compiler.compile(n,o):this.compiler.compileTranslations(n,o)),this.updateLangs(),this.onTranslationChange.emit({lang:o,translations:this.translations[o]})}changeDefaultLang(e){this.defaultLang=e,this.onDefaultLangChange.emit({lang:e,translations:this.translations[e]})}reloadLang(e){return this.resetLang(e),this.loadAndCompileTranslations(e)}resetLang(e){delete this._translationRequests[e],delete this.translations[e]}getBrowserLang(){if(typeof window>"u"||!window.navigator)return;let e=this.getBrowserCultureLang();return e?e.split(/[-_]/)[0]:void 0}getBrowserCultureLang(){if(!(typeof window>"u"||typeof window.navigator>"u"))return window.navigator.languages?window.navigator.languages[0]:window.navigator.language||window.navigator.browserLanguage||window.navigator.userLanguage}static \u0275fac=function(n){return new(n||t)(ke(l0),ke(L1),ke(z1),ke(A1),ke(c0),ke(M7),ke(x7),ke(D7),ke(w7))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Te=(()=>{class t{translate;_ref;value="";lastKey=null;lastParams=[];onTranslationChange;onLangChange;onDefaultLangChange;constructor(e,n){this.translate=e,this._ref=n}updateValue(e,n,o){let r=a=>{this.value=a!==void 0?a:e,this.lastKey=e,this._ref.markForCheck()};if(o){let a=this.translate.getParsedResult(o,e,n);ai(a)?a.subscribe(r):r(a)}this.translate.get(e,n).subscribe(r)}transform(e,...n){if(!e||!e.length)return e;if(Hm(e,this.lastKey)&&Hm(n,this.lastParams))return this.value;let o;if(Is(n[0])&&n.length)if(k7(n[0])&&n[0].length){let r=n[0].replace(/(')?([a-zA-Z0-9_]+)(')?(\s)?:/g,'"$2":').replace(/:(\s)?(')(.*?)(')/g,':"$3"');try{o=JSON.parse(r)}catch(a){throw new SyntaxError(`Wrong parameter in TranslatePipe. Expected a valid Object, received: ${n[0]}`)}}else d0(n[0])&&(o=n[0]);return this.lastKey=e,this.lastParams=n,this.updateValue(e,o),this._dispose(),this.onTranslationChange||(this.onTranslationChange=this.translate.onTranslationChange.subscribe(r=>{this.lastKey&&r.lang===this.translate.currentLang&&(this.lastKey=null,this.updateValue(e,o,r.translations))})),this.onLangChange||(this.onLangChange=this.translate.onLangChange.subscribe(r=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o,r.translations))})),this.onDefaultLangChange||(this.onDefaultLangChange=this.translate.onDefaultLangChange.subscribe(()=>{this.lastKey&&(this.lastKey=null,this.updateValue(e,o))})),this.value}_dispose(){typeof this.onTranslationChange<"u"&&(this.onTranslationChange.unsubscribe(),this.onTranslationChange=void 0),typeof this.onLangChange<"u"&&(this.onLangChange.unsubscribe(),this.onLangChange=void 0),typeof this.onDefaultLangChange<"u"&&(this.onDefaultLangChange.unsubscribe(),this.onDefaultLangChange=void 0)}ngOnDestroy(){this._dispose()}static \u0275fac=function(n){return new(n||t)(Ce(Po,16),Ce(xe,16))};static \u0275pipe=wt({name:"translate",type:t,pure:!1});static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();var E7=(()=>{class t{static forRoot(e={}){return{ngModule:t,providers:[e.loader||{provide:L1,useClass:KD},e.compiler||{provide:z1,useClass:JD},e.parser||{provide:A1,useClass:ZD},e.missingTranslationHandler||{provide:c0,useClass:XD},l0,{provide:x7,useValue:e.isolate},{provide:M7,useValue:e.useDefaultLang},{provide:D7,useValue:e.extend},{provide:w7,useValue:e.defaultLanguage},Po]}}static forChild(e={}){return{ngModule:t,providers:[e.loader||{provide:L1,useClass:KD},e.compiler||{provide:z1,useClass:JD},e.parser||{provide:A1,useClass:ZD},e.missingTranslationHandler||{provide:c0,useClass:XD},{provide:x7,useValue:e.isolate},{provide:M7,useValue:e.useDefaultLang},{provide:D7,useValue:e.extend},{provide:w7,useValue:e.defaultLanguage},Po]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var I7={mifos_x:{version:"251213",hash:"e6bb867"},allow_switching_backend_instance:!0};var an=window.env||{},mt={production:!0,version:I7.mifos_x.version,hash:I7.mifos_x.hash,fineractPlatformTenantId:an.fineractPlatformTenantId||"default",fineractPlatformTenantIds:an.fineractPlatformTenantIds||"default",baseApiUrls:an.fineractApiUrls||"https://sandbox.mifos.community,https://demo.mifos.community,https://localhost:8443,"+window.location.origin,baseApiUrl:an.fineractApiUrl||(an.fineractApiUrls?.length>0?an.fineractApiUrls.split(",")[0]:window.location.origin),oauthServerUrl:an.oauthServerUrl||an.fineractApiUrl+an.apiProvider,allowServerSwitch:an.allowServerSwitch||"true",apiProvider:an.apiProvider||"/fineract-provider/api",apiVersion:an.apiVersion||"/v1",apiActuator:an.apiActuator||"/fineract-provider",serverUrl:"",oauth:{enabled:an.oauthServerEnabled||!1,serverUrl:an.oauthServerUrl||"",appId:an.oauthAppId||""},enableRememberMe:!1,warningDialog:{title:"Warning",content:"This system is for authorized use only. Unauthorized access will result in possible legal action. By accessing this system, you acknowledge that you are authorized to do so and that all data stored and processed here is confidential.",buttonText:"Close"},defaultLanguage:an.defaultLanguage||"en-US",supportedLanguages:an.supportedLanguages||"cs-CS,de-DE,en-US,es-MX,fr-FR,it-IT,ko-KO,lt-LT,lv-LV,ne-NE,pt-PT,sw-SW",preloadClients:an.preloadClients||!0,defaultCharDelimiter:an.defaultCharDelimiter||",",displayBackEndInfo:an.displayBackEndInfo||"true",displayTenantSelector:an.displayTenantSelector||"true",waitTimeForNotifications:an.waitTimeForNotifications||60,waitTimeForCOBCatchUp:an.waitTimeForCOBCatchUp||30,session:{timeout:{idleTimeout:an.sessionIdleTimeout||3e5}},httpCacheEnabled:an.httpCacheEnabled||!1,vNextApiUrl:window.env.vNextApiUrl||"https://apis.mifos.community",vNextApiProvider:window.env.vNextApiProvider||"/vnext1",vNextApiVersion:window.env.vNextApiVersion||"/v1.0",interbankTransfers:window.env.interbankTransfers||!1,minPasswordLength:an.minPasswordLength||12,OIDC:{oidcServerEnabled:window.env.oidcServerEnabled||!1,oidcBaseUrl:window.env.oidcBaseUrl||"",oidcClientId:window.env.oidcClientId||"",oidcApiUrl:window.env.oidcApiUrl||"",oidcFrontUrl:window.env.oidcFrontUrl||""}};mt.serverUrl=`${mt.baseApiUrl}${mt.apiProvider}${mt.apiVersion}`;var eS=(()=>{class t{transform(e,n,o,r){if(e){if(n==="loan"&&(o==="closed"?e=e.filter(a=>a.status.code==="loanStatusType.closed.written.off"||a.status.code==="loanStatusType.closed.obligations.met"||a.status.code==="loanStatusType.closed.reschedule.outstanding.amount"||a.status.code==="loanStatusType.withdrawn.by.client"||a.status.code==="loanStatusType.rejected"):e=e.filter(a=>a.status.code!=="loanStatusType.closed.written.off"&&a.status.code!=="loanStatusType.closed.obligations.met"&&a.status.code!=="loanStatusType.closed.reschedule.outstanding.amount"&&a.status.code!=="loanStatusType.withdrawn.by.client"&&a.status.code!=="loanStatusType.rejected")),n==="saving"&&(r==="isFixed"?e=e.filter(a=>a.depositType.value==="Fixed Deposit"):r==="isRecurring"?e=e.filter(a=>a.depositType.value==="Recurring Deposit"):r==="isSavings"&&(e=e.filter(a=>a.depositType.value==="Savings")),o==="closed"?e=e.filter(a=>a.status.code==="savingsAccountStatusType.withdrawn.by.applicant"||a.status.code==="savingsAccountStatusType.closed"||a.status.code==="savingsAccountStatusType.pre.mature.closure"||a.status.code==="savingsAccountStatusType.rejected"):e=e.filter(a=>a.status.code!=="savingsAccountStatusType.withdrawn.by.applicant"&&a.status.code!=="savingsAccountStatusType.closed"&&a.status.code!=="savingsAccountStatusType.pre.mature.closure"&&a.status.code!=="savingsAccountStatusType.rejected")),n==="share"&&(o==="closed"?e=e.filter(a=>a.status.code==="shareAccountStatusType.closed"||a.status.code==="shareAccountStatusType.rejected"):e=e.filter(a=>a.status.code!=="shareAccountStatusType.closed"&&a.status.code!=="shareAccountStatusType.rejected")),n==="guarantor")if(o===!1)e=e.filter(a=>a.status===!0);else return e;return n==="clientApproval"&&(e=e.filter(a=>a.active===!1&&a.status.value==="Pending")),e}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"accountsFilter",type:t,pure:!0})}}return t})();var tS=(()=>{class t{transform(e,n,o,r){return e&&(e=e.filter(a=>!(a.currency.code!==o||r&&a.chargeTimeType.id===12||n.filter(s=>s.id===a.id).length))),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"chargesFilter",type:t,pure:!0})}}return t})();var nS=(()=>{class t{transform(e,n){return e&&(e=e.filter(o=>o.penalty===n)),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"chargesPenaltyFilter",type:t,pure:!0})}}return t})();var Os=(()=>{class t{constructor(){this.alertEvent=new j}alert(e){this.alertEvent.emit(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var N1=e3(Um());var go=(()=>{class t{constructor(){this.datePipe=d(E1)}static{this.DEFAULT_DATEFORMAT="yyyy-MM-dd"}static{this.DEFAULT_DATETIMEFORMAT="yyyy-MM-dd HH:mm"}getDate(e){return this.datePipe.transform(e,"yyyy-MM-dd")}formatDate(e,n){return new E1(this.language.code).transform(e,n)}formatDateAsString(e,n){return(0,N1.default)(e).format(n)}parseDate(e){return e instanceof Array?(0,N1.default)(e.join("-"),"YYYY-MM-DD").toDate():(0,N1.default)(e).toDate()}parseDatetime(e){return(0,N1.default)(e).toDate()}convertToDate(e,n){return(0,N1.default)(e).toDate()}get language(){return localStorage.getItem("mifosXLanguage")?JSON.parse(localStorage.getItem("mifosXLanguage")):"en"}calculateDiff(e,n){return Math.floor((Date.UTC(n.getFullYear(),n.getMonth(),n.getDate())-Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()))/(1e3*60*60*24))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Xt=(()=>{class t{constructor(){this.alertService=d(Os),this.dateUtils=d(go),this.minAllowedDate=new Date(1950,0,1),this.maxAllowedDate=new Date(2100,0,1)}static{this.businessDateFormat="yyyy-MM-dd"}static{this.businessDateConfigName="enable-business-date"}static{this.businessDateType="BUSINESS_DATE"}static{this.cobDateType="COB_DATE"}setDateFormat(e){localStorage.setItem("mifosXDateFormat",JSON.stringify(e))}setLanguage(e){localStorage.setItem("mifosXLanguage",JSON.stringify(e))}setDecimalToDisplay(e){localStorage.setItem("mifosXDecimalsToDisplay",e)}setDefaultLanguage(){let e=mt.defaultLanguage?mt.defaultLanguage:"en-US";this.setLanguage({name:e,code:e.substring(0,2)})}setServer(e){localStorage.setItem("mifosXServerURL",e)}setServers(e){localStorage.setItem("mifosXServers",JSON.stringify(e))}setTenantIdentifiers(e){localStorage.setItem("mifosXTenantIdentifiers",JSON.stringify(e))}setTenantIdentifier(e){localStorage.setItem("mifosXTenantIdentifier",e)}setBusinessDate(e){localStorage.setItem("mifosXServerDate",e)}setBusinessDateConfig(e){localStorage.setItem("mifosXServerBusinessDateEnabled",e)}get dateFormat(){return JSON.parse(localStorage.getItem("mifosXDateFormat"))}get language(){return localStorage.getItem("mifosXLanguage")||this.setDefaultLanguage(),JSON.parse(localStorage.getItem("mifosXLanguage"))}get languageCode(){let e=this.language.code;return e==="es"?"es-MX":e==="en"?"en-US":e+"-"+e.toUpperCase()}get decimals(){return localStorage.getItem("mifosXDecimalsToDisplay")?localStorage.getItem("mifosXDecimalsToDisplay"):"2"}get servers(){return JSON.parse(localStorage.getItem("mifosXServers"))}get server(){return localStorage.getItem("mifosXServerURL")?localStorage.getItem("mifosXServerURL"):mt.baseApiUrl&&mt.baseApiUrl!==""?mt.baseApiUrl:this.servers()[0]}get baseServerUrl(){return this.server+mt.apiProvider}get serverUrl(){return this.server+mt.apiProvider+mt.apiVersion}get serverHost(){return this.server}get businessDate(){return this.dateUtils.convertToDate(localStorage.getItem("mifosXServerDate"),t.businessDateFormat)}get businessDateConfig(){return localStorage.getItem("mifosXServerBusinessDateEnabled")}get minPastDate(){return this.minAllowedDate}get maxFutureDate(){return this.maxAllowedDate}get tenantIdentifiers(){return JSON.parse(localStorage.getItem("mifosXTenantIdentifiers"))}get tenantIdentifier(){return localStorage.getItem("mifosXTenantIdentifier")}validateBusinessDateStatus(e){e.some(n=>{if(n.name===t.businessDateConfigName)return n.enabled})}getBusinessDates(e,n){e.some(o=>{if(o.type===n){let r=new Date(o.date);this.setBusinessDate(this.dateUtils.formatDate(r,t.businessDateFormat)),this.alertService.alert({type:n+" Set",message:this.dateUtils.formatDate(r,this.dateFormat)});return}})}setThemeDarkEnabled(e){localStorage.setItem("mifosXThemeDarkEnabled",JSON.stringify(e))}get themeDarkEnabled(){return JSON.parse(localStorage.getItem("mifosXThemeDarkEnabled"))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var $m=e3(Um());var Lo=(()=>{class t{constructor(){this.settingsService=d(Xt)}transform(e,n){let o=this.settingsService.dateFormat.replace("dd","DD");if(typeof e>"u")return"";let r;return $m.default.locale(this.settingsService.language.code),e instanceof Array?r=(0,$m.default)(e.join("-"),"YYYY-MM-DD"):r=(0,$m.default)(e),n==null?r.format(o):r.format(n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"dateFormat",type:t,pure:!0})}}return t})();var u0=e3(Um());var ca=(()=>{class t{transform(e,n){if(e==null||e==="")return"";let o;if(Array.isArray(e)){let[a,s,c,m,f,v]=e;m!=null?o=(0,u0.default)({year:a,month:(s??1)-1,date:c,hour:m,minute:f??0,second:v??0}):o=(0,u0.default)({year:a,month:(s??1)-1,date:c})}else typeof e=="number"&&e<1e12?o=u0.default.unix(e):o=(0,u0.default)(e);let r=n??"yyyy-MM-ddTHH:mm:ssZ";return o.format(r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"datetimeFormat",type:t,pure:!0})}}return t})();var Wm=(()=>{class t{transform(e){if(e){if(/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/gi.test(e))return e.split("-")[4];{let r=e.length;return r>20?e.substring(r-20,r):e}}else return""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"externalIdentifier",type:t,pure:!0})}}return t})();var iS=new WeakMap,oS=(()=>{class t{constructor(){this.sanitizer=d(Ga)}transform(e,n,o,r){if(!n||!o||e===null||e===void 0)return"";let a=iS.get(n);a||(a=new Map,iS.set(n,a));let s=a.get(o);if(!s){if(s=new Map,Array.isArray(n))for(let f of n)f&&f[o]!==void 0&&f[o]!==null&&s.set(f[o],f);a.set(o,s)}let c=s.get(e),m=c?c[r]??"":"";return typeof m=="string"?this.sanitizer.sanitize(Fn.HTML,m)||"":String(m||"")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"find",type:t,pure:!0})}}return t})();var Ts=(()=>{class t{constructor(){this.decimalFormat=d(Zd),this.settingsService=d(Xt)}transform(e,n){if(e===void 0)return n||"";let o=this.settingsService.decimals,r=`1.${o}-${o}`;return this.decimalFormat.transform(e,r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"formatNumber",type:t,pure:!0})}}return t})();var sS=e3(aS());var Ym=(()=>{class t{transform(e){if(e.charAt(0)==="{"&&e.charAt(e.length-1)==="}")try{return sS.json(e)}catch{return e}return e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"prettyPrint",type:t,pure:!0})}}return t})();var cS=(()=>{class t{transform(e){return{true:"status-active",false:"status-deleted",Active:"status-active",Block:"status-block","charges.StatusType.active.true":"status-active","loanStatusType.submitted.and.pending.approval":"status-pending","loanStatusType.approved":"status-approved","loanStatusType.active":"status-active","loanStatusType.overpaid":"status-overpaid","loanStatusType.chargeoff":"status-chargeoff","loanStatusType.activeOverdue":"status-active-overdue","loanSubStatusType.contractTermination":"subStatus-contract-termination","savingsAccountStatusType.submitted.and.pending.approval":"status-pending","savingsAccountStatusType.approved":"status-approved","savingsAccountStatusType.active":"status-active","savingsAccountStatusType.activeInactive":"status-active-overdue","savingsAccountStatusType.activeDormant":"status-active-overdue","savingsAccountStatusType.matured":"status-matured","shareAccountStatusType.submitted.and.pending.approval":"status-pending","shareAccountStatusType.approved":"status-approved","shareAccountStatusType.active":"status-active","shareAccountStatusType.rejected":"status-rejected","loanProduct.active":"status-active","loanProduct.inActive":"status-inactive","clientStatusType.pending":"status-pending","clientStatusType.closed":"status-closed","clientStatusType.rejected":"status-rejected","clientStatusType.withdraw":"status-withdraw","clientStatusType.active":"status-active","clientStatusType.submitted.and.pending.approval":"status-pending","clientStatusTYpe.approved":"status-approved","clientStatusType.transfer.in.progress":"status-transfer-progress","clientStatusType.transfer.on.hold":"status-transfer-hold","groupingStatusType.active":"status-active","groupingStatusType.pending":"status-pending","groupingStatusType.submitted.and.pending.approval":"status-pending","groupingStatusType.approved":"status-approved","smsCampaignStatus.active":"status-active","smsCampaignStatus.pending":"status-pending","smsCampaignStatus.closed":"status-closed","purchasedSharesStatusType.applied":"status-pending"}[e]??"status-unknown"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"statusLookup",type:t,pure:!0})}}return t})();var Wc=(()=>{class t{constructor(){this.translateService=d(Po)}transform(e,n,o="labels"){let r=`${o}.${n}.${e}`;return this.translateService.instant(r)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"translateKey",type:t,pure:!0})}}return t})();var Qm=(()=>{class t{transform(e,n){if(e.length<=40)return e;let o=e.substring(0,30);return n&&(o=e.substring(0,n)),o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"truncateText",type:t,pure:!0})}}return t})();var dS=(()=>{class t{transform(e){e=decodeURIComponent(e);let n=e.slice(1).split("/");if(e.includes("?")){let r=n.pop(),a=r.slice(0,r.indexOf("?"));n.push(a)}return n.map(r=>r.split("-").map(a=>a.charAt(0).toUpperCase()+a.slice(1)).join(" ")).join(" | ")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"urlToString",type:t,pure:!0})}}return t})();var Km=(()=>{class t{constructor(){this.translateService=d(Po)}transform(e,...n){if(e==null)return null;let o=e?"Yes":"No";return this.translateService.instant("labels.buttons."+o)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275pipe=wt({name:"yesNo",type:t,pure:!0})}}return t})();var uS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({providers:[cS,eS,tS,nS,oS,dS,Lo,ca,Wm,Ts,Km,Ym,Wc,Qm],imports:[he]})}}return t})();var qa={headers:{"Fineract-Platform-TenantId":mt.fineractPlatformTenantId}},Xm="Authorization",LY="Fineract-Platform-TenantId",mS="Fineract-Platform-TFA-Token",pS=(()=>{class t{constructor(){this.settingsService=d(Xt)}intercept(e,n){return this.settingsService.tenantIdentifier&&(qa.headers["Fineract-Platform-TenantId"]=this.settingsService.tenantIdentifier),e=e.clone({setHeaders:qa.headers}),n.handle(e)}setAuthorizationToken(e){mt.oauth.enabled?qa.headers[Xm]=`Bearer ${e}`:qa.headers[Xm]=`Basic ${e}`}setTwoFactorAccessToken(e){qa.headers[mS]=e}removeAuthorization(){delete qa.headers[Xm]}removeAuthorizationTenant(){delete qa.headers[Xm],delete qa.headers[LY]}removeTwoFactorAuthorization(){delete qa.headers[mS]}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Zm=(()=>{class t{changePassword(e,n){return this.http.put(`/users/${e}`,n)}constructor(){this.http=d(Bn),this.alertService=d(Os),this.authenticationInterceptor=d(pS),this.userLoggedIn$=new ct(!1),this.isAuthenticated$=this.userLoggedIn$.asObservable(),this.dialogShown=!1,this.credentialsStorageKey="mifosXCredentials",this.oAuthTokenDetailsStorageKey="mifosXOAuthTokenDetails",this.twoFactorAuthenticationTokenStorageKey="mifosXTwoFactorAuthenticationToken";let e=this.authenticationInterceptor;this.userLoggedIn=!1,this.rememberMe=!1,this.storage=sessionStorage;let n=JSON.parse(sessionStorage.getItem(this.credentialsStorageKey)||localStorage.getItem(this.credentialsStorageKey));if(n){n.rememberMe&&(this.rememberMe=!0,this.storage=localStorage);let o=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));mt.oauth.enabled?this.refreshOAuthAccessToken():e.setAuthorizationToken(n.base64EncodedAuthenticationKey),o&&e.setTwoFactorAccessToken(o.token),this.userLoggedIn=!0,this.userLoggedIn$.next(!0)}}login(e){this.alertService.alert({type:"Authentication Start",message:"Please wait..."});let n=mt.enableRememberMe===!0;if(this.rememberMe=n?e.remember:!1,this.storage=this.rememberMe?localStorage:sessionStorage,mt.oauth.enabled){let o=new te;o=o.set("username",e.username),o=o.set("password",e.password),o=o.set("client_id",`${mt.oauth.appId}`),o=o.set("grant_type","password"),o=o.set("remember_me",this.rememberMe?"true":"false");let r=new To;return r=r.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,o.toString(),{headers:r}).pipe(me(a=>(this.getUserDetails(a),re(!0))))}else return this.http.post("/authentication",{username:e.username,password:e.password,remember:this.rememberMe}).pipe(me(o=>(this.onLoginSuccess(o),re(!0))))}getUserDetails(e){this.refreshTokenOnExpiry(e.expires_in);let n=new To;n=n.set("Authorization","bearer "+e.access_token),this.http.get(`${mt.serverUrl}/userdetails`,{headers:n}).subscribe(o=>{this.onLoginSuccess(o),o.shouldRenewPassword||this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(e))})}refreshTokenOnExpiry(e){setTimeout(()=>this.refreshOAuthAccessToken(),e*1e3)}refreshOAuthAccessToken(){var e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey));if(e==null)return;e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,this.authenticationInterceptor.removeAuthorization();let n=JSON.parse(this.storage.getItem(this.credentialsStorageKey)),o=new te;o=o.set("username",n.username),o=o.set("client_id",`${mt.oauth.appId}`),o=o.set("refresh_token",e),o=o.set("grant_type","refresh_token");let r=new To;return r=r.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/token`,o.toString(),{headers:r}).subscribe(a=>{this.storage.setItem(this.oAuthTokenDetailsStorageKey,JSON.stringify(a)),this.authenticationInterceptor.setAuthorizationToken(a.access_token),this.refreshTokenOnExpiry(a.expires_in);let s=JSON.parse(this.storage.getItem(this.credentialsStorageKey));s.accessToken=a.access_token,this.storage.setItem(this.credentialsStorageKey,JSON.stringify(s))})}onLoginSuccess(e){this.userLoggedIn=!0,this.userLoggedIn$.next(!0),e.rememberMe=this.rememberMe,mt.oauth.enabled?this.authenticationInterceptor.setAuthorizationToken(e.accessToken):this.authenticationInterceptor.setAuthorizationToken(e.base64EncodedAuthenticationKey),e.isTwoFactorAuthenticationRequired?(this.credentials=e,this.alertService.alert({type:"Two Factor Authentication Required",message:"Two Factor Authentication Required"})):e.shouldRenewPassword?(this.credentials=e,this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"})):(this.setCredentials(e),this.alertService.alert({type:"Authentication Success",message:`${e.username} successfully logged in!`}),delete this.credentials)}logoutAuthSession(){let e=JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey)).refresh_token,n=JSON.parse(this.storage.getItem(this.credentialsStorageKey));this.authenticationInterceptor.removeAuthorizationTenant();let o=new te;o=o.set("username",n.username),o=o.set("client_id",`${mt.oauth.appId}`),o=o.set("refresh_token",e);let r=new To;return r=r.set("Content-Type","application/x-www-form-urlencoded"),this.http.post(`${mt.oauth.serverUrl}/logout`,o.toString(),{headers:r}).subscribe()}logout(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e&&(this.http.post("/twofactor/invalidate",{token:e.token}).subscribe(),this.authenticationInterceptor.removeTwoFactorAuthorization()),JSON.parse(this.storage.getItem(this.oAuthTokenDetailsStorageKey))&&this.logoutAuthSession(),this.authenticationInterceptor.removeAuthorization(),this.setCredentials(),this.resetDialog(),this.userLoggedIn=!1,this.userLoggedIn$.next(!1),re(!0)}twoFactorAccessTokenIsValid(){let e=JSON.parse(this.storage.getItem(this.twoFactorAuthenticationTokenStorageKey));return e?new Date().getTime(){this.onOTPValidateSuccess(o)}))}onOTPValidateSuccess(e){this.authenticationInterceptor.setTwoFactorAccessToken(e.token),this.credentials.shouldRenewPassword?this.alertService.alert({type:"Password Expired",message:"Your password has expired, please reset your password!"}):(this.setCredentials(this.credentials),this.alertService.alert({type:"Authentication Success",message:`${this.credentials.username} successfully logged in!`}),delete this.credentials,this.storage.setItem(this.twoFactorAuthenticationTokenStorageKey,JSON.stringify(e)))}resetPassword(e){return this.http.put(`/users/${this.credentials.userId}`,e).pipe(me(()=>{this.alertService.alert({type:"Password Reset Success",message:"Your password was sucessfully reset!"}),this.authenticationInterceptor.removeAuthorization(),this.authenticationInterceptor.removeTwoFactorAuthorization();let n={username:this.credentials.username,password:e.password,remember:this.rememberMe};this.login(n).subscribe()}))}getUserLoggedIn(){return this.userLoggedIn}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac})}}return t})();var Ps=(()=>{class t{constructor(){this.templateRef=d(tt),this.viewContainer=d(dt),this.authenticationService=d(Zm);let e=this.authenticationService.getCredentials();this.userPermissions=e.permissions}set mifosxHasPermission(e){if(typeof e!="string")throw new Error("hasPermission value must be a string");this.viewContainer.clear(),this.hasPermission(e)&&this.viewContainer.createEmbeddedView(this.templateRef)}hasPermission(e){return e=e.trim(),this.userPermissions.includes("ALL_FUNCTIONS")?!0:e!==""?e.substring(0,5)==="READ_"&&this.userPermissions.includes("ALL_FUNCTIONS_READ")?!0:!!this.userPermissions.includes(e):!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxHasPermission",""]],inputs:{mifosxHasPermission:"mifosxHasPermission"}})}}return t})();var CS=(()=>{class t{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,n){this._renderer=e,this._elementRef=n}setProperty(e,n){this._renderer.setProperty(this._elementRef.nativeElement,e,n)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(n){return new(n||t)(Ce(Ke),Ce(Q))};static \u0275dir=z({type:t})}return t})(),xS=(()=>{class t extends CS{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,features:[ce]})}return t})(),di=new L("");var AY={provide:di,useExisting:kt(()=>yi),multi:!0};function zY(){let t=Oo()?Oo().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}var RY=new L(""),yi=(()=>{class t extends CS{_compositionMode;_composing=!1;constructor(e,n,o){super(e,n),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!zY())}writeValue(e){let n=e??"";this.setProperty("value",n)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(n){return new(n||t)(Ce(Ke),Ce(Q),Ce(RY,8))};static \u0275dir=z({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,o){n&1&&N("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[de([AY]),ce]})}return t})();function A7(t){return t==null||z7(t)===0}function z7(t){return t==null?null:Array.isArray(t)||typeof t=="string"?t.length:t instanceof Set?t.size:null}var Ci=new L(""),Yc=new L(""),NY=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,en=class{static min(i){return MS(i)}static max(i){return wS(i)}static required(i){return DS(i)}static requiredTrue(i){return FY(i)}static email(i){return VY(i)}static minLength(i){return SS(i)}static maxLength(i){return kS(i)}static pattern(i){return BY(i)}static nullValidator(i){return ep()}static compose(i){return LS(i)}static composeAsync(i){return AS(i)}};function MS(t){return i=>{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e{if(i.value==null||t==null)return null;let e=parseFloat(i.value);return!isNaN(e)&&e>t?{max:{max:t,actual:i.value}}:null}}function DS(t){return A7(t.value)?{required:!0}:null}function FY(t){return t.value===!0?null:{required:!0}}function VY(t){return A7(t.value)||NY.test(t.value)?null:{email:!0}}function SS(t){return i=>{let e=i.value?.length??z7(i.value);return e===null||e===0?null:e{let e=i.value?.length??z7(i.value);return e!==null&&e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}}function BY(t){if(!t)return ep;let i,e;return typeof t=="string"?(e="",t.charAt(0)!=="^"&&(e+="^"),e+=t,t.charAt(t.length-1)!=="$"&&(e+="$"),i=new RegExp(e)):(e=t.toString(),i=t),n=>{if(A7(n.value))return null;let o=n.value;return i.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function ep(t){return null}function ES(t){return t!=null}function IS(t){return Ha(t)?tn(t):t}function OS(t){let i={};return t.forEach(e=>{i=e!=null?q(q({},i),e):i}),Object.keys(i).length===0?null:i}function TS(t,i){return i.map(e=>e(t))}function jY(t){return!t.validate}function PS(t){return t.map(i=>jY(i)?i:e=>i.validate(e))}function LS(t){if(!t)return null;let i=t.filter(ES);return i.length==0?null:function(e){return OS(TS(e,i))}}function R7(t){return t!=null?LS(PS(t)):null}function AS(t){if(!t)return null;let i=t.filter(ES);return i.length==0?null:function(e){let n=TS(e,i).map(IS);return Oa(n).pipe(me(OS))}}function N7(t){return t!=null?AS(PS(t)):null}function fS(t,i){return t===null?[i]:Array.isArray(t)?[...t,i]:[t,i]}function zS(t){return t._rawValidators}function RS(t){return t._rawAsyncValidators}function T7(t){return t?Array.isArray(t)?t:[t]:[]}function tp(t,i){return Array.isArray(t)?t.includes(i):t===i}function hS(t,i){let e=T7(i);return T7(t).forEach(o=>{tp(e,o)||e.push(o)}),e}function gS(t,i){return T7(i).filter(e=>!tp(t,e))}var np=class{get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(i){this._rawValidators=i||[],this._composedValidatorFn=R7(this._rawValidators)}_setAsyncValidators(i){this._rawAsyncValidators=i||[],this._composedAsyncValidatorFn=N7(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(i){this._onDestroyCallbacks.push(i)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(i=>i()),this._onDestroyCallbacks=[]}reset(i=void 0){this.control&&this.control.reset(i)}hasError(i,e){return this.control?this.control.hasError(i,e):!1}getError(i,e){return this.control?this.control.getError(i,e):null}},vi=class extends np{name;get formDirective(){return null}get path(){return null}},ei=class extends np{_parent=null;name=null;valueAccessor=null},ip=class{_cd;constructor(i){this._cd=i}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},HY={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},ICe=Ne(q({},HY),{"[class.ng-submitted]":"isSubmitted"}),mn=(()=>{class t extends ip{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Ce(ei,2))};static \u0275dir=z({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,o){n&2&&oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[ce]})}return t})(),tr=(()=>{class t extends ip{constructor(e){super(e)}static \u0275fac=function(n){return new(n||t)(Ce(vi,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,o){n&2&&oe("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[ce]})}return t})();var m0="VALID",Jm="INVALID",F1="PENDING",p0="DISABLED",As=class{},op=class extends As{value;source;constructor(i,e){super(),this.value=i,this.source=e}},h0=class extends As{pristine;source;constructor(i,e){super(),this.pristine=i,this.source=e}},g0=class extends As{touched;source;constructor(i,e){super(),this.touched=i,this.source=e}},V1=class extends As{status;source;constructor(i,e){super(),this.status=i,this.source=e}},rp=class extends As{source;constructor(i){super(),this.source=i}},_0=class extends As{source;constructor(i){super(),this.source=i}};function F7(t){return(lp(t)?t.validators:t)||null}function UY(t){return Array.isArray(t)?R7(t):t||null}function V7(t,i){return(lp(i)?i.asyncValidators:t)||null}function $Y(t){return Array.isArray(t)?N7(t):t||null}function lp(t){return t!=null&&!Array.isArray(t)&&typeof t=="object"}function NS(t,i,e){let n=t.controls;if(!(i?Object.keys(n):n).length)throw new pe(1e3,"");if(!n[e])throw new pe(1001,"")}function FS(t,i,e){t._forEachChild((n,o)=>{if(e[o]===void 0)throw new pe(1002,"")})}var B1=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(i,e){this._assignValidators(i),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(i){this._rawValidators=this._composedValidatorFn=i}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(i){this._rawAsyncValidators=this._composedAsyncValidatorFn=i}get parent(){return this._parent}get status(){return Vn(this.statusReactive)}set status(i){Vn(()=>this.statusReactive.set(i))}_status=Zn(()=>this.statusReactive());statusReactive=we(void 0);get valid(){return this.status===m0}get invalid(){return this.status===Jm}get pending(){return this.status==F1}get disabled(){return this.status===p0}get enabled(){return this.status!==p0}errors;get pristine(){return Vn(this.pristineReactive)}set pristine(i){Vn(()=>this.pristineReactive.set(i))}_pristine=Zn(()=>this.pristineReactive());pristineReactive=we(!0);get dirty(){return!this.pristine}get touched(){return Vn(this.touchedReactive)}set touched(i){Vn(()=>this.touchedReactive.set(i))}_touched=Zn(()=>this.touchedReactive());touchedReactive=we(!1);get untouched(){return!this.touched}_events=new B;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(i){this._assignValidators(i)}setAsyncValidators(i){this._assignAsyncValidators(i)}addValidators(i){this.setValidators(hS(i,this._rawValidators))}addAsyncValidators(i){this.setAsyncValidators(hS(i,this._rawAsyncValidators))}removeValidators(i){this.setValidators(gS(i,this._rawValidators))}removeAsyncValidators(i){this.setAsyncValidators(gS(i,this._rawAsyncValidators))}hasValidator(i){return tp(this._rawValidators,i)}hasAsyncValidator(i){return tp(this._rawAsyncValidators,i)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(i={}){let e=this.touched===!1;this.touched=!0;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsTouched(Ne(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new g0(!0,n))}markAllAsDirty(i={}){this.markAsDirty({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsDirty(i))}markAllAsTouched(i={}){this.markAsTouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(i))}markAsUntouched(i={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:i.emitEvent,sourceControl:n})}),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,n),e&&i.emitEvent!==!1&&this._events.next(new g0(!1,n))}markAsDirty(i={}){let e=this.pristine===!0;this.pristine=!1;let n=i.sourceControl??this;this._parent&&!i.onlySelf&&this._parent.markAsDirty(Ne(q({},i),{sourceControl:n})),e&&i.emitEvent!==!1&&this._events.next(new h0(!1,n))}markAsPristine(i={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let n=i.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:i.emitEvent})}),this._parent&&!i.onlySelf&&this._parent._updatePristine(i,n),e&&i.emitEvent!==!1&&this._events.next(new h0(!0,n))}markAsPending(i={}){this.status=F1;let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new V1(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.markAsPending(Ne(q({},i),{sourceControl:e}))}disable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=p0,this.errors=null,this._forEachChild(o=>{o.disable(Ne(q({},i),{onlySelf:!0}))}),this._updateValue();let n=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new op(this.value,n)),this._events.next(new V1(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Ne(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(i={}){let e=this._parentMarkedDirty(i.onlySelf);this.status=m0,this._forEachChild(n=>{n.enable(Ne(q({},i),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent}),this._updateAncestors(Ne(q({},i),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(n=>n(!1))}_updateAncestors(i,e){this._parent&&!i.onlySelf&&(this._parent.updateValueAndValidity(i),i.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(i){this._parent=i}getRawValue(){return this.value}updateValueAndValidity(i={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let n=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===m0||this.status===F1)&&this._runAsyncValidator(n,i.emitEvent)}let e=i.sourceControl??this;i.emitEvent!==!1&&(this._events.next(new op(this.value,e)),this._events.next(new V1(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!i.onlySelf&&this._parent.updateValueAndValidity(Ne(q({},i),{sourceControl:e}))}_updateTreeValidity(i={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(i)),this.updateValueAndValidity({onlySelf:!0,emitEvent:i.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?p0:m0}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(i,e){if(this.asyncValidator){this.status=F1,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1,shouldHaveEmitted:i!==!1};let n=IS(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:i})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let i=(this._hasOwnPendingAsyncValidator?.emitEvent||this._hasOwnPendingAsyncValidator?.shouldHaveEmitted)??!1;return this._hasOwnPendingAsyncValidator=null,i}return!1}setErrors(i,e={}){this.errors=i,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(i){let e=i;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((n,o)=>n&&n._find(o),this)}getError(i,e){let n=e?this.get(e):this;return n&&n.errors?n.errors[i]:null}hasError(i,e){return!!this.getError(i,e)}get root(){let i=this;for(;i._parent;)i=i._parent;return i}_updateControlsErrors(i,e,n){this.status=this._calculateStatus(),i&&this.statusChanges.emit(this.status),(i||n)&&this._events.next(new V1(this.status,e)),this._parent&&this._parent._updateControlsErrors(i,e,n)}_initObservables(){this.valueChanges=new j,this.statusChanges=new j}_calculateStatus(){return this._allControlsDisabled()?p0:this.errors?Jm:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(F1)?F1:this._anyControlsHaveStatus(Jm)?Jm:m0}_anyControlsHaveStatus(i){return this._anyControls(e=>e.status===i)}_anyControlsDirty(){return this._anyControls(i=>i.dirty)}_anyControlsTouched(){return this._anyControls(i=>i.touched)}_updatePristine(i,e){let n=!this._anyControlsDirty(),o=this.pristine!==n;this.pristine=n,this._parent&&!i.onlySelf&&this._parent._updatePristine(i,e),o&&this._events.next(new h0(this.pristine,e))}_updateTouched(i={},e){this.touched=this._anyControlsTouched(),this._events.next(new g0(this.touched,e)),this._parent&&!i.onlySelf&&this._parent._updateTouched(i,e)}_onDisabledChange=[];_registerOnCollectionChange(i){this._onCollectionChange=i}_setUpdateStrategy(i){lp(i)&&i.updateOn!=null&&(this._updateOn=i.updateOn)}_parentMarkedDirty(i){let e=this._parent&&this._parent.dirty;return!i&&!!e&&!this._parent._anyControlsDirty()}_find(i){return null}_assignValidators(i){this._rawValidators=Array.isArray(i)?i.slice():i,this._composedValidatorFn=UY(this._rawValidators)}_assignAsyncValidators(i){this._rawAsyncValidators=Array.isArray(i)?i.slice():i,this._composedAsyncValidatorFn=$Y(this._rawAsyncValidators)}},qc=class extends B1{constructor(i,e,n){super(F7(e),V7(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(i,e){return this.controls[i]?this.controls[i]:(this.controls[i]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(i,e,n={}){this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}removeControl(i,e={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(i,e,n={}){this.controls[i]&&this.controls[i]._registerOnCollectionChange(()=>{}),delete this.controls[i],e&&this.registerControl(i,e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}contains(i){return this.controls.hasOwnProperty(i)&&this.controls[i].enabled}setValue(i,e={}){FS(this,!0,i),Object.keys(i).forEach(n=>{NS(this,!0,n),this.controls[n].setValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(Object.keys(i).forEach(n=>{let o=this.controls[n];o&&o.patchValue(i[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i={},e={}){this._forEachChild((n,o)=>{n.reset(i?i[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new _0(this))}getRawValue(){return this._reduceChildren({},(i,e,n)=>(i[n]=e.getRawValue(),i))}_syncPendingControls(){let i=this._reduceChildren(!1,(e,n)=>n._syncPendingControls()?!0:e);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){Object.keys(this.controls).forEach(e=>{let n=this.controls[e];n&&i(n,e)})}_setUpControls(){this._forEachChild(i=>{i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(i){for(let[e,n]of Object.entries(this.controls))if(this.contains(e)&&i(n))return!0;return!1}_reduceValue(){let i={};return this._reduceChildren(i,(e,n,o)=>((n.enabled||this.disabled)&&(e[o]=n.value),e))}_reduceChildren(i,e){let n=i;return this._forEachChild((o,r)=>{n=e(n,o,r)}),n}_allControlsDisabled(){for(let i of Object.keys(this.controls))if(this.controls[i].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(i){return this.controls.hasOwnProperty(i)?this.controls[i]:null}};var VS=qc;var P7=class extends qc{};var j1=new L("",{providedIn:"root",factory:()=>dp}),dp="always";function up(t,i){return[...i.path,t]}function b0(t,i,e=dp){B7(t,i),i.valueAccessor.writeValue(t.value),(t.disabled||e==="always")&&i.valueAccessor.setDisabledState?.(t.disabled),WY(t,i),YY(t,i),qY(t,i),GY(t,i)}function ap(t,i,e=!0){let n=()=>{};i.valueAccessor&&(i.valueAccessor.registerOnChange(n),i.valueAccessor.registerOnTouched(n)),cp(t,i),t&&(i._invokeOnDestroyCallbacks(),t._registerOnCollectionChange(()=>{}))}function sp(t,i){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(i)})}function GY(t,i){if(i.valueAccessor.setDisabledState){let e=n=>{i.valueAccessor.setDisabledState(n)};t.registerOnDisabledChange(e),i._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}function B7(t,i){let e=zS(t);i.validator!==null?t.setValidators(fS(e,i.validator)):typeof e=="function"&&t.setValidators([e]);let n=RS(t);i.asyncValidator!==null?t.setAsyncValidators(fS(n,i.asyncValidator)):typeof n=="function"&&t.setAsyncValidators([n]);let o=()=>t.updateValueAndValidity();sp(i._rawValidators,o),sp(i._rawAsyncValidators,o)}function cp(t,i){let e=!1;if(t!==null){if(i.validator!==null){let o=zS(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.validator);r.length!==o.length&&(e=!0,t.setValidators(r))}}if(i.asyncValidator!==null){let o=RS(t);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==i.asyncValidator);r.length!==o.length&&(e=!0,t.setAsyncValidators(r))}}}let n=()=>{};return sp(i._rawValidators,n),sp(i._rawAsyncValidators,n),e}function WY(t,i){i.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,t.updateOn==="change"&&BS(t,i)})}function qY(t,i){i.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,t.updateOn==="blur"&&t._pendingChange&&BS(t,i),t.updateOn!=="submit"&&t.markAsTouched()})}function BS(t,i){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),i.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function YY(t,i){let e=(n,o)=>{i.valueAccessor.writeValue(n),o&&i.viewToModelUpdate(n)};t.registerOnChange(e),i._registerOnDestroy(()=>{t._unregisterOnChange(e)})}function jS(t,i){t==null,B7(t,i)}function QY(t,i){return cp(t,i)}function j7(t,i){if(!t.hasOwnProperty("model"))return!1;let e=t.model;return e.isFirstChange()?!0:!Object.is(i,e.currentValue)}function KY(t){return Object.getPrototypeOf(t.constructor)===xS}function HS(t,i){t._syncPendingControls(),i.forEach(e=>{let n=e.control;n.updateOn==="submit"&&n._pendingChange&&(e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)})}function H7(t,i){if(!i)return null;Array.isArray(i);let e,n,o;return i.forEach(r=>{r.constructor===yi?e=r:KY(r)?n=r:o=r}),o||n||e||null}function XY(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}var ZY={provide:vi,useExisting:kt(()=>H1)},f0=Promise.resolve(),H1=(()=>{class t extends vi{callSetDisabledState;get submitted(){return Vn(this.submittedReactive)}_submitted=Zn(()=>this.submittedReactive());submittedReactive=we(!1);_directives=new Set;form;ngSubmit=new j;options;constructor(e,n,o){super(),this.callSetDisabledState=o,this.form=new qc({},R7(e),N7(n))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){f0.then(()=>{let n=this._findContainer(e.path);e.control=n.registerControl(e.name,e.control),b0(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){f0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){f0.then(()=>{let n=this._findContainer(e.path),o=new qc({});jS(o,e),n.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){f0.then(()=>{let n=this._findContainer(e.path);n&&n.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,n){f0.then(()=>{this.form.get(e.path).setValue(n)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),HS(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new rp(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1)}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(n){return new(n||t)(Ce(Ci,10),Ce(Yc,10),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,o){n&1&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[de([ZY]),ce]})}return t})();function _S(t,i){let e=t.indexOf(i);e>-1&&t.splice(e,1)}function bS(t){return typeof t=="object"&&t!==null&&Object.keys(t).length===2&&"value"in t&&"disabled"in t}var Ls=class extends B1{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(i=null,e,n){super(F7(e),V7(n,e)),this._applyFormState(i),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),lp(e)&&(e.nonNullable||e.initialValueIsDefault)&&(bS(i)?this.defaultValue=i.value:this.defaultValue=i)}setValue(i,e={}){this.value=this._pendingValue=i,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(n=>n(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(i,e={}){this.setValue(i,e)}reset(i=this.defaultValue,e={}){this._applyFormState(i),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1,e?.emitEvent!==!1&&this._events.next(new _0(this))}_updateValue(){}_anyControls(i){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(i){this._onChange.push(i)}_unregisterOnChange(i){_S(this._onChange,i)}registerOnDisabledChange(i){this._onDisabledChange.push(i)}_unregisterOnDisabledChange(i){_S(this._onDisabledChange,i)}_forEachChild(i){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(i){bS(i)?(this.value=this._pendingValue=i.value,i.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=i}},Hi=Ls,JY=t=>t instanceof Ls,eQ=(()=>{class t extends vi{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return up(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,standalone:!1,features:[ce]})}return t})();var tQ={provide:ei,useExisting:kt(()=>nQ)},vS=Promise.resolve(),nQ=(()=>{class t extends ei{_changeDetectorRef;callSetDisabledState;control=new Ls;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new j;constructor(e,n,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=H7(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let n=e.name.previousValue;this.formDirective.removeControl({name:n,path:this._getPath(n)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),j7(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){b0(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){vS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let n=e.isDisabled.currentValue,o=n!==0&&H(n);vS.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?up(e,this._parent):[e]}static \u0275fac=function(n){return new(n||t)(Ce(vi,9),Ce(Ci,10),Ce(Yc,10),Ce(di,10),Ce(xe,8),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[de([tQ]),ce,Re]})}return t})();var zs=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return t})(),iQ={provide:di,useExisting:kt(()=>oQ),multi:!0},oQ=(()=>{class t extends xS{writeValue(e){let n=e??"";this.setProperty("value",n)}registerOnChange(e){this.onChange=n=>{e(n==""?null:parseFloat(n))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,o){n&1&&N("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[de([iQ]),ce]})}return t})();var U7=new L(""),rQ={provide:ei,useExisting:kt(()=>Si)},Si=(()=>{class t extends ei{_ngModelWarningConfig;callSetDisabledState;viewModel;form;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=r,this.callSetDisabledState=a,this._setValidators(e),this._setAsyncValidators(n),this.valueAccessor=H7(this,o)}ngOnChanges(e){if(this._isControlChanged(e)){let n=e.form.previousValue;n&&ap(n,this,!1),b0(this.form,this,this.callSetDisabledState),this.form.updateValueAndValidity({emitEvent:!1})}j7(e,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&ap(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_isControlChanged(e){return e.hasOwnProperty("form")}static \u0275fac=function(n){return new(n||t)(Ce(Ci,10),Ce(Yc,10),Ce(di,10),Ce(U7,8),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["","formControl",""]],inputs:{form:[0,"formControl","form"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],standalone:!1,features:[de([rQ]),ce,Re]})}return t})(),aQ={provide:vi,useExisting:kt(()=>ui)},ui=(()=>{class t extends vi{callSetDisabledState;get submitted(){return Vn(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=Zn(()=>this._submittedReactive());_submittedReactive=we(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new j;constructor(e,n,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(n)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(cp(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let n=this.form.get(e.path);return b0(n,e,this.callSetDisabledState),n.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),n}getControl(e){return this.form.get(e.path)}removeControl(e){ap(e.control||null,e,!1),XY(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,n){this.form.get(e.path).setValue(n)}onSubmit(e){return this._submittedReactive.set(!0),HS(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new rp(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0,n={}){this.form.reset(e,n),this._submittedReactive.set(!1)}_updateDomValue(){this.directives.forEach(e=>{let n=e.control,o=this.form.get(e.path);n!==o&&(ap(n||null,e),JY(o)&&(b0(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let n=this.form.get(e.path);jS(n,e),n.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let n=this.form.get(e.path);n&&QY(n,e)&&n.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){B7(this.form,this),this._oldForm&&cp(this._oldForm,this)}static \u0275fac=function(n){return new(n||t)(Ce(Ci,10),Ce(Yc,10),Ce(j1,8))};static \u0275dir=z({type:t,selectors:[["","formGroup",""]],hostBindings:function(n,o){n&1&&N("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[de([aQ]),ce,Re]})}return t})(),sQ={provide:vi,useExisting:kt(()=>US)},US=(()=>{class t extends eQ{name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}_checkParentType(){GS(this._parent)}static \u0275fac=function(n){return new(n||t)(Ce(vi,13),Ce(Ci,10),Ce(Yc,10))};static \u0275dir=z({type:t,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[de([sQ]),ce]})}return t})(),cQ={provide:vi,useExisting:kt(()=>$S)},$S=(()=>{class t extends vi{_parent;name=null;constructor(e,n,o){super(),this._parent=e,this._setValidators(n),this._setAsyncValidators(o)}ngOnInit(){GS(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return up(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(n){return new(n||t)(Ce(vi,13),Ce(Ci,10),Ce(Yc,10))};static \u0275dir=z({type:t,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[de([cQ]),ce]})}return t})();function GS(t){return!(t instanceof US)&&!(t instanceof ui)&&!(t instanceof $S)}var lQ={provide:ei,useExisting:kt(()=>Ao)},Ao=(()=>{class t extends ei{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new j;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,n,o,r,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(n),this._setAsyncValidators(o),this.valueAccessor=H7(this,r)}ngOnChanges(e){this._added||this._setUpControl(),j7(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return up(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(n){return new(n||t)(Ce(vi,13),Ce(Ci,10),Ce(Yc,10),Ce(di,10),Ce(U7,8))};static \u0275dir=z({type:t,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[de([lQ]),ce,Re]})}return t})();function WS(t){return typeof t=="number"?t:parseInt(t,10)}function qS(t){return typeof t=="number"?t:parseFloat(t)}var v0=(()=>{class t{_validator=ep;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let n=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(n),this._validator=this._enabled?this.createValidator(n):ep,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,features:[Re]})}return t})(),dQ={provide:Ci,useExisting:kt(()=>uQ),multi:!0},uQ=(()=>{class t extends v0{max;inputName="max";normalizeInput=e=>qS(e);createValidator=e=>wS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ne("max",o._enabled?o.max:null)},inputs:{max:"max"},standalone:!1,features:[de([dQ]),ce]})}return t})(),mQ={provide:Ci,useExisting:kt(()=>pQ),multi:!0},pQ=(()=>{class t extends v0{min;inputName="min";normalizeInput=e=>qS(e);createValidator=e=>MS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ne("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[de([mQ]),ce]})}return t})(),fQ={provide:Ci,useExisting:kt(()=>Ir),multi:!0};var Ir=(()=>{class t extends v0{required;inputName="required";normalizeInput=H;createValidator=e=>DS;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,o){n&2&&ne("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[de([fQ]),ce]})}return t})();var hQ={provide:Ci,useExisting:kt(()=>gQ),multi:!0},gQ=(()=>{class t extends v0{minlength;inputName="minlength";normalizeInput=e=>WS(e);createValidator=e=>SS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ne("minlength",o._enabled?o.minlength:null)},inputs:{minlength:"minlength"},standalone:!1,features:[de([hQ]),ce]})}return t})(),_Q={provide:Ci,useExisting:kt(()=>bQ),multi:!0},bQ=(()=>{class t extends v0{maxlength;inputName="maxlength";normalizeInput=e=>WS(e);createValidator=e=>kS(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(n,o){n&2&&ne("maxlength",o._enabled?o.maxlength:null)},inputs:{maxlength:"maxlength"},standalone:!1,features:[de([_Q]),ce]})}return t})();var YS=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})(),L7=class extends B1{constructor(i,e,n){super(F7(e),V7(n,e)),this.controls=i,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(i){return this.controls[this._adjustIndex(i)]}push(i,e={}){Array.isArray(i)?i.forEach(n=>{this.controls.push(n),this._registerControl(n)}):(this.controls.push(i),this._registerControl(i)),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(i,e,n={}){this.controls.splice(i,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent})}removeAt(i,e={}){let n=this._adjustIndex(i);n<0&&(n=0),this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),this.controls.splice(n,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(i,e,n={}){let o=this._adjustIndex(i);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(i,e={}){FS(this,!1,i),i.forEach((n,o)=>{NS(this,!1,o),this.at(o).setValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(i,e={}){i!=null&&(i.forEach((n,o)=>{this.at(o)&&this.at(o).patchValue(n,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(i=[],e={}){this._forEachChild((n,o)=>{n.reset(i[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e),e?.emitEvent!==!1&&this._events.next(new _0(this))}getRawValue(){return this.controls.map(i=>i.getRawValue())}clear(i={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:i.emitEvent}))}_adjustIndex(i){return i<0?i+this.length:i}_syncPendingControls(){let i=this.controls.reduce((e,n)=>n._syncPendingControls()?!0:e,!1);return i&&this.updateValueAndValidity({onlySelf:!0}),i}_forEachChild(i){this.controls.forEach((e,n)=>{i(e,n)})}_updateValue(){this.value=this.controls.filter(i=>i.enabled||this.disabled).map(i=>i.value)}_anyControls(i){return this.controls.some(e=>e.enabled&&i(e))}_setUpControls(){this._forEachChild(i=>this._registerControl(i))}_allControlsDisabled(){for(let i of this.controls)if(i.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(i){i.setParent(this),i._registerOnCollectionChange(this._onCollectionChange)}_find(i){return this.at(i)??null}};function yS(t){return!!t&&(t.asyncValidators!==void 0||t.validators!==void 0||t.updateOn!==void 0)}var vQ=(()=>{class t{useNonNullable=!1;get nonNullable(){let e=new t;return e.useNonNullable=!0,e}group(e,n=null){let o=this._reduceControls(e),r={};return yS(n)?r=n:n!==null&&(r.validators=n.validator,r.asyncValidators=n.asyncValidator),new qc(o,r)}record(e,n=null){let o=this._reduceControls(e);return new P7(o,n)}control(e,n,o){let r={};return this.useNonNullable?(yS(n)?r=n:(r.validators=n,r.asyncValidators=o),new Ls(e,Ne(q({},r),{nonNullable:!0}))):new Ls(e,n,o)}array(e,n,o){let r=e.map(a=>this._createControl(a));return new L7(r,n,o)}_reduceControls(e){let n={};return Object.keys(e).forEach(o=>{n[o]=this._createControl(e[o])}),n}_createControl(e){if(e instanceof Ls)return e;if(e instanceof B1)return e;if(Array.isArray(e)){let n=e[0],o=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(n,o,r)}else return this.control(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Rs=(()=>{class t extends vQ{group(e,n=null){return super.group(e,n)}control(e,n,o){return super.control(e,n,o)}array(e,n,o){return super.array(e,n,o)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var QS=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:j1,useValue:e.callSetDisabledState??dp}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[YS]})}return t})(),ve=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:U7,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:j1,useValue:e.callSetDisabledState??dp}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[YS]})}return t})();var KS=(()=>{class t{constructor(){this.locale=d(wr),this.el=d(Q),this.control=d(ei),this.format="N0",this.digitsInfo="1.0-0",this.sufix=""}set _(e){let n=e.split(":");this.currencyCode=n[0],this.displaySymbol=n.length>1?n[1]:"$",this.digitsInfo=n.length>2?n[2]:"1.2-2"}blur(e){e.value=this.parse(e.value)}focus(e){typeof this.control.value>"u"?e.value="":e.value=this.control.value}ngOnInit(){setTimeout(()=>{this.el.nativeElement.value=this.parse(this.el.nativeElement.value)})}parse(e){return e==""?""+this.sufix:Om(e,this.locale,this.displaySymbol,this.currencyCode,this.digitsInfo)+this.sufix}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxFormatAmount",""]],hostBindings:function(n,o){n&1&&N("blur",function(a){return o.blur(a.target)})("focus",function(a){return o.focus(a.target)})},inputs:{sufix:"sufix",_:[0,"mifosxFormatAmount","_"]}})}}return t})();var $Ce=(()=>{class t{constructor(){this.control=d(ei),this.el=d(Q)}onFocus(){this.control.control?.markAsTouched(),this.control.control?.updateValueAndValidity()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275dir=z({type:t,selectors:[["","mifosxValidateOnFocus",""]],hostBindings:function(n,o){n&1&&N("focus",function(){return o.onFocus()})}})}}return t})();var XS=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({imports:[he]})}}return t})();var nr=class{constructor(i={}){this.controlType=i.controlType||"",this.controlName=i.controlName||"",this.label=i.label||"",this.value=i.value===void 0?"":i.value,this.required=!!i.required,this.order=i.order===void 0?1:i.order,this.validators=i.validators===void 0?[]:i.validators,this.min=i.min===void 0?null:i.min,this.max=i.max===void 0?null:i.max}};function Ya(t){return t.buttons===0||t.detail===0}function Qa(t){let i=t.touches&&t.touches[0]||t.changedTouches&&t.changedTouches[0];return!!i&&i.identifier===-1&&(i.radiusX==null||i.radiusX===1)&&(i.radiusY==null||i.radiusY===1)}var $7;function ZS(){if($7==null){let t=typeof document<"u"?document.head:null;$7=!!(t&&(t.createShadowRoot||t.attachShadow))}return $7}function Qc(t){if(ZS()){let i=t.getRootNode?t.getRootNode():null;if(typeof ShadowRoot<"u"&&ShadowRoot&&i instanceof ShadowRoot)return i}return null}function no(){let t=typeof document<"u"&&document?document.activeElement:null;for(;t&&t.shadowRoot;){let i=t.shadowRoot.activeElement;if(i===t)break;t=i}return t}function jn(t){return t.composedPath?t.composedPath()[0]:t.target}var G7;try{G7=typeof Intl<"u"&&Intl.v8BreakIterator}catch{G7=!1}var je=(()=>{class t{_platformId=d(Bc);isBrowser=this._platformId?DD(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||G7)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var y0;function JS(){if(y0==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>y0=!0}))}finally{y0=y0||!1}return y0}function Ns(t){return JS()?t:!!t.capture}function vn(t,i=0){return mp(t)?Number(t):arguments.length===2?i:0}function mp(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}function kn(t){return t instanceof Q?t.nativeElement:t}var ek=new L("cdk-input-modality-detector-options"),tk={ignoreKeys:[18,17,224,91,16]},nk=650,W7={passive:!0,capture:!0},ik=(()=>{class t{_platform=d(je);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new ct(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(n=>n===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=jn(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(Qa(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=jn(e)};constructor(){let e=d(se),n=d(Me),o=d(ek,{optional:!0});if(this._options=q(q({},tk),o),this.modalityDetected=this._modality.pipe(Cc(1)),this.modalityChanged=this.modalityDetected.pipe(Wl()),this._platform.isBrowser){let r=d(On).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[r.listen(n,"keydown",this._onKeydown,W7),r.listen(n,"mousedown",this._onMousedown,W7),r.listen(n,"touchstart",this._onTouchstart,W7)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),C0=(function(t){return t[t.IMMEDIATE=0]="IMMEDIATE",t[t.EVENTUAL=1]="EVENTUAL",t})(C0||{}),ok=new L("cdk-focus-monitor-default-options"),pp=Ns({passive:!0,capture:!0}),sn=(()=>{class t{_ngZone=d(se);_platform=d(je);_inputModalityDetector=d(ik);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=d(Me);_stopInputModalityDetector=new B;constructor(){let e=d(ok,{optional:!0});this._detectionMode=e?.detectionMode||C0.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let n=jn(e);for(let o=n;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,n=!1){let o=kn(e);if(!this._platform.isBrowser||o.nodeType!==1)return re();let r=Qc(o)||this._document,a=this._elementInfo.get(o);if(a)return n&&(a.checkChildren=!0),a.subject;let s={checkChildren:n,subject:new B,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let n=kn(e),o=this._elementInfo.get(n);o&&(o.subject.complete(),this._setClasses(n),this._elementInfo.delete(n),this._removeGlobalListeners(o))}focusVia(e,n,o){let r=kn(e),a=this._document.activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,c])=>this._originChanged(s,n,c)):(this._setOrigin(n),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,n)=>this.stopMonitoring(n))}_getWindow(){return this._document.defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===C0.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,n){e.classList.toggle("cdk-focused",!!n),e.classList.toggle("cdk-touch-focused",n==="touch"),e.classList.toggle("cdk-keyboard-focused",n==="keyboard"),e.classList.toggle("cdk-mouse-focused",n==="mouse"),e.classList.toggle("cdk-program-focused",n==="program")}_setOrigin(e,n=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&n,this._detectionMode===C0.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?nk:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,n){let o=this._elementInfo.get(n),r=jn(e);!o||!o.checkChildren&&n!==r||this._originChanged(n,this._getFocusOrigin(r),o)}_onBlur(e,n){let o=this._elementInfo.get(n);!o||o.checkChildren&&e.relatedTarget instanceof Node&&n.contains(e.relatedTarget)||(this._setClasses(n),this._emitOrigin(o,null))}_emitOrigin(e,n){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(n))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let n=e.rootNode,o=this._rootNodeFocusListenerCount.get(n)||0;o||this._ngZone.runOutsideAngular(()=>{n.addEventListener("focus",this._rootNodeFocusAndBlurListener,pp),n.addEventListener("blur",this._rootNodeFocusAndBlurListener,pp)}),this._rootNodeFocusListenerCount.set(n,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(ye(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let n=e.rootNode;if(this._rootNodeFocusListenerCount.has(n)){let o=this._rootNodeFocusListenerCount.get(n);o>1?this._rootNodeFocusListenerCount.set(n,o-1):(n.removeEventListener("focus",this._rootNodeFocusAndBlurListener,pp),n.removeEventListener("blur",this._rootNodeFocusAndBlurListener,pp),this._rootNodeFocusListenerCount.delete(n))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,n,o){this._setClasses(e,n),this._emitOrigin(o,n),this._lastFocusOrigin=n}_getClosestElementsInfo(e){let n=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&n.push([r,o])}),n}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:n,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!n||n===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class t{_elementRef=d(Q);_focusMonitor=d(sn);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new j;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(n=>{this._focusOrigin=n,this.cdkFocusChange.emit(n)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return t})();var fp=new WeakMap,at=(()=>{class t{_appRef;_injector=d(be);_environmentInjector=d(Qt);load(e){let n=this._appRef=this._appRef||this._injector.get(li),o=fp.get(n);o||(o={loaders:new Set,refs:[]},fp.set(n,o),n.onDestroy(()=>{fp.get(n)?.refs.forEach(r=>r.destroy()),fp.delete(n)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(gm(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var _o=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} +`],encapsulation:2,changeDetection:0})}return t})();function Or(t){return Array.isArray(t)?t:[t]}var rk=new Set,Kc,hp=(()=>{class t{_platform=d(je);_nonce=d(g1,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):CQ}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&yQ(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function yQ(t,i){if(!rk.has(t))try{Kc||(Kc=document.createElement("style"),i&&Kc.setAttribute("nonce",i),Kc.setAttribute("type","text/css"),document.head.appendChild(Kc)),Kc.sheet&&(Kc.sheet.insertRule(`@media ${t} {body{ }}`,0),rk.add(t))}catch(e){console.error(e)}}function CQ(t){return{matches:t==="all"||t==="",media:t,addListener:()=>{},removeListener:()=>{}}}var Xc=(()=>{class t{_mediaMatcher=d(hp);_zone=d(se);_queries=new Map;_destroySubject=new B;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return ak(Or(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=ak(Or(e)).map(a=>this._registerQuery(a).observable),r=gi(o);return r=Li(r.pipe(Be(1)),r.pipe(Cc(1),hr(0))),r.pipe(me(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:c,query:m})=>{s.matches=s.matches||c,s.breakpoints[m]=c}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let n=this._mediaMatcher.matchMedia(e),r={observable:new Fe(a=>{let s=c=>this._zone.run(()=>a.next(c));return n.addListener(s),()=>{n.removeListener(s)}}).pipe(We(n),me(({matches:a})=>({query:e,matches:a})),ye(this._destroySubject)),mql:n};return this._queries.set(e,r),r}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function ak(t){return t.map(i=>i.split(",")).reduce((i,e)=>i.concat(e)).map(i=>i.trim())}function xQ(t){if(t.type==="characterData"&&t.target instanceof Comment)return!0;if(t.type==="childList"){for(let i=0;i{class t{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),ck=(()=>{class t{_mutationObserverFactory=d(sk);_observedElements=new Map;_ngZone=d(se);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,n)=>this._cleanupObserver(n))}observe(e){let n=kn(e);return new Fe(o=>{let a=this._observeElement(n).pipe(me(s=>s.filter(c=>!xQ(c))),Ae(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(n)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let n=new B,o=this._mutationObserverFactory.create(r=>n.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:n,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:n,stream:o}=this._observedElements.get(e);n&&n.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),M0=(()=>{class t{_contentObserver=d(ck);_elementRef=d(Q);event=new j;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=vn(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(hr(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",H],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return t})(),U1=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[sk]})}return t})();var Vs=(()=>{class t{_platform=d(je);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return wQ(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let n=MQ(PQ(e));if(n&&(lk(n)===-1||!this.isVisible(n)))return!1;let o=e.nodeName.toLowerCase(),r=lk(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!OQ(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,n){return TQ(e)&&!this.isDisabled(e)&&(n?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function MQ(t){try{return t.frameElement}catch{return null}}function wQ(t){return!!(t.offsetWidth||t.offsetHeight||typeof t.getClientRects=="function"&&t.getClientRects().length)}function DQ(t){let i=t.nodeName.toLowerCase();return i==="input"||i==="select"||i==="button"||i==="textarea"}function SQ(t){return EQ(t)&&t.type=="hidden"}function kQ(t){return IQ(t)&&t.hasAttribute("href")}function EQ(t){return t.nodeName.toLowerCase()=="input"}function IQ(t){return t.nodeName.toLowerCase()=="a"}function mk(t){if(!t.hasAttribute("tabindex")||t.tabIndex===void 0)return!1;let i=t.getAttribute("tabindex");return!!(i&&!isNaN(parseInt(i,10)))}function lk(t){if(!mk(t))return null;let i=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(i)?-1:i}function OQ(t){let i=t.nodeName.toLowerCase(),e=i==="input"&&t.type;return e==="text"||e==="password"||i==="select"||i==="textarea"}function TQ(t){return SQ(t)?!1:DQ(t)||kQ(t)||t.hasAttribute("contenteditable")||mk(t)}function PQ(t){return t.ownerDocument&&t.ownerDocument.defaultView||window}var gp=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(i){this._enabled=i,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_enabled=!0;constructor(i,e,n,o,r=!1,a){this._element=i,this._checker=e,this._ngZone=n,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let i=this._startAnchor,e=this._endAnchor;i&&(i.removeEventListener("focus",this.startAnchorListener),i.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(i)))})}focusFirstTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(i)))})}focusLastTabbableElementWhenReady(i){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(i)))})}_getRegionBoundary(i){let e=this._element.querySelectorAll(`[cdk-focus-region-${i}], [cdkFocusRegion${i}], [cdk-focus-${i}]`);return i=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(i){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let n=this._getFirstTabbableElement(e);return n?.focus(i),!!n}return e.focus(i),!0}return this.focusFirstTabbableElement(i)}focusFirstTabbableElement(i){let e=this._getRegionBoundary("start");return e&&e.focus(i),!!e}focusLastTabbableElement(i){let e=this._getRegionBoundary("end");return e&&e.focus(i),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(i){if(this._checker.isFocusable(i)&&this._checker.isTabbable(i))return i;let e=i.children;for(let n=0;n=0;n--){let o=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(o)return o}return null}_createAnchor(){let i=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,i),i.classList.add("cdk-visually-hidden"),i.classList.add("cdk-focus-trap-anchor"),i.setAttribute("aria-hidden","true"),i}_toggleAnchorTabIndex(i,e){i?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(i){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(i,this._startAnchor),this._toggleAnchorTabIndex(i,this._endAnchor))}_executeOnStable(i){this._injector?Ct(i,{injector:this._injector}):setTimeout(i)}},$1=(()=>{class t{_checker=d(Vs);_ngZone=d(se);_document=d(Me);_injector=d(be);constructor(){d(at).load(_o)}create(e,n=!1){return new gp(e,this._checker,this._ngZone,this._document,n,this._injector)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Y7=(()=>{class t{_elementRef=d(Q);_focusTrapFactory=d($1);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){d(je).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let n=e.autoCapture;n&&!n.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=no(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",H],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",H]},exportAs:["cdkTrapFocus"],features:[Re]})}return t})(),pk=new L("liveAnnouncerElement",{providedIn:"root",factory:fk});function fk(){return null}var hk=new L("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),LQ=0,w0=(()=>{class t{_ngZone=d(se);_defaultOptions=d(hk,{optional:!0});_liveElement;_document=d(Me);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=d(pk,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...n){let o=this._defaultOptions,r,a;return n.length===1&&typeof n[0]=="number"?a=n[0]:[r,a]=n,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",n=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class t{_platform=d(je);_hasCheckedHighContrastMode;_document=d(Me);_breakpointSubscription;constructor(){this._breakpointSubscription=d(Xc).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return Fs.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let n=this._document.defaultView||window,o=n&&n.getComputedStyle?n.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return Fs.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return Fs.BLACK_ON_WHITE}return Fs.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(q7,dk,uk),this._hasCheckedHighContrastMode=!0;let n=this.getHighContrastMode();n===Fs.BLACK_ON_WHITE?e.add(q7,dk):n===Fs.WHITE_ON_BLACK&&e.add(q7,uk)}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ka=(()=>{class t{constructor(){d(_p)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[U1]})}return t})();var Q7={},He=(()=>{class t{_appId=d(Ds);getId(e){return this._appId!=="ng"&&(e+=this._appId),Q7.hasOwnProperty(e)||(Q7[e]=0),`${e}${Q7[e]++}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var AQ=200,G1=class{_letterKeyStream=new B;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new B;selectedItem=this._selectedItem;constructor(i,e){let n=typeof e?.debounceInterval=="number"?e.debounceInterval:AQ;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(i),this._setupKeyHandler(n)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(i){this._selectedItemIndex=i}setItems(i){this._items=i}handleKey(i){let e=i.keyCode;i.key&&i.key.length===1?this._letterKeyStream.next(i.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(i){this._letterKeyStream.pipe(Ot(e=>this._pressedLetters.push(e)),hr(i),Ae(()=>this._pressedLetters.length>0),me(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let n=1;nt[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}var W1=class{_items;_activeItemIndex=we(-1);_activeItem=we(null);_wrap=!1;_typeaheadSubscription=Se.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=i=>i.disabled;constructor(i,e){this._items=i,i instanceof In?this._itemChangesSubscription=i.changes.subscribe(n=>this._itemsChanged(n.toArray())):ea(i)&&(this._effectRef=sa(()=>this._itemsChanged(i()),{injector:e}))}tabOut=new B;change=new B;skipPredicate(i){return this._skipPredicateFn=i,this}withWrap(i=!0){return this._wrap=i,this}withVerticalOrientation(i=!0){return this._vertical=i,this}withHorizontalOrientation(i){return this._horizontal=i,this}withAllowedModifierKeys(i){return this._allowedModifierKeys=i,this}withTypeAhead(i=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new G1(e,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:n=>this._skipPredicateFn(n)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(n=>{this.setActiveItem(n)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(i=!0){return this._homeAndEnd=i,this}withPageUpDown(i=!0,e=10){return this._pageUpAndDown={enabled:i,delta:e},this}setActiveItem(i){let e=this._activeItem();this.updateActiveItem(i),this._activeItem()!==e&&this.change.next(this._activeItemIndex())}onKeydown(i){let e=i.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!i[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex()+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&n!==this._activeItemIndex()&&(this._activeItemIndex.set(n),this._typeahead?.setCurrentSelectedItemIndex(n))}}};var Zc=class extends W1{setActiveItem(i){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(i),this.activeItem&&this.activeItem.setActiveStyles()}};var Tr=class extends W1{_origin="program";setFocusOrigin(i){return this._origin=i,this}setActiveItem(i){super.setActiveItem(i),this.activeItem&&this.activeItem.focus(this._origin)}};function Jc(t){return ai(t)?t:re(t)}var K7=class{_activeItemIndex=-1;_activeItem=null;_shouldActivationFollowFocus=!1;_horizontalOrientation="ltr";_skipPredicateFn=i=>!1;_trackByFn=i=>i;_items=[];_typeahead;_typeaheadSubscription=Se.EMPTY;_hasInitialFocused=!1;_initializeFocus(){if(this._hasInitialFocused||this._items.length===0)return;let i=0;for(let n=0;n{this._items=n.toArray(),this._typeahead?.setItems(this._items),this._updateActiveItemIndex(this._items),this._initializeFocus()})):ai(i)?i.subscribe(n=>{this._items=n,this._typeahead?.setItems(n),this._updateActiveItemIndex(n),this._initializeFocus()}):(this._items=i,this._initializeFocus()),typeof e.shouldActivationFollowFocus=="boolean"&&(this._shouldActivationFollowFocus=e.shouldActivationFollowFocus),e.horizontalOrientation&&(this._horizontalOrientation=e.horizontalOrientation),e.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),e.trackBy&&(this._trackByFn=e.trackBy),typeof e.typeAheadDebounceInterval<"u"&&this._setTypeAhead(e.typeAheadDebounceInterval)}change=new B;destroy(){this._typeaheadSubscription.unsubscribe(),this._typeahead?.destroy(),this.change.complete()}onKeydown(i){switch(i.key){case"Tab":return;case"ArrowDown":this._focusNextItem();break;case"ArrowUp":this._focusPreviousItem();break;case"ArrowRight":this._horizontalOrientation==="rtl"?this._collapseCurrentItem():this._expandCurrentItem();break;case"ArrowLeft":this._horizontalOrientation==="rtl"?this._expandCurrentItem():this._collapseCurrentItem();break;case"Home":this._focusFirstItem();break;case"End":this._focusLastItem();break;case"Enter":case" ":this._activateCurrentItem();break;default:if(i.key==="*"){this._expandAllItemsAtCurrentItemLevel();break}this._typeahead?.handleKey(i);return}this._typeahead?.reset(),i.preventDefault()}getActiveItemIndex(){return this._activeItemIndex}getActiveItem(){return this._activeItem}_focusFirstItem(){this.focusItem(this._findNextAvailableItemIndex(-1))}_focusLastItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._items.length))}_focusNextItem(){this.focusItem(this._findNextAvailableItemIndex(this._activeItemIndex))}_focusPreviousItem(){this.focusItem(this._findPreviousAvailableItemIndex(this._activeItemIndex))}focusItem(i,e={}){e.emitChangeEvent??=!0;let n=typeof i=="number"?i:this._items.findIndex(a=>this._trackByFn(a)===this._trackByFn(i));if(n<0||n>=this._items.length)return;let o=this._items[n];if(this._activeItem!==null&&this._trackByFn(o)===this._trackByFn(this._activeItem))return;let r=this._activeItem;this._activeItem=o??null,this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n),this._activeItem?.focus(),r?.unfocus(),e.emitChangeEvent&&this.change.next(this._activeItem),this._shouldActivationFollowFocus&&this._activateCurrentItem()}_updateActiveItemIndex(i){let e=this._activeItem;if(!e)return;let n=i.findIndex(o=>this._trackByFn(o)===this._trackByFn(e));n>-1&&n!==this._activeItemIndex&&(this._activeItemIndex=n,this._typeahead?.setCurrentSelectedItemIndex(n))}_setTypeAhead(i){this._typeahead=new G1(this._items,{debounceInterval:typeof i=="number"?i:void 0,skipPredicate:e=>this._skipPredicateFn(e)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(e=>{this.focusItem(e)})}_findNextAvailableItemIndex(i){for(let e=i+1;e=0;e--)if(!this._skipPredicateFn(this._items[e]))return e;return i}_collapseCurrentItem(){if(this._activeItem)if(this._isCurrentItemExpanded())this._activeItem.collapse();else{let i=this._activeItem.getParent();if(!i||this._skipPredicateFn(i))return;this.focusItem(i)}}_expandCurrentItem(){this._activeItem&&(this._isCurrentItemExpanded()?Jc(this._activeItem.getChildren()).pipe(Be(1)).subscribe(i=>{let e=i.find(n=>!this._skipPredicateFn(n));e&&this.focusItem(e)}):this._activeItem.expand())}_isCurrentItemExpanded(){return this._activeItem?typeof this._activeItem.isExpanded=="boolean"?this._activeItem.isExpanded:this._activeItem.isExpanded():!1}_isItemDisabled(i){return typeof i.isDisabled=="boolean"?i.isDisabled:i.isDisabled?.()}_expandAllItemsAtCurrentItemLevel(){if(!this._activeItem)return;let i=this._activeItem.getParent(),e;i?e=Jc(i.getChildren()):e=re(this._items.filter(n=>n.getParent()===null)),e.pipe(Be(1)).subscribe(n=>{for(let o of n)o.expand()})}_activateCurrentItem(){this._activeItem?.activate()}};function zQ(){return(t,i)=>new K7(t,i)}var bk=new L("tree-key-manager",{providedIn:"root",factory:zQ});var yk=" ";function q1(t,i,e){let n=Cp(t,i);e=e.trim(),!n.some(o=>o.trim()===e)&&(n.push(e),t.setAttribute(i,n.join(yk)))}function Bs(t,i,e){let n=Cp(t,i);e=e.trim();let o=n.filter(r=>r!==e);o.length?t.setAttribute(i,o.join(yk)):t.removeAttribute(i)}function Cp(t,i){return t.getAttribute(i)?.match(/\S+/g)??[]}var Ck="cdk-describedby-message",yp="cdk-describedby-host",Z7=0,Y1=(()=>{class t{_platform=d(je);_document=d(Me);_messageRegistry=new Map;_messagesContainer=null;_id=`${Z7++}`;constructor(){d(at).load(_o),this._id=d(Ds)+"-"+Z7++}describe(e,n,o){if(!this._canBeDescribed(e,n))return;let r=X7(n,o);typeof n!="string"?(vk(n,this._id),this._messageRegistry.set(r,{messageElement:n,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(n,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,n,o){if(!n||!this._isElementNode(e))return;let r=X7(n,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof n=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${yp}="${this._id}"]`);for(let n=0;no.indexOf(Ck)!=0);e.setAttribute("aria-describedby",n.join(" "))}_addMessageReference(e,n){let o=this._messageRegistry.get(n);q1(e,"aria-describedby",o.messageElement.id),e.setAttribute(yp,this._id),o.referenceCount++}_removeMessageReference(e,n){let o=this._messageRegistry.get(n);o.referenceCount--,Bs(e,"aria-describedby",o.messageElement.id),e.removeAttribute(yp)}_isElementDescribedByMessage(e,n){let o=Cp(e,"aria-describedby"),r=this._messageRegistry.get(n),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,n){if(!this._isElementNode(e))return!1;if(n&&typeof n=="object")return!0;let o=n==null?"":`${n}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function X7(t,i){return typeof t=="string"?`${i||""}/${t}`:t}function vk(t,i){t.id||(t.id=`${Ck}-${i}-${Z7++}`)}var RQ=["mat-internal-form-field",""],NQ=["*"],Q1=(()=>{class t{labelPosition;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:RQ,ngContentSelectors:NQ,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} `],encapsulation:2,changeDetection:0})}return t})();var xk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})(),xp={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};var FQ=new L("MATERIAL_ANIMATIONS");var Mk=null;function k0(){return d(FQ,{optional:!0})?.animationsDisabled||d(Td,{optional:!0})==="NoopAnimations"?"di-disabled":(Mk??=d(hp).matchMedia("(prefers-reduced-motion)").matches,Mk?"reduced-motion":"enabled")}function Ue(){return k0()!=="enabled"}var cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["structural-styles"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} `],encapsulation:2,changeDetection:0})}return t})();var Pr=(function(t){return t[t.NORMAL=0]="NORMAL",t[t.NEGATED=1]="NEGATED",t[t.INVERTED=2]="INVERTED",t})(Pr||{}),Mp,el;function wp(){if(el==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return el=!1,el;if(document.documentElement?.style&&"scrollBehavior"in document.documentElement.style)el=!0;else{let t=Element.prototype.scrollTo;t?el=!/\{\s*\[native code\]\s*\}/.test(t.toString()):el=!1}}return el}function K1(){if(typeof document!="object"||!document)return Pr.NORMAL;if(Mp==null){let t=document.createElement("div"),i=t.style;t.dir="rtl",i.width="1px",i.overflow="auto",i.visibility="hidden",i.pointerEvents="none",i.position="absolute";let e=document.createElement("div"),n=e.style;n.width="2px",n.height="1px",t.appendChild(e),document.body.appendChild(t),Mp=Pr.NORMAL,t.scrollLeft===0&&(t.scrollLeft=1,Mp=t.scrollLeft===0?Pr.NEGATED:Pr.INVERTED),t.remove()}return Mp}function J7(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}var X1,wk=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function e_(){if(X1)return X1;if(typeof document!="object"||!document)return X1=new Set(wk),X1;let t=document.createElement("input");return X1=new Set(wk.filter(i=>(t.setAttribute("type",i),t.type===i))),X1}function $n(t){return t==null?"":typeof t=="string"?t:`${t}px`}function yn(t){return t!=null&&`${t}`!="false"}function Dk(t,i=/\s+/){let e=[];if(t!=null){let n=Array.isArray(t)?t:`${t}`.split(i);for(let o of n){let r=`${o}`.trim();r&&e.push(r)}}return e}var rr=(function(t){return t[t.FADING_IN=0]="FADING_IN",t[t.VISIBLE=1]="VISIBLE",t[t.FADING_OUT=2]="FADING_OUT",t[t.HIDDEN=3]="HIDDEN",t})(rr||{}),t_=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=rr.HIDDEN;constructor(i,e,n,o=!1){this._renderer=i,this.element=e,this.config=n,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},Sk=Ns({passive:!0,capture:!0}),n_=class{_events=new Map;addHandler(i,e,n,o){let r=this._events.get(e);if(r){let a=r.get(n);a?a.add(o):r.set(n,new Set([o]))}else this._events.set(e,new Map([[n,new Set([o])]])),i.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,Sk)})}removeHandler(i,e,n){let o=this._events.get(i);if(!o)return;let r=o.get(e);r&&(r.delete(n),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(i),document.removeEventListener(i,this._delegateEventHandler,Sk)))}_delegateEventHandler=i=>{let e=jn(i);e&&this._events.get(i.type)?.forEach((n,o)=>{(o===e||o.contains(e))&&n.forEach(r=>r.handleEvent(i))})}},E0={enterDuration:225,exitDuration:150},VQ=800,kk=Ns({passive:!0,capture:!0}),Ek=["mousedown","touchstart"],Ik=["mouseup","mouseleave","touchend","touchcancel"],BQ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} -`],encapsulation:2,changeDetection:0})}return t})(),tl=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new n_;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=kn(n)),r&&r.get(at).load(BQ)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=q(q({},E0),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||jQ(i,e,o),s=i-o.left,c=e-o.top,m=r.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${c-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,n.color!=null&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${m}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),x=v.transitionProperty,M=v.transitionDuration,O=x==="none"||M==="0s"||M==="0s, 0s"||o.width===0&&o.height===0,K=new t_(this,f,n,O);f.style.transform="scale3d(1, 1, 1)",K.state=rr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=K);let Y=null;return!O&&(m||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Z=()=>{Y&&(Y.fallbackTimer=null),clearTimeout(Mt),this._finishRippleTransition(K)},Oe=()=>this._destroyRipple(K),Mt=setTimeout(Oe,m+100);f.addEventListener("transitionend",Z),f.addEventListener("transitioncancel",Oe),Y={onTransitionEnd:Z,onTransitionCancel:Oe,fallbackTimer:Mt}}),this._activeRipples.set(K,Y),(O||!m)&&this._finishRippleTransition(K),K}fadeOutRipple(i){if(i.state===rr.FADING_OUT||i.state===rr.HIDDEN)return;let e=i.element,n=q(q({},E0),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=rr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=kn(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Ek.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ik.forEach(e=>{this._triggerElement.addEventListener(e,this,kk)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===rr.FADING_IN?this._startFadeOutTransition(i):i.state===rr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=rr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=rr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=Ya(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===rr.VISIBLE||i.config.terminateOnPointerUp&&i.state===rr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(Ek.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(Ik.forEach(e=>i.removeEventListener(e,this,kk)),this._pointerUpEventsRegistered=!1))}};function jQ(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var nl=new L("mat-ripple-global-options"),mi=(()=>{class t{_elementRef=d(Q);_animationsDisabled=Ue();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=d(se),n=d(je),o=d(nl,{optional:!0}),r=d(be);this._globalOptions=o||{},this._rippleRenderer=new tl(this,e,this._elementRef,n,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:q(q(q({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,q(q({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,q(q({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})();var HQ=new L("cdk-dir-doc",{providedIn:"root",factory:UQ});function UQ(){return d(Me)}var $Q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ok(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?$Q.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var bt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=we("ltr");change=new j;constructor(){let e=d(HQ,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(Ok(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var la=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var fe=(()=>{class t{constructor(){d(_p)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[la,la]})}return t})();var GQ=["input"],WQ=["label"],qQ=["*"],YQ=new L("mat-checkbox-default-options",{providedIn:"root",factory:Pk});function Pk(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var $i=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})($i||{}),i_=class{source;checked},Tk=Pk(),il=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_ngZone=d(se);_animationsDisabled=Ue();_options=d(YQ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new i_;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new j;indeterminateChange=new j;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=$i.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){d(at).load(cn);let e=d(new dn("tabindex"),{optional:!0});this._options=this._options||Tk,this.color=this._options.color||Tk.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=d(He).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState($i.Indeterminate):this._transitionCheckState(this.checked?$i.Checked:$i.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=we(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?$i.Checked:$i.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case $i.Init:if(n===$i.Checked)return this._animationClasses.uncheckedToChecked;if(n==$i.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case $i.Unchecked:return n===$i.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case $i.Checked:return n===$i.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case $i.Indeterminate:return n===$i.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(ue(GQ,5),ue(WQ,5)),n&2){let r;U(r=$())&&(o._inputElement=r.first),U(r=$())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(Lt("id",o.id),te("tabindex",null)("aria-label",null)("aria-labelledby",null),Tt(o.color?"mat-"+o.color:"mat-accent"),oe("_mat-animation-noopable",o._animationsDisabled)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",H],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",H],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ut(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",H],checked:[2,"checked","checked",H],disabled:[2,"disabled","disabled",H],indeterminate:[2,"indeterminate","indeterminate",H]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[de([{provide:di,useExisting:kt(()=>t),multi:!0},{provide:Ci,useExisting:t,multi:!0}]),Re],ngContentSelectors:qQ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",3),N("click",function(s){return G(r),W(o._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),N("click",function(){return G(r),W(o._onTouchTargetClick())}),_(),h(4,"input",6,1),N("blur",function(){return G(r),W(o._onBlur())})("click",function(){return G(r),W(o._onInputClick())})("change",function(s){return G(r),W(o._onInteractionEvent(s))}),_(),F(6,"div",7),h(7,"div",8),$t(),h(8,"svg",9),F(9,"path",10),_(),Ko(),F(10,"div",11),_(),F(11,"div",12),_(),h(12,"label",13,2),ae(14),_()()}if(n&2){let r=Nt(2);D("labelPosition",o.labelPosition),p(4),oe("mdc-checkbox--selected",o.checked),D("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),te("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),p(7),D("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),D("for",o.inputId)}},dependencies:[mi,Q1],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),Lk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[il,fe,fe]})}return t})();var pt="primary",j0=Symbol("RouteTitle"),c_=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function al(t){return new c_(t)}function Hk(t,i,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengthn[r]===o)}else return t===i}function $k(t){return t.length>0?t[t.length-1]:null}function Xa(t){return ai(t)?t:Ha(t)?tn(Promise.resolve(t)):re(t)}var KQ={exact:Wk,subset:qk},Gk={exact:XQ,subset:ZQ,ignored:()=>!0};function zk(t,i,e){return KQ[e.paths](t.root,i.root,e.matrixParams)&&Gk[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function XQ(t,i){return da(t,i)}function Wk(t,i,e){if(!ol(t.segments,i.segments)||!kp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!Wk(t.children[n],i.children[n],e))return!1;return!0}function ZQ(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>Uk(t[e],i[e]))}function qk(t,i,e){return Yk(t,i,i.segments,e)}function Yk(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!ol(o,e)||i.hasChildren()||!kp(o,e,n))}else if(t.segments.length===e.length){if(!ol(t.segments,e)||!kp(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!qk(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!ol(t.segments,o)||!kp(t.segments,o,n)||!t.children[pt]?!1:Yk(t.children[pt],i,r,n)}}function kp(t,i,e){return i.every((n,o)=>Gk[e](t[o].parameters,n.parameters))}var ma=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Gt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=al(this.queryParams),this._queryParamMap}toString(){return tK.serialize(this)}},Gt=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ep(this)}},js=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=al(this.parameters),this._parameterMap}toString(){return Kk(this)}};function JQ(t,i){return ol(t,i)&&t.every((e,n)=>da(e.parameters,i[n].parameters))}function ol(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function eK(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===pt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==pt&&(e=e.concat(i(o,n)))}),e}var sl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new Hs,providedIn:"root"})}return t})(),Hs=class{parse(i){let e=new u_(i);return new ma(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${I0(i.root,!0)}`,n=oK(i.queryParams),o=typeof i.fragment=="string"?`#${nK(i.fragment)}`:"";return`${e}${n}${o}`}},tK=new Hs;function Ep(t){return t.segments.map(i=>Kk(i)).join("/")}function I0(t,i){if(!t.hasChildren())return Ep(t);if(i){let e=t.children[pt]?I0(t.children[pt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==pt&&n.push(`${o}:${I0(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=eK(t,(n,o)=>o===pt?[I0(t.children[pt],!1)]:[`${o}:${I0(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[pt]!=null?`${Ep(t)}/${e[0]}`:`${Ep(t)}/(${e.join("//")})`}}function Qk(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dp(t){return Qk(t).replace(/%3B/gi,";")}function nK(t){return encodeURI(t)}function d_(t){return Qk(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ip(t){return decodeURIComponent(t)}function Rk(t){return Ip(t.replace(/\+/g,"%20"))}function Kk(t){return`${d_(t.path)}${iK(t.parameters)}`}function iK(t){return Object.entries(t).map(([i,e])=>`;${d_(i)}=${d_(e)}`).join("")}function oK(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${Dp(e)}=${Dp(o)}`).join("&"):`${Dp(e)}=${Dp(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var rK=/^[^\/()?;#]+/;function o_(t){let i=t.match(rK);return i?i[0]:""}var aK=/^[^\/()?;=#]+/;function sK(t){let i=t.match(aK);return i?i[0]:""}var cK=/^[^=?&#]+/;function lK(t){let i=t.match(cK);return i?i[0]:""}var dK=/^[^&#]+/;function uK(t){let i=t.match(dK);return i?i[0]:""}var u_=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gt([],{}):new Gt([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[pt]=new Gt(i,e)),n}parseSegment(){let i=o_(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new pe(4009,!1);return this.capture(i),new js(Ip(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=sK(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=o_(this.remaining);o&&(n=o,this.capture(n))}i[Ip(e)]=Ip(n)}parseQueryParam(i){let e=lK(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=uK(this.remaining);a&&(n=a,this.capture(n))}let o=Rk(e),r=Rk(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=o_(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new pe(4010,!1);let r;n.indexOf(":")>-1?(r=n.slice(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=pt);let a=this.parseChildren();e[r??pt]=Object.keys(a).length===1&&a[pt]?a[pt]:new Gt([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new pe(4011,!1)}};function Xk(t){return t.segments.length>0?new Gt([],{[pt]:t}):t}function Zk(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=Zk(o);if(n===pt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new Gt(t.segments,i);return mK(e)}function mK(t){if(t.numberOfChildren===1&&t.children[pt]){let i=t.children[pt];return new Gt(t.segments.concat(i.segments),i.children)}return t}function Us(t){return t instanceof ma}function Jk(t,i,e=null,n=null){let o=eE(t);return tE(o,i,e,n)}function eE(t){let i;function e(r){let a={};for(let c of r.children){let m=e(c);a[c.outlet]=m}let s=new Gt(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=Xk(n);return i??o}function tE(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(i.length===0)return r_(o,o,o,e,n);let r=pK(i);if(r.toRoot())return r_(o,o,new Gt([],{}),e,n);let a=fK(r,o,t),s=a.processChildren?T0(a.segmentGroup,a.index,r.commands):iE(a.segmentGroup,a.index,r.commands);return r_(o,a.segmentGroup,s,e,n)}function Op(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function L0(t){return typeof t=="object"&&t!=null&&t.outlets}function r_(t,i,e,n,o){let r={};n&&Object.entries(n).forEach(([c,m])=>{r[c]=Array.isArray(m)?m.map(f=>`${f}`):`${m}`});let a;t===i?a=e:a=nE(t,i,e);let s=Xk(Zk(a));return new ma(s,r,o)}function nE(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=nE(r,i,e)}),new Gt(t.segments,n)}var Tp=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Op(n[0]))throw new pe(4003,!1);let o=n.find(L0);if(o&&o!==$k(n))throw new pe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function pK(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Tp(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([c,m])=>{s[c]=typeof m=="string"?m.split("/"):m}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Tp(e,i,n)}var e2=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function fK(t,i,e){if(t.isAbsolute)return new e2(i,!0,0);if(!e)return new e2(i,!1,NaN);if(e.parent===null)return new e2(e,!0,0);let n=Op(t.commands[0])?0:1,o=e.segments.length-1+n;return hK(e,o,t.numberOfDoubleDots)}function hK(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new pe(4005,!1);o=n.segments.length}return new e2(n,!1,o-r)}function gK(t){return L0(t[0])?t[0].outlets:{[pt]:t}}function iE(t,i,e){if(t??=new Gt([],{}),t.segments.length===0&&t.hasChildren())return T0(t,i,e);let n=_K(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==pt)&&t.children[pt]&&t.numberOfChildren===1&&t.children[pt].segments.length===0){let r=T0(t.children[pt],i,e);return new Gt(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=iE(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Gt(t.segments,o)}}function _K(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(L0(s))break;let c=`${s}`,m=n0&&c===void 0)break;if(c&&m&&typeof m=="object"&&m.outlets===void 0){if(!Fk(c,m,a))return r;n+=2}else{if(!Fk(c,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function m_(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=m_(new Gt([],{}),0,n))}),i}function Nk(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function Fk(t,i,e){return t==e.path&&da(i,e.parameters)}var t2="imperative",pi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(pi||{}),Ro=class{id;url;constructor(i,e){this.id=i,this.url=e}},$s=class extends Ro{type=pi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},No=class extends Ro{urlAfterRedirects;type=pi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},oo=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(oo||{}),i2=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(i2||{}),ua=class extends Ro{reason;code;type=pi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},pa=class extends Ro{reason;code;type=pi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},o2=class extends Ro{error;target;type=pi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},A0=class extends Ro{urlAfterRedirects;state;type=pi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pp=class extends Ro{urlAfterRedirects;state;type=pi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lp=class extends Ro{urlAfterRedirects;state;shouldActivate;type=pi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ap=class extends Ro{urlAfterRedirects;state;type=pi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zp=class extends Ro{urlAfterRedirects;state;type=pi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rp=class{route;type=pi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Np=class{route;type=pi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fp=class{snapshot;type=pi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vp=class{snapshot;type=pi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bp=class{snapshot;type=pi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jp=class{snapshot;type=pi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},r2=class{routerEvent;position;anchor;type=pi.Scroll;constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},z0=class{},a2=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function vK(t){return!(t instanceof z0)&&!(t instanceof a2)}function yK(t,i){return t.providers&&!t._injector&&(t._injector=v1(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Lr(t){return t.outlet||pt}function CK(t,i){let e=t.filter(n=>Lr(n)===i);return e.push(...t.filter(n=>Lr(n)!==i)),e}function l2(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Hp=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return l2(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new cl(this.rootInjector)}},cl=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Hp(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ke(Qt))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Up=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=p_(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=p_(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=f_(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return f_(i,this._root).map(e=>e.value)}};function p_(t,i){if(t===i.value)return i;for(let e of i.children){let n=p_(t,e);if(n)return n}return null}function f_(t,i){if(t===i.value)return[i];for(let e of i.children){let n=f_(t,e);if(n.length)return n.unshift(i),n}return[]}var zo=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function J1(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var R0=class extends Up{snapshot;constructor(i,e){super(i),this.snapshot=e,x_(this,i)}toString(){return this.snapshot.toString()}};function oE(t){let i=xK(t),e=new ct([new js("",{})]),n=new ct({}),o=new ct({}),r=new ct({}),a=new ct(""),s=new ro(e,n,r,a,o,pt,t,i.root);return s.snapshot=i.root,new R0(new zo(s,[]),i)}function xK(t){let i={},e={},n={},r=new rl([],i,n,"",e,pt,t,null,{});return new N0("",new zo(r,[]))}var ro=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,c){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(me(m=>m[j0]))??re(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(me(i=>al(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(me(i=>al(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function $p(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:q(q({},i.params),t.params),data:q(q({},i.data),t.data),resolve:q(q(q(q({},t.data),i.data),o?.data),t._resolvedData)}:n={params:q({},t.params),data:q({},t.data),resolve:q(q({},t.data),t._resolvedData??{})},o&&aE(o)&&(n.resolve[j0]=o.title),n}var rl=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[j0]}constructor(i,e,n,o,r,a,s,c,m){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=m}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=al(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=al(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},N0=class extends Up{url;constructor(i,e){super(e),this.url=i,x_(this,e)}toString(){return rE(this._root)}};function x_(t,i){i.value._routerState=t,i.children.forEach(e=>x_(t,e))}function rE(t){let i=t.children.length>0?` { ${t.children.map(rE).join(", ")} } `:"";return`${t.value}${i}`}function a_(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,da(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),da(i.params,e.params)||t.paramsSubject.next(e.params),QQ(i.url,e.url)||t.urlSubject.next(e.url),da(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function h_(t,i){let e=da(t.params,i.params)&&JQ(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||h_(t.parent,i.parent))}function aE(t){return typeof t.title=="string"||t.title===null}var sE=new L(""),M_=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=pt;activateEvents=new j;deactivateEvents=new j;attachEvents=new j;detachEvents=new j;routerOutletData=S1();parentContexts=d(cl);location=d(dt);changeDetector=d(xe);inputBinder=d(H0,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new pe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new pe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new pe(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new pe(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new g_(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Re]})}return t})(),g_=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===ro?this.route:i===cl?this.childContexts:i===sE?this.outletData:this.parent.get(i,e)}},H0=new L(""),w_=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=gi([n.queryParams,n.params,n.data]).pipe(lt(([r,a,s],c)=>(s=q(q(q({},r),a),s),c===0?re(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=$w(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),D_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&F(0,"router-outlet")},dependencies:[M_],encapsulation:2})}return t})();function S_(t){let i=t.children&&t.children.map(S_),e=i?Ne(q({},t),{children:i}):q({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==pt&&(e.component=D_),e}function MK(t,i,e){let n=F0(t,i._root,e?e._root:void 0);return new R0(n,i)}function F0(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=wK(t,i,e);return new zo(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>F0(t,s)),a}}let n=DK(i.value),o=i.children.map(r=>F0(t,r));return new zo(n,o)}}function wK(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return F0(t,n,o);return F0(t,n)})}function DK(t){return new ro(new ct(t.url),new ct(t.params),new ct(t.queryParams),new ct(t.fragment),new ct(t.data),t.outlet,t.component,t)}var s2=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},cE="ngNavigationCancelingError";function Gp(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Us(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=lE(!1,oo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function lE(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[cE]=!0,e.cancellationCode=i,e}function SK(t){return dE(t)&&Us(t.url)}function dE(t){return!!t&&t[cE]}var kK=(t,i,e,n)=>me(o=>(new __(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)),__=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),a_(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=J1(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=J1(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=J1(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=J1(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new jp(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Vp(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(a_(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),a_(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Wp=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},n2=class{component;route;constructor(i,e){this.component=i,this.route=e}};function EK(t,i,e){let n=t._root,o=i?i._root:null;return O0(n,o,e,[n.value])}function IK(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function d2(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!Z6(t)?t:i.get(t):n}function O0(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=J1(i);return t.children.forEach(a=>{OK(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>P0(s,e.getContext(a),o)),o}function OK(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let c=TK(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Wp(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?O0(t,i,s?s.children:null,n,o):O0(t,i,e,n,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new n2(s.outlet.component,a))}else a&&P0(i,s,o),o.canActivateChecks.push(new Wp(n)),r.component?O0(t,null,s?s.children:null,n,o):O0(t,null,e,n,o);return o}function TK(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!ol(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ol(t.url,i.url)||!da(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!h_(t,i)||!da(t.queryParams,i.queryParams);case"paramsChange":default:return!h_(t,i)}}function P0(t,i,e){let n=J1(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?P0(a,i.children.getContext(r),e):P0(a,null,e):P0(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new n2(i.outlet.component,o)):e.canDeactivateChecks.push(new n2(null,o)):e.canDeactivateChecks.push(new n2(null,o))}function U0(t){return typeof t=="function"}function PK(t){return typeof t=="boolean"}function LK(t){return t&&U0(t.canLoad)}function AK(t){return t&&U0(t.canActivate)}function zK(t){return t&&U0(t.canActivateChild)}function RK(t){return t&&U0(t.canDeactivate)}function NK(t){return t&&U0(t.canMatch)}function uE(t){return t instanceof fr||t?.name==="EmptyError"}var Sp=Symbol("INITIAL_VALUE");function c2(){return lt(t=>gi(t.map(i=>i.pipe(Be(1),We(Sp)))).pipe(me(i=>{for(let e of i)if(e!==!0){if(e===Sp)return Sp;if(e===!1||FK(e))return e}return!0}),Ae(i=>i!==Sp),Be(1)))}function FK(t){return Us(t)||t instanceof s2}function VK(t,i){return _n(e=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return a.length===0&&r.length===0?re(Ne(q({},e),{guardsResult:!0})):BK(a,n,o,t).pipe(_n(s=>s&&PK(s)?jK(n,r,t,i):re(s)),me(s=>Ne(q({},e),{guardsResult:s})))})}function BK(t,i,e,n){return tn(t).pipe(_n(o=>WK(o.component,o.route,e,i,n)),Yr(o=>o!==!0,!0))}function jK(t,i,e,n){return tn(i).pipe(Qi(o=>Li(UK(o.route.parent,n),HK(o.route,n),GK(t,o.path,e),$K(t,o.route,e))),Yr(o=>o!==!0,!0))}function HK(t,i){return t!==null&&i&&i(new Bp(t)),re(!0)}function UK(t,i){return t!==null&&i&&i(new Fp(t)),re(!0)}function $K(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return re(!0);let o=n.map(r=>Ai(()=>{let a=l2(i)??e,s=d2(r,a),c=AK(s)?s.canActivate(i,t):bi(a,()=>s(i,t));return Xa(c).pipe(Yr())}));return re(o).pipe(c2())}function GK(t,i,e){let n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(a=>IK(a)).filter(a=>a!==null).map(a=>Ai(()=>{let s=a.guards.map(c=>{let m=l2(a.node)??e,f=d2(c,m),v=zK(f)?f.canActivateChild(n,t):bi(m,()=>f(n,t));return Xa(v).pipe(Yr())});return re(s).pipe(c2())}));return re(r).pipe(c2())}function WK(t,i,e,n,o){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return re(!0);let a=r.map(s=>{let c=l2(i)??o,m=d2(s,c),f=RK(m)?m.canDeactivate(t,i,e,n):bi(c,()=>m(t,i,e,n));return Xa(f).pipe(Yr())});return re(a).pipe(c2())}function qK(t,i,e,n){let o=i.canLoad;if(o===void 0||o.length===0)return re(!0);let r=o.map(a=>{let s=d2(a,t),c=LK(s)?s.canLoad(i,e):bi(t,()=>s(i,e));return Xa(c)});return re(r).pipe(c2(),mE(n))}function mE(t){return E6(Ot(i=>{if(typeof i!="boolean")throw Gp(t,i)}),me(i=>i===!0))}function YK(t,i,e,n){let o=i.canMatch;if(!o||o.length===0)return re(!0);let r=o.map(a=>{let s=d2(a,t),c=NK(s)?s.canMatch(i,e):bi(t,()=>s(i,e));return Xa(c)});return re(r).pipe(c2(),mE(n))}var V0=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},B0=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function Z1(t){return Gr(new V0(t))}function QK(t){return Gr(new pe(4e3,!1))}function KK(t){return Gr(lE(!1,oo.GuardRejected))}var b_=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return re(n);if(o.numberOfChildren>1||!o.children[pt])return QK(`${i.redirectTo}`);o=o.children[pt]}}applyRedirectCommands(i,e,n,o,r){return XK(e,o,r).pipe(me(a=>{if(a instanceof ma)throw new B0(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new B0(s);return s}))}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new ma(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(i,c,n,o)}),new Gt(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new pe(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function XK(t,i,e){if(typeof t=="string")return re(t);let n=t,{queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,params:m,data:f,title:v}=i;return Xa(bi(e,()=>n({params:m,data:f,queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,title:v})))}var v_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ZK(t,i,e,n,o){let r=pE(t,i,e);return r.matched?(n=yK(i,n),YK(n,i,e,o).pipe(me(a=>a===!0?r:q({},v_)))):re(r)}function pE(t,i,e){if(i.path==="**")return JK(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?q({},v_):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||Hk)(e,t,i);if(!o)return q({},v_);let r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});let a=o.consumed.length>0?q(q({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function JK(t){return{matched:!0,parameters:t.length>0?$k(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Vk(t,i,e,n){return e.length>0&&nX(t,e,n)?{segmentGroup:new Gt(i,tX(n,new Gt(e,t.children))),slicedSegments:[]}:e.length===0&&iX(t,e,n)?{segmentGroup:new Gt(t.segments,eX(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Gt(t.segments,t.children),slicedSegments:e}}function eX(t,i,e,n){let o={};for(let r of e)if(Yp(t,i,r)&&!n[Lr(r)]){let a=new Gt([],{});o[Lr(r)]=a}return q(q({},n),o)}function tX(t,i){let e={};e[pt]=i;for(let n of t)if(n.path===""&&Lr(n)!==pt){let o=new Gt([],{});e[Lr(n)]=o}return e}function nX(t,i,e){return e.some(n=>Yp(t,i,n)&&Lr(n)!==pt)}function iX(t,i,e){return e.some(n=>Yp(t,i,n))}function Yp(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function oX(t,i,e){return i.length===0&&!t.children[e]}var y_=class{};function rX(t,i,e,n,o,r,a="emptyOnly"){return new C_(t,i,e,n,o,a,r).recognize()}var aX=31,C_=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new b_(this.urlSerializer,this.urlTree)}noMatchError(i){return new pe(4002,`'${i.segmentGroup}'`)}recognize(){let i=Vk(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(me(({children:e,rootSnapshot:n})=>{let o=new zo(n,e),r=new N0("",o),a=Jk(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}}))}match(i){let e=new rl([],Object.freeze({}),Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),pt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,pt,e).pipe(me(n=>({children:n,rootSnapshot:e})),Mo(n=>{if(n instanceof B0)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof V0?this.noMatchError(n):n}))}processSegmentGroup(i,e,n,o,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,e,n,r):this.processSegment(i,e,n,n.segments,o,!0,r).pipe(me(a=>a instanceof zo?[a]:[]))}processChildren(i,e,n,o){let r=[];for(let a of Object.keys(n.children))a==="primary"?r.unshift(a):r.push(a);return tn(r).pipe(Qi(a=>{let s=n.children[a],c=CK(e,a);return this.processSegmentGroup(i,c,s,a,o)}),N6((a,s)=>(a.push(...s),a)),fs(null),R6(),_n(a=>{if(a===null)return Z1(n);let s=fE(a);return sX(s),re(s)}))}processSegment(i,e,n,o,r,a,s){return tn(e).pipe(Qi(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,n,o,r,a,s).pipe(Mo(m=>{if(m instanceof V0)return re(null);throw m}))),Yr(c=>!!c),Mo(c=>{if(uE(c))return oX(n,o,r)?re(new y_):Z1(n);throw c}))}processSegmentAgainstRoute(i,e,n,o,r,a,s,c){return Lr(n)!==a&&(a===pt||!Yp(o,r,n))?Z1(o):n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,o,n,r,a,c):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,c):Z1(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){let{matched:c,parameters:m,consumedSegments:f,positionalParamSegments:v,remainingSegments:x}=pE(e,o,r);if(!c)return Z1(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aX&&(this.allowRedirects=!1));let M=new rl(r,m,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Bk(o),Lr(o),o.component??o._loadedComponent??null,o,jk(o)),O=$p(M,s,this.paramsInheritanceStrategy);return M.params=Object.freeze(O.params),M.data=Object.freeze(O.data),this.applyRedirects.applyRedirectCommands(f,o.redirectTo,v,M,i).pipe(lt(Y=>this.applyRedirects.lineralizeSegments(o,Y)),_n(Y=>this.processSegment(i,n,e,Y.concat(x),a,!1,s)))}matchSegmentAgainstRoute(i,e,n,o,r,a){let s=ZK(e,n,o,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(lt(c=>c.matched?(i=n._injector??i,this.getChildConfig(i,n,o).pipe(lt(({routes:m})=>{let f=n._loadedInjector??i,{parameters:v,consumedSegments:x,remainingSegments:M}=c,O=new rl(x,v,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Bk(n),Lr(n),n.component??n._loadedComponent??null,n,jk(n)),K=$p(O,a,this.paramsInheritanceStrategy);O.params=Object.freeze(K.params),O.data=Object.freeze(K.data);let{segmentGroup:Y,slicedSegments:Z}=Vk(e,x,M,m);if(Z.length===0&&Y.hasChildren())return this.processChildren(f,m,Y,O).pipe(me(Mt=>new zo(O,Mt)));if(m.length===0&&Z.length===0)return re(new zo(O,[]));let Oe=Lr(n)===r;return this.processSegment(f,m,Y,Z,Oe?pt:r,!0,O).pipe(me(Mt=>new zo(O,Mt instanceof zo?[Mt]:[])))}))):Z1(e)))}getChildConfig(i,e,n){return e.children?re({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?re({routes:e._loadedRoutes,injector:e._loadedInjector}):qK(i,e,n,this.urlSerializer).pipe(_n(o=>o?this.configLoader.loadChildren(i,e).pipe(Ot(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):KK(e))):re({routes:[],injector:i})}};function sX(t){t.sort((i,e)=>i.value.outlet===pt?-1:e.value.outlet===pt?1:i.value.outlet.localeCompare(e.value.outlet))}function cX(t){let i=t.value.routeConfig;return i&&i.path===""}function fE(t){let i=[],e=new Set;for(let n of t){if(!cX(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=fE(n.children);i.push(new zo(n.value,o))}return i.filter(n=>!e.has(n))}function Bk(t){return t.data||{}}function jk(t){return t.resolve||{}}function lX(t,i,e,n,o,r){return _n(a=>rX(t,i,e,n,a.extractedUrl,o,r).pipe(me(({state:s,tree:c})=>Ne(q({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function dX(t,i){return _n(e=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return re(e);let r=new Set(o.map(c=>c.route)),a=new Set;for(let c of r)if(!a.has(c))for(let m of hE(c))a.add(m);let s=0;return tn(a).pipe(Qi(c=>r.has(c)?uX(c,n,t,i):(c.data=$p(c,c.parent,t).resolve,re(void 0))),Ot(()=>s++),ql(1),_n(c=>s===a.size?re(e):Sn))})}function hE(t){let i=t.children.map(e=>hE(e)).flat();return[t,...i]}function uX(t,i,e,n){let o=t.routeConfig,r=t._resolve;return o?.title!==void 0&&!aE(o)&&(r[j0]=o.title),Ai(()=>(t.data=$p(t,t.parent,e).resolve,mX(r,t,i,n).pipe(me(a=>(t._resolvedData=a,t.data=q(q({},t.data),a),null)))))}function mX(t,i,e,n){let o=l_(t);if(o.length===0)return re({});let r={};return tn(o).pipe(_n(a=>pX(t[a],i,e,n).pipe(Yr(),Ot(s=>{if(s instanceof s2)throw Gp(new Hs,s);r[a]=s}))),ql(1),me(()=>r),Mo(a=>uE(a)?Sn:Gr(a)))}function pX(t,i,e,n){let o=l2(i)??n,r=d2(t,o),a=r.resolve?r.resolve(i,e):bi(o,()=>r(i,e));return Xa(a)}function s_(t){return lt(i=>{let e=t(i);return e?tn(e).pipe(me(()=>i)):re(i)})}var k_=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===pt);return n}getResolvedTitleForRoute(e){return e.data[j0]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(gE),providedIn:"root"})}return t})(),gE=(()=>{class t extends k_{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(ke(YD))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gs=new L("",{providedIn:"root",factory:()=>({})}),u2=new L(""),Qp=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(E5);loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return re(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Xa(bi(e,()=>n.loadComponent())).pipe(me(bE),lt(vE),Ot(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),qr(()=>{this.componentLoaders.delete(n)})),r=new ps(o,()=>new B).pipe(Nl());return this.componentLoaders.set(n,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return re({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let r=_E(n,this.compiler,e,this.onLoadEndListener).pipe(qr(()=>{this.childrenLoaders.delete(n)})),a=new ps(r,()=>new B).pipe(Nl());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _E(t,i,e,n){return Xa(bi(e,()=>t.loadChildren())).pipe(me(bE),lt(vE),_n(o=>o instanceof X4||Array.isArray(o)?re(o):tn(i.compileModuleAsync(o))),me(o=>{n&&n(t);let r,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(r=o.create(e).injector,a=r.get(u2,[],{optional:!0,self:!0}).flat()),{routes:a.map(S_),injector:r}}))}function fX(t){return t&&typeof t=="object"&&"default"in t}function bE(t){return fX(t)?t.default:t}function vE(t){return re(t)}var Kp=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(hX),providedIn:"root"})}return t})(),hX=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),E_=new L(""),I_=new L("");function yE(t,i,e){let n=t.get(I_),o=t.get(Me);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(m=>setTimeout(m));let r,a=new Promise(m=>{r=m}),s=o.startViewTransition(()=>(r(),gX(t)));s.ready.catch(m=>{});let{onViewTransitionCreated:c}=n;return c&&bi(t,()=>c({transition:s,from:i,to:e})),a}function gX(t){return new Promise(i=>{Ct({read:()=>setTimeout(i)},{injector:t})})}var O_=new L(""),Xp=(()=>{class t{currentNavigation=we(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new B;transitionAbortWithErrorSubject=new B;configLoader=d(Qp);environmentInjector=d(Qt);destroyRef=d(Fi);urlSerializer=d(sl);rootContexts=d(cl);location=d(Jo);inputBindingEnabled=d(H0,{optional:!0})!==null;titleStrategy=d(k_);options=d(Gs,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Kp);createViewTransition=d(E_,{optional:!0});navigationErrorHandler=d(O_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>re(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Rp(o)),n=o=>this.events.next(new Np(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;Vn(()=>{this.transitions?.next(Ne(q({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:n}))})}setupNavigations(e){return this.transitions=new ct(null),this.transitions.pipe(Ae(n=>n!==null),lt(n=>{let o=!1;return re(n).pipe(lt(r=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",oo.SupersededByNewNavigation),Sn;this.currentTransition=n,this.currentNavigation.set({id:r.id,initialUrl:r.rawUrl,extractedUrl:r.extractedUrl,targetBrowserUrl:typeof r.extras.browserUrl=="string"?this.urlSerializer.parse(r.extras.browserUrl):r.extras.browserUrl,trigger:r.source,extras:r.extras,previousNavigation:this.lastSuccessfulNavigation?Ne(q({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>r.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=r.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new pa(r.id,this.urlSerializer.serialize(r.rawUrl),"",i2.IgnoredSameUrlNavigation)),r.resolve(!1),Sn;if(this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return re(r).pipe(lt(c=>(this.events.next(new $s(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Sn:Promise.resolve(c))),lX(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ot(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=c.urlAfterRedirects,f));let m=new A0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(m)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(r.currentRawUrl)){let{id:c,extractedUrl:m,source:f,restoredState:v,extras:x}=r,M=new $s(c,this.urlSerializer.serialize(m),f,v);this.events.next(M);let O=oE(this.rootComponentType).snapshot;return this.currentTransition=n=Ne(q({},r),{targetSnapshot:O,urlAfterRedirects:m,extras:Ne(q({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(K=>(K.finalUrl=m,K)),re(n)}else return this.events.next(new pa(r.id,this.urlSerializer.serialize(r.extractedUrl),"",i2.IgnoredByUrlHandlingStrategy)),r.resolve(!1),Sn}),Ot(r=>{let a=new Pp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(a)}),me(r=>(this.currentTransition=n=Ne(q({},r),{guards:EK(r.targetSnapshot,r.currentSnapshot,this.rootContexts)}),n)),VK(this.environmentInjector,r=>this.events.next(r)),Ot(r=>{if(n.guardsResult=r.guardsResult,r.guardsResult&&typeof r.guardsResult!="boolean")throw Gp(this.urlSerializer,r.guardsResult);let a=new Lp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot,!!r.guardsResult);this.events.next(a)}),Ae(r=>r.guardsResult?!0:(this.cancelNavigationTransition(r,"",oo.GuardRejected),!1)),s_(r=>{if(r.guards.canActivateChecks.length!==0)return re(r).pipe(Ot(a=>{let s=new Ap(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),lt(a=>{let s=!1;return re(a).pipe(dX(this.paramsInheritanceStrategy,this.environmentInjector),Ot({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",oo.NoDataFromResolver)}}))}),Ot(a=>{let s=new zp(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),s_(r=>{let a=s=>{let c=[];if(s.routeConfig?.loadComponent){let m=l2(s)??this.environmentInjector;c.push(this.configLoader.loadComponent(m,s.routeConfig).pipe(Ot(f=>{s.component=f}),me(()=>{})))}for(let m of s.children)c.push(...a(m));return c};return gi(a(r.targetSnapshot.root)).pipe(fs(null),Be(1))}),s_(()=>this.afterPreactivation()),lt(()=>{let{currentSnapshot:r,targetSnapshot:a}=n,s=this.createViewTransition?.(this.environmentInjector,r.root,a.root);return s?tn(s).pipe(me(()=>n)):re(n)}),me(r=>{let a=MK(e.routeReuseStrategy,r.targetSnapshot,r.currentRouterState);return this.currentTransition=n=Ne(q({},r),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),n}),Ot(()=>{this.events.next(new z0)}),kK(this.rootContexts,e.routeReuseStrategy,r=>this.events.next(r),this.inputBindingEnabled),Be(1),ye(new Fe(r=>{let a=n.abortController.signal,s=()=>r.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(Ae(()=>!o&&!n.targetRouterState),Ot(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",oo.Aborted)}))),Ot({next:r=>{o=!0,this.lastSuccessfulNavigation=Vn(this.currentNavigation),this.events.next(new No(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects))),this.titleStrategy?.updateTitle(r.targetRouterState.snapshot),r.resolve(!0)},complete:()=>{o=!0}}),ye(this.transitionAbortWithErrorSubject.pipe(Ot(r=>{throw r}))),qr(()=>{o||this.cancelNavigationTransition(n,"",oo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Mo(r=>{if(this.destroyed)return n.resolve(!1),Sn;if(o=!0,dE(r))this.events.next(new ua(n.id,this.urlSerializer.serialize(n.extractedUrl),r.message,r.cancellationCode)),SK(r)?this.events.next(new a2(r.url,r.navigationBehaviorOptions)):n.resolve(!1);else{let a=new o2(n.id,this.urlSerializer.serialize(n.extractedUrl),r,n.targetSnapshot??void 0);try{let s=bi(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof s2){let{message:c,cancellationCode:m}=Gp(this.urlSerializer,s);this.events.next(new ua(n.id,this.urlSerializer.serialize(n.extractedUrl),c,m)),this.events.next(new a2(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),r}catch(s){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(s)}}return Sn}))}))}cancelNavigationTransition(e,n,o){let r=new ua(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=Vn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _X(t){return t!==t2}var CE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(bX),providedIn:"root"})}return t})(),qp=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},bX=(()=>{class t extends qp{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xE=(()=>{class t{urlSerializer=d(sl);options=d(Gs,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(Jo);urlHandlingStrategy=d(Kp);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ma;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof ma?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=oE(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(vX),providedIn:"root"})}return t})(),vX=(()=>{class t extends xE{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof $s?this.updateStateMemento():e instanceof pa?this.commitTransition(n):e instanceof A0?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof z0?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof ua&&e.code!==oo.SupersededByNewNavigation&&e.code!==oo.Redirect?this.restoreHistory(n):e instanceof o2?this.restoreHistory(n,!0):e instanceof No&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:o}){let{replaceUrl:r,state:a}=n;if(this.location.isCurrentPathEqualTo(e)||r){let s=this.browserPageId,c=q(q({},a),this.generateNgRouterState(o,s));this.location.replaceState(e,"",c)}else{let s=q(q({},a),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zp(t,i){t.events.pipe(Ae(e=>e instanceof No||e instanceof ua||e instanceof o2||e instanceof pa),me(e=>e instanceof No||e instanceof pa?0:(e instanceof ua?e.code===oo.Redirect||e.code===oo.SupersededByNewNavigation:!1)?2:1),Ae(e=>e!==2),Be(1)).subscribe(()=>{i()})}var yX={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},CX={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bo=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Z4);stateManager=d(xE);options=d(Gs,{optional:!0})||{};pendingTasks=d(ta);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Xp);urlSerializer=d(sl);location=d(Jo);urlHandlingStrategy=d(Kp);injector=d(Qt);_events=new B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(CE);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(u2,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(H0,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Se;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=Vn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof ua&&n.code!==oo.Redirect&&n.code!==oo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof No)this.navigated=!0;else if(n instanceof a2){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),c=q({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_X(o.source)},a);this.scheduleNavigation(s,t2,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}vK(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),t2,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o)=>{this.navigateToSyncWithBrowser(e,o,n)})}navigateToSyncWithBrowser(e,n,o){let r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=q({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let s=this.parseUrl(e);this.scheduleNavigation(s,n,a,r).catch(c=>{this.disposed||this.injector.get(Zi)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Vn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(S_),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:c}=n,m=c?this.currentUrlTree.fragment:a,f=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":f=q(q({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}f!==null&&(f=this.removeEmptyProps(f));let v;try{let x=o?o.snapshot:this.routerState.snapshot.root;v=eE(x)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root}return tE(v,e,f,m??null)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Us(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,t2,null,n)}navigate(e,n={skipLocationChange:!1}){return xX(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn($o(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=q({},yX):n===!1?o=q({},CX):o=n,Us(e))return zk(this.currentUrlTree,e,o);let r=this.parseUrl(e);return zk(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,c,m;a?(s=a.resolve,c=a.reject,m=a.promise):m=new Promise((v,x)=>{s=v,c=x});let f=this.pendingTasks.add();return Zp(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(v=>Promise.reject(v))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xX(t){for(let i=0;i{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=we(null);get href(){return Vn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new B;applicationErrorHandler=d(Zi);options=d(Gs,{optional:!0});constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.reactiveHref.set(d(new dn("href"),{optional:!0}));let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,n=o=>o==="merge"||o==="preserve";e||=n(this.queryParamsHandling),e||=!this.queryParamsHandling&&!n(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(o=>{o instanceof No&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Us(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c)?.catch(m=>{this.applicationErrorHandler(m)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}get urlTree(){return this.routerLinkInput===null?null:Us(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(Ce(bo),Ce(ro),Od("tabindex"),Ce(Ke),Ce(Q),Ce(Sr))};static \u0275dir=z({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&N("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&te("href",o.reactiveHref(),W8)("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",H],skipLocationChange:[2,"skipLocationChange","skipLocationChange",H],replaceUrl:[2,"replaceUrl","replaceUrl",H],routerLink:"routerLink"},features:[Re]})}return t})(),MX=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new j;constructor(e,n,o,r,a){this.router=e,this.element=n,this.renderer=o,this.cdr=r,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof No&&this.update()})}ngAfterContentInit(){re(this.links.changes,re(null)).pipe(Wr()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=tn(e).pipe(Wr()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=wX(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let r=o.urlTree;return r?e.isActive(r,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(Ce(bo),Ce(Q),Ce(Ke),Ce(xe),Ce(m2,8))};static \u0275dir=z({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,r){if(n&1&&Ee(r,m2,5),n&2){let a;U(a=$())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Re]})}return t})();function wX(t){return!!t.paths}var $0=class{};var ME=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(Ae(e=>e instanceof No),Qi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=v1(r.providers,e,`Route: ${r.path}`));let a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return tn(o).pipe(Wr())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(e,n):o=re(null);let r=o.pipe(_n(a=>a===null?re(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return tn([r,a]).pipe(Wr())}else return r})}static \u0275fac=function(n){return new(n||t)(ke(bo),ke(Qt),ke($0),ke(Qp))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wE=new L(""),DX=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=t2;restoredId=0;store={};constructor(e,n,o,r,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=r,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof $s?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof No?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof pa&&e.code===i2.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof r2))return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>Hr(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new r2(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Hc()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function SX(t){return t.routerState.root}function G0(t,i){return{\u0275kind:t,\u0275providers:i}}function kX(){let t=d(be);return i=>{let e=t.get(li);if(i!==e.components[0])return;let n=t.get(bo),o=t.get(DE);t.get(P_)===1&&n.initialNavigation(),t.get(EE,null,{optional:!0})?.setUpPreloading(),t.get(wE,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var DE=new L("",{factory:()=>new B}),P_=new L("",{providedIn:"root",factory:()=>1});function SE(){let t=[{provide:N4,useValue:!0},{provide:P_,useValue:0},tm(()=>{let i=d(be);return i.get(G5,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(bo),r=i.get(DE);Zp(o,()=>{n(!0)}),i.get(Xp).afterPreactivation=()=>(n(!0),r.closed?re(void 0):r),o.initialNavigation()}))})];return G0(2,t)}function kE(){let t=[tm(()=>{d(bo).setUpLocationChangeListener()}),{provide:P_,useValue:2}];return G0(3,t)}var EE=new L("");function IE(t){return G0(0,[{provide:EE,useExisting:ME},{provide:$0,useExisting:t}])}function OE(){return G0(8,[w_,{provide:H0,useExisting:w_}])}function TE(t){aa("NgRouterViewTransitions");let i=[{provide:E_,useValue:yE},{provide:I_,useValue:q({skipNextTransition:!!t?.skipInitialTransition},t)}];return G0(9,i)}var PE=[Jo,{provide:sl,useClass:Hs},bo,cl,{provide:ro,useFactory:SX,deps:[bo]},Qp,[]],EX=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[PE,[],{provide:u2,multi:!0,useValue:e},[],n?.errorHandler?{provide:O_,useValue:n.errorHandler}:[],{provide:Gs,useValue:n||{}},n?.useHash?OX():TX(),IX(),n?.preloadingStrategy?IE(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?PX(n):[],n?.bindToComponentInputs?OE().\u0275providers:[],n?.enableViewTransitions?TE().\u0275providers:[],LX()]}}static forChild(e){return{ngModule:t,providers:[{provide:u2,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function IX(){return{provide:wE,useFactory:()=>{let t=d(SD),i=d(se),e=d(Gs),n=d(Xp),o=d(sl);return e.scrollOffset&&t.setOffset(e.scrollOffset),new DX(o,n,t,i,e)}}}function OX(){return{provide:Sr,useClass:t7}}function TX(){return{provide:Sr,useClass:vm}}function PX(t){return[t.initialNavigation==="disabled"?kE().\u0275providers:[],t.initialNavigation==="enabledBlocking"?SE().\u0275providers:[]]}var T_=new L("");function LX(){return[{provide:T_,useFactory:kX},{provide:nm,multi:!0,useExisting:T_}]}var zX=["*"],RX=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],NX=[`mat-card-title, mat-card-subtitle, +`],encapsulation:2,changeDetection:0})}return t})(),tl=class t{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new n_;constructor(i,e,n,o,r){this._target=i,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=kn(n)),r&&r.get(at).load(BQ)}fadeInRipple(i,e,n={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=q(q({},E0),n.animation);n.centered&&(i=o.left+o.width/2,e=o.top+o.height/2);let a=n.radius||jQ(i,e,o),s=i-o.left,c=e-o.top,m=r.enterDuration,f=document.createElement("div");f.classList.add("mat-ripple-element"),f.style.left=`${s-a}px`,f.style.top=`${c-a}px`,f.style.height=`${a*2}px`,f.style.width=`${a*2}px`,n.color!=null&&(f.style.backgroundColor=n.color),f.style.transitionDuration=`${m}ms`,this._containerElement.appendChild(f);let v=window.getComputedStyle(f),x=v.transitionProperty,w=v.transitionDuration,O=x==="none"||w==="0s"||w==="0s, 0s"||o.width===0&&o.height===0,K=new t_(this,f,n,O);f.style.transform="scale3d(1, 1, 1)",K.state=rr.FADING_IN,n.persistent||(this._mostRecentTransientRipple=K);let Y=null;return!O&&(m||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Z=()=>{Y&&(Y.fallbackTimer=null),clearTimeout(Mt),this._finishRippleTransition(K)},Oe=()=>this._destroyRipple(K),Mt=setTimeout(Oe,m+100);f.addEventListener("transitionend",Z),f.addEventListener("transitioncancel",Oe),Y={onTransitionEnd:Z,onTransitionCancel:Oe,fallbackTimer:Mt}}),this._activeRipples.set(K,Y),(O||!m)&&this._finishRippleTransition(K),K}fadeOutRipple(i){if(i.state===rr.FADING_OUT||i.state===rr.HIDDEN)return;let e=i.element,n=q(q({},E0),i.config.animation);e.style.transitionDuration=`${n.exitDuration}ms`,e.style.opacity="0",i.state=rr.FADING_OUT,(i._animationForciblyDisabledThroughCss||!n.exitDuration)&&this._finishRippleTransition(i)}fadeOutAll(){this._getActiveRipples().forEach(i=>i.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(i=>{i.config.persistent||i.fadeOut()})}setupTriggerEvents(i){let e=kn(i);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,Ek.forEach(n=>{t._eventManager.addHandler(this._ngZone,n,e,this)}))}handleEvent(i){i.type==="mousedown"?this._onMousedown(i):i.type==="touchstart"?this._onTouchStart(i):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{Ik.forEach(e=>{this._triggerElement.addEventListener(e,this,kk)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(i){i.state===rr.FADING_IN?this._startFadeOutTransition(i):i.state===rr.FADING_OUT&&this._destroyRipple(i)}_startFadeOutTransition(i){let e=i===this._mostRecentTransientRipple,{persistent:n}=i.config;i.state=rr.VISIBLE,!n&&(!e||!this._isPointerDown)&&i.fadeOut()}_destroyRipple(i){let e=this._activeRipples.get(i)??null;this._activeRipples.delete(i),this._activeRipples.size||(this._containerRect=null),i===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),i.state=rr.HIDDEN,e!==null&&(i.element.removeEventListener("transitionend",e.onTransitionEnd),i.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),i.element.remove()}_onMousedown(i){let e=Ya(i),n=this._lastTouchStartEvent&&Date.now(){let e=i.state===rr.VISIBLE||i.config.terminateOnPointerUp&&i.state===rr.FADING_IN;!i.config.persistent&&e&&i.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let i=this._triggerElement;i&&(Ek.forEach(e=>t._eventManager.removeHandler(e,i,this)),this._pointerUpEventsRegistered&&(Ik.forEach(e=>i.removeEventListener(e,this,kk)),this._pointerUpEventsRegistered=!1))}};function jQ(t,i,e){let n=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(i-e.top),Math.abs(i-e.bottom));return Math.sqrt(n*n+o*o)}var nl=new L("mat-ripple-global-options"),mi=(()=>{class t{_elementRef=d(Q);_animationsDisabled=Ue();color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=d(se),n=d(je),o=d(nl,{optional:!0}),r=d(be);this._globalOptions=o||{},this._rippleRenderer=new tl(this,e,this._elementRef,n,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:q(q(q({},this._globalOptions.animation),this._animationsDisabled?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,n=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,n,q(q({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,q(q({},this.rippleConfig),e))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return t})();var HQ=new L("cdk-dir-doc",{providedIn:"root",factory:UQ});function UQ(){return d(Me)}var $Q=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function Ok(t){let i=t?.toLowerCase()||"";return i==="auto"&&typeof navigator<"u"&&navigator?.language?$Q.test(navigator.language)?"rtl":"ltr":i==="rtl"?"rtl":"ltr"}var bt=(()=>{class t{get value(){return this.valueSignal()}valueSignal=we("ltr");change=new j;constructor(){let e=d(HQ,{optional:!0});if(e){let n=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.valueSignal.set(Ok(n||o||"ltr"))}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var la=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var fe=(()=>{class t{constructor(){d(_p)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[la,la]})}return t})();var GQ=["input"],WQ=["label"],qQ=["*"],YQ=new L("mat-checkbox-default-options",{providedIn:"root",factory:Pk});function Pk(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var $i=(function(t){return t[t.Init=0]="Init",t[t.Checked=1]="Checked",t[t.Unchecked=2]="Unchecked",t[t.Indeterminate=3]="Indeterminate",t})($i||{}),i_=class{source;checked},Tk=Pk(),il=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_ngZone=d(se);_animationsDisabled=Ue();_options=d(YQ,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let n=new i_;return n.source=this,n.checked=e,n}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new j;indeterminateChange=new j;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=$i.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){d(at).load(cn);let e=d(new dn("tabindex"),{optional:!0});this._options=this._options||Tk,this.color=this._options.color||Tk.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=d(He).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this.indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate()}set indeterminate(e){let n=e!=this._indeterminate();this._indeterminate.set(e),n&&(e?this._transitionCheckState($i.Indeterminate):this._transitionCheckState(this.checked?$i.Checked:$i.Unchecked),this.indeterminateChange.emit(e)),this._syncIndeterminate(e)}_indeterminate=we(!1);_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let n=this._currentCheckState,o=this._getAnimationTargetElement();if(!(n===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(n,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate.set(!1),this.indeterminateChange.emit(!1)}),this._checked=!this._checked,this._transitionCheckState(this._checked?$i.Checked:$i.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,n){if(this._animationsDisabled)return"";switch(e){case $i.Init:if(n===$i.Checked)return this._animationClasses.uncheckedToChecked;if(n==$i.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case $i.Unchecked:return n===$i.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case $i.Checked:return n===$i.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case $i.Indeterminate:return n===$i.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let n=this._inputElement;n&&(n.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-checkbox"]],viewQuery:function(n,o){if(n&1&&(ue(GQ,5),ue(WQ,5)),n&2){let r;U(r=$())&&(o._inputElement=r.first),U(r=$())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(n,o){n&2&&(Lt("id",o.id),ne("tabindex",null)("aria-label",null)("aria-labelledby",null),Tt(o.color?"mat-"+o.color:"mat-accent"),oe("_mat-animation-noopable",o._animationsDisabled)("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",H],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",H],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:ut(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",H],checked:[2,"checked","checked",H],disabled:[2,"disabled","disabled",H],indeterminate:[2,"indeterminate","indeterminate",H]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[de([{provide:di,useExisting:kt(()=>t),multi:!0},{provide:Ci,useExisting:t,multi:!0}]),Re],ngContentSelectors:qQ,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",3),N("click",function(s){return G(r),W(o._preventBubblingFromLabel(s))}),h(1,"div",4,0)(3,"div",5),N("click",function(){return G(r),W(o._onTouchTargetClick())}),_(),h(4,"input",6,1),N("blur",function(){return G(r),W(o._onBlur())})("click",function(){return G(r),W(o._onInputClick())})("change",function(s){return G(r),W(o._onInteractionEvent(s))}),_(),F(6,"div",7),h(7,"div",8),$t(),h(8,"svg",9),F(9,"path",10),_(),Ko(),F(10,"div",11),_(),F(11,"div",12),_(),h(12,"label",13,2),ae(14),_()()}if(n&2){let r=Nt(2);D("labelPosition",o.labelPosition),p(4),oe("mdc-checkbox--selected",o.checked),D("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),ne("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),p(7),D("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),D("for",o.inputId)}},dependencies:[mi,Q1],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mat-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mat-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mat-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mat-checkbox-state-layer-size, 40px);height:var(--mat-checkbox-state-layer-size, 40px);top:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);right:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - var(--mat-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mat-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mat-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}@media(forced-colors: active){.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mat-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mat-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mat-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:GrayText}}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mat-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:GrayText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mat-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mat-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:GrayText}}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{color:GrayText}}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-checkbox-touch-target-size, 48px);width:var(--mat-checkbox-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),Lk=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[il,fe,fe]})}return t})();var pt="primary",j0=Symbol("RouteTitle"),c_=class{params;constructor(i){this.params=i||{}}has(i){return Object.prototype.hasOwnProperty.call(this.params,i)}get(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e[0]:e}return null}getAll(i){if(this.has(i)){let e=this.params[i];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function al(t){return new c_(t)}function Hk(t,i,e){let n=e.path.split("/");if(n.length>t.length||e.pathMatch==="full"&&(i.hasChildren()||n.lengthn[r]===o)}else return t===i}function $k(t){return t.length>0?t[t.length-1]:null}function Xa(t){return ai(t)?t:Ha(t)?tn(Promise.resolve(t)):re(t)}var KQ={exact:Wk,subset:qk},Gk={exact:XQ,subset:ZQ,ignored:()=>!0};function zk(t,i,e){return KQ[e.paths](t.root,i.root,e.matrixParams)&&Gk[e.queryParams](t.queryParams,i.queryParams)&&!(e.fragment==="exact"&&t.fragment!==i.fragment)}function XQ(t,i){return da(t,i)}function Wk(t,i,e){if(!ol(t.segments,i.segments)||!kp(t.segments,i.segments,e)||t.numberOfChildren!==i.numberOfChildren)return!1;for(let n in i.children)if(!t.children[n]||!Wk(t.children[n],i.children[n],e))return!1;return!0}function ZQ(t,i){return Object.keys(i).length<=Object.keys(t).length&&Object.keys(i).every(e=>Uk(t[e],i[e]))}function qk(t,i,e){return Yk(t,i,i.segments,e)}function Yk(t,i,e,n){if(t.segments.length>e.length){let o=t.segments.slice(0,e.length);return!(!ol(o,e)||i.hasChildren()||!kp(o,e,n))}else if(t.segments.length===e.length){if(!ol(t.segments,e)||!kp(t.segments,e,n))return!1;for(let o in i.children)if(!t.children[o]||!qk(t.children[o],i.children[o],n))return!1;return!0}else{let o=e.slice(0,t.segments.length),r=e.slice(t.segments.length);return!ol(t.segments,o)||!kp(t.segments,o,n)||!t.children[pt]?!1:Yk(t.children[pt],i,r,n)}}function kp(t,i,e){return i.every((n,o)=>Gk[e](t[o].parameters,n.parameters))}var ma=class{root;queryParams;fragment;_queryParamMap;constructor(i=new Gt([],{}),e={},n=null){this.root=i,this.queryParams=e,this.fragment=n}get queryParamMap(){return this._queryParamMap??=al(this.queryParams),this._queryParamMap}toString(){return tK.serialize(this)}},Gt=class{segments;children;parent=null;constructor(i,e){this.segments=i,this.children=e,Object.values(e).forEach(n=>n.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ep(this)}},js=class{path;parameters;_parameterMap;constructor(i,e){this.path=i,this.parameters=e}get parameterMap(){return this._parameterMap??=al(this.parameters),this._parameterMap}toString(){return Kk(this)}};function JQ(t,i){return ol(t,i)&&t.every((e,n)=>da(e.parameters,i[n].parameters))}function ol(t,i){return t.length!==i.length?!1:t.every((e,n)=>e.path===i[n].path)}function eK(t,i){let e=[];return Object.entries(t.children).forEach(([n,o])=>{n===pt&&(e=e.concat(i(o,n)))}),Object.entries(t.children).forEach(([n,o])=>{n!==pt&&(e=e.concat(i(o,n)))}),e}var sl=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>new Hs,providedIn:"root"})}return t})(),Hs=class{parse(i){let e=new u_(i);return new ma(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(i){let e=`/${I0(i.root,!0)}`,n=oK(i.queryParams),o=typeof i.fragment=="string"?`#${nK(i.fragment)}`:"";return`${e}${n}${o}`}},tK=new Hs;function Ep(t){return t.segments.map(i=>Kk(i)).join("/")}function I0(t,i){if(!t.hasChildren())return Ep(t);if(i){let e=t.children[pt]?I0(t.children[pt],!1):"",n=[];return Object.entries(t.children).forEach(([o,r])=>{o!==pt&&n.push(`${o}:${I0(r,!1)}`)}),n.length>0?`${e}(${n.join("//")})`:e}else{let e=eK(t,(n,o)=>o===pt?[I0(t.children[pt],!1)]:[`${o}:${I0(n,!1)}`]);return Object.keys(t.children).length===1&&t.children[pt]!=null?`${Ep(t)}/${e[0]}`:`${Ep(t)}/(${e.join("//")})`}}function Qk(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Dp(t){return Qk(t).replace(/%3B/gi,";")}function nK(t){return encodeURI(t)}function d_(t){return Qk(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ip(t){return decodeURIComponent(t)}function Rk(t){return Ip(t.replace(/\+/g,"%20"))}function Kk(t){return`${d_(t.path)}${iK(t.parameters)}`}function iK(t){return Object.entries(t).map(([i,e])=>`;${d_(i)}=${d_(e)}`).join("")}function oK(t){let i=Object.entries(t).map(([e,n])=>Array.isArray(n)?n.map(o=>`${Dp(e)}=${Dp(o)}`).join("&"):`${Dp(e)}=${Dp(n)}`).filter(e=>e);return i.length?`?${i.join("&")}`:""}var rK=/^[^\/()?;#]+/;function o_(t){let i=t.match(rK);return i?i[0]:""}var aK=/^[^\/()?;=#]+/;function sK(t){let i=t.match(aK);return i?i[0]:""}var cK=/^[^=?&#]+/;function lK(t){let i=t.match(cK);return i?i[0]:""}var dK=/^[^&#]+/;function uK(t){let i=t.match(dK);return i?i[0]:""}var u_=class{url;remaining;constructor(i){this.url=i,this.remaining=i}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new Gt([],{}):new Gt([],this.parseChildren())}parseQueryParams(){let i={};if(this.consumeOptional("?"))do this.parseQueryParam(i);while(this.consumeOptional("&"));return i}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let i=[];for(this.peekStartsWith("(")||i.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),i.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(i.length>0||Object.keys(e).length>0)&&(n[pt]=new Gt(i,e)),n}parseSegment(){let i=o_(this.remaining);if(i===""&&this.peekStartsWith(";"))throw new pe(4009,!1);return this.capture(i),new js(Ip(i),this.parseMatrixParams())}parseMatrixParams(){let i={};for(;this.consumeOptional(";");)this.parseParam(i);return i}parseParam(i){let e=sK(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let o=o_(this.remaining);o&&(n=o,this.capture(n))}i[Ip(e)]=Ip(n)}parseQueryParam(i){let e=lK(this.remaining);if(!e)return;this.capture(e);let n="";if(this.consumeOptional("=")){let a=uK(this.remaining);a&&(n=a,this.capture(n))}let o=Rk(e),r=Rk(n);if(i.hasOwnProperty(o)){let a=i[o];Array.isArray(a)||(a=[a],i[o]=a),a.push(r)}else i[o]=r}parseParens(i){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let n=o_(this.remaining),o=this.remaining[n.length];if(o!=="/"&&o!==")"&&o!==";")throw new pe(4010,!1);let r;n.indexOf(":")>-1?(r=n.slice(0,n.indexOf(":")),this.capture(r),this.capture(":")):i&&(r=pt);let a=this.parseChildren();e[r??pt]=Object.keys(a).length===1&&a[pt]?a[pt]:new Gt([],a),this.consumeOptional("//")}return e}peekStartsWith(i){return this.remaining.startsWith(i)}consumeOptional(i){return this.peekStartsWith(i)?(this.remaining=this.remaining.substring(i.length),!0):!1}capture(i){if(!this.consumeOptional(i))throw new pe(4011,!1)}};function Xk(t){return t.segments.length>0?new Gt([],{[pt]:t}):t}function Zk(t){let i={};for(let[n,o]of Object.entries(t.children)){let r=Zk(o);if(n===pt&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))i[a]=s;else(r.segments.length>0||r.hasChildren())&&(i[n]=r)}let e=new Gt(t.segments,i);return mK(e)}function mK(t){if(t.numberOfChildren===1&&t.children[pt]){let i=t.children[pt];return new Gt(t.segments.concat(i.segments),i.children)}return t}function Us(t){return t instanceof ma}function Jk(t,i,e=null,n=null){let o=eE(t);return tE(o,i,e,n)}function eE(t){let i;function e(r){let a={};for(let c of r.children){let m=e(c);a[c.outlet]=m}let s=new Gt(r.url,a);return r===t&&(i=s),s}let n=e(t.root),o=Xk(n);return i??o}function tE(t,i,e,n){let o=t;for(;o.parent;)o=o.parent;if(i.length===0)return r_(o,o,o,e,n);let r=pK(i);if(r.toRoot())return r_(o,o,new Gt([],{}),e,n);let a=fK(r,o,t),s=a.processChildren?T0(a.segmentGroup,a.index,r.commands):iE(a.segmentGroup,a.index,r.commands);return r_(o,a.segmentGroup,s,e,n)}function Op(t){return typeof t=="object"&&t!=null&&!t.outlets&&!t.segmentPath}function L0(t){return typeof t=="object"&&t!=null&&t.outlets}function r_(t,i,e,n,o){let r={};n&&Object.entries(n).forEach(([c,m])=>{r[c]=Array.isArray(m)?m.map(f=>`${f}`):`${m}`});let a;t===i?a=e:a=nE(t,i,e);let s=Xk(Zk(a));return new ma(s,r,o)}function nE(t,i,e){let n={};return Object.entries(t.children).forEach(([o,r])=>{r===i?n[o]=e:n[o]=nE(r,i,e)}),new Gt(t.segments,n)}var Tp=class{isAbsolute;numberOfDoubleDots;commands;constructor(i,e,n){if(this.isAbsolute=i,this.numberOfDoubleDots=e,this.commands=n,i&&n.length>0&&Op(n[0]))throw new pe(4003,!1);let o=n.find(L0);if(o&&o!==$k(n))throw new pe(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function pK(t){if(typeof t[0]=="string"&&t.length===1&&t[0]==="/")return new Tp(!0,0,t);let i=0,e=!1,n=t.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([c,m])=>{s[c]=typeof m=="string"?m.split("/"):m}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,c)=>{c==0&&s==="."||(c==0&&s===""?e=!0:s===".."?i++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Tp(e,i,n)}var e2=class{segmentGroup;processChildren;index;constructor(i,e,n){this.segmentGroup=i,this.processChildren=e,this.index=n}};function fK(t,i,e){if(t.isAbsolute)return new e2(i,!0,0);if(!e)return new e2(i,!1,NaN);if(e.parent===null)return new e2(e,!0,0);let n=Op(t.commands[0])?0:1,o=e.segments.length-1+n;return hK(e,o,t.numberOfDoubleDots)}function hK(t,i,e){let n=t,o=i,r=e;for(;r>o;){if(r-=o,n=n.parent,!n)throw new pe(4005,!1);o=n.segments.length}return new e2(n,!1,o-r)}function gK(t){return L0(t[0])?t[0].outlets:{[pt]:t}}function iE(t,i,e){if(t??=new Gt([],{}),t.segments.length===0&&t.hasChildren())return T0(t,i,e);let n=_K(t,i,e),o=e.slice(n.commandIndex);if(n.match&&n.pathIndexr!==pt)&&t.children[pt]&&t.numberOfChildren===1&&t.children[pt].segments.length===0){let r=T0(t.children[pt],i,e);return new Gt(t.segments,r.children)}return Object.entries(n).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=iE(t.children[r],i,a))}),Object.entries(t.children).forEach(([r,a])=>{n[r]===void 0&&(o[r]=a)}),new Gt(t.segments,o)}}function _K(t,i,e){let n=0,o=i,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=t.segments[o],s=e[n];if(L0(s))break;let c=`${s}`,m=n0&&c===void 0)break;if(c&&m&&typeof m=="object"&&m.outlets===void 0){if(!Fk(c,m,a))return r;n+=2}else{if(!Fk(c,{},a))return r;n++}o++}return{match:!0,pathIndex:o,commandIndex:n}}function m_(t,i,e){let n=t.segments.slice(0,i),o=0;for(;o{typeof n=="string"&&(n=[n]),n!==null&&(i[e]=m_(new Gt([],{}),0,n))}),i}function Nk(t){let i={};return Object.entries(t).forEach(([e,n])=>i[e]=`${n}`),i}function Fk(t,i,e){return t==e.path&&da(i,e.parameters)}var t2="imperative",pi=(function(t){return t[t.NavigationStart=0]="NavigationStart",t[t.NavigationEnd=1]="NavigationEnd",t[t.NavigationCancel=2]="NavigationCancel",t[t.NavigationError=3]="NavigationError",t[t.RoutesRecognized=4]="RoutesRecognized",t[t.ResolveStart=5]="ResolveStart",t[t.ResolveEnd=6]="ResolveEnd",t[t.GuardsCheckStart=7]="GuardsCheckStart",t[t.GuardsCheckEnd=8]="GuardsCheckEnd",t[t.RouteConfigLoadStart=9]="RouteConfigLoadStart",t[t.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",t[t.ChildActivationStart=11]="ChildActivationStart",t[t.ChildActivationEnd=12]="ChildActivationEnd",t[t.ActivationStart=13]="ActivationStart",t[t.ActivationEnd=14]="ActivationEnd",t[t.Scroll=15]="Scroll",t[t.NavigationSkipped=16]="NavigationSkipped",t})(pi||{}),Ro=class{id;url;constructor(i,e){this.id=i,this.url=e}},$s=class extends Ro{type=pi.NavigationStart;navigationTrigger;restoredState;constructor(i,e,n="imperative",o=null){super(i,e),this.navigationTrigger=n,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},No=class extends Ro{urlAfterRedirects;type=pi.NavigationEnd;constructor(i,e,n){super(i,e),this.urlAfterRedirects=n}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},oo=(function(t){return t[t.Redirect=0]="Redirect",t[t.SupersededByNewNavigation=1]="SupersededByNewNavigation",t[t.NoDataFromResolver=2]="NoDataFromResolver",t[t.GuardRejected=3]="GuardRejected",t[t.Aborted=4]="Aborted",t})(oo||{}),i2=(function(t){return t[t.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",t[t.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",t})(i2||{}),ua=class extends Ro{reason;code;type=pi.NavigationCancel;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},pa=class extends Ro{reason;code;type=pi.NavigationSkipped;constructor(i,e,n,o){super(i,e),this.reason=n,this.code=o}},o2=class extends Ro{error;target;type=pi.NavigationError;constructor(i,e,n,o){super(i,e),this.error=n,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},A0=class extends Ro{urlAfterRedirects;state;type=pi.RoutesRecognized;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pp=class extends Ro{urlAfterRedirects;state;type=pi.GuardsCheckStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Lp=class extends Ro{urlAfterRedirects;state;shouldActivate;type=pi.GuardsCheckEnd;constructor(i,e,n,o,r){super(i,e),this.urlAfterRedirects=n,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ap=class extends Ro{urlAfterRedirects;state;type=pi.ResolveStart;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},zp=class extends Ro{urlAfterRedirects;state;type=pi.ResolveEnd;constructor(i,e,n,o){super(i,e),this.urlAfterRedirects=n,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Rp=class{route;type=pi.RouteConfigLoadStart;constructor(i){this.route=i}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Np=class{route;type=pi.RouteConfigLoadEnd;constructor(i){this.route=i}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fp=class{snapshot;type=pi.ChildActivationStart;constructor(i){this.snapshot=i}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vp=class{snapshot;type=pi.ChildActivationEnd;constructor(i){this.snapshot=i}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Bp=class{snapshot;type=pi.ActivationStart;constructor(i){this.snapshot=i}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},jp=class{snapshot;type=pi.ActivationEnd;constructor(i){this.snapshot=i}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},r2=class{routerEvent;position;anchor;type=pi.Scroll;constructor(i,e,n){this.routerEvent=i,this.position=e,this.anchor=n}toString(){let i=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${i}')`}},z0=class{},a2=class{url;navigationBehaviorOptions;constructor(i,e){this.url=i,this.navigationBehaviorOptions=e}};function vK(t){return!(t instanceof z0)&&!(t instanceof a2)}function yK(t,i){return t.providers&&!t._injector&&(t._injector=v1(t.providers,i,`Route: ${t.path}`)),t._injector??i}function Lr(t){return t.outlet||pt}function CK(t,i){let e=t.filter(n=>Lr(n)===i);return e.push(...t.filter(n=>Lr(n)!==i)),e}function l2(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let i=t.parent;i;i=i.parent){let e=i.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Hp=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return l2(this.route?.snapshot)??this.rootInjector}constructor(i){this.rootInjector=i,this.children=new cl(this.rootInjector)}},cl=(()=>{class t{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,n){let o=this.getOrCreateContext(e);o.outlet=n,this.contexts.set(e,o)}onChildOutletDestroyed(e){let n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new Hp(this.rootInjector),this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(n){return new(n||t)(ke(Qt))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Up=class{_root;constructor(i){this._root=i}get root(){return this._root.value}parent(i){let e=this.pathFromRoot(i);return e.length>1?e[e.length-2]:null}children(i){let e=p_(i,this._root);return e?e.children.map(n=>n.value):[]}firstChild(i){let e=p_(i,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(i){let e=f_(i,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==i)}pathFromRoot(i){return f_(i,this._root).map(e=>e.value)}};function p_(t,i){if(t===i.value)return i;for(let e of i.children){let n=p_(t,e);if(n)return n}return null}function f_(t,i){if(t===i.value)return[i];for(let e of i.children){let n=f_(t,e);if(n.length)return n.unshift(i),n}return[]}var zo=class{value;children;constructor(i,e){this.value=i,this.children=e}toString(){return`TreeNode(${this.value})`}};function J1(t){let i={};return t&&t.children.forEach(e=>i[e.value.outlet]=e),i}var R0=class extends Up{snapshot;constructor(i,e){super(i),this.snapshot=e,x_(this,i)}toString(){return this.snapshot.toString()}};function oE(t){let i=xK(t),e=new ct([new js("",{})]),n=new ct({}),o=new ct({}),r=new ct({}),a=new ct(""),s=new ro(e,n,r,a,o,pt,t,i.root);return s.snapshot=i.root,new R0(new zo(s,[]),i)}function xK(t){let i={},e={},n={},r=new rl([],i,n,"",e,pt,t,null,{});return new N0("",new zo(r,[]))}var ro=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(i,e,n,o,r,a,s,c){this.urlSubject=i,this.paramsSubject=e,this.queryParamsSubject=n,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(me(m=>m[j0]))??re(void 0),this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(me(i=>al(i))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(me(i=>al(i))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function $p(t,i,e="emptyOnly"){let n,{routeConfig:o}=t;return i!==null&&(e==="always"||o?.path===""||!i.component&&!i.routeConfig?.loadComponent)?n={params:q(q({},i.params),t.params),data:q(q({},i.data),t.data),resolve:q(q(q(q({},t.data),i.data),o?.data),t._resolvedData)}:n={params:q({},t.params),data:q({},t.data),resolve:q(q({},t.data),t._resolvedData??{})},o&&aE(o)&&(n.resolve[j0]=o.title),n}var rl=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[j0]}constructor(i,e,n,o,r,a,s,c,m){this.url=i,this.params=e,this.queryParams=n,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=c,this._resolve=m}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=al(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=al(this.queryParams),this._queryParamMap}toString(){let i=this.url.map(n=>n.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${i}', path:'${e}')`}},N0=class extends Up{url;constructor(i,e){super(e),this.url=i,x_(this,e)}toString(){return rE(this._root)}};function x_(t,i){i.value._routerState=t,i.children.forEach(e=>x_(t,e))}function rE(t){let i=t.children.length>0?` { ${t.children.map(rE).join(", ")} } `:"";return`${t.value}${i}`}function a_(t){if(t.snapshot){let i=t.snapshot,e=t._futureSnapshot;t.snapshot=e,da(i.queryParams,e.queryParams)||t.queryParamsSubject.next(e.queryParams),i.fragment!==e.fragment&&t.fragmentSubject.next(e.fragment),da(i.params,e.params)||t.paramsSubject.next(e.params),QQ(i.url,e.url)||t.urlSubject.next(e.url),da(i.data,e.data)||t.dataSubject.next(e.data)}else t.snapshot=t._futureSnapshot,t.dataSubject.next(t._futureSnapshot.data)}function h_(t,i){let e=da(t.params,i.params)&&JQ(t.url,i.url),n=!t.parent!=!i.parent;return e&&!n&&(!t.parent||h_(t.parent,i.parent))}function aE(t){return typeof t.title=="string"||t.title===null}var sE=new L(""),M_=(()=>{class t{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=pt;activateEvents=new j;deactivateEvents=new j;attachEvents=new j;detachEvents=new j;routerOutletData=S1();parentContexts=d(cl);location=d(dt);changeDetector=d(xe);inputBinder=d(H0,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:n,previousValue:o}=e.name;if(n)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new pe(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new pe(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new pe(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,n){this.activated=e,this._activatedRoute=n,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,n){if(this.isActivated)throw new pe(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,c=new g_(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:c,environmentInjector:n}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Re]})}return t})(),g_=class{route;childContexts;parent;outletData;constructor(i,e,n,o){this.route=i,this.childContexts=e,this.parent=n,this.outletData=o}get(i,e){return i===ro?this.route:i===cl?this.childContexts:i===sE?this.outletData:this.parent.get(i,e)}},H0=new L(""),w_=(()=>{class t{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:n}=e,o=gi([n.queryParams,n.params,n.data]).pipe(lt(([r,a,s],c)=>(s=q(q(q({},r),a),s),c===0?re(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==n||n.component===null){this.unsubscribeFromRouteData(e);return}let a=$w(n.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),D_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(n,o){n&1&&F(0,"router-outlet")},dependencies:[M_],encapsulation:2})}return t})();function S_(t){let i=t.children&&t.children.map(S_),e=i?Ne(q({},t),{children:i}):q({},t);return!e.component&&!e.loadComponent&&(i||e.loadChildren)&&e.outlet&&e.outlet!==pt&&(e.component=D_),e}function MK(t,i,e){let n=F0(t,i._root,e?e._root:void 0);return new R0(n,i)}function F0(t,i,e){if(e&&t.shouldReuseRoute(i.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=i.value;let o=wK(t,i,e);return new zo(n,o)}else{if(t.shouldAttach(i.value)){let r=t.retrieve(i.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=i.value,a.children=i.children.map(s=>F0(t,s)),a}}let n=DK(i.value),o=i.children.map(r=>F0(t,r));return new zo(n,o)}}function wK(t,i,e){return i.children.map(n=>{for(let o of e.children)if(t.shouldReuseRoute(n.value,o.value.snapshot))return F0(t,n,o);return F0(t,n)})}function DK(t){return new ro(new ct(t.url),new ct(t.params),new ct(t.queryParams),new ct(t.fragment),new ct(t.data),t.outlet,t.component,t)}var s2=class{redirectTo;navigationBehaviorOptions;constructor(i,e){this.redirectTo=i,this.navigationBehaviorOptions=e}},cE="ngNavigationCancelingError";function Gp(t,i){let{redirectTo:e,navigationBehaviorOptions:n}=Us(i)?{redirectTo:i,navigationBehaviorOptions:void 0}:i,o=lE(!1,oo.Redirect);return o.url=e,o.navigationBehaviorOptions=n,o}function lE(t,i){let e=new Error(`NavigationCancelingError: ${t||""}`);return e[cE]=!0,e.cancellationCode=i,e}function SK(t){return dE(t)&&Us(t.url)}function dE(t){return!!t&&t[cE]}var kK=(t,i,e,n)=>me(o=>(new __(i,o.targetRouterState,o.currentRouterState,e,n).activate(t),o)),__=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(i,e,n,o,r){this.routeReuseStrategy=i,this.futureState=e,this.currState=n,this.forwardEvent=o,this.inputBindingEnabled=r}activate(i){let e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,i),a_(this.futureState.root),this.activateChildRoutes(e,n,i)}deactivateChildRoutes(i,e,n){let o=J1(e);i.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],n),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,n)})}deactivateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(o===r)if(o.component){let a=n.getContext(o.outlet);a&&this.deactivateChildRoutes(i,e,a.children)}else this.deactivateChildRoutes(i,e,n);else r&&this.deactivateRouteAndItsChildren(e,n)}deactivateRouteAndItsChildren(i,e){i.value.component&&this.routeReuseStrategy.shouldDetach(i.value.snapshot)?this.detachAndStoreRouteSubtree(i,e):this.deactivateRouteAndOutlet(i,e)}detachAndStoreRouteSubtree(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=J1(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(n&&n.outlet){let a=n.outlet.detach(),s=n.children.onOutletDeactivated();this.routeReuseStrategy.store(i.value.snapshot,{componentRef:a,route:i,contexts:s})}}deactivateRouteAndOutlet(i,e){let n=e.getContext(i.value.outlet),o=n&&i.value.component?n.children:e,r=J1(i);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);n&&(n.outlet&&(n.outlet.deactivate(),n.children.onOutletDeactivated()),n.attachRef=null,n.route=null)}activateChildRoutes(i,e,n){let o=J1(e);i.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],n),this.forwardEvent(new jp(r.value.snapshot))}),i.children.length&&this.forwardEvent(new Vp(i.value.snapshot))}activateRoutes(i,e,n){let o=i.value,r=e?e.value:null;if(a_(o),o===r)if(o.component){let a=n.getOrCreateContext(o.outlet);this.activateChildRoutes(i,e,a.children)}else this.activateChildRoutes(i,e,n);else if(o.component){let a=n.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),a_(s.route.value),this.activateChildRoutes(i,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(i,null,a.children)}else this.activateChildRoutes(i,null,n)}},Wp=class{path;route;constructor(i){this.path=i,this.route=this.path[this.path.length-1]}},n2=class{component;route;constructor(i,e){this.component=i,this.route=e}};function EK(t,i,e){let n=t._root,o=i?i._root:null;return O0(n,o,e,[n.value])}function IK(t){let i=t.routeConfig?t.routeConfig.canActivateChild:null;return!i||i.length===0?null:{node:t,guards:i}}function d2(t,i){let e=Symbol(),n=i.get(t,e);return n===e?typeof t=="function"&&!Z6(t)?t:i.get(t):n}function O0(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=J1(i);return t.children.forEach(a=>{OK(a,r[a.value.outlet],e,n.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>P0(s,e.getContext(a),o)),o}function OK(t,i,e,n,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=t.value,a=i?i.value:null,s=e?e.getContext(t.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let c=TK(a,r,r.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new Wp(n)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?O0(t,i,s?s.children:null,n,o):O0(t,i,e,n,o),c&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new n2(s.outlet.component,a))}else a&&P0(i,s,o),o.canActivateChecks.push(new Wp(n)),r.component?O0(t,null,s?s.children:null,n,o):O0(t,null,e,n,o);return o}function TK(t,i,e){if(typeof e=="function")return e(t,i);switch(e){case"pathParamsChange":return!ol(t.url,i.url);case"pathParamsOrQueryParamsChange":return!ol(t.url,i.url)||!da(t.queryParams,i.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!h_(t,i)||!da(t.queryParams,i.queryParams);case"paramsChange":default:return!h_(t,i)}}function P0(t,i,e){let n=J1(t),o=t.value;Object.entries(n).forEach(([r,a])=>{o.component?i?P0(a,i.children.getContext(r),e):P0(a,null,e):P0(a,i,e)}),o.component?i&&i.outlet&&i.outlet.isActivated?e.canDeactivateChecks.push(new n2(i.outlet.component,o)):e.canDeactivateChecks.push(new n2(null,o)):e.canDeactivateChecks.push(new n2(null,o))}function U0(t){return typeof t=="function"}function PK(t){return typeof t=="boolean"}function LK(t){return t&&U0(t.canLoad)}function AK(t){return t&&U0(t.canActivate)}function zK(t){return t&&U0(t.canActivateChild)}function RK(t){return t&&U0(t.canDeactivate)}function NK(t){return t&&U0(t.canMatch)}function uE(t){return t instanceof fr||t?.name==="EmptyError"}var Sp=Symbol("INITIAL_VALUE");function c2(){return lt(t=>gi(t.map(i=>i.pipe(Be(1),We(Sp)))).pipe(me(i=>{for(let e of i)if(e!==!0){if(e===Sp)return Sp;if(e===!1||FK(e))return e}return!0}),Ae(i=>i!==Sp),Be(1)))}function FK(t){return Us(t)||t instanceof s2}function VK(t,i){return _n(e=>{let{targetSnapshot:n,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return a.length===0&&r.length===0?re(Ne(q({},e),{guardsResult:!0})):BK(a,n,o,t).pipe(_n(s=>s&&PK(s)?jK(n,r,t,i):re(s)),me(s=>Ne(q({},e),{guardsResult:s})))})}function BK(t,i,e,n){return tn(t).pipe(_n(o=>WK(o.component,o.route,e,i,n)),Yr(o=>o!==!0,!0))}function jK(t,i,e,n){return tn(i).pipe(Qi(o=>Li(UK(o.route.parent,n),HK(o.route,n),GK(t,o.path,e),$K(t,o.route,e))),Yr(o=>o!==!0,!0))}function HK(t,i){return t!==null&&i&&i(new Bp(t)),re(!0)}function UK(t,i){return t!==null&&i&&i(new Fp(t)),re(!0)}function $K(t,i,e){let n=i.routeConfig?i.routeConfig.canActivate:null;if(!n||n.length===0)return re(!0);let o=n.map(r=>Ai(()=>{let a=l2(i)??e,s=d2(r,a),c=AK(s)?s.canActivate(i,t):bi(a,()=>s(i,t));return Xa(c).pipe(Yr())}));return re(o).pipe(c2())}function GK(t,i,e){let n=i[i.length-1],r=i.slice(0,i.length-1).reverse().map(a=>IK(a)).filter(a=>a!==null).map(a=>Ai(()=>{let s=a.guards.map(c=>{let m=l2(a.node)??e,f=d2(c,m),v=zK(f)?f.canActivateChild(n,t):bi(m,()=>f(n,t));return Xa(v).pipe(Yr())});return re(s).pipe(c2())}));return re(r).pipe(c2())}function WK(t,i,e,n,o){let r=i&&i.routeConfig?i.routeConfig.canDeactivate:null;if(!r||r.length===0)return re(!0);let a=r.map(s=>{let c=l2(i)??o,m=d2(s,c),f=RK(m)?m.canDeactivate(t,i,e,n):bi(c,()=>m(t,i,e,n));return Xa(f).pipe(Yr())});return re(a).pipe(c2())}function qK(t,i,e,n){let o=i.canLoad;if(o===void 0||o.length===0)return re(!0);let r=o.map(a=>{let s=d2(a,t),c=LK(s)?s.canLoad(i,e):bi(t,()=>s(i,e));return Xa(c)});return re(r).pipe(c2(),mE(n))}function mE(t){return E6(Ot(i=>{if(typeof i!="boolean")throw Gp(t,i)}),me(i=>i===!0))}function YK(t,i,e,n){let o=i.canMatch;if(!o||o.length===0)return re(!0);let r=o.map(a=>{let s=d2(a,t),c=NK(s)?s.canMatch(i,e):bi(t,()=>s(i,e));return Xa(c)});return re(r).pipe(c2(),mE(n))}var V0=class{segmentGroup;constructor(i){this.segmentGroup=i||null}},B0=class extends Error{urlTree;constructor(i){super(),this.urlTree=i}};function Z1(t){return Gr(new V0(t))}function QK(t){return Gr(new pe(4e3,!1))}function KK(t){return Gr(lE(!1,oo.GuardRejected))}var b_=class{urlSerializer;urlTree;constructor(i,e){this.urlSerializer=i,this.urlTree=e}lineralizeSegments(i,e){let n=[],o=e.root;for(;;){if(n=n.concat(o.segments),o.numberOfChildren===0)return re(n);if(o.numberOfChildren>1||!o.children[pt])return QK(`${i.redirectTo}`);o=o.children[pt]}}applyRedirectCommands(i,e,n,o,r){return XK(e,o,r).pipe(me(a=>{if(a instanceof ma)throw new B0(a);let s=this.applyRedirectCreateUrlTree(a,this.urlSerializer.parse(a),i,n);if(a[0]==="/")throw new B0(s);return s}))}applyRedirectCreateUrlTree(i,e,n,o){let r=this.createSegmentGroup(i,e.root,n,o);return new ma(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(i,e){let n={};return Object.entries(i).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);n[o]=e[s]}else n[o]=r}),n}createSegmentGroup(i,e,n,o){let r=this.createSegments(i,e.segments,n,o),a={};return Object.entries(e.children).forEach(([s,c])=>{a[s]=this.createSegmentGroup(i,c,n,o)}),new Gt(r,a)}createSegments(i,e,n,o){return e.map(r=>r.path[0]===":"?this.findPosParam(i,r,o):this.findOrReturn(r,n))}findPosParam(i,e,n){let o=n[e.path.substring(1)];if(!o)throw new pe(4001,!1);return o}findOrReturn(i,e){let n=0;for(let o of e){if(o.path===i.path)return e.splice(n),o;n++}return i}};function XK(t,i,e){if(typeof t=="string")return re(t);let n=t,{queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,params:m,data:f,title:v}=i;return Xa(bi(e,()=>n({params:m,data:f,queryParams:o,fragment:r,routeConfig:a,url:s,outlet:c,title:v})))}var v_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function ZK(t,i,e,n,o){let r=pE(t,i,e);return r.matched?(n=yK(i,n),YK(n,i,e,o).pipe(me(a=>a===!0?r:q({},v_)))):re(r)}function pE(t,i,e){if(i.path==="**")return JK(e);if(i.path==="")return i.pathMatch==="full"&&(t.hasChildren()||e.length>0)?q({},v_):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(i.matcher||Hk)(e,t,i);if(!o)return q({},v_);let r={};Object.entries(o.posParams??{}).forEach(([s,c])=>{r[s]=c.path});let a=o.consumed.length>0?q(q({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function JK(t){return{matched:!0,parameters:t.length>0?$k(t).parameters:{},consumedSegments:t,remainingSegments:[],positionalParamSegments:{}}}function Vk(t,i,e,n){return e.length>0&&nX(t,e,n)?{segmentGroup:new Gt(i,tX(n,new Gt(e,t.children))),slicedSegments:[]}:e.length===0&&iX(t,e,n)?{segmentGroup:new Gt(t.segments,eX(t,e,n,t.children)),slicedSegments:e}:{segmentGroup:new Gt(t.segments,t.children),slicedSegments:e}}function eX(t,i,e,n){let o={};for(let r of e)if(Yp(t,i,r)&&!n[Lr(r)]){let a=new Gt([],{});o[Lr(r)]=a}return q(q({},n),o)}function tX(t,i){let e={};e[pt]=i;for(let n of t)if(n.path===""&&Lr(n)!==pt){let o=new Gt([],{});e[Lr(n)]=o}return e}function nX(t,i,e){return e.some(n=>Yp(t,i,n)&&Lr(n)!==pt)}function iX(t,i,e){return e.some(n=>Yp(t,i,n))}function Yp(t,i,e){return(t.hasChildren()||i.length>0)&&e.pathMatch==="full"?!1:e.path===""}function oX(t,i,e){return i.length===0&&!t.children[e]}var y_=class{};function rX(t,i,e,n,o,r,a="emptyOnly"){return new C_(t,i,e,n,o,a,r).recognize()}var aX=31,C_=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(i,e,n,o,r,a,s){this.injector=i,this.configLoader=e,this.rootComponentType=n,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new b_(this.urlSerializer,this.urlTree)}noMatchError(i){return new pe(4002,`'${i.segmentGroup}'`)}recognize(){let i=Vk(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(i).pipe(me(({children:e,rootSnapshot:n})=>{let o=new zo(n,e),r=new N0("",o),a=Jk(n,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}}))}match(i){let e=new rl([],Object.freeze({}),Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),pt,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,i,pt,e).pipe(me(n=>({children:n,rootSnapshot:e})),Mo(n=>{if(n instanceof B0)return this.urlTree=n.urlTree,this.match(n.urlTree.root);throw n instanceof V0?this.noMatchError(n):n}))}processSegmentGroup(i,e,n,o,r){return n.segments.length===0&&n.hasChildren()?this.processChildren(i,e,n,r):this.processSegment(i,e,n,n.segments,o,!0,r).pipe(me(a=>a instanceof zo?[a]:[]))}processChildren(i,e,n,o){let r=[];for(let a of Object.keys(n.children))a==="primary"?r.unshift(a):r.push(a);return tn(r).pipe(Qi(a=>{let s=n.children[a],c=CK(e,a);return this.processSegmentGroup(i,c,s,a,o)}),N6((a,s)=>(a.push(...s),a)),fs(null),R6(),_n(a=>{if(a===null)return Z1(n);let s=fE(a);return sX(s),re(s)}))}processSegment(i,e,n,o,r,a,s){return tn(e).pipe(Qi(c=>this.processSegmentAgainstRoute(c._injector??i,e,c,n,o,r,a,s).pipe(Mo(m=>{if(m instanceof V0)return re(null);throw m}))),Yr(c=>!!c),Mo(c=>{if(uE(c))return oX(n,o,r)?re(new y_):Z1(n);throw c}))}processSegmentAgainstRoute(i,e,n,o,r,a,s,c){return Lr(n)!==a&&(a===pt||!Yp(o,r,n))?Z1(o):n.redirectTo===void 0?this.matchSegmentAgainstRoute(i,o,n,r,a,c):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(i,o,e,n,r,a,c):Z1(o)}expandSegmentAgainstRouteUsingRedirect(i,e,n,o,r,a,s){let{matched:c,parameters:m,consumedSegments:f,positionalParamSegments:v,remainingSegments:x}=pE(e,o,r);if(!c)return Z1(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>aX&&(this.allowRedirects=!1));let w=new rl(r,m,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Bk(o),Lr(o),o.component??o._loadedComponent??null,o,jk(o)),O=$p(w,s,this.paramsInheritanceStrategy);return w.params=Object.freeze(O.params),w.data=Object.freeze(O.data),this.applyRedirects.applyRedirectCommands(f,o.redirectTo,v,w,i).pipe(lt(Y=>this.applyRedirects.lineralizeSegments(o,Y)),_n(Y=>this.processSegment(i,n,e,Y.concat(x),a,!1,s)))}matchSegmentAgainstRoute(i,e,n,o,r,a){let s=ZK(e,n,o,i,this.urlSerializer);return n.path==="**"&&(e.children={}),s.pipe(lt(c=>c.matched?(i=n._injector??i,this.getChildConfig(i,n,o).pipe(lt(({routes:m})=>{let f=n._loadedInjector??i,{parameters:v,consumedSegments:x,remainingSegments:w}=c,O=new rl(x,v,Object.freeze(q({},this.urlTree.queryParams)),this.urlTree.fragment,Bk(n),Lr(n),n.component??n._loadedComponent??null,n,jk(n)),K=$p(O,a,this.paramsInheritanceStrategy);O.params=Object.freeze(K.params),O.data=Object.freeze(K.data);let{segmentGroup:Y,slicedSegments:Z}=Vk(e,x,w,m);if(Z.length===0&&Y.hasChildren())return this.processChildren(f,m,Y,O).pipe(me(Mt=>new zo(O,Mt)));if(m.length===0&&Z.length===0)return re(new zo(O,[]));let Oe=Lr(n)===r;return this.processSegment(f,m,Y,Z,Oe?pt:r,!0,O).pipe(me(Mt=>new zo(O,Mt instanceof zo?[Mt]:[])))}))):Z1(e)))}getChildConfig(i,e,n){return e.children?re({routes:e.children,injector:i}):e.loadChildren?e._loadedRoutes!==void 0?re({routes:e._loadedRoutes,injector:e._loadedInjector}):qK(i,e,n,this.urlSerializer).pipe(_n(o=>o?this.configLoader.loadChildren(i,e).pipe(Ot(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):KK(e))):re({routes:[],injector:i})}};function sX(t){t.sort((i,e)=>i.value.outlet===pt?-1:e.value.outlet===pt?1:i.value.outlet.localeCompare(e.value.outlet))}function cX(t){let i=t.value.routeConfig;return i&&i.path===""}function fE(t){let i=[],e=new Set;for(let n of t){if(!cX(n)){i.push(n);continue}let o=i.find(r=>n.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...n.children),e.add(o)):i.push(n)}for(let n of e){let o=fE(n.children);i.push(new zo(n.value,o))}return i.filter(n=>!e.has(n))}function Bk(t){return t.data||{}}function jk(t){return t.resolve||{}}function lX(t,i,e,n,o,r){return _n(a=>rX(t,i,e,n,a.extractedUrl,o,r).pipe(me(({state:s,tree:c})=>Ne(q({},a),{targetSnapshot:s,urlAfterRedirects:c}))))}function dX(t,i){return _n(e=>{let{targetSnapshot:n,guards:{canActivateChecks:o}}=e;if(!o.length)return re(e);let r=new Set(o.map(c=>c.route)),a=new Set;for(let c of r)if(!a.has(c))for(let m of hE(c))a.add(m);let s=0;return tn(a).pipe(Qi(c=>r.has(c)?uX(c,n,t,i):(c.data=$p(c,c.parent,t).resolve,re(void 0))),Ot(()=>s++),ql(1),_n(c=>s===a.size?re(e):Sn))})}function hE(t){let i=t.children.map(e=>hE(e)).flat();return[t,...i]}function uX(t,i,e,n){let o=t.routeConfig,r=t._resolve;return o?.title!==void 0&&!aE(o)&&(r[j0]=o.title),Ai(()=>(t.data=$p(t,t.parent,e).resolve,mX(r,t,i,n).pipe(me(a=>(t._resolvedData=a,t.data=q(q({},t.data),a),null)))))}function mX(t,i,e,n){let o=l_(t);if(o.length===0)return re({});let r={};return tn(o).pipe(_n(a=>pX(t[a],i,e,n).pipe(Yr(),Ot(s=>{if(s instanceof s2)throw Gp(new Hs,s);r[a]=s}))),ql(1),me(()=>r),Mo(a=>uE(a)?Sn:Gr(a)))}function pX(t,i,e,n){let o=l2(i)??n,r=d2(t,o),a=r.resolve?r.resolve(i,e):bi(o,()=>r(i,e));return Xa(a)}function s_(t){return lt(i=>{let e=t(i);return e?tn(e).pipe(me(()=>i)):re(i)})}var k_=(()=>{class t{buildTitle(e){let n,o=e.root;for(;o!==void 0;)n=this.getResolvedTitleForRoute(o)??n,o=o.children.find(r=>r.outlet===pt);return n}getResolvedTitleForRoute(e){return e.data[j0]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(gE),providedIn:"root"})}return t})(),gE=(()=>{class t extends k_{title;constructor(e){super(),this.title=e}updateTitle(e){let n=this.buildTitle(e);n!==void 0&&this.title.setTitle(n)}static \u0275fac=function(n){return new(n||t)(ke(YD))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Gs=new L("",{providedIn:"root",factory:()=>({})}),u2=new L(""),Qp=(()=>{class t{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(E5);loadComponent(e,n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return re(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);let o=Xa(bi(e,()=>n.loadComponent())).pipe(me(bE),lt(vE),Ot(a=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=a}),qr(()=>{this.componentLoaders.delete(n)})),r=new ps(o,()=>new B).pipe(Nl());return this.componentLoaders.set(n,r),r}loadChildren(e,n){if(this.childrenLoaders.get(n))return this.childrenLoaders.get(n);if(n._loadedRoutes)return re({routes:n._loadedRoutes,injector:n._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(n);let r=_E(n,this.compiler,e,this.onLoadEndListener).pipe(qr(()=>{this.childrenLoaders.delete(n)})),a=new ps(r,()=>new B).pipe(Nl());return this.childrenLoaders.set(n,a),a}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _E(t,i,e,n){return Xa(bi(e,()=>t.loadChildren())).pipe(me(bE),lt(vE),_n(o=>o instanceof X4||Array.isArray(o)?re(o):tn(i.compileModuleAsync(o))),me(o=>{n&&n(t);let r,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(r=o.create(e).injector,a=r.get(u2,[],{optional:!0,self:!0}).flat()),{routes:a.map(S_),injector:r}}))}function fX(t){return t&&typeof t=="object"&&"default"in t}function bE(t){return fX(t)?t.default:t}function vE(t){return re(t)}var Kp=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(hX),providedIn:"root"})}return t})(),hX=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),E_=new L(""),I_=new L("");function yE(t,i,e){let n=t.get(I_),o=t.get(Me);if(!o.startViewTransition||n.skipNextTransition)return n.skipNextTransition=!1,new Promise(m=>setTimeout(m));let r,a=new Promise(m=>{r=m}),s=o.startViewTransition(()=>(r(),gX(t)));s.ready.catch(m=>{});let{onViewTransitionCreated:c}=n;return c&&bi(t,()=>c({transition:s,from:i,to:e})),a}function gX(t){return new Promise(i=>{Ct({read:()=>setTimeout(i)},{injector:t})})}var O_=new L(""),Xp=(()=>{class t{currentNavigation=we(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=null;events=new B;transitionAbortWithErrorSubject=new B;configLoader=d(Qp);environmentInjector=d(Qt);destroyRef=d(Fi);urlSerializer=d(sl);rootContexts=d(cl);location=d(Jo);inputBindingEnabled=d(H0,{optional:!0})!==null;titleStrategy=d(k_);options=d(Gs,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Kp);createViewTransition=d(E_,{optional:!0});navigationErrorHandler=d(O_,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>re(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Rp(o)),n=o=>this.events.next(new Np(o));this.configLoader.onLoadEndListener=n,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let n=++this.navigationId;Vn(()=>{this.transitions?.next(Ne(q({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,abortController:new AbortController,id:n}))})}setupNavigations(e){return this.transitions=new ct(null),this.transitions.pipe(Ae(n=>n!==null),lt(n=>{let o=!1;return re(n).pipe(lt(r=>{if(this.navigationId>n.id)return this.cancelNavigationTransition(n,"",oo.SupersededByNewNavigation),Sn;this.currentTransition=n,this.currentNavigation.set({id:r.id,initialUrl:r.rawUrl,extractedUrl:r.extractedUrl,targetBrowserUrl:typeof r.extras.browserUrl=="string"?this.urlSerializer.parse(r.extras.browserUrl):r.extras.browserUrl,trigger:r.source,extras:r.extras,previousNavigation:this.lastSuccessfulNavigation?Ne(q({},this.lastSuccessfulNavigation),{previousNavigation:null}):null,abort:()=>r.abortController.abort()});let a=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),s=r.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!a&&s!=="reload")return this.events.next(new pa(r.id,this.urlSerializer.serialize(r.rawUrl),"",i2.IgnoredSameUrlNavigation)),r.resolve(!1),Sn;if(this.urlHandlingStrategy.shouldProcessUrl(r.rawUrl))return re(r).pipe(lt(c=>(this.events.next(new $s(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),c.id!==this.navigationId?Sn:Promise.resolve(c))),lX(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ot(c=>{n.targetSnapshot=c.targetSnapshot,n.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation.update(f=>(f.finalUrl=c.urlAfterRedirects,f));let m=new A0(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(m)}));if(a&&this.urlHandlingStrategy.shouldProcessUrl(r.currentRawUrl)){let{id:c,extractedUrl:m,source:f,restoredState:v,extras:x}=r,w=new $s(c,this.urlSerializer.serialize(m),f,v);this.events.next(w);let O=oE(this.rootComponentType).snapshot;return this.currentTransition=n=Ne(q({},r),{targetSnapshot:O,urlAfterRedirects:m,extras:Ne(q({},x),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(K=>(K.finalUrl=m,K)),re(n)}else return this.events.next(new pa(r.id,this.urlSerializer.serialize(r.extractedUrl),"",i2.IgnoredByUrlHandlingStrategy)),r.resolve(!1),Sn}),Ot(r=>{let a=new Pp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot);this.events.next(a)}),me(r=>(this.currentTransition=n=Ne(q({},r),{guards:EK(r.targetSnapshot,r.currentSnapshot,this.rootContexts)}),n)),VK(this.environmentInjector,r=>this.events.next(r)),Ot(r=>{if(n.guardsResult=r.guardsResult,r.guardsResult&&typeof r.guardsResult!="boolean")throw Gp(this.urlSerializer,r.guardsResult);let a=new Lp(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects),r.targetSnapshot,!!r.guardsResult);this.events.next(a)}),Ae(r=>r.guardsResult?!0:(this.cancelNavigationTransition(r,"",oo.GuardRejected),!1)),s_(r=>{if(r.guards.canActivateChecks.length!==0)return re(r).pipe(Ot(a=>{let s=new Ap(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),lt(a=>{let s=!1;return re(a).pipe(dX(this.paramsInheritanceStrategy,this.environmentInjector),Ot({next:()=>s=!0,complete:()=>{s||this.cancelNavigationTransition(a,"",oo.NoDataFromResolver)}}))}),Ot(a=>{let s=new zp(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}))}),s_(r=>{let a=s=>{let c=[];if(s.routeConfig?.loadComponent){let m=l2(s)??this.environmentInjector;c.push(this.configLoader.loadComponent(m,s.routeConfig).pipe(Ot(f=>{s.component=f}),me(()=>{})))}for(let m of s.children)c.push(...a(m));return c};return gi(a(r.targetSnapshot.root)).pipe(fs(null),Be(1))}),s_(()=>this.afterPreactivation()),lt(()=>{let{currentSnapshot:r,targetSnapshot:a}=n,s=this.createViewTransition?.(this.environmentInjector,r.root,a.root);return s?tn(s).pipe(me(()=>n)):re(n)}),me(r=>{let a=MK(e.routeReuseStrategy,r.targetSnapshot,r.currentRouterState);return this.currentTransition=n=Ne(q({},r),{targetRouterState:a}),this.currentNavigation.update(s=>(s.targetRouterState=a,s)),n}),Ot(()=>{this.events.next(new z0)}),kK(this.rootContexts,e.routeReuseStrategy,r=>this.events.next(r),this.inputBindingEnabled),Be(1),ye(new Fe(r=>{let a=n.abortController.signal,s=()=>r.next();return a.addEventListener("abort",s),()=>a.removeEventListener("abort",s)}).pipe(Ae(()=>!o&&!n.targetRouterState),Ot(()=>{this.cancelNavigationTransition(n,n.abortController.signal.reason+"",oo.Aborted)}))),Ot({next:r=>{o=!0,this.lastSuccessfulNavigation=Vn(this.currentNavigation),this.events.next(new No(r.id,this.urlSerializer.serialize(r.extractedUrl),this.urlSerializer.serialize(r.urlAfterRedirects))),this.titleStrategy?.updateTitle(r.targetRouterState.snapshot),r.resolve(!0)},complete:()=>{o=!0}}),ye(this.transitionAbortWithErrorSubject.pipe(Ot(r=>{throw r}))),qr(()=>{o||this.cancelNavigationTransition(n,"",oo.SupersededByNewNavigation),this.currentTransition?.id===n.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),Mo(r=>{if(this.destroyed)return n.resolve(!1),Sn;if(o=!0,dE(r))this.events.next(new ua(n.id,this.urlSerializer.serialize(n.extractedUrl),r.message,r.cancellationCode)),SK(r)?this.events.next(new a2(r.url,r.navigationBehaviorOptions)):n.resolve(!1);else{let a=new o2(n.id,this.urlSerializer.serialize(n.extractedUrl),r,n.targetSnapshot??void 0);try{let s=bi(this.environmentInjector,()=>this.navigationErrorHandler?.(a));if(s instanceof s2){let{message:c,cancellationCode:m}=Gp(this.urlSerializer,s);this.events.next(new ua(n.id,this.urlSerializer.serialize(n.extractedUrl),c,m)),this.events.next(new a2(s.redirectTo,s.navigationBehaviorOptions))}else throw this.events.next(a),r}catch(s){this.options.resolveNavigationPromiseOnError?n.resolve(!1):n.reject(s)}}return Sn}))}))}cancelNavigationTransition(e,n,o){let r=new ua(e.id,this.urlSerializer.serialize(e.extractedUrl),n,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),n=Vn(this.currentNavigation),o=n?.targetBrowserUrl??n?.extractedUrl;return e.toString()!==o?.toString()&&!n?.extras.skipLocationChange}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function _X(t){return t!==t2}var CE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(bX),providedIn:"root"})}return t})(),qp=class{shouldDetach(i){return!1}store(i,e){}shouldAttach(i){return!1}retrieve(i){return null}shouldReuseRoute(i,e){return i.routeConfig===e.routeConfig}},bX=(()=>{class t extends qp{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),xE=(()=>{class t{urlSerializer=d(sl);options=d(Gs,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(Jo);urlHandlingStrategy=d(Kp);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new ma;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:n,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,n):n,a=o??r;return a instanceof ma?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:n,initialUrl:o}){n&&e?(this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(n,o),this.routerState=e):this.rawUrlTree=o}routerState=oE(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:()=>d(vX),providedIn:"root"})}return t})(),vX=(()=>{class t extends xE{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(n=>{n.type==="popstate"&&setTimeout(()=>{e(n.url,n.state,"popstate")})})}handleRouterEvent(e,n){e instanceof $s?this.updateStateMemento():e instanceof pa?this.commitTransition(n):e instanceof A0?this.urlUpdateStrategy==="eager"&&(n.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof z0?(this.commitTransition(n),this.urlUpdateStrategy==="deferred"&&!n.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(n),n)):e instanceof ua&&e.code!==oo.SupersededByNewNavigation&&e.code!==oo.Redirect?this.restoreHistory(n):e instanceof o2?this.restoreHistory(n,!0):e instanceof No&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:n,id:o}){let{replaceUrl:r,state:a}=n;if(this.location.isCurrentPathEqualTo(e)||r){let s=this.browserPageId,c=q(q({},a),this.generateNgRouterState(o,s));this.location.replaceState(e,"",c)}else{let s=q(q({},a),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,n=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(n&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,n){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:n}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Zp(t,i){t.events.pipe(Ae(e=>e instanceof No||e instanceof ua||e instanceof o2||e instanceof pa),me(e=>e instanceof No||e instanceof pa?0:(e instanceof ua?e.code===oo.Redirect||e.code===oo.SupersededByNewNavigation:!1)?2:1),Ae(e=>e!==2),Be(1)).subscribe(()=>{i()})}var yX={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},CX={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},bo=(()=>{class t{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Z4);stateManager=d(xE);options=d(Gs,{optional:!0})||{};pendingTasks=d(ta);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(Xp);urlSerializer=d(sl);location=d(Jo);urlHandlingStrategy=d(Kp);injector=d(Qt);_events=new B;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(CE);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(u2,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(H0,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new Se;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(n=>{try{let o=this.navigationTransitions.currentTransition,r=Vn(this.navigationTransitions.currentNavigation);if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(n,r),n instanceof ua&&n.code!==oo.Redirect&&n.code!==oo.SupersededByNewNavigation)this.navigated=!0;else if(n instanceof No)this.navigated=!0;else if(n instanceof a2){let a=n.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(n.url,o.currentRawUrl),c=q({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||_X(o.source)},a);this.scheduleNavigation(s,t2,null,c,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}vK(n)&&this._events.next(n)}catch(o){this.navigationTransitions.transitionAbortWithErrorSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),t2,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,n,o)=>{this.navigateToSyncWithBrowser(e,o,n)})}navigateToSyncWithBrowser(e,n,o){let r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let c=q({},o);delete c.navigationId,delete c.\u0275routerPageId,Object.keys(c).length!==0&&(r.state=c)}let s=this.parseUrl(e);this.scheduleNavigation(s,n,a,r).catch(c=>{this.disposed||this.injector.get(Zi)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Vn(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(S_),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,n={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:c}=n,m=c?this.currentUrlTree.fragment:a,f=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":f=q(q({},this.currentUrlTree.queryParams),r);break;case"preserve":f=this.currentUrlTree.queryParams;break;default:f=r||null}f!==null&&(f=this.removeEmptyProps(f));let v;try{let x=o?o.snapshot:this.routerState.snapshot.root;v=eE(x)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),v=this.currentUrlTree.root}return tE(v,e,f,m??null)}navigateByUrl(e,n={skipLocationChange:!1}){let o=Us(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,t2,null,n)}navigate(e,n={skipLocationChange:!1}){return xX(e),this.navigateByUrl(this.createUrlTree(e,n),n)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn($o(4018,!1)),this.urlSerializer.parse("/")}}isActive(e,n){let o;if(n===!0?o=q({},yX):n===!1?o=q({},CX):o=n,Us(e))return zk(this.currentUrlTree,e,o);let r=this.parseUrl(e);return zk(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((n,[o,r])=>(r!=null&&(n[o]=r),n),{})}scheduleNavigation(e,n,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,c,m;a?(s=a.resolve,c=a.reject,m=a.promise):m=new Promise((v,x)=>{s=v,c=x});let f=this.pendingTasks.add();return Zp(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(f))}),this.navigationTransitions.handleNavigationRequest({source:n,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:c,promise:m,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),m.catch(v=>Promise.reject(v))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function xX(t){for(let i=0;i{class t{router;route;tabIndexAttribute;renderer;el;locationStrategy;reactiveHref=we(null);get href(){return Vn(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new B;applicationErrorHandler=d(Zi);options=d(Gs,{optional:!0});constructor(e,n,o,r,a,s){this.router=e,this.route=n,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s,this.reactiveHref.set(d(new dn("href"),{optional:!0}));let c=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=c==="a"||c==="area"||!!(typeof customElements=="object"&&customElements.get(c)?.observedAttributes?.includes?.("href")),this.isAnchorElement?this.setTabIndexIfNotOnNativeEl("0"):this.subscribeToNavigationEventsIfNecessary()}subscribeToNavigationEventsIfNecessary(){if(this.subscription!==void 0||!this.isAnchorElement)return;let e=this.preserveFragment,n=o=>o==="merge"||o==="preserve";e||=n(this.queryParamsHandling),e||=!this.queryParamsHandling&&!n(this.options?.defaultQueryParamsHandling),e&&(this.subscription=this.router.events.subscribe(o=>{o instanceof No&&this.updateHref()}))}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&(this.updateHref(),this.subscribeToNavigationEventsIfNecessary()),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(Us(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,n,o,r,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||n||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let c={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,c)?.catch(m=>{this.applicationErrorHandler(m)}),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.reactiveHref.set(e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??"":null)}applyAttributeValue(e,n){let o=this.renderer,r=this.el.nativeElement;n!==null?o.setAttribute(r,e,n):o.removeAttribute(r,e)}get urlTree(){return this.routerLinkInput===null?null:Us(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(n){return new(n||t)(Ce(bo),Ce(ro),Od("tabindex"),Ce(Ke),Ce(Q),Ce(Sr))};static \u0275dir=z({type:t,selectors:[["","routerLink",""]],hostVars:2,hostBindings:function(n,o){n&1&&N("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),n&2&&ne("href",o.reactiveHref(),W8)("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",H],skipLocationChange:[2,"skipLocationChange","skipLocationChange",H],replaceUrl:[2,"replaceUrl","replaceUrl",H],routerLink:"routerLink"},features:[Re]})}return t})(),MX=(()=>{class t{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new j;constructor(e,n,o,r,a){this.router=e,this.element=n,this.renderer=o,this.cdr=r,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof No&&this.update()})}ngAfterContentInit(){re(this.links.changes,re(null)).pipe(Wr()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(n=>!!n).map(n=>n.onChanges);this.linkInputChangesSubscription=tn(e).pipe(Wr()).subscribe(n=>{this._isActive!==this.isLinkActive(this.router)(n)&&this.update()})}set routerLinkActive(e){let n=Array.isArray(e)?e:e.split(" ");this.classes=n.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(n=>{e?this.renderer.addClass(this.element.nativeElement,n):this.renderer.removeClass(this.element.nativeElement,n)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let n=wX(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let r=o.urlTree;return r?e.isActive(r,n):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(n){return new(n||t)(Ce(bo),Ce(Q),Ce(Ke),Ce(xe),Ce(m2,8))};static \u0275dir=z({type:t,selectors:[["","routerLinkActive",""]],contentQueries:function(n,o,r){if(n&1&&Ee(r,m2,5),n&2){let a;U(a=$())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Re]})}return t})();function wX(t){return!!t.paths}var $0=class{};var ME=(()=>{class t{router;injector;preloadingStrategy;loader;subscription;constructor(e,n,o,r){this.router=e,this.injector=n,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(Ae(e=>e instanceof No),Qi(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,n){let o=[];for(let r of n){r.providers&&!r._injector&&(r._injector=v1(r.providers,e,`Route: ${r.path}`));let a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return tn(o).pipe(Wr())}preloadConfig(e,n){return this.preloadingStrategy.preload(n,()=>{let o;n.loadChildren&&n.canLoad===void 0?o=this.loader.loadChildren(e,n):o=re(null);let r=o.pipe(_n(a=>a===null?re(void 0):(n._loadedRoutes=a.routes,n._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(n.loadComponent&&!n._loadedComponent){let a=this.loader.loadComponent(e,n);return tn([r,a]).pipe(Wr())}else return r})}static \u0275fac=function(n){return new(n||t)(ke(bo),ke(Qt),ke($0),ke(Qp))};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wE=new L(""),DX=(()=>{class t{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource=t2;restoredId=0;store={};constructor(e,n,o,r,a={}){this.urlSerializer=e,this.transitions=n,this.viewportScroller=o,this.zone=r,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof $s?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof No?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof pa&&e.code===i2.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{if(!(e instanceof r2))return;let n={behavior:"instant"};e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0],n):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position,n):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0])})}scheduleScrollEvent(e,n){this.zone.runOutsideAngular(()=>Hr(this,null,function*(){yield new Promise(o=>{setTimeout(o),typeof requestAnimationFrame<"u"&&requestAnimationFrame(o)}),this.zone.run(()=>{this.transitions.events.next(new r2(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,n))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(n){Hc()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function SX(t){return t.routerState.root}function G0(t,i){return{\u0275kind:t,\u0275providers:i}}function kX(){let t=d(be);return i=>{let e=t.get(li);if(i!==e.components[0])return;let n=t.get(bo),o=t.get(DE);t.get(P_)===1&&n.initialNavigation(),t.get(EE,null,{optional:!0})?.setUpPreloading(),t.get(wE,null,{optional:!0})?.init(),n.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var DE=new L("",{factory:()=>new B}),P_=new L("",{providedIn:"root",factory:()=>1});function SE(){let t=[{provide:N4,useValue:!0},{provide:P_,useValue:0},tm(()=>{let i=d(be);return i.get(G5,Promise.resolve()).then(()=>new Promise(n=>{let o=i.get(bo),r=i.get(DE);Zp(o,()=>{n(!0)}),i.get(Xp).afterPreactivation=()=>(n(!0),r.closed?re(void 0):r),o.initialNavigation()}))})];return G0(2,t)}function kE(){let t=[tm(()=>{d(bo).setUpLocationChangeListener()}),{provide:P_,useValue:2}];return G0(3,t)}var EE=new L("");function IE(t){return G0(0,[{provide:EE,useExisting:ME},{provide:$0,useExisting:t}])}function OE(){return G0(8,[w_,{provide:H0,useExisting:w_}])}function TE(t){aa("NgRouterViewTransitions");let i=[{provide:E_,useValue:yE},{provide:I_,useValue:q({skipNextTransition:!!t?.skipInitialTransition},t)}];return G0(9,i)}var PE=[Jo,{provide:sl,useClass:Hs},bo,cl,{provide:ro,useFactory:SX,deps:[bo]},Qp,[]],EX=(()=>{class t{constructor(){}static forRoot(e,n){return{ngModule:t,providers:[PE,[],{provide:u2,multi:!0,useValue:e},[],n?.errorHandler?{provide:O_,useValue:n.errorHandler}:[],{provide:Gs,useValue:n||{}},n?.useHash?OX():TX(),IX(),n?.preloadingStrategy?IE(n.preloadingStrategy).\u0275providers:[],n?.initialNavigation?PX(n):[],n?.bindToComponentInputs?OE().\u0275providers:[],n?.enableViewTransitions?TE().\u0275providers:[],LX()]}}static forChild(e){return{ngModule:t,providers:[{provide:u2,multi:!0,useValue:e}]}}static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function IX(){return{provide:wE,useFactory:()=>{let t=d(SD),i=d(se),e=d(Gs),n=d(Xp),o=d(sl);return e.scrollOffset&&t.setOffset(e.scrollOffset),new DX(o,n,t,i,e)}}}function OX(){return{provide:Sr,useClass:t7}}function TX(){return{provide:Sr,useClass:vm}}function PX(t){return[t.initialNavigation==="disabled"?kE().\u0275providers:[],t.initialNavigation==="enabledBlocking"?SE().\u0275providers:[]]}var T_=new L("");function LX(){return[{provide:T_,useFactory:kX},{provide:nm,multi:!0,useExisting:T_}]}var zX=["*"],RX=[[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],[["","mat-card-image",""],["","matCardImage",""],["","mat-card-sm-image",""],["","matCardImageSmall",""],["","mat-card-md-image",""],["","matCardImageMedium",""],["","mat-card-lg-image",""],["","matCardImageLarge",""],["","mat-card-xl-image",""],["","matCardImageXLarge",""]],"*"],NX=[`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], [matCardTitle], [matCardSubtitle]`,`[mat-card-image], [matCardImage], [mat-card-sm-image], [matCardImageSmall], @@ -24,32 +24,32 @@ ${e.map((n,o)=>`${o+1}) ${n.toString()}`).join(` [mat-card-xl-image], [matCardImageXLarge]`,"*"],FX=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],VX=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, [mat-card-title], [mat-card-subtitle], [matCardTitle], [matCardSubtitle]`,"*"],BX=new L("MAT_CARD_CONFIG"),LE=(()=>{class t{appearance;constructor(){let e=d(BX,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:8,hostBindings:function(n,o){n&2&&oe("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")("mat-mdc-card-filled",o.appearance==="filled")("mdc-card--filled",o.appearance==="filled")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:zX,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-color:var(--mat-card-elevated-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-elevated-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mat-card-elevated-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mat-card-outlined-container-color, var(--mat-sys-surface));border-radius:var(--mat-card-outlined-container-shape, var(--mat-sys-corner-medium));border-width:var(--mat-card-outlined-outline-width, 1px);border-color:var(--mat-card-outlined-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mat-card-outlined-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mat-mdc-card-filled{background-color:var(--mat-card-filled-container-color, var(--mat-sys-surface-container-highest));border-radius:var(--mat-card-filled-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mat-card-filled-container-elevation, var(--mat-sys-level0))}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end} -`],encapsulation:2,changeDetection:0})}return t})(),QDe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})(),KDe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],ngContentSelectors:NX,decls:4,vars:0,template:function(n,o){n&1&&(De(RX),nt(0,"div"),ae(1),rt(),ae(2,1),ae(3,2))},encapsulation:2,changeDetection:0})}return t})(),AE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),XDe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),ZDe=(()=>{class t{align="start";static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-mdc-card-actions-align-end",o.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return t})(),JDe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:VX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(n,o){n&1&&(De(FX),ae(0),nt(1,"div",0),ae(2,1),rt(),ae(3,2))},encapsulation:2,changeDetection:0})}return t})();var eSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"]})}return t})();var tSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-mdc-card-md-image","mdc-card__media"]})}return t})();var zE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var L_=class{_box;_destroyed=new B;_resizeSubject=new B;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new Fe(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(Ae(e=>e.some(n=>n.target===i)),hs({bufferSize:1,refCount:!0}),ye(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Jp=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=d(se);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new L_(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var HX=["notch"],UX=["matFormFieldNotchedOutline",""],$X=["*"],RE=["iconPrefixContainer"],NE=["textPrefixContainer"],FE=["iconSuffixContainer"],VE=["textSuffixContainer"],GX=["textField"],WX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],qX=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function YX(t,i){t&1&&F(0,"span",21)}function QX(t,i){if(t&1&&(h(0,"label",20),ae(1,1),E(2,YX,1,0,"span",21),_()),t&2){let e=w(2);D("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),te("for",e._control.disableAutomaticLabeling?null:e._control.id),p(2),I(!e.hideRequiredMarker&&e._control.required?2:-1)}}function KX(t,i){if(t&1&&E(0,QX,3,5,"label",20),t&2){let e=w();I(e._hasFloatingLabel()?0:-1)}}function XX(t,i){t&1&&F(0,"div",7)}function ZX(t,i){}function JX(t,i){if(t&1&&ot(0,ZX,0,0,"ng-template",13),t&2){w(2);let e=Nt(1);D("ngTemplateOutlet",e)}}function eZ(t,i){if(t&1&&(h(0,"div",9),E(1,JX,1,1,null,13),_()),t&2){let e=w();D("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),p(),I(e._forceDisplayInfixLabel()?-1:1)}}function tZ(t,i){t&1&&(h(0,"div",10,2),ae(2,2),_())}function nZ(t,i){t&1&&(h(0,"div",11,3),ae(2,3),_())}function iZ(t,i){}function oZ(t,i){if(t&1&&ot(0,iZ,0,0,"ng-template",13),t&2){w();let e=Nt(1);D("ngTemplateOutlet",e)}}function rZ(t,i){t&1&&(h(0,"div",14,4),ae(2,4),_())}function aZ(t,i){t&1&&(h(0,"div",15,5),ae(2,5),_())}function sZ(t,i){t&1&&F(0,"div",16)}function cZ(t,i){t&1&&(h(0,"div",18),ae(1,6),_())}function lZ(t,i){if(t&1&&(h(0,"mat-hint",22),y(1),_()),t&2){let e=w(2);D("id",e._hintLabelId),p(),T(e.hintLabel)}}function dZ(t,i){if(t&1&&(h(0,"div",19),E(1,lZ,2,2,"mat-hint",22),ae(2,7),F(3,"div",23),ae(4,8),_()),t&2){let e=w();p(),I(e.hintLabel?1:-1)}}var Cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-label"]]})}return t})(),A_=new L("MatError"),ao=(()=>{class t{id=d(He).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("id",o.id)},inputs:{id:"id"},features:[de([{provide:A_,useExisting:t}])]})}return t})(),W0=(()=>{class t{align="start";id=d(He).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(Lt("id",o.id),te("align",null),oe("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),z_=new L("MatPrefix"),q0=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[de([{provide:z_,useExisting:t}])]})}return t})(),R_=new L("MatSuffix"),Za=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[de([{provide:R_,useExisting:t}])]})}return t})(),WE=new L("FloatingLabelParent"),BE=(()=>{class t{_elementRef=d(Q);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=d(Jp);_ngZone=d(se);_parent=d(WE);_resizeSubscription=new Se;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return uZ(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function uZ(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var jE="mdc-line-ripple--active",ef="mdc-line-ripple--deactivating",HE=(()=>{class t{_elementRef=d(Q);_cleanupTransitionEnd;constructor(){let e=d(se),n=d(Ke);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(ef),e.add(jE)}deactivate(){this._elementRef.nativeElement.classList.add(ef)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(ef);e.propertyName==="opacity"&&o&&n.remove(jE,ef)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),UE=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&ue(HX,5),n&2){let r;U(r=$())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:UX,ngContentSelectors:$X,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(De(),Tn(0,"div",1),nt(1,"div",2,0),ae(3),rt(),Tn(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),ll=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t})}return t})();var fa=new L("MatFormField"),tf=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$E="fill",mZ="auto",GE="fixed",pZ="translateY(-50%)",Bt=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_platform=d(je);_idGenerator=d(He);_ngZone=d(se);_defaults=d(tf,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=$d("iconPrefixContainer");_textPrefixContainerSignal=$d("textPrefixContainer");_iconSuffixContainerSignal=$d("iconSuffixContainer");_textSuffixContainerSignal=$d("textSuffixContainer");_prefixSuffixContainers=Zn(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Rw(Cn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=yn(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||mZ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||$E;this._appearanceSignal.set(n)}_appearanceSignal=we($E);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||GE}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||GE}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new B;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ue();constructor(){let e=this._defaults,n=d(bt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),sa(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Zn(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(We([void 0,void 0]),me(()=>[n.errorState,n.userAriaDescribedBy]),N3(),Ae(([[r,a],[s,c]])=>r!==s||a!==c)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(ye(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ft(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){Uw({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Zn(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,m=r?.getBoundingClientRect().width??0,f=this._currentDirection==="rtl"?"-1":"1",v=`${a+s}px`,M=`calc(${f} * (${v} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,O=`var(--mat-mdc-form-field-label-transform, ${pZ} translateX(${M}))`,K=a+s+c+m;return[O,K]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(S5(r,o._labelChild,Cn,5),Ee(r,ll,5),Ee(r,z_,5),Ee(r,R_,5),Ee(r,A_,5),Ee(r,W0,5)),n&2){om();let a;U(a=$())&&(o._formFieldControl=a.first),U(a=$())&&(o._prefixChildren=a),U(a=$())&&(o._suffixChildren=a),U(a=$())&&(o._errorChildren=a),U(a=$())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(x1(o._iconPrefixContainerSignal,RE,5),x1(o._textPrefixContainerSignal,NE,5),x1(o._iconSuffixContainerSignal,FE,5),x1(o._textSuffixContainerSignal,VE,5),ue(GX,5),ue(RE,5),ue(NE,5),ue(FE,5),ue(VE,5),ue(BE,5),ue(UE,5),ue(HE,5)),n&2){om(4);let r;U(r=$())&&(o._textField=r.first),U(r=$())&&(o._iconPrefixContainer=r.first),U(r=$())&&(o._textPrefixContainer=r.first),U(r=$())&&(o._iconSuffixContainer=r.first),U(r=$())&&(o._textSuffixContainer=r.first),U(r=$())&&(o._floatingLabel=r.first),U(r=$())&&(o._notchedOutline=r.first),U(r=$())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&oe("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[de([{provide:fa,useExisting:t},{provide:WE,useExisting:t}])],ngContentSelectors:qX,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let r=le();De(WX),ot(0,KX,1,1,"ng-template",null,0,ks),h(2,"div",6,1),N("click",function(s){return G(r),W(o._control.onContainerClick(s))}),E(4,XX,1,0,"div",7),h(5,"div",8),E(6,eZ,2,2,"div",9),E(7,tZ,3,0,"div",10),E(8,nZ,3,0,"div",11),h(9,"div",12),E(10,oZ,1,1,null,13),ae(11),_(),E(12,rZ,3,0,"div",14),E(13,aZ,3,0,"div",15),_(),E(14,sZ,1,0,"div",16),_(),h(15,"div",17),E(16,cZ,2,0,"div",18)(17,dZ,5,1,"div",19),_()}if(n&2){let r;p(2),oe("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),p(2),I(!o._hasOutline()&&!o._control.disabled?4:-1),p(2),I(o._hasOutline()?6:-1),p(),I(o._hasIconPrefix?7:-1),p(),I(o._hasTextPrefix?8:-1),p(2),I(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),p(2),I(o._hasTextSuffix?12:-1),p(),I(o._hasIconSuffix?13:-1),p(),I(o._hasOutline()?-1:14),p(),oe("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();p(),I((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[BE,UE,Es,HE,W0],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} +`],encapsulation:2,changeDetection:0})}return t})(),KDe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return t})(),XDe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-card-title-group"]],hostAttrs:[1,"mat-mdc-card-title-group"],ngContentSelectors:NX,decls:4,vars:0,template:function(n,o){n&1&&(De(RX),nt(0,"div"),ae(1),rt(),ae(2,1),ae(3,2))},encapsulation:2,changeDetection:0})}return t})(),AE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return t})(),ZDe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return t})(),JDe=(()=>{class t{align="start";static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-mdc-card-actions-align-end",o.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return t})(),eSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:VX,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(n,o){n&1&&(De(FX),ae(0),nt(1,"div",0),ae(2,1),rt(),ae(3,2))},encapsulation:2,changeDetection:0})}return t})();var tSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-card-image",""],["","matCardImage",""]],hostAttrs:[1,"mat-mdc-card-image","mdc-card__media"]})}return t})();var nSe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-card-md-image",""],["","matCardImageMedium",""]],hostAttrs:[1,"mat-mdc-card-md-image","mdc-card__media"]})}return t})();var zE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var L_=class{_box;_destroyed=new B;_resizeSubject=new B;_resizeObserver;_elementObservables=new Map;constructor(i){this._box=i,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(i){return this._elementObservables.has(i)||this._elementObservables.set(i,new Fe(e=>{let n=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(i,{box:this._box}),()=>{this._resizeObserver?.unobserve(i),n.unsubscribe(),this._elementObservables.delete(i)}}).pipe(Ae(e=>e.some(n=>n.target===i)),hs({bufferSize:1,refCount:!0}),ye(this._destroyed))),this._elementObservables.get(i)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Jp=(()=>{class t{_cleanupErrorListener;_observers=new Map;_ngZone=d(se);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,n){let o=n?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new L_(o)),this._observers.get(o).observe(e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var HX=["notch"],UX=["matFormFieldNotchedOutline",""],$X=["*"],RE=["iconPrefixContainer"],NE=["textPrefixContainer"],FE=["iconSuffixContainer"],VE=["textSuffixContainer"],GX=["textField"],WX=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],qX=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function YX(t,i){t&1&&F(0,"span",21)}function QX(t,i){if(t&1&&(h(0,"label",20),ae(1,1),E(2,YX,1,0,"span",21),_()),t&2){let e=M(2);D("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),ne("for",e._control.disableAutomaticLabeling?null:e._control.id),p(2),I(!e.hideRequiredMarker&&e._control.required?2:-1)}}function KX(t,i){if(t&1&&E(0,QX,3,5,"label",20),t&2){let e=M();I(e._hasFloatingLabel()?0:-1)}}function XX(t,i){t&1&&F(0,"div",7)}function ZX(t,i){}function JX(t,i){if(t&1&&ot(0,ZX,0,0,"ng-template",13),t&2){M(2);let e=Nt(1);D("ngTemplateOutlet",e)}}function eZ(t,i){if(t&1&&(h(0,"div",9),E(1,JX,1,1,null,13),_()),t&2){let e=M();D("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),p(),I(e._forceDisplayInfixLabel()?-1:1)}}function tZ(t,i){t&1&&(h(0,"div",10,2),ae(2,2),_())}function nZ(t,i){t&1&&(h(0,"div",11,3),ae(2,3),_())}function iZ(t,i){}function oZ(t,i){if(t&1&&ot(0,iZ,0,0,"ng-template",13),t&2){M();let e=Nt(1);D("ngTemplateOutlet",e)}}function rZ(t,i){t&1&&(h(0,"div",14,4),ae(2,4),_())}function aZ(t,i){t&1&&(h(0,"div",15,5),ae(2,5),_())}function sZ(t,i){t&1&&F(0,"div",16)}function cZ(t,i){t&1&&(h(0,"div",18),ae(1,6),_())}function lZ(t,i){if(t&1&&(h(0,"mat-hint",22),y(1),_()),t&2){let e=M(2);D("id",e._hintLabelId),p(),T(e.hintLabel)}}function dZ(t,i){if(t&1&&(h(0,"div",19),E(1,lZ,2,2,"mat-hint",22),ae(2,7),F(3,"div",23),ae(4,8),_()),t&2){let e=M();p(),I(e.hintLabel?1:-1)}}var Cn=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-label"]]})}return t})(),A_=new L("MatError"),ao=(()=>{class t{id=d(He).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("id",o.id)},inputs:{id:"id"},features:[de([{provide:A_,useExisting:t}])]})}return t})(),W0=(()=>{class t{align="start";id=d(He).getId("mat-mdc-hint-");static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(n,o){n&2&&(Lt("id",o.id),ne("align",null),oe("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return t})(),z_=new L("MatPrefix"),q0=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matPrefix",""],["","matIconPrefix",""],["","matTextPrefix",""]],inputs:{_isTextSelector:[0,"matTextPrefix","_isTextSelector"]},features:[de([{provide:z_,useExisting:t}])]})}return t})(),R_=new L("MatSuffix"),Za=(()=>{class t{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[de([{provide:R_,useExisting:t}])]})}return t})(),WE=new L("FloatingLabelParent"),BE=(()=>{class t{_elementRef=d(Q);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=d(Jp);_ngZone=d(se);_parent=d(WE);_resizeSubscription=new Se;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return uZ(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return t})();function uZ(t){let i=t;if(i.offsetParent!==null)return i.scrollWidth;let e=i.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let n=e.scrollWidth;return e.remove(),n}var jE="mdc-line-ripple--active",ef="mdc-line-ripple--deactivating",HE=(()=>{class t{_elementRef=d(Q);_cleanupTransitionEnd;constructor(){let e=d(se),n=d(Ke);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=n.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(ef),e.add(jE)}deactivate(){this._elementRef.nativeElement.classList.add(ef)}_handleTransitionEnd=e=>{let n=this._elementRef.nativeElement.classList,o=n.contains(ef);e.propertyName==="opacity"&&o&&n.remove(jE,ef)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return t})(),UE=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);open=!1;_notch;ngAfterViewInit(){let e=this._elementRef.nativeElement,n=e.querySelector(".mdc-floating-label");n?(e.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(n.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>n.style.transitionDuration="")}))):e.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){let n=this._notch.nativeElement;!this.open||!e?n.style.width="":n.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}_setMaxWidth(e){this._notch.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${e}px)`)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(n,o){if(n&1&&ue(HX,5),n&2){let r;U(r=$())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:UX,ngContentSelectors:$X,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(n,o){n&1&&(De(),Tn(0,"div",1),nt(1,"div",2,0),ae(3),rt(),Tn(4,"div",3))},encapsulation:2,changeDetection:0})}return t})(),ll=(()=>{class t{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;describedByIds;static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t})}return t})();var fa=new L("MatFormField"),tf=new L("MAT_FORM_FIELD_DEFAULT_OPTIONS"),$E="fill",mZ="auto",GE="fixed",pZ="translateY(-50%)",Bt=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_platform=d(je);_idGenerator=d(He);_ngZone=d(se);_defaults=d(tf,{optional:!0});_currentDirection;_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_iconPrefixContainerSignal=$d("iconPrefixContainer");_textPrefixContainerSignal=$d("textPrefixContainer");_iconSuffixContainerSignal=$d("iconSuffixContainer");_textSuffixContainerSignal=$d("textSuffixContainer");_prefixSuffixContainers=Zn(()=>[this._iconPrefixContainerSignal(),this._textPrefixContainerSignal(),this._iconSuffixContainerSignal(),this._textSuffixContainerSignal()].map(e=>e?.nativeElement).filter(e=>e!==void 0));_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=Rw(Cn);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=yn(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||mZ}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearanceSignal()}set appearance(e){let n=e||this._defaults?.appearance||$E;this._appearanceSignal.set(n)}_appearanceSignal=we($E);get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||GE}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||GE}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");_describedByIds;get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new B;_isFocused=null;_explicitFormFieldControl;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_outlineLabelOffsetResizeObserver=null;_animationsDisabled=Ue();constructor(){let e=this._defaults,n=d(bt);e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),sa(()=>this._currentDirection=n.valueSignal()),this._syncOutlineLabelOffset()}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._outlineLabelOffsetResizeObserver?.disconnect(),this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=Zn(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let n=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),n.controlType&&this._elementRef.nativeElement.classList.add(o+n.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=n.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=n.stateChanges.pipe(We([void 0,void 0]),me(()=>[n.errorState,n.userAriaDescribedBy]),N3(),Ae(([[r,a],[s,c]])=>r!==s||a!==c)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),n.ngControl&&n.ngControl.valueChanges&&(this._valueChanges=n.ngControl.valueChanges.pipe(ye(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),ft(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){let e=this._control.focused;e&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!e&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._elementRef.nativeElement.classList.toggle("mat-focused",e),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",e)}_syncOutlineLabelOffset(){Uw({earlyRead:()=>{if(this._appearanceSignal()!=="outline")return this._outlineLabelOffsetResizeObserver?.disconnect(),null;if(globalThis.ResizeObserver){this._outlineLabelOffsetResizeObserver||=new globalThis.ResizeObserver(()=>{this._writeOutlinedLabelStyles(this._getOutlinedLabelOffset())});for(let e of this._prefixSuffixContainers())this._outlineLabelOffsetResizeObserver.observe(e,{box:"border-box"})}return this._getOutlinedLabelOffset()},write:e=>this._writeOutlinedLabelStyles(e())})}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=Zn(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let n=this._control?this._control.ngControl:null;return n&&n[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let r=this._hintChildren?this._hintChildren.find(s=>s.align==="start"):null,a=this._hintChildren?this._hintChildren.find(s=>s.align==="end"):null;r?e.push(r.id):this._hintLabel&&e.push(this._hintLabelId),a&&e.push(a.id)}else this._errorChildren&&e.push(...this._errorChildren.map(r=>r.id));let n=this._control.describedByIds,o;if(n){let r=this._describedByIds||e;o=e.concat(n.filter(a=>a&&!r.includes(a)))}else o=e;this._control.setDescribedByIds(o),this._describedByIds=e}}_getOutlinedLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return null;if(!this._iconPrefixContainer&&!this._textPrefixContainer)return["",null];if(!this._isAttachedToDom())return null;let e=this._iconPrefixContainer?.nativeElement,n=this._textPrefixContainer?.nativeElement,o=this._iconSuffixContainer?.nativeElement,r=this._textSuffixContainer?.nativeElement,a=e?.getBoundingClientRect().width??0,s=n?.getBoundingClientRect().width??0,c=o?.getBoundingClientRect().width??0,m=r?.getBoundingClientRect().width??0,f=this._currentDirection==="rtl"?"-1":"1",v=`${a+s}px`,w=`calc(${f} * (${v} + var(--mat-mdc-form-field-label-offset-x, 0px)))`,O=`var(--mat-mdc-form-field-label-transform, ${pZ} translateX(${w}))`,K=a+s+c+m;return[O,K]}_writeOutlinedLabelStyles(e){if(e!==null){let[n,o]=e;this._floatingLabel&&(this._floatingLabel.element.style.transform=n),o!==null&&this._notchedOutline?._setMaxWidth(o)}}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let n=e.getRootNode();return n&&n!==e}return document.documentElement.contains(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-form-field"]],contentQueries:function(n,o,r){if(n&1&&(S5(r,o._labelChild,Cn,5),Ee(r,ll,5),Ee(r,z_,5),Ee(r,R_,5),Ee(r,A_,5),Ee(r,W0,5)),n&2){om();let a;U(a=$())&&(o._formFieldControl=a.first),U(a=$())&&(o._prefixChildren=a),U(a=$())&&(o._suffixChildren=a),U(a=$())&&(o._errorChildren=a),U(a=$())&&(o._hintChildren=a)}},viewQuery:function(n,o){if(n&1&&(x1(o._iconPrefixContainerSignal,RE,5),x1(o._textPrefixContainerSignal,NE,5),x1(o._iconSuffixContainerSignal,FE,5),x1(o._textSuffixContainerSignal,VE,5),ue(GX,5),ue(RE,5),ue(NE,5),ue(FE,5),ue(VE,5),ue(BE,5),ue(UE,5),ue(HE,5)),n&2){om(4);let r;U(r=$())&&(o._textField=r.first),U(r=$())&&(o._iconPrefixContainer=r.first),U(r=$())&&(o._textPrefixContainer=r.first),U(r=$())&&(o._iconSuffixContainer=r.first),U(r=$())&&(o._textSuffixContainer=r.first),U(r=$())&&(o._floatingLabel=r.first),U(r=$())&&(o._notchedOutline=r.first),U(r=$())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:38,hostBindings:function(n,o){n&2&&oe("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[de([{provide:fa,useExisting:t},{provide:WE,useExisting:t}])],ngContentSelectors:qX,decls:18,vars:21,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],["aria-atomic","true","aria-live","polite",1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],[1,"mat-mdc-form-field-error-wrapper"],[1,"mat-mdc-form-field-hint-wrapper"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(n,o){if(n&1){let r=le();De(WX),ot(0,KX,1,1,"ng-template",null,0,ks),h(2,"div",6,1),N("click",function(s){return G(r),W(o._control.onContainerClick(s))}),E(4,XX,1,0,"div",7),h(5,"div",8),E(6,eZ,2,2,"div",9),E(7,tZ,3,0,"div",10),E(8,nZ,3,0,"div",11),h(9,"div",12),E(10,oZ,1,1,null,13),ae(11),_(),E(12,rZ,3,0,"div",14),E(13,aZ,3,0,"div",15),_(),E(14,sZ,1,0,"div",16),_(),h(15,"div",17),E(16,cZ,2,0,"div",18)(17,dZ,5,1,"div",19),_()}if(n&2){let r;p(2),oe("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),p(2),I(!o._hasOutline()&&!o._control.disabled?4:-1),p(2),I(o._hasOutline()?6:-1),p(),I(o._hasIconPrefix?7:-1),p(),I(o._hasTextPrefix?8:-1),p(2),I(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),p(2),I(o._hasTextSuffix?12:-1),p(),I(o._hasIconSuffix?13:-1),p(),I(o._hasOutline()?-1:14),p(),oe("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();p(),I((r=a)==="error"?16:r==="hint"?17:-1)}},dependencies:[BE,UE,Es,HE,W0],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator,.mdc-text-field__input::-webkit-search-cancel-button{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-filled-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-filled-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-filled-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mat-form-field-outlined-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mat-form-field-outlined-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-outlined-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-filled-error-caret-color, var(--mat-sys-error))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mat-form-field-outlined-error-caret-color, var(--mat-sys-error))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-filled-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mat-form-field-outlined-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mat-form-field-filled-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mat-form-field-filled-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mat-form-field-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-filled-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-filled-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-filled-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-filled-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-filled-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mat-form-field-filled-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-filled-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-filled-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-filled-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mat-form-field-outlined-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mat-form-field-outlined-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mat-form-field-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mat-form-field-outlined-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mat-form-field-outlined-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mat-form-field-outlined-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mat-form-field-outlined-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-form-field-outlined-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-form-field-outlined-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-form-field-outlined-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-outline-color, var(--mat-sys-outline));border-width:var(--mat-form-field-outlined-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mat-form-field-outlined-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mat-form-field-outlined-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{max-width:min(100%,calc(100% - max(12px, var(--mat-form-field-outlined-container-shape, var(--mat-sys-corner-extra-small))) * 2))}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mat-form-field-filled-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mat-form-field-filled-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mat-form-field-filled-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mat-form-field-filled-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} `],encapsulation:2,changeDetection:0})}return t})();var Ws=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,U1,Bt,fe]})}return t})();var qE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} -`],encapsulation:2,changeDetection:0})}return t})(),fZ={passive:!0},YE=(()=>{class t{_platform=d(je);_ngZone=d(se);_renderer=d(On).createRenderer(null,null);_styleLoader=d(at);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Sn;this._styleLoader.load(qE);let n=kn(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new B,a="cdk-text-field-autofilled",s=m=>{m.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!0}))):m.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!1})))},c=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,fZ)));return this._monitoredElements.set(n,{subject:r,unlisten:c}),r}stopMonitoring(e){let n=kn(e),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var nf=(()=>{class t{_elementRef=d(Q);_platform=d(je);_ngZone=d(se);_renderer=d(Ke);_resizeEvents=new B;_previousValue;_initialHeight;_destroyed=new B;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=vn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=vn(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=d(Me);_hasFocus;_isViewInited=!1;constructor(){d(at).load(qE),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe($l(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),n=e.style;e.rows=1,n.position="absolute",n.visibility="hidden",n.border="none",n.padding="0",n.height="",n.minHeight="",n.maxHeight="",n.top=n.bottom=n.left=n.right="auto",n.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,n=e.style.marginBottom||"",o=this._platform.FIREFOX,r=o&&this._hasFocus,a=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";r&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),r&&(e.style.marginBottom=n),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let n=this._elementRef.nativeElement,o=n.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;let r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(n)):setTimeout(()=>this._scrollToCaretPosition(n))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:n,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(n,o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(n,o){n&1&&N("input",function(){return o._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",H],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),QE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var of=new L("MAT_INPUT_VALUE_ACCESSOR");var ha=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var p2=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var hZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"],gZ=new L("MAT_INPUT_CONFIG"),ti=(()=>{class t{_elementRef=d(Q);_platform=d(je);ngControl=d(ei,{optional:!0,self:!0});_autofillMonitor=d(YE);_ngZone=d(se);_formField=d(fa,{optional:!0});_renderer=d(Ke);_uid=d(He).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=d(gZ,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=yn(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(en.required)??!1}set required(e){this._required=yn(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&e_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=yn(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>e_().has(e));constructor(){let e=d(H1,{optional:!0}),n=d(ui,{optional:!0}),o=d(ha),r=d(of,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?ea(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new p2(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&sa(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){hZ.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&N("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(Lt("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),te("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),oe("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},exportAs:["matInput"],features:[de([{provide:ll,useExisting:t}]),Re]})}return t})(),KE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,Ws,Ws,QE,fe]})}return t})();var rf=(()=>{class t{_animationsDisabled=Ue();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&oe("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} -`],encapsulation:2,changeDetection:0})}return t})();var _Z=["text"],bZ=[[["mat-icon"]],"*"],vZ=["mat-icon","*"];function yZ(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",1),t&2){let e=w();D("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function CZ(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",3),t&2){let e=w();D("disabled",e.disabled)}}function xZ(t,i){if(t&1&&(h(0,"span",4),y(1),_()),t&2){let e=w();p(),ne("(",e.group.label,")")}}var h2=new L("MAT_OPTION_PARENT_COMPONENT"),g2=new L("MatOptgroup");var f2=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},ln=(()=>{class t{_element=d(Q);_changeDetectorRef=d(xe);_parent=d(h2,{optional:!0});group=d(g2,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=d(He).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=we(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new j;_text;_stateChanges=new B;constructor(){let e=d(at);e.load(cn),e.load(_o),this._signalDisableRipple=!!this._parent&&ea(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!St(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new f2(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&ue(_Z,7),n&2){let r;U(r=$())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&N("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(Lt("id",o.id),te("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),oe("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",H]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:vZ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(De(bZ),E(0,yZ,1,2,"mat-pseudo-checkbox",1),ae(1),h(2,"span",2,0),ae(4,1),_(),E(5,CZ,1,1,"mat-pseudo-checkbox",3),E(6,xZ,2,1,"span",4),F(7,"div",5)),n&2&&(I(o.multiple?0:-1),p(5),I(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),p(),I(o.group&&o.group._inert?6:-1),p(),D("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[rf,mi],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),fZ={passive:!0},YE=(()=>{class t{_platform=d(je);_ngZone=d(se);_renderer=d(On).createRenderer(null,null);_styleLoader=d(at);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Sn;this._styleLoader.load(qE);let n=kn(e),o=this._monitoredElements.get(n);if(o)return o.subject;let r=new B,a="cdk-text-field-autofilled",s=m=>{m.animationName==="cdk-text-field-autofill-start"&&!n.classList.contains(a)?(n.classList.add(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!0}))):m.animationName==="cdk-text-field-autofill-end"&&n.classList.contains(a)&&(n.classList.remove(a),this._ngZone.run(()=>r.next({target:m.target,isAutofilled:!1})))},c=this._ngZone.runOutsideAngular(()=>(n.classList.add("cdk-text-field-autofill-monitored"),this._renderer.listen(n,"animationstart",s,fZ)));return this._monitoredElements.set(n,{subject:r,unlisten:c}),r}stopMonitoring(e){let n=kn(e),o=this._monitoredElements.get(n);o&&(o.unlisten(),o.subject.complete(),n.classList.remove("cdk-text-field-autofill-monitored"),n.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(n))}ngOnDestroy(){this._monitoredElements.forEach((e,n)=>this.stopMonitoring(n))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var nf=(()=>{class t{_elementRef=d(Q);_platform=d(je);_ngZone=d(se);_renderer=d(Ke);_resizeEvents=new B;_previousValue;_initialHeight;_destroyed=new B;_listenerCleanups;_minRows;_maxRows;_enabled=!0;_previousMinRows=-1;_textareaElement;get minRows(){return this._minRows}set minRows(e){this._minRows=vn(e),this._setMinHeight()}get maxRows(){return this._maxRows}set maxRows(e){this._maxRows=vn(e),this._setMaxHeight()}get enabled(){return this._enabled}set enabled(e){this._enabled!==e&&((this._enabled=e)?this.resizeToFitContent(!0):this.reset())}get placeholder(){return this._textareaElement.placeholder}set placeholder(e){this._cachedPlaceholderHeight=void 0,e?this._textareaElement.setAttribute("placeholder",e):this._textareaElement.removeAttribute("placeholder"),this._cacheTextareaPlaceholderHeight()}_cachedLineHeight;_cachedPlaceholderHeight;_document=d(Me);_hasFocus;_isViewInited=!1;constructor(){d(at).load(qE),this._textareaElement=this._elementRef.nativeElement}_setMinHeight(){let e=this.minRows&&this._cachedLineHeight?`${this.minRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.minHeight=e)}_setMaxHeight(){let e=this.maxRows&&this._cachedLineHeight?`${this.maxRows*this._cachedLineHeight}px`:null;e&&(this._textareaElement.style.maxHeight=e)}ngAfterViewInit(){this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular(()=>{this._listenerCleanups=[this._renderer.listen("window","resize",()=>this._resizeEvents.next()),this._renderer.listen(this._textareaElement,"focus",this._handleFocusEvent),this._renderer.listen(this._textareaElement,"blur",this._handleFocusEvent)],this._resizeEvents.pipe($l(16)).subscribe(()=>{this._cachedLineHeight=this._cachedPlaceholderHeight=void 0,this.resizeToFitContent(!0)})}),this._isViewInited=!0,this.resizeToFitContent(!0))}ngOnDestroy(){this._listenerCleanups?.forEach(e=>e()),this._resizeEvents.complete(),this._destroyed.next(),this._destroyed.complete()}_cacheTextareaLineHeight(){if(this._cachedLineHeight)return;let e=this._textareaElement.cloneNode(!1),n=e.style;e.rows=1,n.position="absolute",n.visibility="hidden",n.border="none",n.padding="0",n.height="",n.minHeight="",n.maxHeight="",n.top=n.bottom=n.left=n.right="auto",n.overflow="hidden",this._textareaElement.parentNode.appendChild(e),this._cachedLineHeight=e.clientHeight,e.remove(),this._setMinHeight(),this._setMaxHeight()}_measureScrollHeight(){let e=this._textareaElement,n=e.style.marginBottom||"",o=this._platform.FIREFOX,r=o&&this._hasFocus,a=o?"cdk-textarea-autosize-measuring-firefox":"cdk-textarea-autosize-measuring";r&&(e.style.marginBottom=`${e.clientHeight}px`),e.classList.add(a);let s=e.scrollHeight-4;return e.classList.remove(a),r&&(e.style.marginBottom=n),s}_cacheTextareaPlaceholderHeight(){if(!this._isViewInited||this._cachedPlaceholderHeight!=null)return;if(!this.placeholder){this._cachedPlaceholderHeight=0;return}let e=this._textareaElement.value;this._textareaElement.value=this._textareaElement.placeholder,this._cachedPlaceholderHeight=this._measureScrollHeight(),this._textareaElement.value=e}_handleFocusEvent=e=>{this._hasFocus=e.type==="focus"};ngDoCheck(){this._platform.isBrowser&&this.resizeToFitContent()}resizeToFitContent(e=!1){if(!this._enabled||(this._cacheTextareaLineHeight(),this._cacheTextareaPlaceholderHeight(),!this._cachedLineHeight))return;let n=this._elementRef.nativeElement,o=n.value;if(!e&&this._minRows===this._previousMinRows&&o===this._previousValue)return;let r=this._measureScrollHeight(),a=Math.max(r,this._cachedPlaceholderHeight||0);n.style.height=`${a}px`,this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame<"u"?requestAnimationFrame(()=>this._scrollToCaretPosition(n)):setTimeout(()=>this._scrollToCaretPosition(n))}),this._previousValue=o,this._previousMinRows=this._minRows}reset(){this._initialHeight!==void 0&&(this._textareaElement.style.height=this._initialHeight)}_noopInputHandler(){}_scrollToCaretPosition(e){let{selectionStart:n,selectionEnd:o}=e;!this._destroyed.isStopped&&this._hasFocus&&e.setSelectionRange(n,o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(n,o){n&1&&N("input",function(){return o._noopInputHandler()})},inputs:{minRows:[0,"cdkAutosizeMinRows","minRows"],maxRows:[0,"cdkAutosizeMaxRows","maxRows"],enabled:[2,"cdkTextareaAutosize","enabled",H],placeholder:"placeholder"},exportAs:["cdkTextareaAutosize"]})}return t})(),QE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var of=new L("MAT_INPUT_VALUE_ACCESSOR");var ha=(()=>{class t{isErrorState(e,n){return!!(e&&e.invalid&&(e.touched||n&&n.submitted))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var p2=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(i,e,n,o,r){this._defaultMatcher=i,this.ngControl=e,this._parentFormGroup=n,this._parentForm=o,this._stateChanges=r}updateErrorState(){let i=this.errorState,e=this._parentFormGroup||this._parentForm,n=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=n?.isErrorState(o,e)??!1;r!==i&&(this.errorState=r,this._stateChanges.next())}};var hZ=["button","checkbox","file","hidden","image","radio","range","reset","submit"],gZ=new L("MAT_INPUT_CONFIG"),ti=(()=>{class t{_elementRef=d(Q);_platform=d(je);ngControl=d(ei,{optional:!0,self:!0});_autofillMonitor=d(YE);_ngZone=d(se);_formField=d(fa,{optional:!0});_renderer=d(Ke);_uid=d(He).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=d(gZ,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new B;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=yn(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(en.required)??!1}set required(e){this._required=yn(e)}_required;get type(){return this._type}set type(e){this._type=e||"text",this._validateType(),!this._isTextarea&&e_().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=yn(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>e_().has(e));constructor(){let e=d(H1,{optional:!0}),n=d(ui,{optional:!0}),o=d(ha),r=d(of,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?ea(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new p2(o,this.ngControl,n,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&sa(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let n=this._elementRef.nativeElement;n.type==="number"?(n.type="text",n.setSelectionRange(0,0),n.type="number"):n.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let n=this._elementRef.nativeElement;this._previousPlaceholder=e,e?n.setAttribute("placeholder",e):n.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){hZ.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,n=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&n&&n.label)}else return this.focused&&!this.disabled||!this.empty}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){let n=this._elementRef.nativeElement;e.length?n.setAttribute("aria-describedby",e.join(" ")):n.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let n=e.target;!n.value&&n.selectionStart===0&&n.selectionEnd===0&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(n,o){n&1&&N("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),n&2&&(Lt("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),ne("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),oe("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},exportAs:["matInput"],features:[de([{provide:ll,useExisting:t}]),Re]})}return t})(),KE=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,Ws,Ws,QE,fe]})}return t})();var rf=(()=>{class t{_animationsDisabled=Ue();state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(n,o){n&2&&oe("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationsDisabled)},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-minimal-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-pseudo-checkbox-full-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-pseudo-checkbox-full-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-pseudo-checkbox-full-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-pseudo-checkbox-full-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-pseudo-checkbox-full-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-pseudo-checkbox-full-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} +`],encapsulation:2,changeDetection:0})}return t})();var _Z=["text"],bZ=[[["mat-icon"]],"*"],vZ=["mat-icon","*"];function yZ(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",1),t&2){let e=M();D("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function CZ(t,i){if(t&1&&F(0,"mat-pseudo-checkbox",3),t&2){let e=M();D("disabled",e.disabled)}}function xZ(t,i){if(t&1&&(h(0,"span",4),y(1),_()),t&2){let e=M();p(),ee("(",e.group.label,")")}}var h2=new L("MAT_OPTION_PARENT_COMPONENT"),g2=new L("MatOptgroup");var f2=class{source;isUserInput;constructor(i,e=!1){this.source=i,this.isUserInput=e}},ln=(()=>{class t{_element=d(Q);_changeDetectorRef=d(xe);_parent=d(h2,{optional:!0});group=d(g2,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=d(He).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=we(!1);get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new j;_text;_stateChanges=new B;constructor(){let e=d(at);e.load(cn),e.load(_o),this._signalDisableRipple=!!this._parent&&ea(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,n){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(n)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!Dt(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new f2(this,e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-option"]],viewQuery:function(n,o){if(n&1&&ue(_Z,7),n&2){let r;U(r=$())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(n,o){n&1&&N("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(Lt("id",o.id),ne("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),oe("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",H]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:vZ,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(n,o){n&1&&(De(bZ),E(0,yZ,1,2,"mat-pseudo-checkbox",1),ae(1),h(2,"span",2,0),ae(4,1),_(),E(5,CZ,1,1,"mat-pseudo-checkbox",3),E(6,xZ,2,1,"span",4),F(7,"div",5)),n&2&&(I(o.multiple?0:-1),p(5),I(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),p(),I(o.group&&o.group._inert?6:-1),p(),D("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[rf,mi],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mat-list-list-item-selected-container-color: var(--mat-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} `],encapsulation:2,changeDetection:0})}return t})();function Y0(t,i,e){if(e.length){let n=i.toArray(),o=e.toArray(),r=0;for(let a=0;ae+n?Math.max(0,t-n+i):e}var qs=class{};function dl(t){return t&&typeof t.connect=="function"&&!(t instanceof ps)}var Ys=(function(t){return t[t.REPLACED=0]="REPLACED",t[t.INSERTED=1]="INSERTED",t[t.MOVED=2]="MOVED",t[t.REMOVED=3]="REMOVED",t})(Ys||{}),_2=new L("_ViewRepeater");var MZ=20,ar=(()=>{class t{_ngZone=d(se);_platform=d(je);_renderer=d(On).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new B;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let n=this.scrollContainers.get(e);n&&(n.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=MZ){return this._platform.isBrowser?new Fe(n=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe($l(e)).subscribe(n):this._scrolled.subscribe(n);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):re()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,n)=>this.deregister(n)),this._scrolled.complete()}ancestorScrolled(e,n){let o=this.getAncestorScrollContainers(e);return this.scrolled(n).pipe(Ae(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let n=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&n.push(r)}),n}_scrollableContainsElement(e,n){let o=kn(n),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ar=(()=>{class t{elementRef=d(Q);scrollDispatcher=d(ar);ngZone=d(se);dir=d(bt,{optional:!0});_scrollElement=this.elementRef.nativeElement;_destroyed=new B;_renderer=d(Ke);_cleanupScroll;_elementScrolled=new B;constructor(){}ngOnInit(){this._cleanupScroll=this.ngZone.runOutsideAngular(()=>this._renderer.listen(this._scrollElement,"scroll",e=>this._elementScrolled.next(e))),this.scrollDispatcher.register(this)}ngOnDestroy(){this._cleanupScroll?.(),this._elementScrolled.complete(),this.scrollDispatcher.deregister(this),this._destroyed.next(),this._destroyed.complete()}elementScrolled(){return this._elementScrolled}getElementRef(){return this.elementRef}scrollTo(e){let n=this.elementRef.nativeElement,o=this.dir&&this.dir.value=="rtl";e.left==null&&(e.left=o?e.end:e.start),e.right==null&&(e.right=o?e.start:e.end),e.bottom!=null&&(e.top=n.scrollHeight-n.clientHeight-e.bottom),o&&K1()!=Pr.NORMAL?(e.left!=null&&(e.right=n.scrollWidth-n.clientWidth-e.left),K1()==Pr.INVERTED?e.left=e.right:K1()==Pr.NEGATED&&(e.left=e.right?-e.right:e.right)):e.right!=null&&(e.left=n.scrollWidth-n.clientWidth-e.right),this._applyScrollToOptions(e)}_applyScrollToOptions(e){let n=this.elementRef.nativeElement;wp()?n.scrollTo(e):(e.top!=null&&(n.scrollTop=e.top),e.left!=null&&(n.scrollLeft=e.left))}measureScrollOffset(e){let n="left",o="right",r=this.elementRef.nativeElement;if(e=="top")return r.scrollTop;if(e=="bottom")return r.scrollHeight-r.clientHeight-r.scrollTop;let a=this.dir&&this.dir.value=="rtl";return e=="start"?e=a?o:n:e=="end"&&(e=a?n:o),a&&K1()==Pr.INVERTED?e==n?r.scrollWidth-r.clientWidth-r.scrollLeft:r.scrollLeft:a&&K1()==Pr.NEGATED?e==n?r.scrollLeft+r.scrollWidth-r.clientWidth:-r.scrollLeft:e==n?r.scrollLeft:r.scrollWidth-r.clientWidth-r.scrollLeft}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]})}return t})(),wZ=20,Gn=(()=>{class t{_platform=d(je);_listeners;_viewportSize;_change=new B;_document=d(Me);constructor(){let e=d(se),n=d(On).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[n.listen("window","resize",o),n.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:n,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+n,height:o,width:n}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,n=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body.scrollTop||n.scrollY||o.scrollTop||0,s=-r.left||e.body.scrollLeft||n.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=wZ){return e>0?this._change.pipe($l(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var xi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})(),K0=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[la,xi,la,xi]})}return t})();var X0=class{_attachedHost;attach(i){return this._attachedHost=i,i.attach(this)}detach(){let i=this._attachedHost;i!=null&&(this._attachedHost=null,i.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(i){this._attachedHost=i}},yo=class extends X0{component;viewContainerRef;injector;projectableNodes;constructor(i,e,n,o){super(),this.component=i,this.viewContainerRef=e,this.injector=n,this.projectableNodes=o}},Wn=class extends X0{templateRef;viewContainerRef;context;injector;constructor(i,e,n,o){super(),this.templateRef=i,this.viewContainerRef=e,this.context=n,this.injector=o}get origin(){return this.templateRef.elementRef}attach(i,e=this.context){return this.context=e,super.attach(i)}detach(){return this.context=void 0,super.detach()}},N_=class extends X0{element;constructor(i){super(),this.element=i instanceof Q?i.nativeElement:i}},Qs=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(i){if(i instanceof yo)return this._attachedPortal=i,this.attachComponentPortal(i);if(i instanceof Wn)return this._attachedPortal=i,this.attachTemplatePortal(i);if(this.attachDomPortal&&i instanceof N_)return this._attachedPortal=i,this.attachDomPortal(i)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(i){this._disposeFn=i}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}},Z0=class extends Qs{outletElement;_appRef;_defaultInjector;constructor(i,e,n){super(),this.outletElement=i,this._appRef=e,this._defaultInjector=n}attachComponentPortal(i){let e;if(i.viewContainerRef){let n=i.injector||i.viewContainerRef.injector,o=n.get(ia,null,{optional:!0})||void 0;e=i.viewContainerRef.createComponent(i.component,{index:i.viewContainerRef.length,injector:n,ngModuleRef:o,projectableNodes:i.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let n=this._appRef,o=i.injector||this._defaultInjector||be.NULL,r=o.get(Qt,n.injector);e=gm(i.component,{elementInjector:o,environmentInjector:r,projectableNodes:i.projectableNodes||void 0}),n.attachView(e.hostView),this.setDisposeFn(()=>{n.viewCount>0&&n.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=i,e}attachTemplatePortal(i){let e=i.viewContainerRef,n=e.createEmbeddedView(i.templateRef,i.context,{injector:i.injector});return n.rootNodes.forEach(o=>this.outletElement.appendChild(o)),n.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(n);o!==-1&&e.remove(o)}),this._attachedPortal=i,n}attachDomPortal=i=>{let e=i.element;e.parentNode;let n=this.outletElement.ownerDocument.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),this._attachedPortal=i,super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(i){return i.hostView.rootNodes[0]}},ZE=(()=>{class t extends Wn{constructor(){let e=d(tt),n=d(dt);super(e,n)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[ce]})}return t})();var Mi=(()=>{class t extends Qs{_moduleRef=d(ia,{optional:!0});_document=d(Me);_viewContainerRef=d(dt);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new j;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let n=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=n.createComponent(e.component,{index:n.length,injector:e.injector||n.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return n!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let n=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=n,this.attached.emit(n),n}attachDomPortal=e=>{let n=e.element;n.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),n.parentNode.insertBefore(o,n),this._getRootNode().appendChild(n),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(n,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[ce]})}return t})();var so=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var JE=wp();function Ks(t){return new af(t.get(Gn),t.get(Me))}var af=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(i,e){this._viewportRuler=i,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let i=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=i.style.left||"",this._previousHTMLStyles.top=i.style.top||"",i.style.left=$n(-this._previousScrollPosition.left),i.style.top=$n(-this._previousScrollPosition.top),i.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let i=this._document.documentElement,e=this._document.body,n=i.style,o=e.style,r=n.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,n.left=this._previousHTMLStyles.left,n.top=this._previousHTMLStyles.top,i.classList.remove("cdk-global-scrollblock"),JE&&(n.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),JE&&(n.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,n=this._viewportRuler.getViewportSize();return e.scrollHeight>n.height||e.scrollWidth>n.width}};function aI(t,i){return new sf(t.get(ar),t.get(se),t.get(Gn),i)}var sf=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(i,e,n,o){this._scrollDispatcher=i,this._ngZone=e,this._viewportRuler=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(this._scrollSubscription)return;let i=this._scrollDispatcher.scrolled(0).pipe(Ae(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=i.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=i.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}};var J0=class{enable(){}disable(){}attach(){}};function F_(t,i){return i.some(e=>{let n=t.bottome.bottom,r=t.righte.right;return n||o||r||a})}function eI(t,i){return i.some(e=>{let n=t.tope.bottom,r=t.lefte.right;return n||o||r||a})}function fi(t,i){return new cf(t.get(ar),t.get(Gn),t.get(se),i)}var cf=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(i,e,n,o){this._scrollDispatcher=i,this._viewportRuler=e,this._ngZone=n,this._config=o}attach(i){this._overlayRef,this._overlayRef=i}enable(){if(!this._scrollSubscription){let i=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(i).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:n,height:o}=this._viewportRuler.getViewportSize();F_(e,[{width:n,height:o,bottom:o,right:n,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},sI=(()=>{class t{_injector=d(be);constructor(){}noop=()=>new J0;close=e=>aI(this._injector,e);block=()=>Ks(this._injector);reposition=e=>fi(this._injector,e);static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),co=class{positionStrategy;scrollStrategy=new J0;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";disableAnimations;width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(i){if(i){let e=Object.keys(i);for(let n of e)i[n]!==void 0&&(this[n]=i[n])}}};var lf=class{connectionPair;scrollableViewProperties;constructor(i,e){this.connectionPair=i,this.scrollableViewProperties=e}};var cI=(()=>{class t{_attachedOverlays=[];_document=d(Me);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let n=this._attachedOverlays.indexOf(e);n>-1&&this._attachedOverlays.splice(n,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),lI=(()=>{class t extends cI{_ngZone=d(se);_renderer=d(On).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let n=this._attachedOverlays;for(let o=n.length-1;o>-1;o--)if(n[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>n[o]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),dI=(()=>{class t extends cI{_platform=d(je);_ngZone=d(se);_renderer=d(On).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let n=this._document.body,o={capture:!0},r=this._renderer;this._cleanups=this._ngZone.runOutsideAngular(()=>[r.listen(n,"pointerdown",this._pointerDownListener,o),r.listen(n,"click",this._clickListener,o),r.listen(n,"auxclick",this._clickListener,o),r.listen(n,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=n.style.cursor,n.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=jn(e)};_clickListener=e=>{let n=jn(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:n;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(tI(s.overlayElement,n)||tI(s.overlayElement,o))break;let c=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>c.next(e)):c.next(e)}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function tI(t,i){let e=typeof ShadowRoot<"u"&&ShadowRoot,n=i;for(;n;){if(n===t)return!0;n=e&&n instanceof ShadowRoot?n.host:n.parentNode}return!1}var uI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(n,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} -`],encapsulation:2,changeDetection:0})}return t})(),uf=(()=>{class t{_platform=d(je);_containerElement;_document=d(Me);_styleLoader=d(at);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||J7()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},b2=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new B;_attachments=new B;_detachments=new B;_positionStrategy;_scrollStrategy;_locationChanges=Se.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new B;_outsidePointerEvents=new B;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,c,m,f=!1,v,x){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=c,this._outsideClickDispatcher=m,this._animationsDisabled=f,this._injector=v,this._renderer=x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ct(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=q(q({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ne(q({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=$n(this._config.width),i.height=$n(this._config.height),i.minWidth=$n(this._config.minWidth),i.minHeight=$n(this._config.minHeight),i.maxWidth=$n(this._config.maxWidth),i.maxHeight=$n(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new V_(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=Or(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=Ct(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},nI="cdk-overlay-connected-position-bounding-box",DZ=/([A-Za-z%]+)$/;function zr(t,i){return new v2(i,t.get(Gn),t.get(Me),t.get(je),t.get(uf))}var v2=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new B;_resizeSubscription=Se.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(nI),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,o,s),m=this._getOverlayPoint(c,e,s),f=this._getOverlayFit(m,e,n,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,m,n)){r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=m)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ul(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nI),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=oI(e),{x:a,y:s}=i,c=this._getOffset(o,"x"),m=this._getOffset(o,"y");c&&(a+=c),m&&(s+=m);let f=0-a,v=a+r.width-n.width,x=0-s,M=s+r.height-n.height,O=this._subtractOverflows(r.width,f,v),K=this._subtractOverflows(r.height,x,M),Y=O*K;return{visibleArea:Y,isCompletelyWithinViewport:r.width*r.height===Y,fitsInViewportVertically:K===r.height,fitsInViewportHorizontally:O==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=iI(this._overlayRef.getConfig().minHeight),s=iI(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||a!=null&&a<=o,m=i.fitsInViewportHorizontally||s!=null&&s<=r;return c&&m}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=oI(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),c=Math.max(r.top-n.top-i.y,0),m=Math.max(r.left-n.left-i.x,0),f=0,v=0;return o.width<=r.width?f=m||-a:f=i.xO&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-O/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,m=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,f,v,x;if(m)x=n.width-i.x+this._viewportMargin*2,f=i.x-this._viewportMargin;else if(c)v=i.x,f=n.right-i.x;else{let M=Math.min(n.right-i.x+n.left,i.x),O=this._lastBoundingBoxSize.width;f=M*2,v=i.x-M,f>O&&!this._isInitialRender&&!this._growAfterOpen&&(v=i.x-O/2)}return{top:a,left:v,bottom:s,right:x,width:f,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=$n(n.height),o.top=$n(n.top),o.bottom=$n(n.bottom),o.width=$n(n.width),o.left=$n(n.left),o.right=$n(n.right),e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=$n(r)),a&&(o.maxWidth=$n(a))}this._lastBoundingBoxSize=n,ul(this._boundingBox.style,o)}_resetBoundingBoxStyles(){ul(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ul(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let f=this._viewportRuler.getViewportScrollPosition();ul(n,this._getExactOverlayY(e,i,f)),ul(n,this._getExactOverlayX(e,i,f))}else n.position="static";let s="",c=this._getOffset(e,"x"),m=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),m&&(s+=`translateY(${m}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=$n(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=$n(a.maxWidth):r&&(n.maxWidth="")),ul(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=$n(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=$n(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:eI(i,n),isOriginOutsideView:F_(i,n),isOverlayClipped:eI(e,n),isOverlayOutsideView:F_(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Or(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof Q)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}};function ul(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function iI(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(DZ);return!e||e==="px"?parseFloat(i):null}return t||null}function oI(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function SZ(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var rI="cdk-global-overlay-wrapper";function ga(t){return new df}var df=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(rI),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,c=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),m=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,x=this._overlayRef.getConfig().direction==="rtl",M="",O="",K="";c?K="flex-start":f==="center"?(K="center",x?O=v:M=v):x?f==="left"||f==="end"?(K="flex-end",M=v):(f==="right"||f==="start")&&(K="flex-start",O=v):f==="left"||f==="start"?(K="flex-start",M=v):(f==="right"||f==="end")&&(K="flex-end",O=v),i.position=this._cssPosition,i.marginLeft=c?"0":M,i.marginTop=m?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":O,e.justifyContent=K,e.alignItems=m?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(rI),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},mI=(()=>{class t{_injector=d(be);constructor(){}global(){return ga()}flexibleConnectedTo(e){return zr(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lo(t,i){t.get(at).load(uI);let e=t.get(uf),n=t.get(Me),o=t.get(He),r=t.get(li),a=t.get(bt),s=n.createElement("div"),c=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),s.appendChild(c),e.getContainerElement().appendChild(s);let m=new Z0(c,r,t),f=new co(i),v=t.get(Ke,null,{optional:!0})||t.get(On).createRenderer(null,null);return f.direction=f.direction||a.value,new b2(m,s,c,f,t.get(se),t.get(lI),n,t.get(Jo),t.get(dI),i?.disableAnimations??t.get(Td,null,{optional:!0})==="NoopAnimations",t.get(Qt),v)}var pI=(()=>{class t{scrollStrategies=d(sI);_positionBuilder=d(mI);_injector=d(be);constructor(){}create(e){return lo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kZ=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fI=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}}),y2=(()=>{class t{elementRef=d(Q);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),mf=(()=>{class t{_dir=d(bt,{optional:!0});_injector=d(be);_overlayRef;_templatePortal;_backdropSubscription=Se.EMPTY;_attachSubscription=Se.EMPTY;_detachSubscription=Se.EMPTY;_positionSubscription=Se.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=d(fI);_disposeOnNavigation=!1;_ngZone=d(se);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new j;positionChange=new j;attach=new j;detach=new j;overlayKeydown=new j;overlayOutsideClick=new j;constructor(){let e=d(tt),n=d(dt);this._templatePortal=new Wn(e,n),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=kZ);let e=this._overlayRef=lo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!St(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=jn(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new co({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=zr(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof y2?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof y2?this.origin.elementRef.nativeElement:this.origin instanceof Q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(V6(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",H],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",H],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",H],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",H],push:[2,"cdkConnectedOverlayPush","push",H],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",H]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Re]})}return t})();function EZ(t){let i=d(be);return()=>fi(i)}var IZ={provide:fI,useFactory:EZ},Ei=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[pI,IZ],imports:[la,so,K0,K0]})}return t})();var ml=(()=>{class t{_listeners=[];notify(e,n){for(let o of this._listeners)o(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pl=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,c)=>{let m,f;if(a.previousIndex==null){let v=n(a,s,c);m=e.createEmbeddedView(v.templateRef,v.context,v.index),f=Ys.INSERTED}else c==null?(e.remove(s),f=Ys.REMOVED):(m=e.get(s),e.move(m,c),f=Ys.MOVED);r&&r({context:m?.context,operation:f,record:a})})}detach(){}};var uo=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new B;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var wi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var pf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();var C2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[wi,fe,pf,ln]})}return t})();var OZ=["trigger"],TZ=["panel"],PZ=[[["mat-select-trigger"]],"*"],LZ=["mat-select-trigger","*"];function AZ(t,i){if(t&1&&(h(0,"span",4),y(1),_()),t&2){let e=w();p(),T(e.placeholder)}}function zZ(t,i){t&1&&ae(0)}function RZ(t,i){if(t&1&&(h(0,"span",11),y(1),_()),t&2){let e=w(2);p(),T(e.triggerValue)}}function NZ(t,i){if(t&1&&(h(0,"span",5),E(1,zZ,1,0)(2,RZ,2,1,"span",11),_()),t&2){let e=w();p(),I(e.customTrigger?1:2)}}function FZ(t,i){if(t&1){let e=le();h(0,"div",12,1),N("keydown",function(o){G(e);let r=w();return W(r._handleKeydown(o))}),ae(2,1),_()}if(t&2){let e=w();Tt(Uc("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),oe("mat-select-panel-animations-enabled",!e._animationsDisabled),D("ngClass",e.panelClass),te("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var B_=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function gI(t){let i=d(be);return()=>fi(i)}var _I=new L("MAT_SELECT_CONFIG"),bI={provide:B_,deps:[],useFactory:gI},vI=new L("MatSelectTrigger"),ff=class{source;value;constructor(i,e){this.source=i,this.value=e}},qn=(()=>{class t{_viewportRuler=d(Gn);_changeDetectorRef=d(xe);_elementRef=d(Q);_dir=d(bt,{optional:!0});_idGenerator=d(He);_renderer=d(Ke);_parentFormField=d(fa,{optional:!0});ngControl=d(ei,{self:!0,optional:!0});_liveAnnouncer=d(w0);_defaultOptions=d(_I,{optional:!0});_animationsDisabled=Ue();_initialized=new B;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=Y0(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=Q0(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new ff(this,e)}_scrollStrategyFactory=d(B_);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new B;_errorStateTracker;stateChanges=new B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=we(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(en.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=Ai(()=>{let e=this.options;return e?e.changes.pipe(We(e),lt(()=>ft(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(lt(()=>this.optionSelectionChanges))});openedChange=new j;_openedStream=this.openedChange.pipe(Ae(e=>e),me(()=>{}));_closedStream=this.openedChange.pipe(Ae(e=>!e),me(()=>{}));selectionChange=new j;valueChange=new j;constructor(){let e=d(ha),n=d(H1,{optional:!0}),o=d(ui,{optional:!0}),r=d(new dn("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new p2(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this.id=this.id}ngOnInit(){this._selectionModel=new uo(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(ye(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(ye(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(We(null),ye(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Be(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&Bs(this._trackedModal,"aria-owns",n),q1(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Bs(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!St(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!St(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!St(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof y2?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Zc(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ft(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ye(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ft(...this.options.map(n=>n._stateChanges)).pipe(ye(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,vI,5),Ee(r,ln,5),Ee(r,g2,5)),n&2){let a;U(a=$())&&(o.customTrigger=a.first),U(a=$())&&(o.options=a),U(a=$())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(ue(OZ,5),ue(TZ,5),ue(mf,5)),n&2){let r;U(r=$())&&(o.trigger=r.first),U(r=$())&&(o.panel=r.first),U(r=$())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&N("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(te("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),oe("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",H],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",H],placeholder:"placeholder",required:[2,"required","required",H],multiple:[2,"multiple","multiple",H],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",H],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ut],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",H]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[de([{provide:ll,useExisting:t},{provide:h2,useExisting:t}]),Re],ngContentSelectors:LZ,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let r=le();De(PZ),h(0,"div",2,0),N("click",function(){return G(r),W(o.open())}),h(3,"div",3),E(4,AZ,2,1,"span",4)(5,NZ,3,1,"span",5),_(),h(6,"div",6)(7,"div",7),$t(),h(8,"svg",8),F(9,"path",9),_()()()(),ot(10,FZ,3,10,"ng-template",10),N("detach",function(){return G(r),W(o.close())})("backdropClick",function(){return G(r),W(o.close())})("overlayKeydown",function(s){return G(r),W(o._handleOverlayKeydown(s))})}if(n&2){let r=Nt(1);p(3),te("id",o._valueId),p(),I(o.empty?4:5),p(6),D("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[y2,mf,Un],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} -`],encapsulation:2,changeDetection:0})}return t})();var eu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[bI],imports:[Ei,C2,fe,xi,Ws,C2,fe]})}return t})();var j_=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:VZ});function VZ(){return d(wr)}var x2="Method not implemented",Gi=class{locale;_localeChanges=new B;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(x2)}getHours(i){throw new Error(x2)}getMinutes(i){throw new Error(x2)}getSeconds(i){throw new Error(x2)}parseTime(i,e){throw new Error(x2)}addSeconds(i,e){throw new Error(x2)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Zs=new L("mat-date-formats");var BZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]})}return t})();var H_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var jZ={capture:!0},HZ=["focus","mousedown","mouseenter","touchstart"],U_="mat-ripple-loader-uninitialized",$_="mat-ripple-loader-class-name",yI="mat-ripple-loader-centered",hf="mat-ripple-loader-disabled",CI=(()=>{class t{_document=d(Me);_animationsDisabled=Ue();_globalRippleOptions=d(nl,{optional:!0});_platform=d(je);_ngZone=d(se);_injector=d(be);_eventCleanups;_hosts=new Map;constructor(){let e=d(On).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>HZ.map(n=>e.listen(this._document,n,this._onInteraction,jZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(U_,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute($_))&&e.setAttribute($_,n.className||""),n.centered&&e.setAttribute(yI,""),n.disabled&&e.setAttribute(hf,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(hf,""):e.removeAttribute(hf)}_onInteraction=e=>{let n=jn(e);if(n instanceof HTMLElement){let o=n.closest(`[${U_}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute($_)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??E0.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??E0.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(hf),rippleConfig:{centered:e.hasAttribute(yI),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},c=new tl(s,this._ngZone,n,this._platform,this._injector),m=!s.rippleDisabled;m&&c.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:c,hasSetUpEvents:m}),e.removeAttribute(U_)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var UZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,$Z=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function G_(t,i){let e=Array(t);for(let n=0;n{class t extends Gi{useUtcForDisplay=!1;_matDateLocale=d(j_,{optional:!0});constructor(){super();let e=d(j_,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return G_(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return G_(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return G_(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ne(q({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(UZ.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match($Z);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),W_(o,0,23)&&W_(r,0,59)&&(a==null||W_(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function W_(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var WZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var xI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[qZ()]})}return t})();function qZ(t=WZ){return[{provide:Gi,useClass:GZ},{provide:Zs,useValue:t}]}var YZ=["mat-icon-button",""],QZ=["*"],KZ=new L("MAT_BUTTON_CONFIG");function MI(t){return t==null?void 0:ut(t)}var gf=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_animationsDisabled=Ue();_config=d(KZ,{optional:!0});_focusMonitor=d(sn);_cleanupClick;_renderer=d(Ke);_rippleLoader=d(CI);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){d(at).load(cn);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(te("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tt(o.color?"mat-"+o.color:""),oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",H],disabled:[2,"disabled","disabled",H],ariaDisabled:[2,"aria-disabled","ariaDisabled",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H],tabIndex:[2,"tabIndex","tabIndex",MI],_tabindex:[2,"tabindex","_tabindex",MI]}})}return t})(),ni=(()=>{class t extends gf{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[ce],attrs:YZ,ngContentSelectors:QZ,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(De(),Tn(0,"span",0),ae(1),Tn(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} +`],encapsulation:2,changeDetection:0})}return t})(),uf=(()=>{class t{_platform=d(je);_containerElement;_document=d(Me);_styleLoader=d(at);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||J7()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let i=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(i,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),i.style.pointerEvents="none",i.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},b2=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new B;_attachments=new B;_detachments=new B;_positionStrategy;_scrollStrategy;_locationChanges=Se.EMPTY;_backdropRef=null;_detachContentMutationObserver;_detachContentAfterRenderRef;_previousHostParent;_keydownEvents=new B;_outsidePointerEvents=new B;_afterNextRenderRef;constructor(i,e,n,o,r,a,s,c,m,f=!1,v,x){this._portalOutlet=i,this._host=e,this._pane=n,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=c,this._outsideClickDispatcher=m,this._animationsDisabled=f,this._injector=v,this._renderer=x,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(i){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(i);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Ct(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._completeDetachContent(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let i=this._portalOutlet.detach();return this._detachments.next(),this._completeDetachContent(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),i}dispose(){let i=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,i&&this._detachments.next(),this._detachments.complete(),this._completeDetachContent()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(i){i!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=i,this.hasAttached()&&(i.attach(this),this.updatePosition()))}updateSize(i){this._config=q(q({},this._config),i),this._updateElementSize()}setDirection(i){this._config=Ne(q({},this._config),{direction:i}),this._updateElementDirection()}addPanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!0)}removePanelClass(i){this._pane&&this._toggleClasses(this._pane,i,!1)}getDirection(){let i=this._config.direction;return i?typeof i=="string"?i:i.value:"ltr"}updateScrollStrategy(i){i!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=i,this.hasAttached()&&(i.attach(this),i.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let i=this._pane.style;i.width=$n(this._config.width),i.height=$n(this._config.height),i.minWidth=$n(this._config.minWidth),i.minHeight=$n(this._config.minHeight),i.maxWidth=$n(this._config.maxWidth),i.maxHeight=$n(this._config.maxHeight)}_togglePointerEvents(i){this._pane.style.pointerEvents=i?"":"none"}_attachBackdrop(){let i="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new V_(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(i))}):this._backdropRef.element.classList.add(i)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(i,e,n){let o=Or(e||[]).filter(r=>!!r);o.length&&(n?i.classList.add(...o):i.classList.remove(...o))}_detachContentWhenEmpty(){let i=!1;try{this._detachContentAfterRenderRef=Ct(()=>{i=!0,this._detachContent()},{injector:this._injector})}catch(e){if(i)throw e;this._detachContent()}globalThis.MutationObserver&&this._pane&&(this._detachContentMutationObserver||=new globalThis.MutationObserver(()=>{this._detachContent()}),this._detachContentMutationObserver.observe(this._pane,{childList:!0}))}_detachContent(){(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),this._completeDetachContent())}_completeDetachContent(){this._detachContentAfterRenderRef?.destroy(),this._detachContentAfterRenderRef=void 0,this._detachContentMutationObserver?.disconnect()}_disposeScrollStrategy(){let i=this._scrollStrategy;i?.disable(),i?.detach?.()}},nI="cdk-overlay-connected-position-bounding-box",DZ=/([A-Za-z%]+)$/;function zr(t,i){return new v2(i,t.get(Gn),t.get(Me),t.get(je),t.get(uf))}var v2=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new B;_resizeSubscription=Se.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(i,e,n,o,r){this._viewportRuler=e,this._document=n,this._platform=o,this._overlayContainer=r,this.setOrigin(i)}attach(i){this._overlayRef&&this._overlayRef,this._validatePositions(),i.hostElement.classList.add(nI),this._overlayRef=i,this._boundingBox=i.hostElement,this._pane=i.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let i=this._originRect,e=this._overlayRect,n=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let c=this._getOriginPoint(i,o,s),m=this._getOverlayPoint(c,e,s),f=this._getOverlayFit(m,e,n,s);if(f.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,c);return}if(this._canFitWithFlexibleDimensions(f,m,n)){r.push({position:s,origin:c,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(c,s)});continue}(!a||a.overlayFit.visibleAreac&&(c=f,s=m)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&ul(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(nI),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let i=this._lastPosition;if(i){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,i);this._applyPosition(i,e)}else this.apply()}withScrollableContainers(i){return this._scrollables=i,this}withPositions(i){return this._preferredPositions=i,i.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(i){return this._viewportMargin=i,this}withFlexibleDimensions(i=!0){return this._hasFlexibleDimensions=i,this}withGrowAfterOpen(i=!0){return this._growAfterOpen=i,this}withPush(i=!0){return this._canPush=i,this}withLockedPosition(i=!0){return this._positionLocked=i,this}setOrigin(i){return this._origin=i,this}withDefaultOffsetX(i){return this._offsetX=i,this}withDefaultOffsetY(i){return this._offsetY=i,this}withTransformOriginOn(i){return this._transformOriginSelector=i,this}_getOriginPoint(i,e,n){let o;if(n.originX=="center")o=i.left+i.width/2;else{let a=this._isRtl()?i.right:i.left,s=this._isRtl()?i.left:i.right;o=n.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return n.originY=="center"?r=i.top+i.height/2:r=n.originY=="top"?i.top:i.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(i,e,n){let o;n.overlayX=="center"?o=-e.width/2:n.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return n.overlayY=="center"?r=-e.height/2:r=n.overlayY=="top"?0:-e.height,{x:i.x+o,y:i.y+r}}_getOverlayFit(i,e,n,o){let r=oI(e),{x:a,y:s}=i,c=this._getOffset(o,"x"),m=this._getOffset(o,"y");c&&(a+=c),m&&(s+=m);let f=0-a,v=a+r.width-n.width,x=0-s,w=s+r.height-n.height,O=this._subtractOverflows(r.width,f,v),K=this._subtractOverflows(r.height,x,w),Y=O*K;return{visibleArea:Y,isCompletelyWithinViewport:r.width*r.height===Y,fitsInViewportVertically:K===r.height,fitsInViewportHorizontally:O==r.width}}_canFitWithFlexibleDimensions(i,e,n){if(this._hasFlexibleDimensions){let o=n.bottom-e.y,r=n.right-e.x,a=iI(this._overlayRef.getConfig().minHeight),s=iI(this._overlayRef.getConfig().minWidth),c=i.fitsInViewportVertically||a!=null&&a<=o,m=i.fitsInViewportHorizontally||s!=null&&s<=r;return c&&m}return!1}_pushOverlayOnScreen(i,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:i.x+this._previousPushAmount.x,y:i.y+this._previousPushAmount.y};let o=oI(e),r=this._viewportRect,a=Math.max(i.x+o.width-r.width,0),s=Math.max(i.y+o.height-r.height,0),c=Math.max(r.top-n.top-i.y,0),m=Math.max(r.left-n.left-i.x,0),f=0,v=0;return o.width<=r.width?f=m||-a:f=i.xO&&!this._isInitialRender&&!this._growAfterOpen&&(a=i.y-O/2)}let c=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,m=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,f,v,x;if(m)x=n.width-i.x+this._viewportMargin*2,f=i.x-this._viewportMargin;else if(c)v=i.x,f=n.right-i.x;else{let w=Math.min(n.right-i.x+n.left,i.x),O=this._lastBoundingBoxSize.width;f=w*2,v=i.x-w,f>O&&!this._isInitialRender&&!this._growAfterOpen&&(v=i.x-O/2)}return{top:a,left:v,bottom:s,right:x,width:f,height:r}}_setBoundingBoxStyles(i,e){let n=this._calculateBoundingBoxRect(i,e);!this._isInitialRender&&!this._growAfterOpen&&(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=$n(n.height),o.top=$n(n.top),o.bottom=$n(n.bottom),o.width=$n(n.width),o.left=$n(n.left),o.right=$n(n.right),e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=$n(r)),a&&(o.maxWidth=$n(a))}this._lastBoundingBoxSize=n,ul(this._boundingBox.style,o)}_resetBoundingBoxStyles(){ul(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){ul(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(i,e){let n={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let f=this._viewportRuler.getViewportScrollPosition();ul(n,this._getExactOverlayY(e,i,f)),ul(n,this._getExactOverlayX(e,i,f))}else n.position="static";let s="",c=this._getOffset(e,"x"),m=this._getOffset(e,"y");c&&(s+=`translateX(${c}px) `),m&&(s+=`translateY(${m}px)`),n.transform=s.trim(),a.maxHeight&&(o?n.maxHeight=$n(a.maxHeight):r&&(n.maxHeight="")),a.maxWidth&&(o?n.maxWidth=$n(a.maxWidth):r&&(n.maxWidth="")),ul(this._pane.style,n)}_getExactOverlayY(i,e,n){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,i);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),i.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=$n(r.y);return o}_getExactOverlayX(i,e,n){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,i);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));let a;if(this._isRtl()?a=i.overlayX==="end"?"left":"right":a=i.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=$n(r.x);return o}_getScrollVisibility(){let i=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:eI(i,n),isOriginOutsideView:F_(i,n),isOverlayClipped:eI(e,n),isOverlayOutsideView:F_(e,n)}}_subtractOverflows(i,...e){return e.reduce((n,o)=>n-Math.max(o,0),i)}_getNarrowedViewportRect(){let i=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+i-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:i-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(i,e){return e==="x"?i.offsetX==null?this._offsetX:i.offsetX:i.offsetY==null?this._offsetY:i.offsetY}_validatePositions(){}_addPanelClasses(i){this._pane&&Or(i).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(i=>{this._pane.classList.remove(i)}),this._appliedPanelClasses=[])}_getOriginRect(){let i=this._origin;if(i instanceof Q)return i.nativeElement.getBoundingClientRect();if(i instanceof Element)return i.getBoundingClientRect();let e=i.width||0,n=i.height||0;return{top:i.y,bottom:i.y+n,left:i.x,right:i.x+e,height:n,width:e}}};function ul(t,i){for(let e in i)i.hasOwnProperty(e)&&(t[e]=i[e]);return t}function iI(t){if(typeof t!="number"&&t!=null){let[i,e]=t.split(DZ);return!e||e==="px"?parseFloat(i):null}return t||null}function oI(t){return{top:Math.floor(t.top),right:Math.floor(t.right),bottom:Math.floor(t.bottom),left:Math.floor(t.left),width:Math.floor(t.width),height:Math.floor(t.height)}}function SZ(t,i){return t===i?!0:t.isOriginClipped===i.isOriginClipped&&t.isOriginOutsideView===i.isOriginOutsideView&&t.isOverlayClipped===i.isOverlayClipped&&t.isOverlayOutsideView===i.isOverlayOutsideView}var rI="cdk-global-overlay-wrapper";function ga(t){return new df}var df=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(i){let e=i.getConfig();this._overlayRef=i,this._width&&!e.width&&i.updateSize({width:this._width}),this._height&&!e.height&&i.updateSize({height:this._height}),i.hostElement.classList.add(rI),this._isDisposed=!1}top(i=""){return this._bottomOffset="",this._topOffset=i,this._alignItems="flex-start",this}left(i=""){return this._xOffset=i,this._xPosition="left",this}bottom(i=""){return this._topOffset="",this._bottomOffset=i,this._alignItems="flex-end",this}right(i=""){return this._xOffset=i,this._xPosition="right",this}start(i=""){return this._xOffset=i,this._xPosition="start",this}end(i=""){return this._xOffset=i,this._xPosition="end",this}width(i=""){return this._overlayRef?this._overlayRef.updateSize({width:i}):this._width=i,this}height(i=""){return this._overlayRef?this._overlayRef.updateSize({height:i}):this._height=i,this}centerHorizontally(i=""){return this.left(i),this._xPosition="center",this}centerVertically(i=""){return this.top(i),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=n,c=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),m=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),f=this._xPosition,v=this._xOffset,x=this._overlayRef.getConfig().direction==="rtl",w="",O="",K="";c?K="flex-start":f==="center"?(K="center",x?O=v:w=v):x?f==="left"||f==="end"?(K="flex-end",w=v):(f==="right"||f==="start")&&(K="flex-start",O=v):f==="left"||f==="start"?(K="flex-start",w=v):(f==="right"||f==="end")&&(K="flex-end",O=v),i.position=this._cssPosition,i.marginLeft=c?"0":w,i.marginTop=m?"0":this._topOffset,i.marginBottom=this._bottomOffset,i.marginRight=c?"0":O,e.justifyContent=K,e.alignItems=m?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let i=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(rI),n.justifyContent=n.alignItems=i.marginTop=i.marginBottom=i.marginLeft=i.marginRight=i.position="",this._overlayRef=null,this._isDisposed=!0}},mI=(()=>{class t{_injector=d(be);constructor(){}global(){return ga()}flexibleConnectedTo(e){return zr(this._injector,e)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lo(t,i){t.get(at).load(uI);let e=t.get(uf),n=t.get(Me),o=t.get(He),r=t.get(li),a=t.get(bt),s=n.createElement("div"),c=n.createElement("div");c.id=o.getId("cdk-overlay-"),c.classList.add("cdk-overlay-pane"),s.appendChild(c),e.getContainerElement().appendChild(s);let m=new Z0(c,r,t),f=new co(i),v=t.get(Ke,null,{optional:!0})||t.get(On).createRenderer(null,null);return f.direction=f.direction||a.value,new b2(m,s,c,f,t.get(se),t.get(lI),n,t.get(Jo),t.get(dI),i?.disableAnimations??t.get(Td,null,{optional:!0})==="NoopAnimations",t.get(Qt),v)}var pI=(()=>{class t{scrollStrategies=d(sI);_positionBuilder=d(mI);_injector=d(be);constructor(){}create(e){return lo(this._injector,e)}position(){return this._positionBuilder}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),kZ=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],fI=new L("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}}),y2=(()=>{class t{elementRef=d(Q);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return t})(),mf=(()=>{class t{_dir=d(bt,{optional:!0});_injector=d(be);_overlayRef;_templatePortal;_backdropSubscription=Se.EMPTY;_attachSubscription=Se.EMPTY;_detachSubscription=Se.EMPTY;_positionSubscription=Se.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=d(fI);_disposeOnNavigation=!1;_ngZone=d(se);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new j;positionChange=new j;attach=new j;detach=new j;overlayKeydown=new j;overlayOutsideClick=new j;constructor(){let e=d(tt),n=d(dt);this._templatePortal=new Wn(e,n),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=kZ);let e=this._overlayRef=lo(this._injector,this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(n=>{this.overlayKeydown.next(n),n.keyCode===27&&!this.disableClose&&!Dt(n)&&(n.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(n=>{let o=this._getOriginElement(),r=jn(n);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(n)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),n=new co({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(n.width=this.width),(this.height||this.height===0)&&(n.height=this.height),(this.minWidth||this.minWidth===0)&&(n.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(n.minHeight=this.minHeight),this.backdropClass&&(n.backdropClass=this.backdropClass),this.panelClass&&(n.panelClass=this.panelClass),n}_updatePositionStrategy(e){let n=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(n).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=zr(this._injector,this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof y2?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof y2?this.origin.elementRef.nativeElement:this.origin instanceof Q?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(V6(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",H],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",H],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",H],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",H],push:[2,"cdkConnectedOverlayPush","push",H],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",H]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Re]})}return t})();function EZ(t){let i=d(be);return()=>fi(i)}var IZ={provide:fI,useFactory:EZ},Ei=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[pI,IZ],imports:[la,so,K0,K0]})}return t})();var ml=(()=>{class t{_listeners=[];notify(e,n){for(let o of this._listeners)o(e,n)}listen(e){return this._listeners.push(e),()=>{this._listeners=this._listeners.filter(n=>e!==n)}}ngOnDestroy(){this._listeners=[]}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var pl=class{applyChanges(i,e,n,o,r){i.forEachOperation((a,s,c)=>{let m,f;if(a.previousIndex==null){let v=n(a,s,c);m=e.createEmbeddedView(v.templateRef,v.context,v.index),f=Ys.INSERTED}else c==null?(e.remove(s),f=Ys.REMOVED):(m=e.get(s),e.move(m,c),f=Ys.MOVED);r&&r({context:m?.context,operation:f,record:a})})}detach(){}};var uo=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new B;constructor(i=!1,e,n=!0,o){this._multiple=i,this._emitChanges=n,this.compareWith=o,e&&e.length&&(i?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...i){this._verifyValueAssignment(i),i.forEach(n=>this._markSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...i){this._verifyValueAssignment(i),i.forEach(n=>this._unmarkSelected(n));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...i){this._verifyValueAssignment(i);let e=this.selected,n=new Set(i.map(r=>this._getConcreteValue(r)));i.forEach(r=>this._markSelected(r)),e.filter(r=>!n.has(this._getConcreteValue(r,n))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(i){return this.isSelected(i)?this.deselect(i):this.select(i)}clear(i=!0){this._unmarkAll();let e=this._hasQueuedChanges();return i&&this._emitChangeEvent(),e}isSelected(i){return this._selection.has(this._getConcreteValue(i))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(i){this._multiple&&this.selected&&this._selected.sort(i)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(i){i=this._getConcreteValue(i),this.isSelected(i)||(this._multiple||this._unmarkAll(),this.isSelected(i)||this._selection.add(i),this._emitChanges&&this._selectedToEmit.push(i))}_unmarkSelected(i){i=this._getConcreteValue(i),this.isSelected(i)&&(this._selection.delete(i),this._emitChanges&&this._deselectedToEmit.push(i))}_unmarkAll(){this.isEmpty()||this._selection.forEach(i=>this._unmarkSelected(i))}_verifyValueAssignment(i){i.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(i,e){if(this.compareWith){e=e??this._selection;for(let n of e)if(this.compareWith(i,n))return n;return i}else return i}};var wi=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var pf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();var C2=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[wi,fe,pf,ln]})}return t})();var OZ=["trigger"],TZ=["panel"],PZ=[[["mat-select-trigger"]],"*"],LZ=["mat-select-trigger","*"];function AZ(t,i){if(t&1&&(h(0,"span",4),y(1),_()),t&2){let e=M();p(),T(e.placeholder)}}function zZ(t,i){t&1&&ae(0)}function RZ(t,i){if(t&1&&(h(0,"span",11),y(1),_()),t&2){let e=M(2);p(),T(e.triggerValue)}}function NZ(t,i){if(t&1&&(h(0,"span",5),E(1,zZ,1,0)(2,RZ,2,1,"span",11),_()),t&2){let e=M();p(),I(e.customTrigger?1:2)}}function FZ(t,i){if(t&1){let e=le();h(0,"div",12,1),N("keydown",function(o){G(e);let r=M();return W(r._handleKeydown(o))}),ae(2,1),_()}if(t&2){let e=M();Tt(Uc("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme())),oe("mat-select-panel-animations-enabled",!e._animationsDisabled),D("ngClass",e.panelClass),ne("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var B_=new L("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function gI(t){let i=d(be);return()=>fi(i)}var _I=new L("MAT_SELECT_CONFIG"),bI={provide:B_,deps:[],useFactory:gI},vI=new L("MatSelectTrigger"),ff=class{source;value;constructor(i,e){this.source=i,this.value=e}},qn=(()=>{class t{_viewportRuler=d(Gn);_changeDetectorRef=d(xe);_elementRef=d(Q);_dir=d(bt,{optional:!0});_idGenerator=d(He);_renderer=d(Ke);_parentFormField=d(fa,{optional:!0});ngControl=d(ei,{self:!0,optional:!0});_liveAnnouncer=d(w0);_defaultOptions=d(_I,{optional:!0});_animationsDisabled=Ue();_initialized=new B;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let n=this.options.toArray()[e];if(n){let o=this.panel.nativeElement,r=Y0(e,this.options,this.optionGroups),a=n._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=Q0(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new ff(this,e)}_scrollStrategyFactory=d(B_);_panelOpen=!1;_compareWith=(e,n)=>e===n;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new B;_errorStateTracker;stateChanges=new B;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=we(!1);tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(en.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=Ai(()=>{let e=this.options;return e?e.changes.pipe(We(e),lt(()=>ft(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(lt(()=>this.optionSelectionChanges))});openedChange=new j;_openedStream=this.openedChange.pipe(Ae(e=>e),me(()=>{}));_closedStream=this.openedChange.pipe(Ae(e=>!e),me(()=>{}));selectionChange=new j;valueChange=new j;constructor(){let e=d(ha),n=d(H1,{optional:!0}),o=d(ui,{optional:!0}),r=d(new dn("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new p2(e,this.ngControl,o,n,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this.id=this.id}ngOnInit(){this._selectionModel=new uo(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(ye(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(ye(this._destroy)).subscribe(e=>{e.added.forEach(n=>n.select()),e.removed.forEach(n=>n.deselect())}),this.options.changes.pipe(We(null),ye(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),n=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}n&&(this._previousControl!==n.control&&(this._previousControl!==void 0&&n.disabled!==null&&n.disabled!==this.disabled&&(this.disabled=n.disabled),this._previousControl=n.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(Be(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=`${this.id}-panel`;this._trackedModal&&Bs(this._trackedModal,"aria-owns",n),q1(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;Bs(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{n(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,n=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(n=>n.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let n=e.keyCode,o=n===40||n===38||n===37||n===39,r=n===13||n===32,a=this._keyManager;if(!a.isTyping()&&r&&!Dt(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let c=this.selected;c&&s!==c&&this._liveAnnouncer.announce(c.viewValue,1e4)}}_handleOpenKeydown(e){let n=this._keyManager,o=e.keyCode,r=o===40||o===38,a=n.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&n.activeItem&&!Dt(e))e.preventDefault(),n.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(c=>!c.disabled&&!c.selected);this.options.forEach(c=>{c.disabled||(s?c.select():c.deselect())})}else{let s=n.activeItemIndex;n.onKeydown(e),this._multiple&&r&&e.shiftKey&&n.activeItem&&n.activeItemIndex!==s&&n.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!Dt(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(n=>n.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(n=>this._selectOptionByValue(n)),this._sortValues();else{let n=this._selectOptionByValue(e);n?this._keyManager.updateActiveItem(n):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let n=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch{return!1}});return n&&this._selectionModel.select(n),n}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof y2?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Zc(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=ft(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(ye(e)).subscribe(n=>{this._onSelect(n.source,n.isUserInput),n.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),ft(...this.options.map(n=>n._stateChanges)).pipe(ye(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,n){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),n&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),n&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((n,o)=>this.sortComparator?this.sortComparator(n,o,e):e.indexOf(n)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let n;this.multiple?n=this.selected.map(o=>o.value):n=this.selected?this.selected.value:e,this._value=n,this.valueChange.emit(n),this._onChange(n),this.selectionChange.emit(this._getChangeEvent(n)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let n=0;n0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}get describedByIds(){return this._elementRef.nativeElement.getAttribute("aria-describedby")?.split(" ")||[]}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-select"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,vI,5),Ee(r,ln,5),Ee(r,g2,5)),n&2){let a;U(a=$())&&(o.customTrigger=a.first),U(a=$())&&(o.options=a),U(a=$())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(ue(OZ,5),ue(TZ,5),ue(mf,5)),n&2){let r;U(r=$())&&(o.trigger=r.first),U(r=$())&&(o.panel=r.first),U(r=$())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:21,hostBindings:function(n,o){n&1&&N("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),n&2&&(ne("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),oe("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple)("mat-select-open",o.panelOpen))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",H],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",H],placeholder:"placeholder",required:[2,"required","required",H],multiple:[2,"multiple","multiple",H],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",H],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",ut],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",H]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[de([{provide:ll,useExisting:t},{provide:h2,useExisting:t}]),Re],ngContentSelectors:LZ,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(n,o){if(n&1){let r=le();De(PZ),h(0,"div",2,0),N("click",function(){return G(r),W(o.open())}),h(3,"div",3),E(4,AZ,2,1,"span",4)(5,NZ,3,1,"span",5),_(),h(6,"div",6)(7,"div",7),$t(),h(8,"svg",8),F(9,"path",9),_()()()(),ot(10,FZ,3,10,"ng-template",10),N("detach",function(){return G(r),W(o.close())})("backdropClick",function(){return G(r),W(o.close())})("overlayKeydown",function(s){return G(r),W(o._handleOverlayKeydown(s))})}if(n&2){let r=Nt(1);p(3),ne("id",o._valueId),p(),I(o.empty?4:5),p(6),D("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[y2,mf,Un],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-select-open .mat-mdc-select-arrow{transform:rotate(180deg)}.mat-form-field-animations-enabled .mat-mdc-select-arrow{transition:transform 80ms linear}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} +`],encapsulation:2,changeDetection:0})}return t})();var eu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[bI],imports:[Ei,C2,fe,xi,Ws,C2,fe]})}return t})();var j_=new L("MAT_DATE_LOCALE",{providedIn:"root",factory:VZ});function VZ(){return d(wr)}var x2="Method not implemented",Gi=class{locale;_localeChanges=new B;localeChanges=this._localeChanges;setTime(i,e,n,o){throw new Error(x2)}getHours(i){throw new Error(x2)}getMinutes(i){throw new Error(x2)}getSeconds(i){throw new Error(x2)}parseTime(i,e){throw new Error(x2)}addSeconds(i,e){throw new Error(x2)}getValidDateOrNull(i){return this.isDateInstance(i)&&this.isValid(i)?i:null}deserialize(i){return i==null||this.isDateInstance(i)&&this.isValid(i)?i:this.invalid()}setLocale(i){this.locale=i,this._localeChanges.next()}compareDate(i,e){return this.getYear(i)-this.getYear(e)||this.getMonth(i)-this.getMonth(e)||this.getDate(i)-this.getDate(e)}compareTime(i,e){return this.getHours(i)-this.getHours(e)||this.getMinutes(i)-this.getMinutes(e)||this.getSeconds(i)-this.getSeconds(e)}sameDate(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareDate(i,e):n==o}return i==e}sameTime(i,e){if(i&&e){let n=this.isValid(i),o=this.isValid(e);return n&&o?!this.compareTime(i,e):n==o}return i==e}clampDate(i,e,n){return e&&this.compareDate(i,e)<0?e:n&&this.compareDate(i,n)>0?n:i}},Zs=new L("mat-date-formats");var BZ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]})}return t})();var H_=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var jZ={capture:!0},HZ=["focus","mousedown","mouseenter","touchstart"],U_="mat-ripple-loader-uninitialized",$_="mat-ripple-loader-class-name",yI="mat-ripple-loader-centered",hf="mat-ripple-loader-disabled",CI=(()=>{class t{_document=d(Me);_animationsDisabled=Ue();_globalRippleOptions=d(nl,{optional:!0});_platform=d(je);_ngZone=d(se);_injector=d(be);_eventCleanups;_hosts=new Map;constructor(){let e=d(On).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>HZ.map(n=>e.listen(this._document,n,this._onInteraction,jZ)))}ngOnDestroy(){let e=this._hosts.keys();for(let n of e)this.destroyRipple(n);this._eventCleanups.forEach(n=>n())}configureRipple(e,n){e.setAttribute(U_,this._globalRippleOptions?.namespace??""),(n.className||!e.hasAttribute($_))&&e.setAttribute($_,n.className||""),n.centered&&e.setAttribute(yI,""),n.disabled&&e.setAttribute(hf,"")}setDisabled(e,n){let o=this._hosts.get(e);o?(o.target.rippleDisabled=n,!n&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):n?e.setAttribute(hf,""):e.removeAttribute(hf)}_onInteraction=e=>{let n=jn(e);if(n instanceof HTMLElement){let o=n.closest(`[${U_}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let n=this._document.createElement("span");n.classList.add("mat-ripple",e.getAttribute($_)),e.append(n);let o=this._globalRippleOptions,r=this._animationsDisabled?0:o?.animation?.enterDuration??E0.enterDuration,a=this._animationsDisabled?0:o?.animation?.exitDuration??E0.exitDuration,s={rippleDisabled:this._animationsDisabled||o?.disabled||e.hasAttribute(hf),rippleConfig:{centered:e.hasAttribute(yI),terminateOnPointerUp:o?.terminateOnPointerUp,animation:{enterDuration:r,exitDuration:a}}},c=new tl(s,this._ngZone,n,this._platform,this._injector),m=!s.rippleDisabled;m&&c.setupTriggerEvents(e),this._hosts.set(e,{target:s,renderer:c,hasSetUpEvents:m}),e.removeAttribute(U_)}destroyRipple(e){let n=this._hosts.get(e);n&&(n.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var UZ=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,$Z=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function G_(t,i){let e=Array(t);for(let n=0;n{class t extends Gi{useUtcForDisplay=!1;_matDateLocale=d(j_,{optional:!0});constructor(){super();let e=d(j_,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let n=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return G_(12,o=>this._format(n,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return G_(31,n=>this._format(e,new Date(2017,0,n+1)))}getDayOfWeekNames(e){let n=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return G_(7,o=>this._format(n,new Date(2017,0,o+1)))}getYearName(e){let n=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(n,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),n=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return n===7?0:n}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,n,o){let r=this._createDateWithOverflow(e,n,o);return r.getMonth()!=n,r}today(){return new Date}parse(e,n){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,n){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,Ne(q({},n),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,n){return this.addCalendarMonths(e,n*12)}addCalendarMonths(e,n){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+n,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+n)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,n){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+n)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(UZ.test(e)){let n=new Date(e);if(this.isValid(n))return n}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,n,o,r){let a=this.clone(e);return a.setHours(n,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,n){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,n){return new Date(e.getTime()+n*1e3)}_createDateWithOverflow(e,n,o){let r=new Date;return r.setFullYear(e,n,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,n){let o=new Date;return o.setUTCFullYear(n.getFullYear(),n.getMonth(),n.getDate()),o.setUTCHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e.format(o)}_parseTimeString(e){let n=e.toUpperCase().match($Z);if(n){let o=parseInt(n[1]),r=parseInt(n[2]),a=n[3]==null?void 0:parseInt(n[3]),s=n[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),W_(o,0,23)&&W_(r,0,59)&&(a==null||W_(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function W_(t,i,e){return!isNaN(t)&&t>=i&&t<=e}var WZ={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var xI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[qZ()]})}return t})();function qZ(t=WZ){return[{provide:Gi,useClass:GZ},{provide:Zs,useValue:t}]}var YZ=["mat-icon-button",""],QZ=["*"],KZ=new L("MAT_BUTTON_CONFIG");function MI(t){return t==null?void 0:ut(t)}var gf=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_animationsDisabled=Ue();_config=d(KZ,{optional:!0});_focusMonitor=d(sn);_cleanupClick;_renderer=d(Ke);_rippleLoader=d(CI);_isAnchor;_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;tabIndex;set _tabindex(e){this.tabIndex=e}constructor(){d(at).load(cn);let e=this._elementRef.nativeElement;this._isAnchor=e.tagName==="A",this.disabledInteractive=this._config?.disabledInteractive??!1,this.color=this._config?.color??null,this._rippleLoader?.configureRipple(e,{className:"mat-mdc-button-ripple"})}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0),this._isAnchor&&this._setupAsAnchor()}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",n){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,n):this._elementRef.nativeElement.focus(n)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this._isAnchor?this.disabled||null:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}_getTabIndex(){return this._isAnchor?this.disabled&&!this.disabledInteractive?-1:this.tabIndex:this.tabIndex}_setupAsAnchor(){this._cleanupClick=this._ngZone.runOutsideAngular(()=>this._renderer.listen(this._elementRef.nativeElement,"click",e=>{this.disabled&&(e.preventDefault(),e.stopImmediatePropagation())}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,hostAttrs:[1,"mat-mdc-button-base"],hostVars:13,hostBindings:function(n,o){n&2&&(ne("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled())("tabindex",o._getTabIndex()),Tt(o.color?"mat-"+o.color:""),oe("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("mat-unthemed",!o.color)("_mat-animation-noopable",o._animationsDisabled))},inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",H],disabled:[2,"disabled","disabled",H],ariaDisabled:[2,"aria-disabled","ariaDisabled",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H],tabIndex:[2,"tabIndex","tabIndex",MI],_tabindex:[2,"tabindex","_tabindex",MI]}})}return t})(),ni=(()=>{class t extends gf{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["button","mat-icon-button",""],["a","mat-icon-button",""],["button","matIconButton",""],["a","matIconButton",""]],hostAttrs:[1,"mdc-icon-button","mat-mdc-icon-button"],exportAs:["matButton","matAnchor"],features:[ce],attrs:YZ,ngContentSelectors:QZ,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(De(),Tn(0,"span",0),ae(1),Tn(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%));flex-shrink:0;text-align:center;width:var(--mat-icon-button-state-layer-size, 40px);height:var(--mat-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mat-icon-button-state-layer-size, 40px) - var(--mat-icon-button-icon-size, 24px)) / 2);font-size:var(--mat-icon-button-icon-size, 24px);color:var(--mat-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-icon-button-touch-target-size, 48px);display:var(--mat-icon-button-touch-target-display, block);left:50%;width:var(--mat-icon-button-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mat-icon-button-icon-size, 24px);height:var(--mat-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:var(--mat-icon-button-container-shape, var(--mat-sys-corner-full, 50%))}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} `],encapsulation:2,changeDetection:0})}return t})();var XZ=["matButton",""],SI=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],kI=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var ZZ=["mat-mini-fab",""],JZ=`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mat-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mat-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mat-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mat-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-touch-target-size, 48px);display:var(--mat-fab-touch-target-display, block);left:50%;width:var(--mat-fab-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mat-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mat-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mat-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mat-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mat-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mat-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-fab-small-touch-target-size, 48px);display:var(--mat-fab-small-touch-target-display);left:50%;width:var(--mat-fab-small-touch-target-size, 48px);transform:translate(-50%, -50%)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;box-shadow:var(--mat-fab-extended-container-elevation-shadow, var(--mat-sys-level3));height:var(--mat-fab-extended-container-height, 56px);border-radius:var(--mat-fab-extended-container-shape, var(--mat-sys-corner-large));font-family:var(--mat-fab-extended-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-fab-extended-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mat-fab-extended-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-fab-extended-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-mdc-extended-fab:hover{box-shadow:var(--mat-fab-extended-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mat-fab-extended-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mat-fab-extended-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} `,wI=new Map([["text",["mat-mdc-button"]],["filled",["mdc-button--unelevated","mat-mdc-unelevated-button"]],["elevated",["mdc-button--raised","mat-mdc-raised-button"]],["outlined",["mdc-button--outlined","mat-mdc-outlined-button"]],["tonal",["mat-tonal-button"]]]),vt=(()=>{class t extends gf{get appearance(){return this._appearance}set appearance(e){this.setAppearance(e||this._config?.defaultAppearance||"text")}_appearance=null;constructor(){super();let e=eJ(this._elementRef.nativeElement);e&&this.setAppearance(e)}setAppearance(e){if(e===this._appearance)return;let n=this._elementRef.nativeElement.classList,o=this._appearance?wI.get(this._appearance):null,r=wI.get(e);o&&n.remove(...o),n.add(...r),this._appearance=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["button","matButton",""],["a","matButton",""],["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""],["a","mat-button",""],["a","mat-raised-button",""],["a","mat-flat-button",""],["a","mat-stroked-button",""]],hostAttrs:[1,"mdc-button"],inputs:{appearance:[0,"matButton","appearance"]},exportAs:["matButton","matAnchor"],features:[ce],attrs:XZ,ngContentSelectors:kI,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(De(SI),Tn(0,"span",0),ae(1),nt(2,"span",1),ae(3,1),rt(),ae(4,2),Tn(5,"span",2)(6,"span",3)),n&2&&oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mat-mdc-button-base .mat-icon{min-height:fit-content;flex-shrink:0}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-button-text-horizontal-padding, 12px);height:var(--mat-button-text-container-height, 40px);font-family:var(--mat-button-text-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-text-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-text-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-text-label-text-transform);font-weight:var(--mat-button-text-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mat-button-text-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mat-button-text-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-text-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-button-text-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-offset, -4px);margin-left:var(--mat-button-text-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-text-icon-spacing, 8px);margin-left:var(--mat-button-text-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-button-text-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-text-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-text-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-text-touch-target-size, 48px);display:var(--mat-button-text-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-filled-container-height, 40px);font-family:var(--mat-button-filled-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-filled-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-filled-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-filled-label-text-transform);font-weight:var(--mat-button-filled-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-filled-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-offset, -8px);margin-left:var(--mat-button-filled-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-filled-icon-spacing, 8px);margin-left:var(--mat-button-filled-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-button-filled-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-filled-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-filled-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-filled-touch-target-size, 48px);display:var(--mat-button-filled-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mat-button-filled-label-text-color, var(--mat-sys-on-primary));background-color:var(--mat-button-filled-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mat-button-filled-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-filled-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-filled-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mat-button-protected-container-elevation-shadow, var(--mat-sys-level1));height:var(--mat-button-protected-container-height, 40px);font-family:var(--mat-button-protected-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-protected-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-protected-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-protected-label-text-transform);font-weight:var(--mat-button-protected-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-protected-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-offset, -8px);margin-left:var(--mat-button-protected-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-protected-icon-spacing, 8px);margin-left:var(--mat-button-protected-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-button-protected-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-protected-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-protected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-protected-touch-target-size, 48px);display:var(--mat-button-protected-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-raised-button:not(:disabled){color:var(--mat-button-protected-label-text-color, var(--mat-sys-primary));background-color:var(--mat-button-protected-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mat-button-protected-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mat-button-protected-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mat-button-protected-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mat-button-protected-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-protected-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-protected-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mat-button-protected-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-outlined-container-height, 40px);font-family:var(--mat-button-outlined-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-outlined-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-outlined-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-outlined-label-text-transform);font-weight:var(--mat-button-outlined-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mat-button-outlined-container-shape, var(--mat-sys-corner-full));border-width:var(--mat-button-outlined-outline-width, 1px);padding:0 var(--mat-button-outlined-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-offset, -8px);margin-left:var(--mat-button-outlined-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-outlined-icon-spacing, 8px);margin-left:var(--mat-button-outlined-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-button-outlined-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-outlined-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-outlined-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-outlined-touch-target-size, 48px);display:var(--mat-button-outlined-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-outlined-button:not(:disabled){color:var(--mat-button-outlined-label-text-color, var(--mat-sys-primary));border-color:var(--mat-button-outlined-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-outlined-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mat-button-outlined-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mat-button-tonal-container-height, 40px);font-family:var(--mat-button-tonal-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-tonal-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-button-tonal-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mat-button-tonal-label-text-transform);font-weight:var(--mat-button-tonal-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-button-tonal-horizontal-padding, 24px)}.mat-tonal-button:not(:disabled){color:var(--mat-button-tonal-label-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-tonal-container-color, var(--mat-sys-secondary-container))}.mat-tonal-button,.mat-tonal-button .mdc-button__ripple{border-radius:var(--mat-button-tonal-container-shape, var(--mat-sys-corner-full))}.mat-tonal-button[disabled],.mat-tonal-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-button-tonal-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-tonal-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-tonal-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}[dir=rtl] .mat-tonal-button>.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}.mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-offset, -8px);margin-left:var(--mat-button-tonal-icon-spacing, 8px)}[dir=rtl] .mat-tonal-button .mdc-button__label+.mat-icon{margin-right:var(--mat-button-tonal-icon-spacing, 8px);margin-left:var(--mat-button-tonal-icon-offset, -8px)}.mat-tonal-button .mat-ripple-element{background-color:var(--mat-button-tonal-ripple-color, color-mix(in srgb, var(--mat-sys-on-secondary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-tonal-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-state-layer-color, var(--mat-sys-on-secondary-container))}.mat-tonal-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-button-tonal-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-tonal-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-tonal-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-tonal-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-tonal-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-button-tonal-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-tonal-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:var(--mat-button-tonal-touch-target-size, 48px);display:var(--mat-button-tonal-touch-target-display, block);left:0;right:0;transform:translateY(-50%)}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button,.mat-tonal-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-tonal-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before,.mat-tonal-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon,.mat-tonal-button .mdc-button__label,.mat-tonal-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator,.mat-tonal-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before,.mat-tonal-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable,.mat-tonal-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon,.mat-tonal-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-tonal-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} `,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-button-base.mat-tonal-button,.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function eJ(t){return t.hasAttribute("mat-raised-button")?"elevated":t.hasAttribute("mat-stroked-button")?"outlined":t.hasAttribute("mat-flat-button")?"filled":t.hasAttribute("mat-button")?"text":null}var tJ=new L("mat-mdc-fab-default-options",{providedIn:"root",factory:EI});function EI(){return{color:"accent"}}var DI=EI();var jOe=(()=>{class t extends gf{_options=d(tJ,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||DI,this.color=this._options.color||DI.color}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[ce],attrs:ZZ,ngContentSelectors:kI,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(De(SI),Tn(0,"span",0),ae(1),nt(2,"span",1),ae(3,1),rt(),ae(4,2),Tn(5,"span",2)(6,"span",3)),n&2&&oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[JZ],encapsulation:2,changeDetection:0})}return t})();var _a=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi,fe]})}return t})();var nJ=["tooltip"],q_=20;var Y_=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t,{scrollThrottle:q_})}});function TI(t){let i=d(be);return()=>fi(i,{scrollThrottle:q_})}var Q_={provide:Y_,deps:[],useFactory:TI};function PI(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var LI=new L("mat-tooltip-default-options",{providedIn:"root",factory:PI});var II="tooltip-panel",OI=Ns({passive:!0}),iJ=8,oJ=8,rJ=24,aJ=200,mo=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_platform=d(je);_ariaDescriber=d(Y1);_focusMonitor=d(sn);_dir=d(bt);_injector=d(be);_viewContainerRef=d(dt);_animationsDisabled=Ue();_defaultOptions=d(LI,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=AI;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=yn(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=yn(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=vn(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=vn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new B;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=iJ}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ye(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{e.removeEventListener(n,o,OI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new yo(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(ye(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof Q)return this._overlayRef;this._detach()}let n=this._injector.get(ar).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${II}`,r=zr(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(ye(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=lo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(Y_)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ye(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ye(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ye(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!St(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(ye(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(q(q({},o.main),r.main)),this._addOffset(q(q({},o.fallback),r.fallback))])}_addOffset(e){let n=oJ,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ct(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let c=`${this._cssClassPrefix}-${II}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,OI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(Me).elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Ct({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return t})(),AI=(()=>{class t{_changeDetectorRef=d(xe);_elementRef=d(Q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ue();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>rJ&&e.width>=aJ}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&ue(nJ,7),n&2){let r;U(r=$())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&N("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1,0),N("animationend",function(s){return G(r),W(o._handleAnimationEnd(s))}),h(2,"div",2),y(3),_()()}n&2&&(oe("mdc-tooltip--multiline",o._isMultiline),D("ngClass",o.tooltipClass),p(3),T(o.message))},dependencies:[Un],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} -`],encapsulation:2,changeDetection:0})}return t})();var sJ=["mat-calendar-body",""];function cJ(t,i){return this._trackRow(i)}var jI=(t,i)=>i.id;function lJ(t,i){if(t&1&&(h(0,"tr",0)(1,"td",3),y(2),_()()),t&2){let e=w();p(),At("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),te("colspan",e.numCols),p(),ne(" ",e.label," ")}}function dJ(t,i){if(t&1&&(h(0,"td",3),y(1),_()),t&2){let e=w(2);At("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),te("colspan",e._firstRowOffset),p(),ne(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function uJ(t,i){if(t&1){let e=le();h(0,"td",6)(1,"button",7),N("click",function(o){let r=G(e).$implicit,a=w(2);return W(a._cellClicked(r,o))})("focus",function(o){let r=G(e).$implicit,a=w(2);return W(a._emitActiveDateChange(r,o))}),h(2,"span",8),y(3),_(),F(4,"span",9),_()()}if(t&2){let e=i.$implicit,n=i.$index,o=w().$index,r=w();At("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),te("data-mat-row",o)("data-mat-col",n),p(),oe("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),D("ngClass",e.cssClasses)("tabindex",r._isActiveCell(o,n)?0:-1),te("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),p(),oe("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),p(),ne(" ",e.displayValue," ")}}function mJ(t,i){if(t&1&&(h(0,"tr",1),E(1,dJ,2,6,"td",4),Xe(2,uJ,5,48,"td",5,jI),_()),t&2){let e=i.$implicit,n=i.$index,o=w();p(),I(n===0&&o._firstRowOffset?1:-1),p(),Ze(e)}}function pJ(t,i){if(t&1&&(h(0,"th",2)(1,"span",6),y(2),_(),h(3,"span",3),y(4),_()()),t&2){let e=i.$implicit;p(2),T(e.long),p(2),T(e.narrow)}}var fJ=["*"];function hJ(t,i){}function gJ(t,i){if(t&1){let e=le();h(0,"mat-month-view",4),w1("activeDateChange",function(o){G(e);let r=w();return Hd(r.activeDate,o)||(r.activeDate=o),W(o)}),N("_userSelection",function(o){G(e);let r=w();return W(r._dateSelected(o))})("dragStarted",function(o){G(e);let r=w();return W(r._dragStarted(o))})("dragEnded",function(o){G(e);let r=w();return W(r._dragEnded(o))}),_()}if(t&2){let e=w();M1("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function _J(t,i){if(t&1){let e=le();h(0,"mat-year-view",5),w1("activeDateChange",function(o){G(e);let r=w();return Hd(r.activeDate,o)||(r.activeDate=o),W(o)}),N("monthSelected",function(o){G(e);let r=w();return W(r._monthSelectedInYearView(o))})("selectedChange",function(o){G(e);let r=w();return W(r._goToDateInView(o,"month"))}),_()}if(t&2){let e=w();M1("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function bJ(t,i){if(t&1){let e=le();h(0,"mat-multi-year-view",6),w1("activeDateChange",function(o){G(e);let r=w();return Hd(r.activeDate,o)||(r.activeDate=o),W(o)}),N("yearSelected",function(o){G(e);let r=w();return W(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){G(e);let r=w();return W(r._goToDateInView(o,"year"))}),_()}if(t&2){let e=w();M1("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function vJ(t,i){}var yJ=["button"],CJ=[[["","matDatepickerToggleIcon",""]]],xJ=["[matDatepickerToggleIcon]"];function MJ(t,i){t&1&&($t(),h(0,"svg",2),F(1,"path",3),_())}var D2=(()=>{class t{changes=new B;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wJ=0,nu=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=wJ++;constructor(i,e,n,o,r={},a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.cssClasses=r,this.compareValue=a,this.rawValue=s}},DJ={passive:!1,capture:!0},_f={passive:!0,capture:!0},zI={passive:!0},w2=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_platform=d(je);_intl=d(D2);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new j;previewChange=new j;activeDateChange=new j;dragStarted=new j;dragEnded=new j;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=d(be);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=d(Ke),n=d(He);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),d(at).load(cn),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,DJ),e.listen(o,"mouseenter",this._enterHandler,_f),e.listen(o,"focus",this._enterHandler,_f),e.listen(o,"mouseleave",this._leaveHandler,_f),e.listen(o,"blur",this._leaveHandler,_f),e.listen(o,"mousedown",this._mousedownHandler,zI),e.listen(o,"touchstart",this._mousedownHandler,zI)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){Ct(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Z_(e,this.startValue,this.endValue)}_isRangeEnd(e){return J_(e,this.startValue,this.endValue)}_isInRange(e){return e9(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Z_(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return J_(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return e9(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Z_(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return J_(e,this.previewStart,this.previewEnd)}_isInPreview(e){return e9(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=RI(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),X_(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=X_(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=RI(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=X_(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Re],attrs:sJ,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(E(0,lJ,3,6,"tr",0),Xe(1,mJ,4,1,"tr",1,cJ,!0),h(3,"span",2),y(4),_(),h(5,"span",2),y(6),_(),h(7,"span",2),y(8),_(),h(9,"span",2),y(10),_()),n&2&&(I(o._firstRowOffset{class t extends gf{_options=d(tJ,{optional:!0});_isFab=!0;constructor(){super(),this._options=this._options||DI,this.color=this._options.color||DI.color}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["button","mat-mini-fab",""],["a","mat-mini-fab",""],["button","matMiniFab",""],["a","matMiniFab",""]],hostAttrs:[1,"mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"],exportAs:["matButton","matAnchor"],features:[ce],attrs:ZZ,ngContentSelectors:kI,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(n,o){n&1&&(De(SI),Tn(0,"span",0),ae(1),nt(2,"span",1),ae(3,1),rt(),ae(4,2),Tn(5,"span",2)(6,"span",3)),n&2&&oe("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[JZ],encapsulation:2,changeDetection:0})}return t})();var _a=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi,fe]})}return t})();var nJ=["tooltip"],q_=20;var Y_=new L("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t,{scrollThrottle:q_})}});function TI(t){let i=d(be);return()=>fi(i,{scrollThrottle:q_})}var Q_={provide:Y_,deps:[],useFactory:TI};function PI(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var LI=new L("mat-tooltip-default-options",{providedIn:"root",factory:PI});var II="tooltip-panel",OI=Ns({passive:!0}),iJ=8,oJ=8,rJ=24,aJ=200,mo=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_platform=d(je);_ariaDescriber=d(Y1);_focusMonitor=d(sn);_dir=d(bt);_injector=d(be);_viewContainerRef=d(dt);_animationsDisabled=Ue();_defaultOptions=d(LI,{optional:!0});_overlayRef;_tooltipInstance;_overlayPanelClass;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=AI;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=yn(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let n=yn(e);this._disabled!==n&&(this._disabled=n,n?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=vn(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=vn(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let n=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(n)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new B;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=iJ}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(ye(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([n,o])=>{e.removeEventListener(n,o,OI)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,n){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(n);this._detach(),this._portal=this._portal||new yo(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(ye(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let n=this._tooltipInstance;n&&(n.isVisible()?n.hide(e):(n._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof Q)return this._overlayRef;this._detach()}let n=this._injector.get(ar).getAncestorScrollContainers(this._elementRef),o=`${this._cssClassPrefix}-${II}`,r=zr(this._injector,this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(n);return r.positionChanges.pipe(ye(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=lo(this._injector,{direction:this._dir,positionStrategy:r,panelClass:this._overlayPanelClass?[...this._overlayPanelClass,o]:o,scrollStrategy:this._injector.get(Y_)(),disableAnimations:this._animationsDisabled}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(ye(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(ye(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(ye(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!Dt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(ye(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let n=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();n.withPositions([this._addOffset(q(q({},o.main),r.main)),this._addOffset(q(q({},o.fallback),r.fallback))])}_addOffset(e){let n=oJ,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-n:e.originY==="bottom"?e.offsetY=n:e.originX==="start"?e.offsetX=o?-n:n:e.originX==="end"&&(e.offsetX=o?n:-n),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"||n=="below"?o={originX:"center",originY:n=="above"?"top":"bottom"}:n=="before"||n=="left"&&e||n=="right"&&!e?o={originX:"start",originY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",n=this.position,o;n=="above"?o={overlayX:"center",overlayY:"bottom"}:n=="below"?o={overlayX:"center",overlayY:"top"}:n=="before"||n=="left"&&e||n=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(n=="after"||n=="right"&&e||n=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Ct(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,n){return this.position==="above"||this.position==="below"?n==="top"?n="bottom":n==="bottom"&&(n="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:n}}_updateCurrentPositionClass(e){let{overlayY:n,originX:o,originY:r}=e,a;if(n==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=n==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let c=`${this._cssClassPrefix}-${II}-`;s.removePanelClass(c+this._currentPosition),s.addPanelClass(c+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let n;e.x!==void 0&&e.y!==void 0&&(n=e),this.show(void 0,n)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let n=e.targetTouches?.[0],o=n?{x:n.clientX,y:n.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",n=>{let o=n.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",n=>this._wheelListener(n)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let n=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",n],["touchcancel",n])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([n,o])=>{this._elementRef.nativeElement.addEventListener(n,o,OI)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let n=this._injector.get(Me).elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;n!==o&&!o.contains(n)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let n=this._elementRef.nativeElement,o=n.style;(e==="on"||n.nodeName!=="INPUT"&&n.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!n.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Ct({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return t})(),AI=(()=>{class t{_changeDetectorRef=d(xe);_elementRef=d(Q);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled=Ue();_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new B;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>rJ&&e.width>=aJ}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let n=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(n.classList.remove(e?r:o),n.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(n);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(n.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tooltip-component"]],viewQuery:function(n,o){if(n&1&&ue(nJ,7),n&2){let r;U(r=$())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(n,o){n&1&&N("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1,0),N("animationend",function(s){return G(r),W(o._handleAnimationEnd(s))}),h(2,"div",2),y(3),_()()}n&2&&(oe("mdc-tooltip--multiline",o._isMultiline),D("ngClass",o.tooltipClass),p(3),T(o.message))},dependencies:[Un],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mat-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mat-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mat-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mat-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mat-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mat-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} +`],encapsulation:2,changeDetection:0})}return t})();var sJ=["mat-calendar-body",""];function cJ(t,i){return this._trackRow(i)}var jI=(t,i)=>i.id;function lJ(t,i){if(t&1&&(h(0,"tr",0)(1,"td",3),y(2),_()()),t&2){let e=M();p(),At("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e.numCols),p(),ee(" ",e.label," ")}}function dJ(t,i){if(t&1&&(h(0,"td",3),y(1),_()),t&2){let e=M(2);At("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),ne("colspan",e._firstRowOffset),p(),ee(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function uJ(t,i){if(t&1){let e=le();h(0,"td",6)(1,"button",7),N("click",function(o){let r=G(e).$implicit,a=M(2);return W(a._cellClicked(r,o))})("focus",function(o){let r=G(e).$implicit,a=M(2);return W(a._emitActiveDateChange(r,o))}),h(2,"span",8),y(3),_(),F(4,"span",9),_()()}if(t&2){let e=i.$implicit,n=i.$index,o=M().$index,r=M();At("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),ne("data-mat-row",o)("data-mat-col",n),p(),oe("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,n))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,n))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,n))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),D("ngClass",e.cssClasses)("tabindex",r._isActiveCell(o,n)?0:-1),ne("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),p(),oe("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),p(),ee(" ",e.displayValue," ")}}function mJ(t,i){if(t&1&&(h(0,"tr",1),E(1,dJ,2,6,"td",4),Xe(2,uJ,5,48,"td",5,jI),_()),t&2){let e=i.$implicit,n=i.$index,o=M();p(),I(n===0&&o._firstRowOffset?1:-1),p(),Ze(e)}}function pJ(t,i){if(t&1&&(h(0,"th",2)(1,"span",6),y(2),_(),h(3,"span",3),y(4),_()()),t&2){let e=i.$implicit;p(2),T(e.long),p(2),T(e.narrow)}}var fJ=["*"];function hJ(t,i){}function gJ(t,i){if(t&1){let e=le();h(0,"mat-month-view",4),w1("activeDateChange",function(o){G(e);let r=M();return Hd(r.activeDate,o)||(r.activeDate=o),W(o)}),N("_userSelection",function(o){G(e);let r=M();return W(r._dateSelected(o))})("dragStarted",function(o){G(e);let r=M();return W(r._dragStarted(o))})("dragEnded",function(o){G(e);let r=M();return W(r._dragEnded(o))}),_()}if(t&2){let e=M();M1("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function _J(t,i){if(t&1){let e=le();h(0,"mat-year-view",5),w1("activeDateChange",function(o){G(e);let r=M();return Hd(r.activeDate,o)||(r.activeDate=o),W(o)}),N("monthSelected",function(o){G(e);let r=M();return W(r._monthSelectedInYearView(o))})("selectedChange",function(o){G(e);let r=M();return W(r._goToDateInView(o,"month"))}),_()}if(t&2){let e=M();M1("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function bJ(t,i){if(t&1){let e=le();h(0,"mat-multi-year-view",6),w1("activeDateChange",function(o){G(e);let r=M();return Hd(r.activeDate,o)||(r.activeDate=o),W(o)}),N("yearSelected",function(o){G(e);let r=M();return W(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){G(e);let r=M();return W(r._goToDateInView(o,"year"))}),_()}if(t&2){let e=M();M1("activeDate",e.activeDate),D("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function vJ(t,i){}var yJ=["button"],CJ=[[["","matDatepickerToggleIcon",""]]],xJ=["[matDatepickerToggleIcon]"];function MJ(t,i){t&1&&($t(),h(0,"svg",2),F(1,"path",3),_())}var D2=(()=>{class t{changes=new B;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,n){return`${e} \u2013 ${n}`}formatYearRangeLabel(e,n){return`${e} to ${n}`}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),wJ=0,nu=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=wJ++;constructor(i,e,n,o,r={},a=i,s){this.value=i,this.displayValue=e,this.ariaLabel=n,this.enabled=o,this.cssClasses=r,this.compareValue=a,this.rawValue=s}},DJ={passive:!1,capture:!0},_f={passive:!0,capture:!0},zI={passive:!0},w2=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_platform=d(je);_intl=d(D2);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new j;previewChange=new j;activeDateChange=new j;dragStarted=new j;dragEnded=new j;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=d(be);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=d(Ke),n=d(He);this._startDateLabelId=n.getId("mat-calendar-body-start-"),this._endDateLabelId=n.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=n.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=n.getId("mat-calendar-body-comparison-end-"),d(at).load(cn),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[e.listen(o,"touchmove",this._touchmoveHandler,DJ),e.listen(o,"mouseenter",this._enterHandler,_f),e.listen(o,"focus",this._enterHandler,_f),e.listen(o,"mouseleave",this._leaveHandler,_f),e.listen(o,"blur",this._leaveHandler,_f),e.listen(o,"mousedown",this._mousedownHandler,zI),e.listen(o,"touchstart",this._mousedownHandler,zI)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,n){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:n})}_emitActiveDateChange(e,n){e.enabled&&this.activeDateChange.emit({value:e.value,event:n})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let n=e.numCols,{rows:o,numCols:r}=this;(e.rows||n)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||n||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(n||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,n){let o=e*this.numCols+n;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){Ct(()=>{setTimeout(()=>{let n=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");n&&(e||(this._skipNextFocus=!0),n.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Z_(e,this.startValue,this.endValue)}_isRangeEnd(e){return J_(e,this.startValue,this.endValue)}_isInRange(e){return e9(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Z_(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,n,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[n][o-1];if(!r){let a=this.rows[n-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,n,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[n][o+1];if(!r){let a=this.rows[n+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return J_(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return e9(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Z_(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return J_(e,this.previewStart,this.previewEnd)}_isInPreview(e){return e9(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let n=this._getCellFromElement(e.target);n&&this._ngZone.run(()=>this.previewChange.emit({value:n.enabled?n:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let n=RI(e),o=n?this._getCellFromElement(n):null;n!==e.target&&(this._didDragSinceMouseDown=!0),X_(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let n=e.target&&this._getCellFromElement(e.target);!n||!this._isInRange(n.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:n.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let n=X_(e.target);if(!n){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}n.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(n);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let n=RI(e);n&&this._mouseupHandler({target:n})};_getCellFromElement(e){let n=X_(e);if(n){let o=n.getAttribute("data-mat-row"),r=n.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)]?.[parseInt(r)]||null}return null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Re],attrs:sJ,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(n,o){n&1&&(E(0,lJ,3,6,"tr",0),Xe(1,mJ,4,1,"tr",1,cJ,!0),h(3,"span",2),y(4),_(),h(5,"span",2),y(6),_(),h(7,"span",2),y(8),_(),h(9,"span",2),y(10),_()),n&2&&(I(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} -`],encapsulation:2,changeDetection:0})}return t})();function K_(t){return t?.nodeName==="TD"}function X_(t){let i;return K_(t)?i=t:K_(t.parentNode)?i=t.parentNode:K_(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function Z_(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function e9(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function RI(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var sr=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},iu=(()=>{class t{selection;_adapter;_selectionChanged=new B;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){Hc()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),SJ=(()=>{class t extends iu{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(ke(Gi))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function kJ(t,i){return t||new SJ(i)}var HI={provide:iu,deps:[[new Xo,new oa,iu],Gi],useFactory:kJ};var UI=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var t9=7,EJ=0,NI=(()=>{class t{_changeDetectorRef=d(xe);_dateFormats=d(Zs,{optional:!0});_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_rangeStrategy=d(UI,{optional:!0});_rerenderSubscription=Se.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new j;_userSelection=new j;dragStarted=new j;dragEnded=new j;activeDateChange=new j;_matCalendarBody;_monthLabel=we("");_weeks=we([]);_firstWeekOffset=we(0);_rangeStart=we(null);_rangeEnd=we(null);_comparisonRangeStart=we(null);_comparisonRangeEnd=we(null);_previewStart=we(null);_previewEnd=we(null);_isRange=we(!1);_todayDate=we(null);_weekdays=we([]);constructor(){d(at).load(_o),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof sr?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!St(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((t9+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%t9),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:EJ++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof sr?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&ue(w2,5),n&2){let r;U(r=$())&&(o._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),Xe(3,pJ,5,2,"th",2,jI),_(),h(5,"tr",3),F(6,"th",4),_()(),h(7,"tbody",5),N("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),_()()),n&2&&(p(3),Ze(o._weekdays()),p(4),D("label",o._monthLabel())("rows",o._weeks())("todayValue",o._todayDate())("startValue",o._rangeStart())("endValue",o._rangeEnd())("comparisonStart",o._comparisonRangeStart())("comparisonEnd",o._comparisonRangeEnd())("previewStart",o._previewStart())("previewEnd",o._previewEnd())("isRange",o._isRange())("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[w2],encapsulation:2,changeDetection:0})}return t})(),Fo=24,n9=4,FI=(()=>{class t{_changeDetectorRef=d(xe);_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_rerenderSubscription=Se.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),$I(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new j;yearSelected=new j;activeDateChange=new j;_matCalendarBody;_years=we([]);_todayYear=we(0);_selectedYear=we(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-n9);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n9);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Fo-tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Fo*10:-Fo);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Fo*10:Fo);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new nu(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=d(xe);_dateFormats=d(Zs,{optional:!0});_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_rerenderSubscription=Se.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new j;monthSelected=new j;activeDateChange=new j;_matCalendarBody;_months=we([]);_yearLabel=we("");_todayMonth=we(null);_selectedMonth=we(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new nu(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=d(D2);calendar=d(i9);_dateAdapter=d(Gi,{optional:!0});_dateFormats=d(Zs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){d(at).load(_o);let e=d(xe);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Fo))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Fo))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):$I(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-tu(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Fo-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=d(He).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:fJ,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(De(),h(0,"div",0)(1,"div",1)(2,"span",2),y(3),_(),h(4,"button",3),N("click",function(){return o.currentPeriodClicked()}),h(5,"span",4),y(6),_(),$t(),h(7,"svg",5),F(8,"polygon",6),_()(),Ko(),F(9,"div",7),ae(10),h(11,"button",8),N("click",function(){return o.previousClicked()}),$t(),h(12,"svg",9),F(13,"path",10),_()(),Ko(),h(14,"button",11),N("click",function(){return o.nextClicked()}),$t(),h(15,"svg",9),F(16,"path",12),_()()()()),n&2&&(p(2),D("id",o._periodButtonLabelId),p(),T(o.periodButtonDescription),p(),te("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),p(2),T(o.periodButtonText),p(),oe("mat-calendar-invert",o.calendar.currentView!=="month"),p(4),D("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),te("aria-label",o.prevButtonLabel),p(3),D("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),te("aria-label",o.nextButtonLabel))},dependencies:[vt,ni,mo],encapsulation:2,changeDetection:0})}return t})(),i9=(()=>{class t{_dateAdapter=d(Gi,{optional:!0});_dateFormats=d(Zs,{optional:!0});_changeDetectorRef=d(xe);_elementRef=d(Q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new j;yearSelected=new j;monthSelected=new j;viewChanged=new j(!0);_userSelection=new j;_userDragDrop=new j;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new B;constructor(){this._intlChanges=d(D2).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new yo(this.headerComponent||WI),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(no())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let n=e.value;(this.selected instanceof sr||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(ue(NI,5),ue(VI,5),ue(FI,5)),n&2){let r;U(r=$())&&(o.monthView=r.first),U(r=$())&&(o.yearView=r.first),U(r=$())&&(o.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[de([HI]),Re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(ot(0,hJ,0,0,"ng-template",0),h(1,"div",1),E(2,gJ,1,11,"mat-month-view",2)(3,_J,1,6,"mat-year-view",3)(4,bJ,1,6,"mat-multi-year-view",3),_()),n&2){let r;D("cdkPortalOutlet",o._calendarHeaderPortal),p(2),I((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Mi,x0,NI,VI,FI],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return t})(),qI=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function OJ(t){let i=d(be);return()=>fi(i)}var TJ={provide:qI,deps:[],useFactory:OJ},YI=(()=>{class t{_elementRef=d(Q);_animationsDisabled=Ue();_changeDetectorRef=d(xe);_globalModel=d(iu);_dateAdapter=d(Gi);_ngZone=d(se);_rangeSelectionStrategy=d(UI,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new B;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(d(at).load(_o),this._closeButtonText=d(D2).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=d(Ke);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof sr;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&ue(i9,5),n&2){let r;U(r=$())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tt(o.color?"mat-"+o.color:""),oe("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"mat-calendar",1),N("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),_(),ot(2,vJ,0,0,"ng-template",2),h(3,"button",3),N("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),y(4),_()()),n&2&&(oe("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),te("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),p(),Tt(o.datepicker.panelClass),D("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),p(),D("cdkPortalOutlet",o._actionsPortal),p(),oe("cdk-visually-hidden",!o._closeButtonFocused),D("color",o.color||"primary"),p(),T(o._closeButtonText))},dependencies:[Y7,i9,Mi,vt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} -`],encapsulation:2,changeDetection:0})}return t})(),BI=(()=>{class t{_injector=d(be);_viewContainerRef=d(dt);_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_model=d(iu);_animationsDisabled=Ue();_scrollStrategy=d(qI);_inputStateChanges=Se.EMPTY;_document=d(Me);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new j;monthSelected=new j;viewChanged=new j(!0);dateClass;openedStream=new j;closedStream=new j;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Dk(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=d(He).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new B;_changeDetectorRef=d(xe);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof v2&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=no(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:r}=this._componentRef;o._animationDone.pipe(Be(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new yo(YI,this._viewContainerRef),o=this._overlayRef=lo(this._injector,new co({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Ks(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||Ct(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return ga(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=zr(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return ft(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Ae(o=>o.keyCode===27&&!St(o)||this.datepickerInput&&St(o,"altKey")&&o.keyCode===38&&n.every(r=>!St(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",H],disabled:[2,"disabled","disabled",H],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",H],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",H]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Re]})}return t})(),bf=(()=>{class t extends BI{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[de([HI,{provide:BI,useExisting:t}]),ce],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),M2=class{target;targetElement;value;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},PJ=(()=>{class t{_elementRef=d(Q);_dateAdapter=d(Gi,{optional:!0});_dateFormats=d(Zs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new j;dateInput=new j;stateChanges=new B;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Se.EMPTY;_localeSubscription=Se.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new M2(this,this._elementRef.nativeElement)),this.dateChange.emit(new M2(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){LJ(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];St(e,"altKey")&&e.keyCode===40&&n.every(r=>!St(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new M2(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new M2(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",H]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Re]})}return t})();function LJ(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var AJ={provide:di,useExisting:kt(()=>vf),multi:!0},zJ={provide:Ci,useExisting:kt(()=>vf),multi:!0},vf=(()=>{class t extends PJ{_formField=d(fa,{optional:!0});_closedSubscription=Se.EMPTY;_openedSubscription=Se.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=we(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=en.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&N("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(Lt("disabled",o.disabled),te("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[de([AJ,zJ,{provide:of,useExisting:t}]),ce]})}return t})(),RJ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),ou=(()=>{class t{_intl=d(D2);_changeDetectorRef=d(xe);_stateChanges=Se.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=d(new dn("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:re(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:re(),o=this.datepicker?ft(this.datepicker.openedStream,this.datepicker.closedStream):re();this._stateChanges.unsubscribe(),this._stateChanges=ft(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,RJ,5),n&2){let a;U(a=$())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&ue(yJ,5),n&2){let r;U(r=$())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&N("click",function(a){return o._open(a)}),n&2&&(te("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),oe("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",H],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Re],ngContentSelectors:xJ,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(De(CJ),h(0,"button",1,0),E(2,MJ,2,0,":svg:svg",2),ae(3),_()),n&2&&(D("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),te("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),p(2),I(o._customIcon?-1:2))},dependencies:[ni],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} -`],encapsulation:2,changeDetection:0})}return t})();var QI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[D2,TJ],imports:[_a,Ei,Ka,so,fe,YI,ou,WI,xi]})}return t})();function NJ(t,i){if(t&1&&F(0,"input",5),t&2){let e=w(2);D("type",e.formfield.type)("formControlName",e.formfield.controlName)("required",e.formfield.required)}}function FJ(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),y(2),S(3,"translate"),_()()),t&2){let e=w(2);p(2),Dt("",k(3,2,"labels.commons.Maximum Value must be")," ",e.formfield.max)}}function VJ(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),y(2),S(3,"translate"),_()()),t&2){let e=w(2);p(2),Dt("",k(3,2,"labels.commons.Minimum Value must be")," ",e.formfield.min)}}function BJ(t,i){if(t&1&&(h(0,"mat-option",7),y(1),_()),t&2){let e=i.$implicit,n=w(3);D("value",e[n.formfield.options.value]),p(),ne(" ",e[n.formfield.options.label]," ")}}function jJ(t,i){if(t&1&&(h(0,"mat-select",6),Xe(1,BJ,2,2,"mat-option",7,ht),_()),t&2){let e=w(2);D("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),Ze(e.formfield.options.data)}}function HJ(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2){let e=w(2);p(),Dt(" ",e.formfield.label," ",k(2,3,"labels.commons.is")," "),p(3),T(k(5,5,"labels.commons.required"))}}function UJ(t,i){if(t&1&&(h(0,"div",2)(1,"mat-form-field",2)(2,"mat-label"),y(3),_(),E(4,NJ,1,3,"input",5),E(5,FJ,4,4,"mat-error"),E(6,VJ,4,4,"mat-error"),E(7,jJ,3,2,"mat-select",6),E(8,HJ,6,7,"mat-error"),_()()),t&2){let e=w();p(3),T(e.formfield.label),p(),I(e.formfield.controlType==="input"?4:-1),p(),I(e.form.controls[e.formfield.controlName].hasError("max")?5:-1),p(),I(e.form.controls[e.formfield.controlName].hasError("min")?6:-1),p(),I(e.formfield.controlType==="select"?7:-1),p(),I(e.form.controls[e.formfield.controlName].hasError("required")?8:-1)}}function $J(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2){let e=w(2);p(),Dt(" ",e.formfield.label," ",k(2,3,"labels.commons.is")," "),p(3),T(k(5,5,"labels.commons.required"))}}function GJ(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){G(e);let o=Nt(6);return W(o.open())}),h(1,"mat-label"),y(2),_(),F(3,"input",9)(4,"mat-datepicker-toggle",10)(5,"mat-datepicker",null,0),E(7,$J,6,7,"mat-error"),_()}if(t&2){let e=Nt(6),n=w();p(2),T(n.formfield.label),p(),D("matDatepicker",e)("min",n.formfield.minDate)("max",n.formfield.maxDate)("formControlName",n.formfield.controlName)("required",n.formfield.required),p(),D("for",e),p(3),I(n.form.controls[n.formfield.controlName].hasError("required")?7:-1)}}function WJ(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2){let e=w(2);p(),Dt(" ",e.formfield.label," ",k(2,3,"labels.commons.is")," "),p(3),T(k(5,5,"labels.commons.required"))}}function qJ(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){G(e);let o=w();return W(o.datePicker.open())}),h(1,"mat-label"),y(2),_(),F(3,"input",11),E(4,WJ,6,7,"mat-error"),_()}if(t&2){let e=w();p(2),T(e.formfield.label),p(),D("min",e.formfield.minDate)("max",e.formfield.maxDate)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),I(e.form.controls[e.formfield.controlName].hasError("required")?4:-1)}}function YJ(t,i){if(t&1&&(h(0,"mat-checkbox",4),y(1),_()),t&2){let e=w();D("checked",e.formfield.value)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),ne(" ",e.formfield.label," ")}}var yf=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-formfield"]],inputs:{form:"form",formfield:"formfield"},decls:5,vars:5,consts:[["datePicker",""],[1,"flex-fill",3,"formGroup"],[1,"flex-fill"],["Fill","",1,"flex-fill"],["labelPosition","before",3,"checked","formControlName","required"],["matInput","",3,"type","formControlName","required"],[3,"formControlName","required"],[3,"value"],["Fill","",1,"flex-fill",3,"click"],["matInput","",3,"matDatepicker","min","max","formControlName","required"],["matSuffix","",3,"for"],["matInput","","type","datetime-local",3,"min","max","formControlName","required"]],template:function(n,o){n&1&&(h(0,"div",1),E(1,UJ,9,6,"div",2),E(2,GJ,8,8,"mat-form-field",3),E(3,qJ,5,6,"mat-form-field",3),E(4,YJ,2,4,"mat-checkbox",4),_()),n&2&&(D("formGroup",o.form),p(),I(o.formfield.controlType==="input"||o.formfield.controlType==="select"?1:-1),p(),I(o.formfield.controlType==="datepicker"?2:-1),p(),I(o.formfield.controlType==="datetimepicker"?3:-1),p(),I(o.formfield.controlType==="checkbox"?4:-1))},dependencies:[he,ve,yi,mn,tr,Ir,ui,Ao,Bt,Cn,ao,Za,ti,qn,ln,vf,ou,bf,il,Te],encapsulation:2})}}return t})();function QJ(t,i){}var ec=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var a9=(()=>{class t extends Qs{_elementRef=d(Q);_focusTrapFactory=d($1);_config;_interactivityChecker=d(Vs);_ngZone=d(se);_focusMonitor=d(sn);_renderer=d(Ke);_changeDetectorRef=d(xe);_injector=d(be);_platform=d(je);_document=d(Me);_portalOutlet;_focusTrapped=new B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(ec,{optional:!0})||new ec,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||Ct(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=no(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=no();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=no()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&ue(Mi,7),n&2){let r;U(r=$())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&te("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[ce],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&ot(0,QJ,0,0,"ng-template",0)},dependencies:[Mi],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return t})(),ru=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!St(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},KJ=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>Ks(t)}}),XJ=new L("DialogData"),ZJ=new L("DefaultDialogConfig");function JJ(t){let i=we(t),e=new j;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var s9=(()=>{class t{_injector=d(be);_defaultOptions=d(ZJ,{optional:!0});_parentDialog=d(t,{optional:!0,skipSelf:!0});_overlayContainer=d(uf);_idGenerator=d(He);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;_ariaHiddenElements=new Map;_scrollStrategy=d(KJ);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Ai(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(We(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new ec;n=q(q({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=lo(this._injector,r),s=new ru(a,n),c=this._attachContainer(a,s,n);if(s.containerInstance=c,!this.openDialogs.length){let m=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(Be(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(m)}):this._hideNonDialogContentFromAssistiveTechnology(m)}return this._attachDialogContent(e,s,c,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){r9(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){r9(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),r9(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new co({positionStrategy:e.positionStrategy||ga().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:ec,useValue:o},{provide:ru,useValue:n},{provide:b2,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=a9;let c=new yo(s,o.viewContainerRef,be.create({parent:r||this._injector,providers:a}));return e.attach(c).instance}_attachDialogContent(e,n,o,r){if(e instanceof tt){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=q(q({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Wn(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new yo(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:XJ,useValue:e.data},{provide:ru,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(bt,null,{optional:!0}))&&s.push({provide:bt,useValue:JJ(e.direction)}),be.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function r9(t,i){let e=t.length;for(;e--;)i(t[e])}var XI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[s9],imports:[Ei,so,Ka,so]})}return t})();function eee(t,i){}var su=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},c9="mdc-dialog--open",ZI="mdc-dialog--opening",JI="mdc-dialog--closing",tee=150,nee=75,nO=(()=>{class t extends a9{_animationStateChanged=new j;_animationsEnabled=!Ue();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?tO(this._config.enterAnimationDuration)??tee:0;_exitAnimationDuration=this._animationsEnabled?tO(this._config.exitAnimationDuration)??nee:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(eO,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ZI,c9)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(c9),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(c9),this._animationsEnabled?(this._hostElement.style.setProperty(eO,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(JI)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(ZI,JI)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(Lt("id",o._config.id),te("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),oe("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[ce],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(h(0,"div",0)(1,"div",1),ot(2,eee,0,0,"ng-template",2),_()())},dependencies:[Mi],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} -`],encapsulation:2})}return t})(),eO="--mat-dialog-transition-duration";function tO(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?vn(t.substring(0,t.length-2)):t.endsWith("s")?vn(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var au=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(au||{}),qt=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new B;_beforeClosed=new B;_result;_closeFallbackTimeout;_state=au.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ae(o=>o.state==="opened"),Be(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ae(o=>o.state==="closed"),Be(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ft(this.backdropClick(),this.keydownEvents().pipe(Ae(o=>o.keyCode===27&&!this.disableClose&&!St(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),l9(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(Ae(n=>n.state==="closing"),Be(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=au.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=au.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function l9(t,i,e){return t._closeInteractionType=i,t.close(e)}var En=new L("MatMdcDialogData"),iO=new L("mat-mdc-dialog-default-options"),oO=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>Ks(t)}}),Wi=(()=>{class t{_defaultOptions=d(iO,{optional:!0});_scrollStrategy=d(oO);_parentDialog=d(t,{optional:!0,skipSelf:!0});_idGenerator=d(He);_injector=d(be);_dialog=d(s9);_animationsDisabled=Ue();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;dialogConfigClass=su;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Ai(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(We(void 0)));constructor(){this._dialogRefConstructor=qt,this._dialogContainerType=nO,this._dialogDataToken=En}open(e,n){let o;n=q(q({},this._defaultOptions||new su),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ne(q({},n),{positionStrategy:ga(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ec,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,n,c),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ln=(()=>{class t{dialogRef=d(qt,{optional:!0});_elementRef=d(Q);_dialog=d(Wi);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=aO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){l9(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&N("click",function(a){return o._onButtonClick(a)}),n&2&&te("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Re]})}return t})(),rO=(()=>{class t{_dialogRef=d(qt,{optional:!0});_elementRef=d(Q);_dialog=d(Wi);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=aO(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t})}return t})(),xn=(()=>{class t extends rO{id=d(He).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[ce]})}return t})(),An=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[b5([Ar])]})}return t})(),zn=(()=>{class t extends rO{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,o){n&2&&oe("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},features:[ce]})}return t})();function aO(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var d9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Wi],imports:[XI,Ei,so,fe,fe]})}return t})();var sO=(()=>{class t{constructor(){}createFormGroup(e){let n={};return e.forEach(o=>{n[o.controlName]=o.required?new Hi(o.value,this.buildValidators(o)):new Hi(o.value,this.buildValidators(o))}),new VS(n)}buildValidators(e){let n=[];return e.required&&n.push(en.required),e.validators&&e.validators.forEach(o=>n.push(o)),n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iee=t=>[t,"responsive-column"],oee=t=>({data:t});function ree(t,i){if(t&1&&(h(0,"div",2),F(1,"mifosx-formfield",6),_()),t&2){let e=i.$implicit,n=w();D("ngClass","flex-"+n.layout.flex+" responsive-flex-full"),p(),D("formfield",e)("form",n.form)}}var aee=2,es=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.formGroupService=d(sO),this.layout={columns:1,columnWidth:400,flex:100,cancelButtonText:"Cancel",addButtonText:"Add"};let e=this.data;this.dialogRef.disableClose=e.disableClose!==void 0?e.disableClose:!0,this.formfields=e.formfields.sort((n,o)=>n.order-o.order),this.pristine=e.pristine!==void 0?e.pristine:!0,this.layout=q(q({},this.layout),e.layout),this.layout.gap=this.layout.columns>1?aee:0,this.layout.flex=this.layout.flex/this.layout.columns-this.layout.gap}ngOnInit(){this.dialogRef.updateSize(`${this.layout.columnWidth*this.layout.columns}px`),this.form=this.formGroupService.createFormGroup(this.formfields),this.pristine||this.form.markAsDirty()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-form-dialog"]],decls:12,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"formGroup","ngClass"],[3,"ngClass"],["align","end",1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"],[1,"flex-fill",3,"formfield","form"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),_(),h(2,"div",1),Xe(3,ree,2,3,"div",2,ht),_(),h(5,"mat-dialog-actions",3)(6,"button",4),y(7),S(8,"translate"),_(),h(9,"button",5),y(10),S(11,"translate"),_()()),n&2&&(p(),T(o.data.title),p(),D("formGroup",o.form)("ngClass",Eo(11,iee,o.layout.columns>1?"flex flex-wrap gap-"+o.layout.gap+"percent":"layout-column")),p(),Ze(o.formfields),p(4),T(k(8,7,"labels.buttons."+o.layout.cancelButtonText)),p(2),D("mat-dialog-close",Eo(13,oee,o.form))("disabled",!o.form.valid||o.form.pristine),p(),ne(" ",k(11,9,"labels.buttons."+o.layout.addButtonText)," "))},dependencies:[he,Un,ve,tr,ui,vt,xn,An,yf,zn,Ln,Te],encapsulation:2})}}return t})();var see=()=>({delete:!0}),Rr=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-delete-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"p"),y(5),S(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),y(9),S(10,"translate"),_(),h(11,"button",4),y(12),S(13,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.heading.Delete")),p(4),Dt("",k(6,8,"labels.text.Are you sure you want to delete")," ",o.data.deleteContext," ?"),p(4),T(k(10,10,"labels.buttons.Cancel")),p(2),D("mat-dialog-close",ko(14,see)),p(),ne(" ",k(13,12,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var cee=()=>({cancel:!0});function lee(t,i){t&1&&(h(0,"p"),y(1),S(2,"translate"),_()),t&2&&(p(),ne("",k(2,1,"labels.text.Are you sure you want to leave this page and lose all inputted data"),"?"))}function dee(t,i){if(t&1&&(h(0,"p"),y(1),S(2,"translate"),_()),t&2){let e=w();p(),Dt("",k(2,2,"labels.text.Are you sure you want to cancel")," ",e.data.cancelContext," ?")}}var cO=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-cancel-dialog"]],decls:13,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1),E(4,lee,3,3,"p"),E(5,dee,3,4,"p"),_(),h(6,"mat-dialog-actions",2)(7,"button",3),y(8),S(9,"translate"),_(),h(10,"button",4),y(11),S(12,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.buttons.Cancel")),p(3),I(o.data.cancelContext?-1:4),p(),I(o.data.cancelContext?5:-1),p(3),T(k(9,8,"labels.buttons.No")),p(2),D("mat-dialog-close",ko(12,cee)),p(),ne(" ",k(12,10,"labels.buttons.Yes")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();function b9(t,i){(i==null||i>t.length)&&(i=t.length);for(var e=0,n=Array(i);e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +`],encapsulation:2,changeDetection:0})}return t})();function K_(t){return t?.nodeName==="TD"}function X_(t){let i;return K_(t)?i=t:K_(t.parentNode)?i=t.parentNode:K_(t.parentNode?.parentNode)&&(i=t.parentNode.parentNode),i?.getAttribute("data-mat-row")!=null?i:null}function Z_(t,i,e){return e!==null&&i!==e&&t=i&&t===e}function e9(t,i,e,n){return n&&i!==null&&e!==null&&i!==e&&t>=i&&t<=e}function RI(t){let i=t.changedTouches[0];return document.elementFromPoint(i.clientX,i.clientY)}var sr=class{start;end;_disableStructuralEquivalency;constructor(i,e){this.start=i,this.end=e}},iu=(()=>{class t{selection;_adapter;_selectionChanged=new B;selectionChanged=this._selectionChanged;constructor(e,n){this.selection=e,this._adapter=n,this.selection=e}updateSelection(e,n){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:n,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(n){Hc()};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})(),SJ=(()=>{class t extends iu{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new t(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(n){return new(n||t)(ke(Gi))};static \u0275prov=R({token:t,factory:t.\u0275fac})}return t})();function kJ(t,i){return t||new SJ(i)}var HI={provide:iu,deps:[[new Xo,new oa,iu],Gi],useFactory:kJ};var UI=new L("MAT_DATE_RANGE_SELECTION_STRATEGY");var t9=7,EJ=0,NI=(()=>{class t{_changeDetectorRef=d(xe);_dateFormats=d(Zs,{optional:!0});_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_rangeStrategy=d(UI,{optional:!0});_rerenderSubscription=Se.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(n,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new j;_userSelection=new j;dragStarted=new j;dragEnded=new j;activeDateChange=new j;_matCalendarBody;_monthLabel=we("");_weeks=we([]);_firstWeekOffset=we(0);_rangeStart=we(null);_rangeEnd=we(null);_comparisonRangeStart=we(null);_comparisonRangeEnd=we(null);_previewStart=we(null);_previewEnd=we(null);_isRange=we(!1);_todayDate=we(null);_weekdays=we([]);constructor(){d(at).load(_o),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(()=>this._init())}ngOnChanges(e){let n=e.comparisonStart||e.comparisonEnd;n&&!n.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let n=e.value,o=this._getDateFromDayOfMonth(n),r,a;this._selected instanceof sr?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==n||a!==n)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd()!=null&&!Dt(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate.set(this._getCellCompareValue(this._dateAdapter.today())),this._monthLabel.set(this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase());let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset.set((t9+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%t9),this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:n}){if(this._rangeStrategy){let o=n?n.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart.set(this._getCellCompareValue(r.start)),this._previewEnd.set(this._getCellCompareValue(r.end)),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart.set(this._getCellCompareValue(a.start)),this._previewEnd.set(this._getCellCompareValue(a.end)))}}}_dragEnded(e){if(this.activeDrag)if(e.value){let n=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:n??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),n=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:n[s],id:EJ++}));this._weekdays.set(r.slice(e).concat(r.slice(0,e)))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),n=this._dateAdapter.getDateNames(),o=[[]];for(let r=0,a=this._firstWeekOffset();r=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,n){return!!(e&&n&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n))}_getCellCompareValue(e){if(e){let n=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(n,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof sr?(this._rangeStart.set(this._getCellCompareValue(e.start)),this._rangeEnd.set(this._getCellCompareValue(e.end)),this._isRange.set(!0)):(this._rangeStart.set(this._getCellCompareValue(e)),this._rangeEnd.set(this._rangeStart()),this._isRange.set(!1)),this._comparisonRangeStart.set(this._getCellCompareValue(this.comparisonStart)),this._comparisonRangeEnd.set(this._getCellCompareValue(this.comparisonEnd))}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart.set(null),this._previewEnd.set(null)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-month-view"]],viewQuery:function(n,o){if(n&1&&ue(w2,5),n&2){let r;U(r=$())&&(o._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Re],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(n,o){n&1&&(h(0,"table",0)(1,"thead",1)(2,"tr"),Xe(3,pJ,5,2,"th",2,jI),_(),h(5,"tr",3),F(6,"th",4),_()(),h(7,"tbody",5),N("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),_()()),n&2&&(p(3),Ze(o._weekdays()),p(4),D("label",o._monthLabel())("rows",o._weeks())("todayValue",o._todayDate())("startValue",o._rangeStart())("endValue",o._rangeEnd())("comparisonStart",o._comparisonRangeStart())("comparisonEnd",o._comparisonRangeEnd())("previewStart",o._previewStart())("previewEnd",o._previewEnd())("isRange",o._isRange())("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[w2],encapsulation:2,changeDetection:0})}return t})(),Fo=24,n9=4,FI=(()=>{class t{_changeDetectorRef=d(xe);_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_rerenderSubscription=Se.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),$I(this._dateAdapter,n,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new j;yearSelected=new j;activeDateChange=new j;_matCalendarBody;_years=we([]);_todayYear=we(0);_selectedYear=we(null);constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear.set(this._dateAdapter.getYear(this._dateAdapter.today()));let n=this._dateAdapter.getYear(this._activeDate)-tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate),o=[];for(let r=0,a=[];rthis._createCellForYear(s))),a=[]);this._years.set(o),this._changeDetectorRef.markForCheck()}_yearSelected(e){let n=e.value,o=this._dateAdapter.createDate(n,0,1),r=this._getDateFromYear(n);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-n9);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n9);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Fo-tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Fo*10:-Fo);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Fo*10:Fo);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return tu(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let n=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,n,1));return this._dateAdapter.createDate(e,n,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let n=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(n),r=this.dateClass?this.dateClass(n,"multi-year"):void 0;return new nu(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class t{_changeDetectorRef=d(xe);_dateFormats=d(Zs,{optional:!0});_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_rerenderSubscription=Se.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let n=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(n)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new j;monthSelected=new j;activeDateChange=new j;_matCalendarBody;_months=we([]);_yearLabel=we("");_todayMonth=we(null);_selectedMonth=we(null);constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(We(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let n=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),n,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(n);this.selectedChange.emit(r)}_updateActiveDate(e){let n=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(n),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let n=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(n,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth.set(this._getMonthInCurrentYear(this._dateAdapter.today())),this._yearLabel.set(this._dateAdapter.getYearName(this.activeDate));let e=this._dateAdapter.getMonthNames("short");this._months.set([[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(n=>n.map(o=>this._createCellForMonth(o,e[o])))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let n=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(n);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,n){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new nu(e,n.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let n=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(n,e)||this._isYearAndMonthBeforeMinDate(n,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(n,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,n){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&n>r}return!1}_isYearAndMonthBeforeMinDate(e,n){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class t{_intl=d(D2);calendar=d(i9);_dateAdapter=d(Gi,{optional:!0});_dateFormats=d(Zs,{optional:!0});_periodButtonText;_periodButtonDescription;_periodButtonLabel;_prevButtonLabel;_nextButtonLabel;constructor(){d(at).load(_o);let e=d(xe);this._updateLabels(),this.calendar.stateChanges.subscribe(()=>{this._updateLabels(),e.markForCheck()})}get periodButtonText(){return this._periodButtonText}get periodButtonDescription(){return this._periodButtonDescription}get periodButtonLabel(){return this._periodButtonLabel}get prevButtonLabel(){return this._prevButtonLabel}get nextButtonLabel(){return this._nextButtonLabel}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.previousEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Fo))}nextClicked(){this.nextEnabled()&&(this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Fo))}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_updateLabels(){let e=this.calendar,n=this._intl,o=this._dateAdapter;e.currentView==="month"?(this._periodButtonText=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonDescription=o.format(e.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase(),this._periodButtonLabel=n.switchToMultiYearViewLabel,this._prevButtonLabel=n.prevMonthLabel,this._nextButtonLabel=n.nextMonthLabel):e.currentView==="year"?(this._periodButtonText=o.getYearName(e.activeDate),this._periodButtonDescription=o.getYearName(e.activeDate),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevYearLabel,this._nextButtonLabel=n.nextYearLabel):(this._periodButtonText=n.formatYearRange(...this._formatMinAndMaxYearLabels()),this._periodButtonDescription=n.formatYearRangeLabel(...this._formatMinAndMaxYearLabels()),this._periodButtonLabel=n.switchToMonthViewLabel,this._prevButtonLabel=n.prevMultiYearLabel,this._nextButtonLabel=n.nextMultiYearLabel)}_isSameView(e,n){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(n):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(n):$I(this._dateAdapter,e,n,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let n=this._dateAdapter.getYear(this.calendar.activeDate)-tu(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=n+Fo-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(n,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=d(He).getId("mat-calendar-period-label-");static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:fJ,decls:17,vars:13,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["matButton","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-previous-button",3,"click","disabled","matTooltip"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","disabledInteractive","",1,"mat-calendar-next-button",3,"click","disabled","matTooltip"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(n,o){n&1&&(De(),h(0,"div",0)(1,"div",1)(2,"span",2),y(3),_(),h(4,"button",3),N("click",function(){return o.currentPeriodClicked()}),h(5,"span",4),y(6),_(),$t(),h(7,"svg",5),F(8,"polygon",6),_()(),Ko(),F(9,"div",7),ae(10),h(11,"button",8),N("click",function(){return o.previousClicked()}),$t(),h(12,"svg",9),F(13,"path",10),_()(),Ko(),h(14,"button",11),N("click",function(){return o.nextClicked()}),$t(),h(15,"svg",9),F(16,"path",12),_()()()()),n&2&&(p(2),D("id",o._periodButtonLabelId),p(),T(o.periodButtonDescription),p(),ne("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),p(2),T(o.periodButtonText),p(),oe("mat-calendar-invert",o.calendar.currentView!=="month"),p(4),D("disabled",!o.previousEnabled())("matTooltip",o.prevButtonLabel),ne("aria-label",o.prevButtonLabel),p(3),D("disabled",!o.nextEnabled())("matTooltip",o.nextButtonLabel),ne("aria-label",o.nextButtonLabel))},dependencies:[vt,ni,mo],encapsulation:2,changeDetection:0})}return t})(),i9=(()=>{class t{_dateAdapter=d(Gi,{optional:!0});_dateFormats=d(Zs,{optional:!0});_changeDetectorRef=d(xe);_elementRef=d(Q);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof sr?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new j;yearSelected=new j;monthSelected=new j;viewChanged=new j(!0);_userSelection=new j;_userDragDrop=new j;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let n=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),n&&(this.stateChanges.next(),this.viewChanged.emit(n))}_currentView;_activeDrag=null;stateChanges=new B;constructor(){this._intlChanges=d(D2).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new yo(this.headerComponent||WI),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let n=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=n||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(no())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let n=e.value;(this.selected instanceof sr||n&&!this._dateAdapter.sameDate(n,this.selected))&&this.selectedChange.emit(n),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,n){this.activeDate=e,this.currentView=n}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-calendar"]],viewQuery:function(n,o){if(n&1&&(ue(NI,5),ue(VI,5),ue(FI,5)),n&2){let r;U(r=$())&&(o.monthView=r.first),U(r=$())&&(o.yearView=r.first),U(r=$())&&(o.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[de([HI]),Re],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(n,o){if(n&1&&(ot(0,hJ,0,0,"ng-template",0),h(1,"div",1),E(2,gJ,1,11,"mat-month-view",2)(3,_J,1,6,"mat-year-view",3)(4,bJ,1,6,"mat-multi-year-view",3),_()),n&2){let r;D("cdkPortalOutlet",o._calendarHeaderPortal),p(2),I((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Mi,x0,NI,VI,FI],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mat-button-text-label-text-color: var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} +`],encapsulation:2,changeDetection:0})}return t})(),qI=new L("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function OJ(t){let i=d(be);return()=>fi(i)}var TJ={provide:qI,deps:[],useFactory:OJ},YI=(()=>{class t{_elementRef=d(Q);_animationsDisabled=Ue();_changeDetectorRef=d(xe);_globalModel=d(iu);_dateAdapter=d(Gi);_ngZone=d(se);_rangeSelectionStrategy=d(UI,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new B;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(d(at).load(_o),this._closeButtonText=d(D2).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,n=d(Ke);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"animationstart",this._handleAnimationEvent),n.listen(e,"animationend",this._handleAnimationEvent),n.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let n=this._model.selection,o=e.value,r=n instanceof sr;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,n,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,n))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let n=this._elementRef.nativeElement;e.target!==n||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",n.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,n){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,n&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-datepicker-content"]],viewQuery:function(n,o){if(n&1&&ue(i9,5),n&2){let r;U(r=$())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(n,o){n&2&&(Tt(o.color?"mat-"+o.color:""),oe("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","matButton","elevated",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"mat-calendar",1),N("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),_(),ot(2,vJ,0,0,"ng-template",2),h(3,"button",3),N("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),y(4),_()()),n&2&&(oe("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),ne("aria-modal",!0)("aria-labelledby",o._dialogLabelId??void 0),p(),Tt(o.datepicker.panelClass),D("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),p(),D("cdkPortalOutlet",o._actionsPortal),p(),oe("cdk-visually-hidden",!o._closeButtonFocused),D("color",o.color||"primary"),p(),T(o._closeButtonText))},dependencies:[Y7,i9,Mi,vt],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} +`],encapsulation:2,changeDetection:0})}return t})(),BI=(()=>{class t{_injector=d(be);_viewContainerRef=d(dt);_dateAdapter=d(Gi,{optional:!0});_dir=d(bt,{optional:!0});_model=d(iu);_animationsDisabled=Ue();_scrollStrategy=d(qI);_inputStateChanges=Se.EMPTY;_document=d(Me);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new j;monthSelected=new j;viewChanged=new j(!0);dateClass;openedStream=new j;closedStream=new j;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Dk(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=d(He).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new B;_changeDetectorRef=d(xe);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let n=e.xPosition||e.yPosition;if(n&&!n.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof v2&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=no(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",n=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:r}=this._componentRef;o._animationDone.pipe(Be(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(n):n()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,n=new yo(YI,this._viewContainerRef),o=this._overlayRef=lo(this._injector,new co({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?Ks(this._injector):this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`,disableAnimations:this._animationsDisabled}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(n),this._forwardContentValues(this._componentRef.instance),e||Ct(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return ga(this._injector).centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=zr(this._injector,this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let n=this.xPosition==="end"?"end":"start",o=n==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:n,originY:a,overlayX:n,overlayY:r},{originX:n,originY:r,overlayX:n,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let n=["ctrlKey","shiftKey","metaKey"];return ft(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(Ae(o=>o.keyCode===27&&!Dt(o)||this.datepickerInput&&Dt(o,"altKey")&&o.keyCode===38&&n.every(r=>!Dt(o,r)))))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",H],disabled:[2,"disabled","disabled",H],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",H],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",H]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Re]})}return t})(),bf=(()=>{class t extends BI{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[de([HI,{provide:BI,useExisting:t}]),ce],decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})(),M2=class{target;targetElement;value;constructor(i,e){this.target=i,this.targetElement=e,this.value=this.target.value}},PJ=(()=>{class t{_elementRef=d(Q);_dateAdapter=d(Gi,{optional:!0});_dateFormats=d(Zs,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let n=e,o=this._elementRef.nativeElement;this._disabled!==n&&(this._disabled=n,this.stateChanges.next(void 0)),n&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new j;dateInput=new j;stateChanges=new B;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=Se.EMPTY;_localeSubscription=Se.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!n||this._matchesFilter(n)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!n||this._dateAdapter.compareDate(o,n)<=0?null:{matDatepickerMin:{min:o,actual:n}}};_maxValidator=e=>{let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!n||this._dateAdapter.compareDate(o,n)>=0?null:{matDatepickerMax:{max:o,actual:n}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(n=>{if(this._shouldHandleChangeEvent(n)){let o=this._getValueFromModel(n.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new M2(this,this._elementRef.nativeElement)),this.dateChange.emit(new M2(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){LJ(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let n=["ctrlKey","shiftKey","metaKey"];Dt(e,"altKey")&&e.keyCode===40&&n.every(r=>!Dt(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let n=e.target.value,o=this._lastValueValid,r=this._dateAdapter.parse(n,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(r),r=this._dateAdapter.getValidDateOrNull(r);let a=!this._dateAdapter.sameDate(r,this.value);!r||a?this._cvaOnChange(r):(n&&!this.value&&this._cvaOnChange(r),o!==this._lastValueValid&&this._validatorOnChange()),a&&(this._assignValue(r),this.dateInput.emit(new M2(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new M2(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let n=this._getDateFilter();return!n||n(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{value:"value",disabled:[2,"disabled","disabled",H]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Re]})}return t})();function LJ(t,i){let e=Object.keys(t);for(let n of e){let{previousValue:o,currentValue:r}=t[n];if(i.isDateInstance(o)&&i.isDateInstance(r)){if(!i.sameDate(o,r))return!0}else return!0}return!1}var AJ={provide:di,useExisting:kt(()=>vf),multi:!0},zJ={provide:Ci,useExisting:kt(()=>vf),multi:!0},vf=(()=>{class t extends PJ{_formField=d(fa,{optional:!0});_closedSubscription=Se.EMPTY;_openedSubscription=Se.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=we(null);get min(){return this._min}set min(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._min)||(this._min=n,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let n=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(n,this._max)||(this._max=n,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let n=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==n&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=en.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(n,o){n&1&&N("input",function(a){return o._onInput(a)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),n&2&&(Lt("disabled",o.disabled),ne("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[de([AJ,zJ,{provide:of,useExisting:t}]),ce]})}return t})(),RJ=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matDatepickerToggleIcon",""]]})}return t})(),ou=(()=>{class t{_intl=d(D2);_changeDetectorRef=d(xe);_stateChanges=Se.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=d(new dn("tabindex"),{optional:!0}),n=Number(e);this.tabIndex=n||n===0?n:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:re(),n=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:re(),o=this.datepicker?ft(this.datepicker.openedStream,this.datepicker.closedStream):re();this._stateChanges.unsubscribe(),this._stateChanges=ft(this._intl.changes,e,n,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,RJ,5),n&2){let a;U(a=$())&&(o._customIcon=a.first)}},viewQuery:function(n,o){if(n&1&&ue(yJ,5),n&2){let r;U(r=$())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(n,o){n&1&&N("click",function(a){return o._open(a)}),n&2&&(ne("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),oe("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",H],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Re],ngContentSelectors:xJ,decls:4,vars:7,consts:[["button",""],["matIconButton","","type","button",3,"tabIndex","disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(n,o){n&1&&(De(CJ),h(0,"button",1,0),E(2,MJ,2,0,":svg:svg",2),ae(3),_()),n&2&&(D("tabIndex",o.disabled?-1:o.tabIndex)("disabled",o.disabled)("disableRipple",o.disableRipple),ne("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("aria-expanded",o.datepicker?o.datepicker.opened:null),p(2),I(o._customIcon?-1:2))},dependencies:[ni],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle button{color:inherit}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} +`],encapsulation:2,changeDetection:0})}return t})();var QI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[D2,TJ],imports:[_a,Ei,Ka,so,fe,YI,ou,WI,xi]})}return t})();function NJ(t,i){if(t&1&&F(0,"input",5),t&2){let e=M(2);D("type",e.formfield.type)("formControlName",e.formfield.controlName)("required",e.formfield.required)}}function FJ(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),y(2),S(3,"translate"),_()()),t&2){let e=M(2);p(2),St("",k(3,2,"labels.commons.Maximum Value must be")," ",e.formfield.max)}}function VJ(t,i){if(t&1&&(h(0,"mat-error")(1,"strong"),y(2),S(3,"translate"),_()()),t&2){let e=M(2);p(2),St("",k(3,2,"labels.commons.Minimum Value must be")," ",e.formfield.min)}}function BJ(t,i){if(t&1&&(h(0,"mat-option",7),y(1),_()),t&2){let e=i.$implicit,n=M(3);D("value",e[n.formfield.options.value]),p(),ee(" ",e[n.formfield.options.label]," ")}}function jJ(t,i){if(t&1&&(h(0,"mat-select",6),Xe(1,BJ,2,2,"mat-option",7,ht),_()),t&2){let e=M(2);D("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),Ze(e.formfield.options.data)}}function HJ(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2){let e=M(2);p(),St(" ",e.formfield.label," ",k(2,3,"labels.commons.is")," "),p(3),T(k(5,5,"labels.commons.required"))}}function UJ(t,i){if(t&1&&(h(0,"div",2)(1,"mat-form-field",2)(2,"mat-label"),y(3),_(),E(4,NJ,1,3,"input",5),E(5,FJ,4,4,"mat-error"),E(6,VJ,4,4,"mat-error"),E(7,jJ,3,2,"mat-select",6),E(8,HJ,6,7,"mat-error"),_()()),t&2){let e=M();p(3),T(e.formfield.label),p(),I(e.formfield.controlType==="input"?4:-1),p(),I(e.form.controls[e.formfield.controlName].hasError("max")?5:-1),p(),I(e.form.controls[e.formfield.controlName].hasError("min")?6:-1),p(),I(e.formfield.controlType==="select"?7:-1),p(),I(e.form.controls[e.formfield.controlName].hasError("required")?8:-1)}}function $J(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2){let e=M(2);p(),St(" ",e.formfield.label," ",k(2,3,"labels.commons.is")," "),p(3),T(k(5,5,"labels.commons.required"))}}function GJ(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){G(e);let o=Nt(6);return W(o.open())}),h(1,"mat-label"),y(2),_(),F(3,"input",9)(4,"mat-datepicker-toggle",10)(5,"mat-datepicker",null,0),E(7,$J,6,7,"mat-error"),_()}if(t&2){let e=Nt(6),n=M();p(2),T(n.formfield.label),p(),D("matDatepicker",e)("min",n.formfield.minDate)("max",n.formfield.maxDate)("formControlName",n.formfield.controlName)("required",n.formfield.required),p(),D("for",e),p(3),I(n.form.controls[n.formfield.controlName].hasError("required")?7:-1)}}function WJ(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2){let e=M(2);p(),St(" ",e.formfield.label," ",k(2,3,"labels.commons.is")," "),p(3),T(k(5,5,"labels.commons.required"))}}function qJ(t,i){if(t&1){let e=le();h(0,"mat-form-field",8),N("click",function(){G(e);let o=M();return W(o.datePicker.open())}),h(1,"mat-label"),y(2),_(),F(3,"input",11),E(4,WJ,6,7,"mat-error"),_()}if(t&2){let e=M();p(2),T(e.formfield.label),p(),D("min",e.formfield.minDate)("max",e.formfield.maxDate)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),I(e.form.controls[e.formfield.controlName].hasError("required")?4:-1)}}function YJ(t,i){if(t&1&&(h(0,"mat-checkbox",4),y(1),_()),t&2){let e=M();D("checked",e.formfield.value)("formControlName",e.formfield.controlName)("required",e.formfield.required),p(),ee(" ",e.formfield.label," ")}}var yf=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-formfield"]],inputs:{form:"form",formfield:"formfield"},decls:5,vars:5,consts:[["datePicker",""],[1,"flex-fill",3,"formGroup"],[1,"flex-fill"],["Fill","",1,"flex-fill"],["labelPosition","before",3,"checked","formControlName","required"],["matInput","",3,"type","formControlName","required"],[3,"formControlName","required"],[3,"value"],["Fill","",1,"flex-fill",3,"click"],["matInput","",3,"matDatepicker","min","max","formControlName","required"],["matSuffix","",3,"for"],["matInput","","type","datetime-local",3,"min","max","formControlName","required"]],template:function(n,o){n&1&&(h(0,"div",1),E(1,UJ,9,6,"div",2),E(2,GJ,8,8,"mat-form-field",3),E(3,qJ,5,6,"mat-form-field",3),E(4,YJ,2,4,"mat-checkbox",4),_()),n&2&&(D("formGroup",o.form),p(),I(o.formfield.controlType==="input"||o.formfield.controlType==="select"?1:-1),p(),I(o.formfield.controlType==="datepicker"?2:-1),p(),I(o.formfield.controlType==="datetimepicker"?3:-1),p(),I(o.formfield.controlType==="checkbox"?4:-1))},dependencies:[he,ve,yi,mn,tr,Ir,ui,Ao,Bt,Cn,ao,Za,ti,qn,ln,vf,ou,bf,il,Te],encapsulation:2})}}return t})();function QJ(t,i){}var ec=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;disableAnimations=!1;providers;container;templateContext};var a9=(()=>{class t extends Qs{_elementRef=d(Q);_focusTrapFactory=d($1);_config;_interactivityChecker=d(Vs);_ngZone=d(se);_focusMonitor=d(sn);_renderer=d(Ke);_changeDetectorRef=d(xe);_injector=d(be);_platform=d(je);_document=d(Me);_portalOutlet;_focusTrapped=new B;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(ec,{optional:!0})||new ec,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let n=this._ariaLabelledByQueue.indexOf(e);n>-1&&(this._ariaLabelledByQueue.splice(n,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),n}attachTemplatePortal(e){this._portalOutlet.hasAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),n}attachDomPortal=e=>{this._portalOutlet.hasAttached();let n=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),n};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_trapFocus(e){this._isDestroyed||Ct(()=>{let n=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||n.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,n=null;if(typeof e=="string"?n=this._document.querySelector(e):typeof e=="boolean"?n=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(n=e),this._config.restoreFocus&&n&&typeof n.focus=="function"){let o=no(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(n,this._closeInteractionType),this._closeInteractionType=null):n.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus?.(e)}_containsFocus(){let e=this._elementRef.nativeElement,n=no();return e===n||e.contains(n)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=no()))}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-dialog-container"]],viewQuery:function(n,o){if(n&1&&ue(Mi,7),n&2){let r;U(r=$())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(n,o){n&2&&ne("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[ce],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(n,o){n&1&&ot(0,QJ,0,0,"ng-template",0)},dependencies:[Mi],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} +`],encapsulation:2})}return t})(),ru=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new B;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(i,e){this.overlayRef=i,this.config=e,this.disableClose=e.disableClose,this.backdropClick=i.backdropClick(),this.keydownEvents=i.keydownEvents(),this.outsidePointerEvents=i.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(n=>{n.keyCode===27&&!this.disableClose&&!Dt(n)&&(n.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{!this.disableClose&&this._canClose()?this.close(void 0,{focusOrigin:"mouse"}):this.containerInstance._recaptureFocus?.()}),this._detachSubscription=i.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(i,e){if(this._canClose(i)){let n=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),n.next(i),n.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(i="",e=""){return this.overlayRef.updateSize({width:i,height:e}),this}addPanelClass(i){return this.overlayRef.addPanelClass(i),this}removePanelClass(i){return this.overlayRef.removePanelClass(i),this}_canClose(i){let e=this.config;return!!this.containerInstance&&(!e.closePredicate||e.closePredicate(i,e,this.componentInstance))}},KJ=new L("DialogScrollStrategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>Ks(t)}}),XJ=new L("DialogData"),ZJ=new L("DefaultDialogConfig");function JJ(t){let i=we(t),e=new j;return{valueSignal:i,get value(){return i()},change:e,ngOnDestroy(){e.complete()}}}var s9=(()=>{class t{_injector=d(be);_defaultOptions=d(ZJ,{optional:!0});_parentDialog=d(t,{optional:!0,skipSelf:!0});_overlayContainer=d(uf);_idGenerator=d(He);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;_ariaHiddenElements=new Map;_scrollStrategy=d(KJ);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=Ai(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(We(void 0)));constructor(){}open(e,n){let o=this._defaultOptions||new ec;n=q(q({},o),n),n.id=n.id||this._idGenerator.getId("cdk-dialog-"),n.id&&this.getDialogById(n.id);let r=this._getOverlayConfig(n),a=lo(this._injector,r),s=new ru(a,n),c=this._attachContainer(a,s,n);if(s.containerInstance=c,!this.openDialogs.length){let m=this._overlayContainer.getContainerElement();c._focusTrapped?c._focusTrapped.pipe(Be(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(m)}):this._hideNonDialogContentFromAssistiveTechnology(m)}return this._attachDialogContent(e,s,c,n),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){r9(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){r9(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),r9(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let n=new co({positionStrategy:e.positionStrategy||ga().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation,disableAnimations:e.disableAnimations});return e.backdropClass&&(n.backdropClass=e.backdropClass),n}_attachContainer(e,n,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:ec,useValue:o},{provide:ru,useValue:n},{provide:b2,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=a9;let c=new yo(s,o.viewContainerRef,be.create({parent:r||this._injector,providers:a}));return e.attach(c).instance}_attachDialogContent(e,n,o,r){if(e instanceof tt){let a=this._createInjector(r,n,o,void 0),s={$implicit:r.data,dialogRef:n};r.templateContext&&(s=q(q({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Wn(e,null,s,a))}else{let a=this._createInjector(r,n,o,this._injector),s=o.attachComponentPortal(new yo(e,r.viewContainerRef,a));n.componentRef=s,n.componentInstance=s.instance}}_createInjector(e,n,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:XJ,useValue:e.data},{provide:ru,useValue:n}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(n,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(bt,null,{optional:!0}))&&s.push({provide:bt,useValue:JJ(e.direction)}),be.create({parent:a||r,providers:s})}_removeOpenDialog(e,n){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),n&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let n=e.parentElement.children;for(let o=n.length-1;o>-1;o--){let r=n[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function r9(t,i){let e=t.length;for(;e--;)i(t[e])}var XI=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[s9],imports:[Ei,so,Ka,so]})}return t})();function eee(t,i){}var su=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;closePredicate;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;enterAnimationDuration;exitAnimationDuration},c9="mdc-dialog--open",ZI="mdc-dialog--opening",JI="mdc-dialog--closing",tee=150,nee=75,nO=(()=>{class t extends a9{_animationStateChanged=new j;_animationsEnabled=!Ue();_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?tO(this._config.enterAnimationDuration)??tee:0;_exitAnimationDuration=this._animationsEnabled?tO(this._config.exitAnimationDuration)??nee:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(eO,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(ZI,c9)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(c9),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(c9),this._animationsEnabled?(this._hostElement.style.setProperty(eO,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(JI)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(ZI,JI)}_waitForAnimationToComplete(e,n){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(n,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let n=super.attachComponentPortal(e);return n.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),n}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(n,o){n&2&&(Lt("id",o._config.id),ne("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),oe("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[ce],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(h(0,"div",0)(1,"div",1),ot(2,eee,0,0,"ng-template",2),_()())},dependencies:[Mi],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mat-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mat-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mat-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mat-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mat-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mat-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mat-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mat-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mat-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mat-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mat-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mat-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mat-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;box-sizing:border-box;min-height:52px;margin:0;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} +`],encapsulation:2})}return t})(),eO="--mat-dialog-transition-duration";function tO(t){return t==null?null:typeof t=="number"?t:t.endsWith("ms")?vn(t.substring(0,t.length-2)):t.endsWith("s")?vn(t.substring(0,t.length-1))*1e3:t==="0"?0:null}var au=(function(t){return t[t.OPEN=0]="OPEN",t[t.CLOSING=1]="CLOSING",t[t.CLOSED=2]="CLOSED",t})(au||{}),qt=class{_ref;_config;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new B;_beforeClosed=new B;_result;_closeFallbackTimeout;_state=au.OPEN;_closeInteractionType;constructor(i,e,n){this._ref=i,this._config=e,this._containerInstance=n,this.disableClose=e.disableClose,this.id=i.id,i.addPanelClass("mat-mdc-dialog-panel"),n._animationStateChanged.pipe(Ae(o=>o.state==="opened"),Be(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),n._animationStateChanged.pipe(Ae(o=>o.state==="closed"),Be(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),i.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),ft(this.backdropClick(),this.keydownEvents().pipe(Ae(o=>o.keyCode===27&&!this.disableClose&&!Dt(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),l9(this,o.type==="keydown"?"keyboard":"mouse"))})}close(i){let e=this._config.closePredicate;e&&!e(i,this._config,this.componentInstance)||(this._result=i,this._containerInstance._animationStateChanged.pipe(Ae(n=>n.state==="closing"),Be(1)).subscribe(n=>{this._beforeClosed.next(i),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),n.totalTime+100)}),this._state=au.CLOSING,this._containerInstance._startExitAnimation())}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(i){let e=this._ref.config.positionStrategy;return i&&(i.left||i.right)?i.left?e.left(i.left):e.right(i.right):e.centerHorizontally(),i&&(i.top||i.bottom)?i.top?e.top(i.top):e.bottom(i.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(i="",e=""){return this._ref.updateSize(i,e),this}addPanelClass(i){return this._ref.addPanelClass(i),this}removePanelClass(i){return this._ref.removePanelClass(i),this}getState(){return this._state}_finishDialogClose(){this._state=au.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function l9(t,i,e){return t._closeInteractionType=i,t.close(e)}var En=new L("MatMdcDialogData"),iO=new L("mat-mdc-dialog-default-options"),oO=new L("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>Ks(t)}}),Wi=(()=>{class t{_defaultOptions=d(iO,{optional:!0});_scrollStrategy=d(oO);_parentDialog=d(t,{optional:!0,skipSelf:!0});_idGenerator=d(He);_injector=d(be);_dialog=d(s9);_animationsDisabled=Ue();_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new B;_afterOpenedAtThisLevel=new B;dialogConfigClass=su;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=Ai(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(We(void 0)));constructor(){this._dialogRefConstructor=qt,this._dialogContainerType=nO,this._dialogDataToken=En}open(e,n){let o;n=q(q({},this._defaultOptions||new su),n),n.id=n.id||this._idGenerator.getId("mat-mdc-dialog-"),n.scrollStrategy=n.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,Ne(q({},n),{positionStrategy:ga(this._injector).centerHorizontally().centerVertically(),disableClose:!0,closePredicate:void 0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,disableAnimations:this._animationsDisabled||n.enterAnimationDuration?.toLocaleString()==="0"||n.exitAnimationDuration?.toString()==="0",container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:n},{provide:ec,useValue:n}]},templateContext:()=>({dialogRef:o}),providers:(a,s,c)=>(o=new this._dialogRefConstructor(a,n,c),o.updatePosition(n?.position),[{provide:this._dialogContainerType,useValue:c},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(n=>n.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let n=e.length;for(;n--;)e[n].close()}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Ln=(()=>{class t{dialogRef=d(qt,{optional:!0});_elementRef=d(Q);_dialog=d(Wi);ariaLabel;type="button";dialogResult;_matDialogClose;constructor(){}ngOnInit(){this.dialogRef||(this.dialogRef=aO(this._elementRef,this._dialog.openDialogs))}ngOnChanges(e){let n=e._matDialogClose||e._matDialogCloseResult;n&&(this.dialogResult=n.currentValue)}_onButtonClick(e){l9(this.dialogRef,e.screenX===0&&e.screenY===0?"keyboard":"mouse",this.dialogResult)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(n,o){n&1&&N("click",function(a){return o._onButtonClick(a)}),n&2&&ne("aria-label",o.ariaLabel||null)("type",o.type)},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],type:"type",dialogResult:[0,"mat-dialog-close","dialogResult"],_matDialogClose:[0,"matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Re]})}return t})(),rO=(()=>{class t{_dialogRef=d(qt,{optional:!0});_elementRef=d(Q);_dialog=d(Wi);constructor(){}ngOnInit(){this._dialogRef||(this._dialogRef=aO(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(()=>{this._onAdd()})}ngOnDestroy(){this._dialogRef?._containerInstance&&Promise.resolve().then(()=>{this._onRemove()})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t})}return t})(),xn=(()=>{class t extends rO{id=d(He).getId("mat-mdc-dialog-title-");_onAdd(){this._dialogRef._containerInstance?._addAriaLabelledBy?.(this.id)}_onRemove(){this._dialogRef?._containerInstance?._removeAriaLabelledBy?.(this.id)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-mdc-dialog-title","mdc-dialog__title"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("id",o.id)},inputs:{id:"id"},exportAs:["matDialogTitle"],features:[ce]})}return t})(),An=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-mdc-dialog-content","mdc-dialog__content"],features:[b5([Ar])]})}return t})(),zn=(()=>{class t extends rO{align;_onAdd(){this._dialogRef._containerInstance?._updateActionSectionCount?.(1)}_onRemove(){this._dialogRef._containerInstance?._updateActionSectionCount?.(-1)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-mdc-dialog-actions","mdc-dialog__actions"],hostVars:6,hostBindings:function(n,o){n&2&&oe("mat-mdc-dialog-actions-align-start",o.align==="start")("mat-mdc-dialog-actions-align-center",o.align==="center")("mat-mdc-dialog-actions-align-end",o.align==="end")},inputs:{align:"align"},features:[ce]})}return t})();function aO(t,i){let e=t.nativeElement.parentElement;for(;e&&!e.classList.contains("mat-mdc-dialog-container");)e=e.parentElement;return e?i.find(n=>n.id===e.id):null}var d9=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Wi],imports:[XI,Ei,so,fe,fe]})}return t})();var sO=(()=>{class t{constructor(){}createFormGroup(e){let n={};return e.forEach(o=>{n[o.controlName]=o.required?new Hi(o.value,this.buildValidators(o)):new Hi(o.value,this.buildValidators(o))}),new VS(n)}buildValidators(e){let n=[];return e.required&&n.push(en.required),e.validators&&e.validators.forEach(o=>n.push(o)),n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var iee=t=>[t,"responsive-column"],oee=t=>({data:t});function ree(t,i){if(t&1&&(h(0,"div",2),F(1,"mifosx-formfield",6),_()),t&2){let e=i.$implicit,n=M();D("ngClass","flex-"+n.layout.flex+" responsive-flex-full"),p(),D("formfield",e)("form",n.form)}}var aee=2,es=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.formGroupService=d(sO),this.layout={columns:1,columnWidth:400,flex:100,cancelButtonText:"Cancel",addButtonText:"Add"};let e=this.data;this.dialogRef.disableClose=e.disableClose!==void 0?e.disableClose:!0,this.formfields=e.formfields.sort((n,o)=>n.order-o.order),this.pristine=e.pristine!==void 0?e.pristine:!0,this.layout=q(q({},this.layout),e.layout),this.layout.gap=this.layout.columns>1?aee:0,this.layout.flex=this.layout.flex/this.layout.columns-this.layout.gap}ngOnInit(){this.dialogRef.updateSize(`${this.layout.columnWidth*this.layout.columns}px`),this.form=this.formGroupService.createFormGroup(this.formfields),this.pristine||this.form.markAsDirty()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-form-dialog"]],decls:12,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content","",3,"formGroup","ngClass"],[3,"ngClass"],["align","end",1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"],[1,"flex-fill",3,"formfield","form"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),_(),h(2,"div",1),Xe(3,ree,2,3,"div",2,ht),_(),h(5,"mat-dialog-actions",3)(6,"button",4),y(7),S(8,"translate"),_(),h(9,"button",5),y(10),S(11,"translate"),_()()),n&2&&(p(),T(o.data.title),p(),D("formGroup",o.form)("ngClass",Eo(11,iee,o.layout.columns>1?"flex flex-wrap gap-"+o.layout.gap+"percent":"layout-column")),p(),Ze(o.formfields),p(4),T(k(8,7,"labels.buttons."+o.layout.cancelButtonText)),p(2),D("mat-dialog-close",Eo(13,oee,o.form))("disabled",!o.form.valid||o.form.pristine),p(),ee(" ",k(11,9,"labels.buttons."+o.layout.addButtonText)," "))},dependencies:[he,Un,ve,tr,ui,vt,xn,An,yf,zn,Ln,Te],encapsulation:2})}}return t})();var see=()=>({delete:!0}),Rr=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-delete-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"p"),y(5),S(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),y(9),S(10,"translate"),_(),h(11,"button",4),y(12),S(13,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.heading.Delete")),p(4),St("",k(6,8,"labels.text.Are you sure you want to delete")," ",o.data.deleteContext," ?"),p(4),T(k(10,10,"labels.buttons.Cancel")),p(2),D("mat-dialog-close",ko(14,see)),p(),ee(" ",k(13,12,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var cee=()=>({cancel:!0});function lee(t,i){t&1&&(h(0,"p"),y(1),S(2,"translate"),_()),t&2&&(p(),ee("",k(2,1,"labels.text.Are you sure you want to leave this page and lose all inputted data"),"?"))}function dee(t,i){if(t&1&&(h(0,"p"),y(1),S(2,"translate"),_()),t&2){let e=M();p(),St("",k(2,2,"labels.text.Are you sure you want to cancel")," ",e.data.cancelContext," ?")}}var cO=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-cancel-dialog"]],decls:13,vars:13,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1),E(4,lee,3,3,"p"),E(5,dee,3,4,"p"),_(),h(6,"mat-dialog-actions",2)(7,"button",3),y(8),S(9,"translate"),_(),h(10,"button",4),y(11),S(12,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.buttons.Cancel")),p(3),I(o.data.cancelContext?-1:4),p(),I(o.data.cancelContext?5:-1),p(3),T(k(9,8,"labels.buttons.No")),p(2),D("mat-dialog-close",ko(12,cee)),p(),ee(" ",k(12,10,"labels.buttons.Yes")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();function b9(t,i){(i==null||i>t.length)&&(i=t.length);for(var e=0,n=Array(i);e=t.length?{done:!0}:{done:!1,value:t[n++]}},e:function(c){throw c},f:o}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var r,a=!0,s=!1;return{s:function(){e=e.call(t)},n:function(){var c=e.next();return a=c.done,c},e:function(c){s=!0,r=c},f:function(){try{a||e.return==null||e.return()}finally{if(s)throw r}}}}function xt(t,i,e){return(i=jO(i))in t?Object.defineProperty(t,i,{value:e,enumerable:!0,configurable:!0,writable:!0}):t[i]=e,t}function hee(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function gee(t,i){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var n,o,r,a,s=[],c=!0,m=!1;try{if(r=(e=e.call(t)).next,i===0){if(Object(e)!==e)return;c=!1}else for(;!(c=(n=r.call(e)).done)&&(s.push(n.value),s.length!==i);c=!0);}catch(f){m=!0,o=f}finally{try{if(!c&&e.return!=null&&(a=e.return(),Object(a)!==a))return}finally{if(m)throw o}}return s}}function _ee(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bee(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dO(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),e.push.apply(e,n)}return e}function _e(t){for(var i=1;i-1;o--){var r=e[o],a=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(n=r)}return Mn.head.insertBefore(i,n),t}}var cne="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function yO(){for(var t=12,i="";t-- >0;)i+=cne[Math.random()*62|0];return i}function I2(t){for(var i=[],e=(t||[]).length>>>0;e--;)i[e]=t[e];return i}function F9(t){return t.classList?I2(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(i){return i})}function CT(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function lne(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,'="').concat(CT(t[e]),'" ')},"").trim()}function Of(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,": ").concat(t[e].trim(),";")},"")}function V9(t){return t.size!==ba.size||t.x!==ba.x||t.y!==ba.y||t.rotate!==ba.rotate||t.flipX||t.flipY}function dne(t){var i=t.transform,e=t.containerWidth,n=t.iconWidth,o={transform:"translate(".concat(e/2," 256)")},r="translate(".concat(i.x*32,", ").concat(i.y*32,") "),a="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),s="rotate(".concat(i.rotate," 0 0)"),c={transform:"".concat(r," ").concat(a," ").concat(s)},m={transform:"translate(".concat(n/2*-1," -256)")};return{outer:o,inner:c,path:m}}function une(t){var i=t.transform,e=t.width,n=e===void 0?y9:e,o=t.height,r=o===void 0?y9:o,a=t.startCentered,s=a===void 0?!1:a,c="";return s&&GO?c+="translate(".concat(i.x/tc-n/2,"em, ").concat(i.y/tc-r/2,"em) "):s?c+="translate(calc(-50% + ".concat(i.x/tc,"em), calc(-50% + ").concat(i.y/tc,"em)) "):c+="translate(".concat(i.x/tc,"em, ").concat(i.y/tc,"em) "),c+="scale(".concat(i.size/tc*(i.flipX?-1:1),", ").concat(i.size/tc*(i.flipY?-1:1),") "),c+="rotate(".concat(i.rotate,"deg) "),c}var mne=`:root, :host { +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function dO(t,i){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);i&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),e.push.apply(e,n)}return e}function _e(t){for(var i=1;i-1;o--){var r=e[o],a=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(a)>-1&&(n=r)}return Mn.head.insertBefore(i,n),t}}var cne="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function yO(){for(var t=12,i="";t-- >0;)i+=cne[Math.random()*62|0];return i}function I2(t){for(var i=[],e=(t||[]).length>>>0;e--;)i[e]=t[e];return i}function F9(t){return t.classList?I2(t.classList):(t.getAttribute("class")||"").split(" ").filter(function(i){return i})}function CT(t){return"".concat(t).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function lne(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,'="').concat(CT(t[e]),'" ')},"").trim()}function Of(t){return Object.keys(t||{}).reduce(function(i,e){return i+"".concat(e,": ").concat(t[e].trim(),";")},"")}function V9(t){return t.size!==ba.size||t.x!==ba.x||t.y!==ba.y||t.rotate!==ba.rotate||t.flipX||t.flipY}function dne(t){var i=t.transform,e=t.containerWidth,n=t.iconWidth,o={transform:"translate(".concat(e/2," 256)")},r="translate(".concat(i.x*32,", ").concat(i.y*32,") "),a="scale(".concat(i.size/16*(i.flipX?-1:1),", ").concat(i.size/16*(i.flipY?-1:1),") "),s="rotate(".concat(i.rotate," 0 0)"),c={transform:"".concat(r," ").concat(a," ").concat(s)},m={transform:"translate(".concat(n/2*-1," -256)")};return{outer:o,inner:c,path:m}}function une(t){var i=t.transform,e=t.width,n=e===void 0?y9:e,o=t.height,r=o===void 0?y9:o,a=t.startCentered,s=a===void 0?!1:a,c="";return s&&GO?c+="translate(".concat(i.x/tc-n/2,"em, ").concat(i.y/tc-r/2,"em) "):s?c+="translate(calc(-50% + ".concat(i.x/tc,"em), calc(-50% + ").concat(i.y/tc,"em)) "):c+="translate(".concat(i.x/tc,"em, ").concat(i.y/tc,"em) "),c+="scale(".concat(i.size/tc*(i.flipX?-1:1),", ").concat(i.size/tc*(i.flipY?-1:1),") "),c+="rotate(".concat(i.rotate,"deg) "),c}var mne=`:root, :host { --fa-font-solid: normal 900 1em/1 "Font Awesome 7 Free"; --fa-font-regular: normal 400 1em/1 "Font Awesome 7 Free"; --fa-font-light: normal 300 1em/1 "Font Awesome 7 Pro"; @@ -599,49 +599,49 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho margin: auto; position: absolute; z-index: var(--fa-stack-z-index, auto); -}`;function xT(){var t=fT,i=hT,e=$e.cssPrefix,n=$e.replacementClass,o=mne;if(e!==t||n!==i){var r=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(i),"g");o=o.replace(r,".".concat(e,"-")).replace(a,"--".concat(e,"-")).replace(s,".".concat(n))}return o}var CO=!1;function f9(){$e.autoAddCss&&!CO&&(sne(xT()),CO=!0)}var pne={mixout:function(){return{dom:{css:xT,insertCss:f9}}},hooks:function(){return{beforeDOMElementCreation:function(){f9()},beforeI2svg:function(){f9()}}}},ns=nc||{};ns[ts]||(ns[ts]={});ns[ts].styles||(ns[ts].styles={});ns[ts].hooks||(ns[ts].hooks={});ns[ts].shims||(ns[ts].shims=[]);var Nr=ns[ts],MT=[],wT=function(){Mn.removeEventListener("DOMContentLoaded",wT),kf=1,MT.map(function(i){return i()})},kf=!1;is&&(kf=(Mn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Mn.readyState),kf||Mn.addEventListener("DOMContentLoaded",wT));function fne(t){is&&(kf?setTimeout(t,0):MT.push(t))}function fu(t){var i=t.tag,e=t.attributes,n=e===void 0?{}:e,o=t.children,r=o===void 0?[]:o;return typeof t=="string"?CT(t):"<".concat(i," ").concat(lne(n),">").concat(r.map(fu).join(""),"")}function xO(t,i,e){if(t&&t[i]&&t[i][e])return{prefix:i,iconName:e,icon:t[i][e]}}var hne=function(i,e){return function(n,o,r,a){return i.call(e,n,o,r,a)}},h9=function(i,e,n,o){var r=Object.keys(i),a=r.length,s=o!==void 0?hne(e,o):e,c,m,f;for(n===void 0?(c=1,f=i[r[0]]):(c=0,f=n);c2&&arguments[2]!==void 0?arguments[2]:{},n=e.skipHooks,o=n===void 0?!1:n,r=MO(i);typeof Nr.hooks.addPack=="function"&&!o?Nr.hooks.addPack(t,MO(i)):Nr.styles[t]=_e(_e({},Nr.styles[t]||{}),r),t==="fas"&&D9("fa",i)}var uu=Nr.styles,gne=Nr.shims,ST=Object.keys(N9),_ne=ST.reduce(function(t,i){return t[i]=Object.keys(N9[i]),t},{}),B9=null,kT={},ET={},IT={},OT={},TT={};function bne(t){return~ine.indexOf(t)}function vne(t,i){var e=i.split("-"),n=e[0],o=e.slice(1).join("-");return n===t&&o!==""&&!bne(o)?o:null}var PT=function(){var i=function(r){return h9(uu,function(a,s,c){return a[c]=h9(s,r,{}),a},{})};kT=i(function(o,r,a){if(r[3]&&(o[r[3]]=a),r[2]){var s=r[2].filter(function(c){return typeof c=="number"});s.forEach(function(c){o[c.toString(16)]=a})}return o}),ET=i(function(o,r,a){if(o[a]=a,r[2]){var s=r[2].filter(function(c){return typeof c=="string"});s.forEach(function(c){o[c]=a})}return o}),TT=i(function(o,r,a){var s=r[2];return o[a]=a,s.forEach(function(c){o[c]=a}),o});var e="far"in uu||$e.autoFetchSvg,n=h9(gne,function(o,r){var a=r[0],s=r[1],c=r[2];return s==="far"&&!e&&(s="fas"),typeof a=="string"&&(o.names[a]={prefix:s,iconName:c}),typeof a=="number"&&(o.unicodes[a.toString(16)]={prefix:s,iconName:c}),o},{names:{},unicodes:{}});IT=n.names,OT=n.unicodes,B9=Tf($e.styleDefault,{family:$e.familyDefault})};ane(function(t){B9=Tf(t.styleDefault,{family:$e.familyDefault})});PT();function j9(t,i){return(kT[t]||{})[i]}function yne(t,i){return(ET[t]||{})[i]}function fl(t,i){return(TT[t]||{})[i]}function LT(t){return IT[t]||{prefix:null,iconName:null}}function Cne(t){var i=OT[t],e=j9("fas",t);return i||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}function ic(){return B9}var AT=function(){return{prefix:null,iconName:null,rest:[]}};function xne(t){var i=Ii,e=ST.reduce(function(n,o){return n[o]="".concat($e.cssPrefix,"-").concat(o),n},{});return dT.forEach(function(n){(t.includes(e[n])||t.some(function(o){return _ne[n].includes(o)}))&&(i=n)}),i}function Tf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.family,n=e===void 0?Ii:e,o=Zte[n][t];if(n===mu&&!t)return"fad";var r=bO[n][t]||bO[n][o],a=t in Nr.styles?t:null,s=r||a||null;return s}function Mne(t){var i=[],e=null;return t.forEach(function(n){var o=vne($e.cssPrefix,n);o?e=o:n&&i.push(n)}),{iconName:e,rest:i}}function wO(t){return t.sort().filter(function(i,e,n){return n.indexOf(i)===e})}var DO=mT.concat(uT);function Pf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.skipLookups,n=e===void 0?!1:e,o=null,r=wO(t.filter(function(M){return DO.includes(M)})),a=wO(t.filter(function(M){return!DO.includes(M)})),s=r.filter(function(M){return o=M,!qO.includes(M)}),c=If(s,1),m=c[0],f=m===void 0?null:m,v=xne(r),x=_e(_e({},Mne(a)),{},{prefix:Tf(f,{family:v})});return _e(_e(_e({},x),kne({values:t,family:v,styles:uu,config:$e,canonical:x,givenPrefix:o})),wne(n,o,x))}function wne(t,i,e){var n=e.prefix,o=e.iconName;if(t||!n||!o)return{prefix:n,iconName:o};var r=i==="fa"?LT(o):{},a=fl(n,o);return o=r.iconName||a||o,n=r.prefix||n,n==="far"&&!uu.far&&uu.fas&&!$e.autoFetchSvg&&(n="fas"),{prefix:n,iconName:o}}var Dne=dT.filter(function(t){return t!==Ii||t!==mu}),Sne=Object.keys(v9).filter(function(t){return t!==Ii}).map(function(t){return Object.keys(v9[t])}).flat();function kne(t){var i=t.values,e=t.family,n=t.canonical,o=t.givenPrefix,r=o===void 0?"":o,a=t.styles,s=a===void 0?{}:a,c=t.config,m=c===void 0?{}:c,f=e===mu,v=i.includes("fa-duotone")||i.includes("fad"),x=m.familyDefault==="duotone",M=n.prefix==="fad"||n.prefix==="fa-duotone";if(!f&&(v||x||M)&&(n.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(n.prefix="fab"),!n.prefix&&Dne.includes(e)){var O=Object.keys(s).find(function(Y){return Sne.includes(Y)});if(O||m.autoFetchSvg){var K=$ee.get(e).defaultShortPrefixId;n.prefix=K,n.iconName=fl(n.prefix,n.iconName)||n.iconName}}return(n.prefix==="fa"||r==="fa")&&(n.prefix=ic()||"fas"),n}var Ene=(function(){function t(){pee(this,t),this.definitions={}}return fee(t,[{key:"add",value:function(){for(var e=this,n=arguments.length,o=new Array(n),r=0;r0&&f.forEach(function(v){typeof v=="string"&&(e[s][v]=m)}),e[s][c]=m}),e}}])})(),SO=[],S2={},k2={},Ine=Object.keys(k2);function One(t,i){var e=i.mixoutsTo;return SO=t,S2={},Object.keys(k2).forEach(function(n){Ine.indexOf(n)===-1&&delete k2[n]}),SO.forEach(function(n){var o=n.mixout?n.mixout():{};if(Object.keys(o).forEach(function(a){typeof o[a]=="function"&&(e[a]=o[a]),Sf(o[a])==="object"&&Object.keys(o[a]).forEach(function(s){e[a]||(e[a]={}),e[a][s]=o[a][s]})}),n.hooks){var r=n.hooks();Object.keys(r).forEach(function(a){S2[a]||(S2[a]=[]),S2[a].push(r[a])})}n.provides&&n.provides(k2)}),e}function S9(t,i){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o1?i-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return is?(gl("beforeI2svg",i),oc("pseudoElements2svg",i),oc("i2svg",i)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.autoReplaceSvgRoot;$e.autoReplaceSvg===!1&&($e.autoReplaceSvg=!0),$e.observeMutations=!0,fne(function(){Ane({autoReplaceSvgRoot:e}),gl("watch",i)})}},Lne={icon:function(i){if(i===null)return null;if(Sf(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:fl(i.prefix,i.iconName)||i.iconName};if(Array.isArray(i)&&i.length===2){var e=i[1].indexOf("fa-")===0?i[1].slice(3):i[1],n=Tf(i[0]);return{prefix:n,iconName:fl(n,e)||e}}if(typeof i=="string"&&(i.indexOf("".concat($e.cssPrefix,"-"))>-1||i.match(Jte))){var o=Pf(i.split(" "),{skipLookups:!0});return{prefix:o.prefix||ic(),iconName:fl(o.prefix,o.iconName)||o.iconName}}if(typeof i=="string"){var r=ic();return{prefix:r,iconName:fl(r,i)||i}}}},Vo={noAuto:Tne,config:$e,dom:Pne,parse:Lne,library:zT,findIconDefinition:k9,toHtml:fu},Ane=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.autoReplaceSvgRoot,n=e===void 0?Mn:e;(Object.keys(Nr.styles).length>0||$e.autoFetchSvg)&&is&&$e.autoReplaceSvg&&Vo.dom.i2svg({node:n})};function Lf(t,i){return Object.defineProperty(t,"abstract",{get:i}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(n){return fu(n)})}}),Object.defineProperty(t,"node",{get:function(){if(is){var n=Mn.createElement("div");return n.innerHTML=t.html,n.children}}}),t}function zne(t){var i=t.children,e=t.main,n=t.mask,o=t.attributes,r=t.styles,a=t.transform;if(V9(a)&&e.found&&!n.found){var s=e.width,c=e.height,m={x:s/c/2,y:.5};o.style=Of(_e(_e({},r),{},{"transform-origin":"".concat(m.x+a.x/16,"em ").concat(m.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:i}]}function Rne(t){var i=t.prefix,e=t.iconName,n=t.children,o=t.attributes,r=t.symbol,a=r===!0?"".concat(i,"-").concat($e.cssPrefix,"-").concat(e):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_e(_e({},o),{},{id:a}),children:n}]}]}function Nne(t){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(e){return e in t})}function H9(t){var i=t.icons,e=i.main,n=i.mask,o=t.prefix,r=t.iconName,a=t.transform,s=t.symbol,c=t.maskId,m=t.extra,f=t.watchable,v=f===void 0?!1:f,x=n.found?n:e,M=x.width,O=x.height,K=[$e.replacementClass,r?"".concat($e.cssPrefix,"-").concat(r):""].filter(function(Ht){return m.classes.indexOf(Ht)===-1}).filter(function(Ht){return Ht!==""||!!Ht}).concat(m.classes).join(" "),Y={children:[],attributes:_e(_e({},m.attributes),{},{"data-prefix":o,"data-icon":r,class:K,role:m.attributes.role||"img",viewBox:"0 0 ".concat(M," ").concat(O)})};!Nne(m.attributes)&&!m.attributes["aria-hidden"]&&(Y.attributes["aria-hidden"]="true"),v&&(Y.attributes[hl]="");var Z=_e(_e({},Y),{},{prefix:o,iconName:r,main:e,mask:n,maskId:c,transform:a,symbol:s,styles:_e({},m.styles)}),Oe=n.found&&e.found?oc("generateAbstractMask",Z)||{children:[],attributes:{}}:oc("generateAbstractIcon",Z)||{children:[],attributes:{}},Mt=Oe.children,Et=Oe.attributes;return Z.children=Mt,Z.attributes=Et,s?Rne(Z):zne(Z)}function kO(t){var i=t.content,e=t.width,n=t.height,o=t.transform,r=t.extra,a=t.watchable,s=a===void 0?!1:a,c=_e(_e({},r.attributes),{},{class:r.classes.join(" ")});s&&(c[hl]="");var m=_e({},r.styles);V9(o)&&(m.transform=une({transform:o,startCentered:!0,width:e,height:n}),m["-webkit-transform"]=m.transform);var f=Of(m);f.length>0&&(c.style=f);var v=[];return v.push({tag:"span",attributes:c,children:[i]}),v}function Fne(t){var i=t.content,e=t.extra,n=_e(_e({},e.attributes),{},{class:e.classes.join(" ")}),o=Of(e.styles);o.length>0&&(n.style=o);var r=[];return r.push({tag:"span",attributes:n,children:[i]}),r}var g9=Nr.styles;function E9(t){var i=t[0],e=t[1],n=t.slice(4),o=If(n,1),r=o[0],a=null;return Array.isArray(r)?a={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(p9.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(p9.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(p9.PRIMARY),fill:"currentColor",d:r[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:i,height:e,icon:a}}var Vne={found:!1,width:512,height:512};function Bne(t,i){!_T&&!$e.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(i,'" is missing.'))}function I9(t,i){var e=i;return i==="fa"&&$e.styleDefault!==null&&(i=ic()),new Promise(function(n,o){if(e==="fa"){var r=LT(t)||{};t=r.iconName||t,i=r.prefix||i}if(t&&i&&g9[i]&&g9[i][t]){var a=g9[i][t];return n(E9(a))}Bne(t,i),n(_e(_e({},Vne),{},{icon:$e.showMissingIcons&&t?oc("missingIconAbstract")||{}:{}}))})}var EO=function(){},O9=$e.measurePerformance&&Cf&&Cf.mark&&Cf.measure?Cf:{mark:EO,measure:EO},cu='FA "7.1.0"',jne=function(i){return O9.mark("".concat(cu," ").concat(i," begins")),function(){return RT(i)}},RT=function(i){O9.mark("".concat(cu," ").concat(i," ends")),O9.measure("".concat(cu," ").concat(i),"".concat(cu," ").concat(i," begins"),"".concat(cu," ").concat(i," ends"))},U9={begin:jne,end:RT},wf=function(){};function IO(t){var i=t.getAttribute?t.getAttribute(hl):null;return typeof i=="string"}function Hne(t){var i=t.getAttribute?t.getAttribute(z9):null,e=t.getAttribute?t.getAttribute(R9):null;return i&&e}function Une(t){return t&&t.classList&&t.classList.contains&&t.classList.contains($e.replacementClass)}function $ne(){if($e.autoReplaceSvg===!0)return Df.replace;var t=Df[$e.autoReplaceSvg];return t||Df.replace}function Gne(t){return Mn.createElementNS("http://www.w3.org/2000/svg",t)}function Wne(t){return Mn.createElement(t)}function NT(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.ceFn,n=e===void 0?t.tag==="svg"?Gne:Wne:e;if(typeof t=="string")return Mn.createTextNode(t);var o=n(t.tag);Object.keys(t.attributes||[]).forEach(function(a){o.setAttribute(a,t.attributes[a])});var r=t.children||[];return r.forEach(function(a){o.appendChild(NT(a,{ceFn:n}))}),o}function qne(t){var i=" ".concat(t.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var Df={replace:function(i){var e=i[0];if(e.parentNode)if(i[1].forEach(function(o){e.parentNode.insertBefore(NT(o),e)}),e.getAttribute(hl)===null&&$e.keepOriginalSource){var n=Mn.createComment(qne(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(i){var e=i[0],n=i[1];if(~F9(e).indexOf($e.replacementClass))return Df.replace(i);var o=new RegExp("".concat($e.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(s,c){return c===$e.replacementClass||c.match(o)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),r.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var a=n.map(function(s){return fu(s)}).join(` -`);e.setAttribute(hl,""),e.innerHTML=a}};function OO(t){t()}function FT(t,i){var e=typeof i=="function"?i:wf;if(t.length===0)e();else{var n=OO;$e.mutateApproach===Kte&&(n=nc.requestAnimationFrame||OO),n(function(){var o=$ne(),r=U9.begin("mutate");t.map(o),r(),e()})}}var $9=!1;function VT(){$9=!0}function T9(){$9=!1}var Ef=null;function TO(t){if(fO&&$e.observeMutations){var i=t.treeCallback,e=i===void 0?wf:i,n=t.nodeCallback,o=n===void 0?wf:n,r=t.pseudoElementsCallback,a=r===void 0?wf:r,s=t.observeMutationsRoot,c=s===void 0?Mn:s;Ef=new fO(function(m){if(!$9){var f=ic();I2(m).forEach(function(v){if(v.type==="childList"&&v.addedNodes.length>0&&!IO(v.addedNodes[0])&&($e.searchPseudoElements&&a(v.target),e(v.target)),v.type==="attributes"&&v.target.parentNode&&$e.searchPseudoElements&&a([v.target],!0),v.type==="attributes"&&IO(v.target)&&~nne.indexOf(v.attributeName))if(v.attributeName==="class"&&Hne(v.target)){var x=Pf(F9(v.target)),M=x.prefix,O=x.iconName;v.target.setAttribute(z9,M||f),O&&v.target.setAttribute(R9,O)}else Une(v.target)&&o(v.target)})}}),is&&Ef.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Yne(){Ef&&Ef.disconnect()}function Qne(t){var i=t.getAttribute("style"),e=[];return i&&(e=i.split(";").reduce(function(n,o){var r=o.split(":"),a=r[0],s=r.slice(1);return a&&s.length>0&&(n[a]=s.join(":").trim()),n},{})),e}function Kne(t){var i=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),n=t.innerText!==void 0?t.innerText.trim():"",o=Pf(F9(t));return o.prefix||(o.prefix=ic()),i&&e&&(o.prefix=i,o.iconName=e),o.iconName&&o.prefix||(o.prefix&&n.length>0&&(o.iconName=yne(o.prefix,t.innerText)||j9(o.prefix,DT(t.innerText))),!o.iconName&&$e.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=t.firstChild.data)),o}function Xne(t){var i=I2(t.attributes).reduce(function(e,n){return e.name!=="class"&&e.name!=="style"&&(e[n.name]=n.value),e},{});return i}function Zne(){return{iconName:null,prefix:null,transform:ba,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function PO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},e=Kne(t),n=e.iconName,o=e.prefix,r=e.rest,a=Xne(t),s=S9("parseNodeAttributes",{},t),c=i.styleParser?Qne(t):[];return _e({iconName:n,prefix:o,transform:ba,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:c,attributes:a}},s)}var Jne=Nr.styles;function BT(t){var i=$e.autoReplaceSvg==="nest"?PO(t,{styleParser:!1}):PO(t);return~i.extra.classes.indexOf(vT)?oc("generateLayersText",t,i):oc("generateSvgReplacementMutation",t,i)}function eie(){return[].concat(Fr(uT),Fr(mT))}function LO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!is)return Promise.resolve();var e=Mn.documentElement.classList,n=function(v){return e.add("".concat(_O,"-").concat(v))},o=function(v){return e.remove("".concat(_O,"-").concat(v))},r=$e.autoFetchSvg?eie():qO.concat(Object.keys(Jne));r.includes("fa")||r.push("fa");var a=[".".concat(vT,":not([").concat(hl,"])")].concat(r.map(function(f){return".".concat(f,":not([").concat(hl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=I2(t.querySelectorAll(a))}catch{}if(s.length>0)n("pending"),o("complete");else return Promise.resolve();var c=U9.begin("onTree"),m=s.reduce(function(f,v){try{var x=BT(v);x&&f.push(x)}catch(M){_T||M.name==="MissingIcon"&&console.error(M)}return f},[]);return new Promise(function(f,v){Promise.all(m).then(function(x){FT(x,function(){n("active"),n("complete"),o("pending"),typeof i=="function"&&i(),c(),f()})}).catch(function(x){c(),v(x)})})}function tie(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;BT(t).then(function(e){e&&FT([e],i)})}function nie(t){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(i||{}).icon?i:k9(i||{}),o=e.mask;return o&&(o=(o||{}).icon?o:k9(o||{})),t(n,_e(_e({},e),{},{mask:o}))}}var iie=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transform,o=n===void 0?ba:n,r=e.symbol,a=r===void 0?!1:r,s=e.mask,c=s===void 0?null:s,m=e.maskId,f=m===void 0?null:m,v=e.classes,x=v===void 0?[]:v,M=e.attributes,O=M===void 0?{}:M,K=e.styles,Y=K===void 0?{}:K;if(i){var Z=i.prefix,Oe=i.iconName,Mt=i.icon;return Lf(_e({type:"icon"},i),function(){return gl("beforeDOMElementCreation",{iconDefinition:i,params:e}),H9({icons:{main:E9(Mt),mask:c?E9(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Z,iconName:Oe,transform:_e(_e({},ba),o),symbol:a,maskId:f,extra:{attributes:O,styles:Y,classes:x}})})}},oie={mixout:function(){return{icon:nie(iie)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=LO,e.nodeCallback=tie,e}}},provides:function(i){i.i2svg=function(e){var n=e.node,o=n===void 0?Mn:n,r=e.callback,a=r===void 0?function(){}:r;return LO(o,a)},i.generateSvgReplacementMutation=function(e,n){var o=n.iconName,r=n.prefix,a=n.transform,s=n.symbol,c=n.mask,m=n.maskId,f=n.extra;return new Promise(function(v,x){Promise.all([I9(o,r),c.iconName?I9(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(M){var O=If(M,2),K=O[0],Y=O[1];v([e,H9({icons:{main:K,mask:Y},prefix:r,iconName:o,transform:a,symbol:s,maskId:m,extra:f,watchable:!0})])}).catch(x)})},i.generateAbstractIcon=function(e){var n=e.children,o=e.attributes,r=e.main,a=e.transform,s=e.styles,c=Of(s);c.length>0&&(o.style=c);var m;return V9(a)&&(m=oc("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),n.push(m||r.icon),{children:n,attributes:o}}}},rie={mixout:function(){return{layer:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.classes,r=o===void 0?[]:o;return Lf({type:"layer"},function(){gl("beforeDOMElementCreation",{assembler:e,params:n});var a=[];return e(function(s){Array.isArray(s)?s.map(function(c){a=a.concat(c.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat($e.cssPrefix,"-layers")].concat(Fr(r)).join(" ")},children:a}]})}}}},aie={mixout:function(){return{counter:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.title,r=o===void 0?null:o,a=n.classes,s=a===void 0?[]:a,c=n.attributes,m=c===void 0?{}:c,f=n.styles,v=f===void 0?{}:f;return Lf({type:"counter",content:e},function(){return gl("beforeDOMElementCreation",{content:e,params:n}),Fne({content:e.toString(),title:r,extra:{attributes:m,styles:v,classes:["".concat($e.cssPrefix,"-layers-counter")].concat(Fr(s))}})})}}}},sie={mixout:function(){return{text:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,r=o===void 0?ba:o,a=n.classes,s=a===void 0?[]:a,c=n.attributes,m=c===void 0?{}:c,f=n.styles,v=f===void 0?{}:f;return Lf({type:"text",content:e},function(){return gl("beforeDOMElementCreation",{content:e,params:n}),kO({content:e,transform:_e(_e({},ba),r),extra:{attributes:m,styles:v,classes:["".concat($e.cssPrefix,"-layers-text")].concat(Fr(s))}})})}}},provides:function(i){i.generateLayersText=function(e,n){var o=n.transform,r=n.extra,a=null,s=null;if(GO){var c=parseInt(getComputedStyle(e).fontSize,10),m=e.getBoundingClientRect();a=m.width/c,s=m.height/c}return Promise.resolve([e,kO({content:e.innerHTML,width:a,height:s,transform:o,extra:r,watchable:!0})])}}},jT=new RegExp('"',"ug"),AO=[1105920,1112319],zO=_e(_e(_e(_e({},{FontAwesome:{normal:"fas",400:"fas"}}),Uee),Yte),Zee),P9=Object.keys(zO).reduce(function(t,i){return t[i.toLowerCase()]=zO[i],t},{}),cie=Object.keys(P9).reduce(function(t,i){var e=P9[i];return t[i]=e[900]||Fr(Object.entries(e))[0][1],t},{});function lie(t){var i=t.replace(jT,"");return DT(Fr(i)[0]||"")}function die(t){var i=t.getPropertyValue("font-feature-settings").includes("ss01"),e=t.getPropertyValue("content"),n=e.replace(jT,""),o=n.codePointAt(0),r=o>=AO[0]&&o<=AO[1],a=n.length===2?n[0]===n[1]:!1;return r||a||i}function uie(t,i){var e=t.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(i),o=isNaN(n)?"normal":n;return(P9[e]||{})[o]||cie[e]}function RO(t,i){var e="".concat(Qte).concat(i.replace(":","-"));return new Promise(function(n,o){if(t.getAttribute(e)!==null)return n();var r=I2(t.children),a=r.filter(function(fn){return fn.getAttribute(C9)===i})[0],s=nc.getComputedStyle(t,i),c=s.getPropertyValue("font-family"),m=c.match(ene),f=s.getPropertyValue("font-weight"),v=s.getPropertyValue("content");if(a&&!m)return t.removeChild(a),n();if(m&&v!=="none"&&v!==""){var x=s.getPropertyValue("content"),M=uie(c,f),O=lie(x),K=m[0].startsWith("FontAwesome"),Y=die(s),Z=j9(M,O),Oe=Z;if(K){var Mt=Cne(O);Mt.iconName&&Mt.prefix&&(Z=Mt.iconName,M=Mt.prefix)}if(Z&&!Y&&(!a||a.getAttribute(z9)!==M||a.getAttribute(R9)!==Oe)){t.setAttribute(e,Oe),a&&t.removeChild(a);var Et=Zne(),Ht=Et.extra;Ht.attributes[C9]=i,I9(Z,M).then(function(fn){var Bo=H9(_e(_e({},Et),{},{icons:{main:fn,mask:AT()},prefix:M,iconName:Oe,extra:Ht,watchable:!0})),oi=Mn.createElementNS("http://www.w3.org/2000/svg","svg");i==="::before"?t.insertBefore(oi,t.firstChild):t.appendChild(oi),oi.outerHTML=Bo.map(function(Cl){return fu(Cl)}).join(` -`),t.removeAttribute(e),n()}).catch(o)}else n()}else n()})}function mie(t){return Promise.all([RO(t,"::before"),RO(t,"::after")])}function pie(t){return t.parentNode!==document.head&&!~Xte.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(C9)&&(!t.parentNode||t.parentNode.tagName!=="svg")}var fie=function(i){return!!i&&gT.some(function(e){return i.includes(e)})},hie=function(i){if(!i)return[];var e=new Set,n=i.split(/,(?![^()]*\))/).map(function(c){return c.trim()});n=n.flatMap(function(c){return c.includes("(")?c:c.split(",").map(function(m){return m.trim()})});var o=Mf(n),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;if(fie(a)){var s=gT.reduce(function(c,m){return c.replace(m,"")},a);s!==""&&s!=="*"&&e.add(s)}}}catch(c){o.e(c)}finally{o.f()}return e};function NO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(is){var e;if(i)e=t;else if($e.searchPseudoElementsFullScan)e=t.querySelectorAll("*");else{var n=new Set,o=Mf(document.styleSheets),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;try{var s=Mf(a.cssRules),c;try{for(s.s();!(c=s.n()).done;){var m=c.value,f=hie(m.selectorText),v=Mf(f),x;try{for(v.s();!(x=v.n()).done;){var M=x.value;n.add(M)}}catch(K){v.e(K)}finally{v.f()}}}catch(K){s.e(K)}finally{s.f()}}catch(K){$e.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(K.message,`) -If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(K){o.e(K)}finally{o.f()}if(!n.size)return;var O=Array.from(n).join(", ");try{e=t.querySelectorAll(O)}catch{}}return new Promise(function(K,Y){var Z=I2(e).filter(pie).map(mie),Oe=U9.begin("searchPseudoElements");VT(),Promise.all(Z).then(function(){Oe(),T9(),K()}).catch(function(){Oe(),T9(),Y()})})}}var gie={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=NO,e}}},provides:function(i){i.pseudoElements2svg=function(e){var n=e.node,o=n===void 0?Mn:n;$e.searchPseudoElements&&NO(o)}}},FO=!1,_ie={mixout:function(){return{dom:{unwatch:function(){VT(),FO=!0}}}},hooks:function(){return{bootstrap:function(){TO(S9("mutationObserverCallbacks",{}))},noAuto:function(){Yne()},watch:function(e){var n=e.observeMutationsRoot;FO?T9():TO(S9("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},VO=function(i){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return i.toLowerCase().split(" ").reduce(function(n,o){var r=o.toLowerCase().split("-"),a=r[0],s=r.slice(1).join("-");if(a&&s==="h")return n.flipX=!0,n;if(a&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(a){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},e)},bie={mixout:function(){return{parse:{transform:function(e){return VO(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-transform");return o&&(e.transform=VO(o)),e}}},provides:function(i){i.generateAbstractTransformGrouping=function(e){var n=e.main,o=e.transform,r=e.containerWidth,a=e.iconWidth,s={transform:"translate(".concat(r/2," 256)")},c="translate(".concat(o.x*32,", ").concat(o.y*32,") "),m="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),f="rotate(".concat(o.rotate," 0 0)"),v={transform:"".concat(c," ").concat(m," ").concat(f)},x={transform:"translate(".concat(a/2*-1," -256)")},M={outer:s,inner:v,path:x};return{tag:"g",attributes:_e({},M.outer),children:[{tag:"g",attributes:_e({},M.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:_e(_e({},n.icon.attributes),M.path)}]}]}}}},_9={x:0,y:0,width:"100%",height:"100%"};function BO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||i)&&(t.attributes.fill="black"),t}function vie(t){return t.tag==="g"?t.children:[t]}var yie={hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-mask"),r=o?Pf(o.split(" ").map(function(a){return a.trim()})):AT();return r.prefix||(r.prefix=ic()),e.mask=r,e.maskId=n.getAttribute("data-fa-mask-id"),e}}},provides:function(i){i.generateAbstractMask=function(e){var n=e.children,o=e.attributes,r=e.main,a=e.mask,s=e.maskId,c=e.transform,m=r.width,f=r.icon,v=a.width,x=a.icon,M=dne({transform:c,containerWidth:v,iconWidth:m}),O={tag:"rect",attributes:_e(_e({},_9),{},{fill:"white"})},K=f.children?{children:f.children.map(BO)}:{},Y={tag:"g",attributes:_e({},M.inner),children:[BO(_e({tag:f.tag,attributes:_e(_e({},f.attributes),M.path)},K))]},Z={tag:"g",attributes:_e({},M.outer),children:[Y]},Oe="mask-".concat(s||yO()),Mt="clip-".concat(s||yO()),Et={tag:"mask",attributes:_e(_e({},_9),{},{id:Oe,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[O,Z]},Ht={tag:"defs",children:[{tag:"clipPath",attributes:{id:Mt},children:vie(x)},Et]};return n.push(Ht,{tag:"rect",attributes:_e({fill:"currentColor","clip-path":"url(#".concat(Mt,")"),mask:"url(#".concat(Oe,")")},_9)}),{children:n,attributes:o}}}},Cie={provides:function(i){var e=!1;nc.matchMedia&&(e=nc.matchMedia("(prefers-reduced-motion: reduce)").matches),i.missingIconAbstract=function(){var n=[],o={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:_e(_e({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=_e(_e({},r),{},{attributeName:"opacity"}),s={tag:"circle",attributes:_e(_e({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||s.children.push({tag:"animate",attributes:_e(_e({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_e(_e({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:_e(_e({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:_e(_e({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||n.push({tag:"path",attributes:_e(_e({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_e(_e({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},xie={hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-symbol"),r=o===null?!1:o===""?!0:o;return e.symbol=r,e}}}},Mie=[pne,oie,rie,aie,sie,gie,_ie,bie,yie,Cie,xie];One(Mie,{mixoutsTo:Vo});var hLe=Vo.noAuto,HT=Vo.config,gLe=Vo.library,UT=Vo.dom,$T=Vo.parse,_Le=Vo.findIconDefinition,bLe=Vo.toHtml,GT=Vo.icon,vLe=Vo.layer,wie=Vo.text,Die=Vo.counter;var Sie=["*"],kie=(()=>{class t{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(e){HT.autoAddCss=e,this._autoAddCss=e}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W9=(()=>{class t{definitions={};addIcons(...e){for(let n of e){n.prefix in this.definitions||(this.definitions[n.prefix]={}),this.definitions[n.prefix][n.iconName]=n;for(let o of n.icon[2])typeof o=="string"&&(this.definitions[n.prefix][o]=n)}}addIconPacks(...e){for(let n of e){let o=Object.keys(n).map(r=>n[r]);this.addIcons(...o)}}getIconDefinition(e,n){return e in this.definitions&&n in this.definitions[e]?this.definitions[e][n]:null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Eie=t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)},Iie=()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")},qT=t=>t!=null&&(t===90||t===180||t===270||t==="90"||t==="180"||t==="270"),Oie=t=>{let i=qT(t.rotate),e={[`fa-${t.animation}`]:t.animation!=null&&!t.animation.startsWith("spin"),"fa-spin":t.animation==="spin"||t.animation==="spin-reverse","fa-spin-pulse":t.animation==="spin-pulse"||t.animation==="spin-pulse-reverse","fa-spin-reverse":t.animation==="spin-reverse"||t.animation==="spin-pulse-reverse","fa-pulse":t.animation==="spin-pulse"||t.animation==="spin-pulse-reverse","fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":t.flip==="horizontal"||t.flip==="both","fa-flip-vertical":t.flip==="vertical"||t.flip==="both",[`fa-${t.size}`]:t.size!==null,[`fa-rotate-${t.rotate}`]:i,"fa-rotate-by":t.rotate!=null&&!i,[`fa-pull-${t.pull}`]:t.pull!==null,[`fa-stack-${t.stackItemSize}`]:t.stackItemSize!=null};return Object.keys(e).map(n=>e[n]?n:null).filter(n=>n!=null)},G9=new WeakSet,WT="fa-auto-css";function Tie(t,i){if(!i.autoAddCss||G9.has(t))return;if(t.getElementById(WT)!=null){i.autoAddCss=!1,G9.add(t);return}let e=t.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",WT),e.innerHTML=UT.css();let n=t.head.childNodes,o=null;for(let r=n.length-1;r>-1;r--){let a=n[r],s=a.nodeName.toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(o=a)}t.head.insertBefore(e,o),i.autoAddCss=!1,G9.add(t)}var Pie=t=>t.prefix!==void 0&&t.iconName!==void 0,Lie=(t,i)=>Pie(t)?t:Array.isArray(t)&&t.length===2?{prefix:t[0],iconName:t[1]}:{prefix:i,iconName:t},Aie=(()=>{class t{stackItemSize=S1("1x");size=S1();_effect=sa(()=>{if(this.size())throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')});static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:[1,"stackItemSize"],size:[1,"size"]}})}return t})(),zie=(()=>{class t{size=S1();classes=Zn(()=>{let e=this.size(),n=e?{[`fa-${e}`]:!0}:{};return Ne(q({},n),{"fa-stack":!0})});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["fa-stack"]],hostVars:2,hostBindings:function(n,o){n&2&&Tt(o.classes())},inputs:{size:[1,"size"]},ngContentSelectors:Sie,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Yt=(()=>{class t{icon=to();title=to();animation=to();mask=to();flip=to();size=to();pull=to();border=to();inverse=to();symbol=to();rotate=to();fixedWidth=to();transform=to();a11yRole=to();renderedIconHTML=Zn(()=>{let e=this.icon()??this.config.fallbackIcon;if(!e)return Iie(),"";let n=this.findIconDefinition(e);if(!n)return"";let o=this.buildParams();Tie(this.document,this.config);let r=GT(n,o);return this.sanitizer.bypassSecurityTrustHtml(r.html.join(` -`))});document=d(Me);sanitizer=d(Ga);config=d(kie);iconLibrary=d(W9);stackItem=d(Aie,{optional:!0});stack=d(zie,{optional:!0});constructor(){this.stack!=null&&this.stackItem==null&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}findIconDefinition(e){let n=Lie(e,this.config.defaultPrefix);if("icon"in n)return n;let o=this.iconLibrary.getIconDefinition(n.prefix,n.iconName);return o??(Eie(n),null)}buildParams(){let e=this.fixedWidth(),n={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:typeof e=="boolean"?e:this.config.fixedWidth,stackItemSize:this.stackItem!=null?this.stackItem.stackItemSize():void 0},o=this.transform(),r=typeof o=="string"?$T.transform(o):o,a=this.mask(),s=a!=null?this.findIconDefinition(a):null,c={},m=this.a11yRole();m!=null&&(c.role=m);let f={};return n.rotate!=null&&!qT(n.rotate)&&(f["--fa-rotate-angle"]=`${n.rotate}`),{title:this.title(),transform:r,classes:Oie(n),mask:s??void 0,symbol:this.symbol(),attributes:c,styles:f}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,o){n&2&&(Lt("innerHTML",o.renderedIconHTML(),jc),te("title",o.title()??void 0))},inputs:{icon:[1,"icon"],title:[1,"title"],animation:[1,"animation"],mask:[1,"mask"],flip:[1,"flip"],size:[1,"size"],pull:[1,"pull"],border:[1,"border"],inverse:[1,"inverse"],symbol:[1,"symbol"],rotate:[1,"rotate"],fixedWidth:[1,"fixedWidth"],transform:[1,"transform"],a11yRole:[1,"a11yRole"]},outputs:{icon:"iconChange",title:"titleChange",animation:"animationChange",mask:"maskChange",flip:"flipChange",size:"sizeChange",pull:"pullChange",border:"borderChange",inverse:"inverseChange",symbol:"symbolChange",rotate:"rotateChange",fixedWidth:"fixedWidthChange",transform:"transformChange",a11yRole:"a11yRoleChange"},decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})();var YT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var Rie=t=>({flex:t}),Af=(()=>{class t{constructor(){}ngOnInit(){this.acceptFilter||(this.acceptFilter=".xls,.xlsx,.pdf,.doc,.docx,.png,.jpeg,.jpg")}onFileSelect(e){this.fileName=e.target.files[0].name}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-file-upload"]],inputs:{flex:"flex",acceptFilter:"acceptFilter"},decls:10,vars:12,consts:[["uploadFile",""],[1,"layout-row","layout-lt-md-column","gap-2percent"],[3,"ngStyle"],["matInput","","placeholder","No file selected",3,"readonly","value"],[1,"flex-10","align-center"],["mat-button","",3,"click"],["icon","folder-open","size","lg"],["type","file",3,"change","accept"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1)(1,"mat-form-field",2),F(2,"input",3),_(),h(3,"span",4)(4,"button",5),N("click",function(){G(r);let s=Nt(9);return W(s.click())}),F(5,"fa-icon",6),y(6),S(7,"translate"),_()()(),h(8,"input",7,0),N("change",function(s){return G(r),W(o.onFileSelect(s))}),_()}n&2&&(p(),D("ngStyle",Eo(10,Rie,"0 0 "+(o.flex||"83%"))),p(),D("readonly",!0)("value",o.fileName||""),p(4),ne(" \xA0\xA0 ",k(7,8,"labels.buttons.Browse")," "),p(2),At("display","none"),D("accept",Ft(o.acceptFilter)))},dependencies:[he,i7,ve,Bt,ti,vt,Yt,Te],encapsulation:2})}}return t})();var O2=(()=>{class t{constructor(){this.http=d(Bn),this.emptyPayload={}}static{this.CONFIG_ASSET_EXTERNALIZATION="asset-externalization-of-non-active-loans"}getDataTables(){return this.http.get("/datatables")}getHooks(){return this.http.get("/hooks")}getHook(e){return this.http.get(`/hooks/${e}`)}getHooksTemplate(){return this.http.get("/hooks/template")}createHook(e){return this.http.post("/hooks",e)}updateHook(e,n){return this.http.put(`/hooks/${e}`,n)}deleteHook(e){return this.http.delete(`/hooks/${e}`)}getRoles(){return this.http.get("/roles")}getRole(e){return this.http.get(`/roles/${e}/permissions`)}updateRole(e,n){return this.http.put(`/roles/${n}`,e)}updateRolePermission(e,n){return this.http.put(`/roles/${e}/permissions`,n)}deleteRole(e){return this.http.delete(`/roles/${e}`)}createRole(e){return this.http.post("/roles",e)}enableRole(e){let n=new ee().set("command","enable");return this.http.post(`/roles/${e}`,{},{params:n})}disableRole(e){let n=new ee().set("command","disable");return this.http.post(`/roles/${e}`,{},{params:n})}getCodes(){return this.http.get("/codes")}getCode(e){return this.http.get(`/codes/${e}`)}updateCode(e,n){return this.http.put(`/codes/${n}`,e)}getCodeValues(e){return this.http.get(`/codes/${e}/codevalues`)}deleteCodeValue(e,n){return this.http.delete(`/codes/${e}/codevalues/${n}`)}updateCodeValue(e,n,o){return this.http.put(`/codes/${e}/codevalues/${n}`,o)}createCodeValue(e,n){return this.http.post(`/codes/${e}/codevalues`,n)}deleteCode(e){return this.http.delete(`/codes/${e}`)}getSurveys(){return this.http.get("/surveys")}createSurvey(e){return this.http.post("/surveys",e)}getSurvey(e){return this.http.get(`/surveys/${e}?template=true`)}editSurvey(e,n){return this.http.put(`/surveys/${e}`,n)}activateSurvey(e){return this.http.post(`/surveys/${e}?command=activate`,null)}deactivateSurvey(e){return this.http.post(`/surveys/${e}?command=deactivate`,null)}getJobs(){return this.http.get("/jobs")}getWorkflowJobNames(){return this.http.get("/jobs/names")}getWorkflowJobSteps(e){return this.http.get(`/jobs/${e}/steps`)}putWorkflowJobSteps(e,n){return this.http.put(`/jobs/${e}/steps`,n)}runInlineCOB(e,n){return this.http.post(`/jobs/${e}/inline`,n)}getAvailablesJobSteps(e){return this.http.get(`/jobs/${e}/available-steps`)}getScheduler(){return this.http.get("/scheduler")}getSelectedJob(e){return this.http.get(`/jobs/${e}`)}runCommandOnScheduler(e){return this.http.post("/scheduler?command="+e,this.emptyPayload)}updateScheduler(e,n){return this.http.put(`/jobs/${e}`,n)}runSelectedJob(e){return this.http.post(`/jobs/${e}?command=executeJob`,this.emptyPayload,{observe:"response"}).toPromise()}runSelectedJobWithParameters(e,n){return this.http.post(`/jobs/${e}?command=executeJob`,n,{observe:"response"}).toPromise()}getHistoryScheduler(e){return this.http.get(`/jobs/${e}/runhistory`)}createCode(e){return this.http.post("/codes",e)}createDataTable(e){return this.http.post("/datatables",e)}getDataTable(e){return this.http.get(`/datatables/${e}`)}deleteDataTable(e){return this.http.delete(`/datatables/${e}`)}updateDataTable(e,n){return this.http.put(`/datatables/${n}`,e)}getBusinessDates(){return this.http.get("/businessdate")}getBusinessDate(e){return this.http.get(`/businessdate/${e}`)}updateBusinessDate(e){return this.http.post("/businessdate",e)}getConfigurations(){return this.http.get("/configurations")}getConfiguration(e){return this.http.get(`/configurations/${e}`)}getConfigurationByName(e){return this.http.get(`/configurations/name/${e}`)}updateConfiguration(e,n){return this.http.put(`/configurations/${e}`,n)}getExternalConfiguration(e){return this.http.get(`/externalservice/${e}`)}updateExternalConfiguration(e,n){return this.http.put(`/externalservice/${e}`,n)}getAccountNumberPreferences(){return this.http.get("/accountnumberformats")}getAccountNumberPreferencesTemplate(){return this.http.get("/accountnumberformats/template")}getAccountNumberPreference(e){return this.http.get(`/accountnumberformats/${e}`)}createAccountNumberPreference(e){return this.http.post("/accountnumberformats",e)}deleteAccountNumberPreference(e){return this.http.delete(`/accountnumberformats/${e}`)}updateAccountNumberPreference(e,n){return this.http.put(`/accountnumberformats/${e}`,n)}getReports(){return this.http.get("/reports")}getReport(e){return this.http.get(`/reports/${e}?template=true`)}getReportTemplate(){return this.http.get("/reports/template")}createReport(e){return this.http.post("/reports",e)}updateReport(e,n){return this.http.put(`/reports/${e}`,n)}deleteReport(e){return this.http.delete(`/reports/${e}`)}getAuditTrails(e,n,o,r,a){let s=new ee().set("offset",r.toString()).set("limit",a.toString()).set("sortOrder",o).set("orderBy",n).set("paged","true");return e.forEach(function(c){c.value!==""&&(s=s.set(c.type,c.value))}),this.http.get("/audits",{params:s})}getAuditTrail(e){return this.http.get(`/audits/${e}`)}getAuditTrailSearchTemplate(){return this.http.get("/audits/searchtemplate")}getEntityMappings(){return this.http.get("/entitytoentitymapping")}getEntitytoEntityData(e,n,o){return this.http.get(`/entitytoentitymapping/${e}/${n}/${o}`)}getMapIdData(e){return this.http.get(`/entitytoentitymapping/${e}`)}createMapping(e,n){return this.http.post(`/entitytoentitymapping/${e}`,n)}editMapping(e,n){return this.http.put(`/entitytoentitymapping/${e}`,n)}deleteMapping(e){return this.http.delete(`/entitytoentitymapping/${e}`)}getOffices(){return this.http.get("/offices")}getLoanProducts(){return this.http.get("/loanproducts")}getSavingProducts(){return this.http.get("/savingsproducts")}getCharges(){return this.http.get("/charges")}getMakerCheckerPermissions(){let e=new ee().set("makerCheckerable","true");return this.http.get("/permissions",{params:e})}updateMakerCheckerPermission(e){let n=new ee().set("makerCheckerable","true");return this.http.put("/permissions",e,{params:n})}getExternalEventConfiguration(){return this.http.get("/externalevents/configuration")}putExternalEventConfiguration(e){return this.http.put("/externalevents/configuration",e)}getEntityDatatables(e){let n=new ee().set("apptable",e);return this.http.get("/datatables",{params:n})}getEntityDatatable(e,n){let o=new ee().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addEntityDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editEntityDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new ee().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}deleteDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.delete(`/datatables/${o}/${e}/${n}`,{params:r})}getCOBCatchUpStatus(){return this.http.get("/loans/is-catch-up-running")}runCOBCatchUp(){let e={};return this.http.post("/loans/catch-up",e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var QT=(()=>{class t{constructor(){this.http=d(Bn),this.apiActuator=mt.apiActuator}getBackendInfo(){return this.http.get(this.apiActuator+"/actuator/info")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var rc=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=yn(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=yn(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(te("aria-orientation",o.vertical?"vertical":"horizontal"),oe("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px} -`],encapsulation:2,changeDetection:0})}return t})(),zf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();function Nie(t,i){if(t&1&&(h(0,"tr")(1,"td",6),y(2),S(3,"translate"),_(),h(4,"td",7),y(5),_()()),t&2){let e=w(2);p(2),T(k(3,2,"labels.inputs.Server")),p(3),ne(" ",e.server," ")}}function Fie(t,i){if(t&1&&(h(0,"tr")(1,"td",6),y(2),S(3,"translate"),_(),h(4,"td",8)(5,"b"),y(6),S(7,"date"),_()()()),t&2){let e=w(2);p(2),ne("",k(3,2,"labels.text.Current Business Date"),":"),p(4),T(Zo(7,4,e.businessDate,"EEEE, MMMM dd, y"))}}function Vie(t,i){if(t&1&&(h(0,"div",0),F(1,"mat-divider",3),h(2,"div",4)(3,"table",5)(4,"tr")(5,"td",6),y(6,"Mifos"),_(),h(7,"td",7),y(8),h(9,"b"),y(10),_()()(),h(11,"tr")(12,"td",6),y(13),S(14,"translate"),_(),h(15,"td",7),y(16),h(17,"b"),y(18),_()()(),E(19,Nie,6,4,"tr"),E(20,Fie,8,7,"tr"),_()(),F(21,"mat-divider",3),_()),t&2){let e=w();D("ngClass",Ft(e.styleClass)),p(8),ne(" ",e.versions.mifos," - "),p(2),T(e.hash),p(3),T(k(14,9,"labels.text.Fineract")),p(3),ne(" ",e.versions.fineract.version," - "),p(2),T(e.versions.fineract.hash),p(),I(e.displayBackEndInfo?19:-1),p(),I(e.isBusinessDateDefined?20:-1)}}var KT=(()=>{class t{constructor(){this.systemService=d(O2),this.settingsService=d(Xt),this.authenticationService=d(Zm),this.alertService=d(Os),this.dateUtils=d(go),this.versionService=d(QT),this.styleClass="",this.versions={mifos:mt.version,fineract:{version:"",hash:""}},this.hash=mt.hash,this.server="",this.businessDate=null,this.isBusinessDateEnabled=!1,this.isBusinessDateDefined=!1,this.displayBackEndInfo=!0,this.displayBackEndInfo=mt.displayBackEndInfo==="true"}ngOnInit(){this.displayBackEndInfo&&(this.alert$=this.alertService.alertEvent.subscribe(e=>{let n=e.type;n===Xt.businessDateType+" Set Config"?(this.isBusinessDateEnabled=e.message==="enabled",this.isBusinessDateDefined=!1,this.isBusinessDateEnabled&&this.setBusinessDate()):n===Xt.businessDateType+" Set"?this.isBusinessDateEnabled&&this.setBusinessDate():n==="Authentication Start"&&(this.timer=setTimeout(()=>{this.getConfigurations()},6e4))}),this.getConfigurations(),this.server=this.settingsService.server,this.versionService.getBackendInfo().subscribe(e=>{if(e.git&&e.git.build&&e.git.build.version){let n=e.git.build.version.split("-");this.versions.fineract.version=n[0],this.versions.fineract.hash=n[1]}}))}ngOnDestroy(){this.displayBackEndInfo&&clearTimeout(this.timer)}getConfigurations(){this.authenticationService.isAuthenticated()?this.systemService.getConfigurationByName(Xt.businessDateConfigName).subscribe(e=>{this.isBusinessDateEnabled=e.enabled,this.settingsService.setBusinessDateConfig(e.enabled),this.isBusinessDateEnabled&&(this.setBusinessDate(),this.timer=setTimeout(()=>{this.getConfigurations()},6e4))}):clearTimeout(this.timer)}setBusinessDate(){this.systemService.getBusinessDate(Xt.businessDateType).subscribe(e=>{this.businessDate=new Date(e.date),this.settingsService.setBusinessDate(this.dateUtils.formatDate(this.businessDate,Xt.businessDateFormat)),this.isBusinessDateDefined=!0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-footer"]],inputs:{styleClass:"styleClass"},decls:6,vars:7,consts:[["id","footer",1,"layout-column","m-b-20","f12",3,"ngClass"],[1,"layout-column","m-b-20","copy-label"],[1,"footer-content","align-center"],[1,"divider","align-center"],[1,"layout-column","m-b-20","content-wrapper","footer-center"],[1,"versions"],[1,"footer-content"],[1,"right","footer-content"],[1,"center","footer-content","business-date"]],template:function(n,o){n&1&&(E(0,Vie,22,11,"div",0),h(1,"div",1)(2,"p",2),y(3),S(4,"translate"),S(5,"translate"),_()()),n&2&&(I(o.displayBackEndInfo?0:-1),p(3),Dt("",k(4,3,"APP_NAME")," ",k(5,5,"labels.text.by")," Mifos"))},dependencies:[he,Un,ve,rc,E1,Te],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}#footer[_ngcontent-%COMP%]{align-items:center;min-width:400px}#footer[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{max-width:100%;min-width:90%;padding-left:5%;padding-right:5%}#footer[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%] .versions[_ngcontent-%COMP%]{width:100%;color:#666f73}#footer[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%] .footer-content[_ngcontent-%COMP%]{margin:0}#footer[_ngcontent-%COMP%] .divider[_ngcontent-%COMP%]{margin:2.5rem 1rem .5rem;width:4rem}#footer[_ngcontent-%COMP%] .business-date[_ngcontent-%COMP%]{color:#4461e2}#footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:none}#footer[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:transparent}.main-page[_ngcontent-%COMP%]{max-width:70%;min-width:50%;padding-left:30%}.copy-label[_ngcontent-%COMP%]{min-width:100%;text-align:center;font-size:large}"]})}}return t})();function Bie(t,i){if(t&1&&(h(0,"mat-option",2),y(1),S(2,"translate"),_()),t&2){let e=i.$implicit;D("value",e),p(),ne(" ",k(2,2,"languages."+e)," ")}}var XT=(()=>{class t{constructor(){this.translateService=d(Po),this.settingsService=d(Xt),this.languageSelector=new Hi,this.languageSelector.setValue(this.currentLanguage)}setLanguage(){this.translateService.use(this.languageSelector.value),this.settingsService.setLanguage({name:"",code:this.languageSelector.value.substring(0,2)})}get currentLanguage(){return this.translateService.currentLang}get languages(){return this.translateService.getLangs()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-language-selector"]],decls:7,vars:4,consts:[["id","language-selector",1,"m-l-10"],[1,"languageselector",3,"selectionChange","formControl"],[3,"value"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",1),N("selectionChange",function(){return o.setLanguage()}),Xe(5,Bie,3,4,"mat-option",2,ht),_()()),n&2&&(p(2),T(k(3,2,"labels.inputs.Language")),p(2),D("formControl",o.languageSelector),p(),Ze(o.languages))},dependencies:[he,ve,mn,Si,Bt,Cn,qn,ln,Te],styles:[".mat-mdc-form-field-bottom-align:before{border-bottom-color:#fff} .mdc-line-ripple:before{border-bottom-color:#fff} .mdc-line-ripple:after{border-bottom-color:#fff} .mat-mdc-form-field .mdc-line-ripple:before{border-bottom-color:#fff!important} .mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#fff!important}"]})}}return t})();var ZT=(()=>{class t{constructor(){this.themeManagerClass="theme-manager"}setTheme(e){this.getLinkElement().setAttribute("href",e)}removeTheme(){let e=this.getExistingLinkElement();e&&document.head.removeChild(e)}getLinkElement(){return this.getExistingLinkElement()||this.createLinkElement()}getExistingLinkElement(){return document.head.querySelector(`link[rel="stylesheet"].${this.themeManagerClass}`)}createLinkElement(){let e=document.createElement("link");return e.setAttribute("rel","stylesheet"),e.classList.add(this.themeManagerClass),document.head.appendChild(e),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var JT=(()=>{class t{constructor(){this.themeManagerService=d(ZT),this.themeStorageKey="mifosXTheme",this.onThemeUpdate=new j}storeTheme(e){localStorage.setItem(this.themeStorageKey,JSON.stringify(e)),this.onThemeUpdate.emit(e)}getTheme(){return JSON.parse(localStorage.getItem(this.themeStorageKey))}clearTheme(){localStorage.removeItem(this.themeStorageKey)}installTheme(e){let n=document.body;n.classList.remove("pictonblue-yellowgreen-theme","indigo-pink-theme","deeppurple-amber-theme","pink-bluegrey-theme","purple-green-theme"),e.isDefault||n.classList.add(this.getThemeClass(e.href)),this.storeTheme(e)}getThemeClass(e){switch(e){case"pictonblue-yellowgreen.css":return"pictonblue-yellowgreen-theme";case"indigo-pink.css":return"indigo-pink-theme";case"deeppurple-amber.css":return"deeppurple-amber-theme";case"pink-bluegrey.css":return"pink-bluegrey-theme";case"purple-green.css":return"purple-green-theme";default:return""}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jie=["mat-menu-item",""],Hie=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Uie=["mat-icon, [matMenuItemIcon]","*"];function $ie(t,i){t&1&&($t(),h(0,"svg",2),F(1,"polygon",3),_())}var Gie=["*"];function Wie(t,i){if(t&1){let e=le();nt(0,"div",0),im("click",function(){G(e);let o=w();return W(o.closed.emit("click"))})("animationstart",function(o){G(e);let r=w();return W(r._onAnimationStart(o.animationName))})("animationend",function(o){G(e);let r=w();return W(r._onAnimationDone(o.animationName))})("animationcancel",function(o){G(e);let r=w();return W(r._onAnimationDone(o.animationName))}),nt(1,"div",1),ae(2),rt()()}if(t&2){let e=w();Tt(e._classList),oe("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Lt("id",e.panelId),te("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Y9=new L("MAT_MENU_PANEL"),_l=(()=>{class t{_elementRef=d(Q);_document=d(Me);_focusMonitor=d(sn);_parentMenu=d(Y9,{optional:!0});_changeDetectorRef=d(xe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new B;_focused=new B;_highlighted=!1;_triggersSubmenu=!1;constructor(){d(at).load(cn),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_injector=d(be);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ue();_allItems;_directDescendantItems=new In;_classList={};_panelAnimationState="void";_animationDone=new B;_isAnimating=we(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=q({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new j;close=this.closed;panelId=d(He).getId("mat-menu-panel-");constructor(){let e=d(Yie);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Tr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(We(this._directDescendantItems),lt(e=>ft(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(We(this._directDescendantItems),lt(n=>ft(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:St(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Ct(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ne(q({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Rf;(n||e===q9)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===q9||e===Rf)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Rf),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?q9:Rf)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(We(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,qie,5),Ee(r,_l,5),Ee(r,_l,4)),n&2){let a;U(a=$())&&(o.lazyContent=a.first),U(a=$())&&(o._allItems=a),U(a=$())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&ue(tt,5),n&2){let r;U(r=$())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&te("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",H],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:H(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[de([{provide:Y9,useExisting:t}])],ngContentSelectors:Gie,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(De(),Mr(0,Wie,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} -`],encapsulation:2,changeDetection:0})}return t})(),eP=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function Kie(t){let i=d(be);return()=>fi(i)}var Xie={provide:eP,deps:[],useFactory:Kie};var T2=new WeakMap,Zie=(()=>{class t{_canHaveBackdrop;_element=d(Q);_viewContainerRef=d(dt);_menuItemInstance=d(_l,{optional:!0,self:!0});_dir=d(bt,{optional:!0});_focusMonitor=d(sn);_ngZone=d(se);_injector=d(be);_scrollStrategy=d(eP);_changeDetectorRef=d(xe);_animationsDisabled=Ue();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Se.EMPTY;_menuCloseSubscription=Se.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let n=d(Y9,{optional:!0});this._parentMaterialMenu=n instanceof ac?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&T2.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=T2.get(n);T2.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof ac&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(ye(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof ac&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(Be(1)).subscribe(()=>{n.detach(),T2.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&T2.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=lo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof ac&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new co({positionStrategy:zr(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[c,m]=[a,s],[f,v]=[o,r],x=0;if(this._triggersSubmenu()){if(v=o=e.xPosition==="before"?"start":"end",r=f=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let M=this._parentMaterialMenu.items.first;this._parentInnerPadding=M?M._getHostElement().offsetTop:0}x=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=a==="top"?"bottom":"top",m=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:x},{originX:r,originY:c,overlayX:v,overlayY:a,offsetY:x},{originX:o,originY:m,overlayX:f,overlayY:s,offsetY:-x},{originX:r,originY:m,overlayX:v,overlayY:s,offsetY:-x}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:re(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ae(a=>this._menuOpen&&a!==this._menuItemInstance)):re();return ft(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Wn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return T2.get(e)===this}static \u0275fac=function(n){Hc()};static \u0275dir=z({type:t})}return t})(),Nf=(()=>{class t extends Zie{_cleanupTouchstart;_hoverSubscription=Se.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new j;onMenuOpen=this.menuOpened;menuClosed=new j;onMenuClose=this.menuClosed;constructor(){super(!0);let e=d(Ke);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{Qa(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Ya(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&N("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&te("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null:o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[ce]})}return t})();var tP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Xie],imports:[wi,fe,Ei,xi,fe]})}return t})(),nP={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},WAe=nP.fadeInItems,qAe=nP.transformMenu;var hu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Q_],imports:[Ka,Ei,fe,fe,xi]})}return t})();var Ff=class{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){let i=Math.max(...this.tracker);return i>1?this.rowCount+i-1:this.rowCount}positions;update(i,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(i),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(n=>this._trackTile(n))}_trackTile(i){let e=this._findMatchingGap(i.colspan);return this._markTilePosition(e,i),this.columnIndex=e+i.colspan,new Q9(this.rowIndex,e)}_findMatchingGap(i){i>this.tracker.length;let e=-1,n=-1;do{if(this.columnIndex+i>this.tracker.length){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e);continue}if(e=this.tracker.indexOf(0,this.columnIndex),e==-1){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e);continue}n=this._findGapEndIndex(e),this.columnIndex=e+1}while(n-e*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0} -`,oP=new L("MAT_GRID_LIST"),J9=(()=>{class t{_element=d(Q);_gridList=d(oP,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(e){this._rowspan=Math.round(vn(e))}get colspan(){return this._colspan}set colspan(e){this._colspan=Math.round(vn(e))}_setStyle(e,n){this._element.nativeElement.style[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(n,o){n&2&&te("rowspan",o.rowspan)("colspan",o.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:iP,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(n,o){n&1&&(De(),nt(0,"div",0),ae(1),rt())},styles:[`.mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0} -`],encapsulation:2,changeDetection:0})}return t})();var eoe=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,gu=class{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(i,e,n,o){this._gutterSize=rP(i),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=o}getBaseTileSize(i,e){return`(${i}% - (${this._gutterSize} * ${e}))`}getTilePosition(i,e){return e===0?"0":bl(`(${i} + ${this._gutterSize}) * ${e}`)}getTileSize(i,e){return`(${i} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(i,e,n){let o=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(i,n,o,r),this.setRowStyles(i,e,o,r)}setColStyles(i,e,n,o){let r=this.getBaseTileSize(n,o),a=this._direction==="rtl"?"right":"left";i._setStyle(a,this.getTilePosition(r,e)),i._setStyle("width",bl(this.getTileSize(r,i.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(i){return`${this._rowspan} * ${this.getTileSize(i,1)}`}getComputedHeight(){return null}},K9=class extends gu{fixedRowHeight;constructor(i){super(),this.fixedRowHeight=i}init(i,e,n,o){super.init(i,e,n,o),this.fixedRowHeight=rP(this.fixedRowHeight),eoe.test(this.fixedRowHeight)}setRowStyles(i,e){i._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),i._setStyle("height",bl(this.getTileSize(this.fixedRowHeight,i.rowspan)))}getComputedHeight(){return["height",bl(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(i){i._setListStyle(["height",null]),i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}},X9=class extends gu{rowHeightRatio;baseTileHeight;constructor(i){super(),this._parseRatio(i)}setRowStyles(i,e,n,o){let r=n/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(r,o),i._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),i._setStyle("paddingTop",bl(this.getTileSize(this.baseTileHeight,i.rowspan)))}getComputedHeight(){return["paddingBottom",bl(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(i){i._setListStyle(["paddingBottom",null]),i._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(i){let e=i.split(":");e.length,this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}},Z9=class extends gu{setRowStyles(i,e){let n=100/this._rowspan,o=(this._rows-1)/this._rows,r=this.getBaseTileSize(n,o);i._setStyle("top",this.getTilePosition(r,e)),i._setStyle("height",bl(this.getTileSize(r,i.rowspan)))}reset(i){i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}};function bl(t){return`calc(${t})`}function rP(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}var toe="fit",aP=(()=>{class t{_element=d(Q);_dir=d(bt,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(e){this._cols=Math.max(1,Math.round(vn(e)))}get gutterSize(){return this._gutter}set gutterSize(e){this._gutter=`${e??""}`}get rowHeight(){return this._rowHeight}set rowHeight(e){let n=`${e??""}`;n!==this._rowHeight&&(this._rowHeight=n,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){this.cols}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(e){this._tileStyler&&this._tileStyler.reset(this),e===toe?this._tileStyler=new Z9:e&&e.indexOf(":")>-1?this._tileStyler=new X9(e):this._tileStyler=new K9(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Ff);let e=this._tileCoordinator,n=this._tiles.filter(r=>!r._gridList||r._gridList===this),o=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,o),n.forEach((r,a)=>{let s=e.positions[a];this._tileStyler.setStyle(r,s.row,s.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-grid-list"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,J9,5),n&2){let a;U(a=$())&&(o._tiles=a)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(n,o){n&2&&te("cols",o.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[de([{provide:oP,useExisting:t}])],ngContentSelectors:iP,decls:2,vars:0,template:function(n,o){n&1&&(De(),nt(0,"div"),ae(1),rt())},styles:[Jie],encapsulation:2,changeDetection:0})}return t})(),sP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[H_,fe,H_,fe]})}return t})();function noe(t,i){t&1&&F(0,"fa-icon",7)}function ioe(t,i){if(t&1){let e=le();h(0,"mat-grid-tile")(1,"div",5),N("click",function(){let o=G(e).$implicit,r=w();return W(r.installTheme(o))}),h(2,"div",6),E(3,noe,1,0,"fa-icon",7),F(4,"div",8)(5,"div",9),_()()()}if(t&2){let e=i.$implicit,n=w();p(3),I(n.currentTheme.href===e.href?3:-1),p(),At("background",e.primary),p(),At("background",e.accent)}}var cP=(()=>{class t{constructor(){this.themeStorageService=d(JT),this.currentTheme={href:"denim-yellowgreen.css",primary:"#1074B9",accent:"#B4D575",isDark:!1,isDefault:!0},this.themes=[this.currentTheme,{href:"pictonblue-yellowgreen.css",primary:"#1DAEEC",accent:"#B4D575",isDark:!1},{href:"indigo-pink.css",primary:"#3F51B5",accent:"#E91E63",isDark:!1},{href:"deeppurple-amber.css",primary:"#673AB7",accent:"#FFC107",isDark:!1},{href:"pink-bluegrey.css",primary:"#E91E63",accent:"#607D8B",isDark:!0},{href:"purple-green.css",primary:"#9C27B0",accent:"#4CAF50",isDark:!0}]}ngOnInit(){let e=this.themeStorageService.getTheme();e&&(this.currentTheme=e)}installTheme(e){this.currentTheme=e,this.themeStorageService.installTheme(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-theme-picker"]],decls:8,vars:5,consts:[["themeMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],["icon","fill-drip","size","lg"],["x-position","before",1,"mifosx-theme-picker-menu"],["cols","2"],["mat-menu-item","",3,"click"],[1,"mifosx-theme-picker-swatch"],["icon","check-circle","size","lg",1,"mifosx-theme-chosen-icon"],[1,"mifosx-theme-picker-primary"],[1,"mifosx-theme-picker-accent"]],template:function(n,o){if(n&1&&(h(0,"button",1),S(1,"translate"),F(2,"fa-icon",2),_(),h(3,"mat-menu",3,0)(5,"mat-grid-list",4),Xe(6,ioe,6,5,"mat-grid-tile",null,ht),_()()),n&2){let r=Nt(4);D("matTooltip",Ft(k(1,3,"tooltips.Color Schemes")))("matMenuTriggerFor",r),p(6),Ze(o.themes)}},dependencies:[he,ve,ni,Nf,mo,Yt,ac,aP,J9,_l,Te],styles:[`.mifosx-theme-picker-menu .mat-menu-content{padding:8px}.mifosx-theme-picker-menu [mat-menu-item]{flex:0 0 auto;padding:0;overflow:hidden}.mifosx-theme-picker-menu .mifosx-theme-picker-swatch{position:relative;width:36px;height:36px;margin:6px;border-radius:50%;overflow:hidden}.mifosx-theme-picker-menu .mifosx-theme-picker-swatch .mifosx-theme-chosen-icon{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.mifosx-theme-picker-menu .mifosx-theme-picker-swatch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.2);border-radius:50%}.mifosx-theme-picker-menu .mifosx-theme-picker-primary{width:100%;height:100%}.mifosx-theme-picker-menu .mifosx-theme-picker-accent{position:absolute;bottom:6px;width:100%;height:6px} -`],encapsulation:2})}}return t})();function lP(){return t=>{let i=t.value;if(!i)return null;let e={};return i.length50&&(e.maxLength="Password must be maximum 50 characters long"),/[A-Z]/.test(i)||(e.uppercase="Password must contain at least one uppercase letter"),/[a-z]/.test(i)||(e.lowercase="Password must contain at least one lowercase letter"),/\d/.test(i)||(e.number="Password must contain at least one number"),/^(?:(.)(?!\1))+$/.test(i)||(e.repeated="Password must have not consecutive repeating characters"),/[@$!%*?&]/.test(i)||(e.specialChar="Password must contain at least one special character (@$!%*?&)"),Object.keys(e).length>0?e:null}}var Vf=class t{constructor(){this.minPasswordLength=mt.minPasswordLength|12}static{this.PASSWORD_REGEX="^(?!.*(.)\\1{1,})(?!.*\\s)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^\\w\\s]).{"+(mt.minPasswordLength|12)+",50}$"}getPasswordValidators(){return[en.required,en.minLength(this.minPasswordLength),en.maxLength(50),lP()]}confirmPassword(i){return e=>{if(e.value==null||e.value.length===0)return null;let n=e.root.get(i);if(n){let o=n.valueChanges.subscribe(()=>{e.updateValueAndValidity(),o.unsubscribe()})}return n&&n.value!==e.value?{notequal:!0}:null}}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}};var Bf;function ooe(){if(Bf===void 0&&(Bf=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(Bf=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Bf}function _u(t){return ooe()?.createHTML(t)||t}function dP(t){return Error(`Unable to find icon with the name "${t}"`)}function roe(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function uP(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function mP(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var os=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},fP=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new os(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Fn.HTML,o);if(!a)throw mP(o);let s=_u(a);return this._addSvgIconConfig(e,n,new os("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new os(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Fn.HTML,n);if(!r)throw mP(n);let a=_u(r);return this._addSvgIconSetConfig(e,new os("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Fn.RESOURCE_URL,e);if(!n)throw uP(e);let o=this._cachedIconsByUrl.get(n);return o?re(jf(o)):this._loadSvgIconFromConfig(new os(e,null)).pipe(Ot(r=>this._cachedIconsByUrl.set(n,r)),me(r=>jf(r)))}getNamedSvgIcon(e,n=""){let o=pP(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Gr(dP(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?re(jf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(me(n=>jf(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return re(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Mo(s=>{let m=`Loading icon set URL: ${this._sanitizer.sanitize(Fn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(m)),re(null)})));return Oa(r).pipe(me(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw dP(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ot(n=>e.svgText=n),me(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?re(null):this._fetchIcon(e).pipe(Ot(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(_u(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(_u("")),o=e.attributes;for(let r=0;r_u(m)),qr(()=>this._inProgressUrlFetches.delete(a)),nd());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(pP(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;oi?i.pathname+i.search:""}}var hP=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],uoe=hP.map(t=>`[${t}]`).join(", "),moe=/^url\(['"]?#(.*?)['"]?\)$/,Co=(()=>{class t{_elementRef=d(Q);_iconRegistry=d(fP);_location=d(loe);_errorHandler=d(_i);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Se.EMPTY;constructor(){let e=d(new dn("aria-hidden"),{optional:!0}),n=d(coe,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(uoe),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],c=s.getAttribute(a),m=c?c.match(moe):null;if(m){let f=o.get(s);f||(f=[],o.set(s,f)),f.push({name:a,value:m[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(Be(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(te("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Tt(o.color?"mat-"+o.color:""),oe("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",H],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:soe,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto} -`],encapsulation:2,changeDetection:0})}return t})(),Hf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();function poe(t,i){if(t&1&&(h(0,"mat-error"),y(1),_()),t&2){let e=w();p(),ne("",e.label," is a required field.")}}function foe(t,i){if(t&1&&(h(0,"mat-error"),y(1),_()),t&2){let e=w();p(),T(e.customErrorMessage)}}var Uf=(()=>{class t{get matcher(){return this}get required(){return this._required??this.ngControl?.control?.hasValidator(en.required)??!1}set required(e){this._required=e}constructor(){this.ngControl=d(ei,{optional:!0,self:!0}),this.disabled=!1,this.icon="visibility_off",this.label=null,this.customErrorMessage=null,this.customErrorName=null,this.touched=!1,this.type="password",this.value=null,this._required=null,this._visible=!1,this.onChange=n=>{},this.onTouched=()=>{};let e=this.ngControl;e!==null&&(e.valueAccessor=this)}isErrorState(e,n){return this.touched&&(this.ngControl?.control?.invalid??!1)}onFocusOut(){this.touched=!0,this.onTouched(),this.matInput.updateErrorState()}onInput(e){this.value=e.currentTarget.value,this.touched=!0,this.onChange(this.value)}onVisibilityClick(e){this._visible?(this.icon="visibility_off",this.type="password"):(this.icon="visibility",this.type="text"),this._visible=!this._visible,e.stopPropagation()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}writeValue(e){this.value=e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-input-password"]],viewQuery:function(n,o){if(n&1&&ue(ti,5),n&2){let r;U(r=$())&&(o.matInput=r.first)}},inputs:{label:"label",customErrorMessage:"customErrorMessage",customErrorName:"customErrorName",required:"required"},decls:8,vars:9,consts:[[1,"flex-100"],["matInput","",3,"focusout","input","disabled","errorStateMatcher","required","type","value"],["matSuffix","",3,"click"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"mat-label"),y(2),_(),h(3,"input",1),N("focusout",function(){return o.onFocusOut()})("input",function(a){return o.onInput(a)}),_(),h(4,"mat-icon",2),N("click",function(a){return o.onVisibilityClick(a)}),y(5),_(),E(6,poe,2,1,"mat-error"),E(7,foe,2,1,"mat-error"),_()),n&2&&(p(2),T(o.label),p(),D("disabled",o.disabled)("errorStateMatcher",o.matcher)("required",o.required)("type",o.type)("value",o.value),p(2),T(o.icon),p(),I(o.ngControl.hasError("required")?6:-1),p(),I(o.ngControl.hasError(o.customErrorName)?7:-1))},dependencies:[he,ve,Bt,Cn,ao,Za,ti,Co],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .mat-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var hoe=(t,i)=>({password:t,repeatPassword:i}),goe=t=>({minchar:t});function _oe(t,i){if(t&1&&(h(0,"p"),y(1),S(2,"translate"),_()),t&2){let e=w();p(),ne(" ",Zo(2,1,"labels.commons.Password validation",Eo(4,goe,e.minPasswordLength))," ")}}function boe(t,i){t&1&&(h(0,"p"),y(1),S(2,"translateKey"),_()),t&2&&(p(),ne(" ",Zo(2,1,"Passwords do not match","inputs")," "))}var gP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.formBuilder=d(Rs),this.passwordsUtility=d(Vf),this.minPasswordLength=mt.minPasswordLength|12,this.passwordInputType=["password","password"]}ngOnInit(){this.createChangePasswordForm()}createChangePasswordForm(){this.changePasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",[en.required,this.confirmPassword("password")]]},{updateOn:"blur"})}confirmPassword(e){return n=>{if(n.value==null||n.value.length===0)return null;let o=n.root.get(e);if(o){let r=o.valueChanges.subscribe(()=>{n.updateValueAndValidity(),r.unsubscribe()})}return o&&o.value!==n.value?{notequal:!0}:null}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-change-password-dialog"]],decls:23,vars:27,consts:[["password",""],["repeatPassword",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"layout-column"],["formControlName","password",3,"label"],["formControlName","repeatPassword",3,"label"],[1,"error"],["align","center"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"disabled","mat-dialog-close"]],template:function(n,o){if(n&1&&(h(0,"h1",2),y(1),S(2,"translate"),_(),h(3,"div",3)(4,"form",4)(5,"div",5),F(6,"mifosx-input-password",6,0),S(8,"translateKey"),h(9,"mat-error"),E(10,_oe,3,6,"p"),_(),F(11,"mifosx-input-password",7,1),S(13,"translateKey"),_(),h(14,"div",8),E(15,boe,3,4,"p"),_()()(),h(16,"mat-dialog-actions",9)(17,"button",10),y(18),S(19,"translate"),_(),h(20,"button",11),y(21),S(22,"translate"),_()()),n&2){let r,a;p(),T(k(2,12,"labels.heading.Change Password")),p(3),D("formGroup",o.changePasswordForm),p(2),D("label",Ft(Zo(8,14,"Password","inputs"))),p(4),I((r=o.changePasswordForm.get("password").errors)!=null&&r.uppercase||(r=o.changePasswordForm.get("password").errors)!=null&&r.number||(r=o.changePasswordForm.get("password").errors)!=null&&r.repeated||(r=o.changePasswordForm.get("password").errors)!=null&&r.specialChar||(r=o.changePasswordForm.get("password").errors)!=null&&r.minlength?10:-1),p(),D("label",Ft(Zo(13,17,"Confirm Password","inputs"))),p(4),I((a=o.changePasswordForm.get("repeatPassword").errors)!=null&&a.notequal?15:-1),p(3),T(k(19,20,"labels.buttons.Cancel")),p(2),D("disabled",!o.changePasswordForm.valid)("mat-dialog-close",D1(24,hoe,o.changePasswordForm.get("password").value,o.changePasswordForm.get("repeatPassword").value)),p(),ne(" ",k(22,22,"labels.buttons.Confirm")," ")}},dependencies:[he,ve,zs,mn,tr,ui,Ao,ao,vt,xn,An,Uf,zn,Ln,Te,Wc],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return t})();var voe=()=>({enable:!0}),_P=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-enable-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"p"),y(5),S(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),y(9),S(10,"translate"),_(),h(11,"button",4),y(12),S(13,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.heading.Enable")),p(4),Dt("",k(6,8,"labels.text.Are you sure you want to enable")," ",o.data.enableContext," ?"),p(4),T(k(10,10,"labels.buttons.Cancel")),p(2),D("mat-dialog-close",ko(14,voe)),p(),ne(" ",k(13,12,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var yoe=()=>({disable:!0}),bP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-disable-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"p"),y(5),S(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),y(9),S(10,"translate"),_(),h(11,"button",4),y(12),S(13,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.heading.Disable")),p(4),Dt("",k(6,8,"labels.text.Are you sure you want to disable")," ",o.data.disableContext," ?"),p(4),T(k(10,10,"labels.buttons.Cancel")),p(2),D("mat-dialog-close",ko(14,yoe)),p(),ne(" ",k(13,12,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var vP=(()=>{class t{constructor(){}setColor(e){let n="primary";switch(e){case"Basic":n="primary";break;case"Mild":n="primary";break;case"Strong":n="warn";break;default:n="warn"}return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Coe=()=>({confirm:!0}),yP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.dialogs=d(vP),this.data=d(En)}ngOnInit(){this.setColor()}setColor(){this.color=this.dialogs.setColor(this.data.type)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-confirmation-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),_(),h(2,"div",1)(3,"p"),y(4),_()(),h(5,"mat-dialog-actions",2)(6,"button",3),y(7),S(8,"translate"),_(),h(9,"button",4),y(10),S(11,"translate"),_()()),n&2&&(p(),T(o.data.heading),p(3),ne("",o.data.dialogContext," ?"),p(3),T(k(8,7,"labels.buttons.Cancel")),p(2),D("color",Ft(o.color))("mat-dialog-close",ko(11,Coe)),p(),ne(" ",k(11,9,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();function xoe(t,i){if(t&1&&(h(0,"p"),y(1),_()),t&2){let e=w();p(),T(e.displayData)}}function Moe(t,i){if(t&1&&F(0,"span",2),t&2){let e=w();D("innerHTML",e.sanitizedData,jc)}}var CP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.sanitizer=d(Ga),this.showAsCode=!1;let e=this.data;this.showAsCode=typeof e=="string"&&e.startsWith("
")}get displayData(){return typeof this.data=="string"?this.data:this.data!=null?JSON.stringify(this.data):""}get sanitizedData(){return this.sanitizer.sanitize(Fn.HTML,this.displayData)||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-error-dialog"]],decls:10,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],["align","left"],["mat-raised-button","","mat-dialog-close",""]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1),E(4,xoe,2,1,"p"),E(5,Moe,1,1,"span",2),_(),h(6,"mat-dialog-actions",3)(7,"button",4),y(8),S(9,"translate"),_()()),n&2&&(p(),T(k(2,4,"Error Log")),p(3),I(o.showAsCode?-1:4),p(),I(o.showAsCode?5:-1),p(3),T(k(9,6,"Cancel")))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var xP=(()=>{class t{constructor(){this.http=d(Bn)}getNotifications(e,n){let o=new ee().set("isRead",e.toString()).set("limit",n);return this.http.get("/notifications",{params:o})}updateNotifications(){return this.http.put("/notifications",{})}getMockUnreadNotification(){let e=new Date;return re({totalFilteredRecords:1,pageItems:[{id:Math.floor(Math.random()*100),objectType:"client",objectId:Math.floor(Math.random()*10),action:"clientCreated",actorId:2,content:"Client Created",isRead:!1,isSystemGenerated:!1,createdAt:`${e.toLocaleDateString()} ${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`}]})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var MP="mat-badge-content",woe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
-`],encapsulation:2,changeDetection:0})}return t})(),wP=(()=>{class t{_ngZone=d(se);_elementRef=d(Q);_ariaDescriber=d(Y1);_renderer=d(Ke);_animationsDisabled=Ue();_idGenerator=d(He);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=d(Vs);_document=d(Me);constructor(){let e=d(at);e.load(woe),e.load(_o)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),n="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(MP),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(n)})}):e.classList.add(n),e}_updateRenderedContent(e){let n=`${e??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),e&&n.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${MP}`);for(let n of Array.from(e))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,o){n&2&&oe("mat-badge-overlap",o.overlap)("mat-badge-above",o.isAbove())("mat-badge-below",!o.isAbove())("mat-badge-before",!o.isAfter())("mat-badge-after",o.isAfter())("mat-badge-small",o.size==="small")("mat-badge-medium",o.size==="medium")("mat-badge-large",o.size==="large")("mat-badge-hidden",o.hidden||!o.content)("mat-badge-disabled",o.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",H],disabled:[2,"matBadgeDisabled","disabled",H],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",H]}})}return t})(),DP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[Ka,fe,fe]})}return t})();var SP=(t,i)=>[t,i];function Doe(t,i){t&1&&(h(0,"div",6)(1,"mat-icon",7),y(2,"notifications_none"),_(),h(3,"p",8),y(4),S(5,"translate"),_()()),t&2&&(p(4),T(k(5,1,"labels.text.No notifications")))}function Soe(t,i){if(t&1&&(h(0,"button",12)(1,"div",14)(2,"span",15),y(3),_(),h(4,"span",16),y(5,"\u25CF"),_()(),h(6,"span",17),y(7),_()()),t&2){let e=i.$implicit,n=w(2);D("routerLink",D1(3,SP,n.routeMap[e.objectType],e.objectId)),p(3),T(e.content),p(4),T(e.createdAt)}}function koe(t,i){if(t&1&&(h(0,"button",13)(1,"div",14)(2,"span",15),y(3),_()(),h(4,"span",17),y(5),_()()),t&2){let e=i.$implicit,n=w(2);D("routerLink",D1(3,SP,n.routeMap[e.objectType],e.objectId)),p(3),T(e.content),p(2),T(e.createdAt)}}function Eoe(t,i){if(t&1&&(h(0,"div",9)(1,"h3",10),y(2),S(3,"translate"),_()(),h(4,"div",11),Xe(5,Soe,8,6,"button",12,ht),Xe(7,koe,6,6,"button",13,ht),_()),t&2){let e=w();p(2),T(k(3,1,"labels.menus.Notifications")),p(3),Ze(e.unreadNotifications),p(2),Ze(e.displayedReadNotifications)}}var kP=(()=>{class t{constructor(){this.notificationsService=d(xP),this.waitTime=mt.waitTimeForNotifications||60,this.readNotifications=[],this.displayedReadNotifications=[],this.unreadNotifications=[],this.routeMap={client:"/clients/",group:"/groups/",loan:"/loans-accounts/",center:"/centers/",shareAccount:"/shares-accounts/",fixedDeposit:"/fixed-deposits-accounts/",recurringDepositAccount:"/recurring-deposits-accounts/",savingsAccount:"/savings-accounts/",shareProduct:"/products/share-products/",loanProduct:"/products/loan-products/"},Oa([this.notificationsService.getNotifications(!0,9),this.notificationsService.getNotifications(!1,9)]).subscribe(e=>{this.readNotifications=e[0].pageItems,this.unreadNotifications=e[1].pageItems,this.setNotifications()})}ngOnInit(){this.fetchUnreadNotifications()}ngOnDestroy(){this.destroy()}destroy(){clearTimeout(this.timer)}setNotifications(){let e=this.unreadNotifications.length;this.displayedReadNotifications=e<9?this.readNotifications.slice(0,9-e):[]}fetchUnreadNotifications(){this.notificationsService.getNotifications(!1,9).subscribe(e=>{this.unreadNotifications=this.unreadNotifications.concat(e.pageItems),this.setNotifications()}),this.timer=setTimeout(()=>{this.fetchUnreadNotifications()},this.waitTime*1e3)}menuClosed(){this.notificationsService.updateNotifications().subscribe(()=>{}),this.readNotifications=this.unreadNotifications.concat(this.readNotifications),this.unreadNotifications=[],this.setNotifications()}mockNotifications(){this.notificationsService.getMockUnreadNotification().subscribe(e=>{this.unreadNotifications=this.unreadNotifications.concat(e.pageItems),this.setNotifications()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-notifications-tray"]],decls:12,vars:15,consts:[["notificationsMenu","matMenu"],["mat-icon-button","","matBadgeColor","warn","matBadgeSize","medium",1,"ml-1",3,"menuClosed","matTooltip","matMenuTriggerFor","matBadge","matBadgeHidden"],[1,"sr-only"],["icon","bell","size","lg"],["xPosition","before","yPosition","below",1,"mifosx-notifications-menu",3,"overlapTrigger"],[1,"notifications-container"],[1,"no-notifications"],[1,"no-notifications-icon"],[1,"no-notifications-text"],[1,"notifications-header"],[1,"notifications-title"],[1,"notifications-list"],["mat-menu-item","",1,"notification-item","unread",3,"routerLink"],["mat-menu-item","",1,"notification-item","read",3,"routerLink"],[1,"notification-content"],[1,"notification-text"],[1,"unread-indicator"],[1,"notification-time"]],template:function(n,o){if(n&1){let r=le();h(0,"button",1),S(1,"translate"),S(2,"translate"),N("menuClosed",function(){return G(r),W(o.menuClosed())}),h(3,"span",2),y(4),S(5,"translate"),_(),F(6,"fa-icon",3),_(),h(7,"mat-menu",4,0)(9,"div",5),E(10,Doe,6,3,"div",6)(11,Eoe,9,3),_()()}if(n&2){let r=Nt(8);D("matTooltip",Ft(k(1,9,"tooltips.Notifications")))("matMenuTriggerFor",r)("matBadge",o.unreadNotifications.length)("matBadgeHidden",!o.unreadNotifications.length),te("aria-label",k(2,11,"tooltips.Notifications")),p(4),T(k(5,13,"tooltips.Notifications")),p(3),D("overlapTrigger",!1),p(3),I(o.unreadNotifications.length===0&&o.displayedReadNotifications.length===0?10:11)}},dependencies:[he,ve,m2,ni,mo,Nf,wP,Yt,ac,Co,_l,Te],styles:[`.column-mandatory{color:#5cb85c;text-align:center}.not-column-mandatory{color:#666f73;text-align:center}.cdk-drag-placeholder{background:#3498db}.yes{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no{color:red;background-color:red;height:4px;cursor:none}.strike{text-decoration:line-through;color:red}.transfer{color:#16a085}.linked{color:#4461e2}.accrual{color:#999}.fa-question{color:#4461e2}.enabled{color:#32cd32}.disabled{color:#f44366}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.mifosx-notifications-menu{margin-top:8px;overflow:hidden}.mifosx-notifications-menu .mat-mdc-menu-content,.mifosx-notifications-menu .mat-menu-content{padding:0;overflow:hidden}.mifosx-notifications-menu .notifications-container{width:320px;max-width:320px;max-height:500px;display:flex;flex-direction:column;overflow:hidden;overflow-x:hidden;box-sizing:border-box}.mifosx-notifications-menu .notifications-header{padding:16px 16px 12px;border-bottom:1px solid #bdc3c7;background-color:transparent}.mifosx-notifications-menu .notifications-header .notifications-title{margin:0;font-size:16px;font-weight:500;color:#353b3b;line-height:1.5}.mifosx-notifications-menu .no-notifications{padding:48px 32px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:200px}.mifosx-notifications-menu .no-notifications .no-notifications-icon{font-size:64px;width:64px;height:64px;color:#95a5a6;margin-bottom:16px}.mifosx-notifications-menu .no-notifications .no-notifications-text{color:#7f8c8d;font-size:14px;margin:0;font-weight:500}.mifosx-notifications-menu .notifications-list{max-height:500px;overflow:hidden auto;width:100%;box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}.mifosx-notifications-menu .notifications-list::-webkit-scrollbar{display:none}.mifosx-notifications-menu .notification-item{display:flex;flex-direction:column;align-items:flex-start;padding:12px 16px;min-height:0;height:auto;line-height:1.5;border-bottom:1px solid #bdc3c7;transition:background-color .2s ease;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.mifosx-notifications-menu .notification-item:hover{background-color:#f5f5f5}.mifosx-notifications-menu .notification-item:last-child{border-bottom:none}.mifosx-notifications-menu .notification-item .notification-content{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:4px;box-sizing:border-box;min-width:0}.mifosx-notifications-menu .notification-item .notification-content .notification-text{flex:1;font-size:14px;line-height:1.4;text-align:left;word-wrap:break-word;overflow-wrap:break-word;min-width:0;overflow:hidden}.mifosx-notifications-menu .notification-item .notification-content .unread-indicator{color:#3498db;font-size:8px;margin-top:6px;flex-shrink:0}.mifosx-notifications-menu .notification-item .notification-time{font-size:12px;color:#7f8c8d;font-weight:400;margin-top:2px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mifosx-notifications-menu .notification-item.unread{background-color:#ecf0f1}.mifosx-notifications-menu .notification-item.unread .notification-content .notification-text{font-weight:500;color:#353b3b}.mifosx-notifications-menu .notification-item.unread:hover{background-color:#f5f5f5}.mifosx-notifications-menu .notification-item.read{background-color:transparent}.mifosx-notifications-menu .notification-item.read .notification-content .notification-text{font-weight:400;color:#7f8c8d}.dark-theme .mifosx-notifications-menu .notifications-header{border-bottom:1px solid #7f8c8d}.dark-theme .mifosx-notifications-menu .notifications-header .notifications-title{color:#fff}.dark-theme .mifosx-notifications-menu .no-notifications .no-notifications-icon{color:#fff;opacity:.6}.dark-theme .mifosx-notifications-menu .no-notifications .no-notifications-text{color:#fff}.dark-theme .mifosx-notifications-menu .notification-item{border-bottom:1px solid #7f8c8d}.dark-theme .mifosx-notifications-menu .notification-item:hover{background-color:#34495e}.dark-theme .mifosx-notifications-menu .notification-item .notification-content .notification-text{color:#fff}.dark-theme .mifosx-notifications-menu .notification-item .notification-content .unread-indicator{color:#3498db}.dark-theme .mifosx-notifications-menu .notification-item .notification-time{color:#fff;opacity:.7}.dark-theme .mifosx-notifications-menu .notification-item.unread{background-color:#34495e}.dark-theme .mifosx-notifications-menu .notification-item.unread .notification-content .notification-text{color:#fff}.dark-theme .mifosx-notifications-menu .notification-item.unread:hover{background-color:#2c3e50}.dark-theme .mifosx-notifications-menu .notification-item.read{background-color:transparent}.dark-theme .mifosx-notifications-menu .notification-item.read .notification-content .notification-text{color:#fff;opacity:.8}
-`],encapsulation:2})}}return t})();var sc=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(sc||{}),Ioe="*";function nb(t,i){return{type:sc.Trigger,name:t,definitions:i,options:{}}}function $f(t,i=null){return{type:sc.Animate,styles:i,timings:t}}function PNe(t,i=null){return{type:sc.Sequence,steps:t,options:i}}function bu(t){return{type:sc.Style,styles:t,offset:null}}function Ooe(t,i,e){return{type:sc.State,name:t,styles:i,options:e}}function Gf(t,i,e=null){return{type:sc.Transition,expr:t,animation:i,options:e}}var eb=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},tb=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Toe="!";function Poe(t,i){if(t&1&&(h(0,"mat-option",9),y(1),S(2,"translate"),_()),t&2){let e=i.$implicit;D("value",e.value),p(),ne(" ",k(2,2,"labels.text."+e.name)," ")}}function Loe(t,i){if(t&1){let e=le();h(0,"div",1)(1,"mat-form-field",5)(2,"mat-label"),y(3),S(4,"translate"),_(),h(5,"input",6),N("keydown.enter",function(){G(e);let o=w();return W(o.search())}),_()(),h(6,"mat-form-field",7)(7,"mat-label"),y(8),S(9,"translate"),_(),h(10,"mat-select",8),Xe(11,Poe,3,4,"mat-option",9,ht),_()()()}if(t&2){let e=w();D("@fadeInOut",void 0),p(3),T(k(4,5,"labels.text.Search")),p(2),D("formControl",e.query),p(3),T(k(9,7,"labels.inputs.Resource")),p(2),D("formControl",e.resource),p(),Ze(e.resourceOptions)}}var EP=(()=>{class t{constructor(){this.router=d(bo),this.query=new Hi(""),this.resource=new Hi(""),this.searchVisible=!1,this.resourceOptions=[{name:"All",value:"clients,clientIdentifiers,groups,savings,shares,loans"},{name:"Clients",value:"clients,clientIdentifiers"},{name:"Groups",value:"groups"},{name:"Savings",value:"savings"},{name:"Shares",value:"shares"},{name:"Loans",value:"loans"}],this.resource.patchValue("clients,clientIdentifiers,groups,savings,shares,loans")}toggleSearchVisibility(){this.searchVisible=!this.searchVisible}search(){let e={query:this.query.value,resource:this.resource.value};this.router.navigate(["/search"],{queryParams:e})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-search-tool"]],decls:6,vars:5,consts:[[1,"flex-100","layout-row"],[1,"search-bar","flex-90","layout-row","hide-lt-sm"],[1,"search-icon","flex-10"],["mat-icon-button","",1,"hide-lt-sm",3,"click"],["icon","search","size","lg",3,"matTooltip"],[1,"search","flex-45"],["matInput","","type","text",3,"keydown.enter","formControl"],[1,"resource","flex-50"],[3,"formControl"],[3,"value"]],template:function(n,o){n&1&&(h(0,"div",0),E(1,Loe,13,9,"div",1),h(2,"div",2)(3,"button",3),N("click",function(){return o.toggleSearchVisibility()}),F(4,"fa-icon",4),S(5,"translate"),_()()()),n&2&&(p(),I(o.searchVisible?1:-1),p(3),D("matTooltip",Ft(k(5,3,"labels.text.Search"))))},dependencies:[he,ve,yi,mn,Si,Bt,Cn,ti,qn,ln,ni,Yt,mo,Te],styles:[".search-bar[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]{max-width:500px;width:100%;font-size:1rem;color:#fff}.search-bar[_ngcontent-%COMP%]   .resource[_ngcontent-%COMP%]{min-width:100px;max-width:100px;width:100%;font-size:1rem;color:#fff;padding-left:5px}.search-icon[_ngcontent-%COMP%]{margin-left:1rem;display:flex;align-items:center}.mat-mdc-floating-label[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#fff!important;height:16px;transition:height ease-in-out .4s}mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{color:#fff!important;background-color:transparent;height:16px;transition:height ease-in-out .4s}"],data:{animation:[nb("fadeInOut",[Gf(":enter",[bu({opacity:0}),$f(500,bu({opacity:1}))]),Gf(":leave",[$f(500,bu({opacity:0}))])])]}})}}return t})();var Wf=class{constructor(){this.makeCombination()}makeCombination(){this.buttonsArray=[{title:"Navigation Page",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"n",route:"navigation"},{title:"Run Report",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"t",route:"",id:"runReport"},{title:"Checker Inbox & Pending Tasks",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"i",route:"checker-inbox-and-tasks/checker-inbox"},{title:"Create Client",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"c",route:"clients/create"},{title:"Create Group",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"g",route:"groups/create"},{title:"Create Center",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"q",route:"centers/create"},{title:"Frequent Posting",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"f",route:"accounting/journal-entries/frequent-postings"},{title:"Closure Entries",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"e",route:"accounting/closing-entries"},{title:"Journal Entry",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"j",route:"accounting/journal-entries/create"},{title:"Reports",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"r",route:"reports"},{title:"Accounting",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"a",route:"accounting"},{title:"Save/Submit Forms",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"s",route:"",id:"submit"},{title:"Cancel",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"x",route:"",id:"cancel"},{title:"Help",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"h",route:"",id:"help"},{title:"Logout",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"l",route:"",id:"logout"}]}get buttonCombinations(){return this.buttonsArray}};function Aoe(t,i){t&1&&(h(0,"span")(1,"span",6),y(2),S(3,"translate"),_(),y(4," + "),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Ctrl")))}function zoe(t,i){t&1&&(h(0,"span")(1,"span",6),y(2),S(3,"translate"),_(),y(4," + "),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Shift")))}function Roe(t,i){t&1&&(h(0,"span")(1,"span",6),y(2),S(3,"translate"),_(),y(4," + "),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Alt")))}function Noe(t,i){if(t&1&&(h(0,"span")(1,"span",6),y(2),_()()),t&2){let e=w().$implicit;p(2),T(e.key)}}function Foe(t,i){if(t&1&&(F(0,"mat-divider",3),h(1,"div",4)(2,"span",5),E(3,Aoe,5,3,"span"),E(4,zoe,5,3,"span"),E(5,Roe,5,3,"span"),E(6,Noe,3,1,"span"),_(),h(7,"span",5),y(8),_()()),t&2){let e=i.$implicit;D("inset",!0),p(3),I(e.ctrlKey?3:-1),p(),I(e.shiftKey?4:-1),p(),I(e.altKey?5:-1),p(),I(e.key?6:-1),p(2),T(e.title)}}var IP=(()=>{class t{constructor(){this.dialogRef=d(qt)}ngOnInit(){this.dialogRef.updateSize("800px"),this.buttonConfig=new Wf}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-keyboard-shortcuts-dialog"]],decls:7,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"layout-column","gap-2px"],[3,"inset"],[1,"flex-fill","flex-50"],[1,"flex-50"],[1,"modifier-key"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"div",2),Xe(5,Foe,9,6,null,null,ht),_()()),n&2&&(p(),T(k(2,1,"labels.heading.Keyboard Shortcuts")),p(4),Ze(o.buttonConfig.buttonCombinations))},dependencies:[he,ve,xn,An,rc,Te],styles:[".modifier-key[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.3019607843);padding:.3rem;background:#f8f8f8;color:#00000086;font-weight:700;border-radius:.3rem}.mat-divider.mat-divider-inset[_ngcontent-%COMP%]{margin-left:0}"]})}}return t})();function Voe(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2&&(p(),ne(" ",k(2,2,"labels.inputs.Url")," "),p(3),T(k(5,4,"labels.commons.is required")))}function Boe(t,i){if(t&1&&(h(0,"mat-option",9),y(1),_()),t&2){let e=i.$implicit;D("value",e),p(),ne(" ",e," ")}}function joe(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",1),N("selectionChange",function(){G(e);let o=w();return W(o.setServer())}),h(5,"div",2)(6,"form",3),N("ngSubmit",function(){G(e);let o=w();return W(o.addNewServer())}),h(7,"div",4)(8,"mat-form-field",5)(9,"span",6)(10,"mat-icon"),y(11,"language"),_()(),h(12,"mat-label"),y(13),S(14,"translate"),_(),F(15,"input",7),E(16,Voe,6,6,"mat-error"),_(),h(17,"button",8),y(18),S(19,"translate"),_()()()(),Xe(20,Boe,2,2,"mat-option",9,ht),_()()}if(t&2){let e=w();p(2),T(k(3,7,"labels.inputs.Server")),p(2),D("formControl",e.serverSelector),p(2),D("formGroup",e.form),p(7),T(k(14,9,"labels.placeholders.Add new server")),p(3),I(e.form.controls.url.hasError("required")?16:-1),p(),D("disabled",e.form.invalid),p(),ne(" ",k(19,11,"labels.buttons.Add")," "),p(2),Ze(e.servers)}}var OP=(()=>{class t{constructor(){this.settingsService=d(Xt),this.dialog=d(Wi),this.formBuilder=d(Rs),this.serverSelector=new Hi(""),this.existMoreThanOneServer=!1}ngOnInit(){this.servers=this.settingsService.servers,this.existMoreThanOneServer=this.servers&&this.servers.length>1,this.existMoreThanOneServer?(this.existMoreThanOneServer=!0,this.serverSelector.patchValue(this.settingsService.server),this.form=this.formBuilder.group({url:["",[en.required]]})):this.settingsService.setServer(this.servers[0])}setServer(){this.settingsService.setServer(this.serverSelector.value)}addNewServer(){let e,n=this.form.value.url;n.endsWith("/")&&(n=n.slice(0,-1)),this.settingsService.setServer(n),e=this.settingsService.servers,e.push(n),this.settingsService.setServers(e),window.location.reload()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-server-selector"]],decls:1,vars:1,consts:[["id","server-selector"],["panelClass","server-panel","panelWidth","null",3,"selectionChange","formControl"],[1,"sticky"],[3,"ngSubmit","formGroup"],[1,"actions"],[1,"ml","align-start"],["matPrefix",""],["matInput","","type","text","autocomplete","off","formControlName","url"],["type","submit","mat-raised-button","","color","primary",1,"ml",3,"disabled"],[3,"value"]],template:function(n,o){n&1&&E(0,joe,22,13,"mat-form-field",0),n&2&&I(o.existMoreThanOneServer?0:-1)},dependencies:[he,ve,zs,yi,mn,tr,Si,ui,Ao,Bt,Cn,ao,ti,qn,ln,vt,q0,Co,Te],styles:[".actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly}.ml[_ngcontent-%COMP%]{margin-left:10px}.sticky[_ngcontent-%COMP%]{position:sticky;z-index:1;top:0;background-color:#fff;box-shadow:1px -2px 10px gray}mat-form-field[_ngcontent-%COMP%]{width:96%}"]})}}return t})();function Hoe(t,i){if(t&1&&(h(0,"mat-option",4),y(1),_()),t&2){let e=i.$implicit;D("value",e),p(),ne(" ",e," ")}}var TP=(()=>{class t{constructor(){this.settingsService=d(Xt),this.tenantSelector=new Hi}ngOnInit(){this.tenantSelector.setValue(this.settingsService.tenantIdentifier),this.tenants.length>1?this.tenantSelector.enable:this.tenantSelector.disable}get tenants(){return this.settingsService.tenantIdentifiers||[]}setTenantIdentifier(){this.settingsService.setTenantIdentifier(this.tenantSelector.value)}allowSelection(){return this.tenants.length>1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-tenant-selector"]],decls:9,vars:4,consts:[["id","tenant-selector",1,"flex-fill","align-center"],["matPrefix","",1,"m-r-10"],["icon","building","size","lg"],[1,"tenantselector",3,"selectionChange","formControl"],[3,"value"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"span",1),F(2,"fa-icon",2),_(),h(3,"mat-label"),y(4),S(5,"translate"),_(),h(6,"mat-select",3),N("selectionChange",function(){return o.setTenantIdentifier()}),Xe(7,Hoe,2,2,"mat-option",4,ht),_()()),n&2&&(p(4),T(k(5,2,"labels.inputs.Tenant")),p(2),D("formControl",o.tenantSelector),p(),Ze(o.tenants))},dependencies:[he,ve,mn,Si,Bt,Cn,qn,ln,q0,Yt,Te],styles:["#tenant-selector[_ngcontent-%COMP%], .tenantselector[_ngcontent-%COMP%]{width:14rem;margin-bottom:.6rem}"]})}}return t})();var PP={prefix:"fas",iconName:"fill-drip",icon:[576,512,[],"f576","M41.4 9.4C53.9-3.1 74.1-3.1 86.6 9.4L168 90.7l53.1-53.1c28.1-28.1 73.7-28.1 101.8 0L474.3 189.1c28.1 28.1 28.1 73.7 0 101.8L283.9 481.4c-37.5 37.5-98.3 37.5-135.8 0L30.6 363.9c-37.5-37.5-37.5-98.3 0-135.8L122.7 136 41.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm176 221.3L168 181.3 75.9 273.4c-4.2 4.2-7 9.3-8.4 14.6l319.2 0 42.3-42.3c3.1-3.1 3.1-8.2 0-11.3L277.7 82.9c-3.1-3.1-8.2-3.1-11.3 0L213.3 136l49.4 49.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0zM512 512c-35.3 0-64-28.7-64-64c0-25.2 32.6-79.6 51.2-108.7c6-9.4 19.5-9.4 25.5 0C543.4 368.4 576 422.8 576 448c0 35.3-28.7 64-64 64z"]};var Uoe={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},LP=Uoe,AP={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]};var $oe={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},zP=$oe;var Goe={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},RP=Goe;var Woe={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},NP=Woe;var qoe={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},FP=qoe;var VP={prefix:"fas",iconName:"laptop",icon:[640,512,[128187],"f109","M128 32C92.7 32 64 60.7 64 96l0 256 64 0 0-256 384 0 0 256 64 0 0-256c0-35.3-28.7-64-64-64L128 32zM19.2 384C8.6 384 0 392.6 0 403.2C0 445.6 34.4 480 76.8 480l486.4 0c42.4 0 76.8-34.4 76.8-76.8c0-10.6-8.6-19.2-19.2-19.2L19.2 384z"]};var Yoe={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},BP=Yoe;var Qoe={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32l448 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96L0 64C0 46.3 14.3 32 32 32zm0 128l448 0 0 256c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64l0-256zm128 80c0 8.8 7.2 16 16 16l160 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-160 0c-8.8 0-16 7.2-16 16z"]},jP=Qoe;var HP={prefix:"fas",iconName:"cloud",icon:[640,512,[9729],"f0c2","M0 336c0 79.5 64.5 144 144 144l368 0c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z"]};var UP={prefix:"fas",iconName:"table",icon:[512,512,[],"f0ce","M64 256l0-96 160 0 0 96L64 256zm0 64l160 0 0 96L64 416l0-96zm224 96l0-96 160 0 0 96-160 0zM448 256l-160 0 0-96 160 0 0 96zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]};var ib={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]};var Koe={prefix:"fas",iconName:"heart-crack",icon:[512,512,[128148,"heart-broken"],"f7a9","M119.4 44.1c23.3-3.9 46.8-1.9 68.6 5.3l49.8 77.5-75.4 75.4c-1.5 1.5-2.4 3.6-2.3 5.8s1 4.2 2.6 5.7l112 104c2.9 2.7 7.4 2.9 10.5 .3s3.8-7 1.7-10.4l-60.4-98.1 90.7-75.6c2.6-2.1 3.5-5.7 2.4-8.8L296.8 61.8c28.5-16.7 62.4-23.2 95.7-17.6C461.5 55.6 512 115.2 512 185.1l0 5.8c0 41.5-17.2 81.2-47.6 109.5L283.7 469.1c-7.5 7-17.4 10.9-27.7 10.9s-20.2-3.9-27.7-10.9L47.6 300.4C17.2 272.1 0 232.4 0 190.9l0-5.8c0-69.9 50.5-129.5 119.4-141z"]},$P=Koe;var Xoe={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},GP=Xoe;var WP={prefix:"fas",iconName:"sitemap",icon:[576,512,[],"f0e8","M208 80c0-26.5 21.5-48 48-48l64 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-8 0 0 40 152 0c30.9 0 56 25.1 56 56l0 32 8 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l8 0 0-32c0-4.4-3.6-8-8-8l-152 0 0 40 8 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l8 0 0-40-152 0c-4.4 0-8 3.6-8 8l0 32 8 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l8 0 0-32c0-30.9 25.1-56 56-56l152 0 0-40-8 0c-26.5 0-48-21.5-48-48l0-64z"]},Zoe={prefix:"fas",iconName:"circle-dollar-to-slot",icon:[512,512,["donate"],"f4b9","M326.7 403.7c-22.1 8-45.9 12.3-70.7 12.3s-48.7-4.4-70.7-12.3l-.8-.3c-30-11-56.8-28.7-78.6-51.4C70 314.6 48 263.9 48 208C48 93.1 141.1 0 256 0S464 93.1 464 208c0 55.9-22 106.6-57.9 144c-1 1-2 2.1-3 3.1c-21.4 21.4-47.4 38.1-76.3 48.6zM256 91.9c-11.1 0-20.1 9-20.1 20.1l0 6c-5.6 1.2-10.9 2.9-15.9 5.1c-15 6.8-27.9 19.4-31.1 37.7c-1.8 10.2-.8 20 3.4 29c4.2 8.8 10.7 15 17.3 19.5c11.6 7.9 26.9 12.5 38.6 16l2.2 .7c13.9 4.2 23.4 7.4 29.3 11.7c2.5 1.8 3.4 3.2 3.7 4c.3 .8 .9 2.6 .2 6.7c-.6 3.5-2.5 6.4-8 8.8c-6.1 2.6-16 3.9-28.8 1.9c-6-1-16.7-4.6-26.2-7.9c0 0 0 0 0 0s0 0 0 0s0 0 0 0c-2.2-.7-4.3-1.5-6.4-2.1c-10.5-3.5-21.8 2.2-25.3 12.7s2.2 21.8 12.7 25.3c1.2 .4 2.7 .9 4.4 1.5c7.9 2.7 20.3 6.9 29.8 9.1l0 6.4c0 11.1 9 20.1 20.1 20.1s20.1-9 20.1-20.1l0-5.5c5.3-1 10.5-2.5 15.4-4.6c15.7-6.7 28.4-19.7 31.6-38.7c1.8-10.4 1-20.3-3-29.4c-3.9-9-10.2-15.6-16.9-20.5c-12.2-8.8-28.3-13.7-40.4-17.4l-.8-.2c-14.2-4.3-23.8-7.3-29.9-11.4c-2.6-1.8-3.4-3-3.6-3.5c-.2-.3-.7-1.6-.1-5c.3-1.9 1.9-5.2 8.2-8.1c6.4-2.9 16.4-4.5 28.6-2.6c4.3 .7 17.9 3.3 21.7 4.3c10.7 2.8 21.6-3.5 24.5-14.2s-3.5-21.6-14.2-24.5c-4.4-1.2-14.4-3.2-21-4.4l0-6.3c0-11.1-9-20.1-20.1-20.1zM48 352l16 0c19.5 25.9 44 47.7 72.2 64L64 416l0 32 192 0 192 0 0-32-72.2 0c28.2-16.3 52.8-38.1 72.2-64l16 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48z"]},qP=Zoe;var YP={prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 64 0 368 0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48l0-16z"]};var QP={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]};var KP={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]};var Joe={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},XP=Joe;var ZP={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"]},JP={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]};var eL={prefix:"fas",iconName:"money-bill",icon:[576,512,[],"f0d6","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm64 320l-64 0 0-64c35.3 0 64 28.7 64 64zM64 192l0-64 64 0c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64l0 64-64 0zm64-192c-35.3 0-64-28.7-64-64l64 0 0 64zM288 160a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]};var tL={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]};var nL={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]};var iL={prefix:"fas",iconName:"location-arrow",icon:[448,512,[],"f124","M429.6 92.1c4.9-11.9 2.1-25.6-7-34.7s-22.8-11.9-34.7-7l-352 144c-14.2 5.8-22.2 20.8-19.3 35.8s16.1 25.8 31.4 25.8l176 0 0 176c0 15.3 10.8 28.4 25.8 31.4s30-5.1 35.8-19.3l144-352z"]};var ob={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]};var ere={prefix:"fas",iconName:"shuffle",icon:[512,512,[128256,"random"],"f074","M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-10.1 0-19.6 4.7-25.6 12.8L284 229.3 244 176l31.2-41.6C293.3 110.2 321.8 96 352 96l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6zM164 282.7L204 336l-31.2 41.6C154.7 401.8 126.2 416 96 416l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c10.1 0 19.6-4.7 25.6-12.8L164 282.7zm274.6 188c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c30.2 0 58.7 14.2 76.8 38.4L326.4 339.2c6 8.1 15.5 12.8 25.6 12.8l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z"]},oL=ere;var rL={prefix:"fas",iconName:"folder-open",icon:[576,512,[128194,128449,61717],"f07c","M88.7 223.8L0 375.8 0 96C0 60.7 28.7 32 64 32l117.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 28.3 18.7 45.3 18.7L416 96c35.3 0 64 28.7 64 64l0 32-336 0c-22.8 0-43.8 12.1-55.3 31.8zm27.6 16.1C122.1 230 132.6 224 144 224l400 0c11.5 0 22 6.1 27.7 16.1s5.7 22.2-.1 32.1l-112 192C453.9 474 443.4 480 432 480L32 480c-11.5 0-22-6.1-27.7-16.1s-5.7-22.2 .1-32.1l112-192z"]};var tre={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},aL=tre;var sL={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]};var nre={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},cL=nre;var lL={prefix:"fas",iconName:"id-badge",icon:[384,512,[],"f2c1","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zm96 320l64 0c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16L96 416c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM144 64l96 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-96 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};var dL={prefix:"fas",iconName:"user-tie",icon:[448,512,[],"f508","M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"]};var uL={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"]};var mL={prefix:"fas",iconName:"address-card",icon:[576,512,[62140,"contact-card","vcard"],"f2bb","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 256l64 0c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16L80 384c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-32l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};var ire={prefix:"fas",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128l-368 0zm79-217c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 392c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]};var pL=ire;var fL={prefix:"fas",iconName:"file-word",icon:[384,512,[],"f1c2","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z"]};var ore={prefix:"fas",iconName:"cloud-arrow-down",icon:[640,512,[62337,"cloud-download","cloud-download-alt"],"f0ed","M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128l-368 0zm79-167l80 80c9.4 9.4 24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-39 39L344 184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 134.1-39-39c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z"]};var hL=ore;var rre={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160 352 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l111.5 0c0 0 0 0 0 0l.4 0c17.7 0 32-14.3 32-32l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1L16 432c0 17.7 14.3 32 32 32s32-14.3 32-32l0-35.1 17.6 17.5c0 0 0 0 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.8c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352l34.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L48.4 288c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]};var gL=rre;var are={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8s0 0 0 0z"]},_L=are;var bL={prefix:"fas",iconName:"money-check",icon:[576,512,[],"f53c","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm48 160l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zM96 336c0-8.8 7.2-16 16-16l352 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-352 0c-8.8 0-16-7.2-16-16zM376 160l80 0c13.3 0 24 10.7 24 24l0 48c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-48c0-13.3 10.7-24 24-24z"]};var vL={prefix:"fas",iconName:"road",icon:[576,512,[128739],"f018","M256 32l-74.8 0c-27.1 0-51.3 17.1-60.3 42.6L3.1 407.2C1.1 413 0 419.2 0 425.4C0 455.5 24.5 480 54.6 480L256 480l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 64 201.4 0c30.2 0 54.6-24.5 54.6-54.6c0-6.2-1.1-12.4-3.1-18.2L455.1 74.6C446 49.1 421.9 32 394.8 32L320 32l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64zm64 192l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32z"]};var yL={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]};var CL={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]};var xL={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]};var ML={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]};var wL={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]};var sre={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},DL=sre;var SL={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]};var kL={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]};var EL={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]};var cre={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm0 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32L96 224c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},IL=cre;var lre={prefix:"fas",iconName:"hand-holding-dollar",icon:[576,512,["hand-holding-usd"],"f4c0","M312 24l0 10.5c6.4 1.2 12.6 2.7 18.2 4.2c12.8 3.4 20.4 16.6 17 29.4s-16.6 20.4-29.4 17c-10.9-2.9-21.1-4.9-30.2-5c-7.3-.1-14.7 1.7-19.4 4.4c-2.1 1.3-3.1 2.4-3.5 3c-.3 .5-.7 1.2-.7 2.8c0 .3 0 .5 0 .6c.2 .2 .9 1.2 3.3 2.6c5.8 3.5 14.4 6.2 27.4 10.1l.9 .3s0 0 0 0c11.1 3.3 25.9 7.8 37.9 15.3c13.7 8.6 26.1 22.9 26.4 44.9c.3 22.5-11.4 38.9-26.7 48.5c-6.7 4.1-13.9 7-21.3 8.8l0 10.6c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-11.4c-9.5-2.3-18.2-5.3-25.6-7.8c-2.1-.7-4.1-1.4-6-2c-12.6-4.2-19.4-17.8-15.2-30.4s17.8-19.4 30.4-15.2c2.6 .9 5 1.7 7.3 2.5c13.6 4.6 23.4 7.9 33.9 8.3c8 .3 15.1-1.6 19.2-4.1c1.9-1.2 2.8-2.2 3.2-2.9c.4-.6 .9-1.8 .8-4.1l0-.2c0-1 0-2.1-4-4.6c-5.7-3.6-14.3-6.4-27.1-10.3l-1.9-.6c-10.8-3.2-25-7.5-36.4-14.4c-13.5-8.1-26.5-22-26.6-44.1c-.1-22.9 12.9-38.6 27.7-47.4c6.4-3.8 13.3-6.4 20.2-8.2L264 24c0-13.3 10.7-24 24-24s24 10.7 24 24zM568.2 336.3c13.1 17.8 9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5L192 512 32 512c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l36.8 0 44.9-36c22.7-18.2 50.9-28 80-28l78.3 0 16 0 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0-16 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l120.6 0 119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5zM193.6 384c0 0 0 0 0 0l-.9 0c.3 0 .6 0 .9 0z"]},OL=lre;var TL={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]};var PL={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]};var LL={prefix:"fas",iconName:"table-cells",icon:[512,512,["th"],"f00a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm88 64l0 64-88 0 0-64 88 0zm56 0l88 0 0 64-88 0 0-64zm240 0l0 64-88 0 0-64 88 0zM64 224l88 0 0 64-88 0 0-64zm232 0l0 64-88 0 0-64 88 0zm64 0l88 0 0 64-88 0 0-64zM152 352l0 64-88 0 0-64 88 0zm56 0l88 0 0 64-88 0 0-64zm240 0l0 64-88 0 0-64 88 0z"]};var AL={prefix:"fas",iconName:"file-pdf",icon:[512,512,[],"f1c1","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]};var zL={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};var RL={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]};var NL={prefix:"fas",iconName:"calendar-check",icon:[448,512,[],"f274","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM329 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-95 95-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L329 305z"]};var dre={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]};var rb=dre;var ure={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm64 320l-64 0 0-64c35.3 0 64 28.7 64 64zM64 192l0-64 64 0c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64l0 64-64 0zm64-192c-35.3 0-64-28.7-64-64l64 0 0 64zM176 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0zm76-48c0 9.7 6.9 17.7 16 19.6l0 48.4-4 0c-11 0-20 9-20 20s9 20 20 20l24 0 24 0c11 0 20-9 20-20s-9-20-20-20l-4 0 0-68c0-11-9-20-20-20l-16 0c-11 0-20 9-20 20z"]},FL=ure;var VL={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]};var mre={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},BL=mre;var jL={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var HL={prefix:"fas",iconName:"keyboard",icon:[576,512,[9e3],"f11c","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm16 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80-176c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM160 336c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-224 0c-8.8 0-16-7.2-16-16l0-32zM272 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM368 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM352 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM464 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM448 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]};var UL={prefix:"fas",iconName:"piggy-bank",icon:[576,512,[],"f4d3","M400 96l0 .7c-5.3-.4-10.6-.7-16-.7L256 96c-16.5 0-32.5 2.1-47.8 6c-.1-2-.2-4-.2-6c0-53 43-96 96-96s96 43 96 96zm-16 32c3.5 0 7 .1 10.4 .3c4.2 .3 8.4 .7 12.6 1.3C424.6 109.1 450.8 96 480 96l11.5 0c10.4 0 18 9.8 15.5 19.9l-13.8 55.2c15.8 14.8 28.7 32.8 37.5 52.9l13.3 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-32 0c-9.1 12.1-19.9 22.9-32 32l0 64c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-32-128 0 0 32c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-64c-34.9-26.2-58.7-66.3-63.2-112L68 304c-37.6 0-68-30.4-68-68s30.4-68 68-68l4 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-4 0c-11 0-20 9-20 20s9 20 20 20l31.2 0c12.1-59.8 57.7-107.5 116.3-122.8c12.9-3.4 26.5-5.2 40.5-5.2l128 0zm64 136a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]};var $L={prefix:"fas",iconName:"coins",icon:[512,512,[],"f51e","M512 80c0 18-14.3 34.6-38.4 48c-29.1 16.1-72.5 27.5-122.3 30.9c-3.7-1.8-7.4-3.5-11.3-5C300.6 137.4 248.2 128 192 128c-8.3 0-16.4 .2-24.5 .6l-1.1-.6C142.3 114.6 128 98 128 80c0-44.2 86-80 192-80S512 35.8 512 80zM160.7 161.1c10.2-.7 20.7-1.1 31.3-1.1c62.2 0 117.4 12.3 152.5 31.4C369.3 204.9 384 221.7 384 240c0 4-.7 7.9-2.1 11.7c-4.6 13.2-17 25.3-35 35.5c0 0 0 0 0 0c-.1 .1-.3 .1-.4 .2c0 0 0 0 0 0s0 0 0 0c-.3 .2-.6 .3-.9 .5c-35 19.4-90.8 32-153.6 32c-59.6 0-112.9-11.3-148.2-29.1c-1.9-.9-3.7-1.9-5.5-2.9C14.3 274.6 0 258 0 240c0-34.8 53.4-64.5 128-75.4c10.5-1.5 21.4-2.7 32.7-3.5zM416 240c0-21.9-10.6-39.9-24.1-53.4c28.3-4.4 54.2-11.4 76.2-20.5c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 19.3-16.5 37.1-43.8 50.9c-14.6 7.4-32.4 13.7-52.4 18.5c.1-1.8 .2-3.5 .2-5.3zm-32 96c0 18-14.3 34.6-38.4 48c-1.8 1-3.6 1.9-5.5 2.9C304.9 404.7 251.6 416 192 416c-62.8 0-118.6-12.6-153.6-32C14.3 370.6 0 354 0 336l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 342.6 135.8 352 192 352s108.6-9.4 148.1-25.9c7.8-3.2 15.3-6.9 22.4-10.9c6.1-3.4 11.8-7.2 17.2-11.2c1.5-1.1 2.9-2.3 4.3-3.4l0 3.4 0 5.7 0 26.3zm32 0l0-32 0-25.9c19-4.2 36.5-9.5 52.1-16c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 10.5-5 21-14.9 30.9c-16.3 16.3-45 29.7-81.3 38.4c.1-1.7 .2-3.5 .2-5.3zM192 448c56.2 0 108.6-9.4 148.1-25.9c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 44.2-86 80-192 80S0 476.2 0 432l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 438.6 135.8 448 192 448z"]};var GL={prefix:"fas",iconName:"calculator",icon:[384,512,[128425],"f1ec","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zM96 64l192 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32l0-32c0-17.7 14.3-32 32-32zm32 160a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM96 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zM64 416c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32zM192 256a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm64-64a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM288 448a32 32 0 1 1 0-64 32 32 0 1 1 0 64z"]};var WL={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]};var pre={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},qL=pre;var fre={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},YL=fre;var QL={prefix:"fas",iconName:"stop",icon:[384,512,[9209],"f04d","M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]};var KL={prefix:"fas",iconName:"upload",icon:[512,512,[],"f093","M288 109.3L288 352c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-242.7-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 109.3zM64 352l128 0c0 35.3 28.7 64 64 64s64-28.7 64-64l128 0c35.3 0 64 28.7 64 64l0 32c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64l0-32c0-35.3 28.7-64 64-64zM432 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]};var XL={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]};var ZL={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]};var JL={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]};var eA={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};var hre={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},tA=hre;var nA={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]};var iA={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]};var gre={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},oA=gre;var rA={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.3-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16l192 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L96 144zM80 352c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L96 336c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l192 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L96 240z"]};var aA={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]};var sA={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]};var cA={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]};var _re={prefix:"fas",iconName:"list-check",icon:[512,512,["tasks"],"f0ae","M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113C-2.3 103.6-2.3 88.4 7 79s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},lA=_re;var bre={prefix:"fas",iconName:"circle-user",icon:[512,512,[62142,"user-circle"],"f2bd","M399 384.2C376.9 345.8 335.4 320 288 320l-64 0c-47.4 0-88.9 25.8-111 64.2c35.2 39.2 86.2 63.8 143 63.8s107.8-24.7 143-63.8zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256 16a72 72 0 1 0 0-144 72 72 0 1 0 0 144z"]},dA=bre,uA={prefix:"fas",iconName:"user-shield",icon:[640,512,[],"f505","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c1.8 0 3.5-.2 5.3-.5c-76.3-55.1-99.8-141-103.1-200.2c-16.1-4.8-33.1-7.3-50.7-7.3l-91.4 0zm308.8-78.3l-120 48C358 277.4 352 286.2 352 296c0 63.3 25.9 168.8 134.8 214.2c5.9 2.5 12.6 2.5 18.5 0C614.1 464.8 640 359.3 640 296c0-9.8-6-18.6-15.1-22.3l-120-48c-5.7-2.3-12.1-2.3-17.8 0zM591.4 312c-3.9 50.7-27.2 116.7-95.4 149.7l0-187.8L591.4 312z"]};var mA={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"]};var pA={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]};var vre={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]};var fA=vre;var hA={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]};var gA={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]};var yre={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},_A=yre;var bA={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48L0 464c0 26.5 21.5 48 48 48l96 0 0-80c0-26.5 21.5-48 48-48s48 21.5 48 48l0 80 96 0c26.5 0 48-21.5 48-48l0-416c0-26.5-21.5-48-48-48L48 0zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm112-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM80 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM272 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]};var vA={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 128-168 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l168 0 0 112c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM384 336l0-48 110.1 0-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39L384 336zm0-208l-128 0L256 0 384 128z"]};var yA={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32l0 32L48 64C21.5 64 0 85.5 0 112l0 48 448 0 0-48c0-26.5-21.5-48-48-48l-48 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L160 64l0-32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192L0 192 0 464c0 26.5 21.5 48 48 48l352 0c26.5 0 48-21.5 48-48l0-272z"]};var Cre={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},CA=Cre;var xA={prefix:"fas",iconName:"anchor",icon:[576,512,[9875],"f13d","M320 96a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm21.1 80C367 158.8 384 129.4 384 96c0-53-43-96-96-96s-96 43-96 96c0 33.4 17 62.8 42.9 80L224 176c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0 0 208-48 0c-53 0-96-43-96-96l0-6.1 7 7c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L97 263c-9.4-9.4-24.6-9.4-33.9 0L7 319c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l7-7 0 6.1c0 88.4 71.6 160 160 160l80 0 80 0c88.4 0 160-71.6 160-160l0-6.1 7 7c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-56-56c-9.4-9.4-24.6-9.4-33.9 0l-56 56c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l7-7 0 6.1c0 53-43 96-96 96l-48 0 0-208 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-10.9 0z"]};var MA={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M96 0C43 0 0 43 0 96L0 416c0 53 43 96 96 96l288 0 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-64c17.7 0 32-14.3 32-32l0-320c0-17.7-14.3-32-32-32L384 0 96 0zm0 384l256 0 0 64L96 448c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16zm16 48l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};var wA={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};var DA={prefix:"fas",iconName:"briefcase",icon:[512,512,[128188],"f0b1","M184 48l144 0c4.4 0 8 3.6 8 8l0 40L176 96l0-40c0-4.4 3.6-8 8-8zm-56 8l0 40L64 96C28.7 96 0 124.7 0 160l0 96 192 0 128 0 192 0 0-96c0-35.3-28.7-64-64-64l-64 0 0-40c0-30.9-25.1-56-56-56L184 0c-30.9 0-56 25.1-56 56zM512 288l-192 0 0 32c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-32L0 288 0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-128z"]};var xre={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},SA=xre;var Mre={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},kA=Mre;var wre={prefix:"fas",iconName:"note-sticky",icon:[448,512,[62026,"sticky-note"],"f249","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l224 0 0-112c0-26.5 21.5-48 48-48l112 0 0-224c0-35.3-28.7-64-64-64L64 32zM448 352l-45.3 0L336 352c-8.8 0-16 7.2-16 16l0 66.7 0 45.3 32-32 64-64 32-32z"]},EA=wre;var IA={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M160 0c17.7 0 32 14.3 32 32l0 35.7c1.6 .2 3.1 .4 4.7 .7c.4 .1 .7 .1 1.1 .2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4c1.8 3.9 5.5 8.3 12.8 13.2c16.3 10.7 41.3 17.7 73.7 26.3l2.9 .8c28.6 7.6 63.6 16.8 89.6 33.8c14.2 9.3 27.6 21.9 35.9 39.5c8.5 17.9 10.3 37.9 6.4 59.2c-6.9 38-33.1 63.4-65.6 76.7c-13.7 5.6-28.6 9.2-44.4 11l0 33.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-34.9c-.4-.1-.9-.1-1.3-.2l-.2 0s0 0 0 0c-24.4-3.8-64.5-14.3-91.5-26.3c-16.1-7.2-23.4-26.1-16.2-42.2s26.1-23.4 42.2-16.2c20.9 9.3 55.3 18.5 75.2 21.6c31.9 4.7 58.2 2 76-5.3c16.9-6.9 24.6-16.9 26.8-28.9c1.9-10.6 .4-16.7-1.3-20.4c-1.9-4-5.6-8.4-13-13.3c-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7s0 0 0 0C119.4 279.3 84.4 270 58.4 253c-14.2-9.3-27.5-22-35.8-39.6c-8.4-17.9-10.1-37.9-6.1-59.2C23.7 116 52.3 91.2 84.8 78.3c13.3-5.3 27.9-8.9 43.2-11L128 32c0-17.7 14.3-32 32-32z"]};var Dre={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M243.4 2.6l-224 96c-14 6-21.8 21-18.7 35.8S16.8 160 32 160l0 8c0 13.3 10.7 24 24 24l400 0c13.3 0 24-10.7 24-24l0-8c15.2 0 28.3-10.7 31.3-25.6s-4.8-29.9-18.7-35.8l-224-96c-8-3.4-17.2-3.4-25.2 0zM128 224l-64 0 0 196.3c-.6 .3-1.2 .7-1.8 1.1l-48 32c-11.7 7.8-17 22.4-12.9 35.9S17.9 512 32 512l448 0c14.1 0 26.5-9.2 30.6-22.7s-1.1-28.1-12.9-35.9l-48-32c-.6-.4-1.2-.7-1.8-1.1L448 224l-64 0 0 192-40 0 0-192-64 0 0 192-48 0 0-192-64 0 0 192-40 0 0-192zM256 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};var OA=Dre;var ab=(()=>{class t{constructor(){d(W9).addIcons(xA,jP,PL,xL,ob,ib,ZL,MA,DA,bA,GL,yA,RP,NL,sL,wA,cL,aA,hA,gA,wL,$P,jL,HP,BL,_A,LP,mA,IA,XP,RL,YL,GP,SA,kL,JP,JL,zP,AL,aL,fL,yL,vA,PP,OL,qL,nL,nA,QP,sA,iL,KP,ML,VL,NP,FL,bL,uL,BP,iA,pA,CA,DL,oL,vL,oA,_L,FP,WP,gL,UP,tA,zL,SL,kA,TL,rb,OA,dA,tL,ZP,uA,dL,WL,KL,hL,pL,fA,EA,QL,ob,XL,VP,qP,eL,CL,EL,YP,cA,eA,rL,lL,mL,HL,AP,lA,$L,UL,ib,rb,rA,LL,IL)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({imports:[YT]})}}return t})();function lb(t){let i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let o=0;o=n&&e<=o&&i>=r&&i<=a}function kre(t,i){let e=i.leftt.right,o=i.topt.bottom;return e||n||o||r}function Cu(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function AA(t,i,e,n){let{top:o,right:r,bottom:a,left:s,width:c,height:m}=t,f=c*i,v=m*i;return n>o-v&&ns-f&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:hb(e)})})}handleScroll(i){let e=jn(i),n=this.positions.get(e);if(!n)return null;let o=n.scrollPosition,r,a;if(e===this._document){let m=this.getViewportScrollPosition();r=m.top,a=m.left}else r=e.scrollTop,a=e.scrollLeft;let s=o.top-r,c=o.left-a;return this.positions.forEach((m,f)=>{m.clientRect&&e!==f&&e.contains(f)&&Cu(m.clientRect,s,c)}),o.top=r,o.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function qA(t,i){let e=t.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let n=i.createElement("div");return e.forEach(o=>n.appendChild(o)),n}function gb(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){let o=i[n];o?t.setProperty(n,o,e?.has(n)?"important":""):t.removeProperty(n)}return t}function P2(t,i){let e=i?"":"none";gb(t.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zA(t,i,e){gb(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function Yf(t,i){return i&&i!="none"?t+" "+i:t}function RA(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=xu(i.left,i.top)}function xu(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function NA(t){let i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function Ere(t){let i=getComputedStyle(t),e=sb(i,"transition-property"),n=e.find(s=>s==="transform"||s==="all");if(!n)return 0;let o=e.indexOf(n),r=sb(i,"transition-duration"),a=sb(i,"transition-delay");return NA(r[o])+NA(a[o])}function sb(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}var Ire=new Set(["position"]),ub=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(i,e,n,o,r,a,s,c,m,f){this._document=i,this._rootElement=e,this._direction=n,this._initialDomRect=o,this._previewTemplate=r,this._previewClass=a,this._pickupPositionOnPage=s,this._initialTransform=c,this._zIndex=m,this._renderer=f}attach(i){this._preview=this._createPreview(),i.appendChild(this._preview),FA(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(i){this._preview.style.transform=i}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(i){this._preview.classList.add(i)}getTransitionDuration(){return Ere(this._preview)}addEventListener(i,e){return this._renderer.listen(this._preview,i,e)}_createPreview(){let i=this._previewTemplate,e=this._previewClass,n=i?i.template:null,o;if(n&&i){let r=i.matchSize?this._initialDomRect:null,a=i.viewContainer.createEmbeddedView(n,i.context);a.detectChanges(),o=qA(a,this._document),this._previewEmbeddedView=a,i.matchSize?RA(o,r):o.style.transform=xu(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=lb(this._rootElement),RA(o,this._initialDomRect),this._initialTransform&&(o.style.transform=this._initialTransform);return gb(o.style,{"pointer-events":"none",margin:FA(o)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Ire),P2(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("popover","manual"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>o.classList.add(r)):o.classList.add(e)),o}};function FA(t){return"showPopover"in t}var Ore={passive:!0},VA={passive:!1},Tre={passive:!1,capture:!0},Pre=800,BA="cdk-drag-placeholder",jA=new Set(["position"]),mb=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=we(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new B;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Se.EMPTY;_pointerUpSubscription=Se.EMPTY;_scrollSubscription=Se.EMPTY;_resizeSubscription=Se.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(i){i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(e=>P2(e,i)))}_disabled=!1;beforeStarted=new B;started=new B;released=new B;ended=new B;entered=new B;exited=new B;dropped=new B;moved=this._moveEvents;data;constrainPosition;constructor(i,e,n,o,r,a,s){this._config=e,this._document=n,this._ngZone=o,this._viewportRuler=r,this._dragDropRegistry=a,this._renderer=s,this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new qf(n),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(n=>kn(n)),this._handles.forEach(n=>P2(n,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){let e=kn(i);if(e!==this._rootElement){this._removeRootElementListeners();let n=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"mousedown",this._pointerDown,VA),n.listen(e,"touchstart",this._pointerDown,Ore),n.listen(e,"dragstart",this._nativeDragStart,VA)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?kn(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&kre(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let i=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),n=0,o=0;e.lefti.right&&(n=i.right-e.right),e.topi.bottom&&(o=i.bottom-e.bottom);let r=this._activeTransform.x,a=this._activeTransform.y,s=r+n,c=a+o;this._rootElement.style.transform=xu(s,c),this._activeTransform={x:s,y:c},this._passiveTransform={x:s,y:c}}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),P2(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),P2(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){let i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){let i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=i=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,i)}else this.disabled||this._initializeDragSequence(this._rootElement,i)};_pointerMove=i=>{let e=this._getPointerPositionOnPage(i);if(!this._hasStartedDragging()){let o=Math.abs(e.x-this._pickupPositionOnPage.x),r=Math.abs(e.y-this._pickupPositionOnPage.y);if(o+r>=this._config.dragStartThreshold){let s=Date.now()>=this._dragStartTime+this._getDragStartDelay(i),c=this._dropContainer;if(!s){this._endDragSequence(i);return}(!c||!c.isDragging()&&!c.isReceiving())&&(i.cancelable&&i.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(i)))}return}i.cancelable&&i.preventDefault();let n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{let o=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,r=this._activeTransform;r.x=n.x-o.x+this._passiveTransform.x,r.y=n.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(r.x,r.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:i,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})};_pointerUp=i=>{this._endDragSequence(i)};_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){vu(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),n=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",Lre,Tre)}),n){let o=this._rootElement,r=o.parentNode,a=this._placeholder=this._createPlaceholderElement(),s=this._marker=this._marker||this._document.createComment("");r.insertBefore(s,o),this._initialTransform=o.style.transform||"",this._preview=new ub(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(r,e)),zA(o,!1,jA),this._document.body.appendChild(r.replaceChild(a,o)),this.started.next({source:this,event:i}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();let n=this.isDragging(),o=vu(e),r=!o&&e.button!==0,a=this._rootElement,s=jn(e),c=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+Pre>Date.now(),m=o?Qa(e):Ya(e);if(s&&s.draggable&&e.type==="mousedown"&&e.preventDefault(),n||r||c||m)return;if(this._handles.length){let x=a.style;this._rootElementTapHighlight=x.webkitTapHighlightColor||"",x.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(x=>this._updateOnScroll(x)),this._boundaryElement&&(this._boundaryRect=hb(this._boundaryElement));let f=this._previewTemplate;this._pickupPositionInElement=f&&f.template&&!f.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,i,e);let v=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:v.x,y:v.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){zA(this._rootElement,!0,jA),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,n=e.getItemIndex(this),o=this._getPointerPositionOnPage(i),r=this._getDragDistance(o),a=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:r,dropPoint:o,event:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:o,event:i}),e.drop(this,n,this._initialIndex,this._initialContainer,a,r,o,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:n,y:o}){let r=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{let a=this._dropContainer.getItemIndex(this),s=this._dropContainer.getItemAtIndex(a+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(r,this._dropContainer,s),this._dropContainer=r,this._dropContainer.enter(this,i,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,o),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let i=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{let o=s=>{(!s||this._preview&&jn(s)===this._preview.element&&s.propertyName==="transform")&&(a(),n(),clearTimeout(r))},r=setTimeout(o,e*1.5),a=this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){let i=this._placeholderTemplate,e=i?i.template:null,n;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),n=qA(this._placeholderRef,this._document)):n=lb(this._rootElement),n.style.pointerEvents="none",n.classList.add(BA),n}_getPointerPositionInElement(i,e,n){let o=e===this._rootElement?null:e,r=o?o.getBoundingClientRect():i,a=vu(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition(),c=a.pageX-r.left-s.left,m=a.pageY-r.top-s.top;return{x:r.left-i.left+c,y:r.top-i.top+m}}_getPointerPositionOnPage(i){let e=this._getViewportScrollPosition(),n=vu(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,o=n.pageX-e.left,r=n.pageY-e.top;if(this._ownerSVGElement){let a=this._ownerSVGElement.getScreenCTM();if(a){let s=this._ownerSVGElement.createSVGPoint();return s.x=o,s.y=r,s.matrixTransform(a.inverse())}}return{x:o,y:r}}_getConstrainedPointerPosition(i){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:n,y:o}=this.constrainPosition?this.constrainPosition(i,this,this._initialDomRect,this._pickupPositionInElement):i;if(this.lockAxis==="x"||e==="x"?o=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(n=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:r,y:a}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,s=this._boundaryRect,{width:c,height:m}=this._getPreviewRect(),f=s.top+a,v=s.bottom-(m-a),x=s.left+r,M=s.right-(c-r);n=HA(n,x,M),o=HA(o,f,v)}return{x:n,y:o}}_updatePointerDirectionDelta(i){let{x:e,y:n}=i,o=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),s=Math.abs(n-r.y);return a>this._config.pointerDirectionChangeThreshold&&(o.x=e>r.x?1:-1,r.x=e),s>this._config.pointerDirectionChangeThreshold&&(o.y=n>r.y?1:-1,r.y=n),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,P2(this._rootElement,i))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(i=>i()),this._rootElementCleanups=void 0}_applyRootElementTransform(i,e){let n=1/this.scale,o=xu(i*n,e*n),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=Yf(o,this._initialTransform)}_applyPreviewTransform(i,e){let n=this._previewTemplate?.template?void 0:this._initialTransform,o=xu(i,e);this._preview.setTransform(Yf(o,n))}_getDragDistance(i){let e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(i===0&&e===0||this.isDragging()||!this._boundaryElement)return;let n=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(o.width===0&&o.height===0||n.width===0&&n.height===0)return;let r=o.left-n.left,a=n.right-o.right,s=o.top-n.top,c=n.bottom-o.bottom;o.width>n.width?(r>0&&(i+=r),a>0&&(i-=a)):i=0,o.height>n.height?(s>0&&(e+=s),c>0&&(e-=c)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){let e=this.dragStartDelay;return typeof e=="number"?e:vu(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){let e=this._parentPositions.handleScroll(i);if(e){let n=jn(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&Cu(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Qc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){let n=this._previewContainer||"global";if(n==="parent")return i;if(n==="global"){let o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return kn(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=i=>{if(this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&i.preventDefault()}else this.disabled||i.preventDefault()};_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}_conditionallyInsertAnchor(i,e,n){if(i===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let o=this._anchor??=lb(this._placeholder);o.classList.remove(BA),o.classList.add("cdk-drag-anchor"),o.style.transform="",n?n.before(o):kn(e.element).appendChild(o)}}};function HA(t,i,e){return Math.max(i,Math.min(e,t))}function vu(t){return t.type[0]==="t"}function Lre(t){t.preventDefault()}function YA(t,i,e){let n=UA(i,t.length-1),o=UA(e,t.length-1);if(n===o)return;let r=t[n],a=o0)return null;let s=this.orientation==="horizontal",c=r.findIndex(Y=>Y.drag===i),m=r[a],f=r[c].clientRect,v=m.clientRect,x=c>a?1:-1,M=this._getItemOffsetPx(f,v,x),O=this._getSiblingOffsetPx(c,r,x),K=r.slice();return YA(r,c,a),r.forEach((Y,Z)=>{if(K[Z]===Y)return;let Oe=Y.drag===i,Mt=Oe?M:O,Et=Oe?i.getPlaceholderElement():Y.drag.getRootElement();Y.offset+=Mt;let Ht=Math.round(Y.offset*(1/Y.drag.scale));s?(Et.style.transform=Yf(`translate3d(${Ht}px, 0, 0)`,Y.initialTransform),Cu(Y.clientRect,0,Mt)):(Et.style.transform=Yf(`translate3d(0, ${Ht}px, 0)`,Y.initialTransform),Cu(Y.clientRect,Mt,0))}),this._previousSwap.overlaps=db(v,e,n),this._previousSwap.drag=m.drag,this._previousSwap.delta=s?o.x:o.y,{previousIndex:c,currentIndex:a}}enter(i,e,n,o){let r=o==null||o<0?this._getItemIndexFromPointerPosition(i,e,n):o,a=this._activeDraggables,s=a.indexOf(i),c=i.getPlaceholderElement(),m=a[r];if(m===i&&(m=a[r+1]),!m&&(r==null||r===-1||r-1&&a.splice(s,1),m&&!this._dragDropRegistry.isDragging(m)){let f=m.getRootElement();f.parentElement.insertBefore(c,f),a.splice(r,0,i)}else this._element.appendChild(c),a.push(i);c.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables?.forEach(i=>{let e=i.getRootElement();if(e){let n=this._itemPositions.find(o=>o.drag===i)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return this._getVisualItemPositions().findIndex(e=>e.drag===i)}getItemAtIndex(i){return this._getVisualItemPositions()[i]?.drag||null}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:n})=>{Cu(n,i,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(i){this._element=i}_cacheItemPositions(){let i=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:hb(n)}}).sort((e,n)=>i?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(i,e,n){let o=this.orientation==="horizontal",r=o?e.left-i.left:e.top-i.top;return n===-1&&(r+=o?e.width-i.width:e.height-i.height),r}_getSiblingOffsetPx(i,e,n){let o=this.orientation==="horizontal",r=e[i].clientRect,a=e[i+n*-1],s=r[o?"width":"height"]*n;if(a){let c=o?"left":"top",m=o?"right":"bottom";n===-1?s-=a.clientRect[c]-r[m]:s+=r[c]-a.clientRect[m]}return s}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;let n=this._itemPositions,o=this.orientation==="horizontal";if(n[0].drag!==this._activeDraggables[0]){let a=n[n.length-1].clientRect;return o?i>=a.right:e>=a.bottom}else{let a=n[0].clientRect;return o?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,n,o){let r=this.orientation==="horizontal",a=this._itemPositions.findIndex(({drag:s,clientRect:c})=>{if(s===i)return!1;if(o){let m=r?o.x:o.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&m===this._previousSwap.delta)return!1}return r?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&nc?f.after(m):f.before(m),YA(this._activeItems,c,r);let v=this._getRootNode().elementFromPoint(e,n);return a.deltaX=o.x,a.deltaY=o.y,a.drag=s,a.overlaps=f===v||f.contains(v),{previousIndex:c,currentIndex:r}}enter(i,e,n,o){let r=this._activeItems.indexOf(i);r>-1&&this._activeItems.splice(r,1);let a=o==null||o<0?this._getItemIndexFromPointerPosition(i,e,n):o;a===-1&&(a=this._getClosestItemIndexToPointer(i,e,n));let s=this._activeItems[a];s&&!this._dragDropRegistry.isDragging(s)?(this._activeItems.splice(a,0,i),s.getRootElement().before(i.getPlaceholderElement())):(this._activeItems.push(i),this._element.appendChild(i.getPlaceholderElement()))}withItems(i){this._activeItems=i.slice()}withSortPredicate(i){this._sortPredicate=i}reset(){let i=this._element,e=this._previousSwap;for(let n=this._relatedNodes.length-1;n>-1;n--){let[o,r]=this._relatedNodes[n];o.parentNode===i&&o.nextSibling!==r&&(r===null?i.appendChild(o):r.parentNode===i&&i.insertBefore(o,r))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(i){return this._activeItems.indexOf(i)}getItemAtIndex(i){return this._activeItems[i]||null}updateOnScroll(){this._activeItems.forEach(i=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(i){i!==this._element&&(this._element=i,this._rootNode=void 0)}_getItemIndexFromPointerPosition(i,e,n){let o=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(n)),r=o?this._activeItems.findIndex(a=>{let s=a.getRootElement();return o===s||s.contains(o)}):-1;return r===-1||!this._sortPredicate(r,i)?-1:r}_getRootNode(){return this._rootNode||(this._rootNode=Qc(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(i,e,n){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let o=1/0,r=-1;for(let a=0;a!0;sortPredicate=()=>!0;beforeStarted=new B;entered=new B;exited=new B;dropped=new B;sorted=new B;receivingStarted=new B;receivingStopped=new B;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=Se.EMPTY;_verticalScrollDirection=cr.NONE;_horizontalScrollDirection=po.NONE;_scrollNode;_stopScrollTimers=new B;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(i,e,n,o,r){this._dragDropRegistry=e,this._ngZone=o,this._viewportRuler=r;let a=this.element=kn(i);this._document=n,this.withOrientation("vertical").withElementContainer(a),e.registerDropContainer(this),this._parentPositions=new qf(n)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,n,o){this._draggingStarted(),o==null&&this.sortingDisabled&&(o=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,n,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,n,o,r,a,s,c={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:n,container:this,previousContainer:o,isPointerOverContainer:r,distance:a,dropPoint:s,event:c})}withItems(i){let e=this._draggables;return this._draggables=i,i.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>i.indexOf(o)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._direction=i,this._sortStrategy instanceof Qf&&(this._sortStrategy.direction=i),this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){if(i==="mixed")this._sortStrategy=new pb(this._document,this._dragDropRegistry);else{let e=new Qf(this._dragDropRegistry);e.direction=this._direction,e.orientation=i,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,n)=>this.sortPredicate(e,n,this)),this}withScrollableParents(i){let e=this._container;return this._scrollableElements=i.indexOf(e)===-1?[e,...i]:i.slice(),this}withElementContainer(i){if(i===this._container)return this;let e=kn(this.element),n=this._scrollableElements.indexOf(this._container),o=this._scrollableElements.indexOf(i);return n>-1&&this._scrollableElements.splice(n,1),o>-1&&this._scrollableElements.splice(o,1),this._sortStrategy&&this._sortStrategy.withElementContainer(i),this._cachedShadowRoot=null,this._scrollableElements.unshift(i),this._container=i,this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}getItemAtIndex(i){return this._isDragging?this._sortStrategy.getItemAtIndex(i):this._draggables[i]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,n,o){if(this.sortingDisabled||!this._domRect||!AA(this._domRect,$A,e,n))return;let r=this._sortStrategy.sort(i,e,n,o);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let n,o=cr.NONE,r=po.NONE;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||AA(a.clientRect,$A,i,e)&&([o,r]=Are(s,a.clientRect,this._direction,i,e),(o||r)&&(n=s))}),!o&&!r){let{width:a,height:s}=this._viewportRuler.getViewportSize(),c={width:a,height:s,top:0,right:a,bottom:s,left:0};o=KA(c,e),r=XA(c,i),n=window}n&&(o!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=r,this._scrollNode=n,(o||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let i=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let i=this._container.style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),A6(0,b3).pipe(ye(this._stopScrollTimers)).subscribe(()=>{let i=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===cr.UP?i.scrollBy(0,-e):this._verticalScrollDirection===cr.DOWN&&i.scrollBy(0,e),this._horizontalScrollDirection===po.LEFT?i.scrollBy(-e,0):this._horizontalScrollDirection===po.RIGHT&&i.scrollBy(e,0)})};_isOverContainer(i,e){return this._domRect!=null&&db(this._domRect,i,e)}_getSiblingContainerFromPosition(i,e,n){return this._siblings.find(o=>o._canReceive(i,e,n))}_canReceive(i,e,n){if(!this._domRect||!db(this._domRect,e,n)||!this.enterPredicate(i,this))return!1;let o=this._getShadowRoot().elementFromPoint(e,n);return o?o===this._container||this._container.contains(o):!1}_startReceiving(i,e){let n=this._activeSiblings;!n.has(i)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(n.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let i=Qc(this._container);this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}};function KA(t,i){let{top:e,bottom:n,height:o}=t,r=o*QA;return i>=e-r&&i<=e+r?cr.UP:i>=n-r&&i<=n+r?cr.DOWN:cr.NONE}function XA(t,i){let{left:e,right:n,width:o}=t,r=o*QA;return i>=e-r&&i<=e+r?po.LEFT:i>=n-r&&i<=n+r?po.RIGHT:po.NONE}function Are(t,i,e,n,o){let r=KA(i,o),a=XA(i,n),s=cr.NONE,c=po.NONE;if(r){let m=t.scrollTop;r===cr.UP?m>0&&(s=cr.UP):t.scrollHeight-m>t.clientHeight&&(s=cr.DOWN)}if(a){let m=t.scrollLeft;e==="rtl"?a===po.RIGHT?m<0&&(c=po.RIGHT):t.scrollWidth+m>t.clientWidth&&(c=po.LEFT):a===po.LEFT?m>0&&(c=po.LEFT):t.scrollWidth-m>t.clientWidth&&(c=po.RIGHT)}return[s,c]}var yu={capture:!0},cb={passive:!1,capture:!0},zre=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(n,o){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
-`],encapsulation:2,changeDetection:0})}return t})(),ZA=(()=>{class t{_ngZone=d(se);_document=d(Me);_styleLoader=d(at);_renderer=d(On).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new B;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=we([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new B;pointerUp=new B;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,cb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,n){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(zre),this._activeDragInstances.update(o=>[...o,e]),this._activeDragInstances().length===1)){let o=n.type.startsWith("touch"),r=s=>this.pointerUp.next(s),a=[["scroll",s=>this._scroll.next(s),yu],["selectstart",this._preventDefaultWhileDragging,cb]];o?a.push(["touchend",r,yu],["touchcancel",r,yu]):a.push(["mouseup",r,yu]),o||a.push(["mousemove",s=>this.pointerMove.next(s),cb]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=a.map(([s,c,m])=>this._renderer.listen(this._document,s,c,m))})}}stopDragging(e){this._activeDragInstances.update(n=>{let o=n.indexOf(e);return o>-1?(n.splice(o,1),[...n]):n}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let n=[this._scroll];return e&&e!==this._document&&n.push(new Fe(o=>this._ngZone.runOutsideAngular(()=>{let r=this._renderer.listen(e,"scroll",a=>{this._activeDragInstances().length&&o.next(a)},yu);return()=>{r()}}))),ft(...n)}registerDirectiveNode(e,n){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,n)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rre={dragStartThreshold:5,pointerDirectionChangeThreshold:5},_b=(()=>{class t{_document=d(Me);_ngZone=d(se);_viewportRuler=d(Gn);_dragDropRegistry=d(ZA);_renderer=d(On).createRenderer(null,null);constructor(){}createDrag(e,n=Rre){return new mb(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new fb(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GA=new L("CDK_DRAG_PARENT");var Nre=new L("CdkDragHandle");var JA=new L("CDK_DRAG_CONFIG"),ez=new L("CdkDropList"),eVe=(()=>{class t{element=d(Q);dropContainer=d(ez,{optional:!0,skipSelf:!0});_ngZone=d(se);_viewContainerRef=d(dt);_dir=d(bt,{optional:!0});_changeDetectorRef=d(xe);_selfHandle=d(Nre,{optional:!0,self:!0});_parentDrag=d(GA,{optional:!0,skipSelf:!0});_dragDropRegistry=d(ZA);_destroyed=new B;_handles=new ct([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new j;released=new j;ended=new j;entered=new j;exited=new j;dropped=new j;moved=new Fe(e=>{let n=this._dragRef.moved.pipe(me(o=>({source:this,pointerPosition:o.pointerPosition,event:o.event,delta:o.delta,distance:o.distance}))).subscribe(e);return()=>{n.unsubscribe()}});_injector=d(be);constructor(){let e=this.dropContainer,n=d(JA,{optional:!0}),o=d(_b);this._dragRef=o.createDrag(this.element,{dragStartThreshold:n&&n.dragStartThreshold!=null?n.dragStartThreshold:5,pointerDirectionChangeThreshold:n&&n.pointerDirectionChangeThreshold!=null?n.pointerDirectionChangeThreshold:5,zIndex:n?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),n&&this._assignDefaults(n),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(ye(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Ct(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let n=e.rootElementSelector,o=e.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let n=this._handles.getValue();n.push(e),this._handles.next(n)}_removeHandle(e){let n=this._handles.getValue(),o=n.indexOf(e);o>-1&&(n.splice(o,1),this._handles.next(n))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,n=e;this.rootElementSelector&&(n=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):kn(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let n=this._dir,o=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof o=="object"&&o?o:vn(o),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(Be(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let n=this.element.nativeElement.parentElement;for(;n;){let o=this._dragDropRegistry.getDragDirectiveForNode(n);if(o){e.withParent(o._dragRef);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){let{lockAxis:n,dragStartDelay:o,constrainPosition:r,previewClass:a,boundaryElement:s,draggingDisabled:c,rootElementSelector:m,previewContainer:f}=e;this.disabled=c??!1,this.dragStartDelay=o||0,this.lockAxis=n||null,r&&(this.constrainPosition=r),a&&(this.previewClass=a),s&&(this.boundaryElement=s),m&&(this.rootElementSelector=m),f&&(this.previewContainer=f)}_setupHandlesListener(){this._handles.pipe(Ot(e=>{let n=e.map(o=>o.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),lt(e=>ft(...e.map(n=>n._stateChanges.pipe(We(n))))),ye(this._destroyed)).subscribe(e=>{let n=this._dragRef,o=e.element.nativeElement;e.disabled?n.disableHandle(o):n.enableHandle(o)})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(n,o){n&2&&oe("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",H],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",ut]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[de([{provide:GA,useExisting:t}]),Re]})}return t})(),WA=new L("CdkDropListGroup");var tVe=(()=>{class t{element=d(Q);_changeDetectorRef=d(xe);_scrollDispatcher=d(ar);_dir=d(bt,{optional:!0});_group=d(WA,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new B;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=d(He).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new j;entered=new j;exited=new j;sorted=new j;_unsortedItems=new Set;constructor(){let e=d(_b),n=d(JA,{optional:!0});this._dropListRef=e.createDropList(this.element),this._dropListRef.data=this,n&&this._assignDefaults(n),this._dropListRef.enterPredicate=(o,r)=>this.enterPredicate(o.data,r.data),this._dropListRef.sortPredicate=(o,r,a)=>this.sortPredicate(o,r.data,a.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(n=>n._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let n=this._latestSortedRefs.indexOf(e._dragRef);n>-1&&(this._latestSortedRefs.splice(n,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(We(this._dir.value),ye(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{let n=Or(this.connectedTo).map(o=>{if(typeof o=="string"){let r=t._dropLists.find(a=>a.id===o);return r}return o});if(this._group&&this._group._items.forEach(o=>{n.indexOf(o)===-1&&n.push(o)}),!this._scrollableParentsResolved){let o=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(r=>r.getElementRef().nativeElement);this._dropListRef.withScrollableParents(o),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let o=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(o)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=vn(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(n.filter(o=>o&&o!==this).map(o=>o._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(n=>n._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),ft(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:n,draggingDisabled:o,sortingDisabled:r,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=o??!1,this.sortingDisabled=r??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",this.lockAxis=n||null}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(n,o){n&2&&(te("id",o.id),oe("cdk-drop-list-disabled",o.disabled)("cdk-drop-list-dragging",o._dropListRef.isDragging())("cdk-drop-list-receiving",o._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",H],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",H],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",H],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",H]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[de([{provide:WA,useValue:void 0},{provide:ez,useExisting:t}])]})}return t})();var tz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[_b],imports:[xi]})}return t})();var Fre=["*"];function Vre(t,i){t&1&&ae(0)}var bb=(()=>{class t{_elementRef=d(Q);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),vb=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var vl={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},yb=new L("STEPPER_GLOBAL_OPTIONS"),Kf=(()=>{class t{_stepperOptions;_stepper=d(L2);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=we(!1);interactedStream=new j;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=we(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=we(!0);optional=!1;get completed(){let e=this._completedOverride(),n=this._interacted();return e??(n&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=we(null);index=we(-1);isSelected=Zn(()=>this._stepper.selectedIndex===this.index());indicatorType=Zn(()=>{let e=this.isSelected(),n=this.completed,o=this._state()??vl.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?vl.ERROR:this._displayDefaultIndicatorType?!n||e?vl.NUMBER:r?vl.EDIT:vl.DONE:n&&!e?vl.DONE:n&&e?o:r&&e?vl.EDIT:o});isNavigable=Zn(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=we(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=d(yb,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-step"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,vb,5),Ee(r,vi,5)),n&2){let a;U(a=$())&&(o.stepLabel=a.first),U(a=$())&&(o._childForms=a)}},viewQuery:function(n,o){if(n&1&&ue(tt,7),n&2){let r;U(r=$())&&(o.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",H],optional:[2,"optional","optional",H],completed:[2,"completed","completed",H],hasError:[2,"hasError","hasError",H]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Re],ngContentSelectors:Fre,decls:1,vars:0,template:function(n,o){n&1&&(De(),Mr(0,Vre,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),L2=(()=>{class t{_dir=d(bt,{optional:!0});_changeDetectorRef=d(xe);_elementRef=d(Q);_destroyed=new B;_keyManager;_steps;steps=new In;_stepHeader;_sortedHeaders=new In;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=we(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new j;selectedIndexChange=new j;_groupId=d(He).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(We(this._steps),ye(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(n=>n._stepper===this)),this.steps.forEach((n,o)=>n.index.set(o)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(We(this._stepHeader),ye(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((n,o)=>n._elementRef.nativeElement.compareDocumentPosition(o._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Tr(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:re()).pipe(We(this._layoutDirection()),ye(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let n of e)n._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let n=e-this._selectedIndex();return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let n=this.steps.toArray(),o=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:o,selectedStep:n[e],previouslySelectedStep:n[o]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let n=St(e),o=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!n&&(o===32||o===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(n=>{let o=n.stepControl;return(o?o.invalid||o.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,n=no();return e===n||e.contains(n)}_isValidIndex(e){return e>-1&&(!this.steps||e{class t{_stepper=d(L2);type="submit";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,o){n&1&&N("click",function(){return o._stepper.next()}),n&2&&Lt("type",o.type)},inputs:{type:"type"}})}return t})(),iz=(()=>{class t{_stepper=d(L2);type="button";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,o){n&1&&N("click",function(){return o._stepper.previous()}),n&2&&Lt("type",o.type)},inputs:{type:"type"}})}return t})(),oz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[la]})}return t})();var Bre=["panel"],jre=["*"];function Hre(t,i){if(t&1&&(nt(0,"div",1,0),ae(2),rt()),t&2){let e=i.id,n=w();Tt(n._classList),oe("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),Lt("id",n.id),te("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var Cb=class{source;option;constructor(i,e){this.source=i,this.option=e}},rz=new L("mat-autocomplete-default-options",{providedIn:"root",factory:Ure});function Ure(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var XVe=(()=>{class t{_changeDetectorRef=d(xe);_elementRef=d(Q);_defaults=d(rz);_animationsDisabled=Ue();_activeOptionChanges=Se.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new j;opened=new j;closed=new j;optionActivated=new j;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=d(He).getId("mat-autocomplete-");inertGroups;constructor(){let e=d(je);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Zc(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new Cb(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,ln,5),Ee(r,g2,5)),n&2){let a;U(a=$())&&(o.options=a),U(a=$())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(ue(tt,7),ue(Bre,5)),n&2){let r;U(r=$())&&(o.template=r.first),U(r=$())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",H],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",H],requireSelection:[2,"requireSelection","requireSelection",H],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",H],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",H]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[de([{provide:h2,useExisting:t}])],ngContentSelectors:jre,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(n,o){n&1&&(De(),Mr(0,Hre,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}
-`],encapsulation:2,changeDetection:0})}return t})();var $re={provide:di,useExisting:kt(()=>qre),multi:!0};var az=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function Gre(t){let i=d(be);return()=>fi(i)}var Wre={provide:az,deps:[],useFactory:Gre},qre=(()=>{class t{_environmentInjector=d(Qt);_element=d(Q);_injector=d(be);_viewContainerRef=d(dt);_zone=d(se);_changeDetectorRef=d(xe);_dir=d(bt,{optional:!0});_formField=d(fa,{optional:!0,host:!0});_viewportRuler=d(Gn);_scrollStrategy=d(az);_renderer=d(Ke);_animationsDisabled=Ue();_defaults=d(rz,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Se.EMPTY;_breakpointObserver=d(Xc);_handsetLandscapeSubscription=Se.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new B;_overlayPanelClass=Or(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&Bs(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return ft(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ae(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ae(()=>this._overlayAttached)):re()).pipe(me(e=>e instanceof f2?e:null))}optionSelections=Ai(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(We(e),lt(()=>ft(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(lt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let n=r=>{let a=jn(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,c=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!c||!c.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=St(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let n=e.target,o=n.value;if(n.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return no()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(o=>{Ct(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(Ot(()=>this._positionStrategy.reapplyLastPosition()),td(0))??re();return ft(e,n).pipe(lt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Be(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),n._emitSelectEvent(o),this._element.nativeElement.focus()):n.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;q1(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Wn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=lo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(xp.HandsetLandscape).subscribe(r=>{r.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),n&&!n.hasAttached()&&(n.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!St(e)||e.keyCode===38&&St(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new co({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=zr(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&Bs(this._trackedModal,"aria-owns",n),q1(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Bs(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&N("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&te("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",H]},exportAs:["matAutocompleteTrigger"],features:[de([$re]),Re]})}return t})(),sz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Wre],imports:[Ei,C2,fe,xi,C2,fe]})}return t})();var Yre=["button"],Qre=["*"];function Kre(t,i){if(t&1&&(h(0,"div",2),F(1,"mat-pseudo-checkbox",6),_()),t&2){let e=w();p(),D("disabled",e.disabled)}}var cz=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Xre});function Xre(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var lz=new L("MatButtonToggleGroup"),Zre={provide:di,useExisting:kt(()=>Jre),multi:!0},Xf=class{source;value;constructor(i,e){this.source=i,this.value=e}},Jre=(()=>{class t{_changeDetector=d(xe);_dir=d(bt,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}_name=d(He).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(n=>n.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new j;get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new j;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let e=d(cz,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new uo(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex()}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_keydown(e){if(this.multiple||this.disabled||St(e))return;let o=e.target.id,r=this._buttonToggles.toArray().findIndex(s=>s.buttonId===o),a=null;switch(e.keyCode){case 32:case 13:a=this._buttonToggles.get(r)||null;break;case 38:a=this._getNextButton(r,-1);break;case 37:a=this._getNextButton(r,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(r,1);break;case 39:a=this._getNextButton(r,this.dir==="ltr"?1:-1);break;default:return}a&&(e.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(e){let n=new Xf(e,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(e,n,o=!1,r=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(e):this._selectionModel.deselect(e):r=!0,r?Promise.resolve().then(()=>this._updateModelValue(e,o)):this._updateModelValue(e,o)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>e.value!=null&&n===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;ethis._selectValue(o,n))):(this._clearSelection(),this._selectValue(e,n)),!this.multiple&&n.every(o=>o.tabIndex===-1)){for(let o of n)if(!o.disabled){o.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e,n){for(let o of n)if(o.value===e){o.checked=!0,this._selectionModel.select(o),this.multiple||(o.tabIndex=0);break}}_updateModelValue(e,n){n&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,dz,5),n&2){let a;U(a=$())&&(o._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&N("keydown",function(a){return o._keydown(a)}),n&2&&(te("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),oe("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",H],value:"value",multiple:[2,"multiple","multiple",H],disabled:[2,"disabled","disabled",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",H],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",H]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[de([Zre,{provide:lz,useExisting:t}])]})}return t})(),dz=(()=>{class t{_changeDetectorRef=d(xe);_elementRef=d(Q);_focusMonitor=d(sn);_idGenerator=d(He);_animationDisabled=Ue();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new j;constructor(){d(at).load(cn);let e=d(lz,{optional:!0}),n=d(new dn("tabindex"),{optional:!0})||"",o=d(cz,{optional:!0});this._tabIndex=we(parseInt(n)||0),this.buttonToggleGroup=e,this.appearance=o&&o.appearance?o.appearance:"standard",this.disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new Xf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&ue(Yre,5),n&2){let r;U(r=$())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&N("focus",function(){return o.focus()}),n&2&&(te("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),oe("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",H],appearance:"appearance",checked:[2,"checked","checked",H],disabled:[2,"disabled","disabled",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:Qre,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"button",1,0),N("click",function(){return G(r),W(o._onButtonClick())}),E(2,Kre,2,1,"div",2),h(3,"span",3),ae(4),_()(),F(5,"span",4)(6,"span",5)}if(n&2){let r=Nt(1);D("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),te("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),p(2),I(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),p(4),D("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[mi,rf],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}
-`],encapsulation:2,changeDetection:0})}return t})(),uz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi,dz,fe]})}return t})();var eae=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})});var mz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[ha,{provide:eae,useValue:{separatorKeyCodes:[13]}}],imports:[fe,wi,fe]})}return t})();var xb=new L("CdkAccordion"),pz=(()=>{class t{_stateChanges=new B;_openCloseAllActions=new B;id=d(He).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",H]},exportAs:["cdkAccordion"],features:[de([{provide:xb,useExisting:t}]),Re]})}return t})(),fz=(()=>{class t{accordion=d(xb,{optional:!0,skipSelf:!0});_changeDetectorRef=d(xe);_expansionDispatcher=d(ml);_openCloseAllSubscription=Se.EMPTY;closed=new j;opened=new j;destroyed=new j;expandedChange=new j;id=d(He).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=we(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,n)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===n&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",H],disabled:[2,"disabled","disabled",H]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[de([{provide:xb,useValue:void 0}])]})}return t})(),hz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var tae=["body"],nae=["bodyWrapper"],iae=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oae=["mat-expansion-panel-header","*","mat-action-row"];function rae(t,i){}var aae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],sae=["mat-panel-title","mat-panel-description","*"];function cae(t,i){t&1&&(nt(0,"span",1),$t(),nt(1,"svg",2),Tn(2,"path",3),rt()())}var Mb=new L("MAT_ACCORDION"),gz=new L("MAT_EXPANSION_PANEL"),lae=(()=>{class t{_template=d(tt);_expansionPanel=d(gz,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),_z=new L("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),dae=(()=>{class t extends fz{_viewContainerRef=d(dt);_animationsDisabled=Ue();_document=d(Me);_ngZone=d(se);_elementRef=d(Q);_renderer=d(Ke);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new j;afterCollapse=new j;_inputChanges=new B;accordion=d(Mb,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=d(He).getId("mat-expansion-panel-header-");constructor(){super();let e=d(_z,{optional:!0});this._expansionDispatcher=d(ml),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(We(null),Ae(()=>this.expanded&&!this._portal),Be(1)).subscribe(()=>{this._portal=new Wn(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:n})=>{e===this._bodyWrapper?.nativeElement&&n==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,lae,5),n&2){let a;U(a=$())&&(o._lazyContent=a.first)}},viewQuery:function(n,o){if(n&1&&(ue(tae,5),ue(nae,5)),n&2){let r;U(r=$())&&(o._body=r.first),U(r=$())&&(o._bodyWrapper=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(n,o){n&2&&oe("mat-expanded",o.expanded)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",H],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[de([{provide:Mb,useValue:void 0},{provide:gz,useExisting:t}]),ce,Re],ngContentSelectors:oae,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(De(iae),ae(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),ae(6,1),ot(7,rae,0,0,"ng-template",5),_(),ae(8,2),_()()),n&2&&(p(),te("inert",o.expanded?null:""),p(2),D("id",o.id),te("aria-labelledby",o._headerId),p(4),D("cdkPortalOutlet",o._portal))},dependencies:[Mi],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}
-`],encapsulation:2,changeDetection:0})}return t})();var uae=(()=>{class t{panel=d(dae,{host:!0});_element=d(Q);_focusMonitor=d(sn);_changeDetectorRef=d(xe);_parentChangeSubscription=Se.EMPTY;constructor(){d(at).load(cn);let e=this.panel,n=d(_z,{optional:!0}),o=d(new dn("tabindex"),{optional:!0}),r=e.accordion?e.accordion._stateChanges.pipe(Ae(a=>!!(a.hideToggle||a.togglePosition))):Sn;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=ft(e.opened,e.closed,r,e._inputChanges.pipe(Ae(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Ae(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),n&&(this.expandedHeight=n.expandedHeight,this.collapsedHeight=n.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:St(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(n,o){n&1&&N("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),n&2&&(te("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),At("height",o._getHeaderHeight()),oe("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)]},ngContentSelectors:sae,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,o){n&1&&(De(aae),nt(0,"span",0),ae(1),ae(2,1),ae(3,2),rt(),E(4,cae,3,0,"span",1)),n&2&&(oe("mat-content-hide-toggle",!o._showToggle()),p(4),I(o._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}
-`],encapsulation:2,changeDetection:0})}return t})(),fje=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return t})(),hje=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),gje=(()=>{class t extends pz{_keyManager;_ownHeaders=new In;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(We(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Tr(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-accordion"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,uae,5),n&2){let a;U(a=$())&&(o._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-accordion-multi",o.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",H],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[de([{provide:Mb,useExisting:t}]),ce]})}return t})(),bz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,hz,so]})}return t})();var vz=["*"],yz=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}
-`,mae=["unscopedContent"],pae=["text"],fae=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],hae=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var gae=new L("ListOption"),_ae=(()=>{class t{_elementRef=d(Q);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),bae=(()=>{class t{_elementRef=d(Q);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),vae=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),Cz=(()=>{class t{_listOption=d(gae,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,hostVars:4,hostBindings:function(n,o){n&2&&oe("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())}})}return t})(),yae=(()=>{class t extends Cz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ce]})}return t})(),Cae=(()=>{class t extends Cz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ce]})}return t})(),xae=new L("MAT_LIST_CONFIG"),Mu=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=yn(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(yn(e))}_disabled=we(!1);_defaultOptions=d(xae,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,hostVars:1,hostBindings:function(n,o){n&2&&te("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),Mae=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_listBase=d(Mu,{optional:!0});_platform=d(je);_hostElement;_isButtonElement;_noopAnimations=Ue();_avatars;_icons;set lines(e){this._explicitLines=vn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=yn(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(yn(e))}_disabled=we(!1);_subscriptions=new Se;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(at).load(cn);let e=d(nl,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new tl(this,this._ngZone,this._hostElement,this._platform,d(be)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(ft(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let n=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",n===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",n===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&n===1;o.classList.toggle("mdc-list-item__primary-text",r),o.classList.toggle("mdc-list-item__secondary-text",!r)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,contentQueries:function(n,o,r){if(n&1&&(Ee(r,yae,4),Ee(r,Cae,4)),n&2){let a;U(a=$())&&(o._avatars=a),U(a=$())&&(o._icons=a)}},hostVars:4,hostBindings:function(n,o){n&2&&(te("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),oe("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var Bje=(()=>{class t extends Mu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[de([{provide:Mu,useExisting:t}]),ce],ngContentSelectors:vz,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[yz],encapsulation:2,changeDetection:0})}return t})(),jje=(()=>{class t extends Mae{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=yn(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,bae,5),Ee(r,_ae,5),Ee(r,vae,5)),n&2){let a;U(a=$())&&(o._lines=a),U(a=$())&&(o._titles=a),U(a=$())&&(o._meta=a)}},viewQuery:function(n,o){if(n&1&&(ue(mae,5),ue(pae,5)),n&2){let r;U(r=$())&&(o._unscopedContent=r.first),U(r=$())&&(o._itemText=r.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(n,o){n&2&&(te("aria-current",o._getAriaCurrent()),oe("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[ce],ngContentSelectors:hae,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(n,o){if(n&1){let r=le();De(fae),ae(0),h(1,"span",1),ae(2,1),ae(3,2),h(4,"span",2,0),N("cdkObserveContent",function(){return G(r),W(o._updateItemLines(!0))}),ae(6,3),_()(),ae(7,4),ae(8,5),F(9,"div",3)}},dependencies:[M0],encapsulation:2,changeDetection:0})}return t})();var Hje=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]})}return t})();var Uje=(()=>{class t extends Mu{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[de([{provide:Mu,useExisting:t}]),ce],ngContentSelectors:vz,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[yz],encapsulation:2,changeDetection:0})}return t})();var xz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[U1,fe,wi,pf,zf]})}return t})();function wae(t,i){if(t&1&&(h(0,"mat-option",17),y(1),_()),t&2){let e=i.$implicit;D("value",e),p(),ne(" ",e," ")}}function Dae(t,i){if(t&1){let e=le();h(0,"mat-form-field",14)(1,"mat-select",16,0),N("selectionChange",function(o){G(e);let r=w(2);return W(r._changePageSize(o.value))}),Xe(3,wae,2,2,"mat-option",17,ht),_(),h(5,"div",18),N("click",function(){G(e);let o=Nt(2);return W(o.open())}),_()()}if(t&2){let e=w(2);D("appearance",e._formFieldAppearance)("color",e.color),p(),D("value",e.pageSize)("disabled",e.disabled),C1("aria-labelledby",e._pageSizeLabelId),D("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),p(2),Ze(e._displayedPageSizeOptions)}}function Sae(t,i){if(t&1&&(h(0,"div",15),y(1),_()),t&2){let e=w(2);p(),T(e.pageSize)}}function kae(t,i){if(t&1&&(h(0,"div",3)(1,"div",13),y(2),_(),E(3,Dae,6,7,"mat-form-field",14),E(4,Sae,2,1,"div",15),_()),t&2){let e=w();p(),te("id",e._pageSizeLabelId),p(),ne(" ",e._intl.itemsPerPageLabel," "),p(),I(e._displayedPageSizeOptions.length>1?3:-1),p(),I(e._displayedPageSizeOptions.length<=1?4:-1)}}function Eae(t,i){if(t&1){let e=le();h(0,"button",19),N("click",function(){G(e);let o=w();return W(o._buttonClicked(0,o._previousButtonsDisabled()))}),$t(),h(1,"svg",8),F(2,"path",20),_()()}if(t&2){let e=w();D("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),te("aria-label",e._intl.firstPageLabel)}}function Iae(t,i){if(t&1){let e=le();h(0,"button",21),N("click",function(){G(e);let o=w();return W(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),$t(),h(1,"svg",8),F(2,"path",22),_()()}if(t&2){let e=w();D("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),te("aria-label",e._intl.lastPageLabel)}}var Zf=(()=>{class t{changes=new B;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=d(Zf);_changeDetectorRef=d(xe);_formFieldAppearance;_pageSizeLabelId=d(He).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new pr(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ut(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new j;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=d(Lae,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ut],length:[2,"length","length",ut],pageSize:[2,"pageSize","pageSize",ut],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",H],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",H],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",H]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2),E(2,kae,5,4,"div",3),h(3,"div",4)(4,"div",5),y(5),_(),E(6,Eae,3,5,"button",6),h(7,"button",7),N("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),$t(),h(8,"svg",8),F(9,"path",9),_()(),Ko(),h(10,"button",10),N("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),$t(),h(11,"svg",8),F(12,"path",11),_()(),E(13,Iae,3,5,"button",12),_()()()),n&2&&(p(2),I(o.hidePageSize?-1:2),p(3),ne(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),p(),I(o.showFirstLastButtons?6:-1),p(),D("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),te("aria-label",o._intl.previousPageLabel),p(3),D("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),te("aria-label",o._intl.nextPageLabel),p(3),I(o.showFirstLastButtons?13:-1))},dependencies:[Bt,qn,ln,ni,mo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
-`],encapsulation:2,changeDetection:0})}return t})(),Mz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Tae],imports:[_a,eu,hu,wb]})}return t})();var Aae=["determinateSpinner"];function zae(t,i){if(t&1&&($t(),h(0,"svg",11),F(1,"circle",12),_()),t&2){let e=w();te("viewBox",e._viewBox()),p(),At("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),te("r",e._circleRadius())}}var Rae=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:Nae});function Nae(){return{diameter:wz}}var wz=100,Fae=10,Dz=(()=>{class t{_elementRef=d(Q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=d(Rae),n=k0(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=wz;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Fae)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&ue(Aae,5),n&2){let r;U(r=$())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(te("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tt("mat-"+o.color),At("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),oe("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ut],diameter:[2,"diameter","diameter",ut],strokeWidth:[2,"strokeWidth","strokeWidth",ut]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,o){if(n&1&&(ot(0,zae,2,8,"ng-template",null,0,ks),h(2,"div",2,1),$t(),h(4,"svg",3),F(5,"circle",4),_()(),Ko(),h(6,"div",5)(7,"div",6)(8,"div",7),Vt(9,8),_(),h(10,"div",9),Vt(11,8),_(),h(12,"div",10),Vt(13,8),_()()()),n&2){let r=Nt(1);p(4),te("viewBox",o._viewBox()),p(),At("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),te("r",o._circleRadius()),p(4),D("ngTemplateOutlet",r),p(2),D("ngTemplateOutlet",r),p(2),D("ngTemplateOutlet",r)}},dependencies:[Es],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}
-`],encapsulation:2,changeDetection:0})}return t})();var Sz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();function Vae(t,i){t&1&&Tn(0,"div",2)}var Bae=new L("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var IHe=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_changeDetectorRef=d(xe);_renderer=d(Ke);_cleanupTransitionEnd;constructor(){let e=k0(),n=d(Bae,{optional:!0});this._isNoopAnimation=e==="di-disabled",e==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),n&&(n.color&&(this.color=this._defaultColor=n.color),this.mode=n.mode||this.mode)}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";get value(){return this._value}set value(e){this._value=kz(e||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=kz(e||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new j;get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}_transitionendHandler=e=>{this.animationEnd.observers.length===0||!e.target||!e.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(n,o){n&2&&(te("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),Tt("mat-"+o.color),oe("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",ut],bufferValue:[2,"bufferValue","bufferValue",ut],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(n,o){n&1&&(nt(0,"div",0),Tn(1,"div",1),E(2,Vae,1,0,"div",2),rt(),nt(3,"div",3),Tn(4,"span",4),rt(),nt(5,"div",5),Tn(6,"span",4),rt()),n&2&&(p(),At("flex-basis",o._getBufferBarFlexBasis()),p(),I(o.mode==="buffer"?2:-1),p(),At("transform",o._getPrimaryBarTransform()))},styles:[`.mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}
-`],encapsulation:2,changeDetection:0})}return t})();function kz(t,i=0,e=100){return Math.max(i,Math.min(e,t))}var Ez=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();var jae=["input"],Hae=["formField"],Uae=["*"],Jf=class{source;value;constructor(i,e){this.source=i,this.value=e}},$ae={provide:di,useExisting:kt(()=>qae),multi:!0},Iz=new L("MatRadioGroup"),Gae=new L("mat-radio-default-options",{providedIn:"root",factory:Wae});function Wae(){return{color:"accent",disabledInteractive:!1}}var qae=(()=>{class t{_changeDetector=d(xe);_value=null;_name=d(He).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new j;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(n=>{n.checked=this.value===n.value,n.checked&&(this._selected=n)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Jf(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-radio-group"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Oz,5),n&2){let a;U(a=$())&&(o._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",H],required:[2,"required","required",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[de([$ae,{provide:Iz,useExisting:t}])]})}return t})(),Oz=(()=>{class t{_elementRef=d(Q);_changeDetector=d(xe);_focusMonitor=d(sn);_radioDispatcher=d(ml);_defaultOptions=d(Gae,{optional:!0});_ngZone=d(se);_renderer=d(Ke);_uniqueId=d(He).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new j;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ue();_injector=d(be);constructor(){d(at).load(cn);let e=d(Iz,{optional:!0}),n=d(new dn("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,n&&(this.tabIndex=ut(n,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,n)=>{e!==this.id&&n===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Jf(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,n;if(!e||!e.selected||this.disabled?n=this.tabIndex:n=e.selected===this?this.tabIndex:-1,n!==this._previousTabIndex){let o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",n+""),this._previousTabIndex=n,Ct(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===o&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===o&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-radio-button"]],viewQuery:function(n,o){if(n&1&&(ue(jae,5),ue(Hae,7,Q)),n&2){let r;U(r=$())&&(o._inputElement=r.first),U(r=$())&&(o._rippleTrigger=r.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(n,o){n&1&&N("focus",function(){return o._inputElement.nativeElement.focus()}),n&2&&(te("id",o.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),oe("mat-primary",o.color==="primary")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("mat-mdc-radio-checked",o.checked)("mat-mdc-radio-disabled",o.disabled)("mat-mdc-radio-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],checked:[2,"checked","checked",H],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",H],required:[2,"required","required",H],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Uae,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",2,0)(2,"div",3)(3,"div",4),N("click",function(s){return G(r),W(o._onTouchTargetClick(s))}),_(),h(4,"input",5,1),N("change",function(s){return G(r),W(o._onInputInteraction(s))}),_(),h(6,"div",6),F(7,"div",7)(8,"div",8),_(),h(9,"div",9),F(10,"div",10),_()(),h(11,"label",11),ae(12),_()()}n&2&&(D("labelPosition",o.labelPosition),p(2),oe("mdc-radio--disabled",o.disabled),p(2),D("id",o.inputId)("checked",o.checked)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),te("name",o.name)("value",o.value)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),p(5),D("matRippleTrigger",o._rippleTrigger.nativeElement)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),p(2),D("for",o.inputId))},dependencies:[mi,Q1],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
-`],encapsulation:2,changeDetection:0})}return t})(),Tz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi,Oz,fe]})}return t})();var th=["*"],Yae=["content"],Qae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Kae=["mat-drawer","mat-drawer-content","*"];function Xae(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){G(e);let o=w();return W(o._onBackdropClicked())}),_()}if(t&2){let e=w();oe("mat-drawer-shown",e._isShowingBackdrop())}}function Zae(t,i){t&1&&(h(0,"mat-drawer-content"),ae(1,2),_())}var Jae=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ese=["mat-sidenav","mat-sidenav-content","*"];function tse(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){G(e);let o=w();return W(o._onBackdropClicked())}),_()}if(t&2){let e=w();oe("mat-drawer-shown",e._isShowingBackdrop())}}function nse(t,i){t&1&&(h(0,"mat-sidenav-content"),ae(1,2),_())}var ise=`.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}
-`;var ose=new L("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:rse}),kb=new L("MAT_DRAWER_CONTAINER");function rse(){return!1}var eh=(()=>{class t extends Ar{_platform=d(je);_changeDetectorRef=d(xe);_container=d(Sb);constructor(){let e=d(Q),n=d(ar),o=d(se);super(e,n,o)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:n}=this._container;return e!=null&&e.mode!=="over"&&e.opened||n!=null&&n.mode!=="over"&&n.opened}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(n,o){n&2&&(At("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),oe("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[de([{provide:Ar,useExisting:t}]),ce],ngContentSelectors:th,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Db=(()=>{class t{_elementRef=d(Q);_focusTrapFactory=d($1);_focusMonitor=d(sn);_platform=d(je);_ngZone=d(se);_renderer=d(Ke);_interactivityChecker=d(Vs);_doc=d(Me);_container=d(kb,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=yn(e)}_disableClose=!1;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=yn(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(yn(e))}_opened=we(!1);_openedVia;_animationStarted=new B;_animationEnd=new B;openedChange=new j(!0);_openedStream=this.openedChange.pipe(Ae(e=>e),me(()=>{}));openedStart=this._animationStarted.pipe(Ae(()=>this.opened),Gl(void 0));_closedStream=this.openedChange.pipe(Ae(e=>!e),me(()=>{}));closedStart=this._animationStarted.pipe(Ae(()=>!this.opened),Gl(void 0));_destroyed=new B;onPositionChanged=new j;_content;_modeChanged=new B;_injector=d(be);_changeDetectorRef=d(xe);constructor(){this.openedChange.pipe(ye(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;ed(e,"keydown").pipe(Ae(n=>n.keyCode===27&&!this.disableClose&&!St(n)),ye(this._destroyed)).subscribe(n=>this._ngZone.run(()=>{this.close(),n.stopPropagation(),n.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":Ct(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);let o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,n,o){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&n&&this._restoreFocus(o),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Be(1)).subscribe(a=>r(a?"open":"close"))}))}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let n=this._elementRef.nativeElement,o=n.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,n)),o.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}_handleTransitionEvent=e=>{let n=this._elementRef.nativeElement;e.target===n&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-drawer"]],viewQuery:function(n,o){if(n&1&&ue(Yae,5),n&2){let r;U(r=$())&&(o._content=r.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(n,o){n&2&&(te("align",null)("tabIndex",o.mode!=="side"?"-1":null),At("visibility",!o._container&&!o.opened?"hidden":null),oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:th,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(De(),h(0,"div",1,0),ae(2),_())},dependencies:[Ar],encapsulation:2,changeDetection:0})}return t})(),Sb=(()=>{class t{_dir=d(bt,{optional:!0});_element=d(Q);_ngZone=d(se);_changeDetectorRef=d(xe);_animationDisabled=Ue();_transitionsEnabled=!1;_allDrawers;_drawers=new In;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=yn(e)}_autosize=d(ose);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:yn(e)}_backdropOverride;backdropClick=new j;_start;_end;_left;_right;_destroyed=new B;_doCheckSubject=new B;_contentMargins={left:null,right:null};_contentMarginChanges=new B;get scrollable(){return this._userContent||this._content}_injector=d(be);constructor(){let e=d(je),n=d(Gn);this._dir?.change.pipe(ye(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),n.change().pipe(ye(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe(We(this._allDrawers),ye(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(We(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(hr(10),ye(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();e+=o,n-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")n+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();n+=o,e-=o}}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(ye(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(ye(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(ye(this._drawers.changes)).subscribe(()=>{Ct({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(ye(ft(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let n=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?n.add(o):n.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,eh,5),Ee(r,Db,5)),n&2){let a;U(a=$())&&(o._content=a.first),U(a=$())&&(o._allDrawers=a)}},viewQuery:function(n,o){if(n&1&&ue(eh,5),n&2){let r;U(r=$())&&(o._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[de([{provide:kb,useExisting:t}])],ngContentSelectors:Kae,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(De(Qae),E(0,Xae,1,2,"div",0),ae(1),ae(2,1),E(3,Zae,2,0,"mat-drawer-content")),n&2&&(I(o.hasBackdrop?0:-1),p(3),I(o._content?-1:3))},dependencies:[eh],styles:[`.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}
-`],encapsulation:2,changeDetection:0})}return t})(),Pz=(()=>{class t extends eh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[de([{provide:Ar,useExisting:t}]),ce],ngContentSelectors:th,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),ase=(()=>{class t extends Db{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=yn(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=vn(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=vn(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(n,o){n&2&&(te("tabIndex",o.mode!=="side"?"-1":null)("align",null),At("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[de([{provide:Db,useExisting:t}]),ce],ngContentSelectors:th,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(De(),h(0,"div",1,0),ae(2),_())},dependencies:[Ar],encapsulation:2,changeDetection:0})}return t})(),bUe=(()=>{class t extends Sb{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,Pz,5),Ee(r,ase,5)),n&2){let a;U(a=$())&&(o._content=a.first),U(a=$())&&(o._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[de([{provide:kb,useExisting:t},{provide:Sb,useExisting:t}]),ce],ngContentSelectors:ese,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(De(Jae),E(0,tse,1,2,"div",0),ae(1),ae(2,1),E(3,nse,2,0,"mat-sidenav-content")),n&2&&(I(o.hasBackdrop?0:-1),p(3),I(o._content?-1:3))},dependencies:[Pz],styles:[ise],encapsulation:2,changeDetection:0})}return t})(),Lz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,xi,xi,fe]})}return t})();var sse=["switch"],cse=["*"];function lse(t,i){t&1&&(h(0,"span",11),$t(),h(1,"svg",13),F(2,"path",14),_(),h(3,"svg",15),F(4,"path",16),_()())}var dse=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),nh=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},use=(()=>{class t{_elementRef=d(Q);_focusMonitor=d(sn);_changeDetectorRef=d(xe);defaults=d(dse);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new nh(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ue();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new j;toggleChange=new j;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){d(at).load(cn);let e=d(new dn("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=d(He).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new nh(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&ue(sse,5),n&2){let r;U(r=$())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(Lt("id",o.id),te("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tt(o.color?"mat-"+o.color:""),oe("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",H],color:"color",disabled:[2,"disabled","disabled",H],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],checked:[2,"checked","checked",H],hideIcon:[2,"hideIcon","hideIcon",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[de([{provide:di,useExisting:kt(()=>t),multi:!0},{provide:Ci,useExisting:t,multi:!0}]),Re],ngContentSelectors:cse,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",1)(1,"button",2,0),N("click",function(){return G(r),W(o._handleClick())}),F(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),F(8,"span",8),_(),h(9,"span",9),F(10,"span",10),_(),E(11,lse,5,0,"span",11),_()()(),h(12,"label",12),N("click",function(s){return G(r),W(s.stopPropagation())}),ae(13),_()()}if(n&2){let r=Nt(2);D("labelPosition",o.labelPosition),p(),oe("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled)("mat-mdc-slide-toggle-disabled-interactive",o.disabledInteractive),D("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),te("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),p(9),D("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),I(o.hideIcon?-1:11),p(),D("for",o.buttonId),te("id",o._labelId)}},dependencies:[mi,Q1],styles:[`.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
-`],encapsulation:2,changeDetection:0})}return t})(),Az=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[use,fe,fe]})}return t})();var zz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi]})}return t})();function mse(t,i){if(t&1){let e=le();h(0,"div",1)(1,"button",2),N("click",function(){G(e);let o=w();return W(o.action())}),y(2),_()()}if(t&2){let e=w();p(2),ne(" ",e.data.action," ")}}var pse=["label"];function fse(t,i){}var hse=Math.pow(2,31)-1,wu=class{_overlayRef;instance;containerInstance;_afterDismissed=new B;_afterOpened=new B;_onAction=new B;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,hse))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Rz=new L("MatSnackBarData"),A2=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},gse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),_se=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),bse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),Nz=(()=>{class t{snackBarRef=d(wu);data=d(Rz);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(h(0,"div",0),y(1),_(),E(2,mse,3,1,"div",1)),n&2&&(p(),ne(" ",o.data.message,`
+}`;function xT(){var t=fT,i=hT,e=$e.cssPrefix,n=$e.replacementClass,o=mne;if(e!==t||n!==i){var r=new RegExp("\\.".concat(t,"\\-"),"g"),a=new RegExp("\\--".concat(t,"\\-"),"g"),s=new RegExp("\\.".concat(i),"g");o=o.replace(r,".".concat(e,"-")).replace(a,"--".concat(e,"-")).replace(s,".".concat(n))}return o}var CO=!1;function f9(){$e.autoAddCss&&!CO&&(sne(xT()),CO=!0)}var pne={mixout:function(){return{dom:{css:xT,insertCss:f9}}},hooks:function(){return{beforeDOMElementCreation:function(){f9()},beforeI2svg:function(){f9()}}}},ns=nc||{};ns[ts]||(ns[ts]={});ns[ts].styles||(ns[ts].styles={});ns[ts].hooks||(ns[ts].hooks={});ns[ts].shims||(ns[ts].shims=[]);var Nr=ns[ts],MT=[],wT=function(){Mn.removeEventListener("DOMContentLoaded",wT),kf=1,MT.map(function(i){return i()})},kf=!1;is&&(kf=(Mn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Mn.readyState),kf||Mn.addEventListener("DOMContentLoaded",wT));function fne(t){is&&(kf?setTimeout(t,0):MT.push(t))}function fu(t){var i=t.tag,e=t.attributes,n=e===void 0?{}:e,o=t.children,r=o===void 0?[]:o;return typeof t=="string"?CT(t):"<".concat(i," ").concat(lne(n),">").concat(r.map(fu).join(""),"")}function xO(t,i,e){if(t&&t[i]&&t[i][e])return{prefix:i,iconName:e,icon:t[i][e]}}var hne=function(i,e){return function(n,o,r,a){return i.call(e,n,o,r,a)}},h9=function(i,e,n,o){var r=Object.keys(i),a=r.length,s=o!==void 0?hne(e,o):e,c,m,f;for(n===void 0?(c=1,f=i[r[0]]):(c=0,f=n);c2&&arguments[2]!==void 0?arguments[2]:{},n=e.skipHooks,o=n===void 0?!1:n,r=MO(i);typeof Nr.hooks.addPack=="function"&&!o?Nr.hooks.addPack(t,MO(i)):Nr.styles[t]=_e(_e({},Nr.styles[t]||{}),r),t==="fas"&&D9("fa",i)}var uu=Nr.styles,gne=Nr.shims,ST=Object.keys(N9),_ne=ST.reduce(function(t,i){return t[i]=Object.keys(N9[i]),t},{}),B9=null,kT={},ET={},IT={},OT={},TT={};function bne(t){return~ine.indexOf(t)}function vne(t,i){var e=i.split("-"),n=e[0],o=e.slice(1).join("-");return n===t&&o!==""&&!bne(o)?o:null}var PT=function(){var i=function(r){return h9(uu,function(a,s,c){return a[c]=h9(s,r,{}),a},{})};kT=i(function(o,r,a){if(r[3]&&(o[r[3]]=a),r[2]){var s=r[2].filter(function(c){return typeof c=="number"});s.forEach(function(c){o[c.toString(16)]=a})}return o}),ET=i(function(o,r,a){if(o[a]=a,r[2]){var s=r[2].filter(function(c){return typeof c=="string"});s.forEach(function(c){o[c]=a})}return o}),TT=i(function(o,r,a){var s=r[2];return o[a]=a,s.forEach(function(c){o[c]=a}),o});var e="far"in uu||$e.autoFetchSvg,n=h9(gne,function(o,r){var a=r[0],s=r[1],c=r[2];return s==="far"&&!e&&(s="fas"),typeof a=="string"&&(o.names[a]={prefix:s,iconName:c}),typeof a=="number"&&(o.unicodes[a.toString(16)]={prefix:s,iconName:c}),o},{names:{},unicodes:{}});IT=n.names,OT=n.unicodes,B9=Tf($e.styleDefault,{family:$e.familyDefault})};ane(function(t){B9=Tf(t.styleDefault,{family:$e.familyDefault})});PT();function j9(t,i){return(kT[t]||{})[i]}function yne(t,i){return(ET[t]||{})[i]}function fl(t,i){return(TT[t]||{})[i]}function LT(t){return IT[t]||{prefix:null,iconName:null}}function Cne(t){var i=OT[t],e=j9("fas",t);return i||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}function ic(){return B9}var AT=function(){return{prefix:null,iconName:null,rest:[]}};function xne(t){var i=Ii,e=ST.reduce(function(n,o){return n[o]="".concat($e.cssPrefix,"-").concat(o),n},{});return dT.forEach(function(n){(t.includes(e[n])||t.some(function(o){return _ne[n].includes(o)}))&&(i=n)}),i}function Tf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.family,n=e===void 0?Ii:e,o=Zte[n][t];if(n===mu&&!t)return"fad";var r=bO[n][t]||bO[n][o],a=t in Nr.styles?t:null,s=r||a||null;return s}function Mne(t){var i=[],e=null;return t.forEach(function(n){var o=vne($e.cssPrefix,n);o?e=o:n&&i.push(n)}),{iconName:e,rest:i}}function wO(t){return t.sort().filter(function(i,e,n){return n.indexOf(i)===e})}var DO=mT.concat(uT);function Pf(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.skipLookups,n=e===void 0?!1:e,o=null,r=wO(t.filter(function(w){return DO.includes(w)})),a=wO(t.filter(function(w){return!DO.includes(w)})),s=r.filter(function(w){return o=w,!qO.includes(w)}),c=If(s,1),m=c[0],f=m===void 0?null:m,v=xne(r),x=_e(_e({},Mne(a)),{},{prefix:Tf(f,{family:v})});return _e(_e(_e({},x),kne({values:t,family:v,styles:uu,config:$e,canonical:x,givenPrefix:o})),wne(n,o,x))}function wne(t,i,e){var n=e.prefix,o=e.iconName;if(t||!n||!o)return{prefix:n,iconName:o};var r=i==="fa"?LT(o):{},a=fl(n,o);return o=r.iconName||a||o,n=r.prefix||n,n==="far"&&!uu.far&&uu.fas&&!$e.autoFetchSvg&&(n="fas"),{prefix:n,iconName:o}}var Dne=dT.filter(function(t){return t!==Ii||t!==mu}),Sne=Object.keys(v9).filter(function(t){return t!==Ii}).map(function(t){return Object.keys(v9[t])}).flat();function kne(t){var i=t.values,e=t.family,n=t.canonical,o=t.givenPrefix,r=o===void 0?"":o,a=t.styles,s=a===void 0?{}:a,c=t.config,m=c===void 0?{}:c,f=e===mu,v=i.includes("fa-duotone")||i.includes("fad"),x=m.familyDefault==="duotone",w=n.prefix==="fad"||n.prefix==="fa-duotone";if(!f&&(v||x||w)&&(n.prefix="fad"),(i.includes("fa-brands")||i.includes("fab"))&&(n.prefix="fab"),!n.prefix&&Dne.includes(e)){var O=Object.keys(s).find(function(Y){return Sne.includes(Y)});if(O||m.autoFetchSvg){var K=$ee.get(e).defaultShortPrefixId;n.prefix=K,n.iconName=fl(n.prefix,n.iconName)||n.iconName}}return(n.prefix==="fa"||r==="fa")&&(n.prefix=ic()||"fas"),n}var Ene=(function(){function t(){pee(this,t),this.definitions={}}return fee(t,[{key:"add",value:function(){for(var e=this,n=arguments.length,o=new Array(n),r=0;r0&&f.forEach(function(v){typeof v=="string"&&(e[s][v]=m)}),e[s][c]=m}),e}}])})(),SO=[],S2={},k2={},Ine=Object.keys(k2);function One(t,i){var e=i.mixoutsTo;return SO=t,S2={},Object.keys(k2).forEach(function(n){Ine.indexOf(n)===-1&&delete k2[n]}),SO.forEach(function(n){var o=n.mixout?n.mixout():{};if(Object.keys(o).forEach(function(a){typeof o[a]=="function"&&(e[a]=o[a]),Sf(o[a])==="object"&&Object.keys(o[a]).forEach(function(s){e[a]||(e[a]={}),e[a][s]=o[a][s]})}),n.hooks){var r=n.hooks();Object.keys(r).forEach(function(a){S2[a]||(S2[a]=[]),S2[a].push(r[a])})}n.provides&&n.provides(k2)}),e}function S9(t,i){for(var e=arguments.length,n=new Array(e>2?e-2:0),o=2;o1?i-1:0),n=1;n0&&arguments[0]!==void 0?arguments[0]:{};return is?(gl("beforeI2svg",i),oc("pseudoElements2svg",i),oc("i2svg",i)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.autoReplaceSvgRoot;$e.autoReplaceSvg===!1&&($e.autoReplaceSvg=!0),$e.observeMutations=!0,fne(function(){Ane({autoReplaceSvgRoot:e}),gl("watch",i)})}},Lne={icon:function(i){if(i===null)return null;if(Sf(i)==="object"&&i.prefix&&i.iconName)return{prefix:i.prefix,iconName:fl(i.prefix,i.iconName)||i.iconName};if(Array.isArray(i)&&i.length===2){var e=i[1].indexOf("fa-")===0?i[1].slice(3):i[1],n=Tf(i[0]);return{prefix:n,iconName:fl(n,e)||e}}if(typeof i=="string"&&(i.indexOf("".concat($e.cssPrefix,"-"))>-1||i.match(Jte))){var o=Pf(i.split(" "),{skipLookups:!0});return{prefix:o.prefix||ic(),iconName:fl(o.prefix,o.iconName)||o.iconName}}if(typeof i=="string"){var r=ic();return{prefix:r,iconName:fl(r,i)||i}}}},Vo={noAuto:Tne,config:$e,dom:Pne,parse:Lne,library:zT,findIconDefinition:k9,toHtml:fu},Ane=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=i.autoReplaceSvgRoot,n=e===void 0?Mn:e;(Object.keys(Nr.styles).length>0||$e.autoFetchSvg)&&is&&$e.autoReplaceSvg&&Vo.dom.i2svg({node:n})};function Lf(t,i){return Object.defineProperty(t,"abstract",{get:i}),Object.defineProperty(t,"html",{get:function(){return t.abstract.map(function(n){return fu(n)})}}),Object.defineProperty(t,"node",{get:function(){if(is){var n=Mn.createElement("div");return n.innerHTML=t.html,n.children}}}),t}function zne(t){var i=t.children,e=t.main,n=t.mask,o=t.attributes,r=t.styles,a=t.transform;if(V9(a)&&e.found&&!n.found){var s=e.width,c=e.height,m={x:s/c/2,y:.5};o.style=Of(_e(_e({},r),{},{"transform-origin":"".concat(m.x+a.x/16,"em ").concat(m.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:i}]}function Rne(t){var i=t.prefix,e=t.iconName,n=t.children,o=t.attributes,r=t.symbol,a=r===!0?"".concat(i,"-").concat($e.cssPrefix,"-").concat(e):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:_e(_e({},o),{},{id:a}),children:n}]}]}function Nne(t){var i=["aria-label","aria-labelledby","title","role"];return i.some(function(e){return e in t})}function H9(t){var i=t.icons,e=i.main,n=i.mask,o=t.prefix,r=t.iconName,a=t.transform,s=t.symbol,c=t.maskId,m=t.extra,f=t.watchable,v=f===void 0?!1:f,x=n.found?n:e,w=x.width,O=x.height,K=[$e.replacementClass,r?"".concat($e.cssPrefix,"-").concat(r):""].filter(function(Ht){return m.classes.indexOf(Ht)===-1}).filter(function(Ht){return Ht!==""||!!Ht}).concat(m.classes).join(" "),Y={children:[],attributes:_e(_e({},m.attributes),{},{"data-prefix":o,"data-icon":r,class:K,role:m.attributes.role||"img",viewBox:"0 0 ".concat(w," ").concat(O)})};!Nne(m.attributes)&&!m.attributes["aria-hidden"]&&(Y.attributes["aria-hidden"]="true"),v&&(Y.attributes[hl]="");var Z=_e(_e({},Y),{},{prefix:o,iconName:r,main:e,mask:n,maskId:c,transform:a,symbol:s,styles:_e({},m.styles)}),Oe=n.found&&e.found?oc("generateAbstractMask",Z)||{children:[],attributes:{}}:oc("generateAbstractIcon",Z)||{children:[],attributes:{}},Mt=Oe.children,Et=Oe.attributes;return Z.children=Mt,Z.attributes=Et,s?Rne(Z):zne(Z)}function kO(t){var i=t.content,e=t.width,n=t.height,o=t.transform,r=t.extra,a=t.watchable,s=a===void 0?!1:a,c=_e(_e({},r.attributes),{},{class:r.classes.join(" ")});s&&(c[hl]="");var m=_e({},r.styles);V9(o)&&(m.transform=une({transform:o,startCentered:!0,width:e,height:n}),m["-webkit-transform"]=m.transform);var f=Of(m);f.length>0&&(c.style=f);var v=[];return v.push({tag:"span",attributes:c,children:[i]}),v}function Fne(t){var i=t.content,e=t.extra,n=_e(_e({},e.attributes),{},{class:e.classes.join(" ")}),o=Of(e.styles);o.length>0&&(n.style=o);var r=[];return r.push({tag:"span",attributes:n,children:[i]}),r}var g9=Nr.styles;function E9(t){var i=t[0],e=t[1],n=t.slice(4),o=If(n,1),r=o[0],a=null;return Array.isArray(r)?a={tag:"g",attributes:{class:"".concat($e.cssPrefix,"-").concat(p9.GROUP)},children:[{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(p9.SECONDARY),fill:"currentColor",d:r[0]}},{tag:"path",attributes:{class:"".concat($e.cssPrefix,"-").concat(p9.PRIMARY),fill:"currentColor",d:r[1]}}]}:a={tag:"path",attributes:{fill:"currentColor",d:r}},{found:!0,width:i,height:e,icon:a}}var Vne={found:!1,width:512,height:512};function Bne(t,i){!_T&&!$e.showMissingIcons&&t&&console.error('Icon with name "'.concat(t,'" and prefix "').concat(i,'" is missing.'))}function I9(t,i){var e=i;return i==="fa"&&$e.styleDefault!==null&&(i=ic()),new Promise(function(n,o){if(e==="fa"){var r=LT(t)||{};t=r.iconName||t,i=r.prefix||i}if(t&&i&&g9[i]&&g9[i][t]){var a=g9[i][t];return n(E9(a))}Bne(t,i),n(_e(_e({},Vne),{},{icon:$e.showMissingIcons&&t?oc("missingIconAbstract")||{}:{}}))})}var EO=function(){},O9=$e.measurePerformance&&Cf&&Cf.mark&&Cf.measure?Cf:{mark:EO,measure:EO},cu='FA "7.1.0"',jne=function(i){return O9.mark("".concat(cu," ").concat(i," begins")),function(){return RT(i)}},RT=function(i){O9.mark("".concat(cu," ").concat(i," ends")),O9.measure("".concat(cu," ").concat(i),"".concat(cu," ").concat(i," begins"),"".concat(cu," ").concat(i," ends"))},U9={begin:jne,end:RT},wf=function(){};function IO(t){var i=t.getAttribute?t.getAttribute(hl):null;return typeof i=="string"}function Hne(t){var i=t.getAttribute?t.getAttribute(z9):null,e=t.getAttribute?t.getAttribute(R9):null;return i&&e}function Une(t){return t&&t.classList&&t.classList.contains&&t.classList.contains($e.replacementClass)}function $ne(){if($e.autoReplaceSvg===!0)return Df.replace;var t=Df[$e.autoReplaceSvg];return t||Df.replace}function Gne(t){return Mn.createElementNS("http://www.w3.org/2000/svg",t)}function Wne(t){return Mn.createElement(t)}function NT(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=i.ceFn,n=e===void 0?t.tag==="svg"?Gne:Wne:e;if(typeof t=="string")return Mn.createTextNode(t);var o=n(t.tag);Object.keys(t.attributes||[]).forEach(function(a){o.setAttribute(a,t.attributes[a])});var r=t.children||[];return r.forEach(function(a){o.appendChild(NT(a,{ceFn:n}))}),o}function qne(t){var i=" ".concat(t.outerHTML," ");return i="".concat(i,"Font Awesome fontawesome.com "),i}var Df={replace:function(i){var e=i[0];if(e.parentNode)if(i[1].forEach(function(o){e.parentNode.insertBefore(NT(o),e)}),e.getAttribute(hl)===null&&$e.keepOriginalSource){var n=Mn.createComment(qne(e));e.parentNode.replaceChild(n,e)}else e.remove()},nest:function(i){var e=i[0],n=i[1];if(~F9(e).indexOf($e.replacementClass))return Df.replace(i);var o=new RegExp("".concat($e.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var r=n[0].attributes.class.split(" ").reduce(function(s,c){return c===$e.replacementClass||c.match(o)?s.toSvg.push(c):s.toNode.push(c),s},{toNode:[],toSvg:[]});n[0].attributes.class=r.toSvg.join(" "),r.toNode.length===0?e.removeAttribute("class"):e.setAttribute("class",r.toNode.join(" "))}var a=n.map(function(s){return fu(s)}).join(`
+`);e.setAttribute(hl,""),e.innerHTML=a}};function OO(t){t()}function FT(t,i){var e=typeof i=="function"?i:wf;if(t.length===0)e();else{var n=OO;$e.mutateApproach===Kte&&(n=nc.requestAnimationFrame||OO),n(function(){var o=$ne(),r=U9.begin("mutate");t.map(o),r(),e()})}}var $9=!1;function VT(){$9=!0}function T9(){$9=!1}var Ef=null;function TO(t){if(fO&&$e.observeMutations){var i=t.treeCallback,e=i===void 0?wf:i,n=t.nodeCallback,o=n===void 0?wf:n,r=t.pseudoElementsCallback,a=r===void 0?wf:r,s=t.observeMutationsRoot,c=s===void 0?Mn:s;Ef=new fO(function(m){if(!$9){var f=ic();I2(m).forEach(function(v){if(v.type==="childList"&&v.addedNodes.length>0&&!IO(v.addedNodes[0])&&($e.searchPseudoElements&&a(v.target),e(v.target)),v.type==="attributes"&&v.target.parentNode&&$e.searchPseudoElements&&a([v.target],!0),v.type==="attributes"&&IO(v.target)&&~nne.indexOf(v.attributeName))if(v.attributeName==="class"&&Hne(v.target)){var x=Pf(F9(v.target)),w=x.prefix,O=x.iconName;v.target.setAttribute(z9,w||f),O&&v.target.setAttribute(R9,O)}else Une(v.target)&&o(v.target)})}}),is&&Ef.observe(c,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Yne(){Ef&&Ef.disconnect()}function Qne(t){var i=t.getAttribute("style"),e=[];return i&&(e=i.split(";").reduce(function(n,o){var r=o.split(":"),a=r[0],s=r.slice(1);return a&&s.length>0&&(n[a]=s.join(":").trim()),n},{})),e}function Kne(t){var i=t.getAttribute("data-prefix"),e=t.getAttribute("data-icon"),n=t.innerText!==void 0?t.innerText.trim():"",o=Pf(F9(t));return o.prefix||(o.prefix=ic()),i&&e&&(o.prefix=i,o.iconName=e),o.iconName&&o.prefix||(o.prefix&&n.length>0&&(o.iconName=yne(o.prefix,t.innerText)||j9(o.prefix,DT(t.innerText))),!o.iconName&&$e.autoFetchSvg&&t.firstChild&&t.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=t.firstChild.data)),o}function Xne(t){var i=I2(t.attributes).reduce(function(e,n){return e.name!=="class"&&e.name!=="style"&&(e[n.name]=n.value),e},{});return i}function Zne(){return{iconName:null,prefix:null,transform:ba,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function PO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},e=Kne(t),n=e.iconName,o=e.prefix,r=e.rest,a=Xne(t),s=S9("parseNodeAttributes",{},t),c=i.styleParser?Qne(t):[];return _e({iconName:n,prefix:o,transform:ba,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:c,attributes:a}},s)}var Jne=Nr.styles;function BT(t){var i=$e.autoReplaceSvg==="nest"?PO(t,{styleParser:!1}):PO(t);return~i.extra.classes.indexOf(vT)?oc("generateLayersText",t,i):oc("generateSvgReplacementMutation",t,i)}function eie(){return[].concat(Fr(uT),Fr(mT))}function LO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!is)return Promise.resolve();var e=Mn.documentElement.classList,n=function(v){return e.add("".concat(_O,"-").concat(v))},o=function(v){return e.remove("".concat(_O,"-").concat(v))},r=$e.autoFetchSvg?eie():qO.concat(Object.keys(Jne));r.includes("fa")||r.push("fa");var a=[".".concat(vT,":not([").concat(hl,"])")].concat(r.map(function(f){return".".concat(f,":not([").concat(hl,"])")})).join(", ");if(a.length===0)return Promise.resolve();var s=[];try{s=I2(t.querySelectorAll(a))}catch{}if(s.length>0)n("pending"),o("complete");else return Promise.resolve();var c=U9.begin("onTree"),m=s.reduce(function(f,v){try{var x=BT(v);x&&f.push(x)}catch(w){_T||w.name==="MissingIcon"&&console.error(w)}return f},[]);return new Promise(function(f,v){Promise.all(m).then(function(x){FT(x,function(){n("active"),n("complete"),o("pending"),typeof i=="function"&&i(),c(),f()})}).catch(function(x){c(),v(x)})})}function tie(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;BT(t).then(function(e){e&&FT([e],i)})}function nie(t){return function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=(i||{}).icon?i:k9(i||{}),o=e.mask;return o&&(o=(o||{}).icon?o:k9(o||{})),t(n,_e(_e({},e),{},{mask:o}))}}var iie=function(i){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=e.transform,o=n===void 0?ba:n,r=e.symbol,a=r===void 0?!1:r,s=e.mask,c=s===void 0?null:s,m=e.maskId,f=m===void 0?null:m,v=e.classes,x=v===void 0?[]:v,w=e.attributes,O=w===void 0?{}:w,K=e.styles,Y=K===void 0?{}:K;if(i){var Z=i.prefix,Oe=i.iconName,Mt=i.icon;return Lf(_e({type:"icon"},i),function(){return gl("beforeDOMElementCreation",{iconDefinition:i,params:e}),H9({icons:{main:E9(Mt),mask:c?E9(c.icon):{found:!1,width:null,height:null,icon:{}}},prefix:Z,iconName:Oe,transform:_e(_e({},ba),o),symbol:a,maskId:f,extra:{attributes:O,styles:Y,classes:x}})})}},oie={mixout:function(){return{icon:nie(iie)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=LO,e.nodeCallback=tie,e}}},provides:function(i){i.i2svg=function(e){var n=e.node,o=n===void 0?Mn:n,r=e.callback,a=r===void 0?function(){}:r;return LO(o,a)},i.generateSvgReplacementMutation=function(e,n){var o=n.iconName,r=n.prefix,a=n.transform,s=n.symbol,c=n.mask,m=n.maskId,f=n.extra;return new Promise(function(v,x){Promise.all([I9(o,r),c.iconName?I9(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(w){var O=If(w,2),K=O[0],Y=O[1];v([e,H9({icons:{main:K,mask:Y},prefix:r,iconName:o,transform:a,symbol:s,maskId:m,extra:f,watchable:!0})])}).catch(x)})},i.generateAbstractIcon=function(e){var n=e.children,o=e.attributes,r=e.main,a=e.transform,s=e.styles,c=Of(s);c.length>0&&(o.style=c);var m;return V9(a)&&(m=oc("generateAbstractTransformGrouping",{main:r,transform:a,containerWidth:r.width,iconWidth:r.width})),n.push(m||r.icon),{children:n,attributes:o}}}},rie={mixout:function(){return{layer:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.classes,r=o===void 0?[]:o;return Lf({type:"layer"},function(){gl("beforeDOMElementCreation",{assembler:e,params:n});var a=[];return e(function(s){Array.isArray(s)?s.map(function(c){a=a.concat(c.abstract)}):a=a.concat(s.abstract)}),[{tag:"span",attributes:{class:["".concat($e.cssPrefix,"-layers")].concat(Fr(r)).join(" ")},children:a}]})}}}},aie={mixout:function(){return{counter:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.title,r=o===void 0?null:o,a=n.classes,s=a===void 0?[]:a,c=n.attributes,m=c===void 0?{}:c,f=n.styles,v=f===void 0?{}:f;return Lf({type:"counter",content:e},function(){return gl("beforeDOMElementCreation",{content:e,params:n}),Fne({content:e.toString(),title:r,extra:{attributes:m,styles:v,classes:["".concat($e.cssPrefix,"-layers-counter")].concat(Fr(s))}})})}}}},sie={mixout:function(){return{text:function(e){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},o=n.transform,r=o===void 0?ba:o,a=n.classes,s=a===void 0?[]:a,c=n.attributes,m=c===void 0?{}:c,f=n.styles,v=f===void 0?{}:f;return Lf({type:"text",content:e},function(){return gl("beforeDOMElementCreation",{content:e,params:n}),kO({content:e,transform:_e(_e({},ba),r),extra:{attributes:m,styles:v,classes:["".concat($e.cssPrefix,"-layers-text")].concat(Fr(s))}})})}}},provides:function(i){i.generateLayersText=function(e,n){var o=n.transform,r=n.extra,a=null,s=null;if(GO){var c=parseInt(getComputedStyle(e).fontSize,10),m=e.getBoundingClientRect();a=m.width/c,s=m.height/c}return Promise.resolve([e,kO({content:e.innerHTML,width:a,height:s,transform:o,extra:r,watchable:!0})])}}},jT=new RegExp('"',"ug"),AO=[1105920,1112319],zO=_e(_e(_e(_e({},{FontAwesome:{normal:"fas",400:"fas"}}),Uee),Yte),Zee),P9=Object.keys(zO).reduce(function(t,i){return t[i.toLowerCase()]=zO[i],t},{}),cie=Object.keys(P9).reduce(function(t,i){var e=P9[i];return t[i]=e[900]||Fr(Object.entries(e))[0][1],t},{});function lie(t){var i=t.replace(jT,"");return DT(Fr(i)[0]||"")}function die(t){var i=t.getPropertyValue("font-feature-settings").includes("ss01"),e=t.getPropertyValue("content"),n=e.replace(jT,""),o=n.codePointAt(0),r=o>=AO[0]&&o<=AO[1],a=n.length===2?n[0]===n[1]:!1;return r||a||i}function uie(t,i){var e=t.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(i),o=isNaN(n)?"normal":n;return(P9[e]||{})[o]||cie[e]}function RO(t,i){var e="".concat(Qte).concat(i.replace(":","-"));return new Promise(function(n,o){if(t.getAttribute(e)!==null)return n();var r=I2(t.children),a=r.filter(function(fn){return fn.getAttribute(C9)===i})[0],s=nc.getComputedStyle(t,i),c=s.getPropertyValue("font-family"),m=c.match(ene),f=s.getPropertyValue("font-weight"),v=s.getPropertyValue("content");if(a&&!m)return t.removeChild(a),n();if(m&&v!=="none"&&v!==""){var x=s.getPropertyValue("content"),w=uie(c,f),O=lie(x),K=m[0].startsWith("FontAwesome"),Y=die(s),Z=j9(w,O),Oe=Z;if(K){var Mt=Cne(O);Mt.iconName&&Mt.prefix&&(Z=Mt.iconName,w=Mt.prefix)}if(Z&&!Y&&(!a||a.getAttribute(z9)!==w||a.getAttribute(R9)!==Oe)){t.setAttribute(e,Oe),a&&t.removeChild(a);var Et=Zne(),Ht=Et.extra;Ht.attributes[C9]=i,I9(Z,w).then(function(fn){var Bo=H9(_e(_e({},Et),{},{icons:{main:fn,mask:AT()},prefix:w,iconName:Oe,extra:Ht,watchable:!0})),oi=Mn.createElementNS("http://www.w3.org/2000/svg","svg");i==="::before"?t.insertBefore(oi,t.firstChild):t.appendChild(oi),oi.outerHTML=Bo.map(function(Cl){return fu(Cl)}).join(`
+`),t.removeAttribute(e),n()}).catch(o)}else n()}else n()})}function mie(t){return Promise.all([RO(t,"::before"),RO(t,"::after")])}function pie(t){return t.parentNode!==document.head&&!~Xte.indexOf(t.tagName.toUpperCase())&&!t.getAttribute(C9)&&(!t.parentNode||t.parentNode.tagName!=="svg")}var fie=function(i){return!!i&&gT.some(function(e){return i.includes(e)})},hie=function(i){if(!i)return[];var e=new Set,n=i.split(/,(?![^()]*\))/).map(function(c){return c.trim()});n=n.flatMap(function(c){return c.includes("(")?c:c.split(",").map(function(m){return m.trim()})});var o=Mf(n),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;if(fie(a)){var s=gT.reduce(function(c,m){return c.replace(m,"")},a);s!==""&&s!=="*"&&e.add(s)}}}catch(c){o.e(c)}finally{o.f()}return e};function NO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(is){var e;if(i)e=t;else if($e.searchPseudoElementsFullScan)e=t.querySelectorAll("*");else{var n=new Set,o=Mf(document.styleSheets),r;try{for(o.s();!(r=o.n()).done;){var a=r.value;try{var s=Mf(a.cssRules),c;try{for(s.s();!(c=s.n()).done;){var m=c.value,f=hie(m.selectorText),v=Mf(f),x;try{for(v.s();!(x=v.n()).done;){var w=x.value;n.add(w)}}catch(K){v.e(K)}finally{v.f()}}}catch(K){s.e(K)}finally{s.f()}}catch(K){$e.searchPseudoElementsWarnings&&console.warn("Font Awesome: cannot parse stylesheet: ".concat(a.href," (").concat(K.message,`)
+If it declares any Font Awesome CSS pseudo-elements, they will not be rendered as SVG icons. Add crossorigin="anonymous" to the , enable searchPseudoElementsFullScan for slower but more thorough DOM parsing, or suppress this warning by setting searchPseudoElementsWarnings to false.`))}}}catch(K){o.e(K)}finally{o.f()}if(!n.size)return;var O=Array.from(n).join(", ");try{e=t.querySelectorAll(O)}catch{}}return new Promise(function(K,Y){var Z=I2(e).filter(pie).map(mie),Oe=U9.begin("searchPseudoElements");VT(),Promise.all(Z).then(function(){Oe(),T9(),K()}).catch(function(){Oe(),T9(),Y()})})}}var gie={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=NO,e}}},provides:function(i){i.pseudoElements2svg=function(e){var n=e.node,o=n===void 0?Mn:n;$e.searchPseudoElements&&NO(o)}}},FO=!1,_ie={mixout:function(){return{dom:{unwatch:function(){VT(),FO=!0}}}},hooks:function(){return{bootstrap:function(){TO(S9("mutationObserverCallbacks",{}))},noAuto:function(){Yne()},watch:function(e){var n=e.observeMutationsRoot;FO?T9():TO(S9("mutationObserverCallbacks",{observeMutationsRoot:n}))}}}},VO=function(i){var e={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return i.toLowerCase().split(" ").reduce(function(n,o){var r=o.toLowerCase().split("-"),a=r[0],s=r.slice(1).join("-");if(a&&s==="h")return n.flipX=!0,n;if(a&&s==="v")return n.flipY=!0,n;if(s=parseFloat(s),isNaN(s))return n;switch(a){case"grow":n.size=n.size+s;break;case"shrink":n.size=n.size-s;break;case"left":n.x=n.x-s;break;case"right":n.x=n.x+s;break;case"up":n.y=n.y-s;break;case"down":n.y=n.y+s;break;case"rotate":n.rotate=n.rotate+s;break}return n},e)},bie={mixout:function(){return{parse:{transform:function(e){return VO(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-transform");return o&&(e.transform=VO(o)),e}}},provides:function(i){i.generateAbstractTransformGrouping=function(e){var n=e.main,o=e.transform,r=e.containerWidth,a=e.iconWidth,s={transform:"translate(".concat(r/2," 256)")},c="translate(".concat(o.x*32,", ").concat(o.y*32,") "),m="scale(".concat(o.size/16*(o.flipX?-1:1),", ").concat(o.size/16*(o.flipY?-1:1),") "),f="rotate(".concat(o.rotate," 0 0)"),v={transform:"".concat(c," ").concat(m," ").concat(f)},x={transform:"translate(".concat(a/2*-1," -256)")},w={outer:s,inner:v,path:x};return{tag:"g",attributes:_e({},w.outer),children:[{tag:"g",attributes:_e({},w.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:_e(_e({},n.icon.attributes),w.path)}]}]}}}},_9={x:0,y:0,width:"100%",height:"100%"};function BO(t){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return t.attributes&&(t.attributes.fill||i)&&(t.attributes.fill="black"),t}function vie(t){return t.tag==="g"?t.children:[t]}var yie={hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-mask"),r=o?Pf(o.split(" ").map(function(a){return a.trim()})):AT();return r.prefix||(r.prefix=ic()),e.mask=r,e.maskId=n.getAttribute("data-fa-mask-id"),e}}},provides:function(i){i.generateAbstractMask=function(e){var n=e.children,o=e.attributes,r=e.main,a=e.mask,s=e.maskId,c=e.transform,m=r.width,f=r.icon,v=a.width,x=a.icon,w=dne({transform:c,containerWidth:v,iconWidth:m}),O={tag:"rect",attributes:_e(_e({},_9),{},{fill:"white"})},K=f.children?{children:f.children.map(BO)}:{},Y={tag:"g",attributes:_e({},w.inner),children:[BO(_e({tag:f.tag,attributes:_e(_e({},f.attributes),w.path)},K))]},Z={tag:"g",attributes:_e({},w.outer),children:[Y]},Oe="mask-".concat(s||yO()),Mt="clip-".concat(s||yO()),Et={tag:"mask",attributes:_e(_e({},_9),{},{id:Oe,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[O,Z]},Ht={tag:"defs",children:[{tag:"clipPath",attributes:{id:Mt},children:vie(x)},Et]};return n.push(Ht,{tag:"rect",attributes:_e({fill:"currentColor","clip-path":"url(#".concat(Mt,")"),mask:"url(#".concat(Oe,")")},_9)}),{children:n,attributes:o}}}},Cie={provides:function(i){var e=!1;nc.matchMedia&&(e=nc.matchMedia("(prefers-reduced-motion: reduce)").matches),i.missingIconAbstract=function(){var n=[],o={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:_e(_e({},o),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=_e(_e({},r),{},{attributeName:"opacity"}),s={tag:"circle",attributes:_e(_e({},o),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||s.children.push({tag:"animate",attributes:_e(_e({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:_e(_e({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(s),n.push({tag:"path",attributes:_e(_e({},o),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:_e(_e({},a),{},{values:"1;0;0;0;0;1;"})}]}),e||n.push({tag:"path",attributes:_e(_e({},o),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:_e(_e({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},xie={hooks:function(){return{parseNodeAttributes:function(e,n){var o=n.getAttribute("data-fa-symbol"),r=o===null?!1:o===""?!0:o;return e.symbol=r,e}}}},Mie=[pne,oie,rie,aie,sie,gie,_ie,bie,yie,Cie,xie];One(Mie,{mixoutsTo:Vo});var gLe=Vo.noAuto,HT=Vo.config,_Le=Vo.library,UT=Vo.dom,$T=Vo.parse,bLe=Vo.findIconDefinition,vLe=Vo.toHtml,GT=Vo.icon,yLe=Vo.layer,wie=Vo.text,Die=Vo.counter;var Sie=["*"],kie=(()=>{class t{defaultPrefix="fas";fallbackIcon=null;fixedWidth;set autoAddCss(e){HT.autoAddCss=e,this._autoAddCss=e}get autoAddCss(){return this._autoAddCss}_autoAddCss=!0;static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),W9=(()=>{class t{definitions={};addIcons(...e){for(let n of e){n.prefix in this.definitions||(this.definitions[n.prefix]={}),this.definitions[n.prefix][n.iconName]=n;for(let o of n.icon[2])typeof o=="string"&&(this.definitions[n.prefix][o]=n)}}addIconPacks(...e){for(let n of e){let o=Object.keys(n).map(r=>n[r]);this.addIcons(...o)}}getIconDefinition(e,n){return e in this.definitions&&n in this.definitions[e]?this.definitions[e][n]:null}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Eie=t=>{throw new Error(`Could not find icon with iconName=${t.iconName} and prefix=${t.prefix} in the icon library.`)},Iie=()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")},qT=t=>t!=null&&(t===90||t===180||t===270||t==="90"||t==="180"||t==="270"),Oie=t=>{let i=qT(t.rotate),e={[`fa-${t.animation}`]:t.animation!=null&&!t.animation.startsWith("spin"),"fa-spin":t.animation==="spin"||t.animation==="spin-reverse","fa-spin-pulse":t.animation==="spin-pulse"||t.animation==="spin-pulse-reverse","fa-spin-reverse":t.animation==="spin-reverse"||t.animation==="spin-pulse-reverse","fa-pulse":t.animation==="spin-pulse"||t.animation==="spin-pulse-reverse","fa-fw":t.fixedWidth,"fa-border":t.border,"fa-inverse":t.inverse,"fa-layers-counter":t.counter,"fa-flip-horizontal":t.flip==="horizontal"||t.flip==="both","fa-flip-vertical":t.flip==="vertical"||t.flip==="both",[`fa-${t.size}`]:t.size!==null,[`fa-rotate-${t.rotate}`]:i,"fa-rotate-by":t.rotate!=null&&!i,[`fa-pull-${t.pull}`]:t.pull!==null,[`fa-stack-${t.stackItemSize}`]:t.stackItemSize!=null};return Object.keys(e).map(n=>e[n]?n:null).filter(n=>n!=null)},G9=new WeakSet,WT="fa-auto-css";function Tie(t,i){if(!i.autoAddCss||G9.has(t))return;if(t.getElementById(WT)!=null){i.autoAddCss=!1,G9.add(t);return}let e=t.createElement("style");e.setAttribute("type","text/css"),e.setAttribute("id",WT),e.innerHTML=UT.css();let n=t.head.childNodes,o=null;for(let r=n.length-1;r>-1;r--){let a=n[r],s=a.nodeName.toUpperCase();["STYLE","LINK"].indexOf(s)>-1&&(o=a)}t.head.insertBefore(e,o),i.autoAddCss=!1,G9.add(t)}var Pie=t=>t.prefix!==void 0&&t.iconName!==void 0,Lie=(t,i)=>Pie(t)?t:Array.isArray(t)&&t.length===2?{prefix:t[0],iconName:t[1]}:{prefix:i,iconName:t},Aie=(()=>{class t{stackItemSize=S1("1x");size=S1();_effect=sa(()=>{if(this.size())throw new Error('fa-icon is not allowed to customize size when used inside fa-stack. Set size on the enclosing fa-stack instead: ....')});static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:[1,"stackItemSize"],size:[1,"size"]}})}return t})(),zie=(()=>{class t{size=S1();classes=Zn(()=>{let e=this.size(),n=e?{[`fa-${e}`]:!0}:{};return Ne(q({},n),{"fa-stack":!0})});static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["fa-stack"]],hostVars:2,hostBindings:function(n,o){n&2&&Tt(o.classes())},inputs:{size:[1,"size"]},ngContentSelectors:Sie,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Yt=(()=>{class t{icon=to();title=to();animation=to();mask=to();flip=to();size=to();pull=to();border=to();inverse=to();symbol=to();rotate=to();fixedWidth=to();transform=to();a11yRole=to();renderedIconHTML=Zn(()=>{let e=this.icon()??this.config.fallbackIcon;if(!e)return Iie(),"";let n=this.findIconDefinition(e);if(!n)return"";let o=this.buildParams();Tie(this.document,this.config);let r=GT(n,o);return this.sanitizer.bypassSecurityTrustHtml(r.html.join(`
+`))});document=d(Me);sanitizer=d(Ga);config=d(kie);iconLibrary=d(W9);stackItem=d(Aie,{optional:!0});stack=d(zie,{optional:!0});constructor(){this.stack!=null&&this.stackItem==null&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}findIconDefinition(e){let n=Lie(e,this.config.defaultPrefix);if("icon"in n)return n;let o=this.iconLibrary.getIconDefinition(n.prefix,n.iconName);return o??(Eie(n),null)}buildParams(){let e=this.fixedWidth(),n={flip:this.flip(),animation:this.animation(),border:this.border(),inverse:this.inverse(),size:this.size(),pull:this.pull(),rotate:this.rotate(),fixedWidth:typeof e=="boolean"?e:this.config.fixedWidth,stackItemSize:this.stackItem!=null?this.stackItem.stackItemSize():void 0},o=this.transform(),r=typeof o=="string"?$T.transform(o):o,a=this.mask(),s=a!=null?this.findIconDefinition(a):null,c={},m=this.a11yRole();m!=null&&(c.role=m);let f={};return n.rotate!=null&&!qT(n.rotate)&&(f["--fa-rotate-angle"]=`${n.rotate}`),{title:this.title(),transform:r,classes:Oie(n),mask:s??void 0,symbol:this.symbol(),attributes:c,styles:f}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(n,o){n&2&&(Lt("innerHTML",o.renderedIconHTML(),jc),ne("title",o.title()??void 0))},inputs:{icon:[1,"icon"],title:[1,"title"],animation:[1,"animation"],mask:[1,"mask"],flip:[1,"flip"],size:[1,"size"],pull:[1,"pull"],border:[1,"border"],inverse:[1,"inverse"],symbol:[1,"symbol"],rotate:[1,"rotate"],fixedWidth:[1,"fixedWidth"],transform:[1,"transform"],a11yRole:[1,"a11yRole"]},outputs:{icon:"iconChange",title:"titleChange",animation:"animationChange",mask:"maskChange",flip:"flipChange",size:"sizeChange",pull:"pullChange",border:"borderChange",inverse:"inverseChange",symbol:"symbolChange",rotate:"rotateChange",fixedWidth:"fixedWidthChange",transform:"transformChange",a11yRole:"a11yRoleChange"},decls:0,vars:0,template:function(n,o){},encapsulation:2,changeDetection:0})}return t})();var YT=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var Rie=t=>({flex:t}),Af=(()=>{class t{constructor(){}ngOnInit(){this.acceptFilter||(this.acceptFilter=".xls,.xlsx,.pdf,.doc,.docx,.png,.jpeg,.jpg")}onFileSelect(e){this.fileName=e.target.files[0].name}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-file-upload"]],inputs:{flex:"flex",acceptFilter:"acceptFilter"},decls:10,vars:12,consts:[["uploadFile",""],[1,"layout-row","layout-lt-md-column","gap-2percent"],[3,"ngStyle"],["matInput","","placeholder","No file selected",3,"readonly","value"],[1,"flex-10","align-center"],["mat-button","",3,"click"],["icon","folder-open","size","lg"],["type","file",3,"change","accept"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1)(1,"mat-form-field",2),F(2,"input",3),_(),h(3,"span",4)(4,"button",5),N("click",function(){G(r);let s=Nt(9);return W(s.click())}),F(5,"fa-icon",6),y(6),S(7,"translate"),_()()(),h(8,"input",7,0),N("change",function(s){return G(r),W(o.onFileSelect(s))}),_()}n&2&&(p(),D("ngStyle",Eo(10,Rie,"0 0 "+(o.flex||"83%"))),p(),D("readonly",!0)("value",o.fileName||""),p(4),ee(" \xA0\xA0 ",k(7,8,"labels.buttons.Browse")," "),p(2),At("display","none"),D("accept",Ft(o.acceptFilter)))},dependencies:[he,i7,ve,Bt,ti,vt,Yt,Te],encapsulation:2})}}return t})();var O2=(()=>{class t{constructor(){this.http=d(Bn),this.emptyPayload={}}static{this.CONFIG_ASSET_EXTERNALIZATION="asset-externalization-of-non-active-loans"}getDataTables(){return this.http.get("/datatables")}getHooks(){return this.http.get("/hooks")}getHook(e){return this.http.get(`/hooks/${e}`)}getHooksTemplate(){return this.http.get("/hooks/template")}createHook(e){return this.http.post("/hooks",e)}updateHook(e,n){return this.http.put(`/hooks/${e}`,n)}deleteHook(e){return this.http.delete(`/hooks/${e}`)}getRoles(){return this.http.get("/roles")}getRole(e){return this.http.get(`/roles/${e}/permissions`)}updateRole(e,n){return this.http.put(`/roles/${n}`,e)}updateRolePermission(e,n){return this.http.put(`/roles/${e}/permissions`,n)}deleteRole(e){return this.http.delete(`/roles/${e}`)}createRole(e){return this.http.post("/roles",e)}enableRole(e){let n=new te().set("command","enable");return this.http.post(`/roles/${e}`,{},{params:n})}disableRole(e){let n=new te().set("command","disable");return this.http.post(`/roles/${e}`,{},{params:n})}getCodes(){return this.http.get("/codes")}getCode(e){return this.http.get(`/codes/${e}`)}updateCode(e,n){return this.http.put(`/codes/${n}`,e)}getCodeValues(e){return this.http.get(`/codes/${e}/codevalues`)}deleteCodeValue(e,n){return this.http.delete(`/codes/${e}/codevalues/${n}`)}updateCodeValue(e,n,o){return this.http.put(`/codes/${e}/codevalues/${n}`,o)}createCodeValue(e,n){return this.http.post(`/codes/${e}/codevalues`,n)}deleteCode(e){return this.http.delete(`/codes/${e}`)}getSurveys(){return this.http.get("/surveys")}createSurvey(e){return this.http.post("/surveys",e)}getSurvey(e){return this.http.get(`/surveys/${e}?template=true`)}editSurvey(e,n){return this.http.put(`/surveys/${e}`,n)}activateSurvey(e){return this.http.post(`/surveys/${e}?command=activate`,null)}deactivateSurvey(e){return this.http.post(`/surveys/${e}?command=deactivate`,null)}getJobs(){return this.http.get("/jobs")}getWorkflowJobNames(){return this.http.get("/jobs/names")}getWorkflowJobSteps(e){return this.http.get(`/jobs/${e}/steps`)}putWorkflowJobSteps(e,n){return this.http.put(`/jobs/${e}/steps`,n)}runInlineCOB(e,n){return this.http.post(`/jobs/${e}/inline`,n)}getAvailablesJobSteps(e){return this.http.get(`/jobs/${e}/available-steps`)}getScheduler(){return this.http.get("/scheduler")}getSelectedJob(e){return this.http.get(`/jobs/${e}`)}runCommandOnScheduler(e){return this.http.post("/scheduler?command="+e,this.emptyPayload)}updateScheduler(e,n){return this.http.put(`/jobs/${e}`,n)}runSelectedJob(e){return this.http.post(`/jobs/${e}?command=executeJob`,this.emptyPayload,{observe:"response"}).toPromise()}runSelectedJobWithParameters(e,n){return this.http.post(`/jobs/${e}?command=executeJob`,n,{observe:"response"}).toPromise()}getHistoryScheduler(e){return this.http.get(`/jobs/${e}/runhistory`)}createCode(e){return this.http.post("/codes",e)}createDataTable(e){return this.http.post("/datatables",e)}getDataTable(e){return this.http.get(`/datatables/${e}`)}deleteDataTable(e){return this.http.delete(`/datatables/${e}`)}updateDataTable(e,n){return this.http.put(`/datatables/${n}`,e)}getBusinessDates(){return this.http.get("/businessdate")}getBusinessDate(e){return this.http.get(`/businessdate/${e}`)}updateBusinessDate(e){return this.http.post("/businessdate",e)}getConfigurations(){return this.http.get("/configurations")}getConfiguration(e){return this.http.get(`/configurations/${e}`)}getConfigurationByName(e){return this.http.get(`/configurations/name/${e}`)}updateConfiguration(e,n){return this.http.put(`/configurations/${e}`,n)}getExternalConfiguration(e){return this.http.get(`/externalservice/${e}`)}updateExternalConfiguration(e,n){return this.http.put(`/externalservice/${e}`,n)}getAccountNumberPreferences(){return this.http.get("/accountnumberformats")}getAccountNumberPreferencesTemplate(){return this.http.get("/accountnumberformats/template")}getAccountNumberPreference(e){return this.http.get(`/accountnumberformats/${e}`)}createAccountNumberPreference(e){return this.http.post("/accountnumberformats",e)}deleteAccountNumberPreference(e){return this.http.delete(`/accountnumberformats/${e}`)}updateAccountNumberPreference(e,n){return this.http.put(`/accountnumberformats/${e}`,n)}getReports(){return this.http.get("/reports")}getReport(e){return this.http.get(`/reports/${e}?template=true`)}getReportTemplate(){return this.http.get("/reports/template")}createReport(e){return this.http.post("/reports",e)}updateReport(e,n){return this.http.put(`/reports/${e}`,n)}deleteReport(e){return this.http.delete(`/reports/${e}`)}getAuditTrails(e,n,o,r,a){let s=new te().set("offset",r.toString()).set("limit",a.toString()).set("sortOrder",o).set("orderBy",n).set("paged","true");return e.forEach(function(c){c.value!==""&&(s=s.set(c.type,c.value))}),this.http.get("/audits",{params:s})}getAuditTrail(e){return this.http.get(`/audits/${e}`)}getAuditTrailSearchTemplate(){return this.http.get("/audits/searchtemplate")}getEntityMappings(){return this.http.get("/entitytoentitymapping")}getEntitytoEntityData(e,n,o){return this.http.get(`/entitytoentitymapping/${e}/${n}/${o}`)}getMapIdData(e){return this.http.get(`/entitytoentitymapping/${e}`)}createMapping(e,n){return this.http.post(`/entitytoentitymapping/${e}`,n)}editMapping(e,n){return this.http.put(`/entitytoentitymapping/${e}`,n)}deleteMapping(e){return this.http.delete(`/entitytoentitymapping/${e}`)}getOffices(){return this.http.get("/offices")}getLoanProducts(){return this.http.get("/loanproducts")}getSavingProducts(){return this.http.get("/savingsproducts")}getCharges(){return this.http.get("/charges")}getMakerCheckerPermissions(){let e=new te().set("makerCheckerable","true");return this.http.get("/permissions",{params:e})}updateMakerCheckerPermission(e){let n=new te().set("makerCheckerable","true");return this.http.put("/permissions",e,{params:n})}getExternalEventConfiguration(){return this.http.get("/externalevents/configuration")}putExternalEventConfiguration(e){return this.http.put("/externalevents/configuration",e)}getEntityDatatables(e){let n=new te().set("apptable",e);return this.http.get("/datatables",{params:n})}getEntityDatatable(e,n){let o=new te().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addEntityDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editEntityDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new te().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}deleteDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.delete(`/datatables/${o}/${e}/${n}`,{params:r})}getCOBCatchUpStatus(){return this.http.get("/loans/is-catch-up-running")}runCOBCatchUp(){let e={};return this.http.post("/loans/catch-up",e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var QT=(()=>{class t{constructor(){this.http=d(Bn),this.apiActuator=mt.apiActuator}getBackendInfo(){return this.http.get(this.apiActuator+"/actuator/info")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var rc=(()=>{class t{get vertical(){return this._vertical}set vertical(e){this._vertical=yn(e)}_vertical=!1;get inset(){return this._inset}set inset(e){this._inset=yn(e)}_inset=!1;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(n,o){n&2&&(ne("aria-orientation",o.vertical?"vertical":"horizontal"),oe("mat-divider-vertical",o.vertical)("mat-divider-horizontal",!o.vertical)("mat-divider-inset",o.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(n,o){},styles:[`.mat-divider{display:block;margin:0;border-top-style:solid;border-top-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-top-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-vertical{border-top:0;border-right-style:solid;border-right-color:var(--mat-divider-color, var(--mat-sys-outline-variant));border-right-width:var(--mat-divider-width, 1px)}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}
+`],encapsulation:2,changeDetection:0})}return t})(),zf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();function Nie(t,i){if(t&1&&(h(0,"tr")(1,"td",6),y(2),S(3,"translate"),_(),h(4,"td",7),y(5),_()()),t&2){let e=M(2);p(2),T(k(3,2,"labels.inputs.Server")),p(3),ee(" ",e.server," ")}}function Fie(t,i){if(t&1&&(h(0,"tr")(1,"td",6),y(2),S(3,"translate"),_(),h(4,"td",8)(5,"b"),y(6),S(7,"date"),_()()()),t&2){let e=M(2);p(2),ee("",k(3,2,"labels.text.Current Business Date"),":"),p(4),T(Zo(7,4,e.businessDate,"EEEE, MMMM dd, y"))}}function Vie(t,i){if(t&1&&(h(0,"div",0),F(1,"mat-divider",3),h(2,"div",4)(3,"table",5)(4,"tr")(5,"td",6),y(6,"Mifos"),_(),h(7,"td",7),y(8),h(9,"b"),y(10),_()()(),h(11,"tr")(12,"td",6),y(13),S(14,"translate"),_(),h(15,"td",7),y(16),h(17,"b"),y(18),_()()(),E(19,Nie,6,4,"tr"),E(20,Fie,8,7,"tr"),_()(),F(21,"mat-divider",3),_()),t&2){let e=M();D("ngClass",Ft(e.styleClass)),p(8),ee(" ",e.versions.mifos," - "),p(2),T(e.hash),p(3),T(k(14,9,"labels.text.Fineract")),p(3),ee(" ",e.versions.fineract.version," - "),p(2),T(e.versions.fineract.hash),p(),I(e.displayBackEndInfo?19:-1),p(),I(e.isBusinessDateDefined?20:-1)}}var KT=(()=>{class t{constructor(){this.systemService=d(O2),this.settingsService=d(Xt),this.authenticationService=d(Zm),this.alertService=d(Os),this.dateUtils=d(go),this.versionService=d(QT),this.styleClass="",this.versions={mifos:mt.version,fineract:{version:"",hash:""}},this.hash=mt.hash,this.server="",this.businessDate=null,this.isBusinessDateEnabled=!1,this.isBusinessDateDefined=!1,this.displayBackEndInfo=!0,this.displayBackEndInfo=mt.displayBackEndInfo==="true"}ngOnInit(){this.displayBackEndInfo&&(this.alert$=this.alertService.alertEvent.subscribe(e=>{let n=e.type;n===Xt.businessDateType+" Set Config"?(this.isBusinessDateEnabled=e.message==="enabled",this.isBusinessDateDefined=!1,this.isBusinessDateEnabled&&this.setBusinessDate()):n===Xt.businessDateType+" Set"?this.isBusinessDateEnabled&&this.setBusinessDate():n==="Authentication Start"&&(this.timer=setTimeout(()=>{this.getConfigurations()},6e4))}),this.getConfigurations(),this.server=this.settingsService.server,this.versionService.getBackendInfo().subscribe(e=>{if(e.git&&e.git.build&&e.git.build.version){let n=e.git.build.version.split("-");this.versions.fineract.version=n[0],this.versions.fineract.hash=n[1]}}))}ngOnDestroy(){this.displayBackEndInfo&&clearTimeout(this.timer)}getConfigurations(){this.authenticationService.isAuthenticated()?this.systemService.getConfigurationByName(Xt.businessDateConfigName).subscribe(e=>{this.isBusinessDateEnabled=e.enabled,this.settingsService.setBusinessDateConfig(e.enabled),this.isBusinessDateEnabled&&(this.setBusinessDate(),this.timer=setTimeout(()=>{this.getConfigurations()},6e4))}):clearTimeout(this.timer)}setBusinessDate(){this.systemService.getBusinessDate(Xt.businessDateType).subscribe(e=>{this.businessDate=new Date(e.date),this.settingsService.setBusinessDate(this.dateUtils.formatDate(this.businessDate,Xt.businessDateFormat)),this.isBusinessDateDefined=!0})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-footer"]],inputs:{styleClass:"styleClass"},decls:6,vars:7,consts:[["id","footer",1,"layout-column","m-b-20","f12",3,"ngClass"],[1,"layout-column","m-b-20","copy-label"],[1,"footer-content","align-center"],[1,"divider","align-center"],[1,"layout-column","m-b-20","content-wrapper","footer-center"],[1,"versions"],[1,"footer-content"],[1,"right","footer-content"],[1,"center","footer-content","business-date"]],template:function(n,o){n&1&&(E(0,Vie,22,11,"div",0),h(1,"div",1)(2,"p",2),y(3),S(4,"translate"),S(5,"translate"),_()()),n&2&&(I(o.displayBackEndInfo?0:-1),p(3),St("",k(4,3,"APP_NAME")," ",k(5,5,"labels.text.by")," Mifos"))},dependencies:[he,Un,ve,rc,E1,Te],styles:["body[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tbody[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%]   input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%]   select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%]   textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%]   [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%]   [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%]   .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%]   .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%]   .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%]   .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%]   .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%]   .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%]   .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}  .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%]   .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%]   .mat-step-icon-state-done[_ngcontent-%COMP%]   .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%]   .mat-step-icon-state-done[_ngcontent-%COMP%]   .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]   .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]   .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%]   h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%]   a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]   a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}#footer[_ngcontent-%COMP%]{align-items:center;min-width:400px}#footer[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]{max-width:100%;min-width:90%;padding-left:5%;padding-right:5%}#footer[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .versions[_ngcontent-%COMP%]{width:100%;color:#666f73}#footer[_ngcontent-%COMP%]   .content-wrapper[_ngcontent-%COMP%]   .footer-content[_ngcontent-%COMP%]{margin:0}#footer[_ngcontent-%COMP%]   .divider[_ngcontent-%COMP%]{margin:2.5rem 1rem .5rem;width:4rem}#footer[_ngcontent-%COMP%]   .business-date[_ngcontent-%COMP%]{color:#4461e2}#footer[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]{border:none}#footer[_ngcontent-%COMP%]   table[_ngcontent-%COMP%]   tr[_ngcontent-%COMP%]:nth-child(2n){background-color:transparent}.main-page[_ngcontent-%COMP%]{max-width:70%;min-width:50%;padding-left:30%}.copy-label[_ngcontent-%COMP%]{min-width:100%;text-align:center;font-size:large}"]})}}return t})();function Bie(t,i){if(t&1&&(h(0,"mat-option",2),y(1),S(2,"translate"),_()),t&2){let e=i.$implicit;D("value",e),p(),ee(" ",k(2,2,"languages."+e)," ")}}var XT=(()=>{class t{constructor(){this.translateService=d(Po),this.settingsService=d(Xt),this.languageSelector=new Hi,this.languageSelector.setValue(this.currentLanguage)}setLanguage(){this.translateService.use(this.languageSelector.value),this.settingsService.setLanguage({name:"",code:this.languageSelector.value.substring(0,2)})}get currentLanguage(){return this.translateService.currentLang}get languages(){return this.translateService.getLangs()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-language-selector"]],decls:7,vars:4,consts:[["id","language-selector",1,"m-l-10"],[1,"languageselector",3,"selectionChange","formControl"],[3,"value"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",1),N("selectionChange",function(){return o.setLanguage()}),Xe(5,Bie,3,4,"mat-option",2,ht),_()()),n&2&&(p(2),T(k(3,2,"labels.inputs.Language")),p(2),D("formControl",o.languageSelector),p(),Ze(o.languages))},dependencies:[he,ve,mn,Si,Bt,Cn,qn,ln,Te],styles:[".mat-mdc-form-field-bottom-align:before{border-bottom-color:#fff}  .mdc-line-ripple:before{border-bottom-color:#fff}  .mdc-line-ripple:after{border-bottom-color:#fff}  .mat-mdc-form-field .mdc-line-ripple:before{border-bottom-color:#fff!important}  .mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#fff!important}"]})}}return t})();var ZT=(()=>{class t{constructor(){this.themeManagerClass="theme-manager"}setTheme(e){this.getLinkElement().setAttribute("href",e)}removeTheme(){let e=this.getExistingLinkElement();e&&document.head.removeChild(e)}getLinkElement(){return this.getExistingLinkElement()||this.createLinkElement()}getExistingLinkElement(){return document.head.querySelector(`link[rel="stylesheet"].${this.themeManagerClass}`)}createLinkElement(){let e=document.createElement("link");return e.setAttribute("rel","stylesheet"),e.classList.add(this.themeManagerClass),document.head.appendChild(e),e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var JT=(()=>{class t{constructor(){this.themeManagerService=d(ZT),this.themeStorageKey="mifosXTheme",this.onThemeUpdate=new j}storeTheme(e){localStorage.setItem(this.themeStorageKey,JSON.stringify(e)),this.onThemeUpdate.emit(e)}getTheme(){return JSON.parse(localStorage.getItem(this.themeStorageKey))}clearTheme(){localStorage.removeItem(this.themeStorageKey)}installTheme(e){let n=document.body;n.classList.remove("pictonblue-yellowgreen-theme","indigo-pink-theme","deeppurple-amber-theme","pink-bluegrey-theme","purple-green-theme"),e.isDefault||n.classList.add(this.getThemeClass(e.href)),this.storeTheme(e)}getThemeClass(e){switch(e){case"pictonblue-yellowgreen.css":return"pictonblue-yellowgreen-theme";case"indigo-pink.css":return"indigo-pink-theme";case"deeppurple-amber.css":return"deeppurple-amber-theme";case"pink-bluegrey.css":return"pink-bluegrey-theme";case"purple-green.css":return"purple-green-theme";default:return""}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var jie=["mat-menu-item",""],Hie=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],Uie=["mat-icon, [matMenuItemIcon]","*"];function $ie(t,i){t&1&&($t(),h(0,"svg",2),F(1,"polygon",3),_())}var Gie=["*"];function Wie(t,i){if(t&1){let e=le();nt(0,"div",0),im("click",function(){G(e);let o=M();return W(o.closed.emit("click"))})("animationstart",function(o){G(e);let r=M();return W(r._onAnimationStart(o.animationName))})("animationend",function(o){G(e);let r=M();return W(r._onAnimationDone(o.animationName))})("animationcancel",function(o){G(e);let r=M();return W(r._onAnimationDone(o.animationName))}),nt(1,"div",1),ae(2),rt()()}if(t&2){let e=M();Tt(e._classList),oe("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating()),Lt("id",e.panelId),ne("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var Y9=new L("MAT_MENU_PANEL"),_l=(()=>{class t{_elementRef=d(Q);_document=d(Me);_focusMonitor=d(sn);_parentMenu=d(Y9,{optional:!0});_changeDetectorRef=d(xe);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new B;_focused=new B;_highlighted=!1;_triggersSubmenu=!1;constructor(){d(at).load(cn),this._parentMenu?.addItem?.(this)}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,n):this._getHostElement().focus(n),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),n=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_injector=d(be);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled=Ue();_allItems;_directDescendantItems=new In;_classList={};_panelAnimationState="void";_animationDone=new B;_isAnimating=we(!1);parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let n=this._previousPanelClass,o=q({},this._classList);n&&n.length&&n.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new j;close=this.closed;panelId=d(He).getId("mat-menu-panel-");constructor(){let e=d(Yie);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Tr(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(We(this._directDescendantItems),lt(e=>ft(...e.map(n=>n._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let n=this._keyManager;if(this._panelAnimationState==="enter"&&n.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,n.activeItemIndex||0));o[r]&&!o[r].disabled?n.setActiveItem(r):n.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(We(this._directDescendantItems),lt(n=>ft(...n.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let n=e.keyCode,o=this._keyManager;switch(n){case 27:Dt(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(n===38||n===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Ct(()=>{let n=this._resolvePanel();if(!n||!n.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&n&&n.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,n=this.yPosition){this._classList=Ne(q({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":n==="above","mat-menu-below":n==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let n=e===Rf;(n||e===q9)&&(n&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(n?"void":"enter"),this._isAnimating.set(!1))}_onAnimationStart(e){(e===q9||e===Rf)&&this._isAnimating.set(!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let n=this._resolvePanel();n&&(n.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Rf),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?q9:Rf)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(We(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(n=>n._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-menu"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,qie,5),Ee(r,_l,5),Ee(r,_l,4)),n&2){let a;U(a=$())&&(o.lazyContent=a.first),U(a=$())&&(o._allItems=a),U(a=$())&&(o.items=a)}},viewQuery:function(n,o){if(n&1&&ue(tt,5),n&2){let r;U(r=$())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(n,o){n&2&&ne("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",H],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:H(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[de([{provide:Y9,useExisting:t}])],ngContentSelectors:Gie,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(n,o){n&1&&(De(),Mr(0,Wie,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}
+`],encapsulation:2,changeDetection:0})}return t})(),eP=new L("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function Kie(t){let i=d(be);return()=>fi(i)}var Xie={provide:eP,deps:[],useFactory:Kie};var T2=new WeakMap,Zie=(()=>{class t{_canHaveBackdrop;_element=d(Q);_viewContainerRef=d(dt);_menuItemInstance=d(_l,{optional:!0,self:!0});_dir=d(bt,{optional:!0});_focusMonitor=d(sn);_ngZone=d(se);_injector=d(be);_scrollStrategy=d(eP);_changeDetectorRef=d(xe);_animationsDisabled=Ue();_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=Se.EMPTY;_menuCloseSubscription=Se.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _menu(){return this._menuInternal}set _menu(e){e!==this._menuInternal&&(this._menuInternal=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(n=>{this._destroyMenu(n),(n==="click"||n==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(n)})),this._menuItemInstance?._setTriggersSubmenu(this._triggersSubmenu()))}_menuInternal;constructor(e){this._canHaveBackdrop=e;let n=d(Y9,{optional:!0});this._parentMaterialMenu=n instanceof ac?n:void 0}ngOnDestroy(){this._menu&&this._ownsMenu(this._menu)&&T2.delete(this._menu),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this._menu)}_closeMenu(){this._menu?.close.emit()}_openMenu(e){let n=this._menu;if(this._menuOpen||!n)return;this._pendingRemoval?.unsubscribe();let o=T2.get(n);T2.set(n,this),o&&o!==this&&o._closeMenu();let r=this._createOverlay(n),a=r.getConfig(),s=a.positionStrategy;this._setPosition(n,s),this._canHaveBackdrop?a.hasBackdrop=n.hasBackdrop==null?!this._triggersSubmenu():n.hasBackdrop:a.hasBackdrop=!1,r.hasAttached()||(r.attach(this._getPortal(n)),n.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this._closeMenu()),n.parentMenu=this._triggersSubmenu()?this._parentMaterialMenu:void 0,n.direction=this.dir,e&&n.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),n instanceof ac&&(n._setIsOpen(!0),n._directDescendantItems.changes.pipe(ye(n.close)).subscribe(()=>{s.withLockedPosition(!1).reapplyLastPosition(),s.withLockedPosition(!0)}))}focus(e,n){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}_destroyMenu(e){let n=this._overlayRef,o=this._menu;!n||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof ac&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(Be(1)).subscribe(()=>{n.detach(),T2.has(o)||o.lazyContent?.detach()}),o._setIsOpen(!1)):(n.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&T2.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this._triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this._triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let n=this._getOverlayConfig(e);this._subscribeToPositions(e,n.positionStrategy),this._overlayRef=lo(this._injector,n),this._overlayRef.keydownEvents().subscribe(o=>{this._menu instanceof ac&&this._menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new co({positionStrategy:zr(this._injector,this._getOverlayOrigin()).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr",disableAnimations:this._animationsDisabled})}_subscribeToPositions(e,n){e.setPositionClasses&&n.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,n){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[c,m]=[a,s],[f,v]=[o,r],x=0;if(this._triggersSubmenu()){if(v=o=e.xPosition==="before"?"start":"end",r=f=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let w=this._parentMaterialMenu.items.first;this._parentInnerPadding=w?w._getHostElement().offsetTop:0}x=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(c=a==="top"?"bottom":"top",m=s==="top"?"bottom":"top");n.withPositions([{originX:o,originY:c,overlayX:f,overlayY:a,offsetY:x},{originX:r,originY:c,overlayX:v,overlayY:a,offsetY:x},{originX:o,originY:m,overlayX:f,overlayY:s,offsetY:-x},{originX:r,originY:m,overlayX:v,overlayY:s,offsetY:-x}])}_menuClosingActions(){let e=this._getOutsideClickStream(this._overlayRef),n=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:re(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(Ae(a=>this._menuOpen&&a!==this._menuItemInstance)):re();return ft(e,o,r,n)}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Wn(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return T2.get(e)===this}static \u0275fac=function(n){Hc()};static \u0275dir=z({type:t})}return t})(),Nf=(()=>{class t extends Zie{_cleanupTouchstart;_hoverSubscription=Se.EMPTY;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){this._menu=e}menuData;restoreFocus=!0;menuOpened=new j;onMenuOpen=this.menuOpened;menuClosed=new j;onMenuClose=this.menuClosed;constructor(){super(!0);let e=d(Ke);this._cleanupTouchstart=e.listen(this._element.nativeElement,"touchstart",n=>{Qa(n)||(this._openedBy="touch")},{passive:!0})}triggersSubmenu(){return super._triggersSubmenu()}toggleMenu(){return this.menuOpen?this.closeMenu():this.openMenu()}openMenu(){this._openMenu(!0)}closeMenu(){this._closeMenu()}updatePosition(){this._overlayRef?.updatePosition()}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTouchstart(),this._hoverSubscription.unsubscribe()}_getOverlayOrigin(){return this._element}_getOutsideClickStream(e){return e.backdropClick()}_handleMousedown(e){Ya(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let n=e.keyCode;(n===13||n===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(n===39&&this.dir==="ltr"||n===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&this._parentMaterialMenu?._panelAnimationState!=="void"&&(this._openedBy="mouse",this._openMenu(!1))}))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(n,o){n&1&&N("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),n&2&&ne("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu==null?null:o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"],features:[ce]})}return t})();var tP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Xie],imports:[wi,fe,Ei,xi,fe]})}return t})(),nP={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},qAe=nP.fadeInItems,YAe=nP.transformMenu;var hu=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Q_],imports:[Ka,Ei,fe,fe,xi]})}return t})();var Ff=class{tracker;columnIndex=0;rowIndex=0;get rowCount(){return this.rowIndex+1}get rowspan(){let i=Math.max(...this.tracker);return i>1?this.rowCount+i-1:this.rowCount}positions;update(i,e){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(i),this.tracker.fill(0,0,this.tracker.length),this.positions=e.map(n=>this._trackTile(n))}_trackTile(i){let e=this._findMatchingGap(i.colspan);return this._markTilePosition(e,i),this.columnIndex=e+i.colspan,new Q9(this.rowIndex,e)}_findMatchingGap(i){i>this.tracker.length;let e=-1,n=-1;do{if(this.columnIndex+i>this.tracker.length){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e);continue}if(e=this.tracker.indexOf(0,this.columnIndex),e==-1){this._nextRow(),e=this.tracker.indexOf(0,this.columnIndex),n=this._findGapEndIndex(e);continue}n=this._findGapEndIndex(e),this.columnIndex=e+1}while(n-e*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}
+`,oP=new L("MAT_GRID_LIST"),J9=(()=>{class t{_element=d(Q);_gridList=d(oP,{optional:!0});_rowspan=1;_colspan=1;constructor(){}get rowspan(){return this._rowspan}set rowspan(e){this._rowspan=Math.round(vn(e))}get colspan(){return this._colspan}set colspan(e){this._colspan=Math.round(vn(e))}_setStyle(e,n){this._element.nativeElement.style[e]=n}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(n,o){n&2&&ne("rowspan",o.rowspan)("colspan",o.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:iP,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(n,o){n&1&&(De(),nt(0,"div",0),ae(1),rt())},styles:[`.mat-grid-list{display:block;position:relative}.mat-grid-tile{display:block;position:absolute;overflow:hidden}.mat-grid-tile .mat-grid-tile-header,.mat-grid-tile .mat-grid-tile-footer{display:flex;align-items:center;height:48px;color:#fff;background:rgba(0,0,0,.38);overflow:hidden;padding:0 16px;position:absolute;left:0;right:0}.mat-grid-tile .mat-grid-tile-header>*,.mat-grid-tile .mat-grid-tile-footer>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-tile-header.mat-2-line,.mat-grid-tile .mat-grid-tile-footer.mat-2-line{height:68px}.mat-grid-tile .mat-grid-list-text{display:flex;flex-direction:column;flex:auto;box-sizing:border-box;overflow:hidden}.mat-grid-tile .mat-grid-list-text>*{margin:0;padding:0;font-weight:normal;font-size:inherit}.mat-grid-tile .mat-grid-list-text:empty{display:none}.mat-grid-tile .mat-grid-tile-header{top:0}.mat-grid-tile .mat-grid-tile-footer{bottom:0}.mat-grid-tile .mat-grid-avatar{padding-right:16px}[dir=rtl] .mat-grid-tile .mat-grid-avatar{padding-right:0;padding-left:16px}.mat-grid-tile .mat-grid-avatar:empty{display:none}.mat-grid-tile-header{font-size:var(--mat-grid-list-tile-header-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-header .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-header .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-header-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-footer{font-size:var(--mat-grid-list-tile-footer-primary-text-size, var(--mat-sys-body-large))}.mat-grid-tile-footer .mat-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;box-sizing:border-box}.mat-grid-tile-footer .mat-line:nth-child(n+2){font-size:var(--mat-grid-list-tile-footer-secondary-text-size, var(--mat-sys-body-medium))}.mat-grid-tile-content{top:0;left:0;right:0;bottom:0;position:absolute;display:flex;align-items:center;justify-content:center;height:100%;padding:0;margin:0}
+`],encapsulation:2,changeDetection:0})}return t})();var eoe=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/,gu=class{_gutterSize;_rows=0;_rowspan=0;_cols;_direction;init(i,e,n,o){this._gutterSize=rP(i),this._rows=e.rowCount,this._rowspan=e.rowspan,this._cols=n,this._direction=o}getBaseTileSize(i,e){return`(${i}% - (${this._gutterSize} * ${e}))`}getTilePosition(i,e){return e===0?"0":bl(`(${i} + ${this._gutterSize}) * ${e}`)}getTileSize(i,e){return`(${i} * ${e}) + (${e-1} * ${this._gutterSize})`}setStyle(i,e,n){let o=100/this._cols,r=(this._cols-1)/this._cols;this.setColStyles(i,n,o,r),this.setRowStyles(i,e,o,r)}setColStyles(i,e,n,o){let r=this.getBaseTileSize(n,o),a=this._direction==="rtl"?"right":"left";i._setStyle(a,this.getTilePosition(r,e)),i._setStyle("width",bl(this.getTileSize(r,i.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(i){return`${this._rowspan} * ${this.getTileSize(i,1)}`}getComputedHeight(){return null}},K9=class extends gu{fixedRowHeight;constructor(i){super(),this.fixedRowHeight=i}init(i,e,n,o){super.init(i,e,n,o),this.fixedRowHeight=rP(this.fixedRowHeight),eoe.test(this.fixedRowHeight)}setRowStyles(i,e){i._setStyle("top",this.getTilePosition(this.fixedRowHeight,e)),i._setStyle("height",bl(this.getTileSize(this.fixedRowHeight,i.rowspan)))}getComputedHeight(){return["height",bl(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(i){i._setListStyle(["height",null]),i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}},X9=class extends gu{rowHeightRatio;baseTileHeight;constructor(i){super(),this._parseRatio(i)}setRowStyles(i,e,n,o){let r=n/this.rowHeightRatio;this.baseTileHeight=this.getBaseTileSize(r,o),i._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,e)),i._setStyle("paddingTop",bl(this.getTileSize(this.baseTileHeight,i.rowspan)))}getComputedHeight(){return["paddingBottom",bl(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(i){i._setListStyle(["paddingBottom",null]),i._tiles.forEach(e=>{e._setStyle("marginTop",null),e._setStyle("paddingTop",null)})}_parseRatio(i){let e=i.split(":");e.length,this.rowHeightRatio=parseFloat(e[0])/parseFloat(e[1])}},Z9=class extends gu{setRowStyles(i,e){let n=100/this._rowspan,o=(this._rows-1)/this._rows,r=this.getBaseTileSize(n,o);i._setStyle("top",this.getTilePosition(r,e)),i._setStyle("height",bl(this.getTileSize(r,i.rowspan)))}reset(i){i._tiles&&i._tiles.forEach(e=>{e._setStyle("top",null),e._setStyle("height",null)})}};function bl(t){return`calc(${t})`}function rP(t){return t.match(/([A-Za-z%]+)$/)?t:`${t}px`}var toe="fit",aP=(()=>{class t{_element=d(Q);_dir=d(bt,{optional:!0});_cols;_tileCoordinator;_rowHeight;_gutter="1px";_tileStyler;_tiles;constructor(){}get cols(){return this._cols}set cols(e){this._cols=Math.max(1,Math.round(vn(e)))}get gutterSize(){return this._gutter}set gutterSize(e){this._gutter=`${e??""}`}get rowHeight(){return this._rowHeight}set rowHeight(e){let n=`${e??""}`;n!==this._rowHeight&&(this._rowHeight=n,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){this.cols}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(e){this._tileStyler&&this._tileStyler.reset(this),e===toe?this._tileStyler=new Z9:e&&e.indexOf(":")>-1?this._tileStyler=new X9(e):this._tileStyler=new K9(e)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new Ff);let e=this._tileCoordinator,n=this._tiles.filter(r=>!r._gridList||r._gridList===this),o=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,n),this._tileStyler.init(this.gutterSize,e,this.cols,o),n.forEach((r,a)=>{let s=e.positions[a];this._tileStyler.setStyle(r,s.row,s.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(e){e&&(this._element.nativeElement.style[e[0]]=e[1])}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-grid-list"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,J9,5),n&2){let a;U(a=$())&&(o._tiles=a)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(n,o){n&2&&ne("cols",o.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[de([{provide:oP,useExisting:t}])],ngContentSelectors:iP,decls:2,vars:0,template:function(n,o){n&1&&(De(),nt(0,"div"),ae(1),rt())},styles:[Jie],encapsulation:2,changeDetection:0})}return t})(),sP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[H_,fe,H_,fe]})}return t})();function noe(t,i){t&1&&F(0,"fa-icon",7)}function ioe(t,i){if(t&1){let e=le();h(0,"mat-grid-tile")(1,"div",5),N("click",function(){let o=G(e).$implicit,r=M();return W(r.installTheme(o))}),h(2,"div",6),E(3,noe,1,0,"fa-icon",7),F(4,"div",8)(5,"div",9),_()()()}if(t&2){let e=i.$implicit,n=M();p(3),I(n.currentTheme.href===e.href?3:-1),p(),At("background",e.primary),p(),At("background",e.accent)}}var cP=(()=>{class t{constructor(){this.themeStorageService=d(JT),this.currentTheme={href:"denim-yellowgreen.css",primary:"#1074B9",accent:"#B4D575",isDark:!1,isDefault:!0},this.themes=[this.currentTheme,{href:"pictonblue-yellowgreen.css",primary:"#1DAEEC",accent:"#B4D575",isDark:!1},{href:"indigo-pink.css",primary:"#3F51B5",accent:"#E91E63",isDark:!1},{href:"deeppurple-amber.css",primary:"#673AB7",accent:"#FFC107",isDark:!1},{href:"pink-bluegrey.css",primary:"#E91E63",accent:"#607D8B",isDark:!0},{href:"purple-green.css",primary:"#9C27B0",accent:"#4CAF50",isDark:!0}]}ngOnInit(){let e=this.themeStorageService.getTheme();e&&(this.currentTheme=e)}installTheme(e){this.currentTheme=e,this.themeStorageService.installTheme(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-theme-picker"]],decls:8,vars:5,consts:[["themeMenu","matMenu"],["mat-icon-button","",3,"matMenuTriggerFor","matTooltip"],["icon","fill-drip","size","lg"],["x-position","before",1,"mifosx-theme-picker-menu"],["cols","2"],["mat-menu-item","",3,"click"],[1,"mifosx-theme-picker-swatch"],["icon","check-circle","size","lg",1,"mifosx-theme-chosen-icon"],[1,"mifosx-theme-picker-primary"],[1,"mifosx-theme-picker-accent"]],template:function(n,o){if(n&1&&(h(0,"button",1),S(1,"translate"),F(2,"fa-icon",2),_(),h(3,"mat-menu",3,0)(5,"mat-grid-list",4),Xe(6,ioe,6,5,"mat-grid-tile",null,ht),_()()),n&2){let r=Nt(4);D("matTooltip",Ft(k(1,3,"tooltips.Color Schemes")))("matMenuTriggerFor",r),p(6),Ze(o.themes)}},dependencies:[he,ve,ni,Nf,mo,Yt,ac,aP,J9,_l,Te],styles:[`.mifosx-theme-picker-menu .mat-menu-content{padding:8px}.mifosx-theme-picker-menu [mat-menu-item]{flex:0 0 auto;padding:0;overflow:hidden}.mifosx-theme-picker-menu .mifosx-theme-picker-swatch{position:relative;width:36px;height:36px;margin:6px;border-radius:50%;overflow:hidden}.mifosx-theme-picker-menu .mifosx-theme-picker-swatch .mifosx-theme-chosen-icon{color:#fff;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}.mifosx-theme-picker-menu .mifosx-theme-picker-swatch:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;box-sizing:border-box;border:1px solid rgba(0,0,0,.2);border-radius:50%}.mifosx-theme-picker-menu .mifosx-theme-picker-primary{width:100%;height:100%}.mifosx-theme-picker-menu .mifosx-theme-picker-accent{position:absolute;bottom:6px;width:100%;height:6px}
+`],encapsulation:2})}}return t})();function lP(){return t=>{let i=t.value;if(!i)return null;let e={};return i.length50&&(e.maxLength="Password must be maximum 50 characters long"),/[A-Z]/.test(i)||(e.uppercase="Password must contain at least one uppercase letter"),/[a-z]/.test(i)||(e.lowercase="Password must contain at least one lowercase letter"),/\d/.test(i)||(e.number="Password must contain at least one number"),/^(?:(.)(?!\1))+$/.test(i)||(e.repeated="Password must have not consecutive repeating characters"),/[@$!%*?&]/.test(i)||(e.specialChar="Password must contain at least one special character (@$!%*?&)"),Object.keys(e).length>0?e:null}}var Vf=class t{constructor(){this.minPasswordLength=mt.minPasswordLength|12}static{this.PASSWORD_REGEX="^(?!.*(.)\\1{1,})(?!.*\\s)(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[^\\w\\s]).{"+(mt.minPasswordLength|12)+",50}$"}getPasswordValidators(){return[en.required,en.minLength(this.minPasswordLength),en.maxLength(50),lP()]}confirmPassword(i){return e=>{if(e.value==null||e.value.length===0)return null;let n=e.root.get(i);if(n){let o=n.valueChanges.subscribe(()=>{e.updateValueAndValidity(),o.unsubscribe()})}return n&&n.value!==e.value?{notequal:!0}:null}}static{this.\u0275fac=function(e){return new(e||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}};var Bf;function ooe(){if(Bf===void 0&&(Bf=null,typeof window<"u")){let t=window;t.trustedTypes!==void 0&&(Bf=t.trustedTypes.createPolicy("angular#components",{createHTML:i=>i}))}return Bf}function _u(t){return ooe()?.createHTML(t)||t}function dP(t){return Error(`Unable to find icon with the name "${t}"`)}function roe(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function uP(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function mP(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}var os=class{url;svgText;options;svgElement;constructor(i,e,n){this.url=i,this.svgText=e,this.options=n}},fP=(()=>{class t{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,n,o,r){this._httpClient=e,this._sanitizer=n,this._errorHandler=r,this._document=o}addSvgIcon(e,n,o){return this.addSvgIconInNamespace("",e,n,o)}addSvgIconLiteral(e,n,o){return this.addSvgIconLiteralInNamespace("",e,n,o)}addSvgIconInNamespace(e,n,o,r){return this._addSvgIconConfig(e,n,new os(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,n,o,r){let a=this._sanitizer.sanitize(Fn.HTML,o);if(!a)throw mP(o);let s=_u(a);return this._addSvgIconConfig(e,n,new os("",s,r))}addSvgIconSet(e,n){return this.addSvgIconSetInNamespace("",e,n)}addSvgIconSetLiteral(e,n){return this.addSvgIconSetLiteralInNamespace("",e,n)}addSvgIconSetInNamespace(e,n,o){return this._addSvgIconSetConfig(e,new os(n,null,o))}addSvgIconSetLiteralInNamespace(e,n,o){let r=this._sanitizer.sanitize(Fn.HTML,n);if(!r)throw mP(n);let a=_u(r);return this._addSvgIconSetConfig(e,new os("",a,o))}registerFontClassAlias(e,n=e){return this._fontCssClassesByAlias.set(e,n),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let n=this._sanitizer.sanitize(Fn.RESOURCE_URL,e);if(!n)throw uP(e);let o=this._cachedIconsByUrl.get(n);return o?re(jf(o)):this._loadSvgIconFromConfig(new os(e,null)).pipe(Ot(r=>this._cachedIconsByUrl.set(n,r)),me(r=>jf(r)))}getNamedSvgIcon(e,n=""){let o=pP(n,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(n,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(n);return a?this._getSvgFromIconSetConfigs(e,a):Gr(dP(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?re(jf(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(me(n=>jf(n)))}_getSvgFromIconSetConfigs(e,n){let o=this._extractIconWithNameFromAnySet(e,n);if(o)return re(o);let r=n.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(Mo(s=>{let m=`Loading icon set URL: ${this._sanitizer.sanitize(Fn.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(m)),re(null)})));return Oa(r).pipe(me(()=>{let a=this._extractIconWithNameFromAnySet(e,n);if(!a)throw dP(e);return a}))}_extractIconWithNameFromAnySet(e,n){for(let o=n.length-1;o>=0;o--){let r=n[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ot(n=>e.svgText=n),me(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?re(null):this._fetchIcon(e).pipe(Ot(n=>e.svgText=n))}_extractSvgIconFromSet(e,n,o){let r=e.querySelector(`[id="${n}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(_u(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let n=this._document.createElement("DIV");n.innerHTML=e;let o=n.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let n=this._svgElementFromString(_u("")),o=e.attributes;for(let r=0;r_u(m)),qr(()=>this._inProgressUrlFetches.delete(a)),nd());return this._inProgressUrlFetches.set(a,c),c}_addSvgIconConfig(e,n,o){return this._svgIconConfigs.set(pP(e,n),o),this}_addSvgIconSetConfig(e,n){let o=this._iconSetConfigs.get(e);return o?o.push(n):this._iconSetConfigs.set(e,[n]),this}_svgElementFromConfig(e){if(!e.svgElement){let n=this._svgElementFromString(e.svgText);this._setSvgAttributes(n,e.options),e.svgElement=n}return e.svgElement}_getIconConfigFromResolvers(e,n){for(let o=0;oi?i.pathname+i.search:""}}var hP=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],uoe=hP.map(t=>`[${t}]`).join(", "),moe=/^url\(['"]?#(.*?)['"]?\)$/,Co=(()=>{class t{_elementRef=d(Q);_iconRegistry=d(fP);_location=d(loe);_errorHandler=d(_i);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let n=this._cleanupFontValue(e);n!==this._fontSet&&(this._fontSet=n,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let n=this._cleanupFontValue(e);n!==this._fontIcon&&(this._fontIcon=n,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=Se.EMPTY;constructor(){let e=d(new dn("aria-hidden"),{optional:!0}),n=d(coe,{optional:!0});n&&(n.color&&(this.color=this._defaultColor=n.color),n.fontSet&&(this.fontSet=n.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let n=e.split(":");switch(n.length){case 1:return["",n[0]];case 2:return n;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let n=this._location.getPathname();n!==this._previousPath&&(this._previousPath=n,this._prependPathToReferences(n))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,n=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();n--;){let o=e.childNodes[n];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,n=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),n.forEach(o=>e.classList.add(o)),this._previousFontSetClass=n,this.fontIcon!==this._previousFontIconClass&&!n.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let n=this._elementsWithExternalReferences;n&&n.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let n=e.querySelectorAll(uoe),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=n[r],c=s.getAttribute(a),m=c?c.match(moe):null;if(m){let f=o.get(s);f||(f=[],o.set(s,f)),f.push({name:a,value:m[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[n,o]=this._splitIconName(e);n&&(this._svgNamespace=n),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,n).pipe(Be(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${n}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(n,o){n&2&&(ne("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),Tt(o.color?"mat-"+o.color:""),oe("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",H],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:soe,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}
+`],encapsulation:2,changeDetection:0})}return t})(),Hf=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();function poe(t,i){if(t&1&&(h(0,"mat-error"),y(1),_()),t&2){let e=M();p(),ee("",e.label," is a required field.")}}function foe(t,i){if(t&1&&(h(0,"mat-error"),y(1),_()),t&2){let e=M();p(),T(e.customErrorMessage)}}var Uf=(()=>{class t{get matcher(){return this}get required(){return this._required??this.ngControl?.control?.hasValidator(en.required)??!1}set required(e){this._required=e}constructor(){this.ngControl=d(ei,{optional:!0,self:!0}),this.disabled=!1,this.icon="visibility_off",this.label=null,this.customErrorMessage=null,this.customErrorName=null,this.touched=!1,this.type="password",this.value=null,this._required=null,this._visible=!1,this.onChange=n=>{},this.onTouched=()=>{};let e=this.ngControl;e!==null&&(e.valueAccessor=this)}isErrorState(e,n){return this.touched&&(this.ngControl?.control?.invalid??!1)}onFocusOut(){this.touched=!0,this.onTouched(),this.matInput.updateErrorState()}onInput(e){this.value=e.currentTarget.value,this.touched=!0,this.onChange(this.value)}onVisibilityClick(e){this._visible?(this.icon="visibility_off",this.type="password"):(this.icon="visibility",this.type="text"),this._visible=!this._visible,e.stopPropagation()}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}writeValue(e){this.value=e}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-input-password"]],viewQuery:function(n,o){if(n&1&&ue(ti,5),n&2){let r;U(r=$())&&(o.matInput=r.first)}},inputs:{label:"label",customErrorMessage:"customErrorMessage",customErrorName:"customErrorName",required:"required"},decls:8,vars:9,consts:[[1,"flex-100"],["matInput","",3,"focusout","input","disabled","errorStateMatcher","required","type","value"],["matSuffix","",3,"click"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"mat-label"),y(2),_(),h(3,"input",1),N("focusout",function(){return o.onFocusOut()})("input",function(a){return o.onInput(a)}),_(),h(4,"mat-icon",2),N("click",function(a){return o.onVisibilityClick(a)}),y(5),_(),E(6,poe,2,1,"mat-error"),E(7,foe,2,1,"mat-error"),_()),n&2&&(p(2),T(o.label),p(),D("disabled",o.disabled)("errorStateMatcher",o.matcher)("required",o.required)("type",o.type)("value",o.value),p(2),T(o.icon),p(),I(o.ngControl.hasError("required")?6:-1),p(),I(o.ngControl.hasError(o.customErrorName)?7:-1))},dependencies:[he,ve,Bt,Cn,ao,Za,ti,Co],styles:["[_nghost-%COMP%]{width:100%}[_nghost-%COMP%]   mat-icon[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%]   .mat-form-field[_ngcontent-%COMP%]{width:100%}"]})}}return t})();var hoe=(t,i)=>({password:t,repeatPassword:i}),goe=t=>({minchar:t});function _oe(t,i){if(t&1&&(h(0,"p"),y(1),S(2,"translate"),_()),t&2){let e=M();p(),ee(" ",Zo(2,1,"labels.commons.Password validation",Eo(4,goe,e.minPasswordLength))," ")}}function boe(t,i){t&1&&(h(0,"p"),y(1),S(2,"translateKey"),_()),t&2&&(p(),ee(" ",Zo(2,1,"Passwords do not match","inputs")," "))}var gP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.formBuilder=d(Rs),this.passwordsUtility=d(Vf),this.minPasswordLength=mt.minPasswordLength|12,this.passwordInputType=["password","password"]}ngOnInit(){this.createChangePasswordForm()}createChangePasswordForm(){this.changePasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",[en.required,this.confirmPassword("password")]]},{updateOn:"blur"})}confirmPassword(e){return n=>{if(n.value==null||n.value.length===0)return null;let o=n.root.get(e);if(o){let r=o.valueChanges.subscribe(()=>{n.updateValueAndValidity(),r.unsubscribe()})}return o&&o.value!==n.value?{notequal:!0}:null}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-change-password-dialog"]],decls:23,vars:27,consts:[["password",""],["repeatPassword",""],["mat-dialog-title",""],["mat-dialog-content",""],[3,"formGroup"],[1,"layout-column"],["formControlName","password",3,"label"],["formControlName","repeatPassword",3,"label"],[1,"error"],["align","center"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"disabled","mat-dialog-close"]],template:function(n,o){if(n&1&&(h(0,"h1",2),y(1),S(2,"translate"),_(),h(3,"div",3)(4,"form",4)(5,"div",5),F(6,"mifosx-input-password",6,0),S(8,"translateKey"),h(9,"mat-error"),E(10,_oe,3,6,"p"),_(),F(11,"mifosx-input-password",7,1),S(13,"translateKey"),_(),h(14,"div",8),E(15,boe,3,4,"p"),_()()(),h(16,"mat-dialog-actions",9)(17,"button",10),y(18),S(19,"translate"),_(),h(20,"button",11),y(21),S(22,"translate"),_()()),n&2){let r,a;p(),T(k(2,12,"labels.heading.Change Password")),p(3),D("formGroup",o.changePasswordForm),p(2),D("label",Ft(Zo(8,14,"Password","inputs"))),p(4),I((r=o.changePasswordForm.get("password").errors)!=null&&r.uppercase||(r=o.changePasswordForm.get("password").errors)!=null&&r.number||(r=o.changePasswordForm.get("password").errors)!=null&&r.repeated||(r=o.changePasswordForm.get("password").errors)!=null&&r.specialChar||(r=o.changePasswordForm.get("password").errors)!=null&&r.minlength?10:-1),p(),D("label",Ft(Zo(13,17,"Confirm Password","inputs"))),p(4),I((a=o.changePasswordForm.get("repeatPassword").errors)!=null&&a.notequal?15:-1),p(3),T(k(19,20,"labels.buttons.Cancel")),p(2),D("disabled",!o.changePasswordForm.valid)("mat-dialog-close",D1(24,hoe,o.changePasswordForm.get("password").value,o.changePasswordForm.get("repeatPassword").value)),p(),ee(" ",k(22,22,"labels.buttons.Confirm")," ")}},dependencies:[he,ve,zs,mn,tr,ui,Ao,ao,vt,xn,An,Uf,zn,Ln,Te,Wc],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return t})();var voe=()=>({enable:!0}),_P=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-enable-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"p"),y(5),S(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),y(9),S(10,"translate"),_(),h(11,"button",4),y(12),S(13,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.heading.Enable")),p(4),St("",k(6,8,"labels.text.Are you sure you want to enable")," ",o.data.enableContext," ?"),p(4),T(k(10,10,"labels.buttons.Cancel")),p(2),D("mat-dialog-close",ko(14,voe)),p(),ee(" ",k(13,12,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var yoe=()=>({disable:!0}),bP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-disable-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"p"),y(5),S(6,"translate"),_()(),h(7,"mat-dialog-actions",2)(8,"button",3),y(9),S(10,"translate"),_(),h(11,"button",4),y(12),S(13,"translate"),_()()),n&2&&(p(),T(k(2,6,"labels.heading.Disable")),p(4),St("",k(6,8,"labels.text.Are you sure you want to disable")," ",o.data.disableContext," ?"),p(4),T(k(10,10,"labels.buttons.Cancel")),p(2),D("mat-dialog-close",ko(14,yoe)),p(),ee(" ",k(13,12,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var vP=(()=>{class t{constructor(){}setColor(e){let n="primary";switch(e){case"Basic":n="primary";break;case"Mild":n="primary";break;case"Strong":n="warn";break;default:n="warn"}return n}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Coe=()=>({confirm:!0}),yP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.dialogs=d(vP),this.data=d(En)}ngOnInit(){this.setColor()}setColor(){this.color=this.dialogs.setColor(this.data.type)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-confirmation-dialog"]],decls:12,vars:12,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),_(),h(2,"div",1)(3,"p"),y(4),_()(),h(5,"mat-dialog-actions",2)(6,"button",3),y(7),S(8,"translate"),_(),h(9,"button",4),y(10),S(11,"translate"),_()()),n&2&&(p(),T(o.data.heading),p(3),ee("",o.data.dialogContext," ?"),p(3),T(k(8,7,"labels.buttons.Cancel")),p(2),D("color",Ft(o.color))("mat-dialog-close",ko(11,Coe)),p(),ee(" ",k(11,9,"labels.buttons.Confirm")," "))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();function xoe(t,i){if(t&1&&(h(0,"p"),y(1),_()),t&2){let e=M();p(),T(e.displayData)}}function Moe(t,i){if(t&1&&F(0,"span",2),t&2){let e=M();D("innerHTML",e.sanitizedData,jc)}}var CP=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.sanitizer=d(Ga),this.showAsCode=!1;let e=this.data;this.showAsCode=typeof e=="string"&&e.startsWith("
")}get displayData(){return typeof this.data=="string"?this.data:this.data!=null?JSON.stringify(this.data):""}get sanitizedData(){return this.sanitizer.sanitize(Fn.HTML,this.displayData)||""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-error-dialog"]],decls:10,vars:8,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[3,"innerHTML"],["align","left"],["mat-raised-button","","mat-dialog-close",""]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1),E(4,xoe,2,1,"p"),E(5,Moe,1,1,"span",2),_(),h(6,"mat-dialog-actions",3)(7,"button",4),y(8),S(9,"translate"),_()()),n&2&&(p(),T(k(2,4,"Error Log")),p(3),I(o.showAsCode?-1:4),p(),I(o.showAsCode?5:-1),p(3),T(k(9,6,"Cancel")))},dependencies:[he,ve,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var xP=(()=>{class t{constructor(){this.http=d(Bn)}getNotifications(e,n){let o=new te().set("isRead",e.toString()).set("limit",n);return this.http.get("/notifications",{params:o})}updateNotifications(){return this.http.put("/notifications",{})}getMockUnreadNotification(){let e=new Date;return re({totalFilteredRecords:1,pageItems:[{id:Math.floor(Math.random()*100),objectType:"client",objectId:Math.floor(Math.random()*10),action:"clientCreated",actorId:2,content:"Client Created",isRead:!1,isSystemGenerated:!1,createdAt:`${e.toLocaleDateString()} ${e.getHours()}:${e.getMinutes()}:${e.getSeconds()}`}]})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var MP="mat-badge-content",woe=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],decls:0,vars:0,template:function(n,o){},styles:[`.mat-badge{position:relative}.mat-badge.mat-badge{overflow:visible}.mat-badge-content{position:absolute;text-align:center;display:inline-block;transition:transform 200ms ease-in-out;transform:scale(0.6);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;box-sizing:border-box;pointer-events:none;background-color:var(--mat-badge-background-color, var(--mat-sys-error));color:var(--mat-badge-text-color, var(--mat-sys-on-error));font-family:var(--mat-badge-text-font, var(--mat-sys-label-small-font));font-weight:var(--mat-badge-text-weight, var(--mat-sys-label-small-weight));border-radius:var(--mat-badge-container-shape, var(--mat-sys-corner-full))}.mat-badge-above .mat-badge-content{bottom:100%}.mat-badge-below .mat-badge-content{top:100%}.mat-badge-before .mat-badge-content{right:100%}[dir=rtl] .mat-badge-before .mat-badge-content{right:auto;left:100%}.mat-badge-after .mat-badge-content{left:100%}[dir=rtl] .mat-badge-after .mat-badge-content{left:auto;right:100%}@media(forced-colors: active){.mat-badge-content{outline:solid 1px;border-radius:0}}.mat-badge-disabled .mat-badge-content{background-color:var(--mat-badge-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-error) 38%, transparent));color:var(--mat-badge-disabled-state-text-color, var(--mat-sys-on-error))}.mat-badge-hidden .mat-badge-content{display:none}.ng-animate-disabled .mat-badge-content,.mat-badge-content._mat-animation-noopable{transition:none}.mat-badge-content.mat-badge-active{transform:none}.mat-badge-small .mat-badge-content{width:var(--mat-badge-legacy-small-size-container-size, unset);height:var(--mat-badge-legacy-small-size-container-size, unset);min-width:var(--mat-badge-small-size-container-size, 6px);min-height:var(--mat-badge-small-size-container-size, 6px);line-height:var(--mat-badge-small-size-line-height, 6px);padding:var(--mat-badge-small-size-container-padding, 0);font-size:var(--mat-badge-small-size-text-size, 0);margin:var(--mat-badge-small-size-container-offset, -6px 0)}.mat-badge-small.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-small-size-container-overlap-offset, -6px)}.mat-badge-medium .mat-badge-content{width:var(--mat-badge-legacy-container-size, unset);height:var(--mat-badge-legacy-container-size, unset);min-width:var(--mat-badge-container-size, 16px);min-height:var(--mat-badge-container-size, 16px);line-height:var(--mat-badge-line-height, 16px);padding:var(--mat-badge-container-padding, 0 4px);font-size:var(--mat-badge-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-container-offset, -12px 0)}.mat-badge-medium.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-container-overlap-offset, -12px)}.mat-badge-large .mat-badge-content{width:var(--mat-badge-legacy-large-size-container-size, unset);height:var(--mat-badge-legacy-large-size-container-size, unset);min-width:var(--mat-badge-large-size-container-size, 16px);min-height:var(--mat-badge-large-size-container-size, 16px);line-height:var(--mat-badge-large-size-line-height, 16px);padding:var(--mat-badge-large-size-container-padding, 0 4px);font-size:var(--mat-badge-large-size-text-size, var(--mat-sys-label-small-size));margin:var(--mat-badge-large-size-container-offset, -12px 0)}.mat-badge-large.mat-badge-overlap .mat-badge-content{margin:var(--mat-badge-large-size-container-overlap-offset, -12px)}
+`],encapsulation:2,changeDetection:0})}return t})(),wP=(()=>{class t{_ngZone=d(se);_elementRef=d(Q);_ariaDescriber=d(Y1);_renderer=d(Ke);_animationsDisabled=Ue();_idGenerator=d(He);get color(){return this._color}set color(e){this._setColor(e),this._color=e}_color="primary";overlap=!0;disabled;position="above after";get content(){return this._content}set content(e){this._updateRenderedContent(e)}_content;get description(){return this._description}set description(e){this._updateDescription(e)}_description;size="medium";hidden;_badgeElement;_inlineBadgeDescription;_isInitialized=!1;_interactivityChecker=d(Vs);_document=d(Me);constructor(){let e=d(at);e.load(woe),e.load(_o)}isAbove(){return this.position.indexOf("below")===-1}isAfter(){return this.position.indexOf("before")===-1}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&(this._renderer.destroyNode(this._badgeElement),this._inlineBadgeDescription?.remove()),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_isHostInteractive(){return this._interactivityChecker.isFocusable(this._elementRef.nativeElement,{ignoreVisibility:!0})}_createBadgeElement(){let e=this._renderer.createElement("span"),n="mat-badge-active";return e.setAttribute("id",this._idGenerator.getId("mat-badge-content-")),e.setAttribute("aria-hidden","true"),e.classList.add(MP),this._animationsDisabled&&e.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(e),typeof requestAnimationFrame=="function"&&!this._animationsDisabled?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{e.classList.add(n)})}):e.classList.add(n),e}_updateRenderedContent(e){let n=`${e??""}`.trim();this._isInitialized&&n&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=n),this._content=n}_updateDescription(e){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),(!e||this._isHostInteractive())&&this._removeInlineDescription(),this._description=e,this._isHostInteractive()?this._ariaDescriber.describe(this._elementRef.nativeElement,e):this._updateInlineDescription()}_updateInlineDescription(){this._inlineBadgeDescription||(this._inlineBadgeDescription=this._document.createElement("span"),this._inlineBadgeDescription.classList.add("cdk-visually-hidden")),this._inlineBadgeDescription.textContent=this.description,this._badgeElement?.appendChild(this._inlineBadgeDescription)}_removeInlineDescription(){this._inlineBadgeDescription?.remove(),this._inlineBadgeDescription=void 0}_setColor(e){let n=this._elementRef.nativeElement.classList;n.remove(`mat-badge-${this._color}`),e&&n.add(`mat-badge-${e}`)}_clearExistingBadges(){let e=this._elementRef.nativeElement.querySelectorAll(`:scope > .${MP}`);for(let n of Array.from(e))n!==this._badgeElement&&n.remove()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(n,o){n&2&&oe("mat-badge-overlap",o.overlap)("mat-badge-above",o.isAbove())("mat-badge-below",!o.isAbove())("mat-badge-before",!o.isAfter())("mat-badge-after",o.isAfter())("mat-badge-small",o.size==="small")("mat-badge-medium",o.size==="medium")("mat-badge-large",o.size==="large")("mat-badge-hidden",o.hidden||!o.content)("mat-badge-disabled",o.disabled)},inputs:{color:[0,"matBadgeColor","color"],overlap:[2,"matBadgeOverlap","overlap",H],disabled:[2,"matBadgeDisabled","disabled",H],position:[0,"matBadgePosition","position"],content:[0,"matBadge","content"],description:[0,"matBadgeDescription","description"],size:[0,"matBadgeSize","size"],hidden:[2,"matBadgeHidden","hidden",H]}})}return t})(),DP=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[Ka,fe,fe]})}return t})();var SP=(t,i)=>[t,i];function Doe(t,i){t&1&&(h(0,"div",6)(1,"mat-icon",7),y(2,"notifications_none"),_(),h(3,"p",8),y(4),S(5,"translate"),_()()),t&2&&(p(4),T(k(5,1,"labels.text.No notifications")))}function Soe(t,i){if(t&1&&(h(0,"button",12)(1,"div",14)(2,"span",15),y(3),_(),h(4,"span",16),y(5,"\u25CF"),_()(),h(6,"span",17),y(7),_()()),t&2){let e=i.$implicit,n=M(2);D("routerLink",D1(3,SP,n.routeMap[e.objectType],e.objectId)),p(3),T(e.content),p(4),T(e.createdAt)}}function koe(t,i){if(t&1&&(h(0,"button",13)(1,"div",14)(2,"span",15),y(3),_()(),h(4,"span",17),y(5),_()()),t&2){let e=i.$implicit,n=M(2);D("routerLink",D1(3,SP,n.routeMap[e.objectType],e.objectId)),p(3),T(e.content),p(2),T(e.createdAt)}}function Eoe(t,i){if(t&1&&(h(0,"div",9)(1,"h3",10),y(2),S(3,"translate"),_()(),h(4,"div",11),Xe(5,Soe,8,6,"button",12,ht),Xe(7,koe,6,6,"button",13,ht),_()),t&2){let e=M();p(2),T(k(3,1,"labels.menus.Notifications")),p(3),Ze(e.unreadNotifications),p(2),Ze(e.displayedReadNotifications)}}var kP=(()=>{class t{constructor(){this.notificationsService=d(xP),this.waitTime=mt.waitTimeForNotifications||60,this.readNotifications=[],this.displayedReadNotifications=[],this.unreadNotifications=[],this.routeMap={client:"/clients/",group:"/groups/",loan:"/loans-accounts/",center:"/centers/",shareAccount:"/shares-accounts/",fixedDeposit:"/fixed-deposits-accounts/",recurringDepositAccount:"/recurring-deposits-accounts/",savingsAccount:"/savings-accounts/",shareProduct:"/products/share-products/",loanProduct:"/products/loan-products/"},Oa([this.notificationsService.getNotifications(!0,9),this.notificationsService.getNotifications(!1,9)]).subscribe(e=>{this.readNotifications=e[0].pageItems,this.unreadNotifications=e[1].pageItems,this.setNotifications()})}ngOnInit(){this.fetchUnreadNotifications()}ngOnDestroy(){this.destroy()}destroy(){clearTimeout(this.timer)}setNotifications(){let e=this.unreadNotifications.length;this.displayedReadNotifications=e<9?this.readNotifications.slice(0,9-e):[]}fetchUnreadNotifications(){this.notificationsService.getNotifications(!1,9).subscribe(e=>{this.unreadNotifications=this.unreadNotifications.concat(e.pageItems),this.setNotifications()}),this.timer=setTimeout(()=>{this.fetchUnreadNotifications()},this.waitTime*1e3)}menuClosed(){this.notificationsService.updateNotifications().subscribe(()=>{}),this.readNotifications=this.unreadNotifications.concat(this.readNotifications),this.unreadNotifications=[],this.setNotifications()}mockNotifications(){this.notificationsService.getMockUnreadNotification().subscribe(e=>{this.unreadNotifications=this.unreadNotifications.concat(e.pageItems),this.setNotifications()})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-notifications-tray"]],decls:12,vars:15,consts:[["notificationsMenu","matMenu"],["mat-icon-button","","matBadgeColor","warn","matBadgeSize","medium",1,"ml-1",3,"menuClosed","matTooltip","matMenuTriggerFor","matBadge","matBadgeHidden"],[1,"sr-only"],["icon","bell","size","lg"],["xPosition","before","yPosition","below",1,"mifosx-notifications-menu",3,"overlapTrigger"],[1,"notifications-container"],[1,"no-notifications"],[1,"no-notifications-icon"],[1,"no-notifications-text"],[1,"notifications-header"],[1,"notifications-title"],[1,"notifications-list"],["mat-menu-item","",1,"notification-item","unread",3,"routerLink"],["mat-menu-item","",1,"notification-item","read",3,"routerLink"],[1,"notification-content"],[1,"notification-text"],[1,"unread-indicator"],[1,"notification-time"]],template:function(n,o){if(n&1){let r=le();h(0,"button",1),S(1,"translate"),S(2,"translate"),N("menuClosed",function(){return G(r),W(o.menuClosed())}),h(3,"span",2),y(4),S(5,"translate"),_(),F(6,"fa-icon",3),_(),h(7,"mat-menu",4,0)(9,"div",5),E(10,Doe,6,3,"div",6)(11,Eoe,9,3),_()()}if(n&2){let r=Nt(8);D("matTooltip",Ft(k(1,9,"tooltips.Notifications")))("matMenuTriggerFor",r)("matBadge",o.unreadNotifications.length)("matBadgeHidden",!o.unreadNotifications.length),ne("aria-label",k(2,11,"tooltips.Notifications")),p(4),T(k(5,13,"tooltips.Notifications")),p(3),D("overlapTrigger",!1),p(3),I(o.unreadNotifications.length===0&&o.displayedReadNotifications.length===0?10:11)}},dependencies:[he,ve,m2,ni,mo,Nf,wP,Yt,ac,Co,_l,Te],styles:[`.column-mandatory{color:#5cb85c;text-align:center}.not-column-mandatory{color:#666f73;text-align:center}.cdk-drag-placeholder{background:#3498db}.yes{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no{color:red;background-color:red;height:4px;cursor:none}.strike{text-decoration:line-through;color:red}.transfer{color:#16a085}.linked{color:#4461e2}.accrual{color:#999}.fa-question{color:#4461e2}.enabled{color:#32cd32}.disabled{color:#f44366}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.mifosx-notifications-menu{margin-top:8px;overflow:hidden}.mifosx-notifications-menu .mat-mdc-menu-content,.mifosx-notifications-menu .mat-menu-content{padding:0;overflow:hidden}.mifosx-notifications-menu .notifications-container{width:320px;max-width:320px;max-height:500px;display:flex;flex-direction:column;overflow:hidden;overflow-x:hidden;box-sizing:border-box}.mifosx-notifications-menu .notifications-header{padding:16px 16px 12px;border-bottom:1px solid #bdc3c7;background-color:transparent}.mifosx-notifications-menu .notifications-header .notifications-title{margin:0;font-size:16px;font-weight:500;color:#353b3b;line-height:1.5}.mifosx-notifications-menu .no-notifications{padding:48px 32px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:200px}.mifosx-notifications-menu .no-notifications .no-notifications-icon{font-size:64px;width:64px;height:64px;color:#95a5a6;margin-bottom:16px}.mifosx-notifications-menu .no-notifications .no-notifications-text{color:#7f8c8d;font-size:14px;margin:0;font-weight:500}.mifosx-notifications-menu .notifications-list{max-height:500px;overflow:hidden auto;width:100%;box-sizing:border-box;scrollbar-width:none;-ms-overflow-style:none}.mifosx-notifications-menu .notifications-list::-webkit-scrollbar{display:none}.mifosx-notifications-menu .notification-item{display:flex;flex-direction:column;align-items:flex-start;padding:12px 16px;min-height:0;height:auto;line-height:1.5;border-bottom:1px solid #bdc3c7;transition:background-color .2s ease;width:100%;max-width:100%;box-sizing:border-box;overflow:hidden}.mifosx-notifications-menu .notification-item:hover{background-color:#f5f5f5}.mifosx-notifications-menu .notification-item:last-child{border-bottom:none}.mifosx-notifications-menu .notification-item .notification-content{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:8px;margin-bottom:4px;box-sizing:border-box;min-width:0}.mifosx-notifications-menu .notification-item .notification-content .notification-text{flex:1;font-size:14px;line-height:1.4;text-align:left;word-wrap:break-word;overflow-wrap:break-word;min-width:0;overflow:hidden}.mifosx-notifications-menu .notification-item .notification-content .unread-indicator{color:#3498db;font-size:8px;margin-top:6px;flex-shrink:0}.mifosx-notifications-menu .notification-item .notification-time{font-size:12px;color:#7f8c8d;font-weight:400;margin-top:2px;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mifosx-notifications-menu .notification-item.unread{background-color:#ecf0f1}.mifosx-notifications-menu .notification-item.unread .notification-content .notification-text{font-weight:500;color:#353b3b}.mifosx-notifications-menu .notification-item.unread:hover{background-color:#f5f5f5}.mifosx-notifications-menu .notification-item.read{background-color:transparent}.mifosx-notifications-menu .notification-item.read .notification-content .notification-text{font-weight:400;color:#7f8c8d}.dark-theme .mifosx-notifications-menu .notifications-header{border-bottom:1px solid #7f8c8d}.dark-theme .mifosx-notifications-menu .notifications-header .notifications-title{color:#fff}.dark-theme .mifosx-notifications-menu .no-notifications .no-notifications-icon{color:#fff;opacity:.6}.dark-theme .mifosx-notifications-menu .no-notifications .no-notifications-text{color:#fff}.dark-theme .mifosx-notifications-menu .notification-item{border-bottom:1px solid #7f8c8d}.dark-theme .mifosx-notifications-menu .notification-item:hover{background-color:#34495e}.dark-theme .mifosx-notifications-menu .notification-item .notification-content .notification-text{color:#fff}.dark-theme .mifosx-notifications-menu .notification-item .notification-content .unread-indicator{color:#3498db}.dark-theme .mifosx-notifications-menu .notification-item .notification-time{color:#fff;opacity:.7}.dark-theme .mifosx-notifications-menu .notification-item.unread{background-color:#34495e}.dark-theme .mifosx-notifications-menu .notification-item.unread .notification-content .notification-text{color:#fff}.dark-theme .mifosx-notifications-menu .notification-item.unread:hover{background-color:#2c3e50}.dark-theme .mifosx-notifications-menu .notification-item.read{background-color:transparent}.dark-theme .mifosx-notifications-menu .notification-item.read .notification-content .notification-text{color:#fff;opacity:.8}
+`],encapsulation:2})}}return t})();var sc=(function(t){return t[t.State=0]="State",t[t.Transition=1]="Transition",t[t.Sequence=2]="Sequence",t[t.Group=3]="Group",t[t.Animate=4]="Animate",t[t.Keyframes=5]="Keyframes",t[t.Style=6]="Style",t[t.Trigger=7]="Trigger",t[t.Reference=8]="Reference",t[t.AnimateChild=9]="AnimateChild",t[t.AnimateRef=10]="AnimateRef",t[t.Query=11]="Query",t[t.Stagger=12]="Stagger",t})(sc||{}),Ioe="*";function nb(t,i){return{type:sc.Trigger,name:t,definitions:i,options:{}}}function $f(t,i=null){return{type:sc.Animate,styles:i,timings:t}}function LNe(t,i=null){return{type:sc.Sequence,steps:t,options:i}}function bu(t){return{type:sc.Style,styles:t,offset:null}}function Ooe(t,i,e){return{type:sc.State,name:t,styles:i,options:e}}function Gf(t,i,e=null){return{type:sc.Transition,expr:t,animation:i,options:e}}var eb=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(i=0,e=0){this.totalTime=i+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}onStart(i){this._originalOnStartFns.push(i),this._onStartFns.push(i)}onDone(i){this._originalOnDoneFns.push(i),this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(i=>i()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(i){this._position=this.totalTime?i*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},tb=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(i){this.players=i;let e=0,n=0,o=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++e==r&&this._onFinish()}),a.onDestroy(()=>{++n==r&&this._onDestroy()}),a.onStart(()=>{++o==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,s)=>Math.max(a,s.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(i=>i()),this._onDoneFns=[])}init(){this.players.forEach(i=>i.init())}onStart(i){this._onStartFns.push(i)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(i=>i()),this._onStartFns=[])}onDone(i){this._onDoneFns.push(i)}onDestroy(i){this._onDestroyFns.push(i)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(i=>i.play())}pause(){this.players.forEach(i=>i.pause())}restart(){this.players.forEach(i=>i.restart())}finish(){this._onFinish(),this.players.forEach(i=>i.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(i=>i.destroy()),this._onDestroyFns.forEach(i=>i()),this._onDestroyFns=[])}reset(){this.players.forEach(i=>i.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(i){let e=i*this.totalTime;this.players.forEach(n=>{let o=n.totalTime?Math.min(1,e/n.totalTime):1;n.setPosition(o)})}getPosition(){let i=this.players.reduce((e,n)=>e===null||n.totalTime>e.totalTime?n:e,null);return i!=null?i.getPosition():0}beforeDestroy(){this.players.forEach(i=>{i.beforeDestroy&&i.beforeDestroy()})}triggerCallback(i){let e=i=="start"?this._onStartFns:this._onDoneFns;e.forEach(n=>n()),e.length=0}},Toe="!";function Poe(t,i){if(t&1&&(h(0,"mat-option",9),y(1),S(2,"translate"),_()),t&2){let e=i.$implicit;D("value",e.value),p(),ee(" ",k(2,2,"labels.text."+e.name)," ")}}function Loe(t,i){if(t&1){let e=le();h(0,"div",1)(1,"mat-form-field",5)(2,"mat-label"),y(3),S(4,"translate"),_(),h(5,"input",6),N("keydown.enter",function(){G(e);let o=M();return W(o.search())}),_()(),h(6,"mat-form-field",7)(7,"mat-label"),y(8),S(9,"translate"),_(),h(10,"mat-select",8),Xe(11,Poe,3,4,"mat-option",9,ht),_()()()}if(t&2){let e=M();D("@fadeInOut",void 0),p(3),T(k(4,5,"labels.text.Search")),p(2),D("formControl",e.query),p(3),T(k(9,7,"labels.inputs.Resource")),p(2),D("formControl",e.resource),p(),Ze(e.resourceOptions)}}var EP=(()=>{class t{constructor(){this.router=d(bo),this.query=new Hi(""),this.resource=new Hi(""),this.searchVisible=!1,this.resourceOptions=[{name:"All",value:"clients,clientIdentifiers,groups,savings,shares,loans"},{name:"Clients",value:"clients,clientIdentifiers"},{name:"Groups",value:"groups"},{name:"Savings",value:"savings"},{name:"Shares",value:"shares"},{name:"Loans",value:"loans"}],this.resource.patchValue("clients,clientIdentifiers,groups,savings,shares,loans")}toggleSearchVisibility(){this.searchVisible=!this.searchVisible}search(){let e={query:this.query.value,resource:this.resource.value};this.router.navigate(["/search"],{queryParams:e})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-search-tool"]],decls:6,vars:5,consts:[[1,"flex-100","layout-row"],[1,"search-bar","flex-90","layout-row","hide-lt-sm"],[1,"search-icon","flex-10"],["mat-icon-button","",1,"hide-lt-sm",3,"click"],["icon","search","size","lg",3,"matTooltip"],[1,"search","flex-45"],["matInput","","type","text",3,"keydown.enter","formControl"],[1,"resource","flex-50"],[3,"formControl"],[3,"value"]],template:function(n,o){n&1&&(h(0,"div",0),E(1,Loe,13,9,"div",1),h(2,"div",2)(3,"button",3),N("click",function(){return o.toggleSearchVisibility()}),F(4,"fa-icon",4),S(5,"translate"),_()()()),n&2&&(p(),I(o.searchVisible?1:-1),p(3),D("matTooltip",Ft(k(5,3,"labels.text.Search"))))},dependencies:[he,ve,yi,mn,Si,Bt,Cn,ti,qn,ln,ni,Yt,mo,Te],styles:[".search-bar[_ngcontent-%COMP%]   .search[_ngcontent-%COMP%]{max-width:500px;width:100%;font-size:1rem;color:#fff}.search-bar[_ngcontent-%COMP%]   .resource[_ngcontent-%COMP%]{min-width:100px;max-width:100px;width:100%;font-size:1rem;color:#fff;padding-left:5px}.search-icon[_ngcontent-%COMP%]{margin-left:1rem;display:flex;align-items:center}.mat-mdc-floating-label[_ngcontent-%COMP%], mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]{color:#fff!important;height:16px;transition:height ease-in-out .4s}mat-form-field[_ngcontent-%COMP%]   input[_ngcontent-%COMP%]:focus{color:#fff!important;background-color:transparent;height:16px;transition:height ease-in-out .4s}"],data:{animation:[nb("fadeInOut",[Gf(":enter",[bu({opacity:0}),$f(500,bu({opacity:1}))]),Gf(":leave",[$f(500,bu({opacity:0}))])])]}})}}return t})();var Wf=class{constructor(){this.makeCombination()}makeCombination(){this.buttonsArray=[{title:"Navigation Page",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"n",route:"navigation"},{title:"Run Report",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"t",route:"",id:"runReport"},{title:"Checker Inbox & Pending Tasks",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"i",route:"checker-inbox-and-tasks/checker-inbox"},{title:"Create Client",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"c",route:"clients/create"},{title:"Create Group",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"g",route:"groups/create"},{title:"Create Center",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"q",route:"centers/create"},{title:"Frequent Posting",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"f",route:"accounting/journal-entries/frequent-postings"},{title:"Closure Entries",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"e",route:"accounting/closing-entries"},{title:"Journal Entry",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"j",route:"accounting/journal-entries/create"},{title:"Reports",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"r",route:"reports"},{title:"Accounting",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"a",route:"accounting"},{title:"Save/Submit Forms",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"s",route:"",id:"submit"},{title:"Cancel",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"x",route:"",id:"cancel"},{title:"Help",ctrlKey:!1,shiftKey:!1,altKey:!0,key:"h",route:"",id:"help"},{title:"Logout",ctrlKey:!0,shiftKey:!1,altKey:!1,key:"l",route:"",id:"logout"}]}get buttonCombinations(){return this.buttonsArray}};function Aoe(t,i){t&1&&(h(0,"span")(1,"span",6),y(2),S(3,"translate"),_(),y(4," + "),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Ctrl")))}function zoe(t,i){t&1&&(h(0,"span")(1,"span",6),y(2),S(3,"translate"),_(),y(4," + "),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Shift")))}function Roe(t,i){t&1&&(h(0,"span")(1,"span",6),y(2),S(3,"translate"),_(),y(4," + "),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Alt")))}function Noe(t,i){if(t&1&&(h(0,"span")(1,"span",6),y(2),_()()),t&2){let e=M().$implicit;p(2),T(e.key)}}function Foe(t,i){if(t&1&&(F(0,"mat-divider",3),h(1,"div",4)(2,"span",5),E(3,Aoe,5,3,"span"),E(4,zoe,5,3,"span"),E(5,Roe,5,3,"span"),E(6,Noe,3,1,"span"),_(),h(7,"span",5),y(8),_()()),t&2){let e=i.$implicit;D("inset",!0),p(3),I(e.ctrlKey?3:-1),p(),I(e.shiftKey?4:-1),p(),I(e.altKey?5:-1),p(),I(e.key?6:-1),p(2),T(e.title)}}var IP=(()=>{class t{constructor(){this.dialogRef=d(qt)}ngOnInit(){this.dialogRef.updateSize("800px"),this.buttonConfig=new Wf}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-keyboard-shortcuts-dialog"]],decls:7,vars:3,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"layout-column","gap-2px"],[3,"inset"],[1,"flex-fill","flex-50"],[1,"flex-50"],[1,"modifier-key"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"div",2),Xe(5,Foe,9,6,null,null,ht),_()()),n&2&&(p(),T(k(2,1,"labels.heading.Keyboard Shortcuts")),p(4),Ze(o.buttonConfig.buttonCombinations))},dependencies:[he,ve,xn,An,rc,Te],styles:[".modifier-key[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.3019607843);padding:.3rem;background:#f8f8f8;color:#00000086;font-weight:700;border-radius:.3rem}.mat-divider.mat-divider-inset[_ngcontent-%COMP%]{margin-left:0}"]})}}return t})();function Voe(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),h(3,"strong"),y(4),S(5,"translate"),_()()),t&2&&(p(),ee(" ",k(2,2,"labels.inputs.Url")," "),p(3),T(k(5,4,"labels.commons.is required")))}function Boe(t,i){if(t&1&&(h(0,"mat-option",9),y(1),_()),t&2){let e=i.$implicit;D("value",e),p(),ee(" ",e," ")}}function joe(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",1),N("selectionChange",function(){G(e);let o=M();return W(o.setServer())}),h(5,"div",2)(6,"form",3),N("ngSubmit",function(){G(e);let o=M();return W(o.addNewServer())}),h(7,"div",4)(8,"mat-form-field",5)(9,"span",6)(10,"mat-icon"),y(11,"language"),_()(),h(12,"mat-label"),y(13),S(14,"translate"),_(),F(15,"input",7),E(16,Voe,6,6,"mat-error"),_(),h(17,"button",8),y(18),S(19,"translate"),_()()()(),Xe(20,Boe,2,2,"mat-option",9,ht),_()()}if(t&2){let e=M();p(2),T(k(3,7,"labels.inputs.Server")),p(2),D("formControl",e.serverSelector),p(2),D("formGroup",e.form),p(7),T(k(14,9,"labels.placeholders.Add new server")),p(3),I(e.form.controls.url.hasError("required")?16:-1),p(),D("disabled",e.form.invalid),p(),ee(" ",k(19,11,"labels.buttons.Add")," "),p(2),Ze(e.servers)}}var OP=(()=>{class t{constructor(){this.settingsService=d(Xt),this.dialog=d(Wi),this.formBuilder=d(Rs),this.serverSelector=new Hi(""),this.existMoreThanOneServer=!1}ngOnInit(){this.servers=this.settingsService.servers,this.existMoreThanOneServer=this.servers&&this.servers.length>1,this.existMoreThanOneServer?(this.existMoreThanOneServer=!0,this.serverSelector.patchValue(this.settingsService.server),this.form=this.formBuilder.group({url:["",[en.required]]})):this.settingsService.setServer(this.servers[0])}setServer(){this.settingsService.setServer(this.serverSelector.value)}addNewServer(){let e,n=this.form.value.url;n.endsWith("/")&&(n=n.slice(0,-1)),this.settingsService.setServer(n),e=this.settingsService.servers,e.push(n),this.settingsService.setServers(e),window.location.reload()}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-server-selector"]],decls:1,vars:1,consts:[["id","server-selector"],["panelClass","server-panel","panelWidth","null",3,"selectionChange","formControl"],[1,"sticky"],[3,"ngSubmit","formGroup"],[1,"actions"],[1,"ml","align-start"],["matPrefix",""],["matInput","","type","text","autocomplete","off","formControlName","url"],["type","submit","mat-raised-button","","color","primary",1,"ml",3,"disabled"],[3,"value"]],template:function(n,o){n&1&&E(0,joe,22,13,"mat-form-field",0),n&2&&I(o.existMoreThanOneServer?0:-1)},dependencies:[he,ve,zs,yi,mn,tr,Si,ui,Ao,Bt,Cn,ao,ti,qn,ln,vt,q0,Co,Te],styles:[".actions[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-evenly}.ml[_ngcontent-%COMP%]{margin-left:10px}.sticky[_ngcontent-%COMP%]{position:sticky;z-index:1;top:0;background-color:#fff;box-shadow:1px -2px 10px gray}mat-form-field[_ngcontent-%COMP%]{width:96%}"]})}}return t})();function Hoe(t,i){if(t&1&&(h(0,"mat-option",4),y(1),_()),t&2){let e=i.$implicit;D("value",e),p(),ee(" ",e," ")}}var TP=(()=>{class t{constructor(){this.settingsService=d(Xt),this.tenantSelector=new Hi}ngOnInit(){this.tenantSelector.setValue(this.settingsService.tenantIdentifier),this.tenants.length>1?this.tenantSelector.enable:this.tenantSelector.disable}get tenants(){return this.settingsService.tenantIdentifiers||[]}setTenantIdentifier(){this.settingsService.setTenantIdentifier(this.tenantSelector.value)}allowSelection(){return this.tenants.length>1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-tenant-selector"]],decls:9,vars:4,consts:[["id","tenant-selector",1,"flex-fill","align-center"],["matPrefix","",1,"m-r-10"],["icon","building","size","lg"],[1,"tenantselector",3,"selectionChange","formControl"],[3,"value"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"span",1),F(2,"fa-icon",2),_(),h(3,"mat-label"),y(4),S(5,"translate"),_(),h(6,"mat-select",3),N("selectionChange",function(){return o.setTenantIdentifier()}),Xe(7,Hoe,2,2,"mat-option",4,ht),_()()),n&2&&(p(4),T(k(5,2,"labels.inputs.Tenant")),p(2),D("formControl",o.tenantSelector),p(),Ze(o.tenants))},dependencies:[he,ve,mn,Si,Bt,Cn,qn,ln,q0,Yt,Te],styles:["#tenant-selector[_ngcontent-%COMP%], .tenantselector[_ngcontent-%COMP%]{width:14rem;margin-bottom:.6rem}"]})}}return t})();var PP={prefix:"fas",iconName:"fill-drip",icon:[576,512,[],"f576","M41.4 9.4C53.9-3.1 74.1-3.1 86.6 9.4L168 90.7l53.1-53.1c28.1-28.1 73.7-28.1 101.8 0L474.3 189.1c28.1 28.1 28.1 73.7 0 101.8L283.9 481.4c-37.5 37.5-98.3 37.5-135.8 0L30.6 363.9c-37.5-37.5-37.5-98.3 0-135.8L122.7 136 41.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm176 221.3L168 181.3 75.9 273.4c-4.2 4.2-7 9.3-8.4 14.6l319.2 0 42.3-42.3c3.1-3.1 3.1-8.2 0-11.3L277.7 82.9c-3.1-3.1-8.2-3.1-11.3 0L213.3 136l49.4 49.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0zM512 512c-35.3 0-64-28.7-64-64c0-25.2 32.6-79.6 51.2-108.7c6-9.4 19.5-9.4 25.5 0C543.4 368.4 576 422.8 576 448c0 35.3-28.7 64-64 64z"]};var Uoe={prefix:"fas",iconName:"message",icon:[512,512,["comment-alt"],"f27a","M64 0C28.7 0 0 28.7 0 64L0 352c0 35.3 28.7 64 64 64l96 0 0 80c0 6.1 3.4 11.6 8.8 14.3s11.9 2.1 16.8-1.5L309.3 416 448 416c35.3 0 64-28.7 64-64l0-288c0-35.3-28.7-64-64-64L64 0z"]},LP=Uoe,AP={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]};var $oe={prefix:"fas",iconName:"file-lines",icon:[384,512,[128441,128462,61686,"file-alt","file-text"],"f15c","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM112 256l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},zP=$oe;var Goe={prefix:"fas",iconName:"calendar-days",icon:[448,512,["calendar-alt"],"f073","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zm64 80l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm128 0l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zM64 400l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16zm144-16c-8.8 0-16 7.2-16 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0zm112 16l0 32c0 8.8 7.2 16 16 16l32 0c8.8 0 16-7.2 16-16l0-32c0-8.8-7.2-16-16-16l-32 0c-8.8 0-16 7.2-16 16z"]},RP=Goe;var Woe={prefix:"fas",iconName:"circle-minus",icon:[512,512,["minus-circle"],"f056","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM184 232l144 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-144 0c-13.3 0-24-10.7-24-24s10.7-24 24-24z"]},NP=Woe;var qoe={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},FP=qoe;var VP={prefix:"fas",iconName:"laptop",icon:[640,512,[128187],"f109","M128 32C92.7 32 64 60.7 64 96l0 256 64 0 0-256 384 0 0 256 64 0 0-256c0-35.3-28.7-64-64-64L128 32zM19.2 384C8.6 384 0 392.6 0 403.2C0 445.6 34.4 480 76.8 480l486.4 0c42.4 0 76.8-34.4 76.8-76.8c0-10.6-8.6-19.2-19.2-19.2L19.2 384z"]};var Yoe={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},BP=Yoe;var Qoe={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32l448 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96L0 64C0 46.3 14.3 32 32 32zm0 128l448 0 0 256c0 35.3-28.7 64-64 64L96 480c-35.3 0-64-28.7-64-64l0-256zm128 80c0 8.8 7.2 16 16 16l160 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-160 0c-8.8 0-16 7.2-16 16z"]},jP=Qoe;var HP={prefix:"fas",iconName:"cloud",icon:[640,512,[9729],"f0c2","M0 336c0 79.5 64.5 144 144 144l368 0c70.7 0 128-57.3 128-128c0-61.9-44-113.6-102.4-125.4c4.1-10.7 6.4-22.4 6.4-34.6c0-53-43-96-96-96c-19.7 0-38.1 6-53.3 16.2C367 64.2 315.3 32 256 32C167.6 32 96 103.6 96 192c0 2.7 .1 5.4 .2 8.1C40.2 219.8 0 273.2 0 336z"]};var UP={prefix:"fas",iconName:"table",icon:[512,512,[],"f0ce","M64 256l0-96 160 0 0 96L64 256zm0 64l160 0 0 96L64 416l0-96zm224 96l0-96 160 0 0 96-160 0zM448 256l-160 0 0-96 160 0 0 96zM64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32z"]};var ib={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]};var Koe={prefix:"fas",iconName:"heart-crack",icon:[512,512,[128148,"heart-broken"],"f7a9","M119.4 44.1c23.3-3.9 46.8-1.9 68.6 5.3l49.8 77.5-75.4 75.4c-1.5 1.5-2.4 3.6-2.3 5.8s1 4.2 2.6 5.7l112 104c2.9 2.7 7.4 2.9 10.5 .3s3.8-7 1.7-10.4l-60.4-98.1 90.7-75.6c2.6-2.1 3.5-5.7 2.4-8.8L296.8 61.8c28.5-16.7 62.4-23.2 95.7-17.6C461.5 55.6 512 115.2 512 185.1l0 5.8c0 41.5-17.2 81.2-47.6 109.5L283.7 469.1c-7.5 7-17.4 10.9-27.7 10.9s-20.2-3.9-27.7-10.9L47.6 300.4C17.2 272.1 0 232.4 0 190.9l0-5.8c0-69.9 50.5-129.5 119.4-141z"]},$P=Koe;var Xoe={prefix:"fas",iconName:"circle-exclamation",icon:[512,512,["exclamation-circle"],"f06a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},GP=Xoe;var WP={prefix:"fas",iconName:"sitemap",icon:[576,512,[],"f0e8","M208 80c0-26.5 21.5-48 48-48l64 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-8 0 0 40 152 0c30.9 0 56 25.1 56 56l0 32 8 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l8 0 0-32c0-4.4-3.6-8-8-8l-152 0 0 40 8 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l8 0 0-40-152 0c-4.4 0-8 3.6-8 8l0 32 8 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-64 0c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48l8 0 0-32c0-30.9 25.1-56 56-56l152 0 0-40-8 0c-26.5 0-48-21.5-48-48l0-64z"]},Zoe={prefix:"fas",iconName:"circle-dollar-to-slot",icon:[512,512,["donate"],"f4b9","M326.7 403.7c-22.1 8-45.9 12.3-70.7 12.3s-48.7-4.4-70.7-12.3l-.8-.3c-30-11-56.8-28.7-78.6-51.4C70 314.6 48 263.9 48 208C48 93.1 141.1 0 256 0S464 93.1 464 208c0 55.9-22 106.6-57.9 144c-1 1-2 2.1-3 3.1c-21.4 21.4-47.4 38.1-76.3 48.6zM256 91.9c-11.1 0-20.1 9-20.1 20.1l0 6c-5.6 1.2-10.9 2.9-15.9 5.1c-15 6.8-27.9 19.4-31.1 37.7c-1.8 10.2-.8 20 3.4 29c4.2 8.8 10.7 15 17.3 19.5c11.6 7.9 26.9 12.5 38.6 16l2.2 .7c13.9 4.2 23.4 7.4 29.3 11.7c2.5 1.8 3.4 3.2 3.7 4c.3 .8 .9 2.6 .2 6.7c-.6 3.5-2.5 6.4-8 8.8c-6.1 2.6-16 3.9-28.8 1.9c-6-1-16.7-4.6-26.2-7.9c0 0 0 0 0 0s0 0 0 0s0 0 0 0c-2.2-.7-4.3-1.5-6.4-2.1c-10.5-3.5-21.8 2.2-25.3 12.7s2.2 21.8 12.7 25.3c1.2 .4 2.7 .9 4.4 1.5c7.9 2.7 20.3 6.9 29.8 9.1l0 6.4c0 11.1 9 20.1 20.1 20.1s20.1-9 20.1-20.1l0-5.5c5.3-1 10.5-2.5 15.4-4.6c15.7-6.7 28.4-19.7 31.6-38.7c1.8-10.4 1-20.3-3-29.4c-3.9-9-10.2-15.6-16.9-20.5c-12.2-8.8-28.3-13.7-40.4-17.4l-.8-.2c-14.2-4.3-23.8-7.3-29.9-11.4c-2.6-1.8-3.4-3-3.6-3.5c-.2-.3-.7-1.6-.1-5c.3-1.9 1.9-5.2 8.2-8.1c6.4-2.9 16.4-4.5 28.6-2.6c4.3 .7 17.9 3.3 21.7 4.3c10.7 2.8 21.6-3.5 24.5-14.2s-3.5-21.6-14.2-24.5c-4.4-1.2-14.4-3.2-21-4.4l0-6.3c0-11.1-9-20.1-20.1-20.1zM48 352l16 0c19.5 25.9 44 47.7 72.2 64L64 416l0 32 192 0 192 0 0-32-72.2 0c28.2-16.3 52.8-38.1 72.2-64l16 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48l0-64c0-26.5 21.5-48 48-48z"]},qP=Zoe;var YP={prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 64 0 368 0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48l0-16z"]};var QP={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]};var KP={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]};var Joe={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},XP=Joe;var ZP={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"]},JP={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]};var eL={prefix:"fas",iconName:"money-bill",icon:[576,512,[],"f0d6","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm64 320l-64 0 0-64c35.3 0 64 28.7 64 64zM64 192l0-64 64 0c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64l0 64-64 0zm64-192c-35.3 0-64-28.7-64-64l64 0 0 64zM288 160a96 96 0 1 1 0 192 96 96 0 1 1 0-192z"]};var tL={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]};var nL={prefix:"fas",iconName:"key",icon:[512,512,[128273],"f084","M336 352c97.2 0 176-78.8 176-176S433.2 0 336 0S160 78.8 160 176c0 18.7 2.9 36.8 8.3 53.7L7 391c-4.5 4.5-7 10.6-7 17l0 80c0 13.3 10.7 24 24 24l80 0c13.3 0 24-10.7 24-24l0-40 40 0c13.3 0 24-10.7 24-24l0-40 40 0c6.4 0 12.5-2.5 17-7l33.3-33.3c16.9 5.4 35 8.3 53.7 8.3zM376 96a40 40 0 1 1 0 80 40 40 0 1 1 0-80z"]};var iL={prefix:"fas",iconName:"location-arrow",icon:[448,512,[],"f124","M429.6 92.1c4.9-11.9 2.1-25.6-7-34.7s-22.8-11.9-34.7-7l-352 144c-14.2 5.8-22.2 20.8-19.3 35.8s16.1 25.8 31.4 25.8l176 0 0 176c0 15.3 10.8 28.4 25.8 31.4s30-5.1 35.8-19.3l144-352z"]};var ob={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]};var ere={prefix:"fas",iconName:"shuffle",icon:[512,512,[128256,"random"],"f074","M403.8 34.4c12-5 25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-10.1 0-19.6 4.7-25.6 12.8L284 229.3 244 176l31.2-41.6C293.3 110.2 321.8 96 352 96l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6zM164 282.7L204 336l-31.2 41.6C154.7 401.8 126.2 416 96 416l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c10.1 0 19.6-4.7 25.6-12.8L164 282.7zm274.6 188c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6l0-32-32 0c-30.2 0-58.7-14.2-76.8-38.4L121.6 172.8c-6-8.1-15.5-12.8-25.6-12.8l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c30.2 0 58.7 14.2 76.8 38.4L326.4 339.2c6 8.1 15.5 12.8 25.6 12.8l32 0 0-32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l64 64c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-64 64z"]},oL=ere;var rL={prefix:"fas",iconName:"folder-open",icon:[576,512,[128194,128449,61717],"f07c","M88.7 223.8L0 375.8 0 96C0 60.7 28.7 32 64 32l117.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 28.3 18.7 45.3 18.7L416 96c35.3 0 64 28.7 64 64l0 32-336 0c-22.8 0-43.8 12.1-55.3 31.8zm27.6 16.1C122.1 230 132.6 224 144 224l400 0c11.5 0 22 6.1 27.7 16.1s5.7 22.2-.1 32.1l-112 192C453.9 474 443.4 480 432 480L32 480c-11.5 0-22-6.1-27.7-16.1s-5.7-22.2 .1-32.1l112-192z"]};var tre={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},aL=tre;var sL={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32l0 336c0 8.8 7.2 16 16 16l400 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L80 480c-44.2 0-80-35.8-80-80L0 64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64l128 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-128 0c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96l256 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-256 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]};var nre={prefix:"fas",iconName:"circle-check",icon:[512,512,[61533,"check-circle"],"f058","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},cL=nre;var lL={prefix:"fas",iconName:"id-badge",icon:[384,512,[],"f2c1","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zm96 320l64 0c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16L96 416c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zM144 64l96 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-96 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};var dL={prefix:"fas",iconName:"user-tie",icon:[448,512,[],"f508","M96 128a128 128 0 1 0 256 0A128 128 0 1 0 96 128zm94.5 200.2l18.6 31L175.8 483.1l-36-146.9c-2-8.1-9.8-13.4-17.9-11.3C51.9 342.4 0 405.8 0 481.3c0 17 13.8 30.7 30.7 30.7l131.7 0c0 0 0 0 .1 0l5.5 0 112 0 5.5 0c0 0 0 0 .1 0l131.7 0c17 0 30.7-13.8 30.7-30.7c0-75.5-51.9-138.9-121.9-156.4c-8.1-2-15.9 3.3-17.9 11.3l-36 146.9L238.9 359.2l18.6-31c6.4-10.7-1.3-24.2-13.7-24.2L224 304l-19.7 0c-12.4 0-20.1 13.6-13.7 24.2z"]};var uL={prefix:"fas",iconName:"pause",icon:[320,512,[9208],"f04c","M48 64C21.5 64 0 85.5 0 112L0 400c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48L48 64zm192 0c-26.5 0-48 21.5-48 48l0 288c0 26.5 21.5 48 48 48l32 0c26.5 0 48-21.5 48-48l0-288c0-26.5-21.5-48-48-48l-32 0z"]};var mL={prefix:"fas",iconName:"address-card",icon:[576,512,[62140,"contact-card","vcard"],"f2bb","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm80 256l64 0c44.2 0 80 35.8 80 80c0 8.8-7.2 16-16 16L80 384c-8.8 0-16-7.2-16-16c0-44.2 35.8-80 80-80zm-32-96a64 64 0 1 1 128 0 64 64 0 1 1 -128 0zm256-32l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 64l128 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-128 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};var ire={prefix:"fas",iconName:"cloud-arrow-up",icon:[640,512,[62338,"cloud-upload","cloud-upload-alt"],"f0ee","M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128l-368 0zm79-217c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l39-39L296 392c0 13.3 10.7 24 24 24s24-10.7 24-24l0-134.1 39 39c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0l-80 80z"]};var pL=ire;var fL={prefix:"fas",iconName:"file-word",icon:[384,512,[],"f1c2","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM111 257.1l26.8 89.2 31.6-90.3c3.4-9.6 12.5-16.1 22.7-16.1s19.3 6.4 22.7 16.1l31.6 90.3L273 257.1c3.8-12.7 17.2-19.9 29.9-16.1s19.9 17.2 16.1 29.9l-48 160c-3 10-12 16.9-22.4 17.1s-19.8-6.2-23.2-16.1L192 336.6l-33.3 95.3c-3.4 9.8-12.8 16.3-23.2 16.1s-19.5-7.1-22.4-17.1l-48-160c-3.8-12.7 3.4-26.1 16.1-29.9s26.1 3.4 29.9 16.1z"]};var ore={prefix:"fas",iconName:"cloud-arrow-down",icon:[640,512,[62337,"cloud-download","cloud-download-alt"],"f0ed","M144 480C64.5 480 0 415.5 0 336c0-62.8 40.2-116.2 96.2-135.9c-.1-2.7-.2-5.4-.2-8.1c0-88.4 71.6-160 160-160c59.3 0 111 32.2 138.7 80.2C409.9 102 428.3 96 448 96c53 0 96 43 96 96c0 12.2-2.3 23.8-6.4 34.6C596 238.4 640 290.1 640 352c0 70.7-57.3 128-128 128l-368 0zm79-167l80 80c9.4 9.4 24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-39 39L344 184c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 134.1-39-39c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9z"]};var hL=ore;var rre={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160 352 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l111.5 0c0 0 0 0 0 0l.4 0c17.7 0 32-14.3 32-32l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1L16 432c0 17.7 14.3 32 32 32s32-14.3 32-32l0-35.1 17.6 17.5c0 0 0 0 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.8c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352l34.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L48.4 288c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]};var gL=rre;var are={prefix:"fas",iconName:"shield-halved",icon:[512,512,["shield-alt"],"f3ed","M256 0c4.6 0 9.2 1 13.4 2.9L457.7 82.8c22 9.3 38.4 31 38.3 57.2c-.5 99.2-41.3 280.7-213.6 363.2c-16.7 8-36.1 8-52.8 0C57.3 420.7 16.5 239.2 16 140c-.1-26.2 16.3-47.9 38.3-57.2L242.7 2.9C246.8 1 251.4 0 256 0zm0 66.8l0 378.1C394 378 431.1 230.1 432 141.4L256 66.8s0 0 0 0z"]},_L=are;var bL={prefix:"fas",iconName:"money-check",icon:[576,512,[],"f53c","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm48 160l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zM96 336c0-8.8 7.2-16 16-16l352 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-352 0c-8.8 0-16-7.2-16-16zM376 160l80 0c13.3 0 24 10.7 24 24l0 48c0 13.3-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24l0-48c0-13.3 10.7-24 24-24z"]};var vL={prefix:"fas",iconName:"road",icon:[576,512,[128739],"f018","M256 32l-74.8 0c-27.1 0-51.3 17.1-60.3 42.6L3.1 407.2C1.1 413 0 419.2 0 425.4C0 455.5 24.5 480 54.6 480L256 480l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 64 201.4 0c30.2 0 54.6-24.5 54.6-54.6c0-6.2-1.1-12.4-3.1-18.2L455.1 74.6C446 49.1 421.9 32 394.8 32L320 32l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64zm64 192l0 64c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32s32 14.3 32 32z"]};var yL={prefix:"fas",iconName:"file-excel",icon:[384,512,[],"f1c3","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM155.7 250.2L192 302.1l36.3-51.9c7.6-10.9 22.6-13.5 33.4-5.9s13.5 22.6 5.9 33.4L221.3 344l46.4 66.2c7.6 10.9 5 25.8-5.9 33.4s-25.8 5-33.4-5.9L192 385.8l-36.3 51.9c-7.6 10.9-22.6 13.5-33.4 5.9s-13.5-22.6-5.9-33.4L162.7 344l-46.4-66.2c-7.6-10.9-5-25.8 5.9-33.4s25.8-5 33.4 5.9z"]};var CL={prefix:"fas",iconName:"chart-line",icon:[512,512,["line-chart"],"f201","M64 64c0-17.7-14.3-32-32-32S0 46.3 0 64L0 400c0 44.2 35.8 80 80 80l400 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 416c-8.8 0-16-7.2-16-16L64 64zm406.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L320 210.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L240 221.3l57.4 57.4c12.5 12.5 32.8 12.5 45.3 0l128-128z"]};var xL={prefix:"fas",iconName:"arrow-right",icon:[448,512,[8594],"f061","M438.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.8 224 32 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l306.7 0L233.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160z"]};var ML={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]};var wL={prefix:"fas",iconName:"circle",icon:[512,512,[128308,128309,128992,128993,128994,128995,128996,9679,9898,9899,11044,61708,61915],"f111","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512z"]};var sre={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},DL=sre;var SL={prefix:"fas",iconName:"tags",icon:[512,512,[],"f02c","M345 39.1L472.8 168.4c52.4 53 52.4 138.2 0 191.2L360.8 472.9c-9.3 9.4-24.5 9.5-33.9 .2s-9.5-24.5-.2-33.9L438.6 325.9c33.9-34.3 33.9-89.4 0-123.7L310.9 72.9c-9.3-9.4-9.2-24.6 .2-33.9s24.6-9.2 33.9 .2zM0 229.5L0 80C0 53.5 21.5 32 48 32l149.5 0c17 0 33.3 6.7 45.3 18.7l168 168c25 25 25 65.5 0 90.5L277.3 442.7c-25 25-65.5 25-90.5 0l-168-168C6.7 262.7 0 246.5 0 229.5zM144 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]};var kL={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]};var EL={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]};var cre={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm0 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32L96 224c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},IL=cre;var lre={prefix:"fas",iconName:"hand-holding-dollar",icon:[576,512,["hand-holding-usd"],"f4c0","M312 24l0 10.5c6.4 1.2 12.6 2.7 18.2 4.2c12.8 3.4 20.4 16.6 17 29.4s-16.6 20.4-29.4 17c-10.9-2.9-21.1-4.9-30.2-5c-7.3-.1-14.7 1.7-19.4 4.4c-2.1 1.3-3.1 2.4-3.5 3c-.3 .5-.7 1.2-.7 2.8c0 .3 0 .5 0 .6c.2 .2 .9 1.2 3.3 2.6c5.8 3.5 14.4 6.2 27.4 10.1l.9 .3s0 0 0 0c11.1 3.3 25.9 7.8 37.9 15.3c13.7 8.6 26.1 22.9 26.4 44.9c.3 22.5-11.4 38.9-26.7 48.5c-6.7 4.1-13.9 7-21.3 8.8l0 10.6c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-11.4c-9.5-2.3-18.2-5.3-25.6-7.8c-2.1-.7-4.1-1.4-6-2c-12.6-4.2-19.4-17.8-15.2-30.4s17.8-19.4 30.4-15.2c2.6 .9 5 1.7 7.3 2.5c13.6 4.6 23.4 7.9 33.9 8.3c8 .3 15.1-1.6 19.2-4.1c1.9-1.2 2.8-2.2 3.2-2.9c.4-.6 .9-1.8 .8-4.1l0-.2c0-1 0-2.1-4-4.6c-5.7-3.6-14.3-6.4-27.1-10.3l-1.9-.6c-10.8-3.2-25-7.5-36.4-14.4c-13.5-8.1-26.5-22-26.6-44.1c-.1-22.9 12.9-38.6 27.7-47.4c6.4-3.8 13.3-6.4 20.2-8.2L264 24c0-13.3 10.7-24 24-24s24 10.7 24 24zM568.2 336.3c13.1 17.8 9.3 42.8-8.5 55.9L433.1 485.5c-23.4 17.2-51.6 26.5-80.7 26.5L192 512 32 512c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l36.8 0 44.9-36c22.7-18.2 50.9-28 80-28l78.3 0 16 0 64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0-16 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l120.6 0 119.7-88.2c17.8-13.1 42.8-9.3 55.9 8.5zM193.6 384c0 0 0 0 0 0l-.9 0c.3 0 .6 0 .9 0z"]},OL=lre;var TL={prefix:"fas",iconName:"trash",icon:[448,512,[],"f1f8","M135.2 17.7L128 32 32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-96 0-7.2-14.3C307.4 6.8 296.3 0 284.2 0L163.8 0c-12.1 0-23.2 6.8-28.6 17.7zM416 128L32 128 53.2 467c1.6 25.3 22.6 45 47.9 45l245.8 0c25.3 0 46.3-19.7 47.9-45L416 128z"]};var PL={prefix:"fas",iconName:"arrow-left",icon:[448,512,[8592],"f060","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.2 288 416 288c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0L214.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160z"]};var LL={prefix:"fas",iconName:"table-cells",icon:[512,512,["th"],"f00a","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zm88 64l0 64-88 0 0-64 88 0zm56 0l88 0 0 64-88 0 0-64zm240 0l0 64-88 0 0-64 88 0zM64 224l88 0 0 64-88 0 0-64zm232 0l0 64-88 0 0-64 88 0zm64 0l88 0 0 64-88 0 0-64zM152 352l0 64-88 0 0-64 88 0zm56 0l88 0 0 64-88 0 0-64zm240 0l0 64-88 0 0-64 88 0z"]};var AL={prefix:"fas",iconName:"file-pdf",icon:[512,512,[],"f1c1","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 144-208 0c-35.3 0-64 28.7-64 64l0 144-48 0c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM176 352l32 0c30.9 0 56 25.1 56 56s-25.1 56-56 56l-16 0 0 32c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-48 0-80c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24l-16 0 0 48 16 0zm96-80l32 0c26.5 0 48 21.5 48 48l0 64c0 26.5-21.5 48-48 48l-32 0c-8.8 0-16-7.2-16-16l0-128c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16l0-64c0-8.8-7.2-16-16-16l-16 0 0 96 16 0zm80-112c0-8.8 7.2-16 16-16l48 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 32 32 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-32 0 0 48c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-64 0-64z"]};var zL={prefix:"fas",iconName:"tag",icon:[448,512,[127991],"f02b","M0 80L0 229.5c0 17 6.7 33.3 18.7 45.3l176 176c25 25 65.5 25 90.5 0L418.7 317.3c25-25 25-65.5 0-90.5l-176-176c-12-12-28.3-18.7-45.3-18.7L48 32C21.5 32 0 53.5 0 80zm112 32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};var RL={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]};var NL={prefix:"fas",iconName:"calendar-check",icon:[448,512,[],"f274","M128 0c17.7 0 32 14.3 32 32l0 32 128 0 0-32c0-17.7 14.3-32 32-32s32 14.3 32 32l0 32 48 0c26.5 0 48 21.5 48 48l0 48L0 160l0-48C0 85.5 21.5 64 48 64l48 0 0-32c0-17.7 14.3-32 32-32zM0 192l448 0 0 272c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 192zM329 305c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-95 95-47-47c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l64 64c9.4 9.4 24.6 9.4 33.9 0L329 305z"]};var dre={prefix:"fas",iconName:"arrow-rotate-left",icon:[512,512,[8634,"arrow-left-rotate","arrow-rotate-back","arrow-rotate-backward","undo"],"f0e2","M125.7 160l50.3 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L48 224c-17.7 0-32-14.3-32-32L16 64c0-17.7 14.3-32 32-32s32 14.3 32 32l0 51.2L97.6 97.6c87.5-87.5 229.3-87.5 316.8 0s87.5 229.3 0 316.8s-229.3 87.5-316.8 0c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0c62.5 62.5 163.8 62.5 226.3 0s62.5-163.8 0-226.3s-163.8-62.5-226.3 0L125.7 160z"]};var rb=dre;var ure={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm64 320l-64 0 0-64c35.3 0 64 28.7 64 64zM64 192l0-64 64 0c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64l0 64-64 0zm64-192c-35.3 0-64-28.7-64-64l64 0 0 64zM176 256a112 112 0 1 1 224 0 112 112 0 1 1 -224 0zm76-48c0 9.7 6.9 17.7 16 19.6l0 48.4-4 0c-11 0-20 9-20 20s9 20 20 20l24 0 24 0c11 0 20-9 20-20s-9-20-20-20l-4 0 0-68c0-11-9-20-20-20l-16 0c-11 0-20 9-20 20z"]},FL=ure;var VL={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]};var mre={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},BL=mre;var jL={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120l0 136c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2 280 120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};var HL={prefix:"fas",iconName:"keyboard",icon:[576,512,[9e3],"f11c","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm16 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80-176c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM160 336c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-224 0c-8.8 0-16-7.2-16-16l0-32zM272 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM368 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM352 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM464 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM448 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]};var UL={prefix:"fas",iconName:"piggy-bank",icon:[576,512,[],"f4d3","M400 96l0 .7c-5.3-.4-10.6-.7-16-.7L256 96c-16.5 0-32.5 2.1-47.8 6c-.1-2-.2-4-.2-6c0-53 43-96 96-96s96 43 96 96zm-16 32c3.5 0 7 .1 10.4 .3c4.2 .3 8.4 .7 12.6 1.3C424.6 109.1 450.8 96 480 96l11.5 0c10.4 0 18 9.8 15.5 19.9l-13.8 55.2c15.8 14.8 28.7 32.8 37.5 52.9l13.3 0c17.7 0 32 14.3 32 32l0 96c0 17.7-14.3 32-32 32l-32 0c-9.1 12.1-19.9 22.9-32 32l0 64c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-32-128 0 0 32c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-64c-34.9-26.2-58.7-66.3-63.2-112L68 304c-37.6 0-68-30.4-68-68s30.4-68 68-68l4 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-4 0c-11 0-20 9-20 20s9 20 20 20l31.2 0c12.1-59.8 57.7-107.5 116.3-122.8c12.9-3.4 26.5-5.2 40.5-5.2l128 0zm64 136a24 24 0 1 0 -48 0 24 24 0 1 0 48 0z"]};var $L={prefix:"fas",iconName:"coins",icon:[512,512,[],"f51e","M512 80c0 18-14.3 34.6-38.4 48c-29.1 16.1-72.5 27.5-122.3 30.9c-3.7-1.8-7.4-3.5-11.3-5C300.6 137.4 248.2 128 192 128c-8.3 0-16.4 .2-24.5 .6l-1.1-.6C142.3 114.6 128 98 128 80c0-44.2 86-80 192-80S512 35.8 512 80zM160.7 161.1c10.2-.7 20.7-1.1 31.3-1.1c62.2 0 117.4 12.3 152.5 31.4C369.3 204.9 384 221.7 384 240c0 4-.7 7.9-2.1 11.7c-4.6 13.2-17 25.3-35 35.5c0 0 0 0 0 0c-.1 .1-.3 .1-.4 .2c0 0 0 0 0 0s0 0 0 0c-.3 .2-.6 .3-.9 .5c-35 19.4-90.8 32-153.6 32c-59.6 0-112.9-11.3-148.2-29.1c-1.9-.9-3.7-1.9-5.5-2.9C14.3 274.6 0 258 0 240c0-34.8 53.4-64.5 128-75.4c10.5-1.5 21.4-2.7 32.7-3.5zM416 240c0-21.9-10.6-39.9-24.1-53.4c28.3-4.4 54.2-11.4 76.2-20.5c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 19.3-16.5 37.1-43.8 50.9c-14.6 7.4-32.4 13.7-52.4 18.5c.1-1.8 .2-3.5 .2-5.3zm-32 96c0 18-14.3 34.6-38.4 48c-1.8 1-3.6 1.9-5.5 2.9C304.9 404.7 251.6 416 192 416c-62.8 0-118.6-12.6-153.6-32C14.3 370.6 0 354 0 336l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 342.6 135.8 352 192 352s108.6-9.4 148.1-25.9c7.8-3.2 15.3-6.9 22.4-10.9c6.1-3.4 11.8-7.2 17.2-11.2c1.5-1.1 2.9-2.3 4.3-3.4l0 3.4 0 5.7 0 26.3zm32 0l0-32 0-25.9c19-4.2 36.5-9.5 52.1-16c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 10.5-5 21-14.9 30.9c-16.3 16.3-45 29.7-81.3 38.4c.1-1.7 .2-3.5 .2-5.3zM192 448c56.2 0 108.6-9.4 148.1-25.9c16.3-6.8 31.5-15.2 43.9-25.5l0 35.4c0 44.2-86 80-192 80S0 476.2 0 432l0-35.4c12.5 10.3 27.6 18.7 43.9 25.5C83.4 438.6 135.8 448 192 448z"]};var GL={prefix:"fas",iconName:"calculator",icon:[384,512,[128425],"f1ec","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-384c0-35.3-28.7-64-64-64L64 0zM96 64l192 0c17.7 0 32 14.3 32 32l0 32c0 17.7-14.3 32-32 32L96 160c-17.7 0-32-14.3-32-32l0-32c0-17.7 14.3-32 32-32zm32 160a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM96 352a32 32 0 1 1 0-64 32 32 0 1 1 0 64zM64 416c0-17.7 14.3-32 32-32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32zM192 256a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm64-64a32 32 0 1 1 0-64 32 32 0 1 1 0 64zm32 64a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zM288 448a32 32 0 1 1 0-64 32 32 0 1 1 0 64z"]};var WL={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]};var pre={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},qL=pre;var fre={prefix:"fas",iconName:"arrow-right-arrow-left",icon:[448,512,[8644,"exchange"],"f0ec","M438.6 150.6c12.5-12.5 12.5-32.8 0-45.3l-96-96c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L338.7 96 32 96C14.3 96 0 110.3 0 128s14.3 32 32 32l306.7 0-41.4 41.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l96-96zm-333.3 352c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 416 416 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-306.7 0 41.4-41.4c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-96 96c-12.5 12.5-12.5 32.8 0 45.3l96 96z"]},YL=fre;var QL={prefix:"fas",iconName:"stop",icon:[384,512,[9209],"f04d","M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]};var KL={prefix:"fas",iconName:"upload",icon:[512,512,[],"f093","M288 109.3L288 352c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-242.7-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 109.3zM64 352l128 0c0 35.3 28.7 64 64 64s64-28.7 64-64l128 0c35.3 0 64 28.7 64 64l0 32c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64l0-32c0-35.3 28.7-64 64-64zM432 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]};var XL={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288l111.5 0L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7l-111.5 0L349.4 44.6z"]};var ZL={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]};var JL={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]};var eA={prefix:"fas",iconName:"arrow-down",icon:[384,512,[8595],"f063","M169.4 470.6c12.5 12.5 32.8 12.5 45.3 0l160-160c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 370.8 224 64c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 306.7L54.6 265.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160z"]};var hre={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},tA=hre;var nA={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]};var iA={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]};var gre={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},oA=gre;var rA={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.3-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8l0 464c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488L0 24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16l192 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L96 144zM80 352c0 8.8 7.2 16 16 16l192 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L96 336c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16l192 0c8.8 0 16-7.2 16-16s-7.2-16-16-16L96 240z"]};var aA={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]};var sA={prefix:"fas",iconName:"list-ul",icon:[512,512,["list-dots"],"f0ca","M64 144a48 48 0 1 0 0-96 48 48 0 1 0 0 96zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM64 464a48 48 0 1 0 0-96 48 48 0 1 0 0 96zm48-208a48 48 0 1 0 -96 0 48 48 0 1 0 96 0z"]};var cA={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]};var _re={prefix:"fas",iconName:"list-check",icon:[512,512,["tasks"],"f0ae","M152.1 38.2c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 113C-2.3 103.6-2.3 88.4 7 79s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zm0 160c9.9 8.9 10.7 24 1.8 33.9l-72 80c-4.4 4.9-10.6 7.8-17.2 7.9s-12.9-2.4-17.6-7L7 273c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l22.1 22.1 55.1-61.2c8.9-9.9 24-10.7 33.9-1.8zM224 96c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zm0 160c0-17.7 14.3-32 32-32l224 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32zM160 416c0-17.7 14.3-32 32-32l288 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-288 0c-17.7 0-32-14.3-32-32zM48 368a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},lA=_re;var bre={prefix:"fas",iconName:"circle-user",icon:[512,512,[62142,"user-circle"],"f2bd","M399 384.2C376.9 345.8 335.4 320 288 320l-64 0c-47.4 0-88.9 25.8-111 64.2c35.2 39.2 86.2 63.8 143 63.8s107.8-24.7 143-63.8zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm256 16a72 72 0 1 0 0-144 72 72 0 1 0 0 144z"]},dA=bre,uA={prefix:"fas",iconName:"user-shield",icon:[640,512,[],"f505","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c1.8 0 3.5-.2 5.3-.5c-76.3-55.1-99.8-141-103.1-200.2c-16.1-4.8-33.1-7.3-50.7-7.3l-91.4 0zm308.8-78.3l-120 48C358 277.4 352 286.2 352 296c0 63.3 25.9 168.8 134.8 214.2c5.9 2.5 12.6 2.5 18.5 0C614.1 464.8 640 359.3 640 296c0-9.8-6-18.6-15.1-22.3l-120-48c-5.7-2.3-12.1-2.3-17.8 0zM591.4 312c-3.9 50.7-27.2 116.7-95.4 149.7l0-187.8L591.4 312z"]};var mA={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0L332.1 0c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9L448 336c0 26.5-21.5 48-48 48l-192 0c-26.5 0-48-21.5-48-48l0-288c0-26.5 21.5-48 48-48zM48 128l80 0 0 64-64 0 0 256 192 0 0-32 64 0 0 48c0 26.5-21.5 48-48 48L48 512c-26.5 0-48-21.5-48-48L0 176c0-26.5 21.5-48 48-48z"]};var pA={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]};var vre={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]};var fA=vre;var hA={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]};var gA={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]};var yre={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8l-.7 0c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},_A=yre;var bA={prefix:"fas",iconName:"building",icon:[384,512,[127970,61687],"f1ad","M48 0C21.5 0 0 21.5 0 48L0 464c0 26.5 21.5 48 48 48l96 0 0-80c0-26.5 21.5-48 48-48s48 21.5 48 48l0 80 96 0c26.5 0 48-21.5 48-48l0-416c0-26.5-21.5-48-48-48L48 0zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm112-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM80 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80 16c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM272 96l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]};var vA={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 128-168 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l168 0 0 112c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM384 336l0-48 110.1 0-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39L384 336zm0-208l-128 0L256 0 384 128z"]};var yA={prefix:"fas",iconName:"calendar",icon:[448,512,[128197,128198],"f133","M96 32l0 32L48 64C21.5 64 0 85.5 0 112l0 48 448 0 0-48c0-26.5-21.5-48-48-48l-48 0 0-32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 32L160 64l0-32c0-17.7-14.3-32-32-32S96 14.3 96 32zM448 192L0 192 0 464c0 26.5 21.5 48 48 48l352 0c26.5 0 48-21.5 48-48l0-272z"]};var Cre={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},CA=Cre;var xA={prefix:"fas",iconName:"anchor",icon:[576,512,[9875],"f13d","M320 96a32 32 0 1 1 -64 0 32 32 0 1 1 64 0zm21.1 80C367 158.8 384 129.4 384 96c0-53-43-96-96-96s-96 43-96 96c0 33.4 17 62.8 42.9 80L224 176c-17.7 0-32 14.3-32 32s14.3 32 32 32l32 0 0 208-48 0c-53 0-96-43-96-96l0-6.1 7 7c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9L97 263c-9.4-9.4-24.6-9.4-33.9 0L7 319c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l7-7 0 6.1c0 88.4 71.6 160 160 160l80 0 80 0c88.4 0 160-71.6 160-160l0-6.1 7 7c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-56-56c-9.4-9.4-24.6-9.4-33.9 0l-56 56c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l7-7 0 6.1c0 53-43 96-96 96l-48 0 0-208 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-10.9 0z"]};var MA={prefix:"fas",iconName:"book",icon:[448,512,[128212],"f02d","M96 0C43 0 0 43 0 96L0 416c0 53 43 96 96 96l288 0 32 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l0-64c17.7 0 32-14.3 32-32l0-320c0-17.7-14.3-32-32-32L384 0 96 0zm0 384l256 0 0 64L96 448c-17.7 0-32-14.3-32-32s14.3-32 32-32zm32-240c0-8.8 7.2-16 16-16l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16zm16 48l192 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-192 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]};var wA={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]};var DA={prefix:"fas",iconName:"briefcase",icon:[512,512,[128188],"f0b1","M184 48l144 0c4.4 0 8 3.6 8 8l0 40L176 96l0-40c0-4.4 3.6-8 8-8zm-56 8l0 40L64 96C28.7 96 0 124.7 0 160l0 96 192 0 128 0 192 0 0-96c0-35.3-28.7-64-64-64l-64 0 0-40c0-30.9-25.1-56-56-56L184 0c-30.9 0-56 25.1-56 56zM512 288l-192 0 0 32c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-32L0 288 0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-128z"]};var xre={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},SA=xre;var Mre={prefix:"fas",iconName:"circle-xmark",icon:[512,512,[61532,"times-circle","xmark-circle"],"f057","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c9.4-9.4 24.6-9.4 33.9 0l47 47 47-47c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-47 47 47 47c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-47-47-47 47c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l47-47-47-47c-9.4-9.4-9.4-24.6 0-33.9z"]},kA=Mre;var wre={prefix:"fas",iconName:"note-sticky",icon:[448,512,[62026,"sticky-note"],"f249","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l224 0 0-112c0-26.5 21.5-48 48-48l112 0 0-224c0-35.3-28.7-64-64-64L64 32zM448 352l-45.3 0L336 352c-8.8 0-16 7.2-16 16l0 66.7 0 45.3 32-32 64-64 32-32z"]},EA=wre;var IA={prefix:"fas",iconName:"dollar-sign",icon:[320,512,[128178,61781,"dollar","usd"],"24","M160 0c17.7 0 32 14.3 32 32l0 35.7c1.6 .2 3.1 .4 4.7 .7c.4 .1 .7 .1 1.1 .2l48 8.8c17.4 3.2 28.9 19.9 25.7 37.2s-19.9 28.9-37.2 25.7l-47.5-8.7c-31.3-4.6-58.9-1.5-78.3 6.2s-27.2 18.3-29 28.1c-2 10.7-.5 16.7 1.2 20.4c1.8 3.9 5.5 8.3 12.8 13.2c16.3 10.7 41.3 17.7 73.7 26.3l2.9 .8c28.6 7.6 63.6 16.8 89.6 33.8c14.2 9.3 27.6 21.9 35.9 39.5c8.5 17.9 10.3 37.9 6.4 59.2c-6.9 38-33.1 63.4-65.6 76.7c-13.7 5.6-28.6 9.2-44.4 11l0 33.4c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-34.9c-.4-.1-.9-.1-1.3-.2l-.2 0s0 0 0 0c-24.4-3.8-64.5-14.3-91.5-26.3c-16.1-7.2-23.4-26.1-16.2-42.2s26.1-23.4 42.2-16.2c20.9 9.3 55.3 18.5 75.2 21.6c31.9 4.7 58.2 2 76-5.3c16.9-6.9 24.6-16.9 26.8-28.9c1.9-10.6 .4-16.7-1.3-20.4c-1.9-4-5.6-8.4-13-13.3c-16.4-10.7-41.5-17.7-74-26.3l-2.8-.7s0 0 0 0C119.4 279.3 84.4 270 58.4 253c-14.2-9.3-27.5-22-35.8-39.6c-8.4-17.9-10.1-37.9-6.1-59.2C23.7 116 52.3 91.2 84.8 78.3c13.3-5.3 27.9-8.9 43.2-11L128 32c0-17.7 14.3-32 32-32z"]};var Dre={prefix:"fas",iconName:"building-columns",icon:[512,512,["bank","institution","museum","university"],"f19c","M243.4 2.6l-224 96c-14 6-21.8 21-18.7 35.8S16.8 160 32 160l0 8c0 13.3 10.7 24 24 24l400 0c13.3 0 24-10.7 24-24l0-8c15.2 0 28.3-10.7 31.3-25.6s-4.8-29.9-18.7-35.8l-224-96c-8-3.4-17.2-3.4-25.2 0zM128 224l-64 0 0 196.3c-.6 .3-1.2 .7-1.8 1.1l-48 32c-11.7 7.8-17 22.4-12.9 35.9S17.9 512 32 512l448 0c14.1 0 26.5-9.2 30.6-22.7s-1.1-28.1-12.9-35.9l-48-32c-.6-.4-1.2-.7-1.8-1.1L448 224l-64 0 0 192-40 0 0-192-64 0 0 192-48 0 0-192-64 0 0 192-40 0 0-192zM256 64a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]};var OA=Dre;var ab=(()=>{class t{constructor(){d(W9).addIcons(xA,jP,PL,xL,ob,ib,ZL,MA,DA,bA,GL,yA,RP,NL,sL,wA,cL,aA,hA,gA,wL,$P,jL,HP,BL,_A,LP,mA,IA,XP,RL,YL,GP,SA,kL,JP,JL,zP,AL,aL,fL,yL,vA,PP,OL,qL,nL,nA,QP,sA,iL,KP,ML,VL,NP,FL,bL,uL,BP,iA,pA,CA,DL,oL,vL,oA,_L,FP,WP,gL,UP,tA,zL,SL,kA,TL,rb,OA,dA,tL,ZP,uA,dL,WL,KL,hL,pL,fA,EA,QL,ob,XL,VP,qP,eL,CL,EL,YP,cA,eA,rL,lL,mL,HL,AP,lA,$L,UL,ib,rb,rA,LL,IL)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({imports:[YT]})}}return t})();function lb(t){let i=t.cloneNode(!0),e=i.querySelectorAll("[id]"),n=t.nodeName.toLowerCase();i.removeAttribute("id");for(let o=0;o=n&&e<=o&&i>=r&&i<=a}function kre(t,i){let e=i.leftt.right,o=i.topt.bottom;return e||n||o||r}function Cu(t,i,e){t.top+=i,t.bottom=t.top+t.height,t.left+=e,t.right=t.left+t.width}function AA(t,i,e,n){let{top:o,right:r,bottom:a,left:s,width:c,height:m}=t,f=c*i,v=m*i;return n>o-v&&ns-f&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:hb(e)})})}handleScroll(i){let e=jn(i),n=this.positions.get(e);if(!n)return null;let o=n.scrollPosition,r,a;if(e===this._document){let m=this.getViewportScrollPosition();r=m.top,a=m.left}else r=e.scrollTop,a=e.scrollLeft;let s=o.top-r,c=o.left-a;return this.positions.forEach((m,f)=>{m.clientRect&&e!==f&&e.contains(f)&&Cu(m.clientRect,s,c)}),o.top=r,o.left=a,{top:s,left:c}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function qA(t,i){let e=t.rootNodes;if(e.length===1&&e[0].nodeType===i.ELEMENT_NODE)return e[0];let n=i.createElement("div");return e.forEach(o=>n.appendChild(o)),n}function gb(t,i,e){for(let n in i)if(i.hasOwnProperty(n)){let o=i[n];o?t.setProperty(n,o,e?.has(n)?"important":""):t.removeProperty(n)}return t}function P2(t,i){let e=i?"":"none";gb(t.style,{"touch-action":i?"":"none","-webkit-user-drag":i?"":"none","-webkit-tap-highlight-color":i?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function zA(t,i,e){gb(t.style,{position:i?"":"fixed",top:i?"":"0",opacity:i?"":"0",left:i?"":"-999em"},e)}function Yf(t,i){return i&&i!="none"?t+" "+i:t}function RA(t,i){t.style.width=`${i.width}px`,t.style.height=`${i.height}px`,t.style.transform=xu(i.left,i.top)}function xu(t,i){return`translate3d(${Math.round(t)}px, ${Math.round(i)}px, 0)`}function NA(t){let i=t.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(t)*i}function Ere(t){let i=getComputedStyle(t),e=sb(i,"transition-property"),n=e.find(s=>s==="transform"||s==="all");if(!n)return 0;let o=e.indexOf(n),r=sb(i,"transition-duration"),a=sb(i,"transition-delay");return NA(r[o])+NA(a[o])}function sb(t,i){return t.getPropertyValue(i).split(",").map(n=>n.trim())}var Ire=new Set(["position"]),ub=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(i,e,n,o,r,a,s,c,m,f){this._document=i,this._rootElement=e,this._direction=n,this._initialDomRect=o,this._previewTemplate=r,this._previewClass=a,this._pickupPositionOnPage=s,this._initialTransform=c,this._zIndex=m,this._renderer=f}attach(i){this._preview=this._createPreview(),i.appendChild(this._preview),FA(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(i){this._preview.style.transform=i}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(i){this._preview.classList.add(i)}getTransitionDuration(){return Ere(this._preview)}addEventListener(i,e){return this._renderer.listen(this._preview,i,e)}_createPreview(){let i=this._previewTemplate,e=this._previewClass,n=i?i.template:null,o;if(n&&i){let r=i.matchSize?this._initialDomRect:null,a=i.viewContainer.createEmbeddedView(n,i.context);a.detectChanges(),o=qA(a,this._document),this._previewEmbeddedView=a,i.matchSize?RA(o,r):o.style.transform=xu(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=lb(this._rootElement),RA(o,this._initialDomRect),this._initialTransform&&(o.style.transform=this._initialTransform);return gb(o.style,{"pointer-events":"none",margin:FA(o)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},Ire),P2(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("popover","manual"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>o.classList.add(r)):o.classList.add(e)),o}};function FA(t){return"showPopover"in t}var Ore={passive:!0},VA={passive:!1},Tre={passive:!1,capture:!0},Pre=800,BA="cdk-drag-placeholder",jA=new Set(["position"]),mb=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_marker;_anchor=null;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=we(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new B;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=Se.EMPTY;_pointerUpSubscription=Se.EMPTY;_scrollSubscription=Se.EMPTY;_resizeSubscription=Se.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis=null;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(i){i!==this._disabled&&(this._disabled=i,this._toggleNativeDragInteractions(),this._handles.forEach(e=>P2(e,i)))}_disabled=!1;beforeStarted=new B;started=new B;released=new B;ended=new B;entered=new B;exited=new B;dropped=new B;moved=this._moveEvents;data;constrainPosition;constructor(i,e,n,o,r,a,s){this._config=e,this._document=n,this._ngZone=o,this._viewportRuler=r,this._dragDropRegistry=a,this._renderer=s,this.withRootElement(i).withParent(e.parentDragRef||null),this._parentPositions=new qf(n),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(i){this._handles=i.map(n=>kn(n)),this._handles.forEach(n=>P2(n,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(n=>{this._handles.indexOf(n)>-1&&e.add(n)}),this._disabledHandles=e,this}withPreviewTemplate(i){return this._previewTemplate=i,this}withPlaceholderTemplate(i){return this._placeholderTemplate=i,this}withRootElement(i){let e=kn(i);if(e!==this._rootElement){this._removeRootElementListeners();let n=this._renderer;this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[n.listen(e,"mousedown",this._pointerDown,VA),n.listen(e,"touchstart",this._pointerDown,Ore),n.listen(e,"dragstart",this._nativeDragStart,VA)]),this._initialTransform=void 0,this._rootElement=e}return typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(i){return this._boundaryElement=i?kn(i):null,this._resizeSubscription.unsubscribe(),i&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(i){return this._parentDragRef=i,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._marker?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._marker=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}resetToBoundary(){if(this._boundaryElement&&this._rootElement&&kre(this._boundaryElement.getBoundingClientRect(),this._rootElement.getBoundingClientRect())){let i=this._boundaryElement.getBoundingClientRect(),e=this._rootElement.getBoundingClientRect(),n=0,o=0;e.lefti.right&&(n=i.right-e.right),e.topi.bottom&&(o=i.bottom-e.bottom);let r=this._activeTransform.x,a=this._activeTransform.y,s=r+n,c=a+o;this._rootElement.style.transform=xu(s,c),this._activeTransform={x:s,y:c},this._passiveTransform={x:s,y:c}}}disableHandle(i){!this._disabledHandles.has(i)&&this._handles.indexOf(i)>-1&&(this._disabledHandles.add(i),P2(i,!0))}enableHandle(i){this._disabledHandles.has(i)&&(this._disabledHandles.delete(i),P2(i,this.disabled))}withDirection(i){return this._direction=i,this}_withDropContainer(i){this._dropContainer=i}getFreeDragPosition(){let i=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:i.x,y:i.y}}setFreeDragPosition(i){return this._activeTransform={x:0,y:0},this._passiveTransform.x=i.x,this._passiveTransform.y=i.y,this._dropContainer||this._applyRootElementTransform(i.x,i.y),this}withPreviewContainer(i){return this._previewContainer=i,this}_sortFromLastPointerPosition(){let i=this._lastKnownPointerPosition;i&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(i),i)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._anchor?.remove(),this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._anchor=this._placeholderRef=null}_pointerDown=i=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,i)}else this.disabled||this._initializeDragSequence(this._rootElement,i)};_pointerMove=i=>{let e=this._getPointerPositionOnPage(i);if(!this._hasStartedDragging()){let o=Math.abs(e.x-this._pickupPositionOnPage.x),r=Math.abs(e.y-this._pickupPositionOnPage.y);if(o+r>=this._config.dragStartThreshold){let s=Date.now()>=this._dragStartTime+this._getDragStartDelay(i),c=this._dropContainer;if(!s){this._endDragSequence(i);return}(!c||!c.isDragging()&&!c.isReceiving())&&(i.cancelable&&i.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(i)))}return}i.cancelable&&i.preventDefault();let n=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(n),this._dropContainer)this._updateActiveDropContainer(n,e);else{let o=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,r=this._activeTransform;r.x=n.x-o.x+this._passiveTransform.x,r.y=n.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(r.x,r.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:n,event:i,distance:this._getDragDistance(n),delta:this._pointerDirectionDelta})})};_pointerUp=i=>{this._endDragSequence(i)};_endDragSequence(i){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:i}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(i),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(i);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:i})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(i){vu(i)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),n=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=this._renderer.listen(e,"selectstart",Lre,Tre)}),n){let o=this._rootElement,r=o.parentNode,a=this._placeholder=this._createPlaceholderElement(),s=this._marker=this._marker||this._document.createComment("");r.insertBefore(s,o),this._initialTransform=o.style.transform||"",this._preview=new ub(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(r,e)),zA(o,!1,jA),this._document.body.appendChild(r.replaceChild(a,o)),this.started.next({source:this,event:i}),n.start(),this._initialContainer=n,this._initialIndex=n.getItemIndex(this)}else this.started.next({source:this,event:i}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(n?n.getScrollableParents():[])}_initializeDragSequence(i,e){this._parentDragRef&&e.stopPropagation();let n=this.isDragging(),o=vu(e),r=!o&&e.button!==0,a=this._rootElement,s=jn(e),c=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+Pre>Date.now(),m=o?Qa(e):Ya(e);if(s&&s.draggable&&e.type==="mousedown"&&e.preventDefault(),n||r||c||m)return;if(this._handles.length){let x=a.style;this._rootElementTapHighlight=x.webkitTapHighlightColor||"",x.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(x=>this._updateOnScroll(x)),this._boundaryElement&&(this._boundaryRect=hb(this._boundaryElement));let f=this._previewTemplate;this._pickupPositionInElement=f&&f.template&&!f.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,i,e);let v=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:v.x,y:v.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(i){zA(this._rootElement,!0,jA),this._marker.parentNode.replaceChild(this._rootElement,this._marker),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,n=e.getItemIndex(this),o=this._getPointerPositionOnPage(i),r=this._getDragDistance(o),a=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:r,dropPoint:o,event:i}),this.dropped.next({item:this,currentIndex:n,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:o,event:i}),e.drop(this,n,this._initialIndex,this._initialContainer,a,r,o,i),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:i,y:e},{x:n,y:o}){let r=this._initialContainer._getSiblingContainerFromPosition(this,i,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(i,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{let a=this._dropContainer.getItemIndex(this),s=this._dropContainer.getItemAtIndex(a+1)?.getVisibleElement()||null;this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._conditionallyInsertAnchor(r,this._dropContainer,s),this._dropContainer=r,this._dropContainer.enter(this,i,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(n,o),this._dropContainer._sortItem(this,i,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(i,e):this._applyPreviewTransform(i-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let i=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(i.left,i.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(n=>{let o=s=>{(!s||this._preview&&jn(s)===this._preview.element&&s.propertyName==="transform")&&(a(),n(),clearTimeout(r))},r=setTimeout(o,e*1.5),a=this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){let i=this._placeholderTemplate,e=i?i.template:null,n;return e?(this._placeholderRef=i.viewContainer.createEmbeddedView(e,i.context),this._placeholderRef.detectChanges(),n=qA(this._placeholderRef,this._document)):n=lb(this._rootElement),n.style.pointerEvents="none",n.classList.add(BA),n}_getPointerPositionInElement(i,e,n){let o=e===this._rootElement?null:e,r=o?o.getBoundingClientRect():i,a=vu(n)?n.targetTouches[0]:n,s=this._getViewportScrollPosition(),c=a.pageX-r.left-s.left,m=a.pageY-r.top-s.top;return{x:r.left-i.left+c,y:r.top-i.top+m}}_getPointerPositionOnPage(i){let e=this._getViewportScrollPosition(),n=vu(i)?i.touches[0]||i.changedTouches[0]||{pageX:0,pageY:0}:i,o=n.pageX-e.left,r=n.pageY-e.top;if(this._ownerSVGElement){let a=this._ownerSVGElement.getScreenCTM();if(a){let s=this._ownerSVGElement.createSVGPoint();return s.x=o,s.y=r,s.matrixTransform(a.inverse())}}return{x:o,y:r}}_getConstrainedPointerPosition(i){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:n,y:o}=this.constrainPosition?this.constrainPosition(i,this,this._initialDomRect,this._pickupPositionInElement):i;if(this.lockAxis==="x"||e==="x"?o=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(n=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:r,y:a}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,s=this._boundaryRect,{width:c,height:m}=this._getPreviewRect(),f=s.top+a,v=s.bottom-(m-a),x=s.left+r,w=s.right-(c-r);n=HA(n,x,w),o=HA(o,f,v)}return{x:n,y:o}}_updatePointerDirectionDelta(i){let{x:e,y:n}=i,o=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),s=Math.abs(n-r.y);return a>this._config.pointerDirectionChangeThreshold&&(o.x=e>r.x?1:-1,r.x=e),s>this._config.pointerDirectionChangeThreshold&&(o.y=n>r.y?1:-1,r.y=n),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let i=this._handles.length>0||!this.isDragging();i!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=i,P2(this._rootElement,i))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(i=>i()),this._rootElementCleanups=void 0}_applyRootElementTransform(i,e){let n=1/this.scale,o=xu(i*n,e*n),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=Yf(o,this._initialTransform)}_applyPreviewTransform(i,e){let n=this._previewTemplate?.template?void 0:this._initialTransform,o=xu(i,e);this._preview.setTransform(Yf(o,n))}_getDragDistance(i){let e=this._pickupPositionOnPage;return e?{x:i.x-e.x,y:i.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:i,y:e}=this._passiveTransform;if(i===0&&e===0||this.isDragging()||!this._boundaryElement)return;let n=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(o.width===0&&o.height===0||n.width===0&&n.height===0)return;let r=o.left-n.left,a=n.right-o.right,s=o.top-n.top,c=n.bottom-o.bottom;o.width>n.width?(r>0&&(i+=r),a>0&&(i-=a)):i=0,o.height>n.height?(s>0&&(e+=s),c>0&&(e-=c)):e=0,(i!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:i})}_getDragStartDelay(i){let e=this.dragStartDelay;return typeof e=="number"?e:vu(i)?e.touch:e?e.mouse:0}_updateOnScroll(i){let e=this._parentPositions.handleScroll(i);if(e){let n=jn(i);this._boundaryRect&&n!==this._boundaryElement&&n.contains(this._boundaryElement)&&Cu(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Qc(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(i,e){let n=this._previewContainer||"global";if(n==="parent")return i;if(n==="global"){let o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return kn(n)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=i=>{if(this._handles.length){let e=this._getTargetHandle(i);e&&!this._disabledHandles.has(e)&&!this.disabled&&i.preventDefault()}else this.disabled||i.preventDefault()};_getTargetHandle(i){return this._handles.find(e=>i.target&&(i.target===e||e.contains(i.target)))}_conditionallyInsertAnchor(i,e,n){if(i===this._initialContainer)this._anchor?.remove(),this._anchor=null;else if(e===this._initialContainer&&e.hasAnchor){let o=this._anchor??=lb(this._placeholder);o.classList.remove(BA),o.classList.add("cdk-drag-anchor"),o.style.transform="",n?n.before(o):kn(e.element).appendChild(o)}}};function HA(t,i,e){return Math.max(i,Math.min(e,t))}function vu(t){return t.type[0]==="t"}function Lre(t){t.preventDefault()}function YA(t,i,e){let n=UA(i,t.length-1),o=UA(e,t.length-1);if(n===o)return;let r=t[n],a=o0)return null;let s=this.orientation==="horizontal",c=r.findIndex(Y=>Y.drag===i),m=r[a],f=r[c].clientRect,v=m.clientRect,x=c>a?1:-1,w=this._getItemOffsetPx(f,v,x),O=this._getSiblingOffsetPx(c,r,x),K=r.slice();return YA(r,c,a),r.forEach((Y,Z)=>{if(K[Z]===Y)return;let Oe=Y.drag===i,Mt=Oe?w:O,Et=Oe?i.getPlaceholderElement():Y.drag.getRootElement();Y.offset+=Mt;let Ht=Math.round(Y.offset*(1/Y.drag.scale));s?(Et.style.transform=Yf(`translate3d(${Ht}px, 0, 0)`,Y.initialTransform),Cu(Y.clientRect,0,Mt)):(Et.style.transform=Yf(`translate3d(0, ${Ht}px, 0)`,Y.initialTransform),Cu(Y.clientRect,Mt,0))}),this._previousSwap.overlaps=db(v,e,n),this._previousSwap.drag=m.drag,this._previousSwap.delta=s?o.x:o.y,{previousIndex:c,currentIndex:a}}enter(i,e,n,o){let r=o==null||o<0?this._getItemIndexFromPointerPosition(i,e,n):o,a=this._activeDraggables,s=a.indexOf(i),c=i.getPlaceholderElement(),m=a[r];if(m===i&&(m=a[r+1]),!m&&(r==null||r===-1||r-1&&a.splice(s,1),m&&!this._dragDropRegistry.isDragging(m)){let f=m.getRootElement();f.parentElement.insertBefore(c,f),a.splice(r,0,i)}else this._element.appendChild(c),a.push(i);c.style.transform="",this._cacheItemPositions()}withItems(i){this._activeDraggables=i.slice(),this._cacheItemPositions()}withSortPredicate(i){this._sortPredicate=i}reset(){this._activeDraggables?.forEach(i=>{let e=i.getRootElement();if(e){let n=this._itemPositions.find(o=>o.drag===i)?.initialTransform;e.style.transform=n||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(i){return this._getVisualItemPositions().findIndex(e=>e.drag===i)}getItemAtIndex(i){return this._getVisualItemPositions()[i]?.drag||null}updateOnScroll(i,e){this._itemPositions.forEach(({clientRect:n})=>{Cu(n,i,e)}),this._itemPositions.forEach(({drag:n})=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(i){this._element=i}_cacheItemPositions(){let i=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let n=e.getVisibleElement();return{drag:e,offset:0,initialTransform:n.style.transform||"",clientRect:hb(n)}}).sort((e,n)=>i?e.clientRect.left-n.clientRect.left:e.clientRect.top-n.clientRect.top)}_getVisualItemPositions(){return this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions}_getItemOffsetPx(i,e,n){let o=this.orientation==="horizontal",r=o?e.left-i.left:e.top-i.top;return n===-1&&(r+=o?e.width-i.width:e.height-i.height),r}_getSiblingOffsetPx(i,e,n){let o=this.orientation==="horizontal",r=e[i].clientRect,a=e[i+n*-1],s=r[o?"width":"height"]*n;if(a){let c=o?"left":"top",m=o?"right":"bottom";n===-1?s-=a.clientRect[c]-r[m]:s+=r[c]-a.clientRect[m]}return s}_shouldEnterAsFirstChild(i,e){if(!this._activeDraggables.length)return!1;let n=this._itemPositions,o=this.orientation==="horizontal";if(n[0].drag!==this._activeDraggables[0]){let a=n[n.length-1].clientRect;return o?i>=a.right:e>=a.bottom}else{let a=n[0].clientRect;return o?i<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(i,e,n,o){let r=this.orientation==="horizontal",a=this._itemPositions.findIndex(({drag:s,clientRect:c})=>{if(s===i)return!1;if(o){let m=r?o.x:o.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&m===this._previousSwap.delta)return!1}return r?e>=Math.floor(c.left)&&e=Math.floor(c.top)&&nc?f.after(m):f.before(m),YA(this._activeItems,c,r);let v=this._getRootNode().elementFromPoint(e,n);return a.deltaX=o.x,a.deltaY=o.y,a.drag=s,a.overlaps=f===v||f.contains(v),{previousIndex:c,currentIndex:r}}enter(i,e,n,o){let r=this._activeItems.indexOf(i);r>-1&&this._activeItems.splice(r,1);let a=o==null||o<0?this._getItemIndexFromPointerPosition(i,e,n):o;a===-1&&(a=this._getClosestItemIndexToPointer(i,e,n));let s=this._activeItems[a];s&&!this._dragDropRegistry.isDragging(s)?(this._activeItems.splice(a,0,i),s.getRootElement().before(i.getPlaceholderElement())):(this._activeItems.push(i),this._element.appendChild(i.getPlaceholderElement()))}withItems(i){this._activeItems=i.slice()}withSortPredicate(i){this._sortPredicate=i}reset(){let i=this._element,e=this._previousSwap;for(let n=this._relatedNodes.length-1;n>-1;n--){let[o,r]=this._relatedNodes[n];o.parentNode===i&&o.nextSibling!==r&&(r===null?i.appendChild(o):r.parentNode===i&&i.insertBefore(o,r))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(i){return this._activeItems.indexOf(i)}getItemAtIndex(i){return this._activeItems[i]||null}updateOnScroll(){this._activeItems.forEach(i=>{this._dragDropRegistry.isDragging(i)&&i._sortFromLastPointerPosition()})}withElementContainer(i){i!==this._element&&(this._element=i,this._rootNode=void 0)}_getItemIndexFromPointerPosition(i,e,n){let o=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(n)),r=o?this._activeItems.findIndex(a=>{let s=a.getRootElement();return o===s||s.contains(o)}):-1;return r===-1||!this._sortPredicate(r,i)?-1:r}_getRootNode(){return this._rootNode||(this._rootNode=Qc(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(i,e,n){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let o=1/0,r=-1;for(let a=0;a!0;sortPredicate=()=>!0;beforeStarted=new B;entered=new B;exited=new B;dropped=new B;sorted=new B;receivingStarted=new B;receivingStopped=new B;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=Se.EMPTY;_verticalScrollDirection=cr.NONE;_horizontalScrollDirection=po.NONE;_scrollNode;_stopScrollTimers=new B;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(i,e,n,o,r){this._dragDropRegistry=e,this._ngZone=o,this._viewportRuler=r;let a=this.element=kn(i);this._document=n,this.withOrientation("vertical").withElementContainer(a),e.registerDropContainer(this),this._parentPositions=new qf(n)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(i,e,n,o){this._draggingStarted(),o==null&&this.sortingDisabled&&(o=this._draggables.indexOf(i)),this._sortStrategy.enter(i,e,n,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:i,container:this,currentIndex:this.getItemIndex(i)})}exit(i){this._reset(),this.exited.next({item:i,container:this})}drop(i,e,n,o,r,a,s,c={}){this._reset(),this.dropped.next({item:i,currentIndex:e,previousIndex:n,container:this,previousContainer:o,isPointerOverContainer:r,distance:a,dropPoint:s,event:c})}withItems(i){let e=this._draggables;return this._draggables=i,i.forEach(n=>n._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>i.indexOf(o)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(i){return this._direction=i,this._sortStrategy instanceof Qf&&(this._sortStrategy.direction=i),this}connectedTo(i){return this._siblings=i.slice(),this}withOrientation(i){if(i==="mixed")this._sortStrategy=new pb(this._document,this._dragDropRegistry);else{let e=new Qf(this._dragDropRegistry);e.direction=this._direction,e.orientation=i,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,n)=>this.sortPredicate(e,n,this)),this}withScrollableParents(i){let e=this._container;return this._scrollableElements=i.indexOf(e)===-1?[e,...i]:i.slice(),this}withElementContainer(i){if(i===this._container)return this;let e=kn(this.element),n=this._scrollableElements.indexOf(this._container),o=this._scrollableElements.indexOf(i);return n>-1&&this._scrollableElements.splice(n,1),o>-1&&this._scrollableElements.splice(o,1),this._sortStrategy&&this._sortStrategy.withElementContainer(i),this._cachedShadowRoot=null,this._scrollableElements.unshift(i),this._container=i,this}getScrollableParents(){return this._scrollableElements}getItemIndex(i){return this._isDragging?this._sortStrategy.getItemIndex(i):this._draggables.indexOf(i)}getItemAtIndex(i){return this._isDragging?this._sortStrategy.getItemAtIndex(i):this._draggables[i]||null}isReceiving(){return this._activeSiblings.size>0}_sortItem(i,e,n,o){if(this.sortingDisabled||!this._domRect||!AA(this._domRect,$A,e,n))return;let r=this._sortStrategy.sort(i,e,n,o);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:i})}_startScrollingIfNecessary(i,e){if(this.autoScrollDisabled)return;let n,o=cr.NONE,r=po.NONE;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||n||AA(a.clientRect,$A,i,e)&&([o,r]=Are(s,a.clientRect,this._direction,i,e),(o||r)&&(n=s))}),!o&&!r){let{width:a,height:s}=this._viewportRuler.getViewportSize(),c={width:a,height:s,top:0,right:a,bottom:s,left:0};o=KA(c,e),r=XA(c,i),n=window}n&&(o!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||n!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=r,this._scrollNode=n,(o||r)&&n?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let i=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=i.msScrollSnapType||i.scrollSnapType||"",i.scrollSnapType=i.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let i=this._container.style;i.scrollSnapType=i.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),A6(0,b3).pipe(ye(this._stopScrollTimers)).subscribe(()=>{let i=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===cr.UP?i.scrollBy(0,-e):this._verticalScrollDirection===cr.DOWN&&i.scrollBy(0,e),this._horizontalScrollDirection===po.LEFT?i.scrollBy(-e,0):this._horizontalScrollDirection===po.RIGHT&&i.scrollBy(e,0)})};_isOverContainer(i,e){return this._domRect!=null&&db(this._domRect,i,e)}_getSiblingContainerFromPosition(i,e,n){return this._siblings.find(o=>o._canReceive(i,e,n))}_canReceive(i,e,n){if(!this._domRect||!db(this._domRect,e,n)||!this.enterPredicate(i,this))return!1;let o=this._getShadowRoot().elementFromPoint(e,n);return o?o===this._container||this._container.contains(o):!1}_startReceiving(i,e){let n=this._activeSiblings;!n.has(i)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(n.add(i),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:i,receiver:this,items:e}))}_stopReceiving(i){this._activeSiblings.delete(i),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:i,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(i=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(i);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let i=Qc(this._container);this._cachedShadowRoot=i||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let i=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,i))}};function KA(t,i){let{top:e,bottom:n,height:o}=t,r=o*QA;return i>=e-r&&i<=e+r?cr.UP:i>=n-r&&i<=n+r?cr.DOWN:cr.NONE}function XA(t,i){let{left:e,right:n,width:o}=t,r=o*QA;return i>=e-r&&i<=e+r?po.LEFT:i>=n-r&&i<=n+r?po.RIGHT:po.NONE}function Are(t,i,e,n,o){let r=KA(i,o),a=XA(i,n),s=cr.NONE,c=po.NONE;if(r){let m=t.scrollTop;r===cr.UP?m>0&&(s=cr.UP):t.scrollHeight-m>t.clientHeight&&(s=cr.DOWN)}if(a){let m=t.scrollLeft;e==="rtl"?a===po.RIGHT?m<0&&(c=po.RIGHT):t.scrollWidth+m>t.clientWidth&&(c=po.LEFT):a===po.LEFT?m>0&&(c=po.LEFT):t.scrollWidth-m>t.clientWidth&&(c=po.RIGHT)}return[s,c]}var yu={capture:!0},cb={passive:!1,capture:!0},zre=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(n,o){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important}
+`],encapsulation:2,changeDetection:0})}return t})(),ZA=(()=>{class t{_ngZone=d(se);_document=d(Me);_styleLoader=d(at);_renderer=d(On).createRenderer(null,null);_cleanupDocumentTouchmove;_scroll=new B;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=we([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new B;pointerUp=new B;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=this._renderer.listen(this._document,"touchmove",this._persistentTouchmoveListener,cb)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,n){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(zre),this._activeDragInstances.update(o=>[...o,e]),this._activeDragInstances().length===1)){let o=n.type.startsWith("touch"),r=s=>this.pointerUp.next(s),a=[["scroll",s=>this._scroll.next(s),yu],["selectstart",this._preventDefaultWhileDragging,cb]];o?a.push(["touchend",r,yu],["touchcancel",r,yu]):a.push(["mouseup",r,yu]),o||a.push(["mousemove",s=>this.pointerMove.next(s),cb]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=a.map(([s,c,m])=>this._renderer.listen(this._document,s,c,m))})}}stopDragging(e){this._activeDragInstances.update(n=>{let o=n.indexOf(e);return o>-1?(n.splice(o,1),[...n]):n}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let n=[this._scroll];return e&&e!==this._document&&n.push(new Fe(o=>this._ngZone.runOutsideAngular(()=>{let r=this._renderer.listen(e,"scroll",a=>{this._activeDragInstances().length&&o.next(a)},yu);return()=>{r()}}))),ft(...n)}registerDirectiveNode(e,n){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,n)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),Rre={dragStartThreshold:5,pointerDirectionChangeThreshold:5},_b=(()=>{class t{_document=d(Me);_ngZone=d(se);_viewportRuler=d(Gn);_dragDropRegistry=d(ZA);_renderer=d(On).createRenderer(null,null);constructor(){}createDrag(e,n=Rre){return new mb(e,n,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new fb(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})(),GA=new L("CDK_DRAG_PARENT");var Nre=new L("CdkDragHandle");var JA=new L("CDK_DRAG_CONFIG"),ez=new L("CdkDropList"),tVe=(()=>{class t{element=d(Q);dropContainer=d(ez,{optional:!0,skipSelf:!0});_ngZone=d(se);_viewContainerRef=d(dt);_dir=d(bt,{optional:!0});_changeDetectorRef=d(xe);_selfHandle=d(Nre,{optional:!0,self:!0});_parentDrag=d(GA,{optional:!0,skipSelf:!0});_dragDropRegistry=d(ZA);_destroyed=new B;_handles=new ct([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis=null;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new j;released=new j;ended=new j;entered=new j;exited=new j;dropped=new j;moved=new Fe(e=>{let n=this._dragRef.moved.pipe(me(o=>({source:this,pointerPosition:o.pointerPosition,event:o.event,delta:o.delta,distance:o.distance}))).subscribe(e);return()=>{n.unsubscribe()}});_injector=d(be);constructor(){let e=this.dropContainer,n=d(JA,{optional:!0}),o=d(_b);this._dragRef=o.createDrag(this.element,{dragStartThreshold:n&&n.dragStartThreshold!=null?n.dragStartThreshold:5,pointerDirectionChangeThreshold:n&&n.pointerDirectionChangeThreshold!=null?n.pointerDirectionChangeThreshold:5,zIndex:n?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),n&&this._assignDefaults(n),e&&(e.addItem(this),e._dropListRef.beforeStarted.pipe(ye(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}resetToBoundary(){this._dragRef.resetToBoundary()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Ct(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let n=e.rootElementSelector,o=e.freeDragPosition;n&&!n.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let n=this._handles.getValue();n.push(e),this._handles.next(n)}_removeHandle(e){let n=this._handles.getValue(),o=n.indexOf(e);o>-1&&(n.splice(o,1),this._handles.next(n))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,n=e;this.rootElementSelector&&(n=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(n||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):kn(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let n=this._dir,o=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof o=="object"&&o?o:vn(o),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),n&&e.withDirection(n.value)}}),e.beforeStarted.pipe(Be(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let n=this.element.nativeElement.parentElement;for(;n;){let o=this._dragDropRegistry.getDragDirectiveForNode(n);if(o){e.withParent(o._dragRef);break}n=n.parentElement}})}_handleEvents(e){e.started.subscribe(n=>{this.started.emit({source:this,event:n.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(n=>{this.released.emit({source:this,event:n.event})}),e.ended.subscribe(n=>{this.ended.emit({source:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:n.container.data,item:this,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:n.container.data,item:this})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,isPointerOverContainer:n.isPointerOverContainer,item:this,distance:n.distance,dropPoint:n.dropPoint,event:n.event})})}_assignDefaults(e){let{lockAxis:n,dragStartDelay:o,constrainPosition:r,previewClass:a,boundaryElement:s,draggingDisabled:c,rootElementSelector:m,previewContainer:f}=e;this.disabled=c??!1,this.dragStartDelay=o||0,this.lockAxis=n||null,r&&(this.constrainPosition=r),a&&(this.previewClass=a),s&&(this.boundaryElement=s),m&&(this.rootElementSelector=m),f&&(this.previewContainer=f)}_setupHandlesListener(){this._handles.pipe(Ot(e=>{let n=e.map(o=>o.element);this._selfHandle&&this.rootElementSelector&&n.push(this.element),this._dragRef.withHandles(n)}),lt(e=>ft(...e.map(n=>n._stateChanges.pipe(We(n))))),ye(this._destroyed)).subscribe(e=>{let n=this._dragRef,o=e.element.nativeElement;e.disabled?n.disableHandle(o):n.enableHandle(o)})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(n,o){n&2&&oe("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",H],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",ut]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[de([{provide:GA,useExisting:t}]),Re]})}return t})(),WA=new L("CdkDropListGroup");var nVe=(()=>{class t{element=d(Q);_changeDetectorRef=d(xe);_scrollDispatcher=d(ar);_dir=d(bt,{optional:!0});_group=d(WA,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new B;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=d(He).getId("cdk-drop-list-");lockAxis=null;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;hasAnchor;dropped=new j;entered=new j;exited=new j;sorted=new j;_unsortedItems=new Set;constructor(){let e=d(_b),n=d(JA,{optional:!0});this._dropListRef=e.createDropList(this.element),this._dropListRef.data=this,n&&this._assignDefaults(n),this._dropListRef.enterPredicate=(o,r)=>this.enterPredicate(o.data,r.data),this._dropListRef.sortPredicate=(o,r,a)=>this.sortPredicate(o,r.data,a.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),t._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),e._dragRef._withDropContainer(this._dropListRef),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(n=>n._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let n=this._latestSortedRefs.indexOf(e._dragRef);n>-1&&(this._latestSortedRefs.splice(n,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,n)=>e._dragRef.getVisibleElement().compareDocumentPosition(n._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=t._dropLists.indexOf(this);e>-1&&t._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(We(this._dir.value),ye(this._destroyed)).subscribe(n=>e.withDirection(n)),e.beforeStarted.subscribe(()=>{let n=Or(this.connectedTo).map(o=>{if(typeof o=="string"){let r=t._dropLists.find(a=>a.id===o);return r}return o});if(this._group&&this._group._items.forEach(o=>{n.indexOf(o)===-1&&n.push(o)}),!this._scrollableParentsResolved){let o=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(r=>r.getElementRef().nativeElement);this._dropListRef.withScrollableParents(o),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let o=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(o)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=vn(this.autoScrollStep,2),e.hasAnchor=this.hasAnchor,e.connectedTo(n.filter(o=>o&&o!==this).map(o=>o._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(n=>n._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(n=>{this.entered.emit({container:this,item:n.item.data,currentIndex:n.currentIndex})}),e.exited.subscribe(n=>{this.exited.emit({container:this,item:n.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(n=>{this.sorted.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,container:this,item:n.item.data})}),e.dropped.subscribe(n=>{this.dropped.emit({previousIndex:n.previousIndex,currentIndex:n.currentIndex,previousContainer:n.previousContainer.data,container:n.container.data,item:n.item.data,isPointerOverContainer:n.isPointerOverContainer,distance:n.distance,dropPoint:n.dropPoint,event:n.event}),this._changeDetectorRef.markForCheck()}),ft(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:n,draggingDisabled:o,sortingDisabled:r,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=o??!1,this.sortingDisabled=r??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",this.lockAxis=n||null}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(n,o){n&2&&(ne("id",o.id),oe("cdk-drop-list-disabled",o.disabled)("cdk-drop-list-dragging",o._dropListRef.isDragging())("cdk-drop-list-receiving",o._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",H],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",H],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",H],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"],hasAnchor:[2,"cdkDropListHasAnchor","hasAnchor",H]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[de([{provide:WA,useValue:void 0},{provide:ez,useExisting:t}])]})}return t})();var tz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[_b],imports:[xi]})}return t})();var Fre=["*"];function Vre(t,i){t&1&&ae(0)}var bb=(()=>{class t{_elementRef=d(Q);constructor(){}focus(){this._elementRef.nativeElement.focus()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]})}return t})(),vb=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkStepLabel",""]]})}return t})();var vl={NUMBER:"number",EDIT:"edit",DONE:"done",ERROR:"error"},yb=new L("STEPPER_GLOBAL_OPTIONS"),Kf=(()=>{class t{_stepperOptions;_stepper=d(L2);_displayDefaultIndicatorType;stepLabel;_childForms;content;stepControl;get interacted(){return this._interacted()}set interacted(e){this._interacted.set(e)}_interacted=we(!1);interactedStream=new j;label;errorMessage;ariaLabel;ariaLabelledby;get state(){return this._state()}set state(e){this._state.set(e)}_state=we(void 0);get editable(){return this._editable()}set editable(e){this._editable.set(e)}_editable=we(!0);optional=!1;get completed(){let e=this._completedOverride(),n=this._interacted();return e??(n&&(!this.stepControl||this.stepControl.valid))}set completed(e){this._completedOverride.set(e)}_completedOverride=we(null);index=we(-1);isSelected=Zn(()=>this._stepper.selectedIndex===this.index());indicatorType=Zn(()=>{let e=this.isSelected(),n=this.completed,o=this._state()??vl.NUMBER,r=this._editable();return this._showError()&&this.hasError&&!e?vl.ERROR:this._displayDefaultIndicatorType?!n||e?vl.NUMBER:r?vl.EDIT:vl.DONE:n&&!e?vl.DONE:n&&e?o:r&&e?vl.EDIT:o});isNavigable=Zn(()=>{let e=this.isSelected();return this.completed||e||!this._stepper.linear});get hasError(){let e=this._customError();return e??this._getDefaultError()}set hasError(e){this._customError.set(e)}_customError=we(null);_getDefaultError(){return this.interacted&&!!this.stepControl?.invalid}constructor(){let e=d(yb,{optional:!0});this._stepperOptions=e||{},this._displayDefaultIndicatorType=this._stepperOptions.displayDefaultIndicatorType!==!1}select(){this._stepper.selected=this}reset(){this._interacted.set(!1),this._completedOverride()!=null&&this._completedOverride.set(!1),this._customError()!=null&&this._customError.set(!1),this.stepControl&&(this._childForms?.forEach(e=>e.resetForm?.()),this.stepControl.reset())}ngOnChanges(){this._stepper._stateChanged()}_markAsInteracted(){this._interacted()||(this._interacted.set(!0),this.interactedStream.emit(this))}_showError(){return this._stepperOptions.showError??this._customError()!=null}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-step"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,vb,5),Ee(r,vi,5)),n&2){let a;U(a=$())&&(o.stepLabel=a.first),U(a=$())&&(o._childForms=a)}},viewQuery:function(n,o){if(n&1&&ue(tt,7),n&2){let r;U(r=$())&&(o.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],state:"state",editable:[2,"editable","editable",H],optional:[2,"optional","optional",H],completed:[2,"completed","completed",H],hasError:[2,"hasError","hasError",H]},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[Re],ngContentSelectors:Fre,decls:1,vars:0,template:function(n,o){n&1&&(De(),Mr(0,Vre,1,0,"ng-template"))},encapsulation:2,changeDetection:0})}return t})(),L2=(()=>{class t{_dir=d(bt,{optional:!0});_changeDetectorRef=d(xe);_elementRef=d(Q);_destroyed=new B;_keyManager;_steps;steps=new In;_stepHeader;_sortedHeaders=new In;linear=!1;get selectedIndex(){return this._selectedIndex()}set selectedIndex(e){this._steps?(this._isValidIndex(e),this.selectedIndex!==e&&(this.selected?._markAsInteracted(),!this._anyControlsInvalidOrPending(e)&&(e>=this.selectedIndex||this.steps.toArray()[e].editable)&&this._updateSelectedItemIndex(e))):this._selectedIndex.set(e)}_selectedIndex=we(0);get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(e){this.selectedIndex=e&&this.steps?this.steps.toArray().indexOf(e):-1}selectionChange=new j;selectedIndexChange=new j;_groupId=d(He).getId("cdk-stepper-");get orientation(){return this._orientation}set orientation(e){this._orientation=e,this._keyManager&&this._keyManager.withVerticalOrientation(e==="vertical")}_orientation="horizontal";constructor(){}ngAfterContentInit(){this._steps.changes.pipe(We(this._steps),ye(this._destroyed)).subscribe(e=>{this.steps.reset(e.filter(n=>n._stepper===this)),this.steps.forEach((n,o)=>n.index.set(o)),this.steps.notifyOnChanges()})}ngAfterViewInit(){if(this._stepHeader.changes.pipe(We(this._stepHeader),ye(this._destroyed)).subscribe(e=>{this._sortedHeaders.reset(e.toArray().sort((n,o)=>n._elementRef.nativeElement.compareDocumentPosition(o._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new Tr(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation(this._orientation==="vertical"),this._keyManager.updateActiveItem(this.selectedIndex),(this._dir?this._dir.change:re()).pipe(We(this._layoutDirection()),ye(this._destroyed)).subscribe(e=>this._keyManager?.withHorizontalOrientation(e)),this._keyManager.updateActiveItem(this.selectedIndex),this.steps.changes.subscribe(()=>{this.selected||this._selectedIndex.set(Math.max(this.selectedIndex-1,0))}),this._isValidIndex(this.selectedIndex)||this._selectedIndex.set(0),this.linear&&this.selectedIndex>0){let e=this.steps.toArray().slice(0,this._selectedIndex());for(let n of e)n._markAsInteracted()}}ngOnDestroy(){this._keyManager?.destroy(),this.steps.destroy(),this._sortedHeaders.destroy(),this._destroyed.next(),this._destroyed.complete()}next(){this.selectedIndex=Math.min(this._selectedIndex()+1,this.steps.length-1)}previous(){this.selectedIndex=Math.max(this._selectedIndex()-1,0)}reset(){this._updateSelectedItemIndex(0),this.steps.forEach(e=>e.reset()),this._stateChanged()}_getStepLabelId(e){return`${this._groupId}-label-${e}`}_getStepContentId(e){return`${this._groupId}-content-${e}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(e){let n=e-this._selectedIndex();return n<0?this._layoutDirection()==="rtl"?"next":"previous":n>0?this._layoutDirection()==="rtl"?"previous":"next":"current"}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex()}_updateSelectedItemIndex(e){let n=this.steps.toArray(),o=this._selectedIndex();this.selectionChange.emit({selectedIndex:e,previouslySelectedIndex:o,selectedStep:n[e],previouslySelectedStep:n[o]}),this._keyManager&&(this._containsFocus()?this._keyManager.setActiveItem(e):this._keyManager.updateActiveItem(e)),this._selectedIndex.set(e),this.selectedIndexChange.emit(e),this._stateChanged()}_onKeydown(e){let n=Dt(e),o=e.keyCode,r=this._keyManager;r?.activeItemIndex!=null&&!n&&(o===32||o===13)?(this.selectedIndex=r.activeItemIndex,e.preventDefault()):r?.setFocusOrigin("keyboard").onKeydown(e)}_anyControlsInvalidOrPending(e){return this.linear&&e>=0?this.steps.toArray().slice(0,e).some(n=>{let o=n.stepControl;return(o?o.invalid||o.pending||!n.interacted:!n.completed)&&!n.optional&&!n._completedOverride()}):!1}_layoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_containsFocus(){let e=this._elementRef.nativeElement,n=no();return e===n||e.contains(n)}_isValidIndex(e){return e>-1&&(!this.steps||e{class t{_stepper=d(L2);type="submit";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(n,o){n&1&&N("click",function(){return o._stepper.next()}),n&2&&Lt("type",o.type)},inputs:{type:"type"}})}return t})(),iz=(()=>{class t{_stepper=d(L2);type="button";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(n,o){n&1&&N("click",function(){return o._stepper.previous()}),n&2&&Lt("type",o.type)},inputs:{type:"type"}})}return t})(),oz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[la]})}return t})();var Bre=["panel"],jre=["*"];function Hre(t,i){if(t&1&&(nt(0,"div",1,0),ae(2),rt()),t&2){let e=i.id,n=M();Tt(n._classList),oe("mat-mdc-autocomplete-visible",n.showPanel)("mat-mdc-autocomplete-hidden",!n.showPanel)("mat-autocomplete-panel-animations-enabled",!n._animationsDisabled)("mat-primary",n._color==="primary")("mat-accent",n._color==="accent")("mat-warn",n._color==="warn"),Lt("id",n.id),ne("aria-label",n.ariaLabel||null)("aria-labelledby",n._getPanelAriaLabelledby(e))}}var Cb=class{source;option;constructor(i,e){this.source=i,this.option=e}},rz=new L("mat-autocomplete-default-options",{providedIn:"root",factory:Ure});function Ure(){return{autoActiveFirstOption:!1,autoSelectActiveOption:!1,hideSingleSelectionIndicator:!1,requireSelection:!1,hasBackdrop:!1}}var ZVe=(()=>{class t{_changeDetectorRef=d(xe);_elementRef=d(Q);_defaults=d(rz);_animationsDisabled=Ue();_activeOptionChanges=Se.EMPTY;_keyManager;showPanel=!1;get isOpen(){return this._isOpen&&this.showPanel}_isOpen=!1;_latestOpeningTrigger;_setColor(e){this._color=e,this._changeDetectorRef.markForCheck()}_color;template;panel;options;optionGroups;ariaLabel;ariaLabelledby;displayWith=null;autoActiveFirstOption;autoSelectActiveOption;requireSelection;panelWidth;disableRipple;optionSelected=new j;opened=new j;closed=new j;optionActivated=new j;set classList(e){this._classList=e,this._elementRef.nativeElement.className=""}_classList;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator;_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}id=d(He).getId("mat-autocomplete-");inertGroups;constructor(){let e=d(je);this.inertGroups=e?.SAFARI||!1,this.autoActiveFirstOption=!!this._defaults.autoActiveFirstOption,this.autoSelectActiveOption=!!this._defaults.autoSelectActiveOption,this.requireSelection=!!this._defaults.requireSelection,this._hideSingleSelectionIndicator=this._defaults.hideSingleSelectionIndicator??!1}ngAfterContentInit(){this._keyManager=new Zc(this.options).withWrap().skipPredicate(this._skipPredicate),this._activeOptionChanges=this._keyManager.change.subscribe(e=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[e]||null})}),this._setVisibility()}ngOnDestroy(){this._keyManager?.destroy(),this._activeOptionChanges.unsubscribe()}_setScrollTop(e){this.panel&&(this.panel.nativeElement.scrollTop=e)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options?.length,this._changeDetectorRef.markForCheck()}_emitSelectEvent(e){let n=new Cb(this,e);this.optionSelected.emit(n)}_getPanelAriaLabelledby(e){if(this.ariaLabel)return null;let n=e?e+" ":"";return this.ariaLabelledby?n+this.ariaLabelledby:e}_skipPredicate(){return!1}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-autocomplete"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,ln,5),Ee(r,g2,5)),n&2){let a;U(a=$())&&(o.options=a),U(a=$())&&(o.optionGroups=a)}},viewQuery:function(n,o){if(n&1&&(ue(tt,7),ue(Bre,5)),n&2){let r;U(r=$())&&(o.template=r.first),U(r=$())&&(o.panel=r.first)}},hostAttrs:[1,"mat-mdc-autocomplete"],inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:[2,"autoActiveFirstOption","autoActiveFirstOption",H],autoSelectActiveOption:[2,"autoSelectActiveOption","autoSelectActiveOption",H],requireSelection:[2,"requireSelection","requireSelection",H],panelWidth:"panelWidth",disableRipple:[2,"disableRipple","disableRipple",H],classList:[0,"class","classList"],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",H]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},exportAs:["matAutocomplete"],features:[de([{provide:h2,useExisting:t}])],ngContentSelectors:jre,decls:1,vars:0,consts:[["panel",""],["role","listbox",1,"mat-mdc-autocomplete-panel","mdc-menu-surface","mdc-menu-surface--open",3,"id"]],template:function(n,o){n&1&&(De(),Mr(0,Hre,3,17,"ng-template"))},styles:[`div.mat-mdc-autocomplete-panel{width:100%;max-height:256px;visibility:hidden;transform-origin:center top;overflow:auto;padding:8px 0;box-sizing:border-box;position:relative;border-radius:var(--mat-autocomplete-container-shape, var(--mat-sys-corner-extra-small));box-shadow:var(--mat-autocomplete-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));background-color:var(--mat-autocomplete-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-autocomplete-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-autocomplete-panel-above) div.mat-mdc-autocomplete-panel{border-top-left-radius:0;border-top-right-radius:0}.mat-mdc-autocomplete-panel-above div.mat-mdc-autocomplete-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:center bottom}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-visible{visibility:visible}div.mat-mdc-autocomplete-panel.mat-mdc-autocomplete-hidden{visibility:hidden;pointer-events:none}@keyframes _mat-autocomplete-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}.mat-autocomplete-panel-animations-enabled{animation:_mat-autocomplete-enter 120ms cubic-bezier(0, 0, 0.2, 1)}mat-autocomplete{display:none}
+`],encapsulation:2,changeDetection:0})}return t})();var $re={provide:di,useExisting:kt(()=>qre),multi:!0};var az=new L("mat-autocomplete-scroll-strategy",{providedIn:"root",factory:()=>{let t=d(be);return()=>fi(t)}});function Gre(t){let i=d(be);return()=>fi(i)}var Wre={provide:az,deps:[],useFactory:Gre},qre=(()=>{class t{_environmentInjector=d(Qt);_element=d(Q);_injector=d(be);_viewContainerRef=d(dt);_zone=d(se);_changeDetectorRef=d(xe);_dir=d(bt,{optional:!0});_formField=d(fa,{optional:!0,host:!0});_viewportRuler=d(Gn);_scrollStrategy=d(az);_renderer=d(Ke);_animationsDisabled=Ue();_defaults=d(rz,{optional:!0});_overlayRef;_portal;_componentDestroyed=!1;_initialized=new B;_keydownSubscription;_outsideClickSubscription;_cleanupWindowBlur;_previousValue;_valueOnAttach;_valueOnLastKeydown;_positionStrategy;_manuallyFloatingLabel=!1;_closingActionsSubscription;_viewportSubscription=Se.EMPTY;_breakpointObserver=d(Xc);_handsetLandscapeSubscription=Se.EMPTY;_canOpenOnNextFocus=!0;_valueBeforeAutoSelection;_pendingAutoselectedOption;_closeKeyEventStream=new B;_overlayPanelClass=Or(this._defaults?.overlayPanelClass||[]);_windowBlurHandler=()=>{this._canOpenOnNextFocus=this.panelOpen||!this._hasFocus()};_onChange=()=>{};_onTouched=()=>{};autocomplete;position="auto";connectedTo;autocompleteAttribute="off";autocompleteDisabled;constructor(){}_aboveClass="mat-mdc-autocomplete-panel-above";ngAfterViewInit(){this._initialized.next(),this._initialized.complete(),this._cleanupWindowBlur=this._renderer.listen("window","blur",this._windowBlurHandler)}ngOnChanges(e){e.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){this._cleanupWindowBlur?.(),this._handsetLandscapeSubscription.unsubscribe(),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete(),this._clearFromModal()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}_overlayAttached=!1;openPanel(){this._openPanelInternal()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._latestOpeningTrigger===this&&(this.autocomplete._isOpen=!1,this.autocomplete._latestOpeningTrigger=null),this._overlayAttached=!1,this._pendingAutoselectedOption=null,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._updatePanelState(),this._componentDestroyed||this._changeDetectorRef.detectChanges(),this._trackedModal&&Bs(this._trackedModal,"aria-owns",this.autocomplete.id))}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return ft(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Ae(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Ae(()=>this._overlayAttached)):re()).pipe(me(e=>e instanceof f2?e:null))}optionSelections=Ai(()=>{let e=this.autocomplete?this.autocomplete.options:null;return e?e.changes.pipe(We(e),lt(()=>ft(...e.map(n=>n.onSelectionChange)))):this._initialized.pipe(lt(()=>this.optionSelections))});get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return new Fe(e=>{let n=r=>{let a=jn(r),s=this._formField?this._formField.getConnectedOverlayOrigin().nativeElement:null,c=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;this._overlayAttached&&a!==this._element.nativeElement&&!this._hasFocus()&&(!s||!s.contains(a))&&(!c||!c.contains(a))&&this._overlayRef&&!this._overlayRef.overlayElement.contains(a)&&e.next(r)},o=[this._renderer.listen("document","click",n),this._renderer.listen("document","auxclick",n),this._renderer.listen("document","touchend",n)];return()=>{o.forEach(r=>r())}})}writeValue(e){Promise.resolve(null).then(()=>this._assignOptionValue(e))}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this._element.nativeElement.disabled=e}_handleKeydown(e){let n=e,o=n.keyCode,r=Dt(n);if(o===27&&!r&&n.preventDefault(),this._valueOnLastKeydown=this._element.nativeElement.value,this.activeOption&&o===13&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),n.preventDefault();else if(this.autocomplete){let a=this.autocomplete._keyManager.activeItem,s=o===38||o===40;o===9||s&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(n):s&&this._canOpen()&&this._openPanelInternal(this._valueOnLastKeydown),(s||this.autocomplete._keyManager.activeItem!==a)&&(this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0),this.autocomplete.autoSelectActiveOption&&this.activeOption&&(this._pendingAutoselectedOption||(this._valueBeforeAutoSelection=this._valueOnLastKeydown),this._pendingAutoselectedOption=this.activeOption,this._assignOptionValue(this.activeOption.value)))}}_handleInput(e){let n=e.target,o=n.value;if(n.type==="number"&&(o=o==""?null:parseFloat(o)),this._previousValue!==o){if(this._previousValue=o,this._pendingAutoselectedOption=null,(!this.autocomplete||!this.autocomplete.requireSelection)&&this._onChange(o),!o)this._clearPreviousSelectedOption(null,!1);else if(this.panelOpen&&!this.autocomplete.requireSelection){let r=this.autocomplete.options?.find(a=>a.selected);if(r){let a=this._getDisplayValue(r.value);o!==a&&r.deselect(!1)}}if(this._canOpen()&&this._hasFocus()){let r=this._valueOnLastKeydown??this._element.nativeElement.value;this._valueOnLastKeydown=null,this._openPanelInternal(r)}}}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(this._previousValue),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this._openPanelInternal()}_hasFocus(){return no()===this._element.nativeElement}_floatLabel(e=!1){this._formField&&this._formField.floatLabel==="auto"&&(e?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField&&(this._formField.floatLabel="auto"),this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){let e=new Fe(o=>{Ct(()=>{o.next()},{injector:this._environmentInjector})}),n=this.autocomplete.options?.changes.pipe(Ot(()=>this._positionStrategy.reapplyLastPosition()),td(0))??re();return ft(e,n).pipe(lt(()=>this._zone.run(()=>{let o=this.panelOpen;return this._resetActiveItem(),this._updatePanelState(),this._changeDetectorRef.detectChanges(),this.panelOpen&&this._overlayRef.updatePosition(),o!==this.panelOpen&&(this.panelOpen?this._emitOpened():this.autocomplete.closed.emit()),this.panelClosingActions})),Be(1)).subscribe(o=>this._setValueAndClose(o))}_emitOpened(){this.autocomplete.opened.emit()}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_getDisplayValue(e){let n=this.autocomplete;return n&&n.displayWith?n.displayWith(e):e}_assignOptionValue(e){let n=this._getDisplayValue(e);e==null&&this._clearPreviousSelectedOption(null,!1),this._updateNativeInputValue(n??"")}_updateNativeInputValue(e){this._formField?this._formField._control.value=e:this._element.nativeElement.value=e,this._previousValue=e}_setValueAndClose(e){let n=this.autocomplete,o=e?e.source:this._pendingAutoselectedOption;o?(this._clearPreviousSelectedOption(o),this._assignOptionValue(o.value),this._onChange(o.value),n._emitSelectEvent(o),this._element.nativeElement.focus()):n.requireSelection&&this._element.nativeElement.value!==this._valueOnAttach&&(this._clearPreviousSelectedOption(null),this._assignOptionValue(null),this._onChange(null)),this.closePanel()}_clearPreviousSelectedOption(e,n){this.autocomplete?.options?.forEach(o=>{o!==e&&o.selected&&o.deselect(n)})}_openPanelInternal(e=this._element.nativeElement.value){if(this._attachOverlay(e),this._floatLabel(),this._trackedModal){let n=this.autocomplete.id;q1(this._trackedModal,"aria-owns",n)}}_attachOverlay(e){this.autocomplete;let n=this._overlayRef;n?(this._positionStrategy.setOrigin(this._getConnectedElement()),n.updateSize({width:this._getPanelWidth()})):(this._portal=new Wn(this.autocomplete.template,this._viewContainerRef,{id:this._formField?.getLabelId()}),n=lo(this._injector,this._getOverlayConfig()),this._overlayRef=n,this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&n&&n.updateSize({width:this._getPanelWidth()})}),this._handsetLandscapeSubscription=this._breakpointObserver.observe(xp.HandsetLandscape).subscribe(r=>{r.matches?this._positionStrategy.withFlexibleDimensions(!0).withGrowAfterOpen(!0).withViewportMargin(8):this._positionStrategy.withFlexibleDimensions(!1).withGrowAfterOpen(!1).withViewportMargin(0)})),n&&!n.hasAttached()&&(n.attach(this._portal),this._valueOnAttach=e,this._valueOnLastKeydown=null,this._closingActionsSubscription=this._subscribeToClosingActions());let o=this.panelOpen;this.autocomplete._isOpen=this._overlayAttached=!0,this.autocomplete._latestOpeningTrigger=this,this.autocomplete._setColor(this._formField?.color),this._updatePanelState(),this._applyModalPanelOwnership(),this.panelOpen&&o!==this.panelOpen&&this._emitOpened()}_handlePanelKeydown=e=>{(e.keyCode===27&&!Dt(e)||e.keyCode===38&&Dt(e,"altKey"))&&(this._pendingAutoselectedOption&&(this._updateNativeInputValue(this._valueBeforeAutoSelection??""),this._pendingAutoselectedOption=null),this._closeKeyEventStream.next(),this._resetActiveItem(),e.stopPropagation(),e.preventDefault())};_updatePanelState(){if(this.autocomplete._setVisibility(),this.panelOpen){let e=this._overlayRef;this._keydownSubscription||(this._keydownSubscription=e.keydownEvents().subscribe(this._handlePanelKeydown)),this._outsideClickSubscription||(this._outsideClickSubscription=e.outsidePointerEvents().subscribe())}else this._keydownSubscription?.unsubscribe(),this._outsideClickSubscription?.unsubscribe(),this._keydownSubscription=this._outsideClickSubscription=null}_getOverlayConfig(){return new co({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir??void 0,hasBackdrop:this._defaults?.hasBackdrop,backdropClass:this._defaults?.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:this._overlayPanelClass,disableAnimations:this._animationsDisabled})}_getOverlayPosition(){let e=zr(this._injector,this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(e),this._positionStrategy=e,e}_setStrategyPositions(e){let n=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],o=this._aboveClass,r=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:o},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:o}],a;this.position==="above"?a=r:this.position==="below"?a=n:a=[...n,...r],e.withPositions(a)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){let e=this.autocomplete;if(e.autoActiveFirstOption){let n=-1;for(let o=0;o .cdk-overlay-container [aria-modal="true"]');if(!e)return;let n=this.autocomplete.id;this._trackedModal&&Bs(this._trackedModal,"aria-owns",n),q1(e,"aria-owns",n),this._trackedModal=e}_clearFromModal(){if(this._trackedModal){let e=this.autocomplete.id;Bs(this._trackedModal,"aria-owns",e),this._trackedModal=null}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-mdc-autocomplete-trigger"],hostVars:7,hostBindings:function(n,o){n&1&&N("focusin",function(){return o._handleFocus()})("blur",function(){return o._onTouched()})("input",function(a){return o._handleInput(a)})("keydown",function(a){return o._handleKeydown(a)})("click",function(){return o._handleClick()}),n&2&&ne("autocomplete",o.autocompleteAttribute)("role",o.autocompleteDisabled?null:"combobox")("aria-autocomplete",o.autocompleteDisabled?null:"list")("aria-activedescendant",o.panelOpen&&o.activeOption?o.activeOption.id:null)("aria-expanded",o.autocompleteDisabled?null:o.panelOpen.toString())("aria-controls",o.autocompleteDisabled||!o.panelOpen||o.autocomplete==null?null:o.autocomplete.id)("aria-haspopup",o.autocompleteDisabled?null:"listbox")},inputs:{autocomplete:[0,"matAutocomplete","autocomplete"],position:[0,"matAutocompletePosition","position"],connectedTo:[0,"matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:[0,"autocomplete","autocompleteAttribute"],autocompleteDisabled:[2,"matAutocompleteDisabled","autocompleteDisabled",H]},exportAs:["matAutocompleteTrigger"],features:[de([$re]),Re]})}return t})(),sz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Wre],imports:[Ei,C2,fe,xi,C2,fe]})}return t})();var Yre=["button"],Qre=["*"];function Kre(t,i){if(t&1&&(h(0,"div",2),F(1,"mat-pseudo-checkbox",6),_()),t&2){let e=M();p(),D("disabled",e.disabled)}}var cz=new L("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS",{providedIn:"root",factory:Xre});function Xre(){return{hideSingleSelectionIndicator:!1,hideMultipleSelectionIndicator:!1,disabledInteractive:!1}}var lz=new L("MatButtonToggleGroup"),Zre={provide:di,useExisting:kt(()=>Jre),multi:!0},Xf=class{source;value;constructor(i,e){this.source=i,this.value=e}},Jre=(()=>{class t{_changeDetector=d(xe);_dir=d(bt,{optional:!0});_multiple=!1;_disabled=!1;_disabledInteractive=!1;_selectionModel;_rawValue;_controlValueAccessorChangeFn=()=>{};_onTouched=()=>{};_buttonToggles;appearance;get name(){return this._name}set name(e){this._name=e,this._markButtonsForCheck()}_name=d(He).getId("mat-button-toggle-group-");vertical;get value(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e.map(n=>n.value):e[0]?e[0].value:void 0}set value(e){this._setSelectionByValue(e),this.valueChange.emit(this.value)}valueChange=new j;get selected(){let e=this._selectionModel?this._selectionModel.selected:[];return this.multiple?e:e[0]||null}get multiple(){return this._multiple}set multiple(e){this._multiple=e,this._markButtonsForCheck()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markButtonsForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markButtonsForCheck()}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}change=new j;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._markButtonsForCheck()}_hideSingleSelectionIndicator;get hideMultipleSelectionIndicator(){return this._hideMultipleSelectionIndicator}set hideMultipleSelectionIndicator(e){this._hideMultipleSelectionIndicator=e,this._markButtonsForCheck()}_hideMultipleSelectionIndicator;constructor(){let e=d(cz,{optional:!0});this.appearance=e&&e.appearance?e.appearance:"standard",this.hideSingleSelectionIndicator=e?.hideSingleSelectionIndicator??!1,this.hideMultipleSelectionIndicator=e?.hideMultipleSelectionIndicator??!1}ngOnInit(){this._selectionModel=new uo(this.multiple,void 0,!1)}ngAfterContentInit(){this._selectionModel.select(...this._buttonToggles.filter(e=>e.checked)),this.multiple||this._initializeTabIndex()}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_keydown(e){if(this.multiple||this.disabled||Dt(e))return;let o=e.target.id,r=this._buttonToggles.toArray().findIndex(s=>s.buttonId===o),a=null;switch(e.keyCode){case 32:case 13:a=this._buttonToggles.get(r)||null;break;case 38:a=this._getNextButton(r,-1);break;case 37:a=this._getNextButton(r,this.dir==="ltr"?-1:1);break;case 40:a=this._getNextButton(r,1);break;case 39:a=this._getNextButton(r,this.dir==="ltr"?1:-1);break;default:return}a&&(e.preventDefault(),a._onButtonClick(),a.focus())}_emitChangeEvent(e){let n=new Xf(e,this.value);this._rawValue=n.value,this._controlValueAccessorChangeFn(n.value),this.change.emit(n)}_syncButtonToggle(e,n,o=!1,r=!1){!this.multiple&&this.selected&&!e.checked&&(this.selected.checked=!1),this._selectionModel?n?this._selectionModel.select(e):this._selectionModel.deselect(e):r=!0,r?Promise.resolve().then(()=>this._updateModelValue(e,o)):this._updateModelValue(e,o)}_isSelected(e){return this._selectionModel&&this._selectionModel.isSelected(e)}_isPrechecked(e){return typeof this._rawValue>"u"?!1:this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some(n=>e.value!=null&&n===e.value):e.value===this._rawValue}_initializeTabIndex(){if(this._buttonToggles.forEach(e=>{e.tabIndex=-1}),this.selected)this.selected.tabIndex=0;else for(let e=0;ethis._selectValue(o,n))):(this._clearSelection(),this._selectValue(e,n)),!this.multiple&&n.every(o=>o.tabIndex===-1)){for(let o of n)if(!o.disabled){o.tabIndex=0;break}}}_clearSelection(){this._selectionModel.clear(),this._buttonToggles.forEach(e=>{e.checked=!1,this.multiple||(e.tabIndex=-1)})}_selectValue(e,n){for(let o of n)if(o.value===e){o.checked=!0,this._selectionModel.select(o),this.multiple||(o.tabIndex=0);break}}_updateModelValue(e,n){n&&this._emitChangeEvent(e),this.valueChange.emit(this.value)}_markButtonsForCheck(){this._buttonToggles?.forEach(e=>e._markForCheck())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,dz,5),n&2){let a;U(a=$())&&(o._buttonToggles=a)}},hostAttrs:[1,"mat-button-toggle-group"],hostVars:6,hostBindings:function(n,o){n&1&&N("keydown",function(a){return o._keydown(a)}),n&2&&(ne("role",o.multiple?"group":"radiogroup")("aria-disabled",o.disabled),oe("mat-button-toggle-vertical",o.vertical)("mat-button-toggle-group-appearance-standard",o.appearance==="standard"))},inputs:{appearance:"appearance",name:"name",vertical:[2,"vertical","vertical",H],value:"value",multiple:[2,"multiple","multiple",H],disabled:[2,"disabled","disabled",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",H],hideMultipleSelectionIndicator:[2,"hideMultipleSelectionIndicator","hideMultipleSelectionIndicator",H]},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[de([Zre,{provide:lz,useExisting:t}])]})}return t})(),dz=(()=>{class t{_changeDetectorRef=d(xe);_elementRef=d(Q);_focusMonitor=d(sn);_idGenerator=d(He);_animationDisabled=Ue();_checked=!1;ariaLabel;ariaLabelledby=null;_buttonElement;buttonToggleGroup;get buttonId(){return`${this.id}-button`}id;name;value;get tabIndex(){return this._tabIndex()}set tabIndex(e){this._tabIndex.set(e)}_tabIndex;disableRipple;get appearance(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance}set appearance(e){this._appearance=e}_appearance;get checked(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked}set checked(e){e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled}set disabled(e){this._disabled=e}_disabled=!1;get disabledInteractive(){return this._disabledInteractive||this.buttonToggleGroup!==null&&this.buttonToggleGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new j;constructor(){d(at).load(cn);let e=d(lz,{optional:!0}),n=d(new dn("tabindex"),{optional:!0})||"",o=d(cz,{optional:!0});this._tabIndex=we(parseInt(n)||0),this.buttonToggleGroup=e,this.appearance=o&&o.appearance?o.appearance:"standard",this.disabledInteractive=o?.disabledInteractive??!1}ngOnInit(){let e=this.buttonToggleGroup;this.id=this.id||this._idGenerator.getId("mat-button-toggle-"),e&&(e._isPrechecked(this)?this.checked=!0:e._isSelected(this)!==this._checked&&e._syncButtonToggle(this,this._checked))}ngAfterViewInit(){this._animationDisabled||this._elementRef.nativeElement.classList.add("mat-button-toggle-animations-enabled"),this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){let e=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),e&&e._isSelected(this)&&e._syncButtonToggle(this,!1,!1,!0)}focus(e){this._buttonElement.nativeElement.focus(e)}_onButtonClick(){if(this.disabled)return;let e=this.isSingleSelector()?!0:!this._checked;if(e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.isSingleSelector()){let n=this.buttonToggleGroup._buttonToggles.find(o=>o.tabIndex===0);n&&(n.tabIndex=-1),this.tabIndex=0}this.change.emit(new Xf(this,this.value))}_markForCheck(){this._changeDetectorRef.markForCheck()}_getButtonName(){return this.isSingleSelector()?this.buttonToggleGroup.name:this.name||null}isSingleSelector(){return this.buttonToggleGroup&&!this.buttonToggleGroup.multiple}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-button-toggle"]],viewQuery:function(n,o){if(n&1&&ue(Yre,5),n&2){let r;U(r=$())&&(o._buttonElement=r.first)}},hostAttrs:["role","presentation",1,"mat-button-toggle"],hostVars:14,hostBindings:function(n,o){n&1&&N("focus",function(){return o.focus()}),n&2&&(ne("aria-label",null)("aria-labelledby",null)("id",o.id)("name",null),oe("mat-button-toggle-standalone",!o.buttonToggleGroup)("mat-button-toggle-checked",o.checked)("mat-button-toggle-disabled",o.disabled)("mat-button-toggle-disabled-interactive",o.disabledInteractive)("mat-button-toggle-appearance-standard",o.appearance==="standard"))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],id:"id",name:"name",value:"value",tabIndex:"tabIndex",disableRipple:[2,"disableRipple","disableRipple",H],appearance:"appearance",checked:[2,"checked","checked",H],disabled:[2,"disabled","disabled",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change"},exportAs:["matButtonToggle"],ngContentSelectors:Qre,decls:7,vars:13,consts:[["button",""],["type","button",1,"mat-button-toggle-button","mat-focus-indicator",3,"click","id","disabled"],[1,"mat-button-toggle-checkbox-wrapper"],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"],["state","checked","aria-hidden","true","appearance","minimal",3,"disabled"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"button",1,0),N("click",function(){return G(r),W(o._onButtonClick())}),E(2,Kre,2,1,"div",2),h(3,"span",3),ae(4),_()(),F(5,"span",4)(6,"span",5)}if(n&2){let r=Nt(1);D("id",o.buttonId)("disabled",o.disabled&&!o.disabledInteractive||null),ne("role",o.isSingleSelector()?"radio":"button")("tabindex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("aria-pressed",o.isSingleSelector()?null:o.checked)("aria-checked",o.isSingleSelector()?o.checked:null)("name",o._getButtonName())("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),p(2),I(o.buttonToggleGroup&&(!o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideSingleSelectionIndicator||o.buttonToggleGroup.multiple&&!o.buttonToggleGroup.hideMultipleSelectionIndicator)?2:-1),p(4),D("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)}},dependencies:[mi,rf],styles:[`.mat-button-toggle-standalone,.mat-button-toggle-group{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;-webkit-tap-highlight-color:rgba(0,0,0,0);border-radius:var(--mat-button-toggle-legacy-shape);transform:translateZ(0)}.mat-button-toggle-standalone:not([class*=mat-elevation-z]),.mat-button-toggle-group:not([class*=mat-elevation-z]){box-shadow:0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12)}@media(forced-colors: active){.mat-button-toggle-standalone,.mat-button-toggle-group{outline:solid 1px}}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{border-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard .mat-pseudo-checkbox,.mat-button-toggle-group-appearance-standard .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container))}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard:not([class*=mat-elevation-z]),.mat-button-toggle-group-appearance-standard:not([class*=mat-elevation-z]){box-shadow:none}@media(forced-colors: active){.mat-button-toggle-standalone.mat-button-toggle-appearance-standard,.mat-button-toggle-group-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative;color:var(--mat-button-toggle-legacy-text-color);font-family:var(--mat-button-toggle-legacy-label-text-font);font-size:var(--mat-button-toggle-legacy-label-text-size);line-height:var(--mat-button-toggle-legacy-label-text-line-height);font-weight:var(--mat-button-toggle-legacy-label-text-weight);letter-spacing:var(--mat-button-toggle-legacy-label-text-tracking);--mat-pseudo-checkbox-minimal-selected-checkmark-color: var(--mat-button-toggle-legacy-selected-state-text-color)}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-legacy-focus-state-layer-opacity)}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle-checkbox-wrapper{display:inline-block;justify-content:flex-start;align-items:center;width:0;height:18px;line-height:18px;overflow:hidden;box-sizing:border-box;position:absolute;top:50%;left:16px;transform:translate3d(0, -50%, 0)}[dir=rtl] .mat-button-toggle-checkbox-wrapper{left:auto;right:16px}.mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:12px}[dir=rtl] .mat-button-toggle-appearance-standard .mat-button-toggle-checkbox-wrapper{left:auto;right:12px}.mat-button-toggle-checked .mat-button-toggle-checkbox-wrapper{width:18px}.mat-button-toggle-animations-enabled .mat-button-toggle-checkbox-wrapper{transition:width 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-checkbox-wrapper{transition:none}.mat-button-toggle-checked{color:var(--mat-button-toggle-legacy-selected-state-text-color);background-color:var(--mat-button-toggle-legacy-selected-state-background-color)}.mat-button-toggle-disabled{pointer-events:none;color:var(--mat-button-toggle-legacy-disabled-state-text-color);background-color:var(--mat-button-toggle-legacy-disabled-state-background-color);--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-legacy-disabled-state-text-color)}.mat-button-toggle-disabled.mat-button-toggle-checked{background-color:var(--mat-button-toggle-legacy-disabled-selected-state-background-color)}.mat-button-toggle-disabled-interactive{pointer-events:auto}.mat-button-toggle-appearance-standard{color:var(--mat-button-toggle-text-color, var(--mat-sys-on-surface));background-color:var(--mat-button-toggle-background-color, transparent);font-family:var(--mat-button-toggle-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mat-button-toggle-label-text-size, var(--mat-sys-label-large-size));line-height:var(--mat-button-toggle-label-text-line-height, var(--mat-sys-label-large-line-height));font-weight:var(--mat-button-toggle-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mat-button-toggle-label-text-tracking, var(--mat-sys-label-large-tracking))}.mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}[dir=rtl] .mat-button-toggle-group-appearance-standard .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle-appearance-standard+.mat-button-toggle-appearance-standard{border-left:none;border-right:none;border-top:solid 1px var(--mat-button-toggle-divider-color, var(--mat-sys-outline))}.mat-button-toggle-appearance-standard.mat-button-toggle-checked{color:var(--mat-button-toggle-selected-state-text-color, var(--mat-sys-on-secondary-container));background-color:var(--mat-button-toggle-selected-state-background-color, var(--mat-sys-secondary-container))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled{color:var(--mat-button-toggle-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-state-background-color, transparent)}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled .mat-pseudo-checkbox{--mat-pseudo-checkbox-minimal-disabled-selected-checkmark-color: var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-button-toggle-appearance-standard.mat-button-toggle-disabled.mat-button-toggle-checked{color:var(--mat-button-toggle-disabled-selected-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-button-toggle-disabled-selected-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{background-color:var(--mat-button-toggle-state-layer-color, var(--mat-sys-on-surface))}.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-button-toggle-appearance-standard.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:var(--mat-button-toggle-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}@media(hover: none){.mat-button-toggle-appearance-standard:hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;user-select:none;display:inline-block;padding:0 16px;line-height:var(--mat-button-toggle-legacy-height);position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{padding:0 12px;line-height:var(--mat-button-toggle-height, 40px)}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;pointer-events:none;opacity:0;background-color:var(--mat-button-toggle-legacy-state-layer-color)}@media(forced-colors: active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 500px;opacity:.5;height:0}.mat-button-toggle-checked:hover .mat-button-toggle-focus-overlay{opacity:.6}.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 500px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:none;color:inherit;padding:0;margin:0;font:inherit;outline:none;width:100%;cursor:pointer}.mat-button-toggle-animations-enabled .mat-button-toggle-button{transition:padding 150ms 45ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-button-toggle-vertical .mat-button-toggle-button{transition:none}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}.mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:30px}[dir=rtl] .mat-button-toggle-checked .mat-button-toggle-button:has(.mat-button-toggle-checkbox-wrapper){padding-left:0;padding-right:30px}.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{--mat-focus-indicator-border-radius: var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard:not(.mat-button-toggle-vertical) .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:last-of-type .mat-button-toggle-button::before{border-bottom-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-bottom-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}.mat-button-toggle-group-appearance-standard.mat-button-toggle-vertical .mat-button-toggle:first-of-type .mat-button-toggle-button::before{border-top-right-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large));border-top-left-radius:var(--mat-button-toggle-shape, var(--mat-sys-corner-extra-large))}
+`],encapsulation:2,changeDetection:0})}return t})(),uz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi,dz,fe]})}return t})();var eae=new L("mat-chips-default-options",{providedIn:"root",factory:()=>({separatorKeyCodes:[13]})});var mz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[ha,{provide:eae,useValue:{separatorKeyCodes:[13]}}],imports:[fe,wi,fe]})}return t})();var xb=new L("CdkAccordion"),pz=(()=>{class t{_stateChanges=new B;_openCloseAllActions=new B;id=d(He).getId("cdk-accordion-");multi=!1;openAll(){this.multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(e){this._stateChanges.next(e)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:[2,"multi","multi",H]},exportAs:["cdkAccordion"],features:[de([{provide:xb,useExisting:t}]),Re]})}return t})(),fz=(()=>{class t{accordion=d(xb,{optional:!0,skipSelf:!0});_changeDetectorRef=d(xe);_expansionDispatcher=d(ml);_openCloseAllSubscription=Se.EMPTY;closed=new j;opened=new j;destroyed=new j;expandedChange=new j;id=d(He).getId("cdk-accordion-child-");get expanded(){return this._expanded}set expanded(e){if(this._expanded!==e){if(this._expanded=e,this.expandedChange.emit(e),e){this.opened.emit();let n=this.accordion?this.accordion.id:this.id;this._expansionDispatcher.notify(this.id,n)}else this.closed.emit();this._changeDetectorRef.markForCheck()}}_expanded=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(e)}_disabled=we(!1);_removeUniqueSelectionListener=()=>{};constructor(){}ngOnInit(){this._removeUniqueSelectionListener=this._expansionDispatcher.listen((e,n)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===n&&this.id!==e&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}ngOnDestroy(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()}toggle(){this.disabled||(this.expanded=!this.expanded)}close(){this.disabled||(this.expanded=!1)}open(){this.disabled||(this.expanded=!0)}_subscribeToOpenCloseAllActions(){return this.accordion._openCloseAllActions.subscribe(e=>{this.disabled||(this.expanded=e)})}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:[2,"expanded","expanded",H],disabled:[2,"disabled","disabled",H]},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[de([{provide:xb,useValue:void 0}])]})}return t})(),hz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();var tae=["body"],nae=["bodyWrapper"],iae=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],oae=["mat-expansion-panel-header","*","mat-action-row"];function rae(t,i){}var aae=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],sae=["mat-panel-title","mat-panel-description","*"];function cae(t,i){t&1&&(nt(0,"span",1),$t(),nt(1,"svg",2),Tn(2,"path",3),rt()())}var Mb=new L("MAT_ACCORDION"),gz=new L("MAT_EXPANSION_PANEL"),lae=(()=>{class t{_template=d(tt);_expansionPanel=d(gz,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]})}return t})(),_z=new L("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),dae=(()=>{class t extends fz{_viewContainerRef=d(dt);_animationsDisabled=Ue();_document=d(Me);_ngZone=d(se);_elementRef=d(Q);_renderer=d(Ke);_cleanupTransitionEnd;get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(e){this._hideToggle=e}_hideToggle=!1;get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(e){this._togglePosition=e}_togglePosition;afterExpand=new j;afterCollapse=new j;_inputChanges=new B;accordion=d(Mb,{optional:!0,skipSelf:!0});_lazyContent;_body;_bodyWrapper;_portal;_headerId=d(He).getId("mat-expansion-panel-header-");constructor(){super();let e=d(_z,{optional:!0});this._expansionDispatcher=d(ml),e&&(this.hideToggle=e.hideToggle)}_hasSpacing(){return this.accordion?this.expanded&&this.accordion.displayMode==="default":!1}_getExpandedState(){return this.expanded?"expanded":"collapsed"}toggle(){this.expanded=!this.expanded}close(){this.expanded=!1}open(){this.expanded=!0}ngAfterContentInit(){this._lazyContent&&this._lazyContent._expansionPanel===this&&this.opened.pipe(We(null),Ae(()=>this.expanded&&!this._portal),Be(1)).subscribe(()=>{this._portal=new Wn(this._lazyContent._template,this._viewContainerRef)}),this._setupAnimationEvents()}ngOnChanges(e){this._inputChanges.next(e)}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransitionEnd?.(),this._inputChanges.complete()}_containsFocus(){if(this._body){let e=this._document.activeElement,n=this._body.nativeElement;return e===n||n.contains(e)}return!1}_transitionEndListener=({target:e,propertyName:n})=>{e===this._bodyWrapper?.nativeElement&&n==="grid-template-rows"&&this._ngZone.run(()=>{this.expanded?this.afterExpand.emit():this.afterCollapse.emit()})};_setupAnimationEvents(){this._ngZone.runOutsideAngular(()=>{this._animationsDisabled?(this.opened.subscribe(()=>this._ngZone.run(()=>this.afterExpand.emit())),this.closed.subscribe(()=>this._ngZone.run(()=>this.afterCollapse.emit()))):setTimeout(()=>{let e=this._elementRef.nativeElement;this._cleanupTransitionEnd=this._renderer.listen(e,"transitionend",this._transitionEndListener),e.classList.add("mat-expansion-panel-animations-enabled")},200)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-expansion-panel"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,lae,5),n&2){let a;U(a=$())&&(o._lazyContent=a.first)}},viewQuery:function(n,o){if(n&1&&(ue(tae,5),ue(nae,5)),n&2){let r;U(r=$())&&(o._body=r.first),U(r=$())&&(o._bodyWrapper=r.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:4,hostBindings:function(n,o){n&2&&oe("mat-expanded",o.expanded)("mat-expansion-panel-spacing",o._hasSpacing())},inputs:{hideToggle:[2,"hideToggle","hideToggle",H],togglePosition:"togglePosition"},outputs:{afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[de([{provide:Mb,useValue:void 0},{provide:gz,useExisting:t}]),ce,Re],ngContentSelectors:oae,decls:9,vars:4,consts:[["bodyWrapper",""],["body",""],[1,"mat-expansion-panel-content-wrapper"],["role","region",1,"mat-expansion-panel-content",3,"id"],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(De(iae),ae(0),h(1,"div",2,0)(3,"div",3,1)(5,"div",4),ae(6,1),ot(7,rae,0,0,"ng-template",5),_(),ae(8,2),_()()),n&2&&(p(),ne("inert",o.expanded?null:""),p(2),D("id",o.id),ne("aria-labelledby",o._headerId),p(4),D("cdkPortalOutlet",o._portal))},dependencies:[Mi],styles:[`.mat-expansion-panel{box-sizing:content-box;display:block;margin:0;overflow:hidden;position:relative;background:var(--mat-expansion-container-background-color, var(--mat-sys-surface));color:var(--mat-expansion-container-text-color, var(--mat-sys-on-surface));border-radius:var(--mat-expansion-container-shape, 12px)}.mat-expansion-panel.mat-expansion-panel-animations-enabled{transition:margin 225ms cubic-bezier(0.4, 0, 0.2, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel:not([class*=mat-elevation-z]){box-shadow:var(--mat-expansion-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:var(--mat-expansion-container-shape, 12px);border-top-left-radius:var(--mat-expansion-container-shape, 12px)}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:var(--mat-expansion-container-shape, 12px);border-bottom-left-radius:var(--mat-expansion-container-shape, 12px)}@media(forced-colors: active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel-content-wrapper{display:grid;grid-template-rows:0fr;grid-template-columns:100%}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content-wrapper{transition:grid-template-rows 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{grid-template-rows:1fr}@supports not (grid-template-rows: 0fr){.mat-expansion-panel-content-wrapper{height:0}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper{height:auto}}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible;min-height:0;visibility:hidden;font-family:var(--mat-expansion-container-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-expansion-container-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-expansion-container-text-weight, var(--mat-sys-body-large-weight));line-height:var(--mat-expansion-container-text-line-height, var(--mat-sys-body-large-line-height));letter-spacing:var(--mat-expansion-container-text-tracking, var(--mat-sys-body-large-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-content{transition:visibility 190ms linear}.mat-expansion-panel.mat-expanded>.mat-expansion-panel-content-wrapper>.mat-expansion-panel-content{visibility:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>*:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>*:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px;border-top-color:var(--mat-expansion-actions-divider-color, var(--mat-sys-outline))}.mat-action-row .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}
+`],encapsulation:2,changeDetection:0})}return t})();var uae=(()=>{class t{panel=d(dae,{host:!0});_element=d(Q);_focusMonitor=d(sn);_changeDetectorRef=d(xe);_parentChangeSubscription=Se.EMPTY;constructor(){d(at).load(cn);let e=this.panel,n=d(_z,{optional:!0}),o=d(new dn("tabindex"),{optional:!0}),r=e.accordion?e.accordion._stateChanges.pipe(Ae(a=>!!(a.hideToggle||a.togglePosition))):Sn;this.tabIndex=parseInt(o||"")||0,this._parentChangeSubscription=ft(e.opened,e.closed,r,e._inputChanges.pipe(Ae(a=>!!(a.hideToggle||a.disabled||a.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),e.closed.pipe(Ae(()=>e._containsFocus())).subscribe(()=>this._focusMonitor.focusVia(this._element,"program")),n&&(this.expandedHeight=n.expandedHeight,this.collapsedHeight=n.collapsedHeight)}expandedHeight;collapsedHeight;tabIndex=0;get disabled(){return this.panel.disabled}_toggle(){this.disabled||this.panel.toggle()}_isExpanded(){return this.panel.expanded}_getExpandedState(){return this.panel._getExpandedState()}_getPanelId(){return this.panel.id}_getTogglePosition(){return this.panel.togglePosition}_showToggle(){return!this.panel.hideToggle&&!this.panel.disabled}_getHeaderHeight(){let e=this._isExpanded();return e&&this.expandedHeight?this.expandedHeight:!e&&this.collapsedHeight?this.collapsedHeight:null}_keydown(e){switch(e.keyCode){case 32:case 13:Dt(e)||(e.preventDefault(),this._toggle());break;default:this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(e);return}}focus(e,n){e?this._focusMonitor.focusVia(this._element,e,n):this._element.nativeElement.focus(n)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(e=>{e&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:13,hostBindings:function(n,o){n&1&&N("click",function(){return o._toggle()})("keydown",function(a){return o._keydown(a)}),n&2&&(ne("id",o.panel._headerId)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o._getPanelId())("aria-expanded",o._isExpanded())("aria-disabled",o.panel.disabled),At("height",o._getHeaderHeight()),oe("mat-expanded",o._isExpanded())("mat-expansion-toggle-indicator-after",o._getTogglePosition()==="after")("mat-expansion-toggle-indicator-before",o._getTogglePosition()==="before"))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight",tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)]},ngContentSelectors:sae,decls:5,vars:3,consts:[[1,"mat-content"],[1,"mat-expansion-indicator"],["xmlns","http://www.w3.org/2000/svg","viewBox","0 -960 960 960","aria-hidden","true","focusable","false"],["d","M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z"]],template:function(n,o){n&1&&(De(aae),nt(0,"span",0),ae(1),ae(2,1),ae(3,2),rt(),E(4,cae,3,0,"span",1)),n&2&&(oe("mat-content-hide-toggle",!o._showToggle()),p(4),I(o._showToggle()?4:-1))},styles:[`.mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit;height:var(--mat-expansion-header-collapsed-state-height, 48px);font-family:var(--mat-expansion-header-text-font, var(--mat-sys-title-medium-font));font-size:var(--mat-expansion-header-text-size, var(--mat-sys-title-medium-size));font-weight:var(--mat-expansion-header-text-weight, var(--mat-sys-title-medium-weight));line-height:var(--mat-expansion-header-text-line-height, var(--mat-sys-title-medium-line-height));letter-spacing:var(--mat-expansion-header-text-tracking, var(--mat-sys-title-medium-tracking))}.mat-expansion-panel-animations-enabled .mat-expansion-panel-header{transition:height 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header::before{border-radius:inherit}.mat-expansion-panel-header.mat-expanded{height:var(--mat-expansion-header-expanded-state-height, 64px)}.mat-expansion-panel-header[aria-disabled=true]{color:var(--mat-expansion-header-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}@media(hover: none){.mat-expansion-panel:not(.mat-expanded) .mat-expansion-panel-header:not([aria-disabled=true]):hover{background:var(--mat-expansion-container-background-color, var(--mat-sys-surface))}}.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-keyboard-focused,.mat-expansion-panel .mat-expansion-panel-header:not([aria-disabled=true]).cdk-program-focused{background:var(--mat-expansion-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}.mat-expansion-panel-header._mat-animation-noopable{transition:none}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:none}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-content.mat-content-hide-toggle{margin-right:8px}[dir=rtl] .mat-content.mat-content-hide-toggle{margin-right:0;margin-left:8px}.mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-left:24px;margin-right:0}[dir=rtl] .mat-expansion-toggle-indicator-before .mat-content.mat-content-hide-toggle{margin-right:24px;margin-left:0}.mat-expansion-panel-header-title{color:var(--mat-expansion-header-text-color, var(--mat-sys-on-surface))}.mat-expansion-panel-header-title,.mat-expansion-panel-header-description{display:flex;flex-grow:1;flex-basis:0;margin-right:16px;align-items:center}[dir=rtl] .mat-expansion-panel-header-title,[dir=rtl] .mat-expansion-panel-header-description{margin-right:0;margin-left:16px}.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-title,.mat-expansion-panel-header[aria-disabled=true] .mat-expansion-panel-header-description{color:inherit}.mat-expansion-panel-header-description{flex-grow:2;color:var(--mat-expansion-header-description-color, var(--mat-sys-on-surface-variant))}.mat-expansion-panel-animations-enabled .mat-expansion-indicator{transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-expansion-panel-header.mat-expanded .mat-expansion-indicator{transform:rotate(180deg)}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:"";padding:3px;transform:rotate(45deg);vertical-align:middle;color:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-legacy-header-indicator-display, none)}.mat-expansion-indicator svg{width:24px;height:24px;margin:0 -8px;vertical-align:middle;fill:var(--mat-expansion-header-indicator-color, var(--mat-sys-on-surface-variant));display:var(--mat-expansion-header-indicator-display, inline-block)}@media(forced-colors: active){.mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}}
+`],encapsulation:2,changeDetection:0})}return t})(),hje=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]})}return t})(),gje=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]})}return t})(),_je=(()=>{class t extends pz{_keyManager;_ownHeaders=new In;_headers;hideToggle=!1;displayMode="default";togglePosition="after";ngAfterContentInit(){this._headers.changes.pipe(We(this._headers)).subscribe(e=>{this._ownHeaders.reset(e.filter(n=>n.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new Tr(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(e){this._keyManager.onKeydown(e)}_handleHeaderFocus(e){this._keyManager.updateActiveItem(e)}ngOnDestroy(){super.ngOnDestroy(),this._keyManager?.destroy(),this._ownHeaders.destroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-accordion"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,uae,5),n&2){let a;U(a=$())&&(o._headers=a)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-accordion-multi",o.multi)},inputs:{hideToggle:[2,"hideToggle","hideToggle",H],displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[de([{provide:Mb,useExisting:t}]),ce]})}return t})(),bz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,hz,so]})}return t})();var vz=["*"],yz=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mat-list-list-item-container-color, transparent);border-radius:var(--mat-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mat-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mat-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mat-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mat-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-leading-icon-size, 24px);height:var(--mat-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mat-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mat-list-list-item-leading-avatar-size, 40px);height:var(--mat-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mat-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mat-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mat-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mat-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mat-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mat-list-list-item-trailing-icon-size, 24px);height:var(--mat-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mat-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mat-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mat-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mat-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mat-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mat-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mat-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mat-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mat-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mat-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mat-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mat-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mat-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mat-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mat-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mat-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mat-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius: var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))}
+`,mae=["unscopedContent"],pae=["text"],fae=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],hae=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var gae=new L("ListOption"),_ae=(()=>{class t{_elementRef=d(Q);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return t})(),bae=(()=>{class t{_elementRef=d(Q);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return t})(),vae=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return t})(),Cz=(()=>{class t{_listOption=d(gae,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,hostVars:4,hostBindings:function(n,o){n&2&&oe("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())}})}return t})(),yae=(()=>{class t extends Cz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[ce]})}return t})(),Cae=(()=>{class t extends Cz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[ce]})}return t})(),xae=new L("MAT_LIST_CONFIG"),Mu=(()=>{class t{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=yn(e)}_disableRipple=!1;get disabled(){return this._disabled()}set disabled(e){this._disabled.set(yn(e))}_disabled=we(!1);_defaultOptions=d(xae,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,hostVars:1,hostBindings:function(n,o){n&2&&ne("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return t})(),Mae=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_listBase=d(Mu,{optional:!0});_platform=d(je);_hostElement;_isButtonElement;_noopAnimations=Ue();_avatars;_icons;set lines(e){this._explicitLines=vn(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=yn(e)}_disableRipple=!1;get disabled(){return this._disabled()||!!this._listBase?.disabled}set disabled(e){this._disabled.set(yn(e))}_disabled=we(!1);_subscriptions=new Se;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(at).load(cn);let e=d(nl,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new tl(this,this._ngZone,this._hostElement,this._platform,d(be)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(ft(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let n=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",n<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",n===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",n===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&n===1;o.classList.toggle("mdc-list-item__primary-text",r),o.classList.toggle("mdc-list-item__secondary-text",!r)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,contentQueries:function(n,o,r){if(n&1&&(Ee(r,yae,4),Ee(r,Cae,4)),n&2){let a;U(a=$())&&(o._avatars=a),U(a=$())&&(o._icons=a)}},hostVars:4,hostBindings:function(n,o){n&2&&(ne("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),oe("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return t})();var jje=(()=>{class t extends Mu{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[de([{provide:Mu,useExisting:t}]),ce],ngContentSelectors:vz,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[yz],encapsulation:2,changeDetection:0})}return t})(),Hje=(()=>{class t extends Mae{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=yn(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,bae,5),Ee(r,_ae,5),Ee(r,vae,5)),n&2){let a;U(a=$())&&(o._lines=a),U(a=$())&&(o._titles=a),U(a=$())&&(o._meta=a)}},viewQuery:function(n,o){if(n&1&&(ue(mae,5),ue(pae,5)),n&2){let r;U(r=$())&&(o._unscopedContent=r.first),U(r=$())&&(o._itemText=r.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(n,o){n&2&&(ne("aria-current",o._getAriaCurrent()),oe("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[ce],ngContentSelectors:hae,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(n,o){if(n&1){let r=le();De(fae),ae(0),h(1,"span",1),ae(2,1),ae(3,2),h(4,"span",2,0),N("cdkObserveContent",function(){return G(r),W(o._updateItemLines(!0))}),ae(6,3),_()(),ae(7,4),ae(8,5),F(9,"div",3)}},dependencies:[M0],encapsulation:2,changeDetection:0})}return t})();var Uje=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","mat-subheader",""],["","matSubheader",""]],hostAttrs:[1,"mat-mdc-subheader","mdc-list-group__subheader"]})}return t})();var $je=(()=>{class t extends Mu{_isNonInteractive=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-nav-list"]],hostAttrs:["role","navigation",1,"mat-mdc-nav-list","mat-mdc-list-base","mdc-list"],exportAs:["matNavList"],features:[de([{provide:Mu,useExisting:t}]),ce],ngContentSelectors:vz,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},styles:[yz],encapsulation:2,changeDetection:0})}return t})();var xz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[U1,fe,wi,pf,zf]})}return t})();function wae(t,i){if(t&1&&(h(0,"mat-option",17),y(1),_()),t&2){let e=i.$implicit;D("value",e),p(),ee(" ",e," ")}}function Dae(t,i){if(t&1){let e=le();h(0,"mat-form-field",14)(1,"mat-select",16,0),N("selectionChange",function(o){G(e);let r=M(2);return W(r._changePageSize(o.value))}),Xe(3,wae,2,2,"mat-option",17,ht),_(),h(5,"div",18),N("click",function(){G(e);let o=Nt(2);return W(o.open())}),_()()}if(t&2){let e=M(2);D("appearance",e._formFieldAppearance)("color",e.color),p(),D("value",e.pageSize)("disabled",e.disabled),C1("aria-labelledby",e._pageSizeLabelId),D("panelClass",e.selectConfig.panelClass||"")("disableOptionCentering",e.selectConfig.disableOptionCentering),p(2),Ze(e._displayedPageSizeOptions)}}function Sae(t,i){if(t&1&&(h(0,"div",15),y(1),_()),t&2){let e=M(2);p(),T(e.pageSize)}}function kae(t,i){if(t&1&&(h(0,"div",3)(1,"div",13),y(2),_(),E(3,Dae,6,7,"mat-form-field",14),E(4,Sae,2,1,"div",15),_()),t&2){let e=M();p(),ne("id",e._pageSizeLabelId),p(),ee(" ",e._intl.itemsPerPageLabel," "),p(),I(e._displayedPageSizeOptions.length>1?3:-1),p(),I(e._displayedPageSizeOptions.length<=1?4:-1)}}function Eae(t,i){if(t&1){let e=le();h(0,"button",19),N("click",function(){G(e);let o=M();return W(o._buttonClicked(0,o._previousButtonsDisabled()))}),$t(),h(1,"svg",8),F(2,"path",20),_()()}if(t&2){let e=M();D("matTooltip",e._intl.firstPageLabel)("matTooltipDisabled",e._previousButtonsDisabled())("disabled",e._previousButtonsDisabled())("tabindex",e._previousButtonsDisabled()?-1:null),ne("aria-label",e._intl.firstPageLabel)}}function Iae(t,i){if(t&1){let e=le();h(0,"button",21),N("click",function(){G(e);let o=M();return W(o._buttonClicked(o.getNumberOfPages()-1,o._nextButtonsDisabled()))}),$t(),h(1,"svg",8),F(2,"path",22),_()()}if(t&2){let e=M();D("matTooltip",e._intl.lastPageLabel)("matTooltipDisabled",e._nextButtonsDisabled())("disabled",e._nextButtonsDisabled())("tabindex",e._nextButtonsDisabled()?-1:null),ne("aria-label",e._intl.lastPageLabel)}}var Zf=(()=>{class t{changes=new B;itemsPerPageLabel="Items per page:";nextPageLabel="Next page";previousPageLabel="Previous page";firstPageLabel="First page";lastPageLabel="Last page";getRangeLabel=(e,n,o)=>{if(o==0||n==0)return`0 of ${o}`;o=Math.max(o,0);let r=e*n,a=r{class t{_intl=d(Zf);_changeDetectorRef=d(xe);_formFieldAppearance;_pageSizeLabelId=d(He).getId("mat-paginator-page-size-label-");_intlChanges;_isInitialized=!1;_initializedStream=new pr(1);color;get pageIndex(){return this._pageIndex}set pageIndex(e){this._pageIndex=Math.max(e||0,0),this._changeDetectorRef.markForCheck()}_pageIndex=0;get length(){return this._length}set length(e){this._length=e||0,this._changeDetectorRef.markForCheck()}_length=0;get pageSize(){return this._pageSize}set pageSize(e){this._pageSize=Math.max(e||0,0),this._updateDisplayedPageSizeOptions()}_pageSize;get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(e){this._pageSizeOptions=(e||[]).map(n=>ut(n,0)),this._updateDisplayedPageSizeOptions()}_pageSizeOptions=[];hidePageSize=!1;showFirstLastButtons=!1;selectConfig={};disabled=!1;page=new j;_displayedPageSizeOptions;initialized=this._initializedStream;constructor(){let e=this._intl,n=d(Lae,{optional:!0});if(this._intlChanges=e.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),n){let{pageSize:o,pageSizeOptions:r,hidePageSize:a,showFirstLastButtons:s}=n;o!=null&&(this._pageSize=o),r!=null&&(this._pageSizeOptions=r),a!=null&&(this.hidePageSize=a),s!=null&&(this.showFirstLastButtons=s)}this._formFieldAppearance=n?.formFieldAppearance||"outline"}ngOnInit(){this._isInitialized=!0,this._updateDisplayedPageSizeOptions(),this._initializedStream.next()}ngOnDestroy(){this._initializedStream.complete(),this._intlChanges.unsubscribe()}nextPage(){this.hasNextPage()&&this._navigate(this.pageIndex+1)}previousPage(){this.hasPreviousPage()&&this._navigate(this.pageIndex-1)}firstPage(){this.hasPreviousPage()&&this._navigate(0)}lastPage(){this.hasNextPage()&&this._navigate(this.getNumberOfPages()-1)}hasPreviousPage(){return this.pageIndex>=1&&this.pageSize!=0}hasNextPage(){let e=this.getNumberOfPages()-1;return this.pageIndexe-n),this._changeDetectorRef.markForCheck())}_emitPageEvent(e){this.page.emit({previousPageIndex:e,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}_navigate(e){let n=this.pageIndex;e!==n&&(this.pageIndex=e,this._emitPageEvent(n))}_buttonClicked(e,n){n||this._navigate(e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-mdc-paginator"],inputs:{color:"color",pageIndex:[2,"pageIndex","pageIndex",ut],length:[2,"length","length",ut],pageSize:[2,"pageSize","pageSize",ut],pageSizeOptions:"pageSizeOptions",hidePageSize:[2,"hidePageSize","hidePageSize",H],showFirstLastButtons:[2,"showFirstLastButtons","showFirstLastButtons",H],selectConfig:"selectConfig",disabled:[2,"disabled","disabled",H]},outputs:{page:"page"},exportAs:["matPaginator"],decls:14,vars:14,consts:[["selectRef",""],[1,"mat-mdc-paginator-outer-container"],[1,"mat-mdc-paginator-container"],[1,"mat-mdc-paginator-page-size"],[1,"mat-mdc-paginator-range-actions"],["aria-live","polite",1,"mat-mdc-paginator-range-label"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-previous",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true",1,"mat-mdc-paginator-icon"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-next",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"matTooltip","matTooltipDisabled","disabled","tabindex"],[1,"mat-mdc-paginator-page-size-label"],[1,"mat-mdc-paginator-page-size-select",3,"appearance","color"],[1,"mat-mdc-paginator-page-size-value"],["hideSingleSelectionIndicator","",3,"selectionChange","value","disabled","aria-labelledby","panelClass","disableOptionCentering"],[3,"value"],[1,"mat-mdc-paginator-touch-target",3,"click"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-first",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"],["matIconButton","","type","button","matTooltipPosition","above","disabledInteractive","",1,"mat-mdc-paginator-navigation-last",3,"click","matTooltip","matTooltipDisabled","disabled","tabindex"],["d","M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2),E(2,kae,5,4,"div",3),h(3,"div",4)(4,"div",5),y(5),_(),E(6,Eae,3,5,"button",6),h(7,"button",7),N("click",function(){return o._buttonClicked(o.pageIndex-1,o._previousButtonsDisabled())}),$t(),h(8,"svg",8),F(9,"path",9),_()(),Ko(),h(10,"button",10),N("click",function(){return o._buttonClicked(o.pageIndex+1,o._nextButtonsDisabled())}),$t(),h(11,"svg",8),F(12,"path",11),_()(),E(13,Iae,3,5,"button",12),_()()()),n&2&&(p(2),I(o.hidePageSize?-1:2),p(3),ee(" ",o._intl.getRangeLabel(o.pageIndex,o.pageSize,o.length)," "),p(),I(o.showFirstLastButtons?6:-1),p(),D("matTooltip",o._intl.previousPageLabel)("matTooltipDisabled",o._previousButtonsDisabled())("disabled",o._previousButtonsDisabled())("tabindex",o._previousButtonsDisabled()?-1:null),ne("aria-label",o._intl.previousPageLabel),p(3),D("matTooltip",o._intl.nextPageLabel)("matTooltipDisabled",o._nextButtonsDisabled())("disabled",o._nextButtonsDisabled())("tabindex",o._nextButtonsDisabled()?-1:null),ne("aria-label",o._intl.nextPageLabel),p(3),I(o.showFirstLastButtons?13:-1))},dependencies:[Bt,qn,ln,ni,mo],styles:[`.mat-mdc-paginator{display:block;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-paginator-container-text-color, var(--mat-sys-on-surface));background-color:var(--mat-paginator-container-background-color, var(--mat-sys-surface));font-family:var(--mat-paginator-container-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-paginator-container-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-paginator-container-text-size, var(--mat-sys-body-small-size));font-weight:var(--mat-paginator-container-text-weight, var(--mat-sys-body-small-weight));letter-spacing:var(--mat-paginator-container-text-tracking, var(--mat-sys-body-small-tracking));--mat-form-field-container-height: var(--mat-paginator-form-field-container-height, 40px);--mat-form-field-container-vertical-padding: var(--mat-paginator-form-field-container-vertical-padding, 8px)}.mat-mdc-paginator .mat-mdc-select-value{font-size:var(--mat-paginator-select-trigger-text-size, var(--mat-sys-body-small-size))}.mat-mdc-paginator .mat-mdc-form-field-subscript-wrapper{display:none}.mat-mdc-paginator .mat-mdc-select{line-height:1.5}.mat-mdc-paginator-outer-container{display:flex}.mat-mdc-paginator-container{display:flex;align-items:center;justify-content:flex-end;padding:0 8px;flex-wrap:wrap;width:100%;min-height:var(--mat-paginator-container-size, 56px)}.mat-mdc-paginator-page-size{display:flex;align-items:baseline;margin-right:8px}[dir=rtl] .mat-mdc-paginator-page-size{margin-right:0;margin-left:8px}.mat-mdc-paginator-page-size-label{margin:0 4px}.mat-mdc-paginator-page-size-select{margin:0 4px;width:var(--mat-paginator-page-size-select-width, 84px)}.mat-mdc-paginator-range-label{margin:0 32px 0 24px}.mat-mdc-paginator-range-actions{display:flex;align-items:center}.mat-mdc-paginator-icon{display:inline-block;width:28px;fill:var(--mat-paginator-enabled-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon{fill:var(--mat-paginator-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}[dir=rtl] .mat-mdc-paginator-icon{transform:rotate(180deg)}@media(forced-colors: active){.mat-mdc-icon-button[aria-disabled] .mat-mdc-paginator-icon,.mat-mdc-paginator-icon{fill:currentColor}.mat-mdc-paginator-range-actions .mat-mdc-icon-button{outline:solid 1px}.mat-mdc-paginator-range-actions .mat-mdc-icon-button[aria-disabled]{color:GrayText}}.mat-mdc-paginator-touch-target{display:var(--mat-paginator-touch-target-display, block);position:absolute;top:50%;left:50%;width:var(--mat-paginator-page-size-select-width, 84px);height:var(--mat-paginator-page-size-select-touch-target-height, 48px);background-color:rgba(0,0,0,0);transform:translate(-50%, -50%);cursor:pointer}
+`],encapsulation:2,changeDetection:0})}return t})(),Mz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Tae],imports:[_a,eu,hu,wb]})}return t})();var Aae=["determinateSpinner"];function zae(t,i){if(t&1&&($t(),h(0,"svg",11),F(1,"circle",12),_()),t&2){let e=M();ne("viewBox",e._viewBox()),p(),At("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),ne("r",e._circleRadius())}}var Rae=new L("mat-progress-spinner-default-options",{providedIn:"root",factory:Nae});function Nae(){return{diameter:wz}}var wz=100,Fae=10,Dz=(()=>{class t{_elementRef=d(Q);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=d(Rae),n=k0(),o=this._elementRef.nativeElement;this._noopAnimations=n==="di-disabled"&&!!e&&!e._forceAnimations,this.mode=o.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",!this._noopAnimations&&n==="reduced-motion"&&o.classList.add("mat-progress-spinner-reduced-motion"),e&&(e.color&&(this.color=this._defaultColor=e.color),e.diameter&&(this.diameter=e.diameter),e.strokeWidth&&(this.strokeWidth=e.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=wz;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-Fae)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(n,o){if(n&1&&ue(Aae,5),n&2){let r;U(r=$())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(n,o){n&2&&(ne("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),Tt("mat-"+o.color),At("width",o.diameter,"px")("height",o.diameter,"px")("--mat-progress-spinner-size",o.diameter+"px")("--mat-progress-spinner-active-indicator-width",o.diameter+"px"),oe("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",ut],diameter:[2,"diameter","diameter",ut],strokeWidth:[2,"strokeWidth","strokeWidth",ut]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(n,o){if(n&1&&(ot(0,zae,2,8,"ng-template",null,0,ks),h(2,"div",2,1),$t(),h(4,"svg",3),F(5,"circle",4),_()(),Ko(),h(6,"div",5)(7,"div",6)(8,"div",7),Vt(9,8),_(),h(10,"div",9),Vt(11,8),_(),h(12,"div",10),Vt(13,8),_()()()),n&2){let r=Nt(1);p(4),ne("viewBox",o._viewBox()),p(),At("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),ne("r",o._circleRadius()),p(4),D("ngTemplateOutlet",r),p(2),D("ngTemplateOutlet",r),p(2),D("ngTemplateOutlet",r)}},dependencies:[Es],styles:[`.mat-mdc-progress-spinner{--mat-progress-spinner-animation-multiplier: 1;display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mat-progress-spinner-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mat-progress-spinner-reduced-motion{--mat-progress-spinner-animation-multiplier: 1.25}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate calc(1568.2352941176ms*var(--mat-progress-spinner-animation-multiplier)) linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mat-progress-spinner-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin calc(1333ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate calc(5332ms*var(--mat-progress-spinner-animation-multiplier)) cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}}
+`],encapsulation:2,changeDetection:0})}return t})();var Sz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();function Vae(t,i){t&1&&Tn(0,"div",2)}var Bae=new L("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");var OHe=(()=>{class t{_elementRef=d(Q);_ngZone=d(se);_changeDetectorRef=d(xe);_renderer=d(Ke);_cleanupTransitionEnd;constructor(){let e=k0(),n=d(Bae,{optional:!0});this._isNoopAnimation=e==="di-disabled",e==="reduced-motion"&&this._elementRef.nativeElement.classList.add("mat-progress-bar-reduced-motion"),n&&(n.color&&(this.color=this._defaultColor=n.color),this.mode=n.mode||this.mode)}_isNoopAnimation;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";get value(){return this._value}set value(e){this._value=kz(e||0),this._changeDetectorRef.markForCheck()}_value=0;get bufferValue(){return this._bufferValue||0}set bufferValue(e){this._bufferValue=kz(e||0),this._changeDetectorRef.markForCheck()}_bufferValue=0;animationEnd=new j;get mode(){return this._mode}set mode(e){this._mode=e,this._changeDetectorRef.markForCheck()}_mode="determinate";ngAfterViewInit(){this._ngZone.runOutsideAngular(()=>{this._cleanupTransitionEnd=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._transitionendHandler)})}ngOnDestroy(){this._cleanupTransitionEnd?.()}_getPrimaryBarTransform(){return`scaleX(${this._isIndeterminate()?1:this.value/100})`}_getBufferBarFlexBasis(){return`${this.mode==="buffer"?this.bufferValue:100}%`}_isIndeterminate(){return this.mode==="indeterminate"||this.mode==="query"}_transitionendHandler=e=>{this.animationEnd.observers.length===0||!e.target||!e.target.classList.contains("mdc-linear-progress__primary-bar")||(this.mode==="determinate"||this.mode==="buffer")&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))};static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-progress-bar"]],hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-mdc-progress-bar","mdc-linear-progress"],hostVars:10,hostBindings:function(n,o){n&2&&(ne("aria-valuenow",o._isIndeterminate()?null:o.value)("mode",o.mode),Tt("mat-"+o.color),oe("_mat-animation-noopable",o._isNoopAnimation)("mdc-linear-progress--animation-ready",!o._isNoopAnimation)("mdc-linear-progress--indeterminate",o._isIndeterminate()))},inputs:{color:"color",value:[2,"value","value",ut],bufferValue:[2,"bufferValue","bufferValue",ut],mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],decls:7,vars:5,consts:[["aria-hidden","true",1,"mdc-linear-progress__buffer"],[1,"mdc-linear-progress__buffer-bar"],[1,"mdc-linear-progress__buffer-dots"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__primary-bar"],[1,"mdc-linear-progress__bar-inner"],["aria-hidden","true",1,"mdc-linear-progress__bar","mdc-linear-progress__secondary-bar"]],template:function(n,o){n&1&&(nt(0,"div",0),Tn(1,"div",1),E(2,Vae,1,0,"div",2),rt(),nt(3,"div",3),Tn(4,"span",4),rt(),nt(5,"div",5),Tn(6,"span",4),rt()),n&2&&(p(),At("flex-basis",o._getBufferBarFlexBasis()),p(),I(o.mode==="buffer"?2:-1),p(),At("transform",o._getPrimaryBarTransform()))},styles:[`.mat-mdc-progress-bar{--mat-progress-bar-animation-multiplier: 1;display:block;text-align:start}.mat-mdc-progress-bar[mode=query]{transform:scaleX(-1)}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-dots,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__secondary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__bar-inner.mdc-linear-progress__bar-inner{animation:none}.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__primary-bar,.mat-mdc-progress-bar._mat-animation-noopable .mdc-linear-progress__buffer-bar{transition:transform 1ms}.mat-progress-bar-reduced-motion{--mat-progress-bar-animation-multiplier: 2}.mdc-linear-progress{position:relative;width:100%;transform:translateZ(0);outline:1px solid rgba(0,0,0,0);overflow-x:hidden;transition:opacity 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:max(var(--mat-progress-bar-track-height, 4px),var(--mat-progress-bar-active-indicator-height, 4px))}@media(forced-colors: active){.mdc-linear-progress{outline-color:CanvasText}}.mdc-linear-progress__bar{position:absolute;top:0;bottom:0;margin:auto 0;width:100%;animation:none;transform-origin:top left;transition:transform 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);height:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress--indeterminate .mdc-linear-progress__bar{transition:none}[dir=rtl] .mdc-linear-progress__bar{right:0;transform-origin:center right}.mdc-linear-progress__bar-inner{display:inline-block;position:absolute;width:100%;animation:none;border-top-style:solid;border-color:var(--mat-progress-bar-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-progress-bar-active-indicator-height, 4px)}.mdc-linear-progress__buffer{display:flex;position:absolute;top:0;bottom:0;margin:auto 0;width:100%;overflow:hidden;height:var(--mat-progress-bar-track-height, 4px);border-radius:var(--mat-progress-bar-track-shape, var(--mat-sys-corner-none))}.mdc-linear-progress__buffer-dots{background-image:radial-gradient(circle, var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant)) calc(var(--mat-progress-bar-track-height, 4px) / 2), transparent 0);background-repeat:repeat-x;background-size:calc(calc(var(--mat-progress-bar-track-height, 4px) / 2)*5);background-position:left;flex:auto;transform:rotate(180deg);animation:mdc-linear-progress-buffering calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear}@media(forced-colors: active){.mdc-linear-progress__buffer-dots{background-color:ButtonBorder}}[dir=rtl] .mdc-linear-progress__buffer-dots{animation:mdc-linear-progress-buffering-reverse calc(250ms*var(--mat-progress-bar-animation-multiplier)) infinite linear;transform:rotate(0)}.mdc-linear-progress__buffer-bar{flex:0 1 100%;transition:flex-basis 250ms 0ms cubic-bezier(0.4, 0, 0.6, 1);background-color:var(--mat-progress-bar-track-color, var(--mat-sys-surface-variant))}.mdc-linear-progress__primary-bar{transform:scaleX(0)}.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{left:-145.166611%}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation:mdc-linear-progress-primary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-primary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__primary-bar{animation-name:mdc-linear-progress-primary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__primary-bar{right:-145.166611%;left:auto}.mdc-linear-progress__secondary-bar{display:none}.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{left:-54.888891%;display:block}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation:mdc-linear-progress-secondary-indeterminate-translate calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}.mdc-linear-progress--indeterminate.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar>.mdc-linear-progress__bar-inner{animation:mdc-linear-progress-secondary-indeterminate-scale calc(2s*var(--mat-progress-bar-animation-multiplier)) infinite linear}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--animation-ready .mdc-linear-progress__secondary-bar{animation-name:mdc-linear-progress-secondary-indeterminate-translate-reverse}[dir=rtl] .mdc-linear-progress.mdc-linear-progress--indeterminate .mdc-linear-progress__secondary-bar{right:-54.888891%;left:auto}@keyframes mdc-linear-progress-buffering{from{transform:rotate(180deg) translateX(calc(var(--mat-progress-bar-track-height, 4px) * -2.5))}}@keyframes mdc-linear-progress-primary-indeterminate-translate{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(83.67142%)}100%{transform:translateX(200.611057%)}}@keyframes mdc-linear-progress-primary-indeterminate-scale{0%{transform:scaleX(0.08)}36.65%{animation-timing-function:cubic-bezier(0.334731, 0.12482, 0.785844, 1);transform:scaleX(0.08)}69.15%{animation-timing-function:cubic-bezier(0.06, 0.11, 0.6, 1);transform:scaleX(0.661479)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(84.386165%)}100%{transform:translateX(160.277782%)}}@keyframes mdc-linear-progress-secondary-indeterminate-scale{0%{animation-timing-function:cubic-bezier(0.205028, 0.057051, 0.57661, 0.453971);transform:scaleX(0.08)}19.15%{animation-timing-function:cubic-bezier(0.152313, 0.196432, 0.648374, 1.004315);transform:scaleX(0.457104)}44.15%{animation-timing-function:cubic-bezier(0.257759, -0.003163, 0.211762, 1.38179);transform:scaleX(0.72796)}100%{transform:scaleX(0.08)}}@keyframes mdc-linear-progress-primary-indeterminate-translate-reverse{0%{transform:translateX(0)}20%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(0)}59.15%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(-83.67142%)}100%{transform:translateX(-200.611057%)}}@keyframes mdc-linear-progress-secondary-indeterminate-translate-reverse{0%{animation-timing-function:cubic-bezier(0.15, 0, 0.515058, 0.409685);transform:translateX(0)}25%{animation-timing-function:cubic-bezier(0.31033, 0.284058, 0.8, 0.733712);transform:translateX(-37.651913%)}48.35%{animation-timing-function:cubic-bezier(0.4, 0.627035, 0.6, 0.902026);transform:translateX(-84.386165%)}100%{transform:translateX(-160.277782%)}}@keyframes mdc-linear-progress-buffering-reverse{from{transform:translateX(-10px)}}
+`],encapsulation:2,changeDetection:0})}return t})();function kz(t,i=0,e=100){return Math.max(i,Math.min(e,t))}var Ez=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe]})}return t})();var jae=["input"],Hae=["formField"],Uae=["*"],Jf=class{source;value;constructor(i,e){this.source=i,this.value=e}},$ae={provide:di,useExisting:kt(()=>qae),multi:!0},Iz=new L("MatRadioGroup"),Gae=new L("mat-radio-default-options",{providedIn:"root",factory:Wae});function Wae(){return{color:"accent",disabledInteractive:!1}}var qae=(()=>{class t{_changeDetector=d(xe);_value=null;_name=d(He).getId("mat-radio-group-");_selected=null;_isInitialized=!1;_labelPosition="after";_disabled=!1;_required=!1;_buttonChanges;_controlValueAccessorChangeFn=()=>{};onTouched=()=>{};change=new j;_radios;color;get name(){return this._name}set name(e){this._name=e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(e){this._labelPosition=e==="before"?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(e){this._selected=e,this.value=e?e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._markRadiosForCheck()}get required(){return this._required}set required(e){this._required=e,this._markRadiosForCheck()}get disabledInteractive(){return this._disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e,this._markRadiosForCheck()}_disabledInteractive=!1;constructor(){}ngAfterContentInit(){this._isInitialized=!0,this._buttonChanges=this._radios.changes.subscribe(()=>{this.selected&&!this._radios.find(e=>e===this.selected)&&(this._selected=null)})}ngOnDestroy(){this._buttonChanges?.unsubscribe()}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(e=>{e.name=this.name,e._markForCheck()})}_updateSelectedRadioFromValue(){let e=this._selected!==null&&this._selected.value===this._value;this._radios&&!e&&(this._selected=null,this._radios.forEach(n=>{n.checked=this.value===n.value,n.checked&&(this._selected=n)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new Jf(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(e=>e._markForCheck())}writeValue(e){this.value=e,this._changeDetector.markForCheck()}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetector.markForCheck()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-radio-group"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Oz,5),n&2){let a;U(a=$())&&(o._radios=a)}},hostAttrs:["role","radiogroup",1,"mat-mdc-radio-group"],inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:[2,"disabled","disabled",H],required:[2,"required","required",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change"},exportAs:["matRadioGroup"],features:[de([$ae,{provide:Iz,useExisting:t}])]})}return t})(),Oz=(()=>{class t{_elementRef=d(Q);_changeDetector=d(xe);_focusMonitor=d(sn);_radioDispatcher=d(ml);_defaultOptions=d(Gae,{optional:!0});_ngZone=d(se);_renderer=d(Ke);_uniqueId=d(He).getId("mat-radio-");_cleanupClick;id=this._uniqueId;name;ariaLabel;ariaLabelledby;ariaDescribedby;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked!==e&&(this._checked=e,e&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!e&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),e&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(e){this._value!==e&&(this._value=e,this.radioGroup!==null&&(this.checked||(this.checked=this.radioGroup.value===e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(e){this._labelPosition=e}_labelPosition;get disabled(){return this._disabled||this.radioGroup!==null&&this.radioGroup.disabled}set disabled(e){this._setDisabled(e)}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(e){e!==this._required&&this._changeDetector.markForCheck(),this._required=e}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._defaultOptions&&this._defaultOptions.color||"accent"}set color(e){this._color=e}_color;get disabledInteractive(){return this._disabledInteractive||this.radioGroup!==null&&this.radioGroup.disabledInteractive}set disabledInteractive(e){this._disabledInteractive=e}_disabledInteractive;change=new j;radioGroup;get inputId(){return`${this.id||this._uniqueId}-input`}_checked=!1;_disabled;_required;_value=null;_removeUniqueSelectionListener=()=>{};_previousTabIndex;_inputElement;_rippleTrigger;_noopAnimations=Ue();_injector=d(be);constructor(){d(at).load(cn);let e=d(Iz,{optional:!0}),n=d(new dn("tabindex"),{optional:!0});this.radioGroup=e,this._disabledInteractive=this._defaultOptions?.disabledInteractive??!1,n&&(this.tabIndex=ut(n,0))}focus(e,n){n?this._focusMonitor.focusVia(this._inputElement,n,e):this._inputElement.nativeElement.focus(e)}_markForCheck(){this._changeDetector.markForCheck()}ngOnInit(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.checked&&(this.radioGroup.selected=this),this.name=this.radioGroup.name),this._removeUniqueSelectionListener=this._radioDispatcher.listen((e,n)=>{e!==this.id&&n===this.name&&(this.checked=!1)})}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{!e&&this.radioGroup&&this.radioGroup._touch()}),this._ngZone.runOutsideAngular(()=>{this._cleanupClick=this._renderer.listen(this._inputElement.nativeElement,"click",this._onInputClick)})}ngOnDestroy(){this._cleanupClick?.(),this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new Jf(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputInteraction(e){if(e.stopPropagation(),!this.checked&&!this.disabled){let n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),n&&this.radioGroup._emitChangeEvent())}}_onTouchTargetClick(e){this._onInputInteraction(e),(!this.disabled||this.disabledInteractive)&&this._inputElement?.nativeElement.focus()}_setDisabled(e){this._disabled!==e&&(this._disabled=e,this._changeDetector.markForCheck())}_onInputClick=e=>{this.disabled&&this.disabledInteractive&&e.preventDefault()};_updateTabIndex(){let e=this.radioGroup,n;if(!e||!e.selected||this.disabled?n=this.tabIndex:n=e.selected===this?this.tabIndex:-1,n!==this._previousTabIndex){let o=this._inputElement?.nativeElement;o&&(o.setAttribute("tabindex",n+""),this._previousTabIndex=n,Ct(()=>{queueMicrotask(()=>{e&&e.selected&&e.selected!==this&&document.activeElement===o&&(e.selected?._inputElement.nativeElement.focus(),document.activeElement===o&&this._inputElement.nativeElement.blur())})},{injector:this._injector}))}}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-radio-button"]],viewQuery:function(n,o){if(n&1&&(ue(jae,5),ue(Hae,7,Q)),n&2){let r;U(r=$())&&(o._inputElement=r.first),U(r=$())&&(o._rippleTrigger=r.first)}},hostAttrs:[1,"mat-mdc-radio-button"],hostVars:19,hostBindings:function(n,o){n&1&&N("focus",function(){return o._inputElement.nativeElement.focus()}),n&2&&(ne("id",o.id)("tabindex",null)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),oe("mat-primary",o.color==="primary")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("mat-mdc-radio-checked",o.checked)("mat-mdc-radio-disabled",o.disabled)("mat-mdc-radio-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._noopAnimations))},inputs:{id:"id",name:"name",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],checked:[2,"checked","checked",H],value:"value",labelPosition:"labelPosition",disabled:[2,"disabled","disabled",H],required:[2,"required","required",H],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change"},exportAs:["matRadioButton"],ngContentSelectors:Uae,decls:13,vars:17,consts:[["formField",""],["input",""],["mat-internal-form-field","",3,"labelPosition"],[1,"mdc-radio"],[1,"mat-mdc-radio-touch-target",3,"click"],["type","radio","aria-invalid","false",1,"mdc-radio__native-control",3,"change","id","checked","disabled","required"],[1,"mdc-radio__background"],[1,"mdc-radio__outer-circle"],[1,"mdc-radio__inner-circle"],["mat-ripple","",1,"mat-radio-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mat-ripple-element","mat-radio-persistent-ripple"],[1,"mdc-label",3,"for"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",2,0)(2,"div",3)(3,"div",4),N("click",function(s){return G(r),W(o._onTouchTargetClick(s))}),_(),h(4,"input",5,1),N("change",function(s){return G(r),W(o._onInputInteraction(s))}),_(),h(6,"div",6),F(7,"div",7)(8,"div",8),_(),h(9,"div",9),F(10,"div",10),_()(),h(11,"label",11),ae(12),_()()}n&2&&(D("labelPosition",o.labelPosition),p(2),oe("mdc-radio--disabled",o.disabled),p(2),D("id",o.inputId)("checked",o.checked)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),ne("name",o.name)("value",o.value)("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),p(5),D("matRippleTrigger",o._rippleTrigger.nativeElement)("matRippleDisabled",o._isRippleDisabled())("matRippleCentered",!0),p(2),D("for",o.inputId))},dependencies:[mi,Q1],styles:[`.mat-mdc-radio-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-radio-button .mdc-radio{display:inline-block;position:relative;flex:0 0 auto;box-sizing:content-box;width:20px;height:20px;cursor:pointer;will-change:opacity,transform,border-color,color;padding:calc((var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled]):not(:focus)~.mdc-radio__background::before{opacity:.04;transform:scale(1)}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:not([disabled])~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-hover-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:hover>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-hover-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-pressed-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio:active>.mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-pressed-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__background{display:inline-block;position:relative;box-sizing:border-box;width:20px;height:20px}.mat-mdc-radio-button .mdc-radio__background::before{position:absolute;transform:scale(0, 0);border-radius:50%;opacity:0;pointer-events:none;content:"";transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px);top:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2);left:calc(-1*(var(--mat-radio-state-layer-size, 40px) - 20px)/2)}.mat-mdc-radio-button .mdc-radio__outer-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;border-width:2px;border-style:solid;border-radius:50%;transition:border-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-radio-button .mdc-radio__inner-circle{position:absolute;top:0;left:0;box-sizing:border-box;width:100%;height:100%;transform:scale(0);border-radius:50%;transition:transform 90ms cubic-bezier(0.4, 0, 0.6, 1),background-color 90ms cubic-bezier(0.4, 0, 0.6, 1)}@media(forced-colors: active){.mat-mdc-radio-button .mdc-radio__inner-circle{background-color:CanvasText !important}}.mat-mdc-radio-button .mdc-radio__native-control{position:absolute;margin:0;padding:0;opacity:0;top:0;right:0;left:0;cursor:inherit;z-index:1;width:var(--mat-radio-state-layer-size, 40px);height:var(--mat-radio-state-layer-size, 40px)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:focus+.mdc-radio__background::before{transform:scale(1);opacity:.12;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 1),transform 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button .mdc-radio__native-control:disabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background{cursor:default}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:disabled+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button .mdc-radio__native-control:enabled:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary))}.mat-mdc-radio-button .mdc-radio__native-control:enabled:focus:checked+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-selected-focus-icon-color, var(--mat-sys-primary, currentColor))}.mat-mdc-radio-button .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle{transform:scale(0.5);transition:transform 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled{pointer-events:auto}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:not(:checked)+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-unselected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-unselected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__outer-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled:hover .mdc-radio__native-control:checked+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control:checked:focus+.mdc-radio__background>.mdc-radio__inner-circle,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__native-control+.mdc-radio__background>.mdc-radio__inner-circle{background-color:var(--mat-radio-disabled-selected-icon-color, var(--mat-sys-on-surface, currentColor));opacity:var(--mat-radio-disabled-selected-icon-opacity, 0.38)}.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__background::before,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__outer-circle,.mat-mdc-radio-button._mat-animation-noopable .mdc-radio__inner-circle{transition:none !important}.mat-mdc-radio-button label{cursor:pointer}.mat-mdc-radio-button .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.mat-mdc-radio-checked .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-checked .mdc-radio__background::before{background-color:var(--mat-radio-checked-ripple-color, var(--mat-sys-primary))}.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mat-ripple-element,.mat-mdc-radio-button.mat-mdc-radio-disabled-interactive .mdc-radio--disabled .mdc-radio__background::before{background-color:var(--mat-radio-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button .mat-internal-form-field{color:var(--mat-radio-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-radio-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-radio-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-radio-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-radio-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-radio-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-radio-button .mdc-radio--disabled+label{color:var(--mat-radio-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-radio-button .mat-radio-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:50%}.mat-mdc-radio-button .mat-radio-ripple>.mat-ripple-element{opacity:.14}.mat-mdc-radio-button .mat-radio-ripple::before{border-radius:50%}.mat-mdc-radio-button .mdc-radio>.mdc-radio__native-control:focus:enabled:not(:checked)~.mdc-radio__background>.mdc-radio__outer-circle{border-color:var(--mat-radio-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mat-mdc-radio-button.cdk-focused .mat-focus-indicator::before{content:""}.mat-mdc-radio-disabled{cursor:default;pointer-events:none}.mat-mdc-radio-disabled.mat-mdc-radio-disabled-interactive{pointer-events:auto}.mat-mdc-radio-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-radio-touch-target-size, 48px);width:var(--mat-radio-touch-target-size, 48px);transform:translate(-50%, -50%);display:var(--mat-radio-touch-target-display, block)}[dir=rtl] .mat-mdc-radio-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
+`],encapsulation:2,changeDetection:0})}return t})(),Tz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi,Oz,fe]})}return t})();var th=["*"],Yae=["content"],Qae=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],Kae=["mat-drawer","mat-drawer-content","*"];function Xae(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){G(e);let o=M();return W(o._onBackdropClicked())}),_()}if(t&2){let e=M();oe("mat-drawer-shown",e._isShowingBackdrop())}}function Zae(t,i){t&1&&(h(0,"mat-drawer-content"),ae(1,2),_())}var Jae=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],ese=["mat-sidenav","mat-sidenav-content","*"];function tse(t,i){if(t&1){let e=le();h(0,"div",1),N("click",function(){G(e);let o=M();return W(o._onBackdropClicked())}),_()}if(t&2){let e=M();oe("mat-drawer-shown",e._isShowingBackdrop())}}function nse(t,i){t&1&&(h(0,"mat-sidenav-content"),ae(1,2),_())}var ise=`.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}
+`;var ose=new L("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:rse}),kb=new L("MAT_DRAWER_CONTAINER");function rse(){return!1}var eh=(()=>{class t extends Ar{_platform=d(je);_changeDetectorRef=d(xe);_container=d(Sb);constructor(){let e=d(Q),n=d(ar),o=d(se);super(e,n,o)}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}_shouldBeHidden(){if(this._platform.isBrowser)return!1;let{start:e,end:n}=this._container;return e!=null&&e.mode!=="over"&&e.opened||n!=null&&n.mode!=="over"&&n.opened}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:6,hostBindings:function(n,o){n&2&&(At("margin-left",o._container._contentMargins.left,"px")("margin-right",o._container._contentMargins.right,"px"),oe("mat-drawer-content-hidden",o._shouldBeHidden()))},features:[de([{provide:Ar,useExisting:t}]),ce],ngContentSelectors:th,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),Db=(()=>{class t{_elementRef=d(Q);_focusTrapFactory=d($1);_focusMonitor=d(sn);_platform=d(je);_ngZone=d(se);_renderer=d(Ke);_interactivityChecker=d(Vs);_doc=d(Me);_container=d(kb,{optional:!0});_focusTrap=null;_elementFocusedBeforeDrawerWasOpened=null;_eventCleanups;_isAttached;_anchor;get position(){return this._position}set position(e){e=e==="end"?"end":"start",e!==this._position&&(this._isAttached&&this._updatePositionInParent(e),this._position=e,this.onPositionChanged.emit())}_position="start";get mode(){return this._mode}set mode(e){this._mode=e,this._updateFocusTrapState(),this._modeChanged.next()}_mode="over";get disableClose(){return this._disableClose}set disableClose(e){this._disableClose=yn(e)}_disableClose=!1;get autoFocus(){let e=this._autoFocus;return e??(this.mode==="side"?"dialog":"first-tabbable")}set autoFocus(e){(e==="true"||e==="false"||e==null)&&(e=yn(e)),this._autoFocus=e}_autoFocus;get opened(){return this._opened()}set opened(e){this.toggle(yn(e))}_opened=we(!1);_openedVia;_animationStarted=new B;_animationEnd=new B;openedChange=new j(!0);_openedStream=this.openedChange.pipe(Ae(e=>e),me(()=>{}));openedStart=this._animationStarted.pipe(Ae(()=>this.opened),Gl(void 0));_closedStream=this.openedChange.pipe(Ae(e=>!e),me(()=>{}));closedStart=this._animationStarted.pipe(Ae(()=>!this.opened),Gl(void 0));_destroyed=new B;onPositionChanged=new j;_content;_modeChanged=new B;_injector=d(be);_changeDetectorRef=d(xe);constructor(){this.openedChange.pipe(ye(this._destroyed)).subscribe(e=>{e?(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement,this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement;ed(e,"keydown").pipe(Ae(n=>n.keyCode===27&&!this.disableClose&&!Dt(n)),ye(this._destroyed)).subscribe(n=>this._ngZone.run(()=>{this.close(),n.stopPropagation(),n.preventDefault()})),this._eventCleanups=[this._renderer.listen(e,"transitionrun",this._handleTransitionEvent),this._renderer.listen(e,"transitionend",this._handleTransitionEvent),this._renderer.listen(e,"transitioncancel",this._handleTransitionEvent)]}),this._animationEnd.subscribe(()=>{this.openedChange.emit(this.opened)})}_forceFocus(e,n){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(n)}_focusByCssSelector(e,n){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,n)}_takeFocus(){if(!this._focusTrap)return;let e=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":Ct(()=>{!this._focusTrap.focusInitialElement()&&typeof e.focus=="function"&&e.focus()},{injector:this._injector});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus);break}}_restoreFocus(e){this.autoFocus!=="dialog"&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,e):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){let e=this._doc.activeElement;return!!e&&this._elementRef.nativeElement.contains(e)}ngAfterViewInit(){this._isAttached=!0,this._position==="end"&&this._updatePositionInParent("end"),this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._focusTrap?.destroy(),this._anchor?.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(e){return this.toggle(!0,e)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(e=!this.opened,n){e&&n&&(this._openedVia=n);let o=this._setOpen(e,!e&&this._isFocusWithinDrawer(),this._openedVia||"program");return e||(this._openedVia=null),o}_setOpen(e,n,o){return e===this.opened?Promise.resolve(e?"open":"close"):(this._opened.set(e),this._container?._transitionsEnabled?this._setIsAnimating(!0):setTimeout(()=>{this._animationStarted.next(),this._animationEnd.next()}),this._elementRef.nativeElement.classList.toggle("mat-drawer-opened",e),!e&&n&&this._restoreFocus(o),this._changeDetectorRef.markForCheck(),this._updateFocusTrapState(),new Promise(r=>{this.openedChange.pipe(Be(1)).subscribe(a=>r(a?"open":"close"))}))}_setIsAnimating(e){this._elementRef.nativeElement.classList.toggle("mat-drawer-animating",e)}_getWidth(){return this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=!!this._container?.hasBackdrop&&this.opened)}_updatePositionInParent(e){if(!this._platform.isBrowser)return;let n=this._elementRef.nativeElement,o=n.parentNode;e==="end"?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),o.insertBefore(this._anchor,n)),o.appendChild(n)):this._anchor&&this._anchor.parentNode.insertBefore(n,this._anchor)}_handleTransitionEvent=e=>{let n=this._elementRef.nativeElement;e.target===n&&this._ngZone.run(()=>{e.type==="transitionrun"?this._animationStarted.next(e):(e.type==="transitionend"&&this._setIsAnimating(!1),this._animationEnd.next(e))})};static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-drawer"]],viewQuery:function(n,o){if(n&1&&ue(Yae,5),n&2){let r;U(r=$())&&(o._content=r.first)}},hostAttrs:[1,"mat-drawer"],hostVars:12,hostBindings:function(n,o){n&2&&(ne("align",null)("tabIndex",o.mode!=="side"?"-1":null),At("visibility",!o._container&&!o.opened?"hidden":null),oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side"))},inputs:{position:"position",mode:"mode",disableClose:"disableClose",autoFocus:"autoFocus",opened:"opened"},outputs:{openedChange:"openedChange",_openedStream:"opened",openedStart:"openedStart",_closedStream:"closed",closedStart:"closedStart",onPositionChanged:"positionChanged"},exportAs:["matDrawer"],ngContentSelectors:th,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(De(),h(0,"div",1,0),ae(2),_())},dependencies:[Ar],encapsulation:2,changeDetection:0})}return t})(),Sb=(()=>{class t{_dir=d(bt,{optional:!0});_element=d(Q);_ngZone=d(se);_changeDetectorRef=d(xe);_animationDisabled=Ue();_transitionsEnabled=!1;_allDrawers;_drawers=new In;_content;_userContent;get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(e){this._autosize=yn(e)}_autosize=d(ose);get hasBackdrop(){return this._drawerHasBackdrop(this._start)||this._drawerHasBackdrop(this._end)}set hasBackdrop(e){this._backdropOverride=e==null?null:yn(e)}_backdropOverride;backdropClick=new j;_start;_end;_left;_right;_destroyed=new B;_doCheckSubject=new B;_contentMargins={left:null,right:null};_contentMarginChanges=new B;get scrollable(){return this._userContent||this._content}_injector=d(be);constructor(){let e=d(je),n=d(Gn);this._dir?.change.pipe(ye(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),n.change().pipe(ye(this._destroyed)).subscribe(()=>this.updateContentMargins()),!this._animationDisabled&&e.isBrowser&&this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._element.nativeElement.classList.add("mat-drawer-transition"),this._transitionsEnabled=!0},200)})}ngAfterContentInit(){this._allDrawers.changes.pipe(We(this._allDrawers),ye(this._destroyed)).subscribe(e=>{this._drawers.reset(e.filter(n=>!n._container||n._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe(We(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(e=>{this._watchDrawerToggle(e),this._watchDrawerPosition(e),this._watchDrawerMode(e)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe(hr(10),ye(this._destroyed)).subscribe(()=>this.updateContentMargins())})}ngOnDestroy(){this._contentMarginChanges.complete(),this._doCheckSubject.complete(),this._drawers.destroy(),this._destroyed.next(),this._destroyed.complete()}open(){this._drawers.forEach(e=>e.open())}close(){this._drawers.forEach(e=>e.close())}updateContentMargins(){let e=0,n=0;if(this._left&&this._left.opened){if(this._left.mode=="side")e+=this._left._getWidth();else if(this._left.mode=="push"){let o=this._left._getWidth();e+=o,n-=o}}if(this._right&&this._right.opened){if(this._right.mode=="side")n+=this._right._getWidth();else if(this._right.mode=="push"){let o=this._right._getWidth();n+=o,e-=o}}e=e||null,n=n||null,(e!==this._contentMargins.left||n!==this._contentMargins.right)&&(this._contentMargins={left:e,right:n},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(e){e._animationStarted.pipe(ye(this._drawers.changes)).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),e.mode!=="side"&&e.openedChange.pipe(ye(this._drawers.changes)).subscribe(()=>this._setContainerClass(e.opened))}_watchDrawerPosition(e){e.onPositionChanged.pipe(ye(this._drawers.changes)).subscribe(()=>{Ct({read:()=>this._validateDrawers()},{injector:this._injector})})}_watchDrawerMode(e){e._modeChanged.pipe(ye(ft(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(e){let n=this._element.nativeElement.classList,o="mat-drawer-container-has-open";e?n.add(o):n.remove(o)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(e=>{e.position=="end"?(this._end!=null,this._end=e):(this._start!=null,this._start=e)}),this._right=this._left=null,this._dir&&this._dir.value==="rtl"?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&this._start.mode!="over"||this._isDrawerOpen(this._end)&&this._end.mode!="over"}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(e=>e&&!e.disableClose&&this._drawerHasBackdrop(e)).forEach(e=>e._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._drawerHasBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._drawerHasBackdrop(this._end)}_isDrawerOpen(e){return e!=null&&e.opened}_drawerHasBackdrop(e){return this._backdropOverride==null?!!e&&e.mode!=="side":this._backdropOverride}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-drawer-container"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,eh,5),Ee(r,Db,5)),n&2){let a;U(a=$())&&(o._content=a.first),U(a=$())&&(o._allDrawers=a)}},viewQuery:function(n,o){if(n&1&&ue(eh,5),n&2){let r;U(r=$())&&(o._userContent=r.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[de([{provide:kb,useExisting:t}])],ngContentSelectors:Kae,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(De(Qae),E(0,Xae,1,2,"div",0),ae(1),ae(2,1),E(3,Zae,2,0,"mat-drawer-content")),n&2&&(I(o.hasBackdrop?0:-1),p(3),I(o._content?-1:3))},dependencies:[eh],styles:[`.mat-drawer-container{position:relative;z-index:1;color:var(--mat-sidenav-content-text-color, var(--mat-sys-on-background));background-color:var(--mat-sidenav-content-background-color, var(--mat-sys-background));box-sizing:border-box;display:block;overflow:hidden}.mat-drawer-container[fullscreen]{top:0;left:0;right:0;bottom:0;position:absolute}.mat-drawer-container[fullscreen].mat-drawer-container-has-open{overflow:hidden}.mat-drawer-container.mat-drawer-container-explicit-backdrop .mat-drawer-side{z-index:3}.mat-drawer-container.ng-animate-disabled .mat-drawer-backdrop,.mat-drawer-container.ng-animate-disabled .mat-drawer-content,.ng-animate-disabled .mat-drawer-container .mat-drawer-backdrop,.ng-animate-disabled .mat-drawer-container .mat-drawer-content{transition:none}.mat-drawer-backdrop{top:0;left:0;right:0;bottom:0;position:absolute;display:block;z-index:3;visibility:hidden}.mat-drawer-backdrop.mat-drawer-shown{visibility:visible;background-color:var(--mat-sidenav-scrim-color, color-mix(in srgb, var(--mat-sys-neutral-variant20) 40%, transparent))}.mat-drawer-transition .mat-drawer-backdrop{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:background-color,visibility}@media(forced-colors: active){.mat-drawer-backdrop{opacity:.5}}.mat-drawer-content{position:relative;z-index:1;display:block;height:100%;overflow:auto}.mat-drawer-content.mat-drawer-content-hidden{opacity:0}.mat-drawer-transition .mat-drawer-content{transition-duration:400ms;transition-timing-function:cubic-bezier(0.25, 0.8, 0.25, 1);transition-property:transform,margin-left,margin-right}.mat-drawer{position:relative;z-index:4;color:var(--mat-sidenav-container-text-color, var(--mat-sys-on-surface-variant));box-shadow:var(--mat-sidenav-container-elevation-shadow, none);background-color:var(--mat-sidenav-container-background-color, var(--mat-sys-surface));border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));width:var(--mat-sidenav-container-width, 360px);display:block;position:absolute;top:0;bottom:0;z-index:3;outline:0;box-sizing:border-box;overflow-y:auto;transform:translate3d(-100%, 0, 0)}@media(forced-colors: active){.mat-drawer,[dir=rtl] .mat-drawer.mat-drawer-end{border-right:solid 1px currentColor}}@media(forced-colors: active){[dir=rtl] .mat-drawer,.mat-drawer.mat-drawer-end{border-left:solid 1px currentColor;border-right:none}}.mat-drawer.mat-drawer-side{z-index:2}.mat-drawer.mat-drawer-end{right:0;transform:translate3d(100%, 0, 0);border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0}[dir=rtl] .mat-drawer{border-top-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-left-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-right-radius:0;border-bottom-right-radius:0;transform:translate3d(100%, 0, 0)}[dir=rtl] .mat-drawer.mat-drawer-end{border-top-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-bottom-right-radius:var(--mat-sidenav-container-shape, var(--mat-sys-corner-large));border-top-left-radius:0;border-bottom-left-radius:0;left:0;right:auto;transform:translate3d(-100%, 0, 0)}.mat-drawer-transition .mat-drawer{transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating){visibility:hidden;box-shadow:none}.mat-drawer:not(.mat-drawer-opened):not(.mat-drawer-animating) .mat-drawer-inner-container{display:none}.mat-drawer.mat-drawer-opened.mat-drawer-opened{transform:none}.mat-drawer-side{box-shadow:none;border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid}.mat-drawer-side.mat-drawer-end{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side{border-left-color:var(--mat-sidenav-container-divider-color, transparent);border-left-width:1px;border-left-style:solid;border-right:none}[dir=rtl] .mat-drawer-side.mat-drawer-end{border-right-color:var(--mat-sidenav-container-divider-color, transparent);border-right-width:1px;border-right-style:solid;border-left:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto}.mat-sidenav-fixed{position:fixed}
+`],encapsulation:2,changeDetection:0})}return t})(),Pz=(()=>{class t extends eh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],features:[de([{provide:Ar,useExisting:t}]),ce],ngContentSelectors:th,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),ase=(()=>{class t extends Db{get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(e){this._fixedInViewport=yn(e)}_fixedInViewport=!1;get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(e){this._fixedTopGap=vn(e)}_fixedTopGap=0;get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(e){this._fixedBottomGap=vn(e)}_fixedBottomGap=0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav"]],hostAttrs:[1,"mat-drawer","mat-sidenav"],hostVars:16,hostBindings:function(n,o){n&2&&(ne("tabIndex",o.mode!=="side"?"-1":null)("align",null),At("top",o.fixedInViewport?o.fixedTopGap:null,"px")("bottom",o.fixedInViewport?o.fixedBottomGap:null,"px"),oe("mat-drawer-end",o.position==="end")("mat-drawer-over",o.mode==="over")("mat-drawer-push",o.mode==="push")("mat-drawer-side",o.mode==="side")("mat-sidenav-fixed",o.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[de([{provide:Db,useExisting:t}]),ce],ngContentSelectors:th,decls:3,vars:0,consts:[["content",""],["cdkScrollable","",1,"mat-drawer-inner-container"]],template:function(n,o){n&1&&(De(),h(0,"div",1,0),ae(2),_())},dependencies:[Ar],encapsulation:2,changeDetection:0})}return t})(),vUe=(()=>{class t extends Sb{_allDrawers=void 0;_content=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-sidenav-container"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,Pz,5),Ee(r,ase,5)),n&2){let a;U(a=$())&&(o._content=a.first),U(a=$())&&(o._allDrawers=a)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mat-drawer-container-explicit-backdrop",o._backdropOverride)},exportAs:["matSidenavContainer"],features:[de([{provide:kb,useExisting:t},{provide:Sb,useExisting:t}]),ce],ngContentSelectors:ese,decls:4,vars:2,consts:[[1,"mat-drawer-backdrop",3,"mat-drawer-shown"],[1,"mat-drawer-backdrop",3,"click"]],template:function(n,o){n&1&&(De(Jae),E(0,tse,1,2,"div",0),ae(1),ae(2,1),E(3,nse,2,0,"mat-sidenav-content")),n&2&&(I(o.hasBackdrop?0:-1),p(3),I(o._content?-1:3))},dependencies:[Pz],styles:[ise],encapsulation:2,changeDetection:0})}return t})(),Lz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,xi,xi,fe]})}return t})();var sse=["switch"],cse=["*"];function lse(t,i){t&1&&(h(0,"span",11),$t(),h(1,"svg",13),F(2,"path",14),_(),h(3,"svg",15),F(4,"path",16),_()())}var dse=new L("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1,hideIcon:!1,disabledInteractive:!1})}),nh=class{source;checked;constructor(i,e){this.source=i,this.checked=e}},use=(()=>{class t{_elementRef=d(Q);_focusMonitor=d(sn);_changeDetectorRef=d(xe);defaults=d(dse);_onChange=e=>{};_onTouched=()=>{};_validatorOnChange=()=>{};_uniqueId;_checked=!1;_createChangeEvent(e){return new nh(this,e)}_labelId;get buttonId(){return`${this.id||this._uniqueId}-button`}_switchElement;focus(){this._switchElement.nativeElement.focus()}_noopAnimations=Ue();_focused;name=null;id;labelPosition="after";ariaLabel=null;ariaLabelledby=null;ariaDescribedby;required;color;disabled=!1;disableRipple=!1;tabIndex=0;get checked(){return this._checked}set checked(e){this._checked=e,this._changeDetectorRef.markForCheck()}hideIcon;disabledInteractive;change=new j;toggleChange=new j;get inputId(){return`${this.id||this._uniqueId}-input`}constructor(){d(at).load(cn);let e=d(new dn("tabindex"),{optional:!0}),n=this.defaults;this.tabIndex=e==null?0:parseInt(e)||0,this.color=n.color||"accent",this.id=this._uniqueId=d(He).getId("mat-mdc-slide-toggle-"),this.hideIcon=n.hideIcon??!1,this.disabledInteractive=n.disabledInteractive??!1,this._labelId=this._uniqueId+"-label"}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(e=>{e==="keyboard"||e==="program"?(this._focused=!0,this._changeDetectorRef.markForCheck()):e||Promise.resolve().then(()=>{this._focused=!1,this._onTouched(),this._changeDetectorRef.markForCheck()})})}ngOnChanges(e){e.required&&this._validatorOnChange()}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}writeValue(e){this.checked=!!e}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorOnChange=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck()}toggle(){this.checked=!this.checked,this._onChange(this.checked)}_emitChangeEvent(){this._onChange(this.checked),this.change.emit(this._createChangeEvent(this.checked))}_handleClick(){this.disabled||(this.toggleChange.emit(),this.defaults.disableToggleValue||(this.checked=!this.checked,this._onChange(this.checked),this.change.emit(new nh(this,this.checked))))}_getAriaLabelledBy(){return this.ariaLabelledby?this.ariaLabelledby:this.ariaLabel?null:this._labelId}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-slide-toggle"]],viewQuery:function(n,o){if(n&1&&ue(sse,5),n&2){let r;U(r=$())&&(o._switchElement=r.first)}},hostAttrs:[1,"mat-mdc-slide-toggle"],hostVars:13,hostBindings:function(n,o){n&2&&(Lt("id",o.id),ne("tabindex",null)("aria-label",null)("name",null)("aria-labelledby",null),Tt(o.color?"mat-"+o.color:""),oe("mat-mdc-slide-toggle-focused",o._focused)("mat-mdc-slide-toggle-checked",o.checked)("_mat-animation-noopable",o._noopAnimations))},inputs:{name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],required:[2,"required","required",H],color:"color",disabled:[2,"disabled","disabled",H],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],checked:[2,"checked","checked",H],hideIcon:[2,"hideIcon","hideIcon",H],disabledInteractive:[2,"disabledInteractive","disabledInteractive",H]},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[de([{provide:di,useExisting:kt(()=>t),multi:!0},{provide:Ci,useExisting:t,multi:!0}]),Re],ngContentSelectors:cse,decls:14,vars:27,consts:[["switch",""],["mat-internal-form-field","",3,"labelPosition"],["role","switch","type","button",1,"mdc-switch",3,"click","tabIndex","disabled"],[1,"mat-mdc-slide-toggle-touch-target"],[1,"mdc-switch__track"],[1,"mdc-switch__handle-track"],[1,"mdc-switch__handle"],[1,"mdc-switch__shadow"],[1,"mdc-elevation-overlay"],[1,"mdc-switch__ripple"],["mat-ripple","",1,"mat-mdc-slide-toggle-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-switch__icons"],[1,"mdc-label",3,"click","for"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--on"],["d","M19.69,5.23L8.96,15.96l-4.23-4.23L2.96,13.5l6,6L21.46,7L19.69,5.23z"],["viewBox","0 0 24 24","aria-hidden","true",1,"mdc-switch__icon","mdc-switch__icon--off"],["d","M20 13H4v-2h16v2z"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",1)(1,"button",2,0),N("click",function(){return G(r),W(o._handleClick())}),F(3,"div",3)(4,"span",4),h(5,"span",5)(6,"span",6)(7,"span",7),F(8,"span",8),_(),h(9,"span",9),F(10,"span",10),_(),E(11,lse,5,0,"span",11),_()()(),h(12,"label",12),N("click",function(s){return G(r),W(s.stopPropagation())}),ae(13),_()()}if(n&2){let r=Nt(2);D("labelPosition",o.labelPosition),p(),oe("mdc-switch--selected",o.checked)("mdc-switch--unselected",!o.checked)("mdc-switch--checked",o.checked)("mdc-switch--disabled",o.disabled)("mat-mdc-slide-toggle-disabled-interactive",o.disabledInteractive),D("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex)("disabled",o.disabled&&!o.disabledInteractive),ne("id",o.buttonId)("name",o.name)("aria-label",o.ariaLabel)("aria-labelledby",o._getAriaLabelledBy())("aria-describedby",o.ariaDescribedby)("aria-required",o.required||null)("aria-checked",o.checked)("aria-disabled",o.disabled&&o.disabledInteractive?"true":null),p(9),D("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),p(),I(o.hideIcon?-1:11),p(),D("for",o.buttonId),ne("id",o._labelId)}},dependencies:[mi,Q1],styles:[`.mdc-switch{align-items:center;background:none;border:none;cursor:pointer;display:inline-flex;flex-shrink:0;margin:0;outline:none;overflow:visible;padding:0;position:relative;width:var(--mat-slide-toggle-track-width, 52px)}.mdc-switch.mdc-switch--disabled{cursor:default;pointer-events:none}.mdc-switch.mat-mdc-slide-toggle-disabled-interactive{pointer-events:auto}.mdc-switch__track{overflow:hidden;position:relative;width:100%;height:var(--mat-slide-toggle-track-height, 32px);border-radius:var(--mat-slide-toggle-track-shape, var(--mat-sys-corner-full))}.mdc-switch--disabled.mdc-switch .mdc-switch__track{opacity:var(--mat-slide-toggle-disabled-track-opacity, 0.12)}.mdc-switch__track::before,.mdc-switch__track::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";height:100%;left:0;position:absolute;width:100%;border-width:var(--mat-slide-toggle-track-outline-width, 2px);border-color:var(--mat-slide-toggle-track-outline-color, var(--mat-sys-outline))}.mdc-switch--selected .mdc-switch__track::before,.mdc-switch--selected .mdc-switch__track::after{border-width:var(--mat-slide-toggle-selected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-selected-track-outline-color, transparent)}.mdc-switch--disabled .mdc-switch__track::before,.mdc-switch--disabled .mdc-switch__track::after{border-width:var(--mat-slide-toggle-disabled-unselected-track-outline-width, 2px);border-color:var(--mat-slide-toggle-disabled-unselected-track-outline-color, var(--mat-sys-on-surface))}@media(forced-colors: active){.mdc-switch__track{border-color:currentColor}}.mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0, 0, 0.2, 1);transform:translateX(0);background:var(--mat-slide-toggle-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__track::before{transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.6, 1);transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch--selected .mdc-switch__track::before{transform:translateX(-100%)}.mdc-switch--selected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::before{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-hover-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-focus-track-color, var(--mat-sys-surface-variant))}.mdc-switch:enabled:active .mdc-switch__track::before{background:var(--mat-slide-toggle-unselected-pressed-track-color, var(--mat-sys-surface-variant))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::before,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::before,.mdc-switch.mdc-switch--disabled .mdc-switch__track::before{background:var(--mat-slide-toggle-disabled-unselected-track-color, var(--mat-sys-surface-variant))}.mdc-switch__track::after{transform:translateX(-100%);background:var(--mat-slide-toggle-selected-track-color, var(--mat-sys-primary))}[dir=rtl] .mdc-switch__track::after{transform:translateX(100%)}.mdc-switch--selected .mdc-switch__track::after{transform:translateX(0)}.mdc-switch--selected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-visible-track-opacity, 1);transition:var(--mat-slide-toggle-visible-track-transition, opacity 75ms)}.mdc-switch--unselected .mdc-switch__track::after{opacity:var(--mat-slide-toggle-hidden-track-opacity, 0);transition:var(--mat-slide-toggle-hidden-track-transition, opacity 75ms)}.mdc-switch:enabled:hover:not(:focus):not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-hover-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:focus:not(:active) .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-focus-track-color, var(--mat-sys-primary))}.mdc-switch:enabled:active .mdc-switch__track::after{background:var(--mat-slide-toggle-selected-pressed-track-color, var(--mat-sys-primary))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__track::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__track::after,.mdc-switch.mdc-switch--disabled .mdc-switch__track::after{background:var(--mat-slide-toggle-disabled-selected-track-color, var(--mat-sys-on-surface))}.mdc-switch__handle-track{height:100%;pointer-events:none;position:absolute;top:0;transition:transform 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);left:0;right:auto;transform:translateX(0);width:calc(100% - var(--mat-slide-toggle-handle-width))}[dir=rtl] .mdc-switch__handle-track{left:auto;right:0}.mdc-switch--selected .mdc-switch__handle-track{transform:translateX(100%)}[dir=rtl] .mdc-switch--selected .mdc-switch__handle-track{transform:translateX(-100%)}.mdc-switch__handle{display:flex;pointer-events:auto;position:absolute;top:50%;transform:translateY(-50%);left:0;right:auto;transition:width 75ms cubic-bezier(0.4, 0, 0.2, 1),height 75ms cubic-bezier(0.4, 0, 0.2, 1),margin 75ms cubic-bezier(0.4, 0, 0.2, 1);width:var(--mat-slide-toggle-handle-width);height:var(--mat-slide-toggle-handle-height);border-radius:var(--mat-slide-toggle-handle-shape, var(--mat-sys-corner-full))}[dir=rtl] .mdc-switch__handle{left:auto;right:0}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle{width:var(--mat-slide-toggle-unselected-handle-size, 16px);height:var(--mat-slide-toggle-unselected-handle-size, 16px);margin:var(--mat-slide-toggle-unselected-handle-horizontal-margin, 0 8px)}.mat-mdc-slide-toggle .mdc-switch--unselected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-unselected-with-icon-handle-horizontal-margin, 0 4px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle{width:var(--mat-slide-toggle-selected-handle-size, 24px);height:var(--mat-slide-toggle-selected-handle-size, 24px);margin:var(--mat-slide-toggle-selected-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch--selected .mdc-switch__handle:has(.mdc-switch__icons){margin:var(--mat-slide-toggle-selected-with-icon-handle-horizontal-margin, 0 24px)}.mat-mdc-slide-toggle .mdc-switch__handle:has(.mdc-switch__icons){width:var(--mat-slide-toggle-with-icon-handle-size, 24px);height:var(--mat-slide-toggle-with-icon-handle-size, 24px)}.mat-mdc-slide-toggle .mdc-switch:active:not(.mdc-switch--disabled) .mdc-switch__handle{width:var(--mat-slide-toggle-pressed-handle-size, 28px);height:var(--mat-slide-toggle-pressed-handle-size, 28px)}.mat-mdc-slide-toggle .mdc-switch--selected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-selected-pressed-handle-horizontal-margin, 0 22px)}.mat-mdc-slide-toggle .mdc-switch--unselected:active:not(.mdc-switch--disabled) .mdc-switch__handle{margin:var(--mat-slide-toggle-unselected-pressed-handle-horizontal-margin, 0 2px)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-selected-handle-opacity, 1)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__handle::after{opacity:var(--mat-slide-toggle-disabled-unselected-handle-opacity, 0.38)}.mdc-switch__handle::before,.mdc-switch__handle::after{border:1px solid rgba(0,0,0,0);border-radius:inherit;box-sizing:border-box;content:"";width:100%;height:100%;left:0;position:absolute;top:0;transition:background-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1),border-color 75ms 0ms cubic-bezier(0.4, 0, 0.2, 1);z-index:-1}@media(forced-colors: active){.mdc-switch__handle::before,.mdc-switch__handle::after{border-color:currentColor}}.mdc-switch--selected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-handle-color, var(--mat-sys-on-primary))}.mdc-switch--selected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-hover-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-focus-handle-color, var(--mat-sys-primary-container))}.mdc-switch--selected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-selected-pressed-handle-color, var(--mat-sys-primary-container))}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:hover:not(:focus):not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:focus:not(:active) .mdc-switch__handle::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled.mdc-switch--selected:active .mdc-switch__handle::after,.mdc-switch--selected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-selected-handle-color, var(--mat-sys-surface))}.mdc-switch--unselected:enabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-handle-color, var(--mat-sys-outline))}.mdc-switch--unselected:enabled:hover:not(:focus):not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-hover-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:focus:not(:active) .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-focus-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected:enabled:active .mdc-switch__handle::after{background:var(--mat-slide-toggle-unselected-pressed-handle-color, var(--mat-sys-on-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__handle::after{background:var(--mat-slide-toggle-disabled-unselected-handle-color, var(--mat-sys-on-surface))}.mdc-switch__handle::before{background:var(--mat-slide-toggle-handle-surface-color)}.mdc-switch__shadow{border-radius:inherit;bottom:0;left:0;position:absolute;right:0;top:0}.mdc-switch:enabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-handle-elevation-shadow)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:hover:not(:focus):not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:focus:not(:active) .mdc-switch__shadow,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:active .mdc-switch__shadow,.mdc-switch.mdc-switch--disabled .mdc-switch__shadow{box-shadow:var(--mat-slide-toggle-disabled-handle-elevation-shadow)}.mdc-switch__ripple{left:50%;position:absolute;top:50%;transform:translate(-50%, -50%);z-index:-1;width:var(--mat-slide-toggle-state-layer-size, 40px);height:var(--mat-slide-toggle-state-layer-size, 40px)}.mdc-switch__ripple::after{content:"";opacity:0}.mdc-switch--disabled .mdc-switch__ripple::after{display:none}.mat-mdc-slide-toggle-disabled-interactive .mdc-switch__ripple::after{display:block}.mdc-switch:hover .mdc-switch__ripple::after{transition:75ms opacity cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:focus .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:active .mdc-switch__ripple::after,.mat-mdc-slide-toggle-disabled-interactive.mdc-switch--disabled:enabled:hover:not(:focus) .mdc-switch__ripple::after,.mdc-switch--unselected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--unselected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--unselected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-unselected-pressed-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mat-slide-toggle-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch--selected:enabled:hover:not(:focus) .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-hover-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-switch--selected:enabled:focus .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-focus-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-switch--selected:enabled:active .mdc-switch__ripple::after{background:var(--mat-slide-toggle-selected-pressed-state-layer-color, var(--mat-sys-primary));opacity:var(--mat-slide-toggle-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));transition:opacity 75ms linear}.mdc-switch__icons{position:relative;height:100%;width:100%;z-index:1;transform:translateZ(0)}.mdc-switch--disabled.mdc-switch--unselected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-unselected-icon-opacity, 0.38)}.mdc-switch--disabled.mdc-switch--selected .mdc-switch__icons{opacity:var(--mat-slide-toggle-disabled-selected-icon-opacity, 0.38)}.mdc-switch__icon{bottom:0;left:0;margin:auto;position:absolute;right:0;top:0;opacity:0;transition:opacity 30ms 0ms cubic-bezier(0.4, 0, 1, 1)}.mdc-switch--unselected .mdc-switch__icon{width:var(--mat-slide-toggle-unselected-icon-size, 16px);height:var(--mat-slide-toggle-unselected-icon-size, 16px);fill:var(--mat-slide-toggle-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--unselected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-unselected-icon-color, var(--mat-sys-surface-variant))}.mdc-switch--selected .mdc-switch__icon{width:var(--mat-slide-toggle-selected-icon-size, 16px);height:var(--mat-slide-toggle-selected-icon-size, 16px);fill:var(--mat-slide-toggle-selected-icon-color, var(--mat-sys-on-primary-container))}.mdc-switch--selected.mdc-switch--disabled .mdc-switch__icon{fill:var(--mat-slide-toggle-disabled-selected-icon-color, var(--mat-sys-on-surface))}.mdc-switch--selected .mdc-switch__icon--on,.mdc-switch--unselected .mdc-switch__icon--off{opacity:1;transition:opacity 45ms 30ms cubic-bezier(0, 0, 0.2, 1)}.mat-mdc-slide-toggle{-webkit-user-select:none;user-select:none;display:inline-block;-webkit-tap-highlight-color:rgba(0,0,0,0);outline:0}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple,.mat-mdc-slide-toggle .mdc-switch__ripple::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-slide-toggle .mat-mdc-slide-toggle-ripple:not(:empty),.mat-mdc-slide-toggle .mdc-switch__ripple::after:not(:empty){transform:translateZ(0)}.mat-mdc-slide-toggle.mat-mdc-slide-toggle-focused .mat-focus-indicator::before{content:""}.mat-mdc-slide-toggle .mat-internal-form-field{color:var(--mat-slide-toggle-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-slide-toggle-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-slide-toggle-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-slide-toggle-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-slide-toggle-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-slide-toggle-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-slide-toggle .mat-ripple-element{opacity:.12}.mat-mdc-slide-toggle .mat-focus-indicator::before{border-radius:50%}.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle-track,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__icon,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__handle::after,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::before,.mat-mdc-slide-toggle._mat-animation-noopable .mdc-switch__track::after{transition:none}.mat-mdc-slide-toggle .mdc-switch:enabled+.mdc-label{cursor:pointer}.mat-mdc-slide-toggle .mdc-switch--disabled+label{color:var(--mat-slide-toggle-disabled-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-slide-toggle-touch-target{position:absolute;top:50%;left:50%;height:var(--mat-slide-toggle-touch-target-size, 48px);width:100%;transform:translate(-50%, -50%);display:var(--mat-slide-toggle-touch-target-display, block)}[dir=rtl] .mat-mdc-slide-toggle-touch-target{left:auto;right:50%;transform:translate(50%, -50%)}
+`],encapsulation:2,changeDetection:0})}return t})(),Az=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[use,fe,fe]})}return t})();var zz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,wi]})}return t})();function mse(t,i){if(t&1){let e=le();h(0,"div",1)(1,"button",2),N("click",function(){G(e);let o=M();return W(o.action())}),y(2),_()()}if(t&2){let e=M();p(2),ee(" ",e.data.action," ")}}var pse=["label"];function fse(t,i){}var hse=Math.pow(2,31)-1,wu=class{_overlayRef;instance;containerInstance;_afterDismissed=new B;_afterOpened=new B;_onAction=new B;_durationTimeoutId;_dismissedByAction=!1;constructor(i,e){this._overlayRef=e,this.containerInstance=i,i._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(i){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(i,hse))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},Rz=new L("MatSnackBarData"),A2=class{politeness="polite";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},gse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return t})(),_se=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return t})(),bse=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return t})(),Nz=(()=>{class t{snackBarRef=d(wu);data=d(Rz);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["matButton","","matSnackBarAction","",3,"click"]],template:function(n,o){n&1&&(h(0,"div",0),y(1),_(),E(2,mse,3,1,"div",1)),n&2&&(p(),ee(" ",o.data.message,`
 `),p(),I(o.hasAction?2:-1))},dependencies:[vt,gse,_se,bse],styles:[`.mat-mdc-simple-snack-bar{display:flex}.mat-mdc-simple-snack-bar .mat-mdc-snack-bar-label{max-height:50vh;overflow:auto}
-`],encapsulation:2,changeDetection:0})}return t})(),Eb="_mat-snack-bar-enter",Ib="_mat-snack-bar-exit",vse=(()=>{class t extends Qs{_ngZone=d(se);_elementRef=d(Q);_changeDetectorRef=d(xe);_platform=d(je);_animationsDisabled=Ue();snackBarConfig=d(A2);_document=d(Me);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=d(be);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new B;_onExit=new B;_onEnter=new B;_animationState="void";_live;_label;_role;_liveElementId=d(He).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===Ib?this._completeExit():e===Eb&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Ct(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Eb)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(Eb)},200)))}exit(){return this._destroyed?re(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Ct(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Ib)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(Ib),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(ue(Mi,7),ue(pse,7)),n&2){let r;U(r=$())&&(o._portalOutlet=r.first),U(r=$())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&N("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&oe("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[ce],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),ot(4,fse,0,0,"ng-template",4),_(),F(5,"div"),_()()),n&2&&(p(5),te("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Mi],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
-`],encapsulation:2})}return t})();function yse(){return new A2}var Cse=new L("mat-snack-bar-default-options",{providedIn:"root",factory:yse}),xse=(()=>{class t{_live=d(w0);_injector=d(be);_breakpointObserver=d(Xc);_parentSnackBar=d(t,{optional:!0,skipSelf:!0});_defaultConfig=d(Cse);_animationsDisabled=Ue();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Nz;snackBarContainerComponent=vse;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=q(q({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=be.create({parent:o||this._injector,providers:[{provide:A2,useValue:n}]}),a=new yo(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=q(q(q({},new A2),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new wu(a,r);if(e instanceof tt){let c=new Wn(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{let c=this._createInjector(o,s),m=new yo(e,void 0,c),f=a.attachComponentPortal(m);s.instance=f.instance}return this._breakpointObserver.observe(xp.HandsetPortrait).pipe(ye(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new co;n.direction=e.direction;let o=ga(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,lo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return be.create({parent:o||this._injector,providers:[{provide:wu,useValue:n},{provide:Rz,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Fz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[xse],imports:[Ei,so,_a,fe,Nz,fe]})}return t})();var Mse=["mat-sort-header",""],wse=["*"];function Dse(t,i){t&1&&(nt(0,"div",2),$t(),nt(1,"svg",3),Tn(2,"path",4),rt()())}var Vz=new L("MAT_SORT_DEFAULT_OPTIONS"),oh=(()=>{class t{_defaultOptions;_initializedStream=new pr(1);sortables=new Map;_stateChanges=new B;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new j;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=Sse(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(Ce(Vz,8))};static \u0275dir=z({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",H],disabled:[2,"matSortDisabled","disabled",H]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Re]})}return t})();function Sse(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var ih=(()=>{class t{changes=new B;static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kse(t){return t||new ih}var Ese={provide:ih,deps:[[new Xo,new oa,ih]],useFactory:kse},Bz=(()=>{class t{_intl=d(ih);_sort=d(oh,{optional:!0});_columnDef=d("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=d(xe);_focusMonitor=d(sn);_elementRef=d(Q);_ariaDescriber=d(Y1,{optional:!0});_renderChanges;_animationsDisabled=Ue();_recentlyCleared=we(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){d(at).load(cn);let e=d(Vz,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=ft(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&N("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(te("aria-sort",o._getAriaSortAttribute()),oe("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",H],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",H]},exportAs:["matSortHeader"],attrs:Mse,ngContentSelectors:wse,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(De(),nt(0,"div",0)(1,"div",1),ae(2),rt(),E(3,Dse,3,0,"div",2),rt()),n&2&&(oe("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),te("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),p(3),I(o._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
-`],encapsulation:2,changeDetection:0})}return t})(),jz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Ese],imports:[fe]})}return t})();var Ise=(t,i,e)=>({index:t,active:i,optional:e});function Ose(t,i){if(t&1&&Vt(0,2),t&2){let e=w();D("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",k5(2,Ise,e.index,e.active,e.optional))}}function Tse(t,i){if(t&1&&(h(0,"span",7),y(1),_()),t&2){let e=w(2);p(),T(e._getDefaultTextForState(e.state))}}function Pse(t,i){if(t&1&&(h(0,"span",8),y(1),_()),t&2){let e=w(3);p(),T(e._intl.completedLabel)}}function Lse(t,i){if(t&1&&(h(0,"span",8),y(1),_()),t&2){let e=w(3);p(),T(e._intl.editableLabel)}}function Ase(t,i){if(t&1&&(E(0,Pse,2,1,"span",8)(1,Lse,2,1,"span",8),h(2,"mat-icon",7),y(3),_()),t&2){let e=w(2);I(e.state==="done"?0:e.state==="edit"?1:-1),p(3),T(e._getDefaultTextForState(e.state))}}function zse(t,i){if(t&1&&E(0,Tse,2,1,"span",7)(1,Ase,4,2),t&2){let e,n=w();I((e=n.state)==="number"?0:1)}}function Rse(t,i){t&1&&(h(0,"div",4),Vt(1,9),_()),t&2&&(p(),D("ngTemplateOutlet",i.template))}function Nse(t,i){if(t&1&&(h(0,"div",4),y(1),_()),t&2){let e=w();p(),T(e.label)}}function Fse(t,i){if(t&1&&(h(0,"div",5),y(1),_()),t&2){let e=w();p(),T(e._intl.optionalLabel)}}function Vse(t,i){if(t&1&&(h(0,"div",6),y(1),_()),t&2){let e=w();p(),T(e.errorMessage)}}var Hz=["*"];function Bse(t,i){}function jse(t,i){if(t&1&&(ae(0),ot(1,Bse,0,0,"ng-template",0)),t&2){let e=w();p(),D("cdkPortalOutlet",e._portal)}}var Hse=["animatedContainer"],Uz=t=>({step:t});function Use(t,i){t&1&&ae(0)}function $se(t,i){t&1&&F(0,"div",7)}function Gse(t,i){if(t&1&&(Vt(0,6),E(1,$se,1,0,"div",7)),t&2){let e=i.$implicit,n=i.$index,o=i.$count;w(2);let r=Nt(4);D("ngTemplateOutlet",r)("ngTemplateOutletContext",Eo(3,Uz,e)),p(),I(n!==o-1?1:-1)}}function Wse(t,i){if(t&1&&(h(0,"div",8,1),Vt(2,9),_()),t&2){let e=i.$implicit,n=i.$index,o=w(2);Tt("mat-horizontal-stepper-content-"+o._getAnimationDirection(n)),D("id",o._getStepContentId(n)),te("aria-labelledby",o._getStepLabelId(n))("inert",o.selectedIndex===n?null:""),p(2),D("ngTemplateOutlet",e.content)}}function qse(t,i){if(t&1&&(h(0,"div",2)(1,"div",3),Xe(2,Gse,2,5,null,null,ht),_(),h(4,"div",4),Xe(5,Wse,3,6,"div",5,ht),_()()),t&2){let e=w();p(2),Ze(e.steps),p(3),Ze(e.steps)}}function Yse(t,i){if(t&1&&(h(0,"div",10),Vt(1,6),h(2,"div",11,1)(4,"div",12)(5,"div",13),Vt(6,9),_()()()()),t&2){let e=i.$implicit,n=i.$index,o=i.$index,r=i.$count,a=w(2),s=Nt(4);p(),D("ngTemplateOutlet",s)("ngTemplateOutletContext",Eo(10,Uz,e)),p(),oe("mat-stepper-vertical-line",o!==r-1)("mat-vertical-content-container-active",a.selectedIndex===n),te("inert",a.selectedIndex===n?null:""),p(2),D("id",a._getStepContentId(n)),te("aria-labelledby",a._getStepLabelId(n)),p(2),D("ngTemplateOutlet",e.content)}}function Qse(t,i){if(t&1&&Xe(0,Yse,7,12,"div",10,ht),t&2){let e=w();Ze(e.steps)}}function Kse(t,i){if(t&1){let e=le();h(0,"mat-step-header",14),N("click",function(){let o=G(e).step;return W(o.select())})("keydown",function(o){G(e);let r=w();return W(r._onKeydown(o))}),_()}if(t&2){let e=i.step,n=w();oe("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),D("tabIndex",n._getFocusIndex()===e.index()?0:-1)("id",n._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!e.isNavigable())("color",e.color||n.color),te("aria-posinset",e.index()+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var Ob=(()=>{class t extends vb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matStepLabel",""]],features:[ce]})}return t})(),rh=(()=>{class t{changes=new B;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xse(t){return t||new rh}var Zse={provide:rh,deps:[[new Xo,new oa,rh]],useFactory:Xse},Tb=(()=>{class t extends bb{_intl=d(rh);_focusMonitor=d(sn);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=d(at);e.load(cn),e.load(_o);let n=d(xe);this._intlSubscription=this._intl.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,n){e?this._focusMonitor.focusVia(this._elementRef,e,n):this._elementRef.nativeElement.focus(n)}_stringLabel(){return this.label instanceof Ob?null:this.label}_templateLabel(){return this.label instanceof Ob?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(n,o){n&2&&(Tt("mat-"+(o.color||"primary")),oe("mat-step-header-empty-label",o._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[ce],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(n,o){if(n&1&&(F(0,"div",0),h(1,"div")(2,"div",1),E(3,Ose,1,6,"ng-container",2)(4,zse,2,1),_()(),h(5,"div",3),E(6,Rse,2,1,"div",4)(7,Nse,2,1,"div",4),E(8,Fse,2,1,"div",5),E(9,Vse,2,1,"div",6),_()),n&2){let r;D("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),p(),Tt(Uc("mat-step-icon-state-",o.state," mat-step-icon")),oe("mat-step-icon-selected",o.selected),p(2),I(o.iconOverrides&&o.iconOverrides[o.state]?3:4),p(2),oe("mat-step-label-active",o.active)("mat-step-label-selected",o.selected)("mat-step-label-error",o.state=="error"),p(),I((r=o._templateLabel())?6:o._stringLabel()?7:-1,r),p(2),I(o._hasOptionalLabel()?8:-1),p(),I(o._hasErrorLabel()?9:-1)}},dependencies:[mi,Es,Co],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
-`],encapsulation:2,changeDetection:0})}return t})(),Jse=(()=>{class t{templateRef=d(tt);name;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),ece=(()=>{class t{_template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),tce=(()=>{class t extends Kf{_errorStateMatcher=d(ha,{skipSelf:!0});_viewContainerRef=d(dt);_isSelected=Se.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(lt(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),We(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Wn(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,n){let o=this._errorStateMatcher.isErrorState(e,n),r=!!(e&&e.invalid&&this.interacted);return o||r}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-step"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,Ob,5),Ee(r,ece,5)),n&2){let a;U(a=$())&&(o.stepLabel=a.first),U(a=$())&&(o._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[de([{provide:ha,useExisting:t},{provide:Kf,useExisting:t}]),ce],ngContentSelectors:Hz,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(De(),ot(0,jse,2,1,"ng-template"))},dependencies:[Mi],encapsulation:2,changeDetection:0})}return t})(),nce=(()=>{class t extends L2{_ngZone=d(se);_renderer=d(Ke);_animationsDisabled=Ue();_cleanupTransition;_isAnimating=we(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new In;_icons;animationDone=new j;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!d(je).isBrowser;constructor(){super();let n=d(Q).nativeElement.nodeName.toLowerCase();this.orientation=n==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:n})=>this._iconOverrides[e]=n),this.steps.changes.pipe(ye(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(ye(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(We(null),ye(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let n=e.target;if(!n)return;let o=this.orientation==="horizontal"&&e.propertyName==="transform"&&n.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&n.classList.contains("mat-vertical-content-container-active");(o||r)&&this._animatedContainers.find(s=>s.nativeElement===n)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,tce,5),Ee(r,Jse,5)),n&2){let a;U(a=$())&&(o._steps=a),U(a=$())&&(o._icons=a)}},viewQuery:function(n,o){if(n&1&&(ue(Tb,5),ue(Hse,5)),n&2){let r;U(r=$())&&(o._stepHeader=r),U(r=$())&&(o._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(n,o){n&2&&(te("aria-orientation",o.orientation),At("--mat-stepper-animation-duration",o._getAnimationDuration()),oe("mat-stepper-horizontal",o.orientation==="horizontal")("mat-stepper-vertical",o.orientation==="vertical")("mat-stepper-label-position-end",o.orientation==="horizontal"&&o.labelPosition=="end")("mat-stepper-label-position-bottom",o.orientation==="horizontal"&&o.labelPosition=="bottom")("mat-stepper-header-position-bottom",o.headerPosition==="bottom")("mat-stepper-animating",o._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[de([{provide:L2,useExisting:t}]),ce],ngContentSelectors:Hz,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(n,o){if(n&1&&(De(),E(0,Use,1,0),E(1,qse,7,0,"div",2)(2,Qse,2,0),ot(3,Kse,1,23,"ng-template",null,0,ks)),n&2){let r;I(o._isServer?0:-1),p(),I((r=o.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[Es,Tb],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
-`],encapsulation:2,changeDetection:0})}return t})(),$z=(()=>{class t extends nz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("type",o.type)},features:[ce]})}return t})(),Gz=(()=>{class t extends iz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("type",o.type)},features:[ce]})}return t})(),Wz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Zse,ha],imports:[fe,so,oz,Hf,wi,nce,Tb,fe]})}return t})();var ice=[[["caption"]],[["colgroup"],["col"]],"*"],oce=["caption","colgroup, col","*"];function rce(t,i){t&1&&ae(0,2)}function ace(t,i){t&1&&(h(0,"thead",0),Vt(1,1),_(),h(2,"tbody",0),Vt(3,2)(4,3),_(),h(5,"tfoot",0),Vt(6,4),_())}function sce(t,i){t&1&&Vt(0,1)(1,2)(2,3)(3,4)}var Vr=new L("CDK_TABLE");var ch=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),lh=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),dh=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),yl=(()=>{class t{_table=d(Vr,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,ch,5),Ee(r,lh,5),Ee(r,dh,5)),n&2){let a;U(a=$())&&(o.cell=a.first),U(a=$())&&(o.headerCell=a.first),U(a=$())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",H],stickyEnd:[2,"stickyEnd","stickyEnd",H]},features:[de([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),Du=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},Qz=(()=>{class t extends Du{constructor(){super(d(yl),d(Q))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ce]})}return t})(),Kz=(()=>{class t extends Du{constructor(){let e=d(yl),n=d(Q);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[ce]})}return t})(),Xz=(()=>{class t extends Du{constructor(){let e=d(yl),n=d(Q);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ce]})}return t})();var Lb=(()=>{class t{template=d(tt);_differs=d(Io);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Su?e.headerCell.template:this instanceof ku?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,features:[Re]})}return t})(),Su=(()=>{class t extends Lb{_table=d(Vr,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(tt),d(Io))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",H]},features:[ce,Re]})}return t})(),ku=(()=>{class t extends Lb{_table=d(Vr,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(tt),d(Io))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",H]},features:[ce,Re]})}return t})(),uh=(()=>{class t extends Lb{_table=d(Vr,{optional:!0});when;constructor(){super(d(tt),d(Io))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[ce]})}return t})(),rs=(()=>{class t{_viewContainer=d(dt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),Ab=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),zb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),Rb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),mh=(()=>{class t{templateRef=d(tt);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),qz=["top","bottom","left","right"],Pb=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));Ct({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(Y=>Y)||n.some(Y=>Y))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,c=this.direction==="rtl",m=c?"right":"left",f=c?"left":"right",v=e.lastIndexOf(!0),x=n.indexOf(!0),M,O,K;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),Ct({earlyRead:()=>{M=this._getCellWidths(a,o),O=this._getStickyStartColumnPositions(M,e),K=this._getStickyEndColumnPositions(M,n)},write:()=>{for(let Y of i)for(let Z=0;Z!!Y)&&(this._positionListener.stickyColumnsUpdated({sizes:v===-1?[]:M.slice(0,v+1).map((Y,Z)=>e[Z]?Y:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:x===-1?[]:M.slice(x).map((Y,Z)=>n[Z+x]?Y:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],c=[];Ct({earlyRead:()=>{for(let m=0,f=0;m{let m=r.lastIndexOf(!0);for(let f=0;f{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);qz.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of qz)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&cce(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function cce(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var sh=new L("CDK_SPL");var Nb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","rowOutlet",""]]})}return t})(),Fb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),Vb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),Bb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),jb=(()=>{class t{_differs=d(Io);_changeDetectorRef=d(xe);_elementRef=d(Q);_dir=d(bt,{optional:!0});_platform=d(je);_viewRepeater=d(_2);_viewportRuler=d(Gn);_stickyPositioningListener=d(sh,{optional:!0,skipSelf:!0});_document=d(Me);_data;_onDestroy=new B;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new j;viewChange=new ct({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=d(be);constructor(){d(new dn("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(ye(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),dl(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Ys.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=Yz(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=Yz(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],n=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let o=0;o{let s=o&&o.has(a)?o.get(a):[];if(s.length){let c=s.shift();return c.dataIndex=n,c}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ah(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=ah(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ah(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ah(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let c=!!s.getColumnsDiff();return a||c},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],dl(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;dl(this.dataSource)?e=this.dataSource.connect(this):ai(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=re(this.dataSource)),this._renderChangeSubscription=e.pipe(ye(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let c=this._columnDefsByName.get(s);return c}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))rs.mostRecentCellOutlet&&rs.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new Pb(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:re()).pipe(ye(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let c=0;c{class t extends Qs{_ngZone=d(se);_elementRef=d(Q);_changeDetectorRef=d(xe);_platform=d(je);_animationsDisabled=Ue();snackBarConfig=d(A2);_document=d(Me);_trackedModals=new Set;_enterFallback;_exitFallback;_injector=d(be);_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new B;_onExit=new B;_onEnter=new B;_animationState="void";_live;_label;_role;_liveElementId=d(He).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert"))}attachComponentPortal(e){this._assertNotAttached();let n=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),n}attachTemplatePortal(e){this._assertNotAttached();let n=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),n}attachDomPortal=e=>{this._assertNotAttached();let n=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),n};onAnimationEnd(e){e===Ib?this._completeExit():e===Eb&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?Ct(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Eb)))},{injector:this._injector}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(Eb)},200)))}exit(){return this._destroyed?re(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?Ct(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Ib)))},{injector:this._injector}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(Ib),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,n=this.snackBarConfig.panelClass;n&&(Array.isArray(n)?n.forEach(a=>e.classList.add(a)):e.classList.add(n)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,n=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let n=e.getAttribute("aria-owns");if(n){let o=n.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,n=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(n&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&n.contains(document.activeElement)&&(r=document.activeElement),n.removeAttribute("aria-hidden"),o.appendChild(n),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-snack-bar-container"]],viewQuery:function(n,o){if(n&1&&(ue(Mi,7),ue(pse,7)),n&2){let r;U(r=$())&&(o._portalOutlet=r.first),U(r=$())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(n,o){n&1&&N("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),n&2&&oe("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[ce],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2,0)(3,"div",3),ot(4,fse,0,0,"ng-template",4),_(),F(5,"div"),_()()),n&2&&(p(5),ne("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Mi],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mat-snack-bar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mat-snack-bar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-snack-bar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mat-snack-bar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-snack-bar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mat-snack-bar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mat-snack-bar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-button-text-state-layer-color: currentColor;--mat-button-text-ripple-color: currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1}
+`],encapsulation:2})}return t})();function yse(){return new A2}var Cse=new L("mat-snack-bar-default-options",{providedIn:"root",factory:yse}),xse=(()=>{class t{_live=d(w0);_injector=d(be);_breakpointObserver=d(Xc);_parentSnackBar=d(t,{optional:!0,skipSelf:!0});_defaultConfig=d(Cse);_animationsDisabled=Ue();_snackBarRefAtThisLevel=null;simpleSnackBarComponent=Nz;snackBarContainerComponent=vse;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,n){return this._attach(e,n)}openFromTemplate(e,n){return this._attach(e,n)}open(e,n="",o){let r=q(q({},this._defaultConfig),o);return r.data={message:e,action:n},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,n){let o=n&&n.viewContainerRef&&n.viewContainerRef.injector,r=be.create({parent:o||this._injector,providers:[{provide:A2,useValue:n}]}),a=new yo(this.snackBarContainerComponent,n.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=n,s.instance}_attach(e,n){let o=q(q(q({},new A2),this._defaultConfig),n),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new wu(a,r);if(e instanceof tt){let c=new Wn(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(c)}else{let c=this._createInjector(o,s),m=new yo(e,void 0,c),f=a.attachComponentPortal(m);s.instance=f.instance}return this._breakpointObserver.observe(xp.HandsetPortrait).pipe(ye(r.detachments())).subscribe(c=>{r.overlayElement.classList.toggle(this.handsetCssClass,c.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,n){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),n.announcementMessage&&this._live.clear()}),n.duration&&n.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(n.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let n=new co;n.direction=e.direction;let o=ga(this._injector),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),n.positionStrategy=o,n.disableAnimations=this._animationsDisabled,lo(this._injector,n)}_createInjector(e,n){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return be.create({parent:o||this._injector,providers:[{provide:wu,useValue:n},{provide:Rz,useValue:e.data}]})}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();var Fz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[xse],imports:[Ei,so,_a,fe,Nz,fe]})}return t})();var Mse=["mat-sort-header",""],wse=["*"];function Dse(t,i){t&1&&(nt(0,"div",2),$t(),nt(1,"svg",3),Tn(2,"path",4),rt()())}var Vz=new L("MAT_SORT_DEFAULT_OPTIONS"),oh=(()=>{class t{_defaultOptions;_initializedStream=new pr(1);sortables=new Map;_stateChanges=new B;active;start="asc";get direction(){return this._direction}set direction(e){this._direction=e}_direction="";disableClear;disabled=!1;sortChange=new j;initialized=this._initializedStream;constructor(e){this._defaultOptions=e}register(e){this.sortables.set(e.id,e)}deregister(e){this.sortables.delete(e.id)}sort(e){this.active!=e.id?(this.active=e.id,this.direction=e.start?e.start:this.start):this.direction=this.getNextSortDirection(e),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(e){if(!e)return"";let n=e?.disableClear??this.disableClear??!!this._defaultOptions?.disableClear,o=Sse(e.start||this.start,n),r=o.indexOf(this.direction)+1;return r>=o.length&&(r=0),o[r]}ngOnInit(){this._initializedStream.next()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete(),this._initializedStream.complete()}static \u0275fac=function(n){return new(n||t)(Ce(Vz,8))};static \u0275dir=z({type:t,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{active:[0,"matSortActive","active"],start:[0,"matSortStart","start"],direction:[0,"matSortDirection","direction"],disableClear:[2,"matSortDisableClear","disableClear",H],disabled:[2,"matSortDisabled","disabled",H]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Re]})}return t})();function Sse(t,i){let e=["asc","desc"];return t=="desc"&&e.reverse(),i||e.push(""),e}var ih=(()=>{class t{changes=new B;static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function kse(t){return t||new ih}var Ese={provide:ih,deps:[[new Xo,new oa,ih]],useFactory:kse},Bz=(()=>{class t{_intl=d(ih);_sort=d(oh,{optional:!0});_columnDef=d("MAT_SORT_HEADER_COLUMN_DEF",{optional:!0});_changeDetectorRef=d(xe);_focusMonitor=d(sn);_elementRef=d(Q);_ariaDescriber=d(Y1,{optional:!0});_renderChanges;_animationsDisabled=Ue();_recentlyCleared=we(null);_sortButton;id;arrowPosition="after";start;disabled=!1;get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(e){this._updateSortActionDescription(e)}_sortActionDescription="Sort";disableClear;constructor(){d(at).load(cn);let e=d(Vz,{optional:!0});this._sort,e?.arrowPosition&&(this.arrowPosition=e?.arrowPosition)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._sort.register(this),this._renderChanges=ft(this._sort._stateChanges,this._sort.sortChange).subscribe(()=>this._changeDetectorRef.markForCheck()),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(()=>{Promise.resolve().then(()=>this._recentlyCleared.set(null))})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._renderChanges?.unsubscribe(),this._sortButton&&this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription)}_toggleOnInteraction(){if(!this._isDisabled()){let e=this._isSorted(),n=this._sort.direction;this._sort.sort(this),this._recentlyCleared.set(e&&!this._isSorted()?n:null)}}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(e.preventDefault(),this._toggleOnInteraction())}_isSorted(){return this._sort.active==this.id&&(this._sort.direction==="asc"||this._sort.direction==="desc")}_isDisabled(){return this._sort.disabled||this.disabled}_getAriaSortAttribute(){return this._isSorted()?this._sort.direction=="asc"?"ascending":"descending":"none"}_renderArrow(){return!this._isDisabled()||this._isSorted()}_updateSortActionDescription(e){this._sortButton&&(this._ariaDescriber?.removeDescription(this._sortButton,this._sortActionDescription),this._ariaDescriber?.describe(this._sortButton,e)),this._sortActionDescription=e}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(n,o){n&1&&N("click",function(){return o._toggleOnInteraction()})("keydown",function(a){return o._handleKeydown(a)})("mouseleave",function(){return o._recentlyCleared.set(null)}),n&2&&(ne("aria-sort",o._getAriaSortAttribute()),oe("mat-sort-header-disabled",o._isDisabled()))},inputs:{id:[0,"mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",disabled:[2,"disabled","disabled",H],sortActionDescription:"sortActionDescription",disableClear:[2,"disableClear","disableClear",H]},exportAs:["matSortHeader"],attrs:Mse,ngContentSelectors:wse,decls:4,vars:17,consts:[[1,"mat-sort-header-container","mat-focus-indicator"],[1,"mat-sort-header-content"],[1,"mat-sort-header-arrow"],["viewBox","0 -960 960 960","focusable","false","aria-hidden","true"],["d","M440-240v-368L296-464l-56-56 240-240 240 240-56 56-144-144v368h-80Z"]],template:function(n,o){n&1&&(De(),nt(0,"div",0)(1,"div",1),ae(2),rt(),E(3,Dse,3,0,"div",2),rt()),n&2&&(oe("mat-sort-header-sorted",o._isSorted())("mat-sort-header-position-before",o.arrowPosition==="before")("mat-sort-header-descending",o._sort.direction==="desc")("mat-sort-header-ascending",o._sort.direction==="asc")("mat-sort-header-recently-cleared-ascending",o._recentlyCleared()==="asc")("mat-sort-header-recently-cleared-descending",o._recentlyCleared()==="desc")("mat-sort-header-animations-disabled",o._animationsDisabled),ne("tabindex",o._isDisabled()?null:0)("role",o._isDisabled()?null:"button"),p(3),I(o._renderArrow()?3:-1))},styles:[`.mat-sort-header{cursor:pointer}.mat-sort-header-disabled{cursor:default}.mat-sort-header-container{display:flex;align-items:center;letter-spacing:normal;outline:0}[mat-sort-header].cdk-keyboard-focused .mat-sort-header-container,[mat-sort-header].cdk-program-focused .mat-sort-header-container{border-bottom:solid 1px currentColor}.mat-sort-header-container::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-sort-header-content{display:flex;align-items:center}.mat-sort-header-position-before{flex-direction:row-reverse}@keyframes _mat-sort-header-recently-cleared-ascending{from{transform:translateY(0);opacity:1}to{transform:translateY(-25%);opacity:0}}@keyframes _mat-sort-header-recently-cleared-descending{from{transform:translateY(0) rotate(180deg);opacity:1}to{transform:translateY(25%) rotate(180deg);opacity:0}}.mat-sort-header-arrow{height:12px;width:12px;position:relative;transition:transform 225ms cubic-bezier(0.4, 0, 0.2, 1),opacity 225ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0;overflow:visible;color:var(--mat-sort-arrow-color, var(--mat-sys-on-surface))}.mat-sort-header.cdk-keyboard-focused .mat-sort-header-arrow,.mat-sort-header.cdk-program-focused .mat-sort-header-arrow,.mat-sort-header:hover .mat-sort-header-arrow{opacity:.54}.mat-sort-header .mat-sort-header-sorted .mat-sort-header-arrow{opacity:1}.mat-sort-header-descending .mat-sort-header-arrow{transform:rotate(180deg)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transform:translateY(-25%)}.mat-sort-header-recently-cleared-ascending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-ascending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-recently-cleared-descending .mat-sort-header-arrow{transition:none;animation:_mat-sort-header-recently-cleared-descending 225ms cubic-bezier(0.4, 0, 0.2, 1) forwards}.mat-sort-header-animations-disabled .mat-sort-header-arrow{transition-duration:0ms;animation-duration:0ms}.mat-sort-header-arrow svg{width:24px;height:24px;fill:currentColor;position:absolute;top:50%;left:50%;margin:-12px 0 0 -12px;transform:translateZ(0)}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}
+`],encapsulation:2,changeDetection:0})}return t})(),jz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Ese],imports:[fe]})}return t})();var Ise=(t,i,e)=>({index:t,active:i,optional:e});function Ose(t,i){if(t&1&&Vt(0,2),t&2){let e=M();D("ngTemplateOutlet",e.iconOverrides[e.state])("ngTemplateOutletContext",k5(2,Ise,e.index,e.active,e.optional))}}function Tse(t,i){if(t&1&&(h(0,"span",7),y(1),_()),t&2){let e=M(2);p(),T(e._getDefaultTextForState(e.state))}}function Pse(t,i){if(t&1&&(h(0,"span",8),y(1),_()),t&2){let e=M(3);p(),T(e._intl.completedLabel)}}function Lse(t,i){if(t&1&&(h(0,"span",8),y(1),_()),t&2){let e=M(3);p(),T(e._intl.editableLabel)}}function Ase(t,i){if(t&1&&(E(0,Pse,2,1,"span",8)(1,Lse,2,1,"span",8),h(2,"mat-icon",7),y(3),_()),t&2){let e=M(2);I(e.state==="done"?0:e.state==="edit"?1:-1),p(3),T(e._getDefaultTextForState(e.state))}}function zse(t,i){if(t&1&&E(0,Tse,2,1,"span",7)(1,Ase,4,2),t&2){let e,n=M();I((e=n.state)==="number"?0:1)}}function Rse(t,i){t&1&&(h(0,"div",4),Vt(1,9),_()),t&2&&(p(),D("ngTemplateOutlet",i.template))}function Nse(t,i){if(t&1&&(h(0,"div",4),y(1),_()),t&2){let e=M();p(),T(e.label)}}function Fse(t,i){if(t&1&&(h(0,"div",5),y(1),_()),t&2){let e=M();p(),T(e._intl.optionalLabel)}}function Vse(t,i){if(t&1&&(h(0,"div",6),y(1),_()),t&2){let e=M();p(),T(e.errorMessage)}}var Hz=["*"];function Bse(t,i){}function jse(t,i){if(t&1&&(ae(0),ot(1,Bse,0,0,"ng-template",0)),t&2){let e=M();p(),D("cdkPortalOutlet",e._portal)}}var Hse=["animatedContainer"],Uz=t=>({step:t});function Use(t,i){t&1&&ae(0)}function $se(t,i){t&1&&F(0,"div",7)}function Gse(t,i){if(t&1&&(Vt(0,6),E(1,$se,1,0,"div",7)),t&2){let e=i.$implicit,n=i.$index,o=i.$count;M(2);let r=Nt(4);D("ngTemplateOutlet",r)("ngTemplateOutletContext",Eo(3,Uz,e)),p(),I(n!==o-1?1:-1)}}function Wse(t,i){if(t&1&&(h(0,"div",8,1),Vt(2,9),_()),t&2){let e=i.$implicit,n=i.$index,o=M(2);Tt("mat-horizontal-stepper-content-"+o._getAnimationDirection(n)),D("id",o._getStepContentId(n)),ne("aria-labelledby",o._getStepLabelId(n))("inert",o.selectedIndex===n?null:""),p(2),D("ngTemplateOutlet",e.content)}}function qse(t,i){if(t&1&&(h(0,"div",2)(1,"div",3),Xe(2,Gse,2,5,null,null,ht),_(),h(4,"div",4),Xe(5,Wse,3,6,"div",5,ht),_()()),t&2){let e=M();p(2),Ze(e.steps),p(3),Ze(e.steps)}}function Yse(t,i){if(t&1&&(h(0,"div",10),Vt(1,6),h(2,"div",11,1)(4,"div",12)(5,"div",13),Vt(6,9),_()()()()),t&2){let e=i.$implicit,n=i.$index,o=i.$index,r=i.$count,a=M(2),s=Nt(4);p(),D("ngTemplateOutlet",s)("ngTemplateOutletContext",Eo(10,Uz,e)),p(),oe("mat-stepper-vertical-line",o!==r-1)("mat-vertical-content-container-active",a.selectedIndex===n),ne("inert",a.selectedIndex===n?null:""),p(2),D("id",a._getStepContentId(n)),ne("aria-labelledby",a._getStepLabelId(n)),p(2),D("ngTemplateOutlet",e.content)}}function Qse(t,i){if(t&1&&Xe(0,Yse,7,12,"div",10,ht),t&2){let e=M();Ze(e.steps)}}function Kse(t,i){if(t&1){let e=le();h(0,"mat-step-header",14),N("click",function(){let o=G(e).step;return W(o.select())})("keydown",function(o){G(e);let r=M();return W(r._onKeydown(o))}),_()}if(t&2){let e=i.step,n=M();oe("mat-horizontal-stepper-header",n.orientation==="horizontal")("mat-vertical-stepper-header",n.orientation==="vertical"),D("tabIndex",n._getFocusIndex()===e.index()?0:-1)("id",n._getStepLabelId(e.index()))("index",e.index())("state",e.indicatorType())("label",e.stepLabel||e.label)("selected",e.isSelected())("active",e.isNavigable())("optional",e.optional)("errorMessage",e.errorMessage)("iconOverrides",n._iconOverrides)("disableRipple",n.disableRipple||!e.isNavigable())("color",e.color||n.color),ne("aria-posinset",e.index()+1)("aria-setsize",n.steps.length)("aria-controls",n._getStepContentId(e.index()))("aria-selected",e.isSelected())("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null)("aria-disabled",e.isNavigable()?null:!0)}}var Ob=(()=>{class t extends vb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matStepLabel",""]],features:[ce]})}return t})(),rh=(()=>{class t{changes=new B;optionalLabel="Optional";completedLabel="Completed";editableLabel="Editable";static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function Xse(t){return t||new rh}var Zse={provide:rh,deps:[[new Xo,new oa,rh]],useFactory:Xse},Tb=(()=>{class t extends bb{_intl=d(rh);_focusMonitor=d(sn);_intlSubscription;state;label;errorMessage;iconOverrides;index;selected;active;optional;disableRipple;color;constructor(){super();let e=d(at);e.load(cn),e.load(_o);let n=d(xe);this._intlSubscription=this._intl.changes.subscribe(()=>n.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(e,n){e?this._focusMonitor.focusVia(this._elementRef,e,n):this._elementRef.nativeElement.focus(n)}_stringLabel(){return this.label instanceof Ob?null:this.label}_templateLabel(){return this.label instanceof Ob?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getDefaultTextForState(e){return e=="number"?`${this.index+1}`:e=="edit"?"create":e=="error"?"warning":e}_hasEmptyLabel(){return!this._stringLabel()&&!this._templateLabel()&&!this._hasOptionalLabel()&&!this._hasErrorLabel()}_hasOptionalLabel(){return this.optional&&this.state!=="error"}_hasErrorLabel(){return this.state==="error"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-step-header"]],hostAttrs:["role","tab",1,"mat-step-header"],hostVars:4,hostBindings:function(n,o){n&2&&(Tt("mat-"+(o.color||"primary")),oe("mat-step-header-empty-label",o._hasEmptyLabel()))},inputs:{state:"state",label:"label",errorMessage:"errorMessage",iconOverrides:"iconOverrides",index:"index",selected:"selected",active:"active",optional:"optional",disableRipple:"disableRipple",color:"color"},features:[ce],decls:10,vars:17,consts:[["matRipple","",1,"mat-step-header-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-step-icon-content"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-step-label"],[1,"mat-step-text-label"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[3,"ngTemplateOutlet"]],template:function(n,o){if(n&1&&(F(0,"div",0),h(1,"div")(2,"div",1),E(3,Ose,1,6,"ng-container",2)(4,zse,2,1),_()(),h(5,"div",3),E(6,Rse,2,1,"div",4)(7,Nse,2,1,"div",4),E(8,Fse,2,1,"div",5),E(9,Vse,2,1,"div",6),_()),n&2){let r;D("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disableRipple),p(),Tt(Uc("mat-step-icon-state-",o.state," mat-step-icon")),oe("mat-step-icon-selected",o.selected),p(2),I(o.iconOverrides&&o.iconOverrides[o.state]?3:4),p(2),oe("mat-step-label-active",o.active)("mat-step-label-selected",o.selected)("mat-step-label-error",o.state=="error"),p(),I((r=o._templateLabel())?6:o._stringLabel()?7:-1,r),p(2),I(o._hasOptionalLabel()?8:-1),p(),I(o._hasErrorLabel()?9:-1)}},dependencies:[mi,Es,Co],styles:[`.mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-step-header:focus .mat-focus-indicator::before{content:""}.mat-step-header:hover[aria-disabled=true]{cursor:default}.mat-step-header:hover:not([aria-disabled]),.mat-step-header:hover[aria-disabled=false]{background-color:var(--mat-stepper-header-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-hover-state-layer-shape, var(--mat-sys-corner-medium))}.mat-step-header.cdk-keyboard-focused,.mat-step-header.cdk-program-focused{background-color:var(--mat-stepper-header-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));border-radius:var(--mat-stepper-header-focus-state-layer-shape, var(--mat-sys-corner-medium))}@media(hover: none){.mat-step-header:hover{background:none}}@media(forced-colors: active){.mat-step-header{outline:solid 1px}.mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.mat-step-header[aria-disabled=true]{outline-color:GrayText}.mat-step-header[aria-disabled=true] .mat-step-label,.mat-step-header[aria-disabled=true] .mat-step-icon,.mat-step-header[aria-disabled=true] .mat-step-optional{color:GrayText}}.mat-step-optional{font-size:12px;color:var(--mat-stepper-header-optional-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-sub-label-error{font-size:12px;font-weight:normal}.mat-step-icon{border-radius:50%;height:24px;width:24px;flex-shrink:0;position:relative;color:var(--mat-stepper-header-icon-foreground-color, var(--mat-sys-surface));background-color:var(--mat-stepper-header-icon-background-color, var(--mat-sys-on-surface-variant))}.mat-step-icon-content{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.mat-step-icon .mat-icon{font-size:16px;height:16px;width:16px}.mat-step-icon-state-error{background-color:var(--mat-stepper-header-error-state-icon-background-color, transparent);color:var(--mat-stepper-header-error-state-icon-foreground-color, var(--mat-sys-error))}.mat-step-icon-state-error .mat-icon{font-size:24px;height:24px;width:24px}.mat-step-label{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:50px;vertical-align:middle;font-family:var(--mat-stepper-header-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-stepper-header-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-label-text-weight, var(--mat-sys-title-small-weight));color:var(--mat-stepper-header-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-active{color:var(--mat-stepper-header-selected-state-label-text-color, var(--mat-sys-on-surface-variant))}.mat-step-label.mat-step-label-error{color:var(--mat-stepper-header-error-state-label-text-color, var(--mat-sys-error));font-size:var(--mat-stepper-header-error-state-label-text-size, var(--mat-sys-title-small-size))}.mat-step-label.mat-step-label-selected{font-size:var(--mat-stepper-header-selected-state-label-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-stepper-header-selected-state-label-text-weight, var(--mat-sys-title-small-weight))}.mat-step-header-empty-label .mat-step-label{min-width:0}.mat-step-text-label{text-overflow:ellipsis;overflow:hidden}.mat-step-header .mat-step-header-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-step-icon-selected{background-color:var(--mat-stepper-header-selected-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-selected-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-done{background-color:var(--mat-stepper-header-done-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-done-state-icon-foreground-color, var(--mat-sys-on-primary))}.mat-step-icon-state-edit{background-color:var(--mat-stepper-header-edit-state-icon-background-color, var(--mat-sys-primary));color:var(--mat-stepper-header-edit-state-icon-foreground-color, var(--mat-sys-on-primary))}
+`],encapsulation:2,changeDetection:0})}return t})(),Jse=(()=>{class t{templateRef=d(tt);name;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:[0,"matStepperIcon","name"]}})}return t})(),ece=(()=>{class t{_template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matStepContent",""]]})}return t})(),tce=(()=>{class t extends Kf{_errorStateMatcher=d(ha,{skipSelf:!0});_viewContainerRef=d(dt);_isSelected=Se.EMPTY;stepLabel=void 0;color;_lazyContent;_portal;ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe(lt(()=>this._stepper.selectionChange.pipe(me(e=>e.selectedStep===this),We(this._stepper.selected===this)))).subscribe(e=>{e&&this._lazyContent&&!this._portal&&(this._portal=new Wn(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(e,n){let o=this._errorStateMatcher.isErrorState(e,n),r=!!(e&&e.invalid&&this.interacted);return o||r}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-step"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,Ob,5),Ee(r,ece,5)),n&2){let a;U(a=$())&&(o.stepLabel=a.first),U(a=$())&&(o._lazyContent=a.first)}},hostAttrs:["hidden",""],inputs:{color:"color"},exportAs:["matStep"],features:[de([{provide:ha,useExisting:t},{provide:Kf,useExisting:t}]),ce],ngContentSelectors:Hz,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(n,o){n&1&&(De(),ot(0,jse,2,1,"ng-template"))},dependencies:[Mi],encapsulation:2,changeDetection:0})}return t})(),nce=(()=>{class t extends L2{_ngZone=d(se);_renderer=d(Ke);_animationsDisabled=Ue();_cleanupTransition;_isAnimating=we(!1);_stepHeader=void 0;_animatedContainers;_steps=void 0;steps=new In;_icons;animationDone=new j;disableRipple;color;labelPosition="end";headerPosition="top";_iconOverrides={};get animationDuration(){return this._animationDuration}set animationDuration(e){this._animationDuration=/^\d+$/.test(e)?e+"ms":e}_animationDuration="";_isServer=!d(je).isBrowser;constructor(){super();let n=d(Q).nativeElement.nodeName.toLowerCase();this.orientation=n==="mat-vertical-stepper"?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:e,templateRef:n})=>this._iconOverrides[e]=n),this.steps.changes.pipe(ye(this._destroyed)).subscribe(()=>this._stateChanged()),this.selectedIndexChange.pipe(ye(this._destroyed)).subscribe(()=>{let e=this._getAnimationDuration();e==="0ms"||e==="0s"?this._onAnimationDone():this._isAnimating.set(!0)}),this._ngZone.runOutsideAngular(()=>{this._animationsDisabled||setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-stepper-animations-enabled"),this._cleanupTransition=this._renderer.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionend)},200)})}ngAfterViewInit(){if(super.ngAfterViewInit(),typeof queueMicrotask=="function"){let e=!1;this._animatedContainers.changes.pipe(We(null),ye(this._destroyed)).subscribe(()=>queueMicrotask(()=>{e||(e=!0,this.animationDone.emit()),this._stateChanged()}))}}ngOnDestroy(){super.ngOnDestroy(),this._cleanupTransition?.()}_getAnimationDuration(){return this._animationsDisabled?"0ms":this.animationDuration?this.animationDuration:this.orientation==="horizontal"?"500ms":"225ms"}_handleTransitionend=e=>{let n=e.target;if(!n)return;let o=this.orientation==="horizontal"&&e.propertyName==="transform"&&n.classList.contains("mat-horizontal-stepper-content-current"),r=this.orientation==="vertical"&&e.propertyName==="grid-template-rows"&&n.classList.contains("mat-vertical-content-container-active");(o||r)&&this._animatedContainers.find(s=>s.nativeElement===n)&&this._onAnimationDone()};_onAnimationDone(){this._isAnimating.set(!1),this.animationDone.emit()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,tce,5),Ee(r,Jse,5)),n&2){let a;U(a=$())&&(o._steps=a),U(a=$())&&(o._icons=a)}},viewQuery:function(n,o){if(n&1&&(ue(Tb,5),ue(Hse,5)),n&2){let r;U(r=$())&&(o._stepHeader=r),U(r=$())&&(o._animatedContainers=r)}},hostAttrs:["role","tablist"],hostVars:15,hostBindings:function(n,o){n&2&&(ne("aria-orientation",o.orientation),At("--mat-stepper-animation-duration",o._getAnimationDuration()),oe("mat-stepper-horizontal",o.orientation==="horizontal")("mat-stepper-vertical",o.orientation==="vertical")("mat-stepper-label-position-end",o.orientation==="horizontal"&&o.labelPosition=="end")("mat-stepper-label-position-bottom",o.orientation==="horizontal"&&o.labelPosition=="bottom")("mat-stepper-header-position-bottom",o.headerPosition==="bottom")("mat-stepper-animating",o._isAnimating()))},inputs:{disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition",headerPosition:"headerPosition",animationDuration:"animationDuration"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[de([{provide:L2,useExisting:t}]),ce],ngContentSelectors:Hz,decls:5,vars:2,consts:[["stepTemplate",""],["animatedContainer",""],[1,"mat-horizontal-stepper-wrapper"],[1,"mat-horizontal-stepper-header-container"],[1,"mat-horizontal-content-container"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id","class"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"mat-stepper-horizontal-line"],["role","tabpanel",1,"mat-horizontal-stepper-content",3,"id"],[3,"ngTemplateOutlet"],[1,"mat-step"],[1,"mat-vertical-content-container"],["role","tabpanel",1,"mat-vertical-stepper-content",3,"id"],[1,"mat-vertical-content"],[3,"click","keydown","tabIndex","id","index","state","label","selected","active","optional","errorMessage","iconOverrides","disableRipple","color"]],template:function(n,o){if(n&1&&(De(),E(0,Use,1,0),E(1,qse,7,0,"div",2)(2,Qse,2,0),ot(3,Kse,1,23,"ng-template",null,0,ks)),n&2){let r;I(o._isServer?0:-1),p(),I((r=o.orientation)==="horizontal"?1:r==="vertical"?2:-1)}},dependencies:[Es,Tb],styles:[`.mat-stepper-vertical,.mat-stepper-horizontal{display:block;font-family:var(--mat-stepper-container-text-font, var(--mat-sys-body-medium-font));background:var(--mat-stepper-container-color, var(--mat-sys-surface))}.mat-horizontal-stepper-header-container{white-space:nowrap;display:flex;align-items:center}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header-container{align-items:flex-start}.mat-stepper-header-position-bottom .mat-horizontal-stepper-header-container{order:1}.mat-stepper-horizontal-line{border-top-width:1px;border-top-style:solid;flex:auto;height:0;margin:0 -16px;min-width:32px;border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-stepper-horizontal-line{margin:0;min-width:0;position:relative;top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{border-top-width:1px;border-top-style:solid;content:"";display:inline-block;height:0;position:absolute;width:calc(50% - 20px)}.mat-horizontal-stepper-header{display:flex;overflow:hidden;align-items:center;padding:0 24px;height:var(--mat-stepper-header-height, 72px)}.mat-horizontal-stepper-header .mat-step-icon{margin-right:8px;flex:none}[dir=rtl] .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:8px}.mat-horizontal-stepper-header.mat-step-header-empty-label .mat-step-icon{margin:0}.mat-horizontal-stepper-header::before,.mat-horizontal-stepper-header::after{border-top-color:var(--mat-stepper-line-color, var(--mat-sys-outline))}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::before,.mat-stepper-label-position-bottom .mat-horizontal-stepper-header::after{top:calc(calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) + 12px)}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header{box-sizing:border-box;flex-direction:column;height:auto}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::after,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::after{right:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:first-child)::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:not(:last-child)::before{left:0}[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:last-child::before,[dir=rtl] .mat-stepper-label-position-bottom .mat-horizontal-stepper-header:first-child::after{display:none}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-icon{margin-right:0;margin-left:0}.mat-stepper-label-position-bottom .mat-horizontal-stepper-header .mat-step-label{padding:16px 0 0 0;text-align:center;width:100%}.mat-vertical-stepper-header{display:flex;align-items:center;height:24px;padding:calc((var(--mat-stepper-header-height, 72px) - 24px) / 2) 24px}.mat-vertical-stepper-header .mat-step-icon{margin-right:12px}[dir=rtl] .mat-vertical-stepper-header .mat-step-icon{margin-right:0;margin-left:12px}.mat-horizontal-stepper-wrapper{display:flex;flex-direction:column}.mat-horizontal-stepper-content{visibility:hidden;overflow:hidden;outline:0;height:0}.mat-stepper-animations-enabled .mat-horizontal-stepper-content{transition:transform var(--mat-stepper-animation-duration, 0) cubic-bezier(0.35, 0, 0.25, 1)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-previous{transform:translate3d(-100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-next{transform:translate3d(100%, 0, 0)}.mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{visibility:visible;transform:none;height:auto}.mat-stepper-horizontal:not(.mat-stepper-animating) .mat-horizontal-stepper-content.mat-horizontal-stepper-content-current{overflow:visible}.mat-horizontal-content-container{overflow:hidden;padding:0 24px 24px 24px}@media(forced-colors: active){.mat-horizontal-content-container{outline:solid 1px}}.mat-stepper-header-position-bottom .mat-horizontal-content-container{padding:24px 24px 0 24px}.mat-vertical-content-container{display:grid;grid-template-rows:0fr;grid-template-columns:100%;margin-left:36px;border:0;position:relative}.mat-stepper-animations-enabled .mat-vertical-content-container{transition:grid-template-rows var(--mat-stepper-animation-duration, 0) cubic-bezier(0.4, 0, 0.2, 1)}.mat-vertical-content-container.mat-vertical-content-container-active{grid-template-rows:1fr}.mat-step:last-child .mat-vertical-content-container{border:none}@media(forced-colors: active){.mat-vertical-content-container{outline:solid 1px}}[dir=rtl] .mat-vertical-content-container{margin-left:0;margin-right:36px}@supports not (grid-template-rows: 0fr){.mat-vertical-content-container{height:0}.mat-vertical-content-container.mat-vertical-content-container-active{height:auto}}.mat-stepper-vertical-line::before{content:"";position:absolute;left:0;border-left-width:1px;border-left-style:solid;border-left-color:var(--mat-stepper-line-color, var(--mat-sys-outline));top:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2));bottom:calc(8px - calc((var(--mat-stepper-header-height, 72px) - 24px) / 2))}[dir=rtl] .mat-stepper-vertical-line::before{left:auto;right:0}.mat-vertical-stepper-content{overflow:hidden;outline:0;visibility:hidden}.mat-stepper-animations-enabled .mat-vertical-stepper-content{transition:visibility var(--mat-stepper-animation-duration, 0) linear}.mat-vertical-content-container-active>.mat-vertical-stepper-content{visibility:visible}.mat-vertical-content{padding:0 24px 24px 24px}
+`],encapsulation:2,changeDetection:0})}return t})(),$z=(()=>{class t extends nz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("type",o.type)},features:[ce]})}return t})(),Gz=(()=>{class t extends iz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(n,o){n&2&&Lt("type",o.type)},features:[ce]})}return t})(),Wz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({providers:[Zse,ha],imports:[fe,so,oz,Hf,wi,nce,Tb,fe]})}return t})();var ice=[[["caption"]],[["colgroup"],["col"]],"*"],oce=["caption","colgroup, col","*"];function rce(t,i){t&1&&ae(0,2)}function ace(t,i){t&1&&(h(0,"thead",0),Vt(1,1),_(),h(2,"tbody",0),Vt(3,2)(4,3),_(),h(5,"tfoot",0),Vt(6,4),_())}function sce(t,i){t&1&&Vt(0,1)(1,2)(2,3)(3,4)}var Vr=new L("CDK_TABLE");var ch=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkCellDef",""]]})}return t})(),lh=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkHeaderCellDef",""]]})}return t})(),dh=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkFooterCellDef",""]]})}return t})(),yl=(()=>{class t{_table=d(Vr,{optional:!0});_hasStickyChanged=!1;get name(){return this._name}set name(e){this._setNameInput(e)}_name;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;get stickyEnd(){return this._stickyEnd}set stickyEnd(e){e!==this._stickyEnd&&(this._stickyEnd=e,this._hasStickyChanged=!0)}_stickyEnd=!1;cell;headerCell;footerCell;cssClassFriendlyName;_columnCssClassName;constructor(){}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(e){e&&(this._name=e,this.cssClassFriendlyName=e.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkColumnDef",""]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,ch,5),Ee(r,lh,5),Ee(r,dh,5)),n&2){let a;U(a=$())&&(o.cell=a.first),U(a=$())&&(o.headerCell=a.first),U(a=$())&&(o.footerCell=a.first)}},inputs:{name:[0,"cdkColumnDef","name"],sticky:[2,"sticky","sticky",H],stickyEnd:[2,"stickyEnd","stickyEnd",H]},features:[de([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}])]})}return t})(),Du=class{constructor(i,e){e.nativeElement.classList.add(...i._columnCssClassName)}},Qz=(()=>{class t extends Du{constructor(){super(d(yl),d(Q))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[ce]})}return t})(),Kz=(()=>{class t extends Du{constructor(){let e=d(yl),n=d(Q);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[ce]})}return t})(),Xz=(()=>{class t extends Du{constructor(){let e=d(yl),n=d(Q);super(e,n);let o=e._table?._getCellRole();o&&n.nativeElement.setAttribute("role",o)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[ce]})}return t})();var Lb=(()=>{class t{template=d(tt);_differs=d(Io);columns;_columnsDiffer;constructor(){}ngOnChanges(e){if(!this._columnsDiffer){let n=e.columns&&e.columns.currentValue||[];this._columnsDiffer=this._differs.find(n).create(),this._columnsDiffer.diff(n)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(e){return this instanceof Su?e.headerCell.template:this instanceof ku?e.footerCell.template:e.cell.template}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,features:[Re]})}return t})(),Su=(()=>{class t extends Lb{_table=d(Vr,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(tt),d(Io))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:[0,"cdkHeaderRowDef","columns"],sticky:[2,"cdkHeaderRowDefSticky","sticky",H]},features:[ce,Re]})}return t})(),ku=(()=>{class t extends Lb{_table=d(Vr,{optional:!0});_hasStickyChanged=!1;get sticky(){return this._sticky}set sticky(e){e!==this._sticky&&(this._sticky=e,this._hasStickyChanged=!0)}_sticky=!1;constructor(){super(d(tt),d(Io))}ngOnChanges(e){super.ngOnChanges(e)}hasStickyChanged(){let e=this._hasStickyChanged;return this.resetStickyChanged(),e}resetStickyChanged(){this._hasStickyChanged=!1}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:[0,"cdkFooterRowDef","columns"],sticky:[2,"cdkFooterRowDefSticky","sticky",H]},features:[ce,Re]})}return t})(),uh=(()=>{class t extends Lb{_table=d(Vr,{optional:!0});when;constructor(){super(d(tt),d(Io))}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkRowDef",""]],inputs:{columns:[0,"cdkRowDefColumns","columns"],when:[0,"cdkRowDefWhen","when"]},features:[ce]})}return t})(),rs=(()=>{class t{_viewContainer=d(dt);cells;context;static mostRecentCellOutlet=null;constructor(){t.mostRecentCellOutlet=this}ngOnDestroy(){t.mostRecentCellOutlet===this&&(t.mostRecentCellOutlet=null)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkCellOutlet",""]]})}return t})(),Ab=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),zb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),Rb=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),mh=(()=>{class t{templateRef=d(tt);_contentClassNames=["cdk-no-data-row","cdk-row"];_cellClassNames=["cdk-cell","cdk-no-data-cell"];_cellSelector="td, cdk-cell, [cdk-cell], .cdk-cell";constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","cdkNoDataRow",""]]})}return t})(),qz=["top","bottom","left","right"],Pb=class{_isNativeHtmlTable;_stickCellCss;_isBrowser;_needsPositionStickyOnElement;direction;_positionListener;_tableInjector;_elemSizeCache=new WeakMap;_resizeObserver=globalThis?.ResizeObserver?new globalThis.ResizeObserver(i=>this._updateCachedSizes(i)):null;_updatedStickyColumnsParamsToReplay=[];_stickyColumnsReplayTimeout=null;_cachedCellWidths=[];_borderCellCss;_destroyed=!1;constructor(i,e,n=!0,o=!0,r,a,s){this._isNativeHtmlTable=i,this._stickCellCss=e,this._isBrowser=n,this._needsPositionStickyOnElement=o,this.direction=r,this._positionListener=a,this._tableInjector=s,this._borderCellCss={top:`${e}-border-elem-top`,bottom:`${e}-border-elem-bottom`,left:`${e}-border-elem-left`,right:`${e}-border-elem-right`}}clearStickyPositioning(i,e){(e.includes("left")||e.includes("right"))&&this._removeFromStickyColumnReplayQueue(i);let n=[];for(let o of i)o.nodeType===o.ELEMENT_NODE&&n.push(o,...Array.from(o.children));Ct({write:()=>{for(let o of n)this._removeStickyStyle(o,e)}},{injector:this._tableInjector})}updateStickyColumns(i,e,n,o=!0,r=!0){if(!i.length||!this._isBrowser||!(e.some(Y=>Y)||n.some(Y=>Y))){this._positionListener?.stickyColumnsUpdated({sizes:[]}),this._positionListener?.stickyEndColumnsUpdated({sizes:[]});return}let a=i[0],s=a.children.length,c=this.direction==="rtl",m=c?"right":"left",f=c?"left":"right",v=e.lastIndexOf(!0),x=n.indexOf(!0),w,O,K;r&&this._updateStickyColumnReplayQueue({rows:[...i],stickyStartStates:[...e],stickyEndStates:[...n]}),Ct({earlyRead:()=>{w=this._getCellWidths(a,o),O=this._getStickyStartColumnPositions(w,e),K=this._getStickyEndColumnPositions(w,n)},write:()=>{for(let Y of i)for(let Z=0;Z!!Y)&&(this._positionListener.stickyColumnsUpdated({sizes:v===-1?[]:w.slice(0,v+1).map((Y,Z)=>e[Z]?Y:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:x===-1?[]:w.slice(x).map((Y,Z)=>n[Z+x]?Y:null).reverse()}))}},{injector:this._tableInjector})}stickRows(i,e,n){if(!this._isBrowser)return;let o=n==="bottom"?i.slice().reverse():i,r=n==="bottom"?e.slice().reverse():e,a=[],s=[],c=[];Ct({earlyRead:()=>{for(let m=0,f=0;m{let m=r.lastIndexOf(!0);for(let f=0;f{let n=i.querySelector("tfoot");n&&(e.some(o=>!o)?this._removeStickyStyle(n,["bottom"]):this._addStickyStyle(n,"bottom",0,!1))}},{injector:this._tableInjector})}destroy(){this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._resizeObserver?.disconnect(),this._destroyed=!0}_removeStickyStyle(i,e){if(!i.classList.contains(this._stickCellCss))return;for(let o of e)i.style[o]="",i.classList.remove(this._borderCellCss[o]);qz.some(o=>e.indexOf(o)===-1&&i.style[o])?i.style.zIndex=this._getCalculatedZIndex(i):(i.style.zIndex="",this._needsPositionStickyOnElement&&(i.style.position=""),i.classList.remove(this._stickCellCss))}_addStickyStyle(i,e,n,o){i.classList.add(this._stickCellCss),o&&i.classList.add(this._borderCellCss[e]),i.style[e]=`${n}px`,i.style.zIndex=this._getCalculatedZIndex(i),this._needsPositionStickyOnElement&&(i.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(i){let e={top:100,bottom:10,left:1,right:1},n=0;for(let o of qz)i.style[o]&&(n+=e[o]);return n?`${n}`:""}_getCellWidths(i,e=!0){if(!e&&this._cachedCellWidths.length)return this._cachedCellWidths;let n=[],o=i.children;for(let r=0;r0;r--)e[r]&&(n[r]=o,o+=i[r]);return n}_retrieveElementSize(i){let e=this._elemSizeCache.get(i);if(e)return e;let n=i.getBoundingClientRect(),o={width:n.width,height:n.height};return this._resizeObserver&&(this._elemSizeCache.set(i,o),this._resizeObserver.observe(i,{box:"border-box"})),o}_updateStickyColumnReplayQueue(i){this._removeFromStickyColumnReplayQueue(i.rows),this._stickyColumnsReplayTimeout||this._updatedStickyColumnsParamsToReplay.push(i)}_removeFromStickyColumnReplayQueue(i){let e=new Set(i);for(let n of this._updatedStickyColumnsParamsToReplay)n.rows=n.rows.filter(o=>!e.has(o));this._updatedStickyColumnsParamsToReplay=this._updatedStickyColumnsParamsToReplay.filter(n=>!!n.rows.length)}_updateCachedSizes(i){let e=!1;for(let n of i){let o=n.borderBoxSize?.length?{width:n.borderBoxSize[0].inlineSize,height:n.borderBoxSize[0].blockSize}:{width:n.contentRect.width,height:n.contentRect.height};o.width!==this._elemSizeCache.get(n.target)?.width&&cce(n.target)&&(e=!0),this._elemSizeCache.set(n.target,o)}e&&this._updatedStickyColumnsParamsToReplay.length&&(this._stickyColumnsReplayTimeout&&clearTimeout(this._stickyColumnsReplayTimeout),this._stickyColumnsReplayTimeout=setTimeout(()=>{if(!this._destroyed){for(let n of this._updatedStickyColumnsParamsToReplay)this.updateStickyColumns(n.rows,n.stickyStartStates,n.stickyEndStates,!0,!1);this._updatedStickyColumnsParamsToReplay=[],this._stickyColumnsReplayTimeout=null}},0))}};function cce(t){return["cdk-cell","cdk-header-cell","cdk-footer-cell"].some(i=>t.classList.contains(i))}var sh=new L("CDK_SPL");var Nb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._rowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","rowOutlet",""]]})}return t})(),Fb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._headerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","headerRowOutlet",""]]})}return t})(),Vb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._footerRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","footerRowOutlet",""]]})}return t})(),Bb=(()=>{class t{viewContainer=d(dt);elementRef=d(Q);constructor(){let e=d(Vr);e._noDataRowOutlet=this,e._outletAssigned()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","noDataRowOutlet",""]]})}return t})(),jb=(()=>{class t{_differs=d(Io);_changeDetectorRef=d(xe);_elementRef=d(Q);_dir=d(bt,{optional:!0});_platform=d(je);_viewRepeater=d(_2);_viewportRuler=d(Gn);_stickyPositioningListener=d(sh,{optional:!0,skipSelf:!0});_document=d(Me);_data;_onDestroy=new B;_renderRows;_renderChangeSubscription;_columnDefsByName=new Map;_rowDefs;_headerRowDefs;_footerRowDefs;_dataDiffer;_defaultRowDef;_customColumnDefs=new Set;_customRowDefs=new Set;_customHeaderRowDefs=new Set;_customFooterRowDefs=new Set;_customNoDataRow;_headerRowDefChanged=!0;_footerRowDefChanged=!0;_stickyColumnStylesNeedReset=!0;_forceRecalculateCellWidths=!0;_cachedRenderRowsMap=new Map;_isNativeHtmlTable;_stickyStyler;stickyCssClass="cdk-table-sticky";needsPositionStickyOnElement=!0;_isServer;_isShowingNoDataRow=!1;_hasAllOutlets=!1;_hasInitialized=!1;_getCellRole(){if(this._cellRoleInternal===void 0){let e=this._elementRef.nativeElement.getAttribute("role");return e==="grid"||e==="treegrid"?"gridcell":"cell"}return this._cellRoleInternal}_cellRoleInternal=void 0;get trackBy(){return this._trackByFn}set trackBy(e){this._trackByFn=e}_trackByFn;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(e){this._multiTemplateDataRows=e,this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}_multiTemplateDataRows=!1;get fixedLayout(){return this._fixedLayout}set fixedLayout(e){this._fixedLayout=e,this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}_fixedLayout=!1;contentChanged=new j;viewChange=new ct({start:0,end:Number.MAX_VALUE});_rowOutlet;_headerRowOutlet;_footerRowOutlet;_noDataRowOutlet;_contentColumnDefs;_contentRowDefs;_contentHeaderRowDefs;_contentFooterRowDefs;_noDataRow;_injector=d(be);constructor(){d(new dn("role"),{optional:!0})||this._elementRef.nativeElement.setAttribute("role","table"),this._isServer=!this._platform.isBrowser,this._isNativeHtmlTable=this._elementRef.nativeElement.nodeName==="TABLE",this._dataDiffer=this._differs.find([]).create((n,o)=>this.trackBy?this.trackBy(o.dataIndex,o.data):o)}ngOnInit(){this._setupStickyStyler(),this._viewportRuler.change().pipe(ye(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentInit(){this._hasInitialized=!0}ngAfterContentChecked(){this._canRender()&&this._render()}ngOnDestroy(){this._stickyStyler?.destroy(),[this._rowOutlet?.viewContainer,this._headerRowOutlet?.viewContainer,this._footerRowOutlet?.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(e=>{e?.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),dl(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();let e=this._dataDiffer.diff(this._renderRows);if(!e){this._updateNoDataRow(),this.contentChanged.next();return}let n=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(e,n,(o,r,a)=>this._getEmbeddedViewArgs(o.item,a),o=>o.item.data,o=>{o.operation===Ys.INSERTED&&o.context&&this._renderCellTemplateForItem(o.record.item.rowDef,o.context)}),this._updateRowIndexContext(),e.forEachIdentityChange(o=>{let r=n.get(o.currentIndex);r.context.$implicit=o.item.data}),this._updateNoDataRow(),this.contentChanged.next(),this.updateStickyColumnStyles()}addColumnDef(e){this._customColumnDefs.add(e)}removeColumnDef(e){this._customColumnDefs.delete(e)}addRowDef(e){this._customRowDefs.add(e)}removeRowDef(e){this._customRowDefs.delete(e)}addHeaderRowDef(e){this._customHeaderRowDefs.add(e),this._headerRowDefChanged=!0}removeHeaderRowDef(e){this._customHeaderRowDefs.delete(e),this._headerRowDefChanged=!0}addFooterRowDef(e){this._customFooterRowDefs.add(e),this._footerRowDefChanged=!0}removeFooterRowDef(e){this._customFooterRowDefs.delete(e),this._footerRowDefChanged=!0}setNoDataRow(e){this._customNoDataRow=e}updateStickyHeaderRowStyles(){let e=this._getRenderedRows(this._headerRowOutlet);if(this._isNativeHtmlTable){let o=Yz(this._headerRowOutlet,"thead");o&&(o.style.display=e.length?"":"none")}let n=this._headerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["top"]),this._stickyStyler.stickRows(e,n,"top"),this._headerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyFooterRowStyles(){let e=this._getRenderedRows(this._footerRowOutlet);if(this._isNativeHtmlTable){let o=Yz(this._footerRowOutlet,"tfoot");o&&(o.style.display=e.length?"":"none")}let n=this._footerRowDefs.map(o=>o.sticky);this._stickyStyler.clearStickyPositioning(e,["bottom"]),this._stickyStyler.stickRows(e,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach(o=>o.resetStickyChanged())}updateStickyColumnStyles(){let e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),o=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...e,...n,...o],["left","right"]),this._stickyColumnStylesNeedReset=!1),e.forEach((r,a)=>{this._addStickyColumnStyles([r],this._headerRowDefs[a])}),this._rowDefs.forEach(r=>{let a=[];for(let s=0;s{this._addStickyColumnStyles([r],this._footerRowDefs[a])}),Array.from(this._columnDefsByName.values()).forEach(r=>r.resetStickyChanged())}_outletAssigned(){!this._hasAllOutlets&&this._rowOutlet&&this._headerRowOutlet&&this._footerRowOutlet&&this._noDataRowOutlet&&(this._hasAllOutlets=!0,this._canRender()&&this._render())}_canRender(){return this._hasAllOutlets&&this._hasInitialized}_render(){this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&this._rowDefs.length;let n=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||n,this._forceRecalculateCellWidths=n,this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription?this._observeRenderChanges():this._stickyColumnStylesNeedReset&&this.updateStickyColumnStyles(),this._checkStickyStates()}_getAllRenderRows(){let e=[],n=this._cachedRenderRowsMap;if(this._cachedRenderRowsMap=new Map,!this._data)return e;for(let o=0;o{let s=o&&o.has(a)?o.get(a):[];if(s.length){let c=s.shift();return c.dataIndex=n,c}else return{data:e,rowDef:a,dataIndex:n}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ah(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(n=>{this._columnDefsByName.has(n.name),this._columnDefsByName.set(n.name,n)})}_cacheRowDefs(){this._headerRowDefs=ah(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ah(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ah(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);let e=this._rowDefs.filter(n=>!n.when);!this.multiTemplateDataRows&&e.length>1,this._defaultRowDef=e[0]}_renderUpdatedColumns(){let e=(a,s)=>{let c=!!s.getColumnsDiff();return a||c},n=this._rowDefs.reduce(e,!1);n&&this._forceRenderDataRows();let o=this._headerRowDefs.reduce(e,!1);o&&this._forceRenderHeaderRows();let r=this._footerRowDefs.reduce(e,!1);return r&&this._forceRenderFooterRows(),n||o||r}_switchDataSource(e){this._data=[],dl(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),e||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet&&this._rowOutlet.viewContainer.clear()),this._dataSource=e}_observeRenderChanges(){if(!this.dataSource)return;let e;dl(this.dataSource)?e=this.dataSource.connect(this):ai(this.dataSource)?e=this.dataSource:Array.isArray(this.dataSource)&&(e=re(this.dataSource)),this._renderChangeSubscription=e.pipe(ye(this._onDestroy)).subscribe(n=>{this._data=n||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((e,n)=>this._renderRow(this._headerRowOutlet,e,n)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((e,n)=>this._renderRow(this._footerRowOutlet,e,n)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(e,n){let o=Array.from(n?.columns||[]).map(s=>{let c=this._columnDefsByName.get(s);return c}),r=o.map(s=>s.sticky),a=o.map(s=>s.stickyEnd);this._stickyStyler.updateStickyColumns(e,r,a,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(e){let n=[];for(let o=0;o!r.when||r.when(n,e));else{let r=this._rowDefs.find(a=>a.when&&a.when(n,e))||this._defaultRowDef;r&&o.push(r)}return o.length,o}_getEmbeddedViewArgs(e,n){let o=e.rowDef,r={$implicit:e.data};return{templateRef:o.template,context:r,index:n}}_renderRow(e,n,o,r={}){let a=e.viewContainer.createEmbeddedView(n.template,r,o);return this._renderCellTemplateForItem(n,r),a}_renderCellTemplateForItem(e,n){for(let o of this._getCellTemplates(e))rs.mostRecentCellOutlet&&rs.mostRecentCellOutlet._viewContainer.createEmbeddedView(o,n);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){let e=this._rowOutlet.viewContainer;for(let n=0,o=e.length;n{let o=this._columnDefsByName.get(n);return e.extractCellTemplate(o)})}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){let e=(n,o)=>n||o.hasStickyChanged();this._headerRowDefs.reduce(e,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(e,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(e,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){let e=this._dir?this._dir.value:"ltr";this._stickyStyler=new Pb(this._isNativeHtmlTable,this.stickyCssClass,this._platform.isBrowser,this.needsPositionStickyOnElement,e,this._stickyPositioningListener,this._injector),(this._dir?this._dir.change:re()).pipe(ye(this._onDestroy)).subscribe(n=>{this._stickyStyler.direction=n,this.updateStickyColumnStyles()})}_getOwnDefs(e){return e.filter(n=>!n._table||n._table===this)}_updateNoDataRow(){let e=this._customNoDataRow||this._noDataRow;if(!e)return;let n=this._rowOutlet.viewContainer.length===0;if(n===this._isShowingNoDataRow)return;let o=this._noDataRowOutlet.viewContainer;if(n){let r=o.createEmbeddedView(e.templateRef),a=r.rootNodes[0];if(r.rootNodes.length===1&&a?.nodeType===this._document.ELEMENT_NODE){a.setAttribute("role","row"),a.classList.add(...e._contentClassNames);let s=a.querySelectorAll(e._cellSelector);for(let c=0;c{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[K0]})}return t})();var lce=[[["caption"]],[["colgroup"],["col"]],"*"],dce=["caption","colgroup, col","*"];function uce(t,i){t&1&&ae(0,2)}function mce(t,i){t&1&&(h(0,"thead",0),Vt(1,1),_(),h(2,"tbody",2),Vt(3,3)(4,4),_(),h(5,"tfoot",0),Vt(6,5),_())}function pce(t,i){t&1&&Vt(0,1)(1,3)(2,4)(3,5)}var ph=(()=>{class t extends jb{stickyCssClass="mat-mdc-table-sticky";needsPositionStickyOnElement=!1;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-mdc-table","mdc-data-table__table"],hostVars:2,hostBindings:function(n,o){n&2&&oe("mdc-table-fixed-layout",o.fixedLayout)},exportAs:["matTable"],features:[de([{provide:jb,useExisting:t},{provide:Vr,useExisting:t},{provide:_2,useClass:pl},{provide:sh,useValue:null}]),ce],ngContentSelectors:dce,decls:5,vars:2,consts:[["role","rowgroup"],["headerRowOutlet",""],["role","rowgroup",1,"mdc-data-table__content"],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(n,o){n&1&&(De(lce),ae(0),ae(1,1),E(2,uce,1,0),E(3,mce,7,0)(4,pce,4,0)),n&2&&(p(2),I(o._isServer?2:-1),p(),I(o._isNativeHtmlTable?3:4))},dependencies:[Fb,Nb,Bb,Vb],styles:[`.mat-mdc-table-sticky{position:sticky !important}mat-table{display:block}mat-header-row{min-height:var(--mat-table-header-container-height, 56px)}mat-row{min-height:var(--mat-table-row-item-container-height, 52px)}mat-footer-row{min-height:var(--mat-table-footer-container-height, 52px)}mat-row,mat-header-row,mat-footer-row{display:flex;border-width:0;border-bottom-width:1px;border-style:solid;align-items:center;box-sizing:border-box}mat-cell:first-of-type,mat-header-cell:first-of-type,mat-footer-cell:first-of-type{padding-left:24px}[dir=rtl] mat-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:first-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:first-of-type:not(:only-of-type){padding-left:0;padding-right:24px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{padding-right:24px}[dir=rtl] mat-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-header-cell:last-of-type:not(:only-of-type),[dir=rtl] mat-footer-cell:last-of-type:not(:only-of-type){padding-right:0;padding-left:24px}mat-cell,mat-header-cell,mat-footer-cell{flex:1;display:flex;align-items:center;overflow:hidden;word-wrap:break-word;min-height:inherit}.mat-mdc-table{min-width:100%;border:0;border-spacing:0;table-layout:auto;white-space:normal;background-color:var(--mat-table-background-color, var(--mat-sys-surface))}.mdc-data-table__cell{box-sizing:border-box;overflow:hidden;text-align:left;text-overflow:ellipsis}[dir=rtl] .mdc-data-table__cell{text-align:right}.mdc-data-table__cell,.mdc-data-table__header-cell{padding:0 16px}.mat-mdc-header-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-header-container-height, 56px);color:var(--mat-table-header-headline-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-header-headline-font, var(--mat-sys-title-small-font, Roboto, sans-serif));line-height:var(--mat-table-header-headline-line-height, var(--mat-sys-title-small-line-height));font-size:var(--mat-table-header-headline-size, var(--mat-sys-title-small-size, 14px));font-weight:var(--mat-table-header-headline-weight, var(--mat-sys-title-small-weight, 500))}.mat-mdc-row{height:var(--mat-table-row-item-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)))}.mat-mdc-row,.mdc-data-table__content{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-table-row-item-label-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-row-item-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-row-item-label-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-row-item-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-footer-row{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;height:var(--mat-table-footer-container-height, 52px);color:var(--mat-table-row-item-label-text-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mat-table-footer-supporting-text-font, var(--mat-sys-body-medium-font, Roboto, sans-serif));line-height:var(--mat-table-footer-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-table-footer-supporting-text-size, var(--mat-sys-body-medium-size, 14px));font-weight:var(--mat-table-footer-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mat-table-footer-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mat-mdc-header-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-header-headline-tracking, var(--mat-sys-title-small-tracking));font-weight:inherit;line-height:inherit;box-sizing:border-box;text-overflow:ellipsis;overflow:hidden;outline:none;text-align:left}[dir=rtl] .mat-mdc-header-cell{text-align:right}.mdc-data-table__row:last-child>.mat-mdc-header-cell{border-bottom:none}.mat-mdc-cell{border-bottom-color:var(--mat-table-row-item-outline-color, var(--mat-sys-outline, rgba(0, 0, 0, 0.12)));border-bottom-width:var(--mat-table-row-item-outline-width, 1px);border-bottom-style:solid;letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking));line-height:inherit}.mdc-data-table__row:last-child>.mat-mdc-cell{border-bottom:none}.mat-mdc-footer-cell{letter-spacing:var(--mat-table-row-item-label-text-tracking, var(--mat-sys-body-medium-tracking))}mat-row.mat-mdc-row,mat-header-row.mat-mdc-header-row,mat-footer-row.mat-mdc-footer-row{border-bottom:none}.mat-mdc-table tbody,.mat-mdc-table tfoot,.mat-mdc-table thead,.mat-mdc-cell,.mat-mdc-footer-cell,.mat-mdc-header-row,.mat-mdc-row,.mat-mdc-footer-row,.mat-mdc-table .mat-mdc-header-cell{background:inherit}.mat-mdc-table mat-header-row.mat-mdc-header-row,.mat-mdc-table mat-row.mat-mdc-row,.mat-mdc-table mat-footer-row.mat-mdc-footer-cell{height:unset}mat-header-cell.mat-mdc-header-cell,mat-cell.mat-mdc-cell,mat-footer-cell.mat-mdc-footer-cell{align-self:stretch}
-`],encapsulation:2})}return t})(),fh=(()=>{class t extends ch{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matCellDef",""]],features:[de([{provide:ch,useExisting:t}]),ce]})}return t})(),hh=(()=>{class t extends lh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matHeaderCellDef",""]],features:[de([{provide:lh,useExisting:t}]),ce]})}return t})(),TGe=(()=>{class t extends dh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matFooterCellDef",""]],features:[de([{provide:dh,useExisting:t}]),ce]})}return t})(),gh=(()=>{class t extends yl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[de([{provide:yl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ce]})}return t})(),_h=(()=>{class t extends Qz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[ce]})}return t})(),PGe=(()=>{class t extends Kz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[ce]})}return t})(),bh=(()=>{class t extends Xz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ce]})}return t})();var vh=(()=>{class t extends Su{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",H]},features:[de([{provide:Su,useExisting:t}]),ce]})}return t})(),LGe=(()=>{class t extends ku{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",H]},features:[de([{provide:ku,useExisting:t}]),ce]})}return t})(),yh=(()=>{class t extends uh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[de([{provide:uh,useExisting:t}]),ce]})}return t})(),Ch=(()=>{class t extends Ab{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[de([{provide:Ab,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),AGe=(()=>{class t extends zb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[de([{provide:zb,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),xh=(()=>{class t extends Rb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[de([{provide:Rb,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),zGe=(()=>{class t extends mh{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[de([{provide:mh,useExisting:t}]),ce]})}return t})();var Jz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,Zz,fe]})}return t})(),fce=9007199254740991,Eu=class extends qs{_data;_renderData=new ct([]);_filter=new ct("");_internalPageChanges=new B;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(mp(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),c=this.sortingDataAccessor(a,n),m=typeof s,f=typeof c;m!==f&&(m==="number"&&(s+=""),f==="number"&&(c+=""));let v=0;return s!=null&&c!=null?s>c?v=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new ct(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?ft(this._sort.sortChange,this._sort.initialized):re(null),e=this._paginator?ft(this._paginator.page,this._internalPageChanges,this._paginator.initialized):re(null),n=this._data,o=gi([n,this._filter]).pipe(me(([s])=>this._filterData(s))),r=gi([o,i]).pipe(me(([s])=>this._orderData(s))),a=gi([r,e]).pipe(me(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var z2=["*"];function hce(t,i){t&1&&ae(0)}var iR=["tabListContainer"],oR=["tabList"],rR=["tabListInner"],aR=["nextPaginator"],sR=["previousPaginator"],gce=["content"];function _ce(t,i){}var bce=["tabBodyWrapper"],vce=["tabHeader"];function yce(t,i){}function Cce(t,i){if(t&1&&ot(0,yce,0,0,"ng-template",12),t&2){let e=w().$implicit;D("cdkPortalOutlet",e.templateLabel)}}function xce(t,i){if(t&1&&y(0),t&2){let e=w().$implicit;T(e.textLabel)}}function Mce(t,i){if(t&1){let e=le();h(0,"div",7,2),N("click",function(){let o=G(e),r=o.$implicit,a=o.$index,s=w(),c=Nt(1);return W(s._handleClick(r,c,a))})("cdkFocusChange",function(o){let r=G(e).$index,a=w();return W(a._tabFocusChanged(o,r))}),F(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),E(6,Cce,1,1,null,12)(7,xce,1,1),_()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Nt(1),r=w();Tt(e.labelClass),oe("mdc-tab--active",r.selectedIndex===n),D("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),te("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),p(3),D("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),p(3),I(e.templateLabel?6:7)}}function wce(t,i){t&1&&ae(0)}function Dce(t,i){if(t&1){let e=le();h(0,"mat-tab-body",13),N("_onCentered",function(){G(e);let o=w();return W(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){G(e);let r=w();return W(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){G(e);let r=w();return W(r._bodyCentered(o))}),_()}if(t&2){let e=i.$implicit,n=i.$index,o=w();Tt(e.bodyClass),D("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),te("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var Sce=["mat-tab-nav-bar",""],kce=["mat-tab-link",""],Ece=new L("MatTabContent"),Ice=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTabContent",""]],features:[de([{provide:Ece,useExisting:t}])]})}return t})(),Oce=new L("MatTabLabel"),cR=new L("MAT_TAB"),Tce=(()=>{class t extends ZE{_closestTab=d(cR,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[de([{provide:Oce,useExisting:t}]),ce]})}return t})(),lR=new L("MAT_TAB_GROUP"),Pce=(()=>{class t{_viewContainerRef=d(dt);_closestTabGroup=d(lR,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new B;position=null;origin=null;isActive=!1;constructor(){d(at).load(cn)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Wn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,Tce,5),Ee(r,Ice,7,tt)),n&2){let a;U(a=$())&&(o.templateLabel=a.first),U(a=$())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&ue(tt,7),n&2){let r;U(r=$())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&te("id",null)},inputs:{disabled:[2,"disabled","disabled",H],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[de([{provide:cR,useExisting:t}]),Re],ngContentSelectors:z2,decls:1,vars:0,template:function(n,o){n&1&&(De(),Mr(0,hce,1,0,"ng-template"))},encapsulation:2})}return t})(),Hb="mdc-tab-indicator--active",eR="mdc-tab-indicator--no-transition",Mh=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},dR=(()=>{class t{_elementRef=d(Q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(Hb);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(eR),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(eR),n.classList.add(Hb),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Hb)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.createElement("span");n.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",H]}})}return t})();var uR=(()=>{class t extends dR{elementRef=d(Q);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(te("aria-disabled",!!o.disabled),oe("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",H]},features:[ce]})}return t})(),tR={passive:!0},Lce=650,Ace=100,mR=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_viewportRuler=d(Gn);_dir=d(bt,{optional:!0});_ngZone=d(se);_platform=d(je);_sharedResizeObserver=d(Jp);_injector=d(be);_renderer=d(Ke);_animationsDisabled=Ue();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new j;indexFocused=new j;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),tR),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),tR))}ngAfterContentInit(){let e=this._dir?this._dir.change:re("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(hr(32),ye(this._destroyed)),o=this._viewportRuler.change(150).pipe(ye(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Tr(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),Ct(r,{injector:this._injector}),ft(e,o,n,this._items.changes,this._itemsResized()).pipe(ye(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Sn:this._items.changes.pipe(We(this._items),lt(e=>new Fe(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Cc(1),Ae(e=>e.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!St(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,c;this._getLayoutDirection()=="ltr"?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);let m=this.scrollDistance,f=this.scrollDistance+o;sf&&(this.scrollDistance+=Math.min(c-f,s-m))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-n>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ta(Lce,Ace).pipe(ye(ft(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",H],selectedIndex:[2,"selectedIndex","selectedIndex",ut]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),zce=(()=>{class t extends mR{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Mh(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,uR,4),n&2){let a;U(a=$())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&(ue(iR,7),ue(oR,7),ue(rR,7),ue(aR,5),ue(sR,5)),n&2){let r;U(r=$())&&(o._tabListContainer=r.first),U(r=$())&&(o._tabList=r.first),U(r=$())&&(o._tabListInner=r.first),U(r=$())&&(o._nextPaginator=r.first),U(r=$())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&oe("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",H]},features:[ce],ngContentSelectors:z2,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",5,0),N("click",function(){return G(r),W(o._handlePaginatorClick("before"))})("mousedown",function(s){return G(r),W(o._handlePaginatorPress("before",s))})("touchend",function(){return G(r),W(o._stopInterval())}),F(2,"div",6),_(),h(3,"div",7,1),N("keydown",function(s){return G(r),W(o._handleKeydown(s))}),h(5,"div",8,2),N("cdkObserveContent",function(){return G(r),W(o._onContentChanges())}),h(7,"div",9,3),ae(9),_()()(),h(10,"div",10,4),N("mousedown",function(s){return G(r),W(o._handlePaginatorPress("after",s))})("click",function(){return G(r),W(o._handlePaginatorClick("after"))})("touchend",function(){return G(r),W(o._stopInterval())}),F(12,"div",6),_()}n&2&&(oe("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),D("matRippleDisabled",o._disableScrollBefore||o.disableRipple),p(3),oe("_mat-animation-noopable",o._animationsDisabled),p(2),te("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),p(5),oe("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),D("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[mi,M0],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}}
-`],encapsulation:2})}return t})(),pR=new L("MAT_TABS_CONFIG"),nR=(()=>{class t extends Mi{_host=d(Ub);_ngZone=d(se);_centeringSub=Se.EMPTY;_leavingSub=Se.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(We(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTabBodyHost",""]],features:[ce]})}return t})(),Ub=(()=>{class t{_elementRef=d(Q);_dir=d(bt,{optional:!0});_ngZone=d(se);_injector=d(be);_renderer=d(Ke);_diAnimationsDisabled=Ue();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=Se.EMPTY;_position;_previousPosition;_onCentering=new j;_beforeCentering=new j;_afterLeavingCenter=new j;_onCentered=new j(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=d(xe);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),Ct(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),Ct(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&(ue(nR,5),ue(gce,5)),n&2){let r;U(r=$())&&(o._portalHost=r.first),U(r=$())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&te("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(h(0,"div",1,0),ot(2,_ce,0,0,"ng-template",2),_()),n&2&&oe("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[nR,Ar],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)}
-`],encapsulation:2})}return t})(),uWe=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_ngZone=d(se);_tabsSubscription=Se.EMPTY;_tabLabelSubscription=Se.EMPTY;_tabBodySubscription=Se.EMPTY;_diAnimationsDisabled=Ue();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new In;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new j;focusChange=new j;animationDone=new j;selectedTabChange=new j(!0);_groupId;_isServer=!d(je).isBrowser;constructor(){let e=d(pR,{optional:!0});this._groupId=d(He).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(We(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new $b;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ft(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Pce,5),n&2){let a;U(a=$())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&(ue(bce,5),ue(vce,5),ue(Ub,5)),n&2){let r;U(r=$())&&(o._tabBodyWrapper=r.first),U(r=$())&&(o._tabHeader=r.first),U(r=$())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(te("mat-align-tabs",o.alignTabs),Tt("mat-"+(o.color||"primary")),At("--mat-tab-animation-duration",o.animationDuration),oe("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",H],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",H],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",H],selectedIndex:[2,"selectedIndex","selectedIndex",ut],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ut],disablePagination:[2,"disablePagination","disablePagination",H],disableRipple:[2,"disableRipple","disableRipple",H],preserveContent:[2,"preserveContent","preserveContent",H],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[de([{provide:lR,useExisting:t}])],ngContentSelectors:z2,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"mat-tab-header",3,0),N("indexFocused",function(s){return G(r),W(o._focusChanged(s))})("selectFocusedIndex",function(s){return G(r),W(o.selectedIndex=s)}),Xe(2,Mce,8,17,"div",4,ht),_(),E(4,wce,1,0),h(5,"div",5,1),Xe(7,Dce,1,10,"mat-tab-body",6,ht),_()}n&2&&(D("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),C1("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),p(2),Ze(o._tabs),p(2),I(o._isServer?4:-1),p(),oe("_mat-animation-noopable",o._animationsDisabled()),p(2),Ze(o._tabs))},dependencies:[zce,uR,x0,mi,Mi,Ub],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important}
-`],encapsulation:2})}return t})(),$b=class{index;tab},Rce=(()=>{class t extends mR{_focusedItem=we(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new ct(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=we(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=d(pR,{optional:!0});super(),this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Mh(this._items),this._items.changes.pipe(We(null),ye(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(We(null),ye(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let n=0;n.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}
-`],encapsulation:2})}return t})(),Nce=(()=>{class t extends dR{_tabNavBar=d(Rce);elementRef=d(Q);_focusMonitor=d(sn);_destroyed=new B;_isActive=!1;_tabIndex=Zn(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=we(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=d(He).getId("mat-tab-link-");constructor(){super(),d(at).load(cn);let e=d(nl,{optional:!0}),n=d(new dn("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=n==null?0:parseInt(n)||0,Ue()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(ye(this._destroyed)).subscribe(o=>{this.fitInkBarToContent=o})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(n,o){n&1&&N("focus",function(){return o._handleFocus()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(te("aria-controls",o._getAriaControls())("aria-current",o._getAriaCurrent())("aria-disabled",o.disabled)("aria-selected",o._getAriaSelected())("id",o.id)("tabIndex",o._tabIndex())("role",o._getRole()),oe("mat-mdc-tab-disabled",o.disabled)("mdc-tab--active",o.active))},inputs:{active:[2,"active","active",H],disabled:[2,"disabled","disabled",H],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],id:"id"},exportAs:["matTabLink"],features:[ce],attrs:kce,ngContentSelectors:z2,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(n,o){n&1&&(De(),F(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),ae(4),_()()),n&2&&(p(),D("matRippleTrigger",o.elementRef.nativeElement)("matRippleDisabled",o.rippleDisabled))},dependencies:[mi],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}}
-`],encapsulation:2,changeDetection:0})}return t})(),mWe=(()=>{class t{id=d(He).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(n,o){n&2&&te("aria-labelledby",o._activeTabId)("id",o.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:z2,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),fR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var Fce=["*",[["mat-toolbar-row"]]],Vce=["*","mat-toolbar-row"],Bce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),wWe=(()=>{class t{_elementRef=d(Q);_platform=d(je);_document=d(Me);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Bce,5),n&2){let a;U(a=$())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tt(o.color?"mat-"+o.color:""),oe("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Vce,decls:2,vars:0,template:function(n,o){n&1&&(De(Fce),ae(0),ae(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}
-`],encapsulation:2,changeDetection:0})}return t})();var hR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var wh=class{dataNodes;expansionModel=new uo(!0);trackBy;getLevel;isExpandable;getChildren;toggle(i){this.expansionModel.toggle(this._trackByValue(i))}expand(i){this.expansionModel.select(this._trackByValue(i))}collapse(i){this.expansionModel.deselect(this._trackByValue(i))}isExpanded(i){return this.expansionModel.isSelected(this._trackByValue(i))}toggleDescendants(i){this.expansionModel.isSelected(this._trackByValue(i))?this.collapseDescendants(i):this.expandDescendants(i)}collapseAll(){this.expansionModel.clear()}expandDescendants(i){let e=[i];e.push(...this.getDescendants(i)),this.expansionModel.select(...e.map(n=>this._trackByValue(n)))}collapseDescendants(i){let e=[i];e.push(...this.getDescendants(i)),this.expansionModel.deselect(...e.map(n=>this._trackByValue(n)))}_trackByValue(i){return this.trackBy?this.trackBy(i):i}},gR=class extends wh{getLevel;isExpandable;options;constructor(i,e,n){super(),this.getLevel=i,this.isExpandable=e,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(i){let e=this.dataNodes.indexOf(i),n=[];for(let o=e+1;othis._trackByValue(i)))}},_R=class extends wh{getChildren;options;constructor(i,e){super(),this.getChildren=i,this.options=e,this.options&&(this.trackBy=this.options.trackBy),this.options?.isExpandable&&(this.isExpandable=this.options.isExpandable)}expandAll(){this.expansionModel.clear();let i=this.dataNodes.reduce((e,n)=>[...e,...this.getDescendants(n),n],[]);this.expansionModel.select(...i.map(e=>this._trackByValue(e)))}getDescendants(i){let e=[];return this._getDescendants(e,i),e.splice(1)}_getDescendants(i,e){i.push(e);let n=this.getChildren(e);Array.isArray(n)?n.forEach(o=>this._getDescendants(i,o)):ai(n)&&n.pipe(Be(1),Ae(Boolean)).subscribe(o=>{for(let r of o)this._getDescendants(i,r)})}},Ou=new L("CDK_TREE_NODE_OUTLET_NODE"),Iu=(()=>{class t{viewContainer=d(dt);_node=d(Ou,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodeOutlet",""]]})}return t})(),Gb=class{$implicit;level;index;count;constructor(i){this.$implicit=i}},Dh=(()=>{class t{template=d(tt);when;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return t})();function bR(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var R2=(()=>{class t{_differs=d(Io);_changeDetectorRef=d(xe);_elementRef=d(Q);_dir=d(bt);_onDestroy=new B;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new ct({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new ct([]);_nodeType=new ct(null);_nodes=new ct(new Map);_keyManagerNodes=new ct([]);_keyManagerFactory=d(bk);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){let e=this._nodeDefs.filter(n=>!n.when);e.length>1,this._defaultNodeDef=e[0]}_setNodeTypeIfUnset(e){this._nodeType.value===null&&this._nodeType.next(e)}_switchDataSource(e){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new uo(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;dl(this._dataSource)?e=this._dataSource.connect(this):ai(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=re(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(ye(this._onDestroy)).subscribe(n=>{this._renderDataChanges(n)}))}_getRenderData(e){let n=this._getExpansionModel();return gi([e,this._nodeType,n.changed.pipe(We(null),Ot(o=>{this._emitExpansionChanges(o)}))]).pipe(lt(([o,r])=>r===null?re({renderNodes:o,flattenedNodes:null,nodeType:r}):this._computeRenderingData(o,r).pipe(me(a=>Ne(q({},a),{nodeType:r})))))}_renderDataChanges(e){if(e.nodeType===null){this.renderNodeChanges(e.renderNodes);return}this._updateCachedData(e.flattenedNodes),this.renderNodeChanges(e.renderNodes),this._updateKeyManagerItems(e.flattenedNodes)}_emitExpansionChanges(e){if(!e)return;let n=this._nodes.value;for(let o of e.added)n.get(o)?._emitExpansionState(!0);for(let o of e.removed)n.get(o)?._emitExpansionState(!1)}_initializeKeyManager(){let e=gi([this._keyManagerNodes,this._nodes]).pipe(me(([o,r])=>o.reduce((a,s)=>{let c=r.get(this._getExpansionKey(s));return c&&a.push(c),a},[]))),n={trackBy:o=>this._getExpansionKey(o.data),skipPredicate:o=>!!o.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value};this._keyManager=this._keyManagerFactory(e,n)}_initializeDataDiffer(){let e=this.trackBy??((n,o)=>this._getExpansionKey(o));this._dataDiffer=this._differs.find([]).create(e)}_checkTreeControlUsage(){}renderNodeChanges(e,n=this._dataDiffer,o=this._nodeOutlet.viewContainer,r){let a=n.diff(e);!a&&!this._viewInit||(a?.forEachOperation((s,c,m)=>{if(s.previousIndex==null)this.insertNode(e[m],m,o,r);else if(m==null)o.remove(c);else{let f=o.get(c);o.move(f,m)}}),a?.forEachIdentityChange(s=>{let c=s.item;if(s.currentIndex!=null){let m=o.get(s.currentIndex);m.context.$implicit=c}}),r?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(e,n){if(this._nodeDefs.length===1)return this._nodeDefs.first;let o=this._nodeDefs.find(r=>r.when&&r.when(n,e))||this._defaultNodeDef;return o}insertNode(e,n,o,r){let a=this._getLevelAccessor(),s=this._getNodeDef(e,n),c=this._getExpansionKey(e),m=new Gb(e);m.index=n,r??=this._parents.get(c)??void 0,a?m.level=a(e):r!==void 0&&this._levels.has(this._getExpansionKey(r))?m.level=this._levels.get(this._getExpansionKey(r))+1:m.level=0,this._levels.set(c,m.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,m,n),va.mostRecentTreeNode&&(va.mostRecentTreeNode.data=e)}isExpanded(e){return!!(this.treeControl?.isExpanded(e)||this._expansionModel?.isSelected(this._getExpansionKey(e)))}toggle(e){this.treeControl?this.treeControl.toggle(e):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(e))}expand(e){this.treeControl?this.treeControl.expand(e):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(e))}collapse(e){this.treeControl?this.treeControl.collapse(e):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(e))}toggleDescendants(e){this.treeControl?this.treeControl.toggleDescendants(e):this._expansionModel&&(this.isExpanded(e)?this.collapseDescendants(e):this.expandDescendants(e))}expandDescendants(e){if(this.treeControl)this.treeControl.expandDescendants(e);else if(this._expansionModel){let n=this._expansionModel;n.select(this._getExpansionKey(e)),this._getDescendants(e).pipe(Be(1),ye(this._onDestroy)).subscribe(o=>{n.select(...o.map(r=>this._getExpansionKey(r)))})}}collapseDescendants(e){if(this.treeControl)this.treeControl.collapseDescendants(e);else if(this._expansionModel){let n=this._expansionModel;n.deselect(this._getExpansionKey(e)),this._getDescendants(e).pipe(Be(1),ye(this._onDestroy)).subscribe(o=>{n.deselect(...o.map(r=>this._getExpansionKey(r)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.select(...e))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.deselect(...e))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(e){let n=this._getLevelAccessor(),o=this._expansionModel??this.treeControl?.expansionModel;if(!o)return re([]);let r=this._getExpansionKey(e),a=o.changed.pipe(lt(c=>c.added.includes(r)?re(!0):c.removed.includes(r)?re(!1):Sn),We(this.isExpanded(e)));if(n)return gi([a,this._flattenedNodes]).pipe(me(([c,m])=>c?this._findChildrenByLevel(n,m,e,1):[]));let s=this._getChildrenAccessor();if(s)return Jc(s(e)??[]);throw bR()}_findChildrenByLevel(e,n,o,r){let a=this._getExpansionKey(o),s=n.findIndex(v=>this._getExpansionKey(v)===a),c=e(o),m=c+r,f=[];for(let v=s+1;vthis._getExpansionKey(r)===o)+1}_getNodeParent(e){let n=this._parents.get(this._getExpansionKey(e.data));return n&&this._nodes.value.get(this._getExpansionKey(n))}_getNodeChildren(e){return this._getDirectChildren(e.data).pipe(me(n=>n.reduce((o,r)=>{let a=this._nodes.value.get(this._getExpansionKey(r));return a&&o.push(a),o},[])))}_sendKeydownToKeyManager(e){if(e.target===this._elementRef.nativeElement)this._keyManager.onKeydown(e);else{let n=this._nodes.getValue();for(let[,o]of n)if(e.target===o._elementRef.nativeElement){this._keyManager.onKeydown(e);break}}}_getDescendants(e){if(this.treeControl)return re(this.treeControl.getDescendants(e));if(this.levelAccessor){let n=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,e,1/0);return re(n)}if(this.childrenAccessor)return this._getAllChildrenRecursively(e).pipe(z3((n,o)=>(n.push(...o),n),[]));throw bR()}_getAllChildrenRecursively(e){return this.childrenAccessor?Jc(this.childrenAccessor(e)).pipe(Be(1),lt(n=>{for(let o of n)this._parents.set(this._getExpansionKey(o),e);return re(...n).pipe(Qi(o=>Li(re([o]),this._getAllChildrenRecursively(o))))})):re([])}_getExpansionKey(e){return this.expansionKey?.(e)??e}_getAriaSet(e){let n=this._getExpansionKey(e),o=this._parents.get(n),r=o?this._getExpansionKey(o):null;return this._ariaSets.get(r)??[e]}_findParentForNode(e,n,o){if(!o.length)return null;let r=this._levels.get(this._getExpansionKey(e))??0;for(let a=n-1;a>=0;a--){let s=o[a];if((this._levels.get(this._getExpansionKey(s))??0){let a=this._getExpansionKey(r);this._parents.has(a)||this._parents.set(a,null),this._levels.set(a,n);let s=Jc(o(r));return Li(re([r]),s.pipe(Be(1),Ot(c=>{this._ariaSets.set(a,[...c??[]]);for(let m of c??[]){let f=this._getExpansionKey(m);this._parents.set(f,r),this._levels.set(f,n+1)}}),lt(c=>c?this._flattenNestedNodesWithExpansion(c,n+1).pipe(me(m=>this.isExpanded(r)?m:[])):re([]))))}),z3((r,a)=>(r.push(...a),r),[])):re([...e])}_computeRenderingData(e,n){if(this.childrenAccessor&&n==="flat")return this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(me(o=>({renderNodes:o,flattenedNodes:o})));if(this.levelAccessor&&n==="nested"){let o=this.levelAccessor;return re(e.filter(r=>o(r)===0)).pipe(me(r=>({renderNodes:r,flattenedNodes:e})),Ot(({flattenedNodes:r})=>{this._calculateParents(r)}))}else return n==="flat"?re({renderNodes:e,flattenedNodes:e}).pipe(Ot(({flattenedNodes:o})=>{this._calculateParents(o)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(me(o=>({renderNodes:e,flattenedNodes:o}))))}_updateCachedData(e){this._flattenedNodes.next(e)}_updateKeyManagerItems(e){this._keyManagerNodes.next(e)}_calculateParents(e){let n=this._getLevelAccessor();if(n){this._clearPreviousCache();for(let o=0;o{n.push(this._getExpansionKey(r.data)),o.push(this._getDescendants(r.data))}),o.length>0?gi(o).pipe(Be(1),ye(this._onDestroy)).subscribe(r=>{r.forEach(a=>a.forEach(s=>n.push(this._getExpansionKey(s)))),e(n)}):e(n)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-tree"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Dh,5),n&2){let a;U(a=$())&&(o._nodeDefs=a)}},viewQuery:function(n,o){if(n&1&&ue(Iu,7),n&2){let r;U(r=$())&&(o._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(n,o){n&1&&N("keydown",function(a){return o._sendKeydownToKeyManager(a)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[Iu],encapsulation:2})}return t})(),va=(()=>{class t{_elementRef=d(Q);_tree=d(R2);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(e){}get isExpandable(){return this._isExpandable()}set isExpandable(e){this._inputIsExpandable=e,!(this.data&&!this._isExpandable||!this._inputIsExpandable)&&(this._inputIsExpanded?this.expand():this._inputIsExpanded===!1&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(e){this._inputIsExpanded=e,e?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new j;expandedChange=new j;static mostRecentTreeNode=null;_destroyed=new B;_dataChanges=new B;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._dataChanges.next())}_data;get isLeafNode(){return this._tree.treeControl?.isExpandable!==void 0&&!this._tree.treeControl.isExpandable(this._data)?!0:this._tree.treeControl?.isExpandable===void 0&&this._tree.treeControl?.getDescendants(this._data).length===0}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=d(xe);constructor(){t.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=jce(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(me(()=>this.isExpanded),Wl(),ye(this._destroyed)).pipe(ye(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(e){this.expandedChange.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(n,o){n&1&&N("click",function(){return o._setActiveItem()})("focus",function(){return o._focusItem()}),n&2&&(Lt("tabIndex",o._tabindex),te("aria-expanded",o._getAriaExpanded())("aria-level",o.level+1)("aria-posinset",o._getPositionInSet())("aria-setsize",o._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",H],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",H],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return t})();function jce(t){let i=t.parentElement;for(;i&&!Hce(i);)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?ut(i.getAttribute("aria-level")):0:-1}function Hce(t){let i=t.classList;return!!(i?.contains("cdk-nested-tree-node")||i?.contains("cdk-tree"))}var Wb=(()=>{class t extends va{_type="nested";_differs=d(Io);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe(ye(this._destroyed)).subscribe(e=>this.updateChildrenNodes(e)),this.nodeOutlet.changes.pipe(ye(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(e){let n=this._getNodeOutlet();if(e&&(this._children=e),n&&this._children){let o=n.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,o,this._data)}else this._dataDiffer.diff([])}_clear(){let e=this._getNodeOutlet();e&&(e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){let e=this.nodeOutlet;return e&&e.find(n=>!n._node||n._node===this)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Iu,5),n&2){let a;U(a=$())&&(o.nodeOutlet=a)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[de([{provide:va,useExisting:t},{provide:Ou,useExisting:t}]),ce]})}return t})(),Uce=/([A-Za-z%]+)$/,qb=(()=>{class t{_treeNode=d(va);_tree=d(R2);_element=d(Q);_dir=d(bt,{optional:!0});_currentPadding;_destroyed=new B;indentUnits="px";get level(){return this._level}set level(e){this._setLevelInput(e)}_level;get indent(){return this._indent}set indent(e){this._setIndentInput(e)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe(ye(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){let e=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,n=this._level==null?e:this._level;return typeof n=="number"?`${n*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){let n=this._paddingIndent();if(n!==this._currentPadding||e){let o=this._element.nativeElement,r=this._dir&&this._dir.value==="rtl"?"paddingRight":"paddingLeft",a=r==="paddingLeft"?"paddingRight":"paddingLeft";o.style[r]=n||"",o.style[a]="",this._currentPadding=n}}_setLevelInput(e){this._level=isNaN(e)?null:e,this._setPadding()}_setIndentInput(e){let n=e,o="px";if(typeof e=="string"){let r=e.split(Uce);n=r[0],o=r[1]||o}this.indentUnits=o,this._indent=ut(n),this._setPadding()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",ut],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return t})(),Yb=(()=>{class t{_tree=d(R2);_treeNode=d(va);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(n,o){n&1&&N("click",function(a){return o._toggle(),a.stopPropagation()})("keydown.Enter",function(a){return o._toggle(),a.preventDefault()})("keydown.Space",function(a){return o._toggle(),a.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",H]}})}return t})();var vR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function $ce(t){return!!t._isNoopTreeKeyManager}var oqe=(()=>{class t extends va{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(e){this._tabIndexInputBinding=e}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return $ce(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e}constructor(){super();let e=d(new dn("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(e)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(n,o){n&1&&N("click",function(){return o._focusItem()}),n&2&&(Lt("tabIndex",o._getTabindexAttribute()),te("aria-expanded",o._getAriaExpanded())("aria-level",o.level+1)("aria-posinset",o._getPositionInSet())("aria-setsize",o._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",e=>e==null?0:ut(e)],disabled:[2,"disabled","disabled",H]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[de([{provide:va,useExisting:t}]),ce]})}return t})(),rqe=(()=>{class t extends Dh{data;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[de([{provide:Dh,useExisting:t}]),ce]})}return t})(),aqe=(()=>{class t extends Wb{node;get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e}get tabIndex(){return this.isDisabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=e}_tabIndex;ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[de([{provide:Wb,useExisting:t},{provide:va,useExisting:t},{provide:Ou,useExisting:t}]),ce]})}return t})(),sqe=(()=>{class t extends qb{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",ut],indent:[0,"matTreeNodePaddingIndent","indent"]},features:[de([{provide:qb,useExisting:t}]),ce]})}return t})(),yR=(()=>{class t{viewContainer=d(dt);_node=d(Ou,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[de([{provide:Iu,useExisting:t}])]})}return t})(),cqe=(()=>{class t extends R2{_nodeOutlet=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-tree"]],viewQuery:function(n,o){if(n&1&&ue(yR,7),n&2){let r;U(r=$())&&(o._nodeOutlet=r.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[de([{provide:R2,useExisting:t}]),ce],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[yR],styles:[`.mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0}
-`],encapsulation:2})}return t})(),lqe=(()=>{class t extends Yb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[de([{provide:Yb,useExisting:t}]),ce]})}return t})();var wR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[vR,fe,fe]})}return t})(),CR=class{transformFunction;getLevel;isExpandable;getChildren;constructor(i,e,n,o){this.transformFunction=i,this.getLevel=e,this.isExpandable=n,this.getChildren=o}_flattenNode(i,e,n,o){let r=this.transformFunction(i,e);if(n.push(r),this.isExpandable(r)){let a=this.getChildren(i);a&&(Array.isArray(a)?this._flattenChildren(a,e,n,o):a.pipe(Be(1)).subscribe(s=>{this._flattenChildren(s,e,n,o)}))}return n}_flattenChildren(i,e,n,o){i.forEach((r,a)=>{let s=o.slice();s.push(a!=i.length-1),this._flattenNode(r,e+1,n,s)})}flattenNodes(i){let e=[];return i.forEach(n=>this._flattenNode(n,0,e,[])),e}expandFlattenedNodes(i,e){let n=[],o=[];return o[0]=!0,i.forEach(r=>{let a=!0;for(let s=0;s<=this.getLevel(r);s++)a=a&&o[s];a&&n.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),n}},xR=class extends qs{_treeControl;_treeFlattener;_flattenedData=new ct([]);_expandedData=new ct([]);get data(){return this._data.value}set data(i){this._data.next(i),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}_data=new ct([]);constructor(i,e,n){super(),this._treeControl=i,this._treeFlattener=e,n&&(this.data=n)}connect(i){return ft(i.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(me(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}},MR=class extends qs{get data(){return this._data.value}set data(i){this._data.next(i)}_data=new ct([]);connect(i){return ft(i.viewChange,this._data).pipe(me(()=>this.data))}disconnect(){}};var Gce=["searchSelectInput"],Wce=["innerSelectSearch"],qce=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Yce=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function Qce(t,i){if(t&1){let e=le();h(0,"mat-checkbox",10),N("change",function(o){G(e);let r=w();return W(r._emitSelectAllBooleanToParent(o.checked))}),_()}if(t&2){let e=w();D("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function Kce(t,i){t&1&&F(0,"mat-spinner",7)}function Xce(t,i){t&1&&ae(0,1)}function Zce(t,i){if(t&1&&F(0,"mat-icon",12),t&2){let e=w(2);D("svgIcon",e.closeSvgIcon)}}function Jce(t,i){if(t&1&&(h(0,"mat-icon"),y(1),_()),t&2){let e=w(2);p(),ne(" ",e.closeIcon," ")}}function ele(t,i){if(t&1){let e=le();h(0,"button",11),N("click",function(){G(e);let o=w();return W(o._reset(!0))}),E(1,Xce,1,0)(2,Zce,1,1,"mat-icon",12)(3,Jce,2,1,"mat-icon"),_()}if(t&2){let e=w();p(),I(e.clearIcon?1:e.closeSvgIcon?2:3)}}function tle(t,i){t&1&&ae(0,2)}function nle(t,i){if(t&1&&y(0),t&2){let e=w(2);ne(" ",e.noEntriesFoundLabel," ")}}function ile(t,i){if(t&1&&(h(0,"div",9),E(1,tle,1,0)(2,nle,1,1),_()),t&2){let e=w();p(),I(e.noEntriesFound?1:2)}}var ole=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),rle=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ale=new L("mat-selectsearch-default-options"),sle=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),Qb=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new j;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new ct(null);optionsList$=this._options$.pipe(lt(e=>e?e.changes.pipe(me(n=>n.toArray()),We(e.toArray())):re(null)));optionsLength$=this.optionsList$.pipe(me(e=>e?e.length:0));previousSelectedValues;_formControl=new Ls("",{nonNullable:!0});_showNoEntriesFound$=gi([this._formControl.valueChanges,this.optionsLength$]).pipe(me(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new B;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of rle)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error(" must be placed inside a  element"),this.matSelect.openedChange.pipe(td(1),ye(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(Be(1),lt(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Ot(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(ye(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(ye(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(ye(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(ye(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(Ae(n=>n!==this._lastExternalInputValue),Ot(()=>this._lastExternalInputValue=void 0),ye(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(ye(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(Ce(qn),Ce(xe),Ce(Gn),Ce(ln,8),Ce(Bt,8),Ce(ale,8))};static \u0275cmp=P({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,ole,5),Ee(r,sle,5)),n&2){let a;U(a=$())&&(o.clearIcon=a.first),U(a=$())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&(ue(Gce,7,Q),ue(Wce,7,Q)),n&2){let r;U(r=$())&&(o.searchSelectInput=r.first),U(r=$())&&(o.innerSelectSearch=r.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},features:[de([{provide:di,useExisting:kt(()=>t),multi:!0}])],ngContentSelectors:Yce,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){if(n&1){let r=le();De(qce),F(0,"input",2),h(1,"div",3,0)(3,"div",4),E(4,Qce,1,5,"mat-checkbox",5),h(5,"input",6,1),N("keydown",function(s){return G(r),W(o._handleKeydown(s))})("keyup",function(s){return G(r),W(o._handleKeyup(s))})("blur",function(){return G(r),W(o.onBlur())}),_(),E(7,Kce,1,0,"mat-spinner",7),E(8,ele,4,1,"button",8),ae(9),_(),F(10,"mat-divider"),_(),E(11,ile,3,1,"div",9),S(12,"async")}n&2&&(p(),oe("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),p(3),I(o._isToggleAllCheckboxVisible()?4:-1),p(),D("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),te("aria-label",o.ariaLabel),p(2),I(o.searching?7:-1),p(),I(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),p(3),I(k(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Xd,ve,yi,mn,Si,il,rc,mo,Dz,Co,_a,ni],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-sys-surface-container, var(--mat-select-panel-background-color, white))}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]   .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[dir=rtl][_nghost-%COMP%]   .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%]   .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%]   .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%]   .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px}  .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all}  .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0}  .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none}  .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%]   .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl]   [_nghost-%COMP%]   .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0})}return t})();var Sh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[Qb]})}return t})();var Kb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({providers:[{provide:tf,useValue:{appearance:"fill"}},{provide:yb,useValue:{showError:!0,displayDefaultIndicatorType:!1}}],imports:[tz,xk,sz,_a,uz,zE,Lk,mz,QI,d9,zf,bz,Ws,sP,Hf,KE,xz,tP,xI,Mz,Ez,Sz,Tz,eu,Sh,Lz,zz,Az,Fz,jz,Wz,Jz,fR,hR,hu,wR,DP]})}}return t})();var Xb=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},N2=(()=>{class t{_document=d(Me);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new Xb(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lle(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=w(2);return W(o.copyValue())}),F(1,"fa-icon",4),_()}}function dle(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=w(2);return W(o.showValue())}),F(1,"fa-icon",6),_()}if(t&2){let e=w(2);p(),D("title",e.externalId)}}function ule(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){G(e);let o=w(2);return W(o.showValue())}),y(1),S(2,"externalIdentifier"),_()}if(t&2){let e=w(2);p(),T(k(2,1,e.externalId))}}function mle(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=w(2);return W(o.showValue())}),y(1),_()}if(t&2){let e=w(2);p(),T(e.externalId)}}function ple(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){G(e);let o=w(2);return W(o.showValue())}),F(1,"fa-icon",6),_()}if(t&2){let e=w(2);p(),D("title",e.externalId)}}function fle(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=w(2);return W(o.copyValue())}),F(1,"fa-icon",4),_()}}function hle(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){G(e);let o=w();return W(o.mouseEnter())})("mouseleave",function(){G(e);let o=w();return W(o.mouseLeave())}),E(1,lle,2,0,"span"),E(2,dle,2,1,"span",1),E(3,ule,3,3,"span",2),E(4,mle,2,1,"span"),E(5,ple,2,1,"span",2),E(6,fle,2,0,"span",1),_()}if(t&2){let e=w();p(),I(e.displayL&&e.iconVisible?1:-1),p(),I(e.displayL&&!e.completed&&e.iconVisible&&e.isLongValue()?2:-1),p(),I(e.completed?-1:3),p(),I(e.completed?4:-1),p(),I(e.displayR&&!e.completed&&e.iconVisible&&e.isLongValue()?5:-1),p(),I(e.displayR&&e.iconVisible?6:-1)}}var DR=(()=>{class t{constructor(){this.clipboard=d(N2),this.alertService=d(Os),this.completed=!1,this.display="right",this.iconVisible=!1,this.displayL=!1,this.displayR=!0,this.emptyValue=!1}ngOnInit(){this.emptyValue=!this.externalId||this.externalId==="",this.displayL=this.display==="left",this.displayR=this.display==="right"}isLongValue(){return this.externalId==null?!1:this.externalId.length>15}showValue(){this.completed=!this.completed}copyValue(){this.clipboard.copy(this.externalId),this.alertService.alert({type:"Clipboard",message:"Copied: "+this.externalId})}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-external-identifier"]],inputs:{externalId:"externalId",completed:"completed",display:"display"},decls:1,vars:1,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-3"],[1,"m-l-5"],[3,"click"],["icon","copy","size","sm","title","Copy External Id"],[1,"m-l-3",3,"click"],["icon","eye","size","sm",3,"title"],[1,"m-l-5",3,"click"]],template:function(n,o){n&1&&E(0,hle,7,6,"span"),n&2&&I(o.emptyValue?-1:0)},dependencies:[he,ve,Yt,Wm],encapsulation:2})}}return t})();var kh=(()=>{class t{constructor(){this.http=d(Bn)}getFilteredClients(e,n,o,r,a){let s=new ee().set("displayName",r).set("orphansOnly",o.toString()).set("sortOrder",n).set("orderBy",e);return a&&(s=s.set("officeId",a)),this.http.get("/clients",{params:s})}getClients(e,n,o,r){let a=new ee().set("offset",o.toString()).set("limit",r.toString()).set("sortOrder",n).set("orderBy",e);return this.http.get("/clients",{params:a})}getClientTemplate(){return this.http.get("/clients/template")}getClientWithOfficeTemplate(e){return this.http.get(`/clients/template?officeId=${e}&staffInSelectedOfficeOnly=true`)}getClientData(e){return this.http.get(`/clients/${e}`)}createClient(e){return this.http.post("/clients",e)}updateClient(e,n){return this.http.put(`/clients/${e}`,n)}deleteClient(e){return this.http.delete(`/clients/${e}`)}getClientDataAndTemplate(e){let n=new ee().set("template","true").set("staffInSelectedOfficeOnly","true");return this.http.get(`/clients/${e}`,{params:n})}getClientDatatables(){let e=new ee().set("apptable","m_client");return this.http.get("/datatables",{params:e})}getClientDatatable(e,n){let o=new ee().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addClientDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editClientDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new ee().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}getClientAccountData(e){return this.http.get(`/clients/${e}/accounts`)}getClientChargesData(e){let n=new ee().set("pendingPayment","true");return this.http.get(`/clients/${e}/charges`,{params:n})}getSelectedChargeData(e,n){let o=new ee().set("associations","all");return this.http.get(`/clients/${e}/charges/${n}`,{params:o})}waiveClientCharge(e){let n=new ee().set("command","waive");return this.http.post(`/clients/${e.clientId}/charges/${e.resourceType}`,e,{params:n})}getAllClientCharges(e){return this.http.get(`/clients/${e}/charges`)}undoTransaction(e){return this.http.post(`/clients/${e.clientId}/transactions/${e.transactionId}?command=undo`,e)}deleteCharge(e,n){return this.http.delete(`/clients/${e}/charges/${n}?associations=all`)}getClientTransactionPay(e,n){return this.http.get(`/clients/${e}/charges/${n}`)}payClientCharge(e,n,o){let r=new ee().set("command","paycharge");return this.http.post(`/clients/${e}/charges/${n}?command=paycharge`,o,{params:r})}getClientSummary(e){let n=new ee().set("R_clientId",e).set("genericResultSet","false");return this.http.get("/runreports/ClientSummary",{params:n})}getClientProfileImage(e){let n=new ee().set("maxHeight","150");return this.http.get(`/clients/${e}/images`,{params:n,responseType:"text"}).pipe(Mo(o=>o.status===404?re(null):Gr(()=>o)))}uploadClientProfileImage(e,n){let o=new FormData;return o.append("file",n),o.append("filename","file"),this.http.post(`/clients/${e}/images`,o)}uploadCapturedClientProfileImage(e,n){return this.http.post(`/clients/${e}/images`,n)}deleteClientProfileImage(e){return this.http.delete(`/clients/${e}/images`)}uploadClientSignatureImage(e,n){let o=new FormData;return o.append("file",n),o.append("name","clientSignature"),o.append("description","Client signature"),this.http.post(`/clients/${e}/documents`,o)}getClientSignatureImage(e,n){return this.http.get(`/clients/${e}/documents/${n}/attachment`,{responseType:"blob"})}getClientFamilyMembers(e){return this.http.get(`/clients/${e}/familymembers`)}getClientFamilyMember(e,n){return this.http.get(`/clients/${e}/familymembers/${n}`)}addFamilyMember(e,n){return this.http.post(`/clients/${e}/familymembers`,n)}editFamilyMember(e,n,o){return this.http.put(`/clients/${e}/familymembers/${n}`,o)}deleteFamilyMember(e,n){return this.http.delete(`/clients/${e}/familymembers/${n}`)}getClientIdentifiers(e){return this.http.get(`/clients/${e}/identifiers`)}getClientIdentifierTemplate(e){return this.http.get(`/clients/${e}/identifiers/template`)}addClientIdentifier(e,n){return this.http.post(`/clients/${e}/identifiers`,n)}deleteClientIdentifier(e,n){return this.http.delete(`/clients/${e}/identifiers/${n}`)}getClientIdentificationDocuments(e){return this.http.get(`/client_identifiers/${e}/documents`)}downloadClientIdentificationDocument(e,n){return this.http.get(`/client_identifiers/${e}/documents/${n}/attachment`,{responseType:"blob"})}uploadClientIdentifierDocument(e,n){return this.http.post(`/client_identifiers/${e}/documents`,n)}getClientDocuments(e){return this.http.get(`/clients/${e}/documents`)}downloadClientDocument(e,n){return this.http.get(`/clients/${e}/documents/${n}/attachment`,{responseType:"blob"})}uploadClientDocument(e,n){return this.http.post(`/clients/${e}/documents`,n)}deleteClientDocument(e,n){return this.http.delete(`/clients/${e}/documents/${n}`)}getClientNotes(e){return this.http.get(`/clients/${e}/notes`)}createClientNote(e,n){return this.http.post(`/clients/${e}/notes`,n)}editClientNote(e,n,o){return this.http.put(`/clients/${e}/notes/${n}`,o)}deleteClientNote(e,n){return this.http.delete(`/clients/${e}/notes/${n}`)}getAddressFieldConfiguration(){return this.http.get("/fieldconfiguration/ADDRESS")}getClientAddressData(e){return this.http.get(`/client/${e}/addresses`)}getClientAddressTemplate(){return this.http.get("/client/addresses/template")}createClientAddress(e,n,o){return this.http.post(`/client/${e}/addresses?type=${n}`,o)}editClientAddress(e,n,o){return this.http.put(`/client/${e}/addresses?type=${n}`,o)}executeClientCommand(e,n,o){let r=new ee().set("command",n);return this.http.post(`/clients/${e}`,o,{params:r})}getClientCommandTemplate(e){let n=new ee().set("commandParam",e);return this.http.get("/clients/template",{params:n})}getClientTransferProposalDate(e){return this.http.get(`/clients/${e}/transferproposaldate`)}getClientChargeTemplate(e){return this.http.get(`/clients/${e}/charges/template`)}getChargeAndTemplate(e){let n=new ee().set("template","true");return this.http.get(`/charges/${e}`,{params:n})}createClientCharge(e,n){return this.http.post(`/clients/${e}/charges`,n)}getClientReportTemplates(){let e=new ee().set("entityId","0").set("typeId","0");return this.http.get("/templates",{params:e})}retrieveClientReportTemplate(e,n){let o=new ee().set("clientId",n);return this.http.post(`/templates/${e}`,{},{params:o,responseType:"text"})}getOffices(){return this.http.get("/offices")}getSurveys(e){return this.http.get(`/surveys/scorecards/clients/${e}`)}getAllSurveysType(){return this.http.get("/surveys")}createNewSurvey(e,n){return this.http.post(`/surveys/scorecards/${e}`,n)}createSelfServiceUser(e){return this.http.post("/users",e)}createClientCollateral(e,n){return this.http.post(`/clients/${e}/collaterals`,n)}getCollateralTemplate(e){return this.http.get(`/clients/${e}/collaterals/template`)}searchByText(e,n,o,r="",a=""){let s={request:{text:e},page:n,size:o};return r!==""&&a!==""&&(s=Ne(q({},s),{sorts:[{direction:a,property:r}]})),this.http.post("/v2/clients/search",s)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var SR=(()=>{class t{constructor(){this.http=d(Bn)}getGroups(e,n,o,r,a){let s=new ee().set("offset",r.toString()).set("limit",a.toString()).set("sortOrder",o).set("orderBy",n).set("paged","true");return e.forEach(function(c){c.value&&(s=s.set(c.type,c.value))}),this.http.get("/groups",{params:s})}getFilteredGroups(e,n,o,r,a){let s=new ee().set("name",o).set("sortOrder",n).set("orderBy",e);return r&&(s=s.set("officeId",r)),s=a?s.set("orphansOnly",a):s,this.http.get("/groups",{params:s})}getGroupsByOfficeId(e){let n=new ee().set("officeId",e.toString());return this.http.get("/groups",{params:n})}getGroupData(e,n){let o=new ee().set("associations","all");return o=n?o.set("template",n):o,this.http.get(`/groups/${e}`,{params:o})}getGroupSummary(e){let n=new ee().set("R_groupId",e).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:n})}getGroupAccountsData(e){return this.http.get(`/groups/${e}/accounts`)}getGroupNotes(e){return this.http.get(`/groups/${e}/notes`)}createGroupNote(e,n){return this.http.post(`/groups/${e}/notes`,n)}editGroupNote(e,n,o){return this.http.put(`/groups/${e}/notes/${n}`,o)}deleteGroupNote(e,n){return this.http.delete(`/groups/${e}/notes/${n}`)}getGroupDatatables(){let e=new ee().set("apptable","m_group");return this.http.get("/datatables",{params:e})}getGroupDatatable(e,n){let o=new ee().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addGroupDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editGroupDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new ee().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}getGroupCommandTemplate(e){let n=new ee().set("command",e);return this.http.get("/groups/template",{params:n})}executeGroupCommand(e,n,o){let r=new ee().set("command",n);return this.http.post(`/groups/${e}`,o,{params:r})}unAssignRoleCommand(e,n){let o=new ee().set("command","unassignRole").set("roleId",n);return this.http.post(`/groups/${e}`,{},{params:o})}createGroup(e){return this.http.post("/groups",e)}updateGroup(e,n){return this.http.put(`/groups/${n}`,e)}deleteGroup(e){return this.http.delete(`/groups/${e}`)}getGroupCalendarTemplate(e){return this.http.get(`/groups/${e}/calendars/template`)}getGroupCalendarAndTemplate(e,n){let o=new ee().set("template","true");return this.http.get(`/groups/${e}/calendars/${n}`,{params:o})}createGroupMeeting(e,n){return this.http.post(`/groups/${e}/calendars`,n)}updateGroupMeeting(e,n,o){return this.http.put(`/groups/${e}/calendars/${o}`,n)}getMeetingsTemplate(e,n){let o=new ee().set("calenderId",n);return this.http.get(`/groups/${e}/meetings/template`,{params:o})}assignGroupAttendance(e,n,o){let r=new ee().set("calenderId",n);return this.http.post(`/groups/${e}/meetings`,o,{params:r})}getStaff(e){let n=new ee().set("officeId",e.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/groups/template",{params:n})}getGLIMAccountsData(e){return this.http.get(`/groups/${e}/glimaccounts`)}getGSIMAccountsData(e){return this.http.get(`/groups/${e}/gsimaccounts`)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Eh=(()=>{class t{constructor(){this.http=d(Bn),this.settingsService=d(Xt),this.dateUtils=d(go)}getLoanChargeTemplateResource(e){return this.http.get(`/loans/${e}/charges/template`)}getLoanActionTemplate(e,n){let o=new ee().set("command",n);return(n==="disburse"||n==="disbursetosavings")&&(o=o.set("associations","delinquency")),this.http.get(`/loans/${e}/transactions/template`,{params:o})}getLoanTransactionActionTemplate(e,n,o){let r=new ee().set("command",n).set("transactionId",o);return this.http.get(`/loans/${e}/transactions/template`,{params:r})}getLoanPrepayLoanActionTemplate(e,n){n||(n=this.dateUtils.formatDate(this.settingsService.businessDate,this.settingsService.dateFormat));let o=new ee().set("command","prepayLoan").set("transactionDate",n).set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return this.http.get(`/loans/${e}/transactions/template`,{params:o})}getLoanForeclosureActionTemplate(e){let n=new ee().set("command","foreclosure").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat).set("transactionDate",this.dateUtils.formatDate(this.settingsService.businessDate,this.settingsService.dateFormat));return this.http.get(`/loans/${e}/transactions/template`,{params:n})}getLoanAccountResource(e,n){let o=new ee().set("associations",n);return this.http.get(`/loans/${e}`,{params:o})}getGuarantorTemplate(e){return this.http.get(`/loans/${e}/guarantors/template`)}createNewGuarantor(e,n){return this.http.post(`/loans/${e}/guarantors`,n)}deleteGuarantor(e,n){return this.http.delete(`/loans/${e}/guarantors/${n}`)}deleteLoanAccount(e){return this.http.delete(`/loans/${e}`)}getDelinquencyTags(e){return this.http.get(`/loans/${e}/delinquencytags`)}getDelinquencyData(e){let n=new ee().set("associations","collection").set("exclude","guarantors,futureSchedule");return this.http.get(`/loans/${e}`,{params:n})}getLoanDelinquencyDataForTemplate(e){let n=new ee().set("associations","delinquency");return this.http.get(`/loans/${e}`,{params:n})}getDelinquencyActions(e){return this.http.get(`/loans/${e}/delinquency-actions`)}createDelinquencyActions(e,n){return this.http.post(`/loans/${e}/delinquency-actions`,n)}getDeferredIncomeData(e){return this.http.get(`/loans/${e}/deferredincome`)}getBuyDownFeeData(e){return this.http.get(`/loans/${e}/buydown-fees`)}getLoanTemplate(e){let n=new ee().set("fields","id,loanOfficerId,loanOfficerOptions").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/loans/${e}`,{params:n})}createLoanCharge(e,n,o){return this.http.post(`/loans/${e}/${n}`,o)}getLoanAccountDetails(e){return this.http.get(`/loans/${e}`)}getLoanCollateralTemplate(e){return this.http.get(`/loans/${e}/collaterals/template`)}getLoanCollaterals(e){return this.http.get(`/loans/${e}/collaterals`)}createLoanCollateral(e,n){return this.http.post(`/loans/${e}/collaterals`,n)}getLoanAccountAssociationDetails(e){let n=new ee().set("associations","all").set("exclude","guarantors,futureSchedule");return this.http.get(`/loans/${e}`,{params:n})}getApproveAssociationsDetails(e){let n=new ee().set("associations","multiDisburseDetails");return this.http.get(`/loans/${e}`,{params:n})}getLoanNotes(e){return this.http.get(`/loans/${e}/notes`)}createLoanNote(e,n){return this.http.post(`/loans/${e}/notes`,n)}editLoanNote(e,n,o){return this.http.put(`/loans/${e}/notes/${n}`,o)}deleteLoanNote(e,n){return this.http.delete(`/loans/${e}/notes/${n}`)}submitLoanActionButton(e,n,o){let r=new ee().set("command",o);return this.http.post(`/loans/${e}/transactions`,n,{params:r})}getReAgePreview(e,n){let o=new ee;return Object.keys(n).forEach(r=>{n[r]!==null&&n[r]!==void 0&&n[r]!==""&&(o=o.set(r,n[r].toString()))}),this.http.get(`/loans/${e}/transactions/reage-preview`,{params:o})}getReAmortizePreview(e,n){let o=new ee;return Object.keys(n).forEach(r=>{n[r]!==null&&n[r]!==void 0&&n[r]!==""&&(o=o.set(r,n[r].toString()))}),this.http.get(`/loans/${e}/transactions/reamortization-preview`,{params:o})}getLoanScreenReportsData(){let e=new ee().set("entityId","1").set("typeId","0");return this.http.get("/templates",{params:e})}getLoanDataTables(){let e=new ee().set("apptable","m_loan");return this.http.get("/datatables",{params:e})}getLoanDatatable(e,n){let o=new ee().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addLoanDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editLoanDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new ee().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}loanActionButtons(e,n,o){let r=new ee().set("command",n);return this.http.post(`/loans/${e}`,o,{params:r})}addInterestPauseToLoan(e,n){return this.http.post(`/loans/${e}/interest-pauses`,n)}getInterestPausesOfLoan(e){return this.http.get(`/loans/${e}/interest-pauses`)}updateInterestPause(e,n,o){return this.http.put(`/loans/${e}/interest-pauses/${n}`,o)}deleteInterestPause(e,n){return this.http.delete(`/loans/${e}/interest-pauses/${n}`)}getForeclosureData(e,n){let o=new ee().set("command",n.command).set("dateFormat",n.dateFormat).set("locale",n.locale).set("transactionDate",n.transactionDate);return this.http.get(`/loans/${e}/transactions/template`,{params:o})}loanForclosureData(e,n){let o=new ee().set("command","foreclosure");return this.http.post(`/loans/${e}/transactions`,n,{params:o})}editDisbursements(e,n){return this.http.put(`/loans/${e}/disbursements/editDisbursements`,n)}rescheduleLoanTemplate(){return this.http.get("/rescheduleloans/template")}loanRescheduleRequests(e){let n=new ee().set("loanId",e);return this.http.get("/rescheduleloans",{params:n})}applyCommandLoanRescheduleRequests(e,n,o){let r=new ee().set("command",n);return this.http.post(`/rescheduleloans/${e}`,o,{params:r})}submitRescheduleData(e){let n=new ee().set("command","reschedule");return this.http.post("/rescheduleloans",e,{params:n})}getLoansAccountTemplateResource(e,n,o){let r=new ee().set("activeOnly","true").set("staffInSelectedOfficeOnly","true");return r=o?r.set("productId",o):r,r=n?r.set("groupId",e).set("templateType","group"):r.set("clientId",e).set("templateType","individual"),this.http.get("/loans/template",{params:r})}getLoansAccountAndTemplateResource(e){let n=new ee().set("associations","charges,collateral,meeting,multiDisburseDetails").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/loans/${e}`,{params:n})}getLoansCollateralTemplateResource(e){let n=new ee().set("fields","id, loanCollateralOptions").set("productId",e).set("templateType","collateral");return this.http.get("/loans/template",{params:n})}createLoansAccount(e){return this.http.post("/loans",e)}getLoanDocuments(e){return this.http.get(`/loans/${e}/documents`)}downloadLoanDocument(e,n){return this.http.get(`/loans/${e}/documents/${n}/attachment`,{responseType:"blob"})}deleteLoanDocument(e,n){return this.http.delete(`/loans/${e}/documents/${n}`)}loadLoanDocument(e,n){return this.http.post(`/loans/${e}/documents`,n)}getStandingInstructions(e,n,o,r,a){let s=new ee().set("clientId",e).set("clientName",n).set("fromAccountId",o).set("fromAccountType","1").set("locale",r).set("dateFormat",a).set("limit","14").set("offset","0");return this.http.get("/standinginstructions",{params:s})}updateLoansAccount(e,n){return this.http.put(`/loans/${e}`,n)}getTemplateData(e,n){let o=new ee().set("loanId",n);return this.http.post(`/templates/${e}`,{},{params:o,responseType:"text"})}getLoanApprovalTemplate(e){let n=new ee().set("templateType","approval").set("associations","delinquency");return this.http.get(`/loans/${e}/template`,{params:n})}guarantorAccountResource(e,n){let o=new ee().set("clientId",n);return this.http.get(`/loans/${e}/guarantors/accounts/template`,{params:o})}getLoansAccountCharge(e,n){return this.http.get(`/loans/${e}/charges/${n}`)}executeLoansAccountChargesCommand(e,n,o,r){let a=new ee().set("command",n);return this.http.post(`/loans/${e}/charges/${r}`,o,{params:a})}editLoansAccountCharge(e,n,o){return this.http.put(`/loans/${e}/charges/${o}`,n)}deleteLoansAccountCharge(e,n){return this.http.delete(`/loans/${e}/charges/${n}`)}applyCommandLoanScheduleVariations(e,n,o){return this.http.post(`/loans/${e}/schedule?command=${n}`,o)}getLoansAccountTransaction(e,n){return this.http.get(`/loans/${e}/transactions/${n}`)}getLoansAccountTransactionTemplate(e,n){let o=new ee().set("template","true");return this.http.get(`/loans/${e}/transactions/${n}`,{params:o})}executeLoansAccountTransactionsCommand(e,n,o,r){let a=new ee().set("command",n);return r?this.http.post(`/loans/${e}/transactions/${r}`,o,{params:a}):this.http.post(`/loans/${e}/transactions`,o,{params:a})}getGLIMAccountData(e,n){return this.http.get(`/loans/glimAccount/${e}`)}getGLIMLoanAccountTemplate(e){let n=new ee().set("groupId",e).set("templateType","jlgbulk");return this.http.get("/loans/template",{params:n})}createGlimAccount(e){return this.http.post("/batches?enclosingTransaction=true",e)}calculateLoanSchedule(e){return this.http.post("/loans?command=calculateLoanSchedule",e)}buildLoanRequestPayload(e,n,o,r,a){let s=Ne(q({},e),{charges:(e.charges??[]).map(c=>{let m=c.chargeId??c.id;if(m==null)return null;let f={chargeId:m,amount:c.amount};return c.id&&c.id!==m&&(f.id=c.id),c.dueDate&&(f.dueDate=this.dateUtils.formatDate(c.dueDate,a)),c.feeInterval!==void 0&&(f.feeInterval=c.feeInterval),c.feeOnMonthDay!==void 0&&(f.feeOnMonthDay=c.feeOnMonthDay),f}).filter(Boolean),disbursementData:e.disbursementData.map(c=>({expectedDisbursementDate:this.dateUtils.formatDate(c.expectedDisbursementDate,a),principal:c.principal})),interestChargedFromDate:this.dateUtils.formatDate(e.interestChargedFromDate,a),repaymentsStartingFromDate:this.dateUtils.formatDate(e.repaymentsStartingFromDate,a),submittedOnDate:this.dateUtils.formatDate(e.submittedOnDate,a),expectedDisbursementDate:this.dateUtils.formatDate(e.expectedDisbursementDate,a),dateFormat:a,locale:r});return e.collateral&&(s.collateral=e.collateral.map(c=>({clientCollateralId:c.type.collateralId,quantity:c.value}))),n.clientId&&n.group?.id?(s.clientId=n.clientId,s.groupId=n.group.id,s.loanType="glim"):n.clientId?(s.clientId=n.clientId,s.loanType="individual"):(s.groupId=n.group.id,s.loanType="group"),s.syncRepaymentsWithMeeting&&(s.calendarId=o[0].id,delete s.syncRepaymentsWithMeeting),s.recalculationRestFrequencyDate&&(s.recalculationRestFrequencyDate=this.dateUtils.formatDate(e.recalculationRestFrequencyDate,a)),s.interestCalculationPeriodType===0&&(s.allowPartialPeriodInterestCalculation=!1),s.isFloatingInterestRate!==!1&&delete s.isFloatingInterestRate,s.multiDisburseLoan||delete s.disbursementData,delete s.isValid,s.principal=s.principalAmount,delete s.principalAmount,delete s.multiDisburseLoan,s.allowPartialPeriodInterestCalcualtion=s.allowPartialPeriodInterestCalculation,delete s.allowPartialPeriodInterestCalculation,s}saveLoanDisbursementDetailsData(e){localStorage.setItem("disbursementData",JSON.stringify(e))}getLoanDisbursementDetailsData(){return JSON.parse(localStorage.getItem("disbursementData"))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ih=(()=>{class t{constructor(){this.http=d(Bn)}getSavingsTransactionTemplateResource(e){return this.http.get(`/savingsaccounts/${e}/transactions/template`)}getSavingsChargeTemplateResource(e){return this.http.get(`/savingsaccounts/${e}/charges/template`)}createSavingsCharge(e,n,o){return this.http.post(`/savingsaccounts/${e}/${n}`,o)}getChargeTemplate(e){let n={template:"true"};return this.http.get(`/charges/${e}`,{params:n})}getSavingsAccountData(e){let n=new ee().set("associations","all");return this.http.get(`/savingsaccounts/${e}`,{params:n})}getSavingsAccountAndTemplate(e,n){let o=new ee().set("template",n.toString()).set("associations","charges");return this.http.get(`/savingsaccounts/${e}`,{params:o})}getStandingInstructions(e,n,o,r,a){let s=new ee().set("clientId",e).set("clientName",n).set("fromAccountId",o).set("fromAccountType","2").set("locale",r).set("dateFormat",a);return this.http.get("/standinginstructions",{params:s})}getSavingsDatatables(){let e=new ee().set("apptable","m_savings_account");return this.http.get("/datatables",{params:e})}getSavingsDatatable(e,n){let o=new ee().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}getSavingsTransactionDatatables(){let e=new ee().set("apptable","m_savings_account_transaction");return this.http.get("/datatables",{params:e})}getSavingsTransactionDatatable(e,n){let o=new ee().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addSavingsDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editSavingsDatatableEntry(e,n,o){let r=new ee().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new ee().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}getSavingsAccountTemplate(e,n,o){let r=new ee().set(o?"groupId":"clientId",e);return r=n?r.set("productId",n):r,this.http.get("/savingsaccounts/template",{params:r})}createSavingsAccount(e){return this.http.post("/savingsaccounts",e)}updateSavingsAccount(e,n){return this.http.put(`/savingsaccounts/${e}`,n)}deleteSavingsAccount(e){return this.http.delete(`/savingsaccounts/${e}`)}executeSavingsAccountCommand(e,n,o){let r=new ee().set("command",n);return this.http.post(`/savingsaccounts/${e}`,o,{params:r})}executeSavingsAccountUpdateCommand(e,n,o){let r=new ee().set("command",n);return this.http.put(`/savingsaccounts/${e}`,o,{params:r})}getSavingsAccountTransaction(e,n){return this.http.get(`/savingsaccounts/${e}/transactions/${n}`)}getSavingsAccountTransactionTemplate(e,n){let o=new ee().set("template","true");return this.http.get(`/savingsaccounts/${e}/transactions/${n}`,{params:o})}executeSavingsAccountTransactionsCommand(e,n,o,r){let a=new ee().set("command",n);return r?this.http.post(`/savingsaccounts/${e}/transactions/${r}`,o,{params:a}):this.http.post(`/savingsaccounts/${e}/transactions`,o,{params:a})}getSavingsAccountCharge(e,n){return this.http.get(`/savingsaccounts/${e}/charges/${n}`)}executeSavingsAccountChargesCommand(e,n,o,r){let a=new ee().set("command",n);return this.http.post(`/savingsaccounts/${e}/charges/${r}`,o,{params:a})}editSavingsAccountCharge(e,n,o){return this.http.put(`/savingsaccounts/${e}/charges/${o}`,n)}deleteSavingsAccountCharge(e,n){return this.http.delete(`/savingsaccounts/${e}/charges/${n}`)}getGSIMAccountData(e,n){let o=new ee().set("parentGSIMAccountNo",e);return this.http.get(`/groups/${n}/gsimaccounts`,{params:o})}createGsimAcccount(e){return this.http.post("/savingsaccounts/gsim",e)}getSavingsNotes(e){return this.http.get(`/savings/${e}/notes`)}createSavingsNote(e,n){return this.http.post(`/savings/${e}/notes`,n)}editSavingsNote(e,n,o){return this.http.put(`/savings/${e}/notes/${n}`,o)}deleteSavingsNote(e,n){return this.http.delete(`/savings/${e}/notes/${n}`)}getSavingsDocuments(e){return this.http.get(`/savings/${e}/documents`)}downloadSavingsDocument(e,n){return this.http.get(`/savings/${e}/documents/${n}/attachment`,{responseType:"blob"})}deleteSavingsDocument(e,n){return this.http.delete(`/savings/${e}/documents/${n}`)}loadSavingsDocument(e,n){return this.http.post(`/savings/${e}/documents`,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gle=["formRef"];function _le(t,i){if(t&1){let e=le();h(0,"div",10)(1,"div",11),y(2),_(),h(3,"div",12)(4,"div",13)(5,"div",14),y(6),_(),h(7,"div",15),y(8),S(9,"dateFormat"),_()(),h(10,"div",16)(11,"button",17),N("click",function(){let o=G(e),r=o.$implicit,a=o.$index,s=w(2);return W(s.editNote(r.id,r.note,a))}),y(12," Edit "),_(),h(13,"button",18),N("click",function(){let o=G(e),r=o.$implicit,a=o.$index,s=w(2);return W(s.deleteNote(r.id,a))}),y(14,"Delete"),_()()()()}if(t&2){let e=i.$implicit;p(2),ne(" ",e.note," "),p(4),ne("Created by ",e.createdByUsername),p(2),ne(" ",k(9,3,e.createdOn)," ")}}function ble(t,i){if(t&1&&(h(0,"div"),Xe(1,_le,15,5,"div",10,ht),_()),t&2){let e=w();p(),Ze(e.entityNotes)}}function vle(t,i){t&1&&(h(0,"div",9),y(1,"No notes available"),_())}var kR=(()=>{class t{constructor(){this.formBuilder=d(Rs),this.savingsService=d(Ih),this.loansService=d(Eh),this.clientsService=d(kh),this.groupsService=d(SR),this.dialog=d(Wi)}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:["",en.required]})}addNote(){this.callbackAdd(this.noteForm.value),this.formRef.resetForm()}editNote(e,n,o){this.dialog.open(es,{data:{formfields:[{controlName:"note",required:!0,value:n,controlType:"input",label:"Note"}],layout:{columns:1,addButtonText:"Confirm"},title:"Edit Note"}}).afterClosed().subscribe(a=>{a.data&&a.data.value.note!==n&&this.callbackEdit(e,a.data.value,o)})}deleteNote(e,n){this.dialog.open(Rr,{data:{deleteContext:`Note: ${this.entityNotes[n].note}`}}).afterClosed().subscribe(r=>{r.delete&&this.callbackDelete(e,n)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-notes-tab"]],viewQuery:function(n,o){if(n&1&&ue(gle,7),n&2){let r;U(r=$())&&(o.formRef=r.first)}},inputs:{entityId:"entityId",entityNotes:"entityNotes",callbackAdd:"callbackAdd",callbackEdit:"callbackEdit",callbackDelete:"callbackDelete"},decls:17,vars:13,consts:[["formRef","ngForm"],[1,"tab-container","mat-typography"],[1,"add-note-section"],[1,"layout-row","align-start-baseline","gap-10px",3,"ngSubmit","formGroup"],[1,"flex-85-minus-20px"],["required","","formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"placeholder"],["mat-raised-button","","color","primary",1,"flex-1",3,"disabled"],["icon","plus",1,"m-r-10"],[1,"notes-container"],[1,"empty-state"],[1,"note-card"],[1,"note-content"],[1,"note-footer"],[1,"note-meta"],[1,"created-by"],[1,"created-date"],[1,"note-actions"],["title","Edit note",1,"edit-btn",3,"click"],["title","Delete note",1,"delete-btn",3,"click"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1)(1,"h3"),y(2),S(3,"translate"),_(),h(4,"div",2)(5,"form",3,0),N("ngSubmit",function(){return G(r),W(o.addNote())}),h(7,"mat-form-field",4),F(8,"textarea",5),S(9,"translate"),_(),h(10,"button",6),F(11,"fa-icon",7),y(12),S(13,"translate"),_()()(),h(14,"div",8),E(15,ble,3,0,"div")(16,vle,2,0,"div",9),_()()}n&2&&(p(2),T(k(3,7,"labels.heading.Notes")),p(3),D("formGroup",o.noteForm),p(3),D("placeholder",Uc("",k(9,9,"labels.text.Write a note")," ...")),p(2),D("disabled",!o.noteForm.valid),p(2),ne("",k(13,11,"labels.buttons.Add")," "),p(3),I(o.entityNotes&&o.entityNotes.length>0?15:16))},dependencies:[he,ve,zs,yi,mn,tr,Ir,ui,Ao,Bt,ti,vt,nf,Yt,Lo,Te],styles:[".hidden-mat-list[_ngcontent-%COMP%]{display:none}.tab-container[_ngcontent-%COMP%]{padding:2rem}.tab-container[_ngcontent-%COMP%]   h3[_ngcontent-%COMP%]{margin-bottom:20px;color:#333;font-weight:500}.add-note-section[_ngcontent-%COMP%]{margin-bottom:10px;padding-bottom:10px}.layout-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.layout-row.align-start-baseline[_ngcontent-%COMP%]{align-items:baseline}.layout-row.gap-10px[_ngcontent-%COMP%]{gap:10px}.flex-85-minus-20px[_ngcontent-%COMP%]{flex:1;min-width:300px}.flex-1[_ngcontent-%COMP%]{flex:none;white-space:nowrap}.note-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e0e0e0;border-radius:.2rem;padding:1rem;margin-bottom:1rem;box-shadow:0 2px 4px #00000014;transition:all .2s ease}.note-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000001f;border-color:#d0d0d0}.note-content[_ngcontent-%COMP%]{color:#333;font-size:14px;line-height:1rem;margin:0 0 16px;padding:.5rem;word-wrap:break-word;white-space:normal;text-indent:0;text-align:left}.note-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-top:.65rem;border-top:1px solid #f0f0f0}.note-meta[_ngcontent-%COMP%]{color:#666;font-size:12px}.created-by[_ngcontent-%COMP%]{font-weight:500;color:#007acc;margin-bottom:2px}.created-date[_ngcontent-%COMP%]{color:#888}.note-actions[_ngcontent-%COMP%]{display:flex;gap:8px}.edit-btn[_ngcontent-%COMP%], .delete-btn[_ngcontent-%COMP%]{border:1px solid #dee2e6;padding:8px 14px;border-radius:4px;font-size:14px;cursor:pointer;transition:all .2s ease;background:none;outline:none}.edit-btn[_ngcontent-%COMP%]{color:#6c757d;background-color:#daedff}.delete-btn[_ngcontent-%COMP%]{color:#dc3545;background-color:#ffcfcf}.edit-btn[_ngcontent-%COMP%]:disabled, .delete-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.edit-btn[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#a8d4ff;color:#495057;border-color:#adb5bd}.delete-btn[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#f5c6cb;color:#721c24;border-color:#ff9ca5}.empty-state[_ngcontent-%COMP%]{text-align:center;padding:40px 20px;color:#666;font-style:italic;background:#fafafa;border-radius:8px;border:1px dashed #ddd}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}@media (width <= 768px){.tab-container[_ngcontent-%COMP%]{padding:16px}.layout-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:15px}.flex-85-minus-20px[_ngcontent-%COMP%], .flex-1[_ngcontent-%COMP%]{width:100%}.note-card[_ngcontent-%COMP%]{padding:16px;margin-bottom:12px}.note-content[_ngcontent-%COMP%]{font-size:13px;margin-bottom:12px}.note-footer[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}.edit-btn[_ngcontent-%COMP%], .delete-btn[_ngcontent-%COMP%]{padding:5px 10px;font-size:11px}.note-meta[_ngcontent-%COMP%]{width:100%}.note-actions[_ngcontent-%COMP%]{align-self:flex-end}}"]})}}return t})();var cc=function(){return cc=Object.assign||function(i){for(var e,n=1,o=arguments.length;n";i.append(o)}else i.html(n)})},getSize:function(t,i,e,n){e===void 0&&(e=0);var o=Ye(t),r=o.attr("data-lg-size")||n;if(r){var a=r.split(",");if(a[1])for(var s=window.innerWidth,c=0;cs){r=m;break}c===a.length-1&&(r=m)}var v=r.split("-"),x=parseInt(v[0],10),M=parseInt(v[1],10),O=i.width(),K=i.height()-e,Y=Math.min(O,x),Z=Math.min(K,M),Oe=Math.min(Y/x,Z/M);return{width:x*Oe,height:M*Oe}}},getTransform:function(t,i,e,n,o){if(o){var r=Ye(t).find("img").first();if(r.get()){var a=i.get().getBoundingClientRect(),s=a.width,c=i.height()-(e+n),m=r.width(),f=r.height(),v=r.style(),x=(s-m)/2-r.offset().left+(parseFloat(v.paddingLeft)||0)+(parseFloat(v.borderLeft)||0)+Ye(window).scrollLeft()+a.left,M=(c-f)/2-r.offset().top+(parseFloat(v.paddingTop)||0)+(parseFloat(v.borderTop)||0)+Ye(window).scrollTop()+e,O=m/o.width,K=f/o.height,Y="translate3d("+(x*=-1)+"px, "+(M*=-1)+"px, 0) scale3d("+O+", "+K+", 1)";return Y}}},getIframeMarkup:function(t,i,e,n,o,r){var a=r?'title="'+r+'"':"";return'
+`],encapsulation:2})}return t})(),fh=(()=>{class t extends ch{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matCellDef",""]],features:[de([{provide:ch,useExisting:t}]),ce]})}return t})(),hh=(()=>{class t extends lh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matHeaderCellDef",""]],features:[de([{provide:lh,useExisting:t}]),ce]})}return t})(),PGe=(()=>{class t extends dh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matFooterCellDef",""]],features:[de([{provide:dh,useExisting:t}]),ce]})}return t})(),gh=(()=>{class t extends yl{get name(){return this._name}set name(e){this._setNameInput(e)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matColumnDef",""]],inputs:{name:[0,"matColumnDef","name"]},features:[de([{provide:yl,useExisting:t},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:t}]),ce]})}return t})(),_h=(()=>{class t extends Qz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-mdc-header-cell","mdc-data-table__header-cell"],features:[ce]})}return t})(),LGe=(()=>{class t extends Kz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:[1,"mat-mdc-footer-cell","mdc-data-table__cell"],features:[ce]})}return t})(),bh=(()=>{class t extends Xz{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:[1,"mat-mdc-cell","mdc-data-table__cell"],features:[ce]})}return t})();var vh=(()=>{class t extends Su{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matHeaderRowDef",""]],inputs:{columns:[0,"matHeaderRowDef","columns"],sticky:[2,"matHeaderRowDefSticky","sticky",H]},features:[de([{provide:Su,useExisting:t}]),ce]})}return t})(),AGe=(()=>{class t extends ku{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matFooterRowDef",""]],inputs:{columns:[0,"matFooterRowDef","columns"],sticky:[2,"matFooterRowDefSticky","sticky",H]},features:[de([{provide:ku,useExisting:t}]),ce]})}return t})(),yh=(()=>{class t extends uh{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matRowDef",""]],inputs:{columns:[0,"matRowDefColumns","columns"],when:[0,"matRowDefWhen","when"]},features:[de([{provide:uh,useExisting:t}]),ce]})}return t})(),Ch=(()=>{class t extends Ab{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-mdc-header-row","mdc-data-table__header-row"],exportAs:["matHeaderRow"],features:[de([{provide:Ab,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),zGe=(()=>{class t extends zb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-mdc-footer-row","mdc-data-table__row"],exportAs:["matFooterRow"],features:[de([{provide:zb,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),xh=(()=>{class t extends Rb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-mdc-row","mdc-data-table__row"],exportAs:["matRow"],features:[de([{provide:Rb,useExisting:t}]),ce],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[rs],encapsulation:2})}return t})(),RGe=(()=>{class t extends mh{_cellSelector="td, mat-cell, [mat-cell], .mat-cell";constructor(){super(),this._contentClassNames.push("mat-mdc-no-data-row","mat-mdc-row","mdc-data-table__row"),this._cellClassNames.push("mat-mdc-cell","mdc-data-table__cell","mat-no-data-cell")}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["ng-template","matNoDataRow",""]],features:[de([{provide:mh,useExisting:t}]),ce]})}return t})();var Jz=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,Zz,fe]})}return t})(),fce=9007199254740991,Eu=class extends qs{_data;_renderData=new ct([]);_filter=new ct("");_internalPageChanges=new B;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(i){i=Array.isArray(i)?i:[],this._data.next(i),this._renderChangesSubscription||this._filterData(i)}get filter(){return this._filter.value}set filter(i){this._filter.next(i),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(i){this._sort=i,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(i){this._paginator=i,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(i,e)=>{let n=i[e];if(mp(n)){let o=Number(n);return o{let n=e.active,o=e.direction;return!n||o==""?i:i.sort((r,a)=>{let s=this.sortingDataAccessor(r,n),c=this.sortingDataAccessor(a,n),m=typeof s,f=typeof c;m!==f&&(m==="number"&&(s+=""),f==="number"&&(c+=""));let v=0;return s!=null&&c!=null?s>c?v=1:s{let n=e.trim().toLowerCase();return Object.values(i).some(o=>`${o}`.toLowerCase().includes(n))};constructor(i=[]){super(),this._data=new ct(i),this._updateChangeSubscription()}_updateChangeSubscription(){let i=this._sort?ft(this._sort.sortChange,this._sort.initialized):re(null),e=this._paginator?ft(this._paginator.page,this._internalPageChanges,this._paginator.initialized):re(null),n=this._data,o=gi([n,this._filter]).pipe(me(([s])=>this._filterData(s))),r=gi([o,i]).pipe(me(([s])=>this._orderData(s))),a=gi([r,e]).pipe(me(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(i){return this.filteredData=this.filter==null||this.filter===""?i:i.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(i){return this.sort?this.sortData(i.slice(),this.sort):i}_pageData(i){if(!this.paginator)return i;let e=this.paginator.pageIndex*this.paginator.pageSize;return i.slice(e,e+this.paginator.pageSize)}_updatePaginator(i){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=i,e.pageIndex>0)){let n=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,n);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var z2=["*"];function hce(t,i){t&1&&ae(0)}var iR=["tabListContainer"],oR=["tabList"],rR=["tabListInner"],aR=["nextPaginator"],sR=["previousPaginator"],gce=["content"];function _ce(t,i){}var bce=["tabBodyWrapper"],vce=["tabHeader"];function yce(t,i){}function Cce(t,i){if(t&1&&ot(0,yce,0,0,"ng-template",12),t&2){let e=M().$implicit;D("cdkPortalOutlet",e.templateLabel)}}function xce(t,i){if(t&1&&y(0),t&2){let e=M().$implicit;T(e.textLabel)}}function Mce(t,i){if(t&1){let e=le();h(0,"div",7,2),N("click",function(){let o=G(e),r=o.$implicit,a=o.$index,s=M(),c=Nt(1);return W(s._handleClick(r,c,a))})("cdkFocusChange",function(o){let r=G(e).$index,a=M();return W(a._tabFocusChanged(o,r))}),F(2,"span",8)(3,"div",9),h(4,"span",10)(5,"span",11),E(6,Cce,1,1,null,12)(7,xce,1,1),_()()()}if(t&2){let e=i.$implicit,n=i.$index,o=Nt(1),r=M();Tt(e.labelClass),oe("mdc-tab--active",r.selectedIndex===n),D("id",r._getTabLabelId(e,n))("disabled",e.disabled)("fitInkBarToContent",r.fitInkBarToContent),ne("tabIndex",r._getTabIndex(n))("aria-posinset",n+1)("aria-setsize",r._tabs.length)("aria-controls",r._getTabContentId(n))("aria-selected",r.selectedIndex===n)("aria-label",e.ariaLabel||null)("aria-labelledby",!e.ariaLabel&&e.ariaLabelledby?e.ariaLabelledby:null),p(3),D("matRippleTrigger",o)("matRippleDisabled",e.disabled||r.disableRipple),p(3),I(e.templateLabel?6:7)}}function wce(t,i){t&1&&ae(0)}function Dce(t,i){if(t&1){let e=le();h(0,"mat-tab-body",13),N("_onCentered",function(){G(e);let o=M();return W(o._removeTabBodyWrapperHeight())})("_onCentering",function(o){G(e);let r=M();return W(r._setTabBodyWrapperHeight(o))})("_beforeCentering",function(o){G(e);let r=M();return W(r._bodyCentered(o))}),_()}if(t&2){let e=i.$implicit,n=i.$index,o=M();Tt(e.bodyClass),D("id",o._getTabContentId(n))("content",e.content)("position",e.position)("animationDuration",o.animationDuration)("preserveContent",o.preserveContent),ne("tabindex",o.contentTabIndex!=null&&o.selectedIndex===n?o.contentTabIndex:null)("aria-labelledby",o._getTabLabelId(e,n))("aria-hidden",o.selectedIndex!==n)}}var Sce=["mat-tab-nav-bar",""],kce=["mat-tab-link",""],Ece=new L("MatTabContent"),Ice=(()=>{class t{template=d(tt);constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTabContent",""]],features:[de([{provide:Ece,useExisting:t}])]})}return t})(),Oce=new L("MatTabLabel"),cR=new L("MAT_TAB"),Tce=(()=>{class t extends ZE{_closestTab=d(cR,{optional:!0});static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[de([{provide:Oce,useExisting:t}]),ce]})}return t})(),lR=new L("MAT_TAB_GROUP"),Pce=(()=>{class t{_viewContainerRef=d(dt);_closestTabGroup=d(lR,{optional:!0});disabled=!1;get templateLabel(){return this._templateLabel}set templateLabel(e){this._setTemplateLabelInput(e)}_templateLabel;_explicitContent=void 0;_implicitContent;textLabel="";ariaLabel;ariaLabelledby;labelClass;bodyClass;id=null;_contentPortal=null;get content(){return this._contentPortal}_stateChanges=new B;position=null;origin=null;isActive=!1;constructor(){d(at).load(cn)}ngOnChanges(e){(e.hasOwnProperty("textLabel")||e.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new Wn(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(e){e&&e._closestTab===this&&(this._templateLabel=e)}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,Tce,5),Ee(r,Ice,7,tt)),n&2){let a;U(a=$())&&(o.templateLabel=a.first),U(a=$())&&(o._explicitContent=a.first)}},viewQuery:function(n,o){if(n&1&&ue(tt,7),n&2){let r;U(r=$())&&(o._implicitContent=r.first)}},hostAttrs:["hidden",""],hostVars:1,hostBindings:function(n,o){n&2&&ne("id",null)},inputs:{disabled:[2,"disabled","disabled",H],textLabel:[0,"label","textLabel"],ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass",id:"id"},exportAs:["matTab"],features:[de([{provide:cR,useExisting:t}]),Re],ngContentSelectors:z2,decls:1,vars:0,template:function(n,o){n&1&&(De(),Mr(0,hce,1,0,"ng-template"))},encapsulation:2})}return t})(),Hb="mdc-tab-indicator--active",eR="mdc-tab-indicator--no-transition",Mh=class{_items;_currentItem;constructor(i){this._items=i}hide(){this._items.forEach(i=>i.deactivateInkBar()),this._currentItem=void 0}alignToElement(i){let e=this._items.find(o=>o.elementRef.nativeElement===i),n=this._currentItem;if(e!==n&&(n?.deactivateInkBar(),e)){let o=n?.elementRef.nativeElement.getBoundingClientRect?.();e.activateInkBar(o),this._currentItem=e}}},dR=(()=>{class t{_elementRef=d(Q);_inkBarElement;_inkBarContentElement;_fitToContent=!1;get fitInkBarToContent(){return this._fitToContent}set fitInkBarToContent(e){this._fitToContent!==e&&(this._fitToContent=e,this._inkBarElement&&this._appendInkBarElement())}activateInkBar(e){let n=this._elementRef.nativeElement;if(!e||!n.getBoundingClientRect||!this._inkBarContentElement){n.classList.add(Hb);return}let o=n.getBoundingClientRect(),r=e.width/o.width,a=e.left-o.left;n.classList.add(eR),this._inkBarContentElement.style.setProperty("transform",`translateX(${a}px) scaleX(${r})`),n.getBoundingClientRect(),n.classList.remove(eR),n.classList.add(Hb),this._inkBarContentElement.style.setProperty("transform","")}deactivateInkBar(){this._elementRef.nativeElement.classList.remove(Hb)}ngOnInit(){this._createInkBarElement()}ngOnDestroy(){this._inkBarElement?.remove(),this._inkBarElement=this._inkBarContentElement=null}_createInkBarElement(){let e=this._elementRef.nativeElement.ownerDocument||document,n=this._inkBarElement=e.createElement("span"),o=this._inkBarContentElement=e.createElement("span");n.className="mdc-tab-indicator",o.className="mdc-tab-indicator__content mdc-tab-indicator__content--underline",n.appendChild(this._inkBarContentElement),this._appendInkBarElement()}_appendInkBarElement(){this._inkBarElement;let e=this._fitToContent?this._elementRef.nativeElement.querySelector(".mdc-tab__content"):this._elementRef.nativeElement;e.appendChild(this._inkBarElement)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",H]}})}return t})();var uR=(()=>{class t extends dR{elementRef=d(Q);disabled=!1;focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(n,o){n&2&&(ne("aria-disabled",!!o.disabled),oe("mat-mdc-tab-disabled",o.disabled))},inputs:{disabled:[2,"disabled","disabled",H]},features:[ce]})}return t})(),tR={passive:!0},Lce=650,Ace=100,mR=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_viewportRuler=d(Gn);_dir=d(bt,{optional:!0});_ngZone=d(se);_platform=d(je);_sharedResizeObserver=d(Jp);_injector=d(be);_renderer=d(Ke);_animationsDisabled=Ue();_eventCleanups;_scrollDistance=0;_selectedIndexChanged=!1;_destroyed=new B;_showPaginationControls=!1;_disableScrollAfter=!0;_disableScrollBefore=!0;_tabLabelCount;_scrollDistanceChanged;_keyManager;_currentTextContent;_stopScrolling=new B;disablePagination=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){let n=isNaN(e)?0:e;this._selectedIndex!=n&&(this._selectedIndexChanged=!0,this._selectedIndex=n,this._keyManager&&this._keyManager.updateActiveItem(n))}_selectedIndex=0;selectFocusedIndex=new j;indexFocused=new j;constructor(){this._eventCleanups=this._ngZone.runOutsideAngular(()=>[this._renderer.listen(this._elementRef.nativeElement,"mouseleave",()=>this._stopInterval())])}ngAfterViewInit(){this._eventCleanups.push(this._renderer.listen(this._previousPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("before"),tR),this._renderer.listen(this._nextPaginator.nativeElement,"touchstart",()=>this._handlePaginatorPress("after"),tR))}ngAfterContentInit(){let e=this._dir?this._dir.change:re("ltr"),n=this._sharedResizeObserver.observe(this._elementRef.nativeElement).pipe(hr(32),ye(this._destroyed)),o=this._viewportRuler.change(150).pipe(ye(this._destroyed)),r=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new Tr(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap().skipPredicate(()=>!1),this._keyManager.updateActiveItem(Math.max(this._selectedIndex,0)),Ct(r,{injector:this._injector}),ft(e,o,n,this._items.changes,this._itemsResized()).pipe(ye(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),r()})}),this._keyManager?.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.subscribe(a=>{this.indexFocused.emit(a),this._setTabFocus(a)})}_itemsResized(){return typeof ResizeObserver!="function"?Sn:this._items.changes.pipe(We(this._items),lt(e=>new Fe(n=>this._ngZone.runOutsideAngular(()=>{let o=new ResizeObserver(r=>n.next(r));return e.forEach(r=>o.observe(r.elementRef.nativeElement)),()=>{o.disconnect()}}))),Cc(1),Ae(e=>e.some(n=>n.contentRect.width>0&&n.contentRect.height>0)))}ngAfterContentChecked(){this._tabLabelCount!=this._items.length&&(this.updatePagination(),this._tabLabelCount=this._items.length,this._changeDetectorRef.markForCheck()),this._selectedIndexChanged&&(this._scrollToLabel(this._selectedIndex),this._checkScrollingControls(),this._alignInkBarToSelectedTab(),this._selectedIndexChanged=!1,this._changeDetectorRef.markForCheck()),this._scrollDistanceChanged&&(this._updateTabScrollPosition(),this._scrollDistanceChanged=!1,this._changeDetectorRef.markForCheck())}ngOnDestroy(){this._eventCleanups.forEach(e=>e()),this._keyManager?.destroy(),this._destroyed.next(),this._destroyed.complete(),this._stopScrolling.complete()}_handleKeydown(e){if(!Dt(e))switch(e.keyCode){case 13:case 32:if(this.focusIndex!==this.selectedIndex){let n=this._items.get(this.focusIndex);n&&!n.disabled&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(e))}break;default:this._keyManager?.onKeydown(e)}}_onContentChanges(){let e=this._elementRef.nativeElement.textContent;e!==this._currentTextContent&&(this._currentTextContent=e||"",this._ngZone.run(()=>{this.updatePagination(),this._alignInkBarToSelectedTab(),this._changeDetectorRef.markForCheck()}))}updatePagination(){this._checkPaginationEnabled(),this._checkScrollingControls(),this._updateTabScrollPosition()}get focusIndex(){return this._keyManager?this._keyManager.activeItemIndex:0}set focusIndex(e){!this._isValidIndex(e)||this.focusIndex===e||!this._keyManager||this._keyManager.setActiveItem(e)}_isValidIndex(e){return this._items?!!this._items.toArray()[e]:!0}_setTabFocus(e){if(this._showPaginationControls&&this._scrollToLabel(e),this._items&&this._items.length){this._items.toArray()[e].focus();let n=this._tabListContainer.nativeElement;this._getLayoutDirection()=="ltr"?n.scrollLeft=0:n.scrollLeft=n.scrollWidth-n.offsetWidth}}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;let e=this.scrollDistance,n=this._getLayoutDirection()==="ltr"?-e:e;this._tabList.nativeElement.style.transform=`translateX(${Math.round(n)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(e){this._scrollTo(e)}_scrollHeader(e){let n=this._tabListContainer.nativeElement.offsetWidth,o=(e=="before"?-1:1)*n/3;return this._scrollTo(this._scrollDistance+o)}_handlePaginatorClick(e){this._stopInterval(),this._scrollHeader(e)}_scrollToLabel(e){if(this.disablePagination)return;let n=this._items?this._items.toArray()[e]:null;if(!n)return;let o=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:r,offsetWidth:a}=n.elementRef.nativeElement,s,c;this._getLayoutDirection()=="ltr"?(s=r,c=s+a):(c=this._tabListInner.nativeElement.offsetWidth-r,s=c-a);let m=this.scrollDistance,f=this.scrollDistance+o;sf&&(this.scrollDistance+=Math.min(c-f,s-m))}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{let e=this._tabListInner.nativeElement.scrollWidth,n=this._elementRef.nativeElement.offsetWidth,o=e-n>=5;o||(this.scrollDistance=0),o!==this._showPaginationControls&&(this._showPaginationControls=o,this._changeDetectorRef.markForCheck())}}_checkScrollingControls(){this.disablePagination?this._disableScrollAfter=this._disableScrollBefore=!0:(this._disableScrollBefore=this.scrollDistance==0,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck())}_getMaxScrollDistance(){let e=this._tabListInner.nativeElement.scrollWidth,n=this._tabListContainer.nativeElement.offsetWidth;return e-n||0}_alignInkBarToSelectedTab(){let e=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,n=e?e.elementRef.nativeElement:null;n?this._inkBar.alignToElement(n):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(e,n){n&&n.button!=null&&n.button!==0||(this._stopInterval(),Ta(Lce,Ace).pipe(ye(ft(this._stopScrolling,this._destroyed))).subscribe(()=>{let{maxScrollDistance:o,distance:r}=this._scrollHeader(e);(r===0||r>=o)&&this._stopInterval()}))}_scrollTo(e){if(this.disablePagination)return{maxScrollDistance:0,distance:0};let n=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(n,e)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:n,distance:this._scrollDistance}}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,inputs:{disablePagination:[2,"disablePagination","disablePagination",H],selectedIndex:[2,"selectedIndex","selectedIndex",ut]},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"}})}return t})(),zce=(()=>{class t extends mR{_items;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;ariaLabel;ariaLabelledby;disableRipple=!1;ngAfterContentInit(){this._inkBar=new Mh(this._items),super.ngAfterContentInit()}_itemSelected(e){e.preventDefault()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-tab-header"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,uR,4),n&2){let a;U(a=$())&&(o._items=a)}},viewQuery:function(n,o){if(n&1&&(ue(iR,7),ue(oR,7),ue(rR,7),ue(aR,5),ue(sR,5)),n&2){let r;U(r=$())&&(o._tabListContainer=r.first),U(r=$())&&(o._tabList=r.first),U(r=$())&&(o._tabListInner=r.first),U(r=$())&&(o._nextPaginator=r.first),U(r=$())&&(o._previousPaginator=r.first)}},hostAttrs:[1,"mat-mdc-tab-header"],hostVars:4,hostBindings:function(n,o){n&2&&oe("mat-mdc-tab-header-pagination-controls-enabled",o._showPaginationControls)("mat-mdc-tab-header-rtl",o._getLayoutDirection()=="rtl")},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],disableRipple:[2,"disableRipple","disableRipple",H]},features:[ce],ngContentSelectors:z2,decls:13,vars:10,consts:[["previousPaginator",""],["tabListContainer",""],["tabList",""],["tabListInner",""],["nextPaginator",""],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-before",3,"click","mousedown","touchend","matRippleDisabled"],[1,"mat-mdc-tab-header-pagination-chevron"],[1,"mat-mdc-tab-label-container",3,"keydown"],["role","tablist",1,"mat-mdc-tab-list",3,"cdkObserveContent"],[1,"mat-mdc-tab-labels"],["mat-ripple","",1,"mat-mdc-tab-header-pagination","mat-mdc-tab-header-pagination-after",3,"mousedown","click","touchend","matRippleDisabled"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"div",5,0),N("click",function(){return G(r),W(o._handlePaginatorClick("before"))})("mousedown",function(s){return G(r),W(o._handlePaginatorPress("before",s))})("touchend",function(){return G(r),W(o._stopInterval())}),F(2,"div",6),_(),h(3,"div",7,1),N("keydown",function(s){return G(r),W(o._handleKeydown(s))}),h(5,"div",8,2),N("cdkObserveContent",function(){return G(r),W(o._onContentChanges())}),h(7,"div",9,3),ae(9),_()()(),h(10,"div",10,4),N("mousedown",function(s){return G(r),W(o._handlePaginatorPress("after",s))})("click",function(){return G(r),W(o._handlePaginatorClick("after"))})("touchend",function(){return G(r),W(o._stopInterval())}),F(12,"div",6),_()}n&2&&(oe("mat-mdc-tab-header-pagination-disabled",o._disableScrollBefore),D("matRippleDisabled",o._disableScrollBefore||o.disableRipple),p(3),oe("_mat-animation-noopable",o._animationsDisabled),p(2),ne("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby||null),p(5),oe("mat-mdc-tab-header-pagination-disabled",o._disableScrollAfter),D("matRippleDisabled",o._disableScrollAfter||o.disableRipple))},dependencies:[mi,M0],styles:[`.mat-mdc-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mdc-tab-indicator .mdc-tab-indicator__content{transition-duration:var(--mat-tab-animation-duration, 250ms)}.mat-mdc-tab-header-pagination{-webkit-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:rgba(0,0,0,0);touch-action:none;box-sizing:content-box;outline:0}.mat-mdc-tab-header-pagination::-moz-focus-inner{border:0}.mat-mdc-tab-header-pagination .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-controls-enabled .mat-mdc-tab-header-pagination{display:flex}.mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after{padding-left:4px}.mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before,.mat-mdc-tab-header-pagination-after{padding-right:4px}.mat-mdc-tab-header-rtl .mat-mdc-tab-header-pagination-before .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-header-pagination-after .mat-mdc-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-mdc-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;height:8px;width:8px;border-color:var(--mat-tab-pagination-icon-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header-pagination-disabled{box-shadow:none;cursor:default;pointer-events:none}.mat-mdc-tab-header-pagination-disabled .mat-mdc-tab-header-pagination-chevron{opacity:.4}.mat-mdc-tab-list{flex-grow:1;position:relative;transition:transform 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-mdc-tab-list{transition:none}.mat-mdc-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-group-inverted-header .mat-mdc-tab-label-container{border-bottom:none;border-top-style:solid;border-top-width:var(--mat-tab-divider-height, 1px);border-top-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-labels{display:flex;flex:1 0 auto}[mat-align-tabs=center]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-header .mat-mdc-tab-labels{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-labels,.mat-mdc-tab-labels.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab::before{margin:5px}@media(forced-colors: active){.mat-mdc-tab[aria-disabled=true]{color:GrayText}} +`],encapsulation:2})}return t})(),pR=new L("MAT_TABS_CONFIG"),nR=(()=>{class t extends Mi{_host=d(Ub);_ngZone=d(se);_centeringSub=Se.EMPTY;_leavingSub=Se.EMPTY;constructor(){super()}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe(We(this._host._isCenterPosition())).subscribe(e=>{this._host._content&&e&&!this.hasAttached()&&this._ngZone.run(()=>{Promise.resolve().then(),this.attach(this._host._content)})}),this._leavingSub=this._host._afterLeavingCenter.subscribe(()=>{this._host.preserveContent||this._ngZone.run(()=>this.detach())})}ngOnDestroy(){super.ngOnDestroy(),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTabBodyHost",""]],features:[ce]})}return t})(),Ub=(()=>{class t{_elementRef=d(Q);_dir=d(bt,{optional:!0});_ngZone=d(se);_injector=d(be);_renderer=d(Ke);_diAnimationsDisabled=Ue();_eventCleanups;_initialized;_fallbackTimer;_positionIndex;_dirChangeSubscription=Se.EMPTY;_position;_previousPosition;_onCentering=new j;_beforeCentering=new j;_afterLeavingCenter=new j;_onCentered=new j(!0);_portalHost;_contentElement;_content;animationDuration="500ms";preserveContent=!1;set position(e){this._positionIndex=e,this._computePositionAnimationState()}constructor(){if(this._dir){let e=d(xe);this._dirChangeSubscription=this._dir.change.subscribe(n=>{this._computePositionAnimationState(n),e.markForCheck()})}}ngOnInit(){this._bindTransitionEvents(),this._position==="center"&&(this._setActiveClass(!0),Ct(()=>this._onCentering.emit(this._elementRef.nativeElement.clientHeight),{injector:this._injector})),this._initialized=!0}ngOnDestroy(){clearTimeout(this._fallbackTimer),this._eventCleanups?.forEach(e=>e()),this._dirChangeSubscription.unsubscribe()}_bindTransitionEvents(){this._ngZone.runOutsideAngular(()=>{let e=this._elementRef.nativeElement,n=o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.remove("mat-tab-body-animating"),o.type==="transitionend"&&this._transitionDone())};this._eventCleanups=[this._renderer.listen(e,"transitionstart",o=>{o.target===this._contentElement?.nativeElement&&(this._elementRef.nativeElement.classList.add("mat-tab-body-animating"),this._transitionStarted())}),this._renderer.listen(e,"transitionend",n),this._renderer.listen(e,"transitioncancel",n)]})}_transitionStarted(){clearTimeout(this._fallbackTimer);let e=this._position==="center";this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_transitionDone(){this._position==="center"?this._onCentered.emit():this._previousPosition==="center"&&this._afterLeavingCenter.emit()}_setActiveClass(e){this._elementRef.nativeElement.classList.toggle("mat-mdc-tab-body-active",e)}_getLayoutDirection(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}_isCenterPosition(){return this._positionIndex===0}_computePositionAnimationState(e=this._getLayoutDirection()){this._previousPosition=this._position,this._positionIndex<0?this._position=e=="ltr"?"left":"right":this._positionIndex>0?this._position=e=="ltr"?"right":"left":this._position="center",this._animationsDisabled()?this._simulateTransitionEvents():this._initialized&&(this._position==="center"||this._previousPosition==="center")&&(clearTimeout(this._fallbackTimer),this._fallbackTimer=this._ngZone.runOutsideAngular(()=>setTimeout(()=>this._simulateTransitionEvents(),100)))}_simulateTransitionEvents(){this._transitionStarted(),Ct(()=>this._transitionDone(),{injector:this._injector})}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0ms"||this.animationDuration==="0s"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab-body"]],viewQuery:function(n,o){if(n&1&&(ue(nR,5),ue(gce,5)),n&2){let r;U(r=$())&&(o._portalHost=r.first),U(r=$())&&(o._contentElement=r.first)}},hostAttrs:[1,"mat-mdc-tab-body"],hostVars:1,hostBindings:function(n,o){n&2&&ne("inert",o._position==="center"?null:"")},inputs:{_content:[0,"content","_content"],animationDuration:"animationDuration",preserveContent:"preserveContent",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_onCentered:"_onCentered"},decls:3,vars:6,consts:[["content",""],["cdkScrollable","",1,"mat-mdc-tab-body-content"],["matTabBodyHost",""]],template:function(n,o){n&1&&(h(0,"div",1,0),ot(2,_ce,0,0,"ng-template",2),_()),n&2&&oe("mat-tab-body-content-left",o._position==="left")("mat-tab-body-content-right",o._position==="right")("mat-tab-body-content-can-animate",o._position==="center"||o._previousPosition==="center")},dependencies:[nR,Ar],styles:[`.mat-mdc-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-mdc-tab-body.mat-mdc-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-mdc-tab-group.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body.mat-mdc-tab-body-active{overflow-y:hidden}.mat-mdc-tab-body-content{height:100%;overflow:auto;transform:none;visibility:hidden}.mat-tab-body-animating>.mat-mdc-tab-body-content,.mat-mdc-tab-body-active>.mat-mdc-tab-body-content{visibility:visible}.mat-tab-body-animating>.mat-mdc-tab-body-content{min-height:1px}.mat-mdc-tab-group-dynamic-height .mat-mdc-tab-body-content{overflow:hidden}.mat-tab-body-content-can-animate{transition:transform var(--mat-tab-animation-duration) 1ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable .mat-tab-body-content-can-animate{transition:none}.mat-tab-body-content-left{transform:translate3d(-100%, 0, 0)}.mat-tab-body-content-right{transform:translate3d(100%, 0, 0)} +`],encapsulation:2})}return t})(),mWe=(()=>{class t{_elementRef=d(Q);_changeDetectorRef=d(xe);_ngZone=d(se);_tabsSubscription=Se.EMPTY;_tabLabelSubscription=Se.EMPTY;_tabBodySubscription=Se.EMPTY;_diAnimationsDisabled=Ue();_allTabs;_tabBodies;_tabBodyWrapper;_tabHeader;_tabs=new In;_indexToSelect=0;_lastFocusedTabIndex=null;_tabBodyWrapperHeight=0;color;get fitInkBarToContent(){return this._fitInkBarToContent}set fitInkBarToContent(e){this._fitInkBarToContent=e,this._changeDetectorRef.markForCheck()}_fitInkBarToContent=!1;stretchTabs=!0;alignTabs=null;dynamicHeight=!1;get selectedIndex(){return this._selectedIndex}set selectedIndex(e){this._indexToSelect=isNaN(e)?null:e}_selectedIndex=null;headerPosition="above";get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(e){this._contentTabIndex=isNaN(e)?null:e}_contentTabIndex;disablePagination=!1;disableRipple=!1;preserveContent=!1;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;ariaLabel;ariaLabelledby;selectedIndexChange=new j;focusChange=new j;animationDone=new j;selectedTabChange=new j(!0);_groupId;_isServer=!d(je).isBrowser;constructor(){let e=d(pR,{optional:!0});this._groupId=d(He).getId("mat-tab-group-"),this.animationDuration=e&&e.animationDuration?e.animationDuration:"500ms",this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.dynamicHeight=e&&e.dynamicHeight!=null?e.dynamicHeight:!1,e?.contentTabIndex!=null&&(this.contentTabIndex=e.contentTabIndex),this.preserveContent=!!e?.preserveContent,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0,this.alignTabs=e&&e.alignTabs!=null?e.alignTabs:null}ngAfterContentChecked(){let e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){let n=this._selectedIndex==null;if(!n){this.selectedTabChange.emit(this._createChangeEvent(e));let o=this._tabBodyWrapper.nativeElement;o.style.minHeight=o.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((o,r)=>o.isActive=r===e),n||(this.selectedIndexChange.emit(e),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((n,o)=>{n.position=o-e,this._selectedIndex!=null&&n.position==0&&!n.origin&&(n.origin=e-this._selectedIndex)}),this._selectedIndex!==e&&(this._selectedIndex=e,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{let e=this._clampTabIndex(this._indexToSelect);if(e===this._selectedIndex){let n=this._tabs.toArray(),o;for(let r=0;r{n[e].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(e))})}this._changeDetectorRef.markForCheck()})}ngAfterViewInit(){this._tabBodySubscription=this._tabBodies.changes.subscribe(()=>this._bodyCentered(!0))}_subscribeToAllTabChanges(){this._allTabs.changes.pipe(We(this._allTabs)).subscribe(e=>{this._tabs.reset(e.filter(n=>n._closestTabGroup===this||!n._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe(),this._tabBodySubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(e){let n=this._tabHeader;n&&(n.focusIndex=e)}_focusChanged(e){this._lastFocusedTabIndex=e,this.focusChange.emit(this._createChangeEvent(e))}_createChangeEvent(e){let n=new $b;return n.index=e,this._tabs&&this._tabs.length&&(n.tab=this._tabs.toArray()[e]),n}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=ft(...this._tabs.map(e=>e._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(e){return Math.min(this._tabs.length-1,Math.max(e||0,0))}_getTabLabelId(e,n){return e.id||`${this._groupId}-label-${n}`}_getTabContentId(e){return`${this._groupId}-content-${e}`}_setTabBodyWrapperHeight(e){if(!this.dynamicHeight||!this._tabBodyWrapperHeight){this._tabBodyWrapperHeight=e;return}let n=this._tabBodyWrapper.nativeElement;n.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(n.style.height=e+"px")}_removeTabBodyWrapperHeight(){let e=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=e.clientHeight,e.style.height="",this._ngZone.run(()=>this.animationDone.emit())}_handleClick(e,n,o){n.focusIndex=o,e.disabled||(this.selectedIndex=o)}_getTabIndex(e){let n=this._lastFocusedTabIndex??this.selectedIndex;return e===n?0:-1}_tabFocusChanged(e,n){e&&e!=="mouse"&&e!=="touch"&&(this._tabHeader.focusIndex=n)}_bodyCentered(e){e&&this._tabBodies?.forEach((n,o)=>n._setActiveClass(o===this._selectedIndex))}_animationsDisabled(){return this._diAnimationsDisabled||this.animationDuration==="0"||this.animationDuration==="0ms"}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab-group"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Pce,5),n&2){let a;U(a=$())&&(o._allTabs=a)}},viewQuery:function(n,o){if(n&1&&(ue(bce,5),ue(vce,5),ue(Ub,5)),n&2){let r;U(r=$())&&(o._tabBodyWrapper=r.first),U(r=$())&&(o._tabHeader=r.first),U(r=$())&&(o._tabBodies=r)}},hostAttrs:[1,"mat-mdc-tab-group"],hostVars:11,hostBindings:function(n,o){n&2&&(ne("mat-align-tabs",o.alignTabs),Tt("mat-"+(o.color||"primary")),At("--mat-tab-animation-duration",o.animationDuration),oe("mat-mdc-tab-group-dynamic-height",o.dynamicHeight)("mat-mdc-tab-group-inverted-header",o.headerPosition==="below")("mat-mdc-tab-group-stretch-tabs",o.stretchTabs))},inputs:{color:"color",fitInkBarToContent:[2,"fitInkBarToContent","fitInkBarToContent",H],stretchTabs:[2,"mat-stretch-tabs","stretchTabs",H],alignTabs:[0,"mat-align-tabs","alignTabs"],dynamicHeight:[2,"dynamicHeight","dynamicHeight",H],selectedIndex:[2,"selectedIndex","selectedIndex",ut],headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:[2,"contentTabIndex","contentTabIndex",ut],disablePagination:[2,"disablePagination","disablePagination",H],disableRipple:[2,"disableRipple","disableRipple",H],preserveContent:[2,"preserveContent","preserveContent",H],backgroundColor:"backgroundColor",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"]},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},exportAs:["matTabGroup"],features:[de([{provide:lR,useExisting:t}])],ngContentSelectors:z2,decls:9,vars:8,consts:[["tabHeader",""],["tabBodyWrapper",""],["tabNode",""],[3,"indexFocused","selectFocusedIndex","selectedIndex","disableRipple","disablePagination","aria-label","aria-labelledby"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"id","mdc-tab--active","class","disabled","fitInkBarToContent"],[1,"mat-mdc-tab-body-wrapper"],["role","tabpanel",3,"id","class","content","position","animationDuration","preserveContent"],["role","tab","matTabLabelWrapper","","cdkMonitorElementFocus","",1,"mdc-tab","mat-mdc-tab","mat-focus-indicator",3,"click","cdkFocusChange","id","disabled","fitInkBarToContent"],[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"_onCentered","_onCentering","_beforeCentering","id","content","position","animationDuration","preserveContent"]],template:function(n,o){if(n&1){let r=le();De(),h(0,"mat-tab-header",3,0),N("indexFocused",function(s){return G(r),W(o._focusChanged(s))})("selectFocusedIndex",function(s){return G(r),W(o.selectedIndex=s)}),Xe(2,Mce,8,17,"div",4,ht),_(),E(4,wce,1,0),h(5,"div",5,1),Xe(7,Dce,1,10,"mat-tab-body",6,ht),_()}n&2&&(D("selectedIndex",o.selectedIndex||0)("disableRipple",o.disableRipple)("disablePagination",o.disablePagination),C1("aria-label",o.ariaLabel)("aria-labelledby",o.ariaLabelledby),p(2),Ze(o._tabs),p(2),I(o._isServer?4:-1),p(),oe("_mat-animation-noopable",o._animationsDisabled()),p(2),Ze(o._tabs))},dependencies:[zce,uR,x0,mi,Mi,Ub],styles:[`.mdc-tab{min-width:90px;padding:0 24px;display:flex;flex:1 0 auto;justify-content:center;box-sizing:border-box;border:none;outline:none;text-align:center;white-space:nowrap;cursor:pointer;z-index:1;touch-action:manipulation}.mdc-tab__content{display:flex;align-items:center;justify-content:center;height:inherit;pointer-events:none}.mdc-tab__text-label{transition:150ms color linear;display:inline-block;line-height:1;z-index:2}.mdc-tab--active .mdc-tab__text-label{transition-delay:100ms}._mat-animation-noopable .mdc-tab__text-label{transition:none}.mdc-tab-indicator{display:flex;position:absolute;top:0;left:0;justify-content:center;width:100%;height:100%;pointer-events:none;z-index:1}.mdc-tab-indicator__content{transition:var(--mat-tab-animation-duration, 250ms) transform cubic-bezier(0.4, 0, 0.2, 1);transform-origin:left;opacity:0}.mdc-tab-indicator__content--underline{align-self:flex-end;box-sizing:border-box;width:100%;border-top-style:solid}.mdc-tab-indicator--active .mdc-tab-indicator__content{opacity:1}._mat-animation-noopable .mdc-tab-indicator__content,.mdc-tab-indicator--no-transition .mdc-tab-indicator__content{transition:none}.mat-mdc-tab-ripple.mat-mdc-tab-ripple{position:absolute;top:0;left:0;bottom:0;right:0;pointer-events:none}.mat-mdc-tab{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab.mdc-tab{flex-grow:0}.mat-mdc-tab .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-group.mat-mdc-tab-group-stretch-tabs>.mat-mdc-tab-header .mat-mdc-tab{flex-grow:1}.mat-mdc-tab-group{display:flex;flex-direction:column;max-width:100%}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mat-mdc-tab .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background.mat-primary>.mat-mdc-tab-header .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-header .mat-mdc-tab:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-focus-indicator::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mdc-tab__ripple::before,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-group.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header{flex-direction:column-reverse}.mat-mdc-tab-group.mat-mdc-tab-group-inverted-header .mdc-tab-indicator__content--underline{align-self:flex-start}.mat-mdc-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-mdc-tab-body-wrapper._mat-animation-noopable{transition:none !important;animation:none !important} +`],encapsulation:2})}return t})(),$b=class{index;tab},Rce=(()=>{class t extends mR{_focusedItem=we(null);get fitInkBarToContent(){return this._fitInkBarToContent.value}set fitInkBarToContent(e){this._fitInkBarToContent.next(e),this._changeDetectorRef.markForCheck()}_fitInkBarToContent=new ct(!1);stretchTabs=!0;get animationDuration(){return this._animationDuration}set animationDuration(e){let n=e+"";this._animationDuration=/^\d+$/.test(n)?e+"ms":n}_animationDuration;_items;get backgroundColor(){return this._backgroundColor}set backgroundColor(e){let n=this._elementRef.nativeElement.classList;n.remove("mat-tabs-with-background",`mat-background-${this.backgroundColor}`),e&&n.add("mat-tabs-with-background",`mat-background-${e}`),this._backgroundColor=e}_backgroundColor;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=we(!1);color="primary";tabPanel;_tabListContainer;_tabList;_tabListInner;_nextPaginator;_previousPaginator;_inkBar;constructor(){let e=d(pR,{optional:!0});super(),this.disablePagination=e&&e.disablePagination!=null?e.disablePagination:!1,this.fitInkBarToContent=e&&e.fitInkBarToContent!=null?e.fitInkBarToContent:!1,this.stretchTabs=e&&e.stretchTabs!=null?e.stretchTabs:!0}_itemSelected(){}ngAfterContentInit(){this._inkBar=new Mh(this._items),this._items.changes.pipe(We(null),ye(this._destroyed)).subscribe(()=>this.updateActiveLink()),super.ngAfterContentInit(),this._keyManager.change.pipe(We(null),ye(this._destroyed)).subscribe(()=>this._focusedItem.set(this._keyManager?.activeItem||null))}ngAfterViewInit(){this.tabPanel,super.ngAfterViewInit()}updateActiveLink(){if(!this._items)return;let e=this._items.toArray();for(let n=0;n.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:center}[mat-align-tabs=end]>.mat-mdc-tab-link-container .mat-mdc-tab-links{justify-content:flex-end}.cdk-drop-list .mat-mdc-tab-links,.mat-mdc-tab-links.cdk-drop-list{min-height:var(--mat-tab-container-height, 48px)}.mat-mdc-tab-link-container{display:flex;flex-grow:1;overflow:hidden;z-index:1;border-bottom-style:solid;border-bottom-width:var(--mat-tab-divider-height, 1px);border-bottom-color:var(--mat-tab-divider-color, var(--mat-sys-surface-variant))}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination{background-color:var(--mat-tab-background-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background.mat-primary>.mat-mdc-tab-link-container .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab__text-label{color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background:not(.mat-primary)>.mat-mdc-tab-link-container .mat-mdc-tab-link:not(.mdc-tab--active) .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-focus-indicator::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-focus-indicator::before{border-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mdc-tab__ripple::before,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-ripple-element,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mdc-tab__ripple::before{background-color:var(--mat-tab-foreground-color)}.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-link-container .mat-mdc-tab-header-pagination-chevron,.mat-mdc-tab-nav-bar.mat-tabs-with-background>.mat-mdc-tab-header-pagination .mat-mdc-tab-header-pagination-chevron{color:var(--mat-tab-foreground-color)} +`],encapsulation:2})}return t})(),Nce=(()=>{class t extends dR{_tabNavBar=d(Rce);elementRef=d(Q);_focusMonitor=d(sn);_destroyed=new B;_isActive=!1;_tabIndex=Zn(()=>this._tabNavBar._focusedItem()===this?this.tabIndex:-1);get active(){return this._isActive}set active(e){e!==this._isActive&&(this._isActive=e,this._tabNavBar.updateActiveLink())}disabled=!1;get disableRipple(){return this._disableRipple()}set disableRipple(e){this._disableRipple.set(e)}_disableRipple=we(!1);tabIndex=0;rippleConfig;get rippleDisabled(){return this.disabled||this.disableRipple||this._tabNavBar.disableRipple||!!this.rippleConfig.disabled}id=d(He).getId("mat-tab-link-");constructor(){super(),d(at).load(cn);let e=d(nl,{optional:!0}),n=d(new dn("tabindex"),{optional:!0});this.rippleConfig=e||{},this.tabIndex=n==null?0:parseInt(n)||0,Ue()&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0}),this._tabNavBar._fitInkBarToContent.pipe(ye(this._destroyed)).subscribe(o=>{this.fitInkBarToContent=o})}focus(){this.elementRef.nativeElement.focus()}ngAfterViewInit(){this._focusMonitor.monitor(this.elementRef)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),super.ngOnDestroy(),this._focusMonitor.stopMonitoring(this.elementRef)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(e){(e.keyCode===32||e.keyCode===13)&&(this.disabled?e.preventDefault():this._tabNavBar.tabPanel&&(e.keyCode===32&&e.preventDefault(),this.elementRef.nativeElement.click()))}_getAriaControls(){return this._tabNavBar.tabPanel?this._tabNavBar.tabPanel?.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mdc-tab","mat-mdc-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(n,o){n&1&&N("focus",function(){return o._handleFocus()})("keydown",function(a){return o._handleKeydown(a)}),n&2&&(ne("aria-controls",o._getAriaControls())("aria-current",o._getAriaCurrent())("aria-disabled",o.disabled)("aria-selected",o._getAriaSelected())("id",o.id)("tabIndex",o._tabIndex())("role",o._getRole()),oe("mat-mdc-tab-disabled",o.disabled)("mdc-tab--active",o.active))},inputs:{active:[2,"active","active",H],disabled:[2,"disabled","disabled",H],disableRipple:[2,"disableRipple","disableRipple",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)],id:"id"},exportAs:["matTabLink"],features:[ce],attrs:kce,ngContentSelectors:z2,decls:5,vars:2,consts:[[1,"mdc-tab__ripple"],["mat-ripple","",1,"mat-mdc-tab-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mdc-tab__content"],[1,"mdc-tab__text-label"]],template:function(n,o){n&1&&(De(),F(0,"span",0)(1,"div",1),h(2,"span",2)(3,"span",3),ae(4),_()()),n&2&&(p(),D("matRippleTrigger",o.elementRef.nativeElement)("matRippleDisabled",o.rippleDisabled))},dependencies:[mi],styles:[`.mat-mdc-tab-link{-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-decoration:none;background:none;height:var(--mat-tab-container-height, 48px);font-family:var(--mat-tab-label-text-font, var(--mat-sys-title-small-font));font-size:var(--mat-tab-label-text-size, var(--mat-sys-title-small-size));letter-spacing:var(--mat-tab-label-text-tracking, var(--mat-sys-title-small-tracking));line-height:var(--mat-tab-label-text-line-height, var(--mat-sys-title-small-line-height));font-weight:var(--mat-tab-label-text-weight, var(--mat-sys-title-small-weight))}.mat-mdc-tab-link.mdc-tab{flex-grow:0}.mat-mdc-tab-link .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-indicator-color, var(--mat-sys-primary));border-top-width:var(--mat-tab-active-indicator-height, 2px);border-radius:var(--mat-tab-active-indicator-shape, 0)}.mat-mdc-tab-link:hover .mdc-tab__text-label{color:var(--mat-tab-inactive-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link:focus .mdc-tab__text-label{color:var(--mat-tab-inactive-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__text-label{color:var(--mat-tab-active-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active .mdc-tab__ripple::before,.mat-mdc-tab-link.mdc-tab--active .mat-ripple-element{background-color:var(--mat-tab-active-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab__text-label{color:var(--mat-tab-active-hover-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:hover .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-hover-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab__text-label{color:var(--mat-tab-active-focus-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link.mdc-tab--active:focus .mdc-tab-indicator__content--underline{border-color:var(--mat-tab-active-focus-indicator-color, var(--mat-sys-primary))}.mat-mdc-tab-link.mat-mdc-tab-disabled{opacity:.4;pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__content{pointer-events:none}.mat-mdc-tab-link.mat-mdc-tab-disabled .mdc-tab__ripple::before,.mat-mdc-tab-link.mat-mdc-tab-disabled .mat-ripple-element{background-color:var(--mat-tab-disabled-ripple-color, var(--mat-sys-on-surface-variant))}.mat-mdc-tab-link .mdc-tab__ripple::before{content:"";display:block;position:absolute;top:0;left:0;right:0;bottom:0;opacity:0;pointer-events:none;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-link .mdc-tab__text-label{color:var(--mat-tab-inactive-label-text-color, var(--mat-sys-on-surface));display:inline-flex;align-items:center}.mat-mdc-tab-link .mdc-tab__content{position:relative;pointer-events:auto}.mat-mdc-tab-link:hover .mdc-tab__ripple::before{opacity:.04}.mat-mdc-tab-link.cdk-program-focused .mdc-tab__ripple::before,.mat-mdc-tab-link.cdk-keyboard-focused .mdc-tab__ripple::before{opacity:.12}.mat-mdc-tab-link .mat-ripple-element{opacity:.12;background-color:var(--mat-tab-inactive-ripple-color, var(--mat-sys-on-surface))}.mat-mdc-tab-header.mat-mdc-tab-nav-bar-stretch-tabs .mat-mdc-tab-link{flex-grow:1}.mat-mdc-tab-link::before{margin:5px}@media(max-width: 599px){.mat-mdc-tab-link{min-width:72px}} +`],encapsulation:2,changeDetection:0})}return t})(),pWe=(()=>{class t{id=d(He).getId("mat-tab-nav-panel-");_activeTabId;static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-tab-nav-panel"]],hostAttrs:["role","tabpanel",1,"mat-mdc-tab-nav-panel"],hostVars:2,hostBindings:function(n,o){n&2&&ne("aria-labelledby",o._activeTabId)("id",o.id)},inputs:{id:"id"},exportAs:["matTabNavPanel"],ngContentSelectors:z2,decls:1,vars:0,template:function(n,o){n&1&&(De(),ae(0))},encapsulation:2,changeDetection:0})}return t})(),fR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var Fce=["*",[["mat-toolbar-row"]]],Vce=["*","mat-toolbar-row"],Bce=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]})}return t})(),DWe=(()=>{class t{_elementRef=d(Q);_platform=d(je);_document=d(Me);color;_toolbarRows;constructor(){}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){this._toolbarRows.length}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["mat-toolbar"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Bce,5),n&2){let a;U(a=$())&&(o._toolbarRows=a)}},hostAttrs:[1,"mat-toolbar"],hostVars:6,hostBindings:function(n,o){n&2&&(Tt(o.color?"mat-"+o.color:""),oe("mat-toolbar-multiple-rows",o._toolbarRows.length>0)("mat-toolbar-single-row",o._toolbarRows.length===0))},inputs:{color:"color"},exportAs:["matToolbar"],ngContentSelectors:Vce,decls:2,vars:0,template:function(n,o){n&1&&(De(Fce),ae(0),ae(1,1))},styles:[`.mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}} +`],encapsulation:2,changeDetection:0})}return t})();var hR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[fe,fe]})}return t})();var wh=class{dataNodes;expansionModel=new uo(!0);trackBy;getLevel;isExpandable;getChildren;toggle(i){this.expansionModel.toggle(this._trackByValue(i))}expand(i){this.expansionModel.select(this._trackByValue(i))}collapse(i){this.expansionModel.deselect(this._trackByValue(i))}isExpanded(i){return this.expansionModel.isSelected(this._trackByValue(i))}toggleDescendants(i){this.expansionModel.isSelected(this._trackByValue(i))?this.collapseDescendants(i):this.expandDescendants(i)}collapseAll(){this.expansionModel.clear()}expandDescendants(i){let e=[i];e.push(...this.getDescendants(i)),this.expansionModel.select(...e.map(n=>this._trackByValue(n)))}collapseDescendants(i){let e=[i];e.push(...this.getDescendants(i)),this.expansionModel.deselect(...e.map(n=>this._trackByValue(n)))}_trackByValue(i){return this.trackBy?this.trackBy(i):i}},gR=class extends wh{getLevel;isExpandable;options;constructor(i,e,n){super(),this.getLevel=i,this.isExpandable=e,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}getDescendants(i){let e=this.dataNodes.indexOf(i),n=[];for(let o=e+1;othis._trackByValue(i)))}},_R=class extends wh{getChildren;options;constructor(i,e){super(),this.getChildren=i,this.options=e,this.options&&(this.trackBy=this.options.trackBy),this.options?.isExpandable&&(this.isExpandable=this.options.isExpandable)}expandAll(){this.expansionModel.clear();let i=this.dataNodes.reduce((e,n)=>[...e,...this.getDescendants(n),n],[]);this.expansionModel.select(...i.map(e=>this._trackByValue(e)))}getDescendants(i){let e=[];return this._getDescendants(e,i),e.splice(1)}_getDescendants(i,e){i.push(e);let n=this.getChildren(e);Array.isArray(n)?n.forEach(o=>this._getDescendants(i,o)):ai(n)&&n.pipe(Be(1),Ae(Boolean)).subscribe(o=>{for(let r of o)this._getDescendants(i,r)})}},Ou=new L("CDK_TREE_NODE_OUTLET_NODE"),Iu=(()=>{class t{viewContainer=d(dt);_node=d(Ou,{optional:!0});constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodeOutlet",""]]})}return t})(),Gb=class{$implicit;level;index;count;constructor(i){this.$implicit=i}},Dh=(()=>{class t{template=d(tt);when;constructor(){}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:[0,"cdkTreeNodeDefWhen","when"]}})}return t})();function bR(){return Error("Could not find a tree control, levelAccessor, or childrenAccessor for the tree.")}var R2=(()=>{class t{_differs=d(Io);_changeDetectorRef=d(xe);_elementRef=d(Q);_dir=d(bt);_onDestroy=new B;_dataDiffer;_defaultNodeDef;_dataSubscription;_levels=new Map;_parents=new Map;_ariaSets=new Map;get dataSource(){return this._dataSource}set dataSource(e){this._dataSource!==e&&this._switchDataSource(e)}_dataSource;treeControl;levelAccessor;childrenAccessor;trackBy;expansionKey;_nodeOutlet;_nodeDefs;viewChange=new ct({start:0,end:Number.MAX_VALUE});_expansionModel;_flattenedNodes=new ct([]);_nodeType=new ct(null);_nodes=new ct(new Map);_keyManagerNodes=new ct([]);_keyManagerFactory=d(bk);_keyManager;_viewInit=!1;constructor(){}ngAfterContentInit(){this._initializeKeyManager()}ngAfterContentChecked(){this._updateDefaultNodeDefinition(),this._subscribeToDataChanges()}ngOnDestroy(){this._nodeOutlet.viewContainer.clear(),this._nodes.complete(),this._keyManagerNodes.complete(),this._nodeType.complete(),this._flattenedNodes.complete(),this.viewChange.complete(),this._onDestroy.next(),this._onDestroy.complete(),this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),this._keyManager?.destroy()}ngOnInit(){this._checkTreeControlUsage(),this._initializeDataDiffer()}ngAfterViewInit(){this._viewInit=!0}_updateDefaultNodeDefinition(){let e=this._nodeDefs.filter(n=>!n.when);e.length>1,this._defaultNodeDef=e[0]}_setNodeTypeIfUnset(e){this._nodeType.value===null&&this._nodeType.next(e)}_switchDataSource(e){this._dataSource&&typeof this._dataSource.disconnect=="function"&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),e||this._nodeOutlet.viewContainer.clear(),this._dataSource=e,this._nodeDefs&&this._subscribeToDataChanges()}_getExpansionModel(){return this.treeControl?this.treeControl.expansionModel:(this._expansionModel??=new uo(!0),this._expansionModel)}_subscribeToDataChanges(){if(this._dataSubscription)return;let e;dl(this._dataSource)?e=this._dataSource.connect(this):ai(this._dataSource)?e=this._dataSource:Array.isArray(this._dataSource)&&(e=re(this._dataSource)),e&&(this._dataSubscription=this._getRenderData(e).pipe(ye(this._onDestroy)).subscribe(n=>{this._renderDataChanges(n)}))}_getRenderData(e){let n=this._getExpansionModel();return gi([e,this._nodeType,n.changed.pipe(We(null),Ot(o=>{this._emitExpansionChanges(o)}))]).pipe(lt(([o,r])=>r===null?re({renderNodes:o,flattenedNodes:null,nodeType:r}):this._computeRenderingData(o,r).pipe(me(a=>Ne(q({},a),{nodeType:r})))))}_renderDataChanges(e){if(e.nodeType===null){this.renderNodeChanges(e.renderNodes);return}this._updateCachedData(e.flattenedNodes),this.renderNodeChanges(e.renderNodes),this._updateKeyManagerItems(e.flattenedNodes)}_emitExpansionChanges(e){if(!e)return;let n=this._nodes.value;for(let o of e.added)n.get(o)?._emitExpansionState(!0);for(let o of e.removed)n.get(o)?._emitExpansionState(!1)}_initializeKeyManager(){let e=gi([this._keyManagerNodes,this._nodes]).pipe(me(([o,r])=>o.reduce((a,s)=>{let c=r.get(this._getExpansionKey(s));return c&&a.push(c),a},[]))),n={trackBy:o=>this._getExpansionKey(o.data),skipPredicate:o=>!!o.isDisabled,typeAheadDebounceInterval:!0,horizontalOrientation:this._dir.value};this._keyManager=this._keyManagerFactory(e,n)}_initializeDataDiffer(){let e=this.trackBy??((n,o)=>this._getExpansionKey(o));this._dataDiffer=this._differs.find([]).create(e)}_checkTreeControlUsage(){}renderNodeChanges(e,n=this._dataDiffer,o=this._nodeOutlet.viewContainer,r){let a=n.diff(e);!a&&!this._viewInit||(a?.forEachOperation((s,c,m)=>{if(s.previousIndex==null)this.insertNode(e[m],m,o,r);else if(m==null)o.remove(c);else{let f=o.get(c);o.move(f,m)}}),a?.forEachIdentityChange(s=>{let c=s.item;if(s.currentIndex!=null){let m=o.get(s.currentIndex);m.context.$implicit=c}}),r?this._changeDetectorRef.markForCheck():this._changeDetectorRef.detectChanges())}_getNodeDef(e,n){if(this._nodeDefs.length===1)return this._nodeDefs.first;let o=this._nodeDefs.find(r=>r.when&&r.when(n,e))||this._defaultNodeDef;return o}insertNode(e,n,o,r){let a=this._getLevelAccessor(),s=this._getNodeDef(e,n),c=this._getExpansionKey(e),m=new Gb(e);m.index=n,r??=this._parents.get(c)??void 0,a?m.level=a(e):r!==void 0&&this._levels.has(this._getExpansionKey(r))?m.level=this._levels.get(this._getExpansionKey(r))+1:m.level=0,this._levels.set(c,m.level),(o||this._nodeOutlet.viewContainer).createEmbeddedView(s.template,m,n),va.mostRecentTreeNode&&(va.mostRecentTreeNode.data=e)}isExpanded(e){return!!(this.treeControl?.isExpanded(e)||this._expansionModel?.isSelected(this._getExpansionKey(e)))}toggle(e){this.treeControl?this.treeControl.toggle(e):this._expansionModel&&this._expansionModel.toggle(this._getExpansionKey(e))}expand(e){this.treeControl?this.treeControl.expand(e):this._expansionModel&&this._expansionModel.select(this._getExpansionKey(e))}collapse(e){this.treeControl?this.treeControl.collapse(e):this._expansionModel&&this._expansionModel.deselect(this._getExpansionKey(e))}toggleDescendants(e){this.treeControl?this.treeControl.toggleDescendants(e):this._expansionModel&&(this.isExpanded(e)?this.collapseDescendants(e):this.expandDescendants(e))}expandDescendants(e){if(this.treeControl)this.treeControl.expandDescendants(e);else if(this._expansionModel){let n=this._expansionModel;n.select(this._getExpansionKey(e)),this._getDescendants(e).pipe(Be(1),ye(this._onDestroy)).subscribe(o=>{n.select(...o.map(r=>this._getExpansionKey(r)))})}}collapseDescendants(e){if(this.treeControl)this.treeControl.collapseDescendants(e);else if(this._expansionModel){let n=this._expansionModel;n.deselect(this._getExpansionKey(e)),this._getDescendants(e).pipe(Be(1),ye(this._onDestroy)).subscribe(o=>{n.deselect(...o.map(r=>this._getExpansionKey(r)))})}}expandAll(){this.treeControl?this.treeControl.expandAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.select(...e))}collapseAll(){this.treeControl?this.treeControl.collapseAll():this._expansionModel&&this._forEachExpansionKey(e=>this._expansionModel?.deselect(...e))}_getLevelAccessor(){return this.treeControl?.getLevel?.bind(this.treeControl)??this.levelAccessor}_getChildrenAccessor(){return this.treeControl?.getChildren?.bind(this.treeControl)??this.childrenAccessor}_getDirectChildren(e){let n=this._getLevelAccessor(),o=this._expansionModel??this.treeControl?.expansionModel;if(!o)return re([]);let r=this._getExpansionKey(e),a=o.changed.pipe(lt(c=>c.added.includes(r)?re(!0):c.removed.includes(r)?re(!1):Sn),We(this.isExpanded(e)));if(n)return gi([a,this._flattenedNodes]).pipe(me(([c,m])=>c?this._findChildrenByLevel(n,m,e,1):[]));let s=this._getChildrenAccessor();if(s)return Jc(s(e)??[]);throw bR()}_findChildrenByLevel(e,n,o,r){let a=this._getExpansionKey(o),s=n.findIndex(v=>this._getExpansionKey(v)===a),c=e(o),m=c+r,f=[];for(let v=s+1;vthis._getExpansionKey(r)===o)+1}_getNodeParent(e){let n=this._parents.get(this._getExpansionKey(e.data));return n&&this._nodes.value.get(this._getExpansionKey(n))}_getNodeChildren(e){return this._getDirectChildren(e.data).pipe(me(n=>n.reduce((o,r)=>{let a=this._nodes.value.get(this._getExpansionKey(r));return a&&o.push(a),o},[])))}_sendKeydownToKeyManager(e){if(e.target===this._elementRef.nativeElement)this._keyManager.onKeydown(e);else{let n=this._nodes.getValue();for(let[,o]of n)if(e.target===o._elementRef.nativeElement){this._keyManager.onKeydown(e);break}}}_getDescendants(e){if(this.treeControl)return re(this.treeControl.getDescendants(e));if(this.levelAccessor){let n=this._findChildrenByLevel(this.levelAccessor,this._flattenedNodes.value,e,1/0);return re(n)}if(this.childrenAccessor)return this._getAllChildrenRecursively(e).pipe(z3((n,o)=>(n.push(...o),n),[]));throw bR()}_getAllChildrenRecursively(e){return this.childrenAccessor?Jc(this.childrenAccessor(e)).pipe(Be(1),lt(n=>{for(let o of n)this._parents.set(this._getExpansionKey(o),e);return re(...n).pipe(Qi(o=>Li(re([o]),this._getAllChildrenRecursively(o))))})):re([])}_getExpansionKey(e){return this.expansionKey?.(e)??e}_getAriaSet(e){let n=this._getExpansionKey(e),o=this._parents.get(n),r=o?this._getExpansionKey(o):null;return this._ariaSets.get(r)??[e]}_findParentForNode(e,n,o){if(!o.length)return null;let r=this._levels.get(this._getExpansionKey(e))??0;for(let a=n-1;a>=0;a--){let s=o[a];if((this._levels.get(this._getExpansionKey(s))??0){let a=this._getExpansionKey(r);this._parents.has(a)||this._parents.set(a,null),this._levels.set(a,n);let s=Jc(o(r));return Li(re([r]),s.pipe(Be(1),Ot(c=>{this._ariaSets.set(a,[...c??[]]);for(let m of c??[]){let f=this._getExpansionKey(m);this._parents.set(f,r),this._levels.set(f,n+1)}}),lt(c=>c?this._flattenNestedNodesWithExpansion(c,n+1).pipe(me(m=>this.isExpanded(r)?m:[])):re([]))))}),z3((r,a)=>(r.push(...a),r),[])):re([...e])}_computeRenderingData(e,n){if(this.childrenAccessor&&n==="flat")return this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(me(o=>({renderNodes:o,flattenedNodes:o})));if(this.levelAccessor&&n==="nested"){let o=this.levelAccessor;return re(e.filter(r=>o(r)===0)).pipe(me(r=>({renderNodes:r,flattenedNodes:e})),Ot(({flattenedNodes:r})=>{this._calculateParents(r)}))}else return n==="flat"?re({renderNodes:e,flattenedNodes:e}).pipe(Ot(({flattenedNodes:o})=>{this._calculateParents(o)})):(this._clearPreviousCache(),this._ariaSets.set(null,[...e]),this._flattenNestedNodesWithExpansion(e).pipe(me(o=>({renderNodes:e,flattenedNodes:o}))))}_updateCachedData(e){this._flattenedNodes.next(e)}_updateKeyManagerItems(e){this._keyManagerNodes.next(e)}_calculateParents(e){let n=this._getLevelAccessor();if(n){this._clearPreviousCache();for(let o=0;o{n.push(this._getExpansionKey(r.data)),o.push(this._getDescendants(r.data))}),o.length>0?gi(o).pipe(Be(1),ye(this._onDestroy)).subscribe(r=>{r.forEach(a=>a.forEach(s=>n.push(this._getExpansionKey(s)))),e(n)}):e(n)}_clearPreviousCache(){this._parents.clear(),this._levels.clear(),this._ariaSets.clear()}static \u0275fac=function(n){return new(n||t)};static \u0275cmp=P({type:t,selectors:[["cdk-tree"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Dh,5),n&2){let a;U(a=$())&&(o._nodeDefs=a)}},viewQuery:function(n,o){if(n&1&&ue(Iu,7),n&2){let r;U(r=$())&&(o._nodeOutlet=r.first)}},hostAttrs:["role","tree",1,"cdk-tree"],hostBindings:function(n,o){n&1&&N("keydown",function(a){return o._sendKeydownToKeyManager(a)})},inputs:{dataSource:"dataSource",treeControl:"treeControl",levelAccessor:"levelAccessor",childrenAccessor:"childrenAccessor",trackBy:"trackBy",expansionKey:"expansionKey"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[Iu],encapsulation:2})}return t})(),va=(()=>{class t{_elementRef=d(Q);_tree=d(R2);_tabindex=-1;_type="flat";get role(){return"treeitem"}set role(e){}get isExpandable(){return this._isExpandable()}set isExpandable(e){this._inputIsExpandable=e,!(this.data&&!this._isExpandable||!this._inputIsExpandable)&&(this._inputIsExpanded?this.expand():this._inputIsExpanded===!1&&this.collapse())}get isExpanded(){return this._tree.isExpanded(this._data)}set isExpanded(e){this._inputIsExpanded=e,e?this.expand():this.collapse()}isDisabled;typeaheadLabel;getLabel(){return this.typeaheadLabel||this._elementRef.nativeElement.textContent?.trim()||""}activation=new j;expandedChange=new j;static mostRecentTreeNode=null;_destroyed=new B;_dataChanges=new B;_inputIsExpandable=!1;_inputIsExpanded=void 0;_shouldFocus=!0;_parentNodeAriaLevel;get data(){return this._data}set data(e){e!==this._data&&(this._data=e,this._dataChanges.next())}_data;get isLeafNode(){return this._tree.treeControl?.isExpandable!==void 0&&!this._tree.treeControl.isExpandable(this._data)?!0:this._tree.treeControl?.isExpandable===void 0&&this._tree.treeControl?.getDescendants(this._data).length===0}get level(){return this._tree._getLevel(this._data)??this._parentNodeAriaLevel}_isExpandable(){return this._tree.treeControl?!this.isLeafNode:this._inputIsExpandable}_getAriaExpanded(){return this._isExpandable()?String(this.isExpanded):null}_getSetSize(){return this._tree._getSetSize(this._data)}_getPositionInSet(){return this._tree._getPositionInSet(this._data)}_changeDetectorRef=d(xe);constructor(){t.mostRecentTreeNode=this}ngOnInit(){this._parentNodeAriaLevel=jce(this._elementRef.nativeElement),this._tree._getExpansionModel().changed.pipe(me(()=>this.isExpanded),Wl(),ye(this._destroyed)).pipe(ye(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._tree._setNodeTypeIfUnset(this._type),this._tree._registerNode(this)}ngOnDestroy(){t.mostRecentTreeNode===this&&(t.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}getParent(){return this._tree._getNodeParent(this)??null}getChildren(){return this._tree._getNodeChildren(this)}focus(){this._tabindex=0,this._shouldFocus&&this._elementRef.nativeElement.focus(),this._changeDetectorRef.markForCheck()}unfocus(){this._tabindex=-1,this._changeDetectorRef.markForCheck()}activate(){this.isDisabled||this.activation.next(this._data)}collapse(){this.isExpandable&&this._tree.collapse(this._data)}expand(){this.isExpandable&&this._tree.expand(this._data)}makeFocusable(){this._tabindex=0,this._changeDetectorRef.markForCheck()}_focusItem(){this.isDisabled||this._tree._keyManager.focusItem(this)}_setActiveItem(){this.isDisabled||(this._shouldFocus=!1,this._tree._keyManager.focusItem(this),this._shouldFocus=!0)}_emitExpansionState(e){this.expandedChange.emit(e)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-tree-node"]],hostAttrs:["role","treeitem",1,"cdk-tree-node"],hostVars:5,hostBindings:function(n,o){n&1&&N("click",function(){return o._setActiveItem()})("focus",function(){return o._focusItem()}),n&2&&(Lt("tabIndex",o._tabindex),ne("aria-expanded",o._getAriaExpanded())("aria-level",o.level+1)("aria-posinset",o._getPositionInSet())("aria-setsize",o._getSetSize()))},inputs:{role:"role",isExpandable:[2,"isExpandable","isExpandable",H],isExpanded:"isExpanded",isDisabled:[2,"isDisabled","isDisabled",H],typeaheadLabel:[0,"cdkTreeNodeTypeaheadLabel","typeaheadLabel"]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["cdkTreeNode"]})}return t})();function jce(t){let i=t.parentElement;for(;i&&!Hce(i);)i=i.parentElement;return i?i.classList.contains("cdk-nested-tree-node")?ut(i.getAttribute("aria-level")):0:-1}function Hce(t){let i=t.classList;return!!(i?.contains("cdk-nested-tree-node")||i?.contains("cdk-tree"))}var Wb=(()=>{class t extends va{_type="nested";_differs=d(Io);_dataDiffer;_children;nodeOutlet;constructor(){super()}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy),this._tree._getDirectChildren(this.data).pipe(ye(this._destroyed)).subscribe(e=>this.updateChildrenNodes(e)),this.nodeOutlet.changes.pipe(ye(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(e){let n=this._getNodeOutlet();if(e&&(this._children=e),n&&this._children){let o=n.viewContainer;this._tree.renderNodeChanges(this._children,this._dataDiffer,o,this._data)}else this._dataDiffer.diff([])}_clear(){let e=this._getNodeOutlet();e&&(e.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){let e=this.nodeOutlet;return e&&e.find(n=>!n._node||n._node===this)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,o,r){if(n&1&&Ee(r,Iu,5),n&2){let a;U(a=$())&&(o.nodeOutlet=a)}},hostAttrs:[1,"cdk-nested-tree-node"],exportAs:["cdkNestedTreeNode"],features:[de([{provide:va,useExisting:t},{provide:Ou,useExisting:t}]),ce]})}return t})(),Uce=/([A-Za-z%]+)$/,qb=(()=>{class t{_treeNode=d(va);_tree=d(R2);_element=d(Q);_dir=d(bt,{optional:!0});_currentPadding;_destroyed=new B;indentUnits="px";get level(){return this._level}set level(e){this._setLevelInput(e)}_level;get indent(){return this._indent}set indent(e){this._setIndentInput(e)}_indent=40;constructor(){this._setPadding(),this._dir?.change.pipe(ye(this._destroyed)).subscribe(()=>this._setPadding(!0)),this._treeNode._dataChanges.subscribe(()=>this._setPadding())}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){let e=(this._treeNode.data&&this._tree._getLevel(this._treeNode.data))??null,n=this._level==null?e:this._level;return typeof n=="number"?`${n*this._indent}${this.indentUnits}`:null}_setPadding(e=!1){let n=this._paddingIndent();if(n!==this._currentPadding||e){let o=this._element.nativeElement,r=this._dir&&this._dir.value==="rtl"?"paddingRight":"paddingLeft",a=r==="paddingLeft"?"paddingRight":"paddingLeft";o.style[r]=n||"",o.style[a]="",this._currentPadding=n}}_setLevelInput(e){this._level=isNaN(e)?null:e,this._setPadding()}_setIndentInput(e){let n=e,o="px";if(typeof e=="string"){let r=e.split(Uce);n=r[0],o=r[1]||o}this.indentUnits=o,this._indent=ut(n),this._setPadding()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:[2,"cdkTreeNodePadding","level",ut],indent:[0,"cdkTreeNodePaddingIndent","indent"]}})}return t})(),Yb=(()=>{class t{_tree=d(R2);_treeNode=d(va);recursive=!1;constructor(){}_toggle(){this.recursive?this._tree.toggleDescendants(this._treeNode.data):this._tree.toggle(this._treeNode.data),this._tree._keyManager.focusItem(this._treeNode)}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","cdkTreeNodeToggle",""]],hostAttrs:["tabindex","-1"],hostBindings:function(n,o){n&1&&N("click",function(a){return o._toggle(),a.stopPropagation()})("keydown.Enter",function(a){return o._toggle(),a.preventDefault()})("keydown.Space",function(a){return o._toggle(),a.preventDefault()})},inputs:{recursive:[2,"cdkTreeNodeToggleRecursive","recursive",H]}})}return t})();var vR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({})}return t})();function $ce(t){return!!t._isNoopTreeKeyManager}var rqe=(()=>{class t extends va{get tabIndexInputBinding(){return this._tabIndexInputBinding}set tabIndexInputBinding(e){this._tabIndexInputBinding=e}_tabIndexInputBinding;defaultTabIndex=0;_getTabindexAttribute(){return $ce(this._tree._keyManager)?this.tabIndexInputBinding:this._tabindex}get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e}constructor(){super();let e=d(new dn("tabindex"),{optional:!0});this.tabIndexInputBinding=Number(e)||this.defaultTabIndex}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],hostVars:5,hostBindings:function(n,o){n&1&&N("click",function(){return o._focusItem()}),n&2&&(Lt("tabIndex",o._getTabindexAttribute()),ne("aria-expanded",o._getAriaExpanded())("aria-level",o.level+1)("aria-posinset",o._getPositionInSet())("aria-setsize",o._getSetSize()))},inputs:{tabIndexInputBinding:[2,"tabIndex","tabIndexInputBinding",e=>e==null?0:ut(e)],disabled:[2,"disabled","disabled",H]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matTreeNode"],features:[de([{provide:va,useExisting:t}]),ce]})}return t})(),aqe=(()=>{class t extends Dh{data;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodeDef",""]],inputs:{when:[0,"matTreeNodeDefWhen","when"],data:[0,"matTreeNode","data"]},features:[de([{provide:Dh,useExisting:t}]),ce]})}return t})(),sqe=(()=>{class t extends Wb{node;get disabled(){return this.isDisabled}set disabled(e){this.isDisabled=e}get tabIndex(){return this.isDisabled?-1:this._tabIndex}set tabIndex(e){this._tabIndex=e}_tabIndex;ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{node:[0,"matNestedTreeNode","node"],disabled:[2,"disabled","disabled",H],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:ut(e)]},outputs:{activation:"activation",expandedChange:"expandedChange"},exportAs:["matNestedTreeNode"],features:[de([{provide:Wb,useExisting:t},{provide:va,useExisting:t},{provide:Ou,useExisting:t}]),ce]})}return t})(),cqe=(()=>{class t extends qb{get level(){return this._level}set level(e){this._setLevelInput(e)}get indent(){return this._indent}set indent(e){this._setIndentInput(e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodePadding",""]],inputs:{level:[2,"matTreeNodePadding","level",ut],indent:[0,"matTreeNodePaddingIndent","indent"]},features:[de([{provide:qb,useExisting:t}]),ce]})}return t})(),yR=(()=>{class t{viewContainer=d(dt);_node=d(Ou,{optional:!0});static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","matTreeNodeOutlet",""]],features:[de([{provide:Iu,useExisting:t}])]})}return t})(),lqe=(()=>{class t extends R2{_nodeOutlet=void 0;static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275cmp=P({type:t,selectors:[["mat-tree"]],viewQuery:function(n,o){if(n&1&&ue(yR,7),n&2){let r;U(r=$())&&(o._nodeOutlet=r.first)}},hostAttrs:[1,"mat-tree"],exportAs:["matTree"],features:[de([{provide:R2,useExisting:t}]),ce],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(n,o){n&1&&Vt(0,0)},dependencies:[yR],styles:[`.mat-tree{display:block;background-color:var(--mat-tree-container-background-color, var(--mat-sys-surface))}.mat-tree-node,.mat-nested-tree-node{color:var(--mat-tree-node-text-color, var(--mat-sys-on-surface));font-family:var(--mat-tree-node-text-font, var(--mat-sys-body-large-font));font-size:var(--mat-tree-node-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-tree-node-text-weight, var(--mat-sys-body-large-weight))}.mat-tree-node{display:flex;align-items:center;flex:1;word-wrap:break-word;min-height:var(--mat-tree-node-min-height, 48px)}.mat-nested-tree-node{border-bottom-width:0} +`],encapsulation:2})}return t})(),dqe=(()=>{class t extends Yb{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ie(t)))(o||t)}})();static \u0275dir=z({type:t,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:[0,"matTreeNodeToggleRecursive","recursive"]},features:[de([{provide:Yb,useExisting:t}]),ce]})}return t})();var wR=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[vR,fe,fe]})}return t})(),CR=class{transformFunction;getLevel;isExpandable;getChildren;constructor(i,e,n,o){this.transformFunction=i,this.getLevel=e,this.isExpandable=n,this.getChildren=o}_flattenNode(i,e,n,o){let r=this.transformFunction(i,e);if(n.push(r),this.isExpandable(r)){let a=this.getChildren(i);a&&(Array.isArray(a)?this._flattenChildren(a,e,n,o):a.pipe(Be(1)).subscribe(s=>{this._flattenChildren(s,e,n,o)}))}return n}_flattenChildren(i,e,n,o){i.forEach((r,a)=>{let s=o.slice();s.push(a!=i.length-1),this._flattenNode(r,e+1,n,s)})}flattenNodes(i){let e=[];return i.forEach(n=>this._flattenNode(n,0,e,[])),e}expandFlattenedNodes(i,e){let n=[],o=[];return o[0]=!0,i.forEach(r=>{let a=!0;for(let s=0;s<=this.getLevel(r);s++)a=a&&o[s];a&&n.push(r),this.isExpandable(r)&&(o[this.getLevel(r)+1]=e.isExpanded(r))}),n}},xR=class extends qs{_treeControl;_treeFlattener;_flattenedData=new ct([]);_expandedData=new ct([]);get data(){return this._data.value}set data(i){this._data.next(i),this._flattenedData.next(this._treeFlattener.flattenNodes(this.data)),this._treeControl.dataNodes=this._flattenedData.value}_data=new ct([]);constructor(i,e,n){super(),this._treeControl=i,this._treeFlattener=e,n&&(this.data=n)}connect(i){return ft(i.viewChange,this._treeControl.expansionModel.changed,this._flattenedData).pipe(me(()=>(this._expandedData.next(this._treeFlattener.expandFlattenedNodes(this._flattenedData.value,this._treeControl)),this._expandedData.value)))}disconnect(){}},MR=class extends qs{get data(){return this._data.value}set data(i){this._data.next(i)}_data=new ct([]);connect(i){return ft(i.viewChange,this._data).pipe(me(()=>this.data))}disconnect(){}};var Gce=["searchSelectInput"],Wce=["innerSelectSearch"],qce=[[["",8,"mat-select-search-custom-header-content"]],[["","ngxMatSelectSearchClear",""]],[["","ngxMatSelectNoEntriesFound",""]]],Yce=[".mat-select-search-custom-header-content","[ngxMatSelectSearchClear]","[ngxMatSelectNoEntriesFound]"];function Qce(t,i){if(t&1){let e=le();h(0,"mat-checkbox",10),N("change",function(o){G(e);let r=M();return W(r._emitSelectAllBooleanToParent(o.checked))}),_()}if(t&2){let e=M();D("color",e.matFormField==null?null:e.matFormField.color)("checked",e.toggleAllCheckboxChecked)("indeterminate",e.toggleAllCheckboxIndeterminate)("matTooltip",e.toggleAllCheckboxTooltipMessage)("matTooltipPosition",e.toggleAllCheckboxTooltipPosition)}}function Kce(t,i){t&1&&F(0,"mat-spinner",7)}function Xce(t,i){t&1&&ae(0,1)}function Zce(t,i){if(t&1&&F(0,"mat-icon",12),t&2){let e=M(2);D("svgIcon",e.closeSvgIcon)}}function Jce(t,i){if(t&1&&(h(0,"mat-icon"),y(1),_()),t&2){let e=M(2);p(),ee(" ",e.closeIcon," ")}}function ele(t,i){if(t&1){let e=le();h(0,"button",11),N("click",function(){G(e);let o=M();return W(o._reset(!0))}),E(1,Xce,1,0)(2,Zce,1,1,"mat-icon",12)(3,Jce,2,1,"mat-icon"),_()}if(t&2){let e=M();p(),I(e.clearIcon?1:e.closeSvgIcon?2:3)}}function tle(t,i){t&1&&ae(0,2)}function nle(t,i){if(t&1&&y(0),t&2){let e=M(2);ee(" ",e.noEntriesFoundLabel," ")}}function ile(t,i){if(t&1&&(h(0,"div",9),E(1,tle,1,0)(2,nle,1,1),_()),t&2){let e=M();p(),I(e.noEntriesFound?1:2)}}var ole=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngxMatSelectSearchClear",""]]})}return t})(),rle=["ariaLabel","clearSearchInput","closeIcon","closeSvgIcon","disableInitialFocus","disableScrollToActiveOnOptionsChanged","enableClearOnEscapePressed","hideClearSearchButton","noEntriesFoundLabel","placeholderLabel","preventHomeEndKeyPropagation","searching"],ale=new L("mat-selectsearch-default-options"),sle=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275dir=z({type:t,selectors:[["","ngxMatSelectNoEntriesFound",""]]})}return t})(),Qb=(()=>{class t{matSelect;changeDetectorRef;_viewportRuler;matOption;matFormField;placeholderLabel="Suche";type="text";closeIcon="close";closeSvgIcon;noEntriesFoundLabel="Keine Optionen gefunden";clearSearchInput=!0;searching=!1;disableInitialFocus=!1;enableClearOnEscapePressed=!1;preventHomeEndKeyPropagation=!1;disableScrollToActiveOnOptionsChanged=!1;ariaLabel="dropdown search";showToggleAllCheckbox=!1;toggleAllCheckboxChecked=!1;toggleAllCheckboxIndeterminate=!1;toggleAllCheckboxTooltipMessage="";toggleAllCheckboxTooltipPosition="below";hideClearSearchButton=!1;alwaysRestoreSelectedOptionsMulti=!1;recreateValuesArray=!1;toggleAll=new j;searchSelectInput;innerSelectSearch;clearIcon;noEntriesFound;get value(){return this._formControl.value}_lastExternalInputValue;onTouched=()=>{};set _options(e){this._options$.next(e)}get _options(){return this._options$.getValue()}_options$=new ct(null);optionsList$=this._options$.pipe(lt(e=>e?e.changes.pipe(me(n=>n.toArray()),We(e.toArray())):re(null)));optionsLength$=this.optionsList$.pipe(me(e=>e?e.length:0));previousSelectedValues;_formControl=new Ls("",{nonNullable:!0});_showNoEntriesFound$=gi([this._formControl.valueChanges,this.optionsLength$]).pipe(me(([e,n])=>!!(this.noEntriesFoundLabel&&e&&n===this.getOptionsLengthOffset())));_onDestroy=new B;activeDescendant;constructor(e,n,o,r,a,s){this.matSelect=e,this.changeDetectorRef=n,this._viewportRuler=o,this.matOption=r,this.matFormField=a,this.applyDefaultOptions(s)}applyDefaultOptions(e){if(e)for(let n of rle)Object.prototype.hasOwnProperty.call(e,n)&&(this[n]=e[n])}ngOnInit(){this.matOption?(this.matOption.disabled=!0,this.matOption._getHostElement().classList.add("contains-mat-select-search"),this.matOption._getHostElement().setAttribute("role","presentation")):console.error(" must be placed inside a element"),this.matSelect.openedChange.pipe(td(1),ye(this._onDestroy)).subscribe(e=>{e?(this.updateInputWidth(),this.disableInitialFocus||this._focus()):this.clearSearchInput&&this._reset()}),this.matSelect.openedChange.pipe(Be(1),lt(()=>{this._options=this.matSelect.options;let e=this._options.toArray()[this.getOptionsLengthOffset()];return this._options.changes.pipe(Ot(()=>{setTimeout(()=>{let n=this._options.toArray(),o=n[this.getOptionsLengthOffset()],r=this.matSelect._keyManager;r&&this.matSelect.panelOpen&&o&&((!e||!this.matSelect.compareWith(e.value,o.value)||!r.activeItem||!n.find(s=>this.matSelect.compareWith(s.value,r.activeItem?.value)))&&r.setActiveItem(this.getOptionsLengthOffset()),setTimeout(()=>{this.updateInputWidth()})),e=o})}))})).pipe(ye(this._onDestroy)).subscribe(),this._showNoEntriesFound$.pipe(ye(this._onDestroy)).subscribe(e=>{this.matOption&&(e?this.matOption._getHostElement().classList.add("mat-select-search-no-entries-found"):this.matOption._getHostElement().classList.remove("mat-select-search-no-entries-found"))}),this._viewportRuler.change().pipe(ye(this._onDestroy)).subscribe(()=>{this.matSelect.panelOpen&&this.updateInputWidth()}),this.initMultipleHandling(),this.optionsList$.pipe(ye(this._onDestroy)).subscribe(()=>{this.changeDetectorRef.markForCheck()})}_emitSelectAllBooleanToParent(e){this.toggleAll.emit(e)}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}_isToggleAllCheckboxVisible(){return this.matSelect.multiple&&this.showToggleAllCheckbox}_handleKeydown(e){(e.key&&e.key.length===1||this.preventHomeEndKeyPropagation&&(e.key==="Home"||e.key==="End"))&&e.stopPropagation(),this.matSelect.multiple&&e.key&&e.key==="Enter"&&setTimeout(()=>this._focus()),this.enableClearOnEscapePressed&&e.key==="Escape"&&this.value&&(this._reset(!0),e.stopPropagation())}_handleKeyup(e){if(e.key==="ArrowUp"||e.key==="ArrowDown"){let n=this.matSelect._getAriaActiveDescendant(),o=this._options.toArray().findIndex(r=>r.id===n);o!==-1&&(this.unselectActiveDescendant(),this.activeDescendant=this._options.toArray()[o]._getHostElement(),this.activeDescendant.setAttribute("aria-selected","true"),this.searchSelectInput.nativeElement.setAttribute("aria-activedescendant",n))}}writeValue(e){this._lastExternalInputValue=e,this._formControl.setValue(e),this.changeDetectorRef.markForCheck()}onBlur(){this.unselectActiveDescendant(),this.onTouched()}registerOnChange(e){this._formControl.valueChanges.pipe(Ae(n=>n!==this._lastExternalInputValue),Ot(()=>this._lastExternalInputValue=void 0),ye(this._onDestroy)).subscribe(e)}registerOnTouched(e){this.onTouched=e}_focus(){if(!this.searchSelectInput||!this.matSelect.panel)return;let e=this.matSelect.panel.nativeElement,n=e.scrollTop;this.searchSelectInput.nativeElement.focus(),e.scrollTop=n}_reset(e){this._formControl.setValue(""),e&&this._focus()}initMultipleHandling(){if(!this.matSelect.ngControl){this.matSelect.multiple&&console.error("the mat-select containing ngx-mat-select-search must have a ngModel or formControl directive when multiple=true");return}this.previousSelectedValues=this.matSelect.ngControl.value,this.matSelect.ngControl.valueChanges&&this.matSelect.ngControl.valueChanges.pipe(ye(this._onDestroy)).subscribe(e=>{let n=!1;if(this.matSelect.multiple&&(this.alwaysRestoreSelectedOptionsMulti||this._formControl.value&&this._formControl.value.length)&&this.previousSelectedValues&&Array.isArray(this.previousSelectedValues)){(!e||!Array.isArray(e))&&(e=[]);let o=this.matSelect.options.map(r=>r.value);this.previousSelectedValues.forEach(r=>{!e.some(a=>this.matSelect.compareWith(a,r))&&!o.some(a=>this.matSelect.compareWith(a,r))&&(this.recreateValuesArray?e=[...e,r]:e.push(r),n=!0)})}this.previousSelectedValues=e,n&&this.matSelect._onChange(e)})}updateInputWidth(){if(!this.innerSelectSearch||!this.innerSelectSearch.nativeElement)return;let e=this.innerSelectSearch.nativeElement,n=null;for(;e&&e.parentElement;)if(e=e.parentElement,e.classList.contains("mat-select-panel")){n=e;break}n&&(this.innerSelectSearch.nativeElement.style.width=n.clientWidth+"px")}getOptionsLengthOffset(){return this.matOption?1:0}unselectActiveDescendant(){this.activeDescendant?.removeAttribute("aria-selected"),this.searchSelectInput.nativeElement.removeAttribute("aria-activedescendant")}static \u0275fac=function(n){return new(n||t)(Ce(qn),Ce(xe),Ce(Gn),Ce(ln,8),Ce(Bt,8),Ce(ale,8))};static \u0275cmp=P({type:t,selectors:[["ngx-mat-select-search"]],contentQueries:function(n,o,r){if(n&1&&(Ee(r,ole,5),Ee(r,sle,5)),n&2){let a;U(a=$())&&(o.clearIcon=a.first),U(a=$())&&(o.noEntriesFound=a.first)}},viewQuery:function(n,o){if(n&1&&(ue(Gce,7,Q),ue(Wce,7,Q)),n&2){let r;U(r=$())&&(o.searchSelectInput=r.first),U(r=$())&&(o.innerSelectSearch=r.first)}},inputs:{placeholderLabel:"placeholderLabel",type:"type",closeIcon:"closeIcon",closeSvgIcon:"closeSvgIcon",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",searching:"searching",disableInitialFocus:"disableInitialFocus",enableClearOnEscapePressed:"enableClearOnEscapePressed",preventHomeEndKeyPropagation:"preventHomeEndKeyPropagation",disableScrollToActiveOnOptionsChanged:"disableScrollToActiveOnOptionsChanged",ariaLabel:"ariaLabel",showToggleAllCheckbox:"showToggleAllCheckbox",toggleAllCheckboxChecked:"toggleAllCheckboxChecked",toggleAllCheckboxIndeterminate:"toggleAllCheckboxIndeterminate",toggleAllCheckboxTooltipMessage:"toggleAllCheckboxTooltipMessage",toggleAllCheckboxTooltipPosition:"toggleAllCheckboxTooltipPosition",hideClearSearchButton:"hideClearSearchButton",alwaysRestoreSelectedOptionsMulti:"alwaysRestoreSelectedOptionsMulti",recreateValuesArray:"recreateValuesArray"},outputs:{toggleAll:"toggleAll"},features:[de([{provide:di,useExisting:kt(()=>t),multi:!0}])],ngContentSelectors:Yce,decls:13,vars:14,consts:[["innerSelectSearch",""],["searchSelectInput",""],["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header"],[1,"mat-select-search-inner-row"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"color","checked","indeterminate","matTooltip","matTooltipPosition"],["autocomplete","off",1,"mat-select-search-input",3,"keydown","keyup","blur","type","formControl","placeholder"],["diameter","16",1,"mat-select-search-spinner"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear"],[1,"mat-select-search-no-entries-found"],["matTooltipClass","ngx-mat-select-search-toggle-all-tooltip",1,"mat-select-search-toggle-all-checkbox",3,"change","color","checked","indeterminate","matTooltip","matTooltipPosition"],["mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[3,"svgIcon"]],template:function(n,o){if(n&1){let r=le();De(qce),F(0,"input",2),h(1,"div",3,0)(3,"div",4),E(4,Qce,1,5,"mat-checkbox",5),h(5,"input",6,1),N("keydown",function(s){return G(r),W(o._handleKeydown(s))})("keyup",function(s){return G(r),W(o._handleKeyup(s))})("blur",function(){return G(r),W(o.onBlur())}),_(),E(7,Kce,1,0,"mat-spinner",7),E(8,ele,4,1,"button",8),ae(9),_(),F(10,"mat-divider"),_(),E(11,ile,3,1,"div",9),S(12,"async")}n&2&&(p(),oe("mat-select-search-inner-multiple",o.matSelect.multiple)("mat-select-search-inner-toggle-all",o._isToggleAllCheckboxVisible()),p(3),I(o._isToggleAllCheckboxVisible()?4:-1),p(),D("type",o.type)("formControl",o._formControl)("placeholder",o.placeholderLabel),ne("aria-label",o.ariaLabel),p(2),I(o.searching?7:-1),p(),I(!o.hideClearSearchButton&&o.value&&!o.searching?8:-1),p(3),I(k(12,12,o._showNoEntriesFound$)?11:-1))},dependencies:[Xd,ve,yi,mn,Si,il,rc,mo,Dz,Co,_a,ni],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;z-index:100;font-size:inherit;box-shadow:none;background-color:var(--mat-sys-surface-container, var(--mat-select-panel-background-color, white))}.mat-select-search-inner.mat-select-search-inner-multiple.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-inner-row[_ngcontent-%COMP%]{display:flex;align-items:center}.mat-select-search-input[_ngcontent-%COMP%]{box-sizing:border-box;width:100%;border:none;font-family:inherit;font-size:inherit;color:currentColor;outline:none;background-color:var(--mat-sys-surface-container, var(--mat-select-panel-background-color, white));padding:0 44px 0 16px;height:47px;line-height:47px}[dir=rtl][_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-right:16px;padding-left:44px}.mat-select-search-input[_ngcontent-%COMP%]::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color)}.mat-select-search-inner-toggle-all[_ngcontent-%COMP%] .mat-select-search-input[_ngcontent-%COMP%]{padding-left:5px}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding-top:8px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:0}[dir=rtl][_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-clear[_ngcontent-%COMP%]{right:auto;left:4px}.mat-select-search-spinner[_ngcontent-%COMP%]{position:absolute;right:16px;top:calc(50% - 8px)}[dir=rtl][_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-spinner[_ngcontent-%COMP%]{right:auto;left:16px} .mat-mdc-option[aria-disabled=true].contains-mat-select-search{position:sticky;top:-8px;z-index:1;opacity:1;margin-top:-8px;pointer-events:all} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mat-icon{margin-right:0;margin-left:0} .mat-mdc-option[aria-disabled=true].contains-mat-select-search mat-pseudo-checkbox{display:none} .mat-mdc-option[aria-disabled=true].contains-mat-select-search .mdc-list-item__primary-text{opacity:1}.mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:5px}[dir=rtl][_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%], [dir=rtl] [_nghost-%COMP%] .mat-select-search-toggle-all-checkbox[_ngcontent-%COMP%]{padding-left:0;padding-right:5px}"],changeDetection:0})}return t})();var Sh=(()=>{class t{static \u0275fac=function(n){return new(n||t)};static \u0275mod=J({type:t});static \u0275inj=X({imports:[Qb]})}return t})();var Kb=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({providers:[{provide:tf,useValue:{appearance:"fill"}},{provide:yb,useValue:{showError:!0,displayDefaultIndicatorType:!1}}],imports:[tz,xk,sz,_a,uz,zE,Lk,mz,QI,d9,zf,bz,Ws,sP,Hf,KE,xz,tP,xI,Mz,Ez,Sz,Tz,eu,Sh,Lz,zz,Az,Fz,jz,Wz,Jz,fR,hR,hu,wR,DP]})}}return t})();var Xb=class{_document;_textarea;constructor(i,e){this._document=e;let n=this._textarea=this._document.createElement("textarea"),o=n.style;o.position="fixed",o.top=o.opacity="0",o.left="-999em",n.setAttribute("aria-hidden","true"),n.value=i,n.readOnly=!0,(this._document.fullscreenElement||this._document.body).appendChild(n)}copy(){let i=this._textarea,e=!1;try{if(i){let n=this._document.activeElement;i.select(),i.setSelectionRange(0,i.value.length),e=this._document.execCommand("copy"),n&&n.focus()}}catch{}return e}destroy(){let i=this._textarea;i&&(i.remove(),this._textarea=void 0)}},N2=(()=>{class t{_document=d(Me);constructor(){}copy(e){let n=this.beginCopy(e),o=n.copy();return n.destroy(),o}beginCopy(e){return new Xb(e,this._document)}static \u0275fac=function(n){return new(n||t)};static \u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})();function lle(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=M(2);return W(o.copyValue())}),F(1,"fa-icon",4),_()}}function dle(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=M(2);return W(o.showValue())}),F(1,"fa-icon",6),_()}if(t&2){let e=M(2);p(),D("title",e.externalId)}}function ule(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){G(e);let o=M(2);return W(o.showValue())}),y(1),S(2,"externalIdentifier"),_()}if(t&2){let e=M(2);p(),T(k(2,1,e.externalId))}}function mle(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=M(2);return W(o.showValue())}),y(1),_()}if(t&2){let e=M(2);p(),T(e.externalId)}}function ple(t,i){if(t&1){let e=le();h(0,"span",7),N("click",function(){G(e);let o=M(2);return W(o.showValue())}),F(1,"fa-icon",6),_()}if(t&2){let e=M(2);p(),D("title",e.externalId)}}function fle(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=M(2);return W(o.copyValue())}),F(1,"fa-icon",4),_()}}function hle(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){G(e);let o=M();return W(o.mouseEnter())})("mouseleave",function(){G(e);let o=M();return W(o.mouseLeave())}),E(1,lle,2,0,"span"),E(2,dle,2,1,"span",1),E(3,ule,3,3,"span",2),E(4,mle,2,1,"span"),E(5,ple,2,1,"span",2),E(6,fle,2,0,"span",1),_()}if(t&2){let e=M();p(),I(e.displayL&&e.iconVisible?1:-1),p(),I(e.displayL&&!e.completed&&e.iconVisible&&e.isLongValue()?2:-1),p(),I(e.completed?-1:3),p(),I(e.completed?4:-1),p(),I(e.displayR&&!e.completed&&e.iconVisible&&e.isLongValue()?5:-1),p(),I(e.displayR&&e.iconVisible?6:-1)}}var DR=(()=>{class t{constructor(){this.clipboard=d(N2),this.alertService=d(Os),this.completed=!1,this.display="right",this.iconVisible=!1,this.displayL=!1,this.displayR=!0,this.emptyValue=!1}ngOnInit(){this.emptyValue=!this.externalId||this.externalId==="",this.displayL=this.display==="left",this.displayR=this.display==="right"}isLongValue(){return this.externalId==null?!1:this.externalId.length>15}showValue(){this.completed=!this.completed}copyValue(){this.clipboard.copy(this.externalId),this.alertService.alert({type:"Clipboard",message:"Copied: "+this.externalId})}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-external-identifier"]],inputs:{externalId:"externalId",completed:"completed",display:"display"},decls:1,vars:1,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-3"],[1,"m-l-5"],[3,"click"],["icon","copy","size","sm","title","Copy External Id"],[1,"m-l-3",3,"click"],["icon","eye","size","sm",3,"title"],[1,"m-l-5",3,"click"]],template:function(n,o){n&1&&E(0,hle,7,6,"span"),n&2&&I(o.emptyValue?-1:0)},dependencies:[he,ve,Yt,Wm],encapsulation:2})}}return t})();var kh=(()=>{class t{constructor(){this.http=d(Bn)}getFilteredClients(e,n,o,r,a){let s=new te().set("displayName",r).set("orphansOnly",o.toString()).set("sortOrder",n).set("orderBy",e);return a&&(s=s.set("officeId",a)),this.http.get("/clients",{params:s})}getClients(e,n,o,r){let a=new te().set("offset",o.toString()).set("limit",r.toString()).set("sortOrder",n).set("orderBy",e);return this.http.get("/clients",{params:a})}getClientTemplate(){return this.http.get("/clients/template")}getClientWithOfficeTemplate(e){return this.http.get(`/clients/template?officeId=${e}&staffInSelectedOfficeOnly=true`)}getClientData(e){return this.http.get(`/clients/${e}`)}createClient(e){return this.http.post("/clients",e)}updateClient(e,n){return this.http.put(`/clients/${e}`,n)}deleteClient(e){return this.http.delete(`/clients/${e}`)}getClientDataAndTemplate(e){let n=new te().set("template","true").set("staffInSelectedOfficeOnly","true");return this.http.get(`/clients/${e}`,{params:n})}getClientDatatables(){let e=new te().set("apptable","m_client");return this.http.get("/datatables",{params:e})}getClientDatatable(e,n){let o=new te().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addClientDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editClientDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new te().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}getClientAccountData(e){return this.http.get(`/clients/${e}/accounts`)}getClientChargesData(e){let n=new te().set("pendingPayment","true");return this.http.get(`/clients/${e}/charges`,{params:n})}getSelectedChargeData(e,n){let o=new te().set("associations","all");return this.http.get(`/clients/${e}/charges/${n}`,{params:o})}waiveClientCharge(e){let n=new te().set("command","waive");return this.http.post(`/clients/${e.clientId}/charges/${e.resourceType}`,e,{params:n})}getAllClientCharges(e){return this.http.get(`/clients/${e}/charges`)}undoTransaction(e){return this.http.post(`/clients/${e.clientId}/transactions/${e.transactionId}?command=undo`,e)}deleteCharge(e,n){return this.http.delete(`/clients/${e}/charges/${n}?associations=all`)}getClientTransactionPay(e,n){return this.http.get(`/clients/${e}/charges/${n}`)}payClientCharge(e,n,o){let r=new te().set("command","paycharge");return this.http.post(`/clients/${e}/charges/${n}?command=paycharge`,o,{params:r})}getClientSummary(e){let n=new te().set("R_clientId",e).set("genericResultSet","false");return this.http.get("/runreports/ClientSummary",{params:n})}getClientProfileImage(e){let n=new te().set("maxHeight","150");return this.http.get(`/clients/${e}/images`,{params:n,responseType:"text"}).pipe(Mo(o=>o.status===404?re(null):Gr(()=>o)))}uploadClientProfileImage(e,n){let o=new FormData;return o.append("file",n),o.append("filename","file"),this.http.post(`/clients/${e}/images`,o)}uploadCapturedClientProfileImage(e,n){return this.http.post(`/clients/${e}/images`,n)}deleteClientProfileImage(e){return this.http.delete(`/clients/${e}/images`)}uploadClientSignatureImage(e,n){let o=new FormData;return o.append("file",n),o.append("name","clientSignature"),o.append("description","Client signature"),this.http.post(`/clients/${e}/documents`,o)}getClientSignatureImage(e,n){return this.http.get(`/clients/${e}/documents/${n}/attachment`,{responseType:"blob"})}getClientFamilyMembers(e){return this.http.get(`/clients/${e}/familymembers`)}getClientFamilyMember(e,n){return this.http.get(`/clients/${e}/familymembers/${n}`)}addFamilyMember(e,n){return this.http.post(`/clients/${e}/familymembers`,n)}editFamilyMember(e,n,o){return this.http.put(`/clients/${e}/familymembers/${n}`,o)}deleteFamilyMember(e,n){return this.http.delete(`/clients/${e}/familymembers/${n}`)}getClientIdentifiers(e){return this.http.get(`/clients/${e}/identifiers`)}getClientIdentifierTemplate(e){return this.http.get(`/clients/${e}/identifiers/template`)}addClientIdentifier(e,n){return this.http.post(`/clients/${e}/identifiers`,n)}deleteClientIdentifier(e,n){return this.http.delete(`/clients/${e}/identifiers/${n}`)}getClientIdentificationDocuments(e){return this.http.get(`/client_identifiers/${e}/documents`)}downloadClientIdentificationDocument(e,n){return this.http.get(`/client_identifiers/${e}/documents/${n}/attachment`,{responseType:"blob"})}uploadClientIdentifierDocument(e,n){return this.http.post(`/client_identifiers/${e}/documents`,n)}getClientDocuments(e){return this.http.get(`/clients/${e}/documents`)}downloadClientDocument(e,n){return this.http.get(`/clients/${e}/documents/${n}/attachment`,{responseType:"blob"})}uploadClientDocument(e,n){return this.http.post(`/clients/${e}/documents`,n)}deleteClientDocument(e,n){return this.http.delete(`/clients/${e}/documents/${n}`)}getClientNotes(e){return this.http.get(`/clients/${e}/notes`)}createClientNote(e,n){return this.http.post(`/clients/${e}/notes`,n)}editClientNote(e,n,o){return this.http.put(`/clients/${e}/notes/${n}`,o)}deleteClientNote(e,n){return this.http.delete(`/clients/${e}/notes/${n}`)}getAddressFieldConfiguration(){return this.http.get("/fieldconfiguration/ADDRESS")}getClientAddressData(e){return this.http.get(`/client/${e}/addresses`)}getClientAddressTemplate(){return this.http.get("/client/addresses/template")}createClientAddress(e,n,o){return this.http.post(`/client/${e}/addresses?type=${n}`,o)}editClientAddress(e,n,o){return this.http.put(`/client/${e}/addresses?type=${n}`,o)}executeClientCommand(e,n,o){let r=new te().set("command",n);return this.http.post(`/clients/${e}`,o,{params:r})}getClientCommandTemplate(e){let n=new te().set("commandParam",e);return this.http.get("/clients/template",{params:n})}getClientTransferProposalDate(e){return this.http.get(`/clients/${e}/transferproposaldate`)}getClientChargeTemplate(e){return this.http.get(`/clients/${e}/charges/template`)}getChargeAndTemplate(e){let n=new te().set("template","true");return this.http.get(`/charges/${e}`,{params:n})}createClientCharge(e,n){return this.http.post(`/clients/${e}/charges`,n)}getClientReportTemplates(){let e=new te().set("entityId","0").set("typeId","0");return this.http.get("/templates",{params:e})}retrieveClientReportTemplate(e,n){let o=new te().set("clientId",n);return this.http.post(`/templates/${e}`,{},{params:o,responseType:"text"})}getOffices(){return this.http.get("/offices")}getSurveys(e){return this.http.get(`/surveys/scorecards/clients/${e}`)}getAllSurveysType(){return this.http.get("/surveys")}createNewSurvey(e,n){return this.http.post(`/surveys/scorecards/${e}`,n)}createSelfServiceUser(e){return this.http.post("/users",e)}createClientCollateral(e,n){return this.http.post(`/clients/${e}/collaterals`,n)}getCollateralTemplate(e){return this.http.get(`/clients/${e}/collaterals/template`)}searchByText(e,n,o,r="",a=""){let s={request:{text:e},page:n,size:o};return r!==""&&a!==""&&(s=Ne(q({},s),{sorts:[{direction:a,property:r}]})),this.http.post("/v2/clients/search",s)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var SR=(()=>{class t{constructor(){this.http=d(Bn)}getGroups(e,n,o,r,a){let s=new te().set("offset",r.toString()).set("limit",a.toString()).set("sortOrder",o).set("orderBy",n).set("paged","true");return e.forEach(function(c){c.value&&(s=s.set(c.type,c.value))}),this.http.get("/groups",{params:s})}getFilteredGroups(e,n,o,r,a){let s=new te().set("name",o).set("sortOrder",n).set("orderBy",e);return r&&(s=s.set("officeId",r)),s=a?s.set("orphansOnly",a):s,this.http.get("/groups",{params:s})}getGroupsByOfficeId(e){let n=new te().set("officeId",e.toString());return this.http.get("/groups",{params:n})}getGroupData(e,n){let o=new te().set("associations","all");return o=n?o.set("template",n):o,this.http.get(`/groups/${e}`,{params:o})}getGroupSummary(e){let n=new te().set("R_groupId",e).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:n})}getGroupAccountsData(e){return this.http.get(`/groups/${e}/accounts`)}getGroupNotes(e){return this.http.get(`/groups/${e}/notes`)}createGroupNote(e,n){return this.http.post(`/groups/${e}/notes`,n)}editGroupNote(e,n,o){return this.http.put(`/groups/${e}/notes/${n}`,o)}deleteGroupNote(e,n){return this.http.delete(`/groups/${e}/notes/${n}`)}getGroupDatatables(){let e=new te().set("apptable","m_group");return this.http.get("/datatables",{params:e})}getGroupDatatable(e,n){let o=new te().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addGroupDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editGroupDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new te().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}getGroupCommandTemplate(e){let n=new te().set("command",e);return this.http.get("/groups/template",{params:n})}executeGroupCommand(e,n,o){let r=new te().set("command",n);return this.http.post(`/groups/${e}`,o,{params:r})}unAssignRoleCommand(e,n){let o=new te().set("command","unassignRole").set("roleId",n);return this.http.post(`/groups/${e}`,{},{params:o})}createGroup(e){return this.http.post("/groups",e)}updateGroup(e,n){return this.http.put(`/groups/${n}`,e)}deleteGroup(e){return this.http.delete(`/groups/${e}`)}getGroupCalendarTemplate(e){return this.http.get(`/groups/${e}/calendars/template`)}getGroupCalendarAndTemplate(e,n){let o=new te().set("template","true");return this.http.get(`/groups/${e}/calendars/${n}`,{params:o})}createGroupMeeting(e,n){return this.http.post(`/groups/${e}/calendars`,n)}updateGroupMeeting(e,n,o){return this.http.put(`/groups/${e}/calendars/${o}`,n)}getMeetingsTemplate(e,n){let o=new te().set("calenderId",n);return this.http.get(`/groups/${e}/meetings/template`,{params:o})}assignGroupAttendance(e,n,o){let r=new te().set("calenderId",n);return this.http.post(`/groups/${e}/meetings`,o,{params:r})}getStaff(e){let n=new te().set("officeId",e.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/groups/template",{params:n})}getGLIMAccountsData(e){return this.http.get(`/groups/${e}/glimaccounts`)}getGSIMAccountsData(e){return this.http.get(`/groups/${e}/gsimaccounts`)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Eh=(()=>{class t{constructor(){this.http=d(Bn),this.settingsService=d(Xt),this.dateUtils=d(go)}getLoanChargeTemplateResource(e){return this.http.get(`/loans/${e}/charges/template`)}getLoanActionTemplate(e,n){let o=new te().set("command",n);return(n==="disburse"||n==="disbursetosavings")&&(o=o.set("associations","delinquency")),this.http.get(`/loans/${e}/transactions/template`,{params:o})}getLoanTransactionActionTemplate(e,n,o){let r=new te().set("command",n).set("transactionId",o);return this.http.get(`/loans/${e}/transactions/template`,{params:r})}getLoanPrepayLoanActionTemplate(e,n){n||(n=this.dateUtils.formatDate(this.settingsService.businessDate,this.settingsService.dateFormat));let o=new te().set("command","prepayLoan").set("transactionDate",n).set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return this.http.get(`/loans/${e}/transactions/template`,{params:o})}getLoanForeclosureActionTemplate(e){let n=new te().set("command","foreclosure").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat).set("transactionDate",this.dateUtils.formatDate(this.settingsService.businessDate,this.settingsService.dateFormat));return this.http.get(`/loans/${e}/transactions/template`,{params:n})}getLoanAccountResource(e,n){let o=new te().set("associations",n);return this.http.get(`/loans/${e}`,{params:o})}getGuarantorTemplate(e){return this.http.get(`/loans/${e}/guarantors/template`)}createNewGuarantor(e,n){return this.http.post(`/loans/${e}/guarantors`,n)}deleteGuarantor(e,n){return this.http.delete(`/loans/${e}/guarantors/${n}`)}deleteLoanAccount(e){return this.http.delete(`/loans/${e}`)}getDelinquencyTags(e){return this.http.get(`/loans/${e}/delinquencytags`)}getDelinquencyData(e){let n=new te().set("associations","collection").set("exclude","guarantors,futureSchedule");return this.http.get(`/loans/${e}`,{params:n})}getLoanDelinquencyDataForTemplate(e){let n=new te().set("associations","delinquency");return this.http.get(`/loans/${e}`,{params:n})}getDelinquencyActions(e){return this.http.get(`/loans/${e}/delinquency-actions`)}createDelinquencyActions(e,n){return this.http.post(`/loans/${e}/delinquency-actions`,n)}getDeferredIncomeData(e){return this.http.get(`/loans/${e}/deferredincome`)}getBuyDownFeeData(e){return this.http.get(`/loans/${e}/buydown-fees`)}getLoanTemplate(e){let n=new te().set("fields","id,loanOfficerId,loanOfficerOptions").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/loans/${e}`,{params:n})}createLoanCharge(e,n,o){return this.http.post(`/loans/${e}/${n}`,o)}getLoanAccountDetails(e){return this.http.get(`/loans/${e}`)}getLoanCollateralTemplate(e){return this.http.get(`/loans/${e}/collaterals/template`)}getLoanCollaterals(e){return this.http.get(`/loans/${e}/collaterals`)}createLoanCollateral(e,n){return this.http.post(`/loans/${e}/collaterals`,n)}getLoanAccountAssociationDetails(e){let n=new te().set("associations","all").set("exclude","guarantors,futureSchedule");return this.http.get(`/loans/${e}`,{params:n})}getApproveAssociationsDetails(e){let n=new te().set("associations","multiDisburseDetails");return this.http.get(`/loans/${e}`,{params:n})}getLoanNotes(e){return this.http.get(`/loans/${e}/notes`)}createLoanNote(e,n){return this.http.post(`/loans/${e}/notes`,n)}editLoanNote(e,n,o){return this.http.put(`/loans/${e}/notes/${n}`,o)}deleteLoanNote(e,n){return this.http.delete(`/loans/${e}/notes/${n}`)}submitLoanActionButton(e,n,o){let r=new te().set("command",o);return this.http.post(`/loans/${e}/transactions`,n,{params:r})}getReAgePreview(e,n){let o=new te;return Object.keys(n).forEach(r=>{n[r]!==null&&n[r]!==void 0&&n[r]!==""&&(o=o.set(r,n[r].toString()))}),this.http.get(`/loans/${e}/transactions/reage-preview`,{params:o})}getReAmortizePreview(e,n){let o=new te;return Object.keys(n).forEach(r=>{n[r]!==null&&n[r]!==void 0&&n[r]!==""&&(o=o.set(r,n[r].toString()))}),this.http.get(`/loans/${e}/transactions/reamortization-preview`,{params:o})}getLoanScreenReportsData(){let e=new te().set("entityId","1").set("typeId","0");return this.http.get("/templates",{params:e})}getLoanDataTables(){let e=new te().set("apptable","m_loan");return this.http.get("/datatables",{params:e})}getLoanDatatable(e,n){let o=new te().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addLoanDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editLoanDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new te().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}loanActionButtons(e,n,o){let r=new te().set("command",n);return this.http.post(`/loans/${e}`,o,{params:r})}addInterestPauseToLoan(e,n){return this.http.post(`/loans/${e}/interest-pauses`,n)}getInterestPausesOfLoan(e){return this.http.get(`/loans/${e}/interest-pauses`)}updateInterestPause(e,n,o){return this.http.put(`/loans/${e}/interest-pauses/${n}`,o)}deleteInterestPause(e,n){return this.http.delete(`/loans/${e}/interest-pauses/${n}`)}getForeclosureData(e,n){let o=new te().set("command",n.command).set("dateFormat",n.dateFormat).set("locale",n.locale).set("transactionDate",n.transactionDate);return this.http.get(`/loans/${e}/transactions/template`,{params:o})}loanForclosureData(e,n){let o=new te().set("command","foreclosure");return this.http.post(`/loans/${e}/transactions`,n,{params:o})}editDisbursements(e,n){return this.http.put(`/loans/${e}/disbursements/editDisbursements`,n)}rescheduleLoanTemplate(){return this.http.get("/rescheduleloans/template")}loanRescheduleRequests(e){let n=new te().set("loanId",e);return this.http.get("/rescheduleloans",{params:n})}applyCommandLoanRescheduleRequests(e,n,o){let r=new te().set("command",n);return this.http.post(`/rescheduleloans/${e}`,o,{params:r})}submitRescheduleData(e){let n=new te().set("command","reschedule");return this.http.post("/rescheduleloans",e,{params:n})}getLoansAccountTemplateResource(e,n,o){let r=new te().set("activeOnly","true").set("staffInSelectedOfficeOnly","true");return r=o?r.set("productId",o):r,r=n?r.set("groupId",e).set("templateType","group"):r.set("clientId",e).set("templateType","individual"),this.http.get("/loans/template",{params:r})}getLoansAccountAndTemplateResource(e){let n=new te().set("associations","charges,collateral,meeting,multiDisburseDetails").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/loans/${e}`,{params:n})}getLoansCollateralTemplateResource(e){let n=new te().set("fields","id, loanCollateralOptions").set("productId",e).set("templateType","collateral");return this.http.get("/loans/template",{params:n})}createLoansAccount(e){return this.http.post("/loans",e)}getLoanDocuments(e){return this.http.get(`/loans/${e}/documents`)}downloadLoanDocument(e,n){return this.http.get(`/loans/${e}/documents/${n}/attachment`,{responseType:"blob"})}deleteLoanDocument(e,n){return this.http.delete(`/loans/${e}/documents/${n}`)}loadLoanDocument(e,n){return this.http.post(`/loans/${e}/documents`,n)}getStandingInstructions(e,n,o,r,a){let s=new te().set("clientId",e).set("clientName",n).set("fromAccountId",o).set("fromAccountType","1").set("locale",r).set("dateFormat",a).set("limit","14").set("offset","0");return this.http.get("/standinginstructions",{params:s})}updateLoansAccount(e,n){return this.http.put(`/loans/${e}`,n)}getTemplateData(e,n){let o=new te().set("loanId",n);return this.http.post(`/templates/${e}`,{},{params:o,responseType:"text"})}getLoanApprovalTemplate(e){let n=new te().set("templateType","approval").set("associations","delinquency");return this.http.get(`/loans/${e}/template`,{params:n})}guarantorAccountResource(e,n){let o=new te().set("clientId",n);return this.http.get(`/loans/${e}/guarantors/accounts/template`,{params:o})}getLoansAccountCharge(e,n){return this.http.get(`/loans/${e}/charges/${n}`)}executeLoansAccountChargesCommand(e,n,o,r){let a=new te().set("command",n);return this.http.post(`/loans/${e}/charges/${r}`,o,{params:a})}editLoansAccountCharge(e,n,o){return this.http.put(`/loans/${e}/charges/${o}`,n)}deleteLoansAccountCharge(e,n){return this.http.delete(`/loans/${e}/charges/${n}`)}applyCommandLoanScheduleVariations(e,n,o){return this.http.post(`/loans/${e}/schedule?command=${n}`,o)}getLoansAccountTransaction(e,n){return this.http.get(`/loans/${e}/transactions/${n}`)}getLoansAccountTransactionTemplate(e,n){let o=new te().set("template","true");return this.http.get(`/loans/${e}/transactions/${n}`,{params:o})}executeLoansAccountTransactionsCommand(e,n,o,r){let a=new te().set("command",n);return r?this.http.post(`/loans/${e}/transactions/${r}`,o,{params:a}):this.http.post(`/loans/${e}/transactions`,o,{params:a})}getGLIMAccountData(e,n){return this.http.get(`/loans/glimAccount/${e}`)}getGLIMLoanAccountTemplate(e){let n=new te().set("groupId",e).set("templateType","jlgbulk");return this.http.get("/loans/template",{params:n})}createGlimAccount(e){return this.http.post("/batches?enclosingTransaction=true",e)}calculateLoanSchedule(e){return this.http.post("/loans?command=calculateLoanSchedule",e)}buildLoanRequestPayload(e,n,o,r,a){let s=Ne(q({},e),{charges:(e.charges??[]).map(c=>{let m=c.chargeId??c.id;if(m==null)return null;let f={chargeId:m,amount:c.amount};return c.id&&c.id!==m&&(f.id=c.id),c.dueDate&&(f.dueDate=this.dateUtils.formatDate(c.dueDate,a)),c.feeInterval!==void 0&&(f.feeInterval=c.feeInterval),c.feeOnMonthDay!==void 0&&(f.feeOnMonthDay=c.feeOnMonthDay),f}).filter(Boolean),disbursementData:e.disbursementData.map(c=>({expectedDisbursementDate:this.dateUtils.formatDate(c.expectedDisbursementDate,a),principal:c.principal})),interestChargedFromDate:this.dateUtils.formatDate(e.interestChargedFromDate,a),repaymentsStartingFromDate:this.dateUtils.formatDate(e.repaymentsStartingFromDate,a),submittedOnDate:this.dateUtils.formatDate(e.submittedOnDate,a),expectedDisbursementDate:this.dateUtils.formatDate(e.expectedDisbursementDate,a),dateFormat:a,locale:r});return e.collateral&&(s.collateral=e.collateral.map(c=>({clientCollateralId:c.type.collateralId,quantity:c.value}))),n.clientId&&n.group?.id?(s.clientId=n.clientId,s.groupId=n.group.id,s.loanType="glim"):n.clientId?(s.clientId=n.clientId,s.loanType="individual"):(s.groupId=n.group.id,s.loanType="group"),s.syncRepaymentsWithMeeting&&(s.calendarId=o[0].id,delete s.syncRepaymentsWithMeeting),s.recalculationRestFrequencyDate&&(s.recalculationRestFrequencyDate=this.dateUtils.formatDate(e.recalculationRestFrequencyDate,a)),s.interestCalculationPeriodType===0&&(s.allowPartialPeriodInterestCalculation=!1),s.isFloatingInterestRate!==!1&&delete s.isFloatingInterestRate,s.multiDisburseLoan||delete s.disbursementData,delete s.isValid,s.principal=s.principalAmount,delete s.principalAmount,delete s.multiDisburseLoan,s.allowPartialPeriodInterestCalcualtion=s.allowPartialPeriodInterestCalculation,delete s.allowPartialPeriodInterestCalculation,s}saveLoanDisbursementDetailsData(e){localStorage.setItem("disbursementData",JSON.stringify(e))}getLoanDisbursementDetailsData(){return JSON.parse(localStorage.getItem("disbursementData"))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Ih=(()=>{class t{constructor(){this.http=d(Bn)}getSavingsTransactionTemplateResource(e){return this.http.get(`/savingsaccounts/${e}/transactions/template`)}getSavingsChargeTemplateResource(e){return this.http.get(`/savingsaccounts/${e}/charges/template`)}createSavingsCharge(e,n,o){return this.http.post(`/savingsaccounts/${e}/${n}`,o)}getChargeTemplate(e){let n={template:"true"};return this.http.get(`/charges/${e}`,{params:n})}getSavingsAccountData(e){let n=new te().set("associations","all");return this.http.get(`/savingsaccounts/${e}`,{params:n})}getSavingsAccountAndTemplate(e,n){let o=new te().set("template",n.toString()).set("associations","charges");return this.http.get(`/savingsaccounts/${e}`,{params:o})}getStandingInstructions(e,n,o,r,a){let s=new te().set("clientId",e).set("clientName",n).set("fromAccountId",o).set("fromAccountType","2").set("locale",r).set("dateFormat",a);return this.http.get("/standinginstructions",{params:s})}getSavingsDatatables(){let e=new te().set("apptable","m_savings_account");return this.http.get("/datatables",{params:e})}getSavingsDatatable(e,n){let o=new te().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}getSavingsTransactionDatatables(){let e=new te().set("apptable","m_savings_account_transaction");return this.http.get("/datatables",{params:e})}getSavingsTransactionDatatable(e,n){let o=new te().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${e}`,{params:o})}addSavingsDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${e}`,o,{params:r})}editSavingsDatatableEntry(e,n,o){let r=new te().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${e}`,o,{params:r})}deleteDatatableContent(e,n){let o=new te().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${e}`,{params:o})}getSavingsAccountTemplate(e,n,o){let r=new te().set(o?"groupId":"clientId",e);return r=n?r.set("productId",n):r,this.http.get("/savingsaccounts/template",{params:r})}createSavingsAccount(e){return this.http.post("/savingsaccounts",e)}updateSavingsAccount(e,n){return this.http.put(`/savingsaccounts/${e}`,n)}deleteSavingsAccount(e){return this.http.delete(`/savingsaccounts/${e}`)}executeSavingsAccountCommand(e,n,o){let r=new te().set("command",n);return this.http.post(`/savingsaccounts/${e}`,o,{params:r})}executeSavingsAccountUpdateCommand(e,n,o){let r=new te().set("command",n);return this.http.put(`/savingsaccounts/${e}`,o,{params:r})}getSavingsAccountTransaction(e,n){return this.http.get(`/savingsaccounts/${e}/transactions/${n}`)}getSavingsAccountTransactionTemplate(e,n){let o=new te().set("template","true");return this.http.get(`/savingsaccounts/${e}/transactions/${n}`,{params:o})}executeSavingsAccountTransactionsCommand(e,n,o,r){let a=new te().set("command",n);return r?this.http.post(`/savingsaccounts/${e}/transactions/${r}`,o,{params:a}):this.http.post(`/savingsaccounts/${e}/transactions`,o,{params:a})}getSavingsAccountCharge(e,n){return this.http.get(`/savingsaccounts/${e}/charges/${n}`)}executeSavingsAccountChargesCommand(e,n,o,r){let a=new te().set("command",n);return this.http.post(`/savingsaccounts/${e}/charges/${r}`,o,{params:a})}editSavingsAccountCharge(e,n,o){return this.http.put(`/savingsaccounts/${e}/charges/${o}`,n)}deleteSavingsAccountCharge(e,n){return this.http.delete(`/savingsaccounts/${e}/charges/${n}`)}getGSIMAccountData(e,n){let o=new te().set("parentGSIMAccountNo",e);return this.http.get(`/groups/${n}/gsimaccounts`,{params:o})}createGsimAcccount(e){return this.http.post("/savingsaccounts/gsim",e)}getSavingsNotes(e){return this.http.get(`/savings/${e}/notes`)}createSavingsNote(e,n){return this.http.post(`/savings/${e}/notes`,n)}editSavingsNote(e,n,o){return this.http.put(`/savings/${e}/notes/${n}`,o)}deleteSavingsNote(e,n){return this.http.delete(`/savings/${e}/notes/${n}`)}getSavingsDocuments(e){return this.http.get(`/savings/${e}/documents`)}downloadSavingsDocument(e,n){return this.http.get(`/savings/${e}/documents/${n}/attachment`,{responseType:"blob"})}deleteSavingsDocument(e,n){return this.http.delete(`/savings/${e}/documents/${n}`)}loadSavingsDocument(e,n){return this.http.post(`/savings/${e}/documents`,n)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gle=["formRef"];function _le(t,i){if(t&1){let e=le();h(0,"div",10)(1,"div",11),y(2),_(),h(3,"div",12)(4,"div",13)(5,"div",14),y(6),_(),h(7,"div",15),y(8),S(9,"dateFormat"),_()(),h(10,"div",16)(11,"button",17),N("click",function(){let o=G(e),r=o.$implicit,a=o.$index,s=M(2);return W(s.editNote(r.id,r.note,a))}),y(12," Edit "),_(),h(13,"button",18),N("click",function(){let o=G(e),r=o.$implicit,a=o.$index,s=M(2);return W(s.deleteNote(r.id,a))}),y(14,"Delete"),_()()()()}if(t&2){let e=i.$implicit;p(2),ee(" ",e.note," "),p(4),ee("Created by ",e.createdByUsername),p(2),ee(" ",k(9,3,e.createdOn)," ")}}function ble(t,i){if(t&1&&(h(0,"div"),Xe(1,_le,15,5,"div",10,ht),_()),t&2){let e=M();p(),Ze(e.entityNotes)}}function vle(t,i){t&1&&(h(0,"div",9),y(1,"No notes available"),_())}var kR=(()=>{class t{constructor(){this.formBuilder=d(Rs),this.savingsService=d(Ih),this.loansService=d(Eh),this.clientsService=d(kh),this.groupsService=d(SR),this.dialog=d(Wi)}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:["",en.required]})}addNote(){this.callbackAdd(this.noteForm.value),this.formRef.resetForm()}editNote(e,n,o){this.dialog.open(es,{data:{formfields:[{controlName:"note",required:!0,value:n,controlType:"input",label:"Note"}],layout:{columns:1,addButtonText:"Confirm"},title:"Edit Note"}}).afterClosed().subscribe(a=>{a.data&&a.data.value.note!==n&&this.callbackEdit(e,a.data.value,o)})}deleteNote(e,n){this.dialog.open(Rr,{data:{deleteContext:`Note: ${this.entityNotes[n].note}`}}).afterClosed().subscribe(r=>{r.delete&&this.callbackDelete(e,n)})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-notes-tab"]],viewQuery:function(n,o){if(n&1&&ue(gle,7),n&2){let r;U(r=$())&&(o.formRef=r.first)}},inputs:{entityId:"entityId",entityNotes:"entityNotes",callbackAdd:"callbackAdd",callbackEdit:"callbackEdit",callbackDelete:"callbackDelete"},decls:17,vars:13,consts:[["formRef","ngForm"],[1,"tab-container","mat-typography"],[1,"add-note-section"],[1,"layout-row","align-start-baseline","gap-10px",3,"ngSubmit","formGroup"],[1,"flex-85-minus-20px"],["required","","formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"placeholder"],["mat-raised-button","","color","primary",1,"flex-1",3,"disabled"],["icon","plus",1,"m-r-10"],[1,"notes-container"],[1,"empty-state"],[1,"note-card"],[1,"note-content"],[1,"note-footer"],[1,"note-meta"],[1,"created-by"],[1,"created-date"],[1,"note-actions"],["title","Edit note",1,"edit-btn",3,"click"],["title","Delete note",1,"delete-btn",3,"click"]],template:function(n,o){if(n&1){let r=le();h(0,"div",1)(1,"h3"),y(2),S(3,"translate"),_(),h(4,"div",2)(5,"form",3,0),N("ngSubmit",function(){return G(r),W(o.addNote())}),h(7,"mat-form-field",4),F(8,"textarea",5),S(9,"translate"),_(),h(10,"button",6),F(11,"fa-icon",7),y(12),S(13,"translate"),_()()(),h(14,"div",8),E(15,ble,3,0,"div")(16,vle,2,0,"div",9),_()()}n&2&&(p(2),T(k(3,7,"labels.heading.Notes")),p(3),D("formGroup",o.noteForm),p(3),D("placeholder",Uc("",k(9,9,"labels.text.Write a note")," ...")),p(2),D("disabled",!o.noteForm.valid),p(2),ee("",k(13,11,"labels.buttons.Add")," "),p(3),I(o.entityNotes&&o.entityNotes.length>0?15:16))},dependencies:[he,ve,zs,yi,mn,tr,Ir,ui,Ao,Bt,ti,vt,nf,Yt,Lo,Te],styles:[".hidden-mat-list[_ngcontent-%COMP%]{display:none}.tab-container[_ngcontent-%COMP%]{padding:2rem}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin-bottom:20px;color:#333;font-weight:500}.add-note-section[_ngcontent-%COMP%]{margin-bottom:10px;padding-bottom:10px}.layout-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px}.layout-row.align-start-baseline[_ngcontent-%COMP%]{align-items:baseline}.layout-row.gap-10px[_ngcontent-%COMP%]{gap:10px}.flex-85-minus-20px[_ngcontent-%COMP%]{flex:1;min-width:300px}.flex-1[_ngcontent-%COMP%]{flex:none;white-space:nowrap}.note-card[_ngcontent-%COMP%]{background:#fff;border:1px solid #e0e0e0;border-radius:.2rem;padding:1rem;margin-bottom:1rem;box-shadow:0 2px 4px #00000014;transition:all .2s ease}.note-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000001f;border-color:#d0d0d0}.note-content[_ngcontent-%COMP%]{color:#333;font-size:14px;line-height:1rem;margin:0 0 16px;padding:.5rem;word-wrap:break-word;white-space:normal;text-indent:0;text-align:left}.note-footer[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding-top:.65rem;border-top:1px solid #f0f0f0}.note-meta[_ngcontent-%COMP%]{color:#666;font-size:12px}.created-by[_ngcontent-%COMP%]{font-weight:500;color:#007acc;margin-bottom:2px}.created-date[_ngcontent-%COMP%]{color:#888}.note-actions[_ngcontent-%COMP%]{display:flex;gap:8px}.edit-btn[_ngcontent-%COMP%], .delete-btn[_ngcontent-%COMP%]{border:1px solid #dee2e6;padding:8px 14px;border-radius:4px;font-size:14px;cursor:pointer;transition:all .2s ease;background:none;outline:none}.edit-btn[_ngcontent-%COMP%]{color:#6c757d;background-color:#daedff}.delete-btn[_ngcontent-%COMP%]{color:#dc3545;background-color:#ffcfcf}.edit-btn[_ngcontent-%COMP%]:disabled, .delete-btn[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.edit-btn[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#a8d4ff;color:#495057;border-color:#adb5bd}.delete-btn[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#f5c6cb;color:#721c24;border-color:#ff9ca5}.empty-state[_ngcontent-%COMP%]{text-align:center;padding:40px 20px;color:#666;font-style:italic;background:#fafafa;border-radius:8px;border:1px dashed #ddd}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}@media (width <= 768px){.tab-container[_ngcontent-%COMP%]{padding:16px}.layout-row[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch;gap:15px}.flex-85-minus-20px[_ngcontent-%COMP%], .flex-1[_ngcontent-%COMP%]{width:100%}.note-card[_ngcontent-%COMP%]{padding:16px;margin-bottom:12px}.note-content[_ngcontent-%COMP%]{font-size:13px;margin-bottom:12px}.note-footer[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:12px}.edit-btn[_ngcontent-%COMP%], .delete-btn[_ngcontent-%COMP%]{padding:5px 10px;font-size:11px}.note-meta[_ngcontent-%COMP%]{width:100%}.note-actions[_ngcontent-%COMP%]{align-self:flex-end}}"]})}}return t})();var cc=function(){return cc=Object.assign||function(i){for(var e,n=1,o=arguments.length;n";i.append(o)}else i.html(n)})},getSize:function(t,i,e,n){e===void 0&&(e=0);var o=Ye(t),r=o.attr("data-lg-size")||n;if(r){var a=r.split(",");if(a[1])for(var s=window.innerWidth,c=0;cs){r=m;break}c===a.length-1&&(r=m)}var v=r.split("-"),x=parseInt(v[0],10),w=parseInt(v[1],10),O=i.width(),K=i.height()-e,Y=Math.min(O,x),Z=Math.min(K,w),Oe=Math.min(Y/x,Z/w);return{width:x*Oe,height:w*Oe}}},getTransform:function(t,i,e,n,o){if(o){var r=Ye(t).find("img").first();if(r.get()){var a=i.get().getBoundingClientRect(),s=a.width,c=i.height()-(e+n),m=r.width(),f=r.height(),v=r.style(),x=(s-m)/2-r.offset().left+(parseFloat(v.paddingLeft)||0)+(parseFloat(v.borderLeft)||0)+Ye(window).scrollLeft()+a.left,w=(c-f)/2-r.offset().top+(parseFloat(v.paddingTop)||0)+(parseFloat(v.borderTop)||0)+Ye(window).scrollTop()+e,O=m/o.width,K=f/o.height,Y="translate3d("+(x*=-1)+"px, "+(w*=-1)+"px, 0) scale3d("+O+", "+K+", 1)";return Y}}},getIframeMarkup:function(t,i,e,n,o,r){var a=r?'title="'+r+'"':"";return'
-
`},getImgMarkup:function(t,i,e,n,o,r){var a=n?'srcset="'+n+'"':"",s=o?'sizes="'+o+'"':"",c="',m="";if(r){var f=typeof r=="string"?JSON.parse(r):r;m=f.map(function(v){var x="";return Object.keys(v).forEach(function(M){x+=" "+M+'="'+v[M]+'"'}),""})}return""+m+c},getResponsiveSrc:function(t){for(var i=[],e=[],n="",o=0;oa){n=e[s];break}return n},isImageLoaded:function(t){return!(!t||!t.complete||t.naturalWidth===0)},getVideoPosterMarkup:function(t,i,e,n,o){var r="";o&&o.youtube?r="lg-has-youtube":o&&o.vimeo?r="lg-has-vimeo":r="lg-has-html5";var a=i;return typeof i!="string"&&(a=i.outerHTML),'
+
`},getImgMarkup:function(t,i,e,n,o,r){var a=n?'srcset="'+n+'"':"",s=o?'sizes="'+o+'"':"",c="',m="";if(r){var f=typeof r=="string"?JSON.parse(r):r;m=f.map(function(v){var x="";return Object.keys(v).forEach(function(w){x+=" "+w+'="'+v[w]+'"'}),""})}return""+m+c},getResponsiveSrc:function(t){for(var i=[],e=[],n="",o=0;oa){n=e[s];break}return n},isImageLoaded:function(t){return!(!t||!t.complete||t.naturalWidth===0)},getVideoPosterMarkup:function(t,i,e,n,o){var r="";o&&o.youtube?r="lg-has-youtube":o&&o.vimeo?r="lg-has-vimeo":r="lg-has-html5";var a=i;return typeof i!="string"&&(a=i.outerHTML),'
`+a+` -
`},getFocusableElements:function(t){var i=t.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),e=[].filter.call(i,function(n){var o=window.getComputedStyle(n);return o.display!=="none"&&o.visibility!=="hidden"});return e},getDynamicOptions:function(t,i,e,n){var o=[],r=yle(Mle,i);return[].forEach.call(t,function(a){for(var s={},c=0;c-1&&(v=f),v&&(s[v]=m.value)}}var x=Ye(a),M=x.find("img").first().attr("alt"),O=x.attr("title"),K=n?x.attr(n):x.find("img").first().attr("src");s.thumb=K,e&&!s.subHtml&&(s.subHtml=O||M||""),s.alt=M||O||"",o.push(s)}),o},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(t,i,e){if(!t){if(i)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(e+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var n=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),o=t.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),r=t.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(n)return{youtube:n};if(o)return{vimeo:o};if(r)return{wistia:r}}},ER=0,Dle=(function(){function t(i,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!i)return this;if(ER++,this.lgId=ER,this.el=i,this.LGel=Ye(i),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return t.prototype.generateSettings=function(i){if(this.settings=cc(cc({},Cle),i),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():hi.isMobile()){var e=cc(cc({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=cc(cc({},this.settings),e)}},t.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var i=this.settings.container;if(typeof i=="function")this.settings.container=i();else if(typeof i=="string"){var e=document.querySelector(i);this.settings.container=e??document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},t.prototype.init=function(){var i=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(wn.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){i.enableDrag(),i.enableSwipe(),i.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},t.prototype.openGalleryOnItemClick=function(){for(var i=this,e=function(r){var a=n.items[r],s=Ye(a),c=IR.generateUUID();s.attr("data-lg-id",c).on("click.lgcustom-item-"+c,function(m){m.preventDefault();var f=i.settings.index||r;i.openGallery(f,a)})},n=this,o=0;o '+this.settings.prevHtml+` +
`},getFocusableElements:function(t){var i=t.querySelectorAll('a[href]:not([disabled]), button:not([disabled]), textarea:not([disabled]), input[type="text"]:not([disabled]), input[type="radio"]:not([disabled]), input[type="checkbox"]:not([disabled]), select:not([disabled])'),e=[].filter.call(i,function(n){var o=window.getComputedStyle(n);return o.display!=="none"&&o.visibility!=="hidden"});return e},getDynamicOptions:function(t,i,e,n){var o=[],r=yle(Mle,i);return[].forEach.call(t,function(a){for(var s={},c=0;c-1&&(v=f),v&&(s[v]=m.value)}}var x=Ye(a),w=x.find("img").first().attr("alt"),O=x.attr("title"),K=n?x.attr(n):x.find("img").first().attr("src");s.thumb=K,e&&!s.subHtml&&(s.subHtml=O||w||""),s.alt=w||O||"",o.push(s)}),o},isMobile:function(){return/iPhone|iPad|iPod|Android/i.test(navigator.userAgent)},isVideo:function(t,i,e){if(!t){if(i)return{html5:!0};console.error("lightGallery :- data-src is not provided on slide item "+(e+1)+". Please make sure the selector property is properly configured. More info - https://www.lightgalleryjs.com/demos/html-markup/");return}var n=t.match(/\/\/(?:www\.)?youtu(?:\.be|be\.com|be-nocookie\.com)\/(?:watch\?v=|embed\/)?([a-z0-9\-\_\%]+)([\&|?][\S]*)*/i),o=t.match(/\/\/(?:www\.)?(?:player\.)?vimeo.com\/(?:video\/)?([0-9a-z\-_]+)(.*)?/i),r=t.match(/https?:\/\/(.+)?(wistia\.com|wi\.st)\/(medias|embed)\/([0-9a-z\-_]+)(.*)/);if(n)return{youtube:n};if(o)return{vimeo:o};if(r)return{wistia:r}}},ER=0,Dle=(function(){function t(i,e){if(this.lgOpened=!1,this.index=0,this.plugins=[],this.lGalleryOn=!1,this.lgBusy=!1,this.currentItemsInDom=[],this.prevScrollTop=0,this.bodyPaddingRight=0,this.isDummyImageRemoved=!1,this.dragOrSwipeEnabled=!1,this.mediaContainerPosition={top:0,bottom:0},!i)return this;if(ER++,this.lgId=ER,this.el=i,this.LGel=Ye(i),this.generateSettings(e),this.buildModules(),this.settings.dynamic&&this.settings.dynamicEl!==void 0&&!Array.isArray(this.settings.dynamicEl))throw"When using dynamic mode, you must also define dynamicEl as an Array.";return this.galleryItems=this.getItems(),this.normalizeSettings(),this.init(),this.validateLicense(),this}return t.prototype.generateSettings=function(i){if(this.settings=cc(cc({},Cle),i),this.settings.isMobile&&typeof this.settings.isMobile=="function"?this.settings.isMobile():hi.isMobile()){var e=cc(cc({},this.settings.mobileSettings),this.settings.mobileSettings);this.settings=cc(cc({},this.settings),e)}},t.prototype.normalizeSettings=function(){if(this.settings.slideEndAnimation&&(this.settings.hideControlOnEnd=!1),this.settings.closable||(this.settings.swipeToClose=!1),this.zoomFromOrigin=this.settings.zoomFromOrigin,this.settings.dynamic&&(this.zoomFromOrigin=!1),this.settings.container){var i=this.settings.container;if(typeof i=="function")this.settings.container=i();else if(typeof i=="string"){var e=document.querySelector(i);this.settings.container=e??document.body}}else this.settings.container=document.body;this.settings.preload=Math.min(this.settings.preload,this.galleryItems.length)},t.prototype.init=function(){var i=this;this.addSlideVideoInfo(this.galleryItems),this.buildStructure(),this.LGel.trigger(wn.init,{instance:this}),this.settings.keyPress&&this.keyPress(),setTimeout(function(){i.enableDrag(),i.enableSwipe(),i.triggerPosterClick()},50),this.arrow(),this.settings.mousewheel&&this.mousewheel(),this.settings.dynamic||this.openGalleryOnItemClick()},t.prototype.openGalleryOnItemClick=function(){for(var i=this,e=function(r){var a=n.items[r],s=Ye(a),c=IR.generateUUID();s.attr("data-lg-id",c).on("click.lgcustom-item-"+c,function(m){m.preventDefault();var f=i.settings.index||r;i.openGallery(f,a)})},n=this,o=0;o '+this.settings.prevHtml+` "),this.settings.appendSubHtmlTo!==".lg-item"&&(o='
');var r="";this.settings.allowMediaOverlap&&(r+="lg-media-overlap ");var a=this.settings.ariaLabelledby?'aria-labelledby="'+this.settings.ariaLabelledby+'"':"",s=this.settings.ariaDescribedby?'aria-describedby="'+this.settings.ariaDescribedby+'"':"",c="lg-container "+this.settings.addClass+" "+(document.body!==this.settings.container?"lg-inline":""),m=this.settings.closable&&this.settings.showCloseIcon?'':"",f=this.settings.showMaximizeIcon?'':"",v=` ')}),this.currentItemsInDom.forEach(function(r){o.indexOf(r)===-1&&Ye("#"+r).remove()}),o},t.prototype.getPreviousSlideIndex=function(){var i=0;try{var e=this.outer.find(".lg-current").first().attr("id");i=parseInt(e.split("-")[3])||0}catch{i=0}return i},t.prototype.setDownloadValue=function(i){if(this.settings.download){var e=this.galleryItems[i],n=e.downloadUrl===!1||e.downloadUrl==="false";if(n)this.outer.addClass("lg-hide-download");else{var o=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),o.attr("href",e.downloadUrl||e.src),e.download&&o.attr("download",e.download)}}},t.prototype.makeSlideAnimation=function(i,e,n){var o=this;this.lGalleryOn&&n.addClass("lg-slide-progress"),setTimeout(function(){o.outer.addClass("lg-no-trans"),o.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),i==="prev"?(e.addClass("lg-prev-slide"),n.addClass("lg-next-slide")):(e.addClass("lg-next-slide"),n.addClass("lg-prev-slide")),setTimeout(function(){o.outer.find(".lg-item").removeClass("lg-current"),e.addClass("lg-current"),o.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},t.prototype.slide=function(i,e,n,o){var r=this,a=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(i,a),!(this.lGalleryOn&&a===i)){var s=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(i);var c=this.getSlideItem(i),m=this.getSlideItem(a),f=this.galleryItems[i],v=f.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(f)),this.setDownloadValue(i),v){var x=this.mediaContainerPosition,M=x.top,O=x.bottom,K=hi.getSize(this.items[i],this.outer,M+O,v&&this.settings.videoMaxSize);this.resizeVideoSlide(i,K)}if(this.LGel.trigger(wn.beforeSlide,{prevIndex:a,index:i,fromTouch:!!e,fromThumb:!!n}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(i),o||(ia&&(o="next")),!e)this.makeSlideAnimation(o,c,m);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var Y=void 0,Z=void 0;s>2?(Y=i-1,Z=i+1,(i===0&&a===s-1||i===s-1&&a===0)&&(Z=0,Y=s-1)):(Y=0,Z=1),o==="prev"?this.getSlideItem(Z).addClass("lg-next-slide"):this.getSlideItem(Y).addClass("lg-prev-slide"),c.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){r.loadContent(i,!0),r.settings.appendSubHtmlTo!==".lg-item"&&r.addHtml(i)},this.settings.speed+50+(e?0:this.settings.slideDelay)):this.loadContent(i,!0),setTimeout(function(){r.lgBusy=!1,m.removeClass("lg-slide-progress"),r.LGel.trigger(wn.afterSlide,{prevIndex:a,index:i,fromTouch:e,fromThumb:n})},(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=i}},t.prototype.updateCurrentCounter=function(i){this.getElementById("lg-counter-current").html(i+1+"")},t.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},t.prototype.getSlideType=function(i){return i.__slideVideoInfo?"video":i.iframe?"iframe":"image"},t.prototype.touchMove=function(i,e,n){var o=e.pageX-i.pageX,r=e.pageY-i.pageY,a=!1;if(this.swipeDirection?a=!0:Math.abs(o)>15?(this.swipeDirection="horizontal",a=!0):Math.abs(r)>15&&(this.swipeDirection="vertical",a=!0),!!a){var s=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){n?.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(s,o,0);var c=s.get().offsetWidth,m=c*15/100,f=m-Math.abs(o*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-c+o-f,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),c+o+f,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){n?.preventDefault(),this.$container.addClass("lg-dragging-vertical");var v=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",v);var x=1-Math.abs(r)/(window.innerWidth*2);this.setTranslate(s,0,r,x,x),Math.abs(r)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},t.prototype.touchEnd=function(i,e,n){var o=this,r;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var a=!0;if(o.swipeDirection==="horizontal"){r=i.pageX-e.pageX;var s=Math.abs(i.pageX-e.pageX);r<0&&s>o.settings.swipeThreshold?(o.goToNextSlide(!0),a=!1):r>0&&s>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),a=!1)}else if(o.swipeDirection==="vertical")if(r=Math.abs(i.pageY-e.pageY),o.settings.closable&&o.settings.swipeToClose&&r>100){o.closeGallery();return}else o.$backdrop.css("opacity",1);if(o.outer.find(".lg-item").removeAttr("style"),a&&Math.abs(i.pageX-e.pageX)<5){var c=Ye(n.target);o.isPosterElement(c)&&o.LGel.trigger(wn.posterClick)}o.swipeDirection=void 0}),setTimeout(function(){!o.outer.hasClass("lg-dragging")&&o.settings.mode!=="lg-slide"&&o.outer.removeClass("lg-slide")},this.settings.speed+100)},t.prototype.enableSwipe=function(){var i=this,e={},n={},o=!1,r=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(a){i.dragOrSwipeEnabled=!0;var s=i.getSlideItem(i.index);(Ye(a.target).hasClass("lg-item")||s.get().contains(a.target))&&!i.outer.hasClass("lg-zoomed")&&!i.lgBusy&&a.touches.length===1&&(r=!0,i.touchAction="swipe",i.manageSwipeClass(),e={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(a){r&&i.touchAction==="swipe"&&a.touches.length===1&&(n={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},i.touchMove(e,n,a),o=!0)}),this.$inner.on("touchend.lg",function(a){if(i.touchAction==="swipe"){if(o)o=!1,i.touchEnd(n,e,a);else if(r){var s=Ye(a.target);i.isPosterElement(s)&&i.LGel.trigger(wn.posterClick)}i.touchAction=void 0,r=!1}}))},t.prototype.enableDrag=function(){var i=this,e={},n={},o=!1,r=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(a){i.dragOrSwipeEnabled=!0;var s=i.getSlideItem(i.index);(Ye(a.target).hasClass("lg-item")||s.get().contains(a.target))&&!i.outer.hasClass("lg-zoomed")&&!i.lgBusy&&(a.preventDefault(),i.lgBusy||(i.manageSwipeClass(),e={pageX:a.pageX,pageY:a.pageY},o=!0,i.outer.get().scrollLeft+=1,i.outer.get().scrollLeft-=1,i.outer.removeClass("lg-grab").addClass("lg-grabbing"),i.LGel.trigger(wn.dragStart)))}),Ye(window).on("mousemove.lg.global"+this.lgId,function(a){o&&i.lgOpened&&(r=!0,n={pageX:a.pageX,pageY:a.pageY},i.touchMove(e,n),i.LGel.trigger(wn.dragMove))}),Ye(window).on("mouseup.lg.global"+this.lgId,function(a){if(i.lgOpened){var s=Ye(a.target);r?(r=!1,i.touchEnd(n,e,a),i.LGel.trigger(wn.dragEnd)):i.isPosterElement(s)&&i.LGel.trigger(wn.posterClick),o&&(o=!1,i.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},t.prototype.triggerPosterClick=function(){var i=this;this.$inner.on("click.lg",function(e){!i.dragOrSwipeEnabled&&i.isPosterElement(Ye(e.target))&&i.LGel.trigger(wn.posterClick)})},t.prototype.manageSwipeClass=function(){var i=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(i=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.getSlideItem(e).addClass("lg-prev-slide"),this.getSlideItem(i).addClass("lg-next-slide")},t.prototype.goToNextSlide=function(i){var e=this,n=this.settings.loop;i&&this.galleryItems.length<3&&(n=!1),this.lgBusy||(this.index+10?(this.index--,this.LGel.trigger(wn.beforePrevSlide,{index:this.index,fromTouch:i}),this.slide(this.index,!!i,!1,"prev")):n?(this.index=this.galleryItems.length-1,this.LGel.trigger(wn.beforePrevSlide,{index:this.index,fromTouch:i}),this.slide(this.index,!!i,!1,"prev")):this.settings.slideEndAnimation&&!i&&(this.outer.addClass("lg-left-end"),setTimeout(function(){e.outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var i=this;Ye(window).on("keydown.lg.global"+this.lgId,function(e){i.lgOpened&&i.settings.escKey===!0&&e.keyCode===27&&(e.preventDefault(),i.settings.allowMediaOverlap&&i.outer.hasClass("lg-can-toggle")&&i.outer.hasClass("lg-components-open")?i.outer.removeClass("lg-components-open"):i.closeGallery()),i.lgOpened&&i.galleryItems.length>1&&(e.keyCode===37&&(e.preventDefault(),i.goToPrevSlide()),e.keyCode===39&&(e.preventDefault(),i.goToNextSlide()))})},t.prototype.arrow=function(){var i=this;this.getElementById("lg-prev").on("click.lg",function(){i.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){i.goToNextSlide()})},t.prototype.arrowDisable=function(i){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById("lg-prev"),n=this.getElementById("lg-next");i+1===this.galleryItems.length?n.attr("disabled","disabled").addClass("disabled"):n.removeAttr("disabled").removeClass("disabled"),i===0?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled").removeClass("disabled")}},t.prototype.setTranslate=function(i,e,n,o,r){o===void 0&&(o=1),r===void 0&&(r=1),i.css("transform","translate3d("+e+"px, "+n+"px, 0px) scale3d("+o+", "+r+", 1)")},t.prototype.mousewheel=function(){var i=this,e=0;this.outer.on("wheel.lg",function(n){if(!(!n.deltaY||i.galleryItems.length<2)){n.preventDefault();var o=new Date().getTime();o-e<1e3||(e=o,n.deltaY>0?i.goToNextSlide():n.deltaY<0&&i.goToPrevSlide())}})},t.prototype.isSlideElement=function(i){return i.hasClass("lg-outer")||i.hasClass("lg-item")||i.hasClass("lg-img-wrap")||i.hasClass("lg-img-rotate")},t.prototype.isPosterElement=function(i){var e=this.getSlideItem(this.index).find(".lg-video-play-button").get();return i.hasClass("lg-video-poster")||i.hasClass("lg-video-play-button")||e&&e.contains(i.get())},t.prototype.toggleMaximize=function(){var i=this;this.getElementById("lg-maximize").on("click.lg",function(){i.$container.toggleClass("lg-inline"),i.refreshOnResize()})},t.prototype.invalidateItems=function(){for(var i=0;i',this.core.$toolbar.append(i),this.fullScreen()}},t.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},t.prototype.requestFullscreen=function(){var i=document.documentElement;i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen()},t.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},t.prototype.fullScreen=function(){var i=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+` + height:`+i.height+"px":""},t.prototype.getDummyImageContent=function(i,e,n){var o;if(this.settings.dynamic||(o=Ye(this.items).eq(e)),o){var r=void 0;if(this.settings.exThumbImage?r=o.attr(this.settings.exThumbImage):r=o.find("img").first().attr("src"),!r)return"";var a=this.getDummyImgStyles(this.currentImageSize),s=document.createElement("img");return s.alt=n||"",s.src=r,s.className="lg-dummy-img",s.style.cssText=a,i.addClass("lg-first-slide"),this.outer.addClass("lg-first-slide-loading"),s}return""},t.prototype.setImgMarkup=function(i,e,n){var o=this.galleryItems[n],r=o.alt,a=o.srcset,s=o.sizes,c=o.sources,m="",f=r?'alt="'+r+'"':"";this.isFirstSlideWithZoomAnimation()?m=this.getDummyImageContent(e,n,f):m=hi.getImgMarkup(n,i,f,a,s,c);var v=document.createElement("picture");v.className="lg-img-wrap",Ye(v).append(m),e.prepend(v)},t.prototype.onSlideObjectLoad=function(i,e,n,o){var r=i.find(".lg-object").first();hi.isImageLoaded(r.get())||e?n():(r.on("load.lg error.lg",function(){n&&n()}),r.on("error.lg",function(){o&&o()}))},t.prototype.onLgObjectLoad=function(i,e,n,o,r,a){var s=this;this.onSlideObjectLoad(i,a,function(){s.triggerSlideItemLoad(i,e,n,o,r)},function(){i.addClass("lg-complete lg-complete_"),i.html(''+s.settings.strings.mediaLoadingFailed+"")})},t.prototype.triggerSlideItemLoad=function(i,e,n,o,r){var a=this,s=this.galleryItems[e],c=r&&this.getSlideType(s)==="video"&&!s.poster?o:0;setTimeout(function(){i.addClass("lg-complete lg-complete_"),a.LGel.trigger(wn.slideItemLoad,{index:e,delay:n||0,isFirstSlide:r})},c)},t.prototype.isFirstSlideWithZoomAnimation=function(){return!!(!this.lGalleryOn&&this.zoomFromOrigin&&this.currentImageSize)},t.prototype.addSlideVideoInfo=function(i){var e=this;i.forEach(function(n,o){n.__slideVideoInfo=hi.isVideo(n.src,!!n.video,o),n.__slideVideoInfo&&e.settings.loadYouTubePoster&&!n.poster&&n.__slideVideoInfo.youtube&&(n.poster="//img.youtube.com/vi/"+n.__slideVideoInfo.youtube[1]+"/maxresdefault.jpg")})},t.prototype.loadContent=function(i,e){var n=this,o=this.galleryItems[i],r=Ye(this.getSlideItemId(i)),a=o.poster,s=o.srcset,c=o.sizes,m=o.sources,f=o.src,v=o.video,x=v&&typeof v=="string"?JSON.parse(v):v;if(o.responsive){var w=o.responsive.split(",");f=hi.getResponsiveSrc(w)||f}var O=o.__slideVideoInfo,K="",Y=!!o.iframe,Z=!this.lGalleryOn,Oe=0;if(Z&&(this.zoomFromOrigin&&this.currentImageSize?Oe=this.settings.startAnimationDuration+10:Oe=this.settings.backdropDuration+10),!r.hasClass("lg-loaded")){if(O){var Mt=this.mediaContainerPosition,Et=Mt.top,Ht=Mt.bottom,fn=hi.getSize(this.items[i],this.outer,Et+Ht,O&&this.settings.videoMaxSize);K=this.getVideoContStyle(fn)}if(Y){var Bo=hi.getIframeMarkup(this.settings.iframeWidth,this.settings.iframeHeight,this.settings.iframeMaxWidth,this.settings.iframeMaxHeight,f,o.iframeTitle);r.prepend(Bo)}else if(a){var oi="",Cl=Z&&this.zoomFromOrigin&&this.currentImageSize;Cl&&(oi=this.getDummyImageContent(r,i,""));var Bo=hi.getVideoPosterMarkup(a,oi||"",K,this.settings.strings.playVideo,O);r.prepend(Bo)}else if(O){var Bo='
';r.prepend(Bo)}else if(this.setImgMarkup(f,r,i),s||m){var Pu=r.find(".lg-object");this.initPictureFill(Pu)}(a||O)&&this.LGel.trigger(wn.hasVideo,{index:i,src:f,html5Video:x,hasPoster:!!a}),this.LGel.trigger(wn.afterAppendSlide,{index:i}),this.lGalleryOn&&this.settings.appendSubHtmlTo===".lg-item"&&this.addHtml(i)}var Oi=0;Oe&&!Ye(document.body).hasClass("lg-from-hash")&&(Oi=Oe),this.isFirstSlideWithZoomAnimation()&&(setTimeout(function(){r.removeClass("lg-start-end-progress lg-start-progress").removeAttr("style")},this.settings.startAnimationDuration+100),r.hasClass("lg-loaded")||setTimeout(function(){if(n.getSlideType(o)==="image"){var Lu=o.alt,F2=Lu?'alt="'+Lu+'"':"";if(r.find(".lg-img-wrap").append(hi.getImgMarkup(i,f,F2,s,c,o.sources)),s||m){var V2=r.find(".lg-object");n.initPictureFill(V2)}}(n.getSlideType(o)==="image"||n.getSlideType(o)==="video"&&a)&&(n.onLgObjectLoad(r,i,Oe,Oi,!0,!1),n.onSlideObjectLoad(r,!!(O&&O.html5&&!a),function(){n.loadContentOnFirstSlideLoad(i,r,Oi)},function(){n.loadContentOnFirstSlideLoad(i,r,Oi)}))},this.settings.startAnimationDuration+100)),r.addClass("lg-loaded"),(!this.isFirstSlideWithZoomAnimation()||this.getSlideType(o)==="video"&&!a)&&this.onLgObjectLoad(r,i,Oe,Oi,Z,!!(O&&O.html5&&!a)),(!this.zoomFromOrigin||!this.currentImageSize)&&r.hasClass("lg-complete_")&&!this.lGalleryOn&&setTimeout(function(){r.addClass("lg-complete")},this.settings.backdropDuration),this.lGalleryOn=!0,e===!0&&(r.hasClass("lg-complete_")?this.preload(i):r.find(".lg-object").first().on("load.lg error.lg",function(){n.preload(i)}))},t.prototype.loadContentOnFirstSlideLoad=function(i,e,n){var o=this;setTimeout(function(){e.find(".lg-dummy-img").remove(),e.removeClass("lg-first-slide"),o.outer.removeClass("lg-first-slide-loading"),o.isDummyImageRemoved=!0,o.preload(i)},n+300)},t.prototype.getItemsToBeInsertedToDom=function(i,e,n){var o=this;n===void 0&&(n=0);var r=[],a=Math.max(n,3);a=Math.min(a,this.galleryItems.length);var s="lg-item-"+this.lgId+"-"+e;if(this.galleryItems.length<=3)return this.galleryItems.forEach(function(f,v){r.push("lg-item-"+o.lgId+"-"+v)}),r;if(i<(this.galleryItems.length-1)/2){for(var c=i;c>i-a/2&&c>=0;c--)r.push("lg-item-"+this.lgId+"-"+c);for(var m=r.length,c=0;c
')}),this.currentItemsInDom.forEach(function(r){o.indexOf(r)===-1&&Ye("#"+r).remove()}),o},t.prototype.getPreviousSlideIndex=function(){var i=0;try{var e=this.outer.find(".lg-current").first().attr("id");i=parseInt(e.split("-")[3])||0}catch{i=0}return i},t.prototype.setDownloadValue=function(i){if(this.settings.download){var e=this.galleryItems[i],n=e.downloadUrl===!1||e.downloadUrl==="false";if(n)this.outer.addClass("lg-hide-download");else{var o=this.getElementById("lg-download");this.outer.removeClass("lg-hide-download"),o.attr("href",e.downloadUrl||e.src),e.download&&o.attr("download",e.download)}}},t.prototype.makeSlideAnimation=function(i,e,n){var o=this;this.lGalleryOn&&n.addClass("lg-slide-progress"),setTimeout(function(){o.outer.addClass("lg-no-trans"),o.outer.find(".lg-item").removeClass("lg-prev-slide lg-next-slide"),i==="prev"?(e.addClass("lg-prev-slide"),n.addClass("lg-next-slide")):(e.addClass("lg-next-slide"),n.addClass("lg-prev-slide")),setTimeout(function(){o.outer.find(".lg-item").removeClass("lg-current"),e.addClass("lg-current"),o.outer.removeClass("lg-no-trans")},50)},this.lGalleryOn?this.settings.slideDelay:0)},t.prototype.slide=function(i,e,n,o){var r=this,a=this.getPreviousSlideIndex();if(this.currentItemsInDom=this.organizeSlideItems(i,a),!(this.lGalleryOn&&a===i)){var s=this.galleryItems.length;if(!this.lgBusy){this.settings.counter&&this.updateCurrentCounter(i);var c=this.getSlideItem(i),m=this.getSlideItem(a),f=this.galleryItems[i],v=f.__slideVideoInfo;if(this.outer.attr("data-lg-slide-type",this.getSlideType(f)),this.setDownloadValue(i),v){var x=this.mediaContainerPosition,w=x.top,O=x.bottom,K=hi.getSize(this.items[i],this.outer,w+O,v&&this.settings.videoMaxSize);this.resizeVideoSlide(i,K)}if(this.LGel.trigger(wn.beforeSlide,{prevIndex:a,index:i,fromTouch:!!e,fromThumb:!!n}),this.lgBusy=!0,clearTimeout(this.hideBarTimeout),this.arrowDisable(i),o||(ia&&(o="next")),!e)this.makeSlideAnimation(o,c,m);else{this.outer.find(".lg-item").removeClass("lg-prev-slide lg-current lg-next-slide");var Y=void 0,Z=void 0;s>2?(Y=i-1,Z=i+1,(i===0&&a===s-1||i===s-1&&a===0)&&(Z=0,Y=s-1)):(Y=0,Z=1),o==="prev"?this.getSlideItem(Z).addClass("lg-next-slide"):this.getSlideItem(Y).addClass("lg-prev-slide"),c.addClass("lg-current")}this.lGalleryOn?setTimeout(function(){r.loadContent(i,!0),r.settings.appendSubHtmlTo!==".lg-item"&&r.addHtml(i)},this.settings.speed+50+(e?0:this.settings.slideDelay)):this.loadContent(i,!0),setTimeout(function(){r.lgBusy=!1,m.removeClass("lg-slide-progress"),r.LGel.trigger(wn.afterSlide,{prevIndex:a,index:i,fromTouch:e,fromThumb:n})},(this.lGalleryOn?this.settings.speed+100:100)+(e?0:this.settings.slideDelay))}this.index=i}},t.prototype.updateCurrentCounter=function(i){this.getElementById("lg-counter-current").html(i+1+"")},t.prototype.updateCounterTotal=function(){this.getElementById("lg-counter-all").html(this.galleryItems.length+"")},t.prototype.getSlideType=function(i){return i.__slideVideoInfo?"video":i.iframe?"iframe":"image"},t.prototype.touchMove=function(i,e,n){var o=e.pageX-i.pageX,r=e.pageY-i.pageY,a=!1;if(this.swipeDirection?a=!0:Math.abs(o)>15?(this.swipeDirection="horizontal",a=!0):Math.abs(r)>15&&(this.swipeDirection="vertical",a=!0),!!a){var s=this.getSlideItem(this.index);if(this.swipeDirection==="horizontal"){n?.preventDefault(),this.outer.addClass("lg-dragging"),this.setTranslate(s,o,0);var c=s.get().offsetWidth,m=c*15/100,f=m-Math.abs(o*10/100);this.setTranslate(this.outer.find(".lg-prev-slide").first(),-c+o-f,0),this.setTranslate(this.outer.find(".lg-next-slide").first(),c+o+f,0)}else if(this.swipeDirection==="vertical"&&this.settings.swipeToClose){n?.preventDefault(),this.$container.addClass("lg-dragging-vertical");var v=1-Math.abs(r)/window.innerHeight;this.$backdrop.css("opacity",v);var x=1-Math.abs(r)/(window.innerWidth*2);this.setTranslate(s,0,r,x,x),Math.abs(r)>100&&this.outer.addClass("lg-hide-items").removeClass("lg-components-open")}}},t.prototype.touchEnd=function(i,e,n){var o=this,r;this.settings.mode!=="lg-slide"&&this.outer.addClass("lg-slide"),setTimeout(function(){o.$container.removeClass("lg-dragging-vertical"),o.outer.removeClass("lg-dragging lg-hide-items").addClass("lg-components-open");var a=!0;if(o.swipeDirection==="horizontal"){r=i.pageX-e.pageX;var s=Math.abs(i.pageX-e.pageX);r<0&&s>o.settings.swipeThreshold?(o.goToNextSlide(!0),a=!1):r>0&&s>o.settings.swipeThreshold&&(o.goToPrevSlide(!0),a=!1)}else if(o.swipeDirection==="vertical")if(r=Math.abs(i.pageY-e.pageY),o.settings.closable&&o.settings.swipeToClose&&r>100){o.closeGallery();return}else o.$backdrop.css("opacity",1);if(o.outer.find(".lg-item").removeAttr("style"),a&&Math.abs(i.pageX-e.pageX)<5){var c=Ye(n.target);o.isPosterElement(c)&&o.LGel.trigger(wn.posterClick)}o.swipeDirection=void 0}),setTimeout(function(){!o.outer.hasClass("lg-dragging")&&o.settings.mode!=="lg-slide"&&o.outer.removeClass("lg-slide")},this.settings.speed+100)},t.prototype.enableSwipe=function(){var i=this,e={},n={},o=!1,r=!1;this.settings.enableSwipe&&(this.$inner.on("touchstart.lg",function(a){i.dragOrSwipeEnabled=!0;var s=i.getSlideItem(i.index);(Ye(a.target).hasClass("lg-item")||s.get().contains(a.target))&&!i.outer.hasClass("lg-zoomed")&&!i.lgBusy&&a.touches.length===1&&(r=!0,i.touchAction="swipe",i.manageSwipeClass(),e={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY})}),this.$inner.on("touchmove.lg",function(a){r&&i.touchAction==="swipe"&&a.touches.length===1&&(n={pageX:a.touches[0].pageX,pageY:a.touches[0].pageY},i.touchMove(e,n,a),o=!0)}),this.$inner.on("touchend.lg",function(a){if(i.touchAction==="swipe"){if(o)o=!1,i.touchEnd(n,e,a);else if(r){var s=Ye(a.target);i.isPosterElement(s)&&i.LGel.trigger(wn.posterClick)}i.touchAction=void 0,r=!1}}))},t.prototype.enableDrag=function(){var i=this,e={},n={},o=!1,r=!1;this.settings.enableDrag&&(this.outer.on("mousedown.lg",function(a){i.dragOrSwipeEnabled=!0;var s=i.getSlideItem(i.index);(Ye(a.target).hasClass("lg-item")||s.get().contains(a.target))&&!i.outer.hasClass("lg-zoomed")&&!i.lgBusy&&(a.preventDefault(),i.lgBusy||(i.manageSwipeClass(),e={pageX:a.pageX,pageY:a.pageY},o=!0,i.outer.get().scrollLeft+=1,i.outer.get().scrollLeft-=1,i.outer.removeClass("lg-grab").addClass("lg-grabbing"),i.LGel.trigger(wn.dragStart)))}),Ye(window).on("mousemove.lg.global"+this.lgId,function(a){o&&i.lgOpened&&(r=!0,n={pageX:a.pageX,pageY:a.pageY},i.touchMove(e,n),i.LGel.trigger(wn.dragMove))}),Ye(window).on("mouseup.lg.global"+this.lgId,function(a){if(i.lgOpened){var s=Ye(a.target);r?(r=!1,i.touchEnd(n,e,a),i.LGel.trigger(wn.dragEnd)):i.isPosterElement(s)&&i.LGel.trigger(wn.posterClick),o&&(o=!1,i.outer.removeClass("lg-grabbing").addClass("lg-grab"))}}))},t.prototype.triggerPosterClick=function(){var i=this;this.$inner.on("click.lg",function(e){!i.dragOrSwipeEnabled&&i.isPosterElement(Ye(e.target))&&i.LGel.trigger(wn.posterClick)})},t.prototype.manageSwipeClass=function(){var i=this.index+1,e=this.index-1;this.settings.loop&&this.galleryItems.length>2&&(this.index===0?e=this.galleryItems.length-1:this.index===this.galleryItems.length-1&&(i=0)),this.outer.find(".lg-item").removeClass("lg-next-slide lg-prev-slide"),e>-1&&this.getSlideItem(e).addClass("lg-prev-slide"),this.getSlideItem(i).addClass("lg-next-slide")},t.prototype.goToNextSlide=function(i){var e=this,n=this.settings.loop;i&&this.galleryItems.length<3&&(n=!1),this.lgBusy||(this.index+10?(this.index--,this.LGel.trigger(wn.beforePrevSlide,{index:this.index,fromTouch:i}),this.slide(this.index,!!i,!1,"prev")):n?(this.index=this.galleryItems.length-1,this.LGel.trigger(wn.beforePrevSlide,{index:this.index,fromTouch:i}),this.slide(this.index,!!i,!1,"prev")):this.settings.slideEndAnimation&&!i&&(this.outer.addClass("lg-left-end"),setTimeout(function(){e.outer.removeClass("lg-left-end")},400)))},t.prototype.keyPress=function(){var i=this;Ye(window).on("keydown.lg.global"+this.lgId,function(e){i.lgOpened&&i.settings.escKey===!0&&e.keyCode===27&&(e.preventDefault(),i.settings.allowMediaOverlap&&i.outer.hasClass("lg-can-toggle")&&i.outer.hasClass("lg-components-open")?i.outer.removeClass("lg-components-open"):i.closeGallery()),i.lgOpened&&i.galleryItems.length>1&&(e.keyCode===37&&(e.preventDefault(),i.goToPrevSlide()),e.keyCode===39&&(e.preventDefault(),i.goToNextSlide()))})},t.prototype.arrow=function(){var i=this;this.getElementById("lg-prev").on("click.lg",function(){i.goToPrevSlide()}),this.getElementById("lg-next").on("click.lg",function(){i.goToNextSlide()})},t.prototype.arrowDisable=function(i){if(!this.settings.loop&&this.settings.hideControlOnEnd){var e=this.getElementById("lg-prev"),n=this.getElementById("lg-next");i+1===this.galleryItems.length?n.attr("disabled","disabled").addClass("disabled"):n.removeAttr("disabled").removeClass("disabled"),i===0?e.attr("disabled","disabled").addClass("disabled"):e.removeAttr("disabled").removeClass("disabled")}},t.prototype.setTranslate=function(i,e,n,o,r){o===void 0&&(o=1),r===void 0&&(r=1),i.css("transform","translate3d("+e+"px, "+n+"px, 0px) scale3d("+o+", "+r+", 1)")},t.prototype.mousewheel=function(){var i=this,e=0;this.outer.on("wheel.lg",function(n){if(!(!n.deltaY||i.galleryItems.length<2)){n.preventDefault();var o=new Date().getTime();o-e<1e3||(e=o,n.deltaY>0?i.goToNextSlide():n.deltaY<0&&i.goToPrevSlide())}})},t.prototype.isSlideElement=function(i){return i.hasClass("lg-outer")||i.hasClass("lg-item")||i.hasClass("lg-img-wrap")||i.hasClass("lg-img-rotate")},t.prototype.isPosterElement=function(i){var e=this.getSlideItem(this.index).find(".lg-video-play-button").get();return i.hasClass("lg-video-poster")||i.hasClass("lg-video-play-button")||e&&e.contains(i.get())},t.prototype.toggleMaximize=function(){var i=this;this.getElementById("lg-maximize").on("click.lg",function(){i.$container.toggleClass("lg-inline"),i.refreshOnResize()})},t.prototype.invalidateItems=function(){for(var i=0;i',this.core.$toolbar.append(i),this.fullScreen()}},t.prototype.isFullScreen=function(){return document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement},t.prototype.requestFullscreen=function(){var i=document.documentElement;i.requestFullscreen?i.requestFullscreen():i.msRequestFullscreen?i.msRequestFullscreen():i.mozRequestFullScreen?i.mozRequestFullScreen():i.webkitRequestFullscreen&&i.webkitRequestFullscreen()},t.prototype.exitFullscreen=function(){document.exitFullscreen?document.exitFullscreen():document.msExitFullscreen?document.msExitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen&&document.webkitExitFullscreen()},t.prototype.fullScreen=function(){var i=this;this.$LG(document).on("fullscreenchange.lg.global"+this.core.lgId+` webkitfullscreenchange.lg.global`+this.core.lgId+` mozfullscreenchange.lg.global`+this.core.lgId+` MSFullscreenChange.lg.global`+this.core.lgId,function(){i.core.lgOpened&&i.core.outer.toggleClass("lg-fullscreen-on")}),this.core.outer.find(".lg-fullscreen").first().on("click.lg",function(){i.isFullScreen()?i.exitFullscreen():i.requestFullscreen()})},t.prototype.closeGallery=function(){this.isFullScreen()&&this.exitFullscreen()},t.prototype.destroy=function(){this.$LG(document).off("fullscreenchange.lg.global"+this.core.lgId+` @@ -700,4 +700,4 @@ If it declares any Font Awesome CSS pseudo-elements, they will not be rendered a MSFullscreenChange.lg.global`+this.core.lgId)},t})(),TR=Ele;var Th=function(){return Th=Object.assign||function(i){for(var e,n=1,o=arguments.length;n
- `;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(e):this.core.outer.append(e),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},t.prototype.enableThumbDrag=function(){var i=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},n=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(o){i.thumbTotalWidth>i.thumbOuterWidth&&(o.preventDefault(),e.cords.startX=o.pageX,e.startTime=new Date,i.thumbClickable=!1,n=!0,i.core.outer.get().scrollLeft+=1,i.core.outer.get().scrollLeft-=1,i.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(o){i.core.lgOpened&&n&&(e.cords.endX=o.pageX,e=i.onThumbTouchMove(e))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){i.core.lgOpened&&(e.isMoved?e=i.onThumbTouchEnd(e):i.thumbClickable=!0,n&&(n=!1,i.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},t.prototype.enableThumbSwipe=function(){var i=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(n){i.thumbTotalWidth>i.thumbOuterWidth&&(n.preventDefault(),e.cords.startX=n.targetTouches[0].pageX,i.thumbClickable=!1,e.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(n){i.thumbTotalWidth>i.thumbOuterWidth&&(n.preventDefault(),e.cords.endX=n.targetTouches[0].pageX,e=i.onThumbTouchMove(e))}),this.$lgThumb.on("touchend.lg",function(){e.isMoved?e=i.onThumbTouchEnd(e):i.thumbClickable=!0})},t.prototype.rebuildThumbnails=function(){var i=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){i.thumbTotalWidth=i.core.galleryItems.length*(i.settings.thumbWidth+i.settings.thumbMargin),i.$lgThumb.css("width",i.thumbTotalWidth+"px"),i.$lgThumb.empty(),i.setThumbItemHtml(i.core.galleryItems),i.animateThumb(i.core.index)},50),setTimeout(function(){i.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},t.prototype.setTranslate=function(i){this.$lgThumb.css("transform","translate3d(-"+i+"px, 0px, 0px)")},t.prototype.getPossibleTransformX=function(i){return i>this.thumbTotalWidth-this.thumbOuterWidth&&(i=this.thumbTotalWidth-this.thumbOuterWidth),i<0&&(i=0),i},t.prototype.animateThumb=function(i){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var e=0;switch(this.settings.currentPagerPosition){case"left":e=0;break;case"middle":e=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":e=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*i-1-e,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},t.prototype.onThumbTouchMove=function(i){return i.newTranslateX=this.translateX,i.isMoved=!0,i.touchMoveTime=new Date().valueOf(),i.newTranslateX-=i.cords.endX-i.cords.startX,i.newTranslateX=this.getPossibleTransformX(i.newTranslateX),this.setTranslate(i.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),i},t.prototype.onThumbTouchEnd=function(i){i.isMoved=!1,i.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var e=i.endTime.valueOf()-i.startTime.valueOf(),n=i.cords.endX-i.cords.startX,o=Math.abs(n)/e;return o>.15&&i.endTime.valueOf()-i.touchMoveTime<30?(o+=1,o>2&&(o+=1),o=o+o*(Math.abs(n)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(o-1,2)+"settings"),n=n*o,this.translateX=this.getPossibleTransformX(this.translateX-n),this.setTranslate(this.translateX)):this.translateX=i.newTranslateX,Math.abs(i.cords.endX-i.cords.startX)'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){i.core.outer.toggleClass("lg-components-open")}))},t.prototype.thumbKeyPress=function(){var i=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(e){!i.core.lgOpened||!i.settings.toggleThumb||(e.keyCode===38?(e.preventDefault(),i.core.outer.addClass("lg-components-open")):e.keyCode===40&&(e.preventDefault(),i.core.outer.removeClass("lg-components-open")))})},t.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},t})(),PR=Ole;var Ph=function(){return Ph=Object.assign||function(i){for(var e,n=1,o=arguments.length;n':"";this.settings.actualSize&&(i+=''),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(i)},t.prototype.enableZoom=function(i){var e=this,n=this.settings.enableZoomAfter+i.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&i.detail.delay?n=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){e.isImageSlide(e.core.index)&&(e.core.getSlideItem(i.detail.index).addClass("lg-zoomable"),i.detail.index===e.core.index&&e.setZoomEssentials())},n+30)},t.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(as.slideItemLoad+".zoom",this.enableZoom.bind(this))},t.prototype.getDragCords=function(i){return{x:i.pageX,y:i.pageY}},t.prototype.getSwipeCords=function(i){var e=i.touches[0].pageX,n=i.touches[0].pageY;return{x:e,y:n}},t.prototype.getDragAllowedAxises=function(i,e){if(!this.containerRect)return{allowX:!1,allowY:!1};var n=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),o=0,r=0,a=n.getBoundingClientRect();i?(o=n.offsetHeight*i,r=n.offsetWidth*i):e?(o=a.height+e*a.height,r=a.width+e*a.width):(o=a.height,r=a.width);var s=o>this.containerRect.height,c=r>this.containerRect.width;return{allowX:c,allowY:s}},t.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},t.prototype.zoomImage=function(i,e,n,o){if(!(!this.containerRect||Math.abs(e)<=0)){var r=this.containerRect.width/2+this.containerRect.left,a=this.containerRect.height/2+this.containerRect.top+this.scrollTop,s,c;i===1&&(this.positionChanged=!1);var m=this.getDragAllowedAxises(0,e),f=m.allowY,v=m.allowX;this.positionChanged&&(s=this.left/(this.scale-e),c=this.top/(this.scale-e),this.pageX=r-s,this.pageY=a-c,this.positionChanged=!1);var x=this.getPossibleSwipeDragCords(e),M,O,K=r-this.pageX,Y=a-this.pageY;if(i-e>1){var Z=(i-e)/Math.abs(e);K=(e<0?-K:K)+this.left*(Z+(e<0?-1:1)),Y=(e<0?-Y:Y)+this.top*(Z+(e<0?-1:1)),M=K/Z,O=Y/Z}else{var Z=(i-e)*e;M=K*Z,O=Y*Z}n&&(v?this.isBeyondPossibleLeft(M,x.minX)?M=x.minX:this.isBeyondPossibleRight(M,x.maxX)&&(M=x.maxX):i>1&&(Mx.maxX&&(M=x.maxX)),f?this.isBeyondPossibleTop(O,x.minY)?O=x.minY:this.isBeyondPossibleBottom(O,x.maxY)&&(O=x.maxY):i>1&&(Ox.maxY&&(O=x.maxY))),this.setZoomStyles({x:M,y:O,scale:i}),this.left=M,this.top=O,o&&this.setZoomImageSize()}},t.prototype.resetImageTranslate=function(i){if(this.isImageSlide(i)){var e=this.core.getSlideItem(i).find(".lg-image").first();this.imageReset=!1,e.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),e.css("width","auto").css("height","auto"),setTimeout(function(){e.removeClass("no-transition")},10)}},t.prototype.setZoomImageSize=function(){var i=this,e=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var n=i.getCurrentImageActualSizeScale();i.scale>=n&&(e.addClass("no-transition"),i.imageReset=!0)},Zb),setTimeout(function(){var n=i.getCurrentImageActualSizeScale();if(i.scale>=n){var o=i.getDragAllowedAxises(i.scale);e.css("width",e.get().naturalWidth+"px").css("height",e.get().naturalHeight+"px"),i.core.outer.addClass("lg-actual-size"),o.allowX&&o.allowY?e.addClass("reset-transition"):o.allowX&&!o.allowY?e.addClass("reset-transition-x"):!o.allowX&&o.allowY&&e.addClass("reset-transition-y")}},Zb+50)},t.prototype.setZoomStyles=function(i){var e=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),n=this.core.getSlideItem(this.core.index).find(".lg-image").first(),o=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=i.scale,n.css("transform","scale3d("+i.scale+", "+i.scale+", 1)"),o.css("transform","scale3d("+i.scale+", "+i.scale+", 1)");var r="translate3d("+i.x+"px, "+i.y+"px, 0)";e.css("transform",r)},t.prototype.setActualSize=function(i,e){var n=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var o=this.core.galleryItems[this.core.index];this.resetImageTranslate(i),setTimeout(function(){if(!(!o.src||n.core.outer.hasClass("lg-first-slide-loading"))){var r=n.getCurrentImageActualSizeScale(),a=n.scale;n.core.outer.hasClass("lg-zoomed")?n.scale=1:n.scale=n.getScale(r),n.setPageCords(e),n.beginZoom(n.scale),n.zoomImage(n.scale,n.scale-a,!0,!0)}},50),setTimeout(function(){n.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){n.zoomInProgress=!1},Zb+110)}},t.prototype.getNaturalWidth=function(i){var e=this.core.getSlideItem(i).find(".lg-image").first(),n=this.core.galleryItems[i].width;return n?parseFloat(n):e.get().naturalWidth},t.prototype.getActualSizeScale=function(i,e){var n,o;return i>=e?(n=i/e,o=n||2):o=1,o},t.prototype.getCurrentImageActualSizeScale=function(){var i=this.core.getSlideItem(this.core.index).find(".lg-image").first(),e=i.get().offsetWidth,n=this.getNaturalWidth(this.core.index)||e;return this.getActualSizeScale(n,e)},t.prototype.getPageCords=function(i){var e={};if(i)e.x=i.pageX||i.touches[0].pageX,e.y=i.pageY||i.touches[0].pageY;else{var n=this.core.$content.get().getBoundingClientRect();e.x=n.width/2+n.left,e.y=n.height/2+this.scrollTop+n.top}return e},t.prototype.setPageCords=function(i){var e=this.getPageCords(i);this.pageX=e.x,this.pageY=e.y},t.prototype.manageActualPixelClassNames=function(){var i=this.core.getElementById("lg-actual-size");i.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},t.prototype.beginZoom=function(i){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),i>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),i>1},t.prototype.getScale=function(i){var e=this.getCurrentImageActualSizeScale();return i<1?i=1:i>e&&(i=e),i},t.prototype.init=function(){var i=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var e=null;this.core.outer.on("dblclick.lg",function(n){i.$LG(n.target).hasClass("lg-image")&&i.setActualSize(i.core.index,n)}),this.core.outer.on("touchstart.lg",function(n){var o=i.$LG(n.target);n.touches.length===1&&o.hasClass("lg-image")&&(e?(clearTimeout(e),e=null,n.preventDefault(),i.setActualSize(i.core.index,n)):e=setTimeout(function(){e=null},300))}),this.core.LGel.on(as.containerResize+".zoom "+as.rotateRight+".zoom "+as.rotateLeft+".zoom "+as.flipHorizontal+".zoom "+as.flipVertical+".zoom",function(){if(!(!i.core.lgOpened||!i.isImageSlide(i.core.index)||i.core.touchAction)){var n=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();i.top=0,i.left=0,i.setZoomEssentials(),i.setZoomSwipeStyles(n,{x:0,y:0}),i.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){i.core.lgOpened&&(i.scrollTop=i.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(i.isImageSlide(i.core.index)){var n=0;i.imageReset&&(i.resetImageTranslate(i.core.index),n=50),setTimeout(function(){var o=i.scale-i.settings.scale;o<1&&(o=1),i.beginZoom(o),i.zoomImage(o,-i.settings.scale,!0,!i.settings.infiniteZoom)},n)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){i.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){i.setActualSize(i.core.index)}),this.core.LGel.on(as.beforeOpen+".zoom",function(){i.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(as.afterOpen+".zoom",function(){i.scrollTop=i.$LG(window).scrollTop(),i.pageX=i.core.outer.width()/2,i.pageY=i.core.outer.height()/2+i.scrollTop,i.scale=1}),this.core.LGel.on(as.afterSlide+".zoom",function(n){var o=n.detail.prevIndex;i.scale=1,i.positionChanged=!1,i.zoomInProgress=!1,i.resetZoom(o),i.resetImageTranslate(o),i.isImageSlide(i.core.index)&&i.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},t.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var i=this.scale+this.settings.scale;this.settings.infiniteZoom||(i=this.getScale(i)),this.beginZoom(i),this.zoomImage(i,Math.min(this.settings.scale,i-this.scale),!0,!this.settings.infiniteZoom)}},t.prototype.resetZoom=function(i){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var e=this.core.getElementById("lg-actual-size"),n=this.core.getSlideItem(i!==void 0?i:this.core.index);e.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),n.find(".lg-img-wrap").first().removeAttr("style"),n.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},t.prototype.getTouchDistance=function(i){return Math.sqrt((i.touches[0].pageX-i.touches[1].pageX)*(i.touches[0].pageX-i.touches[1].pageX)+(i.touches[0].pageY-i.touches[1].pageY)*(i.touches[0].pageY-i.touches[1].pageY))},t.prototype.pinchZoom=function(){var i=this,e=0,n=!1,o=1,r=0,a=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(s){if(a=i.core.getSlideItem(i.core.index),!!i.isImageSlide(i.core.index)&&s.touches.length===2){if(s.preventDefault(),i.core.outer.hasClass("lg-first-slide-loading"))return;o=i.scale||1,i.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),i.setPageCords(s),i.resetImageTranslate(i.core.index),i.core.touchAction="pinch",e=i.getTouchDistance(s)}}),this.core.$inner.on("touchmove.lg",function(s){if(s.touches.length===2&&i.core.touchAction==="pinch"&&(i.$LG(s.target).hasClass("lg-item")||a.get().contains(s.target))){s.preventDefault();var c=i.getTouchDistance(s),m=e-c;if(!n&&Math.abs(m)>5&&(n=!0),n){r=i.scale;var f=Math.max(1,o+-m*.02);i.scale=Math.round((f+Number.EPSILON)*100)/100;var v=i.scale-r;i.zoomImage(i.scale,Math.round((v+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(s){if(i.core.touchAction==="pinch"&&(i.$LG(s.target).hasClass("lg-item")||a.get().contains(s.target))){if(n=!1,e=0,i.scale<=1)i.resetZoom();else{var c=i.getCurrentImageActualSizeScale();if(i.scale>=c){var m=c-i.scale;m===0&&(m=.01),i.zoomImage(c,m,!1,!0)}i.manageActualPixelClassNames(),i.core.outer.addClass("lg-zoomed")}i.core.touchAction=void 0}})},t.prototype.touchendZoom=function(i,e,n,o,r){var a=e.x-i.x,s=e.y-i.y,c=Math.abs(a)/r+1,m=Math.abs(s)/r+1;c>2&&(c+=1),m>2&&(m+=1),a=a*c,s=s*m;var f=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),v={};v.x=this.left+a,v.y=this.top+s;var x=this.getPossibleSwipeDragCords();(Math.abs(a)>15||Math.abs(s)>15)&&(o&&(this.isBeyondPossibleTop(v.y,x.minY)?v.y=x.minY:this.isBeyondPossibleBottom(v.y,x.maxY)&&(v.y=x.maxY)),n&&(this.isBeyondPossibleLeft(v.x,x.minX)?v.x=x.minX:this.isBeyondPossibleRight(v.x,x.maxX)&&(v.x=x.maxX)),o?this.top=v.y:v.y=this.top,n?this.left=v.x:v.x=this.left,this.setZoomSwipeStyles(f,v),this.positionChanged=!0)},t.prototype.getZoomSwipeCords=function(i,e,n,o,r){var a={};if(o){if(a.y=this.top+(e.y-i.y),this.isBeyondPossibleTop(a.y,r.minY)){var s=r.minY-a.y;a.y=r.minY-s/6}else if(this.isBeyondPossibleBottom(a.y,r.maxY)){var c=a.y-r.maxY;a.y=r.maxY+c/6}}else a.y=this.top;if(n){if(a.x=this.left+(e.x-i.x),this.isBeyondPossibleLeft(a.x,r.minX)){var m=r.minX-a.x;a.x=r.minX-m/6}else if(this.isBeyondPossibleRight(a.x,r.maxX)){var f=a.x-r.maxX;a.x=r.maxX+f/6}}else a.x=this.left;return a},t.prototype.isBeyondPossibleLeft=function(i,e){return i>=e},t.prototype.isBeyondPossibleRight=function(i,e){return i<=e},t.prototype.isBeyondPossibleTop=function(i,e){return i>=e},t.prototype.isBeyondPossibleBottom=function(i,e){return i<=e},t.prototype.isImageSlide=function(i){var e=this.core.galleryItems[i];return this.core.getSlideType(e)==="image"},t.prototype.getPossibleSwipeDragCords=function(i){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),n=this.core.mediaContainerPosition.bottom,o=e.get().getBoundingClientRect(),r=o.height,a=o.width;i&&(r=r+i*r,a=a+i*a);var s=(r-this.containerRect.height)/2,c=(this.containerRect.height-r)/2+n,m=(a-this.containerRect.width)/2,f=(this.containerRect.width-a)/2,v={minY:s,maxY:c,minX:m,maxX:f};return v},t.prototype.setZoomSwipeStyles=function(i,e){i.css("transform","translate3d("+e.x+"px, "+e.y+"px, 0)")},t.prototype.zoomSwipe=function(){var i=this,e={},n={},o=!1,r=!1,a=!1,s=new Date,c=new Date,m,f,v=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(x){if(i.isImageSlide(i.core.index)&&(v=i.core.getSlideItem(i.core.index),(i.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))&&x.touches.length===1&&i.core.outer.hasClass("lg-zoomed"))){x.preventDefault(),s=new Date,i.core.touchAction="zoomSwipe",f=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var M=i.getDragAllowedAxises(0);a=M.allowY,r=M.allowX,(r||a)&&(e=i.getSwipeCords(x)),m=i.getPossibleSwipeDragCords(),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(x){if(x.touches.length===1&&i.core.touchAction==="zoomSwipe"&&(i.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){x.preventDefault(),i.core.touchAction="zoomSwipe",n=i.getSwipeCords(x);var M=i.getZoomSwipeCords(e,n,r,a,m);(Math.abs(n.x-e.x)>15||Math.abs(n.y-e.y)>15)&&(o=!0,i.setZoomSwipeStyles(f,M))}}),this.core.$inner.on("touchend.lg",function(x){if(i.core.touchAction==="zoomSwipe"&&(i.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){if(x.preventDefault(),i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,c=new Date;var M=c.valueOf()-s.valueOf();i.touchendZoom(e,n,r,a,M)}})},t.prototype.zoomDrag=function(){var i=this,e={},n={},o=!1,r=!1,a=!1,s=!1,c,m,f,v;this.core.outer.on("mousedown.lg.zoom",function(x){if(i.isImageSlide(i.core.index)){var M=i.core.getSlideItem(i.core.index);if(i.$LG(x.target).hasClass("lg-item")||M.get().contains(x.target)){c=new Date,v=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var O=i.getDragAllowedAxises(0);s=O.allowY,a=O.allowX,i.core.outer.hasClass("lg-zoomed")&&i.$LG(x.target).hasClass("lg-object")&&(a||s)&&(x.preventDefault(),e=i.getDragCords(x),f=i.getPossibleSwipeDragCords(),o=!0,i.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(x){if(o){r=!0,n=i.getDragCords(x);var M=i.getZoomSwipeCords(e,n,a,s,f);i.setZoomSwipeStyles(v,M)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(x){if(o){if(m=new Date,o=!1,i.core.outer.removeClass("lg-zoom-dragging"),r&&(e.x!==n.x||e.y!==n.y)){n=i.getDragCords(x);var M=m.valueOf()-c.valueOf();i.touchendZoom(e,n,a,s,M)}r=!1}i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},t.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},t.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},t})(),LR=Ple;function Lle(t,i){t&1&&(y(0),S(1,"translate")),t&2&&ne(" ",k(1,1,"labels.heading.Add Client Identifier")," ")}function Ale(t,i){if(t&1&&(y(0),S(1,"translate"),S(2,"translate")),t&2){let e=w();Ua(" ",k(1,3,"labels.heading.Upload")," ",e.entityType," ",k(2,5,"labels.heading.Documents")," ")}}function zle(t,i){if(t&1&&(h(0,"mat-option",10),y(1),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ne(" ",e.name," ")}}function Rle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),Dt(" ",k(2,3,"labels.inputs.Document Type")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Nle(t,i){if(t&1&&(h(0,"mat-option",10),y(1),_()),t&2){let e=i.$implicit;D("value",e.value),p(),ne(" ",e.label," ")}}function Fle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),Dt(" ",k(2,3,"labels.inputs.Status")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Vle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),Dt(" ",k(2,3,"labels.inputs.Document Key")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Ble(t,i){if(t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",9),Xe(5,zle,2,2,"mat-option",10,ht),_(),E(7,Rle,7,9,"mat-error"),_(),h(8,"mat-form-field",3)(9,"mat-label"),y(10),S(11,"translate"),_(),h(12,"mat-select",11),Xe(13,Nle,2,2,"mat-option",10,ht),_(),E(15,Fle,7,9,"mat-error"),_(),h(16,"mat-form-field",3)(17,"mat-label"),y(18),S(19,"translate"),_(),F(20,"input",12),E(21,Vle,7,9,"mat-error"),_(),h(22,"mat-form-field",3)(23,"mat-label"),y(24),S(25,"translate"),_(),F(26,"input",13),_()),t&2){let e=w();p(2),T(k(3,7,"labels.inputs.Document Type")),p(3),Ze(e.allowedDocumentTypes),p(2),I(e.uploadDocumentForm.controls.documentTypeId!=null&&e.uploadDocumentForm.controls.documentTypeId.hasError("required")?7:-1),p(3),T(k(11,9,"labels.inputs.Status")),p(3),Ze(e.statusOptions),p(2),I(e.uploadDocumentForm.controls.status!=null&&e.uploadDocumentForm.controls.status.hasError("required")?15:-1),p(3),T(k(19,11,"labels.inputs.Document Key")),p(3),I(e.uploadDocumentForm.controls.documentKey!=null&&e.uploadDocumentForm.controls.documentKey.hasError("required")?21:-1),p(3),T(k(25,13,"labels.inputs.Description"))}}function jle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),Dt(" ",k(2,3,"labels.inputs.File Name")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Hle(t,i){t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),y(2),S(3,"translate"),_(),F(4,"input",13),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Description")))}function Ule(t,i){t&1&&(y(0),S(1,"translate")),t&2&&ne(" ",k(1,1,"labels.buttons.Add")," ")}function $le(t,i){t&1&&(y(0),S(1,"translate")),t&2&&ne(" ",k(1,1,"labels.buttons.Upload")," ")}var AR=(()=>{class t{constructor(){this.dialogRef=d(qt),this.formBuilder=d(Rs),this.data=d(En),this.uploadDocumentData=[],this.documentIdentifier=!1,this.allowedDocumentTypes=[],this.statusOptions=[];let e=this.data;this.documentIdentifier=e.documentIdentifier,this.entityType=e.entityType,this.allowedDocumentTypes=e.allowedDocumentTypes||[],this.statusOptions=e.statusOptions||[]}ngOnInit(){this.createUploadDocumentForm()}createUploadDocumentForm(){this.documentIdentifier?this.uploadDocumentForm=this.formBuilder.group({documentTypeId:["",en.required],status:["Active",en.required],documentKey:["",en.required],description:[""],fileName:["",en.required],file:[""]}):this.uploadDocumentForm=this.formBuilder.group({fileName:["",en.required],description:[""],file:[""]})}onFileSelect(e){if(e.target.files.length>0){let n=e.target.files[0];this.uploadDocumentForm.get("file").setValue(n)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-upload-document-dialog"]],decls:21,vars:14,consts:[["mat-dialog-title",""],[1,"m-l-10","m-r-10"],[1,"layout-column",3,"formGroup"],[1,"flex-fill"],["formControlName","fileName","required","","matInput",""],["flex","60%",3,"change"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"],["formControlName","documentTypeId","required",""],[3,"value"],["formControlName","status","required",""],["formControlName","documentKey","required","","matInput",""],["formControlName","description","matInput",""]],template:function(n,o){n&1&&(h(0,"h1",0),E(1,Lle,2,3)(2,Ale,3,7),_(),h(3,"div",1)(4,"form",2),E(5,Ble,27,15),h(6,"mat-form-field",3)(7,"mat-label"),y(8),S(9,"translate"),_(),F(10,"input",4),E(11,jle,7,9,"mat-error"),_(),E(12,Hle,5,3,"mat-form-field",3),h(13,"mifosx-file-upload",5),N("change",function(a){return o.onFileSelect(a)}),_(),h(14,"mat-dialog-actions",6)(15,"button",7),y(16),S(17,"translate"),_(),h(18,"button",8),E(19,Ule,2,3)(20,$le,2,3),_()()()()),n&2&&(p(),I(o.documentIdentifier?1:2),p(3),D("formGroup",o.uploadDocumentForm),p(),I(o.documentIdentifier?5:-1),p(3),T(k(9,10,"labels.inputs.File Name")),p(3),I(o.uploadDocumentForm.controls.fileName.hasError("required")?11:-1),p(),I(o.documentIdentifier?-1:12),p(4),T(k(17,12,"labels.buttons.Cancel")),p(2),D("disabled",!o.uploadDocumentForm.valid)("mat-dialog-close",o.uploadDocumentForm.value),p(),I(o.documentIdentifier?19:20))},dependencies:[he,ve,zs,yi,mn,tr,Ir,ui,Ao,Bt,Cn,ao,ti,qn,ln,vt,xn,Af,zn,Ln,Te],encapsulation:2})}}return t})();var zR=(()=>{class t{constructor(){this.previewCache=new Map}isPreviewable(e){let n=this.detectType(e.mimeType,e.fileName,e.fileData);return n==="image"||n==="pdf"}resolvePreviewUrl(e,n){return Hr(this,null,function*(){let o=this.previewCache.get(e.id);if(o)return{url:o.url,type:o.type};let r=this.getInlineData(e);if(r){let m=this.detectType(r.mimeType,e.fileName,e.fileData);return this.previewCache.set(e.id,{url:r.url,type:m,isObjectUrl:r.isObjectUrl}),{url:r.url,type:m}}let a=yield L6(n(e)),s=URL.createObjectURL(a),c=this.detectType(a.type||e.mimeType,e.fileName,e.fileData);return this.previewCache.set(e.id,{url:s,type:c,isObjectUrl:!0}),{url:s,type:c}})}release(e){let n=this.previewCache.get(e);n?.isObjectUrl&&URL.revokeObjectURL(n.url),this.previewCache.delete(e)}clear(){this.previewCache.forEach(e=>{e.isObjectUrl&&URL.revokeObjectURL(e.url)}),this.previewCache.clear()}getInlineData(e){if(!e.fileData)return null;let n=e.fileData.match(/^data:(.*?);/);return{url:e.fileData,mimeType:n?n[1]:e.mimeType,isObjectUrl:!1}}detectType(e,n,o){let r=(e||this.extractMimeFromData(o)||"").toLowerCase();if(r.includes("pdf"))return"pdf";if(r.startsWith("image/"))return"image";let a=(n||"").split(".").pop()?.toLowerCase();return a==="pdf"?"pdf":a&&["jpg","jpeg","png","gif","bmp","webp","svg"].includes(a)?"image":"other"}extractMimeFromData(e){if(!e||!e.startsWith("data:"))return;let n=e.match(/^data:(.*?);/);return n?n[1]:void 0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gle=["lightboxRoot"];function Wle(t,i){if(t&1){let e=le();h(0,"div",7)(1,"button",8),N("click",function(){G(e);let o=w();return W(o.uploadDocument())}),F(2,"fa-icon",9),y(3),S(4,"translate"),_()()}t&2&&(p(3),ne("",k(4,1,"labels.buttons.Add")," "))}function qle(t,i){if(t&1&&F(0,"img",13),t&2){let e=w().$implicit,n=w(2);D("src",n.previewThumbnails[e.id],_1)("alt",e.name)("title",e.name)}}function Yle(t,i){if(t&1&&(h(0,"div",14),F(1,"fa-icon",22),h(2,"span"),y(3),_()()),t&2){let e=w().$implicit;p(3),T(e.fileName||e.name)}}function Qle(t,i){t&1&&(h(0,"div",15),F(1,"fa-icon",23),_())}function Kle(t,i){if(t&1&&(h(0,"div",18),y(1),_()),t&2){let e=w().$implicit;p(),T(e.fileName)}}function Xle(t,i){if(t&1&&(h(0,"div",19),y(1),_()),t&2){let e=w().$implicit;p(),T(e.description)}}function Zle(t,i){if(t&1){let e=le();h(0,"button",24),S(1,"translate"),N("click",function(){G(e);let o=w().$implicit,r=w(2);return W(r.deleteDocument(o.id,o.name))}),F(2,"fa-icon",25),_()}t&2&&te("aria-label",k(1,1,"labels.buttons.Delete"))}function Jle(t,i){if(t&1){let e=le();h(0,"div",11)(1,"div",12),S(2,"translate"),N("keydown.enter",function(){let o=G(e).$implicit,r=w(2);return W(r.isPreviewable(o)&&r.openPreview(o))})("keydown.space",function(){let o=G(e).$implicit,r=w(2);return W(r.isPreviewable(o)&&r.openPreview(o))})("click",function(){let o=G(e).$implicit,r=w(2);return W(r.isPreviewable(o)&&r.openPreview(o))}),E(3,qle,1,3,"img",13)(4,Yle,4,1,"div",14),E(5,Qle,2,0,"div",15),_(),h(6,"div",16)(7,"div",17),y(8),_(),E(9,Kle,2,1,"div",18),E(10,Xle,2,1,"div",19),h(11,"div",20),ot(12,Zle,3,3,"button",21),_()()()}if(t&2){let e=i.$implicit,n=w(2);p(),oe("clickable",n.isPreviewable(e)),te("aria-label",k(2,9,"labels.buttons.Preview")+": "+e.name),p(2),I(n.previewThumbnails[e.id]?3:4),p(2),I(n.isPreviewable(e)?5:-1),p(3),T(e.name),p(),I(e.fileName?9:-1),p(),I(e.description?10:-1),p(2),D("mifosxHasPermission","DELETE_DOCUMENT")}}function e1e(t,i){if(t&1&&(h(0,"div")(1,"div",10),Xe(2,Jle,13,11,"div",11,M5().trackByDocumentId,!0),_()()),t&2){let e=w();p(2),Ze(e.entityDocuments)}}function t1e(t,i){t&1&&(h(0,"div",5)(1,"p"),y(2),S(3,"translate"),_(),h(4,"p",26),y(5),S(6,"translate"),_()()),t&2&&(p(2),T(k(3,2,"labels.text.NoDocuments")),p(3),T(k(6,4,"labels.text.UploadDocumentHint")))}var RR=(()=>{class t{constructor(){this.dialog=d(Wi),this.savingsService=d(Ih),this.loansService=d(Eh),this.clientsService=d(kh),this.documentPreviewService=d(zR),this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[LR,PR,TR]}ngOnInit(){this.prefetchThumbnails()}ngOnDestroy(){this.destroyLightbox(),Array.isArray(this.entityDocuments)&&this.entityDocuments.forEach(e=>this.documentPreviewService.release(e.id))}trackByDocumentId(e,n){return n?.id}uploadDocument(){this.dialog.open(AR,{data:{documentIdentifier:!1,entityType:""},width:"33rem"}).afterClosed().subscribe(n=>{if(n){let o=new FormData;o.append("name",n.fileName),o.append("file",n.file),o.append("description",n.description),this.callbackUpload(o).subscribe(r=>{let a={id:r.resourceId,parentEntityType:this.entityType,parentEntityId:this.entityId,name:n.fileName,description:n.description,fileName:n.file.name};this.entityDocuments.push(a),this.setThumbnail(a)})}})}deleteDocument(e,n){this.dialog.open(Rr,{data:{deleteContext:`Document: ${n}`}}).afterClosed().subscribe(r=>{if(r.delete){this.callbackDelete(e);let a=this.entityDocuments.findIndex(s=>s.id===e);a!==-1&&this.entityDocuments.splice(a,1),this.documentPreviewService.release(e),delete this.previewThumbnails[e]}})}isPreviewable(e){return this.documentPreviewService.isPreviewable(e)}openPreview(e){return Hr(this,null,function*(){if(this.isPreviewable(e))try{let n=this.entityDocuments.filter(a=>this.isPreviewable(a)),o=[];for(let a of n)try{let s=yield this.documentPreviewService.resolvePreviewUrl(a,c=>this.getDownloadObservable(c.id));s.type==="image"&&(this.previewThumbnails[a.id]=s.url),o.push({src:s.url,thumb:s.type==="image"?s.url:void 0,subHtml:this.buildSubHtml(a),iframe:s.type==="pdf"})}catch(s){console.error("Preview failed for document",a.id,s)}if(!o.length)return;let r=Math.max(0,n.findIndex(a=>a.id===e.id));this.destroyLightbox(),this.lightboxInstance=OR(this.lightboxRoot.nativeElement,{dynamic:!0,dynamicEl:o,plugins:this.lightboxPlugins,download:!1,closable:!0,escKey:!0,zoomFromOrigin:!0}),this.lightboxInstance.openGallery(r)}catch(n){console.error("Unable to open preview",n)}})}destroyLightbox(){this.lightboxInstance&&(this.lightboxInstance.destroy(),this.lightboxInstance=null)}getDownloadObservable(e){return this.entityType==="savings"?this.savingsService.downloadSavingsDocument(this.entityId,e):this.entityType==="loans"?this.loansService.downloadLoanDocument(this.entityId,e):this.clientsService.downloadClientDocument(this.entityId,e)}buildSubHtml(e){let n=e.description?`

${this.escapeHtml(e.description)}

`:"",o=e.fileName?`

${this.escapeHtml(e.fileName)}

`:"";return`

${this.escapeHtml(e.name||"Document")}

${n}${o}
`}escapeHtml(e){return e?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):""}setThumbnail(e){this.documentPreviewService.isPreviewable(e)&&this.documentPreviewService.resolvePreviewUrl(e,()=>this.getDownloadObservable(e.id)).then(n=>{n.type==="image"&&(this.previewThumbnails[e.id]=n.url)}).catch(()=>{})}prefetchThumbnails(){Array.isArray(this.entityDocuments)&&this.entityDocuments.forEach(e=>this.setThumbnail(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-documents-tab"]],viewQuery:function(n,o){if(n&1&&ue(Gle,7),n&2){let r;U(r=$())&&(o.lightboxRoot=r.first)}},inputs:{entityId:"entityId",entityType:"entityType",entityDocuments:"entityDocuments",callbackUpload:"callbackUpload",callbackDelete:"callbackDelete"},decls:10,vars:5,consts:[["lightboxRoot",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center","header-row"],[1,"flex-90"],["class","flex-10",4,"mifosxHasPermission"],[1,"empty-state"],[1,"document-lightbox-host"],[1,"flex-10"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["icon","plus",1,"m-r-10"],[1,"document-grid"],[1,"document-card"],["role","button","tabindex","0",1,"thumb",3,"keydown.enter","keydown.space","click"],["loading","lazy",3,"src","alt","title"],[1,"placeholder"],[1,"preview-overlay"],[1,"card-body"],[1,"title"],[1,"meta"],[1,"description"],[1,"actions"],["mat-icon-button","","color","warn","title","Delete",3,"click",4,"mifosxHasPermission"],["icon","file"],["icon","eye"],["mat-icon-button","","color","warn","title","Delete",3,"click"],["icon","times"],[1,"muted"]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2)(2,"h3",3),y(3),S(4,"translate"),_(),ot(5,Wle,5,3,"div",4),_(),E(6,e1e,4,0,"div")(7,t1e,7,6,"div",5),_(),F(8,"div",6,0)),n&2&&(p(3),T(k(4,3,"labels.heading.Documents")),p(2),D("mifosxHasPermission","CREATE_DOCUMENT"),p(),I(o.entityDocuments!=null&&o.entityDocuments.length?6:7))},dependencies:[he,ve,vt,Ps,Yt,Te],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.tab-container[_ngcontent-%COMP%]{padding:1rem;margin:1rem 0}.header-row[_ngcontent-%COMP%]{display:flex;align-items:center}.document-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.75rem}.document-card[_ngcontent-%COMP%]{width:240px;background:#fff;border:1px solid #bdc3c7;border-radius:4px;overflow:hidden;box-shadow:0 1px 4px #353b3b1f;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}.document-card[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #353b3b24}.thumb[_ngcontent-%COMP%]{position:relative;background:#ecf0f1;min-height:9.5rem;display:flex;align-items:center;justify-content:center;cursor:default}.thumb.clickable[_ngcontent-%COMP%]{cursor:pointer}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.preview-overlay[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;right:.5rem;background:#ffffffe6;border-radius:50%;padding:.4rem;color:#3498db;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease}.thumb[_ngcontent-%COMP%]:hover .preview-overlay[_ngcontent-%COMP%], .thumb[_ngcontent-%COMP%]:focus .preview-overlay[_ngcontent-%COMP%]{opacity:1}.placeholder[_ngcontent-%COMP%]{color:#f5f5f5;text-align:center;padding:.875rem;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}.placeholder[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:22px}.placeholder[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;line-height:1.2}.preview-btn[_ngcontent-%COMP%]{position:absolute;right:.5rem;bottom:.5rem;background:#000000a6;color:#fff}.card-body[_ngcontent-%COMP%]{padding:.75rem .875rem .875rem;display:flex;flex-direction:column;gap:.375rem}.title[_ngcontent-%COMP%]{font-weight:700;color:#353b3b}.meta[_ngcontent-%COMP%]{font-size:12px;color:#7f8c8d}.description[_ngcontent-%COMP%]{font-size:13px;color:#353b3b;min-height:32px}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.375rem;margin-top:.25rem}.empty-state[_ngcontent-%COMP%]{margin-top:.75rem;padding:1.25rem;text-align:center;background:#f5f5f5;border:1px dashed #bdc3c7;border-radius:4px;color:#353b3b;display:flex;flex-direction:column;gap:.5rem;align-items:center}.empty-state[_ngcontent-%COMP%] .muted[_ngcontent-%COMP%]{color:#95a5a6;margin:.25rem 0 0;font-size:.8125rem}.document-lightbox-host[_ngcontent-%COMP%]{display:none}"]})}}return t})();var Lh=class extends nr{constructor(i){super(i),this.controlType="checkbox"}};var Ah=class extends nr{constructor(i={}){super(i),this.controlType="datepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var zh=class extends nr{constructor(i={}){super(i),this.controlType="datetimepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var Rh=class extends nr{constructor(i={}){super(i),this.controlType="input",this.type=i.type||"text"}};var Nh=class extends nr{constructor(i={}){super(i),this.controlType="select",this.options=i.options||{label:"",value:"",data:[]}}};var Fh=(()=>{class t{constructor(){this.dateUtils=d(go),this.settingsService=d(Xt),this.systemFields=["id","created_at","updated_at"],this.entitiesIdFields=["client_id","savings_account_id","savings_transaction_id","loan_id","group_id","center_id","office_id","product_loan_id","savings_product_id","share_product_id"]}getFormfields(e,n,o){return e.map(r=>{switch(r.columnDisplayType){case"INTEGER":case"STRING":case"DECIMAL":case"TEXT":return new Rh({controlName:r.columnName,label:r.columnName,value:"",type:r.columnDisplayType==="INTEGER"||r.columnDisplayType==="DECIMAL"?"number":"text",required:!r.isColumnNullable});case"BOOLEAN":return new Lh({controlName:r.columnName,label:r.columnName,value:"",type:"checkbox",required:!r.isColumnNullable});case"CODELOOKUP":return new Nh({controlName:r.columnName,label:r.columnName,value:"",options:{label:"value",value:"id",data:r.columnValues},required:!r.isColumnNullable});case"DATE":return n.push(r.columnName),o.dateFormat||(o.dateFormat=go.DEFAULT_DATEFORMAT),new Ah({controlName:r.columnName,label:r.columnName,value:"",maxDate:this.settingsService.maxAllowedDate,required:!r.isColumnNullable});case"DATETIME":return n.push(r.columnName),o.dateFormat=go.DEFAULT_DATETIMEFORMAT,new zh({controlName:r.columnName,label:r.columnName,value:"",maxDate:this.settingsService.maxAllowedDate,required:!r.isColumnNullable})}})}isEntityId(e){return this.entitiesIdFields.includes(e)}isSystemColumn(e){return this.systemFields.includes(e)||this.entitiesIdFields.includes(e)}filterSystemColumns(e){return e.filter((n,o)=>{if(!this.isSystemColumn(n.columnName))return n.idx=o,n})}getInputName(e){return e.columnName&&e.columnName.includes("_cd_")?e.columnName.split("_cd_")[0]:e.columnName}isNumeric(e){return this.isColumnType(e,"INTEGER")||this.isColumnType(e,"DECIMAL")}isDate(e){return this.isColumnType(e,"DATE")||this.isColumnType(e,"DATETIME")}isBoolean(e){return this.isColumnType(e,"BOOLEAN")}isDropdown(e){return this.isColumnType(e,"CODELOOKUP")}isString(e){return this.isColumnType(e,"STRING")}isText(e){return this.isColumnType(e,"TEXT")}isColumnType(e,n){return e===n}buildPayload(e,n,o,r){let a=!1;return e.forEach(s=>{let c=this.getInputName(s);this.isNumeric(s.columnDisplayType)?r[s.columnName]=n[c]*1:this.isDate(s.columnDisplayType)?(r[s.columnName]=this.dateUtils.formatDate(n[c],o),a=!0):r[s.columnName]=n[c]}),a&&(r.dateFormat=o),r}isSystemDefined(e){return this.systemFields.includes(e)}getName(e){return e&&e.includes("_cd_")?e.split("_cd_")[0]:e}isValidUrl(e){try{let n=new URL(e);return n.protocol.startsWith("http")||n.protocol.startsWith("https")}catch{return!1}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var n1e=["dataTable"];function i1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",11),N("click",function(){G(e);let o=w();return W(o.add())}),F(2,"fa-icon",12),y(3),S(4,"translate"),_()()}t&2&&(p(3),ne("",k(4,1,"labels.buttons.Add")," "))}function o1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){G(e);let o=w(2);return W(o.deleteSelected())}),F(2,"fa-icon",14),y(3),S(4,"translate"),_()()}t&2&&(p(3),ne(" ",k(4,1,"labels.buttons.Delete Selected")," "))}function r1e(t,i){if(t&1&&(Vi(0),E(1,o1e,5,3,"span"),Bi()),t&2){let e=w();p(),I(e.isSelected?1:-1)}}function a1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){G(e);let o=w(2);return W(o.delete())}),F(2,"fa-icon",14),y(3),S(4,"translate"),_()()}t&2&&(p(3),ne(" ",k(4,1,"labels.buttons.Delete All")," "))}function s1e(t,i){if(t&1&&(Vi(0),E(1,a1e,5,3,"span"),Bi()),t&2){let e=w();p(),I(e.datatableData.length>0?1:-1)}}function c1e(t,i){t&1&&F(0,"th",17)}function l1e(t,i){if(t&1){let e=le();h(0,"td",18)(1,"mat-checkbox",19),N("click",function(o){return G(e),W(o.stopPropagation())})("change",function(o){let r=G(e).$implicit,a=w(3);return W(o?a.itemToggle(r):null)}),_()()}if(t&2){let e=i.$implicit,n=w(3);p(),D("checked",n.selection.isSelected(e))}}function d1e(t,i){t&1&&ot(0,c1e,1,0,"th",15)(1,l1e,2,1,"td",16)}function u1e(t,i){if(t&1&&(h(0,"th",22),y(1),_()),t&2){let e=w(2).$implicit,n=w();p(),T(n.getInputName(e))}}function m1e(t,i){if(t&1&&(h(0,"td",23),y(1),_()),t&2){let e=i.$implicit,n=w(2).$implicit,o=w();D("ngClass",o.isToDelete(e)),p(),ne(" ",o.formatValue(e,n)," ")}}function p1e(t,i){t&1&&ot(0,u1e,2,1,"th",20)(1,m1e,2,2,"td",21)}function f1e(t,i){if(t&1&&(Vi(0,8),E(1,d1e,2,0),E(2,p1e,2,0),Bi()),t&2){let e=i.$implicit,n=i.$index;D("matColumnDef",e),p(),I(n===0?1:-1),p(),I(n>0?2:-1)}}function h1e(t,i){t&1&&F(0,"tr",24)}function g1e(t,i){t&1&&F(0,"tr",25)}var Vh=(()=>{class t{constructor(){this.route=d(ro),this.dateUtils=d(go),this.systemService=d(O2),this.settingsService=d(Xt),this.dialog=d(Wi),this.datatables=d(Fh),this.dateFormat=d(Lo),this.dateTimeFormat=d(ca),this.numberFormat=d(Zd),this.SELECT_NAME_FIELD="select",this.datatableColumns=[],this.isSelected=!1,this.isLoading=!1}ngOnInit(){this.selection=new uo(!0,[]),this.route.params.subscribe(e=>{this.datatableName=e.datatableName}),this.setData(),this.isSelected=!1}ngOnDestroy(){this.resetData()}ngOnChanges(e){this.setData()}setData(){this.datatableColumns=[this.SELECT_NAME_FIELD],this.dataObject.columnHeaders.filter(e=>{if(!this.datatables.isEntityId(e.columnName))return this.datatableColumns.push(e.columnName),e}),this.datatableData=this.dataObject.data,this.dataTableRef&&this.dataTableRef.renderRows()}resetData(){this.datatableName=null,this.datatableColumns=null,this.datatableData=null}getData(){this.isLoading=!0,this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(e=>{this.dataObject.data=e.data,this.showDeleteBotton=!1,this.dataTableRef&&this.setData(),this.isSelected=!1,this.isLoading=!1})}add(){let e={locale:this.settingsService.language.code},n=[],o=this.datatables.filterSystemColumns(this.dataObject.columnHeaders),r=this.datatables.getFormfields(o,n,e),a={title:"Add "+this.datatableName+" for "+this.entityType,formfields:r};this.dialog.open(es,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(m=>{c.data.value[m]=this.dateUtils.formatDate(c.data.value[m],e.dateFormat)}),e=q(q({},c.data.value),e),this.systemService.addEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(m=>{this.getData()}))})}delete(){this.dialog.open(Rr,{data:{deleteContext:`the contents of ${this.datatableName}`}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteDatatableContent(this.entityId,this.datatableName).subscribe(()=>{this.getData()})})}deleteSelected(){this.dialog.open(Rr,{data:{deleteContext:`the ${this.selection.selected.length} items selected of ${this.datatableName}`}}).afterClosed().subscribe(n=>{n.delete?(this.isSelected=!1,this.selection.selected.forEach(o=>{this.systemService.deleteDatatableEntry(this.entityId,o.row[0],this.datatableName).subscribe(()=>{this.datatableData.forEach((r,a)=>{r.row[0]===o.row[0]&&(this.datatableData.splice(a,1),this.dataTableRef.renderRows(),this.selection=new uo(!0,[]),this.isSelected=this.selection.selected.length>0)})})})):(this.selection=new uo(!0,[]),this.isSelected=this.selection.selected.length>0)})}formatValue(e,n){let o="";if(this.dataObject.columnHeaders){let r=0;this.dataObject.columnHeaders.some(a=>{if(a.columnName===n){let s=a.columnDisplayType;return o=e.row[r],s==="DATE"?o=this.dateFormat.transform(o):s==="DATETIME"?o=this.dateTimeFormat.transform(o):(s==="INTEGER"||s==="DECIMAL")&&typeof o=="number"&&(o=this.numberFormat.transform(o)),!0}r+=1})}return o}isAllSelected(){let e=this.selection.selected;return this.datatableData.length===e}isAnySelected(){return this.selection.selected&&this.selection.selected.length>0}masterToggle(e){e.checked?this.datatableData.forEach(n=>this.selection.select(n)):this.selection=new uo(!0,[]),this.isSelected=this.selection.selected.length>0}itemToggle(e){this.selection.toggle(e),this.isSelected=this.selection.selected.length>0}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}isToDelete(e){return this.selection.isSelected(e)?"tobe-deleted":""}getInputName(e){return this.datatables.getName(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-datatable-multi-row"]],viewQuery:function(n,o){if(n&1&&ue(n1e,5),n&2){let r;U(r=$())&&(o.dataTableRef=r.first)}},inputs:{dataObject:"dataObject",entityId:"entityId",entityType:"entityType"},features:[Re],decls:16,vars:7,consts:[["dataTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-7","gap-10px"],[4,"mifosxHasPermission"],[1,"m-t-10"],["mat-table","",1,"mat-elevation-z1","m-b-25",3,"dataSource"],[3,"matColumnDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","warn",1,"delete-button",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],[1,"center",3,"click","change","checked"],["mat-header-cell","","class","right",4,"matHeaderCellDef"],["mat-cell","","class","right",3,"ngClass",4,"matCellDef"],["mat-header-cell","",1,"right"],["mat-cell","",1,"right",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),y(4),_()(),h(5,"div",4),ot(6,i1e,5,3,"span",5)(7,r1e,2,1,"ng-container",5)(8,s1e,2,1,"ng-container",5),_()(),h(9,"div",6)(10,"table",7,0),Xe(12,f1e,3,3,"ng-container",8,ht),ot(14,h1e,1,0,"tr",9)(15,g1e,1,0,"tr",10),_()()()),n&2&&(p(4),T(o.datatableName),p(2),D("mifosxHasPermission","CREATE_"+o.datatableName),p(),D("mifosxHasPermission","DELETE_"+o.datatableName),p(),D("mifosxHasPermission","DELETE_"+o.datatableName),p(2),D("dataSource",o.datatableData),p(2),Ze(o.datatableColumns),p(2),D("matHeaderRowDef",o.datatableColumns),p(),D("matRowDefColumns",o.datatableColumns))},dependencies:[he,Un,ve,vt,il,Ps,Yt,ph,gh,hh,_h,fh,bh,vh,Ch,yh,xh,Te],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tobe-deleted[_ngcontent-%COMP%]{text-decoration:line-through;color:#f39c12}"]})}}return t})();function _1e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){G(e);let o=w();return W(o.add())}),F(1,"fa-icon",6),y(2),S(3,"translate"),_()}t&2&&(p(2),ne("",k(3,1,"labels.buttons.Add")," "))}function b1e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){G(e);let o=w();return W(o.edit())}),F(1,"fa-icon",7),y(2),S(3,"translate"),_()}t&2&&(p(2),ne("",k(3,1,"labels.buttons.Edit")," "))}function v1e(t,i){if(t&1){let e=le();h(0,"button",8),N("click",function(){G(e);let o=w();return W(o.delete())}),F(1,"fa-icon",9),y(2),S(3,"translate"),_()}t&2&&(p(2),ne("",k(3,1,"labels.buttons.Delete")," "))}function y1e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"dateFormat"),_()),t&2){let e=w().$index,n=w(2);p(),ne(" ",k(2,1,n.dataObject.data[0].row[e])," ")}}function C1e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"datetimeFormat"),_()),t&2){let e=w().$index,n=w(2);p(),ne(" ",k(2,1,n.dataObject.data[0].row[e])," ")}}function x1e(t,i){if(t&1&&(h(0,"span"),y(1),_()),t&2){let e=w().$index,n=w(2);p(),ne(" ",n.dataObject.data[0].row[e]," ")}}function M1e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"formatNumber"),_()),t&2){let e=w().$index,n=w(2);p(),ne(" ",k(2,1,n.dataObject.data[0].row[e])," ")}}function w1e(t,i){if(t&1&&(h(0,"span",13),y(1),_()),t&2){let e=w().$index,n=w(2);p(),ne(" ",n.dataObject.data[0].row[e]," ")}}function D1e(t,i){if(t&1&&(h(0,"textarea",14),S(1,"prettyPrint"),y(2," "),_()),t&2){let e=w().$index,n=w(2);D("innerHTML",k(1,1,n.dataObject.data[0].row[e].value),jc)}}function S1e(t,i){if(t&1){let e=le();h(0,"span",15)(1,"button",16),S(2,"translate"),N("click",function(){G(e);let o=w(2).$index,r=w(2);return W(r.openSite(r.dataObject.data[0].row[o]))}),F(3,"fa-icon",17),_()()}t&2&&(p(),D("matTooltip",Ft(k(2,2,"tooltips.View Link"))))}function k1e(t,i){if(t&1&&(h(0,"span"),E(1,S1e,4,4,"span",15),y(2),_()),t&2){let e=w().$index,n=w(2);p(),I(n.isValidUrl(n.dataObject.data[0].row[e])?1:-1),p(),ne(" ",n.dataObject.data[0].row[e]," ")}}function E1e(t,i){if(t&1&&(h(0,"div",10)(1,"div",11),y(2),_(),h(3,"div",12),E(4,y1e,3,3,"span")(5,C1e,3,3,"span")(6,x1e,2,1,"span")(7,M1e,3,3,"span")(8,w1e,2,1,"span",13)(9,D1e,3,3,"textarea",14)(10,k1e,3,2,"span"),_()()),t&2){let e,n=i.$implicit,o=w(2);D("ngClass",o.setAttributeClass(n.columnName)),p(2),Dt(" ",n.columnDisplayName," ",o.getInputName(n.columnName)," "),p(2),I((e=o.getColumnType(n.columnDisplayType,n.columnType))==="DATE"?4:e==="DATETIME"?5:e==="INTEGER"?6:e==="DECIMAL"?7:e==="TEXT"?8:e==="JSON"?9:10)}}function I1e(t,i){if(t&1&&(h(0,"div",4),Xe(1,E1e,11,4,"div",10,ht),_()),t&2){let e=w();p(),Ze(e.dataObject.columnHeaders)}}var Bh=(()=>{class t{constructor(){this.route=d(ro),this.dateUtils=d(go),this.dialog=d(Wi),this.settingsService=d(Xt),this.datatables=d(Fh),this.systemService=d(O2)}ngOnInit(){this.route.params.subscribe(e=>{this.datatableName=e.datatableName})}add(){let e={locale:this.settingsService.language.code},n=[],o=this.datatables.filterSystemColumns(this.dataObject.columnHeaders),r=this.datatables.getFormfields(o,n,e),a={title:"Add "+this.datatableName+" for "+this.entityType,formfields:r};this.dialog.open(es,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(m=>{c.data.value[m]=this.dateUtils.formatDate(c.data.value[m],e.dateFormat)}),e=q(q({},c.data.value),e),this.systemService.addEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(m=>{this.dataObject=m})}))})}edit(){let e={locale:this.settingsService.language.code},n=[],o=this.datatables.filterSystemColumns(this.dataObject.columnHeaders),r=this.datatables.getFormfields(o,n,e);r=r.map((c,m)=>(c.controlType==="datepicker"?c.value=this.dataObject.data[0].row[o[m].idx]?this.dateUtils.parseDate(this.dataObject.data[0].row[o[m].idx]):"":c.controlType==="datetimepicker"?c.value=this.dataObject.data[0].row[o[m].idx]?this.dateUtils.parseDatetime(this.dataObject.data[0].row[o[m].idx]):"":c.value=this.dataObject.data[0].row[o[m].idx]?this.dataObject.data[0].row[o[m].idx]:"",c));let a={title:"Edit "+this.datatableName+" for "+this.entityType,formfields:r,layout:{addButtonText:"Save"}};this.dialog.open(es,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(m=>{c.data.value[m]=this.dateUtils.formatDate(c.data.value[m],e.dateFormat)}),e=q(q({},c.data.value),e),this.systemService.editEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(m=>{this.dataObject=m})}))})}delete(){this.dialog.open(Rr,{data:{deleteContext:` the contents of ${this.datatableName}`}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteDatatableContent(this.entityId,this.datatableName).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(o=>{this.dataObject=o})})})}setAttributeClass(e){return this.datatables.isSystemDefined(e)?"system-defined":"table-data"}getColumnType(e,n){switch(e){case"DATE":return e;case"DATETIME":return e;case"INTEGER":return e;case"DECIMAL":return e;case"TEXT":return n==="JSON"?"JSON":e;default:return e}}getInputName(e){return this.datatables.getName(e)}isValidUrl(e){return this.datatables.isValidUrl(e)}openSite(e){window.open(e,"_blank")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-datatable-single-row"]],inputs:{dataObject:"dataObject",entityId:"entityId",entityType:"entityType"},decls:9,vars:5,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","align-end","m-b-20"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","warn",1,"delete-button"],[1,"m-t-10"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",1,"delete-button",3,"click"],["icon","trash",1,"m-r-10"],[1,"flex-fill",3,"ngClass"],[1,"mat-body-strong","left","flex-40"],[1,"right","flex-60"],[1,"long-text"],["cdkTextareaAutosize","true","cdkAutosizeMaxRows","20","cdkAutosizeMinRows","1",1,"json-textarea",3,"innerHTML"],[1,"m-r-5"],["mat-icon-button","","matTooltipPosition","right",1,"small-icon",3,"click","matTooltip"],["icon","eye","size","lg"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"h3"),y(2),_(),h(3,"div",1),E(4,_1e,4,3,"button",2),E(5,b1e,4,3,"button",2),E(6,v1e,4,3,"button",3),_(),F(7,"mat-divider"),E(8,I1e,3,0,"div",4),_()),n&2&&(p(2),T(o.datatableName),p(2),I(o.dataObject.data[0]?-1:4),p(),I(o.dataObject.data[0]?5:-1),p(),I(o.dataObject.data[0]?6:-1),p(2),I(o.dataObject.data.length>0?8:-1))},dependencies:[he,Un,ve,vt,Yt,rc,nf,ni,mo,Lo,Te,ca,Ts,Ym],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}.table-name[_ngcontent-%COMP%]{padding-left:2%}.table-data[_ngcontent-%COMP%]{margin-top:3px}.system-defined[_ngcontent-%COMP%]{margin-top:3px;color:#4461e2!important;font-weight:100}.long-text[_ngcontent-%COMP%]{word-break:break-all;white-space:normal}.small-icon[_ngcontent-%COMP%]{width:30px;height:30px}.json-textarea[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();function O1e(t,i){if(t&1&&F(0,"mifosx-datatable-multi-row",0),t&2){let e=w();D("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}function T1e(t,i){if(t&1&&F(0,"mifosx-datatable-single-row",0),t&2){let e=w();D("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}var NR=(()=>{class t{constructor(){this.multiRowDatatableFlag=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-datatable-tab"]],inputs:{multiRowDatatableFlag:"multiRowDatatableFlag",entityDatatable:"entityDatatable",entityType:"entityType",entityId:"entityId"},decls:3,vars:2,consts:[[3,"entityType","entityId","dataObject"]],template:function(n,o){n&1&&(h(0,"div"),E(1,O1e,1,3,"mifosx-datatable-multi-row",0),E(2,T1e,1,3,"mifosx-datatable-single-row",0),_()),n&2&&(p(),I(o.multiRowDatatableFlag?1:-1),p(),I(o.multiRowDatatableFlag?-1:2))},dependencies:[he,ve,Vh,Bh],encapsulation:2})}}return t})();var FR=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-svg-icon"]],inputs:{iconFile:"iconFile",iconName:"iconName",iconClass:"iconClass",iconWidth:"iconWidth"},decls:2,vars:4,consts:[["preserveAspectRatio","xMidYMid meet",1,"icon",3,"ngClass"]],template:function(n,o){n&1&&($t(),h(0,"svg",0),F(1,"use"),_()),n&2&&(At("width",o.iconWidth,"px"),D("ngClass",o.iconClass),p(),te("href","assets/images/icons_"+o.iconFile+".svg#"+o.iconName,null,"xlink"))},dependencies:[he,Un,ve],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.icon[_ngcontent-%COMP%]{flex:1}.chargeoff[_ngcontent-%COMP%]{color:#ffa726}"]})}}return t})();function P1e(t,i){t&1&&(h(0,"span"),y(1),S(2,"translate"),_()),t&2&&(p(),T(k(2,1,"labels.inputs.Credit")))}function L1e(t,i){t&1&&(h(0,"span"),y(1),S(2,"translate"),_()),t&2&&(p(),T(k(2,1,"labels.inputs.Debit")))}function A1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Reference Number")),p(3),T(e.data.journalEntry.referenceNumber)}}function z1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Comments")),p(3),T(e.data.journalEntry.comments)}}function R1e(t,i){t&1&&(h(0,"tr")(1,"th",4),y(2),S(3,"translate"),_()()),t&2&&(p(2),T(k(3,1,"labels.inputs.Payment Details")))}function N1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Payment Type")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.paymentType.name)}}function F1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Account Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.accountNumber)}}function V1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Cheque Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.checkNumber)}}function B1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Routing Code")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.routingCode)}}function j1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Receipt Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)}}function H1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Bank Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.bankNumber)}}function U1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=w();p(2),T(k(3,2,"labels.inputs.Created by")),p(3),T(e.data.journalEntry.createdByUserName)}}var jh=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.existsPaymentDetails=!1;let e=this.data;this.existsPaymentDetails=e.journalEntry.transactionDetails!=null&&e.journalEntry.transactionDetails.paymentDetails!=null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-view-journal-entry"]],decls:82,vars:63,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-button","","mat-dialog-close",""],["colspan","2",1,"header"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"table")(5,"tr")(6,"th"),y(7),S(8,"translate"),_(),h(9,"td"),y(10),_()(),h(11,"tr")(12,"th"),y(13),S(14,"translate"),_(),h(15,"td"),y(16),_()(),h(17,"tr")(18,"th"),y(19),S(20,"translate"),_(),h(21,"td"),y(22),_()(),h(23,"tr")(24,"th"),y(25),S(26,"translate"),_(),h(27,"td"),y(28),S(29,"dateFormat"),_()(),h(30,"tr")(31,"th"),y(32),S(33,"translate"),_(),h(34,"td"),y(35),_()(),h(36,"tr")(37,"th"),y(38),S(39,"translate"),_(),h(40,"td"),y(41),_()(),h(42,"tr")(43,"th"),y(44),S(45,"translate"),_(),h(46,"td"),y(47),_()(),h(48,"tr")(49,"th"),E(50,P1e,3,3,"span"),E(51,L1e,3,3,"span"),_(),h(52,"td"),y(53),S(54,"formatNumber"),_()(),h(55,"tr")(56,"th"),y(57),S(58,"translate"),_(),h(59,"td"),y(60),_()(),E(61,A1e,6,4,"tr"),E(62,z1e,6,4,"tr"),E(63,R1e,4,3,"tr"),E(64,N1e,6,4,"tr"),E(65,F1e,6,4,"tr"),E(66,V1e,6,4,"tr"),E(67,B1e,6,4,"tr"),E(68,j1e,6,4,"tr"),E(69,H1e,6,4,"tr"),E(70,U1e,6,4,"tr"),h(71,"tr")(72,"th"),y(73),S(74,"translate"),_(),h(75,"td"),y(76),S(77,"datetimeFormat"),_()()()(),h(78,"mat-dialog-actions",2)(79,"button",3),y(80),S(81,"translate"),_()()),n&2&&(p(),T(k(2,35,"labels.heading.View Journal Entry")),p(6),T(k(8,37,"labels.inputs.Office")),p(3),T(o.data.journalEntry.officeName),p(3),T(k(14,39,"labels.inputs.Entry ID")),p(3),T(o.data.journalEntry.id),p(3),T(k(20,41,"labels.inputs.Transaction ID")),p(3),T(o.data.journalEntry.transactionId),p(3),T(k(26,43,"labels.inputs.Transaction Date")),p(3),T(k(29,45,o.data.journalEntry.transactionDate)),p(4),T(k(33,47,"labels.inputs.Type")),p(3),T(o.data.journalEntry.glAccountType.value),p(3),T(k(39,49,"labels.inputs.Account Code")),p(3),T(o.data.journalEntry.glAccountId),p(3),T(k(45,51,"labels.inputs.Account Name")),p(3),T(o.data.journalEntry.glAccountName),p(3),I(o.data.journalEntry.entryType.value==="CREDIT"?50:-1),p(),I(o.data.journalEntry.entryType.value==="DEBIT"?51:-1),p(2),Dt("",o.data.journalEntry.currency.displaySymbol," ",k(54,53,o.data.journalEntry.amount)),p(4),T(k(58,55,"labels.inputs.Currency")),p(3),Dt("(",o.data.journalEntry.currency.code,") ",o.data.journalEntry.currency.name),p(),I(o.data.journalEntry.referenceNumber?61:-1),p(),I(o.data.journalEntry.comments?62:-1),p(),I(o.existsPaymentDetails?63:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.paymentType)?64:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.accountNumber)?65:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.checkNumber)?66:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.routingCode)?67:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)?68:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.bankNumber)?69:-1),p(),I(o.existsPaymentDetails?70:-1),p(3),T(k(74,57,"labels.inputs.Submitted on")),p(3),T(k(77,59,o.data.journalEntry.submittedOnDate)),p(4),T(k(81,61,"labels.buttons.Close")))},dependencies:[he,ve,vt,xn,An,zn,Ln,Lo,Te,ca,Ts],styles:["table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;font-weight:500;padding:0 .4rem 0 0}table[_ngcontent-%COMP%] th.header[_ngcontent-%COMP%]{text-align:center;padding:.4rem .4rem 0 0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0 .4rem 0 0}"]})}}return t})();var $1e=t=>({revert:!0,comments:t}),G1e=()=>({redirect:!0});function W1e(t,i){if(t&1&&(h(0,"div")(1,"h1",0),y(2),S(3,"translate"),_(),h(4,"div",1)(5,"p"),y(6),S(7,"translate"),_(),h(8,"mat-form-field",2)(9,"mat-label"),y(10),S(11,"translate"),_(),F(12,"textarea",3),_()(),h(13,"mat-dialog-actions",4)(14,"button",5),y(15),S(16,"translate"),_(),h(17,"button",6),y(18),S(19,"translate"),_()()()),t&2){let e=w();p(2),T(k(3,7,"labels.heading.Revert Transaction")),p(4),T(k(7,9,"labels.text.Revert this transaction?")),p(4),T(k(11,11,"labels.inputs.Comments")),p(2),D("formControl",e.comments),p(3),T(k(16,13,"labels.buttons.No")),p(2),D("mat-dialog-close",Eo(17,$1e,e.comments.value)),p(),ne(" ",k(19,15,"labels.buttons.Yes")," ")}}function q1e(t,i){if(t&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"h4"),y(5),S(6,"translate"),_(),h(7,"p"),y(8),S(9,"translate"),_(),h(10,"p"),y(11),S(12,"translate"),_()(),h(13,"mat-dialog-actions",4)(14,"button",5),y(15),S(16,"translate"),_(),h(17,"button",6),y(18),S(19,"translate"),_()()),t&2){let e=w();p(),T(k(2,8,"labels.heading.Transaction Reverted")),p(4),T(k(6,10,"labels.heading.Success!")),p(3),T(k(9,12,"labels.text.Journal entry reverse transaction")),p(3),Dt("",k(12,14,"labels.text.Transaction ID"),": ",e.data.transactionId),p(4),T(k(16,16,"labels.buttons.Close")),p(2),D("mat-dialog-close",ko(20,G1e)),p(),ne(" ",k(19,18,"labels.buttons.Redirect to New Transaction")," ")}}var VR=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.comments=new Hi("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-revert-transaction"]],decls:2,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-fill"],["matInput","",3,"formControl"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","",3,"mat-dialog-close"]],template:function(n,o){n&1&&E(0,W1e,20,19,"div")(1,q1e,20,21),n&2&&I(o.data.reverted?1:0)},dependencies:[he,ve,yi,mn,Si,Bt,Cn,ti,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var BR=(()=>{class t{constructor(){this.http=d(Bn)}getOffices(){let e=new ee().set("orderBy","id");return this.http.get("/offices",{params:e})}getAccountingRules(e=!1){let n=new ee;return e&&(n=n.set("associations","all")),this.http.get("/accountingrules",{params:n})}getCurrencies(){return this.http.get("/currencies")}getPaymentTypes(){return this.http.get("/paymenttypes")}createJournalEntry(e){return this.http.post("/journalentries",e)}getGlAccounts(){let e=new ee().set("manualEntriesAllowed","true").set("usage","1").set("disabled","false");return this.http.get("/glaccounts",{params:e})}getJournalEntry(e){let n=new ee().set("transactionId",e).set("transactionDetails","true");return this.http.get("/journalentries",{params:n})}getJournalEntries(e,n,o,r,a){let s=new ee().set("offset",r.toString()).set("limit",a.toString()).set("sortOrder",o).set("orderBy",n);return e.forEach(function(c){c.value&&(s=s.set(c.type,c.value))}),this.http.get("/journalentries",{params:s})}revertTransaction(e,n){let o=new ee().set("command","reverse"),r={};return n&&(r={comments:n}),this.http.post(`/journalentries/${e}`,r,{params:o})}getFinancialActivityAccounts(){return this.http.get("/financialactivityaccounts")}getFinancialActivityAccountsTemplate(){return this.http.get("/financialactivityaccounts/template")}createFinancialActivityAccount(e){return this.http.post("/financialactivityaccounts",e)}getFinancialActivityAccount(e,n=!1){let o=new ee().set("template",n.toString());return this.http.get(`/financialactivityaccounts/${e}`,{params:o})}updateFinancialActivityAccount(e,n){return this.http.put(`/financialactivityaccounts/${e}`,n)}deleteFinancialActivityAccount(e){return this.http.delete(`/financialactivityaccounts/${e}`)}retrieveOpeningBalances(e){let n=new ee().set("officeId",e);return this.http.get("/journalentries/openingbalance",{params:n})}defineOpeningBalances(e){let n=new ee().set("command","defineOpeningBalance");return this.http.post("/journalentries",e,{params:n})}getChartOfAccounts(){return this.http.get("/glaccounts")}getChartOfAccountsTemplate(){return this.http.get("/glaccounts/template")}createGlAccount(e){return this.http.post("/glaccounts",e)}getGlAccount(e,n=!1){let o=new ee().set("template",n.toString());return this.http.get(`/glaccounts/${e}`,{params:o})}updateGlAccount(e,n){return this.http.put(`/glaccounts/${e}`,n)}deleteGlAccount(e){return this.http.delete(`/glaccounts/${e}`)}getAccountingClosures(){return this.http.get("/glclosures")}createAccountingClosure(e){return this.http.post("/glclosures",e)}getAccountingClosure(e){return this.http.get(`/glclosures/${e}`)}updateAccountingClosure(e,n){return this.http.put(`/glclosures/${e}`,n)}deleteAccountingClosure(e){return this.http.delete(`/glclosures/${e}`)}getAccountingRulesTemplate(){return this.http.get("/accountingrules/template")}createAccountingRule(e){return this.http.post("/accountingrules",e)}getAccountingRule(e){return this.http.get(`/accountingrules/${e}`)}updateAccountingRule(e,n){return this.http.put(`/accountingrules/${e}`,n)}deleteAccountingRule(e){return this.http.delete(`/accountingrules/${e}`)}executePeriodicAccruals(e){return this.http.post("/runaccruals",e)}getProvisioningEntries(){return this.http.get("/provisioningentries")}createProvisioningEntry(e){return this.http.post("/provisioningentries",e)}getProvisioningEntry(e){return this.http.get(`/provisioningentries/${e}`)}getLoanProducts(){return this.http.get("/loanproducts")}getProvisioningCategories(){return this.http.get("/provisioningcategory")}getProvisioningEntryEntries(e){let n=new ee().set("entryId",e);return this.http.get("/provisioningentries/entries",{params:n})}getProvisioningJournalEntries(e){let n=new ee().set("entryId",e);return this.http.get("/journalentries/provisioning",{params:n})}createProvisioningJournalEntries(e){let n=new ee().set("command","createjournalentry");return this.http.post(`/provisioningentries/${e}`,{},{params:n})}recreateProvisioningEntries(e){let n=new ee().set("command","recreateprovisioningentry");return this.http.post(`/provisioningentries/${e}`,{},{params:n})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Y1e(t,i){t&1&&(h(0,"span"),F(1,"fa-icon",18),y(2),S(3,"translate"),_()),t&2&&(p(2),ne("",k(3,1,"labels.buttons.Revert Transaction")," "))}function Q1e(t,i){t&1&&(h(0,"span"),y(1),S(2,"translate"),_()),t&2&&(p(),T(k(2,1,"labels.buttons.Transaction Reverted")))}function K1e(t,i){if(t&1){let e=le();h(0,"button",17),N("click",function(){G(e);let o=w(3);return W(o.revertTransaction())}),E(1,Y1e,4,3,"span"),E(2,Q1e,3,3,"span"),_()}if(t&2){let e=w(3);D("disabled",e.dataSource==null?null:e.dataSource.data[0].reversed),p(),I(e.dataSource.data[0].reversed?-1:1),p(),I(e.dataSource.data[0].reversed?2:-1)}}function X1e(t,i){t&1&&(h(0,"div",1),ot(1,K1e,3,3,"button",16),_()),t&2&&(p(),D("mifosxHasPermission","REVERSE_JOURNALENTRY"))}function Z1e(t,i){t&1&&(h(0,"div",21),y(1),S(2,"translate"),_()),t&2&&(p(),ne(" ",k(2,1,"labels.inputs.External Asset Owner")," "))}function J1e(t,i){if(t&1&&(h(0,"div",22),y(1),_()),t&2){let e=w(4);p(),ne(" ",e.dataSource.data[0].externalAssetOwner," ")}}function e2e(t,i){if(t&1&&(h(0,"mat-card",19)(1,"mat-card-content")(2,"div",20)(3,"div",21),y(4),S(5,"translate"),_(),h(6,"div",22),y(7),_(),h(8,"div",21),y(9),S(10,"translate"),_(),h(11,"div",22),y(12),S(13,"dateFormat"),_(),h(14,"div",21),y(15),S(16,"translate"),_(),h(17,"div",22),y(18),_(),h(19,"div",21),y(20),S(21,"translate"),_(),h(22,"div",22),y(23),S(24,"datetimeFormat"),_(),h(25,"div",21),y(26),S(27,"translate"),_(),h(28,"div",22),y(29),S(30,"yesNo"),_(),E(31,Z1e,3,3,"div",21),E(32,J1e,2,1,"div",22),_()()()),t&2){let e=w(3);D("ngClass",Ft(e.journalEntryColor())),p(4),ne(" ",k(5,14,"labels.inputs.Office")," "),p(3),ne(" ",e.dataSource.data[0].officeName," "),p(2),ne(" ",k(10,16,"labels.inputs.Transaction Date")," "),p(3),ne(" ",k(13,18,e.dataSource.data[0].transactionDate)," "),p(3),ne(" ",k(16,20,"labels.inputs.Created By")," "),p(3),ne(" ",e.dataSource.data[0].createdByUserName," "),p(2),ne(" ",k(21,22,"labels.inputs.Submitted on")," "),p(3),ne(" ",k(24,24,e.dataSource.data[0].submittedOnDate)," "),p(3),ne(" ",k(27,26,"labels.inputs.Manual Journal Entry")," "),p(3),ne(" ",k(30,28,e.dataSource.data[0].manualEntry)," "),p(2),I(e.dataSource.data[0].externalAssetOwner?31:-1),p(),I(e.dataSource.data[0].externalAssetOwner?32:-1)}}function t2e(t,i){if(t&1&&(h(0,"div",0),E(1,e2e,33,30,"mat-card",19),_()),t&2){let e=w(2);p(),I(e.dataSource?1:-1)}}function n2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ne(" ",k(2,1,"labels.inputs.Entry ID")," "))}function i2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.id)}}function o2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ne(" ",k(2,1,"labels.inputs.Type")," "))}function r2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountType.value)}}function a2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ne(" ",k(2,1,"labels.inputs.Account Code")," "))}function s2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountCode)}}function c2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ne(" ",k(2,1,"labels.inputs.Account Name")," "))}function l2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountName)}}function d2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ne(" ",k(2,1,"labels.inputs.Debit")," "))}function u2e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"formatNumber"),_()),t&2){let e=w().$implicit;p(),Dt(" ",e.currency.displaySymbol||e.currency.code," ",k(2,2,e.amount)," ")}}function m2e(t,i){if(t&1&&(h(0,"td",24),E(1,u2e,3,4,"span"),_()),t&2){let e=i.$implicit;p(),I(e.entryType.value==="DEBIT"?1:-1)}}function p2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ne(" ",k(2,1,"labels.inputs.Credit")," "))}function f2e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"formatNumber"),_()),t&2){let e=w().$implicit;p(),Dt(" ",e.currency.displaySymbol||e.currency.code," ",k(2,2,e.amount)," ")}}function h2e(t,i){if(t&1&&(h(0,"td",24),E(1,f2e,3,4,"span"),_()),t&2){let e=i.$implicit;p(),I(e.entryType.value==="CREDIT"?1:-1)}}function g2e(t,i){t&1&&F(0,"tr",25)}function _2e(t,i){if(t&1){let e=le();h(0,"tr",26),N("click",function(){let o=G(e).$implicit,r=w(2);return W(r.viewJournalEntry(o))}),_()}}function b2e(t,i){if(t&1){let e=le();h(0,"div"),E(1,X1e,2,1,"div",1),E(2,t2e,2,1,"div",0),h(3,"div",2)(4,"table",3),Vi(5,4),ot(6,n2e,3,3,"th",5)(7,i2e,2,1,"td",6),Bi(),Vi(8,7),ot(9,o2e,3,3,"th",5)(10,r2e,2,1,"td",6),Bi(),Vi(11,8),ot(12,a2e,3,3,"th",5)(13,s2e,2,1,"td",6),Bi(),Vi(14,9),ot(15,c2e,3,3,"th",5)(16,l2e,2,1,"td",6),Bi(),Vi(17,10),ot(18,d2e,3,3,"th",5)(19,m2e,2,1,"td",6),Bi(),Vi(20,11),ot(21,p2e,3,3,"th",5)(22,h2e,2,1,"td",6),Bi(),ot(23,g2e,1,0,"tr",12)(24,_2e,1,0,"tr",13),_(),h(25,"div",14)(26,"button",15),N("click",function(){G(e);let o=w();return W(o.goBack())}),y(27),S(28,"translate"),_()()()()}if(t&2){let e=w();p(),I(e.dataSource!=null&&e.dataSource.data[0].manualEntry?1:-1),p(),I(e.isViewTransaction()?2:-1),p(2),D("dataSource",e.dataSource),p(19),D("matHeaderRowDef",e.displayedColumns),p(),D("matRowDefColumns",e.displayedColumns),p(3),ne(" ",k(28,6,"labels.buttons.Back")," ")}}function v2e(t,i){if(t&1){let e=le();h(0,"div",0)(1,"div",27)(2,"div",28),F(3,"i",29),y(4),S(5,"translate"),_()(),h(6,"div",14)(7,"button",15),N("click",function(){G(e);let o=w();return W(o.goBack())}),y(8),S(9,"translate"),_()()()}t&2&&(p(4),ne(" ",k(5,2,"labels.text.No data found")," "),p(4),ne(" ",k(9,4,"labels.buttons.Back")," "))}var jR=(()=>{class t{constructor(){this.accountingService=d(BR),this.route=d(ro),this.router=d(bo),this.dialog=d(Wi),this.location=d(Jo),this.displayedColumns=["id","glAccountType","glAccountCode","glAccountName","debit","credit"],this.isJournalEntryLoaded=!1,this.isManualJournalEntry=!1}ngOnInit(){this.route.data.subscribe(e=>{this.title=e.title,this.isJournalEntryLoaded=!1,this.isViewTransaction()?(this.transaction=e.transaction,e.transaction.pageItems.length>0&&(this.isJournalEntryLoaded=!0,this.transactionId=e.transaction.pageItems[0].transactionId,this.isManualJournalEntry=e.transaction.pageItems[0].manualEntry)):this.isViewTransfer()&&(this.journalEntriesData=e.transferJournalEntryData.journalEntryData.content,this.isJournalEntryLoaded=!0),this.setTransaction()})}isViewTransaction(){return this.title==="View Transaction"}isViewTransfer(){return this.title==="View Transfer"}setTransaction(){this.journalEntriesData!=null?this.dataSource=new Eu(this.journalEntriesData):(this.dataSource=new Eu(this.transaction.pageItems),this.dataSource.sortingDataAccessor=(e,n)=>{switch(n){case"glAccountType":return e.glAccountType.value;case"debit":return e.amount;case"credit":return e.amount;default:return e[n]}}),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}viewJournalEntry(e){this.dialog.open(jh,{data:{journalEntry:e}})}revertTransaction(e){this.dialog.open(VR,{data:{reverted:this.dataSource.data[0].reversed,transactionId:e}}).afterClosed().subscribe(o=>{o.revert?this.accountingService.revertTransaction(this.transactionId,o.comments).subscribe(r=>{this.dataSource.data[0].reversed=!0,this.revertTransaction(r.transactionId)}):o.redirect&&this.router.navigate(["../",e],{relativeTo:this.route})})}goBack(){this.location.back()}journalEntryColor(){return this.isManualJournalEntry?"manual-entry":""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-view-journal-entry-transaction"]],viewQuery:function(n,o){if(n&1&&(ue(wb,7),ue(oh,7)),n&2){let r;U(r=$())&&(o.paginator=r.first),U(r=$())&&(o.sort=r.first)}},decls:2,vars:2,consts:[[1,"container","m-b-20"],[1,"layout-row","layout-align-end","container","m-b-20"],[1,"mat-elevation-z8","container","layout-align-center","layout-row-wrap"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glAccountType"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["matColumnDef","debit"],["matColumnDef","credit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],[1,"layout-row","layout-align-center","m-t-15","m-b-15","gap-5px","layout-xs-column"],["type","button","color","primary","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","undo",1,"m-r-10"],[1,"mat-elevation-z8",3,"ngClass"],[1,"layout-row-wrap"],[1,"flex-25","header"],[1,"flex-25"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,o){n&1&&(E(0,b2e,29,8,"div"),E(1,v2e,10,6,"div",0)),n&2&&(I(o.isJournalEntryLoaded?0:-1),p(),I(o.isJournalEntryLoaded?-1:1))},dependencies:[he,Un,ve,LE,AE,vt,Ps,Yt,ph,oh,gh,hh,_h,Bz,fh,bh,vh,Ch,yh,xh,Lo,Te,ca,Ts,Km],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.manual-entry[_ngcontent-%COMP%]{background-color:#d7e3ff}"]})}}return t})();function y2e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=w();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}function C2e(t,i){if(t&1&&(h(0,"span",1)(1,"a",5),y(2),_()()),t&2){let e=w();p(),D("href",Ft(e.getAccountLink()),_1),p(),T(e.accountNo)}}function x2e(t,i){if(t&1&&(h(0,"span",1),y(1),_()),t&2){let e=w();p(),T(e.accountNo)}}function M2e(t,i){if(t&1){let e=le();h(0,"span",6),N("click",function(){G(e);let o=w();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}var HR=(()=>{class t{constructor(){this.clipboard=d(N2),this.display="right",this.clientId=null,this.accountId=null,this.accountType=null,this.iconVisible=!1,this.displayL=!1,this.displayR=!0}ngOnInit(){this.displayL=this.display==="left",this.displayR=this.display==="right"}copyValue(){this.clipboard.copy(this.accountNo)}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}getAccountLink(){return this.accountType?`/#/clients/${this.clientId}/${this.getAccountType()}/${this.accountId}`:""}getAccountType(){if(this.accountType==="1")return"loan-accounts";if(this.accountType==="2")return"savings-accounts"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-account-number"]],inputs:{accountNo:"accountNo",display:"display",clientId:"clientId",accountId:"accountId",accountType:"accountType"},decls:5,vars:4,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-5"],[1,"m-l-3"],[1,"m-l-5",3,"click"],["icon","copy","size","sm",3,"title"],[3,"href"],[1,"m-l-3",3,"click"]],template:function(n,o){n&1&&(h(0,"span",0),N("mouseenter",function(){return o.mouseEnter()})("mouseleave",function(){return o.mouseLeave()}),E(1,y2e,4,4,"span",1),E(2,C2e,3,3,"span",1),E(3,x2e,2,1,"span",1),E(4,M2e,4,4,"span",2),_()),n&2&&(p(),I(o.displayL&&o.iconVisible?1:-1),p(),I(o.accountType?2:-1),p(),I(o.accountType?-1:3),p(),I(o.displayR&&o.iconVisible?4:-1))},dependencies:[he,ve,Yt,Te],encapsulation:2})}}return t})();function w2e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=w();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}function D2e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=w();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}var UR=(()=>{class t{constructor(){this.clipboard=d(N2),this.display="right",this.iconVisible=!1,this.displayL=!1,this.displayR=!0}ngOnInit(){this.displayL=this.display==="left",this.displayR=this.display==="right"}copyValue(){this.clipboard.copy(this.entityName)}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-name"]],inputs:{entityName:"entityName",display:"display"},decls:6,vars:3,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-5"],[1,"m-l-3"],[1,"m-l-5",3,"click"],["icon","copy","size","sm",3,"title"],[1,"m-l-3",3,"click"]],template:function(n,o){n&1&&(h(0,"span",0),N("mouseenter",function(){return o.mouseEnter()})("mouseleave",function(){return o.mouseLeave()}),E(1,w2e,4,4,"span",1),h(2,"span",1)(3,"b"),y(4),_()(),E(5,D2e,4,4,"span",2),_()),n&2&&(p(),I(o.displayL&&o.iconVisible?1:-1),p(3),T(o.entityName),p(),I(o.displayR&&o.iconVisible?5:-1))},dependencies:[he,ve,Yt,Te],encapsulation:2})}}return t})();function S2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=w(2);p(2),T(k(3,2,"labels.inputs.Account No")),p(3),T(e.paymentDetailData.accountNumber)}}function k2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=w(2);p(2),T(k(3,2,"labels.inputs.Cheque Number")),p(3),T(e.paymentDetailData.checkNumber)}}function E2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td",4),y(5),rt()()),t&2){let e=w(2);p(2),T(k(3,2,"labels.inputs.Routing Code")),p(3),T(e.paymentDetailData.routingCode)}}function I2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=w(2);p(2),T(k(3,2,"labels.inputs.Receipt No")),p(3),T(e.paymentDetailData.receiptNumber)}}function O2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=w(2);p(2),T(k(3,2,"labels.inputs.Bank No")),p(3),T(e.paymentDetailData.bankNumber)}}function T2e(t,i){if(t&1&&(nt(0,"table")(1,"tbody")(2,"tr")(3,"td",3),y(4),S(5,"translate"),rt()(),E(6,S2e,6,4,"tr"),E(7,k2e,6,4,"tr"),E(8,E2e,6,4,"tr"),E(9,I2e,6,4,"tr"),E(10,O2e,6,4,"tr"),rt()()),t&2){let e=w();p(4),T(k(5,6,"labels.inputs.Payment Details")),p(2),I(e.isNotNullOrEmpty(e.paymentDetailData.accountNumber)?6:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.checkNumber)?7:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.routingCode)?8:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.receiptNumber)?9:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.bankNumber)?10:-1)}}var $R=(()=>{class t{constructor(){}hasSomeValue(){return this.isNotNullOrEmpty(this.paymentDetailData.accountNumber)||this.isNotNullOrEmpty(this.paymentDetailData.bankNumber)||this.isNotNullOrEmpty(this.paymentDetailData.checkNumber)||this.isNotNullOrEmpty(this.paymentDetailData.receiptNumber)||this.isNotNullOrEmpty(this.paymentDetailData.routingCode)}isNotNullOrEmpty(e){return e!==null&&e!==""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-transaction-payment-detail"]],inputs:{paymentDetailData:"paymentDetailData"},decls:7,vars:5,consts:[[1,"layout-row-wrap","card-content"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["colspan","2",1,"mat-body-strong","center"],[1,"mat-body-strong"]],template:function(n,o){n&1&&(nt(0,"div",0)(1,"div",1),y(2),S(3,"translate"),rt(),nt(4,"div",2),y(5),rt()(),E(6,T2e,11,8,"table")),n&2&&(p(2),ne(" ",k(3,3,"labels.inputs.Payment Type")," "),p(3),ne(" ",o.paymentDetailData.paymentType.name," "),p(),I(o.hasSomeValue()?6:-1))},dependencies:[he,ve,Te],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.card-content[_ngcontent-%COMP%]{width:100%;padding-bottom:25px}.card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:left}.card-content[_ngcontent-%COMP%] .attribute[_ngcontent-%COMP%]{font-weight:500}"]})}}return t})();var GR=(()=>{class t{constructor(){this.disablePrevious=!1,this.disableNext=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-stepper-buttons"]],inputs:{disablePrevious:"disablePrevious",disableNext:"disableNext"},decls:9,vars:8,consts:[[1,"flex-fill","layout-row","layout-align-center","margin-t","gap-2percent","layout-xs-column"],["mat-raised-button","","matStepperPrevious","",3,"disabled"],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"button",1),F(2,"fa-icon",2),y(3),S(4,"translate"),_(),h(5,"button",3),y(6),S(7,"translate"),F(8,"fa-icon",4),_()()),n&2&&(p(),D("disabled",o.disablePrevious),p(2),ne(" ",k(4,4,"labels.buttons.Previous")," "),p(2),D("disabled",o.disableNext),p(),ne(" ",k(7,6,"labels.buttons.Next")," "))},dependencies:[he,ve,vt,Yt,Gz,$z,Te],encapsulation:2})}}return t})();function P2e(t,i){if(t&1&&(h(0,"mat-option",4),y(1),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ne(" ","("+e.glCode+") "+e.name," ")}}function L2e(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),Dt(" ",k(2,3,"labels.inputs.Account")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function A2e(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",2)(5,"mat-option"),F(6,"ngx-mat-select-search",3),_(),Xe(7,P2e,2,2,"mat-option",4,ht),S(9,"async"),_(),E(10,L2e,7,9,"mat-error"),_()),t&2){let e=w();p(2),T(k(3,8,"labels.inputs."+e.inputLabel)),p(2),D("formControl",e.inputFormControl),p(2),D("placeholderLabel",Ft(e.placeHolderLabel))("noEntriesFoundLabel",Ft(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),Ze(k(9,10,e.glAccountData)),p(3),I(e.inputFormControl.hasError("required")?10:-1)}}function z2e(t,i){if(t&1&&(h(0,"mat-option",4),y(1),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ne(" ","("+e.glCode+") "+e.name," ")}}function R2e(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",5)(5,"mat-option"),F(6,"ngx-mat-select-search",6),_(),Xe(7,z2e,2,2,"mat-option",4,ht),S(9,"async"),_()()),t&2){let e=w();p(2),T(k(3,7,"labels.inputs."+e.inputLabel)),p(2),D("formControl",e.inputFormControl),p(2),D("placeholderLabel",Ft(e.placeHolderLabel))("noEntriesFoundLabel",Ft(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),Ze(k(9,9,e.glAccountData))}}var WR=(()=>{class t{constructor(){this.translateService=d(Po),this.glAccountList=[],this.required=!1,this.inputLabel="",this.glAccountData=new pr(1),this.filterFormCtrl=new Hi(""),this._onDestroy=new B,this.placeHolderLabel="",this.noEntriesFoundLabel=""}ngOnInit(){this.filterFormCtrl.valueChanges.pipe(ye(this._onDestroy)).subscribe(()=>{this.searchGLAccount()}),this.placeHolderLabel=this.translateService.instant("labels.text.Search"),this.noEntriesFoundLabel=this.translateService.instant("labels.text.No data found")}ngOnChanges(e){this.glAccountList&&this.glAccountData.next(this.glAccountList.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}searchGLAccount(){if(this.glAccountList){let e=this.filterFormCtrl.value.toLowerCase();e?this.glAccountData.next(this.glAccountList.filter(n=>n.name.toLowerCase().indexOf(e)>=0||n.glCode.toLowerCase().indexOf(e)>=0)):this.glAccountData.next(this.glAccountList.slice())}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-gl-account-selector"]],inputs:{inputFormControl:"inputFormControl",glAccountList:"glAccountList",required:"required",inputLabel:"inputLabel"},features:[Re],decls:3,vars:2,consts:[[1,"layout-column","m-r-10"],[1,"flex-100"],["required","",3,"formControl"],[3,"placeholderLabel","noEntriesFoundLabel","formControl"],[3,"value"],[3,"formControl"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&(h(0,"div",0),E(1,A2e,11,12,"mat-form-field",1),E(2,R2e,10,11,"mat-form-field",1),_()),n&2&&(p(),I(o.required?1:-1),p(),I(o.required?-1:2))},dependencies:[he,ve,mn,Ir,Si,Bt,Cn,ao,qn,ln,Sh,Qb,Xd,Te],encapsulation:2})}}return t})();function N2e(t,i){if(t&1&&(h(0,"span",0)(1,"div",2),y(2),S(3,"translate"),_(),h(4,"div",3),y(5),_()()),t&2){let e=w();p(),D("ngClass",e.getWithClass(e.withTitle)),p(),ne(" ",k(3,4,"labels.inputs."+e.accountTitle)," "),p(2),D("ngClass",e.getWithClass(e.withAccount)),p(),ne(" ",e.glAccountValue()," ")}}function F2e(t,i){if(t&1&&(h(0,"div",1),y(1),_()),t&2){let e=w();p(),ne(" ",e.glAccountValue()," ")}}var Hh=(()=>{class t{constructor(){this.glAccount=null,this.accountTitle=null,this.withTitle="50%",this.withAccount="50%"}glAccountValue(){return this.glAccount?"("+this.glAccount.glCode+") "+(this.glAccount.nameDecorated?this.glAccount.nameDecorated:this.glAccount.name):""}getWithClass(e){return"flex-"+e.replace("%","")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-gl-account-display"]],inputs:{glAccount:"glAccount",accountTitle:"accountTitle",withTitle:"withTitle",withAccount:"withAccount"},decls:2,vars:2,consts:[[1,"layout-row"],[1,"flex-100"],[1,"header",3,"ngClass"],[3,"ngClass"]],template:function(n,o){n&1&&(E(0,N2e,6,6,"span",0),E(1,F2e,2,1,"div",1)),n&2&&(I(o.accountTitle?0:-1),p(),I(o.accountTitle?-1:1))},dependencies:[he,Un,ve,Te],styles:["div[_ngcontent-%COMP%]{margin:.3rem 0;word-wrap:break-word}div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return t})();var qR=(()=>{class t{getAccountingRulesForShares(){return["NONE","Cash"]}getAccountingRulesForSavings(){return["NONE","Cash","Accrual (periodic)"]}getAccountingRulesForLoans(){return["NONE","Cash","Accrual (periodic)","Accrual (upfront)"]}getAccountRuleName(e){return["ACCRUAL PERIODIC","ACCRUAL (PERIODIC)"].includes(e)?"Accrual (periodic)":["ACCRUAL UPFRONT","ACCRUAL (UPFRONT)"].includes(e)?"Accrual (upfront)":e.startsWith("CASH")?"Cash":e==="NONE"?"NONE":""}isNoneAccounting(e){return e.id===1}isNoneAccountingRuleId(e){return e===1}isCashOrAccrualAccounting(e){return e.id===2||e.id===3}isCashOrAccrualAccountingRuleId(e){return e===2||e===3}isAccrualAccounting(e){return e.id===3}isAccrualAccountingRuleId(e){return e===3}getAccountingRuleFrom(e){return e===1?{code:"NONE",id:e,value:"None"}:e===2?{code:"CASH",id:e,value:"Cash"}:e===3?{code:"ACCRUAL_PERIODIC",id:e,value:"Accural (periodic)"}:e===4?{code:"ACCRUAL_UPFRONT",id:e,value:"Accural (upfront)"}:{code:"INVALID",id:e,value:"Invalid"}}glAccountLookUp(e,n){let o=null;return e&&n.some(r=>{r.id===e&&(o={id:r.id,name:r.name,glCode:r.glCode})}),o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function V2e(t,i){if(t&1&&(h(0,"div",1)(1,"span",3),y(2),S(3,"translate"),_(),h(4,"span",4),y(5),S(6,"translate"),_()()),t&2){let e=w();p(2),ne("",k(3,2,"labels.inputs.Type"),":"),p(3),T(k(6,4,"labels.accounting."+e.getAccountingRuleName(e.accountingRule.value)))}}function B2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Overdraft portfolio")("glAccount",e.accountingMappings.overdraftPortfolioControl)("withTitle","40%")}}function j2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Fees Receivable")("glAccount",e.accountingMappings.feeReceivableAccount)("withTitle","40%")}}function H2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Penalties Receivable")("glAccount",e.accountingMappings.penaltyReceivableAccount)("withTitle","40%")}}function U2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Interest Receivable")("glAccount",e.accountingMappings.interestReceivableAccount)("withTitle","40%")}}function $2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Interest Payable")("glAccount",e.accountingMappings.interestPayableAccount)("withTitle","40%")}}function G2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Escheat liability")("glAccount",e.accountingMappings.escheatLiabilityAccount)("withTitle","40%")}}function W2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Income from Interest")("glAccount",e.accountingMappings.incomeFromInterest)("withTitle","40%")}}function q2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=w(2);D("accountTitle","Write-off")("glAccount",e.accountingMappings.writeOffAccount)("withTitle","40%")}}function Y2e(t,i){if(t&1&&(h(0,"div",2)(1,"h4",5),y(2),S(3,"translate"),_(),h(4,"div",6),F(5,"mifosx-gl-account-display",7),_(),h(6,"div",6),E(7,B2e,1,3,"mifosx-gl-account-display",7),_(),h(8,"div",6),E(9,j2e,1,3,"mifosx-gl-account-display",7),_(),h(10,"div",6),E(11,H2e,1,3,"mifosx-gl-account-display",7),E(12,U2e,1,3,"mifosx-gl-account-display",7),h(13,"h4",5),y(14),S(15,"translate"),_(),h(16,"div",6),F(17,"mifosx-gl-account-display",7),_(),h(18,"div",6),F(19,"mifosx-gl-account-display",7),_(),h(20,"div",6),E(21,$2e,1,3,"mifosx-gl-account-display",7),_(),h(22,"div",6),E(23,G2e,1,3,"mifosx-gl-account-display",7),_(),h(24,"h4",5),y(25),S(26,"translate"),_(),h(27,"div",6),F(28,"mifosx-gl-account-display",7),_(),h(29,"div",6),F(30,"mifosx-gl-account-display",7),_(),h(31,"div",6),E(32,W2e,1,3,"mifosx-gl-account-display",7),_(),h(33,"h4",5),y(34),S(35,"translate"),_(),h(36,"div",6),F(37,"mifosx-gl-account-display",7),_(),h(38,"div",6),E(39,q2e,1,3,"mifosx-gl-account-display",7),_()()()),t&2){let e=w();p(2),T(k(3,30,"labels.heading.Assets")),p(3),D("accountTitle","Saving reference")("glAccount",e.accountingMappings.savingsReferenceAccount)("withTitle","40%"),p(2),I(e.accountingMappings.overdraftPortfolioControl?7:-1),p(2),I(e.isAccrualAccounting()?9:-1),p(2),I(e.isAccrualAccounting()?11:-1),p(),I(e.isAccrualAccounting()?12:-1),p(2),T(k(15,32,"labels.heading.Liabilities")),p(3),D("accountTitle","Saving control")("glAccount",e.accountingMappings.savingsControlAccount)("withTitle","40%"),p(2),D("accountTitle","Savings transfers in suspense")("glAccount",e.accountingMappings.transfersInSuspenseAccount)("withTitle","40%"),p(2),I(e.isAccrualAccounting()?21:-1),p(2),I(e.accountingMappings.escheatLiabilityAccount?23:-1),p(2),T(k(26,34,"labels.heading.Income")),p(3),D("accountTitle","Income from fees")("glAccount",e.accountingMappings.incomeFromFeeAccount)("withTitle","40%"),p(2),D("accountTitle","Income from penalties")("glAccount",e.accountingMappings.incomeFromPenaltyAccount)("withTitle","40%"),p(2),I(e.accountingMappings.incomeFromInterest?32:-1),p(2),T(k(35,36,"labels.heading.Expenses")),p(3),D("accountTitle","Interest on savings")("glAccount",e.accountingMappings.interestOnSavingsAccount)("withTitle","40%"),p(2),I(e.accountingMappings.writeOffAccount?39:-1)}}var YR=(()=>{class t{constructor(){this.accounting=d(qR),this.accountingMappings=[]}isCashOrAccrualAccounting(){return this.accountingRule?this.accounting.isCashOrAccrualAccounting(this.accountingRule):!1}isAccrualAccounting(){return this.accountingRule?this.accounting.isAccrualAccounting(this.accountingRule):!1}getAccountingRuleName(e){return this.accounting.getAccountRuleName(e.toUpperCase())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-view-savings-accounting-details"]],inputs:{accountingRule:"accountingRule",accountingMappings:"accountingMappings"},decls:4,vars:2,consts:[[1,"layout-row-wrap","responsive-column"],[1,"layout-row","responsive-column","flex-100"],[1,"layout-row-wrap","responsive-column","flex-100"],[1,"flex-40"],[1,"flex-60"],[1,"mat-h4","flex-100"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"]],template:function(n,o){n&1&&(h(0,"div",0),E(1,V2e,7,6,"div",1),h(2,"div",2),E(3,Y2e,40,38,"div",2),_()()),n&2&&(p(),I(o.accountingRule?1:-1),p(2),I(o.isCashOrAccrualAccounting()?3:-1))},dependencies:[he,ve,Hh,Te],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.container[_ngcontent-%COMP%]{padding:1%;margin:1%;width:100%}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-h4[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:200;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var QR=(()=>{class t{constructor(){this.ref=d(li),this.darkModeOn=!1,this.themes=["dark-theme","light-theme"],this.theme=new ct("light-theme"),this.darkModeOn=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.setDarkMode(this.darkModeOn),window.matchMedia("(prefers-color-scheme: dark)").addListener(e=>{let n=e.matches;this.theme.next(n?"dark-theme":"light-theme"),this.ref.tick()})}isDarkMode(){return this.darkModeOn=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.darkModeOn}setDarkMode(e){this.darkModeOn=e,e?(document.body.classList.add("dark-theme"),this.theme.next("dark-theme")):(document.body.classList.remove("dark-theme"),this.theme.next("light-theme"))}setInitialDarkMode(){this.setDarkMode(this.darkModeOn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var KR=(()=>{class t{constructor(){this.themingService=d(QR),this.settingsService=d(Xt)}ngOnInit(){this.darkModeOn=!!this.settingsService.themeDarkEnabled}ngOnChanges(e){this.darkModeOn=!!this.settingsService.themeDarkEnabled}toggleTheme(){this.darkModeOn=!this.darkModeOn,this.settingsService.setThemeDarkEnabled(this.darkModeOn),this.themingService.setDarkMode(this.darkModeOn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-theme-toggle"]],features:[Re],decls:3,vars:1,consts:[["mat-icon-button","",1,"m-l-15","m-r-5",3,"click"]],template:function(n,o){n&1&&(h(0,"button",0),N("click",function(){return o.toggleTheme()}),h(1,"mat-icon"),y(2),_()()),n&2&&(p(2),T(o.darkModeOn?"wb_sunny":"nights_stay"))},dependencies:[he,ve,ni,Co],encapsulation:2})}}return t})();function Q2e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=w(2);return W(o.showValue())}),F(1,"fa-icon",4),_()}if(t&2){let e=w(2);p(),D("title",e.textValue)}}function K2e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=w(2);return W(o.showValue())}),y(1),S(2,"truncateText"),_()}if(t&2){let e=w(2);p(),ne("",Zo(2,1,e.textValue,e.printChars),"...")}}function X2e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=w(2);return W(o.showValue())}),y(1),_()}if(t&2){let e=w(2);p(),T(e.textValue)}}function Z2e(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){G(e);let o=w();return W(o.mouseEnter())})("mouseleave",function(){G(e);let o=w();return W(o.mouseLeave())}),E(1,Q2e,2,1,"span",1),E(2,K2e,3,4,"span",2),E(3,X2e,2,1,"span",2),_()}if(t&2){let e=w();p(),I(e.isLongValue()?1:-1),p(),I(e.isLongValue()?2:-1),p(),I(e.isLongValue()?-1:3)}}var XR=(()=>{class t{constructor(){this.chars=30,this.iconVisible=!1,this.displayL=!1,this.displayR=!0,this.emptyValue=!1,this.printChars=30}ngOnInit(){this.emptyValue=!this.textValue||this.textValue==="",this.printChars=this.chars}isLongValue(){return this.textValue==null?!1:this.textValue.length>25}showValue(){this.printChars==30?this.printChars=1e3:this.printChars=30}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-long-text"]],inputs:{textValue:"textValue",chars:"chars"},decls:1,vars:1,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-3"],[1,"m-l-5"],[1,"m-l-3",3,"click"],["icon","eye","size","sm",3,"title"],[1,"m-l-5",3,"click"]],template:function(n,o){n&1&&E(0,Z2e,4,3,"span"),n&2&&I(o.emptyValue?-1:0)},dependencies:[he,ve,Yt,Qm],encapsulation:2})}}return t})();function J2e(t,i){if(t&1&&(h(0,"mat-option",2),y(1),S(2,"translateKey"),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ne(" ",Zo(2,2,e.value,"catalogs")," ")}}function ede(t,i){if(t&1){let e=le();h(0,"button",4),N("click",function(o){G(e);let r=w();return W(r.clearProperty(o))}),h(1,"mat-icon"),y(2),S(3,"translate"),_()()}t&2&&(p(2),T(k(3,1,"labels.buttons.Close")))}var ZR=(()=>{class t{constructor(){this.translateService=d(Po),this.selectOptions=[]}getPlaceHolderText(){return this.placeHolderText?this.translateService.instant("labels.inputs."+this.placeHolderText):""}getLabelText(){return this.labelText?this.translateService.instant("labels.inputs."+this.labelText):""}clearProperty(){this.controlSelect.patchValue("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-dropdown"]],inputs:{placeHolderText:"placeHolderText",labelText:"labelText",selectOptions:"selectOptions",controlSelect:"controlSelect",required:"required"},decls:7,vars:4,consts:[[1,"flex-28"],["formControlName","controlSelect",3,"placeholder"],[3,"value"],["matSuffix","","mat-icon-button","","aria-label","Clear"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"mat-label"),y(2),_(),h(3,"mat-select",1),Xe(4,J2e,3,5,"mat-option",2,ht),_(),E(6,ede,4,3,"button",3),_()),n&2&&(p(2),T(o.getLabelText()),p(),D("placeholder",Ft(o.getPlaceHolderText())),p(),Ze(o.selectOptions),p(2),I(o.controlSelect?6:-1))},dependencies:[he,ve,mn,Ao,Bt,Cn,Za,qn,ln,ni,Co,Te,Wc],encapsulation:2})}}return t})();function tde(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2){let e=w(2);p(),Dt(" ",k(2,3,"labels.inputs."+e.inputLabel)," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required"))}}function nde(t,i){if(t&1&&(h(0,"mat-hint",4),y(1),S(2,"currency"),_()),t&2){let e=w(2);p(),T(cm(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function ide(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=w(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function ode(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=w(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function rde(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"div",2)(5,"span"),y(6),_(),h(7,"input",3),N("keypress",function(o){G(e);let r=w();return W(r.numberOnly(o))})("blur",function(){G(e);let o=w();return W(o.displayHint=!1)})("focus",function(){G(e);let o=w();return W(o.displayHint=!0)}),_()(),E(8,tde,7,9,"mat-error"),E(9,nde,3,6,"mat-hint",4),E(10,ide,4,7,"mat-error"),E(11,ode,4,7,"mat-error"),_()}if(t&2){let e=w();p(2),T(k(3,10,"labels.inputs."+e.inputLabel)),p(4),T(e.currency.code),p(),D("mifosxFormatAmount",am("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),I(e.inputFormControl.hasError("required")?8:-1),p(),I(e.displayHint?9:-1),p(),I(e.minVal&&e.inputFormControl.hasError("min")?10:-1),p(),I(e.maxVal&&e.inputFormControl.hasError("max")?11:-1)}}function ade(t,i){if(t&1&&(h(0,"mat-hint",4),y(1),S(2,"currency"),_()),t&2){let e=w(2);p(),T(cm(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function sde(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=w(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function cde(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=w(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function lde(t,i){if(t&1){let e=le();h(0,"mat-form-field",1)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"span",5),y(5),_(),F(6,"span",6),h(7,"input",7),N("keypress",function(o){G(e);let r=w();return W(r.numberOnly(o))})("blur",function(){G(e);let o=w();return W(o.displayHint=!1)})("focus",function(){G(e);let o=w();return W(o.displayHint=!0)}),_(),E(8,ade,3,6,"mat-hint",4),E(9,sde,4,7,"mat-error"),E(10,cde,4,7,"mat-error"),_()}if(t&2){let e=w();p(2),T(k(3,9,"labels.inputs."+e.inputLabel)),p(3),T(e.currency.code),p(2),D("mifosxFormatAmount",am("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),I(e.displayHint?8:-1),p(),I(e.minVal&&e.inputFormControl.hasError("min")?9:-1),p(),I(e.maxVal&&e.inputFormControl.hasError("max")?10:-1)}}var JR=(()=>{class t{constructor(){this.isRequired=!1,this.displayHint=!1}numberOnly(e){let n=e.which?e.which:e.keyCode;return n===46?!(this.inputFormControl.value.indexOf(".")>-1):!(n>31&&(n<48||n>57))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-input-amount"]],inputs:{isRequired:"isRequired",currency:"currency",inputLabel:"inputLabel",inputFormControl:"inputFormControl",minVal:"minVal",maxVal:"maxVal"},decls:2,vars:2,consts:[["appearance","fill",1,"flex-100","input-container"],["appearance","fill",1,"flex-100"],[1,"input-group"],["required","","matInput","",1,"right-input",3,"keypress","blur","focus","mifosxFormatAmount","formControl"],[1,"right-hint"],["matTextSuffix","",1,"m-l-10"],[1,"flex-auto"],["matInput","",1,"right-input",3,"keypress","blur","focus","mifosxFormatAmount","formControl"]],template:function(n,o){n&1&&(E(0,rde,12,12,"mat-form-field",0),E(1,lde,11,11,"mat-form-field",1)),n&2&&(I(o.isRequired?0:-1),p(),I(o.isRequired?-1:1))},dependencies:[he,ve,yi,mn,Ir,Si,Bt,Cn,ao,Za,W0,ti,KS,o7,Te],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.input-container[_ngcontent-%COMP%]{width:100%}.input-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:5px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}.right-hint[_ngcontent-%COMP%]{min-width:100%;text-align:right;font-weight:500}"]})}}return t})();var eN=(()=>{class t{constructor(){this.enableMeridian=!0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ngx-mat-datetime-picker"]],inputs:{enableMeridian:"enableMeridian"},decls:3,vars:1,consts:[["picker",""],[3,"for"]],template:function(n,o){if(n&1&&F(0,"mat-datepicker-toggle",1)(1,"mat-datepicker",null,0),n&2){let r=Nt(2);D("for",r)}},dependencies:[he,ve,ou,bf],encapsulation:2})}}return t})();var Fet=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({imports:[he,ab,Kb,ve,E7,uS,XS,yf,es,Rr,cO,Af,KT,XT,cP,gP,_P,bP,yP,IP,CP,kP,EP,OP,TP,DR,kR,RR,NR,Bh,Vh,FR,jh,jR,HR,UR,$R,GR,WR,Hh,YR,KR,XR,ZR,JR,Uf,eN,he,ab,Kb,QS,ve,E7]})}}return t})();export{Se as a,Fe as b,B as c,ct as d,pr as e,Sn as f,nue as g,tn as h,re as i,Gr as j,me as k,gi as l,_n as m,Oa as n,ed as o,Ta as p,ft as q,Ae as r,Mo as s,hr as t,Be as u,Wl as v,qr as w,Yr as x,hs as y,Cc as z,We as A,lt as B,ye as C,Ot as D,pe as E,kt as F,R as G,X as H,L as I,ke as J,d as K,G as L,W as M,$t as N,Ko as O,be as P,Me as Q,Fi as R,Xo as S,Re as T,Ie as U,Q as V,Bc as W,Td as X,Fn as Y,jc as Z,_1 as _,Vx as $,mU as aa,pU as ba,p as ca,j as da,se as ea,tt as fa,On as ga,Ke as ha,Ce as ia,P as ja,J as ka,z as la,ce as ma,ot as na,C1 as oa,te as pa,M5 as qa,E as ra,I as sa,ht as ta,Xe as ua,Ze as va,D as wa,h as xa,_ as ya,F as za,nt as Aa,rt as Ba,Tn as Ca,Vi as Da,Bi as Ea,Vt as Fa,le as Ga,Lt as Ha,N as Ia,w as Ja,De as Ka,ae as La,Ee as Ma,ue as Na,U as Oa,$ as Pa,Nt as Qa,At as Ra,oe as Sa,Tt as Ta,y as Ua,T as Va,ne as Wa,Dt as Xa,Ua as Ya,uw as Za,M1 as _a,Hd as $a,w1 as ab,Ft as bb,Uc as cb,de as db,ko as eb,Eo as fb,D1 as gb,S as hb,k as ib,Zo as jb,xW as kb,cm as lb,ks as mb,xe as nb,Sr as ob,Jo as pb,Un as qb,vD as rb,wq as sb,yD as tb,Dq as ub,i7 as vb,Es as wb,Xd as xb,Eq as yb,Oq as zb,E1 as Ab,Pq as Bb,Aq as Cb,Zd as Db,o7 as Eb,he as Fb,gbe as Gb,DD as Hb,f7 as Ib,Zq as Jb,tY as Kb,T1 as Lb,o0 as Mb,To as Nb,ee as Ob,r0 as Pb,O1 as Qb,Bn as Rb,GD as Sb,DY as Tb,SY as Ub,YD as Vb,Ga as Wb,sc as Xb,Ioe as Yb,nb as Zb,$f as _b,PNe as $b,bu as ac,Ooe as bc,Gf as cc,eb as dc,tb as ec,Toe as fc,No as gc,ro as hc,M_ as ic,CE as jc,bo as kc,m2 as lc,MX as mc,EX as nc,Xc as oc,xp as pc,ni as qc,vt as rc,jOe as sc,yo as tc,Wn as uc,Qs as vc,Mi as wc,so as xc,pI as yc,Ei as zc,xse as Ac,qt as Bc,En as Cc,Wi as Dc,Ln as Ec,xn as Fc,An as Gc,zn as Hc,d9 as Ic,L1 as Jc,c0 as Kc,Po as Lc,Te as Mc,E7 as Nc,mt as Oc,JT as Pc,Os as Qc,go as Rc,Xt as Sc,pS as Tc,Zm as Uc,di as Vc,yi as Wc,en as Xc,mn as Yc,tr as Zc,VS as _c,H1 as $c,Hi as ad,nQ as bd,zs as cd,oQ as dd,Si as ed,ui as fd,US as gd,$S as hd,Ao as id,uQ as jd,pQ as kd,Ir as ld,gQ as md,bQ as nd,vQ as od,Rs as pd,QS as qd,ve as rd,LE as sd,QDe as td,KDe as ud,AE as vd,XDe as wd,ZDe as xd,JDe as yd,eSe as zd,tSe as Ad,Cn as Bd,ao as Cd,W0 as Dd,q0 as Ed,Za as Fd,Bt as Gd,nf as Hd,ti as Id,ln as Jd,uo as Kd,qn as Ld,BZ as Md,mo as Nd,bf as Od,vf as Pd,ou as Qd,il as Rd,Lo as Sd,Wc as Td,Ps as Ud,Wf as Vd,QR as Wd,Yt as Xd,YT as Yd,nr as Zd,es as _d,Rr as $d,cO as ae,Af as be,O2 as ce,rc as de,KT as ee,XT as fe,_l as ge,ac as he,Nf as ie,J9 as je,aP as ke,cP as le,Vf as me,Co as ne,gP as oe,_P as pe,bP as qe,yP as re,CP as se,xP as te,kP as ue,EP as ve,IP as we,OP as xe,TP as ye,YA as ze,eVe as Ae,tVe as Be,tz as Ce,XVe as De,qre as Ee,Jre as Fe,dz as Ge,dae as He,uae as Ie,fje as Je,hje as Ke,gje as Le,Bje as Me,jje as Ne,Hje as Oe,Uje as Pe,wb as Qe,Mz as Re,Dz as Se,IHe as Te,qae as Ue,Oz as Ve,Pz as We,ase as Xe,bUe as Ye,use as Ze,oh as _e,Bz as $e,jz as af,Ob as bf,Jse as cf,tce as df,nce as ef,$z as ff,Gz as gf,ph as hf,fh as if,hh as jf,TGe as kf,gh as lf,_h as mf,PGe as nf,bh as of,vh as pf,LGe as qf,yh as rf,Ch as sf,AGe as tf,xh as uf,zGe as vf,Jz as wf,Eu as xf,Ice as yf,Tce as zf,Pce as Af,uWe as Bf,Rce as Cf,Nce as Df,mWe as Ef,wWe as Ff,gR as Gf,_R as Hf,oqe as If,rqe as Jf,aqe as Kf,sqe as Lf,yR as Mf,cqe as Nf,lqe as Of,CR as Pf,xR as Qf,MR as Rf,Qb as Sf,Sh as Tf,DR as Uf,eS as Vf,tS as Wf,nS as Xf,ca as Yf,oS as Zf,Ts as _f,cS as $f,Km as ag,uS as bg,kh as cg,SR as dg,Eh as eg,Ih as fg,kR as gg,OR as hg,TR as ig,PR as jg,LR as kg,AR as lg,zR as mg,RR as ng,UCe as og,XS as pg,Ah as qg,Rh as rg,Nh as sg,Fh as tg,NR as ug,FR as vg,VR as wg,BR as xg,jR as yg,HR as zg,UR as Ag,$R as Bg,GR as Cg,WR as Dg,Hh as Eg,qR as Fg,YR as Gg,KR as Hg,XR as Ig,JR as Jg,Fet as Kg}; + `;this.core.outer.addClass("lg-has-thumb"),this.settings.appendThumbnailsTo===".lg-components"?this.core.$lgComponents.append(e):this.core.outer.append(e),this.$thumbOuter=this.core.outer.find(".lg-thumb-outer").first(),this.$lgThumb=this.core.outer.find(".lg-thumb").first(),this.settings.animateThumb&&this.core.outer.find(".lg-thumb").css("transition-duration",this.core.settings.speed+"ms").css("width",this.thumbTotalWidth+"px").css("position","relative"),this.setThumbItemHtml(this.core.galleryItems)},t.prototype.enableThumbDrag=function(){var i=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0},n=!1;this.$thumbOuter.addClass("lg-grab"),this.core.outer.find(".lg-thumb").first().on("mousedown.lg.thumb",function(o){i.thumbTotalWidth>i.thumbOuterWidth&&(o.preventDefault(),e.cords.startX=o.pageX,e.startTime=new Date,i.thumbClickable=!1,n=!0,i.core.outer.get().scrollLeft+=1,i.core.outer.get().scrollLeft-=1,i.$thumbOuter.removeClass("lg-grab").addClass("lg-grabbing"))}),this.$LG(window).on("mousemove.lg.thumb.global"+this.core.lgId,function(o){i.core.lgOpened&&n&&(e.cords.endX=o.pageX,e=i.onThumbTouchMove(e))}),this.$LG(window).on("mouseup.lg.thumb.global"+this.core.lgId,function(){i.core.lgOpened&&(e.isMoved?e=i.onThumbTouchEnd(e):i.thumbClickable=!0,n&&(n=!1,i.$thumbOuter.removeClass("lg-grabbing").addClass("lg-grab")))})},t.prototype.enableThumbSwipe=function(){var i=this,e={cords:{startX:0,endX:0},isMoved:!1,newTranslateX:0,startTime:new Date,endTime:new Date,touchMoveTime:0};this.$lgThumb.on("touchstart.lg",function(n){i.thumbTotalWidth>i.thumbOuterWidth&&(n.preventDefault(),e.cords.startX=n.targetTouches[0].pageX,i.thumbClickable=!1,e.startTime=new Date)}),this.$lgThumb.on("touchmove.lg",function(n){i.thumbTotalWidth>i.thumbOuterWidth&&(n.preventDefault(),e.cords.endX=n.targetTouches[0].pageX,e=i.onThumbTouchMove(e))}),this.$lgThumb.on("touchend.lg",function(){e.isMoved?e=i.onThumbTouchEnd(e):i.thumbClickable=!0})},t.prototype.rebuildThumbnails=function(){var i=this;this.$thumbOuter.addClass("lg-rebuilding-thumbnails"),setTimeout(function(){i.thumbTotalWidth=i.core.galleryItems.length*(i.settings.thumbWidth+i.settings.thumbMargin),i.$lgThumb.css("width",i.thumbTotalWidth+"px"),i.$lgThumb.empty(),i.setThumbItemHtml(i.core.galleryItems),i.animateThumb(i.core.index)},50),setTimeout(function(){i.$thumbOuter.removeClass("lg-rebuilding-thumbnails")},200)},t.prototype.setTranslate=function(i){this.$lgThumb.css("transform","translate3d(-"+i+"px, 0px, 0px)")},t.prototype.getPossibleTransformX=function(i){return i>this.thumbTotalWidth-this.thumbOuterWidth&&(i=this.thumbTotalWidth-this.thumbOuterWidth),i<0&&(i=0),i},t.prototype.animateThumb=function(i){if(this.$lgThumb.css("transition-duration",this.core.settings.speed+"ms"),this.settings.animateThumb){var e=0;switch(this.settings.currentPagerPosition){case"left":e=0;break;case"middle":e=this.thumbOuterWidth/2-this.settings.thumbWidth/2;break;case"right":e=this.thumbOuterWidth-this.settings.thumbWidth}this.translateX=(this.settings.thumbWidth+this.settings.thumbMargin)*i-1-e,this.translateX>this.thumbTotalWidth-this.thumbOuterWidth&&(this.translateX=this.thumbTotalWidth-this.thumbOuterWidth),this.translateX<0&&(this.translateX=0),this.setTranslate(this.translateX)}},t.prototype.onThumbTouchMove=function(i){return i.newTranslateX=this.translateX,i.isMoved=!0,i.touchMoveTime=new Date().valueOf(),i.newTranslateX-=i.cords.endX-i.cords.startX,i.newTranslateX=this.getPossibleTransformX(i.newTranslateX),this.setTranslate(i.newTranslateX),this.$thumbOuter.addClass("lg-dragging"),i},t.prototype.onThumbTouchEnd=function(i){i.isMoved=!1,i.endTime=new Date,this.$thumbOuter.removeClass("lg-dragging");var e=i.endTime.valueOf()-i.startTime.valueOf(),n=i.cords.endX-i.cords.startX,o=Math.abs(n)/e;return o>.15&&i.endTime.valueOf()-i.touchMoveTime<30?(o+=1,o>2&&(o+=1),o=o+o*(Math.abs(n)/this.thumbOuterWidth),this.$lgThumb.css("transition-duration",Math.min(o-1,2)+"settings"),n=n*o,this.translateX=this.getPossibleTransformX(this.translateX-n),this.setTranslate(this.translateX)):this.translateX=i.newTranslateX,Math.abs(i.cords.endX-i.cords.startX)'),this.core.outer.find(".lg-toggle-thumb").first().on("click.lg",function(){i.core.outer.toggleClass("lg-components-open")}))},t.prototype.thumbKeyPress=function(){var i=this;this.$LG(window).on("keydown.lg.thumb.global"+this.core.lgId,function(e){!i.core.lgOpened||!i.settings.toggleThumb||(e.keyCode===38?(e.preventDefault(),i.core.outer.addClass("lg-components-open")):e.keyCode===40&&(e.preventDefault(),i.core.outer.removeClass("lg-components-open")))})},t.prototype.destroy=function(){this.settings.thumbnail&&(this.$LG(window).off(".lg.thumb.global"+this.core.lgId),this.core.LGel.off(".lg.thumb"),this.core.LGel.off(".thumb"),this.$thumbOuter.remove(),this.core.outer.removeClass("lg-has-thumb"))},t})(),PR=Ole;var Ph=function(){return Ph=Object.assign||function(i){for(var e,n=1,o=arguments.length;n':"";this.settings.actualSize&&(i+=''),this.core.outer.addClass("lg-use-transition-for-zoom"),this.core.$toolbar.first().append(i)},t.prototype.enableZoom=function(i){var e=this,n=this.settings.enableZoomAfter+i.detail.delay;this.$LG("body").first().hasClass("lg-from-hash")&&i.detail.delay?n=0:this.$LG("body").first().removeClass("lg-from-hash"),this.zoomableTimeout=setTimeout(function(){e.isImageSlide(e.core.index)&&(e.core.getSlideItem(i.detail.index).addClass("lg-zoomable"),i.detail.index===e.core.index&&e.setZoomEssentials())},n+30)},t.prototype.enableZoomOnSlideItemLoad=function(){this.core.LGel.on(as.slideItemLoad+".zoom",this.enableZoom.bind(this))},t.prototype.getDragCords=function(i){return{x:i.pageX,y:i.pageY}},t.prototype.getSwipeCords=function(i){var e=i.touches[0].pageX,n=i.touches[0].pageY;return{x:e,y:n}},t.prototype.getDragAllowedAxises=function(i,e){if(!this.containerRect)return{allowX:!1,allowY:!1};var n=this.core.getSlideItem(this.core.index).find(".lg-image").first().get(),o=0,r=0,a=n.getBoundingClientRect();i?(o=n.offsetHeight*i,r=n.offsetWidth*i):e?(o=a.height+e*a.height,r=a.width+e*a.width):(o=a.height,r=a.width);var s=o>this.containerRect.height,c=r>this.containerRect.width;return{allowX:c,allowY:s}},t.prototype.setZoomEssentials=function(){this.containerRect=this.core.$content.get().getBoundingClientRect()},t.prototype.zoomImage=function(i,e,n,o){if(!(!this.containerRect||Math.abs(e)<=0)){var r=this.containerRect.width/2+this.containerRect.left,a=this.containerRect.height/2+this.containerRect.top+this.scrollTop,s,c;i===1&&(this.positionChanged=!1);var m=this.getDragAllowedAxises(0,e),f=m.allowY,v=m.allowX;this.positionChanged&&(s=this.left/(this.scale-e),c=this.top/(this.scale-e),this.pageX=r-s,this.pageY=a-c,this.positionChanged=!1);var x=this.getPossibleSwipeDragCords(e),w,O,K=r-this.pageX,Y=a-this.pageY;if(i-e>1){var Z=(i-e)/Math.abs(e);K=(e<0?-K:K)+this.left*(Z+(e<0?-1:1)),Y=(e<0?-Y:Y)+this.top*(Z+(e<0?-1:1)),w=K/Z,O=Y/Z}else{var Z=(i-e)*e;w=K*Z,O=Y*Z}n&&(v?this.isBeyondPossibleLeft(w,x.minX)?w=x.minX:this.isBeyondPossibleRight(w,x.maxX)&&(w=x.maxX):i>1&&(wx.maxX&&(w=x.maxX)),f?this.isBeyondPossibleTop(O,x.minY)?O=x.minY:this.isBeyondPossibleBottom(O,x.maxY)&&(O=x.maxY):i>1&&(Ox.maxY&&(O=x.maxY))),this.setZoomStyles({x:w,y:O,scale:i}),this.left=w,this.top=O,o&&this.setZoomImageSize()}},t.prototype.resetImageTranslate=function(i){if(this.isImageSlide(i)){var e=this.core.getSlideItem(i).find(".lg-image").first();this.imageReset=!1,e.removeClass("reset-transition reset-transition-y reset-transition-x"),this.core.outer.removeClass("lg-actual-size"),e.css("width","auto").css("height","auto"),setTimeout(function(){e.removeClass("no-transition")},10)}},t.prototype.setZoomImageSize=function(){var i=this,e=this.core.getSlideItem(this.core.index).find(".lg-image").first();setTimeout(function(){var n=i.getCurrentImageActualSizeScale();i.scale>=n&&(e.addClass("no-transition"),i.imageReset=!0)},Zb),setTimeout(function(){var n=i.getCurrentImageActualSizeScale();if(i.scale>=n){var o=i.getDragAllowedAxises(i.scale);e.css("width",e.get().naturalWidth+"px").css("height",e.get().naturalHeight+"px"),i.core.outer.addClass("lg-actual-size"),o.allowX&&o.allowY?e.addClass("reset-transition"):o.allowX&&!o.allowY?e.addClass("reset-transition-x"):!o.allowX&&o.allowY&&e.addClass("reset-transition-y")}},Zb+50)},t.prototype.setZoomStyles=function(i){var e=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),n=this.core.getSlideItem(this.core.index).find(".lg-image").first(),o=this.core.outer.find(".lg-current .lg-dummy-img").first();this.scale=i.scale,n.css("transform","scale3d("+i.scale+", "+i.scale+", 1)"),o.css("transform","scale3d("+i.scale+", "+i.scale+", 1)");var r="translate3d("+i.x+"px, "+i.y+"px, 0)";e.css("transform",r)},t.prototype.setActualSize=function(i,e){var n=this;if(!this.zoomInProgress){this.zoomInProgress=!0;var o=this.core.galleryItems[this.core.index];this.resetImageTranslate(i),setTimeout(function(){if(!(!o.src||n.core.outer.hasClass("lg-first-slide-loading"))){var r=n.getCurrentImageActualSizeScale(),a=n.scale;n.core.outer.hasClass("lg-zoomed")?n.scale=1:n.scale=n.getScale(r),n.setPageCords(e),n.beginZoom(n.scale),n.zoomImage(n.scale,n.scale-a,!0,!0)}},50),setTimeout(function(){n.core.outer.removeClass("lg-grabbing").addClass("lg-grab")},60),setTimeout(function(){n.zoomInProgress=!1},Zb+110)}},t.prototype.getNaturalWidth=function(i){var e=this.core.getSlideItem(i).find(".lg-image").first(),n=this.core.galleryItems[i].width;return n?parseFloat(n):e.get().naturalWidth},t.prototype.getActualSizeScale=function(i,e){var n,o;return i>=e?(n=i/e,o=n||2):o=1,o},t.prototype.getCurrentImageActualSizeScale=function(){var i=this.core.getSlideItem(this.core.index).find(".lg-image").first(),e=i.get().offsetWidth,n=this.getNaturalWidth(this.core.index)||e;return this.getActualSizeScale(n,e)},t.prototype.getPageCords=function(i){var e={};if(i)e.x=i.pageX||i.touches[0].pageX,e.y=i.pageY||i.touches[0].pageY;else{var n=this.core.$content.get().getBoundingClientRect();e.x=n.width/2+n.left,e.y=n.height/2+this.scrollTop+n.top}return e},t.prototype.setPageCords=function(i){var e=this.getPageCords(i);this.pageX=e.x,this.pageY=e.y},t.prototype.manageActualPixelClassNames=function(){var i=this.core.getElementById("lg-actual-size");i.removeClass(this.settings.actualSizeIcons.zoomIn).addClass(this.settings.actualSizeIcons.zoomOut)},t.prototype.beginZoom=function(i){return this.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),i>1?(this.core.outer.addClass("lg-zoomed"),this.manageActualPixelClassNames()):this.resetZoom(),i>1},t.prototype.getScale=function(i){var e=this.getCurrentImageActualSizeScale();return i<1?i=1:i>e&&(i=e),i},t.prototype.init=function(){var i=this;if(this.settings.zoom){this.buildTemplates(),this.enableZoomOnSlideItemLoad();var e=null;this.core.outer.on("dblclick.lg",function(n){i.$LG(n.target).hasClass("lg-image")&&i.setActualSize(i.core.index,n)}),this.core.outer.on("touchstart.lg",function(n){var o=i.$LG(n.target);n.touches.length===1&&o.hasClass("lg-image")&&(e?(clearTimeout(e),e=null,n.preventDefault(),i.setActualSize(i.core.index,n)):e=setTimeout(function(){e=null},300))}),this.core.LGel.on(as.containerResize+".zoom "+as.rotateRight+".zoom "+as.rotateLeft+".zoom "+as.flipHorizontal+".zoom "+as.flipVertical+".zoom",function(){if(!(!i.core.lgOpened||!i.isImageSlide(i.core.index)||i.core.touchAction)){var n=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();i.top=0,i.left=0,i.setZoomEssentials(),i.setZoomSwipeStyles(n,{x:0,y:0}),i.positionChanged=!0}}),this.$LG(window).on("scroll.lg.zoom.global"+this.core.lgId,function(){i.core.lgOpened&&(i.scrollTop=i.$LG(window).scrollTop())}),this.core.getElementById("lg-zoom-out").on("click.lg",function(){if(i.isImageSlide(i.core.index)){var n=0;i.imageReset&&(i.resetImageTranslate(i.core.index),n=50),setTimeout(function(){var o=i.scale-i.settings.scale;o<1&&(o=1),i.beginZoom(o),i.zoomImage(o,-i.settings.scale,!0,!i.settings.infiniteZoom)},n)}}),this.core.getElementById("lg-zoom-in").on("click.lg",function(){i.zoomIn()}),this.core.getElementById("lg-actual-size").on("click.lg",function(){i.setActualSize(i.core.index)}),this.core.LGel.on(as.beforeOpen+".zoom",function(){i.core.outer.find(".lg-item").removeClass("lg-zoomable")}),this.core.LGel.on(as.afterOpen+".zoom",function(){i.scrollTop=i.$LG(window).scrollTop(),i.pageX=i.core.outer.width()/2,i.pageY=i.core.outer.height()/2+i.scrollTop,i.scale=1}),this.core.LGel.on(as.afterSlide+".zoom",function(n){var o=n.detail.prevIndex;i.scale=1,i.positionChanged=!1,i.zoomInProgress=!1,i.resetZoom(o),i.resetImageTranslate(o),i.isImageSlide(i.core.index)&&i.setZoomEssentials()}),this.zoomDrag(),this.pinchZoom(),this.zoomSwipe(),this.zoomableTimeout=!1,this.positionChanged=!1,this.zoomInProgress=!1}},t.prototype.zoomIn=function(){if(this.isImageSlide(this.core.index)){var i=this.scale+this.settings.scale;this.settings.infiniteZoom||(i=this.getScale(i)),this.beginZoom(i),this.zoomImage(i,Math.min(this.settings.scale,i-this.scale),!0,!this.settings.infiniteZoom)}},t.prototype.resetZoom=function(i){this.core.outer.removeClass("lg-zoomed lg-zoom-drag-transition");var e=this.core.getElementById("lg-actual-size"),n=this.core.getSlideItem(i!==void 0?i:this.core.index);e.removeClass(this.settings.actualSizeIcons.zoomOut).addClass(this.settings.actualSizeIcons.zoomIn),n.find(".lg-img-wrap").first().removeAttr("style"),n.find(".lg-image").first().removeAttr("style"),this.scale=1,this.left=0,this.top=0,this.setPageCords()},t.prototype.getTouchDistance=function(i){return Math.sqrt((i.touches[0].pageX-i.touches[1].pageX)*(i.touches[0].pageX-i.touches[1].pageX)+(i.touches[0].pageY-i.touches[1].pageY)*(i.touches[0].pageY-i.touches[1].pageY))},t.prototype.pinchZoom=function(){var i=this,e=0,n=!1,o=1,r=0,a=this.core.getSlideItem(this.core.index);this.core.outer.on("touchstart.lg",function(s){if(a=i.core.getSlideItem(i.core.index),!!i.isImageSlide(i.core.index)&&s.touches.length===2){if(s.preventDefault(),i.core.outer.hasClass("lg-first-slide-loading"))return;o=i.scale||1,i.core.outer.removeClass("lg-zoom-drag-transition lg-zoom-dragging"),i.setPageCords(s),i.resetImageTranslate(i.core.index),i.core.touchAction="pinch",e=i.getTouchDistance(s)}}),this.core.$inner.on("touchmove.lg",function(s){if(s.touches.length===2&&i.core.touchAction==="pinch"&&(i.$LG(s.target).hasClass("lg-item")||a.get().contains(s.target))){s.preventDefault();var c=i.getTouchDistance(s),m=e-c;if(!n&&Math.abs(m)>5&&(n=!0),n){r=i.scale;var f=Math.max(1,o+-m*.02);i.scale=Math.round((f+Number.EPSILON)*100)/100;var v=i.scale-r;i.zoomImage(i.scale,Math.round((v+Number.EPSILON)*100)/100,!1,!1)}}}),this.core.$inner.on("touchend.lg",function(s){if(i.core.touchAction==="pinch"&&(i.$LG(s.target).hasClass("lg-item")||a.get().contains(s.target))){if(n=!1,e=0,i.scale<=1)i.resetZoom();else{var c=i.getCurrentImageActualSizeScale();if(i.scale>=c){var m=c-i.scale;m===0&&(m=.01),i.zoomImage(c,m,!1,!0)}i.manageActualPixelClassNames(),i.core.outer.addClass("lg-zoomed")}i.core.touchAction=void 0}})},t.prototype.touchendZoom=function(i,e,n,o,r){var a=e.x-i.x,s=e.y-i.y,c=Math.abs(a)/r+1,m=Math.abs(s)/r+1;c>2&&(c+=1),m>2&&(m+=1),a=a*c,s=s*m;var f=this.core.getSlideItem(this.core.index).find(".lg-img-wrap").first(),v={};v.x=this.left+a,v.y=this.top+s;var x=this.getPossibleSwipeDragCords();(Math.abs(a)>15||Math.abs(s)>15)&&(o&&(this.isBeyondPossibleTop(v.y,x.minY)?v.y=x.minY:this.isBeyondPossibleBottom(v.y,x.maxY)&&(v.y=x.maxY)),n&&(this.isBeyondPossibleLeft(v.x,x.minX)?v.x=x.minX:this.isBeyondPossibleRight(v.x,x.maxX)&&(v.x=x.maxX)),o?this.top=v.y:v.y=this.top,n?this.left=v.x:v.x=this.left,this.setZoomSwipeStyles(f,v),this.positionChanged=!0)},t.prototype.getZoomSwipeCords=function(i,e,n,o,r){var a={};if(o){if(a.y=this.top+(e.y-i.y),this.isBeyondPossibleTop(a.y,r.minY)){var s=r.minY-a.y;a.y=r.minY-s/6}else if(this.isBeyondPossibleBottom(a.y,r.maxY)){var c=a.y-r.maxY;a.y=r.maxY+c/6}}else a.y=this.top;if(n){if(a.x=this.left+(e.x-i.x),this.isBeyondPossibleLeft(a.x,r.minX)){var m=r.minX-a.x;a.x=r.minX-m/6}else if(this.isBeyondPossibleRight(a.x,r.maxX)){var f=a.x-r.maxX;a.x=r.maxX+f/6}}else a.x=this.left;return a},t.prototype.isBeyondPossibleLeft=function(i,e){return i>=e},t.prototype.isBeyondPossibleRight=function(i,e){return i<=e},t.prototype.isBeyondPossibleTop=function(i,e){return i>=e},t.prototype.isBeyondPossibleBottom=function(i,e){return i<=e},t.prototype.isImageSlide=function(i){var e=this.core.galleryItems[i];return this.core.getSlideType(e)==="image"},t.prototype.getPossibleSwipeDragCords=function(i){var e=this.core.getSlideItem(this.core.index).find(".lg-image").first(),n=this.core.mediaContainerPosition.bottom,o=e.get().getBoundingClientRect(),r=o.height,a=o.width;i&&(r=r+i*r,a=a+i*a);var s=(r-this.containerRect.height)/2,c=(this.containerRect.height-r)/2+n,m=(a-this.containerRect.width)/2,f=(this.containerRect.width-a)/2,v={minY:s,maxY:c,minX:m,maxX:f};return v},t.prototype.setZoomSwipeStyles=function(i,e){i.css("transform","translate3d("+e.x+"px, "+e.y+"px, 0)")},t.prototype.zoomSwipe=function(){var i=this,e={},n={},o=!1,r=!1,a=!1,s=new Date,c=new Date,m,f,v=this.core.getSlideItem(this.core.index);this.core.$inner.on("touchstart.lg",function(x){if(i.isImageSlide(i.core.index)&&(v=i.core.getSlideItem(i.core.index),(i.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))&&x.touches.length===1&&i.core.outer.hasClass("lg-zoomed"))){x.preventDefault(),s=new Date,i.core.touchAction="zoomSwipe",f=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var w=i.getDragAllowedAxises(0);a=w.allowY,r=w.allowX,(r||a)&&(e=i.getSwipeCords(x)),m=i.getPossibleSwipeDragCords(),i.core.outer.addClass("lg-zoom-dragging lg-zoom-drag-transition")}}),this.core.$inner.on("touchmove.lg",function(x){if(x.touches.length===1&&i.core.touchAction==="zoomSwipe"&&(i.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){x.preventDefault(),i.core.touchAction="zoomSwipe",n=i.getSwipeCords(x);var w=i.getZoomSwipeCords(e,n,r,a,m);(Math.abs(n.x-e.x)>15||Math.abs(n.y-e.y)>15)&&(o=!0,i.setZoomSwipeStyles(f,w))}}),this.core.$inner.on("touchend.lg",function(x){if(i.core.touchAction==="zoomSwipe"&&(i.$LG(x.target).hasClass("lg-item")||v.get().contains(x.target))){if(x.preventDefault(),i.core.touchAction=void 0,i.core.outer.removeClass("lg-zoom-dragging"),!o)return;o=!1,c=new Date;var w=c.valueOf()-s.valueOf();i.touchendZoom(e,n,r,a,w)}})},t.prototype.zoomDrag=function(){var i=this,e={},n={},o=!1,r=!1,a=!1,s=!1,c,m,f,v;this.core.outer.on("mousedown.lg.zoom",function(x){if(i.isImageSlide(i.core.index)){var w=i.core.getSlideItem(i.core.index);if(i.$LG(x.target).hasClass("lg-item")||w.get().contains(x.target)){c=new Date,v=i.core.getSlideItem(i.core.index).find(".lg-img-wrap").first();var O=i.getDragAllowedAxises(0);s=O.allowY,a=O.allowX,i.core.outer.hasClass("lg-zoomed")&&i.$LG(x.target).hasClass("lg-object")&&(a||s)&&(x.preventDefault(),e=i.getDragCords(x),f=i.getPossibleSwipeDragCords(),o=!0,i.core.outer.removeClass("lg-grab").addClass("lg-grabbing lg-zoom-drag-transition lg-zoom-dragging"))}}}),this.$LG(window).on("mousemove.lg.zoom.global"+this.core.lgId,function(x){if(o){r=!0,n=i.getDragCords(x);var w=i.getZoomSwipeCords(e,n,a,s,f);i.setZoomSwipeStyles(v,w)}}),this.$LG(window).on("mouseup.lg.zoom.global"+this.core.lgId,function(x){if(o){if(m=new Date,o=!1,i.core.outer.removeClass("lg-zoom-dragging"),r&&(e.x!==n.x||e.y!==n.y)){n=i.getDragCords(x);var w=m.valueOf()-c.valueOf();i.touchendZoom(e,n,a,s,w)}r=!1}i.core.outer.removeClass("lg-grabbing").addClass("lg-grab")})},t.prototype.closeGallery=function(){this.resetZoom(),this.zoomInProgress=!1},t.prototype.destroy=function(){this.$LG(window).off(".lg.zoom.global"+this.core.lgId),this.core.LGel.off(".lg.zoom"),this.core.LGel.off(".zoom"),clearTimeout(this.zoomableTimeout),this.zoomableTimeout=!1},t})(),LR=Ple;function Lle(t,i){t&1&&(y(0),S(1,"translate")),t&2&&ee(" ",k(1,1,"labels.heading.Add Client Identifier")," ")}function Ale(t,i){if(t&1&&(y(0),S(1,"translate"),S(2,"translate")),t&2){let e=M();Ua(" ",k(1,3,"labels.heading.Upload")," ",e.entityType," ",k(2,5,"labels.heading.Documents")," ")}}function zle(t,i){if(t&1&&(h(0,"mat-option",10),y(1),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ee(" ",e.name," ")}}function Rle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),St(" ",k(2,3,"labels.inputs.Document Type")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Nle(t,i){if(t&1&&(h(0,"mat-option",10),y(1),_()),t&2){let e=i.$implicit;D("value",e.value),p(),ee(" ",e.label," ")}}function Fle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),St(" ",k(2,3,"labels.inputs.Status")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Vle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),St(" ",k(2,3,"labels.inputs.Document Key")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Ble(t,i){if(t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",9),Xe(5,zle,2,2,"mat-option",10,ht),_(),E(7,Rle,7,9,"mat-error"),_(),h(8,"mat-form-field",3)(9,"mat-label"),y(10),S(11,"translate"),_(),h(12,"mat-select",11),Xe(13,Nle,2,2,"mat-option",10,ht),_(),E(15,Fle,7,9,"mat-error"),_(),h(16,"mat-form-field",3)(17,"mat-label"),y(18),S(19,"translate"),_(),F(20,"input",12),E(21,Vle,7,9,"mat-error"),_(),h(22,"mat-form-field",3)(23,"mat-label"),y(24),S(25,"translate"),_(),F(26,"input",13),_()),t&2){let e=M();p(2),T(k(3,7,"labels.inputs.Document Type")),p(3),Ze(e.allowedDocumentTypes),p(2),I(e.uploadDocumentForm.controls.documentTypeId!=null&&e.uploadDocumentForm.controls.documentTypeId.hasError("required")?7:-1),p(3),T(k(11,9,"labels.inputs.Status")),p(3),Ze(e.statusOptions),p(2),I(e.uploadDocumentForm.controls.status!=null&&e.uploadDocumentForm.controls.status.hasError("required")?15:-1),p(3),T(k(19,11,"labels.inputs.Document Key")),p(3),I(e.uploadDocumentForm.controls.documentKey!=null&&e.uploadDocumentForm.controls.documentKey.hasError("required")?21:-1),p(3),T(k(25,13,"labels.inputs.Description"))}}function jle(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),St(" ",k(2,3,"labels.inputs.File Name")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function Hle(t,i){t&1&&(h(0,"mat-form-field",3)(1,"mat-label"),y(2),S(3,"translate"),_(),F(4,"input",13),_()),t&2&&(p(2),T(k(3,1,"labels.inputs.Description")))}function Ule(t,i){t&1&&(y(0),S(1,"translate")),t&2&&ee(" ",k(1,1,"labels.buttons.Add")," ")}function $le(t,i){t&1&&(y(0),S(1,"translate")),t&2&&ee(" ",k(1,1,"labels.buttons.Upload")," ")}var AR=(()=>{class t{constructor(){this.dialogRef=d(qt),this.formBuilder=d(Rs),this.data=d(En),this.uploadDocumentData=[],this.documentIdentifier=!1,this.allowedDocumentTypes=[],this.statusOptions=[];let e=this.data;this.documentIdentifier=e.documentIdentifier,this.entityType=e.entityType,this.allowedDocumentTypes=e.allowedDocumentTypes||[],this.statusOptions=e.statusOptions||[]}ngOnInit(){this.createUploadDocumentForm()}createUploadDocumentForm(){this.documentIdentifier?this.uploadDocumentForm=this.formBuilder.group({documentTypeId:["",en.required],status:["Active",en.required],documentKey:["",en.required],description:[""],fileName:["",en.required],file:[""]}):this.uploadDocumentForm=this.formBuilder.group({fileName:["",en.required],description:[""],file:[""]})}onFileSelect(e){if(e.target.files.length>0){let n=e.target.files[0];this.uploadDocumentForm.get("file").setValue(n)}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-upload-document-dialog"]],decls:21,vars:14,consts:[["mat-dialog-title",""],[1,"m-l-10","m-r-10"],[1,"layout-column",3,"formGroup"],[1,"flex-fill"],["formControlName","fileName","required","","matInput",""],["flex","60%",3,"change"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"],["formControlName","documentTypeId","required",""],[3,"value"],["formControlName","status","required",""],["formControlName","documentKey","required","","matInput",""],["formControlName","description","matInput",""]],template:function(n,o){n&1&&(h(0,"h1",0),E(1,Lle,2,3)(2,Ale,3,7),_(),h(3,"div",1)(4,"form",2),E(5,Ble,27,15),h(6,"mat-form-field",3)(7,"mat-label"),y(8),S(9,"translate"),_(),F(10,"input",4),E(11,jle,7,9,"mat-error"),_(),E(12,Hle,5,3,"mat-form-field",3),h(13,"mifosx-file-upload",5),N("change",function(a){return o.onFileSelect(a)}),_(),h(14,"mat-dialog-actions",6)(15,"button",7),y(16),S(17,"translate"),_(),h(18,"button",8),E(19,Ule,2,3)(20,$le,2,3),_()()()()),n&2&&(p(),I(o.documentIdentifier?1:2),p(3),D("formGroup",o.uploadDocumentForm),p(),I(o.documentIdentifier?5:-1),p(3),T(k(9,10,"labels.inputs.File Name")),p(3),I(o.uploadDocumentForm.controls.fileName.hasError("required")?11:-1),p(),I(o.documentIdentifier?-1:12),p(4),T(k(17,12,"labels.buttons.Cancel")),p(2),D("disabled",!o.uploadDocumentForm.valid)("mat-dialog-close",o.uploadDocumentForm.value),p(),I(o.documentIdentifier?19:20))},dependencies:[he,ve,zs,yi,mn,tr,Ir,ui,Ao,Bt,Cn,ao,ti,qn,ln,vt,xn,Af,zn,Ln,Te],encapsulation:2})}}return t})();var zR=(()=>{class t{constructor(){this.previewCache=new Map}isPreviewable(e){let n=this.detectType(e.mimeType,e.fileName,e.fileData);return n==="image"||n==="pdf"}resolvePreviewUrl(e,n){return Hr(this,null,function*(){let o=this.previewCache.get(e.id);if(o)return{url:o.url,type:o.type};let r=this.getInlineData(e);if(r){let m=this.detectType(r.mimeType,e.fileName,e.fileData);return this.previewCache.set(e.id,{url:r.url,type:m,isObjectUrl:r.isObjectUrl}),{url:r.url,type:m}}let a=yield L6(n(e)),s=URL.createObjectURL(a),c=this.detectType(a.type||e.mimeType,e.fileName,e.fileData);return this.previewCache.set(e.id,{url:s,type:c,isObjectUrl:!0}),{url:s,type:c}})}release(e){let n=this.previewCache.get(e);n?.isObjectUrl&&URL.revokeObjectURL(n.url),this.previewCache.delete(e)}clear(){this.previewCache.forEach(e=>{e.isObjectUrl&&URL.revokeObjectURL(e.url)}),this.previewCache.clear()}getInlineData(e){if(!e.fileData)return null;let n=e.fileData.match(/^data:(.*?);/);return{url:e.fileData,mimeType:n?n[1]:e.mimeType,isObjectUrl:!1}}detectType(e,n,o){let r=(e||this.extractMimeFromData(o)||"").toLowerCase();if(r.includes("pdf"))return"pdf";if(r.startsWith("image/"))return"image";let a=(n||"").split(".").pop()?.toLowerCase();return a==="pdf"?"pdf":a&&["jpg","jpeg","png","gif","bmp","webp","svg"].includes(a)?"image":"other"}extractMimeFromData(e){if(!e||!e.startsWith("data:"))return;let n=e.match(/^data:(.*?);/);return n?n[1]:void 0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Gle=["lightboxRoot"];function Wle(t,i){if(t&1){let e=le();h(0,"div",7)(1,"button",8),N("click",function(){G(e);let o=M();return W(o.uploadDocument())}),F(2,"fa-icon",9),y(3),S(4,"translate"),_()()}t&2&&(p(3),ee("",k(4,1,"labels.buttons.Add")," "))}function qle(t,i){if(t&1&&F(0,"img",13),t&2){let e=M().$implicit,n=M(2);D("src",n.previewThumbnails[e.id],_1)("alt",e.name)("title",e.name)}}function Yle(t,i){if(t&1&&(h(0,"div",14),F(1,"fa-icon",22),h(2,"span"),y(3),_()()),t&2){let e=M().$implicit;p(3),T(e.fileName||e.name)}}function Qle(t,i){t&1&&(h(0,"div",15),F(1,"fa-icon",23),_())}function Kle(t,i){if(t&1&&(h(0,"div",18),y(1),_()),t&2){let e=M().$implicit;p(),T(e.fileName)}}function Xle(t,i){if(t&1&&(h(0,"div",19),y(1),_()),t&2){let e=M().$implicit;p(),T(e.description)}}function Zle(t,i){if(t&1){let e=le();h(0,"button",24),S(1,"translate"),N("click",function(){G(e);let o=M().$implicit,r=M(2);return W(r.deleteDocument(o.id,o.name))}),F(2,"fa-icon",25),_()}t&2&&ne("aria-label",k(1,1,"labels.buttons.Delete"))}function Jle(t,i){if(t&1){let e=le();h(0,"div",11)(1,"div",12),S(2,"translate"),N("keydown.enter",function(){let o=G(e).$implicit,r=M(2);return W(r.isPreviewable(o)&&r.openPreview(o))})("keydown.space",function(){let o=G(e).$implicit,r=M(2);return W(r.isPreviewable(o)&&r.openPreview(o))})("click",function(){let o=G(e).$implicit,r=M(2);return W(r.isPreviewable(o)&&r.openPreview(o))}),E(3,qle,1,3,"img",13)(4,Yle,4,1,"div",14),E(5,Qle,2,0,"div",15),_(),h(6,"div",16)(7,"div",17),y(8),_(),E(9,Kle,2,1,"div",18),E(10,Xle,2,1,"div",19),h(11,"div",20),ot(12,Zle,3,3,"button",21),_()()()}if(t&2){let e=i.$implicit,n=M(2);p(),oe("clickable",n.isPreviewable(e)),ne("aria-label",k(2,9,"labels.buttons.Preview")+": "+e.name),p(2),I(n.previewThumbnails[e.id]?3:4),p(2),I(n.isPreviewable(e)?5:-1),p(3),T(e.name),p(),I(e.fileName?9:-1),p(),I(e.description?10:-1),p(2),D("mifosxHasPermission","DELETE_DOCUMENT")}}function e1e(t,i){if(t&1&&(h(0,"div")(1,"div",10),Xe(2,Jle,13,11,"div",11,M5().trackByDocumentId,!0),_()()),t&2){let e=M();p(2),Ze(e.entityDocuments)}}function t1e(t,i){t&1&&(h(0,"div",5)(1,"p"),y(2),S(3,"translate"),_(),h(4,"p",26),y(5),S(6,"translate"),_()()),t&2&&(p(2),T(k(3,2,"labels.text.NoDocuments")),p(3),T(k(6,4,"labels.text.UploadDocumentHint")))}var RR=(()=>{class t{constructor(){this.dialog=d(Wi),this.savingsService=d(Ih),this.loansService=d(Eh),this.clientsService=d(kh),this.documentPreviewService=d(zR),this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[LR,PR,TR]}ngOnInit(){this.prefetchThumbnails()}ngOnDestroy(){this.destroyLightbox(),Array.isArray(this.entityDocuments)&&this.entityDocuments.forEach(e=>this.documentPreviewService.release(e.id))}trackByDocumentId(e,n){return n?.id}uploadDocument(){this.dialog.open(AR,{data:{documentIdentifier:!1,entityType:""},width:"33rem"}).afterClosed().subscribe(n=>{if(n){let o=new FormData;o.append("name",n.fileName),o.append("file",n.file),o.append("description",n.description),this.callbackUpload(o).subscribe(r=>{let a={id:r.resourceId,parentEntityType:this.entityType,parentEntityId:this.entityId,name:n.fileName,description:n.description,fileName:n.file.name};this.entityDocuments.push(a),this.setThumbnail(a)})}})}deleteDocument(e,n){this.dialog.open(Rr,{data:{deleteContext:`Document: ${n}`}}).afterClosed().subscribe(r=>{if(r.delete){this.callbackDelete(e);let a=this.entityDocuments.findIndex(s=>s.id===e);a!==-1&&this.entityDocuments.splice(a,1),this.documentPreviewService.release(e),delete this.previewThumbnails[e]}})}isPreviewable(e){return this.documentPreviewService.isPreviewable(e)}openPreview(e){return Hr(this,null,function*(){if(this.isPreviewable(e))try{let n=this.entityDocuments.filter(a=>this.isPreviewable(a)),o=[];for(let a of n)try{let s=yield this.documentPreviewService.resolvePreviewUrl(a,c=>this.getDownloadObservable(c.id));s.type==="image"&&(this.previewThumbnails[a.id]=s.url),o.push({src:s.url,thumb:s.type==="image"?s.url:void 0,subHtml:this.buildSubHtml(a),iframe:s.type==="pdf"})}catch(s){console.error("Preview failed for document",a.id,s)}if(!o.length)return;let r=Math.max(0,n.findIndex(a=>a.id===e.id));this.destroyLightbox(),this.lightboxInstance=OR(this.lightboxRoot.nativeElement,{dynamic:!0,dynamicEl:o,plugins:this.lightboxPlugins,download:!1,closable:!0,escKey:!0,zoomFromOrigin:!0}),this.lightboxInstance.openGallery(r)}catch(n){console.error("Unable to open preview",n)}})}destroyLightbox(){this.lightboxInstance&&(this.lightboxInstance.destroy(),this.lightboxInstance=null)}getDownloadObservable(e){return this.entityType==="savings"?this.savingsService.downloadSavingsDocument(this.entityId,e):this.entityType==="loans"?this.loansService.downloadLoanDocument(this.entityId,e):this.clientsService.downloadClientDocument(this.entityId,e)}buildSubHtml(e){let n=e.description?`

${this.escapeHtml(e.description)}

`:"",o=e.fileName?`

${this.escapeHtml(e.fileName)}

`:"";return`

${this.escapeHtml(e.name||"Document")}

${n}${o}
`}escapeHtml(e){return e?e.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):""}setThumbnail(e){this.documentPreviewService.isPreviewable(e)&&this.documentPreviewService.resolvePreviewUrl(e,()=>this.getDownloadObservable(e.id)).then(n=>{n.type==="image"&&(this.previewThumbnails[e.id]=n.url)}).catch(()=>{})}prefetchThumbnails(){Array.isArray(this.entityDocuments)&&this.entityDocuments.forEach(e=>this.setThumbnail(e))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-documents-tab"]],viewQuery:function(n,o){if(n&1&&ue(Gle,7),n&2){let r;U(r=$())&&(o.lightboxRoot=r.first)}},inputs:{entityId:"entityId",entityType:"entityType",entityDocuments:"entityDocuments",callbackUpload:"callbackUpload",callbackDelete:"callbackDelete"},decls:10,vars:5,consts:[["lightboxRoot",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center","header-row"],[1,"flex-90"],["class","flex-10",4,"mifosxHasPermission"],[1,"empty-state"],[1,"document-lightbox-host"],[1,"flex-10"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["icon","plus",1,"m-r-10"],[1,"document-grid"],[1,"document-card"],["role","button","tabindex","0",1,"thumb",3,"keydown.enter","keydown.space","click"],["loading","lazy",3,"src","alt","title"],[1,"placeholder"],[1,"preview-overlay"],[1,"card-body"],[1,"title"],[1,"meta"],[1,"description"],[1,"actions"],["mat-icon-button","","color","warn","title","Delete",3,"click",4,"mifosxHasPermission"],["icon","file"],["icon","eye"],["mat-icon-button","","color","warn","title","Delete",3,"click"],["icon","times"],[1,"muted"]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2)(2,"h3",3),y(3),S(4,"translate"),_(),ot(5,Wle,5,3,"div",4),_(),E(6,e1e,4,0,"div")(7,t1e,7,6,"div",5),_(),F(8,"div",6,0)),n&2&&(p(3),T(k(4,3,"labels.heading.Documents")),p(2),D("mifosxHasPermission","CREATE_DOCUMENT"),p(),I(o.entityDocuments!=null&&o.entityDocuments.length?6:7))},dependencies:[he,ve,vt,Ps,Yt,Te],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.tab-container[_ngcontent-%COMP%]{padding:1rem;margin:1rem 0}.header-row[_ngcontent-%COMP%]{display:flex;align-items:center}.document-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:1rem;margin-top:.75rem}.document-card[_ngcontent-%COMP%]{width:240px;background:#fff;border:1px solid #bdc3c7;border-radius:4px;overflow:hidden;box-shadow:0 1px 4px #353b3b1f;display:flex;flex-direction:column;transition:transform .2s ease,box-shadow .2s ease}.document-card[_ngcontent-%COMP%]:hover{transform:translateY(-1px);box-shadow:0 4px 12px #353b3b24}.thumb[_ngcontent-%COMP%]{position:relative;background:#ecf0f1;min-height:9.5rem;display:flex;align-items:center;justify-content:center;cursor:default}.thumb.clickable[_ngcontent-%COMP%]{cursor:pointer}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.preview-overlay[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;right:.5rem;background:#ffffffe6;border-radius:50%;padding:.4rem;color:#3498db;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease}.thumb[_ngcontent-%COMP%]:hover .preview-overlay[_ngcontent-%COMP%], .thumb[_ngcontent-%COMP%]:focus .preview-overlay[_ngcontent-%COMP%]{opacity:1}.placeholder[_ngcontent-%COMP%]{color:#f5f5f5;text-align:center;padding:.875rem;display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}.placeholder[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:22px}.placeholder[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:12px;line-height:1.2}.preview-btn[_ngcontent-%COMP%]{position:absolute;right:.5rem;bottom:.5rem;background:#000000a6;color:#fff}.card-body[_ngcontent-%COMP%]{padding:.75rem .875rem .875rem;display:flex;flex-direction:column;gap:.375rem}.title[_ngcontent-%COMP%]{font-weight:700;color:#353b3b}.meta[_ngcontent-%COMP%]{font-size:12px;color:#7f8c8d}.description[_ngcontent-%COMP%]{font-size:13px;color:#353b3b;min-height:32px}.actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:.375rem;margin-top:.25rem}.empty-state[_ngcontent-%COMP%]{margin-top:.75rem;padding:1.25rem;text-align:center;background:#f5f5f5;border:1px dashed #bdc3c7;border-radius:4px;color:#353b3b;display:flex;flex-direction:column;gap:.5rem;align-items:center}.empty-state[_ngcontent-%COMP%] .muted[_ngcontent-%COMP%]{color:#95a5a6;margin:.25rem 0 0;font-size:.8125rem}.document-lightbox-host[_ngcontent-%COMP%]{display:none}"]})}}return t})();var Lh=class extends nr{constructor(i){super(i),this.controlType="checkbox"}};var Ah=class extends nr{constructor(i={}){super(i),this.controlType="datepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var zh=class extends nr{constructor(i={}){super(i),this.controlType="datetimepicker",this.minDate=i.minDate||new Date(2e3,0,1),this.maxDate=i.maxDate||new Date}};var Rh=class extends nr{constructor(i={}){super(i),this.controlType="input",this.type=i.type||"text"}};var Nh=class extends nr{constructor(i={}){super(i),this.controlType="select",this.options=i.options||{label:"",value:"",data:[]}}};var Fh=(()=>{class t{constructor(){this.dateUtils=d(go),this.settingsService=d(Xt),this.systemFields=["id","created_at","updated_at"],this.entitiesIdFields=["client_id","savings_account_id","savings_transaction_id","loan_id","group_id","center_id","office_id","product_loan_id","savings_product_id","share_product_id"]}getFormfields(e,n,o){return e.map(r=>{let a=this.toDisplayLabel(r.columnName);switch(r.columnDisplayType){case"INTEGER":case"STRING":case"DECIMAL":case"TEXT":return new Rh({controlName:r.columnName,label:a,value:"",type:r.columnDisplayType==="INTEGER"||r.columnDisplayType==="DECIMAL"?"number":"text",required:!r.isColumnNullable});case"BOOLEAN":return new Lh({controlName:r.columnName,label:a,value:"",type:"checkbox",required:!r.isColumnNullable});case"CODELOOKUP":return new Nh({controlName:r.columnName,label:a,value:"",options:{label:"value",value:"id",data:r.columnValues},required:!r.isColumnNullable});case"DATE":return n.push(r.columnName),o.dateFormat||(o.dateFormat=go.DEFAULT_DATEFORMAT),new Ah({controlName:r.columnName,label:a,value:"",maxDate:this.settingsService.maxAllowedDate,required:!r.isColumnNullable});case"DATETIME":return n.push(r.columnName),o.dateFormat=go.DEFAULT_DATETIMEFORMAT,new zh({controlName:r.columnName,label:a,value:"",maxDate:this.settingsService.maxAllowedDate,required:!r.isColumnNullable})}})}isEntityId(e){return this.entitiesIdFields.includes(e)}isSystemColumn(e){return this.systemFields.includes(e)||this.entitiesIdFields.includes(e)}filterSystemColumns(e){return e.filter((n,o)=>{if(!this.isSystemColumn(n.columnName))return n.idx=o,n})}getInputName(e){return e.columnName&&e.columnName.includes("_cd_")?e.columnName.split("_cd_")[0]:e.columnName}isNumeric(e){return this.isColumnType(e,"INTEGER")||this.isColumnType(e,"DECIMAL")}isDate(e){return this.isColumnType(e,"DATE")||this.isColumnType(e,"DATETIME")}isBoolean(e){return this.isColumnType(e,"BOOLEAN")}isDropdown(e){return this.isColumnType(e,"CODELOOKUP")}isString(e){return this.isColumnType(e,"STRING")}isText(e){return this.isColumnType(e,"TEXT")}isColumnType(e,n){return e===n}buildPayload(e,n,o,r){let a=!1;return e.forEach(s=>{let c=this.getInputName(s);this.isNumeric(s.columnDisplayType)?r[s.columnName]=n[c]*1:this.isDate(s.columnDisplayType)?(r[s.columnName]=this.dateUtils.formatDate(n[c],o),a=!0):r[s.columnName]=n[c]}),a&&(r.dateFormat=o),r}isSystemDefined(e){return this.systemFields.includes(e)}getName(e){return e&&e.includes("_cd_")?e.split("_cd_")[0]:e}toDisplayLabel(e){if(!e)return"";if(e.includes("_cd_")){let n=e.split("_cd_");if(n.length>1&&n[1]&&n[1].trim())return n[1].split("_").filter(r=>r.trim()&&r.toLowerCase()!=="cd").map(r=>r.charAt(0).toUpperCase()+r.slice(1).toLowerCase()).join(" ")||n[1].trim()}return e.split("_").filter(n=>n.trim()&&n.toLowerCase()!=="cd").map(n=>n.charAt(0).toUpperCase()+n.slice(1).toLowerCase()).join(" ")||e}getCodeLookupValue(e,n){if(!e?.columnValues||n===null||n===void 0)return"";let o=e.columnValues.find(r=>r.id===n);return o?o.value:n.toString()}getCodeName(e){return e&&e.includes("_cd_")?e.split("_cd_")[0]:""}isValidUrl(e){try{let n=new URL(e);return n.protocol.startsWith("http")||n.protocol.startsWith("https")}catch{return!1}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var n1e=["dataTable"];function i1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",11),N("click",function(){G(e);let o=M();return W(o.add())}),F(2,"fa-icon",12),y(3),S(4,"translate"),_()()}t&2&&(p(3),ee("",k(4,1,"labels.buttons.Add")," "))}function o1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){G(e);let o=M(2);return W(o.deleteSelected())}),F(2,"fa-icon",14),y(3),S(4,"translate"),_()()}t&2&&(p(3),ee(" ",k(4,1,"labels.buttons.Delete Selected")," "))}function r1e(t,i){if(t&1&&(Vi(0),E(1,o1e,5,3,"span"),Bi()),t&2){let e=M();p(),I(e.isSelected?1:-1)}}function a1e(t,i){if(t&1){let e=le();h(0,"span")(1,"button",13),N("click",function(){G(e);let o=M(2);return W(o.delete())}),F(2,"fa-icon",14),y(3),S(4,"translate"),_()()}t&2&&(p(3),ee(" ",k(4,1,"labels.buttons.Delete All")," "))}function s1e(t,i){if(t&1&&(Vi(0),E(1,a1e,5,3,"span"),Bi()),t&2){let e=M();p(),I(e.datatableData.length>0?1:-1)}}function c1e(t,i){t&1&&F(0,"th",17)}function l1e(t,i){if(t&1){let e=le();h(0,"td",18)(1,"mat-checkbox",19),N("click",function(o){return G(e),W(o.stopPropagation())})("change",function(o){let r=G(e).$implicit,a=M(3);return W(o?a.itemToggle(r):null)}),_()()}if(t&2){let e=i.$implicit,n=M(3);p(),D("checked",n.selection.isSelected(e))}}function d1e(t,i){t&1&&ot(0,c1e,1,0,"th",15)(1,l1e,2,1,"td",16)}function u1e(t,i){if(t&1&&(h(0,"th",22),y(1),_()),t&2){let e=M(2).$implicit,n=M();p(),T(n.getInputName(e))}}function m1e(t,i){if(t&1&&(h(0,"td",23),y(1),_()),t&2){let e=i.$implicit,n=M(2).$implicit,o=M();D("ngClass",o.isToDelete(e)),p(),ee(" ",o.formatValue(e,n)," ")}}function p1e(t,i){t&1&&ot(0,u1e,2,1,"th",20)(1,m1e,2,2,"td",21)}function f1e(t,i){if(t&1&&(Vi(0,8),E(1,d1e,2,0),E(2,p1e,2,0),Bi()),t&2){let e=i.$implicit,n=i.$index;D("matColumnDef",e),p(),I(n===0?1:-1),p(),I(n>0?2:-1)}}function h1e(t,i){t&1&&F(0,"tr",24)}function g1e(t,i){t&1&&F(0,"tr",25)}var Vh=(()=>{class t{constructor(){this.route=d(ro),this.dateUtils=d(go),this.systemService=d(O2),this.settingsService=d(Xt),this.dialog=d(Wi),this.datatables=d(Fh),this.dateFormat=d(Lo),this.dateTimeFormat=d(ca),this.numberFormat=d(Zd),this.SELECT_NAME_FIELD="select",this.datatableColumns=[],this.isSelected=!1,this.isLoading=!1}ngOnInit(){this.selection=new uo(!0,[]),this.route.params.subscribe(e=>{this.datatableName=e.datatableName}),this.setData(),this.isSelected=!1}ngOnDestroy(){this.resetData()}ngOnChanges(e){this.setData()}setData(){this.datatableColumns=[this.SELECT_NAME_FIELD],this.dataObject.columnHeaders.filter(e=>{if(!this.datatables.isEntityId(e.columnName))return this.datatableColumns.push(e.columnName),e}),this.datatableData=this.dataObject.data,this.dataTableRef&&this.dataTableRef.renderRows()}resetData(){this.datatableName=null,this.datatableColumns=null,this.datatableData=null}getData(){this.isLoading=!0,this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(e=>{this.dataObject.data=e.data,this.showDeleteBotton=!1,this.dataTableRef&&this.setData(),this.isSelected=!1,this.isLoading=!1})}add(){let e={locale:this.settingsService.language.code},n=[],o=this.datatables.filterSystemColumns(this.dataObject.columnHeaders),r=this.datatables.getFormfields(o,n,e),a={title:"Add "+this.datatableName+" for "+this.entityType,formfields:r};this.dialog.open(es,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(m=>{c.data.value[m]=this.dateUtils.formatDate(c.data.value[m],e.dateFormat)}),e=q(q({},c.data.value),e),this.systemService.addEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(m=>{this.getData()}))})}delete(){this.dialog.open(Rr,{data:{deleteContext:`the contents of ${this.datatableName}`}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteDatatableContent(this.entityId,this.datatableName).subscribe(()=>{this.getData()})})}deleteSelected(){this.dialog.open(Rr,{data:{deleteContext:`the ${this.selection.selected.length} items selected of ${this.datatableName}`}}).afterClosed().subscribe(n=>{n.delete?(this.isSelected=!1,this.selection.selected.forEach(o=>{this.systemService.deleteDatatableEntry(this.entityId,o.row[0],this.datatableName).subscribe(()=>{this.datatableData.forEach((r,a)=>{r.row[0]===o.row[0]&&(this.datatableData.splice(a,1),this.dataTableRef.renderRows(),this.selection=new uo(!0,[]),this.isSelected=this.selection.selected.length>0)})})})):(this.selection=new uo(!0,[]),this.isSelected=this.selection.selected.length>0)})}formatValue(e,n){let o="";if(this.dataObject.columnHeaders){let r=0;this.dataObject.columnHeaders.some(a=>{if(a.columnName===n){let s=a.columnDisplayType;if(o=e.row[r],s==="DATE")o=this.dateFormat.transform(o);else if(s==="DATETIME")o=this.dateTimeFormat.transform(o);else if(s==="INTEGER"||s==="DECIMAL")typeof o=="number"&&(o=this.numberFormat.transform(o));else if(s==="CODELOOKUP"&&a.columnValues&&o!==null&&o!==void 0){let c=a.columnValues.find(m=>m.id===o);o=c?c.value:o}return!0}r+=1})}return o}isAllSelected(){let e=this.selection.selected;return this.datatableData.length===e}isAnySelected(){return this.selection.selected&&this.selection.selected.length>0}masterToggle(e){e.checked?this.datatableData.forEach(n=>this.selection.select(n)):this.selection=new uo(!0,[]),this.isSelected=this.selection.selected.length>0}itemToggle(e){this.selection.toggle(e),this.isSelected=this.selection.selected.length>0}checkboxLabel(e){return e?`${this.selection.isSelected(e)?"deselect":"select"} row ${e.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}isToDelete(e){return this.selection.isSelected(e)?"tobe-deleted":""}getInputName(e){return this.datatables.getName(e)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-datatable-multi-row"]],viewQuery:function(n,o){if(n&1&&ue(n1e,5),n&2){let r;U(r=$())&&(o.dataTableRef=r.first)}},inputs:{dataObject:"dataObject",entityId:"entityId",entityType:"entityType"},features:[Re],decls:16,vars:7,consts:[["dataTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-7","gap-10px"],[4,"mifosxHasPermission"],[1,"m-t-10"],["mat-table","",1,"mat-elevation-z1","m-b-25",3,"dataSource"],[3,"matColumnDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","warn",1,"delete-button",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],[1,"center",3,"click","change","checked"],["mat-header-cell","","class","right",4,"matHeaderCellDef"],["mat-cell","","class","right",3,"ngClass",4,"matCellDef"],["mat-header-cell","",1,"right"],["mat-cell","",1,"right",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(n,o){n&1&&(h(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),y(4),_()(),h(5,"div",4),ot(6,i1e,5,3,"span",5)(7,r1e,2,1,"ng-container",5)(8,s1e,2,1,"ng-container",5),_()(),h(9,"div",6)(10,"table",7,0),Xe(12,f1e,3,3,"ng-container",8,ht),ot(14,h1e,1,0,"tr",9)(15,g1e,1,0,"tr",10),_()()()),n&2&&(p(4),T(o.datatableName),p(2),D("mifosxHasPermission","CREATE_"+o.datatableName),p(),D("mifosxHasPermission","DELETE_"+o.datatableName),p(),D("mifosxHasPermission","DELETE_"+o.datatableName),p(2),D("dataSource",o.datatableData),p(2),Ze(o.datatableColumns),p(2),D("matHeaderRowDef",o.datatableColumns),p(),D("matRowDefColumns",o.datatableColumns))},dependencies:[he,Un,ve,vt,il,Ps,Yt,ph,gh,hh,_h,fh,bh,vh,Ch,yh,xh,Te],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tobe-deleted[_ngcontent-%COMP%]{text-decoration:line-through;color:#f39c12}"]})}}return t})();function _1e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){G(e);let o=M();return W(o.add())}),F(1,"fa-icon",6),y(2),S(3,"translate"),_()}t&2&&(p(2),ee("",k(3,1,"labels.buttons.Add")," "))}function b1e(t,i){if(t&1){let e=le();h(0,"button",5),N("click",function(){G(e);let o=M();return W(o.edit())}),F(1,"fa-icon",7),y(2),S(3,"translate"),_()}t&2&&(p(2),ee("",k(3,1,"labels.buttons.Edit")," "))}function v1e(t,i){if(t&1){let e=le();h(0,"button",8),N("click",function(){G(e);let o=M();return W(o.delete())}),F(1,"fa-icon",9),y(2),S(3,"translate"),_()}t&2&&(p(2),ee("",k(3,1,"labels.buttons.Delete")," "))}function y1e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"dateFormat"),_()),t&2){let e=M().$index,n=M(2);p(),ee(" ",k(2,1,n.dataObject.data[0].row[e])," ")}}function C1e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"datetimeFormat"),_()),t&2){let e=M().$index,n=M(2);p(),ee(" ",k(2,1,n.dataObject.data[0].row[e])," ")}}function x1e(t,i){if(t&1&&(h(0,"span"),y(1),_()),t&2){let e=M().$index,n=M(2);p(),ee(" ",n.dataObject.data[0].row[e]," ")}}function M1e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"formatNumber"),_()),t&2){let e=M().$index,n=M(2);p(),ee(" ",k(2,1,n.dataObject.data[0].row[e])," ")}}function w1e(t,i){if(t&1&&(h(0,"span"),y(1),_()),t&2){let e=M(),n=e.$implicit,o=e.$index,r=M(2);p(),ee(" ",r.datatables.getCodeLookupValue(n,r.dataObject.data[0].row[o])," ")}}function D1e(t,i){if(t&1&&(h(0,"span",13),y(1),_()),t&2){let e=M().$index,n=M(2);p(),ee(" ",n.dataObject.data[0].row[e]," ")}}function S1e(t,i){if(t&1&&(h(0,"textarea",14),S(1,"prettyPrint"),y(2," "),_()),t&2){let e=M().$index,n=M(2);D("innerHTML",k(1,1,n.dataObject.data[0].row[e].value),jc)}}function k1e(t,i){if(t&1){let e=le();h(0,"span",15)(1,"button",16),S(2,"translate"),N("click",function(){G(e);let o=M(2).$index,r=M(2);return W(r.openSite(r.dataObject.data[0].row[o]))}),F(3,"fa-icon",17),_()()}t&2&&(p(),D("matTooltip",Ft(k(2,2,"tooltips.View Link"))))}function E1e(t,i){if(t&1&&(h(0,"span"),E(1,k1e,4,4,"span",15),y(2),_()),t&2){let e=M().$index,n=M(2);p(),I(n.isValidUrl(n.dataObject.data[0].row[e])?1:-1),p(),ee(" ",n.dataObject.data[0].row[e]," ")}}function I1e(t,i){if(t&1&&(h(0,"div",10)(1,"div",11),y(2),_(),h(3,"div",12),E(4,y1e,3,3,"span")(5,C1e,3,3,"span")(6,x1e,2,1,"span")(7,M1e,3,3,"span")(8,w1e,2,1,"span")(9,D1e,2,1,"span",13)(10,S1e,3,3,"textarea",14)(11,E1e,3,2,"span"),_()()),t&2){let e,n=i.$implicit,o=M(2);D("ngClass",o.setAttributeClass(n.columnName)),p(2),ee(" ",o.datatables.toDisplayLabel(n.columnName)," "),p(2),I((e=o.getColumnType(n.columnDisplayType,n.columnType))==="DATE"?4:e==="DATETIME"?5:e==="INTEGER"?6:e==="DECIMAL"?7:e==="CODELOOKUP"?8:e==="TEXT"?9:e==="JSON"?10:11)}}function O1e(t,i){if(t&1&&(h(0,"div",4),Xe(1,I1e,12,3,"div",10,ht),_()),t&2){let e=M();p(),Ze(e.dataObject.columnHeaders)}}var Bh=(()=>{class t{constructor(){this.route=d(ro),this.dateUtils=d(go),this.dialog=d(Wi),this.settingsService=d(Xt),this.datatables=d(Fh),this.systemService=d(O2)}ngOnInit(){this.route.params.subscribe(e=>{this.datatableName=e.datatableName})}add(){let e={locale:this.settingsService.language.code},n=[],o=this.datatables.filterSystemColumns(this.dataObject.columnHeaders),r=this.datatables.getFormfields(o,n,e),a={title:"Add "+this.datatableName+" for "+this.entityType,formfields:r};this.dialog.open(es,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(m=>{c.data.value[m]=this.dateUtils.formatDate(c.data.value[m],e.dateFormat)}),e=q(q({},c.data.value),e),this.systemService.addEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(m=>{this.dataObject=m})}))})}edit(){let e={locale:this.settingsService.language.code},n=[],o=this.datatables.filterSystemColumns(this.dataObject.columnHeaders),r=this.datatables.getFormfields(o,n,e);r=r.map((c,m)=>(c.controlType==="datepicker"?c.value=this.dataObject.data[0].row[o[m].idx]?this.dateUtils.parseDate(this.dataObject.data[0].row[o[m].idx]):"":c.controlType==="datetimepicker"?c.value=this.dataObject.data[0].row[o[m].idx]?this.dateUtils.parseDatetime(this.dataObject.data[0].row[o[m].idx]):"":c.value=this.dataObject.data[0].row[o[m].idx]?this.dataObject.data[0].row[o[m].idx]:"",c));let a={title:"Edit "+this.datatableName+" for "+this.entityType,formfields:r,layout:{addButtonText:"Submit"},pristine:!1};this.dialog.open(es,{data:a,width:"50rem"}).afterClosed().subscribe(c=>{c.data&&(n.forEach(m=>{c.data.value[m]=this.dateUtils.formatDate(c.data.value[m],e.dateFormat)}),e=q(q({},c.data.value),e),this.systemService.editEntityDatatableEntry(this.entityId,this.datatableName,e).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(m=>{this.dataObject=m})}))})}delete(){this.dialog.open(Rr,{data:{deleteContext:` the contents of ${this.datatableName}`}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteDatatableContent(this.entityId,this.datatableName).subscribe(()=>{this.systemService.getEntityDatatable(this.entityId,this.datatableName).subscribe(o=>{this.dataObject=o})})})}setAttributeClass(e){return this.datatables.isSystemDefined(e)?"system-defined":"table-data"}getColumnType(e,n){switch(e){case"DATE":return e;case"DATETIME":return e;case"INTEGER":return e;case"DECIMAL":return e;case"CODELOOKUP":return e;case"TEXT":return n==="JSON"?"JSON":e;default:return e}}getInputName(e){return this.datatables.getName(e)}isValidUrl(e){return this.datatables.isValidUrl(e)}openSite(e){window.open(e,"_blank")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-datatable-single-row"]],inputs:{dataObject:"dataObject",entityId:"entityId",entityType:"entityType"},decls:9,vars:5,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","align-end","m-b-20"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","warn",1,"delete-button"],[1,"m-t-10"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",1,"delete-button",3,"click"],["icon","trash",1,"m-r-10"],[1,"flex-fill",3,"ngClass"],[1,"mat-body-strong","left","flex-40"],[1,"right","flex-60"],[1,"long-text"],["cdkTextareaAutosize","true","cdkAutosizeMaxRows","20","cdkAutosizeMinRows","1",1,"json-textarea",3,"innerHTML"],[1,"m-r-5"],["mat-icon-button","","matTooltipPosition","right",1,"small-icon",3,"click","matTooltip"],["icon","eye","size","lg"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"h3"),y(2),_(),h(3,"div",1),E(4,_1e,4,3,"button",2),E(5,b1e,4,3,"button",2),E(6,v1e,4,3,"button",3),_(),F(7,"mat-divider"),E(8,O1e,3,0,"div",4),_()),n&2&&(p(2),T(o.datatableName),p(2),I(o.dataObject.data[0]?-1:4),p(),I(o.dataObject.data[0]?5:-1),p(),I(o.dataObject.data[0]?6:-1),p(2),I(o.dataObject.data.length>0?8:-1))},dependencies:[he,Un,ve,vt,Yt,rc,nf,ni,mo,Lo,Te,ca,Ts,Ym],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}.table-name[_ngcontent-%COMP%]{padding-left:2%}.table-data[_ngcontent-%COMP%], .system-defined[_ngcontent-%COMP%]{margin-top:3px}.long-text[_ngcontent-%COMP%]{word-break:break-all;white-space:normal}.small-icon[_ngcontent-%COMP%]{width:30px;height:30px}.json-textarea[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();function T1e(t,i){if(t&1&&F(0,"mifosx-datatable-multi-row",0),t&2){let e=M();D("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}function P1e(t,i){if(t&1&&F(0,"mifosx-datatable-single-row",0),t&2){let e=M();D("entityType",e.entityType)("entityId",e.entityId)("dataObject",e.entityDatatable)}}var NR=(()=>{class t{constructor(){this.multiRowDatatableFlag=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-datatable-tab"]],inputs:{multiRowDatatableFlag:"multiRowDatatableFlag",entityDatatable:"entityDatatable",entityType:"entityType",entityId:"entityId"},decls:3,vars:2,consts:[[3,"entityType","entityId","dataObject"]],template:function(n,o){n&1&&(h(0,"div"),E(1,T1e,1,3,"mifosx-datatable-multi-row",0),E(2,P1e,1,3,"mifosx-datatable-single-row",0),_()),n&2&&(p(),I(o.multiRowDatatableFlag?1:-1),p(),I(o.multiRowDatatableFlag?-1:2))},dependencies:[he,ve,Vh,Bh],encapsulation:2})}}return t})();var FR=(()=>{class t{constructor(){}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-svg-icon"]],inputs:{iconFile:"iconFile",iconName:"iconName",iconClass:"iconClass",iconWidth:"iconWidth"},decls:2,vars:4,consts:[["preserveAspectRatio","xMidYMid meet",1,"icon",3,"ngClass"]],template:function(n,o){n&1&&($t(),h(0,"svg",0),F(1,"use"),_()),n&2&&(At("width",o.iconWidth,"px"),D("ngClass",o.iconClass),p(),ne("href","assets/images/icons_"+o.iconFile+".svg#"+o.iconName,null,"xlink"))},dependencies:[he,Un,ve],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.icon[_ngcontent-%COMP%]{flex:1}.chargeoff[_ngcontent-%COMP%]{color:#ffa726}"]})}}return t})();function L1e(t,i){t&1&&(h(0,"span"),y(1),S(2,"translate"),_()),t&2&&(p(),T(k(2,1,"labels.inputs.Credit")))}function A1e(t,i){t&1&&(h(0,"span"),y(1),S(2,"translate"),_()),t&2&&(p(),T(k(2,1,"labels.inputs.Debit")))}function z1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Reference Number")),p(3),T(e.data.journalEntry.referenceNumber)}}function R1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Comments")),p(3),T(e.data.journalEntry.comments)}}function N1e(t,i){t&1&&(h(0,"tr")(1,"th",4),y(2),S(3,"translate"),_()()),t&2&&(p(2),T(k(3,1,"labels.inputs.Payment Details")))}function F1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Payment Type")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.paymentType.name)}}function V1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Account Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.accountNumber)}}function B1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Cheque Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.checkNumber)}}function j1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Routing Code")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.routingCode)}}function H1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Receipt Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)}}function U1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Bank Number")),p(3),T(e.data.journalEntry.transactionDetails.paymentDetails.bankNumber)}}function $1e(t,i){if(t&1&&(h(0,"tr")(1,"th"),y(2),S(3,"translate"),_(),h(4,"td"),y(5),_()()),t&2){let e=M();p(2),T(k(3,2,"labels.inputs.Created by")),p(3),T(e.data.journalEntry.createdByUserName)}}var jh=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.existsPaymentDetails=!1;let e=this.data;this.existsPaymentDetails=e.journalEntry.transactionDetails!=null&&e.journalEntry.transactionDetails.paymentDetails!=null}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-view-journal-entry"]],decls:82,vars:63,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-button","","mat-dialog-close",""],["colspan","2",1,"header"]],template:function(n,o){n&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"table")(5,"tr")(6,"th"),y(7),S(8,"translate"),_(),h(9,"td"),y(10),_()(),h(11,"tr")(12,"th"),y(13),S(14,"translate"),_(),h(15,"td"),y(16),_()(),h(17,"tr")(18,"th"),y(19),S(20,"translate"),_(),h(21,"td"),y(22),_()(),h(23,"tr")(24,"th"),y(25),S(26,"translate"),_(),h(27,"td"),y(28),S(29,"dateFormat"),_()(),h(30,"tr")(31,"th"),y(32),S(33,"translate"),_(),h(34,"td"),y(35),_()(),h(36,"tr")(37,"th"),y(38),S(39,"translate"),_(),h(40,"td"),y(41),_()(),h(42,"tr")(43,"th"),y(44),S(45,"translate"),_(),h(46,"td"),y(47),_()(),h(48,"tr")(49,"th"),E(50,L1e,3,3,"span"),E(51,A1e,3,3,"span"),_(),h(52,"td"),y(53),S(54,"formatNumber"),_()(),h(55,"tr")(56,"th"),y(57),S(58,"translate"),_(),h(59,"td"),y(60),_()(),E(61,z1e,6,4,"tr"),E(62,R1e,6,4,"tr"),E(63,N1e,4,3,"tr"),E(64,F1e,6,4,"tr"),E(65,V1e,6,4,"tr"),E(66,B1e,6,4,"tr"),E(67,j1e,6,4,"tr"),E(68,H1e,6,4,"tr"),E(69,U1e,6,4,"tr"),E(70,$1e,6,4,"tr"),h(71,"tr")(72,"th"),y(73),S(74,"translate"),_(),h(75,"td"),y(76),S(77,"datetimeFormat"),_()()()(),h(78,"mat-dialog-actions",2)(79,"button",3),y(80),S(81,"translate"),_()()),n&2&&(p(),T(k(2,35,"labels.heading.View Journal Entry")),p(6),T(k(8,37,"labels.inputs.Office")),p(3),T(o.data.journalEntry.officeName),p(3),T(k(14,39,"labels.inputs.Entry ID")),p(3),T(o.data.journalEntry.id),p(3),T(k(20,41,"labels.inputs.Transaction ID")),p(3),T(o.data.journalEntry.transactionId),p(3),T(k(26,43,"labels.inputs.Transaction Date")),p(3),T(k(29,45,o.data.journalEntry.transactionDate)),p(4),T(k(33,47,"labels.inputs.Type")),p(3),T(o.data.journalEntry.glAccountType.value),p(3),T(k(39,49,"labels.inputs.Account Code")),p(3),T(o.data.journalEntry.glAccountId),p(3),T(k(45,51,"labels.inputs.Account Name")),p(3),T(o.data.journalEntry.glAccountName),p(3),I(o.data.journalEntry.entryType.value==="CREDIT"?50:-1),p(),I(o.data.journalEntry.entryType.value==="DEBIT"?51:-1),p(2),St("",o.data.journalEntry.currency.displaySymbol," ",k(54,53,o.data.journalEntry.amount)),p(4),T(k(58,55,"labels.inputs.Currency")),p(3),St("(",o.data.journalEntry.currency.code,") ",o.data.journalEntry.currency.name),p(),I(o.data.journalEntry.referenceNumber?61:-1),p(),I(o.data.journalEntry.comments?62:-1),p(),I(o.existsPaymentDetails?63:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.paymentType)?64:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.accountNumber)?65:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.checkNumber)?66:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.routingCode)?67:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.receiptNumber)?68:-1),p(),I(o.existsPaymentDetails&&(o.data.journalEntry.transactionDetails.paymentDetails!=null&&o.data.journalEntry.transactionDetails.paymentDetails.bankNumber)?69:-1),p(),I(o.existsPaymentDetails?70:-1),p(3),T(k(74,57,"labels.inputs.Submitted on")),p(3),T(k(77,59,o.data.journalEntry.submittedOnDate)),p(4),T(k(81,61,"labels.buttons.Close")))},dependencies:[he,ve,vt,xn,An,zn,Ln,Lo,Te,ca,Ts],styles:["table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{text-align:left;font-weight:500;padding:0 .4rem 0 0}table[_ngcontent-%COMP%] th.header[_ngcontent-%COMP%]{text-align:center;padding:.4rem .4rem 0 0}table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:0 .4rem 0 0}"]})}}return t})();var G1e=t=>({revert:!0,comments:t}),W1e=()=>({redirect:!0});function q1e(t,i){if(t&1&&(h(0,"div")(1,"h1",0),y(2),S(3,"translate"),_(),h(4,"div",1)(5,"p"),y(6),S(7,"translate"),_(),h(8,"mat-form-field",2)(9,"mat-label"),y(10),S(11,"translate"),_(),F(12,"textarea",3),_()(),h(13,"mat-dialog-actions",4)(14,"button",5),y(15),S(16,"translate"),_(),h(17,"button",6),y(18),S(19,"translate"),_()()()),t&2){let e=M();p(2),T(k(3,7,"labels.heading.Revert Transaction")),p(4),T(k(7,9,"labels.text.Revert this transaction?")),p(4),T(k(11,11,"labels.inputs.Comments")),p(2),D("formControl",e.comments),p(3),T(k(16,13,"labels.buttons.No")),p(2),D("mat-dialog-close",Eo(17,G1e,e.comments.value)),p(),ee(" ",k(19,15,"labels.buttons.Yes")," ")}}function Y1e(t,i){if(t&1&&(h(0,"h1",0),y(1),S(2,"translate"),_(),h(3,"div",1)(4,"h4"),y(5),S(6,"translate"),_(),h(7,"p"),y(8),S(9,"translate"),_(),h(10,"p"),y(11),S(12,"translate"),_()(),h(13,"mat-dialog-actions",4)(14,"button",5),y(15),S(16,"translate"),_(),h(17,"button",6),y(18),S(19,"translate"),_()()),t&2){let e=M();p(),T(k(2,8,"labels.heading.Transaction Reverted")),p(4),T(k(6,10,"labels.heading.Success!")),p(3),T(k(9,12,"labels.text.Journal entry reverse transaction")),p(3),St("",k(12,14,"labels.text.Transaction ID"),": ",e.data.transactionId),p(4),T(k(16,16,"labels.buttons.Close")),p(2),D("mat-dialog-close",ko(20,W1e)),p(),ee(" ",k(19,18,"labels.buttons.Redirect to New Transaction")," ")}}var VR=(()=>{class t{constructor(){this.dialogRef=d(qt),this.data=d(En),this.comments=new Hi("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-revert-transaction"]],decls:2,vars:1,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"flex-fill"],["matInput","",3,"formControl"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-button","",3,"mat-dialog-close"]],template:function(n,o){n&1&&E(0,q1e,20,19,"div")(1,Y1e,20,21),n&2&&I(o.data.reverted?1:0)},dependencies:[he,ve,yi,mn,Si,Bt,Cn,ti,vt,xn,An,zn,Ln,Te],encapsulation:2})}}return t})();var BR=(()=>{class t{constructor(){this.http=d(Bn)}getOffices(){let e=new te().set("orderBy","id");return this.http.get("/offices",{params:e})}getAccountingRules(e=!1){let n=new te;return e&&(n=n.set("associations","all")),this.http.get("/accountingrules",{params:n})}getCurrencies(){return this.http.get("/currencies")}getPaymentTypes(){return this.http.get("/paymenttypes")}createJournalEntry(e){return this.http.post("/journalentries",e)}getGlAccounts(){let e=new te().set("manualEntriesAllowed","true").set("usage","1").set("disabled","false");return this.http.get("/glaccounts",{params:e})}getJournalEntry(e){let n=new te().set("transactionId",e).set("transactionDetails","true");return this.http.get("/journalentries",{params:n})}getJournalEntries(e,n,o,r,a){let s=new te().set("offset",r.toString()).set("limit",a.toString()).set("sortOrder",o).set("orderBy",n);return e.forEach(function(c){c.value&&(s=s.set(c.type,c.value))}),this.http.get("/journalentries",{params:s})}revertTransaction(e,n){let o=new te().set("command","reverse"),r={};return n&&(r={comments:n}),this.http.post(`/journalentries/${e}`,r,{params:o})}getFinancialActivityAccounts(){return this.http.get("/financialactivityaccounts")}getFinancialActivityAccountsTemplate(){return this.http.get("/financialactivityaccounts/template")}createFinancialActivityAccount(e){return this.http.post("/financialactivityaccounts",e)}getFinancialActivityAccount(e,n=!1){let o=new te().set("template",n.toString());return this.http.get(`/financialactivityaccounts/${e}`,{params:o})}updateFinancialActivityAccount(e,n){return this.http.put(`/financialactivityaccounts/${e}`,n)}deleteFinancialActivityAccount(e){return this.http.delete(`/financialactivityaccounts/${e}`)}retrieveOpeningBalances(e){let n=new te().set("officeId",e);return this.http.get("/journalentries/openingbalance",{params:n})}defineOpeningBalances(e){let n=new te().set("command","defineOpeningBalance");return this.http.post("/journalentries",e,{params:n})}getChartOfAccounts(){return this.http.get("/glaccounts")}getChartOfAccountsTemplate(){return this.http.get("/glaccounts/template")}createGlAccount(e){return this.http.post("/glaccounts",e)}getGlAccount(e,n=!1){let o=new te().set("template",n.toString());return this.http.get(`/glaccounts/${e}`,{params:o})}updateGlAccount(e,n){return this.http.put(`/glaccounts/${e}`,n)}deleteGlAccount(e){return this.http.delete(`/glaccounts/${e}`)}getAccountingClosures(){return this.http.get("/glclosures")}createAccountingClosure(e){return this.http.post("/glclosures",e)}getAccountingClosure(e){return this.http.get(`/glclosures/${e}`)}updateAccountingClosure(e,n){return this.http.put(`/glclosures/${e}`,n)}deleteAccountingClosure(e){return this.http.delete(`/glclosures/${e}`)}getAccountingRulesTemplate(){return this.http.get("/accountingrules/template")}createAccountingRule(e){return this.http.post("/accountingrules",e)}getAccountingRule(e){return this.http.get(`/accountingrules/${e}`)}updateAccountingRule(e,n){return this.http.put(`/accountingrules/${e}`,n)}deleteAccountingRule(e){return this.http.delete(`/accountingrules/${e}`)}executePeriodicAccruals(e){return this.http.post("/runaccruals",e)}getProvisioningEntries(){return this.http.get("/provisioningentries")}createProvisioningEntry(e){return this.http.post("/provisioningentries",e)}getProvisioningEntry(e){return this.http.get(`/provisioningentries/${e}`)}getLoanProducts(){return this.http.get("/loanproducts")}getProvisioningCategories(){return this.http.get("/provisioningcategory")}getProvisioningEntryEntries(e){let n=new te().set("entryId",e);return this.http.get("/provisioningentries/entries",{params:n})}getProvisioningJournalEntries(e){let n=new te().set("entryId",e);return this.http.get("/journalentries/provisioning",{params:n})}createProvisioningJournalEntries(e){let n=new te().set("command","createjournalentry");return this.http.post(`/provisioningentries/${e}`,{},{params:n})}recreateProvisioningEntries(e){let n=new te().set("command","recreateprovisioningentry");return this.http.post(`/provisioningentries/${e}`,{},{params:n})}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function Q1e(t,i){t&1&&(h(0,"span"),F(1,"fa-icon",18),y(2),S(3,"translate"),_()),t&2&&(p(2),ee("",k(3,1,"labels.buttons.Revert Transaction")," "))}function K1e(t,i){t&1&&(h(0,"span"),y(1),S(2,"translate"),_()),t&2&&(p(),T(k(2,1,"labels.buttons.Transaction Reverted")))}function X1e(t,i){if(t&1){let e=le();h(0,"button",17),N("click",function(){G(e);let o=M(3);return W(o.revertTransaction())}),E(1,Q1e,4,3,"span"),E(2,K1e,3,3,"span"),_()}if(t&2){let e=M(3);D("disabled",e.dataSource==null?null:e.dataSource.data[0].reversed),p(),I(e.dataSource.data[0].reversed?-1:1),p(),I(e.dataSource.data[0].reversed?2:-1)}}function Z1e(t,i){t&1&&(h(0,"div",1),ot(1,X1e,3,3,"button",16),_()),t&2&&(p(),D("mifosxHasPermission","REVERSE_JOURNALENTRY"))}function J1e(t,i){t&1&&(h(0,"div",21),y(1),S(2,"translate"),_()),t&2&&(p(),ee(" ",k(2,1,"labels.inputs.External Asset Owner")," "))}function e2e(t,i){if(t&1&&(h(0,"div",22),y(1),_()),t&2){let e=M(4);p(),ee(" ",e.dataSource.data[0].externalAssetOwner," ")}}function t2e(t,i){if(t&1&&(h(0,"mat-card",19)(1,"mat-card-content")(2,"div",20)(3,"div",21),y(4),S(5,"translate"),_(),h(6,"div",22),y(7),_(),h(8,"div",21),y(9),S(10,"translate"),_(),h(11,"div",22),y(12),S(13,"dateFormat"),_(),h(14,"div",21),y(15),S(16,"translate"),_(),h(17,"div",22),y(18),_(),h(19,"div",21),y(20),S(21,"translate"),_(),h(22,"div",22),y(23),S(24,"datetimeFormat"),_(),h(25,"div",21),y(26),S(27,"translate"),_(),h(28,"div",22),y(29),S(30,"yesNo"),_(),E(31,J1e,3,3,"div",21),E(32,e2e,2,1,"div",22),_()()()),t&2){let e=M(3);D("ngClass",Ft(e.journalEntryColor())),p(4),ee(" ",k(5,14,"labels.inputs.Office")," "),p(3),ee(" ",e.dataSource.data[0].officeName," "),p(2),ee(" ",k(10,16,"labels.inputs.Transaction Date")," "),p(3),ee(" ",k(13,18,e.dataSource.data[0].transactionDate)," "),p(3),ee(" ",k(16,20,"labels.inputs.Created By")," "),p(3),ee(" ",e.dataSource.data[0].createdByUserName," "),p(2),ee(" ",k(21,22,"labels.inputs.Submitted on")," "),p(3),ee(" ",k(24,24,e.dataSource.data[0].submittedOnDate)," "),p(3),ee(" ",k(27,26,"labels.inputs.Manual Journal Entry")," "),p(3),ee(" ",k(30,28,e.dataSource.data[0].manualEntry)," "),p(2),I(e.dataSource.data[0].externalAssetOwner?31:-1),p(),I(e.dataSource.data[0].externalAssetOwner?32:-1)}}function n2e(t,i){if(t&1&&(h(0,"div",0),E(1,t2e,33,30,"mat-card",19),_()),t&2){let e=M(2);p(),I(e.dataSource?1:-1)}}function i2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ee(" ",k(2,1,"labels.inputs.Entry ID")," "))}function o2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.id)}}function r2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ee(" ",k(2,1,"labels.inputs.Type")," "))}function a2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountType.value)}}function s2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ee(" ",k(2,1,"labels.inputs.Account Code")," "))}function c2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountCode)}}function l2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ee(" ",k(2,1,"labels.inputs.Account Name")," "))}function d2e(t,i){if(t&1&&(h(0,"td",24),y(1),_()),t&2){let e=i.$implicit;p(),T(e.glAccountName)}}function u2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ee(" ",k(2,1,"labels.inputs.Debit")," "))}function m2e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"formatNumber"),_()),t&2){let e=M().$implicit;p(),St(" ",e.currency.displaySymbol||e.currency.code," ",k(2,2,e.amount)," ")}}function p2e(t,i){if(t&1&&(h(0,"td",24),E(1,m2e,3,4,"span"),_()),t&2){let e=i.$implicit;p(),I(e.entryType.value==="DEBIT"?1:-1)}}function f2e(t,i){t&1&&(h(0,"th",23),y(1),S(2,"translate"),_()),t&2&&(p(),ee(" ",k(2,1,"labels.inputs.Credit")," "))}function h2e(t,i){if(t&1&&(h(0,"span"),y(1),S(2,"formatNumber"),_()),t&2){let e=M().$implicit;p(),St(" ",e.currency.displaySymbol||e.currency.code," ",k(2,2,e.amount)," ")}}function g2e(t,i){if(t&1&&(h(0,"td",24),E(1,h2e,3,4,"span"),_()),t&2){let e=i.$implicit;p(),I(e.entryType.value==="CREDIT"?1:-1)}}function _2e(t,i){t&1&&F(0,"tr",25)}function b2e(t,i){if(t&1){let e=le();h(0,"tr",26),N("click",function(){let o=G(e).$implicit,r=M(2);return W(r.viewJournalEntry(o))}),_()}}function v2e(t,i){if(t&1){let e=le();h(0,"div"),E(1,Z1e,2,1,"div",1),E(2,n2e,2,1,"div",0),h(3,"div",2)(4,"table",3),Vi(5,4),ot(6,i2e,3,3,"th",5)(7,o2e,2,1,"td",6),Bi(),Vi(8,7),ot(9,r2e,3,3,"th",5)(10,a2e,2,1,"td",6),Bi(),Vi(11,8),ot(12,s2e,3,3,"th",5)(13,c2e,2,1,"td",6),Bi(),Vi(14,9),ot(15,l2e,3,3,"th",5)(16,d2e,2,1,"td",6),Bi(),Vi(17,10),ot(18,u2e,3,3,"th",5)(19,p2e,2,1,"td",6),Bi(),Vi(20,11),ot(21,f2e,3,3,"th",5)(22,g2e,2,1,"td",6),Bi(),ot(23,_2e,1,0,"tr",12)(24,b2e,1,0,"tr",13),_(),h(25,"div",14)(26,"button",15),N("click",function(){G(e);let o=M();return W(o.goBack())}),y(27),S(28,"translate"),_()()()()}if(t&2){let e=M();p(),I(e.dataSource!=null&&e.dataSource.data[0].manualEntry?1:-1),p(),I(e.isViewTransaction()?2:-1),p(2),D("dataSource",e.dataSource),p(19),D("matHeaderRowDef",e.displayedColumns),p(),D("matRowDefColumns",e.displayedColumns),p(3),ee(" ",k(28,6,"labels.buttons.Back")," ")}}function y2e(t,i){if(t&1){let e=le();h(0,"div",0)(1,"div",27)(2,"div",28),F(3,"i",29),y(4),S(5,"translate"),_()(),h(6,"div",14)(7,"button",15),N("click",function(){G(e);let o=M();return W(o.goBack())}),y(8),S(9,"translate"),_()()()}t&2&&(p(4),ee(" ",k(5,2,"labels.text.No data found")," "),p(4),ee(" ",k(9,4,"labels.buttons.Back")," "))}var jR=(()=>{class t{constructor(){this.accountingService=d(BR),this.route=d(ro),this.router=d(bo),this.dialog=d(Wi),this.location=d(Jo),this.displayedColumns=["id","glAccountType","glAccountCode","glAccountName","debit","credit"],this.isJournalEntryLoaded=!1,this.isManualJournalEntry=!1}ngOnInit(){this.route.data.subscribe(e=>{this.title=e.title,this.isJournalEntryLoaded=!1,this.isViewTransaction()?(this.transaction=e.transaction,e.transaction.pageItems.length>0&&(this.isJournalEntryLoaded=!0,this.transactionId=e.transaction.pageItems[0].transactionId,this.isManualJournalEntry=e.transaction.pageItems[0].manualEntry)):this.isViewTransfer()&&(this.journalEntriesData=e.transferJournalEntryData.journalEntryData.content,this.isJournalEntryLoaded=!0),this.setTransaction()})}isViewTransaction(){return this.title==="View Transaction"}isViewTransfer(){return this.title==="View Transfer"}setTransaction(){this.journalEntriesData!=null?this.dataSource=new Eu(this.journalEntriesData):(this.dataSource=new Eu(this.transaction.pageItems),this.dataSource.sortingDataAccessor=(e,n)=>{switch(n){case"glAccountType":return e.glAccountType.value;case"debit":return e.amount;case"credit":return e.amount;default:return e[n]}}),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}viewJournalEntry(e){this.dialog.open(jh,{data:{journalEntry:e}})}revertTransaction(e){this.dialog.open(VR,{data:{reverted:this.dataSource.data[0].reversed,transactionId:e}}).afterClosed().subscribe(o=>{o.revert?this.accountingService.revertTransaction(this.transactionId,o.comments).subscribe(r=>{this.dataSource.data[0].reversed=!0,this.revertTransaction(r.transactionId)}):o.redirect&&this.router.navigate(["../",e],{relativeTo:this.route})})}goBack(){this.location.back()}journalEntryColor(){return this.isManualJournalEntry?"manual-entry":""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-view-journal-entry-transaction"]],viewQuery:function(n,o){if(n&1&&(ue(wb,7),ue(oh,7)),n&2){let r;U(r=$())&&(o.paginator=r.first),U(r=$())&&(o.sort=r.first)}},decls:2,vars:2,consts:[[1,"container","m-b-20"],[1,"layout-row","layout-align-end","container","m-b-20"],[1,"mat-elevation-z8","container","layout-align-center","layout-row-wrap"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glAccountType"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["matColumnDef","debit"],["matColumnDef","credit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],[1,"layout-row","layout-align-center","m-t-15","m-b-15","gap-5px","layout-xs-column"],["type","button","color","primary","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","undo",1,"m-r-10"],[1,"mat-elevation-z8",3,"ngClass"],[1,"layout-row-wrap"],[1,"flex-25","header"],[1,"flex-25"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,o){n&1&&(E(0,v2e,29,8,"div"),E(1,y2e,10,6,"div",0)),n&2&&(I(o.isJournalEntryLoaded?0:-1),p(),I(o.isJournalEntryLoaded?-1:1))},dependencies:[he,Un,ve,LE,AE,vt,Ps,Yt,ph,oh,gh,hh,_h,Bz,fh,bh,vh,Ch,yh,xh,Lo,Te,ca,Ts,Km],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.manual-entry[_ngcontent-%COMP%]{background-color:#d7e3ff}"]})}}return t})();function C2e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=M();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}function x2e(t,i){if(t&1&&(h(0,"span",1)(1,"a",5),y(2),_()()),t&2){let e=M();p(),D("href",Ft(e.getAccountLink()),_1),p(),T(e.accountNo)}}function M2e(t,i){if(t&1&&(h(0,"span",1),y(1),_()),t&2){let e=M();p(),T(e.accountNo)}}function w2e(t,i){if(t&1){let e=le();h(0,"span",6),N("click",function(){G(e);let o=M();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}var HR=(()=>{class t{constructor(){this.clipboard=d(N2),this.display="right",this.clientId=null,this.accountId=null,this.accountType=null,this.iconVisible=!1,this.displayL=!1,this.displayR=!0}ngOnInit(){this.displayL=this.display==="left",this.displayR=this.display==="right"}copyValue(){this.clipboard.copy(this.accountNo)}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}getAccountLink(){return this.accountType?`/#/clients/${this.clientId}/${this.getAccountType()}/${this.accountId}`:""}getAccountType(){if(this.accountType==="1")return"loan-accounts";if(this.accountType==="2")return"savings-accounts"}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-account-number"]],inputs:{accountNo:"accountNo",display:"display",clientId:"clientId",accountId:"accountId",accountType:"accountType"},decls:5,vars:4,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-5"],[1,"m-l-3"],[1,"m-l-5",3,"click"],["icon","copy","size","sm",3,"title"],[3,"href"],[1,"m-l-3",3,"click"]],template:function(n,o){n&1&&(h(0,"span",0),N("mouseenter",function(){return o.mouseEnter()})("mouseleave",function(){return o.mouseLeave()}),E(1,C2e,4,4,"span",1),E(2,x2e,3,3,"span",1),E(3,M2e,2,1,"span",1),E(4,w2e,4,4,"span",2),_()),n&2&&(p(),I(o.displayL&&o.iconVisible?1:-1),p(),I(o.accountType?2:-1),p(),I(o.accountType?-1:3),p(),I(o.displayR&&o.iconVisible?4:-1))},dependencies:[he,ve,Yt,Te],encapsulation:2})}}return t})();function D2e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=M();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}function S2e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=M();return W(o.copyValue())}),h(1,"b"),F(2,"fa-icon",4),S(3,"translate"),_()()}t&2&&(p(2),D("title",Ft(k(3,2,"labels.text.Copy Account Number"))))}var UR=(()=>{class t{constructor(){this.clipboard=d(N2),this.display="right",this.iconVisible=!1,this.displayL=!1,this.displayR=!0}ngOnInit(){this.displayL=this.display==="left",this.displayR=this.display==="right"}copyValue(){this.clipboard.copy(this.entityName)}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-entity-name"]],inputs:{entityName:"entityName",display:"display"},decls:6,vars:3,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-5"],[1,"m-l-3"],[1,"m-l-5",3,"click"],["icon","copy","size","sm",3,"title"],[1,"m-l-3",3,"click"]],template:function(n,o){n&1&&(h(0,"span",0),N("mouseenter",function(){return o.mouseEnter()})("mouseleave",function(){return o.mouseLeave()}),E(1,D2e,4,4,"span",1),h(2,"span",1)(3,"b"),y(4),_()(),E(5,S2e,4,4,"span",2),_()),n&2&&(p(),I(o.displayL&&o.iconVisible?1:-1),p(3),T(o.entityName),p(),I(o.displayR&&o.iconVisible?5:-1))},dependencies:[he,ve,Yt,Te],encapsulation:2})}}return t})();function k2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=M(2);p(2),T(k(3,2,"labels.inputs.Account No")),p(3),T(e.paymentDetailData.accountNumber)}}function E2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=M(2);p(2),T(k(3,2,"labels.inputs.Cheque Number")),p(3),T(e.paymentDetailData.checkNumber)}}function I2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td",4),y(5),rt()()),t&2){let e=M(2);p(2),T(k(3,2,"labels.inputs.Routing Code")),p(3),T(e.paymentDetailData.routingCode)}}function O2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=M(2);p(2),T(k(3,2,"labels.inputs.Receipt No")),p(3),T(e.paymentDetailData.receiptNumber)}}function T2e(t,i){if(t&1&&(nt(0,"tr")(1,"td",4),y(2),S(3,"translate"),rt(),nt(4,"td"),y(5),rt()()),t&2){let e=M(2);p(2),T(k(3,2,"labels.inputs.Bank No")),p(3),T(e.paymentDetailData.bankNumber)}}function P2e(t,i){if(t&1&&(nt(0,"table")(1,"tbody")(2,"tr")(3,"td",3),y(4),S(5,"translate"),rt()(),E(6,k2e,6,4,"tr"),E(7,E2e,6,4,"tr"),E(8,I2e,6,4,"tr"),E(9,O2e,6,4,"tr"),E(10,T2e,6,4,"tr"),rt()()),t&2){let e=M();p(4),T(k(5,6,"labels.inputs.Payment Details")),p(2),I(e.isNotNullOrEmpty(e.paymentDetailData.accountNumber)?6:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.checkNumber)?7:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.routingCode)?8:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.receiptNumber)?9:-1),p(),I(e.isNotNullOrEmpty(e.paymentDetailData.bankNumber)?10:-1)}}var $R=(()=>{class t{constructor(){}hasSomeValue(){return this.isNotNullOrEmpty(this.paymentDetailData.accountNumber)||this.isNotNullOrEmpty(this.paymentDetailData.bankNumber)||this.isNotNullOrEmpty(this.paymentDetailData.checkNumber)||this.isNotNullOrEmpty(this.paymentDetailData.receiptNumber)||this.isNotNullOrEmpty(this.paymentDetailData.routingCode)}isNotNullOrEmpty(e){return e!==null&&e!==""}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-transaction-payment-detail"]],inputs:{paymentDetailData:"paymentDetailData"},decls:7,vars:5,consts:[[1,"layout-row-wrap","card-content"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["colspan","2",1,"mat-body-strong","center"],[1,"mat-body-strong"]],template:function(n,o){n&1&&(nt(0,"div",0)(1,"div",1),y(2),S(3,"translate"),rt(),nt(4,"div",2),y(5),rt()(),E(6,P2e,11,8,"table")),n&2&&(p(2),ee(" ",k(3,3,"labels.inputs.Payment Type")," "),p(3),ee(" ",o.paymentDetailData.paymentType.name," "),p(),I(o.hasSomeValue()?6:-1))},dependencies:[he,ve,Te],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.card-content[_ngcontent-%COMP%]{width:100%;padding-bottom:25px}.card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{text-align:left}.card-content[_ngcontent-%COMP%] .attribute[_ngcontent-%COMP%]{font-weight:500}"]})}}return t})();var GR=(()=>{class t{constructor(){this.disablePrevious=!1,this.disableNext=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-stepper-buttons"]],inputs:{disablePrevious:"disablePrevious",disableNext:"disableNext"},decls:9,vars:8,consts:[[1,"flex-fill","layout-row","layout-align-center","margin-t","gap-2percent","layout-xs-column"],["mat-raised-button","","matStepperPrevious","",3,"disabled"],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"]],template:function(n,o){n&1&&(h(0,"div",0)(1,"button",1),F(2,"fa-icon",2),y(3),S(4,"translate"),_(),h(5,"button",3),y(6),S(7,"translate"),F(8,"fa-icon",4),_()()),n&2&&(p(),D("disabled",o.disablePrevious),p(2),ee(" ",k(4,4,"labels.buttons.Previous")," "),p(2),D("disabled",o.disableNext),p(),ee(" ",k(7,6,"labels.buttons.Next")," "))},dependencies:[he,ve,vt,Yt,Gz,$z,Te],encapsulation:2})}}return t})();function L2e(t,i){if(t&1&&(h(0,"mat-option",4),y(1),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ee(" ","("+e.glCode+") "+e.name," ")}}function A2e(t,i){t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2&&(p(),St(" ",k(2,3,"labels.inputs.Account")," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required")))}function z2e(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",2)(5,"mat-option"),F(6,"ngx-mat-select-search",3),_(),Xe(7,L2e,2,2,"mat-option",4,ht),S(9,"async"),_(),E(10,A2e,7,9,"mat-error"),_()),t&2){let e=M();p(2),T(k(3,8,"labels.inputs."+e.inputLabel)),p(2),D("formControl",e.inputFormControl),p(2),D("placeholderLabel",Ft(e.placeHolderLabel))("noEntriesFoundLabel",Ft(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),Ze(k(9,10,e.glAccountData)),p(3),I(e.inputFormControl.hasError("required")?10:-1)}}function R2e(t,i){if(t&1&&(h(0,"mat-option",4),y(1),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ee(" ","("+e.glCode+") "+e.name," ")}}function N2e(t,i){if(t&1&&(h(0,"mat-form-field",1)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"mat-select",5)(5,"mat-option"),F(6,"ngx-mat-select-search",6),_(),Xe(7,R2e,2,2,"mat-option",4,ht),S(9,"async"),_()()),t&2){let e=M();p(2),T(k(3,7,"labels.inputs."+e.inputLabel)),p(2),D("formControl",e.inputFormControl),p(2),D("placeholderLabel",Ft(e.placeHolderLabel))("noEntriesFoundLabel",Ft(e.noEntriesFoundLabel))("formControl",e.filterFormCtrl),p(),Ze(k(9,9,e.glAccountData))}}var WR=(()=>{class t{constructor(){this.translateService=d(Po),this.glAccountList=[],this.required=!1,this.inputLabel="",this.glAccountData=new pr(1),this.filterFormCtrl=new Hi(""),this._onDestroy=new B,this.placeHolderLabel="",this.noEntriesFoundLabel=""}ngOnInit(){this.filterFormCtrl.valueChanges.pipe(ye(this._onDestroy)).subscribe(()=>{this.searchGLAccount()}),this.placeHolderLabel=this.translateService.instant("labels.text.Search"),this.noEntriesFoundLabel=this.translateService.instant("labels.text.No data found")}ngOnChanges(e){this.glAccountList&&this.glAccountData.next(this.glAccountList.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}searchGLAccount(){if(this.glAccountList){let e=this.filterFormCtrl.value.toLowerCase();e?this.glAccountData.next(this.glAccountList.filter(n=>n.name.toLowerCase().indexOf(e)>=0||n.glCode.toLowerCase().indexOf(e)>=0)):this.glAccountData.next(this.glAccountList.slice())}}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-gl-account-selector"]],inputs:{inputFormControl:"inputFormControl",glAccountList:"glAccountList",required:"required",inputLabel:"inputLabel"},features:[Re],decls:3,vars:2,consts:[[1,"layout-column","m-r-10"],[1,"flex-100"],["required","",3,"formControl"],[3,"placeholderLabel","noEntriesFoundLabel","formControl"],[3,"value"],[3,"formControl"],[3,"formControl","placeholderLabel","noEntriesFoundLabel"]],template:function(n,o){n&1&&(h(0,"div",0),E(1,z2e,11,12,"mat-form-field",1),E(2,N2e,10,11,"mat-form-field",1),_()),n&2&&(p(),I(o.required?1:-1),p(),I(o.required?-1:2))},dependencies:[he,ve,mn,Ir,Si,Bt,Cn,ao,qn,ln,Sh,Qb,Xd,Te],encapsulation:2})}}return t})();function F2e(t,i){if(t&1&&(h(0,"span",0)(1,"div",2),y(2),S(3,"translate"),_(),h(4,"div",3),y(5),_()()),t&2){let e=M();p(),D("ngClass",e.getWithClass(e.withTitle)),p(),ee(" ",k(3,4,"labels.inputs."+e.accountTitle)," "),p(2),D("ngClass",e.getWithClass(e.withAccount)),p(),ee(" ",e.glAccountValue()," ")}}function V2e(t,i){if(t&1&&(h(0,"div",1),y(1),_()),t&2){let e=M();p(),ee(" ",e.glAccountValue()," ")}}var Hh=(()=>{class t{constructor(){this.glAccount=null,this.accountTitle=null,this.withTitle="50%",this.withAccount="50%"}glAccountValue(){return this.glAccount?"("+this.glAccount.glCode+") "+(this.glAccount.nameDecorated?this.glAccount.nameDecorated:this.glAccount.name):""}getWithClass(e){return"flex-"+e.replace("%","")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-gl-account-display"]],inputs:{glAccount:"glAccount",accountTitle:"accountTitle",withTitle:"withTitle",withAccount:"withAccount"},decls:2,vars:2,consts:[[1,"layout-row"],[1,"flex-100"],[1,"header",3,"ngClass"],[3,"ngClass"]],template:function(n,o){n&1&&(E(0,F2e,6,6,"span",0),E(1,V2e,2,1,"div",1)),n&2&&(I(o.accountTitle?0:-1),p(),I(o.accountTitle?-1:1))},dependencies:[he,Un,ve,Te],styles:["div[_ngcontent-%COMP%]{margin:.3rem 0;word-wrap:break-word}div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return t})();var qR=(()=>{class t{getAccountingRulesForShares(){return["NONE","Cash"]}getAccountingRulesForSavings(){return["NONE","Cash","Accrual (periodic)"]}getAccountingRulesForLoans(){return["NONE","Cash","Accrual (periodic)","Accrual (upfront)"]}getAccountRuleName(e){return["ACCRUAL PERIODIC","ACCRUAL (PERIODIC)"].includes(e)?"Accrual (periodic)":["ACCRUAL UPFRONT","ACCRUAL (UPFRONT)"].includes(e)?"Accrual (upfront)":e.startsWith("CASH")?"Cash":e==="NONE"?"NONE":""}isNoneAccounting(e){return e.id===1}isNoneAccountingRuleId(e){return e===1}isCashOrAccrualAccounting(e){return e.id===2||e.id===3}isCashOrAccrualAccountingRuleId(e){return e===2||e===3}isAccrualAccounting(e){return e.id===3}isAccrualAccountingRuleId(e){return e===3}getAccountingRuleFrom(e){return e===1?{code:"NONE",id:e,value:"None"}:e===2?{code:"CASH",id:e,value:"Cash"}:e===3?{code:"ACCRUAL_PERIODIC",id:e,value:"Accural (periodic)"}:e===4?{code:"ACCRUAL_UPFRONT",id:e,value:"Accural (upfront)"}:{code:"INVALID",id:e,value:"Invalid"}}glAccountLookUp(e,n){let o=null;return e&&n.some(r=>{r.id===e&&(o={id:r.id,name:r.name,glCode:r.glCode})}),o}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function B2e(t,i){if(t&1&&(h(0,"div",1)(1,"span",3),y(2),S(3,"translate"),_(),h(4,"span",4),y(5),S(6,"translate"),_()()),t&2){let e=M();p(2),ee("",k(3,2,"labels.inputs.Type"),":"),p(3),T(k(6,4,"labels.accounting."+e.getAccountingRuleName(e.accountingRule.value)))}}function j2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Overdraft portfolio")("glAccount",e.accountingMappings.overdraftPortfolioControl)("withTitle","40%")}}function H2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Fees Receivable")("glAccount",e.accountingMappings.feeReceivableAccount)("withTitle","40%")}}function U2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Penalties Receivable")("glAccount",e.accountingMappings.penaltyReceivableAccount)("withTitle","40%")}}function $2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Interest Receivable")("glAccount",e.accountingMappings.interestReceivableAccount)("withTitle","40%")}}function G2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Interest Payable")("glAccount",e.accountingMappings.interestPayableAccount)("withTitle","40%")}}function W2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Escheat liability")("glAccount",e.accountingMappings.escheatLiabilityAccount)("withTitle","40%")}}function q2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Income from Interest")("glAccount",e.accountingMappings.incomeFromInterest)("withTitle","40%")}}function Y2e(t,i){if(t&1&&F(0,"mifosx-gl-account-display",7),t&2){let e=M(2);D("accountTitle","Write-off")("glAccount",e.accountingMappings.writeOffAccount)("withTitle","40%")}}function Q2e(t,i){if(t&1&&(h(0,"div",2)(1,"h4",5),y(2),S(3,"translate"),_(),h(4,"div",6),F(5,"mifosx-gl-account-display",7),_(),h(6,"div",6),E(7,j2e,1,3,"mifosx-gl-account-display",7),_(),h(8,"div",6),E(9,H2e,1,3,"mifosx-gl-account-display",7),_(),h(10,"div",6),E(11,U2e,1,3,"mifosx-gl-account-display",7),E(12,$2e,1,3,"mifosx-gl-account-display",7),h(13,"h4",5),y(14),S(15,"translate"),_(),h(16,"div",6),F(17,"mifosx-gl-account-display",7),_(),h(18,"div",6),F(19,"mifosx-gl-account-display",7),_(),h(20,"div",6),E(21,G2e,1,3,"mifosx-gl-account-display",7),_(),h(22,"div",6),E(23,W2e,1,3,"mifosx-gl-account-display",7),_(),h(24,"h4",5),y(25),S(26,"translate"),_(),h(27,"div",6),F(28,"mifosx-gl-account-display",7),_(),h(29,"div",6),F(30,"mifosx-gl-account-display",7),_(),h(31,"div",6),E(32,q2e,1,3,"mifosx-gl-account-display",7),_(),h(33,"h4",5),y(34),S(35,"translate"),_(),h(36,"div",6),F(37,"mifosx-gl-account-display",7),_(),h(38,"div",6),E(39,Y2e,1,3,"mifosx-gl-account-display",7),_()()()),t&2){let e=M();p(2),T(k(3,30,"labels.heading.Assets")),p(3),D("accountTitle","Saving reference")("glAccount",e.accountingMappings.savingsReferenceAccount)("withTitle","40%"),p(2),I(e.accountingMappings.overdraftPortfolioControl?7:-1),p(2),I(e.isAccrualAccounting()?9:-1),p(2),I(e.isAccrualAccounting()?11:-1),p(),I(e.isAccrualAccounting()?12:-1),p(2),T(k(15,32,"labels.heading.Liabilities")),p(3),D("accountTitle","Saving control")("glAccount",e.accountingMappings.savingsControlAccount)("withTitle","40%"),p(2),D("accountTitle","Savings transfers in suspense")("glAccount",e.accountingMappings.transfersInSuspenseAccount)("withTitle","40%"),p(2),I(e.isAccrualAccounting()?21:-1),p(2),I(e.accountingMappings.escheatLiabilityAccount?23:-1),p(2),T(k(26,34,"labels.heading.Income")),p(3),D("accountTitle","Income from fees")("glAccount",e.accountingMappings.incomeFromFeeAccount)("withTitle","40%"),p(2),D("accountTitle","Income from penalties")("glAccount",e.accountingMappings.incomeFromPenaltyAccount)("withTitle","40%"),p(2),I(e.accountingMappings.incomeFromInterest?32:-1),p(2),T(k(35,36,"labels.heading.Expenses")),p(3),D("accountTitle","Interest on savings")("glAccount",e.accountingMappings.interestOnSavingsAccount)("withTitle","40%"),p(2),I(e.accountingMappings.writeOffAccount?39:-1)}}var YR=(()=>{class t{constructor(){this.accounting=d(qR),this.accountingMappings=[]}isCashOrAccrualAccounting(){return this.accountingRule?this.accounting.isCashOrAccrualAccounting(this.accountingRule):!1}isAccrualAccounting(){return this.accountingRule?this.accounting.isAccrualAccounting(this.accountingRule):!1}getAccountingRuleName(e){return this.accounting.getAccountRuleName(e.toUpperCase())}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-view-savings-accounting-details"]],inputs:{accountingRule:"accountingRule",accountingMappings:"accountingMappings"},decls:4,vars:2,consts:[[1,"layout-row-wrap","responsive-column"],[1,"layout-row","responsive-column","flex-100"],[1,"layout-row-wrap","responsive-column","flex-100"],[1,"flex-40"],[1,"flex-60"],[1,"mat-h4","flex-100"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"]],template:function(n,o){n&1&&(h(0,"div",0),E(1,B2e,7,6,"div",1),h(2,"div",2),E(3,Q2e,40,38,"div",2),_()()),n&2&&(p(),I(o.accountingRule?1:-1),p(2),I(o.isCashOrAccrualAccounting()?3:-1))},dependencies:[he,ve,Hh,Te],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.container[_ngcontent-%COMP%]{padding:1%;margin:1%;width:100%}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-h4[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:200;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var QR=(()=>{class t{constructor(){this.ref=d(li),this.darkModeOn=!1,this.themes=["dark-theme","light-theme"],this.theme=new ct("light-theme"),this.darkModeOn=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.setDarkMode(this.darkModeOn),window.matchMedia("(prefers-color-scheme: dark)").addListener(e=>{let n=e.matches;this.theme.next(n?"dark-theme":"light-theme"),this.ref.tick()})}isDarkMode(){return this.darkModeOn=window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches,this.darkModeOn}setDarkMode(e){this.darkModeOn=e,e?(document.body.classList.add("dark-theme"),this.theme.next("dark-theme")):(document.body.classList.remove("dark-theme"),this.theme.next("light-theme"))}setInitialDarkMode(){this.setDarkMode(this.darkModeOn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275prov=R({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var KR=(()=>{class t{constructor(){this.themingService=d(QR),this.settingsService=d(Xt)}ngOnInit(){this.darkModeOn=!!this.settingsService.themeDarkEnabled}ngOnChanges(e){this.darkModeOn=!!this.settingsService.themeDarkEnabled}toggleTheme(){this.darkModeOn=!this.darkModeOn,this.settingsService.setThemeDarkEnabled(this.darkModeOn),this.themingService.setDarkMode(this.darkModeOn)}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-theme-toggle"]],features:[Re],decls:3,vars:1,consts:[["mat-icon-button","",1,"m-l-15","m-r-5",3,"click"]],template:function(n,o){n&1&&(h(0,"button",0),N("click",function(){return o.toggleTheme()}),h(1,"mat-icon"),y(2),_()()),n&2&&(p(2),T(o.darkModeOn?"wb_sunny":"nights_stay"))},dependencies:[he,ve,ni,Co],encapsulation:2})}}return t})();function K2e(t,i){if(t&1){let e=le();h(0,"span",3),N("click",function(){G(e);let o=M(2);return W(o.showValue())}),F(1,"fa-icon",4),_()}if(t&2){let e=M(2);p(),D("title",e.textValue)}}function X2e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=M(2);return W(o.showValue())}),y(1),S(2,"truncateText"),_()}if(t&2){let e=M(2);p(),ee("",Zo(2,1,e.textValue,e.printChars),"...")}}function Z2e(t,i){if(t&1){let e=le();h(0,"span",5),N("click",function(){G(e);let o=M(2);return W(o.showValue())}),y(1),_()}if(t&2){let e=M(2);p(),T(e.textValue)}}function J2e(t,i){if(t&1){let e=le();h(0,"span",0),N("mouseenter",function(){G(e);let o=M();return W(o.mouseEnter())})("mouseleave",function(){G(e);let o=M();return W(o.mouseLeave())}),E(1,K2e,2,1,"span",1),E(2,X2e,3,4,"span",2),E(3,Z2e,2,1,"span",2),_()}if(t&2){let e=M();p(),I(e.isLongValue()?1:-1),p(),I(e.isLongValue()?2:-1),p(),I(e.isLongValue()?-1:3)}}var XR=(()=>{class t{constructor(){this.chars=30,this.iconVisible=!1,this.displayL=!1,this.displayR=!0,this.emptyValue=!1,this.printChars=30}ngOnInit(){this.emptyValue=!this.textValue||this.textValue==="",this.printChars=this.chars}isLongValue(){return this.textValue==null?!1:this.textValue.length>25}showValue(){this.printChars==30?this.printChars=1e3:this.printChars=30}mouseEnter(){this.iconVisible=!0}mouseLeave(){this.iconVisible=!1}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-long-text"]],inputs:{textValue:"textValue",chars:"chars"},decls:1,vars:1,consts:[[3,"mouseenter","mouseleave"],[1,"m-l-3"],[1,"m-l-5"],[1,"m-l-3",3,"click"],["icon","eye","size","sm",3,"title"],[1,"m-l-5",3,"click"]],template:function(n,o){n&1&&E(0,J2e,4,3,"span"),n&2&&I(o.emptyValue?-1:0)},dependencies:[he,ve,Yt,Qm],encapsulation:2})}}return t})();function ede(t,i){if(t&1&&(h(0,"mat-option",2),y(1),S(2,"translateKey"),_()),t&2){let e=i.$implicit;D("value",e.id),p(),ee(" ",Zo(2,2,e.value,"catalogs")," ")}}function tde(t,i){if(t&1){let e=le();h(0,"button",4),N("click",function(o){G(e);let r=M();return W(r.clearProperty(o))}),h(1,"mat-icon"),y(2),S(3,"translate"),_()()}t&2&&(p(2),T(k(3,1,"labels.buttons.Close")))}var ZR=(()=>{class t{constructor(){this.translateService=d(Po),this.selectOptions=[]}getPlaceHolderText(){return this.placeHolderText?this.translateService.instant("labels.inputs."+this.placeHolderText):""}getLabelText(){return this.labelText?this.translateService.instant("labels.inputs."+this.labelText):""}clearProperty(){this.controlSelect.patchValue("")}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-dropdown"]],inputs:{placeHolderText:"placeHolderText",labelText:"labelText",selectOptions:"selectOptions",controlSelect:"controlSelect",required:"required"},decls:7,vars:4,consts:[[1,"flex-28"],["formControlName","controlSelect",3,"placeholder"],[3,"value"],["matSuffix","","mat-icon-button","","aria-label","Clear"],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"]],template:function(n,o){n&1&&(h(0,"mat-form-field",0)(1,"mat-label"),y(2),_(),h(3,"mat-select",1),Xe(4,ede,3,5,"mat-option",2,ht),_(),E(6,tde,4,3,"button",3),_()),n&2&&(p(2),T(o.getLabelText()),p(),D("placeholder",Ft(o.getPlaceHolderText())),p(),Ze(o.selectOptions),p(2),I(o.controlSelect?6:-1))},dependencies:[he,ve,mn,Ao,Bt,Cn,Za,qn,ln,ni,Co,Te,Wc],encapsulation:2})}}return t})();function nde(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),h(4,"strong"),y(5),S(6,"translate"),_()()),t&2){let e=M(2);p(),St(" ",k(2,3,"labels.inputs."+e.inputLabel)," ",k(3,5,"labels.commons.is")," "),p(4),T(k(6,7,"labels.commons.required"))}}function ide(t,i){if(t&1&&(h(0,"mat-hint",4),y(1),S(2,"currency"),_()),t&2){let e=M(2);p(),T(cm(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function ode(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=M(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function rde(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=M(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function ade(t,i){if(t&1){let e=le();h(0,"mat-form-field",0)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"div",2)(5,"span"),y(6),_(),h(7,"input",3),N("keypress",function(o){G(e);let r=M();return W(r.numberOnly(o))})("blur",function(){G(e);let o=M();return W(o.displayHint=!1)})("focus",function(){G(e);let o=M();return W(o.displayHint=!0)}),_()(),E(8,nde,7,9,"mat-error"),E(9,ide,3,6,"mat-hint",4),E(10,ode,4,7,"mat-error"),E(11,rde,4,7,"mat-error"),_()}if(t&2){let e=M();p(2),T(k(3,10,"labels.inputs."+e.inputLabel)),p(4),T(e.currency.code),p(),D("mifosxFormatAmount",am("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),I(e.inputFormControl.hasError("required")?8:-1),p(),I(e.displayHint?9:-1),p(),I(e.minVal&&e.inputFormControl.hasError("min")?10:-1),p(),I(e.maxVal&&e.inputFormControl.hasError("max")?11:-1)}}function sde(t,i){if(t&1&&(h(0,"mat-hint",4),y(1),S(2,"currency"),_()),t&2){let e=M(2);p(),T(cm(2,1,e.inputFormControl.value,e.currency.code,e.currency.displaySymbol,"1.2-2"))}}function cde(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=M(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be at least")," ",e.minVal," ")}}function lde(t,i){if(t&1&&(h(0,"mat-error"),y(1),S(2,"translate"),S(3,"translate"),_()),t&2){let e=M(2);p(),Ua(" ",k(2,3,"labels.inputs.Amount")," ",k(3,5,"labels.commons.Must be less or equal to")," ",e.maxVal," ")}}function dde(t,i){if(t&1){let e=le();h(0,"mat-form-field",1)(1,"mat-label"),y(2),S(3,"translate"),_(),h(4,"span",5),y(5),_(),F(6,"span",6),h(7,"input",7),N("keypress",function(o){G(e);let r=M();return W(r.numberOnly(o))})("blur",function(){G(e);let o=M();return W(o.displayHint=!1)})("focus",function(){G(e);let o=M();return W(o.displayHint=!0)}),_(),E(8,sde,3,6,"mat-hint",4),E(9,cde,4,7,"mat-error"),E(10,lde,4,7,"mat-error"),_()}if(t&2){let e=M();p(2),T(k(3,9,"labels.inputs."+e.inputLabel)),p(3),T(e.currency.code),p(2),D("mifosxFormatAmount",am("",e.currency.code,":",e.currency.displaySymbol))("formControl",e.inputFormControl),p(),I(e.displayHint?8:-1),p(),I(e.minVal&&e.inputFormControl.hasError("min")?9:-1),p(),I(e.maxVal&&e.inputFormControl.hasError("max")?10:-1)}}var JR=(()=>{class t{constructor(){this.isRequired=!1,this.displayHint=!1}numberOnly(e){let n=e.which?e.which:e.keyCode;return n===46?!(this.inputFormControl.value.indexOf(".")>-1):!(n>31&&(n<48||n>57))}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["mifosx-input-amount"]],inputs:{isRequired:"isRequired",currency:"currency",inputLabel:"inputLabel",inputFormControl:"inputFormControl",minVal:"minVal",maxVal:"maxVal"},decls:2,vars:2,consts:[["appearance","fill",1,"flex-100","input-container"],["appearance","fill",1,"flex-100"],[1,"input-group"],["required","","matInput","",1,"right-input",3,"keypress","blur","focus","mifosxFormatAmount","formControl"],[1,"right-hint"],["matTextSuffix","",1,"m-l-10"],[1,"flex-auto"],["matInput","",1,"right-input",3,"keypress","blur","focus","mifosxFormatAmount","formControl"]],template:function(n,o){n&1&&(E(0,ade,12,12,"mat-form-field",0),E(1,dde,11,11,"mat-form-field",1)),n&2&&(I(o.isRequired?0:-1),p(),I(o.isRequired?-1:1))},dependencies:[he,ve,yi,mn,Ir,Si,Bt,Cn,ao,Za,W0,ti,KS,o7,Te],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.input-container[_ngcontent-%COMP%]{width:100%}.input-group[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;gap:5px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}.right-hint[_ngcontent-%COMP%]{min-width:100%;text-align:right;font-weight:500}"]})}}return t})();var eN=(()=>{class t{constructor(){this.enableMeridian=!0}static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275cmp=P({type:t,selectors:[["ngx-mat-datetime-picker"]],inputs:{enableMeridian:"enableMeridian"},decls:3,vars:1,consts:[["picker",""],[3,"for"]],template:function(n,o){if(n&1&&F(0,"mat-datepicker-toggle",1)(1,"mat-datepicker",null,0),n&2){let r=Nt(2);D("for",r)}},dependencies:[he,ve,ou,bf],encapsulation:2})}}return t})();var Vet=(()=>{class t{static{this.\u0275fac=function(n){return new(n||t)}}static{this.\u0275mod=J({type:t})}static{this.\u0275inj=X({imports:[he,ab,Kb,ve,E7,uS,XS,yf,es,Rr,cO,Af,KT,XT,cP,gP,_P,bP,yP,IP,CP,kP,EP,OP,TP,DR,kR,RR,NR,Bh,Vh,FR,jh,jR,HR,UR,$R,GR,WR,Hh,YR,KR,XR,ZR,JR,Uf,eN,he,ab,Kb,QS,ve,E7]})}}return t})();export{Se as a,Fe as b,B as c,ct as d,pr as e,Sn as f,iue as g,tn as h,re as i,Gr as j,me as k,gi as l,_n as m,Oa as n,ed as o,Ta as p,ft as q,Ae as r,Mo as s,hr as t,Be as u,Wl as v,qr as w,Yr as x,hs as y,Cc as z,We as A,lt as B,ye as C,Ot as D,pe as E,kt as F,R as G,X as H,L as I,ke as J,d as K,G as L,W as M,$t as N,Ko as O,be as P,Me as Q,Fi as R,Xo as S,Re as T,Ie as U,Q as V,Bc as W,Td as X,Fn as Y,jc as Z,_1 as _,Vx as $,mU as aa,pU as ba,p as ca,j as da,se as ea,tt as fa,On as ga,Ke as ha,Ce as ia,P as ja,J as ka,z as la,ce as ma,ot as na,C1 as oa,ne as pa,M5 as qa,E as ra,I as sa,ht as ta,Xe as ua,Ze as va,D as wa,h as xa,_ as ya,F as za,nt as Aa,rt as Ba,Tn as Ca,Vi as Da,Bi as Ea,Vt as Fa,le as Ga,Lt as Ha,N as Ia,M as Ja,De as Ka,ae as La,Ee as Ma,ue as Na,U as Oa,$ as Pa,Nt as Qa,At as Ra,oe as Sa,Tt as Ta,y as Ua,T as Va,ee as Wa,St as Xa,Ua as Ya,uw as Za,M1 as _a,Hd as $a,w1 as ab,Ft as bb,Uc as cb,de as db,ko as eb,Eo as fb,D1 as gb,S as hb,k as ib,Zo as jb,xW as kb,cm as lb,ks as mb,xe as nb,Sr as ob,Jo as pb,Un as qb,vD as rb,wq as sb,yD as tb,Dq as ub,i7 as vb,Es as wb,Xd as xb,Eq as yb,Oq as zb,E1 as Ab,Pq as Bb,Aq as Cb,Zd as Db,o7 as Eb,he as Fb,_be as Gb,DD as Hb,f7 as Ib,Zq as Jb,tY as Kb,T1 as Lb,o0 as Mb,To as Nb,te as Ob,r0 as Pb,O1 as Qb,Bn as Rb,GD as Sb,DY as Tb,SY as Ub,YD as Vb,Ga as Wb,sc as Xb,Ioe as Yb,nb as Zb,$f as _b,LNe as $b,bu as ac,Ooe as bc,Gf as cc,eb as dc,tb as ec,Toe as fc,No as gc,ro as hc,M_ as ic,CE as jc,bo as kc,m2 as lc,MX as mc,EX as nc,Xc as oc,xp as pc,ni as qc,vt as rc,HOe as sc,yo as tc,Wn as uc,Qs as vc,Mi as wc,so as xc,pI as yc,Ei as zc,xse as Ac,qt as Bc,En as Cc,Wi as Dc,Ln as Ec,xn as Fc,An as Gc,zn as Hc,d9 as Ic,L1 as Jc,c0 as Kc,Po as Lc,Te as Mc,E7 as Nc,mt as Oc,JT as Pc,Os as Qc,go as Rc,Xt as Sc,pS as Tc,Zm as Uc,di as Vc,yi as Wc,en as Xc,mn as Yc,tr as Zc,VS as _c,H1 as $c,Hi as ad,nQ as bd,zs as cd,oQ as dd,Si as ed,ui as fd,US as gd,$S as hd,Ao as id,uQ as jd,pQ as kd,Ir as ld,gQ as md,bQ as nd,vQ as od,Rs as pd,QS as qd,ve as rd,LE as sd,KDe as td,XDe as ud,AE as vd,ZDe as wd,JDe as xd,eSe as yd,tSe as zd,nSe as Ad,Cn as Bd,ao as Cd,W0 as Dd,q0 as Ed,Za as Fd,Bt as Gd,nf as Hd,ti as Id,ln as Jd,uo as Kd,qn as Ld,BZ as Md,mo as Nd,bf as Od,vf as Pd,ou as Qd,il as Rd,Lo as Sd,Wc as Td,Ps as Ud,Wf as Vd,QR as Wd,Yt as Xd,YT as Yd,nr as Zd,es as _d,Rr as $d,cO as ae,Af as be,O2 as ce,rc as de,KT as ee,XT as fe,_l as ge,ac as he,Nf as ie,J9 as je,aP as ke,cP as le,Vf as me,Co as ne,gP as oe,_P as pe,bP as qe,yP as re,CP as se,xP as te,kP as ue,EP as ve,IP as we,OP as xe,TP as ye,YA as ze,tVe as Ae,nVe as Be,tz as Ce,ZVe as De,qre as Ee,Jre as Fe,dz as Ge,dae as He,uae as Ie,hje as Je,gje as Ke,_je as Le,jje as Me,Hje as Ne,Uje as Oe,$je as Pe,wb as Qe,Mz as Re,Dz as Se,OHe as Te,qae as Ue,Oz as Ve,Pz as We,ase as Xe,vUe as Ye,use as Ze,oh as _e,Bz as $e,jz as af,Ob as bf,Jse as cf,tce as df,nce as ef,$z as ff,Gz as gf,ph as hf,fh as if,hh as jf,PGe as kf,gh as lf,_h as mf,LGe as nf,bh as of,vh as pf,AGe as qf,yh as rf,Ch as sf,zGe as tf,xh as uf,RGe as vf,Jz as wf,Eu as xf,Ice as yf,Tce as zf,Pce as Af,mWe as Bf,Rce as Cf,Nce as Df,pWe as Ef,DWe as Ff,gR as Gf,_R as Hf,rqe as If,aqe as Jf,sqe as Kf,cqe as Lf,yR as Mf,lqe as Nf,dqe as Of,CR as Pf,xR as Qf,MR as Rf,Qb as Sf,Sh as Tf,DR as Uf,eS as Vf,tS as Wf,nS as Xf,ca as Yf,oS as Zf,Ts as _f,cS as $f,Km as ag,uS as bg,kh as cg,SR as dg,Eh as eg,Ih as fg,kR as gg,OR as hg,TR as ig,PR as jg,LR as kg,AR as lg,zR as mg,RR as ng,$Ce as og,XS as pg,Ah as qg,Rh as rg,Nh as sg,Fh as tg,NR as ug,FR as vg,VR as wg,BR as xg,jR as yg,HR as zg,UR as Ag,$R as Bg,GR as Cg,WR as Dg,Hh as Eg,qR as Fg,YR as Gg,KR as Hg,XR as Ig,JR as Jg,Vet as Kg}; diff --git a/browser/chunk-LTHWICVL.js b/browser/chunk-E6PLTH6T.js similarity index 91% rename from browser/chunk-LTHWICVL.js rename to browser/chunk-E6PLTH6T.js index d1310026e..8ad26e43e 100644 --- a/browser/chunk-LTHWICVL.js +++ b/browser/chunk-E6PLTH6T.js @@ -1 +1 @@ -import{G as r,K as i,fg as n}from"./chunk-AA5NALQN.js";var m=(()=>{class t{constructor(){this.savingsService=i(n)}resolve(e){let a=e.parent.parent.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId"),c=e.paramMap.get("datatableName");return this.savingsService.getSavingsDatatable(a,c)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var S=(()=>{class t{constructor(){this.savingsService=i(n)}resolve(){return this.savingsService.getSavingsDatatables()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{m as a,S as b}; +import{G as r,K as i,fg as n}from"./chunk-BJA4FJSH.js";var m=(()=>{class t{constructor(){this.savingsService=i(n)}resolve(e){let a=e.parent.parent.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId"),c=e.paramMap.get("datatableName");return this.savingsService.getSavingsDatatable(a,c)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();var S=(()=>{class t{constructor(){this.savingsService=i(n)}resolve(){return this.savingsService.getSavingsDatatables()}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=r({token:t,factory:t.\u0275fac})}}return t})();export{m as a,S as b}; diff --git a/browser/chunk-EKHJTTW7.js b/browser/chunk-NJLK6VFK.js similarity index 99% rename from browser/chunk-EKHJTTW7.js rename to browser/chunk-NJLK6VFK.js index 2aafb3c79..f6e5ab3f6 100644 --- a/browser/chunk-EKHJTTW7.js +++ b/browser/chunk-NJLK6VFK.js @@ -1 +1 @@ -import{C as y,G as o,J as v,K as u,Lc as C,Ob as a,R as b,Rb as h,Sc as l,b as f}from"./chunk-AA5NALQN.js";import{a as m,b as g}from"./chunk-PHUH23IY.js";var D=(()=>{class s{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||s)(v(C))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac})}}return s})();function j(s){s||(s=u(b));let P=new f(t=>{if(s.destroyed){t.next();return}return s.onDestroy(t.next.bind(t))});return t=>t.pipe(y(P))}var q=(()=>{class s{constructor(){this.settingsService=u(l),this.globalConfigurations=[s.DAYS_BEFORE_REPAYMENT_IS_DUE,s.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(r=>{this.globalConfigurations.includes(r.name)&&e.push(r)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let r=this.settingsService.dateFormat,n=this.settingsService.language.code,i=g(m({},t),{charges:t.charges.map(p=>({id:p.id})),dateFormat:r,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(p=>{let c=this.resolvePropertyName(p.name);c!==""&&(!i[c]||i[c]==="")&&(i[c]=p.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Q=(()=>{class s{constructor(){this.http=u(h),this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new a().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new a().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var X=(()=>{class s{constructor(){this.http=u(h),this.settingsService=u(l)}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let r=new a().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:r})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new a().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let r=new a().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:r})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let r=new a().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:r})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new a().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let r=new a().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:r})}addOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,r,{params:n})}editOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,r,{params:n})}deleteDatatableContent(t,e){let r=new a().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:r})}getEmployees(){let t=new a().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let r=new a().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:r})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,r){let n=new a().set("command",r.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new a().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new a().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,r){let n=new a().set("currencyCode",r);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,r){let n=new a().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,r,{params:n})}allocateCash(t,e,r){let n=new a().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,r,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,r){return this.http.put(`/tellers/${t}/cashiers/${e}`,r)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let r=new a().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:r})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new a().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new a().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new a().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new a().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new a;for(let r in t)t[r]!==""&&t[r]!==null&&(e=e.set(r,t[r]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,r,n){let i=new a().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),r&&(i=i.set("staffId",r.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new a().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,r){let n=new a;r.length&&(n=n.set("legalFormType",r));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var et=(()=>{class s{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{D as a,j as b,q as c,Q as d,X as e,et as f}; +import{C as y,G as o,J as v,K as u,Lc as C,Ob as a,R as b,Rb as h,Sc as l,b as f}from"./chunk-BJA4FJSH.js";import{a as m,b as g}from"./chunk-PHUH23IY.js";var D=(()=>{class s{constructor(t){this.translateService=t}translate(t,e){return this.translateService.get(t,e)}static{this.\u0275fac=function(e){return new(e||s)(v(C))}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac})}}return s})();function j(s){s||(s=u(b));let P=new f(t=>{if(s.destroyed){t.next();return}return s.onDestroy(t.next.bind(t))});return t=>t.pipe(y(P))}var q=(()=>{class s{constructor(){this.settingsService=u(l),this.globalConfigurations=[s.DAYS_BEFORE_REPAYMENT_IS_DUE,s.DAYS_AFTER_REPAYMENT_IS_OVERDUE],this.propertyNames=["dueDaysForRepaymentEvent","overDueDaysForRepaymentEvent"]}static{this.LOAN_SCHEDULE_TYPE_CUMULATIVE="CUMULATIVE"}static{this.LOAN_SCHEDULE_TYPE_PROGRESSIVE="PROGRESSIVE"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL="HORIZONTAL"}static{this.LOAN_SCHEDULE_PROCESSING_TYPE_VERTICAL="VERTICAL"}static{this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY="advanced-payment-allocation-strategy"}static{this.DAYS_BEFORE_REPAYMENT_IS_DUE="days-before-repayment-is-due"}static{this.DAYS_AFTER_REPAYMENT_IS_OVERDUE="days-after-repayment-is-overdue"}static isAdvancedPaymentAllocationStrategy(t){return t===this.ADVANCED_PAYMENT_ALLOCATION_STRATEGY}setItemsByDefault(t){let e=[];return t.globalConfiguration.forEach(r=>{this.globalConfigurations.includes(r.name)&&e.push(r)}),e}updateLoanProductDefaults(t,e){return t.itemsByDefault.forEach(n=>{let i=this.resolvePropertyName(n.name);i!==""&&(e?(!t[i]||t[i]==="")&&(t[i]=n.value):t[i]=n.value)}),t}buildPayload(t,e){let r=this.settingsService.dateFormat,n=this.settingsService.language.code,i=g(m({},t),{charges:t.charges.map(p=>({id:p.id})),dateFormat:r,locale:n});return delete i.allowAttributeConfiguration,delete i.advancedAccountingRules,i.allowPartialPeriodInterestCalcualtion=i.allowPartialPeriodInterestCalculation,delete i.allowPartialPeriodInterestCalculation,e.forEach(p=>{let c=this.resolvePropertyName(p.name);c!==""&&(!i[c]||i[c]==="")&&(i[c]=p.value)}),i}isItemByDefault(t){return this.propertyNames.includes(t)}isGlobalConfigurations(t){return this.globalConfigurations.includes(t)}resolvePropertyName(t){if(this.globalConfigurations.includes(t)){let e=this.globalConfigurations.indexOf(t);if(e>-1)return this.propertyNames[e]}return""}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var Q=(()=>{class s{constructor(){this.http=u(h),this.basePath="/external-asset-owners"}executeExternalAssetOwnerLoanCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/loans/${t}`,e,{params:n})}executeExternalAssetOwnerTransferCommand(t,e,r){let n=new a().set("command",r);return this.http.post(`${this.basePath}/transfers/${t}`,e,{params:n})}retrieveExternalAssetOwnerTransfers(t){let e=new a().set("loanId",t);return this.http.get(`${this.basePath}/transfers`,{params:e})}retrieveExternalAssetOwnerActiveTransfer(t){let e=new a().set("loanId",t);return this.http.get(`${this.basePath}/transfers/active-transfer`,{params:e})}retrieveExternalAssetOwnerTransferJournalEntries(t){return this.http.get(`${this.basePath}/transfers/${t}/journal-entries`)}searchExternalAssetOwnerTransfer(t){return this.http.post(`${this.basePath}/search`,t)}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var X=(()=>{class s{constructor(){this.http=u(h),this.settingsService=u(l)}getProvisioningCriterias(){return this.http.get("/provisioningcriteria")}getProvisioningCriteriaTemplate(){return this.http.get("/provisioningcriteria/template")}getProvisioningCriteria(t,e=!1){let r=new a().set("template",e.toString());return this.http.get(`/provisioningcriteria/${t}`,{params:r})}createProvisioningCriteria(t){return this.http.post("/provisioningcriteria",t)}updateProvisioningCriteria(t,e){return this.http.put(`/provisioningcriteria/${t}`,e)}deleteProvisioningCriteria(t){return this.http.delete(`/provisioningcriteria/${t}`)}getOffices(){return this.http.get("/offices")}getOfficeTemplate(t){let e=new a().set("officeId",t.toString());return this.http.get("/loans/loanreassignment/template",{params:e})}getOfficerTemplate(t,e){let r=new a().set("fromLoanOfficerId",t.toString()).set("officeId",e.toString());return this.http.get("/loans/loanreassignment/template",{params:r})}createLoanReassignment(t){return this.http.post("/loans/loanreassignment",t)}getOffice(t,e=!1){let r=new a().set("template",e.toString());return this.http.get(`/offices/${t}`,{params:r})}createOffice(t){return this.http.post("/offices",t)}updateOffice(t,e){return this.http.put(`/offices/${t}`,e)}getOfficeDatatables(){let t=new a().set("apptable","m_office");return this.http.get("/datatables",{params:t})}getOfficeDatatable(t,e){let r=new a().set("genericResultSet","true");return this.http.get(`/datatables/${e}/${t}`,{params:r})}addOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.post(`/datatables/${e}/${t}`,r,{params:n})}editOfficeDatatableEntry(t,e,r){let n=new a().set("genericResultSet","true");return this.http.put(`/datatables/${e}/${t}`,r,{params:n})}deleteDatatableContent(t,e){let r=new a().set("genericResultSet","true");return this.http.delete(`/datatables/${e}/${t}`,{params:r})}getEmployees(){let t=new a().set("status","all");return this.http.get("/staff",{params:t})}createEmployee(t){return this.http.post("/staff",t)}getEmployee(t,e=!0){let r=new a().set("template",e.toString());return this.http.get(`/staff/${t}`,{params:r})}getCurrencies(){return this.http.get("/currencies")}updateCurrencies(t){return this.http.put("/currencies",{currencies:t})}getSmsCampaigns(){return this.http.get("/smscampaigns")}getSmsCampaign(t){return this.http.get(`/smscampaigns/${t}`)}createSmsCampaign(t){return this.http.post("/smscampaigns",t)}updateSmsCampaign(t,e){return this.http.put(`/smscampaigns/${e}`,t)}deleteSmsCampaign(t){return this.http.delete(`/smscampaigns/${t}`)}getSmsCampaignTemplate(){return this.http.get("/smscampaigns/template")}executeSmsCampaignCommand(t,e,r){let n=new a().set("command",r.toString());return this.http.post(`/smscampaigns/${t}`,e,{params:n})}getMessagebyStatus(t){let e=new a().set("status",t.status.toString()).set("locale",t.locale).set("dateFormat",t.dateFormat);return e=t.fromDate?e.set("fromDate",t.fromDate):e,e=t.toDate?e.set("toDate",t.toDate):e,this.http.get(`/sms/${t.id}/messageByStatus`,{params:e})}getAdhocQueries(){return this.http.get("/adhocquery")}getAdhocQuery(t){return this.http.get(`/adhocquery/${t}`)}getAdhocQueryTemplate(){return this.http.get("/adhocquery/template")}getAdhocQueryAndTemplate(t){let e=new a().set("template","true");return this.http.get(`/adhocquery/${t}`,{params:e})}createAdhocQuery(t){return this.http.post("/adhocquery",t)}updateAdhocQuery(t,e){return this.http.put(`/adhocquery/${t}`,e)}deleteAdhocQuery(t){return this.http.delete(`/adhocquery/${t}`)}getTellers(){return this.http.get("/tellers")}getTeller(t){return this.http.get(`/tellers/${t}`)}getCashiers(t){return this.http.get(`/tellers/${t}/cashiers`)}getCashier(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}`)}getCashierSummaryAndTransactions(t,e,r){let n=new a().set("currencyCode",r);return this.http.get(`/tellers/${t}/cashiers/${e}/summaryandtransactions`,{params:n})}getCashierTransactionTemplate(t,e){return this.http.get(`/tellers/${t}/cashiers/${e}/transactions/template`)}createCashier(t,e){return this.http.post(`/tellers/${t}/cashiers`,e)}deleteCashier(t,e){return this.http.delete(`/tellers/${t}/cashiers/${e}`)}settleCash(t,e,r){let n=new a().set("command","settle");return this.http.post(`/tellers/${t}/cashiers/${e}/settle`,r,{params:n})}allocateCash(t,e,r){let n=new a().set("command","allocate");return this.http.post(`/tellers/${t}/cashiers/${e}/allocate`,r,{params:n})}getCashierTemplate(t){return this.http.get(`/tellers/${t}/cashiers/template`)}updateCashier(t,e,r){return this.http.put(`/tellers/${t}/cashiers/${e}`,r)}deleteTeller(t){return this.http.delete(`/tellers/${t}`)}createTeller(t){return this.http.post("/tellers",t)}getPaymentTypes(){return this.http.get("/paymenttypes")}getPaymentTypesWithCode(){return this.http.get("/paymenttypes?onlyWithCode=true")}createPaymentType(t){return this.http.post("/paymenttypes",t)}deletePaymentType(t){return this.http.delete(`/paymenttypes/${t}`)}getPaymentType(t){return this.http.get(`/paymenttypes/${t}`)}updatePaymentType(t,e){return this.http.put(`/paymenttypes/${t}`,e)}getPasswordPreferencesTemplate(){return this.http.get("/passwordpreferences/template")}updatePasswordPreferences(t){return this.http.put("/passwordpreferences",t)}getEntityDataTableChecks(t=0,e=-1){let r=new a().set("offset",t.toString()).set("limit",e.toString());return this.http.get("/entityDatatableChecks",{params:r})}getEntityDataTableChecksTemplate(){return this.http.get("/entityDatatableChecks/template")}createEntityDataTableChecks(t){return this.http.post("/entityDatatableChecks",t)}deleteEntityDataTableCheck(t){return this.http.delete(`/entityDatatableChecks/${t}`)}getWorkingDays(){return this.http.get("/workingdays")}updateWorkingDays(t){return this.http.put("/workingdays",t)}getHolidays(t){let e=new a().set("officeId",t.toString());return this.http.get("/holidays",{params:e})}getHoliday(t){return this.http.get(`/holidays/${t}`)}getHolidayTemplate(){return this.http.get("/holidays/template")}createHoliday(t){return this.http.post("/holidays",t)}updateHoliday(t,e){return this.http.put(`/holidays/${t}`,e)}deleteHoliday(t){return this.http.delete(`/holidays/${t}`)}activateHoliday(t){let e=new a().set("command","activate");return this.http.post(`/holidays/${t}`,null,{params:e})}updateEmployee(t,e){return this.http.put(`/staff/${t}`,e)}updateTeller(t,e){return this.http.put(`/tellers/${t}`,e)}getFunds(){return this.http.get("/funds")}getFund(t){return this.http.get(`/funds/${t}`)}createFund(t){return this.http.post("/funds",t)}editFund(t,e){return this.http.put(`/funds/${t}`,e)}getStaffs(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/staff",{params:e})}getCenters(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/centers",{params:e})}getGroups(t){let e=new a().set("officeId",t).set("status","all");return this.http.get("/groups",{params:e})}getStaff(t){let e=new a().set("officeId",t.toString());return this.http.get("/staff",{params:e})}getImports(t){let e=new a().set("entityType",t);return this.http.get("/imports",{params:e})}getAdvanceSearchTemplate(){return this.http.get("/search/template")}retrieveAdvanceSearchResults(t){return this.http.post("/search/advance",t)}getStandingInstructionTemplate(){return this.http.get("/standinginstructions/template")}getStandingInstructions(t){let e=new a;for(let r in t)t[r]!==""&&t[r]!==null&&(e=e.set(r,t[r]));return this.http.get("/standinginstructionrunhistory",{params:e})}getImportTemplate(t,e,r,n){let i=new a().set("tenantIdentifier","default").set("locale",this.settingsService.language.code).set("dateFormat",this.settingsService.dateFormat);return e&&(i=i.set("officeId",e.toString())),r&&(i=i.set("staffId",r.toString())),n.length&&(i=i.set("legalFormType",n)),this.http.get(`${t}/downloadtemplate`,{params:i,responseType:"arraybuffer",observe:"response"})}getImportDocument(t){let e=new a().set("importDocumentId",t).set("tenantIdentifier","default");return this.http.get("/imports/downloadOutputTemplate",{params:e,responseType:"arraybuffer",observe:"response"})}uploadImportDocument(t,e,r){let n=new a;r.length&&(n=n.set("legalFormType",r));let i=new FormData;return i.append("file",t),i.append("locale",this.settingsService.language.code),i.append("dateFormat",this.settingsService.dateFormat),this.http.post(`${e}/uploadtemplate`,i,{params:n})}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();var et=(()=>{class s{constructor(){this.defaultDate="9999-12-31"}validateStatus(t,e){return t!=null?t.status===e:!1}itemCurrentStatus(t){return this.isBuyBackPending(t)?t.status+" PENDING":t.status}itemStatus(t){return"status-"+t.toLowerCase()}isPending(t){return t.status==="PENDING"}isPendingOrCanceled(t){return t.status==="PENDING"||t.status==="CANCELLED"||this.isBuyBackPending(t)}isBuyBackPending(t){return t.status==="BUYBACK"&&t.effectiveTo===this.defaultDate}canBeCancelled(t){return this.validateStatus(t,"PENDING")}canBeSold(t){return t==null?!0:["","CANCELLED"].includes(t.status)||t.status==="BUYBACK"&&t.effectiveTo!==this.defaultDate}canBeBuyed(t){return this.validateStatus(t,"ACTIVE")}static{this.\u0275fac=function(e){return new(e||s)}}static{this.\u0275prov=o({token:s,factory:s.\u0275fac,providedIn:"root"})}}return s})();export{D as a,j as b,q as c,Q as d,X as e,et as f}; diff --git a/browser/chunk-QZU3VMUE.js b/browser/chunk-TV7M7AUH.js similarity index 97% rename from browser/chunk-QZU3VMUE.js rename to browser/chunk-TV7M7AUH.js index bb74a4395..6920fcfaf 100644 --- a/browser/chunk-QZU3VMUE.js +++ b/browser/chunk-TV7M7AUH.js @@ -1 +1 @@ -import{G as i,K as p,Ob as n,Rb as v,dg as c,k as u}from"./chunk-AA5NALQN.js";var h=class{constructor(a){this.selectOptions=[],this.childParameters=[],this.name=a[0],this.variable=a[1],this.label=a[2],this.displayType=a[3],this.formatType=a[4],this.defaultVal=a[5],this.selectOne=a[6],this.selectAll=a[7],this.parentParameterName=a[8],this.inputName=`R_${a[1]}`}};var l=class{constructor(a){this.id=a[0],this.name=a[1]}};var f=class{constructor(a){this.keysLabel=a.columnHeaders[0].columnName,this.valuesLabel=a.columnHeaders[1].columnName,this.keys=a.data.map(e=>e.row[0]),this.values=a.data.map(e=>e.row[1])}};var F=(()=>{class t{constructor(){this.http=p(v)}getReports(){return this.http.get("/reports")}getReportParams(e){let r=new n().set("R_reportListing",`'${e}'`).set("parameterType","true");return this.http.get("/runreports/FullParameterList",{params:r}).pipe(u(s=>s.data.map(o=>new h(o.row))))}getSelectOptions(e){let r=new n().set("parameterType","true");return this.http.get(`/runreports/${e}`,{params:r}).pipe(u(s=>s.data.map(o=>new l(o.row))))}getPentahoParams(e){let r=new n().set("fields","reportParameters");return this.http.get(`/reports/${e}`,{params:r}).pipe(u(s=>s.reportParameters))}getRunReportData(e,r){let s=new n;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${e}`,{params:s})}getChartRunReportData(e,r){let s=new n;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${e}`,{params:s}).pipe(u(o=>new f(o)))}getPentahoRunReportData(e,r,s,o,m){let g=new n().set("tenantIdentifier",s).set("locale",o).set("dateFormat",m);for(let[y,b]of Object.entries(r))g=g.set(y,b);return this.http.get(`/runreports/${e}`,{responseType:"arraybuffer",observe:"response",params:g})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var L=(()=>{class t{constructor(){this.groupsService=p(c)}resolve(e){let r=e.parent.paramMap.get("groupId");return this.groupsService.getGroupAccountsData(r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();var V=(()=>{class t{constructor(){this.groupsService=p(c)}resolve(e){let r=e.parent.paramMap.get("groupId");return this.groupsService.getGSIMAccountsData(r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();var J=(()=>{class t{constructor(){this.groupsService=p(c)}resolve(e){let r=e.paramMap.get("groupId");return this.groupsService.getGroupData(r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();export{F as a,L as b,V as c,J as d}; +import{G as i,K as p,Ob as n,Rb as v,dg as c,k as u}from"./chunk-BJA4FJSH.js";var h=class{constructor(a){this.selectOptions=[],this.childParameters=[],this.name=a[0],this.variable=a[1],this.label=a[2],this.displayType=a[3],this.formatType=a[4],this.defaultVal=a[5],this.selectOne=a[6],this.selectAll=a[7],this.parentParameterName=a[8],this.inputName=`R_${a[1]}`}};var l=class{constructor(a){this.id=a[0],this.name=a[1]}};var f=class{constructor(a){this.keysLabel=a.columnHeaders[0].columnName,this.valuesLabel=a.columnHeaders[1].columnName,this.keys=a.data.map(e=>e.row[0]),this.values=a.data.map(e=>e.row[1])}};var F=(()=>{class t{constructor(){this.http=p(v)}getReports(){return this.http.get("/reports")}getReportParams(e){let r=new n().set("R_reportListing",`'${e}'`).set("parameterType","true");return this.http.get("/runreports/FullParameterList",{params:r}).pipe(u(s=>s.data.map(o=>new h(o.row))))}getSelectOptions(e){let r=new n().set("parameterType","true");return this.http.get(`/runreports/${e}`,{params:r}).pipe(u(s=>s.data.map(o=>new l(o.row))))}getPentahoParams(e){let r=new n().set("fields","reportParameters");return this.http.get(`/reports/${e}`,{params:r}).pipe(u(s=>s.reportParameters))}getRunReportData(e,r){let s=new n;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${e}`,{params:s})}getChartRunReportData(e,r){let s=new n;for(let[o,m]of Object.entries(r))s=s.set(o,m);return this.http.get(`/runreports/${e}`,{params:s}).pipe(u(o=>new f(o)))}getPentahoRunReportData(e,r,s,o,m){let g=new n().set("tenantIdentifier",s).set("locale",o).set("dateFormat",m);for(let[y,b]of Object.entries(r))g=g.set(y,b);return this.http.get(`/runreports/${e}`,{responseType:"arraybuffer",observe:"response",params:g})}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var L=(()=>{class t{constructor(){this.groupsService=p(c)}resolve(e){let r=e.parent.paramMap.get("groupId");return this.groupsService.getGroupAccountsData(r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();var V=(()=>{class t{constructor(){this.groupsService=p(c)}resolve(e){let r=e.parent.paramMap.get("groupId");return this.groupsService.getGSIMAccountsData(r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();var J=(()=>{class t{constructor(){this.groupsService=p(c)}resolve(e){let r=e.paramMap.get("groupId");return this.groupsService.getGroupData(r)}static{this.\u0275fac=function(r){return new(r||t)}}static{this.\u0275prov=i({token:t,factory:t.\u0275fac})}}return t})();export{F as a,L as b,V as c,J as d}; diff --git a/browser/chunk-Q3AW2LXK.js b/browser/chunk-WKS5MOZ4.js similarity index 89% rename from browser/chunk-Q3AW2LXK.js rename to browser/chunk-WKS5MOZ4.js index 4887c380c..d29786da0 100644 --- a/browser/chunk-Q3AW2LXK.js +++ b/browser/chunk-WKS5MOZ4.js @@ -1 +1 @@ -import{Bc as x,Ec as b,Fb as f,Fc as v,Gc as D,Hc as M,K as m,Mc as C,Ua as o,Va as s,Wa as c,ca as t,eb as u,hb as n,ib as a,ja as p,rc as g,rd as S,wa as d,xa as e,ya as i}from"./chunk-AA5NALQN.js";var h=()=>({confirm:!0}),O=(()=>{class l{constructor(){this.dialogRef=m(x)}static{this.\u0275fac=function(r){return new(r||l)}}static{this.\u0275cmp=p({type:l,selectors:[["mifosx-undo-transaction-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(r,y){r&1&&(e(0,"h1",0),o(1),n(2,"translate"),i(),e(3,"div",1)(4,"p"),o(5),n(6,"translate"),i()(),e(7,"mat-dialog-actions",2)(8,"button",3),o(9),n(10,"translate"),i(),e(11,"button",4),o(12),n(13,"translate"),i()()),r&2&&(t(),s(a(2,5,"labels.heading.Undo Transaction")),t(4),s(a(6,7,"labels.text.Are you sure you want to undo this transaction")),t(4),s(a(10,9,"labels.buttons.Cancel")),t(2),d("mat-dialog-close",u(13,h)),t(),c(" ",a(13,11,"labels.buttons.Confirm")," "))},dependencies:[f,S,g,v,D,M,b,C],encapsulation:2})}}return l})();export{O as a}; +import{Bc as x,Ec as b,Fb as f,Fc as v,Gc as D,Hc as M,K as m,Mc as C,Ua as o,Va as s,Wa as c,ca as t,eb as u,hb as n,ib as a,ja as p,rc as g,rd as S,wa as d,xa as e,ya as i}from"./chunk-BJA4FJSH.js";var h=()=>({confirm:!0}),O=(()=>{class l{constructor(){this.dialogRef=m(x)}static{this.\u0275fac=function(r){return new(r||l)}}static{this.\u0275cmp=p({type:l,selectors:[["mifosx-undo-transaction-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(r,y){r&1&&(e(0,"h1",0),o(1),n(2,"translate"),i(),e(3,"div",1)(4,"p"),o(5),n(6,"translate"),i()(),e(7,"mat-dialog-actions",2)(8,"button",3),o(9),n(10,"translate"),i(),e(11,"button",4),o(12),n(13,"translate"),i()()),r&2&&(t(),s(a(2,5,"labels.heading.Undo Transaction")),t(4),s(a(6,7,"labels.text.Are you sure you want to undo this transaction")),t(4),s(a(10,9,"labels.buttons.Cancel")),t(2),d("mat-dialog-close",u(13,h)),t(),c(" ",a(13,11,"labels.buttons.Confirm")," "))},dependencies:[f,S,g,v,D,M,b,C],encapsulation:2})}}return l})();export{O as a}; diff --git a/browser/collaterals.module-MDXEFAPM.js b/browser/collaterals.module-OS5YELGC.js similarity index 99% rename from browser/collaterals.module-MDXEFAPM.js rename to browser/collaterals.module-OS5YELGC.js index 9783c66d6..7cc3bd342 100644 --- a/browser/collaterals.module-MDXEFAPM.js +++ b/browser/collaterals.module-OS5YELGC.js @@ -1 +1 @@ -import{$d as bt,Bd as st,Cd as ct,Da as _,Dc as Y,Ea as x,Fb as v,G as y,Ga as J,Gd as dt,H as S,Ia as E,Id as ut,Ja as K,K as d,Kg as Tt,L as G,M as U,Mc as F,Ob as W,Rb as X,Sc as Z,Sd as Ct,Ua as o,Ud as ft,Va as c,Wa as h,Wc as tt,Xa as b,Xc as et,Xd as ht,Yc as it,Zc as at,_f as Et,bg as Rt,ca as i,cd as nt,eb as R,fd as lt,hb as r,hc as P,hf as vt,ib as m,id as ot,if as gt,ja as I,jf as _t,ka as w,kc as T,lc as B,ld as rt,lf as xt,mf as Dt,na as f,nc as j,of as Mt,pd as mt,pf as yt,pg as Pt,ra as Q,rc as O,rd as V,rf as St,sa as z,sd as L,sf as It,uf as wt,vd as N,wa as C,xa as l,xd as pt,ya as n,za as u}from"./chunk-AA5NALQN.js";import"./chunk-PHUH23IY.js";var g=(()=>{class t{constructor(){this.http=d(X)}getFilteredClients(e,a,p,M,$){let k=new W().set("displayName",M).set("orphansOnly",p.toString()).set("sortOrder",a).set("orderBy",e);return $&&(k=k.set("officeId",$)),this.http.get("/clients",{params:k})}getClientCollateral(e,a){return this.http.get(`/clients/${e}/collaterals/${a}`)}updateClientCollateral(e,a,p){return this.http.put(`/clients/${e}/collaterals/${a}`,p)}deleteCollateral(e,a){return this.http.delete(`/clients/${e}/collaterals/${a}`)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qt=()=>["edit"];function Ht(t,s){t&1&&(l(0,"button",16),u(1,"fa-icon",17),o(2),r(3,"translate"),n()),t&2&&(C("routerLink",R(4,qt)),i(2),h(" ",m(3,2,"labels.buttons.Edit")," "))}function kt(t,s){if(t&1){let e=J();l(0,"button",18),E("click",function(){G(e);let p=K();return U(p.deleteCollateral())}),u(1,"fa-icon",19),o(2),r(3,"translate"),n()}t&2&&(i(2),h(" ",m(3,1,"labels.buttons.Delete")," "))}function jt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.ID")))}function $t(t,s){if(t&1&&(l(0,"td",21),o(1),n()),t&2){let e=s.$implicit;i(),h(" ",e.loanId," ")}}function Gt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.Last Repayment")))}function Ut(t,s){if(t&1&&(l(0,"td",21),o(1),n()),t&2){let e=s.$implicit;i(),c(e.lastRepayment)}}function Qt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.Remaining Amount")))}function zt(t,s){if(t&1&&(l(0,"td",21),o(1),r(2,"formatNumber"),n()),t&2){let e=s.$implicit;i(),c(m(2,1,e.remainingAmount))}}function Jt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.Last Repayment Date")))}function Kt(t,s){if(t&1&&(l(0,"td",21),o(1),r(2,"dateFormat"),n()),t&2){let e=s.$implicit;i(),c(m(2,1,e.lastRepaymentDate))}}function Wt(t,s){t&1&&u(0,"tr",22)}function Xt(t,s){t&1&&u(0,"tr",23)}var A=(()=>{class t{constructor(){this.route=d(P),this.collateralsService=d(g),this.router=d(T),this.dialog=d(Y),this.collateralColumns=["ID","Last Repayment","Remaining Amount","Last Repayment Date"],this.route.data.subscribe(e=>{this.clientCollateralData=e.clientCollateralData})}deleteCollateral(){this.dialog.open(bt,{data:{deleteContext:`collateral ${this.clientCollateralData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.collateralsService.deleteCollateral(this.clientCollateralData.clientId,this.clientCollateralData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=I({type:t,selectors:[["mifosx-view-collateral"]],decls:42,vars:27,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"client-collateral-card"],[1,"content"],[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","group-details-container","m-b-30"],["mat-table","",1,"mat-elevation-z1","m-b-30",3,"dataSource"],["matColumnDef","ID"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Last Repayment"],["matColumnDef","Remaining Amount"],["matColumnDef","Last Repayment Date"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(a,p){a&1&&(l(0,"div",0),f(1,Ht,4,5,"button",1)(2,kt,4,3,"button",2),n(),l(3,"mat-card",3)(4,"mat-card-content",4),o(5,"\\ "),l(6,"div",5)(7,"h3"),o(8),r(9,"translate"),n(),l(10,"div",6)(11,"p"),o(12),r(13,"translate"),u(14,"br"),o(15),r(16,"translate"),u(17,"br"),o(18),r(19,"translate"),u(20,"br"),o(21),r(22,"translate"),u(23,"br"),n()(),l(24,"h3"),o(25),r(26,"translate"),n(),l(27,"table",7),_(28,8),f(29,jt,3,3,"th",9)(30,$t,2,1,"td",10),x(),_(31,11),f(32,Gt,3,3,"th",9)(33,Ut,2,1,"td",10),x(),_(34,12),f(35,Qt,3,3,"th",9)(36,zt,3,3,"td",10),x(),_(37,13),f(38,Jt,3,3,"th",9)(39,Kt,3,3,"td",10),x(),f(40,Wt,1,0,"tr",14)(41,Xt,1,0,"tr",15),n()()()()),a&2&&(i(),C("mifosxHasPermission","UPDATE_CLIENT_COLLATERAL_PRODUCT"),i(),C("mifosxHasPermission","DELETE_CLIENT_COLLATERAL_PRODUCT"),i(6),c(m(9,15,"labels.heading.Client Collateral Details")),i(4),b(" ",m(13,17,"labels.inputs.name"),": ",p.clientCollateralData.name),i(3),b(" ",m(16,19,"labels.inputs.Quantity"),": ",p.clientCollateralData.quantity),i(3),b(" ",m(19,21,"labels.inputs.Total Value"),": ",p.clientCollateralData.total),i(3),b(" ",m(22,23,"labels.inputs.Total Collateral Value"),": ",p.clientCollateralData.totalCollateral),i(4),c(m(26,25,"labels.heading.Transaction Details")),i(2),C("dataSource",p.clientCollateralData.loanTransactionData),i(13),C("matHeaderRowDef",p.collateralColumns),i(),C("matRowDefColumns",p.collateralColumns))},dependencies:[v,V,B,L,N,O,ft,ht,vt,xt,_t,Dt,gt,Mt,yt,It,St,wt,Ct,F,Et],styles:[".client-collateral-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();var q=(()=>{class t{constructor(){this.collateralsService=d(g)}resolve(e){let a=e.parent.paramMap.get("clientId"),p=e.parent.paramMap.get("collateralId");return this.collateralsService.getClientCollateral(a,p)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac})}}return t})();var Yt=()=>["../../"];function Zt(t,s){t&1&&(l(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),l(4,"strong"),o(5),r(6,"translate"),n()()),t&2&&(i(),b(" ",m(2,3,"labels.inputs.Quantity")," ",m(3,5,"labels.commons.is")," "),i(4),c(m(6,7,"labels.commons.required")))}var H=(()=>{class t{constructor(){this.formBuilder=d(mt),this.route=d(P),this.router=d(T),this.settingsService=d(Z),this.collateralService=d(g),this.route.data.subscribe(e=>{this.collateralDetails=e.clientCollateralData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createClientCollateralForm()}createClientCollateralForm(){this.clientCollateralForm=this.formBuilder.group({quantity:["",et.required],name:[{value:"",disabled:!0}],total:[{value:"",disabled:!0}],totalCollateral:[{value:"",disabled:!0}]}),this.clientCollateralForm.patchValue({name:this.collateralDetails.name,quantity:this.collateralDetails.quantity,total:this.collateralDetails.total,totalCollateral:this.collateralDetails.totalCollateral})}submit(){let e=this.collateralDetails.id,a=this.clientCollateralForm.value.quantity,p=this.settingsService.language.code,M={quantity:a,locale:p};this.collateralService.updateClientCollateral(this.clientId,e,M).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=I({type:t,selectors:[["mifosx-edit-collateral"]],decls:34,vars:23,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","quantity"],["matInput","","required","","formControlName","total"],["matInput","","required","","formControlName","totalCollateral"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(a,p){a&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),E("ngSubmit",function(){return p.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"div",2)(6,"mat-form-field")(7,"mat-label"),o(8),r(9,"translate"),n(),u(10,"input",3),n(),l(11,"mat-form-field")(12,"mat-label"),o(13),r(14,"translate"),n(),u(15,"input",4),Q(16,Zt,7,9,"mat-error"),n(),l(17,"mat-form-field")(18,"mat-label"),o(19),r(20,"translate"),n(),u(21,"input",5),n(),l(22,"mat-form-field")(23,"mat-label"),o(24),r(25,"translate"),n(),u(26,"input",6),n()()()(),l(27,"mat-card-actions",7)(28,"button",8),o(29),r(30,"translate"),n(),l(31,"button",9),o(32),r(33,"translate"),n()()()()()),a&2&&(i(2),C("formGroup",p.clientCollateralForm),i(6),c(m(9,10,"labels.inputs.name")),i(5),c(m(14,12,"labels.inputs.Quantity")),i(3),z(p.clientCollateralForm.controls.quantity.hasError("required")?16:-1),i(3),c(m(20,14,"labels.inputs.Total")),i(5),c(m(25,16,"labels.inputs.Total Collateral Value")),i(4),C("routerLink",R(22,Yt)),i(),h(" ",m(30,18,"labels.buttons.Cancel")," "),i(2),C("disabled",!p.clientCollateralForm.valid),i(),h(" ",m(33,20,"labels.buttons.Submit")," "))},dependencies:[v,V,nt,tt,it,at,rt,lt,ot,B,L,N,pt,dt,st,ct,ut,O,F],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var te=[{path:"",data:{title:"Collateral",breadcrumb:"Collateral",routeParamBreadcrumb:!1},children:[{path:":collateralId",data:{title:"Collateral View",routeParamBreadcrumb:"collateralId"},children:[{path:"",component:A,resolve:{clientCollateralData:q}},{path:"edit",data:{title:"edit",routeParamBreadcrumb:"edit"},component:H,resolve:{clientCollateralData:q}}]}]}],Bt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=S({providers:[q],imports:[j.forChild(te),j]})}}return t})();var Je=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=S({imports:[v,Bt,Tt,Pt,Rt,A,H]})}}return t})();export{Je as CollateralsModule}; +import{$d as bt,Bd as st,Cd as ct,Da as _,Dc as Y,Ea as x,Fb as v,G as y,Ga as J,Gd as dt,H as S,Ia as E,Id as ut,Ja as K,K as d,Kg as Tt,L as G,M as U,Mc as F,Ob as W,Rb as X,Sc as Z,Sd as Ct,Ua as o,Ud as ft,Va as c,Wa as h,Wc as tt,Xa as b,Xc as et,Xd as ht,Yc as it,Zc as at,_f as Et,bg as Rt,ca as i,cd as nt,eb as R,fd as lt,hb as r,hc as P,hf as vt,ib as m,id as ot,if as gt,ja as I,jf as _t,ka as w,kc as T,lc as B,ld as rt,lf as xt,mf as Dt,na as f,nc as j,of as Mt,pd as mt,pf as yt,pg as Pt,ra as Q,rc as O,rd as V,rf as St,sa as z,sd as L,sf as It,uf as wt,vd as N,wa as C,xa as l,xd as pt,ya as n,za as u}from"./chunk-BJA4FJSH.js";import"./chunk-PHUH23IY.js";var g=(()=>{class t{constructor(){this.http=d(X)}getFilteredClients(e,a,p,M,$){let k=new W().set("displayName",M).set("orphansOnly",p.toString()).set("sortOrder",a).set("orderBy",e);return $&&(k=k.set("officeId",$)),this.http.get("/clients",{params:k})}getClientCollateral(e,a){return this.http.get(`/clients/${e}/collaterals/${a}`)}updateClientCollateral(e,a,p){return this.http.put(`/clients/${e}/collaterals/${a}`,p)}deleteCollateral(e,a){return this.http.delete(`/clients/${e}/collaterals/${a}`)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var qt=()=>["edit"];function Ht(t,s){t&1&&(l(0,"button",16),u(1,"fa-icon",17),o(2),r(3,"translate"),n()),t&2&&(C("routerLink",R(4,qt)),i(2),h(" ",m(3,2,"labels.buttons.Edit")," "))}function kt(t,s){if(t&1){let e=J();l(0,"button",18),E("click",function(){G(e);let p=K();return U(p.deleteCollateral())}),u(1,"fa-icon",19),o(2),r(3,"translate"),n()}t&2&&(i(2),h(" ",m(3,1,"labels.buttons.Delete")," "))}function jt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.ID")))}function $t(t,s){if(t&1&&(l(0,"td",21),o(1),n()),t&2){let e=s.$implicit;i(),h(" ",e.loanId," ")}}function Gt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.Last Repayment")))}function Ut(t,s){if(t&1&&(l(0,"td",21),o(1),n()),t&2){let e=s.$implicit;i(),c(e.lastRepayment)}}function Qt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.Remaining Amount")))}function zt(t,s){if(t&1&&(l(0,"td",21),o(1),r(2,"formatNumber"),n()),t&2){let e=s.$implicit;i(),c(m(2,1,e.remainingAmount))}}function Jt(t,s){t&1&&(l(0,"th",20),o(1),r(2,"translate"),n()),t&2&&(i(),c(m(2,1,"labels.inputs.Last Repayment Date")))}function Kt(t,s){if(t&1&&(l(0,"td",21),o(1),r(2,"dateFormat"),n()),t&2){let e=s.$implicit;i(),c(m(2,1,e.lastRepaymentDate))}}function Wt(t,s){t&1&&u(0,"tr",22)}function Xt(t,s){t&1&&u(0,"tr",23)}var A=(()=>{class t{constructor(){this.route=d(P),this.collateralsService=d(g),this.router=d(T),this.dialog=d(Y),this.collateralColumns=["ID","Last Repayment","Remaining Amount","Last Repayment Date"],this.route.data.subscribe(e=>{this.clientCollateralData=e.clientCollateralData})}deleteCollateral(){this.dialog.open(bt,{data:{deleteContext:`collateral ${this.clientCollateralData.id}`}}).afterClosed().subscribe(a=>{a.delete&&this.collateralsService.deleteCollateral(this.clientCollateralData.clientId,this.clientCollateralData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=I({type:t,selectors:[["mifosx-view-collateral"]],decls:42,vars:27,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"client-collateral-card"],[1,"content"],[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","group-details-container","m-b-30"],["mat-table","",1,"mat-elevation-z1","m-b-30",3,"dataSource"],["matColumnDef","ID"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Last Repayment"],["matColumnDef","Remaining Amount"],["matColumnDef","Last Repayment Date"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(a,p){a&1&&(l(0,"div",0),f(1,Ht,4,5,"button",1)(2,kt,4,3,"button",2),n(),l(3,"mat-card",3)(4,"mat-card-content",4),o(5,"\\ "),l(6,"div",5)(7,"h3"),o(8),r(9,"translate"),n(),l(10,"div",6)(11,"p"),o(12),r(13,"translate"),u(14,"br"),o(15),r(16,"translate"),u(17,"br"),o(18),r(19,"translate"),u(20,"br"),o(21),r(22,"translate"),u(23,"br"),n()(),l(24,"h3"),o(25),r(26,"translate"),n(),l(27,"table",7),_(28,8),f(29,jt,3,3,"th",9)(30,$t,2,1,"td",10),x(),_(31,11),f(32,Gt,3,3,"th",9)(33,Ut,2,1,"td",10),x(),_(34,12),f(35,Qt,3,3,"th",9)(36,zt,3,3,"td",10),x(),_(37,13),f(38,Jt,3,3,"th",9)(39,Kt,3,3,"td",10),x(),f(40,Wt,1,0,"tr",14)(41,Xt,1,0,"tr",15),n()()()()),a&2&&(i(),C("mifosxHasPermission","UPDATE_CLIENT_COLLATERAL_PRODUCT"),i(),C("mifosxHasPermission","DELETE_CLIENT_COLLATERAL_PRODUCT"),i(6),c(m(9,15,"labels.heading.Client Collateral Details")),i(4),b(" ",m(13,17,"labels.inputs.name"),": ",p.clientCollateralData.name),i(3),b(" ",m(16,19,"labels.inputs.Quantity"),": ",p.clientCollateralData.quantity),i(3),b(" ",m(19,21,"labels.inputs.Total Value"),": ",p.clientCollateralData.total),i(3),b(" ",m(22,23,"labels.inputs.Total Collateral Value"),": ",p.clientCollateralData.totalCollateral),i(4),c(m(26,25,"labels.heading.Transaction Details")),i(2),C("dataSource",p.clientCollateralData.loanTransactionData),i(13),C("matHeaderRowDef",p.collateralColumns),i(),C("matRowDefColumns",p.collateralColumns))},dependencies:[v,V,B,L,N,O,ft,ht,vt,xt,_t,Dt,gt,Mt,yt,It,St,wt,Ct,F,Et],styles:[".client-collateral-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();var q=(()=>{class t{constructor(){this.collateralsService=d(g)}resolve(e){let a=e.parent.paramMap.get("clientId"),p=e.parent.paramMap.get("collateralId");return this.collateralsService.getClientCollateral(a,p)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=y({token:t,factory:t.\u0275fac})}}return t})();var Yt=()=>["../../"];function Zt(t,s){t&1&&(l(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),l(4,"strong"),o(5),r(6,"translate"),n()()),t&2&&(i(),b(" ",m(2,3,"labels.inputs.Quantity")," ",m(3,5,"labels.commons.is")," "),i(4),c(m(6,7,"labels.commons.required")))}var H=(()=>{class t{constructor(){this.formBuilder=d(mt),this.route=d(P),this.router=d(T),this.settingsService=d(Z),this.collateralService=d(g),this.route.data.subscribe(e=>{this.collateralDetails=e.clientCollateralData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createClientCollateralForm()}createClientCollateralForm(){this.clientCollateralForm=this.formBuilder.group({quantity:["",et.required],name:[{value:"",disabled:!0}],total:[{value:"",disabled:!0}],totalCollateral:[{value:"",disabled:!0}]}),this.clientCollateralForm.patchValue({name:this.collateralDetails.name,quantity:this.collateralDetails.quantity,total:this.collateralDetails.total,totalCollateral:this.collateralDetails.totalCollateral})}submit(){let e=this.collateralDetails.id,a=this.clientCollateralForm.value.quantity,p=this.settingsService.language.code,M={quantity:a,locale:p};this.collateralService.updateClientCollateral(this.clientId,e,M).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=I({type:t,selectors:[["mifosx-edit-collateral"]],decls:34,vars:23,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","quantity"],["matInput","","required","","formControlName","total"],["matInput","","required","","formControlName","totalCollateral"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(a,p){a&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),E("ngSubmit",function(){return p.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"div",2)(6,"mat-form-field")(7,"mat-label"),o(8),r(9,"translate"),n(),u(10,"input",3),n(),l(11,"mat-form-field")(12,"mat-label"),o(13),r(14,"translate"),n(),u(15,"input",4),Q(16,Zt,7,9,"mat-error"),n(),l(17,"mat-form-field")(18,"mat-label"),o(19),r(20,"translate"),n(),u(21,"input",5),n(),l(22,"mat-form-field")(23,"mat-label"),o(24),r(25,"translate"),n(),u(26,"input",6),n()()()(),l(27,"mat-card-actions",7)(28,"button",8),o(29),r(30,"translate"),n(),l(31,"button",9),o(32),r(33,"translate"),n()()()()()),a&2&&(i(2),C("formGroup",p.clientCollateralForm),i(6),c(m(9,10,"labels.inputs.name")),i(5),c(m(14,12,"labels.inputs.Quantity")),i(3),z(p.clientCollateralForm.controls.quantity.hasError("required")?16:-1),i(3),c(m(20,14,"labels.inputs.Total")),i(5),c(m(25,16,"labels.inputs.Total Collateral Value")),i(4),C("routerLink",R(22,Yt)),i(),h(" ",m(30,18,"labels.buttons.Cancel")," "),i(2),C("disabled",!p.clientCollateralForm.valid),i(),h(" ",m(33,20,"labels.buttons.Submit")," "))},dependencies:[v,V,nt,tt,it,at,rt,lt,ot,B,L,N,pt,dt,st,ct,ut,O,F],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var te=[{path:"",data:{title:"Collateral",breadcrumb:"Collateral",routeParamBreadcrumb:!1},children:[{path:":collateralId",data:{title:"Collateral View",routeParamBreadcrumb:"collateralId"},children:[{path:"",component:A,resolve:{clientCollateralData:q}},{path:"edit",data:{title:"edit",routeParamBreadcrumb:"edit"},component:H,resolve:{clientCollateralData:q}}]}]}],Bt=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=S({providers:[q],imports:[j.forChild(te),j]})}}return t})();var Je=(()=>{class t{static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275mod=w({type:t})}static{this.\u0275inj=S({imports:[v,Bt,Tt,Pt,Rt,A,H]})}}return t})();export{Je as CollateralsModule}; diff --git a/browser/fixed-deposits.module-UTCE26MJ.js b/browser/fixed-deposits.module-LDALWSJB.js similarity index 99% rename from browser/fixed-deposits.module-UTCE26MJ.js rename to browser/fixed-deposits.module-LDALWSJB.js index 7aa7ccf1b..1f5ee2b4a 100644 --- a/browser/fixed-deposits.module-UTCE26MJ.js +++ b/browser/fixed-deposits.module-LDALWSJB.js @@ -1,2 +1,2 @@ -import{a as sn}from"./chunk-Q3AW2LXK.js";import{a as yi,b as Ii}from"./chunk-LTHWICVL.js";import{a as cn}from"./chunk-SKSBMOXL.js";import{$d as ke,$f as Zi,Ad as Gi,Bc as Xt,Bd as nt,Bg as rn,Cc as Be,Cd as Ct,Cf as Ki,Da as b,Dc as Ut,Df as Qi,Ea as P,Eb as se,Ec as Zt,Ef as Yi,Fb as y,Fc as te,Fd as Pt,G as Gt,Ga as F,Gc as ee,Gd as ot,H as He,Hc as ie,Hd as Ft,Ia as M,Id as dt,Ja as _,Jd as At,Jg as ei,K as x,Kg as pn,L as S,Ld as Ot,M as A,Mc as w,Na as ht,Nd as me,Oa as vt,Ob as le,Od as Mt,Pa as Dt,Pd as Tt,Qa as k,Qd as St,Qe as Ui,Rb as Ni,Rc as et,Rd as Ue,Sc as U,Sd as yt,T as Jt,Td as It,Ua as a,Ud as de,Uf as Ji,Va as m,Wa as u,Wc as rt,Xa as T,Xc as V,Xd as ut,Ya as ce,Yc as it,Zb as Ie,Zc as pt,Ze as ji,Zf as Xi,_ as Ri,_b as Fe,_d as he,_e as Wi,_f as ue,ac as oe,ad as Z,ag as tn,bb as _t,bc as ae,bf as Ye,bg as en,ca as i,cc as we,cd as ct,cf as Je,da as $e,dd as jt,de as Re,df as Xe,eb as R,ed as zi,ef as Ze,fb as Ge,fd as st,ff as ne,fg as $t,ge as je,gf as Wt,hb as r,hc as N,he as We,hf as wt,ib as c,ic as Vi,id as lt,ie as Ke,if as Et,ja as O,jb as E,jf as Bt,ka as Le,kc as W,lb as at,lc as tt,ld as gt,lf as kt,mc as qi,mf as Rt,na as C,nc as Oi,ne as Qe,of as Nt,pa as Te,pd as mt,pf as Vt,pg as nn,qb as Se,qc as Ee,qg as ti,ra as h,rc as B,rd as I,rf as qt,rg as Ne,sa as v,sb as Ae,sd as Y,sf as zt,ta as $,tb as Oe,td as Hi,ua as L,ud as $i,uf as Ht,ug as on,va as G,vd as xt,wa as d,xa as n,xd as bt,xf as ve,ya as o,yd as Li,za as g,zb as ye,zg as an}from"./chunk-AA5NALQN.js";import{a as H,b as X}from"./chunk-PHUH23IY.js";var mn=()=>({confirm:!0}),ii=(()=>{class t{constructor(){this.dialogRef=x(Xt)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-calculate-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,5,"labels.heading.Calculate Interest")),i(4),u("",c(6,7,"labels.text.Are you sure you want to calculate interest")," ?"),i(4),m(c(10,9,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(13,mn)),i(),u(" ",c(13,11,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var dn=()=>({confirm:!0}),ni=(()=>{class t{constructor(){this.dialogRef=x(Xt)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-post-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,5,"labels.heading.Post Interest")),i(4),u("",c(6,7,"labels.text.Are you sure you want to post interest")," ?"),i(4),m(c(10,9,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(13,dn)),i(),u(" ",c(13,11,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var un=()=>({confirm:!0}),ze=(()=>{class t{constructor(){this.dialogRef=x(Xt),this.data=x(Be)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:17,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),r(3,"translate"),o(),n(4,"div",1)(5,"p"),a(6),r(7,"translate"),r(8,"translate"),r(9,"translate"),o()(),n(10,"mat-dialog-actions",2)(11,"button",3),a(12),r(13,"translate"),o(),n(14,"button",4),a(15),r(16,"translate"),o()()),l&2&&(i(),T(" ",c(2,10,p.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",c(3,12,"labels.heading.Withhold Tax"),` -`),i(5),ce(" ",c(7,14,"labels.text.Are you sure you want to")," ",c(8,16,p.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",c(9,18,"labels.text.withhold tax for this account")," ? "),i(6),m(c(13,20,"labels.buttons.Cancel")),i(2),d("color",_t(p.data.isEnable?"accent":"warn"))("mat-dialog-close",R(24,un)),i(),u(" ",c(16,22,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var oi=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Premature Close",icon:"fa fa-arrow-left"},{name:"Calculate Interest",icon:"fa fa-table"},{name:"Undo Activation",icon:"fa fa-undo"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right"},{name:"Calculate Interest",icon:"fa fa-table"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-pencil "},{name:"Approve",icon:"fa fa-check"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo"},{name:"Activate",icon:"fa fa-check"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":case"Matured":this.optionArray=[{name:"Post Interest"},{name:"Add Charge"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject"},{name:"Withdrawn by Client"},{name:"Add Charge"},{name:"Delete"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}};var j=(()=>{class t{constructor(){this.http=x(Ni)}getFixedDepositsAccountData(e){let l=new le().set("associations","all");return this.http.get(`/fixeddepositaccounts/${e}`,{params:l})}deleteFixedDepositsAccount(e){return this.http.delete(`/fixeddepositaccounts/${e}`)}executeFixedDepositsAccountCommand(e,l,p){let f=new le().set("command",l);return this.http.post(`/fixeddepositaccounts/${e}`,p,{params:f})}getFixedDepositsAccountTransaction(e,l){return this.http.get(`/fixeddepositaccounts/${e}/transactions/${l}`)}executeFixedDepositsAccountTransactionsCommand(e,l,p,f){let D=new le().set("command",l);return this.http.post(`/fixeddepositaccounts/${e}/transactions/${f}`,p,{params:D})}getFixedDepositsAccountClosureTemplate(e){let l=new le().set("command","close");return this.http.get(`/fixeddepositaccounts/${e}/template`,{params:l})}getFixedDepositsAccountTransactionTemplate(e){return this.http.get(`/fixeddepositaccounts/${e}/transactions/template`)}getFixedDepositsAccountTemplate(e,l){let p=new le().set("clientId",e);return p=l?p.set("productId",l):p,this.http.get("/fixeddepositaccounts/template",{params:p})}getFixedDepositsAccountAndTemplate(e){let l=new le().set("associations","charges,+linkedAccount").set("template","true");return this.http.get(`/fixeddepositaccounts/${e}`,{params:l})}createFixedDepositAccount(e){return this.http.post("/fixeddepositaccounts",e)}updateFixedDepositAccount(e,l){return this.http.put(`/fixeddepositaccounts/${e}`,l)}getStandingInstructions(e,l,p,f,D){let q=new le().set("clientId",e).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",f).set("dateFormat",D);return this.http.get("/standinginstructions",{params:q})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fn=()=>["./general"],gn=()=>["./interest-rate-chart"],xn=()=>["./charges"],Cn=()=>["./transactions"],_n=()=>["./standing-instructions"],hn=t=>["./datatables",t];function vn(t,s){if(t&1&&(n(0,"span",21),g(1,"mifosx-account-number",18),o()),t&2){let e=_();i(),d("accountNo",_t(e.fixedDepositsAccountData.clientAccountNo))}}function Dn(t,s){if(t&1&&(n(0,"div",22)(1,"h3",31),a(2),r(3,"translate"),o(),n(4,"table",32)(5,"tbody")(6,"tr")(7,"td",33),a(8),r(9,"translate"),o(),n(10,"td",34),a(11),r(12,"currency"),o()(),n(13,"tr")(14,"td",33),a(15),r(16,"translate"),o(),n(17,"td",34),a(18),r(19,"currency"),o()()()()()),t&2){let e=_();i(2),m(c(3,5,"labels.heading.Account Overview")),i(6),m(c(9,7,"labels.inputs.Current Balance")),i(3),u(" ",at(12,9,e.fixedDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),i(4),m(c(16,14,"labels.inputs.Deposit Amount")),i(3),u(" ",at(19,16,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function bn(t,s){if(t&1){let e=F();n(0,"button",35),M("click",function(){let p=S(e).$implicit,f=_();return A(f.doAction(p.name))}),g(1,"i",36),a(2),r(3,"translateKey"),o()}if(t&2){let e=s.$implicit;i(),d("ngClass",_t(e.icon)),i(),u(" ",E(3,3,e.name,"menus")," ")}}function Pn(t,s){if(t&1){let e=F();n(0,"span")(1,"button",35),M("click",function(){let p=S(e).$implicit,f=_(2);return A(f.doAction(p.name))}),a(2),r(3,"translateKey"),o()()}if(t&2){let e=s.$implicit;i(2),m(E(3,1,e.name,"menus"))}}function Mn(t,s){if(t&1&&(n(0,"button",37),a(1),r(2,"translateKey"),o(),n(3,"mat-menu",null,5),L(5,Pn,4,4,"span",null,$),o()),t&2){let e=k(4),l=_();d("matMenuTriggerFor",e),i(),m(E(2,2,"More","menus")),i(4),G(l.buttonConfig.options)}}function Tn(t,s){if(t&1&&(n(0,"span")(1,"a",30,6),a(3),r(4,"translate"),o()()),t&2){let e=k(2);i(),d("routerLink",R(5,Cn))("active",e.isActive),i(2),u(" ",c(4,3,"labels.inputs.Transactions")," ")}}function Sn(t,s){if(t&1&&(n(0,"a",30,7),a(2),r(3,"translate"),o()),t&2){let e=k(1);d("routerLink",R(5,_n))("active",e.isActive),i(2),u(" ",c(3,3,"labels.inputs.Standing Instructions")," ")}}function An(t,s){if(t&1&&(n(0,"a",30,8),a(2),o()),t&2){let e=k(1),l=_().$implicit;d("routerLink",Ge(3,hn,l.registeredTableName))("active",e.isActive),i(2),u(" ",l.registeredTableName," ")}}function On(t,s){if(t&1&&C(0,An,3,5,"a",38),t&2){let e=s.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}var ai=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.fixedDepositsService=x(j),this.savingsService=x($t),this.dialog=x(Ut),this.showTransactions=!1,this.route.data.subscribe(e=>{this.fixedDepositsAccountData=e.fixedDepositsAccountData,this.savingsDatatables=e.savingsDatatables,this.currency=this.fixedDepositsAccountData.currency;let l=e.fixedDepositsAccountData.status;this.showTransactions=l.id>=300}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){let e=this.fixedDepositsAccountData.status.value;this.buttonConfig=new oi(e),this.fixedDepositsAccountData.taxGroup&&e==="Active"&&(this.fixedDepositsAccountData.withHoldTax?this.buttonConfig.addOption({name:"Disable Withhold Tax"}):this.buttonConfig.addOption({name:"Enable Withhold Tax"}))}reload(){let e=this.fixedDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}doAction(e){switch(e){case"Approve":case"Reject":case"Activate":case"Close":case"Undo Approval":case"Undo Activation":case"Add Charge":case"Withdrawn by Client":case"Premature Close":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteFixedDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break}}deleteFixedDepositsAccount(){this.dialog.open(ke,{data:{deleteContext:`fixed deposit account with id: ${this.fixedDepositsAccountData.id}`}}).afterClosed().subscribe(l=>{l.delete&&this.fixedDepositsService.deleteFixedDepositsAccount(this.fixedDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(ii).afterClosed().subscribe(l=>{l.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(ni).afterClosed().subscribe(l=>{l.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(ze,{data:{isEnable:!0}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(ze,{data:{isEnable:!1}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-view"]],decls:54,vars:44,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],["tabPanel",""],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],[1,"m-r-10"],[1,"m-l-10"],[1,"flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Fixed Deposit account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],[1,"flex-100"],[1,"account-overview","flex-100"],[1,"flex-70"],[1,"r-amount","flex-30"],["mat-menu-item","",3,"click"],[3,"ngClass"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(l,p){if(l&1&&(n(0,"mat-card",9)(1,"mat-card-header",10)(2,"mat-card-title-group",11)(3,"div",12)(4,"div"),g(5,"img",13),r(6,"translate"),o()(),n(7,"div",14)(8,"mat-card-title")(9,"div",15)(10,"div",16)(11,"h3"),g(12,"i",17),r(13,"statusLookup"),a(14),r(15,"translate"),g(16,"mifosx-account-number",18),o(),n(17,"span",19)(18,"span",20),a(19),r(20,"translate"),o(),a(21),h(22,vn,2,2,"span",21),o()(),h(23,Dn,20,21,"div",22),n(24,"div",23)(25,"button",24)(26,"mat-icon",25),g(27,"fa-icon",26),o()()()()()(),n(28,"mat-menu",null,0),L(30,bn,4,6,"button",27,$),h(32,Mn,7,5),o()()(),n(33,"mat-card-content",28)(34,"nav",29)(35,"a",30,1),a(37),r(38,"translate"),o(),n(39,"a",30,2),a(41),r(42,"translate"),o(),h(43,Tn,5,6,"span"),n(44,"a",30,3),a(46),r(47,"translate"),o(),h(48,Sn,4,6,"a",30),L(49,On,1,1,"a",30,$),o(),n(51,"mat-tab-nav-panel",null,4),g(53,"router-outlet"),o()()()),l&2){let f=k(29),D=k(36),q=k(40),re=k(45),pe=k(52);i(5),d("matTooltip",_t(c(6,27,"tooltips.Fixed Deposits Account")))("src","assets/images/fd_account_placeholder.png",Ri),i(7),d("ngClass",c(13,29,p.fixedDepositsAccountData.status.code))("matTooltip",p.fixedDepositsAccountData.status.value),i(2),T(" ",c(15,31,"labels.inputs.Fixed Deposit Product")," : ",p.fixedDepositsAccountData.depositProductName," "),i(2),d("accountNo",_t(p.fixedDepositsAccountData.accountNo)),i(3),u("",c(20,33,"labels.text."+p.entityType)," :"),i(2),u(" ",p.fixedDepositsAccountData.clientName||p.fixedDepositsAccountData.groupName," "),i(),v(p.fixedDepositsAccountData.clientAccountNo?22:-1),i(),v(!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval?23:-1),i(2),d("matMenuTriggerFor",f),i(5),G(p.buttonConfig.singleButtons),i(2),v(p.buttonConfig.options.length?32:-1),i(2),d("tabPanel",pe),i(),d("routerLink",R(41,fn))("active",D.isActive),i(2),u(" ",c(38,35,"labels.inputs.General")," "),i(2),d("routerLink",R(42,gn))("active",q.isActive),i(2),u(" ",c(42,37,"labels.inputs.Interest Rate Chart")," "),i(2),v(p.showTransactions?43:-1),i(),d("routerLink",R(43,xn))("active",re.isActive),i(2),u(" ",c(47,39,"labels.inputs.Charges")," "),i(2),v(p.fixedDepositsAccountData.clientId?48:-1),i(),G(p.savingsDatatables)}},dependencies:[y,Se,I,tt,Y,xt,de,Li,$i,Gi,me,Hi,an,Ee,Ke,Qe,ut,We,je,Ki,Qi,qi,Yi,Vi,se,w,It,Zi],encapsulation:2})}}return t})();function yn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Period")))}function In(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),ce(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",E(2,3,e.periodType.value,"catalogs")," ")}}function Fn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount Range")))}function wn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"formatNumber"),r(3,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function En(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Bn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u("",c(2,1,e.annualInterestRate)," %")}}function kn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Description")))}function Rn(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),m(e.description)}}function Nn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function Vn(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",21),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function qn(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",22),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function zn(t,s){if(t&1){let e=F();n(0,"td",18)(1,"button",19),M("click",function(){let p=S(e).dataIndex,f=_();return A(f.expandChartSlabIndex=f.expandChartSlabIndex===p?null:p)}),C(2,Vn,4,3,"span",20)(3,qn,4,3,"span",20),o()()}if(t&2){let e=s.dataIndex,l=_();i(2),d("ngIf",l.expandChartSlabIndex!==e),i(),d("ngIf",l.expandChartSlabIndex===e)}}function Hn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Entity Type")))}function $n(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.entityType.value," ")}}function Ln(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Name")))}function Gn(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.attributeName.value," ")}}function Un(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Condition Type")))}function jn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"titlecase"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.conditionType.value)," ")}}function Wn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Value")))}function Kn(t,s){if(t&1&&(n(0,"td",35),a(1),o()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),i(),u(" ",e.attributeValueDesc," ")}}function Qn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Incentive Type")))}function Yn(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.incentiveType.value," ")}}function Jn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Xn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.amount)," ")}}function Zn(t,s){t&1&&g(0,"tr",36)}function to(t,s){t&1&&g(0,"tr",37)}function eo(t,s){if(t&1&&(n(0,"table",27),b(1,28),C(2,Hn,3,3,"th",7)(3,$n,2,1,"td",8),P(),b(4,29),C(5,Ln,3,3,"th",7)(6,Gn,2,1,"td",8),P(),b(7,30),C(8,Un,3,3,"th",7)(9,jn,3,3,"td",8),P(),b(10,31),C(11,Wn,3,3,"th",7)(12,Kn,2,2,"td",32),P(),b(13,33),C(14,Qn,3,3,"th",7)(15,Yn,2,1,"td",8),P(),b(16,34),C(17,Jn,3,3,"th",7)(18,Xn,3,3,"td",8),P(),C(19,Zn,1,0,"tr",14)(20,to,1,0,"tr",15),o()),t&2){let e=_().$implicit,l=_();d("dataSource",e.incentives),i(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),i(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function io(t,s){if(t&1&&(n(0,"td",18)(1,"div",23)(2,"mat-card",24)(3,"h4",25),a(4),r(5,"translate"),o(),C(6,eo,21,3,"table",26),o()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=_();Te("colspan",p.chartSlabsDisplayedColumns.length),i(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),i(3),u(" ",c(5,4,"labels.heading.Incentives")," "),i(2),d("ngIf",e.incentives==null?null:e.incentives.length)}}function no(t,s){t&1&&g(0,"tr",36)}function oo(t,s){t&1&&g(0,"tr",37)}function ao(t,s){t&1&&g(0,"tr",38)}var ri=(()=>{class t{constructor(){this.route=x(N),this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(e=>{this.interestRateChartData=e.fixedDepositsAccountData.accountChart.chartSlabs})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-interest-rate-chart-tab"]],decls:29,vars:7,consts:[["chartsTable",""],[1,"tab-container","mat-typography"],[1,"align-start-center"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-fill","incentives"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","flex-fill mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),a(4),r(5,"translate"),o()()(),n(6,"div",4)(7,"table",5,0),b(9,6),C(10,yn,3,3,"th",7)(11,In,3,6,"td",8),P(),b(12,9),C(13,Fn,3,3,"th",7)(14,wn,4,6,"td",8),P(),b(15,10),C(16,En,3,3,"th",7)(17,Bn,3,3,"td",8),P(),b(18,11),C(19,kn,3,3,"th",7)(20,Rn,2,1,"td",8),P(),b(21,12),C(22,Nn,3,3,"th",7)(23,zn,4,2,"td",8),P(),b(24,13),C(25,io,7,6,"td",8),P(),C(26,no,1,0,"tr",14)(27,oo,1,0,"tr",15)(28,ao,1,0,"tr",16),o()()()),l&2&&(i(4),m(c(5,5,"labels.heading.All Interest Rates")),i(3),d("dataSource",p.interestRateChartData),i(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns))},dependencies:[y,Ae,Oe,I,Y,B,wt,kt,Bt,Rt,Et,Nt,ut,Vt,zt,qt,Ht,ye,w,It,ue],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Ie("expandChartSlab",[ae("collapsed",oe({height:"0px",minHeight:"0"})),ae("expanded",oe({height:"*"})),we("expanded <=> collapsed",Fe("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var po=t=>["/","journal-entry","view",t];function co(t,s){if(t&1){let e=F();n(0,"div",5)(1,"mat-checkbox",21),M("click",function(){S(e);let p=_();return A(p.hideReversed())}),a(2),r(3,"translate"),o(),n(4,"mat-checkbox",21),M("click",function(){S(e);let p=_();return A(p.hideAccruals())}),a(5),r(6,"translate"),o()()}if(t&2){let e=_();i(),d("formControl",e.hideReversedParam),i(),u(" ",c(3,4,"labels.inputs.Hide Reversed")),i(2),d("formControl",e.hideAccrualsParam),i(),u(" ",c(6,6,"labels.inputs.Hide Accruals"))}}function so(t,s){t&1&&(n(0,"th",22),a(1,"#"),o())}function lo(t,s){if(t&1){let e=F();n(0,"td",23),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),o()}if(t&2){let e=s.index;i(),u(" ",e+1," ")}}function mo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.ID")))}function uo(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",e.id," ")}}function fo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Transaction Date")))}function go(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"dateFormat"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",c(2,2,e.date)," ")}}function xo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Transaction Type")))}function Co(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"translateKey"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",E(2,2,e.transactionType.value,"catalogs")," ")}}function _o(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Debit")))}function ho(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"formatNumber"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",l.isDebit(e.transactionType)?c(2,2,e.amount):"N/A"," ")}}function vo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Credit")))}function Do(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"formatNumber"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",l.isDebit(e.transactionType)?"N/A":c(2,2,e.amount)," ")}}function bo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Balance")))}function Po(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"formatNumber"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",c(2,2,e.runningBalance)," ")}}function Mo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function To(t,s){if(t&1){let e=F();n(0,"td",25)(1,"button",26)(2,"mat-icon"),a(3,"more_vert"),o()(),n(4,"mat-menu",null,0)(6,"button",27),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),n(7,"mat-icon"),g(8,"fa-icon",28),o(),n(9,"span"),a(10),r(11,"translate"),o()(),n(12,"button",29),M("click",function(p){S(e);let f=_();return A(f.routeEdit(p))}),n(13,"mat-icon"),g(14,"fa-icon",30),o(),n(15,"span"),a(16),r(17,"translate"),o()()()()}if(t&2){let e=s.$implicit,l=k(5);i(),d("matMenuTriggerFor",l),i(9),m(c(11,4,"labels.text.View Transaction")),i(2),d("routerLink",Ge(8,po,"S"+e.id)),i(4),m(c(17,6,"tooltips.View Journal Entries"))}}function So(t,s){t&1&&g(0,"tr",31)}function Ao(t,s){t&1&&g(0,"tr",32)}var pi=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.dialog=x(Ut),this.displayedColumns=["row","id","transactionDate","transactionType","debit","credit","balance","actions"],this.route.parent.data.subscribe(e=>{this.transactionsData=e.fixedDepositsAccountData.transactions,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId,this.status=e.fixedDepositsAccountData.status.value})}ngOnInit(){this.hideAccrualsParam=new Z(!1),this.hideReversedParam=new Z(!1),this.dataSource=new ve(this.transactionsData)}checkStatus(){return this.status==="Active"||this.status==="Closed"||this.status==="Transfer in progress"||this.status==="Transfer on hold"||this.status==="Premature Closed"||this.status==="Matured"}isDebit(e){return e.withdrawal===!0||e.feeDeduction===!0||e.overdraftInterest===!0||e.withholdTax===!0}showTransactions(e){e.transfer?this.router.navigate([`account-transfers/account-transfers/${e.transfer.id}`],{relativeTo:this.route}):this.router.navigate([e.id],{relativeTo:this.route})}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,!this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(!this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,l){let p=this.transactionsData;(l||e)&&(p=this.transactionsData.filter(f=>!(e&&f.reversed)&&!(l&&f.transactionType.accrual))),this.dataSource=new ve(p),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}routeEdit(e){e.stopPropagation()}undoTransaction(e){}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(l,p){if(l&1&&(ht(Ui,7),ht(Wi,7)),l&2){let f;vt(f=Dt())&&(p.paginator=f.first),vt(f=Dt())&&(p.sort=f.first)}},decls:35,vars:7,consts:[["transactionMenu","matMenu"],[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25"],[1,"layout-row","align-start"],[1,"m-b-20"],[1,"action-button","m-b-20","layout-row","gap-20px"],["mat-table","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],[1,"accruals",3,"click","formControl"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-cell","",3,"click","ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",3,"click","routerLink"],["icon","table-cells","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h3"),a(5),r(6,"translate"),o()(),h(7,co,7,8,"div",5),o(),n(8,"table",6),b(9,7),C(10,so,2,0,"th",8)(11,lo,2,1,"td",9),P(),b(12,10),C(13,mo,3,3,"th",8)(14,uo,2,2,"td",11),P(),b(15,12),C(16,fo,3,3,"th",8)(17,go,3,4,"td",11),P(),b(18,13),C(19,xo,3,3,"th",8)(20,Co,3,5,"td",11),P(),b(21,14),C(22,_o,3,3,"th",8)(23,ho,3,4,"td",11),P(),b(24,15),C(25,vo,3,3,"th",8)(26,Do,3,4,"td",11),P(),b(27,16),C(28,bo,3,3,"th",8)(29,Po,3,4,"td",11),P(),b(30,17),C(31,Mo,3,3,"th",8)(32,To,18,10,"td",18),P(),C(33,So,1,0,"tr",19)(34,Ao,1,0,"tr",20),o()()()),l&2&&(i(5),m(c(6,5,"labels.heading.All Transactions")),i(2),v(p.checkStatus()?7:-1),i(),d("dataSource",p.dataSource),i(25),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns))},dependencies:[y,Se,I,it,zi,tt,Ue,wt,kt,Bt,Rt,Et,Nt,Ee,Ke,Qe,We,je,ut,Vt,zt,qt,Ht,yt,w,It,ue],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;color:#000}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .linked[_ngcontent-%COMP%]{color:#4461e2}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .accrual[_ngcontent-%COMP%]{color:#999}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:800}"]})}}return t})();var Oo=()=>({confirm:!0}),ci=(()=>{class t{constructor(){this.dialogRef=x(Xt),this.data=x(Be)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-waive-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,6,"labels.heading.Waive Charge")),i(4),T("",c(6,8,"labels.text.Are you sure you want to waive charge with id"),": ",p.data.id," ?"),i(4),m(c(10,10,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(14,Oo)),i(),u(" ",c(13,12,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var yo=()=>({confirm:!0}),si=(()=>{class t{constructor(){this.dialogRef=x(Xt),this.data=x(Be)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-inactivate-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,6,"labels.heading.Inactivate Charge")),i(4),T("",c(6,8,"labels.text.Are you sure you want to inactivate charge with id"),": ",p.data.id," ?"),i(4),m(c(10,10,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(14,yo)),i(),u(" ",c(13,12,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var Io=["chargesTable"],Fo=()=>[2e3];function wo(t,s){if(t&1){let e=F();n(0,"div",4)(1,"button",22),M("click",function(){S(e);let p=_();return A(p.toggleCharges())}),a(2),o()()}if(t&2){let e=_();i(2),u(" ",e.showInactiveCharges?"View Active Charges":"View Inactive Charges"," ")}}function Eo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.name")))}function Bo(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),m(e.name)}}function ko(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Fee/Penalty")))}function Ro(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"translateKey"),r(3,"translateKey"),o()),t&2){let e=s.$implicit;i(),u(" ",e.penalty===!0?E(2,1,"Penalty","catalogs"):E(3,4,"Fee","catalogs")," ")}}function No(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Payment Due At")))}function Vo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),m(E(2,1,e.chargeTimeType.value,"catalogs"))}}function qo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Due As Of")))}function zo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"dateFormat"),o()),t&2){let e=s.$implicit;i(),m(c(2,1,e.dueDate))}}function Ho(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Repeats On")))}function $o(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"dateFormat"),r(3,"translateKey"),o()),t&2){let e=s.$implicit;i(),u(" ",e.feeOnMonthDay?E(2,1,R(7,Fo).concat(e.feeOnMonthDay),"dd MMMM"):E(3,4,"Unassigned","inputs")," ")}}function Lo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Calculation Type")))}function Go(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),m(E(2,1,e.chargeCalculationType.value,"catalogs"))}}function Uo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Due")))}function jo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amount)," ")}}function Wo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Paid")))}function Ko(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amountPaid)," ")}}function Qo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Waived")))}function Yo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amountWaived)," ")}}function Jo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Outstanding")))}function Xo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amountOutstanding)," ")}}function Zo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function ta(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.editCharge(f))}),g(2,"i",28),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Edit Charge")))}function ea(t,s){if(t&1){let e=F();n(0,"button",29),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.deleteCharge(f.id))}),g(2,"i",30),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Delete Charge")))}function ia(t,s){t&1&&(n(0,"span"),C(1,ta,3,4,"button",25)(2,ea,3,4,"button",26),o()),t&2&&(i(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),i(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function na(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.payCharge(f.id))}),g(2,"i",32),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Pay Charge")))}function oa(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.waiveCharge(f.id))}),g(2,"i",33),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Waive Charge")))}function aa(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(3).$implicit,D=_();return D.routeEdit(p),A(D.inactivateCharge(f.id))}),g(2,"i",34),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Inactivate Charge")))}function ra(t,s){t&1&&C(0,aa,3,4,"button",25),t&2&&d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE")}function pa(t,s){if(t&1&&(n(0,"span"),C(1,na,3,4,"button",25)(2,oa,3,4,"button",25),h(3,ra,1,1,"button",31),o()),t&2){let e=_().$implicit,l=_();i(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),i(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),i(),v(l.isRecurringCharge(e)?3:-1)}}function ca(t,s){if(t&1&&(n(0,"td",24),h(1,ia,3,2,"span"),h(2,pa,4,3,"span"),o()),t&2){let e=s.$implicit,l=_();i(),v(l.fixedDepositsAccountData.status.value==="Submitted and pending approval"?1:-1),i(),v(l.fixedDepositsAccountData.status.value==="Active"&&e.amountOutstanding!==0?2:-1)}}function sa(t,s){t&1&&g(0,"tr",35)}function la(t,s){t&1&&g(0,"tr",36)}var li=(()=>{class t{constructor(){this.savingsService=x($t),this.route=x(N),this.dateUtils=x(et),this.router=x(W),this.dialog=x(Ut),this.settingsService=x(U),this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(e=>{this.fixedDepositsAccountData=e.fixedDepositsAccountData,this.chargesData=this.fixedDepositsAccountData.charges})}ngOnInit(){let e=this.chargesData?this.chargesData.filter(l=>l.isActive):[];this.dataSource=new ve(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){let e=this.chargesData.filter(l=>!l.isActive);this.dataSource.data=e}else{let e=this.chargesData.filter(l=>l.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){let l=[new Ne({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new ti({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],p={title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=this.settingsService.language.code,re=this.settingsService.dateFormat,pe=X(H({},D.data.value),{dueDate:this.dateUtils.formatDate(D.data.value.dueDate,re),dateFormat:re,locale:q});this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"paycharge",pe,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(ci,{data:{id:e}}).afterClosed().subscribe(p=>{p.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(si,{data:{id:e}}).afterClosed().subscribe(p=>{p.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){let l=[new Ne({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})],p={title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=this.settingsService.language.code,re=this.settingsService.dateFormat,pe=X(H({},D.data.value),{dateFormat:re,locale:q});this.savingsService.editSavingsAccountCharge(this.fixedDepositsAccountData.id,pe,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(ke,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.savingsService.deleteSavingsAccountCharge(this.fixedDepositsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Weekly Fee"}routeEdit(e){e.stopPropagation()}reload(){let e=this.fixedDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(l,p){if(l&1&&ht(Io,7),l&2){let f;vt(f=Dt())&&(p.chargesTableRef=f.first)}},decls:45,vars:7,consts:[["chargesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),a(4),r(5,"translate"),o()(),h(6,wo,3,1,"div",4),o(),n(7,"div",5)(8,"table",6,0),b(10,7),C(11,Eo,3,3,"th",8)(12,Bo,2,1,"td",9),P(),b(13,10),C(14,ko,3,3,"th",8)(15,Ro,4,7,"td",9),P(),b(16,11),C(17,No,3,3,"th",8)(18,Vo,3,4,"td",9),P(),b(19,12),C(20,qo,3,3,"th",8)(21,zo,3,3,"td",9),P(),b(22,13),C(23,Ho,3,3,"th",8)(24,$o,4,8,"td",9),P(),b(25,14),C(26,Lo,3,3,"th",8)(27,Go,3,4,"td",9),P(),b(28,15),C(29,Uo,3,3,"th",8)(30,jo,3,4,"td",9),P(),b(31,16),C(32,Wo,3,3,"th",8)(33,Ko,3,4,"td",9),P(),b(34,17),C(35,Qo,3,3,"th",8)(36,Yo,3,4,"td",9),P(),b(37,18),C(38,Jo,3,3,"th",8)(39,Xo,3,4,"td",9),P(),b(40,19),C(41,Zo,3,3,"th",8)(42,ca,3,2,"td",9),P(),C(43,sa,1,0,"tr",20)(44,la,1,0,"tr",21),o()()()),l&2&&(i(4),m(c(5,5,"labels.heading.All Charges")),i(2),v(p.chargesData?6:-1),i(2),d("dataSource",p.dataSource),i(35),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns))},dependencies:[y,I,B,de,wt,kt,Bt,Rt,Et,Nt,me,Vt,zt,qt,Ht,yt,w,It,ue],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var ma=["instructionsTable"];function da(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Client")))}function ua(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function fa(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.From Account")))}function ga(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function xa(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Beneficiary")))}function Ca(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),m(e.toClient.displayName)}}function _a(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.To Account")))}function ha(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function va(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount")))}function Da(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T("",e.instructionType.value,"/",e.amount)}}function ba(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Validity")))}function Pa(t,s){if(t&1&&(n(0,"td",17),a(1),r(2,"dateFormat"),r(3,"dateFormat"),o()),t&2){let e=s.$implicit;i(),T(" ",c(2,2,e.validFrom)," to ",c(3,4,e.validTill)," ")}}function Ma(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function Ta(t,s){t&1&&(n(0,"button",19),r(1,"translate"),g(2,"i",20),o()),t&2&&d("matTooltip",_t(c(1,2,"tooltips.Edit Standing Instruction")))}function Sa(t,s){t&1&&(n(0,"span"),C(1,Ta,3,4,"button",18),o()),t&2&&(i(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Aa(t,s){if(t&1){let e=F();n(0,"button",22),r(1,"translate"),M("click",function(){S(e);let p=_(2).$implicit,f=_();return A(f.deleteStandingInstruction(p.id))}),g(2,"i",23),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Delete Standing Instruction")))}function Oa(t,s){t&1&&(n(0,"span"),C(1,Aa,3,4,"button",21),o()),t&2&&(i(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function ya(t,s){t&1&&(n(0,"button",19),r(1,"translate"),g(2,"i",24),o()),t&2&&d("matTooltip",_t(c(1,2,"tooltips.View Standing Instruction")))}function Ia(t,s){if(t&1&&(n(0,"td",17),h(1,Sa,2,1,"span"),h(2,Oa,2,1,"span"),C(3,ya,3,4,"button",18),o()),t&2){let e=s.$implicit;i(),v(e.status.value!=="Deleted"?1:-1),i(),v(e.status.value!=="Deleted"?2:-1),i(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Fa(t,s){t&1&&g(0,"tr",25)}function wa(t,s){t&1&&g(0,"tr",26)}var mi=(()=>{class t{constructor(){this.route=x(N),this.fixedDepositsService=x(j),this.dialog=x(Ut),this.accountTransfersService=x(cn),this.settingsService=x(U),this.dataSource=new ve,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.fixedDepositsData=e.fixedDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.fixedDepositsData.clientId,l=this.fixedDepositsData.clientName,p=this.fixedDepositsData.id,f=this.settingsService.language.code,D=this.settingsService.dateFormat;this.fixedDepositsService.getStandingInstructions(e,l,p,f,D).subscribe(q=>{this.instructionsData=q.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ke,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(l,p){if(l&1&&ht(ma,7),l&2){let f;vt(f=Dt())&&(p.instructionTableRef=f.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"h3"),a(3),r(4,"translate"),o()(),n(5,"div",3)(6,"table",4,0),b(8,5),C(9,da,3,3,"th",6)(10,ua,2,2,"td",7),P(),b(11,8),C(12,fa,3,3,"th",6)(13,ga,2,2,"td",7),P(),b(14,9),C(15,xa,3,3,"th",6)(16,Ca,2,1,"td",7),P(),b(17,10),C(18,_a,3,3,"th",6)(19,ha,2,2,"td",7),P(),b(20,11),C(21,va,3,3,"th",6)(22,Da,2,2,"td",7),P(),b(23,12),C(24,ba,3,3,"th",6)(25,Pa,4,6,"td",7),P(),b(26,13),C(27,Ma,3,3,"th",6)(28,Ia,4,3,"td",7),P(),C(29,Fa,1,0,"tr",14)(30,wa,1,0,"tr",15),o()()()),l&2&&(i(3),m(c(4,4,"labels.heading.All Standing Instructions")),i(3),d("dataSource",p.dataSource),i(23),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns))},dependencies:[y,I,B,de,wt,kt,Bt,Rt,Et,Nt,me,Vt,zt,qt,Ht,yt,w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var di=(()=>{class t{constructor(){this.route=x(N),this.entityId=this.route.parent.parent.snapshot.paramMap.get("fixedDepositAccountId"),this.route.data.subscribe(e=>{this.entityDatatable=e.savingsDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Fixed Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(l,p){l&1&&(n(0,"div",0),g(1,"mifosx-entity-datatable-tab",1),o()),l&2&&(i(),d("entityId",p.entityId)("multiRowDatatableFlag",p.multiRowDatatableFlag)("entityDatatable",p.entityDatatable))},dependencies:[y,I,on],encapsulation:2})}}return t})();var Ea=()=>["../../"];function Ba(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Approved On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var ui=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveFixedDepositsAccountForm()}createApproveFixedDepositsAccountForm(){this.approveFixedDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",V.required],note:[""]})}submit(){let e=this.approveFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.approveFixedDepositsAccountForm.value.approvedOnDate;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"approve",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-approve-fixed-deposits-account"]],decls:26,vars:21,consts:[["approvedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,Ba,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"textarea",7),o()()(),n(19,"mat-card-actions",8)(20,"button",9),a(21),r(22,"translate"),o(),n(23,"button",10),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.approveFixedDepositsAccountForm),i(5),m(c(8,12,"labels.inputs.Approved On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.approveFixedDepositsAccountForm.controls.approvedOnDate.hasError("required")?13:-1),i(3),m(c(17,14,"labels.inputs.Note")),i(4),d("routerLink",R(20,Ea)),i(),u(" ",c(22,16,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.approveFixedDepositsAccountForm),i(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ka=()=>["../../"];function Ra(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Rejected On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var fi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectFixedDepositsAccountForm()}createRejectFixedDepositsAccountForm(){this.rejectFixedDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",V.required],note:[""]})}submit(){let e=this.rejectFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.rejectFixedDepositsAccountForm.value.rejectedOnDate;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"reject",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-reject-fixed-deposits-account"]],decls:26,vars:21,consts:[["rejectedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,Ra,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"textarea",7),o()()(),n(19,"mat-card-actions",8)(20,"button",9),a(21),r(22,"translate"),o(),n(23,"button",10),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.rejectFixedDepositsAccountForm),i(5),m(c(8,12,"labels.inputs.Rejected On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.rejectFixedDepositsAccountForm.controls.rejectedOnDate.hasError("required")?13:-1),i(3),m(c(17,14,"labels.inputs.Note")),i(4),d("routerLink",R(20,ka)),i(),u(" ",c(22,16,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.rejectFixedDepositsAccountForm.valid),i(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Na=()=>["../../"];function Va(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Activated On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var gi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.savingsService=x($t),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateFixedDepositsAccountForm()}createActivateFixedDepositsAccountForm(){this.activateFixedDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",V.required]})}submit(){let e=this.activateFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.activateFixedDepositsAccountForm.value.activatedOnDate;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-activate-fixed-deposits-account"]],decls:20,vars:18,consts:[["activatedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"mat-form-field",3),M("click",function(){S(f);let q=k(11);return A(q.open())}),n(5,"mat-label"),a(6),r(7,"translate"),o(),g(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),h(12,Va,7,9,"mat-error"),o()(),n(13,"mat-card-actions",6)(14,"button",7),a(15),r(16,"translate"),o(),n(17,"button",8),a(18),r(19,"translate"),o()()()()()}if(l&2){let f=k(11);i(2),d("formGroup",p.activateFixedDepositsAccountForm),i(4),m(c(7,11,"labels.inputs.Activated On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.activateFixedDepositsAccountForm.controls.activatedOnDate.hasError("required")?12:-1),i(2),d("routerLink",R(17,Na)),i(),u(" ",c(16,13,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.activateFixedDepositsAccountForm.valid),i(),u(" ",c(19,15,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var qa=()=>["../../"],xi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.savingsService=x($t),this.fixedDepositsService=x(j),this.route=x(N),this.router=x(W),this.undoCommand="undoapproval",this.undoAction=this.route.snapshot.params.name,this.undoAction==="Undo Activation"&&(this.undoCommand="undoactivate"),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.createUndoApprovalFixedDepositsAccountForm()}createUndoApprovalFixedDepositsAccountForm(){this.undoApprovalFixedDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){let e=H({},this.undoApprovalFixedDepositsAccountForm.value);this.undoAction==="Undo Activation"?this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})}):this.savingsService.executeSavingsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-undo-approval-fixed-deposits-account"]],decls:16,vars:13,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(l,p){l&1&&(n(0,"div",0)(1,"mat-card")(2,"form",1),M("ngSubmit",function(){return p.submit()}),n(3,"mat-card-content")(4,"mat-form-field",2)(5,"mat-label"),a(6),r(7,"translate"),o(),g(8,"textarea",3),o()(),n(9,"mat-card-actions",4)(10,"button",5),a(11),r(12,"translate"),o(),n(13,"button",6),a(14),r(15,"translate"),o()()()()()),l&2&&(i(2),d("formGroup",p.undoApprovalFixedDepositsAccountForm),i(4),m(c(7,6,"labels.inputs.Note")),i(4),d("routerLink",R(12,qa)),i(),u(" ",c(12,8,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.undoApprovalFixedDepositsAccountForm.valid),i(),u(" ",c(15,10,"labels.buttons.Confirm")," "))},dependencies:[y,I,ct,rt,it,pt,st,lt,tt,Y,xt,bt,ot,nt,dt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var za=()=>["../../"];function Ha(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Withdrawn On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var Ci=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawFixedDepositsAccountForm()}createWithdrawFixedDepositsAccountForm(){this.withdrawFixedDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",V.required],note:[""]})}submit(){let e=this.withdrawFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.withdrawFixedDepositsAccountForm.value.withdrawnOnDate;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"withdrawnByApplicant",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-withdraw-by-client-fixed-deposits-account"]],decls:26,vars:21,consts:[["withdrawnOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,Ha,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"textarea",7),o()()(),n(19,"mat-card-actions",8)(20,"button",9),a(21),r(22,"translate"),o(),n(23,"button",10),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.withdrawFixedDepositsAccountForm),i(5),m(c(8,12,"labels.inputs.Withdrawn On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.withdrawFixedDepositsAccountForm.controls.withdrawnOnDate.hasError("required")?13:-1),i(3),m(c(17,14,"labels.inputs.Note")),i(4),d("routerLink",R(20,za)),i(),u(" ",c(22,16,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.withdrawFixedDepositsAccountForm.valid),i(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var $a=()=>["../../"];function La(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.name+" ("+e.currency.name+")"," ")}}function Ga(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Charge")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Ua(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Amount")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ja(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function Wa(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function Ka(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Due for collection on")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Qa(t,s){if(t&1){let e=F();n(0,"mat-form-field",13),M("click",function(){S(e);let p=k(7);return A(p.open())}),n(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),h(8,Ka,7,9,"mat-error"),o()}if(t&2){let e=k(7),l=_(2);i(2),m(c(3,6,"labels.inputs.Due for collection on")),i(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),i(),d("for",e),i(3),v(l.fixedDepositsChargeForm.controls.dueDate.hasError("required")?8:-1)}}function Ya(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Due Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Ja(t,s){if(t&1){let e=F();n(0,"mat-form-field",13),M("click",function(){S(e);let p=k(7);return A(p.open())}),n(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),h(8,Ya,7,9,"mat-error"),o()}if(t&2){let e=k(7),l=_(2);i(2),m(c(3,6,"labels.inputs.Due On")),i(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),i(),d("for",e),i(3),v(l.fixedDepositsChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function Xa(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",17),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Repeats Every")))}function Za(t,s){if(t&1&&(n(0,"div",4)(1,"mat-form-field")(2,"mat-label"),a(3),r(4,"translate"),o(),g(5,"input",10),h(6,Ua,7,9,"mat-error"),o(),n(7,"mat-form-field")(8,"mat-label"),a(9),r(10,"translate"),o(),n(11,"mat-select",11),L(12,ja,2,2,"mat-option",6,$),o()(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),n(18,"mat-select",12),L(19,Wa,2,2,"mat-option",6,$),o()(),h(21,Qa,9,8,"mat-form-field"),h(22,Ja,9,8,"mat-form-field"),h(23,Xa,5,3,"mat-form-field"),o()),t&2){let e=_();i(3),m(c(4,7,"labels.inputs.Amount")),i(3),v(e.fixedDepositsChargeForm.controls.amount.hasError("required")?6:-1),i(3),m(c(10,9,"labels.inputs.Charge Calculation")),i(3),G(e.chargeDetails.chargeCalculationTypeOptions),i(4),m(c(17,11,"labels.inputs.Charge time type")),i(3),G(e.chargeDetails.chargeTimeTypeOptions),i(2),v(e.fixedDepositsChargeForm.contains("dueDate")?21:-1),i(),v(e.fixedDepositsChargeForm.contains("feeOnMonthDay")?22:-1),i(),v(e.fixedDepositsChargeForm.contains("feeInterval")?23:-1)}}var _i=(()=>{class t{constructor(){this.formBuilder=x(mt),this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.savingsService=x($t),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsChargeOptions=e.fixedDepositsAccountActionData.chargeOptions}),this.fixedDepositAccountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFixedDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.fixedDepositsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(l=>{this.chargeDetails=l;let p=l.chargeTimeType.id;(l.chargeTimeType.value==="Withdrawal Fee"||l.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(l.chargeTimeType.value==="Annual Fee"||l.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.addControl("dueDate",new Z("",V.required)):this.fixedDepositsChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.addControl("feeOnMonthDay",new Z("",V.required)):this.fixedDepositsChargeForm.removeControl("feeOnMonthDay"),p.value==="Monthly Fee"?this.fixedDepositsChargeForm.addControl("feeInterval",new Z(l.feeInterval,V.required)):this.fixedDepositsChargeForm.removeControl("feeInterval"),this.fixedDepositsChargeForm.patchValue({amount:l.amount,chargeCalculationType:l.chargeCalculationType.id,chargeTimeType:l.chargeTimeType.id})})})}createFixedDepositsChargeForm(){this.fixedDepositsChargeForm=this.formBuilder.group({chargeId:["",V.required],amount:["",V.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let e=this.fixedDepositsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let l="MMMM-dd";if(e.monthDayFormat=l,e.feeOnMonthDay){let p=this.fixedDepositsChargeForm.value.feeOnMonthDay;e.feeOnMonthDay=this.dateUtils.formatDate(p,l)}}else{let l=this.settingsService.dateFormat;if(e.dateFormat=l,e.dueDate){let p=this.fixedDepositsChargeForm.value.dueDate;e.dueDate=this.dateUtils.formatDate(p,l)}}this.savingsService.createSavingsCharge(this.fixedDepositAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-add-charge-fixed-deposits-account"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(l,p){l&1&&(n(0,"div",2)(1,"mat-card")(2,"form",3),M("ngSubmit",function(){return p.submit()}),n(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),a(7),r(8,"translate"),o(),n(9,"mat-select",5),L(10,La,2,2,"mat-option",6,$),o(),h(12,Ga,7,9,"mat-error"),o(),h(13,Za,24,13,"div",4),o(),n(14,"mat-card-actions",7)(15,"button",8),a(16),r(17,"translate"),o(),n(18,"button",9),a(19),r(20,"translate"),o()()()()()()),l&2&&(i(2),d("formGroup",p.fixedDepositsChargeForm),i(5),m(c(8,8,"labels.inputs.Charge")),i(3),G(p.savingsChargeOptions),i(2),v(p.fixedDepositsChargeForm.controls.chargeId.hasError("required")?12:-1),i(),v(p.chargeDetails?13:-1),i(2),d("routerLink",R(14,$a)),i(),u(" ",c(17,10,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.fixedDepositsChargeForm.valid),i(),u(" ",c(20,12,"labels.buttons.Submit")," "))},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,w],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var tr=()=>["../../"];function er(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Premature Close Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ir(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",10),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Maturity Amount")))}function nr(t,s){if(t&1&&(n(0,"mat-option",12),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function or(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Account action")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ar(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",11),L(5,nr,2,2,"mat-option",12,$),o(),h(7,or,7,9,"mat-error"),o()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Action")),i(3),G(e.onAccountClosureOptions),i(2),v(e.prematureCloseAccountForm.controls.onAccountClosureId.hasError("required")?7:-1)}}function rr(t,s){if(t&1&&(n(0,"mat-option",12),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.accountNo," ")}}function pr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Transfer to savings account")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function cr(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",13),L(5,rr,2,2,"mat-option",12,$),o(),h(7,pr,7,9,"mat-error"),o()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Transfer to Savings")),i(3),G(e.savingsAccountsData),i(2),v(e.prematureCloseAccountForm.controls.toSavingsAccountId.hasError("required")?7:-1)}}function sr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",14),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Transfer Description")))}function lr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"textarea",15),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Note")))}var hi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isSubmitted=!1,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPrematureCloseAccountForm(),this.buildDependencies()}createPrematureCloseAccountForm(){this.prematureCloseAccountForm=this.formBuilder.group({closedOnDate:["",V.required]})}buildDependencies(){this.prematureCloseAccountForm.get("closedOnDate").valueChanges.subscribe(e=>{this.isSubmitted||this.calculatePrematureAmount(e)})}calculatePrematureAmount(e){let l=this.settingsService.language.code,p=this.settingsService.dateFormat,f={closedOnDate:this.dateUtils.formatDate(e,p),dateFormat:p,locale:l};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"calculatePrematureAmount",f).subscribe(D=>{this.savingsAccountsData=D.savingsAccounts,this.onAccountClosureOptions=D.onAccountClosureOptions,this.prematureCloseAccountForm.addControl("maturityAmount",new Z({value:"",disabled:!0})),this.prematureCloseAccountForm.addControl("onAccountClosureId",new Z("",V.required)),this.prematureCloseAccountForm.addControl("note",new Z("")),this.prematureCloseAccountForm.get("maturityAmount").patchValue(D.maturityAmount),this.addTransferDetails()})}addTransferDetails(){this.prematureCloseAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{e===200?(this.prematureCloseAccountForm.addControl("toSavingsAccountId",new Z("",V.required)),this.prematureCloseAccountForm.addControl("transferDescription",new Z(""))):(this.prematureCloseAccountForm.removeControl("toSavingsAccountId"),this.prematureCloseAccountForm.removeControl("transferDescription"))})}submit(){let e=this.prematureCloseAccountForm.value;this.isSubmitted=!0;let l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.prematureCloseAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"prematureClose",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-premature-close-fixed-deposits-account"]],decls:26,vars:23,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,er,7,9,"mat-error"),o(),h(14,ir,5,3,"mat-form-field"),h(15,ar,8,4,"mat-form-field"),h(16,cr,8,4,"mat-form-field"),h(17,sr,5,3,"mat-form-field"),h(18,lr,5,3,"mat-form-field"),o()(),n(19,"mat-card-actions",7)(20,"button",8),a(21),r(22,"translate"),o(),n(23,"button",9),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.prematureCloseAccountForm),i(5),m(c(8,16,"labels.inputs.Premature Close Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.prematureCloseAccountForm.controls.closedOnDate.hasError("required")?13:-1),i(),v(p.prematureCloseAccountForm.controls.maturityAmount?14:-1),i(),v(p.prematureCloseAccountForm.contains("onAccountClosureId")?15:-1),i(),v(p.prematureCloseAccountForm.contains("toSavingsAccountId")?16:-1),i(),v(p.prematureCloseAccountForm.contains("transferDescription")?17:-1),i(),v(p.prematureCloseAccountForm.contains("note")?18:-1),i(2),d("routerLink",R(22,tr)),i(),u(" ",c(22,18,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.prematureCloseAccountForm.valid),i(),u(" ",c(25,20,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var mr=()=>["../../"];function dr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Closed On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ur(t,s){if(t&1&&(n(0,"mat-option",9),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function fr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Account action")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function gr(t,s){if(t&1&&(n(0,"mat-option",9),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.accountNo," ")}}function xr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Transfer to savings account")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Cr(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",14),L(5,gr,2,2,"mat-option",9,$),o(),h(7,xr,7,9,"mat-error"),o()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Transfer to Savings")),i(3),G(e.savingsAccountsData),i(2),v(e.closeOnMaturityAccountForm.controls.toSavingsAccountId.hasError("required")?7:-1)}}function _r(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",15),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Transfer Description")))}var vi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsAccountsData=e.fixedDepositsAccountActionData.savingsAccounts,this.onAccountClosureOptions=e.fixedDepositsAccountActionData.onAccountClosureOptions,this.maturityAmount=e.fixedDepositsAccountActionData.maturityAmount}),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseOnMaturityAccountForm(),this.addTransferDetails()}createCloseOnMaturityAccountForm(){this.closeOnMaturityAccountForm=this.formBuilder.group({closedOnDate:["",V.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",V.required],note:[""]})}addTransferDetails(){this.closeOnMaturityAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{e===200?(this.closeOnMaturityAccountForm.addControl("toSavingsAccountId",new Z("",V.required)),this.closeOnMaturityAccountForm.addControl("transferDescription",new Z(""))):(this.closeOnMaturityAccountForm.removeControl("toSavingsAccountId"),this.closeOnMaturityAccountForm.removeControl("transferDescription"))})}submit(){let e=this.closeOnMaturityAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.closeOnMaturityAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"close",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-close-fixed-deposits-account"]],decls:41,vars:30,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,dr,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"input",7),o(),n(19,"mat-form-field")(20,"mat-label"),a(21),r(22,"translate"),o(),n(23,"mat-select",8),L(24,ur,2,2,"mat-option",9,$),o(),h(26,fr,7,9,"mat-error"),o(),h(27,Cr,8,4,"mat-form-field"),h(28,_r,5,3,"mat-form-field"),n(29,"mat-form-field")(30,"mat-label"),a(31),r(32,"translate"),o(),g(33,"textarea",10),o()()(),n(34,"mat-card-actions",11)(35,"button",12),a(36),r(37,"translate"),o(),n(38,"button",13),a(39),r(40,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.closeOnMaturityAccountForm),i(5),m(c(8,17,"labels.inputs.Closed On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.closeOnMaturityAccountForm.controls.closedOnDate.hasError("required")?13:-1),i(3),m(c(17,19,"labels.inputs.Maturity Amount")),i(5),m(c(22,21,"labels.inputs.Action")),i(3),G(p.onAccountClosureOptions),i(2),v(p.closeOnMaturityAccountForm.controls.onAccountClosureId.hasError("required")?26:-1),i(),v(p.closeOnMaturityAccountForm.contains("toSavingsAccountId")?27:-1),i(),v(p.closeOnMaturityAccountForm.contains("transferDescription")?28:-1),i(3),m(c(32,23,"labels.inputs.Note")),i(4),d("routerLink",R(29,mr)),i(),u(" ",c(37,25,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.closeOnMaturityAccountForm.valid),i(),u(" ",c(40,27,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var hr=()=>["../../transactions"];function vr(t,s){if(t&1&&(n(0,"h2",2),a(1),r(2,"translate"),r(3,"translate"),o()),t&2){let e=_();i(),T(" ",c(2,2,"labels.menus."+e.actionName)," ",c(3,4,"labels.heading.Fixed Deposit Transactions")," ")}}function Dr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Transaction Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function br(t,s){if(t&1&&(n(0,"mat-option",10),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.name," ")}}function Pr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",19),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Account Number")))}function Mr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",20),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Cheque")))}function Tr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",21),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Routing Code")))}function Sr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",22),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Receipt Number")))}function Ar(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",23),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Bank")))}var Di=(()=>{class t{constructor(){this.formBuilder=x(mt),this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.fixedDepositsService=x(j),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.paymentTypeOptions=[],this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(l=>{this.currency=l.fixedDepositsAccountActionData.currency,this.paymentTypeOptions=l.fixedDepositsAccountActionData.paymentTypeOptions}),this.actionName=this.route.snapshot.params.name;let e=this.actionName.toLowerCase();if(e==="deposit"||e==="withdrawal")this.transactionCommand=e,this.transactionType[this.transactionCommand]=!0;else throw new Error(`Invalid transaction action: ${this.actionName}`);this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.accountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,V.required],transactionAmount:[0,V.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.accountTransactionForm.addControl("accountNumber",new Z("")),this.accountTransactionForm.addControl("checkNumber",new Z("")),this.accountTransactionForm.addControl("routingCode",new Z("")),this.accountTransactionForm.addControl("receiptNumber",new Z("")),this.accountTransactionForm.addControl("bankNumber",new Z(""))):(this.accountTransactionForm.removeControl("accountNumber"),this.accountTransactionForm.removeControl("checkNumber"),this.accountTransactionForm.removeControl("routingCode"),this.accountTransactionForm.removeControl("receiptNumber"),this.accountTransactionForm.removeControl("bankNumber"))}submit(){let e=this.accountTransactionForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.accountTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});delete D.note,D.transactionAmount=D.transactionAmount*1,this.fixedDepositsService.executeFixedDepositsAccountTransactionsCommand(this.accountId,this.transactionCommand,D).subscribe(q=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposits-cash-transaction"]],decls:46,vars:38,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],["mat-title",""],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["required","","formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card"),h(2,vr,4,6,"h2",2),n(3,"form",3),M("ngSubmit",function(){return S(f),A(p.submit())}),n(4,"mat-card-content",4)(5,"mat-form-field",5),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",6)(10,"mat-datepicker-toggle",7)(11,"mat-datepicker",null,0),h(13,Dr,7,9,"mat-error"),o(),g(14,"mifosx-input-amount",8),n(15,"mat-form-field")(16,"mat-label"),a(17),r(18,"translate"),o(),n(19,"mat-select",9),L(20,br,2,2,"mat-option",10,$),o()(),n(22,"div",11)(23,"span",12),M("click",function(){return S(f),A(p.addPaymentDetails())}),n(24,"mat-slide-toggle")(25,"div",13)(26,"span",14),a(27),r(28,"translate"),o()()()()(),h(29,Pr,5,3,"mat-form-field"),h(30,Mr,5,3,"mat-form-field"),h(31,Tr,5,3,"mat-form-field"),h(32,Sr,5,3,"mat-form-field"),h(33,Ar,5,3,"mat-form-field"),n(34,"mat-form-field")(35,"mat-label"),a(36),r(37,"translate"),o(),g(38,"textarea",15),o(),n(39,"mat-card-actions",16)(40,"button",17),a(41),r(42,"translate"),o(),n(43,"button",18),a(44),r(45,"translate"),o()()()()()()}if(l&2){let f=k(12);i(2),v(p.transactionType.withdrawal?2:-1),i(),d("formGroup",p.accountTransactionForm),i(4),m(c(8,25,"labels.inputs.Transaction Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.accountTransactionForm.controls.transactionDate.hasError("required")?13:-1),i(),d("currency",p.currency)("isRequired",!0)("inputFormControl",p.accountTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),i(3),m(c(18,27,"labels.inputs.Payment Type")),i(3),G(p.paymentTypeOptions),i(5),d("className",p.addPaymentDetailsFlag?"enabled":"disabled"),i(2),m(c(28,29,"labels.inputs.Show Payment Details")),i(2),v(p.addPaymentDetailsFlag?29:-1),i(),v(p.addPaymentDetailsFlag?30:-1),i(),v(p.addPaymentDetailsFlag?31:-1),i(),v(p.addPaymentDetailsFlag?32:-1),i(),v(p.addPaymentDetailsFlag?33:-1),i(3),m(c(37,31,"labels.inputs.Notes")),i(4),d("routerLink",R(37,hr)),i(),u(" ",c(42,33,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.accountTransactionForm.valid),i(),u(" ",c(45,35,"labels.buttons.Submit")," ")}},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,ei,ji,Ft,w],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();function Or(t,s){t&1&&g(0,"mifosx-approve-fixed-deposits-account")}function yr(t,s){t&1&&g(0,"mifosx-reject-fixed-deposits-account")}function Ir(t,s){t&1&&g(0,"mifosx-activate-fixed-deposits-account")}function Fr(t,s){t&1&&g(0,"mifosx-undo-approval-fixed-deposits-account")}function wr(t,s){t&1&&g(0,"mifosx-withdraw-by-client-fixed-deposits-account")}function Er(t,s){t&1&&g(0,"mifosx-add-charge-fixed-deposits-account")}function Br(t,s){t&1&&g(0,"mifosx-premature-close-fixed-deposits-account")}function kr(t,s){t&1&&g(0,"mifosx-close-fixed-deposits-account")}function Rr(t,s){t&1&&g(0,"mifosx-fixed-deposits-cash-transaction")}var bi=(()=>{class t{constructor(){this.route=x(N),this.actions={Approve:!1,Reject:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Undo Activation":!1,"Add Charge":!1,"Premature Close":!1,"Withdrawn by Client":!1,Withdrawal:!1};let e=this.route.snapshot.params.name;e&&e in this.actions&&(this.actions[e]=!0)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposits-account-actions"]],decls:9,vars:9,template:function(l,p){l&1&&(h(0,Or,1,0,"mifosx-approve-fixed-deposits-account"),h(1,yr,1,0,"mifosx-reject-fixed-deposits-account"),h(2,Ir,1,0,"mifosx-activate-fixed-deposits-account"),h(3,Fr,1,0,"mifosx-undo-approval-fixed-deposits-account"),h(4,wr,1,0,"mifosx-withdraw-by-client-fixed-deposits-account"),h(5,Er,1,0,"mifosx-add-charge-fixed-deposits-account"),h(6,Br,1,0,"mifosx-premature-close-fixed-deposits-account"),h(7,kr,1,0,"mifosx-close-fixed-deposits-account"),h(8,Rr,1,0,"mifosx-fixed-deposits-cash-transaction")),l&2&&(v(p.actions.Approve?0:-1),i(),v(p.actions.Reject?1:-1),i(),v(p.actions.Activate?2:-1),i(),v(p.actions["Undo Approval"]||p.actions["Undo Activation"]?3:-1),i(),v(p.actions["Withdrawn by Client"]?4:-1),i(),v(p.actions["Add Charge"]?5:-1),i(),v(p.actions["Premature Close"]?6:-1),i(),v(p.actions.Close?7:-1),i(),v(p.actions.Withdrawal?8:-1))},dependencies:[y,I,ui,fi,gi,xi,Ci,_i,hi,vi,Di],encapsulation:2})}}return t})();var Nr=()=>["../"];function Vr(t,s){if(t&1){let e=F();n(0,"button",10),M("click",function(){S(e);let p=_(2);return A(p.undoTransaction())}),g(1,"fa-icon",11),a(2,"Undo "),o()}}function qr(t,s){t&1&&(n(0,"span"),C(1,Vr,3,0,"button",9),o()),t&2&&(i(),d("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function zr(t,s){t&1&&(n(0,"div",4),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.Note")," "))}function Hr(t,s){if(t&1&&(n(0,"div",5),a(1),o()),t&2){let e=_();i(),u(" ",e.transactionData.note," ")}}function $r(t,s){if(t&1&&g(0,"mifosx-transaction-payment-detail",6),t&2){let e=_();d("paymentDetailData",e.transactionData.paymentDetailData)}}var Pi=(()=>{class t{constructor(){this.savingsService=x($t),this.route=x(N),this.dateUtils=x(et),this.router=x(W),this.dialog=x(Ut),this.settingsService=x(U),this.route.data.subscribe(e=>{this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId,this.transactionData=e.fixedDepositsAccountTransaction})}transactionColor(){return this.transactionData.manuallyReversed?"undo":"active"}allowUndo(){return!1}undoTransaction(){this.dialog.open(sn).afterClosed().subscribe(l=>{if(l.confirm){let p=this.settingsService.language.code,f=this.settingsService.dateFormat,D={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),f),transactionAmount:0,dateFormat:f,locale:p};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",D,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-transaction"]],decls:41,vars:37,consts:[[1,"container","m-b-20","align-end-center","gap-2percent"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"paymentDetailData"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(l,p){l&1&&(n(0,"div",0),h(1,qr,2,1,"span"),o(),n(2,"div",1)(3,"mat-card")(4,"mat-card-content")(5,"div",2),g(6,"div",3),n(7,"div",4),a(8),r(9,"translate"),o(),n(10,"div",5),a(11),o(),n(12,"div",4),a(13),r(14,"translate"),o(),n(15,"div",5),a(16),o(),n(17,"div",4),a(18),r(19,"translate"),o(),n(20,"div",5),a(21),r(22,"dateFormat"),o(),n(23,"div",4),a(24),r(25,"translate"),o(),n(26,"div",5),a(27),o(),n(28,"div",4),a(29),r(30,"translate"),o(),n(31,"div",5),a(32),r(33,"currency"),o(),h(34,zr,3,3,"div",4),h(35,Hr,2,1,"div",5),h(36,$r,1,1,"mifosx-transaction-payment-detail",6),o(),n(37,"div",7)(38,"button",8),a(39),r(40,"translate"),o()()()()()),l&2&&(i(),v(p.allowUndo()?1:-1),i(5),d("ngClass",p.transactionColor()),i(2),u(" ",c(9,17,"labels.inputs.Transaction Id")," "),i(3),u(" ",p.transactionData.id," "),i(2),u(" ",c(14,19,"labels.inputs.Type")," "),i(3),u(" ",p.transactionData.transactionType.value," "),i(2),u(" ",c(19,21,"labels.inputs.Transaction Date")," "),i(3),u(" ",c(22,23,p.transactionData.date)," "),i(3),u(" ",c(25,25,"labels.inputs.Currency")," "),i(3),u(" ",p.transactionData.currency.displayLabel," "),i(2),u(" ",c(30,27,"labels.inputs.Amount")," "),i(3),u(" ",at(33,29,p.transactionData.amount,p.transactionData.currency.code,"symbol-narrow","1.2-2")," "),i(2),v(p.transactionData.note?34:-1),i(),v(p.transactionData.note?35:-1),i(),v(p.transactionData.paymentDetailData?36:-1),i(2),d("routerLink",R(36,Nr)),i(),u(" ",c(40,34,"labels.buttons.Back")," "))},dependencies:[y,Se,I,tt,Y,xt,B,de,ut,rn,se,yt,w],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.transaction-relation[_ngcontent-%COMP%]{background-color:#d7dada}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();function Lr(t,s){if(t&1&&(n(0,"mat-option",5),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.name," ")}}function Gr(t,s){if(t&1){let e=F();n(0,"mat-form-field",11),M("click",function(){S(e);let p=k(7);return A(p.open())}),n(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),n(8,"mat-error"),a(9),r(10,"translate"),r(11,"translate"),n(12,"strong"),a(13),r(14,"translate"),o()()()}if(t&2){let e=k(7),l=_();i(2),m(c(3,8,"labels.inputs.Submitted On")),i(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),i(),d("for",e),i(4),T(" ",c(10,10,"labels.inputs.Submission Date")," ",c(11,12,"labels.commons.is")," "),i(4),m(c(14,14,"labels.commons.required"))}}function Ur(t,s){if(t&1&&(n(0,"mat-option",5),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.displayName," ")}}function jr(t,s){if(t&1&&(n(0,"mat-form-field",3)(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",14),L(5,Ur,2,2,"mat-option",5,$),o()()),t&2){let e=_();i(2),m(c(3,1,"labels.inputs.Field Officer")),i(3),G(e.fieldOfficerData)}}function Wr(t,s){t&1&&(n(0,"mat-form-field",3)(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",15),r(5,"translate"),o()),t&2&&(i(2),m(c(3,3,"labels.inputs.External id")),i(2),d("matTooltip",_t(c(5,5,"tooltips.Provides an external id"))))}var ge=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.fixedDepositsAccountProductTemplate=new $e,this.createFixedDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.fixedDepositsAccountTemplate&&(this.productData=this.fixedDepositsAccountTemplate.productOptions,this.fixedDepositsAccountTemplate.depositProductId&&this.fixedDepositAccountDetailsForm.patchValue({productId:this.fixedDepositsAccountTemplate.depositProductId,submittedOnDate:this.fixedDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.fixedDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.fixedDepositsAccountTemplate.externalId||""}))}createFixedDepositsAccountDetailsForm(){this.fixedDepositAccountDetailsForm=this.formBuilder.group({productId:["",V.required],submittedOnDate:["",V.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){let e=this.fixedDepositsAccountTemplate.clientId;this.fixedDepositAccountDetailsForm.get("productId").valueChanges.subscribe(l=>{this.fixedDepositsService.getFixedDepositsAccountTemplate(e,l).subscribe(p=>{this.fixedDepositsAccountProductTemplate.emit(p),this.isProductSelected=!0,this.fieldOfficerData=p.fieldOfficerOptions,!this.isFieldOfficerPatched&&this.fixedDepositsAccountTemplate.fieldOfficerId?(this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.fixedDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get fixedDepositAccountDetails(){let e=this.fixedDepositAccountDetailsForm.value;for(let l in e)e[l]===""&&delete e[l];return e}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-details-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate"},outputs:{fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},decls:28,vars:23,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(l,p){if(l&1&&(n(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),a(4),r(5,"translate"),o(),n(6,"mat-select",4),L(7,Lr,2,2,"mat-option",5,$),o(),n(9,"mat-error"),a(10),r(11,"translate"),r(12,"translate"),n(13,"strong"),a(14),r(15,"translate"),o()()(),h(16,Gr,15,16,"mat-form-field",3),h(17,jr,7,3,"mat-form-field",3),h(18,Wr,6,7,"mat-form-field",3),o(),n(19,"div",6)(20,"button",7),g(21,"fa-icon",8),a(22),r(23,"translate"),o(),n(24,"button",9),a(25),r(26,"translate"),g(27,"fa-icon",10),o()()()),l&2){let f;d("formGroup",p.fixedDepositAccountDetailsForm),i(4),m(c(5,11,"labels.inputs.Product Name")),i(3),G(p.productData),i(3),T(" ",c(11,13,"labels.inputs.Product Name")," ",c(12,15,"labels.commons.is")," "),i(4),m(c(15,17,"labels.commons.required")),i(2),v(p.isProductSelected?16:-1),i(),v(p.isProductSelected?17:-1),i(),v(p.isProductSelected?18:-1),i(4),u(" ",c(23,19,"labels.buttons.Previous")," "),i(2),d("disabled",!((f=p.fixedDepositAccountDetailsForm.get("productId"))!=null&&f.value)||!((f=p.fixedDepositAccountDetailsForm.get("submittedOnDate"))!=null&&f.value)),i(),u(" ",c(26,21,"labels.buttons.Next")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,me,Wt,ut,ne,w],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function Kr(t,s){if(t&1&&g(0,"mifosx-input-amount",2),t&2){let e=_();d("currency",e.currency)("isRequired",!0)("inputFormControl",e.fixedDepositAccountTermsForm.controls.depositAmount)("inputLabel","Deposit Amount")}}function Qr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Yr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Jr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Xr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Zr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}var xe=(()=>{class t{constructor(){this.formBuilder=x(mt),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.currency=null,this.createFixedDepositsAccountTermsForm()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.currency=this.fixedDepositsAccountProductTemplate.currency,this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate.id&&this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountTemplate.depositAmount?this.fixedDepositsAccountTemplate.depositAmount:0,depositPeriod:this.fixedDepositsAccountTemplate.depositPeriod,depositPeriodFrequencyId:this.fixedDepositsAccountTemplate.depositPeriodFrequency.id})}createFixedDepositsAccountTermsForm(){this.fixedDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",V.required],interestPostingPeriodType:["",V.required],interestCalculationType:["",V.required],interestCalculationDaysInYearType:["",V.required],depositAmount:[0,V.required],depositPeriod:["",V.required],depositPeriodFrequencyId:["",V.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.fixedDepositsAccountTemplate.id||this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountProductTemplate.depositAmount,depositPeriod:this.fixedDepositsAccountProductTemplate.minDepositTerm,depositPeriodFrequencyId:this.fixedDepositsAccountProductTemplate.minDepositTermType.id})}get fixedDepositAccountTerms(){let e=this.fixedDepositAccountTermsForm.value;for(let l in e)e[l]===""&&delete e[l];return e}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-terms-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[Jt],decls:96,vars:80,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48",3,"currency","isRequired","inputFormControl","inputLabel"],[1,"flex-48","hide-lt-md"],[1,"flex-48"],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],[3,"value"],[1,"flex-98"],["formControlName","interestCompoundingPeriodType","required",""],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(l,p){l&1&&(n(0,"form",0)(1,"div",1),h(2,Kr,1,4,"mifosx-input-amount",2),g(3,"span",3),n(4,"mat-form-field",4)(5,"mat-label"),a(6),r(7,"translate"),o(),g(8,"input",5),n(9,"mat-error"),a(10),r(11,"translate"),r(12,"translate"),n(13,"strong"),a(14),r(15,"translate"),o()()(),n(16,"mat-form-field",4)(17,"mat-label"),a(18),r(19,"translate"),o(),n(20,"mat-select",6),L(21,Qr,3,5,"mat-option",7,$),o(),n(23,"mat-error"),a(24),r(25,"translate"),r(26,"translate"),n(27,"strong"),a(28),r(29,"translate"),o()()(),g(30,"mat-divider",8),n(31,"mat-form-field",4)(32,"mat-label"),a(33),r(34,"translate"),o(),n(35,"mat-select",9),L(36,Yr,3,5,"mat-option",7,$),o(),n(38,"mat-error"),a(39),r(40,"translate"),r(41,"translate"),n(42,"strong"),a(43),r(44,"translate"),o()()(),n(45,"mat-form-field",4)(46,"mat-label"),a(47),r(48,"translate"),o(),n(49,"mat-select",10),L(50,Jr,3,5,"mat-option",7,$),o(),n(52,"mat-error"),a(53),r(54,"translate"),r(55,"translate"),n(56,"strong"),a(57),r(58,"translate"),o()()(),n(59,"mat-form-field",4)(60,"mat-label"),a(61),r(62,"translate"),o(),n(63,"mat-select",11),L(64,Xr,3,5,"mat-option",7,$),o(),n(66,"mat-error"),a(67),r(68,"translate"),r(69,"translate"),n(70,"strong"),a(71),r(72,"translate"),o()()(),n(73,"mat-form-field",4)(74,"mat-label"),a(75),r(76,"translate"),o(),n(77,"mat-select",12),L(78,Zr,3,5,"mat-option",7,$),o(),n(80,"mat-error"),a(81),r(82,"translate"),r(83,"translate"),n(84,"strong"),a(85),r(86,"translate"),o()()()(),n(87,"div",13)(88,"button",14),g(89,"fa-icon",15),a(90),r(91,"translate"),o(),n(92,"button",16),a(93),r(94,"translate"),g(95,"fa-icon",17),o()()()),l&2&&(d("formGroup",p.fixedDepositAccountTermsForm),i(2),v(p.currency?2:-1),i(4),m(c(7,28,"labels.inputs.Deposit Period")),i(4),T(" ",c(11,30,"labels.inputs.Deposit Period")," ",c(12,32,"labels.commons.is")," "),i(4),m(c(15,34,"labels.commons.required")),i(4),m(c(19,36,"labels.inputs.Deposit Period Type")),i(3),G(p.periodFrequencyTypeData),i(3),T(" ",c(25,38,"labels.inputs.Deposit Period Type")," ",c(26,40,"labels.commons.is")," "),i(4),m(c(29,42,"labels.commons.required")),i(5),m(c(34,44,"labels.inputs.Interest Compounding Period")),i(3),G(p.interestCompoundingPeriodTypeData),i(3),T(" ",c(40,46,"labels.inputs.Interest Compounding Period")," ",c(41,48,"labels.commons.is")," "),i(4),m(c(44,50,"labels.commons.required")),i(4),m(c(48,52,"labels.inputs.Interest Posting Period")),i(3),G(p.interestPostingPeriodTypeData),i(3),T(" ",c(54,54,"labels.inputs.Interest Posting Period")," ",c(55,56,"labels.commons.is")," "),i(4),m(c(58,58,"labels.commons.required")),i(4),m(c(62,60,"labels.inputs.Interest Calculated using")),i(3),G(p.interestCalculationTypeData),i(3),T(" ",c(68,62,"labels.inputs.Interest Calculated using")," ",c(69,64,"labels.commons.is")," "),i(4),m(c(72,66,"labels.commons.required")),i(4),m(c(76,68,"labels.inputs.Days in Year")),i(3),G(p.interestCalculationDaysInYearTypeData),i(3),T(" ",c(82,70,"labels.inputs.Days in Year")," ",c(83,72,"labels.commons.is")," "),i(4),m(c(86,74,"labels.commons.required")),i(5),u(" ",c(91,76,"labels.buttons.Previous")," "),i(3),u(" ",c(94,78,"labels.buttons.Next")," "))},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,ot,nt,Ct,dt,Ot,At,B,ei,Re,Wt,ut,ne,w,It],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function tp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function ep(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function ip(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function np(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function op(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),T(" (",e.accountNo,") ",e.savingsProductName," ")}}function ap(t,s){if(t&1&&(n(0,"mat-form-field",16)(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",28),L(5,op,2,3,"mat-option",6,$),o(),n(7,"mat-error"),a(8),r(9,"translate"),r(10,"translate"),n(11,"strong"),a(12),r(13,"translate"),o()()()),t&2){let e=_();i(2),m(c(3,4,"labels.inputs.Linked Savings Account")),i(3),G(e.savingsAccountsData),i(3),T(" ",c(9,6,"labels.inputs.Linked Savings Account")," ",c(10,8,"labels.commons.is")," "),i(4),m(c(13,10,"labels.commons.required"))}}function rp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function pp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),T(" (",e.accountNo,") ",e.savingsProductName," ")}}function cp(t,s){if(t&1&&(n(0,"mat-form-field",18)(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",29),L(5,pp,2,3,"mat-option",6,$),o(),n(7,"mat-error"),a(8),r(9,"translate"),r(10,"translate"),n(11,"strong"),a(12),r(13,"translate"),o()()()),t&2){let e=_();i(2),m(c(3,4,"labels.inputs.Transfer to savings account")),i(3),G(e.savingsAccountsData),i(3),T(" ",c(9,6,"labels.inputs.Transfer to savings account")," ",c(10,8,"labels.commons.is")," "),i(4),m(c(13,10,"labels.commons.required"))}}function sp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function lp(t,s){t&1&&(n(0,"mat-form-field",31)(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",32),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Tax Group")))}function mp(t,s){if(t&1&&(g(0,"mat-divider",13),n(1,"mat-checkbox",30),a(2),r(3,"translate"),o(),h(4,lp,5,3,"mat-form-field",31)),t&2){let e=_();i(2),u(" ",c(3,2,"labels.inputs.Is Withhold Tax Applicable"),"? "),i(2),v(e.fixedDepositAccountSettingsForm.controls.taxGroupId?4:-1)}}var Ce=(()=>{class t{constructor(){this.formBuilder=x(mt),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createFixedDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.fixedDepositAccountSettingsForm.patchValue({minDepositTerm:this.fixedDepositsAccountProductTemplate.minDepositTerm,minDepositTermTypeId:this.fixedDepositsAccountProductTemplate.minDepositTermType?this.fixedDepositsAccountProductTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType?this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.id:"",maxDepositTerm:this.fixedDepositsAccountProductTemplate.maxDepositTerm,maxDepositTermTypeId:this.fixedDepositsAccountProductTemplate.maxDepositTermType?this.fixedDepositsAccountProductTemplate.maxDepositTermType.id:"",preClosurePenalApplicable:this.fixedDepositsAccountProductTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.fixedDepositsAccountProductTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType?this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id:"",maturityInstructionId:this.fixedDepositsAccountProductTemplate.maturityInstructionId}),this.fixedDepositsAccountProductTemplate.withHoldTax?(this.fixedDepositAccountSettingsForm.addControl("withHoldTax",new Z(!1)),this.fixedDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("taxGroupId",new Z({value:"",disabled:!0})),this.fixedDepositAccountSettingsForm.get("taxGroupId").patchValue(this.fixedDepositsAccountProductTemplate.taxGroup&&this.fixedDepositsAccountProductTemplate.taxGroup.name)):this.fixedDepositAccountSettingsForm.removeControl("taxGroupId")}),this.fixedDepositAccountSettingsForm.get("withHoldTax").patchValue(this.fixedDepositsAccountTemplate.withHoldTax)):this.fixedDepositAccountSettingsForm.removeControl("withHoldTax"),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate&&this.fixedDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.fixedDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType&&this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType.id,transferInterestToSavings:this.fixedDepositsAccountTemplate.transferInterestToSavings})}createFixedDepositAccountSettingsForm(){this.fixedDepositAccountSettingsForm=this.formBuilder.group({lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],transferInterestToSavings:[!1],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],maturityInstructionId:[""]})}buildDependencies(){this.fixedDepositAccountSettingsForm.get("transferInterestToSavings").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("linkAccountId",new Z("",V.required)),this.fixedDepositAccountSettingsForm.get("linkAccountId").patchValue(this.fixedDepositsAccountTemplate.linkedAccount&&this.fixedDepositsAccountTemplate.linkedAccount.id)):this.fixedDepositAccountSettingsForm.removeControl("linkAccountId")}),this.fixedDepositAccountSettingsForm.get("maturityInstructionId").valueChanges.subscribe(e=>{e>100?(this.fixedDepositAccountSettingsForm.addControl("transferToSavingsId",new Z("",V.required)),this.fixedDepositAccountSettingsForm.get("transferToSavingsId").patchValue(this.fixedDepositsAccountTemplate.transferToSavingsId&&this.fixedDepositsAccountTemplate.transferToSavingsId.id)):this.fixedDepositAccountSettingsForm.removeControl("transferToSavingsId")})}setOptions(){this.lockinPeriodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.savingsAccountsData=this.fixedDepositsAccountProductTemplate.savingsAccounts,this.preClosurePenalInterestOnTypeData=this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnTypeOptions,this.maturityInstructionOptions=this.fixedDepositsAccountProductTemplate.maturityInstructionOptions}get fixedDepositAccountSettings(){let e=this.fixedDepositAccountSettingsForm.getRawValue();for(let l in e)(e[l]===""||l==="taxGroupId")&&delete e[l];return e}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-settings-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[Jt],decls:122,vars:85,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],[1,"flex-98"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","transferInterestToSavings",1,"flex-32","margin-b"],[1,"margin-b","flex-48"],["formControlName","maturityInstructionId"],[1,"flex-48","margin-b"],[1,"mat-h4","flex-23"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","linkAccountId","required",""],["formControlName","transferToSavingsId","required",""],["labelPosition","before","formControlName","withHoldTax",1,"margin-p","flex-48"],[1,"p-b-25","flex-48"],["matInput","","formControlName","taxGroupId"]],template:function(l,p){l&1&&(n(0,"form",0)(1,"div",1)(2,"h4",2),a(3),r(4,"translate"),o(),n(5,"mat-form-field",3)(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",4),o(),n(10,"mat-form-field",3)(11,"mat-label"),a(12),r(13,"translate"),o(),n(14,"mat-select",5),L(15,tp,3,5,"mat-option",6,$),o()(),n(17,"h4",2),a(18),r(19,"translate"),o(),n(20,"mat-form-field",3)(21,"mat-label"),a(22),r(23,"translate"),o(),g(24,"input",7),n(25,"mat-error"),a(26),r(27,"translate"),r(28,"translate"),n(29,"strong"),a(30),r(31,"translate"),o()()(),n(32,"mat-form-field",3)(33,"mat-label"),a(34),r(35,"translate"),o(),n(36,"mat-select",8),L(37,ep,3,5,"mat-option",6,$),o(),n(39,"mat-error"),a(40),r(41,"translate"),r(42,"translate"),n(43,"strong"),a(44),r(45,"translate"),o()()(),n(46,"h4",2),a(47),r(48,"translate"),o(),n(49,"mat-form-field",3)(50,"mat-label"),a(51),r(52,"translate"),o(),g(53,"input",9),o(),n(54,"mat-form-field",3)(55,"mat-label"),a(56),r(57,"translate"),o(),n(58,"mat-select",10),L(59,ip,3,5,"mat-option",6,$),o()(),n(61,"h4",2),a(62),r(63,"translate"),o(),n(64,"mat-form-field",3)(65,"mat-label"),a(66),r(67,"translate"),o(),g(68,"input",11),o(),n(69,"mat-form-field",3)(70,"mat-label"),a(71),r(72,"translate"),o(),n(73,"mat-select",12),L(74,np,3,5,"mat-option",6,$),o()(),g(76,"mat-divider",13),n(77,"h3",14),a(78),r(79,"translate"),o(),n(80,"mat-checkbox",15),a(81),r(82,"translate"),o(),h(83,ap,14,12,"mat-form-field",16),g(84,"mat-divider",13),n(85,"mat-form-field",3)(86,"mat-label"),a(87),r(88,"translate"),o(),n(89,"mat-select",17),L(90,rp,3,5,"mat-option",6,$),o()(),h(92,cp,14,12,"mat-form-field",18),g(93,"mat-divider",13),n(94,"h4",19),a(95),r(96,"translate"),o(),n(97,"mat-checkbox",20),a(98),r(99,"translate"),o(),n(100,"mat-form-field",3)(101,"mat-label"),a(102),r(103,"translate"),o(),g(104,"input",21),o(),n(105,"mat-form-field",3)(106,"mat-label"),a(107),r(108,"translate"),o(),n(109,"mat-select",22),L(110,sp,3,5,"mat-option",6,$),o()(),h(112,mp,5,4),o(),n(113,"div",23)(114,"button",24),g(115,"fa-icon",25),a(116),r(117,"translate"),o(),n(118,"button",26),a(119),r(120,"translate"),g(121,"fa-icon",27),o()()()),l&2&&(d("formGroup",p.fixedDepositAccountSettingsForm),i(3),m(c(4,31,"labels.heading.Lock-in Period")),i(4),m(c(8,33,"labels.inputs.Frequency")),i(5),m(c(13,35,"labels.inputs.Type")),i(3),G(p.lockinPeriodFrequencyTypeData),i(3),m(c(19,37,"labels.heading.Minimum Deposit Term")),i(4),m(c(23,39,"labels.inputs.Frequency")),i(4),T(" ",c(27,41,"labels.inputs.Minimum Deposit Term Frequency")," ",c(28,43,"labels.commons.is")," "),i(4),m(c(31,45,"labels.commons.required")),i(4),m(c(35,47,"labels.inputs.Frequency Type")),i(3),G(p.periodFrequencyTypeData),i(3),T(" ",c(41,49,"labels.inputs.Minimum Deposit Term Frequency Type")," ",c(42,51,"labels.commons.is")," "),i(4),m(c(45,53,"labels.commons.required")),i(3),m(c(48,55,"labels.heading.And thereafter, in Multiples of")),i(4),m(c(52,57,"labels.inputs.Frequency")),i(5),m(c(57,59,"labels.inputs.Type")),i(3),G(p.periodFrequencyTypeData),i(3),m(c(63,61,"labels.heading.Maximum Deposit Term")),i(4),m(c(67,63,"labels.inputs.Frequency")),i(5),m(c(72,65,"labels.inputs.Type")),i(3),G(p.periodFrequencyTypeData),i(4),m(c(79,67,"labels.heading.Interest Transfer")),i(3),u(" ",c(82,69,"labels.inputs.Transfer Interest to Linked Savings Account"),"? "),i(2),v(p.fixedDepositAccountSettingsForm.contains("linkAccountId")?83:-1),i(4),m(c(88,71,"labels.inputs.Maturity Instructions")),i(3),G(p.maturityInstructionOptions),i(2),v(p.fixedDepositAccountSettingsForm.contains("transferToSavingsId")?92:-1),i(3),m(c(96,73,"labels.heading.For Pre-mature closure")),i(3),u(" ",c(99,75,"labels.inputs.Apply Penal Interest (less)")," "),i(4),u("",c(103,77,"labels.inputs.Penal Interest")," (%)"),i(5),m(c(108,79,"labels.inputs.Period")),i(3),G(p.preClosurePenalInterestOnTypeData),i(2),v(p.fixedDepositAccountSettingsForm.controls.withHoldTax?112:-1),i(4),u(" ",c(117,81,"labels.buttons.Previous")," "),i(3),u(" ",c(120,83,"labels.buttons.Next")," "))},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,ot,nt,Ct,dt,Ot,At,B,Ue,Re,Wt,ut,ne,w,It],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-p[_ngcontent-%COMP%]{margin-top:1.7em}"]})}}return t})();var dp=()=>[2e3];function up(t,s){if(t&1&&(n(0,"mat-option",3),a(1),o()),t&2){let e=s.$implicit;d("value",e),i(),u(" ",e.name," ")}}function fp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.name")))}function gp(t,s){if(t&1&&(n(0,"td",25),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function xp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Type")))}function Cp(t,s){if(t&1&&(n(0,"td",25),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeCalculationType.value," ")}}function _p(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount")))}function hp(t,s){if(t&1){let e=F();n(0,"td",25),a(1),n(2,"button",26),M("click",function(){let p=S(e).$implicit,f=_();return A(f.editChargeAmount(p))}),g(3,"fa-icon",27),o()()}if(t&2){let e=s.$implicit;i(),u(" ",e.amount," ")}}function vp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Collected On")))}function Dp(t,s){if(t&1&&(n(0,"td",25),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeTimeType.value," ")}}function bp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Date")))}function Pp(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",c(2,1,e.dueDate)||"Unassigned*"," ")}}function Mp(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",e.feeOnMonthDay?E(2,1,R(4,dp).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function Tp(t,s){t&1&&(n(0,"span"),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function Sp(t,s){if(t&1){let e=F();n(0,"button",26),M("click",function(){S(e);let p=_().$implicit,f=_();return A(f.editChargeDate(p))}),g(1,"fa-icon",27),o()}}function Ap(t,s){if(t&1&&(n(0,"td",25),h(1,Pp,3,3,"span"),h(2,Mp,3,5,"span"),h(3,Tp,3,3,"span"),h(4,Sp,2,0,"button",28),o()),t&2){let e=s.$implicit;i(),v(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),i(),v(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),i(),v(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3),i(),v(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?4:-1)}}function Op(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Repayments Every")))}function yp(t,s){if(t&1){let e=F();n(0,"button",26),M("click",function(){S(e);let p=_().$implicit,f=_();return A(f.editChargeFeeInterval(p))}),g(1,"fa-icon",27),o()}}function Ip(t,s){if(t&1&&(n(0,"td",25),a(1),h(2,yp,2,0,"button",28),o()),t&2){let e=s.$implicit;i(),u(" ",e.feeInterval||"Not Provided"," "),i(),v(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"?2:-1)}}function Fp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function wp(t,s){if(t&1){let e=F();n(0,"td",25)(1,"button",29),M("click",function(){let p=S(e).$implicit,f=_();return A(f.deleteCharge(p))}),g(2,"fa-icon",30),o()()}}function Ep(t,s){t&1&&g(0,"tr",31)}function Bp(t,s){t&1&&g(0,"tr",32)}var _e=(()=>{class t{constructor(){this.dialog=x(Ut),this.dateUtils=x(et),this.settingsService=x(U),this.currency=null,this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.isChargesPatched=!1,this.pristine=!0}ngOnInit(){this.chargesDataSource=[],this.fixedDepositsAccountTemplate.id&&this.fixedDepositsAccountTemplate.charges&&(this.chargesDataSource=this.fixedDepositsAccountTemplate.charges.map(e=>X(H({},e),{id:e.chargeId}))||[])}ngOnChanges(){this.currency==null&&(this.fixedDepositsAccountTemplate.currency?this.currency=this.fixedDepositsAccountTemplate.currency:this.fixedDepositsAccountProductTemplate&&this.fixedDepositsAccountProductTemplate.currency&&(this.currency=this.fixedDepositsAccountProductTemplate.currency)),this.fixedDepositsAccountProductTemplate&&(this.chargeData=this.fixedDepositsAccountProductTemplate.chargeOptions.filter(e=>e.currency.code===this.currency.code))}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){let l=[new Ne({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})],p={title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=X(H({},e),{amount:D.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){let l=[new ti({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],p={title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q,re=this.settingsService.dateFormat,pe=this.dateUtils.formatDate(D.data.value.date,re);switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":q=X(H({},e),{dueDate:pe});break;case"Annual Fee":q=X(H({},e),{feeOnMonthDay:pe});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let l=[new Ne({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],p={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=X(H({},e),{feeInterval:D.data.value.feeInterval});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get fixedDepositAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-charges-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountFormValid:"fixedDepositAccountFormValid"},features:[Jt],decls:47,vars:18,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","primary"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),a(3),r(4,"translate"),o(),n(5,"mat-select",null,0),L(7,up,2,2,"mat-option",3,$),o()(),n(9,"div",4)(10,"button",5),M("click",function(){S(f);let q=k(6);return A(p.addCharge(q))}),g(11,"fa-icon",6),a(12),r(13,"translate"),o()(),n(14,"table",7),b(15,8),C(16,fp,3,3,"th",9)(17,gp,2,1,"td",10),P(),b(18,11),C(19,xp,3,3,"th",9)(20,Cp,2,1,"td",10),P(),b(21,12),C(22,_p,3,3,"th",9)(23,hp,4,1,"td",10),P(),b(24,13),C(25,vp,3,3,"th",9)(26,Dp,2,1,"td",10),P(),b(27,14),C(28,bp,3,3,"th",9)(29,Ap,5,4,"td",10),P(),b(30,15),C(31,Op,3,3,"th",9)(32,Ip,3,2,"td",10),P(),b(33,16),C(34,Fp,3,3,"th",9)(35,wp,3,0,"td",10),P(),C(36,Ep,1,0,"tr",17)(37,Bp,1,0,"tr",18),o()(),n(38,"div",19)(39,"button",20),g(40,"fa-icon",21),a(41),r(42,"translate"),o(),n(43,"button",22),a(44),r(45,"translate"),g(46,"fa-icon",23),o()()}if(l&2){let f=k(6);i(3),m(c(4,10,"labels.inputs.Charge")),i(4),G(p.chargeData),i(3),d("disabled",!f.value),i(2),u(" ",c(13,12,"labels.buttons.Add")," "),i(2),d("dataSource",p.chargesDataSource)("hidden",p.chargesDataSource.length===0),i(22),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns),i(4),u(" ",c(42,14,"labels.buttons.Previous")," "),i(2),d("disabled",!p.fixedDepositAccountFormValid),i(),u(" ",c(45,16,"labels.buttons.Next")," ")}},dependencies:[y,I,ot,nt,Ot,At,B,ut,wt,kt,Bt,Rt,Et,Nt,Ee,Vt,zt,qt,Ht,Wt,ne,yt,w],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var kp=["chartsTable"];function Rp(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.name"),":"),i(3),m(e.fixedDepositsAccountProductTemplate.accountChart.name)}}function Np(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"dateFormat"),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.End Date"),":"),i(3),m(c(6,4,e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function Vp(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Description"),":"),i(3),m(e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function qp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Period")))}function zp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),ce(" ",e.fromPeriod,"-",e.toPeriod,"\xA0",e.periodType.value," ")}}function Hp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount Range")))}function $p(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),T("",e.amountRangeFrom,"-",e.amountRangeTo)}}function Lp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Gp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),m(e.annualInterestRate)}}function Up(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Description")))}function jp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),m(e.description)}}function Wp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function Kp(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",27),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function Qp(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",28),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Yp(t,s){if(t&1){let e=F();n(0,"td",24)(1,"button",25),M("click",function(){let p=S(e).dataIndex,f=_();return A(f.expandChartSlabIndex=f.expandChartSlabIndex===p?null:p)}),C(2,Kp,4,3,"span",26)(3,Qp,4,3,"span",26),o()()}if(t&2){let e=s.dataIndex,l=_();i(2),d("ngIf",l.expandChartSlabIndex!==e),i(),d("ngIf",l.expandChartSlabIndex===e)}}function Jp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Entity Type")))}function Xp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.entityType.value," ")}}function Zp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Name")))}function tc(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.attributeName.value," ")}}function ec(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Condition Type")))}function ic(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"titlecase"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.conditionType.value)," ")}}function nc(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Value")))}function oc(t,s){if(t&1&&(n(0,"td",41),a(1),o()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),i(),u(" ",e.attributeValueDesc," ")}}function ac(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Incentive Type")))}function rc(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.incentiveType.value," ")}}function pc(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function cc(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.amount," ")}}function sc(t,s){t&1&&g(0,"tr",42)}function lc(t,s){t&1&&g(0,"tr",43)}function mc(t,s){if(t&1&&(n(0,"table",33),b(1,34),C(2,Jp,3,3,"th",8)(3,Xp,2,1,"td",9),P(),b(4,35),C(5,Zp,3,3,"th",8)(6,tc,2,1,"td",9),P(),b(7,36),C(8,ec,3,3,"th",8)(9,ic,3,3,"td",9),P(),b(10,37),C(11,nc,3,3,"th",8)(12,oc,2,2,"td",38),P(),b(13,39),C(14,ac,3,3,"th",8)(15,rc,2,1,"td",9),P(),b(16,40),C(17,pc,3,3,"th",8)(18,cc,2,1,"td",9),P(),C(19,sc,1,0,"tr",15)(20,lc,1,0,"tr",16),o()),t&2){let e=_().$implicit,l=_();d("dataSource",e.incentives),i(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),i(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function dc(t,s){if(t&1&&(n(0,"td",24)(1,"div",29)(2,"mat-card",30)(3,"h4",31),a(4),r(5,"translate"),o(),C(6,mc,21,3,"table",32),o()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=_();Te("colspan",p.chartSlabsDisplayedColumns.length),i(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),i(3),u(" ",c(5,4,"labels.heading.Incentives")," "),i(2),d("ngIf",e.incentives.length)}}function uc(t,s){t&1&&g(0,"tr",42)}function fc(t,s){t&1&&g(0,"tr",43)}function gc(t,s){t&1&&g(0,"tr",44)}var Ve=(()=>{class t{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs,this.chartsTableRef.renderRows())}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-interest-rate-chart-step"]],viewQuery:function(l,p){if(l&1&&ht(kp,7),l&2){let f;vt(f=Dt())&&(p.chartsTableRef=f.first)}},inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[Jt],decls:48,vars:23,consts:[["chartsTable",""],[1,"layout-column","gap-2px"],["class","flex-fill",4,"ngIf"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","layout-row-wrap","flex-fill"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","flex-fill mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(n(0,"div",1),C(1,Rp,6,4,"div",2),n(2,"div",3)(3,"span",4),a(4),r(5,"translate"),o(),n(6,"span",5),a(7),r(8,"dateFormat"),o()(),C(9,Np,7,6,"div",2)(10,Vp,6,4,"div",2),n(11,"div",3)(12,"span",4),a(13),r(14,"translate"),o(),n(15,"span",5),a(16),o()(),n(17,"table",6,0),b(19,7),C(20,qp,3,3,"th",8)(21,zp,2,3,"td",9),P(),b(22,10),C(23,Hp,3,3,"th",8)(24,$p,2,2,"td",9),P(),b(25,11),C(26,Lp,3,3,"th",8)(27,Gp,2,1,"td",9),P(),b(28,12),C(29,Up,3,3,"th",8)(30,jp,2,1,"td",9),P(),b(31,13),C(32,Wp,3,3,"th",8)(33,Yp,4,2,"td",9),P(),b(34,14),C(35,dc,7,6,"td",9),P(),C(36,uc,1,0,"tr",15)(37,fc,1,0,"tr",16)(38,gc,1,0,"tr",17),o()(),n(39,"div",18)(40,"button",19),g(41,"fa-icon",20),a(42),r(43,"translate"),o(),n(44,"button",21),a(45),r(46,"translate"),g(47,"fa-icon",22),o()()),l&2&&(i(),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.name),i(3),u("",c(5,13,"labels.inputs.Valid from Date"),":"),i(3),m(c(8,15,p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.fromDate)),i(2),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.endDate),i(),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.description),i(3),u("",c(14,17,"labels.inputs.Primary Grouping by Amount"),":"),i(3),m(p.fixedDepositsAccountProductTemplate!=null&&p.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount?"Yes":"No"),i(),d("dataSource",p.interestRateChartData),i(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),i(4),u(" ",c(43,19,"labels.buttons.Previous")," "),i(3),u(" ",c(46,21,"labels.buttons.Next")," "))},dependencies:[y,Ae,Oe,I,Y,B,wt,kt,Bt,Rt,Et,Nt,ut,Vt,zt,qt,Ht,Wt,ne,ye,yt,w],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Ie("expandChartSlab",[ae("collapsed",oe({height:"0px",minHeight:"0"})),ae("expanded",oe({height:"*"})),we("expanded <=> collapsed",Fe("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var xc=()=>["../.."],Cc=()=>[2e3];function _c(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.External Id")),i(3),m(e.fixedDepositAccountData.externalId)}}function hc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"find"),r(7,"translateKey"),o()()),t&2){let e=_();i(2),u("",c(3,3,"labels.inputs.Lock-in Period"),":"),i(3),T("",e.fixedDepositAccountData.lockinPeriodFrequency," ",E(7,10,at(6,5,e.fixedDepositAccountData.lockinPeriodFrequencyType,e.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function vc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),u("",c(3,3,"labels.inputs.Minimum Deposit Term"),":"),i(3),T("",e.fixedDepositsAccountProductTemplate.minDepositTerm," ",E(6,5,e.fixedDepositsAccountProductTemplate.minDepositTermType==null?null:e.fixedDepositsAccountProductTemplate.minDepositTermType.value,"catalogs"))}}function Dc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),u("",c(3,3,"labels.inputs.In Multiples Of"),":"),i(3),T("",e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm," ",E(6,5,e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType==null?null:e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value,"catalogs"))}}function bc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,3,"labels.inputs.Maximum Deposit Term")),i(3),T("",e.fixedDepositsAccountProductTemplate.maxDepositTerm," ",E(6,5,e.fixedDepositsAccountProductTemplate.maxDepositTermType==null?null:e.fixedDepositsAccountProductTemplate.maxDepositTermType.value,"catalogs"))}}function Pc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"find"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Linked Savings Account")),i(3),m(at(6,4,e.fixedDepositAccountData.linkAccountId,e.fixedDepositsAccountProductTemplate.savingsAccounts,"id","accountNo"))}}function Mc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"find"),r(7,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Maturity Instructions")),i(3),m(E(7,9,at(6,4,e.fixedDepositAccountData.maturityInstructionId,e.fixedDepositsAccountProductTemplate.maturityInstructionOptions,"id","value"),"catalogs"))}}function Tc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Penal Interest")," (%):"),i(3),m(e.fixedDepositsAccountProductTemplate.preClosurePenalInterest+"% ("+(e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType==null?null:e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id)+")")}}function Sc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"yesNo"),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Withhold Tax is Applicable"),":"),i(3),m(c(6,4,e.fixedDepositAccountData.withHoldTax))}}function Ac(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.name"),":"),i(3),m(e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.name)}}function Oc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"dateFormat"),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.End Date"),":"),i(3),m(c(6,4,e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function yc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Description"),":"),i(3),m(e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function Ic(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Period")))}function Fc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),ce(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",E(2,3,e.periodType.value,"catalogs")," ")}}function wc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount Range")))}function Ec(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"formatNumber"),r(3,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function Bc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function kc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u("",c(2,1,e.annualInterestRate)," %")}}function Rc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Description")))}function Nc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),m(e.description)}}function Vc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function qc(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",29),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function zc(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",30),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Hc(t,s){if(t&1){let e=F();n(0,"td",26)(1,"button",27),M("click",function(){let p=S(e).dataIndex,f=_();return A(f.expandChartSlabIndex=f.expandChartSlabIndex===p?null:p)}),C(2,qc,4,3,"span",28)(3,zc,4,3,"span",28),o()()}if(t&2){let e=s.dataIndex,l=_();i(2),d("ngIf",l.expandChartSlabIndex!==e),i(),d("ngIf",l.expandChartSlabIndex===e)}}function $c(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Entity Type")))}function Lc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.entityType.value," ")}}function Gc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Name")))}function Uc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.attributeName.value," ")}}function jc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Condition Type")))}function Wc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"titlecase"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.conditionType.value)," ")}}function Kc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Value")))}function Qc(t,s){if(t&1&&(n(0,"td",43),a(1),o()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),i(),u(" ",e.attributeValueDesc," ")}}function Yc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Incentive Type")))}function Jc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.incentiveType.value," ")}}function Xc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Zc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.amount)," ")}}function ts(t,s){t&1&&g(0,"tr",44)}function es(t,s){t&1&&g(0,"tr",45)}function is(t,s){if(t&1&&(n(0,"table",35),b(1,36),C(2,$c,3,3,"th",9)(3,Lc,2,1,"td",10),P(),b(4,37),C(5,Gc,3,3,"th",9)(6,Uc,2,1,"td",10),P(),b(7,38),C(8,jc,3,3,"th",9)(9,Wc,3,3,"td",10),P(),b(10,39),C(11,Kc,3,3,"th",9)(12,Qc,2,2,"td",40),P(),b(13,41),C(14,Yc,3,3,"th",9)(15,Jc,2,1,"td",10),P(),b(16,42),C(17,Xc,3,3,"th",9)(18,Zc,3,3,"td",10),P(),C(19,ts,1,0,"tr",16)(20,es,1,0,"tr",17),o()),t&2){let e=_().$implicit,l=_();d("dataSource",e.incentives),i(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),i(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function ns(t,s){if(t&1&&(n(0,"td",26)(1,"div",31)(2,"mat-card",32)(3,"h4",33),a(4),r(5,"translate"),o(),C(6,is,21,3,"table",34),o()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=_();Te("colspan",p.chartSlabsDisplayedColumns.length),i(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),i(3),u(" ",c(5,4,"labels.heading.Incentives")," "),i(2),d("ngIf",e.incentives.length)}}function os(t,s){t&1&&g(0,"tr",44)}function as(t,s){t&1&&g(0,"tr",45)}function rs(t,s){t&1&&g(0,"tr",46)}function ps(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.name")))}function cs(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function ss(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Type")))}function ls(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeCalculationType.value," ")}}function ms(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount")))}function ds(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.amount," ")}}function us(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Date")))}function fs(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",c(2,1,e.dueDate)||"Unassigned"," ")}}function gs(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",e.feeOnMonthDay?E(2,1,R(4,Cc).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function xs(t,s){t&1&&(n(0,"span"),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function Cs(t,s){if(t&1&&(n(0,"td",26),C(1,fs,3,3,"span",28)(2,gs,3,5,"span",28)(3,xs,3,3,"span",28),o()),t&2){let e=s.$implicit;i(),d("ngIf",e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"),i(),d("ngIf",e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"),i(),d("ngIf",!(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"))}}function _s(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Repayments Every")))}function hs(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.feeInterval||"Not Provided"," ")}}function vs(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Collected On")))}function Ds(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeTimeType.value," ")}}function bs(t,s){t&1&&g(0,"tr",44)}function Ps(t,s){t&1&&g(0,"tr",45)}function Ms(t,s){if(t&1&&(n(0,"div",47)(1,"h3",1),a(2),r(3,"translate"),o(),g(4,"mat-divider",2),n(5,"table",35),b(6,48),C(7,ps,3,3,"th",9)(8,cs,2,1,"td",10),P(),b(9,49),C(10,ss,3,3,"th",9)(11,ls,2,1,"td",10),P(),b(12,42),C(13,ms,3,3,"th",9)(14,ds,2,1,"td",10),P(),b(15,50),C(16,us,3,3,"th",9)(17,Cs,4,3,"td",10),P(),b(18,51),C(19,_s,3,3,"th",9)(20,hs,2,1,"td",10),P(),b(21,52),C(22,vs,3,3,"th",9)(23,Ds,2,1,"td",10),P(),C(24,bs,1,0,"tr",16)(25,Ps,1,0,"tr",17),o()()),t&2){let e=_();i(2),m(c(3,4,"labels.heading.Charges")),i(3),d("dataSource",e.fixedDepositAccountData.charges),i(19),d("matHeaderRowDef",e.chargesDisplayedColumns),i(),d("matRowDefColumns",e.chargesDisplayedColumns)}}var qe=(()=>{class t{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.submitEvent=new $e}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-preview-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountData:"fixedDepositAccountData"},outputs:{submitEvent:"submitEvent"},features:[Jt],decls:181,vars:176,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h3","flex-100"],[1,"flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],["class","layout-row flex-100",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["class","layout-row-wrap responsive-column flex-100",4,"ngIf"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"m-b-10","flex-13"],["class","flex-100 mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],[1,"layout-row-wrap","responsive-column","flex-100"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(l,p){l&1&&(n(0,"div",0)(1,"h3",1),a(2),r(3,"translate"),o(),g(4,"mat-divider",2),n(5,"div",3)(6,"span",4),a(7),r(8,"translate"),o(),n(9,"span",5),a(10),r(11,"find"),o()(),n(12,"div",3)(13,"span",4),a(14),r(15,"translate"),o(),n(16,"span",5),a(17),r(18,"dateFormat"),o()(),C(19,_c,6,4,"div",6),n(20,"div",3)(21,"span",4),a(22),r(23,"translate"),o(),n(24,"span",5),a(25),r(26,"find"),r(27,"translateKey"),o()(),n(28,"h3",1),a(29),r(30,"translate"),o(),g(31,"mat-divider",2),n(32,"div",3)(33,"span",4),a(34),r(35,"translate"),o(),n(36,"span",5),a(37),o()(),n(38,"div",3)(39,"span",4),a(40),r(41,"translate"),o(),n(42,"span",5),a(43),o()(),n(44,"div",3)(45,"span",4),a(46),r(47,"translate"),o(),n(48,"span",5),a(49),o()(),n(50,"h3",1),a(51),r(52,"translate"),o(),g(53,"mat-divider",2),n(54,"div",3)(55,"span",4),a(56),r(57,"translate"),o(),n(58,"span",5),a(59),r(60,"currency"),o()(),n(61,"div",3)(62,"span",4),a(63),r(64,"translate"),o(),n(65,"span",5),a(66),r(67,"find"),r(68,"translateKey"),o()(),n(69,"div",3)(70,"span",4),a(71),r(72,"translate"),o(),n(73,"span",5),a(74),r(75,"find"),r(76,"translateKey"),o()(),n(77,"div",3)(78,"span",4),a(79),r(80,"translate"),o(),n(81,"span",5),a(82),r(83,"find"),r(84,"translateKey"),o()(),n(85,"div",3)(86,"span",4),a(87),r(88,"translate"),o(),n(89,"span",5),a(90),r(91,"find"),r(92,"translateKey"),o()(),n(93,"div",3)(94,"span",4),a(95),r(96,"translate"),o(),n(97,"span",5),a(98),r(99,"find"),r(100,"translateKey"),o()(),n(101,"h3",1),a(102),r(103,"translate"),o(),g(104,"mat-divider",2),C(105,hc,8,13,"div",6)(106,vc,7,8,"div",6)(107,Dc,7,8,"div",6)(108,bc,7,8,"div",6),n(109,"div",3)(110,"span",4),a(111),r(112,"translate"),o(),n(113,"span",5),a(114),r(115,"yesNo"),o()(),C(116,Pc,7,9,"div",6)(117,Mc,8,12,"div",6),n(118,"div",3)(119,"span",4),a(120),r(121,"translate"),o(),n(122,"span",5),a(123),r(124,"yesNo"),o()(),C(125,Tc,6,4,"div",6)(126,Sc,7,6,"div",6),n(127,"h3",1),a(128),r(129,"translate"),o(),g(130,"mat-divider",2),C(131,Ac,6,4,"div",6),n(132,"div",3)(133,"span",4),a(134),r(135,"translate"),o(),n(136,"span",5),a(137),r(138,"dateFormat"),o()(),C(139,Oc,7,6,"div",6)(140,yc,6,4,"div",6),n(141,"div",3)(142,"span",4),a(143),r(144,"translate"),o(),n(145,"span",5),a(146),r(147,"yesNo"),o()(),n(148,"table",7),b(149,8),C(150,Ic,3,3,"th",9)(151,Fc,3,6,"td",10),P(),b(152,11),C(153,wc,3,3,"th",9)(154,Ec,4,6,"td",10),P(),b(155,12),C(156,Bc,3,3,"th",9)(157,kc,3,3,"td",10),P(),b(158,13),C(159,Rc,3,3,"th",9)(160,Nc,2,1,"td",10),P(),b(161,14),C(162,Vc,3,3,"th",9)(163,Hc,4,2,"td",10),P(),b(164,15),C(165,ns,7,6,"td",10),P(),C(166,os,1,0,"tr",16)(167,as,1,0,"tr",17)(168,rs,1,0,"tr",18),o(),C(169,Ms,26,6,"div",19),o(),n(170,"div",20)(171,"button",21),g(172,"fa-icon",22),a(173),r(174,"translate"),o(),n(175,"button",23),a(176),r(177,"translate"),o(),n(178,"button",24),M("click",function(){return p.submitEvent.emit()}),a(179),r(180,"translate"),o()()),l&2&&(i(2),m(c(3,59,"labels.heading.Details")),i(5),m(c(8,61,"labels.inputs.Product")),i(3),m(at(11,63,p.fixedDepositAccountData.productId,p.fixedDepositsAccountTemplate.productOptions,"id","name")),i(4),m(c(15,68,"labels.inputs.Submitted On")),i(3),m(c(18,70,p.fixedDepositAccountData.submittedOnDate)),i(2),d("ngIf",p.fixedDepositAccountData.externalId),i(3),m(c(23,72,"labels.inputs.Field Officer")),i(3),m(E(27,79,at(26,74,p.fixedDepositAccountData.fieldOfficerId,p.fixedDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")||"Unassigned","inputs")),i(4),m(c(30,82,"labels.heading.Currency")),i(5),m(c(35,84,"labels.inputs.Currency")),i(3),m(p.fixedDepositsAccountProductTemplate.currency.code),i(3),m(c(41,86,"labels.inputs.Currency Multiple")),i(3),m(p.fixedDepositsAccountProductTemplate.currency.inMultiplesOf),i(3),m(c(47,88,"labels.inputs.Decimal Places")),i(3),m(p.fixedDepositsAccountProductTemplate.currency.decimalPlaces),i(2),m(c(52,90,"labels.heading.Terms")),i(5),u("",c(57,92,"labels.inputs.Fixed Deposit Amount"),":"),i(3),m(at(60,94,p.fixedDepositAccountData.depositAmount,p.fixedDepositsAccountProductTemplate.currency.code,"symbol-narrow","1.2-2")),i(4),u("",c(64,99,"labels.inputs.Deposit Period"),":"),i(3),T("",p.fixedDepositAccountData.depositPeriod," ",E(68,106,at(67,101,p.fixedDepositAccountData.depositPeriodFrequencyId,p.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value"),"catalogs")),i(5),u("",c(72,109,"labels.inputs.Interest Compounding Period"),":"),i(3),m(E(76,116,at(75,111,p.fixedDepositAccountData.interestCompoundingPeriodType,p.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value"),"catalogs")),i(5),u("",c(80,119,"labels.inputs.Interest Posting Period"),":"),i(3),m(E(84,126,at(83,121,p.fixedDepositAccountData.interestPostingPeriodType,p.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value"),"catalogs")),i(5),u("",c(88,129,"labels.inputs.Interest Calculated using"),":"),i(3),m(E(92,136,at(91,131,p.fixedDepositAccountData.interestCalculationType,p.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value"),"catalogs")),i(5),u("",c(96,139,"labels.inputs.Days in Year"),":"),i(3),m(E(100,146,at(99,141,p.fixedDepositAccountData.interestCalculationDaysInYearType,p.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value"),"catalogs")),i(4),m(c(103,149,"labels.heading.Settings")),i(3),d("ngIf",p.fixedDepositAccountData.lockinPeriodFrequency),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.minDepositTerm),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.maxDepositTerm),i(3),u("",c(112,151,"labels.inputs.Transfer Interest to Savings Account"),"?"),i(3),m(c(115,153,p.fixedDepositAccountData.transferInterestToSavings)),i(2),d("ngIf",p.fixedDepositAccountData.transferInterestToSavings),i(),d("ngIf",p.fixedDepositAccountData.maturityInstructionId),i(3),u("",c(121,155,"labels.inputs.Apply Penal Interest (less)"),":"),i(3),m(c(124,157,p.fixedDepositsAccountProductTemplate.preClosurePenalApplicable)),i(2),d("ngIf",p.fixedDepositsAccountProductTemplate.preClosurePenalApplicable),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.withHoldTax),i(2),m(c(129,159,"labels.heading.Interest Rate Chart")),i(3),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.name),i(3),u("",c(135,161,"labels.inputs.Valid from Date"),":"),i(3),m(c(138,163,p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.fromDate)),i(2),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.endDate),i(),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.description),i(3),u("",c(144,165,"labels.inputs.Primary Grouping by Amount"),":"),i(3),m(c(147,167,p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),i(2),d("dataSource",p.interestRateChartData),i(18),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),i(),d("ngIf",p.fixedDepositAccountData.charges.length),i(4),u(" ",c(174,169,"labels.buttons.Previous")," "),i(2),d("routerLink",R(175,xc)),i(),u(" ",c(177,171,"labels.buttons.Cancel")," "),i(3),u(" ",c(180,173,"labels.buttons.Submit")," "))},dependencies:[y,Ae,Oe,I,tt,Y,B,Re,wt,kt,Bt,Rt,Et,Nt,ut,Vt,zt,qt,Ht,Wt,ye,se,yt,w,It,Xi,ue,tn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Ie("expandChartSlab",[ae("collapsed",oe({height:"0px",minHeight:"0"})),ae("expanded",oe({height:"*"})),we("expanded <=> collapsed",Fe("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();function Ts(t,s){t&1&&g(0,"fa-icon",14)}function Ss(t,s){t&1&&g(0,"fa-icon",14)}function As(t,s){t&1&&g(0,"fa-icon",15)}function Os(t,s){t&1&&g(0,"fa-icon",16)}function ys(t,s){t&1&&g(0,"fa-icon",17)}function Is(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function Fs(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function ws(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function Es(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function Bs(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function ks(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Rs(t,s){if(t&1){let e=F();n(0,"mat-step",13),C(1,ks,2,3,"ng-template",9),n(2,"mifosx-fixed-deposit-account-preview-step",18),M("submitEvent",function(){S(e);let p=_();return A(p.submit())}),o()()}if(t&2){let e=_();i(2),d("fixedDepositsAccountTemplate",e.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}var Mi=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.fixedDepositsService=x(j),this.settingsService=x(U),this.route.data.subscribe(e=>{this.fixedDepositsAccountTemplate=e.fixedDepositsAccountTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValid(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid}get fixedDepositAccount(){return H(H(H(H({},this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails),this.fixedDepositAccountTermsStep.fixedDepositAccountTerms),this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings),this.fixedDepositAccountChargesStep.fixedDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,p="dd MMMM",f=X(H({},this.fixedDepositAccount),{clientId:this.fixedDepositsAccountTemplate.clientId,charges:this.fixedDepositAccount.charges.map(D=>({chargeId:D.id,amount:D.amount,dueDate:D.dueDate&&this.dateUtils.formatDate(D.dueDate,l),feeOnMonthDay:D.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(D.feeOnMonthDay),p),feeInterval:D.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,l),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:l,monthDayFormat:p,locale:e});this.fixedDepositsService.createFixedDepositAccount(f).subscribe(D=>{this.router.navigate(["../",D.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-create-fixed-deposit-account"]],viewQuery:function(l,p){if(l&1&&(ht(ge,7),ht(xe,7),ht(Ce,7),ht(_e,7)),l&2){let f;vt(f=Dt())&&(p.fixedDepositsAccountDetailsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountTermsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountSettingsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountChargesStep=f.first)}},decls:24,vars:15,consts:[["fixedDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountProductTemplate","fixedDepositsAccountTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-stepper",2,0),C(3,Ts,1,0,"ng-template",3)(4,Ss,1,0,"ng-template",4)(5,As,1,0,"ng-template",5)(6,Os,1,0,"ng-template",6)(7,ys,1,0,"ng-template",7),n(8,"mat-step",8),C(9,Is,2,3,"ng-template",9),n(10,"mifosx-fixed-deposit-account-details-step",10),M("fixedDepositsAccountProductTemplate",function(q){return S(f),A(p.setTemplate(q))}),o()(),n(11,"mat-step",8),C(12,Fs,2,3,"ng-template",9),g(13,"mifosx-fixed-deposit-account-terms-step",11),o(),n(14,"mat-step",8),C(15,ws,2,3,"ng-template",9),g(16,"mifosx-fixed-deposit-account-settings-step",11),o(),n(17,"mat-step"),C(18,Es,2,3,"ng-template",9),g(19,"mifosx-fixed-deposit-account-interest-rate-chart-step",11),o(),n(20,"mat-step"),C(21,Bs,2,3,"ng-template",9),g(22,"mifosx-fixed-deposit-account-charges-step",12),o(),h(23,Rs,3,3,"mat-step",13),o()()}l&2&&(i(),d("linear",!1),i(7),d("stepControl",p.fixedDepositAccountDetailsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate),i(),d("stepControl",p.fixedDepositAccountTermsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(),d("stepControl",p.fixedDepositAccountSettingsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",p.fixedDepositAccountFormValid),i(),v(p.fixedDepositAccountFormValid?23:-1))},dependencies:[y,I,Ze,Je,ut,Xe,Ye,ge,xe,Ce,Ve,_e,qe,w],encapsulation:2})}}return t})();function Ns(t,s){t&1&&g(0,"fa-icon",14)}function Vs(t,s){t&1&&g(0,"fa-icon",14)}function qs(t,s){t&1&&g(0,"fa-icon",15)}function zs(t,s){t&1&&g(0,"fa-icon",16)}function Hs(t,s){t&1&&g(0,"fa-icon",17)}function $s(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function Ls(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function Gs(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function Us(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function js(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function Ws(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Ks(t,s){if(t&1){let e=F();n(0,"mat-step",13),C(1,Ws,2,3,"ng-template",9),n(2,"mifosx-fixed-deposit-account-preview-step",18),M("submitEvent",function(){S(e);let p=_();return A(p.submit())}),o()()}if(t&2){let e=_();i(2),d("fixedDepositsAccountTemplate",e.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}var Ti=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.fixedDepositsService=x(j),this.settingsService=x(U),this.route.data.subscribe(e=>{this.fixedDepositsAccountAndTemplate=e.fixedDepositsAccountAndTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e,this.currency=this.fixedDepositsAccountAndTemplate.currency}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValidAndNotPristine(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid&&(!this.fixedDepositAccountDetailsForm.pristine||!this.fixedDepositAccountTermsForm.pristine||!this.fixedDepositAccountSettingsForm.pristine||!this.fixedDepositAccountChargesStep.pristine)}get fixedDepositAccount(){return H(H(H(H({},this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails),this.fixedDepositAccountTermsStep.fixedDepositAccountTerms),this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings),this.fixedDepositAccountChargesStep?.fixedDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,p="dd MMMM",f=X(H({},this.fixedDepositAccount),{clientId:this.fixedDepositsAccountAndTemplate.clientId,charges:this.fixedDepositAccount.charges.map(D=>({chargeId:D.id,amount:D.amount,dueDate:D.dueDate&&this.dateUtils.formatDate(D.dueDate,l),feeOnMonthDay:D.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(D.feeOnMonthDay),p),feeInterval:D.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,l),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:l,monthDayFormat:p,locale:e});this.fixedDepositsService.updateFixedDepositAccount(this.fixedDepositsAccountAndTemplate.id,f).subscribe(D=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-fixed-deposit-account"]],viewQuery:function(l,p){if(l&1&&(ht(ge,7),ht(xe,7),ht(Ce,7),ht(_e,7)),l&2){let f;vt(f=Dt())&&(p.fixedDepositsAccountDetailsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountTermsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountSettingsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountChargesStep=f.first)}},decls:24,vars:15,consts:[["fixedDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountProductTemplate","fixedDepositsAccountTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-stepper",2,0),C(3,Ns,1,0,"ng-template",3)(4,Vs,1,0,"ng-template",4)(5,qs,1,0,"ng-template",5)(6,zs,1,0,"ng-template",6)(7,Hs,1,0,"ng-template",7),n(8,"mat-step",8),C(9,$s,2,3,"ng-template",9),n(10,"mifosx-fixed-deposit-account-details-step",10),M("fixedDepositsAccountProductTemplate",function(q){return S(f),A(p.setTemplate(q))}),o()(),n(11,"mat-step",8),C(12,Ls,2,3,"ng-template",9),g(13,"mifosx-fixed-deposit-account-terms-step",11),o(),n(14,"mat-step",8),C(15,Gs,2,3,"ng-template",9),g(16,"mifosx-fixed-deposit-account-settings-step",11),o(),n(17,"mat-step"),C(18,Us,2,3,"ng-template",9),g(19,"mifosx-fixed-deposit-account-interest-rate-chart-step",11),o(),n(20,"mat-step"),C(21,js,2,3,"ng-template",9),g(22,"mifosx-fixed-deposit-account-charges-step",12),o(),h(23,Ks,3,3,"mat-step",13),o()()}l&2&&(i(),d("linear",!1),i(7),d("stepControl",p.fixedDepositAccountDetailsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate),i(),d("stepControl",p.fixedDepositAccountTermsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(),d("stepControl",p.fixedDepositAccountSettingsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",p.fixedDepositAccountFormValidAndNotPristine),i(),v(p.fixedDepositAccountFormValidAndNotPristine?23:-1))},dependencies:[y,I,Ze,Je,ut,Xe,Ye,ge,xe,Ce,Ve,_e,qe,w],encapsulation:2})}}return t})();var Si=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountData(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var wi=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.parent.paramMap.get("fixedDepositAccountId"),p=e.paramMap.get("id");return this.fixedDepositsService.getFixedDepositsAccountTransaction(l,p)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var Ei=(()=>{class t{constructor(){this.savingsService=x($t),this.fixedDepositsService=x(j)}resolve(e){let l=e.paramMap.get("name"),p=e.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId");switch(l){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(p);case"Close":return this.fixedDepositsService.getFixedDepositsAccountClosureTemplate(p);case"Withdrawal":return this.fixedDepositsService.getFixedDepositsAccountTransactionTemplate(p);default:return}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var Bi=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.parent.parent.paramMap.get("clientId");return this.fixedDepositsService.getFixedDepositsAccountTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var ki=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountAndTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();function Qs(t,s){if(t&1&&(n(0,"span"),g(1,"mifosx-external-identifier",4),o()),t&2){let e=_();i(),d("externalId",_t(e.fixedDepositsAccountData.externalId))}}function Ys(t,s){t&1&&(n(0,"span"),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.Not Available")," "))}function Js(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),r(6,"dateFormat"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Closed On")),i(3),m(c(6,4,e.fixedDepositsAccountData.timeline.closedOnDate))}}function Xs(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Tax Group")),i(3),m(e.fixedDepositsAccountData.taxGroup.name)}}function Zs(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Maturity Instructions")),i(3),m(E(6,4,e.fixedDepositsAccountData.onAccountClosure.value,"catalogs"))}}function tl(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,3,"labels.inputs.Pre-cloure Penal")),i(3),T(" ",e.fixedDepositsAccountData.preClosurePenalInterest," % on ",E(6,5,e.fixedDepositsAccountData.preClosurePenalInterestOnType.value,"catalogs")," ")}}function el(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td",5),a(5),r(6,"currency"),o()()),t&2){let e=_(2);i(2),m(c(3,2,"labels.inputs.Total Deposits")),i(3),u(" ",at(6,4,e.fixedDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2")," ")}}function il(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td",5),a(5),r(6,"currency"),o()()),t&2){let e=_(2);i(2),m(c(3,2,"labels.inputs.Total Withdrawals")),i(3),u(" ",at(6,4,e.fixedDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2")," ")}}function nl(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td",5),a(5),r(6,"currency"),o()()),t&2){let e=_(2);i(2),m(c(3,2,"labels.inputs.Total Interest Earned")),i(3),u(" ",at(6,4,e.fixedDepositsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ol(t,s){if(t&1&&(n(0,"div")(1,"h4",2),a(2),r(3,"translate"),o(),n(4,"table")(5,"tbody")(6,"tr")(7,"td"),a(8),r(9,"translate"),o(),n(10,"td",5),a(11),r(12,"currency"),o()(),n(13,"tr")(14,"td"),a(15),r(16,"translate"),o(),n(17,"td",5),a(18),r(19,"currency"),o()(),h(20,el,7,9,"tr"),h(21,il,7,9,"tr"),h(22,nl,7,9,"tr"),o()()()),t&2){let e=_();i(2),m(c(3,8,"labels.heading.Performance History")),i(6),m(c(9,10,"labels.inputs.Principal Amount")),i(3),u(" ",at(12,12,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),i(4),m(c(16,17,"labels.inputs.Maturity Amount")),i(3),u(" ",at(19,19,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")," "),i(2),v(e.fixedDepositsAccountData.summary.totalDeposits?20:-1),i(),v(e.fixedDepositsAccountData.summary.totalWithdrawals?21:-1),i(),v(e.fixedDepositsAccountData.summary.totalInterestEarned>=0?22:-1)}}function al(t,s){if(t&1&&(n(0,"div")(1,"h4",2),a(2),r(3,"translate"),o(),n(4,"table")(5,"tbody")(6,"tr")(7,"td"),a(8),r(9,"translate"),o(),n(10,"td",5),a(11),r(12,"currency"),o()(),n(13,"tr")(14,"td"),a(15),r(16,"translate"),o(),n(17,"td",5),a(18),r(19,"currency"),o()()()()()),t&2){let e=_();i(2),m(c(3,5,"labels.heading.Other Details")),i(6),m(c(9,7,"labels.inputs.Principal Amount")),i(3),u(" ",at(12,9,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),i(4),m(c(16,14,"labels.inputs.Maturity Amount")),i(3),u(" ",at(19,16,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")," ")}}var Ai=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.route.parent.data.subscribe(e=>{this.fixedDepositsAccountData=e.fixedDepositsAccountData,this.currency=this.fixedDepositsAccountData.currency}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-general-tab"]],decls:91,vars:77,consts:[[1,"fixed-deposits-account-tables","layout-row","gap-2percent"],[1,"flex-49","layout-column","gap-4percent"],[1,"table-headers"],[1,"flex-49"],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(l,p){l&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h4",2),a(4),r(5,"translate"),o(),n(6,"table")(7,"tbody")(8,"tr")(9,"td"),a(10),r(11,"translate"),o(),n(12,"td"),h(13,Qs,2,2,"span"),h(14,Ys,3,3,"span"),o()(),n(15,"tr")(16,"td"),a(17),r(18,"translate"),o(),n(19,"td"),a(20),r(21,"dateFormat"),r(22,"translate"),o()(),h(23,Js,7,6,"tr"),n(24,"tr")(25,"td"),a(26),r(27,"translate"),o(),n(28,"td"),a(29),r(30,"translateKey"),o()(),n(31,"tr")(32,"td"),a(33),r(34,"translate"),o(),n(35,"td"),a(36),r(37,"dateFormat"),o()(),n(38,"tr")(39,"td"),a(40),r(41,"translate"),o(),n(42,"td"),a(43),r(44,"translateKey"),o()(),h(45,Xs,6,4,"tr"),h(46,Zs,7,7,"tr"),o()()(),n(47,"div")(48,"h4",2),a(49),r(50,"translate"),o(),n(51,"table")(52,"tbody")(53,"tr")(54,"td"),a(55),r(56,"translate"),o(),n(57,"td"),a(58),o()(),n(59,"tr")(60,"td"),a(61),r(62,"translate"),o(),n(63,"td"),a(64),r(65,"translateKey"),o()(),n(66,"tr")(67,"td"),a(68),r(69,"translate"),o(),n(70,"td"),a(71),r(72,"translateKey"),o()(),n(73,"tr")(74,"td"),a(75),r(76,"translate"),o(),n(77,"td"),a(78),r(79,"translateKey"),o()(),n(80,"tr")(81,"td"),a(82),r(83,"translate"),o(),n(84,"td"),a(85),r(86,"translateKey"),o()(),h(87,tl,7,8,"tr"),o()()()(),n(88,"div",3),h(89,ol,23,24,"div")(90,al,20,21,"div"),o()()),l&2&&(i(4),m(c(5,29,"labels.heading.Fixed Deposit Details")),i(6),m(c(11,31,"labels.inputs.External Id")),i(3),v(p.fixedDepositsAccountData.externalId?13:-1),i(),v(p.fixedDepositsAccountData.externalId?-1:14),i(3),m(c(18,33,"labels.inputs.Activated On")),i(3),u(" ",p.fixedDepositsAccountData.timeline.activatedOnDate?c(21,35,p.fixedDepositsAccountData.timeline.activatedOnDate):c(22,37,"labels.text.Not Activated")," "),i(3),v(p.fixedDepositsAccountData.timeline.closedOnDate?23:-1),i(3),m(c(27,39,"labels.inputs.Field Officer")),i(3),u(" ",p.fixedDepositsAccountData.fieldOfficerName?p.fixedDepositsAccountData.fieldOfficerName:E(30,41,"Unassigned","inputs")," "),i(4),m(c(34,44,"labels.inputs.Maturity Date")),i(3),u(" ",p.fixedDepositsAccountData.maturityDate?c(37,46,p.fixedDepositsAccountData.maturityDate):"N/A"," "),i(4),m(c(41,48,"labels.inputs.Deposit Period")),i(3),T(" ",p.fixedDepositsAccountData.depositPeriod,"\xA0",E(44,50,p.fixedDepositsAccountData.depositPeriodFrequency.value,"catalogs")," "),i(2),v(p.fixedDepositsAccountData.withHoldTax?45:-1),i(),v(p.fixedDepositsAccountData.onAccountClosure?46:-1),i(3),m(c(50,53,"labels.heading.Interest Details")),i(6),m(c(56,55,"labels.inputs.Interest Rate")),i(3),u("",p.fixedDepositsAccountData.nominalAnnualInterestRate," %"),i(3),m(c(62,57,"labels.inputs.Interest Compounding Period")),i(3),m(E(65,59,p.fixedDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),i(4),m(c(69,62,"labels.inputs.Interest Posting Period")),i(3),m(E(72,64,p.fixedDepositsAccountData.interestPostingPeriodType.value,"catalogs")),i(4),m(c(76,67,"labels.inputs.Interest Calculated Using")),i(3),m(E(79,69,p.fixedDepositsAccountData.interestCalculationType.value,"catalogs")),i(4),m(c(83,72,"labels.inputs.No. of Days in Year")),i(3),m(E(86,74,p.fixedDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),i(2),v(p.fixedDepositsAccountData.preClosurePenalApplicable?87:-1),i(2),v(!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval?89:90))},dependencies:[y,I,Ji,se,yt,w,It],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return t})();var rl=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:Mi,resolve:{fixedDepositsAccountTemplate:Bi}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:Si},children:[{path:"",component:ai,resolve:{fixedDepositsAccountData:Si,savingsDatatables:Ii},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Ai,data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:ri,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:pi,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:li,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:mi,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:di,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:yi}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ti,resolve:{fixedDepositsAccountAndTemplate:ki}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>import("./account-transfers.module-WS265DLT.js").then(t=>t.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Pi,resolve:{fixedDepositsAccountTransaction:wi}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:bi,resolve:{fixedDepositsAccountActionData:Ei}}]}]}],ln=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=Le({type:t})}static{this.\u0275inj=He({providers:[Si,yi,Ii,wi,Ei,Bi,ki],imports:[Oi.forChild(rl),Oi]})}}return t})();var Qx=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=Le({type:t})}static{this.\u0275inj=He({imports:[pn,en,nn,ln,ai,pi,li,mi,ri,di,bi,ui,fi,ni,ii,ze,gi,xi,Ci,Pi,ci,si,_i,hi,vi,Mi,ge,xe,_e,Ce,Ve,qe,Ti,Ai,Di]})}}return t})();export{Qx as FixedDepositsModule}; +import{a as sn}from"./chunk-WKS5MOZ4.js";import{a as yi,b as Ii}from"./chunk-E6PLTH6T.js";import{a as cn}from"./chunk-3NGD4RPL.js";import{$d as ke,$f as Zi,Ad as Gi,Bc as Xt,Bd as nt,Bg as rn,Cc as Be,Cd as Ct,Cf as Ki,Da as b,Dc as Ut,Df as Qi,Ea as P,Eb as se,Ec as Zt,Ef as Yi,Fb as y,Fc as te,Fd as Pt,G as Gt,Ga as F,Gc as ee,Gd as ot,H as He,Hc as ie,Hd as Ft,Ia as M,Id as dt,Ja as _,Jd as At,Jg as ei,K as x,Kg as pn,L as S,Ld as Ot,M as A,Mc as w,Na as ht,Nd as me,Oa as vt,Ob as le,Od as Mt,Pa as Dt,Pd as Tt,Qa as k,Qd as St,Qe as Ui,Rb as Ni,Rc as et,Rd as Ue,Sc as U,Sd as yt,T as Jt,Td as It,Ua as a,Ud as de,Uf as Ji,Va as m,Wa as u,Wc as rt,Xa as T,Xc as V,Xd as ut,Ya as ce,Yc as it,Zb as Ie,Zc as pt,Ze as ji,Zf as Xi,_ as Ri,_b as Fe,_d as he,_e as Wi,_f as ue,ac as oe,ad as Z,ag as tn,bb as _t,bc as ae,bf as Ye,bg as en,ca as i,cc as we,cd as ct,cf as Je,da as $e,dd as jt,de as Re,df as Xe,eb as R,ed as zi,ef as Ze,fb as Ge,fd as st,ff as ne,fg as $t,ge as je,gf as Wt,hb as r,hc as N,he as We,hf as wt,ib as c,ic as Vi,id as lt,ie as Ke,if as Et,ja as O,jb as E,jf as Bt,ka as Le,kc as W,lb as at,lc as tt,ld as gt,lf as kt,mc as qi,mf as Rt,na as C,nc as Oi,ne as Qe,of as Nt,pa as Te,pd as mt,pf as Vt,pg as nn,qb as Se,qc as Ee,qg as ti,ra as h,rc as B,rd as I,rf as qt,rg as Ne,sa as v,sb as Ae,sd as Y,sf as zt,ta as $,tb as Oe,td as Hi,ua as L,ud as $i,uf as Ht,ug as on,va as G,vd as xt,wa as d,xa as n,xd as bt,xf as ve,ya as o,yd as Li,za as g,zb as ye,zg as an}from"./chunk-BJA4FJSH.js";import{a as H,b as X}from"./chunk-PHUH23IY.js";var mn=()=>({confirm:!0}),ii=(()=>{class t{constructor(){this.dialogRef=x(Xt)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-calculate-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,5,"labels.heading.Calculate Interest")),i(4),u("",c(6,7,"labels.text.Are you sure you want to calculate interest")," ?"),i(4),m(c(10,9,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(13,mn)),i(),u(" ",c(13,11,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var dn=()=>({confirm:!0}),ni=(()=>{class t{constructor(){this.dialogRef=x(Xt)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-post-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,5,"labels.heading.Post Interest")),i(4),u("",c(6,7,"labels.text.Are you sure you want to post interest")," ?"),i(4),m(c(10,9,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(13,dn)),i(),u(" ",c(13,11,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var un=()=>({confirm:!0}),ze=(()=>{class t{constructor(){this.dialogRef=x(Xt),this.data=x(Be)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:17,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),r(3,"translate"),o(),n(4,"div",1)(5,"p"),a(6),r(7,"translate"),r(8,"translate"),r(9,"translate"),o()(),n(10,"mat-dialog-actions",2)(11,"button",3),a(12),r(13,"translate"),o(),n(14,"button",4),a(15),r(16,"translate"),o()()),l&2&&(i(),T(" ",c(2,10,p.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",c(3,12,"labels.heading.Withhold Tax"),` +`),i(5),ce(" ",c(7,14,"labels.text.Are you sure you want to")," ",c(8,16,p.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",c(9,18,"labels.text.withhold tax for this account")," ? "),i(6),m(c(13,20,"labels.buttons.Cancel")),i(2),d("color",_t(p.data.isEnable?"accent":"warn"))("mat-dialog-close",R(24,un)),i(),u(" ",c(16,22,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var oi=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Premature Close",icon:"fa fa-arrow-left"},{name:"Calculate Interest",icon:"fa fa-table"},{name:"Undo Activation",icon:"fa fa-undo"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right"},{name:"Calculate Interest",icon:"fa fa-table"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-pencil "},{name:"Approve",icon:"fa fa-check"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo"},{name:"Activate",icon:"fa fa-check"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":case"Matured":this.optionArray=[{name:"Post Interest"},{name:"Add Charge"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject"},{name:"Withdrawn by Client"},{name:"Add Charge"},{name:"Delete"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}};var j=(()=>{class t{constructor(){this.http=x(Ni)}getFixedDepositsAccountData(e){let l=new le().set("associations","all");return this.http.get(`/fixeddepositaccounts/${e}`,{params:l})}deleteFixedDepositsAccount(e){return this.http.delete(`/fixeddepositaccounts/${e}`)}executeFixedDepositsAccountCommand(e,l,p){let f=new le().set("command",l);return this.http.post(`/fixeddepositaccounts/${e}`,p,{params:f})}getFixedDepositsAccountTransaction(e,l){return this.http.get(`/fixeddepositaccounts/${e}/transactions/${l}`)}executeFixedDepositsAccountTransactionsCommand(e,l,p,f){let D=new le().set("command",l);return this.http.post(`/fixeddepositaccounts/${e}/transactions/${f}`,p,{params:D})}getFixedDepositsAccountClosureTemplate(e){let l=new le().set("command","close");return this.http.get(`/fixeddepositaccounts/${e}/template`,{params:l})}getFixedDepositsAccountTransactionTemplate(e){return this.http.get(`/fixeddepositaccounts/${e}/transactions/template`)}getFixedDepositsAccountTemplate(e,l){let p=new le().set("clientId",e);return p=l?p.set("productId",l):p,this.http.get("/fixeddepositaccounts/template",{params:p})}getFixedDepositsAccountAndTemplate(e){let l=new le().set("associations","charges,+linkedAccount").set("template","true");return this.http.get(`/fixeddepositaccounts/${e}`,{params:l})}createFixedDepositAccount(e){return this.http.post("/fixeddepositaccounts",e)}updateFixedDepositAccount(e,l){return this.http.put(`/fixeddepositaccounts/${e}`,l)}getStandingInstructions(e,l,p,f,D){let q=new le().set("clientId",e).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",f).set("dateFormat",D);return this.http.get("/standinginstructions",{params:q})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var fn=()=>["./general"],gn=()=>["./interest-rate-chart"],xn=()=>["./charges"],Cn=()=>["./transactions"],_n=()=>["./standing-instructions"],hn=t=>["./datatables",t];function vn(t,s){if(t&1&&(n(0,"span",21),g(1,"mifosx-account-number",18),o()),t&2){let e=_();i(),d("accountNo",_t(e.fixedDepositsAccountData.clientAccountNo))}}function Dn(t,s){if(t&1&&(n(0,"div",22)(1,"h3",31),a(2),r(3,"translate"),o(),n(4,"table",32)(5,"tbody")(6,"tr")(7,"td",33),a(8),r(9,"translate"),o(),n(10,"td",34),a(11),r(12,"currency"),o()(),n(13,"tr")(14,"td",33),a(15),r(16,"translate"),o(),n(17,"td",34),a(18),r(19,"currency"),o()()()()()),t&2){let e=_();i(2),m(c(3,5,"labels.heading.Account Overview")),i(6),m(c(9,7,"labels.inputs.Current Balance")),i(3),u(" ",at(12,9,e.fixedDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),i(4),m(c(16,14,"labels.inputs.Deposit Amount")),i(3),u(" ",at(19,16,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function bn(t,s){if(t&1){let e=F();n(0,"button",35),M("click",function(){let p=S(e).$implicit,f=_();return A(f.doAction(p.name))}),g(1,"i",36),a(2),r(3,"translateKey"),o()}if(t&2){let e=s.$implicit;i(),d("ngClass",_t(e.icon)),i(),u(" ",E(3,3,e.name,"menus")," ")}}function Pn(t,s){if(t&1){let e=F();n(0,"span")(1,"button",35),M("click",function(){let p=S(e).$implicit,f=_(2);return A(f.doAction(p.name))}),a(2),r(3,"translateKey"),o()()}if(t&2){let e=s.$implicit;i(2),m(E(3,1,e.name,"menus"))}}function Mn(t,s){if(t&1&&(n(0,"button",37),a(1),r(2,"translateKey"),o(),n(3,"mat-menu",null,5),L(5,Pn,4,4,"span",null,$),o()),t&2){let e=k(4),l=_();d("matMenuTriggerFor",e),i(),m(E(2,2,"More","menus")),i(4),G(l.buttonConfig.options)}}function Tn(t,s){if(t&1&&(n(0,"span")(1,"a",30,6),a(3),r(4,"translate"),o()()),t&2){let e=k(2);i(),d("routerLink",R(5,Cn))("active",e.isActive),i(2),u(" ",c(4,3,"labels.inputs.Transactions")," ")}}function Sn(t,s){if(t&1&&(n(0,"a",30,7),a(2),r(3,"translate"),o()),t&2){let e=k(1);d("routerLink",R(5,_n))("active",e.isActive),i(2),u(" ",c(3,3,"labels.inputs.Standing Instructions")," ")}}function An(t,s){if(t&1&&(n(0,"a",30,8),a(2),o()),t&2){let e=k(1),l=_().$implicit;d("routerLink",Ge(3,hn,l.registeredTableName))("active",e.isActive),i(2),u(" ",l.registeredTableName," ")}}function On(t,s){if(t&1&&C(0,An,3,5,"a",38),t&2){let e=s.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}var ai=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.fixedDepositsService=x(j),this.savingsService=x($t),this.dialog=x(Ut),this.showTransactions=!1,this.route.data.subscribe(e=>{this.fixedDepositsAccountData=e.fixedDepositsAccountData,this.savingsDatatables=e.savingsDatatables,this.currency=this.fixedDepositsAccountData.currency;let l=e.fixedDepositsAccountData.status;this.showTransactions=l.id>=300}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){let e=this.fixedDepositsAccountData.status.value;this.buttonConfig=new oi(e),this.fixedDepositsAccountData.taxGroup&&e==="Active"&&(this.fixedDepositsAccountData.withHoldTax?this.buttonConfig.addOption({name:"Disable Withhold Tax"}):this.buttonConfig.addOption({name:"Enable Withhold Tax"}))}reload(){let e=this.fixedDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}doAction(e){switch(e){case"Approve":case"Reject":case"Activate":case"Close":case"Undo Approval":case"Undo Activation":case"Add Charge":case"Withdrawn by Client":case"Premature Close":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteFixedDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break}}deleteFixedDepositsAccount(){this.dialog.open(ke,{data:{deleteContext:`fixed deposit account with id: ${this.fixedDepositsAccountData.id}`}}).afterClosed().subscribe(l=>{l.delete&&this.fixedDepositsService.deleteFixedDepositsAccount(this.fixedDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(ii).afterClosed().subscribe(l=>{l.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(ni).afterClosed().subscribe(l=>{l.confirm&&this.fixedDepositsService.executeFixedDepositsAccountCommand(this.fixedDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(ze,{data:{isEnable:!0}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(ze,{data:{isEnable:!1}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.fixedDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-view"]],decls:54,vars:44,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],["tabPanel",""],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],[1,"m-r-10"],[1,"m-l-10"],[1,"flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Fixed Deposit account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],[1,"flex-100"],[1,"account-overview","flex-100"],[1,"flex-70"],[1,"r-amount","flex-30"],["mat-menu-item","",3,"click"],[3,"ngClass"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(l,p){if(l&1&&(n(0,"mat-card",9)(1,"mat-card-header",10)(2,"mat-card-title-group",11)(3,"div",12)(4,"div"),g(5,"img",13),r(6,"translate"),o()(),n(7,"div",14)(8,"mat-card-title")(9,"div",15)(10,"div",16)(11,"h3"),g(12,"i",17),r(13,"statusLookup"),a(14),r(15,"translate"),g(16,"mifosx-account-number",18),o(),n(17,"span",19)(18,"span",20),a(19),r(20,"translate"),o(),a(21),h(22,vn,2,2,"span",21),o()(),h(23,Dn,20,21,"div",22),n(24,"div",23)(25,"button",24)(26,"mat-icon",25),g(27,"fa-icon",26),o()()()()()(),n(28,"mat-menu",null,0),L(30,bn,4,6,"button",27,$),h(32,Mn,7,5),o()()(),n(33,"mat-card-content",28)(34,"nav",29)(35,"a",30,1),a(37),r(38,"translate"),o(),n(39,"a",30,2),a(41),r(42,"translate"),o(),h(43,Tn,5,6,"span"),n(44,"a",30,3),a(46),r(47,"translate"),o(),h(48,Sn,4,6,"a",30),L(49,On,1,1,"a",30,$),o(),n(51,"mat-tab-nav-panel",null,4),g(53,"router-outlet"),o()()()),l&2){let f=k(29),D=k(36),q=k(40),re=k(45),pe=k(52);i(5),d("matTooltip",_t(c(6,27,"tooltips.Fixed Deposits Account")))("src","assets/images/fd_account_placeholder.png",Ri),i(7),d("ngClass",c(13,29,p.fixedDepositsAccountData.status.code))("matTooltip",p.fixedDepositsAccountData.status.value),i(2),T(" ",c(15,31,"labels.inputs.Fixed Deposit Product")," : ",p.fixedDepositsAccountData.depositProductName," "),i(2),d("accountNo",_t(p.fixedDepositsAccountData.accountNo)),i(3),u("",c(20,33,"labels.text."+p.entityType)," :"),i(2),u(" ",p.fixedDepositsAccountData.clientName||p.fixedDepositsAccountData.groupName," "),i(),v(p.fixedDepositsAccountData.clientAccountNo?22:-1),i(),v(!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval?23:-1),i(2),d("matMenuTriggerFor",f),i(5),G(p.buttonConfig.singleButtons),i(2),v(p.buttonConfig.options.length?32:-1),i(2),d("tabPanel",pe),i(),d("routerLink",R(41,fn))("active",D.isActive),i(2),u(" ",c(38,35,"labels.inputs.General")," "),i(2),d("routerLink",R(42,gn))("active",q.isActive),i(2),u(" ",c(42,37,"labels.inputs.Interest Rate Chart")," "),i(2),v(p.showTransactions?43:-1),i(),d("routerLink",R(43,xn))("active",re.isActive),i(2),u(" ",c(47,39,"labels.inputs.Charges")," "),i(2),v(p.fixedDepositsAccountData.clientId?48:-1),i(),G(p.savingsDatatables)}},dependencies:[y,Se,I,tt,Y,xt,de,Li,$i,Gi,me,Hi,an,Ee,Ke,Qe,ut,We,je,Ki,Qi,qi,Yi,Vi,se,w,It,Zi],encapsulation:2})}}return t})();function yn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Period")))}function In(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),ce(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",E(2,3,e.periodType.value,"catalogs")," ")}}function Fn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount Range")))}function wn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"formatNumber"),r(3,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function En(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Bn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u("",c(2,1,e.annualInterestRate)," %")}}function kn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Description")))}function Rn(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),m(e.description)}}function Nn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function Vn(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",21),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function qn(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",22),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function zn(t,s){if(t&1){let e=F();n(0,"td",18)(1,"button",19),M("click",function(){let p=S(e).dataIndex,f=_();return A(f.expandChartSlabIndex=f.expandChartSlabIndex===p?null:p)}),C(2,Vn,4,3,"span",20)(3,qn,4,3,"span",20),o()()}if(t&2){let e=s.dataIndex,l=_();i(2),d("ngIf",l.expandChartSlabIndex!==e),i(),d("ngIf",l.expandChartSlabIndex===e)}}function Hn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Entity Type")))}function $n(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.entityType.value," ")}}function Ln(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Name")))}function Gn(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.attributeName.value," ")}}function Un(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Condition Type")))}function jn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"titlecase"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.conditionType.value)," ")}}function Wn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Value")))}function Kn(t,s){if(t&1&&(n(0,"td",35),a(1),o()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),i(),u(" ",e.attributeValueDesc," ")}}function Qn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Incentive Type")))}function Yn(t,s){if(t&1&&(n(0,"td",18),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.incentiveType.value," ")}}function Jn(t,s){t&1&&(n(0,"th",17),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Xn(t,s){if(t&1&&(n(0,"td",18),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.amount)," ")}}function Zn(t,s){t&1&&g(0,"tr",36)}function to(t,s){t&1&&g(0,"tr",37)}function eo(t,s){if(t&1&&(n(0,"table",27),b(1,28),C(2,Hn,3,3,"th",7)(3,$n,2,1,"td",8),P(),b(4,29),C(5,Ln,3,3,"th",7)(6,Gn,2,1,"td",8),P(),b(7,30),C(8,Un,3,3,"th",7)(9,jn,3,3,"td",8),P(),b(10,31),C(11,Wn,3,3,"th",7)(12,Kn,2,2,"td",32),P(),b(13,33),C(14,Qn,3,3,"th",7)(15,Yn,2,1,"td",8),P(),b(16,34),C(17,Jn,3,3,"th",7)(18,Xn,3,3,"td",8),P(),C(19,Zn,1,0,"tr",14)(20,to,1,0,"tr",15),o()),t&2){let e=_().$implicit,l=_();d("dataSource",e.incentives),i(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),i(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function io(t,s){if(t&1&&(n(0,"td",18)(1,"div",23)(2,"mat-card",24)(3,"h4",25),a(4),r(5,"translate"),o(),C(6,eo,21,3,"table",26),o()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=_();Te("colspan",p.chartSlabsDisplayedColumns.length),i(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),i(3),u(" ",c(5,4,"labels.heading.Incentives")," "),i(2),d("ngIf",e.incentives==null?null:e.incentives.length)}}function no(t,s){t&1&&g(0,"tr",36)}function oo(t,s){t&1&&g(0,"tr",37)}function ao(t,s){t&1&&g(0,"tr",38)}var ri=(()=>{class t{constructor(){this.route=x(N),this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(e=>{this.interestRateChartData=e.fixedDepositsAccountData.accountChart.chartSlabs})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-interest-rate-chart-tab"]],decls:29,vars:7,consts:[["chartsTable",""],[1,"tab-container","mat-typography"],[1,"align-start-center"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-fill","incentives"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","flex-fill mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),a(4),r(5,"translate"),o()()(),n(6,"div",4)(7,"table",5,0),b(9,6),C(10,yn,3,3,"th",7)(11,In,3,6,"td",8),P(),b(12,9),C(13,Fn,3,3,"th",7)(14,wn,4,6,"td",8),P(),b(15,10),C(16,En,3,3,"th",7)(17,Bn,3,3,"td",8),P(),b(18,11),C(19,kn,3,3,"th",7)(20,Rn,2,1,"td",8),P(),b(21,12),C(22,Nn,3,3,"th",7)(23,zn,4,2,"td",8),P(),b(24,13),C(25,io,7,6,"td",8),P(),C(26,no,1,0,"tr",14)(27,oo,1,0,"tr",15)(28,ao,1,0,"tr",16),o()()()),l&2&&(i(4),m(c(5,5,"labels.heading.All Interest Rates")),i(3),d("dataSource",p.interestRateChartData),i(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns))},dependencies:[y,Ae,Oe,I,Y,B,wt,kt,Bt,Rt,Et,Nt,ut,Vt,zt,qt,Ht,ye,w,It,ue],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Ie("expandChartSlab",[ae("collapsed",oe({height:"0px",minHeight:"0"})),ae("expanded",oe({height:"*"})),we("expanded <=> collapsed",Fe("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var po=t=>["/","journal-entry","view",t];function co(t,s){if(t&1){let e=F();n(0,"div",5)(1,"mat-checkbox",21),M("click",function(){S(e);let p=_();return A(p.hideReversed())}),a(2),r(3,"translate"),o(),n(4,"mat-checkbox",21),M("click",function(){S(e);let p=_();return A(p.hideAccruals())}),a(5),r(6,"translate"),o()()}if(t&2){let e=_();i(),d("formControl",e.hideReversedParam),i(),u(" ",c(3,4,"labels.inputs.Hide Reversed")),i(2),d("formControl",e.hideAccrualsParam),i(),u(" ",c(6,6,"labels.inputs.Hide Accruals"))}}function so(t,s){t&1&&(n(0,"th",22),a(1,"#"),o())}function lo(t,s){if(t&1){let e=F();n(0,"td",23),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),o()}if(t&2){let e=s.index;i(),u(" ",e+1," ")}}function mo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.ID")))}function uo(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",e.id," ")}}function fo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Transaction Date")))}function go(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"dateFormat"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",c(2,2,e.date)," ")}}function xo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Transaction Type")))}function Co(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"translateKey"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",E(2,2,e.transactionType.value,"catalogs")," ")}}function _o(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Debit")))}function ho(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"formatNumber"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",l.isDebit(e.transactionType)?c(2,2,e.amount):"N/A"," ")}}function vo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Credit")))}function Do(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"formatNumber"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",l.isDebit(e.transactionType)?"N/A":c(2,2,e.amount)," ")}}function bo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Balance")))}function Po(t,s){if(t&1){let e=F();n(0,"td",24),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),a(1),r(2,"formatNumber"),o()}if(t&2){let e=s.$implicit,l=_();d("ngClass",l.savingsTransactionColor(e)),i(),u(" ",c(2,2,e.runningBalance)," ")}}function Mo(t,s){t&1&&(n(0,"th",22),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function To(t,s){if(t&1){let e=F();n(0,"td",25)(1,"button",26)(2,"mat-icon"),a(3,"more_vert"),o()(),n(4,"mat-menu",null,0)(6,"button",27),M("click",function(){let p=S(e).$implicit,f=_();return A(f.showTransactions(p))}),n(7,"mat-icon"),g(8,"fa-icon",28),o(),n(9,"span"),a(10),r(11,"translate"),o()(),n(12,"button",29),M("click",function(p){S(e);let f=_();return A(f.routeEdit(p))}),n(13,"mat-icon"),g(14,"fa-icon",30),o(),n(15,"span"),a(16),r(17,"translate"),o()()()()}if(t&2){let e=s.$implicit,l=k(5);i(),d("matMenuTriggerFor",l),i(9),m(c(11,4,"labels.text.View Transaction")),i(2),d("routerLink",Ge(8,po,"S"+e.id)),i(4),m(c(17,6,"tooltips.View Journal Entries"))}}function So(t,s){t&1&&g(0,"tr",31)}function Ao(t,s){t&1&&g(0,"tr",32)}var pi=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.dialog=x(Ut),this.displayedColumns=["row","id","transactionDate","transactionType","debit","credit","balance","actions"],this.route.parent.data.subscribe(e=>{this.transactionsData=e.fixedDepositsAccountData.transactions,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId,this.status=e.fixedDepositsAccountData.status.value})}ngOnInit(){this.hideAccrualsParam=new Z(!1),this.hideReversedParam=new Z(!1),this.dataSource=new ve(this.transactionsData)}checkStatus(){return this.status==="Active"||this.status==="Closed"||this.status==="Transfer in progress"||this.status==="Transfer on hold"||this.status==="Premature Closed"||this.status==="Matured"}isDebit(e){return e.withdrawal===!0||e.feeDeduction===!0||e.overdraftInterest===!0||e.withholdTax===!0}showTransactions(e){e.transfer?this.router.navigate([`account-transfers/account-transfers/${e.transfer.id}`],{relativeTo:this.route}):this.router.navigate([e.id],{relativeTo:this.route})}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,!this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(!this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,l){let p=this.transactionsData;(l||e)&&(p=this.transactionsData.filter(f=>!(e&&f.reversed)&&!(l&&f.transactionType.accrual))),this.dataSource=new ve(p),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}routeEdit(e){e.stopPropagation()}undoTransaction(e){}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(l,p){if(l&1&&(ht(Ui,7),ht(Wi,7)),l&2){let f;vt(f=Dt())&&(p.paginator=f.first),vt(f=Dt())&&(p.sort=f.first)}},decls:35,vars:7,consts:[["transactionMenu","matMenu"],[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25"],[1,"layout-row","align-start"],[1,"m-b-20"],[1,"action-button","m-b-20","layout-row","gap-20px"],["mat-table","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],[1,"accruals",3,"click","formControl"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-cell","",3,"click","ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",3,"click","routerLink"],["icon","table-cells","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h3"),a(5),r(6,"translate"),o()(),h(7,co,7,8,"div",5),o(),n(8,"table",6),b(9,7),C(10,so,2,0,"th",8)(11,lo,2,1,"td",9),P(),b(12,10),C(13,mo,3,3,"th",8)(14,uo,2,2,"td",11),P(),b(15,12),C(16,fo,3,3,"th",8)(17,go,3,4,"td",11),P(),b(18,13),C(19,xo,3,3,"th",8)(20,Co,3,5,"td",11),P(),b(21,14),C(22,_o,3,3,"th",8)(23,ho,3,4,"td",11),P(),b(24,15),C(25,vo,3,3,"th",8)(26,Do,3,4,"td",11),P(),b(27,16),C(28,bo,3,3,"th",8)(29,Po,3,4,"td",11),P(),b(30,17),C(31,Mo,3,3,"th",8)(32,To,18,10,"td",18),P(),C(33,So,1,0,"tr",19)(34,Ao,1,0,"tr",20),o()()()),l&2&&(i(5),m(c(6,5,"labels.heading.All Transactions")),i(2),v(p.checkStatus()?7:-1),i(),d("dataSource",p.dataSource),i(25),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns))},dependencies:[y,Se,I,it,zi,tt,Ue,wt,kt,Bt,Rt,Et,Nt,Ee,Ke,Qe,We,je,ut,Vt,zt,qt,Ht,yt,w,It,ue],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;color:#000}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .linked[_ngcontent-%COMP%]{color:#4461e2}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .accrual[_ngcontent-%COMP%]{color:#999}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:800}"]})}}return t})();var Oo=()=>({confirm:!0}),ci=(()=>{class t{constructor(){this.dialogRef=x(Xt),this.data=x(Be)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-waive-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,6,"labels.heading.Waive Charge")),i(4),T("",c(6,8,"labels.text.Are you sure you want to waive charge with id"),": ",p.data.id," ?"),i(4),m(c(10,10,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(14,Oo)),i(),u(" ",c(13,12,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var yo=()=>({confirm:!0}),si=(()=>{class t{constructor(){this.dialogRef=x(Xt),this.data=x(Be)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-inactivate-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(l,p){l&1&&(n(0,"h1",0),a(1),r(2,"translate"),o(),n(3,"div",1)(4,"p"),a(5),r(6,"translate"),o()(),n(7,"mat-dialog-actions",2)(8,"button",3),a(9),r(10,"translate"),o(),n(11,"button",4),a(12),r(13,"translate"),o()()),l&2&&(i(),m(c(2,6,"labels.heading.Inactivate Charge")),i(4),T("",c(6,8,"labels.text.Are you sure you want to inactivate charge with id"),": ",p.data.id," ?"),i(4),m(c(10,10,"labels.buttons.Cancel")),i(2),d("mat-dialog-close",R(14,yo)),i(),u(" ",c(13,12,"labels.buttons.Confirm")," "))},dependencies:[y,I,B,te,ee,ie,Zt,w],encapsulation:2})}}return t})();var Io=["chargesTable"],Fo=()=>[2e3];function wo(t,s){if(t&1){let e=F();n(0,"div",4)(1,"button",22),M("click",function(){S(e);let p=_();return A(p.toggleCharges())}),a(2),o()()}if(t&2){let e=_();i(2),u(" ",e.showInactiveCharges?"View Active Charges":"View Inactive Charges"," ")}}function Eo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.name")))}function Bo(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),m(e.name)}}function ko(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Fee/Penalty")))}function Ro(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"translateKey"),r(3,"translateKey"),o()),t&2){let e=s.$implicit;i(),u(" ",e.penalty===!0?E(2,1,"Penalty","catalogs"):E(3,4,"Fee","catalogs")," ")}}function No(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Payment Due At")))}function Vo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),m(E(2,1,e.chargeTimeType.value,"catalogs"))}}function qo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Due As Of")))}function zo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"dateFormat"),o()),t&2){let e=s.$implicit;i(),m(c(2,1,e.dueDate))}}function Ho(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Repeats On")))}function $o(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"dateFormat"),r(3,"translateKey"),o()),t&2){let e=s.$implicit;i(),u(" ",e.feeOnMonthDay?E(2,1,R(7,Fo).concat(e.feeOnMonthDay),"dd MMMM"):E(3,4,"Unassigned","inputs")," ")}}function Lo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Calculation Type")))}function Go(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),m(E(2,1,e.chargeCalculationType.value,"catalogs"))}}function Uo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Due")))}function jo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amount)," ")}}function Wo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Paid")))}function Ko(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amountPaid)," ")}}function Qo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Waived")))}function Yo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amountWaived)," ")}}function Jo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Outstanding")))}function Xo(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",e.currency.displaySymbol,"\xA0",c(2,2,e.amountOutstanding)," ")}}function Zo(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function ta(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.editCharge(f))}),g(2,"i",28),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Edit Charge")))}function ea(t,s){if(t&1){let e=F();n(0,"button",29),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.deleteCharge(f.id))}),g(2,"i",30),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Delete Charge")))}function ia(t,s){t&1&&(n(0,"span"),C(1,ta,3,4,"button",25)(2,ea,3,4,"button",26),o()),t&2&&(i(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),i(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function na(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.payCharge(f.id))}),g(2,"i",32),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Pay Charge")))}function oa(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(2).$implicit,D=_();return D.routeEdit(p),A(D.waiveCharge(f.id))}),g(2,"i",33),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Waive Charge")))}function aa(t,s){if(t&1){let e=F();n(0,"button",27),r(1,"translate"),M("click",function(p){S(e);let f=_(3).$implicit,D=_();return D.routeEdit(p),A(D.inactivateCharge(f.id))}),g(2,"i",34),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Inactivate Charge")))}function ra(t,s){t&1&&C(0,aa,3,4,"button",25),t&2&&d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE")}function pa(t,s){if(t&1&&(n(0,"span"),C(1,na,3,4,"button",25)(2,oa,3,4,"button",25),h(3,ra,1,1,"button",31),o()),t&2){let e=_().$implicit,l=_();i(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),i(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),i(),v(l.isRecurringCharge(e)?3:-1)}}function ca(t,s){if(t&1&&(n(0,"td",24),h(1,ia,3,2,"span"),h(2,pa,4,3,"span"),o()),t&2){let e=s.$implicit,l=_();i(),v(l.fixedDepositsAccountData.status.value==="Submitted and pending approval"?1:-1),i(),v(l.fixedDepositsAccountData.status.value==="Active"&&e.amountOutstanding!==0?2:-1)}}function sa(t,s){t&1&&g(0,"tr",35)}function la(t,s){t&1&&g(0,"tr",36)}var li=(()=>{class t{constructor(){this.savingsService=x($t),this.route=x(N),this.dateUtils=x(et),this.router=x(W),this.dialog=x(Ut),this.settingsService=x(U),this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(e=>{this.fixedDepositsAccountData=e.fixedDepositsAccountData,this.chargesData=this.fixedDepositsAccountData.charges})}ngOnInit(){let e=this.chargesData?this.chargesData.filter(l=>l.isActive):[];this.dataSource=new ve(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){let e=this.chargesData.filter(l=>!l.isActive);this.dataSource.data=e}else{let e=this.chargesData.filter(l=>l.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){let l=[new Ne({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new ti({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],p={title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=this.settingsService.language.code,re=this.settingsService.dateFormat,pe=X(H({},D.data.value),{dueDate:this.dateUtils.formatDate(D.data.value.dueDate,re),dateFormat:re,locale:q});this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"paycharge",pe,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(ci,{data:{id:e}}).afterClosed().subscribe(p=>{p.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(si,{data:{id:e}}).afterClosed().subscribe(p=>{p.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.fixedDepositsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){let l=[new Ne({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})],p={title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=this.settingsService.language.code,re=this.settingsService.dateFormat,pe=X(H({},D.data.value),{dateFormat:re,locale:q});this.savingsService.editSavingsAccountCharge(this.fixedDepositsAccountData.id,pe,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(ke,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.savingsService.deleteSavingsAccountCharge(this.fixedDepositsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Weekly Fee"}routeEdit(e){e.stopPropagation()}reload(){let e=this.fixedDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/fixed-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(l,p){if(l&1&&ht(Io,7),l&2){let f;vt(f=Dt())&&(p.chargesTableRef=f.first)}},decls:45,vars:7,consts:[["chargesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),a(4),r(5,"translate"),o()(),h(6,wo,3,1,"div",4),o(),n(7,"div",5)(8,"table",6,0),b(10,7),C(11,Eo,3,3,"th",8)(12,Bo,2,1,"td",9),P(),b(13,10),C(14,ko,3,3,"th",8)(15,Ro,4,7,"td",9),P(),b(16,11),C(17,No,3,3,"th",8)(18,Vo,3,4,"td",9),P(),b(19,12),C(20,qo,3,3,"th",8)(21,zo,3,3,"td",9),P(),b(22,13),C(23,Ho,3,3,"th",8)(24,$o,4,8,"td",9),P(),b(25,14),C(26,Lo,3,3,"th",8)(27,Go,3,4,"td",9),P(),b(28,15),C(29,Uo,3,3,"th",8)(30,jo,3,4,"td",9),P(),b(31,16),C(32,Wo,3,3,"th",8)(33,Ko,3,4,"td",9),P(),b(34,17),C(35,Qo,3,3,"th",8)(36,Yo,3,4,"td",9),P(),b(37,18),C(38,Jo,3,3,"th",8)(39,Xo,3,4,"td",9),P(),b(40,19),C(41,Zo,3,3,"th",8)(42,ca,3,2,"td",9),P(),C(43,sa,1,0,"tr",20)(44,la,1,0,"tr",21),o()()()),l&2&&(i(4),m(c(5,5,"labels.heading.All Charges")),i(2),v(p.chargesData?6:-1),i(2),d("dataSource",p.dataSource),i(35),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns))},dependencies:[y,I,B,de,wt,kt,Bt,Rt,Et,Nt,me,Vt,zt,qt,Ht,yt,w,It,ue],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var ma=["instructionsTable"];function da(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Client")))}function ua(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function fa(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.From Account")))}function ga(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function xa(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Beneficiary")))}function Ca(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),m(e.toClient.displayName)}}function _a(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.To Account")))}function ha(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function va(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount")))}function Da(t,s){if(t&1&&(n(0,"td",17),a(1),o()),t&2){let e=s.$implicit;i(),T("",e.instructionType.value,"/",e.amount)}}function ba(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Validity")))}function Pa(t,s){if(t&1&&(n(0,"td",17),a(1),r(2,"dateFormat"),r(3,"dateFormat"),o()),t&2){let e=s.$implicit;i(),T(" ",c(2,2,e.validFrom)," to ",c(3,4,e.validTill)," ")}}function Ma(t,s){t&1&&(n(0,"th",16),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function Ta(t,s){t&1&&(n(0,"button",19),r(1,"translate"),g(2,"i",20),o()),t&2&&d("matTooltip",_t(c(1,2,"tooltips.Edit Standing Instruction")))}function Sa(t,s){t&1&&(n(0,"span"),C(1,Ta,3,4,"button",18),o()),t&2&&(i(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function Aa(t,s){if(t&1){let e=F();n(0,"button",22),r(1,"translate"),M("click",function(){S(e);let p=_(2).$implicit,f=_();return A(f.deleteStandingInstruction(p.id))}),g(2,"i",23),o()}t&2&&d("matTooltip",_t(c(1,2,"tooltips.Delete Standing Instruction")))}function Oa(t,s){t&1&&(n(0,"span"),C(1,Aa,3,4,"button",21),o()),t&2&&(i(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function ya(t,s){t&1&&(n(0,"button",19),r(1,"translate"),g(2,"i",24),o()),t&2&&d("matTooltip",_t(c(1,2,"tooltips.View Standing Instruction")))}function Ia(t,s){if(t&1&&(n(0,"td",17),h(1,Sa,2,1,"span"),h(2,Oa,2,1,"span"),C(3,ya,3,4,"button",18),o()),t&2){let e=s.$implicit;i(),v(e.status.value!=="Deleted"?1:-1),i(),v(e.status.value!=="Deleted"?2:-1),i(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Fa(t,s){t&1&&g(0,"tr",25)}function wa(t,s){t&1&&g(0,"tr",26)}var mi=(()=>{class t{constructor(){this.route=x(N),this.fixedDepositsService=x(j),this.dialog=x(Ut),this.accountTransfersService=x(cn),this.settingsService=x(U),this.dataSource=new ve,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.fixedDepositsData=e.fixedDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.fixedDepositsData.clientId,l=this.fixedDepositsData.clientName,p=this.fixedDepositsData.id,f=this.settingsService.language.code,D=this.settingsService.dateFormat;this.fixedDepositsService.getStandingInstructions(e,l,p,f,D).subscribe(q=>{this.instructionsData=q.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ke,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(l,p){if(l&1&&ht(ma,7),l&2){let f;vt(f=Dt())&&(p.instructionTableRef=f.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(n(0,"div",1)(1,"div",2)(2,"h3"),a(3),r(4,"translate"),o()(),n(5,"div",3)(6,"table",4,0),b(8,5),C(9,da,3,3,"th",6)(10,ua,2,2,"td",7),P(),b(11,8),C(12,fa,3,3,"th",6)(13,ga,2,2,"td",7),P(),b(14,9),C(15,xa,3,3,"th",6)(16,Ca,2,1,"td",7),P(),b(17,10),C(18,_a,3,3,"th",6)(19,ha,2,2,"td",7),P(),b(20,11),C(21,va,3,3,"th",6)(22,Da,2,2,"td",7),P(),b(23,12),C(24,ba,3,3,"th",6)(25,Pa,4,6,"td",7),P(),b(26,13),C(27,Ma,3,3,"th",6)(28,Ia,4,3,"td",7),P(),C(29,Fa,1,0,"tr",14)(30,wa,1,0,"tr",15),o()()()),l&2&&(i(3),m(c(4,4,"labels.heading.All Standing Instructions")),i(3),d("dataSource",p.dataSource),i(23),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns))},dependencies:[y,I,B,de,wt,kt,Bt,Rt,Et,Nt,me,Vt,zt,qt,Ht,yt,w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var di=(()=>{class t{constructor(){this.route=x(N),this.entityId=this.route.parent.parent.snapshot.paramMap.get("fixedDepositAccountId"),this.route.data.subscribe(e=>{this.entityDatatable=e.savingsDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Fixed Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(l,p){l&1&&(n(0,"div",0),g(1,"mifosx-entity-datatable-tab",1),o()),l&2&&(i(),d("entityId",p.entityId)("multiRowDatatableFlag",p.multiRowDatatableFlag)("entityDatatable",p.entityDatatable))},dependencies:[y,I,on],encapsulation:2})}}return t})();var Ea=()=>["../../"];function Ba(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Approved On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var ui=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveFixedDepositsAccountForm()}createApproveFixedDepositsAccountForm(){this.approveFixedDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",V.required],note:[""]})}submit(){let e=this.approveFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.approveFixedDepositsAccountForm.value.approvedOnDate;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"approve",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-approve-fixed-deposits-account"]],decls:26,vars:21,consts:[["approvedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,Ba,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"textarea",7),o()()(),n(19,"mat-card-actions",8)(20,"button",9),a(21),r(22,"translate"),o(),n(23,"button",10),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.approveFixedDepositsAccountForm),i(5),m(c(8,12,"labels.inputs.Approved On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.approveFixedDepositsAccountForm.controls.approvedOnDate.hasError("required")?13:-1),i(3),m(c(17,14,"labels.inputs.Note")),i(4),d("routerLink",R(20,Ea)),i(),u(" ",c(22,16,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.approveFixedDepositsAccountForm),i(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ka=()=>["../../"];function Ra(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Rejected On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var fi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectFixedDepositsAccountForm()}createRejectFixedDepositsAccountForm(){this.rejectFixedDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",V.required],note:[""]})}submit(){let e=this.rejectFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.rejectFixedDepositsAccountForm.value.rejectedOnDate;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"reject",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-reject-fixed-deposits-account"]],decls:26,vars:21,consts:[["rejectedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,Ra,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"textarea",7),o()()(),n(19,"mat-card-actions",8)(20,"button",9),a(21),r(22,"translate"),o(),n(23,"button",10),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.rejectFixedDepositsAccountForm),i(5),m(c(8,12,"labels.inputs.Rejected On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.rejectFixedDepositsAccountForm.controls.rejectedOnDate.hasError("required")?13:-1),i(3),m(c(17,14,"labels.inputs.Note")),i(4),d("routerLink",R(20,ka)),i(),u(" ",c(22,16,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.rejectFixedDepositsAccountForm.valid),i(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Na=()=>["../../"];function Va(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Activated On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var gi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.savingsService=x($t),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateFixedDepositsAccountForm()}createActivateFixedDepositsAccountForm(){this.activateFixedDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",V.required]})}submit(){let e=this.activateFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.activateFixedDepositsAccountForm.value.activatedOnDate;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-activate-fixed-deposits-account"]],decls:20,vars:18,consts:[["activatedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"mat-form-field",3),M("click",function(){S(f);let q=k(11);return A(q.open())}),n(5,"mat-label"),a(6),r(7,"translate"),o(),g(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),h(12,Va,7,9,"mat-error"),o()(),n(13,"mat-card-actions",6)(14,"button",7),a(15),r(16,"translate"),o(),n(17,"button",8),a(18),r(19,"translate"),o()()()()()}if(l&2){let f=k(11);i(2),d("formGroup",p.activateFixedDepositsAccountForm),i(4),m(c(7,11,"labels.inputs.Activated On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.activateFixedDepositsAccountForm.controls.activatedOnDate.hasError("required")?12:-1),i(2),d("routerLink",R(17,Na)),i(),u(" ",c(16,13,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.activateFixedDepositsAccountForm.valid),i(),u(" ",c(19,15,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var qa=()=>["../../"],xi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.savingsService=x($t),this.fixedDepositsService=x(j),this.route=x(N),this.router=x(W),this.undoCommand="undoapproval",this.undoAction=this.route.snapshot.params.name,this.undoAction==="Undo Activation"&&(this.undoCommand="undoactivate"),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.createUndoApprovalFixedDepositsAccountForm()}createUndoApprovalFixedDepositsAccountForm(){this.undoApprovalFixedDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){let e=H({},this.undoApprovalFixedDepositsAccountForm.value);this.undoAction==="Undo Activation"?this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})}):this.savingsService.executeSavingsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-undo-approval-fixed-deposits-account"]],decls:16,vars:13,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(l,p){l&1&&(n(0,"div",0)(1,"mat-card")(2,"form",1),M("ngSubmit",function(){return p.submit()}),n(3,"mat-card-content")(4,"mat-form-field",2)(5,"mat-label"),a(6),r(7,"translate"),o(),g(8,"textarea",3),o()(),n(9,"mat-card-actions",4)(10,"button",5),a(11),r(12,"translate"),o(),n(13,"button",6),a(14),r(15,"translate"),o()()()()()),l&2&&(i(2),d("formGroup",p.undoApprovalFixedDepositsAccountForm),i(4),m(c(7,6,"labels.inputs.Note")),i(4),d("routerLink",R(12,qa)),i(),u(" ",c(12,8,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.undoApprovalFixedDepositsAccountForm.valid),i(),u(" ",c(15,10,"labels.buttons.Confirm")," "))},dependencies:[y,I,ct,rt,it,pt,st,lt,tt,Y,xt,bt,ot,nt,dt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var za=()=>["../../"];function Ha(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Withdrawn On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}var Ci=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawFixedDepositsAccountForm()}createWithdrawFixedDepositsAccountForm(){this.withdrawFixedDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",V.required],note:[""]})}submit(){let e=this.withdrawFixedDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.withdrawFixedDepositsAccountForm.value.withdrawnOnDate;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"withdrawnByApplicant",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-withdraw-by-client-fixed-deposits-account"]],decls:26,vars:21,consts:[["withdrawnOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,Ha,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"textarea",7),o()()(),n(19,"mat-card-actions",8)(20,"button",9),a(21),r(22,"translate"),o(),n(23,"button",10),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.withdrawFixedDepositsAccountForm),i(5),m(c(8,12,"labels.inputs.Withdrawn On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.withdrawFixedDepositsAccountForm.controls.withdrawnOnDate.hasError("required")?13:-1),i(3),m(c(17,14,"labels.inputs.Note")),i(4),d("routerLink",R(20,za)),i(),u(" ",c(22,16,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.withdrawFixedDepositsAccountForm.valid),i(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var $a=()=>["../../"];function La(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.name+" ("+e.currency.name+")"," ")}}function Ga(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Charge")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Ua(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Amount")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ja(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function Wa(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function Ka(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Due for collection on")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Qa(t,s){if(t&1){let e=F();n(0,"mat-form-field",13),M("click",function(){S(e);let p=k(7);return A(p.open())}),n(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),h(8,Ka,7,9,"mat-error"),o()}if(t&2){let e=k(7),l=_(2);i(2),m(c(3,6,"labels.inputs.Due for collection on")),i(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),i(),d("for",e),i(3),v(l.fixedDepositsChargeForm.controls.dueDate.hasError("required")?8:-1)}}function Ya(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Due Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Ja(t,s){if(t&1){let e=F();n(0,"mat-form-field",13),M("click",function(){S(e);let p=k(7);return A(p.open())}),n(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),h(8,Ya,7,9,"mat-error"),o()}if(t&2){let e=k(7),l=_(2);i(2),m(c(3,6,"labels.inputs.Due On")),i(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),i(),d("for",e),i(3),v(l.fixedDepositsChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function Xa(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",17),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Repeats Every")))}function Za(t,s){if(t&1&&(n(0,"div",4)(1,"mat-form-field")(2,"mat-label"),a(3),r(4,"translate"),o(),g(5,"input",10),h(6,Ua,7,9,"mat-error"),o(),n(7,"mat-form-field")(8,"mat-label"),a(9),r(10,"translate"),o(),n(11,"mat-select",11),L(12,ja,2,2,"mat-option",6,$),o()(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),n(18,"mat-select",12),L(19,Wa,2,2,"mat-option",6,$),o()(),h(21,Qa,9,8,"mat-form-field"),h(22,Ja,9,8,"mat-form-field"),h(23,Xa,5,3,"mat-form-field"),o()),t&2){let e=_();i(3),m(c(4,7,"labels.inputs.Amount")),i(3),v(e.fixedDepositsChargeForm.controls.amount.hasError("required")?6:-1),i(3),m(c(10,9,"labels.inputs.Charge Calculation")),i(3),G(e.chargeDetails.chargeCalculationTypeOptions),i(4),m(c(17,11,"labels.inputs.Charge time type")),i(3),G(e.chargeDetails.chargeTimeTypeOptions),i(2),v(e.fixedDepositsChargeForm.contains("dueDate")?21:-1),i(),v(e.fixedDepositsChargeForm.contains("feeOnMonthDay")?22:-1),i(),v(e.fixedDepositsChargeForm.contains("feeInterval")?23:-1)}}var _i=(()=>{class t{constructor(){this.formBuilder=x(mt),this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.savingsService=x($t),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsChargeOptions=e.fixedDepositsAccountActionData.chargeOptions}),this.fixedDepositAccountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFixedDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.fixedDepositsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(l=>{this.chargeDetails=l;let p=l.chargeTimeType.id;(l.chargeTimeType.value==="Withdrawal Fee"||l.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(l.chargeTimeType.value==="Annual Fee"||l.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.addControl("dueDate",new Z("",V.required)):this.fixedDepositsChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.fixedDepositsChargeForm.addControl("feeOnMonthDay",new Z("",V.required)):this.fixedDepositsChargeForm.removeControl("feeOnMonthDay"),p.value==="Monthly Fee"?this.fixedDepositsChargeForm.addControl("feeInterval",new Z(l.feeInterval,V.required)):this.fixedDepositsChargeForm.removeControl("feeInterval"),this.fixedDepositsChargeForm.patchValue({amount:l.amount,chargeCalculationType:l.chargeCalculationType.id,chargeTimeType:l.chargeTimeType.id})})})}createFixedDepositsChargeForm(){this.fixedDepositsChargeForm=this.formBuilder.group({chargeId:["",V.required],amount:["",V.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let e=this.fixedDepositsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let l="MMMM-dd";if(e.monthDayFormat=l,e.feeOnMonthDay){let p=this.fixedDepositsChargeForm.value.feeOnMonthDay;e.feeOnMonthDay=this.dateUtils.formatDate(p,l)}}else{let l=this.settingsService.dateFormat;if(e.dateFormat=l,e.dueDate){let p=this.fixedDepositsChargeForm.value.dueDate;e.dueDate=this.dateUtils.formatDate(p,l)}}this.savingsService.createSavingsCharge(this.fixedDepositAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-add-charge-fixed-deposits-account"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(l,p){l&1&&(n(0,"div",2)(1,"mat-card")(2,"form",3),M("ngSubmit",function(){return p.submit()}),n(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),a(7),r(8,"translate"),o(),n(9,"mat-select",5),L(10,La,2,2,"mat-option",6,$),o(),h(12,Ga,7,9,"mat-error"),o(),h(13,Za,24,13,"div",4),o(),n(14,"mat-card-actions",7)(15,"button",8),a(16),r(17,"translate"),o(),n(18,"button",9),a(19),r(20,"translate"),o()()()()()()),l&2&&(i(2),d("formGroup",p.fixedDepositsChargeForm),i(5),m(c(8,8,"labels.inputs.Charge")),i(3),G(p.savingsChargeOptions),i(2),v(p.fixedDepositsChargeForm.controls.chargeId.hasError("required")?12:-1),i(),v(p.chargeDetails?13:-1),i(2),d("routerLink",R(14,$a)),i(),u(" ",c(17,10,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.fixedDepositsChargeForm.valid),i(),u(" ",c(20,12,"labels.buttons.Submit")," "))},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,w],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var tr=()=>["../../"];function er(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Premature Close Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ir(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",10),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Maturity Amount")))}function nr(t,s){if(t&1&&(n(0,"mat-option",12),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function or(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Account action")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ar(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",11),L(5,nr,2,2,"mat-option",12,$),o(),h(7,or,7,9,"mat-error"),o()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Action")),i(3),G(e.onAccountClosureOptions),i(2),v(e.prematureCloseAccountForm.controls.onAccountClosureId.hasError("required")?7:-1)}}function rr(t,s){if(t&1&&(n(0,"mat-option",12),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.accountNo," ")}}function pr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Transfer to savings account")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function cr(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",13),L(5,rr,2,2,"mat-option",12,$),o(),h(7,pr,7,9,"mat-error"),o()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Transfer to Savings")),i(3),G(e.savingsAccountsData),i(2),v(e.prematureCloseAccountForm.controls.toSavingsAccountId.hasError("required")?7:-1)}}function sr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",14),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Transfer Description")))}function lr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"textarea",15),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Note")))}var hi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isSubmitted=!1,this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPrematureCloseAccountForm(),this.buildDependencies()}createPrematureCloseAccountForm(){this.prematureCloseAccountForm=this.formBuilder.group({closedOnDate:["",V.required]})}buildDependencies(){this.prematureCloseAccountForm.get("closedOnDate").valueChanges.subscribe(e=>{this.isSubmitted||this.calculatePrematureAmount(e)})}calculatePrematureAmount(e){let l=this.settingsService.language.code,p=this.settingsService.dateFormat,f={closedOnDate:this.dateUtils.formatDate(e,p),dateFormat:p,locale:l};this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"calculatePrematureAmount",f).subscribe(D=>{this.savingsAccountsData=D.savingsAccounts,this.onAccountClosureOptions=D.onAccountClosureOptions,this.prematureCloseAccountForm.addControl("maturityAmount",new Z({value:"",disabled:!0})),this.prematureCloseAccountForm.addControl("onAccountClosureId",new Z("",V.required)),this.prematureCloseAccountForm.addControl("note",new Z("")),this.prematureCloseAccountForm.get("maturityAmount").patchValue(D.maturityAmount),this.addTransferDetails()})}addTransferDetails(){this.prematureCloseAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{e===200?(this.prematureCloseAccountForm.addControl("toSavingsAccountId",new Z("",V.required)),this.prematureCloseAccountForm.addControl("transferDescription",new Z(""))):(this.prematureCloseAccountForm.removeControl("toSavingsAccountId"),this.prematureCloseAccountForm.removeControl("transferDescription"))})}submit(){let e=this.prematureCloseAccountForm.value;this.isSubmitted=!0;let l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.prematureCloseAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"prematureClose",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-premature-close-fixed-deposits-account"]],decls:26,vars:23,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,er,7,9,"mat-error"),o(),h(14,ir,5,3,"mat-form-field"),h(15,ar,8,4,"mat-form-field"),h(16,cr,8,4,"mat-form-field"),h(17,sr,5,3,"mat-form-field"),h(18,lr,5,3,"mat-form-field"),o()(),n(19,"mat-card-actions",7)(20,"button",8),a(21),r(22,"translate"),o(),n(23,"button",9),a(24),r(25,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.prematureCloseAccountForm),i(5),m(c(8,16,"labels.inputs.Premature Close Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.prematureCloseAccountForm.controls.closedOnDate.hasError("required")?13:-1),i(),v(p.prematureCloseAccountForm.controls.maturityAmount?14:-1),i(),v(p.prematureCloseAccountForm.contains("onAccountClosureId")?15:-1),i(),v(p.prematureCloseAccountForm.contains("toSavingsAccountId")?16:-1),i(),v(p.prematureCloseAccountForm.contains("transferDescription")?17:-1),i(),v(p.prematureCloseAccountForm.contains("note")?18:-1),i(2),d("routerLink",R(22,tr)),i(),u(" ",c(22,18,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.prematureCloseAccountForm.valid),i(),u(" ",c(25,20,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var mr=()=>["../../"];function dr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Closed On Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function ur(t,s){if(t&1&&(n(0,"mat-option",9),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.value," ")}}function fr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Account action")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function gr(t,s){if(t&1&&(n(0,"mat-option",9),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.accountNo," ")}}function xr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Transfer to savings account")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function Cr(t,s){if(t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",14),L(5,gr,2,2,"mat-option",9,$),o(),h(7,xr,7,9,"mat-error"),o()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Transfer to Savings")),i(3),G(e.savingsAccountsData),i(2),v(e.closeOnMaturityAccountForm.controls.toSavingsAccountId.hasError("required")?7:-1)}}function _r(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",15),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Transfer Description")))}var vi=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.dateUtils=x(et),this.route=x(N),this.router=x(W),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsAccountsData=e.fixedDepositsAccountActionData.savingsAccounts,this.onAccountClosureOptions=e.fixedDepositsAccountActionData.onAccountClosureOptions,this.maturityAmount=e.fixedDepositsAccountActionData.maturityAmount}),this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseOnMaturityAccountForm(),this.addTransferDetails()}createCloseOnMaturityAccountForm(){this.closeOnMaturityAccountForm=this.formBuilder.group({closedOnDate:["",V.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",V.required],note:[""]})}addTransferDetails(){this.closeOnMaturityAccountForm.get("onAccountClosureId").valueChanges.subscribe(e=>{e===200?(this.closeOnMaturityAccountForm.addControl("toSavingsAccountId",new Z("",V.required)),this.closeOnMaturityAccountForm.addControl("transferDescription",new Z(""))):(this.closeOnMaturityAccountForm.removeControl("toSavingsAccountId"),this.closeOnMaturityAccountForm.removeControl("transferDescription"))})}submit(){let e=this.closeOnMaturityAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.closeOnMaturityAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});this.fixedDepositsService.executeFixedDepositsAccountCommand(this.accountId,"close",D).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-close-fixed-deposits-account"]],decls:41,vars:30,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["type","number","matInput","","formControlName","maturityAmount"],["required","","formControlName","onAccountClosureId"],[3,"value"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card")(2,"form",2),M("ngSubmit",function(){return S(f),A(p.submit())}),n(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),h(13,dr,7,9,"mat-error"),o(),n(14,"mat-form-field")(15,"mat-label"),a(16),r(17,"translate"),o(),g(18,"input",7),o(),n(19,"mat-form-field")(20,"mat-label"),a(21),r(22,"translate"),o(),n(23,"mat-select",8),L(24,ur,2,2,"mat-option",9,$),o(),h(26,fr,7,9,"mat-error"),o(),h(27,Cr,8,4,"mat-form-field"),h(28,_r,5,3,"mat-form-field"),n(29,"mat-form-field")(30,"mat-label"),a(31),r(32,"translate"),o(),g(33,"textarea",10),o()()(),n(34,"mat-card-actions",11)(35,"button",12),a(36),r(37,"translate"),o(),n(38,"button",13),a(39),r(40,"translate"),o()()()()()}if(l&2){let f=k(12);i(2),d("formGroup",p.closeOnMaturityAccountForm),i(5),m(c(8,17,"labels.inputs.Closed On Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.closeOnMaturityAccountForm.controls.closedOnDate.hasError("required")?13:-1),i(3),m(c(17,19,"labels.inputs.Maturity Amount")),i(5),m(c(22,21,"labels.inputs.Action")),i(3),G(p.onAccountClosureOptions),i(2),v(p.closeOnMaturityAccountForm.controls.onAccountClosureId.hasError("required")?26:-1),i(),v(p.closeOnMaturityAccountForm.contains("toSavingsAccountId")?27:-1),i(),v(p.closeOnMaturityAccountForm.contains("transferDescription")?28:-1),i(3),m(c(32,23,"labels.inputs.Note")),i(4),d("routerLink",R(29,mr)),i(),u(" ",c(37,25,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.closeOnMaturityAccountForm.valid),i(),u(" ",c(40,27,"labels.buttons.Confirm")," ")}},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,Ft,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var hr=()=>["../../transactions"];function vr(t,s){if(t&1&&(n(0,"h2",2),a(1),r(2,"translate"),r(3,"translate"),o()),t&2){let e=_();i(),T(" ",c(2,2,"labels.menus."+e.actionName)," ",c(3,4,"labels.heading.Fixed Deposit Transactions")," ")}}function Dr(t,s){t&1&&(n(0,"mat-error"),a(1),r(2,"translate"),r(3,"translate"),n(4,"strong"),a(5),r(6,"translate"),o()()),t&2&&(i(),T(" ",c(2,3,"labels.inputs.Transaction Date")," ",c(3,5,"labels.commons.is")," "),i(4),m(c(6,7,"labels.commons.required")))}function br(t,s){if(t&1&&(n(0,"mat-option",10),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.name," ")}}function Pr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",19),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Account Number")))}function Mr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",20),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Cheque")))}function Tr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",21),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Routing Code")))}function Sr(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",22),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Receipt Number")))}function Ar(t,s){t&1&&(n(0,"mat-form-field")(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",23),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Bank")))}var Di=(()=>{class t{constructor(){this.formBuilder=x(mt),this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.fixedDepositsService=x(j),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.paymentTypeOptions=[],this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(l=>{this.currency=l.fixedDepositsAccountActionData.currency,this.paymentTypeOptions=l.fixedDepositsAccountActionData.paymentTypeOptions}),this.actionName=this.route.snapshot.params.name;let e=this.actionName.toLowerCase();if(e==="deposit"||e==="withdrawal")this.transactionCommand=e,this.transactionType[this.transactionCommand]=!0;else throw new Error(`Invalid transaction action: ${this.actionName}`);this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.accountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,V.required],transactionAmount:[0,V.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.accountTransactionForm.addControl("accountNumber",new Z("")),this.accountTransactionForm.addControl("checkNumber",new Z("")),this.accountTransactionForm.addControl("routingCode",new Z("")),this.accountTransactionForm.addControl("receiptNumber",new Z("")),this.accountTransactionForm.addControl("bankNumber",new Z(""))):(this.accountTransactionForm.removeControl("accountNumber"),this.accountTransactionForm.removeControl("checkNumber"),this.accountTransactionForm.removeControl("routingCode"),this.accountTransactionForm.removeControl("receiptNumber"),this.accountTransactionForm.removeControl("bankNumber"))}submit(){let e=this.accountTransactionForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,f=this.accountTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(f,p));let D=X(H({},e),{dateFormat:p,locale:l});delete D.note,D.transactionAmount=D.transactionAmount*1,this.fixedDepositsService.executeFixedDepositsAccountTransactionsCommand(this.accountId,this.transactionCommand,D).subscribe(q=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposits-cash-transaction"]],decls:46,vars:38,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],["mat-title",""],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["required","","formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-card"),h(2,vr,4,6,"h2",2),n(3,"form",3),M("ngSubmit",function(){return S(f),A(p.submit())}),n(4,"mat-card-content",4)(5,"mat-form-field",5),M("click",function(){S(f);let q=k(12);return A(q.open())}),n(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",6)(10,"mat-datepicker-toggle",7)(11,"mat-datepicker",null,0),h(13,Dr,7,9,"mat-error"),o(),g(14,"mifosx-input-amount",8),n(15,"mat-form-field")(16,"mat-label"),a(17),r(18,"translate"),o(),n(19,"mat-select",9),L(20,br,2,2,"mat-option",10,$),o()(),n(22,"div",11)(23,"span",12),M("click",function(){return S(f),A(p.addPaymentDetails())}),n(24,"mat-slide-toggle")(25,"div",13)(26,"span",14),a(27),r(28,"translate"),o()()()()(),h(29,Pr,5,3,"mat-form-field"),h(30,Mr,5,3,"mat-form-field"),h(31,Tr,5,3,"mat-form-field"),h(32,Sr,5,3,"mat-form-field"),h(33,Ar,5,3,"mat-form-field"),n(34,"mat-form-field")(35,"mat-label"),a(36),r(37,"translate"),o(),g(38,"textarea",15),o(),n(39,"mat-card-actions",16)(40,"button",17),a(41),r(42,"translate"),o(),n(43,"button",18),a(44),r(45,"translate"),o()()()()()()}if(l&2){let f=k(12);i(2),v(p.transactionType.withdrawal?2:-1),i(),d("formGroup",p.accountTransactionForm),i(4),m(c(8,25,"labels.inputs.Transaction Date")),i(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",f),i(),d("for",f),i(3),v(p.accountTransactionForm.controls.transactionDate.hasError("required")?13:-1),i(),d("currency",p.currency)("isRequired",!0)("inputFormControl",p.accountTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),i(3),m(c(18,27,"labels.inputs.Payment Type")),i(3),G(p.paymentTypeOptions),i(5),d("className",p.addPaymentDetailsFlag?"enabled":"disabled"),i(2),m(c(28,29,"labels.inputs.Show Payment Details")),i(2),v(p.addPaymentDetailsFlag?29:-1),i(),v(p.addPaymentDetailsFlag?30:-1),i(),v(p.addPaymentDetailsFlag?31:-1),i(),v(p.addPaymentDetailsFlag?32:-1),i(),v(p.addPaymentDetailsFlag?33:-1),i(3),m(c(37,31,"labels.inputs.Notes")),i(4),d("routerLink",R(37,hr)),i(),u(" ",c(42,33,"labels.buttons.Cancel")," "),i(2),d("disabled",!p.accountTransactionForm.valid),i(),u(" ",c(45,35,"labels.buttons.Submit")," ")}},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,tt,Y,xt,bt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,ei,ji,Ft,w],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();function Or(t,s){t&1&&g(0,"mifosx-approve-fixed-deposits-account")}function yr(t,s){t&1&&g(0,"mifosx-reject-fixed-deposits-account")}function Ir(t,s){t&1&&g(0,"mifosx-activate-fixed-deposits-account")}function Fr(t,s){t&1&&g(0,"mifosx-undo-approval-fixed-deposits-account")}function wr(t,s){t&1&&g(0,"mifosx-withdraw-by-client-fixed-deposits-account")}function Er(t,s){t&1&&g(0,"mifosx-add-charge-fixed-deposits-account")}function Br(t,s){t&1&&g(0,"mifosx-premature-close-fixed-deposits-account")}function kr(t,s){t&1&&g(0,"mifosx-close-fixed-deposits-account")}function Rr(t,s){t&1&&g(0,"mifosx-fixed-deposits-cash-transaction")}var bi=(()=>{class t{constructor(){this.route=x(N),this.actions={Approve:!1,Reject:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Undo Activation":!1,"Add Charge":!1,"Premature Close":!1,"Withdrawn by Client":!1,Withdrawal:!1};let e=this.route.snapshot.params.name;e&&e in this.actions&&(this.actions[e]=!0)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposits-account-actions"]],decls:9,vars:9,template:function(l,p){l&1&&(h(0,Or,1,0,"mifosx-approve-fixed-deposits-account"),h(1,yr,1,0,"mifosx-reject-fixed-deposits-account"),h(2,Ir,1,0,"mifosx-activate-fixed-deposits-account"),h(3,Fr,1,0,"mifosx-undo-approval-fixed-deposits-account"),h(4,wr,1,0,"mifosx-withdraw-by-client-fixed-deposits-account"),h(5,Er,1,0,"mifosx-add-charge-fixed-deposits-account"),h(6,Br,1,0,"mifosx-premature-close-fixed-deposits-account"),h(7,kr,1,0,"mifosx-close-fixed-deposits-account"),h(8,Rr,1,0,"mifosx-fixed-deposits-cash-transaction")),l&2&&(v(p.actions.Approve?0:-1),i(),v(p.actions.Reject?1:-1),i(),v(p.actions.Activate?2:-1),i(),v(p.actions["Undo Approval"]||p.actions["Undo Activation"]?3:-1),i(),v(p.actions["Withdrawn by Client"]?4:-1),i(),v(p.actions["Add Charge"]?5:-1),i(),v(p.actions["Premature Close"]?6:-1),i(),v(p.actions.Close?7:-1),i(),v(p.actions.Withdrawal?8:-1))},dependencies:[y,I,ui,fi,gi,xi,Ci,_i,hi,vi,Di],encapsulation:2})}}return t})();var Nr=()=>["../"];function Vr(t,s){if(t&1){let e=F();n(0,"button",10),M("click",function(){S(e);let p=_(2);return A(p.undoTransaction())}),g(1,"fa-icon",11),a(2,"Undo "),o()}}function qr(t,s){t&1&&(n(0,"span"),C(1,Vr,3,0,"button",9),o()),t&2&&(i(),d("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function zr(t,s){t&1&&(n(0,"div",4),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.Note")," "))}function Hr(t,s){if(t&1&&(n(0,"div",5),a(1),o()),t&2){let e=_();i(),u(" ",e.transactionData.note," ")}}function $r(t,s){if(t&1&&g(0,"mifosx-transaction-payment-detail",6),t&2){let e=_();d("paymentDetailData",e.transactionData.paymentDetailData)}}var Pi=(()=>{class t{constructor(){this.savingsService=x($t),this.route=x(N),this.dateUtils=x(et),this.router=x(W),this.dialog=x(Ut),this.settingsService=x(U),this.route.data.subscribe(e=>{this.accountId=this.route.parent.snapshot.params.fixedDepositAccountId,this.transactionData=e.fixedDepositsAccountTransaction})}transactionColor(){return this.transactionData.manuallyReversed?"undo":"active"}allowUndo(){return!1}undoTransaction(){this.dialog.open(sn).afterClosed().subscribe(l=>{if(l.confirm){let p=this.settingsService.language.code,f=this.settingsService.dateFormat,D={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),f),transactionAmount:0,dateFormat:f,locale:p};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",D,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-transaction"]],decls:41,vars:37,consts:[[1,"container","m-b-20","align-end-center","gap-2percent"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"paymentDetailData"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(l,p){l&1&&(n(0,"div",0),h(1,qr,2,1,"span"),o(),n(2,"div",1)(3,"mat-card")(4,"mat-card-content")(5,"div",2),g(6,"div",3),n(7,"div",4),a(8),r(9,"translate"),o(),n(10,"div",5),a(11),o(),n(12,"div",4),a(13),r(14,"translate"),o(),n(15,"div",5),a(16),o(),n(17,"div",4),a(18),r(19,"translate"),o(),n(20,"div",5),a(21),r(22,"dateFormat"),o(),n(23,"div",4),a(24),r(25,"translate"),o(),n(26,"div",5),a(27),o(),n(28,"div",4),a(29),r(30,"translate"),o(),n(31,"div",5),a(32),r(33,"currency"),o(),h(34,zr,3,3,"div",4),h(35,Hr,2,1,"div",5),h(36,$r,1,1,"mifosx-transaction-payment-detail",6),o(),n(37,"div",7)(38,"button",8),a(39),r(40,"translate"),o()()()()()),l&2&&(i(),v(p.allowUndo()?1:-1),i(5),d("ngClass",p.transactionColor()),i(2),u(" ",c(9,17,"labels.inputs.Transaction Id")," "),i(3),u(" ",p.transactionData.id," "),i(2),u(" ",c(14,19,"labels.inputs.Type")," "),i(3),u(" ",p.transactionData.transactionType.value," "),i(2),u(" ",c(19,21,"labels.inputs.Transaction Date")," "),i(3),u(" ",c(22,23,p.transactionData.date)," "),i(3),u(" ",c(25,25,"labels.inputs.Currency")," "),i(3),u(" ",p.transactionData.currency.displayLabel," "),i(2),u(" ",c(30,27,"labels.inputs.Amount")," "),i(3),u(" ",at(33,29,p.transactionData.amount,p.transactionData.currency.code,"symbol-narrow","1.2-2")," "),i(2),v(p.transactionData.note?34:-1),i(),v(p.transactionData.note?35:-1),i(),v(p.transactionData.paymentDetailData?36:-1),i(2),d("routerLink",R(36,Nr)),i(),u(" ",c(40,34,"labels.buttons.Back")," "))},dependencies:[y,Se,I,tt,Y,xt,B,de,ut,rn,se,yt,w],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.transaction-relation[_ngcontent-%COMP%]{background-color:#d7dada}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();function Lr(t,s){if(t&1&&(n(0,"mat-option",5),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.name," ")}}function Gr(t,s){if(t&1){let e=F();n(0,"mat-form-field",11),M("click",function(){S(e);let p=k(7);return A(p.open())}),n(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),n(8,"mat-error"),a(9),r(10,"translate"),r(11,"translate"),n(12,"strong"),a(13),r(14,"translate"),o()()()}if(t&2){let e=k(7),l=_();i(2),m(c(3,8,"labels.inputs.Submitted On")),i(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),i(),d("for",e),i(4),T(" ",c(10,10,"labels.inputs.Submission Date")," ",c(11,12,"labels.commons.is")," "),i(4),m(c(14,14,"labels.commons.required"))}}function Ur(t,s){if(t&1&&(n(0,"mat-option",5),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",e.displayName," ")}}function jr(t,s){if(t&1&&(n(0,"mat-form-field",3)(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",14),L(5,Ur,2,2,"mat-option",5,$),o()()),t&2){let e=_();i(2),m(c(3,1,"labels.inputs.Field Officer")),i(3),G(e.fieldOfficerData)}}function Wr(t,s){t&1&&(n(0,"mat-form-field",3)(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",15),r(5,"translate"),o()),t&2&&(i(2),m(c(3,3,"labels.inputs.External id")),i(2),d("matTooltip",_t(c(5,5,"tooltips.Provides an external id"))))}var ge=(()=>{class t{constructor(){this.formBuilder=x(mt),this.fixedDepositsService=x(j),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.fixedDepositsAccountProductTemplate=new $e,this.createFixedDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.fixedDepositsAccountTemplate&&(this.productData=this.fixedDepositsAccountTemplate.productOptions,this.fixedDepositsAccountTemplate.depositProductId&&this.fixedDepositAccountDetailsForm.patchValue({productId:this.fixedDepositsAccountTemplate.depositProductId,submittedOnDate:this.fixedDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.fixedDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.fixedDepositsAccountTemplate.externalId||""}))}createFixedDepositsAccountDetailsForm(){this.fixedDepositAccountDetailsForm=this.formBuilder.group({productId:["",V.required],submittedOnDate:["",V.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){let e=this.fixedDepositsAccountTemplate.clientId;this.fixedDepositAccountDetailsForm.get("productId").valueChanges.subscribe(l=>{this.fixedDepositsService.getFixedDepositsAccountTemplate(e,l).subscribe(p=>{this.fixedDepositsAccountProductTemplate.emit(p),this.isProductSelected=!0,this.fieldOfficerData=p.fieldOfficerOptions,!this.isFieldOfficerPatched&&this.fixedDepositsAccountTemplate.fieldOfficerId?(this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.fixedDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.fixedDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get fixedDepositAccountDetails(){let e=this.fixedDepositAccountDetailsForm.value;for(let l in e)e[l]===""&&delete e[l];return e}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-details-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate"},outputs:{fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},decls:28,vars:23,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(l,p){if(l&1&&(n(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),a(4),r(5,"translate"),o(),n(6,"mat-select",4),L(7,Lr,2,2,"mat-option",5,$),o(),n(9,"mat-error"),a(10),r(11,"translate"),r(12,"translate"),n(13,"strong"),a(14),r(15,"translate"),o()()(),h(16,Gr,15,16,"mat-form-field",3),h(17,jr,7,3,"mat-form-field",3),h(18,Wr,6,7,"mat-form-field",3),o(),n(19,"div",6)(20,"button",7),g(21,"fa-icon",8),a(22),r(23,"translate"),o(),n(24,"button",9),a(25),r(26,"translate"),g(27,"fa-icon",10),o()()()),l&2){let f;d("formGroup",p.fixedDepositAccountDetailsForm),i(4),m(c(5,11,"labels.inputs.Product Name")),i(3),G(p.productData),i(3),T(" ",c(11,13,"labels.inputs.Product Name")," ",c(12,15,"labels.commons.is")," "),i(4),m(c(15,17,"labels.commons.required")),i(2),v(p.isProductSelected?16:-1),i(),v(p.isProductSelected?17:-1),i(),v(p.isProductSelected?18:-1),i(4),u(" ",c(23,19,"labels.buttons.Previous")," "),i(2),d("disabled",!((f=p.fixedDepositAccountDetailsForm.get("productId"))!=null&&f.value)||!((f=p.fixedDepositAccountDetailsForm.get("submittedOnDate"))!=null&&f.value)),i(),u(" ",c(26,21,"labels.buttons.Next")," ")}},dependencies:[y,I,ct,rt,it,pt,gt,st,lt,ot,nt,Ct,Pt,dt,Ot,At,Tt,St,Mt,B,me,Wt,ut,ne,w],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function Kr(t,s){if(t&1&&g(0,"mifosx-input-amount",2),t&2){let e=_();d("currency",e.currency)("isRequired",!0)("inputFormControl",e.fixedDepositAccountTermsForm.controls.depositAmount)("inputLabel","Deposit Amount")}}function Qr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Yr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Jr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Xr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function Zr(t,s){if(t&1&&(n(0,"mat-option",7),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}var xe=(()=>{class t{constructor(){this.formBuilder=x(mt),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.currency=null,this.createFixedDepositsAccountTermsForm()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.currency=this.fixedDepositsAccountProductTemplate.currency,this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate.id&&this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountTemplate.depositAmount?this.fixedDepositsAccountTemplate.depositAmount:0,depositPeriod:this.fixedDepositsAccountTemplate.depositPeriod,depositPeriodFrequencyId:this.fixedDepositsAccountTemplate.depositPeriodFrequency.id})}createFixedDepositsAccountTermsForm(){this.fixedDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",V.required],interestPostingPeriodType:["",V.required],interestCalculationType:["",V.required],interestCalculationDaysInYearType:["",V.required],depositAmount:[0,V.required],depositPeriod:["",V.required],depositPeriodFrequencyId:["",V.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.fixedDepositsAccountTemplate.id||this.fixedDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearType.id,depositAmount:this.fixedDepositsAccountProductTemplate.depositAmount,depositPeriod:this.fixedDepositsAccountProductTemplate.minDepositTerm,depositPeriodFrequencyId:this.fixedDepositsAccountProductTemplate.minDepositTermType.id})}get fixedDepositAccountTerms(){let e=this.fixedDepositAccountTermsForm.value;for(let l in e)e[l]===""&&delete e[l];return e}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-terms-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[Jt],decls:96,vars:80,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48",3,"currency","isRequired","inputFormControl","inputLabel"],[1,"flex-48","hide-lt-md"],[1,"flex-48"],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],[3,"value"],[1,"flex-98"],["formControlName","interestCompoundingPeriodType","required",""],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(l,p){l&1&&(n(0,"form",0)(1,"div",1),h(2,Kr,1,4,"mifosx-input-amount",2),g(3,"span",3),n(4,"mat-form-field",4)(5,"mat-label"),a(6),r(7,"translate"),o(),g(8,"input",5),n(9,"mat-error"),a(10),r(11,"translate"),r(12,"translate"),n(13,"strong"),a(14),r(15,"translate"),o()()(),n(16,"mat-form-field",4)(17,"mat-label"),a(18),r(19,"translate"),o(),n(20,"mat-select",6),L(21,Qr,3,5,"mat-option",7,$),o(),n(23,"mat-error"),a(24),r(25,"translate"),r(26,"translate"),n(27,"strong"),a(28),r(29,"translate"),o()()(),g(30,"mat-divider",8),n(31,"mat-form-field",4)(32,"mat-label"),a(33),r(34,"translate"),o(),n(35,"mat-select",9),L(36,Yr,3,5,"mat-option",7,$),o(),n(38,"mat-error"),a(39),r(40,"translate"),r(41,"translate"),n(42,"strong"),a(43),r(44,"translate"),o()()(),n(45,"mat-form-field",4)(46,"mat-label"),a(47),r(48,"translate"),o(),n(49,"mat-select",10),L(50,Jr,3,5,"mat-option",7,$),o(),n(52,"mat-error"),a(53),r(54,"translate"),r(55,"translate"),n(56,"strong"),a(57),r(58,"translate"),o()()(),n(59,"mat-form-field",4)(60,"mat-label"),a(61),r(62,"translate"),o(),n(63,"mat-select",11),L(64,Xr,3,5,"mat-option",7,$),o(),n(66,"mat-error"),a(67),r(68,"translate"),r(69,"translate"),n(70,"strong"),a(71),r(72,"translate"),o()()(),n(73,"mat-form-field",4)(74,"mat-label"),a(75),r(76,"translate"),o(),n(77,"mat-select",12),L(78,Zr,3,5,"mat-option",7,$),o(),n(80,"mat-error"),a(81),r(82,"translate"),r(83,"translate"),n(84,"strong"),a(85),r(86,"translate"),o()()()(),n(87,"div",13)(88,"button",14),g(89,"fa-icon",15),a(90),r(91,"translate"),o(),n(92,"button",16),a(93),r(94,"translate"),g(95,"fa-icon",17),o()()()),l&2&&(d("formGroup",p.fixedDepositAccountTermsForm),i(2),v(p.currency?2:-1),i(4),m(c(7,28,"labels.inputs.Deposit Period")),i(4),T(" ",c(11,30,"labels.inputs.Deposit Period")," ",c(12,32,"labels.commons.is")," "),i(4),m(c(15,34,"labels.commons.required")),i(4),m(c(19,36,"labels.inputs.Deposit Period Type")),i(3),G(p.periodFrequencyTypeData),i(3),T(" ",c(25,38,"labels.inputs.Deposit Period Type")," ",c(26,40,"labels.commons.is")," "),i(4),m(c(29,42,"labels.commons.required")),i(5),m(c(34,44,"labels.inputs.Interest Compounding Period")),i(3),G(p.interestCompoundingPeriodTypeData),i(3),T(" ",c(40,46,"labels.inputs.Interest Compounding Period")," ",c(41,48,"labels.commons.is")," "),i(4),m(c(44,50,"labels.commons.required")),i(4),m(c(48,52,"labels.inputs.Interest Posting Period")),i(3),G(p.interestPostingPeriodTypeData),i(3),T(" ",c(54,54,"labels.inputs.Interest Posting Period")," ",c(55,56,"labels.commons.is")," "),i(4),m(c(58,58,"labels.commons.required")),i(4),m(c(62,60,"labels.inputs.Interest Calculated using")),i(3),G(p.interestCalculationTypeData),i(3),T(" ",c(68,62,"labels.inputs.Interest Calculated using")," ",c(69,64,"labels.commons.is")," "),i(4),m(c(72,66,"labels.commons.required")),i(4),m(c(76,68,"labels.inputs.Days in Year")),i(3),G(p.interestCalculationDaysInYearTypeData),i(3),T(" ",c(82,70,"labels.inputs.Days in Year")," ",c(83,72,"labels.commons.is")," "),i(4),m(c(86,74,"labels.commons.required")),i(5),u(" ",c(91,76,"labels.buttons.Previous")," "),i(3),u(" ",c(94,78,"labels.buttons.Next")," "))},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,ot,nt,Ct,dt,Ot,At,B,ei,Re,Wt,ut,ne,w,It],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function tp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function ep(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function ip(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function np(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function op(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),T(" (",e.accountNo,") ",e.savingsProductName," ")}}function ap(t,s){if(t&1&&(n(0,"mat-form-field",16)(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",28),L(5,op,2,3,"mat-option",6,$),o(),n(7,"mat-error"),a(8),r(9,"translate"),r(10,"translate"),n(11,"strong"),a(12),r(13,"translate"),o()()()),t&2){let e=_();i(2),m(c(3,4,"labels.inputs.Linked Savings Account")),i(3),G(e.savingsAccountsData),i(3),T(" ",c(9,6,"labels.inputs.Linked Savings Account")," ",c(10,8,"labels.commons.is")," "),i(4),m(c(13,10,"labels.commons.required"))}}function rp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function pp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),o()),t&2){let e=s.$implicit;d("value",e.id),i(),T(" (",e.accountNo,") ",e.savingsProductName," ")}}function cp(t,s){if(t&1&&(n(0,"mat-form-field",18)(1,"mat-label"),a(2),r(3,"translate"),o(),n(4,"mat-select",29),L(5,pp,2,3,"mat-option",6,$),o(),n(7,"mat-error"),a(8),r(9,"translate"),r(10,"translate"),n(11,"strong"),a(12),r(13,"translate"),o()()()),t&2){let e=_();i(2),m(c(3,4,"labels.inputs.Transfer to savings account")),i(3),G(e.savingsAccountsData),i(3),T(" ",c(9,6,"labels.inputs.Transfer to savings account")," ",c(10,8,"labels.commons.is")," "),i(4),m(c(13,10,"labels.commons.required"))}}function sp(t,s){if(t&1&&(n(0,"mat-option",6),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;d("value",e.id),i(),u(" ",E(2,2,e.value,"catalogs")," ")}}function lp(t,s){t&1&&(n(0,"mat-form-field",31)(1,"mat-label"),a(2),r(3,"translate"),o(),g(4,"input",32),o()),t&2&&(i(2),m(c(3,1,"labels.inputs.Tax Group")))}function mp(t,s){if(t&1&&(g(0,"mat-divider",13),n(1,"mat-checkbox",30),a(2),r(3,"translate"),o(),h(4,lp,5,3,"mat-form-field",31)),t&2){let e=_();i(2),u(" ",c(3,2,"labels.inputs.Is Withhold Tax Applicable"),"? "),i(2),v(e.fixedDepositAccountSettingsForm.controls.taxGroupId?4:-1)}}var Ce=(()=>{class t{constructor(){this.formBuilder=x(mt),this.settingsService=x(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createFixedDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.fixedDepositAccountSettingsForm.patchValue({minDepositTerm:this.fixedDepositsAccountProductTemplate.minDepositTerm,minDepositTermTypeId:this.fixedDepositsAccountProductTemplate.minDepositTermType?this.fixedDepositsAccountProductTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType?this.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.id:"",maxDepositTerm:this.fixedDepositsAccountProductTemplate.maxDepositTerm,maxDepositTermTypeId:this.fixedDepositsAccountProductTemplate.maxDepositTermType?this.fixedDepositsAccountProductTemplate.maxDepositTermType.id:"",preClosurePenalApplicable:this.fixedDepositsAccountProductTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.fixedDepositsAccountProductTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType?this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id:"",maturityInstructionId:this.fixedDepositsAccountProductTemplate.maturityInstructionId}),this.fixedDepositsAccountProductTemplate.withHoldTax?(this.fixedDepositAccountSettingsForm.addControl("withHoldTax",new Z(!1)),this.fixedDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("taxGroupId",new Z({value:"",disabled:!0})),this.fixedDepositAccountSettingsForm.get("taxGroupId").patchValue(this.fixedDepositsAccountProductTemplate.taxGroup&&this.fixedDepositsAccountProductTemplate.taxGroup.name)):this.fixedDepositAccountSettingsForm.removeControl("taxGroupId")}),this.fixedDepositAccountSettingsForm.get("withHoldTax").patchValue(this.fixedDepositsAccountTemplate.withHoldTax)):this.fixedDepositAccountSettingsForm.removeControl("withHoldTax"),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fixedDepositsAccountTemplate&&this.fixedDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.fixedDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType&&this.fixedDepositsAccountTemplate.lockinPeriodFrequencyType.id,transferInterestToSavings:this.fixedDepositsAccountTemplate.transferInterestToSavings})}createFixedDepositAccountSettingsForm(){this.fixedDepositAccountSettingsForm=this.formBuilder.group({lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],transferInterestToSavings:[!1],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],maturityInstructionId:[""]})}buildDependencies(){this.fixedDepositAccountSettingsForm.get("transferInterestToSavings").valueChanges.subscribe(e=>{e?(this.fixedDepositAccountSettingsForm.addControl("linkAccountId",new Z("",V.required)),this.fixedDepositAccountSettingsForm.get("linkAccountId").patchValue(this.fixedDepositsAccountTemplate.linkedAccount&&this.fixedDepositsAccountTemplate.linkedAccount.id)):this.fixedDepositAccountSettingsForm.removeControl("linkAccountId")}),this.fixedDepositAccountSettingsForm.get("maturityInstructionId").valueChanges.subscribe(e=>{e>100?(this.fixedDepositAccountSettingsForm.addControl("transferToSavingsId",new Z("",V.required)),this.fixedDepositAccountSettingsForm.get("transferToSavingsId").patchValue(this.fixedDepositsAccountTemplate.transferToSavingsId&&this.fixedDepositsAccountTemplate.transferToSavingsId.id)):this.fixedDepositAccountSettingsForm.removeControl("transferToSavingsId")})}setOptions(){this.lockinPeriodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,this.savingsAccountsData=this.fixedDepositsAccountProductTemplate.savingsAccounts,this.preClosurePenalInterestOnTypeData=this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnTypeOptions,this.maturityInstructionOptions=this.fixedDepositsAccountProductTemplate.maturityInstructionOptions}get fixedDepositAccountSettings(){let e=this.fixedDepositAccountSettingsForm.getRawValue();for(let l in e)(e[l]===""||l==="taxGroupId")&&delete e[l];return e}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-settings-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[Jt],decls:122,vars:85,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],[1,"flex-98"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","transferInterestToSavings",1,"flex-32","margin-b"],[1,"margin-b","flex-48"],["formControlName","maturityInstructionId"],[1,"flex-48","margin-b"],[1,"mat-h4","flex-23"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","linkAccountId","required",""],["formControlName","transferToSavingsId","required",""],["labelPosition","before","formControlName","withHoldTax",1,"margin-p","flex-48"],[1,"p-b-25","flex-48"],["matInput","","formControlName","taxGroupId"]],template:function(l,p){l&1&&(n(0,"form",0)(1,"div",1)(2,"h4",2),a(3),r(4,"translate"),o(),n(5,"mat-form-field",3)(6,"mat-label"),a(7),r(8,"translate"),o(),g(9,"input",4),o(),n(10,"mat-form-field",3)(11,"mat-label"),a(12),r(13,"translate"),o(),n(14,"mat-select",5),L(15,tp,3,5,"mat-option",6,$),o()(),n(17,"h4",2),a(18),r(19,"translate"),o(),n(20,"mat-form-field",3)(21,"mat-label"),a(22),r(23,"translate"),o(),g(24,"input",7),n(25,"mat-error"),a(26),r(27,"translate"),r(28,"translate"),n(29,"strong"),a(30),r(31,"translate"),o()()(),n(32,"mat-form-field",3)(33,"mat-label"),a(34),r(35,"translate"),o(),n(36,"mat-select",8),L(37,ep,3,5,"mat-option",6,$),o(),n(39,"mat-error"),a(40),r(41,"translate"),r(42,"translate"),n(43,"strong"),a(44),r(45,"translate"),o()()(),n(46,"h4",2),a(47),r(48,"translate"),o(),n(49,"mat-form-field",3)(50,"mat-label"),a(51),r(52,"translate"),o(),g(53,"input",9),o(),n(54,"mat-form-field",3)(55,"mat-label"),a(56),r(57,"translate"),o(),n(58,"mat-select",10),L(59,ip,3,5,"mat-option",6,$),o()(),n(61,"h4",2),a(62),r(63,"translate"),o(),n(64,"mat-form-field",3)(65,"mat-label"),a(66),r(67,"translate"),o(),g(68,"input",11),o(),n(69,"mat-form-field",3)(70,"mat-label"),a(71),r(72,"translate"),o(),n(73,"mat-select",12),L(74,np,3,5,"mat-option",6,$),o()(),g(76,"mat-divider",13),n(77,"h3",14),a(78),r(79,"translate"),o(),n(80,"mat-checkbox",15),a(81),r(82,"translate"),o(),h(83,ap,14,12,"mat-form-field",16),g(84,"mat-divider",13),n(85,"mat-form-field",3)(86,"mat-label"),a(87),r(88,"translate"),o(),n(89,"mat-select",17),L(90,rp,3,5,"mat-option",6,$),o()(),h(92,cp,14,12,"mat-form-field",18),g(93,"mat-divider",13),n(94,"h4",19),a(95),r(96,"translate"),o(),n(97,"mat-checkbox",20),a(98),r(99,"translate"),o(),n(100,"mat-form-field",3)(101,"mat-label"),a(102),r(103,"translate"),o(),g(104,"input",21),o(),n(105,"mat-form-field",3)(106,"mat-label"),a(107),r(108,"translate"),o(),n(109,"mat-select",22),L(110,sp,3,5,"mat-option",6,$),o()(),h(112,mp,5,4),o(),n(113,"div",23)(114,"button",24),g(115,"fa-icon",25),a(116),r(117,"translate"),o(),n(118,"button",26),a(119),r(120,"translate"),g(121,"fa-icon",27),o()()()),l&2&&(d("formGroup",p.fixedDepositAccountSettingsForm),i(3),m(c(4,31,"labels.heading.Lock-in Period")),i(4),m(c(8,33,"labels.inputs.Frequency")),i(5),m(c(13,35,"labels.inputs.Type")),i(3),G(p.lockinPeriodFrequencyTypeData),i(3),m(c(19,37,"labels.heading.Minimum Deposit Term")),i(4),m(c(23,39,"labels.inputs.Frequency")),i(4),T(" ",c(27,41,"labels.inputs.Minimum Deposit Term Frequency")," ",c(28,43,"labels.commons.is")," "),i(4),m(c(31,45,"labels.commons.required")),i(4),m(c(35,47,"labels.inputs.Frequency Type")),i(3),G(p.periodFrequencyTypeData),i(3),T(" ",c(41,49,"labels.inputs.Minimum Deposit Term Frequency Type")," ",c(42,51,"labels.commons.is")," "),i(4),m(c(45,53,"labels.commons.required")),i(3),m(c(48,55,"labels.heading.And thereafter, in Multiples of")),i(4),m(c(52,57,"labels.inputs.Frequency")),i(5),m(c(57,59,"labels.inputs.Type")),i(3),G(p.periodFrequencyTypeData),i(3),m(c(63,61,"labels.heading.Maximum Deposit Term")),i(4),m(c(67,63,"labels.inputs.Frequency")),i(5),m(c(72,65,"labels.inputs.Type")),i(3),G(p.periodFrequencyTypeData),i(4),m(c(79,67,"labels.heading.Interest Transfer")),i(3),u(" ",c(82,69,"labels.inputs.Transfer Interest to Linked Savings Account"),"? "),i(2),v(p.fixedDepositAccountSettingsForm.contains("linkAccountId")?83:-1),i(4),m(c(88,71,"labels.inputs.Maturity Instructions")),i(3),G(p.maturityInstructionOptions),i(2),v(p.fixedDepositAccountSettingsForm.contains("transferToSavingsId")?92:-1),i(3),m(c(96,73,"labels.heading.For Pre-mature closure")),i(3),u(" ",c(99,75,"labels.inputs.Apply Penal Interest (less)")," "),i(4),u("",c(103,77,"labels.inputs.Penal Interest")," (%)"),i(5),m(c(108,79,"labels.inputs.Period")),i(3),G(p.preClosurePenalInterestOnTypeData),i(2),v(p.fixedDepositAccountSettingsForm.controls.withHoldTax?112:-1),i(4),u(" ",c(117,81,"labels.buttons.Previous")," "),i(3),u(" ",c(120,83,"labels.buttons.Next")," "))},dependencies:[y,I,ct,rt,jt,it,pt,gt,st,lt,ot,nt,Ct,dt,Ot,At,B,Ue,Re,Wt,ut,ne,w,It],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-p[_ngcontent-%COMP%]{margin-top:1.7em}"]})}}return t})();var dp=()=>[2e3];function up(t,s){if(t&1&&(n(0,"mat-option",3),a(1),o()),t&2){let e=s.$implicit;d("value",e),i(),u(" ",e.name," ")}}function fp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.name")))}function gp(t,s){if(t&1&&(n(0,"td",25),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function xp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Type")))}function Cp(t,s){if(t&1&&(n(0,"td",25),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeCalculationType.value," ")}}function _p(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount")))}function hp(t,s){if(t&1){let e=F();n(0,"td",25),a(1),n(2,"button",26),M("click",function(){let p=S(e).$implicit,f=_();return A(f.editChargeAmount(p))}),g(3,"fa-icon",27),o()()}if(t&2){let e=s.$implicit;i(),u(" ",e.amount," ")}}function vp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Collected On")))}function Dp(t,s){if(t&1&&(n(0,"td",25),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeTimeType.value," ")}}function bp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Date")))}function Pp(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",c(2,1,e.dueDate)||"Unassigned*"," ")}}function Mp(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",e.feeOnMonthDay?E(2,1,R(4,dp).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function Tp(t,s){t&1&&(n(0,"span"),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function Sp(t,s){if(t&1){let e=F();n(0,"button",26),M("click",function(){S(e);let p=_().$implicit,f=_();return A(f.editChargeDate(p))}),g(1,"fa-icon",27),o()}}function Ap(t,s){if(t&1&&(n(0,"td",25),h(1,Pp,3,3,"span"),h(2,Mp,3,5,"span"),h(3,Tp,3,3,"span"),h(4,Sp,2,0,"button",28),o()),t&2){let e=s.$implicit;i(),v(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),i(),v(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),i(),v(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3),i(),v(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?4:-1)}}function Op(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Repayments Every")))}function yp(t,s){if(t&1){let e=F();n(0,"button",26),M("click",function(){S(e);let p=_().$implicit,f=_();return A(f.editChargeFeeInterval(p))}),g(1,"fa-icon",27),o()}}function Ip(t,s){if(t&1&&(n(0,"td",25),a(1),h(2,yp,2,0,"button",28),o()),t&2){let e=s.$implicit;i(),u(" ",e.feeInterval||"Not Provided"," "),i(),v(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"?2:-1)}}function Fp(t,s){t&1&&(n(0,"th",24),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function wp(t,s){if(t&1){let e=F();n(0,"td",25)(1,"button",29),M("click",function(){let p=S(e).$implicit,f=_();return A(f.deleteCharge(p))}),g(2,"fa-icon",30),o()()}}function Ep(t,s){t&1&&g(0,"tr",31)}function Bp(t,s){t&1&&g(0,"tr",32)}var _e=(()=>{class t{constructor(){this.dialog=x(Ut),this.dateUtils=x(et),this.settingsService=x(U),this.currency=null,this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.isChargesPatched=!1,this.pristine=!0}ngOnInit(){this.chargesDataSource=[],this.fixedDepositsAccountTemplate.id&&this.fixedDepositsAccountTemplate.charges&&(this.chargesDataSource=this.fixedDepositsAccountTemplate.charges.map(e=>X(H({},e),{id:e.chargeId}))||[])}ngOnChanges(){this.currency==null&&(this.fixedDepositsAccountTemplate.currency?this.currency=this.fixedDepositsAccountTemplate.currency:this.fixedDepositsAccountProductTemplate&&this.fixedDepositsAccountProductTemplate.currency&&(this.currency=this.fixedDepositsAccountProductTemplate.currency)),this.fixedDepositsAccountProductTemplate&&(this.chargeData=this.fixedDepositsAccountProductTemplate.chargeOptions.filter(e=>e.currency.code===this.currency.code))}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){let l=[new Ne({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})],p={title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=X(H({},e),{amount:D.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){let l=[new ti({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],p={title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q,re=this.settingsService.dateFormat,pe=this.dateUtils.formatDate(D.data.value.date,re);switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":q=X(H({},e),{dueDate:pe});break;case"Annual Fee":q=X(H({},e),{feeOnMonthDay:pe});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let l=[new Ne({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],p={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(he,{data:p}).afterClosed().subscribe(D=>{if(D.data){let q=X(H({},e),{feeInterval:D.data.value.feeInterval});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get fixedDepositAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-charges-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountFormValid:"fixedDepositAccountFormValid"},features:[Jt],decls:47,vars:18,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","primary"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),a(3),r(4,"translate"),o(),n(5,"mat-select",null,0),L(7,up,2,2,"mat-option",3,$),o()(),n(9,"div",4)(10,"button",5),M("click",function(){S(f);let q=k(6);return A(p.addCharge(q))}),g(11,"fa-icon",6),a(12),r(13,"translate"),o()(),n(14,"table",7),b(15,8),C(16,fp,3,3,"th",9)(17,gp,2,1,"td",10),P(),b(18,11),C(19,xp,3,3,"th",9)(20,Cp,2,1,"td",10),P(),b(21,12),C(22,_p,3,3,"th",9)(23,hp,4,1,"td",10),P(),b(24,13),C(25,vp,3,3,"th",9)(26,Dp,2,1,"td",10),P(),b(27,14),C(28,bp,3,3,"th",9)(29,Ap,5,4,"td",10),P(),b(30,15),C(31,Op,3,3,"th",9)(32,Ip,3,2,"td",10),P(),b(33,16),C(34,Fp,3,3,"th",9)(35,wp,3,0,"td",10),P(),C(36,Ep,1,0,"tr",17)(37,Bp,1,0,"tr",18),o()(),n(38,"div",19)(39,"button",20),g(40,"fa-icon",21),a(41),r(42,"translate"),o(),n(43,"button",22),a(44),r(45,"translate"),g(46,"fa-icon",23),o()()}if(l&2){let f=k(6);i(3),m(c(4,10,"labels.inputs.Charge")),i(4),G(p.chargeData),i(3),d("disabled",!f.value),i(2),u(" ",c(13,12,"labels.buttons.Add")," "),i(2),d("dataSource",p.chargesDataSource)("hidden",p.chargesDataSource.length===0),i(22),d("matHeaderRowDef",p.displayedColumns),i(),d("matRowDefColumns",p.displayedColumns),i(4),u(" ",c(42,14,"labels.buttons.Previous")," "),i(2),d("disabled",!p.fixedDepositAccountFormValid),i(),u(" ",c(45,16,"labels.buttons.Next")," ")}},dependencies:[y,I,ot,nt,Ot,At,B,ut,wt,kt,Bt,Rt,Et,Nt,Ee,Vt,zt,qt,Ht,Wt,ne,yt,w],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var kp=["chartsTable"];function Rp(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.name"),":"),i(3),m(e.fixedDepositsAccountProductTemplate.accountChart.name)}}function Np(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"dateFormat"),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.End Date"),":"),i(3),m(c(6,4,e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function Vp(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Description"),":"),i(3),m(e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function qp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Period")))}function zp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),ce(" ",e.fromPeriod,"-",e.toPeriod,"\xA0",e.periodType.value," ")}}function Hp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount Range")))}function $p(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),T("",e.amountRangeFrom,"-",e.amountRangeTo)}}function Lp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Gp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),m(e.annualInterestRate)}}function Up(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Description")))}function jp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),m(e.description)}}function Wp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function Kp(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",27),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function Qp(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",28),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Yp(t,s){if(t&1){let e=F();n(0,"td",24)(1,"button",25),M("click",function(){let p=S(e).dataIndex,f=_();return A(f.expandChartSlabIndex=f.expandChartSlabIndex===p?null:p)}),C(2,Kp,4,3,"span",26)(3,Qp,4,3,"span",26),o()()}if(t&2){let e=s.dataIndex,l=_();i(2),d("ngIf",l.expandChartSlabIndex!==e),i(),d("ngIf",l.expandChartSlabIndex===e)}}function Jp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Entity Type")))}function Xp(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.entityType.value," ")}}function Zp(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Name")))}function tc(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.attributeName.value," ")}}function ec(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Condition Type")))}function ic(t,s){if(t&1&&(n(0,"td",24),a(1),r(2,"titlecase"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.conditionType.value)," ")}}function nc(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Value")))}function oc(t,s){if(t&1&&(n(0,"td",41),a(1),o()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),i(),u(" ",e.attributeValueDesc," ")}}function ac(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Incentive Type")))}function rc(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.incentiveType.value," ")}}function pc(t,s){t&1&&(n(0,"th",23),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function cc(t,s){if(t&1&&(n(0,"td",24),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.amount," ")}}function sc(t,s){t&1&&g(0,"tr",42)}function lc(t,s){t&1&&g(0,"tr",43)}function mc(t,s){if(t&1&&(n(0,"table",33),b(1,34),C(2,Jp,3,3,"th",8)(3,Xp,2,1,"td",9),P(),b(4,35),C(5,Zp,3,3,"th",8)(6,tc,2,1,"td",9),P(),b(7,36),C(8,ec,3,3,"th",8)(9,ic,3,3,"td",9),P(),b(10,37),C(11,nc,3,3,"th",8)(12,oc,2,2,"td",38),P(),b(13,39),C(14,ac,3,3,"th",8)(15,rc,2,1,"td",9),P(),b(16,40),C(17,pc,3,3,"th",8)(18,cc,2,1,"td",9),P(),C(19,sc,1,0,"tr",15)(20,lc,1,0,"tr",16),o()),t&2){let e=_().$implicit,l=_();d("dataSource",e.incentives),i(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),i(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function dc(t,s){if(t&1&&(n(0,"td",24)(1,"div",29)(2,"mat-card",30)(3,"h4",31),a(4),r(5,"translate"),o(),C(6,mc,21,3,"table",32),o()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=_();Te("colspan",p.chartSlabsDisplayedColumns.length),i(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),i(3),u(" ",c(5,4,"labels.heading.Incentives")," "),i(2),d("ngIf",e.incentives.length)}}function uc(t,s){t&1&&g(0,"tr",42)}function fc(t,s){t&1&&g(0,"tr",43)}function gc(t,s){t&1&&g(0,"tr",44)}var Ve=(()=>{class t{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs,this.chartsTableRef.renderRows())}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-interest-rate-chart-step"]],viewQuery:function(l,p){if(l&1&&ht(kp,7),l&2){let f;vt(f=Dt())&&(p.chartsTableRef=f.first)}},inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate"},features:[Jt],decls:48,vars:23,consts:[["chartsTable",""],[1,"layout-column","gap-2px"],["class","flex-fill",4,"ngIf"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","layout-row-wrap","flex-fill"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","flex-fill mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(n(0,"div",1),C(1,Rp,6,4,"div",2),n(2,"div",3)(3,"span",4),a(4),r(5,"translate"),o(),n(6,"span",5),a(7),r(8,"dateFormat"),o()(),C(9,Np,7,6,"div",2)(10,Vp,6,4,"div",2),n(11,"div",3)(12,"span",4),a(13),r(14,"translate"),o(),n(15,"span",5),a(16),o()(),n(17,"table",6,0),b(19,7),C(20,qp,3,3,"th",8)(21,zp,2,3,"td",9),P(),b(22,10),C(23,Hp,3,3,"th",8)(24,$p,2,2,"td",9),P(),b(25,11),C(26,Lp,3,3,"th",8)(27,Gp,2,1,"td",9),P(),b(28,12),C(29,Up,3,3,"th",8)(30,jp,2,1,"td",9),P(),b(31,13),C(32,Wp,3,3,"th",8)(33,Yp,4,2,"td",9),P(),b(34,14),C(35,dc,7,6,"td",9),P(),C(36,uc,1,0,"tr",15)(37,fc,1,0,"tr",16)(38,gc,1,0,"tr",17),o()(),n(39,"div",18)(40,"button",19),g(41,"fa-icon",20),a(42),r(43,"translate"),o(),n(44,"button",21),a(45),r(46,"translate"),g(47,"fa-icon",22),o()()),l&2&&(i(),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.name),i(3),u("",c(5,13,"labels.inputs.Valid from Date"),":"),i(3),m(c(8,15,p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.fromDate)),i(2),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.endDate),i(),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.description),i(3),u("",c(14,17,"labels.inputs.Primary Grouping by Amount"),":"),i(3),m(p.fixedDepositsAccountProductTemplate!=null&&p.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount?"Yes":"No"),i(),d("dataSource",p.interestRateChartData),i(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),i(4),u(" ",c(43,19,"labels.buttons.Previous")," "),i(3),u(" ",c(46,21,"labels.buttons.Next")," "))},dependencies:[y,Ae,Oe,I,Y,B,wt,kt,Bt,Rt,Et,Nt,ut,Vt,zt,qt,Ht,Wt,ne,ye,yt,w],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Ie("expandChartSlab",[ae("collapsed",oe({height:"0px",minHeight:"0"})),ae("expanded",oe({height:"*"})),we("expanded <=> collapsed",Fe("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var xc=()=>["../.."],Cc=()=>[2e3];function _c(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.External Id")),i(3),m(e.fixedDepositAccountData.externalId)}}function hc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"find"),r(7,"translateKey"),o()()),t&2){let e=_();i(2),u("",c(3,3,"labels.inputs.Lock-in Period"),":"),i(3),T("",e.fixedDepositAccountData.lockinPeriodFrequency," ",E(7,10,at(6,5,e.fixedDepositAccountData.lockinPeriodFrequencyType,e.fixedDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function vc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),u("",c(3,3,"labels.inputs.Minimum Deposit Term"),":"),i(3),T("",e.fixedDepositsAccountProductTemplate.minDepositTerm," ",E(6,5,e.fixedDepositsAccountProductTemplate.minDepositTermType==null?null:e.fixedDepositsAccountProductTemplate.minDepositTermType.value,"catalogs"))}}function Dc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),u("",c(3,3,"labels.inputs.In Multiples Of"),":"),i(3),T("",e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm," ",E(6,5,e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType==null?null:e.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value,"catalogs"))}}function bc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,3,"labels.inputs.Maximum Deposit Term")),i(3),T("",e.fixedDepositsAccountProductTemplate.maxDepositTerm," ",E(6,5,e.fixedDepositsAccountProductTemplate.maxDepositTermType==null?null:e.fixedDepositsAccountProductTemplate.maxDepositTermType.value,"catalogs"))}}function Pc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"find"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Linked Savings Account")),i(3),m(at(6,4,e.fixedDepositAccountData.linkAccountId,e.fixedDepositsAccountProductTemplate.savingsAccounts,"id","accountNo"))}}function Mc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"find"),r(7,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Maturity Instructions")),i(3),m(E(7,9,at(6,4,e.fixedDepositAccountData.maturityInstructionId,e.fixedDepositsAccountProductTemplate.maturityInstructionOptions,"id","value"),"catalogs"))}}function Tc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Penal Interest")," (%):"),i(3),m(e.fixedDepositsAccountProductTemplate.preClosurePenalInterest+"% ("+(e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType==null?null:e.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id)+")")}}function Sc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"yesNo"),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Withhold Tax is Applicable"),":"),i(3),m(c(6,4,e.fixedDepositAccountData.withHoldTax))}}function Ac(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.name"),":"),i(3),m(e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.name)}}function Oc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),r(6,"dateFormat"),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.End Date"),":"),i(3),m(c(6,4,e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.endDate))}}function yc(t,s){if(t&1&&(n(0,"div",3)(1,"span",4),a(2),r(3,"translate"),o(),n(4,"span",5),a(5),o()()),t&2){let e=_();i(2),u("",c(3,2,"labels.inputs.Description"),":"),i(3),m(e.fixedDepositsAccountProductTemplate==null?null:e.fixedDepositsAccountProductTemplate.accountChart.description)}}function Ic(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Period")))}function Fc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"translateKey"),o()),t&2){let e=s.$implicit;i(),ce(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",E(2,3,e.periodType.value,"catalogs")," ")}}function wc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount Range")))}function Ec(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"formatNumber"),r(3,"formatNumber"),o()),t&2){let e=s.$implicit;i(),T(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function Bc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function kc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u("",c(2,1,e.annualInterestRate)," %")}}function Rc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Description")))}function Nc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),m(e.description)}}function Vc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Actions")))}function qc(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",29),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function zc(t,s){t&1&&(n(0,"span"),g(1,"fa-icon",30),a(2),r(3,"translate"),o()),t&2&&(i(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Hc(t,s){if(t&1){let e=F();n(0,"td",26)(1,"button",27),M("click",function(){let p=S(e).dataIndex,f=_();return A(f.expandChartSlabIndex=f.expandChartSlabIndex===p?null:p)}),C(2,qc,4,3,"span",28)(3,zc,4,3,"span",28),o()()}if(t&2){let e=s.dataIndex,l=_();i(2),d("ngIf",l.expandChartSlabIndex!==e),i(),d("ngIf",l.expandChartSlabIndex===e)}}function $c(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Entity Type")))}function Lc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.entityType.value," ")}}function Gc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Name")))}function Uc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.attributeName.value," ")}}function jc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Condition Type")))}function Wc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"titlecase"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.conditionType.value)," ")}}function Kc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Attribute Value")))}function Qc(t,s){if(t&1&&(n(0,"td",43),a(1),o()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),i(),u(" ",e.attributeValueDesc," ")}}function Yc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Incentive Type")))}function Jc(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.incentiveType.value," ")}}function Xc(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Interest")))}function Zc(t,s){if(t&1&&(n(0,"td",26),a(1),r(2,"formatNumber"),o()),t&2){let e=s.$implicit;i(),u(" ",c(2,1,e.amount)," ")}}function ts(t,s){t&1&&g(0,"tr",44)}function es(t,s){t&1&&g(0,"tr",45)}function is(t,s){if(t&1&&(n(0,"table",35),b(1,36),C(2,$c,3,3,"th",9)(3,Lc,2,1,"td",10),P(),b(4,37),C(5,Gc,3,3,"th",9)(6,Uc,2,1,"td",10),P(),b(7,38),C(8,jc,3,3,"th",9)(9,Wc,3,3,"td",10),P(),b(10,39),C(11,Kc,3,3,"th",9)(12,Qc,2,2,"td",40),P(),b(13,41),C(14,Yc,3,3,"th",9)(15,Jc,2,1,"td",10),P(),b(16,42),C(17,Xc,3,3,"th",9)(18,Zc,3,3,"td",10),P(),C(19,ts,1,0,"tr",16)(20,es,1,0,"tr",17),o()),t&2){let e=_().$implicit,l=_();d("dataSource",e.incentives),i(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),i(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function ns(t,s){if(t&1&&(n(0,"td",26)(1,"div",31)(2,"mat-card",32)(3,"h4",33),a(4),r(5,"translate"),o(),C(6,is,21,3,"table",34),o()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=_();Te("colspan",p.chartSlabsDisplayedColumns.length),i(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),i(3),u(" ",c(5,4,"labels.heading.Incentives")," "),i(2),d("ngIf",e.incentives.length)}}function os(t,s){t&1&&g(0,"tr",44)}function as(t,s){t&1&&g(0,"tr",45)}function rs(t,s){t&1&&g(0,"tr",46)}function ps(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.name")))}function cs(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function ss(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Type")))}function ls(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeCalculationType.value," ")}}function ms(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Amount")))}function ds(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.amount," ")}}function us(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Date")))}function fs(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",c(2,1,e.dueDate)||"Unassigned"," ")}}function gs(t,s){if(t&1&&(n(0,"span"),a(1),r(2,"dateFormat"),o()),t&2){let e=_().$implicit;i(),u(" ",e.feeOnMonthDay?E(2,1,R(4,Cc).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function xs(t,s){t&1&&(n(0,"span"),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function Cs(t,s){if(t&1&&(n(0,"td",26),C(1,fs,3,3,"span",28)(2,gs,3,5,"span",28)(3,xs,3,3,"span",28),o()),t&2){let e=s.$implicit;i(),d("ngIf",e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"),i(),d("ngIf",e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"),i(),d("ngIf",!(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"))}}function _s(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Repayments Every")))}function hs(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.feeInterval||"Not Provided"," ")}}function vs(t,s){t&1&&(n(0,"th",25),a(1),r(2,"translate"),o()),t&2&&(i(),m(c(2,1,"labels.inputs.Collected On")))}function Ds(t,s){if(t&1&&(n(0,"td",26),a(1),o()),t&2){let e=s.$implicit;i(),u(" ",e.chargeTimeType.value," ")}}function bs(t,s){t&1&&g(0,"tr",44)}function Ps(t,s){t&1&&g(0,"tr",45)}function Ms(t,s){if(t&1&&(n(0,"div",47)(1,"h3",1),a(2),r(3,"translate"),o(),g(4,"mat-divider",2),n(5,"table",35),b(6,48),C(7,ps,3,3,"th",9)(8,cs,2,1,"td",10),P(),b(9,49),C(10,ss,3,3,"th",9)(11,ls,2,1,"td",10),P(),b(12,42),C(13,ms,3,3,"th",9)(14,ds,2,1,"td",10),P(),b(15,50),C(16,us,3,3,"th",9)(17,Cs,4,3,"td",10),P(),b(18,51),C(19,_s,3,3,"th",9)(20,hs,2,1,"td",10),P(),b(21,52),C(22,vs,3,3,"th",9)(23,Ds,2,1,"td",10),P(),C(24,bs,1,0,"tr",16)(25,Ps,1,0,"tr",17),o()()),t&2){let e=_();i(2),m(c(3,4,"labels.heading.Charges")),i(3),d("dataSource",e.fixedDepositAccountData.charges),i(19),d("matHeaderRowDef",e.chargesDisplayedColumns),i(),d("matRowDefColumns",e.chargesDisplayedColumns)}}var qe=(()=>{class t{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.submitEvent=new $e}ngOnChanges(){this.fixedDepositsAccountProductTemplate&&(this.interestRateChartData=this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-fixed-deposit-account-preview-step"]],inputs:{fixedDepositsAccountTemplate:"fixedDepositsAccountTemplate",fixedDepositsAccountProductTemplate:"fixedDepositsAccountProductTemplate",fixedDepositAccountData:"fixedDepositAccountData"},outputs:{submitEvent:"submitEvent"},features:[Jt],decls:181,vars:176,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h3","flex-100"],[1,"flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],["class","layout-row flex-100",4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["class","layout-row-wrap responsive-column flex-100",4,"ngIf"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"m-b-10","flex-13"],["class","flex-100 mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],[1,"layout-row-wrap","responsive-column","flex-100"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(l,p){l&1&&(n(0,"div",0)(1,"h3",1),a(2),r(3,"translate"),o(),g(4,"mat-divider",2),n(5,"div",3)(6,"span",4),a(7),r(8,"translate"),o(),n(9,"span",5),a(10),r(11,"find"),o()(),n(12,"div",3)(13,"span",4),a(14),r(15,"translate"),o(),n(16,"span",5),a(17),r(18,"dateFormat"),o()(),C(19,_c,6,4,"div",6),n(20,"div",3)(21,"span",4),a(22),r(23,"translate"),o(),n(24,"span",5),a(25),r(26,"find"),r(27,"translateKey"),o()(),n(28,"h3",1),a(29),r(30,"translate"),o(),g(31,"mat-divider",2),n(32,"div",3)(33,"span",4),a(34),r(35,"translate"),o(),n(36,"span",5),a(37),o()(),n(38,"div",3)(39,"span",4),a(40),r(41,"translate"),o(),n(42,"span",5),a(43),o()(),n(44,"div",3)(45,"span",4),a(46),r(47,"translate"),o(),n(48,"span",5),a(49),o()(),n(50,"h3",1),a(51),r(52,"translate"),o(),g(53,"mat-divider",2),n(54,"div",3)(55,"span",4),a(56),r(57,"translate"),o(),n(58,"span",5),a(59),r(60,"currency"),o()(),n(61,"div",3)(62,"span",4),a(63),r(64,"translate"),o(),n(65,"span",5),a(66),r(67,"find"),r(68,"translateKey"),o()(),n(69,"div",3)(70,"span",4),a(71),r(72,"translate"),o(),n(73,"span",5),a(74),r(75,"find"),r(76,"translateKey"),o()(),n(77,"div",3)(78,"span",4),a(79),r(80,"translate"),o(),n(81,"span",5),a(82),r(83,"find"),r(84,"translateKey"),o()(),n(85,"div",3)(86,"span",4),a(87),r(88,"translate"),o(),n(89,"span",5),a(90),r(91,"find"),r(92,"translateKey"),o()(),n(93,"div",3)(94,"span",4),a(95),r(96,"translate"),o(),n(97,"span",5),a(98),r(99,"find"),r(100,"translateKey"),o()(),n(101,"h3",1),a(102),r(103,"translate"),o(),g(104,"mat-divider",2),C(105,hc,8,13,"div",6)(106,vc,7,8,"div",6)(107,Dc,7,8,"div",6)(108,bc,7,8,"div",6),n(109,"div",3)(110,"span",4),a(111),r(112,"translate"),o(),n(113,"span",5),a(114),r(115,"yesNo"),o()(),C(116,Pc,7,9,"div",6)(117,Mc,8,12,"div",6),n(118,"div",3)(119,"span",4),a(120),r(121,"translate"),o(),n(122,"span",5),a(123),r(124,"yesNo"),o()(),C(125,Tc,6,4,"div",6)(126,Sc,7,6,"div",6),n(127,"h3",1),a(128),r(129,"translate"),o(),g(130,"mat-divider",2),C(131,Ac,6,4,"div",6),n(132,"div",3)(133,"span",4),a(134),r(135,"translate"),o(),n(136,"span",5),a(137),r(138,"dateFormat"),o()(),C(139,Oc,7,6,"div",6)(140,yc,6,4,"div",6),n(141,"div",3)(142,"span",4),a(143),r(144,"translate"),o(),n(145,"span",5),a(146),r(147,"yesNo"),o()(),n(148,"table",7),b(149,8),C(150,Ic,3,3,"th",9)(151,Fc,3,6,"td",10),P(),b(152,11),C(153,wc,3,3,"th",9)(154,Ec,4,6,"td",10),P(),b(155,12),C(156,Bc,3,3,"th",9)(157,kc,3,3,"td",10),P(),b(158,13),C(159,Rc,3,3,"th",9)(160,Nc,2,1,"td",10),P(),b(161,14),C(162,Vc,3,3,"th",9)(163,Hc,4,2,"td",10),P(),b(164,15),C(165,ns,7,6,"td",10),P(),C(166,os,1,0,"tr",16)(167,as,1,0,"tr",17)(168,rs,1,0,"tr",18),o(),C(169,Ms,26,6,"div",19),o(),n(170,"div",20)(171,"button",21),g(172,"fa-icon",22),a(173),r(174,"translate"),o(),n(175,"button",23),a(176),r(177,"translate"),o(),n(178,"button",24),M("click",function(){return p.submitEvent.emit()}),a(179),r(180,"translate"),o()()),l&2&&(i(2),m(c(3,59,"labels.heading.Details")),i(5),m(c(8,61,"labels.inputs.Product")),i(3),m(at(11,63,p.fixedDepositAccountData.productId,p.fixedDepositsAccountTemplate.productOptions,"id","name")),i(4),m(c(15,68,"labels.inputs.Submitted On")),i(3),m(c(18,70,p.fixedDepositAccountData.submittedOnDate)),i(2),d("ngIf",p.fixedDepositAccountData.externalId),i(3),m(c(23,72,"labels.inputs.Field Officer")),i(3),m(E(27,79,at(26,74,p.fixedDepositAccountData.fieldOfficerId,p.fixedDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")||"Unassigned","inputs")),i(4),m(c(30,82,"labels.heading.Currency")),i(5),m(c(35,84,"labels.inputs.Currency")),i(3),m(p.fixedDepositsAccountProductTemplate.currency.code),i(3),m(c(41,86,"labels.inputs.Currency Multiple")),i(3),m(p.fixedDepositsAccountProductTemplate.currency.inMultiplesOf),i(3),m(c(47,88,"labels.inputs.Decimal Places")),i(3),m(p.fixedDepositsAccountProductTemplate.currency.decimalPlaces),i(2),m(c(52,90,"labels.heading.Terms")),i(5),u("",c(57,92,"labels.inputs.Fixed Deposit Amount"),":"),i(3),m(at(60,94,p.fixedDepositAccountData.depositAmount,p.fixedDepositsAccountProductTemplate.currency.code,"symbol-narrow","1.2-2")),i(4),u("",c(64,99,"labels.inputs.Deposit Period"),":"),i(3),T("",p.fixedDepositAccountData.depositPeriod," ",E(68,106,at(67,101,p.fixedDepositAccountData.depositPeriodFrequencyId,p.fixedDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value"),"catalogs")),i(5),u("",c(72,109,"labels.inputs.Interest Compounding Period"),":"),i(3),m(E(76,116,at(75,111,p.fixedDepositAccountData.interestCompoundingPeriodType,p.fixedDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value"),"catalogs")),i(5),u("",c(80,119,"labels.inputs.Interest Posting Period"),":"),i(3),m(E(84,126,at(83,121,p.fixedDepositAccountData.interestPostingPeriodType,p.fixedDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value"),"catalogs")),i(5),u("",c(88,129,"labels.inputs.Interest Calculated using"),":"),i(3),m(E(92,136,at(91,131,p.fixedDepositAccountData.interestCalculationType,p.fixedDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value"),"catalogs")),i(5),u("",c(96,139,"labels.inputs.Days in Year"),":"),i(3),m(E(100,146,at(99,141,p.fixedDepositAccountData.interestCalculationDaysInYearType,p.fixedDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value"),"catalogs")),i(4),m(c(103,149,"labels.heading.Settings")),i(3),d("ngIf",p.fixedDepositAccountData.lockinPeriodFrequency),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.minDepositTerm),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.inMultiplesOfDepositTerm),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.maxDepositTerm),i(3),u("",c(112,151,"labels.inputs.Transfer Interest to Savings Account"),"?"),i(3),m(c(115,153,p.fixedDepositAccountData.transferInterestToSavings)),i(2),d("ngIf",p.fixedDepositAccountData.transferInterestToSavings),i(),d("ngIf",p.fixedDepositAccountData.maturityInstructionId),i(3),u("",c(121,155,"labels.inputs.Apply Penal Interest (less)"),":"),i(3),m(c(124,157,p.fixedDepositsAccountProductTemplate.preClosurePenalApplicable)),i(2),d("ngIf",p.fixedDepositsAccountProductTemplate.preClosurePenalApplicable),i(),d("ngIf",p.fixedDepositsAccountProductTemplate.withHoldTax),i(2),m(c(129,159,"labels.heading.Interest Rate Chart")),i(3),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.name),i(3),u("",c(135,161,"labels.inputs.Valid from Date"),":"),i(3),m(c(138,163,p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.fromDate)),i(2),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.endDate),i(),d("ngIf",p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.description),i(3),u("",c(144,165,"labels.inputs.Primary Grouping by Amount"),":"),i(3),m(c(147,167,p.fixedDepositsAccountProductTemplate==null?null:p.fixedDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),i(2),d("dataSource",p.interestRateChartData),i(18),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),i(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),i(),d("ngIf",p.fixedDepositAccountData.charges.length),i(4),u(" ",c(174,169,"labels.buttons.Previous")," "),i(2),d("routerLink",R(175,xc)),i(),u(" ",c(177,171,"labels.buttons.Cancel")," "),i(3),u(" ",c(180,173,"labels.buttons.Submit")," "))},dependencies:[y,Ae,Oe,I,tt,Y,B,Re,wt,kt,Bt,Rt,Et,Nt,ut,Vt,zt,qt,Ht,Wt,ye,se,yt,w,It,Xi,ue,tn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Ie("expandChartSlab",[ae("collapsed",oe({height:"0px",minHeight:"0"})),ae("expanded",oe({height:"*"})),we("expanded <=> collapsed",Fe("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();function Ts(t,s){t&1&&g(0,"fa-icon",14)}function Ss(t,s){t&1&&g(0,"fa-icon",14)}function As(t,s){t&1&&g(0,"fa-icon",15)}function Os(t,s){t&1&&g(0,"fa-icon",16)}function ys(t,s){t&1&&g(0,"fa-icon",17)}function Is(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function Fs(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function ws(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function Es(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function Bs(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function ks(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Rs(t,s){if(t&1){let e=F();n(0,"mat-step",13),C(1,ks,2,3,"ng-template",9),n(2,"mifosx-fixed-deposit-account-preview-step",18),M("submitEvent",function(){S(e);let p=_();return A(p.submit())}),o()()}if(t&2){let e=_();i(2),d("fixedDepositsAccountTemplate",e.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}var Mi=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.fixedDepositsService=x(j),this.settingsService=x(U),this.route.data.subscribe(e=>{this.fixedDepositsAccountTemplate=e.fixedDepositsAccountTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValid(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid}get fixedDepositAccount(){return H(H(H(H({},this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails),this.fixedDepositAccountTermsStep.fixedDepositAccountTerms),this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings),this.fixedDepositAccountChargesStep.fixedDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,p="dd MMMM",f=X(H({},this.fixedDepositAccount),{clientId:this.fixedDepositsAccountTemplate.clientId,charges:this.fixedDepositAccount.charges.map(D=>({chargeId:D.id,amount:D.amount,dueDate:D.dueDate&&this.dateUtils.formatDate(D.dueDate,l),feeOnMonthDay:D.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(D.feeOnMonthDay),p),feeInterval:D.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,l),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:l,monthDayFormat:p,locale:e});this.fixedDepositsService.createFixedDepositAccount(f).subscribe(D=>{this.router.navigate(["../",D.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-create-fixed-deposit-account"]],viewQuery:function(l,p){if(l&1&&(ht(ge,7),ht(xe,7),ht(Ce,7),ht(_e,7)),l&2){let f;vt(f=Dt())&&(p.fixedDepositsAccountDetailsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountTermsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountSettingsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountChargesStep=f.first)}},decls:24,vars:15,consts:[["fixedDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountProductTemplate","fixedDepositsAccountTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-stepper",2,0),C(3,Ts,1,0,"ng-template",3)(4,Ss,1,0,"ng-template",4)(5,As,1,0,"ng-template",5)(6,Os,1,0,"ng-template",6)(7,ys,1,0,"ng-template",7),n(8,"mat-step",8),C(9,Is,2,3,"ng-template",9),n(10,"mifosx-fixed-deposit-account-details-step",10),M("fixedDepositsAccountProductTemplate",function(q){return S(f),A(p.setTemplate(q))}),o()(),n(11,"mat-step",8),C(12,Fs,2,3,"ng-template",9),g(13,"mifosx-fixed-deposit-account-terms-step",11),o(),n(14,"mat-step",8),C(15,ws,2,3,"ng-template",9),g(16,"mifosx-fixed-deposit-account-settings-step",11),o(),n(17,"mat-step"),C(18,Es,2,3,"ng-template",9),g(19,"mifosx-fixed-deposit-account-interest-rate-chart-step",11),o(),n(20,"mat-step"),C(21,Bs,2,3,"ng-template",9),g(22,"mifosx-fixed-deposit-account-charges-step",12),o(),h(23,Rs,3,3,"mat-step",13),o()()}l&2&&(i(),d("linear",!1),i(7),d("stepControl",p.fixedDepositAccountDetailsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate),i(),d("stepControl",p.fixedDepositAccountTermsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(),d("stepControl",p.fixedDepositAccountSettingsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",p.fixedDepositAccountFormValid),i(),v(p.fixedDepositAccountFormValid?23:-1))},dependencies:[y,I,Ze,Je,ut,Xe,Ye,ge,xe,Ce,Ve,_e,qe,w],encapsulation:2})}}return t})();function Ns(t,s){t&1&&g(0,"fa-icon",14)}function Vs(t,s){t&1&&g(0,"fa-icon",14)}function qs(t,s){t&1&&g(0,"fa-icon",15)}function zs(t,s){t&1&&g(0,"fa-icon",16)}function Hs(t,s){t&1&&g(0,"fa-icon",17)}function $s(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function Ls(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function Gs(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function Us(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function js(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function Ws(t,s){t&1&&(a(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Ks(t,s){if(t&1){let e=F();n(0,"mat-step",13),C(1,Ws,2,3,"ng-template",9),n(2,"mifosx-fixed-deposit-account-preview-step",18),M("submitEvent",function(){S(e);let p=_();return A(p.submit())}),o()()}if(t&2){let e=_();i(2),d("fixedDepositsAccountTemplate",e.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",e.fixedDepositsAccountProductTemplate)("fixedDepositAccountData",e.fixedDepositAccount)}}var Ti=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.dateUtils=x(et),this.fixedDepositsService=x(j),this.settingsService=x(U),this.route.data.subscribe(e=>{this.fixedDepositsAccountAndTemplate=e.fixedDepositsAccountAndTemplate})}setTemplate(e){this.fixedDepositsAccountProductTemplate=e,this.currency=this.fixedDepositsAccountAndTemplate.currency}get fixedDepositAccountDetailsForm(){return this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetailsForm}get fixedDepositAccountTermsForm(){return this.fixedDepositAccountTermsStep.fixedDepositAccountTermsForm}get fixedDepositAccountSettingsForm(){return this.fixedDepositAccountSettingsStep.fixedDepositAccountSettingsForm}get fixedDepositAccountFormValidAndNotPristine(){return this.fixedDepositAccountDetailsForm.valid&&this.fixedDepositAccountTermsForm.valid&&this.fixedDepositAccountSettingsForm.valid&&(!this.fixedDepositAccountDetailsForm.pristine||!this.fixedDepositAccountTermsForm.pristine||!this.fixedDepositAccountSettingsForm.pristine||!this.fixedDepositAccountChargesStep.pristine)}get fixedDepositAccount(){return H(H(H(H({},this.fixedDepositsAccountDetailsStep.fixedDepositAccountDetails),this.fixedDepositAccountTermsStep.fixedDepositAccountTerms),this.fixedDepositAccountSettingsStep.fixedDepositAccountSettings),this.fixedDepositAccountChargesStep?.fixedDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,p="dd MMMM",f=X(H({},this.fixedDepositAccount),{clientId:this.fixedDepositsAccountAndTemplate.clientId,charges:this.fixedDepositAccount.charges.map(D=>({chargeId:D.id,amount:D.amount,dueDate:D.dueDate&&this.dateUtils.formatDate(D.dueDate,l),feeOnMonthDay:D.feeOnMonthDay&&this.dateUtils.formatDate([2e3].concat(D.feeOnMonthDay),p),feeInterval:D.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.fixedDepositAccount.submittedOnDate,l),charts:[{chartSlabs:this.fixedDepositsAccountProductTemplate.accountChart.chartSlabs}],dateFormat:l,monthDayFormat:p,locale:e});this.fixedDepositsService.updateFixedDepositAccount(this.fixedDepositsAccountAndTemplate.id,f).subscribe(D=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-fixed-deposit-account"]],viewQuery:function(l,p){if(l&1&&(ht(ge,7),ht(xe,7),ht(Ce,7),ht(_e,7)),l&2){let f;vt(f=Dt())&&(p.fixedDepositsAccountDetailsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountTermsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountSettingsStep=f.first),vt(f=Dt())&&(p.fixedDepositAccountChargesStep=f.first)}},decls:24,vars:15,consts:[["fixedDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositsAccountProductTemplate","fixedDepositsAccountTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate"],[3,"fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositsAccountTemplate","fixedDepositsAccountProductTemplate","fixedDepositAccountData"]],template:function(l,p){if(l&1){let f=F();n(0,"div",1)(1,"mat-stepper",2,0),C(3,Ns,1,0,"ng-template",3)(4,Vs,1,0,"ng-template",4)(5,qs,1,0,"ng-template",5)(6,zs,1,0,"ng-template",6)(7,Hs,1,0,"ng-template",7),n(8,"mat-step",8),C(9,$s,2,3,"ng-template",9),n(10,"mifosx-fixed-deposit-account-details-step",10),M("fixedDepositsAccountProductTemplate",function(q){return S(f),A(p.setTemplate(q))}),o()(),n(11,"mat-step",8),C(12,Ls,2,3,"ng-template",9),g(13,"mifosx-fixed-deposit-account-terms-step",11),o(),n(14,"mat-step",8),C(15,Gs,2,3,"ng-template",9),g(16,"mifosx-fixed-deposit-account-settings-step",11),o(),n(17,"mat-step"),C(18,Us,2,3,"ng-template",9),g(19,"mifosx-fixed-deposit-account-interest-rate-chart-step",11),o(),n(20,"mat-step"),C(21,js,2,3,"ng-template",9),g(22,"mifosx-fixed-deposit-account-charges-step",12),o(),h(23,Ks,3,3,"mat-step",13),o()()}l&2&&(i(),d("linear",!1),i(7),d("stepControl",p.fixedDepositAccountDetailsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate),i(),d("stepControl",p.fixedDepositAccountTermsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(),d("stepControl",p.fixedDepositAccountSettingsForm),i(2),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate),i(3),d("fixedDepositsAccountTemplate",p.fixedDepositsAccountAndTemplate)("fixedDepositsAccountProductTemplate",p.fixedDepositsAccountProductTemplate)("fixedDepositAccountFormValid",p.fixedDepositAccountFormValidAndNotPristine),i(),v(p.fixedDepositAccountFormValidAndNotPristine?23:-1))},dependencies:[y,I,Ze,Je,ut,Xe,Ye,ge,xe,Ce,Ve,_e,qe,w],encapsulation:2})}}return t})();var Si=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountData(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var wi=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.parent.paramMap.get("fixedDepositAccountId"),p=e.paramMap.get("id");return this.fixedDepositsService.getFixedDepositsAccountTransaction(l,p)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var Ei=(()=>{class t{constructor(){this.savingsService=x($t),this.fixedDepositsService=x(j)}resolve(e){let l=e.paramMap.get("name"),p=e.paramMap.get("fixedDepositAccountId")||e.parent.parent.paramMap.get("fixedDepositAccountId");switch(l){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(p);case"Close":return this.fixedDepositsService.getFixedDepositsAccountClosureTemplate(p);case"Withdrawal":return this.fixedDepositsService.getFixedDepositsAccountTransactionTemplate(p);default:return}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var Bi=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.parent.parent.paramMap.get("clientId");return this.fixedDepositsService.getFixedDepositsAccountTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();var ki=(()=>{class t{constructor(){this.fixedDepositsService=x(j)}resolve(e){let l=e.paramMap.get("fixedDepositAccountId");return this.fixedDepositsService.getFixedDepositsAccountAndTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=Gt({token:t,factory:t.\u0275fac})}}return t})();function Qs(t,s){if(t&1&&(n(0,"span"),g(1,"mifosx-external-identifier",4),o()),t&2){let e=_();i(),d("externalId",_t(e.fixedDepositsAccountData.externalId))}}function Ys(t,s){t&1&&(n(0,"span"),a(1),r(2,"translate"),o()),t&2&&(i(),u(" ",c(2,1,"labels.inputs.Not Available")," "))}function Js(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),r(6,"dateFormat"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Closed On")),i(3),m(c(6,4,e.fixedDepositsAccountData.timeline.closedOnDate))}}function Xs(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Tax Group")),i(3),m(e.fixedDepositsAccountData.taxGroup.name)}}function Zs(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,2,"labels.inputs.Maturity Instructions")),i(3),m(E(6,4,e.fixedDepositsAccountData.onAccountClosure.value,"catalogs"))}}function tl(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td"),a(5),r(6,"translateKey"),o()()),t&2){let e=_();i(2),m(c(3,3,"labels.inputs.Pre-cloure Penal")),i(3),T(" ",e.fixedDepositsAccountData.preClosurePenalInterest," % on ",E(6,5,e.fixedDepositsAccountData.preClosurePenalInterestOnType.value,"catalogs")," ")}}function el(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td",5),a(5),r(6,"currency"),o()()),t&2){let e=_(2);i(2),m(c(3,2,"labels.inputs.Total Deposits")),i(3),u(" ",at(6,4,e.fixedDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2")," ")}}function il(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td",5),a(5),r(6,"currency"),o()()),t&2){let e=_(2);i(2),m(c(3,2,"labels.inputs.Total Withdrawals")),i(3),u(" ",at(6,4,e.fixedDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2")," ")}}function nl(t,s){if(t&1&&(n(0,"tr")(1,"td"),a(2),r(3,"translate"),o(),n(4,"td",5),a(5),r(6,"currency"),o()()),t&2){let e=_(2);i(2),m(c(3,2,"labels.inputs.Total Interest Earned")),i(3),u(" ",at(6,4,e.fixedDepositsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function ol(t,s){if(t&1&&(n(0,"div")(1,"h4",2),a(2),r(3,"translate"),o(),n(4,"table")(5,"tbody")(6,"tr")(7,"td"),a(8),r(9,"translate"),o(),n(10,"td",5),a(11),r(12,"currency"),o()(),n(13,"tr")(14,"td"),a(15),r(16,"translate"),o(),n(17,"td",5),a(18),r(19,"currency"),o()(),h(20,el,7,9,"tr"),h(21,il,7,9,"tr"),h(22,nl,7,9,"tr"),o()()()),t&2){let e=_();i(2),m(c(3,8,"labels.heading.Performance History")),i(6),m(c(9,10,"labels.inputs.Principal Amount")),i(3),u(" ",at(12,12,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),i(4),m(c(16,17,"labels.inputs.Maturity Amount")),i(3),u(" ",at(19,19,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")," "),i(2),v(e.fixedDepositsAccountData.summary.totalDeposits?20:-1),i(),v(e.fixedDepositsAccountData.summary.totalWithdrawals?21:-1),i(),v(e.fixedDepositsAccountData.summary.totalInterestEarned>=0?22:-1)}}function al(t,s){if(t&1&&(n(0,"div")(1,"h4",2),a(2),r(3,"translate"),o(),n(4,"table")(5,"tbody")(6,"tr")(7,"td"),a(8),r(9,"translate"),o(),n(10,"td",5),a(11),r(12,"currency"),o()(),n(13,"tr")(14,"td"),a(15),r(16,"translate"),o(),n(17,"td",5),a(18),r(19,"currency"),o()()()()()),t&2){let e=_();i(2),m(c(3,5,"labels.heading.Other Details")),i(6),m(c(9,7,"labels.inputs.Principal Amount")),i(3),u(" ",at(12,9,e.fixedDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),i(4),m(c(16,14,"labels.inputs.Maturity Amount")),i(3),u(" ",at(19,16,e.fixedDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")," ")}}var Ai=(()=>{class t{constructor(){this.route=x(N),this.router=x(W),this.route.parent.data.subscribe(e=>{this.fixedDepositsAccountData=e.fixedDepositsAccountData,this.currency=this.fixedDepositsAccountData.currency}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-general-tab"]],decls:91,vars:77,consts:[[1,"fixed-deposits-account-tables","layout-row","gap-2percent"],[1,"flex-49","layout-column","gap-4percent"],[1,"table-headers"],[1,"flex-49"],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(l,p){l&1&&(n(0,"div",0)(1,"div",1)(2,"div")(3,"h4",2),a(4),r(5,"translate"),o(),n(6,"table")(7,"tbody")(8,"tr")(9,"td"),a(10),r(11,"translate"),o(),n(12,"td"),h(13,Qs,2,2,"span"),h(14,Ys,3,3,"span"),o()(),n(15,"tr")(16,"td"),a(17),r(18,"translate"),o(),n(19,"td"),a(20),r(21,"dateFormat"),r(22,"translate"),o()(),h(23,Js,7,6,"tr"),n(24,"tr")(25,"td"),a(26),r(27,"translate"),o(),n(28,"td"),a(29),r(30,"translateKey"),o()(),n(31,"tr")(32,"td"),a(33),r(34,"translate"),o(),n(35,"td"),a(36),r(37,"dateFormat"),o()(),n(38,"tr")(39,"td"),a(40),r(41,"translate"),o(),n(42,"td"),a(43),r(44,"translateKey"),o()(),h(45,Xs,6,4,"tr"),h(46,Zs,7,7,"tr"),o()()(),n(47,"div")(48,"h4",2),a(49),r(50,"translate"),o(),n(51,"table")(52,"tbody")(53,"tr")(54,"td"),a(55),r(56,"translate"),o(),n(57,"td"),a(58),o()(),n(59,"tr")(60,"td"),a(61),r(62,"translate"),o(),n(63,"td"),a(64),r(65,"translateKey"),o()(),n(66,"tr")(67,"td"),a(68),r(69,"translate"),o(),n(70,"td"),a(71),r(72,"translateKey"),o()(),n(73,"tr")(74,"td"),a(75),r(76,"translate"),o(),n(77,"td"),a(78),r(79,"translateKey"),o()(),n(80,"tr")(81,"td"),a(82),r(83,"translate"),o(),n(84,"td"),a(85),r(86,"translateKey"),o()(),h(87,tl,7,8,"tr"),o()()()(),n(88,"div",3),h(89,ol,23,24,"div")(90,al,20,21,"div"),o()()),l&2&&(i(4),m(c(5,29,"labels.heading.Fixed Deposit Details")),i(6),m(c(11,31,"labels.inputs.External Id")),i(3),v(p.fixedDepositsAccountData.externalId?13:-1),i(),v(p.fixedDepositsAccountData.externalId?-1:14),i(3),m(c(18,33,"labels.inputs.Activated On")),i(3),u(" ",p.fixedDepositsAccountData.timeline.activatedOnDate?c(21,35,p.fixedDepositsAccountData.timeline.activatedOnDate):c(22,37,"labels.text.Not Activated")," "),i(3),v(p.fixedDepositsAccountData.timeline.closedOnDate?23:-1),i(3),m(c(27,39,"labels.inputs.Field Officer")),i(3),u(" ",p.fixedDepositsAccountData.fieldOfficerName?p.fixedDepositsAccountData.fieldOfficerName:E(30,41,"Unassigned","inputs")," "),i(4),m(c(34,44,"labels.inputs.Maturity Date")),i(3),u(" ",p.fixedDepositsAccountData.maturityDate?c(37,46,p.fixedDepositsAccountData.maturityDate):"N/A"," "),i(4),m(c(41,48,"labels.inputs.Deposit Period")),i(3),T(" ",p.fixedDepositsAccountData.depositPeriod,"\xA0",E(44,50,p.fixedDepositsAccountData.depositPeriodFrequency.value,"catalogs")," "),i(2),v(p.fixedDepositsAccountData.withHoldTax?45:-1),i(),v(p.fixedDepositsAccountData.onAccountClosure?46:-1),i(3),m(c(50,53,"labels.heading.Interest Details")),i(6),m(c(56,55,"labels.inputs.Interest Rate")),i(3),u("",p.fixedDepositsAccountData.nominalAnnualInterestRate," %"),i(3),m(c(62,57,"labels.inputs.Interest Compounding Period")),i(3),m(E(65,59,p.fixedDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),i(4),m(c(69,62,"labels.inputs.Interest Posting Period")),i(3),m(E(72,64,p.fixedDepositsAccountData.interestPostingPeriodType.value,"catalogs")),i(4),m(c(76,67,"labels.inputs.Interest Calculated Using")),i(3),m(E(79,69,p.fixedDepositsAccountData.interestCalculationType.value,"catalogs")),i(4),m(c(83,72,"labels.inputs.No. of Days in Year")),i(3),m(E(86,74,p.fixedDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),i(2),v(p.fixedDepositsAccountData.preClosurePenalApplicable?87:-1),i(2),v(!p.fixedDepositsAccountData.status.rejected&&!p.fixedDepositsAccountData.status.submittedAndPendingApproval?89:90))},dependencies:[y,I,Ji,se,yt,w,It],styles:[".fixed-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return t})();var rl=[{path:"",data:{title:"All Fixed Deposits",breadcrumb:"Fixed Deposits",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Fixed Deposit Account",breadcrumb:"Create Fixed Deposit Account"},component:Mi,resolve:{fixedDepositsAccountTemplate:Bi}},{path:":fixedDepositAccountId",data:{title:"Fixed Deposit Account View",routeParamBreadcrumb:"fixedDepositAccountId"},resolve:{fixedDepositsAccountData:Si},children:[{path:"",component:ai,resolve:{fixedDepositsAccountData:Si,savingsDatatables:Ii},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Ai,data:{title:"Fixed Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:ri,data:{title:"Fixed Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:pi,data:{title:"Fixed Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:li,data:{title:"Fixed Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:mi,data:{title:"Fixed Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:di,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:yi}}]}]},{path:"edit",data:{title:"Edit Fixed Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ti,resolve:{fixedDepositsAccountAndTemplate:ki}},{path:"transactions",data:{title:"Fixed Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:"account-transfers",loadChildren:()=>import("./account-transfers.module-3HW2IDTS.js").then(t=>t.AccountTransfersModule)},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:Pi,resolve:{fixedDepositsAccountTransaction:wi}}]}]},{path:"actions/:name",data:{title:"Fixed Deposits Account Actions",routeParamBreadcrumb:"name"},component:bi,resolve:{fixedDepositsAccountActionData:Ei}}]}]}],ln=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=Le({type:t})}static{this.\u0275inj=He({providers:[Si,yi,Ii,wi,Ei,Bi,ki],imports:[Oi.forChild(rl),Oi]})}}return t})();var Qx=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=Le({type:t})}static{this.\u0275inj=He({imports:[pn,en,nn,ln,ai,pi,li,mi,ri,di,bi,ui,fi,ni,ii,ze,gi,xi,Ci,Pi,ci,si,_i,hi,vi,Mi,ge,xe,_e,Ce,Ve,qe,Ti,Ai,Di]})}}return t})();export{Qx as FixedDepositsModule}; diff --git a/browser/index.html b/browser/index.html index 893842a73..5237ba0e4 100644 --- a/browser/index.html +++ b/browser/index.html @@ -57,5 +57,5 @@
- + diff --git a/browser/loans.module-IL7ZR3BL.js b/browser/loans.module-NGQPIAPW.js similarity index 99% rename from browser/loans.module-IL7ZR3BL.js rename to browser/loans.module-NGQPIAPW.js index 3d498be7a..22d12a0af 100644 --- a/browser/loans.module-IL7ZR3BL.js +++ b/browser/loans.module-NGQPIAPW.js @@ -1,4 +1,4 @@ -import{a as _1}from"./chunk-E77RWCNF.js";import{a as Yf,b as h1,c as Gr,d as Wr,e as Op,f as Ep}from"./chunk-EKHJTTW7.js";import{a as Ip,b as ld,c as C1,d as b1}from"./chunk-QZU3VMUE.js";import{a as g1}from"./chunk-SKSBMOXL.js";import{$ as hp,$a as ec,$d as ra,$e as yp,$f as Ap,Aa as ee,Ba as te,Bc as Vo,Bd as ge,Bg as u1,C as Pf,Cc as Uo,Cd as Ve,Cf as Qf,Da as X,Db as kf,Dc as Gn,De as Jf,Df as t1,Ea as Q,Eb as Sa,Ec as Kl,Ee as Xf,Ef as e1,Fb as wt,Fc as Ur,Fd as Je,G as sn,Ga as xt,Gc as Ho,Gd as _e,H as fp,Hc as Go,Hd as Wn,Ia as it,Id as Pe,Ig as Mp,Ja as P,Jd as On,Jg as Ri,K as A,Kg as f1,L as mt,Lc as pa,Ld as In,M as dt,Mc as Pt,Na as mi,Nc as Bf,Nd as Oi,Oa as di,Oc as qf,Od as Qe,Pa as ui,Pd as tn,Qa as Lt,Qc as Jl,Qd as en,Qe as Do,R as Af,Rc as de,Rd as Da,Sc as oe,Sd as En,Sf as n1,T as Vr,Td as qa,Tf as i1,Ua as c,Uc as jf,Ud as Ae,Uf as Va,Va as b,Vf as a1,Wa as v,Wb as Zl,Wc as we,Xa as $t,Xc as Gt,Xd as un,Y as Mf,Ya as Xs,Yc as he,Yf as o1,Za as Qs,Zc as Ee,Zd as Zf,Ze as ja,Zf as Pp,_ as od,_a as tc,_d as _i,_e as wo,_f as hn,ab as nc,ad as pe,ae as Kf,ag as Hr,b as Df,bb as ce,bd as zf,bf as Xl,bg as r1,c as wf,ca as o,cb as If,cd as Re,ce as _p,cf as Ql,cg as ns,da as Yl,dd as Mi,de as $o,df as ts,e as Tf,eb as Ut,ed as Wo,ef as es,eg as Mt,fb as La,fd as Le,ff as mo,ge as Cp,gf as za,gg as l1,ha as Of,hb as p,hc as Et,he as bp,hf as bn,ib as m,ic as Ff,id as Ne,ie as vp,if as vn,ja as Dt,jb as Ge,jd as Vf,jf as xn,ka as gp,kb as Ef,kc as le,kd as Uf,kf as Sp,lb as Ye,lc as ae,ld as je,lf as yn,mc as Rf,mf as Sn,na as k,nc as rd,ne as xp,nf as Dp,ng as s1,of as Dn,pa as oa,pd as Te,pf as wn,pg as c1,qb as ca,qc as Ba,qd as Hf,qf as wp,qg as la,ra as M,rc as Wt,rd as Tt,re as ma,rf as Tn,rg as Ti,sa as O,sb as Lf,sd as xe,sf as Pn,sg as ic,ta as Ce,td as Gf,tf as Tp,ua as ue,ud as Wf,uf as An,ug as p1,va as fe,vd as Oe,vg as m1,wa as x,xa as s,xb as Nf,xd as ze,xf as Li,ya as l,yd as $f,za as T,zg as d1}from"./chunk-AA5NALQN.js";import{a as ie,b as ve,d as Sf}from"./chunk-PHUH23IY.js";var Lp=class{constructor(n,e){this.setOptions(n,e),this.setButtons(n)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}get optionsPayment(){return this.optionPaymentArray}setButtons(n){switch(n){case"Active":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Foreclosure",icon:"heart-broken",taskPermissionName:"FORECLOSURE_LOAN"},{name:"Make Repayment",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"},{name:"Undo Disbursal",icon:"undo",taskPermissionName:"DISBURSALUNDO_LOAN"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Add Loan Charge",icon:"plus",taskPermissionName:"CREATE_LOANCHARGE"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_LOAN"},{name:"Modify Application",icon:"edit",taskPermissionName:"UPDATE_LOAN"},{name:"Reject",icon:"times",taskPermissionName:"REJECT_LOAN"}];break;case"Approved":this.buttonsArray=[{name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"},{name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"},{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_LOAN"}];break;case"Overpaid":this.buttonsArray=[{name:"Transfer Funds",icon:"exchange",taskPermissionName:"CREATE_ACCOUNTTRANSFER"},{name:"Credit Balance Refund",icon:"coins",taskPermissionName:"CREATE_CREDIT_BALANCE_REFUND"}];break;case"Closed (written off)":this.buttonsArray=[{name:"Recovery Payment",icon:"briefcase",taskPermissionName:"RECOVERYPAYMENT_LOAN"},{name:"Undo Write-off",icon:"undo",taskPermissionName:"UNDOWRITEOFF_LOAN"}];break;case"Closed (obligations met)":this.buttonsArray=[{name:"Goodwill Credit",icon:"coins",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",icon:"coins",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",icon:"coins",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",icon:"coins",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;default:this.buttonsArray=[]}}setOptions(n,e){switch(n){case"Active":this.optionArray=[{name:"Waive Interest",taskPermissionName:"WAIVEINTERESTPORTION_LOAN"},{name:"Reschedule",taskPermissionName:"CREATE_RESCHEDULELOAN"},{name:"Write Off",taskPermissionName:"WRITEOFF_LOAN"},{name:"Close (as Rescheduled)",taskPermissionName:"CLOSEASRESCHEDULED_LOAN"},{name:"Close",taskPermissionName:"CLOSE_LOAN"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Recover From Guarantor",taskPermissionName:"RECOVERGUARANTEES_LOAN"},{name:"Sell Loan",taskPermissionName:"SALE_LOAN"}],this.isContractTermination(e)||this.optionArray.push({name:"Contract Termination",taskPermissionName:"CONTRACT_TERMINATION_LOAN"}),this.optionPaymentArray=[{name:"Goodwill Credit",taskPermissionName:"CREATE_GOODWILL_TRANSACTION"},{name:"Interest Payment Waiver",taskPermissionName:"CREATE_INTERESTPAYMENTWAIVER_TRANSACTION"},{name:"Payout Refund",taskPermissionName:"CREATE_PAYOUT_REFUND"},{name:"Merchant Issued Refund",taskPermissionName:"CREATE_MERCHANT_ISSUED_REFUND"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_LOAN"},{name:"Delete",taskPermissionName:"DELETE_LOAN"},{name:"Add Collateral",taskPermissionName:"CREATE_COLLATERAL"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Reports",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;case"Approved":this.optionArray=[{name:"Add Loan Charge",taskPermissionName:"CREATE_LOANCHARGE"},{name:"View Guarantors",taskPermissionName:"READ_GUARANTOR"},{name:"Create Guarantor",taskPermissionName:"CREATE_GUARANTOR"},{name:"Loan Screen Report",taskPermissionName:"READ_LOAN"}],this.optionPaymentArray=[];break;default:this.optionArray=[],this.optionPaymentArray=[]}}addOption(n){this.optionArray.push(n)}addButton(n){this.buttonsArray.push(n)}isContractTermination(n){return n==null?!1:n.code==="loanSubStatus.loanSubStatusType.contractTermination"}};var d_=()=>["./general"],u_=()=>["./accountdetail"],f_=()=>["./repayment-schedule"],h_=()=>["./loan-documents"],g_=()=>["./original-schedule"],__=()=>["./transactions"],C_=()=>["./deferred-income"],b_=()=>["./buy-down-fees"],v_=()=>["./delinquencytags"],x_=()=>["./loan-collateral"],y_=()=>["./loan-tranche-details"],S_=()=>["./term-variations"],D_=()=>["./overdue-charges"],w_=()=>["./floating-interest-rates"],T_=()=>["./charges"],P_=()=>["./loan-reschedules"],A_=()=>["./notes"],M_=()=>["./standing-instruction"],O_=()=>["./external-asset-owner"],I_=t=>["./datatables",t];function E_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td")(5,"span",48),T(6,"i",49),l(),c(7),l()()),t&2){let e=P(2);o(2),v("",m(3,3,"labels.inputs.Delinquency Classification")," :"),o(4),x("ngClass",e.loanDelinquencyClassificationStyle),o(),v(" ",e.loanDetailsData==null?null:e.loanDetailsData.delinquencyRange.classification," ")}}function L_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td"),c(5),p(6,"formatNumber"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Past Due Days")," :"),o(3),b(m(6,4,e.loanDetailsData==null?null:e.loanDetailsData.delinquent.pastDueDays))}}function N_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td"),c(5),p(6,"formatNumber"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Delinquent Days")," :"),o(3),b(m(6,4,e.loanDetailsData==null?null:e.loanDetailsData.delinquent.delinquentDays))}}function k_(t,n){if(t&1&&(s(0,"div")(1,"table",47)(2,"tbody"),M(3,E_,8,5,"tr"),M(4,L_,7,6,"tr"),M(5,N_,7,6,"tr"),l()()()),t&2){let e=P();o(3),O(e.loanDetailsData.delinquencyRange?3:-1),o(),O(e.loanDetailsData.delinquent&&e.loanDetailsData.delinquent.pastDueDays>0?4:-1),o(),O(e.loanDetailsData.delinquent&&e.loanDetailsData.delinquent.delinquentDays>0&&e.loanDetailsData.delinquent.pastDueDays!==e.loanDetailsData.delinquent.delinquentDays?5:-1)}}function F_(t,n){if(t&1&&(s(0,"td",50),c(1),p(2,"currency"),l()),t&2){let e=P(3);o(),v(" ",Ye(2,1,e.loanDetailsData.summary.totalOverdue,e.currency.code,"symbol-narrow","1.2-2")," ")}}function R_(t,n){t&1&&(s(0,"td"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Provided")," "))}function B_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),M(4,F_,3,6,"td",50),M(5,R_,3,3,"td"),l()),t&2){let e=P(2);o(2),b(m(3,3,"labels.inputs.Arrears By")),o(2),O(e.loanDetailsData.summary.totalOverdue>=0?4:-1),o(),O(e.loanDetailsData.summary.totalOverdue>=0?-1:5)}}function q_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td"),c(5),p(6,"dateFormat"),l()()),t&2){let e=P(2);o(2),b(m(3,2,"labels.inputs.Arrears Since")),o(3),b(m(6,4,e.loanDetailsData.summary.overdueSinceDate))}}function j_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td",50),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),b(m(3,2,"labels.inputs.Overpaid By")),o(3),v(" ",Ye(6,4,e.loanDetailsData.totalOverpaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function z_(t,n){if(t&1&&(s(0,"div",39)(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",47)(5,"tbody")(6,"tr")(7,"td"),c(8),p(9,"translate"),l(),s(10,"td",50),c(11),p(12,"currency"),l()(),M(13,B_,6,5,"tr"),M(14,q_,7,6,"tr"),M(15,j_,7,9,"tr"),l()()()),t&2){let e=P();o(2),b(m(3,6,"labels.heading.Account Overview")),o(6),b(m(9,8,"labels.inputs.Current Balance")),o(3),v(" ",Ye(12,10,e.loanDetailsData.summary.totalOutstanding,e.currency.code,"symbol-narrow","1.2-2")," "),o(2),O(e.loanDisplayArrearsDelinquency<2?13:-1),o(),O(e.loanDetailsData.inArrears?14:-1),o(),O(e.loanDetailsData.totalOverpaid&&e.loanDetailsData.totalOverpaid>0?15:-1)}}function V_(t,n){if(t&1&&(s(0,"button",41)(1,"mat-icon",51),T(2,"fa-icon",52),l()()),t&2){P();let e=Lt(35);x("matMenuTriggerFor",e)}}function U_(t,n){if(t&1){let e=xt();s(0,"button",54),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.loanAction(a.name))}),s(1,"mat-icon",55),T(2,"fa-icon",56),l(),s(3,"span"),c(4),p(5,"translate"),l()()}if(t&2){let e=P().$implicit;o(2),x("icon",ce(e.icon)),o(2),b(m(5,3,"labels.menus."+e.name))}}function H_(t,n){if(t&1&&k(0,U_,6,5,"button",53),t&2){let e=n.$implicit;x("mifosxHasPermission",e.taskPermissionName)}}function G_(t,n){if(t&1){let e=xt();s(0,"button",54),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.loanAction(a.name))}),c(1),p(2,"translate"),l()}if(t&2){let e=P().$implicit;o(),v(" ",m(2,1,"labels.menus."+e.name)," ")}}function W_(t,n){if(t&1&&(s(0,"span"),k(1,G_,3,3,"button",53),l()),t&2){let e=n.$implicit;o(),x("mifosxHasPermission",e.taskPermissionName)}}function $_(t,n){if(t&1&&(X(0,43),s(1,"button",57),c(2),p(3,"translate"),l(),s(4,"mat-menu",null,6),ue(6,W_,2,1,"span",null,Ce),l(),Q()),t&2){let e=Lt(5),i=P();o(),x("matMenuTriggerFor",e),o(),b(m(3,2,"labels.menus.Payments")),o(4),fe(i.buttonConfig.optionsPayment)}}function Y_(t,n){if(t&1){let e=xt();s(0,"button",54),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.loanAction(a.name))}),c(1),p(2,"translate"),l()}if(t&2){let e=P().$implicit;o(),v(" ",m(2,1,"labels.menus."+e.name)," ")}}function Z_(t,n){if(t&1&&(s(0,"span"),k(1,Y_,3,3,"button",53),l()),t&2){let e=n.$implicit;o(),x("mifosxHasPermission",e.taskPermissionName)}}function K_(t,n){if(t&1&&(X(0,43),s(1,"button",57),c(2),p(3,"translate"),l(),s(4,"mat-menu",null,7),ue(6,Z_,2,1,"span",null,Ce),l(),Q()),t&2){let e=Lt(5),i=P();o(),x("matMenuTriggerFor",e),o(),b(m(3,2,"labels.menus.More")),o(4),fe(i.buttonConfig.options)}}function J_(t,n){if(t&1&&(s(0,"a",45,8),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,g_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Original Schedule")," ")}}function X_(t,n){if(t&1&&(s(0,"a",45,9),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,__))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Transactions")," ")}}function Q_(t,n){if(t&1&&(s(0,"a",45,10),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,C_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Deferred income")," ")}}function tC(t,n){if(t&1&&(s(0,"a",45,11),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,b_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.heading.Buy Down Fees")," ")}}function eC(t,n){if(t&1&&(s(0,"a",45,12),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,v_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Delinquency Tags")," ")}}function nC(t,n){if(t&1&&(s(0,"a",45,13),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,x_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Loan Collateral Details")," ")}}function iC(t,n){if(t&1&&(s(0,"a",45,14),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,y_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Loan Tranche Details")," ")}}function aC(t,n){if(t&1&&(s(0,"a",45,15),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,S_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Term Variations")," ")}}function oC(t,n){if(t&1&&(s(0,"a",45,16),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,D_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Overdue Charges")," ")}}function rC(t,n){if(t&1&&(s(0,"a",45,17),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,w_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Floating Interest Rates")," ")}}function lC(t,n){if(t&1&&(s(0,"a",45,18),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,T_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Charges")," ")}}function sC(t,n){if(t&1&&(s(0,"a",45,19),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,P_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Loan Reschedules")," ")}}function cC(t,n){if(t&1&&(s(0,"a",45,20),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,A_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function pC(t,n){if(t&1&&(s(0,"a",45,21),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,M_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Standing Instruction")," ")}}function mC(t,n){if(t&1&&(s(0,"a",45,22),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,O_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.External Asset Owner")," ")}}function dC(t,n){if(t&1&&(s(0,"a",45,23),c(2),l()),t&2){let e=Lt(1),i=P().$implicit;x("routerLink",La(3,I_,i.registeredTableName))("active",e.isActive),o(2),v(" ",i.registeredTableName," ")}}function uC(t,n){if(t&1&&k(0,dC,3,5,"a",46),t&2){let e=n.$implicit;x("mifosxHasPermission","READ_"+e.registeredTableName)}}var Np=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansService=A(Mt),this.translateService=A(pa),this.dialog=A(Gn),this.disburseTransactionNo=0,this.loanDelinquencyClassificationStyle="",this.loanSubStatus=null,this.loanReAged=!1,this.loanReAmortized=!1;let e=this.loansService;this.route.data.subscribe(i=>{this.loanDetailsData=i.loanDetailsData,this.loanDatatables=i.loanDatatables,this.loanDisplayArrearsDelinquency=i.loanArrearsDelinquencyConfig.value||0,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.currency=this.loanDetailsData.currency,e.saveLoanDisbursementDetailsData(this.loanDetailsData.disbursementDetails),this.loanStatus.active&&this.loanDetailsData.transactions.forEach(a=>{a.manuallyReversed||(a.type.reAge?this.loanReAged=!0:a.type.reAmortize&&(this.loanReAmortized=!0))}),this.setConditionalButtons()}),this.loanId=this.route.snapshot.params.loanId,this.clientId=this.loanDetailsData.clientId}ngOnInit(){this.route.params.subscribe(e=>{this.loanId!=e.loanId&&(this.loanId=e.loanId,this.reload())}),this.recalculateInterest=this.loanDetailsData.recalculateInterest||!0,this.status=this.loanDetailsData.status.value,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.loanStatus.active&&this.loanDetailsData.multiDisburseLoan&&this.loanDetailsData&&this.loanDetailsData.transactions&&this.loanDetailsData.transactions.forEach(e=>{e.type.disbursement&&this.disburseTransactionNo++}),this.setConditionalButtons(),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center"),this.loanDelinquencyClassification()}setConditionalButtons(){this.buttonConfig=new Lp(this.status,this.loanSubStatus),this.status==="Submitted and pending approval"?(this.buttonConfig.addOption({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.isVariableInstallmentsAllowed&&this.buttonConfig.addOption({name:"Edit Repayment Schedule",icon:"edit",taskPermissionName:"ADJUST_REPAYMENT_SCHEDULE"})):this.status==="Approved"?this.buttonConfig.addButton({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}):this.status==="Active"?(this.loanDetailsData.enableBuyDownFee&&this.buttonConfig.addButton({name:"Buy Down Fee",icon:"plus",taskPermissionName:"BUYDOWNFEE_LOAN"}),this.loanDetailsData.enableIncomeCapitalization&&this.buttonConfig.addButton({name:"Capitalized Income",icon:"coins",taskPermissionName:"CAPITALIZEDINCOME_LOAN"}),(this.loanDetailsData.canDisburse||this.loanDetailsData.multiDisburseLoan)&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.canDisburse&&this.buttonConfig.addButton({name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"}),this.loanDetailsData.multiDisburseLoan&&this.disburseTransactionNo>1&&this.buttonConfig.addButton({name:"Undo Last Disbursal",icon:"undo",taskPermissionName:"DISBURSALLASTUNDO_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Add Interest Pause",icon:"calendar",taskPermissionName:"CREATE_INTEREST_PAUSE"}),this.loanDetailsData.loanOfficerName||this.buttonConfig.addButton({name:"Assign Loan Officer",icon:"user-tie",taskPermissionName:"UPDATELOANOFFICER_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Prepay Loan",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"}),this.loanDetailsData.chargedOff?this.buttonConfig.addButton({name:"Undo Charge-Off",icon:"undo",taskPermissionName:"UNDOCHARGEOFF_LOAN"}):this.buttonConfig.addButton({name:"Charge-Off",icon:"coins",taskPermissionName:"CHARGEOFF_LOAN"}),this.loanReAged?this.buttonConfig.addButton({name:"Undo Re-Age",icon:"undo",taskPermissionName:"UNDO_REAGE_LOAN"}):this.buttonConfig.addButton({name:"Re-Age",icon:"calendar",taskPermissionName:"REAGE_LOAN"}),this.loanReAmortized?this.buttonConfig.addButton({name:"Undo Re-Amortize",icon:"undo",taskPermissionName:"UNDO_REAMORTIZE_LOAN"}):this.buttonConfig.addButton({name:"Re-Amortize",icon:"calendar-alt",taskPermissionName:"REAMORTIZE_LOAN"})):(this.status==="Closed (obligations met)"||this.status==="Overpaid")&&(this.loanDetailsData.multiDisburseLoan&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),Gr.isAdvancedPaymentAllocationStrategy(this.loanDetailsData.transactionProcessingStrategyCode)&&this.buttonConfig.addButton({name:"Reschedule",icon:"calendar",taskPermissionName:"CREATE_RESCHEDULELOAN"}))}loanAction(e){switch(e){case"Recover From Guarantor":this.recoverFromGuarantor();break;case"Delete":this.deleteLoanAccount();break;case"Modify Application":this.router.navigate(["edit-loans-account"],{relativeTo:this.route});break;case"Transfer Funds":let i={loanId:this.loanId,accountType:"fromloans"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:i});break;case"Undo Re-Age":case"Undo Re-Amortize":case"Undo Charge-Off":this.undoLoanAction(e);break;default:let a={relativeTo:this.route,state:{data:this.loanDetailsData}};this.router.navigate(["actions",e],a);break}}recoverFromGuarantor(){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Recover from Guarantor"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want recover from Guarantor"),type:"Mild"}}).afterClosed().subscribe(i=>{i.confirm&&this.loansService.loanActionButtons(this.loanId,"recoverGuarantees").subscribe(()=>{this.reload()})})}loanDelinquencyClassification(){this.loanDelinquencyClassificationStyle="",this.loanDetailsData.delinquent&&this.loanDetailsData.delinquent.delinquencyPausePeriods&&this.loanDetailsData.delinquent.delinquencyPausePeriods.some(e=>{e.active&&(this.loanDelinquencyClassificationStyle="fa fa-stop status-pending")})}undoLoanAction(e){e=e.replace("Undo ",""),this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction type")+" "+this.translateService.instant("labels.menus."+e)}}).afterClosed().subscribe(a=>{if(a.confirm){let r="";switch(e){case"Re-Age":r="undoReAge";break;case"Re-Amortize":r="undoReAmortize";break;case"Charge-Off":r="undo-charge-off";break}this.loansService.executeLoansAccountTransactionsCommand(String(this.loanId),r,{}).subscribe(()=>{this.reload()})}})}iconLoanStatusColor(){return this.loanDetailsData.chargedOff?"loanStatusType.chargeoff":this.isContractTermination(this.loanSubStatus)?"loanSubStatusType.contractTermination":this.loanDetailsData.inArrears?"loanStatusType.activeOverdue":this.loanDetailsData.status.code}loanStatusTooltip(){return this.loanDetailsData.chargedOff?"Chargeoff":this.loanDetailsData.inArrears?"activeOverdue":this.loanDetailsData.status.code}loanSubStatusTooltip(){return this.isContractTermination(this.loanSubStatus)?"contractTermination":""}deleteLoanAccount(){this.dialog.open(ra,{data:{deleteContext:`with loan id: ${this.loanId}`}}).afterClosed().subscribe(i=>{i.delete&&this.loansService.deleteLoanAccount(this.loanId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}reload(){let e=this.clientId,i=this.router.url;this.router.navigateByUrl(`/clients/${e}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}isContractTermination(e){return e==null?!1:e.code==="loanSubStatus.loanSubStatusType.contractTermination"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-view"]],decls:78,vars:71,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["accountdetail","routerLinkActive"],["repaymentSchedule","routerLinkActive"],["loanDocuments","routerLinkActive"],["tabPanel",""],["Payments","matMenu"],["More","matMenu"],["originalSchedule","routerLinkActive"],["transactions","routerLinkActive"],["deferredIncome","routerLinkActive"],["buyDownFees","routerLinkActive"],["delinquencytags","routerLinkActive"],["loanCollateralDetails","routerLinkActive"],["loanTrancheDetails","routerLinkActive"],["termVariations","routerLinkActive"],["overduecharges","routerLinkActive"],["floatingInterestRates","routerLinkActive"],["charges","routerLinkActive"],["loanReschedules","routerLinkActive"],["notes","routerLinkActive"],["standingInstruction","routerLinkActive"],["externalAssetOwner","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["iconFile","account_placeholder","iconName","LOAN_ACCOUNT","iconWidth","210",3,"iconClass","matTooltip"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"matTooltip","ngClass"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"loans-overview"],[1,"m-r-10"],[1,"m-l-5"],[1,"loans-overview","mat-typography","flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["mat-menu-item",""],[1,"loan-span"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[1,"account-overview"],[1,"m-r-3"],[3,"ngClass"],[1,"r-amount"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"]],template:function(i,a){if(i&1&&(s(0,"mat-card",24)(1,"mat-card-header",25)(2,"mat-card-title-group",26)(3,"div",27)(4,"div"),T(5,"mifosx-svg-icon",28),p(6,"translate"),l()(),s(7,"div",29)(8,"mat-card-title")(9,"div",30)(10,"div",31)(11,"h3"),T(12,"i",32),p(13,"translate"),p(14,"statusLookup"),s(15,"span",33),c(16),p(17,"translate"),l(),s(18,"span",33),T(19,"mifosx-long-text",34),l(),T(20,"mifosx-account-number",35),l(),s(21,"span",36)(22,"span",37),c(23),p(24,"translate"),p(25,"translate"),l(),c(26),s(27,"span",38),c(28),l(),T(29,"br"),l(),M(30,k_,6,3,"div"),l(),M(31,z_,16,15,"div",39),s(32,"div",40),M(33,V_,3,1,"button",41),l()()()(),s(34,"mat-menu",null,0),ue(36,H_,1,1,"button",42,Ce),M(38,$_,8,4,"ng-container",43),M(39,K_,8,4,"ng-container",43),l()()(),s(40,"mat-card-content")(41,"nav",44)(42,"a",45,1),c(44),p(45,"translate"),l(),s(46,"a",45,2),c(48),p(49,"translate"),l(),M(50,J_,4,6,"a",45),s(51,"a",45,3),c(53),p(54,"translate"),l(),M(55,X_,4,6,"a",45),M(56,Q_,4,6,"a",45),M(57,tC,4,6,"a",45),M(58,eC,4,6,"a",45),M(59,nC,4,6,"a",45),M(60,iC,4,6,"a",45),M(61,aC,4,6,"a",45),M(62,oC,4,6,"a",45),M(63,rC,4,6,"a",45),M(64,lC,4,6,"a",45),M(65,sC,4,6,"a",45),s(66,"a",45,4),c(68),p(69,"translate"),l(),k(70,cC,4,6,"a",46),M(71,pC,4,6,"a",45),M(72,mC,4,6,"a",45),ue(73,uC,1,1,"a",45,Ce),l(),s(75,"mat-tab-nav-panel",null,5),T(77,"router-outlet"),l()()()),i&2){let r=Lt(43),u=Lt(47),d=Lt(52),g=Lt(67),_=Lt(76);o(5),x("matTooltip",ce(m(6,47,"tooltips.Loan Account"))),o(7),x("matTooltip",ce(m(13,49,"labels.status."+a.loanDetailsData.status.value)))("ngClass",m(14,51,a.iconLoanStatusColor())),o(4),v("",m(17,53,"labels.heading.Loan Product")," :"),o(3),x("textValue",ce(a.loanDetailsData.loanProductName)),o(),x("accountNo",ce(a.loanDetailsData.accountNo)),o(3),$t("",m(24,55,"labels.text."+a.entityType)," ",m(25,57,"labels.inputs.name")," :"),o(3),v(" ",a.loanDetailsData.clientName||a.loanDetailsData.group.name),o(2),v("(",a.loanDetailsData.clientAccountNo||a.loanDetailsData.group.accountNo,")"),o(2),O(a.loanDisplayArrearsDelinquency!==1?30:-1),o(),O(a.loanDetailsData.summary?31:-1),o(2),O(a.buttonConfig.singleButtons.length>0?33:-1),o(3),fe(a.buttonConfig.singleButtons),o(2),O(a.buttonConfig.optionsPayment.length?38:-1),o(),O(a.buttonConfig.options.length?39:-1),o(2),x("tabPanel",_),o(),x("routerLink",Ut(67,d_))("active",r.isActive),o(2),v(" ",m(45,59,"labels.inputs.General")," "),o(2),x("routerLink",Ut(68,u_))("active",u.isActive),o(2),v(" ",m(49,61,"labels.inputs.Account Details")," "),o(2),O(a.loanDetailsData.originalSchedule?50:-1),o(),x("routerLink",Ut(69,f_))("active",d.isActive),o(2),v(" ",m(54,63,"labels.inputs.Repayment Schedule")," "),o(2),O(a.loanDetailsData.transactions?55:-1),o(),O(a.loanDetailsData.enableIncomeCapitalization?56:-1),o(),O(a.loanDetailsData.enableBuyDownFee?57:-1),o(),O(a.loanDetailsData.status.active?58:-1),o(),O(a.loanDetailsData.collateral?59:-1),o(),O(a.loanDetailsData.multiDisburseLoan?60:-1),o(),O(a.loanDetailsData.loanTermVariations?61:-1),o(),O(a.loanDetailsData.overdueCharges.length>0?62:-1),o(),O(a.loanDetailsData.isLoanProductLinkedToFloatingRate?63:-1),o(),O(a.loanDetailsData.charges?64:-1),o(),O(a.loanDetailsData.status.active||a.loanDetailsData.status.closed||a.loanDetailsData.status.overpaid?65:-1),o(),x("routerLink",Ut(70,h_))("active",g.isActive),o(2),v(" ",m(69,65,"labels.inputs.Loan Documents")," "),o(2),x("mifosxHasPermission","READ_LOANNOTE"),o(),O(a.loanDetailsData.clientId?71:-1),o(),O(a.loanDetailsData.status.active?72:-1),o(),fe(a.loanDatatables)}},dependencies:[wt,ca,Tt,ae,xe,Oe,Ae,$f,Wf,m1,Oi,Gf,Mp,d1,Ba,vp,xp,un,bp,Cp,Qf,t1,Rf,e1,Ff,Sa,En,Pt,Ap,hn],styles:[".loans-overview[_ngcontent-%COMP%]{font-size:14px}.account-overview[_ngcontent-%COMP%]{min-width:80%;font-weight:400}"]})}}return t})();function fC(t,n){if(t&1&&(s(0,"h3"),c(1),p(2,"translate"),l(),s(3,"div",1)(4,"table")(5,"tbody")(6,"tr")(7,"td",2)(8,"b"),c(9),p(10,"translate"),l()(),s(11,"td",3),c(12),p(13,"formatNumber"),l(),s(14,"td",2)(15,"b"),c(16),p(17,"translate"),l()(),s(18,"td",3),c(19),p(20,"dateFormat"),l()()()()()),t&2){let e=P();o(),b(m(2,5,"labels.heading.Performance History")),o(8),v("",m(10,7,"labels.inputs.Number of Repayments")," :"),o(3),v(" ",m(13,9,e.loanDetails==null?null:e.loanDetails.numberOfRepayments)," "),o(4),v("",m(17,11,"labels.inputs.Maturity Date")," :"),o(3),v(" ",m(20,13,e.loanDetails==null?null:e.loanDetails.timeline.expectedMaturityDate)," ")}}function hC(t,n){t&1&&T(0,"th",21)}function gC(t,n){if(t&1&&(s(0,"td",22),c(1),l()),t&2){let e=n.$implicit;o(),b(e.property)}}function _C(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Original")))}function CC(t,n){if(t&1&&(s(0,"td",24),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.original,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function bC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Paid")))}function vC(t,n){if(t&1&&(s(0,"td",25),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.paid,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function xC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Credit Adjustments")," "))}function yC(t,n){if(t&1&&(s(0,"td",26),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.adjustment,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function SC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Waived")))}function DC(t,n){if(t&1&&(s(0,"td",25),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.waived,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function wC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Written Off")))}function TC(t,n){if(t&1&&(s(0,"td",25),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.writtenOff,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function PC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Outstanding")))}function AC(t,n){if(t&1&&(s(0,"td",24),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.outstanding,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function MC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Over Due")))}function OC(t,n){if(t&1&&(s(0,"td",24),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.overdue,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function IC(t,n){t&1&&T(0,"tr",27)}function EC(t,n){t&1&&T(0,"tr",28)}function LC(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",4),X(5,5),k(6,hC,1,0,"th",6)(7,gC,2,1,"td",7),Q(),X(8,8),k(9,_C,3,3,"th",9)(10,CC,3,6,"td",10),Q(),X(11,11),k(12,bC,3,3,"th",9)(13,vC,3,6,"td",12),Q(),X(14,13),k(15,xC,3,3,"th",9)(16,yC,3,6,"td",14),Q(),X(17,15),k(18,SC,3,3,"th",9)(19,DC,3,6,"td",12),Q(),X(20,16),k(21,wC,3,3,"th",9)(22,TC,3,6,"td",12),Q(),X(23,17),k(24,PC,3,3,"th",9)(25,AC,3,6,"td",10),Q(),X(26,18),k(27,MC,3,3,"th",9)(28,OC,3,6,"td",10),Q(),k(29,IC,1,0,"tr",19)(30,EC,1,0,"tr",20),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Loan Summary")),o(2),x("dataSource",e.dataSource),o(25),x("matHeaderRowDef",e.loanSummaryColumns),o(),x("matRowDefColumns",e.loanSummaryColumns)}}function NC(t,n){if(t&1&&(s(0,"td",22),c(1),p(2,"translate"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,"labels.inputs."+e.key))}}function kC(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P(4);o(),v(" ",m(2,1,e.loanDetails.timeline.actualDisbursementDate)," ")}}function FC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function RC(t,n){if(t&1&&(M(0,kC,3,3,"span"),M(1,FC,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.timeline.actualDisbursementDate?0:-1),o(),O(e.loanDetails.timeline.actualDisbursementDate?-1:1)}}function BC(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(4);o(),v(" ",e.loanDetails.loanPurposeName," ")}}function qC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function jC(t,n){if(t&1&&(M(0,BC,2,1,"span"),M(1,qC,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.loanPurposeName?0:-1),o(),O(e.loanDetails.loanPurposeName?-1:1)}}function zC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function VC(t,n){t&1&&T(0,"span")}function UC(t,n){if(t&1&&(s(0,"span"),c(1),M(2,VC,1,0,"span"),l()),t&2){let e=P(4);o(),v(" ",e.loanDetails.loanOfficerName," \xA0 "),o(),O(e.loanDetails.loanOfficerName?2:-1)}}function HC(t,n){if(t&1&&(M(0,zC,3,3,"span"),M(1,UC,3,2,"span")),t&2){let e=P(3);O(e.loanDetails.loanOfficerName?-1:0),o(),O(e.loanDetails.loanOfficerName?1:-1)}}function GC(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(3);o(),$t(" ",e.loanDetails.currency.name," ",e.loanDetails.currency.code," ")}}function WC(t,n){if(t&1&&(s(0,"span"),T(1,"mifosx-external-identifier",31),l()),t&2){let e=P(4);o(),x("externalId",ce(e.loanDetails.externalId))}}function $C(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function YC(t,n){if(t&1&&(M(0,WC,2,2,"span"),M(1,$C,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.externalId?0:-1),o(),O(e.loanDetails.externalId?-1:1)}}function ZC(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2).$implicit;o(),b(e.value)}}function KC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Not Available")))}function JC(t,n){if(t&1&&(M(0,ZC,2,1,"span"),M(1,KC,3,3,"span")),t&2){let e=P().$implicit;O(e.value?0:-1),o(),O(e.value?-1:1)}}function XC(t,n){if(t&1&&c(0),t&2){let e=P().$implicit;v(" ",e.value," ")}}function QC(t,n){if(t&1&&(s(0,"td",22),M(1,RC,2,2),M(2,jC,2,2),M(3,HC,2,2),M(4,GC,2,2,"span"),M(5,YC,2,2),M(6,JC,2,2),M(7,XC,1,1),l()),t&2){let e=n.$implicit;o(),O(e.key==="Disbursement Date"?1:-1),o(),O(e.key==="Loan Purpose"?2:-1),o(),O(e.key==="Loan Officer"?3:-1),o(),O(e.key==="Currency"?4:-1),o(),O(e.key==="External Id"?5:-1),o(),O(e.key==="Write-off Reason"?6:-1),o(),O(e.key==="Proposed Amount"||e.key==="Approved Amount"||e.key==="Disburse Amount"?7:-1)}}function tb(t,n){t&1&&T(0,"tr",28)}function eb(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",4),X(5,29),k(6,NC,3,3,"td",7),Q(),X(7,30),k(8,QC,8,7,"td",7),Q(),k(9,tb,1,0,"tr",20),l()()),t&2){let e=P();o(2),b(m(3,3,"labels.heading.Loan Details")),o(2),x("dataSource",e.detailsDataSource),o(5),x("matRowDefColumns",e.loanDetailsColumns)}}function nb(t,n){if(t&1&&(s(0,"td",22),c(1),p(2,"translate"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,"labels.inputs."+e.key))}}function ib(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P(4);o(),v(" ",m(2,1,e.loanDetails.timeline.actualDisbursementDate)," ")}}function ab(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function ob(t,n){if(t&1&&(M(0,ib,3,3,"span"),M(1,ab,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.timeline.actualDisbursementDate?0:-1),o(),O(e.loanDetails.timeline.actualDisbursementDate?-1:1)}}function rb(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function lb(t,n){t&1&&T(0,"span")}function sb(t,n){if(t&1&&(s(0,"span"),c(1),M(2,lb,1,0,"span"),l()),t&2){let e=P(4);o(),v(" ",e.loanDetails.loanOfficerName," \xA0 "),o(),O(e.loanDetails.loanOfficerName?2:-1)}}function cb(t,n){if(t&1&&(M(0,rb,3,3,"span"),M(1,sb,3,2,"span")),t&2){let e=P(3);O(e.loanDetails.loanOfficerName?-1:0),o(),O(e.loanDetails.loanOfficerName?1:-1)}}function pb(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(3);o(),$t(" ",e.loanDetails.currency.name," ",e.loanDetails.currency.code," ")}}function mb(t,n){if(t&1&&(s(0,"span"),T(1,"mifosx-external-identifier",31),l()),t&2){let e=P(4);o(),x("externalId",ce(e.loanDetails.externalId))}}function db(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function ub(t,n){if(t&1&&(M(0,mb,2,2,"span"),M(1,db,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.externalId?0:-1),o(),O(e.loanDetails.externalId?-1:1)}}function fb(t,n){if(t&1&&(s(0,"td",22),M(1,ob,2,2),M(2,cb,2,2),M(3,pb,2,2,"span"),M(4,ub,2,2),l()),t&2){let e=n.$implicit;o(),O(e.key==="Disbursement Date"?1:-1),o(),O(e.key==="Loan Officer"?2:-1),o(),O(e.key==="Currency"?3:-1),o(),O(e.key==="External Id"?4:-1)}}function hb(t,n){t&1&&T(0,"tr",28)}function gb(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",4),X(5,29),k(6,nb,3,3,"td",7),Q(),X(7,30),k(8,fb,5,4,"td",7),Q(),k(9,hb,1,0,"tr",20),l()()),t&2){let e=P();o(2),b(m(3,3,"labels.heading.Loan Details")),o(2),x("dataSource",e.detailsDataSource),o(5),x("matRowDefColumns",e.loanDetailsColumns)}}function _b(t,n){if(t&1&&(s(0,"span",35),c(1),l()),t&2){let e=P(2);o(),v(" ",e.loanDetails.loanPurposeName," ")}}function Cb(t,n){t&1&&(s(0,"span",35),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Provided")," "))}function bb(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",35),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Approved Amount"),":"),o(3),b(Ye(6,4,e.loanDetails.approvedPrincipal,e.currencyCode,"symbol-narrow","1.2-2"))}}function vb(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",35),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Disburse Amount"),":"),o(3),b(Ye(6,4,e.loanDetails.principal,e.currencyCode,"symbol-narrow","1.2-2"))}}function xb(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",35),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Balloon Repayment Amount"),":"),o(3),b(Ye(6,4,e.loanDetails.balloonRepaymentAmount,e.currencyCode,"symbol-narrow","1.2-2"))}}function yb(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"div",32)(5,"div",33)(6,"div",34)(7,"span",35),c(8),p(9,"translate"),l(),M(10,_b,2,1,"span",35),M(11,Cb,3,3,"span",35),l(),s(12,"div",34)(13,"span",35),c(14),p(15,"translate"),l(),s(16,"span",35),c(17),p(18,"currency"),l()(),M(19,bb,7,9,"div",34),M(20,vb,7,9,"div",34),M(21,xb,7,9,"div",34),s(22,"div",34)(23,"span",35),c(24),p(25,"translate"),l(),s(26,"span",35),c(27),p(28,"translate"),l()()()()()),t&2){let e=P();o(2),b(m(3,11,"labels.heading.Loan Purpose")),o(6),v("",m(9,13,"labels.inputs.Loan Purpose"),":"),o(2),O(e.loanDetails.loanPurposeName?10:-1),o(),O(e.loanDetails.loanPurposeName?-1:11),o(3),v("",m(15,15,"labels.inputs.Proposed Amount"),":"),o(3),b(Ye(18,17,e.loanDetails.proposedPrincipal,e.currencyCode,"symbol-narrow","1.2-2")),o(2),O(e.showApprovedAmountBasedOnStatus()?19:-1),o(),O(e.showDisbursedAmountBasedOnStatus()?20:-1),o(),O(e.loanDetails.balloonRepaymentAmount>0?21:-1),o(3),v("",m(25,22,"labels.inputs.Arrears By"),":"),o(3),b(m(28,24,"labels.inputs.Not Provided"))}}var kp=(()=>{class t{constructor(){this.route=A(Et),this.loanSummaryColumns=["Empty","Original","Paid","Waived","Written Off","Outstanding","Over Due"],this.loanDetailsColumns=["Key","Value"],this.showDisbursedAmountBasedOnStatus=function(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected"||this.status==="Approved")},this.route.parent.data.subscribe(e=>{this.loanDetails=e.loanDetailsData,this.currencyCode=this.loanDetails.currency.code,this.loanDetails.transactions&&this.loanDetails.transactions.some(i=>{if(i.type.code==="loanTransactionType.chargeback"){this.loanSummaryColumns=["Empty","Original","Adjustments","Paid","Waived","Written Off","Outstanding","Over Due"];return}})})}ngOnInit(){this.status=this.loanDetails.value,this.loanDetails.summary?(this.setloanSummaryTableData(),this.setloanDetailsTableData()):this.setloanNonDetailsTableData()}setloanSummaryTableData(){this.loanSummaryTableData=[{property:"Principal",original:this.loanDetails.summary.totalPrincipal,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.principalPaid,waived:this.loanDetails.summary.principalWaived||0,writtenOff:this.loanDetails.summary.principalWrittenOff,outstanding:this.loanDetails.summary.principalOutstanding,overdue:this.loanDetails.summary.principalOverdue},{property:"Interest",original:this.loanDetails.summary.interestCharged,adjustment:"0",paid:this.loanDetails.summary.interestPaid,waived:this.loanDetails.summary.interestWaived,writtenOff:this.loanDetails.summary.interestWrittenOff,outstanding:this.loanDetails.summary.interestOutstanding,overdue:this.loanDetails.summary.interestOverdue},{property:"Fees",original:this.loanDetails.summary.feeChargesCharged,adjustment:"0",paid:this.loanDetails.summary.feeChargesPaid,waived:this.loanDetails.summary.feeChargesWaived,writtenOff:this.loanDetails.summary.feeChargesWrittenOff,outstanding:this.loanDetails.summary.feeChargesOutstanding,overdue:this.loanDetails.summary.feeChargesOverdue},{property:"Penalties",original:this.loanDetails.summary.penaltyChargesCharged,adjustment:"0",paid:this.loanDetails.summary.penaltyChargesPaid,waived:this.loanDetails.summary.penaltyChargesWaived,writtenOff:this.loanDetails.summary.penaltyChargesWrittenOff,outstanding:this.loanDetails.summary.penaltyChargesOutstanding,overdue:this.loanDetails.summary.penaltyChargesOverdue},{property:"Total",original:this.loanDetails.summary.totalExpectedRepayment,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.totalRepayment,waived:this.loanDetails.summary.totalWaived,writtenOff:this.loanDetails.summary.totalWrittenOff,outstanding:this.loanDetails.summary.totalOutstanding,overdue:this.loanDetails.summary.totalOverdue}],this.dataSource=new Li(this.loanSummaryTableData)}setloanDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Loan Purpose"},{key:"Loan Officer"},{key:"Currency"},{key:"External Id"},{key:"Proposed Amount",value:this.loanDetails.proposedPrincipal},{key:"Approved Amount",value:this.loanDetails.approvedPrincipal},{key:"Disburse Amount",value:this.loanDetails.principal}],this.loanDetails.writeOffReason&&this.loanDetailsTableData.push({key:"Write-off Reason",value:this.loanDetails.writeOffReason}),this.detailsDataSource=new Li(this.loanDetailsTableData)}setloanNonDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Currency"},{key:"Loan Officer"},{key:"External Id"}],this.detailsDataSource=new Li(this.loanDetailsTableData)}showApprovedAmountBasedOnStatus(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-general-tab"]],decls:6,vars:5,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","performance-history-container"],[1,"flex-25"],[1,"flex-25","left"],["mat-table","",3,"dataSource"],["matColumnDef","Empty"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Original"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","Paid"],["mat-cell","","class","r-amount amount-minus",4,"matCellDef"],["matColumnDef","Adjustments"],["mat-cell","","class","r-amount amount-plus",4,"matCellDef"],["matColumnDef","Waived"],["matColumnDef","Written Off"],["matColumnDef","Outstanding"],["matColumnDef","Over Due"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-cell","",1,"r-amount","amount-minus"],["mat-cell","",1,"r-amount","amount-plus"],["mat-header-row",""],["mat-row",""],["matColumnDef","Key"],["matColumnDef","Value"],["completed","true",3,"externalId"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"flex-contents"],[1,"flex-50"]],template:function(i,a){i&1&&(s(0,"div",0),M(1,fC,21,15),M(2,LC,31,6,"div"),M(3,eb,10,5,"div"),M(4,gb,10,5,"div"),M(5,yb,29,26,"div"),l()),i&2&&(o(),O(a.loanDetails.summary?1:-1),o(),O(a.loanDetails.summary?2:-1),o(),O(a.loanDetails.summary?3:-1),o(),O(a.loanDetails.summary?-1:4),o(),O(a.loanDetails.summary?-1:5))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Va,Sa,En,Pt,hn],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();function Sb(t,n){if(t&1&&(ee(0,"span")(1,"span",4),c(2),p(3,"translate"),te(),c(4),ee(5,"span",4),c(6),p(7,"translateKey"),te()()),t&2){let e=P(2);o(2),b(m(3,3,"labels.commons.on")),o(2),v("",e.loanDetails.repaymentFrequencyNthDayType==null?null:e.loanDetails.repaymentFrequencyNthDayType.value," "),o(2),b(Ge(7,5,e.loanDetails.repaymentFrequencyDayOfWeekType==null?null:e.loanDetails.repaymentFrequencyDayOfWeekType.value,"catalogs"))}}function Db(t,n){if(t&1&&(ee(0,"span",4),M(1,Sb,8,8,"span"),te()),t&2){let e=P();o(),O(e.loanDetails.repaymentFrequencyDayOfWeekType?1:-1)}}function wb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,3,"labels.inputs.Fixed Length")," "),o(3),$t(" ",e.loanDetails.fixedLength," ",Ge(6,5,e.loanDetails.repaymentFrequencyType.value,"catalogs"))}}function Tb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Principal Percentage Per Installment")," "),o(3),v(" ",m(6,4,e.loanDetails.fixedPrincipalPercentagePerInstallment)," %")}}function Pb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Income capitalization calculation type")),o(3),v(" ",Ge(6,4,e.loanDetails.capitalizedIncomeCalculationType==null?null:e.loanDetails.capitalizedIncomeCalculationType.value,"catalogs")," ")}}function Ab(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Income capitalization strategy")),o(3),v(" ",Ge(6,4,e.loanDetails.capitalizedIncomeStrategy==null?null:e.loanDetails.capitalizedIncomeStrategy.value,"catalogs")," ")}}function Mb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Income capitalization type")),o(3),v(" ",Ge(6,4,e.loanDetails.capitalizedIncomeType==null?null:e.loanDetails.capitalizedIncomeType.value,"catalogs")," ")}}function Ob(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Buy down fee calculation type")),o(3),v(" ",Ge(6,4,e.loanDetails.buyDownFeeCalculationType==null?null:e.loanDetails.buyDownFeeCalculationType.value,"catalogs")," ")}}function Ib(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Buy down fee strategy")),o(3),v(" ",Ge(6,4,e.loanDetails.buyDownFeeStrategy==null?null:e.loanDetails.buyDownFeeStrategy.value,"catalogs")," ")}}function Eb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Buy down fee income type")),o(3),v(" ",Ge(6,4,e.loanDetails.buyDownFeeIncomeType==null?null:e.loanDetails.buyDownFeeIncomeType.value,"catalogs")," ")}}function Lb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"yesNo"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Merchant Buy down fee")),o(3),v(" ",m(6,4,e.loanDetails.merchantBuyDownFee)," ")}}function Nb(t,n){if(t&1&&(ee(0,"span",3),c(1),te()),t&2){let e=P();o(),v(" ",e.loanDetails.fundName," ")}}function kb(t,n){t&1&&(ee(0,"span",3),c(1),p(2,"translate"),te()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function Fb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Fixed EMI amount")),o(3),v(" ",m(6,4,e.loanDetails.fixedEmiAmount)," ")}}function Rb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"yesNo"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Is Topup Loan"),"?"),o(3),v(" ",m(6,4,e.loanDetails.isTopup)," ")}}function Bb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3)(5,"a",5),c(6),te()()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Loan closed with Topup")," "),o(4),b(e.loanDetails.closureLoanAccountNo)}}function qb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Topup closure amount")),o(3),v(" ",m(6,4,e.loanDetails.topupAmount)," ")}}function jb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Interest recalculation compounding on")),o(3),v(" ",Ge(6,4,e.loanDetails.interestRecalculationData.interestRecalculationCompoundingType.value,"catalogs")," ")}}function zb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Advance payments adjustment type")),o(3),v(" ",Ge(6,4,e.loanDetails.interestRecalculationData.rescheduleStrategyType.value,"catalogs")," ")}}function Vb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Frequency for recalculate Outstanding Principal")),o(3),v(" ",e.loanDetails.interestRecalculationData.calendarData.humanReadable," ")}}function Ub(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Frequency for compounding")),o(3),v(" ",e.loanDetails.interestRecalculationData.compoundingCalendarData.humanReadable," ")}}function Hb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"yesNo"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Variable Installments Allowed")),o(3),v(" ",m(6,4,e.loanDetails.isVariableInstallmentsAllowed)," ")}}function Gb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),p(7,"translate"),p(8,"formatNumber"),p(9,"translate"),te()()),t&2){let e=P();o(2),v(" ",m(3,5,"labels.inputs.Gap between Installments")),o(3),Qs(" ",m(6,7,e.loanDetails.minimumGap),"\xA0",m(7,9,"labels.text.Days"),"\xA0, Max:",m(8,11,e.loanDetails.maximumGap),"\xA0",m(9,13,"labels.text.Days")," ")}}function Wb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Available Disbursement Amount (with Over Applied)")),o(3),b(m(6,4,e.loanDetails.delinquent.availableDisbursementAmountWithOverApplied))}}var Fp=(()=>{class t{constructor(){this.route=A(Et),this.route.parent.data.subscribe(e=>{this.loanDetails=e.loanDetailsData})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-account-details"]],decls:205,vars:188,consts:[[1,"container","p-b-20"],[1,"responsive-column"],[1,"flex-fill","layout-row"],[1,"flex-50"],[1,"m-l-10"],["href","#"]],template:function(i,a){i&1&&(ee(0,"div",0)(1,"h3"),c(2),p(3,"translate"),te(),ee(4,"div",1)(5,"div",2)(6,"span",3),c(7),p(8,"translate"),te(),ee(9,"span",3),c(10),p(11,"translateKey"),te()(),ee(12,"div",2)(13,"span",3),c(14),p(15,"translate"),te(),ee(16,"span",3),c(17),p(18,"translateKey"),M(19,Db,2,1,"span",4),te()(),M(20,wb,7,8,"div",2),ee(21,"div",2)(22,"span",3),c(23),p(24,"translate"),te(),ee(25,"span",3),c(26),p(27,"translateKey"),te()(),M(28,Tb,7,6,"div",2),ee(29,"div",2)(30,"span",3),c(31),p(32,"translate"),te(),ee(33,"span",3),c(34),p(35,"yesNo"),te()(),ee(36,"div",2)(37,"span",3),c(38),p(39,"translate"),te(),ee(40,"span",3),c(41),p(42,"formatNumber"),p(43,"translate"),p(44,"translateKey"),te()(),ee(45,"div",2)(46,"span",3),c(47),p(48,"translate"),te(),ee(49,"span",3),c(50),p(51,"translate"),te()(),ee(52,"div",2)(53,"span",3),c(54),p(55,"translate"),te(),ee(56,"span",3),c(57),p(58,"yesNo"),te()(),ee(59,"div",2)(60,"span",3),c(61),p(62,"translate"),te(),ee(63,"span",3),c(64),p(65,"translateKey"),te()(),ee(66,"div",2)(67,"span",3),c(68),p(69,"translate"),te(),ee(70,"span",3),c(71),p(72,"yesNo"),te()(),M(73,Pb,7,7,"div",2),M(74,Ab,7,7,"div",2),M(75,Mb,7,7,"div",2),ee(76,"div",2)(77,"span",3),c(78),p(79,"translate"),te(),ee(80,"span",3),c(81),p(82,"yesNo"),te()(),M(83,Ob,7,7,"div",2),M(84,Ib,7,7,"div",2),M(85,Eb,7,7,"div",2),M(86,Lb,7,6,"div",2),ee(87,"div",2)(88,"span",3),c(89),p(90,"translate"),te(),ee(91,"span",3),c(92),te()(),ee(93,"div",2)(94,"span",3),c(95),p(96,"translate"),te(),ee(97,"span",3),c(98),te()(),ee(99,"div",2)(100,"span",3),c(101),p(102,"translate"),te(),ee(103,"span",3),c(104),te()(),ee(105,"div",2)(106,"span",3),c(107),p(108,"translate"),te(),ee(109,"span",3),c(110),p(111,"yesNo"),te()(),ee(112,"div",2)(113,"span",3),c(114),p(115,"translate"),te(),M(116,Nb,2,1,"span",3),M(117,kb,3,3,"span",3),te(),ee(118,"div",2)(119,"span",3),c(120),p(121,"translate"),te(),ee(122,"span",3),c(123),te()(),ee(124,"div",2)(125,"span",3),c(126),p(127,"translate"),te(),ee(128,"span",3),c(129),p(130,"translateKey"),te()(),ee(131,"div",2)(132,"span",3),c(133),p(134,"translate"),te(),ee(135,"span",3),c(136),p(137,"yesNo"),te()(),ee(138,"div",2)(139,"span",3),c(140),p(141,"translate"),te(),ee(142,"span",3),c(143),p(144,"yesNo"),te()(),ee(145,"div",2)(146,"span",3),c(147),p(148,"translate"),te(),ee(149,"span",3),c(150),p(151,"dateFormat"),te()(),ee(152,"div",2)(153,"span",3),c(154),p(155,"translate"),te(),ee(156,"span",3),c(157),p(158,"dateFormat"),te()(),ee(159,"div",2)(160,"span",3),c(161),p(162,"translate"),te(),ee(163,"span",3),c(164),p(165,"dateFormat"),te()(),ee(166,"div",2)(167,"span",3),c(168),p(169,"translate"),te(),ee(170,"span",3),c(171),p(172,"dateFormat"),te()(),M(173,Fb,7,6,"div",2),M(174,Rb,7,6,"div",2),M(175,Bb,7,4,"div",2),M(176,qb,7,6,"div",2),ee(177,"div",2)(178,"span",3),c(179),p(180,"translate"),te(),ee(181,"span",3),c(182),p(183,"yesNo"),te()(),ee(184,"div",2)(185,"span",3),c(186),p(187,"translate"),te(),ee(188,"span",3),c(189),p(190,"translateKey"),te()(),ee(191,"div",2)(192,"span",3),c(193),p(194,"translate"),te(),ee(195,"span",3),c(196),p(197,"translateKey"),te()(),M(198,jb,7,7,"div",2),M(199,zb,7,7,"div",2),M(200,Vb,6,4,"div",2),M(201,Ub,6,4,"div",2),M(202,Hb,7,6,"div",2),M(203,Gb,10,15,"div",2),M(204,Wb,7,6,"div",2),te()()),i&2&&(o(2),b(m(3,80,"labels.heading.Loan Details")),o(5),b(m(8,82,"labels.inputs.Repayment Strategy")),o(3),b(Ge(11,84,a.loanDetails.transactionProcessingStrategyName,"catalogs")),o(4),b(m(15,87,"labels.inputs.Repayments")),o(3),Xs("",a.loanDetails.numberOfRepayments," every ",a.loanDetails.repaymentEvery,"\xA0",Ge(18,89,a.loanDetails.repaymentFrequencyType.value,"catalogs")," "),o(2),O((a.loanDetails.repaymentFrequencyType==null?null:a.loanDetails.repaymentFrequencyType.id)===2&&(a.loanDetails.repaymentFrequencyNthDayType==null?null:a.loanDetails.repaymentFrequencyNthDayType.id)!==0&&(a.loanDetails.repaymentFrequencyDayOfWeekType==null?null:a.loanDetails.repaymentFrequencyDayOfWeekType.id)!==0?19:-1),o(),O(a.loanDetails.fixedLength?20:-1),o(3),v(" ",m(24,92,"labels.inputs.Amortization")," "),o(3),v(" ",Ge(27,94,a.loanDetails.amortizationType.value,"catalogs")," "),o(2),O(a.loanDetails.fixedPrincipalPercentagePerInstallment?28:-1),o(3),v(" ",m(32,97,"labels.inputs.Equal Amortization")," "),o(3),v(" ",m(35,99,a.loanDetails.isEqualAmortization)," "),o(4),v(" ",m(39,101,"labels.inputs.Interest")," "),o(3),Qs(" ",m(42,103,a.loanDetails.annualInterestRate)," % ",m(43,105,"labels.text.per annum")," (",a.loanDetails.interestRatePerPeriod," %\xA0 ",Ge(44,107,a.loanDetails.interestRateFrequencyType.value,"catalogs"),") "),o(6),v(" ",m(48,110,"labels.inputs.Interest Type")," "),o(3),v(" ",m(51,112,"labels.text."+a.loanDetails.interestType.value)," "),o(4),v("",m(55,114,"labels.inputs.Enable Down Payments"),":"),o(3),b(m(58,116,a.loanDetails.enableDownPayment)),o(4),v("",m(62,118,"labels.inputs.Loan Charge-off behaviour"),":"),o(3),b(Ge(65,120,a.loanDetails.chargeOffBehaviour.value,"catalogs")),o(4),v(" ",m(69,123,"labels.inputs.Enable income capitalization")),o(3),v(" ",m(72,125,a.loanDetails.enableIncomeCapitalization)," "),o(2),O(a.loanDetails.enableIncomeCapitalization?73:-1),o(),O(a.loanDetails.enableIncomeCapitalization?74:-1),o(),O(a.loanDetails.enableIncomeCapitalization?75:-1),o(3),v(" ",m(79,127,"labels.inputs.Enable Buy down fee")),o(3),v(" ",m(82,129,a.loanDetails.enableBuyDownFee)," "),o(2),O(a.loanDetails.enableBuyDownFee?83:-1),o(),O(a.loanDetails.enableBuyDownFee?84:-1),o(),O(a.loanDetails.enableBuyDownFee?85:-1),o(),O(a.loanDetails.enableBuyDownFee?86:-1),o(3),v(" ",m(90,131,"labels.inputs.Grace: On Principal Payment")),o(3),v(" ",a.loanDetails.graceOnPrincipalPayment," "),o(3),v(" ",m(96,133,"labels.inputs.Grace: On Interest Payment")),o(3),v(" ",a.loanDetails.graceOnInterestPayment," "),o(3),v(" ",m(102,135,"labels.inputs.Grace on Arrears Ageing")),o(3),v(" ",a.loanDetails.graceOnArrearsAgeing," "),o(3),v(" ",m(108,137,"labels.inputs.Enable installment level Delinquency")," "),o(3),v(" ",m(111,139,a.loanDetails.enableInstallmentLevelDelinquency)," "),o(4),v(" ",m(115,141,"labels.inputs.Fund Source")," "),o(2),O(a.loanDetails.fundName?116:-1),o(),O(a.loanDetails.fundName?-1:117),o(3),v(" ",m(121,143,"labels.inputs.Interest Free Period")),o(3),v(" ",a.loanDetails.graceOnInterestCharged," "),o(3),v(" ",m(127,145,"labels.inputs.Interest Calculation Period")),o(3),v(" ",Ge(130,147,a.loanDetails.interestCalculationPeriodType.value,"catalogs")," "),o(4),v(" ",m(134,150,"labels.inputs.Allow Partial Interest Calculation with same as repayment")),o(3),v(" ",m(137,152,a.loanDetails.allowPartialPeriodInterestCalculation)," "),o(4),v("",m(141,154,"labels.inputs.Is interest recognition on disbursement date?"),":"),o(3),b(m(144,156,a.loanDetails.interestRecognitionOnDisbursementDate)),o(4),v(" ",m(148,158,"labels.inputs.Submitted on")),o(3),v(" ",m(151,160,a.loanDetails.timeline.submittedOnDate)," "),o(4),v(" ",m(155,162,"labels.inputs.Approved on")),o(3),v(" ",m(158,164,a.loanDetails.timeline.approvedOnDate)," "),o(4),v(" ",m(162,166,"labels.inputs.Disbursed on")),o(3),v(" ",m(165,168,a.loanDetails.timeline.actualDisbursementDate)," "),o(4),v(" ",m(169,170,"labels.inputs.Matures on")),o(3),v(" ",m(172,172,a.loanDetails.timeline.expectedMaturityDate)," "),o(2),O(a.loanDetails.canDefineInstallmentAmount?173:-1),o(),O(a.loanDetails.isTopup?174:-1),o(),O(a.loanDetails.isTopup?175:-1),o(),O(a.loanDetails.isTopup?176:-1),o(3),v(" ",m(180,174,"labels.inputs.Recalculate Interest based on new terms")),o(3),v(" ",m(183,176,a.loanDetails.isInterestRecalculationEnabled)," "),o(4),v(" ",m(187,178,"labels.inputs.Days in year")),o(3),v(" ",Ge(190,180,a.loanDetails.daysInYearType.value,"catalogs")," "),o(4),v(" ",m(194,183,"labels.inputs.Days in month")),o(3),v(" ",Ge(197,185,a.loanDetails.daysInMonthType.value,"catalogs")," "),o(2),O(a.loanDetails.isInterestRecalculationEnabled?198:-1),o(),O(a.loanDetails.isInterestRecalculationEnabled?199:-1),o(),O(a.loanDetails.isInterestRecalculationEnabled?200:-1),o(),O(a.loanDetails.isInterestRecalculationEnabled&&a.loanDetails.interestRecalculationData.interestRecalculationCompoundingType.id!==0?201:-1),o(),O(a.loanDetails.isVariableInstallmentsAllowed?202:-1),o(),O(a.loanDetails.isVariableInstallmentsAllowed?203:-1),o(),O(a.loanDetails&&a.loanDetails.delinquent&&a.loanDetails.delinquent.availableDisbursementAmountWithOverApplied!==void 0?204:-1))},dependencies:[wt,Tt,En,Pt,qa,hn,Hr],styles:["table[_ngcontent-%COMP%]{width:100%}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();var Rp=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.authenticationService=A(jf);let e=this.authenticationService.getCredentials();this.username=e.username,this.entityId=this.route.parent.snapshot.params.loanId,this.route.data.subscribe(i=>{this.entityNotes=i.loanNotes})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.entityId=e.loanId})}addNote(e){this.loansService.createLoanNote(this.entityId,e).subscribe(i=>{this.entityNotes.push({id:i.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,i,a){this.loansService.editLoanNote(this.entityId,e,i).subscribe(()=>{this.entityNotes[a].note=i.note})}deleteNote(e,i){this.loansService.deleteLoanNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(i,1)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(i,a){i&1&&T(0,"mifosx-entity-notes-tab",0),i&2&&x("entityId",a.entityId)("entityNotes",a.entityNotes)("callbackAdd",a.addNote)("callbackEdit",a.editNote)("callbackDelete",a.deleteNote)},dependencies:[wt,Tt,l1],encapsulation:2})}}return t})();function fi(t){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fi(t)}var To=Uint8Array,Qa=Uint16Array,dd=Int32Array,ud=new To([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fd=new To([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),v1=new To([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D1=function(t,n){for(var e=new Qa(31),i=0;i<31;++i)e[i]=n+=1<>1|(ri&21845)<<1,br=(br&52428)>>2|(br&13107)<<2,br=(br&61680)>>4|(br&3855)<<4,pd[ri]=((br&65280)>>8|(br&255)<<8)>>1;var br,ri,rc=function(t,n,e){for(var i=t.length,a=0,r=new Qa(n);a>g]=_}else for(d=new Qa(i),a=0;a>15-t[a]);return d},yl=new To(288);for(ri=0;ri<144;++ri)yl[ri]=8;var ri;for(ri=144;ri<256;++ri)yl[ri]=9;var ri;for(ri=256;ri<280;++ri)yl[ri]=7;var ri;for(ri=280;ri<288;++ri)yl[ri]=8;var ri,Bp=new To(32);for(ri=0;ri<32;++ri)Bp[ri]=5;var ri,Yb=rc(yl,9,0);var Zb=rc(Bp,5,0);var P1=function(t){return(t+7)/8|0},Kb=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new To(t.subarray(n,e))};var vr=function(t,n,e){e<<=n&7;var i=n/8|0;t[i]|=e,t[i+1]|=e>>8},ac=function(t,n,e){e<<=n&7;var i=n/8|0;t[i]|=e,t[i+1]|=e>>8,t[i+2]|=e>>16},sd=function(t,n){for(var e=[],i=0;iN&&(N=r[i].s);var D=new Qa(N+1),U=md(e[y-1],D,0);if(U>n){var i=0,H=0,K=U-n,z=1<n)H+=z-(1<>=K;H>0;){var pt=r[i].s;D[pt]=0&&H;--i){var nt=r[i].s;D[nt]==n&&(--D[nt],++H)}U=n}return{t:new To(D),l:U}},md=function(t,n,e){return t.s==-1?Math.max(md(t.l,n,e+1),md(t.r,n,e+1)):n[t.s]=e},y1=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new Qa(++n),i=0,a=t[0],r=1,u=function(g){e[i++]=g},d=1;d<=n;++d)if(t[d]==a&&d!=n)++r;else{if(!a&&r>2){for(;r>138;r-=138)u(32754);r>2&&(u(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(u(a),--r;r>6;r-=6)u(8304);r>2&&(u(r-3<<5|8208),r=0)}for(;r--;)u(a);r=1,a=t[d]}return{c:e.subarray(0,i),n}},oc=function(t,n){for(var e=0,i=0;i>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var r=0;r4&&!vt[v1[Y-1]];--Y);var rt=_+5<<3,ot=oc(a,yl)+oc(r,Bp)+u,At=oc(a,N)+oc(r,H)+u+14+3*Y+oc(jt,vt)+2*jt[16]+3*jt[17]+7*jt[18];if(g>=0&&rt<=ot&&rt<=At)return A1(n,y,t.subarray(g,g+_));var kt,Rt,St,qt;if(vr(n,y,1+(At15&&(vr(n,y,J[ht]>>5&127),y+=J[ht]>>12)}}else kt=Yb,Rt=yl,St=Zb,qt=Bp;for(var ht=0;ht255){var et=lt>>18&31;ac(n,y,kt[et+257]),y+=Rt[et+257],et>7&&(vr(n,y,lt>>23&31),y+=ud[et]);var ft=lt&31;ac(n,y,St[ft]),y+=qt[ft],ft>3&&(ac(n,y,lt>>5&8191),y+=fd[ft])}else ac(n,y,kt[lt]),y+=Rt[lt]}return ac(n,y,kt[256]),y+Rt[256]},Jb=new dd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),M1=new To(0),Xb=function(t,n,e,i,a,r){var u=r.z||t.length,d=new To(i+u+5*(1+Math.ceil(u/7e3))+a),g=d.subarray(i,d.length-a),_=r.l,y=(r.r||0)&7;if(n){y&&(g[0]=r.r>>3);for(var I=Jb[n-1],N=I>>13,D=I&8191,U=(1<7e3||vt>24576)&&(kt>423||!_)){y=S1(t,g,0,nt,Ot,Yt,ht,vt,Y,tt-Y,y),vt=jt=ht=0,Y=tt;for(var Rt=0;Rt<286;++Rt)Ot[Rt]=0;for(var Rt=0;Rt<30;++Rt)Yt[Rt]=0}var St=2,qt=0,se=D,Jt=ot-At&32767;if(kt>2&&rt==pt(tt-Jt))for(var B=Math.min(N,kt)-1,J=Math.min(32767,tt),et=Math.min(258,kt);Jt<=J&&--se&&ot!=At;){if(t[tt+St]==t[tt+St-Jt]){for(var lt=0;ltSt){if(St=lt,qt=Jt,lt>B)break;for(var ft=Math.min(Jt,lt-2),Ct=0,Rt=0;RtCt&&(Ct=Ht,At=It)}}}ot=At,At=H[ot],Jt+=ot-At&32767}if(qt){nt[vt++]=268435456|cd[St]<<18|x1[qt];var re=cd[St]&31,Me=x1[qt]&31;ht+=ud[re]+fd[Me],++Ot[257+re],++Yt[Me],j=tt+St,++jt}else nt[vt++]=t[tt],++Ot[t[tt]]}}for(tt=Math.max(tt,j);tt=u&&(g[y/8|0]=_,De=u),y=A1(g,y+1,t.subarray(tt,De))}r.i=u}return Kb(d,0,i+P1(y)+a)};var O1=function(){var t=1,n=0;return{p:function(e){for(var i=t,a=n,r=e.length|0,u=0;u!=r;){for(var d=Math.min(u+2655,r);u>16),a=(a&65535)+15*(a>>16)}t=i,n=a},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},Qb=function(t,n,e,i,a){if(!a&&(a={l:1},n.dictionary)){var r=n.dictionary.subarray(-32768),u=new To(r.length+t.length);u.set(r),u.set(t,r.length),t=u,a.w=r.length}return Xb(t,n.level==null?6:n.level,n.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,i,a)};var I1=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8};var tv=function(t,n){var e=n.level,i=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=i<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var a=O1();a.p(n.dictionary),I1(t,2,a.d())}};function qp(t,n){n||(n={});var e=O1();e.p(t);var i=Qb(t,n,n.dictionary?6:2,4);return tv(i,n),I1(i,i.length-4,e.d()),i}var ev=typeof TextDecoder<"u"&&new TextDecoder,nv=0;try{ev.decode(M1,{stream:!0}),nv=1}catch{}function E1(t){if(Array.isArray(t))return t}function L1(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,a,r,u,d=[],g=!0,_=!1;try{if(r=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;g=!1}else for(;!(g=(i=r.call(e)).done)&&(d.push(i.value),d.length!==n);g=!0);}catch(y){_=!0,a=y}finally{try{if(!g&&e.return!=null&&(u=e.return(),Object(u)!==u))return}finally{if(_)throw a}}return d}}function hd(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e["./general"],u_=()=>["./accountdetail"],f_=()=>["./repayment-schedule"],h_=()=>["./loan-documents"],g_=()=>["./original-schedule"],__=()=>["./transactions"],C_=()=>["./deferred-income"],b_=()=>["./buy-down-fees"],v_=()=>["./delinquencytags"],x_=()=>["./loan-collateral"],y_=()=>["./loan-tranche-details"],S_=()=>["./term-variations"],D_=()=>["./overdue-charges"],w_=()=>["./floating-interest-rates"],T_=()=>["./charges"],P_=()=>["./loan-reschedules"],A_=()=>["./notes"],M_=()=>["./standing-instruction"],O_=()=>["./external-asset-owner"],I_=t=>["./datatables",t];function E_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td")(5,"span",48),T(6,"i",49),l(),c(7),l()()),t&2){let e=P(2);o(2),v("",m(3,3,"labels.inputs.Delinquency Classification")," :"),o(4),x("ngClass",e.loanDelinquencyClassificationStyle),o(),v(" ",e.loanDetailsData==null?null:e.loanDetailsData.delinquencyRange.classification," ")}}function L_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td"),c(5),p(6,"formatNumber"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Past Due Days")," :"),o(3),b(m(6,4,e.loanDetailsData==null?null:e.loanDetailsData.delinquent.pastDueDays))}}function N_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td"),c(5),p(6,"formatNumber"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Delinquent Days")," :"),o(3),b(m(6,4,e.loanDetailsData==null?null:e.loanDetailsData.delinquent.delinquentDays))}}function k_(t,n){if(t&1&&(s(0,"div")(1,"table",47)(2,"tbody"),M(3,E_,8,5,"tr"),M(4,L_,7,6,"tr"),M(5,N_,7,6,"tr"),l()()()),t&2){let e=P();o(3),O(e.loanDetailsData.delinquencyRange?3:-1),o(),O(e.loanDetailsData.delinquent&&e.loanDetailsData.delinquent.pastDueDays>0?4:-1),o(),O(e.loanDetailsData.delinquent&&e.loanDetailsData.delinquent.delinquentDays>0&&e.loanDetailsData.delinquent.pastDueDays!==e.loanDetailsData.delinquent.delinquentDays?5:-1)}}function F_(t,n){if(t&1&&(s(0,"td",50),c(1),p(2,"currency"),l()),t&2){let e=P(3);o(),v(" ",Ye(2,1,e.loanDetailsData.summary.totalOverdue,e.currency.code,"symbol-narrow","1.2-2")," ")}}function R_(t,n){t&1&&(s(0,"td"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Provided")," "))}function B_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),M(4,F_,3,6,"td",50),M(5,R_,3,3,"td"),l()),t&2){let e=P(2);o(2),b(m(3,3,"labels.inputs.Arrears By")),o(2),O(e.loanDetailsData.summary.totalOverdue>=0?4:-1),o(),O(e.loanDetailsData.summary.totalOverdue>=0?-1:5)}}function q_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td"),c(5),p(6,"dateFormat"),l()()),t&2){let e=P(2);o(2),b(m(3,2,"labels.inputs.Arrears Since")),o(3),b(m(6,4,e.loanDetailsData.summary.overdueSinceDate))}}function j_(t,n){if(t&1&&(s(0,"tr")(1,"td"),c(2),p(3,"translate"),l(),s(4,"td",50),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),b(m(3,2,"labels.inputs.Overpaid By")),o(3),v(" ",Ye(6,4,e.loanDetailsData.totalOverpaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function z_(t,n){if(t&1&&(s(0,"div",39)(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",47)(5,"tbody")(6,"tr")(7,"td"),c(8),p(9,"translate"),l(),s(10,"td",50),c(11),p(12,"currency"),l()(),M(13,B_,6,5,"tr"),M(14,q_,7,6,"tr"),M(15,j_,7,9,"tr"),l()()()),t&2){let e=P();o(2),b(m(3,6,"labels.heading.Account Overview")),o(6),b(m(9,8,"labels.inputs.Current Balance")),o(3),v(" ",Ye(12,10,e.loanDetailsData.summary.totalOutstanding,e.currency.code,"symbol-narrow","1.2-2")," "),o(2),O(e.loanDisplayArrearsDelinquency<2?13:-1),o(),O(e.loanDetailsData.inArrears?14:-1),o(),O(e.loanDetailsData.totalOverpaid&&e.loanDetailsData.totalOverpaid>0?15:-1)}}function V_(t,n){if(t&1&&(s(0,"button",41)(1,"mat-icon",51),T(2,"fa-icon",52),l()()),t&2){P();let e=Lt(35);x("matMenuTriggerFor",e)}}function U_(t,n){if(t&1){let e=xt();s(0,"button",54),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.loanAction(a.name))}),s(1,"mat-icon",55),T(2,"fa-icon",56),l(),s(3,"span"),c(4),p(5,"translate"),l()()}if(t&2){let e=P().$implicit;o(2),x("icon",ce(e.icon)),o(2),b(m(5,3,"labels.menus."+e.name))}}function H_(t,n){if(t&1&&k(0,U_,6,5,"button",53),t&2){let e=n.$implicit;x("mifosxHasPermission",e.taskPermissionName)}}function G_(t,n){if(t&1){let e=xt();s(0,"button",54),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.loanAction(a.name))}),c(1),p(2,"translate"),l()}if(t&2){let e=P().$implicit;o(),v(" ",m(2,1,"labels.menus."+e.name)," ")}}function W_(t,n){if(t&1&&(s(0,"span"),k(1,G_,3,3,"button",53),l()),t&2){let e=n.$implicit;o(),x("mifosxHasPermission",e.taskPermissionName)}}function $_(t,n){if(t&1&&(X(0,43),s(1,"button",57),c(2),p(3,"translate"),l(),s(4,"mat-menu",null,6),ue(6,W_,2,1,"span",null,Ce),l(),Q()),t&2){let e=Lt(5),i=P();o(),x("matMenuTriggerFor",e),o(),b(m(3,2,"labels.menus.Payments")),o(4),fe(i.buttonConfig.optionsPayment)}}function Y_(t,n){if(t&1){let e=xt();s(0,"button",54),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.loanAction(a.name))}),c(1),p(2,"translate"),l()}if(t&2){let e=P().$implicit;o(),v(" ",m(2,1,"labels.menus."+e.name)," ")}}function Z_(t,n){if(t&1&&(s(0,"span"),k(1,Y_,3,3,"button",53),l()),t&2){let e=n.$implicit;o(),x("mifosxHasPermission",e.taskPermissionName)}}function K_(t,n){if(t&1&&(X(0,43),s(1,"button",57),c(2),p(3,"translate"),l(),s(4,"mat-menu",null,7),ue(6,Z_,2,1,"span",null,Ce),l(),Q()),t&2){let e=Lt(5),i=P();o(),x("matMenuTriggerFor",e),o(),b(m(3,2,"labels.menus.More")),o(4),fe(i.buttonConfig.options)}}function J_(t,n){if(t&1&&(s(0,"a",45,8),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,g_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Original Schedule")," ")}}function X_(t,n){if(t&1&&(s(0,"a",45,9),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,__))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Transactions")," ")}}function Q_(t,n){if(t&1&&(s(0,"a",45,10),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,C_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Deferred income")," ")}}function tC(t,n){if(t&1&&(s(0,"a",45,11),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,b_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.heading.Buy Down Fees")," ")}}function eC(t,n){if(t&1&&(s(0,"a",45,12),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,v_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Delinquency Tags")," ")}}function nC(t,n){if(t&1&&(s(0,"a",45,13),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,x_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Loan Collateral Details")," ")}}function iC(t,n){if(t&1&&(s(0,"a",45,14),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,y_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Loan Tranche Details")," ")}}function aC(t,n){if(t&1&&(s(0,"a",45,15),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,S_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Term Variations")," ")}}function oC(t,n){if(t&1&&(s(0,"a",45,16),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,D_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Overdue Charges")," ")}}function rC(t,n){if(t&1&&(s(0,"a",45,17),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,w_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Floating Interest Rates")," ")}}function lC(t,n){if(t&1&&(s(0,"a",45,18),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,T_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Charges")," ")}}function sC(t,n){if(t&1&&(s(0,"a",45,19),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,P_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Loan Reschedules")," ")}}function cC(t,n){if(t&1&&(s(0,"a",45,20),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,A_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function pC(t,n){if(t&1&&(s(0,"a",45,21),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,M_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.Standing Instruction")," ")}}function mC(t,n){if(t&1&&(s(0,"a",45,22),c(2),p(3,"translate"),l()),t&2){let e=Lt(1);x("routerLink",Ut(5,O_))("active",e.isActive),o(2),v(" ",m(3,3,"labels.inputs.External Asset Owner")," ")}}function dC(t,n){if(t&1&&(s(0,"a",45,23),c(2),l()),t&2){let e=Lt(1),i=P().$implicit;x("routerLink",La(3,I_,i.registeredTableName))("active",e.isActive),o(2),v(" ",i.registeredTableName," ")}}function uC(t,n){if(t&1&&k(0,dC,3,5,"a",46),t&2){let e=n.$implicit;x("mifosxHasPermission","READ_"+e.registeredTableName)}}var Np=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansService=A(Mt),this.translateService=A(pa),this.dialog=A(Gn),this.disburseTransactionNo=0,this.loanDelinquencyClassificationStyle="",this.loanSubStatus=null,this.loanReAged=!1,this.loanReAmortized=!1;let e=this.loansService;this.route.data.subscribe(i=>{this.loanDetailsData=i.loanDetailsData,this.loanDatatables=i.loanDatatables,this.loanDisplayArrearsDelinquency=i.loanArrearsDelinquencyConfig.value||0,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.currency=this.loanDetailsData.currency,e.saveLoanDisbursementDetailsData(this.loanDetailsData.disbursementDetails),this.loanStatus.active&&this.loanDetailsData.transactions.forEach(a=>{a.manuallyReversed||(a.type.reAge?this.loanReAged=!0:a.type.reAmortize&&(this.loanReAmortized=!0))}),this.setConditionalButtons()}),this.loanId=this.route.snapshot.params.loanId,this.clientId=this.loanDetailsData.clientId}ngOnInit(){this.route.params.subscribe(e=>{this.loanId!=e.loanId&&(this.loanId=e.loanId,this.reload())}),this.recalculateInterest=this.loanDetailsData.recalculateInterest||!0,this.status=this.loanDetailsData.status.value,this.loanStatus=this.loanDetailsData.status,this.loanSubStatus=this.loanDetailsData.subStatus===void 0?null:this.loanDetailsData.subStatus,this.loanStatus.active&&this.loanDetailsData.multiDisburseLoan&&this.loanDetailsData&&this.loanDetailsData.transactions&&this.loanDetailsData.transactions.forEach(e=>{e.type.disbursement&&this.disburseTransactionNo++}),this.setConditionalButtons(),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center"),this.loanDelinquencyClassification()}setConditionalButtons(){this.buttonConfig=new Lp(this.status,this.loanSubStatus),this.status==="Submitted and pending approval"?(this.buttonConfig.addOption({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.isVariableInstallmentsAllowed&&this.buttonConfig.addOption({name:"Edit Repayment Schedule",icon:"edit",taskPermissionName:"ADJUST_REPAYMENT_SCHEDULE"})):this.status==="Approved"?this.buttonConfig.addButton({name:this.loanDetailsData.loanOfficerName?"Change Loan Officer":"Assign Loan Officer",icon:"user-tie",taskPermissionName:"DISBURSE_LOAN"}):this.status==="Active"?(this.loanDetailsData.enableBuyDownFee&&this.buttonConfig.addButton({name:"Buy Down Fee",icon:"plus",taskPermissionName:"BUYDOWNFEE_LOAN"}),this.loanDetailsData.enableIncomeCapitalization&&this.buttonConfig.addButton({name:"Capitalized Income",icon:"coins",taskPermissionName:"CAPITALIZEDINCOME_LOAN"}),(this.loanDetailsData.canDisburse||this.loanDetailsData.multiDisburseLoan)&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),this.loanDetailsData.canDisburse&&this.buttonConfig.addButton({name:"Disburse to Savings",icon:"piggy-bank",taskPermissionName:"DISBURSETOSAVINGS_LOAN"}),this.loanDetailsData.multiDisburseLoan&&this.disburseTransactionNo>1&&this.buttonConfig.addButton({name:"Undo Last Disbursal",icon:"undo",taskPermissionName:"DISBURSALLASTUNDO_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Add Interest Pause",icon:"calendar",taskPermissionName:"CREATE_INTEREST_PAUSE"}),this.loanDetailsData.loanOfficerName||this.buttonConfig.addButton({name:"Assign Loan Officer",icon:"user-tie",taskPermissionName:"UPDATELOANOFFICER_LOAN"}),this.recalculateInterest&&this.buttonConfig.addButton({name:"Prepay Loan",icon:"coins",taskPermissionName:"REPAYMENT_LOAN"}),this.loanDetailsData.chargedOff?this.buttonConfig.addButton({name:"Undo Charge-Off",icon:"undo",taskPermissionName:"UNDOCHARGEOFF_LOAN"}):this.buttonConfig.addButton({name:"Charge-Off",icon:"coins",taskPermissionName:"CHARGEOFF_LOAN"}),this.loanReAged?this.buttonConfig.addButton({name:"Undo Re-Age",icon:"undo",taskPermissionName:"UNDO_REAGE_LOAN"}):this.buttonConfig.addButton({name:"Re-Age",icon:"calendar",taskPermissionName:"REAGE_LOAN"}),this.loanReAmortized?this.buttonConfig.addButton({name:"Undo Re-Amortize",icon:"undo",taskPermissionName:"UNDO_REAMORTIZE_LOAN"}):this.buttonConfig.addButton({name:"Re-Amortize",icon:"calendar-alt",taskPermissionName:"REAMORTIZE_LOAN"})):(this.status==="Closed (obligations met)"||this.status==="Overpaid")&&(this.loanDetailsData.multiDisburseLoan&&this.buttonConfig.addButton({name:"Disburse",icon:"hand-holding-usd",taskPermissionName:"DISBURSE_LOAN"}),Gr.isAdvancedPaymentAllocationStrategy(this.loanDetailsData.transactionProcessingStrategyCode)&&this.buttonConfig.addButton({name:"Reschedule",icon:"calendar",taskPermissionName:"CREATE_RESCHEDULELOAN"}))}loanAction(e){switch(e){case"Recover From Guarantor":this.recoverFromGuarantor();break;case"Delete":this.deleteLoanAccount();break;case"Modify Application":this.router.navigate(["edit-loans-account"],{relativeTo:this.route});break;case"Transfer Funds":let i={loanId:this.loanId,accountType:"fromloans"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:i});break;case"Undo Re-Age":case"Undo Re-Amortize":case"Undo Charge-Off":this.undoLoanAction(e);break;default:let a={relativeTo:this.route,state:{data:this.loanDetailsData}};this.router.navigate(["actions",e],a);break}}recoverFromGuarantor(){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Recover from Guarantor"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want recover from Guarantor"),type:"Mild"}}).afterClosed().subscribe(i=>{i.confirm&&this.loansService.loanActionButtons(this.loanId,"recoverGuarantees").subscribe(()=>{this.reload()})})}loanDelinquencyClassification(){this.loanDelinquencyClassificationStyle="",this.loanDetailsData.delinquent&&this.loanDetailsData.delinquent.delinquencyPausePeriods&&this.loanDetailsData.delinquent.delinquencyPausePeriods.some(e=>{e.active&&(this.loanDelinquencyClassificationStyle="fa fa-stop status-pending")})}undoLoanAction(e){e=e.replace("Undo ",""),this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction type")+" "+this.translateService.instant("labels.menus."+e)}}).afterClosed().subscribe(a=>{if(a.confirm){let r="";switch(e){case"Re-Age":r="undoReAge";break;case"Re-Amortize":r="undoReAmortize";break;case"Charge-Off":r="undo-charge-off";break}this.loansService.executeLoansAccountTransactionsCommand(String(this.loanId),r,{}).subscribe(()=>{this.reload()})}})}iconLoanStatusColor(){return this.loanDetailsData.chargedOff?"loanStatusType.chargeoff":this.isContractTermination(this.loanSubStatus)?"loanSubStatusType.contractTermination":this.loanDetailsData.inArrears?"loanStatusType.activeOverdue":this.loanDetailsData.status.code}loanStatusTooltip(){return this.loanDetailsData.chargedOff?"Chargeoff":this.loanDetailsData.inArrears?"activeOverdue":this.loanDetailsData.status.code}loanSubStatusTooltip(){return this.isContractTermination(this.loanSubStatus)?"contractTermination":""}deleteLoanAccount(){this.dialog.open(ra,{data:{deleteContext:`with loan id: ${this.loanId}`}}).afterClosed().subscribe(i=>{i.delete&&this.loansService.deleteLoanAccount(this.loanId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}reload(){let e=this.clientId,i=this.router.url;this.router.navigateByUrl(`/clients/${e}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}isContractTermination(e){return e==null?!1:e.code==="loanSubStatus.loanSubStatusType.contractTermination"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-view"]],decls:78,vars:71,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["accountdetail","routerLinkActive"],["repaymentSchedule","routerLinkActive"],["loanDocuments","routerLinkActive"],["tabPanel",""],["Payments","matMenu"],["More","matMenu"],["originalSchedule","routerLinkActive"],["transactions","routerLinkActive"],["deferredIncome","routerLinkActive"],["buyDownFees","routerLinkActive"],["delinquencytags","routerLinkActive"],["loanCollateralDetails","routerLinkActive"],["loanTrancheDetails","routerLinkActive"],["termVariations","routerLinkActive"],["overduecharges","routerLinkActive"],["floatingInterestRates","routerLinkActive"],["charges","routerLinkActive"],["loanReschedules","routerLinkActive"],["notes","routerLinkActive"],["standingInstruction","routerLinkActive"],["externalAssetOwner","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["iconFile","account_placeholder","iconName","LOAN_ACCOUNT","iconWidth","210",3,"iconClass","matTooltip"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"matTooltip","ngClass"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"loans-overview"],[1,"m-r-10"],[1,"m-l-5"],[1,"loans-overview","mat-typography","flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["mat-menu-item",""],[1,"loan-span"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[1,"account-overview"],[1,"m-r-3"],[3,"ngClass"],[1,"r-amount"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"]],template:function(i,a){if(i&1&&(s(0,"mat-card",24)(1,"mat-card-header",25)(2,"mat-card-title-group",26)(3,"div",27)(4,"div"),T(5,"mifosx-svg-icon",28),p(6,"translate"),l()(),s(7,"div",29)(8,"mat-card-title")(9,"div",30)(10,"div",31)(11,"h3"),T(12,"i",32),p(13,"translate"),p(14,"statusLookup"),s(15,"span",33),c(16),p(17,"translate"),l(),s(18,"span",33),T(19,"mifosx-long-text",34),l(),T(20,"mifosx-account-number",35),l(),s(21,"span",36)(22,"span",37),c(23),p(24,"translate"),p(25,"translate"),l(),c(26),s(27,"span",38),c(28),l(),T(29,"br"),l(),M(30,k_,6,3,"div"),l(),M(31,z_,16,15,"div",39),s(32,"div",40),M(33,V_,3,1,"button",41),l()()()(),s(34,"mat-menu",null,0),ue(36,H_,1,1,"button",42,Ce),M(38,$_,8,4,"ng-container",43),M(39,K_,8,4,"ng-container",43),l()()(),s(40,"mat-card-content")(41,"nav",44)(42,"a",45,1),c(44),p(45,"translate"),l(),s(46,"a",45,2),c(48),p(49,"translate"),l(),M(50,J_,4,6,"a",45),s(51,"a",45,3),c(53),p(54,"translate"),l(),M(55,X_,4,6,"a",45),M(56,Q_,4,6,"a",45),M(57,tC,4,6,"a",45),M(58,eC,4,6,"a",45),M(59,nC,4,6,"a",45),M(60,iC,4,6,"a",45),M(61,aC,4,6,"a",45),M(62,oC,4,6,"a",45),M(63,rC,4,6,"a",45),M(64,lC,4,6,"a",45),M(65,sC,4,6,"a",45),s(66,"a",45,4),c(68),p(69,"translate"),l(),k(70,cC,4,6,"a",46),M(71,pC,4,6,"a",45),M(72,mC,4,6,"a",45),ue(73,uC,1,1,"a",45,Ce),l(),s(75,"mat-tab-nav-panel",null,5),T(77,"router-outlet"),l()()()),i&2){let r=Lt(43),u=Lt(47),d=Lt(52),g=Lt(67),_=Lt(76);o(5),x("matTooltip",ce(m(6,47,"tooltips.Loan Account"))),o(7),x("matTooltip",ce(m(13,49,"labels.status."+a.loanDetailsData.status.value)))("ngClass",m(14,51,a.iconLoanStatusColor())),o(4),v("",m(17,53,"labels.heading.Loan Product")," :"),o(3),x("textValue",ce(a.loanDetailsData.loanProductName)),o(),x("accountNo",ce(a.loanDetailsData.accountNo)),o(3),$t("",m(24,55,"labels.text."+a.entityType)," ",m(25,57,"labels.inputs.name")," :"),o(3),v(" ",a.loanDetailsData.clientName||a.loanDetailsData.group.name),o(2),v("(",a.loanDetailsData.clientAccountNo||a.loanDetailsData.group.accountNo,")"),o(2),O(a.loanDisplayArrearsDelinquency!==1?30:-1),o(),O(a.loanDetailsData.summary?31:-1),o(2),O(a.buttonConfig.singleButtons.length>0?33:-1),o(3),fe(a.buttonConfig.singleButtons),o(2),O(a.buttonConfig.optionsPayment.length?38:-1),o(),O(a.buttonConfig.options.length?39:-1),o(2),x("tabPanel",_),o(),x("routerLink",Ut(67,d_))("active",r.isActive),o(2),v(" ",m(45,59,"labels.inputs.General")," "),o(2),x("routerLink",Ut(68,u_))("active",u.isActive),o(2),v(" ",m(49,61,"labels.inputs.Account Details")," "),o(2),O(a.loanDetailsData.originalSchedule?50:-1),o(),x("routerLink",Ut(69,f_))("active",d.isActive),o(2),v(" ",m(54,63,"labels.inputs.Repayment Schedule")," "),o(2),O(a.loanDetailsData.transactions?55:-1),o(),O(a.loanDetailsData.enableIncomeCapitalization?56:-1),o(),O(a.loanDetailsData.enableBuyDownFee?57:-1),o(),O(a.loanDetailsData.status.active?58:-1),o(),O(a.loanDetailsData.collateral?59:-1),o(),O(a.loanDetailsData.multiDisburseLoan?60:-1),o(),O(a.loanDetailsData.loanTermVariations?61:-1),o(),O(a.loanDetailsData.overdueCharges.length>0?62:-1),o(),O(a.loanDetailsData.isLoanProductLinkedToFloatingRate?63:-1),o(),O(a.loanDetailsData.charges?64:-1),o(),O(a.loanDetailsData.status.active||a.loanDetailsData.status.closed||a.loanDetailsData.status.overpaid?65:-1),o(),x("routerLink",Ut(70,h_))("active",g.isActive),o(2),v(" ",m(69,65,"labels.inputs.Loan Documents")," "),o(2),x("mifosxHasPermission","READ_LOANNOTE"),o(),O(a.loanDetailsData.clientId?71:-1),o(),O(a.loanDetailsData.status.active?72:-1),o(),fe(a.loanDatatables)}},dependencies:[wt,ca,Tt,ae,xe,Oe,Ae,$f,Wf,m1,Oi,Gf,Mp,d1,Ba,vp,xp,un,bp,Cp,Qf,t1,Rf,e1,Ff,Sa,En,Pt,Ap,hn],styles:[".loans-overview[_ngcontent-%COMP%]{font-size:14px}.account-overview[_ngcontent-%COMP%]{min-width:80%;font-weight:400}"]})}}return t})();function fC(t,n){if(t&1&&(s(0,"h3"),c(1),p(2,"translate"),l(),s(3,"div",1)(4,"table")(5,"tbody")(6,"tr")(7,"td",2)(8,"b"),c(9),p(10,"translate"),l()(),s(11,"td",3),c(12),p(13,"formatNumber"),l(),s(14,"td",2)(15,"b"),c(16),p(17,"translate"),l()(),s(18,"td",3),c(19),p(20,"dateFormat"),l()()()()()),t&2){let e=P();o(),b(m(2,5,"labels.heading.Performance History")),o(8),v("",m(10,7,"labels.inputs.Number of Repayments")," :"),o(3),v(" ",m(13,9,e.loanDetails==null?null:e.loanDetails.numberOfRepayments)," "),o(4),v("",m(17,11,"labels.inputs.Maturity Date")," :"),o(3),v(" ",m(20,13,e.loanDetails==null?null:e.loanDetails.timeline.expectedMaturityDate)," ")}}function hC(t,n){t&1&&T(0,"th",21)}function gC(t,n){if(t&1&&(s(0,"td",22),c(1),l()),t&2){let e=n.$implicit;o(),b(e.property)}}function _C(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Original")))}function CC(t,n){if(t&1&&(s(0,"td",24),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.original,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function bC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Paid")))}function vC(t,n){if(t&1&&(s(0,"td",25),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.paid,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function xC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Credit Adjustments")," "))}function yC(t,n){if(t&1&&(s(0,"td",26),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.adjustment,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function SC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Waived")))}function DC(t,n){if(t&1&&(s(0,"td",25),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.waived,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function wC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Written Off")))}function TC(t,n){if(t&1&&(s(0,"td",25),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.writtenOff,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function PC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Outstanding")))}function AC(t,n){if(t&1&&(s(0,"td",24),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.outstanding,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function MC(t,n){t&1&&(s(0,"th",23),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Over Due")))}function OC(t,n){if(t&1&&(s(0,"td",24),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.overdue,i.currencyCode,"symbol-narrow","1.2-2")," ")}}function IC(t,n){t&1&&T(0,"tr",27)}function EC(t,n){t&1&&T(0,"tr",28)}function LC(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",4),X(5,5),k(6,hC,1,0,"th",6)(7,gC,2,1,"td",7),Q(),X(8,8),k(9,_C,3,3,"th",9)(10,CC,3,6,"td",10),Q(),X(11,11),k(12,bC,3,3,"th",9)(13,vC,3,6,"td",12),Q(),X(14,13),k(15,xC,3,3,"th",9)(16,yC,3,6,"td",14),Q(),X(17,15),k(18,SC,3,3,"th",9)(19,DC,3,6,"td",12),Q(),X(20,16),k(21,wC,3,3,"th",9)(22,TC,3,6,"td",12),Q(),X(23,17),k(24,PC,3,3,"th",9)(25,AC,3,6,"td",10),Q(),X(26,18),k(27,MC,3,3,"th",9)(28,OC,3,6,"td",10),Q(),k(29,IC,1,0,"tr",19)(30,EC,1,0,"tr",20),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Loan Summary")),o(2),x("dataSource",e.dataSource),o(25),x("matHeaderRowDef",e.loanSummaryColumns),o(),x("matRowDefColumns",e.loanSummaryColumns)}}function NC(t,n){if(t&1&&(s(0,"td",22),c(1),p(2,"translate"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,"labels.inputs."+e.key))}}function kC(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P(4);o(),v(" ",m(2,1,e.loanDetails.timeline.actualDisbursementDate)," ")}}function FC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function RC(t,n){if(t&1&&(M(0,kC,3,3,"span"),M(1,FC,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.timeline.actualDisbursementDate?0:-1),o(),O(e.loanDetails.timeline.actualDisbursementDate?-1:1)}}function BC(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(4);o(),v(" ",e.loanDetails.loanPurposeName," ")}}function qC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function jC(t,n){if(t&1&&(M(0,BC,2,1,"span"),M(1,qC,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.loanPurposeName?0:-1),o(),O(e.loanDetails.loanPurposeName?-1:1)}}function zC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function VC(t,n){t&1&&T(0,"span")}function UC(t,n){if(t&1&&(s(0,"span"),c(1),M(2,VC,1,0,"span"),l()),t&2){let e=P(4);o(),v(" ",e.loanDetails.loanOfficerName," \xA0 "),o(),O(e.loanDetails.loanOfficerName?2:-1)}}function HC(t,n){if(t&1&&(M(0,zC,3,3,"span"),M(1,UC,3,2,"span")),t&2){let e=P(3);O(e.loanDetails.loanOfficerName?-1:0),o(),O(e.loanDetails.loanOfficerName?1:-1)}}function GC(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(3);o(),$t(" ",e.loanDetails.currency.name," ",e.loanDetails.currency.code," ")}}function WC(t,n){if(t&1&&(s(0,"span"),T(1,"mifosx-external-identifier",31),l()),t&2){let e=P(4);o(),x("externalId",ce(e.loanDetails.externalId))}}function $C(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function YC(t,n){if(t&1&&(M(0,WC,2,2,"span"),M(1,$C,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.externalId?0:-1),o(),O(e.loanDetails.externalId?-1:1)}}function ZC(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2).$implicit;o(),b(e.value)}}function KC(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Not Available")))}function JC(t,n){if(t&1&&(M(0,ZC,2,1,"span"),M(1,KC,3,3,"span")),t&2){let e=P().$implicit;O(e.value?0:-1),o(),O(e.value?-1:1)}}function XC(t,n){if(t&1&&c(0),t&2){let e=P().$implicit;v(" ",e.value," ")}}function QC(t,n){if(t&1&&(s(0,"td",22),M(1,RC,2,2),M(2,jC,2,2),M(3,HC,2,2),M(4,GC,2,2,"span"),M(5,YC,2,2),M(6,JC,2,2),M(7,XC,1,1),l()),t&2){let e=n.$implicit;o(),O(e.key==="Disbursement Date"?1:-1),o(),O(e.key==="Loan Purpose"?2:-1),o(),O(e.key==="Loan Officer"?3:-1),o(),O(e.key==="Currency"?4:-1),o(),O(e.key==="External Id"?5:-1),o(),O(e.key==="Write-off Reason"?6:-1),o(),O(e.key==="Proposed Amount"||e.key==="Approved Amount"||e.key==="Disburse Amount"?7:-1)}}function tb(t,n){t&1&&T(0,"tr",28)}function eb(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",4),X(5,29),k(6,NC,3,3,"td",7),Q(),X(7,30),k(8,QC,8,7,"td",7),Q(),k(9,tb,1,0,"tr",20),l()()),t&2){let e=P();o(2),b(m(3,3,"labels.heading.Loan Details")),o(2),x("dataSource",e.detailsDataSource),o(5),x("matRowDefColumns",e.loanDetailsColumns)}}function nb(t,n){if(t&1&&(s(0,"td",22),c(1),p(2,"translate"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,"labels.inputs."+e.key))}}function ib(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P(4);o(),v(" ",m(2,1,e.loanDetails.timeline.actualDisbursementDate)," ")}}function ab(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function ob(t,n){if(t&1&&(M(0,ib,3,3,"span"),M(1,ab,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.timeline.actualDisbursementDate?0:-1),o(),O(e.loanDetails.timeline.actualDisbursementDate?-1:1)}}function rb(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function lb(t,n){t&1&&T(0,"span")}function sb(t,n){if(t&1&&(s(0,"span"),c(1),M(2,lb,1,0,"span"),l()),t&2){let e=P(4);o(),v(" ",e.loanDetails.loanOfficerName," \xA0 "),o(),O(e.loanDetails.loanOfficerName?2:-1)}}function cb(t,n){if(t&1&&(M(0,rb,3,3,"span"),M(1,sb,3,2,"span")),t&2){let e=P(3);O(e.loanDetails.loanOfficerName?-1:0),o(),O(e.loanDetails.loanOfficerName?1:-1)}}function pb(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(3);o(),$t(" ",e.loanDetails.currency.name," ",e.loanDetails.currency.code," ")}}function mb(t,n){if(t&1&&(s(0,"span"),T(1,"mifosx-external-identifier",31),l()),t&2){let e=P(4);o(),x("externalId",ce(e.loanDetails.externalId))}}function db(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Available")," "))}function ub(t,n){if(t&1&&(M(0,mb,2,2,"span"),M(1,db,3,3,"span")),t&2){let e=P(3);O(e.loanDetails.externalId?0:-1),o(),O(e.loanDetails.externalId?-1:1)}}function fb(t,n){if(t&1&&(s(0,"td",22),M(1,ob,2,2),M(2,cb,2,2),M(3,pb,2,2,"span"),M(4,ub,2,2),l()),t&2){let e=n.$implicit;o(),O(e.key==="Disbursement Date"?1:-1),o(),O(e.key==="Loan Officer"?2:-1),o(),O(e.key==="Currency"?3:-1),o(),O(e.key==="External Id"?4:-1)}}function hb(t,n){t&1&&T(0,"tr",28)}function gb(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",4),X(5,29),k(6,nb,3,3,"td",7),Q(),X(7,30),k(8,fb,5,4,"td",7),Q(),k(9,hb,1,0,"tr",20),l()()),t&2){let e=P();o(2),b(m(3,3,"labels.heading.Loan Details")),o(2),x("dataSource",e.detailsDataSource),o(5),x("matRowDefColumns",e.loanDetailsColumns)}}function _b(t,n){if(t&1&&(s(0,"span",35),c(1),l()),t&2){let e=P(2);o(),v(" ",e.loanDetails.loanPurposeName," ")}}function Cb(t,n){t&1&&(s(0,"span",35),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Provided")," "))}function bb(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",35),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Approved Amount"),":"),o(3),b(Ye(6,4,e.loanDetails.approvedPrincipal,e.currencyCode,"symbol-narrow","1.2-2"))}}function vb(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",35),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Disburse Amount"),":"),o(3),b(Ye(6,4,e.loanDetails.principal,e.currencyCode,"symbol-narrow","1.2-2"))}}function xb(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",35),c(5),p(6,"currency"),l()()),t&2){let e=P(2);o(2),v("",m(3,2,"labels.inputs.Balloon Repayment Amount"),":"),o(3),b(Ye(6,4,e.loanDetails.balloonRepaymentAmount,e.currencyCode,"symbol-narrow","1.2-2"))}}function yb(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"div",32)(5,"div",33)(6,"div",34)(7,"span",35),c(8),p(9,"translate"),l(),M(10,_b,2,1,"span",35),M(11,Cb,3,3,"span",35),l(),s(12,"div",34)(13,"span",35),c(14),p(15,"translate"),l(),s(16,"span",35),c(17),p(18,"currency"),l()(),M(19,bb,7,9,"div",34),M(20,vb,7,9,"div",34),M(21,xb,7,9,"div",34),s(22,"div",34)(23,"span",35),c(24),p(25,"translate"),l(),s(26,"span",35),c(27),p(28,"translate"),l()()()()()),t&2){let e=P();o(2),b(m(3,11,"labels.heading.Loan Purpose")),o(6),v("",m(9,13,"labels.inputs.Loan Purpose"),":"),o(2),O(e.loanDetails.loanPurposeName?10:-1),o(),O(e.loanDetails.loanPurposeName?-1:11),o(3),v("",m(15,15,"labels.inputs.Proposed Amount"),":"),o(3),b(Ye(18,17,e.loanDetails.proposedPrincipal,e.currencyCode,"symbol-narrow","1.2-2")),o(2),O(e.showApprovedAmountBasedOnStatus()?19:-1),o(),O(e.showDisbursedAmountBasedOnStatus()?20:-1),o(),O(e.loanDetails.balloonRepaymentAmount>0?21:-1),o(3),v("",m(25,22,"labels.inputs.Arrears By"),":"),o(3),b(m(28,24,"labels.inputs.Not Provided"))}}var kp=(()=>{class t{constructor(){this.route=A(Et),this.loanSummaryColumns=["Empty","Original","Paid","Waived","Written Off","Outstanding","Over Due"],this.loanDetailsColumns=["Key","Value"],this.showDisbursedAmountBasedOnStatus=function(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected"||this.status==="Approved")},this.route.parent.data.subscribe(e=>{this.loanDetails=e.loanDetailsData,this.currencyCode=this.loanDetails.currency.code,this.loanDetails.transactions&&this.loanDetails.transactions.some(i=>{if(i.type.code==="loanTransactionType.chargeback"){this.loanSummaryColumns=["Empty","Original","Adjustments","Paid","Waived","Written Off","Outstanding","Over Due"];return}})})}ngOnInit(){this.status=this.loanDetails.value,this.loanDetails.summary?(this.setloanSummaryTableData(),this.setloanDetailsTableData()):this.setloanNonDetailsTableData()}setloanSummaryTableData(){this.loanSummaryTableData=[{property:"Principal",original:this.loanDetails.summary.totalPrincipal,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.principalPaid,waived:this.loanDetails.summary.principalWaived||0,writtenOff:this.loanDetails.summary.principalWrittenOff,outstanding:this.loanDetails.summary.principalOutstanding,overdue:this.loanDetails.summary.principalOverdue},{property:"Interest",original:this.loanDetails.summary.interestCharged,adjustment:"0",paid:this.loanDetails.summary.interestPaid,waived:this.loanDetails.summary.interestWaived,writtenOff:this.loanDetails.summary.interestWrittenOff,outstanding:this.loanDetails.summary.interestOutstanding,overdue:this.loanDetails.summary.interestOverdue},{property:"Fees",original:this.loanDetails.summary.feeChargesCharged,adjustment:"0",paid:this.loanDetails.summary.feeChargesPaid,waived:this.loanDetails.summary.feeChargesWaived,writtenOff:this.loanDetails.summary.feeChargesWrittenOff,outstanding:this.loanDetails.summary.feeChargesOutstanding,overdue:this.loanDetails.summary.feeChargesOverdue},{property:"Penalties",original:this.loanDetails.summary.penaltyChargesCharged,adjustment:"0",paid:this.loanDetails.summary.penaltyChargesPaid,waived:this.loanDetails.summary.penaltyChargesWaived,writtenOff:this.loanDetails.summary.penaltyChargesWrittenOff,outstanding:this.loanDetails.summary.penaltyChargesOutstanding,overdue:this.loanDetails.summary.penaltyChargesOverdue},{property:"Total",original:this.loanDetails.summary.totalExpectedRepayment,adjustment:this.loanDetails.summary.principalAdjustments||0,paid:this.loanDetails.summary.totalRepayment,waived:this.loanDetails.summary.totalWaived,writtenOff:this.loanDetails.summary.totalWrittenOff,outstanding:this.loanDetails.summary.totalOutstanding,overdue:this.loanDetails.summary.totalOverdue}],this.dataSource=new Li(this.loanSummaryTableData)}setloanDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Loan Purpose"},{key:"Loan Officer"},{key:"Currency"},{key:"External Id"},{key:"Proposed Amount",value:this.loanDetails.proposedPrincipal},{key:"Approved Amount",value:this.loanDetails.approvedPrincipal},{key:"Disburse Amount",value:this.loanDetails.principal}],this.loanDetails.writeOffReason&&this.loanDetailsTableData.push({key:"Write-off Reason",value:this.loanDetails.writeOffReason}),this.detailsDataSource=new Li(this.loanDetailsTableData)}setloanNonDetailsTableData(){this.loanDetailsTableData=[{key:"Disbursement Date"},{key:"Currency"},{key:"Loan Officer"},{key:"External Id"}],this.detailsDataSource=new Li(this.loanDetailsTableData)}showApprovedAmountBasedOnStatus(){return!(this.status==="Submitted and pending approval"||this.status==="Withdrawn by applicant"||this.status==="Rejected")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-general-tab"]],decls:6,vars:5,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","performance-history-container"],[1,"flex-25"],[1,"flex-25","left"],["mat-table","",3,"dataSource"],["matColumnDef","Empty"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Original"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","Paid"],["mat-cell","","class","r-amount amount-minus",4,"matCellDef"],["matColumnDef","Adjustments"],["mat-cell","","class","r-amount amount-plus",4,"matCellDef"],["matColumnDef","Waived"],["matColumnDef","Written Off"],["matColumnDef","Outstanding"],["matColumnDef","Over Due"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-cell","",1,"r-amount","amount-minus"],["mat-cell","",1,"r-amount","amount-plus"],["mat-header-row",""],["mat-row",""],["matColumnDef","Key"],["matColumnDef","Value"],["completed","true",3,"externalId"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"flex-contents"],[1,"flex-50"]],template:function(i,a){i&1&&(s(0,"div",0),M(1,fC,21,15),M(2,LC,31,6,"div"),M(3,eb,10,5,"div"),M(4,gb,10,5,"div"),M(5,yb,29,26,"div"),l()),i&2&&(o(),O(a.loanDetails.summary?1:-1),o(),O(a.loanDetails.summary?2:-1),o(),O(a.loanDetails.summary?3:-1),o(),O(a.loanDetails.summary?-1:4),o(),O(a.loanDetails.summary?-1:5))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Va,Sa,En,Pt,hn],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();function Sb(t,n){if(t&1&&(ee(0,"span")(1,"span",4),c(2),p(3,"translate"),te(),c(4),ee(5,"span",4),c(6),p(7,"translateKey"),te()()),t&2){let e=P(2);o(2),b(m(3,3,"labels.commons.on")),o(2),v("",e.loanDetails.repaymentFrequencyNthDayType==null?null:e.loanDetails.repaymentFrequencyNthDayType.value," "),o(2),b(Ge(7,5,e.loanDetails.repaymentFrequencyDayOfWeekType==null?null:e.loanDetails.repaymentFrequencyDayOfWeekType.value,"catalogs"))}}function Db(t,n){if(t&1&&(ee(0,"span",4),M(1,Sb,8,8,"span"),te()),t&2){let e=P();o(),O(e.loanDetails.repaymentFrequencyDayOfWeekType?1:-1)}}function wb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,3,"labels.inputs.Fixed Length")," "),o(3),$t(" ",e.loanDetails.fixedLength," ",Ge(6,5,e.loanDetails.repaymentFrequencyType.value,"catalogs"))}}function Tb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Principal Percentage Per Installment")," "),o(3),v(" ",m(6,4,e.loanDetails.fixedPrincipalPercentagePerInstallment)," %")}}function Pb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Income capitalization calculation type")),o(3),v(" ",Ge(6,4,e.loanDetails.capitalizedIncomeCalculationType==null?null:e.loanDetails.capitalizedIncomeCalculationType.value,"catalogs")," ")}}function Ab(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Income capitalization strategy")),o(3),v(" ",Ge(6,4,e.loanDetails.capitalizedIncomeStrategy==null?null:e.loanDetails.capitalizedIncomeStrategy.value,"catalogs")," ")}}function Mb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Income capitalization type")),o(3),v(" ",Ge(6,4,e.loanDetails.capitalizedIncomeType==null?null:e.loanDetails.capitalizedIncomeType.value,"catalogs")," ")}}function Ob(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Buy down fee calculation type")),o(3),v(" ",Ge(6,4,e.loanDetails.buyDownFeeCalculationType==null?null:e.loanDetails.buyDownFeeCalculationType.value,"catalogs")," ")}}function Ib(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Buy down fee strategy")),o(3),v(" ",Ge(6,4,e.loanDetails.buyDownFeeStrategy==null?null:e.loanDetails.buyDownFeeStrategy.value,"catalogs")," ")}}function Eb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Buy down fee income type")),o(3),v(" ",Ge(6,4,e.loanDetails.buyDownFeeIncomeType==null?null:e.loanDetails.buyDownFeeIncomeType.value,"catalogs")," ")}}function Lb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"yesNo"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Merchant Buy down fee")),o(3),v(" ",m(6,4,e.loanDetails.merchantBuyDownFee)," ")}}function Nb(t,n){if(t&1&&(ee(0,"span",3),c(1),te()),t&2){let e=P();o(),v(" ",e.loanDetails.fundName," ")}}function kb(t,n){t&1&&(ee(0,"span",3),c(1),p(2,"translate"),te()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function Fb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Fixed EMI amount")),o(3),v(" ",m(6,4,e.loanDetails.fixedEmiAmount)," ")}}function Rb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"yesNo"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Is Topup Loan"),"?"),o(3),v(" ",m(6,4,e.loanDetails.isTopup)," ")}}function Bb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3)(5,"a",5),c(6),te()()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Loan closed with Topup")," "),o(4),b(e.loanDetails.closureLoanAccountNo)}}function qb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Topup closure amount")),o(3),v(" ",m(6,4,e.loanDetails.topupAmount)," ")}}function jb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Interest recalculation compounding on")),o(3),v(" ",Ge(6,4,e.loanDetails.interestRecalculationData.interestRecalculationCompoundingType.value,"catalogs")," ")}}function zb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"translateKey"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Advance payments adjustment type")),o(3),v(" ",Ge(6,4,e.loanDetails.interestRecalculationData.rescheduleStrategyType.value,"catalogs")," ")}}function Vb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Frequency for recalculate Outstanding Principal")),o(3),v(" ",e.loanDetails.interestRecalculationData.calendarData.humanReadable," ")}}function Ub(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Frequency for compounding")),o(3),v(" ",e.loanDetails.interestRecalculationData.compoundingCalendarData.humanReadable," ")}}function Hb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"yesNo"),te()()),t&2){let e=P();o(2),v(" ",m(3,2,"labels.inputs.Variable Installments Allowed")),o(3),v(" ",m(6,4,e.loanDetails.isVariableInstallmentsAllowed)," ")}}function Gb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),p(7,"translate"),p(8,"formatNumber"),p(9,"translate"),te()()),t&2){let e=P();o(2),v(" ",m(3,5,"labels.inputs.Gap between Installments")),o(3),Qs(" ",m(6,7,e.loanDetails.minimumGap),"\xA0",m(7,9,"labels.text.Days"),"\xA0, Max:",m(8,11,e.loanDetails.maximumGap),"\xA0",m(9,13,"labels.text.Days")," ")}}function Wb(t,n){if(t&1&&(ee(0,"div",2)(1,"span",3),c(2),p(3,"translate"),te(),ee(4,"span",3),c(5),p(6,"formatNumber"),te()()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Available Disbursement Amount (with Over Applied)")),o(3),b(m(6,4,e.loanDetails.delinquent.availableDisbursementAmountWithOverApplied))}}var Fp=(()=>{class t{constructor(){this.route=A(Et),this.route.parent.data.subscribe(e=>{this.loanDetails=e.loanDetailsData})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-account-details"]],decls:205,vars:188,consts:[[1,"container","p-b-20"],[1,"responsive-column"],[1,"flex-fill","layout-row"],[1,"flex-50"],[1,"m-l-10"],["href","#"]],template:function(i,a){i&1&&(ee(0,"div",0)(1,"h3"),c(2),p(3,"translate"),te(),ee(4,"div",1)(5,"div",2)(6,"span",3),c(7),p(8,"translate"),te(),ee(9,"span",3),c(10),p(11,"translateKey"),te()(),ee(12,"div",2)(13,"span",3),c(14),p(15,"translate"),te(),ee(16,"span",3),c(17),p(18,"translateKey"),M(19,Db,2,1,"span",4),te()(),M(20,wb,7,8,"div",2),ee(21,"div",2)(22,"span",3),c(23),p(24,"translate"),te(),ee(25,"span",3),c(26),p(27,"translateKey"),te()(),M(28,Tb,7,6,"div",2),ee(29,"div",2)(30,"span",3),c(31),p(32,"translate"),te(),ee(33,"span",3),c(34),p(35,"yesNo"),te()(),ee(36,"div",2)(37,"span",3),c(38),p(39,"translate"),te(),ee(40,"span",3),c(41),p(42,"formatNumber"),p(43,"translate"),p(44,"translateKey"),te()(),ee(45,"div",2)(46,"span",3),c(47),p(48,"translate"),te(),ee(49,"span",3),c(50),p(51,"translate"),te()(),ee(52,"div",2)(53,"span",3),c(54),p(55,"translate"),te(),ee(56,"span",3),c(57),p(58,"yesNo"),te()(),ee(59,"div",2)(60,"span",3),c(61),p(62,"translate"),te(),ee(63,"span",3),c(64),p(65,"translateKey"),te()(),ee(66,"div",2)(67,"span",3),c(68),p(69,"translate"),te(),ee(70,"span",3),c(71),p(72,"yesNo"),te()(),M(73,Pb,7,7,"div",2),M(74,Ab,7,7,"div",2),M(75,Mb,7,7,"div",2),ee(76,"div",2)(77,"span",3),c(78),p(79,"translate"),te(),ee(80,"span",3),c(81),p(82,"yesNo"),te()(),M(83,Ob,7,7,"div",2),M(84,Ib,7,7,"div",2),M(85,Eb,7,7,"div",2),M(86,Lb,7,6,"div",2),ee(87,"div",2)(88,"span",3),c(89),p(90,"translate"),te(),ee(91,"span",3),c(92),te()(),ee(93,"div",2)(94,"span",3),c(95),p(96,"translate"),te(),ee(97,"span",3),c(98),te()(),ee(99,"div",2)(100,"span",3),c(101),p(102,"translate"),te(),ee(103,"span",3),c(104),te()(),ee(105,"div",2)(106,"span",3),c(107),p(108,"translate"),te(),ee(109,"span",3),c(110),p(111,"yesNo"),te()(),ee(112,"div",2)(113,"span",3),c(114),p(115,"translate"),te(),M(116,Nb,2,1,"span",3),M(117,kb,3,3,"span",3),te(),ee(118,"div",2)(119,"span",3),c(120),p(121,"translate"),te(),ee(122,"span",3),c(123),te()(),ee(124,"div",2)(125,"span",3),c(126),p(127,"translate"),te(),ee(128,"span",3),c(129),p(130,"translateKey"),te()(),ee(131,"div",2)(132,"span",3),c(133),p(134,"translate"),te(),ee(135,"span",3),c(136),p(137,"yesNo"),te()(),ee(138,"div",2)(139,"span",3),c(140),p(141,"translate"),te(),ee(142,"span",3),c(143),p(144,"yesNo"),te()(),ee(145,"div",2)(146,"span",3),c(147),p(148,"translate"),te(),ee(149,"span",3),c(150),p(151,"dateFormat"),te()(),ee(152,"div",2)(153,"span",3),c(154),p(155,"translate"),te(),ee(156,"span",3),c(157),p(158,"dateFormat"),te()(),ee(159,"div",2)(160,"span",3),c(161),p(162,"translate"),te(),ee(163,"span",3),c(164),p(165,"dateFormat"),te()(),ee(166,"div",2)(167,"span",3),c(168),p(169,"translate"),te(),ee(170,"span",3),c(171),p(172,"dateFormat"),te()(),M(173,Fb,7,6,"div",2),M(174,Rb,7,6,"div",2),M(175,Bb,7,4,"div",2),M(176,qb,7,6,"div",2),ee(177,"div",2)(178,"span",3),c(179),p(180,"translate"),te(),ee(181,"span",3),c(182),p(183,"yesNo"),te()(),ee(184,"div",2)(185,"span",3),c(186),p(187,"translate"),te(),ee(188,"span",3),c(189),p(190,"translateKey"),te()(),ee(191,"div",2)(192,"span",3),c(193),p(194,"translate"),te(),ee(195,"span",3),c(196),p(197,"translateKey"),te()(),M(198,jb,7,7,"div",2),M(199,zb,7,7,"div",2),M(200,Vb,6,4,"div",2),M(201,Ub,6,4,"div",2),M(202,Hb,7,6,"div",2),M(203,Gb,10,15,"div",2),M(204,Wb,7,6,"div",2),te()()),i&2&&(o(2),b(m(3,80,"labels.heading.Loan Details")),o(5),b(m(8,82,"labels.inputs.Repayment Strategy")),o(3),b(Ge(11,84,a.loanDetails.transactionProcessingStrategyName,"catalogs")),o(4),b(m(15,87,"labels.inputs.Repayments")),o(3),Xs("",a.loanDetails.numberOfRepayments," every ",a.loanDetails.repaymentEvery,"\xA0",Ge(18,89,a.loanDetails.repaymentFrequencyType.value,"catalogs")," "),o(2),O((a.loanDetails.repaymentFrequencyType==null?null:a.loanDetails.repaymentFrequencyType.id)===2&&(a.loanDetails.repaymentFrequencyNthDayType==null?null:a.loanDetails.repaymentFrequencyNthDayType.id)!==0&&(a.loanDetails.repaymentFrequencyDayOfWeekType==null?null:a.loanDetails.repaymentFrequencyDayOfWeekType.id)!==0?19:-1),o(),O(a.loanDetails.fixedLength?20:-1),o(3),v(" ",m(24,92,"labels.inputs.Amortization")," "),o(3),v(" ",Ge(27,94,a.loanDetails.amortizationType.value,"catalogs")," "),o(2),O(a.loanDetails.fixedPrincipalPercentagePerInstallment?28:-1),o(3),v(" ",m(32,97,"labels.inputs.Equal Amortization")," "),o(3),v(" ",m(35,99,a.loanDetails.isEqualAmortization)," "),o(4),v(" ",m(39,101,"labels.inputs.Interest")," "),o(3),Qs(" ",m(42,103,a.loanDetails.annualInterestRate)," % ",m(43,105,"labels.text.per annum")," (",a.loanDetails.interestRatePerPeriod," %\xA0 ",Ge(44,107,a.loanDetails.interestRateFrequencyType.value,"catalogs"),") "),o(6),v(" ",m(48,110,"labels.inputs.Interest Type")," "),o(3),v(" ",m(51,112,"labels.text."+a.loanDetails.interestType.value)," "),o(4),v("",m(55,114,"labels.inputs.Enable Down Payments"),":"),o(3),b(m(58,116,a.loanDetails.enableDownPayment)),o(4),v("",m(62,118,"labels.inputs.Loan Charge-off behaviour"),":"),o(3),b(Ge(65,120,a.loanDetails.chargeOffBehaviour.value,"catalogs")),o(4),v(" ",m(69,123,"labels.inputs.Enable income capitalization")),o(3),v(" ",m(72,125,a.loanDetails.enableIncomeCapitalization)," "),o(2),O(a.loanDetails.enableIncomeCapitalization?73:-1),o(),O(a.loanDetails.enableIncomeCapitalization?74:-1),o(),O(a.loanDetails.enableIncomeCapitalization?75:-1),o(3),v(" ",m(79,127,"labels.inputs.Enable Buy down fee")),o(3),v(" ",m(82,129,a.loanDetails.enableBuyDownFee)," "),o(2),O(a.loanDetails.enableBuyDownFee?83:-1),o(),O(a.loanDetails.enableBuyDownFee?84:-1),o(),O(a.loanDetails.enableBuyDownFee?85:-1),o(),O(a.loanDetails.enableBuyDownFee?86:-1),o(3),v(" ",m(90,131,"labels.inputs.Grace: On Principal Payment")),o(3),v(" ",a.loanDetails.graceOnPrincipalPayment," "),o(3),v(" ",m(96,133,"labels.inputs.Grace: On Interest Payment")),o(3),v(" ",a.loanDetails.graceOnInterestPayment," "),o(3),v(" ",m(102,135,"labels.inputs.Grace on Arrears Ageing")),o(3),v(" ",a.loanDetails.graceOnArrearsAgeing," "),o(3),v(" ",m(108,137,"labels.inputs.Enable installment level Delinquency")," "),o(3),v(" ",m(111,139,a.loanDetails.enableInstallmentLevelDelinquency)," "),o(4),v(" ",m(115,141,"labels.inputs.Fund Source")," "),o(2),O(a.loanDetails.fundName?116:-1),o(),O(a.loanDetails.fundName?-1:117),o(3),v(" ",m(121,143,"labels.inputs.Interest Free Period")),o(3),v(" ",a.loanDetails.graceOnInterestCharged," "),o(3),v(" ",m(127,145,"labels.inputs.Interest Calculation Period")),o(3),v(" ",Ge(130,147,a.loanDetails.interestCalculationPeriodType.value,"catalogs")," "),o(4),v(" ",m(134,150,"labels.inputs.Allow Partial Interest Calculation with same as repayment")),o(3),v(" ",m(137,152,a.loanDetails.allowPartialPeriodInterestCalculation)," "),o(4),v("",m(141,154,"labels.inputs.Is interest recognition on disbursement date?"),":"),o(3),b(m(144,156,a.loanDetails.interestRecognitionOnDisbursementDate)),o(4),v(" ",m(148,158,"labels.inputs.Submitted on")),o(3),v(" ",m(151,160,a.loanDetails.timeline.submittedOnDate)," "),o(4),v(" ",m(155,162,"labels.inputs.Approved on")),o(3),v(" ",m(158,164,a.loanDetails.timeline.approvedOnDate)," "),o(4),v(" ",m(162,166,"labels.inputs.Disbursed on")),o(3),v(" ",m(165,168,a.loanDetails.timeline.actualDisbursementDate)," "),o(4),v(" ",m(169,170,"labels.inputs.Matures on")),o(3),v(" ",m(172,172,a.loanDetails.timeline.expectedMaturityDate)," "),o(2),O(a.loanDetails.canDefineInstallmentAmount?173:-1),o(),O(a.loanDetails.isTopup?174:-1),o(),O(a.loanDetails.isTopup?175:-1),o(),O(a.loanDetails.isTopup?176:-1),o(3),v(" ",m(180,174,"labels.inputs.Recalculate Interest based on new terms")),o(3),v(" ",m(183,176,a.loanDetails.isInterestRecalculationEnabled)," "),o(4),v(" ",m(187,178,"labels.inputs.Days in year")),o(3),v(" ",Ge(190,180,a.loanDetails.daysInYearType.value,"catalogs")," "),o(4),v(" ",m(194,183,"labels.inputs.Days in month")),o(3),v(" ",Ge(197,185,a.loanDetails.daysInMonthType.value,"catalogs")," "),o(2),O(a.loanDetails.isInterestRecalculationEnabled?198:-1),o(),O(a.loanDetails.isInterestRecalculationEnabled?199:-1),o(),O(a.loanDetails.isInterestRecalculationEnabled?200:-1),o(),O(a.loanDetails.isInterestRecalculationEnabled&&a.loanDetails.interestRecalculationData.interestRecalculationCompoundingType.id!==0?201:-1),o(),O(a.loanDetails.isVariableInstallmentsAllowed?202:-1),o(),O(a.loanDetails.isVariableInstallmentsAllowed?203:-1),o(),O(a.loanDetails&&a.loanDetails.delinquent&&a.loanDetails.delinquent.availableDisbursementAmountWithOverApplied!==void 0?204:-1))},dependencies:[wt,Tt,En,Pt,qa,hn,Hr],styles:["table[_ngcontent-%COMP%]{width:100%}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return t})();var Rp=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.authenticationService=A(jf);let e=this.authenticationService.getCredentials();this.username=e.username,this.entityId=this.route.parent.snapshot.params.loanId,this.route.data.subscribe(i=>{this.entityNotes=i.loanNotes})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.entityId=e.loanId})}addNote(e){this.loansService.createLoanNote(this.entityId,e).subscribe(i=>{this.entityNotes.push({id:i.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,i,a){this.loansService.editLoanNote(this.entityId,e,i).subscribe(()=>{this.entityNotes[a].note=i.note})}deleteNote(e,i){this.loansService.deleteLoanNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(i,1)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(i,a){i&1&&T(0,"mifosx-entity-notes-tab",0),i&2&&x("entityId",a.entityId)("entityNotes",a.entityNotes)("callbackAdd",a.addNote)("callbackEdit",a.editNote)("callbackDelete",a.deleteNote)},dependencies:[wt,Tt,l1],encapsulation:2})}}return t})();function fi(t){"@babel/helpers - typeof";return fi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},fi(t)}var To=Uint8Array,Qa=Uint16Array,dd=Int32Array,ud=new To([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),fd=new To([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),v1=new To([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),D1=function(t,n){for(var e=new Qa(31),i=0;i<31;++i)e[i]=n+=1<>1|(ri&21845)<<1,br=(br&52428)>>2|(br&13107)<<2,br=(br&61680)>>4|(br&3855)<<4,pd[ri]=((br&65280)>>8|(br&255)<<8)>>1;var br,ri,rc=function(t,n,e){for(var i=t.length,a=0,r=new Qa(n);a>g]=_}else for(d=new Qa(i),a=0;a>15-t[a]);return d},yl=new To(288);for(ri=0;ri<144;++ri)yl[ri]=8;var ri;for(ri=144;ri<256;++ri)yl[ri]=9;var ri;for(ri=256;ri<280;++ri)yl[ri]=7;var ri;for(ri=280;ri<288;++ri)yl[ri]=8;var ri,Bp=new To(32);for(ri=0;ri<32;++ri)Bp[ri]=5;var ri,Yb=rc(yl,9,0);var Zb=rc(Bp,5,0);var P1=function(t){return(t+7)/8|0},Kb=function(t,n,e){return(n==null||n<0)&&(n=0),(e==null||e>t.length)&&(e=t.length),new To(t.subarray(n,e))};var vr=function(t,n,e){e<<=n&7;var i=n/8|0;t[i]|=e,t[i+1]|=e>>8},ac=function(t,n,e){e<<=n&7;var i=n/8|0;t[i]|=e,t[i+1]|=e>>8,t[i+2]|=e>>16},sd=function(t,n){for(var e=[],i=0;iN&&(N=r[i].s);var D=new Qa(N+1),U=md(e[y-1],D,0);if(U>n){var i=0,H=0,K=U-n,z=1<n)H+=z-(1<>=K;H>0;){var pt=r[i].s;D[pt]=0&&H;--i){var nt=r[i].s;D[nt]==n&&(--D[nt],++H)}U=n}return{t:new To(D),l:U}},md=function(t,n,e){return t.s==-1?Math.max(md(t.l,n,e+1),md(t.r,n,e+1)):n[t.s]=e},y1=function(t){for(var n=t.length;n&&!t[--n];);for(var e=new Qa(++n),i=0,a=t[0],r=1,u=function(g){e[i++]=g},d=1;d<=n;++d)if(t[d]==a&&d!=n)++r;else{if(!a&&r>2){for(;r>138;r-=138)u(32754);r>2&&(u(r>10?r-11<<5|28690:r-3<<5|12305),r=0)}else if(r>3){for(u(a),--r;r>6;r-=6)u(8304);r>2&&(u(r-3<<5|8208),r=0)}for(;r--;)u(a);r=1,a=t[d]}return{c:e.subarray(0,i),n}},oc=function(t,n){for(var e=0,i=0;i>8,t[a+2]=t[a]^255,t[a+3]=t[a+1]^255;for(var r=0;r4&&!vt[v1[Y-1]];--Y);var rt=_+5<<3,ot=oc(a,yl)+oc(r,Bp)+u,At=oc(a,N)+oc(r,H)+u+14+3*Y+oc(jt,vt)+2*jt[16]+3*jt[17]+7*jt[18];if(g>=0&&rt<=ot&&rt<=At)return A1(n,y,t.subarray(g,g+_));var kt,Rt,St,qt;if(vr(n,y,1+(At15&&(vr(n,y,J[ht]>>5&127),y+=J[ht]>>12)}}else kt=Yb,Rt=yl,St=Zb,qt=Bp;for(var ht=0;ht255){var et=lt>>18&31;ac(n,y,kt[et+257]),y+=Rt[et+257],et>7&&(vr(n,y,lt>>23&31),y+=ud[et]);var ft=lt&31;ac(n,y,St[ft]),y+=qt[ft],ft>3&&(ac(n,y,lt>>5&8191),y+=fd[ft])}else ac(n,y,kt[lt]),y+=Rt[lt]}return ac(n,y,kt[256]),y+Rt[256]},Jb=new dd([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),M1=new To(0),Xb=function(t,n,e,i,a,r){var u=r.z||t.length,d=new To(i+u+5*(1+Math.ceil(u/7e3))+a),g=d.subarray(i,d.length-a),_=r.l,y=(r.r||0)&7;if(n){y&&(g[0]=r.r>>3);for(var I=Jb[n-1],N=I>>13,D=I&8191,U=(1<7e3||vt>24576)&&(kt>423||!_)){y=S1(t,g,0,nt,Ot,Yt,ht,vt,Y,tt-Y,y),vt=jt=ht=0,Y=tt;for(var Rt=0;Rt<286;++Rt)Ot[Rt]=0;for(var Rt=0;Rt<30;++Rt)Yt[Rt]=0}var St=2,qt=0,se=D,Jt=ot-At&32767;if(kt>2&&rt==pt(tt-Jt))for(var B=Math.min(N,kt)-1,J=Math.min(32767,tt),et=Math.min(258,kt);Jt<=J&&--se&&ot!=At;){if(t[tt+St]==t[tt+St-Jt]){for(var lt=0;ltSt){if(St=lt,qt=Jt,lt>B)break;for(var ft=Math.min(Jt,lt-2),Ct=0,Rt=0;RtCt&&(Ct=Ht,At=It)}}}ot=At,At=H[ot],Jt+=ot-At&32767}if(qt){nt[vt++]=268435456|cd[St]<<18|x1[qt];var re=cd[St]&31,Me=x1[qt]&31;ht+=ud[re]+fd[Me],++Ot[257+re],++Yt[Me],j=tt+St,++jt}else nt[vt++]=t[tt],++Ot[t[tt]]}}for(tt=Math.max(tt,j);tt=u&&(g[y/8|0]=_,De=u),y=A1(g,y+1,t.subarray(tt,De))}r.i=u}return Kb(d,0,i+P1(y)+a)};var O1=function(){var t=1,n=0;return{p:function(e){for(var i=t,a=n,r=e.length|0,u=0;u!=r;){for(var d=Math.min(u+2655,r);u>16),a=(a&65535)+15*(a>>16)}t=i,n=a},d:function(){return t%=65521,n%=65521,(t&255)<<24|(t&65280)<<8|(n&255)<<8|n>>8}}},Qb=function(t,n,e,i,a){if(!a&&(a={l:1},n.dictionary)){var r=n.dictionary.subarray(-32768),u=new To(r.length+t.length);u.set(r),u.set(t,r.length),t=u,a.w=r.length}return Xb(t,n.level==null?6:n.level,n.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(t.length)))*1.5):20:12+n.mem,e,i,a)};var I1=function(t,n,e){for(;e;++n)t[n]=e,e>>>=8};var tv=function(t,n){var e=n.level,i=e==0?0:e<6?1:e==9?3:2;if(t[0]=120,t[1]=i<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var a=O1();a.p(n.dictionary),I1(t,2,a.d())}};function qp(t,n){n||(n={});var e=O1();e.p(t);var i=Qb(t,n,n.dictionary?6:2,4);return tv(i,n),I1(i,i.length-4,e.d()),i}var ev=typeof TextDecoder<"u"&&new TextDecoder,nv=0;try{ev.decode(M1,{stream:!0}),nv=1}catch{}function E1(t){if(Array.isArray(t))return t}function L1(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,a,r,u,d=[],g=!0,_=!1;try{if(r=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;g=!1}else for(;!(g=(i=r.call(e)).done)&&(d.push(i.value),d.length!==n);g=!0);}catch(y){_=!0,a=y}finally{try{if(!g&&e.return!=null&&(u=e.return(),Object(u)!==u))return}finally{if(_)throw a}}return d}}function hd(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e{let t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),Cd={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},lc=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=av,e={}){let i=!1;typeof n=="number"?n=new ArrayBuffer(n):(i=!0,this.lastWrittenByte=n.byteLength);let a=e.offset?e.offset>>>0:0,r=n.byteLength-a,u=a;(ArrayBuffer.isView(n)||n instanceof t)&&(n.byteLength!==n.buffer.byteLength&&(u=n.byteOffset+a),n=n.buffer),i?this.lastWrittenByte=r:this.lastWrittenByte=0,this.buffer=n,this.length=r,this.byteLength=r,this.byteOffset=u,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,u,r),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){let i=(this.offset+n)*2,a=new Uint8Array(i);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,e){let i=Cd[e].BYTES_PER_ELEMENT*n,a=this.byteOffset+this.offset,r=this.buffer.slice(a,a+i);if(this.littleEndian===ov&&e!=="uint8"&&e!=="int8"){let d=new Uint8Array(this.buffer.slice(a,a+i));d.reverse();let g=new Cd[e](d.buffer);return this.offset+=i,g.reverse(),g}let u=new Cd[e](r);return this.offset+=i,u}readInt16(){let n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){let n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){let n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){let n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){let n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){let n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){let n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){let n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let i=0;ithis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function cs(t){let n=t.length;for(;--n>=0;)t[n]=0}var rv=0,xh=1,lv=2,sv=3,cv=258,Vd=29,yc=256,fc=yc+1+Vd,rs=30,Ud=19,yh=2*fc+1,Sl=15,bd=16,pv=7,Hd=256,Sh=16,Dh=17,wh=18,Ld=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),Gp=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),mv=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Th=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),dv=512,yr=new Array((fc+2)*2);cs(yr);var mc=new Array(rs*2);cs(mc);var hc=new Array(dv);cs(hc);var gc=new Array(cv-sv+1);cs(gc);var Gd=new Array(Vd);cs(Gd);var Wp=new Array(rs);cs(Wp);function vd(t,n,e,i,a){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=i,this.max_length=a,this.has_stree=t&&t.length}var Ph,Ah,Mh;function xd(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}var Oh=t=>t<256?hc[t]:hc[256+(t>>>7)],_c=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},Ua=(t,n,e)=>{t.bi_valid>bd-e?(t.bi_buf|=n<>bd-t.bi_valid,t.bi_valid+=e-bd):(t.bi_buf|=n<{Ua(t,e[n*2],e[n*2+1])},Ih=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},uv=t=>{t.bi_valid===16?(_c(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},fv=(t,n)=>{let e=n.dyn_tree,i=n.max_code,a=n.stat_desc.static_tree,r=n.stat_desc.has_stree,u=n.stat_desc.extra_bits,d=n.stat_desc.extra_base,g=n.stat_desc.max_length,_,y,I,N,D,U,H=0;for(N=0;N<=Sl;N++)t.bl_count[N]=0;for(e[t.heap[t.heap_max]*2+1]=0,_=t.heap_max+1;_g&&(N=g,H++),e[y*2+1]=N,!(y>i)&&(t.bl_count[N]++,D=0,y>=d&&(D=u[y-d]),U=e[y*2],t.opt_len+=U*(N+D),r&&(t.static_len+=U*(a[y*2+1]+D)));if(H!==0){do{for(N=g-1;t.bl_count[N]===0;)N--;t.bl_count[N]--,t.bl_count[N+1]+=2,t.bl_count[g]--,H-=2}while(H>0);for(N=g;N!==0;N--)for(y=t.bl_count[N];y!==0;)I=t.heap[--_],!(I>i)&&(e[I*2+1]!==N&&(t.opt_len+=(N-e[I*2+1])*e[I*2],e[I*2+1]=N),y--)}},Eh=(t,n,e)=>{let i=new Array(Sl+1),a=0,r,u;for(r=1;r<=Sl;r++)a=a+e[r-1]<<1,i[r]=a;for(u=0;u<=n;u++){let d=t[u*2+1];d!==0&&(t[u*2]=Ih(i[d]++,d))}},hv=()=>{let t,n,e,i,a,r=new Array(Sl+1);for(e=0,i=0;i>=7;i{let n;for(n=0;n{t.bi_valid>8?_c(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},R1=(t,n,e,i)=>{let a=n*2,r=e*2;return t[a]{let i=t.heap[e],a=e<<1;for(;a<=t.heap_len&&(a{let i,a,r=0,u,d;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+r++]&255,i+=(t.pending_buf[t.sym_buf+r++]&255)<<8,a=t.pending_buf[t.sym_buf+r++],i===0?Zo(t,a,n):(u=gc[a],Zo(t,u+yc+1,n),d=Ld[u],d!==0&&(a-=Gd[u],Ua(t,a,d)),i--,u=Oh(i),Zo(t,u,e),d=Gp[u],d!==0&&(i-=Wp[u],Ua(t,i,d)));while(r{let e=n.dyn_tree,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,r=n.stat_desc.elems,u,d,g=-1,_;for(t.heap_len=0,t.heap_max=yh,u=0;u>1;u>=1;u--)yd(t,e,u);_=r;do u=t.heap[1],t.heap[1]=t.heap[t.heap_len--],yd(t,e,1),d=t.heap[1],t.heap[--t.heap_max]=u,t.heap[--t.heap_max]=d,e[_*2]=e[u*2]+e[d*2],t.depth[_]=(t.depth[u]>=t.depth[d]?t.depth[u]:t.depth[d])+1,e[u*2+1]=e[d*2+1]=_,t.heap[1]=_++,yd(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],fv(t,n),Eh(e,g,t.bl_count)},q1=(t,n,e)=>{let i,a=-1,r,u=n[1],d=0,g=7,_=4;for(u===0&&(g=138,_=3),n[(e+1)*2+1]=65535,i=0;i<=e;i++)r=u,u=n[(i+1)*2+1],!(++d{let i,a=-1,r,u=n[1],d=0,g=7,_=4;for(u===0&&(g=138,_=3),i=0;i<=e;i++)if(r=u,u=n[(i+1)*2+1],!(++d{let n;for(q1(t,t.dyn_ltree,t.l_desc.max_code),q1(t,t.dyn_dtree,t.d_desc.max_code),Nd(t,t.bl_desc),n=Ud-1;n>=3&&t.bl_tree[Th[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},_v=(t,n,e,i)=>{let a;for(Ua(t,n-257,5),Ua(t,e-1,5),Ua(t,i-4,4),a=0;a{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(e=32;e{z1||(hv(),z1=!0),t.l_desc=new xd(t.dyn_ltree,Ph),t.d_desc=new xd(t.dyn_dtree,Ah),t.bl_desc=new xd(t.bl_tree,Mh),t.bi_buf=0,t.bi_valid=0,Lh(t)},kh=(t,n,e,i)=>{Ua(t,(rv<<1)+(i?1:0),3),Nh(t),_c(t,e),_c(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},vv=t=>{Ua(t,xh<<1,3),Zo(t,Hd,yr),uv(t)},xv=(t,n,e,i)=>{let a,r,u=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=Cv(t)),Nd(t,t.l_desc),Nd(t,t.d_desc),u=gv(t),a=t.opt_len+3+7>>>3,r=t.static_len+3+7>>>3,r<=a&&(a=r)):a=r=e+5,e+4<=a&&n!==-1?kh(t,n,e,i):t.strategy===4||r===a?(Ua(t,(xh<<1)+(i?1:0),3),B1(t,yr,mc)):(Ua(t,(lv<<1)+(i?1:0),3),_v(t,t.l_desc.max_code+1,t.d_desc.max_code+1,u+1),B1(t,t.dyn_ltree,t.dyn_dtree)),Lh(t),i&&Nh(t)},yv=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(gc[e]+yc+1)*2]++,t.dyn_dtree[Oh(n)*2]++),t.sym_next===t.sym_end),Sv=bv,Dv=kh,wv=xv,Tv=yv,Pv=vv,Av={_tr_init:Sv,_tr_stored_block:Dv,_tr_flush_block:wv,_tr_tally:Tv,_tr_align:Pv},Mv=(t,n,e,i)=>{let a=t&65535|0,r=t>>>16&65535|0,u=0;for(;e!==0;){u=e>2e3?2e3:e,e-=u;do a=a+n[i++]|0,r=r+a|0;while(--u);a%=65521,r%=65521}return a|r<<16|0},Cc=Mv,Ov=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},Iv=new Uint32Array(Ov()),Ev=(t,n,e,i)=>{let a=Iv,r=i+e;t^=-1;for(let u=i;u>>8^a[(t^n[u])&255];return t^-1},da=Ev,Tl={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ps={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:Lv,_tr_stored_block:kd,_tr_flush_block:Nv,_tr_tally:Zr,_tr_align:kv}=Av,{Z_NO_FLUSH:Kr,Z_PARTIAL_FLUSH:Fv,Z_FULL_FLUSH:Rv,Z_FINISH:uo,Z_BLOCK:V1,Z_OK:va,Z_STREAM_END:U1,Z_STREAM_ERROR:Ko,Z_DATA_ERROR:Bv,Z_BUF_ERROR:Sd,Z_DEFAULT_COMPRESSION:qv,Z_FILTERED:jv,Z_HUFFMAN_ONLY:jp,Z_RLE:zv,Z_FIXED:Vv,Z_DEFAULT_STRATEGY:Uv,Z_UNKNOWN:Hv,Z_DEFLATED:Zp}=ps,Gv=9,Wv=15,$v=8,Yv=29,Zv=256,Fd=Zv+1+Yv,Kv=30,Jv=19,Xv=2*Fd+1,Qv=15,ti=3,Yr=258,Jo=Yr+ti+1,t5=32,ls=42,Wd=57,Rd=69,Bd=73,qd=91,jd=103,Dl=113,cc=666,Na=1,ms=2,Pl=3,ds=4,e5=3,wl=(t,n)=>(t.msg=Tl[n],n),H1=t=>t*2-(t>4?9:0),$r=t=>{let n=t.length;for(;--n>=0;)t[n]=0},n5=t=>{let n,e,i,a=t.w_size;n=t.hash_size,i=n;do e=t.head[--i],t.head[i]=e>=a?e-a:0;while(--n);n=a,i=n;do e=t.prev[--i],t.prev[i]=e>=a?e-a:0;while(--n)},i5=(t,n,e)=>(n<{let n=t.state,e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},eo=(t,n)=>{Nv(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,to(t.strm)},li=(t,n)=>{t.pending_buf[t.pending++]=n},sc=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},zd=(t,n,e,i)=>{let a=t.avail_in;return a>i&&(a=i),a===0?0:(t.avail_in-=a,n.set(t.input.subarray(t.next_in,t.next_in+a),e),t.state.wrap===1?t.adler=Cc(t.adler,n,a,e):t.state.wrap===2&&(t.adler=da(t.adler,n,a,e)),t.next_in+=a,t.total_in+=a,a)},Fh=(t,n)=>{let e=t.max_chain_length,i=t.strstart,a,r,u=t.prev_length,d=t.nice_match,g=t.strstart>t.w_size-Jo?t.strstart-(t.w_size-Jo):0,_=t.window,y=t.w_mask,I=t.prev,N=t.strstart+Yr,D=_[i+u-1],U=_[i+u];t.prev_length>=t.good_match&&(e>>=2),d>t.lookahead&&(d=t.lookahead);do if(a=n,!(_[a+u]!==U||_[a+u-1]!==D||_[a]!==_[i]||_[++a]!==_[i+1])){i+=2,a++;do;while(_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&_[++i]===_[++a]&&iu){if(t.match_start=n,u=r,r>=d)break;D=_[i+u-1],U=_[i+u]}}while((n=I[n&y])>g&&--e!==0);return u<=t.lookahead?u:t.lookahead},ss=t=>{let n=t.w_size,e,i,a;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-Jo)&&(t.window.set(t.window.subarray(n,n+n-i),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),n5(t),i+=n),t.strm.avail_in===0)break;if(e=zd(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.lookahead+t.insert>=ti)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=Jr(t,t.ins_h,t.window[a+1]);t.insert&&(t.ins_h=Jr(t,t.ins_h,t.window[a+ti-1]),t.prev[a&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=a,a++,t.insert--,!(t.lookahead+t.insert{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,a,r,u=0,d=t.strm.avail_in;do{if(i=65535,r=t.bi_valid+42>>3,t.strm.avail_outa+t.strm.avail_in&&(i=a+t.strm.avail_in),i>r&&(i=r),i>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,to(t.strm),a&&(a>i&&(a=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,i-=a),i&&(zd(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(u===0);return d-=t.strm.avail_in,d&&(d>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=d&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-d,t.strm.next_in),t.strstart),t.strstart+=d,t.insert+=d>t.w_size-t.insert?t.w_size-t.insert:d),t.block_start=t.strstart),t.high_waterr&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,r+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),r>t.strm.avail_in&&(r=t.strm.avail_in),r&&(zd(t.strm,t.window,t.strstart,r),t.strstart+=r,t.insert+=r>t.w_size-t.insert?t.w_size-t.insert:r),t.high_water>3,r=t.pending_buf_size-r>65535?65535:t.pending_buf_size-r,e=r>t.w_size?t.w_size:r,a=t.strstart-t.block_start,(a>=e||(a||n===uo)&&n!==Kr&&t.strm.avail_in===0&&a<=r)&&(i=a>r?r:a,u=n===uo&&t.strm.avail_in===0&&i===a?1:0,kd(t,t.block_start,i,u),t.block_start+=i,to(t.strm)),u?Pl:Na)},Dd=(t,n)=>{let e,i;for(;;){if(t.lookahead=ti&&(t.ins_h=Jr(t,t.ins_h,t.window[t.strstart+ti-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),e!==0&&t.strstart-e<=t.w_size-Jo&&(t.match_length=Fh(t,e)),t.match_length>=ti)if(i=Zr(t,t.strstart-t.match_start,t.match_length-ti),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=ti){t.match_length--;do t.strstart++,t.ins_h=Jr(t,t.ins_h,t.window[t.strstart+ti-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart;while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=Jr(t,t.ins_h,t.window[t.strstart+1]);else i=Zr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(eo(t,!1),t.strm.avail_out===0))return Na}return t.insert=t.strstart{let e,i,a;for(;;){if(t.lookahead=ti&&(t.ins_h=Jr(t,t.ins_h,t.window[t.strstart+ti-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=ti-1,e!==0&&t.prev_length4096)&&(t.match_length=ti-1)),t.prev_length>=ti&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-ti,i=Zr(t,t.strstart-1-t.prev_match,t.prev_length-ti),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(t.ins_h=Jr(t,t.ins_h,t.window[t.strstart+ti-1]),e=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart);while(--t.prev_length!==0);if(t.match_available=0,t.match_length=ti-1,t.strstart++,i&&(eo(t,!1),t.strm.avail_out===0))return Na}else if(t.match_available){if(i=Zr(t,0,t.window[t.strstart-1]),i&&eo(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return Na}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=Zr(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let e,i,a,r,u=t.window;for(;;){if(t.lookahead<=Yr){if(ss(t),t.lookahead<=Yr&&n===Kr)return Na;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=ti&&t.strstart>0&&(a=t.strstart-1,i=u[a],i===u[++a]&&i===u[++a]&&i===u[++a])){r=t.strstart+Yr;do;while(i===u[++a]&&i===u[++a]&&i===u[++a]&&i===u[++a]&&i===u[++a]&&i===u[++a]&&i===u[++a]&&i===u[++a]&&at.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=ti?(e=Zr(t,1,t.match_length-ti),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=Zr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(eo(t,!1),t.strm.avail_out===0))return Na}return t.insert=0,n===uo?(eo(t,!0),t.strm.avail_out===0?Pl:ds):t.sym_next&&(eo(t,!1),t.strm.avail_out===0)?Na:ms},o5=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(ss(t),t.lookahead===0)){if(n===Kr)return Na;break}if(t.match_length=0,e=Zr(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(eo(t,!1),t.strm.avail_out===0))return Na}return t.insert=0,n===uo?(eo(t,!0),t.strm.avail_out===0?Pl:ds):t.sym_next&&(eo(t,!1),t.strm.avail_out===0)?Na:ms};function Yo(t,n,e,i,a){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=i,this.func=a}var pc=[new Yo(0,0,0,0,Rh),new Yo(4,4,8,4,Dd),new Yo(4,5,16,8,Dd),new Yo(4,6,32,32,Dd),new Yo(4,4,16,16,as),new Yo(8,16,32,32,as),new Yo(8,16,128,128,as),new Yo(8,32,128,256,as),new Yo(32,128,258,1024,as),new Yo(32,258,258,4096,as)],r5=t=>{t.window_size=2*t.w_size,$r(t.head),t.max_lazy_match=pc[t.level].max_lazy,t.good_match=pc[t.level].good_length,t.nice_match=pc[t.level].nice_length,t.max_chain_length=pc[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=ti-1,t.match_available=0,t.ins_h=0};function l5(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Zp,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(Xv*2),this.dyn_dtree=new Uint16Array((2*Kv+1)*2),this.bl_tree=new Uint16Array((2*Jv+1)*2),$r(this.dyn_ltree),$r(this.dyn_dtree),$r(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Qv+1),this.heap=new Uint16Array(2*Fd+1),$r(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Fd+1),$r(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var Sc=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.status!==ls&&n.status!==Wd&&n.status!==Rd&&n.status!==Bd&&n.status!==qd&&n.status!==jd&&n.status!==Dl&&n.status!==cc?1:0},Bh=t=>{if(Sc(t))return wl(t,Ko);t.total_in=t.total_out=0,t.data_type=Hv;let n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Wd:n.wrap?ls:Dl,t.adler=n.wrap===2?0:1,n.last_flush=-2,Lv(n),va},qh=t=>{let n=Bh(t);return n===va&&r5(t.state),n},s5=(t,n)=>Sc(t)||t.state.wrap!==2?Ko:(t.state.gzhead=n,va),jh=(t,n,e,i,a,r)=>{if(!t)return Ko;let u=1;if(n===qv&&(n=6),i<0?(u=0,i=-i):i>15&&(u=2,i-=16),a<1||a>Gv||e!==Zp||i<8||i>15||n<0||n>9||r<0||r>Vv||i===8&&u!==1)return wl(t,Ko);i===8&&(i=9);let d=new l5;return t.state=d,d.strm=t,d.status=ls,d.wrap=u,d.gzhead=null,d.w_bits=i,d.w_size=1<jh(t,n,Zp,Wv,$v,Uv),p5=(t,n)=>{if(Sc(t)||n>V1||n<0)return t?wl(t,Ko):Ko;let e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===cc&&n!==uo)return wl(t,t.avail_out===0?Sd:Ko);let i=e.last_flush;if(e.last_flush=n,e.pending!==0){if(to(t),t.avail_out===0)return e.last_flush=-1,va}else if(t.avail_in===0&&H1(n)<=H1(i)&&n!==uo)return wl(t,Sd);if(e.status===cc&&t.avail_in!==0)return wl(t,Sd);if(e.status===ls&&e.wrap===0&&(e.status=Dl),e.status===ls){let a=Zp+(e.w_bits-8<<4)<<8,r=-1;if(e.strategy>=jp||e.level<2?r=0:e.level<6?r=1:e.level===6?r=2:r=3,a|=r<<6,e.strstart!==0&&(a|=t5),a+=31-a%31,sc(e,a),e.strstart!==0&&(sc(e,t.adler>>>16),sc(e,t.adler&65535)),t.adler=1,e.status=Dl,to(t),e.pending!==0)return e.last_flush=-1,va}if(e.status===Wd){if(t.adler=0,li(e,31),li(e,139),li(e,8),e.gzhead)li(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),li(e,e.gzhead.time&255),li(e,e.gzhead.time>>8&255),li(e,e.gzhead.time>>16&255),li(e,e.gzhead.time>>24&255),li(e,e.level===9?2:e.strategy>=jp||e.level<2?4:0),li(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(li(e,e.gzhead.extra.length&255),li(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=da(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=Rd;else if(li(e,0),li(e,0),li(e,0),li(e,0),li(e,0),li(e,e.level===9?2:e.strategy>=jp||e.level<2?4:0),li(e,e5),e.status=Dl,to(t),e.pending!==0)return e.last_flush=-1,va}if(e.status===Rd){if(e.gzhead.extra){let a=e.pending,r=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+r>e.pending_buf_size;){let d=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+d),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>a&&(t.adler=da(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex+=d,to(t),e.pending!==0)return e.last_flush=-1,va;a=0,r-=d}let u=new Uint8Array(e.gzhead.extra);e.pending_buf.set(u.subarray(e.gzindex,e.gzindex+r),e.pending),e.pending+=r,e.gzhead.hcrc&&e.pending>a&&(t.adler=da(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Bd}if(e.status===Bd){if(e.gzhead.name){let a=e.pending,r;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=da(t.adler,e.pending_buf,e.pending-a,a)),to(t),e.pending!==0)return e.last_flush=-1,va;a=0}e.gzindexa&&(t.adler=da(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=qd}if(e.status===qd){if(e.gzhead.comment){let a=e.pending,r;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=da(t.adler,e.pending_buf,e.pending-a,a)),to(t),e.pending!==0)return e.last_flush=-1,va;a=0}e.gzindexa&&(t.adler=da(t.adler,e.pending_buf,e.pending-a,a))}e.status=jd}if(e.status===jd){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(to(t),e.pending!==0))return e.last_flush=-1,va;li(e,t.adler&255),li(e,t.adler>>8&255),t.adler=0}if(e.status=Dl,to(t),e.pending!==0)return e.last_flush=-1,va}if(t.avail_in!==0||e.lookahead!==0||n!==Kr&&e.status!==cc){let a=e.level===0?Rh(e,n):e.strategy===jp?o5(e,n):e.strategy===zv?a5(e,n):pc[e.level].func(e,n);if((a===Pl||a===ds)&&(e.status=cc),a===Na||a===Pl)return t.avail_out===0&&(e.last_flush=-1),va;if(a===ms&&(n===Fv?kv(e):n!==V1&&(kd(e,0,0,!1),n===Rv&&($r(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),to(t),t.avail_out===0))return e.last_flush=-1,va}return n!==uo?va:e.wrap<=0?U1:(e.wrap===2?(li(e,t.adler&255),li(e,t.adler>>8&255),li(e,t.adler>>16&255),li(e,t.adler>>24&255),li(e,t.total_in&255),li(e,t.total_in>>8&255),li(e,t.total_in>>16&255),li(e,t.total_in>>24&255)):(sc(e,t.adler>>>16),sc(e,t.adler&65535)),to(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?va:U1)},m5=t=>{if(Sc(t))return Ko;let n=t.state.status;return t.state=null,n===Dl?wl(t,Bv):va},d5=(t,n)=>{let e=n.length;if(Sc(t))return Ko;let i=t.state,a=i.wrap;if(a===2||a===1&&i.status!==ls||i.lookahead)return Ko;if(a===1&&(t.adler=Cc(t.adler,n,e,0)),i.wrap=0,e>=i.w_size){a===0&&($r(i.head),i.strstart=0,i.block_start=0,i.insert=0);let g=new Uint8Array(i.w_size);g.set(n.subarray(e-i.w_size,e),0),n=g,e=i.w_size}let r=t.avail_in,u=t.next_in,d=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,ss(i);i.lookahead>=ti;){let g=i.strstart,_=i.lookahead-(ti-1);do i.ins_h=Jr(i,i.ins_h,i.window[g+ti-1]),i.prev[g&i.w_mask]=i.head[i.ins_h],i.head[i.ins_h]=g,g++;while(--_);i.strstart=g,i.lookahead=ti-1,ss(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=ti-1,i.match_available=0,t.next_in=u,t.input=d,t.avail_in=r,i.wrap=a,va},u5=c5,f5=jh,h5=qh,g5=Bh,_5=s5,C5=p5,b5=m5,v5=d5,x5="pako deflate (from Nodeca project)",dc={deflateInit:u5,deflateInit2:f5,deflateReset:h5,deflateResetKeep:g5,deflateSetHeader:_5,deflate:C5,deflateEnd:b5,deflateSetDictionary:v5,deflateInfo:x5},y5=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),S5=function(t){let n=Array.prototype.slice.call(arguments,1);for(;n.length;){let e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(let i in e)y5(e,i)&&(t[i]=e[i])}}return t},D5=t=>{let n=0;for(let i=0,a=t.length;i=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;bc[254]=bc[254]=1;var w5=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,i,a,r,u=t.length,d=0;for(a=0;a>>6,n[r++]=128|e&63):e<65536?(n[r++]=224|e>>>12,n[r++]=128|e>>>6&63,n[r++]=128|e&63):(n[r++]=240|e>>>18,n[r++]=128|e>>>12&63,n[r++]=128|e>>>6&63,n[r++]=128|e&63);return n},T5=(t,n)=>{if(n<65534&&t.subarray&&zh)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let i=0;i{let e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let i,a,r=new Array(e*2);for(a=0,i=0;i4){r[a++]=65533,i+=d-1;continue}for(u&=d===2?31:d===3?15:7;d>1&&i1){r[a++]=65533;continue}u<65536?r[a++]=u:(u-=65536,r[a++]=55296|u>>10&1023,r[a++]=56320|u&1023)}return T5(r,a)},A5=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+bc[t[e]]>n?e:n},vc={string2buf:w5,buf2string:P5,utf8border:A5};function M5(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Vh=M5,Uh=Object.prototype.toString,{Z_NO_FLUSH:O5,Z_SYNC_FLUSH:I5,Z_FULL_FLUSH:E5,Z_FINISH:L5,Z_OK:$p,Z_STREAM_END:N5,Z_DEFAULT_COMPRESSION:k5,Z_DEFAULT_STRATEGY:F5,Z_DEFLATED:R5}=ps;function Dc(t){this.options=Kp.assign({level:k5,method:R5,chunkSize:16384,windowBits:15,memLevel:8,strategy:F5},t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vh,this.strm.avail_out=0;let e=dc.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy);if(e!==$p)throw new Error(Tl[e]);if(n.header&&dc.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=vc.string2buf(n.dictionary):Uh.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,e=dc.deflateSetDictionary(this.strm,i),e!==$p)throw new Error(Tl[e]);this._dict_set=!0}}Dc.prototype.push=function(t,n){let e=this.strm,i=this.options.chunkSize,a,r;if(this.ended)return!1;for(n===~~n?r=n:r=n===!0?L5:O5,typeof t=="string"?e.input=vc.string2buf(t):Uh.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),(r===I5||r===E5)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(a=dc.deflate(e,r),a===N5)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),a=dc.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===$p;if(e.avail_out===0){this.onData(e.output);continue}if(r>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};Dc.prototype.onData=function(t){this.chunks.push(t)};Dc.prototype.onEnd=function(t){t===$p&&(this.result=Kp.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function $d(t,n){let e=new Dc(n);if(e.push(t,!0),e.err)throw e.msg||Tl[e.err];return e.result}function B5(t,n){return n=n||{},n.raw=!0,$d(t,n)}function q5(t,n){return n=n||{},n.gzip=!0,$d(t,n)}var j5=Dc,z5=$d,V5=B5,U5=q5,H5=ps,G5={Deflate:j5,deflate:z5,deflateRaw:V5,gzip:U5,constants:H5},zp=16209,W5=16191,$5=function(n,e){let i,a,r,u,d,g,_,y,I,N,D,U,H,K,z,ct,pt,nt,Ot,Yt,jt,ht,tt,vt,j=n.state;i=n.next_in,tt=n.input,a=i+(n.avail_in-5),r=n.next_out,vt=n.output,u=r-(e-n.avail_out),d=r+(n.avail_out-257),g=j.dmax,_=j.wsize,y=j.whave,I=j.wnext,N=j.window,D=j.hold,U=j.bits,H=j.lencode,K=j.distcode,z=(1<>>24,D>>>=nt,U-=nt,nt=pt>>>16&255,nt===0)vt[r++]=pt&65535;else if(nt&16){Ot=pt&65535,nt&=15,nt&&(U>>=nt,U-=nt),U<15&&(D+=tt[i++]<>>24,D>>>=nt,U-=nt,nt=pt>>>16&255,nt&16){if(Yt=pt&65535,nt&=15,Ug){n.msg="invalid distance too far back",j.mode=zp;break t}if(D>>>=nt,U-=nt,nt=r-u,Yt>nt){if(nt=Yt-nt,nt>y&&j.sane){n.msg="invalid distance too far back",j.mode=zp;break t}if(jt=0,ht=N,I===0){if(jt+=_-nt,nt2;)vt[r++]=ht[jt++],vt[r++]=ht[jt++],vt[r++]=ht[jt++],Ot-=3;Ot&&(vt[r++]=ht[jt++],Ot>1&&(vt[r++]=ht[jt++]))}else{jt=r-Yt;do vt[r++]=vt[jt++],vt[r++]=vt[jt++],vt[r++]=vt[jt++],Ot-=3;while(Ot>2);Ot&&(vt[r++]=vt[jt++],Ot>1&&(vt[r++]=vt[jt++]))}}else if((nt&64)===0){pt=K[(pt&65535)+(D&(1<>3,i-=Ot,U-=Ot<<3,D&=(1<{let g=d.bits,_=0,y=0,I=0,N=0,D=0,U=0,H=0,K=0,z=0,ct=0,pt,nt,Ot,Yt,jt,ht=null,tt,vt=new Uint16Array(os+1),j=new Uint16Array(os+1),Y=null,rt,ot,At;for(_=0;_<=os;_++)vt[_]=0;for(y=0;y=1&&vt[N]===0;N--);if(D>N&&(D=N),N===0)return a[r++]=1<<24|64<<16|0,a[r++]=1<<24|64<<16|0,d.bits=1,0;for(I=1;I0&&(t===$1||N!==1))return-1;for(j[1]=0,_=1;_G1||t===Y1&&z>W1)return 1;for(;;){rt=_-H,u[y]+1=tt?(ot=Y[u[y]-tt],At=ht[u[y]-tt]):(ot=96,At=0),pt=1<<_-H,nt=1<>H)+nt]=rt<<24|ot<<16|At|0;while(nt!==0);for(pt=1<<_-1;ct&pt;)pt>>=1;if(pt!==0?(ct&=pt-1,ct+=pt):ct=0,y++,--vt[_]===0){if(_===N)break;_=n[e+u[y]]}if(_>D&&(ct&Yt)!==Ot){for(H===0&&(H=D),jt+=I,U=_-H,K=1<G1||t===Y1&&z>W1)return 1;Ot=ct&Yt,a[Ot]=D<<24|U<<16|jt-r|0}}return ct!==0&&(a[jt+ct]=_-H<<24|64<<16|0),d.bits=D,0},uc=X5,Q5=0,Hh=1,Gh=2,{Z_FINISH:Z1,Z_BLOCK:tx,Z_TREES:Vp,Z_OK:Al,Z_STREAM_END:ex,Z_NEED_DICT:nx,Z_STREAM_ERROR:fo,Z_DATA_ERROR:Wh,Z_MEM_ERROR:$h,Z_BUF_ERROR:ix,Z_DEFLATED:K1}=ps,Jp=16180,J1=16181,X1=16182,Q1=16183,th=16184,eh=16185,nh=16186,ih=16187,ah=16188,oh=16189,Yp=16190,xr=16191,Td=16192,rh=16193,Pd=16194,lh=16195,sh=16196,ch=16197,ph=16198,Up=16199,Hp=16200,mh=16201,dh=16202,uh=16203,fh=16204,hh=16205,Ad=16206,gh=16207,_h=16208,Ii=16209,Yh=16210,Zh=16211,ax=852,ox=592,rx=15,lx=rx,Ch=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function sx(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Ml=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.modeZh?1:0},Kh=t=>{if(Ml(t))return fo;let n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=Jp,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(ax),n.distcode=n.distdyn=new Int32Array(ox),n.sane=1,n.back=-1,Al},Jh=t=>{if(Ml(t))return fo;let n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,Kh(t)},Xh=(t,n)=>{let e;if(Ml(t))return fo;let i=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?fo:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=e,i.wbits=n,Jh(t))},Qh=(t,n)=>{if(!t)return fo;let e=new sx;t.state=e,e.strm=t,e.window=null,e.mode=Jp;let i=Xh(t,n);return i!==Al&&(t.state=null),i},cx=t=>Qh(t,lx),bh=!0,Md,Od,px=t=>{if(bh){Md=new Int32Array(512),Od=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(uc(Hh,t.lens,0,288,Md,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;uc(Gh,t.lens,0,32,Od,0,t.work,{bits:5}),bh=!1}t.lencode=Md,t.lenbits=9,t.distcode=Od,t.distbits=5},t2=(t,n,e,i)=>{let a,r=t.state;return r.window===null&&(r.wsize=1<=r.wsize?(r.window.set(n.subarray(e-r.wsize,e),0),r.wnext=0,r.whave=r.wsize):(a=r.wsize-r.wnext,a>i&&(a=i),r.window.set(n.subarray(e-i,e-i+a),r.wnext),i-=a,i?(r.window.set(n.subarray(e-i,e),0),r.wnext=i,r.whave=r.wsize):(r.wnext+=a,r.wnext===r.wsize&&(r.wnext=0),r.whave{let e,i,a,r,u,d,g,_,y,I,N,D,U,H,K=0,z,ct,pt,nt,Ot,Yt,jt,ht,tt=new Uint8Array(4),vt,j,Y=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ml(t)||!t.output||!t.input&&t.avail_in!==0)return fo;e=t.state,e.mode===xr&&(e.mode=Td),u=t.next_out,a=t.output,g=t.avail_out,r=t.next_in,i=t.input,d=t.avail_in,_=e.hold,y=e.bits,I=d,N=g,ht=Al;t:for(;;)switch(e.mode){case Jp:if(e.wrap===0){e.mode=Td;break}for(;y<16;){if(d===0)break t;d--,_+=i[r++]<>>8&255,e.check=da(e.check,tt,2,0),_=0,y=0,e.mode=J1;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((_&255)<<8)+(_>>8))%31){t.msg="incorrect header check",e.mode=Ii;break}if((_&15)!==K1){t.msg="unknown compression method",e.mode=Ii;break}if(_>>>=4,y-=4,jt=(_&15)+8,e.wbits===0&&(e.wbits=jt),jt>15||jt>e.wbits){t.msg="invalid window size",e.mode=Ii;break}e.dmax=1<>8&1),e.flags&512&&e.wrap&4&&(tt[0]=_&255,tt[1]=_>>>8&255,e.check=da(e.check,tt,2,0)),_=0,y=0,e.mode=X1;case X1:for(;y<32;){if(d===0)break t;d--,_+=i[r++]<>>8&255,tt[2]=_>>>16&255,tt[3]=_>>>24&255,e.check=da(e.check,tt,4,0)),_=0,y=0,e.mode=Q1;case Q1:for(;y<16;){if(d===0)break t;d--,_+=i[r++]<>8),e.flags&512&&e.wrap&4&&(tt[0]=_&255,tt[1]=_>>>8&255,e.check=da(e.check,tt,2,0)),_=0,y=0,e.mode=th;case th:if(e.flags&1024){for(;y<16;){if(d===0)break t;d--,_+=i[r++]<>>8&255,e.check=da(e.check,tt,2,0)),_=0,y=0}else e.head&&(e.head.extra=null);e.mode=eh;case eh:if(e.flags&1024&&(D=e.length,D>d&&(D=d),D&&(e.head&&(jt=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(i.subarray(r,r+D),jt)),e.flags&512&&e.wrap&4&&(e.check=da(e.check,i,D,r)),d-=D,r+=D,e.length-=D),e.length))break t;e.length=0,e.mode=nh;case nh:if(e.flags&2048){if(d===0)break t;D=0;do jt=i[r+D++],e.head&&jt&&e.length<65536&&(e.head.name+=String.fromCharCode(jt));while(jt&&D>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=xr;break;case oh:for(;y<32;){if(d===0)break t;d--,_+=i[r++]<>>=y&7,y-=y&7,e.mode=Ad;break}for(;y<3;){if(d===0)break t;d--,_+=i[r++]<>>=1,y-=1,_&3){case 0:e.mode=rh;break;case 1:if(px(e),e.mode=Up,n===Vp){_>>>=2,y-=2;break t}break;case 2:e.mode=sh;break;case 3:t.msg="invalid block type",e.mode=Ii}_>>>=2,y-=2;break;case rh:for(_>>>=y&7,y-=y&7;y<32;){if(d===0)break t;d--,_+=i[r++]<>>16^65535)){t.msg="invalid stored block lengths",e.mode=Ii;break}if(e.length=_&65535,_=0,y=0,e.mode=Pd,n===Vp)break t;case Pd:e.mode=lh;case lh:if(D=e.length,D){if(D>d&&(D=d),D>g&&(D=g),D===0)break t;a.set(i.subarray(r,r+D),u),d-=D,r+=D,g-=D,u+=D,e.length-=D;break}e.mode=xr;break;case sh:for(;y<14;){if(d===0)break t;d--,_+=i[r++]<>>=5,y-=5,e.ndist=(_&31)+1,_>>>=5,y-=5,e.ncode=(_&15)+4,_>>>=4,y-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=Ii;break}e.have=0,e.mode=ch;case ch:for(;e.have>>=3,y-=3}for(;e.have<19;)e.lens[Y[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,vt={bits:e.lenbits},ht=uc(Q5,e.lens,0,19,e.lencode,0,e.work,vt),e.lenbits=vt.bits,ht){t.msg="invalid code lengths set",e.mode=Ii;break}e.have=0,e.mode=ph;case ph:for(;e.have>>24,ct=K>>>16&255,pt=K&65535,!(z<=y);){if(d===0)break t;d--,_+=i[r++]<>>=z,y-=z,e.lens[e.have++]=pt;else{if(pt===16){for(j=z+2;y>>=z,y-=z,e.have===0){t.msg="invalid bit length repeat",e.mode=Ii;break}jt=e.lens[e.have-1],D=3+(_&3),_>>>=2,y-=2}else if(pt===17){for(j=z+3;y>>=z,y-=z,jt=0,D=3+(_&7),_>>>=3,y-=3}else{for(j=z+7;y>>=z,y-=z,jt=0,D=11+(_&127),_>>>=7,y-=7}if(e.have+D>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=Ii;break}for(;D--;)e.lens[e.have++]=jt}}if(e.mode===Ii)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=Ii;break}if(e.lenbits=9,vt={bits:e.lenbits},ht=uc(Hh,e.lens,0,e.nlen,e.lencode,0,e.work,vt),e.lenbits=vt.bits,ht){t.msg="invalid literal/lengths set",e.mode=Ii;break}if(e.distbits=6,e.distcode=e.distdyn,vt={bits:e.distbits},ht=uc(Gh,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,vt),e.distbits=vt.bits,ht){t.msg="invalid distances set",e.mode=Ii;break}if(e.mode=Up,n===Vp)break t;case Up:e.mode=Hp;case Hp:if(d>=6&&g>=258){t.next_out=u,t.avail_out=g,t.next_in=r,t.avail_in=d,e.hold=_,e.bits=y,$5(t,N),u=t.next_out,a=t.output,g=t.avail_out,r=t.next_in,i=t.input,d=t.avail_in,_=e.hold,y=e.bits,e.mode===xr&&(e.back=-1);break}for(e.back=0;K=e.lencode[_&(1<>>24,ct=K>>>16&255,pt=K&65535,!(z<=y);){if(d===0)break t;d--,_+=i[r++]<>nt)],z=K>>>24,ct=K>>>16&255,pt=K&65535,!(nt+z<=y);){if(d===0)break t;d--,_+=i[r++]<>>=nt,y-=nt,e.back+=nt}if(_>>>=z,y-=z,e.back+=z,e.length=pt,ct===0){e.mode=hh;break}if(ct&32){e.back=-1,e.mode=xr;break}if(ct&64){t.msg="invalid literal/length code",e.mode=Ii;break}e.extra=ct&15,e.mode=mh;case mh:if(e.extra){for(j=e.extra;y>>=e.extra,y-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=dh;case dh:for(;K=e.distcode[_&(1<>>24,ct=K>>>16&255,pt=K&65535,!(z<=y);){if(d===0)break t;d--,_+=i[r++]<>nt)],z=K>>>24,ct=K>>>16&255,pt=K&65535,!(nt+z<=y);){if(d===0)break t;d--,_+=i[r++]<>>=nt,y-=nt,e.back+=nt}if(_>>>=z,y-=z,e.back+=z,ct&64){t.msg="invalid distance code",e.mode=Ii;break}e.offset=pt,e.extra=ct&15,e.mode=uh;case uh:if(e.extra){for(j=e.extra;y>>=e.extra,y-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=Ii;break}e.mode=fh;case fh:if(g===0)break t;if(D=N-g,e.offset>D){if(D=e.offset-D,D>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=Ii;break}D>e.wnext?(D-=e.wnext,U=e.wsize-D):U=e.wnext-D,D>e.length&&(D=e.length),H=e.window}else H=a,U=u-e.offset,D=e.length;D>g&&(D=g),g-=D,e.length-=D;do a[u++]=H[U++];while(--D);e.length===0&&(e.mode=Hp);break;case hh:if(g===0)break t;a[u++]=e.length,g--,e.mode=Hp;break;case Ad:if(e.wrap){for(;y<32;){if(d===0)break t;d--,_|=i[r++]<{if(Ml(t))return fo;let n=t.state;return n.window&&(n.window=null),t.state=null,Al},ux=(t,n)=>{if(Ml(t))return fo;let e=t.state;return(e.wrap&2)===0?fo:(e.head=n,n.done=!1,Al)},fx=(t,n)=>{let e=n.length,i,a,r;return Ml(t)||(i=t.state,i.wrap!==0&&i.mode!==Yp)?fo:i.mode===Yp&&(a=1,a=Cc(a,n,e,0),a!==i.check)?Wh:(r=t2(t,n,e,e),r?(i.mode=Yh,$h):(i.havedict=1,Al))},hx=Jh,gx=Xh,_x=Kh,Cx=cx,bx=Qh,vx=mx,xx=dx,yx=ux,Sx=fx,Dx="pako inflate (from Nodeca project)",Sr={inflateReset:hx,inflateReset2:gx,inflateResetKeep:_x,inflateInit:Cx,inflateInit2:bx,inflate:vx,inflateEnd:xx,inflateGetHeader:yx,inflateSetDictionary:Sx,inflateInfo:Dx};function wx(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Tx=wx,e2=Object.prototype.toString,{Z_NO_FLUSH:Px,Z_FINISH:Ax,Z_OK:xc,Z_STREAM_END:Id,Z_NEED_DICT:Ed,Z_STREAM_ERROR:Mx,Z_DATA_ERROR:vh,Z_MEM_ERROR:Ox}=ps;function wc(t){this.options=Kp.assign({chunkSize:1024*64,windowBits:15,to:""},t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Vh,this.strm.avail_out=0;let e=Sr.inflateInit2(this.strm,n.windowBits);if(e!==xc)throw new Error(Tl[e]);if(this.header=new Tx,Sr.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=vc.string2buf(n.dictionary):e2.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=Sr.inflateSetDictionary(this.strm,n.dictionary),e!==xc)))throw new Error(Tl[e])}wc.prototype.push=function(t,n){let e=this.strm,i=this.options.chunkSize,a=this.options.dictionary,r,u,d;if(this.ended)return!1;for(n===~~n?u=n:u=n===!0?Ax:Px,e2.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),r=Sr.inflate(e,u),r===Ed&&a&&(r=Sr.inflateSetDictionary(e,a),r===xc?r=Sr.inflate(e,u):r===vh&&(r=Ed));e.avail_in>0&&r===Id&&e.state.wrap>0&&t[e.next_in]!==0;)Sr.inflateReset(e),r=Sr.inflate(e,u);switch(r){case Mx:case vh:case Ed:case Ox:return this.onEnd(r),this.ended=!0,!1}if(d=e.avail_out,e.next_out&&(e.avail_out===0||r===Id))if(this.options.to==="string"){let g=vc.utf8border(e.output,e.next_out),_=e.next_out-g,y=vc.buf2string(e.output,g);e.next_out=_,e.avail_out=i-_,_&&e.output.set(e.output.subarray(g,g+_),0),this.onData(y)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(r===xc&&d===0)){if(r===Id)return r=Sr.inflateEnd(this.strm),this.onEnd(r),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};wc.prototype.onData=function(t){this.chunks.push(t)};wc.prototype.onEnd=function(t){t===xc&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Kp.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Yd(t,n){let e=new wc(n);if(e.push(t),e.err)throw e.msg||Tl[e.err];return e.result}function Ix(t,n){return n=n||{},n.raw=!0,Yd(t,n)}var Ex=wc,Lx=Yd,Nx=Ix,kx=Yd,Fx=ps,Rx={Inflate:Ex,inflate:Lx,inflateRaw:Nx,ungzip:kx,constants:Fx},{Deflate:vR,deflate:xR,deflateRaw:yR,gzip:SR}=G5,{Inflate:Bx,inflate:qx,inflateRaw:DR,ungzip:wR}=Rx;var Zd=Bx,n2=qx;var a2=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;a2[t]=n}var i2=4294967295;function jx(t,n,e){let i=t;for(let a=0;a>>8;return i}function zx(t,n){return(jx(i2,t,n)^i2)>>>0}function Kd(t,n,e){let i=t.readUint32(),a=zx(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(a!==i)throw new Error(`CRC mismatch for chunk ${e}. Expected ${i}, found ${a}`)}function Xp(t,n,e){for(let i=0;i>1)&255}else{for(;r>1)&255;for(;r>1)&255}}function nm(t,n,e,i,a){let r=0;if(e.length===0){for(;r=e||Yt>=i))for(let jt=0;jt>8&255}var $x=new Uint16Array([255]),Yx=new Uint8Array($x.buffer),Zx=Yx[0]===255,Kx=new Uint8Array(0);function Jd(t){let{data:n,width:e,height:i,channels:a,depth:r}=t,u=Math.ceil(r/8)*a,d=Math.ceil(r/8*a*e),g=new Uint8Array(i*d),_=Kx,y=0,I,N;for(let D=0;D>8&255}var im=Uint8Array.of(137,80,78,71,13,10,26,10);function Xd(t){if(!l2(t.readBytes(im.length)))throw new Error("wrong PNG signature")}function l2(t){if(t.length79)throw new Error("keyword length must be between 1 and 79")}var e3=/^[\u0000-\u00FF]*$/;function n3(t){if(!e3.test(t))throw new Error("invalid latin1 text")}function p2(t,n,e){let i=Qd(n);t[i]=i3(n,e-i.length-1)}function Qd(t){for(t.mark();t.readByte()!==Qx;);let n=t.offset;t.reset();let e=c2.decode(t.readBytes(n-t.offset-1));return t.skip(1),t3(e),e}function i3(t,n){return c2.decode(t.readBytes(n))}var ka={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},Tc={UNKNOWN:-1,DEFLATE:0},am={UNKNOWN:-1,ADAPTIVE:0},Pc={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ac={NONE:0,BACKGROUND:1,PREVIOUS:2},om={SOURCE:0,OVER:1};var rm=class extends lc{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);let{checkCrc:i=!1}=e;this._checkCrc=i,this._inflator=new Zd,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=Tc.UNKNOWN,this._filterMethod=am.UNKNOWN,this._interlaceMethod=Pc.UNKNOWN,this._colorType=ka.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Xd(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e)}return this.decodeImage(),this._png}decodeApng(){for(Xd(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e)}return this.decodeApngImage(),this._apng}decodeChunk(n,e){let i=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case s2:p2(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Kd(this,n+4,e):this.skip(4)}decodeApngChunk(n,e){let i=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Kd(this,n+4,e):this.skip(4)}decodeIHDR(){let n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=a3(this.readUint8());let e=this.readUint8();this._colorType=e;let i;switch(e){case ka.GREYSCALE:i=1;break;case ka.TRUECOLOUR:i=3;break;case ka.INDEXED_COLOUR:i=1;break;case ka.GREYSCALE_ALPHA:i=2;break;case ka.TRUECOLOUR_ALPHA:i=4;break;case ka.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==Tc.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);let e=n/3;this._hasPalette=!0;let i=[];this._palette=i;for(let a=0;athis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let e=0;ethis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e{let d=((r+e.yOffset)*this._png.width+e.xOffset+u)*this._png.channels,g=(r*e.width+u)*this._png.channels;return{index:d,frameIndex:g}};switch(e.blendOp){case om.SOURCE:for(let r=0;r=200&&n.status<=299}function lm(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var Ol=_n.saveAs||((typeof window>"u"?"undefined":fi(window))!=="object"||window!==_n?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var i=_n.URL||_n.webkitURL,a=document.createElement("a");n=n||t.name||"download",a.download=n,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?d2(a.href)?eu(t,n,e):lm(a,a.target="_blank"):lm(a)):(a.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(a.href)},4e4),setTimeout(function(){lm(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(d2(t))eu(t,n,e);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){lm(i)})}else navigator.msSaveOrOpenBlob((function(a,r){return r===void 0?r={autoBom:!1}:fi(r)!=="object"&&(vi.warn("Deprecated: Expected third argument to be a object"),r={autoBom:!r}),r.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(t,e),n)}:function(t,n,e,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return eu(t,n,e);var a=t.type==="application/octet-stream",r=/constructor/i.test(_n.HTMLElement)||_n.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&r)&&(typeof FileReader>"u"?"undefined":fi(FileReader))==="object"){var d=new FileReader;d.onloadend=function(){var y=d.result;y=u?y:y.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=y:location=y,i=null},d.readAsDataURL(t)}else{var g=_n.URL||_n.webkitURL,_=g.createObjectURL(t);i?i.location=_:location.href=_,i=null,setTimeout(function(){g.revokeObjectURL(_)},4e4)}});function F2(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(d){return[parseInt(d[1]),parseInt(d[2]),parseInt(d[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(d){return[parseInt(d[1],16),parseInt(d[2],16),parseInt(d[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(d){return[parseInt(d[1]+d[1],16),parseInt(d[2]+d[2],16),parseInt(d[3]+d[3],16)]}}],i=0;i255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var d=this.r.toString(16),g=this.g.toString(16),_=this.b.toString(16);return d.length==1&&(d="0"+d),g.length==1&&(g="0"+g),_.length==1&&(_="0"+_),"#"+d+g+_}}var mm=_n.atob.bind(_n),u2=_n.btoa.bind(_n);function nu(t,n){var e=t[0],i=t[1],a=t[2],r=t[3];e=wa(e,i,a,r,n[0],7,-680876936),r=wa(r,e,i,a,n[1],12,-389564586),a=wa(a,r,e,i,n[2],17,606105819),i=wa(i,a,r,e,n[3],22,-1044525330),e=wa(e,i,a,r,n[4],7,-176418897),r=wa(r,e,i,a,n[5],12,1200080426),a=wa(a,r,e,i,n[6],17,-1473231341),i=wa(i,a,r,e,n[7],22,-45705983),e=wa(e,i,a,r,n[8],7,1770035416),r=wa(r,e,i,a,n[9],12,-1958414417),a=wa(a,r,e,i,n[10],17,-42063),i=wa(i,a,r,e,n[11],22,-1990404162),e=wa(e,i,a,r,n[12],7,1804603682),r=wa(r,e,i,a,n[13],12,-40341101),a=wa(a,r,e,i,n[14],17,-1502002290),e=Ta(e,i=wa(i,a,r,e,n[15],22,1236535329),a,r,n[1],5,-165796510),r=Ta(r,e,i,a,n[6],9,-1069501632),a=Ta(a,r,e,i,n[11],14,643717713),i=Ta(i,a,r,e,n[0],20,-373897302),e=Ta(e,i,a,r,n[5],5,-701558691),r=Ta(r,e,i,a,n[10],9,38016083),a=Ta(a,r,e,i,n[15],14,-660478335),i=Ta(i,a,r,e,n[4],20,-405537848),e=Ta(e,i,a,r,n[9],5,568446438),r=Ta(r,e,i,a,n[14],9,-1019803690),a=Ta(a,r,e,i,n[3],14,-187363961),i=Ta(i,a,r,e,n[8],20,1163531501),e=Ta(e,i,a,r,n[13],5,-1444681467),r=Ta(r,e,i,a,n[2],9,-51403784),a=Ta(a,r,e,i,n[7],14,1735328473),e=Pa(e,i=Ta(i,a,r,e,n[12],20,-1926607734),a,r,n[5],4,-378558),r=Pa(r,e,i,a,n[8],11,-2022574463),a=Pa(a,r,e,i,n[11],16,1839030562),i=Pa(i,a,r,e,n[14],23,-35309556),e=Pa(e,i,a,r,n[1],4,-1530992060),r=Pa(r,e,i,a,n[4],11,1272893353),a=Pa(a,r,e,i,n[7],16,-155497632),i=Pa(i,a,r,e,n[10],23,-1094730640),e=Pa(e,i,a,r,n[13],4,681279174),r=Pa(r,e,i,a,n[0],11,-358537222),a=Pa(a,r,e,i,n[3],16,-722521979),i=Pa(i,a,r,e,n[6],23,76029189),e=Pa(e,i,a,r,n[9],4,-640364487),r=Pa(r,e,i,a,n[12],11,-421815835),a=Pa(a,r,e,i,n[15],16,530742520),e=Aa(e,i=Pa(i,a,r,e,n[2],23,-995338651),a,r,n[0],6,-198630844),r=Aa(r,e,i,a,n[7],10,1126891415),a=Aa(a,r,e,i,n[14],15,-1416354905),i=Aa(i,a,r,e,n[5],21,-57434055),e=Aa(e,i,a,r,n[12],6,1700485571),r=Aa(r,e,i,a,n[3],10,-1894986606),a=Aa(a,r,e,i,n[10],15,-1051523),i=Aa(i,a,r,e,n[1],21,-2054922799),e=Aa(e,i,a,r,n[8],6,1873313359),r=Aa(r,e,i,a,n[15],10,-30611744),a=Aa(a,r,e,i,n[6],15,-1560198380),i=Aa(i,a,r,e,n[13],21,1309151649),e=Aa(e,i,a,r,n[4],6,-145523070),r=Aa(r,e,i,a,n[11],10,-1120210379),a=Aa(a,r,e,i,n[2],15,718787259),i=Aa(i,a,r,e,n[9],21,-343485551),t[0]=Qr(e,t[0]),t[1]=Qr(i,t[1]),t[2]=Qr(a,t[2]),t[3]=Qr(r,t[3])}function Cm(t,n,e,i,a,r){return n=Qr(Qr(n,t),Qr(i,r)),Qr(n<>>32-a,e)}function wa(t,n,e,i,a,r,u){return Cm(n&e|~n&i,t,n,a,r,u)}function Ta(t,n,e,i,a,r,u){return Cm(n&i|e&~i,t,n,a,r,u)}function Pa(t,n,e,i,a,r,u){return Cm(n^e^i,t,n,a,r,u)}function Aa(t,n,e,i,a,r,u){return Cm(e^(n|~i),t,n,a,r,u)}function R2(t){var n,e=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)nu(i,o3(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(nu(i,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,nu(i,a),i}function o3(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var f2="0123456789abcdef".split("");function r3(t){for(var n="",e=0;e<4;e++)n+=f2[t>>8*e+4&15]+f2[t>>8*e&15];return n}function l3(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function su(t){return R2(t).map(l3).join("")}var s3=(function(t){for(var n=0;n>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function cu(t,n){var e,i,a,r;if(t!==e){for(var u=(a=t,r=1+(256/t.length|0),new Array(r+1).join(a)),d=[],g=0;g<256;g++)d[g]=g;var _=0;for(g=0;g<256;g++){var y=d[g];_=(_+y+u.charCodeAt(g))%256,d[g]=d[_],d[_]=y}e=t,i=d}else d=i;var I=n.length,N=0,D=0,U="";for(g=0;g\x80/\f\xA9\xFEdSiz";var r=(n+this.padding).substr(0,32),u=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(r,u),this.P=-(1+(255^a)),this.encryptionKey=su(r+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=cu(this.encryptionKey,this.padding)}function gs(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,i=0;i126?"#"+("0"+a.toString(16)).slice(-2):t[i]}return n}function g2(t){if(fi(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,i,a){if(a=a||!1,typeof e!="string"||typeof i!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var r=Math.random().toString(35);return n[e][r]=[i,!!a],r},this.unsubscribe=function(e){for(var i in n)if(n[i][e])return delete n[i][e],Object.keys(n[i]).length===0&&delete n[i],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var r in n[e]){var u=n[e][r];try{u[0].apply(t,i)}catch(d){_n.console&&vi.error("jsPDF PubSub Error",d.message,d)}u[1]&&a.push(r)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function gm(t){if(!(this instanceof gm))return new gm(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function B2(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Il(t,n,e,i,a){if(!(this instanceof Il))return new Il(t,n,e,i,a);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,B2.call(this,i,a)}function _s(t,n,e,i,a){if(!(this instanceof _s))return new _s(t,n,e,i,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,B2.call(this,i,a)}function Ze(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],a=arguments[2],r=arguments[3],u=[],d=1,g=16,_="S",y=null;fi(t=t||{})==="object"&&(e=t.orientation,i=t.unit||i,a=t.format||a,r=t.compress||t.compressPdf||r,(y=t.encryption||null)!==null&&(y.userPassword=y.userPassword||"",y.ownerPassword=y.ownerPassword||"",y.userPermissions=y.userPermissions||[]),d=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(g=t.floatPrecision),_=t.defaultPathOperation||"S"),u=t.filters||(r===!0?["FlateEncode"]:u),i=i||"mm",e=(""+(e||"P")).toLowerCase();var I=t.putOnlyUsedFonts||!1,N={},D={internal:{},__private__:{}};D.__private__.PubSub=g2;var U="1.3",H=D.__private__.getPdfVersion=function(){return U};D.__private__.setPdfVersion=function(C){U=C};var K={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};D.__private__.getPageFormats=function(){return K};var z=D.__private__.getPageFormat=function(C){return K[C]};a=a||"a4";var ct="compat",pt="advanced",nt=ct;function Ot(){this.saveGraphicsState(),G(new dn(Rn,0,0,-Rn,0,dl()*Rn).toString()+" cm"),this.setFontSize(this.getFontSize()/Rn),_="n",nt=pt}function Yt(){this.restoreGraphicsState(),_="S",nt=ct}var jt=D.__private__.combineFontStyleAndFontWeight=function(C,E){if(C=="bold"&&E=="normal"||C=="bold"&&E==400||C=="normal"&&E=="italic"||C=="bold"&&E=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return E&&(C=E==400||E==="normal"?C==="italic"?"italic":"normal":E!=700&&E!=="bold"||C!=="normal"?(E==700?"bold":E)+""+C:"bold"),C};D.advancedAPI=function(C){var E=nt===ct;return E&&Ot.call(this),typeof C!="function"||(C(this),E&&Yt.call(this)),this},D.compatAPI=function(C){var E=nt===pt;return E&&Yt.call(this),typeof C!="function"||(C(this),E&&Ot.call(this)),this},D.isAdvancedAPI=function(){return nt===pt};var ht,tt=function(C){if(nt!==pt)throw new Error(C+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},vt=D.roundToPrecision=D.__private__.roundToPrecision=function(C,E){var Z=n||E;if(isNaN(C)||isNaN(Z))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return C.toFixed(Z).replace(/0+$/,"")};ht=D.hpf=D.__private__.hpf=typeof g=="number"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(C,g)}:g==="smart"?function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(C,C>-1&&C<1?16:5)}:function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.hpf");return vt(C,16)};var j=D.f2=D.__private__.f2=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f2");return vt(C,2)},Y=D.__private__.f3=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.f3");return vt(C,3)},rt=D.scale=D.__private__.scale=function(C){if(isNaN(C))throw new Error("Invalid argument passed to jsPDF.scale");return nt===ct?C*Rn:nt===pt?C:void 0},ot=function(C){return rt((function(E){return nt===ct?dl()-E:nt===pt?E:void 0})(C))};D.__private__.setPrecision=D.setPrecision=function(C){typeof parseInt(C,10)=="number"&&(n=parseInt(C,10))};var At,kt="00000000000000000000000000000000",Rt=D.__private__.getFileId=function(){return kt},St=D.__private__.setFileId=function(C){return kt=C!==void 0&&/^[a-fA-F0-9]{32}$/.test(C)?C.toUpperCase():kt.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),y!==null&&(Qi=new hs(y.userPermissions,y.userPassword,y.ownerPassword,kt)),kt};D.setFileId=function(C){return St(C),this},D.getFileId=function(){return Rt()};var qt=D.__private__.convertDateToPDFDate=function(C){var E=C.getTimezoneOffset(),Z=E<0?"+":"-",at=Math.floor(Math.abs(E/60)),gt=Math.abs(E%60),zt=[Z,et(at),"'",et(gt),"'"].join("");return["D:",C.getFullYear(),et(C.getMonth()+1),et(C.getDate()),et(C.getHours()),et(C.getMinutes()),et(C.getSeconds()),zt].join("")},se=D.__private__.convertPDFDateToDate=function(C){var E=parseInt(C.substr(2,4),10),Z=parseInt(C.substr(6,2),10)-1,at=parseInt(C.substr(8,2),10),gt=parseInt(C.substr(10,2),10),zt=parseInt(C.substr(12,2),10),Zt=parseInt(C.substr(14,2),10);return new Date(E,Z,at,gt,zt,Zt,0)},Jt=D.__private__.setCreationDate=function(C){var E;if(C===void 0&&(C=new Date),C instanceof Date)E=qt(C);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(C))throw new Error("Invalid argument passed to jsPDF.setCreationDate");E=C}return At=E},B=D.__private__.getCreationDate=function(C){var E=At;return C==="jsDate"&&(E=se(At)),E};D.setCreationDate=function(C){return Jt(C),this},D.getCreationDate=function(C){return B(C)};var J,et=D.__private__.padd2=function(C){return("0"+parseInt(C)).slice(-2)},lt=D.__private__.padd2Hex=function(C){return("00"+(C=C.toString())).substr(C.length)},ft=0,Ct=[],It=[],Nt=0,Ht=[],re=[],Me=!1,De=It;D.__private__.setCustomOutputDestination=function(C){Me=!0,De=C};var an=function(C){Me||(De=C)};D.__private__.resetCustomOutputDestination=function(){Me=!1,De=It};var G=D.__private__.out=function(C){return C=C.toString(),Nt+=C.length+1,De.push(C),De},be=D.__private__.write=function(C){return G(arguments.length===1?C.toString():Array.prototype.join.call(arguments," "))},zn=D.__private__.getArrayBuffer=function(C){for(var E=C.length,Z=new ArrayBuffer(E),at=new Uint8Array(Z);E--;)at[E]=C.charCodeAt(E);return Z},cn=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];D.__private__.getStandardFonts=function(){return cn};var Qt=t.fontSize||16;D.__private__.setFontSize=D.setFontSize=function(C){return Qt=nt===pt?C/Rn:C,this};var pn,Fe=D.__private__.getFontSize=D.getFontSize=function(){return nt===ct?Qt:Qt*Rn},ln=t.R2L||!1;D.__private__.setR2L=D.setR2L=function(C){return ln=C,this},D.__private__.getR2L=D.getR2L=function(){return ln};var on,si=D.__private__.setZoomMode=function(C){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(C))pn=C;else if(isNaN(C)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(C)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+C+'" is not recognized.');pn=C}else pn=parseInt(C,10)};D.__private__.getZoomMode=function(){return pn};var Yn,Nn=D.__private__.setPageMode=function(C){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(C)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+C+'" is not recognized.');on=C};D.__private__.getPageMode=function(){return on};var Jn=D.__private__.setLayoutMode=function(C){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(C)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+C+'" is not recognized.');Yn=C};D.__private__.getLayoutMode=function(){return Yn},D.__private__.setDisplayMode=D.setDisplayMode=function(C,E,Z){return si(C),Jn(E),Nn(Z),this};var Zn={title:"",subject:"",author:"",keywords:"",creator:""};D.__private__.getDocumentProperty=function(C){if(Object.keys(Zn).indexOf(C)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Zn[C]},D.__private__.getDocumentProperties=function(){return Zn},D.__private__.setDocumentProperties=D.setProperties=D.setDocumentProperties=function(C){for(var E in Zn)Zn.hasOwnProperty(E)&&C[E]&&(Zn[E]=C[E]);return this},D.__private__.setDocumentProperty=function(C,E){if(Object.keys(Zn).indexOf(C)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Zn[C]=E};var We,Rn,Xe,qi,ii,Vn={},Un={},Pi=[],rn={},yi={},fn={},kn={},Ai=null,Hn=0,mn=[],ci=new g2(D),al=t.hotfixes||[],xa={},er={},Lo=[],dn=function C(E,Z,at,gt,zt,Zt){if(!(this instanceof C))return new C(E,Z,at,gt,zt,Zt);isNaN(E)&&(E=1),isNaN(Z)&&(Z=0),isNaN(at)&&(at=0),isNaN(gt)&&(gt=1),isNaN(zt)&&(zt=0),isNaN(Zt)&&(Zt=0),this._matrix=[E,Z,at,gt,zt,Zt]};Object.defineProperty(dn.prototype,"sx",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(dn.prototype,"shy",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(dn.prototype,"shx",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(dn.prototype,"sy",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(dn.prototype,"tx",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(dn.prototype,"ty",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(dn.prototype,"a",{get:function(){return this._matrix[0]},set:function(C){this._matrix[0]=C}}),Object.defineProperty(dn.prototype,"b",{get:function(){return this._matrix[1]},set:function(C){this._matrix[1]=C}}),Object.defineProperty(dn.prototype,"c",{get:function(){return this._matrix[2]},set:function(C){this._matrix[2]=C}}),Object.defineProperty(dn.prototype,"d",{get:function(){return this._matrix[3]},set:function(C){this._matrix[3]=C}}),Object.defineProperty(dn.prototype,"e",{get:function(){return this._matrix[4]},set:function(C){this._matrix[4]=C}}),Object.defineProperty(dn.prototype,"f",{get:function(){return this._matrix[5]},set:function(C){this._matrix[5]=C}}),Object.defineProperty(dn.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(dn.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(dn.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(dn.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),dn.prototype.join=function(C){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ht).join(C)},dn.prototype.multiply=function(C){var E=C.sx*this.sx+C.shy*this.shx,Z=C.sx*this.shy+C.shy*this.sy,at=C.shx*this.sx+C.sy*this.shx,gt=C.shx*this.shy+C.sy*this.sy,zt=C.tx*this.sx+C.ty*this.shx+this.tx,Zt=C.tx*this.shy+C.ty*this.sy+this.ty;return new dn(E,Z,at,gt,zt,Zt)},dn.prototype.decompose=function(){var C=this.sx,E=this.shy,Z=this.shx,at=this.sy,gt=this.tx,zt=this.ty,Zt=Math.sqrt(C*C+E*E),qe=(C/=Zt)*Z+(E/=Zt)*at;Z-=C*qe,at-=E*qe;var $e=Math.sqrt(Z*Z+at*at);return qe/=$e,C*(at/=$e)>16&255,at=$e>>8&255,gt=255&$e}if(at===void 0||zt===void 0&&Z===at&&at===gt)E=typeof Z=="string"?Z+" "+Zt[0]:C.precision===2?j(Z/255)+" "+Zt[0]:Y(Z/255)+" "+Zt[0];else if(zt===void 0||fi(zt)==="object"){if(zt&&!isNaN(zt.a)&&zt.a===0)return["1.","1.","1.",Zt[1]].join(" ");E=typeof Z=="string"?[Z,at,gt,Zt[1]].join(" "):C.precision===2?[j(Z/255),j(at/255),j(gt/255),Zt[1]].join(" "):[Y(Z/255),Y(at/255),Y(gt/255),Zt[1]].join(" ")}else E=typeof Z=="string"?[Z,at,gt,zt,Zt[2]].join(" "):C.precision===2?[j(Z),j(at),j(gt),j(zt),Zt[2]].join(" "):[Y(Z),Y(at),Y(gt),Y(zt),Zt[2]].join(" ");return E},Co=D.__private__.getFilters=function(){return u},ao=D.__private__.putStream=function(C){var E=(C=C||{}).data||"",Z=C.filters||Co(),at=C.alreadyAppliedFilters||[],gt=C.addLength1||!1,zt=E.length,Zt=C.objectId,qe=function(ta){return ta};if(y!==null&&Zt===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");y!==null&&(qe=Qi.encryptor(Zt,0));var $e={};Z===!0&&(Z=["FlateEncode"]);var Cn=C.additionalKeyValues||[],Bn=($e=Ze.API.processDataByFilters!==void 0?Ze.API.processDataByFilters(E,Z):{data:E,reverseChain:[]}).reverseChain+(Array.isArray(at)?at.join(" "):at.toString());if($e.data.length!==0&&(Cn.push({key:"Length",value:$e.data.length}),gt===!0&&Cn.push({key:"Length1",value:zt})),Bn.length!=0)if(Bn.split("/").length-1==1)Cn.push({key:"Filter",value:Bn});else{Cn.push({key:"Filter",value:"["+Bn+"]"});for(var ai=0;ai>"),$e.data.length!==0&&(G("stream"),G(qe($e.data)),G("endstream"))},rl=D.__private__.putPage=function(C){var E=C.number,Z=C.data,at=C.objId,gt=C.contentsObjId;fa(at,!0),G("<>"),G("endobj");var zt=Z.join(` `);return nt===pt&&(zt+=` @@ -77,4 +77,4 @@ end end`};n.events.push(["putFont",function(r){(function(u){var d=u.font,g=u.out,_=u.newObject,y=u.putStream;if(d.metadata instanceof t.API.TTFFont&&d.encoding==="Identity-H"){for(var I=d.metadata.Unicode.widths,N=d.metadata.subset.encode(d.metadata.glyIdsUsed,1),D="",U=0;U>"),g("endobj");var ct=_();g("<<"),g("/Type /Font"),g("/BaseFont /"+gs(d.fontName)),g("/FontDescriptor "+z+" 0 R"),g("/W "+t.API.PDFObject.convert(I)),g("/CIDToGIDMap /Identity"),g("/DW 1000"),g("/Subtype /CIDFontType2"),g("/CIDSystemInfo"),g("<<"),g("/Supplement 0"),g("/Registry (Adobe)"),g("/Ordering ("+d.encoding+")"),g(">>"),g(">>"),g("endobj"),d.objectNumber=_(),g("<<"),g("/Type /Font"),g("/Subtype /Type0"),g("/ToUnicode "+K+" 0 R"),g("/BaseFont /"+gs(d.fontName)),g("/Encoding /"+d.encoding),g("/DescendantFonts ["+ct+" 0 R]"),g(">>"),g("endobj"),d.isAlreadyPutted=!0}})(r)}]),n.events.push(["putFont",function(r){(function(u){var d=u.font,g=u.out,_=u.newObject,y=u.putStream;if(d.metadata instanceof t.API.TTFFont&&d.encoding==="WinAnsiEncoding"){for(var I=d.metadata.rawData,N="",D=0;D>"),g("endobj"),d.objectNumber=_();for(var z=0;z>"),g("endobj"),d.isAlreadyPutted=!0}})(r)}]);var a=function(r){var u,d=r.text||"",g=r.x,_=r.y,y=r.options||{},I=r.mutex||{},N=I.pdfEscape,D=I.activeFontKey,U=I.fonts,H=D,K="",z=0,ct="",pt=U[H].encoding;if(U[H].encoding!=="Identity-H")return{text:d,x:g,y:_,options:y,mutex:I};for(ct=d,H=D,Array.isArray(d)&&(ct=d[0]),z=0;z","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],z=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),ct=!1,pt=0;this.__bidiEngine__={};var nt=function(j){var Y=j.charCodeAt(),rt=Y>>8,ot=H[rt];return ot!==void 0?I[256*ot+(255&Y)]:rt===252||rt===253?"AL":z.test(rt)?"L":rt===8?"R":"N"},Ot=function(j){for(var Y,rt=0;rt=Y.length||(At=rt[ot-1])!=="EN"&&At!=="AN"||(kt=Y[ot+1])!=="EN"&&kt!=="AN"?qt="N":ct&&(kt="AN"),qt=kt===At?kt:"N";break;case"ES":qt=(At=ot>0?rt[ot-1]:"B")==="EN"&&ot+10&&rt[ot-1]==="EN"){qt="EN";break}if(ct){qt="N";break}for(Rt=ot+1,St=Y.length;Rt=1425&&se<=2303||se===64286;if(At=Y[Rt],Jt&&(At==="R"||At==="AL")){qt="R";break}}}qt=ot<1||(At=Y[ot-1])==="B"?"N":rt[ot-1];break;case"B":ct=!1,a=!0,qt=pt;break;case"S":r=!0,qt="N"}return qt},jt=function(j,Y,rt){var ot=j.split("");return rt&&ht(ot,rt,{hiLevel:pt}),ot.reverse(),Y&&Y.reverse(),ot.join("")},ht=function(j,Y,rt){var ot,At,kt,Rt,St,qt=-1,se=j.length,Jt=0,B=[],J=pt?D:N,et=[];for(ct=!1,a=!1,r=!1,At=0;At0)if(ot===16){for(At=qt;At-1){for(At=qt;At=0&<[Nt]==="WS";Nt--)ft[Nt]=pt}})(et,Y,se)},tt=function(j,Y,rt,ot,At){if(!(At.hiLevel=j){for(St=Jt+1;St=j;)St++;for(qt=Jt,Rt=St-1;qt=0&&(kt[se]=K[qt+1])})(ot,rt,At),tt(2,ot,Y,rt,At),tt(1,ot,Y,rt,At),ot.join("")};return this.__bidiEngine__.doBidiReorder=function(j,Y,rt){if((function(At,kt){if(kt)for(var Rt=0;Rt>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+i)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(r=this.familyClass)===1||r===2||r===3||r===4||r===5||r===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(n){var e;return((e=this.cmap.unicode)!=null?e.codeMap[n]:void 0)||0},t.prototype.widthOfGlyph=function(n){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*e},t.prototype.widthOfString=function(n,e,i){var a,r,u,d;for(u=0,r=0,d=(n=""+n).length;0<=d?rd;r=0<=d?++r:--r)a=n.charCodeAt(r),u+=this.widthOfGlyph(this.characterToGlyph(a))+i*(1e3/e)||0;return u*(e/1e3)},t.prototype.lineHeight=function(n,e){var i;return e==null&&(e=!1),i=e?this.lineGap:0,(this.ascender+i-this.decender)/1e3*n},t})();var Mo,tl=(function(){function t(n){this.data=n??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(n){return this.data[this.pos++]=n},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},t.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},t.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},t.prototype.readString=function(n){var e,i;for(i=[],e=0;0<=n?en;e=0<=n?++e:--e)i[e]=String.fromCharCode(this.readByte());return i.join("")},t.prototype.writeString=function(n){var e,i,a;for(a=[],e=0,i=n.length;0<=i?ei;e=0<=i?++e:--e)a.push(this.writeByte(n.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(n){return this.writeInt16(n)},t.prototype.readLongLong=function(){var n,e,i,a,r,u,d,g;return n=this.readByte(),e=this.readByte(),i=this.readByte(),a=this.readByte(),r=this.readByte(),u=this.readByte(),d=this.readByte(),g=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^e)+1099511627776*(255^i)+4294967296*(255^a)+16777216*(255^r)+65536*(255^u)+256*(255^d)+(255^g)+1):72057594037927940*n+281474976710656*e+1099511627776*i+4294967296*a+16777216*r+65536*u+256*d+g},t.prototype.writeLongLong=function(n){var e,i;return e=Math.floor(n/4294967296),i=4294967295&n,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(n){return this.writeInt32(n)},t.prototype.read=function(n){var e,i;for(e=[],i=0;0<=n?in;i=0<=n?++i:--i)e.push(this.readByte());return e},t.prototype.write=function(n){var e,i,a,r;for(r=[],i=0,a=n.length;ir;a=0<=r?++a:--a)i={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[i.tag]=i}return n.prototype.encode=function(e){var i,a,r,u,d,g,_,y,I,N,D,U,H;for(H in D=Object.keys(e).length,g=Math.log(2),I=16*Math.floor(Math.log(D)/g),u=Math.floor(I/g),y=16*D-I,(a=new tl).writeInt(this.scalarType),a.writeShort(D),a.writeShort(I),a.writeShort(u),a.writeShort(y),r=16*D,_=a.pos+r,d=null,U=[],e)for(N=e[H],a.writeString(H),a.writeInt(t(N)),a.writeInt(_),a.writeInt(N.length),U=U.concat(N),H==="head"&&(d=_),_+=N.length;_%4;)U.push(0),_++;return a.write(U),i=2981146554-t(a.data),a.pos=d+8,a.writeUInt32(i),a.data},t=function(e){var i,a,r,u;for(e=Y2.call(e);e.length%4;)e.push(0);for(r=new tl(e),a=0,i=0,u=e.length;iN;g=0<=N?++nt:--nt)Ot.push(n.readUInt16());return Ot})(),n.pos+=2,H=(function(){var nt,Ot;for(Ot=[],g=nt=0;0<=N?ntN;g=0<=N?++nt:--nt)Ot.push(n.readUInt16());return Ot})(),_=(function(){var nt,Ot;for(Ot=[],g=nt=0;0<=N?ntN;g=0<=N?++nt:--nt)Ot.push(n.readUInt16());return Ot})(),y=(function(){var nt,Ot;for(Ot=[],g=nt=0;0<=N?ntN;g=0<=N?++nt:--nt)Ot.push(n.readUInt16());return Ot})(),a=(this.length-n.pos+this.offset)/2,d=(function(){var nt,Ot;for(Ot=[],g=nt=0;0<=a?nta;g=0<=a?++nt:--nt)Ot.push(n.readUInt16());return Ot})(),g=z=0,pt=r.length;z=K;i=U<=K?++ct:--ct)y[g]===0?u=i+_[g]:(u=d[y[g]/2+(i-U)-(N-g)]||0)!==0&&(u+=_[g]),this.codeMap[i]=65535&u}n.pos=I}return t.encode=function(n,e){var i,a,r,u,d,g,_,y,I,N,D,U,H,K,z,ct,pt,nt,Ot,Yt,jt,ht,tt,vt,j,Y,rt,ot,At,kt,Rt,St,qt,se,Jt,B,J,et,lt,ft,Ct,It,Nt,Ht,re,Me;switch(ot=new tl,u=Object.keys(n).sort(function(De,an){return De-an}),e){case"macroman":for(H=0,K=(function(){var De=[];for(U=0;U<256;++U)De.push(0);return De})(),ct={0:0},r={},At=0,qt=u.length;At=32768)for(g.push(0),Yt.push(2*(D.length+tt-U)),a=St=j;j<=y?St<=y:St>=y;a=j<=y?++St:--St)D.push(i[a].new);else g.push(rt-j),Yt.push(0)}for(ot.writeUInt16(3),ot.writeUInt16(1),ot.writeUInt32(12),ot.writeUInt16(4),ot.writeUInt16(16+8*tt+2*D.length),ot.writeUInt16(0),ot.writeUInt16(vt),ot.writeUInt16(ht),ot.writeUInt16(N),ot.writeUInt16(jt),Ct=0,B=I.length;Cta;i=0<=a?++i:--i)e=new k2(n,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(n,e){var i,a;return e==null&&(e="macroman"),i=k2.encode(n,e),(a=new tl).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t})(),M3=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tr(t,Mo),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t})(),O3=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tr(t,Mo),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=(function(){var e,i;for(i=[],e=0;e<10;++e)i.push(n.readByte());return i})(),this.charRange=(function(){var e,i;for(i=[],e=0;e<4;++e)i.push(n.readInt());return i})(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=(function(){var e,i;for(i=[],e=0;e<2;e=++e)i.push(n.readInt());return i})(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t})(),I3=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tr(t,Mo),t.prototype.tag="post",t.prototype.parse=function(n){var e,i,a;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var r;for(i=n.readUInt16(),this.glyphNameIndex=[],r=0;0<=i?ri;r=0<=i?++r:--r)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],a=[];n.posd;r=0<=d?++u:--u)g.push(n.readUInt32());return g}.call(this)}},t})(),E3=function(t,n){this.raw=t,this.length=t.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},L3=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tr(t,Mo),t.prototype.tag="name",t.prototype.parse=function(n){var e,i,a,r,u,d,g,_,y,I,N;for(n.pos=this.offset,n.readShort(),e=n.readShort(),d=n.readShort(),i=[],r=0;0<=e?re;r=0<=e?++r:--r)i.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+d+n.readShort()});for(g={},r=y=0,I=i.length;yd;e=0<=d?++e:--e)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var _,y;for(y=[],e=_=0;0<=a?_a;e=0<=a?++_:--_)y.push(n.readInt16());return y})(),this.widths=function(){var _,y,I,N;for(N=[],_=0,y=(I=this.metrics).length;_a;e=0<=a?++u:--u)g.push(this.widths.push(i));return g},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t})(),Y2=[].slice,F3=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return tr(t,Mo),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var e,i,a,r,u,d,g,_,y,I;return n in this.cache?this.cache[n]:(r=this.file.loca,e=this.file.contents,i=r.indexOf(n),(a=r.lengthOf(n))===0?this.cache[n]=null:(e.pos=this.offset+i,u=(d=new tl(e.read(a))).readShort(),_=d.readShort(),I=d.readShort(),g=d.readShort(),y=d.readShort(),this.cache[n]=u===-1?new B3(d,_,I,g,y):new R3(d,u,_,I,g,y),this.cache[n]))},t.prototype.encode=function(n,e,i){var a,r,u,d,g;for(u=[],r=[],d=0,g=e.length;d0&&(a+=g)}for(var _=new Array(4*i.length),y=0;y>8,_[4*y+1]=(16711680&i[y])>>16,_[4*y]=(4278190080&i[y])>>24;return _},t})(),j3=(function(){function t(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var n,e,i,a,r;for(e in a=this.font.cmap.tables[0].codeMap,n={},r=this.subset)i=r[e],n[e]=a[i];return n},t.prototype.glyphsFor=function(n){var e,i,a,r,u,d,g;for(a={},u=0,d=n.length;u0)for(r in g=this.glyphsFor(e))i=g[r],a[r]=i;return a},t.prototype.encode=function(n,e){var i,a,r,u,d,g,_,y,I,N,D,U,H,K,z;for(a in i=$2.encode(this.generateCmap(),"unicode"),u=this.glyphsFor(n),D={0:0},z=i.charMap)D[(g=z[a]).old]=g.new;for(U in N=i.maxGlyphID,u)U in D||(D[U]=N++);return y=(function(ct){var pt,nt;for(pt in nt={},ct)nt[ct[pt]]=pt;return nt})(D),I=Object.keys(y).sort(function(ct,pt){return ct-pt}),H=(function(){var ct,pt,nt;for(nt=[],ct=0,pt=I.length;ct>"),r.join(` `)}return""+e},n})();function tg(t,n,e,i,a){i=i||{};var r=1.15,u=a.internal.scaleFactor,d=a.internal.getFontSize()/u,g=a.getLineHeightFactor?a.getLineHeightFactor():r,_=d*g,y=/\r\n|\r|\n/g,I="",N=1;if((i.valign==="middle"||i.valign==="bottom"||i.halign==="center"||i.halign==="right")&&(I=typeof t=="string"?t.split(y):t,N=I.length||1),e+=d*(2-r),i.valign==="middle"?e-=N/2*_:i.valign==="bottom"&&(e-=N*_),i.halign==="center"||i.halign==="right"){var D=d;if(i.halign==="center"&&(D*=.5),I&&N>=1){for(var U=0;U0,i=n||n===0;return e&&i?"DF":e?"S":i?"F":null}function xm(t,n){var e,i,a,r;if(t=t||n,Array.isArray(t)){if(t.length>=4)return{top:t[0],right:t[1],bottom:t[2],left:t[3]};if(t.length===3)return{top:t[0],right:t[1],bottom:t[2],left:t[1]};if(t.length===2)return{top:t[0],right:t[1],bottom:t[0],left:t[1]};t.length===1?t=t[0]:t=n}return typeof t=="object"?(typeof t.vertical=="number"&&(t.top=t.vertical,t.bottom=t.vertical),typeof t.horizontal=="number"&&(t.right=t.horizontal,t.left=t.horizontal),{left:(e=t.left)!==null&&e!==void 0?e:n,top:(i=t.top)!==null&&i!==void 0?i:n,right:(a=t.right)!==null&&a!==void 0?a:n,bottom:(r=t.bottom)!==null&&r!==void 0?r:n}):(typeof t!="number"&&(t=n),{top:t,right:t,bottom:t,left:t})}function og(t,n){var e=xm(n.settings.margin,0);return t.pageSize().width-(e.left+e.right)}function U3(t,n,e,i,a){var r={},u=1.3333333333333333,d=uu(n,function(pt){return a.getComputedStyle(pt).backgroundColor});d!=null&&(r.fillColor=d);var g=uu(n,function(pt){return a.getComputedStyle(pt).color});g!=null&&(r.textColor=g);var _=G3(i,e);_&&(r.cellPadding=_);var y="borderTopColor",I=u*e,N=i.borderTopWidth;if(i.borderBottomWidth===N&&i.borderRightWidth===N&&i.borderLeftWidth===N){var D=(parseFloat(N)||0)/I;D&&(r.lineWidth=D)}else r.lineWidth={top:(parseFloat(i.borderTopWidth)||0)/I,right:(parseFloat(i.borderRightWidth)||0)/I,bottom:(parseFloat(i.borderBottomWidth)||0)/I,left:(parseFloat(i.borderLeftWidth)||0)/I},r.lineWidth.top||(r.lineWidth.right?y="borderRightColor":r.lineWidth.bottom?y="borderBottomColor":r.lineWidth.left&&(y="borderLeftColor"));var U=uu(n,function(pt){return a.getComputedStyle(pt)[y]});U!=null&&(r.lineColor=U);var H=["left","right","center","justify"];H.indexOf(i.textAlign)!==-1&&(r.halign=i.textAlign),H=["middle","bottom","top"],H.indexOf(i.verticalAlign)!==-1&&(r.valign=i.verticalAlign);var K=parseInt(i.fontSize||"");isNaN(K)||(r.fontSize=K/u);var z=H3(i);z&&(r.fontStyle=z);var ct=(i.fontFamily||"").toLowerCase();return t.indexOf(ct)!==-1&&(r.font=ct),r}function H3(t){var n="";return(t.fontWeight==="bold"||t.fontWeight==="bolder"||parseInt(t.fontWeight)>=700)&&(n="bold"),(t.fontStyle==="italic"||t.fontStyle==="oblique")&&(n+="italic"),n}function uu(t,n){var e=rg(t,n);if(!e)return null;var i=e.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d*\.?\d*))?\)$/);if(!i||!Array.isArray(i))return null;var a=[parseInt(i[1]),parseInt(i[2]),parseInt(i[3])],r=parseInt(i[4]);return r===0||isNaN(a[0])||isNaN(a[1])||isNaN(a[2])?null:a}function rg(t,n){var e=n(t);return e==="rgba(0, 0, 0, 0)"||e==="transparent"||e==="initial"||e==="inherit"?t.parentElement==null?null:rg(t.parentElement,n):e}function G3(t,n){var e=[t.paddingTop,t.paddingRight,t.paddingBottom,t.paddingLeft],i=96/(72/n),a=(parseInt(t.lineHeight)-parseInt(t.fontSize))/n/2,r=e.map(function(d){return parseInt(d||"0")/i}),u=xm(r,0);return a>u.top&&(u.top=a),a>u.bottom&&(u.bottom=a),u}function lg(t,n,e,i,a){var r,u;i===void 0&&(i=!1),a===void 0&&(a=!1);var d;typeof n=="string"?d=e.document.querySelector(n):d=n;var g=Object.keys(t.getFontList()),_=t.scaleFactor(),y=[],I=[],N=[];if(!d)return console.error("Html table could not be found with input: ",n),{head:y,body:I,foot:N};for(var D=0;D0&&(a||I.display!=="none"))return u}function $3(t){var n=t.cloneNode(!0);return n.innerHTML=n.innerHTML.replace(/\n/g,"").replace(/ +/g," "),n.innerHTML=n.innerHTML.split(//).map(function(e){return e.trim()}).join(` `),n.innerText||n.textContent||""}function Y3(t,n,e){for(var i=0,a=[t,n,e];i0?"_".concat(g):"");var y={dataKey:_};a.push(y)}}),a}var vu=(function(){function t(n,e,i){this.table=e,this.pageNumber=e.pageNumber,this.settings=e.settings,this.cursor=i,this.doc=n.getDocument()}return t})(),ey=(function(t){eg(n,t);function n(e,i,a,r,u,d){var g=t.call(this,e,i,d)||this;return g.cell=a,g.row=r,g.column=u,g.section=r.section,g}return n})(vu),ny=(function(){function t(n,e){this.pageNumber=1,this.id=n.id,this.settings=n.settings,this.styles=n.styles,this.hooks=n.hooks,this.columns=e.columns,this.head=e.head,this.body=e.body,this.foot=e.foot}return t.prototype.getHeadHeight=function(n){return this.head.reduce(function(e,i){return e+i.getMaxCellHeight(n)},0)},t.prototype.getFootHeight=function(n){return this.foot.reduce(function(e,i){return e+i.getMaxCellHeight(n)},0)},t.prototype.allRows=function(){return this.head.concat(this.body).concat(this.foot)},t.prototype.callCellHooks=function(n,e,i,a,r,u){for(var d=0,g=e;d1:!1}).length>0},t.prototype.canEntireRowFit=function(n,e){return this.getMaxCellHeight(e)<=n},t.prototype.getMinimumRowHeight=function(n,e){var i=this;return n.reduce(function(a,r){var u=i.cells[r.index];if(!u)return 0;var d=e.getLineHeight(u.styles.fontSize),g=u.padding("vertical"),_=g+d;return _>a?_:a},0)},t})(),pg=(function(){function t(n,e,i){var a;this.contentHeight=0,this.contentWidth=0,this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.height=0,this.x=0,this.y=0,this.styles=e,this.section=i,this.raw=n;var r=n;n!=null&&typeof n=="object"&&!Array.isArray(n)?(this.rowSpan=n.rowSpan||1,this.colSpan=n.colSpan||1,r=(a=n.content)!==null&&a!==void 0?a:n,n._element&&(this.raw=n._element)):(this.rowSpan=1,this.colSpan=1);var u=r!=null?""+r:"",d=/\r\n|\r|\n/g;this.text=u.split(d)}return t.prototype.getTextPos=function(){var n;if(this.styles.valign==="top")n=this.y+this.padding("top");else if(this.styles.valign==="bottom")n=this.y+this.height-this.padding("bottom");else{var e=this.height-this.padding("vertical");n=this.y+e/2+this.padding("top")}var i;if(this.styles.halign==="right")i=this.x+this.width-this.padding("right");else if(this.styles.halign==="center"){var a=this.width-this.padding("horizontal");i=this.x+a/2+this.padding("left")}else i=this.x+this.padding("left");return{x:i,y:n}},t.prototype.getContentHeight=function(n,e){e===void 0&&(e=1.15);var i=Array.isArray(this.text)?this.text.length:1,a=this.styles.fontSize/n*e,r=i*a+this.padding("vertical");return Math.max(r,this.styles.minCellHeight)},t.prototype.padding=function(n){var e=xm(this.styles.cellPadding,0);return n==="vertical"?e.top+e.bottom:n==="horizontal"?e.left+e.right:e[n]},t})(),iy=(function(){function t(n,e,i){this.wrappedWidth=0,this.minReadableWidth=0,this.minWidth=0,this.width=0,this.dataKey=n,this.raw=e,this.index=i}return t.prototype.getMaxCustomCellWidth=function(n){for(var e=0,i=0,a=n.allRows();i.1/t.scaleFactor()&&(a=a<1?a:Math.round(a),console.warn("Of the table content, ".concat(a," units width could not fit page"))),ly(n),sy(n,t),ry(n)}function oy(t,n){var e=t.scaleFactor(),i=n.settings.horizontalPageBreak,a=og(t,n);n.allRows().forEach(function(r){for(var u=0,d=n.columns;ua?(_.minWidth=a,_.wrappedWidth=a):(_.minWidth=_.contentWidth,_.wrappedWidth=_.contentWidth);else{var D=10/e;_.minWidth=_.styles.minCellWidth||D,_.wrappedWidth=_.contentWidth,_.minWidth>_.wrappedWidth&&(_.wrappedWidth=_.minWidth)}}}}),n.allRows().forEach(function(r){for(var u=0,d=n.columns;u1&&!g.minWidth&&(g.minWidth=_.minWidth),_.colSpan>1&&!g.wrappedWidth&&(g.wrappedWidth=_.minWidth))}})}function xu(t,n,e){for(var i=n,a=t.reduce(function(D,U){return D+U.wrappedWidth},0),r=0;re(D):!0});N.length&&(n=xu(N,n,e))}return n}function ry(t){for(var n={},e=1,i=t.allRows(),a=0;a1)e--,delete r.cells[g.index];else if(_)_.cell.height+=r.height,e=_.cell.colSpan,delete r.cells[g.index],_.left--,_.left<=1&&delete n[g.index];else{var y=r.cells[g.index];if(!y)continue;if(y.height=r.height,y.rowSpan>1){var I=i.length-a,N=y.rowSpan>I?I:y.rowSpan;n[g.index]={cell:y,left:N,row:r}}}}}function ly(t){for(var n=t.allRows(),e=0;e1&&t.columns[d+1])r+=g.width,delete i.cells[g.index];else if(a){var _=a;delete i.cells[g.index],a=null,_.width=g.width+r}else{var _=i.cells[g.index];if(!_)continue;if(u=_.colSpan,r=0,_.colSpan>1){a=_,r+=g.width;continue}_.width=g.width+r}}}function sy(t,n){for(var e={count:0,height:0},i=0,a=t.allRows();i1&&e.count*e.height0&&e.height>N&&(N=e.height),N>r.height&&(r.height=N)}}e.count--}}function K2(t,n,e,i,a){return t.map(function(r){return cy(r,n,e,i,a)})}function cy(t,n,e,i,a){var r=1e4*i.scaleFactor();if(n=Math.ceil(n*r)/r,n>=bm(t,e,i))return t;for(;n0?e:null}function my(t,n){if(t==="head"){if(typeof n=="object")return n.header||null;if(typeof n=="string"||typeof n=="number")return n}else if(t==="foot"&&typeof n=="object")return n.footer;return null}function dy(t){return t.map(function(n,e){var i,a;return typeof n=="object"?a=(i=n.dataKey)!==null&&i!==void 0?i:e:a=e,new iy(a,n,e)})}function uy(t,n,e,i,a,r,u){var d=V3(i),g;t==="head"?g=a.headStyles:t==="body"?g=a.bodyStyles:t==="foot"&&(g=a.footStyles);var _=Dr({},d.table,d[t],a.styles,g),y=a.columnStyles[n.dataKey]||a.columnStyles[n.index]||{},I=t==="body"?y:{},N=t==="body"&&e%2===0?Dr({},d.alternateRow,a.alternateRowStyles):{},D=z3(r),U=Dr({},D,_,N,I);return Dr(U,u)}function fy(t,n,e){var i;e===void 0&&(e={});var a=og(t,n),r=new Map,u=[],d=[],g=[];Array.isArray(n.settings.horizontalPageBreakRepeat)?g=n.settings.horizontalPageBreakRepeat:(typeof n.settings.horizontalPageBreakRepeat=="string"||typeof n.settings.horizontalPageBreakRepeat=="number")&&(g=[n.settings.horizontalPageBreakRepeat]),g.forEach(function(N){var D=n.columns.find(function(U){return U.dataKey===N||U.index===N});D&&!r.has(D.index)&&(r.set(D.index,!0),u.push(D.index),d.push(n.columns[D.index]),a-=D.wrappedWidth)});for(var _=!0,y=(i=e?.start)!==null&&i!==void 0?i:0;y=I)_=!1,u.push(y),d.push(n.columns[y]),a-=I;else break;y++}return{colIndexes:u,columns:d,lastIndex:y-1}}function hy(t,n){for(var e=[],i=0;iy.pageSize().height)&&(fg(y),r.y=a.top),n.callWillDrawPageHooks(y,r);var I=Dr({},r);n.startPageNumber=y.pageNumber(),e.horizontalPageBreak?gy(y,n,I,r):(y.applyStyles(y.userStyles),(e.showHead==="firstPage"||e.showHead==="everyPage")&&n.head.forEach(function(N){return wr(y,n,N,r,n.columns)}),y.applyStyles(y.userStyles),n.body.forEach(function(N,D){var U=D===n.body.length-1;vm(y,n,N,U,I,r,n.columns)}),y.applyStyles(y.userStyles),(e.showFoot==="lastPage"||e.showFoot==="everyPage")&&n.foot.forEach(function(N){return wr(y,n,N,r,n.columns)})),ig(y,n,I,r),n.callEndPageHooks(y,r),n.finalY=r.y,t.lastAutoTable=n,y.applyStyles(y.userStyles)}function gy(t,n,e,i){var a=hy(t,n),r=n.settings;if(r.horizontalPageBreakBehaviour==="afterAllRows")a.forEach(function(_,y){t.applyStyles(t.userStyles),y>0?Mc(t,n,e,i,_.columns,!0):X2(t,n,i,_.columns),_y(t,n,e,i,_.columns),hu(t,n,i,_.columns)});else for(var u=-1,d=a[0],g=function(){var _=u;if(d){t.applyStyles(t.userStyles);var y=d.columns;u>=0?Mc(t,n,e,i,y,!0):X2(t,n,i,y),_=Q2(t,n,u+1,i,y),hu(t,n,i,y)}var I=_-u;a.slice(1).forEach(function(N){t.applyStyles(t.userStyles),Mc(t,n,e,i,N.columns,!0),Q2(t,n,u+1,i,N.columns,I),hu(t,n,i,N.columns)}),u=_};uI&&(y.text=_.text.splice(I,_.text.length));var N=i.scaleFactor(),D=i.getLineHeightFactor();_.contentHeight=_.getContentHeight(N,D),_.contentHeight>=n&&(_.contentHeight=n,y.styles.minCellHeight-=n),_.contentHeight>t.height&&(t.height=_.contentHeight),y.contentHeight=y.getContentHeight(N,D),y.contentHeight>r&&(r=y.contentHeight),a[g.index]=y}}var U=new cg(t.raw,-1,t.section,a,!0);U.height=r;for(var H=0,K=e.columns;Hd)return console.error("Will not be able to print row ".concat(n.index," correctly since it's minimum height is larger than page height")),!0;if(!_)return!1;var y=n.hasRowSpan(i.columns),I=n.getMaxCellHeight(i.columns)>d;return I?(y&&console.error("The content of row ".concat(n.index," will not be drawn correctly since drawing rows with a height larger than the page height and has cells with rowspans is not supported.")),!0):!(y||i.settings.rowPageBreak==="avoid")}function vm(t,n,e,i,a,r,u){var d=ug(t,n,i,r);if(e.canEntireRowFit(d,u))wr(t,n,e,r,u);else if(vy(t,e,d,n)){var g=by(e,d,n,t);wr(t,n,e,r,u),Mc(t,n,a,r,u),vm(t,n,g,i,a,r,u)}else Mc(t,n,a,r,u),vm(t,n,e,i,a,r,u)}function wr(t,n,e,i,a){i.x=n.settings.margin.left;for(var r=0,u=a;r"u")return console.error("Cannot run autoTableHtmlToJson in non browser environment"),null;var a=new ys(this),r=lg(a,n,window,e,!1),u=r.head,d=r.body,g=((i=u[0])===null||i===void 0?void 0:i.map(function(_){return _.content}))||[];return{columns:g,rows:d,data:d}}}var gu;function hg(t,n){var e=sg(t,n),i=mg(t,e);dg(t,i)}try{typeof window<"u"&&window&&(_u=window,Cu=_u.jsPDF||((gu=_u.jspdf)===null||gu===void 0?void 0:gu.jsPDF),Cu&&Sy(Cu))}catch(t){console.error("Could not apply autoTable plugin",t)}var _u,Cu;var Dy=()=>["header","header-amount","header-total-cost","header-installment-totals"];function wy(t,n){if(t&1){let e=xt();s(0,"div",1)(1,"button",4),it("click",function(){mt(e);let a=P();return dt(a.exportToPDF())}),T(2,"fa-icon",5),c(3,"Export to PDF "),l()()}}function Ty(t,n){t&1&&(s(0,"th",42),c(1,"#"),l())}function Py(t,n){if(t&1&&(s(0,"td",43),c(1),l()),t&2){let e=n.$implicit;o(),b(e.period)}}function Ay(t,n){t&1&&(s(0,"td",44),c(1,"\xA0"),l())}function My(t,n){t&1&&(s(0,"th",42),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Days")))}function Oy(t,n){if(t&1&&(s(0,"td",45),c(1),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",e.daysInPeriod," ")}}function Iy(t,n){t&1&&(s(0,"td",46)(1,"b"),c(2," Total"),l()())}function Ey(t,n){t&1&&(s(0,"th",42),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Date")))}function Ly(t,n){if(t&1&&(s(0,"td",47),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.dueDate)," ")}}function Ny(t,n){t&1&&T(0,"td",44)}function ky(t,n){t&1&&(s(0,"th",42),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Paid Date")," "))}function Fy(t,n){if(t&1&&(s(0,"td",45),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.obligationsMetOnDate)," ")}}function Ry(t,n){t&1&&T(0,"td",44)}function By(t,n){t&1&&(s(0,"th",48),c(1,"\xA0"),l())}function qy(t,n){t&1&&(s(0,"span"),T(1,"i",49),l())}function jy(t,n){if(t&1&&(s(0,"td",45),M(1,qy,2,0,"span"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),O(e.obligationsMetOnDate?1:-1)}}function zy(t,n){t&1&&T(0,"td",44)}function Vy(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Balance Of Loan")," "))}function Uy(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.principalLoanBalanceOutstanding)," ")}}function Hy(t,n){t&1&&(s(0,"td",52),c(1,"\xA0"),l())}function Gy(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Principal Due")," "))}function Wy(t,n){if(t&1&&(s(0,"td",53),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.principalDue)," ")}}function $y(t,n){if(t&1&&(s(0,"td",54)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalPrincipalExpected,e.currencyCode,"symbol-narrow","1.2-2"))}}function Yy(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Interest")," "))}function Zy(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.interestOriginalDue)," ")}}function Ky(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalInterestCharged,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function Jy(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Fees")," "))}function Xy(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.feeChargesDue)," ")}}function Qy(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalFeeChargesCharged,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function t4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Penalties")," "))}function e4(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.penaltyChargesDue)," ")}}function n4(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalPenaltyChargesCharged,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function i4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Due")," "))}function a4(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.totalDueForPeriod)," ")}}function o4(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalRepaymentExpected,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function r4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Paid")," "))}function l4(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.totalPaidForPeriod)," ")}}function s4(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalRepayment,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function c4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.In advance")," "))}function p4(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.totalPaidInAdvanceForPeriod)," ")}}function m4(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalPaidInAdvance,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function d4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Late")," "))}function u4(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.totalPaidLateForPeriod)," ")}}function f4(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalPaidLate,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function h4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Waived")," "))}function g4(t,n){if(t&1&&(s(0,"td",51),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit,i=P(3);x("ngClass",i.installmentStyle(e)),o(),v(" ",m(2,2,e.totalWaivedForPeriod)," ")}}function _4(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(3);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalWaived,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function C4(t,n){t&1&&(X(0,32),k(1,h4,3,3,"th",19)(2,g4,3,4,"td",20)(3,_4,4,6,"td",21),Q())}function b4(t,n){t&1&&T(0,"th",48)}function v4(t,n){t&1&&T(0,"td",56)}function x4(t,n){t&1&&(s(0,"td",44),T(1,"b"),l())}function y4(t,n){t&1&&(X(0,32),k(1,b4,1,0,"th",17)(2,v4,1,0,"td",55)(3,x4,2,0,"td",9),Q())}function S4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Outstanding")," "))}function D4(t,n){if(t&1&&(s(0,"td",57),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.totalOutstandingForPeriod))}}function w4(t,n){if(t&1&&(s(0,"td",52)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P(2);o(2),v(" ",Ye(3,1,e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.totalOutstanding,e.currencyCode,"symbol-narrow","1.2-2")," ")}}function T4(t,n){t&1&&T(0,"th",48),t&2&&oa("colspan",5)}function P4(t,n){t&1&&(s(0,"th",42),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",2),o(),v(" ",m(2,2,"labels.inputs.Loan Amount and Balance")," "))}function A4(t,n){t&1&&(s(0,"th",42),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",3),o(),v(" ",m(2,2,"labels.inputs.Total Cost of Loan")," "))}function M4(t,n){t&1&&(s(0,"th",42),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",6),o(),v(" ",m(2,2,"labels.inputs.Installment Totals")," "))}function O4(t,n){t&1&&T(0,"tr",58)}function I4(t,n){t&1&&T(0,"tr",58)}function E4(t,n){t&1&&T(0,"tr",59)}function L4(t,n){t&1&&T(0,"tr",60)}function N4(t,n){if(t&1&&(s(0,"table",2),X(1,6),k(2,Ty,2,0,"th",7)(3,Py,2,1,"td",8)(4,Ay,2,0,"td",9),Q(),X(5,10),k(6,My,3,3,"th",7)(7,Oy,2,2,"td",11)(8,Iy,3,0,"td",12),Q(),X(9,13),k(10,Ey,3,3,"th",7)(11,Ly,3,4,"td",14)(12,Ny,1,0,"td",9),Q(),X(13,15),k(14,ky,3,3,"th",7)(15,Fy,3,4,"td",11)(16,Ry,1,0,"td",9),Q(),X(17,16),k(18,By,2,0,"th",17)(19,jy,2,2,"td",11)(20,zy,1,0,"td",9),Q(),X(21,18),k(22,Vy,3,3,"th",19)(23,Uy,3,4,"td",20)(24,Hy,2,0,"td",21),Q(),X(25,22),k(26,Gy,3,3,"th",19)(27,Wy,3,4,"td",23)(28,$y,4,6,"td",24),Q(),X(29,25),k(30,Yy,3,3,"th",19)(31,Zy,3,4,"td",20)(32,Ky,4,6,"td",21),Q(),X(33,26),k(34,Jy,3,3,"th",19)(35,Xy,3,4,"td",20)(36,Qy,4,6,"td",21),Q(),X(37,27),k(38,t4,3,3,"th",19)(39,e4,3,4,"td",20)(40,n4,4,6,"td",21),Q(),X(41,28),k(42,i4,3,3,"th",19)(43,a4,3,4,"td",20)(44,o4,4,6,"td",21),Q(),X(45,29),k(46,r4,3,3,"th",19)(47,l4,3,4,"td",20)(48,s4,4,6,"td",21),Q(),X(49,30),k(50,c4,3,3,"th",19)(51,p4,3,4,"td",20)(52,m4,4,6,"td",21),Q(),X(53,31),k(54,d4,3,3,"th",19)(55,u4,3,4,"td",20)(56,f4,4,6,"td",21),Q(),M(57,C4,4,0,"ng-container",32),M(58,y4,4,0,"ng-container",32),X(59,33),k(60,S4,3,3,"th",19)(61,D4,3,3,"td",34)(62,w4,4,6,"td",21),Q(),X(63,35),k(64,T4,1,1,"th",17),Q(),X(65,36),k(66,P4,3,4,"th",7),Q(),X(67,37),k(68,A4,3,4,"th",7),Q(),X(69,38),k(70,M4,3,4,"th",7),Q(),k(71,O4,1,0,"tr",39)(72,I4,1,0,"tr",39)(73,E4,1,0,"tr",40)(74,L4,1,0,"tr",41),l()),t&2){let e=P();x("dataSource",e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.periods),o(57),O(e.isWaived?57:-1),o(),O(e.isWaived?-1:58),o(13),x("matHeaderRowDef",Ut(7,Dy)),o(),x("matHeaderRowDef",e.displayedColumns),o(),x("matRowDefColumns",e.displayedColumns),o(),x("matFooterRowDef",e.displayedColumns)}}function k4(t,n){t&1&&(s(0,"th",42),c(1,"#"),l())}function F4(t,n){if(t&1&&(s(0,"td",56),c(1),l()),t&2){let e=n.$implicit;o(),b(e.period)}}function R4(t,n){t&1&&(s(0,"th",42),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Date")))}function B4(t,n){if(t&1&&(s(0,"td",65),X(1),c(2),p(3,"dateFormat"),Q(),l()),t&2){let e=n.$implicit;o(2),v(" ",m(3,1,e.dueDate)," ")}}function q4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Balance Of Loan")," "))}function j4(t,n){if(t&1&&(s(0,"td",57),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.principalLoanBalanceOutstanding)," ")}}function z4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Principal Due")," "))}function V4(t,n){if(t&1&&(s(0,"td",57),X(1),c(2),p(3,"formatNumber"),Q(),l()),t&2){let e=n.$implicit;o(2),v(" ",m(3,1,e.principalDue)," ")}}function U4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Interest")," "))}function H4(t,n){if(t&1&&(s(0,"td",57),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.interestOriginalDue))}}function G4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Fees")," "))}function W4(t,n){if(t&1&&(s(0,"td",57),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.feeChargesDue))}}function $4(t,n){t&1&&(s(0,"th",50),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Installment Amount")," "))}function Y4(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"formatNumber"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.totalDueForPeriod)," ")}}function Z4(t,n){if(t&1&&(s(0,"span",66)(1,"b"),c(2),p(3,"formatNumber"),l()()),t&2){let e=P().$implicit;o(2),b(m(3,1,e.totalDueForPeriod))}}function K4(t,n){if(t&1&&(s(0,"td",57),M(1,Y4,3,3,"span"),M(2,Z4,4,3,"span",66),l()),t&2){let e=n.$implicit;o(),O(e.changed?-1:1),o(),O(e.changed?2:-1)}}function J4(t,n){t&1&&(s(0,"th",48),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function X4(t,n){if(t&1){let e=xt();s(0,"span"),X(1),s(2,"button",68),p(3,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.editInstallment(a))}),T(4,"fa-icon",69),l(),s(5,"button",70),p(6,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.startEdit(a.period))}),T(7,"fa-icon",71),l(),Q(),l()}t&2&&(o(2),x("matTooltip",ce(m(3,4,"tooltips.Edit"))),o(3),x("matTooltip",ce(m(6,6,"tooltips.Delete"))))}function Q4(t,n){if(t&1&&(s(0,"td",67),M(1,X4,8,8,"span"),l()),t&2){let e=n.$implicit,i=P(2);o(),O(e.period&&e.period+1<(i.repaymentScheduleDetails==null||i.repaymentScheduleDetails.periods==null?null:i.repaymentScheduleDetails.periods.length)?1:-1)}}function tS(t,n){t&1&&T(0,"td",44)}function eS(t,n){t&1&&T(0,"tr",58)}function nS(t,n){t&1&&T(0,"tr",72)}function iS(t,n){if(t&1&&(s(0,"table",3),X(1,6),k(2,k4,2,0,"th",7)(3,F4,2,1,"td",55),Q(),X(4,13),k(5,R4,3,3,"th",7)(6,B4,4,3,"td",61),Q(),X(7,18),k(8,q4,3,3,"th",19)(9,j4,3,3,"td",34),Q(),X(10,22),k(11,z4,3,3,"th",19)(12,V4,4,3,"td",34),Q(),X(13,25),k(14,U4,3,3,"th",19)(15,H4,3,3,"td",34),Q(),X(16,26),k(17,G4,3,3,"th",19)(18,W4,3,3,"td",34),Q(),X(19,28),k(20,$4,3,3,"th",19)(21,K4,3,2,"td",34),Q(),X(22,62),k(23,J4,3,3,"th",17)(24,Q4,2,1,"td",63)(25,tS,1,0,"td",9),Q(),k(26,eS,1,0,"tr",39)(27,nS,1,0,"tr",64),l()),t&2){let e=P();x("dataSource",e.repaymentScheduleDetails==null?null:e.repaymentScheduleDetails.periods),o(26),x("matHeaderRowDef",e.displayedColumnsEdit),o(),x("matRowDefColumns",e.displayedColumnsEdit)}}var ho=(()=>{class t{constructor(){this.route=A(Et),this.settingsService=A(oe),this.dateUtils=A(de),this.dialog=A(Gn),this.forEditing=!1,this.repaymentScheduleDetails=null,this.loanDetailsDataRepaymentSchedule=null,this.editCache={},this.listOfData=[],this.repaymentSchedulePeriods=[],this.totalRepaymentExpected=0,this.displayedColumns=["number","days","date","paiddate","check","balanceOfLoan","principalDue","interest","fees","penalties","due","paid","inadvance","late","waived","outstanding"],this.displayedColumnsEdit=["number","date","balanceOfLoan","principalDue","interest","fees","due","actions"],this.editPeriod=new Yl,this.businessDate=new Date,this.destroyRef=A(Af),this.businessDate=this.settingsService.businessDate}ngOnInit(){this.route.parent?this.route.parent.data.pipe(h1(this.destroyRef)).subscribe({next:e=>{this.loanDetailsDataRepaymentSchedule=e.loanDetailsData?.repaymentSchedule??this.getDefaultRepaymentSchedule(),e.loanDetailsData?.currency?.code&&(this.currencyCode=e.loanDetailsData.currency.code),this.initializeRepaymentSchedule()},error:e=>{console.error("Failed to load loan repayment schedule data:",e),this.loanDetailsDataRepaymentSchedule=this.getDefaultRepaymentSchedule(),this.initializeRepaymentSchedule()}}):(this.loanDetailsDataRepaymentSchedule=this.getDefaultRepaymentSchedule(),this.initializeRepaymentSchedule())}initializeRepaymentSchedule(){this.repaymentScheduleDetails?(this.repaymentScheduleDetails.periods??=[],this.repaymentScheduleDetails.totalWaived??=0):this.repaymentScheduleDetails=this.loanDetailsDataRepaymentSchedule??this.getDefaultRepaymentSchedule(),this.isWaived=(this.repaymentScheduleDetails.totalWaived??0)>0,this.updateEditCache()}getDefaultRepaymentSchedule(){return{periods:[],totalWaived:0,currency:{},loanTermInDays:0,totalPrincipalDisbursed:0,totalPrincipalExpected:0,totalPrincipalPaid:0,totalInterestCharged:0,totalFeeChargesCharged:0,totalPenaltyChargesCharged:0,totalWrittenOff:0,totalRepaymentExpected:0,totalRepayment:0,totalPaidInAdvance:0,totalPaidLate:0,totalOutstanding:0,totalCredits:0}}ngOnChanges(e){e.repaymentScheduleDetails&&!e.repaymentScheduleDetails.firstChange&&this.initializeRepaymentSchedule(),this.totalRepaymentExpected=0,this.listOfData.forEach(i=>{this.totalRepaymentExpected=this.totalRepaymentExpected+i.totalDueForPeriod})}installmentStyle(e){if(e.complete)return"paid";let i=this.isCurrent(e);return i!==""?i:e.isAdditional?"additional":e.downPaymentPeriod?"downpayment":""}isCurrent(e){if(e.fromDate){this.businessDate=this.settingsService.businessDate;let i=this.dateUtils.parseDate(e.fromDate),a=this.dateUtils.parseDate(e.dueDate);if(i<=this.businessDate&&this.businessDatea)return"overdued"}else return"";return""}exportToPDF(){let i=`repaymentschedule-${this.dateUtils.formatDate(this.settingsService.businessDate,de.DEFAULT_DATEFORMAT)}.pdf`,a={orientation:"l",unit:"in",format:"letter",precision:2,compress:!0,putOnlyUsedFonts:!0},r=new Ze(a);hg(r,{html:"#repaymentSchedule",bodyStyles:{lineColor:[0,0,0]},styles:{fontSize:8,cellWidth:"auto",halign:"center"}}),r.save(i)}editInstallment(e){if(!e.period)return;this.editCache[e.period].edit=!0;let a={title:"Period",formfields:[new la({controlName:"dueDate",label:"Due Date",value:this.dateUtils.parseDate(e.dueDate),type:"date",required:!0}),new Ti({controlName:"principalDue",label:"Amount",value:e.principalDue,type:"number",required:!0})]};this.dialog.open(_i,{data:a,width:"50rem"}).afterClosed().subscribe(u=>{u.data})}cancelEdit(e){let i=this.listOfData.findIndex(a=>a.period?.toString()===e);i!==-1&&(this.editCache[e]={data:ie({},this.listOfData[i]),edit:!1})}saveEdit(e){let i=this.listOfData.findIndex(a=>a.period?.toString()===e);i!==-1&&(Object.assign(this.listOfData[i],this.editCache[e].data),this.editCache[e].edit=!1,this.editPeriod.emit(e))}updateEditCache(){this.repaymentScheduleDetails?.periods&&(this.listOfData=this.repaymentScheduleDetails.periods,this.totalRepaymentExpected=0,this.listOfData.forEach(e=>{this.editCache[e.period]={edit:!1,data:ie({},e)},this.totalRepaymentExpected=this.totalRepaymentExpected+e.totalDueForPeriod}))}numberOnly(e,i){let a=i.which?i.which:i.keyCode;return a===46?!(e.value.indexOf(".")>-1):!(a>31&&(a<48||a>57))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-repayment-schedule-tab"]],inputs:{currencyCode:"currencyCode",forEditing:"forEditing",repaymentScheduleDetails:"repaymentScheduleDetails"},outputs:{editPeriod:"editPeriod"},features:[Vr],decls:4,vars:3,consts:[[1,"container"],[1,"layout-row","m-t-20","align-end","align-items-center"],["mat-table","","id","repaymentSchedule",3,"dataSource"],["mat-table","","id","repaymentScheduleEdit",3,"dataSource"],["mat-raised-button","","color","primary",3,"click"],["icon","download",1,"m-r-10"],["matColumnDef","number"],["mat-header-cell","","class","center mat-header-cell",4,"matHeaderCellDef"],["mat-cell","","class","right",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","days"],["mat-cell","","class","center",3,"ngClass",4,"matCellDef"],["mat-footer-cell","","class","center",4,"matFooterCellDef"],["matColumnDef","date"],["mat-cell","","class","m-r-5",3,"ngClass",4,"matCellDef"],["matColumnDef","paiddate"],["matColumnDef","check"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","balanceOfLoan"],["mat-header-cell","","class","r-amount mat-header-cell",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",3,"ngClass",4,"matCellDef"],["mat-footer-cell","","class","r-amount",4,"matFooterCellDef"],["matColumnDef","principalDue"],["mat-cell","","class","check r-amount",3,"ngClass",4,"matCellDef"],["mat-footer-cell","","class","check r-amount",4,"matFooterCellDef"],["matColumnDef","interest"],["matColumnDef","fees"],["matColumnDef","penalties"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","inadvance"],["matColumnDef","late"],["matColumnDef","waived"],["matColumnDef","outstanding"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","header"],["matColumnDef","header-amount"],["matColumnDef","header-total-cost"],["matColumnDef","header-installment-totals"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","table-row",4,"matRowDef","matRowDefColumns"],["mat-footer-row","",4,"matFooterRowDef"],["mat-header-cell","",1,"center","mat-header-cell"],["mat-cell","",1,"right"],["mat-footer-cell",""],["mat-cell","",1,"center",3,"ngClass"],["mat-footer-cell","",1,"center"],["mat-cell","",1,"m-r-5",3,"ngClass"],["mat-header-cell",""],[1,"fa","fa-check"],["mat-header-cell","",1,"r-amount","mat-header-cell"],["mat-cell","",1,"r-amount",3,"ngClass"],["mat-footer-cell","",1,"r-amount"],["mat-cell","",1,"check","r-amount",3,"ngClass"],["mat-footer-cell","",1,"check","r-amount"],["mat-cell","",4,"matCellDef"],["mat-cell",""],["mat-cell","",1,"r-amount"],["mat-header-row",""],["mat-row","",1,"table-row"],["mat-footer-row",""],["mat-cell","","class","m-r-10",4,"matCellDef"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-cell","",1,"m-r-10"],[1,"amount-changed"],["mat-cell","",1,"center"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","trash","size","lg"],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0),M(1,wy,4,0,"div",1),M(2,N4,75,8,"table",2),M(3,iS,28,3,"table",3),l()),i&2&&(o(),O(a.forEditing?-1:1),o(),O(a.forEditing?-1:2),o(),O(a.forEditing&&(a.repaymentScheduleDetails==null||a.repaymentScheduleDetails.periods==null?null:a.repaymentScheduleDetails.periods.length)>0?3:-1))},dependencies:[wt,ca,Tt,Wt,un,bn,yn,xn,Sn,vn,Dn,Sp,Dp,wn,Pn,Tn,An,wp,Tp,Ba,Oi,Sa,En,Pt,hn],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}table[_ngcontent-%COMP%]{width:100%;margin:2% 0%}.table-row[_ngcontent-%COMP%]{font-size:small}.container[_ngcontent-%COMP%]{padding-bottom:2%;width:98%}.check[_ngcontent-%COMP%]{padding-left:15px}.amount-changed[_ngcontent-%COMP%], .additional[_ngcontent-%COMP%]{color:#4461e2}.downpayment[_ngcontent-%COMP%]{color:#16a085}.paid[_ngcontent-%COMP%]{color:#666f73}.current[_ngcontent-%COMP%]{color:#5cb85c}.overdued[_ngcontent-%COMP%]{color:#ff4000}#repaymentSchedule[_ngcontent-%COMP%], #repaymentScheduleEdit[_ngcontent-%COMP%]{width:100%}.mat-header-cell[_ngcontent-%COMP%]{color:#0000008a;font-size:12px;font-weight:500}div.container[_ngcontent-%COMP%]{overflow:auto;max-width:100%}"]})}}return t})();var aS=()=>[50,100,200],oS=()=>["export"],rS=t=>[t,"reciept"],lS=t=>["/","journal-entry","view",t];function sS(t,n){if(t&1){let e=xt();s(0,"div",2)(1,"mat-checkbox",46),it("click",function(){mt(e);let a=P();return dt(a.hideReversed())}),c(2),p(3,"translate"),l(),s(4,"mat-checkbox",46),it("click",function(){mt(e);let a=P();return dt(a.hideAccruals())}),c(5),p(6,"translate"),l(),s(7,"button",47),c(8),p(9,"translate"),l()()}if(t&2){let e=P();o(),x("formControl",e.hideReversedParam),o(),v(" ",m(3,6,"labels.inputs.Hide Reversed")),o(2),x("formControl",e.hideAccrualsParam),o(),v(" ",m(6,8,"labels.inputs.Hide Accruals")),o(2),x("routerLink",Ut(12,oS)),o(),v(" ",m(9,10,"labels.buttons.Export")," ")}}function cS(t,n){if(t&1){let e=xt();s(0,"td",48),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),l()}if(t&2){let e=n.index;o(),v(" ",e+1," ")}}function pS(t,n){if(t&1){let e=xt();s(0,"td",49),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",e.id," ")}}function mS(t,n){if(t&1){let e=xt();s(0,"td",50),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",e.officeName," ")}}function dS(t,n){if(t&1&&(s(0,"td",51),T(1,"mifosx-external-identifier",52),l()),t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),x("externalId",ce(e.externalId))}}function uS(t,n){if(t&1){let e=xt();s(0,"td",50),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"dateFormat"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",m(2,2,e.date)," ")}}function fS(t,n){if(t&1){let e=xt();s(0,"td",50),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"translateKey"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",Ge(2,2,e.type.value,"catalogs")," ")}}function hS(t,n){if(t&1){let e=xt();s(0,"td",53),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"formatNumber"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",m(2,2,e.amount)," ")}}function gS(t,n){if(t&1){let e=xt();s(0,"td",53),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"formatNumber"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",m(2,2,e.principalPortion)," ")}}function _S(t,n){if(t&1){let e=xt();s(0,"td",53),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"formatNumber"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",m(2,2,e.interestPortion)," ")}}function CS(t,n){if(t&1){let e=xt();s(0,"td",53),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"formatNumber"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",m(2,2,e.feeChargesPortion)," ")}}function bS(t,n){if(t&1){let e=xt();s(0,"td",53),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"formatNumber"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",m(2,2,e.penaltyChargesPortion)," ")}}function vS(t,n){if(t&1){let e=xt();s(0,"td",53),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.showTransactions(a))}),c(1),p(2,"formatNumber"),l()}if(t&2){let e=n.$implicit,i=P();x("ngClass",i.loanTransactionColor(e)),o(),v(" ",m(2,2,e.outstandingLoanBalance)," ")}}function xS(t,n){if(t&1&&(s(0,"button",55)(1,"mat-icon"),c(2,"more_vert"),l()()),t&2){P();let e=Lt(3);x("matMenuTriggerFor",e)}}function yS(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",56),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.showTransactions(a))}),s(2,"mat-icon"),T(3,"fa-icon",57),l(),s(4,"span"),c(5),p(6,"translate"),l()()()}t&2&&(o(5),b(m(6,1,"labels.text.View Transaction")))}function SS(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",56),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.openInterestRefundDialog(a))}),s(2,"mat-icon"),T(3,"fa-icon",58),l(),s(4,"span"),c(5),p(6,"translate"),l()()()}t&2&&(o(5),b(m(6,1,"tooltips.Create Interest Refund")))}function DS(t,n){if(t&1){let e=xt();s(0,"button",56),it("click",function(a){mt(e);let r=P(2).$implicit,u=P();return dt(u.undoTransaction(r,a))}),s(1,"mat-icon"),T(2,"fa-icon",62),l(),s(3,"span"),c(4),p(5,"translate"),l()()}t&2&&(o(4),b(m(5,1,"tooltips.Undo Transaction")))}function wS(t,n){if(t&1){let e=xt();s(0,"span"),k(1,DS,6,3,"button",59),s(2,"button",60),it("click",function(a){mt(e);let r=P(2);return dt(r.routeEdit(a))}),s(3,"mat-icon"),T(4,"fa-icon",61),l(),s(5,"span"),c(6),p(7,"translate"),l()()()}if(t&2){let e=P().$implicit;o(),x("mifosxHasPermission","ADJUST_LOAN"),o(),x("routerLink",La(5,rS,e.id)),o(4),b(m(7,3,"tooltips.View Receipts"))}}function TS(t,n){if(t&1){let e=xt();s(0,"button",56),it("click",function(a){mt(e);let r=P(2).$implicit,u=P();return dt(u.undoReAgeOrReAmortize(r,a))}),s(1,"mat-icon"),T(2,"fa-icon",62),l(),s(3,"span"),c(4),p(5,"translate"),l()()}t&2&&(o(4),b(m(5,1,"labels.menus.Undo Re-Age")))}function PS(t,n){t&1&&(s(0,"span"),k(1,TS,6,3,"button",59),l()),t&2&&(o(),x("mifosxHasPermission","UNDO_REAGE_LOAN"))}function AS(t,n){if(t&1){let e=xt();s(0,"button",56),it("click",function(a){mt(e);let r=P(2).$implicit,u=P();return dt(u.undoReAgeOrReAmortize(r,a))}),s(1,"mat-icon"),T(2,"fa-icon",62),l(),s(3,"span"),c(4),p(5,"translate"),l()()}t&2&&(o(4),b(m(5,1,"labels.menus.Undo Re-Amortize")))}function MS(t,n){t&1&&(s(0,"span"),k(1,AS,6,3,"button",59),l()),t&2&&(o(),x("mifosxHasPermission","UNDO_REAMORTIZE_LOAN"))}function OS(t,n){if(t&1){let e=xt();s(0,"button",56),it("click",function(a){mt(e);let r=P(2).$implicit,u=P();return dt(u.capitalizedIncomeAdjustmentTransaction(r,a))}),s(1,"mat-icon"),T(2,"fa-icon",63),l(),s(3,"span"),c(4),p(5,"translate"),l()()}t&2&&(o(4),b(m(5,1,"labels.menus.Capitalized Income Adjustment")))}function IS(t,n){t&1&&(s(0,"span"),k(1,OS,6,3,"button",59),l()),t&2&&(o(),x("mifosxHasPermission","CAPITALIZEDINCOME_LOAN"))}function ES(t,n){if(t&1){let e=xt();s(0,"button",56),it("click",function(a){mt(e);let r=P(2).$implicit,u=P();return dt(u.buyDownFeeAdjustmentTransaction(r,a))}),s(1,"mat-icon"),T(2,"fa-icon",63),l(),s(3,"span"),c(4),p(5,"translate"),l()()}t&2&&(o(4),b(m(5,1,"labels.menus.Buy Down Fee Adjustment")))}function LS(t,n){t&1&&(s(0,"span"),k(1,ES,6,3,"button",59),l()),t&2&&(o(),x("mifosxHasPermission","BUYDOWNFEE_LOAN"))}function NS(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",64),it("click",function(a){mt(e);let r=P(2);return dt(r.routeEdit(a))}),s(2,"mat-icon"),T(3,"fa-icon",65),l(),s(4,"span"),c(5),p(6,"translate"),l()()()}if(t&2){let e=P().$implicit;o(),x("routerLink",La(4,lS,"L"+e.id)),o(4),b(m(6,2,"tooltips.View Journal Entries"))}}function kS(t,n){if(t&1&&(s(0,"td",54),M(1,xS,3,1,"button",55),s(2,"mat-menu",null,0),M(4,yS,7,3,"span"),M(5,SS,7,3,"span"),M(6,wS,8,7,"span"),M(7,PS,2,1,"span"),M(8,MS,2,1,"span"),M(9,IS,2,1,"span"),M(10,LS,2,1,"span"),M(11,NS,7,6,"span"),l()()),t&2){let e=n.$implicit,i=P();o(),O(i.displaySubMenu(e)?1:-1),o(3),O(i.showTransaction(e)?4:-1),o(),O(i.canCreateInterestRefund(e)?5:-1),o(),O(i.allowUndoTransaction(e)?6:-1),o(),O(i.isReAge(e.type)&&!e.manuallyReversed?7:-1),o(),O(i.isReAmortize(e.type)&&!e.manuallyReversed?8:-1),o(),O(i.isCapitalizedIncome(e.type)&&!e.manuallyReversed?9:-1),o(),O(i.isBuyDownFee(e.type)&&!e.manuallyReversed?10:-1),o(),O(i.viewJournalEntry(e.type)?11:-1)}}function FS(t,n){t&1&&(s(0,"th",66),c(1,"#"),l())}function RS(t,n){t&1&&(s(0,"th",66),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Id")))}function BS(t,n){t&1&&(s(0,"th",66),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Office")))}function qS(t,n){t&1&&(s(0,"th",66),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.External Id")))}function jS(t,n){t&1&&(s(0,"th",66),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Transaction Date")))}function zS(t,n){t&1&&(s(0,"th",66),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Transaction Type")))}function VS(t,n){t&1&&T(0,"th",66)}function US(t,n){t&1&&(s(0,"th",67),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",4),o(),v(" ",m(2,2,"labels.inputs.Breakdown")," "))}function HS(t,n){t&1&&(s(0,"th",66),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Balance")))}function GS(t,n){t&1&&(s(0,"th",67),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function WS(t,n){t&1&&T(0,"th",66),t&2&&oa("colspan",6)}function $S(t,n){t&1&&(s(0,"th",68),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",1),o(),v(" ",m(2,2,"labels.inputs.Amount")," "))}function YS(t,n){t&1&&(s(0,"th",68),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",1),o(),v(" ",m(2,2,"labels.inputs.Principal")," "))}function ZS(t,n){t&1&&(s(0,"th",68),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",1),o(),v(" ",m(2,2,"labels.inputs.Interest")," "))}function KS(t,n){t&1&&(s(0,"th",68),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",1),o(),v(" ",m(2,2,"labels.inputs.Fees")," "))}function JS(t,n){t&1&&(s(0,"th",68),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",1),o(),v(" ",m(2,2,"labels.inputs.Penalties")," "))}function XS(t,n){t&1&&T(0,"th",66),t&2&&oa("colspan",2)}function QS(t,n){t&1&&T(0,"tr",69)}function tD(t,n){t&1&&T(0,"tr",69)}function eD(t,n){t&1&&T(0,"tr",70)}var ym=(()=>{class t{constructor(){this.route=A(Et),this.dateUtils=A(de),this.router=A(le),this.dialog=A(Gn),this.loansService=A(Mt),this.translateService=A(pa),this.settingsService=A(oe),this.alertService=A(Jl),this.transactionsData=[],this.displayedColumns=["row","id","office","externalId","date","transactionType","amount","principal","interest","fee","penalties","loanBalance","actions"],this.displayedHeader1Columns=["h1-row","h1-id","h1-office","h1-external-id","h1-transaction-date","h1-transaction-type","h1-space","h1-breakdown","h1-loan-balance","h1-actions"],this.displayedHeader2Columns=["h2-space","h2-amount","h2-principal","h2-interest","h2-fees","h2-penalties","h2-action"],this.route.parent.parent.data.subscribe(e=>{this.loanDetailsData=e.loanDetailsData,this.status=e.loanDetailsData.status.value}),this.loanId=this.route.parent.parent.snapshot.params.loanId}ngOnInit(){this.transactionsData=this.loanDetailsData.transactions,this.hideAccrualsParam=new pe(!1),this.hideReversedParam=new pe(!1),this.setLoanTransactions()}setLoanTransactions(){this.transactionsData.forEach(e=>{e.date=this.dateUtils.parseDate(e.date)}),this.dataSource=new Li(this.transactionsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}checkStatus(){return this.status==="Active"||this.status==="Closed (obligations met)"||this.status==="Overpaid"||this.status==="Closed (rescheduled)"||this.status==="Closed (written off)"}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,i){let a=this.transactionsData;(i||e)&&(a=this.transactionsData.filter(r=>!(e&&r.manuallyReversed)&&!(i&&this.isAccrualKindOf(r.type)))),this.dataSource=new Li(a),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(e=""){this.dataSource.filter=e.trim().toLowerCase()}removeItem(e,i){return e.filter(a=>a!==i)}showTransactions(e){this.showTransaction(e)&&this.router.navigate([e.id],{relativeTo:this.route})}showTransaction(e){return[1,2,4,9,20,21,22,23,26,28,29,30,31,32,33,35,36,37,38,40,41,42].includes(e.type.id)}allowUndoTransaction(e){return e.manuallyReversed?!1:!(e.type.disbursement||e.type.chargeoff||this.isReAgoeOrReAmortize(e.type)||e.type.interestRefund||e.type.contractTermination)}loanTransactionColor(e){return e.manuallyReversed?"strike":e.transactionRelations&&e.transactionRelations.length>0?"linked":this.isAccrualKindOf(e.type)?"accrual":this.isChargeOff(e.type)?"chargeoff":this.isDownPayment(e.type)?"down-payment":this.isReAge(e.type)?"reage":this.isReAmortize(e.type)?"reamortize":""}routeEdit(e){e.stopPropagation()}undoTransaction(e,i){i.stopPropagation();let a=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.route.parent.parent.snapshot.params.loanId,d="undo",g=this.dateUtils.parseDate(e.date),_={};this.isChargeOff(e.type)?(d="undo-charge-off",g=this.settingsService.businessDate,_={}):this.isWriteOff(e.type)?(d="undowriteoff",_={transactionDate:this.dateUtils.formatDate(g&&new Date(g),r),transactionAmount:0,dateFormat:r,locale:a}):_={transactionDate:this.dateUtils.formatDate(g&&new Date(g),r),transactionAmount:0,dateFormat:r,locale:a},this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction type")+`${e.type.value}`+this.translateService.instant("labels.dialogContext.with id")+`${e.id}`}}).afterClosed().subscribe(I=>{if(I.confirm){let N=e.id;(this.isChargeOff(e.type)||d==="undowriteoff"||this.isWriteOff(e.type))&&(N=null),this.loansService.executeLoansAccountTransactionsCommand(u,d,_,N).subscribe(D=>{e.manuallyReversed=!0,this.reload()})}})}undoReAgeOrReAmortize(e){let i=e.type.reAmortize?"Re-Amortize":"Re-Age";this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction type")+" "+this.translateService.instant("labels.menus."+i)}}).afterClosed().subscribe(r=>{if(r.confirm){let u=i==="Re-Age"?"undoReAge":"undoReAmortize";this.loansService.executeLoansAccountTransactionsCommand(String(this.loanId),u,{}).subscribe(()=>{this.reload()})}})}isAccrual(e){return e.accrual||e.code==="loanTransactionType.overdueCharge"}isChargeOff(e){return e.chargeoff||e.code==="loanTransactionType.chargeOff"}isWriteOff(e){return e.writeOff||e.code==="loanTransactionType.writeOff"}isDownPayment(e){return e.downPayment||e.code==="loanTransactionType.downPayment"}isReAge(e){return e.reAge||e.code==="loanTransactionType.reAge"}isReAmortize(e){return e.reAmortize||e.code==="loanTransactionType.reAmortize"}isCapitalizedIncome(e){return e.capitalizedIncome||e.code==="loanTransactionType.capitalizedIncome"}isBuyDownFeeAmortization(e){return e.buyDownFeeAmortizationAdjustment||e.code==="loanTransactionType.buyDownFeeAmortizationAdjustment"}isAccrualKindOf(e){return this.isAccrual(e)||this.isCapitalizedIncomeAmortization(e)||this.isBuyDownFeeAmortization(e)}isCapitalizedIncomeAmortization(e){return e.capitalizedIncomeAmortization||e.code==="loanTransactionType.capitalizedIncomeAmortization"}isReAgoeOrReAmortize(e){return this.isReAmortize(e)||this.isReAge(e)}isBuyDownFee(e){return e.buyDownFee||e.code==="loanTransactionType.buyDownFee"}viewJournalEntry(e){return!(this.isReAmortize(e)||this.isReAge(e))}canCreateInterestRefund(e){let i=e?.type?.code?.toLowerCase()||"";return!(!(i.includes("payoutrefund")||i.includes("merchantissuedrefund"))||e.manuallyReversed||e.transactionRelations&&e.transactionRelations.some(r=>r.relationType==="INTEREST_REFUND"))}openInterestRefundDialog(e){let i=this.loanId;this.loansService.getLoanTransactionActionTemplate(String(i),"interest-refund",String(e.id)).subscribe(a=>{let r=new Zf({controlType:"select",controlName:"paymentTypeId",label:this.translateService.instant("labels.inputs.Payment Type"),value:a.paymentTypeId||"",required:!0,order:2});r.options={data:a.paymentTypeOptions||[],value:"id",label:"name"};let u=[new Ti({controlName:"amount",label:this.translateService.instant("labels.inputs.Amount"),value:a.amount,type:"number",required:!0,readonly:!0,order:1}),r,new Ti({controlName:"externalId",label:this.translateService.instant("labels.inputs.External Id"),value:"",type:"text",required:!1,order:3}),new Ti({controlName:"note",label:this.translateService.instant("labels.inputs.Note"),value:"",type:"text",required:!1,order:4})],d={title:this.translateService.instant("labels.buttons.Create Interest Refund"),layout:{addButtonText:this.translateService.instant("labels.buttons.Create Interest Refund")},formfields:u};this.dialog.open(_i,{data:d}).afterClosed().subscribe(_=>{if(_?.data){let y=_.data.value,{amount:I,transactionDate:N}=y,D=Sf(y,["amount","transactionDate"]),U=ve(ie({},D),{transactionAmount:I,locale:this.settingsService.language.code,dateFormat:this.settingsService.dateFormat});this.loansService.executeLoansAccountTransactionsCommand(String(i),"interest-refund",U,String(e.id)).subscribe(()=>{this.reload()})}})})}reload(){let e=this.route.parent.parent.snapshot.params.clientId,i=this.router.url;this.router.navigateByUrl("/clients",{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}displaySubMenu(e){return!(this.isReAgoeOrReAmortize(e.type)&&e.manuallyReversed)}capitalizedIncomeAdjustmentTransaction(e){let i=`${this.loanId}`;this.loansService.getLoanTransactionActionTemplate(i,"capitalizedIncomeAdjustment",`${e.id}`).subscribe(a=>{let r=a.date||e.date;if(a.amount==0)this.displayAlertMessage("Capitalized Income amount adjusted already adjusted",e.amount);else{let u=a.amount||e.amount,d=[new la({controlName:"transactionDate",label:"Date",value:this.dateUtils.parseDate(r),type:"datetime-local",required:!0,minDate:this.dateUtils.parseDate(e.date),order:1}),new Ti({controlName:"amount",label:"Amount",value:u,type:"number",required:!0,min:.001,max:u,validators:[Gt.min(.001),Gt.max(u)],order:2})],g={title:`Adjustment ${e.type.value} Transaction`,layout:{addButtonText:"Adjustment"},formfields:d,pristine:!1};this.dialog.open(_i,{data:g}).afterClosed().subscribe(y=>{if(y.data){let I=this.settingsService.dateFormat;if(y.data.value.amount<=u){let N=this.settingsService.language.code,D={transactionDate:this.dateUtils.formatDate(y.data.value.transactionDate,I),transactionAmount:y.data.value.amount,locale:N,dateFormat:I};this.loansService.executeLoansAccountTransactionsCommand(i,"capitalizedIncomeAdjustment",D,e.id).subscribe(()=>{this.reload()})}else this.displayAlertMessage("Capitalized Income Adjustment amount must be lower or equal to",u)}})}})}buyDownFeeAdjustmentTransaction(e){let i=`${this.loanId}`;this.loansService.getLoanTransactionActionTemplate(i,"buyDownFeeAdjustment",`${e.id}`).subscribe(a=>{let r=a.date||e.date;if(a.amount==0)this.displayAlertMessage("Buy Down Fee amount already adjusted",e.amount);else{let u=a.amount||e.amount,d=[new la({controlName:"transactionDate",label:"Date",value:this.dateUtils.parseDate(r),type:"datetime-local",required:!0,minDate:this.dateUtils.parseDate(e.date),order:1}),new Ti({controlName:"amount",label:"Amount",value:u,type:"number",required:!0,min:.001,max:u,validators:[Gt.min(.001),Gt.max(u)],order:2})],g={title:`Adjustment ${e.type.value} Transaction`,layout:{addButtonText:"Adjustment"},formfields:d,pristine:!1};this.dialog.open(_i,{data:g}).afterClosed().subscribe(y=>{if(y.data){let I=this.settingsService.dateFormat;if(y.data.value.amount<=u){let N=this.settingsService.language.code,D={transactionDate:this.dateUtils.formatDate(y.data.value.transactionDate,I),transactionAmount:y.data.value.amount,locale:N,dateFormat:I};this.loansService.executeLoansAccountTransactionsCommand(i,"buyDownFeeAdjustment",D,e.id).subscribe(()=>{this.reload()})}else this.displayAlertMessage("Buy Down Fee Adjustment amount must be lower or equal to",u)}})}})}displayAlertMessage(e,i){let a=this.translateService.instant("errors."+e);i&&(a=a+": "+i),this.alertService.alert({type:"BusinessRule",message:a})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(i,a){if(i&1&&(mi(Do,7),mi(wo,7)),i&2){let r;di(r=ui())&&(a.paginator=r.first),di(r=ui())&&(a.sort=r.first)}},decls:67,vars:8,consts:[["transactionMenu","matMenu"],[1,"container"],[1,"layout-row","transaction-buttons","align-end","gap-20px"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","row"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","id"],["mat-cell","","class","td-select",3,"ngClass","click",4,"matCellDef"],["matColumnDef","office"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","externalId"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","date"],["matColumnDef","transactionType"],["matColumnDef","amount"],["mat-cell","","class","r-amount td-min-space",3,"ngClass","click",4,"matCellDef"],["matColumnDef","principal"],["matColumnDef","interest"],["matColumnDef","fee"],["matColumnDef","penalties"],["matColumnDef","loanBalance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","h1-row"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","h1-id"],["matColumnDef","h1-office"],["matColumnDef","h1-external-id"],["matColumnDef","h1-transaction-date"],["matColumnDef","h1-transaction-type"],["matColumnDef","h1-space"],["matColumnDef","h1-breakdown"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","h1-loan-balance"],["matColumnDef","h1-actions"],["matColumnDef","h2-space"],["matColumnDef","h2-amount"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["matColumnDef","h2-principal"],["matColumnDef","h2-interest"],["matColumnDef","h2-fees"],["matColumnDef","h2-penalties"],["matColumnDef","h2-action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"accruals",3,"click","formControl"],["mat-raised-button","","color","primary",1,"transaction-button",3,"routerLink"],["mat-cell","",3,"click"],["mat-cell","",1,"td-select",3,"click","ngClass"],["mat-cell","",3,"click","ngClass"],["mat-cell","",3,"ngClass"],[3,"externalId"],["mat-cell","",1,"r-amount","td-min-space",3,"click","ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["icon","plus","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",1,"account-action-button",3,"click","routerLink"],["icon","receipt","size","sm"],["icon","undo","size","sm"],["icon","coins","size","sm"],["mat-menu-item","",3,"click","routerLink"],["icon","table-cells","size","sm"],["mat-header-cell",""],["mat-header-cell","",1,"center"],["mat-header-cell","",1,"r-amount"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(i,a){i&1&&(s(0,"div",1),M(1,sS,10,13,"div",2),s(2,"table",3),X(3,4),k(4,cS,2,1,"td",5),Q(),X(5,6),k(6,pS,2,2,"td",7),Q(),X(7,8),k(8,mS,2,2,"td",9),Q(),X(9,10),k(10,dS,2,3,"td",11),Q(),X(11,12),k(12,uS,3,4,"td",9),Q(),X(13,13),k(14,fS,3,5,"td",9),Q(),X(15,14),k(16,hS,3,4,"td",15),Q(),X(17,16),k(18,gS,3,4,"td",15),Q(),X(19,17),k(20,_S,3,4,"td",15),Q(),X(21,18),k(22,CS,3,4,"td",15),Q(),X(23,19),k(24,bS,3,4,"td",15),Q(),X(25,20),k(26,vS,3,4,"td",15),Q(),X(27,21),k(28,kS,12,9,"td",22),Q(),X(29,23),k(30,FS,2,0,"th",24),Q(),X(31,25),k(32,RS,3,3,"th",24),Q(),X(33,26),k(34,BS,3,3,"th",24),Q(),X(35,27),k(36,qS,3,3,"th",24),Q(),X(37,28),k(38,jS,3,3,"th",24),Q(),X(39,29),k(40,zS,3,3,"th",24),Q(),X(41,30),k(42,VS,1,0,"th",24),Q(),X(43,31),k(44,US,3,4,"th",32),Q(),X(45,33),k(46,HS,3,3,"th",24),Q(),X(47,34),k(48,GS,3,3,"th",32),Q(),X(49,35),k(50,WS,1,1,"th",24),Q(),X(51,36),k(52,$S,3,4,"th",37),Q(),X(53,38),k(54,YS,3,4,"th",37),Q(),X(55,39),k(56,ZS,3,4,"th",37),Q(),X(57,40),k(58,KS,3,4,"th",37),Q(),X(59,41),k(60,JS,3,4,"th",37),Q(),X(61,42),k(62,XS,1,1,"th",24),Q(),k(63,QS,1,0,"tr",43)(64,tD,1,0,"tr",43)(65,eD,1,0,"tr",44),l(),T(66,"mat-paginator",45),l()),i&2&&(o(),O(a.checkStatus()?1:-1),o(),x("dataSource",a.dataSource),o(61),x("matHeaderRowDef",a.displayedHeader1Columns),o(),x("matHeaderRowDef",a.displayedHeader2Columns),o(),x("matRowDefColumns",a.displayedColumns),o(),x("pageSize",100)("pageSizeOptions",Ut(7,aS)))},dependencies:[wt,ca,Tt,he,Wo,ae,Wt,Da,Ae,bn,wo,yn,vn,Dn,Va,Ba,vp,xp,bp,Cp,un,xn,Sn,wn,Pn,Tn,An,Do,En,Pt,qa,hn],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{padding-bottom:2%;max-width:100%}.container[_ngcontent-%COMP%] .transaction-buttons[_ngcontent-%COMP%]{padding-bottom:1rem;padding-top:1rem}.container[_ngcontent-%COMP%] .transaction-buttons[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .linked[_ngcontent-%COMP%]{color:#4461e2}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .accrual[_ngcontent-%COMP%]{color:#999}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .down-payment[_ngcontent-%COMP%]{color:#16a085}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .chargeoff[_ngcontent-%COMP%]{color:#f39c12}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .reage[_ngcontent-%COMP%]{color:#e08e0b}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .reamortize[_ngcontent-%COMP%]{color:#4461e2}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:800}.td-min-space[_ngcontent-%COMP%]{min-width:60px}.filter-box[_ngcontent-%COMP%]{min-width:280px}.transaction-button[_ngcontent-%COMP%]{min-width:180px}.action-button[_ngcontent-%COMP%]{width:100%;height:100%}"]})}}return t})();var nD=()=>["header","header-amount","header-total-cost","header-installment-totals"];function iD(t,n){t&1&&(s(0,"th",24),c(1,"#"),l())}function aD(t,n){if(t&1&&(s(0,"td",25),c(1),l()),t&2){let e=n.index;o(),b(e+1)}}function oD(t,n){t&1&&(s(0,"td",26),c(1,"\xA0"),l())}function rD(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Date")))}function lD(t,n){if(t&1&&(s(0,"td",25),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.dueDate))}}function sD(t,n){t&1&&(s(0,"td",26)(1,"b"),c(2),p(3,"translate"),l()()),t&2&&(o(2),v(" ",m(3,1,"labels.inputs.Total")))}function cD(t,n){t&1&&(s(0,"th",27),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Balance Of Loan")))}function pD(t,n){if(t&1&&(s(0,"td",28),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.principalLoanBalanceOutstanding))}}function mD(t,n){t&1&&(s(0,"td",26),c(1,"\xA0"),l())}function dD(t,n){t&1&&(s(0,"th",27),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Principal Due")))}function uD(t,n){if(t&1&&(s(0,"td",28),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.principalDue))}}function fD(t,n){if(t&1&&(s(0,"td",29)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P();o(2),v(" ",Ye(3,1,e.originalScheduleDetails.totalPrincipalExpected,e.currency.code,"symbol-narrow","1.2-2")," ")}}function hD(t,n){t&1&&(s(0,"th",27),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Interest")))}function gD(t,n){if(t&1&&(s(0,"td",28),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.interestOriginalDue))}}function _D(t,n){if(t&1&&(s(0,"td",29)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P();o(2),v(" ",Ye(3,1,e.originalScheduleDetails.totalInterestCharged,e.currency.code,"symbol-narrow","1.2-2")," ")}}function CD(t,n){t&1&&(s(0,"th",27),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Fees")))}function bD(t,n){if(t&1&&(s(0,"td",28),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.feeChargesDue))}}function vD(t,n){if(t&1&&(s(0,"td",29)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P();o(2),v(" ",Ye(3,1,e.originalScheduleDetails.totalFeeChargesCharged,e.currency.code,"symbol-narrow","1.2-2")," ")}}function xD(t,n){t&1&&(s(0,"th",27),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Penalties")))}function yD(t,n){if(t&1&&(s(0,"td",28),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.penaltyChargesDue))}}function SD(t,n){if(t&1&&(s(0,"td",29)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P();o(2),v(" ",Ye(3,1,e.originalScheduleDetails.totalPenaltyChargesCharged,e.currency.code,"symbol-narrow","1.2-2")," ")}}function DD(t,n){t&1&&(s(0,"th",27),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Outstanding")))}function wD(t,n){if(t&1&&(s(0,"td",28),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.totalOutstandingForPeriod))}}function TD(t,n){if(t&1&&(s(0,"td",29)(1,"b"),c(2),p(3,"currency"),l()()),t&2){let e=P();o(2),v(" ",Ye(3,1,e.originalScheduleDetails.totalRepaymentExpected,e.currency.code,"symbol-narrow","1.2-2")," ")}}function PD(t,n){t&1&&T(0,"th",30),t&2&&oa("colspan",2)}function AD(t,n){t&1&&(s(0,"th",30),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",2),o(),v(" ",m(2,2,"labels.inputs.Loan Amount and Balance")," "))}function MD(t,n){t&1&&(s(0,"th",30),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",3),o(),v(" ",m(2,2,"labels.inputs.Total Cost of Loan")," "))}function OD(t,n){t&1&&(s(0,"th",30),c(1),p(2,"translate"),l()),t&2&&(oa("colspan",1),o(),v(" ",m(2,2,"labels.inputs.Installment Totals")," "))}function ID(t,n){t&1&&T(0,"tr",31)}function ED(t,n){t&1&&T(0,"tr",31)}function LD(t,n){t&1&&T(0,"tr",32)}function ND(t,n){t&1&&T(0,"tr",33)}var Sm=(()=>{class t{constructor(){this.route=A(Et),this.displayedColumns=["number","date","balanceOfLoan","principalDue","interest","fees","penalties","outstanding"],this.currency=null,this.route.parent.data.subscribe(e=>{this.currency=e.loanDetailsData.currency,this.originalScheduleDetails=e.loanDetailsData.originalSchedule})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-original-schedule-tab"]],decls:46,vars:6,consts:[[1,"container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","number"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-footer-cell","",4,"matFooterCellDef"],["matColumnDef","date"],["matColumnDef","balanceOfLoan"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","principalDue"],["mat-footer-cell","","class","r-amount",4,"matFooterCellDef"],["matColumnDef","interest"],["matColumnDef","fees"],["matColumnDef","penalties"],["matColumnDef","outstanding"],["matColumnDef","header"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","header-amount"],["matColumnDef","header-total-cost"],["matColumnDef","header-installment-totals"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-footer-row","",4,"matFooterRowDef"],["mat-header-cell",""],["mat-cell",""],["mat-footer-cell",""],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-footer-cell","",1,"r-amount"],["mat-header-cell","",1,"center"],["mat-header-row",""],["mat-row",""],["mat-footer-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"table",1),X(2,2),k(3,iD,2,0,"th",3)(4,aD,2,1,"td",4)(5,oD,2,0,"td",5),Q(),X(6,6),k(7,rD,3,3,"th",3)(8,lD,3,3,"td",4)(9,sD,4,3,"td",5),Q(),X(10,7),k(11,cD,3,3,"th",8)(12,pD,3,3,"td",9)(13,mD,2,0,"td",5),Q(),X(14,10),k(15,dD,3,3,"th",8)(16,uD,3,3,"td",9)(17,fD,4,6,"td",11),Q(),X(18,12),k(19,hD,3,3,"th",8)(20,gD,3,3,"td",9)(21,_D,4,6,"td",11),Q(),X(22,13),k(23,CD,3,3,"th",8)(24,bD,3,3,"td",9)(25,vD,4,6,"td",11),Q(),X(26,14),k(27,xD,3,3,"th",8)(28,yD,3,3,"td",9)(29,SD,4,6,"td",11),Q(),X(30,15),k(31,DD,3,3,"th",8)(32,wD,3,3,"td",9)(33,TD,4,6,"td",11),Q(),X(34,16),k(35,PD,1,1,"th",17),Q(),X(36,18),k(37,AD,3,4,"th",17),Q(),X(38,19),k(39,MD,3,4,"th",17),Q(),X(40,20),k(41,OD,3,4,"th",17),Q(),k(42,ID,1,0,"tr",21)(43,ED,1,0,"tr",21)(44,LD,1,0,"tr",22)(45,ND,1,0,"tr",23),l()()),i&2&&(o(),x("dataSource",a.originalScheduleDetails.periods),o(41),x("matHeaderRowDef",Ut(5,nD)),o(),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns),o(),x("matFooterRowDef",a.displayedColumns))},dependencies:[wt,Tt,bn,wo,yn,xn,Sn,vn,Dn,Sp,Dp,wn,Pn,Tn,An,wp,Tp,Sa,En,Pt,hn],styles:["table[_ngcontent-%COMP%]{width:100%;margin:3% 0%}.container[_ngcontent-%COMP%]{padding-bottom:2%}"]})}}return t})();var kD=()=>[10,25,50,100];function FD(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Name")))}function RD(t,n){if(t&1&&(s(0,"td",12),c(1),l()),t&2){let e=n.$implicit;o(),$t("",e.name,",",e.currency.displaySymbol)}}function BD(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Type")))}function qD(t,n){if(t&1&&(s(0,"td",12),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeCalculationType.value)}}function jD(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function zD(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.amount))}}function VD(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Collected On")))}function UD(t,n){if(t&1&&(s(0,"td",12),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeTimeType.value)}}function HD(t,n){t&1&&T(0,"tr",13)}function GD(t,n){t&1&&T(0,"tr",14)}var Dm=(()=>{class t{constructor(){this.route=A(Et),this.displayedColumns=["name","type","amount","collectedon"],this.route.parent.data.subscribe(e=>{this.loanDetails=e.loanDetailsData})}ngOnInit(){this.overdueCharges=this.loanDetails.overdueCharges,this.dataSource=new Li(this.overdueCharges),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-overdue-charges-tab"]],viewQuery:function(i,a){if(i&1&&(mi(Do,7),mi(wo,7)),i&2){let r;di(r=ui())&&(a.paginator=r.first),di(r=ui())&&(a.sort=r.first)}},decls:17,vars:5,consts:[[1,"container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","amount"],["matColumnDef","collectedon"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"table",1),X(2,2),k(3,FD,3,3,"th",3)(4,RD,2,2,"td",4),Q(),X(5,5),k(6,BD,3,3,"th",3)(7,qD,2,1,"td",4),Q(),X(8,6),k(9,jD,3,3,"th",3)(10,zD,3,3,"td",4),Q(),X(11,7),k(12,VD,3,3,"th",3)(13,UD,2,1,"td",4),Q(),k(14,HD,1,0,"tr",8)(15,GD,1,0,"tr",9),l(),T(16,"mat-paginator",10),l()),i&2&&(o(),x("dataSource",a.dataSource),o(13),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns),o(),x("pageSizeOptions",Ut(4,kD)))},dependencies:[wt,Tt,bn,wo,yn,xn,Sn,yp,vn,Dn,wn,Pn,Tn,An,Do,Pt,hn],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}"]})}}return t})();var WD=()=>[50,100,200],$D=t=>[t];function YD(t,n){t&1&&(s(0,"th",22),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.name")))}function ZD(t,n){if(t&1&&(s(0,"td",23),c(1),l()),t&2){let e=n.$implicit;o(),b(e.name)}}function KD(t,n){t&1&&(s(0,"th",22),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Fee/Penalty")))}function JD(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Penalty")))}function XD(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Fee")))}function QD(t,n){if(t&1&&(s(0,"td",23),M(1,JD,3,3,"span"),M(2,XD,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.penalty?1:-1),o(),O(e.penalty?-1:2)}}function tw(t,n){t&1&&(s(0,"th",22),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Payment due at")))}function ew(t,n){if(t&1&&(s(0,"td",23),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeTimeType.value)}}function nw(t,n){t&1&&(s(0,"th",22),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Submitted On")))}function iw(t,n){if(t&1&&(s(0,"td",23),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.submittedOnDate))}}function aw(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Due As Of")," "))}function ow(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Submitted On")," "))}function rw(t,n){if(t&1&&(s(0,"th",24),M(1,aw,3,3,"span"),M(2,ow,3,3,"span"),l()),t&2){let e=P();x("hide",e.useDueDate),o(),O(e.useDueDate?1:-1),o(),O(e.useDueDate?-1:2)}}function lw(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),b(m(2,1,e.dueDate))}}function sw(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),b(m(2,1,e.submittedOnDate))}}function cw(t,n){if(t&1&&(s(0,"td",23),M(1,lw,3,3,"span"),M(2,sw,3,3,"span"),l()),t&2){let e=P();o(),O(e.useDueDate?1:-1),o(),O(e.useDueDate?-1:2)}}function pw(t,n){t&1&&(s(0,"th",22),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Calculation Type")))}function mw(t,n){if(t&1&&(s(0,"td",23),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeCalculationType.value)}}function dw(t,n){t&1&&(s(0,"th",25),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Due")))}function uw(t,n){if(t&1&&(s(0,"td",26),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit;o(),v(" ",Ye(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function fw(t,n){t&1&&(s(0,"th",25),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Paid")))}function hw(t,n){if(t&1&&(s(0,"td",26),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit;o(),v(" ",Ye(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function gw(t,n){t&1&&(s(0,"th",25),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Waived")," "))}function _w(t,n){if(t&1&&(s(0,"td",26),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit;o(),v(" ",Ye(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Cw(t,n){t&1&&(s(0,"th",25),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Outstanding")," "))}function bw(t,n){if(t&1&&(s(0,"td",26),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit;o(),v(" ",Ye(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function vw(t,n){t&1&&(s(0,"th",25),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Actions")," "))}function xw(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",30),p(2,"translate"),it("click",function(a){mt(e);let r=P().$implicit,u=P();return u.routeEdit(a),dt(u.editCharge(r))}),T(3,"i",31),l(),s(4,"button",32),p(5,"translate"),it("click",function(a){mt(e);let r=P().$implicit,u=P();return u.routeEdit(a),dt(u.deleteCharge(r.id))}),T(6,"i",33),l()()}t&2&&(o(),x("matTooltip",ce(m(2,4,"tooltips.Edit Charge"))),o(3),x("matTooltip",ce(m(5,6,"tooltips.Delete Charge"))))}function yw(t,n){if(t&1){let e=xt();s(0,"button",34),p(1,"translate"),it("click",function(a){mt(e);let r=P().$implicit,u=P();return u.routeEdit(a),dt(u.adjustCharge(r.id))}),T(2,"i",31),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Adjust Charge")))}function Sw(t,n){if(t&1){let e=xt();s(0,"button",30),p(1,"translate"),it("click",function(a){mt(e);let r=P().$implicit,u=P();return u.routeEdit(a),dt(u.payCharge(r.id))}),T(2,"i",35),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Pay Charge")))}function Dw(t,n){if(t&1){let e=xt();s(0,"button",30),p(1,"translate"),it("click",function(a){mt(e);let r=P().$implicit,u=P();return u.routeEdit(a),dt(u.waiveCharge(r.id))}),T(2,"i",36),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Waive Charge")))}function ww(t,n){if(t&1&&(s(0,"td",27),M(1,xw,7,8,"span"),M(2,yw,3,4,"button",28),M(3,Sw,3,4,"button",29),M(4,Dw,3,4,"button",29),l()),t&2){let e=n.$implicit,i=P();o(),O(i.status==="Submitted and pending approval"?1:-1),o(),O(!e.paid&&i.status==="Active"?2:-1),o(),O(e.chargePayable&&!e.paid&&i.status==="Active"?3:-1),o(),O(e.actionFlag?-1:4)}}function Tw(t,n){t&1&&T(0,"tr",37)}function Pw(t,n){if(t&1&&T(0,"tr",38),t&2){let e=n.$implicit;x("routerLink",La(1,$D,e.id))}}var wm=(()=>{class t{constructor(){this.loansService=A(Mt),this.route=A(Et),this.dateUtils=A(de),this.router=A(le),this.translateService=A(pa),this.dialog=A(Gn),this.settingsService=A(oe),this.systemService=A(_p),this.displayedColumns=["name","feepenalty","paymentdueat","dueDate","calculationtype","due","paid","waived","outstanding","actions"],this.useDueDate=!0,this.route.parent.data.subscribe(e=>{this.loanDetails=e.loanDetailsData})}ngOnInit(){this.systemService.getConfigurationByName("charge-accrual-date").subscribe(i=>{this.useDueDate=i.stringValue==="due-date"}),this.chargesData=this.loanDetails.charges,this.status=this.loanDetails.status.value;let e;this.chargesData.forEach(i=>{i.dueDate=this.dateUtils.parseDate(i.dueDate),i.paid||i.waived||i.chargeTimeType.value==="Disbursement"||this.loanDetails.status.value!=="Active"?e=!0:e=!1,i.actionFlag=e}),this.chargesData=this.chargesData.sort(function(i,a){return a.dueDate-i.dueDate}),this.dataSource=new Li(this.chargesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}adjustCharge(e){this.router.navigate([`${e}/adjustment`],{relativeTo:this.route})}payCharge(e){let i=[new la({controlName:"transactionDate",label:"Payment Date",value:"",type:"date",required:!0})],a={title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data){let d=this.settingsService.language.code,g=this.settingsService.dateFormat,_=u.data.value.transactionDate,y={transactionDate:this.dateUtils.formatDate(_,g),dateFormat:g,locale:d};this.loansService.executeLoansAccountChargesCommand(this.loanDetails.id,"pay",y,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Waive Charge"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to waive charge with id")+`${e} ?`,type:"Basic"}}).afterClosed().subscribe(a=>{a.confirm&&this.loansService.executeLoansAccountChargesCommand(this.loanDetails.id,"waive",{},e).subscribe(()=>{this.reload()})})}editCharge(e){let i=[new Ti({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})],a={title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data){let d=this.settingsService.language.code,g=this.settingsService.dateFormat,_=ve(ie({},u.data.value),{dateFormat:g,locale:d});this.loansService.editLoansAccountCharge(this.loanDetails.id,_,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(ra,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.loansService.deleteLoansAccountCharge(this.loanDetails.id,e).subscribe(()=>{this.reload()})})}routeEdit(e){e.stopPropagation()}reload(){let e=this.loanDetails.clientId,i=this.router.url;this.router.navigateByUrl(`/clients/${e}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(i,a){if(i&1&&(mi(Do,7),mi(wo,7)),i&2){let r;di(r=ui())&&(a.paginator=r.first),di(r=ui())&&(a.sort=r.first)}},decls:38,vars:5,consts:[[1,"tab-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feepenalty"],["matColumnDef","paymentdueat"],["matColumnDef","submittedDate"],["matColumnDef","dueDate"],["mat-header-cell","","mat-sort-header","",3,"hide",4,"matHeaderCellDef"],["matColumnDef","calculationtype"],["matColumnDef","due"],["mat-header-cell","","class","r-amount","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","",3,"hide"],["mat-header-cell","","mat-sort-header","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-cell","",1,"center"],["mat-raised-button","","color","accent",1,"account-action-button",3,"matTooltip"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],["mat-raised-button","","color","accent",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"table",1),X(2,2),k(3,YD,3,3,"th",3)(4,ZD,2,1,"td",4),Q(),X(5,5),k(6,KD,3,3,"th",3)(7,QD,3,2,"td",4),Q(),X(8,6),k(9,tw,3,3,"th",3)(10,ew,2,1,"td",4),Q(),X(11,7),k(12,nw,3,3,"th",3)(13,iw,3,3,"td",4),Q(),X(14,8),k(15,rw,3,3,"th",9)(16,cw,3,2,"td",4),Q(),X(17,10),k(18,pw,3,3,"th",3)(19,mw,2,1,"td",4),Q(),X(20,11),k(21,dw,3,3,"th",12)(22,uw,3,6,"td",13),Q(),X(23,14),k(24,fw,3,3,"th",12)(25,hw,3,6,"td",13),Q(),X(26,15),k(27,gw,3,3,"th",12)(28,_w,3,6,"td",13),Q(),X(29,16),k(30,Cw,3,3,"th",12)(31,bw,3,6,"td",13),Q(),X(32,17),k(33,vw,3,3,"th",12)(34,ww,5,4,"td",18),Q(),k(35,Tw,1,0,"tr",19)(36,Pw,1,3,"tr",20),l(),T(37,"mat-paginator",21),l()),i&2&&(o(),x("dataSource",a.dataSource),o(34),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns),o(),x("pageSizeOptions",Ut(4,WD)))},dependencies:[wt,Tt,ae,Wt,bn,wo,yn,xn,Sn,yp,vn,Dn,Oi,wn,Pn,Tn,An,Do,Sa,En,Pt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-top:3%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();var Tm=(()=>{class t{constructor(){this.route=A(Et),this.entityDatatable=null,this.entityId=this.route.parent.parent.snapshot.paramMap.get("loanId"),this.entityDatatable=null,this.route.data.subscribe(e=>{this.entityDatatable=e.loanDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}ngOnInit(){this.route.parent.parent.params.subscribe(e=>{this.entityId=e.loanId})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Loan Account",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(i,a){i&1&&(s(0,"div",0),T(1,"mifosx-entity-datatable-tab",1),l()),i&2&&(o(),x("entityId",a.entityId)("multiRowDatatableFlag",a.multiRowDatatableFlag)("entityDatatable",a.entityDatatable))},dependencies:[wt,Tt,p1],encapsulation:2})}}return t})();var Aw=()=>["../../general"];function Mw(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Closed Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function Ow(t,n){if(t&1&&(s(0,"button",11),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.closeLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Pm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseForm()}createCloseForm(){this.closeLoanForm=this.formBuilder.group({transactionDate:[new Date(this.dataObject.date)||new Date,Gt.required],note:[]})}submit(){let e=this.closeLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.closeLoanForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.submitLoanActionButton(this.loanId,u,"close").subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-close"]],inputs:{dataObject:"dataObject"},decls:24,vars:18,consts:[["closedDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,Mw,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"textarea",7),l()(),s(19,"mat-card-actions",8)(20,"button",9),c(21),p(22,"translate"),l(),k(23,Ow,3,4,"button",10),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.closeLoanForm),o(5),b(m(8,11,"labels.inputs.Closed On")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.closeLoanForm.controls.transactionDate.hasError("required")?13:-1),o(3),b(m(17,13,"labels.inputs.Note")),o(4),x("routerLink",Ut(17,Aw)),o(),v(" ",m(22,15,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","CLOSE_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Iw=()=>["../../general"];function Ew(t,n){if(t&1){let e=xt();s(0,"button",7),it("click",function(){mt(e);let a=P();return dt(a.submit())}),c(1),p(2,"translate"),l()}t&2&&(o(),v(" ",m(2,1,"labels.buttons.Submit")," "))}var Am=(()=>{class t{constructor(){this.loanService=A(Mt),this.formBuilder=A(Te),this.route=A(Et),this.router=A(le)}ngOnInit(){this.note=this.formBuilder.control("")}submit(){let e=this.route.snapshot.params.loanId;this.loanService.loanActionButtons(e,"undoapproval",{note:this.note.value}).subscribe(i=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-undo-approval"]],decls:14,vars:10,consts:[[1,"container","mat-elevation-z8"],[1,"layout-column"],[1,"flex-fill"],["matInput","",3,"formControl"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"mat-card-content")(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),c(6),p(7,"translate"),l(),T(8,"textarea",3),l(),s(9,"mat-card-actions",4)(10,"button",5),c(11),p(12,"translate"),l(),k(13,Ew,3,3,"button",6),l()()()()()),i&2&&(o(6),b(m(7,5,"labels.inputs.Note")),o(2),x("formControl",a.note),o(2),x("routerLink",Ut(9,Iw)),o(),v(" ",m(12,7,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","APPROVALUNDO_LOAN"))},dependencies:[wt,Tt,we,he,Wo,ae,xe,Oe,ze,_e,ge,Pe,Wt,Ae,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Lw=()=>["../../general"];function Nw(t,n){if(t&1&&(s(0,"mat-option",5),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.displayName," ")}}function kw(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Loan Officer")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function Fw(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Assignment Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function Rw(t,n){if(t&1&&(s(0,"button",12),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.assignOfficerForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Mm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createassignOfficerForm(),this.loanOfficers=this.dataObject.loanOfficerOptions}createassignOfficerForm(){this.assignOfficerForm=this.formBuilder.group({toLoanOfficerId:["",Gt.required],assignmentDate:[new Date,Gt.required]})}submit(){let e=this.assignOfficerForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.assignOfficerForm.value.assignmentDate;e.assignmentDate instanceof Date&&(e.assignmentDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.fromLoanOfficerId=this.dataObject.loanOfficerId||"",this.loanService.loanActionButtons(this.loanId,"assignLoanOfficer",u).subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-assign-loan-officer"]],inputs:{dataObject:"dataObject"},decls:27,vars:19,consts:[["assignOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","toLoanOfficerId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"mat-select",4),ue(10,Nw,2,2,"mat-option",5,Ce),l(),M(12,kw,7,9,"mat-error"),l(),s(13,"mat-form-field",6),it("click",function(){mt(r);let d=Lt(20);return dt(d.open())}),s(14,"mat-label"),c(15),p(16,"translate"),l(),T(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),M(21,Fw,7,9,"mat-error"),l()(),s(22,"mat-card-actions",9)(23,"button",10),c(24),p(25,"translate"),l(),k(26,Rw,3,4,"button",11),l()()()()()}if(i&2){let r=Lt(20);o(2),x("formGroup",a.assignOfficerForm),o(5),v(" ",m(8,12,"labels.inputs.To Loan Officer")),o(3),fe(a.loanOfficers),o(2),O(a.assignOfficerForm.controls.toLoanOfficerId.hasError("required")?12:-1),o(3),b(m(16,14,"labels.inputs.Assignment Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.assignOfficerForm.controls.assignmentDate.hasError("required")?21:-1),o(2),x("routerLink",Ut(18,Lw)),o(),v(" ",m(25,16,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","BULKREASSIGN_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Bw=()=>["../../general"];function qw(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function jw(t,n){if(t&1&&(s(0,"button",16),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.foreclosureForm.valid),o(),v(" ",m(2,2,"labels.buttons.Foreclosure")," ")}}var Om=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createforeclosureForm(),this.onChanges()}createforeclosureForm(){this.foreclosureForm=this.formBuilder.group({transactionDate:[this.dataObject.date&&new Date(this.dataObject.date),Gt.required],outstandingPrincipalPortion:[{value:this.dataObject.principalPortion||0,disabled:!0}],outstandingInterestPortion:[{value:this.dataObject.interestPortion||0,disabled:!0}],outstandingFeeChargesPortion:[{value:this.dataObject.feeChargesPortion||0,disabled:!0}],outstandingPenaltyChargesPortion:[{value:this.dataObject.penaltyChargesPortion||0,disabled:!0}],transactionAmount:[{value:this.dataObject.amount,disabled:!0}],note:["",Gt.required]})}onChanges(){this.foreclosureForm.get("transactionDate").valueChanges.subscribe(e=>{this.retrieveLoanForeclosureTemplate(e)})}retrieveLoanForeclosureTemplate(e){let i=this.settingsService.dateFormat,a=this.dateUtils.formatDate(e,i),r={command:"foreclosure",dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code,transactionDate:a};this.loanService.getForeclosureData(this.loanId,r).subscribe(u=>{this.foreclosuredata=u,this.foreclosureForm.patchValue({outstandingPrincipalPortion:this.foreclosuredata.principalPortion,outstandingInterestPortion:this.foreclosuredata.interestPortion,outstandingFeeChargesPortion:this.foreclosuredata.feeChargesPortion,outstandingPenaltyChargesPortion:this.foreclosuredata.penaltyChargesPortion})})}submit(){let e=this.foreclosureForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.foreclosureForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.loanForclosureData(this.loanId,u).subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-foreclosure"]],inputs:{dataObject:"dataObject"},decls:49,vars:33,consts:[["transactionsDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","outstandingPrincipalPortion"],["matInput","","formControlName","outstandingInterestPortion"],["matInput","","formControlName","outstandingFeeChargesPortion"],["matInput","","required","","formControlName","outstandingPenaltyChargesPortion"],["matInput","","required","","formControlName","transactionAmount"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,qw,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"input",7),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),T(23,"input",8),l(),s(24,"mat-form-field")(25,"mat-label"),c(26),p(27,"translate"),l(),T(28,"input",9),l(),s(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),l(),T(33,"input",10),l(),s(34,"mat-form-field")(35,"mat-label"),c(36),p(37,"translate"),l(),T(38,"input",11),l(),s(39,"mat-form-field")(40,"mat-label"),c(41),p(42,"translate"),l(),T(43,"textarea",12),l()(),s(44,"mat-card-actions",13)(45,"button",14),c(46),p(47,"translate"),l(),k(48,jw,3,4,"button",15),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.foreclosureForm),o(5),b(m(8,16,"labels.inputs.Transaction Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.foreclosureForm.controls.transactionDate.hasError("required")?13:-1),o(3),b(m(17,18,"labels.inputs.Principal")),o(5),b(m(22,20,"labels.inputs.Interest")),o(5),b(m(27,22,"labels.inputs.Fee Amount")),o(5),b(m(32,24,"labels.inputs.Penalty Amount")),o(5),b(m(37,26,"labels.inputs.Transaction Amount")),o(5),b(m(42,28,"labels.inputs.Note")),o(4),x("routerLink",Ut(32,Bw)),o(),v(" ",m(47,30,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","FORECLOSURE_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var zw=()=>["../../general"];function Vw(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function Uw(t,n){if(t&1){let e=xt();s(0,"mat-form-field",14),it("click",function(){mt(e);let a=Lt(7);return dt(a.open())}),s(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",15)(5,"mat-datepicker-toggle",16)(6,"mat-datepicker",null,0),M(8,Vw,7,9,"mat-error"),l()}if(t&2){let e=Lt(7),i=P();o(2),b(m(3,6,"labels.inputs.Transaction Date")),o(2),x("min",i.minDate)("max",i.maxDate)("matDatepicker",e),o(),x("for",e),o(3),O(i.prepayLoanForm.controls.transactionDate.hasError("required")?8:-1)}}function Hw(t,n){if(t&1&&T(0,"mifosx-input-amount",7),t&2){let e=P();x("currency",e.currency)("isRequired",!0)("inputFormControl",e.prepayLoanForm.controls.transactionAmount)("inputLabel","Transaction Amount")}}function Gw(t,n){if(t&1&&(s(0,"mat-option",18),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function Ww(t,n){if(t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",17),ue(5,Gw,2,2,"mat-option",18,Ce),l()()),t&2){let e=P();o(2),b(m(3,1,"labels.inputs.Payment Type")),o(3),fe(e.paymentTypes)}}function $w(t,n){if(t&1){let e=xt();s(0,"div",9)(1,"span",19),it("click",function(){mt(e);let a=P();return dt(a.addPaymentDetails())}),s(2,"mat-slide-toggle")(3,"div",20)(4,"span",21),c(5),p(6,"translate"),l()()()()()}if(t&2){let e=P();o(3),x("className",e.showPaymentDetails?"enabled":"disabled"),o(2),b(m(6,2,"labels.inputs.Show Payment Details"))}}function Yw(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",22),l(),s(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",23),l(),s(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),l(),T(14,"input",24),l(),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",25),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"input",26),l()),t&2&&(o(2),v(" ",m(3,5,"labels.inputs.Account")," #"),o(5),v("",m(8,7,"labels.inputs.Cheque")," #"),o(5),b(m(13,9,"labels.inputs.Routing Code")),o(5),v("",m(18,11,"labels.inputs.Reciept")," #"),o(5),v("",m(23,13,"labels.inputs.Bank")," #"))}function Zw(t,n){if(t&1&&(s(0,"button",27),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.prepayLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Im=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.currency=null,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.prepayData=this.dataObject,this.contractTermination=this.dataObject.actionName=="Contract Termination",this.maxDate=this.settingsService.businessDate,this.createprepayLoanForm(),this.contractTermination||this.setPrepayLoanDetails(),this.dataObject.currency&&(this.currency=this.dataObject.currency)}createprepayLoanForm(){this.contractTermination?this.prepayLoanForm=this.formBuilder.group({externalId:[""],note:[""]}):this.prepayLoanForm=this.formBuilder.group({transactionDate:[new Date,Gt.required],transactionAmount:["",Gt.required],externalId:[""],paymentTypeId:[""],note:[""]})}setPrepayLoanDetails(){this.paymentTypes=this.dataObject.paymentTypeOptions,this.prepayLoanForm.patchValue({transactionAmount:this.dataObject.amount}),this.prepayLoanForm.get("transactionDate").valueChanges.subscribe(e=>{let i=this.dateUtils.formatDate(e,this.settingsService.dateFormat);this.loanService.getLoanPrepayLoanActionTemplate(this.loanId,i).subscribe(a=>{this.prepayData=a,this.prepayLoanForm.patchValue({transactionAmount:this.prepayData.amount})})})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.prepayLoanForm.addControl("accountNumber",new pe("")),this.prepayLoanForm.addControl("checkNumber",new pe("")),this.prepayLoanForm.addControl("routingCode",new pe("")),this.prepayLoanForm.addControl("receiptNumber",new pe("")),this.prepayLoanForm.addControl("bankNumber",new pe(""))):(this.prepayLoanForm.removeControl("accountNumber"),this.prepayLoanForm.removeControl("checkNumber"),this.prepayLoanForm.removeControl("routingCode"),this.prepayLoanForm.removeControl("receiptNumber"),this.prepayLoanForm.removeControl("bankNumber"))}submitRepayment(){let e=this.prepayLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.prepayLoanForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.transactionAmount=u.transactionAmount*1,this.loanService.submitLoanActionButton(this.loanId,u,"repayment").subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}submitContractTermination(){let e=ie({},this.prepayLoanForm.value);this.loanService.loanActionButtons(this.loanId,"contractTermination",e).subscribe(i=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}submit(){this.contractTermination?this.submitContractTermination():this.submitRepayment()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-prepay-loan"]],inputs:{dataObject:"dataObject"},decls:50,vars:42,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50","r-amount","right-label"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","formControlName","externalId"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","paymentTypeId"],[3,"value"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){i&1&&(s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",3),M(5,Uw,9,8,"mat-form-field"),s(6,"div",4)(7,"div",5),c(8),p(9,"translate"),l(),s(10,"div",6),c(11),p(12,"formatNumber"),l(),s(13,"div",5),c(14),p(15,"translate"),l(),s(16,"div",6),c(17),p(18,"formatNumber"),l(),s(19,"div",5),c(20),p(21,"translate"),l(),s(22,"div",6),c(23),p(24,"formatNumber"),l(),s(25,"div",5),c(26),p(27,"translate"),l(),s(28,"div",6),c(29),p(30,"formatNumber"),l()(),M(31,Hw,1,4,"mifosx-input-amount",7),s(32,"mat-form-field")(33,"mat-label"),c(34),p(35,"translate"),l(),T(36,"input",8),l(),M(37,Ww,7,3,"mat-form-field"),M(38,$w,7,4,"div",9),M(39,Yw,25,15),s(40,"mat-form-field")(41,"mat-label"),c(42),p(43,"translate"),l(),T(44,"textarea",10),l()(),s(45,"mat-card-actions",11)(46,"button",12),c(47),p(48,"translate"),l(),k(49,Zw,3,4,"button",13),l()()()()()),i&2&&(o(2),x("formGroup",a.prepayLoanForm),o(3),O(a.contractTermination?-1:5),o(3),v(" ",m(9,19,"labels.inputs.Principal")," "),o(3),v(" ",m(12,21,a.prepayData.principalPortion)," "),o(3),v(" ",m(15,23,"labels.inputs.Interest")," "),o(3),v(" ",m(18,25,a.prepayData.interestPortion)," "),o(3),v(" ",m(21,27,"labels.inputs.Fees")," "),o(3),v(" ",m(24,29,a.prepayData.feeChargesPortion)," "),o(3),v(" ",m(27,31,"labels.inputs.Penalties")," "),o(3),v(" ",m(30,33,a.prepayData.penaltyChargesPortion)," "),o(2),O(a.contractTermination?-1:31),o(3),b(m(35,35,"labels.inputs.External Id")),o(3),O(a.contractTermination?-1:37),o(),O(a.contractTermination?-1:38),o(),O(a.showPaymentDetails?39:-1),o(3),b(m(43,37,"labels.inputs.Note")),o(4),x("routerLink",Ut(41,zw)),o(),v(" ",m(48,39,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","REPAYMENT_LOAN"))},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Ri,ja,Wn,Pt,hn],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();var Kw=()=>["../../general"];function Jw(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function Xw(t,n){if(t&1&&(s(0,"div",7)(1,"div",21),c(2),p(3,"translate"),l(),s(4,"div",22),c(5),p(6,"formatNumber"),l(),s(7,"div",21),c(8),p(9,"translate"),l(),s(10,"div",22),c(11),p(12,"formatNumber"),l(),s(13,"div",21),c(14),p(15,"translate"),l(),s(16,"div",22),c(17),p(18,"formatNumber"),l(),s(19,"div",21),c(20),p(21,"translate"),l(),s(22,"div",22),c(23),p(24,"formatNumber"),l()()),t&2){let e=P();o(2),v(" ",m(3,8,"labels.inputs.Principal")," "),o(3),v(" ",m(6,10,e.dataObject.principalPortion)," "),o(3),v(" ",m(9,12,"labels.inputs.Interest")," "),o(3),v(" ",m(12,14,e.dataObject.interestPortion)," "),o(3),v(" ",m(15,16,"labels.inputs.Fees")," "),o(3),v(" ",m(18,18,e.dataObject.feeChargesPortion)," "),o(3),v(" ",m(21,20,"labels.inputs.Penalties")," "),o(3),v(" ",m(24,22,e.dataObject.penaltyChargesPortion)," ")}}function Qw(t,n){if(t&1&&(s(0,"mat-option",11),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function tT(t,n){if(t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",23),ue(5,Qw,2,2,"mat-option",11,Ce),l()()),t&2){let e=P();o(2),b(m(3,1,"labels.inputs.Classification")),o(3),fe(e.classificationOptions)}}function eT(t,n){if(t&1&&(s(0,"mat-option",11),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function nT(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",24),l(),s(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",25),l(),s(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),l(),T(14,"input",26),l(),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",27),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"input",28),l()),t&2&&(o(2),v(" ",m(3,5,"labels.inputs.Account")," #"),o(5),v(" ",m(8,7,"labels.inputs.Cheque")," #"),o(5),v(" ",m(13,9,"labels.inputs.Routing Code")),o(5),v(" ",m(18,11,"labels.inputs.Reciept")," #"),o(5),v(" ",m(23,13,"labels.inputs.Bank")," #"))}function iT(t,n){t&1&&(s(0,"mat-checkbox",17),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Skip Interest Refund Transaction Posting")," "))}function aT(t,n){if(t&1&&(s(0,"button",29),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.repaymentLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Em=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.currency=null,this.command=null,this.classificationOptions=[],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.command=this.dataObject.type.code.split(".")[1],this.maxDate=this.settingsService.businessDate,this.createRepaymentLoanForm(),this.setRepaymentLoanDetails(),this.dataObject.currency&&(this.currency=this.dataObject.currency)}createRepaymentLoanForm(){this.repaymentLoanForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,Gt.required],externalId:"",paymentTypeId:"",note:"",skipInterestRefund:[!1]}),this.isCapitalizedIncome()?this.repaymentLoanForm.addControl("transactionAmount",new pe("",[Gt.required,Gt.min(.001),Gt.max(this.dataObject.amount)])):this.repaymentLoanForm.addControl("transactionAmount",new pe("",[Gt.required,Gt.min(.001)])),(this.isCapitalizedIncome()||this.isBuyDownFee())&&this.repaymentLoanForm.addControl("classificationId",new pe(""))}setRepaymentLoanDetails(){this.paymentTypes=this.dataObject.paymentTypeOptions,this.classificationOptions=this.dataObject.classificationOptions,this.repaymentLoanForm.patchValue({transactionAmount:this.dataObject.amount})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.repaymentLoanForm.addControl("accountNumber",new pe("")),this.repaymentLoanForm.addControl("checkNumber",new pe("")),this.repaymentLoanForm.addControl("routingCode",new pe("")),this.repaymentLoanForm.addControl("receiptNumber",new pe("")),this.repaymentLoanForm.addControl("bankNumber",new pe(""))):(this.repaymentLoanForm.removeControl("accountNumber"),this.repaymentLoanForm.removeControl("checkNumber"),this.repaymentLoanForm.removeControl("routingCode"),this.repaymentLoanForm.removeControl("receiptNumber"),this.repaymentLoanForm.removeControl("bankNumber"))}showDetails(){return!this.isCapitalizedIncome()&&!this.isBuyDownFee()}isCapitalizedIncome(){return["capitalizedIncome","capitalizedIncomeAdjustment"].includes(this.command)}isBuyDownFee(){return["buyDownFee"].includes(this.command)}showInterestRefundCheckbox(){let e=this.dataObject?.type?.code?.toLowerCase()||"";return e.includes("merchantissuedrefund")||e.includes("payoutrefund")}submit(){let e=this.repaymentLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.repaymentLoanForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.transactionAmount=u.transactionAmount*1,e.skipInterestRefund&&(u.interestRefundCalculation=!1),delete u.skipInterestRefund,this.loanService.submitLoanActionButton(this.loanId,u,this.command).subscribe(d=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-make-repayment"]],inputs:{dataObject:"dataObject"},decls:48,vars:36,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row-wrap"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","formControlName","externalId"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["formControlName","skipInterestRefund"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[1,"flex-50","mat-body-strong"],[1,"flex-50","r-amount","right-label"],["formControlName","classificationId"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,Jw,7,9,"mat-error"),l(),M(14,Xw,25,24,"div",7),T(15,"mifosx-input-amount",8),s(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),l(),T(20,"input",9),l(),M(21,tT,7,3,"mat-form-field"),s(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),l(),s(26,"mat-select",10),ue(27,eT,2,2,"mat-option",11,Ce),l()(),s(29,"div",12)(30,"span",13),it("click",function(){return mt(r),dt(a.addPaymentDetails())}),s(31,"mat-slide-toggle")(32,"div",14)(33,"span",15),c(34),p(35,"translate"),l()()()()(),M(36,nT,25,15),s(37,"mat-form-field")(38,"mat-label"),c(39),p(40,"translate"),l(),T(41,"textarea",16),l(),M(42,iT,3,3,"mat-checkbox",17),l(),s(43,"mat-card-actions",18)(44,"button",19),c(45),p(46,"translate"),l(),k(47,aT,3,4,"button",20),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.repaymentLoanForm),o(5),b(m(8,23,"labels.inputs.Transaction Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.repaymentLoanForm.controls.transactionDate.hasError("required")?13:-1),o(),O(a.showDetails()?14:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.repaymentLoanForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(19,25,"labels.inputs.External Id")),o(3),O(a.isCapitalizedIncome()||a.isBuyDownFee()?21:-1),o(3),b(m(25,27,"labels.inputs.Payment Type")),o(3),fe(a.paymentTypes),o(5),x("className",a.showPaymentDetails?"enabled":"disabled"),o(2),b(m(35,29,"labels.inputs.Show Payment Details")),o(2),O(a.showPaymentDetails?36:-1),o(3),v(" ",m(40,31,"labels.inputs.Note")),o(3),O(a.showInterestRefundCheckbox()?42:-1),o(2),x("routerLink",Ut(35,Kw)),o(),v(" ",m(46,33,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","REPAYMENT_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Da,Ae,Ri,ja,Wn,Pt,hn],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();var oT=()=>["../../general"];function rT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function lT(t,n){if(t&1&&(s(0,"button",13),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.creditBalanceLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Lm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCreditBalanceLoanForm(),this.setCreditBalanceLoanDetails(),this.dataObject.currency&&(this.currency=this.dataObject.currency)}createCreditBalanceLoanForm(){this.creditBalanceLoanForm=this.formBuilder.group({transactionDate:[new Date,Gt.required],transactionAmount:["",Gt.required],externalId:"",note:""})}setCreditBalanceLoanDetails(){this.creditBalanceLoanForm.patchValue({transactionAmount:this.dataObject.amount})}submit(){let e=this.creditBalanceLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.creditBalanceLoanForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i}),d=this.dataObject.type.code.split(".")[1];u.transactionAmount=u.transactionAmount*1,this.loanService.submitLoanActionButton(this.loanId,u,d).subscribe(g=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-credit-balance-refund"]],inputs:{dataObject:"dataObject"},decls:30,vars:25,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","formControlName","externalId"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,rT,7,9,"mat-error"),l(),T(14,"mifosx-input-amount",7),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",8),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"textarea",9),l()(),s(25,"mat-card-actions",10)(26,"button",11),c(27),p(28,"translate"),l(),k(29,lT,3,4,"button",12),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.creditBalanceLoanForm),o(5),b(m(8,16,"labels.inputs.Transaction Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.creditBalanceLoanForm.controls.transactionDate.hasError("required")?13:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.creditBalanceLoanForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(18,18,"labels.inputs.External Id")),o(5),b(m(23,20,"labels.inputs.Note")),o(4),x("routerLink",Ut(24,oT)),o(),v(" ",m(28,22,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","REPAYMENT_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Ri,Wn,Pt],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var sT=()=>["../../general"];function cT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Interest Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function pT(t,n){if(t&1&&(s(0,"button",12),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.loanInterestForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Nm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.router=A(le),this.settingsService=A(oe),this.dateUtils=A(de),this.loanService=A(Mt),this.route=A(Et),this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setLoanInterestForm(),this.dataObject.currency&&(this.currency=this.dataObject.currency)}setLoanInterestForm(){this.loanInterestForm=this.formBuilder.group({transactionAmount:[this.dataObject.amount,Gt.required],transactionDate:[this.dataObject.date&&new Date(this.dataObject.date),Gt.required],note:[""]})}submit(){let e=this.loanInterestForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.loanInterestForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.transactionAmount=u.transactionAmount*1;let d=this.route.snapshot.params.loanId;this.loanService.submitLoanActionButton(d,u,"waiveinterest").subscribe(g=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-waive-interest"]],inputs:{dataObject:"dataObject"},decls:25,vars:22,consts:[["interestDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,cT,7,9,"mat-error"),l(),T(14,"mifosx-input-amount",7),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"textarea",8),l()(),s(20,"mat-card-actions",9)(21,"button",10),c(22),p(23,"translate"),l(),k(24,pT,3,4,"button",11),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.loanInterestForm),o(5),b(m(8,15,"labels.inputs.Interest waived on")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.loanInterestForm.controls.transactionDate.hasError("required")?13:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.loanInterestForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(18,17,"labels.inputs.Note")),o(4),x("routerLink",Ut(21,sT)),o(),v(" ",m(23,19,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","WAIVEINTERESTPORTION_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Ri,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var mT=()=>["../../general"];function dT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Write Off Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function uT(t,n){if(t&1&&(s(0,"mat-option",9),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function fT(t,n){if(t&1){let e=xt();s(0,"button",14),it("click",function(){mt(e);let a=P();return dt(a.submit())}),c(1),p(2,"translate"),l()}t&2&&(o(),v(" ",m(2,1,"labels.buttons.Submit")," "))}var km=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.loanService=A(Mt),this.dateUtils=A(de),this.router=A(le),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.writeOffReasonOptions=[],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setWriteOffForm(),this.writeOffReasonOptions=this.dataObject.writeOffReasonOptions}setWriteOffForm(){this.writeOffForm=this.formBuilder.group({transactionDate:[this.dataObject.date&&new Date(this.dataObject.date),Gt.required],amount:[{value:this.dataObject.amount,disabled:!0}],writeoffReasonId:[""],note:[""]})}submit(){let e=this.writeOffForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.writeOffForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a)),(e.writeoffReasonId===null||e.writeoffReasonId==="")&&delete e.writeoffReasonId;let u=ve(ie({},e),{dateFormat:a,locale:i});delete u.amount,this.loanService.submitLoanActionButton(this.loanId,u,"writeoff").subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-write-off-page"]],inputs:{dataObject:"dataObject"},decls:36,vars:24,consts:[["writeOffDatePicker",""],[1,"container","mat-elevation-z8"],[3,"formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","amount"],["formControlName","writeoffReasonId"],[3,"value"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"mat-card-content")(3,"form",2)(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,dT,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"input",7),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),s(23,"mat-select",8),ue(24,uT,2,2,"mat-option",9,Ce),l()(),s(26,"mat-form-field")(27,"mat-label"),c(28),p(29,"translate"),l(),T(30,"textarea",10),l()()(),s(31,"mat-card-actions",11)(32,"button",12),c(33),p(34,"translate"),l(),k(35,fT,3,3,"button",13),l()()()()}if(i&2){let r=Lt(12);o(3),x("formGroup",a.writeOffForm),o(4),b(m(8,13,"labels.inputs.Write off on")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.writeOffForm.controls.transactionDate.hasError("required")?13:-1),o(3),b(m(17,15,"labels.inputs.Amount")),o(5),b(m(22,17,"labels.inputs.Reason for Write-Off")),o(3),fe(a.writeOffReasonOptions),o(4),b(m(29,19,"labels.inputs.Note")),o(4),x("routerLink",Ut(23,mT)),o(),v(" ",m(34,21,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","WRITEOFF_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var hT=()=>["../../general"];function gT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Closed Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function _T(t,n){if(t&1&&(s(0,"button",11),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.closeLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Fm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseForm()}createCloseForm(){this.closeLoanForm=this.formBuilder.group({transactionDate:[new Date(this.dataObject.date)||new Date,Gt.required],note:[]})}submit(){let e=this.closeLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.closeLoanForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.submitLoanActionButton(this.loanId,u,"close-rescheduled").subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-close-as-rescheduled"]],inputs:{dataObject:"dataObject"},decls:24,vars:18,consts:[["closedDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,gT,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"textarea",7),l()(),s(19,"mat-card-actions",8)(20,"button",9),c(21),p(22,"translate"),l(),k(23,_T,3,4,"button",10),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.closeLoanForm),o(5),b(m(8,11,"labels.inputs.Closed On")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.closeLoanForm.controls.transactionDate.hasError("required")?13:-1),o(3),b(m(17,13,"labels.inputs.Note")),o(4),x("routerLink",Ut(17,hT)),o(),v(" ",m(22,15,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","CLOSEASRESCHEDULED_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var CT=()=>["../../general"];function bT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Reschedule Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function vT(t,n){if(t&1&&(s(0,"mat-option",10),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function xT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Reason for Rescheduling")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function yT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Submitted On Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function ST(t,n){if(t&1){let e=xt();s(0,"mat-form-field",6),it("click",function(){mt(e);let a=Lt(7);return dt(a.open())}),s(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",17)(5,"mat-datepicker-toggle",8)(6,"mat-datepicker",null,2),l()}if(t&2){let e=Lt(7),i=P();o(2),b(m(3,4,"labels.inputs.Installment Rescheduled to")),o(2),x("min",i.minDate)("matDatepicker",e),o(),x("for",e)}}function DT(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",18),l(),s(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",19),l()),t&2&&(o(2),v("",m(3,2,"labels.inputs.Principal Grace Periods")," "),o(5),v("",m(8,4,"labels.inputs.Interest Grace Periods")," "))}function wT(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",20),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Number Of new Repayments")))}function TT(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",21),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.New Interest Rate")))}function PT(t,n){if(t&1&&(s(0,"button",22),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.rescheduleLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Rm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.changeRepaymentDate=new pe(!1),this.introduceGracePeriods=new pe(!1),this.extendRepaymentPeriod=new pe(!1),this.adjustinterestrates=new pe(!1),this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.codes=this.dataObject.rescheduleReasons,this.setRescheduleLoanForm()}setRescheduleLoanForm(){this.rescheduleLoanForm=this.formBuilder.group({rescheduleFromDate:[new Date,Gt.required],rescheduleReasonId:["",Gt.required],submittedOnDate:[new Date,Gt.required],rescheduleReasonComment:[""],adjustedDueDate:[""],graceOnPrincipal:[""],graceOnInterest:[""],extraTerms:[""],newInterestRate:[""]})}submit(){let e=this.rescheduleLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.rescheduleLoanForm.value.rescheduleFromDate,u=this.rescheduleLoanForm.value.adjustedDueDate,d=this.rescheduleLoanForm.value.submittedOnDate;r instanceof Date&&(e.rescheduleFromDate=this.dateUtils.formatDate(r,a)),u instanceof Date&&(e.adjustedDueDate=this.dateUtils.formatDate(u,a)),d instanceof Date&&(e.submittedOnDate=this.dateUtils.formatDate(d,a));let g=ve(ie({},e),{dateFormat:a,locale:i});g.loanId=this.loanId,this.loanService.submitRescheduleData(g).subscribe(_=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-reschedule"]],inputs:{dataObject:"dataObject"},decls:57,vars:48,consts:[["rescheduleDatePicker",""],["submittedDatePicker",""],["installmentrescheduledDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rescheduleFromDate",3,"min","matDatepicker"],["matSuffix","",3,"for"],["formControlName","rescheduleReasonId"],[3,"value"],["matInput","","required","","formControlName","submittedOnDate",3,"min","matDatepicker"],["matInput","","formControlName","rescheduleReasonComment"],[3,"formControl"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","adjustedDueDate",3,"min","matDatepicker"],["matInput","","formControlName","graceOnPrincipal"],["matInput","","formControlName","graceOnInterest"],["matInput","","formControlName","extraTerms"],["matInput","","formControlName","newInterestRate"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",3)(1,"mat-card")(2,"form",4),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",5)(5,"mat-form-field",6),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",7)(10,"mat-datepicker-toggle",8)(11,"mat-datepicker",null,0),M(13,bT,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),s(18,"mat-select",9),ue(19,vT,2,2,"mat-option",10,Ce),l(),M(21,xT,7,9,"mat-error"),l(),s(22,"mat-form-field",6),it("click",function(){mt(r);let d=Lt(29);return dt(d.open())}),s(23,"mat-label"),c(24),p(25,"translate"),l(),T(26,"input",11)(27,"mat-datepicker-toggle",8)(28,"mat-datepicker",null,1),M(30,yT,7,9,"mat-error"),l(),s(31,"mat-form-field")(32,"mat-label"),c(33),p(34,"translate"),l(),T(35,"textarea",12),l(),s(36,"mat-checkbox",13),c(37),p(38,"translate"),l(),M(39,ST,8,6,"mat-form-field"),s(40,"mat-checkbox",13),c(41),p(42,"translate"),l(),M(43,DT,10,6),s(44,"mat-checkbox",13),c(45),p(46,"translate"),l(),M(47,wT,5,3,"mat-form-field"),s(48,"mat-checkbox",13),c(49),p(50,"translate"),l(),M(51,TT,5,3,"mat-form-field"),l(),s(52,"mat-card-actions",14)(53,"button",15),c(54),p(55,"translate"),l(),k(56,PT,3,4,"button",16),l()()()()()}if(i&2){let r=Lt(12),u=Lt(29);o(2),x("formGroup",a.rescheduleLoanForm),o(5),b(m(8,29,"labels.inputs.Reschedule from Installment On")),o(2),x("min",a.minDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.rescheduleLoanForm.controls.rescheduleFromDate.hasError("required")?13:-1),o(3),b(m(17,31,"labels.inputs.Reason for Rescheduling")),o(3),fe(a.codes),o(2),O(a.rescheduleLoanForm.controls.rescheduleReasonId.hasError("required")?21:-1),o(3),b(m(25,33,"labels.inputs.Submitted On")),o(2),x("min",a.minDate)("matDatepicker",u),o(),x("for",u),o(3),O(a.rescheduleLoanForm.controls.submittedOnDate.hasError("required")?30:-1),o(3),b(m(34,35,"labels.inputs.Comments")),o(3),x("formControl",a.changeRepaymentDate),o(),v(" ",m(38,37,"labels.inputs.Change Repayment Date")," "),o(2),O(a.changeRepaymentDate.value?39:-1),o(),x("formControl",a.introduceGracePeriods),o(),v(" ",m(42,39,"labels.inputs.Introduce Mid-term grace periods")," "),o(2),O(a.introduceGracePeriods.value?43:-1),o(),x("formControl",a.extendRepaymentPeriod),o(),v(" ",m(46,41,"labels.inputs.Extend Repayment Period")," "),o(2),O(a.extendRepaymentPeriod.value?47:-1),o(),x("formControl",a.adjustinterestrates),o(),v(" ",m(50,43,"labels.inputs.Adjust interest rates for remainder of loan")," "),o(2),O(a.adjustinterestrates.value?51:-1),o(2),x("routerLink",Ut(47,CT)),o(),v(" ",m(55,45,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","APPROVE_RESCHEDULELOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Wo,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Da,Ae,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var AT=()=>["../../general"];function MT(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function OT(t,n){if(t&1&&(s(0,"mat-option",10),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function IT(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",19),l(),s(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",20),l(),s(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),l(),T(14,"input",21),l(),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",22),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"input",23),l()),t&2&&(o(2),v(" ",m(3,5,"labels.inputs.Account")," #"),o(5),v("",m(8,7,"labels.inputs.Cheque")," #"),o(5),b(m(13,9,"labels.inputs.Routing Code")),o(5),v("",m(18,11,"labels.inputs.Reciept")," #"),o(5),v("",m(23,13,"labels.inputs.Bank")," #"))}function ET(t,n){if(t&1&&(s(0,"button",24),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.recoveryRepaymentLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Bm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.currency=null,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRecoveryRepaymentLoanForm(),this.setRecoveryRepaymentLoanDetails(),this.dataObject.currency&&(this.currency=this.dataObject.currency)}createRecoveryRepaymentLoanForm(){this.recoveryRepaymentLoanForm=this.formBuilder.group({transactionDate:[new Date,Gt.required],transactionAmount:["",Gt.required],externalId:[""],paymentTypeId:[""],note:[""]})}setRecoveryRepaymentLoanDetails(){this.paymentTypes=this.dataObject.paymentTypeOptions,this.recoveryRepaymentLoanForm.patchValue({transactionAmount:this.dataObject.amount,transactionDate:new Date(this.dataObject.date)})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.recoveryRepaymentLoanForm.addControl("accountNumber",new pe("")),this.recoveryRepaymentLoanForm.addControl("checkNumber",new pe("")),this.recoveryRepaymentLoanForm.addControl("routingCode",new pe("")),this.recoveryRepaymentLoanForm.addControl("receiptNumber",new pe("")),this.recoveryRepaymentLoanForm.addControl("bankNumber",new pe(""))):(this.recoveryRepaymentLoanForm.removeControl("accountNumber"),this.recoveryRepaymentLoanForm.removeControl("checkNumber"),this.recoveryRepaymentLoanForm.removeControl("routingCode"),this.recoveryRepaymentLoanForm.removeControl("receiptNumber"),this.recoveryRepaymentLoanForm.removeControl("bankNumber"))}submit(){let e=this.recoveryRepaymentLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.recoveryRepaymentLoanForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.transactionAmount=u.transactionAmount*1,this.loanService.submitLoanActionButton(this.loanId,u,"recoverypayment").subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-recovery-repayment"]],inputs:{dataObject:"dataObject"},decls:45,vars:33,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","formControlName","externalId"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,MT,7,9,"mat-error"),l(),T(14,"mifosx-input-amount",7),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",8),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),s(24,"mat-select",9),ue(25,OT,2,2,"mat-option",10,Ce),l()(),s(27,"div",11)(28,"span",12),it("click",function(){return mt(r),dt(a.addPaymentDetails())}),s(29,"mat-slide-toggle")(30,"div",13)(31,"span",14),c(32),p(33,"translate"),l()()()()(),M(34,IT,25,15),s(35,"mat-form-field")(36,"mat-label"),c(37),p(38,"translate"),l(),T(39,"textarea",15),l()(),s(40,"mat-card-actions",16)(41,"button",17),c(42),p(43,"translate"),l(),k(44,ET,3,4,"button",18),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.recoveryRepaymentLoanForm),o(5),b(m(8,20,"labels.inputs.Transaction Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.recoveryRepaymentLoanForm.controls.transactionDate.hasError("required")?13:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.recoveryRepaymentLoanForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(18,22,"labels.inputs.External Id")),o(5),b(m(23,24,"labels.inputs.Payment Type")),o(3),fe(a.paymentTypes),o(5),x("className",a.showPaymentDetails?"enabled":"disabled"),o(2),b(m(33,26,"labels.inputs.Show Payment Details")),o(2),O(a.showPaymentDetails?34:-1),o(3),b(m(38,28,"labels.inputs.Note")),o(4),x("routerLink",Ut(32,AT)),o(),v(" ",m(43,30,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","REPAYMENT_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Ri,ja,Wn,Pt],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();function LT(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Active")," "))}function NT(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Deleted")," "))}function kT(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",4),c(5),p(6,"formatNumber"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Available Disbursement Amount (with Over Applied)"),":"),o(3),b(m(6,4,e.data.loanData.delinquent.availableDisbursementAmountWithOverApplied))}}var qm=(()=>{class t{constructor(){this.dialogRef=A(Vo),this.data=A(Uo)}ngOnInit(){this.dialogRef.updateSize("400px")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-view-guarantor-details-dialog"]],decls:41,vars:28,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"layout-column"],[1,"layout-row-wrap","responsive-column"],[1,"flex-fill"],[1,"flex-50"],[1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""]],template:function(i,a){i&1&&(s(0,"h1",0),c(1),p(2,"translate"),l(),s(3,"div",1)(4,"div",2)(5,"div",3)(6,"span",4),c(7),p(8,"translate"),l(),s(9,"span",4),c(10),l()(),s(11,"div",3)(12,"span",4),c(13),p(14,"translate"),l(),s(15,"span",4),c(16),l()(),s(17,"div",3)(18,"span",4),c(19),p(20,"translate"),l(),s(21,"span",4),c(22),l()(),s(23,"div",3)(24,"span",4),c(25),p(26,"translate"),l(),s(27,"span",4),c(28),l()(),s(29,"div",3)(30,"span",4),c(31),p(32,"translate"),l(),s(33,"span",4),M(34,LT,3,3,"span"),M(35,NT,3,3,"span"),l()(),M(36,kT,7,6,"div",3),l()(),s(37,"mat-dialog-actions",5)(38,"button",6),c(39),p(40,"translate"),l()()),i&2&&(o(),b(m(2,14,"labels.heading.Guarantor Detail")),o(6),v("",m(8,16,"labels.inputs.First Name"),":"),o(3),b(a.data.guarantorData.firstname),o(3),v("",m(14,18,"labels.inputs.Last Name"),":"),o(3),b(a.data.guarantorData.lastname),o(3),v("",m(20,20,"labels.inputs.Relationship"),":"),o(3),b(a.data.guarantorData.clientRelationshipType.name),o(3),v("",m(26,22,"labels.inputs.Guarantor Type"),":"),o(3),b(a.data.guarantorData.guarantorType.value),o(3),v("",m(32,24,"labels.inputs.Status"),":"),o(3),O(a.data.guarantorData.status?34:-1),o(),O(a.data.guarantorData.status?-1:35),o(),O((a.data.loanData==null||a.data.loanData.delinquent==null?null:a.data.loanData.delinquent.availableDisbursementAmountWithOverApplied)!==void 0?36:-1),o(3),b(m(40,26,"labels.buttons.Cancel")))},dependencies:[wt,Tt,Wt,Ur,Ho,Go,Kl,Pt],encapsulation:2})}}return t})();function FT(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Not Available")))}function RT(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Unassigned")))}function BT(t,n){t&1&&(s(0,"span"),T(1,"fa-icon",5),l())}function qT(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Not Provided")," "))}function jT(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Not Provided")))}function zT(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.name")))}function VT(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),$t(" ",e.firstname," \xA0 ",e.lastname," ")}}function UT(t,n){if(t&1&&(s(0,"td",25),M(1,VT,2,2,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function HT(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Relationship")))}function GT(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),v(" ",e.clientRelationshipType==null?null:e.clientRelationshipType.name," ")}}function WT(t,n){if(t&1&&(s(0,"td",25),M(1,GT,2,1,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function $T(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Guarantor Type")))}function YT(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),v(" ",e.guarantorType.value," ")}}function ZT(t,n){if(t&1&&(s(0,"td",25),M(1,YT,2,1,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function KT(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Deposit Account")))}function JT(t,n){t&1&&T(0,"span")}function XT(t,n){if(t&1&&(s(0,"td",25),M(1,JT,1,0,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function QT(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function tP(t,n){t&1&&T(0,"span")}function eP(t,n){if(t&1&&(s(0,"td",25),M(1,tP,1,0,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function nP(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Remaining Amount")))}function iP(t,n){t&1&&T(0,"span")}function aP(t,n){if(t&1&&(s(0,"td",25),M(1,iP,1,0,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function oP(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Status")))}function rP(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Active")," "))}function lP(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.Deleted")," "))}function sP(t,n){if(t&1&&(s(0,"span"),M(1,rP,3,3,"span"),M(2,lP,3,3,"span"),l()),t&2){let e=P().$implicit;o(),O(e.status?1:-1),o(),O(e.status?-1:2)}}function cP(t,n){if(t&1&&(s(0,"td",25),M(1,sP,3,2,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function pP(t,n){t&1&&(s(0,"th",24),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Action")))}function mP(t,n){if(t&1){let e=xt();s(0,"button",28),it("click",function(){mt(e);let a=P(2).$implicit,r=P(2);return dt(r.viewGuarantorDetails(a))}),T(1,"fa-icon",29),l()}}function dP(t,n){t&1&&(s(0,"button",27),T(1,"fa-icon",30),l())}function uP(t,n){if(t&1){let e=xt();s(0,"button",32),it("click",function(){mt(e);let a=P(3).$implicit,r=P(2);return dt(r.deleteGuarantor(a.id))}),T(1,"fa-icon",33),l()}}function fP(t,n){t&1&&(s(0,"span"),k(1,uP,2,0,"button",31),l()),t&2&&(o(),x("mifosxHasPermission","DELETE_GUARANTOR"))}function hP(t,n){if(t&1&&(s(0,"span"),k(1,mP,2,0,"button",26),M(2,dP,2,0,"button",27),M(3,fP,2,1,"span"),l()),t&2){let e=P().$implicit;o(),x("mifosxHasPermission","READ_SAVINGSACCOUNT"),o(),O(e.status&&e.guarantorType.id===3&&e.id?2:-1),o(),O(e.status?3:-1)}}function gP(t,n){if(t&1&&(s(0,"td",25),M(1,hP,4,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.guarantorFundingDetails?-1:1)}}function _P(t,n){t&1&&T(0,"tr",34)}function CP(t,n){t&1&&T(0,"tr",35)}function bP(t,n){if(t&1){let e=xt();s(0,"div",4)(1,"div",6)(2,"div",7)(3,"div",8)(4,"h3"),c(5),p(6,"translate"),l()()(),s(7,"div",7)(8,"div",9)(9,"button",10),it("click",function(){mt(e);let a=P();return dt(a.toggleGuarantorsDetailsOverview())}),c(10),l()()()(),s(11,"table",11),p(12,"accountsFilter"),X(13,12),k(14,zT,3,3,"th",13)(15,UT,2,1,"td",14),Q(),X(16,15),k(17,HT,3,3,"th",13)(18,WT,2,1,"td",14),Q(),X(19,16),k(20,$T,3,3,"th",13)(21,ZT,2,1,"td",14),Q(),X(22,17),k(23,KT,3,3,"th",13)(24,XT,2,1,"td",14),Q(),X(25,18),k(26,QT,3,3,"th",13)(27,eP,2,1,"td",14),Q(),X(28,19),k(29,nP,3,3,"th",13)(30,aP,2,1,"td",14),Q(),X(31,20),k(32,oP,3,3,"th",13)(33,cP,2,1,"td",14),Q(),X(34,21),k(35,pP,3,3,"th",13)(36,gP,2,1,"td",14),Q(),k(37,_P,1,0,"tr",22)(38,CP,1,0,"tr",23),l()()}if(t&2){let e=P();o(5),b(m(6,5,"labels.heading.Guarantors Details")),o(5),v(" ",e.showDeletedGuarantorsAccounts?"Hide Deleted Guarantors":"Show Deleted Guarantors"," "),o(),x("dataSource",Ef(12,7,e.guarantorDetails,"guarantor",e.showDeletedGuarantorsAccounts)),o(26),x("matHeaderRowDef",e.guarantorsDisplayedColumns),o(),x("matRowDefColumns",e.guarantorsDisplayedColumns)}}var jm=(()=>{class t{constructor(){this.dialog=A(Gn),this.loansService=A(Mt),this.route=A(Et),this.router=A(le),this.showDeletedGuarantorsAccounts=!1,this.guarantorsDisplayedColumns=["fullname","relationship","guarantortype","depositAccount","amount","remainingAmount","status","action"],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.guarantorDetails=this.dataObject.guarantors,this.loansService.getLoanDelinquencyDataForTemplate(this.loanId).subscribe(e=>{e.availableDisbursementAmountWithOverApplied!==void 0&&(this.dataObject.availableDisbursementAmountWithOverApplied=e.availableDisbursementAmountWithOverApplied),e.delinquent&&(this.dataObject.delinquent=e.delinquent)})}toggleGuarantorsDetailsOverview(){this.showDeletedGuarantorsAccounts=!this.showDeletedGuarantorsAccounts}deleteGuarantor(e){this.dialog.open(ra,{data:{deleteContext:`the guarantor id: ${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.loansService.deleteGuarantor(this.loanId,e).subscribe(()=>{this.reload()})})}viewGuarantorDetails(e){this.dialog.open(qm,{data:{guarantorData:e}}).afterClosed().subscribe(()=>{})}reload(){let e=this.dataObject.clientId,i=this.router.url;this.router.navigateByUrl(`/clients/${e}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-view-guarantors"]],inputs:{dataObject:"dataObject"},decls:68,vars:45,consts:[[1,"container","mat-elevation-z8"],[1,"view-guarantors-account-tables","layout-row","gap-2percent"],[1,"flex-49"],[3,"externalId"],[1,"layout-row-wrap","responsive-column","flex-fill"],["icon","times"],[1,"heading-content"],[1,"layout-column","flex-50"],[1,"heading-name"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["mat-table","",1,"flex-fill",3,"dataSource"],["matColumnDef","fullname"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","relationship"],["matColumnDef","guarantortype"],["matColumnDef","depositAccount"],["matColumnDef","amount"],["matColumnDef","remainingAmount"],["matColumnDef","status"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-raised-button","","class","account-action-button","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click"],["icon","eye",1,"m-r-10"],["icon","edit",1,"m-r-10"],["mat-raised-button","","class","account-action-button","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"table")(5,"tbody")(6,"tr")(7,"td"),c(8),p(9,"translate"),l(),s(10,"td"),c(11),M(12,FT,3,3,"span"),l()(),s(13,"tr")(14,"td"),c(15),p(16,"translate"),l(),s(17,"td"),c(18),l()(),s(19,"tr")(20,"td"),c(21),p(22,"translate"),l(),s(23,"td"),c(24),M(25,RT,3,3,"span"),M(26,BT,2,0,"span"),l()(),s(27,"tr")(28,"td"),c(29),p(30,"translate"),l(),s(31,"td"),T(32,"mifosx-external-identifier",3),l()()()()(),s(33,"div",2)(34,"table")(35,"tbody")(36,"tr")(37,"td"),c(38),p(39,"translate"),l(),s(40,"td"),c(41),M(42,qT,3,3,"span"),l()(),s(43,"tr")(44,"td"),c(45),p(46,"translate"),l(),s(47,"td")(48,"span"),c(49),p(50,"formatNumber"),l()()(),s(51,"tr")(52,"td"),c(53),p(54,"translate"),l(),s(55,"td")(56,"span"),c(57),p(58,"formatNumber"),l()()(),s(59,"tr")(60,"td"),c(61),p(62,"translate"),l(),s(63,"td"),c(64),p(65,"formatNumber"),M(66,jT,3,3,"span"),l()()()()()(),M(67,bP,39,11,"div",4),l()()),i&2&&(o(8),b(m(9,23,"labels.inputs.Disbursement Date")),o(3),v(" ",a.dataObject.timeline.actualDisbursementDate," "),o(),O(a.dataObject.timeline.actualDisbursementDate?-1:12),o(3),b(m(16,25,"labels.inputs.Currency")),o(3),b(a.dataObject.currency.name),o(3),b(m(22,27,"labels.inputs.Loan Officer")),o(3),v(" ",a.dataObject.loanOfficerName," "),o(),O(a.dataObject.loanOfficerName?-1:25),o(),O(a.dataObject.loanOfficerName?26:-1),o(3),b(m(30,29,"labels.inputs.External Id")),o(3),x("externalId",ce(a.dataObject.externalId)),o(6),b(m(39,31,"labels.inputs.Loan Purpose")),o(3),v(" ",a.dataObject.loanPurposeName," "),o(),O(a.dataObject.loanPurposeName?-1:42),o(3),b(m(46,33,"labels.inputs.Approved Amount")),o(4),b(m(50,35,a.dataObject.approvedPrincipal)),o(4),b(m(54,37,"labels.inputs.Disburse Amount")),o(4),b(m(58,39,a.dataObject.principal)),o(4),b(m(62,41,"labels.inputs.Arrears By")),o(3),v(" ",m(65,43,a.dataObject.summary==null?null:a.dataObject.summary.totalOverdue)," "),o(2),O((a.dataObject.summary==null?null:a.dataObject.summary.totalOverdue)<0?66:-1),o(),O(a.guarantorDetails?67:-1))},dependencies:[wt,Tt,xe,Wt,Ae,un,Va,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Pt,a1,hn],styles:[".view-guarantors-account-tables[_ngcontent-%COMP%]{padding:1%;margin:1%}.view-guarantors-account-tables[_ngcontent-%COMP%] .table-headers[_ngcontent-%COMP%]{margin:0;padding:6px}.view-guarantors-account-tables[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:3px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.heading-content[_ngcontent-%COMP%]{margin-bottom:1%;margin-top:1%;width:100%}.heading-name[_ngcontent-%COMP%]{display:block}.container[_ngcontent-%COMP%]{max-width:73rem}"]})}}return t})();var vP=()=>["../../general"];function xP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function yP(t,n){if(t&1&&(s(0,"mat-option",13),c(1),l()),t&2){let e=n.$implicit;x("value",e),o(),v(" ",e.displayName," ")}}function SP(t,n){if(t&1&&(s(0,"mat-option",13),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function DP(t,n){if(t&1&&(s(0,"mat-option",13),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),$t(" ",e.productName," - ",e.accountNo," ")}}function wP(t,n){if(t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",15),ue(5,DP,2,3,"mat-option",13,Ce),l()(),s(7,"mat-form-field")(8,"mat-label"),c(9),p(10,"translate"),l(),T(11,"input",16),l()),t&2){let e=P(2);o(2),b(m(3,2,"labels.inputs.Account")),o(3),fe(e.accountOptions),o(4),b(m(10,4,"labels.inputs.Amount"))}}function TP(t,n){if(t&1){let e=xt();s(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",11),M(5,xP,7,9,"mat-error"),l(),s(6,"mat-autocomplete",12,0),it("optionSelected",function(a){mt(e);let r=P();return dt(r.clientSelected(a.option.value))}),ue(8,yP,2,2,"mat-option",13,Ce),l(),s(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),l(),s(14,"mat-select",14),ue(15,SP,2,2,"mat-option",13,Ce),l()(),M(17,wP,12,6)}if(t&2){let e=Lt(7),i=P();o(2),b(m(3,6,"labels.inputs.name")),o(2),x("matAutocomplete",e),o(),O(i.newGuarantorForm.controls.name.hasError("required")?5:-1),o(),x("displayWith",i.displayClient),o(2),fe(i.clientsData),o(4),b(m(13,8,"labels.inputs.Relationship")),o(3),fe(i.relationTypes),o(2),O((i.accountOptions==null?null:i.accountOptions.length)>0?17:-1)}}function PP(t,n){if(t&1&&(s(0,"mat-option",13),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function AP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),s(5,"strong"),c(6),p(7,"translate"),l()()),t&2&&(o(),Xs(" ",m(2,4,"labels.inputs.First Name")," ",m(3,6,"labels.commons.is")," ",m(4,8,"labels.commons.is")," "),o(5),b(m(7,10,"labels.commons.required")))}function MP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),s(5,"strong"),c(6),p(7,"translate"),l()()),t&2&&(o(),Xs(" ",m(2,4,"labels.inputs.Last Name")," ",m(3,6,"labels.commons.is")," ",m(4,8,"labels.commons.is")," "),o(5),b(m(7,10,"labels.commons.required")))}function OP(t,n){if(t&1){let e=xt();s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",14),ue(5,PP,2,2,"mat-option",13,Ce),l()(),s(7,"mat-form-field")(8,"mat-label"),c(9),p(10,"translate"),l(),T(11,"input",17),M(12,AP,8,12,"mat-error"),l(),s(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),l(),T(17,"input",18),M(18,MP,8,12,"mat-error"),l(),s(19,"mat-form-field",19),it("click",function(){mt(e);let a=Lt(26);return dt(a.open())}),s(20,"mat-label"),c(21),p(22,"translate"),l(),T(23,"input",20)(24,"mat-datepicker-toggle",21)(25,"mat-datepicker",null,1),l(),s(27,"mat-form-field")(28,"mat-label"),c(29),p(30,"translate"),l(),T(31,"input",22),l(),s(32,"mat-form-field")(33,"mat-label"),c(34),p(35,"translate"),l(),T(36,"input",23),l(),s(37,"mat-form-field")(38,"mat-label"),c(39),p(40,"translate"),l(),T(41,"input",24),l(),s(42,"mat-form-field")(43,"mat-label"),c(44),p(45,"translate"),l(),T(46,"input",25),l(),s(47,"mat-form-field")(48,"mat-label"),c(49),p(50,"translate"),l(),T(51,"input",26),l(),s(52,"mat-form-field")(53,"mat-label"),c(54),p(55,"translate"),l(),T(56,"input",27),l()}if(t&2){let e=Lt(26),i=P();o(2),b(m(3,16,"labels.inputs.Relationship")),o(3),fe(i.relationTypes),o(4),b(m(10,18,"labels.inputs.First Name")),o(3),O(i.newGuarantorForm.controls.firstname.hasError("required")?12:-1),o(3),b(m(16,20,"labels.inputs.Last Name")),o(3),O(i.newGuarantorForm.controls.lastname.hasError("required")?18:-1),o(3),b(m(22,22,"labels.inputs.Date Of Birth")),o(2),x("min",i.minDate)("max",i.maxDate)("matDatepicker",e),o(),x("for",e),o(5),v("",m(30,24,"labels.inputs.Address Line")," 1"),o(5),v("",m(35,26,"labels.inputs.Address Line")," 2"),o(5),b(m(40,28,"labels.inputs.City")),o(5),b(m(45,30,"labels.inputs.Zip")),o(5),b(m(50,32,"labels.inputs.Mobile")),o(5),v("",m(55,34,"labels.inputs.Residence Phone")," #")}}function IP(t,n){if(t&1&&(s(0,"button",28),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.newGuarantorForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function EP(t,n){if(t&1&&(s(0,"div",9)(1,"div",29)(2,"div",30),c(3),p(4,"translate"),l()(),s(5,"div",31)(6,"div",32),c(7),p(8,"translate"),l(),s(9,"div",32),c(10),l()(),s(11,"div",31)(12,"div",32),c(13),p(14,"translate"),l(),s(15,"div",32),c(16),l()(),s(17,"div",31)(18,"div",32),c(19),p(20,"translate"),l(),s(21,"div",32),c(22),l()()()),t&2){let e=P();o(3),b(m(4,7,"labels.inputs.Client Details")),o(4),b(m(8,9,"labels.inputs.name")),o(3),b(e.newGuarantorForm.controls.name.value.displayName),o(3),b(m(14,11,"labels.inputs.Id")),o(3),b(e.newGuarantorForm.controls.name.value.id),o(3),b(m(20,13,"labels.inputs.Office")),o(3),b(e.newGuarantorForm.controls.name.value.officeName)}}var zm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.clientsService=A(ns),this.settingsService=A(oe),this.showClientDetailsForm=!1,this.minDate=new Date(1900,0,1),this.maxDate=new Date,this.clientsData=[],this.accountOptions=[],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createNewGuarantorForm(),this.setNewGuarantorDetailsForm(),this.buildDependencies()}createNewGuarantorForm(){this.newGuarantorForm=this.formBuilder.group({existingClient:[""],name:["",Gt.required],clientRelationshipTypeId:[""],savingsId:[""],amount:[""]})}setNewGuarantorDetailsForm(){this.relationTypes=this.dataObject.allowedClientRelationshipTypes,this.newGuarantorForm.patchValue({existingClient:!0})}buildDependencies(){this.newGuarantorForm.get("existingClient").valueChanges.subscribe(()=>{this.showClientDetailsForm=!this.showClientDetailsForm,this.showClientDetailsForm?(this.newGuarantorForm.addControl("firstname",new pe("")),this.newGuarantorForm.addControl("lastname",new pe("")),this.newGuarantorForm.addControl("dob",new pe("")),this.newGuarantorForm.addControl("addressLine1",new pe("")),this.newGuarantorForm.addControl("addressLine2",new pe("")),this.newGuarantorForm.addControl("city",new pe("")),this.newGuarantorForm.addControl("zip",new pe("")),this.newGuarantorForm.addControl("mobileNumber",new pe("")),this.newGuarantorForm.addControl("housePhoneNumber",new pe("")),this.newGuarantorForm.removeControl("name"),this.newGuarantorForm.removeControl("savingsId"),this.newGuarantorForm.removeControl("amount")):(this.newGuarantorForm.addControl("name",new pe("")),this.newGuarantorForm.addControl("savingsId",new pe("")),this.newGuarantorForm.addControl("amount",new pe("")),this.newGuarantorForm.removeControl("firstname"),this.newGuarantorForm.removeControl("lastname"),this.newGuarantorForm.removeControl("dob"),this.newGuarantorForm.removeControl("addressLine1"),this.newGuarantorForm.removeControl("addressLine2"),this.newGuarantorForm.removeControl("city"),this.newGuarantorForm.removeControl("zip"),this.newGuarantorForm.removeControl("mobileNumber"),this.newGuarantorForm.removeControl("housePhoneNumber"))})}ngAfterViewInit(){this.newGuarantorForm.value.existingClient&&this.newGuarantorForm.get("name").valueChanges.subscribe(e=>{e.length>=2&&this.clientsService.getFilteredClients("displayName","ASC",!0,e).subscribe(i=>{this.clientsData=i.pageItems})})}clientSelected(e){this.accountOptions=[],this.loanService.guarantorAccountResource(this.loanId,e.id).subscribe(i=>{this.accountOptions=i.accountLinkingOptions})}displayClient(e){return e?e.displayName:void 0}submit(){let e=this.newGuarantorForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.newGuarantorForm.value.dob,u=this.newGuarantorForm.value.existingClient?this.dataObject.guarantorTypeOptions[0].id:this.dataObject.guarantorTypeOptions[2].id,d=ve(ie({},e),{locale:i,dateFormat:a,guarantorTypeId:u});this.newGuarantorForm.value.existingClient?d.entityId=this.newGuarantorForm.controls.name.value.id:e.dob instanceof Date&&(d.dob=this.dateUtils.formatDate(r,a)),delete d.existingClient,delete d.name,this.loanService.createNewGuarantor(this.loanId,d).subscribe(g=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-create-guarantor"]],inputs:{dataObject:"dataObject"},decls:16,vars:13,consts:[["clientsAutocomplete","matAutocomplete"],["dobDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["labelPosition","before","formControlName","existingClient"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[1,"mat-table"],[1,"flex-30"],["matInput","","formControlName","name",3,"matAutocomplete"],["autoActiveFirstOption","",3,"optionSelected","displayWith"],[3,"value"],["formControlName","clientRelationshipTypeId"],["formControlName","savingsId"],["type","number","matInput","","required","","formControlName","amount"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[3,"click"],["matInput","","formControlName","dob",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","addressLine1"],["matInput","","formControlName","addressLine2"],["matInput","","formControlName","city"],["matInput","","formControlName","zip"],["type","number","matInput","","formControlName","mobileNumber"],["type","number","matInput","","formControlName","housePhoneNumber"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell"]],template:function(i,a){i&1&&(s(0,"div",2)(1,"mat-card")(2,"form",3),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",4)(5,"mat-checkbox",5),c(6),p(7,"translate"),l(),M(8,TP,18,10),M(9,OP,57,36),l(),s(10,"mat-card-actions",6)(11,"button",7),c(12),p(13,"translate"),l(),k(14,IP,3,4,"button",8),l()()(),M(15,EP,23,15,"div",9),l()()),i&2&&(o(2),x("formGroup",a.newGuarantorForm),o(4),v(" ",m(7,8,"labels.inputs.Existing Client")," "),o(2),O(a.showClientDetailsForm?-1:8),o(),O(a.showClientDetailsForm?9:-1),o(2),x("routerLink",Ut(12,vP)),o(),v(" ",m(13,10,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","CREATE_GUARANTOR"),o(),O(!(a.newGuarantorForm==null||a.newGuarantorForm.controls==null||a.newGuarantorForm.controls.name==null)&&a.newGuarantorForm.controls.name.value?15:-1))},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Da,Ae,Xf,Jf,Pt],styles:[".container[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%]{display:block;font-family:Tahoma,Verdana,sans-serif;width:100%}.container[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;min-height:48px;padding:0 24px}.container[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{padding-left:0;margin-bottom:0}"]})}}return t})();var LP=()=>["../../general"];function NP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Disbursement Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function kP(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",13),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Fixed EMI amount")))}function FP(t,n){if(t&1&&(s(0,"button",14),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.disbursementForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Vm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.loanService=A(Mt),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setDisbursementToSavingsForm(),this.dataObject.currency&&(this.currency=this.dataObject.currency);let e=this.route.snapshot.params.loanId;this.loanService.getLoanDelinquencyDataForTemplate(e).subscribe(i=>{i.availableDisbursementAmountWithOverApplied!==void 0&&(this.dataObject.availableDisbursementAmountWithOverApplied=i.availableDisbursementAmountWithOverApplied),i.delinquent&&(this.dataObject.delinquent=i.delinquent)})}setDisbursementToSavingsForm(){this.disbursementForm=this.formBuilder.group({actualDisbursementDate:[new Date,Gt.required],transactionAmount:[this.dataObject.amount,Gt.required],note:[""]}),this.dataObject.fixedEmiAmount&&this.disbursementForm.addControl("fixedEmiAmount",new pe(this.dataObject.fixedEmiAmount,[Gt.required]))}submit(){let e=this.disbursementForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.disbursementForm.value.actualDisbursementDate;e.actualDisbursementDate instanceof Date&&(e.actualDisbursementDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i}),d=this.route.snapshot.params.loanId;u.transactionAmount=u.transactionAmount*1,this.loanService.loanActionButtons(d,"disbursetosavings",u).subscribe(g=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-disburse-to-savings-account"]],inputs:{dataObject:"dataObject"},decls:32,vars:29,consts:[["disbursementDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","actualDisbursementDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","readonly","",3,"value"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","type","number","formControlName","fixedEmiAmount"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,NP,7,9,"mat-error"),l(),T(14,"mifosx-input-amount",7),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",8),p(20,"formatNumber"),l(),M(21,kP,5,3,"mat-form-field"),s(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),l(),T(26,"textarea",9),l()(),s(27,"mat-card-actions",10)(28,"button",11),c(29),p(30,"translate"),l(),k(31,FP,3,4,"button",12),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.disbursementForm),o(5),b(m(8,18,"labels.inputs.Disbursement On")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.disbursementForm.controls.actualDisbursementDate.hasError("required")?13:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.disbursementForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(18,20,"labels.inputs.Available Disbursement Amount (with Over Applied)")),o(2),x("value",m(20,22,a.dataObject.availableDisbursementAmountWithOverApplied)),o(2),O(a.dataObject.fixedEmiAmount?21:-1),o(3),b(m(25,24,"labels.inputs.Note")),o(4),x("routerLink",Ut(28,LP)),o(),v(" ",m(30,26,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","DISBURSETOSAVINGS_LOAN")}},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Ri,Wn,Pt,hn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var RP=()=>["../../general"];function BP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Rejected Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function qP(t,n){if(t&1&&(s(0,"button",11),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.rejectLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Um=(()=>{class t{constructor(){this.formBuilder=A(Te),this.router=A(le),this.route=A(Et),this.loanService=A(Mt),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setRejectLoanForm()}setRejectLoanForm(){this.rejectLoanForm=this.formBuilder.group({rejectedOnDate:[new Date,Gt.required],note:[""]})}submit(){let e=this.rejectLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.rejectLoanForm.value.rejectedOnDate;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.loanActionButtons(this.loanId,"reject",u).subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-reject-loan"]],decls:24,vars:18,consts:[["rejectedDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,BP,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"textarea",7),l()(),s(19,"mat-card-actions",8)(20,"button",9),c(21),p(22,"translate"),l(),k(23,qP,3,4,"button",10),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.rejectLoanForm),o(5),b(m(8,11,"labels.inputs.Rejected On")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.rejectLoanForm.controls.rejectedOnDate.hasError("required")?13:-1),o(3),b(m(17,13,"labels.inputs.Note")),o(4),x("routerLink",Ut(17,RP)),o(),v(" ",m(22,15,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","REJECT_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var jP=()=>["../../general"];function zP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),s(3,"strong"),c(4),p(5,"translate"),l()()),t&2&&(o(),v(" ",m(2,2,"labels.inputs.Disbursed On Date")),o(3),b(m(5,4,"labels.commons.required")))}function VP(t,n){if(t&1&&(s(0,"mat-option",11),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function UP(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",20),l(),s(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",21),l(),s(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),l(),T(14,"input",22),l(),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",23),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"input",24),l()),t&2&&(o(2),v("",m(3,5,"labels.inputs.Account")," #"),o(5),v("",m(8,7,"labels.inputs.Cheque")," #"),o(5),b(m(13,9,"labels.inputs.Routing Code")),o(5),v("",m(18,11,"labels.inputs.Reciept")," #"),o(5),v("",m(23,13,"labels.inputs.Bank")," #"))}function HP(t,n){if(t&1&&(s(0,"button",25),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.disbursementLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Hm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createDisbursementLoanForm(),this.setDisbursementLoanDetails(),this.dataObject.currency&&(this.currency=this.dataObject.currency),this.loanService.getLoanDelinquencyDataForTemplate(this.loanId).subscribe(e=>{e.availableDisbursementAmountWithOverApplied!==void 0&&(this.dataObject.availableDisbursementAmountWithOverApplied=e.availableDisbursementAmountWithOverApplied),e.delinquent&&(this.dataObject.delinquent=e.delinquent)})}createDisbursementLoanForm(){this.disbursementLoanForm=this.formBuilder.group({actualDisbursementDate:[this.settingsService.businessDate,Gt.required],transactionAmount:["",Gt.required],externalId:"",paymentTypeId:"",note:""})}setDisbursementLoanDetails(){this.paymentTypes=this.dataObject.paymentTypeOptions,this.disbursementLoanForm.patchValue({transactionAmount:this.dataObject.amount})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.disbursementLoanForm.addControl("accountNumber",new pe("")),this.disbursementLoanForm.addControl("checkNumber",new pe("")),this.disbursementLoanForm.addControl("routingCode",new pe("")),this.disbursementLoanForm.addControl("receiptNumber",new pe("")),this.disbursementLoanForm.addControl("bankNumber",new pe(""))):(this.disbursementLoanForm.removeControl("accountNumber"),this.disbursementLoanForm.removeControl("checkNumber"),this.disbursementLoanForm.removeControl("routingCode"),this.disbursementLoanForm.removeControl("receiptNumber"),this.disbursementLoanForm.removeControl("bankNumber"))}submit(){let e=this.disbursementLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.disbursementLoanForm.value.actualDisbursementDate;e.actualDisbursementDate instanceof Date&&(e.actualDisbursementDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.transactionAmount=u.transactionAmount*1,this.loanService.loanActionButtons(this.loanId,"disburse",u).subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-disburse"]],inputs:{dataObject:"dataObject"},decls:51,vars:39,consts:[["actualDisbursementDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","actualDisbursementDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","readonly","",3,"value"],["matInput","","formControlName","externalId"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,zP,6,6,"mat-error"),l(),T(14,"mifosx-input-amount",7),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",8),p(20,"formatNumber"),l(),s(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),l(),T(25,"input",9),l(),s(26,"mat-form-field")(27,"mat-label"),c(28),p(29,"translate"),l(),s(30,"mat-select",10),ue(31,VP,2,2,"mat-option",11,Ce),l()(),s(33,"div",12)(34,"span",13),it("click",function(){return mt(r),dt(a.addPaymentDetails())}),s(35,"mat-slide-toggle")(36,"div",14)(37,"span",15),c(38),p(39,"translate"),l()()()()(),M(40,UP,25,15),s(41,"mat-form-field")(42,"mat-label"),c(43),p(44,"translate"),l(),T(45,"textarea",16),l()(),s(46,"mat-card-actions",17)(47,"button",18),c(48),p(49,"translate"),l(),k(50,HP,3,4,"button",19),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.disbursementLoanForm),o(5),b(m(8,22,"labels.inputs.Disbursed On")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.disbursementLoanForm.controls.actualDisbursementDate.hasError("required")?13:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.disbursementLoanForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(18,24,"labels.inputs.Available Disbursement Amount (with Over Applied)")),o(2),x("value",m(20,26,a.dataObject.availableDisbursementAmountWithOverApplied)),o(4),b(m(24,28,"labels.inputs.External Id")),o(5),b(m(29,30,"labels.inputs.Payment Type")),o(3),fe(a.paymentTypes),o(5),x("className",a.showPaymentDetails?"enabled":"disabled"),o(2),b(m(39,32,"labels.inputs.Show Payment Details")),o(2),O(a.showPaymentDetails?40:-1),o(3),b(m(44,34,"labels.inputs.Note")),o(4),x("routerLink",Ut(38,jP)),o(),v(" ",m(49,36,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","DISBURSE_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Ri,ja,Wn,Pt,hn],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var GP=()=>["../../../general"];function WP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Withdrawn On Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function $P(t,n){if(t&1&&(s(0,"button",11),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.withdrawnByClientLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Gm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawnByClientLoanForm()}createWithdrawnByClientLoanForm(){this.withdrawnByClientLoanForm=this.formBuilder.group({withdrawnOnDate:[new Date,Gt.required],note:""})}submit(){let e=this.withdrawnByClientLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.withdrawnByClientLoanForm.value.withdrawnOnDate;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.loanActionButtons(this.loanId,"withdrawnByApplicant",u).subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-withdrawn-by-client"]],inputs:{dataObject:"dataObject"},decls:24,vars:18,consts:[["withdrawnOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,WP,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"textarea",7),l()(),s(19,"mat-card-actions",8)(20,"button",9),c(21),p(22,"translate"),l(),k(23,$P,3,4,"button",10),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.withdrawnByClientLoanForm),o(5),b(m(8,11,"labels.inputs.Withdrawn On")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.withdrawnByClientLoanForm.controls.withdrawnOnDate.hasError("required")?13:-1),o(3),b(m(17,13,"labels.inputs.Note")),o(4),x("routerLink",Ut(17,GP)),o(),v(" ",m(22,15,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","WITHDRAW_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var YP=()=>["../../loan-collateral"];function ZP(t,n){if(t&1&&(s(0,"mat-option",4),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name)}}function KP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Collateral Type")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function JP(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Value")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function XP(t,n){if(t&1&&(s(0,"button",10),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.collateralForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Wm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.router=A(le),this.route=A(Et),this.loanService=A(Mt)}ngOnInit(){this.createAddCollateralForm()}createAddCollateralForm(){this.collateralForm=this.formBuilder.group({collateralTypeId:["",Gt.required],value:["",Gt.required],description:[""]})}submit(){let e=this.collateralForm.value.collateralTypeId;this.collateralForm.patchValue({collateralTypeId:e});let i=this.route.snapshot.params.loanId,a=this.collateralForm.value;a.locale="en",this.loanService.createLoanCollateral(i,a).subscribe(r=>{this.router.navigate(["../../loan-collateral"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-add-collateral"]],inputs:{dataObject:"dataObject"},decls:29,vars:18,consts:[[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","collateralTypeId"],[3,"value"],["matInput","","required","","formControlName","value"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"form",1),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"mat-select",3),ue(10,ZP,2,2,"mat-option",4,Ce),l(),M(12,KP,7,9,"mat-error"),l(),s(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),l(),T(17,"input",5),M(18,JP,7,9,"mat-error"),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),T(23,"textarea",6),l()(),s(24,"mat-card-actions",7)(25,"button",8),c(26),p(27,"translate"),l(),k(28,XP,3,4,"button",9),l()()()()()),i&2&&(o(2),x("formGroup",a.collateralForm),o(5),b(m(8,9,"labels.inputs.Collateral Type")),o(3),fe(a.dataObject.allowedCollateralTypes),o(2),O(a.collateralForm.controls.collateralTypeId.hasError("required")?12:-1),o(3),b(m(16,11,"labels.inputs.Value")),o(3),O(a.collateralForm.controls.value.hasError("required")?18:-1),o(3),b(m(22,13,"labels.inputs.Description")),o(4),x("routerLink",Ut(17,YP)),o(),v(" ",m(27,15,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","CREATE_COLLATERAL"))},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Pe,In,On,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var QP=()=>["../../general"];function tA(t,n){if(t&1){let e=xt();s(0,"button",7),it("click",function(){mt(e);let a=P();return dt(a.submit())}),c(1),p(2,"translate"),l()}t&2&&(o(),v(" ",m(2,1,"labels.buttons.Submit")," "))}var $m=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loansService=A(Mt),this.router=A(le),this.route=A(Et),this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.note=this.formBuilder.control("",Gt.required)}submit(){let e="undodisbursal";this.actionName==="Undo Last Disbursal"&&(e="undolastdisbursal"),this.loansService.loanActionButtons(this.loanId,e,{note:this.note.value}).subscribe(i=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-undo-disbursal"]],inputs:{actionName:"actionName"},decls:14,vars:10,consts:[[1,"container","mat-elevation-z8"],[1,"layout-column"],[1,"flex-fill"],["matInput","","required","","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"formControl"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"mat-card-content")(3,"div",1)(4,"mat-form-field",2)(5,"mat-label"),c(6),p(7,"translate"),l(),T(8,"textarea",3),l()(),s(9,"mat-card-actions",4)(10,"button",5),c(11),p(12,"translate"),l(),k(13,tA,3,3,"button",6),l()()()()),i&2&&(o(6),b(m(7,5,"labels.inputs.Note")),o(2),x("formControl",a.note),o(2),x("routerLink",Ut(9,QP)),o(),v(" ",m(12,7,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","DISBURSALUNDO_LOAN"))},dependencies:[wt,Tt,we,he,je,Wo,ae,xe,Oe,ze,_e,ge,Pe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var eA=["screenReport"],nA=()=>["../../general"];function iA(t,n){if(t&1&&(s(0,"mat-option",6),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function aA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Screen Report")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}var Ym=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loansService=A(Mt),this.route=A(Et),this.sanitizer=A(Zl),this.renderer=A(Of),this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.templatesData=this.dataObject,this.createLoanScreenReportForm()}createLoanScreenReportForm(){this.loanScreenReportForm=this.formBuilder.group({templateId:[""]})}print(){let e=window.open("","Screen Report","height=400,width=600");e.document.write(""),e.document.write(""),e.document.write(this.template),e.document.write(""),e.print(),e.close()}generate(){let e=this.loanScreenReportForm.get("templateId").value;this.loansService.getTemplateData(e,this.loanId).subscribe(i=>{this.template=this.sanitizer.sanitize(Mf.HTML,i),this.renderer.setProperty(this.screenReportRef.nativeElement,"innerHTML",this.template)})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-screen-reports"]],viewQuery:function(i,a){if(i&1&&mi(eA,7),i&2){let r;di(r=ui())&&(a.screenReportRef=r.first)}},inputs:{dataObject:"dataObject"},decls:34,vars:21,consts:[["output",""],["screenReport",""],[1,"container","m-b-20"],[3,"ngSubmit","formGroup"],[1,"flex-fill"],["formControlName","templateId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs","size","sm",1,"m-r-10"],[1,"container"],[1,"layout-column","gap-3percent"],[1,"layout-align-end"],["mat-stroked-button","","color","primary",3,"click","disabled"],["icon","file",1,"m-r-10"],[1,"screen-report"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",2)(1,"mat-card")(2,"form",3),it("ngSubmit",function(){return mt(r),dt(a.generate())}),s(3,"mat-card-content")(4,"div")(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"mat-select",5),ue(10,iA,2,2,"mat-option",6,Ce),l(),M(12,aA,7,9,"mat-error"),l()(),s(13,"mat-card-actions",7)(14,"button",8),c(15),p(16,"translate"),l(),s(17,"button",9),T(18,"fa-icon",10),c(19),p(20,"translate"),l()()()()()(),s(21,"div",11,0)(23,"mat-card",12)(24,"div",13)(25,"button",14),it("click",function(){return mt(r),dt(a.print())}),T(26,"fa-icon",15),c(27),p(28,"translate"),l()(),s(29,"div",16,1)(31,"p"),c(32),p(33,"translate"),l()()()()}i&2&&(o(2),x("formGroup",a.loanScreenReportForm),o(5),b(m(8,10,"labels.inputs.Loan Screen Reports")),o(3),fe(a.templatesData),o(2),O(a.loanScreenReportForm.controls.templateId.hasError("required")?12:-1),o(2),x("routerLink",Ut(20,nA)),o(),v(" ",m(16,12,"labels.buttons.Cancel")," "),o(2),x("disabled",!a.loanScreenReportForm.valid),o(2),v("",m(20,14,"labels.buttons.Generate Report")," "),o(6),x("disabled",!a.template),o(2),v(" ",m(28,16,"labels.buttons.Print")," "),o(5),b(m(33,18,"labels.text.Please select a screen report.")))},dependencies:[wt,Tt,Re,he,Ee,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,In,On,Wt,un,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .print[_ngcontent-%COMP%]{align-self:flex-end}.container[_ngcontent-%COMP%] .screen-report[_ngcontent-%COMP%]{text-align:center}"]})}}return t})();var oA=()=>["../../general"];function rA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Approved Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function lA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Amount")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function sA(t,n){if(t&1&&(s(0,"button",16),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.approveLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Zm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.dateUtils=A(de),this.loanService=A(Mt),this.router=A(le),this.settingsService=A(oe),this.loanData=new Object,this.minDate=new Date(2e3,0,1),this.route.data.subscribe(e=>{this.loanData=e.actionButtonData,this.currency=e.actionButtonData.currency}),this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.setApproveLoanForm(),this.loanService.getApproveAssociationsDetails(this.loanId).subscribe(e=>{this.associationData=e,this.approveLoanForm.patchValue({expectedDisbursementDate:new Date(e.timeline.expectedDisbursementDate)})}),this.loanService.getLoanDelinquencyDataForTemplate(this.loanId).subscribe(e=>{e.availableDisbursementAmountWithOverApplied!==void 0&&(this.loanData.availableDisbursementAmountWithOverApplied=e.availableDisbursementAmountWithOverApplied),e.delinquent&&(this.loanData.delinquent=e.delinquent)})}setApproveLoanForm(){this.approveLoanForm=this.formBuilder.group({approvedOnDate:[this.settingsService.businessDate,Gt.required],expectedDisbursementDate:[""],approvedLoanAmount:[this.loanData.approvalAmount,Gt.required],note:[""]})}submit(){let e=this.approveLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.approveLoanForm.value.approvedOnDate,u=this.approveLoanForm.value.expectedDisbursementDate;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(r,a)),e.expectedDisbursementDate instanceof Date&&(e.expectedDisbursementDate=this.dateUtils.formatDate(u,a));let d=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.loanActionButtons(this.loanId,"approve",d).subscribe(g=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-approve-loan"]],decls:45,vars:37,consts:[["approvedDatePicker",""],["disbursementDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","expectedDisbursementDate",3,"min","matDatepicker"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","readonly","",3,"value"],["matInput","","type","number","required","","formControlName","approvedLoanAmount"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",2)(1,"mat-card")(2,"form",3),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",6)(10,"mat-datepicker-toggle",7)(11,"mat-datepicker",null,0),M(13,rA,7,9,"mat-error"),l(),s(14,"mat-form-field",5),it("click",function(){mt(r);let d=Lt(21);return dt(d.open())}),s(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"input",8)(19,"mat-datepicker-toggle",7)(20,"mat-datepicker",null,1),l(),T(22,"mifosx-input-amount",9),s(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),l(),T(27,"input",10),p(28,"formatNumber"),l(),s(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),l(),T(33,"input",11),M(34,lA,7,9,"mat-error"),l(),s(35,"mat-form-field")(36,"mat-label"),c(37),p(38,"translate"),l(),T(39,"textarea",12),l()(),s(40,"mat-card-actions",13)(41,"button",14),c(42),p(43,"translate"),l(),k(44,sA,3,4,"button",15),l()()()()()}if(i&2){let r=Lt(12),u=Lt(21);o(2),x("formGroup",a.approveLoanForm),o(5),b(m(8,22,"labels.inputs.Approved On")),o(2),x("min",a.minDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.approveLoanForm.controls.approvedOnDate.hasError("required")?13:-1),o(3),b(m(17,24,"labels.inputs.Expected disbursement on")),o(2),x("min",a.minDate)("matDatepicker",u),o(),x("for",u),o(3),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.approveLoanForm.controls.approvedLoanAmount)("inputLabel","Approved Amount"),o(3),b(m(26,26,"labels.inputs.Available Disbursement Amount (with Over Applied)")),o(2),x("value",m(28,28,a.loanData.availableDisbursementAmountWithOverApplied)),o(4),b(m(32,30,"labels.inputs.Transaction Amount")),o(3),O(a.approveLoanForm.controls.approvedLoanAmount.hasError("required")?34:-1),o(3),b(m(38,32,"labels.inputs.Note")),o(4),x("routerLink",Ut(36,oA)),o(),v(" ",m(43,34,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","APPROVE_LOAN")}},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Ri,Wn,Pt,hn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var cA=()=>["../../general"];function pA(t,n){if(t&1&&(s(0,"mat-option",5),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name+" ("+(e==null?null:e.currency.name)+")"," ")}}function mA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Charge")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function dA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function uA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Due Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function fA(t,n){if(t&1){let e=xt();s(0,"mat-form-field",12),it("click",function(){mt(e);let a=Lt(7);return dt(a.open())}),s(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",13)(5,"mat-datepicker-toggle",14)(6,"mat-datepicker",null,0),M(8,uA,7,9,"mat-error"),l()}if(t&2){let e=Lt(7),i=P();o(2),b(m(3,6,"labels.inputs.Due On")),o(2),x("min",i.minDate)("max",i.maxDate)("matDatepicker",e),o(),x("for",e),o(3),O(i.loanChargeForm.controls.dueDate.hasError("required")?8:-1)}}function hA(t,n){if(t&1&&(s(0,"button",15),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.loanChargeForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Km=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.loansService=A(Mt),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.loanChargeOptions=e.actionButtonData.chargeOptions}),this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createLoanChargeForm(),this.loanChargeForm.controls.chargeId.valueChanges.subscribe(e=>{let i=this.loanChargeOptions.find(a=>a.id===e);i.chargeTimeType.id===2?this.loanChargeForm.addControl("dueDate",new pe("",Gt.required)):this.loanChargeForm.removeControl("dueDate"),this.loanChargeForm.patchValue({amount:i.amount,chargeCalculation:i.chargeCalculationType.value,chargeTime:i.chargeTimeType.value})})}createLoanChargeForm(){this.loanChargeForm=this.formBuilder.group({chargeId:["",Gt.required],amount:["",Gt.required],chargeCalculation:[{value:"",disabled:!0}],chargeTime:[{value:"",disabled:!0}]})}submit(){let e=this.loanChargeForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.loanChargeForm.value.dueDate;e.dueDate instanceof Date&&(e.dueDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.loansService.createLoanCharge(this.loanId,"charges",u).subscribe(d=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-add-loan-charge"]],decls:35,vars:22,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],["type","number","required","","matInput","","formControlName","amount"],["matInput","","formControlName","chargeCalculation"],["matInput","","formControlName","chargeTime"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){i&1&&(s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"mat-select",4),ue(10,pA,2,2,"mat-option",5,Ce),l(),M(12,mA,7,9,"mat-error"),l(),s(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),l(),T(17,"input",6),M(18,dA,7,9,"mat-error"),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),T(23,"input",7),l(),s(24,"mat-form-field")(25,"mat-label"),c(26),p(27,"translate"),l(),T(28,"input",8),l(),M(29,fA,9,8,"mat-form-field"),l(),s(30,"mat-card-actions",9)(31,"button",10),c(32),p(33,"translate"),l(),k(34,hA,3,4,"button",11),l()()()()()),i&2&&(o(2),x("formGroup",a.loanChargeForm),o(5),b(m(8,11,"labels.inputs.Charge")),o(3),fe(a.loanChargeOptions),o(2),O(a.loanChargeForm.controls.chargeId.hasError("required")?12:-1),o(3),b(m(16,13,"labels.inputs.Amount")),o(3),O(a.loanChargeForm.controls.amount.hasError("required")?18:-1),o(3),b(m(22,15,"labels.inputs.Charge Calculation")),o(5),b(m(27,17,"labels.inputs.Charge Time")),o(3),O(a.loanChargeForm.controls.dueDate?29:-1),o(2),x("routerLink",Ut(21,cA)),o(),v(" ",m(33,19,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","CREATE_LOANCHARGE"))},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var gA=()=>["../../general"];function _A(t,n){if(t&1&&T(0,"mifosx-repayment-schedule-tab",2),t&2){let e=P();x("repaymentScheduleDetails",e.repaymentScheduleDetails)("forEditing",!0)}}var Jm=(()=>{class t{constructor(){this.loansService=A(Mt),this.router=A(le),this.route=A(Et),this.dialog=A(Gn),this.dateUtils=A(de),this.translateService=A(pa),this.settingsService=A(oe),this.wasChanged=!1,this.wasValidated=!1,this.repaymentScheduleDetails=null,this.repaymentScheduleChanges={},this.loanId=this.route.snapshot.params.loanId,this.getRepaymentSchedule()}ngOnInit(){this.repaymentScheduleChanges={}}getRepaymentSchedule(){this.loansService.getLoanAccountResource(this.loanId,"repaymentSchedule").subscribe({next:e=>{this.repaymentScheduleDetails=e.repaymentSchedule},error:e=>{console.error("Failed to load repayment schedule:",e)}})}applyPattern(){if(!this.repaymentScheduleDetails)return;let e=[];this.repaymentScheduleDetails.periods.forEach(u=>{u.period&&e.push({idx:u.period,dueDate:this.dateUtils.formatDate(u.dueDate,this.settingsService.dateFormat)})});let a={title:"Pattern Update",formfields:[new ic({controlName:"fromPeriod",label:"From Date",value:"",options:{label:"dueDate",value:"idx",data:e},required:!0}),new ic({controlName:"toPeriod",label:"To Date",value:"",options:{label:"dueDate",value:"idx",data:e},required:!0}),new Ti({controlName:"amount",label:"Installment Amount",value:"",type:"number",required:!0})]};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data?.value&&this.repaymentScheduleDetails){let d=u.data.value.fromPeriod,g=u.data.value.toPeriod,_=u.data.value.amount,y=[];this.repaymentScheduleDetails.periods.forEach(I=>{let N=this.dateUtils.formatDate(I.dueDate,this.settingsService.dateFormat);I.period&&d<=I.period&&g>=I.period&&I.totalDueForPeriod!==_&&(I.totalDueForPeriod=_,this.repaymentScheduleChanges[N]={dueDate:N,installmentAmount:_},this.wasChanged=!0,I.changed=!0),y.push(I)}),this.repaymentScheduleDetails.periods=y}})}reset(){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Recover Original Schedule"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want recover the Original Schedule")}}).afterClosed().subscribe(i=>{i.confirm&&this.loansService.applyCommandLoanScheduleVariations(this.loanId,"deleteVariations",{}).subscribe({next:()=>{this.getRepaymentSchedule(),this.wasChanged=!1,this.wasValidated=!1},error:a=>{console.error("Failed to delete schedule variations:",a)}})})}validate(){this.repaymentScheduleDetails&&this.loansService.applyCommandLoanScheduleVariations(this.loanId,"calculateLoanSchedule",this.getPayload()).subscribe({next:e=>{this.repaymentScheduleDetails&&(this.repaymentScheduleDetails.periods=[],e.periods.forEach(i=>{i.changed=!0,this.repaymentScheduleDetails.periods.push(i),this.wasValidated=!0}))},error:e=>{console.error("Failed to calculate loan schedule:",e)}})}submit(){this.loansService.applyCommandLoanScheduleVariations(this.loanId,"addVariations",this.getPayload()).subscribe({next:()=>{this.router.navigate(["../../repayment-schedule"],{relativeTo:this.route})},error:e=>{console.error("Failed to add schedule variations:",e)}})}getPayload(){let e=[];Object.keys(this.repaymentScheduleChanges).forEach(r=>{e.push(this.repaymentScheduleChanges[r])});let i=this.settingsService.dateFormat,a=this.settingsService.language.code;return{exceptions:{modifiedinstallments:e},dateFormat:i,locale:a}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-edit-repayment-schedule"]],decls:21,vars:20,consts:[[1,"container","mat-elevation-z8"],[1,"m-b-10","layout-column"],[1,"flex-100",3,"repaymentScheduleDetails","forEditing"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["type","button","mat-raised-button","",3,"click"],["type","button","color","primary","mat-raised-button","",3,"click"],["type","button","color","primary","mat-raised-button","",3,"click","disabled"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"mat-card-content")(3,"div",1),M(4,_A,1,2,"mifosx-repayment-schedule-tab",2),l(),s(5,"mat-card-actions",3)(6,"button",4),c(7),p(8,"translate"),l(),s(9,"button",5),it("click",function(){return a.reset()}),c(10),p(11,"translate"),l(),s(12,"button",6),it("click",function(){return a.applyPattern()}),c(13),p(14,"translate"),l(),s(15,"button",7),it("click",function(){return a.validate()}),c(16),p(17,"translate"),l(),s(18,"button",7),it("click",function(){return a.submit()}),c(19),p(20,"translate"),l()()()()()),i&2&&(o(4),O(a.repaymentScheduleDetails?4:-1),o(2),x("routerLink",Ut(19,gA)),o(),v(" ",m(8,9,"labels.buttons.Cancel")," "),o(3),b(m(11,11,"labels.buttons.Reset")),o(3),v(" ",m(14,13,"labels.buttons.Pattern")," "),o(2),x("disabled",!a.wasChanged),o(),v(" ",m(17,15,"labels.buttons.Validate")," "),o(2),x("disabled",!a.wasValidated),o(),v(" ",m(20,17,"labels.buttons.Submit")," "))},dependencies:[wt,Tt,ae,xe,Oe,ze,Wt,ho,Pt],encapsulation:2})}}return t})();var CA=()=>["../../general"];function bA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function vA(t,n){if(t&1&&(s(0,"mat-option",8),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function xA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Reason for Charge-Off")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function yA(t,n){if(t&1&&(s(0,"button",14),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.chargeoffLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Xm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.chargeOffReasonOptions=[],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.chargeOffReasonOptions=this.dataObject.chargeOffReasonOptions,this.createChargeoffLoanForm()}createChargeoffLoanForm(){this.chargeoffLoanForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,Gt.required],externalId:"",chargeOffReasonId:"",note:""})}submit(){let e=this.chargeoffLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.chargeoffLoanForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.submitLoanActionButton(this.loanId,u,"charge-off").subscribe(g=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-charge-off"]],inputs:{dataObject:"dataObject"},decls:37,vars:25,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","chargeOffReasonId"],[3,"value"],["matInput","","formControlName","externalId"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,bA,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),s(18,"mat-select",7),ue(19,vA,2,2,"mat-option",8,Ce),l(),M(21,xA,7,9,"mat-error"),l(),s(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),l(),T(26,"input",9),l(),s(27,"mat-form-field")(28,"mat-label"),c(29),p(30,"translate"),l(),T(31,"textarea",10),l()(),s(32,"mat-card-actions",11)(33,"button",12),c(34),p(35,"translate"),l(),k(36,yA,3,4,"button",13),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.chargeoffLoanForm),o(5),b(m(8,14,"labels.inputs.Transaction Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.chargeoffLoanForm.controls.transactionDate.hasError("required")?13:-1),o(3),b(m(17,16,"labels.inputs.Reason for Charge-Off")),o(3),fe(a.chargeOffReasonOptions),o(2),O(a.chargeoffLoanForm.controls.chargeOffReasonId.hasError("required")?21:-1),o(3),b(m(25,18,"labels.inputs.External Id")),o(5),b(m(30,20,"labels.inputs.Note")),o(4),x("routerLink",Ut(24,CA)),o(),v(" ",m(35,22,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","CHARGEOFF_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var SA=()=>["../../general"];function DA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Settlement Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function wA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Purchase Price Ratio")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function TA(t,n){if(t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",11),M(5,wA,7,9,"mat-error"),l()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Purchase Price Ratio")),o(3),O(e.saleLoanForm.controls.purchasePriceRatio.hasError("required")?5:-1)}}function PA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Owner External Id")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function AA(t,n){if(t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",12),M(5,PA,7,9,"mat-error"),l()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Owner External Id")),o(3),O(e.saleLoanForm.controls.ownerExternalId.hasError("required")?5:-1)}}function MA(t,n){if(t&1&&(s(0,"button",13),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.saleLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Qm=(()=>{class t{constructor(){this.formBuilder=A(Te),this.externalAssetOwnerService=A(Wr),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.BUYBACK_COMMAND="buyback",this.SALE_COMMAND="sale",this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId;let e=this.route.snapshot.params.action;this.command=e==="Sell Loan"?this.SALE_COMMAND:this.BUYBACK_COMMAND}ngOnInit(){this.minDate=this.settingsService.businessDate,this.maxDate=this.settingsService.maxAllowedDate,this.createSaleLoanForm()}isBuyBack(){return this.command===this.BUYBACK_COMMAND}createSaleLoanForm(){this.saleLoanForm=this.formBuilder.group({settlementDate:[this.settingsService.businessDate,Gt.required],purchasePriceRatio:["",Gt.required],transferExternalId:"",ownerExternalId:["",Gt.required]}),this.isBuyBack()&&(this.saleLoanForm.removeControl("purchasePriceRatio"),this.saleLoanForm.removeControl("ownerExternalId"))}submit(){let e=this.saleLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.saleLoanForm.value.settlementDate;e.settlementDate instanceof Date&&(e.settlementDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});this.externalAssetOwnerService.executeExternalAssetOwnerLoanCommand(this.loanId,u,this.command).subscribe(d=>{this.router.navigate(["../../external-asset-owner"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-asset-transfer-loan"]],decls:26,vars:20,consts:[["settlementDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","settlementDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","transferExternalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["type","number","matInput","","required","","formControlName","purchasePriceRatio"],["matInput","","formControlName","ownerExternalId"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(12);return dt(d.open())}),s(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),M(13,DA,7,9,"mat-error"),l(),M(14,TA,6,4,"mat-form-field"),M(15,AA,6,4,"mat-form-field"),s(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),l(),T(20,"input",7),l()(),s(21,"mat-card-actions",8)(22,"button",9),c(23),p(24,"translate"),l(),k(25,MA,3,4,"button",10),l()()()()()}if(i&2){let r=Lt(12);o(2),x("formGroup",a.saleLoanForm),o(5),b(m(8,13,"labels.inputs.Settlement Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.saleLoanForm.controls.settlementDate.hasError("required")?13:-1),o(),O(a.isBuyBack()?-1:14),o(),O(a.isBuyBack()?-1:15),o(3),b(m(19,15,"labels.inputs.Transfer External Id")),o(4),x("routerLink",Ut(19,SA)),o(),v(" ",m(24,17,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","SALE_LOAN")}},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var gg=(()=>{class t{constructor(){this.dialogRef=A(Vo),this.data=A(Uo);let e=this.data;this.repaymentSchedule=e.repaymentSchedule,this.currencyCode=e.currencyCode}close(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-re-age-preview-dialog"]],decls:9,vars:9,consts:[[1,"m-l-30"],[1,"mat-typography"],[3,"repaymentScheduleDetails","currencyCode","forEditing"],["align","center"],["mat-raised-button","","color","primary","type","button",3,"click"]],template:function(i,a){i&1&&(s(0,"h1",0),c(1),p(2,"translate"),l(),s(3,"mat-dialog-content",1),T(4,"mifosx-repayment-schedule-tab",2),l(),s(5,"mat-dialog-actions",3)(6,"button",4),it("click",function(){return a.close()}),c(7),p(8,"translate"),l()()),i&2&&(o(),b(m(2,5,"labels.heading.Repayment Schedule Preview")),o(3),x("repaymentScheduleDetails",a.repaymentSchedule)("currencyCode",a.currencyCode)("forEditing",!1),o(3),v(" ",m(8,7,"labels.buttons.Back")," "))},dependencies:[wt,Tt,Wt,Ho,Go,ho,Pt],encapsulation:2})}}return t})();var OA=()=>["../../general"];function IA(t,n){if(t&1&&(s(0,"mat-option",8),c(1),l()),t&2){let e=n.$implicit;x("value",e),o(),v(" ",e," ")}}function EA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function LA(t,n){if(t&1&&(s(0,"mat-option",8),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function NA(t,n){if(t&1&&(s(0,"mat-option",8),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function kA(t,n){if(t&1&&T(0,"mifosx-input-amount",19),t&2){let e=P(2);x("currency",e.loanTransactionData.currency)("isRequired",!1)("inputFormControl",e.reagingLoanForm.controls.transactionAmount)("inputLabel","Transaction Amount")("minVal",0)}}function FA(t,n){if(t&1&&(s(0,"button",24),c(1),p(2,"translate"),l()),t&2){let e=P(2);x("disabled",!e.reagingLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function RA(t,n){if(t&1){let e=xt();s(0,"button",25),it("click",function(){mt(e);let a=P(2);return dt(a.preview())}),c(1),p(2,"translate"),l()}if(t&2){let e=P(2);x("disabled",!e.reagingLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Preview")," ")}}function BA(t,n){if(t&1){let e=xt();s(0,"form",3),it("ngSubmit",function(){mt(e);let a=P();return dt(a.submit())}),s(1,"mat-card-content")(2,"div",4)(3,"mat-form-field")(4,"mat-label"),c(5),p(6,"translate"),l(),T(7,"input",5),l(),s(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),l(),T(12,"input",6),l(),s(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),l(),s(17,"mat-select",7),ue(18,IA,2,2,"mat-option",8,Ce),l()(),s(20,"mat-form-field",9),it("click",function(){mt(e);let a=Lt(27);return dt(a.open())}),s(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"input",10)(25,"mat-datepicker-toggle",11)(26,"mat-datepicker",null,0),M(28,EA,7,9,"mat-error"),l(),s(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),l(),s(33,"mat-select",12),ue(34,LA,3,5,"mat-option",8,Ce),l()(),s(36,"mat-form-field")(37,"mat-label"),c(38),p(39,"translate"),l(),s(40,"mat-select",13),ue(41,NA,2,2,"mat-option",8,Ce),l()(),s(43,"mat-form-field")(44,"mat-label"),c(45),p(46,"translate"),l(),T(47,"input",14),l(),s(48,"mat-form-field")(49,"mat-label"),c(50),p(51,"translate"),l(),T(52,"input",15),l(),s(53,"div",16)(54,"span",17),it("click",function(){mt(e);let a=P();return dt(a.displayTransactionAmount())}),s(55,"mat-slide-toggle")(56,"div")(57,"span",18),c(58),p(59,"translate"),l()()()()(),M(60,kA,1,5,"mifosx-input-amount",19),l(),s(61,"mat-card-actions",20)(62,"button",21),c(63),p(64,"translate"),l(),k(65,FA,3,4,"button",22)(66,RA,3,4,"button",23),l()()()}if(t&2){let e=Lt(27),i=P();x("formGroup",i.reagingLoanForm),o(5),b(m(6,20,"labels.inputs.Number of Installments")),o(5),b(m(11,22,"labels.inputs.Frequency Number")),o(5),b(m(16,24,"labels.inputs.Frequency Type")),o(3),fe(i.periodFrequencyOptions),o(4),b(m(23,26,"labels.inputs.Start Date")),o(2),x("min",i.minDate)("max",i.maxDate)("matDatepicker",e),o(),x("for",e),o(3),O(i.reagingLoanForm.controls.startDate.hasError("required")?28:-1),o(3),b(m(32,28,"labels.inputs.Interest Handling")),o(3),fe(i.reAgeInterestHandlingOptions),o(4),b(m(39,30,"labels.inputs.Reason")),o(3),fe(i.reAgeReasonOptions),o(4),b(m(46,32,"labels.inputs.External Id")),o(5),b(m(51,34,"labels.inputs.Note")),o(8),b(m(59,36,"labels.inputs.Transaction Amount")),o(2),O(i.addTransactionAmount?60:-1),o(2),x("routerLink",Ut(40,OA)),o(),v(" ",m(64,38,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","REAGING_LOAN"),o(),x("mifosxHasPermission","REAGING_LOAN")}}var t0=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.router=A(le),this.settingsService=A(oe),this.loanService=A(Mt),this.dateUtils=A(de),this.dialog=A(Gn),this.reAgeReasonOptions=[],this.periodFrequencyOptions=[],this.reAgeInterestHandlingOptions=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanTransactionData=null,this.addTransactionAmount=!1,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.loanTransactionData=this.dataObject,this.maxDate=this.settingsService.maxFutureDate,this.reAgeReasonOptions=this.dataObject.reAgeReasonOptions,this.reAgeInterestHandlingOptions=this.dataObject.reAgeInterestHandlingOptions,this.periodFrequencyOptions=this.dataObject.periodFrequencyOptions,this.createReagingLoanForm()}createReagingLoanForm(){this.reagingLoanForm=this.formBuilder.group({numberOfInstallments:[1,Gt.required],startDate:[this.settingsService.businessDate,Gt.required],frequencyNumber:[1,Gt.required],frequencyType:[,Gt.required],reAgeInterestHandling:[this.reAgeInterestHandlingOptions[0]],transactionAmount:[,[Gt.min(0)]],note:"",externalId:"",reasonCodeValueId:null})}prepareReagingData(){let e=ie({},this.reagingLoanForm.value),i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.reagingLoanForm.value.startDate;return e.startDate instanceof Date&&(e.startDate=this.dateUtils.formatDate(r,a)),e.reAgeInterestHandling&&typeof e.reAgeInterestHandling=="object"&&(e.reAgeInterestHandling=e.reAgeInterestHandling.id),ve(ie({},e),{dateFormat:a,locale:i})}preview(){if(this.reagingLoanForm.invalid)return;let e=this.prepareReagingData();this.loanService.getReAgePreview(this.loanId,e).subscribe({next:i=>{let a=i.currency?.code||this.loanTransactionData.currency.code;if(!a){console.error("Currency code is not available in API response or loan details");return}this.dialog.open(gg,{data:{repaymentSchedule:i,currencyCode:a},width:"95%",maxWidth:"1400px",height:"90vh"})},error:i=>{console.error("Error loading re-age preview:",i)}})}displayTransactionAmount(){this.addTransactionAmount=!this.addTransactionAmount,this.reagingLoanForm.patchValue({transactionAmount:null})}submit(){let e=this.prepareReagingData();e.transactionAmount===null&&delete e.transactionAmount,this.loanService.submitLoanActionButton(this.loanId,e,"reAge").subscribe({next:i=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})},error:i=>{console.error("Error submitting re-age:",i)}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-reaging"]],inputs:{dataObject:"dataObject"},decls:3,vars:1,consts:[["startDatePicker",""],[1,"container","mat-elevation-z8"],[3,"formGroup"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["type","number","matInput","","required","","formControlName","numberOfInstallments"],["type","number","matInput","","required","","formControlName","frequencyNumber"],["formControlName","frequencyType"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","reAgeInterestHandling"],["formControlName","reasonCodeValueId"],["matInput","","formControlName","externalId"],["matInput","","formControlName","note"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-5","m-b-5","flex-75",3,"click"],[1,"m-l-10"],[3,"currency","isRequired","inputFormControl","inputLabel","minVal"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["type","button","mat-raised-button","","color","accent",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],["type","button","mat-raised-button","","color","accent",3,"click","disabled"]],template:function(i,a){i&1&&(s(0,"div",1)(1,"mat-card"),M(2,BA,67,41,"form",2),l()()),i&2&&(o(2),O(a.loanTransactionData!==null?2:-1))},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ae,Ri,ja,Pt,qa],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var _g=(()=>{class t{constructor(){this.dialogRef=A(Vo),this.data=A(Uo),this.repaymentSchedule=this.data.repaymentSchedule,this.currencyCode=this.data.currencyCode}close(){this.dialogRef.close()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-re-amortize-preview-dialog"]],decls:9,vars:9,consts:[["mat-dialog-title",""],[1,"mat-typography"],[3,"repaymentScheduleDetails","currencyCode","forEditing"],["align","end"],["mat-raised-button","","type","button",3,"click"]],template:function(i,a){i&1&&(s(0,"h1",0),c(1),p(2,"translate"),l(),s(3,"mat-dialog-content",1),T(4,"mifosx-repayment-schedule-tab",2),l(),s(5,"mat-dialog-actions",3)(6,"button",4),it("click",function(){return a.close()}),c(7),p(8,"translate"),l()()),i&2&&(o(),b(m(2,5,"labels.heading.Repayment Schedule Preview")),o(3),x("repaymentScheduleDetails",a.repaymentSchedule)("currencyCode",a.currencyCode)("forEditing",!1),o(3),v(" ",m(8,7,"labels.buttons.Go back")," "))},dependencies:[wt,Tt,Wt,Ur,Ho,Go,ho,Pt],encapsulation:2})}}return t})();var qA=()=>["../../general"];function jA(t,n){if(t&1&&(s(0,"mat-option",4),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function zA(t,n){if(t&1&&(s(0,"mat-option",4),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function VA(t,n){if(t&1&&(s(0,"button",12),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.reamortizeLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function UA(t,n){if(t&1){let e=xt();s(0,"button",13),it("click",function(){mt(e);let a=P();return dt(a.preview())}),c(1),p(2,"translate"),l()}if(t&2){let e=P();x("disabled",!e.reamortizeLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Preview")," ")}}var e0=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.router=A(le),this.loanService=A(Mt),this.settingsService=A(oe),this.dialog=A(Gn),this.reAmortizationReasonOptions=[],this.reAmortizationInterestHandlingOptions=[],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.reAmortizationReasonOptions=this.dataObject?.reAmortizationReasonOptions||[],this.reAmortizationInterestHandlingOptions=this.dataObject?.reAmortizationInterestHandlingOptions||[],this.createReAmortizeLoanForm()}createReAmortizeLoanForm(){this.reamortizeLoanForm=this.formBuilder.group({reAmortizationInterestHandling:[this.reAmortizationInterestHandlingOptions[0]||null],reasonCodeValueId:null,note:"",externalId:""})}prepareReAmortizeData(){let e=this.reamortizeLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat;return ve(ie({},e),{dateFormat:a,locale:i})}prepareReAmortizePreviewData(){let e=ie({},this.reamortizeLoanForm.value),i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=e.reAmortizationInterestHandling;return r&&typeof r=="object"&&(r=r.id),!r&&r!==0&&(r="default"),delete e.reAmortizationInterestHandling,ve(ie({},e),{reAmortizationInterestHandling:r,dateFormat:a,locale:i})}preview(){if(this.reamortizeLoanForm.invalid)return;let e=this.prepareReAmortizePreviewData();this.loanService.getReAmortizePreview(this.loanId,e).subscribe({next:i=>{let a=i.currency?.code;if(!a){console.error("Currency code is not available in API response");return}this.dialog.open(_g,{data:{repaymentSchedule:i,currencyCode:a},width:"95%",maxWidth:"1400px",height:"90vh"})},error:i=>{console.error("Error loading re-amortize preview:",i)}})}submit(){let e=this.prepareReAmortizeData();this.loanService.submitLoanActionButton(this.loanId,e,"reAmortize").subscribe(i=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}trackByInterestHandlingOption(e,i){return i.id??e}trackByReasonOption(e,i){return i.id??e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-reamortize"]],inputs:{dataObject:"dataObject"},decls:38,vars:20,consts:[[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["formControlName","reAmortizationInterestHandling"],[3,"value"],["formControlName","reasonCodeValueId"],["matInput","","formControlName","externalId"],["matInput","","formControlName","note"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["type","button","mat-raised-button","","color","accent",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],["type","button","mat-raised-button","","color","accent",3,"click","disabled"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"form",1),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"mat-select",3),ue(10,jA,3,5,"mat-option",4,a.trackByInterestHandlingOption,!0),l()()(),s(12,"div",2)(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),l(),s(17,"mat-select",5),ue(18,zA,2,2,"mat-option",4,a.trackByReasonOption,!0),l()()(),s(20,"div",2)(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),l(),T(25,"input",6),l()(),s(26,"div",2)(27,"mat-form-field")(28,"mat-label"),c(29),p(30,"translate"),l(),T(31,"input",7),l()(),s(32,"mat-card-actions",8)(33,"button",9),c(34),p(35,"translate"),l(),k(36,VA,3,4,"button",10)(37,UA,3,4,"button",11),l()()()()()),i&2&&(o(2),x("formGroup",a.reamortizeLoanForm),o(5),b(m(8,9,"labels.inputs.Interest Handling")),o(3),fe(a.reAmortizationInterestHandlingOptions),o(5),b(m(16,11,"labels.inputs.Reason")),o(3),fe(a.reAmortizationReasonOptions),o(5),b(m(24,13,"labels.inputs.External Id")),o(6),b(m(30,15,"labels.inputs.Note")),o(4),x("routerLink",Ut(19,qA)),o(),v(" ",m(35,17,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","REAMORTIZE_LOAN"),o(),x("mifosxHasPermission","REAMORTIZE_LOAN"))},dependencies:[wt,Tt,Re,we,he,Ee,Le,Ne,ae,xe,Oe,ze,_e,ge,Pe,In,On,Wt,Ae,Pt,qa],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var HA=()=>["../../general"];function GA(t,n){if(t&1&&(s(0,"div",3)(1,"span",13),c(2),p(3,"translateKey"),p(4,"dateFormat"),l()()),t&2){let e=P();o(2),$t("",Ge(3,2,"Maturity Date","inputs")," : ",m(4,5,e.maturityDate))}}function WA(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),s(3,"strong"),c(4),p(5,"translate"),l()()),t&2&&(o(),v(" ",m(2,2,"labels.inputs.Start Date")),o(3),b(m(5,4,"labels.commons.required")))}function $A(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),s(3,"strong"),c(4),p(5,"translate"),l()()),t&2&&(o(),v(" ",m(2,2,"labels.inputs.End Date")),o(3),b(m(5,4,"labels.commons.required")))}function YA(t,n){if(t&1&&(s(0,"button",14),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.interestPauseLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var n0=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.startDate=new Date,this.maturityDate=null,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maturityDate=new Date(this.dataObject.timeline.expectedMaturityDate),this.maxDate=new Date(this.dataObject.timeline.expectedMaturityDate),this.startDate=new Date(this.settingsService.businessDate),this.startDate>this.maxDate&&(this.startDate=this.maxDate),this.createInterestPauseLoanForm()}createInterestPauseLoanForm(){this.interestPauseLoanForm=this.formBuilder.group({startDate:[this.startDate,Gt.required],endDate:[this.startDate,Gt.required]})}submit(){let e=this.interestPauseLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.interestPauseLoanForm.value.startDate;e.startDate instanceof Date&&(e.startDate=this.dateUtils.formatDate(r,a));let u=this.interestPauseLoanForm.value.endDate;e.endDate instanceof Date&&(e.endDate=this.dateUtils.formatDate(u,a));let d=ve(ie({},e),{dateFormat:a,locale:i});this.loanService.addInterestPauseToLoan(this.loanId,d).subscribe(g=>{this.router.navigate(["../../term-variations"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-add-interest-pause"]],inputs:{dataObject:"dataObject"},decls:29,vars:24,consts:[["startDatePicker",""],["endDatePicker",""],[1,"container","mat-elevation-z8"],[1,"m-b-20","layout-column"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[1,"m-r-10"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",2)(1,"mat-card"),M(2,GA,5,7,"div",3),s(3,"form",4),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(4,"mat-card-content")(5,"div",5)(6,"mat-form-field",6),it("click",function(){mt(r);let d=Lt(13);return dt(d.open())}),s(7,"mat-label"),c(8),p(9,"translate"),l(),T(10,"input",7)(11,"mat-datepicker-toggle",8)(12,"mat-datepicker",null,0),M(14,WA,6,6,"mat-error"),l(),s(15,"mat-form-field",6),it("click",function(){mt(r);let d=Lt(22);return dt(d.open())}),s(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",9)(20,"mat-datepicker-toggle",8)(21,"mat-datepicker",null,1),M(23,$A,6,6,"mat-error"),l()(),s(24,"mat-card-actions",10)(25,"button",11),c(26),p(27,"translate"),l(),k(28,YA,3,4,"button",12),l()()()()()}if(i&2){let r=Lt(13),u=Lt(22);o(2),O(a.maturityDate?2:-1),o(),x("formGroup",a.interestPauseLoanForm),o(5),b(m(9,17,"labels.inputs.Start Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.interestPauseLoanForm.controls.startDate.hasError("required")?14:-1),o(3),b(m(18,19,"labels.inputs.End Date")),o(2),x("min",a.interestPauseLoanForm.value.startDate)("max",a.maxDate)("matDatepicker",u),o(),x("for",u),o(3),O(a.interestPauseLoanForm.controls.endDate.hasError("required")?23:-1),o(2),x("routerLink",Ut(23,HA)),o(),v(" ",m(27,21,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","DISBURSE_LOAN")}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ae,En,Pt,qa],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ZA=()=>["../../general"];function KA(t,n){if(t&1&&(s(0,"button",8),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.undoWriteOffLoanForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Cg=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.settingsService=A(oe),this.alertService=A(Jl),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createUndoWriteOffLoanForm()}createUndoWriteOffLoanForm(){this.undoWriteOffLoanForm=this.formBuilder.group({note:[""]})}submit(){let e=this.undoWriteOffLoanForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.settingsService.businessDate,u=ve(ie({},e),{transactionDate:this.dateUtils.formatDate(r&&new Date(r),a),transactionAmount:0,dateFormat:a,locale:i});this.loanService.submitLoanActionButton(this.loanId,u,"undowriteoff").subscribe({next:d=>{this.router.navigate(["../../general"],{relativeTo:this.route})},error:d=>{console.error("Undo write-off failed:",d),this.alertService.alert({type:"Undo Write-off Failed",message:"An error occurred while processing the undo write-off transaction. Please try again or contact support if the problem persists."})}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-undo-write-off"]],inputs:{dataObject:"dataObject"},decls:18,vars:13,consts:[[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"m-b-20"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"form",1),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",2)(5,"p",3),c(6),p(7,"translate"),l(),s(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),l(),T(12,"textarea",4),l()(),s(13,"mat-card-actions",5)(14,"button",6),c(15),p(16,"translate"),l(),k(17,KA,3,4,"button",7),l()()()()()),i&2&&(o(2),x("formGroup",a.undoWriteOffLoanForm),o(4),v(" ",m(7,6,"labels.text.Undo Write-off Description")," "),o(4),b(m(11,8,"labels.inputs.Note")),o(4),x("routerLink",Ut(12,ZA)),o(),v(" ",m(16,10,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","UNDOWRITEOFF_LOAN"))},dependencies:[wt,Tt,Re,we,he,Ee,Le,Ne,ae,xe,Oe,ze,_e,ge,Pe,Wt,Ae,Wn,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.mat-card[_ngcontent-%COMP%]{padding:20px}.layout-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:20px}.mat-card-actions[_ngcontent-%COMP%]{padding-top:20px}.gap-5px[_ngcontent-%COMP%]{gap:5px}@media (width <= 768px){.responsive-column[_ngcontent-%COMP%]{flex-direction:column;align-items:stretch}}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}"]})}}return t})();function JA(t,n){if(t&1&&T(0,"mifosx-loans-account-close",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function XA(t,n){t&1&&T(0,"mifosx-undo-approval")}function QA(t,n){if(t&1&&T(0,"mifosx-assign-loan-officer",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function tM(t,n){if(t&1&&T(0,"mifosx-foreclosure",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function eM(t,n){if(t&1&&T(0,"mifosx-prepay-loan",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function nM(t,n){if(t&1&&T(0,"mifosx-make-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function iM(t,n){if(t&1&&T(0,"mifosx-make-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function aM(t,n){if(t&1&&T(0,"mifosx-make-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function oM(t,n){if(t&1&&T(0,"mifosx-make-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function rM(t,n){if(t&1&&T(0,"mifosx-make-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function lM(t,n){if(t&1&&T(0,"mifosx-make-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function sM(t,n){if(t&1&&T(0,"mifosx-make-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function cM(t,n){if(t&1&&T(0,"mifosx-loan-credit-balance-refund",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function pM(t,n){if(t&1&&T(0,"mifosx-waive-interest",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function mM(t,n){if(t&1&&T(0,"mifosx-write-off-page",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function dM(t,n){if(t&1&&T(0,"mifosx-close-as-rescheduled",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function uM(t,n){if(t&1&&T(0,"mifosx-loan-reschedule",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function fM(t,n){if(t&1&&T(0,"mifosx-recovery-repayment",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function hM(t,n){if(t&1&&T(0,"mifosx-view-guarantors",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function gM(t,n){if(t&1&&T(0,"mifosx-create-guarantor",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function _M(t,n){if(t&1&&T(0,"mifosx-disburse-to-savings-account",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function CM(t,n){t&1&&T(0,"mifosx-reject-loan")}function bM(t,n){if(t&1&&T(0,"mifosx-disburse",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function vM(t,n){t&1&&T(0,"mifosx-withdrawn-by-client")}function xM(t,n){if(t&1&&T(0,"mifosx-add-collateral",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function yM(t,n){if(t&1&&T(0,"mifosx-undo-disbursal",1),t&2){let e=P();x("actionName",e.actionName)}}function SM(t,n){if(t&1&&T(0,"mifosx-loan-screen-reports",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function DM(t,n){t&1&&T(0,"mifosx-approve-loan")}function wM(t,n){t&1&&T(0,"mifosx-add-loan-charge")}function TM(t,n){t&1&&T(0,"mifosx-edit-repayment-schedule")}function PM(t,n){if(t&1&&T(0,"mifosx-charge-off",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function AM(t,n){t&1&&T(0,"mifosx-asset-transfer-loan")}function MM(t,n){if(t&1&&T(0,"mifosx-loan-reaging",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function OM(t,n){if(t&1&&T(0,"mifosx-loan-reamortize",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}function IM(t,n){if(t&1&&T(0,"mifosx-add-interest-pause",0),t&2){let e=P();x("dataObject",e.navigationData)}}function EM(t,n){if(t&1&&T(0,"mifosx-undo-write-off",0),t&2){let e=P();x("dataObject",e.actionButtonData)}}var i0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.actions={Close:!1,"Undo Approval":!1,"Write Off":!1,"Add Collateral":!1,"Assign Loan Officer":!1,Foreclosure:!1,"Prepay Loan":!1,Reject:!1,"Disburse to Savings":!1,"Make Repayment":!1,"Waive Interest":!1,"Close (as Rescheduled)":!1,Reschedule:!1,"Recovery Payment":!1,"View Guarantors":!1,"Create Guarantor":!1,Disburse:!1,"Withdrawn by Client":!1,"Undo Disbursal":!1,"Undo Last Disbursal":!1,"Loan Screen Reports":!1,Approve:!1,"Add Loan Charge":!1,"Goodwill Credit":!1,"Merchant Issued Refund":!1,"Payout Refund":!1,"Credit Balance Refund":!1,"Edit Repayment Schedule":!1,"Charge-Off":!1,"Sell Loan":!1,"Buy Back Loan":!1,"Re-Age":!1,"Re-Amortize":!1,"Interest Payment Waiver":!1,"Add Interest Pause":!1,"Capitalized Income":!1,"Contract Termination":!1,"Buy Down Fee":!1,"Undo Write-off":!1};let e=this.router.currentNavigation();this.navigationData=e?.extras?.state?.data,this.route.data.subscribe(i=>{this.actionButtonData=i.actionButtonData?i.actionButtonData:{}}),this.route.params.subscribe(i=>{this.actionName=i.action,this.actionName==="Change Loan Officer"&&(this.actionName="Assign Loan Officer");for(let a of Object.keys(this.actions))this.actions[a]=!1;this.actions[this.actionName]=!0}),this.actionButtonData.actionName=this.actionName}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-account-actions"]],decls:36,vars:36,consts:[[3,"dataObject"],[3,"actionName"]],template:function(i,a){i&1&&(M(0,JA,1,1,"mifosx-loans-account-close",0),M(1,XA,1,0,"mifosx-undo-approval"),M(2,QA,1,1,"mifosx-assign-loan-officer",0),M(3,tM,1,1,"mifosx-foreclosure",0),M(4,eM,1,1,"mifosx-prepay-loan",0),M(5,nM,1,1,"mifosx-make-repayment",0),M(6,iM,1,1,"mifosx-make-repayment",0),M(7,aM,1,1,"mifosx-make-repayment",0),M(8,oM,1,1,"mifosx-make-repayment",0),M(9,rM,1,1,"mifosx-make-repayment",0),M(10,lM,1,1,"mifosx-make-repayment",0),M(11,sM,1,1,"mifosx-make-repayment",0),M(12,cM,1,1,"mifosx-loan-credit-balance-refund",0),M(13,pM,1,1,"mifosx-waive-interest",0),M(14,mM,1,1,"mifosx-write-off-page",0),M(15,dM,1,1,"mifosx-close-as-rescheduled",0),M(16,uM,1,1,"mifosx-loan-reschedule",0),M(17,fM,1,1,"mifosx-recovery-repayment",0),M(18,hM,1,1,"mifosx-view-guarantors",0),M(19,gM,1,1,"mifosx-create-guarantor",0),M(20,_M,1,1,"mifosx-disburse-to-savings-account",0),M(21,CM,1,0,"mifosx-reject-loan"),M(22,bM,1,1,"mifosx-disburse",0),M(23,vM,1,0,"mifosx-withdrawn-by-client"),M(24,xM,1,1,"mifosx-add-collateral",0),M(25,yM,1,1,"mifosx-undo-disbursal",1),M(26,SM,1,1,"mifosx-loan-screen-reports",0),M(27,DM,1,0,"mifosx-approve-loan"),M(28,wM,1,0,"mifosx-add-loan-charge"),M(29,TM,1,0,"mifosx-edit-repayment-schedule"),M(30,PM,1,1,"mifosx-charge-off",0),M(31,AM,1,0,"mifosx-asset-transfer-loan"),M(32,MM,1,1,"mifosx-loan-reaging",0),M(33,OM,1,1,"mifosx-loan-reamortize",0),M(34,IM,1,1,"mifosx-add-interest-pause",0),M(35,EM,1,1,"mifosx-undo-write-off",0)),i&2&&(O(a.actions.Close?0:-1),o(),O(a.actions["Undo Approval"]?1:-1),o(),O(a.actions["Assign Loan Officer"]?2:-1),o(),O(a.actions.Foreclosure?3:-1),o(),O(a.actions["Prepay Loan"]||a.actions["Contract Termination"]?4:-1),o(),O(a.actions["Make Repayment"]?5:-1),o(),O(a.actions["Capitalized Income"]?6:-1),o(),O(a.actions["Goodwill Credit"]?7:-1),o(),O(a.actions["Buy Down Fee"]?8:-1),o(),O(a.actions["Interest Payment Waiver"]?9:-1),o(),O(a.actions["Payout Refund"]?10:-1),o(),O(a.actions["Merchant Issued Refund"]?11:-1),o(),O(a.actions["Credit Balance Refund"]?12:-1),o(),O(a.actions["Waive Interest"]?13:-1),o(),O(a.actions["Write Off"]?14:-1),o(),O(a.actions["Close (as Rescheduled)"]?15:-1),o(),O(a.actions.Reschedule?16:-1),o(),O(a.actions["Recovery Payment"]?17:-1),o(),O(a.actions["View Guarantors"]?18:-1),o(),O(a.actions["Create Guarantor"]?19:-1),o(),O(a.actions["Disburse to Savings"]?20:-1),o(),O(a.actions.Reject?21:-1),o(),O(a.actions.Disburse?22:-1),o(),O(a.actions["Withdrawn by Client"]?23:-1),o(),O(a.actions["Add Collateral"]?24:-1),o(),O(a.actions["Undo Disbursal"]||a.actions["Undo Last Disbursal"]?25:-1),o(),O(a.actions["Loan Screen Reports"]?26:-1),o(),O(a.actions.Approve?27:-1),o(),O(a.actions["Add Loan Charge"]?28:-1),o(),O(a.actions["Edit Repayment Schedule"]?29:-1),o(),O(a.actions["Charge-Off"]?30:-1),o(),O(a.actions["Sell Loan"]||a.actions["Buy Back Loan"]?31:-1),o(),O(a.actions["Re-Age"]?32:-1),o(),O(a.actions["Re-Amortize"]?33:-1),o(),O(a.actions["Add Interest Pause"]?34:-1),o(),O(a.actions["Undo Write-off"]?35:-1))},dependencies:[wt,Tt,Pm,Am,Mm,Om,Im,Em,Lm,Nm,km,Fm,Rm,Bm,jm,zm,Vm,Um,Hm,Gm,Wm,$m,Ym,Zm,Km,Jm,Xm,Qm,t0,e0,n0,Cg],encapsulation:2})}}return t})();function LM(t,n){t&1&&(s(0,"th",8),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.From Date")))}function NM(t,n){if(t&1&&(s(0,"td",9),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.fromDate))}}function kM(t,n){t&1&&(s(0,"th",8),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Interest Rate")))}function FM(t,n){if(t&1&&(s(0,"td",9),c(1),l()),t&2){let e=n.$implicit;o(),b(e.effectiveInterestRate)}}function RM(t,n){t&1&&T(0,"tr",10)}function BM(t,n){t&1&&T(0,"tr",11)}var a0=(()=>{class t{constructor(){this.route=A(Et),this.displayedColumns=["fromDate","interestRate"],this.route.parent.data.subscribe(e=>{this.loanDetails=e.loanDetailsData})}ngOnInit(){this.interestRateData=this.loanDetails.interestRatesPeriods}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-floating-interest-rates"]],decls:10,vars:3,consts:[[1,"container"],["mat-table","",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","interestRate"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"table",1),X(2,2),k(3,LM,3,3,"th",3)(4,NM,3,3,"td",4),Q(),X(5,5),k(6,kM,3,3,"th",3)(7,FM,2,1,"td",4),Q(),k(8,RM,1,0,"tr",6)(9,BM,1,0,"tr",7),l()()),i&2&&(o(),x("dataSource",a.interestRateData),o(7),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,En,Pt],styles:["table[_ngcontent-%COMP%]{width:100%;margin:3% 0%}.container[_ngcontent-%COMP%]{padding-bottom:2%}"]})}}return t})();function qM(t,n){if(t&1&&(s(0,"div",1)(1,"span",2),c(2),p(3,"translate"),l(),s(4,"span",3),c(5),p(6,"yesNo"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Allow full term for each tranche"),":"),o(3),b(m(6,4,e.loanDetails.allowFullTermForTranche))}}function jM(t,n){if(t&1){let e=xt();s(0,"button",8),it("click",function(){mt(e);let a=P();return dt(a.addDisbursementDataEntry())}),T(1,"fa-icon",9),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Add")," "))}function zM(t,n){if(t&1){let e=xt();s(0,"button",8),it("click",function(){mt(e);let a=P();return dt(a.editDisbursementData())}),c(1),p(2,"translate"),l()}t&2&&(o(),v(" ",m(2,1,"labels.buttons.Apply Changes")," "))}function VM(t,n){t&1&&(s(0,"th",18),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Expected Disbursement On")))}function UM(t,n){if(t&1&&(s(0,"td",19),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.expectedDisbursementDate))}}function HM(t,n){t&1&&(s(0,"th",18),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Disbursed On")))}function GM(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.actualDisbursementDate)," ")}}function WM(t,n){if(t&1&&(s(0,"td",19),M(1,GM,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.actualDisbursementDate?1:-1)}}function $M(t,n){t&1&&(s(0,"th",18),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Principal")))}function YM(t,n){if(t&1&&(s(0,"td",19),c(1),l()),t&2){let e=n.$implicit;o(),b(e.principal)}}function ZM(t,n){t&1&&(s(0,"th",18),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function KM(t,n){t&1&&(s(0,"span"),T(1,"i",22),l())}function JM(t,n){if(t&1){let e=xt();s(0,"button",23),p(1,"translate"),it("click",function(){mt(e);let a=P().index,r=P(2);return dt(r.editDisbursementDataEntry(a))}),T(2,"fa-icon",24),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Edit")))}function XM(t,n){if(t&1){let e=xt();s(0,"button",25),p(1,"translate"),it("click",function(){mt(e);let a=P().index,r=P(2);return dt(r.removeDisbursementDataEntry(a))}),T(2,"fa-icon",26),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Delete")))}function QM(t,n){if(t&1&&(s(0,"td",19),M(1,KM,2,0,"span"),M(2,JM,3,4,"button",20),M(3,XM,3,4,"button",21),l()),t&2){let e=n.$implicit,i=P(2);o(),O(e.actualDisbursementDate?1:-1),o(),O(!e.actualDisbursementDate&&i.showActionsTrancheButtons()?2:-1),o(),O(!e.actualDisbursementDate&&i.showActionsTrancheButtons()?3:-1)}}function tO(t,n){t&1&&T(0,"tr",27)}function eO(t,n){t&1&&T(0,"tr",28)}function nO(t,n){if(t&1&&(s(0,"table",7),X(1,10),k(2,VM,3,3,"th",11)(3,UM,3,3,"td",12),Q(),X(4,13),k(5,HM,3,3,"th",11)(6,WM,2,1,"td",12),Q(),X(7,14),k(8,$M,3,3,"th",11)(9,YM,2,1,"td",12),Q(),X(10,15),k(11,ZM,3,3,"th",11)(12,QM,4,3,"td",12),Q(),k(13,tO,1,0,"tr",16)(14,eO,1,0,"tr",17),l()),t&2){let e=P();x("dataSource",e.disbursementDataSource),o(13),x("matHeaderRowDef",e.expectedDisbursementColumns),o(),x("matRowDefColumns",e.expectedDisbursementColumns)}}function iO(t,n){t&1&&(s(0,"th",18),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Applicable From Date")))}function aO(t,n){if(t&1&&(s(0,"td",19),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.termVariationApplicableFrom))}}function oO(t,n){t&1&&(s(0,"th",18),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Installment Amount")))}function rO(t,n){if(t&1&&(s(0,"td",19),c(1),l()),t&2){let e=n.$implicit;o(),b(e.termValue)}}function lO(t,n){t&1&&T(0,"tr",27)}function sO(t,n){t&1&&T(0,"tr",28)}function cO(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",7),X(5,29),k(6,iO,3,3,"th",11)(7,aO,3,3,"td",12),Q(),X(8,30),k(9,oO,3,3,"th",11)(10,rO,2,1,"td",12),Q(),k(11,lO,1,0,"tr",16)(12,sO,1,0,"tr",17),l()()),t&2){let e=P();o(2),v("",m(3,4,"labels.heading.Installment Amount Variations"),":"),o(2),x("dataSource",e.loanDetails.emiAmountVariations),o(7),x("matHeaderRowDef",e.emivariationColumns),o(),x("matRowDefColumns",e.emivariationColumns)}}var o0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.dialog=A(Gn),this.loanServices=A(Mt),this.settingsService=A(oe),this.dateUtils=A(de),this.expectedDisbursementColumns=["expected disbursement on","disbursed on","principal","action"],this.emivariationColumns=["emi amount variation from","fixed emi amount"],this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.disbursementDataSource=[],this.totalMultiDisbursed=null,this.disallowExpectedDisbursements=!1,this.pristine=!0,this.route.parent.data.subscribe(e=>{this.loanId=e.loanDetailsData.id,this.loanDetails=e.loanDetailsData,this.disallowExpectedDisbursements=this.loanDetails.disallowExpectedDisbursements||!1,this.currentPrincipalAmount=this.loanDetails.approvedPrincipal})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.status=this.loanDetails.status.value,this.disbursementDataSource=this.loanServices.getLoanDisbursementDetailsData(),this.disbursementDataSource.forEach(e=>{e.id||(this.pristine=!1)})}showAddTrancheButtons(){return this.return=!0,(this.status==="Closed (obligations met)"||this.status==="Overpaid"||this.status==="Closed (rescheduled)"||this.status==="Closed (written off)"||this.status==="Submitted and pending approval"||this.disallowExpectedDisbursements)&&(this.return=!1),this.calculateTotalDisbursedAmount(),!(this.totalMultiDisbursed===this.currentPrincipalAmount||this.return===!1)}showActionsTrancheButtons(){return!(this.status==="Closed (obligations met)"||this.status==="Overpaid"||this.status==="Closed (rescheduled)"||this.status==="Closed (written off)"||this.status==="Submitted and pending approval"||this.disallowExpectedDisbursements)}calculateTotalDisbursedAmount(){this.totalMultiDisbursed=0,this.count=0,this.disbursementDataSource.forEach(e=>{this.totalMultiDisbursed+=e.principal*1,this.count+=1})}buildForm(e,i){return[new la({controlName:"expectedDisbursementDate",label:"Expected Disbursement Date",value:e||"",type:"datetime-local",minDate:this.minDate,maxDate:this.maxDate,required:!0,order:1}),new Ti({controlName:"principal",label:"Principal",value:i,type:"number",required:!0,order:2})]}addDisbursementDataEntry(){this.calculateTotalDisbursedAmount();let e={title:"Add Disbursement Details",layout:{addButtonText:"Add"},formfields:this.buildForm(new Date,this.currentPrincipalAmount-this.totalMultiDisbursed)};this.dialog.open(_i,{data:e}).afterClosed().subscribe(a=>{if(a.data){let r=a.data.value.principal*1;this.totalMultiDisbursed+r<=this.currentPrincipalAmount&&(this.disbursementDataSource=this.disbursementDataSource.concat(a.data.value),this.loanServices.saveLoanDisbursementDetailsData(this.disbursementDataSource),this.pristine=!1)}})}editDisbursementDataEntry(e){let i=this.disbursementDataSource[e].principal*1,a=this.dateUtils.parseDate(this.disbursementDataSource[e].expectedDisbursementDate),r={title:"Edit Disbursement Details",layout:{addButtonText:"Save"},formfields:this.buildForm(a,i)};this.dialog.open(_i,{data:r}).afterClosed().subscribe(d=>{if(d.data){let g=d.data.value.principal*1;this.totalMultiDisbursed-i+g<=this.currentPrincipalAmount&&(this.disbursementDataSource[e].principal=g,this.disbursementDataSource[e].expectedDisbursementDate=d.data.value.expectedDisbursementDate,this.pristine=!1)}})}removeDisbursementDataEntry(e){this.dialog.open(ra,{data:{deleteContext:"this"}}).afterClosed().subscribe(a=>{if(a.delete){let r=this.disbursementDataSource[e].principal*1;this.disbursementDataSource.splice(e,1),this.disbursementDataSource=this.disbursementDataSource.concat([]),this.totalMultiDisbursed-=r,this.pristine=!1}})}editDisbursementData(){let e=[];this.disbursementDataSource.forEach(a=>{e.push({expectedDisbursementDate:this.dateUtils.formatDate(a.expectedDisbursementDate,this.settingsService.dateFormat),principal:a.principal,id:a.id})});let i={disbursementData:e,dateFormat:this.settingsService.dateFormat,locale:this.settingsService.language.code};this.loanServices.editDisbursements(this.loanId,i).toPromise().then(a=>{this.reload(),this.pristine=!0})}reload(){let e=this.router.url;this.router.navigateByUrl("/clients",{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-tranche-details"]],decls:17,vars:14,consts:[[1,"container"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],["class","flex-fill",4,"ngIf"],[1,"layout-row","margin-t","layout-xs-column","layout-align-end","gap-2percent"],["mat-raised-button","","color","primary"],["mat-table","",3,"dataSource"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["matColumnDef","expected disbursement on"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","disbursed on"],["matColumnDef","principal"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","primary","matTooltipPosition","left",3,"matTooltip"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"matTooltip"],[1,"fa","fa-check"],["type","button","mat-icon-button","","color","primary","matTooltipPosition","left",3,"click","matTooltip"],["icon","edit"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","emi amount variation from"],["matColumnDef","fixed emi amount"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"div",1)(2,"span",2),c(3),p(4,"translate"),l(),s(5,"span",3),c(6),p(7,"formatNumber"),l()(),k(8,qM,7,6,"div",4),s(9,"h3"),c(10),p(11,"translate"),l(),s(12,"div",5),M(13,jM,4,3,"button",6),M(14,zM,3,3,"button",6),l(),M(15,nO,15,3,"table",7),M(16,cO,13,6,"div"),l()),i&2&&(o(3),v("",m(4,8,"labels.inputs.Maximum allowed outstanding balance"),":"),o(3),b(m(7,10,a.loanDetails.maxOutstandingLoanBalance)),o(2),x("ngIf",a.loanDetails.allowFullTermForTranche),o(2),b(m(11,12,"labels.heading.Loan Tranche Details")),o(3),O(a.showAddTrancheButtons()?13:-1),o(),O(a.pristine?-1:14),o(),O(a.disbursementDataSource.length>0?15:-1),o(),O(a.loanDetails.emiAmountVariations.length>0?16:-1))},dependencies:[wt,Lf,Tt,Wt,un,bn,yn,xn,Sn,vn,Dn,Ba,Oi,wn,Pn,Tn,An,En,Pt,hn,Hr],styles:["table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{padding-top:1%;padding-bottom:2%}.container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}"]})}}return t})();var pO=()=>["../actions/Add Collateral"];function mO(t,n){if(t&1&&(s(0,"div",5)(1,"table")(2,"tbody")(3,"tr")(4,"td",7)(5,"b"),c(6),p(7,"translate"),l()(),s(8,"td",8),c(9),p(10,"formatNumber"),l(),s(11,"td",7)(12,"b"),c(13),p(14,"translate"),l()(),s(15,"td",8),c(16),p(17,"formatNumber"),l()()()()()),t&2){let e=P();o(6),v("",m(7,4,"labels.inputs.Number of Collaterals")," :"),o(3),v(" ",m(10,6,e.loanCollaterals==null?null:e.loanCollaterals.length)," "),o(4),v("",m(14,8,"labels.inputs.Total Amount")," :"),o(3),v(" ",m(17,10,e.totalAmount)," ")}}function dO(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.ID")))}function uO(t,n){if(t&1&&(s(0,"td",18),c(1),l()),t&2){let e=n.$implicit;o(),b(e.id)}}function fO(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Currency")))}function hO(t,n){if(t&1&&(s(0,"td",18),c(1),l()),t&2){let e=n.$implicit;o(),b(e.currency.code)}}function gO(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Description")))}function _O(t,n){if(t&1&&(s(0,"td",18),c(1),l()),t&2){let e=n.$implicit;o(),b(e.description)}}function CO(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Value")))}function bO(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.value))}}function vO(t,n){t&1&&T(0,"tr",19)}function xO(t,n){t&1&&T(0,"tr",20)}function yO(t,n){if(t&1&&(s(0,"table",6),X(1,9),k(2,dO,3,3,"th",10)(3,uO,2,1,"td",11),Q(),X(4,12),k(5,fO,3,3,"th",10)(6,hO,2,1,"td",11),Q(),X(7,13),k(8,gO,3,3,"th",10)(9,_O,2,1,"td",11),Q(),X(10,14),k(11,CO,3,3,"th",10)(12,bO,3,3,"td",11),Q(),k(13,vO,1,0,"tr",15)(14,xO,1,0,"tr",16),l()),t&2){let e=P();x("dataSource",e.loanCollaterals),o(13),x("matHeaderRowDef",e.displayedColumns),o(),x("matRowDefColumns",e.displayedColumns)}}var r0=(()=>{class t{constructor(){this.route=A(Et),this.loanCollaterals=[],this.displayedColumns=["id","currency","description","value"],this.route.data.subscribe(e=>{this.loanCollaterals=e.loanCollaterals})}ngOnInit(){this.totalAmount=0,this.loanCollaterals.forEach(e=>{this.totalAmount=this.totalAmount+e.value})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-collateral-tab"]],decls:11,vars:10,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","align-start-center"],[1,"flex-90"],[1,"layout-row","gap-20px","align-end","align-items-center","action-buttons"],["mat-raised-button","","color","primary",3,"routerLink"],[1,"layout-row","gap-32px","performance-history-container"],["mat-table","",3,"dataSource"],[1,"flex-25"],[1,"flex-25","left"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","currency"],["matColumnDef","description"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"div",1)(2,"h3",2),c(3),p(4,"translate"),l(),s(5,"div",3)(6,"button",4),c(7),p(8,"translate"),l()()(),M(9,mO,18,12,"div",5),M(10,yO,15,3,"table",6),l()),i&2&&(o(3),b(m(4,5,"labels.inputs.Loan Collateral Details")),o(3),x("routerLink",Ut(9,pO)),o(),v(" ",m(8,7,"labels.buttons.Add Collateral")," "),o(2),O((a.loanCollaterals==null?null:a.loanCollaterals.length)>0?9:-1),o(),O((a.loanCollaterals==null?null:a.loanCollaterals.length)>0?10:-1))},dependencies:[wt,Tt,ae,Wt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Pt,hn],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}table[_ngcontent-%COMP%] .document-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}"]})}}return t})();var bg=(()=>{class t{constructor(){}dynamicSort(e){let i=1;return e[0]==="-"&&(i=-1,e=e.substr(1)),(a,r)=>(a[e]r[e]?1:0)*i}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var SO=()=>["../","general"];function DO(t,n){if(t&1&&(s(0,"mat-option",7),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function wO(t,n){if(t&1&&(s(0,"mat-option",7),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.displayName," ")}}function TO(t,n){if(t&1&&(s(0,"mat-form-field",15)(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",27),p(5,"translate"),ue(6,wO,2,2,"mat-option",7,Ce),l()()),t&2){let e=P(2);o(2),b(m(3,3,"labels.inputs.Loan officer")),o(2),x("matTooltip",ce(m(5,5,"tooltips.Financial institution representative"))),o(2),fe(e.loanOfficerOptions)}}function PO(t,n){if(t&1&&(s(0,"mat-option",7),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function AO(t,n){if(t&1&&(s(0,"mat-option",7),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function MO(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Submitted on")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function OO(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Disbursement on")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function IO(t,n){if(t&1&&(s(0,"mat-option",7),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),$t(" (",e.accountNo,") ",e.productName," ")}}function EO(t,n){if(t&1){let e=xt();s(0,"div",8)(1,"mat-form-field",15)(2,"mat-label"),c(3),p(4,"translate"),l(),T(5,"input",16),p(6,"translate"),l(),M(7,TO,8,7,"mat-form-field",15),s(8,"mat-form-field",15)(9,"mat-label"),c(10),p(11,"translate"),l(),s(12,"mat-select",17),p(13,"translate"),ue(14,PO,2,2,"mat-option",7,Ce),l()(),s(16,"mat-form-field",15)(17,"mat-label"),c(18),p(19,"translate"),l(),s(20,"mat-select",18),ue(21,AO,2,2,"mat-option",7,Ce),l()(),s(23,"mat-form-field",19),it("click",function(){mt(e);let a=Lt(31);return dt(a.open())}),s(24,"mat-label"),c(25),p(26,"translate"),l(),T(27,"input",20),p(28,"translate"),T(29,"mat-datepicker-toggle",21)(30,"mat-datepicker",null,0),M(32,MO,7,9,"mat-error"),l(),s(33,"mat-form-field",19),it("click",function(){mt(e);let a=Lt(41);return dt(a.open())}),s(34,"mat-label"),c(35),p(36,"translate"),l(),T(37,"input",22),p(38,"translate"),T(39,"mat-datepicker-toggle",21)(40,"mat-datepicker",null,1),M(42,OO,7,9,"mat-error"),l(),T(43,"mat-divider",23),s(44,"h3",24),c(45),p(46,"translate"),l(),s(47,"mat-form-field",15)(48,"mat-label"),c(49),p(50,"translate"),l(),s(51,"mat-select",25),ue(52,IO,2,3,"mat-option",7,Ce),l()(),s(54,"mat-checkbox",26)(55,"p"),c(56),p(57,"translate"),l()()()}if(t&2){let e=Lt(31),i=Lt(41),a=P();o(3),b(m(4,27,"labels.inputs.External id")),o(2),x("matTooltip",ce(m(6,29,"tooltips.Provides an external id"))),o(2),O(a.loanProductSelected?7:-1),o(3),b(m(11,31,"labels.inputs.Loan Purpose")),o(2),x("matTooltip",ce(m(13,33,"tooltips.Provides an indication"))),o(2),fe(a.loanPurposeOptions),o(4),b(m(19,35,"labels.inputs.Fund")),o(3),fe(a.fundOptions),o(4),b(m(26,37,"labels.inputs.Submitted on")),o(2),x("matTooltip",ce(m(28,39,"tooltips.Date the loan account application")))("min",a.minDate)("max",a.maxDate)("matDatepicker",e),o(2),x("for",e),o(3),O(a.loansAccountDetailsForm.controls.submittedOnDate!=null&&a.loansAccountDetailsForm.controls.submittedOnDate.hasError("required")?32:-1),o(3),b(m(36,41,"labels.inputs.Disbursement on")),o(2),x("matTooltip",ce(m(38,43,"tooltips.Date that the loan account disbursed")))("min",a.loansAccountDetailsForm.value.submittedOnDate)("max",a.maxDate)("matDatepicker",i),o(2),x("for",i),o(3),O(a.loansAccountDetailsForm.controls.submittedOnDate!=null&&a.loansAccountDetailsForm.controls.submittedOnDate.hasError("required")?42:-1),o(3),b(m(46,45,"labels.heading.Savings Linkage")),o(4),b(m(50,47,"labels.inputs.Link savings")),o(3),fe(a.accountLinkingOptions),o(4),b(m(57,49,"labels.inputs.Create standing instructions at disbursement"))}}function LO(t,n){t&1&&(s(0,"button",14),c(1),p(2,"translate"),l()),t&2&&(x("routerLink",Ut(4,SO)),o(),v(" ",m(2,2,"labels.buttons.Cancel")," "))}var Oo=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loansService=A(Mt),this.route=A(Et),this.translateService=A(pa),this.settingsService=A(oe),this.commons=A(bg),this.placeHolderLabel="",this.noEntriesFoundLabel="",this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.isFieldOfficerPatched=!1,this.loanId=null,this.loanProductSelected=!1,this.productData=new Tf(1),this.filterFormCtrl=new pe(""),this._onDestroy=new wf,this.loansAccountProductTemplate=new Yl,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.placeHolderLabel=this.translateService.instant("labels.text.Search"),this.noEntriesFoundLabel=this.translateService.instant("labels.text.No data found"),this.createLoansAccountDetailsForm(),this.maxDate=this.settingsService.maxFutureDate,this.buildDependencies(),this.loansAccountTemplate&&(this.productList=this.loansAccountTemplate.productOptions.sort(this.commons.dynamicSort("name")),this.loansAccountTemplate.loanProductId&&this.loansAccountDetailsForm.patchValue({productId:this.loansAccountTemplate.loanProductId,submittedOnDate:this.loansAccountTemplate.timeline.submittedOnDate&&new Date(this.loansAccountTemplate.timeline.submittedOnDate),loanOfficerId:this.loansAccountTemplate.loanOfficerId,loanPurposeId:this.loansAccountTemplate.loanPurposeId,fundId:this.loansAccountTemplate.fundId,expectedDisbursementDate:this.loansAccountTemplate.timeline.expectedDisbursementDate&&new Date(this.loansAccountTemplate.timeline.expectedDisbursementDate),externalId:this.loansAccountTemplate.externalId})),this.filterFormCtrl.valueChanges.pipe(Pf(this._onDestroy)).subscribe(()=>{this.searchItem()}),this.productData.next(this.productList.slice())}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}searchItem(){if(this.productList){let e=this.filterFormCtrl.value.toLowerCase();e?this.productData.next(this.productList.filter(i=>i.name.toLowerCase().indexOf(e)>=0)):this.productData.next(this.productList.slice())}}createLoansAccountDetailsForm(){this.loansAccountDetailsForm=this.formBuilder.group({productId:["",Gt.required],loanOfficerId:[""],loanPurposeId:[""],fundId:[""],submittedOnDate:[this.settingsService.businessDate,Gt.required],expectedDisbursementDate:["",Gt.required],externalId:[""],linkAccountId:[""],createStandingInstructionAtDisbursement:[""]})}buildDependencies(){let e=this.loansAccountTemplate.clientId?this.loansAccountTemplate.clientId:this.loansAccountTemplate.group.id,i=!this.loansAccountTemplate.clientId;this.loansAccountDetailsForm.get("productId").valueChanges.subscribe(a=>{this.loansService.getLoansAccountTemplateResource(e,i,a).subscribe(r=>{this.loansAccountProductTemplate.emit(r),this.loanOfficerOptions=r.loanOfficerOptions,this.loanPurposeOptions=r.loanPurposeOptions,this.fundOptions=r.fundOptions,this.accountLinkingOptions=r.accountLinkingOptions,this.loanProductSelected=!0,r.createStandingInstructionAtDisbursement&&this.loansAccountDetailsForm.get("createStandingInstructionAtDisbursement").patchValue(r.createStandingInstructionAtDisbursement)})})}get loansAccountDetails(){return this.loansAccountDetailsForm.getRawValue()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-details-step"]],inputs:{loansAccountTemplate:"loansAccountTemplate"},outputs:{loansAccountProductTemplate:"loansAccountProductTemplate"},decls:31,vars:33,consts:[["submitPicker",""],["disbursementPicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill"],["required","","formControlName","productId",3,"matTooltip"],[3,"placeholderLabel","noEntriesFoundLabel","formControl"],[3,"value"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-raised-button","",3,"routerLink"],[1,"flex-48"],["matInput","","formControlName","externalId",3,"matTooltip"],["formControlName","loanPurposeId",3,"matTooltip"],["formControlName","fundId"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","submittedOnDate",3,"min","max","matDatepicker","matTooltip"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","expectedDisbursementDate",3,"min","max","matDatepicker","matTooltip"],[1,"flex-98"],[1,"mat-h3","flex-fill"],["formControlName","linkAccountId"],["formControlName","createStandingInstructionAtDisbursement",1,"flex-48"],["formControlName","loanOfficerId",3,"matTooltip"]],template:function(i,a){if(i&1&&(s(0,"form",2)(1,"div",3)(2,"mat-form-field",4)(3,"mat-label"),c(4),p(5,"translate"),l(),s(6,"mat-select",5),p(7,"translate"),s(8,"mat-option"),T(9,"ngx-mat-select-search",6),l(),ue(10,DO,2,2,"mat-option",7,Ce),p(12,"async"),l(),s(13,"mat-error"),c(14),p(15,"translate"),p(16,"translate"),s(17,"strong"),c(18),p(19,"translate"),l()()()(),M(20,EO,58,51,"div",8),s(21,"div",9)(22,"button",10),T(23,"fa-icon",11),c(24),p(25,"translate"),l(),s(26,"button",12),c(27),p(28,"translate"),T(29,"fa-icon",13),l(),M(30,LO,3,5,"button",14),l()()),i&2){let r;x("formGroup",a.loansAccountDetailsForm),o(4),b(m(5,17,"labels.inputs.Product Name")),o(2),x("matTooltip",ce(m(7,19,"tooltips.Name of the loan product"))),o(3),x("placeholderLabel",ce(a.placeHolderLabel))("noEntriesFoundLabel",ce(a.noEntriesFoundLabel))("formControl",a.filterFormCtrl),o(),fe(m(12,21,a.productData)),o(4),$t(" ",m(15,23,"labels.inputs.Product Name")," ",m(16,25,"labels.commons.is")," "),o(4),b(m(19,27,"labels.commons.required")),o(2),O(a.loanProductSelected?20:-1),o(4),v(" ",m(25,29,"labels.buttons.Previous")," "),o(2),x("disabled",!((r=a.loansAccountDetailsForm.get("productId"))!=null&&r.value)||!((r=a.loansAccountDetailsForm.get("expectedDisbursementDate"))!=null&&r.value)||!((r=a.loansAccountDetailsForm.get("submittedOnDate"))!=null&&r.value)),o(),v(" ",m(28,31,"labels.buttons.Next")," "),o(3),O(a.loanId?30:-1)}},dependencies:[wt,Tt,Re,we,he,Ee,je,Wo,Le,Ne,ae,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Da,Oi,i1,n1,$o,za,un,mo,Nf,Pt],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var NO=t=>({data:t});function kO(t,n){if(t&1&&(s(0,"mat-option",3),c(1),l()),t&2){let e=n.$implicit;x("value",e),o(),v(" ",e.name," ")}}function FO(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Quantity")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function RO(t,n){if(t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),s(3,"strong"),c(4),l()()),t&2){let e=P();o(),v(" ",m(2,2,"labels.inputs.Quantity can not be more than")," "),o(3),b(e.maxQuantity)}}var l0=(()=>{class t{constructor(){this.dialogRef=A(Vo),this.data=A(Uo),this.formBuilder=A(Te),this.layout={addButtonText:"Add"},this.maxQuantity=0,this.createAddCollateralForm()}ngOnInit(){this.dialogRef.updateSize("400px"),this.collateralTypeData=this.data.collateralOptions,this.buildDependencies()}createAddCollateralForm(){this.addCollateralForm=this.formBuilder.group({collateral:["",Gt.required],quantity:["",Gt.required],totalValue:[{value:"",disabled:!0}],totalCollateralValue:[{value:"",disabled:!0}]})}buildDependencies(){this.addCollateralForm.controls.collateral.valueChanges.subscribe(e=>{this.collateralData=e,this.maxQuantity=e.quantity}),this.addCollateralForm.controls.quantity.valueChanges.subscribe(e=>{this.addCollateralForm.patchValue({totalValue:this.collateralData.basePrice*e,totalCollateralValue:this.collateralData.basePrice*this.collateralData.pctToBase*e/100})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-add-collateral-dialog"]],decls:41,vars:39,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"layout-column",3,"formGroup"],["formControlName","collateral","required",""],[3,"value"],["type","number","matInput","","formControlName","quantity","required","",3,"max","min"],["type","text","matInput","","formControlName","totalValue",3,"disabled"],["type","text","matInput","","formControlName","totalCollateralValue",3,"disabled"],[1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"]],template:function(i,a){i&1&&(s(0,"h1",0),c(1),p(2,"translate"),l(),s(3,"div",1)(4,"mat-form-field")(5,"mat-label"),c(6),p(7,"translate"),l(),s(8,"mat-select",2),ue(9,kO,2,2,"mat-option",3,Ce),l(),s(11,"mat-error"),c(12),p(13,"translate"),p(14,"translate"),s(15,"strong"),c(16),p(17,"translate"),l()()(),s(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),l(),T(22,"input",4),M(23,FO,7,9,"mat-error"),M(24,RO,5,4,"mat-error"),l(),s(25,"mat-form-field")(26,"mat-label"),c(27),p(28,"translate"),l(),T(29,"input",5),l(),s(30,"mat-form-field")(31,"mat-label"),c(32),p(33,"translate"),l(),T(34,"input",6),l()(),s(35,"mat-dialog-actions",7)(36,"button",8),c(37),p(38,"translate"),l(),s(39,"button",9),c(40),l()()),i&2&&(o(),b(m(2,19,"labels.heading.Add Loan Collateral")),o(2),x("formGroup",a.addCollateralForm),o(3),b(m(7,21,"labels.inputs.Collateral")),o(3),fe(a.collateralTypeData),o(3),$t(" ",m(13,23,"labels.inputs.Collateral")," ",m(14,25,"labels.commons.is")," "),o(4),b(m(17,27,"labels.commons.required")),o(4),b(m(21,29,"labels.inputs.Quantity")),o(2),x("max",a.maxQuantity)("min",0),o(),O(a.addCollateralForm.controls.quantity.hasError("required")?23:-1),o(),O(a.addCollateralForm.controls.quantity.hasError("max")?24:-1),o(3),b(m(28,31,"labels.inputs.Total Value")),o(2),x("disabled",!0),o(3),b(m(33,33,"labels.inputs.Total Collateral Value")),o(2),x("disabled",!0),o(3),b(m(38,35,"labels.buttons.Cancel")),o(2),x("mat-dialog-close",La(37,NO,a.addCollateralForm))("disabled",!a.addCollateralForm.valid||a.addCollateralForm.pristine),o(),v(" ",a.layout.addButtonText," "))},dependencies:[wt,Tt,we,Mi,he,Ee,je,Uf,Vf,Le,Ne,_e,ge,Ve,Pe,In,On,Wt,Ur,Ho,Go,Kl,Pt],encapsulation:2})}}return t})();var BO=()=>["../","general"];function qO(t,n){if(t&1&&T(0,"mifosx-input-amount",4),t&2){let e=P();x("currency",e.currency)("isRequired",!0)("inputFormControl",e.loansAccountTermsForm.controls.principalAmount)("inputLabel","Principal")}}function jO(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Loan Term")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function zO(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function VO(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Frequency")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function UO(t,n){t&1&&(s(0,"mat-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",60),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Fixed Length")))}function HO(t,n){if(t&1&&(s(0,"span",12),c(1),p(2,"find"),l()),t&2){let e=P();o(),b(Ye(2,1,e.loansAccountTermsForm.value.loanTermFrequencyType,e.termFrequencyTypeData,"id","value"))}}function GO(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Number of repayments")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function WO(t,n){t&1&&(s(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",61),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Installment Amount")))}function $O(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Repaid every")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function YO(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function ZO(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function KO(t,n){if(t&1&&(s(0,"mat-form-field",20)(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",62),ue(5,ZO,3,5,"mat-option",10,Ce),l()()),t&2){let e=P();o(2),b(m(3,1,"labels.inputs.Select On")),o(3),fe(e.repaymentFrequencyNthDayTypeData)}}function JO(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function XO(t,n){if(t&1&&(s(0,"mat-form-field",20)(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",63),ue(5,JO,3,5,"mat-option",10,Ce),l()()),t&2){let e=P();o(2),b(m(3,1,"labels.inputs.Select Day")),o(3),fe(e.repaymentFrequencyDaysOfWeekTypeData)}}function QO(t,n){t&1&&(s(0,"mat-checkbox",21),p(1,"translate"),c(2),p(3,"translate"),l()),t&2&&(x("matTooltip",ce(m(1,3,"tooltips.Leave this checkbox checked if the loan has Down Payment"))),o(2),v(" ",m(3,5,"labels.inputs.Enable Down Payment")," "))}function t6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function e6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function n6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function i6(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Amortization Type")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function a6(t,n){t&1&&(s(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",69),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Principal Percentage Per Installment")))}function o6(t,n){if(t&1&&(s(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",64),l(),s(5,"mat-form-field",7)(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"mat-select",65),ue(10,t6,3,5,"mat-option",10,Ce),l(),s(12,"mat-error"),c(13),p(14,"translate"),p(15,"translate"),s(16,"strong"),c(17),p(18,"translate"),l()()(),s(19,"mat-form-field",7)(20,"mat-label"),c(21),p(22,"translate"),l(),s(23,"mat-select",66),p(24,"translate"),ue(25,e6,3,5,"mat-option",10,Ce),l()(),s(27,"mat-form-field",7)(28,"mat-label"),c(29),p(30,"translate"),l(),s(31,"mat-select",67),p(32,"translate"),ue(33,n6,3,5,"mat-option",10,Ce),l(),M(35,i6,7,9,"mat-error"),l(),M(36,a6,5,3,"mat-form-field",7),s(37,"mat-checkbox",68)(38,"p"),c(39),p(40,"translate"),l()()),t&2){let e=P();o(2),v("",m(3,15,"labels.inputs.Nominal interest rate")," %"),o(5),b(m(8,17,"labels.inputs.Frequency")),o(3),fe(e.interestRateFrequencyTypeData),o(3),$t(" ",m(14,19,"labels.inputs.Nominal interest rate frequency")," ",m(15,21,"labels.commons.is")," "),o(4),b(m(18,23,"labels.commons.required")),o(4),b(m(22,25,"labels.inputs.Interest method")),o(2),x("matTooltip",ce(m(24,27,"tooltips.The Interest method value"))),o(2),fe(e.interestTypeData),o(4),b(m(30,29,"labels.inputs.Amortization")),o(2),x("matTooltip",ce(m(32,31,"tooltips.The Amortization value"))),o(2),fe(e.amortizationTypeData),o(2),O(e.loansAccountTermsForm.controls.amortizationType.hasError("required")?35:-1),o(),O(e.isEqualPrincipalPayments()?36:-1),o(),x("checked",e.loansAccountTermsData==null?null:e.loansAccountTermsData.isEqualAmortization),o(2),b(m(40,33,"labels.inputs.Is Equal Amortization"))}}function r6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function l6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function s6(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Amortization Type")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function c6(t,n){if(t&1&&(s(0,"div",22)(1,"mat-form-field",23)(2,"mat-label"),c(3),p(4,"translate"),l(),s(5,"mat-select",70),ue(6,r6,3,5,"mat-option",10,Ce),l()(),s(8,"mat-form-field",23)(9,"mat-label"),c(10),p(11,"translate"),l(),s(12,"mat-select",67),p(13,"translate"),ue(14,l6,3,5,"mat-option",10,Ce),l(),M(16,s6,7,9,"mat-error"),l(),s(17,"mat-checkbox",71)(18,"p"),c(19),p(20,"translate"),l()()()),t&2){let e=P();o(3),b(m(4,6,"labels.inputs.Interest Method")),o(3),fe(e.interestTypeData),o(4),b(m(11,8,"labels.inputs.Amortization")),o(2),x("matTooltip",ce(m(13,10,"tooltips.The Amortization value"))),o(2),fe(e.amortizationTypeData),o(2),O(e.loansAccountTermsForm.controls.amortizationType.hasError("required")?16:-1),o(3),v("",m(20,12,"labels.inputs.Is Floating Rate"),"?")}}function p6(t,n){if(t&1&&(s(0,"div",23)(1,"div",72)(2,"span",35)(3,"p"),c(4),p(5,"translate"),l()(),s(6,"span",36)(7,"p"),c(8),p(9,"translateKey"),l()()()()),t&2){let e=P();o(4),b(m(5,2,"labels.inputs.Loan Schedule Type")),o(4),b(Ge(9,4,e.loanScheduleType.value,"catalogs"))}}function m6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.code),o(),v(" ",Ge(2,2,e.name,"catalogs")," ")}}function d6(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Repayment Strategy")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function u6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),p(2,"translateKey"),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",Ge(2,2,e.value,"catalogs")," ")}}function f6(t,n){t&1&&(X(0,27),s(1,"mat-checkbox",73)(2,"p"),c(3),p(4,"translate"),l()(),Q()),t&2&&(o(3),b(m(4,1,"labels.inputs.Is interest recognition on disbursement date?")))}function h6(t,n){if(t&1&&(s(0,"div",33)(1,"p")(2,"span",74)(3,"b"),c(4),p(5,"translate"),l()(),s(6,"span",23),c(7),l()()()),t&2){let e=P();o(4),b(m(5,2,"labels.inputs.Delinquency Bucket")),o(3),b(e.loanProduct==null?null:e.loanProduct.delinquencyBucket.name)}}function g6(t,n){t&1&&(s(0,"div",23)(1,"mat-checkbox",75)(2,"p"),c(3),p(4,"translate"),l()()()),t&2&&(o(3),b(m(4,1,"labels.inputs.Enable installment level Delinquency")))}function _6(t,n){if(t&1&&(s(0,"mat-option",10),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.accountNo," ")}}function C6(t,n){if(t&1&&(s(0,"mat-form-field",77)(1,"mat-label"),c(2),p(3,"translate"),l(),s(4,"mat-select",78),ue(5,_6,2,2,"mat-option",10,Ce),l()()),t&2){let e=P(2);o(2),b(m(3,1,"labels.inputs.Loan closed with Topup")),o(3),fe(e.clientActiveLoanData)}}function b6(t,n){if(t&1&&(X(0,23),s(1,"mat-checkbox",76)(2,"p"),c(3),p(4,"translate"),l()(),M(5,C6,7,3,"mat-form-field",77),Q()),t&2){let e=P();o(3),v("",m(4,2,"labels.inputs.Is Topup Loan"),"?"),o(2),O(e.loansAccountTermsForm.controls.isTopup.value?5:-1)}}function v6(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",36),c(5),p(6,"translateKey"),l()()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Days in year")),o(3),b(Ge(6,4,e.loansAccountTermsData.daysInYearType.value,"catalogs"))}}function x6(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",36),c(5),p(6,"translateKey"),l()()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Days in month")),o(3),b(Ge(6,4,e.loansAccountTermsData.daysInMonthType.value,"catalogs"))}}function y6(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",36),c(5),l()()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Advance payments adjustment type")),o(3),b(e.loansAccountTermsData.interestRecalculationData.rescheduleStrategyType.value)}}function S6(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2);o(),v(" on ",e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday.value)}}function D6(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2);o(),v("on day ",e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay)}}function w6(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2);o(),$t("on ",e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyNthDay.value," ",e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday.value)}}function T6(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",36),c(5),p(6,"translateKey"),l()(),s(7,"div",34)(8,"span",35),c(9),p(10,"translate"),l(),s(11,"span",36)(12,"span"),c(13),l(),M(14,S6,2,1,"span"),M(15,D6,2,1,"span"),M(16,w6,2,2,"span"),l()()),t&2){let e=P();o(2),b(m(3,7,"labels.inputs.Interest recalculation compounding on")),o(3),b(Ge(6,9,e.loansAccountTermsData.interestRecalculationData.interestRecalculationCompoundingType.value,"catalogs")),o(4),b(m(10,12,"labels.inputs.Frequency Interval for recalculation")),o(4),b(e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.value),o(),O(e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id===3&&e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday?14:-1),o(),O(e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id===4&&e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay?15:-1),o(),O(e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id===4&&!e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay&&e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyNthDay?16:-1)}}function P6(t,n){if(t&1&&(s(0,"div",34)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",36),c(5),l()()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Frequency Interval for recalculation")),o(3),b(e.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyInterval)}}function A6(t,n){t&1&&(s(0,"div",34)(1,"h4",5),c(2),p(3,"translate"),l()()),t&2&&(o(2),b(m(3,1,"labels.heading.Loan Tranche Details")))}function M6(t,n){t&1&&(s(0,"mat-checkbox",79),p(1,"translate"),c(2),p(3,"translate"),l()),t&2&&(x("matTooltip",ce(m(1,3,"tooltips.Allow full term length for each tranche disbursement"))),o(2),v(" ",m(3,5,"labels.inputs.Allow full term for each tranche")," "))}function O6(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Maximum allowed outstanding balance")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function I6(t,n){t&1&&(s(0,"div",34)(1,"h4",5),c(2),p(3,"translate"),l()()),t&2&&(o(2),v(" ",m(3,1,"labels.heading.Loan Tranche Details are not allowed for this Loan Product")," "))}function E6(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Expected Disbursement Date")))}function L6(t,n){if(t&1&&(s(0,"td",88),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.expectedDisbursementDate)," ")}}function N6(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Principal")))}function k6(t,n){if(t&1&&(s(0,"td",88),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.principal," ")}}function F6(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function R6(t,n){if(t&1){let e=xt();s(0,"td",88)(1,"button",89),p(2,"translate"),it("click",function(){let a=mt(e).index,r=P(2);return dt(r.removeDisbursementDataEntry(a))}),T(3,"fa-icon",90),l()()}t&2&&(o(),x("matTooltip",ce(m(2,2,"tooltips.Delete"))))}function B6(t,n){t&1&&T(0,"tr",91)}function q6(t,n){t&1&&T(0,"tr",92)}function j6(t,n){if(t&1){let e=xt();T(0,"mat-divider",27),M(1,A6,4,3,"div",34),M(2,M6,4,7,"mat-checkbox",79),s(3,"div",34)(4,"mat-form-field",23)(5,"mat-label"),c(6),p(7,"translate"),l(),T(8,"input",80),M(9,O6,7,9,"mat-error"),l(),s(10,"span",23)(11,"button",81),it("click",function(){mt(e);let a=P();return dt(a.addDisbursementDataEntry(a.disbursementData))}),T(12,"fa-icon",82),l()()(),M(13,I6,4,3,"div",34),s(14,"table",83),X(15,84),k(16,E6,3,3,"th",46)(17,L6,3,3,"td",47),Q(),X(18,85),k(19,N6,3,3,"th",46)(20,k6,2,1,"td",47),Q(),X(21,86),k(22,F6,3,3,"th",46)(23,R6,4,4,"td",47),Q(),k(24,B6,1,0,"tr",52)(25,q6,1,0,"tr",53),l()}if(t&2){let e=P();o(),O(e.allowAddDisbursementDetails()?1:-1),o(),O(e.isFullTermTrancheEditable()?2:-1),o(4),b(m(7,10,"labels.inputs.Maximum allowed outstanding balance")),o(3),O(e.loansAccountTermsForm.controls.maxOutstandingLoanBalance.hasError("required")?9:-1),o(2),x("disabled",e.isMultiDisbursedCompleted),o(2),O(e.allowAddDisbursementDetails()?-1:13),o(),x("dataSource",e.disbursementDataSource)("hidden",e.disbursementDataSource.length===0),o(10),x("matHeaderRowDef",e.disbursementDisplayedColumns),o(),x("matRowDefColumns",e.disbursementDisplayedColumns)}}function z6(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2);o(),v(" on ",e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value," ")}}function V6(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2);o(),v("on day ",e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay," ")}}function U6(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P(2);o(),$t("on ",e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyNthDay.value," ",e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value," ")}}function H6(t,n){if(t&1&&(s(0,"div",37)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",36),c(5),M(6,z6,2,1,"span"),M(7,V6,2,1,"span"),M(8,U6,2,2,"span"),l()()),t&2){let e=P();o(2),b(m(3,5,"labels.inputs.Frequency for compounding")),o(3),v("",e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.value," "),o(),O(e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id===3&&e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday?6:-1),o(),O(e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay?7:-1),o(),O(e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&!e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay&&e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyNthDay?8:-1)}}function G6(t,n){if(t&1&&(s(0,"div",37)(1,"span",35),c(2),p(3,"translate"),l(),s(4,"span",36),c(5),l()()),t&2){let e=P();o(2),b(m(3,2,"labels.inputs.Frequency Interval for compounding")),o(3),b(e.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyInterval)}}function W6(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.name")))}function $6(t,n){if(t&1&&(s(0,"td",88),c(1),l()),t&2){let e=n.$implicit;o(),b(e.type.name)}}function Y6(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Quantity")))}function Z6(t,n){if(t&1&&(s(0,"td",88),c(1),l()),t&2){let e=n.$implicit;o(),b(e.value)}}function K6(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Total Value")))}function J6(t,n){if(t&1&&(s(0,"td",88),c(1),l()),t&2){let e=n.$implicit;o(),b(e.type.basePrice*e.value)}}function X6(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Total Collateral Value")))}function Q6(t,n){if(t&1&&(s(0,"td",88),c(1),l()),t&2){let e=n.$implicit;o(),b(e.type.pctToBase*e.type.basePrice*e.value/100)}}function tI(t,n){t&1&&(s(0,"th",87),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function eI(t,n){if(t&1){let e=xt();s(0,"td",88)(1,"button",93),it("click",function(){let a=mt(e).index,r=P();return dt(r.deleteCollateral(a))}),T(2,"fa-icon",90),l()()}}function nI(t,n){t&1&&T(0,"tr",91)}function iI(t,n){t&1&&T(0,"tr",92)}function aI(t,n){t&1&&(s(0,"button",59),c(1),p(2,"translate"),l()),t&2&&(x("routerLink",Ut(4,BO)),o(),v(" ",m(2,2,"labels.buttons.Cancel")," "))}var Io=(()=>{class t{constructor(){this.formBuilder=A(Te),this.settingsService=A(oe),this.route=A(Et),this.dialog=A(Gn),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.disbursementDataSource=[],this.transactionProcessingStrategyOptions=[],this.repaymentStrategyDisabled=!1,this.isCollateralSufficient=!1,this.totalCollateralValue=0,this.collateralDataSource=[],this.loanCollateralDisplayedColumns=["type","value","totalValue","totalCollateralValue","action"],this.disbursementDisplayedColumns=["expectedDisbursementDate","principal","actions"],this.totalMultiDisbursed=0,this.isMultiDisbursedCompleted=!1,this.pristine=!0,this.loanId=null,this.loanScheduleType=null,this.loanProduct=null,this.interestRateFrequencyTypeData=[],this.productEnableDownPayment=!1,this.enableIncomeCapitalization=!1,this.enableBuyDownFee=!1,this.isProgressive=!1,this.loanId=this.route.snapshot.params.loanId,this.createloansAccountTermsForm()}ngOnChanges(){if(this.loansAccountProductTemplate){if(this.currency=this.loansAccountProductTemplate.currency,this.loansAccountTermsData=this.loansAccountProductTemplate,this.loanId!=null&&this.loansAccountTemplate.accountNo&&(this.loansAccountTermsData=this.loansAccountTemplate),this.productEnableDownPayment=this.loansAccountTermsData.product.enableDownPayment,this.enableIncomeCapitalization=this.loansAccountTermsData.product.enableIncomeCapitalization,this.enableBuyDownFee=this.loansAccountTermsData.product.enableBuyDownFee,this.isProgressive=this.loansAccountTermsData.loanScheduleType.code==Gr.LOAN_SCHEDULE_TYPE_PROGRESSIVE,this.loansAccountTermsData.product&&(this.loanProduct=this.loansAccountTermsData.product),this.interestRateFrequencyTypeData=this.loansAccountTermsData.interestRateFrequencyTypeOptions,this.loansAccountTermsForm.patchValue({principalAmount:this.loansAccountTermsData.principal,loanTermFrequency:this.loansAccountTermsData.termFrequency,loanTermFrequencyType:this.loansAccountTermsData.termPeriodFrequencyType.id,numberOfRepayments:this.loansAccountTermsData.numberOfRepayments,repaymentEvery:this.loansAccountTermsData.repaymentEvery,repaymentFrequencyType:this.loansAccountTermsData.repaymentFrequencyType.id,amortizationType:this.loansAccountTermsData.amortizationType.id,isEqualAmortization:this.loansAccountTermsData.isEqualAmortization,interestType:this.loansAccountTermsData.interestType.id,isFloatingInterestRate:this.loansAccountTermsData.isLoanProductLinkedToFloatingRate?!1:null,interestCalculationPeriodType:this.loansAccountTermsData.interestCalculationPeriodType.id,allowPartialPeriodInterestCalculation:this.loansAccountTermsData.allowPartialPeriodInterestCalculation,inArrearsTolerance:this.loansAccountTermsData.inArrearsTolerance,graceOnPrincipalPayment:this.loansAccountTermsData.graceOnPrincipalPayment,graceOnInterestPayment:this.loansAccountTermsData.graceOnInterestPayment,graceOnArrearsAgeing:this.loansAccountTermsData.graceOnArrearsAgeing,graceOnInterestCharged:this.loansAccountTermsData.graceOnInterestCharged,fixedEmiAmount:this.loansAccountTermsData.fixedEmiAmount,maxOutstandingLoanBalance:this.loansAccountTermsData.maxOutstandingLoanBalance,transactionProcessingStrategyCode:this.loansAccountTermsData.transactionProcessingStrategyCode,interestRateDifferential:this.loansAccountTermsData.interestRateDifferential,multiDisburseLoan:this.loansAccountTermsData.multiDisburseLoan,interestRateFrequencyType:this.loansAccountTermsData.interestRateFrequencyType.id,balloonRepaymentAmount:this.loansAccountTermsData.balloonRepaymentAmount,interestRecognitionOnDisbursementDate:this.loansAccountTermsData.interestRecognitionOnDisbursementDate||!1}),this.setAdvancedPaymentStrategyControls(),this.loansAccountTermsData.loanScheduleType.code==Gr.LOAN_SCHEDULE_TYPE_CUMULATIVE&&this.loansAccountTermsForm.removeControl("interestRecognitionOnDisbursementDate"),this.loansAccountTermsData.isLoanProductLinkedToFloatingRate&&this.loansAccountTermsForm.removeControl("interestRatePerPeriod"),this.multiDisburseLoan=this.loansAccountTermsData.multiDisburseLoan,this.loansAccountTermsData.disbursementDetails&&(this.disbursementDataSource=this.loansAccountTermsData.disbursementDetails,this.totalMultiDisbursed=0,this.disbursementDataSource.forEach(i=>{this.totalMultiDisbursed+=i.principal})),this.isDelinquencyEnabled()&&this.loansAccountTermsForm.addControl("enableInstallmentLevelDelinquency",new pe(this.loansAccountTermsData.enableInstallmentLevelDelinquency||this.loanProduct.enableInstallmentLevelDelinquency)),this.collateralDataSource=this.loansAccountTermsData.collateral||[],this.productEnableDownPayment){let i=this.loansAccountTermsData.enableDownPayment!==!1;this.loansAccountTermsForm.addControl("enableDownPayment",new pe(i))}if(this.isFullTermTrancheEditable()){let i=this.loansAccountTermsData.allowFullTermForTranche??this.loanProduct?.allowFullTermForTranche??!1;this.loansAccountTermsForm.patchValue({allowFullTermForTranche:i})}let e=this.loansAccountTermsData.product.allowAttributeOverrides;e.repaymentEvery||(this.loansAccountTermsForm.controls.repaymentEvery.disable(),this.loansAccountTermsForm.controls.repaymentFrequencyType.disable()),e.interestType||this.loansAccountTermsForm.controls.interestType.disable(),e.amortizationType||this.loansAccountTermsForm.controls.amortizationType.disable(),e.interestCalculationPeriodType||(this.loansAccountTermsForm.controls.interestCalculationPeriodType.disable(),this.loansAccountTermsForm.controls.allowPartialPeriodInterestCalculation.disable()),e.inArrearsTolerance||this.loansAccountTermsForm.controls.inArrearsTolerance.disable(),e.transactionProcessingStrategyCode||this.loansAccountTermsForm.controls.transactionProcessingStrategyCode.disable(),e.graceOnPrincipalAndInterestPayment||this.loansAccountTermsForm.controls.graceOnPrincipalPayment.disable(),e.graceOnPrincipalAndInterestPayment||this.loansAccountTermsForm.controls.graceOnInterestPayment.disable(),e.graceOnArrearsAgeing||this.loansAccountTermsForm.controls.graceOnArrearsAgeing.disable(),this.setOptions(),this.loansAccountTermsForm.removeControl("maxOutstandingLoanBalance"),this.allowAddDisbursementDetails()?this.loansAccountTermsForm.addControl("maxOutstandingLoanBalance",new pe(this.loansAccountTermsData?.maxOutstandingLoanBalance??null,Gt.required)):this.loansAccountTermsForm.addControl("maxOutstandingLoanBalance",new pe(this.loansAccountTermsData?.maxOutstandingLoanBalance??null))}}ngOnInit(){if(this.maxDate=this.settingsService.maxFutureDate,this.loansAccountTermsData=this.loansAccountProductTemplate,this.loanId!=null&&this.loansAccountTemplate.accountNo&&(this.loansAccountTermsData=this.loansAccountTemplate),this.loansAccountTermsData){if(this.loansAccountTermsData.loanProductId){let e=null;if(this.loansAccountTermsData.expectedFirstRepaymentOnDate){let i=new Date(this.loansAccountTermsData.expectedFirstRepaymentOnDate);e=this.formatDateToDDMMYYYY(i)}this.loansAccountTermsForm.patchValue({repaymentsStartingFromDate:this.loansAccountTermsData.expectedFirstRepaymentOnDate&&e})}this.loansAccountTermsForm.patchValue({principalAmount:this.loansAccountTermsData.principal,loanTermFrequency:this.loansAccountTermsData.termFrequency,loanTermFrequencyType:this.loansAccountTermsData.termPeriodFrequencyType.id,numberOfRepayments:this.loansAccountTermsData.numberOfRepayments,repaymentEvery:this.loansAccountTermsData.repaymentEvery,repaymentFrequencyType:this.loansAccountTermsData.repaymentFrequencyType.id,amortizationType:this.loansAccountTermsData.amortizationType.id,isEqualAmortization:this.loansAccountTermsData.isEqualAmortization,interestType:this.loansAccountTermsData.interestType.id,isFloatingInterestRate:this.loansAccountTermsData.isLoanProductLinkedToFloatingRate?!1:null,interestCalculationPeriodType:this.loansAccountTermsData.interestCalculationPeriodType.id,allowPartialPeriodInterestCalculation:this.loansAccountTermsData.allowPartialPeriodInterestCalculation,inArrearsTolerance:this.loansAccountTermsData.inArrearsTolerance,graceOnPrincipalPayment:this.loansAccountTermsData.graceOnPrincipalPayment,graceOnInterestPayment:this.loansAccountTermsData.graceOnInterestPayment,graceOnArrearsAgeing:this.loansAccountTermsData.graceOnArrearsAgeing,graceOnInterestCharged:this.loansAccountTermsData.graceOnInterestCharged,fixedEmiAmount:this.loansAccountTermsData.fixedEmiAmount,maxOutstandingLoanBalance:this.loansAccountTermsData.maxOutstandingLoanBalance,transactionProcessingStrategyCode:this.loansAccountTermsData.transactionProcessingStrategyCode,interestRateDifferential:this.loansAccountTermsData.interestRateDifferential,multiDisburseLoan:this.loansAccountTermsData.multiDisburseLoan,interestRateFrequencyType:this.loansAccountTermsData.interestRateFrequencyType.id,balloonRepaymentAmount:this.loansAccountTermsData.balloonRepaymentAmount,interestRecognitionOnDisbursementDate:this.loansAccountTermsData.interestRecognitionOnDisbursementDate||!1})}this.createloansAccountTermsForm(),this.setAdvancedPaymentStrategyControls(),this.setLoanTermListener(),this.loansAccountTermsForm.removeControl("maxOutstandingLoanBalance"),this.allowAddDisbursementDetails()?(this.loansAccountTermsForm.removeControl("maxOutstandingLoanBalance"),this.loansAccountTermsForm.addControl("maxOutstandingLoanBalance",new pe(this.loansAccountTermsData?.maxOutstandingLoanBalance??null,Gt.required))):this.loansAccountTermsForm.addControl("maxOutstandingLoanBalance",new pe(this.loansAccountTermsData?.maxOutstandingLoanBalance??null))}allowAddDisbursementDetails(){return this.multiDisburseLoan&&!this.loansAccountTermsData.disallowExpectedDisbursements}formatDateToDDMMYYYY(e){let i=e.getDate().toString().padStart(2,"0"),a=(e.getMonth()+1).toString().padStart(2,"0"),r=e.getFullYear();return`${i}-${a}-${r}`}setCustomValidators(){let e=this.loansAccountTermsForm.get("repaymentFrequencyNthDayType"),i=this.loansAccountTermsForm.get("repaymentFrequencyDayOfWeekType");this.loansAccountTermsForm.get("repaymentFrequencyType").valueChanges.subscribe(a=>{a===2?(e.setValidators([Gt.required]),i.setValidators([Gt.required])):(e.setValidators(null),i.setValidators(null)),e.updateValueAndValidity(),i.updateValueAndValidity()})}setLoanTermListener(){this.loansAccountTermsForm.get("numberOfRepayments").valueChanges.subscribe(e=>{let i=this.loansAccountTermsForm.value.repaymentEvery;this.calculateLoanTerm(e,i)}),this.loansAccountTermsForm.get("repaymentEvery").valueChanges.subscribe(e=>{let i=this.loansAccountTermsForm.value.numberOfRepayments;this.calculateLoanTerm(i,e)}),this.loansAccountTermsForm.get("loanTermFrequencyType").valueChanges.subscribe(e=>{this.loansAccountTermsForm.patchValue({repaymentFrequencyType:e})}),this.loansAccountTermsForm.get("amortizationType").valueChanges.subscribe(e=>{e===0?this.loansAccountTermsForm.addControl("fixedPrincipalPercentagePerInstallment",new pe("")):this.loansAccountTermsForm.removeControl("fixedPrincipalPercentagePerInstallment")})}setAdvancedPaymentStrategyControls(){this.loansAccountTermsData&&(this.loansAccountTermsForm.removeControl("interestRatePerPeriod"),this.loansAccountTermsForm.removeControl("fixedLength"),this.loansAccountTermsData.product.fixedLength?(this.loansAccountTermsForm.addControl("interestRatePerPeriod",new pe({value:0,disabled:!0},Gt.required)),this.loansAccountTermsForm.addControl("fixedLength",new pe(this.loansAccountTermsData.product.fixedLength))):this.loansAccountTermsForm.addControl("interestRatePerPeriod",new pe(this.loansAccountTermsData.interestRatePerPeriod,Gt.required)))}hasFixedLength(){return this.loansAccountTermsData?!!this.loansAccountTermsData.product?.fixedLength:!1}isEqualPrincipalPayments(){return this.loansAccountTermsForm.value.amortizationType===0}createloansAccountTermsForm(){this.loansAccountTermsForm=this.formBuilder.group({principalAmount:["",Gt.required],loanTermFrequency:[{value:"",disabled:!0},Gt.required],loanTermFrequencyType:["",Gt.required],numberOfRepayments:["",Gt.required],repaymentEvery:["",Gt.required],repaymentFrequencyType:[{value:"",disabled:!0},Gt.required],repaymentFrequencyNthDayType:[""],repaymentFrequencyDayOfWeekType:[""],repaymentsStartingFromDate:[""],interestChargedFromDate:[""],interestRatePerPeriod:[""],interestType:[""],isFloatingInterestRate:[null],isEqualAmortization:[""],amortizationType:["",Gt.required],interestCalculationPeriodType:[""],allowPartialPeriodInterestCalculation:[""],inArrearsTolerance:[""],graceOnInterestCharged:[""],graceOnPrincipalPayment:[""],graceOnInterestPayment:[""],graceOnArrearsAgeing:[""],loanIdToClose:[""],fixedEmiAmount:[""],isTopup:[""],maxOutstandingLoanBalance:[""],interestRateDifferential:[""],transactionProcessingStrategyCode:["",Gt.required],multiDisburseLoan:[!1],interestRateFrequencyType:[""],balloonRepaymentAmount:[""],interestRecognitionOnDisbursementDate:[!1],allowFullTermForTranche:[!1]})}calculateLoanTerm(e,i){let a=e*i;this.loansAccountTermsForm.patchValue({loanTermFrequency:a})}get disbursementData(){return{disbursementData:this.disbursementDataSource}}addDisbursementDataEntry(){let e=this.loansAccountTermsForm.get("principalAmount").value,i=[new la({controlName:"expectedDisbursementDate",label:"Expected Disbursement Date",value:new Date||"",type:"datetime-local",minDate:this.minDate,maxDate:this.maxDate,required:!0,order:1}),new Ti({controlName:"principal",label:`Principal(It should be less than equal to the ${e})`,value:"",type:"number",required:!0,order:2})],a={title:"Add Disbursement Details",layout:{addButtonText:"Add"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data){let d=u.data.value.principal*1;this.totalMultiDisbursed+d<=e&&(this.disbursementDataSource=this.disbursementDataSource.concat(u.data.value),this.totalMultiDisbursed+=d,this.isMultiDisbursedCompleted=this.totalMultiDisbursed===e,this.pristine=!1)}})}removeDisbursementDataEntry(e){let i=this.loansAccountTermsForm.get("principalAmount").value;this.dialog.open(ra,{data:{deleteContext:"this"}}).afterClosed().subscribe(r=>{if(r.delete){let u=this.disbursementDataSource[e].principal*1;this.disbursementDataSource.splice(e,1),this.disbursementDataSource=this.disbursementDataSource.concat([]),this.totalMultiDisbursed-=u,this.isMultiDisbursedCompleted=this.totalMultiDisbursed===i}})}addCollateral(){this.dialog.open(l0,{data:{collateralOptions:this.collateralOptions}}).afterClosed().subscribe(i=>{if(i.data){let a={type:i.data.value.collateral,value:i.data.value.quantity};this.totalCollateralValue+=a.type.pctToBase*a.type.basePrice*a.value/100,this.collateralDataSource=this.collateralDataSource.concat(a),this.collateralOptions=this.collateralOptions.filter(r=>r.collateralId!==i.data.value.collateral.collateralId),this.loanPrincipal{if(a.delete){let r=this.collateralDataSource.splice(e,1);this.collateralOptions=this.collateralOptions.concat(r[0].type),this.totalCollateralValue-=r[0].type.pctToBase*r[0].type.basePrice*r[0].value/100,this.collateralDataSource=this.collateralDataSource.concat([]),this.pristine=!1,this.loanPrincipal!Gr.isAdvancedPaymentAllocationStrategy(e.code)),this.repaymentStrategyDisabled=!1):(this.loansAccountProductTemplate.transactionProcessingStrategyOptions.some(e=>{Gr.isAdvancedPaymentAllocationStrategy(e.code)&&this.transactionProcessingStrategyOptions.push(e)}),this.repaymentStrategyDisabled=!0)}isDelinquencyEnabled(){return!!this.loanProduct?.delinquencyBucket?.name}get loansAccountTerms(){return this.loansAccountTermsForm.getRawValue()}get loanCollateral(){return{collateral:this.collateralDataSource}}isFullTermTrancheEditable(){return this.isProgressive&&this.multiDisburseLoan===!0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-terms-step"]],inputs:{loansProductOptions:"loansProductOptions",loansAccountProductTemplate:"loansAccountProductTemplate",loansAccountTemplate:"loansAccountTemplate",loansAccountFormValid:"loansAccountFormValid",collateralOptions:"collateralOptions",loanPrincipal:"loanPrincipal"},features:[Vr],decls:218,vars:185,consts:[["repaymentsPicker",""],["interestPicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48",3,"currency","isRequired","inputFormControl","inputLabel"],[1,"mat-h4","flex-98"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-fill","flex-23"],["type","number","matInput","","required","","disabled","","formControlName","loanTermFrequency"],["required","","formControlName","loanTermFrequencyType"],[3,"value"],[1,"flex-fill","flex-20"],[1,"flex-20","label-field"],["type","number","matInput","","formControlName","numberOfRepayments",3,"matTooltip"],[1,"flex-fill","flex-23",3,"click"],["matInput","","formControlName","repaymentsStartingFromDate",3,"min","max","matTooltip","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","interestChargedFromDate",3,"min","max","matDatepicker","matTooltip"],["type","number","matInput","","required","","formControlName","repaymentEvery",3,"matTooltip"],["formControlName","repaymentFrequencyType","disabled","","required",""],[1,"flex-fill","flex-14"],["labelPosition","before","formControlName","enableDownPayment",1,"margin-b","flex-73",3,"matTooltip"],[1,"flex-48","layout-row","layout-xs-column"],[1,"flex-48"],["formControlName","transactionProcessingStrategyCode",3,"matTooltip","disabled"],["formControlName","interestCalculationPeriodType",3,"matTooltip"],["formControlName","allowPartialPeriodInterestCalculation",1,"flex-98",3,"matTooltip"],[1,"flex-98"],["matInput","","type","number","formControlName","inArrearsTolerance",3,"matTooltip"],["matInput","","formControlName","graceOnInterestCharged",3,"matTooltip"],["type","number","matInput","","formControlName","graceOnPrincipalPayment"],["type","number","matInput","","formControlName","graceOnInterestPayment"],["type","number","matInput","","formControlName","graceOnArrearsAgeing"],[1,"flex-48","flex-fill"],[1,"flex-100","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"flex-fill"],[1,"flex-50"],[1,"layout-column","table-name","flex-50"],[1,"layout-column","flex-50"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","type"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["matColumnDef","totalValue"],["matColumnDef","totalCollateralValue"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-raised-button","",3,"routerLink"],["type","number","matInput","","formControlName","fixedLength"],["type","number","matInput","","formControlName","fixedEmiAmount"],["formControlName","repaymentFrequencyNthDayType"],["formControlName","repaymentFrequencyDayOfWeekType"],["type","number","matInput","","formControlName","interestRatePerPeriod"],["formControlName","interestRateFrequencyType"],["formControlName","interestType",3,"matTooltip"],["required","","formControlName","amortizationType",3,"matTooltip"],["formControlName","isEqualAmortization",1,"flex-23",3,"checked"],["type","number","matInput","","formControlName","fixedPrincipalPercentagePerInstallment"],["formControlName","interestType"],["formControlName","isFloatingInterestRate",1,"flex-48"],[1,"layout-row"],["formControlName","interestRecognitionOnDisbursementDate",1,"flex-98"],[1,"flex-53"],["formControlName","enableInstallmentLevelDelinquency"],["formControlName","isTopup",1,"flex-20"],[1,"flex-fill","flex-24"],["formControlName","loanIdToClose"],["labelPosition","before","formControlName","allowFullTermForTranche",1,"flex-48","margin-v",3,"matTooltip"],["matInput","","type","number","formControlName","maxOutstandingLoanBalance"],["type","button","mat-icon-button","","color","primary","required","",3,"click","disabled"],["icon","plus-circle","size","lg"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","expectedDisbursementDate"],["matColumnDef","principal"],["matColumnDef","actions"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-icon-button","","color","warn",3,"click"]],template:function(i,a){if(i&1){let r=xt();s(0,"form",2)(1,"div",3),M(2,qO,1,4,"mifosx-input-amount",4),s(3,"h4",5),c(4),p(5,"translate"),T(6,"i",6),p(7,"translate"),l(),s(8,"mat-form-field",7)(9,"mat-label"),c(10),p(11,"translate"),l(),T(12,"input",8),M(13,jO,7,9,"mat-error"),l(),s(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),l(),s(18,"mat-select",9),ue(19,zO,3,5,"mat-option",10,Ce),l(),M(21,VO,7,9,"mat-error"),l(),M(22,UO,5,3,"mat-form-field",11),M(23,HO,3,6,"span",12),s(24,"h4",5),c(25),p(26,"translate"),l(),s(27,"mat-form-field",7)(28,"mat-label"),c(29),p(30,"translate"),l(),T(31,"input",13),p(32,"translate"),M(33,GO,7,9,"mat-error"),l(),M(34,WO,5,3,"mat-form-field",7),s(35,"mat-form-field",14),it("click",function(){mt(r);let d=Lt(43);return dt(d.open())}),s(36,"mat-label"),c(37),p(38,"translate"),l(),T(39,"input",15),p(40,"translate"),T(41,"mat-datepicker-toggle",16)(42,"mat-datepicker",null,0),l(),s(44,"mat-form-field",14),it("click",function(){mt(r);let d=Lt(52);return dt(d.open())}),s(45,"mat-label"),c(46),p(47,"translate"),l(),T(48,"input",17),p(49,"translate"),T(50,"mat-datepicker-toggle",16)(51,"mat-datepicker",null,1),l(),s(53,"h4",5),c(54),p(55,"translate"),T(56,"i",6),p(57,"translate"),l(),s(58,"mat-form-field",7)(59,"mat-label"),c(60),p(61,"translate"),l(),T(62,"input",18),p(63,"translate"),M(64,$O,7,9,"mat-error"),l(),s(65,"mat-form-field",7)(66,"mat-label"),c(67),p(68,"translate"),l(),s(69,"mat-select",19),ue(70,YO,3,5,"mat-option",10,Ce),l()(),M(72,KO,7,3,"mat-form-field",20),M(73,XO,7,3,"mat-form-field",20),M(74,QO,4,7,"mat-checkbox",21),s(75,"h4",5),c(76),p(77,"translate"),l(),M(78,o6,41,35),M(79,c6,21,14,"div",22),s(80,"h4",5),c(81),p(82,"translate"),l(),M(83,p6,10,7,"div",23),s(84,"mat-form-field",23)(85,"mat-label"),c(86),p(87,"translate"),l(),s(88,"mat-select",24),p(89,"translate"),ue(90,m6,3,5,"mat-option",10,Ce),l(),M(92,d6,7,9,"mat-error"),l(),s(93,"h4",5),c(94),p(95,"translate"),l(),s(96,"mat-form-field",23)(97,"mat-label"),c(98),p(99,"translate"),l(),s(100,"mat-select",25),p(101,"translate"),ue(102,u6,3,5,"mat-option",10,Ce),l()(),s(104,"mat-checkbox",26),p(105,"translate"),s(106,"p"),c(107),p(108,"translate"),l()(),M(109,f6,5,3,"ng-container",27),s(110,"mat-form-field",23)(111,"mat-label"),c(112),p(113,"translate"),l(),T(114,"input",28),p(115,"translate"),l(),s(116,"mat-form-field",23)(117,"mat-label"),c(118),p(119,"translate"),l(),T(120,"input",29),p(121,"translate"),l(),s(122,"h4",5),c(123),p(124,"translate"),T(125,"i",6),p(126,"translate"),l(),s(127,"mat-form-field",7)(128,"mat-label"),c(129),p(130,"translate"),l(),T(131,"input",30),l(),s(132,"mat-form-field",7)(133,"mat-label"),c(134),p(135,"translate"),l(),T(136,"input",31),l(),s(137,"mat-form-field",23)(138,"mat-label"),c(139),p(140,"translate"),l(),T(141,"input",32),l(),M(142,h6,8,4,"div",33),M(143,g6,5,3,"div",23),M(144,b6,6,4,"ng-container",23),T(145,"mat-divider",27),s(146,"div",34)(147,"span",35)(148,"b"),c(149),p(150,"translate"),l()(),s(151,"span",36),c(152),p(153,"yesNo"),l()(),M(154,v6,7,7,"div",34),M(155,x6,7,7,"div",34),M(156,y6,6,4,"div",34),M(157,T6,17,14),M(158,P6,6,4,"div",34),s(159,"div",34)(160,"span",35)(161,"b"),c(162),p(163,"translate"),l()(),s(164,"span",35),c(165),p(166,"yesNo"),l()(),s(167,"div",34)(168,"span",35)(169,"b"),c(170),p(171,"translate"),l()(),s(172,"span",35),c(173),p(174,"yesNo"),l()(),M(175,j6,26,12),M(176,H6,9,7,"div",37),M(177,G6,6,4,"div",37),T(178,"mat-divider",27),s(179,"div",38)(180,"div",39)(181,"h4",5),c(182),p(183,"translate"),l()(),s(184,"div",40)(185,"div",41)(186,"button",42),it("click",function(){return mt(r),dt(a.addCollateral())}),T(187,"fa-icon",43),c(188),p(189,"translate"),l()()()(),s(190,"table",44),X(191,45),k(192,W6,3,3,"th",46)(193,$6,2,1,"td",47),Q(),X(194,48),k(195,Y6,3,3,"th",46)(196,Z6,2,1,"td",47),Q(),X(197,49),k(198,K6,3,3,"th",46)(199,J6,2,1,"td",47),Q(),X(200,50),k(201,X6,3,3,"th",46)(202,Q6,2,1,"td",47),Q(),X(203,51),k(204,tI,3,3,"th",46)(205,eI,3,0,"td",47),Q(),k(206,nI,1,0,"tr",52)(207,iI,1,0,"tr",53),l()(),s(208,"div",54)(209,"button",55),T(210,"fa-icon",56),c(211),p(212,"translate"),l(),s(213,"button",57),c(214),p(215,"translate"),T(216,"fa-icon",58),l(),M(217,aI,3,5,"button",59),l()()}if(i&2){let r=Lt(43),u=Lt(52);x("formGroup",a.loansAccountTermsForm),o(2),O(a.currency?2:-1),o(2),v(" ",m(5,97,"labels.heading.Term Options")," "),o(2),x("matTooltip",ce(m(7,99,"tooltips.The loan term parameter in loan accounts"))),o(4),b(m(11,101,"labels.inputs.Loan Term")),o(3),O(a.loansAccountTermsForm.controls.loanTermFrequency.hasError("required")?13:-1),o(3),b(m(17,103,"labels.inputs.Frequency")),o(3),fe(a.termFrequencyTypeData),o(2),O(a.loansAccountTermsForm.controls.loanTermFrequencyType.hasError("required")?21:-1),o(),O(a.hasFixedLength()?22:-1),o(),O(a.hasFixedLength()?23:-1),o(2),b(m(26,105,"labels.inputs.Repayments")),o(4),b(m(30,107,"labels.inputs.Number of repayments")),o(2),x("matTooltip",ce(m(32,109,"tooltips.Enter the total count of repayments"))),o(2),O(a.loansAccountTermsForm.controls.numberOfRepayments.hasError("required")?33:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.canDefineInstallmentAmount?34:-1),o(3),b(m(38,111,"labels.inputs.First repayment on")),o(2),x("matTooltip",ce(m(40,113,"tooltips.May be entered to override")))("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(2),x("for",r),o(5),b(m(47,115,"labels.inputs.Interest charged from")),o(2),x("matTooltip",ce(m(49,117,"tooltips.May be entered to override the date")))("min",a.minDate)("max",a.maxDate)("matDatepicker",u),o(2),x("for",u),o(4),v(" ",m(55,119,"labels.heading.Repaid Every")," "),o(2),x("matTooltip",ce(m(57,121,"tooltips.Fields are input to calculating the repayment schedule"))),o(4),b(m(61,123,"labels.inputs.Repaid every")),o(2),x("matTooltip",ce(m(63,125,"tooltips.Fields are input to calculating the repayment schedule"))),o(2),O(a.loansAccountTermsForm.controls.repaymentEvery.hasError("required")?64:-1),o(3),b(m(68,127,"labels.inputs.Frequency")),o(3),fe(a.termFrequencyTypeData),o(2),O(a.loansAccountTermsForm.controls.repaymentFrequencyType.value===2?72:-1),o(),O(a.loansAccountTermsForm.controls.repaymentFrequencyType.value===2?73:-1),o(),O(a.productEnableDownPayment?74:-1),o(2),b(m(77,129,"labels.inputs.Nominal interest rate")),o(2),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isLoanProductLinkedToFloatingRate?-1:78),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isLoanProductLinkedToFloatingRate?79:-1),o(2),b(m(82,131,"labels.inputs.Loan Schedule")),o(2),O(a.loanScheduleType?83:-1),o(3),b(m(87,133,"labels.inputs.Repayment Strategy")),o(2),x("matTooltip",ce(m(89,135,"tooltips.The repayment strategy")))("disabled",a.repaymentStrategyDisabled),o(2),fe(a.transactionProcessingStrategyOptions),o(2),O(a.loansAccountTermsForm.controls.transactionProcessingStrategyCode.hasError("required")?92:-1),o(2),b(m(95,137,"labels.heading.Interest Calculations")),o(4),b(m(99,139,"labels.inputs.Interest calculation period")),o(2),x("matTooltip",ce(m(101,141,"tooltips.Daily - Will Calculate the interest"))),o(2),fe(a.interestCalculationPeriodTypeData),o(2),x("matTooltip",ce(m(105,143,"tooltips.To be used with SAME AS REPAYMENT PERIOD"))),o(3),b(m(108,145,"labels.inputs.Calculate interest for exact days in partial period")),o(2),O(a.isProgressive?109:-1),o(3),v("",m(113,147,"labels.inputs.Arrears tolerance")," "),o(2),x("matTooltip",ce(m(115,149,"tooltips.With Arrears tolerance"))),o(4),b(m(119,151,"labels.inputs.Interest free period")),o(2),x("matTooltip",ce(m(121,153,"tooltips.If the Interest Free Period"))),o(3),v(" ",m(124,155,"labels.heading.Moratorium")," "),o(2),x("matTooltip",ce(m(126,157,"tooltips.The moratorium information"))),o(4),b(m(130,159,"labels.inputs.Grace on principal payment")),o(5),b(m(135,161,"labels.inputs.Grace on interest payment")),o(5),b(m(140,163,"labels.inputs.On arrears ageing")),o(3),O(a.isDelinquencyEnabled()?142:-1),o(),O(a.isDelinquencyEnabled()?143:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isTopup?144:-1),o(5),b(m(150,165,"labels.inputs.Recalculate Interest")),o(3),b(m(153,167,a.loansAccountTermsData==null?null:a.loansAccountTermsData.isInterestRecalculationEnabled)),o(2),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isInterestRecalculationEnabled?154:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isInterestRecalculationEnabled?155:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isInterestRecalculationEnabled?156:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isInterestRecalculationEnabled?157:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isInterestRecalculationEnabled&&a.loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id!==1?158:-1),o(4),b(m(163,169,"labels.inputs.Enable income capitalization")),o(3),b(m(166,171,a.enableIncomeCapitalization)),o(5),b(m(171,173,"labels.inputs.Enable Buy down fee")),o(3),b(m(174,175,a.enableBuyDownFee)),o(2),O(a.multiDisburseLoan?175:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isInterestRecalculationEnabled&&a.loansAccountTermsData.interestRecalculationData.interestRecalculationCompoundingType.id!==0?176:-1),o(),O(a.loansAccountTermsData!=null&&a.loansAccountTermsData.isInterestRecalculationEnabled&&a.loansAccountTermsData.interestRecalculationData.interestRecalculationCompoundingType.id!==0&&a.loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id!==1?177:-1),o(5),b(m(183,177,"labels.heading.Collaterals Data")),o(6),v("",m(189,179,"labels.buttons.Add")," "),o(2),x("dataSource",a.collateralDataSource),o(16),x("matHeaderRowDef",a.loanCollateralDisplayedColumns),o(),x("matRowDefColumns",a.loanCollateralDisplayedColumns),o(4),v(" ",m(212,181,"labels.buttons.Previous")," "),o(3),v(" ",m(215,183,"labels.buttons.Next")," "),o(3),O(a.loanId?217:-1)}},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Da,Ri,Oi,$o,Ba,un,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,za,mo,En,Pt,qa,Pp,Hr],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var oI=()=>["../","general"];function rI(t,n){if(t&1&&(s(0,"mat-option",3),c(1),l()),t&2){let e=n.$implicit;x("value",e),o(),v(" ",e.name," ")}}function lI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.name")))}function sI(t,n){if(t&1&&(s(0,"td",30),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.name+", "+((e.currency==null?null:e.currency.displaySymbol)||"")," ")}}function cI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Type")))}function pI(t,n){if(t&1&&(s(0,"td",30),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.chargeCalculationType.value," ")}}function mI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function dI(t,n){if(t&1){let e=xt();s(0,"td",30),c(1),s(2,"button",31),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.editChargeAmount(a))}),T(3,"fa-icon",32),l()()}if(t&2){let e=n.$implicit;o(),v(" ",e.amount," ")}}function uI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Collected On")))}function fI(t,n){if(t&1&&(s(0,"td",30),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.chargeTimeType.value," ")}}function hI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Date")))}function gI(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.dueDate)||"Unassigned"," ")}}function _I(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function CI(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.N/A")," "))}function bI(t,n){if(t&1){let e=xt();s(0,"button",31),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.editChargeDate(a))}),T(1,"fa-icon",32),l()}}function vI(t,n){if(t&1&&(s(0,"td",30),M(1,gI,3,3,"span"),M(2,_I,3,3,"span"),M(3,CI,3,3,"span"),M(4,bI,2,0,"button",33),l()),t&2){let e=n.$implicit;o(),O(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),o(),O(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),o(),O(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3),o(),O(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?4:-1)}}function xI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function yI(t,n){if(t&1){let e=xt();s(0,"td",30)(1,"button",34),it("click",function(){let a=mt(e).$implicit,r=P();return dt(r.deleteCharge(a))}),T(2,"fa-icon",35),l()()}}function SI(t,n){t&1&&T(0,"tr",36)}function DI(t,n){t&1&&T(0,"tr",37)}function wI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.name")))}function TI(t,n){if(t&1&&(s(0,"td",30),c(1),l()),t&2){let e=n.$implicit;o(),b(e.name+", "+((e.currency==null?null:e.currency.displaySymbol)||""))}}function PI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Type")))}function AI(t,n){if(t&1&&(s(0,"td",30),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeCalculationType.value)}}function MI(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function OI(t,n){if(t&1&&(s(0,"td",30),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.amount))}}function II(t,n){t&1&&(s(0,"th",29),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Collected On")))}function EI(t,n){if(t&1&&(s(0,"td",30),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeTimeType.value)}}function LI(t,n){t&1&&T(0,"tr",36)}function NI(t,n){t&1&&T(0,"tr",37)}function kI(t,n){t&1&&(s(0,"button",28),c(1),p(2,"translate"),l()),t&2&&(x("routerLink",Ut(4,oI)),o(),v(" ",m(2,2,"labels.buttons.Cancel")," "))}var Eo=(()=>{class t{constructor(){this.dialog=A(Gn),this.dateUtils=A(de),this.route=A(Et),this.settingsService=A(oe),this.chargesDataSource=[],this.overDueChargesDataSource=[],this.collateralDataSource=[],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","action"],this.overdueChargesDisplayedColumns=["name","type","amount","collectedon"],this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name","purpose","amount"],this.pristine=!0,this.isCollateralSufficient=!1,this.totalCollateralValue=0,this.loanId=null,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.loansAccountTemplate&&this.loansAccountTemplate.charges&&(this.chargesDataSource=this.loansAccountTemplate.charges.map(e=>ve(ie({},e),{id:e.id,chargeId:e.chargeId}))||[]),this.dataSource=new Li(this.activeClientMembers)}ngOnChanges(){if(this.loansAccountProductTemplate){this.loanPurposeOptions=this.loansAccountProductTemplate.loanPurposeOptions,this.chargeData=this.loansAccountProductTemplate.chargeOptions;let e=this.loansAccountTemplate?.gsimData?.groupId!=null;!this.loansSavingsAccountLinked&&!e&&(this.chargeData=this.chargeData.filter(a=>a.chargePaymentMode?.value!="Account transfer")),this.loansAccountProductTemplate.overdueCharges&&(this.overDueChargesDataSource=this.loansAccountProductTemplate.overdueCharges);let i=this.loanId!=null;this.loansAccountProductTemplate.charges&&this.loansAccountProductTemplate.charges.length>0&&this.chargesDataSource.length===0?this.chargesDataSource=this.loansAccountProductTemplate.charges.map(a=>ve(ie({},a),{chargeId:a.chargeId||a.id}))||[]:i&&this.loansAccountTemplate&&this.loansAccountTemplate.charges&&(this.chargesDataSource=this.loansAccountTemplate.charges.map(a=>ve(ie({},a),{id:a.id,chargeId:a.chargeId}))||[])}}addCharge(e){let i=ve(ie({},e.value),{chargeId:e.value.id||e.value.chargeId});this.chargesDataSource=this.chargesDataSource.concat([i]),e.value="",this.pristine=!1}editChargeAmount(e){let i=[new Ti({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})],a={title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data){let d=ve(ie({},e),{amount:u.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){let i=[new la({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],a={title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data){let d,g=this.settingsService.dateFormat,_=this.dateUtils.formatDate(u.data.value.date,g);switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":d=ve(ie({},e),{dueDate:_});break;case"Annual Fee":d=ve(ie({},e),{feeOnMonthDay:_});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let i=[new Ti({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],a={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data){let d=ve(ie({},e),{feeInterval:u.data.value.feeInterval});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,d),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.dialog.open(ra,{data:{deleteContext:`charge ${e.name}`}}).afterClosed().subscribe(a=>{a.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get isValid(){return!0}get loansAccountCharges(){return{charges:this.getUniqueCharges(this.chargesDataSource).map(i=>ve(ie({},i),{chargeId:i.chargeId??i.id}))}}getUniqueCharges(e){let i=new Map;for(let a of e??[]){let r=a.chargeId??a.id;r!=null&&i.set(r,ve(ie({},a),{chargeId:r}))}return Array.from(i.values())}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(let e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){let e=this.activeClientMembers.length;this.selectAllItems=e===0?!1:this.activeClientMembers.filter(i=>i.selected).length===e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-charges-step"]],inputs:{loansAccountProductTemplate:"loansAccountProductTemplate",loansAccountTemplate:"loansAccountTemplate",loansAccountFormValid:"loansAccountFormValid",activeClientMembers:"activeClientMembers",loansSavingsAccountLinked:"loansSavingsAccountLinked"},features:[Vr],decls:64,vars:24,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"flex-98"],[1,"mat-h4","flex-98"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","type"],["matColumnDef","collectedon"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-raised-button","",3,"routerLink"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","primary"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),l(),s(5,"mat-select",null,0),ue(7,rI,2,2,"mat-option",3,Ce),l()(),s(9,"div",4)(10,"button",5),it("click",function(){mt(r);let d=Lt(6);return dt(a.addCharge(d))}),T(11,"fa-icon",6),c(12),p(13,"translate"),l()(),s(14,"table",7),X(15,8),k(16,lI,3,3,"th",9)(17,sI,2,1,"td",10),Q(),X(18,11),k(19,cI,3,3,"th",9)(20,pI,2,1,"td",10),Q(),X(21,12),k(22,mI,3,3,"th",9)(23,dI,4,1,"td",10),Q(),X(24,13),k(25,uI,3,3,"th",9)(26,fI,2,1,"td",10),Q(),X(27,14),k(28,hI,3,3,"th",9)(29,vI,5,4,"td",10),Q(),X(30,15),k(31,xI,3,3,"th",9)(32,yI,3,0,"td",10),Q(),k(33,SI,1,0,"tr",16)(34,DI,1,0,"tr",17),l(),T(35,"mat-divider",18),s(36,"h4",19),c(37),p(38,"translate"),l(),s(39,"table",20),X(40,8),k(41,wI,3,3,"th",9)(42,TI,2,1,"td",10),Q(),X(43,21),k(44,PI,3,3,"th",9)(45,AI,2,1,"td",10),Q(),X(46,12),k(47,MI,3,3,"th",9)(48,OI,3,3,"td",10),Q(),X(49,22),k(50,II,3,3,"th",9)(51,EI,2,1,"td",10),Q(),k(52,LI,1,0,"tr",16)(53,NI,1,0,"tr",17),l()(),s(54,"div",23)(55,"button",24),T(56,"fa-icon",25),c(57),p(58,"translate"),l(),s(59,"button",26),c(60),p(61,"translate"),T(62,"fa-icon",27),l(),M(63,kI,3,5,"button",28),l()}if(i&2){let r=Lt(6);o(3),b(m(4,14,"labels.inputs.Charge")),o(4),fe(a.chargeData),o(3),x("disabled",!r.value),o(2),v(" ",m(13,16,"labels.buttons.Add")," "),o(2),x("dataSource",a.chargesDataSource)("hidden",a.chargesDataSource.length===0),o(19),x("matHeaderRowDef",a.chargesDisplayedColumns),o(),x("matRowDefColumns",a.chargesDisplayedColumns),o(3),b(m(38,18,"labels.heading.Overdue Charges")),o(2),x("dataSource",a.overDueChargesDataSource),o(13),x("matHeaderRowDef",a.overdueChargesDisplayedColumns),o(),x("matRowDefColumns",a.overdueChargesDisplayedColumns),o(4),v(" ",m(58,20,"labels.buttons.Previous")," "),o(3),v(" ",m(61,22,"labels.buttons.Next")," "),o(3),O(a.loanId?63:-1)}},dependencies:[wt,Tt,ae,_e,ge,In,On,Wt,un,bn,yn,xn,Sn,vn,Dn,Ba,wn,Pn,Tn,An,$o,za,mo,En,Pt,hn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.tableName[_ngcontent-%COMP%]{padding-left:2%}"]})}}return t})();function FI(t,n){if(t&1&&(s(0,"mat-option",14),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.value," ")}}function RI(t,n){if(t&1&&(s(0,"mat-select",11),ue(1,FI,2,2,"mat-option",14,Ce),l()),t&2){let e=P(2).$implicit;x("formControlName",ce(e.controlName)),o(),fe(e.columnValues)}}function BI(t,n){if(t&1&&T(0,"input",12),t&2){let e=P(2).$implicit;x("formControlName",ce(e.controlName))}}function qI(t,n){if(t&1&&T(0,"input",13),t&2){let e=P(2).$implicit;x("formControlName",ce(e.controlName))}}function jI(t,n){if(t&1&&T(0,"textarea",13),t&2){let e=P(2).$implicit;x("formControlName",ce(e.controlName))}}function zI(t,n){if(t&1){let e=xt();s(0,"span",15),it("click",function(){mt(e);let a=Lt(4);return dt(a.open())}),T(1,"input",16)(2,"mat-datepicker-toggle",17)(3,"mat-datepicker",null,0),l()}if(t&2){let e=Lt(4),i=P(2).$implicit;o(),x("formControlName",ce(i.controlName))("matDatepicker",e),o(),x("for",e)}}function VI(t,n){if(t&1&&(s(0,"mat-form-field",9)(1,"mat-label"),c(2),l(),M(3,RI,3,2,"mat-select",11),M(4,BI,1,2,"input",12),M(5,qI,1,2,"input",13),M(6,jI,1,2,"textarea",13),M(7,zI,5,4,"span"),l()),t&2){let e=P().$implicit,i=P();o(2),b(i.getInputName(e)),o(),O(i.isDropdown(e.columnDisplayType)?3:-1),o(),O(i.isNumeric(e.columnDisplayType)?4:-1),o(),O(i.isString(e.columnDisplayType)?5:-1),o(),O(i.isText(e.columnDisplayType)?6:-1),o(),O(i.isDate(e.columnDisplayType)?7:-1)}}function UI(t,n){if(t&1&&(s(0,"mat-checkbox",10),c(1),l()),t&2){let e=P().$implicit,i=P();x("formControlName",ce(e.controlName)),o(),v(" ",i.getInputName(e)," ")}}function HI(t,n){if(t&1&&(s(0,"div",3),M(1,VI,8,6,"mat-form-field",9),M(2,UI,2,3,"mat-checkbox",10),l()),t&2){let e=n.$implicit,i=P();o(),O(i.isBoolean(e.columnDisplayType)?-1:1),o(),O(i.isBoolean(e.columnDisplayType)?2:-1)}}var Ss=(()=>{class t{constructor(){this.formBuilder=A(Te),this.settingsService=A(oe),this.dateUtils=A(de),this.datatableInputs=[]}ngOnInit(){this.datatableInputs=this.datatableData.columnHeaderData.filter(i=>i.columnName!=="id"&&i.columnName!=="loan_id"&&i.columnName!=="created_at"&&i.columnName!=="updated_at");let e={};this.datatableInputs.forEach(i=>{i.controlName=this.getInputName(i),i.isColumnNullable?e[i.controlName]=new pe(""):this.isNumeric(i.columnDisplayType)?e[i.controlName]=new pe(0,[Gt.required]):e[i.controlName]=new pe("",[Gt.required])}),this.datatableForm=this.formBuilder.group(e)}getInputName(e){return e.columnName&&e.columnName.includes("_cd_")?e.columnName.split("_cd_")[0]:e.columnName}isNumeric(e){return this.isColumnType(e,"INTEGER")||this.isColumnType(e,"DECIMAL")}isDate(e){return this.isColumnType(e,"DATE")||this.isColumnType(e,"DATETIME")}isBoolean(e){return this.isColumnType(e,"BOOLEAN")}isDropdown(e){return this.isColumnType(e,"CODELOOKUP")}isString(e){return this.isColumnType(e,"STRING")}isText(e){return this.isColumnType(e,"TEXT")}isColumnType(e,i){return e===i}get payload(){let e=this.settingsService.dateFormat,i=this.datatableForm.value,a={locale:this.settingsService.language.code},r=!1;return this.datatableInputs.forEach(d=>{let g=this.getInputName(d);this.isNumeric(d.columnDisplayType)?a[d.columnName]=i[g]*1:this.isDate(d.columnDisplayType)?(a[d.columnName]=this.dateUtils.formatDate(i[g],e),r=!0):a[d.columnName]=i[g]}),r&&(a.dateFormat=e),{registeredTableName:this.datatableData.registeredTableName,data:a}}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-datatable-step"]],inputs:{datatableData:"datatableData"},decls:13,vars:7,consts:[["datePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-100"],["labelPosition","before",1,"margin-v",3,"formControlName"],[3,"formControlName"],["matInput","","type","number",3,"formControlName"],["matInput","",3,"formControlName"],[3,"value"],[3,"click"],["matInput","",1,"date-picker",3,"matDatepicker","formControlName"],["matSuffix","",3,"for"]],template:function(i,a){i&1&&(s(0,"form",1)(1,"div",2),ue(2,HI,3,2,"div",3,Ce),l(),s(4,"div",4)(5,"button",5),T(6,"fa-icon",6),c(7),p(8,"translate"),l(),s(9,"button",7),c(10),p(11,"translate"),T(12,"fa-icon",8),l()()()),i&2&&(x("formGroup",a.datatableForm),o(2),fe(a.datatableInputs),o(5),v(" ",m(8,3,"labels.buttons.Previous")," "),o(3),v(" ",m(11,5,"labels.buttons.Next")," "))},dependencies:[wt,Tt,Re,we,Mi,he,Ee,Le,Ne,_e,ge,Je,Pe,In,On,tn,en,Qe,Wt,Da,za,un,mo,Pt],styles:[".date-picker[_ngcontent-%COMP%]{width:92%}mat-checkbox[_ngcontent-%COMP%]{margin-top:30px}"]})}}return t})();var GI=()=>["../","general"];function WI(t,n){t&1&&(s(0,"button",9),c(1),p(2,"translate"),l()),t&2&&(x("routerLink",Ut(4,GI)),o(),v(" ",m(2,2,"labels.buttons.Cancel")," "))}var el=(()=>{class t{constructor(){this.loansService=A(Mt),this.settingsService=A(oe),this.route=A(Et),this.repaymentScheduleDetails=null,this.loanId=null,this.loanId=this.route.snapshot.params.loanId}showRepaymentInfo(){this.repaymentScheduleDetails=null;let e=this.settingsService.language.code,i=this.settingsService.dateFormat,a=this.loansService.buildLoanRequestPayload(this.loansAccount,this.loansAccountTemplate,this.loansAccountProductTemplate.calendarOptions,e,i);delete a.enableInstallmentLevelDelinquency,delete a.externalId,this.loansService.calculateLoanSchedule(a).subscribe(r=>{this.repaymentScheduleDetails=r})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-schedule-step"]],inputs:{currencyCode:"currencyCode",loansAccountTemplate:"loansAccountTemplate",loansAccountProductTemplate:"loansAccountProductTemplate",loansAccount:"loansAccount"},decls:16,vars:12,consts:[[1,"layout-row-wrap","responsive-column"],["mat-flat-button","","color","primary",3,"click"],["icon","calendar",1,"m-r-10"],[1,"flex-100",3,"repaymentScheduleDetails","currencyCode"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-raised-button","",3,"routerLink"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"button",1),it("click",function(){return a.showRepaymentInfo()}),T(2,"fa-icon",2),c(3),p(4,"translate"),l(),T(5,"mifosx-repayment-schedule-tab",3),l(),s(6,"div",4)(7,"button",5),T(8,"fa-icon",6),c(9),p(10,"translate"),l(),s(11,"button",7),c(12),p(13,"translate"),T(14,"fa-icon",8),l(),M(15,WI,3,5,"button",9),l()),i&2&&(o(3),v("",m(4,6,"labels.inputs.Generate Repayment Schedule")," "),o(2),x("repaymentScheduleDetails",a.repaymentScheduleDetails)("currencyCode",a.currencyCode),o(4),v(" ",m(10,8,"labels.buttons.Previous")," "),o(3),v(" ",m(13,10,"labels.buttons.Next")," "),o(3),O(a.loanId?15:-1))},dependencies:[wt,Tt,ae,Wt,un,ho,za,mo,Pt],encapsulation:2})}}return t})();var $I=()=>["../.."];function YI(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),p(6,"find"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Loan officer"),":"),o(3),b(Ye(6,4,e.loansAccount.loanOfficerId,e.loansAccountProductTemplate.loanOfficerOptions,"id","displayName"))}}function ZI(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),p(6,"find"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Loan purpose"),":"),o(3),b(Ye(6,4,e.loansAccount.loanPurposeId,e.loansAccountProductTemplate.loanPurposeOptions,"id","name"))}}function KI(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),p(6,"find"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Fund"),":"),o(3),b(Ye(6,4,e.loansAccount.fundId,e.loansAccountProductTemplate.fundOptions,"id","name"))}}function JI(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),T(5,"mifosx-external-identifier",16),l()()),t&2){let e=P();o(2),v("",m(3,3,"labels.inputs.External id"),":"),o(3),x("externalId",ce(e.loansAccount.externalId))}}function XI(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client ID")))}function QI(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),b(e.id)}}function tE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client Name")))}function eE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),b(e.displayName)}}function nE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Purpose")))}function iE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),b(e.purpose)}}function aE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Original Loan")))}function oE(t,n){if(t&1&&(s(0,"td",27),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.principal,i.loansAccountProductTemplate.currency.code,"symbol-narrow","1.2-2")," ")}}function rE(t,n){t&1&&T(0,"tr",28)}function lE(t,n){t&1&&T(0,"tr",29)}function sE(t,n){if(t&1&&(s(0,"h3",7),c(1),p(2,"translate"),l(),T(3,"mat-divider",3),s(4,"div",5)(5,"table",17,0),X(7,18),k(8,XI,3,3,"th",19)(9,QI,2,1,"td",20),Q(),X(10,21),k(11,tE,3,3,"th",19)(12,eE,2,1,"td",20),Q(),X(13,22),k(14,nE,3,3,"th",19)(15,iE,2,1,"td",20),Q(),X(16,23),k(17,aE,3,3,"th",19)(18,oE,3,6,"td",20),Q(),k(19,rE,1,0,"tr",24)(20,lE,1,0,"tr",25),l()()),t&2){let e=P();o(),b(m(2,4,"labels.heading.Client Members")),o(4),x("dataSource",e.dataSource),o(14),x("matHeaderRowDef",e.membersDisplayedColumns),o(),x("matRowDefColumns",e.membersDisplayedColumns)}}function cE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),p(6,"yesNo"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Enable Down Payments"),":"),o(3),b(m(6,4,e.loansAccount.enableDownPayment))}}function pE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),p(6,"dateFormat"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.First repayment on"),":"),o(3),b(m(6,4,e.loansAccount.repaymentsStartingFromDate))}}function mE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),p(6,"dateFormat"),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Interest charged from"),":"),o(3),b(m(6,4,e.loansAccount.interestChargedFromDate))}}function dE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,3,"labels.inputs.Nominal interest rate"),":"),o(3),$t("",e.loansAccount.interestRatePerPeriod,"\xA0\xA0",e.loansAccountProductTemplate.interestRateFrequencyType.value)}}function uE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Interest method"),": "),o(3),b(e.loansAccount.interestType)}}function fE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Is Equal Amortization"),":"),o(3),b(e.loansAccount.isEqualAmortization)}}function hE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Calculate interest for exact days in partial period"),":"),o(3),b(e.loansAccount.allowPartialPeriodInterestCalculation)}}function gE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Arrears tolerance"),": "),o(3),b(e.loansAccount.inArrearsTolerance)}}function _E(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Interest free period"),": "),o(3),b(e.loansAccount.graceOnInterestCharged)}}function CE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.On principal payment"),": "),o(3),b(e.loansAccount.graceOnPrincipalPayment)}}function bE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.On interest payment"),": "),o(3),b(e.loansAccount.graceOnInterestPayment)}}function vE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.On Arrears Aging"),": "),o(3),b(e.loansAccount.graceOnArrearsAgeing)}}function xE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Is Topup Loan"),"? "),o(3),b(e.loansAccount.isTopup)}}function yE(t,n){if(t&1&&(s(0,"div",3)(1,"span",4),c(2),p(3,"translate"),l(),s(4,"span",5),c(5),l()()),t&2){let e=P();o(2),v("",m(3,2,"labels.inputs.Days in month"),": "),o(3),b(e.loansAccountProductTemplate==null?null:e.loansAccountProductTemplate.daysInMonthType.value)}}function SE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.name")))}function DE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.name+", "+((e.currency==null?null:e.currency.displaySymbol)||"")," ")}}function wE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Type")))}function TE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.chargeCalculationType.value," ")}}function PE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function AE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.amount," ")}}function ME(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Collected On")))}function OE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.chargeTimeType.value," ")}}function IE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Date")))}function EE(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.dueDate)||"Unassigned"," ")}}function LE(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function NE(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.inputs.N/A")," "))}function kE(t,n){if(t&1&&(s(0,"td",27),M(1,EE,3,3,"span"),M(2,LE,3,3,"span"),M(3,NE,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),o(),O(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),o(),O(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3)}}function FE(t,n){t&1&&T(0,"tr",28)}function RE(t,n){t&1&&T(0,"tr",29)}function BE(t,n){if(t&1&&(s(0,"div",9)(1,"h3",2),c(2),p(3,"translate"),l(),T(4,"mat-divider",3),s(5,"table",30),X(6,21),k(7,SE,3,3,"th",19)(8,DE,2,1,"td",20),Q(),X(9,31),k(10,wE,3,3,"th",19)(11,TE,2,1,"td",20),Q(),X(12,32),k(13,PE,3,3,"th",19)(14,AE,2,1,"td",20),Q(),X(15,33),k(16,ME,3,3,"th",19)(17,OE,2,1,"td",20),Q(),X(18,34),k(19,IE,3,3,"th",19)(20,kE,4,3,"td",20),Q(),k(21,FE,1,0,"tr",24)(22,RE,1,0,"tr",25),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Charges")),o(3),x("dataSource",e.loansAccount.charges),o(16),x("matHeaderRowDef",e.chargesDisplayedColumns),o(),x("matRowDefColumns",e.chargesDisplayedColumns)}}function qE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.name")))}function jE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),b(e.name+", "+((e.currency==null?null:e.currency.displaySymbol)||""))}}function zE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Type")))}function VE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeCalculationType.value)}}function UE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function HE(t,n){if(t&1&&(s(0,"td",27),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.amount))}}function GE(t,n){t&1&&(s(0,"th",26),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Collected On")))}function WE(t,n){if(t&1&&(s(0,"td",27),c(1),l()),t&2){let e=n.$implicit;o(),b(e.chargeTimeType.value)}}function $E(t,n){t&1&&T(0,"tr",28)}function YE(t,n){t&1&&T(0,"tr",29)}function ZE(t,n){if(t&1&&(s(0,"div",10)(1,"h3",35),c(2),p(3,"translate"),l(),T(4,"mat-divider",36),s(5,"table",37),X(6,21),k(7,qE,3,3,"th",19)(8,jE,2,1,"td",20),Q(),X(9,38),k(10,zE,3,3,"th",19)(11,VE,2,1,"td",20),Q(),X(12,32),k(13,UE,3,3,"th",19)(14,HE,3,3,"td",20),Q(),X(15,39),k(16,GE,3,3,"th",19)(17,WE,2,1,"td",20),Q(),k(18,$E,1,0,"tr",24)(19,YE,1,0,"tr",25),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Overdue Charges")),o(3),x("dataSource",e.loansAccountProductTemplate.overdueCharges),o(13),x("matHeaderRowDef",e.overdueChargesDisplayedColumns),o(),x("matRowDefColumns",e.overdueChargesDisplayedColumns)}}var nl=(()=>{class t{constructor(){this.loansAccountTemplate=[],this.submitEvent=new Yl,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date"],this.overdueChargesDisplayedColumns=["name","type","amount","collectedon"],this.membersDisplayedColumns=["id","name","purpose","principal"],this.loanPurposeOptions=[],this.productEnableDownPayment=!1}ngOnChanges(e){this.productEnableDownPayment=this.loansAccountProductTemplate.product.enableDownPayment,this.activeClientMembers&&(this.loanPurposeOptions=this.loansAccountProductTemplate.loanPurposeOptions,this.dataSource=new Li(this.activeClientMembers.filter(i=>i.selected).map(i=>ve(ie({},i),{purpose:this.loanPurposeOptions.find(a=>a.id===i.loanPurposeId)?.name}))),this.loansAccount.principalAmount=this.activeClientMembers.filter(i=>i.selected).reduce((i,a)=>i+(a.principal??0),0))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-account-preview-step"]],inputs:{loansAccountTemplate:"loansAccountTemplate",loansAccountProductTemplate:"loansAccountProductTemplate",loansAccount:"loansAccount",activeClientMembers:"activeClientMembers"},outputs:{submitEvent:"submitEvent"},features:[Vr],decls:145,vars:161,consts:[["membersTable",""],[1,"content","responsive-column"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[3,"chars","textValue"],[1,"mat-h3","margin-t","flex-fill"],[1,"m-l-5"],[1,"layout-row-wrap","responsive-column","flex-fill","margin-t"],[1,"flex-fill","layout-row-wrap","layout-xs-column","margin-t"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","purpose"],["matColumnDef","principal"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],[1,"mat-h3","flex-98"],[1,"flex-98"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","type"],["matColumnDef","collectedon"]],template:function(i,a){i&1&&(s(0,"div",1)(1,"h3",2),c(2),p(3,"translate"),l(),s(4,"div",3)(5,"span",4),c(6),p(7,"translate"),l(),s(8,"span",5),T(9,"mifosx-long-text",6),p(10,"find"),l()(),M(11,YI,7,9,"div",3),M(12,ZI,7,9,"div",3),M(13,KI,7,9,"div",3),s(14,"div",3)(15,"span",4),c(16),p(17,"translate"),l(),s(18,"span",5),c(19),p(20,"dateFormat"),l()(),s(21,"div",3)(22,"span",4),c(23),p(24,"translate"),l(),s(25,"span",5),c(26),p(27,"dateFormat"),l()(),M(28,JI,6,5,"div",3),M(29,sE,21,6),s(30,"h3",7),c(31),p(32,"translate"),l(),T(33,"mat-divider",3),s(34,"div",3)(35,"span",4),c(36),p(37,"translate"),l(),s(38,"span",5),c(39),p(40,"currency"),s(41,"span",8),c(42),l()()(),s(43,"div",3)(44,"span",4),c(45),p(46,"translate"),l(),s(47,"span",5),c(48),p(49,"find"),l()(),s(50,"div",3)(51,"span",4),c(52),p(53,"translate"),l(),s(54,"span",5),c(55),l()(),s(56,"div",3)(57,"span",4),c(58),p(59,"translate"),l(),s(60,"span",5),c(61),p(62,"find"),p(63,"find"),p(64,"find"),l()(),M(65,cE,7,6,"div",3),M(66,pE,7,6,"div",3),M(67,mE,7,6,"div",3),M(68,dE,6,5,"div",3),M(69,uE,6,4,"div",3),M(70,fE,6,4,"div",3),s(71,"div",3)(72,"span",4),c(73),p(74,"translate"),l(),s(75,"span",5),c(76),p(77,"find"),l()(),s(78,"div",3)(79,"span",4),c(80),p(81,"translate"),l(),s(82,"span",5),c(83),p(84,"find"),l()(),M(85,hE,6,4,"div",3),M(86,gE,6,4,"div",3),M(87,_E,6,4,"div",3),s(88,"div",3)(89,"span",4),c(90),p(91,"translate"),l(),s(92,"span",5),c(93),p(94,"find"),l()(),s(95,"div",3)(96,"span",4),c(97),p(98,"translate"),l(),s(99,"span",5),c(100),p(101,"formatNumber"),l()(),s(102,"div",3)(103,"span",4),c(104),p(105,"translate"),l(),s(106,"span",5),c(107),p(108,"formatNumber"),l()(),s(109,"h3",7),c(110),p(111,"translate"),l(),T(112,"mat-divider",3),M(113,CE,6,4,"div",3),M(114,bE,6,4,"div",3),M(115,vE,6,4,"div",3),s(116,"div",3)(117,"span",4),c(118),p(119,"translate"),l(),s(120,"span",5),c(121),p(122,"yesNo"),l()(),M(123,xE,6,4,"div",3),s(124,"div",3)(125,"span",4),c(126),p(127,"translate"),l(),s(128,"span",5),c(129),p(130,"yesNo"),l()(),M(131,yE,6,4,"div",3),M(132,BE,23,6,"div",9),M(133,ZE,20,6,"div",10),l(),s(134,"div",11)(135,"button",12),T(136,"fa-icon",13),c(137),p(138,"translate"),l(),s(139,"button",14),c(140),p(141,"translate"),l(),s(142,"button",15),it("click",function(){return a.submitEvent.emit()}),c(143),p(144,"translate"),l()()),i&2&&(o(2),b(m(3,63,"labels.heading.Details")),o(4),v("",m(7,65,"labels.inputs.Product"),":"),o(3),x("textValue",If(` - `,Ye(10,67,a.loansAccount.productId,a.loansAccountTemplate.productOptions,"id","name")))("chars",60),o(2),O(a.loansAccount.loanOfficerId?11:-1),o(),O(a.loansAccount.loanPurposeId?12:-1),o(),O(a.loansAccount.fundId?13:-1),o(3),v("",m(17,72,"labels.inputs.Submitted on"),":"),o(3),b(m(20,74,a.loansAccount.submittedOnDate)),o(4),v("",m(24,76,"labels.inputs.Disbursement on"),":"),o(3),b(m(27,78,a.loansAccount.expectedDisbursementDate)),o(2),O(a.loansAccount.externalId?28:-1),o(),O(a.activeClientMembers?29:-1),o(2),b(m(32,80,"labels.heading.Terms")),o(5),v("",m(37,82,"labels.inputs.Principal"),":"),o(3),v(" ",Ye(40,84,a.loansAccount.principalAmount,a.loansAccountProductTemplate.currency.code,"symbol-narrow","1.2-2")," "),o(3),b(a.loansAccountProductTemplate.currency.code),o(3),v("",m(46,89,"labels.inputs.Loan Term"),":"),o(3),$t("",a.loansAccount.loanTermFrequency," ",Ye(49,91,a.loansAccount.loanTermFrequencyType,a.loansAccountProductTemplate.termFrequencyTypeOptions,"id","name")),o(4),v("",m(53,96,"labels.inputs.Number of repayments"),":"),o(3),b(a.loansAccount.numberOfRepayments),o(3),v("",m(59,98,"labels.inputs.Repaid every"),":"),o(3),Qs("",a.loansAccount.repaymentEvery," ",Ye(62,100,a.loansAccount.repaymentFrequencyType,a.loansAccountProductTemplate.termFrequencyTypeOptions,"id","name")," ",Ye(63,105,a.loansAccount.repaymentFrequencyNthDayType,a.loansAccountProductTemplate.repaymentFrequencyNthDayTypeOptions,"id","name")," ",Ye(64,110,a.loansAccount.repaymentFrequencyDayOfWeekType,a.loansAccountProductTemplate.repaymentFrequencyDaysOfWeekTypeOptions,"id","name")),o(4),O(a.productEnableDownPayment?65:-1),o(),O(a.loansAccount.repaymentsStartingFromDate?66:-1),o(),O(a.loansAccount.interestChargedFromDate?67:-1),o(),O(a.loansAccount.interestRatePerPeriod?68:-1),o(),O(a.loansAccount.interestType?69:-1),o(),O(a.loansAccount.isEqualAmortization?70:-1),o(3),b(m(74,115,"labels.inputs.Amortization")),o(3),b(Ye(77,117,a.loansAccount.amortizationType,a.loansAccountProductTemplate.amortizationTypeOptions,"id","value")),o(4),v("",m(81,122,"labels.inputs.Interest calculation period"),": "),o(3),b(Ye(84,124,a.loansAccount.interestCalculationPeriodType,a.loansAccountProductTemplate.interestCalculationPeriodTypeOptions,"id","value")),o(2),O(a.loansAccount.allowPartialPeriodInterestCalculation?85:-1),o(),O(a.loansAccount.inArrearsTolerance?86:-1),o(),O(a.loansAccount.graceOnInterestCharged?87:-1),o(3),v("",m(91,129,"labels.inputs.Repayment strategy"),": "),o(3),b(Ye(94,131,a.loansAccount.transactionProcessingStrategyCode,a.loansAccountProductTemplate.transactionProcessingStrategyOptions,"code","name")),o(4),v(" ",m(98,136,"labels.inputs.Installment Amount")," "),o(3),v(" ",m(101,138,a.loansAccount.fixedEmiAmount)," "),o(4),v(" ",m(105,140,"labels.inputs.Balloon Repayment Amount")," "),o(3),v(" ",m(108,142,a.loansAccount.balloonRepaymentAmount)," "),o(3),b(m(111,144,"labels.heading.Moratorium")),o(3),O(a.loansAccount.graceOnPrincipalPayment?113:-1),o(),O(a.loansAccount.graceOnInterestPayment?114:-1),o(),O(a.loansAccount.graceOnArrearsAgeing?115:-1),o(3),v(" ",m(119,146,"labels.inputs.Enable installment level Delinquency")," "),o(3),v(" ",m(122,148,a.loansAccount.enableInstallmentLevelDelinquency)," "),o(2),O(a.loansAccount.isTopup?123:-1),o(3),v("",m(127,150,"labels.inputs.Recalculate Interest"),": "),o(3),b(m(130,152,a.loansAccountProductTemplate==null?null:a.loansAccountProductTemplate.isInterestRecalculationEnabled)),o(2),O(a.loansAccountProductTemplate!=null&&a.loansAccountProductTemplate.daysInMonthType?131:-1),o(),O(a.loansAccount.charges.length?132:-1),o(),O(a.loansAccountProductTemplate.overdueCharges.length?133:-1),o(4),v(" ",m(138,154,"labels.buttons.Previous")," "),o(2),x("routerLink",Ut(160,$I)),o(),v(" ",m(141,156,"labels.buttons.Cancel")," "),o(3),v(" ",m(144,158,"labels.buttons.Submit")," "))},dependencies:[wt,Tt,ae,Wt,Mp,Va,$o,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,za,un,Sa,En,Pt,Pp,hn,Hr],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var KE=["dtloan"];function JE(t,n){t&1&&T(0,"fa-icon",20)}function XE(t,n){t&1&&T(0,"fa-icon",20)}function QE(t,n){t&1&&T(0,"fa-icon",21)}function t7(t,n){t&1&&T(0,"fa-icon",22)}function e7(t,n){t&1&&T(0,"fa-icon",23)}function n7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.DETAILS"))}function i7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.TERMS"))}function a7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.CHARGES"))}function o7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.REPAYMENT SCHEDULE"))}function r7(t,n){if(t&1&&(s(0,"mat-step",18),k(1,o7,2,3,"ng-template",14),T(2,"mifosx-loans-account-schedule-step",24,4),l()),t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)("currencyCode",e.currencyCode)}}function l7(t,n){if(t&1&&c(0),t&2){let e=P().$implicit;b(e.registeredTableName)}}function s7(t,n){if(t&1&&(s(0,"mat-step"),k(1,l7,1,1,"ng-template",14),T(2,"mifosx-loans-account-datatable-step",25,5),l()),t&2){let e=n.$implicit;o(2),x("datatableData",e)}}function c7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.PREVIEW"))}function p7(t,n){if(t&1){let e=xt();s(0,"mat-step",19),k(1,c7,2,3,"ng-template",14),s(2,"mifosx-loans-account-preview-step",26),it("submitEvent",function(){mt(e);let a=P();return dt(a.submit())}),l()()}if(t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)}}var s0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansService=A(Mt),this.settingsService=A(oe),this.clientService=A(ns),this.loansAccountProductTemplate=null,this.datatables=[],this.route.data.subscribe(e=>{this.loansAccountTemplate=e.loansAccountTemplate})}setTemplate(e){this.loansAccountProductTemplate=e,this.currencyCode=this.loansAccountProductTemplate.currency.code;let i=this.loansAccountTemplate.clientId;i?this.clientService.getCollateralTemplate(i).subscribe(d=>{this.collateralOptions=d}):console.error("No collateral data requested from Fineract, collateral might misbehave");let a=this.loansAccountTemplate.clientId?this.loansAccountTemplate.clientId:this.loansAccountTemplate.group.id,r=!this.loansAccountTemplate.clientId,u=this.loansAccountProductTemplate.loanProductId;this.loansService.getLoansAccountTemplateResource(a,r,u).subscribe(d=>{this.multiDisburseLoan=d.multiDisburseLoan}),this.setDatatables()}setDatatables(){this.datatables=[],this.loansAccountProductTemplate.datatables&&this.loansAccountProductTemplate.datatables.forEach(e=>{this.datatables.push(e)})}get loansAccountDetailsForm(){return this.loansAccountDetailsStep.loansAccountDetailsForm}get loansAccountTermsForm(){return this.loansAccountTermsStep.loansAccountTermsForm}get loansAccountFormValid(){return this.loansAccountDetailsForm.valid&&this.loansAccountTermsForm.valid}get loansSavingsAccountLinked(){return this.loansAccountDetailsStep.loansAccountDetailsForm.get("linkAccountId").value}get loanPrincipal(){return this.loansAccountTermsStep.loansAccountTermsForm.value.principal}get loansAccount(){return ie(ie(ie(ie(ie({},this.loansAccountDetailsStep.loansAccountDetails),this.loansAccountTermsStep.loansAccountTerms),this.loansAccountChargesStep.loansAccountCharges),this.loansAccountTermsStep.loanCollateral),this.loansAccountTermsStep.disbursementData)}submit(){let e=this.settingsService.language.code,i=this.settingsService.dateFormat,a=this.loansService.buildLoanRequestPayload(this.loansAccount,this.loansAccountTemplate,this.loansAccountProductTemplate.calendarOptions,e,i);if(this.loansAccountProductTemplate.datatables&&this.loansAccountProductTemplate.datatables.length>0){let r=[];this.loanDatatables.forEach(u=>{r.push(u.payload)}),a.datatables=r}this.loansService.createLoansAccount(a).subscribe(r=>{this.router.navigate(["../",r.resourceId,"general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-create-loans-account"]],viewQuery:function(i,a){if(i&1&&(mi(Oo,7),mi(Io,7),mi(Eo,7),mi(KE,5)),i&2){let r;di(r=ui())&&(a.loansAccountDetailsStep=r.first),di(r=ui())&&(a.loansAccountTermsStep=r.first),di(r=ui())&&(a.loansAccountChargesStep=r.first),di(r=ui())&&(a.loanDatatables=r)}},decls:24,vars:15,consts:[["loansAccountStepper",""],["loansAccountDetailsForm",""],["loanAccountTerms",""],["loanAccountCharges",""],["loanAccountSchedule",""],["dtloan",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loansAccountProductTemplate","loansAccountTemplate"],[3,"loansAccountProductTemplate","loansAccountTemplate","collateralOptions","loansAccountFormValid","loanPrincipal"],[3,"loansAccountProductTemplate","loansAccountTemplate","loansAccountFormValid","loansSavingsAccountLinked"],["state","repayment","completed",""],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"loansAccountTemplate","loansAccountProductTemplate","loansAccount","currencyCode"],[3,"datatableData"],[3,"submitEvent","loansAccountTemplate","loansAccountProductTemplate","loansAccount"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",6)(1,"mat-stepper",7,0),k(3,JE,1,0,"ng-template",8)(4,XE,1,0,"ng-template",9)(5,QE,1,0,"ng-template",10)(6,t7,1,0,"ng-template",11)(7,e7,1,0,"ng-template",12),s(8,"mat-step",13),k(9,n7,2,3,"ng-template",14),s(10,"mifosx-loans-account-details-step",15,1),it("loansAccountProductTemplate",function(d){return mt(r),dt(a.setTemplate(d))}),l()(),s(12,"mat-step",13),k(13,i7,2,3,"ng-template",14),T(14,"mifosx-loans-account-terms-step",16,2),l(),s(16,"mat-step"),k(17,a7,2,3,"ng-template",14),T(18,"mifosx-loans-account-charges-step",17,3),l(),M(20,r7,4,4,"mat-step",18),ue(21,s7,4,1,"mat-step",null,Ce),M(23,p7,3,3,"mat-step",19),l()()}if(i&2){let r=Lt(11);o(),x("linear",!1),o(7),x("stepControl",r),o(2),x("loansAccountTemplate",a.loansAccountTemplate),o(2),x("stepControl",a.loansAccountTermsForm),o(2),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("collateralOptions",a.collateralOptions)("loansAccountFormValid",a.loansAccountFormValid)("loanPrincipal",a.loanPrincipal),o(4),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("loansAccountFormValid",a.loansAccountFormValid)("loansSavingsAccountLinked",a.loansSavingsAccountLinked),o(2),O(a.loansAccountFormValid?20:-1),o(),fe(a.datatables),o(2),O(a.loansAccountFormValid?23:-1)}},dependencies:[wt,Tt,es,Ql,un,ts,Xl,Oo,Io,Eo,el,Ss,nl,Pt],encapsulation:2})}}return t})();var c0=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.settingsService=A(oe),this.entityType="loans",this.entityId=this.route.parent.snapshot.params.loanId,this.route.data.subscribe(e=>{this.getLoanDocumentsData(e.loanDocuments)})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.entityId=e.loanId})}getLoanDocumentsData(e){e.forEach(i=>{i.docUrl=this.settingsService.serverUrl+"/loans/"+i.parentEntityId+"/documents/"+i.id+"/attachment?tenantIdentifier="+qf.fineractPlatformTenantId,i.fileName&&(i.fileName.toLowerCase().indexOf(".jpg")!==-1||i.fileName.toLowerCase().indexOf(".jpeg")!==-1||i.fileName.toLowerCase().indexOf(".png")!==-1)&&(i.fileIsImage=!0),i.type&&i.type.toLowerCase().indexOf("image")!==-1&&(i.fileIsImage=!0)}),this.entityDocuments=e}uploadDocument(e){return this.loansService.loadLoanDocument(this.entityId,e)}deleteDocument(e){this.loansService.deleteLoanDocument(this.entityId,e).subscribe(i=>{})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-documents-tab"]],decls:1,vars:5,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDelete"]],template:function(i,a){i&1&&T(0,"mifosx-entity-documents-tab",0),i&2&&x("entityType",a.entityType)("entityId",a.entityId)("entityDocuments",a.entityDocuments)("callbackUpload",a.uploadDocument)("callbackDelete",a.deleteDocument)},dependencies:[wt,Tt,s1],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}table[_ngcontent-%COMP%] .document-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}"]})}}return t})();var m7=["instructionsTable"];function d7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client")))}function u7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function f7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.From Account")))}function h7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function g7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Beneficiary")))}function _7(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),v(" ",e.toClient.displayName," ")}}function C7(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Own Account")))}function b7(t,n){if(t&1&&(s(0,"td",17),M(1,_7,2,1,"span"),M(2,C7,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.fromClient.id!==e.toClient.id?1:-1),o(),O(e.fromClient.id===e.toClient.id?2:-1)}}function v7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.To Account")))}function x7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function y7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function S7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t("",e.instructionType.value,"/",e.amount)}}function D7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Validity")))}function w7(t,n){if(t&1&&(s(0,"td",17),c(1),p(2,"dateFormat"),p(3,"dateFormat"),l()),t&2){let e=n.$implicit;o(),$t(" ",m(2,2,e.validFrom)," to ",m(3,4,e.validTill)," ")}}function T7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function P7(t,n){t&1&&(s(0,"button",19),p(1,"translate"),T(2,"i",20),l()),t&2&&x("matTooltip",ce(m(1,2,"tooltips.Edit Standing Instruction")))}function A7(t,n){t&1&&(s(0,"span"),k(1,P7,3,4,"button",18),l()),t&2&&(o(),x("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function M7(t,n){if(t&1){let e=xt();s(0,"button",22),p(1,"translate"),it("click",function(){mt(e);let a=P(2).$implicit,r=P();return dt(r.deleteStandingInstruction(a.id))}),T(2,"i",23),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Delete Standing Instruction")))}function O7(t,n){t&1&&(s(0,"span"),k(1,M7,3,4,"button",21),l()),t&2&&(o(),x("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function I7(t,n){t&1&&(s(0,"button",19),p(1,"translate"),T(2,"i",24),l()),t&2&&x("matTooltip",ce(m(1,2,"tooltips.View Standing Instruction")))}function E7(t,n){if(t&1&&(s(0,"td",17),M(1,A7,2,1,"span"),M(2,O7,2,1,"span"),k(3,I7,3,4,"button",18),l()),t&2){let e=n.$implicit;o(),O(e.status.value!=="Deleted"?1:-1),o(),O(e.status.value!=="Deleted"?2:-1),o(),x("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function L7(t,n){t&1&&T(0,"tr",25)}function N7(t,n){t&1&&T(0,"tr",26)}var p0=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.dialog=A(Gn),this.accountTransfersService=A(g1),this.settingsService=A(oe),this.dataSource=new Li,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.loanDetailsData=e.loanDetailsData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.loanDetailsData.clientId,i=this.loanDetailsData.clientName,a=this.loanDetailsData.id,r=this.settingsService.language.code,u=this.settingsService.dateFormat;this.loansService.getStandingInstructions(e,i,a,r,u).subscribe(d=>{this.instructionsData=d.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ra,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(i,a){if(i&1&&mi(m7,7),i&2){let r;di(r=ui())&&(a.instructionTableRef=r.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",1)(1,"div",2)(2,"h3"),c(3),p(4,"translate"),l()(),s(5,"div",3)(6,"table",4,0),X(8,5),k(9,d7,3,3,"th",6)(10,u7,2,2,"td",7),Q(),X(11,8),k(12,f7,3,3,"th",6)(13,h7,2,2,"td",7),Q(),X(14,9),k(15,g7,3,3,"th",6)(16,b7,3,2,"td",7),Q(),X(17,10),k(18,v7,3,3,"th",6)(19,x7,2,2,"td",7),Q(),X(20,11),k(21,y7,3,3,"th",6)(22,S7,2,2,"td",7),Q(),X(23,12),k(24,D7,3,3,"th",6)(25,w7,4,6,"td",7),Q(),X(26,13),k(27,T7,3,3,"th",6)(28,E7,4,3,"td",7),Q(),k(29,L7,1,0,"tr",14)(30,N7,1,0,"tr",15),l()()()),i&2&&(o(3),b(m(4,4,"labels.heading.All Standing Instructions")),o(3),x("dataSource",a.dataSource),o(23),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns))},dependencies:[wt,Tt,Wt,Ae,bn,yn,xn,Sn,vn,Dn,Oi,wn,Pn,Tn,An,En,Pt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();function k7(t,n){t&1&&T(0,"fa-icon",15)}function F7(t,n){t&1&&T(0,"fa-icon",15)}function R7(t,n){t&1&&T(0,"fa-icon",16)}function B7(t,n){t&1&&T(0,"fa-icon",17)}function q7(t,n){t&1&&T(0,"fa-icon",18)}function j7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.DETAILS"))}function z7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.TERMS"))}function V7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.CHARGES"))}function U7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.REPAYMENT SCHEDULE"))}function H7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.PREVIEW"))}function G7(t,n){if(t&1){let e=xt();s(0,"mat-step",14),k(1,H7,2,3,"ng-template",9),s(2,"mifosx-loans-account-preview-step",19),it("submitEvent",function(){mt(e);let a=P();return dt(a.submit())}),l()()}if(t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountAndTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)}}var Oc=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.loansService=A(Mt),this.settingsService=A(oe),this.route.data.subscribe(e=>{this.loansAccountAndTemplate=e.loansAccountAndTemplate}),this.loanId=this.route.snapshot.params.loanId}setTemplate(e){this.loansAccountProductTemplate=e,this.currencyCode=this.loansAccountProductTemplate.currency.code,this.loansAccountProductTemplate.loanProductId&&this.loansService.getLoansCollateralTemplateResource(this.loansAccountProductTemplate.loanProductId).subscribe(i=>{this.collateralOptions=i.loanCollateralOptions})}get loansAccountDetailsForm(){return this.loansAccountDetailsStep.loansAccountDetailsForm}get loansAccountTermsForm(){return this.loansAccountTermsStep.loansAccountTermsForm}get loansAccountFormValidAndNotPristine(){return this.loansAccountDetailsForm.valid&&this.loansAccountTermsForm.valid&&(!this.loansAccountDetailsForm.pristine||!this.loansAccountTermsForm.pristine||!this.loansAccountTermsStep.pristine||!this.loansAccountChargesStep.pristine)}get loansAccount(){return ie(ie(ie(ie(ie({},this.loansAccountDetailsStep.loansAccountDetails),this.loansAccountTermsStep.loansAccountTerms),this.loansAccountChargesStep.loansAccountCharges),this.loansAccountTermsStep.loanCollateral),this.loansAccountTermsStep.disbursementData)}submit(){let e=this.settingsService.language.code,i=this.settingsService.dateFormat,a="individual",r=new Map;(this.loansAccount.charges??[]).forEach(d=>{let g=d.chargeId;g!=null&&r.set(g,d)});let u=ve(ie({},this.loansAccount),{clientId:this.loansAccountAndTemplate.clientId,charges:Array.from(r.values()).map(d=>{let g={chargeId:d.chargeId,amount:d.amount,dueDate:d.dueDate&&this.dateUtils.formatDate(d.dueDate,i)};return d.id&&d.id!==d.chargeId&&(g.id=d.id),g}),collateral:this.loansAccount.collateral.map(d=>({type:d.type,value:d.value,description:d.description})),disbursementData:this.loansAccount.disbursementData.map(d=>({expectedDisbursementDate:this.dateUtils.formatDate(d.expectedDisbursementDate,i),principal:d.principal})),interestChargedFromDate:this.dateUtils.formatDate(this.loansAccount.interestChargedFromDate,i),repaymentsStartingFromDate:this.dateUtils.formatDate(this.loansAccount.repaymentsStartingFromDate,i),submittedOnDate:this.dateUtils.formatDate(this.loansAccount.submittedOnDate,i),expectedDisbursementDate:this.dateUtils.formatDate(this.loansAccount.expectedDisbursementDate,i),dateFormat:i,locale:e,loanType:a});delete u.isValid,u.syncRepaymentsWithMeeting&&(u.calendarId=this.loansAccountProductTemplate.calendarOptions[0].id,delete u.syncRepaymentsWithMeeting),u.recalculationRestFrequencyDate&&(u.recalculationRestFrequencyDate=this.dateUtils.formatDate(this.loansAccount.recalculationRestFrequencyDate,i)),u.interestCalculationPeriodType===0&&(u.allowPartialPeriodInterestCalculation=!1),(!u.isLoanProductLinkedToFloatingRate||u.isLoanProductLinkedToFloatingRate===!1)&&delete u.isFloatingInterestRate,u.principal=u.principalAmount,delete u.principalAmount,delete u.multiDisburseLoan,u.allowPartialPeriodInterestCalcualtion=u.allowPartialPeriodInterestCalculation,delete u.allowPartialPeriodInterestCalculation,this.loansService.updateLoansAccount(this.loanId,u).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-edit-loans-account"]],viewQuery:function(i,a){if(i&1&&(mi(Oo,7),mi(Io,7),mi(Eo,7)),i&2){let r;di(r=ui())&&(a.loansAccountDetailsStep=r.first),di(r=ui())&&(a.loansAccountTermsStep=r.first),di(r=ui())&&(a.loansAccountChargesStep=r.first)}},decls:21,vars:15,consts:[["loansAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loansAccountProductTemplate","loansAccountTemplate"],[3,"loansAccountProductTemplate","loansAccountTemplate","collateralOptions"],[3,"loansAccountProductTemplate","loansAccountTemplate","loansAccountFormValid"],[3,"loansAccountTemplate","loansAccountProductTemplate","loansAccount","currencyCode"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","loansAccountTemplate","loansAccountProductTemplate","loansAccount"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-stepper",2,0),k(3,k7,1,0,"ng-template",3)(4,F7,1,0,"ng-template",4)(5,R7,1,0,"ng-template",5)(6,B7,1,0,"ng-template",6)(7,q7,1,0,"ng-template",7),s(8,"mat-step",8),k(9,j7,2,3,"ng-template",9),s(10,"mifosx-loans-account-details-step",10),it("loansAccountProductTemplate",function(d){return mt(r),dt(a.setTemplate(d))}),l()(),s(11,"mat-step",8),k(12,z7,2,3,"ng-template",9),T(13,"mifosx-loans-account-terms-step",11),l(),s(14,"mat-step"),k(15,V7,2,3,"ng-template",9),T(16,"mifosx-loans-account-charges-step",12),l(),s(17,"mat-step"),k(18,U7,2,3,"ng-template",9),T(19,"mifosx-loans-account-schedule-step",13),l(),M(20,G7,3,3,"mat-step",14),l()()}i&2&&(o(),x("linear",!1),o(7),x("stepControl",a.loansAccountDetailsForm),o(2),x("loansAccountTemplate",a.loansAccountAndTemplate),o(),x("stepControl",a.loansAccountTermsForm),o(2),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountAndTemplate)("collateralOptions",a.collateralOptions),o(3),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountAndTemplate)("loansAccountFormValid",a.loansAccountFormValidAndNotPristine),o(3),x("loansAccountTemplate",a.loansAccountAndTemplate)("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccount",a.loansAccount)("currencyCode",a.currencyCode),o(),O(a.loansAccountFormValidAndNotPristine?20:-1))},dependencies:[wt,Tt,es,Ql,un,ts,Xl,Oo,Io,Eo,el,nl,Pt],encapsulation:2})}}return t})();var W7=()=>["../"];function $7(t,n){if(t&1){let e=xt();s(0,"button",10),it("click",function(){mt(e);let a=P(2);return dt(a.editCharge())}),T(1,"fa-icon",11),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function Y7(t,n){if(t&1){let e=xt();s(0,"button",12),it("click",function(){mt(e);let a=P(3);return dt(a.payCharge())}),T(1,"fa-icon",13),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Pay")," "))}function Z7(t,n){t&1&&(s(0,"span"),k(1,Y7,4,3,"button",9),l()),t&2&&(o(),x("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"))}function K7(t,n){if(t&1){let e=xt();s(0,"button",10),it("click",function(){mt(e);let a=P(3);return dt(a.waiveCharge())}),T(1,"fa-icon",11),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Waive")," "))}function J7(t,n){t&1&&(s(0,"span"),k(1,K7,4,3,"button",8),l()),t&2&&(o(),x("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"))}function X7(t,n){if(t&1){let e=xt();s(0,"button",12),it("click",function(){mt(e);let a=P(2);return dt(a.adjustmentCharge())}),T(1,"fa-icon",14),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Adjustment")," "))}function Q7(t,n){if(t&1&&(s(0,"div",0),k(1,$7,4,3,"button",8),M(2,Z7,2,1,"span"),M(3,J7,2,1,"span"),s(4,"span"),k(5,X7,4,3,"button",9),l()()),t&2){let e=P();o(),x("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),o(),O(e.allowPayCharge?2:-1),o(),O(e.allowWaive?3:-1),o(2),x("mifosxHasPermission","ADJUSTMENT_LOANCHARGE")}}function t8(t,n){if(t&1){let e=xt();s(0,"button",10),it("click",function(){mt(e);let a=P(2);return dt(a.editCharge())}),T(1,"fa-icon",16),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function e8(t,n){if(t&1){let e=xt();s(0,"button",17),it("click",function(){mt(e);let a=P(2);return dt(a.deleteCharge())}),T(1,"fa-icon",18),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function n8(t,n){t&1&&(s(0,"div",0),k(1,t8,4,3,"button",8)(2,e8,4,3,"button",15),l()),t&2&&(o(),x("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),o(),x("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}var m0=(()=>{class t{constructor(){this.loansService=A(Mt),this.route=A(Et),this.dateUtils=A(de),this.router=A(le),this.translateService=A(pa),this.dialog=A(Gn),this.settingsService=A(oe),this.allowPayCharge=!0,this.allowWaive=!0,this.route.data.subscribe(e=>{this.chargeData=e.loansAccountCharge,this.allowPayCharge=this.chargeData.chargePayable&&!this.chargeData.paid,this.allowWaive=!this.chargeData.chargeTimeType.waived,this.loansAccountData=e.loanDetailsData})}payCharge(){let e=[new la({controlName:"transactionDate",label:"Payment Date",value:"",type:"date",required:!0})],i={title:`Pay Charge ${this.chargeData.id}`,layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(_i,{data:i}).afterClosed().subscribe(r=>{if(r.data){let u=this.settingsService.language.code,d=this.settingsService.dateFormat,g=r.data.value.transactionDate,_={transactionDate:this.dateUtils.formatDate(g,d),dateFormat:d,locale:u};this.loansService.executeLoansAccountChargesCommand(this.chargeData.loanId,"pay",_,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Waive Charge"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to waive charge with id:")` ${this.chargeData.id}`,type:"Basic"}}).afterClosed().subscribe(i=>{i.confirm&&this.loansService.executeLoansAccountChargesCommand(this.chargeData.loanId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){let e=[new Ti({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0}),new la({controlName:"dueDate",label:"Due Date",value:new Date(this.chargeData.dueDate),type:"date",maxDate:this.settingsService.maxAllowedDate,required:!0})],i={title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(_i,{data:i}).afterClosed().subscribe(r=>{if(r.data){let u=this.settingsService.language.code,d=this.settingsService.dateFormat,g=this.dateUtils.formatDate(r.data.value.dueDate,d),y={amount:r.data.value.amount,dueDate:g,dateFormat:d,locale:u};this.loansService.editLoansAccountCharge(this.loansAccountData.id,y,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(ra,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(i=>{i.delete&&this.loansService.deleteLoansAccountCharge(this.loansAccountData.id,this.chargeData.id).subscribe(()=>{this.reload()})})}loanChargeColor(){return this.chargeData.paid?"paid":"not-paid"}adjustmentCharge(){this.router.navigate(["adjustment"],{relativeTo:this.route})}reload(){let e=this.loansAccountData.clientId,i=this.router.url;this.router.navigateByUrl(`/clients/${e}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-view-charge"]],decls:72,vars:64,consts:[[1,"layout-row","align-end","gap-2percent","layout-xs-column","container","m-b-20"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["icon","pen",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(i,a){i&1&&(M(0,Q7,6,4,"div",0),M(1,n8,3,2,"div",0),s(2,"div",1)(3,"mat-card")(4,"mat-card-content")(5,"div",2),T(6,"div",3),s(7,"div",4),c(8),p(9,"translate"),l(),s(10,"div",5),c(11),l(),s(12,"div",4),c(13),p(14,"translate"),l(),s(15,"div",5),c(16),l(),s(17,"div",4),c(18),p(19,"translate"),l(),s(20,"div",5),c(21),l(),s(22,"div",4),c(23),p(24,"translate"),l(),s(25,"div",5),c(26),l(),s(27,"div",4),c(28),p(29,"translate"),l(),s(30,"div",5),c(31),p(32,"dateFormat"),l(),s(33,"div",4),c(34),p(35,"translate"),l(),s(36,"div",5),c(37),l(),s(38,"div",4),c(39),p(40,"translate"),l(),s(41,"div",5),c(42),p(43,"formatNumber"),l(),s(44,"div",4),c(45),p(46,"translate"),l(),s(47,"div",5),c(48),p(49,"formatNumber"),l(),s(50,"div",4),c(51),p(52,"translate"),l(),s(53,"div",5),c(54),p(55,"formatNumber"),l(),s(56,"div",4),c(57),p(58,"translate"),l(),s(59,"div",5),c(60),p(61,"formatNumber"),l(),s(62,"div",4),c(63),p(64,"translate"),l(),s(65,"div",5),c(66),p(67,"dateFormat"),l()(),s(68,"div",6)(69,"button",7),c(70),p(71,"translate"),l()()()()()),i&2&&(O(a.loansAccountData.status.value==="Active"&&a.chargeData.amountOutstanding!==0?0:-1),o(),O(a.loansAccountData.status.value==="Submitted and pending approval"?1:-1),o(5),x("ngClass",a.loanChargeColor()),o(2),v(" ",m(9,27,"labels.inputs.name")," "),o(3),v(" ",a.chargeData.name," "),o(2),v(" ",m(14,29,"labels.inputs.Charge Type")," "),o(3),v(" ",a.chargeData.penalty?"Penalty":"Fees"," "),o(2),v(" ",m(19,31,"labels.inputs.Currency")," "),o(3),v(" ",a.chargeData.currency.displayLabel," "),o(2),v(" ",m(24,33,"labels.inputs.Payment due at")," "),o(3),v(" ",a.chargeData.chargeTimeType.value," "),o(2),v(" ",m(29,35,"labels.inputs.Payment due as of")," "),o(3),v(" ",m(32,37,a.chargeData.dueDate)," "),o(3),v(" ",m(35,39,"labels.inputs.Calculation Type")," "),o(3),v(" ",a.chargeData.chargeCalculationType.value," "),o(2),v(" ",m(40,41,"labels.inputs.Due")," "),o(3),v(" ",m(43,43,a.chargeData.amount)," "),o(3),v(" ",m(46,45,"labels.inputs.Paid")," "),o(3),v(" ",m(49,47,a.chargeData.amountPaid)," "),o(3),v(" ",m(52,49,"labels.inputs.Waived")," "),o(3),v(" ",m(55,51,a.chargeData.amountWaived)," "),o(3),v(" ",m(58,53,"labels.inputs.Outstanding")," "),o(3),v(" ",m(61,55,a.chargeData.amountOutstanding)," "),o(3),v(" ",m(64,57,"labels.inputs.Submitted On Date")," "),o(3),v(" ",m(67,59,a.chargeData.submittedOnDate)," "),o(3),x("routerLink",Ut(63,W7)),o(),v(" ",m(71,61,"labels.buttons.Back")," "))},dependencies:[wt,ca,Tt,ae,xe,Oe,Wt,Ae,un,En,Pt,hn],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.paid[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.not-paid[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();var i8=()=>["../"];function a8(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",13),T(2,"fa-icon",14),c(3),p(4,"translate"),l(),s(5,"button",15),it("click",function(){mt(e);let a=P(2);return dt(a.undoTransaction())}),T(6,"fa-icon",16),c(7),p(8,"translate"),l()()}if(t&2){let e=P(2);o(),x("routerLink","edit")("disabled",!e.allowEdition),o(2),v("",m(4,5,"Edit")," "),o(2),x("disabled",!e.allowUndo),o(2),v("",m(8,7,"Undo")," ")}}function o8(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",15),it("click",function(){mt(e);let a=P(2);return dt(a.chargebackTransaction())}),T(2,"fa-icon",16),c(3),p(4,"translate"),l()()}if(t&2){let e=P(2);o(),x("disabled",!e.allowChargeback),o(2),v("",m(4,2,"Chargeback")," ")}}function r8(t,n){t&1&&(s(0,"div",0),k(1,a8,9,9,"span",12)(2,o8,5,4,"span",12),l()),t&2&&(o(),x("mifosxHasPermission","ADJUST_LOAN"),o(),x("mifosxHasPermission","CHARGEBACK_LOAN"))}function l8(t,n){t&1&&(s(0,"div",4),c(1),p(2,"translateKey"),l()),t&2&&(o(),v(" ",Ge(2,1,"Repayment Transaction","catalogs")," "))}function s8(t,n){if(t&1&&(s(0,"div",5)(1,"a",17),c(2),l()()),t&2){let e=P();o(),x("href",e.loanTransactionRelatedLink(e.transactionData.toLoanTransactionRelation.fromLoanTransaction),od),o(),v(" ",e.transactionData.toLoanTransactionRelation.fromLoanTransaction," ")}}function c8(t,n){t&1&&(s(0,"div",4),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"External Id")," "))}function p8(t,n){if(t&1&&(s(0,"div",5),T(1,"mifosx-external-identifier",18),l()),t&2){let e=P();o(),x("externalId",ce(e.transactionData.externalId))}}function m8(t,n){t&1&&(s(0,"div",4),c(1),p(2,"translateKey"),l()),t&2&&(o(),v(" ",Ge(2,1,"Classification","catalogs")," "))}function d8(t,n){if(t&1&&(s(0,"div",6),c(1),l()),t&2){let e=P();o(),v(" ",e.transactionData.classification.name," ")}}function u8(t,n){t&1&&T(0,"mat-divider",7),t&2&&x("inset",!0)}function f8(t,n){t&1&&(s(0,"th",28),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Relation Type")))}function h8(t,n){if(t&1&&(s(0,"td",29),c(1),p(2,"translate"),l()),t&2){let e=n.$implicit;x("matTooltip",e.paymentType),o(),v(" ",m(2,2,e.relationType)," ")}}function g8(t,n){t&1&&(s(0,"th",28),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Transaction")))}function _8(t,n){if(t&1&&(s(0,"td",30)(1,"a",17),c(2),l()()),t&2){let e=n.$implicit,i=P(2);o(),x("href",i.loanTransactionRelatedLink(e.toLoanTransaction),od),o(),v(" ",e.toLoanTransaction," ")}}function C8(t,n){t&1&&(s(0,"th",28),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function b8(t,n){if(t&1&&(s(0,"td",30),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.amount,i.transactionData.currency.code,"symbol-narrow","1.2-2")," ")}}function v8(t,n){t&1&&T(0,"tr",31)}function x8(t,n){t&1&&T(0,"tr",32)}function y8(t,n){if(t&1&&(s(0,"div",8),c(1),p(2,"translate"),T(3,"br"),s(4,"table",19),X(5,20),k(6,f8,3,3,"th",21)(7,h8,3,4,"td",22),Q(),X(8,23),k(9,g8,3,3,"th",21)(10,_8,3,2,"td",24),Q(),X(11,25),k(12,C8,3,3,"th",21)(13,b8,3,6,"td",24),Q(),k(14,v8,1,0,"tr",26)(15,x8,1,0,"tr",27),l()()),t&2){let e=P();o(),v(" ",m(2,4,"Linked Transactions")," "),o(3),x("dataSource",e.transactionRelations),o(10),x("matHeaderRowDef",e.displayedColumns),o(),x("matRowDefColumns",e.displayedColumns)}}function S8(t,n){if(t&1&&T(0,"mifosx-transaction-payment-detail",9),t&2){let e=P();x("paymentDetailData",e.transactionData.paymentDetailData)}}var d0=(()=>{class t{constructor(){this.loansService=A(Mt),this.route=A(Et),this.dateUtils=A(de),this.router=A(le),this.dialog=A(Gn),this.translateService=A(pa),this.settingsService=A(oe),this.organizationService=A(Op),this.alertService=A(Jl),this.allowEdition=!0,this.allowUndo=!0,this.allowChargeback=!0,this.existTransactionRelations=!1,this.paymentTypeOptions=[],this.transactionRelations=new Li,this.displayedColumns=["relationType","toTransaction","amount"],this.isFullRelated=!1,this.amountRelationsAllowed=0,this.route.data.subscribe(e=>{this.transactionData=e.loansAccountTransaction,this.transactionType=this.transactionData.type,this.allowEdition=!this.transactionData.manuallyReversed&&!this.allowTransactionEdition(this.transactionData.type.id),this.allowUndo=this.allowUndoTransaction(this.transactionData.manuallyReversed,this.transactionType),this.allowChargeback=this.allowChargebackTransaction(this.transactionType)&&!this.transactionData.manuallyReversed;let i=!1;if(this.transactionData.transactionRelations){this.transactionRelations.data=this.transactionData.transactionRelations,this.existTransactionRelations=this.transactionData.transactionRelations.length>0;let a=0;this.transactionData.transactionRelations.forEach(r=>{r.relationType==="CHARGEBACK"&&(a+=r.amount,i=!0)}),this.amountRelationsAllowed=this.transactionData.amount-a,this.isFullRelated=this.amountRelationsAllowed===0,this.allowChargeback=this.allowChargebackTransaction(this.transactionType)&&!this.isFullRelated}this.allowChargeback||(this.allowEdition=!1),(this.existTransactionRelations&&i||this.transactionType.reAge||this.transactionType.reAmortize)&&(this.allowUndo=!1)}),this.clientId=this.route.snapshot.params.clientId,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.allowChargeback&&this.organizationService.getPaymentTypesWithCode().toPromise().then(e=>{this.paymentTypeOptions=e})}allowTransactionEdition(e){return e===20||e===21||e===22||e===23||e===28}allowChargebackTransaction(e){return e.repayment||e.interestPaymentWaiver||e.goodwillCredit||e.payoutRefund||e.merchantIssuedRefund||e.downPayment}allowUndoTransaction(e,i){return!(e||i.interestRefund)}isWriteOff(e){return e.writeOff||e.code==="loanTransactionType.writeOff"}undoTransaction(){let e=this.route.snapshot.params.loanId;if(this.transactionType.contractTermination){let i=[new Ti({controlName:"note",label:"Note",value:"",type:"text",required:!1,order:1}),new Ti({controlName:"reversalExternalId",label:"externalId",value:"",type:"text",required:!1,order:2})],a={title:this.translateService.instant("labels.heading.Undo Transaction"),layout:{addButtonText:"Undo"},formfields:i,pristine:!1};this.dialog.open(_i,{data:a,width:"50rem"}).afterClosed().subscribe(u=>{if(u.data){let d={note:u.data.value.note,reversalExternalId:u.data.value.reversalExternalId};this.loansService.loanActionButtons(e,"undoContractTermination",d).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}else this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction")+`${this.transactionData.id}`}}).afterClosed().subscribe(a=>{if(a.confirm){let r=this.settingsService.language.code,u=this.settingsService.dateFormat,d={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),u),transactionAmount:0,dateFormat:u,locale:r},g=this.isWriteOff(this.transactionType)?"undowriteoff":"undo",_=g==="undowriteoff"?null:this.transactionData.id;this.loansService.executeLoansAccountTransactionsCommand(e,g,d,_).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}chargebackTransaction(){let e=this.route.snapshot.params.loanId,i=[new ic({controlName:"paymentTypeId",label:"Payment Type",value:"",options:{label:"name",value:"id",data:this.paymentTypeOptions},required:!0,order:1}),new Ti({controlName:"amount",label:"Amount",value:this.amountRelationsAllowed,type:"number",required:!0,max:this.amountRelationsAllowed,order:2})],a={title:`Chargeback ${this.transactionType.value} Transaction`,layout:{addButtonText:"Chargeback"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data)if(u.data.value.amount<=this.amountRelationsAllowed){let d=this.settingsService.language.code,g={transactionAmount:u.data.value.amount,paymentTypeId:u.data.value.paymentTypeId,locale:d};this.loansService.executeLoansAccountTransactionsCommand(e,"chargeback",g,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}else this.alertService.alert({type:"BusinessRule",message:"Chargeback amount must be lower or equal to: "+this.amountRelationsAllowed})})}loanTransactionRelatedLink(e){return`/#/clients/${this.clientId}/loans-accounts/${this.loanId}/transactions/${e}`}loanTransactionColor(){return this.transactionData.manuallyReversed?"undo":this.existTransactionRelations?"linked":"active"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-view-transaction"]],decls:47,vars:51,consts:[[1,"container","m-b-20","transaction-buttons","layout-align-end","gap-2percent"],[1,"container"],[1,"layout-row-wrap","card-content"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"flex-50","no-break-content"],[3,"inset"],[1,"mat-body-strong","flex-100"],[3,"paymentDetailData"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink","disabled"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","undo",1,"m-r-10"],[3,"href"],["completed","true",3,"externalId"],["mat-table","",3,"dataSource"],["matColumnDef","relationType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","toTransaction"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"matTooltip"],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(M(0,r8,3,2,"div",0),s(1,"div",1)(2,"mat-card")(3,"mat-card-content")(4,"div",2),T(5,"div",3),s(6,"div",4),c(7),p(8,"translateKey"),l(),s(9,"div",5),c(10),l(),M(11,l8,3,4,"div",4),M(12,s8,3,2,"div",5),s(13,"div",4),c(14),p(15,"translateKey"),l(),s(16,"div",5),c(17),p(18,"translateKey"),l(),s(19,"div",4),c(20),p(21,"translateKey"),l(),s(22,"div",5),c(23),p(24,"dateFormat"),l(),s(25,"div",4),c(26),p(27,"translateKey"),l(),s(28,"div",5),c(29),l(),s(30,"div",4),c(31),p(32,"translateKey"),l(),s(33,"div",5),c(34),p(35,"currency"),l(),M(36,c8,3,3,"div",4),M(37,p8,2,2,"div",5),M(38,m8,3,4,"div",4),M(39,d8,2,1,"div",6),M(40,u8,1,1,"mat-divider",7),M(41,y8,16,6,"div",8),M(42,S8,1,1,"mifosx-transaction-payment-detail",9),l(),s(43,"div",10)(44,"button",11),c(45),p(46,"translate"),l()()()()()),i&2&&(O(a.transactionData.type.contra?-1:0),o(5),x("ngClass",a.loanTransactionColor()),o(2),v(" ",Ge(8,23,"Transaction Id","catalogs")," "),o(3),v(" ",a.transactionData.id," "),o(),O(a.transactionData.toLoanTransactionRelation?11:-1),o(),O(a.transactionData.toLoanTransactionRelation?12:-1),o(2),v(" ",Ge(15,26,"Type","catalogs")," "),o(3),v(" ",Ge(18,29,a.transactionData.type.value,"catalogs")," "),o(3),v(" ",Ge(21,32,"Transaction Date","catalogs")," "),o(3),v(" ",m(24,35,a.transactionData.date)," "),o(3),v(" ",Ge(27,37,"Currency","catalogs")," "),o(3),v(" ",a.transactionData.currency.name," "),o(2),v(" ",Ge(32,40,"Amount","catalogs")," "),o(3),v(" ",Ye(35,43,a.transactionData.amount,a.transactionData.currency.code,"symbol-narrow","1.2-2")," "),o(2),O(a.transactionData.externalId?36:-1),o(),O(a.transactionData.externalId?37:-1),o(),O(a.transactionData.classification?38:-1),o(),O(a.transactionData.classification?39:-1),o(),O(a.existTransactionRelations?40:-1),o(),O(a.existTransactionRelations?41:-1),o(),O(a.transactionData.paymentDetailData?42:-1),o(2),x("routerLink",Ut(50,i8)),o(),v(" ",m(46,48,"labels.buttons.Back")," "))},dependencies:[wt,ca,Tt,ae,xe,Oe,Wt,Ae,un,Va,$o,bn,yn,xn,Sn,vn,Dn,Oi,wn,Pn,Tn,An,u1,Sa,En,Pt,qa],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.loan-relation[_ngcontent-%COMP%]{background-color:#d7dada}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();var D8=()=>["../"];function w8(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),v(" ",m(6,7,"labels.commons.required")," "))}function T8(t,n){if(t&1&&(s(0,"mat-option",10),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function P8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",18),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Account Number")))}function A8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",19),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Cheque")))}function M8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",20),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Routing Code")))}function O8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",21),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Receipt Number")))}function I8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",22),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Bank")))}var u0=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.loansService=A(Mt),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(e=>{this.transactionTemplateData=e.loansAccountTransactionTemplate,e.loansAccountTransactionTemplate.currency&&(this.currency=e.loansAccountTransactionTemplate.currency),this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.loanAccountId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,externalId:this.transactionTemplateData.externalId,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",Gt.required],transactionAmount:["",Gt.required],externalId:[""],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new pe("")),this.editTransactionForm.addControl("checkNumber",new pe("")),this.editTransactionForm.addControl("routingCode",new pe("")),this.editTransactionForm.addControl("receiptNumber",new pe("")),this.editTransactionForm.addControl("bankNumber",new pe(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){let e=this.editTransactionForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.editTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.transactionAmount=u.transactionAmount*1,this.loansService.executeLoansAccountTransactionsCommand(this.loanAccountId,"modify",u,this.transactionTemplateData.id).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-edit-transaction"]],decls:45,vars:37,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","formControlName","externalId"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content",3)(4,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(11);return dt(d.open())}),s(5,"mat-label"),c(6),p(7,"translate"),l(),T(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),M(12,w8,7,9,"mat-error"),l(),T(13,"mifosx-input-amount",7),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"input",8),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),s(23,"mat-select",9),ue(24,T8,2,2,"mat-option",10,Ce),l()(),s(26,"div",11)(27,"span",12),it("click",function(){return mt(r),dt(a.addPaymentDetails())}),s(28,"mat-slide-toggle")(29,"div",13)(30,"span",14),c(31),p(32,"translate"),l()()()()(),M(33,P8,5,3,"mat-form-field"),M(34,A8,5,3,"mat-form-field"),M(35,M8,5,3,"mat-form-field"),M(36,O8,5,3,"mat-form-field"),M(37,I8,5,3,"mat-form-field"),s(38,"mat-card-actions",15)(39,"button",16),c(40),p(41,"translate"),l(),s(42,"button",17),c(43),p(44,"translate"),l()()()()()()}if(i&2){let r=Lt(11);o(2),x("formGroup",a.editTransactionForm),o(4),b(m(7,24,"labels.inputs.Transaction Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.editTransactionForm.controls.transactionDate.hasError("required")?12:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.editTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(17,26,"labels.inputs.External Id")),o(5),b(m(22,28,"labels.inputs.Payment Type")),o(3),fe(a.paymentTypeOptions),o(5),x("className",a.showPaymentDetails?"enabled":"disabled"),o(2),b(m(32,30,"labels.inputs.Show Payment Details")),o(2),O(a.editTransactionForm.controls.accountNumber?33:-1),o(),O(a.editTransactionForm.controls.checkNumber?34:-1),o(),O(a.editTransactionForm.controls.routingCode?35:-1),o(),O(a.editTransactionForm.controls.receiptNumber?36:-1),o(),O(a.editTransactionForm.controls.bankNumber?37:-1),o(2),x("routerLink",Ut(36,D8)),o(),v(" ",m(41,32,"labels.buttons.Cancel")," "),o(2),x("disabled",!a.editTransactionForm.valid),o(),v(" ",m(44,34,"labels.buttons.Submit")," ")}},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ri,ja,Pt],styles:[".container[_ngcontent-%COMP%]{width:37rem;margin-top:3%;padding-bottom:2%}"]})}}return t})();var E8=()=>["../../../general"],f0=(()=>{class t{constructor(){this.sanitizer=A(Zl),this.route=A(Et),this.route.data.subscribe(e=>{this.transactionRecieptData=e.loansTransactionReciept})}ngOnInit(){let e=this.transactionRecieptData.headers.get("Content-Type"),i=new Blob([this.transactionRecieptData.body],{type:e}),a=URL.createObjectURL(i);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-view-reciept"]],decls:7,vars:6,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(i,a){i&1&&(s(0,"mat-card",0)(1,"div",1)(2,"button",2),T(3,"fa-icon",3),c(4),p(5,"translate"),l()(),T(6,"iframe",4),l()),i&2&&(o(2),x("routerLink",Ut(5,E8)),o(2),v("",m(5,3,"labels.buttons.Back")," "),o(2),x("src",a.pentahoUrl,hp))},dependencies:[wt,Tt,ae,xe,Wt,un,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]})}}return t})();var L8=()=>["../"];function N8(t,n){if(t&1&&T(0,"iframe",13),t&2){let e=P();x("src",e.pentahoUrl,hp)}}var h0=(()=>{class t{constructor(){this.sanitizer=A(Zl),this.reportsService=A(Ip),this.formBuilder=A(Te),this.dateUtils=A(de),this.route=A(Et),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(e=>{this.loansAccountId=e.loanDetailsData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",Gt.required],toDate:[this.settingsService.businessDate,Gt.required]})}generate(){let e=this.settingsService.dateFormat,i={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,e),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,e),R_selectLoan:this.loansAccountId};this.reportsService.getPentahoRunReportData("Client Loan Account Schedule",i,"default","en",e).subscribe(a=>{let r=a.headers.get("Content-Type"),u=new Blob([a.body],{type:r}),d=URL.createObjectURL(u);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(d),this.hideOutput=!1})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-export-transactions"]],decls:41,vars:43,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"layout-column","m-t-20",3,"ngSubmit","formGroup"],[1,"layout-row","layout-align-center","gap-3percent"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill","flex-30",3,"click"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"generate-button","layout-row","layout-xs-column","layout-align-center","gap-5percent"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(i,a){if(i&1){let r=xt();s(0,"form",2),it("ngSubmit",function(){return mt(r),dt(a.generate())}),s(1,"div",3)(2,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(9);return dt(d.open())}),s(3,"mat-label"),c(4),p(5,"translate"),l(),T(6,"input",5)(7,"mat-datepicker-toggle",6)(8,"mat-datepicker",null,0),s(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),s(14,"strong"),c(15),p(16,"translate"),l()()(),s(17,"mat-form-field",7),it("click",function(){mt(r);let d=Lt(24);return dt(d.open())}),s(18,"mat-label"),c(19),p(20,"translate"),l(),T(21,"input",8)(22,"mat-datepicker-toggle",6)(23,"mat-datepicker",null,1),s(25,"mat-error"),c(26),p(27,"translate"),p(28,"translate"),s(29,"strong"),c(30),p(31,"translate"),l()()()(),s(32,"div",9)(33,"button",10),c(34),p(35,"translate"),l(),s(36,"button",11),T(37,"fa-icon",12),c(38),p(39,"translate"),l()()(),M(40,N8,1,1,"iframe",13)}if(i&2){let r=Lt(9),u=Lt(24);x("formGroup",a.transactionsReportForm),o(4),b(m(5,22,"labels.inputs.From Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(4),$t(" ",m(12,24,"labels.inputs.From date")," ",m(13,26,"labels.commons.is")," "),o(4),v(" ",m(16,28,"labels.commons.required")," "),o(4),b(m(20,30,"labels.inputs.To Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",u),o(),x("for",u),o(4),$t(" ",m(27,32,"labels.inputs.To date")," ",m(28,34,"labels.commons.is")," "),o(4),v(" ",m(31,36,"labels.commons.required")," "),o(3),x("routerLink",Ut(42,L8)),o(),b(m(35,38,"labels.buttons.Cancel")),o(2),x("disabled",!a.transactionsReportForm.valid),o(2),v("",m(39,40,"labels.buttons.Generate Report")," \xA0 "),o(2),O(a.hideOutput?-1:40)}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,un,Pt],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]})}}return t})();var k8=t=>["../../",t,"general"];function F8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Id")))}function R8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.childLoanId," ")}}function B8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client ID")))}function q8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.clientId)}}function j8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client Name")))}function z8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.clientName)}}function V8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Account Number")))}function U8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.childLoanAccountNo)}}function H8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client Principal Loan")))}function G8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.childPrincipalAmount)}}function W8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Group Principal Loan")))}function $8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.parentPrincipalAmount)}}function Y8(t,n){t&1&&T(0,"tr",14)}function Z8(t,n){if(t&1&&T(0,"tr",15),t&2){let e=n.$implicit;x("routerLink",La(1,k8,e.childLoanId))}}var g0=(()=>{class t{constructor(){this.route=A(Et),this.dialog=A(Gn),this.displayedColumns=["loanId","clientId","clientName","loanAccountNumber","clientPrincipalLoan","groupPrincipalLoan"],this.route.data.subscribe(e=>{this.glimOverviewData=e.glimData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new Li(this.glimOverviewData)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-glim-account"]],viewQuery:function(i,a){if(i&1&&mi(Do,7),i&2){let r;di(r=ui())&&(a.paginator=r.first)}},decls:26,vars:6,consts:[[1,"loan-card"],["mat-table","",3,"dataSource"],["matColumnDef","loanId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","clientId"],["matColumnDef","clientName"],["matColumnDef","loanAccountNumber"],["matColumnDef","clientPrincipalLoan"],["matColumnDef","groupPrincipalLoan"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(i,a){i&1&&(s(0,"mat-card",0)(1,"mat-card-content")(2,"h2"),c(3),p(4,"translate"),l(),s(5,"table",1),X(6,2),k(7,F8,3,3,"th",3)(8,R8,2,1,"td",4),Q(),X(9,5),k(10,B8,3,3,"th",3)(11,q8,2,1,"td",4),Q(),X(12,6),k(13,j8,3,3,"th",3)(14,z8,2,1,"td",4),Q(),X(15,7),k(16,V8,3,3,"th",3)(17,U8,2,1,"td",4),Q(),X(18,8),k(19,H8,3,3,"th",3)(20,G8,2,1,"td",4),Q(),X(21,9),k(22,W8,3,3,"th",3)(23,$8,2,1,"td",4),Q(),k(24,Y8,1,0,"tr",10)(25,Z8,1,3,"tr",11),l()()()),i&2&&(o(3),b(m(4,4,"labels.heading.GLIM Account Overview")),o(2),x("dataSource",a.dataSource),o(19),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns))},dependencies:[wt,Tt,ae,xe,Oe,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Pt],styles:[".loan-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .loan-card-title[_ngcontent-%COMP%]{color:#fff;width:90%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .loan-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{margin:1%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{object-fit:cover;border-radius:20px}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .loan-actions[_ngcontent-%COMP%]{align-self:flex-end;margin:0 1%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .loan-span[_ngcontent-%COMP%]{margin:0 .5%}.loan-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.loans-overview[_ngcontent-%COMP%]{font-size:14px}"]})}}return t})();var K8=()=>["../","general"];function J8(t,n){if(t&1){let e=xt();s(0,"th",17)(1,"mat-checkbox",18),it("change",function(){mt(e);let a=P(2);return dt(a.toggleSelects())}),nc("ngModelChange",function(a){mt(e);let r=P(2);return ec(r.selectAllItems,a)||(r.selectAllItems=a),dt(a)}),l()()}if(t&2){let e=P(2);o(),tc("ngModel",e.selectAllItems)}}function X8(t,n){if(t&1){let e=xt();s(0,"td",19)(1,"mat-checkbox",18),it("change",function(){mt(e);let a=P(2);return dt(a.toggleSelect())}),nc("ngModelChange",function(a){let r=mt(e).$implicit;return ec(r.selected,a)||(r.selected=a),dt(a)}),l()()}if(t&2){let e=n.$implicit;o(),tc("ngModel",e.selected)}}function Q8(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client ID")))}function tL(t,n){if(t&1&&(s(0,"td",19),c(1),l()),t&2){let e=n.$implicit;o(),b(e.id)}}function eL(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client Name")))}function nL(t,n){if(t&1&&(s(0,"td",19),c(1),l()),t&2){let e=n.$implicit;o(),b(e.displayName)}}function iL(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Purpose")))}function aL(t,n){if(t&1&&(s(0,"mat-option",21),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function oL(t,n){if(t&1){let e=xt();s(0,"td",19)(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),l(),s(5,"mat-select",20),nc("ngModelChange",function(a){let r=mt(e).$implicit;return ec(r.loanPurposeId,a)||(r.loanPurposeId=a),dt(a)}),ue(6,aL,2,2,"mat-option",21,Ce),l()()()}if(t&2){let e=n.$implicit,i=P(2);o(3),b(m(4,2,"labels.inputs.Select Purpose")),o(2),tc("ngModel",e.loanPurposeId),o(),fe(i.loanPurposeOptions)}}function rL(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Original Loan")))}function lL(t,n){if(t&1){let e=xt();s(0,"td",19)(1,"mat-form-field")(2,"input",22),nc("ngModelChange",function(a){let r=mt(e).$implicit;return ec(r.principal,a)||(r.principal=a),dt(a)}),l()()()}if(t&2){let e=n.$implicit;o(2),tc("ngModel",e.principal)}}function sL(t,n){t&1&&T(0,"tr",23)}function cL(t,n){t&1&&T(0,"tr",24)}function pL(t,n){if(t&1&&(s(0,"div",0)(1,"table",7),X(2,8),k(3,J8,2,1,"th",9)(4,X8,2,1,"td",10),Q(),X(5,11),k(6,Q8,3,3,"th",9)(7,tL,2,1,"td",10),Q(),X(8,12),k(9,eL,3,3,"th",9)(10,nL,2,1,"td",10),Q(),X(11,13),k(12,iL,3,3,"th",9)(13,oL,8,4,"td",10),Q(),X(14,14),k(15,rL,3,3,"th",9)(16,lL,3,1,"td",10),Q(),k(17,sL,1,0,"tr",15)(18,cL,1,0,"tr",16),l()()),t&2){let e=P();o(),x("dataSource",e.dataSource),o(16),x("matHeaderRowDef",e.displayedColumn),o(),x("matRowDefColumns",e.displayedColumn)}}function mL(t,n){t&1&&(s(0,"button",6),c(1),p(2,"translate"),l()),t&2&&(x("routerLink",Ut(4,K8)),o(),v(" ",m(2,2,"labels.buttons.Cancel")," "))}var Ic=(()=>{class t{constructor(){this.route=A(Et),this.loanId=null,this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name","purpose","amount"],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.dataSource=new Li(this.activeClientMembers)}get isValid(){return!this.activeClientMembers||this.selectedClientMembers?.selectedMembers?.reduce((e,i)=>e+(i.principal??0),0)>0}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(let e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){let e=this.activeClientMembers.length;this.selectAllItems=e===0?!1:this.activeClientMembers.filter(i=>i.selected).length===e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-active-client-members"]],inputs:{activeClientMembers:"activeClientMembers",loansAccountFormValid:"loansAccountFormValid"},decls:11,vars:9,consts:[[1,"layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-raised-button","",3,"routerLink"],["mat-table","",1,"flex-98",3,"dataSource"],["matColumnDef","check"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","name"],["matColumnDef","purpose"],["matColumnDef","amount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","ngModelChange","ngModel"],["mat-cell",""],[3,"ngModelChange","ngModel"],[3,"value"],["type","number","matInput","",3,"ngModelChange","ngModel"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(M(0,pL,19,3,"div",0),s(1,"div",1)(2,"button",2),T(3,"fa-icon",3),c(4),p(5,"translate"),l(),s(6,"button",4),c(7),p(8,"translate"),T(9,"fa-icon",5),l(),M(10,mL,3,5,"button",6),l()),i&2&&(O(a.activeClientMembers?0:-1),o(4),v(" ",m(5,5,"labels.buttons.Previous")," "),o(2),x("disabled",!a.loansAccountFormValid),o(),v(" ",m(8,7,"labels.buttons.Next")," "),o(3),O(a.loanId?10:-1))},dependencies:[wt,Tt,we,Mi,he,ae,_e,ge,Pe,In,On,Wt,Da,bn,yn,xn,Sn,Hf,zf,vn,Dn,wn,Pn,Tn,An,za,un,mo,Pt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.tableName[_ngcontent-%COMP%]{padding-left:2%}"]})}}return t})();var dL=["dtloan"];function uL(t,n){t&1&&T(0,"fa-icon",20)}function fL(t,n){t&1&&T(0,"fa-icon",20)}function hL(t,n){t&1&&T(0,"fa-icon",21)}function gL(t,n){t&1&&T(0,"fa-icon",22)}function _L(t,n){t&1&&T(0,"fa-icon",23)}function CL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.DETAILS"))}function bL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.TERMS"))}function vL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.CHARGES"))}function xL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.heading.Active Client Members"))}function yL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.REPAYMENT SCHEDULE"))}function SL(t,n){if(t&1&&(s(0,"mat-step",18),k(1,yL,2,3,"ng-template",13),T(2,"mifosx-loans-account-schedule-step",24,3),l()),t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)("currencyCode",e.currencyCode)}}function DL(t,n){if(t&1&&c(0),t&2){let e=P().$implicit;b(e.registeredTableName)}}function wL(t,n){if(t&1&&(s(0,"mat-step"),k(1,DL,1,1,"ng-template",13),T(2,"mifosx-loans-account-datatable-step",25,4),l()),t&2){let e=n.$implicit;o(2),x("datatableData",e)}}function TL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.PREVIEW"))}function PL(t,n){if(t&1){let e=xt();s(0,"mat-step",19),k(1,TL,2,3,"ng-template",13),s(2,"mifosx-loans-account-preview-step",26),it("submitEvent",function(){mt(e);let a=P();return dt(a.submit())}),l()()}if(t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)("activeClientMembers",e.activeClientMembers)}}var _0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansService=A(Mt),this.settingsService=A(oe),this.clientService=A(ns),this.dateUtils=A(de),this.i18nService=A(Yf),this.loansAccountProductTemplate=null,this.datatables=[],this.route.data.subscribe(e=>{this.loansAccountTemplate=e.loansAccountTemplate,this.dataSource=e.groupsData.activeClientMembers})}setTemplate(e){this.loansAccountProductTemplate=e,this.currencyCode=this.loansAccountProductTemplate.currency.code;let i=this.loansAccountTemplate.clientId;i?this.clientService.getCollateralTemplate(i).subscribe(d=>{this.collateralOptions=d}):console.error("No collateral data requested from Fineract, collateral might misbehave");let a=this.loansAccountTemplate.clientId?this.loansAccountTemplate.clientId:this.loansAccountTemplate.group.id,r=!this.loansAccountTemplate.clientId,u=this.loansAccountProductTemplate.loanProductId;this.loansService.getLoansAccountTemplateResource(a,r,u).subscribe(d=>{this.multiDisburseLoan=d.multiDisburseLoan}),this.setDatatables()}setDatatables(){this.datatables=[],this.loansAccountProductTemplate.datatables&&this.loansAccountProductTemplate.datatables.forEach(e=>{this.datatables.push(e)})}get loansAccountDetailsForm(){return this.loansAccountDetailsStep.loansAccountDetailsForm}get loansAccountTermsForm(){return this.loansAccountTermsStep.loansAccountTermsForm}get activeClientMembers(){return this.dataSource}get loansAccountFormValid(){return this.loansAccountDetailsForm.valid&&this.loansAccountTermsForm.valid&&this.loansActiveClientMembers.isValid}get loanPrincipal(){return this.loansAccountTermsStep.loansAccountTermsForm.value.principal}get loansAccount(){return this.selectedMembers=this.loansActiveClientMembers.selectedClientMembers,ie(ie(ie(ie(ie({},this.loansAccountDetailsStep.loansAccountDetails),this.loansAccountTermsStep.loansAccountTerms),this.loansAccountChargesStep.loansAccountCharges),this.loansAccountTermsStep.loanCollateral),this.loansAccountTermsStep.disbursementData)}setData(e,i){let a=this.settingsService.language.code,r=this.settingsService.dateFormat,u=ve(ie({},this.loansAccount),{charges:(this.loansAccount.charges??[]).map(d=>{let g=d.chargeId??d.id;if(g==null)return null;let _={chargeId:g,amount:d.amount};return d.id&&d.id!==g&&(_.id=d.id),d.dueDate&&(_.dueDate=this.dateUtils.formatDate(d.dueDate,r)),d.feeInterval!==void 0&&(_.feeInterval=d.feeInterval),d.feeOnMonthDay!==void 0&&(_.feeOnMonthDay=d.feeOnMonthDay),_}).filter(Boolean),clientId:e.id,totalLoan:i,loanType:"glim",amortizationType:1,isParentAccount:!0,principal:e.principal,syncDisbursementWithMeeting:!1,expectedDisbursementDate:this.dateUtils.formatDate(this.loansAccount.expectedDisbursementDate,r),submittedOnDate:this.dateUtils.formatDate(this.loansAccount.submittedOnDate,r),dateFormat:r,locale:a});return u.groupId=this.loansAccountTemplate.group.id,delete u.principalAmount,delete u.allowPartialPeriodInterestCalculation,delete u.multiDisburseLoan,delete u.isFloatingInterestRate,JSON.stringify(u)}buildRequestData(){let e=[],i=this.selectedMembers?.selectedMembers??[],a=this.totalLoanAmount();for(let r=0;rNumber(r.id)));for(let r of e){let u=Number(r.id),d=Number(r.linkAccountOwnerId);if(r.linkAccountId&&r.linkAccountOwnerId&&d!==u){this.i18nService.translate("errors.linkedSavingsAccountOwnership").subscribe(g=>{this.notify({defaultUserMessage:g,errors:[]},{memberId:u})});return}if(!i.has(u)){this.i18nService.translate("errors.clientNotInGSIM",{id:u}).subscribe(g=>{this.notify({defaultUserMessage:g,errors:[]},{memberId:u})});return}}let a=this.buildRequestData();this.loansService.createGlimAccount(a).subscribe(r=>{let u=JSON.parse(r[0].body);u.glimId?this.router.navigate(["../",u.glimId],{relativeTo:this.route}):this.notify(u,{batchSize:a.length})})}notify(e,i){let a=[String(e?.defaultUserMessage??"")];if(Array.isArray(e?.errors))for(let r of e.errors)a.push(String(r?.developerMessage??""));i&&a.push(`Context: ${JSON.stringify(i)}`),console.error(a.join(" ").trim())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-create-glim-account"]],viewQuery:function(i,a){if(i&1&&(mi(Oo,7),mi(Io,7),mi(Eo,7),mi(Ic,7),mi(dL,5)),i&2){let r;di(r=ui())&&(a.loansAccountDetailsStep=r.first),di(r=ui())&&(a.loansAccountTermsStep=r.first),di(r=ui())&&(a.loansAccountChargesStep=r.first),di(r=ui())&&(a.loansActiveClientMembers=r.first),di(r=ui())&&(a.loanDatatables=r)}},decls:26,vars:16,consts:[["loansAccountStepper",""],["loanAccountTerms",""],["loanAccountCharges",""],["loanAccountSchedule",""],["dtloan",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loansAccountProductTemplate","loansAccountTemplate"],[3,"loansAccountProductTemplate","loansAccountTemplate","collateralOptions","loansAccountFormValid","loanPrincipal"],[3,"loansAccountProductTemplate","loansAccountTemplate","loansAccountFormValid"],[3,"activeClientMembers","loansAccountFormValid"],["state","repayment","completed",""],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"loansAccountTemplate","loansAccountProductTemplate","loansAccount","currencyCode"],[3,"datatableData"],[3,"submitEvent","loansAccountTemplate","loansAccountProductTemplate","loansAccount","activeClientMembers"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",5)(1,"mat-stepper",6,0),k(3,uL,1,0,"ng-template",7)(4,fL,1,0,"ng-template",8)(5,hL,1,0,"ng-template",9)(6,gL,1,0,"ng-template",10)(7,_L,1,0,"ng-template",11),s(8,"mat-step",12),k(9,CL,2,3,"ng-template",13),s(10,"mifosx-loans-account-details-step",14),it("loansAccountProductTemplate",function(d){return mt(r),dt(a.setTemplate(d))}),l()(),s(11,"mat-step",12),k(12,bL,2,3,"ng-template",13),T(13,"mifosx-loans-account-terms-step",15,1),l(),s(15,"mat-step"),k(16,vL,2,3,"ng-template",13),T(17,"mifosx-loans-account-charges-step",16,2),l(),s(19,"mat-step"),k(20,xL,2,3,"ng-template",13),T(21,"mifosx-loans-active-client-members",17),l(),M(22,SL,4,4,"mat-step",18),ue(23,wL,4,1,"mat-step",null,Ce),M(25,PL,3,4,"mat-step",19),l()()}i&2&&(o(),x("linear",!1),o(7),x("stepControl",a.loansAccountDetailsForm),o(2),x("loansAccountTemplate",a.loansAccountTemplate),o(),x("stepControl",a.loansAccountTermsForm),o(2),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("collateralOptions",a.collateralOptions)("loansAccountFormValid",a.loansAccountFormValid)("loanPrincipal",a.loanPrincipal),o(4),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("loansAccountFormValid",a.loansAccountFormValid),o(4),x("activeClientMembers",a.activeClientMembers)("loansAccountFormValid",a.loansAccountFormValid),o(),O(a.loansAccountFormValid?22:-1),o(),fe(a.datatables),o(2),O(a.loansAccountFormValid?25:-1))},dependencies:[wt,Tt,es,Ql,un,ts,Xl,Oo,Io,Eo,Ic,el,Ss,nl,Pt],encapsulation:2})}}return t})();function AL(t,n){t&1&&(s(0,"div",1),T(1,"mat-spinner",2),l())}function ML(t,n){t&1&&(s(0,"div",3),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.messages.No Data Found")," "))}function OL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Date")))}function IL(t,n){if(t&1&&(s(0,"td",17),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.buyDownFeeDate)," ")}}function EL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Fee Amount")))}function LL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.buyDownFeeAmount,"0.00")," ")}}function NL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Amortized Amount")))}function kL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.amortizedAmount,"0.00")," ")}}function FL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Not Yet Amortized Amount")))}function RL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.notYetAmortizedAmount,"0.00")," ")}}function BL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Adjusted Amount")))}function qL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.adjustedAmount,"0.00")," ")}}function jL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Charged Off Amount")))}function zL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.chargedOffAmount,"0.00")," ")}}function VL(t,n){t&1&&T(0,"tr",19)}function UL(t,n){t&1&&T(0,"tr",20)}function HL(t,n){if(t&1&&(s(0,"table",4),X(1,5),k(2,OL,3,3,"th",6)(3,IL,3,3,"td",7),Q(),X(4,8),k(5,EL,3,3,"th",6)(6,LL,3,4,"td",9),Q(),X(7,10),k(8,NL,3,3,"th",6)(9,kL,3,4,"td",9),Q(),X(10,11),k(11,FL,3,3,"th",6)(12,RL,3,4,"td",9),Q(),X(13,12),k(14,BL,3,3,"th",6)(15,qL,3,4,"td",9),Q(),X(16,13),k(17,jL,3,3,"th",6)(18,zL,3,4,"td",9),Q(),k(19,VL,1,0,"tr",14)(20,UL,1,0,"tr",15),l()),t&2){let e=P(2);x("dataSource",e.buyDownFeeData),o(19),x("matHeaderRowDef",e.buyDownFeeColumns),o(),x("matRowDefColumns",e.buyDownFeeColumns)}}function GL(t,n){if(t&1&&(s(0,"div"),M(1,ML,3,3,"div",3),M(2,HL,21,3,"table",4),l()),t&2){let e=P();o(),O(e.buyDownFeeData.length===0?1:-1),o(),O(e.buyDownFeeData.length>0?2:-1)}}var vg=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.buyDownFeeData=[],this.isLoading=!0,this.buyDownFeeColumns=["buyDownFeeDate","buyDownFeeAmount","amortizedAmount","notYetAmortizedAmount","adjustedAmount","chargedOffAmount"]}ngOnInit(){this.getLoanId(),this.loadBuyDownFees()}getLoanId(){if(this.route.snapshot.data&&this.route.snapshot.data.loanId){this.loanId=this.route.snapshot.data.loanId;return}let e=this.route;for(;e;){if(e.snapshot.paramMap.has("loanId")){this.loanId=e.snapshot.paramMap.get("loanId");return}if(e.parent)e=e.parent;else break}console.error("Could not find loanId in route parameters")}loadBuyDownFees(){if(!this.loanId){console.error("Cannot load buy down fees: loanId is undefined"),this.isLoading=!1;return}this.isLoading=!0,this.loansService.getBuyDownFeeData(this.loanId).subscribe({next:e=>{this.buyDownFeeData=e||[],this.isLoading=!1},error:e=>{console.error("Error loading buy down fees:",e),this.isLoading=!1}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-buy-down-fees-tab"]],decls:6,vars:5,consts:[[1,"container"],[1,"loading-indicator"],["diameter","30"],[1,"no-data"],["mat-table","",3,"dataSource"],["matColumnDef","buyDownFeeDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","buyDownFeeAmount"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","amortizedAmount"],["matColumnDef","notYetAmortizedAmount"],["matColumnDef","adjustedAmount"],["matColumnDef","chargedOffAmount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"r-amount"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"h3"),c(2),p(3,"translate"),l(),M(4,AL,2,0,"div",1),M(5,GL,3,2,"div"),l()),i&2&&(o(2),b(m(3,3,"labels.heading.Buy Down Fees")),o(2),O(a.isLoading?4:-1),o(),O(a.isLoading?-1:5))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,En,Pt,hn],encapsulation:2})}}return t})();var il=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");if(!isNaN(+i))return this.loansService.getLoanAccountAssociationDetails(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var yu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoanNotes(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var C0=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(){return this.loansService.getLoanDataTables()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Su=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.parent.paramMap.get("loanId"),a=e.paramMap.get("datatableName");return this.loansService.getLoanDatatable(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Du=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId"),a=e.paramMap.get("action");return a==="Assign Loan Officer"||a==="Change Loan Officer"?this.loansService.getLoanTemplate(i):a==="Make Repayment"?this.loansService.getLoanActionTemplate(i,"repayment"):a==="Goodwill Credit"?this.loansService.getLoanActionTemplate(i,"goodwillCredit"):a==="Interest Payment Waiver"?this.loansService.getLoanActionTemplate(i,"interestPaymentWaiver"):a==="Payout Refund"?this.loansService.getLoanActionTemplate(i,"payoutRefund"):a==="Merchant Issued Refund"?this.loansService.getLoanActionTemplate(i,"merchantIssuedRefund"):a==="Credit Balance Refund"?this.loansService.getLoanActionTemplate(i,"creditBalanceRefund"):a==="Waive Interest"?this.loansService.getLoanActionTemplate(i,"waiveinterest"):a==="Write Off"?this.loansService.getLoanActionTemplate(i,"writeoff"):a==="Close"?this.loansService.getLoanActionTemplate(i,"close"):a==="Close (as Rescheduled)"?this.loansService.getLoanActionTemplate(i,"close-rescheduled"):a==="Reschedule"?this.loansService.rescheduleLoanTemplate():a==="Prepay Loan"?this.loansService.getLoanPrepayLoanActionTemplate(i,null):a==="Add Collateral"?this.loansService.getLoanCollateralTemplate(i):a==="Disburse to Savings"?this.loansService.getLoanActionTemplate(i,"disburseToSavings"):a==="Recovery Payment"?this.loansService.getLoanActionTemplate(i,"recoverypayment"):a==="View Guarantors"?this.loansService.getLoanAccountResource(i,"guarantors"):a==="Create Guarantor"?this.loansService.getGuarantorTemplate(i):a==="Disburse"?this.loansService.getLoanActionTemplate(i,"disburse"):a==="Loan Screen Reports"?this.loansService.getLoanScreenReportsData():a==="Approve"?this.loansService.getLoanApprovalTemplate(i):a==="Add Loan Charge"?this.loansService.getLoanChargeTemplateResource(i):a==="Foreclosure"?this.loansService.getLoanForeclosureActionTemplate(i):a==="Charge-Off"?this.loansService.getLoanActionTemplate(i,"charge-off"):a==="Capitalized Income"?this.loansService.getLoanActionTemplate(i,"capitalizedIncome"):a==="Contract Termination"?this.loansService.getLoanActionTemplate(i,"contractTermination"):a==="Buy Down Fee"?this.loansService.getLoanActionTemplate(i,"buyDownFee"):a==="Re-Age"?this.loansService.getLoanActionTemplate(i,"reAge"):a==="Re-Amortize"?this.loansService.getLoanActionTemplate(i,"reAmortization"):void 0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var wu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.parent.parent.paramMap.get("clientId")||e.parent.parent.paramMap.get("groupId"),a=!!e.parent.parent.paramMap.get("groupId");return this.loansService.getLoansAccountTemplateResource(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Tu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoanDocuments(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var b0=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoansAccountAndTemplateResource(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var v0=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId"),a=e.paramMap.get("id");return this.loansService.getLoansAccountCharge(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Pu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId"),a=e.paramMap.get("id");return this.loansService.getLoansAccountTransaction(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Au=(()=>{class t{constructor(){this.reportsService=A(Ip)}resolve(e){let a={"output-type":"PDF",R_transactionId:e.paramMap.get("id")};return this.reportsService.getPentahoRunReportData("Loan Transaction Receipt",a,"default","en","dd MMMM yyyy")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Mu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId"),a=e.paramMap.get("id");return this.loansService.getLoansAccountTransactionTemplate(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Ou=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("groupId"),a=e.paramMap.get("glimId");return this.loansService.getGLIMAccountData(a,i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Iu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("groupId");return this.loansService.getGLIMLoanAccountTemplate(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Eu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDelinquencyTags(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var WL=t=>({data:t});function $L(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function YL(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.End Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}var x0=(()=>{class t{constructor(){this.dialogRef=A(Vo),this.data=A(Uo),this.formBuilder=A(Te),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.createDelinquencyActionForm()}createDelinquencyActionForm(){this.delinquencyActionForm=this.formBuilder.group({startDate:[new Date,Gt.required],endDate:["",Gt.required]})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-delinquency-action-dialog"]],decls:29,vars:30,consts:[["validFromDatePicker",""],["validTillDatePicker",""],["mat-dialog-title",""],["mat-dialog-content","",1,"layout-column",3,"formGroup"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"h2",2),c(1),p(2,"translate"),l(),s(3,"div",3)(4,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(11);return dt(d.open())}),s(5,"mat-label"),c(6),p(7,"translate"),l(),T(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),M(12,$L,7,9,"mat-error"),l(),s(13,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(20);return dt(d.open())}),s(14,"mat-label"),c(15),p(16,"translate"),l(),T(17,"input",7)(18,"mat-datepicker-toggle",6)(19,"mat-datepicker",null,1),M(21,YL,7,9,"mat-error"),l()(),s(22,"mat-dialog-actions",8)(23,"button",9),c(24),p(25,"translate"),l(),s(26,"button",10),c(27),p(28,"translate"),l()()}if(i&2){let r=Lt(11),u=Lt(20);o(),b(m(2,18,"labels.heading.Loan Delinquency Actions")),o(2),x("formGroup",a.delinquencyActionForm),o(3),b(m(7,20,"labels.inputs.Start Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.delinquencyActionForm.controls.startDate.hasError("required")?12:-1),o(3),b(m(16,22,"labels.inputs.End Date")),o(2),x("min",a.delinquencyActionForm.value.startDate)("max",a.maxDate)("matDatepicker",u),o(),x("for",u),o(3),O(a.delinquencyActionForm.controls.endDate.hasError("required")?21:-1),o(3),b(m(25,24,"labels.buttons.Cancel")),o(2),x("mat-dialog-close",La(28,WL,a.delinquencyActionForm))("disabled",!a.delinquencyActionForm.valid||a.delinquencyActionForm.pristine),o(),v(" ",m(28,26,"labels.buttons.Submit")," ")}},dependencies:[wt,Tt,we,he,Ee,je,Le,Ne,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ur,Ho,Go,Kl,Pt],encapsulation:2})}}return t})();function ZL(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Delinquency Classification")))}function KL(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),$t("( ",e.delinquencyRange.minimumAgeDays," - ",e.delinquencyRange.maximumAgeDays," )")}}function JL(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),v("( ",e.delinquencyRange.minimumAgeDays," )")}}function XL(t,n){if(t&1&&(s(0,"td",12),c(1),M(2,KL,2,2,"span"),M(3,JL,2,1,"span"),l()),t&2){let e=n.$implicit;o(),v(" ",e.delinquencyRange.classification," "),o(),O(e.delinquencyRange.maximumAgeDays?2:-1),o(),O(e.delinquencyRange.maximumAgeDays?-1:3)}}function QL(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Added On")))}function tN(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.addedOnDate)," ")}}function eN(t,n){if(t&1&&(s(0,"td",12),M(1,tN,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.addedOnDate?1:-1)}}function nN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Lifted On")))}function iN(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.liftedOnDate)," ")}}function aN(t,n){if(t&1&&(s(0,"td",12),M(1,iN,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.liftedOnDate?1:-1)}}function oN(t,n){t&1&&T(0,"tr",13)}function rN(t,n){t&1&&T(0,"tr",14)}function lN(t,n){if(t&1&&(s(0,"table",1),X(1,4),k(2,ZL,3,3,"th",5)(3,XL,4,3,"td",6),Q(),X(4,7),k(5,QL,3,3,"th",5)(6,eN,2,1,"td",6),Q(),X(7,8),k(8,nN,3,3,"th",5)(9,aN,2,1,"td",6),Q(),k(10,oN,1,0,"tr",9)(11,rN,1,0,"tr",10),l()),t&2){let e=P();x("dataSource",e.loanDelinquencyTags),o(10),x("matHeaderRowDef",e.loanDelinquencyTagsColumns),o(),x("matRowDefColumns",e.loanDelinquencyTagsColumns)}}function sN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Delinquency Classification")))}function cN(t,n){if(t&1&&(s(0,"td",12),c(1),l()),t&2){let e=n.$implicit;o(),b(e.classification)}}function pN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Days")))}function mN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.minimumAgeDays))}}function dN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function uN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.delinquentAmount,i.currency.code,"symbol-narrow","1.2-2")," ")}}function fN(t,n){t&1&&T(0,"tr",13)}function hN(t,n){t&1&&T(0,"tr",14)}function gN(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",1),X(5,4),k(6,sN,3,3,"th",5)(7,cN,2,1,"td",6),Q(),X(8,15),k(9,pN,3,3,"th",5)(10,mN,3,3,"td",6),Q(),X(11,16),k(12,dN,3,3,"th",5)(13,uN,3,6,"td",6),Q(),k(14,fN,1,0,"tr",9)(15,hN,1,0,"tr",10),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Loan Delinquency Installment Tags")),o(2),x("dataSource",e.installmentLevelDelinquency),o(10),x("matHeaderRowDef",e.installmentDelinquencyTagsColumns),o(),x("matRowDefColumns",e.installmentDelinquencyTagsColumns)}}function _N(t,n){if(t&1){let e=xt();s(0,"button",18),it("click",function(){mt(e);let a=P(2);return dt(a.createDelinquencyAction())}),T(1,"fa-icon",19),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Pause Delinquency Classification")," "))}function CN(t,n){t&1&&(s(0,"div",2),k(1,_N,4,3,"button",17),l()),t&2&&(o(),x("mifosxHasPermission","CREATE_DELINQUENCY_ACTION"))}function bN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Action")))}function vN(t,n){if(t&1&&(s(0,"td",26),c(1),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",ce(i.actionClass(e.action))),o(),b(e.action)}}function xN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Start Date")))}function yN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.startDate))}}function SN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.End Date")))}function DN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.endDate))}}function wN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Created On")))}function TN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"datetimeFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.createdOn))}}function PN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function AN(t,n){if(t&1){let e=xt();s(0,"button",28),p(1,"translate"),it("click",function(){mt(e);let a=P(2).$implicit,r=P(2);return dt(r.resumeDelinquencyClassification(a))}),T(2,"fa-icon",29),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Resume Delinquency Classification")))}function MN(t,n){t&1&&(s(0,"span"),k(1,AN,3,4,"button",27),l()),t&2&&(o(),x("mifosxHasPermission","CREATE_DELINQUENCY_ACTION"))}function ON(t,n){if(t&1&&(s(0,"td",12),M(1,MN,2,1,"span"),l()),t&2){let e=n.$implicit,i=P(2);o(),O(i.isCurrentAndPauseAction(e)?1:-1)}}function IN(t,n){t&1&&T(0,"tr",13)}function EN(t,n){t&1&&T(0,"tr",14)}function LN(t,n){if(t&1&&(s(0,"div",3)(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",1),X(5,20),k(6,bN,3,3,"th",5)(7,vN,2,3,"td",21),Q(),X(8,22),k(9,xN,3,3,"th",5)(10,yN,3,3,"td",6),Q(),X(11,23),k(12,SN,3,3,"th",5)(13,DN,3,3,"td",6),Q(),X(14,24),k(15,wN,3,3,"th",5)(16,TN,3,3,"td",6),Q(),X(17,25),k(18,PN,3,3,"th",5)(19,ON,2,1,"td",6),Q(),k(20,IN,1,0,"tr",9)(21,EN,1,0,"tr",10),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Loan Delinquency Actions")),o(2),x("dataSource",e.loanDelinquencyActions),o(16),x("matHeaderRowDef",e.loanDelinquencyActionsColumns),o(),x("matRowDefColumns",e.loanDelinquencyActionsColumns)}}var y0=(()=>{class t{constructor(){this.route=A(Et),this.loansServices=A(Mt),this.dateUtils=A(de),this.settingsService=A(oe),this.translateService=A(pa),this.dialog=A(Gn),this.loanDelinquencyTags=[],this.loanDelinquencyActions=[],this.installmentLevelDelinquency=[],this.loanDelinquencyTagsColumns=["classification","addedOn","liftedOn"],this.loanDelinquencyActionsColumns=["action","startDate","endDate","createdOn","actions"],this.installmentDelinquencyTagsColumns=["classification","minimumAgeDays","amount"],this.allowPause=!0,this.loanId=this.route.parent.parent.snapshot.params.loanId,this.route.parent.data.subscribe(e=>{this.loanDelinquencyTags=e.loanDelinquencyTagsData,this.loanDelinquencyActions=e.loanDelinquencyActions||[],this.validateDelinquencyActions();let i=e.loanDelinquencyData.delinquent||null;this.currency=e.loanDelinquencyData.currency,this.installmentLevelDelinquency=[],i!=null&&(this.installmentLevelDelinquency=i.installmentLevelDelinquency||[])})}ngOnInit(){this.locale=this.settingsService.language.code,this.dateFormat=this.settingsService.dateFormat,this.currentLoanDelinquencyAction=null,this.validateDelinquencyActions()}validateDelinquencyActions(){if(this.loanDelinquencyActions.length>0){let e=this.settingsService.businessDate;this.currentLoanDelinquencyAction=this.loanDelinquencyActions[this.loanDelinquencyActions.length-1],this.allowPause=this.currentLoanDelinquencyAction.action==="RESUME"}}createDelinquencyAction(){let e="pause";this.dialog.open(x0,{data:{action:e}}).afterClosed().subscribe(a=>{let r=a.data.value.startDate,u=a.data.value.endDate;this.sendDelinquencyAction(e,r,u)})}resumeDelinquencyClassification(e){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Loan Delinquency Classification"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want resume the Delinquency Classification for Loan")+this.loanId,type:"Mild"}}).afterClosed().subscribe(a=>{a.confirm&&this.sendDelinquencyAction("resume",new Date,null)})}sendDelinquencyAction(e,i,a){let r={action:e,locale:this.locale,dateFormat:this.dateFormat,startDate:this.dateUtils.formatDate(i,this.dateFormat)};e==="pause"&&(r={action:e,locale:this.locale,dateFormat:this.dateFormat,startDate:this.dateUtils.formatDate(i,this.dateFormat),endDate:this.dateUtils.formatDate(a,this.dateFormat)}),this.loansServices.createDelinquencyActions(this.loanId,r).subscribe(u=>{this.loansServices.getDelinquencyActions(this.loanId).subscribe(d=>{this.loanDelinquencyActions=d,this.validateDelinquencyActions()})})}isCurrentAndPauseAction(e){if(this.currentLoanDelinquencyAction!=null&&this.currentLoanDelinquencyAction.id===e.id&&e.action==="PAUSE"){let i=this.settingsService.businessDate,a=this.dateUtils.parseDate(e.startDate);if(ir)return this.allowPause=!0,!1}return!0}return!1}actionClass(e){return e==="PAUSE"?"status-pending":"status-active"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-delinquency-tags-tab"]],decls:8,vars:7,consts:[[1,"container"],["mat-table","",3,"dataSource"],[1,"layout-row","m-t-20","m-b-10","align-end","align-items-center"],[1,"m-t-10"],["matColumnDef","classification"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addedOn"],["matColumnDef","liftedOn"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","minimumAgeDays"],["matColumnDef","amount"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","pause",1,"m-r-10"],["matColumnDef","action"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","createdOn"],["matColumnDef","actions"],["mat-cell","",3,"ngClass"],["mat-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-button","","color","primary",3,"click","matTooltip"],["icon","play",1,"m-r-10"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"h3"),c(2),p(3,"translate"),l(),M(4,lN,12,3,"table",1),M(5,gN,16,6,"div"),M(6,CN,2,1,"div",2),M(7,LN,22,6,"div",3),l()),i&2&&(o(2),b(m(3,5,"labels.heading.Loan Delinquency Tags")),o(2),O(a.loanDelinquencyTags.length>0?4:-1),o(),O(a.installmentLevelDelinquency.length>0?5:-1),o(),O(a.allowPause?6:-1),o(),O(a.loanDelinquencyActions.length>0?7:-1))},dependencies:[wt,ca,Tt,Wt,Ae,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,un,Oi,Sa,En,Pt,o1,hn],styles:["table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{padding-top:1%;padding-bottom:2%}.container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}"]})}}return t})();var xg=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.loanRescheduleRequests(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var NN=()=>["../actions/Reschedule"];function kN(t,n){t&1&&(s(0,"th",13),c(1,"#"),l())}function FN(t,n){if(t&1&&(s(0,"td",14),c(1),l()),t&2){let e=n.$implicit;o(),b(e.id)}}function RN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Status")))}function BN(t,n){if(t&1&&(s(0,"td",14)(1,"div",15),p(2,"statusLookup"),T(3,"fa-icon",16),s(4,"span",17),c(5),p(6,"translate"),l()()()),t&2){let e=n.$implicit;o(),x("ngClass",m(2,2,e.statusEnum.code)),o(4),v(" ",m(6,4,e.statusEnum.value)," ")}}function qN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.From Date")))}function jN(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.rescheduleFromDate)," ")}}function zN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Reason")))}function VN(t,n){if(t&1&&(s(0,"td",14),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.rescheduleReasonCodeValue.name," ")}}function UN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function HN(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",18),p(2,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.manageRequest(a,"Reject"))}),T(3,"fa-icon",19),l(),s(4,"button",20),p(5,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.manageRequest(a,"Approve"))}),T(6,"fa-icon",21),l()()}t&2&&(o(),x("matTooltip",ce(m(2,4,"tooltips.Reject Reschedule"))),o(3),x("matTooltip",ce(m(5,6,"tooltips.Approve Reschedule"))))}function GN(t,n){if(t&1&&(s(0,"td",14),M(1,HN,7,8,"span"),l()),t&2){let e=n.$implicit;o(),O(e.statusEnum.pendingApproval?1:-1)}}function WN(t,n){t&1&&T(0,"tr",22)}function $N(t,n){t&1&&T(0,"tr",23)}var S0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansServices=A(Mt),this.settingsService=A(oe),this.dateUtils=A(de),this.translateService=A(pa),this.dialog=A(Gn),this.loanRescheduleDataColumns=["id","rescheduleFromDate","reason","status","actions"],this.clientId=this.route.parent.parent.snapshot.paramMap.get("clientId"),this.route.parent.data.subscribe(e=>{this.loanRescheduleData=e.loanRescheduleData})}manageRequest(e,i){this.dialog.open(ma,{data:{heading:`${i}`+this.translateService.instant("labels.heading.Loan Reschedule"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want")+`${i}`+this.translateService.instant("labels.dialogContext.the Loan Reschedule")+`${e.id}`}}).afterClosed().subscribe(r=>{if(r.confirm){let u=this.settingsService.language.code,d=this.settingsService.dateFormat,g={dateFormat:d,locale:u};i==="Approve"?g.approvedOnDate=this.dateUtils.formatDate(this.settingsService.businessDate,d):g.rejectedOnDate=this.dateUtils.formatDate(this.settingsService.businessDate,d),this.loansServices.applyCommandLoanRescheduleRequests(e.id,i.toLowerCase(),g).subscribe(_=>{this.reload()})}})}reload(){let e=this.router.url;this.router.navigateByUrl(`/clients/${this.clientId}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-reschedule-loan-tab"]],inputs:{loanStatus:"loanStatus"},decls:23,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px","align-end","align-items-center","action-buttons"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","rescheduleFromDate"],["matColumnDef","reason"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[3,"ngClass"],["icon","stop"],[1,"m-l-10","status"],["mat-raised-button","","color","warn","matTooltipPosition","left",1,"action-button",3,"click","matTooltip"],["icon","trash"],["mat-raised-button","","color","primary","matTooltipPosition","right",1,"action-button",3,"click","matTooltip"],["icon","check"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"div",1)(2,"button",2),c(3),p(4,"translate"),l()(),s(5,"table",3),X(6,4),k(7,kN,2,0,"th",5)(8,FN,2,1,"td",6),Q(),X(9,7),k(10,RN,3,3,"th",5)(11,BN,7,6,"td",6),Q(),X(12,8),k(13,qN,3,3,"th",5)(14,jN,3,3,"td",6),Q(),X(15,9),k(16,zN,3,3,"th",5)(17,VN,2,1,"td",6),Q(),X(18,10),k(19,UN,3,3,"th",5)(20,GN,2,1,"td",6),Q(),k(21,WN,1,0,"tr",11)(22,$N,1,0,"tr",12),l()()),i&2&&(o(2),x("routerLink",Ut(7,NN)),o(),v(" ",m(4,5,"labels.buttons.Reschedule")," "),o(2),x("dataSource",a.loanRescheduleData),o(16),x("matHeaderRowDef",a.loanRescheduleDataColumns),o(),x("matRowDefColumns",a.loanRescheduleDataColumns))},dependencies:[wt,ca,Tt,ae,Wt,bn,yn,xn,Sn,vn,Dn,un,Oi,wn,Pn,Tn,An,En,Pt,Ap],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.container[_ngcontent-%COMP%]{padding-top:1%;padding-bottom:2%}.container[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{padding-bottom:1rem;padding-top:1rem}"]})}}return t})();var YN=()=>["../.."];function ZN(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function KN(t,n){if(t&1&&(s(0,"mat-option",9),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function JN(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",18),l(),s(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",19),l(),s(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),l(),T(14,"input",20),l(),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",21),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"input",22),l()),t&2&&(o(2),v(" ",m(3,5,"labels.inputs.Account")," #"),o(5),v("",m(8,7,"labels.inputs.Cheque")," #"),o(5),b(m(13,9,"labels.inputs.Routing Code")),o(5),v("",m(18,11,"labels.inputs.Reciept")," #"),o(5),v("",m(23,13,"labels.inputs.Bank")," #"))}function XN(t,n){if(t&1&&(s(0,"button",23),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.adjustLoanChargeForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var D0=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.settingsService=A(oe),this.organizationService=A(Op),this.paymentTypes=[],this.chargeData=[],this.loanDetailsData=[],this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId,this.chargeId=this.route.snapshot.params.id,this.route.data.subscribe(e=>{this.chargeData=e.loansAccountCharge,this.loanDetailsData=e.loanDetailsData})}ngOnInit(){this.maxDate=this.settingsService.maxAllowedDate,this.createAdjustLoanChargeForm(),this.setRepaymentLoanDetails()}createAdjustLoanChargeForm(){this.adjustLoanChargeForm=this.formBuilder.group({amount:[this.chargeData.amount,Gt.required],externalId:"",paymentTypeId:"",note:""})}setRepaymentLoanDetails(){this.organizationService.getPaymentTypes().subscribe(e=>{this.paymentTypes=e})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.adjustLoanChargeForm.addControl("accountNumber",new pe("")),this.adjustLoanChargeForm.addControl("checkNumber",new pe("")),this.adjustLoanChargeForm.addControl("routingCode",new pe("")),this.adjustLoanChargeForm.addControl("receiptNumber",new pe("")),this.adjustLoanChargeForm.addControl("bankNumber",new pe(""))):(this.adjustLoanChargeForm.removeControl("accountNumber"),this.adjustLoanChargeForm.removeControl("checkNumber"),this.adjustLoanChargeForm.removeControl("routingCode"),this.adjustLoanChargeForm.removeControl("receiptNumber"),this.adjustLoanChargeForm.removeControl("bankNumber"))}submit(){let e=this.adjustLoanChargeForm.value,i=this.settingsService.language.code,a=ve(ie({},e),{locale:i});this.loanService.executeLoansAccountChargesCommand(this.loanId,"adjustment",a,this.chargeId).subscribe(u=>{this.router.navigate(["../.."],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-adjust-loan-charge"]],decls:44,vars:26,consts:[[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],[1,"flex-auto"],["type","number","matInput","","required","","formControlName","amount",1,"right-input"],["matInput","","formControlName","externalId"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"form",1),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"span",4),c(10),l(),T(11,"span",5)(12,"input",6),M(13,ZN,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"input",7),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),s(23,"mat-select",8),ue(24,KN,2,2,"mat-option",9,Ce),l()(),s(26,"div",10)(27,"span",11),it("click",function(){return a.addPaymentDetails()}),s(28,"mat-slide-toggle")(29,"div",12)(30,"span",13),c(31),p(32,"translate"),l()()()()(),M(33,JN,25,15),s(34,"mat-form-field")(35,"mat-label"),c(36),p(37,"translate"),l(),T(38,"textarea",14),l()(),s(39,"mat-card-actions",15)(40,"button",16),c(41),p(42,"translate"),l(),k(43,XN,3,4,"button",17),l()()()()()),i&2&&(o(2),x("formGroup",a.adjustLoanChargeForm),o(5),b(m(8,13,"labels.inputs.Amount")),o(3),b(a.loanDetailsData.currency.code),o(3),O(a.adjustLoanChargeForm.controls.amount.hasError("required")?13:-1),o(3),b(m(17,15,"labels.inputs.External Id")),o(5),b(m(22,17,"labels.inputs.Payment Type")),o(3),fe(a.paymentTypes),o(5),x("className",a.showPaymentDetails?"enabled":"disabled"),o(2),b(m(32,19,"labels.inputs.Show Payment Details")),o(2),O(a.showPaymentDetails?33:-1),o(3),b(m(37,21,"labels.inputs.Note")),o(4),x("routerLink",Ut(25,YN)),o(),v(" ",m(42,23,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","ADJUSTMENT_LOANCHARGE"))},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,Wt,Ae,ja,Wn,Pt],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();var yg=(()=>{class t{constructor(){this.systemService=A(_p)}resolve(e){return this.systemService.getConfigurationByName("loan-arrears-delinquency-display-data")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var QN=t=>["/","journal-entry","view-transfer",t];function tk(t,n){if(t&1&&(s(0,"div",1)(1,"h3"),c(2),p(3,"translate"),l(),s(4,"div",6)(5,"table")(6,"tbody")(7,"tr")(8,"td",7)(9,"b"),c(10),p(11,"translate"),l()(),s(12,"td",8)(13,"div",9),T(14,"fa-icon",10),s(15,"span",11),c(16),l()()(),s(17,"td",7)(18,"b"),c(19),p(20,"translate"),l()(),s(21,"td",8),T(22,"mifosx-external-identifier",12),l()(),s(23,"tr")(24,"td",7)(25,"b"),c(26),p(27,"translate"),l()(),s(28,"td",8),c(29),p(30,"dateFormat"),l(),s(31,"td",7)(32,"b"),c(33),p(34,"translate"),l()(),s(35,"td",8),c(36),p(37,"dateFormat"),l()(),s(38,"tr")(39,"td",7)(40,"b"),c(41),p(42,"translate"),l()(),s(43,"td",13)(44,"table")(45,"tbody")(46,"tr")(47,"td",14)(48,"b"),c(49),p(50,"translate"),l()(),s(51,"td",15),c(52),p(53,"formatNumber"),l()(),s(54,"tr")(55,"td",14)(56,"b"),c(57),p(58,"translate"),l()(),s(59,"td",15),c(60),p(61,"formatNumber"),l()(),s(62,"tr")(63,"td",14)(64,"b"),c(65),p(66,"translate"),l()(),s(67,"td",15),c(68),p(69,"formatNumber"),l()(),s(70,"tr")(71,"td",14)(72,"b"),c(73),p(74,"translate"),l()(),s(75,"td",15),c(76),p(77,"formatNumber"),l()(),s(78,"tr")(79,"td",14)(80,"b"),c(81),p(82,"translate"),l()(),s(83,"td",15),c(84),p(85,"formatNumber"),l()(),s(86,"tr")(87,"td",14)(88,"b"),c(89),p(90,"translate"),l()(),s(91,"td",15),c(92),p(93,"formatNumber"),l()()()()()()()()()()),t&2){let e=P();o(2),b(m(3,24,"labels.heading.Active Asset Transfer")),o(8),v("",m(11,26,"labels.inputs.Status")," :"),o(3),x("ngClass",e.itemStatus(e.activeTransferData.status)),o(3),b(e.activeTransferData.status),o(3),v("",m(20,28,"labels.inputs.Owner External Id")," :"),o(3),x("externalId",ce(e.activeTransferData.owner.externalId)),o(4),v("",m(27,30,"labels.inputs.Settlement Date")," :"),o(3),v(" ",m(30,32,e.activeTransferData.settlementDate)," "),o(4),v("",m(34,34,"labels.inputs.Effective Date")," :"),o(3),v(" ",m(37,36,e.activeTransferData.effectiveFrom)," "),o(5),v("",m(42,38,"labels.inputs.Details")," :"),o(8),v("",m(50,40,"labels.inputs.Principal Outstanding")," :"),o(3),v(" ",m(53,42,e.activeTransferData.details.totalPrincipalOutstanding)," "),o(5),v("",m(58,44,"labels.inputs.Interest Outstanding")," :"),o(3),v(" ",m(61,46,e.activeTransferData.details.totalInterestOutstanding)," "),o(5),v("",m(66,48,"labels.inputs.Fees Outstanding")," :"),o(3),v(" ",m(69,50,e.activeTransferData.details.totalFeeChargesOutstanding)," "),o(5),v("",m(74,52,"labels.inputs.Penalties Outstanding")," :"),o(3),v(" ",m(77,54,e.activeTransferData.details.totalPenaltyChargesOutstanding)," "),o(5),v("",m(82,56,"labels.inputs.Outstanding")," :"),o(3),v(" ",m(85,58,e.activeTransferData.details.totalOutstanding)," "),o(5),v("",m(90,60,"labels.inputs.Overpaid")," :"),o(3),b(m(93,62,e.activeTransferData.details.totalOverpaid))}}function ek(t,n){if(t&1){let e=xt();s(0,"button",17),it("click",function(){mt(e);let a=P(2);return dt(a.saleLoan())}),T(1,"fa-icon",18),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Sell Loan")," "))}function nk(t,n){t&1&&(s(0,"div",4),k(1,ek,4,3,"button",16),l()),t&2&&(o(),x("mifosxHasPermission","SALE_LOAN"))}function ik(t,n){if(t&1){let e=xt();s(0,"button",20),it("click",function(){mt(e);let a=P(2);return dt(a.cancelSaleLoan())}),T(1,"fa-icon",21),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Cancel Sell Loan")," "))}function ak(t,n){t&1&&(s(0,"div",4),k(1,ik,4,3,"button",19),l()),t&2&&(o(),x("mifosxHasPermission","SALE_LOAN"))}function ok(t,n){if(t&1){let e=xt();s(0,"button",17),it("click",function(){mt(e);let a=P(2);return dt(a.buyBackLoan())}),T(1,"fa-icon",18),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Buy Back Loan")," "))}function rk(t,n){t&1&&(s(0,"div",4),k(1,ok,4,3,"button",16),l()),t&2&&(o(),x("mifosxHasPermission","SALE_LOAN"))}function lk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Status")))}function sk(t,n){if(t&1&&(s(0,"td",36)(1,"div",9),T(2,"fa-icon",10),s(3,"span",37),c(4),p(5,"translate"),l()()()),t&2){let e=n.$implicit,i=P(2);o(),x("ngClass",i.itemStatus(e.status)),o(3),v(" ",m(5,2,i.itemCurrentStatus(e))," ")}}function ck(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Effective From")))}function pk(t,n){if(t&1&&(s(0,"td",36),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.effectiveFrom))}}function mk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Owner External Id")))}function dk(t,n){if(t&1&&(s(0,"td",36),T(1,"mifosx-external-identifier",38),l()),t&2){let e=n.$implicit;o(),x("externalId",ce(e.owner.externalId))}}function uk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Transfer External Id")))}function fk(t,n){if(t&1&&(s(0,"td",36),T(1,"mifosx-external-identifier",38),l()),t&2){let e=n.$implicit;o(),x("externalId",ce(e.transferExternalId))}}function hk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Settlement Date")))}function gk(t,n){if(t&1&&(s(0,"td",36),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.settlementDate))}}function _k(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Purchase Price Ratio")))}function Ck(t,n){if(t&1&&(s(0,"td",36),c(1),p(2,"number"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.purchasePriceRatio))}}function bk(t,n){t&1&&(s(0,"th",39),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function vk(t,n){if(t&1){let e=xt();s(0,"button",42),p(1,"translate"),it("click",function(a){mt(e);let r=P(3);return dt(r.routeJournalEntry(a))}),T(2,"i",43),l()}if(t&2){let e=P().$implicit;x("matTooltip",ce(m(1,3,"tooltips.View Journal Entries")))("routerLink",La(5,QN,e.transferId))}}function xk(t,n){if(t&1&&(s(0,"td",40),M(1,vk,3,7,"button",41),l()),t&2){let e=n.$implicit,i=P(2);o(),O(i.isPendingOrCanceled(e)?-1:1)}}function yk(t,n){t&1&&T(0,"tr",44)}function Sk(t,n){t&1&&T(0,"tr",45)}function Dk(t,n){if(t&1&&(s(0,"table",5),X(1,22),k(2,lk,3,3,"th",23)(3,sk,6,4,"td",24),Q(),X(4,25),k(5,ck,3,3,"th",23)(6,pk,3,3,"td",24),Q(),X(7,26),k(8,mk,3,3,"th",23)(9,dk,2,2,"td",24),Q(),X(10,27),k(11,uk,3,3,"th",23)(12,fk,2,2,"td",24),Q(),X(13,28),k(14,hk,3,3,"th",23)(15,gk,3,3,"td",24),Q(),X(16,29),k(17,_k,3,3,"th",23)(18,Ck,3,3,"td",24),Q(),X(19,30),k(20,bk,3,3,"th",31)(21,xk,2,1,"td",32),Q(),k(22,yk,1,0,"tr",33)(23,Sk,1,0,"tr",34),l()),t&2){let e=P();x("dataSource",e.loanTransfersData),o(22),x("matHeaderRowDef",e.loanTransferColumns),o(),x("matRowDefColumns",e.loanTransferColumns)}}var w0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.dialog=A(Gn),this.externalAssetOwner=A(Ep),this.externalAssetOwnerService=A(Wr),this.defaultDate="9999-12-31",this.loanTransfersData=[],this.loanTransferColumns=["status","effectiveFrom","ownerExternalId","transferExternalId","settlementDate","purchasePriceRatio","actions"],this.existActiveTransfer=!1,this.route.data.subscribe(e=>{this.loanTransfersData=e.loanTransfersData.empty?[]:e.loanTransfersData.content,this.activeTransferData=e.activeTransferData||null,this.existActiveTransfer=e.activeTransferData&&e.activeTransferData.transferId!=null})}ngOnInit(){this.currentItem=null,this.loanTransfersData.length>0&&(this.currentItem=this.loanTransfersData[this.loanTransfersData.length-1])}itemCurrentStatus(e){return this.externalAssetOwner.itemCurrentStatus(e)}itemStatus(e){return this.externalAssetOwner.itemStatus(e)}isPending(e){return this.externalAssetOwner.isPending(e)}isPendingOrCanceled(e){return this.externalAssetOwner.isPendingOrCanceled(e)}isBuyBackPending(e){return this.externalAssetOwner.isBuyBackPending(e)}canBeCancelled(){return this.externalAssetOwner.validateStatus(this.currentItem,"PENDING")}canBeSold(){return this.externalAssetOwner.canBeSold(this.currentItem)}canBeBuyed(){return this.externalAssetOwner.validateStatus(this.currentItem,"ACTIVE")}saleLoan(){this.router.navigate(["../actions/Sell Loan"],{relativeTo:this.route})}cancelSaleLoan(){this.dialog.open(Kf,{data:{cancelContext:`the Asset Transfer with the Owner External Id ${this.currentItem.owner.externalId} `}}).afterClosed().subscribe(i=>{if(i.cancel){let a={transferExternalId:this.currentItem.transferExternalId};this.externalAssetOwnerService.executeExternalAssetOwnerTransferCommand(this.currentItem.transferId,a,"cancel").subscribe(r=>{this.reload()})}})}buyBackLoan(){this.router.navigate(["../actions/Buy Back Loan"],{relativeTo:this.route})}routeJournalEntry(e){e.stopPropagation()}reload(){let e=this.router.url;this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-external-asset-owner-tab"]],decls:10,vars:8,consts:[[1,"tab-container","mat-typography"],[1,"flex-fill"],[1,"layout-row","align-start-center"],[1,"flex-90"],[1,"flex-10"],["mat-table","","mat-sort","",3,"dataSource"],[1,"layout-row","gap-32px","asset-transfer-container"],[1,"flex-25"],[1,"flex-25","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-10","external-asset-owner-status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50"],[1,"flex-50","r-amount"],["mat-raised-button","","class","f-right","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","class","f-right","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"f-right",3,"click"],["icon","trash",1,"m-r-10"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","effectiveFrom"],["matColumnDef","ownerExternalId"],["matColumnDef","transferExternalId"],["matColumnDef","settlementDate"],["matColumnDef","purchasePriceRatio"],["matColumnDef","actions"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","center td-min-space",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"m-l-10","status"],[3,"externalId"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center","td-min-space"],["mat-raised-button","","color","primary","matTooltipPosition","left",1,"account-action-button",3,"matTooltip","routerLink"],["mat-raised-button","","color","primary","matTooltipPosition","left",1,"account-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-arrow-circle-right"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0),M(1,tk,94,64,"div",1),s(2,"div",2)(3,"h3",3),c(4),p(5,"translate"),l(),M(6,nk,2,1,"div",4),M(7,ak,2,1,"div",4),M(8,rk,2,1,"div",4),l(),M(9,Dk,24,3,"table",5),l()),i&2&&(o(),O(a.existActiveTransfer?1:-1),o(3),b(m(5,6,"labels.heading.External Asset Owner")),o(2),O(a.canBeSold()?6:-1),o(),O(a.canBeCancelled()?7:-1),o(),O(a.canBeBuyed()?8:-1),o(),O(a.loanTransfersData.length>0?9:-1))},dependencies:[wt,ca,Tt,ae,Wt,Ae,un,Va,bn,yn,xn,Sn,vn,Dn,Oi,wn,Pn,Tn,An,kf,En,Pt,hn],styles:[".tab-container[_ngcontent-%COMP%]{padding:1% 1% 2%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .transaction-buttons[_ngcontent-%COMP%]{padding-bottom:1rem;padding-top:1rem}.tab-container[_ngcontent-%COMP%] .transaction-buttons[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.tab-container[_ngcontent-%COMP%] .asset-transfer-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.external-asset-owner-status[_ngcontent-%COMP%]{color:#000}.account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}"]})}}return t})();var Lu=(()=>{class t{constructor(){this.externalAssetOwnerService=A(Wr)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.externalAssetOwnerService.retrieveExternalAssetOwnerTransfers(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Sg=(()=>{class t{constructor(){this.externalAssetOwnerService=A(Wr)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.externalAssetOwnerService.retrieveExternalAssetOwnerActiveTransfer(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dg=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoanCollaterals(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDelinquencyData(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var wg=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDelinquencyActions(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function wk(t,n){t&1&&(s(0,"th",13),c(1,"#"),l())}function Tk(t,n){if(t&1&&(s(0,"td",14),c(1),l()),t&2){let e=n.index;o(),b(e+1)}}function Pk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Start Date")))}function Ak(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.termVariationApplicableFrom))}}function Mk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.End Date")))}function Ok(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.dateValue))}}function Ik(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Value")))}function Ek(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.decimalValue))}}function Lk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Days")))}function Nk(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.days))}}function kk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function Fk(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",15),p(2,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.manageRequest(a,"Edit"))}),T(3,"fa-icon",16),l(),s(4,"button",17),p(5,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.manageRequest(a,"Delete"))}),T(6,"fa-icon",18),l()()}t&2&&(o(),x("matTooltip",ce(m(2,4,"tooltips.Edit"))),o(3),x("matTooltip",ce(m(5,6,"tooltips.Delete"))))}function Rk(t,n){if(t&1&&(s(0,"td",14),M(1,Fk,7,8,"span"),l()),t&2){let e=n.$implicit,i=P(2);o(),O(i.allowActions(e.termType.value)?1:-1)}}function Bk(t,n){t&1&&T(0,"tr",19)}function qk(t,n){t&1&&T(0,"tr",20)}function jk(t,n){if(t&1&&(s(0,"div")(1,"h3",1),c(2),p(3,"translate"),l(),s(4,"table",2),X(5,3),k(6,wk,2,0,"th",4)(7,Tk,2,1,"td",5),Q(),X(8,6),k(9,Pk,3,3,"th",4)(10,Ak,3,3,"td",5),Q(),X(11,7),k(12,Mk,3,3,"th",4)(13,Ok,3,3,"td",5),Q(),X(14,8),k(15,Ik,3,3,"th",4)(16,Ek,3,3,"td",5),Q(),X(17,9),k(18,Lk,3,3,"th",4)(19,Nk,3,3,"td",5),Q(),X(20,10),k(21,kk,3,3,"th",4)(22,Rk,2,1,"td",5),Q(),k(23,Bk,1,0,"tr",11)(24,qk,1,0,"tr",12),l()()),t&2){let e=n.$implicit,i=P();o(2),b(m(3,4,"labels.heading."+e.label)),o(2),x("dataSource",e.data),o(19),x("matHeaderRowDef",i.loanDTermVariationsColumns),o(),x("matRowDefColumns",i.loanDTermVariationsColumns)}}var T0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.dates=A(de),this.settingsService=A(oe),this.loansService=A(Mt),this.dialog=A(Gn),this.loanTermVariationsData=[],this.loanDTermVariationsColumns=["row","startDate","endDate","days","actions"],this.emiAmountData=[],this.interestRateData=[],this.dueDateData=[],this.deleteInstallmentData=[],this.insertInstallmentData=[],this.principalAmountData=[],this.graceOnInterestData=[],this.graceOnPrincipalData=[],this.extendRepaymentPeriodData=[],this.interestRateFromInstallmentData=[],this.interestPausesData=[],this.invalidData=[];let e=this.dates;this.interestPausesData=[],this.clientId=this.route.parent.parent.snapshot.paramMap.get("clientId"),this.route.data.subscribe(i=>{this.loanId=i.loanDetailsData.id,this.loanTermVariationsData=[],i.loanDetailsData.loanTermVariations?.forEach(a=>{switch(a.days=e.calculateDiff(new Date(a.termVariationApplicableFrom),new Date(a.dateValue))+1,a.termType.value){case"emiAmount":this.emiAmountData.push(a);break;case"interestRate":this.interestRateData.push(a);break;case"deleteInstallment":this.deleteInstallmentData.push(a);break;case"dueDate":this.dueDateData.push(a);break;case"insertInstallment":this.insertInstallmentData.push(a);break;case"principalAmount":this.principalAmountData.push(a);break;case"graceOnInterest":this.graceOnInterestData.push(a);break;case"graceOnPrincipal":this.graceOnPrincipalData.push(a);break;case"extendRepaymentPeriod":this.extendRepaymentPeriodData.push(a);break;case"interestRateForInstallment":this.interestRateFromInstallmentData.push(a);break;case"interestPause":this.interestPausesData.push(a);break;default:this.invalidData.push(a);break}}),this.deleteInstallmentData.length>0&&this.loanTermVariationsData.push({label:"Delete Installment",data:this.deleteInstallmentData}),this.dueDateData.length>0&&this.loanTermVariationsData.push({label:"Due Date",data:this.dueDateData}),this.emiAmountData.length>0&&this.loanTermVariationsData.push({label:"EMI Amount",data:this.emiAmountData}),this.extendRepaymentPeriodData.length>0&&this.loanTermVariationsData.push({label:"Extend Repayment Period",data:this.extendRepaymentPeriodData}),this.graceOnInterestData.length>0&&this.loanTermVariationsData.push({label:"Grace On Interest",data:this.graceOnInterestData}),this.graceOnPrincipalData.length>0&&this.loanTermVariationsData.push({label:"Grace On Principal",data:this.graceOnPrincipalData}),this.insertInstallmentData.length>0&&this.loanTermVariationsData.push({label:"Insert Installment",data:this.insertInstallmentData}),this.interestPausesData.length>0&&this.loanTermVariationsData.push({label:"Interest Pauses",data:this.interestPausesData}),this.interestRateData.length>0&&this.loanTermVariationsData.push({label:"Interest Rate",data:this.interestRateData}),this.interestRateFromInstallmentData.length>0&&this.loanTermVariationsData.push({label:"Interest Rate From Installment",data:this.interestRateFromInstallmentData}),this.principalAmountData.length>0&&this.loanTermVariationsData.push({label:"Principal Amount",data:this.principalAmountData})})}manageRequest(e,i){i==="Delete"?this.deleteInterestPause(e):i==="Edit"&&this.updateInterestPause(e)}deleteInterestPause(e){this.dialog.open(ra,{data:{deleteContext:`interest pause from ${e.startDate} to ${e.endDate}`}}).afterClosed().subscribe(a=>{a.delete&&this.loansService.deleteInterestPause(this.loanId,e.id).subscribe(r=>{this.reload()})})}updateInterestPause(e){let i=this.dates.parseDate(e.startDate),a=this.dates.parseDate(e.endDate),r=[new la({controlName:"startDate",label:"Start Date",value:i,maxDate:this.settingsService.maxFutureDate,required:!0}),new la({controlName:"endDate",label:"End Date",value:a,maxDate:this.settingsService.maxFutureDate,required:!0})],u={title:"Edit Interest Pause id: "+e.id,formfields:r,layout:{addButtonText:"Submit"}};this.dialog.open(_i,{data:u,width:"50rem"}).afterClosed().subscribe(g=>{if(g.data&&g.data.value.startDate<=g.data.value.endDate){let _=this.settingsService.language.code,y=this.settingsService.dateFormat,I={startDate:this.dates.formatDate(g.data.value.startDate,y),endDate:this.dates.formatDate(g.data.value.endDate,y),locale:_,dateFormat:y};this.loansService.updateInterestPause(this.loanId,e.id,I).subscribe(N=>{this.reload()})}})}reload(){let e=this.router.url;this.router.navigateByUrl(`/clients/${this.clientId}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}allowActions(e){return e==="interestPause"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-term-variations-tab"]],decls:3,vars:0,consts:[[1,"container"],[1,"m-t-20"],["mat-table","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","value"],["matColumnDef","days"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary","matTooltipPosition","right",1,"button",3,"click","matTooltip"],["icon","edit","size","lg"],["mat-icon-button","","color","warn","matTooltipPosition","left",1,"button",3,"click","matTooltip"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0),ue(1,jk,25,6,"div",null,Ce),l()),i&2&&(o(),fe(a.loanTermVariationsData))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,Ba,Oi,un,wn,Pn,Tn,An,En,Pt,hn],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.container[_ngcontent-%COMP%]{padding-top:1%;padding-bottom:2%}.container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}"]})}}return t})();var ku=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");if(!isNaN(+i))return this.loansService.getInterestPausesOfLoan(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();function zk(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function Vk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.amount)," ")}}function Uk(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amortized Amount")))}function Hk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.amortizedAmount)," ")}}function Gk(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Unrecognized Amount")))}function Wk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.unrecognizedAmount)," ")}}function $k(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Adjustment Amount")))}function Yk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.amountAdjustment,"-")," ")}}function Zk(t,n){t&1&&T(0,"tr",12)}function Kk(t,n){t&1&&T(0,"tr",13)}function Jk(t,n){if(t&1&&(s(0,"table",1),X(1,2),k(2,zk,3,3,"th",3)(3,Vk,3,3,"td",4),Q(),X(4,5),k(5,Uk,3,3,"th",3)(6,Hk,3,3,"td",4),Q(),X(7,6),k(8,Gk,3,3,"th",3)(9,Wk,3,3,"td",4),Q(),X(10,7),k(11,$k,3,3,"th",3)(12,Yk,3,4,"td",4),Q(),k(13,Zk,1,0,"tr",8)(14,Kk,1,0,"tr",9),l()),t&2){let e=P();x("dataSource",e.capitalizedIncomeData),o(13),x("matHeaderRowDef",e.capitalizedIncomeColumns),o(),x("matRowDefColumns",e.capitalizedIncomeColumns)}}var Tg=(()=>{class t{constructor(){this.route=A(Et),this.capitalizedIncomeData=[],this.capitalizedIncomeColumns=["amount","amortizedAmount","unrecognizedAmount","amountAdjustment"],this.loanId=this.route.parent.parent.snapshot.params.loanId,this.capitalizedIncomeData=[],this.route.parent.data.subscribe(e=>{e.loanDeferredIncomeData.capitalizedIncomeData.forEach(i=>{this.capitalizedIncomeData.push({amount:i.amount,amortizedAmount:i.amortizedAmount??0,unrecognizedAmount:i.unrecognizedAmount??0,amountAdjustment:i.amountAdjustment??0})})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-deferred-income-tab"]],decls:6,vars:7,consts:[[1,"container"],["mat-table","",3,"dataSource"],["matColumnDef","amount"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","amortizedAmount"],["matColumnDef","unrecognizedAmount"],["matColumnDef","amountAdjustment"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"center"],["mat-cell","",1,"r-amount"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"h3"),c(2),p(3,"translate"),p(4,"translate"),l(),M(5,Jk,15,3,"table",1),l()),i&2&&(o(2),$t("",m(3,3,"labels.inputs.Deferred income")," - ",m(4,5,"labels.menus.Capitalized Income")),o(3),O(a.capitalizedIncomeData.length>0?5:-1))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Pt,hn],encapsulation:2})}}return t})();var Fu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Ru=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return i?this.loansService.getBuyDownFeeData(i):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new Df(a=>{a.next([]),a.complete()}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Xk=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:s0,resolve:{loansAccountTemplate:wu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Np,resolve:{loanDetailsData:il,loanDatatables:C0,loanArrearsDelinquencyConfig:yg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:kp,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:il,loanDatatables:C0}},{path:"accountdetail",component:Fp,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Sm,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:ho,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:ym},{path:"export",component:h0}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Fu},children:[{path:"",component:Tg}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:Eu,loanDelinquencyData:Nu,loanDelinquencyActions:wg},children:[{path:"",component:y0}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:xg},children:[{path:"",component:S0}]},{path:"loan-collateral",component:r0,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Dg}},{path:"term-variations",component:T0,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:il,interestPausesData:ku}},{path:"loan-tranche-details",component:o0,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Dm,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:a0,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:wm},{path:"loan-documents",component:c0,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Tu}},{path:"notes",component:Rp,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:yu}},{path:"standing-instruction",component:p0,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:w0,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:Sg,loanTransfersData:Lu}},{path:"datatables",children:[{path:":datatableName",component:Tm,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Su}}]},{path:"buy-down-fees",component:vg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Ru}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:il},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:d0,resolve:{loansAccountTransaction:Pu}},{path:"edit",component:u0,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:Mu}},{path:"reciept",component:f0,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Au}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:Oc,resolve:{loansAccountAndTemplate:b0}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:m0,resolve:{loansAccountCharge:v0,loanDetailsData:il}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:D0,resolve:{loansAccountCharge:v0,loanDetailsData:il}}]},{path:":loanId/actions/:action",component:i0,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:Du}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-WS265DLT.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:Oc,resolve:{loansAccountAndTemplate:b0}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:_0,resolve:{loansAccountTemplate:Iu,groupsData:b1}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:g0,resolve:{glimData:Ou,groupsData:ld}}]}],Pg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gp({type:t})}static{this.\u0275inj=fp({providers:[il,yu,C0,Su,Eu,Du,wu,Tu,b0,v0,Pu,Mu,Au,_1,ld,Ou,C1,Iu,Lu,Nu,ku,Fu,Ru],imports:[rd.forChild(Xk),rd]})}}return t})();var Ag=(()=>{class t{constructor(){this.externalAssetOwner=A(Ep)}itemStatus(e){return this.externalAssetOwner.itemStatus(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:89,vars:61,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(i,a){i&1&&(s(0,"table")(1,"tbody")(2,"tr")(3,"td",0)(4,"b"),c(5),p(6,"translate"),l()(),s(7,"td",1)(8,"div",2),T(9,"fa-icon",3),s(10,"span",4),c(11),l()()(),s(12,"td",0)(13,"b"),c(14),p(15,"translate"),l()(),s(16,"td",1),T(17,"mifosx-external-identifier",5),l()(),s(18,"tr")(19,"td",0)(20,"b"),c(21),p(22,"translate"),l()(),s(23,"td",0),c(24),p(25,"dateFormat"),l(),s(26,"td",0)(27,"b"),c(28),p(29,"translate"),l()(),s(30,"td",0),c(31),p(32,"dateFormat"),l()(),s(33,"tr")(34,"td",0)(35,"b"),c(36),p(37,"translate"),l()(),s(38,"td",6)(39,"table")(40,"tbody")(41,"tr")(42,"td",7)(43,"b"),c(44),p(45,"translate"),l()(),s(46,"td",8),c(47),p(48,"formatNumber"),l()(),s(49,"tr")(50,"td",7)(51,"b"),c(52),p(53,"translate"),l()(),s(54,"td",8),c(55),p(56,"formatNumber"),l()(),s(57,"tr")(58,"td",7)(59,"b"),c(60),p(61,"translate"),l()(),s(62,"td",8),c(63),p(64,"formatNumber"),l()(),s(65,"tr")(66,"td",7)(67,"b"),c(68),p(69,"translate"),l()(),s(70,"td",8),c(71),p(72,"formatNumber"),l()(),s(73,"tr")(74,"td",7)(75,"b"),c(76),p(77,"translate"),l()(),s(78,"td",8),c(79),p(80,"formatNumber"),l()(),s(81,"tr")(82,"td",7)(83,"b"),c(84),p(85,"translate"),l()(),s(86,"td",8),c(87),p(88,"formatNumber"),l()()()()()()()()),i&2&&(o(5),v("",m(6,23,"labels.inputs.Status")," :"),o(3),x("ngClass",a.itemStatus(a.transferData.status)),o(3),b(a.transferData.status),o(3),v("",m(15,25,"labels.inputs.Owner External Id")," :"),o(3),x("externalId",ce(a.transferData.owner.externalId)),o(4),v("",m(22,27,"labels.inputs.Settlement Date")," :"),o(3),v(" ",m(25,29,a.transferData.settlementDate)," "),o(4),v("",m(29,31,"labels.inputs.Effective Date")," :"),o(3),v(" ",m(32,33,a.transferData.effectiveFrom)," "),o(5),v("",m(37,35,"labels.inputs.Details")," :"),o(8),v("",m(45,37,"labels.inputs.Principal Outstanding")," :"),o(3),b(m(48,39,a.transferData.details.totalPrincipalOutstanding)),o(5),v("",m(53,41,"labels.inputs.Interest Outstanding")," :"),o(3),b(m(56,43,a.transferData.details.totalInterestOutstanding)),o(5),v("",m(61,45,"labels.inputs.Fees Outstanding")," :"),o(3),v(" ",m(64,47,a.transferData.details.totalFeeChargesOutstanding)," "),o(5),v("",m(69,49,"labels.inputs.Penalties Outstanding")," :"),o(3),v(" ",m(72,51,a.transferData.details.totalPenaltyChargesOutstanding)," "),o(5),v("",m(77,53,"labels.inputs.Outstanding")," :"),o(3),b(m(80,55,a.transferData.details.totalOutstanding)),o(5),v("",m(85,57,"labels.inputs.Overpaid")," :"),o(3),b(m(88,59,a.transferData.details.totalOverpaid)))},dependencies:[wt,ca,Tt,un,Va,En,Pt,hn],styles:[".asset-transfer-container[_ngcontent-%COMP%]{height:150px}.asset-transfer-container[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{color:#000}"]})}}return t})();var slt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gp({type:t})}static{this.\u0275inj=fp({imports:[f1,c1,Pg,r1,Bf,Km,Np,kp,Fp,Rp,wm,Dm,Sm,ho,i0,Pm,ym,Tm,Am,Mm,Om,Im,Em,Nm,a0,km,o0,Fm,Rm,r0,s0,Oo,Io,Eo,nl,l0,Bm,jm,zm,qm,Um,Hm,Gm,Wm,$m,c0,p0,Oc,Ym,Zm,m0,d0,u0,f0,h0,Lm,g0,_0,y0,el,Jm,Vm,Ss,S0,D0,Xm,Qm,w0,Ag,x0,t0,e0,T0,n0,Ic]})}}return t})();export{slt as LoansModule}; + `,Ye(10,67,a.loansAccount.productId,a.loansAccountTemplate.productOptions,"id","name")))("chars",60),o(2),O(a.loansAccount.loanOfficerId?11:-1),o(),O(a.loansAccount.loanPurposeId?12:-1),o(),O(a.loansAccount.fundId?13:-1),o(3),v("",m(17,72,"labels.inputs.Submitted on"),":"),o(3),b(m(20,74,a.loansAccount.submittedOnDate)),o(4),v("",m(24,76,"labels.inputs.Disbursement on"),":"),o(3),b(m(27,78,a.loansAccount.expectedDisbursementDate)),o(2),O(a.loansAccount.externalId?28:-1),o(),O(a.activeClientMembers?29:-1),o(2),b(m(32,80,"labels.heading.Terms")),o(5),v("",m(37,82,"labels.inputs.Principal"),":"),o(3),v(" ",Ye(40,84,a.loansAccount.principalAmount,a.loansAccountProductTemplate.currency.code,"symbol-narrow","1.2-2")," "),o(3),b(a.loansAccountProductTemplate.currency.code),o(3),v("",m(46,89,"labels.inputs.Loan Term"),":"),o(3),$t("",a.loansAccount.loanTermFrequency," ",Ye(49,91,a.loansAccount.loanTermFrequencyType,a.loansAccountProductTemplate.termFrequencyTypeOptions,"id","name")),o(4),v("",m(53,96,"labels.inputs.Number of repayments"),":"),o(3),b(a.loansAccount.numberOfRepayments),o(3),v("",m(59,98,"labels.inputs.Repaid every"),":"),o(3),Qs("",a.loansAccount.repaymentEvery," ",Ye(62,100,a.loansAccount.repaymentFrequencyType,a.loansAccountProductTemplate.termFrequencyTypeOptions,"id","name")," ",Ye(63,105,a.loansAccount.repaymentFrequencyNthDayType,a.loansAccountProductTemplate.repaymentFrequencyNthDayTypeOptions,"id","name")," ",Ye(64,110,a.loansAccount.repaymentFrequencyDayOfWeekType,a.loansAccountProductTemplate.repaymentFrequencyDaysOfWeekTypeOptions,"id","name")),o(4),O(a.productEnableDownPayment?65:-1),o(),O(a.loansAccount.repaymentsStartingFromDate?66:-1),o(),O(a.loansAccount.interestChargedFromDate?67:-1),o(),O(a.loansAccount.interestRatePerPeriod?68:-1),o(),O(a.loansAccount.interestType?69:-1),o(),O(a.loansAccount.isEqualAmortization?70:-1),o(3),b(m(74,115,"labels.inputs.Amortization")),o(3),b(Ye(77,117,a.loansAccount.amortizationType,a.loansAccountProductTemplate.amortizationTypeOptions,"id","value")),o(4),v("",m(81,122,"labels.inputs.Interest calculation period"),": "),o(3),b(Ye(84,124,a.loansAccount.interestCalculationPeriodType,a.loansAccountProductTemplate.interestCalculationPeriodTypeOptions,"id","value")),o(2),O(a.loansAccount.allowPartialPeriodInterestCalculation?85:-1),o(),O(a.loansAccount.inArrearsTolerance?86:-1),o(),O(a.loansAccount.graceOnInterestCharged?87:-1),o(3),v("",m(91,129,"labels.inputs.Repayment strategy"),": "),o(3),b(Ye(94,131,a.loansAccount.transactionProcessingStrategyCode,a.loansAccountProductTemplate.transactionProcessingStrategyOptions,"code","name")),o(4),v(" ",m(98,136,"labels.inputs.Installment Amount")," "),o(3),v(" ",m(101,138,a.loansAccount.fixedEmiAmount)," "),o(4),v(" ",m(105,140,"labels.inputs.Balloon Repayment Amount")," "),o(3),v(" ",m(108,142,a.loansAccount.balloonRepaymentAmount)," "),o(3),b(m(111,144,"labels.heading.Moratorium")),o(3),O(a.loansAccount.graceOnPrincipalPayment?113:-1),o(),O(a.loansAccount.graceOnInterestPayment?114:-1),o(),O(a.loansAccount.graceOnArrearsAgeing?115:-1),o(3),v(" ",m(119,146,"labels.inputs.Enable installment level Delinquency")," "),o(3),v(" ",m(122,148,a.loansAccount.enableInstallmentLevelDelinquency)," "),o(2),O(a.loansAccount.isTopup?123:-1),o(3),v("",m(127,150,"labels.inputs.Recalculate Interest"),": "),o(3),b(m(130,152,a.loansAccountProductTemplate==null?null:a.loansAccountProductTemplate.isInterestRecalculationEnabled)),o(2),O(a.loansAccountProductTemplate!=null&&a.loansAccountProductTemplate.daysInMonthType?131:-1),o(),O(a.loansAccount.charges.length?132:-1),o(),O(a.loansAccountProductTemplate.overdueCharges.length?133:-1),o(4),v(" ",m(138,154,"labels.buttons.Previous")," "),o(2),x("routerLink",Ut(160,$I)),o(),v(" ",m(141,156,"labels.buttons.Cancel")," "),o(3),v(" ",m(144,158,"labels.buttons.Submit")," "))},dependencies:[wt,Tt,ae,Wt,Mp,Va,$o,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,za,un,Sa,En,Pt,Pp,hn,Hr],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var KE=["dtloan"];function JE(t,n){t&1&&T(0,"fa-icon",20)}function XE(t,n){t&1&&T(0,"fa-icon",20)}function QE(t,n){t&1&&T(0,"fa-icon",21)}function t7(t,n){t&1&&T(0,"fa-icon",22)}function e7(t,n){t&1&&T(0,"fa-icon",23)}function n7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.DETAILS"))}function i7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.TERMS"))}function a7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.CHARGES"))}function o7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.REPAYMENT SCHEDULE"))}function r7(t,n){if(t&1&&(s(0,"mat-step",18),k(1,o7,2,3,"ng-template",14),T(2,"mifosx-loans-account-schedule-step",24,4),l()),t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)("currencyCode",e.currencyCode)}}function l7(t,n){if(t&1&&c(0),t&2){let e=P().$implicit;b(e.registeredTableName)}}function s7(t,n){if(t&1&&(s(0,"mat-step"),k(1,l7,1,1,"ng-template",14),T(2,"mifosx-loans-account-datatable-step",25,5),l()),t&2){let e=n.$implicit;o(2),x("datatableData",e)}}function c7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.PREVIEW"))}function p7(t,n){if(t&1){let e=xt();s(0,"mat-step",19),k(1,c7,2,3,"ng-template",14),s(2,"mifosx-loans-account-preview-step",26),it("submitEvent",function(){mt(e);let a=P();return dt(a.submit())}),l()()}if(t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)}}var s0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansService=A(Mt),this.settingsService=A(oe),this.clientService=A(ns),this.loansAccountProductTemplate=null,this.datatables=[],this.route.data.subscribe(e=>{this.loansAccountTemplate=e.loansAccountTemplate})}setTemplate(e){this.loansAccountProductTemplate=e,this.currencyCode=this.loansAccountProductTemplate.currency.code;let i=this.loansAccountTemplate.clientId;i?this.clientService.getCollateralTemplate(i).subscribe(d=>{this.collateralOptions=d}):console.error("No collateral data requested from Fineract, collateral might misbehave");let a=this.loansAccountTemplate.clientId?this.loansAccountTemplate.clientId:this.loansAccountTemplate.group.id,r=!this.loansAccountTemplate.clientId,u=this.loansAccountProductTemplate.loanProductId;this.loansService.getLoansAccountTemplateResource(a,r,u).subscribe(d=>{this.multiDisburseLoan=d.multiDisburseLoan}),this.setDatatables()}setDatatables(){this.datatables=[],this.loansAccountProductTemplate.datatables&&this.loansAccountProductTemplate.datatables.forEach(e=>{this.datatables.push(e)})}get loansAccountDetailsForm(){return this.loansAccountDetailsStep.loansAccountDetailsForm}get loansAccountTermsForm(){return this.loansAccountTermsStep.loansAccountTermsForm}get loansAccountFormValid(){return this.loansAccountDetailsForm.valid&&this.loansAccountTermsForm.valid}get loansSavingsAccountLinked(){return this.loansAccountDetailsStep.loansAccountDetailsForm.get("linkAccountId").value}get loanPrincipal(){return this.loansAccountTermsStep.loansAccountTermsForm.value.principal}get loansAccount(){return ie(ie(ie(ie(ie({},this.loansAccountDetailsStep.loansAccountDetails),this.loansAccountTermsStep.loansAccountTerms),this.loansAccountChargesStep.loansAccountCharges),this.loansAccountTermsStep.loanCollateral),this.loansAccountTermsStep.disbursementData)}submit(){let e=this.settingsService.language.code,i=this.settingsService.dateFormat,a=this.loansService.buildLoanRequestPayload(this.loansAccount,this.loansAccountTemplate,this.loansAccountProductTemplate.calendarOptions,e,i);if(this.loansAccountProductTemplate.datatables&&this.loansAccountProductTemplate.datatables.length>0){let r=[];this.loanDatatables.forEach(u=>{r.push(u.payload)}),a.datatables=r}this.loansService.createLoansAccount(a).subscribe(r=>{this.router.navigate(["../",r.resourceId,"general"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-create-loans-account"]],viewQuery:function(i,a){if(i&1&&(mi(Oo,7),mi(Io,7),mi(Eo,7),mi(KE,5)),i&2){let r;di(r=ui())&&(a.loansAccountDetailsStep=r.first),di(r=ui())&&(a.loansAccountTermsStep=r.first),di(r=ui())&&(a.loansAccountChargesStep=r.first),di(r=ui())&&(a.loanDatatables=r)}},decls:24,vars:15,consts:[["loansAccountStepper",""],["loansAccountDetailsForm",""],["loanAccountTerms",""],["loanAccountCharges",""],["loanAccountSchedule",""],["dtloan",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loansAccountProductTemplate","loansAccountTemplate"],[3,"loansAccountProductTemplate","loansAccountTemplate","collateralOptions","loansAccountFormValid","loanPrincipal"],[3,"loansAccountProductTemplate","loansAccountTemplate","loansAccountFormValid","loansSavingsAccountLinked"],["state","repayment","completed",""],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"loansAccountTemplate","loansAccountProductTemplate","loansAccount","currencyCode"],[3,"datatableData"],[3,"submitEvent","loansAccountTemplate","loansAccountProductTemplate","loansAccount"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",6)(1,"mat-stepper",7,0),k(3,JE,1,0,"ng-template",8)(4,XE,1,0,"ng-template",9)(5,QE,1,0,"ng-template",10)(6,t7,1,0,"ng-template",11)(7,e7,1,0,"ng-template",12),s(8,"mat-step",13),k(9,n7,2,3,"ng-template",14),s(10,"mifosx-loans-account-details-step",15,1),it("loansAccountProductTemplate",function(d){return mt(r),dt(a.setTemplate(d))}),l()(),s(12,"mat-step",13),k(13,i7,2,3,"ng-template",14),T(14,"mifosx-loans-account-terms-step",16,2),l(),s(16,"mat-step"),k(17,a7,2,3,"ng-template",14),T(18,"mifosx-loans-account-charges-step",17,3),l(),M(20,r7,4,4,"mat-step",18),ue(21,s7,4,1,"mat-step",null,Ce),M(23,p7,3,3,"mat-step",19),l()()}if(i&2){let r=Lt(11);o(),x("linear",!1),o(7),x("stepControl",r),o(2),x("loansAccountTemplate",a.loansAccountTemplate),o(2),x("stepControl",a.loansAccountTermsForm),o(2),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("collateralOptions",a.collateralOptions)("loansAccountFormValid",a.loansAccountFormValid)("loanPrincipal",a.loanPrincipal),o(4),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("loansAccountFormValid",a.loansAccountFormValid)("loansSavingsAccountLinked",a.loansSavingsAccountLinked),o(2),O(a.loansAccountFormValid?20:-1),o(),fe(a.datatables),o(2),O(a.loansAccountFormValid?23:-1)}},dependencies:[wt,Tt,es,Ql,un,ts,Xl,Oo,Io,Eo,el,Ss,nl,Pt],encapsulation:2})}}return t})();var c0=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.settingsService=A(oe),this.entityType="loans",this.entityId=this.route.parent.snapshot.params.loanId,this.route.data.subscribe(e=>{this.getLoanDocumentsData(e.loanDocuments)})}ngOnInit(){this.route.parent.params.subscribe(e=>{this.entityId=e.loanId})}getLoanDocumentsData(e){e.forEach(i=>{i.docUrl=this.settingsService.serverUrl+"/loans/"+i.parentEntityId+"/documents/"+i.id+"/attachment?tenantIdentifier="+qf.fineractPlatformTenantId,i.fileName&&(i.fileName.toLowerCase().indexOf(".jpg")!==-1||i.fileName.toLowerCase().indexOf(".jpeg")!==-1||i.fileName.toLowerCase().indexOf(".png")!==-1)&&(i.fileIsImage=!0),i.type&&i.type.toLowerCase().indexOf("image")!==-1&&(i.fileIsImage=!0)}),this.entityDocuments=e}uploadDocument(e){return this.loansService.loadLoanDocument(this.entityId,e)}deleteDocument(e){this.loansService.deleteLoanDocument(this.entityId,e).subscribe(i=>{})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-documents-tab"]],decls:1,vars:5,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDelete"]],template:function(i,a){i&1&&T(0,"mifosx-entity-documents-tab",0),i&2&&x("entityType",a.entityType)("entityId",a.entityId)("entityDocuments",a.entityDocuments)("callbackUpload",a.uploadDocument)("callbackDelete",a.deleteDocument)},dependencies:[wt,Tt,s1],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}table[_ngcontent-%COMP%] .document-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}"]})}}return t})();var m7=["instructionsTable"];function d7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client")))}function u7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function f7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.From Account")))}function h7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function g7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Beneficiary")))}function _7(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),v(" ",e.toClient.displayName," ")}}function C7(t,n){t&1&&(s(0,"span"),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Own Account")))}function b7(t,n){if(t&1&&(s(0,"td",17),M(1,_7,2,1,"span"),M(2,C7,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.fromClient.id!==e.toClient.id?1:-1),o(),O(e.fromClient.id===e.toClient.id?2:-1)}}function v7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.To Account")))}function x7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function y7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function S7(t,n){if(t&1&&(s(0,"td",17),c(1),l()),t&2){let e=n.$implicit;o(),$t("",e.instructionType.value,"/",e.amount)}}function D7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Validity")))}function w7(t,n){if(t&1&&(s(0,"td",17),c(1),p(2,"dateFormat"),p(3,"dateFormat"),l()),t&2){let e=n.$implicit;o(),$t(" ",m(2,2,e.validFrom)," to ",m(3,4,e.validTill)," ")}}function T7(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function P7(t,n){t&1&&(s(0,"button",19),p(1,"translate"),T(2,"i",20),l()),t&2&&x("matTooltip",ce(m(1,2,"tooltips.Edit Standing Instruction")))}function A7(t,n){t&1&&(s(0,"span"),k(1,P7,3,4,"button",18),l()),t&2&&(o(),x("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function M7(t,n){if(t&1){let e=xt();s(0,"button",22),p(1,"translate"),it("click",function(){mt(e);let a=P(2).$implicit,r=P();return dt(r.deleteStandingInstruction(a.id))}),T(2,"i",23),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Delete Standing Instruction")))}function O7(t,n){t&1&&(s(0,"span"),k(1,M7,3,4,"button",21),l()),t&2&&(o(),x("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function I7(t,n){t&1&&(s(0,"button",19),p(1,"translate"),T(2,"i",24),l()),t&2&&x("matTooltip",ce(m(1,2,"tooltips.View Standing Instruction")))}function E7(t,n){if(t&1&&(s(0,"td",17),M(1,A7,2,1,"span"),M(2,O7,2,1,"span"),k(3,I7,3,4,"button",18),l()),t&2){let e=n.$implicit;o(),O(e.status.value!=="Deleted"?1:-1),o(),O(e.status.value!=="Deleted"?2:-1),o(),x("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function L7(t,n){t&1&&T(0,"tr",25)}function N7(t,n){t&1&&T(0,"tr",26)}var p0=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.dialog=A(Gn),this.accountTransfersService=A(g1),this.settingsService=A(oe),this.dataSource=new Li,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.loanDetailsData=e.loanDetailsData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.loanDetailsData.clientId,i=this.loanDetailsData.clientName,a=this.loanDetailsData.id,r=this.settingsService.language.code,u=this.settingsService.dateFormat;this.loansService.getStandingInstructions(e,i,a,r,u).subscribe(d=>{this.instructionsData=d.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ra,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(a=>{a.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(i,a){if(i&1&&mi(m7,7),i&2){let r;di(r=ui())&&(a.instructionTableRef=r.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",1)(1,"div",2)(2,"h3"),c(3),p(4,"translate"),l()(),s(5,"div",3)(6,"table",4,0),X(8,5),k(9,d7,3,3,"th",6)(10,u7,2,2,"td",7),Q(),X(11,8),k(12,f7,3,3,"th",6)(13,h7,2,2,"td",7),Q(),X(14,9),k(15,g7,3,3,"th",6)(16,b7,3,2,"td",7),Q(),X(17,10),k(18,v7,3,3,"th",6)(19,x7,2,2,"td",7),Q(),X(20,11),k(21,y7,3,3,"th",6)(22,S7,2,2,"td",7),Q(),X(23,12),k(24,D7,3,3,"th",6)(25,w7,4,6,"td",7),Q(),X(26,13),k(27,T7,3,3,"th",6)(28,E7,4,3,"td",7),Q(),k(29,L7,1,0,"tr",14)(30,N7,1,0,"tr",15),l()()()),i&2&&(o(3),b(m(4,4,"labels.heading.All Standing Instructions")),o(3),x("dataSource",a.dataSource),o(23),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns))},dependencies:[wt,Tt,Wt,Ae,bn,yn,xn,Sn,vn,Dn,Oi,wn,Pn,Tn,An,En,Pt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();function k7(t,n){t&1&&T(0,"fa-icon",15)}function F7(t,n){t&1&&T(0,"fa-icon",15)}function R7(t,n){t&1&&T(0,"fa-icon",16)}function B7(t,n){t&1&&T(0,"fa-icon",17)}function q7(t,n){t&1&&T(0,"fa-icon",18)}function j7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.DETAILS"))}function z7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.TERMS"))}function V7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.CHARGES"))}function U7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.REPAYMENT SCHEDULE"))}function H7(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.PREVIEW"))}function G7(t,n){if(t&1){let e=xt();s(0,"mat-step",14),k(1,H7,2,3,"ng-template",9),s(2,"mifosx-loans-account-preview-step",19),it("submitEvent",function(){mt(e);let a=P();return dt(a.submit())}),l()()}if(t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountAndTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)}}var Oc=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.loansService=A(Mt),this.settingsService=A(oe),this.route.data.subscribe(e=>{this.loansAccountAndTemplate=e.loansAccountAndTemplate}),this.loanId=this.route.snapshot.params.loanId}setTemplate(e){this.loansAccountProductTemplate=e,this.currencyCode=this.loansAccountProductTemplate.currency.code,this.loansAccountProductTemplate.loanProductId&&this.loansService.getLoansCollateralTemplateResource(this.loansAccountProductTemplate.loanProductId).subscribe(i=>{this.collateralOptions=i.loanCollateralOptions})}get loansAccountDetailsForm(){return this.loansAccountDetailsStep.loansAccountDetailsForm}get loansAccountTermsForm(){return this.loansAccountTermsStep.loansAccountTermsForm}get loansAccountFormValidAndNotPristine(){return this.loansAccountDetailsForm.valid&&this.loansAccountTermsForm.valid&&(!this.loansAccountDetailsForm.pristine||!this.loansAccountTermsForm.pristine||!this.loansAccountTermsStep.pristine||!this.loansAccountChargesStep.pristine)}get loansAccount(){return ie(ie(ie(ie(ie({},this.loansAccountDetailsStep.loansAccountDetails),this.loansAccountTermsStep.loansAccountTerms),this.loansAccountChargesStep.loansAccountCharges),this.loansAccountTermsStep.loanCollateral),this.loansAccountTermsStep.disbursementData)}submit(){let e=this.settingsService.language.code,i=this.settingsService.dateFormat,a="individual",r=new Map;(this.loansAccount.charges??[]).forEach(d=>{let g=d.chargeId;g!=null&&r.set(g,d)});let u=ve(ie({},this.loansAccount),{clientId:this.loansAccountAndTemplate.clientId,charges:Array.from(r.values()).map(d=>{let g={chargeId:d.chargeId,amount:d.amount,dueDate:d.dueDate&&this.dateUtils.formatDate(d.dueDate,i)};return d.id&&d.id!==d.chargeId&&(g.id=d.id),g}),collateral:this.loansAccount.collateral.map(d=>({type:d.type,value:d.value,description:d.description})),disbursementData:this.loansAccount.disbursementData.map(d=>({expectedDisbursementDate:this.dateUtils.formatDate(d.expectedDisbursementDate,i),principal:d.principal})),interestChargedFromDate:this.dateUtils.formatDate(this.loansAccount.interestChargedFromDate,i),repaymentsStartingFromDate:this.dateUtils.formatDate(this.loansAccount.repaymentsStartingFromDate,i),submittedOnDate:this.dateUtils.formatDate(this.loansAccount.submittedOnDate,i),expectedDisbursementDate:this.dateUtils.formatDate(this.loansAccount.expectedDisbursementDate,i),dateFormat:i,locale:e,loanType:a});delete u.isValid,u.syncRepaymentsWithMeeting&&(u.calendarId=this.loansAccountProductTemplate.calendarOptions[0].id,delete u.syncRepaymentsWithMeeting),u.recalculationRestFrequencyDate&&(u.recalculationRestFrequencyDate=this.dateUtils.formatDate(this.loansAccount.recalculationRestFrequencyDate,i)),u.interestCalculationPeriodType===0&&(u.allowPartialPeriodInterestCalculation=!1),(!u.isLoanProductLinkedToFloatingRate||u.isLoanProductLinkedToFloatingRate===!1)&&delete u.isFloatingInterestRate,u.principal=u.principalAmount,delete u.principalAmount,delete u.multiDisburseLoan,u.allowPartialPeriodInterestCalcualtion=u.allowPartialPeriodInterestCalculation,delete u.allowPartialPeriodInterestCalculation,this.loansService.updateLoansAccount(this.loanId,u).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-edit-loans-account"]],viewQuery:function(i,a){if(i&1&&(mi(Oo,7),mi(Io,7),mi(Eo,7)),i&2){let r;di(r=ui())&&(a.loansAccountDetailsStep=r.first),di(r=ui())&&(a.loansAccountTermsStep=r.first),di(r=ui())&&(a.loansAccountChargesStep=r.first)}},decls:21,vars:15,consts:[["loansAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loansAccountProductTemplate","loansAccountTemplate"],[3,"loansAccountProductTemplate","loansAccountTemplate","collateralOptions"],[3,"loansAccountProductTemplate","loansAccountTemplate","loansAccountFormValid"],[3,"loansAccountTemplate","loansAccountProductTemplate","loansAccount","currencyCode"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","loansAccountTemplate","loansAccountProductTemplate","loansAccount"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-stepper",2,0),k(3,k7,1,0,"ng-template",3)(4,F7,1,0,"ng-template",4)(5,R7,1,0,"ng-template",5)(6,B7,1,0,"ng-template",6)(7,q7,1,0,"ng-template",7),s(8,"mat-step",8),k(9,j7,2,3,"ng-template",9),s(10,"mifosx-loans-account-details-step",10),it("loansAccountProductTemplate",function(d){return mt(r),dt(a.setTemplate(d))}),l()(),s(11,"mat-step",8),k(12,z7,2,3,"ng-template",9),T(13,"mifosx-loans-account-terms-step",11),l(),s(14,"mat-step"),k(15,V7,2,3,"ng-template",9),T(16,"mifosx-loans-account-charges-step",12),l(),s(17,"mat-step"),k(18,U7,2,3,"ng-template",9),T(19,"mifosx-loans-account-schedule-step",13),l(),M(20,G7,3,3,"mat-step",14),l()()}i&2&&(o(),x("linear",!1),o(7),x("stepControl",a.loansAccountDetailsForm),o(2),x("loansAccountTemplate",a.loansAccountAndTemplate),o(),x("stepControl",a.loansAccountTermsForm),o(2),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountAndTemplate)("collateralOptions",a.collateralOptions),o(3),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountAndTemplate)("loansAccountFormValid",a.loansAccountFormValidAndNotPristine),o(3),x("loansAccountTemplate",a.loansAccountAndTemplate)("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccount",a.loansAccount)("currencyCode",a.currencyCode),o(),O(a.loansAccountFormValidAndNotPristine?20:-1))},dependencies:[wt,Tt,es,Ql,un,ts,Xl,Oo,Io,Eo,el,nl,Pt],encapsulation:2})}}return t})();var W7=()=>["../"];function $7(t,n){if(t&1){let e=xt();s(0,"button",10),it("click",function(){mt(e);let a=P(2);return dt(a.editCharge())}),T(1,"fa-icon",11),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function Y7(t,n){if(t&1){let e=xt();s(0,"button",12),it("click",function(){mt(e);let a=P(3);return dt(a.payCharge())}),T(1,"fa-icon",13),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Pay")," "))}function Z7(t,n){t&1&&(s(0,"span"),k(1,Y7,4,3,"button",9),l()),t&2&&(o(),x("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"))}function K7(t,n){if(t&1){let e=xt();s(0,"button",10),it("click",function(){mt(e);let a=P(3);return dt(a.waiveCharge())}),T(1,"fa-icon",11),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Waive")," "))}function J7(t,n){t&1&&(s(0,"span"),k(1,K7,4,3,"button",8),l()),t&2&&(o(),x("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"))}function X7(t,n){if(t&1){let e=xt();s(0,"button",12),it("click",function(){mt(e);let a=P(2);return dt(a.adjustmentCharge())}),T(1,"fa-icon",14),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Adjustment")," "))}function Q7(t,n){if(t&1&&(s(0,"div",0),k(1,$7,4,3,"button",8),M(2,Z7,2,1,"span"),M(3,J7,2,1,"span"),s(4,"span"),k(5,X7,4,3,"button",9),l()()),t&2){let e=P();o(),x("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),o(),O(e.allowPayCharge?2:-1),o(),O(e.allowWaive?3:-1),o(2),x("mifosxHasPermission","ADJUSTMENT_LOANCHARGE")}}function t8(t,n){if(t&1){let e=xt();s(0,"button",10),it("click",function(){mt(e);let a=P(2);return dt(a.editCharge())}),T(1,"fa-icon",16),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function e8(t,n){if(t&1){let e=xt();s(0,"button",17),it("click",function(){mt(e);let a=P(2);return dt(a.deleteCharge())}),T(1,"fa-icon",18),c(2),p(3,"translate"),l()}t&2&&(o(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function n8(t,n){t&1&&(s(0,"div",0),k(1,t8,4,3,"button",8)(2,e8,4,3,"button",15),l()),t&2&&(o(),x("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),o(),x("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}var m0=(()=>{class t{constructor(){this.loansService=A(Mt),this.route=A(Et),this.dateUtils=A(de),this.router=A(le),this.translateService=A(pa),this.dialog=A(Gn),this.settingsService=A(oe),this.allowPayCharge=!0,this.allowWaive=!0,this.route.data.subscribe(e=>{this.chargeData=e.loansAccountCharge,this.allowPayCharge=this.chargeData.chargePayable&&!this.chargeData.paid,this.allowWaive=!this.chargeData.chargeTimeType.waived,this.loansAccountData=e.loanDetailsData})}payCharge(){let e=[new la({controlName:"transactionDate",label:"Payment Date",value:"",type:"date",required:!0})],i={title:`Pay Charge ${this.chargeData.id}`,layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(_i,{data:i}).afterClosed().subscribe(r=>{if(r.data){let u=this.settingsService.language.code,d=this.settingsService.dateFormat,g=r.data.value.transactionDate,_={transactionDate:this.dateUtils.formatDate(g,d),dateFormat:d,locale:u};this.loansService.executeLoansAccountChargesCommand(this.chargeData.loanId,"pay",_,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Waive Charge"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to waive charge with id:")` ${this.chargeData.id}`,type:"Basic"}}).afterClosed().subscribe(i=>{i.confirm&&this.loansService.executeLoansAccountChargesCommand(this.chargeData.loanId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){let e=[new Ti({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0}),new la({controlName:"dueDate",label:"Due Date",value:new Date(this.chargeData.dueDate),type:"date",maxDate:this.settingsService.maxAllowedDate,required:!0})],i={title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(_i,{data:i}).afterClosed().subscribe(r=>{if(r.data){let u=this.settingsService.language.code,d=this.settingsService.dateFormat,g=this.dateUtils.formatDate(r.data.value.dueDate,d),y={amount:r.data.value.amount,dueDate:g,dateFormat:d,locale:u};this.loansService.editLoansAccountCharge(this.loansAccountData.id,y,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(ra,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(i=>{i.delete&&this.loansService.deleteLoansAccountCharge(this.loansAccountData.id,this.chargeData.id).subscribe(()=>{this.reload()})})}loanChargeColor(){return this.chargeData.paid?"paid":"not-paid"}adjustmentCharge(){this.router.navigate(["adjustment"],{relativeTo:this.route})}reload(){let e=this.loansAccountData.clientId,i=this.router.url;this.router.navigateByUrl(`/clients/${e}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([i]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-view-charge"]],decls:72,vars:64,consts:[[1,"layout-row","align-end","gap-2percent","layout-xs-column","container","m-b-20"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["icon","pen",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(i,a){i&1&&(M(0,Q7,6,4,"div",0),M(1,n8,3,2,"div",0),s(2,"div",1)(3,"mat-card")(4,"mat-card-content")(5,"div",2),T(6,"div",3),s(7,"div",4),c(8),p(9,"translate"),l(),s(10,"div",5),c(11),l(),s(12,"div",4),c(13),p(14,"translate"),l(),s(15,"div",5),c(16),l(),s(17,"div",4),c(18),p(19,"translate"),l(),s(20,"div",5),c(21),l(),s(22,"div",4),c(23),p(24,"translate"),l(),s(25,"div",5),c(26),l(),s(27,"div",4),c(28),p(29,"translate"),l(),s(30,"div",5),c(31),p(32,"dateFormat"),l(),s(33,"div",4),c(34),p(35,"translate"),l(),s(36,"div",5),c(37),l(),s(38,"div",4),c(39),p(40,"translate"),l(),s(41,"div",5),c(42),p(43,"formatNumber"),l(),s(44,"div",4),c(45),p(46,"translate"),l(),s(47,"div",5),c(48),p(49,"formatNumber"),l(),s(50,"div",4),c(51),p(52,"translate"),l(),s(53,"div",5),c(54),p(55,"formatNumber"),l(),s(56,"div",4),c(57),p(58,"translate"),l(),s(59,"div",5),c(60),p(61,"formatNumber"),l(),s(62,"div",4),c(63),p(64,"translate"),l(),s(65,"div",5),c(66),p(67,"dateFormat"),l()(),s(68,"div",6)(69,"button",7),c(70),p(71,"translate"),l()()()()()),i&2&&(O(a.loansAccountData.status.value==="Active"&&a.chargeData.amountOutstanding!==0?0:-1),o(),O(a.loansAccountData.status.value==="Submitted and pending approval"?1:-1),o(5),x("ngClass",a.loanChargeColor()),o(2),v(" ",m(9,27,"labels.inputs.name")," "),o(3),v(" ",a.chargeData.name," "),o(2),v(" ",m(14,29,"labels.inputs.Charge Type")," "),o(3),v(" ",a.chargeData.penalty?"Penalty":"Fees"," "),o(2),v(" ",m(19,31,"labels.inputs.Currency")," "),o(3),v(" ",a.chargeData.currency.displayLabel," "),o(2),v(" ",m(24,33,"labels.inputs.Payment due at")," "),o(3),v(" ",a.chargeData.chargeTimeType.value," "),o(2),v(" ",m(29,35,"labels.inputs.Payment due as of")," "),o(3),v(" ",m(32,37,a.chargeData.dueDate)," "),o(3),v(" ",m(35,39,"labels.inputs.Calculation Type")," "),o(3),v(" ",a.chargeData.chargeCalculationType.value," "),o(2),v(" ",m(40,41,"labels.inputs.Due")," "),o(3),v(" ",m(43,43,a.chargeData.amount)," "),o(3),v(" ",m(46,45,"labels.inputs.Paid")," "),o(3),v(" ",m(49,47,a.chargeData.amountPaid)," "),o(3),v(" ",m(52,49,"labels.inputs.Waived")," "),o(3),v(" ",m(55,51,a.chargeData.amountWaived)," "),o(3),v(" ",m(58,53,"labels.inputs.Outstanding")," "),o(3),v(" ",m(61,55,a.chargeData.amountOutstanding)," "),o(3),v(" ",m(64,57,"labels.inputs.Submitted On Date")," "),o(3),v(" ",m(67,59,a.chargeData.submittedOnDate)," "),o(3),x("routerLink",Ut(63,W7)),o(),v(" ",m(71,61,"labels.buttons.Back")," "))},dependencies:[wt,ca,Tt,ae,xe,Oe,Wt,Ae,un,En,Pt,hn],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.paid[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.not-paid[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();var i8=()=>["../"];function a8(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",13),T(2,"fa-icon",14),c(3),p(4,"translate"),l(),s(5,"button",15),it("click",function(){mt(e);let a=P(2);return dt(a.undoTransaction())}),T(6,"fa-icon",16),c(7),p(8,"translate"),l()()}if(t&2){let e=P(2);o(),x("routerLink","edit")("disabled",!e.allowEdition),o(2),v("",m(4,5,"Edit")," "),o(2),x("disabled",!e.allowUndo),o(2),v("",m(8,7,"Undo")," ")}}function o8(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",15),it("click",function(){mt(e);let a=P(2);return dt(a.chargebackTransaction())}),T(2,"fa-icon",16),c(3),p(4,"translate"),l()()}if(t&2){let e=P(2);o(),x("disabled",!e.allowChargeback),o(2),v("",m(4,2,"Chargeback")," ")}}function r8(t,n){t&1&&(s(0,"div",0),k(1,a8,9,9,"span",12)(2,o8,5,4,"span",12),l()),t&2&&(o(),x("mifosxHasPermission","ADJUST_LOAN"),o(),x("mifosxHasPermission","CHARGEBACK_LOAN"))}function l8(t,n){t&1&&(s(0,"div",4),c(1),p(2,"translateKey"),l()),t&2&&(o(),v(" ",Ge(2,1,"Repayment Transaction","catalogs")," "))}function s8(t,n){if(t&1&&(s(0,"div",5)(1,"a",17),c(2),l()()),t&2){let e=P();o(),x("href",e.loanTransactionRelatedLink(e.transactionData.toLoanTransactionRelation.fromLoanTransaction),od),o(),v(" ",e.transactionData.toLoanTransactionRelation.fromLoanTransaction," ")}}function c8(t,n){t&1&&(s(0,"div",4),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"External Id")," "))}function p8(t,n){if(t&1&&(s(0,"div",5),T(1,"mifosx-external-identifier",18),l()),t&2){let e=P();o(),x("externalId",ce(e.transactionData.externalId))}}function m8(t,n){t&1&&(s(0,"div",4),c(1),p(2,"translateKey"),l()),t&2&&(o(),v(" ",Ge(2,1,"Classification","catalogs")," "))}function d8(t,n){if(t&1&&(s(0,"div",6),c(1),l()),t&2){let e=P();o(),v(" ",e.transactionData.classification.name," ")}}function u8(t,n){t&1&&T(0,"mat-divider",7),t&2&&x("inset",!0)}function f8(t,n){t&1&&(s(0,"th",28),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Relation Type")))}function h8(t,n){if(t&1&&(s(0,"td",29),c(1),p(2,"translate"),l()),t&2){let e=n.$implicit;x("matTooltip",e.paymentType),o(),v(" ",m(2,2,e.relationType)," ")}}function g8(t,n){t&1&&(s(0,"th",28),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Transaction")))}function _8(t,n){if(t&1&&(s(0,"td",30)(1,"a",17),c(2),l()()),t&2){let e=n.$implicit,i=P(2);o(),x("href",i.loanTransactionRelatedLink(e.toLoanTransaction),od),o(),v(" ",e.toLoanTransaction," ")}}function C8(t,n){t&1&&(s(0,"th",28),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function b8(t,n){if(t&1&&(s(0,"td",30),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.amount,i.transactionData.currency.code,"symbol-narrow","1.2-2")," ")}}function v8(t,n){t&1&&T(0,"tr",31)}function x8(t,n){t&1&&T(0,"tr",32)}function y8(t,n){if(t&1&&(s(0,"div",8),c(1),p(2,"translate"),T(3,"br"),s(4,"table",19),X(5,20),k(6,f8,3,3,"th",21)(7,h8,3,4,"td",22),Q(),X(8,23),k(9,g8,3,3,"th",21)(10,_8,3,2,"td",24),Q(),X(11,25),k(12,C8,3,3,"th",21)(13,b8,3,6,"td",24),Q(),k(14,v8,1,0,"tr",26)(15,x8,1,0,"tr",27),l()()),t&2){let e=P();o(),v(" ",m(2,4,"Linked Transactions")," "),o(3),x("dataSource",e.transactionRelations),o(10),x("matHeaderRowDef",e.displayedColumns),o(),x("matRowDefColumns",e.displayedColumns)}}function S8(t,n){if(t&1&&T(0,"mifosx-transaction-payment-detail",9),t&2){let e=P();x("paymentDetailData",e.transactionData.paymentDetailData)}}var d0=(()=>{class t{constructor(){this.loansService=A(Mt),this.route=A(Et),this.dateUtils=A(de),this.router=A(le),this.dialog=A(Gn),this.translateService=A(pa),this.settingsService=A(oe),this.organizationService=A(Op),this.alertService=A(Jl),this.allowEdition=!0,this.allowUndo=!0,this.allowChargeback=!0,this.existTransactionRelations=!1,this.paymentTypeOptions=[],this.transactionRelations=new Li,this.displayedColumns=["relationType","toTransaction","amount"],this.isFullRelated=!1,this.amountRelationsAllowed=0,this.route.data.subscribe(e=>{this.transactionData=e.loansAccountTransaction,this.transactionType=this.transactionData.type,this.allowEdition=!this.transactionData.manuallyReversed&&!this.allowTransactionEdition(this.transactionData.type.id),this.allowUndo=this.allowUndoTransaction(this.transactionData.manuallyReversed,this.transactionType),this.allowChargeback=this.allowChargebackTransaction(this.transactionType)&&!this.transactionData.manuallyReversed;let i=!1;if(this.transactionData.transactionRelations){this.transactionRelations.data=this.transactionData.transactionRelations,this.existTransactionRelations=this.transactionData.transactionRelations.length>0;let a=0;this.transactionData.transactionRelations.forEach(r=>{r.relationType==="CHARGEBACK"&&(a+=r.amount,i=!0)}),this.amountRelationsAllowed=this.transactionData.amount-a,this.isFullRelated=this.amountRelationsAllowed===0,this.allowChargeback=this.allowChargebackTransaction(this.transactionType)&&!this.isFullRelated}this.allowChargeback||(this.allowEdition=!1),(this.existTransactionRelations&&i||this.transactionType.reAge||this.transactionType.reAmortize)&&(this.allowUndo=!1)}),this.clientId=this.route.snapshot.params.clientId,this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.allowChargeback&&this.organizationService.getPaymentTypesWithCode().toPromise().then(e=>{this.paymentTypeOptions=e})}allowTransactionEdition(e){return e===20||e===21||e===22||e===23||e===28}allowChargebackTransaction(e){return e.repayment||e.interestPaymentWaiver||e.goodwillCredit||e.payoutRefund||e.merchantIssuedRefund||e.downPayment}allowUndoTransaction(e,i){return!(e||i.interestRefund)}isWriteOff(e){return e.writeOff||e.code==="loanTransactionType.writeOff"}undoTransaction(){let e=this.route.snapshot.params.loanId;if(this.transactionType.contractTermination){let i=[new Ti({controlName:"note",label:"Note",value:"",type:"text",required:!1,order:1}),new Ti({controlName:"reversalExternalId",label:"externalId",value:"",type:"text",required:!1,order:2})],a={title:this.translateService.instant("labels.heading.Undo Transaction"),layout:{addButtonText:"Undo"},formfields:i,pristine:!1};this.dialog.open(_i,{data:a,width:"50rem"}).afterClosed().subscribe(u=>{if(u.data){let d={note:u.data.value.note,reversalExternalId:u.data.value.reversalExternalId};this.loansService.loanActionButtons(e,"undoContractTermination",d).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}else this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want undo the transaction")+`${this.transactionData.id}`}}).afterClosed().subscribe(a=>{if(a.confirm){let r=this.settingsService.language.code,u=this.settingsService.dateFormat,d={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),u),transactionAmount:0,dateFormat:u,locale:r},g=this.isWriteOff(this.transactionType)?"undowriteoff":"undo",_=g==="undowriteoff"?null:this.transactionData.id;this.loansService.executeLoansAccountTransactionsCommand(e,g,d,_).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}chargebackTransaction(){let e=this.route.snapshot.params.loanId,i=[new ic({controlName:"paymentTypeId",label:"Payment Type",value:"",options:{label:"name",value:"id",data:this.paymentTypeOptions},required:!0,order:1}),new Ti({controlName:"amount",label:"Amount",value:this.amountRelationsAllowed,type:"number",required:!0,max:this.amountRelationsAllowed,order:2})],a={title:`Chargeback ${this.transactionType.value} Transaction`,layout:{addButtonText:"Chargeback"},formfields:i};this.dialog.open(_i,{data:a}).afterClosed().subscribe(u=>{if(u.data)if(u.data.value.amount<=this.amountRelationsAllowed){let d=this.settingsService.language.code,g={transactionAmount:u.data.value.amount,paymentTypeId:u.data.value.paymentTypeId,locale:d};this.loansService.executeLoansAccountTransactionsCommand(e,"chargeback",g,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}else this.alertService.alert({type:"BusinessRule",message:"Chargeback amount must be lower or equal to: "+this.amountRelationsAllowed})})}loanTransactionRelatedLink(e){return`/#/clients/${this.clientId}/loans-accounts/${this.loanId}/transactions/${e}`}loanTransactionColor(){return this.transactionData.manuallyReversed?"undo":this.existTransactionRelations?"linked":"active"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-view-transaction"]],decls:47,vars:51,consts:[[1,"container","m-b-20","transaction-buttons","layout-align-end","gap-2percent"],[1,"container"],[1,"layout-row-wrap","card-content"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"flex-50","no-break-content"],[3,"inset"],[1,"mat-body-strong","flex-100"],[3,"paymentDetailData"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink","disabled"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","undo",1,"m-r-10"],[3,"href"],["completed","true",3,"externalId"],["mat-table","",3,"dataSource"],["matColumnDef","relationType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"matTooltip",4,"matCellDef"],["matColumnDef","toTransaction"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"matTooltip"],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(M(0,r8,3,2,"div",0),s(1,"div",1)(2,"mat-card")(3,"mat-card-content")(4,"div",2),T(5,"div",3),s(6,"div",4),c(7),p(8,"translateKey"),l(),s(9,"div",5),c(10),l(),M(11,l8,3,4,"div",4),M(12,s8,3,2,"div",5),s(13,"div",4),c(14),p(15,"translateKey"),l(),s(16,"div",5),c(17),p(18,"translateKey"),l(),s(19,"div",4),c(20),p(21,"translateKey"),l(),s(22,"div",5),c(23),p(24,"dateFormat"),l(),s(25,"div",4),c(26),p(27,"translateKey"),l(),s(28,"div",5),c(29),l(),s(30,"div",4),c(31),p(32,"translateKey"),l(),s(33,"div",5),c(34),p(35,"currency"),l(),M(36,c8,3,3,"div",4),M(37,p8,2,2,"div",5),M(38,m8,3,4,"div",4),M(39,d8,2,1,"div",6),M(40,u8,1,1,"mat-divider",7),M(41,y8,16,6,"div",8),M(42,S8,1,1,"mifosx-transaction-payment-detail",9),l(),s(43,"div",10)(44,"button",11),c(45),p(46,"translate"),l()()()()()),i&2&&(O(a.transactionData.type.contra?-1:0),o(5),x("ngClass",a.loanTransactionColor()),o(2),v(" ",Ge(8,23,"Transaction Id","catalogs")," "),o(3),v(" ",a.transactionData.id," "),o(),O(a.transactionData.toLoanTransactionRelation?11:-1),o(),O(a.transactionData.toLoanTransactionRelation?12:-1),o(2),v(" ",Ge(15,26,"Type","catalogs")," "),o(3),v(" ",Ge(18,29,a.transactionData.type.value,"catalogs")," "),o(3),v(" ",Ge(21,32,"Transaction Date","catalogs")," "),o(3),v(" ",m(24,35,a.transactionData.date)," "),o(3),v(" ",Ge(27,37,"Currency","catalogs")," "),o(3),v(" ",a.transactionData.currency.name," "),o(2),v(" ",Ge(32,40,"Amount","catalogs")," "),o(3),v(" ",Ye(35,43,a.transactionData.amount,a.transactionData.currency.code,"symbol-narrow","1.2-2")," "),o(2),O(a.transactionData.externalId?36:-1),o(),O(a.transactionData.externalId?37:-1),o(),O(a.transactionData.classification?38:-1),o(),O(a.transactionData.classification?39:-1),o(),O(a.existTransactionRelations?40:-1),o(),O(a.existTransactionRelations?41:-1),o(),O(a.transactionData.paymentDetailData?42:-1),o(2),x("routerLink",Ut(50,i8)),o(),v(" ",m(46,48,"labels.buttons.Back")," "))},dependencies:[wt,ca,Tt,ae,xe,Oe,Wt,Ae,un,Va,$o,bn,yn,xn,Sn,vn,Dn,Oi,wn,Pn,Tn,An,u1,Sa,En,Pt,qa],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.loan-relation[_ngcontent-%COMP%]{background-color:#d7dada}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();var D8=()=>["../"];function w8(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),o(4),v(" ",m(6,7,"labels.commons.required")," "))}function T8(t,n){if(t&1&&(s(0,"mat-option",10),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function P8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",18),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Account Number")))}function A8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",19),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Cheque")))}function M8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",20),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Routing Code")))}function O8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",21),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Receipt Number")))}function I8(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",22),l()),t&2&&(o(2),b(m(3,1,"labels.inputs.Bank")))}var u0=(()=>{class t{constructor(){this.formBuilder=A(Te),this.route=A(Et),this.router=A(le),this.dateUtils=A(de),this.loansService=A(Mt),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(e=>{this.transactionTemplateData=e.loansAccountTransactionTemplate,e.loansAccountTransactionTemplate.currency&&(this.currency=e.loansAccountTransactionTemplate.currency),this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.loanAccountId=this.route.snapshot.params.loanId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,externalId:this.transactionTemplateData.externalId,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",Gt.required],transactionAmount:["",Gt.required],externalId:[""],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new pe("")),this.editTransactionForm.addControl("checkNumber",new pe("")),this.editTransactionForm.addControl("routingCode",new pe("")),this.editTransactionForm.addControl("receiptNumber",new pe("")),this.editTransactionForm.addControl("bankNumber",new pe(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){let e=this.editTransactionForm.value,i=this.settingsService.language.code,a=this.settingsService.dateFormat,r=this.editTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(r,a));let u=ve(ie({},e),{dateFormat:a,locale:i});u.transactionAmount=u.transactionAmount*1,this.loansService.executeLoansAccountTransactionsCommand(this.loanAccountId,"modify",u,this.transactionTemplateData.id).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-edit-transaction"]],decls:45,vars:37,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["matInput","","formControlName","externalId"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(i,a){if(i&1){let r=xt();s(0,"div",1)(1,"mat-card")(2,"form",2),it("ngSubmit",function(){return mt(r),dt(a.submit())}),s(3,"mat-card-content",3)(4,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(11);return dt(d.open())}),s(5,"mat-label"),c(6),p(7,"translate"),l(),T(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),M(12,w8,7,9,"mat-error"),l(),T(13,"mifosx-input-amount",7),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"input",8),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),s(23,"mat-select",9),ue(24,T8,2,2,"mat-option",10,Ce),l()(),s(26,"div",11)(27,"span",12),it("click",function(){return mt(r),dt(a.addPaymentDetails())}),s(28,"mat-slide-toggle")(29,"div",13)(30,"span",14),c(31),p(32,"translate"),l()()()()(),M(33,P8,5,3,"mat-form-field"),M(34,A8,5,3,"mat-form-field"),M(35,M8,5,3,"mat-form-field"),M(36,O8,5,3,"mat-form-field"),M(37,I8,5,3,"mat-form-field"),s(38,"mat-card-actions",15)(39,"button",16),c(40),p(41,"translate"),l(),s(42,"button",17),c(43),p(44,"translate"),l()()()()()()}if(i&2){let r=Lt(11);o(2),x("formGroup",a.editTransactionForm),o(4),b(m(7,24,"labels.inputs.Transaction Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.editTransactionForm.controls.transactionDate.hasError("required")?12:-1),o(),x("currency",a.currency)("isRequired",!0)("inputFormControl",a.editTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),o(3),b(m(17,26,"labels.inputs.External Id")),o(5),b(m(22,28,"labels.inputs.Payment Type")),o(3),fe(a.paymentTypeOptions),o(5),x("className",a.showPaymentDetails?"enabled":"disabled"),o(2),b(m(32,30,"labels.inputs.Show Payment Details")),o(2),O(a.editTransactionForm.controls.accountNumber?33:-1),o(),O(a.editTransactionForm.controls.checkNumber?34:-1),o(),O(a.editTransactionForm.controls.routingCode?35:-1),o(),O(a.editTransactionForm.controls.receiptNumber?36:-1),o(),O(a.editTransactionForm.controls.bankNumber?37:-1),o(2),x("routerLink",Ut(36,D8)),o(),v(" ",m(41,32,"labels.buttons.Cancel")," "),o(2),x("disabled",!a.editTransactionForm.valid),o(),v(" ",m(44,34,"labels.buttons.Submit")," ")}},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,tn,en,Qe,Wt,Ri,ja,Pt],styles:[".container[_ngcontent-%COMP%]{width:37rem;margin-top:3%;padding-bottom:2%}"]})}}return t})();var E8=()=>["../../../general"],f0=(()=>{class t{constructor(){this.sanitizer=A(Zl),this.route=A(Et),this.route.data.subscribe(e=>{this.transactionRecieptData=e.loansTransactionReciept})}ngOnInit(){let e=this.transactionRecieptData.headers.get("Content-Type"),i=new Blob([this.transactionRecieptData.body],{type:e}),a=URL.createObjectURL(i);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-view-reciept"]],decls:7,vars:6,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(i,a){i&1&&(s(0,"mat-card",0)(1,"div",1)(2,"button",2),T(3,"fa-icon",3),c(4),p(5,"translate"),l()(),T(6,"iframe",4),l()),i&2&&(o(2),x("routerLink",Ut(5,E8)),o(2),v("",m(5,3,"labels.buttons.Back")," "),o(2),x("src",a.pentahoUrl,hp))},dependencies:[wt,Tt,ae,xe,Wt,un,Pt],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]})}}return t})();var L8=()=>["../"];function N8(t,n){if(t&1&&T(0,"iframe",13),t&2){let e=P();x("src",e.pentahoUrl,hp)}}var h0=(()=>{class t{constructor(){this.sanitizer=A(Zl),this.reportsService=A(Ip),this.formBuilder=A(Te),this.dateUtils=A(de),this.route=A(Et),this.settingsService=A(oe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(e=>{this.loansAccountId=e.loanDetailsData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",Gt.required],toDate:[this.settingsService.businessDate,Gt.required]})}generate(){let e=this.settingsService.dateFormat,i={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,e),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,e),R_selectLoan:this.loansAccountId};this.reportsService.getPentahoRunReportData("Client Loan Account Schedule",i,"default","en",e).subscribe(a=>{let r=a.headers.get("Content-Type"),u=new Blob([a.body],{type:r}),d=URL.createObjectURL(u);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(d),this.hideOutput=!1})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-export-transactions"]],decls:41,vars:43,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"layout-column","m-t-20",3,"ngSubmit","formGroup"],[1,"layout-row","layout-align-center","gap-3percent"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill","flex-30",3,"click"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"generate-button","layout-row","layout-xs-column","layout-align-center","gap-5percent"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(i,a){if(i&1){let r=xt();s(0,"form",2),it("ngSubmit",function(){return mt(r),dt(a.generate())}),s(1,"div",3)(2,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(9);return dt(d.open())}),s(3,"mat-label"),c(4),p(5,"translate"),l(),T(6,"input",5)(7,"mat-datepicker-toggle",6)(8,"mat-datepicker",null,0),s(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),s(14,"strong"),c(15),p(16,"translate"),l()()(),s(17,"mat-form-field",7),it("click",function(){mt(r);let d=Lt(24);return dt(d.open())}),s(18,"mat-label"),c(19),p(20,"translate"),l(),T(21,"input",8)(22,"mat-datepicker-toggle",6)(23,"mat-datepicker",null,1),s(25,"mat-error"),c(26),p(27,"translate"),p(28,"translate"),s(29,"strong"),c(30),p(31,"translate"),l()()()(),s(32,"div",9)(33,"button",10),c(34),p(35,"translate"),l(),s(36,"button",11),T(37,"fa-icon",12),c(38),p(39,"translate"),l()()(),M(40,N8,1,1,"iframe",13)}if(i&2){let r=Lt(9),u=Lt(24);x("formGroup",a.transactionsReportForm),o(4),b(m(5,22,"labels.inputs.From Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(4),$t(" ",m(12,24,"labels.inputs.From date")," ",m(13,26,"labels.commons.is")," "),o(4),v(" ",m(16,28,"labels.commons.required")," "),o(4),b(m(20,30,"labels.inputs.To Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",u),o(),x("for",u),o(4),$t(" ",m(27,32,"labels.inputs.To date")," ",m(28,34,"labels.commons.is")," "),o(4),v(" ",m(31,36,"labels.commons.required")," "),o(3),x("routerLink",Ut(42,L8)),o(),b(m(35,38,"labels.buttons.Cancel")),o(2),x("disabled",!a.transactionsReportForm.valid),o(2),v("",m(39,40,"labels.buttons.Generate Report")," \xA0 "),o(2),O(a.hideOutput?-1:40)}},dependencies:[wt,Tt,Re,we,he,Ee,je,Le,Ne,ae,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,un,Pt],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]})}}return t})();var k8=t=>["../../",t,"general"];function F8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Id")))}function R8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.childLoanId," ")}}function B8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client ID")))}function q8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.clientId)}}function j8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client Name")))}function z8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.clientName)}}function V8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Account Number")))}function U8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.childLoanAccountNo)}}function H8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client Principal Loan")))}function G8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.childPrincipalAmount)}}function W8(t,n){t&1&&(s(0,"th",12),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Group Principal Loan")))}function $8(t,n){if(t&1&&(s(0,"td",13),c(1),l()),t&2){let e=n.$implicit;o(),b(e.parentPrincipalAmount)}}function Y8(t,n){t&1&&T(0,"tr",14)}function Z8(t,n){if(t&1&&T(0,"tr",15),t&2){let e=n.$implicit;x("routerLink",La(1,k8,e.childLoanId))}}var g0=(()=>{class t{constructor(){this.route=A(Et),this.dialog=A(Gn),this.displayedColumns=["loanId","clientId","clientName","loanAccountNumber","clientPrincipalLoan","groupPrincipalLoan"],this.route.data.subscribe(e=>{this.glimOverviewData=e.glimData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new Li(this.glimOverviewData)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-glim-account"]],viewQuery:function(i,a){if(i&1&&mi(Do,7),i&2){let r;di(r=ui())&&(a.paginator=r.first)}},decls:26,vars:6,consts:[[1,"loan-card"],["mat-table","",3,"dataSource"],["matColumnDef","loanId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","clientId"],["matColumnDef","clientName"],["matColumnDef","loanAccountNumber"],["matColumnDef","clientPrincipalLoan"],["matColumnDef","groupPrincipalLoan"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(i,a){i&1&&(s(0,"mat-card",0)(1,"mat-card-content")(2,"h2"),c(3),p(4,"translate"),l(),s(5,"table",1),X(6,2),k(7,F8,3,3,"th",3)(8,R8,2,1,"td",4),Q(),X(9,5),k(10,B8,3,3,"th",3)(11,q8,2,1,"td",4),Q(),X(12,6),k(13,j8,3,3,"th",3)(14,z8,2,1,"td",4),Q(),X(15,7),k(16,V8,3,3,"th",3)(17,U8,2,1,"td",4),Q(),X(18,8),k(19,H8,3,3,"th",3)(20,G8,2,1,"td",4),Q(),X(21,9),k(22,W8,3,3,"th",3)(23,$8,2,1,"td",4),Q(),k(24,Y8,1,0,"tr",10)(25,Z8,1,3,"tr",11),l()()()),i&2&&(o(3),b(m(4,4,"labels.heading.GLIM Account Overview")),o(2),x("dataSource",a.dataSource),o(19),x("matHeaderRowDef",a.displayedColumns),o(),x("matRowDefColumns",a.displayedColumns))},dependencies:[wt,Tt,ae,xe,Oe,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Pt],styles:[".loan-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .loan-card-title[_ngcontent-%COMP%]{color:#fff;width:90%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .loan-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{margin:1%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{object-fit:cover;border-radius:20px}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .loan-actions[_ngcontent-%COMP%]{align-self:flex-end;margin:0 1%}.loan-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .loan-span[_ngcontent-%COMP%]{margin:0 .5%}.loan-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.loans-overview[_ngcontent-%COMP%]{font-size:14px}"]})}}return t})();var K8=()=>["../","general"];function J8(t,n){if(t&1){let e=xt();s(0,"th",17)(1,"mat-checkbox",18),it("change",function(){mt(e);let a=P(2);return dt(a.toggleSelects())}),nc("ngModelChange",function(a){mt(e);let r=P(2);return ec(r.selectAllItems,a)||(r.selectAllItems=a),dt(a)}),l()()}if(t&2){let e=P(2);o(),tc("ngModel",e.selectAllItems)}}function X8(t,n){if(t&1){let e=xt();s(0,"td",19)(1,"mat-checkbox",18),it("change",function(){mt(e);let a=P(2);return dt(a.toggleSelect())}),nc("ngModelChange",function(a){let r=mt(e).$implicit;return ec(r.selected,a)||(r.selected=a),dt(a)}),l()()}if(t&2){let e=n.$implicit;o(),tc("ngModel",e.selected)}}function Q8(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client ID")))}function tL(t,n){if(t&1&&(s(0,"td",19),c(1),l()),t&2){let e=n.$implicit;o(),b(e.id)}}function eL(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Client Name")))}function nL(t,n){if(t&1&&(s(0,"td",19),c(1),l()),t&2){let e=n.$implicit;o(),b(e.displayName)}}function iL(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Loan Purpose")))}function aL(t,n){if(t&1&&(s(0,"mat-option",21),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function oL(t,n){if(t&1){let e=xt();s(0,"td",19)(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),l(),s(5,"mat-select",20),nc("ngModelChange",function(a){let r=mt(e).$implicit;return ec(r.loanPurposeId,a)||(r.loanPurposeId=a),dt(a)}),ue(6,aL,2,2,"mat-option",21,Ce),l()()()}if(t&2){let e=n.$implicit,i=P(2);o(3),b(m(4,2,"labels.inputs.Select Purpose")),o(2),tc("ngModel",e.loanPurposeId),o(),fe(i.loanPurposeOptions)}}function rL(t,n){t&1&&(s(0,"th",17),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Original Loan")))}function lL(t,n){if(t&1){let e=xt();s(0,"td",19)(1,"mat-form-field")(2,"input",22),nc("ngModelChange",function(a){let r=mt(e).$implicit;return ec(r.principal,a)||(r.principal=a),dt(a)}),l()()()}if(t&2){let e=n.$implicit;o(2),tc("ngModel",e.principal)}}function sL(t,n){t&1&&T(0,"tr",23)}function cL(t,n){t&1&&T(0,"tr",24)}function pL(t,n){if(t&1&&(s(0,"div",0)(1,"table",7),X(2,8),k(3,J8,2,1,"th",9)(4,X8,2,1,"td",10),Q(),X(5,11),k(6,Q8,3,3,"th",9)(7,tL,2,1,"td",10),Q(),X(8,12),k(9,eL,3,3,"th",9)(10,nL,2,1,"td",10),Q(),X(11,13),k(12,iL,3,3,"th",9)(13,oL,8,4,"td",10),Q(),X(14,14),k(15,rL,3,3,"th",9)(16,lL,3,1,"td",10),Q(),k(17,sL,1,0,"tr",15)(18,cL,1,0,"tr",16),l()()),t&2){let e=P();o(),x("dataSource",e.dataSource),o(16),x("matHeaderRowDef",e.displayedColumn),o(),x("matRowDefColumns",e.displayedColumn)}}function mL(t,n){t&1&&(s(0,"button",6),c(1),p(2,"translate"),l()),t&2&&(x("routerLink",Ut(4,K8)),o(),v(" ",m(2,2,"labels.buttons.Cancel")," "))}var Ic=(()=>{class t{constructor(){this.route=A(Et),this.loanId=null,this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name","purpose","amount"],this.loanId=this.route.snapshot.params.loanId}ngOnInit(){this.dataSource=new Li(this.activeClientMembers)}get isValid(){return!this.activeClientMembers||this.selectedClientMembers?.selectedMembers?.reduce((e,i)=>e+(i.principal??0),0)>0}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(let e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){let e=this.activeClientMembers.length;this.selectAllItems=e===0?!1:this.activeClientMembers.filter(i=>i.selected).length===e}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loans-active-client-members"]],inputs:{activeClientMembers:"activeClientMembers",loansAccountFormValid:"loansAccountFormValid"},decls:11,vars:9,consts:[[1,"layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-raised-button","",3,"routerLink"],["mat-table","",1,"flex-98",3,"dataSource"],["matColumnDef","check"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","name"],["matColumnDef","purpose"],["matColumnDef","amount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","ngModelChange","ngModel"],["mat-cell",""],[3,"ngModelChange","ngModel"],[3,"value"],["type","number","matInput","",3,"ngModelChange","ngModel"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(M(0,pL,19,3,"div",0),s(1,"div",1)(2,"button",2),T(3,"fa-icon",3),c(4),p(5,"translate"),l(),s(6,"button",4),c(7),p(8,"translate"),T(9,"fa-icon",5),l(),M(10,mL,3,5,"button",6),l()),i&2&&(O(a.activeClientMembers?0:-1),o(4),v(" ",m(5,5,"labels.buttons.Previous")," "),o(2),x("disabled",!a.loansAccountFormValid),o(),v(" ",m(8,7,"labels.buttons.Next")," "),o(3),O(a.loanId?10:-1))},dependencies:[wt,Tt,we,Mi,he,ae,_e,ge,Pe,In,On,Wt,Da,bn,yn,xn,Sn,Hf,zf,vn,Dn,wn,Pn,Tn,An,za,un,mo,Pt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.tableName[_ngcontent-%COMP%]{padding-left:2%}"]})}}return t})();var dL=["dtloan"];function uL(t,n){t&1&&T(0,"fa-icon",20)}function fL(t,n){t&1&&T(0,"fa-icon",20)}function hL(t,n){t&1&&T(0,"fa-icon",21)}function gL(t,n){t&1&&T(0,"fa-icon",22)}function _L(t,n){t&1&&T(0,"fa-icon",23)}function CL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.DETAILS"))}function bL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.TERMS"))}function vL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.CHARGES"))}function xL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.heading.Active Client Members"))}function yL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.REPAYMENT SCHEDULE"))}function SL(t,n){if(t&1&&(s(0,"mat-step",18),k(1,yL,2,3,"ng-template",13),T(2,"mifosx-loans-account-schedule-step",24,3),l()),t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)("currencyCode",e.currencyCode)}}function DL(t,n){if(t&1&&c(0),t&2){let e=P().$implicit;b(e.registeredTableName)}}function wL(t,n){if(t&1&&(s(0,"mat-step"),k(1,DL,1,1,"ng-template",13),T(2,"mifosx-loans-account-datatable-step",25,4),l()),t&2){let e=n.$implicit;o(2),x("datatableData",e)}}function TL(t,n){t&1&&(c(0),p(1,"translate")),t&2&&b(m(1,1,"labels.inputs.PREVIEW"))}function PL(t,n){if(t&1){let e=xt();s(0,"mat-step",19),k(1,TL,2,3,"ng-template",13),s(2,"mifosx-loans-account-preview-step",26),it("submitEvent",function(){mt(e);let a=P();return dt(a.submit())}),l()()}if(t&2){let e=P();o(2),x("loansAccountTemplate",e.loansAccountTemplate)("loansAccountProductTemplate",e.loansAccountProductTemplate)("loansAccount",e.loansAccount)("activeClientMembers",e.activeClientMembers)}}var _0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansService=A(Mt),this.settingsService=A(oe),this.clientService=A(ns),this.dateUtils=A(de),this.i18nService=A(Yf),this.loansAccountProductTemplate=null,this.datatables=[],this.route.data.subscribe(e=>{this.loansAccountTemplate=e.loansAccountTemplate,this.dataSource=e.groupsData.activeClientMembers})}setTemplate(e){this.loansAccountProductTemplate=e,this.currencyCode=this.loansAccountProductTemplate.currency.code;let i=this.loansAccountTemplate.clientId;i?this.clientService.getCollateralTemplate(i).subscribe(d=>{this.collateralOptions=d}):console.error("No collateral data requested from Fineract, collateral might misbehave");let a=this.loansAccountTemplate.clientId?this.loansAccountTemplate.clientId:this.loansAccountTemplate.group.id,r=!this.loansAccountTemplate.clientId,u=this.loansAccountProductTemplate.loanProductId;this.loansService.getLoansAccountTemplateResource(a,r,u).subscribe(d=>{this.multiDisburseLoan=d.multiDisburseLoan}),this.setDatatables()}setDatatables(){this.datatables=[],this.loansAccountProductTemplate.datatables&&this.loansAccountProductTemplate.datatables.forEach(e=>{this.datatables.push(e)})}get loansAccountDetailsForm(){return this.loansAccountDetailsStep.loansAccountDetailsForm}get loansAccountTermsForm(){return this.loansAccountTermsStep.loansAccountTermsForm}get activeClientMembers(){return this.dataSource}get loansAccountFormValid(){return this.loansAccountDetailsForm.valid&&this.loansAccountTermsForm.valid&&this.loansActiveClientMembers.isValid}get loanPrincipal(){return this.loansAccountTermsStep.loansAccountTermsForm.value.principal}get loansAccount(){return this.selectedMembers=this.loansActiveClientMembers.selectedClientMembers,ie(ie(ie(ie(ie({},this.loansAccountDetailsStep.loansAccountDetails),this.loansAccountTermsStep.loansAccountTerms),this.loansAccountChargesStep.loansAccountCharges),this.loansAccountTermsStep.loanCollateral),this.loansAccountTermsStep.disbursementData)}setData(e,i){let a=this.settingsService.language.code,r=this.settingsService.dateFormat,u=ve(ie({},this.loansAccount),{charges:(this.loansAccount.charges??[]).map(d=>{let g=d.chargeId??d.id;if(g==null)return null;let _={chargeId:g,amount:d.amount};return d.id&&d.id!==g&&(_.id=d.id),d.dueDate&&(_.dueDate=this.dateUtils.formatDate(d.dueDate,r)),d.feeInterval!==void 0&&(_.feeInterval=d.feeInterval),d.feeOnMonthDay!==void 0&&(_.feeOnMonthDay=d.feeOnMonthDay),_}).filter(Boolean),clientId:e.id,totalLoan:i,loanType:"glim",amortizationType:1,isParentAccount:!0,principal:e.principal,syncDisbursementWithMeeting:!1,expectedDisbursementDate:this.dateUtils.formatDate(this.loansAccount.expectedDisbursementDate,r),submittedOnDate:this.dateUtils.formatDate(this.loansAccount.submittedOnDate,r),dateFormat:r,locale:a});return u.groupId=this.loansAccountTemplate.group.id,delete u.principalAmount,delete u.allowPartialPeriodInterestCalculation,delete u.multiDisburseLoan,delete u.isFloatingInterestRate,JSON.stringify(u)}buildRequestData(){let e=[],i=this.selectedMembers?.selectedMembers??[],a=this.totalLoanAmount();for(let r=0;rNumber(r.id)));for(let r of e){let u=Number(r.id),d=Number(r.linkAccountOwnerId);if(r.linkAccountId&&r.linkAccountOwnerId&&d!==u){this.i18nService.translate("errors.linkedSavingsAccountOwnership").subscribe(g=>{this.notify({defaultUserMessage:g,errors:[]},{memberId:u})});return}if(!i.has(u)){this.i18nService.translate("errors.clientNotInGSIM",{id:u}).subscribe(g=>{this.notify({defaultUserMessage:g,errors:[]},{memberId:u})});return}}let a=this.buildRequestData();this.loansService.createGlimAccount(a).subscribe(r=>{let u=JSON.parse(r[0].body);u.glimId?this.router.navigate(["../",u.glimId],{relativeTo:this.route}):this.notify(u,{batchSize:a.length})})}notify(e,i){let a=[String(e?.defaultUserMessage??"")];if(Array.isArray(e?.errors))for(let r of e.errors)a.push(String(r?.developerMessage??""));i&&a.push(`Context: ${JSON.stringify(i)}`),console.error(a.join(" ").trim())}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-create-glim-account"]],viewQuery:function(i,a){if(i&1&&(mi(Oo,7),mi(Io,7),mi(Eo,7),mi(Ic,7),mi(dL,5)),i&2){let r;di(r=ui())&&(a.loansAccountDetailsStep=r.first),di(r=ui())&&(a.loansAccountTermsStep=r.first),di(r=ui())&&(a.loansAccountChargesStep=r.first),di(r=ui())&&(a.loansActiveClientMembers=r.first),di(r=ui())&&(a.loanDatatables=r)}},decls:26,vars:16,consts:[["loansAccountStepper",""],["loanAccountTerms",""],["loanAccountCharges",""],["loanAccountSchedule",""],["dtloan",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loansAccountProductTemplate","loansAccountTemplate"],[3,"loansAccountProductTemplate","loansAccountTemplate","collateralOptions","loansAccountFormValid","loanPrincipal"],[3,"loansAccountProductTemplate","loansAccountTemplate","loansAccountFormValid"],[3,"activeClientMembers","loansAccountFormValid"],["state","repayment","completed",""],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"loansAccountTemplate","loansAccountProductTemplate","loansAccount","currencyCode"],[3,"datatableData"],[3,"submitEvent","loansAccountTemplate","loansAccountProductTemplate","loansAccount","activeClientMembers"]],template:function(i,a){if(i&1){let r=xt();s(0,"div",5)(1,"mat-stepper",6,0),k(3,uL,1,0,"ng-template",7)(4,fL,1,0,"ng-template",8)(5,hL,1,0,"ng-template",9)(6,gL,1,0,"ng-template",10)(7,_L,1,0,"ng-template",11),s(8,"mat-step",12),k(9,CL,2,3,"ng-template",13),s(10,"mifosx-loans-account-details-step",14),it("loansAccountProductTemplate",function(d){return mt(r),dt(a.setTemplate(d))}),l()(),s(11,"mat-step",12),k(12,bL,2,3,"ng-template",13),T(13,"mifosx-loans-account-terms-step",15,1),l(),s(15,"mat-step"),k(16,vL,2,3,"ng-template",13),T(17,"mifosx-loans-account-charges-step",16,2),l(),s(19,"mat-step"),k(20,xL,2,3,"ng-template",13),T(21,"mifosx-loans-active-client-members",17),l(),M(22,SL,4,4,"mat-step",18),ue(23,wL,4,1,"mat-step",null,Ce),M(25,PL,3,4,"mat-step",19),l()()}i&2&&(o(),x("linear",!1),o(7),x("stepControl",a.loansAccountDetailsForm),o(2),x("loansAccountTemplate",a.loansAccountTemplate),o(),x("stepControl",a.loansAccountTermsForm),o(2),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("collateralOptions",a.collateralOptions)("loansAccountFormValid",a.loansAccountFormValid)("loanPrincipal",a.loanPrincipal),o(4),x("loansAccountProductTemplate",a.loansAccountProductTemplate)("loansAccountTemplate",a.loansAccountTemplate)("loansAccountFormValid",a.loansAccountFormValid),o(4),x("activeClientMembers",a.activeClientMembers)("loansAccountFormValid",a.loansAccountFormValid),o(),O(a.loansAccountFormValid?22:-1),o(),fe(a.datatables),o(2),O(a.loansAccountFormValid?25:-1))},dependencies:[wt,Tt,es,Ql,un,ts,Xl,Oo,Io,Eo,Ic,el,Ss,nl,Pt],encapsulation:2})}}return t})();function AL(t,n){t&1&&(s(0,"div",1),T(1,"mat-spinner",2),l())}function ML(t,n){t&1&&(s(0,"div",3),c(1),p(2,"translate"),l()),t&2&&(o(),v(" ",m(2,1,"labels.messages.No Data Found")," "))}function OL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Date")))}function IL(t,n){if(t&1&&(s(0,"td",17),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.buyDownFeeDate)," ")}}function EL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Fee Amount")))}function LL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.buyDownFeeAmount,"0.00")," ")}}function NL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Amortized Amount")))}function kL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.amortizedAmount,"0.00")," ")}}function FL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Not Yet Amortized Amount")))}function RL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.notYetAmortizedAmount,"0.00")," ")}}function BL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Adjusted Amount")))}function qL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.adjustedAmount,"0.00")," ")}}function jL(t,n){t&1&&(s(0,"th",16),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.heading.Charged Off Amount")))}function zL(t,n){if(t&1&&(s(0,"td",18),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.chargedOffAmount,"0.00")," ")}}function VL(t,n){t&1&&T(0,"tr",19)}function UL(t,n){t&1&&T(0,"tr",20)}function HL(t,n){if(t&1&&(s(0,"table",4),X(1,5),k(2,OL,3,3,"th",6)(3,IL,3,3,"td",7),Q(),X(4,8),k(5,EL,3,3,"th",6)(6,LL,3,4,"td",9),Q(),X(7,10),k(8,NL,3,3,"th",6)(9,kL,3,4,"td",9),Q(),X(10,11),k(11,FL,3,3,"th",6)(12,RL,3,4,"td",9),Q(),X(13,12),k(14,BL,3,3,"th",6)(15,qL,3,4,"td",9),Q(),X(16,13),k(17,jL,3,3,"th",6)(18,zL,3,4,"td",9),Q(),k(19,VL,1,0,"tr",14)(20,UL,1,0,"tr",15),l()),t&2){let e=P(2);x("dataSource",e.buyDownFeeData),o(19),x("matHeaderRowDef",e.buyDownFeeColumns),o(),x("matRowDefColumns",e.buyDownFeeColumns)}}function GL(t,n){if(t&1&&(s(0,"div"),M(1,ML,3,3,"div",3),M(2,HL,21,3,"table",4),l()),t&2){let e=P();o(),O(e.buyDownFeeData.length===0?1:-1),o(),O(e.buyDownFeeData.length>0?2:-1)}}var vg=(()=>{class t{constructor(){this.route=A(Et),this.loansService=A(Mt),this.buyDownFeeData=[],this.isLoading=!0,this.buyDownFeeColumns=["buyDownFeeDate","buyDownFeeAmount","amortizedAmount","notYetAmortizedAmount","adjustedAmount","chargedOffAmount"]}ngOnInit(){this.getLoanId(),this.loadBuyDownFees()}getLoanId(){if(this.route.snapshot.data&&this.route.snapshot.data.loanId){this.loanId=this.route.snapshot.data.loanId;return}let e=this.route;for(;e;){if(e.snapshot.paramMap.has("loanId")){this.loanId=e.snapshot.paramMap.get("loanId");return}if(e.parent)e=e.parent;else break}console.error("Could not find loanId in route parameters")}loadBuyDownFees(){if(!this.loanId){console.error("Cannot load buy down fees: loanId is undefined"),this.isLoading=!1;return}this.isLoading=!0,this.loansService.getBuyDownFeeData(this.loanId).subscribe({next:e=>{this.buyDownFeeData=e||[],this.isLoading=!1},error:e=>{console.error("Error loading buy down fees:",e),this.isLoading=!1}})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-buy-down-fees-tab"]],decls:6,vars:5,consts:[[1,"container"],[1,"loading-indicator"],["diameter","30"],[1,"no-data"],["mat-table","",3,"dataSource"],["matColumnDef","buyDownFeeDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","buyDownFeeAmount"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","amortizedAmount"],["matColumnDef","notYetAmortizedAmount"],["matColumnDef","adjustedAmount"],["matColumnDef","chargedOffAmount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",1,"r-amount"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"h3"),c(2),p(3,"translate"),l(),M(4,AL,2,0,"div",1),M(5,GL,3,2,"div"),l()),i&2&&(o(2),b(m(3,3,"labels.heading.Buy Down Fees")),o(2),O(a.isLoading?4:-1),o(),O(a.isLoading?-1:5))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,En,Pt,hn],encapsulation:2})}}return t})();var il=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");if(!isNaN(+i))return this.loansService.getLoanAccountAssociationDetails(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var yu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoanNotes(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var C0=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(){return this.loansService.getLoanDataTables()}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Su=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.parent.paramMap.get("loanId"),a=e.paramMap.get("datatableName");return this.loansService.getLoanDatatable(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Du=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId"),a=e.paramMap.get("action");return a==="Assign Loan Officer"||a==="Change Loan Officer"?this.loansService.getLoanTemplate(i):a==="Make Repayment"?this.loansService.getLoanActionTemplate(i,"repayment"):a==="Goodwill Credit"?this.loansService.getLoanActionTemplate(i,"goodwillCredit"):a==="Interest Payment Waiver"?this.loansService.getLoanActionTemplate(i,"interestPaymentWaiver"):a==="Payout Refund"?this.loansService.getLoanActionTemplate(i,"payoutRefund"):a==="Merchant Issued Refund"?this.loansService.getLoanActionTemplate(i,"merchantIssuedRefund"):a==="Credit Balance Refund"?this.loansService.getLoanActionTemplate(i,"creditBalanceRefund"):a==="Waive Interest"?this.loansService.getLoanActionTemplate(i,"waiveinterest"):a==="Write Off"?this.loansService.getLoanActionTemplate(i,"writeoff"):a==="Close"?this.loansService.getLoanActionTemplate(i,"close"):a==="Close (as Rescheduled)"?this.loansService.getLoanActionTemplate(i,"close-rescheduled"):a==="Reschedule"?this.loansService.rescheduleLoanTemplate():a==="Prepay Loan"?this.loansService.getLoanPrepayLoanActionTemplate(i,null):a==="Add Collateral"?this.loansService.getLoanCollateralTemplate(i):a==="Disburse to Savings"?this.loansService.getLoanActionTemplate(i,"disburseToSavings"):a==="Recovery Payment"?this.loansService.getLoanActionTemplate(i,"recoverypayment"):a==="View Guarantors"?this.loansService.getLoanAccountResource(i,"guarantors"):a==="Create Guarantor"?this.loansService.getGuarantorTemplate(i):a==="Disburse"?this.loansService.getLoanActionTemplate(i,"disburse"):a==="Loan Screen Reports"?this.loansService.getLoanScreenReportsData():a==="Approve"?this.loansService.getLoanApprovalTemplate(i):a==="Add Loan Charge"?this.loansService.getLoanChargeTemplateResource(i):a==="Foreclosure"?this.loansService.getLoanForeclosureActionTemplate(i):a==="Charge-Off"?this.loansService.getLoanActionTemplate(i,"charge-off"):a==="Capitalized Income"?this.loansService.getLoanActionTemplate(i,"capitalizedIncome"):a==="Contract Termination"?this.loansService.getLoanActionTemplate(i,"contractTermination"):a==="Buy Down Fee"?this.loansService.getLoanActionTemplate(i,"buyDownFee"):a==="Re-Age"?this.loansService.getLoanActionTemplate(i,"reAge"):a==="Re-Amortize"?this.loansService.getLoanActionTemplate(i,"reAmortization"):void 0}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var wu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.parent.parent.paramMap.get("clientId")||e.parent.parent.paramMap.get("groupId"),a=!!e.parent.parent.paramMap.get("groupId");return this.loansService.getLoansAccountTemplateResource(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Tu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoanDocuments(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var b0=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoansAccountAndTemplateResource(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var v0=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId"),a=e.paramMap.get("id");return this.loansService.getLoansAccountCharge(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Pu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId"),a=e.paramMap.get("id");return this.loansService.getLoansAccountTransaction(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Au=(()=>{class t{constructor(){this.reportsService=A(Ip)}resolve(e){let a={"output-type":"PDF",R_transactionId:e.paramMap.get("id")};return this.reportsService.getPentahoRunReportData("Loan Transaction Receipt",a,"default","en","dd MMMM yyyy")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Mu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId"),a=e.paramMap.get("id");return this.loansService.getLoansAccountTransactionTemplate(i,a)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Ou=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("groupId"),a=e.paramMap.get("glimId");return this.loansService.getGLIMAccountData(a,i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Iu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("groupId");return this.loansService.getGLIMLoanAccountTemplate(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Eu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDelinquencyTags(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var WL=t=>({data:t});function $L(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function YL(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.End Date")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}var x0=(()=>{class t{constructor(){this.dialogRef=A(Vo),this.data=A(Uo),this.formBuilder=A(Te),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.createDelinquencyActionForm()}createDelinquencyActionForm(){this.delinquencyActionForm=this.formBuilder.group({startDate:[new Date,Gt.required],endDate:["",Gt.required]})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-delinquency-action-dialog"]],decls:29,vars:30,consts:[["validFromDatePicker",""],["validTillDatePicker",""],["mat-dialog-title",""],["mat-dialog-content","",1,"layout-column",3,"formGroup"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"]],template:function(i,a){if(i&1){let r=xt();s(0,"h2",2),c(1),p(2,"translate"),l(),s(3,"div",3)(4,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(11);return dt(d.open())}),s(5,"mat-label"),c(6),p(7,"translate"),l(),T(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),M(12,$L,7,9,"mat-error"),l(),s(13,"mat-form-field",4),it("click",function(){mt(r);let d=Lt(20);return dt(d.open())}),s(14,"mat-label"),c(15),p(16,"translate"),l(),T(17,"input",7)(18,"mat-datepicker-toggle",6)(19,"mat-datepicker",null,1),M(21,YL,7,9,"mat-error"),l()(),s(22,"mat-dialog-actions",8)(23,"button",9),c(24),p(25,"translate"),l(),s(26,"button",10),c(27),p(28,"translate"),l()()}if(i&2){let r=Lt(11),u=Lt(20);o(),b(m(2,18,"labels.heading.Loan Delinquency Actions")),o(2),x("formGroup",a.delinquencyActionForm),o(3),b(m(7,20,"labels.inputs.Start Date")),o(2),x("min",a.minDate)("max",a.maxDate)("matDatepicker",r),o(),x("for",r),o(3),O(a.delinquencyActionForm.controls.startDate.hasError("required")?12:-1),o(3),b(m(16,22,"labels.inputs.End Date")),o(2),x("min",a.delinquencyActionForm.value.startDate)("max",a.maxDate)("matDatepicker",u),o(),x("for",u),o(3),O(a.delinquencyActionForm.controls.endDate.hasError("required")?21:-1),o(3),b(m(25,24,"labels.buttons.Cancel")),o(2),x("mat-dialog-close",La(28,WL,a.delinquencyActionForm))("disabled",!a.delinquencyActionForm.valid||a.delinquencyActionForm.pristine),o(),v(" ",m(28,26,"labels.buttons.Submit")," ")}},dependencies:[wt,Tt,we,he,Ee,je,Le,Ne,_e,ge,Ve,Je,Pe,tn,en,Qe,Wt,Ur,Ho,Go,Kl,Pt],encapsulation:2})}}return t})();function ZL(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Delinquency Classification")))}function KL(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),$t("( ",e.delinquencyRange.minimumAgeDays," - ",e.delinquencyRange.maximumAgeDays," )")}}function JL(t,n){if(t&1&&(s(0,"span"),c(1),l()),t&2){let e=P().$implicit;o(),v("( ",e.delinquencyRange.minimumAgeDays," )")}}function XL(t,n){if(t&1&&(s(0,"td",12),c(1),M(2,KL,2,2,"span"),M(3,JL,2,1,"span"),l()),t&2){let e=n.$implicit;o(),v(" ",e.delinquencyRange.classification," "),o(),O(e.delinquencyRange.maximumAgeDays?2:-1),o(),O(e.delinquencyRange.maximumAgeDays?-1:3)}}function QL(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Added On")))}function tN(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.addedOnDate)," ")}}function eN(t,n){if(t&1&&(s(0,"td",12),M(1,tN,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.addedOnDate?1:-1)}}function nN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Lifted On")))}function iN(t,n){if(t&1&&(s(0,"span"),c(1),p(2,"dateFormat"),l()),t&2){let e=P().$implicit;o(),v(" ",m(2,1,e.liftedOnDate)," ")}}function aN(t,n){if(t&1&&(s(0,"td",12),M(1,iN,3,3,"span"),l()),t&2){let e=n.$implicit;o(),O(e.liftedOnDate?1:-1)}}function oN(t,n){t&1&&T(0,"tr",13)}function rN(t,n){t&1&&T(0,"tr",14)}function lN(t,n){if(t&1&&(s(0,"table",1),X(1,4),k(2,ZL,3,3,"th",5)(3,XL,4,3,"td",6),Q(),X(4,7),k(5,QL,3,3,"th",5)(6,eN,2,1,"td",6),Q(),X(7,8),k(8,nN,3,3,"th",5)(9,aN,2,1,"td",6),Q(),k(10,oN,1,0,"tr",9)(11,rN,1,0,"tr",10),l()),t&2){let e=P();x("dataSource",e.loanDelinquencyTags),o(10),x("matHeaderRowDef",e.loanDelinquencyTagsColumns),o(),x("matRowDefColumns",e.loanDelinquencyTagsColumns)}}function sN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Delinquency Classification")))}function cN(t,n){if(t&1&&(s(0,"td",12),c(1),l()),t&2){let e=n.$implicit;o(),b(e.classification)}}function pN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Days")))}function mN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.minimumAgeDays))}}function dN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function uN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"currency"),l()),t&2){let e=n.$implicit,i=P(2);o(),v(" ",Ye(2,1,e.delinquentAmount,i.currency.code,"symbol-narrow","1.2-2")," ")}}function fN(t,n){t&1&&T(0,"tr",13)}function hN(t,n){t&1&&T(0,"tr",14)}function gN(t,n){if(t&1&&(s(0,"div")(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",1),X(5,4),k(6,sN,3,3,"th",5)(7,cN,2,1,"td",6),Q(),X(8,15),k(9,pN,3,3,"th",5)(10,mN,3,3,"td",6),Q(),X(11,16),k(12,dN,3,3,"th",5)(13,uN,3,6,"td",6),Q(),k(14,fN,1,0,"tr",9)(15,hN,1,0,"tr",10),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Loan Delinquency Installment Tags")),o(2),x("dataSource",e.installmentLevelDelinquency),o(10),x("matHeaderRowDef",e.installmentDelinquencyTagsColumns),o(),x("matRowDefColumns",e.installmentDelinquencyTagsColumns)}}function _N(t,n){if(t&1){let e=xt();s(0,"button",18),it("click",function(){mt(e);let a=P(2);return dt(a.createDelinquencyAction())}),T(1,"fa-icon",19),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Pause Delinquency Classification")," "))}function CN(t,n){t&1&&(s(0,"div",2),k(1,_N,4,3,"button",17),l()),t&2&&(o(),x("mifosxHasPermission","CREATE_DELINQUENCY_ACTION"))}function bN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Action")))}function vN(t,n){if(t&1&&(s(0,"td",26),c(1),l()),t&2){let e=n.$implicit,i=P(2);x("ngClass",ce(i.actionClass(e.action))),o(),b(e.action)}}function xN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Start Date")))}function yN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.startDate))}}function SN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.End Date")))}function DN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.endDate))}}function wN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Created On")))}function TN(t,n){if(t&1&&(s(0,"td",12),c(1),p(2,"datetimeFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.createdOn))}}function PN(t,n){t&1&&(s(0,"th",11),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function AN(t,n){if(t&1){let e=xt();s(0,"button",28),p(1,"translate"),it("click",function(){mt(e);let a=P(2).$implicit,r=P(2);return dt(r.resumeDelinquencyClassification(a))}),T(2,"fa-icon",29),l()}t&2&&x("matTooltip",ce(m(1,2,"tooltips.Resume Delinquency Classification")))}function MN(t,n){t&1&&(s(0,"span"),k(1,AN,3,4,"button",27),l()),t&2&&(o(),x("mifosxHasPermission","CREATE_DELINQUENCY_ACTION"))}function ON(t,n){if(t&1&&(s(0,"td",12),M(1,MN,2,1,"span"),l()),t&2){let e=n.$implicit,i=P(2);o(),O(i.isCurrentAndPauseAction(e)?1:-1)}}function IN(t,n){t&1&&T(0,"tr",13)}function EN(t,n){t&1&&T(0,"tr",14)}function LN(t,n){if(t&1&&(s(0,"div",3)(1,"h3"),c(2),p(3,"translate"),l(),s(4,"table",1),X(5,20),k(6,bN,3,3,"th",5)(7,vN,2,3,"td",21),Q(),X(8,22),k(9,xN,3,3,"th",5)(10,yN,3,3,"td",6),Q(),X(11,23),k(12,SN,3,3,"th",5)(13,DN,3,3,"td",6),Q(),X(14,24),k(15,wN,3,3,"th",5)(16,TN,3,3,"td",6),Q(),X(17,25),k(18,PN,3,3,"th",5)(19,ON,2,1,"td",6),Q(),k(20,IN,1,0,"tr",9)(21,EN,1,0,"tr",10),l()()),t&2){let e=P();o(2),b(m(3,4,"labels.heading.Loan Delinquency Actions")),o(2),x("dataSource",e.loanDelinquencyActions),o(16),x("matHeaderRowDef",e.loanDelinquencyActionsColumns),o(),x("matRowDefColumns",e.loanDelinquencyActionsColumns)}}var y0=(()=>{class t{constructor(){this.route=A(Et),this.loansServices=A(Mt),this.dateUtils=A(de),this.settingsService=A(oe),this.translateService=A(pa),this.dialog=A(Gn),this.loanDelinquencyTags=[],this.loanDelinquencyActions=[],this.installmentLevelDelinquency=[],this.loanDelinquencyTagsColumns=["classification","addedOn","liftedOn"],this.loanDelinquencyActionsColumns=["action","startDate","endDate","createdOn","actions"],this.installmentDelinquencyTagsColumns=["classification","minimumAgeDays","amount"],this.allowPause=!0,this.loanId=this.route.parent.parent.snapshot.params.loanId,this.route.parent.data.subscribe(e=>{this.loanDelinquencyTags=e.loanDelinquencyTagsData,this.loanDelinquencyActions=e.loanDelinquencyActions||[],this.validateDelinquencyActions();let i=e.loanDelinquencyData.delinquent||null;this.currency=e.loanDelinquencyData.currency,this.installmentLevelDelinquency=[],i!=null&&(this.installmentLevelDelinquency=i.installmentLevelDelinquency||[])})}ngOnInit(){this.locale=this.settingsService.language.code,this.dateFormat=this.settingsService.dateFormat,this.currentLoanDelinquencyAction=null,this.validateDelinquencyActions()}validateDelinquencyActions(){if(this.loanDelinquencyActions.length>0){let e=this.settingsService.businessDate;this.currentLoanDelinquencyAction=this.loanDelinquencyActions[this.loanDelinquencyActions.length-1],this.allowPause=this.currentLoanDelinquencyAction.action==="RESUME"}}createDelinquencyAction(){let e="pause";this.dialog.open(x0,{data:{action:e}}).afterClosed().subscribe(a=>{let r=a.data.value.startDate,u=a.data.value.endDate;this.sendDelinquencyAction(e,r,u)})}resumeDelinquencyClassification(e){this.dialog.open(ma,{data:{heading:this.translateService.instant("labels.heading.Loan Delinquency Classification"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want resume the Delinquency Classification for Loan")+this.loanId,type:"Mild"}}).afterClosed().subscribe(a=>{a.confirm&&this.sendDelinquencyAction("resume",new Date,null)})}sendDelinquencyAction(e,i,a){let r={action:e,locale:this.locale,dateFormat:this.dateFormat,startDate:this.dateUtils.formatDate(i,this.dateFormat)};e==="pause"&&(r={action:e,locale:this.locale,dateFormat:this.dateFormat,startDate:this.dateUtils.formatDate(i,this.dateFormat),endDate:this.dateUtils.formatDate(a,this.dateFormat)}),this.loansServices.createDelinquencyActions(this.loanId,r).subscribe(u=>{this.loansServices.getDelinquencyActions(this.loanId).subscribe(d=>{this.loanDelinquencyActions=d,this.validateDelinquencyActions()})})}isCurrentAndPauseAction(e){if(this.currentLoanDelinquencyAction!=null&&this.currentLoanDelinquencyAction.id===e.id&&e.action==="PAUSE"){let i=this.settingsService.businessDate,a=this.dateUtils.parseDate(e.startDate);if(ir)return this.allowPause=!0,!1}return!0}return!1}actionClass(e){return e==="PAUSE"?"status-pending":"status-active"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-delinquency-tags-tab"]],decls:8,vars:7,consts:[[1,"container"],["mat-table","",3,"dataSource"],[1,"layout-row","m-t-20","m-b-10","align-end","align-items-center"],[1,"m-t-10"],["matColumnDef","classification"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","addedOn"],["matColumnDef","liftedOn"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","minimumAgeDays"],["matColumnDef","amount"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","pause",1,"m-r-10"],["matColumnDef","action"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","createdOn"],["matColumnDef","actions"],["mat-cell","",3,"ngClass"],["mat-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-button","","color","primary",3,"click","matTooltip"],["icon","play",1,"m-r-10"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"h3"),c(2),p(3,"translate"),l(),M(4,lN,12,3,"table",1),M(5,gN,16,6,"div"),M(6,CN,2,1,"div",2),M(7,LN,22,6,"div",3),l()),i&2&&(o(2),b(m(3,5,"labels.heading.Loan Delinquency Tags")),o(2),O(a.loanDelinquencyTags.length>0?4:-1),o(),O(a.installmentLevelDelinquency.length>0?5:-1),o(),O(a.allowPause?6:-1),o(),O(a.loanDelinquencyActions.length>0?7:-1))},dependencies:[wt,ca,Tt,Wt,Ae,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,un,Oi,Sa,En,Pt,o1,hn],styles:["table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{padding-top:1%;padding-bottom:2%}.container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}"]})}}return t})();var xg=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.loanRescheduleRequests(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var NN=()=>["../actions/Reschedule"];function kN(t,n){t&1&&(s(0,"th",13),c(1,"#"),l())}function FN(t,n){if(t&1&&(s(0,"td",14),c(1),l()),t&2){let e=n.$implicit;o(),b(e.id)}}function RN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Status")))}function BN(t,n){if(t&1&&(s(0,"td",14)(1,"div",15),p(2,"statusLookup"),T(3,"fa-icon",16),s(4,"span",17),c(5),p(6,"translate"),l()()()),t&2){let e=n.$implicit;o(),x("ngClass",m(2,2,e.statusEnum.code)),o(4),v(" ",m(6,4,e.statusEnum.value)," ")}}function qN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.From Date")))}function jN(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.rescheduleFromDate)," ")}}function zN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Reason")))}function VN(t,n){if(t&1&&(s(0,"td",14),c(1),l()),t&2){let e=n.$implicit;o(),v(" ",e.rescheduleReasonCodeValue.name," ")}}function UN(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function HN(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",18),p(2,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.manageRequest(a,"Reject"))}),T(3,"fa-icon",19),l(),s(4,"button",20),p(5,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P();return dt(r.manageRequest(a,"Approve"))}),T(6,"fa-icon",21),l()()}t&2&&(o(),x("matTooltip",ce(m(2,4,"tooltips.Reject Reschedule"))),o(3),x("matTooltip",ce(m(5,6,"tooltips.Approve Reschedule"))))}function GN(t,n){if(t&1&&(s(0,"td",14),M(1,HN,7,8,"span"),l()),t&2){let e=n.$implicit;o(),O(e.statusEnum.pendingApproval?1:-1)}}function WN(t,n){t&1&&T(0,"tr",22)}function $N(t,n){t&1&&T(0,"tr",23)}var S0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.loansServices=A(Mt),this.settingsService=A(oe),this.dateUtils=A(de),this.translateService=A(pa),this.dialog=A(Gn),this.loanRescheduleDataColumns=["id","rescheduleFromDate","reason","status","actions"],this.clientId=this.route.parent.parent.snapshot.paramMap.get("clientId"),this.route.parent.data.subscribe(e=>{this.loanRescheduleData=e.loanRescheduleData})}manageRequest(e,i){this.dialog.open(ma,{data:{heading:`${i}`+this.translateService.instant("labels.heading.Loan Reschedule"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want")+`${i}`+this.translateService.instant("labels.dialogContext.the Loan Reschedule")+`${e.id}`}}).afterClosed().subscribe(r=>{if(r.confirm){let u=this.settingsService.language.code,d=this.settingsService.dateFormat,g={dateFormat:d,locale:u};i==="Approve"?g.approvedOnDate=this.dateUtils.formatDate(this.settingsService.businessDate,d):g.rejectedOnDate=this.dateUtils.formatDate(this.settingsService.businessDate,d),this.loansServices.applyCommandLoanRescheduleRequests(e.id,i.toLowerCase(),g).subscribe(_=>{this.reload()})}})}reload(){let e=this.router.url;this.router.navigateByUrl(`/clients/${this.clientId}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-reschedule-loan-tab"]],inputs:{loanStatus:"loanStatus"},decls:23,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px","align-end","align-items-center","action-buttons"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["matColumnDef","rescheduleFromDate"],["matColumnDef","reason"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[3,"ngClass"],["icon","stop"],[1,"m-l-10","status"],["mat-raised-button","","color","warn","matTooltipPosition","left",1,"action-button",3,"click","matTooltip"],["icon","trash"],["mat-raised-button","","color","primary","matTooltipPosition","right",1,"action-button",3,"click","matTooltip"],["icon","check"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"div",1)(2,"button",2),c(3),p(4,"translate"),l()(),s(5,"table",3),X(6,4),k(7,kN,2,0,"th",5)(8,FN,2,1,"td",6),Q(),X(9,7),k(10,RN,3,3,"th",5)(11,BN,7,6,"td",6),Q(),X(12,8),k(13,qN,3,3,"th",5)(14,jN,3,3,"td",6),Q(),X(15,9),k(16,zN,3,3,"th",5)(17,VN,2,1,"td",6),Q(),X(18,10),k(19,UN,3,3,"th",5)(20,GN,2,1,"td",6),Q(),k(21,WN,1,0,"tr",11)(22,$N,1,0,"tr",12),l()()),i&2&&(o(2),x("routerLink",Ut(7,NN)),o(),v(" ",m(4,5,"labels.buttons.Reschedule")," "),o(2),x("dataSource",a.loanRescheduleData),o(16),x("matHeaderRowDef",a.loanRescheduleDataColumns),o(),x("matRowDefColumns",a.loanRescheduleDataColumns))},dependencies:[wt,ca,Tt,ae,Wt,bn,yn,xn,Sn,vn,Dn,un,Oi,wn,Pn,Tn,An,En,Pt,Ap],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.container[_ngcontent-%COMP%]{padding-top:1%;padding-bottom:2%}.container[_ngcontent-%COMP%] .action-buttons[_ngcontent-%COMP%]{padding-bottom:1rem;padding-top:1rem}"]})}}return t})();var YN=()=>["../.."];function ZN(t,n){t&1&&(s(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),s(4,"strong"),c(5),p(6,"translate"),l()()),t&2&&(o(),$t(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),o(4),b(m(6,7,"labels.commons.required")))}function KN(t,n){if(t&1&&(s(0,"mat-option",9),c(1),l()),t&2){let e=n.$implicit;x("value",e.id),o(),v(" ",e.name," ")}}function JN(t,n){t&1&&(s(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),l(),T(4,"input",18),l(),s(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),l(),T(9,"input",19),l(),s(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),l(),T(14,"input",20),l(),s(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),l(),T(19,"input",21),l(),s(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),l(),T(24,"input",22),l()),t&2&&(o(2),v(" ",m(3,5,"labels.inputs.Account")," #"),o(5),v("",m(8,7,"labels.inputs.Cheque")," #"),o(5),b(m(13,9,"labels.inputs.Routing Code")),o(5),v("",m(18,11,"labels.inputs.Reciept")," #"),o(5),v("",m(23,13,"labels.inputs.Bank")," #"))}function XN(t,n){if(t&1&&(s(0,"button",23),c(1),p(2,"translate"),l()),t&2){let e=P();x("disabled",!e.adjustLoanChargeForm.valid),o(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var D0=(()=>{class t{constructor(){this.formBuilder=A(Te),this.loanService=A(Mt),this.route=A(Et),this.router=A(le),this.settingsService=A(oe),this.organizationService=A(Op),this.paymentTypes=[],this.chargeData=[],this.loanDetailsData=[],this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.loanId=this.route.snapshot.params.loanId,this.chargeId=this.route.snapshot.params.id,this.route.data.subscribe(e=>{this.chargeData=e.loansAccountCharge,this.loanDetailsData=e.loanDetailsData})}ngOnInit(){this.maxDate=this.settingsService.maxAllowedDate,this.createAdjustLoanChargeForm(),this.setRepaymentLoanDetails()}createAdjustLoanChargeForm(){this.adjustLoanChargeForm=this.formBuilder.group({amount:[this.chargeData.amount,Gt.required],externalId:"",paymentTypeId:"",note:""})}setRepaymentLoanDetails(){this.organizationService.getPaymentTypes().subscribe(e=>{this.paymentTypes=e})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.adjustLoanChargeForm.addControl("accountNumber",new pe("")),this.adjustLoanChargeForm.addControl("checkNumber",new pe("")),this.adjustLoanChargeForm.addControl("routingCode",new pe("")),this.adjustLoanChargeForm.addControl("receiptNumber",new pe("")),this.adjustLoanChargeForm.addControl("bankNumber",new pe(""))):(this.adjustLoanChargeForm.removeControl("accountNumber"),this.adjustLoanChargeForm.removeControl("checkNumber"),this.adjustLoanChargeForm.removeControl("routingCode"),this.adjustLoanChargeForm.removeControl("receiptNumber"),this.adjustLoanChargeForm.removeControl("bankNumber"))}submit(){let e=this.adjustLoanChargeForm.value,i=this.settingsService.language.code,a=ve(ie({},e),{locale:i});this.loanService.executeLoansAccountChargesCommand(this.loanId,"adjustment",a,this.chargeId).subscribe(u=>{this.router.navigate(["../.."],{relativeTo:this.route})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-adjust-loan-charge"]],decls:44,vars:26,consts:[[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["appearance","fill"],["matTextSuffix","",1,"m-l-10"],[1,"flex-auto"],["type","number","matInput","","required","","formControlName","amount",1,"right-input"],["matInput","","formControlName","externalId"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(i,a){i&1&&(s(0,"div",0)(1,"mat-card")(2,"form",1),it("ngSubmit",function(){return a.submit()}),s(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),l(),s(9,"span",4),c(10),l(),T(11,"span",5)(12,"input",6),M(13,ZN,7,9,"mat-error"),l(),s(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),l(),T(18,"input",7),l(),s(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),l(),s(23,"mat-select",8),ue(24,KN,2,2,"mat-option",9,Ce),l()(),s(26,"div",10)(27,"span",11),it("click",function(){return a.addPaymentDetails()}),s(28,"mat-slide-toggle")(29,"div",12)(30,"span",13),c(31),p(32,"translate"),l()()()()(),M(33,JN,25,15),s(34,"mat-form-field")(35,"mat-label"),c(36),p(37,"translate"),l(),T(38,"textarea",14),l()(),s(39,"mat-card-actions",15)(40,"button",16),c(41),p(42,"translate"),l(),k(43,XN,3,4,"button",17),l()()()()()),i&2&&(o(2),x("formGroup",a.adjustLoanChargeForm),o(5),b(m(8,13,"labels.inputs.Amount")),o(3),b(a.loanDetailsData.currency.code),o(3),O(a.adjustLoanChargeForm.controls.amount.hasError("required")?13:-1),o(3),b(m(17,15,"labels.inputs.External Id")),o(5),b(m(22,17,"labels.inputs.Payment Type")),o(3),fe(a.paymentTypes),o(5),x("className",a.showPaymentDetails?"enabled":"disabled"),o(2),b(m(32,19,"labels.inputs.Show Payment Details")),o(2),O(a.showPaymentDetails?33:-1),o(3),b(m(37,21,"labels.inputs.Note")),o(4),x("routerLink",Ut(25,YN)),o(),v(" ",m(42,23,"labels.buttons.Cancel")," "),o(2),x("mifosxHasPermission","ADJUSTMENT_LOANCHARGE"))},dependencies:[wt,Tt,Re,we,Mi,he,Ee,je,Le,Ne,ae,xe,Oe,ze,_e,ge,Ve,Je,Pe,In,On,Wt,Ae,ja,Wn,Pt],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();var yg=(()=>{class t{constructor(){this.systemService=A(_p)}resolve(e){return this.systemService.getConfigurationByName("loan-arrears-delinquency-display-data")}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var QN=t=>["/","journal-entry","view-transfer",t];function tk(t,n){if(t&1&&(s(0,"div",1)(1,"h3"),c(2),p(3,"translate"),l(),s(4,"div",6)(5,"table")(6,"tbody")(7,"tr")(8,"td",7)(9,"b"),c(10),p(11,"translate"),l()(),s(12,"td",8)(13,"div",9),T(14,"fa-icon",10),s(15,"span",11),c(16),l()()(),s(17,"td",7)(18,"b"),c(19),p(20,"translate"),l()(),s(21,"td",8),T(22,"mifosx-external-identifier",12),l()(),s(23,"tr")(24,"td",7)(25,"b"),c(26),p(27,"translate"),l()(),s(28,"td",8),c(29),p(30,"dateFormat"),l(),s(31,"td",7)(32,"b"),c(33),p(34,"translate"),l()(),s(35,"td",8),c(36),p(37,"dateFormat"),l()(),s(38,"tr")(39,"td",7)(40,"b"),c(41),p(42,"translate"),l()(),s(43,"td",13)(44,"table")(45,"tbody")(46,"tr")(47,"td",14)(48,"b"),c(49),p(50,"translate"),l()(),s(51,"td",15),c(52),p(53,"formatNumber"),l()(),s(54,"tr")(55,"td",14)(56,"b"),c(57),p(58,"translate"),l()(),s(59,"td",15),c(60),p(61,"formatNumber"),l()(),s(62,"tr")(63,"td",14)(64,"b"),c(65),p(66,"translate"),l()(),s(67,"td",15),c(68),p(69,"formatNumber"),l()(),s(70,"tr")(71,"td",14)(72,"b"),c(73),p(74,"translate"),l()(),s(75,"td",15),c(76),p(77,"formatNumber"),l()(),s(78,"tr")(79,"td",14)(80,"b"),c(81),p(82,"translate"),l()(),s(83,"td",15),c(84),p(85,"formatNumber"),l()(),s(86,"tr")(87,"td",14)(88,"b"),c(89),p(90,"translate"),l()(),s(91,"td",15),c(92),p(93,"formatNumber"),l()()()()()()()()()()),t&2){let e=P();o(2),b(m(3,24,"labels.heading.Active Asset Transfer")),o(8),v("",m(11,26,"labels.inputs.Status")," :"),o(3),x("ngClass",e.itemStatus(e.activeTransferData.status)),o(3),b(e.activeTransferData.status),o(3),v("",m(20,28,"labels.inputs.Owner External Id")," :"),o(3),x("externalId",ce(e.activeTransferData.owner.externalId)),o(4),v("",m(27,30,"labels.inputs.Settlement Date")," :"),o(3),v(" ",m(30,32,e.activeTransferData.settlementDate)," "),o(4),v("",m(34,34,"labels.inputs.Effective Date")," :"),o(3),v(" ",m(37,36,e.activeTransferData.effectiveFrom)," "),o(5),v("",m(42,38,"labels.inputs.Details")," :"),o(8),v("",m(50,40,"labels.inputs.Principal Outstanding")," :"),o(3),v(" ",m(53,42,e.activeTransferData.details.totalPrincipalOutstanding)," "),o(5),v("",m(58,44,"labels.inputs.Interest Outstanding")," :"),o(3),v(" ",m(61,46,e.activeTransferData.details.totalInterestOutstanding)," "),o(5),v("",m(66,48,"labels.inputs.Fees Outstanding")," :"),o(3),v(" ",m(69,50,e.activeTransferData.details.totalFeeChargesOutstanding)," "),o(5),v("",m(74,52,"labels.inputs.Penalties Outstanding")," :"),o(3),v(" ",m(77,54,e.activeTransferData.details.totalPenaltyChargesOutstanding)," "),o(5),v("",m(82,56,"labels.inputs.Outstanding")," :"),o(3),v(" ",m(85,58,e.activeTransferData.details.totalOutstanding)," "),o(5),v("",m(90,60,"labels.inputs.Overpaid")," :"),o(3),b(m(93,62,e.activeTransferData.details.totalOverpaid))}}function ek(t,n){if(t&1){let e=xt();s(0,"button",17),it("click",function(){mt(e);let a=P(2);return dt(a.saleLoan())}),T(1,"fa-icon",18),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Sell Loan")," "))}function nk(t,n){t&1&&(s(0,"div",4),k(1,ek,4,3,"button",16),l()),t&2&&(o(),x("mifosxHasPermission","SALE_LOAN"))}function ik(t,n){if(t&1){let e=xt();s(0,"button",20),it("click",function(){mt(e);let a=P(2);return dt(a.cancelSaleLoan())}),T(1,"fa-icon",21),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Cancel Sell Loan")," "))}function ak(t,n){t&1&&(s(0,"div",4),k(1,ik,4,3,"button",19),l()),t&2&&(o(),x("mifosxHasPermission","SALE_LOAN"))}function ok(t,n){if(t&1){let e=xt();s(0,"button",17),it("click",function(){mt(e);let a=P(2);return dt(a.buyBackLoan())}),T(1,"fa-icon",18),c(2),p(3,"translate"),l()}t&2&&(o(2),v("",m(3,1,"labels.buttons.Buy Back Loan")," "))}function rk(t,n){t&1&&(s(0,"div",4),k(1,ok,4,3,"button",16),l()),t&2&&(o(),x("mifosxHasPermission","SALE_LOAN"))}function lk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Status")))}function sk(t,n){if(t&1&&(s(0,"td",36)(1,"div",9),T(2,"fa-icon",10),s(3,"span",37),c(4),p(5,"translate"),l()()()),t&2){let e=n.$implicit,i=P(2);o(),x("ngClass",i.itemStatus(e.status)),o(3),v(" ",m(5,2,i.itemCurrentStatus(e))," ")}}function ck(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Effective From")))}function pk(t,n){if(t&1&&(s(0,"td",36),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.effectiveFrom))}}function mk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Owner External Id")))}function dk(t,n){if(t&1&&(s(0,"td",36),T(1,"mifosx-external-identifier",38),l()),t&2){let e=n.$implicit;o(),x("externalId",ce(e.owner.externalId))}}function uk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Transfer External Id")))}function fk(t,n){if(t&1&&(s(0,"td",36),T(1,"mifosx-external-identifier",38),l()),t&2){let e=n.$implicit;o(),x("externalId",ce(e.transferExternalId))}}function hk(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Settlement Date")))}function gk(t,n){if(t&1&&(s(0,"td",36),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.settlementDate))}}function _k(t,n){t&1&&(s(0,"th",35),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Purchase Price Ratio")))}function Ck(t,n){if(t&1&&(s(0,"td",36),c(1),p(2,"number"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.purchasePriceRatio))}}function bk(t,n){t&1&&(s(0,"th",39),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function vk(t,n){if(t&1){let e=xt();s(0,"button",42),p(1,"translate"),it("click",function(a){mt(e);let r=P(3);return dt(r.routeJournalEntry(a))}),T(2,"i",43),l()}if(t&2){let e=P().$implicit;x("matTooltip",ce(m(1,3,"tooltips.View Journal Entries")))("routerLink",La(5,QN,e.transferId))}}function xk(t,n){if(t&1&&(s(0,"td",40),M(1,vk,3,7,"button",41),l()),t&2){let e=n.$implicit,i=P(2);o(),O(i.isPendingOrCanceled(e)?-1:1)}}function yk(t,n){t&1&&T(0,"tr",44)}function Sk(t,n){t&1&&T(0,"tr",45)}function Dk(t,n){if(t&1&&(s(0,"table",5),X(1,22),k(2,lk,3,3,"th",23)(3,sk,6,4,"td",24),Q(),X(4,25),k(5,ck,3,3,"th",23)(6,pk,3,3,"td",24),Q(),X(7,26),k(8,mk,3,3,"th",23)(9,dk,2,2,"td",24),Q(),X(10,27),k(11,uk,3,3,"th",23)(12,fk,2,2,"td",24),Q(),X(13,28),k(14,hk,3,3,"th",23)(15,gk,3,3,"td",24),Q(),X(16,29),k(17,_k,3,3,"th",23)(18,Ck,3,3,"td",24),Q(),X(19,30),k(20,bk,3,3,"th",31)(21,xk,2,1,"td",32),Q(),k(22,yk,1,0,"tr",33)(23,Sk,1,0,"tr",34),l()),t&2){let e=P();x("dataSource",e.loanTransfersData),o(22),x("matHeaderRowDef",e.loanTransferColumns),o(),x("matRowDefColumns",e.loanTransferColumns)}}var w0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.dialog=A(Gn),this.externalAssetOwner=A(Ep),this.externalAssetOwnerService=A(Wr),this.defaultDate="9999-12-31",this.loanTransfersData=[],this.loanTransferColumns=["status","effectiveFrom","ownerExternalId","transferExternalId","settlementDate","purchasePriceRatio","actions"],this.existActiveTransfer=!1,this.route.data.subscribe(e=>{this.loanTransfersData=e.loanTransfersData.empty?[]:e.loanTransfersData.content,this.activeTransferData=e.activeTransferData||null,this.existActiveTransfer=e.activeTransferData&&e.activeTransferData.transferId!=null})}ngOnInit(){this.currentItem=null,this.loanTransfersData.length>0&&(this.currentItem=this.loanTransfersData[this.loanTransfersData.length-1])}itemCurrentStatus(e){return this.externalAssetOwner.itemCurrentStatus(e)}itemStatus(e){return this.externalAssetOwner.itemStatus(e)}isPending(e){return this.externalAssetOwner.isPending(e)}isPendingOrCanceled(e){return this.externalAssetOwner.isPendingOrCanceled(e)}isBuyBackPending(e){return this.externalAssetOwner.isBuyBackPending(e)}canBeCancelled(){return this.externalAssetOwner.validateStatus(this.currentItem,"PENDING")}canBeSold(){return this.externalAssetOwner.canBeSold(this.currentItem)}canBeBuyed(){return this.externalAssetOwner.validateStatus(this.currentItem,"ACTIVE")}saleLoan(){this.router.navigate(["../actions/Sell Loan"],{relativeTo:this.route})}cancelSaleLoan(){this.dialog.open(Kf,{data:{cancelContext:`the Asset Transfer with the Owner External Id ${this.currentItem.owner.externalId} `}}).afterClosed().subscribe(i=>{if(i.cancel){let a={transferExternalId:this.currentItem.transferExternalId};this.externalAssetOwnerService.executeExternalAssetOwnerTransferCommand(this.currentItem.transferId,a,"cancel").subscribe(r=>{this.reload()})}})}buyBackLoan(){this.router.navigate(["../actions/Buy Back Loan"],{relativeTo:this.route})}routeJournalEntry(e){e.stopPropagation()}reload(){let e=this.router.url;this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-external-asset-owner-tab"]],decls:10,vars:8,consts:[[1,"tab-container","mat-typography"],[1,"flex-fill"],[1,"layout-row","align-start-center"],[1,"flex-90"],[1,"flex-10"],["mat-table","","mat-sort","",3,"dataSource"],[1,"layout-row","gap-32px","asset-transfer-container"],[1,"flex-25"],[1,"flex-25","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-10","external-asset-owner-status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50"],[1,"flex-50","r-amount"],["mat-raised-button","","class","f-right","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","class","f-right","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"f-right",3,"click"],["icon","trash",1,"m-r-10"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","effectiveFrom"],["matColumnDef","ownerExternalId"],["matColumnDef","transferExternalId"],["matColumnDef","settlementDate"],["matColumnDef","purchasePriceRatio"],["matColumnDef","actions"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","center td-min-space",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"m-l-10","status"],[3,"externalId"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center","td-min-space"],["mat-raised-button","","color","primary","matTooltipPosition","left",1,"account-action-button",3,"matTooltip","routerLink"],["mat-raised-button","","color","primary","matTooltipPosition","left",1,"account-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-arrow-circle-right"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0),M(1,tk,94,64,"div",1),s(2,"div",2)(3,"h3",3),c(4),p(5,"translate"),l(),M(6,nk,2,1,"div",4),M(7,ak,2,1,"div",4),M(8,rk,2,1,"div",4),l(),M(9,Dk,24,3,"table",5),l()),i&2&&(o(),O(a.existActiveTransfer?1:-1),o(3),b(m(5,6,"labels.heading.External Asset Owner")),o(2),O(a.canBeSold()?6:-1),o(),O(a.canBeCancelled()?7:-1),o(),O(a.canBeBuyed()?8:-1),o(),O(a.loanTransfersData.length>0?9:-1))},dependencies:[wt,ca,Tt,ae,Wt,Ae,un,Va,bn,yn,xn,Sn,vn,Dn,Oi,wn,Pn,Tn,An,kf,En,Pt,hn],styles:[".tab-container[_ngcontent-%COMP%]{padding:1% 1% 2%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .transaction-buttons[_ngcontent-%COMP%]{padding-bottom:1rem;padding-top:1rem}.tab-container[_ngcontent-%COMP%] .transaction-buttons[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.tab-container[_ngcontent-%COMP%] .asset-transfer-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.external-asset-owner-status[_ngcontent-%COMP%]{color:#000}.account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}"]})}}return t})();var Lu=(()=>{class t{constructor(){this.externalAssetOwnerService=A(Wr)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.externalAssetOwnerService.retrieveExternalAssetOwnerTransfers(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Sg=(()=>{class t{constructor(){this.externalAssetOwnerService=A(Wr)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.externalAssetOwnerService.retrieveExternalAssetOwnerActiveTransfer(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Dg=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getLoanCollaterals(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var Nu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDelinquencyData(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var wg=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDelinquencyActions(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function wk(t,n){t&1&&(s(0,"th",13),c(1,"#"),l())}function Tk(t,n){if(t&1&&(s(0,"td",14),c(1),l()),t&2){let e=n.index;o(),b(e+1)}}function Pk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Start Date")))}function Ak(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.termVariationApplicableFrom))}}function Mk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.End Date")))}function Ok(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"dateFormat"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.dateValue))}}function Ik(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Value")))}function Ek(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.decimalValue))}}function Lk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Days")))}function Nk(t,n){if(t&1&&(s(0,"td",14),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),b(m(2,1,e.days))}}function kk(t,n){t&1&&(s(0,"th",13),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Actions")))}function Fk(t,n){if(t&1){let e=xt();s(0,"span")(1,"button",15),p(2,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.manageRequest(a,"Edit"))}),T(3,"fa-icon",16),l(),s(4,"button",17),p(5,"translate"),it("click",function(){mt(e);let a=P().$implicit,r=P(2);return dt(r.manageRequest(a,"Delete"))}),T(6,"fa-icon",18),l()()}t&2&&(o(),x("matTooltip",ce(m(2,4,"tooltips.Edit"))),o(3),x("matTooltip",ce(m(5,6,"tooltips.Delete"))))}function Rk(t,n){if(t&1&&(s(0,"td",14),M(1,Fk,7,8,"span"),l()),t&2){let e=n.$implicit,i=P(2);o(),O(i.allowActions(e.termType.value)?1:-1)}}function Bk(t,n){t&1&&T(0,"tr",19)}function qk(t,n){t&1&&T(0,"tr",20)}function jk(t,n){if(t&1&&(s(0,"div")(1,"h3",1),c(2),p(3,"translate"),l(),s(4,"table",2),X(5,3),k(6,wk,2,0,"th",4)(7,Tk,2,1,"td",5),Q(),X(8,6),k(9,Pk,3,3,"th",4)(10,Ak,3,3,"td",5),Q(),X(11,7),k(12,Mk,3,3,"th",4)(13,Ok,3,3,"td",5),Q(),X(14,8),k(15,Ik,3,3,"th",4)(16,Ek,3,3,"td",5),Q(),X(17,9),k(18,Lk,3,3,"th",4)(19,Nk,3,3,"td",5),Q(),X(20,10),k(21,kk,3,3,"th",4)(22,Rk,2,1,"td",5),Q(),k(23,Bk,1,0,"tr",11)(24,qk,1,0,"tr",12),l()()),t&2){let e=n.$implicit,i=P();o(2),b(m(3,4,"labels.heading."+e.label)),o(2),x("dataSource",e.data),o(19),x("matHeaderRowDef",i.loanDTermVariationsColumns),o(),x("matRowDefColumns",i.loanDTermVariationsColumns)}}var T0=(()=>{class t{constructor(){this.route=A(Et),this.router=A(le),this.dates=A(de),this.settingsService=A(oe),this.loansService=A(Mt),this.dialog=A(Gn),this.loanTermVariationsData=[],this.loanDTermVariationsColumns=["row","startDate","endDate","days","actions"],this.emiAmountData=[],this.interestRateData=[],this.dueDateData=[],this.deleteInstallmentData=[],this.insertInstallmentData=[],this.principalAmountData=[],this.graceOnInterestData=[],this.graceOnPrincipalData=[],this.extendRepaymentPeriodData=[],this.interestRateFromInstallmentData=[],this.interestPausesData=[],this.invalidData=[];let e=this.dates;this.interestPausesData=[],this.clientId=this.route.parent.parent.snapshot.paramMap.get("clientId"),this.route.data.subscribe(i=>{this.loanId=i.loanDetailsData.id,this.loanTermVariationsData=[],i.loanDetailsData.loanTermVariations?.forEach(a=>{switch(a.days=e.calculateDiff(new Date(a.termVariationApplicableFrom),new Date(a.dateValue))+1,a.termType.value){case"emiAmount":this.emiAmountData.push(a);break;case"interestRate":this.interestRateData.push(a);break;case"deleteInstallment":this.deleteInstallmentData.push(a);break;case"dueDate":this.dueDateData.push(a);break;case"insertInstallment":this.insertInstallmentData.push(a);break;case"principalAmount":this.principalAmountData.push(a);break;case"graceOnInterest":this.graceOnInterestData.push(a);break;case"graceOnPrincipal":this.graceOnPrincipalData.push(a);break;case"extendRepaymentPeriod":this.extendRepaymentPeriodData.push(a);break;case"interestRateForInstallment":this.interestRateFromInstallmentData.push(a);break;case"interestPause":this.interestPausesData.push(a);break;default:this.invalidData.push(a);break}}),this.deleteInstallmentData.length>0&&this.loanTermVariationsData.push({label:"Delete Installment",data:this.deleteInstallmentData}),this.dueDateData.length>0&&this.loanTermVariationsData.push({label:"Due Date",data:this.dueDateData}),this.emiAmountData.length>0&&this.loanTermVariationsData.push({label:"EMI Amount",data:this.emiAmountData}),this.extendRepaymentPeriodData.length>0&&this.loanTermVariationsData.push({label:"Extend Repayment Period",data:this.extendRepaymentPeriodData}),this.graceOnInterestData.length>0&&this.loanTermVariationsData.push({label:"Grace On Interest",data:this.graceOnInterestData}),this.graceOnPrincipalData.length>0&&this.loanTermVariationsData.push({label:"Grace On Principal",data:this.graceOnPrincipalData}),this.insertInstallmentData.length>0&&this.loanTermVariationsData.push({label:"Insert Installment",data:this.insertInstallmentData}),this.interestPausesData.length>0&&this.loanTermVariationsData.push({label:"Interest Pauses",data:this.interestPausesData}),this.interestRateData.length>0&&this.loanTermVariationsData.push({label:"Interest Rate",data:this.interestRateData}),this.interestRateFromInstallmentData.length>0&&this.loanTermVariationsData.push({label:"Interest Rate From Installment",data:this.interestRateFromInstallmentData}),this.principalAmountData.length>0&&this.loanTermVariationsData.push({label:"Principal Amount",data:this.principalAmountData})})}manageRequest(e,i){i==="Delete"?this.deleteInterestPause(e):i==="Edit"&&this.updateInterestPause(e)}deleteInterestPause(e){this.dialog.open(ra,{data:{deleteContext:`interest pause from ${e.startDate} to ${e.endDate}`}}).afterClosed().subscribe(a=>{a.delete&&this.loansService.deleteInterestPause(this.loanId,e.id).subscribe(r=>{this.reload()})})}updateInterestPause(e){let i=this.dates.parseDate(e.startDate),a=this.dates.parseDate(e.endDate),r=[new la({controlName:"startDate",label:"Start Date",value:i,maxDate:this.settingsService.maxFutureDate,required:!0}),new la({controlName:"endDate",label:"End Date",value:a,maxDate:this.settingsService.maxFutureDate,required:!0})],u={title:"Edit Interest Pause id: "+e.id,formfields:r,layout:{addButtonText:"Submit"}};this.dialog.open(_i,{data:u,width:"50rem"}).afterClosed().subscribe(g=>{if(g.data&&g.data.value.startDate<=g.data.value.endDate){let _=this.settingsService.language.code,y=this.settingsService.dateFormat,I={startDate:this.dates.formatDate(g.data.value.startDate,y),endDate:this.dates.formatDate(g.data.value.endDate,y),locale:_,dateFormat:y};this.loansService.updateInterestPause(this.loanId,e.id,I).subscribe(N=>{this.reload()})}})}reload(){let e=this.router.url;this.router.navigateByUrl(`/clients/${this.clientId}/loans-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}allowActions(e){return e==="interestPause"}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-term-variations-tab"]],decls:3,vars:0,consts:[[1,"container"],[1,"m-t-20"],["mat-table","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","value"],["matColumnDef","days"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary","matTooltipPosition","right",1,"button",3,"click","matTooltip"],["icon","edit","size","lg"],["mat-icon-button","","color","warn","matTooltipPosition","left",1,"button",3,"click","matTooltip"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0),ue(1,jk,25,6,"div",null,Ce),l()),i&2&&(o(),fe(a.loanTermVariationsData))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,Ba,Oi,un,wn,Pn,Tn,An,En,Pt,hn],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 2%;line-height:25px}.container[_ngcontent-%COMP%]{padding-top:1%;padding-bottom:2%}.container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}"]})}}return t})();var ku=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");if(!isNaN(+i))return this.loansService.getInterestPausesOfLoan(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();function zk(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amount")))}function Vk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.amount)," ")}}function Uk(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Amortized Amount")))}function Hk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.amortizedAmount)," ")}}function Gk(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Unrecognized Amount")))}function Wk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",m(2,1,e.unrecognizedAmount)," ")}}function $k(t,n){t&1&&(s(0,"th",10),c(1),p(2,"translate"),l()),t&2&&(o(),b(m(2,1,"labels.inputs.Adjustment Amount")))}function Yk(t,n){if(t&1&&(s(0,"td",11),c(1),p(2,"formatNumber"),l()),t&2){let e=n.$implicit;o(),v(" ",Ge(2,1,e.amountAdjustment,"-")," ")}}function Zk(t,n){t&1&&T(0,"tr",12)}function Kk(t,n){t&1&&T(0,"tr",13)}function Jk(t,n){if(t&1&&(s(0,"table",1),X(1,2),k(2,zk,3,3,"th",3)(3,Vk,3,3,"td",4),Q(),X(4,5),k(5,Uk,3,3,"th",3)(6,Hk,3,3,"td",4),Q(),X(7,6),k(8,Gk,3,3,"th",3)(9,Wk,3,3,"td",4),Q(),X(10,7),k(11,$k,3,3,"th",3)(12,Yk,3,4,"td",4),Q(),k(13,Zk,1,0,"tr",8)(14,Kk,1,0,"tr",9),l()),t&2){let e=P();x("dataSource",e.capitalizedIncomeData),o(13),x("matHeaderRowDef",e.capitalizedIncomeColumns),o(),x("matRowDefColumns",e.capitalizedIncomeColumns)}}var Tg=(()=>{class t{constructor(){this.route=A(Et),this.capitalizedIncomeData=[],this.capitalizedIncomeColumns=["amount","amortizedAmount","unrecognizedAmount","amountAdjustment"],this.loanId=this.route.parent.parent.snapshot.params.loanId,this.capitalizedIncomeData=[],this.route.parent.data.subscribe(e=>{e.loanDeferredIncomeData.capitalizedIncomeData.forEach(i=>{this.capitalizedIncomeData.push({amount:i.amount,amortizedAmount:i.amortizedAmount??0,unrecognizedAmount:i.unrecognizedAmount??0,amountAdjustment:i.amountAdjustment??0})})})}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-loan-deferred-income-tab"]],decls:6,vars:7,consts:[[1,"container"],["mat-table","",3,"dataSource"],["matColumnDef","amount"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","amortizedAmount"],["matColumnDef","unrecognizedAmount"],["matColumnDef","amountAdjustment"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","",1,"center"],["mat-cell","",1,"r-amount"],["mat-header-row",""],["mat-row",""]],template:function(i,a){i&1&&(s(0,"div",0)(1,"h3"),c(2),p(3,"translate"),p(4,"translate"),l(),M(5,Jk,15,3,"table",1),l()),i&2&&(o(2),$t("",m(3,3,"labels.inputs.Deferred income")," - ",m(4,5,"labels.menus.Capitalized Income")),o(3),O(a.capitalizedIncomeData.length>0?5:-1))},dependencies:[wt,Tt,bn,yn,xn,Sn,vn,Dn,wn,Pn,Tn,An,Pt,hn],encapsulation:2})}}return t})();var Fu=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return this.loansService.getDeferredIncomeData(i)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Ru=(()=>{class t{constructor(){this.loansService=A(Mt)}resolve(e){let i=e.paramMap.get("loanId")||e.parent.paramMap.get("loanId");return i?this.loansService.getBuyDownFeeData(i):(console.error("LoanBuyDownFeesDataResolver: Could not find loanId in route parameters"),new Df(a=>{a.next([]),a.complete()}))}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275prov=sn({token:t,factory:t.\u0275fac})}}return t})();var Xk=[{path:"",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create Loans Account",breadcrumb:"Create Loans Account"},component:s0,resolve:{loansAccountTemplate:wu}},{path:":loanId",data:{title:"Loan View",routeParamBreadcrumb:"loanId"},component:Np,resolve:{loanDetailsData:il,loanDatatables:C0,loanArrearsDelinquencyConfig:yg},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:kp,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{loanDetailsData:il,loanDatatables:C0}},{path:"accountdetail",component:Fp,data:{title:"Account Detail",breadcrumb:"Account Detail",routeParamBreadcrumb:!1}},{path:"original-schedule",component:Sm,data:{title:"Original Schedule",breadcrumb:"Original Schedule",routeParamBreadcrumb:!1}},{path:"repayment-schedule",component:ho,data:{title:"Repayment Schedule",breadcrumb:"Repayment Schedule",routeParamBreadcrumb:!1}},{path:"transactions",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:ym},{path:"export",component:h0}]},{path:"deferred-income",data:{title:"Loans Deferred Income",breadcrumb:"Deferred income",routeParamBreadcrumb:!1},resolve:{loanDeferredIncomeData:Fu},children:[{path:"",component:Tg}]},{path:"delinquencytags",data:{title:"Loans Delinquency Tags",breadcrumb:"Delinquency Tags",routeParamBreadcrumb:!1},resolve:{loanDelinquencyTagsData:Eu,loanDelinquencyData:Nu,loanDelinquencyActions:wg},children:[{path:"",component:y0}]},{path:"loan-reschedules",data:{},resolve:{loanRescheduleData:xg},children:[{path:"",component:S0}]},{path:"loan-collateral",component:r0,data:{title:"Loan Collateral Details",breadcrumb:"Loan Collateral Details",routeParamBreadcrumb:!1},resolve:{loanCollaterals:Dg}},{path:"term-variations",component:T0,data:{title:"Loan Term Variations",breadcrumb:"Loan Term Variations",routeParamBreadcrumb:!1},resolve:{loanDetailsData:il,interestPausesData:ku}},{path:"loan-tranche-details",component:o0,data:{title:"Loan Tranche Details",breadcrumb:"Loan Tranche Details",routeParamBreadcrumb:!1}},{path:"overdue-charges",component:Dm,data:{title:"Overdue Charges",breadcrumb:"Overdue Charges",routeParamBreadcrumb:!1}},{path:"floating-interest-rates",component:a0,data:{title:"Floating Interest Rates",breadcrumb:"Floating Interest Rates",routeParamBreadcrumb:!1}},{path:"charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},component:wm},{path:"loan-documents",component:c0,data:{title:"Loan Documents",breadcrumb:"Loan Documents",routeParamBreadcrumb:!1},resolve:{loanDocuments:Tu}},{path:"notes",component:Rp,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{loanNotes:yu}},{path:"standing-instruction",component:p0,data:{title:"Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"external-asset-owner",component:w0,data:{title:"External Asset Owner",breadcrumb:"External Asset Owner",routeParamBreadcrumb:!1},resolve:{activeTransferData:Sg,loanTransfersData:Lu}},{path:"datatables",children:[{path:":datatableName",component:Tm,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanDatatable:Su}}]},{path:"buy-down-fees",component:vg,data:{title:"Buy Down Fees",breadcrumb:"Buy Down Fees",routeParamBreadcrumb:!1},resolve:{loanBuyDownFeesData:Ru}}]},{path:":loanId/transactions/:id",data:{title:"Loans Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},resolve:{loanDetailsAssociationData:il},children:[{path:"",data:{routeParamBreadcrumb:"id"},component:d0,resolve:{loansAccountTransaction:Pu}},{path:"edit",component:u0,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loansAccountTransactionTemplate:Mu}},{path:"reciept",component:f0,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{loansTransactionReciept:Au}}]},{path:":loanId/edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:Oc,resolve:{loansAccountAndTemplate:b0}},{path:":loanId/charges",data:{title:"Loans Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:m0,resolve:{loansAccountCharge:v0,loanDetailsData:il}},{path:":id/adjustment",data:{routeParamBreadcrumb:"id",breadcrumb:"Adjustment"},component:D0,resolve:{loansAccountCharge:v0,loanDetailsData:il}}]},{path:":loanId/actions/:action",component:i0,data:{title:"Loan Account Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},resolve:{actionButtonData:Du}},{path:":loanId/transfer-funds",loadChildren:()=>import("./account-transfers.module-3HW2IDTS.js").then(t=>t.AccountTransfersModule)},{path:"edit-loans-account",data:{title:"Modify Loans Account",breadcrumb:"Modify Loans Account",routeParamBreadcrumb:"Edit"},component:Oc,resolve:{loansAccountAndTemplate:b0}}]},{path:"glim-account",data:{title:"Loans",breadcrumb:"Loans",routeParamBreadcrumb:!1},children:[{path:"create",data:{title:"Create GLIM Application",breadcrumb:"Create GLIM Application",routeParamBreadcrumb:!1},component:_0,resolve:{loansAccountTemplate:Iu,groupsData:b1}},{path:":glimId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},component:g0,resolve:{glimData:Ou,groupsData:ld}}]}],Pg=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gp({type:t})}static{this.\u0275inj=fp({providers:[il,yu,C0,Su,Eu,Du,wu,Tu,b0,v0,Pu,Mu,Au,_1,ld,Ou,C1,Iu,Lu,Nu,ku,Fu,Ru],imports:[rd.forChild(Xk),rd]})}}return t})();var Ag=(()=>{class t{constructor(){this.externalAssetOwner=A(Ep)}itemStatus(e){return this.externalAssetOwner.itemStatus(e)}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275cmp=Dt({type:t,selectors:[["mifosx-external-asset-transfer"]],inputs:{transferData:"transferData"},decls:89,vars:61,consts:[[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],["icon","stop"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"]],template:function(i,a){i&1&&(s(0,"table")(1,"tbody")(2,"tr")(3,"td",0)(4,"b"),c(5),p(6,"translate"),l()(),s(7,"td",1)(8,"div",2),T(9,"fa-icon",3),s(10,"span",4),c(11),l()()(),s(12,"td",0)(13,"b"),c(14),p(15,"translate"),l()(),s(16,"td",1),T(17,"mifosx-external-identifier",5),l()(),s(18,"tr")(19,"td",0)(20,"b"),c(21),p(22,"translate"),l()(),s(23,"td",0),c(24),p(25,"dateFormat"),l(),s(26,"td",0)(27,"b"),c(28),p(29,"translate"),l()(),s(30,"td",0),c(31),p(32,"dateFormat"),l()(),s(33,"tr")(34,"td",0)(35,"b"),c(36),p(37,"translate"),l()(),s(38,"td",6)(39,"table")(40,"tbody")(41,"tr")(42,"td",7)(43,"b"),c(44),p(45,"translate"),l()(),s(46,"td",8),c(47),p(48,"formatNumber"),l()(),s(49,"tr")(50,"td",7)(51,"b"),c(52),p(53,"translate"),l()(),s(54,"td",8),c(55),p(56,"formatNumber"),l()(),s(57,"tr")(58,"td",7)(59,"b"),c(60),p(61,"translate"),l()(),s(62,"td",8),c(63),p(64,"formatNumber"),l()(),s(65,"tr")(66,"td",7)(67,"b"),c(68),p(69,"translate"),l()(),s(70,"td",8),c(71),p(72,"formatNumber"),l()(),s(73,"tr")(74,"td",7)(75,"b"),c(76),p(77,"translate"),l()(),s(78,"td",8),c(79),p(80,"formatNumber"),l()(),s(81,"tr")(82,"td",7)(83,"b"),c(84),p(85,"translate"),l()(),s(86,"td",8),c(87),p(88,"formatNumber"),l()()()()()()()()),i&2&&(o(5),v("",m(6,23,"labels.inputs.Status")," :"),o(3),x("ngClass",a.itemStatus(a.transferData.status)),o(3),b(a.transferData.status),o(3),v("",m(15,25,"labels.inputs.Owner External Id")," :"),o(3),x("externalId",ce(a.transferData.owner.externalId)),o(4),v("",m(22,27,"labels.inputs.Settlement Date")," :"),o(3),v(" ",m(25,29,a.transferData.settlementDate)," "),o(4),v("",m(29,31,"labels.inputs.Effective Date")," :"),o(3),v(" ",m(32,33,a.transferData.effectiveFrom)," "),o(5),v("",m(37,35,"labels.inputs.Details")," :"),o(8),v("",m(45,37,"labels.inputs.Principal Outstanding")," :"),o(3),b(m(48,39,a.transferData.details.totalPrincipalOutstanding)),o(5),v("",m(53,41,"labels.inputs.Interest Outstanding")," :"),o(3),b(m(56,43,a.transferData.details.totalInterestOutstanding)),o(5),v("",m(61,45,"labels.inputs.Fees Outstanding")," :"),o(3),v(" ",m(64,47,a.transferData.details.totalFeeChargesOutstanding)," "),o(5),v("",m(69,49,"labels.inputs.Penalties Outstanding")," :"),o(3),v(" ",m(72,51,a.transferData.details.totalPenaltyChargesOutstanding)," "),o(5),v("",m(77,53,"labels.inputs.Outstanding")," :"),o(3),b(m(80,55,a.transferData.details.totalOutstanding)),o(5),v("",m(85,57,"labels.inputs.Overpaid")," :"),o(3),b(m(88,59,a.transferData.details.totalOverpaid)))},dependencies:[wt,ca,Tt,un,Va,En,Pt,hn],styles:[".asset-transfer-container[_ngcontent-%COMP%]{height:150px}.asset-transfer-container[_ngcontent-%COMP%] .status[_ngcontent-%COMP%]{color:#000}"]})}}return t})();var slt=(()=>{class t{static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=gp({type:t})}static{this.\u0275inj=fp({imports:[f1,c1,Pg,r1,Bf,Km,Np,kp,Fp,Rp,wm,Dm,Sm,ho,i0,Pm,ym,Tm,Am,Mm,Om,Im,Em,Nm,a0,km,o0,Fm,Rm,r0,s0,Oo,Io,Eo,nl,l0,Bm,jm,zm,qm,Um,Hm,Gm,Wm,$m,c0,p0,Oc,Ym,Zm,m0,d0,u0,f0,h0,Lm,g0,_0,y0,el,Jm,Vm,Ss,S0,D0,Xm,Qm,w0,Ag,x0,t0,e0,T0,n0,Ic]})}}return t})();export{slt as LoansModule}; diff --git a/browser/main.js b/browser/main.js index 60126a7c3..5546d075e 100644 --- a/browser/main.js +++ b/browser/main.js @@ -1,6 +1,6 @@ -import{a as YF,b as Rk,c as Ea,d as Kg,e as li,f as Nk}from"./chunk-EKHJTTW7.js";import{a as lr,b as kT,c as BT,d as pf}from"./chunk-QZU3VMUE.js";import{$ as hg,$a as Bc,$b as RF,$d as vi,$e as ri,$f as go,A as fl,Aa as CF,Ab as bg,Ac as Fg,Ad as x0,Ae as Pp,Af as Qr,Ag as kk,B as rf,Ba as vF,Bb as MF,Bc as eo,Bd as Be,Be as Tp,Bf as Nr,C as Rl,Ca as Cg,Cb as yg,Cc as Po,Cd as ut,Ce as sk,Cf as nr,Cg as Yg,D as Eo,Da as X,Db as xp,Dc as Ht,Dd as qa,De as Za,Df as or,Dg as ta,E as Fo,Ea as Z,Eb as Sg,Ec as Un,Ed as b0,Ee as er,Ef as ar,Eg as as,F as lF,Fa as gl,Fb as ue,Fc as Wn,Fd as ai,Fe as Mp,Ff as Ck,Fg as To,G as Re,Ga as Y,Gb as Nl,Gc as ho,Gd as Fe,Ge as Dp,Gf as vk,Gg as rs,H as Hi,Ha as xF,Hb as DF,Hc as Nn,Hd as Ln,He as Pr,Hf as zg,Hg as Jg,I as u0,Ia as R,Ib as EF,Ic as kg,Id as ze,Ie as Tr,If as P0,Ig as Bk,J as hl,Ja as w,Jb as IF,Jc as zF,Jd as ft,Je as oc,Jf as T0,K as T,Ka as bF,Kb as wg,Kc as HF,Kd as gr,Ke as Mr,Kf as Hg,Kg as oo,L as V,La as yF,Lb as Pg,Lc as yi,Ld as gt,Le as Dr,Lf as xk,M as q,Ma as g0,Mb as OF,Mc as he,Md as ca,Me as vl,Mf as Gg,N as na,Na as Ee,Nc as yp,Nd as si,Ne as Vo,Nf as M0,O as sF,Oa as Te,Ob as rn,Oc as un,Od as pi,Oe as Ep,Of as D0,P as Cp,Pa as Me,Pb as OT,Pc as GF,Pd as mi,Pe as pa,Pf as bk,Q as cF,Qa as ve,Qb as AF,Qc as Ur,Qd as di,Qe as kt,Qf as yk,R as pF,Ra as vp,Rb as ko,Rc as Zt,Rd as fi,Re as ck,Rf as jg,S as mF,Sa as _l,Sb as bp,Sc as Ot,Sd as Pi,Se as w0,Sf as Sk,T as Uo,Ta as SF,Tb as FF,Tc as cf,Td as ki,Te as ns,Tf as wk,U as fg,Ua as c,Ub as kF,Uc as Wo,Ud as Ke,Ue as tr,Uf as Da,V as lf,Va as h,Vb as BF,Vc as jF,Vd as QF,Ve as ir,Vf as os,W as dF,Wa as v,Wb as Zs,Wc as st,Wd as JF,We as pk,Wf as ac,X as IT,Xa as le,Xb as wo,Xc as ce,Xd as ke,Xe as mk,Xf as $g,Y as uF,Ya as ea,Yb as Es,Yc as $e,Yd as Rg,Ye as dk,Yf as Yr,Z as fF,Za as wF,Zb as Sr,Zc as Xe,Ze as Ip,Zf as Qn,_ as f0,_a as kc,_b as fr,_c as Is,_d as an,_e as It,_f as In,a as nf,aa as hF,ab as Rc,ac as Lo,ad as it,ae as y0,af as uk,ag as po,b as of,ba as h0,bb as Le,bc as Ua,bd as Sp,be as wp,bf as ma,bg as ha,c as Rr,ca as a,cb as _0,cc as hr,cd as tt,ce as ii,cf as da,cg as Oi,d as Ra,da as bi,db as vg,dc as ud,dd as tn,de as Ri,df as ua,dg as On,e as J7,ea as pd,eb as oe,ec as Tg,ed as _n,ee as Ng,ef as fa,eg as Pk,f as K7,fa as gF,fb as Nt,fc as sf,fd as Ze,fe as Lg,ff as Ji,g as X7,ga as _F,gb as Ja,gc as Mg,gd as la,ge as tc,gf as qi,gg as E0,h as af,ha as gg,hb as p,hc as Ie,hd as La,he as ic,hf as _t,hg as Tk,i as sd,ia as Zo,ib as m,ic as ra,id as et,ie as nc,if as Ct,ig as Mk,j as Z7,ja as me,jb as Ft,jc as Dg,jd as $F,je as KF,jf as vt,jg as Dk,k as Mn,ka as Gi,kb as yr,kc as qe,kd as Xa,ke as XF,kg as Ek,l as eF,la as md,lb as $t,lc as Oe,ld as dt,le as ZF,lf as xt,lg as Ug,m as tF,ma as _g,mb as ti,mc as Na,md as Bg,me as S0,mf as bt,mg as Ik,n as d0,na as F,nb as es,nc as gn,nd as Va,ne as Yo,ng as Ok,o as cd,oa as br,ob as PF,oc as Eg,od as UF,oe as Vg,of as yt,og as Wg,p as iF,pa as Dn,pb as C0,pc as Ig,pd as nt,pe as ek,pf as St,pg as Er,q as ul,qa as dd,qb as co,qc as wi,qd as ec,qe as tk,qg as rr,r as Fc,ra as E,rb as ts,rc as xe,rd as fe,re as wr,rf as wt,rg as vn,s as ug,sa as I,sb as Js,sc as Og,sd as Ue,se as qg,sf as Pt,sg as $i,t as Oo,ta as Pe,tb as Ks,tc as AT,td as Qo,te as ik,tg as Ak,u as nF,ua as Se,ub as Xs,uc as NF,ud as Wr,ue as nk,uf as Tt,ug as Ir,v as Ao,va as we,vb as is,vc as LF,vd as Je,ve as ok,vf as fk,w as Ys,wa as g,wb as TF,wc as FT,wd as Cl,we as ak,wf as hk,wg as Fk,x as oF,xa as l,xb as Ka,xc as Ag,xd as Et,xe as rk,xf as Wt,xg as Ui,y as aF,ya as r,yb as xg,yc as VF,yd as sa,ye as lk,yf as gk,yg as Qg,z as rF,za as b,zb as v0,zc as qF,zd as WF,ze as Os,zf as _k,zg as rc}from"./chunk-AA5NALQN.js";import{a as at,b as qt,c as Ms,d as Q7,e as pt,f as DT,g as Ds,h as qn,i as ET,j as Y7,k as dg}from"./chunk-PHUH23IY.js";var vd=pt((k0,vf)=>{(function(){var e,o="4.17.21",t=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",_=1,C=2,x=4,y=1,P=2,S=1,M=2,D=4,k=8,z=16,U=32,J=64,re=128,ee=256,ae=512,se=30,_e="...",de=800,j=16,W=1,pe=2,O=3,B=1/0,L=9007199254740991,N=17976931348623157e292,G=NaN,$=4294967295,ne=$-1,be=$>>>1,ye=[["ary",re],["bind",S],["bindKey",M],["curry",k],["curryRight",z],["flip",ae],["partial",U],["partialRight",J],["rearg",ee]],Ne="[object Arguments]",te="[object Array]",Ae="[object AsyncFunction]",K="[object Boolean]",Q="[object Date]",Ce="[object DOMException]",Ve="[object Error]",mt="[object Function]",Ye="[object GeneratorFunction]",rt="[object Map]",Qt="[object Number]",zt="[object Null]",Qe="[object Object]",Vt="[object Promise]",Bt="[object Proxy]",Ut="[object RegExp]",Jt="[object Set]",ei="[object String]",ni="[object Symbol]",Ei="[object Undefined]",Ai="[object WeakMap]",Ni="[object WeakSet]",cn="[object ArrayBuffer]",ji="[object DataView]",Ki="[object Float32Array]",Xn="[object Float64Array]",fn="[object Int8Array]",Xi="[object Int16Array]",hn="[object Int32Array]",zi="[object Uint8Array]",Li="[object Uint8ClampedArray]",Yn="[object Uint16Array]",sn="[object Uint32Array]",bn=/\b__p \+= '';/g,El=/\b(__p \+=) '' \+/g,xn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wn=/&(?:amp|lt|gt|quot|#39);/g,Oa=/[&<>"']/g,zn=RegExp(wn.source),Hn=RegExp(Oa.source),Zr=/<%-([\s\S]+?)%>/g,En=/<%([\s\S]+?)%>/g,Pn=/<%=([\s\S]+?)%>/g,cr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vn=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/[\\^$.*+?()[\]{}|]/g,Gn=RegExp(el.source),Rt=/^\s+/,ui=/\s/,_i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fi=/\{\n\/\* \[wrapped with (.+)\] \*/,yo=/,? & /,Yi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ln=/[()=,{}\[\]\/\s]/,qo=/\\(\\)?/g,yn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nn=/\w*$/,Ro=/^[-+]0x[0-9a-f]+$/i,ro=/^0b[01]+$/i,lo=/^\[object .+?Constructor\]$/,Go=/^0o[0-7]+$/i,Pa=/^(?:0|[1-9]\d*)$/,Qa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pr=/($^)/,Ga=/['\n\r\u2028\u2029\\]/g,Ya="\\ud800-\\udfff",ht="\\u0300-\\u036f",oi="\\ufe20-\\ufe2f",Mi="\\u20d0-\\u20ff",xi=ht+oi+Mi,Vi="\\u2700-\\u27bf",pn="a-z\\xdf-\\xf6\\xf8-\\xff",dn="\\xac\\xb1\\xd7\\xf7",mo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jn="\\u2000-\\u206f",An=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$n="A-Z\\xc0-\\xd6\\xd8-\\xde",va="\\ufe0e\\ufe0f",Ta=dn+mo+jn+An,Mo="['\u2019]",jo="["+Ya+"]",mr="["+Ta+"]",kr="["+xi+"]",tl="\\d+",jl="["+Vi+"]",Gs="["+pn+"]",Ym="[^"+Ya+Ta+tl+Vi+pn+$n+"]",js="\\ud83c[\\udffb-\\udfff]",Io="(?:"+kr+"|"+js+")",No="[^"+Ya+"]",Jm="(?:\\ud83c[\\udde6-\\uddff]){2}",xs="[\\ud800-\\udbff][\\udc00-\\udfff]",bs="["+$n+"]",Gr="\\u200d",$l="(?:"+Gs+"|"+Ym+")",$s="(?:"+bs+"|"+Ym+")",lp="(?:"+Mo+"(?:d|ll|m|re|s|t|ve))?",Km="(?:"+Mo+"(?:D|LL|M|RE|S|T|VE))?",Sc=Io+"?",ys="["+va+"]?",Ph="(?:"+Gr+"(?:"+[No,Jm,xs].join("|")+")"+ys+Sc+")*",Jd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xm=ys+Sc+Ph,Kd="(?:"+[jl,Jm,xs].join("|")+")"+Xm,Th="(?:"+[No+kr+"?",kr,Jm,xs,jo].join("|")+")",Xd=RegExp(Mo,"g"),Zd=RegExp(kr,"g"),yP=RegExp(js+"(?="+js+")|"+Th+Xm,"g"),CZ=RegExp([bs+"?"+Gs+"+"+lp+"(?="+[mr,bs,"$"].join("|")+")",$s+"+"+Km+"(?="+[mr,bs+$l,"$"].join("|")+")",bs+"?"+$l+"+"+lp,bs+"+"+Km,qu,Jd,tl,Kd].join("|"),"g"),vZ=RegExp("["+Gr+Ya+xi+va+"]"),xZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yZ=-1,xa={};xa[Ki]=xa[Xn]=xa[fn]=xa[Xi]=xa[hn]=xa[zi]=xa[Li]=xa[Yn]=xa[sn]=!0,xa[Ne]=xa[te]=xa[cn]=xa[K]=xa[ji]=xa[Q]=xa[Ve]=xa[mt]=xa[rt]=xa[Qt]=xa[Qe]=xa[Ut]=xa[Jt]=xa[ei]=xa[Ai]=!1;var aa={};aa[Ne]=aa[te]=aa[cn]=aa[ji]=aa[K]=aa[Q]=aa[Ki]=aa[Xn]=aa[fn]=aa[Xi]=aa[hn]=aa[rt]=aa[Qt]=aa[Qe]=aa[Ut]=aa[Jt]=aa[ei]=aa[ni]=aa[zi]=aa[Li]=aa[Yn]=aa[sn]=!0,aa[Ve]=aa[mt]=aa[Ai]=!1;var SZ={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},wZ={"&":"&","<":"<",">":">",'"':""","'":"'"},PZ={"&":"&","<":"<",">":">",""":'"',"'":"'"},TZ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},MZ=parseFloat,DZ=parseInt,zO=typeof global=="object"&&global&&global.Object===Object&&global,EZ=typeof self=="object"&&self&&self.Object===Object&&self,vr=zO||EZ||Function("return this")(),SP=typeof k0=="object"&&k0&&!k0.nodeType&&k0,Zm=SP&&typeof vf=="object"&&vf&&!vf.nodeType&&vf,HO=Zm&&Zm.exports===SP,wP=HO&&zO.process,Ul=(function(){try{var Yt=Zm&&Zm.require&&Zm.require("util").types;return Yt||wP&&wP.binding&&wP.binding("util")}catch{}})(),GO=Ul&&Ul.isArrayBuffer,jO=Ul&&Ul.isDate,$O=Ul&&Ul.isMap,UO=Ul&&Ul.isRegExp,WO=Ul&&Ul.isSet,QO=Ul&&Ul.isTypedArray;function Il(Yt,Si,hi){switch(hi.length){case 0:return Yt.call(Si);case 1:return Yt.call(Si,hi[0]);case 2:return Yt.call(Si,hi[0],hi[1]);case 3:return Yt.call(Si,hi[0],hi[1],hi[2])}return Yt.apply(Si,hi)}function IZ(Yt,Si,hi,mn){for(var Zn=-1,zo=Yt==null?0:Yt.length;++Zn-1}function PP(Yt,Si,hi){for(var mn=-1,Zn=Yt==null?0:Yt.length;++mn-1;);return hi}function iA(Yt,Si){for(var hi=Yt.length;hi--&&e0(Si,Yt[hi],0)>-1;);return hi}function VZ(Yt,Si){for(var hi=Yt.length,mn=0;hi--;)Yt[hi]===Si&&++mn;return mn}var qZ=EP(SZ),zZ=EP(wZ);function HZ(Yt){return"\\"+TZ[Yt]}function GZ(Yt,Si){return Yt==null?e:Yt[Si]}function t0(Yt){return vZ.test(Yt)}function jZ(Yt){return xZ.test(Yt)}function $Z(Yt){for(var Si,hi=[];!(Si=Yt.next()).done;)hi.push(Si.value);return hi}function FP(Yt){var Si=-1,hi=Array(Yt.size);return Yt.forEach(function(mn,Zn){hi[++Si]=[Zn,mn]}),hi}function nA(Yt,Si){return function(hi){return Yt(Si(hi))}}function pp(Yt,Si){for(var hi=-1,mn=Yt.length,Zn=0,zo=[];++hi-1}function Aee(A,H){var ie=this.__data__,De=jh(ie,A);return De<0?(++this.size,ie.push([A,H])):ie[De][1]=H,this}wc.prototype.clear=Dee,wc.prototype.delete=Eee,wc.prototype.get=Iee,wc.prototype.has=Oee,wc.prototype.set=Aee;function Pc(A){var H=-1,ie=A==null?0:A.length;for(this.clear();++H=H?A:H)),A}function Jl(A,H,ie,De,He,ct){var At,jt=H&_,Kt=H&C,Di=H&x;if(ie&&(At=He?ie(A,De,He,ct):ie(A)),At!==e)return At;if(!Aa(A))return A;var Ii=no(A);if(Ii){if(At=Rte(A),!jt)return cl(A,At)}else{var Bi=$r(A),Zi=Bi==mt||Bi==Ye;if(_p(A))return VA(A,jt);if(Bi==Qe||Bi==Ne||Zi&&!He){if(At=Kt||Zi?{}:o7(A),!jt)return Kt?Pte(A,Qee(At,A)):wte(A,hA(At,A))}else{if(!aa[Bi])return He?A:{};At=Nte(A,Bi,jt)}}ct||(ct=new ws);var Cn=ct.get(A);if(Cn)return Cn;ct.set(A,At),F7(A)?A.forEach(function(Rn){At.add(Jl(Rn,H,ie,Rn,A,ct))}):O7(A)&&A.forEach(function(Rn,xo){At.set(xo,Jl(Rn,H,ie,xo,A,ct))});var Bn=Di?Kt?aT:oT:Kt?ml:xr,so=Ii?e:Bn(A);return Wl(so||A,function(Rn,xo){so&&(xo=Rn,Rn=A[xo]),Wu(At,xo,Jl(Rn,H,ie,xo,A,ct))}),At}function Yee(A){var H=xr(A);return function(ie){return gA(ie,A,H)}}function gA(A,H,ie){var De=ie.length;if(A==null)return!De;for(A=ia(A);De--;){var He=ie[De],ct=H[He],At=A[He];if(At===e&&!(He in A)||!ct(At))return!1}return!0}function _A(A,H,ie){if(typeof A!="function")throw new Ql(i);return ef(function(){A.apply(e,ie)},H)}function Qu(A,H,ie,De){var He=-1,ct=Mh,At=!0,jt=A.length,Kt=[],Di=H.length;if(!jt)return Kt;ie&&(H=Ma(H,Ol(ie))),De?(ct=PP,At=!1):H.length>=t&&(ct=zu,At=!1,H=new id(H));e:for(;++HeHe?0:He+ie),De=De===e||De>He?He:ao(De),De<0&&(De+=He),De=ie>De?0:B7(De);ie0&&ie(jt)?H>1?Br(jt,H-1,ie,De,He):cp(He,jt):De||(He[He.length]=jt)}return He}var qP=$A(),xA=$A(!0);function Us(A,H){return A&&qP(A,H,xr)}function zP(A,H){return A&&xA(A,H,xr)}function Uh(A,H){return sp(H,function(ie){return Ic(A[ie])})}function od(A,H){H=hp(H,A);for(var ie=0,De=H.length;A!=null&&ieH}function Xee(A,H){return A!=null&&Xo.call(A,H)}function Zee(A,H){return A!=null&&H in ia(A)}function ete(A,H,ie){return A>=jr(H,ie)&&A=120&&Ii.length>=120)?new id(At&&Ii):e}Ii=A[0];var Bi=-1,Zi=jt[0];e:for(;++Bi-1;)jt!==A&&Nh.call(jt,Kt,1),Nh.call(A,Kt,1);return A}function OA(A,H){for(var ie=A?H.length:0,De=ie-1;ie--;){var He=H[ie];if(ie==De||He!==ct){var ct=He;Ec(He)?Nh.call(A,He,1):KP(A,He)}}return A}function QP(A,H){return A+qh(mA()*(H-A+1))}function ute(A,H,ie,De){for(var He=-1,ct=ur(Vh((H-A)/(ie||1)),0),At=hi(ct);ct--;)At[De?ct:++He]=A,A+=ie;return At}function YP(A,H){var ie="";if(!A||H<1||H>L)return ie;do H%2&&(ie+=A),H=qh(H/2),H&&(A+=A);while(H);return ie}function uo(A,H){return dT(l7(A,H,dl),A+"")}function fte(A){return fA(m0(A))}function hte(A,H){var ie=m0(A);return ng(ie,nd(H,0,ie.length))}function Ku(A,H,ie,De){if(!Aa(A))return A;H=hp(H,A);for(var He=-1,ct=H.length,At=ct-1,jt=A;jt!=null&&++HeHe?0:He+H),ie=ie>He?He:ie,ie<0&&(ie+=He),He=H>ie?0:ie-H>>>0,H>>>=0;for(var ct=hi(He);++De>>1,At=A[ct];At!==null&&!Fl(At)&&(ie?At<=H:At=t){var Di=H?null:Ete(A);if(Di)return Eh(Di);At=!1,He=zu,Kt=new id}else Kt=H?[]:jt;e:for(;++De=De?A:Kl(A,H,ie)}var LA=ree||function(A){return vr.clearTimeout(A)};function VA(A,H){if(H)return A.slice();var ie=A.length,De=rA?rA(ie):new A.constructor(ie);return A.copy(De),De}function tT(A){var H=new A.constructor(A.byteLength);return new Bh(H).set(new Bh(A)),H}function xte(A,H){var ie=H?tT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.byteLength)}function bte(A){var H=new A.constructor(A.source,nn.exec(A));return H.lastIndex=A.lastIndex,H}function yte(A){return Uu?ia(Uu.call(A)):{}}function qA(A,H){var ie=H?tT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.length)}function zA(A,H){if(A!==H){var ie=A!==e,De=A===null,He=A===A,ct=Fl(A),At=H!==e,jt=H===null,Kt=H===H,Di=Fl(H);if(!jt&&!Di&&!ct&&A>H||ct&&At&&Kt&&!jt&&!Di||De&&At&&Kt||!ie&&Kt||!He)return 1;if(!De&&!ct&&!Di&&A=jt)return Kt;var Di=ie[De];return Kt*(Di=="desc"?-1:1)}}return A.index-H.index}function HA(A,H,ie,De){for(var He=-1,ct=A.length,At=ie.length,jt=-1,Kt=H.length,Di=ur(ct-At,0),Ii=hi(Kt+Di),Bi=!De;++jt1?ie[He-1]:e,At=He>2?ie[2]:e;for(ct=A.length>3&&typeof ct=="function"?(He--,ct):e,At&&nl(ie[0],ie[1],At)&&(ct=He<3?e:ct,He=1),H=ia(H);++De-1?He[ct?H[At]:At]:e}}function QA(A){return Dc(function(H){var ie=H.length,De=ie,He=Yl.prototype.thru;for(A&&H.reverse();De--;){var ct=H[De];if(typeof ct!="function")throw new Ql(i);if(He&&!At&&tg(ct)=="wrapper")var At=new Yl([],!0)}for(De=At?De:ie;++De1&&Do.reverse(),Ii&&Ktjt))return!1;var Di=ct.get(A),Ii=ct.get(H);if(Di&&Ii)return Di==H&&Ii==A;var Bi=-1,Zi=!0,Cn=ie&P?new id:e;for(ct.set(A,H),ct.set(H,A);++Bi1?"& ":"")+H[De],H=H.join(ie>2?", ":" "),A.replace(_i,`{ +import{a as JF,b as Rk,c as Ea,d as Xg,e as li,f as Nk}from"./chunk-NJLK6VFK.js";import{a as lr,b as BT,c as RT,d as pf}from"./chunk-TV7M7AUH.js";import{$ as hg,$a as Bc,$b as NF,$d as vi,$e as ri,$f as go,A as fl,Aa as vF,Ab as bg,Ac as Fg,Ad as x0,Ae as Pp,Af as Qr,Ag as kk,B as rf,Ba as xF,Bb as DF,Bc as eo,Bd as Be,Be as Tp,Bf as Nr,C as Rl,Ca as Cg,Cb as yg,Cc as Po,Cd as ut,Ce as ck,Cf as nr,Cg as Jg,D as Eo,Da as X,Db as xp,Dc as Ht,Dd as qa,De as Za,Df as or,Dg as ta,E as Fo,Ea as Z,Eb as Sg,Ec as Un,Ed as b0,Ee as er,Ef as ar,Eg as as,F as sF,Fa as gl,Fb as ue,Fc as Wn,Fd as ai,Fe as Mp,Ff as vk,Fg as To,G as Re,Ga as Y,Gb as Nl,Gc as ho,Gd as Fe,Ge as Dp,Gf as xk,Gg as rs,H as Hi,Ha as bF,Hb as EF,Hc as Nn,Hd as Ln,He as Pr,Hf as zg,Hg as Kg,I as u0,Ia as R,Ib as IF,Ic as kg,Id as ze,Ie as Tr,If as P0,Ig as Bk,J as hl,Ja as w,Jb as OF,Jc as HF,Jd as ft,Je as oc,Jf as T0,K as T,Ka as yF,Kb as wg,Kc as GF,Kd as gr,Ke as Mr,Kf as Hg,Kg as oo,L as V,La as SF,Lb as Pg,Lc as yi,Ld as gt,Le as Dr,Lf as bk,M as q,Ma as g0,Mb as AF,Mc as he,Md as ca,Me as vl,Mf as Gg,N as na,Na as Ee,Nc as yp,Nd as si,Ne as Vo,Nf as M0,O as cF,Oa as Te,Ob as rn,Oc as un,Od as pi,Oe as Ep,Of as D0,P as Cp,Pa as Me,Pb as AT,Pc as jF,Pd as mi,Pe as pa,Pf as yk,Q as pF,Qa as ve,Qb as FF,Qc as Ur,Qd as di,Qe as kt,Qf as Sk,R as mF,Ra as vp,Rb as ko,Rc as Zt,Rd as fi,Re as pk,Rf as jg,S as dF,Sa as _l,Sb as bp,Sc as Ot,Sd as Pi,Se as w0,Sf as wk,T as Uo,Ta as wF,Tb as kF,Tc as cf,Td as ki,Te as ns,Tf as Pk,U as fg,Ua as c,Ub as BF,Uc as Wo,Ud as Ke,Ue as tr,Uf as Da,V as lf,Va as h,Vb as RF,Vc as $F,Vd as YF,Ve as ir,Vf as os,W as uF,Wa as v,Wb as Zs,Wc as st,Wd as KF,We as mk,Wf as ac,X as OT,Xa as le,Xb as wo,Xc as ce,Xd as ke,Xe as dk,Xf as $g,Y as fF,Ya as ea,Yb as Es,Yc as $e,Yd as Rg,Ye as uk,Yf as Yr,Z as hF,Za as PF,Zb as Sr,Zc as Xe,Ze as Ip,Zf as Qn,_ as f0,_a as kc,_b as fr,_c as Is,_d as an,_e as It,_f as In,a as nf,aa as gF,ab as Rc,ac as Lo,ad as it,ae as y0,af as fk,ag as po,b as of,ba as h0,bb as Le,bc as Ua,bd as Sp,be as wp,bf as ma,bg as ha,c as Rr,ca as a,cb as _0,cc as hr,cd as tt,ce as ii,cf as da,cg as Oi,d as Ra,da as bi,db as vg,dc as ud,dd as tn,de as Ri,df as ua,dg as On,e as K7,ea as pd,eb as oe,ec as Tg,ed as _n,ee as Ng,ef as fa,eg as Tk,f as X7,fa as _F,fb as Nt,fc as sf,fd as Ze,fe as Lg,ff as Ji,g as Z7,ga as CF,gb as Ja,gc as Mg,gd as la,ge as tc,gf as qi,gg as E0,h as af,ha as gg,hb as p,hc as Ie,hd as La,he as ic,hf as _t,hg as Mk,i as sd,ia as Zo,ib as m,ic as ra,id as et,ie as nc,if as Ct,ig as Dk,j as eF,ja as me,jb as Ft,jc as Dg,jd as UF,je as XF,jf as vt,jg as Ek,k as Mn,ka as Gi,kb as yr,kc as qe,kd as Xa,ke as ZF,kg as Ik,l as tF,la as md,lb as $t,lc as Oe,ld as dt,le as ek,lf as xt,lg as Ug,m as iF,ma as _g,mb as ti,mc as Na,md as Bg,me as S0,mf as bt,mg as Ok,n as d0,na as F,nb as es,nc as gn,nd as Va,ne as Yo,ng as Ak,o as cd,oa as br,ob as TF,oc as Eg,od as WF,oe as Vg,of as yt,og as Wg,p as nF,pa as Dn,pb as C0,pc as Ig,pd as nt,pe as tk,pf as St,pg as Er,q as ul,qa as dd,qb as co,qc as wi,qd as ec,qe as ik,qg as rr,r as Fc,ra as E,rb as ts,rc as xe,rd as fe,re as wr,rf as wt,rg as vn,s as ug,sa as I,sb as Js,sc as Og,sd as Ue,se as qg,sf as Pt,sg as $i,t as Oo,ta as Pe,tb as Ks,tc as FT,td as Qo,te as nk,tg as Qg,u as oF,ua as Se,ub as Xs,uc as LF,ud as Wr,ue as ok,uf as Tt,ug as Ir,v as Ao,va as we,vb as is,vc as VF,vd as Je,ve as ak,vf as hk,w as Ys,wa as g,wb as MF,wc as kT,wd as Cl,we as rk,wf as gk,wg as Fk,x as aF,xa as l,xb as Ka,xc as Ag,xd as Et,xe as lk,xf as Wt,xg as Ui,y as rF,ya as r,yb as xg,yc as qF,yd as sa,ye as sk,yf as _k,yg as Yg,z as lF,za as b,zb as v0,zc as zF,zd as QF,ze as Os,zf as Ck,zg as rc}from"./chunk-BJA4FJSH.js";import{a as at,b as qt,c as Ms,d as Y7,e as pt,f as ET,g as Ds,h as qn,i as IT,j as J7,k as dg}from"./chunk-PHUH23IY.js";var vd=pt((k0,vf)=>{(function(){var e,o="4.17.21",t=200,n="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",s="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",_=1,C=2,x=4,y=1,P=2,S=1,M=2,D=4,k=8,z=16,U=32,J=64,re=128,ee=256,ae=512,se=30,_e="...",de=800,j=16,W=1,pe=2,O=3,B=1/0,L=9007199254740991,N=17976931348623157e292,G=NaN,$=4294967295,ne=$-1,be=$>>>1,ye=[["ary",re],["bind",S],["bindKey",M],["curry",k],["curryRight",z],["flip",ae],["partial",U],["partialRight",J],["rearg",ee]],Ne="[object Arguments]",te="[object Array]",Ae="[object AsyncFunction]",K="[object Boolean]",Q="[object Date]",Ce="[object DOMException]",Ve="[object Error]",mt="[object Function]",Ye="[object GeneratorFunction]",rt="[object Map]",Qt="[object Number]",zt="[object Null]",Qe="[object Object]",Vt="[object Promise]",Bt="[object Proxy]",Ut="[object RegExp]",Jt="[object Set]",ei="[object String]",ni="[object Symbol]",Ei="[object Undefined]",Ai="[object WeakMap]",Ni="[object WeakSet]",cn="[object ArrayBuffer]",ji="[object DataView]",Ki="[object Float32Array]",Xn="[object Float64Array]",fn="[object Int8Array]",Xi="[object Int16Array]",hn="[object Int32Array]",zi="[object Uint8Array]",Li="[object Uint8ClampedArray]",Yn="[object Uint16Array]",sn="[object Uint32Array]",bn=/\b__p \+= '';/g,El=/\b(__p \+=) '' \+/g,xn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,wn=/&(?:amp|lt|gt|quot|#39);/g,Oa=/[&<>"']/g,zn=RegExp(wn.source),Hn=RegExp(Oa.source),Zr=/<%-([\s\S]+?)%>/g,En=/<%([\s\S]+?)%>/g,Pn=/<%=([\s\S]+?)%>/g,cr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Vn=/^\w*$/,Tn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,el=/[\\^$.*+?()[\]{}|]/g,Gn=RegExp(el.source),Rt=/^\s+/,ui=/\s/,_i=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Fi=/\{\n\/\* \[wrapped with (.+)\] \*/,yo=/,? & /,Yi=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ln=/[()=,{}\[\]\/\s]/,qo=/\\(\\)?/g,yn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nn=/\w*$/,Ro=/^[-+]0x[0-9a-f]+$/i,ro=/^0b[01]+$/i,lo=/^\[object .+?Constructor\]$/,Go=/^0o[0-7]+$/i,Pa=/^(?:0|[1-9]\d*)$/,Qa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,pr=/($^)/,Ga=/['\n\r\u2028\u2029\\]/g,Ya="\\ud800-\\udfff",ht="\\u0300-\\u036f",oi="\\ufe20-\\ufe2f",Mi="\\u20d0-\\u20ff",xi=ht+oi+Mi,Vi="\\u2700-\\u27bf",pn="a-z\\xdf-\\xf6\\xf8-\\xff",dn="\\xac\\xb1\\xd7\\xf7",mo="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",jn="\\u2000-\\u206f",An=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",$n="A-Z\\xc0-\\xd6\\xd8-\\xde",va="\\ufe0e\\ufe0f",Ta=dn+mo+jn+An,Mo="['\u2019]",jo="["+Ya+"]",mr="["+Ta+"]",kr="["+xi+"]",tl="\\d+",jl="["+Vi+"]",Gs="["+pn+"]",Ym="[^"+Ya+Ta+tl+Vi+pn+$n+"]",js="\\ud83c[\\udffb-\\udfff]",Io="(?:"+kr+"|"+js+")",No="[^"+Ya+"]",Jm="(?:\\ud83c[\\udde6-\\uddff]){2}",xs="[\\ud800-\\udbff][\\udc00-\\udfff]",bs="["+$n+"]",Gr="\\u200d",$l="(?:"+Gs+"|"+Ym+")",$s="(?:"+bs+"|"+Ym+")",lp="(?:"+Mo+"(?:d|ll|m|re|s|t|ve))?",Km="(?:"+Mo+"(?:D|LL|M|RE|S|T|VE))?",Sc=Io+"?",ys="["+va+"]?",Ph="(?:"+Gr+"(?:"+[No,Jm,xs].join("|")+")"+ys+Sc+")*",Jd="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",qu="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Xm=ys+Sc+Ph,Kd="(?:"+[jl,Jm,xs].join("|")+")"+Xm,Th="(?:"+[No+kr+"?",kr,Jm,xs,jo].join("|")+")",Xd=RegExp(Mo,"g"),Zd=RegExp(kr,"g"),SP=RegExp(js+"(?="+js+")|"+Th+Xm,"g"),CZ=RegExp([bs+"?"+Gs+"+"+lp+"(?="+[mr,bs,"$"].join("|")+")",$s+"+"+Km+"(?="+[mr,bs+$l,"$"].join("|")+")",bs+"?"+$l+"+"+lp,bs+"+"+Km,qu,Jd,tl,Kd].join("|"),"g"),vZ=RegExp("["+Gr+Ya+xi+va+"]"),xZ=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,bZ=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],yZ=-1,xa={};xa[Ki]=xa[Xn]=xa[fn]=xa[Xi]=xa[hn]=xa[zi]=xa[Li]=xa[Yn]=xa[sn]=!0,xa[Ne]=xa[te]=xa[cn]=xa[K]=xa[ji]=xa[Q]=xa[Ve]=xa[mt]=xa[rt]=xa[Qt]=xa[Qe]=xa[Ut]=xa[Jt]=xa[ei]=xa[Ai]=!1;var aa={};aa[Ne]=aa[te]=aa[cn]=aa[ji]=aa[K]=aa[Q]=aa[Ki]=aa[Xn]=aa[fn]=aa[Xi]=aa[hn]=aa[rt]=aa[Qt]=aa[Qe]=aa[Ut]=aa[Jt]=aa[ei]=aa[ni]=aa[zi]=aa[Li]=aa[Yn]=aa[sn]=!0,aa[Ve]=aa[mt]=aa[Ai]=!1;var SZ={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},wZ={"&":"&","<":"<",">":">",'"':""","'":"'"},PZ={"&":"&","<":"<",">":">",""":'"',"'":"'"},TZ={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},MZ=parseFloat,DZ=parseInt,HO=typeof global=="object"&&global&&global.Object===Object&&global,EZ=typeof self=="object"&&self&&self.Object===Object&&self,vr=HO||EZ||Function("return this")(),wP=typeof k0=="object"&&k0&&!k0.nodeType&&k0,Zm=wP&&typeof vf=="object"&&vf&&!vf.nodeType&&vf,GO=Zm&&Zm.exports===wP,PP=GO&&HO.process,Ul=(function(){try{var Yt=Zm&&Zm.require&&Zm.require("util").types;return Yt||PP&&PP.binding&&PP.binding("util")}catch{}})(),jO=Ul&&Ul.isArrayBuffer,$O=Ul&&Ul.isDate,UO=Ul&&Ul.isMap,WO=Ul&&Ul.isRegExp,QO=Ul&&Ul.isSet,YO=Ul&&Ul.isTypedArray;function Il(Yt,Si,hi){switch(hi.length){case 0:return Yt.call(Si);case 1:return Yt.call(Si,hi[0]);case 2:return Yt.call(Si,hi[0],hi[1]);case 3:return Yt.call(Si,hi[0],hi[1],hi[2])}return Yt.apply(Si,hi)}function IZ(Yt,Si,hi,mn){for(var Zn=-1,zo=Yt==null?0:Yt.length;++Zn-1}function TP(Yt,Si,hi){for(var mn=-1,Zn=Yt==null?0:Yt.length;++mn-1;);return hi}function nA(Yt,Si){for(var hi=Yt.length;hi--&&e0(Si,Yt[hi],0)>-1;);return hi}function VZ(Yt,Si){for(var hi=Yt.length,mn=0;hi--;)Yt[hi]===Si&&++mn;return mn}var qZ=IP(SZ),zZ=IP(wZ);function HZ(Yt){return"\\"+TZ[Yt]}function GZ(Yt,Si){return Yt==null?e:Yt[Si]}function t0(Yt){return vZ.test(Yt)}function jZ(Yt){return xZ.test(Yt)}function $Z(Yt){for(var Si,hi=[];!(Si=Yt.next()).done;)hi.push(Si.value);return hi}function kP(Yt){var Si=-1,hi=Array(Yt.size);return Yt.forEach(function(mn,Zn){hi[++Si]=[Zn,mn]}),hi}function oA(Yt,Si){return function(hi){return Yt(Si(hi))}}function pp(Yt,Si){for(var hi=-1,mn=Yt.length,Zn=0,zo=[];++hi-1}function Aee(A,H){var ie=this.__data__,De=jh(ie,A);return De<0?(++this.size,ie.push([A,H])):ie[De][1]=H,this}wc.prototype.clear=Dee,wc.prototype.delete=Eee,wc.prototype.get=Iee,wc.prototype.has=Oee,wc.prototype.set=Aee;function Pc(A){var H=-1,ie=A==null?0:A.length;for(this.clear();++H=H?A:H)),A}function Jl(A,H,ie,De,He,ct){var At,jt=H&_,Kt=H&C,Di=H&x;if(ie&&(At=He?ie(A,De,He,ct):ie(A)),At!==e)return At;if(!Aa(A))return A;var Ii=no(A);if(Ii){if(At=Rte(A),!jt)return cl(A,At)}else{var Bi=$r(A),Zi=Bi==mt||Bi==Ye;if(_p(A))return qA(A,jt);if(Bi==Qe||Bi==Ne||Zi&&!He){if(At=Kt||Zi?{}:a7(A),!jt)return Kt?Pte(A,Qee(At,A)):wte(A,gA(At,A))}else{if(!aa[Bi])return He?A:{};At=Nte(A,Bi,jt)}}ct||(ct=new ws);var Cn=ct.get(A);if(Cn)return Cn;ct.set(A,At),k7(A)?A.forEach(function(Rn){At.add(Jl(Rn,H,ie,Rn,A,ct))}):A7(A)&&A.forEach(function(Rn,xo){At.set(xo,Jl(Rn,H,ie,xo,A,ct))});var Bn=Di?Kt?rT:aT:Kt?ml:xr,so=Ii?e:Bn(A);return Wl(so||A,function(Rn,xo){so&&(xo=Rn,Rn=A[xo]),Wu(At,xo,Jl(Rn,H,ie,xo,A,ct))}),At}function Yee(A){var H=xr(A);return function(ie){return _A(ie,A,H)}}function _A(A,H,ie){var De=ie.length;if(A==null)return!De;for(A=ia(A);De--;){var He=ie[De],ct=H[He],At=A[He];if(At===e&&!(He in A)||!ct(At))return!1}return!0}function CA(A,H,ie){if(typeof A!="function")throw new Ql(i);return ef(function(){A.apply(e,ie)},H)}function Qu(A,H,ie,De){var He=-1,ct=Mh,At=!0,jt=A.length,Kt=[],Di=H.length;if(!jt)return Kt;ie&&(H=Ma(H,Ol(ie))),De?(ct=TP,At=!1):H.length>=t&&(ct=zu,At=!1,H=new id(H));e:for(;++HeHe?0:He+ie),De=De===e||De>He?He:ao(De),De<0&&(De+=He),De=ie>De?0:R7(De);ie0&&ie(jt)?H>1?Br(jt,H-1,ie,De,He):cp(He,jt):De||(He[He.length]=jt)}return He}var zP=UA(),bA=UA(!0);function Us(A,H){return A&&zP(A,H,xr)}function HP(A,H){return A&&bA(A,H,xr)}function Uh(A,H){return sp(H,function(ie){return Ic(A[ie])})}function od(A,H){H=hp(H,A);for(var ie=0,De=H.length;A!=null&&ieH}function Xee(A,H){return A!=null&&Xo.call(A,H)}function Zee(A,H){return A!=null&&H in ia(A)}function ete(A,H,ie){return A>=jr(H,ie)&&A=120&&Ii.length>=120)?new id(At&&Ii):e}Ii=A[0];var Bi=-1,Zi=jt[0];e:for(;++Bi-1;)jt!==A&&Nh.call(jt,Kt,1),Nh.call(A,Kt,1);return A}function AA(A,H){for(var ie=A?H.length:0,De=ie-1;ie--;){var He=H[ie];if(ie==De||He!==ct){var ct=He;Ec(He)?Nh.call(A,He,1):XP(A,He)}}return A}function YP(A,H){return A+qh(dA()*(H-A+1))}function ute(A,H,ie,De){for(var He=-1,ct=ur(Vh((H-A)/(ie||1)),0),At=hi(ct);ct--;)At[De?ct:++He]=A,A+=ie;return At}function JP(A,H){var ie="";if(!A||H<1||H>L)return ie;do H%2&&(ie+=A),H=qh(H/2),H&&(A+=A);while(H);return ie}function uo(A,H){return uT(s7(A,H,dl),A+"")}function fte(A){return hA(m0(A))}function hte(A,H){var ie=m0(A);return ng(ie,nd(H,0,ie.length))}function Ku(A,H,ie,De){if(!Aa(A))return A;H=hp(H,A);for(var He=-1,ct=H.length,At=ct-1,jt=A;jt!=null&&++HeHe?0:He+H),ie=ie>He?He:ie,ie<0&&(ie+=He),He=H>ie?0:ie-H>>>0,H>>>=0;for(var ct=hi(He);++De>>1,At=A[ct];At!==null&&!Fl(At)&&(ie?At<=H:At=t){var Di=H?null:Ete(A);if(Di)return Eh(Di);At=!1,He=zu,Kt=new id}else Kt=H?[]:jt;e:for(;++De=De?A:Kl(A,H,ie)}var VA=ree||function(A){return vr.clearTimeout(A)};function qA(A,H){if(H)return A.slice();var ie=A.length,De=lA?lA(ie):new A.constructor(ie);return A.copy(De),De}function iT(A){var H=new A.constructor(A.byteLength);return new Bh(H).set(new Bh(A)),H}function xte(A,H){var ie=H?iT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.byteLength)}function bte(A){var H=new A.constructor(A.source,nn.exec(A));return H.lastIndex=A.lastIndex,H}function yte(A){return Uu?ia(Uu.call(A)):{}}function zA(A,H){var ie=H?iT(A.buffer):A.buffer;return new A.constructor(ie,A.byteOffset,A.length)}function HA(A,H){if(A!==H){var ie=A!==e,De=A===null,He=A===A,ct=Fl(A),At=H!==e,jt=H===null,Kt=H===H,Di=Fl(H);if(!jt&&!Di&&!ct&&A>H||ct&&At&&Kt&&!jt&&!Di||De&&At&&Kt||!ie&&Kt||!He)return 1;if(!De&&!ct&&!Di&&A=jt)return Kt;var Di=ie[De];return Kt*(Di=="desc"?-1:1)}}return A.index-H.index}function GA(A,H,ie,De){for(var He=-1,ct=A.length,At=ie.length,jt=-1,Kt=H.length,Di=ur(ct-At,0),Ii=hi(Kt+Di),Bi=!De;++jt1?ie[He-1]:e,At=He>2?ie[2]:e;for(ct=A.length>3&&typeof ct=="function"?(He--,ct):e,At&&nl(ie[0],ie[1],At)&&(ct=He<3?e:ct,He=1),H=ia(H);++De-1?He[ct?H[At]:At]:e}}function YA(A){return Dc(function(H){var ie=H.length,De=ie,He=Yl.prototype.thru;for(A&&H.reverse();De--;){var ct=H[De];if(typeof ct!="function")throw new Ql(i);if(He&&!At&&tg(ct)=="wrapper")var At=new Yl([],!0)}for(De=At?De:ie;++De1&&Do.reverse(),Ii&&Ktjt))return!1;var Di=ct.get(A),Ii=ct.get(H);if(Di&&Ii)return Di==H&&Ii==A;var Bi=-1,Zi=!0,Cn=ie&P?new id:e;for(ct.set(A,H),ct.set(H,A);++Bi1?"& ":"")+H[De],H=H.join(ie>2?", ":" "),A.replace(_i,`{ /* [wrapped with `+H+`] */ -`)}function Vte(A){return no(A)||ld(A)||!!(cA&&A&&A[cA])}function Ec(A,H){var ie=typeof A;return H=H??L,!!H&&(ie=="number"||ie!="symbol"&&Pa.test(A))&&A>-1&&A%1==0&&A0){if(++H>=de)return arguments[0]}else H=0;return A.apply(e,arguments)}}function ng(A,H){var ie=-1,De=A.length,He=De-1;for(H=H===e?De:H;++ie1?A[H-1]:e;return ie=typeof ie=="function"?(A.pop(),ie):e,v7(A,ie)});function x7(A){var H=ot(A);return H.__chain__=!0,H}function Jie(A,H){return H(A),A}function og(A,H){return H(A)}var Kie=Dc(function(A){var H=A.length,ie=H?A[0]:0,De=this.__wrapped__,He=function(ct){return VP(ct,A)};return H>1||this.__actions__.length||!(De instanceof So)||!Ec(ie)?this.thru(He):(De=De.slice(ie,+ie+(H?1:0)),De.__actions__.push({func:og,args:[He],thisArg:e}),new Yl(De,this.__chain__).thru(function(ct){return H&&!ct.length&&ct.push(e),ct}))});function Xie(){return x7(this)}function Zie(){return new Yl(this.value(),this.__chain__)}function ene(){this.__values__===e&&(this.__values__=k7(this.value()));var A=this.__index__>=this.__values__.length,H=A?e:this.__values__[this.__index__++];return{done:A,value:H}}function tne(){return this}function ine(A){for(var H,ie=this;ie instanceof Gh;){var De=u7(ie);De.__index__=0,De.__values__=e,H?He.__wrapped__=De:H=De;var He=De;ie=ie.__wrapped__}return He.__wrapped__=A,H}function nne(){var A=this.__wrapped__;if(A instanceof So){var H=A;return this.__actions__.length&&(H=new So(this)),H=H.reverse(),H.__actions__.push({func:og,args:[uT],thisArg:e}),new Yl(H,this.__chain__)}return this.thru(uT)}function one(){return RA(this.__wrapped__,this.__actions__)}var ane=Jh(function(A,H,ie){Xo.call(A,ie)?++A[ie]:Tc(A,ie,1)});function rne(A,H,ie){var De=no(A)?YO:Jee;return ie&&nl(A,H,ie)&&(H=e),De(A,Fn(H,3))}function lne(A,H){var ie=no(A)?sp:vA;return ie(A,Fn(H,3))}var sne=WA(f7),cne=WA(h7);function pne(A,H){return Br(ag(A,H),1)}function mne(A,H){return Br(ag(A,H),B)}function dne(A,H,ie){return ie=ie===e?1:ao(ie),Br(ag(A,H),ie)}function b7(A,H){var ie=no(A)?Wl:up;return ie(A,Fn(H,3))}function y7(A,H){var ie=no(A)?OZ:CA;return ie(A,Fn(H,3))}var une=Jh(function(A,H,ie){Xo.call(A,ie)?A[ie].push(H):Tc(A,ie,[H])});function fne(A,H,ie,De){A=pl(A)?A:m0(A),ie=ie&&!De?ao(ie):0;var He=A.length;return ie<0&&(ie=ur(He+ie,0)),pg(A)?ie<=He&&A.indexOf(H,ie)>-1:!!He&&e0(A,H,ie)>-1}var hne=uo(function(A,H,ie){var De=-1,He=typeof H=="function",ct=pl(A)?hi(A.length):[];return up(A,function(At){ct[++De]=He?Il(H,At,ie):Yu(At,H,ie)}),ct}),gne=Jh(function(A,H,ie){Tc(A,ie,H)});function ag(A,H){var ie=no(A)?Ma:PA;return ie(A,Fn(H,3))}function _ne(A,H,ie,De){return A==null?[]:(no(H)||(H=H==null?[]:[H]),ie=De?e:ie,no(ie)||(ie=ie==null?[]:[ie]),EA(A,H,ie))}var Cne=Jh(function(A,H,ie){A[ie?0:1].push(H)},function(){return[[],[]]});function vne(A,H,ie){var De=no(A)?TP:ZO,He=arguments.length<3;return De(A,Fn(H,4),ie,He,up)}function xne(A,H,ie){var De=no(A)?AZ:ZO,He=arguments.length<3;return De(A,Fn(H,4),ie,He,CA)}function bne(A,H){var ie=no(A)?sp:vA;return ie(A,sg(Fn(H,3)))}function yne(A){var H=no(A)?fA:fte;return H(A)}function Sne(A,H,ie){(ie?nl(A,H,ie):H===e)?H=1:H=ao(H);var De=no(A)?$ee:hte;return De(A,H)}function wne(A){var H=no(A)?Uee:_te;return H(A)}function Pne(A){if(A==null)return 0;if(pl(A))return pg(A)?i0(A):A.length;var H=$r(A);return H==rt||H==Jt?A.size:$P(A).length}function Tne(A,H,ie){var De=no(A)?MP:Cte;return ie&&nl(A,H,ie)&&(H=e),De(A,Fn(H,3))}var Mne=uo(function(A,H){if(A==null)return[];var ie=H.length;return ie>1&&nl(A,H[0],H[1])?H=[]:ie>2&&nl(H[0],H[1],H[2])&&(H=[H[0]]),EA(A,Br(H,1),[])}),rg=lee||function(){return vr.Date.now()};function Dne(A,H){if(typeof H!="function")throw new Ql(i);return A=ao(A),function(){if(--A<1)return H.apply(this,arguments)}}function S7(A,H,ie){return H=ie?e:H,H=A&&H==null?A.length:H,Mc(A,re,e,e,e,e,H)}function w7(A,H){var ie;if(typeof H!="function")throw new Ql(i);return A=ao(A),function(){return--A>0&&(ie=H.apply(this,arguments)),A<=1&&(H=e),ie}}var hT=uo(function(A,H,ie){var De=S;if(ie.length){var He=pp(ie,c0(hT));De|=U}return Mc(A,De,H,ie,He)}),P7=uo(function(A,H,ie){var De=S|M;if(ie.length){var He=pp(ie,c0(P7));De|=U}return Mc(H,De,A,ie,He)});function T7(A,H,ie){H=ie?e:H;var De=Mc(A,k,e,e,e,e,e,H);return De.placeholder=T7.placeholder,De}function M7(A,H,ie){H=ie?e:H;var De=Mc(A,z,e,e,e,e,e,H);return De.placeholder=M7.placeholder,De}function D7(A,H,ie){var De,He,ct,At,jt,Kt,Di=0,Ii=!1,Bi=!1,Zi=!0;if(typeof A!="function")throw new Ql(i);H=Zl(H)||0,Aa(ie)&&(Ii=!!ie.leading,Bi="maxWait"in ie,ct=Bi?ur(Zl(ie.maxWait)||0,H):ct,Zi="trailing"in ie?!!ie.trailing:Zi);function Cn($a){var Ts=De,Ac=He;return De=He=e,Di=$a,At=A.apply(Ac,Ts),At}function Bn($a){return Di=$a,jt=ef(xo,H),Ii?Cn($a):At}function so($a){var Ts=$a-Kt,Ac=$a-Di,W7=H-Ts;return Bi?jr(W7,ct-Ac):W7}function Rn($a){var Ts=$a-Kt,Ac=$a-Di;return Kt===e||Ts>=H||Ts<0||Bi&&Ac>=ct}function xo(){var $a=rg();if(Rn($a))return Do($a);jt=ef(xo,so($a))}function Do($a){return jt=e,Zi&&De?Cn($a):(De=He=e,At)}function kl(){jt!==e&&LA(jt),Di=0,De=Kt=He=jt=e}function ol(){return jt===e?At:Do(rg())}function Bl(){var $a=rg(),Ts=Rn($a);if(De=arguments,He=this,Kt=$a,Ts){if(jt===e)return Bn(Kt);if(Bi)return LA(jt),jt=ef(xo,H),Cn(Kt)}return jt===e&&(jt=ef(xo,H)),At}return Bl.cancel=kl,Bl.flush=ol,Bl}var Ene=uo(function(A,H){return _A(A,1,H)}),Ine=uo(function(A,H,ie){return _A(A,Zl(H)||0,ie)});function One(A){return Mc(A,ae)}function lg(A,H){if(typeof A!="function"||H!=null&&typeof H!="function")throw new Ql(i);var ie=function(){var De=arguments,He=H?H.apply(this,De):De[0],ct=ie.cache;if(ct.has(He))return ct.get(He);var At=A.apply(this,De);return ie.cache=ct.set(He,At)||ct,At};return ie.cache=new(lg.Cache||Pc),ie}lg.Cache=Pc;function sg(A){if(typeof A!="function")throw new Ql(i);return function(){var H=arguments;switch(H.length){case 0:return!A.call(this);case 1:return!A.call(this,H[0]);case 2:return!A.call(this,H[0],H[1]);case 3:return!A.call(this,H[0],H[1],H[2])}return!A.apply(this,H)}}function Ane(A){return w7(2,A)}var Fne=vte(function(A,H){H=H.length==1&&no(H[0])?Ma(H[0],Ol(Fn())):Ma(Br(H,1),Ol(Fn()));var ie=H.length;return uo(function(De){for(var He=-1,ct=jr(De.length,ie);++He=H}),ld=yA((function(){return arguments})())?yA:function(A){return Ba(A)&&Xo.call(A,"callee")&&!sA.call(A,"callee")},no=hi.isArray,Qne=GO?Ol(GO):ite;function pl(A){return A!=null&&cg(A.length)&&!Ic(A)}function ja(A){return Ba(A)&&pl(A)}function Yne(A){return A===!0||A===!1||Ba(A)&&il(A)==K}var _p=cee||MT,Jne=jO?Ol(jO):nte;function Kne(A){return Ba(A)&&A.nodeType===1&&!tf(A)}function Xne(A){if(A==null)return!0;if(pl(A)&&(no(A)||typeof A=="string"||typeof A.splice=="function"||_p(A)||p0(A)||ld(A)))return!A.length;var H=$r(A);if(H==rt||H==Jt)return!A.size;if(Zu(A))return!$P(A).length;for(var ie in A)if(Xo.call(A,ie))return!1;return!0}function Zne(A,H){return Ju(A,H)}function eoe(A,H,ie){ie=typeof ie=="function"?ie:e;var De=ie?ie(A,H):e;return De===e?Ju(A,H,e,ie):!!De}function _T(A){if(!Ba(A))return!1;var H=il(A);return H==Ve||H==Ce||typeof A.message=="string"&&typeof A.name=="string"&&!tf(A)}function toe(A){return typeof A=="number"&&pA(A)}function Ic(A){if(!Aa(A))return!1;var H=il(A);return H==mt||H==Ye||H==Ae||H==Bt}function I7(A){return typeof A=="number"&&A==ao(A)}function cg(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=L}function Aa(A){var H=typeof A;return A!=null&&(H=="object"||H=="function")}function Ba(A){return A!=null&&typeof A=="object"}var O7=$O?Ol($O):ate;function ioe(A,H){return A===H||jP(A,H,lT(H))}function noe(A,H,ie){return ie=typeof ie=="function"?ie:e,jP(A,H,lT(H),ie)}function ooe(A){return A7(A)&&A!=+A}function aoe(A){if(Hte(A))throw new Zn(n);return SA(A)}function roe(A){return A===null}function loe(A){return A==null}function A7(A){return typeof A=="number"||Ba(A)&&il(A)==Qt}function tf(A){if(!Ba(A)||il(A)!=Qe)return!1;var H=Rh(A);if(H===null)return!0;var ie=Xo.call(H,"constructor")&&H.constructor;return typeof ie=="function"&&ie instanceof ie&&Ah.call(ie)==nee}var CT=UO?Ol(UO):rte;function soe(A){return I7(A)&&A>=-L&&A<=L}var F7=WO?Ol(WO):lte;function pg(A){return typeof A=="string"||!no(A)&&Ba(A)&&il(A)==ei}function Fl(A){return typeof A=="symbol"||Ba(A)&&il(A)==ni}var p0=QO?Ol(QO):ste;function coe(A){return A===e}function poe(A){return Ba(A)&&$r(A)==Ai}function moe(A){return Ba(A)&&il(A)==Ni}var doe=eg(UP),uoe=eg(function(A,H){return A<=H});function k7(A){if(!A)return[];if(pl(A))return pg(A)?Ss(A):cl(A);if(Hu&&A[Hu])return $Z(A[Hu]());var H=$r(A),ie=H==rt?FP:H==Jt?Eh:m0;return ie(A)}function Oc(A){if(!A)return A===0?A:0;if(A=Zl(A),A===B||A===-B){var H=A<0?-1:1;return H*N}return A===A?A:0}function ao(A){var H=Oc(A),ie=H%1;return H===H?ie?H-ie:H:0}function B7(A){return A?nd(ao(A),0,$):0}function Zl(A){if(typeof A=="number")return A;if(Fl(A))return G;if(Aa(A)){var H=typeof A.valueOf=="function"?A.valueOf():A;A=Aa(H)?H+"":H}if(typeof A!="string")return A===0?A:+A;A=eA(A);var ie=ro.test(A);return ie||Go.test(A)?DZ(A.slice(2),ie?2:8):Ro.test(A)?G:+A}function R7(A){return Ws(A,ml(A))}function foe(A){return A?nd(ao(A),-L,L):A===0?A:0}function $o(A){return A==null?"":Al(A)}var hoe=l0(function(A,H){if(Zu(H)||pl(H)){Ws(H,xr(H),A);return}for(var ie in H)Xo.call(H,ie)&&Wu(A,ie,H[ie])}),N7=l0(function(A,H){Ws(H,ml(H),A)}),mg=l0(function(A,H,ie,De){Ws(H,ml(H),A,De)}),goe=l0(function(A,H,ie,De){Ws(H,xr(H),A,De)}),_oe=Dc(VP);function Coe(A,H){var ie=r0(A);return H==null?ie:hA(ie,H)}var voe=uo(function(A,H){A=ia(A);var ie=-1,De=H.length,He=De>2?H[2]:e;for(He&&nl(H[0],H[1],He)&&(De=1);++ie1),ct}),Ws(A,aT(A),ie),De&&(ie=Jl(ie,_|C|x,Ite));for(var He=H.length;He--;)KP(ie,H[He]);return ie});function Noe(A,H){return V7(A,sg(Fn(H)))}var Loe=Dc(function(A,H){return A==null?{}:mte(A,H)});function V7(A,H){if(A==null)return{};var ie=Ma(aT(A),function(De){return[De]});return H=Fn(H),IA(A,ie,function(De,He){return H(De,He[0])})}function Voe(A,H,ie){H=hp(H,A);var De=-1,He=H.length;for(He||(He=1,A=e);++DeH){var De=A;A=H,H=De}if(ie||A%1||H%1){var He=mA();return jr(A+He*(H-A+MZ("1e-"+((He+"").length-1))),H)}return QP(A,H)}var Joe=s0(function(A,H,ie){return H=H.toLowerCase(),A+(ie?H7(H):H)});function H7(A){return bT($o(A).toLowerCase())}function G7(A){return A=$o(A),A&&A.replace(Qa,qZ).replace(Zd,"")}function Koe(A,H,ie){A=$o(A),H=Al(H);var De=A.length;ie=ie===e?De:nd(ao(ie),0,De);var He=ie;return ie-=H.length,ie>=0&&A.slice(ie,He)==H}function Xoe(A){return A=$o(A),A&&Hn.test(A)?A.replace(Oa,zZ):A}function Zoe(A){return A=$o(A),A&&Gn.test(A)?A.replace(el,"\\$&"):A}var eae=s0(function(A,H,ie){return A+(ie?"-":"")+H.toLowerCase()}),tae=s0(function(A,H,ie){return A+(ie?" ":"")+H.toLowerCase()}),iae=UA("toLowerCase");function nae(A,H,ie){A=$o(A),H=ao(H);var De=H?i0(A):0;if(!H||De>=H)return A;var He=(H-De)/2;return Zh(qh(He),ie)+A+Zh(Vh(He),ie)}function oae(A,H,ie){A=$o(A),H=ao(H);var De=H?i0(A):0;return H&&De>>0,ie?(A=$o(A),A&&(typeof H=="string"||H!=null&&!CT(H))&&(H=Al(H),!H&&t0(A))?gp(Ss(A),0,ie):A.split(H,ie)):[]}var mae=s0(function(A,H,ie){return A+(ie?" ":"")+bT(H)});function dae(A,H,ie){return A=$o(A),ie=ie==null?0:nd(ao(ie),0,A.length),H=Al(H),A.slice(ie,ie+H.length)==H}function uae(A,H,ie){var De=ot.templateSettings;ie&&nl(A,H,ie)&&(H=e),A=$o(A),H=mg({},H,De,ZA);var He=mg({},H.imports,De.imports,ZA),ct=xr(He),At=AP(He,ct),jt,Kt,Di=0,Ii=H.interpolate||pr,Bi="__p += '",Zi=kP((H.escape||pr).source+"|"+Ii.source+"|"+(Ii===Pn?yn:pr).source+"|"+(H.evaluate||pr).source+"|$","g"),Cn="//# sourceURL="+(Xo.call(H,"sourceURL")?(H.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yZ+"]")+` +`)}function Vte(A){return no(A)||ld(A)||!!(pA&&A&&A[pA])}function Ec(A,H){var ie=typeof A;return H=H??L,!!H&&(ie=="number"||ie!="symbol"&&Pa.test(A))&&A>-1&&A%1==0&&A0){if(++H>=de)return arguments[0]}else H=0;return A.apply(e,arguments)}}function ng(A,H){var ie=-1,De=A.length,He=De-1;for(H=H===e?De:H;++ie1?A[H-1]:e;return ie=typeof ie=="function"?(A.pop(),ie):e,x7(A,ie)});function b7(A){var H=ot(A);return H.__chain__=!0,H}function Jie(A,H){return H(A),A}function og(A,H){return H(A)}var Kie=Dc(function(A){var H=A.length,ie=H?A[0]:0,De=this.__wrapped__,He=function(ct){return qP(ct,A)};return H>1||this.__actions__.length||!(De instanceof So)||!Ec(ie)?this.thru(He):(De=De.slice(ie,+ie+(H?1:0)),De.__actions__.push({func:og,args:[He],thisArg:e}),new Yl(De,this.__chain__).thru(function(ct){return H&&!ct.length&&ct.push(e),ct}))});function Xie(){return b7(this)}function Zie(){return new Yl(this.value(),this.__chain__)}function ene(){this.__values__===e&&(this.__values__=B7(this.value()));var A=this.__index__>=this.__values__.length,H=A?e:this.__values__[this.__index__++];return{done:A,value:H}}function tne(){return this}function ine(A){for(var H,ie=this;ie instanceof Gh;){var De=f7(ie);De.__index__=0,De.__values__=e,H?He.__wrapped__=De:H=De;var He=De;ie=ie.__wrapped__}return He.__wrapped__=A,H}function nne(){var A=this.__wrapped__;if(A instanceof So){var H=A;return this.__actions__.length&&(H=new So(this)),H=H.reverse(),H.__actions__.push({func:og,args:[fT],thisArg:e}),new Yl(H,this.__chain__)}return this.thru(fT)}function one(){return NA(this.__wrapped__,this.__actions__)}var ane=Jh(function(A,H,ie){Xo.call(A,ie)?++A[ie]:Tc(A,ie,1)});function rne(A,H,ie){var De=no(A)?JO:Jee;return ie&&nl(A,H,ie)&&(H=e),De(A,Fn(H,3))}function lne(A,H){var ie=no(A)?sp:xA;return ie(A,Fn(H,3))}var sne=QA(h7),cne=QA(g7);function pne(A,H){return Br(ag(A,H),1)}function mne(A,H){return Br(ag(A,H),B)}function dne(A,H,ie){return ie=ie===e?1:ao(ie),Br(ag(A,H),ie)}function y7(A,H){var ie=no(A)?Wl:up;return ie(A,Fn(H,3))}function S7(A,H){var ie=no(A)?OZ:vA;return ie(A,Fn(H,3))}var une=Jh(function(A,H,ie){Xo.call(A,ie)?A[ie].push(H):Tc(A,ie,[H])});function fne(A,H,ie,De){A=pl(A)?A:m0(A),ie=ie&&!De?ao(ie):0;var He=A.length;return ie<0&&(ie=ur(He+ie,0)),pg(A)?ie<=He&&A.indexOf(H,ie)>-1:!!He&&e0(A,H,ie)>-1}var hne=uo(function(A,H,ie){var De=-1,He=typeof H=="function",ct=pl(A)?hi(A.length):[];return up(A,function(At){ct[++De]=He?Il(H,At,ie):Yu(At,H,ie)}),ct}),gne=Jh(function(A,H,ie){Tc(A,ie,H)});function ag(A,H){var ie=no(A)?Ma:TA;return ie(A,Fn(H,3))}function _ne(A,H,ie,De){return A==null?[]:(no(H)||(H=H==null?[]:[H]),ie=De?e:ie,no(ie)||(ie=ie==null?[]:[ie]),IA(A,H,ie))}var Cne=Jh(function(A,H,ie){A[ie?0:1].push(H)},function(){return[[],[]]});function vne(A,H,ie){var De=no(A)?MP:eA,He=arguments.length<3;return De(A,Fn(H,4),ie,He,up)}function xne(A,H,ie){var De=no(A)?AZ:eA,He=arguments.length<3;return De(A,Fn(H,4),ie,He,vA)}function bne(A,H){var ie=no(A)?sp:xA;return ie(A,sg(Fn(H,3)))}function yne(A){var H=no(A)?hA:fte;return H(A)}function Sne(A,H,ie){(ie?nl(A,H,ie):H===e)?H=1:H=ao(H);var De=no(A)?$ee:hte;return De(A,H)}function wne(A){var H=no(A)?Uee:_te;return H(A)}function Pne(A){if(A==null)return 0;if(pl(A))return pg(A)?i0(A):A.length;var H=$r(A);return H==rt||H==Jt?A.size:UP(A).length}function Tne(A,H,ie){var De=no(A)?DP:Cte;return ie&&nl(A,H,ie)&&(H=e),De(A,Fn(H,3))}var Mne=uo(function(A,H){if(A==null)return[];var ie=H.length;return ie>1&&nl(A,H[0],H[1])?H=[]:ie>2&&nl(H[0],H[1],H[2])&&(H=[H[0]]),IA(A,Br(H,1),[])}),rg=lee||function(){return vr.Date.now()};function Dne(A,H){if(typeof H!="function")throw new Ql(i);return A=ao(A),function(){if(--A<1)return H.apply(this,arguments)}}function w7(A,H,ie){return H=ie?e:H,H=A&&H==null?A.length:H,Mc(A,re,e,e,e,e,H)}function P7(A,H){var ie;if(typeof H!="function")throw new Ql(i);return A=ao(A),function(){return--A>0&&(ie=H.apply(this,arguments)),A<=1&&(H=e),ie}}var gT=uo(function(A,H,ie){var De=S;if(ie.length){var He=pp(ie,c0(gT));De|=U}return Mc(A,De,H,ie,He)}),T7=uo(function(A,H,ie){var De=S|M;if(ie.length){var He=pp(ie,c0(T7));De|=U}return Mc(H,De,A,ie,He)});function M7(A,H,ie){H=ie?e:H;var De=Mc(A,k,e,e,e,e,e,H);return De.placeholder=M7.placeholder,De}function D7(A,H,ie){H=ie?e:H;var De=Mc(A,z,e,e,e,e,e,H);return De.placeholder=D7.placeholder,De}function E7(A,H,ie){var De,He,ct,At,jt,Kt,Di=0,Ii=!1,Bi=!1,Zi=!0;if(typeof A!="function")throw new Ql(i);H=Zl(H)||0,Aa(ie)&&(Ii=!!ie.leading,Bi="maxWait"in ie,ct=Bi?ur(Zl(ie.maxWait)||0,H):ct,Zi="trailing"in ie?!!ie.trailing:Zi);function Cn($a){var Ts=De,Ac=He;return De=He=e,Di=$a,At=A.apply(Ac,Ts),At}function Bn($a){return Di=$a,jt=ef(xo,H),Ii?Cn($a):At}function so($a){var Ts=$a-Kt,Ac=$a-Di,Q7=H-Ts;return Bi?jr(Q7,ct-Ac):Q7}function Rn($a){var Ts=$a-Kt,Ac=$a-Di;return Kt===e||Ts>=H||Ts<0||Bi&&Ac>=ct}function xo(){var $a=rg();if(Rn($a))return Do($a);jt=ef(xo,so($a))}function Do($a){return jt=e,Zi&&De?Cn($a):(De=He=e,At)}function kl(){jt!==e&&VA(jt),Di=0,De=Kt=He=jt=e}function ol(){return jt===e?At:Do(rg())}function Bl(){var $a=rg(),Ts=Rn($a);if(De=arguments,He=this,Kt=$a,Ts){if(jt===e)return Bn(Kt);if(Bi)return VA(jt),jt=ef(xo,H),Cn(Kt)}return jt===e&&(jt=ef(xo,H)),At}return Bl.cancel=kl,Bl.flush=ol,Bl}var Ene=uo(function(A,H){return CA(A,1,H)}),Ine=uo(function(A,H,ie){return CA(A,Zl(H)||0,ie)});function One(A){return Mc(A,ae)}function lg(A,H){if(typeof A!="function"||H!=null&&typeof H!="function")throw new Ql(i);var ie=function(){var De=arguments,He=H?H.apply(this,De):De[0],ct=ie.cache;if(ct.has(He))return ct.get(He);var At=A.apply(this,De);return ie.cache=ct.set(He,At)||ct,At};return ie.cache=new(lg.Cache||Pc),ie}lg.Cache=Pc;function sg(A){if(typeof A!="function")throw new Ql(i);return function(){var H=arguments;switch(H.length){case 0:return!A.call(this);case 1:return!A.call(this,H[0]);case 2:return!A.call(this,H[0],H[1]);case 3:return!A.call(this,H[0],H[1],H[2])}return!A.apply(this,H)}}function Ane(A){return P7(2,A)}var Fne=vte(function(A,H){H=H.length==1&&no(H[0])?Ma(H[0],Ol(Fn())):Ma(Br(H,1),Ol(Fn()));var ie=H.length;return uo(function(De){for(var He=-1,ct=jr(De.length,ie);++He=H}),ld=SA((function(){return arguments})())?SA:function(A){return Ba(A)&&Xo.call(A,"callee")&&!cA.call(A,"callee")},no=hi.isArray,Qne=jO?Ol(jO):ite;function pl(A){return A!=null&&cg(A.length)&&!Ic(A)}function ja(A){return Ba(A)&&pl(A)}function Yne(A){return A===!0||A===!1||Ba(A)&&il(A)==K}var _p=cee||DT,Jne=$O?Ol($O):nte;function Kne(A){return Ba(A)&&A.nodeType===1&&!tf(A)}function Xne(A){if(A==null)return!0;if(pl(A)&&(no(A)||typeof A=="string"||typeof A.splice=="function"||_p(A)||p0(A)||ld(A)))return!A.length;var H=$r(A);if(H==rt||H==Jt)return!A.size;if(Zu(A))return!UP(A).length;for(var ie in A)if(Xo.call(A,ie))return!1;return!0}function Zne(A,H){return Ju(A,H)}function eoe(A,H,ie){ie=typeof ie=="function"?ie:e;var De=ie?ie(A,H):e;return De===e?Ju(A,H,e,ie):!!De}function CT(A){if(!Ba(A))return!1;var H=il(A);return H==Ve||H==Ce||typeof A.message=="string"&&typeof A.name=="string"&&!tf(A)}function toe(A){return typeof A=="number"&&mA(A)}function Ic(A){if(!Aa(A))return!1;var H=il(A);return H==mt||H==Ye||H==Ae||H==Bt}function O7(A){return typeof A=="number"&&A==ao(A)}function cg(A){return typeof A=="number"&&A>-1&&A%1==0&&A<=L}function Aa(A){var H=typeof A;return A!=null&&(H=="object"||H=="function")}function Ba(A){return A!=null&&typeof A=="object"}var A7=UO?Ol(UO):ate;function ioe(A,H){return A===H||$P(A,H,sT(H))}function noe(A,H,ie){return ie=typeof ie=="function"?ie:e,$P(A,H,sT(H),ie)}function ooe(A){return F7(A)&&A!=+A}function aoe(A){if(Hte(A))throw new Zn(n);return wA(A)}function roe(A){return A===null}function loe(A){return A==null}function F7(A){return typeof A=="number"||Ba(A)&&il(A)==Qt}function tf(A){if(!Ba(A)||il(A)!=Qe)return!1;var H=Rh(A);if(H===null)return!0;var ie=Xo.call(H,"constructor")&&H.constructor;return typeof ie=="function"&&ie instanceof ie&&Ah.call(ie)==nee}var vT=WO?Ol(WO):rte;function soe(A){return O7(A)&&A>=-L&&A<=L}var k7=QO?Ol(QO):lte;function pg(A){return typeof A=="string"||!no(A)&&Ba(A)&&il(A)==ei}function Fl(A){return typeof A=="symbol"||Ba(A)&&il(A)==ni}var p0=YO?Ol(YO):ste;function coe(A){return A===e}function poe(A){return Ba(A)&&$r(A)==Ai}function moe(A){return Ba(A)&&il(A)==Ni}var doe=eg(WP),uoe=eg(function(A,H){return A<=H});function B7(A){if(!A)return[];if(pl(A))return pg(A)?Ss(A):cl(A);if(Hu&&A[Hu])return $Z(A[Hu]());var H=$r(A),ie=H==rt?kP:H==Jt?Eh:m0;return ie(A)}function Oc(A){if(!A)return A===0?A:0;if(A=Zl(A),A===B||A===-B){var H=A<0?-1:1;return H*N}return A===A?A:0}function ao(A){var H=Oc(A),ie=H%1;return H===H?ie?H-ie:H:0}function R7(A){return A?nd(ao(A),0,$):0}function Zl(A){if(typeof A=="number")return A;if(Fl(A))return G;if(Aa(A)){var H=typeof A.valueOf=="function"?A.valueOf():A;A=Aa(H)?H+"":H}if(typeof A!="string")return A===0?A:+A;A=tA(A);var ie=ro.test(A);return ie||Go.test(A)?DZ(A.slice(2),ie?2:8):Ro.test(A)?G:+A}function N7(A){return Ws(A,ml(A))}function foe(A){return A?nd(ao(A),-L,L):A===0?A:0}function $o(A){return A==null?"":Al(A)}var hoe=l0(function(A,H){if(Zu(H)||pl(H)){Ws(H,xr(H),A);return}for(var ie in H)Xo.call(H,ie)&&Wu(A,ie,H[ie])}),L7=l0(function(A,H){Ws(H,ml(H),A)}),mg=l0(function(A,H,ie,De){Ws(H,ml(H),A,De)}),goe=l0(function(A,H,ie,De){Ws(H,xr(H),A,De)}),_oe=Dc(qP);function Coe(A,H){var ie=r0(A);return H==null?ie:gA(ie,H)}var voe=uo(function(A,H){A=ia(A);var ie=-1,De=H.length,He=De>2?H[2]:e;for(He&&nl(H[0],H[1],He)&&(De=1);++ie1),ct}),Ws(A,rT(A),ie),De&&(ie=Jl(ie,_|C|x,Ite));for(var He=H.length;He--;)XP(ie,H[He]);return ie});function Noe(A,H){return q7(A,sg(Fn(H)))}var Loe=Dc(function(A,H){return A==null?{}:mte(A,H)});function q7(A,H){if(A==null)return{};var ie=Ma(rT(A),function(De){return[De]});return H=Fn(H),OA(A,ie,function(De,He){return H(De,He[0])})}function Voe(A,H,ie){H=hp(H,A);var De=-1,He=H.length;for(He||(He=1,A=e);++DeH){var De=A;A=H,H=De}if(ie||A%1||H%1){var He=dA();return jr(A+He*(H-A+MZ("1e-"+((He+"").length-1))),H)}return YP(A,H)}var Joe=s0(function(A,H,ie){return H=H.toLowerCase(),A+(ie?G7(H):H)});function G7(A){return yT($o(A).toLowerCase())}function j7(A){return A=$o(A),A&&A.replace(Qa,qZ).replace(Zd,"")}function Koe(A,H,ie){A=$o(A),H=Al(H);var De=A.length;ie=ie===e?De:nd(ao(ie),0,De);var He=ie;return ie-=H.length,ie>=0&&A.slice(ie,He)==H}function Xoe(A){return A=$o(A),A&&Hn.test(A)?A.replace(Oa,zZ):A}function Zoe(A){return A=$o(A),A&&Gn.test(A)?A.replace(el,"\\$&"):A}var eae=s0(function(A,H,ie){return A+(ie?"-":"")+H.toLowerCase()}),tae=s0(function(A,H,ie){return A+(ie?" ":"")+H.toLowerCase()}),iae=WA("toLowerCase");function nae(A,H,ie){A=$o(A),H=ao(H);var De=H?i0(A):0;if(!H||De>=H)return A;var He=(H-De)/2;return Zh(qh(He),ie)+A+Zh(Vh(He),ie)}function oae(A,H,ie){A=$o(A),H=ao(H);var De=H?i0(A):0;return H&&De>>0,ie?(A=$o(A),A&&(typeof H=="string"||H!=null&&!vT(H))&&(H=Al(H),!H&&t0(A))?gp(Ss(A),0,ie):A.split(H,ie)):[]}var mae=s0(function(A,H,ie){return A+(ie?" ":"")+yT(H)});function dae(A,H,ie){return A=$o(A),ie=ie==null?0:nd(ao(ie),0,A.length),H=Al(H),A.slice(ie,ie+H.length)==H}function uae(A,H,ie){var De=ot.templateSettings;ie&&nl(A,H,ie)&&(H=e),A=$o(A),H=mg({},H,De,e7);var He=mg({},H.imports,De.imports,e7),ct=xr(He),At=FP(He,ct),jt,Kt,Di=0,Ii=H.interpolate||pr,Bi="__p += '",Zi=BP((H.escape||pr).source+"|"+Ii.source+"|"+(Ii===Pn?yn:pr).source+"|"+(H.evaluate||pr).source+"|$","g"),Cn="//# sourceURL="+(Xo.call(H,"sourceURL")?(H.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++yZ+"]")+` `;A.replace(Zi,function(Rn,xo,Do,kl,ol,Bl){return Do||(Do=kl),Bi+=A.slice(Di,Bl).replace(Ga,HZ),xo&&(jt=!0,Bi+=`' + __e(`+xo+`) + '`),ol&&(Kt=!0,Bi+=`'; @@ -17,7 +17,7 @@ __p += '`),Do&&(Bi+=`' + function print() { __p += __j.call(arguments, '') } `:`; `)+Bi+`return __p -}`;var so=$7(function(){return zo(ct,Cn+"return "+Bi).apply(e,At)});if(so.source=Bi,_T(so))throw so;return so}function fae(A){return $o(A).toLowerCase()}function hae(A){return $o(A).toUpperCase()}function gae(A,H,ie){if(A=$o(A),A&&(ie||H===e))return eA(A);if(!A||!(H=Al(H)))return A;var De=Ss(A),He=Ss(H),ct=tA(De,He),At=iA(De,He)+1;return gp(De,ct,At).join("")}function _ae(A,H,ie){if(A=$o(A),A&&(ie||H===e))return A.slice(0,oA(A)+1);if(!A||!(H=Al(H)))return A;var De=Ss(A),He=iA(De,Ss(H))+1;return gp(De,0,He).join("")}function Cae(A,H,ie){if(A=$o(A),A&&(ie||H===e))return A.replace(Rt,"");if(!A||!(H=Al(H)))return A;var De=Ss(A),He=tA(De,Ss(H));return gp(De,He).join("")}function vae(A,H){var ie=se,De=_e;if(Aa(H)){var He="separator"in H?H.separator:He;ie="length"in H?ao(H.length):ie,De="omission"in H?Al(H.omission):De}A=$o(A);var ct=A.length;if(t0(A)){var At=Ss(A);ct=At.length}if(ie>=ct)return A;var jt=ie-i0(De);if(jt<1)return De;var Kt=At?gp(At,0,jt).join(""):A.slice(0,jt);if(He===e)return Kt+De;if(At&&(jt+=Kt.length-jt),CT(He)){if(A.slice(jt).search(He)){var Di,Ii=Kt;for(He.global||(He=kP(He.source,$o(nn.exec(He))+"g")),He.lastIndex=0;Di=He.exec(Ii);)var Bi=Di.index;Kt=Kt.slice(0,Bi===e?jt:Bi)}}else if(A.indexOf(Al(He),jt)!=jt){var Zi=Kt.lastIndexOf(He);Zi>-1&&(Kt=Kt.slice(0,Zi))}return Kt+De}function xae(A){return A=$o(A),A&&zn.test(A)?A.replace(wn,YZ):A}var bae=s0(function(A,H,ie){return A+(ie?" ":"")+H.toUpperCase()}),bT=UA("toUpperCase");function j7(A,H,ie){return A=$o(A),H=ie?e:H,H===e?jZ(A)?XZ(A):BZ(A):A.match(H)||[]}var $7=uo(function(A,H){try{return Il(A,e,H)}catch(ie){return _T(ie)?ie:new Zn(ie)}}),yae=Dc(function(A,H){return Wl(H,function(ie){ie=Qs(ie),Tc(A,ie,hT(A[ie],A))}),A});function Sae(A){var H=A==null?0:A.length,ie=Fn();return A=H?Ma(A,function(De){if(typeof De[1]!="function")throw new Ql(i);return[ie(De[0]),De[1]]}):[],uo(function(De){for(var He=-1;++HeL)return[];var ie=$,De=jr(A,$);H=Fn(H),A-=$;for(var He=OP(De,H);++ie0||H<0)?new So(ie):(A<0?ie=ie.takeRight(-A):A&&(ie=ie.drop(A)),H!==e&&(H=ao(H),ie=H<0?ie.dropRight(-H):ie.take(H-A)),ie)},So.prototype.takeRightWhile=function(A){return this.reverse().takeWhile(A).reverse()},So.prototype.toArray=function(){return this.take($)},Us(So.prototype,function(A,H){var ie=/^(?:filter|find|map|reject)|While$/.test(H),De=/^(?:head|last)$/.test(H),He=ot[De?"take"+(H=="last"?"Right":""):H],ct=De||/^find/.test(H);He&&(ot.prototype[H]=function(){var At=this.__wrapped__,jt=De?[1]:arguments,Kt=At instanceof So,Di=jt[0],Ii=Kt||no(At),Bi=function(xo){var Do=He.apply(ot,cp([xo],jt));return De&&Zi?Do[0]:Do};Ii&&ie&&typeof Di=="function"&&Di.length!=1&&(Kt=Ii=!1);var Zi=this.__chain__,Cn=!!this.__actions__.length,Bn=ct&&!Zi,so=Kt&&!Cn;if(!ct&&Ii){At=so?At:new So(this);var Rn=A.apply(At,jt);return Rn.__actions__.push({func:og,args:[Bi],thisArg:e}),new Yl(Rn,Zi)}return Bn&&so?A.apply(this,jt):(Rn=this.thru(Bi),Bn?De?Rn.value()[0]:Rn.value():Rn)})}),Wl(["pop","push","shift","sort","splice","unshift"],function(A){var H=Ih[A],ie=/^(?:push|sort|unshift)$/.test(A)?"tap":"thru",De=/^(?:pop|shift)$/.test(A);ot.prototype[A]=function(){var He=arguments;if(De&&!this.__chain__){var ct=this.value();return H.apply(no(ct)?ct:[],He)}return this[ie](function(At){return H.apply(no(At)?At:[],He)})}}),Us(So.prototype,function(A,H){var ie=ot[H];if(ie){var De=ie.name+"";Xo.call(a0,De)||(a0[De]=[]),a0[De].push({name:H,func:ie})}}),a0[Kh(e,M).name]=[{name:"wrapper",func:e}],So.prototype.clone=xee,So.prototype.reverse=bee,So.prototype.value=yee,ot.prototype.at=Kie,ot.prototype.chain=Xie,ot.prototype.commit=Zie,ot.prototype.next=ene,ot.prototype.plant=ine,ot.prototype.reverse=nne,ot.prototype.toJSON=ot.prototype.valueOf=ot.prototype.value=one,ot.prototype.first=ot.prototype.head,Hu&&(ot.prototype[Hu]=tne),ot},mp=ZZ();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(vr._=mp,define(function(){return mp})):Zm?((Zm.exports=mp)._=mp,SP._=mp):vr._=mp}).call(k0)});var D9=pt(AC=>{"use strict";AC.byteLength=fhe;AC.toByteArray=ghe;AC.fromByteArray=vhe;var hc=[],ms=[],uhe=typeof Uint8Array<"u"?Uint8Array:Array,AM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Dd=0,T9=AM.length;Dd0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=o);var n=t===o?0:4-t%4;return[t,n]}function fhe(e){var o=M9(e),t=o[0],n=o[1];return(t+n)*3/4-n}function hhe(e,o,t){return(o+t)*3/4-t}function ghe(e){var o,t=M9(e),n=t[0],i=t[1],s=new uhe(hhe(e,n,i)),d=0,u=i>0?n-4:n,f;for(f=0;f>16&255,s[d++]=o>>8&255,s[d++]=o&255;return i===2&&(o=ms[e.charCodeAt(f)]<<2|ms[e.charCodeAt(f+1)]>>4,s[d++]=o&255),i===1&&(o=ms[e.charCodeAt(f)]<<10|ms[e.charCodeAt(f+1)]<<4|ms[e.charCodeAt(f+2)]>>2,s[d++]=o>>8&255,s[d++]=o&255),s}function _he(e){return hc[e>>18&63]+hc[e>>12&63]+hc[e>>6&63]+hc[e&63]}function Che(e,o,t){for(var n,i=[],s=o;su?u:d+s));return n===1?(o=e[t-1],i.push(hc[o>>2]+hc[o<<4&63]+"==")):n===2&&(o=(e[t-2]<<8)+e[t-1],i.push(hc[o>>10]+hc[o>>4&63]+hc[o<<2&63]+"=")),i.join("")}});var E9=pt(FM=>{FM.read=function(e,o,t,n,i){var s,d,u=i*8-n-1,f=(1<>1,C=-7,x=t?i-1:0,y=t?-1:1,P=e[o+x];for(x+=y,s=P&(1<<-C)-1,P>>=-C,C+=u;C>0;s=s*256+e[o+x],x+=y,C-=8);for(d=s&(1<<-C)-1,s>>=-C,C+=n;C>0;d=d*256+e[o+x],x+=y,C-=8);if(s===0)s=1-_;else{if(s===f)return d?NaN:(P?-1:1)*(1/0);d=d+Math.pow(2,n),s=s-_}return(P?-1:1)*d*Math.pow(2,s-n)};FM.write=function(e,o,t,n,i,s){var d,u,f,_=s*8-i-1,C=(1<<_)-1,x=C>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=n?0:s-1,S=n?1:-1,M=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,d=C):(d=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-d))<1&&(d--,f*=2),d+x>=1?o+=y/f:o+=y*Math.pow(2,1-x),o*f>=2&&(d++,f/=2),d+x>=C?(u=0,d=C):d+x>=1?(u=(o*f-1)*Math.pow(2,i),d=d+x):(u=o*Math.pow(2,x-1)*Math.pow(2,i),d=0));i>=8;e[t+P]=u&255,P+=S,u/=256,i-=8);for(d=d<0;e[t+P]=d&255,P+=S,d/=256,_-=8);e[t+P-S]|=M*128}});var H9=pt(K0=>{"use strict";var kM=D9(),J0=E9(),I9=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;K0.Buffer=Ti;K0.SlowBuffer=Phe;K0.INSPECT_MAX_BYTES=50;var FC=2147483647;K0.kMaxLength=FC;Ti.TYPED_ARRAY_SUPPORT=xhe();!Ti.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function xhe(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch{return!1}}Object.defineProperty(Ti.prototype,"parent",{enumerable:!0,get:function(){if(Ti.isBuffer(this))return this.buffer}});Object.defineProperty(Ti.prototype,"offset",{enumerable:!0,get:function(){if(Ti.isBuffer(this))return this.byteOffset}});function Wc(e){if(e>FC)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,Ti.prototype),o}function Ti(e,o,t){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return LM(e)}return F9(e,o,t)}Ti.poolSize=8192;function F9(e,o,t){if(typeof e=="string")return yhe(e,o);if(ArrayBuffer.isView(e))return She(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(gc(e,ArrayBuffer)||e&&gc(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gc(e,SharedArrayBuffer)||e&&gc(e.buffer,SharedArrayBuffer)))return RM(e,o,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Ti.from(n,o,t);var i=whe(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ti.from(e[Symbol.toPrimitive]("string"),o,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Ti.from=function(e,o,t){return F9(e,o,t)};Object.setPrototypeOf(Ti.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ti,Uint8Array);function k9(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function bhe(e,o,t){return k9(e),e<=0?Wc(e):o!==void 0?typeof t=="string"?Wc(e).fill(o,t):Wc(e).fill(o):Wc(e)}Ti.alloc=function(e,o,t){return bhe(e,o,t)};function LM(e){return k9(e),Wc(e<0?0:VM(e)|0)}Ti.allocUnsafe=function(e){return LM(e)};Ti.allocUnsafeSlow=function(e){return LM(e)};function yhe(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!Ti.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var t=B9(e,o)|0,n=Wc(t),i=n.write(e,o);return i!==t&&(n=n.slice(0,i)),n}function BM(e){for(var o=e.length<0?0:VM(e.length)|0,t=Wc(o),n=0;n=FC)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+FC.toString(16)+" bytes");return e|0}function Phe(e){return+e!=e&&(e=0),Ti.alloc(+e)}Ti.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==Ti.prototype};Ti.compare=function(o,t){if(gc(o,Uint8Array)&&(o=Ti.from(o,o.offset,o.byteLength)),gc(t,Uint8Array)&&(t=Ti.from(t,t.offset,t.byteLength)),!Ti.isBuffer(o)||!Ti.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===t)return 0;for(var n=o.length,i=t.length,s=0,d=Math.min(n,i);si.length?Ti.from(d).copy(i,s):Uint8Array.prototype.set.call(i,d,s);else if(Ti.isBuffer(d))d.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=d.length}return i};function B9(e,o){if(Ti.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||gc(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(o){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return NM(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return z9(e).length;default:if(i)return n?-1:NM(e).length;o=(""+o).toLowerCase(),i=!0}}Ti.byteLength=B9;function The(e,o,t){var n=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,o>>>=0,t<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rhe(this,o,t);case"utf8":case"utf-8":return N9(this,o,t);case"ascii":return khe(this,o,t);case"latin1":case"binary":return Bhe(this,o,t);case"base64":return Ahe(this,o,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nhe(this,o,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Ti.prototype._isBuffer=!0;function Ed(e,o,t){var n=e[o];e[o]=e[t],e[t]=n}Ti.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(o+=" ... "),""};I9&&(Ti.prototype[I9]=Ti.prototype.inspect);Ti.prototype.compare=function(o,t,n,i,s){if(gc(o,Uint8Array)&&(o=Ti.from(o,o.offset,o.byteLength)),!Ti.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(t===void 0&&(t=0),n===void 0&&(n=o?o.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>o.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===o)return 0;for(var d=s-i,u=n-t,f=Math.min(d,u),_=this.slice(i,s),C=o.slice(t,n),x=0;x2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,qM(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof o=="string"&&(o=Ti.from(o,n)),Ti.isBuffer(o))return o.length===0?-1:O9(e,o,t,n,i);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,o,t):Uint8Array.prototype.lastIndexOf.call(e,o,t):O9(e,[o],t,n,i);throw new TypeError("val must be string, number or Buffer")}function O9(e,o,t,n,i){var s=1,d=e.length,u=o.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||o.length<2)return-1;s=2,d/=2,u/=2,t/=2}function f(P,S){return s===1?P[S]:P.readUInt16BE(S*s)}var _;if(i){var C=-1;for(_=t;_d&&(t=d-u),_=t;_>=0;_--){for(var x=!0,y=0;yi&&(n=i)):n=i;var s=o.length;n>s/2&&(n=s/2);for(var d=0;d>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-t;if((n===void 0||n>s)&&(n=s),o.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var d=!1;;)switch(i){case"hex":return Mhe(this,o,t,n);case"utf8":case"utf-8":return Dhe(this,o,t,n);case"ascii":case"latin1":case"binary":return Ehe(this,o,t,n);case"base64":return Ihe(this,o,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ohe(this,o,t,n);default:if(d)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),d=!0}};Ti.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ahe(e,o,t){return o===0&&t===e.length?kM.fromByteArray(e):kM.fromByteArray(e.slice(o,t))}function N9(e,o,t){t=Math.min(e.length,t);for(var n=[],i=o;i239?4:s>223?3:s>191?2:1;if(i+u<=t){var f,_,C,x;switch(u){case 1:s<128&&(d=s);break;case 2:f=e[i+1],(f&192)===128&&(x=(s&31)<<6|f&63,x>127&&(d=x));break;case 3:f=e[i+1],_=e[i+2],(f&192)===128&&(_&192)===128&&(x=(s&15)<<12|(f&63)<<6|_&63,x>2047&&(x<55296||x>57343)&&(d=x));break;case 4:f=e[i+1],_=e[i+2],C=e[i+3],(f&192)===128&&(_&192)===128&&(C&192)===128&&(x=(s&15)<<18|(f&63)<<12|(_&63)<<6|C&63,x>65535&&x<1114112&&(d=x))}}d===null?(d=65533,u=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|d&1023),n.push(d),i+=u}return Fhe(n)}var A9=4096;function Fhe(e){var o=e.length;if(o<=A9)return String.fromCharCode.apply(String,e);for(var t="",n=0;nn)&&(t=n);for(var i="",s=o;sn&&(o=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}Ti.prototype.readUintLE=Ti.prototype.readUIntLE=function(o,t,n){o=o>>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=this[o],s=1,d=0;++d>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=this[o+--t],s=1;t>0&&(s*=256);)i+=this[o+--t]*s;return i};Ti.prototype.readUint8=Ti.prototype.readUInt8=function(o,t){return o=o>>>0,t||Or(o,1,this.length),this[o]};Ti.prototype.readUint16LE=Ti.prototype.readUInt16LE=function(o,t){return o=o>>>0,t||Or(o,2,this.length),this[o]|this[o+1]<<8};Ti.prototype.readUint16BE=Ti.prototype.readUInt16BE=function(o,t){return o=o>>>0,t||Or(o,2,this.length),this[o]<<8|this[o+1]};Ti.prototype.readUint32LE=Ti.prototype.readUInt32LE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};Ti.prototype.readUint32BE=Ti.prototype.readUInt32BE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};Ti.prototype.readIntLE=function(o,t,n){o=o>>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=this[o],s=1,d=0;++d=s&&(i-=Math.pow(2,8*t)),i};Ti.prototype.readIntBE=function(o,t,n){o=o>>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=t,s=1,d=this[o+--i];i>0&&(s*=256);)d+=this[o+--i]*s;return s*=128,d>=s&&(d-=Math.pow(2,8*t)),d};Ti.prototype.readInt8=function(o,t){return o=o>>>0,t||Or(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};Ti.prototype.readInt16LE=function(o,t){o=o>>>0,t||Or(o,2,this.length);var n=this[o]|this[o+1]<<8;return n&32768?n|4294901760:n};Ti.prototype.readInt16BE=function(o,t){o=o>>>0,t||Or(o,2,this.length);var n=this[o+1]|this[o]<<8;return n&32768?n|4294901760:n};Ti.prototype.readInt32LE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};Ti.prototype.readInt32BE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};Ti.prototype.readFloatLE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),J0.read(this,o,!0,23,4)};Ti.prototype.readFloatBE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),J0.read(this,o,!1,23,4)};Ti.prototype.readDoubleLE=function(o,t){return o=o>>>0,t||Or(o,8,this.length),J0.read(this,o,!0,52,8)};Ti.prototype.readDoubleBE=function(o,t){return o=o>>>0,t||Or(o,8,this.length),J0.read(this,o,!1,52,8)};function Tl(e,o,t,n,i,s){if(!Ti.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>i||oe.length)throw new RangeError("Index out of range")}Ti.prototype.writeUintLE=Ti.prototype.writeUIntLE=function(o,t,n,i){if(o=+o,t=t>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;Tl(this,o,t,n,s,0)}var d=1,u=0;for(this[t]=o&255;++u>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;Tl(this,o,t,n,s,0)}var d=n-1,u=1;for(this[t+d]=o&255;--d>=0&&(u*=256);)this[t+d]=o/u&255;return t+n};Ti.prototype.writeUint8=Ti.prototype.writeUInt8=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,1,255,0),this[t]=o&255,t+1};Ti.prototype.writeUint16LE=Ti.prototype.writeUInt16LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,65535,0),this[t]=o&255,this[t+1]=o>>>8,t+2};Ti.prototype.writeUint16BE=Ti.prototype.writeUInt16BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,65535,0),this[t]=o>>>8,this[t+1]=o&255,t+2};Ti.prototype.writeUint32LE=Ti.prototype.writeUInt32LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,4294967295,0),this[t+3]=o>>>24,this[t+2]=o>>>16,this[t+1]=o>>>8,this[t]=o&255,t+4};Ti.prototype.writeUint32BE=Ti.prototype.writeUInt32BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,4294967295,0),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};Ti.prototype.writeIntLE=function(o,t,n,i){if(o=+o,t=t>>>0,!i){var s=Math.pow(2,8*n-1);Tl(this,o,t,n,s-1,-s)}var d=0,u=1,f=0;for(this[t]=o&255;++d>0)-f&255;return t+n};Ti.prototype.writeIntBE=function(o,t,n,i){if(o=+o,t=t>>>0,!i){var s=Math.pow(2,8*n-1);Tl(this,o,t,n,s-1,-s)}var d=n-1,u=1,f=0;for(this[t+d]=o&255;--d>=0&&(u*=256);)o<0&&f===0&&this[t+d+1]!==0&&(f=1),this[t+d]=(o/u>>0)-f&255;return t+n};Ti.prototype.writeInt8=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,1,127,-128),o<0&&(o=255+o+1),this[t]=o&255,t+1};Ti.prototype.writeInt16LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,32767,-32768),this[t]=o&255,this[t+1]=o>>>8,t+2};Ti.prototype.writeInt16BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,32767,-32768),this[t]=o>>>8,this[t+1]=o&255,t+2};Ti.prototype.writeInt32LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,2147483647,-2147483648),this[t]=o&255,this[t+1]=o>>>8,this[t+2]=o>>>16,this[t+3]=o>>>24,t+4};Ti.prototype.writeInt32BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};function L9(e,o,t,n,i,s){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function V9(e,o,t,n,i){return o=+o,t=t>>>0,i||L9(e,o,t,4,34028234663852886e22,-34028234663852886e22),J0.write(e,o,t,n,23,4),t+4}Ti.prototype.writeFloatLE=function(o,t,n){return V9(this,o,t,!0,n)};Ti.prototype.writeFloatBE=function(o,t,n){return V9(this,o,t,!1,n)};function q9(e,o,t,n,i){return o=+o,t=t>>>0,i||L9(e,o,t,8,17976931348623157e292,-17976931348623157e292),J0.write(e,o,t,n,52,8),t+8}Ti.prototype.writeDoubleLE=function(o,t,n){return q9(this,o,t,!0,n)};Ti.prototype.writeDoubleBE=function(o,t,n){return q9(this,o,t,!1,n)};Ti.prototype.copy=function(o,t,n,i){if(!Ti.isBuffer(o))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=o.length&&(t=o.length),t||(t=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),o.length-t>>0,n=n===void 0?this.length:n>>>0,o||(o=0);var d;if(typeof o=="number")for(d=t;d55295&&t<57344){if(!i){if(t>56319){(o-=3)>-1&&s.push(239,191,189);continue}else if(d+1===n){(o-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(o-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(o-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((o-=1)<0)break;s.push(t)}else if(t<2048){if((o-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((o-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((o-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function qhe(e){for(var o=[],t=0;t>8,i=t%256,s.push(i),s.push(n);return s}function z9(e){return kM.toByteArray(Vhe(e))}function kC(e,o,t,n){for(var i=0;i=o.length||i>=e.length);++i)o[i+t]=e[i];return i}function gc(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function qM(e){return e!==e}var Hhe=(function(){for(var e="0123456789abcdef",o=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)o[n+i]=e[t]+e[i];return o})()});var EV=pt((gbn,DV)=>{function mKe(){this.__data__=[],this.size=0}DV.exports=mKe});var Vd=pt((_bn,IV)=>{function dKe(e,o){return e===o||e!==e&&o!==o}IV.exports=dKe});var P1=pt((Cbn,OV)=>{var uKe=Vd();function fKe(e,o){for(var t=e.length;t--;)if(uKe(e[t][0],o))return t;return-1}OV.exports=fKe});var FV=pt((vbn,AV)=>{var hKe=P1(),gKe=Array.prototype,_Ke=gKe.splice;function CKe(e){var o=this.__data__,t=hKe(o,e);if(t<0)return!1;var n=o.length-1;return t==n?o.pop():_Ke.call(o,t,1),--this.size,!0}AV.exports=CKe});var BV=pt((xbn,kV)=>{var vKe=P1();function xKe(e){var o=this.__data__,t=vKe(o,e);return t<0?void 0:o[t][1]}kV.exports=xKe});var NV=pt((bbn,RV)=>{var bKe=P1();function yKe(e){return bKe(this.__data__,e)>-1}RV.exports=yKe});var VV=pt((ybn,LV)=>{var SKe=P1();function wKe(e,o){var t=this.__data__,n=SKe(t,e);return n<0?(++this.size,t.push([e,o])):t[n][1]=o,this}LV.exports=wKe});var T1=pt((Sbn,qV)=>{var PKe=EV(),TKe=FV(),MKe=BV(),DKe=NV(),EKe=VV();function su(e){var o=-1,t=e==null?0:e.length;for(this.clear();++o{var IKe=T1();function OKe(){this.__data__=new IKe,this.size=0}zV.exports=OKe});var jV=pt((Pbn,GV)=>{function AKe(e){var o=this.__data__,t=o.delete(e);return this.size=o.size,t}GV.exports=AKe});var UV=pt((Tbn,$V)=>{function FKe(e){return this.__data__.get(e)}$V.exports=FKe});var QV=pt((Mbn,WV)=>{function kKe(e){return this.__data__.has(e)}WV.exports=kKe});var DD=pt((Dbn,YV)=>{var BKe=typeof global=="object"&&global&&global.Object===Object&&global;YV.exports=BKe});var us=pt((Ebn,JV)=>{var RKe=DD(),NKe=typeof self=="object"&&self&&self.Object===Object&&self,LKe=RKe||NKe||Function("return this")();JV.exports=LKe});var qd=pt((Ibn,KV)=>{var VKe=us(),qKe=VKe.Symbol;KV.exports=qKe});var tq=pt((Obn,eq)=>{var XV=qd(),ZV=Object.prototype,zKe=ZV.hasOwnProperty,HKe=ZV.toString,M1=XV?XV.toStringTag:void 0;function GKe(e){var o=zKe.call(e,M1),t=e[M1];try{e[M1]=void 0;var n=!0}catch{}var i=HKe.call(e);return n&&(o?e[M1]=t:delete e[M1]),i}eq.exports=GKe});var nq=pt((Abn,iq)=>{var jKe=Object.prototype,$Ke=jKe.toString;function UKe(e){return $Ke.call(e)}iq.exports=UKe});var Xp=pt((Fbn,rq)=>{var oq=qd(),WKe=tq(),QKe=nq(),YKe="[object Null]",JKe="[object Undefined]",aq=oq?oq.toStringTag:void 0;function KKe(e){return e==null?e===void 0?JKe:YKe:aq&&aq in Object(e)?WKe(e):QKe(e)}rq.exports=KKe});var Ll=pt((kbn,lq)=>{function XKe(e){var o=typeof e;return e!=null&&(o=="object"||o=="function")}lq.exports=XKe});var cu=pt((Bbn,sq)=>{var ZKe=Xp(),eXe=Ll(),tXe="[object AsyncFunction]",iXe="[object Function]",nXe="[object GeneratorFunction]",oXe="[object Proxy]";function aXe(e){if(!eXe(e))return!1;var o=ZKe(e);return o==iXe||o==nXe||o==tXe||o==oXe}sq.exports=aXe});var pq=pt((Rbn,cq)=>{var rXe=us(),lXe=rXe["__core-js_shared__"];cq.exports=lXe});var uq=pt((Nbn,dq)=>{var ED=pq(),mq=(function(){var e=/[^.]+$/.exec(ED&&ED.keys&&ED.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function sXe(e){return!!mq&&mq in e}dq.exports=sXe});var ID=pt((Lbn,fq)=>{var cXe=Function.prototype,pXe=cXe.toString;function mXe(e){if(e!=null){try{return pXe.call(e)}catch{}try{return e+""}catch{}}return""}fq.exports=mXe});var gq=pt((Vbn,hq)=>{var dXe=cu(),uXe=uq(),fXe=Ll(),hXe=ID(),gXe=/[\\^$.*+?()[\]{}|]/g,_Xe=/^\[object .+?Constructor\]$/,CXe=Function.prototype,vXe=Object.prototype,xXe=CXe.toString,bXe=vXe.hasOwnProperty,yXe=RegExp("^"+xXe.call(bXe).replace(gXe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function SXe(e){if(!fXe(e)||uXe(e))return!1;var o=dXe(e)?yXe:_Xe;return o.test(hXe(e))}hq.exports=SXe});var Cq=pt((qbn,_q)=>{function wXe(e,o){return e?.[o]}_q.exports=wXe});var Zp=pt((zbn,vq)=>{var PXe=gq(),TXe=Cq();function MXe(e,o){var t=TXe(e,o);return PXe(t)?t:void 0}vq.exports=MXe});var Ab=pt((Hbn,xq)=>{var DXe=Zp(),EXe=us(),IXe=DXe(EXe,"Map");xq.exports=IXe});var D1=pt((Gbn,bq)=>{var OXe=Zp(),AXe=OXe(Object,"create");bq.exports=AXe});var wq=pt((jbn,Sq)=>{var yq=D1();function FXe(){this.__data__=yq?yq(null):{},this.size=0}Sq.exports=FXe});var Tq=pt(($bn,Pq)=>{function kXe(e){var o=this.has(e)&&delete this.__data__[e];return this.size-=o?1:0,o}Pq.exports=kXe});var Dq=pt((Ubn,Mq)=>{var BXe=D1(),RXe="__lodash_hash_undefined__",NXe=Object.prototype,LXe=NXe.hasOwnProperty;function VXe(e){var o=this.__data__;if(BXe){var t=o[e];return t===RXe?void 0:t}return LXe.call(o,e)?o[e]:void 0}Mq.exports=VXe});var Iq=pt((Wbn,Eq)=>{var qXe=D1(),zXe=Object.prototype,HXe=zXe.hasOwnProperty;function GXe(e){var o=this.__data__;return qXe?o[e]!==void 0:HXe.call(o,e)}Eq.exports=GXe});var Aq=pt((Qbn,Oq)=>{var jXe=D1(),$Xe="__lodash_hash_undefined__";function UXe(e,o){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=jXe&&o===void 0?$Xe:o,this}Oq.exports=UXe});var kq=pt((Ybn,Fq)=>{var WXe=wq(),QXe=Tq(),YXe=Dq(),JXe=Iq(),KXe=Aq();function pu(e){var o=-1,t=e==null?0:e.length;for(this.clear();++o{var Bq=kq(),XXe=T1(),ZXe=Ab();function eZe(){this.size=0,this.__data__={hash:new Bq,map:new(ZXe||XXe),string:new Bq}}Rq.exports=eZe});var Vq=pt((Kbn,Lq)=>{function tZe(e){var o=typeof e;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?e!=="__proto__":e===null}Lq.exports=tZe});var E1=pt((Xbn,qq)=>{var iZe=Vq();function nZe(e,o){var t=e.__data__;return iZe(o)?t[typeof o=="string"?"string":"hash"]:t.map}qq.exports=nZe});var Hq=pt((Zbn,zq)=>{var oZe=E1();function aZe(e){var o=oZe(this,e).delete(e);return this.size-=o?1:0,o}zq.exports=aZe});var jq=pt((eyn,Gq)=>{var rZe=E1();function lZe(e){return rZe(this,e).get(e)}Gq.exports=lZe});var Uq=pt((tyn,$q)=>{var sZe=E1();function cZe(e){return sZe(this,e).has(e)}$q.exports=cZe});var Qq=pt((iyn,Wq)=>{var pZe=E1();function mZe(e,o){var t=pZe(this,e),n=t.size;return t.set(e,o),this.size+=t.size==n?0:1,this}Wq.exports=mZe});var Fb=pt((nyn,Yq)=>{var dZe=Nq(),uZe=Hq(),fZe=jq(),hZe=Uq(),gZe=Qq();function mu(e){var o=-1,t=e==null?0:e.length;for(this.clear();++o{var _Ze=T1(),CZe=Ab(),vZe=Fb(),xZe=200;function bZe(e,o){var t=this.__data__;if(t instanceof _Ze){var n=t.__data__;if(!CZe||n.length{var yZe=T1(),SZe=HV(),wZe=jV(),PZe=UV(),TZe=QV(),MZe=Kq();function du(e){var o=this.__data__=new yZe(e);this.size=o.size}du.prototype.clear=SZe;du.prototype.delete=wZe;du.prototype.get=PZe;du.prototype.has=TZe;du.prototype.set=MZe;Xq.exports=du});var kb=pt((ryn,Zq)=>{function DZe(e,o){for(var t=-1,n=e==null?0:e.length;++t{var EZe=Zp(),IZe=(function(){try{var e=EZe(Object,"defineProperty");return e({},"",{}),e}catch{}})();ez.exports=IZe});var O1=pt((syn,iz)=>{var tz=OD();function OZe(e,o,t){o=="__proto__"&&tz?tz(e,o,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[o]=t}iz.exports=OZe});var A1=pt((cyn,nz)=>{var AZe=O1(),FZe=Vd(),kZe=Object.prototype,BZe=kZe.hasOwnProperty;function RZe(e,o,t){var n=e[o];(!(BZe.call(e,o)&&FZe(n,t))||t===void 0&&!(o in e))&&AZe(e,o,t)}nz.exports=RZe});var uu=pt((pyn,oz)=>{var NZe=A1(),LZe=O1();function VZe(e,o,t,n){var i=!t;t||(t={});for(var s=-1,d=o.length;++s{function qZe(e,o){for(var t=-1,n=Array(e);++t{function zZe(e){return e!=null&&typeof e=="object"}lz.exports=zZe});var cz=pt((uyn,sz)=>{var HZe=Xp(),GZe=qs(),jZe="[object Arguments]";function $Ze(e){return GZe(e)&&HZe(e)==jZe}sz.exports=$Ze});var fu=pt((fyn,dz)=>{var pz=cz(),UZe=qs(),mz=Object.prototype,WZe=mz.hasOwnProperty,QZe=mz.propertyIsEnumerable,YZe=pz((function(){return arguments})())?pz:function(e){return UZe(e)&&WZe.call(e,"callee")&&!QZe.call(e,"callee")};dz.exports=YZe});var Wa=pt((hyn,uz)=>{var JZe=Array.isArray;uz.exports=JZe});var hz=pt((gyn,fz)=>{function KZe(){return!1}fz.exports=KZe});var zd=pt((F1,hu)=>{var XZe=us(),ZZe=hz(),Cz=typeof F1=="object"&&F1&&!F1.nodeType&&F1,gz=Cz&&typeof hu=="object"&&hu&&!hu.nodeType&&hu,eet=gz&&gz.exports===Cz,_z=eet?XZe.Buffer:void 0,tet=_z?_z.isBuffer:void 0,iet=tet||ZZe;hu.exports=iet});var k1=pt((_yn,vz)=>{var net=9007199254740991,oet=/^(?:0|[1-9]\d*)$/;function aet(e,o){var t=typeof e;return o=o??net,!!o&&(t=="number"||t!="symbol"&&oet.test(e))&&e>-1&&e%1==0&&e{var ret=9007199254740991;function set(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=ret}xz.exports=set});var yz=pt((vyn,bz)=>{var cet=Xp(),pet=Bb(),met=qs(),det="[object Arguments]",uet="[object Array]",fet="[object Boolean]",het="[object Date]",get="[object Error]",_et="[object Function]",Cet="[object Map]",vet="[object Number]",xet="[object Object]",bet="[object RegExp]",yet="[object Set]",wet="[object String]",Pet="[object WeakMap]",Tet="[object ArrayBuffer]",Met="[object DataView]",Det="[object Float32Array]",Eet="[object Float64Array]",Iet="[object Int8Array]",Oet="[object Int16Array]",Aet="[object Int32Array]",Fet="[object Uint8Array]",ket="[object Uint8ClampedArray]",Bet="[object Uint16Array]",Ret="[object Uint32Array]",ya={};ya[Det]=ya[Eet]=ya[Iet]=ya[Oet]=ya[Aet]=ya[Fet]=ya[ket]=ya[Bet]=ya[Ret]=!0;ya[det]=ya[uet]=ya[Tet]=ya[fet]=ya[Met]=ya[het]=ya[get]=ya[_et]=ya[Cet]=ya[vet]=ya[xet]=ya[bet]=ya[yet]=ya[wet]=ya[Pet]=!1;function Net(e){return met(e)&&pet(e.length)&&!!ya[cet(e)]}bz.exports=Net});var B1=pt((xyn,Sz)=>{function Let(e){return function(o){return e(o)}}Sz.exports=Let});var Rb=pt((R1,gu)=>{var Vet=DD(),wz=typeof R1=="object"&&R1&&!R1.nodeType&&R1,N1=wz&&typeof gu=="object"&&gu&&!gu.nodeType&&gu,qet=N1&&N1.exports===wz,AD=qet&&Vet.process,zet=(function(){try{var e=N1&&N1.require&&N1.require("util").types;return e||AD&&AD.binding&&AD.binding("util")}catch{}})();gu.exports=zet});var _u=pt((byn,Mz)=>{var Het=yz(),Get=B1(),Pz=Rb(),Tz=Pz&&Pz.isTypedArray,jet=Tz?Get(Tz):Het;Mz.exports=jet});var FD=pt((yyn,Dz)=>{var $et=rz(),Uet=fu(),Wet=Wa(),Qet=zd(),Yet=k1(),Jet=_u(),Ket=Object.prototype,Xet=Ket.hasOwnProperty;function Zet(e,o){var t=Wet(e),n=!t&&Uet(e),i=!t&&!n&&Qet(e),s=!t&&!n&&!i&&Jet(e),d=t||n||i||s,u=d?$et(e.length,String):[],f=u.length;for(var _ in e)(o||Xet.call(e,_))&&!(d&&(_=="length"||i&&(_=="offset"||_=="parent")||s&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Yet(_,f)))&&u.push(_);return u}Dz.exports=Zet});var L1=pt((Syn,Ez)=>{var ett=Object.prototype;function ttt(e){var o=e&&e.constructor,t=typeof o=="function"&&o.prototype||ett;return e===t}Ez.exports=ttt});var kD=pt((wyn,Iz)=>{function itt(e,o){return function(t){return e(o(t))}}Iz.exports=itt});var Az=pt((Pyn,Oz)=>{var ntt=kD(),ott=ntt(Object.keys,Object);Oz.exports=ott});var Nb=pt((Tyn,Fz)=>{var att=L1(),rtt=Az(),ltt=Object.prototype,stt=ltt.hasOwnProperty;function ctt(e){if(!att(e))return rtt(e);var o=[];for(var t in Object(e))stt.call(e,t)&&t!="constructor"&&o.push(t);return o}Fz.exports=ctt});var vc=pt((Myn,kz)=>{var ptt=cu(),mtt=Bb();function dtt(e){return e!=null&&mtt(e.length)&&!ptt(e)}kz.exports=dtt});var Zc=pt((Dyn,Bz)=>{var utt=FD(),ftt=Nb(),htt=vc();function gtt(e){return htt(e)?utt(e):ftt(e)}Bz.exports=gtt});var Nz=pt((Eyn,Rz)=>{var _tt=uu(),Ctt=Zc();function vtt(e,o){return e&&_tt(o,Ctt(o),e)}Rz.exports=vtt});var Vz=pt((Iyn,Lz)=>{function xtt(e){var o=[];if(e!=null)for(var t in Object(e))o.push(t);return o}Lz.exports=xtt});var zz=pt((Oyn,qz)=>{var btt=Ll(),ytt=L1(),Stt=Vz(),wtt=Object.prototype,Ptt=wtt.hasOwnProperty;function Ttt(e){if(!btt(e))return Stt(e);var o=ytt(e),t=[];for(var n in e)n=="constructor"&&(o||!Ptt.call(e,n))||t.push(n);return t}qz.exports=Ttt});var em=pt((Ayn,Hz)=>{var Mtt=FD(),Dtt=zz(),Ett=vc();function Itt(e){return Ett(e)?Mtt(e,!0):Dtt(e)}Hz.exports=Itt});var jz=pt((Fyn,Gz)=>{var Ott=uu(),Att=em();function Ftt(e,o){return e&&Ott(o,Att(o),e)}Gz.exports=Ftt});var BD=pt((V1,Cu)=>{var ktt=us(),Qz=typeof V1=="object"&&V1&&!V1.nodeType&&V1,$z=Qz&&typeof Cu=="object"&&Cu&&!Cu.nodeType&&Cu,Btt=$z&&$z.exports===Qz,Uz=Btt?ktt.Buffer:void 0,Wz=Uz?Uz.allocUnsafe:void 0;function Rtt(e,o){if(o)return e.slice();var t=e.length,n=Wz?Wz(t):new e.constructor(t);return e.copy(n),n}Cu.exports=Rtt});var RD=pt((kyn,Yz)=>{function Ntt(e,o){var t=-1,n=e.length;for(o||(o=Array(n));++t{function Ltt(e,o){for(var t=-1,n=e==null?0:e.length,i=0,s=[];++t{function Vtt(){return[]}Kz.exports=Vtt});var Lb=pt((Nyn,Zz)=>{var qtt=ND(),ztt=LD(),Htt=Object.prototype,Gtt=Htt.propertyIsEnumerable,Xz=Object.getOwnPropertySymbols,jtt=Xz?function(e){return e==null?[]:(e=Object(e),qtt(Xz(e),function(o){return Gtt.call(e,o)}))}:ztt;Zz.exports=jtt});var tH=pt((Lyn,eH)=>{var $tt=uu(),Utt=Lb();function Wtt(e,o){return $tt(e,Utt(e),o)}eH.exports=Wtt});var Vb=pt((Vyn,iH)=>{function Qtt(e,o){for(var t=-1,n=o.length,i=e.length;++t{var Ytt=kD(),Jtt=Ytt(Object.getPrototypeOf,Object);nH.exports=Jtt});var VD=pt((zyn,oH)=>{var Ktt=Vb(),Xtt=q1(),Ztt=Lb(),eit=LD(),tit=Object.getOwnPropertySymbols,iit=tit?function(e){for(var o=[];e;)Ktt(o,Ztt(e)),e=Xtt(e);return o}:eit;oH.exports=iit});var rH=pt((Hyn,aH)=>{var nit=uu(),oit=VD();function ait(e,o){return nit(e,oit(e),o)}aH.exports=ait});var qD=pt((Gyn,lH)=>{var rit=Vb(),lit=Wa();function sit(e,o,t){var n=o(e);return lit(e)?n:rit(n,t(e))}lH.exports=sit});var zD=pt((jyn,sH)=>{var cit=qD(),pit=Lb(),mit=Zc();function dit(e){return cit(e,mit,pit)}sH.exports=dit});var pH=pt(($yn,cH)=>{var uit=qD(),fit=VD(),hit=em();function git(e){return uit(e,hit,fit)}cH.exports=git});var dH=pt((Uyn,mH)=>{var _it=Zp(),Cit=us(),vit=_it(Cit,"DataView");mH.exports=vit});var fH=pt((Wyn,uH)=>{var xit=Zp(),bit=us(),yit=xit(bit,"Promise");uH.exports=yit});var HD=pt((Qyn,hH)=>{var Sit=Zp(),wit=us(),Pit=Sit(wit,"Set");hH.exports=Pit});var _H=pt((Yyn,gH)=>{var Tit=Zp(),Mit=us(),Dit=Tit(Mit,"WeakMap");gH.exports=Dit});var Gd=pt((Jyn,wH)=>{var GD=dH(),jD=Ab(),$D=fH(),UD=HD(),WD=_H(),SH=Xp(),vu=ID(),CH="[object Map]",Eit="[object Object]",vH="[object Promise]",xH="[object Set]",bH="[object WeakMap]",yH="[object DataView]",Iit=vu(GD),Oit=vu(jD),Ait=vu($D),Fit=vu(UD),kit=vu(WD),Hd=SH;(GD&&Hd(new GD(new ArrayBuffer(1)))!=yH||jD&&Hd(new jD)!=CH||$D&&Hd($D.resolve())!=vH||UD&&Hd(new UD)!=xH||WD&&Hd(new WD)!=bH)&&(Hd=function(e){var o=SH(e),t=o==Eit?e.constructor:void 0,n=t?vu(t):"";if(n)switch(n){case Iit:return yH;case Oit:return CH;case Ait:return vH;case Fit:return xH;case kit:return bH}return o});wH.exports=Hd});var TH=pt((Kyn,PH)=>{var Bit=Object.prototype,Rit=Bit.hasOwnProperty;function Nit(e){var o=e.length,t=new e.constructor(o);return o&&typeof e[0]=="string"&&Rit.call(e,"index")&&(t.index=e.index,t.input=e.input),t}PH.exports=Nit});var QD=pt((Xyn,MH)=>{var Lit=us(),Vit=Lit.Uint8Array;MH.exports=Vit});var qb=pt((Zyn,EH)=>{var DH=QD();function qit(e){var o=new e.constructor(e.byteLength);return new DH(o).set(new DH(e)),o}EH.exports=qit});var OH=pt((e3n,IH)=>{var zit=qb();function Hit(e,o){var t=o?zit(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}IH.exports=Hit});var FH=pt((t3n,AH)=>{var Git=/\w*$/;function jit(e){var o=new e.constructor(e.source,Git.exec(e));return o.lastIndex=e.lastIndex,o}AH.exports=jit});var LH=pt((i3n,NH)=>{var kH=qd(),BH=kH?kH.prototype:void 0,RH=BH?BH.valueOf:void 0;function $it(e){return RH?Object(RH.call(e)):{}}NH.exports=$it});var YD=pt((n3n,VH)=>{var Uit=qb();function Wit(e,o){var t=o?Uit(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}VH.exports=Wit});var zH=pt((o3n,qH)=>{var Qit=qb(),Yit=OH(),Jit=FH(),Kit=LH(),Xit=YD(),Zit="[object Boolean]",ent="[object Date]",tnt="[object Map]",int="[object Number]",nnt="[object RegExp]",ont="[object Set]",ant="[object String]",rnt="[object Symbol]",lnt="[object ArrayBuffer]",snt="[object DataView]",cnt="[object Float32Array]",pnt="[object Float64Array]",mnt="[object Int8Array]",dnt="[object Int16Array]",unt="[object Int32Array]",fnt="[object Uint8Array]",hnt="[object Uint8ClampedArray]",gnt="[object Uint16Array]",_nt="[object Uint32Array]";function Cnt(e,o,t){var n=e.constructor;switch(o){case lnt:return Qit(e);case Zit:case ent:return new n(+e);case snt:return Yit(e,t);case cnt:case pnt:case mnt:case dnt:case unt:case fnt:case hnt:case gnt:case _nt:return Xit(e,t);case tnt:return new n;case int:case ant:return new n(e);case nnt:return Jit(e);case ont:return new n;case rnt:return Kit(e)}}qH.exports=Cnt});var JD=pt((a3n,GH)=>{var vnt=Ll(),HH=Object.create,xnt=(function(){function e(){}return function(o){if(!vnt(o))return{};if(HH)return HH(o);e.prototype=o;var t=new e;return e.prototype=void 0,t}})();GH.exports=xnt});var KD=pt((r3n,jH)=>{var bnt=JD(),ynt=q1(),Snt=L1();function wnt(e){return typeof e.constructor=="function"&&!Snt(e)?bnt(ynt(e)):{}}jH.exports=wnt});var UH=pt((l3n,$H)=>{var Pnt=Gd(),Tnt=qs(),Mnt="[object Map]";function Dnt(e){return Tnt(e)&&Pnt(e)==Mnt}$H.exports=Dnt});var JH=pt((s3n,YH)=>{var Ent=UH(),Int=B1(),WH=Rb(),QH=WH&&WH.isMap,Ont=QH?Int(QH):Ent;YH.exports=Ont});var XH=pt((c3n,KH)=>{var Ant=Gd(),Fnt=qs(),knt="[object Set]";function Bnt(e){return Fnt(e)&&Ant(e)==knt}KH.exports=Bnt});var iG=pt((p3n,tG)=>{var Rnt=XH(),Nnt=B1(),ZH=Rb(),eG=ZH&&ZH.isSet,Lnt=eG?Nnt(eG):Rnt;tG.exports=Lnt});var XD=pt((m3n,rG)=>{var Vnt=I1(),qnt=kb(),znt=A1(),Hnt=Nz(),Gnt=jz(),jnt=BD(),$nt=RD(),Unt=tH(),Wnt=rH(),Qnt=zD(),Ynt=pH(),Jnt=Gd(),Knt=TH(),Xnt=zH(),Znt=KD(),eot=Wa(),tot=zd(),iot=JH(),not=Ll(),oot=iG(),aot=Zc(),rot=em(),lot=1,sot=2,cot=4,nG="[object Arguments]",pot="[object Array]",mot="[object Boolean]",dot="[object Date]",uot="[object Error]",oG="[object Function]",fot="[object GeneratorFunction]",hot="[object Map]",got="[object Number]",aG="[object Object]",_ot="[object RegExp]",Cot="[object Set]",vot="[object String]",xot="[object Symbol]",bot="[object WeakMap]",yot="[object ArrayBuffer]",Sot="[object DataView]",wot="[object Float32Array]",Pot="[object Float64Array]",Tot="[object Int8Array]",Mot="[object Int16Array]",Dot="[object Int32Array]",Eot="[object Uint8Array]",Iot="[object Uint8ClampedArray]",Oot="[object Uint16Array]",Aot="[object Uint32Array]",Ca={};Ca[nG]=Ca[pot]=Ca[yot]=Ca[Sot]=Ca[mot]=Ca[dot]=Ca[wot]=Ca[Pot]=Ca[Tot]=Ca[Mot]=Ca[Dot]=Ca[hot]=Ca[got]=Ca[aG]=Ca[_ot]=Ca[Cot]=Ca[vot]=Ca[xot]=Ca[Eot]=Ca[Iot]=Ca[Oot]=Ca[Aot]=!0;Ca[uot]=Ca[oG]=Ca[bot]=!1;function zb(e,o,t,n,i,s){var d,u=o&lot,f=o&sot,_=o&cot;if(t&&(d=i?t(e,n,i,s):t(e)),d!==void 0)return d;if(!not(e))return e;var C=eot(e);if(C){if(d=Knt(e),!u)return $nt(e,d)}else{var x=Jnt(e),y=x==oG||x==fot;if(tot(e))return jnt(e,u);if(x==aG||x==nG||y&&!i){if(d=f||y?{}:Znt(e),!u)return f?Wnt(e,Gnt(d,e)):Unt(e,Hnt(d,e))}else{if(!Ca[x])return i?e:{};d=Xnt(e,x,u)}}s||(s=new Vnt);var P=s.get(e);if(P)return P;s.set(e,d),oot(e)?e.forEach(function(D){d.add(zb(D,o,t,D,e,s))}):iot(e)&&e.forEach(function(D,k){d.set(k,zb(D,o,t,k,e,s))});var S=_?f?Ynt:Qnt:f?rot:aot,M=C?void 0:S(e);return qnt(M||e,function(D,k){M&&(k=D,D=e[k]),znt(d,k,zb(D,o,t,k,e,s))}),d}rG.exports=zb});var sG=pt((d3n,lG)=>{var Fot=XD(),kot=4;function Bot(e){return Fot(e,kot)}lG.exports=Bot});var Hb=pt((u3n,cG)=>{function Rot(e){return function(){return e}}cG.exports=Rot});var mG=pt((f3n,pG)=>{function Not(e){return function(o,t,n){for(var i=-1,s=Object(o),d=n(o),u=d.length;u--;){var f=d[e?u:++i];if(t(s[f],f,s)===!1)break}return o}}pG.exports=Not});var Gb=pt((h3n,dG)=>{var Lot=mG(),Vot=Lot();dG.exports=Vot});var jb=pt((g3n,uG)=>{var qot=Gb(),zot=Zc();function Hot(e,o){return e&&qot(e,o,zot)}uG.exports=Hot});var hG=pt((_3n,fG)=>{var Got=vc();function jot(e,o){return function(t,n){if(t==null)return t;if(!Got(t))return e(t,n);for(var i=t.length,s=o?i:-1,d=Object(t);(o?s--:++s{var $ot=jb(),Uot=hG(),Wot=Uot($ot);gG.exports=Wot});var tm=pt((v3n,_G)=>{function Qot(e){return e}_G.exports=Qot});var ZD=pt((x3n,CG)=>{var Yot=tm();function Jot(e){return typeof e=="function"?e:Yot}CG.exports=Jot});var eE=pt((b3n,vG)=>{var Kot=kb(),Xot=z1(),Zot=ZD(),eat=Wa();function tat(e,o){var t=eat(e)?Kot:Xot;return t(e,Zot(o))}vG.exports=tat});var tE=pt((y3n,xG)=>{xG.exports=eE()});var yG=pt((S3n,bG)=>{var iat=z1();function nat(e,o){var t=[];return iat(e,function(n,i,s){o(n,i,s)&&t.push(n)}),t}bG.exports=nat});var wG=pt((w3n,SG)=>{var oat="__lodash_hash_undefined__";function aat(e){return this.__data__.set(e,oat),this}SG.exports=aat});var TG=pt((P3n,PG)=>{function rat(e){return this.__data__.has(e)}PG.exports=rat});var iE=pt((T3n,MG)=>{var lat=Fb(),sat=wG(),cat=TG();function $b(e){var o=-1,t=e==null?0:e.length;for(this.__data__=new lat;++o{function pat(e,o){for(var t=-1,n=e==null?0:e.length;++t{function mat(e,o){return e.has(o)}IG.exports=mat});var oE=pt((E3n,OG)=>{var dat=iE(),uat=EG(),fat=nE(),hat=1,gat=2;function _at(e,o,t,n,i,s){var d=t&hat,u=e.length,f=o.length;if(u!=f&&!(d&&f>u))return!1;var _=s.get(e),C=s.get(o);if(_&&C)return _==o&&C==e;var x=-1,y=!0,P=t&gat?new dat:void 0;for(s.set(e,o),s.set(o,e);++x{function Cat(e){var o=-1,t=Array(e.size);return e.forEach(function(n,i){t[++o]=[i,n]}),t}AG.exports=Cat});var Ub=pt((O3n,kG)=>{function vat(e){var o=-1,t=Array(e.size);return e.forEach(function(n){t[++o]=n}),t}kG.exports=vat});var VG=pt((A3n,LG)=>{var BG=qd(),RG=QD(),xat=Vd(),bat=oE(),yat=FG(),Sat=Ub(),wat=1,Pat=2,Tat="[object Boolean]",Mat="[object Date]",Dat="[object Error]",Eat="[object Map]",Iat="[object Number]",Oat="[object RegExp]",Aat="[object Set]",Fat="[object String]",kat="[object Symbol]",Bat="[object ArrayBuffer]",Rat="[object DataView]",NG=BG?BG.prototype:void 0,aE=NG?NG.valueOf:void 0;function Nat(e,o,t,n,i,s,d){switch(t){case Rat:if(e.byteLength!=o.byteLength||e.byteOffset!=o.byteOffset)return!1;e=e.buffer,o=o.buffer;case Bat:return!(e.byteLength!=o.byteLength||!s(new RG(e),new RG(o)));case Tat:case Mat:case Iat:return xat(+e,+o);case Dat:return e.name==o.name&&e.message==o.message;case Oat:case Fat:return e==o+"";case Eat:var u=yat;case Aat:var f=n&wat;if(u||(u=Sat),e.size!=o.size&&!f)return!1;var _=d.get(e);if(_)return _==o;n|=Pat,d.set(e,o);var C=bat(u(e),u(o),n,i,s,d);return d.delete(e),C;case kat:if(aE)return aE.call(e)==aE.call(o)}return!1}LG.exports=Nat});var HG=pt((F3n,zG)=>{var qG=zD(),Lat=1,Vat=Object.prototype,qat=Vat.hasOwnProperty;function zat(e,o,t,n,i,s){var d=t&Lat,u=qG(e),f=u.length,_=qG(o),C=_.length;if(f!=C&&!d)return!1;for(var x=f;x--;){var y=u[x];if(!(d?y in o:qat.call(o,y)))return!1}var P=s.get(e),S=s.get(o);if(P&&S)return P==o&&S==e;var M=!0;s.set(e,o),s.set(o,e);for(var D=d;++x{var rE=I1(),Hat=oE(),Gat=VG(),jat=HG(),GG=Gd(),jG=Wa(),$G=zd(),$at=_u(),Uat=1,UG="[object Arguments]",WG="[object Array]",Wb="[object Object]",Wat=Object.prototype,QG=Wat.hasOwnProperty;function Qat(e,o,t,n,i,s){var d=jG(e),u=jG(o),f=d?WG:GG(e),_=u?WG:GG(o);f=f==UG?Wb:f,_=_==UG?Wb:_;var C=f==Wb,x=_==Wb,y=f==_;if(y&&$G(e)){if(!$G(o))return!1;d=!0,C=!1}if(y&&!C)return s||(s=new rE),d||$at(e)?Hat(e,o,t,n,i,s):Gat(e,o,f,t,n,i,s);if(!(t&Uat)){var P=C&&QG.call(e,"__wrapped__"),S=x&&QG.call(o,"__wrapped__");if(P||S){var M=P?e.value():e,D=S?o.value():o;return s||(s=new rE),i(M,D,t,n,s)}}return y?(s||(s=new rE),jat(e,o,t,n,i,s)):!1}YG.exports=Qat});var lE=pt((B3n,ZG)=>{var Yat=JG(),KG=qs();function XG(e,o,t,n,i){return e===o?!0:e==null||o==null||!KG(e)&&!KG(o)?e!==e&&o!==o:Yat(e,o,t,n,XG,i)}ZG.exports=XG});var tj=pt((R3n,ej)=>{var Jat=I1(),Kat=lE(),Xat=1,Zat=2;function ert(e,o,t,n){var i=t.length,s=i,d=!n;if(e==null)return!s;for(e=Object(e);i--;){var u=t[i];if(d&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i{var trt=Ll();function irt(e){return e===e&&!trt(e)}ij.exports=irt});var oj=pt((L3n,nj)=>{var nrt=sE(),ort=Zc();function art(e){for(var o=ort(e),t=o.length;t--;){var n=o[t],i=e[n];o[t]=[n,i,nrt(i)]}return o}nj.exports=art});var cE=pt((V3n,aj)=>{function rrt(e,o){return function(t){return t==null?!1:t[e]===o&&(o!==void 0||e in Object(t))}}aj.exports=rrt});var lj=pt((q3n,rj)=>{var lrt=tj(),srt=oj(),crt=cE();function prt(e){var o=srt(e);return o.length==1&&o[0][2]?crt(o[0][0],o[0][1]):function(t){return t===e||lrt(t,e,o)}}rj.exports=prt});var jd=pt((z3n,sj)=>{var mrt=Xp(),drt=qs(),urt="[object Symbol]";function frt(e){return typeof e=="symbol"||drt(e)&&mrt(e)==urt}sj.exports=frt});var Qb=pt((H3n,cj)=>{var hrt=Wa(),grt=jd(),_rt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Crt=/^\w*$/;function vrt(e,o){if(hrt(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||grt(e)?!0:Crt.test(e)||!_rt.test(e)||o!=null&&e in Object(o)}cj.exports=vrt});var dj=pt((G3n,mj)=>{var pj=Fb(),xrt="Expected a function";function pE(e,o){if(typeof e!="function"||o!=null&&typeof o!="function")throw new TypeError(xrt);var t=function(){var n=arguments,i=o?o.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var d=e.apply(this,n);return t.cache=s.set(i,d)||s,d};return t.cache=new(pE.Cache||pj),t}pE.Cache=pj;mj.exports=pE});var fj=pt((j3n,uj)=>{var brt=dj(),yrt=500;function Srt(e){var o=brt(e,function(n){return t.size===yrt&&t.clear(),n}),t=o.cache;return o}uj.exports=Srt});var gj=pt(($3n,hj)=>{var wrt=fj(),Prt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Trt=/\\(\\)?/g,Mrt=wrt(function(e){var o=[];return e.charCodeAt(0)===46&&o.push(""),e.replace(Prt,function(t,n,i,s){o.push(i?s.replace(Trt,"$1"):n||t)}),o});hj.exports=Mrt});var H1=pt((U3n,_j)=>{function Drt(e,o){for(var t=-1,n=e==null?0:e.length,i=Array(n);++t{var Cj=qd(),Ert=H1(),Irt=Wa(),Ort=jd(),Art=1/0,vj=Cj?Cj.prototype:void 0,xj=vj?vj.toString:void 0;function bj(e){if(typeof e=="string")return e;if(Irt(e))return Ert(e,bj)+"";if(Ort(e))return xj?xj.call(e):"";var o=e+"";return o=="0"&&1/e==-Art?"-0":o}yj.exports=bj});var mE=pt((Q3n,wj)=>{var Frt=Sj();function krt(e){return e==null?"":Frt(e)}wj.exports=krt});var G1=pt((Y3n,Pj)=>{var Brt=Wa(),Rrt=Qb(),Nrt=gj(),Lrt=mE();function Vrt(e,o){return Brt(e)?e:Rrt(e,o)?[e]:Nrt(Lrt(e))}Pj.exports=Vrt});var xu=pt((J3n,Tj)=>{var qrt=jd(),zrt=1/0;function Hrt(e){if(typeof e=="string"||qrt(e))return e;var o=e+"";return o=="0"&&1/e==-zrt?"-0":o}Tj.exports=Hrt});var j1=pt((K3n,Mj)=>{var Grt=G1(),jrt=xu();function $rt(e,o){o=Grt(o,e);for(var t=0,n=o.length;e!=null&&t{var Urt=j1();function Wrt(e,o,t){var n=e==null?void 0:Urt(e,o);return n===void 0?t:n}Dj.exports=Wrt});var Oj=pt((Z3n,Ij)=>{function Qrt(e,o){return e!=null&&o in Object(e)}Ij.exports=Qrt});var dE=pt((eSn,Aj)=>{var Yrt=G1(),Jrt=fu(),Krt=Wa(),Xrt=k1(),Zrt=Bb(),elt=xu();function tlt(e,o,t){o=Yrt(o,e);for(var n=-1,i=o.length,s=!1;++n{var ilt=Oj(),nlt=dE();function olt(e,o){return e!=null&&nlt(e,o,ilt)}Fj.exports=olt});var Bj=pt((iSn,kj)=>{var alt=lE(),rlt=Ej(),llt=uE(),slt=Qb(),clt=sE(),plt=cE(),mlt=xu(),dlt=1,ult=2;function flt(e,o){return slt(e)&&clt(o)?plt(mlt(e),o):function(t){var n=rlt(t,e);return n===void 0&&n===o?llt(t,e):alt(o,n,dlt|ult)}}kj.exports=flt});var fE=pt((nSn,Rj)=>{function hlt(e){return function(o){return o?.[e]}}Rj.exports=hlt});var Lj=pt((oSn,Nj)=>{var glt=j1();function _lt(e){return function(o){return glt(o,e)}}Nj.exports=_lt});var qj=pt((aSn,Vj)=>{var Clt=fE(),vlt=Lj(),xlt=Qb(),blt=xu();function ylt(e){return xlt(e)?Clt(blt(e)):vlt(e)}Vj.exports=ylt});var xc=pt((rSn,zj)=>{var Slt=lj(),wlt=Bj(),Plt=tm(),Tlt=Wa(),Mlt=qj();function Dlt(e){return typeof e=="function"?e:e==null?Plt:typeof e=="object"?Tlt(e)?wlt(e[0],e[1]):Slt(e):Mlt(e)}zj.exports=Dlt});var hE=pt((lSn,Hj)=>{var Elt=ND(),Ilt=yG(),Olt=xc(),Alt=Wa();function Flt(e,o){var t=Alt(e)?Elt:Ilt;return t(e,Olt(o,3))}Hj.exports=Flt});var jj=pt((sSn,Gj)=>{var klt=Object.prototype,Blt=klt.hasOwnProperty;function Rlt(e,o){return e!=null&&Blt.call(e,o)}Gj.exports=Rlt});var gE=pt((cSn,$j)=>{var Nlt=jj(),Llt=dE();function Vlt(e,o){return e!=null&&Llt(e,o,Nlt)}$j.exports=Vlt});var Wj=pt((pSn,Uj)=>{var qlt=Nb(),zlt=Gd(),Hlt=fu(),Glt=Wa(),jlt=vc(),$lt=zd(),Ult=L1(),Wlt=_u(),Qlt="[object Map]",Ylt="[object Set]",Jlt=Object.prototype,Klt=Jlt.hasOwnProperty;function Xlt(e){if(e==null)return!0;if(jlt(e)&&(Glt(e)||typeof e=="string"||typeof e.splice=="function"||$lt(e)||Wlt(e)||Hlt(e)))return!e.length;var o=zlt(e);if(o==Qlt||o==Ylt)return!e.size;if(Ult(e))return!qlt(e).length;for(var t in e)if(Klt.call(e,t))return!1;return!0}Uj.exports=Xlt});var _E=pt((mSn,Qj)=>{function Zlt(e){return e===void 0}Qj.exports=Zlt});var CE=pt((dSn,Yj)=>{var est=z1(),tst=vc();function ist(e,o){var t=-1,n=tst(e)?Array(e.length):[];return est(e,function(i,s,d){n[++t]=o(i,s,d)}),n}Yj.exports=ist});var vE=pt((uSn,Jj)=>{var nst=H1(),ost=xc(),ast=CE(),rst=Wa();function lst(e,o){var t=rst(e)?nst:ast;return t(e,ost(o,3))}Jj.exports=lst});var Xj=pt((fSn,Kj)=>{function sst(e,o,t,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(t=e[++i]);++i{function cst(e,o,t,n,i){return i(e,function(s,d,u){t=n?(n=!1,s):o(t,s,d,u)}),t}Zj.exports=cst});var xE=pt((gSn,t$)=>{var pst=Xj(),mst=z1(),dst=xc(),ust=e$(),fst=Wa();function hst(e,o,t){var n=fst(e)?pst:ust,i=arguments.length<3;return n(e,dst(o,4),t,i,mst)}t$.exports=hst});var n$=pt((_Sn,i$)=>{var gst=Xp(),_st=Wa(),Cst=qs(),vst="[object String]";function xst(e){return typeof e=="string"||!_st(e)&&Cst(e)&&gst(e)==vst}i$.exports=xst});var a$=pt((CSn,o$)=>{var bst=fE(),yst=bst("length");o$.exports=yst});var l$=pt((vSn,r$)=>{var Sst="\\ud800-\\udfff",wst="\\u0300-\\u036f",Pst="\\ufe20-\\ufe2f",Tst="\\u20d0-\\u20ff",Mst=wst+Pst+Tst,Dst="\\ufe0e\\ufe0f",Est="\\u200d",Ist=RegExp("["+Est+Sst+Mst+Dst+"]");function Ost(e){return Ist.test(e)}r$.exports=Ost});var g$=pt((xSn,h$)=>{var c$="\\ud800-\\udfff",Ast="\\u0300-\\u036f",Fst="\\ufe20-\\ufe2f",kst="\\u20d0-\\u20ff",Bst=Ast+Fst+kst,Rst="\\ufe0e\\ufe0f",Nst="["+c$+"]",bE="["+Bst+"]",yE="\\ud83c[\\udffb-\\udfff]",Lst="(?:"+bE+"|"+yE+")",p$="[^"+c$+"]",m$="(?:\\ud83c[\\udde6-\\uddff]){2}",d$="[\\ud800-\\udbff][\\udc00-\\udfff]",Vst="\\u200d",u$=Lst+"?",f$="["+Rst+"]?",qst="(?:"+Vst+"(?:"+[p$,m$,d$].join("|")+")"+f$+u$+")*",zst=f$+u$+qst,Hst="(?:"+[p$+bE+"?",bE,m$,d$,Nst].join("|")+")",s$=RegExp(yE+"(?="+yE+")|"+Hst+zst,"g");function Gst(e){for(var o=s$.lastIndex=0;s$.test(e);)++o;return o}h$.exports=Gst});var C$=pt((bSn,_$)=>{var jst=a$(),$st=l$(),Ust=g$();function Wst(e){return $st(e)?Ust(e):jst(e)}_$.exports=Wst});var x$=pt((ySn,v$)=>{var Qst=Nb(),Yst=Gd(),Jst=vc(),Kst=n$(),Xst=C$(),Zst="[object Map]",ect="[object Set]";function tct(e){if(e==null)return 0;if(Jst(e))return Kst(e)?Xst(e):e.length;var o=Yst(e);return o==Zst||o==ect?e.size:Qst(e).length}v$.exports=tct});var y$=pt((SSn,b$)=>{var ict=kb(),nct=JD(),oct=jb(),act=xc(),rct=q1(),lct=Wa(),sct=zd(),cct=cu(),pct=Ll(),mct=_u();function dct(e,o,t){var n=lct(e),i=n||sct(e)||mct(e);if(o=act(o,4),t==null){var s=e&&e.constructor;i?t=n?new s:[]:pct(e)?t=cct(s)?nct(rct(e)):{}:t={}}return(i?ict:oct)(e,function(d,u,f){return o(t,d,u,f)}),t}b$.exports=dct});var T$=pt((wSn,P$)=>{var S$=qd(),uct=fu(),fct=Wa(),w$=S$?S$.isConcatSpreadable:void 0;function hct(e){return fct(e)||uct(e)||!!(w$&&e&&e[w$])}P$.exports=hct});var Yb=pt((PSn,D$)=>{var gct=Vb(),_ct=T$();function M$(e,o,t,n,i){var s=-1,d=e.length;for(t||(t=_ct),i||(i=[]);++s0&&t(u)?o>1?M$(u,o-1,t,n,i):gct(i,u):n||(i[i.length]=u)}return i}D$.exports=M$});var I$=pt((TSn,E$)=>{function Cct(e,o,t){switch(t.length){case 0:return e.call(o);case 1:return e.call(o,t[0]);case 2:return e.call(o,t[0],t[1]);case 3:return e.call(o,t[0],t[1],t[2])}return e.apply(o,t)}E$.exports=Cct});var SE=pt((MSn,A$)=>{var vct=I$(),O$=Math.max;function xct(e,o,t){return o=O$(o===void 0?e.length-1:o,0),function(){for(var n=arguments,i=-1,s=O$(n.length-o,0),d=Array(s);++i{var bct=Hb(),F$=OD(),yct=tm(),Sct=F$?function(e,o){return F$(e,"toString",{configurable:!0,enumerable:!1,value:bct(o),writable:!0})}:yct;k$.exports=Sct});var N$=pt((ESn,R$)=>{var wct=800,Pct=16,Tct=Date.now;function Mct(e){var o=0,t=0;return function(){var n=Tct(),i=Pct-(n-t);if(t=n,i>0){if(++o>=wct)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}R$.exports=Mct});var wE=pt((ISn,L$)=>{var Dct=B$(),Ect=N$(),Ict=Ect(Dct);L$.exports=Ict});var $1=pt((OSn,V$)=>{var Oct=tm(),Act=SE(),Fct=wE();function kct(e,o){return Fct(Act(e,o,Oct),e+"")}V$.exports=kct});var PE=pt((ASn,q$)=>{function Bct(e,o,t,n){for(var i=e.length,s=t+(n?1:-1);n?s--:++s{function Rct(e){return e!==e}z$.exports=Rct});var j$=pt((kSn,G$)=>{function Nct(e,o,t){for(var n=t-1,i=e.length;++n{var Lct=PE(),Vct=H$(),qct=j$();function zct(e,o,t){return o===o?qct(e,o,t):Lct(e,Vct,t)}$$.exports=zct});var Q$=pt((RSn,W$)=>{var Hct=U$();function Gct(e,o){var t=e==null?0:e.length;return!!t&&Hct(e,o,0)>-1}W$.exports=Gct});var J$=pt((NSn,Y$)=>{function jct(e,o,t){for(var n=-1,i=e==null?0:e.length;++n{function $ct(){}K$.exports=$ct});var eU=pt((VSn,Z$)=>{var TE=HD(),Uct=X$(),Wct=Ub(),Qct=1/0,Yct=TE&&1/Wct(new TE([,-0]))[1]==Qct?function(e){return new TE(e)}:Uct;Z$.exports=Yct});var iU=pt((qSn,tU)=>{var Jct=iE(),Kct=Q$(),Xct=J$(),Zct=nE(),ept=eU(),tpt=Ub(),ipt=200;function npt(e,o,t){var n=-1,i=Kct,s=e.length,d=!0,u=[],f=u;if(t)d=!1,i=Xct;else if(s>=ipt){var _=o?null:ept(e);if(_)return tpt(_);d=!1,i=Zct,f=new Jct}else f=o?[]:u;e:for(;++n{var opt=vc(),apt=qs();function rpt(e){return apt(e)&&opt(e)}nU.exports=rpt});var aU=pt((HSn,oU)=>{var lpt=Yb(),spt=$1(),cpt=iU(),ppt=ME(),mpt=spt(function(e){return cpt(lpt(e,1,ppt,!0))});oU.exports=mpt});var lU=pt((GSn,rU)=>{var dpt=H1();function upt(e,o){return dpt(o,function(t){return e[t]})}rU.exports=upt});var DE=pt((jSn,sU)=>{var fpt=lU(),hpt=Zc();function gpt(e){return e==null?[]:fpt(e,hpt(e))}sU.exports=gpt});var Vl=pt(($Sn,cU)=>{var Jb;if(typeof Ms=="function")try{Jb={clone:sG(),constant:Hb(),each:tE(),filter:hE(),has:gE(),isArray:Wa(),isEmpty:Wj(),isFunction:cu(),isUndefined:_E(),keys:Zc(),map:vE(),reduce:xE(),size:x$(),transform:y$(),union:aU(),values:DE()}}catch{}Jb||(Jb=window._);cU.exports=Jb});var Kb=pt((WSn,uU)=>{"use strict";var to=Vl();uU.exports=vo;var _pt="\0",$d="\0",pU="";function vo(e){this._isDirected=to.has(e,"directed")?e.directed:!0,this._isMultigraph=to.has(e,"multigraph")?e.multigraph:!1,this._isCompound=to.has(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=to.constant(void 0),this._defaultEdgeLabelFn=to.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[$d]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}vo.prototype._nodeCount=0;vo.prototype._edgeCount=0;vo.prototype.isDirected=function(){return this._isDirected};vo.prototype.isMultigraph=function(){return this._isMultigraph};vo.prototype.isCompound=function(){return this._isCompound};vo.prototype.setGraph=function(e){return this._label=e,this};vo.prototype.graph=function(){return this._label};vo.prototype.setDefaultNodeLabel=function(e){return to.isFunction(e)||(e=to.constant(e)),this._defaultNodeLabelFn=e,this};vo.prototype.nodeCount=function(){return this._nodeCount};vo.prototype.nodes=function(){return to.keys(this._nodes)};vo.prototype.sources=function(){var e=this;return to.filter(this.nodes(),function(o){return to.isEmpty(e._in[o])})};vo.prototype.sinks=function(){var e=this;return to.filter(this.nodes(),function(o){return to.isEmpty(e._out[o])})};vo.prototype.setNodes=function(e,o){var t=arguments,n=this;return to.each(e,function(i){t.length>1?n.setNode(i,o):n.setNode(i)}),this};vo.prototype.setNode=function(e,o){return to.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=o),this):(this._nodes[e]=arguments.length>1?o:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=$d,this._children[e]={},this._children[$d][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)};vo.prototype.node=function(e){return this._nodes[e]};vo.prototype.hasNode=function(e){return to.has(this._nodes,e)};vo.prototype.removeNode=function(e){var o=this;if(to.has(this._nodes,e)){var t=function(n){o.removeEdge(o._edgeObjs[n])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],to.each(this.children(e),function(n){o.setParent(n)}),delete this._children[e]),to.each(to.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],to.each(to.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this};vo.prototype.setParent=function(e,o){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(to.isUndefined(o))o=$d;else{o+="";for(var t=o;!to.isUndefined(t);t=this.parent(t))if(t===e)throw new Error("Setting "+o+" as parent of "+e+" would create a cycle");this.setNode(o)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=o,this._children[o][e]=!0,this};vo.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]};vo.prototype.parent=function(e){if(this._isCompound){var o=this._parent[e];if(o!==$d)return o}};vo.prototype.children=function(e){if(to.isUndefined(e)&&(e=$d),this._isCompound){var o=this._children[e];if(o)return to.keys(o)}else{if(e===$d)return this.nodes();if(this.hasNode(e))return[]}};vo.prototype.predecessors=function(e){var o=this._preds[e];if(o)return to.keys(o)};vo.prototype.successors=function(e){var o=this._sucs[e];if(o)return to.keys(o)};vo.prototype.neighbors=function(e){var o=this.predecessors(e);if(o)return to.union(o,this.successors(e))};vo.prototype.isLeaf=function(e){var o;return this.isDirected()?o=this.successors(e):o=this.neighbors(e),o.length===0};vo.prototype.filterNodes=function(e){var o=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});o.setGraph(this.graph());var t=this;to.each(this._nodes,function(s,d){e(d)&&o.setNode(d,s)}),to.each(this._edgeObjs,function(s){o.hasNode(s.v)&&o.hasNode(s.w)&&o.setEdge(s,t.edge(s))});var n={};function i(s){var d=t.parent(s);return d===void 0||o.hasNode(d)?(n[s]=d,d):d in n?n[d]:i(d)}return this._isCompound&&to.each(o.nodes(),function(s){o.setParent(s,i(s))}),o};vo.prototype.setDefaultEdgeLabel=function(e){return to.isFunction(e)||(e=to.constant(e)),this._defaultEdgeLabelFn=e,this};vo.prototype.edgeCount=function(){return this._edgeCount};vo.prototype.edges=function(){return to.values(this._edgeObjs)};vo.prototype.setPath=function(e,o){var t=this,n=arguments;return to.reduce(e,function(i,s){return n.length>1?t.setEdge(i,s,o):t.setEdge(i,s),s}),this};vo.prototype.setEdge=function(){var e,o,t,n,i=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,o=s.w,t=s.name,arguments.length===2&&(n=arguments[1],i=!0)):(e=s,o=arguments[1],t=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),e=""+e,o=""+o,to.isUndefined(t)||(t=""+t);var d=U1(this._isDirected,e,o,t);if(to.has(this._edgeLabels,d))return i&&(this._edgeLabels[d]=n),this;if(!to.isUndefined(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(o),this._edgeLabels[d]=i?n:this._defaultEdgeLabelFn(e,o,t);var u=Cpt(this._isDirected,e,o,t);return e=u.v,o=u.w,Object.freeze(u),this._edgeObjs[d]=u,mU(this._preds[o],e),mU(this._sucs[e],o),this._in[o][d]=u,this._out[e][d]=u,this._edgeCount++,this};vo.prototype.edge=function(e,o,t){var n=arguments.length===1?EE(this._isDirected,arguments[0]):U1(this._isDirected,e,o,t);return this._edgeLabels[n]};vo.prototype.hasEdge=function(e,o,t){var n=arguments.length===1?EE(this._isDirected,arguments[0]):U1(this._isDirected,e,o,t);return to.has(this._edgeLabels,n)};vo.prototype.removeEdge=function(e,o,t){var n=arguments.length===1?EE(this._isDirected,arguments[0]):U1(this._isDirected,e,o,t),i=this._edgeObjs[n];return i&&(e=i.v,o=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],dU(this._preds[o],e),dU(this._sucs[e],o),delete this._in[o][n],delete this._out[e][n],this._edgeCount--),this};vo.prototype.inEdges=function(e,o){var t=this._in[e];if(t){var n=to.values(t);return o?to.filter(n,function(i){return i.v===o}):n}};vo.prototype.outEdges=function(e,o){var t=this._out[e];if(t){var n=to.values(t);return o?to.filter(n,function(i){return i.w===o}):n}};vo.prototype.nodeEdges=function(e,o){var t=this.inEdges(e,o);if(t)return t.concat(this.outEdges(e,o))};function mU(e,o){e[o]?e[o]++:e[o]=1}function dU(e,o){--e[o]||delete e[o]}function U1(e,o,t,n){var i=""+o,s=""+t;if(!e&&i>s){var d=i;i=s,s=d}return i+pU+s+pU+(to.isUndefined(n)?_pt:n)}function Cpt(e,o,t,n){var i=""+o,s=""+t;if(!e&&i>s){var d=i;i=s,s=d}var u={v:i,w:s};return n&&(u.name=n),u}function EE(e,o){return U1(e,o.v,o.w,o.name)}});var hU=pt((QSn,fU)=>{fU.exports="2.1.8"});var _U=pt((YSn,gU)=>{gU.exports={Graph:Kb(),version:hU()}});var vU=pt((JSn,CU)=>{var bc=Vl(),vpt=Kb();CU.exports={write:xpt,read:Spt};function xpt(e){var o={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:bpt(e),edges:ypt(e)};return bc.isUndefined(e.graph())||(o.value=bc.clone(e.graph())),o}function bpt(e){return bc.map(e.nodes(),function(o){var t=e.node(o),n=e.parent(o),i={v:o};return bc.isUndefined(t)||(i.value=t),bc.isUndefined(n)||(i.parent=n),i})}function ypt(e){return bc.map(e.edges(),function(o){var t=e.edge(o),n={v:o.v,w:o.w};return bc.isUndefined(o.name)||(n.name=o.name),bc.isUndefined(t)||(n.value=t),n})}function Spt(e){var o=new vpt(e.options).setGraph(e.value);return bc.each(e.nodes,function(t){o.setNode(t.v,t.value),t.parent&&o.setParent(t.v,t.parent)}),bc.each(e.edges,function(t){o.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),o}});var bU=pt((KSn,xU)=>{var Xb=Vl();xU.exports=wpt;function wpt(e){var o={},t=[],n;function i(s){Xb.has(o,s)||(o[s]=!0,n.push(s),Xb.each(e.successors(s),i),Xb.each(e.predecessors(s),i))}return Xb.each(e.nodes(),function(s){n=[],i(s),n.length&&t.push(n)}),t}});var IE=pt((XSn,SU)=>{var yU=Vl();SU.exports=fs;function fs(){this._arr=[],this._keyIndices={}}fs.prototype.size=function(){return this._arr.length};fs.prototype.keys=function(){return this._arr.map(function(e){return e.key})};fs.prototype.has=function(e){return yU.has(this._keyIndices,e)};fs.prototype.priority=function(e){var o=this._keyIndices[e];if(o!==void 0)return this._arr[o].priority};fs.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};fs.prototype.add=function(e,o){var t=this._keyIndices;if(e=String(e),!yU.has(t,e)){var n=this._arr,i=n.length;return t[e]=i,n.push({key:e,priority:o}),this._decrease(i),!0}return!1};fs.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key};fs.prototype.decrease=function(e,o){var t=this._keyIndices[e];if(o>this._arr[t].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[t].priority+" New: "+o);this._arr[t].priority=o,this._decrease(t)};fs.prototype._heapify=function(e){var o=this._arr,t=2*e,n=t+1,i=e;t>1,!(o[n].priority{var Ppt=Vl(),Tpt=IE();wU.exports=Dpt;var Mpt=Ppt.constant(1);function Dpt(e,o,t,n){return Ept(e,String(o),t||Mpt,n||function(i){return e.outEdges(i)})}function Ept(e,o,t,n){var i={},s=new Tpt,d,u,f=function(_){var C=_.v!==d?_.v:_.w,x=i[C],y=t(_),P=u.distance+y;if(y<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+_+" Weight: "+y);P0&&(d=s.removeMin(),u=i[d],u.distance!==Number.POSITIVE_INFINITY);)n(d).forEach(f);return i}});var TU=pt((ewn,PU)=>{var Ipt=OE(),Opt=Vl();PU.exports=Apt;function Apt(e,o,t){return Opt.transform(e.nodes(),function(n,i){n[i]=Ipt(e,i,o,t)},{})}});var AE=pt((twn,DU)=>{var MU=Vl();DU.exports=Fpt;function Fpt(e){var o=0,t=[],n={},i=[];function s(d){var u=n[d]={onStack:!0,lowlink:o,index:o++};if(t.push(d),e.successors(d).forEach(function(C){MU.has(n,C)?n[C].onStack&&(u.lowlink=Math.min(u.lowlink,n[C].index)):(s(C),u.lowlink=Math.min(u.lowlink,n[C].lowlink))}),u.lowlink===u.index){var f=[],_;do _=t.pop(),n[_].onStack=!1,f.push(_);while(d!==_);i.push(f)}}return e.nodes().forEach(function(d){MU.has(n,d)||s(d)}),i}});var IU=pt((iwn,EU)=>{var kpt=Vl(),Bpt=AE();EU.exports=Rpt;function Rpt(e){return kpt.filter(Bpt(e),function(o){return o.length>1||o.length===1&&e.hasEdge(o[0],o[0])})}});var AU=pt((nwn,OU)=>{var Npt=Vl();OU.exports=Vpt;var Lpt=Npt.constant(1);function Vpt(e,o,t){return qpt(e,o||Lpt,t||function(n){return e.outEdges(n)})}function qpt(e,o,t){var n={},i=e.nodes();return i.forEach(function(s){n[s]={},n[s][s]={distance:0},i.forEach(function(d){s!==d&&(n[s][d]={distance:Number.POSITIVE_INFINITY})}),t(s).forEach(function(d){var u=d.v===s?d.w:d.v,f=o(d);n[s][u]={distance:f,predecessor:s}})}),i.forEach(function(s){var d=n[s];i.forEach(function(u){var f=n[u];i.forEach(function(_){var C=f[s],x=d[_],y=f[_],P=C.distance+x.distance;P{var W1=Vl();kU.exports=FU;FU.CycleException=Zb;function FU(e){var o={},t={},n=[];function i(s){if(W1.has(t,s))throw new Zb;W1.has(o,s)||(t[s]=!0,o[s]=!0,W1.each(e.predecessors(s),i),delete t[s],n.push(s))}if(W1.each(e.sinks(),i),W1.size(o)!==e.nodeCount())throw new Zb;return n}function Zb(){}Zb.prototype=new Error});var NU=pt((awn,RU)=>{var BU=FE();RU.exports=zpt;function zpt(e){try{BU(e)}catch(o){if(o instanceof BU.CycleException)return!1;throw o}return!0}});var kE=pt((rwn,VU)=>{var ey=Vl();VU.exports=Hpt;function Hpt(e,o,t){ey.isArray(o)||(o=[o]);var n=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],s={};return ey.each(o,function(d){if(!e.hasNode(d))throw new Error("Graph does not have node: "+d);LU(e,d,t==="post",s,n,i)}),i}function LU(e,o,t,n,i,s){ey.has(n,o)||(n[o]=!0,t||s.push(o),ey.each(i(o),function(d){LU(e,d,t,n,i,s)}),t&&s.push(o))}});var zU=pt((lwn,qU)=>{var Gpt=kE();qU.exports=jpt;function jpt(e,o){return Gpt(e,o,"post")}});var GU=pt((swn,HU)=>{var $pt=kE();HU.exports=Upt;function Upt(e,o){return $pt(e,o,"pre")}});var UU=pt((cwn,$U)=>{var jU=Vl(),Wpt=Kb(),Qpt=IE();$U.exports=Ypt;function Ypt(e,o){var t=new Wpt,n={},i=new Qpt,s;function d(f){var _=f.v===s?f.w:f.v,C=i.priority(_);if(C!==void 0){var x=o(f);x0;){if(s=i.removeMin(),jU.has(n,s))t.setEdge(s,n[s]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(s).forEach(d)}return t}});var QU=pt((pwn,WU)=>{WU.exports={components:bU(),dijkstra:OE(),dijkstraAll:TU(),findCycles:IU(),floydWarshall:AU(),isAcyclic:NU(),postorder:zU(),preorder:GU(),prim:UU(),tarjan:AE(),topsort:FE()}});var KU=pt((mwn,JU)=>{var YU=_U();JU.exports={Graph:YU.Graph,json:vU(),alg:QU(),version:YU.version}});var hs=pt((dwn,XU)=>{var ty;if(typeof Ms=="function")try{ty=KU()}catch{}ty||(ty=window.graphlib);XU.exports=ty});var eW=pt((fwn,ZU)=>{var Jpt=XD(),Kpt=1,Xpt=4;function Zpt(e){return Jpt(e,Kpt|Xpt)}ZU.exports=Zpt});var Q1=pt((hwn,tW)=>{var emt=Vd(),tmt=vc(),imt=k1(),nmt=Ll();function omt(e,o,t){if(!nmt(t))return!1;var n=typeof o;return(n=="number"?tmt(t)&&imt(o,t.length):n=="string"&&o in t)?emt(t[o],e):!1}tW.exports=omt});var oW=pt((gwn,nW)=>{var amt=$1(),rmt=Vd(),lmt=Q1(),smt=em(),iW=Object.prototype,cmt=iW.hasOwnProperty,pmt=amt(function(e,o){e=Object(e);var t=-1,n=o.length,i=n>2?o[2]:void 0;for(i&&lmt(o[0],o[1],i)&&(n=1);++t{var mmt=xc(),dmt=vc(),umt=Zc();function fmt(e){return function(o,t,n){var i=Object(o);if(!dmt(o)){var s=mmt(t,3);o=umt(o),t=function(u){return s(i[u],u,i)}}var d=e(o,t,n);return d>-1?i[s?o[d]:d]:void 0}}aW.exports=fmt});var sW=pt((Cwn,lW)=>{var hmt=/\s/;function gmt(e){for(var o=e.length;o--&&hmt.test(e.charAt(o)););return o}lW.exports=gmt});var pW=pt((vwn,cW)=>{var _mt=sW(),Cmt=/^\s+/;function vmt(e){return e&&e.slice(0,_mt(e)+1).replace(Cmt,"")}cW.exports=vmt});var fW=pt((xwn,uW)=>{var xmt=pW(),mW=Ll(),bmt=jd(),dW=NaN,ymt=/^[-+]0x[0-9a-f]+$/i,Smt=/^0b[01]+$/i,wmt=/^0o[0-7]+$/i,Pmt=parseInt;function Tmt(e){if(typeof e=="number")return e;if(bmt(e))return dW;if(mW(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=mW(o)?o+"":o}if(typeof e!="string")return e===0?e:+e;e=xmt(e);var t=Smt.test(e);return t||wmt.test(e)?Pmt(e.slice(2),t?2:8):ymt.test(e)?dW:+e}uW.exports=Tmt});var BE=pt((bwn,gW)=>{var Mmt=fW(),hW=1/0,Dmt=17976931348623157e292;function Emt(e){if(!e)return e===0?e:0;if(e=Mmt(e),e===hW||e===-hW){var o=e<0?-1:1;return o*Dmt}return e===e?e:0}gW.exports=Emt});var CW=pt((ywn,_W)=>{var Imt=BE();function Omt(e){var o=Imt(e),t=o%1;return o===o?t?o-t:o:0}_W.exports=Omt});var xW=pt((Swn,vW)=>{var Amt=PE(),Fmt=xc(),kmt=CW(),Bmt=Math.max;function Rmt(e,o,t){var n=e==null?0:e.length;if(!n)return-1;var i=t==null?0:kmt(t);return i<0&&(i=Bmt(n+i,0)),Amt(e,Fmt(o,3),i)}vW.exports=Rmt});var yW=pt((wwn,bW)=>{var Nmt=rW(),Lmt=xW(),Vmt=Nmt(Lmt);bW.exports=Vmt});var RE=pt((Pwn,SW)=>{var qmt=Yb();function zmt(e){var o=e==null?0:e.length;return o?qmt(e,1):[]}SW.exports=zmt});var PW=pt((Twn,wW)=>{var Hmt=Gb(),Gmt=ZD(),jmt=em();function $mt(e,o){return e==null?e:Hmt(e,Gmt(o),jmt)}wW.exports=$mt});var MW=pt((Mwn,TW)=>{function Umt(e){var o=e==null?0:e.length;return o?e[o-1]:void 0}TW.exports=Umt});var EW=pt((Dwn,DW)=>{var Wmt=O1(),Qmt=jb(),Ymt=xc();function Jmt(e,o){var t={};return o=Ymt(o,3),Qmt(e,function(n,i,s){Wmt(t,i,o(n,i,s))}),t}DW.exports=Jmt});var iy=pt((Ewn,IW)=>{var Kmt=jd();function Xmt(e,o,t){for(var n=-1,i=e.length;++n{function Zmt(e,o){return e>o}OW.exports=Zmt});var kW=pt((Own,FW)=>{var edt=iy(),tdt=AW(),idt=tm();function ndt(e){return e&&e.length?edt(e,idt,tdt):void 0}FW.exports=ndt});var NE=pt((Awn,BW)=>{var odt=O1(),adt=Vd();function rdt(e,o,t){(t!==void 0&&!adt(e[o],t)||t===void 0&&!(o in e))&&odt(e,o,t)}BW.exports=rdt});var LW=pt((Fwn,NW)=>{var ldt=Xp(),sdt=q1(),cdt=qs(),pdt="[object Object]",mdt=Function.prototype,ddt=Object.prototype,RW=mdt.toString,udt=ddt.hasOwnProperty,fdt=RW.call(Object);function hdt(e){if(!cdt(e)||ldt(e)!=pdt)return!1;var o=sdt(e);if(o===null)return!0;var t=udt.call(o,"constructor")&&o.constructor;return typeof t=="function"&&t instanceof t&&RW.call(t)==fdt}NW.exports=hdt});var LE=pt((kwn,VW)=>{function gdt(e,o){if(!(o==="constructor"&&typeof e[o]=="function")&&o!="__proto__")return e[o]}VW.exports=gdt});var zW=pt((Bwn,qW)=>{var _dt=uu(),Cdt=em();function vdt(e){return _dt(e,Cdt(e))}qW.exports=vdt});var WW=pt((Rwn,UW)=>{var HW=NE(),xdt=BD(),bdt=YD(),ydt=RD(),Sdt=KD(),GW=fu(),jW=Wa(),wdt=ME(),Pdt=zd(),Tdt=cu(),Mdt=Ll(),Ddt=LW(),Edt=_u(),$W=LE(),Idt=zW();function Odt(e,o,t,n,i,s,d){var u=$W(e,t),f=$W(o,t),_=d.get(f);if(_){HW(e,t,_);return}var C=s?s(u,f,t+"",e,o,d):void 0,x=C===void 0;if(x){var y=jW(f),P=!y&&Pdt(f),S=!y&&!P&&Edt(f);C=f,y||P||S?jW(u)?C=u:wdt(u)?C=ydt(u):P?(x=!1,C=xdt(f,!0)):S?(x=!1,C=bdt(f,!0)):C=[]:Ddt(f)||GW(f)?(C=u,GW(u)?C=Idt(u):(!Mdt(u)||Tdt(u))&&(C=Sdt(f))):x=!1}x&&(d.set(f,C),i(C,f,n,s,d),d.delete(f)),HW(e,t,C)}UW.exports=Odt});var JW=pt((Nwn,YW)=>{var Adt=I1(),Fdt=NE(),kdt=Gb(),Bdt=WW(),Rdt=Ll(),Ndt=em(),Ldt=LE();function QW(e,o,t,n,i){e!==o&&kdt(o,function(s,d){if(i||(i=new Adt),Rdt(s))Bdt(e,o,d,t,QW,n,i);else{var u=n?n(Ldt(e,d),s,d+"",e,o,i):void 0;u===void 0&&(u=s),Fdt(e,d,u)}},Ndt)}YW.exports=QW});var XW=pt((Lwn,KW)=>{var Vdt=$1(),qdt=Q1();function zdt(e){return Vdt(function(o,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,d=i>2?t[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,d&&qdt(t[0],t[1],d)&&(s=i<3?void 0:s,i=1),o=Object(o);++n{var Hdt=JW(),Gdt=XW(),jdt=Gdt(function(e,o,t){Hdt(e,o,t)});ZW.exports=jdt});var VE=pt((qwn,tQ)=>{function $dt(e,o){return e{var Udt=iy(),Wdt=VE(),Qdt=tm();function Ydt(e){return e&&e.length?Udt(e,Qdt,Wdt):void 0}iQ.exports=Ydt});var aQ=pt((Hwn,oQ)=>{var Jdt=iy(),Kdt=xc(),Xdt=VE();function Zdt(e,o){return e&&e.length?Jdt(e,Kdt(o,2),Xdt):void 0}oQ.exports=Zdt});var lQ=pt((Gwn,rQ)=>{var e0t=us(),t0t=function(){return e0t.Date.now()};rQ.exports=t0t});var pQ=pt((jwn,cQ)=>{var i0t=A1(),n0t=G1(),o0t=k1(),sQ=Ll(),a0t=xu();function r0t(e,o,t,n){if(!sQ(e))return e;o=n0t(o,e);for(var i=-1,s=o.length,d=s-1,u=e;u!=null&&++i{var l0t=j1(),s0t=pQ(),c0t=G1();function p0t(e,o,t){for(var n=-1,i=o.length,s={};++n{var m0t=dQ(),d0t=uE();function u0t(e,o){return m0t(e,o,function(t,n){return d0t(e,n)})}uQ.exports=u0t});var gQ=pt((Wwn,hQ)=>{var f0t=RE(),h0t=SE(),g0t=wE();function _0t(e){return g0t(h0t(e,void 0,f0t),e+"")}hQ.exports=_0t});var CQ=pt((Qwn,_Q)=>{var C0t=fQ(),v0t=gQ(),x0t=v0t(function(e,o){return e==null?{}:C0t(e,o)});_Q.exports=x0t});var xQ=pt((Ywn,vQ)=>{var b0t=Math.ceil,y0t=Math.max;function S0t(e,o,t,n){for(var i=-1,s=y0t(b0t((o-e)/(t||1)),0),d=Array(s);s--;)d[n?s:++i]=e,e+=t;return d}vQ.exports=S0t});var yQ=pt((Jwn,bQ)=>{var w0t=xQ(),P0t=Q1(),qE=BE();function T0t(e){return function(o,t,n){return n&&typeof n!="number"&&P0t(o,t,n)&&(t=n=void 0),o=qE(o),t===void 0?(t=o,o=0):t=qE(t),n=n===void 0?o{var M0t=yQ(),D0t=M0t();SQ.exports=D0t});var TQ=pt((Xwn,PQ)=>{function E0t(e,o){var t=e.length;for(e.sort(o);t--;)e[t]=e[t].value;return e}PQ.exports=E0t});var EQ=pt((Zwn,DQ)=>{var MQ=jd();function I0t(e,o){if(e!==o){var t=e!==void 0,n=e===null,i=e===e,s=MQ(e),d=o!==void 0,u=o===null,f=o===o,_=MQ(o);if(!u&&!_&&!s&&e>o||s&&d&&f&&!u&&!_||n&&d&&f||!t&&f||!i)return 1;if(!n&&!s&&!_&&e{var O0t=EQ();function A0t(e,o,t){for(var n=-1,i=e.criteria,s=o.criteria,d=i.length,u=t.length;++n=u)return f;var _=t[n];return f*(_=="desc"?-1:1)}}return e.index-o.index}IQ.exports=A0t});var FQ=pt((tPn,AQ)=>{var zE=H1(),F0t=j1(),k0t=xc(),B0t=CE(),R0t=TQ(),N0t=B1(),L0t=OQ(),V0t=tm(),q0t=Wa();function z0t(e,o,t){o.length?o=zE(o,function(s){return q0t(s)?function(d){return F0t(d,s.length===1?s[0]:s)}:s}):o=[V0t];var n=-1;o=zE(o,N0t(k0t));var i=B0t(e,function(s,d,u){var f=zE(o,function(_){return _(s)});return{criteria:f,index:++n,value:s}});return R0t(i,function(s,d){return L0t(s,d,t)})}AQ.exports=z0t});var RQ=pt((iPn,BQ)=>{var H0t=Yb(),G0t=FQ(),j0t=$1(),kQ=Q1(),$0t=j0t(function(e,o){if(e==null)return[];var t=o.length;return t>1&&kQ(e,o[0],o[1])?o=[]:t>2&&kQ(o[0],o[1],o[2])&&(o=[o[0]]),G0t(e,H0t(o,1),[])});BQ.exports=$0t});var LQ=pt((nPn,NQ)=>{var U0t=mE(),W0t=0;function Q0t(e){var o=++W0t;return U0t(e)+o}NQ.exports=Q0t});var qQ=pt((oPn,VQ)=>{function Y0t(e,o,t){for(var n=-1,i=e.length,s=o.length,d={};++n{var J0t=A1(),K0t=qQ();function X0t(e,o){return K0t(e||[],o||[],J0t)}zQ.exports=X0t});var Sa=pt((rPn,GQ)=>{var ny;if(typeof Ms=="function")try{ny={cloneDeep:eW(),constant:Hb(),defaults:oW(),each:tE(),filter:hE(),find:yW(),flatten:RE(),forEach:eE(),forIn:PW(),has:gE(),isUndefined:_E(),last:MW(),map:vE(),mapValues:EW(),max:kW(),merge:eQ(),min:nQ(),minBy:aQ(),now:lQ(),pick:CQ(),range:wQ(),reduce:xE(),sortBy:RQ(),uniqueId:LQ(),values:DE(),zipObject:HQ()}}catch{}ny||(ny=window._);GQ.exports=ny});var UQ=pt((sPn,$Q)=>{$Q.exports=oy;function oy(){var e={};e._next=e._prev=e,this._sentinel=e}oy.prototype.dequeue=function(){var e=this._sentinel,o=e._prev;if(o!==e)return jQ(o),o};oy.prototype.enqueue=function(e){var o=this._sentinel;e._prev&&e._next&&jQ(e),e._next=o._next,o._next._prev=e,o._next=e,e._prev=o};oy.prototype.toString=function(){for(var e=[],o=this._sentinel,t=o._prev;t!==o;)e.push(JSON.stringify(t,Z0t)),t=t._prev;return"["+e.join(", ")+"]"};function jQ(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function Z0t(e,o){if(e!=="_next"&&e!=="_prev")return o}});var QQ=pt((cPn,WQ)=>{var ep=Sa(),eut=hs().Graph,tut=UQ();WQ.exports=nut;var iut=ep.constant(1);function nut(e,o){if(e.nodeCount()<=1)return[];var t=aut(e,o||iut),n=out(t.graph,t.buckets,t.zeroIdx);return ep.flatten(ep.map(n,function(i){return e.outEdges(i.v,i.w)}),!0)}function out(e,o,t){for(var n=[],i=o[o.length-1],s=o[0],d;e.nodeCount();){for(;d=s.dequeue();)HE(e,o,t,d);for(;d=i.dequeue();)HE(e,o,t,d);if(e.nodeCount()){for(var u=o.length-2;u>0;--u)if(d=o[u].dequeue(),d){n=n.concat(HE(e,o,t,d,!0));break}}}return n}function HE(e,o,t,n,i){var s=i?[]:void 0;return ep.forEach(e.inEdges(n.v),function(d){var u=e.edge(d),f=e.node(d.v);i&&s.push({v:d.v,w:d.w}),f.out-=u,GE(o,t,f)}),ep.forEach(e.outEdges(n.v),function(d){var u=e.edge(d),f=d.w,_=e.node(f);_.in-=u,GE(o,t,_)}),e.removeNode(n.v),s}function aut(e,o){var t=new eut,n=0,i=0;ep.forEach(e.nodes(),function(u){t.setNode(u,{v:u,in:0,out:0})}),ep.forEach(e.edges(),function(u){var f=t.edge(u.v,u.w)||0,_=o(u),C=f+_;t.setEdge(u.v,u.w,C),i=Math.max(i,t.node(u.v).out+=_),n=Math.max(n,t.node(u.w).in+=_)});var s=ep.range(i+n+3).map(function(){return new tut}),d=n+1;return ep.forEach(t.nodes(),function(u){GE(s,d,t.node(u))}),{graph:t,buckets:s,zeroIdx:d}}function GE(e,o,t){t.out?t.in?e[t.out-t.in+o].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}});var JQ=pt((pPn,YQ)=>{"use strict";var Ud=Sa(),rut=QQ();YQ.exports={run:lut,undo:cut};function lut(e){var o=e.graph().acyclicer==="greedy"?rut(e,t(e)):sut(e);Ud.forEach(o,function(n){var i=e.edge(n);e.removeEdge(n),i.forwardName=n.name,i.reversed=!0,e.setEdge(n.w,n.v,i,Ud.uniqueId("rev"))});function t(n){return function(i){return n.edge(i).weight}}}function sut(e){var o=[],t={},n={};function i(s){Ud.has(n,s)||(n[s]=!0,t[s]=!0,Ud.forEach(e.outEdges(s),function(d){Ud.has(t,d.w)?o.push(d):i(d.w)}),delete t[s])}return Ud.forEach(e.nodes(),i),o}function cut(e){Ud.forEach(e.edges(),function(o){var t=e.edge(o);if(t.reversed){e.removeEdge(o);var n=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(o.w,o.v,t,n)}})}});var rl=pt((mPn,eY)=>{"use strict";var Ho=Sa(),KQ=hs().Graph;eY.exports={addDummyNode:XQ,simplify:put,asNonCompoundGraph:mut,successorWeights:dut,predecessorWeights:uut,intersectRect:fut,buildLayerMatrix:hut,normalizeRanks:gut,removeEmptyRanks:_ut,addBorderNode:Cut,maxRank:ZQ,partition:vut,time:xut,notime:but};function XQ(e,o,t,n){var i;do i=Ho.uniqueId(n);while(e.hasNode(i));return t.dummy=o,e.setNode(i,t),i}function put(e){var o=new KQ().setGraph(e.graph());return Ho.forEach(e.nodes(),function(t){o.setNode(t,e.node(t))}),Ho.forEach(e.edges(),function(t){var n=o.edge(t.v,t.w)||{weight:0,minlen:1},i=e.edge(t);o.setEdge(t.v,t.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),o}function mut(e){var o=new KQ({multigraph:e.isMultigraph()}).setGraph(e.graph());return Ho.forEach(e.nodes(),function(t){e.children(t).length||o.setNode(t,e.node(t))}),Ho.forEach(e.edges(),function(t){o.setEdge(t,e.edge(t))}),o}function dut(e){var o=Ho.map(e.nodes(),function(t){var n={};return Ho.forEach(e.outEdges(t),function(i){n[i.w]=(n[i.w]||0)+e.edge(i).weight}),n});return Ho.zipObject(e.nodes(),o)}function uut(e){var o=Ho.map(e.nodes(),function(t){var n={};return Ho.forEach(e.inEdges(t),function(i){n[i.v]=(n[i.v]||0)+e.edge(i).weight}),n});return Ho.zipObject(e.nodes(),o)}function fut(e,o){var t=e.x,n=e.y,i=o.x-t,s=o.y-n,d=e.width/2,u=e.height/2;if(!i&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var f,_;return Math.abs(s)*d>Math.abs(i)*u?(s<0&&(u=-u),f=u*i/s,_=u):(i<0&&(d=-d),f=d,_=d*s/i),{x:t+f,y:n+_}}function hut(e){var o=Ho.map(Ho.range(ZQ(e)+1),function(){return[]});return Ho.forEach(e.nodes(),function(t){var n=e.node(t),i=n.rank;Ho.isUndefined(i)||(o[i][n.order]=t)}),o}function gut(e){var o=Ho.min(Ho.map(e.nodes(),function(t){return e.node(t).rank}));Ho.forEach(e.nodes(),function(t){var n=e.node(t);Ho.has(n,"rank")&&(n.rank-=o)})}function _ut(e){var o=Ho.min(Ho.map(e.nodes(),function(s){return e.node(s).rank})),t=[];Ho.forEach(e.nodes(),function(s){var d=e.node(s).rank-o;t[d]||(t[d]=[]),t[d].push(s)});var n=0,i=e.graph().nodeRankFactor;Ho.forEach(t,function(s,d){Ho.isUndefined(s)&&d%i!==0?--n:n&&Ho.forEach(s,function(u){e.node(u).rank+=n})})}function Cut(e,o,t,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=t,i.order=n),XQ(e,"border",i,o)}function ZQ(e){return Ho.max(Ho.map(e.nodes(),function(o){var t=e.node(o).rank;if(!Ho.isUndefined(t))return t}))}function vut(e,o){var t={lhs:[],rhs:[]};return Ho.forEach(e,function(n){o(n)?t.lhs.push(n):t.rhs.push(n)}),t}function xut(e,o){var t=Ho.now();try{return o()}finally{console.log(e+" time: "+(Ho.now()-t)+"ms")}}function but(e,o){return o()}});var nY=pt((dPn,iY)=>{"use strict";var tY=Sa(),yut=rl();iY.exports={run:Sut,undo:Put};function Sut(e){e.graph().dummyChains=[],tY.forEach(e.edges(),function(o){wut(e,o)})}function wut(e,o){var t=o.v,n=e.node(t).rank,i=o.w,s=e.node(i).rank,d=o.name,u=e.edge(o),f=u.labelRank;if(s!==n+1){e.removeEdge(o);var _,C,x;for(x=0,++n;n{"use strict";var ay=Sa();oY.exports={longestPath:Tut,slack:Mut};function Tut(e){var o={};function t(n){var i=e.node(n);if(ay.has(o,n))return i.rank;o[n]=!0;var s=ay.min(ay.map(e.outEdges(n),function(d){return t(d.w)-e.edge(d).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),i.rank=s}ay.forEach(e.sources(),t)}function Mut(e,o){return e.node(o.w).rank-e.node(o.v).rank-e.edge(o).minlen}});var jE=pt((fPn,aY)=>{"use strict";var ry=Sa(),Dut=hs().Graph,ly=Y1().slack;aY.exports=Eut;function Eut(e){var o=new Dut({directed:!1}),t=e.nodes()[0],n=e.nodeCount();o.setNode(t,{});for(var i,s;Iut(o,e){"use strict";var tp=Sa(),Fut=jE(),kut=Y1().slack,But=Y1().longestPath,Rut=hs().alg.preorder,Nut=hs().alg.postorder,Lut=rl().simplify;dY.exports=Wd;Wd.initLowLimValues=UE;Wd.initCutValues=$E;Wd.calcCutValue=lY;Wd.leaveEdge=cY;Wd.enterEdge=pY;Wd.exchangeEdges=mY;function Wd(e){e=Lut(e),But(e);var o=Fut(e);UE(o),$E(o,e);for(var t,n;t=cY(o);)n=pY(o,e,t),mY(o,e,t,n)}function $E(e,o){var t=Nut(e,e.nodes());t=t.slice(0,t.length-1),tp.forEach(t,function(n){Vut(e,o,n)})}function Vut(e,o,t){var n=e.node(t),i=n.parent;e.edge(t,i).cutvalue=lY(e,o,t)}function lY(e,o,t){var n=e.node(t),i=n.parent,s=!0,d=o.edge(t,i),u=0;return d||(s=!1,d=o.edge(i,t)),u=d.weight,tp.forEach(o.nodeEdges(t),function(f){var _=f.v===t,C=_?f.w:f.v;if(C!==i){var x=_===s,y=o.edge(f).weight;if(u+=x?y:-y,zut(e,t,C)){var P=e.edge(t,C).cutvalue;u+=x?-P:P}}}),u}function UE(e,o){arguments.length<2&&(o=e.nodes()[0]),sY(e,{},1,o)}function sY(e,o,t,n,i){var s=t,d=e.node(n);return o[n]=!0,tp.forEach(e.neighbors(n),function(u){tp.has(o,u)||(t=sY(e,o,t,u,n))}),d.low=s,d.lim=t++,i?d.parent=i:delete d.parent,t}function cY(e){return tp.find(e.edges(),function(o){return e.edge(o).cutvalue<0})}function pY(e,o,t){var n=t.v,i=t.w;o.hasEdge(n,i)||(n=t.w,i=t.v);var s=e.node(n),d=e.node(i),u=s,f=!1;s.lim>d.lim&&(u=d,f=!0);var _=tp.filter(o.edges(),function(C){return f===rY(e,e.node(C.v),u)&&f!==rY(e,e.node(C.w),u)});return tp.minBy(_,function(C){return kut(o,C)})}function mY(e,o,t,n){var i=t.v,s=t.w;e.removeEdge(i,s),e.setEdge(n.v,n.w,{}),UE(e),$E(e,o),qut(e,o)}function qut(e,o){var t=tp.find(e.nodes(),function(i){return!o.node(i).parent}),n=Rut(e,t);n=n.slice(1),tp.forEach(n,function(i){var s=e.node(i).parent,d=o.edge(i,s),u=!1;d||(d=o.edge(s,i),u=!0),o.node(i).rank=o.node(s).rank+(u?d.minlen:-d.minlen)})}function zut(e,o,t){return e.hasEdge(o,t)}function rY(e,o,t){return t.low<=o.lim&&o.lim<=t.lim}});var _Y=pt((gPn,gY)=>{"use strict";var Hut=Y1(),hY=Hut.longestPath,Gut=jE(),jut=uY();gY.exports=$ut;function $ut(e){switch(e.graph().ranker){case"network-simplex":fY(e);break;case"tight-tree":Wut(e);break;case"longest-path":Uut(e);break;default:fY(e)}}var Uut=hY;function Wut(e){hY(e),Gut(e)}function fY(e){jut(e)}});var vY=pt((_Pn,CY)=>{var WE=Sa();CY.exports=Qut;function Qut(e){var o=Jut(e);WE.forEach(e.graph().dummyChains,function(t){for(var n=e.node(t),i=n.edgeObj,s=Yut(e,o,i.v,i.w),d=s.path,u=s.lca,f=0,_=d[f],C=!0;t!==i.w;){if(n=e.node(t),C){for(;(_=d[f])!==u&&e.node(_).maxRankd||u>o[f].lim));for(_=f,f=n;(f=e.parent(f))!==_;)s.push(f);return{path:i.concat(s.reverse()),lca:_}}function Jut(e){var o={},t=0;function n(i){var s=t;WE.forEach(e.children(i),n),o[i]={low:s,lim:t++}}return WE.forEach(e.children(),n),o}});var yY=pt((CPn,bY)=>{var ip=Sa(),QE=rl();bY.exports={run:Kut,cleanup:eft};function Kut(e){var o=QE.addDummyNode(e,"root",{},"_root"),t=Xut(e),n=ip.max(ip.values(t))-1,i=2*n+1;e.graph().nestingRoot=o,ip.forEach(e.edges(),function(d){e.edge(d).minlen*=i});var s=Zut(e)+1;ip.forEach(e.children(),function(d){xY(e,o,i,s,n,t,d)}),e.graph().nodeRankFactor=i}function xY(e,o,t,n,i,s,d){var u=e.children(d);if(!u.length){d!==o&&e.setEdge(o,d,{weight:0,minlen:t});return}var f=QE.addBorderNode(e,"_bt"),_=QE.addBorderNode(e,"_bb"),C=e.node(d);e.setParent(f,d),C.borderTop=f,e.setParent(_,d),C.borderBottom=_,ip.forEach(u,function(x){xY(e,o,t,n,i,s,x);var y=e.node(x),P=y.borderTop?y.borderTop:x,S=y.borderBottom?y.borderBottom:x,M=y.borderTop?n:2*n,D=P!==S?1:i-s[d]+1;e.setEdge(f,P,{weight:M,minlen:D,nestingEdge:!0}),e.setEdge(S,_,{weight:M,minlen:D,nestingEdge:!0})}),e.parent(d)||e.setEdge(o,f,{weight:0,minlen:i+s[d]})}function Xut(e){var o={};function t(n,i){var s=e.children(n);s&&s.length&&ip.forEach(s,function(d){t(d,i+1)}),o[n]=i}return ip.forEach(e.children(),function(n){t(n,1)}),o}function Zut(e){return ip.reduce(e.edges(),function(o,t){return o+e.edge(t).weight},0)}function eft(e){var o=e.graph();e.removeNode(o.nestingRoot),delete o.nestingRoot,ip.forEach(e.edges(),function(t){var n=e.edge(t);n.nestingEdge&&e.removeEdge(t)})}});var PY=pt((vPn,wY)=>{var YE=Sa(),tft=rl();wY.exports=ift;function ift(e){function o(t){var n=e.children(t),i=e.node(t);if(n.length&&YE.forEach(n,o),YE.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var s=i.minRank,d=i.maxRank+1;s{"use strict";var yc=Sa();DY.exports={adjust:nft,undo:oft};function nft(e){var o=e.graph().rankdir.toLowerCase();(o==="lr"||o==="rl")&&MY(e)}function oft(e){var o=e.graph().rankdir.toLowerCase();(o==="bt"||o==="rl")&&aft(e),(o==="lr"||o==="rl")&&(rft(e),MY(e))}function MY(e){yc.forEach(e.nodes(),function(o){TY(e.node(o))}),yc.forEach(e.edges(),function(o){TY(e.edge(o))})}function TY(e){var o=e.width;e.width=e.height,e.height=o}function aft(e){yc.forEach(e.nodes(),function(o){JE(e.node(o))}),yc.forEach(e.edges(),function(o){var t=e.edge(o);yc.forEach(t.points,JE),yc.has(t,"y")&&JE(t)})}function JE(e){e.y=-e.y}function rft(e){yc.forEach(e.nodes(),function(o){KE(e.node(o))}),yc.forEach(e.edges(),function(o){var t=e.edge(o);yc.forEach(t.points,KE),yc.has(t,"x")&&KE(t)})}function KE(e){var o=e.x;e.x=e.y,e.y=o}});var OY=pt((bPn,IY)=>{"use strict";var np=Sa();IY.exports=lft;function lft(e){var o={},t=np.filter(e.nodes(),function(u){return!e.children(u).length}),n=np.max(np.map(t,function(u){return e.node(u).rank})),i=np.map(np.range(n+1),function(){return[]});function s(u){if(!np.has(o,u)){o[u]=!0;var f=e.node(u);i[f.rank].push(u),np.forEach(e.successors(u),s)}}var d=np.sortBy(t,function(u){return e.node(u).rank});return np.forEach(d,s),i}});var FY=pt((yPn,AY)=>{"use strict";var im=Sa();AY.exports=sft;function sft(e,o){for(var t=0,n=1;n0;)C%2&&(x+=u[C+1]),C=C-1>>1,u[C]+=_.weight;f+=_.weight*x})),f}});var RY=pt((SPn,BY)=>{var kY=Sa();BY.exports=pft;function pft(e,o){return kY.map(o,function(t){var n=e.inEdges(t);if(n.length){var i=kY.reduce(n,function(s,d){var u=e.edge(d),f=e.node(d.v);return{sum:s.sum+u.weight*f.order,weight:s.weight+u.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:t}})}});var LY=pt((wPn,NY)=>{"use strict";var ql=Sa();NY.exports=mft;function mft(e,o){var t={};ql.forEach(e,function(i,s){var d=t[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:s};ql.isUndefined(i.barycenter)||(d.barycenter=i.barycenter,d.weight=i.weight)}),ql.forEach(o.edges(),function(i){var s=t[i.v],d=t[i.w];!ql.isUndefined(s)&&!ql.isUndefined(d)&&(d.indegree++,s.out.push(t[i.w]))});var n=ql.filter(t,function(i){return!i.indegree});return dft(n)}function dft(e){var o=[];function t(s){return function(d){d.merged||(ql.isUndefined(d.barycenter)||ql.isUndefined(s.barycenter)||d.barycenter>=s.barycenter)&&uft(s,d)}}function n(s){return function(d){d.in.push(s),--d.indegree===0&&e.push(d)}}for(;e.length;){var i=e.pop();o.push(i),ql.forEach(i.in.reverse(),t(i)),ql.forEach(i.out,n(i))}return ql.map(ql.filter(o,function(s){return!s.merged}),function(s){return ql.pick(s,["vs","i","barycenter","weight"])})}function uft(e,o){var t=0,n=0;e.weight&&(t+=e.barycenter*e.weight,n+=e.weight),o.weight&&(t+=o.barycenter*o.weight,n+=o.weight),e.vs=o.vs.concat(e.vs),e.barycenter=t/n,e.weight=n,e.i=Math.min(o.i,e.i),o.merged=!0}});var zY=pt((PPn,qY)=>{var J1=Sa(),fft=rl();qY.exports=hft;function hft(e,o){var t=fft.partition(e,function(C){return J1.has(C,"barycenter")}),n=t.lhs,i=J1.sortBy(t.rhs,function(C){return-C.i}),s=[],d=0,u=0,f=0;n.sort(gft(!!o)),f=VY(s,i,f),J1.forEach(n,function(C){f+=C.vs.length,s.push(C.vs),d+=C.barycenter*C.weight,u+=C.weight,f=VY(s,i,f)});var _={vs:J1.flatten(s,!0)};return u&&(_.barycenter=d/u,_.weight=u),_}function VY(e,o,t){for(var n;o.length&&(n=J1.last(o)).i<=t;)o.pop(),e.push(n.vs),t++;return t}function gft(e){return function(o,t){return o.barycentert.barycenter?1:e?t.i-o.i:o.i-t.i}}});var jY=pt((TPn,GY)=>{var nm=Sa(),_ft=RY(),Cft=LY(),vft=zY();GY.exports=HY;function HY(e,o,t,n){var i=e.children(o),s=e.node(o),d=s?s.borderLeft:void 0,u=s?s.borderRight:void 0,f={};d&&(i=nm.filter(i,function(S){return S!==d&&S!==u}));var _=_ft(e,i);nm.forEach(_,function(S){if(e.children(S.v).length){var M=HY(e,S.v,t,n);f[S.v]=M,nm.has(M,"barycenter")&&bft(S,M)}});var C=Cft(_,t);xft(C,f);var x=vft(C,n);if(d&&(x.vs=nm.flatten([d,x.vs,u],!0),e.predecessors(d).length)){var y=e.node(e.predecessors(d)[0]),P=e.node(e.predecessors(u)[0]);nm.has(x,"barycenter")||(x.barycenter=0,x.weight=0),x.barycenter=(x.barycenter*x.weight+y.order+P.order)/(x.weight+2),x.weight+=2}return x}function xft(e,o){nm.forEach(e,function(t){t.vs=nm.flatten(t.vs.map(function(n){return o[n]?o[n].vs:n}),!0)})}function bft(e,o){nm.isUndefined(e.barycenter)?(e.barycenter=o.barycenter,e.weight=o.weight):(e.barycenter=(e.barycenter*e.weight+o.barycenter*o.weight)/(e.weight+o.weight),e.weight+=o.weight)}});var UY=pt((MPn,$Y)=>{var K1=Sa(),yft=hs().Graph;$Y.exports=Sft;function Sft(e,o,t){var n=wft(e),i=new yft({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(s){return e.node(s)});return K1.forEach(e.nodes(),function(s){var d=e.node(s),u=e.parent(s);(d.rank===o||d.minRank<=o&&o<=d.maxRank)&&(i.setNode(s),i.setParent(s,u||n),K1.forEach(e[t](s),function(f){var _=f.v===s?f.w:f.v,C=i.edge(_,s),x=K1.isUndefined(C)?0:C.weight;i.setEdge(_,s,{weight:e.edge(f).weight+x})}),K1.has(d,"minRank")&&i.setNode(s,{borderLeft:d.borderLeft[o],borderRight:d.borderRight[o]}))}),i}function wft(e){for(var o;e.hasNode(o=K1.uniqueId("_root")););return o}});var QY=pt((DPn,WY)=>{var Pft=Sa();WY.exports=Tft;function Tft(e,o,t){var n={},i;Pft.forEach(t,function(s){for(var d=e.parent(s),u,f;d;){if(u=e.parent(d),u?(f=n[u],n[u]=d):(f=i,i=d),f&&f!==d){o.setEdge(f,d);return}d=u}})}});var ZY=pt((EPn,XY)=>{"use strict";var om=Sa(),Mft=OY(),Dft=FY(),Eft=jY(),Ift=UY(),Oft=QY(),Aft=hs().Graph,YY=rl();XY.exports=Fft;function Fft(e){var o=YY.maxRank(e),t=JY(e,om.range(1,o+1),"inEdges"),n=JY(e,om.range(o-1,-1,-1),"outEdges"),i=Mft(e);KY(e,i);for(var s=Number.POSITIVE_INFINITY,d,u=0,f=0;f<4;++u,++f){kft(u%2?t:n,u%4>=2),i=YY.buildLayerMatrix(e);var _=Dft(e,i);_{"use strict";var io=Sa(),Bft=hs().Graph,Rft=rl();sJ.exports={positionX:Vft,findType1Conflicts:eJ,findType2Conflicts:tJ,addConflict:XE,hasConflict:iJ,verticalAlignment:nJ,horizontalCompaction:oJ,alignCoordinates:rJ,findSmallestWidthAlignment:aJ,balance:lJ};function eJ(e,o){var t={};function n(i,s){var d=0,u=0,f=i.length,_=io.last(s);return io.forEach(s,function(C,x){var y=Nft(e,C),P=y?e.node(y).order:f;(y||C===_)&&(io.forEach(s.slice(u,x+1),function(S){io.forEach(e.predecessors(S),function(M){var D=e.node(M),k=D.order;(k_)&&XE(t,y,C)})})}function i(s,d){var u=-1,f,_=0;return io.forEach(d,function(C,x){if(e.node(C).dummy==="border"){var y=e.predecessors(C);y.length&&(f=e.node(y[0]).order,n(d,_,x,u,f),_=x,u=f)}n(d,_,d.length,f,s.length)}),d}return io.reduce(o,i),t}function Nft(e,o){if(e.node(o).dummy)return io.find(e.predecessors(o),function(t){return e.node(t).dummy})}function XE(e,o,t){if(o>t){var n=o;o=t,t=n}var i=e[o];i||(e[o]=i={}),i[t]=!0}function iJ(e,o,t){if(o>t){var n=o;o=t,t=n}return io.has(e[o],t)}function nJ(e,o,t,n){var i={},s={},d={};return io.forEach(o,function(u){io.forEach(u,function(f,_){i[f]=f,s[f]=f,d[f]=_})}),io.forEach(o,function(u){var f=-1;io.forEach(u,function(_){var C=n(_);if(C.length){C=io.sortBy(C,function(M){return d[M]});for(var x=(C.length-1)/2,y=Math.floor(x),P=Math.ceil(x);y<=P;++y){var S=C[y];s[_]===_&&f{"use strict";var X1=Sa(),pJ=rl(),Hft=cJ().positionX;mJ.exports=Gft;function Gft(e){e=pJ.asNonCompoundGraph(e),jft(e),X1.forEach(Hft(e),function(o,t){e.node(t).x=o})}function jft(e){var o=pJ.buildLayerMatrix(e),t=e.graph().ranksep,n=0;X1.forEach(o,function(i){var s=X1.max(X1.map(i,function(d){return e.node(d).height}));X1.forEach(i,function(d){e.node(d).y=n+s/2}),n+=s+t})}});var CJ=pt((APn,_J)=>{"use strict";var fo=Sa(),uJ=JQ(),fJ=nY(),$ft=_Y(),Uft=rl().normalizeRanks,Wft=vY(),Qft=rl().removeEmptyRanks,hJ=yY(),Yft=PY(),gJ=EY(),Jft=ZY(),Kft=dJ(),am=rl(),Xft=hs().Graph;_J.exports=Zft;function Zft(e,o){var t=o&&o.debugTiming?am.time:am.notime;t("layout",function(){var n=t(" buildLayoutGraph",function(){return p1t(e)});t(" runLayout",function(){e1t(n,t)}),t(" updateInputGraph",function(){t1t(e,n)})})}function e1t(e,o){o(" makeSpaceForEdgeLabels",function(){m1t(e)}),o(" removeSelfEdges",function(){x1t(e)}),o(" acyclic",function(){uJ.run(e)}),o(" nestingGraph.run",function(){hJ.run(e)}),o(" rank",function(){$ft(am.asNonCompoundGraph(e))}),o(" injectEdgeLabelProxies",function(){d1t(e)}),o(" removeEmptyRanks",function(){Qft(e)}),o(" nestingGraph.cleanup",function(){hJ.cleanup(e)}),o(" normalizeRanks",function(){Uft(e)}),o(" assignRankMinMax",function(){u1t(e)}),o(" removeEdgeLabelProxies",function(){f1t(e)}),o(" normalize.run",function(){fJ.run(e)}),o(" parentDummyChains",function(){Wft(e)}),o(" addBorderSegments",function(){Yft(e)}),o(" order",function(){Jft(e)}),o(" insertSelfEdges",function(){b1t(e)}),o(" adjustCoordinateSystem",function(){gJ.adjust(e)}),o(" position",function(){Kft(e)}),o(" positionSelfEdges",function(){y1t(e)}),o(" removeBorderNodes",function(){v1t(e)}),o(" normalize.undo",function(){fJ.undo(e)}),o(" fixupEdgeLabelCoords",function(){_1t(e)}),o(" undoCoordinateSystem",function(){gJ.undo(e)}),o(" translateGraph",function(){h1t(e)}),o(" assignNodeIntersects",function(){g1t(e)}),o(" reversePoints",function(){C1t(e)}),o(" acyclic.undo",function(){uJ.undo(e)})}function t1t(e,o){fo.forEach(e.nodes(),function(t){var n=e.node(t),i=o.node(t);n&&(n.x=i.x,n.y=i.y,o.children(t).length&&(n.width=i.width,n.height=i.height))}),fo.forEach(e.edges(),function(t){var n=e.edge(t),i=o.edge(t);n.points=i.points,fo.has(i,"x")&&(n.x=i.x,n.y=i.y)}),e.graph().width=o.graph().width,e.graph().height=o.graph().height}var i1t=["nodesep","edgesep","ranksep","marginx","marginy"],n1t={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},o1t=["acyclicer","ranker","rankdir","align"],a1t=["width","height"],r1t={width:0,height:0},l1t=["minlen","weight","width","height","labeloffset"],s1t={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},c1t=["labelpos"];function p1t(e){var o=new Xft({multigraph:!0,compound:!0}),t=eI(e.graph());return o.setGraph(fo.merge({},n1t,ZE(t,i1t),fo.pick(t,o1t))),fo.forEach(e.nodes(),function(n){var i=eI(e.node(n));o.setNode(n,fo.defaults(ZE(i,a1t),r1t)),o.setParent(n,e.parent(n))}),fo.forEach(e.edges(),function(n){var i=eI(e.edge(n));o.setEdge(n,fo.merge({},s1t,ZE(i,l1t),fo.pick(i,c1t)))}),o}function m1t(e){var o=e.graph();o.ranksep/=2,fo.forEach(e.edges(),function(t){var n=e.edge(t);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(o.rankdir==="TB"||o.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function d1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o);if(t.width&&t.height){var n=e.node(o.v),i=e.node(o.w),s={rank:(i.rank-n.rank)/2+n.rank,e:o};am.addDummyNode(e,"edge-proxy",s,"_ep")}})}function u1t(e){var o=0;fo.forEach(e.nodes(),function(t){var n=e.node(t);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,o=fo.max(o,n.maxRank))}),e.graph().maxRank=o}function f1t(e){fo.forEach(e.nodes(),function(o){var t=e.node(o);t.dummy==="edge-proxy"&&(e.edge(t.e).labelRank=t.rank,e.removeNode(o))})}function h1t(e){var o=Number.POSITIVE_INFINITY,t=0,n=Number.POSITIVE_INFINITY,i=0,s=e.graph(),d=s.marginx||0,u=s.marginy||0;function f(_){var C=_.x,x=_.y,y=_.width,P=_.height;o=Math.min(o,C-y/2),t=Math.max(t,C+y/2),n=Math.min(n,x-P/2),i=Math.max(i,x+P/2)}fo.forEach(e.nodes(),function(_){f(e.node(_))}),fo.forEach(e.edges(),function(_){var C=e.edge(_);fo.has(C,"x")&&f(C)}),o-=d,n-=u,fo.forEach(e.nodes(),function(_){var C=e.node(_);C.x-=o,C.y-=n}),fo.forEach(e.edges(),function(_){var C=e.edge(_);fo.forEach(C.points,function(x){x.x-=o,x.y-=n}),fo.has(C,"x")&&(C.x-=o),fo.has(C,"y")&&(C.y-=n)}),s.width=t-o+d,s.height=i-n+u}function g1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o),n=e.node(o.v),i=e.node(o.w),s,d;t.points?(s=t.points[0],d=t.points[t.points.length-1]):(t.points=[],s=i,d=n),t.points.unshift(am.intersectRect(n,s)),t.points.push(am.intersectRect(i,d))})}function _1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o);if(fo.has(t,"x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}function C1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o);t.reversed&&t.points.reverse()})}function v1t(e){fo.forEach(e.nodes(),function(o){if(e.children(o).length){var t=e.node(o),n=e.node(t.borderTop),i=e.node(t.borderBottom),s=e.node(fo.last(t.borderLeft)),d=e.node(fo.last(t.borderRight));t.width=Math.abs(d.x-s.x),t.height=Math.abs(i.y-n.y),t.x=s.x+t.width/2,t.y=n.y+t.height/2}}),fo.forEach(e.nodes(),function(o){e.node(o).dummy==="border"&&e.removeNode(o)})}function x1t(e){fo.forEach(e.edges(),function(o){if(o.v===o.w){var t=e.node(o.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:o,label:e.edge(o)}),e.removeEdge(o)}})}function b1t(e){var o=am.buildLayerMatrix(e);fo.forEach(o,function(t){var n=0;fo.forEach(t,function(i,s){var d=e.node(i);d.order=s+n,fo.forEach(d.selfEdges,function(u){am.addDummyNode(e,"selfedge",{width:u.label.width,height:u.label.height,rank:d.rank,order:s+ ++n,e:u.e,label:u.label},"_se")}),delete d.selfEdges})})}function y1t(e){fo.forEach(e.nodes(),function(o){var t=e.node(o);if(t.dummy==="selfedge"){var n=e.node(t.e.v),i=n.x+n.width/2,s=n.y,d=t.x-i,u=n.height/2;e.setEdge(t.e,t.label),e.removeNode(o),t.label.points=[{x:i+2*d/3,y:s-u},{x:i+5*d/6,y:s-u},{x:i+d,y:s},{x:i+5*d/6,y:s+u},{x:i+2*d/3,y:s+u}],t.label.x=t.x,t.label.y=t.y}})}function ZE(e,o){return fo.mapValues(fo.pick(e,o),Number)}function eI(e){var o={};return fo.forEach(e,function(t,n){o[n.toLowerCase()]=t}),o}});var xJ=pt((FPn,vJ)=>{var sy=Sa(),S1t=rl(),w1t=hs().Graph;vJ.exports={debugOrdering:P1t};function P1t(e){var o=S1t.buildLayerMatrix(e),t=new w1t({compound:!0,multigraph:!0}).setGraph({});return sy.forEach(e.nodes(),function(n){t.setNode(n,{label:n}),t.setParent(n,"layer"+e.node(n).rank)}),sy.forEach(e.edges(),function(n){t.setEdge(n.v,n.w,{},n.name)}),sy.forEach(o,function(n,i){var s="layer"+i;t.setNode(s,{rank:"same"}),sy.reduce(n,function(d,u){return t.setEdge(d,u,{style:"invis"}),u})}),t}});var yJ=pt((kPn,bJ)=>{bJ.exports="0.8.5"});var wJ=pt((BPn,SJ)=>{SJ.exports={graphlib:hs(),layout:CJ(),debug:xJ(),util:{time:rl().time,notime:rl().notime},version:yJ()}});var oI=pt(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var nI=(function(){function e(o,t,n){this.source=o,this.target=t,this.type=n}return e})();rm.PowerEdge=nI;var KJ=(function(){function e(o,t,n,i){var s=this;if(this.linkAccessor=n,this.modules=new Array(o),this.roots=[],i)this.initModulesFromGroup(i);else{this.roots.push(new bu);for(var d=0;d=this.R))return this.merge(n.a,n.b,o),!0}},e.prototype.nEdges=function(o,t){var n=o.incoming.intersection(t.incoming),i=o.outgoing.intersection(t.outgoing);return this.R-n.count()-i.count()},e.prototype.getGroupHierarchy=function(o){var t=this,n=[],i={};XJ(this.roots[0],i,n);var s=this.allEdges();return s.forEach(function(d){var u=t.modules[d.source],f=t.modules[d.target];o.push(new nI(typeof u.gid>"u"?d.source:n[u.gid],typeof f.gid>"u"?d.target:n[f.gid],d.type))}),n},e.prototype.allEdges=function(){var o=[];return e.getEdges(this.roots[0],o),o},e.getEdges=function(o,t){o.forAll(function(n){n.getEdges(t),e.getEdges(n.children,t)})},e})();rm.Configuration=KJ;function XJ(e,o,t){e.forAll(function(n){if(n.isLeaf())o.leaves||(o.leaves=[]),o.leaves.push(n.id);else{var i=o;if(n.gid=t.length,!n.isIsland()||n.isPredefined()){if(i={id:n.gid},n.isPredefined())for(var s in n.definition)i[s]=n.definition[s];o.groups||(o.groups=[]),o.groups.push(n.gid),t.push(i)}XJ(n.children,i,t)}})}var Z1=(function(){function e(o,t,n,i,s){t===void 0&&(t=new eh),n===void 0&&(n=new eh),i===void 0&&(i=new bu),this.id=o,this.outgoing=t,this.incoming=n,this.children=i,this.definition=s}return e.prototype.getEdges=function(o){var t=this;this.outgoing.forAll(function(n,i){n.forAll(function(s){o.push(new nI(t.id,s.id,i))})})},e.prototype.isLeaf=function(){return this.children.count()===0},e.prototype.isIsland=function(){return this.outgoing.count()===0&&this.incoming.count()===0},e.prototype.isPredefined=function(){return typeof this.definition<"u"},e})();rm.Module=Z1;function O1t(e,o){var t={};for(var n in e)n in o&&(t[n]=e[n]);return t}var bu=(function(){function e(){this.table={}}return e.prototype.count=function(){return Object.keys(this.table).length},e.prototype.intersection=function(o){var t=new e;return t.table=O1t(this.table,o.table),t},e.prototype.intersectionCount=function(o){return this.intersection(o).count()},e.prototype.contains=function(o){return o in this.table},e.prototype.add=function(o){this.table[o.id]=o},e.prototype.remove=function(o){delete this.table[o.id]},e.prototype.forAll=function(o){for(var t in this.table)o(this.table[t])},e.prototype.modules=function(){var o=[];return this.forAll(function(t){t.isPredefined()||o.push(t)}),o},e})();rm.ModuleSet=bu;var eh=(function(){function e(){this.sets={},this.n=0}return e.prototype.count=function(){return this.n},e.prototype.contains=function(o){var t=!1;return this.forAllModules(function(n){!t&&n.id==o&&(t=!0)}),t},e.prototype.add=function(o,t){var n=o in this.sets?this.sets[o]:this.sets[o]=new bu;n.add(t),++this.n},e.prototype.remove=function(o,t){var n=this.sets[o];n.remove(t),n.count()===0&&delete this.sets[o],--this.n},e.prototype.forAll=function(o){for(var t in this.sets)o(this.sets[t],Number(t))},e.prototype.forAllModules=function(o){this.forAll(function(t,n){return t.forAll(o)})},e.prototype.intersection=function(o){var t=new e;return this.forAll(function(n,i){if(i in o.sets){var s=n.intersection(o.sets[i]),d=s.count();d>0&&(t.sets[i]=s,t.n+=d)}}),t},e})();rm.LinkSets=eh;function A1t(e,o,t,n){for(var i=e.length,s=new KJ(i,o,t,n);s.greedyMerge(););var d=[],u=s.getGroupHierarchy(d);return d.forEach(function(f){var _=function(C){var x=f[C];typeof x=="number"&&(f[C]=e[x])};_("source"),_("target")}),{groups:u,powerEdges:d}}rm.getGroups=A1t});var uy=pt(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});function ZJ(e,o){var t={};for(var n in e)t[n]={};for(var n in o)t[n]={};return Object.keys(t).length}function eK(e,o){var t=0;for(var n in e)typeof o[n]<"u"&&++t;return t}function F1t(e,o){var t={},n=function(i,s){typeof t[i]>"u"&&(t[i]={}),t[i][s]={}};return e.forEach(function(i){var s=o.getSourceIndex(i),d=o.getTargetIndex(i);n(s,d),n(d,s)}),t}function tK(e,o,t,n){var i=F1t(e,n);e.forEach(function(s){var d=i[n.getSourceIndex(s)],u=i[n.getTargetIndex(s)];n.setLength(s,1+o*t(d,u))})}function k1t(e,o,t){t===void 0&&(t=1),tK(e,t,function(n,i){return Math.sqrt(ZJ(n,i)-eK(n,i))},o)}yu.symmetricDiffLinkLengths=k1t;function B1t(e,o,t){t===void 0&&(t=1),tK(e,t,function(n,i){return Math.min(Object.keys(n).length,Object.keys(i).length)<1.1?0:eK(n,i)/ZJ(n,i)},o)}yu.jaccardLinkLengths=B1t;function R1t(e,o,t,n){var i=iK(e,o,n),s={};i.forEach(function(u,f){return u.forEach(function(_){return s[_]=f})});var d=[];return o.forEach(function(u){var f=n.getSourceIndex(u),_=n.getTargetIndex(u),C=s[f],x=s[_];C!==x&&d.push({axis:t,left:f,right:_,gap:n.getMinSeparation(u)})}),d}yu.generateDirectedEdgeConstraints=R1t;function iK(e,o,t){var n=[],i=0,s=[],d=[];function u(k){k.index=k.lowlink=i++,s.push(k),k.onStack=!0;for(var z=0,U=k.out;z"u"?(u(J),k.lowlink=Math.min(k.lowlink,J.lowlink)):J.onStack&&(k.lowlink=Math.min(k.lowlink,J.index))}if(k.lowlink===k.index){for(var re=[];s.length&&(J=s.pop(),J.onStack=!1,re.push(J),J!==k););d.push(re.map(function(ee){return ee.id}))}}for(var f=0;f"u"&&u(D)}return d}yu.stronglyConnectedComponents=iK});var fy=pt(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var nK=(function(){function e(){this.locks={}}return e.prototype.add=function(o,t){this.locks[o]=t},e.prototype.clear=function(){this.locks={}},e.prototype.isEmpty=function(){for(var o in this.locks)return!1;return!0},e.prototype.apply=function(o){for(var t in this.locks)o(Number(t),this.locks[t])},e})();th.Locks=nK;var N1t=(function(){function e(o,t,n){n===void 0&&(n=null),this.D=t,this.G=n,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new oK,this.project=null,this.x=o,this.k=o.length;var i=this.n=o[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new nK,this.minD=Number.MAX_VALUE;for(var s=i,d;s--;)for(d=i;--d>s;){var u=t[s][d];u>0&&u1e-9)break;var S=this.offsetDir();for(i=0;i1&&M>D||!isFinite(D)){for(i=0;i1&&(k=1);var z=D*D,U=2*k*(M-D)/(z*M),J=M*M*M,re=2*-k/(z*J);for(isFinite(U)||console.log(U),i=0;i0?j-(O+1)*ae:j-(O-1)*ae;-ee0;)for(var s=t;s-- >0;)n(i,s)},e.prototype.matrixApply=function(o){e.mApply(this.k,this.n,o)},e.prototype.computeNextPosition=function(o,t){var n=this;this.computeDerivatives(o);var i=this.computeStepSize(this.g);if(this.stepAndProject(o,t,this.g,i),this.project){this.matrixApply(function(d,u){return n.e[d][u]=o[d][u]-t[d][u]});var s=this.computeStepSize(this.e);s=Math.max(.2,Math.min(s,1)),this.stepAndProject(o,t,this.e,s)}},e.prototype.run=function(o){for(var t=Number.MAX_VALUE,n=!1;!n&&o-- >0;){var i=this.rungeKutta();n=Math.abs(t/i-1)>16)/this.range},e.prototype.getNextBetween=function(o,t){return o+this.getNext()*(t-o)},e})();th.PseudoRandom=oK});var _y=pt(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var aK=(function(){function e(o){this.scale=o,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(o){var t=this.scale/o.scale,n=o.offset/o.scale,i=o.weight;this.AB+=i*t*n,this.AD+=i*t*o.desiredPosition,this.A2+=i*t*t},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e})();op.PositionStats=aK;var hy=(function(){function e(o,t,n,i){i===void 0&&(i=!1),this.left=o,this.right=t,this.gap=n,this.equality=i,this.active=!1,this.unsatisfiable=!1,this.left=o,this.right=t,this.gap=n,this.equality=i}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e})();op.Constraint=hy;var gy=(function(){function e(o,t,n){t===void 0&&(t=1),n===void 0&&(n=1),this.desiredPosition=o,this.weight=t,this.scale=n,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(o,t){var n=function(i,s){return i.active&&o!==s&&t(i,s)};this.cOut.forEach(function(i){return n(i,i.right)}),this.cIn.forEach(function(i){return n(i,i.left)})},e})();op.Variable=gy;var aI=(function(){function e(o){this.vars=[],o.offset=0,this.ps=new aK(o.scale),this.addVariable(o)}return e.prototype.addVariable=function(o){o.block=this,this.vars.push(o),this.ps.addVariable(o),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var o=0,t=this.vars.length;o=0?this.inactive.push(o):this.bs.merge(o)}}},e.prototype.solve=function(){this.satisfy();for(var o=Number.MAX_VALUE,t=this.bs.cost();Math.abs(o-t)>1e-4;)this.satisfy(),o=t,t=this.bs.cost();return t},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e})();op.Solver=lI;function L1t(e,o,t){for(var n=e.map(function(D){return new gy(D.desiredCenter)}),i=[],s=e.length,d=0;d{"use strict";var V1t=Yd&&Yd.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(Yd,"__esModule",{value:!0});var rK=(function(){function e(){this.findIter=function(o){for(var t=this._root,n=this.iterator();t!==null;){var i=this._comparator(o,t.data);if(i===0)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(i>0)}return null}}return e.prototype.clear=function(){this._root=null,this.size=0},e.prototype.find=function(o){for(var t=this._root;t!==null;){var n=this._comparator(o,t.data);if(n===0)return t.data;t=t.get_child(n>0)}return null},e.prototype.lowerBound=function(o){return this._bound(o,this._comparator)},e.prototype.upperBound=function(o){var t=this._comparator;function n(i,s){return t(s,i)}return this._bound(o,n)},e.prototype.min=function(){var o=this._root;if(o===null)return null;for(;o.left!==null;)o=o.left;return o.data},e.prototype.max=function(){var o=this._root;if(o===null)return null;for(;o.right!==null;)o=o.right;return o.data},e.prototype.iterator=function(){return new lK(this)},e.prototype.each=function(o){for(var t=this.iterator(),n;(n=t.next())!==null;)o(n)},e.prototype.reach=function(o){for(var t=this.iterator(),n;(n=t.prev())!==null;)o(n)},e.prototype._bound=function(o,t){for(var n=this._root,i=this.iterator();n!==null;){var s=this._comparator(o,n.data);if(s===0)return i._cursor=n,i;i._ancestors.push(n),n=n.get_child(s>0)}for(var d=i._ancestors.length-1;d>=0;--d)if(n=i._ancestors[d],t(o,n.data)>0)return i._cursor=n,i._ancestors.length=d,i;return i._ancestors.length=0,i},e})();Yd.TreeBase=rK;var lK=(function(){function e(o){this._tree=o,this._ancestors=[],this._cursor=null}return e.prototype.data=function(){return this._cursor!==null?this._cursor.data:null},e.prototype.next=function(){if(this._cursor===null){var o=this._tree._root;o!==null&&this._minNode(o)}else if(this._cursor.right===null){var t;do if(t=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.right===t)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return this._cursor!==null?this._cursor.data:null},e.prototype.prev=function(){if(this._cursor===null){var o=this._tree._root;o!==null&&this._maxNode(o)}else if(this._cursor.left===null){var t;do if(t=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.left===t)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return this._cursor!==null?this._cursor.data:null},e.prototype._minNode=function(o){for(;o.left!==null;)this._ancestors.push(o),o=o.left;this._cursor=o},e.prototype._maxNode=function(o){for(;o.right!==null;)this._ancestors.push(o),o=o.right;this._cursor=o},e})();Yd.Iterator=lK;var Cy=(function(){function e(o){this.data=o,this.left=null,this.right=null,this.red=!0}return e.prototype.get_child=function(o){return o?this.right:this.left},e.prototype.set_child=function(o,t){o?this.right=t:this.left=t},e})(),q1t=(function(e){V1t(o,e);function o(t){var n=e.call(this)||this;return n._root=null,n._comparator=t,n.size=0,n}return o.prototype.insert=function(t){var n=!1;if(this._root===null)this._root=new Cy(t),n=!0,this.size++;else{var i=new Cy(void 0),s=!1,d=!1,u=null,f=i,_=null,C=this._root;for(f.right=this._root;;){if(C===null?(C=new Cy(t),_.set_child(s,C),n=!0,this.size++):o.is_red(C.left)&&o.is_red(C.right)&&(C.red=!0,C.left.red=!1,C.right.red=!1),o.is_red(C)&&o.is_red(_)){var x=f.right===u;C===_.get_child(d)?f.set_child(x,o.single_rotate(u,!d)):f.set_child(x,o.double_rotate(u,!d))}var y=this._comparator(C.data,t);if(y===0)break;d=s,s=y<0,u!==null&&(f=u),u=_,_=C,C=C.get_child(s)}this._root=i.right}return this._root.red=!1,n},o.prototype.remove=function(t){if(this._root===null)return!1;var n=new Cy(void 0),i=n;i.right=this._root;for(var s=null,d=null,u=null,f=!0;i.get_child(f)!==null;){var _=f;d=s,s=i,i=i.get_child(f);var C=this._comparator(t,i.data);if(f=C>0,C===0&&(u=i),!o.is_red(i)&&!o.is_red(i.get_child(f))){if(o.is_red(i.get_child(!f))){var x=o.single_rotate(i,f);s.set_child(_,x),s=x}else if(!o.is_red(i.get_child(!f))){var y=s.get_child(!_);if(y!==null)if(!o.is_red(y.get_child(!_))&&!o.is_red(y.get_child(_)))s.red=!1,y.red=!0,i.red=!0;else{var P=d.right===s;o.is_red(y.get_child(_))?d.set_child(P,o.double_rotate(s,_)):o.is_red(y.get_child(!_))&&d.set_child(P,o.single_rotate(s,_));var S=d.get_child(P);S.red=!0,i.red=!0,S.left.red=!1,S.right.red=!1}}}}return u!==null&&(u.data=i.data,s.set_child(s.right===i,i.get_child(i.left===null)),this.size--),this._root=n.right,this._root!==null&&(this._root.red=!1),u!==null},o.is_red=function(t){return t!==null&&t.red},o.single_rotate=function(t,n){var i=t.get_child(!n);return t.set_child(!n,i.get_child(n)),i.set_child(n,t),t.red=!0,i.red=!1,i},o.double_rotate=function(t,n){return t.set_child(!n,o.single_rotate(t.get_child(!n),!n)),o.single_rotate(t,n)},o})(rK);Yd.RBTree=q1t});var Su=pt(sl=>{"use strict";var z1t=sl&&sl.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(sl,"__esModule",{value:!0});var ap=_y(),H1t=sI();function ih(e){return e.bounds=typeof e.leaves<"u"?e.leaves.reduce(function(o,t){return t.bounds.union(o)},lm.empty()):lm.empty(),typeof e.groups<"u"&&(e.bounds=e.groups.reduce(function(o,t){return ih(t).union(o)},e.bounds)),e.bounds=e.bounds.inflate(e.padding),e.bounds}sl.computeGroupBounds=ih;var lm=(function(){function e(o,t,n,i){this.x=o,this.X=t,this.y=n,this.Y=i}return e.empty=function(){return new e(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},e.prototype.cx=function(){return(this.x+this.X)/2},e.prototype.cy=function(){return(this.y+this.Y)/2},e.prototype.overlapX=function(o){var t=this.cx(),n=o.cx();return t<=n&&o.x0?n[0]:null},e.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},e.lineIntersection=function(o,t,n,i,s,d,u,f){var _=n-o,C=u-s,x=i-t,y=f-d,P=y*_-C*x;if(P==0)return null;var S=o-s,M=t-d,D=C*M-y*S,k=D/P,z=_*M-x*S,U=z/P;return k>=0&&k<=1&&U>=0&&U<=1?{x:o+k*_,y:t+k*x}:null},e.prototype.inflate=function(o){return new e(this.x-o,this.X+o,this.y-o,this.Y+o)},e})();sl.Rectangle=lm;function G1t(e,o,t){var n=e.rayIntersection(o.cx(),o.cy())||{x:e.cx(),y:e.cy()},i=o.rayIntersection(e.cx(),e.cy())||{x:o.cx(),y:o.cy()},s=i.x-n.x,d=i.y-n.y,u=Math.sqrt(s*s+d*d),f=u-t;return{sourceIntersection:n,targetIntersection:i,arrowStart:{x:n.x+f*s/u,y:n.y+f*d/u}}}sl.makeEdgeBetween=G1t;function j1t(e,o,t){var n=o.rayIntersection(e.x,e.y);n||(n={x:o.cx(),y:o.cy()});var i=n.x-e.x,s=n.y-e.y,d=Math.sqrt(i*i+s*s);return{x:n.x-t*i/d,y:n.y-t*s/d}}sl.makeEdgeTo=j1t;var $1t=(function(){function e(o,t,n){this.v=o,this.r=t,this.pos=n,this.prev=cI(),this.next=cI()}return e})(),sK=(function(){function e(o,t,n){this.isOpen=o,this.v=t,this.pos=n}return e})();function U1t(e,o){return e.pos>o.pos?1:e.pos=s);var u=new Array(d);for(i=0;i0&&(e[n].insert(s),s[i].insert(e))};t("next","prev"),t("prev","next")}function mK(e,o){return mI(e,o,cK,1e-6)}sl.generateXConstraints=mK;function dK(e,o){return mI(e,o,pK,1e-6)}sl.generateYConstraints=dK;function uK(e){return pI(e,cK,1e-6)}sl.generateXGroupConstraints=uK;function fK(e){return pI(e,pK,1e-6)}sl.generateYGroupConstraints=fK;function Y1t(e){var o=e.map(function(i){return new ap.Variable(i.cx())}),t=mK(e,o),n=new ap.Solver(o,t);n.solve(),o.forEach(function(i,s){return e[s].setXCentre(i.position())}),o=e.map(function(i){return new ap.Variable(i.cy())}),t=dK(e,o),n=new ap.Solver(o,t),n.solve(),o.forEach(function(i,s){return e[s].setYCentre(i.position())})}sl.removeOverlaps=Y1t;var vy=(function(e){z1t(o,e);function o(t,n){var i=e.call(this,0,n)||this;return i.index=t,i}return o})(ap.Variable);sl.IndexedVariable=vy;var J1t=(function(){function e(o,t,n,i,s){var d=this;if(n===void 0&&(n=null),i===void 0&&(i=null),s===void 0&&(s=!1),this.nodes=o,this.groups=t,this.rootGroup=n,this.avoidOverlaps=s,this.variables=o.map(function(f,_){return f.variable=new vy(_,1)}),i&&this.createConstraints(i),s&&n&&typeof n.groups<"u"){o.forEach(function(f){if(!f.width||!f.height){f.bounds=new lm(f.x,f.x,f.y,f.y);return}var _=f.width/2,C=f.height/2;f.bounds=new lm(f.x-_,f.x+_,f.y-C,f.y+C)}),ih(n);var u=o.length;t.forEach(function(f){d.variables[u]=f.minVar=new vy(u++,typeof f.stiffness<"u"?f.stiffness:.01),d.variables[u]=f.maxVar=new vy(u++,typeof f.stiffness<"u"?f.stiffness:.01)})}}return e.prototype.createSeparation=function(o){return new ap.Constraint(this.nodes[o.left].variable,this.nodes[o.right].variable,o.gap,typeof o.equality<"u"?o.equality:!1)},e.prototype.makeFeasible=function(o){var t=this;if(this.avoidOverlaps){var n="x",i="width";o.axis==="x"&&(n="y",i="height");var s=o.offsets.map(function(u){return t.nodes[u.node]}).sort(function(u,f){return u[n]-f[n]}),d=null;s.forEach(function(u){if(d){var f=d[n]+d[i];f>u[n]&&(u[n]=f)}d=u})}},e.prototype.createAlignment=function(o){var t=this,n=this.nodes[o.offsets[0].node].variable;this.makeFeasible(o);var i=o.axis==="x"?this.xConstraints:this.yConstraints;o.offsets.slice(1).forEach(function(s){var d=t.nodes[s.node].variable;i.push(new ap.Constraint(n,d,s.offset,!0))})},e.prototype.createConstraints=function(o){var t=this,n=function(i){return typeof i.type>"u"||i.type==="separation"};this.xConstraints=o.filter(function(i){return i.axis==="x"&&n(i)}).map(function(i){return t.createSeparation(i)}),this.yConstraints=o.filter(function(i){return i.axis==="y"&&n(i)}).map(function(i){return t.createSeparation(i)}),o.filter(function(i){return i.type==="alignment"}).forEach(function(i){return t.createAlignment(i)})},e.prototype.setupVariablesAndBounds=function(o,t,n,i){this.nodes.forEach(function(s,d){s.fixed?(s.variable.weight=s.fixedWeight?s.fixedWeight:1e3,n[d]=i(s)):s.variable.weight=1;var u=(s.width||0)/2,f=(s.height||0)/2,_=o[d],C=t[d];s.bounds=new lm(_-u,_+u,C-f,C+f)})},e.prototype.xProject=function(o,t,n){!this.rootGroup&&!(this.avoidOverlaps||this.xConstraints)||this.project(o,t,o,n,function(i){return i.px},this.xConstraints,uK,function(i){return i.bounds.setXCentre(n[i.variable.index]=i.variable.position())},function(i){var s=n[i.minVar.index]=i.minVar.position(),d=n[i.maxVar.index]=i.maxVar.position(),u=i.padding/2;i.bounds.x=s-u,i.bounds.X=d+u})},e.prototype.yProject=function(o,t,n){!this.rootGroup&&!this.yConstraints||this.project(o,t,t,n,function(i){return i.py},this.yConstraints,fK,function(i){return i.bounds.setYCentre(n[i.variable.index]=i.variable.position())},function(i){var s=n[i.minVar.index]=i.minVar.position(),d=n[i.maxVar.index]=i.maxVar.position(),u=i.padding/2;i.bounds.y=s-u,i.bounds.Y=d+u})},e.prototype.projectFunctions=function(){var o=this;return[function(t,n,i){return o.xProject(t,n,i)},function(t,n,i){return o.yProject(t,n,i)}]},e.prototype.project=function(o,t,n,i,s,d,u,f,_){this.setupVariablesAndBounds(o,t,i,s),this.rootGroup&&this.avoidOverlaps&&(ih(this.rootGroup),d=d.concat(u(this.rootGroup))),this.solve(this.variables,d,n,i),this.nodes.forEach(f),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(_),ih(this.rootGroup))},e.prototype.solve=function(o,t,n,i){var s=new ap.Solver(o,t);s.setStartingPositions(n),s.setDesiredPositions(i),s.solve()},e})();sl.Projection=J1t});var dI=pt(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var hK=(function(){function e(o){this.elem=o,this.subheaps=[]}return e.prototype.toString=function(o){for(var t="",n=!1,i=0;i{"use strict";Object.defineProperty(uI,"__esModule",{value:!0});var gK=dI(),_K=(function(){function e(o,t){this.id=o,this.distance=t}return e})(),X1t=(function(){function e(o){this.id=o,this.neighbours=[]}return e})(),CK=(function(){function e(o,t,n){this.node=o,this.prev=t,this.d=n}return e})(),Z1t=(function(){function e(o,t,n,i,s){this.n=o,this.es=t,this.neighbours=new Array(this.n);for(var d=this.n;d--;)this.neighbours[d]=new X1t(d);for(d=this.es.length;d--;){var u=this.es[d],f=n(u),_=i(u),C=s(u);this.neighbours[f].neighbours.push(new _K(_,C)),this.neighbours[_].neighbours.push(new _K(f,C))}}return e.prototype.DistanceMatrix=function(){for(var o=new Array(this.n),t=0;tx&&(_.d=x,_.prev=u,n.reduceKey(_.q,_,function(P,S){return P.q=S}))}}return s},e})();uI.Calculator=Z1t});var _I=pt(ka=>{"use strict";var xK=ka&&ka.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(ka,"__esModule",{value:!0});var eht=Su(),hI=(function(){function e(){}return e})();ka.Point=hI;var gI=(function(){function e(o,t,n,i){this.x1=o,this.y1=t,this.x2=n,this.y2=i}return e})();ka.LineSegment=gI;var tht=(function(e){xK(o,e);function o(){return e!==null&&e.apply(this,arguments)||this}return o})(hI);ka.PolyPoint=tht;function zl(e,o,t){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)}ka.isLeft=zl;function Hs(e,o,t){return zl(e,o,t)>0}function gs(e,o,t){return zl(e,o,t)<0}function iht(e){var o=e.slice(0).sort(function(y,P){return y.x!==P.x?P.x-y.x:P.y-y.y}),t=e.length,n,i=0,s=o[0].x;for(n=1;n=0&&o[n].x===C;n--);for(f=n+1,n=d;++n<=f;)if(!(zl(o[i],o[f],o[n])>=0&&n1&&!(zl(u[u.length-2],u[u.length-1],o[n])>0);)u.length-=1;n!=i&&u.push(o[n])}_!=f&&u.push(o[_]);var x=u.length;for(n=f;--n>=d;)if(!(zl(o[_],o[d],o[n])>=0&&n>d)){for(;u.length>x&&!(zl(u[u.length-2],u[u.length-1],o[n])>0);)u.length-=1;n!=i&&u.push(o[n])}}return u}ka.ConvexHull=iht;function nht(e,o,t){o.slice(0).sort(function(n,i){return Math.atan2(n.y-e.y,n.x-e.x)-Math.atan2(i.y-e.y,i.x-e.x)}).forEach(t)}ka.clockwiseRadialSweep=nht;function oht(e,o){var t=o.slice(0);return t.push(o[0]),{rtan:yy(e,t),ltan:Sy(e,t)}}function yy(e,o){var t=o.length-1,n,i,s,d,u;if(gs(e,o[1],o[0])&&!Hs(e,o[t-1],o[0]))return 0;for(n=0,i=t;;){if(i-n===1)return Hs(e,o[n],o[i])?n:i;if(s=Math.floor((n+i)/2),u=gs(e,o[s+1],o[s]),u&&!Hs(e,o[s-1],o[s]))return s;d=Hs(e,o[n+1],o[n]),d?u||Hs(e,o[n],o[s])?i=s:n=s:u&&gs(e,o[n],o[s])?i=s:n=s}}function Sy(e,o){var t=o.length-1,n,i,s,d,u;if(Hs(e,o[t-1],o[0])&&!gs(e,o[1],o[0]))return 0;for(n=0,i=t;;){if(i-n===1)return gs(e,o[n],o[i])?n:i;if(s=Math.floor((n+i)/2),u=gs(e,o[s+1],o[s]),Hs(e,o[s-1],o[s])&&!u)return s;d=gs(e,o[n+1],o[n]),d?u?gs(e,o[n],o[s])?i=s:n=s:i=s:u?n=s:Hs(e,o[n],o[s])?i=s:n=s}}function wy(e,o,t,n,i,s){var d,u;d=t(o[0],e),u=n(e[d],o);for(var f=!1;!f;){for(f=!0;d===e.length-1&&(d=0),!i(o[u],e[d],e[d+1]);)++d;for(;u===0&&(u=o.length-1),!s(e[d],o[u],o[u-1]);)--u,f=!1}return{t1:d,t2:u}}ka.tangent_PolyPolyC=wy;function aht(e,o){var t=bK(o,e);return{t1:t.t2,t2:t.t1}}ka.LRtangent_PolyPolyC=aht;function bK(e,o){return wy(e,o,yy,Sy,Hs,gs)}ka.RLtangent_PolyPolyC=bK;function rht(e,o){return wy(e,o,Sy,Sy,gs,gs)}ka.LLtangent_PolyPolyC=rht;function lht(e,o){return wy(e,o,yy,yy,Hs,Hs)}ka.RRtangent_PolyPolyC=lht;var oh=(function(){function e(o,t){this.t1=o,this.t2=t}return e})();ka.BiTangent=oh;var yK=(function(){function e(){}return e})();ka.BiTangents=yK;var sht=(function(e){xK(o,e);function o(){return e!==null&&e.apply(this,arguments)||this}return o})(hI);ka.TVGPoint=sht;var fI=(function(){function e(o,t,n,i){this.id=o,this.polyid=t,this.polyvertid=n,this.p=i,i.vv=this}return e})();ka.VisibilityVertex=fI;var by=(function(){function e(o,t){this.source=o,this.target=t}return e.prototype.length=function(){var o=this.source.p.x-this.target.p.x,t=this.source.p.y-this.target.p.y;return Math.sqrt(o*o+t*t)},e})();ka.VisibilityEdge=by;var cht=(function(){function e(o,t){if(this.P=o,this.V=[],this.E=[],t)this.V=t.V.slice(0),this.E=t.E.slice(0);else{for(var n=o.length,i=0;i0&&this.E.push(new by(s[d-1].vv,f))}s.length>1&&this.E.push(new by(s[0].vv,s[s.length-1].vv))}for(var i=0;i0)return!0;return!1},e})();ka.TangentVisibilityGraph=cht;function SK(e,o){for(var t=[],n=1,i=o.length;n=0&&S>=0&&M<0&&D>=0&&k>=0&&z<0?i.ll=new oh(s,d):P<=0&&S<=0&&M>0&&D<=0&&k<=0&&z>0?i.rr=new oh(s,d):P<=0&&S>0&&M<=0&&D>=0&&k<0&&z>=0?i.rl=new oh(s,d):P>=0&&S<0&&M>=0&&D<=0&&k>0&&z<=0&&(i.lr=new oh(s,d))}return i}ka.tangents=wK;function pht(e,o){for(var t=1,n=o.length;t0)return!0}return!1}ka.polysOverlap=mht});var CI=pt(Py=>{"use strict";Object.defineProperty(Py,"__esModule",{value:!0});var _s={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};function dht(e,o,t,x,C,s){C===void 0&&(C=1),s===void 0&&(s=!0);var d=0,u=0,f=o,_=t,C=typeof C<"u"?C:1,x=typeof x<"u"?x:0,y=0,P=0,S=0,M=0,D=[];if(e.length==0)return;k(e),U(e,C),s&&z(e);function k(se){se.forEach(function(de){_e(de)});function _e(de){var j=Number.MAX_VALUE,W=Number.MAX_VALUE,pe=0,O=0;de.array.forEach(function(B){var L=typeof B.width<"u"?B.width:x,N=typeof B.height<"u"?B.height:x;L/=2,N/=2,pe=Math.max(B.x+L,pe),j=Math.min(B.x-L,j),O=Math.max(B.y+N,O),W=Math.min(B.y-N,W)}),de.width=pe-j,de.height=O-W}}function z(se){se.forEach(function(_e){var de={x:0,y:0};_e.array.forEach(function(pe){de.x+=pe.x,de.y+=pe.y}),de.x/=_e.array.length,de.y/=_e.array.length;var j={x:de.x-_e.width/2,y:de.y-_e.height/2},W={x:_e.x-j.x+f/2-y/2,y:_e.y-j.y+_/2-P/2};_e.array.forEach(function(pe){pe.x+=W.x,pe.y+=W.y})})}function U(se,_e){var de=Number.POSITIVE_INFINITY,j=0;se.sort(function(ye,Ne){return Ne.height-ye.height}),S=se.reduce(function(ye,Ne){return ye.widthS||$>_s.FLOAT_EPSILON;){if(N!=1)var ne=pe-(pe-W)/_s.GOLDEN_SECTION,B=J(se,ne);if(N!=0)var be=W+(pe-W)/_s.GOLDEN_SECTION,L=J(se,be);if(G=Math.abs(ne-be),$=Math.abs(B-L),BL?(W=ne,ne=be,B=L,N=1):(pe=be,be=ne,L=B,N=0),O++>100)break}J(se,j)}function J(se,_e){D=[],y=0,P=0,M=u;for(var de=0;de=se.height&&D[j].x+D[j].width+se.width+_s.PADDING-_e<=_s.FLOAT_EPSILON){de=D[j];break}D.push(se),de!==void 0?(se.x=de.x+de.width+_s.PADDING,se.y=de.bottom,se.space_left=se.height,se.bottom=se.y,de.space_left-=se.height+_s.PADDING,de.bottom+=se.height+_s.PADDING):(se.y=M,M+=se.height+_s.PADDING,se.x=d,se.bottom=se.y,se.space_left=se.height),se.y+se.height-P>-_s.FLOAT_EPSILON&&(P=se.y+se.height-u),se.x+se.width-y>-_s.FLOAT_EPSILON&&(y=se.x+se.width-d)}function ee(se){var _e=0;return se.forEach(function(de){return _e+=de.width+_s.PADDING}),_e}function ae(){return y/P}}Py.applyPacking=dht;function uht(e,o){for(var t={},n={},i=[],s=0,d=0;d{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var fht=oI(),vI=uy(),Ty=fy(),My=Su(),PK=nh(),TK=_I(),MK=CI(),ah;(function(e){e[e.start=0]="start",e[e.tick=1]="tick",e[e.end=2]="end"})(ah=rh.EventType||(rh.EventType={}));function Dy(e){return typeof e.leaves<"u"||typeof e.groups<"u"}var hht=(function(){function e(){var o=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:e.getSourceIndex,getTargetIndex:e.getTargetIndex,setLength:e.setLinkLength,getType:function(t){return typeof o._linkType=="function"?o._linkType(t):0}}}return e.prototype.on=function(o,t){return this.event||(this.event={}),typeof o=="string"?this.event[ah[o]]=t:this.event[o]=t,this},e.prototype.trigger=function(o){this.event&&typeof this.event[o.type]<"u"&&this.event[o.type](o)},e.prototype.kick=function(){for(;!this.tick(););},e.prototype.tick=function(){if(this._alpha"u"||typeof n.py>"u")&&(n.px=n.x,n.py=n.y);var s=[n.px,n.py];this._descent.locks.add(i,s)}var d=this._descent.rungeKutta();return d===0?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=d),this._lastStress=d,this.updateNodePositions(),this.trigger({type:ah.tick,alpha:this._alpha,stress:this._lastStress}),!1},e.prototype.updateNodePositions=function(){for(var o=this._descent.x[0],t=this._descent.x[1],n,i=this._nodes.length;i--;)n=this._nodes[i],n.x=o[i],n.y=t[i]},e.prototype.nodes=function(o){if(!o){if(this._nodes.length===0&&this._links.length>0){var t=0;this._links.forEach(function(i){t=Math.max(t,i.source,i.target)}),this._nodes=new Array(++t);for(var n=0;n"u"&&(n.padding=1),typeof n.leaves<"u"&&n.leaves.forEach(function(i,s){typeof i=="number"&&((n.leaves[s]=t._nodes[i]).parent=n)}),typeof n.groups<"u"&&n.groups.forEach(function(i,s){typeof i=="number"&&((n.groups[s]=t._groups[i]).parent=n)})}),this._rootGroup.leaves=this._nodes.filter(function(n){return typeof n.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(n){return typeof n.parent>"u"}),this):this._groups},e.prototype.powerGraphGroups=function(o){var t=fht.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(t.groups),o(t),this},e.prototype.avoidOverlaps=function(o){return arguments.length?(this._avoidOverlaps=o,this):this._avoidOverlaps},e.prototype.handleDisconnected=function(o){return arguments.length?(this._handleDisconnected=o,this):this._handleDisconnected},e.prototype.flowLayout=function(o,t){return arguments.length||(o="y"),this._directedLinkConstraints={axis:o,getMinSeparation:typeof t=="number"?function(){return t}:t},this},e.prototype.links=function(o){return arguments.length?(this._links=o,this):this._links},e.prototype.constraints=function(o){return arguments.length?(this._constraints=o,this):this._constraints},e.prototype.distanceMatrix=function(o){return arguments.length?(this._distanceMatrix=o,this):this._distanceMatrix},e.prototype.size=function(o){return o?(this._canvasSize=o,this):this._canvasSize},e.prototype.defaultNodeSize=function(o){return o?(this._defaultNodeSize=o,this):this._defaultNodeSize},e.prototype.groupCompactness=function(o){return o?(this._groupCompactness=o,this):this._groupCompactness},e.prototype.linkDistance=function(o){return o?(this._linkDistance=typeof o=="function"?o:+o,this._linkLengthCalculator=null,this):this._linkDistance},e.prototype.linkType=function(o){return this._linkType=o,this},e.prototype.convergenceThreshold=function(o){return o?(this._threshold=typeof o=="function"?o:+o,this):this._threshold},e.prototype.alpha=function(o){return arguments.length?(o=+o,this._alpha?o>0?this._alpha=o:this._alpha=0:o>0&&(this._running||(this._running=!0,this.trigger({type:ah.start,alpha:this._alpha=o}),this.kick())),this):this._alpha},e.prototype.getLinkLength=function(o){return typeof this._linkDistance=="function"?+this._linkDistance(o):this._linkDistance},e.setLinkLength=function(o,t){o.length=t},e.prototype.getLinkType=function(o){return typeof this._linkType=="function"?this._linkType(o):0},e.prototype.symmetricDiffLinkLengths=function(o,t){var n=this;return t===void 0&&(t=1),this.linkDistance(function(i){return o*i.length}),this._linkLengthCalculator=function(){return vI.symmetricDiffLinkLengths(n._links,n.linkAccessor,t)},this},e.prototype.jaccardLinkLengths=function(o,t){var n=this;return t===void 0&&(t=1),this.linkDistance(function(i){return o*i.length}),this._linkLengthCalculator=function(){return vI.jaccardLinkLengths(n._links,n.linkAccessor,t)},this},e.prototype.start=function(o,t,n,i,s,d){var u=this;o===void 0&&(o=0),t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),s===void 0&&(s=!0),d===void 0&&(d=!0);var f,_,C=this.nodes().length,x=C+2*this._groups.length,y=this._links.length,P=this._canvasSize[0],S=this._canvasSize[1],M=new Array(x),D=new Array(x),k=null,z=this._avoidOverlaps;this._nodes.forEach(function(de,j){de.index=j,typeof de.x>"u"&&(de.x=P/2,de.y=S/2),M[j]=de.x,D[j]=de.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var U;this._distanceMatrix?U=this._distanceMatrix:(U=new PK.Calculator(x,this._links,e.getSourceIndex,e.getTargetIndex,function(de){return u.getLinkLength(de)}).DistanceMatrix(),k=Ty.Descent.createSquareMatrix(x,function(){return 2}),this._links.forEach(function(de){typeof de.source=="number"&&(de.source=u._nodes[de.source]),typeof de.target=="number"&&(de.target=u._nodes[de.target])}),this._links.forEach(function(de){var j=e.getSourceIndex(de),W=e.getTargetIndex(de);k[j][W]=k[W][j]=de.weight||1}));var J=Ty.Descent.createSquareMatrix(x,function(de,j){return U[de][j]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var f=C,re=function(j,W,pe,O){k[j][W]=k[W][j]=pe,J[j][W]=J[W][j]=O};this._groups.forEach(function(j){re(f,f+1,u._groupCompactness,.1),M[f]=0,D[f++]=0,M[f]=0,D[f++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var ee=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,ee=ee.concat(vI.generateDirectedEdgeConstraints(C,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new Ty.Descent([M,D],J),this._descent.locks.clear();for(var f=0;f0&&(this._descent.project=new My.Projection(this._nodes,this._groups,this._rootGroup,ee).projectFunctions()),this._descent.run(t),this.separateOverlappingComponents(P,S,d),this.avoidOverlaps(z),z&&(this._nodes.forEach(function(de,j){de.x=M[j],de.y=D[j]}),this._descent.project=new My.Projection(this._nodes,this._groups,this._rootGroup,ee,!0).projectFunctions(),this._nodes.forEach(function(de,j){M[j]=de.x,D[j]=de.y})),this._descent.G=k,this._descent.run(n),i){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=C,this._descent.scaleSnapByMaxH=C!=x;var _e=Ty.Descent.createSquareMatrix(x,function(de,j){return de>=C||j>=C?k[de][j]:0});this._descent.G=_e,this._descent.run(i)}return this.updateNodePositions(),this.separateOverlappingComponents(P,S,d),s?this.resume():this},e.prototype.initialLayout=function(o,t,n){if(this._groups.length>0&&o>0){var i=this._nodes.length,s=this._links.map(function(u){return{source:u.source.index,target:u.target.index}}),d=this._nodes.map(function(u){return{index:u.index}});this._groups.forEach(function(u,f){d.push({index:u.index=i+f})}),this._groups.forEach(function(u,f){typeof u.leaves<"u"&&u.leaves.forEach(function(_){return s.push({source:u.index,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return s.push({source:u.index,target:_.index})})}),new e().size(this.size()).nodes(d).links(s).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(o,0,0,0,!1),this._nodes.forEach(function(u){t[u.index]=d[u.index].x,n[u.index]=d[u.index].y})}else this._descent.run(o)},e.prototype.separateOverlappingComponents=function(o,t,n){var i=this;if(n===void 0&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var s=this._descent.x[0],d=this._descent.x[1];this._nodes.forEach(function(f,_){f.x=s[_],f.y=d[_]});var u=MK.separateGraphs(this._nodes,this._links);MK.applyPacking(u,o,t,this._defaultNodeSize,1,n),this._nodes.forEach(function(f,_){i._descent.x[0][_]=f.x,i._descent.x[1][_]=f.y,f.bounds&&(f.bounds.setXCentre(f.x),f.bounds.setYCentre(f.y))})}},e.prototype.resume=function(){return this.alpha(.1)},e.prototype.stop=function(){return this.alpha(0)},e.prototype.prepareEdgeRouting=function(o){o===void 0&&(o=0),this._visibilityGraph=new TK.TangentVisibilityGraph(this._nodes.map(function(t){return t.bounds.inflate(-o).vertices()}))},e.prototype.routeEdge=function(o,t,n){t===void 0&&(t=5);var i=[],s=new TK.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),d={x:o.source.x,y:o.source.y},u={x:o.target.x,y:o.target.y},f=s.addPoint(d,o.source.index),_=s.addPoint(u,o.target.index);s.addEdgeIfVisible(d,u,o.source.index,o.target.index),typeof n<"u"&&n(s);var C=function(J){return J.source.id},x=function(J){return J.target.id},y=function(J){return J.length()},P=new PK.Calculator(s.V.length,s.E,C,x,y),S=P.PathFromNodeToNode(f.id,_.id);if(S.length===1||S.length===s.V.length){var M=My.makeEdgeBetween(o.source.innerBounds,o.target.innerBounds,t);i=[M.sourceIntersection,M.arrowStart]}else{for(var D=S.length-2,k=s.V[S[D]].p,z=s.V[S[0]].p,i=[o.source.innerBounds.rayIntersection(k.x,k.y)],U=D;U>=0;--U)i.push(s.V[S[U]].p);i.push(My.makeEdgeTo(z,o.target.innerBounds,t))}return i},e.getSourceIndex=function(o){return typeof o.source=="number"?o.source:o.source.index},e.getTargetIndex=function(o){return typeof o.target=="number"?o.target:o.target.index},e.linkId=function(o){return e.getSourceIndex(o)+"-"+e.getTargetIndex(o)},e.dragStart=function(o){Dy(o)?e.storeOffset(o,e.dragOrigin(o)):(e.stopNode(o),o.fixed|=2)},e.stopNode=function(o){o.px=o.x,o.py=o.y},e.storeOffset=function(o,t){typeof o.leaves<"u"&&o.leaves.forEach(function(n){n.fixed|=2,e.stopNode(n),n._dragGroupOffsetX=n.x-t.x,n._dragGroupOffsetY=n.y-t.y}),typeof o.groups<"u"&&o.groups.forEach(function(n){return e.storeOffset(n,t)})},e.dragOrigin=function(o){return Dy(o)?{x:o.bounds.cx(),y:o.bounds.cy()}:o},e.drag=function(o,t){Dy(o)?(typeof o.leaves<"u"&&o.leaves.forEach(function(n){o.bounds.setXCentre(t.x),o.bounds.setYCentre(t.y),n.px=n._dragGroupOffsetX+t.x,n.py=n._dragGroupOffsetY+t.y}),typeof o.groups<"u"&&o.groups.forEach(function(n){return e.drag(n,t)})):(o.px=t.x,o.py=t.y)},e.dragEnd=function(o){Dy(o)?(typeof o.leaves<"u"&&o.leaves.forEach(function(t){e.dragEnd(t),delete t._dragGroupOffsetX,delete t._dragGroupOffsetY}),typeof o.groups<"u"&&o.groups.forEach(e.dragEnd)):o.fixed&=-7},e.mouseOver=function(o){o.fixed|=4,o.px=o.x,o.py=o.y},e.mouseOut=function(o){o.fixed&=-5},e})();rh.Layout=hht});var EK=pt(Pu=>{"use strict";var ght=Pu&&Pu.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(Pu,"__esModule",{value:!0});var xI=wu(),DK=(function(e){ght(o,e);function o(t){var n=e.call(this)||this,i=n,s=t;return s.trigger&&(n.trigger=s.trigger),s.kick&&(n.kick=s.kick),s.drag&&(n.drag=s.drag),s.on&&(n.on=s.on),n.dragstart=n.dragStart=xI.Layout.dragStart,n.dragend=n.dragEnd=xI.Layout.dragEnd,n}return o.prototype.trigger=function(t){},o.prototype.kick=function(){},o.prototype.drag=function(){},o.prototype.on=function(t,n){return this},o})(xI.Layout);Pu.LayoutAdaptor=DK;function _ht(e){return new DK(e)}Pu.adaptor=_ht});var OK=pt(Tu=>{"use strict";var Cht=Tu&&Tu.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(Tu,"__esModule",{value:!0});var Hl=wu(),IK=(function(e){Cht(o,e);function o(){var t=e.call(this)||this;t.event=d3.dispatch(Hl.EventType[Hl.EventType.start],Hl.EventType[Hl.EventType.tick],Hl.EventType[Hl.EventType.end]);var n=t,i;return t.drag=function(){if(!s)var s=d3.behavior.drag().origin(Hl.Layout.dragOrigin).on("dragstart.d3adaptor",Hl.Layout.dragStart).on("drag.d3adaptor",function(d){Hl.Layout.drag(d,d3.event),n.resume()}).on("dragend.d3adaptor",Hl.Layout.dragEnd);if(!arguments.length)return s;this.call(s)},t}return o.prototype.trigger=function(t){var n={type:Hl.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[n.type](n)},o.prototype.kick=function(){var t=this;d3.timer(function(){return e.prototype.tick.call(t)})},o.prototype.on=function(t,n){return typeof t=="string"?this.event.on(t,n):this.event.on(Hl.EventType[t],n),this},o})(Hl.Layout);Tu.D3StyleLayoutAdaptor=IK;function vht(){return new IK}Tu.d3adaptor=vht});var AK=pt(lh=>{"use strict";var xht=lh&&lh.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(lh,"__esModule",{value:!0});var Gl=wu(),bht=(function(e){xht(o,e);function o(t){var n=e.call(this)||this;n.d3Context=t,n.event=t.dispatch(Gl.EventType[Gl.EventType.start],Gl.EventType[Gl.EventType.tick],Gl.EventType[Gl.EventType.end]);var i=n,s;return n.drag=function(){if(!d)var d=t.drag().subject(Gl.Layout.dragOrigin).on("start.d3adaptor",Gl.Layout.dragStart).on("drag.d3adaptor",function(u){Gl.Layout.drag(u,t.event),i.resume()}).on("end.d3adaptor",Gl.Layout.dragEnd);if(!arguments.length)return d;arguments[0].call(d)},n}return o.prototype.trigger=function(t){var n={type:Gl.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(n.type,n)},o.prototype.kick=function(){var t=this,n=this.d3Context.timer(function(){return e.prototype.tick.call(t)&&n.stop()})},o.prototype.on=function(t,n){return typeof t=="string"?this.event.on(t,n):this.event.on(Gl.EventType[t],n),this},o})(Gl.Layout);lh.D3StyleLayoutAdaptor=bht});var FK=pt(bI=>{"use strict";Object.defineProperty(bI,"__esModule",{value:!0});var yht=OK(),Sht=AK();function wht(e){return!e||Pht(e)?new yht.D3StyleLayoutAdaptor:new Sht.D3StyleLayoutAdaptor(e)}bI.d3adaptor=wht;function Pht(e){var o=/^3\./;return e.version&&e.version.match(o)!==null}});var PI=pt(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Tht=Su(),yI=_y(),Mht=nh(),kK=(function(){function e(o,t,n){this.id=o,this.rect=t,this.children=n,this.leaf=typeof n>"u"||n.length===0}return e})();Mu.NodeWrapper=kK;var SI=(function(){function e(o,t,n,i,s){i===void 0&&(i=null),s===void 0&&(s=null),this.id=o,this.x=t,this.y=n,this.node=i,this.line=s}return e})();Mu.Vert=SI;var wI=(function(){function e(o,t){this.s=o,this.t=t;var n=e.findMatch(o,t),i=t.slice(0).reverse(),s=e.findMatch(o,i);n.length>=s.length?(this.length=n.length,this.si=n.si,this.ti=n.ti,this.reversed=!1):(this.length=s.length,this.si=s.si,this.ti=t.length-s.ti-s.length,this.reversed=!0)}return e.findMatch=function(o,t){for(var n=o.length,i=t.length,s={length:0,si:-1,ti:-1},d=new Array(n),u=0;us.length&&(s.length=_,s.si=u-_+1,s.ti=f-_+1)}else d[u][f]=0}return s},e.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},e})();Mu.LongestCommonSubsequence=wI;var Dht=(function(){function e(o,t,n){var i=this;n===void 0&&(n=12),this.originalnodes=o,this.groupPadding=n,this.leaves=null,this.nodes=o.map(function(M,D){return new kK(D,t.getBounds(M),t.getChildren(M))}),this.leaves=this.nodes.filter(function(M){return M.leaf}),this.groups=this.nodes.filter(function(M){return!M.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(M){return M.children.forEach(function(D){return i.nodes[D].parent=M})}),this.root={children:[]},this.nodes.forEach(function(M){typeof M.parent>"u"&&(M.parent=i.root,i.root.children.push(M.id)),M.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(M,D){return i.getDepth(M)-i.getDepth(D)});var s=this.backToFront.slice(0).reverse().filter(function(M){return!M.leaf});s.forEach(function(M){var D=Tht.Rectangle.empty();M.children.forEach(function(k){return D=D.union(i.nodes[k].rect)}),M.rect=D.inflate(i.groupPadding)});var d=this.midPoints(this.cols.map(function(M){return M.pos})),u=this.midPoints(this.rows.map(function(M){return M.pos})),f=d[0],_=d[d.length-1],C=u[0],x=u[u.length-1],y=this.rows.map(function(M){return{x1:f,x2:_,y1:M.pos,y2:M.pos}}).concat(u.map(function(M){return{x1:f,x2:_,y1:M,y2:M}})),P=this.cols.map(function(M){return{x1:M.pos,x2:M.pos,y1:C,y2:x}}).concat(d.map(function(M){return{x1:M,x2:M,y1:C,y2:x}})),S=y.concat(P);S.forEach(function(M){return M.verts=[]}),this.verts=[],this.edges=[],y.forEach(function(M){return P.forEach(function(D){var k=new SI(i.verts.length,D.x1,M.y1);M.verts.push(k),D.verts.push(k),i.verts.push(k);for(var z=i.backToFront.length;z-- >0;){var U=i.backToFront[z],J=U.rect,re=Math.abs(k.x-J.cx()),ee=Math.abs(k.y-J.cy());if(re0;){var i=n.filter(function(d){return d.rect["overlap"+o.toUpperCase()](n[0].rect)}),s={nodes:i,pos:this.avg(i.map(function(d){return d.rect["c"+o]()}))};t.push(s),s.nodes.forEach(function(d){return n.splice(n.indexOf(d),1)})}return t.sort(function(d,u){return d.pos-u.pos}),t},e.prototype.getDepth=function(o){for(var t=0;o.parent!==this.root;)t++,o=o.parent;return t},e.prototype.midPoints=function(o){for(var t=o[1]-o[0],n=[o[0]-t/2],i=1;i.1)&&(x={pos:f[0][t],segments:[]},C.push(x)),x.segments.push(f)}return C},e.nudgeSegs=function(o,t,n,i,s,d){var u=i.length;if(!(u<=1)){for(var f=i.map(function(U){return new yI.Variable(U[0][o])}),_=[],C=0;C=0&&_.push(new yI.Constraint(f[D],f[k],d))}var z=new yI.Solver(f,_);z.solve(),f.forEach(function(U,J){var re=i[J],ee=U.position();re[0][o]=re[1][o]=ee;var ae=n[re.edgeid];re.i>0&&(ae[re.i-1][1][o]=ee),re.iMath.PI||s<-Math.PI)&&(s=i-n),s},e.isLeft=function(o,t,n){return(t.x-o.x)*(n.y-o.y)-(t.y-o.y)*(n.x-o.x)<=0},e.getOrder=function(o){for(var t={},n=0;n"u"&&(t[i.l]={}),t[i.l][i.r]=!0}return function(s,d){return typeof t[s]<"u"&&t[s][d]}},e.orderEdges=function(o){for(var t=[],n=0;n=s.length||u.ti+u.length>=d.length)){t.push({l:n,r:i});continue}u.si+u.length>=s.length||u.ti+u.length>=d.length?(f=s[u.si+1],C=s[u.si-1],_=d[u.ti-1]):(f=s[u.si+u.length-2],_=s[u.si+u.length],C=d[u.ti+u.length]),e.isLeft(f,_,C)?t.push({l:i,r:n}):t.push({l:n,r:i})}}return e.getOrder(t)},e.makeSegments=function(o){function t(_){return{x:_.x,y:_.y}}for(var n=function(_,C,x){return Math.abs((C.x-_.x)*(x.y-_.y)-(C.y-_.y)*(x.x-_.x))<.001},i=[],s=t(o[0]),d=1;d1&&se>1?1e3:0},M=P.PathFromNodeToNodeWithPrevCost(i.ports[0].id,s.ports[0].id,S),D=M.reverse().map(function(k){return n.verts[k]});return D.push(this.nodes[s.id].ports[0]),D.filter(function(k,z){return!(z0&&k.node===s&&D[z-1].node===s)})},e.getRoutePath=function(o,t,n,i){var s={routepath:"M "+o[0][0].x+" "+o[0][0].y+" ",arrowpath:""};if(o.length>1)for(var d=0;d0?f-=C/Math.abs(C)*t:_-=x/Math.abs(x)*t,s.routepath+="L "+f+" "+_+" ";var y=o[d+1],P=y[0].x,S=y[0].y,M=y[1].x,D=y[1].y;C=M-P,x=D-S;var k=e.angleBetween2Lines(u,y)<0?1:0,z,U;Math.abs(C)>0?(z=P+C/Math.abs(C)*t,U=S):(z=P,U=S+x/Math.abs(x)*t);var J=Math.abs(z-f),re=Math.abs(U-_);s.routepath+="A "+J+" "+re+" 0 0 "+k+" "+z+" "+U+" "}else{var ee=[f,_],ae,se;Math.abs(C)>0?(f-=C/Math.abs(C)*i,ae=[f,_+n],se=[f,_-n]):(_-=x/Math.abs(x)*i,ae=[f+n,_],se=[f-n,_]),s.routepath+="L "+f+" "+_+" ",i>0&&(s.arrowpath="M "+ee[0]+" "+ee[1]+" L "+ae[0]+" "+ae[1]+" L "+se[0]+" "+se[1])}}else{var u=o[0],f=u[1].x,_=u[1].y,C=f-u[0].x,x=_-u[0].y,ee=[f,_],ae,se;Math.abs(C)>0?(f-=C/Math.abs(C)*i,ae=[f,_+n],se=[f,_-n]):(_-=x/Math.abs(x)*i,ae=[f+n,_],se=[f-n,_]),s.routepath+="L "+f+" "+_+" ",i>0&&(s.arrowpath="M "+ee[0]+" "+ee[1]+" L "+ae[0]+" "+ae[1]+" L "+se[0]+" "+se[1])}return s},e})();Mu.GridRouter=Dht});var BK=pt(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var Eht=nh(),TI=fy(),Iht=Su(),Oht=uy(),Aht=(function(){function e(o,t){this.source=o,this.target=t}return e.prototype.actualLength=function(o){var t=this;return Math.sqrt(o.reduce(function(n,i){var s=i[t.target]-i[t.source];return n+s*s},0))},e})();sh.Link3D=Aht;var Fht=(function(){function e(o,t,n){o===void 0&&(o=0),t===void 0&&(t=0),n===void 0&&(n=0),this.x=o,this.y=t,this.z=n}return e})();sh.Node3D=Fht;var kht=(function(){function e(o,t,n){var i=this;n===void 0&&(n=1),this.nodes=o,this.links=t,this.idealLinkLength=n,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(e.k);for(var s=0;s"u"&&(d[C]=Math.random())}i.result[0][u]=d.x,i.result[1][u]=d.y,i.result[2][u]=d.z})}return e.prototype.linkLength=function(o){return o.actualLength(this.result)},e.prototype.start=function(o){var t=this;o===void 0&&(o=100);var n=this.nodes.length,i=new Bht;this.useJaccardLinkLengths&&Oht.jaccardLinkLengths(this.links,i,1.5),this.links.forEach(function(C){return C.length*=t.idealLinkLength});var s=new Eht.Calculator(n,this.links,function(C){return C.source},function(C){return C.target},function(C){return C.length}).DistanceMatrix(),d=TI.Descent.createSquareMatrix(n,function(C,x){return s[C][x]}),u=TI.Descent.createSquareMatrix(n,function(){return 2});this.links.forEach(function(C){var x=C.source,y=C.target;return u[x][y]=u[y][x]=1}),this.descent=new TI.Descent(this.result,d),this.descent.threshold=.001,this.descent.G=u,this.constraints&&(this.descent.project=new Iht.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var f=0;f{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var MI=wu(),Rht=PI();function Nht(e,o,t,n){e.cola.start(0,0,0,10,!1);var i=Lht(e.cola.nodes(),e.cola.groups(),t,n);return i.routeEdges(e.powerGraph.powerEdges,o,function(s){return s.source.routerNode.id},function(s){return s.target.routerNode.id})}Ey.gridify=Nht;function Lht(e,o,t,n){e.forEach(function(s){s.routerNode={name:s.name,bounds:s.bounds.inflate(-t)}}),o.forEach(function(s){s.routerNode={bounds:s.bounds.inflate(-n),children:(typeof s.groups<"u"?s.groups.map(function(d){return e.length+d.id}):[]).concat(typeof s.leaves<"u"?s.leaves.map(function(d){return d.index}):[])}});var i=e.concat(o).map(function(s,d){return s.routerNode.id=d,s.routerNode});return new Rht.GridRouter(i,{getChildren:function(s){return s.children},getBounds:function(s){return s.bounds}},t-n)}function Vht(e,o,t){var n;e.nodes.forEach(function(u,f){return u.index=f}),new MI.Layout().avoidOverlaps(!1).nodes(e.nodes).links(e.links).powerGraphGroups(function(u){n=u,n.groups.forEach(function(f){return f.padding=t})});var i=e.nodes.length,s=[],d=e.nodes.slice(0);return d.forEach(function(u,f){return u.index=f}),n.groups.forEach(function(u){var f=u.index=u.id+i;d.push(u),typeof u.leaves<"u"&&u.leaves.forEach(function(_){return s.push({source:f,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return s.push({source:f,target:_.id+i})})}),n.powerEdges.forEach(function(u){s.push({source:u.source.index,target:u.target.index})}),new MI.Layout().size(o).nodes(d).links(s).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:new MI.Layout().convergenceThreshold(.001).size(o).avoidOverlaps(!0).nodes(e.nodes).links(e.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(u){n=u,n.groups.forEach(function(f){f.padding=t})}).start(50,0,100,0,!1),powerGraph:n}}Ey.powerGraphGridLayout=Vht});var NK=pt(Iy=>{"use strict";function Kr(e){for(var o in e)Iy.hasOwnProperty(o)||(Iy[o]=e[o])}Object.defineProperty(Iy,"__esModule",{value:!0});Kr(EK());Kr(FK());Kr(fy());Kr(_I());Kr(PI());Kr(CI());Kr(wu());Kr(BK());Kr(uy());Kr(oI());Kr(dI());Kr(sI());Kr(Su());Kr(nh());Kr(_y());Kr(RK())});var TO=pt((jX,PO)=>{(function(e){typeof jX=="object"&&typeof PO<"u"?PO.exports=e():typeof define=="function"&&define.amd?define([],e):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).ExcelJS=e()})(function(){return(function e(o,t,n){function i(u,f){if(!t[u]){if(!o[u]){var _=typeof Ms=="function"&&Ms;if(!f&&_)return _(u,!0);if(s)return s(u,!0);var C=new Error("Cannot find module '"+u+"'");throw C.code="MODULE_NOT_FOUND",C}var x=t[u]={exports:{}};o[u][0].call(x.exports,function(y){return i(o[u][1][y]||y)},x,x.exports,e,o,t,n)}return t[u].exports}for(var s=typeof Ms=="function"&&Ms,d=0;d{let M=this.workbook.addWorksheet(y.sheetName),D=y.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],k=y.map||function(U){if(U==="")return null;let J=Number(U);if(!Number.isNaN(J)&&J!==1/0)return J;let re=D.reduce((ae,se)=>{if(ae)return ae;let _e=u(U,se,!0);return _e.isValid()?_e:null},null);if(re)return new Date(re.valueOf());let ee=C[U];return ee!==void 0?ee:U},z=i.parse(y.parserOptions).on("data",U=>{M.addRow(U.map(k))}).on("end",()=>{z.emit("worksheet",M)});z.on("worksheet",P).on("error",S),x.pipe(z)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(x,y){return new Promise((P,S)=>{y=y||{};let M=this.workbook.getWorksheet(y.sheetName||y.sheetId),D=i.format(y.formatterOptions);x.on("finish",()=>{P()}),D.on("error",S),D.pipe(x);let{dateFormat:k,dateUTC:z}=y,U=y.map||(ee=>{if(ee){if(ee.text||ee.hyperlink)return ee.hyperlink||ee.text||"";if(ee.formula||ee.result)return ee.result||"";if(ee instanceof Date)return k?z?u.utc(ee).format(k):u(ee).format(k):z?u.utc(ee).format():u(ee).format();if(ee.error)return ee.error;if(typeof ee=="object")return JSON.stringify(ee)}return ee}),J=y.includeEmptyRows===void 0||y.includeEmptyRows,re=1;M&&M.eachRow((ee,ae)=>{if(J)for(;re++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=d,u)if(typeof u=="string"){let _=n.decodeAddress(u);this.nativeCol=_.col+f,this.nativeColOff=0,this.nativeRow=_.row+f,this.nativeRowOff=0}else u.nativeCol!==void 0?(this.nativeCol=u.nativeCol||0,this.nativeColOff=u.nativeColOff||0,this.nativeRow=u.nativeRow||0,this.nativeRowOff=u.nativeRowOff||0):u.col!==void 0?(this.col=u.col+f,this.row=u.row+f):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(d){return d instanceof i||d==null?d:new i(d)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(d){this.nativeCol=Math.floor(d),this.nativeColOff=Math.floor((d-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(d){this.nativeRow=Math.floor(d),this.nativeRowOff=Math.floor((d-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(d){this.nativeCol=d.nativeCol,this.nativeColOff=d.nativeColOff,this.nativeRow=d.nativeRow,this.nativeRowOff=d.nativeRowOff}}o.exports=i},{"../utils/col-cache":19}],3:[function(e,o,t){"use strict";let n=e("../utils/col-cache"),i=e("../utils/under-dash"),s=e("./enums"),{slideFormula:d}=e("../utils/shared-formula"),u=e("./note");class f{constructor(x,y,P){if(!x||!y)throw new Error("A Cell needs a Row");this._row=x,this._column=y,n.validateAddress(P),this._address=P,this._value=_.create(f.Types.Null,this),this.style=this._mergeStyle(x.style,y.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(x){this.style.numFmt=x}get font(){return this.style.font}set font(x){this.style.font=x}get alignment(){return this.style.alignment}set alignment(x){this.style.alignment=x}get border(){return this.style.border}set border(x){this.style.border=x}get fill(){return this.style.fill}set fill(x){this.style.fill=x}get protection(){return this.style.protection}set protection(x){this.style.protection=x}_mergeStyle(x,y,P){let S=x&&x.numFmt||y&&y.numFmt;S&&(P.numFmt=S);let M=x&&x.font||y&&y.font;M&&(P.font=M);let D=x&&x.alignment||y&&y.alignment;D&&(P.alignment=D);let k=x&&x.border||y&&y.border;k&&(P.border=k);let z=x&&x.fill||y&&y.fill;z&&(P.fill=z);let U=x&&x.protection||y&&y.protection;return U&&(P.protection=U),P}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===f.Types.Merge}merge(x,y){this._value.release(),this._value=_.create(f.Types.Merge,this,x),y||(this.style=x.style)}unmerge(){this.type===f.Types.Merge&&(this._value.release(),this._value=_.create(f.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(x){return this._value.type===f.Types.Merge&&this._value.isMergedTo(x)}get master(){return this.type===f.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===f.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(x){this.type!==f.Types.Merge?(this._value.release(),this._value=_.create(_.getType(x),this,x)):this._value.master.value=x}get note(){return this._comment&&this._comment.note}set note(x){this._comment=new u(x)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(x){this.type===f.Types.String&&(this._value=_.create(f.Types.Hyperlink,this,{text:this._value.value,hyperlink:x}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:x}=this._row;return{sheetName:x.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(x){this.names=[x]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(x){let{definedNames:y}=this.workbook;y.removeAllNames(this.fullAddress),x.forEach(P=>{y.addEx(this.fullAddress,P)})}addName(x){this.workbook.definedNames.addEx(this.fullAddress,x)}removeName(x){this.workbook.definedNames.removeEx(this.fullAddress,x)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(x){this._dataValidations.add(this.address,x)}get model(){let{model:x}=this._value;return x.style=this.style,this._comment&&(x.comment=this._comment.model),x}set model(x){if(this._value.release(),this._value=_.create(x.type,this),this._value.model=x,x.comment)switch(x.comment.type){case"note":this._comment=u.fromModel(x.comment)}x.style?this.style=x.style:this.style={}}}f.Types=s.ValueType;let _={getType:C=>C==null?f.Types.Null:C instanceof String||typeof C=="string"?f.Types.String:typeof C=="number"?f.Types.Number:typeof C=="boolean"?f.Types.Boolean:C instanceof Date?f.Types.Date:C.text&&C.hyperlink?f.Types.Hyperlink:C.formula||C.sharedFormula?f.Types.Formula:C.richText?f.Types.RichText:C.sharedString?f.Types.SharedString:C.error?f.Types.Error:f.Types.JSON,types:[{t:f.Types.Null,f:class{constructor(C){this.model={address:C.address,type:f.Types.Null}}get value(){return null}set value(C){}get type(){return f.Types.Null}get effectiveType(){return f.Types.Null}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return""}release(){}toString(){return""}}},{t:f.Types.Number,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Number,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Number}get effectiveType(){return f.Types.Number}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.String,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.String,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:f.Types.Date,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Date,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Date}get effectiveType(){return f.Types.Date}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.Hyperlink,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Hyperlink,text:x?x.text:void 0,hyperlink:x?x.hyperlink:void 0},x&&x.tooltip&&(this.model.tooltip=x.tooltip)}get value(){let C={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(C.tooltip=this.model.tooltip),C}set value(C){this.model={text:C.text,hyperlink:C.hyperlink},C.tooltip&&(this.model.tooltip=C.tooltip)}get text(){return this.model.text}set text(C){this.model.text=C}get hyperlink(){return this.model.hyperlink}set hyperlink(C){this.model.hyperlink=C}get type(){return f.Types.Hyperlink}get effectiveType(){return f.Types.Hyperlink}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:f.Types.Formula,f:class{constructor(C,x){this.cell=C,this.model={address:C.address,type:f.Types.Formula,shareType:x?x.shareType:void 0,ref:x?x.ref:void 0,formula:x?x.formula:void 0,sharedFormula:x?x.sharedFormula:void 0,result:x?x.result:void 0}}_copyModel(C){let x={},y=P=>{let S=C[P];S&&(x[P]=S)};return y("formula"),y("result"),y("ref"),y("shareType"),y("sharedFormula"),x}get value(){return this._copyModel(this.model)}set value(C){this.model=this._copyModel(C)}validate(C){switch(_.getType(C)){case f.Types.Null:case f.Types.String:case f.Types.Number:case f.Types.Date:break;case f.Types.Hyperlink:case f.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(C){this.model.formula=C}get formulaType(){return this.model.formula?s.FormulaType.Master:this.model.sharedFormula?s.FormulaType.Shared:s.FormulaType.None}get result(){return this.model.result}set result(C){this.model.result=C}get type(){return f.Types.Formula}get effectiveType(){let C=this.model.result;return C==null?s.ValueType.Null:C instanceof String||typeof C=="string"?s.ValueType.String:typeof C=="number"?s.ValueType.Number:C instanceof Date?s.ValueType.Date:C.text&&C.hyperlink?s.ValueType.Hyperlink:C.formula?s.ValueType.Formula:s.ValueType.Null}get address(){return this.model.address}set address(C){this.model.address=C}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:C}=this.cell,x=C.findCell(this.model.sharedFormula);this._translatedFormula=x&&d(x.formula,x.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:f.Types.Merge,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Merge,master:x?x.address:void 0},this._master=x,x&&x.addMergeRef()}get value(){return this._master.value}set value(C){C instanceof f?(this._master&&this._master.releaseMergeRef(),C.addMergeRef(),this._master=C):this._master.value=C}isMergedTo(C){return C===this._master}get master(){return this._master}get type(){return f.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:f.Types.JSON,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.String,value:JSON.stringify(x),rawValue:x}}get value(){return this.model.rawValue}set value(C){this.model.rawValue=C,this.model.value=JSON.stringify(C)}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:f.Types.SharedString,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.SharedString,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.SharedString}get effectiveType(){return f.Types.SharedString}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.RichText,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.String,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}toString(){return this.model.value.richText.map(C=>C.text).join("")}get type(){return f.Types.RichText}get effectiveType(){return f.Types.RichText}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:f.Types.Boolean,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Boolean,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Boolean}get effectiveType(){return f.Types.Boolean}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.Error,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Error,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Error}get effectiveType(){return f.Types.Error}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((C,x)=>(C[x.t]=x.f,C),[]),create(C,x,y){let P=this.types[C];if(!P)throw new Error("Could not create Value of type "+C);return new P(x,y)}};o.exports=f},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,o,t){"use strict";let n=e("../utils/under-dash"),i=e("./enums"),s=e("../utils/col-cache");class d{constructor(f,_,C){this._worksheet=f,this._number=_,C!==!1&&(this.defn=C)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(f){f?(this.key=f.key,this.width=f.width!==void 0?f.width:9,this.outlineLevel=f.outlineLevel,f.style?this.style=f.style:this.style={},this.header=f.header,this._hidden=!!f.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(f){f!==void 0?(this._header=f,this.headers.forEach((_,C)=>{this._worksheet.getCell(C+1,this.number).value=_})):this._header=void 0}get key(){return this._key}set key(f){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=f,f&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(f){this._hidden=f}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(f){this._outlineLevel=f}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(f){return this.width===f.width&&this.hidden===f.hidden&&this.outlineLevel===f.outlineLevel&&n.isEqual(this.style,f.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;let f=this.style;return!f||!(f.font||f.numFmt||f.alignment||f.border||f.fill||f.protection)}get headerCount(){return this.headers.length}eachCell(f,_){let C=this.number;_||(_=f,f=null),this._worksheet.eachRow(f,(x,y)=>{_(x.getCell(C),y)})}get values(){let f=[];return this.eachCell((_,C)=>{_&&_.type!==i.ValueType.Null&&(f[C]=_.value)}),f}set values(f){if(!f)return;let _=this.number,C=0;f.hasOwnProperty("0")&&(C=1),f.forEach((x,y)=>{this._worksheet.getCell(y+C,_).value=x})}_applyStyle(f,_){return this.style[f]=_,this.eachCell(C=>{C[f]=_}),_}get numFmt(){return this.style.numFmt}set numFmt(f){this._applyStyle("numFmt",f)}get font(){return this.style.font}set font(f){this._applyStyle("font",f)}get alignment(){return this.style.alignment}set alignment(f){this._applyStyle("alignment",f)}get protection(){return this.style.protection}set protection(f){this._applyStyle("protection",f)}get border(){return this.style.border}set border(f){this._applyStyle("border",f)}get fill(){return this.style.fill}set fill(f){this._applyStyle("fill",f)}static toModel(f){let _=[],C=null;return f&&f.forEach((x,y)=>{x.isDefault?C&&(C=null):C&&x.equivalentTo(C)?C.max=y+1:(C={min:y+1,max:y+1,width:x.width!==void 0?x.width:9,style:x.style,isCustomWidth:x.isCustomWidth,hidden:x.hidden,outlineLevel:x.outlineLevel,collapsed:x.collapsed},_.push(C))}),_.length?_:void 0}static fromModel(f,_){let C=[],x=1,y=0;for(_=(_=_||[]).sort(function(P,S){return P.min-S.min});y<_.length;){let P=_[y++];for(;x{_.removeCellEx(f)})}forEach(f){n.each(this.matrixMap,(_,C)=>{_.forEach(x=>{f(C,x)})})}getNames(f){return this.getNamesEx(i.decodeEx(f))}getNamesEx(f){return n.map(this.matrixMap,(_,C)=>_.findCellEx(f)&&C).filter(Boolean)}_explore(f,_){_.mark=!1;let{sheetName:C}=_,x=new d(_.row,_.col,_.row,_.col,C),y,P;function S(D,k){let z=f.findCellAt(C,D,_.col);return!(!z||!z.mark)&&(x[k]=D,z.mark=!1,!0)}for(P=_.row-1;S(P,"top");P--);for(P=_.row+1;S(P,"bottom");P++);function M(D,k){let z=[];for(P=x.top;P<=x.bottom;P++){let U=f.findCellAt(C,P,D);if(!U||!U.mark)return!1;z.push(U)}x[k]=D;for(let U=0;U{C.mark=!0}),{name:f,ranges:_.map(C=>C.mark&&this._explore(_,C)).filter(Boolean).map(C=>C.$shortRange)}):{name:f,ranges:[]}}normaliseMatrix(f,_){f.forEachInSheet(_,(C,x,y)=>{C&&(C.row===x&&C.col===y||(C.row=x,C.col=y,C.address=i.n2l(y)+x))})}spliceRows(f,_,C,x){n.each(this.matrixMap,y=>{y.spliceRows(f,_,C,x),this.normaliseMatrix(y,f)})}spliceColumns(f,_,C,x){n.each(this.matrixMap,y=>{y.spliceColumns(f,_,C,x),this.normaliseMatrix(y,f)})}get model(){return n.map(this.matrixMap,(f,_)=>this.getRanges(_,f)).filter(f=>f.ranges.length)}set model(f){let _=this.matrixMap={};f.forEach(C=>{let x=_[C.name]=new s;C.ranges.forEach(y=>{u.test(y.split("!").pop()||"")&&x.addCell(y)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,o,t){"use strict";o.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,o,t){"use strict";let n=e("../utils/col-cache"),i=e("./anchor");o.exports=class{constructor(s,d){this.worksheet=s,this.model=d}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(s){let{type:d,imageId:u,range:f,hyperlinks:_}=s;if(this.type=d,this.imageId=u,d==="image")if(typeof f=="string"){let C=n.decode(f);this.range={tl:new i(this.worksheet,{col:C.left,row:C.top},-1),br:new i(this.worksheet,{col:C.right,row:C.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,f.tl,0),br:f.br&&new i(this.worksheet,f.br,0),ext:f.ext,editAs:f.editAs,hyperlinks:_||f.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,o,t){"use strict";let n=e("../utils/under-dash");class i{constructor(d){this.note=d}get model(){let d=null;switch(typeof this.note){case"string":d={type:"note",note:{texts:[{text:this.note}]}};break;default:d={type:"note",note:this.note}}return n.deepMerge({},i.DEFAULT_CONFIGS,d)}set model(d){let{note:u}=d,{texts:f}=u;f.length===1&&Object.keys(f[0]).length===1?this.note=f[0].text:this.note=u}static fromModel(d){let u=new i;return u.model=d,u}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},o.exports=i},{"../utils/under-dash":26}],10:[function(e,o,t){"use strict";let n=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(d,u,f,_,C){if(arguments.length<4){let x=n.decodeAddress(d),y=n.decodeAddress(u);this.model={top:Math.min(x.row,y.row),left:Math.min(x.col,y.col),bottom:Math.max(x.row,y.row),right:Math.max(x.col,y.col),sheetName:f},this.setTLBR(x.row,x.col,y.row,y.col,C)}else this.model={top:Math.min(d,f),left:Math.min(u,_),bottom:Math.max(d,f),right:Math.max(u,_),sheetName:C}}decode(d){switch(d.length){case 5:this.setTLBR(d[0],d[1],d[2],d[3],d[4]);break;case 4:this.setTLBR(d[0],d[1],d[2],d[3]);break;case 3:this.setTLBR(d[0],d[1],d[2]);break;case 2:this.setTLBR(d[0],d[1]);break;case 1:{let u=d[0];if(u instanceof i)this.model={top:u.model.top,left:u.model.left,bottom:u.model.bottom,right:u.model.right,sheetName:u.sheetName};else if(u instanceof Array)this.decode(u);else if(u.top&&u.left&&u.bottom&&u.right)this.model={top:u.top,left:u.left,bottom:u.bottom,right:u.right,sheetName:u.sheetName};else{let f=n.decodeEx(u);f.top?this.model={top:f.top,left:f.left,bottom:f.bottom,right:f.right,sheetName:f.sheetName}:this.model={top:f.row,left:f.col,bottom:f.row,right:f.col,sheetName:f.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+d.length)}}get top(){return this.model.top||1}set top(d){this.model.top=d}get left(){return this.model.left||1}set left(d){this.model.left=d}get bottom(){return this.model.bottom||1}set bottom(d){this.model.bottom=d}get right(){return this.model.right||1}set right(d){this.model.right=d}get sheetName(){return this.model.sheetName}set sheetName(d){this.model.sheetName=d}get _serialisedSheetName(){let{sheetName:d}=this.model;return d?/^[a-zA-Z0-9]*$/.test(d)?d+"!":`'${d}'!`:""}expand(d,u,f,_){(!this.model.top||dthis.bottom)&&(this.bottom=f),(!this.model.right||_>this.right)&&(this.right=_)}expandRow(d){if(d){let{dimensions:u,number:f}=d;u&&this.expand(f,u.min,f,u.max)}}expandToAddress(d){let u=n.decodeEx(d);this.expand(u.row,u.col,u.row,u.col)}get tl(){return n.n2l(this.left)+this.top}get $t$l(){return`$${n.n2l(this.left)}$${this.top}`}get br(){return n.n2l(this.right)+this.bottom}get $b$r(){return`$${n.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&!(d.bottomthis.bottom)&&!(d.rightthis.right)}contains(d){let u=n.decodeEx(d);return this.containsEx(u)}containsEx(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&d.row>=this.top&&d.row<=this.bottom&&d.col>=this.left&&d.col<=this.right}forEachAddress(d){for(let u=this.left;u<=this.right;u++)for(let f=this.top;f<=this.bottom;f++)d(n.encodeAddress(f,u),f,u)}}o.exports=i},{"../utils/col-cache":19}],11:[function(e,o,t){"use strict";let n=e("../utils/under-dash"),i=e("./enums"),s=e("../utils/col-cache"),d=e("./cell");o.exports=class{constructor(u,f){this._worksheet=u,this._number=f,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(u){return this._cells[u-1]}getCellEx(u){let f=this._cells[u.col-1];if(!f){let _=this._worksheet.getColumn(u.col);f=new d(this,_,u.address),this._cells[u.col-1]=f}return f}getCell(u){if(typeof u=="string"){let f=this._worksheet.getColumnKey(u);u=f?f.number:s.l2n(u)}return this._cells[u-1]||this.getCellEx({address:s.encodeAddress(this._number,u),row:this._number,col:u})}splice(u,f){let _=u+f;for(var C=arguments.length,x=new Array(C>2?C-2:0),y=2;y0)for(M=S;M>=_;M--)D=this._cells[M-1],D?(k=this.getCell(M+P),k.value=D.value,k.style=D.style,k._comment=D._comment):this._cells[M+P-1]=void 0;for(M=0;M{_&&_.type!==i.ValueType.Null&&f(_,C+1)})}addPageBreak(u,f){let _=this._worksheet,C=Math.max(0,u-1)||0,x=Math.max(0,f-1)||16838,y={id:this._number,max:x,man:1};C&&(y.min=C),_.rowBreaks.push(y)}get values(){let u=[];return this._cells.forEach(f=>{f&&f.type!==i.ValueType.Null&&(u[f.col]=f.value)}),u}set values(u){if(this._cells=[],u)if(u instanceof Array){let f=0;u.hasOwnProperty("0")&&(f=1),u.forEach((_,C)=>{_!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,C+f),row:this._number,col:C+f}).value=_)})}else this._worksheet.eachColumnKey((f,_)=>{u[_]!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,f.number),row:this._number,col:f.number}).value=u[_])})}get hasValues(){return n.some(this._cells,u=>u&&u.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let u=0;return this.eachCell(()=>{u++}),u}get dimensions(){let u=0,f=0;return this._cells.forEach(_=>{_&&_.type!==i.ValueType.Null&&((!u||u>_.col)&&(u=_.col),f<_.col&&(f=_.col))}),u>0?{min:u,max:f}:null}_applyStyle(u,f){return this.style[u]=f,this._cells.forEach(_=>{_&&(_[u]=f)}),f}get numFmt(){return this.style.numFmt}set numFmt(u){this._applyStyle("numFmt",u)}get font(){return this.style.font}set font(u){this._applyStyle("font",u)}get alignment(){return this.style.alignment}set alignment(u){this._applyStyle("alignment",u)}get protection(){return this.style.protection}set protection(u){this._applyStyle("protection",u)}get border(){return this.style.border}set border(u){this._applyStyle("border",u)}get fill(){return this.style.fill}set fill(u){this._applyStyle("fill",u)}get hidden(){return!!this._hidden}set hidden(u){this._hidden=u}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(u){this._outlineLevel=u}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let u=[],f=0,_=0;return this._cells.forEach(C=>{if(C){let x=C.model;x&&((!f||f>C.col)&&(f=C.col),_{switch(_.type){case d.Types.Merge:break;default:{let C;if(_.address)C=s.decodeAddress(_.address);else if(f){let{row:x}=f,y=f.col+1;C={row:x,col:y,address:s.encodeAddress(x,y),$col$row:`$${s.n2l(y)}$${x}`}}f=C,this.getCellEx(C).model=_;break}}}),u.height?this.height=u.height:delete this.height,this.hidden=u.hidden,this.outlineLevel=u.outlineLevel||0,this.style=u.style&&JSON.parse(JSON.stringify(u.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,o,t){"use strict";let n=e("../utils/col-cache");class i{constructor(d,u,f){this.table=d,this.column=u,this.index=f}_set(d,u){this.table.cacheState(),this.column[d]=u}get name(){return this.column.name}set name(d){this._set("name",d)}get filterButton(){return this.column.filterButton}set filterButton(d){this.column.filterButton=d}get style(){return this.column.style}set style(d){this.column.style=d}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(d){this._set("totalsRowLabel",d)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(d){this._set("totalsRowFunction",d)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(d){this._set("totalsRowResult",d)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(d){this._set("totalsRowFormula",d)}}o.exports=class{constructor(s,d){this.worksheet=s,d&&(this.table=d,this.validate(),this.store())}getFormula(s){switch(s.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${s.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${s.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${s.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${s.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${s.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${s.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${s.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${s.name}])`;case"custom":return s.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+s.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){let{table:s}=this,d=(P,S,M)=>{P[S]===void 0&&(P[S]=M)};d(s,"headerRow",!0),d(s,"totalsRow",!1),d(s,"style",{}),d(s.style,"theme","TableStyleMedium2"),d(s.style,"showFirstColumn",!1),d(s.style,"showLastColumn",!1),d(s.style,"showRowStripes",!1),d(s.style,"showColumnStripes",!1);let u=(P,S)=>{if(!P)throw new Error(S)};u(s.ref,"Table must have ref"),u(s.columns,"Table must have column definitions"),u(s.rows,"Table must have row definitions"),s.tl=n.decodeAddress(s.ref);let{row:f,col:_}=s.tl;u(f>0,"Table must be on valid row"),u(_>0,"Table must be on valid col");let{width:C,filterHeight:x,tableHeight:y}=this;s.autoFilterRef=n.encode(f,_,f+x-1,_+C-1),s.tableRef=n.encode(f,_,f+y-1,_+C-1),s.columns.forEach((P,S)=>{u(P.name,`Column ${S} must have a name`),S===0?d(P,"totalsRowLabel","Total"):(d(P,"totalsRowFunction","none"),P.totalsRowFormula=this.getFormula(P))})}store(){let s=(x,y)=>{y&&Object.keys(y).forEach(P=>{x[P]=y[P]})},{worksheet:d,table:u}=this,{row:f,col:_}=u.tl,C=0;if(u.headerRow){let x=d.getRow(f+C++);u.columns.forEach((y,P)=>{let{style:S,name:M}=y,D=x.getCell(_+P);D.value=M,s(D,S)})}if(u.rows.forEach(x=>{let y=d.getRow(f+C++);x.forEach((P,S)=>{let M=y.getCell(_+S);M.value=P,s(M,u.columns[S].style)})}),u.totalsRow){let x=d.getRow(f+C++);u.columns.forEach((y,P)=>{let S=x.getCell(_+P);if(P===0)S.value=y.totalsRowLabel;else{let M=this.getFormula(y);S.value=M?{formula:y.totalsRowFormula,result:y.totalsRowResult}:null}s(S,y.style)})}}load(s){let{table:d}=this,{row:u,col:f}=d.tl,_=0;if(d.headerRow){let C=s.getRow(u+_++);d.columns.forEach((x,y)=>{C.getCell(f+y).value=x.name})}if(d.rows.forEach(C=>{let x=s.getRow(u+_++);C.forEach((y,P)=>{x.getCell(f+P).value=y})}),d.totalsRow){let C=s.getRow(u+_++);d.columns.forEach((x,y)=>{let P=C.getCell(f+y);y===0?P.value=x.totalsRowLabel:this.getFormula(x)&&(P.value={formula:x.totalsRowFormula,result:x.totalsRowResult})})}}get model(){return this.table}set model(s){this.table=s}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();let s=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let d=0;d1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(s,d)}getColumn(s){let d=this.table.columns[s];return new i(this,d,s)}addColumn(s,d,u){this.cacheState(),u===void 0?(this.table.columns.push(s),this.table.rows.forEach((f,_)=>{f.push(d[_])})):(this.table.columns.splice(u,0,s),this.table.rows.forEach((f,_)=>{f.splice(u,0,d[_])}))}removeColumns(s){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(s,d),this.table.rows.forEach(u=>{u.splice(s,d)})}_assign(s,d,u){this.cacheState(),s[d]=u}get ref(){return this.table.ref}set ref(s){this._assign(this.table,"ref",s)}get name(){return this.table.name}set name(s){this.table.name=s}get displayName(){return this.table.displyName||this.table.name}set displayNamename(s){this.table.displayName=s}get headerRow(){return this.table.headerRow}set headerRow(s){this._assign(this.table,"headerRow",s)}get totalsRow(){return this.table.totalsRow}set totalsRow(s){this._assign(this.table,"totalsRow",s)}get theme(){return this.table.style.name}set theme(s){this.table.style.name=s}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(s){this.table.style.showFirstColumn=s}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(s){this.table.style.showLastColumn=s}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(s){this.table.style.showRowStripes=s}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(s){this.table.style.showColumnStripes=s}}},{"../utils/col-cache":19}],13:[function(e,o,t){"use strict";let n=e("./worksheet"),i=e("./defined-names"),s=e("../xlsx/xlsx"),d=e("../csv/csv");o.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new s(this)),this._xlsx}get csv(){return this._csv||(this._csv=new d(this)),this._csv}get nextId(){for(let u=1;u(S&&S.orderNo)>P?S.orderNo:P,0),x=Object.assign({},f,{id:_,name:u,orderNo:C+1,workbook:this}),y=new n(x);return this._worksheets[_]=y,y}removeWorksheetEx(u){delete this._worksheets[u.id]}removeWorksheet(u){let f=this.getWorksheet(u);f&&f.destroy()}getWorksheet(u){return u===void 0?this._worksheets.find(Boolean):typeof u=="number"?this._worksheets[u]:typeof u=="string"?this._worksheets.find(f=>f&&f.name===u):void 0}get worksheets(){return this._worksheets.slice(1).sort((u,f)=>u.orderNo-f.orderNo).filter(Boolean)}eachSheet(u){this.worksheets.forEach(f=>{u(f,f.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(u){let f=this.media.length;return this.media.push(Object.assign({},u,{type:"image"})),f}getImage(u){return this.media[u]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(u=>u.model),sheets:this.worksheets.map(u=>u.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(u){this.creator=u.creator,this.lastModifiedBy=u.lastModifiedBy,this.lastPrinted=u.lastPrinted,this.created=u.created,this.modified=u.modified,this.company=u.company,this.manager=u.manager,this.title=u.title,this.subject=u.subject,this.keywords=u.keywords,this.category=u.category,this.description=u.description,this.language=u.language,this.revision=u.revision,this.contentStatus=u.contentStatus,this.properties=u.properties,this.calcProperties=u.calcProperties,this._worksheets=[],u.worksheets.forEach(f=>{let{id:_,name:C,state:x}=f,y=u.sheets&&u.sheets.findIndex(P=>P.id===_);(this._worksheets[_]=new n({id:_,name:C,orderNo:y,state:x,workbook:this})).model=f}),this._definedNames.model=u.definedNames,this.views=u.views,this._themes=u.themes,this.media=u.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,o,t){"use strict";let n=e("../utils/under-dash"),i=e("../utils/col-cache"),s=e("./range"),d=e("./row"),u=e("./column"),f=e("./enums"),_=e("./image"),C=e("./table"),x=e("./data-validations"),y=e("../utils/encryptor"),{copyStyle:P}=e("../utils/copy-style");o.exports=class{constructor(S){S=S||{},this._workbook=S.workbook,this.id=S.id,this.orderNo=S.orderNo,this.name=S.name,this.state=S.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},S.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!S.pageSetup||!S.pageSetup.fitToWidth&&!S.pageSetup.fitToHeight||S.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},S.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},S.headerFooter),this.dataValidations=new x,this.views=S.views||[],this.autoFilter=S.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(S){if(S===void 0&&(S="sheet"+this.id),this._name!==S){if(typeof S!="string")throw new Error("The name has to be a string.");if(S==="")throw new Error("The name can't be empty.");if(S==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(S))throw new Error(`Worksheet name ${S} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(S))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+S);if(S&&S.length>31&&(console.warn(`Worksheet name ${S} exceeds 31 chars. This will be truncated`),S=S.substring(0,31)),this._workbook._worksheets.find(M=>M&&M.name.toLowerCase()===S.toLowerCase()))throw new Error("Worksheet name already exists: "+S);this._name=S}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let S=new s;return this._rows.forEach(M=>{if(M){let D=M.dimensions;D&&S.expand(M.number,D.min,M.number,D.max)}}),S}get columns(){return this._columns}set columns(S){this._headerRowCount=S.reduce((k,z)=>{let U=(z.header?1:z.headers&&z.headers.length)||0;return Math.max(k,U)},0);let M=1,D=this._columns=[];S.forEach(k=>{let z=new u(this,M++,!1);D.push(z),z.defn=k})}getColumnKey(S){return this._keys[S]}setColumnKey(S,M){this._keys[S]=M}deleteColumnKey(S){delete this._keys[S]}eachColumnKey(S){n.each(this._keys,S)}getColumn(S){if(typeof S=="string"){let M=this._keys[S];if(M)return M;S=i.l2n(S)}if(this._columns||(this._columns=[]),S>this._columns.length){let M=this._columns.length+1;for(;M<=S;)this._columns.push(new u(this,M++))}return this._columns[S-1]}spliceColumns(S,M){let D=this._rows.length;for(var k=arguments.length,z=new Array(k>2?k-2:0),U=2;U0)for(let ae=0;ae{se.push(de[ae]||null)});let _e=this.getRow(ae+1);_e.splice.apply(_e,se)}else this._rows.forEach(ae=>{ae&&ae.splice(S,M)});let J=z.length-M,re=S+M,ee=this._columns.length;if(J<0)for(let ae=S+z.length;ae<=ee;ae++)this.getColumn(ae).defn=this.getColumn(ae-J).defn;else if(J>0)for(let ae=ee;ae>=re;ae--)this.getColumn(ae+J).defn=this.getColumn(ae).defn;for(let ae=S;ae{S=Math.max(S,M.cellCount)}),S}get actualColumnCount(){let S=[],M=0;return this.eachRow(D=>{D.eachCell(k=>{let{col:z}=k;S[z]||(S[z]=!0,M++)})}),M}_commitRow(){}get _lastRowNumber(){let S=this._rows,M=S.length;for(;M>0&&S[M-1]===void 0;)M--;return M}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(S){return this._rows[S-1]}findRows(S,M){return this._rows.slice(S-1,S-1+M)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let S=0;return this.eachRow(()=>{S++}),S}getRow(S){let M=this._rows[S-1];return M||(M=this._rows[S-1]=new d(this,S)),M}getRows(S,M){if(M<1)return;let D=[];for(let k=S;k1&&arguments[1]!==void 0?arguments[1]:"n",D=this._nextRow,k=this.getRow(D);return k.values=S,this._setStyleOption(D,M[0]==="i"?M:"n"),k}addRows(S){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",D=[];return S.forEach(k=>{D.push(this.addRow(k,M))}),D}insertRow(S,M){let D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(S,0,M),this._setStyleOption(S,D),this.getRow(S)}insertRows(S,M){let D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(S,0,...M),D!=="n")for(let k=0;k1&&arguments[1]!==void 0?arguments[1]:"n";M[0]==="o"&&this.findRow(S+1)!==void 0?this._copyStyle(S+1,S,M[1]==="+"):M[0]==="i"&&this.findRow(S-1)!==void 0&&this._copyStyle(S-1,S,M[1]==="+")}_copyStyle(S,M){let D=arguments.length>2&&arguments[2]!==void 0&&arguments[2],k=this.getRow(S),z=this.getRow(M);z.style=P(k.style),k.eachCell({includeEmpty:D},(U,J)=>{z.getCell(J).style=P(U.style)}),z.height=k.height}duplicateRow(S,M){let D=arguments.length>2&&arguments[2]!==void 0&&arguments[2],k=this._rows[S-1],z=new Array(M).fill(k.values);this.spliceRows(S+1,D?0:M,...z);for(let U=0;U{J.getCell(ee).style=re.style})}}spliceRows(S,M){let D=S+M;for(var k=arguments.length,z=new Array(k>2?k-2:0),U=2;U{_e.getCell(j).style=de.style}),this._rows[ae-1]=void 0}else this._rows[ae+re-1]=void 0;else if(re>0)for(ae=ee;ae>=D;ae--)if(se=this._rows[ae-1],se){let _e=this.getRow(ae+re);_e.values=se.values,_e.style=se.style,_e.height=se.height,se.eachCell({includeEmpty:!0},(de,j)=>{if(_e.getCell(j).style=de.style,de._value.constructor.name==="MergeValue"){let W=this.getRow(de._row._number+J).getCell(j),pe=de._value._master,O=this.getRow(pe._row._number+J).getCell(pe._column._number);W.merge(O)}})}else this._rows[ae+re-1]=void 0;for(ae=0;ae{D&&D.hasValues&&M(D,D.number)})}getSheetValues(){let S=[];return this._rows.forEach(M=>{M&&(S[M.number]=M.values)}),S}findCell(S,M){let D=i.getAddress(S,M),k=this._rows[D.row-1];return k?k.findCell(D.col):void 0}getCell(S,M){let D=i.getAddress(S,M);return this.getRow(D.row).getCellEx(D)}mergeCells(){for(var S=arguments.length,M=new Array(S),D=0;D{if(k.intersects(S))throw new Error("Cannot merge already merged cells")});let D=this.getCell(S.top,S.left);for(let k=S.top;k<=S.bottom;k++)for(let z=S.left;z<=S.right;z++)(k>S.top||z>S.left)&&this.getCell(k,z).merge(D,M);this._merges[D.address]=S}_unMergeMaster(S){let M=this._merges[S.address];if(M){for(let D=M.top;D<=M.bottom;D++)for(let k=M.left;k<=M.right;k++)this.getCell(D,k).unmerge();delete this._merges[S.address]}}get hasMerges(){return n.some(this._merges,Boolean)}unMergeCells(){for(var S=arguments.length,M=new Array(S),D=0;D3&&arguments[3]!==void 0?arguments[3]:"shared",z=i.decode(S),{top:U,left:J,bottom:re,right:ee}=z,ae=ee-J+1,se=i.encodeAddress(U,J),_e=k==="shared",de;de=typeof D=="function"?D:Array.isArray(D)?Array.isArray(D[0])?(W,pe)=>D[W-U][pe-J]:(W,pe)=>D[(W-U)*ae+(pe-J)]:()=>{};let j=!0;for(let W=U;W<=re;W++)for(let pe=J;pe<=ee;pe++)j?(this.getCell(W,pe).value={shareType:k,formula:M,ref:S,result:de(W,pe)},j=!1):this.getCell(W,pe).value=_e?{sharedFormula:se,result:de(W,pe)}:de(W,pe)}addImage(S,M){let D={type:"image",imageId:S,range:M};this._media.push(new _(this,D))}getImages(){return this._media.filter(S=>S.type==="image")}addBackgroundImage(S){let M={type:"background",imageId:S};this._media.push(new _(this,M))}getBackgroundImageId(){let S=this._media.find(M=>M.type==="background");return S&&S.imageId}protect(S,M){return new Promise(D=>{this.sheetProtection={sheet:!0},M&&"spinCount"in M&&(M.spinCount=Number.isFinite(M.spinCount)?Math.round(Math.max(0,M.spinCount)):1e5),S&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=y.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=M&&"spinCount"in M?M.spinCount:1e5,this.sheetProtection.hashValue=y.convertPasswordToHash(S,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),M&&(this.sheetProtection=Object.assign(this.sheetProtection,M),!S&&"spinCount"in M&&delete this.sheetProtection.spinCount),D()})}unprotect(){this.sheetProtection=null}addTable(S){let M=new C(this,S);return this.tables[S.name]=M,M}getTable(S){return this.tables[S]}removeTable(S){delete this.tables[S]}getTables(){return Object.values(this.tables)}addConditionalFormatting(S){this.conditionalFormattings.push(S)}removeConditionalFormatting(S){typeof S=="number"?this.conditionalFormattings.splice(S,1):this.conditionalFormattings=S instanceof Function?this.conditionalFormattings.filter(S):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(S){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=S}get model(){let S={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(k=>k.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(k=>k.model),conditionalFormattings:this.conditionalFormattings};S.cols=u.toModel(this.columns);let M=S.rows=[],D=S.dimensions=new s;return this._rows.forEach(k=>{let z=k&&k.model;z&&(D.expand(z.number,z.min,z.number,z.max),M.push(z))}),S.merges=[],n.each(this._merges,k=>{S.merges.push(k.range)}),S}_parseRows(S){this._rows=[],S.rows.forEach(M=>{let D=new d(this,M.number);this._rows[D.number-1]=D,D.model=M})}_parseMergeCells(S){n.each(S.mergeCells,M=>{this.mergeCellsWithoutStyle(M)})}set model(S){this.name=S.name,this._columns=u.fromModel(this,S.cols),this._parseRows(S),this._parseMergeCells(S),this.dataValidations=new x(S.dataValidations),this.properties=S.properties,this.pageSetup=S.pageSetup,this.headerFooter=S.headerFooter,this.views=S.views,this.autoFilter=S.autoFilter,this._media=S.media.map(M=>new _(this,M)),this.sheetProtection=S.sheetProtection,this.tables=S.tables.reduce((M,D)=>{let k=new C;return k.model=D,M[D.name]=k,M},{}),this.conditionalFormattings=S.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,o,t){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");let n={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(s=>{n[s]=i[s]}),o.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,o,t){"use strict";let n=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");t.bufferToString=function(i){return typeof i=="string"?i:n?n.decode(i):i.toString()}},{}],17:[function(e,o,t){"use strict";let n=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");t.stringToBuffer=function(s){return typeof s!="string"?s:n?i.from(n.encode(s).buffer):i.from(s)}},{buffer:220}],18:[function(e,o,t){"use strict";let n=e("./under-dash"),i=e("./col-cache");o.exports=class{constructor(s){this.template=s,this.sheets={}}addCell(s){this.addCellEx(i.decodeEx(s))}getCell(s){return this.findCellEx(i.decodeEx(s),!0)}findCell(s){return this.findCellEx(i.decodeEx(s),!1)}findCellAt(s,d,u){let f=this.sheets[s],_=f&&f[d];return _&&_[u]}addCellEx(s){if(s.top)for(let d=s.top;d<=s.bottom;d++)for(let u=s.left;u<=s.right;u++)this.getCellAt(s.sheetName,d,u);else this.findCellEx(s,!0)}getCellEx(s){return this.findCellEx(s,!0)}findCellEx(s,d){let u=this.findSheet(s,d),f=this.findSheetRow(u,s,d);return this.findRowCell(f,s,d)}getCellAt(s,d,u){let f=this.sheets[s]||(this.sheets[s]=[]),_=f[d]||(f[d]=[]);return _[u]||(_[u]={sheetName:s,address:i.n2l(u)+d,row:d,col:u})}removeCellEx(s){let d=this.findSheet(s);if(!d)return;let u=this.findSheetRow(d,s);u&&delete u[s.col]}forEachInSheet(s,d){let u=this.sheets[s];u&&u.forEach((f,_)=>{f&&f.forEach((C,x)=>{C&&d(C,_,x)})})}forEach(s){n.each(this.sheets,(d,u)=>{this.forEachInSheet(u,s)})}map(s){let d=[];return this.forEach(u=>{d.push(s(u))}),d}findSheet(s,d){let u=s.sheetName;return this.sheets[u]?this.sheets[u]:d?this.sheets[u]=[]:void 0}findSheetRow(s,d,u){let{row:f}=d;return s&&s[f]?s[f]:u?s[f]=[]:void 0}findRowCell(s,d,u){let{col:f}=d;return s&&s[f]?s[f]:u?s[f]=this.template?Object.assign(d,JSON.parse(JSON.stringify(this.template))):d:void 0}spliceRows(s,d,u,f){let _=this.sheets[s];if(_){let C=[];for(let x=0;x{x.splice(d,u,...C)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,o,t){"use strict";let n=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:s=>s<=26?1:s<=676?2:3,_fill(s){let d,u,f,_,C,x=1;if(s>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&s>=1){for(;x<=26;)d=this._dictionary[x-1],this._n2l[x]=d,this._l2n[d]=x,x++;this._l2nFill=1}if(this._l2nFill<2&&s>=2){for(x=27;x<=702;)u=x-27,f=u%26,_=Math.floor(u/26),d=this._dictionary[_]+this._dictionary[f],this._n2l[x]=d,this._l2n[d]=x,x++;this._l2nFill=2}if(this._l2nFill<3&&s>=3){for(x=703;x<=16384;)u=x-703,f=u%26,_=Math.floor(u/26)%26,C=Math.floor(u/676),d=this._dictionary[C]+this._dictionary[_]+this._dictionary[f],this._n2l[x]=d,this._l2n[d]=x,x++;this._l2nFill=3}},l2n(s){if(this._l2n[s]||this._fill(s.length),!this._l2n[s])throw new Error("Out of bounds. Invalid column letter: "+s);return this._l2n[s]},n2l(s){if(s<1||s>16384)throw new Error(s+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[s]||this._fill(this._level(s)),this._n2l[s]},_hash:{},validateAddress(s){if(!n.test(s))throw new Error("Invalid Address: "+s);return!0},decodeAddress(s){let d=s.length<5&&this._hash[s];if(d)return d;let u=!1,f="",_=0,C=!1,x="",y=0;for(let S,M=0;M=65&&S<=90)u=!0,f+=s[M],_=26*_+S-64;else if(S>=48&&S<=57)C=!0,x+=s[M],y=10*y+S-48;else if(C&&u&&S!==36)break;if(u){if(_>16384)throw new Error("Out of bounds. Invalid column letter: "+f)}else _=void 0;C||(y=void 0);let P={address:s=f+x,col:_,row:y,$col$row:`$${f}$${x}`};return _<=100&&y<=100&&(this._hash[s]=P,this._hash[P.$col$row]=P),P},getAddress(s,d){if(d){let u=this.n2l(d)+s;return this.decodeAddress(u)}return this.decodeAddress(s)},decode(s){let d=s.split(":");if(d.length===2){let u=this.decodeAddress(d[0]),f=this.decodeAddress(d[1]),_={top:Math.min(u.row,f.row),left:Math.min(u.col,f.col),bottom:Math.max(u.row,f.row),right:Math.max(u.col,f.col)};return _.tl=this.n2l(_.left)+_.top,_.br=this.n2l(_.right)+_.bottom,_.dimensions=`${_.tl}:${_.br}`,_}return this.decodeAddress(s)},decodeEx(s){let d=s.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),u=d[1]||d[2],f=d[3],_=f.split(":");if(_.length>1){let x=this.decodeAddress(_[0]),y=this.decodeAddress(_[1]),P=Math.min(x.row,y.row),S=Math.min(x.col,y.col),M=Math.max(x.row,y.row),D=Math.max(x.col,y.col);return x=this.n2l(S)+P,y=this.n2l(D)+M,{top:P,left:S,bottom:M,right:D,sheetName:u,tl:{address:x,col:S,row:P,$col$row:`$${this.n2l(S)}$${P}`,sheetName:u},br:{address:y,col:D,row:M,$col$row:`$${this.n2l(D)}$${M}`,sheetName:u},dimensions:`${x}:${y}`}}if(f.startsWith("#"))return u?{sheetName:u,error:f}:{error:f};let C=this.decodeAddress(f);return u?at({sheetName:u},C):C},encodeAddress:(s,d)=>i.n2l(d)+s,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(s,d){let[u,f,,_,C]=s,[x,y]=d;return x>=u&&x<=_&&y>=f&&y<=C}};o.exports=i},{}],20:[function(e,o,t){"use strict";let n=(s,d)=>at(at({},s),d.reduce((u,f)=>(s[f]&&(u[f]=at({},s[f])),u),{})),i=function(s,d,u){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];s[u]&&(d[u]=n(s[u],f))};t.copyStyle=s=>{if(!s)return s;if(d=s,Object.keys(d).length===0)return{};var d;let u=at({},s);return i(s,u,"font",["color"]),i(s,u,"alignment"),i(s,u,"protection"),s.border&&(i(s,u,"border"),i(s.border,u.border,"top",["color"]),i(s.border,u.border,"left",["color"]),i(s.border,u.border,"bottom",["color"]),i(s.border,u.border,"right",["color"]),i(s.border,u.border,"diagonal",["color"])),s.fill&&(i(s,u,"fill",["fgColor","bgColor","center"]),s.fill.stops&&(u.fill.stops=s.fill.stops.map(f=>n(f,["color"])))),u}},{}],21:[function(e,o,t){(function(n){(function(){"use strict";let i=e("crypto"),s={hash(d){let u=i.createHash(d);for(var f=arguments.length,_=new Array(f>1?f-1:0),C=1;Ci.randomBytes(d)};o.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,o,t){"use strict";let{SaxesParser:n}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:s}=e("./browser-buffer-decode");o.exports=function(d){return Y7(this,null,function*(){d.pipe&&!d[Symbol.asyncIterator]&&(d=d.pipe(new i));let u=new n,f;u.on("error",S=>{f=S});let _=[];u.on("opentag",S=>_.push({eventType:"opentag",value:S})),u.on("text",S=>_.push({eventType:"text",value:S})),u.on("closetag",S=>_.push({eventType:"closetag",value:S}));try{for(var C=dg(d),x,y,P;x=!(y=yield new ET(C.next())).done;x=!1){let S=y.value;if(u.write(s(S)),f)throw f;yield _,_=[]}}catch{P=[y]}finally{try{x&&(y=C.return)&&(yield new ET(y.call(C)))}finally{if(P)throw P[0]}}})}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,o,t){"use strict";let n=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;o.exports={slideFormula:function(d,u,f){let _=n.decode(u),C=n.decode(f);return d.replace(i,(x,y,P,S,M)=>{if(M)return x;let D=s.exec(S);if(D){let k=D[1],z=D[2].toUpperCase(),U=D[3],J=D[4];if(z.length>3||z.length===3&&z>"XFD")return x;let re=n.l2n(z),ee=parseInt(J,10);return k||(re+=C.col-_.col),U||(ee+=C.row-_.row),(y||"")+(k||"")+n.n2l(re)+(U||"")+ee}return x})}}},{"./col-cache":19}],24:[function(e,o,t){(function(n,i){(function(){"use strict";let s=e("readable-stream"),d=e("./utils"),u=e("./string-buf");class f{constructor(M,D){this._data=M,this._encoding=D}get length(){return this.toBuffer().length}copy(M,D,k,z){return this.toBuffer().copy(M,D,k,z)}toBuffer(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}class _{constructor(M){this._data=M}get length(){return this._data.length}copy(M,D,k,z){return this._data._buf.copy(M,D,k,z)}toBuffer(){return this._data.toBuffer()}}class C{constructor(M){this._data=M}get length(){return this._data.length}copy(M,D,k,z){this._data.copy(M,D,k,z)}toBuffer(){return this._data}}class x{constructor(M){this.size=M,this.buffer=i.alloc(M),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let M=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(M,0,this.iRead,this.iWrite),M}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(M){let D;return M===0?null:M===void 0||M>=this.length?(D=this.toBuffer(),this.iRead=this.iWrite,D):(D=i.alloc(M),this.buffer.copy(D,0,this.iRead,M),this.iRead+=M,D)}write(M,D,k){let z=Math.min(k,this.size-this.iWrite);return M.copy(this.buffer,this.iWrite,D,D+z),this.iWrite+=z,z}}let y=function(S){S=S||{},this.bufSize=S.bufSize||1048576,this.buffers=[],this.batch=S.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};d.inherits(y,s.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(S=>S.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let M=this.buffers[this.buffers.length-1];if(!M.full)return M}let S=new x(this.bufSize);return this.buffers.push(S),S},_pipe(S){return qn(this,null,function*(){yield Promise.all(this.pipes.map(function(M){return new Promise(D=>{M.write(S.toBuffer(),()=>{D()})})}))})},_writeToBuffers(S){let M=0,D=S.length;for(;M1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(k),n.nextTick(D)):(yield this._pipe(k),D());else this.paused||this.emit("data",k.toBuffer()),this._writeToBuffers(k),this.emit("readable");return!0})},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(S,M,D){let k=z=>{z?D(z):(this._flush(),this.pipes.forEach(U=>{U.end()}),this.emit("finish"))};S?this.write(S,M,k):k()},read(S){let M;if(S){for(M=[];S&&this.buffers.length&&!this.buffers[0].eod;){let D=this.buffers[0],k=D.read(S);S-=k.length,M.push(k),D.eod&&D.full&&this.buffers.shift()}return i.concat(M)}return M=this.buffers.map(D=>D.toBuffer()).filter(Boolean),this.buffers=[],i.concat(M)},setEncoding(S){this.encoding=S},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(S){this.pipes.push(S),!this.paused&&this.buffers.length&&this.end()},unpipe(S){this.pipes=this.pipes.filter(M=>M!==S)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),o.exports=y}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,o,t){(function(n){(function(){"use strict";o.exports=class{constructor(i){this._buf=n.alloc(i&&i.size||16384),this._encoding=i&&i.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=n.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(i){i=i||0,this._buffer=void 0,this._inPos=i}_grow(i){let s=2*this._buf.length;for(;s=this._buf.length-4;)this._grow(this._inPos+i.length),s=this._inPos+this._buf.write(i,this._inPos,this._encoding);this._inPos=s}addStringBuf(i){i.length&&(this._buffer=void 0,this.length+i.length>this.capacity&&this._grow(this.length+i.length),i._buf.copy(this._buf,this._inPos,0,i.length),this._inPos+=i.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,o,t){"use strict";let{toString:n}=Object.prototype,i=/["&<>]/,s={each:function(d,u){d&&(Array.isArray(d)?d.forEach(u):Object.keys(d).forEach(f=>{u(d[f],f)}))},some:function(d,u){return!!d&&(Array.isArray(d)?d.some(u):Object.keys(d).some(f=>u(d[f],f)))},every:function(d,u){return!d||(Array.isArray(d)?d.every(u):Object.keys(d).every(f=>u(d[f],f)))},map:function(d,u){return d?Array.isArray(d)?d.map(u):Object.keys(d).map(f=>u(d[f],f)):[]},keyBy:(d,u)=>d.reduce((f,_)=>(f[_[u]]=_,f),{}),isEqual:function(d,u){let f=typeof d,_=typeof u,C=Array.isArray(d),x=Array.isArray(u),y;if(f!==_)return!1;switch(typeof d){case"object":if(C||x)return!(!C||!x)&&d.length===u.length&&d.every((P,S)=>{let M=u[S];return s.isEqual(P,M)});if(d===null||u===null)return d===u;if(y=Object.keys(d),Object.keys(u).length!==y.length)return!1;for(let P of y)if(!u.hasOwnProperty(P))return!1;return s.every(d,(P,S)=>{let M=u[S];return s.isEqual(P,M)});default:return d===u}},escapeHtml(d){let u=i.exec(d);if(!u)return d;let f="",_="",C=0,x=u.index;for(;x":_=">";break;default:continue}C!==x&&(f+=d.substring(C,x)),C=x+1,f+=_}return C!==x?f+d.substring(C,x):f},strcmp:(d,u)=>du?1:0,isUndefined:d=>n.call(d)==="[object Undefined]",isObject:d=>n.call(d)==="[object Object]",deepMerge(){let d=arguments[0]||{},{length:u}=arguments,f,_,C;function x(y,P){f=d[P],C=Array.isArray(y),s.isObject(y)||C?(C?(C=!1,_=f&&Array.isArray(f)?f:[]):_=f&&s.isObject(f)?f:{},d[P]=s.deepMerge(_,y)):s.isUndefined(y)||(d[P]=y)}for(let y=0;y&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,u={nop(){},promiseImmediate:f=>new Promise(_=>{n.setImmediate?i(()=>{_(f)}):setTimeout(()=>{_(f)},1)}),inherits:function(f,_,C,x){f.super_=_,x||(x=C,C=null),C&&Object.keys(C).forEach(P=>{Object.defineProperty(f,P,Object.getOwnPropertyDescriptor(C,P))});let y={constructor:{value:f,enumerable:!1,writable:!1,configurable:!0}};x&&Object.keys(x).forEach(P=>{y[P]=Object.getOwnPropertyDescriptor(x,P)}),f.prototype=Object.create(_.prototype,y)},dateToExcel:(f,_)=>25569+f.getTime()/864e5-(_?1462:0),excelToDate(f,_){let C=Math.round(24*(f-25569+(_?1462:0))*3600*1e3);return new Date(C)},parsePath(f){let _=f.lastIndexOf("/");return{path:f.substring(0,_),name:f.substring(_+1)}},getRelsPath(f){let _=u.parsePath(f);return`${_.path}/_rels/${_.name}.rels`},xmlEncode(f){let _=d.exec(f);if(!_)return f;let C="",x="",y=0,P=_.index;for(;P=11&&S!==13)){x="";break}continue}y!==P&&(C+=f.substring(y,P)),y=P+1,x&&(C+=x)}return y!==P?C+f.substring(y,P):C},xmlDecode:f=>f.replace(/&([a-z]*);/g,_=>{switch(_){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return _}}),validInt(f){let _=parseInt(f,10);return Number.isNaN(_)?0:_},isDateFmt(f){return f?(f=(f=f.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:f=>new Promise(_=>{s.access(f,s.constants.F_OK,C=>{_(!C)})})},toIsoDateString:f=>f.toIsoString().subsstr(0,10),parseBoolean:f=>f===!0||f==="true"||f===1||f==="1"};o.exports=u}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,o,t){"use strict";let n=e("./under-dash"),i=e("./utils");function s(f,_,C){f.push(` ${_}="${i.xmlEncode(C.toString())}"`)}function d(f,_){if(_){let C=[];n.each(_,(x,y)=>{x!==void 0&&s(C,y,x)}),f.push(C.join(""))}}class u{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(_){let C=this._xml;C.push(" +}`;var so=U7(function(){return zo(ct,Cn+"return "+Bi).apply(e,At)});if(so.source=Bi,CT(so))throw so;return so}function fae(A){return $o(A).toLowerCase()}function hae(A){return $o(A).toUpperCase()}function gae(A,H,ie){if(A=$o(A),A&&(ie||H===e))return tA(A);if(!A||!(H=Al(H)))return A;var De=Ss(A),He=Ss(H),ct=iA(De,He),At=nA(De,He)+1;return gp(De,ct,At).join("")}function _ae(A,H,ie){if(A=$o(A),A&&(ie||H===e))return A.slice(0,aA(A)+1);if(!A||!(H=Al(H)))return A;var De=Ss(A),He=nA(De,Ss(H))+1;return gp(De,0,He).join("")}function Cae(A,H,ie){if(A=$o(A),A&&(ie||H===e))return A.replace(Rt,"");if(!A||!(H=Al(H)))return A;var De=Ss(A),He=iA(De,Ss(H));return gp(De,He).join("")}function vae(A,H){var ie=se,De=_e;if(Aa(H)){var He="separator"in H?H.separator:He;ie="length"in H?ao(H.length):ie,De="omission"in H?Al(H.omission):De}A=$o(A);var ct=A.length;if(t0(A)){var At=Ss(A);ct=At.length}if(ie>=ct)return A;var jt=ie-i0(De);if(jt<1)return De;var Kt=At?gp(At,0,jt).join(""):A.slice(0,jt);if(He===e)return Kt+De;if(At&&(jt+=Kt.length-jt),vT(He)){if(A.slice(jt).search(He)){var Di,Ii=Kt;for(He.global||(He=BP(He.source,$o(nn.exec(He))+"g")),He.lastIndex=0;Di=He.exec(Ii);)var Bi=Di.index;Kt=Kt.slice(0,Bi===e?jt:Bi)}}else if(A.indexOf(Al(He),jt)!=jt){var Zi=Kt.lastIndexOf(He);Zi>-1&&(Kt=Kt.slice(0,Zi))}return Kt+De}function xae(A){return A=$o(A),A&&zn.test(A)?A.replace(wn,YZ):A}var bae=s0(function(A,H,ie){return A+(ie?" ":"")+H.toUpperCase()}),yT=WA("toUpperCase");function $7(A,H,ie){return A=$o(A),H=ie?e:H,H===e?jZ(A)?XZ(A):BZ(A):A.match(H)||[]}var U7=uo(function(A,H){try{return Il(A,e,H)}catch(ie){return CT(ie)?ie:new Zn(ie)}}),yae=Dc(function(A,H){return Wl(H,function(ie){ie=Qs(ie),Tc(A,ie,gT(A[ie],A))}),A});function Sae(A){var H=A==null?0:A.length,ie=Fn();return A=H?Ma(A,function(De){if(typeof De[1]!="function")throw new Ql(i);return[ie(De[0]),De[1]]}):[],uo(function(De){for(var He=-1;++HeL)return[];var ie=$,De=jr(A,$);H=Fn(H),A-=$;for(var He=AP(De,H);++ie0||H<0)?new So(ie):(A<0?ie=ie.takeRight(-A):A&&(ie=ie.drop(A)),H!==e&&(H=ao(H),ie=H<0?ie.dropRight(-H):ie.take(H-A)),ie)},So.prototype.takeRightWhile=function(A){return this.reverse().takeWhile(A).reverse()},So.prototype.toArray=function(){return this.take($)},Us(So.prototype,function(A,H){var ie=/^(?:filter|find|map|reject)|While$/.test(H),De=/^(?:head|last)$/.test(H),He=ot[De?"take"+(H=="last"?"Right":""):H],ct=De||/^find/.test(H);He&&(ot.prototype[H]=function(){var At=this.__wrapped__,jt=De?[1]:arguments,Kt=At instanceof So,Di=jt[0],Ii=Kt||no(At),Bi=function(xo){var Do=He.apply(ot,cp([xo],jt));return De&&Zi?Do[0]:Do};Ii&&ie&&typeof Di=="function"&&Di.length!=1&&(Kt=Ii=!1);var Zi=this.__chain__,Cn=!!this.__actions__.length,Bn=ct&&!Zi,so=Kt&&!Cn;if(!ct&&Ii){At=so?At:new So(this);var Rn=A.apply(At,jt);return Rn.__actions__.push({func:og,args:[Bi],thisArg:e}),new Yl(Rn,Zi)}return Bn&&so?A.apply(this,jt):(Rn=this.thru(Bi),Bn?De?Rn.value()[0]:Rn.value():Rn)})}),Wl(["pop","push","shift","sort","splice","unshift"],function(A){var H=Ih[A],ie=/^(?:push|sort|unshift)$/.test(A)?"tap":"thru",De=/^(?:pop|shift)$/.test(A);ot.prototype[A]=function(){var He=arguments;if(De&&!this.__chain__){var ct=this.value();return H.apply(no(ct)?ct:[],He)}return this[ie](function(At){return H.apply(no(At)?At:[],He)})}}),Us(So.prototype,function(A,H){var ie=ot[H];if(ie){var De=ie.name+"";Xo.call(a0,De)||(a0[De]=[]),a0[De].push({name:H,func:ie})}}),a0[Kh(e,M).name]=[{name:"wrapper",func:e}],So.prototype.clone=xee,So.prototype.reverse=bee,So.prototype.value=yee,ot.prototype.at=Kie,ot.prototype.chain=Xie,ot.prototype.commit=Zie,ot.prototype.next=ene,ot.prototype.plant=ine,ot.prototype.reverse=nne,ot.prototype.toJSON=ot.prototype.valueOf=ot.prototype.value=one,ot.prototype.first=ot.prototype.head,Hu&&(ot.prototype[Hu]=tne),ot},mp=ZZ();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(vr._=mp,define(function(){return mp})):Zm?((Zm.exports=mp)._=mp,wP._=mp):vr._=mp}).call(k0)});var D9=pt(FC=>{"use strict";FC.byteLength=fhe;FC.toByteArray=ghe;FC.fromByteArray=vhe;var hc=[],ms=[],uhe=typeof Uint8Array<"u"?Uint8Array:Array,FM="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(Dd=0,T9=FM.length;Dd0)throw new Error("Invalid string. Length must be a multiple of 4");var t=e.indexOf("=");t===-1&&(t=o);var n=t===o?0:4-t%4;return[t,n]}function fhe(e){var o=M9(e),t=o[0],n=o[1];return(t+n)*3/4-n}function hhe(e,o,t){return(o+t)*3/4-t}function ghe(e){var o,t=M9(e),n=t[0],i=t[1],s=new uhe(hhe(e,n,i)),d=0,u=i>0?n-4:n,f;for(f=0;f>16&255,s[d++]=o>>8&255,s[d++]=o&255;return i===2&&(o=ms[e.charCodeAt(f)]<<2|ms[e.charCodeAt(f+1)]>>4,s[d++]=o&255),i===1&&(o=ms[e.charCodeAt(f)]<<10|ms[e.charCodeAt(f+1)]<<4|ms[e.charCodeAt(f+2)]>>2,s[d++]=o>>8&255,s[d++]=o&255),s}function _he(e){return hc[e>>18&63]+hc[e>>12&63]+hc[e>>6&63]+hc[e&63]}function Che(e,o,t){for(var n,i=[],s=o;su?u:d+s));return n===1?(o=e[t-1],i.push(hc[o>>2]+hc[o<<4&63]+"==")):n===2&&(o=(e[t-2]<<8)+e[t-1],i.push(hc[o>>10]+hc[o>>4&63]+hc[o<<2&63]+"=")),i.join("")}});var E9=pt(kM=>{kM.read=function(e,o,t,n,i){var s,d,u=i*8-n-1,f=(1<>1,C=-7,x=t?i-1:0,y=t?-1:1,P=e[o+x];for(x+=y,s=P&(1<<-C)-1,P>>=-C,C+=u;C>0;s=s*256+e[o+x],x+=y,C-=8);for(d=s&(1<<-C)-1,s>>=-C,C+=n;C>0;d=d*256+e[o+x],x+=y,C-=8);if(s===0)s=1-_;else{if(s===f)return d?NaN:(P?-1:1)*(1/0);d=d+Math.pow(2,n),s=s-_}return(P?-1:1)*d*Math.pow(2,s-n)};kM.write=function(e,o,t,n,i,s){var d,u,f,_=s*8-i-1,C=(1<<_)-1,x=C>>1,y=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,P=n?0:s-1,S=n?1:-1,M=o<0||o===0&&1/o<0?1:0;for(o=Math.abs(o),isNaN(o)||o===1/0?(u=isNaN(o)?1:0,d=C):(d=Math.floor(Math.log(o)/Math.LN2),o*(f=Math.pow(2,-d))<1&&(d--,f*=2),d+x>=1?o+=y/f:o+=y*Math.pow(2,1-x),o*f>=2&&(d++,f/=2),d+x>=C?(u=0,d=C):d+x>=1?(u=(o*f-1)*Math.pow(2,i),d=d+x):(u=o*Math.pow(2,x-1)*Math.pow(2,i),d=0));i>=8;e[t+P]=u&255,P+=S,u/=256,i-=8);for(d=d<0;e[t+P]=d&255,P+=S,d/=256,_-=8);e[t+P-S]|=M*128}});var H9=pt(K0=>{"use strict";var BM=D9(),J0=E9(),I9=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;K0.Buffer=Ti;K0.SlowBuffer=Phe;K0.INSPECT_MAX_BYTES=50;var kC=2147483647;K0.kMaxLength=kC;Ti.TYPED_ARRAY_SUPPORT=xhe();!Ti.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function xhe(){try{var e=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(e,o),e.foo()===42}catch{return!1}}Object.defineProperty(Ti.prototype,"parent",{enumerable:!0,get:function(){if(Ti.isBuffer(this))return this.buffer}});Object.defineProperty(Ti.prototype,"offset",{enumerable:!0,get:function(){if(Ti.isBuffer(this))return this.byteOffset}});function Wc(e){if(e>kC)throw new RangeError('The value "'+e+'" is invalid for option "size"');var o=new Uint8Array(e);return Object.setPrototypeOf(o,Ti.prototype),o}function Ti(e,o,t){if(typeof e=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return VM(e)}return F9(e,o,t)}Ti.poolSize=8192;function F9(e,o,t){if(typeof e=="string")return yhe(e,o);if(ArrayBuffer.isView(e))return She(e);if(e==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(gc(e,ArrayBuffer)||e&&gc(e.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(gc(e,SharedArrayBuffer)||e&&gc(e.buffer,SharedArrayBuffer)))return NM(e,o,t);if(typeof e=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var n=e.valueOf&&e.valueOf();if(n!=null&&n!==e)return Ti.from(n,o,t);var i=whe(e);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof e[Symbol.toPrimitive]=="function")return Ti.from(e[Symbol.toPrimitive]("string"),o,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}Ti.from=function(e,o,t){return F9(e,o,t)};Object.setPrototypeOf(Ti.prototype,Uint8Array.prototype);Object.setPrototypeOf(Ti,Uint8Array);function k9(e){if(typeof e!="number")throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function bhe(e,o,t){return k9(e),e<=0?Wc(e):o!==void 0?typeof t=="string"?Wc(e).fill(o,t):Wc(e).fill(o):Wc(e)}Ti.alloc=function(e,o,t){return bhe(e,o,t)};function VM(e){return k9(e),Wc(e<0?0:qM(e)|0)}Ti.allocUnsafe=function(e){return VM(e)};Ti.allocUnsafeSlow=function(e){return VM(e)};function yhe(e,o){if((typeof o!="string"||o==="")&&(o="utf8"),!Ti.isEncoding(o))throw new TypeError("Unknown encoding: "+o);var t=B9(e,o)|0,n=Wc(t),i=n.write(e,o);return i!==t&&(n=n.slice(0,i)),n}function RM(e){for(var o=e.length<0?0:qM(e.length)|0,t=Wc(o),n=0;n=kC)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kC.toString(16)+" bytes");return e|0}function Phe(e){return+e!=e&&(e=0),Ti.alloc(+e)}Ti.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==Ti.prototype};Ti.compare=function(o,t){if(gc(o,Uint8Array)&&(o=Ti.from(o,o.offset,o.byteLength)),gc(t,Uint8Array)&&(t=Ti.from(t,t.offset,t.byteLength)),!Ti.isBuffer(o)||!Ti.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===t)return 0;for(var n=o.length,i=t.length,s=0,d=Math.min(n,i);si.length?Ti.from(d).copy(i,s):Uint8Array.prototype.set.call(i,d,s);else if(Ti.isBuffer(d))d.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=d.length}return i};function B9(e,o){if(Ti.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||gc(e,ArrayBuffer))return e.byteLength;if(typeof e!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var t=e.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;for(var i=!1;;)switch(o){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return LM(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return z9(e).length;default:if(i)return n?-1:LM(e).length;o=(""+o).toLowerCase(),i=!0}}Ti.byteLength=B9;function The(e,o,t){var n=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,o>>>=0,t<=o))return"";for(e||(e="utf8");;)switch(e){case"hex":return Rhe(this,o,t);case"utf8":case"utf-8":return N9(this,o,t);case"ascii":return khe(this,o,t);case"latin1":case"binary":return Bhe(this,o,t);case"base64":return Ahe(this,o,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nhe(this,o,t);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}Ti.prototype._isBuffer=!0;function Ed(e,o,t){var n=e[o];e[o]=e[t],e[t]=n}Ti.prototype.swap16=function(){var o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;tt&&(o+=" ... "),""};I9&&(Ti.prototype[I9]=Ti.prototype.inspect);Ti.prototype.compare=function(o,t,n,i,s){if(gc(o,Uint8Array)&&(o=Ti.from(o,o.offset,o.byteLength)),!Ti.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(t===void 0&&(t=0),n===void 0&&(n=o?o.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>o.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===o)return 0;for(var d=s-i,u=n-t,f=Math.min(d,u),_=this.slice(i,s),C=o.slice(t,n),x=0;x2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,zM(t)&&(t=i?0:e.length-1),t<0&&(t=e.length+t),t>=e.length){if(i)return-1;t=e.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof o=="string"&&(o=Ti.from(o,n)),Ti.isBuffer(o))return o.length===0?-1:O9(e,o,t,n,i);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(e,o,t):Uint8Array.prototype.lastIndexOf.call(e,o,t):O9(e,[o],t,n,i);throw new TypeError("val must be string, number or Buffer")}function O9(e,o,t,n,i){var s=1,d=e.length,u=o.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(e.length<2||o.length<2)return-1;s=2,d/=2,u/=2,t/=2}function f(P,S){return s===1?P[S]:P.readUInt16BE(S*s)}var _;if(i){var C=-1;for(_=t;_d&&(t=d-u),_=t;_>=0;_--){for(var x=!0,y=0;yi&&(n=i)):n=i;var s=o.length;n>s/2&&(n=s/2);for(var d=0;d>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var s=this.length-t;if((n===void 0||n>s)&&(n=s),o.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var d=!1;;)switch(i){case"hex":return Mhe(this,o,t,n);case"utf8":case"utf-8":return Dhe(this,o,t,n);case"ascii":case"latin1":case"binary":return Ehe(this,o,t,n);case"base64":return Ihe(this,o,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Ohe(this,o,t,n);default:if(d)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),d=!0}};Ti.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ahe(e,o,t){return o===0&&t===e.length?BM.fromByteArray(e):BM.fromByteArray(e.slice(o,t))}function N9(e,o,t){t=Math.min(e.length,t);for(var n=[],i=o;i239?4:s>223?3:s>191?2:1;if(i+u<=t){var f,_,C,x;switch(u){case 1:s<128&&(d=s);break;case 2:f=e[i+1],(f&192)===128&&(x=(s&31)<<6|f&63,x>127&&(d=x));break;case 3:f=e[i+1],_=e[i+2],(f&192)===128&&(_&192)===128&&(x=(s&15)<<12|(f&63)<<6|_&63,x>2047&&(x<55296||x>57343)&&(d=x));break;case 4:f=e[i+1],_=e[i+2],C=e[i+3],(f&192)===128&&(_&192)===128&&(C&192)===128&&(x=(s&15)<<18|(f&63)<<12|(_&63)<<6|C&63,x>65535&&x<1114112&&(d=x))}}d===null?(d=65533,u=1):d>65535&&(d-=65536,n.push(d>>>10&1023|55296),d=56320|d&1023),n.push(d),i+=u}return Fhe(n)}var A9=4096;function Fhe(e){var o=e.length;if(o<=A9)return String.fromCharCode.apply(String,e);for(var t="",n=0;nn)&&(t=n);for(var i="",s=o;sn&&(o=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),tt)throw new RangeError("Trying to access beyond buffer length")}Ti.prototype.readUintLE=Ti.prototype.readUIntLE=function(o,t,n){o=o>>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=this[o],s=1,d=0;++d>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=this[o+--t],s=1;t>0&&(s*=256);)i+=this[o+--t]*s;return i};Ti.prototype.readUint8=Ti.prototype.readUInt8=function(o,t){return o=o>>>0,t||Or(o,1,this.length),this[o]};Ti.prototype.readUint16LE=Ti.prototype.readUInt16LE=function(o,t){return o=o>>>0,t||Or(o,2,this.length),this[o]|this[o+1]<<8};Ti.prototype.readUint16BE=Ti.prototype.readUInt16BE=function(o,t){return o=o>>>0,t||Or(o,2,this.length),this[o]<<8|this[o+1]};Ti.prototype.readUint32LE=Ti.prototype.readUInt32LE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216};Ti.prototype.readUint32BE=Ti.prototype.readUInt32BE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])};Ti.prototype.readIntLE=function(o,t,n){o=o>>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=this[o],s=1,d=0;++d=s&&(i-=Math.pow(2,8*t)),i};Ti.prototype.readIntBE=function(o,t,n){o=o>>>0,t=t>>>0,n||Or(o,t,this.length);for(var i=t,s=1,d=this[o+--i];i>0&&(s*=256);)d+=this[o+--i]*s;return s*=128,d>=s&&(d-=Math.pow(2,8*t)),d};Ti.prototype.readInt8=function(o,t){return o=o>>>0,t||Or(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]};Ti.prototype.readInt16LE=function(o,t){o=o>>>0,t||Or(o,2,this.length);var n=this[o]|this[o+1]<<8;return n&32768?n|4294901760:n};Ti.prototype.readInt16BE=function(o,t){o=o>>>0,t||Or(o,2,this.length);var n=this[o+1]|this[o]<<8;return n&32768?n|4294901760:n};Ti.prototype.readInt32LE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24};Ti.prototype.readInt32BE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]};Ti.prototype.readFloatLE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),J0.read(this,o,!0,23,4)};Ti.prototype.readFloatBE=function(o,t){return o=o>>>0,t||Or(o,4,this.length),J0.read(this,o,!1,23,4)};Ti.prototype.readDoubleLE=function(o,t){return o=o>>>0,t||Or(o,8,this.length),J0.read(this,o,!0,52,8)};Ti.prototype.readDoubleBE=function(o,t){return o=o>>>0,t||Or(o,8,this.length),J0.read(this,o,!1,52,8)};function Tl(e,o,t,n,i,s){if(!Ti.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>i||oe.length)throw new RangeError("Index out of range")}Ti.prototype.writeUintLE=Ti.prototype.writeUIntLE=function(o,t,n,i){if(o=+o,t=t>>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;Tl(this,o,t,n,s,0)}var d=1,u=0;for(this[t]=o&255;++u>>0,n=n>>>0,!i){var s=Math.pow(2,8*n)-1;Tl(this,o,t,n,s,0)}var d=n-1,u=1;for(this[t+d]=o&255;--d>=0&&(u*=256);)this[t+d]=o/u&255;return t+n};Ti.prototype.writeUint8=Ti.prototype.writeUInt8=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,1,255,0),this[t]=o&255,t+1};Ti.prototype.writeUint16LE=Ti.prototype.writeUInt16LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,65535,0),this[t]=o&255,this[t+1]=o>>>8,t+2};Ti.prototype.writeUint16BE=Ti.prototype.writeUInt16BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,65535,0),this[t]=o>>>8,this[t+1]=o&255,t+2};Ti.prototype.writeUint32LE=Ti.prototype.writeUInt32LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,4294967295,0),this[t+3]=o>>>24,this[t+2]=o>>>16,this[t+1]=o>>>8,this[t]=o&255,t+4};Ti.prototype.writeUint32BE=Ti.prototype.writeUInt32BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,4294967295,0),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};Ti.prototype.writeIntLE=function(o,t,n,i){if(o=+o,t=t>>>0,!i){var s=Math.pow(2,8*n-1);Tl(this,o,t,n,s-1,-s)}var d=0,u=1,f=0;for(this[t]=o&255;++d>0)-f&255;return t+n};Ti.prototype.writeIntBE=function(o,t,n,i){if(o=+o,t=t>>>0,!i){var s=Math.pow(2,8*n-1);Tl(this,o,t,n,s-1,-s)}var d=n-1,u=1,f=0;for(this[t+d]=o&255;--d>=0&&(u*=256);)o<0&&f===0&&this[t+d+1]!==0&&(f=1),this[t+d]=(o/u>>0)-f&255;return t+n};Ti.prototype.writeInt8=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,1,127,-128),o<0&&(o=255+o+1),this[t]=o&255,t+1};Ti.prototype.writeInt16LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,32767,-32768),this[t]=o&255,this[t+1]=o>>>8,t+2};Ti.prototype.writeInt16BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,2,32767,-32768),this[t]=o>>>8,this[t+1]=o&255,t+2};Ti.prototype.writeInt32LE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,2147483647,-2147483648),this[t]=o&255,this[t+1]=o>>>8,this[t+2]=o>>>16,this[t+3]=o>>>24,t+4};Ti.prototype.writeInt32BE=function(o,t,n){return o=+o,t=t>>>0,n||Tl(this,o,t,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[t]=o>>>24,this[t+1]=o>>>16,this[t+2]=o>>>8,this[t+3]=o&255,t+4};function L9(e,o,t,n,i,s){if(t+n>e.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function V9(e,o,t,n,i){return o=+o,t=t>>>0,i||L9(e,o,t,4,34028234663852886e22,-34028234663852886e22),J0.write(e,o,t,n,23,4),t+4}Ti.prototype.writeFloatLE=function(o,t,n){return V9(this,o,t,!0,n)};Ti.prototype.writeFloatBE=function(o,t,n){return V9(this,o,t,!1,n)};function q9(e,o,t,n,i){return o=+o,t=t>>>0,i||L9(e,o,t,8,17976931348623157e292,-17976931348623157e292),J0.write(e,o,t,n,52,8),t+8}Ti.prototype.writeDoubleLE=function(o,t,n){return q9(this,o,t,!0,n)};Ti.prototype.writeDoubleBE=function(o,t,n){return q9(this,o,t,!1,n)};Ti.prototype.copy=function(o,t,n,i){if(!Ti.isBuffer(o))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=o.length&&(t=o.length),t||(t=0),i>0&&i=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),o.length-t>>0,n=n===void 0?this.length:n>>>0,o||(o=0);var d;if(typeof o=="number")for(d=t;d55295&&t<57344){if(!i){if(t>56319){(o-=3)>-1&&s.push(239,191,189);continue}else if(d+1===n){(o-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(o-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(o-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((o-=1)<0)break;s.push(t)}else if(t<2048){if((o-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((o-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((o-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function qhe(e){for(var o=[],t=0;t>8,i=t%256,s.push(i),s.push(n);return s}function z9(e){return BM.toByteArray(Vhe(e))}function BC(e,o,t,n){for(var i=0;i=o.length||i>=e.length);++i)o[i+t]=e[i];return i}function gc(e,o){return e instanceof o||e!=null&&e.constructor!=null&&e.constructor.name!=null&&e.constructor.name===o.name}function zM(e){return e!==e}var Hhe=(function(){for(var e="0123456789abcdef",o=new Array(256),t=0;t<16;++t)for(var n=t*16,i=0;i<16;++i)o[n+i]=e[t]+e[i];return o})()});var EV=pt((Cbn,DV)=>{function dKe(){this.__data__=[],this.size=0}DV.exports=dKe});var Vd=pt((vbn,IV)=>{function uKe(e,o){return e===o||e!==e&&o!==o}IV.exports=uKe});var P1=pt((xbn,OV)=>{var fKe=Vd();function hKe(e,o){for(var t=e.length;t--;)if(fKe(e[t][0],o))return t;return-1}OV.exports=hKe});var FV=pt((bbn,AV)=>{var gKe=P1(),_Ke=Array.prototype,CKe=_Ke.splice;function vKe(e){var o=this.__data__,t=gKe(o,e);if(t<0)return!1;var n=o.length-1;return t==n?o.pop():CKe.call(o,t,1),--this.size,!0}AV.exports=vKe});var BV=pt((ybn,kV)=>{var xKe=P1();function bKe(e){var o=this.__data__,t=xKe(o,e);return t<0?void 0:o[t][1]}kV.exports=bKe});var NV=pt((Sbn,RV)=>{var yKe=P1();function SKe(e){return yKe(this.__data__,e)>-1}RV.exports=SKe});var VV=pt((wbn,LV)=>{var wKe=P1();function PKe(e,o){var t=this.__data__,n=wKe(t,e);return n<0?(++this.size,t.push([e,o])):t[n][1]=o,this}LV.exports=PKe});var T1=pt((Pbn,qV)=>{var TKe=EV(),MKe=FV(),DKe=BV(),EKe=NV(),IKe=VV();function su(e){var o=-1,t=e==null?0:e.length;for(this.clear();++o{var OKe=T1();function AKe(){this.__data__=new OKe,this.size=0}zV.exports=AKe});var jV=pt((Mbn,GV)=>{function FKe(e){var o=this.__data__,t=o.delete(e);return this.size=o.size,t}GV.exports=FKe});var UV=pt((Dbn,$V)=>{function kKe(e){return this.__data__.get(e)}$V.exports=kKe});var QV=pt((Ebn,WV)=>{function BKe(e){return this.__data__.has(e)}WV.exports=BKe});var ED=pt((Ibn,YV)=>{var RKe=typeof global=="object"&&global&&global.Object===Object&&global;YV.exports=RKe});var us=pt((Obn,JV)=>{var NKe=ED(),LKe=typeof self=="object"&&self&&self.Object===Object&&self,VKe=NKe||LKe||Function("return this")();JV.exports=VKe});var qd=pt((Abn,KV)=>{var qKe=us(),zKe=qKe.Symbol;KV.exports=zKe});var tq=pt((Fbn,eq)=>{var XV=qd(),ZV=Object.prototype,HKe=ZV.hasOwnProperty,GKe=ZV.toString,M1=XV?XV.toStringTag:void 0;function jKe(e){var o=HKe.call(e,M1),t=e[M1];try{e[M1]=void 0;var n=!0}catch{}var i=GKe.call(e);return n&&(o?e[M1]=t:delete e[M1]),i}eq.exports=jKe});var nq=pt((kbn,iq)=>{var $Ke=Object.prototype,UKe=$Ke.toString;function WKe(e){return UKe.call(e)}iq.exports=WKe});var Xp=pt((Bbn,rq)=>{var oq=qd(),QKe=tq(),YKe=nq(),JKe="[object Null]",KKe="[object Undefined]",aq=oq?oq.toStringTag:void 0;function XKe(e){return e==null?e===void 0?KKe:JKe:aq&&aq in Object(e)?QKe(e):YKe(e)}rq.exports=XKe});var Ll=pt((Rbn,lq)=>{function ZKe(e){var o=typeof e;return e!=null&&(o=="object"||o=="function")}lq.exports=ZKe});var cu=pt((Nbn,sq)=>{var eXe=Xp(),tXe=Ll(),iXe="[object AsyncFunction]",nXe="[object Function]",oXe="[object GeneratorFunction]",aXe="[object Proxy]";function rXe(e){if(!tXe(e))return!1;var o=eXe(e);return o==nXe||o==oXe||o==iXe||o==aXe}sq.exports=rXe});var pq=pt((Lbn,cq)=>{var lXe=us(),sXe=lXe["__core-js_shared__"];cq.exports=sXe});var uq=pt((Vbn,dq)=>{var ID=pq(),mq=(function(){var e=/[^.]+$/.exec(ID&&ID.keys&&ID.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function cXe(e){return!!mq&&mq in e}dq.exports=cXe});var OD=pt((qbn,fq)=>{var pXe=Function.prototype,mXe=pXe.toString;function dXe(e){if(e!=null){try{return mXe.call(e)}catch{}try{return e+""}catch{}}return""}fq.exports=dXe});var gq=pt((zbn,hq)=>{var uXe=cu(),fXe=uq(),hXe=Ll(),gXe=OD(),_Xe=/[\\^$.*+?()[\]{}|]/g,CXe=/^\[object .+?Constructor\]$/,vXe=Function.prototype,xXe=Object.prototype,bXe=vXe.toString,yXe=xXe.hasOwnProperty,SXe=RegExp("^"+bXe.call(yXe).replace(_Xe,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function wXe(e){if(!hXe(e)||fXe(e))return!1;var o=uXe(e)?SXe:CXe;return o.test(gXe(e))}hq.exports=wXe});var Cq=pt((Hbn,_q)=>{function PXe(e,o){return e?.[o]}_q.exports=PXe});var Zp=pt((Gbn,vq)=>{var TXe=gq(),MXe=Cq();function DXe(e,o){var t=MXe(e,o);return TXe(t)?t:void 0}vq.exports=DXe});var Fb=pt((jbn,xq)=>{var EXe=Zp(),IXe=us(),OXe=EXe(IXe,"Map");xq.exports=OXe});var D1=pt(($bn,bq)=>{var AXe=Zp(),FXe=AXe(Object,"create");bq.exports=FXe});var wq=pt((Ubn,Sq)=>{var yq=D1();function kXe(){this.__data__=yq?yq(null):{},this.size=0}Sq.exports=kXe});var Tq=pt((Wbn,Pq)=>{function BXe(e){var o=this.has(e)&&delete this.__data__[e];return this.size-=o?1:0,o}Pq.exports=BXe});var Dq=pt((Qbn,Mq)=>{var RXe=D1(),NXe="__lodash_hash_undefined__",LXe=Object.prototype,VXe=LXe.hasOwnProperty;function qXe(e){var o=this.__data__;if(RXe){var t=o[e];return t===NXe?void 0:t}return VXe.call(o,e)?o[e]:void 0}Mq.exports=qXe});var Iq=pt((Ybn,Eq)=>{var zXe=D1(),HXe=Object.prototype,GXe=HXe.hasOwnProperty;function jXe(e){var o=this.__data__;return zXe?o[e]!==void 0:GXe.call(o,e)}Eq.exports=jXe});var Aq=pt((Jbn,Oq)=>{var $Xe=D1(),UXe="__lodash_hash_undefined__";function WXe(e,o){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=$Xe&&o===void 0?UXe:o,this}Oq.exports=WXe});var kq=pt((Kbn,Fq)=>{var QXe=wq(),YXe=Tq(),JXe=Dq(),KXe=Iq(),XXe=Aq();function pu(e){var o=-1,t=e==null?0:e.length;for(this.clear();++o{var Bq=kq(),ZXe=T1(),eZe=Fb();function tZe(){this.size=0,this.__data__={hash:new Bq,map:new(eZe||ZXe),string:new Bq}}Rq.exports=tZe});var Vq=pt((Zbn,Lq)=>{function iZe(e){var o=typeof e;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?e!=="__proto__":e===null}Lq.exports=iZe});var E1=pt((eyn,qq)=>{var nZe=Vq();function oZe(e,o){var t=e.__data__;return nZe(o)?t[typeof o=="string"?"string":"hash"]:t.map}qq.exports=oZe});var Hq=pt((tyn,zq)=>{var aZe=E1();function rZe(e){var o=aZe(this,e).delete(e);return this.size-=o?1:0,o}zq.exports=rZe});var jq=pt((iyn,Gq)=>{var lZe=E1();function sZe(e){return lZe(this,e).get(e)}Gq.exports=sZe});var Uq=pt((nyn,$q)=>{var cZe=E1();function pZe(e){return cZe(this,e).has(e)}$q.exports=pZe});var Qq=pt((oyn,Wq)=>{var mZe=E1();function dZe(e,o){var t=mZe(this,e),n=t.size;return t.set(e,o),this.size+=t.size==n?0:1,this}Wq.exports=dZe});var kb=pt((ayn,Yq)=>{var uZe=Nq(),fZe=Hq(),hZe=jq(),gZe=Uq(),_Ze=Qq();function mu(e){var o=-1,t=e==null?0:e.length;for(this.clear();++o{var CZe=T1(),vZe=Fb(),xZe=kb(),bZe=200;function yZe(e,o){var t=this.__data__;if(t instanceof CZe){var n=t.__data__;if(!vZe||n.length{var SZe=T1(),wZe=HV(),PZe=jV(),TZe=UV(),MZe=QV(),DZe=Kq();function du(e){var o=this.__data__=new SZe(e);this.size=o.size}du.prototype.clear=wZe;du.prototype.delete=PZe;du.prototype.get=TZe;du.prototype.has=MZe;du.prototype.set=DZe;Xq.exports=du});var Bb=pt((syn,Zq)=>{function EZe(e,o){for(var t=-1,n=e==null?0:e.length;++t{var IZe=Zp(),OZe=(function(){try{var e=IZe(Object,"defineProperty");return e({},"",{}),e}catch{}})();ez.exports=OZe});var O1=pt((pyn,iz)=>{var tz=AD();function AZe(e,o,t){o=="__proto__"&&tz?tz(e,o,{configurable:!0,enumerable:!0,value:t,writable:!0}):e[o]=t}iz.exports=AZe});var A1=pt((myn,nz)=>{var FZe=O1(),kZe=Vd(),BZe=Object.prototype,RZe=BZe.hasOwnProperty;function NZe(e,o,t){var n=e[o];(!(RZe.call(e,o)&&kZe(n,t))||t===void 0&&!(o in e))&&FZe(e,o,t)}nz.exports=NZe});var uu=pt((dyn,oz)=>{var LZe=A1(),VZe=O1();function qZe(e,o,t,n){var i=!t;t||(t={});for(var s=-1,d=o.length;++s{function zZe(e,o){for(var t=-1,n=Array(e);++t{function HZe(e){return e!=null&&typeof e=="object"}lz.exports=HZe});var cz=pt((hyn,sz)=>{var GZe=Xp(),jZe=qs(),$Ze="[object Arguments]";function UZe(e){return jZe(e)&&GZe(e)==$Ze}sz.exports=UZe});var fu=pt((gyn,dz)=>{var pz=cz(),WZe=qs(),mz=Object.prototype,QZe=mz.hasOwnProperty,YZe=mz.propertyIsEnumerable,JZe=pz((function(){return arguments})())?pz:function(e){return WZe(e)&&QZe.call(e,"callee")&&!YZe.call(e,"callee")};dz.exports=JZe});var Wa=pt((_yn,uz)=>{var KZe=Array.isArray;uz.exports=KZe});var hz=pt((Cyn,fz)=>{function XZe(){return!1}fz.exports=XZe});var zd=pt((F1,hu)=>{var ZZe=us(),eet=hz(),Cz=typeof F1=="object"&&F1&&!F1.nodeType&&F1,gz=Cz&&typeof hu=="object"&&hu&&!hu.nodeType&&hu,tet=gz&&gz.exports===Cz,_z=tet?ZZe.Buffer:void 0,iet=_z?_z.isBuffer:void 0,net=iet||eet;hu.exports=net});var k1=pt((vyn,vz)=>{var oet=9007199254740991,aet=/^(?:0|[1-9]\d*)$/;function ret(e,o){var t=typeof e;return o=o??oet,!!o&&(t=="number"||t!="symbol"&&aet.test(e))&&e>-1&&e%1==0&&e{var set=9007199254740991;function cet(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=set}xz.exports=cet});var yz=pt((byn,bz)=>{var pet=Xp(),met=Rb(),det=qs(),uet="[object Arguments]",fet="[object Array]",het="[object Boolean]",get="[object Date]",_et="[object Error]",Cet="[object Function]",vet="[object Map]",xet="[object Number]",bet="[object Object]",yet="[object RegExp]",wet="[object Set]",Pet="[object String]",Tet="[object WeakMap]",Met="[object ArrayBuffer]",Det="[object DataView]",Eet="[object Float32Array]",Iet="[object Float64Array]",Oet="[object Int8Array]",Aet="[object Int16Array]",Fet="[object Int32Array]",ket="[object Uint8Array]",Bet="[object Uint8ClampedArray]",Ret="[object Uint16Array]",Net="[object Uint32Array]",ya={};ya[Eet]=ya[Iet]=ya[Oet]=ya[Aet]=ya[Fet]=ya[ket]=ya[Bet]=ya[Ret]=ya[Net]=!0;ya[uet]=ya[fet]=ya[Met]=ya[het]=ya[Det]=ya[get]=ya[_et]=ya[Cet]=ya[vet]=ya[xet]=ya[bet]=ya[yet]=ya[wet]=ya[Pet]=ya[Tet]=!1;function Let(e){return det(e)&&met(e.length)&&!!ya[pet(e)]}bz.exports=Let});var B1=pt((yyn,Sz)=>{function Vet(e){return function(o){return e(o)}}Sz.exports=Vet});var Nb=pt((R1,gu)=>{var qet=ED(),wz=typeof R1=="object"&&R1&&!R1.nodeType&&R1,N1=wz&&typeof gu=="object"&&gu&&!gu.nodeType&&gu,zet=N1&&N1.exports===wz,FD=zet&&qet.process,Het=(function(){try{var e=N1&&N1.require&&N1.require("util").types;return e||FD&&FD.binding&&FD.binding("util")}catch{}})();gu.exports=Het});var _u=pt((Syn,Mz)=>{var Get=yz(),jet=B1(),Pz=Nb(),Tz=Pz&&Pz.isTypedArray,$et=Tz?jet(Tz):Get;Mz.exports=$et});var kD=pt((wyn,Dz)=>{var Uet=rz(),Wet=fu(),Qet=Wa(),Yet=zd(),Jet=k1(),Ket=_u(),Xet=Object.prototype,Zet=Xet.hasOwnProperty;function ett(e,o){var t=Qet(e),n=!t&&Wet(e),i=!t&&!n&&Yet(e),s=!t&&!n&&!i&&Ket(e),d=t||n||i||s,u=d?Uet(e.length,String):[],f=u.length;for(var _ in e)(o||Zet.call(e,_))&&!(d&&(_=="length"||i&&(_=="offset"||_=="parent")||s&&(_=="buffer"||_=="byteLength"||_=="byteOffset")||Jet(_,f)))&&u.push(_);return u}Dz.exports=ett});var L1=pt((Pyn,Ez)=>{var ttt=Object.prototype;function itt(e){var o=e&&e.constructor,t=typeof o=="function"&&o.prototype||ttt;return e===t}Ez.exports=itt});var BD=pt((Tyn,Iz)=>{function ntt(e,o){return function(t){return e(o(t))}}Iz.exports=ntt});var Az=pt((Myn,Oz)=>{var ott=BD(),att=ott(Object.keys,Object);Oz.exports=att});var Lb=pt((Dyn,Fz)=>{var rtt=L1(),ltt=Az(),stt=Object.prototype,ctt=stt.hasOwnProperty;function ptt(e){if(!rtt(e))return ltt(e);var o=[];for(var t in Object(e))ctt.call(e,t)&&t!="constructor"&&o.push(t);return o}Fz.exports=ptt});var vc=pt((Eyn,kz)=>{var mtt=cu(),dtt=Rb();function utt(e){return e!=null&&dtt(e.length)&&!mtt(e)}kz.exports=utt});var Zc=pt((Iyn,Bz)=>{var ftt=kD(),htt=Lb(),gtt=vc();function _tt(e){return gtt(e)?ftt(e):htt(e)}Bz.exports=_tt});var Nz=pt((Oyn,Rz)=>{var Ctt=uu(),vtt=Zc();function xtt(e,o){return e&&Ctt(o,vtt(o),e)}Rz.exports=xtt});var Vz=pt((Ayn,Lz)=>{function btt(e){var o=[];if(e!=null)for(var t in Object(e))o.push(t);return o}Lz.exports=btt});var zz=pt((Fyn,qz)=>{var ytt=Ll(),Stt=L1(),wtt=Vz(),Ptt=Object.prototype,Ttt=Ptt.hasOwnProperty;function Mtt(e){if(!ytt(e))return wtt(e);var o=Stt(e),t=[];for(var n in e)n=="constructor"&&(o||!Ttt.call(e,n))||t.push(n);return t}qz.exports=Mtt});var em=pt((kyn,Hz)=>{var Dtt=kD(),Ett=zz(),Itt=vc();function Ott(e){return Itt(e)?Dtt(e,!0):Ett(e)}Hz.exports=Ott});var jz=pt((Byn,Gz)=>{var Att=uu(),Ftt=em();function ktt(e,o){return e&&Att(o,Ftt(o),e)}Gz.exports=ktt});var RD=pt((V1,Cu)=>{var Btt=us(),Qz=typeof V1=="object"&&V1&&!V1.nodeType&&V1,$z=Qz&&typeof Cu=="object"&&Cu&&!Cu.nodeType&&Cu,Rtt=$z&&$z.exports===Qz,Uz=Rtt?Btt.Buffer:void 0,Wz=Uz?Uz.allocUnsafe:void 0;function Ntt(e,o){if(o)return e.slice();var t=e.length,n=Wz?Wz(t):new e.constructor(t);return e.copy(n),n}Cu.exports=Ntt});var ND=pt((Ryn,Yz)=>{function Ltt(e,o){var t=-1,n=e.length;for(o||(o=Array(n));++t{function Vtt(e,o){for(var t=-1,n=e==null?0:e.length,i=0,s=[];++t{function qtt(){return[]}Kz.exports=qtt});var Vb=pt((Vyn,Zz)=>{var ztt=LD(),Htt=VD(),Gtt=Object.prototype,jtt=Gtt.propertyIsEnumerable,Xz=Object.getOwnPropertySymbols,$tt=Xz?function(e){return e==null?[]:(e=Object(e),ztt(Xz(e),function(o){return jtt.call(e,o)}))}:Htt;Zz.exports=$tt});var tH=pt((qyn,eH)=>{var Utt=uu(),Wtt=Vb();function Qtt(e,o){return Utt(e,Wtt(e),o)}eH.exports=Qtt});var qb=pt((zyn,iH)=>{function Ytt(e,o){for(var t=-1,n=o.length,i=e.length;++t{var Jtt=BD(),Ktt=Jtt(Object.getPrototypeOf,Object);nH.exports=Ktt});var qD=pt((Gyn,oH)=>{var Xtt=qb(),Ztt=q1(),eit=Vb(),tit=VD(),iit=Object.getOwnPropertySymbols,nit=iit?function(e){for(var o=[];e;)Xtt(o,eit(e)),e=Ztt(e);return o}:tit;oH.exports=nit});var rH=pt((jyn,aH)=>{var oit=uu(),ait=qD();function rit(e,o){return oit(e,ait(e),o)}aH.exports=rit});var zD=pt(($yn,lH)=>{var lit=qb(),sit=Wa();function cit(e,o,t){var n=o(e);return sit(e)?n:lit(n,t(e))}lH.exports=cit});var HD=pt((Uyn,sH)=>{var pit=zD(),mit=Vb(),dit=Zc();function uit(e){return pit(e,dit,mit)}sH.exports=uit});var pH=pt((Wyn,cH)=>{var fit=zD(),hit=qD(),git=em();function _it(e){return fit(e,git,hit)}cH.exports=_it});var dH=pt((Qyn,mH)=>{var Cit=Zp(),vit=us(),xit=Cit(vit,"DataView");mH.exports=xit});var fH=pt((Yyn,uH)=>{var bit=Zp(),yit=us(),Sit=bit(yit,"Promise");uH.exports=Sit});var GD=pt((Jyn,hH)=>{var wit=Zp(),Pit=us(),Tit=wit(Pit,"Set");hH.exports=Tit});var _H=pt((Kyn,gH)=>{var Mit=Zp(),Dit=us(),Eit=Mit(Dit,"WeakMap");gH.exports=Eit});var Gd=pt((Xyn,wH)=>{var jD=dH(),$D=Fb(),UD=fH(),WD=GD(),QD=_H(),SH=Xp(),vu=OD(),CH="[object Map]",Iit="[object Object]",vH="[object Promise]",xH="[object Set]",bH="[object WeakMap]",yH="[object DataView]",Oit=vu(jD),Ait=vu($D),Fit=vu(UD),kit=vu(WD),Bit=vu(QD),Hd=SH;(jD&&Hd(new jD(new ArrayBuffer(1)))!=yH||$D&&Hd(new $D)!=CH||UD&&Hd(UD.resolve())!=vH||WD&&Hd(new WD)!=xH||QD&&Hd(new QD)!=bH)&&(Hd=function(e){var o=SH(e),t=o==Iit?e.constructor:void 0,n=t?vu(t):"";if(n)switch(n){case Oit:return yH;case Ait:return CH;case Fit:return vH;case kit:return xH;case Bit:return bH}return o});wH.exports=Hd});var TH=pt((Zyn,PH)=>{var Rit=Object.prototype,Nit=Rit.hasOwnProperty;function Lit(e){var o=e.length,t=new e.constructor(o);return o&&typeof e[0]=="string"&&Nit.call(e,"index")&&(t.index=e.index,t.input=e.input),t}PH.exports=Lit});var YD=pt((e3n,MH)=>{var Vit=us(),qit=Vit.Uint8Array;MH.exports=qit});var zb=pt((t3n,EH)=>{var DH=YD();function zit(e){var o=new e.constructor(e.byteLength);return new DH(o).set(new DH(e)),o}EH.exports=zit});var OH=pt((i3n,IH)=>{var Hit=zb();function Git(e,o){var t=o?Hit(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.byteLength)}IH.exports=Git});var FH=pt((n3n,AH)=>{var jit=/\w*$/;function $it(e){var o=new e.constructor(e.source,jit.exec(e));return o.lastIndex=e.lastIndex,o}AH.exports=$it});var LH=pt((o3n,NH)=>{var kH=qd(),BH=kH?kH.prototype:void 0,RH=BH?BH.valueOf:void 0;function Uit(e){return RH?Object(RH.call(e)):{}}NH.exports=Uit});var JD=pt((a3n,VH)=>{var Wit=zb();function Qit(e,o){var t=o?Wit(e.buffer):e.buffer;return new e.constructor(t,e.byteOffset,e.length)}VH.exports=Qit});var zH=pt((r3n,qH)=>{var Yit=zb(),Jit=OH(),Kit=FH(),Xit=LH(),Zit=JD(),ent="[object Boolean]",tnt="[object Date]",int="[object Map]",nnt="[object Number]",ont="[object RegExp]",ant="[object Set]",rnt="[object String]",lnt="[object Symbol]",snt="[object ArrayBuffer]",cnt="[object DataView]",pnt="[object Float32Array]",mnt="[object Float64Array]",dnt="[object Int8Array]",unt="[object Int16Array]",fnt="[object Int32Array]",hnt="[object Uint8Array]",gnt="[object Uint8ClampedArray]",_nt="[object Uint16Array]",Cnt="[object Uint32Array]";function vnt(e,o,t){var n=e.constructor;switch(o){case snt:return Yit(e);case ent:case tnt:return new n(+e);case cnt:return Jit(e,t);case pnt:case mnt:case dnt:case unt:case fnt:case hnt:case gnt:case _nt:case Cnt:return Zit(e,t);case int:return new n;case nnt:case rnt:return new n(e);case ont:return Kit(e);case ant:return new n;case lnt:return Xit(e)}}qH.exports=vnt});var KD=pt((l3n,GH)=>{var xnt=Ll(),HH=Object.create,bnt=(function(){function e(){}return function(o){if(!xnt(o))return{};if(HH)return HH(o);e.prototype=o;var t=new e;return e.prototype=void 0,t}})();GH.exports=bnt});var XD=pt((s3n,jH)=>{var ynt=KD(),Snt=q1(),wnt=L1();function Pnt(e){return typeof e.constructor=="function"&&!wnt(e)?ynt(Snt(e)):{}}jH.exports=Pnt});var UH=pt((c3n,$H)=>{var Tnt=Gd(),Mnt=qs(),Dnt="[object Map]";function Ent(e){return Mnt(e)&&Tnt(e)==Dnt}$H.exports=Ent});var JH=pt((p3n,YH)=>{var Int=UH(),Ont=B1(),WH=Nb(),QH=WH&&WH.isMap,Ant=QH?Ont(QH):Int;YH.exports=Ant});var XH=pt((m3n,KH)=>{var Fnt=Gd(),knt=qs(),Bnt="[object Set]";function Rnt(e){return knt(e)&&Fnt(e)==Bnt}KH.exports=Rnt});var iG=pt((d3n,tG)=>{var Nnt=XH(),Lnt=B1(),ZH=Nb(),eG=ZH&&ZH.isSet,Vnt=eG?Lnt(eG):Nnt;tG.exports=Vnt});var ZD=pt((u3n,rG)=>{var qnt=I1(),znt=Bb(),Hnt=A1(),Gnt=Nz(),jnt=jz(),$nt=RD(),Unt=ND(),Wnt=tH(),Qnt=rH(),Ynt=HD(),Jnt=pH(),Knt=Gd(),Xnt=TH(),Znt=zH(),eot=XD(),tot=Wa(),iot=zd(),not=JH(),oot=Ll(),aot=iG(),rot=Zc(),lot=em(),sot=1,cot=2,pot=4,nG="[object Arguments]",mot="[object Array]",dot="[object Boolean]",uot="[object Date]",fot="[object Error]",oG="[object Function]",hot="[object GeneratorFunction]",got="[object Map]",_ot="[object Number]",aG="[object Object]",Cot="[object RegExp]",vot="[object Set]",xot="[object String]",bot="[object Symbol]",yot="[object WeakMap]",Sot="[object ArrayBuffer]",wot="[object DataView]",Pot="[object Float32Array]",Tot="[object Float64Array]",Mot="[object Int8Array]",Dot="[object Int16Array]",Eot="[object Int32Array]",Iot="[object Uint8Array]",Oot="[object Uint8ClampedArray]",Aot="[object Uint16Array]",Fot="[object Uint32Array]",Ca={};Ca[nG]=Ca[mot]=Ca[Sot]=Ca[wot]=Ca[dot]=Ca[uot]=Ca[Pot]=Ca[Tot]=Ca[Mot]=Ca[Dot]=Ca[Eot]=Ca[got]=Ca[_ot]=Ca[aG]=Ca[Cot]=Ca[vot]=Ca[xot]=Ca[bot]=Ca[Iot]=Ca[Oot]=Ca[Aot]=Ca[Fot]=!0;Ca[fot]=Ca[oG]=Ca[yot]=!1;function Hb(e,o,t,n,i,s){var d,u=o&sot,f=o&cot,_=o&pot;if(t&&(d=i?t(e,n,i,s):t(e)),d!==void 0)return d;if(!oot(e))return e;var C=tot(e);if(C){if(d=Xnt(e),!u)return Unt(e,d)}else{var x=Knt(e),y=x==oG||x==hot;if(iot(e))return $nt(e,u);if(x==aG||x==nG||y&&!i){if(d=f||y?{}:eot(e),!u)return f?Qnt(e,jnt(d,e)):Wnt(e,Gnt(d,e))}else{if(!Ca[x])return i?e:{};d=Znt(e,x,u)}}s||(s=new qnt);var P=s.get(e);if(P)return P;s.set(e,d),aot(e)?e.forEach(function(D){d.add(Hb(D,o,t,D,e,s))}):not(e)&&e.forEach(function(D,k){d.set(k,Hb(D,o,t,k,e,s))});var S=_?f?Jnt:Ynt:f?lot:rot,M=C?void 0:S(e);return znt(M||e,function(D,k){M&&(k=D,D=e[k]),Hnt(d,k,Hb(D,o,t,k,e,s))}),d}rG.exports=Hb});var sG=pt((f3n,lG)=>{var kot=ZD(),Bot=4;function Rot(e){return kot(e,Bot)}lG.exports=Rot});var Gb=pt((h3n,cG)=>{function Not(e){return function(){return e}}cG.exports=Not});var mG=pt((g3n,pG)=>{function Lot(e){return function(o,t,n){for(var i=-1,s=Object(o),d=n(o),u=d.length;u--;){var f=d[e?u:++i];if(t(s[f],f,s)===!1)break}return o}}pG.exports=Lot});var jb=pt((_3n,dG)=>{var Vot=mG(),qot=Vot();dG.exports=qot});var $b=pt((C3n,uG)=>{var zot=jb(),Hot=Zc();function Got(e,o){return e&&zot(e,o,Hot)}uG.exports=Got});var hG=pt((v3n,fG)=>{var jot=vc();function $ot(e,o){return function(t,n){if(t==null)return t;if(!jot(t))return e(t,n);for(var i=t.length,s=o?i:-1,d=Object(t);(o?s--:++s{var Uot=$b(),Wot=hG(),Qot=Wot(Uot);gG.exports=Qot});var tm=pt((b3n,_G)=>{function Yot(e){return e}_G.exports=Yot});var eE=pt((y3n,CG)=>{var Jot=tm();function Kot(e){return typeof e=="function"?e:Jot}CG.exports=Kot});var tE=pt((S3n,vG)=>{var Xot=Bb(),Zot=z1(),eat=eE(),tat=Wa();function iat(e,o){var t=tat(e)?Xot:Zot;return t(e,eat(o))}vG.exports=iat});var iE=pt((w3n,xG)=>{xG.exports=tE()});var yG=pt((P3n,bG)=>{var nat=z1();function oat(e,o){var t=[];return nat(e,function(n,i,s){o(n,i,s)&&t.push(n)}),t}bG.exports=oat});var wG=pt((T3n,SG)=>{var aat="__lodash_hash_undefined__";function rat(e){return this.__data__.set(e,aat),this}SG.exports=rat});var TG=pt((M3n,PG)=>{function lat(e){return this.__data__.has(e)}PG.exports=lat});var nE=pt((D3n,MG)=>{var sat=kb(),cat=wG(),pat=TG();function Ub(e){var o=-1,t=e==null?0:e.length;for(this.__data__=new sat;++o{function mat(e,o){for(var t=-1,n=e==null?0:e.length;++t{function dat(e,o){return e.has(o)}IG.exports=dat});var aE=pt((O3n,OG)=>{var uat=nE(),fat=EG(),hat=oE(),gat=1,_at=2;function Cat(e,o,t,n,i,s){var d=t&gat,u=e.length,f=o.length;if(u!=f&&!(d&&f>u))return!1;var _=s.get(e),C=s.get(o);if(_&&C)return _==o&&C==e;var x=-1,y=!0,P=t&_at?new uat:void 0;for(s.set(e,o),s.set(o,e);++x{function vat(e){var o=-1,t=Array(e.size);return e.forEach(function(n,i){t[++o]=[i,n]}),t}AG.exports=vat});var Wb=pt((F3n,kG)=>{function xat(e){var o=-1,t=Array(e.size);return e.forEach(function(n){t[++o]=n}),t}kG.exports=xat});var VG=pt((k3n,LG)=>{var BG=qd(),RG=YD(),bat=Vd(),yat=aE(),Sat=FG(),wat=Wb(),Pat=1,Tat=2,Mat="[object Boolean]",Dat="[object Date]",Eat="[object Error]",Iat="[object Map]",Oat="[object Number]",Aat="[object RegExp]",Fat="[object Set]",kat="[object String]",Bat="[object Symbol]",Rat="[object ArrayBuffer]",Nat="[object DataView]",NG=BG?BG.prototype:void 0,rE=NG?NG.valueOf:void 0;function Lat(e,o,t,n,i,s,d){switch(t){case Nat:if(e.byteLength!=o.byteLength||e.byteOffset!=o.byteOffset)return!1;e=e.buffer,o=o.buffer;case Rat:return!(e.byteLength!=o.byteLength||!s(new RG(e),new RG(o)));case Mat:case Dat:case Oat:return bat(+e,+o);case Eat:return e.name==o.name&&e.message==o.message;case Aat:case kat:return e==o+"";case Iat:var u=Sat;case Fat:var f=n&Pat;if(u||(u=wat),e.size!=o.size&&!f)return!1;var _=d.get(e);if(_)return _==o;n|=Tat,d.set(e,o);var C=yat(u(e),u(o),n,i,s,d);return d.delete(e),C;case Bat:if(rE)return rE.call(e)==rE.call(o)}return!1}LG.exports=Lat});var HG=pt((B3n,zG)=>{var qG=HD(),Vat=1,qat=Object.prototype,zat=qat.hasOwnProperty;function Hat(e,o,t,n,i,s){var d=t&Vat,u=qG(e),f=u.length,_=qG(o),C=_.length;if(f!=C&&!d)return!1;for(var x=f;x--;){var y=u[x];if(!(d?y in o:zat.call(o,y)))return!1}var P=s.get(e),S=s.get(o);if(P&&S)return P==o&&S==e;var M=!0;s.set(e,o),s.set(o,e);for(var D=d;++x{var lE=I1(),Gat=aE(),jat=VG(),$at=HG(),GG=Gd(),jG=Wa(),$G=zd(),Uat=_u(),Wat=1,UG="[object Arguments]",WG="[object Array]",Qb="[object Object]",Qat=Object.prototype,QG=Qat.hasOwnProperty;function Yat(e,o,t,n,i,s){var d=jG(e),u=jG(o),f=d?WG:GG(e),_=u?WG:GG(o);f=f==UG?Qb:f,_=_==UG?Qb:_;var C=f==Qb,x=_==Qb,y=f==_;if(y&&$G(e)){if(!$G(o))return!1;d=!0,C=!1}if(y&&!C)return s||(s=new lE),d||Uat(e)?Gat(e,o,t,n,i,s):jat(e,o,f,t,n,i,s);if(!(t&Wat)){var P=C&&QG.call(e,"__wrapped__"),S=x&&QG.call(o,"__wrapped__");if(P||S){var M=P?e.value():e,D=S?o.value():o;return s||(s=new lE),i(M,D,t,n,s)}}return y?(s||(s=new lE),$at(e,o,t,n,i,s)):!1}YG.exports=Yat});var sE=pt((N3n,ZG)=>{var Jat=JG(),KG=qs();function XG(e,o,t,n,i){return e===o?!0:e==null||o==null||!KG(e)&&!KG(o)?e!==e&&o!==o:Jat(e,o,t,n,XG,i)}ZG.exports=XG});var tj=pt((L3n,ej)=>{var Kat=I1(),Xat=sE(),Zat=1,ert=2;function trt(e,o,t,n){var i=t.length,s=i,d=!n;if(e==null)return!s;for(e=Object(e);i--;){var u=t[i];if(d&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++i{var irt=Ll();function nrt(e){return e===e&&!irt(e)}ij.exports=nrt});var oj=pt((q3n,nj)=>{var ort=cE(),art=Zc();function rrt(e){for(var o=art(e),t=o.length;t--;){var n=o[t],i=e[n];o[t]=[n,i,ort(i)]}return o}nj.exports=rrt});var pE=pt((z3n,aj)=>{function lrt(e,o){return function(t){return t==null?!1:t[e]===o&&(o!==void 0||e in Object(t))}}aj.exports=lrt});var lj=pt((H3n,rj)=>{var srt=tj(),crt=oj(),prt=pE();function mrt(e){var o=crt(e);return o.length==1&&o[0][2]?prt(o[0][0],o[0][1]):function(t){return t===e||srt(t,e,o)}}rj.exports=mrt});var jd=pt((G3n,sj)=>{var drt=Xp(),urt=qs(),frt="[object Symbol]";function hrt(e){return typeof e=="symbol"||urt(e)&&drt(e)==frt}sj.exports=hrt});var Yb=pt((j3n,cj)=>{var grt=Wa(),_rt=jd(),Crt=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vrt=/^\w*$/;function xrt(e,o){if(grt(e))return!1;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||_rt(e)?!0:vrt.test(e)||!Crt.test(e)||o!=null&&e in Object(o)}cj.exports=xrt});var dj=pt(($3n,mj)=>{var pj=kb(),brt="Expected a function";function mE(e,o){if(typeof e!="function"||o!=null&&typeof o!="function")throw new TypeError(brt);var t=function(){var n=arguments,i=o?o.apply(this,n):n[0],s=t.cache;if(s.has(i))return s.get(i);var d=e.apply(this,n);return t.cache=s.set(i,d)||s,d};return t.cache=new(mE.Cache||pj),t}mE.Cache=pj;mj.exports=mE});var fj=pt((U3n,uj)=>{var yrt=dj(),Srt=500;function wrt(e){var o=yrt(e,function(n){return t.size===Srt&&t.clear(),n}),t=o.cache;return o}uj.exports=wrt});var gj=pt((W3n,hj)=>{var Prt=fj(),Trt=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Mrt=/\\(\\)?/g,Drt=Prt(function(e){var o=[];return e.charCodeAt(0)===46&&o.push(""),e.replace(Trt,function(t,n,i,s){o.push(i?s.replace(Mrt,"$1"):n||t)}),o});hj.exports=Drt});var H1=pt((Q3n,_j)=>{function Ert(e,o){for(var t=-1,n=e==null?0:e.length,i=Array(n);++t{var Cj=qd(),Irt=H1(),Ort=Wa(),Art=jd(),Frt=1/0,vj=Cj?Cj.prototype:void 0,xj=vj?vj.toString:void 0;function bj(e){if(typeof e=="string")return e;if(Ort(e))return Irt(e,bj)+"";if(Art(e))return xj?xj.call(e):"";var o=e+"";return o=="0"&&1/e==-Frt?"-0":o}yj.exports=bj});var dE=pt((J3n,wj)=>{var krt=Sj();function Brt(e){return e==null?"":krt(e)}wj.exports=Brt});var G1=pt((K3n,Pj)=>{var Rrt=Wa(),Nrt=Yb(),Lrt=gj(),Vrt=dE();function qrt(e,o){return Rrt(e)?e:Nrt(e,o)?[e]:Lrt(Vrt(e))}Pj.exports=qrt});var xu=pt((X3n,Tj)=>{var zrt=jd(),Hrt=1/0;function Grt(e){if(typeof e=="string"||zrt(e))return e;var o=e+"";return o=="0"&&1/e==-Hrt?"-0":o}Tj.exports=Grt});var j1=pt((Z3n,Mj)=>{var jrt=G1(),$rt=xu();function Urt(e,o){o=jrt(o,e);for(var t=0,n=o.length;e!=null&&t{var Wrt=j1();function Qrt(e,o,t){var n=e==null?void 0:Wrt(e,o);return n===void 0?t:n}Dj.exports=Qrt});var Oj=pt((tSn,Ij)=>{function Yrt(e,o){return e!=null&&o in Object(e)}Ij.exports=Yrt});var uE=pt((iSn,Aj)=>{var Jrt=G1(),Krt=fu(),Xrt=Wa(),Zrt=k1(),elt=Rb(),tlt=xu();function ilt(e,o,t){o=Jrt(o,e);for(var n=-1,i=o.length,s=!1;++n{var nlt=Oj(),olt=uE();function alt(e,o){return e!=null&&olt(e,o,nlt)}Fj.exports=alt});var Bj=pt((oSn,kj)=>{var rlt=sE(),llt=Ej(),slt=fE(),clt=Yb(),plt=cE(),mlt=pE(),dlt=xu(),ult=1,flt=2;function hlt(e,o){return clt(e)&&plt(o)?mlt(dlt(e),o):function(t){var n=llt(t,e);return n===void 0&&n===o?slt(t,e):rlt(o,n,ult|flt)}}kj.exports=hlt});var hE=pt((aSn,Rj)=>{function glt(e){return function(o){return o?.[e]}}Rj.exports=glt});var Lj=pt((rSn,Nj)=>{var _lt=j1();function Clt(e){return function(o){return _lt(o,e)}}Nj.exports=Clt});var qj=pt((lSn,Vj)=>{var vlt=hE(),xlt=Lj(),blt=Yb(),ylt=xu();function Slt(e){return blt(e)?vlt(ylt(e)):xlt(e)}Vj.exports=Slt});var xc=pt((sSn,zj)=>{var wlt=lj(),Plt=Bj(),Tlt=tm(),Mlt=Wa(),Dlt=qj();function Elt(e){return typeof e=="function"?e:e==null?Tlt:typeof e=="object"?Mlt(e)?Plt(e[0],e[1]):wlt(e):Dlt(e)}zj.exports=Elt});var gE=pt((cSn,Hj)=>{var Ilt=LD(),Olt=yG(),Alt=xc(),Flt=Wa();function klt(e,o){var t=Flt(e)?Ilt:Olt;return t(e,Alt(o,3))}Hj.exports=klt});var jj=pt((pSn,Gj)=>{var Blt=Object.prototype,Rlt=Blt.hasOwnProperty;function Nlt(e,o){return e!=null&&Rlt.call(e,o)}Gj.exports=Nlt});var _E=pt((mSn,$j)=>{var Llt=jj(),Vlt=uE();function qlt(e,o){return e!=null&&Vlt(e,o,Llt)}$j.exports=qlt});var Wj=pt((dSn,Uj)=>{var zlt=Lb(),Hlt=Gd(),Glt=fu(),jlt=Wa(),$lt=vc(),Ult=zd(),Wlt=L1(),Qlt=_u(),Ylt="[object Map]",Jlt="[object Set]",Klt=Object.prototype,Xlt=Klt.hasOwnProperty;function Zlt(e){if(e==null)return!0;if($lt(e)&&(jlt(e)||typeof e=="string"||typeof e.splice=="function"||Ult(e)||Qlt(e)||Glt(e)))return!e.length;var o=Hlt(e);if(o==Ylt||o==Jlt)return!e.size;if(Wlt(e))return!zlt(e).length;for(var t in e)if(Xlt.call(e,t))return!1;return!0}Uj.exports=Zlt});var CE=pt((uSn,Qj)=>{function est(e){return e===void 0}Qj.exports=est});var vE=pt((fSn,Yj)=>{var tst=z1(),ist=vc();function nst(e,o){var t=-1,n=ist(e)?Array(e.length):[];return tst(e,function(i,s,d){n[++t]=o(i,s,d)}),n}Yj.exports=nst});var xE=pt((hSn,Jj)=>{var ost=H1(),ast=xc(),rst=vE(),lst=Wa();function sst(e,o){var t=lst(e)?ost:rst;return t(e,ast(o,3))}Jj.exports=sst});var Xj=pt((gSn,Kj)=>{function cst(e,o,t,n){var i=-1,s=e==null?0:e.length;for(n&&s&&(t=e[++i]);++i{function pst(e,o,t,n,i){return i(e,function(s,d,u){t=n?(n=!1,s):o(t,s,d,u)}),t}Zj.exports=pst});var bE=pt((CSn,t$)=>{var mst=Xj(),dst=z1(),ust=xc(),fst=e$(),hst=Wa();function gst(e,o,t){var n=hst(e)?mst:fst,i=arguments.length<3;return n(e,ust(o,4),t,i,dst)}t$.exports=gst});var n$=pt((vSn,i$)=>{var _st=Xp(),Cst=Wa(),vst=qs(),xst="[object String]";function bst(e){return typeof e=="string"||!Cst(e)&&vst(e)&&_st(e)==xst}i$.exports=bst});var a$=pt((xSn,o$)=>{var yst=hE(),Sst=yst("length");o$.exports=Sst});var l$=pt((bSn,r$)=>{var wst="\\ud800-\\udfff",Pst="\\u0300-\\u036f",Tst="\\ufe20-\\ufe2f",Mst="\\u20d0-\\u20ff",Dst=Pst+Tst+Mst,Est="\\ufe0e\\ufe0f",Ist="\\u200d",Ost=RegExp("["+Ist+wst+Dst+Est+"]");function Ast(e){return Ost.test(e)}r$.exports=Ast});var g$=pt((ySn,h$)=>{var c$="\\ud800-\\udfff",Fst="\\u0300-\\u036f",kst="\\ufe20-\\ufe2f",Bst="\\u20d0-\\u20ff",Rst=Fst+kst+Bst,Nst="\\ufe0e\\ufe0f",Lst="["+c$+"]",yE="["+Rst+"]",SE="\\ud83c[\\udffb-\\udfff]",Vst="(?:"+yE+"|"+SE+")",p$="[^"+c$+"]",m$="(?:\\ud83c[\\udde6-\\uddff]){2}",d$="[\\ud800-\\udbff][\\udc00-\\udfff]",qst="\\u200d",u$=Vst+"?",f$="["+Nst+"]?",zst="(?:"+qst+"(?:"+[p$,m$,d$].join("|")+")"+f$+u$+")*",Hst=f$+u$+zst,Gst="(?:"+[p$+yE+"?",yE,m$,d$,Lst].join("|")+")",s$=RegExp(SE+"(?="+SE+")|"+Gst+Hst,"g");function jst(e){for(var o=s$.lastIndex=0;s$.test(e);)++o;return o}h$.exports=jst});var C$=pt((SSn,_$)=>{var $st=a$(),Ust=l$(),Wst=g$();function Qst(e){return Ust(e)?Wst(e):$st(e)}_$.exports=Qst});var x$=pt((wSn,v$)=>{var Yst=Lb(),Jst=Gd(),Kst=vc(),Xst=n$(),Zst=C$(),ect="[object Map]",tct="[object Set]";function ict(e){if(e==null)return 0;if(Kst(e))return Xst(e)?Zst(e):e.length;var o=Jst(e);return o==ect||o==tct?e.size:Yst(e).length}v$.exports=ict});var y$=pt((PSn,b$)=>{var nct=Bb(),oct=KD(),act=$b(),rct=xc(),lct=q1(),sct=Wa(),cct=zd(),pct=cu(),mct=Ll(),dct=_u();function uct(e,o,t){var n=sct(e),i=n||cct(e)||dct(e);if(o=rct(o,4),t==null){var s=e&&e.constructor;i?t=n?new s:[]:mct(e)?t=pct(s)?oct(lct(e)):{}:t={}}return(i?nct:act)(e,function(d,u,f){return o(t,d,u,f)}),t}b$.exports=uct});var T$=pt((TSn,P$)=>{var S$=qd(),fct=fu(),hct=Wa(),w$=S$?S$.isConcatSpreadable:void 0;function gct(e){return hct(e)||fct(e)||!!(w$&&e&&e[w$])}P$.exports=gct});var Jb=pt((MSn,D$)=>{var _ct=qb(),Cct=T$();function M$(e,o,t,n,i){var s=-1,d=e.length;for(t||(t=Cct),i||(i=[]);++s0&&t(u)?o>1?M$(u,o-1,t,n,i):_ct(i,u):n||(i[i.length]=u)}return i}D$.exports=M$});var I$=pt((DSn,E$)=>{function vct(e,o,t){switch(t.length){case 0:return e.call(o);case 1:return e.call(o,t[0]);case 2:return e.call(o,t[0],t[1]);case 3:return e.call(o,t[0],t[1],t[2])}return e.apply(o,t)}E$.exports=vct});var wE=pt((ESn,A$)=>{var xct=I$(),O$=Math.max;function bct(e,o,t){return o=O$(o===void 0?e.length-1:o,0),function(){for(var n=arguments,i=-1,s=O$(n.length-o,0),d=Array(s);++i{var yct=Gb(),F$=AD(),Sct=tm(),wct=F$?function(e,o){return F$(e,"toString",{configurable:!0,enumerable:!1,value:yct(o),writable:!0})}:Sct;k$.exports=wct});var N$=pt((OSn,R$)=>{var Pct=800,Tct=16,Mct=Date.now;function Dct(e){var o=0,t=0;return function(){var n=Mct(),i=Tct-(n-t);if(t=n,i>0){if(++o>=Pct)return arguments[0]}else o=0;return e.apply(void 0,arguments)}}R$.exports=Dct});var PE=pt((ASn,L$)=>{var Ect=B$(),Ict=N$(),Oct=Ict(Ect);L$.exports=Oct});var $1=pt((FSn,V$)=>{var Act=tm(),Fct=wE(),kct=PE();function Bct(e,o){return kct(Fct(e,o,Act),e+"")}V$.exports=Bct});var TE=pt((kSn,q$)=>{function Rct(e,o,t,n){for(var i=e.length,s=t+(n?1:-1);n?s--:++s{function Nct(e){return e!==e}z$.exports=Nct});var j$=pt((RSn,G$)=>{function Lct(e,o,t){for(var n=t-1,i=e.length;++n{var Vct=TE(),qct=H$(),zct=j$();function Hct(e,o,t){return o===o?zct(e,o,t):Vct(e,qct,t)}$$.exports=Hct});var Q$=pt((LSn,W$)=>{var Gct=U$();function jct(e,o){var t=e==null?0:e.length;return!!t&&Gct(e,o,0)>-1}W$.exports=jct});var J$=pt((VSn,Y$)=>{function $ct(e,o,t){for(var n=-1,i=e==null?0:e.length;++n{function Uct(){}K$.exports=Uct});var eU=pt((zSn,Z$)=>{var ME=GD(),Wct=X$(),Qct=Wb(),Yct=1/0,Jct=ME&&1/Qct(new ME([,-0]))[1]==Yct?function(e){return new ME(e)}:Wct;Z$.exports=Jct});var iU=pt((HSn,tU)=>{var Kct=nE(),Xct=Q$(),Zct=J$(),ept=oE(),tpt=eU(),ipt=Wb(),npt=200;function opt(e,o,t){var n=-1,i=Xct,s=e.length,d=!0,u=[],f=u;if(t)d=!1,i=Zct;else if(s>=npt){var _=o?null:tpt(e);if(_)return ipt(_);d=!1,i=ept,f=new Kct}else f=o?[]:u;e:for(;++n{var apt=vc(),rpt=qs();function lpt(e){return rpt(e)&&apt(e)}nU.exports=lpt});var aU=pt((jSn,oU)=>{var spt=Jb(),cpt=$1(),ppt=iU(),mpt=DE(),dpt=cpt(function(e){return ppt(spt(e,1,mpt,!0))});oU.exports=dpt});var lU=pt(($Sn,rU)=>{var upt=H1();function fpt(e,o){return upt(o,function(t){return e[t]})}rU.exports=fpt});var EE=pt((USn,sU)=>{var hpt=lU(),gpt=Zc();function _pt(e){return e==null?[]:hpt(e,gpt(e))}sU.exports=_pt});var Vl=pt((WSn,cU)=>{var Kb;if(typeof Ms=="function")try{Kb={clone:sG(),constant:Gb(),each:iE(),filter:gE(),has:_E(),isArray:Wa(),isEmpty:Wj(),isFunction:cu(),isUndefined:CE(),keys:Zc(),map:xE(),reduce:bE(),size:x$(),transform:y$(),union:aU(),values:EE()}}catch{}Kb||(Kb=window._);cU.exports=Kb});var Xb=pt((YSn,uU)=>{"use strict";var to=Vl();uU.exports=vo;var Cpt="\0",$d="\0",pU="";function vo(e){this._isDirected=to.has(e,"directed")?e.directed:!0,this._isMultigraph=to.has(e,"multigraph")?e.multigraph:!1,this._isCompound=to.has(e,"compound")?e.compound:!1,this._label=void 0,this._defaultNodeLabelFn=to.constant(void 0),this._defaultEdgeLabelFn=to.constant(void 0),this._nodes={},this._isCompound&&(this._parent={},this._children={},this._children[$d]={}),this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={}}vo.prototype._nodeCount=0;vo.prototype._edgeCount=0;vo.prototype.isDirected=function(){return this._isDirected};vo.prototype.isMultigraph=function(){return this._isMultigraph};vo.prototype.isCompound=function(){return this._isCompound};vo.prototype.setGraph=function(e){return this._label=e,this};vo.prototype.graph=function(){return this._label};vo.prototype.setDefaultNodeLabel=function(e){return to.isFunction(e)||(e=to.constant(e)),this._defaultNodeLabelFn=e,this};vo.prototype.nodeCount=function(){return this._nodeCount};vo.prototype.nodes=function(){return to.keys(this._nodes)};vo.prototype.sources=function(){var e=this;return to.filter(this.nodes(),function(o){return to.isEmpty(e._in[o])})};vo.prototype.sinks=function(){var e=this;return to.filter(this.nodes(),function(o){return to.isEmpty(e._out[o])})};vo.prototype.setNodes=function(e,o){var t=arguments,n=this;return to.each(e,function(i){t.length>1?n.setNode(i,o):n.setNode(i)}),this};vo.prototype.setNode=function(e,o){return to.has(this._nodes,e)?(arguments.length>1&&(this._nodes[e]=o),this):(this._nodes[e]=arguments.length>1?o:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=$d,this._children[e]={},this._children[$d][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)};vo.prototype.node=function(e){return this._nodes[e]};vo.prototype.hasNode=function(e){return to.has(this._nodes,e)};vo.prototype.removeNode=function(e){var o=this;if(to.has(this._nodes,e)){var t=function(n){o.removeEdge(o._edgeObjs[n])};delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],to.each(this.children(e),function(n){o.setParent(n)}),delete this._children[e]),to.each(to.keys(this._in[e]),t),delete this._in[e],delete this._preds[e],to.each(to.keys(this._out[e]),t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this};vo.prototype.setParent=function(e,o){if(!this._isCompound)throw new Error("Cannot set parent in a non-compound graph");if(to.isUndefined(o))o=$d;else{o+="";for(var t=o;!to.isUndefined(t);t=this.parent(t))if(t===e)throw new Error("Setting "+o+" as parent of "+e+" would create a cycle");this.setNode(o)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=o,this._children[o][e]=!0,this};vo.prototype._removeFromParentsChildList=function(e){delete this._children[this._parent[e]][e]};vo.prototype.parent=function(e){if(this._isCompound){var o=this._parent[e];if(o!==$d)return o}};vo.prototype.children=function(e){if(to.isUndefined(e)&&(e=$d),this._isCompound){var o=this._children[e];if(o)return to.keys(o)}else{if(e===$d)return this.nodes();if(this.hasNode(e))return[]}};vo.prototype.predecessors=function(e){var o=this._preds[e];if(o)return to.keys(o)};vo.prototype.successors=function(e){var o=this._sucs[e];if(o)return to.keys(o)};vo.prototype.neighbors=function(e){var o=this.predecessors(e);if(o)return to.union(o,this.successors(e))};vo.prototype.isLeaf=function(e){var o;return this.isDirected()?o=this.successors(e):o=this.neighbors(e),o.length===0};vo.prototype.filterNodes=function(e){var o=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});o.setGraph(this.graph());var t=this;to.each(this._nodes,function(s,d){e(d)&&o.setNode(d,s)}),to.each(this._edgeObjs,function(s){o.hasNode(s.v)&&o.hasNode(s.w)&&o.setEdge(s,t.edge(s))});var n={};function i(s){var d=t.parent(s);return d===void 0||o.hasNode(d)?(n[s]=d,d):d in n?n[d]:i(d)}return this._isCompound&&to.each(o.nodes(),function(s){o.setParent(s,i(s))}),o};vo.prototype.setDefaultEdgeLabel=function(e){return to.isFunction(e)||(e=to.constant(e)),this._defaultEdgeLabelFn=e,this};vo.prototype.edgeCount=function(){return this._edgeCount};vo.prototype.edges=function(){return to.values(this._edgeObjs)};vo.prototype.setPath=function(e,o){var t=this,n=arguments;return to.reduce(e,function(i,s){return n.length>1?t.setEdge(i,s,o):t.setEdge(i,s),s}),this};vo.prototype.setEdge=function(){var e,o,t,n,i=!1,s=arguments[0];typeof s=="object"&&s!==null&&"v"in s?(e=s.v,o=s.w,t=s.name,arguments.length===2&&(n=arguments[1],i=!0)):(e=s,o=arguments[1],t=arguments[3],arguments.length>2&&(n=arguments[2],i=!0)),e=""+e,o=""+o,to.isUndefined(t)||(t=""+t);var d=U1(this._isDirected,e,o,t);if(to.has(this._edgeLabels,d))return i&&(this._edgeLabels[d]=n),this;if(!to.isUndefined(t)&&!this._isMultigraph)throw new Error("Cannot set a named edge when isMultigraph = false");this.setNode(e),this.setNode(o),this._edgeLabels[d]=i?n:this._defaultEdgeLabelFn(e,o,t);var u=vpt(this._isDirected,e,o,t);return e=u.v,o=u.w,Object.freeze(u),this._edgeObjs[d]=u,mU(this._preds[o],e),mU(this._sucs[e],o),this._in[o][d]=u,this._out[e][d]=u,this._edgeCount++,this};vo.prototype.edge=function(e,o,t){var n=arguments.length===1?IE(this._isDirected,arguments[0]):U1(this._isDirected,e,o,t);return this._edgeLabels[n]};vo.prototype.hasEdge=function(e,o,t){var n=arguments.length===1?IE(this._isDirected,arguments[0]):U1(this._isDirected,e,o,t);return to.has(this._edgeLabels,n)};vo.prototype.removeEdge=function(e,o,t){var n=arguments.length===1?IE(this._isDirected,arguments[0]):U1(this._isDirected,e,o,t),i=this._edgeObjs[n];return i&&(e=i.v,o=i.w,delete this._edgeLabels[n],delete this._edgeObjs[n],dU(this._preds[o],e),dU(this._sucs[e],o),delete this._in[o][n],delete this._out[e][n],this._edgeCount--),this};vo.prototype.inEdges=function(e,o){var t=this._in[e];if(t){var n=to.values(t);return o?to.filter(n,function(i){return i.v===o}):n}};vo.prototype.outEdges=function(e,o){var t=this._out[e];if(t){var n=to.values(t);return o?to.filter(n,function(i){return i.w===o}):n}};vo.prototype.nodeEdges=function(e,o){var t=this.inEdges(e,o);if(t)return t.concat(this.outEdges(e,o))};function mU(e,o){e[o]?e[o]++:e[o]=1}function dU(e,o){--e[o]||delete e[o]}function U1(e,o,t,n){var i=""+o,s=""+t;if(!e&&i>s){var d=i;i=s,s=d}return i+pU+s+pU+(to.isUndefined(n)?Cpt:n)}function vpt(e,o,t,n){var i=""+o,s=""+t;if(!e&&i>s){var d=i;i=s,s=d}var u={v:i,w:s};return n&&(u.name=n),u}function IE(e,o){return U1(e,o.v,o.w,o.name)}});var hU=pt((JSn,fU)=>{fU.exports="2.1.8"});var _U=pt((KSn,gU)=>{gU.exports={Graph:Xb(),version:hU()}});var vU=pt((XSn,CU)=>{var bc=Vl(),xpt=Xb();CU.exports={write:bpt,read:wpt};function bpt(e){var o={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:ypt(e),edges:Spt(e)};return bc.isUndefined(e.graph())||(o.value=bc.clone(e.graph())),o}function ypt(e){return bc.map(e.nodes(),function(o){var t=e.node(o),n=e.parent(o),i={v:o};return bc.isUndefined(t)||(i.value=t),bc.isUndefined(n)||(i.parent=n),i})}function Spt(e){return bc.map(e.edges(),function(o){var t=e.edge(o),n={v:o.v,w:o.w};return bc.isUndefined(o.name)||(n.name=o.name),bc.isUndefined(t)||(n.value=t),n})}function wpt(e){var o=new xpt(e.options).setGraph(e.value);return bc.each(e.nodes,function(t){o.setNode(t.v,t.value),t.parent&&o.setParent(t.v,t.parent)}),bc.each(e.edges,function(t){o.setEdge({v:t.v,w:t.w,name:t.name},t.value)}),o}});var bU=pt((ZSn,xU)=>{var Zb=Vl();xU.exports=Ppt;function Ppt(e){var o={},t=[],n;function i(s){Zb.has(o,s)||(o[s]=!0,n.push(s),Zb.each(e.successors(s),i),Zb.each(e.predecessors(s),i))}return Zb.each(e.nodes(),function(s){n=[],i(s),n.length&&t.push(n)}),t}});var OE=pt((ewn,SU)=>{var yU=Vl();SU.exports=fs;function fs(){this._arr=[],this._keyIndices={}}fs.prototype.size=function(){return this._arr.length};fs.prototype.keys=function(){return this._arr.map(function(e){return e.key})};fs.prototype.has=function(e){return yU.has(this._keyIndices,e)};fs.prototype.priority=function(e){var o=this._keyIndices[e];if(o!==void 0)return this._arr[o].priority};fs.prototype.min=function(){if(this.size()===0)throw new Error("Queue underflow");return this._arr[0].key};fs.prototype.add=function(e,o){var t=this._keyIndices;if(e=String(e),!yU.has(t,e)){var n=this._arr,i=n.length;return t[e]=i,n.push({key:e,priority:o}),this._decrease(i),!0}return!1};fs.prototype.removeMin=function(){this._swap(0,this._arr.length-1);var e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key};fs.prototype.decrease=function(e,o){var t=this._keyIndices[e];if(o>this._arr[t].priority)throw new Error("New priority is greater than current priority. Key: "+e+" Old: "+this._arr[t].priority+" New: "+o);this._arr[t].priority=o,this._decrease(t)};fs.prototype._heapify=function(e){var o=this._arr,t=2*e,n=t+1,i=e;t>1,!(o[n].priority{var Tpt=Vl(),Mpt=OE();wU.exports=Ept;var Dpt=Tpt.constant(1);function Ept(e,o,t,n){return Ipt(e,String(o),t||Dpt,n||function(i){return e.outEdges(i)})}function Ipt(e,o,t,n){var i={},s=new Mpt,d,u,f=function(_){var C=_.v!==d?_.v:_.w,x=i[C],y=t(_),P=u.distance+y;if(y<0)throw new Error("dijkstra does not allow negative edge weights. Bad edge: "+_+" Weight: "+y);P0&&(d=s.removeMin(),u=i[d],u.distance!==Number.POSITIVE_INFINITY);)n(d).forEach(f);return i}});var TU=pt((iwn,PU)=>{var Opt=AE(),Apt=Vl();PU.exports=Fpt;function Fpt(e,o,t){return Apt.transform(e.nodes(),function(n,i){n[i]=Opt(e,i,o,t)},{})}});var FE=pt((nwn,DU)=>{var MU=Vl();DU.exports=kpt;function kpt(e){var o=0,t=[],n={},i=[];function s(d){var u=n[d]={onStack:!0,lowlink:o,index:o++};if(t.push(d),e.successors(d).forEach(function(C){MU.has(n,C)?n[C].onStack&&(u.lowlink=Math.min(u.lowlink,n[C].index)):(s(C),u.lowlink=Math.min(u.lowlink,n[C].lowlink))}),u.lowlink===u.index){var f=[],_;do _=t.pop(),n[_].onStack=!1,f.push(_);while(d!==_);i.push(f)}}return e.nodes().forEach(function(d){MU.has(n,d)||s(d)}),i}});var IU=pt((own,EU)=>{var Bpt=Vl(),Rpt=FE();EU.exports=Npt;function Npt(e){return Bpt.filter(Rpt(e),function(o){return o.length>1||o.length===1&&e.hasEdge(o[0],o[0])})}});var AU=pt((awn,OU)=>{var Lpt=Vl();OU.exports=qpt;var Vpt=Lpt.constant(1);function qpt(e,o,t){return zpt(e,o||Vpt,t||function(n){return e.outEdges(n)})}function zpt(e,o,t){var n={},i=e.nodes();return i.forEach(function(s){n[s]={},n[s][s]={distance:0},i.forEach(function(d){s!==d&&(n[s][d]={distance:Number.POSITIVE_INFINITY})}),t(s).forEach(function(d){var u=d.v===s?d.w:d.v,f=o(d);n[s][u]={distance:f,predecessor:s}})}),i.forEach(function(s){var d=n[s];i.forEach(function(u){var f=n[u];i.forEach(function(_){var C=f[s],x=d[_],y=f[_],P=C.distance+x.distance;P{var W1=Vl();kU.exports=FU;FU.CycleException=ey;function FU(e){var o={},t={},n=[];function i(s){if(W1.has(t,s))throw new ey;W1.has(o,s)||(t[s]=!0,o[s]=!0,W1.each(e.predecessors(s),i),delete t[s],n.push(s))}if(W1.each(e.sinks(),i),W1.size(o)!==e.nodeCount())throw new ey;return n}function ey(){}ey.prototype=new Error});var NU=pt((lwn,RU)=>{var BU=kE();RU.exports=Hpt;function Hpt(e){try{BU(e)}catch(o){if(o instanceof BU.CycleException)return!1;throw o}return!0}});var BE=pt((swn,VU)=>{var ty=Vl();VU.exports=Gpt;function Gpt(e,o,t){ty.isArray(o)||(o=[o]);var n=(e.isDirected()?e.successors:e.neighbors).bind(e),i=[],s={};return ty.each(o,function(d){if(!e.hasNode(d))throw new Error("Graph does not have node: "+d);LU(e,d,t==="post",s,n,i)}),i}function LU(e,o,t,n,i,s){ty.has(n,o)||(n[o]=!0,t||s.push(o),ty.each(i(o),function(d){LU(e,d,t,n,i,s)}),t&&s.push(o))}});var zU=pt((cwn,qU)=>{var jpt=BE();qU.exports=$pt;function $pt(e,o){return jpt(e,o,"post")}});var GU=pt((pwn,HU)=>{var Upt=BE();HU.exports=Wpt;function Wpt(e,o){return Upt(e,o,"pre")}});var UU=pt((mwn,$U)=>{var jU=Vl(),Qpt=Xb(),Ypt=OE();$U.exports=Jpt;function Jpt(e,o){var t=new Qpt,n={},i=new Ypt,s;function d(f){var _=f.v===s?f.w:f.v,C=i.priority(_);if(C!==void 0){var x=o(f);x0;){if(s=i.removeMin(),jU.has(n,s))t.setEdge(s,n[s]);else{if(u)throw new Error("Input graph is not connected: "+e);u=!0}e.nodeEdges(s).forEach(d)}return t}});var QU=pt((dwn,WU)=>{WU.exports={components:bU(),dijkstra:AE(),dijkstraAll:TU(),findCycles:IU(),floydWarshall:AU(),isAcyclic:NU(),postorder:zU(),preorder:GU(),prim:UU(),tarjan:FE(),topsort:kE()}});var KU=pt((uwn,JU)=>{var YU=_U();JU.exports={Graph:YU.Graph,json:vU(),alg:QU(),version:YU.version}});var hs=pt((fwn,XU)=>{var iy;if(typeof Ms=="function")try{iy=KU()}catch{}iy||(iy=window.graphlib);XU.exports=iy});var eW=pt((gwn,ZU)=>{var Kpt=ZD(),Xpt=1,Zpt=4;function emt(e){return Kpt(e,Xpt|Zpt)}ZU.exports=emt});var Q1=pt((_wn,tW)=>{var tmt=Vd(),imt=vc(),nmt=k1(),omt=Ll();function amt(e,o,t){if(!omt(t))return!1;var n=typeof o;return(n=="number"?imt(t)&&nmt(o,t.length):n=="string"&&o in t)?tmt(t[o],e):!1}tW.exports=amt});var oW=pt((Cwn,nW)=>{var rmt=$1(),lmt=Vd(),smt=Q1(),cmt=em(),iW=Object.prototype,pmt=iW.hasOwnProperty,mmt=rmt(function(e,o){e=Object(e);var t=-1,n=o.length,i=n>2?o[2]:void 0;for(i&&smt(o[0],o[1],i)&&(n=1);++t{var dmt=xc(),umt=vc(),fmt=Zc();function hmt(e){return function(o,t,n){var i=Object(o);if(!umt(o)){var s=dmt(t,3);o=fmt(o),t=function(u){return s(i[u],u,i)}}var d=e(o,t,n);return d>-1?i[s?o[d]:d]:void 0}}aW.exports=hmt});var sW=pt((xwn,lW)=>{var gmt=/\s/;function _mt(e){for(var o=e.length;o--&&gmt.test(e.charAt(o)););return o}lW.exports=_mt});var pW=pt((bwn,cW)=>{var Cmt=sW(),vmt=/^\s+/;function xmt(e){return e&&e.slice(0,Cmt(e)+1).replace(vmt,"")}cW.exports=xmt});var fW=pt((ywn,uW)=>{var bmt=pW(),mW=Ll(),ymt=jd(),dW=NaN,Smt=/^[-+]0x[0-9a-f]+$/i,wmt=/^0b[01]+$/i,Pmt=/^0o[0-7]+$/i,Tmt=parseInt;function Mmt(e){if(typeof e=="number")return e;if(ymt(e))return dW;if(mW(e)){var o=typeof e.valueOf=="function"?e.valueOf():e;e=mW(o)?o+"":o}if(typeof e!="string")return e===0?e:+e;e=bmt(e);var t=wmt.test(e);return t||Pmt.test(e)?Tmt(e.slice(2),t?2:8):Smt.test(e)?dW:+e}uW.exports=Mmt});var RE=pt((Swn,gW)=>{var Dmt=fW(),hW=1/0,Emt=17976931348623157e292;function Imt(e){if(!e)return e===0?e:0;if(e=Dmt(e),e===hW||e===-hW){var o=e<0?-1:1;return o*Emt}return e===e?e:0}gW.exports=Imt});var CW=pt((wwn,_W)=>{var Omt=RE();function Amt(e){var o=Omt(e),t=o%1;return o===o?t?o-t:o:0}_W.exports=Amt});var xW=pt((Pwn,vW)=>{var Fmt=TE(),kmt=xc(),Bmt=CW(),Rmt=Math.max;function Nmt(e,o,t){var n=e==null?0:e.length;if(!n)return-1;var i=t==null?0:Bmt(t);return i<0&&(i=Rmt(n+i,0)),Fmt(e,kmt(o,3),i)}vW.exports=Nmt});var yW=pt((Twn,bW)=>{var Lmt=rW(),Vmt=xW(),qmt=Lmt(Vmt);bW.exports=qmt});var NE=pt((Mwn,SW)=>{var zmt=Jb();function Hmt(e){var o=e==null?0:e.length;return o?zmt(e,1):[]}SW.exports=Hmt});var PW=pt((Dwn,wW)=>{var Gmt=jb(),jmt=eE(),$mt=em();function Umt(e,o){return e==null?e:Gmt(e,jmt(o),$mt)}wW.exports=Umt});var MW=pt((Ewn,TW)=>{function Wmt(e){var o=e==null?0:e.length;return o?e[o-1]:void 0}TW.exports=Wmt});var EW=pt((Iwn,DW)=>{var Qmt=O1(),Ymt=$b(),Jmt=xc();function Kmt(e,o){var t={};return o=Jmt(o,3),Ymt(e,function(n,i,s){Qmt(t,i,o(n,i,s))}),t}DW.exports=Kmt});var ny=pt((Own,IW)=>{var Xmt=jd();function Zmt(e,o,t){for(var n=-1,i=e.length;++n{function edt(e,o){return e>o}OW.exports=edt});var kW=pt((Fwn,FW)=>{var tdt=ny(),idt=AW(),ndt=tm();function odt(e){return e&&e.length?tdt(e,ndt,idt):void 0}FW.exports=odt});var LE=pt((kwn,BW)=>{var adt=O1(),rdt=Vd();function ldt(e,o,t){(t!==void 0&&!rdt(e[o],t)||t===void 0&&!(o in e))&&adt(e,o,t)}BW.exports=ldt});var LW=pt((Bwn,NW)=>{var sdt=Xp(),cdt=q1(),pdt=qs(),mdt="[object Object]",ddt=Function.prototype,udt=Object.prototype,RW=ddt.toString,fdt=udt.hasOwnProperty,hdt=RW.call(Object);function gdt(e){if(!pdt(e)||sdt(e)!=mdt)return!1;var o=cdt(e);if(o===null)return!0;var t=fdt.call(o,"constructor")&&o.constructor;return typeof t=="function"&&t instanceof t&&RW.call(t)==hdt}NW.exports=gdt});var VE=pt((Rwn,VW)=>{function _dt(e,o){if(!(o==="constructor"&&typeof e[o]=="function")&&o!="__proto__")return e[o]}VW.exports=_dt});var zW=pt((Nwn,qW)=>{var Cdt=uu(),vdt=em();function xdt(e){return Cdt(e,vdt(e))}qW.exports=xdt});var WW=pt((Lwn,UW)=>{var HW=LE(),bdt=RD(),ydt=JD(),Sdt=ND(),wdt=XD(),GW=fu(),jW=Wa(),Pdt=DE(),Tdt=zd(),Mdt=cu(),Ddt=Ll(),Edt=LW(),Idt=_u(),$W=VE(),Odt=zW();function Adt(e,o,t,n,i,s,d){var u=$W(e,t),f=$W(o,t),_=d.get(f);if(_){HW(e,t,_);return}var C=s?s(u,f,t+"",e,o,d):void 0,x=C===void 0;if(x){var y=jW(f),P=!y&&Tdt(f),S=!y&&!P&&Idt(f);C=f,y||P||S?jW(u)?C=u:Pdt(u)?C=Sdt(u):P?(x=!1,C=bdt(f,!0)):S?(x=!1,C=ydt(f,!0)):C=[]:Edt(f)||GW(f)?(C=u,GW(u)?C=Odt(u):(!Ddt(u)||Mdt(u))&&(C=wdt(f))):x=!1}x&&(d.set(f,C),i(C,f,n,s,d),d.delete(f)),HW(e,t,C)}UW.exports=Adt});var JW=pt((Vwn,YW)=>{var Fdt=I1(),kdt=LE(),Bdt=jb(),Rdt=WW(),Ndt=Ll(),Ldt=em(),Vdt=VE();function QW(e,o,t,n,i){e!==o&&Bdt(o,function(s,d){if(i||(i=new Fdt),Ndt(s))Rdt(e,o,d,t,QW,n,i);else{var u=n?n(Vdt(e,d),s,d+"",e,o,i):void 0;u===void 0&&(u=s),kdt(e,d,u)}},Ldt)}YW.exports=QW});var XW=pt((qwn,KW)=>{var qdt=$1(),zdt=Q1();function Hdt(e){return qdt(function(o,t){var n=-1,i=t.length,s=i>1?t[i-1]:void 0,d=i>2?t[2]:void 0;for(s=e.length>3&&typeof s=="function"?(i--,s):void 0,d&&zdt(t[0],t[1],d)&&(s=i<3?void 0:s,i=1),o=Object(o);++n{var Gdt=JW(),jdt=XW(),$dt=jdt(function(e,o,t){Gdt(e,o,t)});ZW.exports=$dt});var qE=pt((Hwn,tQ)=>{function Udt(e,o){return e{var Wdt=ny(),Qdt=qE(),Ydt=tm();function Jdt(e){return e&&e.length?Wdt(e,Ydt,Qdt):void 0}iQ.exports=Jdt});var aQ=pt((jwn,oQ)=>{var Kdt=ny(),Xdt=xc(),Zdt=qE();function e0t(e,o){return e&&e.length?Kdt(e,Xdt(o,2),Zdt):void 0}oQ.exports=e0t});var lQ=pt(($wn,rQ)=>{var t0t=us(),i0t=function(){return t0t.Date.now()};rQ.exports=i0t});var pQ=pt((Uwn,cQ)=>{var n0t=A1(),o0t=G1(),a0t=k1(),sQ=Ll(),r0t=xu();function l0t(e,o,t,n){if(!sQ(e))return e;o=o0t(o,e);for(var i=-1,s=o.length,d=s-1,u=e;u!=null&&++i{var s0t=j1(),c0t=pQ(),p0t=G1();function m0t(e,o,t){for(var n=-1,i=o.length,s={};++n{var d0t=dQ(),u0t=fE();function f0t(e,o){return d0t(e,o,function(t,n){return u0t(e,n)})}uQ.exports=f0t});var gQ=pt((Ywn,hQ)=>{var h0t=NE(),g0t=wE(),_0t=PE();function C0t(e){return _0t(g0t(e,void 0,h0t),e+"")}hQ.exports=C0t});var CQ=pt((Jwn,_Q)=>{var v0t=fQ(),x0t=gQ(),b0t=x0t(function(e,o){return e==null?{}:v0t(e,o)});_Q.exports=b0t});var xQ=pt((Kwn,vQ)=>{var y0t=Math.ceil,S0t=Math.max;function w0t(e,o,t,n){for(var i=-1,s=S0t(y0t((o-e)/(t||1)),0),d=Array(s);s--;)d[n?s:++i]=e,e+=t;return d}vQ.exports=w0t});var yQ=pt((Xwn,bQ)=>{var P0t=xQ(),T0t=Q1(),zE=RE();function M0t(e){return function(o,t,n){return n&&typeof n!="number"&&T0t(o,t,n)&&(t=n=void 0),o=zE(o),t===void 0?(t=o,o=0):t=zE(t),n=n===void 0?o{var D0t=yQ(),E0t=D0t();SQ.exports=E0t});var TQ=pt((ePn,PQ)=>{function I0t(e,o){var t=e.length;for(e.sort(o);t--;)e[t]=e[t].value;return e}PQ.exports=I0t});var EQ=pt((tPn,DQ)=>{var MQ=jd();function O0t(e,o){if(e!==o){var t=e!==void 0,n=e===null,i=e===e,s=MQ(e),d=o!==void 0,u=o===null,f=o===o,_=MQ(o);if(!u&&!_&&!s&&e>o||s&&d&&f&&!u&&!_||n&&d&&f||!t&&f||!i)return 1;if(!n&&!s&&!_&&e{var A0t=EQ();function F0t(e,o,t){for(var n=-1,i=e.criteria,s=o.criteria,d=i.length,u=t.length;++n=u)return f;var _=t[n];return f*(_=="desc"?-1:1)}}return e.index-o.index}IQ.exports=F0t});var FQ=pt((nPn,AQ)=>{var HE=H1(),k0t=j1(),B0t=xc(),R0t=vE(),N0t=TQ(),L0t=B1(),V0t=OQ(),q0t=tm(),z0t=Wa();function H0t(e,o,t){o.length?o=HE(o,function(s){return z0t(s)?function(d){return k0t(d,s.length===1?s[0]:s)}:s}):o=[q0t];var n=-1;o=HE(o,L0t(B0t));var i=R0t(e,function(s,d,u){var f=HE(o,function(_){return _(s)});return{criteria:f,index:++n,value:s}});return N0t(i,function(s,d){return V0t(s,d,t)})}AQ.exports=H0t});var RQ=pt((oPn,BQ)=>{var G0t=Jb(),j0t=FQ(),$0t=$1(),kQ=Q1(),U0t=$0t(function(e,o){if(e==null)return[];var t=o.length;return t>1&&kQ(e,o[0],o[1])?o=[]:t>2&&kQ(o[0],o[1],o[2])&&(o=[o[0]]),j0t(e,G0t(o,1),[])});BQ.exports=U0t});var LQ=pt((aPn,NQ)=>{var W0t=dE(),Q0t=0;function Y0t(e){var o=++Q0t;return W0t(e)+o}NQ.exports=Y0t});var qQ=pt((rPn,VQ)=>{function J0t(e,o,t){for(var n=-1,i=e.length,s=o.length,d={};++n{var K0t=A1(),X0t=qQ();function Z0t(e,o){return X0t(e||[],o||[],K0t)}zQ.exports=Z0t});var Sa=pt((sPn,GQ)=>{var oy;if(typeof Ms=="function")try{oy={cloneDeep:eW(),constant:Gb(),defaults:oW(),each:iE(),filter:gE(),find:yW(),flatten:NE(),forEach:tE(),forIn:PW(),has:_E(),isUndefined:CE(),last:MW(),map:xE(),mapValues:EW(),max:kW(),merge:eQ(),min:nQ(),minBy:aQ(),now:lQ(),pick:CQ(),range:wQ(),reduce:bE(),sortBy:RQ(),uniqueId:LQ(),values:EE(),zipObject:HQ()}}catch{}oy||(oy=window._);GQ.exports=oy});var UQ=pt((pPn,$Q)=>{$Q.exports=ay;function ay(){var e={};e._next=e._prev=e,this._sentinel=e}ay.prototype.dequeue=function(){var e=this._sentinel,o=e._prev;if(o!==e)return jQ(o),o};ay.prototype.enqueue=function(e){var o=this._sentinel;e._prev&&e._next&&jQ(e),e._next=o._next,o._next._prev=e,o._next=e,e._prev=o};ay.prototype.toString=function(){for(var e=[],o=this._sentinel,t=o._prev;t!==o;)e.push(JSON.stringify(t,eut)),t=t._prev;return"["+e.join(", ")+"]"};function jQ(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function eut(e,o){if(e!=="_next"&&e!=="_prev")return o}});var QQ=pt((mPn,WQ)=>{var ep=Sa(),tut=hs().Graph,iut=UQ();WQ.exports=out;var nut=ep.constant(1);function out(e,o){if(e.nodeCount()<=1)return[];var t=rut(e,o||nut),n=aut(t.graph,t.buckets,t.zeroIdx);return ep.flatten(ep.map(n,function(i){return e.outEdges(i.v,i.w)}),!0)}function aut(e,o,t){for(var n=[],i=o[o.length-1],s=o[0],d;e.nodeCount();){for(;d=s.dequeue();)GE(e,o,t,d);for(;d=i.dequeue();)GE(e,o,t,d);if(e.nodeCount()){for(var u=o.length-2;u>0;--u)if(d=o[u].dequeue(),d){n=n.concat(GE(e,o,t,d,!0));break}}}return n}function GE(e,o,t,n,i){var s=i?[]:void 0;return ep.forEach(e.inEdges(n.v),function(d){var u=e.edge(d),f=e.node(d.v);i&&s.push({v:d.v,w:d.w}),f.out-=u,jE(o,t,f)}),ep.forEach(e.outEdges(n.v),function(d){var u=e.edge(d),f=d.w,_=e.node(f);_.in-=u,jE(o,t,_)}),e.removeNode(n.v),s}function rut(e,o){var t=new tut,n=0,i=0;ep.forEach(e.nodes(),function(u){t.setNode(u,{v:u,in:0,out:0})}),ep.forEach(e.edges(),function(u){var f=t.edge(u.v,u.w)||0,_=o(u),C=f+_;t.setEdge(u.v,u.w,C),i=Math.max(i,t.node(u.v).out+=_),n=Math.max(n,t.node(u.w).in+=_)});var s=ep.range(i+n+3).map(function(){return new iut}),d=n+1;return ep.forEach(t.nodes(),function(u){jE(s,d,t.node(u))}),{graph:t,buckets:s,zeroIdx:d}}function jE(e,o,t){t.out?t.in?e[t.out-t.in+o].enqueue(t):e[e.length-1].enqueue(t):e[0].enqueue(t)}});var JQ=pt((dPn,YQ)=>{"use strict";var Ud=Sa(),lut=QQ();YQ.exports={run:sut,undo:put};function sut(e){var o=e.graph().acyclicer==="greedy"?lut(e,t(e)):cut(e);Ud.forEach(o,function(n){var i=e.edge(n);e.removeEdge(n),i.forwardName=n.name,i.reversed=!0,e.setEdge(n.w,n.v,i,Ud.uniqueId("rev"))});function t(n){return function(i){return n.edge(i).weight}}}function cut(e){var o=[],t={},n={};function i(s){Ud.has(n,s)||(n[s]=!0,t[s]=!0,Ud.forEach(e.outEdges(s),function(d){Ud.has(t,d.w)?o.push(d):i(d.w)}),delete t[s])}return Ud.forEach(e.nodes(),i),o}function put(e){Ud.forEach(e.edges(),function(o){var t=e.edge(o);if(t.reversed){e.removeEdge(o);var n=t.forwardName;delete t.reversed,delete t.forwardName,e.setEdge(o.w,o.v,t,n)}})}});var rl=pt((uPn,eY)=>{"use strict";var Ho=Sa(),KQ=hs().Graph;eY.exports={addDummyNode:XQ,simplify:mut,asNonCompoundGraph:dut,successorWeights:uut,predecessorWeights:fut,intersectRect:hut,buildLayerMatrix:gut,normalizeRanks:_ut,removeEmptyRanks:Cut,addBorderNode:vut,maxRank:ZQ,partition:xut,time:but,notime:yut};function XQ(e,o,t,n){var i;do i=Ho.uniqueId(n);while(e.hasNode(i));return t.dummy=o,e.setNode(i,t),i}function mut(e){var o=new KQ().setGraph(e.graph());return Ho.forEach(e.nodes(),function(t){o.setNode(t,e.node(t))}),Ho.forEach(e.edges(),function(t){var n=o.edge(t.v,t.w)||{weight:0,minlen:1},i=e.edge(t);o.setEdge(t.v,t.w,{weight:n.weight+i.weight,minlen:Math.max(n.minlen,i.minlen)})}),o}function dut(e){var o=new KQ({multigraph:e.isMultigraph()}).setGraph(e.graph());return Ho.forEach(e.nodes(),function(t){e.children(t).length||o.setNode(t,e.node(t))}),Ho.forEach(e.edges(),function(t){o.setEdge(t,e.edge(t))}),o}function uut(e){var o=Ho.map(e.nodes(),function(t){var n={};return Ho.forEach(e.outEdges(t),function(i){n[i.w]=(n[i.w]||0)+e.edge(i).weight}),n});return Ho.zipObject(e.nodes(),o)}function fut(e){var o=Ho.map(e.nodes(),function(t){var n={};return Ho.forEach(e.inEdges(t),function(i){n[i.v]=(n[i.v]||0)+e.edge(i).weight}),n});return Ho.zipObject(e.nodes(),o)}function hut(e,o){var t=e.x,n=e.y,i=o.x-t,s=o.y-n,d=e.width/2,u=e.height/2;if(!i&&!s)throw new Error("Not possible to find intersection inside of the rectangle");var f,_;return Math.abs(s)*d>Math.abs(i)*u?(s<0&&(u=-u),f=u*i/s,_=u):(i<0&&(d=-d),f=d,_=d*s/i),{x:t+f,y:n+_}}function gut(e){var o=Ho.map(Ho.range(ZQ(e)+1),function(){return[]});return Ho.forEach(e.nodes(),function(t){var n=e.node(t),i=n.rank;Ho.isUndefined(i)||(o[i][n.order]=t)}),o}function _ut(e){var o=Ho.min(Ho.map(e.nodes(),function(t){return e.node(t).rank}));Ho.forEach(e.nodes(),function(t){var n=e.node(t);Ho.has(n,"rank")&&(n.rank-=o)})}function Cut(e){var o=Ho.min(Ho.map(e.nodes(),function(s){return e.node(s).rank})),t=[];Ho.forEach(e.nodes(),function(s){var d=e.node(s).rank-o;t[d]||(t[d]=[]),t[d].push(s)});var n=0,i=e.graph().nodeRankFactor;Ho.forEach(t,function(s,d){Ho.isUndefined(s)&&d%i!==0?--n:n&&Ho.forEach(s,function(u){e.node(u).rank+=n})})}function vut(e,o,t,n){var i={width:0,height:0};return arguments.length>=4&&(i.rank=t,i.order=n),XQ(e,"border",i,o)}function ZQ(e){return Ho.max(Ho.map(e.nodes(),function(o){var t=e.node(o).rank;if(!Ho.isUndefined(t))return t}))}function xut(e,o){var t={lhs:[],rhs:[]};return Ho.forEach(e,function(n){o(n)?t.lhs.push(n):t.rhs.push(n)}),t}function but(e,o){var t=Ho.now();try{return o()}finally{console.log(e+" time: "+(Ho.now()-t)+"ms")}}function yut(e,o){return o()}});var nY=pt((fPn,iY)=>{"use strict";var tY=Sa(),Sut=rl();iY.exports={run:wut,undo:Tut};function wut(e){e.graph().dummyChains=[],tY.forEach(e.edges(),function(o){Put(e,o)})}function Put(e,o){var t=o.v,n=e.node(t).rank,i=o.w,s=e.node(i).rank,d=o.name,u=e.edge(o),f=u.labelRank;if(s!==n+1){e.removeEdge(o);var _,C,x;for(x=0,++n;n{"use strict";var ry=Sa();oY.exports={longestPath:Mut,slack:Dut};function Mut(e){var o={};function t(n){var i=e.node(n);if(ry.has(o,n))return i.rank;o[n]=!0;var s=ry.min(ry.map(e.outEdges(n),function(d){return t(d.w)-e.edge(d).minlen}));return(s===Number.POSITIVE_INFINITY||s===void 0||s===null)&&(s=0),i.rank=s}ry.forEach(e.sources(),t)}function Dut(e,o){return e.node(o.w).rank-e.node(o.v).rank-e.edge(o).minlen}});var $E=pt((gPn,aY)=>{"use strict";var ly=Sa(),Eut=hs().Graph,sy=Y1().slack;aY.exports=Iut;function Iut(e){var o=new Eut({directed:!1}),t=e.nodes()[0],n=e.nodeCount();o.setNode(t,{});for(var i,s;Out(o,e){"use strict";var tp=Sa(),kut=$E(),But=Y1().slack,Rut=Y1().longestPath,Nut=hs().alg.preorder,Lut=hs().alg.postorder,Vut=rl().simplify;dY.exports=Wd;Wd.initLowLimValues=WE;Wd.initCutValues=UE;Wd.calcCutValue=lY;Wd.leaveEdge=cY;Wd.enterEdge=pY;Wd.exchangeEdges=mY;function Wd(e){e=Vut(e),Rut(e);var o=kut(e);WE(o),UE(o,e);for(var t,n;t=cY(o);)n=pY(o,e,t),mY(o,e,t,n)}function UE(e,o){var t=Lut(e,e.nodes());t=t.slice(0,t.length-1),tp.forEach(t,function(n){qut(e,o,n)})}function qut(e,o,t){var n=e.node(t),i=n.parent;e.edge(t,i).cutvalue=lY(e,o,t)}function lY(e,o,t){var n=e.node(t),i=n.parent,s=!0,d=o.edge(t,i),u=0;return d||(s=!1,d=o.edge(i,t)),u=d.weight,tp.forEach(o.nodeEdges(t),function(f){var _=f.v===t,C=_?f.w:f.v;if(C!==i){var x=_===s,y=o.edge(f).weight;if(u+=x?y:-y,Hut(e,t,C)){var P=e.edge(t,C).cutvalue;u+=x?-P:P}}}),u}function WE(e,o){arguments.length<2&&(o=e.nodes()[0]),sY(e,{},1,o)}function sY(e,o,t,n,i){var s=t,d=e.node(n);return o[n]=!0,tp.forEach(e.neighbors(n),function(u){tp.has(o,u)||(t=sY(e,o,t,u,n))}),d.low=s,d.lim=t++,i?d.parent=i:delete d.parent,t}function cY(e){return tp.find(e.edges(),function(o){return e.edge(o).cutvalue<0})}function pY(e,o,t){var n=t.v,i=t.w;o.hasEdge(n,i)||(n=t.w,i=t.v);var s=e.node(n),d=e.node(i),u=s,f=!1;s.lim>d.lim&&(u=d,f=!0);var _=tp.filter(o.edges(),function(C){return f===rY(e,e.node(C.v),u)&&f!==rY(e,e.node(C.w),u)});return tp.minBy(_,function(C){return But(o,C)})}function mY(e,o,t,n){var i=t.v,s=t.w;e.removeEdge(i,s),e.setEdge(n.v,n.w,{}),WE(e),UE(e,o),zut(e,o)}function zut(e,o){var t=tp.find(e.nodes(),function(i){return!o.node(i).parent}),n=Nut(e,t);n=n.slice(1),tp.forEach(n,function(i){var s=e.node(i).parent,d=o.edge(i,s),u=!1;d||(d=o.edge(s,i),u=!0),o.node(i).rank=o.node(s).rank+(u?d.minlen:-d.minlen)})}function Hut(e,o,t){return e.hasEdge(o,t)}function rY(e,o,t){return t.low<=o.lim&&o.lim<=t.lim}});var _Y=pt((CPn,gY)=>{"use strict";var Gut=Y1(),hY=Gut.longestPath,jut=$E(),$ut=uY();gY.exports=Uut;function Uut(e){switch(e.graph().ranker){case"network-simplex":fY(e);break;case"tight-tree":Qut(e);break;case"longest-path":Wut(e);break;default:fY(e)}}var Wut=hY;function Qut(e){hY(e),jut(e)}function fY(e){$ut(e)}});var vY=pt((vPn,CY)=>{var QE=Sa();CY.exports=Yut;function Yut(e){var o=Kut(e);QE.forEach(e.graph().dummyChains,function(t){for(var n=e.node(t),i=n.edgeObj,s=Jut(e,o,i.v,i.w),d=s.path,u=s.lca,f=0,_=d[f],C=!0;t!==i.w;){if(n=e.node(t),C){for(;(_=d[f])!==u&&e.node(_).maxRankd||u>o[f].lim));for(_=f,f=n;(f=e.parent(f))!==_;)s.push(f);return{path:i.concat(s.reverse()),lca:_}}function Kut(e){var o={},t=0;function n(i){var s=t;QE.forEach(e.children(i),n),o[i]={low:s,lim:t++}}return QE.forEach(e.children(),n),o}});var yY=pt((xPn,bY)=>{var ip=Sa(),YE=rl();bY.exports={run:Xut,cleanup:tft};function Xut(e){var o=YE.addDummyNode(e,"root",{},"_root"),t=Zut(e),n=ip.max(ip.values(t))-1,i=2*n+1;e.graph().nestingRoot=o,ip.forEach(e.edges(),function(d){e.edge(d).minlen*=i});var s=eft(e)+1;ip.forEach(e.children(),function(d){xY(e,o,i,s,n,t,d)}),e.graph().nodeRankFactor=i}function xY(e,o,t,n,i,s,d){var u=e.children(d);if(!u.length){d!==o&&e.setEdge(o,d,{weight:0,minlen:t});return}var f=YE.addBorderNode(e,"_bt"),_=YE.addBorderNode(e,"_bb"),C=e.node(d);e.setParent(f,d),C.borderTop=f,e.setParent(_,d),C.borderBottom=_,ip.forEach(u,function(x){xY(e,o,t,n,i,s,x);var y=e.node(x),P=y.borderTop?y.borderTop:x,S=y.borderBottom?y.borderBottom:x,M=y.borderTop?n:2*n,D=P!==S?1:i-s[d]+1;e.setEdge(f,P,{weight:M,minlen:D,nestingEdge:!0}),e.setEdge(S,_,{weight:M,minlen:D,nestingEdge:!0})}),e.parent(d)||e.setEdge(o,f,{weight:0,minlen:i+s[d]})}function Zut(e){var o={};function t(n,i){var s=e.children(n);s&&s.length&&ip.forEach(s,function(d){t(d,i+1)}),o[n]=i}return ip.forEach(e.children(),function(n){t(n,1)}),o}function eft(e){return ip.reduce(e.edges(),function(o,t){return o+e.edge(t).weight},0)}function tft(e){var o=e.graph();e.removeNode(o.nestingRoot),delete o.nestingRoot,ip.forEach(e.edges(),function(t){var n=e.edge(t);n.nestingEdge&&e.removeEdge(t)})}});var PY=pt((bPn,wY)=>{var JE=Sa(),ift=rl();wY.exports=nft;function nft(e){function o(t){var n=e.children(t),i=e.node(t);if(n.length&&JE.forEach(n,o),JE.has(i,"minRank")){i.borderLeft=[],i.borderRight=[];for(var s=i.minRank,d=i.maxRank+1;s{"use strict";var yc=Sa();DY.exports={adjust:oft,undo:aft};function oft(e){var o=e.graph().rankdir.toLowerCase();(o==="lr"||o==="rl")&&MY(e)}function aft(e){var o=e.graph().rankdir.toLowerCase();(o==="bt"||o==="rl")&&rft(e),(o==="lr"||o==="rl")&&(lft(e),MY(e))}function MY(e){yc.forEach(e.nodes(),function(o){TY(e.node(o))}),yc.forEach(e.edges(),function(o){TY(e.edge(o))})}function TY(e){var o=e.width;e.width=e.height,e.height=o}function rft(e){yc.forEach(e.nodes(),function(o){KE(e.node(o))}),yc.forEach(e.edges(),function(o){var t=e.edge(o);yc.forEach(t.points,KE),yc.has(t,"y")&&KE(t)})}function KE(e){e.y=-e.y}function lft(e){yc.forEach(e.nodes(),function(o){XE(e.node(o))}),yc.forEach(e.edges(),function(o){var t=e.edge(o);yc.forEach(t.points,XE),yc.has(t,"x")&&XE(t)})}function XE(e){var o=e.x;e.x=e.y,e.y=o}});var OY=pt((SPn,IY)=>{"use strict";var np=Sa();IY.exports=sft;function sft(e){var o={},t=np.filter(e.nodes(),function(u){return!e.children(u).length}),n=np.max(np.map(t,function(u){return e.node(u).rank})),i=np.map(np.range(n+1),function(){return[]});function s(u){if(!np.has(o,u)){o[u]=!0;var f=e.node(u);i[f.rank].push(u),np.forEach(e.successors(u),s)}}var d=np.sortBy(t,function(u){return e.node(u).rank});return np.forEach(d,s),i}});var FY=pt((wPn,AY)=>{"use strict";var im=Sa();AY.exports=cft;function cft(e,o){for(var t=0,n=1;n0;)C%2&&(x+=u[C+1]),C=C-1>>1,u[C]+=_.weight;f+=_.weight*x})),f}});var RY=pt((PPn,BY)=>{var kY=Sa();BY.exports=mft;function mft(e,o){return kY.map(o,function(t){var n=e.inEdges(t);if(n.length){var i=kY.reduce(n,function(s,d){var u=e.edge(d),f=e.node(d.v);return{sum:s.sum+u.weight*f.order,weight:s.weight+u.weight}},{sum:0,weight:0});return{v:t,barycenter:i.sum/i.weight,weight:i.weight}}else return{v:t}})}});var LY=pt((TPn,NY)=>{"use strict";var ql=Sa();NY.exports=dft;function dft(e,o){var t={};ql.forEach(e,function(i,s){var d=t[i.v]={indegree:0,in:[],out:[],vs:[i.v],i:s};ql.isUndefined(i.barycenter)||(d.barycenter=i.barycenter,d.weight=i.weight)}),ql.forEach(o.edges(),function(i){var s=t[i.v],d=t[i.w];!ql.isUndefined(s)&&!ql.isUndefined(d)&&(d.indegree++,s.out.push(t[i.w]))});var n=ql.filter(t,function(i){return!i.indegree});return uft(n)}function uft(e){var o=[];function t(s){return function(d){d.merged||(ql.isUndefined(d.barycenter)||ql.isUndefined(s.barycenter)||d.barycenter>=s.barycenter)&&fft(s,d)}}function n(s){return function(d){d.in.push(s),--d.indegree===0&&e.push(d)}}for(;e.length;){var i=e.pop();o.push(i),ql.forEach(i.in.reverse(),t(i)),ql.forEach(i.out,n(i))}return ql.map(ql.filter(o,function(s){return!s.merged}),function(s){return ql.pick(s,["vs","i","barycenter","weight"])})}function fft(e,o){var t=0,n=0;e.weight&&(t+=e.barycenter*e.weight,n+=e.weight),o.weight&&(t+=o.barycenter*o.weight,n+=o.weight),e.vs=o.vs.concat(e.vs),e.barycenter=t/n,e.weight=n,e.i=Math.min(o.i,e.i),o.merged=!0}});var zY=pt((MPn,qY)=>{var J1=Sa(),hft=rl();qY.exports=gft;function gft(e,o){var t=hft.partition(e,function(C){return J1.has(C,"barycenter")}),n=t.lhs,i=J1.sortBy(t.rhs,function(C){return-C.i}),s=[],d=0,u=0,f=0;n.sort(_ft(!!o)),f=VY(s,i,f),J1.forEach(n,function(C){f+=C.vs.length,s.push(C.vs),d+=C.barycenter*C.weight,u+=C.weight,f=VY(s,i,f)});var _={vs:J1.flatten(s,!0)};return u&&(_.barycenter=d/u,_.weight=u),_}function VY(e,o,t){for(var n;o.length&&(n=J1.last(o)).i<=t;)o.pop(),e.push(n.vs),t++;return t}function _ft(e){return function(o,t){return o.barycentert.barycenter?1:e?t.i-o.i:o.i-t.i}}});var jY=pt((DPn,GY)=>{var nm=Sa(),Cft=RY(),vft=LY(),xft=zY();GY.exports=HY;function HY(e,o,t,n){var i=e.children(o),s=e.node(o),d=s?s.borderLeft:void 0,u=s?s.borderRight:void 0,f={};d&&(i=nm.filter(i,function(S){return S!==d&&S!==u}));var _=Cft(e,i);nm.forEach(_,function(S){if(e.children(S.v).length){var M=HY(e,S.v,t,n);f[S.v]=M,nm.has(M,"barycenter")&&yft(S,M)}});var C=vft(_,t);bft(C,f);var x=xft(C,n);if(d&&(x.vs=nm.flatten([d,x.vs,u],!0),e.predecessors(d).length)){var y=e.node(e.predecessors(d)[0]),P=e.node(e.predecessors(u)[0]);nm.has(x,"barycenter")||(x.barycenter=0,x.weight=0),x.barycenter=(x.barycenter*x.weight+y.order+P.order)/(x.weight+2),x.weight+=2}return x}function bft(e,o){nm.forEach(e,function(t){t.vs=nm.flatten(t.vs.map(function(n){return o[n]?o[n].vs:n}),!0)})}function yft(e,o){nm.isUndefined(e.barycenter)?(e.barycenter=o.barycenter,e.weight=o.weight):(e.barycenter=(e.barycenter*e.weight+o.barycenter*o.weight)/(e.weight+o.weight),e.weight+=o.weight)}});var UY=pt((EPn,$Y)=>{var K1=Sa(),Sft=hs().Graph;$Y.exports=wft;function wft(e,o,t){var n=Pft(e),i=new Sft({compound:!0}).setGraph({root:n}).setDefaultNodeLabel(function(s){return e.node(s)});return K1.forEach(e.nodes(),function(s){var d=e.node(s),u=e.parent(s);(d.rank===o||d.minRank<=o&&o<=d.maxRank)&&(i.setNode(s),i.setParent(s,u||n),K1.forEach(e[t](s),function(f){var _=f.v===s?f.w:f.v,C=i.edge(_,s),x=K1.isUndefined(C)?0:C.weight;i.setEdge(_,s,{weight:e.edge(f).weight+x})}),K1.has(d,"minRank")&&i.setNode(s,{borderLeft:d.borderLeft[o],borderRight:d.borderRight[o]}))}),i}function Pft(e){for(var o;e.hasNode(o=K1.uniqueId("_root")););return o}});var QY=pt((IPn,WY)=>{var Tft=Sa();WY.exports=Mft;function Mft(e,o,t){var n={},i;Tft.forEach(t,function(s){for(var d=e.parent(s),u,f;d;){if(u=e.parent(d),u?(f=n[u],n[u]=d):(f=i,i=d),f&&f!==d){o.setEdge(f,d);return}d=u}})}});var ZY=pt((OPn,XY)=>{"use strict";var om=Sa(),Dft=OY(),Eft=FY(),Ift=jY(),Oft=UY(),Aft=QY(),Fft=hs().Graph,YY=rl();XY.exports=kft;function kft(e){var o=YY.maxRank(e),t=JY(e,om.range(1,o+1),"inEdges"),n=JY(e,om.range(o-1,-1,-1),"outEdges"),i=Dft(e);KY(e,i);for(var s=Number.POSITIVE_INFINITY,d,u=0,f=0;f<4;++u,++f){Bft(u%2?t:n,u%4>=2),i=YY.buildLayerMatrix(e);var _=Eft(e,i);_{"use strict";var io=Sa(),Rft=hs().Graph,Nft=rl();sJ.exports={positionX:qft,findType1Conflicts:eJ,findType2Conflicts:tJ,addConflict:ZE,hasConflict:iJ,verticalAlignment:nJ,horizontalCompaction:oJ,alignCoordinates:rJ,findSmallestWidthAlignment:aJ,balance:lJ};function eJ(e,o){var t={};function n(i,s){var d=0,u=0,f=i.length,_=io.last(s);return io.forEach(s,function(C,x){var y=Lft(e,C),P=y?e.node(y).order:f;(y||C===_)&&(io.forEach(s.slice(u,x+1),function(S){io.forEach(e.predecessors(S),function(M){var D=e.node(M),k=D.order;(k_)&&ZE(t,y,C)})})}function i(s,d){var u=-1,f,_=0;return io.forEach(d,function(C,x){if(e.node(C).dummy==="border"){var y=e.predecessors(C);y.length&&(f=e.node(y[0]).order,n(d,_,x,u,f),_=x,u=f)}n(d,_,d.length,f,s.length)}),d}return io.reduce(o,i),t}function Lft(e,o){if(e.node(o).dummy)return io.find(e.predecessors(o),function(t){return e.node(t).dummy})}function ZE(e,o,t){if(o>t){var n=o;o=t,t=n}var i=e[o];i||(e[o]=i={}),i[t]=!0}function iJ(e,o,t){if(o>t){var n=o;o=t,t=n}return io.has(e[o],t)}function nJ(e,o,t,n){var i={},s={},d={};return io.forEach(o,function(u){io.forEach(u,function(f,_){i[f]=f,s[f]=f,d[f]=_})}),io.forEach(o,function(u){var f=-1;io.forEach(u,function(_){var C=n(_);if(C.length){C=io.sortBy(C,function(M){return d[M]});for(var x=(C.length-1)/2,y=Math.floor(x),P=Math.ceil(x);y<=P;++y){var S=C[y];s[_]===_&&f{"use strict";var X1=Sa(),pJ=rl(),Gft=cJ().positionX;mJ.exports=jft;function jft(e){e=pJ.asNonCompoundGraph(e),$ft(e),X1.forEach(Gft(e),function(o,t){e.node(t).x=o})}function $ft(e){var o=pJ.buildLayerMatrix(e),t=e.graph().ranksep,n=0;X1.forEach(o,function(i){var s=X1.max(X1.map(i,function(d){return e.node(d).height}));X1.forEach(i,function(d){e.node(d).y=n+s/2}),n+=s+t})}});var CJ=pt((kPn,_J)=>{"use strict";var fo=Sa(),uJ=JQ(),fJ=nY(),Uft=_Y(),Wft=rl().normalizeRanks,Qft=vY(),Yft=rl().removeEmptyRanks,hJ=yY(),Jft=PY(),gJ=EY(),Kft=ZY(),Xft=dJ(),am=rl(),Zft=hs().Graph;_J.exports=e1t;function e1t(e,o){var t=o&&o.debugTiming?am.time:am.notime;t("layout",function(){var n=t(" buildLayoutGraph",function(){return m1t(e)});t(" runLayout",function(){t1t(n,t)}),t(" updateInputGraph",function(){i1t(e,n)})})}function t1t(e,o){o(" makeSpaceForEdgeLabels",function(){d1t(e)}),o(" removeSelfEdges",function(){b1t(e)}),o(" acyclic",function(){uJ.run(e)}),o(" nestingGraph.run",function(){hJ.run(e)}),o(" rank",function(){Uft(am.asNonCompoundGraph(e))}),o(" injectEdgeLabelProxies",function(){u1t(e)}),o(" removeEmptyRanks",function(){Yft(e)}),o(" nestingGraph.cleanup",function(){hJ.cleanup(e)}),o(" normalizeRanks",function(){Wft(e)}),o(" assignRankMinMax",function(){f1t(e)}),o(" removeEdgeLabelProxies",function(){h1t(e)}),o(" normalize.run",function(){fJ.run(e)}),o(" parentDummyChains",function(){Qft(e)}),o(" addBorderSegments",function(){Jft(e)}),o(" order",function(){Kft(e)}),o(" insertSelfEdges",function(){y1t(e)}),o(" adjustCoordinateSystem",function(){gJ.adjust(e)}),o(" position",function(){Xft(e)}),o(" positionSelfEdges",function(){S1t(e)}),o(" removeBorderNodes",function(){x1t(e)}),o(" normalize.undo",function(){fJ.undo(e)}),o(" fixupEdgeLabelCoords",function(){C1t(e)}),o(" undoCoordinateSystem",function(){gJ.undo(e)}),o(" translateGraph",function(){g1t(e)}),o(" assignNodeIntersects",function(){_1t(e)}),o(" reversePoints",function(){v1t(e)}),o(" acyclic.undo",function(){uJ.undo(e)})}function i1t(e,o){fo.forEach(e.nodes(),function(t){var n=e.node(t),i=o.node(t);n&&(n.x=i.x,n.y=i.y,o.children(t).length&&(n.width=i.width,n.height=i.height))}),fo.forEach(e.edges(),function(t){var n=e.edge(t),i=o.edge(t);n.points=i.points,fo.has(i,"x")&&(n.x=i.x,n.y=i.y)}),e.graph().width=o.graph().width,e.graph().height=o.graph().height}var n1t=["nodesep","edgesep","ranksep","marginx","marginy"],o1t={ranksep:50,edgesep:20,nodesep:50,rankdir:"tb"},a1t=["acyclicer","ranker","rankdir","align"],r1t=["width","height"],l1t={width:0,height:0},s1t=["minlen","weight","width","height","labeloffset"],c1t={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:"r"},p1t=["labelpos"];function m1t(e){var o=new Zft({multigraph:!0,compound:!0}),t=tI(e.graph());return o.setGraph(fo.merge({},o1t,eI(t,n1t),fo.pick(t,a1t))),fo.forEach(e.nodes(),function(n){var i=tI(e.node(n));o.setNode(n,fo.defaults(eI(i,r1t),l1t)),o.setParent(n,e.parent(n))}),fo.forEach(e.edges(),function(n){var i=tI(e.edge(n));o.setEdge(n,fo.merge({},c1t,eI(i,s1t),fo.pick(i,p1t)))}),o}function d1t(e){var o=e.graph();o.ranksep/=2,fo.forEach(e.edges(),function(t){var n=e.edge(t);n.minlen*=2,n.labelpos.toLowerCase()!=="c"&&(o.rankdir==="TB"||o.rankdir==="BT"?n.width+=n.labeloffset:n.height+=n.labeloffset)})}function u1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o);if(t.width&&t.height){var n=e.node(o.v),i=e.node(o.w),s={rank:(i.rank-n.rank)/2+n.rank,e:o};am.addDummyNode(e,"edge-proxy",s,"_ep")}})}function f1t(e){var o=0;fo.forEach(e.nodes(),function(t){var n=e.node(t);n.borderTop&&(n.minRank=e.node(n.borderTop).rank,n.maxRank=e.node(n.borderBottom).rank,o=fo.max(o,n.maxRank))}),e.graph().maxRank=o}function h1t(e){fo.forEach(e.nodes(),function(o){var t=e.node(o);t.dummy==="edge-proxy"&&(e.edge(t.e).labelRank=t.rank,e.removeNode(o))})}function g1t(e){var o=Number.POSITIVE_INFINITY,t=0,n=Number.POSITIVE_INFINITY,i=0,s=e.graph(),d=s.marginx||0,u=s.marginy||0;function f(_){var C=_.x,x=_.y,y=_.width,P=_.height;o=Math.min(o,C-y/2),t=Math.max(t,C+y/2),n=Math.min(n,x-P/2),i=Math.max(i,x+P/2)}fo.forEach(e.nodes(),function(_){f(e.node(_))}),fo.forEach(e.edges(),function(_){var C=e.edge(_);fo.has(C,"x")&&f(C)}),o-=d,n-=u,fo.forEach(e.nodes(),function(_){var C=e.node(_);C.x-=o,C.y-=n}),fo.forEach(e.edges(),function(_){var C=e.edge(_);fo.forEach(C.points,function(x){x.x-=o,x.y-=n}),fo.has(C,"x")&&(C.x-=o),fo.has(C,"y")&&(C.y-=n)}),s.width=t-o+d,s.height=i-n+u}function _1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o),n=e.node(o.v),i=e.node(o.w),s,d;t.points?(s=t.points[0],d=t.points[t.points.length-1]):(t.points=[],s=i,d=n),t.points.unshift(am.intersectRect(n,s)),t.points.push(am.intersectRect(i,d))})}function C1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o);if(fo.has(t,"x"))switch((t.labelpos==="l"||t.labelpos==="r")&&(t.width-=t.labeloffset),t.labelpos){case"l":t.x-=t.width/2+t.labeloffset;break;case"r":t.x+=t.width/2+t.labeloffset;break}})}function v1t(e){fo.forEach(e.edges(),function(o){var t=e.edge(o);t.reversed&&t.points.reverse()})}function x1t(e){fo.forEach(e.nodes(),function(o){if(e.children(o).length){var t=e.node(o),n=e.node(t.borderTop),i=e.node(t.borderBottom),s=e.node(fo.last(t.borderLeft)),d=e.node(fo.last(t.borderRight));t.width=Math.abs(d.x-s.x),t.height=Math.abs(i.y-n.y),t.x=s.x+t.width/2,t.y=n.y+t.height/2}}),fo.forEach(e.nodes(),function(o){e.node(o).dummy==="border"&&e.removeNode(o)})}function b1t(e){fo.forEach(e.edges(),function(o){if(o.v===o.w){var t=e.node(o.v);t.selfEdges||(t.selfEdges=[]),t.selfEdges.push({e:o,label:e.edge(o)}),e.removeEdge(o)}})}function y1t(e){var o=am.buildLayerMatrix(e);fo.forEach(o,function(t){var n=0;fo.forEach(t,function(i,s){var d=e.node(i);d.order=s+n,fo.forEach(d.selfEdges,function(u){am.addDummyNode(e,"selfedge",{width:u.label.width,height:u.label.height,rank:d.rank,order:s+ ++n,e:u.e,label:u.label},"_se")}),delete d.selfEdges})})}function S1t(e){fo.forEach(e.nodes(),function(o){var t=e.node(o);if(t.dummy==="selfedge"){var n=e.node(t.e.v),i=n.x+n.width/2,s=n.y,d=t.x-i,u=n.height/2;e.setEdge(t.e,t.label),e.removeNode(o),t.label.points=[{x:i+2*d/3,y:s-u},{x:i+5*d/6,y:s-u},{x:i+d,y:s},{x:i+5*d/6,y:s+u},{x:i+2*d/3,y:s+u}],t.label.x=t.x,t.label.y=t.y}})}function eI(e,o){return fo.mapValues(fo.pick(e,o),Number)}function tI(e){var o={};return fo.forEach(e,function(t,n){o[n.toLowerCase()]=t}),o}});var xJ=pt((BPn,vJ)=>{var cy=Sa(),w1t=rl(),P1t=hs().Graph;vJ.exports={debugOrdering:T1t};function T1t(e){var o=w1t.buildLayerMatrix(e),t=new P1t({compound:!0,multigraph:!0}).setGraph({});return cy.forEach(e.nodes(),function(n){t.setNode(n,{label:n}),t.setParent(n,"layer"+e.node(n).rank)}),cy.forEach(e.edges(),function(n){t.setEdge(n.v,n.w,{},n.name)}),cy.forEach(o,function(n,i){var s="layer"+i;t.setNode(s,{rank:"same"}),cy.reduce(n,function(d,u){return t.setEdge(d,u,{style:"invis"}),u})}),t}});var yJ=pt((RPn,bJ)=>{bJ.exports="0.8.5"});var wJ=pt((NPn,SJ)=>{SJ.exports={graphlib:hs(),layout:CJ(),debug:xJ(),util:{time:rl().time,notime:rl().notime},version:yJ()}});var aI=pt(rm=>{"use strict";Object.defineProperty(rm,"__esModule",{value:!0});var oI=(function(){function e(o,t,n){this.source=o,this.target=t,this.type=n}return e})();rm.PowerEdge=oI;var KJ=(function(){function e(o,t,n,i){var s=this;if(this.linkAccessor=n,this.modules=new Array(o),this.roots=[],i)this.initModulesFromGroup(i);else{this.roots.push(new bu);for(var d=0;d=this.R))return this.merge(n.a,n.b,o),!0}},e.prototype.nEdges=function(o,t){var n=o.incoming.intersection(t.incoming),i=o.outgoing.intersection(t.outgoing);return this.R-n.count()-i.count()},e.prototype.getGroupHierarchy=function(o){var t=this,n=[],i={};XJ(this.roots[0],i,n);var s=this.allEdges();return s.forEach(function(d){var u=t.modules[d.source],f=t.modules[d.target];o.push(new oI(typeof u.gid>"u"?d.source:n[u.gid],typeof f.gid>"u"?d.target:n[f.gid],d.type))}),n},e.prototype.allEdges=function(){var o=[];return e.getEdges(this.roots[0],o),o},e.getEdges=function(o,t){o.forAll(function(n){n.getEdges(t),e.getEdges(n.children,t)})},e})();rm.Configuration=KJ;function XJ(e,o,t){e.forAll(function(n){if(n.isLeaf())o.leaves||(o.leaves=[]),o.leaves.push(n.id);else{var i=o;if(n.gid=t.length,!n.isIsland()||n.isPredefined()){if(i={id:n.gid},n.isPredefined())for(var s in n.definition)i[s]=n.definition[s];o.groups||(o.groups=[]),o.groups.push(n.gid),t.push(i)}XJ(n.children,i,t)}})}var Z1=(function(){function e(o,t,n,i,s){t===void 0&&(t=new eh),n===void 0&&(n=new eh),i===void 0&&(i=new bu),this.id=o,this.outgoing=t,this.incoming=n,this.children=i,this.definition=s}return e.prototype.getEdges=function(o){var t=this;this.outgoing.forAll(function(n,i){n.forAll(function(s){o.push(new oI(t.id,s.id,i))})})},e.prototype.isLeaf=function(){return this.children.count()===0},e.prototype.isIsland=function(){return this.outgoing.count()===0&&this.incoming.count()===0},e.prototype.isPredefined=function(){return typeof this.definition<"u"},e})();rm.Module=Z1;function A1t(e,o){var t={};for(var n in e)n in o&&(t[n]=e[n]);return t}var bu=(function(){function e(){this.table={}}return e.prototype.count=function(){return Object.keys(this.table).length},e.prototype.intersection=function(o){var t=new e;return t.table=A1t(this.table,o.table),t},e.prototype.intersectionCount=function(o){return this.intersection(o).count()},e.prototype.contains=function(o){return o in this.table},e.prototype.add=function(o){this.table[o.id]=o},e.prototype.remove=function(o){delete this.table[o.id]},e.prototype.forAll=function(o){for(var t in this.table)o(this.table[t])},e.prototype.modules=function(){var o=[];return this.forAll(function(t){t.isPredefined()||o.push(t)}),o},e})();rm.ModuleSet=bu;var eh=(function(){function e(){this.sets={},this.n=0}return e.prototype.count=function(){return this.n},e.prototype.contains=function(o){var t=!1;return this.forAllModules(function(n){!t&&n.id==o&&(t=!0)}),t},e.prototype.add=function(o,t){var n=o in this.sets?this.sets[o]:this.sets[o]=new bu;n.add(t),++this.n},e.prototype.remove=function(o,t){var n=this.sets[o];n.remove(t),n.count()===0&&delete this.sets[o],--this.n},e.prototype.forAll=function(o){for(var t in this.sets)o(this.sets[t],Number(t))},e.prototype.forAllModules=function(o){this.forAll(function(t,n){return t.forAll(o)})},e.prototype.intersection=function(o){var t=new e;return this.forAll(function(n,i){if(i in o.sets){var s=n.intersection(o.sets[i]),d=s.count();d>0&&(t.sets[i]=s,t.n+=d)}}),t},e})();rm.LinkSets=eh;function F1t(e,o,t,n){for(var i=e.length,s=new KJ(i,o,t,n);s.greedyMerge(););var d=[],u=s.getGroupHierarchy(d);return d.forEach(function(f){var _=function(C){var x=f[C];typeof x=="number"&&(f[C]=e[x])};_("source"),_("target")}),{groups:u,powerEdges:d}}rm.getGroups=F1t});var fy=pt(yu=>{"use strict";Object.defineProperty(yu,"__esModule",{value:!0});function ZJ(e,o){var t={};for(var n in e)t[n]={};for(var n in o)t[n]={};return Object.keys(t).length}function eK(e,o){var t=0;for(var n in e)typeof o[n]<"u"&&++t;return t}function k1t(e,o){var t={},n=function(i,s){typeof t[i]>"u"&&(t[i]={}),t[i][s]={}};return e.forEach(function(i){var s=o.getSourceIndex(i),d=o.getTargetIndex(i);n(s,d),n(d,s)}),t}function tK(e,o,t,n){var i=k1t(e,n);e.forEach(function(s){var d=i[n.getSourceIndex(s)],u=i[n.getTargetIndex(s)];n.setLength(s,1+o*t(d,u))})}function B1t(e,o,t){t===void 0&&(t=1),tK(e,t,function(n,i){return Math.sqrt(ZJ(n,i)-eK(n,i))},o)}yu.symmetricDiffLinkLengths=B1t;function R1t(e,o,t){t===void 0&&(t=1),tK(e,t,function(n,i){return Math.min(Object.keys(n).length,Object.keys(i).length)<1.1?0:eK(n,i)/ZJ(n,i)},o)}yu.jaccardLinkLengths=R1t;function N1t(e,o,t,n){var i=iK(e,o,n),s={};i.forEach(function(u,f){return u.forEach(function(_){return s[_]=f})});var d=[];return o.forEach(function(u){var f=n.getSourceIndex(u),_=n.getTargetIndex(u),C=s[f],x=s[_];C!==x&&d.push({axis:t,left:f,right:_,gap:n.getMinSeparation(u)})}),d}yu.generateDirectedEdgeConstraints=N1t;function iK(e,o,t){var n=[],i=0,s=[],d=[];function u(k){k.index=k.lowlink=i++,s.push(k),k.onStack=!0;for(var z=0,U=k.out;z"u"?(u(J),k.lowlink=Math.min(k.lowlink,J.lowlink)):J.onStack&&(k.lowlink=Math.min(k.lowlink,J.index))}if(k.lowlink===k.index){for(var re=[];s.length&&(J=s.pop(),J.onStack=!1,re.push(J),J!==k););d.push(re.map(function(ee){return ee.id}))}}for(var f=0;f"u"&&u(D)}return d}yu.stronglyConnectedComponents=iK});var hy=pt(th=>{"use strict";Object.defineProperty(th,"__esModule",{value:!0});var nK=(function(){function e(){this.locks={}}return e.prototype.add=function(o,t){this.locks[o]=t},e.prototype.clear=function(){this.locks={}},e.prototype.isEmpty=function(){for(var o in this.locks)return!1;return!0},e.prototype.apply=function(o){for(var t in this.locks)o(Number(t),this.locks[t])},e})();th.Locks=nK;var L1t=(function(){function e(o,t,n){n===void 0&&(n=null),this.D=t,this.G=n,this.threshold=1e-4,this.numGridSnapNodes=0,this.snapGridSize=100,this.snapStrength=1e3,this.scaleSnapByMaxH=!1,this.random=new oK,this.project=null,this.x=o,this.k=o.length;var i=this.n=o[0].length;this.H=new Array(this.k),this.g=new Array(this.k),this.Hd=new Array(this.k),this.a=new Array(this.k),this.b=new Array(this.k),this.c=new Array(this.k),this.d=new Array(this.k),this.e=new Array(this.k),this.ia=new Array(this.k),this.ib=new Array(this.k),this.xtmp=new Array(this.k),this.locks=new nK,this.minD=Number.MAX_VALUE;for(var s=i,d;s--;)for(d=i;--d>s;){var u=t[s][d];u>0&&u1e-9)break;var S=this.offsetDir();for(i=0;i1&&M>D||!isFinite(D)){for(i=0;i1&&(k=1);var z=D*D,U=2*k*(M-D)/(z*M),J=M*M*M,re=2*-k/(z*J);for(isFinite(U)||console.log(U),i=0;i0?j-(O+1)*ae:j-(O-1)*ae;-ee0;)for(var s=t;s-- >0;)n(i,s)},e.prototype.matrixApply=function(o){e.mApply(this.k,this.n,o)},e.prototype.computeNextPosition=function(o,t){var n=this;this.computeDerivatives(o);var i=this.computeStepSize(this.g);if(this.stepAndProject(o,t,this.g,i),this.project){this.matrixApply(function(d,u){return n.e[d][u]=o[d][u]-t[d][u]});var s=this.computeStepSize(this.e);s=Math.max(.2,Math.min(s,1)),this.stepAndProject(o,t,this.e,s)}},e.prototype.run=function(o){for(var t=Number.MAX_VALUE,n=!1;!n&&o-- >0;){var i=this.rungeKutta();n=Math.abs(t/i-1)>16)/this.range},e.prototype.getNextBetween=function(o,t){return o+this.getNext()*(t-o)},e})();th.PseudoRandom=oK});var Cy=pt(op=>{"use strict";Object.defineProperty(op,"__esModule",{value:!0});var aK=(function(){function e(o){this.scale=o,this.AB=0,this.AD=0,this.A2=0}return e.prototype.addVariable=function(o){var t=this.scale/o.scale,n=o.offset/o.scale,i=o.weight;this.AB+=i*t*n,this.AD+=i*t*o.desiredPosition,this.A2+=i*t*t},e.prototype.getPosn=function(){return(this.AD-this.AB)/this.A2},e})();op.PositionStats=aK;var gy=(function(){function e(o,t,n,i){i===void 0&&(i=!1),this.left=o,this.right=t,this.gap=n,this.equality=i,this.active=!1,this.unsatisfiable=!1,this.left=o,this.right=t,this.gap=n,this.equality=i}return e.prototype.slack=function(){return this.unsatisfiable?Number.MAX_VALUE:this.right.scale*this.right.position()-this.gap-this.left.scale*this.left.position()},e})();op.Constraint=gy;var _y=(function(){function e(o,t,n){t===void 0&&(t=1),n===void 0&&(n=1),this.desiredPosition=o,this.weight=t,this.scale=n,this.offset=0}return e.prototype.dfdv=function(){return 2*this.weight*(this.position()-this.desiredPosition)},e.prototype.position=function(){return(this.block.ps.scale*this.block.posn+this.offset)/this.scale},e.prototype.visitNeighbours=function(o,t){var n=function(i,s){return i.active&&o!==s&&t(i,s)};this.cOut.forEach(function(i){return n(i,i.right)}),this.cIn.forEach(function(i){return n(i,i.left)})},e})();op.Variable=_y;var rI=(function(){function e(o){this.vars=[],o.offset=0,this.ps=new aK(o.scale),this.addVariable(o)}return e.prototype.addVariable=function(o){o.block=this,this.vars.push(o),this.ps.addVariable(o),this.posn=this.ps.getPosn()},e.prototype.updateWeightedPosition=function(){this.ps.AB=this.ps.AD=this.ps.A2=0;for(var o=0,t=this.vars.length;o=0?this.inactive.push(o):this.bs.merge(o)}}},e.prototype.solve=function(){this.satisfy();for(var o=Number.MAX_VALUE,t=this.bs.cost();Math.abs(o-t)>1e-4;)this.satisfy(),o=t,t=this.bs.cost();return t},e.LAGRANGIAN_TOLERANCE=-1e-4,e.ZERO_UPPERBOUND=-1e-10,e})();op.Solver=sI;function V1t(e,o,t){for(var n=e.map(function(D){return new _y(D.desiredCenter)}),i=[],s=e.length,d=0;d{"use strict";var q1t=Yd&&Yd.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(Yd,"__esModule",{value:!0});var rK=(function(){function e(){this.findIter=function(o){for(var t=this._root,n=this.iterator();t!==null;){var i=this._comparator(o,t.data);if(i===0)return n._cursor=t,n;n._ancestors.push(t),t=t.get_child(i>0)}return null}}return e.prototype.clear=function(){this._root=null,this.size=0},e.prototype.find=function(o){for(var t=this._root;t!==null;){var n=this._comparator(o,t.data);if(n===0)return t.data;t=t.get_child(n>0)}return null},e.prototype.lowerBound=function(o){return this._bound(o,this._comparator)},e.prototype.upperBound=function(o){var t=this._comparator;function n(i,s){return t(s,i)}return this._bound(o,n)},e.prototype.min=function(){var o=this._root;if(o===null)return null;for(;o.left!==null;)o=o.left;return o.data},e.prototype.max=function(){var o=this._root;if(o===null)return null;for(;o.right!==null;)o=o.right;return o.data},e.prototype.iterator=function(){return new lK(this)},e.prototype.each=function(o){for(var t=this.iterator(),n;(n=t.next())!==null;)o(n)},e.prototype.reach=function(o){for(var t=this.iterator(),n;(n=t.prev())!==null;)o(n)},e.prototype._bound=function(o,t){for(var n=this._root,i=this.iterator();n!==null;){var s=this._comparator(o,n.data);if(s===0)return i._cursor=n,i;i._ancestors.push(n),n=n.get_child(s>0)}for(var d=i._ancestors.length-1;d>=0;--d)if(n=i._ancestors[d],t(o,n.data)>0)return i._cursor=n,i._ancestors.length=d,i;return i._ancestors.length=0,i},e})();Yd.TreeBase=rK;var lK=(function(){function e(o){this._tree=o,this._ancestors=[],this._cursor=null}return e.prototype.data=function(){return this._cursor!==null?this._cursor.data:null},e.prototype.next=function(){if(this._cursor===null){var o=this._tree._root;o!==null&&this._minNode(o)}else if(this._cursor.right===null){var t;do if(t=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.right===t)}else this._ancestors.push(this._cursor),this._minNode(this._cursor.right);return this._cursor!==null?this._cursor.data:null},e.prototype.prev=function(){if(this._cursor===null){var o=this._tree._root;o!==null&&this._maxNode(o)}else if(this._cursor.left===null){var t;do if(t=this._cursor,this._ancestors.length)this._cursor=this._ancestors.pop();else{this._cursor=null;break}while(this._cursor.left===t)}else this._ancestors.push(this._cursor),this._maxNode(this._cursor.left);return this._cursor!==null?this._cursor.data:null},e.prototype._minNode=function(o){for(;o.left!==null;)this._ancestors.push(o),o=o.left;this._cursor=o},e.prototype._maxNode=function(o){for(;o.right!==null;)this._ancestors.push(o),o=o.right;this._cursor=o},e})();Yd.Iterator=lK;var vy=(function(){function e(o){this.data=o,this.left=null,this.right=null,this.red=!0}return e.prototype.get_child=function(o){return o?this.right:this.left},e.prototype.set_child=function(o,t){o?this.right=t:this.left=t},e})(),z1t=(function(e){q1t(o,e);function o(t){var n=e.call(this)||this;return n._root=null,n._comparator=t,n.size=0,n}return o.prototype.insert=function(t){var n=!1;if(this._root===null)this._root=new vy(t),n=!0,this.size++;else{var i=new vy(void 0),s=!1,d=!1,u=null,f=i,_=null,C=this._root;for(f.right=this._root;;){if(C===null?(C=new vy(t),_.set_child(s,C),n=!0,this.size++):o.is_red(C.left)&&o.is_red(C.right)&&(C.red=!0,C.left.red=!1,C.right.red=!1),o.is_red(C)&&o.is_red(_)){var x=f.right===u;C===_.get_child(d)?f.set_child(x,o.single_rotate(u,!d)):f.set_child(x,o.double_rotate(u,!d))}var y=this._comparator(C.data,t);if(y===0)break;d=s,s=y<0,u!==null&&(f=u),u=_,_=C,C=C.get_child(s)}this._root=i.right}return this._root.red=!1,n},o.prototype.remove=function(t){if(this._root===null)return!1;var n=new vy(void 0),i=n;i.right=this._root;for(var s=null,d=null,u=null,f=!0;i.get_child(f)!==null;){var _=f;d=s,s=i,i=i.get_child(f);var C=this._comparator(t,i.data);if(f=C>0,C===0&&(u=i),!o.is_red(i)&&!o.is_red(i.get_child(f))){if(o.is_red(i.get_child(!f))){var x=o.single_rotate(i,f);s.set_child(_,x),s=x}else if(!o.is_red(i.get_child(!f))){var y=s.get_child(!_);if(y!==null)if(!o.is_red(y.get_child(!_))&&!o.is_red(y.get_child(_)))s.red=!1,y.red=!0,i.red=!0;else{var P=d.right===s;o.is_red(y.get_child(_))?d.set_child(P,o.double_rotate(s,_)):o.is_red(y.get_child(!_))&&d.set_child(P,o.single_rotate(s,_));var S=d.get_child(P);S.red=!0,i.red=!0,S.left.red=!1,S.right.red=!1}}}}return u!==null&&(u.data=i.data,s.set_child(s.right===i,i.get_child(i.left===null)),this.size--),this._root=n.right,this._root!==null&&(this._root.red=!1),u!==null},o.is_red=function(t){return t!==null&&t.red},o.single_rotate=function(t,n){var i=t.get_child(!n);return t.set_child(!n,i.get_child(n)),i.set_child(n,t),t.red=!0,i.red=!1,i},o.double_rotate=function(t,n){return t.set_child(!n,o.single_rotate(t.get_child(!n),!n)),o.single_rotate(t,n)},o})(rK);Yd.RBTree=z1t});var Su=pt(sl=>{"use strict";var H1t=sl&&sl.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(sl,"__esModule",{value:!0});var ap=Cy(),G1t=cI();function ih(e){return e.bounds=typeof e.leaves<"u"?e.leaves.reduce(function(o,t){return t.bounds.union(o)},lm.empty()):lm.empty(),typeof e.groups<"u"&&(e.bounds=e.groups.reduce(function(o,t){return ih(t).union(o)},e.bounds)),e.bounds=e.bounds.inflate(e.padding),e.bounds}sl.computeGroupBounds=ih;var lm=(function(){function e(o,t,n,i){this.x=o,this.X=t,this.y=n,this.Y=i}return e.empty=function(){return new e(Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY,Number.POSITIVE_INFINITY,Number.NEGATIVE_INFINITY)},e.prototype.cx=function(){return(this.x+this.X)/2},e.prototype.cy=function(){return(this.y+this.Y)/2},e.prototype.overlapX=function(o){var t=this.cx(),n=o.cx();return t<=n&&o.x0?n[0]:null},e.prototype.vertices=function(){return[{x:this.x,y:this.y},{x:this.X,y:this.y},{x:this.X,y:this.Y},{x:this.x,y:this.Y}]},e.lineIntersection=function(o,t,n,i,s,d,u,f){var _=n-o,C=u-s,x=i-t,y=f-d,P=y*_-C*x;if(P==0)return null;var S=o-s,M=t-d,D=C*M-y*S,k=D/P,z=_*M-x*S,U=z/P;return k>=0&&k<=1&&U>=0&&U<=1?{x:o+k*_,y:t+k*x}:null},e.prototype.inflate=function(o){return new e(this.x-o,this.X+o,this.y-o,this.Y+o)},e})();sl.Rectangle=lm;function j1t(e,o,t){var n=e.rayIntersection(o.cx(),o.cy())||{x:e.cx(),y:e.cy()},i=o.rayIntersection(e.cx(),e.cy())||{x:o.cx(),y:o.cy()},s=i.x-n.x,d=i.y-n.y,u=Math.sqrt(s*s+d*d),f=u-t;return{sourceIntersection:n,targetIntersection:i,arrowStart:{x:n.x+f*s/u,y:n.y+f*d/u}}}sl.makeEdgeBetween=j1t;function $1t(e,o,t){var n=o.rayIntersection(e.x,e.y);n||(n={x:o.cx(),y:o.cy()});var i=n.x-e.x,s=n.y-e.y,d=Math.sqrt(i*i+s*s);return{x:n.x-t*i/d,y:n.y-t*s/d}}sl.makeEdgeTo=$1t;var U1t=(function(){function e(o,t,n){this.v=o,this.r=t,this.pos=n,this.prev=pI(),this.next=pI()}return e})(),sK=(function(){function e(o,t,n){this.isOpen=o,this.v=t,this.pos=n}return e})();function W1t(e,o){return e.pos>o.pos?1:e.pos=s);var u=new Array(d);for(i=0;i0&&(e[n].insert(s),s[i].insert(e))};t("next","prev"),t("prev","next")}function mK(e,o){return dI(e,o,cK,1e-6)}sl.generateXConstraints=mK;function dK(e,o){return dI(e,o,pK,1e-6)}sl.generateYConstraints=dK;function uK(e){return mI(e,cK,1e-6)}sl.generateXGroupConstraints=uK;function fK(e){return mI(e,pK,1e-6)}sl.generateYGroupConstraints=fK;function J1t(e){var o=e.map(function(i){return new ap.Variable(i.cx())}),t=mK(e,o),n=new ap.Solver(o,t);n.solve(),o.forEach(function(i,s){return e[s].setXCentre(i.position())}),o=e.map(function(i){return new ap.Variable(i.cy())}),t=dK(e,o),n=new ap.Solver(o,t),n.solve(),o.forEach(function(i,s){return e[s].setYCentre(i.position())})}sl.removeOverlaps=J1t;var xy=(function(e){H1t(o,e);function o(t,n){var i=e.call(this,0,n)||this;return i.index=t,i}return o})(ap.Variable);sl.IndexedVariable=xy;var K1t=(function(){function e(o,t,n,i,s){var d=this;if(n===void 0&&(n=null),i===void 0&&(i=null),s===void 0&&(s=!1),this.nodes=o,this.groups=t,this.rootGroup=n,this.avoidOverlaps=s,this.variables=o.map(function(f,_){return f.variable=new xy(_,1)}),i&&this.createConstraints(i),s&&n&&typeof n.groups<"u"){o.forEach(function(f){if(!f.width||!f.height){f.bounds=new lm(f.x,f.x,f.y,f.y);return}var _=f.width/2,C=f.height/2;f.bounds=new lm(f.x-_,f.x+_,f.y-C,f.y+C)}),ih(n);var u=o.length;t.forEach(function(f){d.variables[u]=f.minVar=new xy(u++,typeof f.stiffness<"u"?f.stiffness:.01),d.variables[u]=f.maxVar=new xy(u++,typeof f.stiffness<"u"?f.stiffness:.01)})}}return e.prototype.createSeparation=function(o){return new ap.Constraint(this.nodes[o.left].variable,this.nodes[o.right].variable,o.gap,typeof o.equality<"u"?o.equality:!1)},e.prototype.makeFeasible=function(o){var t=this;if(this.avoidOverlaps){var n="x",i="width";o.axis==="x"&&(n="y",i="height");var s=o.offsets.map(function(u){return t.nodes[u.node]}).sort(function(u,f){return u[n]-f[n]}),d=null;s.forEach(function(u){if(d){var f=d[n]+d[i];f>u[n]&&(u[n]=f)}d=u})}},e.prototype.createAlignment=function(o){var t=this,n=this.nodes[o.offsets[0].node].variable;this.makeFeasible(o);var i=o.axis==="x"?this.xConstraints:this.yConstraints;o.offsets.slice(1).forEach(function(s){var d=t.nodes[s.node].variable;i.push(new ap.Constraint(n,d,s.offset,!0))})},e.prototype.createConstraints=function(o){var t=this,n=function(i){return typeof i.type>"u"||i.type==="separation"};this.xConstraints=o.filter(function(i){return i.axis==="x"&&n(i)}).map(function(i){return t.createSeparation(i)}),this.yConstraints=o.filter(function(i){return i.axis==="y"&&n(i)}).map(function(i){return t.createSeparation(i)}),o.filter(function(i){return i.type==="alignment"}).forEach(function(i){return t.createAlignment(i)})},e.prototype.setupVariablesAndBounds=function(o,t,n,i){this.nodes.forEach(function(s,d){s.fixed?(s.variable.weight=s.fixedWeight?s.fixedWeight:1e3,n[d]=i(s)):s.variable.weight=1;var u=(s.width||0)/2,f=(s.height||0)/2,_=o[d],C=t[d];s.bounds=new lm(_-u,_+u,C-f,C+f)})},e.prototype.xProject=function(o,t,n){!this.rootGroup&&!(this.avoidOverlaps||this.xConstraints)||this.project(o,t,o,n,function(i){return i.px},this.xConstraints,uK,function(i){return i.bounds.setXCentre(n[i.variable.index]=i.variable.position())},function(i){var s=n[i.minVar.index]=i.minVar.position(),d=n[i.maxVar.index]=i.maxVar.position(),u=i.padding/2;i.bounds.x=s-u,i.bounds.X=d+u})},e.prototype.yProject=function(o,t,n){!this.rootGroup&&!this.yConstraints||this.project(o,t,t,n,function(i){return i.py},this.yConstraints,fK,function(i){return i.bounds.setYCentre(n[i.variable.index]=i.variable.position())},function(i){var s=n[i.minVar.index]=i.minVar.position(),d=n[i.maxVar.index]=i.maxVar.position(),u=i.padding/2;i.bounds.y=s-u,i.bounds.Y=d+u})},e.prototype.projectFunctions=function(){var o=this;return[function(t,n,i){return o.xProject(t,n,i)},function(t,n,i){return o.yProject(t,n,i)}]},e.prototype.project=function(o,t,n,i,s,d,u,f,_){this.setupVariablesAndBounds(o,t,i,s),this.rootGroup&&this.avoidOverlaps&&(ih(this.rootGroup),d=d.concat(u(this.rootGroup))),this.solve(this.variables,d,n,i),this.nodes.forEach(f),this.rootGroup&&this.avoidOverlaps&&(this.groups.forEach(_),ih(this.rootGroup))},e.prototype.solve=function(o,t,n,i){var s=new ap.Solver(o,t);s.setStartingPositions(n),s.setDesiredPositions(i),s.solve()},e})();sl.Projection=K1t});var uI=pt(by=>{"use strict";Object.defineProperty(by,"__esModule",{value:!0});var hK=(function(){function e(o){this.elem=o,this.subheaps=[]}return e.prototype.toString=function(o){for(var t="",n=!1,i=0;i{"use strict";Object.defineProperty(fI,"__esModule",{value:!0});var gK=uI(),_K=(function(){function e(o,t){this.id=o,this.distance=t}return e})(),Z1t=(function(){function e(o){this.id=o,this.neighbours=[]}return e})(),CK=(function(){function e(o,t,n){this.node=o,this.prev=t,this.d=n}return e})(),eht=(function(){function e(o,t,n,i,s){this.n=o,this.es=t,this.neighbours=new Array(this.n);for(var d=this.n;d--;)this.neighbours[d]=new Z1t(d);for(d=this.es.length;d--;){var u=this.es[d],f=n(u),_=i(u),C=s(u);this.neighbours[f].neighbours.push(new _K(_,C)),this.neighbours[_].neighbours.push(new _K(f,C))}}return e.prototype.DistanceMatrix=function(){for(var o=new Array(this.n),t=0;tx&&(_.d=x,_.prev=u,n.reduceKey(_.q,_,function(P,S){return P.q=S}))}}return s},e})();fI.Calculator=eht});var CI=pt(ka=>{"use strict";var xK=ka&&ka.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(ka,"__esModule",{value:!0});var tht=Su(),gI=(function(){function e(){}return e})();ka.Point=gI;var _I=(function(){function e(o,t,n,i){this.x1=o,this.y1=t,this.x2=n,this.y2=i}return e})();ka.LineSegment=_I;var iht=(function(e){xK(o,e);function o(){return e!==null&&e.apply(this,arguments)||this}return o})(gI);ka.PolyPoint=iht;function zl(e,o,t){return(o.x-e.x)*(t.y-e.y)-(t.x-e.x)*(o.y-e.y)}ka.isLeft=zl;function Hs(e,o,t){return zl(e,o,t)>0}function gs(e,o,t){return zl(e,o,t)<0}function nht(e){var o=e.slice(0).sort(function(y,P){return y.x!==P.x?P.x-y.x:P.y-y.y}),t=e.length,n,i=0,s=o[0].x;for(n=1;n=0&&o[n].x===C;n--);for(f=n+1,n=d;++n<=f;)if(!(zl(o[i],o[f],o[n])>=0&&n1&&!(zl(u[u.length-2],u[u.length-1],o[n])>0);)u.length-=1;n!=i&&u.push(o[n])}_!=f&&u.push(o[_]);var x=u.length;for(n=f;--n>=d;)if(!(zl(o[_],o[d],o[n])>=0&&n>d)){for(;u.length>x&&!(zl(u[u.length-2],u[u.length-1],o[n])>0);)u.length-=1;n!=i&&u.push(o[n])}}return u}ka.ConvexHull=nht;function oht(e,o,t){o.slice(0).sort(function(n,i){return Math.atan2(n.y-e.y,n.x-e.x)-Math.atan2(i.y-e.y,i.x-e.x)}).forEach(t)}ka.clockwiseRadialSweep=oht;function aht(e,o){var t=o.slice(0);return t.push(o[0]),{rtan:Sy(e,t),ltan:wy(e,t)}}function Sy(e,o){var t=o.length-1,n,i,s,d,u;if(gs(e,o[1],o[0])&&!Hs(e,o[t-1],o[0]))return 0;for(n=0,i=t;;){if(i-n===1)return Hs(e,o[n],o[i])?n:i;if(s=Math.floor((n+i)/2),u=gs(e,o[s+1],o[s]),u&&!Hs(e,o[s-1],o[s]))return s;d=Hs(e,o[n+1],o[n]),d?u||Hs(e,o[n],o[s])?i=s:n=s:u&&gs(e,o[n],o[s])?i=s:n=s}}function wy(e,o){var t=o.length-1,n,i,s,d,u;if(Hs(e,o[t-1],o[0])&&!gs(e,o[1],o[0]))return 0;for(n=0,i=t;;){if(i-n===1)return gs(e,o[n],o[i])?n:i;if(s=Math.floor((n+i)/2),u=gs(e,o[s+1],o[s]),Hs(e,o[s-1],o[s])&&!u)return s;d=gs(e,o[n+1],o[n]),d?u?gs(e,o[n],o[s])?i=s:n=s:i=s:u?n=s:Hs(e,o[n],o[s])?i=s:n=s}}function Py(e,o,t,n,i,s){var d,u;d=t(o[0],e),u=n(e[d],o);for(var f=!1;!f;){for(f=!0;d===e.length-1&&(d=0),!i(o[u],e[d],e[d+1]);)++d;for(;u===0&&(u=o.length-1),!s(e[d],o[u],o[u-1]);)--u,f=!1}return{t1:d,t2:u}}ka.tangent_PolyPolyC=Py;function rht(e,o){var t=bK(o,e);return{t1:t.t2,t2:t.t1}}ka.LRtangent_PolyPolyC=rht;function bK(e,o){return Py(e,o,Sy,wy,Hs,gs)}ka.RLtangent_PolyPolyC=bK;function lht(e,o){return Py(e,o,wy,wy,gs,gs)}ka.LLtangent_PolyPolyC=lht;function sht(e,o){return Py(e,o,Sy,Sy,Hs,Hs)}ka.RRtangent_PolyPolyC=sht;var oh=(function(){function e(o,t){this.t1=o,this.t2=t}return e})();ka.BiTangent=oh;var yK=(function(){function e(){}return e})();ka.BiTangents=yK;var cht=(function(e){xK(o,e);function o(){return e!==null&&e.apply(this,arguments)||this}return o})(gI);ka.TVGPoint=cht;var hI=(function(){function e(o,t,n,i){this.id=o,this.polyid=t,this.polyvertid=n,this.p=i,i.vv=this}return e})();ka.VisibilityVertex=hI;var yy=(function(){function e(o,t){this.source=o,this.target=t}return e.prototype.length=function(){var o=this.source.p.x-this.target.p.x,t=this.source.p.y-this.target.p.y;return Math.sqrt(o*o+t*t)},e})();ka.VisibilityEdge=yy;var pht=(function(){function e(o,t){if(this.P=o,this.V=[],this.E=[],t)this.V=t.V.slice(0),this.E=t.E.slice(0);else{for(var n=o.length,i=0;i0&&this.E.push(new yy(s[d-1].vv,f))}s.length>1&&this.E.push(new yy(s[0].vv,s[s.length-1].vv))}for(var i=0;i0)return!0;return!1},e})();ka.TangentVisibilityGraph=pht;function SK(e,o){for(var t=[],n=1,i=o.length;n=0&&S>=0&&M<0&&D>=0&&k>=0&&z<0?i.ll=new oh(s,d):P<=0&&S<=0&&M>0&&D<=0&&k<=0&&z>0?i.rr=new oh(s,d):P<=0&&S>0&&M<=0&&D>=0&&k<0&&z>=0?i.rl=new oh(s,d):P>=0&&S<0&&M>=0&&D<=0&&k>0&&z<=0&&(i.lr=new oh(s,d))}return i}ka.tangents=wK;function mht(e,o){for(var t=1,n=o.length;t0)return!0}return!1}ka.polysOverlap=dht});var vI=pt(Ty=>{"use strict";Object.defineProperty(Ty,"__esModule",{value:!0});var _s={PADDING:10,GOLDEN_SECTION:(1+Math.sqrt(5))/2,FLOAT_EPSILON:1e-4,MAX_INERATIONS:100};function uht(e,o,t,x,C,s){C===void 0&&(C=1),s===void 0&&(s=!0);var d=0,u=0,f=o,_=t,C=typeof C<"u"?C:1,x=typeof x<"u"?x:0,y=0,P=0,S=0,M=0,D=[];if(e.length==0)return;k(e),U(e,C),s&&z(e);function k(se){se.forEach(function(de){_e(de)});function _e(de){var j=Number.MAX_VALUE,W=Number.MAX_VALUE,pe=0,O=0;de.array.forEach(function(B){var L=typeof B.width<"u"?B.width:x,N=typeof B.height<"u"?B.height:x;L/=2,N/=2,pe=Math.max(B.x+L,pe),j=Math.min(B.x-L,j),O=Math.max(B.y+N,O),W=Math.min(B.y-N,W)}),de.width=pe-j,de.height=O-W}}function z(se){se.forEach(function(_e){var de={x:0,y:0};_e.array.forEach(function(pe){de.x+=pe.x,de.y+=pe.y}),de.x/=_e.array.length,de.y/=_e.array.length;var j={x:de.x-_e.width/2,y:de.y-_e.height/2},W={x:_e.x-j.x+f/2-y/2,y:_e.y-j.y+_/2-P/2};_e.array.forEach(function(pe){pe.x+=W.x,pe.y+=W.y})})}function U(se,_e){var de=Number.POSITIVE_INFINITY,j=0;se.sort(function(ye,Ne){return Ne.height-ye.height}),S=se.reduce(function(ye,Ne){return ye.widthS||$>_s.FLOAT_EPSILON;){if(N!=1)var ne=pe-(pe-W)/_s.GOLDEN_SECTION,B=J(se,ne);if(N!=0)var be=W+(pe-W)/_s.GOLDEN_SECTION,L=J(se,be);if(G=Math.abs(ne-be),$=Math.abs(B-L),BL?(W=ne,ne=be,B=L,N=1):(pe=be,be=ne,L=B,N=0),O++>100)break}J(se,j)}function J(se,_e){D=[],y=0,P=0,M=u;for(var de=0;de=se.height&&D[j].x+D[j].width+se.width+_s.PADDING-_e<=_s.FLOAT_EPSILON){de=D[j];break}D.push(se),de!==void 0?(se.x=de.x+de.width+_s.PADDING,se.y=de.bottom,se.space_left=se.height,se.bottom=se.y,de.space_left-=se.height+_s.PADDING,de.bottom+=se.height+_s.PADDING):(se.y=M,M+=se.height+_s.PADDING,se.x=d,se.bottom=se.y,se.space_left=se.height),se.y+se.height-P>-_s.FLOAT_EPSILON&&(P=se.y+se.height-u),se.x+se.width-y>-_s.FLOAT_EPSILON&&(y=se.x+se.width-d)}function ee(se){var _e=0;return se.forEach(function(de){return _e+=de.width+_s.PADDING}),_e}function ae(){return y/P}}Ty.applyPacking=uht;function fht(e,o){for(var t={},n={},i=[],s=0,d=0;d{"use strict";Object.defineProperty(rh,"__esModule",{value:!0});var hht=aI(),xI=fy(),My=hy(),Dy=Su(),PK=nh(),TK=CI(),MK=vI(),ah;(function(e){e[e.start=0]="start",e[e.tick=1]="tick",e[e.end=2]="end"})(ah=rh.EventType||(rh.EventType={}));function Ey(e){return typeof e.leaves<"u"||typeof e.groups<"u"}var ght=(function(){function e(){var o=this;this._canvasSize=[1,1],this._linkDistance=20,this._defaultNodeSize=10,this._linkLengthCalculator=null,this._linkType=null,this._avoidOverlaps=!1,this._handleDisconnected=!0,this._running=!1,this._nodes=[],this._groups=[],this._rootGroup=null,this._links=[],this._constraints=[],this._distanceMatrix=null,this._descent=null,this._directedLinkConstraints=null,this._threshold=.01,this._visibilityGraph=null,this._groupCompactness=1e-6,this.event=null,this.linkAccessor={getSourceIndex:e.getSourceIndex,getTargetIndex:e.getTargetIndex,setLength:e.setLinkLength,getType:function(t){return typeof o._linkType=="function"?o._linkType(t):0}}}return e.prototype.on=function(o,t){return this.event||(this.event={}),typeof o=="string"?this.event[ah[o]]=t:this.event[o]=t,this},e.prototype.trigger=function(o){this.event&&typeof this.event[o.type]<"u"&&this.event[o.type](o)},e.prototype.kick=function(){for(;!this.tick(););},e.prototype.tick=function(){if(this._alpha"u"||typeof n.py>"u")&&(n.px=n.x,n.py=n.y);var s=[n.px,n.py];this._descent.locks.add(i,s)}var d=this._descent.rungeKutta();return d===0?this._alpha=0:typeof this._lastStress<"u"&&(this._alpha=d),this._lastStress=d,this.updateNodePositions(),this.trigger({type:ah.tick,alpha:this._alpha,stress:this._lastStress}),!1},e.prototype.updateNodePositions=function(){for(var o=this._descent.x[0],t=this._descent.x[1],n,i=this._nodes.length;i--;)n=this._nodes[i],n.x=o[i],n.y=t[i]},e.prototype.nodes=function(o){if(!o){if(this._nodes.length===0&&this._links.length>0){var t=0;this._links.forEach(function(i){t=Math.max(t,i.source,i.target)}),this._nodes=new Array(++t);for(var n=0;n"u"&&(n.padding=1),typeof n.leaves<"u"&&n.leaves.forEach(function(i,s){typeof i=="number"&&((n.leaves[s]=t._nodes[i]).parent=n)}),typeof n.groups<"u"&&n.groups.forEach(function(i,s){typeof i=="number"&&((n.groups[s]=t._groups[i]).parent=n)})}),this._rootGroup.leaves=this._nodes.filter(function(n){return typeof n.parent>"u"}),this._rootGroup.groups=this._groups.filter(function(n){return typeof n.parent>"u"}),this):this._groups},e.prototype.powerGraphGroups=function(o){var t=hht.getGroups(this._nodes,this._links,this.linkAccessor,this._rootGroup);return this.groups(t.groups),o(t),this},e.prototype.avoidOverlaps=function(o){return arguments.length?(this._avoidOverlaps=o,this):this._avoidOverlaps},e.prototype.handleDisconnected=function(o){return arguments.length?(this._handleDisconnected=o,this):this._handleDisconnected},e.prototype.flowLayout=function(o,t){return arguments.length||(o="y"),this._directedLinkConstraints={axis:o,getMinSeparation:typeof t=="number"?function(){return t}:t},this},e.prototype.links=function(o){return arguments.length?(this._links=o,this):this._links},e.prototype.constraints=function(o){return arguments.length?(this._constraints=o,this):this._constraints},e.prototype.distanceMatrix=function(o){return arguments.length?(this._distanceMatrix=o,this):this._distanceMatrix},e.prototype.size=function(o){return o?(this._canvasSize=o,this):this._canvasSize},e.prototype.defaultNodeSize=function(o){return o?(this._defaultNodeSize=o,this):this._defaultNodeSize},e.prototype.groupCompactness=function(o){return o?(this._groupCompactness=o,this):this._groupCompactness},e.prototype.linkDistance=function(o){return o?(this._linkDistance=typeof o=="function"?o:+o,this._linkLengthCalculator=null,this):this._linkDistance},e.prototype.linkType=function(o){return this._linkType=o,this},e.prototype.convergenceThreshold=function(o){return o?(this._threshold=typeof o=="function"?o:+o,this):this._threshold},e.prototype.alpha=function(o){return arguments.length?(o=+o,this._alpha?o>0?this._alpha=o:this._alpha=0:o>0&&(this._running||(this._running=!0,this.trigger({type:ah.start,alpha:this._alpha=o}),this.kick())),this):this._alpha},e.prototype.getLinkLength=function(o){return typeof this._linkDistance=="function"?+this._linkDistance(o):this._linkDistance},e.setLinkLength=function(o,t){o.length=t},e.prototype.getLinkType=function(o){return typeof this._linkType=="function"?this._linkType(o):0},e.prototype.symmetricDiffLinkLengths=function(o,t){var n=this;return t===void 0&&(t=1),this.linkDistance(function(i){return o*i.length}),this._linkLengthCalculator=function(){return xI.symmetricDiffLinkLengths(n._links,n.linkAccessor,t)},this},e.prototype.jaccardLinkLengths=function(o,t){var n=this;return t===void 0&&(t=1),this.linkDistance(function(i){return o*i.length}),this._linkLengthCalculator=function(){return xI.jaccardLinkLengths(n._links,n.linkAccessor,t)},this},e.prototype.start=function(o,t,n,i,s,d){var u=this;o===void 0&&(o=0),t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),s===void 0&&(s=!0),d===void 0&&(d=!0);var f,_,C=this.nodes().length,x=C+2*this._groups.length,y=this._links.length,P=this._canvasSize[0],S=this._canvasSize[1],M=new Array(x),D=new Array(x),k=null,z=this._avoidOverlaps;this._nodes.forEach(function(de,j){de.index=j,typeof de.x>"u"&&(de.x=P/2,de.y=S/2),M[j]=de.x,D[j]=de.y}),this._linkLengthCalculator&&this._linkLengthCalculator();var U;this._distanceMatrix?U=this._distanceMatrix:(U=new PK.Calculator(x,this._links,e.getSourceIndex,e.getTargetIndex,function(de){return u.getLinkLength(de)}).DistanceMatrix(),k=My.Descent.createSquareMatrix(x,function(){return 2}),this._links.forEach(function(de){typeof de.source=="number"&&(de.source=u._nodes[de.source]),typeof de.target=="number"&&(de.target=u._nodes[de.target])}),this._links.forEach(function(de){var j=e.getSourceIndex(de),W=e.getTargetIndex(de);k[j][W]=k[W][j]=de.weight||1}));var J=My.Descent.createSquareMatrix(x,function(de,j){return U[de][j]});if(this._rootGroup&&typeof this._rootGroup.groups<"u"){var f=C,re=function(j,W,pe,O){k[j][W]=k[W][j]=pe,J[j][W]=J[W][j]=O};this._groups.forEach(function(j){re(f,f+1,u._groupCompactness,.1),M[f]=0,D[f++]=0,M[f]=0,D[f++]=0})}else this._rootGroup={leaves:this._nodes,groups:[]};var ee=this._constraints||[];this._directedLinkConstraints&&(this.linkAccessor.getMinSeparation=this._directedLinkConstraints.getMinSeparation,ee=ee.concat(xI.generateDirectedEdgeConstraints(C,this._links,this._directedLinkConstraints.axis,this.linkAccessor))),this.avoidOverlaps(!1),this._descent=new My.Descent([M,D],J),this._descent.locks.clear();for(var f=0;f0&&(this._descent.project=new Dy.Projection(this._nodes,this._groups,this._rootGroup,ee).projectFunctions()),this._descent.run(t),this.separateOverlappingComponents(P,S,d),this.avoidOverlaps(z),z&&(this._nodes.forEach(function(de,j){de.x=M[j],de.y=D[j]}),this._descent.project=new Dy.Projection(this._nodes,this._groups,this._rootGroup,ee,!0).projectFunctions(),this._nodes.forEach(function(de,j){M[j]=de.x,D[j]=de.y})),this._descent.G=k,this._descent.run(n),i){this._descent.snapStrength=1e3,this._descent.snapGridSize=this._nodes[0].width,this._descent.numGridSnapNodes=C,this._descent.scaleSnapByMaxH=C!=x;var _e=My.Descent.createSquareMatrix(x,function(de,j){return de>=C||j>=C?k[de][j]:0});this._descent.G=_e,this._descent.run(i)}return this.updateNodePositions(),this.separateOverlappingComponents(P,S,d),s?this.resume():this},e.prototype.initialLayout=function(o,t,n){if(this._groups.length>0&&o>0){var i=this._nodes.length,s=this._links.map(function(u){return{source:u.source.index,target:u.target.index}}),d=this._nodes.map(function(u){return{index:u.index}});this._groups.forEach(function(u,f){d.push({index:u.index=i+f})}),this._groups.forEach(function(u,f){typeof u.leaves<"u"&&u.leaves.forEach(function(_){return s.push({source:u.index,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return s.push({source:u.index,target:_.index})})}),new e().size(this.size()).nodes(d).links(s).avoidOverlaps(!1).linkDistance(this.linkDistance()).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(o,0,0,0,!1),this._nodes.forEach(function(u){t[u.index]=d[u.index].x,n[u.index]=d[u.index].y})}else this._descent.run(o)},e.prototype.separateOverlappingComponents=function(o,t,n){var i=this;if(n===void 0&&(n=!0),!this._distanceMatrix&&this._handleDisconnected){var s=this._descent.x[0],d=this._descent.x[1];this._nodes.forEach(function(f,_){f.x=s[_],f.y=d[_]});var u=MK.separateGraphs(this._nodes,this._links);MK.applyPacking(u,o,t,this._defaultNodeSize,1,n),this._nodes.forEach(function(f,_){i._descent.x[0][_]=f.x,i._descent.x[1][_]=f.y,f.bounds&&(f.bounds.setXCentre(f.x),f.bounds.setYCentre(f.y))})}},e.prototype.resume=function(){return this.alpha(.1)},e.prototype.stop=function(){return this.alpha(0)},e.prototype.prepareEdgeRouting=function(o){o===void 0&&(o=0),this._visibilityGraph=new TK.TangentVisibilityGraph(this._nodes.map(function(t){return t.bounds.inflate(-o).vertices()}))},e.prototype.routeEdge=function(o,t,n){t===void 0&&(t=5);var i=[],s=new TK.TangentVisibilityGraph(this._visibilityGraph.P,{V:this._visibilityGraph.V,E:this._visibilityGraph.E}),d={x:o.source.x,y:o.source.y},u={x:o.target.x,y:o.target.y},f=s.addPoint(d,o.source.index),_=s.addPoint(u,o.target.index);s.addEdgeIfVisible(d,u,o.source.index,o.target.index),typeof n<"u"&&n(s);var C=function(J){return J.source.id},x=function(J){return J.target.id},y=function(J){return J.length()},P=new PK.Calculator(s.V.length,s.E,C,x,y),S=P.PathFromNodeToNode(f.id,_.id);if(S.length===1||S.length===s.V.length){var M=Dy.makeEdgeBetween(o.source.innerBounds,o.target.innerBounds,t);i=[M.sourceIntersection,M.arrowStart]}else{for(var D=S.length-2,k=s.V[S[D]].p,z=s.V[S[0]].p,i=[o.source.innerBounds.rayIntersection(k.x,k.y)],U=D;U>=0;--U)i.push(s.V[S[U]].p);i.push(Dy.makeEdgeTo(z,o.target.innerBounds,t))}return i},e.getSourceIndex=function(o){return typeof o.source=="number"?o.source:o.source.index},e.getTargetIndex=function(o){return typeof o.target=="number"?o.target:o.target.index},e.linkId=function(o){return e.getSourceIndex(o)+"-"+e.getTargetIndex(o)},e.dragStart=function(o){Ey(o)?e.storeOffset(o,e.dragOrigin(o)):(e.stopNode(o),o.fixed|=2)},e.stopNode=function(o){o.px=o.x,o.py=o.y},e.storeOffset=function(o,t){typeof o.leaves<"u"&&o.leaves.forEach(function(n){n.fixed|=2,e.stopNode(n),n._dragGroupOffsetX=n.x-t.x,n._dragGroupOffsetY=n.y-t.y}),typeof o.groups<"u"&&o.groups.forEach(function(n){return e.storeOffset(n,t)})},e.dragOrigin=function(o){return Ey(o)?{x:o.bounds.cx(),y:o.bounds.cy()}:o},e.drag=function(o,t){Ey(o)?(typeof o.leaves<"u"&&o.leaves.forEach(function(n){o.bounds.setXCentre(t.x),o.bounds.setYCentre(t.y),n.px=n._dragGroupOffsetX+t.x,n.py=n._dragGroupOffsetY+t.y}),typeof o.groups<"u"&&o.groups.forEach(function(n){return e.drag(n,t)})):(o.px=t.x,o.py=t.y)},e.dragEnd=function(o){Ey(o)?(typeof o.leaves<"u"&&o.leaves.forEach(function(t){e.dragEnd(t),delete t._dragGroupOffsetX,delete t._dragGroupOffsetY}),typeof o.groups<"u"&&o.groups.forEach(e.dragEnd)):o.fixed&=-7},e.mouseOver=function(o){o.fixed|=4,o.px=o.x,o.py=o.y},e.mouseOut=function(o){o.fixed&=-5},e})();rh.Layout=ght});var EK=pt(Pu=>{"use strict";var _ht=Pu&&Pu.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(Pu,"__esModule",{value:!0});var bI=wu(),DK=(function(e){_ht(o,e);function o(t){var n=e.call(this)||this,i=n,s=t;return s.trigger&&(n.trigger=s.trigger),s.kick&&(n.kick=s.kick),s.drag&&(n.drag=s.drag),s.on&&(n.on=s.on),n.dragstart=n.dragStart=bI.Layout.dragStart,n.dragend=n.dragEnd=bI.Layout.dragEnd,n}return o.prototype.trigger=function(t){},o.prototype.kick=function(){},o.prototype.drag=function(){},o.prototype.on=function(t,n){return this},o})(bI.Layout);Pu.LayoutAdaptor=DK;function Cht(e){return new DK(e)}Pu.adaptor=Cht});var OK=pt(Tu=>{"use strict";var vht=Tu&&Tu.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(Tu,"__esModule",{value:!0});var Hl=wu(),IK=(function(e){vht(o,e);function o(){var t=e.call(this)||this;t.event=d3.dispatch(Hl.EventType[Hl.EventType.start],Hl.EventType[Hl.EventType.tick],Hl.EventType[Hl.EventType.end]);var n=t,i;return t.drag=function(){if(!s)var s=d3.behavior.drag().origin(Hl.Layout.dragOrigin).on("dragstart.d3adaptor",Hl.Layout.dragStart).on("drag.d3adaptor",function(d){Hl.Layout.drag(d,d3.event),n.resume()}).on("dragend.d3adaptor",Hl.Layout.dragEnd);if(!arguments.length)return s;this.call(s)},t}return o.prototype.trigger=function(t){var n={type:Hl.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event[n.type](n)},o.prototype.kick=function(){var t=this;d3.timer(function(){return e.prototype.tick.call(t)})},o.prototype.on=function(t,n){return typeof t=="string"?this.event.on(t,n):this.event.on(Hl.EventType[t],n),this},o})(Hl.Layout);Tu.D3StyleLayoutAdaptor=IK;function xht(){return new IK}Tu.d3adaptor=xht});var AK=pt(lh=>{"use strict";var bht=lh&&lh.__extends||(function(){var e=function(o,t){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)i.hasOwnProperty(s)&&(n[s]=i[s])},e(o,t)};return function(o,t){e(o,t);function n(){this.constructor=o}o.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}})();Object.defineProperty(lh,"__esModule",{value:!0});var Gl=wu(),yht=(function(e){bht(o,e);function o(t){var n=e.call(this)||this;n.d3Context=t,n.event=t.dispatch(Gl.EventType[Gl.EventType.start],Gl.EventType[Gl.EventType.tick],Gl.EventType[Gl.EventType.end]);var i=n,s;return n.drag=function(){if(!d)var d=t.drag().subject(Gl.Layout.dragOrigin).on("start.d3adaptor",Gl.Layout.dragStart).on("drag.d3adaptor",function(u){Gl.Layout.drag(u,t.event),i.resume()}).on("end.d3adaptor",Gl.Layout.dragEnd);if(!arguments.length)return d;arguments[0].call(d)},n}return o.prototype.trigger=function(t){var n={type:Gl.EventType[t.type],alpha:t.alpha,stress:t.stress};this.event.call(n.type,n)},o.prototype.kick=function(){var t=this,n=this.d3Context.timer(function(){return e.prototype.tick.call(t)&&n.stop()})},o.prototype.on=function(t,n){return typeof t=="string"?this.event.on(t,n):this.event.on(Gl.EventType[t],n),this},o})(Gl.Layout);lh.D3StyleLayoutAdaptor=yht});var FK=pt(yI=>{"use strict";Object.defineProperty(yI,"__esModule",{value:!0});var Sht=OK(),wht=AK();function Pht(e){return!e||Tht(e)?new Sht.D3StyleLayoutAdaptor:new wht.D3StyleLayoutAdaptor(e)}yI.d3adaptor=Pht;function Tht(e){var o=/^3\./;return e.version&&e.version.match(o)!==null}});var TI=pt(Mu=>{"use strict";Object.defineProperty(Mu,"__esModule",{value:!0});var Mht=Su(),SI=Cy(),Dht=nh(),kK=(function(){function e(o,t,n){this.id=o,this.rect=t,this.children=n,this.leaf=typeof n>"u"||n.length===0}return e})();Mu.NodeWrapper=kK;var wI=(function(){function e(o,t,n,i,s){i===void 0&&(i=null),s===void 0&&(s=null),this.id=o,this.x=t,this.y=n,this.node=i,this.line=s}return e})();Mu.Vert=wI;var PI=(function(){function e(o,t){this.s=o,this.t=t;var n=e.findMatch(o,t),i=t.slice(0).reverse(),s=e.findMatch(o,i);n.length>=s.length?(this.length=n.length,this.si=n.si,this.ti=n.ti,this.reversed=!1):(this.length=s.length,this.si=s.si,this.ti=t.length-s.ti-s.length,this.reversed=!0)}return e.findMatch=function(o,t){for(var n=o.length,i=t.length,s={length:0,si:-1,ti:-1},d=new Array(n),u=0;us.length&&(s.length=_,s.si=u-_+1,s.ti=f-_+1)}else d[u][f]=0}return s},e.prototype.getSequence=function(){return this.length>=0?this.s.slice(this.si,this.si+this.length):[]},e})();Mu.LongestCommonSubsequence=PI;var Eht=(function(){function e(o,t,n){var i=this;n===void 0&&(n=12),this.originalnodes=o,this.groupPadding=n,this.leaves=null,this.nodes=o.map(function(M,D){return new kK(D,t.getBounds(M),t.getChildren(M))}),this.leaves=this.nodes.filter(function(M){return M.leaf}),this.groups=this.nodes.filter(function(M){return!M.leaf}),this.cols=this.getGridLines("x"),this.rows=this.getGridLines("y"),this.groups.forEach(function(M){return M.children.forEach(function(D){return i.nodes[D].parent=M})}),this.root={children:[]},this.nodes.forEach(function(M){typeof M.parent>"u"&&(M.parent=i.root,i.root.children.push(M.id)),M.ports=[]}),this.backToFront=this.nodes.slice(0),this.backToFront.sort(function(M,D){return i.getDepth(M)-i.getDepth(D)});var s=this.backToFront.slice(0).reverse().filter(function(M){return!M.leaf});s.forEach(function(M){var D=Mht.Rectangle.empty();M.children.forEach(function(k){return D=D.union(i.nodes[k].rect)}),M.rect=D.inflate(i.groupPadding)});var d=this.midPoints(this.cols.map(function(M){return M.pos})),u=this.midPoints(this.rows.map(function(M){return M.pos})),f=d[0],_=d[d.length-1],C=u[0],x=u[u.length-1],y=this.rows.map(function(M){return{x1:f,x2:_,y1:M.pos,y2:M.pos}}).concat(u.map(function(M){return{x1:f,x2:_,y1:M,y2:M}})),P=this.cols.map(function(M){return{x1:M.pos,x2:M.pos,y1:C,y2:x}}).concat(d.map(function(M){return{x1:M,x2:M,y1:C,y2:x}})),S=y.concat(P);S.forEach(function(M){return M.verts=[]}),this.verts=[],this.edges=[],y.forEach(function(M){return P.forEach(function(D){var k=new wI(i.verts.length,D.x1,M.y1);M.verts.push(k),D.verts.push(k),i.verts.push(k);for(var z=i.backToFront.length;z-- >0;){var U=i.backToFront[z],J=U.rect,re=Math.abs(k.x-J.cx()),ee=Math.abs(k.y-J.cy());if(re0;){var i=n.filter(function(d){return d.rect["overlap"+o.toUpperCase()](n[0].rect)}),s={nodes:i,pos:this.avg(i.map(function(d){return d.rect["c"+o]()}))};t.push(s),s.nodes.forEach(function(d){return n.splice(n.indexOf(d),1)})}return t.sort(function(d,u){return d.pos-u.pos}),t},e.prototype.getDepth=function(o){for(var t=0;o.parent!==this.root;)t++,o=o.parent;return t},e.prototype.midPoints=function(o){for(var t=o[1]-o[0],n=[o[0]-t/2],i=1;i.1)&&(x={pos:f[0][t],segments:[]},C.push(x)),x.segments.push(f)}return C},e.nudgeSegs=function(o,t,n,i,s,d){var u=i.length;if(!(u<=1)){for(var f=i.map(function(U){return new SI.Variable(U[0][o])}),_=[],C=0;C=0&&_.push(new SI.Constraint(f[D],f[k],d))}var z=new SI.Solver(f,_);z.solve(),f.forEach(function(U,J){var re=i[J],ee=U.position();re[0][o]=re[1][o]=ee;var ae=n[re.edgeid];re.i>0&&(ae[re.i-1][1][o]=ee),re.iMath.PI||s<-Math.PI)&&(s=i-n),s},e.isLeft=function(o,t,n){return(t.x-o.x)*(n.y-o.y)-(t.y-o.y)*(n.x-o.x)<=0},e.getOrder=function(o){for(var t={},n=0;n"u"&&(t[i.l]={}),t[i.l][i.r]=!0}return function(s,d){return typeof t[s]<"u"&&t[s][d]}},e.orderEdges=function(o){for(var t=[],n=0;n=s.length||u.ti+u.length>=d.length)){t.push({l:n,r:i});continue}u.si+u.length>=s.length||u.ti+u.length>=d.length?(f=s[u.si+1],C=s[u.si-1],_=d[u.ti-1]):(f=s[u.si+u.length-2],_=s[u.si+u.length],C=d[u.ti+u.length]),e.isLeft(f,_,C)?t.push({l:i,r:n}):t.push({l:n,r:i})}}return e.getOrder(t)},e.makeSegments=function(o){function t(_){return{x:_.x,y:_.y}}for(var n=function(_,C,x){return Math.abs((C.x-_.x)*(x.y-_.y)-(C.y-_.y)*(x.x-_.x))<.001},i=[],s=t(o[0]),d=1;d1&&se>1?1e3:0},M=P.PathFromNodeToNodeWithPrevCost(i.ports[0].id,s.ports[0].id,S),D=M.reverse().map(function(k){return n.verts[k]});return D.push(this.nodes[s.id].ports[0]),D.filter(function(k,z){return!(z0&&k.node===s&&D[z-1].node===s)})},e.getRoutePath=function(o,t,n,i){var s={routepath:"M "+o[0][0].x+" "+o[0][0].y+" ",arrowpath:""};if(o.length>1)for(var d=0;d0?f-=C/Math.abs(C)*t:_-=x/Math.abs(x)*t,s.routepath+="L "+f+" "+_+" ";var y=o[d+1],P=y[0].x,S=y[0].y,M=y[1].x,D=y[1].y;C=M-P,x=D-S;var k=e.angleBetween2Lines(u,y)<0?1:0,z,U;Math.abs(C)>0?(z=P+C/Math.abs(C)*t,U=S):(z=P,U=S+x/Math.abs(x)*t);var J=Math.abs(z-f),re=Math.abs(U-_);s.routepath+="A "+J+" "+re+" 0 0 "+k+" "+z+" "+U+" "}else{var ee=[f,_],ae,se;Math.abs(C)>0?(f-=C/Math.abs(C)*i,ae=[f,_+n],se=[f,_-n]):(_-=x/Math.abs(x)*i,ae=[f+n,_],se=[f-n,_]),s.routepath+="L "+f+" "+_+" ",i>0&&(s.arrowpath="M "+ee[0]+" "+ee[1]+" L "+ae[0]+" "+ae[1]+" L "+se[0]+" "+se[1])}}else{var u=o[0],f=u[1].x,_=u[1].y,C=f-u[0].x,x=_-u[0].y,ee=[f,_],ae,se;Math.abs(C)>0?(f-=C/Math.abs(C)*i,ae=[f,_+n],se=[f,_-n]):(_-=x/Math.abs(x)*i,ae=[f+n,_],se=[f-n,_]),s.routepath+="L "+f+" "+_+" ",i>0&&(s.arrowpath="M "+ee[0]+" "+ee[1]+" L "+ae[0]+" "+ae[1]+" L "+se[0]+" "+se[1])}return s},e})();Mu.GridRouter=Eht});var BK=pt(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var Iht=nh(),MI=hy(),Oht=Su(),Aht=fy(),Fht=(function(){function e(o,t){this.source=o,this.target=t}return e.prototype.actualLength=function(o){var t=this;return Math.sqrt(o.reduce(function(n,i){var s=i[t.target]-i[t.source];return n+s*s},0))},e})();sh.Link3D=Fht;var kht=(function(){function e(o,t,n){o===void 0&&(o=0),t===void 0&&(t=0),n===void 0&&(n=0),this.x=o,this.y=t,this.z=n}return e})();sh.Node3D=kht;var Bht=(function(){function e(o,t,n){var i=this;n===void 0&&(n=1),this.nodes=o,this.links=t,this.idealLinkLength=n,this.constraints=null,this.useJaccardLinkLengths=!0,this.result=new Array(e.k);for(var s=0;s"u"&&(d[C]=Math.random())}i.result[0][u]=d.x,i.result[1][u]=d.y,i.result[2][u]=d.z})}return e.prototype.linkLength=function(o){return o.actualLength(this.result)},e.prototype.start=function(o){var t=this;o===void 0&&(o=100);var n=this.nodes.length,i=new Rht;this.useJaccardLinkLengths&&Aht.jaccardLinkLengths(this.links,i,1.5),this.links.forEach(function(C){return C.length*=t.idealLinkLength});var s=new Iht.Calculator(n,this.links,function(C){return C.source},function(C){return C.target},function(C){return C.length}).DistanceMatrix(),d=MI.Descent.createSquareMatrix(n,function(C,x){return s[C][x]}),u=MI.Descent.createSquareMatrix(n,function(){return 2});this.links.forEach(function(C){var x=C.source,y=C.target;return u[x][y]=u[y][x]=1}),this.descent=new MI.Descent(this.result,d),this.descent.threshold=.001,this.descent.G=u,this.constraints&&(this.descent.project=new Oht.Projection(this.nodes,null,null,this.constraints).projectFunctions());for(var f=0;f{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var DI=wu(),Nht=TI();function Lht(e,o,t,n){e.cola.start(0,0,0,10,!1);var i=Vht(e.cola.nodes(),e.cola.groups(),t,n);return i.routeEdges(e.powerGraph.powerEdges,o,function(s){return s.source.routerNode.id},function(s){return s.target.routerNode.id})}Iy.gridify=Lht;function Vht(e,o,t,n){e.forEach(function(s){s.routerNode={name:s.name,bounds:s.bounds.inflate(-t)}}),o.forEach(function(s){s.routerNode={bounds:s.bounds.inflate(-n),children:(typeof s.groups<"u"?s.groups.map(function(d){return e.length+d.id}):[]).concat(typeof s.leaves<"u"?s.leaves.map(function(d){return d.index}):[])}});var i=e.concat(o).map(function(s,d){return s.routerNode.id=d,s.routerNode});return new Nht.GridRouter(i,{getChildren:function(s){return s.children},getBounds:function(s){return s.bounds}},t-n)}function qht(e,o,t){var n;e.nodes.forEach(function(u,f){return u.index=f}),new DI.Layout().avoidOverlaps(!1).nodes(e.nodes).links(e.links).powerGraphGroups(function(u){n=u,n.groups.forEach(function(f){return f.padding=t})});var i=e.nodes.length,s=[],d=e.nodes.slice(0);return d.forEach(function(u,f){return u.index=f}),n.groups.forEach(function(u){var f=u.index=u.id+i;d.push(u),typeof u.leaves<"u"&&u.leaves.forEach(function(_){return s.push({source:f,target:_.index})}),typeof u.groups<"u"&&u.groups.forEach(function(_){return s.push({source:f,target:_.id+i})})}),n.powerEdges.forEach(function(u){s.push({source:u.source.index,target:u.target.index})}),new DI.Layout().size(o).nodes(d).links(s).avoidOverlaps(!1).linkDistance(30).symmetricDiffLinkLengths(5).convergenceThreshold(1e-4).start(100,0,0,0,!1),{cola:new DI.Layout().convergenceThreshold(.001).size(o).avoidOverlaps(!0).nodes(e.nodes).links(e.links).groupCompactness(1e-4).linkDistance(30).symmetricDiffLinkLengths(5).powerGraphGroups(function(u){n=u,n.groups.forEach(function(f){f.padding=t})}).start(50,0,100,0,!1),powerGraph:n}}Iy.powerGraphGridLayout=qht});var NK=pt(Oy=>{"use strict";function Kr(e){for(var o in e)Oy.hasOwnProperty(o)||(Oy[o]=e[o])}Object.defineProperty(Oy,"__esModule",{value:!0});Kr(EK());Kr(FK());Kr(hy());Kr(CI());Kr(TI());Kr(vI());Kr(wu());Kr(BK());Kr(fy());Kr(aI());Kr(uI());Kr(cI());Kr(Su());Kr(nh());Kr(Cy());Kr(RK())});var MO=pt((jX,TO)=>{(function(e){typeof jX=="object"&&typeof TO<"u"?TO.exports=e():typeof define=="function"&&define.amd?define([],e):(typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this).ExcelJS=e()})(function(){return(function e(o,t,n){function i(u,f){if(!t[u]){if(!o[u]){var _=typeof Ms=="function"&&Ms;if(!f&&_)return _(u,!0);if(s)return s(u,!0);var C=new Error("Cannot find module '"+u+"'");throw C.code="MODULE_NOT_FOUND",C}var x=t[u]={exports:{}};o[u][0].call(x.exports,function(y){return i(o[u][1][y]||y)},x,x.exports,e,o,t,n)}return t[u].exports}for(var s=typeof Ms=="function"&&Ms,d=0;d{let M=this.workbook.addWorksheet(y.sheetName),D=y.dateFormats||["YYYY-MM-DD[T]HH:mm:ssZ","YYYY-MM-DD[T]HH:mm:ss","MM-DD-YYYY","YYYY-MM-DD"],k=y.map||function(U){if(U==="")return null;let J=Number(U);if(!Number.isNaN(J)&&J!==1/0)return J;let re=D.reduce((ae,se)=>{if(ae)return ae;let _e=u(U,se,!0);return _e.isValid()?_e:null},null);if(re)return new Date(re.valueOf());let ee=C[U];return ee!==void 0?ee:U},z=i.parse(y.parserOptions).on("data",U=>{M.addRow(U.map(k))}).on("end",()=>{z.emit("worksheet",M)});z.on("worksheet",P).on("error",S),x.pipe(z)})}createInputStream(){throw new Error("`CSV#createInputStream` is deprecated. You should use `CSV#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}write(x,y){return new Promise((P,S)=>{y=y||{};let M=this.workbook.getWorksheet(y.sheetName||y.sheetId),D=i.format(y.formatterOptions);x.on("finish",()=>{P()}),D.on("error",S),D.pipe(x);let{dateFormat:k,dateUTC:z}=y,U=y.map||(ee=>{if(ee){if(ee.text||ee.hyperlink)return ee.hyperlink||ee.text||"";if(ee.formula||ee.result)return ee.result||"";if(ee instanceof Date)return k?z?u.utc(ee).format(k):u(ee).format(k):z?u.utc(ee).format():u(ee).format();if(ee.error)return ee.error;if(typeof ee=="object")return JSON.stringify(ee)}return ee}),J=y.includeEmptyRows===void 0||y.includeEmptyRows,re=1;M&&M.eachRow((ee,ae)=>{if(J)for(;re++2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=d,u)if(typeof u=="string"){let _=n.decodeAddress(u);this.nativeCol=_.col+f,this.nativeColOff=0,this.nativeRow=_.row+f,this.nativeRowOff=0}else u.nativeCol!==void 0?(this.nativeCol=u.nativeCol||0,this.nativeColOff=u.nativeColOff||0,this.nativeRow=u.nativeRow||0,this.nativeRowOff=u.nativeRowOff||0):u.col!==void 0?(this.col=u.col+f,this.row=u.row+f):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}static asInstance(d){return d instanceof i||d==null?d:new i(d)}get col(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth}set col(d){this.nativeCol=Math.floor(d),this.nativeColOff=Math.floor((d-this.nativeCol)*this.colWidth)}get row(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight}set row(d){this.nativeRow=Math.floor(d),this.nativeRowOff=Math.floor((d-this.nativeRow)*this.rowHeight)}get colWidth(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}get rowHeight(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}get model(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}}set model(d){this.nativeCol=d.nativeCol,this.nativeColOff=d.nativeColOff,this.nativeRow=d.nativeRow,this.nativeRowOff=d.nativeRowOff}}o.exports=i},{"../utils/col-cache":19}],3:[function(e,o,t){"use strict";let n=e("../utils/col-cache"),i=e("../utils/under-dash"),s=e("./enums"),{slideFormula:d}=e("../utils/shared-formula"),u=e("./note");class f{constructor(x,y,P){if(!x||!y)throw new Error("A Cell needs a Row");this._row=x,this._column=y,n.validateAddress(P),this._address=P,this._value=_.create(f.Types.Null,this),this.style=this._mergeStyle(x.style,y.style,{}),this._mergeCount=0}get worksheet(){return this._row.worksheet}get workbook(){return this._row.worksheet.workbook}destroy(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}get numFmt(){return this.style.numFmt}set numFmt(x){this.style.numFmt=x}get font(){return this.style.font}set font(x){this.style.font=x}get alignment(){return this.style.alignment}set alignment(x){this.style.alignment=x}get border(){return this.style.border}set border(x){this.style.border=x}get fill(){return this.style.fill}set fill(x){this.style.fill=x}get protection(){return this.style.protection}set protection(x){this.style.protection=x}_mergeStyle(x,y,P){let S=x&&x.numFmt||y&&y.numFmt;S&&(P.numFmt=S);let M=x&&x.font||y&&y.font;M&&(P.font=M);let D=x&&x.alignment||y&&y.alignment;D&&(P.alignment=D);let k=x&&x.border||y&&y.border;k&&(P.border=k);let z=x&&x.fill||y&&y.fill;z&&(P.fill=z);let U=x&&x.protection||y&&y.protection;return U&&(P.protection=U),P}get address(){return this._address}get row(){return this._row.number}get col(){return this._column.number}get $col$row(){return`$${this._column.letter}$${this.row}`}get type(){return this._value.type}get effectiveType(){return this._value.effectiveType}toCsvString(){return this._value.toCsvString()}addMergeRef(){this._mergeCount++}releaseMergeRef(){this._mergeCount--}get isMerged(){return this._mergeCount>0||this.type===f.Types.Merge}merge(x,y){this._value.release(),this._value=_.create(f.Types.Merge,this,x),y||(this.style=x.style)}unmerge(){this.type===f.Types.Merge&&(this._value.release(),this._value=_.create(f.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}isMergedTo(x){return this._value.type===f.Types.Merge&&this._value.isMergedTo(x)}get master(){return this.type===f.Types.Merge?this._value.master:this}get isHyperlink(){return this._value.type===f.Types.Hyperlink}get hyperlink(){return this._value.hyperlink}get value(){return this._value.value}set value(x){this.type!==f.Types.Merge?(this._value.release(),this._value=_.create(_.getType(x),this,x)):this._value.master.value=x}get note(){return this._comment&&this._comment.note}set note(x){this._comment=new u(x)}get text(){return this._value.toString()}get html(){return i.escapeHtml(this.text)}toString(){return this.text}_upgradeToHyperlink(x){this.type===f.Types.String&&(this._value=_.create(f.Types.Hyperlink,this,{text:this._value.value,hyperlink:x}))}get formula(){return this._value.formula}get result(){return this._value.result}get formulaType(){return this._value.formulaType}get fullAddress(){let{worksheet:x}=this._row;return{sheetName:x.name,address:this.address,row:this.row,col:this.col}}get name(){return this.names[0]}set name(x){this.names=[x]}get names(){return this.workbook.definedNames.getNamesEx(this.fullAddress)}set names(x){let{definedNames:y}=this.workbook;y.removeAllNames(this.fullAddress),x.forEach(P=>{y.addEx(this.fullAddress,P)})}addName(x){this.workbook.definedNames.addEx(this.fullAddress,x)}removeName(x){this.workbook.definedNames.removeEx(this.fullAddress,x)}removeAllNames(){this.workbook.definedNames.removeAllNames(this.fullAddress)}get _dataValidations(){return this.worksheet.dataValidations}get dataValidation(){return this._dataValidations.find(this.address)}set dataValidation(x){this._dataValidations.add(this.address,x)}get model(){let{model:x}=this._value;return x.style=this.style,this._comment&&(x.comment=this._comment.model),x}set model(x){if(this._value.release(),this._value=_.create(x.type,this),this._value.model=x,x.comment)switch(x.comment.type){case"note":this._comment=u.fromModel(x.comment)}x.style?this.style=x.style:this.style={}}}f.Types=s.ValueType;let _={getType:C=>C==null?f.Types.Null:C instanceof String||typeof C=="string"?f.Types.String:typeof C=="number"?f.Types.Number:typeof C=="boolean"?f.Types.Boolean:C instanceof Date?f.Types.Date:C.text&&C.hyperlink?f.Types.Hyperlink:C.formula||C.sharedFormula?f.Types.Formula:C.richText?f.Types.RichText:C.sharedString?f.Types.SharedString:C.error?f.Types.Error:f.Types.JSON,types:[{t:f.Types.Null,f:class{constructor(C){this.model={address:C.address,type:f.Types.Null}}get value(){return null}set value(C){}get type(){return f.Types.Null}get effectiveType(){return f.Types.Null}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return""}release(){}toString(){return""}}},{t:f.Types.Number,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Number,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Number}get effectiveType(){return f.Types.Number}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.String,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.String,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return`"${this.model.value.replace(/"/g,'""')}"`}release(){}toString(){return this.model.value}}},{t:f.Types.Date,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Date,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Date}get effectiveType(){return f.Types.Date}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value.toISOString()}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.Hyperlink,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Hyperlink,text:x?x.text:void 0,hyperlink:x?x.hyperlink:void 0},x&&x.tooltip&&(this.model.tooltip=x.tooltip)}get value(){let C={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(C.tooltip=this.model.tooltip),C}set value(C){this.model={text:C.text,hyperlink:C.hyperlink},C.tooltip&&(this.model.tooltip=C.tooltip)}get text(){return this.model.text}set text(C){this.model.text=C}get hyperlink(){return this.model.hyperlink}set hyperlink(C){this.model.hyperlink=C}get type(){return f.Types.Hyperlink}get effectiveType(){return f.Types.Hyperlink}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.hyperlink}release(){}toString(){return this.model.text}}},{t:f.Types.Formula,f:class{constructor(C,x){this.cell=C,this.model={address:C.address,type:f.Types.Formula,shareType:x?x.shareType:void 0,ref:x?x.ref:void 0,formula:x?x.formula:void 0,sharedFormula:x?x.sharedFormula:void 0,result:x?x.result:void 0}}_copyModel(C){let x={},y=P=>{let S=C[P];S&&(x[P]=S)};return y("formula"),y("result"),y("ref"),y("shareType"),y("sharedFormula"),x}get value(){return this._copyModel(this.model)}set value(C){this.model=this._copyModel(C)}validate(C){switch(_.getType(C)){case f.Types.Null:case f.Types.String:case f.Types.Number:case f.Types.Date:break;case f.Types.Hyperlink:case f.Types.Formula:default:throw new Error("Cannot process that type of result value")}}get dependencies(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}get formula(){return this.model.formula||this._getTranslatedFormula()}set formula(C){this.model.formula=C}get formulaType(){return this.model.formula?s.FormulaType.Master:this.model.sharedFormula?s.FormulaType.Shared:s.FormulaType.None}get result(){return this.model.result}set result(C){this.model.result=C}get type(){return f.Types.Formula}get effectiveType(){let C=this.model.result;return C==null?s.ValueType.Null:C instanceof String||typeof C=="string"?s.ValueType.String:typeof C=="number"?s.ValueType.Number:C instanceof Date?s.ValueType.Date:C.text&&C.hyperlink?s.ValueType.Hyperlink:C.formula?s.ValueType.Formula:s.ValueType.Null}get address(){return this.model.address}set address(C){this.model.address=C}_getTranslatedFormula(){if(!this._translatedFormula&&this.model.sharedFormula){let{worksheet:C}=this.cell,x=C.findCell(this.model.sharedFormula);this._translatedFormula=x&&d(x.formula,x.address,this.model.address)}return this._translatedFormula}toCsvString(){return""+(this.model.result||"")}release(){}toString(){return this.model.result?this.model.result.toString():""}}},{t:f.Types.Merge,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Merge,master:x?x.address:void 0},this._master=x,x&&x.addMergeRef()}get value(){return this._master.value}set value(C){C instanceof f?(this._master&&this._master.releaseMergeRef(),C.addMergeRef(),this._master=C):this._master.value=C}isMergedTo(C){return C===this._master}get master(){return this._master}get type(){return f.Types.Merge}get effectiveType(){return this._master.effectiveType}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return""}release(){this._master.releaseMergeRef()}toString(){return this.value.toString()}}},{t:f.Types.JSON,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.String,value:JSON.stringify(x),rawValue:x}}get value(){return this.model.rawValue}set value(C){this.model.rawValue=C,this.model.value=JSON.stringify(C)}get type(){return f.Types.String}get effectiveType(){return f.Types.String}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value}release(){}toString(){return this.model.value}}},{t:f.Types.SharedString,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.SharedString,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.SharedString}get effectiveType(){return f.Types.SharedString}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value.toString()}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.RichText,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.String,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}toString(){return this.model.value.richText.map(C=>C.text).join("")}get type(){return f.Types.RichText}get effectiveType(){return f.Types.RichText}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return`"${this.text.replace(/"/g,'""')}"`}release(){}}},{t:f.Types.Boolean,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Boolean,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Boolean}get effectiveType(){return f.Types.Boolean}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.model.value?1:0}release(){}toString(){return this.model.value.toString()}}},{t:f.Types.Error,f:class{constructor(C,x){this.model={address:C.address,type:f.Types.Error,value:x}}get value(){return this.model.value}set value(C){this.model.value=C}get type(){return f.Types.Error}get effectiveType(){return f.Types.Error}get address(){return this.model.address}set address(C){this.model.address=C}toCsvString(){return this.toString()}release(){}toString(){return this.model.value.error.toString()}}}].reduce((C,x)=>(C[x.t]=x.f,C),[]),create(C,x,y){let P=this.types[C];if(!P)throw new Error("Could not create Value of type "+C);return new P(x,y)}};o.exports=f},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,o,t){"use strict";let n=e("../utils/under-dash"),i=e("./enums"),s=e("../utils/col-cache");class d{constructor(f,_,C){this._worksheet=f,this._number=_,C!==!1&&(this.defn=C)}get number(){return this._number}get worksheet(){return this._worksheet}get letter(){return s.n2l(this._number)}get isCustomWidth(){return this.width!==void 0&&this.width!==9}get defn(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}}set defn(f){f?(this.key=f.key,this.width=f.width!==void 0?f.width:9,this.outlineLevel=f.outlineLevel,f.style?this.style=f.style:this.style={},this.header=f.header,this._hidden=!!f.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}get headers(){return this._header&&this._header instanceof Array?this._header:[this._header]}get header(){return this._header}set header(f){f!==void 0?(this._header=f,this.headers.forEach((_,C)=>{this._worksheet.getCell(C+1,this.number).value=_})):this._header=void 0}get key(){return this._key}set key(f){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=f,f&&this._worksheet.setColumnKey(this._key,this)}get hidden(){return!!this._hidden}set hidden(f){this._hidden=f}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(f){this._outlineLevel=f}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}toString(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}equivalentTo(f){return this.width===f.width&&this.hidden===f.hidden&&this.outlineLevel===f.outlineLevel&&n.isEqual(this.style,f.style)}get isDefault(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;let f=this.style;return!f||!(f.font||f.numFmt||f.alignment||f.border||f.fill||f.protection)}get headerCount(){return this.headers.length}eachCell(f,_){let C=this.number;_||(_=f,f=null),this._worksheet.eachRow(f,(x,y)=>{_(x.getCell(C),y)})}get values(){let f=[];return this.eachCell((_,C)=>{_&&_.type!==i.ValueType.Null&&(f[C]=_.value)}),f}set values(f){if(!f)return;let _=this.number,C=0;f.hasOwnProperty("0")&&(C=1),f.forEach((x,y)=>{this._worksheet.getCell(y+C,_).value=x})}_applyStyle(f,_){return this.style[f]=_,this.eachCell(C=>{C[f]=_}),_}get numFmt(){return this.style.numFmt}set numFmt(f){this._applyStyle("numFmt",f)}get font(){return this.style.font}set font(f){this._applyStyle("font",f)}get alignment(){return this.style.alignment}set alignment(f){this._applyStyle("alignment",f)}get protection(){return this.style.protection}set protection(f){this._applyStyle("protection",f)}get border(){return this.style.border}set border(f){this._applyStyle("border",f)}get fill(){return this.style.fill}set fill(f){this._applyStyle("fill",f)}static toModel(f){let _=[],C=null;return f&&f.forEach((x,y)=>{x.isDefault?C&&(C=null):C&&x.equivalentTo(C)?C.max=y+1:(C={min:y+1,max:y+1,width:x.width!==void 0?x.width:9,style:x.style,isCustomWidth:x.isCustomWidth,hidden:x.hidden,outlineLevel:x.outlineLevel,collapsed:x.collapsed},_.push(C))}),_.length?_:void 0}static fromModel(f,_){let C=[],x=1,y=0;for(_=(_=_||[]).sort(function(P,S){return P.min-S.min});y<_.length;){let P=_[y++];for(;x{_.removeCellEx(f)})}forEach(f){n.each(this.matrixMap,(_,C)=>{_.forEach(x=>{f(C,x)})})}getNames(f){return this.getNamesEx(i.decodeEx(f))}getNamesEx(f){return n.map(this.matrixMap,(_,C)=>_.findCellEx(f)&&C).filter(Boolean)}_explore(f,_){_.mark=!1;let{sheetName:C}=_,x=new d(_.row,_.col,_.row,_.col,C),y,P;function S(D,k){let z=f.findCellAt(C,D,_.col);return!(!z||!z.mark)&&(x[k]=D,z.mark=!1,!0)}for(P=_.row-1;S(P,"top");P--);for(P=_.row+1;S(P,"bottom");P++);function M(D,k){let z=[];for(P=x.top;P<=x.bottom;P++){let U=f.findCellAt(C,P,D);if(!U||!U.mark)return!1;z.push(U)}x[k]=D;for(let U=0;U{C.mark=!0}),{name:f,ranges:_.map(C=>C.mark&&this._explore(_,C)).filter(Boolean).map(C=>C.$shortRange)}):{name:f,ranges:[]}}normaliseMatrix(f,_){f.forEachInSheet(_,(C,x,y)=>{C&&(C.row===x&&C.col===y||(C.row=x,C.col=y,C.address=i.n2l(y)+x))})}spliceRows(f,_,C,x){n.each(this.matrixMap,y=>{y.spliceRows(f,_,C,x),this.normaliseMatrix(y,f)})}spliceColumns(f,_,C,x){n.each(this.matrixMap,y=>{y.spliceColumns(f,_,C,x),this.normaliseMatrix(y,f)})}get model(){return n.map(this.matrixMap,(f,_)=>this.getRanges(_,f)).filter(f=>f.ranges.length)}set model(f){let _=this.matrixMap={};f.forEach(C=>{let x=_[C.name]=new s;C.ranges.forEach(y=>{u.test(y.split("!").pop()||"")&&x.addCell(y)})})}}},{"../utils/cell-matrix":18,"../utils/col-cache":19,"../utils/under-dash":26,"./range":10}],7:[function(e,o,t){"use strict";o.exports={ValueType:{Null:0,Merge:1,Number:2,String:3,Date:4,Hyperlink:5,Formula:6,SharedString:7,RichText:8,Boolean:9,Error:10},FormulaType:{None:0,Master:1,Shared:2},RelationshipType:{None:0,OfficeDocument:1,Worksheet:2,CalcChain:3,SharedStrings:4,Styles:5,Theme:6,Hyperlink:7},DocumentType:{Xlsx:1},ReadingOrder:{LeftToRight:1,RightToLeft:2},ErrorValue:{NotApplicable:"#N/A",Ref:"#REF!",Name:"#NAME?",DivZero:"#DIV/0!",Null:"#NULL!",Value:"#VALUE!",Num:"#NUM!"}}},{}],8:[function(e,o,t){"use strict";let n=e("../utils/col-cache"),i=e("./anchor");o.exports=class{constructor(s,d){this.worksheet=s,this.model=d}get model(){switch(this.type){case"background":return{type:this.type,imageId:this.imageId};case"image":return{type:this.type,imageId:this.imageId,hyperlinks:this.range.hyperlinks,range:{tl:this.range.tl.model,br:this.range.br&&this.range.br.model,ext:this.range.ext,editAs:this.range.editAs}};default:throw new Error("Invalid Image Type")}}set model(s){let{type:d,imageId:u,range:f,hyperlinks:_}=s;if(this.type=d,this.imageId=u,d==="image")if(typeof f=="string"){let C=n.decode(f);this.range={tl:new i(this.worksheet,{col:C.left,row:C.top},-1),br:new i(this.worksheet,{col:C.right,row:C.bottom},0),editAs:"oneCell"}}else this.range={tl:new i(this.worksheet,f.tl,0),br:f.br&&new i(this.worksheet,f.br,0),ext:f.ext,editAs:f.editAs,hyperlinks:_||f.hyperlinks}}}},{"../utils/col-cache":19,"./anchor":2}],9:[function(e,o,t){"use strict";let n=e("../utils/under-dash");class i{constructor(d){this.note=d}get model(){let d=null;switch(typeof this.note){case"string":d={type:"note",note:{texts:[{text:this.note}]}};break;default:d={type:"note",note:this.note}}return n.deepMerge({},i.DEFAULT_CONFIGS,d)}set model(d){let{note:u}=d,{texts:f}=u;f.length===1&&Object.keys(f[0]).length===1?this.note=f[0].text:this.note=u}static fromModel(d){let u=new i;return u.model=d,u}}i.DEFAULT_CONFIGS={note:{margins:{insetmode:"auto",inset:[.13,.13,.25,.25]},protection:{locked:"True",lockText:"True"},editAs:"absolute"}},o.exports=i},{"../utils/under-dash":26}],10:[function(e,o,t){"use strict";let n=e("../utils/col-cache");class i{constructor(){this.decode(arguments)}setTLBR(d,u,f,_,C){if(arguments.length<4){let x=n.decodeAddress(d),y=n.decodeAddress(u);this.model={top:Math.min(x.row,y.row),left:Math.min(x.col,y.col),bottom:Math.max(x.row,y.row),right:Math.max(x.col,y.col),sheetName:f},this.setTLBR(x.row,x.col,y.row,y.col,C)}else this.model={top:Math.min(d,f),left:Math.min(u,_),bottom:Math.max(d,f),right:Math.max(u,_),sheetName:C}}decode(d){switch(d.length){case 5:this.setTLBR(d[0],d[1],d[2],d[3],d[4]);break;case 4:this.setTLBR(d[0],d[1],d[2],d[3]);break;case 3:this.setTLBR(d[0],d[1],d[2]);break;case 2:this.setTLBR(d[0],d[1]);break;case 1:{let u=d[0];if(u instanceof i)this.model={top:u.model.top,left:u.model.left,bottom:u.model.bottom,right:u.model.right,sheetName:u.sheetName};else if(u instanceof Array)this.decode(u);else if(u.top&&u.left&&u.bottom&&u.right)this.model={top:u.top,left:u.left,bottom:u.bottom,right:u.right,sheetName:u.sheetName};else{let f=n.decodeEx(u);f.top?this.model={top:f.top,left:f.left,bottom:f.bottom,right:f.right,sheetName:f.sheetName}:this.model={top:f.row,left:f.col,bottom:f.row,right:f.col,sheetName:f.sheetName}}break}case 0:this.model={top:0,left:0,bottom:0,right:0};break;default:throw new Error("Invalid number of arguments to _getDimensions() - "+d.length)}}get top(){return this.model.top||1}set top(d){this.model.top=d}get left(){return this.model.left||1}set left(d){this.model.left=d}get bottom(){return this.model.bottom||1}set bottom(d){this.model.bottom=d}get right(){return this.model.right||1}set right(d){this.model.right=d}get sheetName(){return this.model.sheetName}set sheetName(d){this.model.sheetName=d}get _serialisedSheetName(){let{sheetName:d}=this.model;return d?/^[a-zA-Z0-9]*$/.test(d)?d+"!":`'${d}'!`:""}expand(d,u,f,_){(!this.model.top||dthis.bottom)&&(this.bottom=f),(!this.model.right||_>this.right)&&(this.right=_)}expandRow(d){if(d){let{dimensions:u,number:f}=d;u&&this.expand(f,u.min,f,u.max)}}expandToAddress(d){let u=n.decodeEx(d);this.expand(u.row,u.col,u.row,u.col)}get tl(){return n.n2l(this.left)+this.top}get $t$l(){return`$${n.n2l(this.left)}$${this.top}`}get br(){return n.n2l(this.right)+this.bottom}get $b$r(){return`$${n.n2l(this.right)}$${this.bottom}`}get range(){return`${this._serialisedSheetName+this.tl}:${this.br}`}get $range(){return`${this._serialisedSheetName+this.$t$l}:${this.$b$r}`}get shortRange(){return this.count>1?this.range:this._serialisedSheetName+this.tl}get $shortRange(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}get count(){return(1+this.bottom-this.top)*(1+this.right-this.left)}toString(){return this.range}intersects(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&!(d.bottomthis.bottom)&&!(d.rightthis.right)}contains(d){let u=n.decodeEx(d);return this.containsEx(u)}containsEx(d){return(!d.sheetName||!this.sheetName||d.sheetName===this.sheetName)&&d.row>=this.top&&d.row<=this.bottom&&d.col>=this.left&&d.col<=this.right}forEachAddress(d){for(let u=this.left;u<=this.right;u++)for(let f=this.top;f<=this.bottom;f++)d(n.encodeAddress(f,u),f,u)}}o.exports=i},{"../utils/col-cache":19}],11:[function(e,o,t){"use strict";let n=e("../utils/under-dash"),i=e("./enums"),s=e("../utils/col-cache"),d=e("./cell");o.exports=class{constructor(u,f){this._worksheet=u,this._number=f,this._cells=[],this.style={},this.outlineLevel=0}get number(){return this._number}get worksheet(){return this._worksheet}commit(){this._worksheet._commitRow(this)}destroy(){delete this._worksheet,delete this._cells,delete this.style}findCell(u){return this._cells[u-1]}getCellEx(u){let f=this._cells[u.col-1];if(!f){let _=this._worksheet.getColumn(u.col);f=new d(this,_,u.address),this._cells[u.col-1]=f}return f}getCell(u){if(typeof u=="string"){let f=this._worksheet.getColumnKey(u);u=f?f.number:s.l2n(u)}return this._cells[u-1]||this.getCellEx({address:s.encodeAddress(this._number,u),row:this._number,col:u})}splice(u,f){let _=u+f;for(var C=arguments.length,x=new Array(C>2?C-2:0),y=2;y0)for(M=S;M>=_;M--)D=this._cells[M-1],D?(k=this.getCell(M+P),k.value=D.value,k.style=D.style,k._comment=D._comment):this._cells[M+P-1]=void 0;for(M=0;M{_&&_.type!==i.ValueType.Null&&f(_,C+1)})}addPageBreak(u,f){let _=this._worksheet,C=Math.max(0,u-1)||0,x=Math.max(0,f-1)||16838,y={id:this._number,max:x,man:1};C&&(y.min=C),_.rowBreaks.push(y)}get values(){let u=[];return this._cells.forEach(f=>{f&&f.type!==i.ValueType.Null&&(u[f.col]=f.value)}),u}set values(u){if(this._cells=[],u)if(u instanceof Array){let f=0;u.hasOwnProperty("0")&&(f=1),u.forEach((_,C)=>{_!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,C+f),row:this._number,col:C+f}).value=_)})}else this._worksheet.eachColumnKey((f,_)=>{u[_]!==void 0&&(this.getCellEx({address:s.encodeAddress(this._number,f.number),row:this._number,col:f.number}).value=u[_])})}get hasValues(){return n.some(this._cells,u=>u&&u.type!==i.ValueType.Null)}get cellCount(){return this._cells.length}get actualCellCount(){let u=0;return this.eachCell(()=>{u++}),u}get dimensions(){let u=0,f=0;return this._cells.forEach(_=>{_&&_.type!==i.ValueType.Null&&((!u||u>_.col)&&(u=_.col),f<_.col&&(f=_.col))}),u>0?{min:u,max:f}:null}_applyStyle(u,f){return this.style[u]=f,this._cells.forEach(_=>{_&&(_[u]=f)}),f}get numFmt(){return this.style.numFmt}set numFmt(u){this._applyStyle("numFmt",u)}get font(){return this.style.font}set font(u){this._applyStyle("font",u)}get alignment(){return this.style.alignment}set alignment(u){this._applyStyle("alignment",u)}get protection(){return this.style.protection}set protection(u){this._applyStyle("protection",u)}get border(){return this.style.border}set border(u){this._applyStyle("border",u)}get fill(){return this.style.fill}set fill(u){this._applyStyle("fill",u)}get hidden(){return!!this._hidden}set hidden(u){this._hidden=u}get outlineLevel(){return this._outlineLevel||0}set outlineLevel(u){this._outlineLevel=u}get collapsed(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}get model(){let u=[],f=0,_=0;return this._cells.forEach(C=>{if(C){let x=C.model;x&&((!f||f>C.col)&&(f=C.col),_{switch(_.type){case d.Types.Merge:break;default:{let C;if(_.address)C=s.decodeAddress(_.address);else if(f){let{row:x}=f,y=f.col+1;C={row:x,col:y,address:s.encodeAddress(x,y),$col$row:`$${s.n2l(y)}$${x}`}}f=C,this.getCellEx(C).model=_;break}}}),u.height?this.height=u.height:delete this.height,this.hidden=u.hidden,this.outlineLevel=u.outlineLevel||0,this.style=u.style&&JSON.parse(JSON.stringify(u.style))||{}}}},{"../utils/col-cache":19,"../utils/under-dash":26,"./cell":3,"./enums":7}],12:[function(e,o,t){"use strict";let n=e("../utils/col-cache");class i{constructor(d,u,f){this.table=d,this.column=u,this.index=f}_set(d,u){this.table.cacheState(),this.column[d]=u}get name(){return this.column.name}set name(d){this._set("name",d)}get filterButton(){return this.column.filterButton}set filterButton(d){this.column.filterButton=d}get style(){return this.column.style}set style(d){this.column.style=d}get totalsRowLabel(){return this.column.totalsRowLabel}set totalsRowLabel(d){this._set("totalsRowLabel",d)}get totalsRowFunction(){return this.column.totalsRowFunction}set totalsRowFunction(d){this._set("totalsRowFunction",d)}get totalsRowResult(){return this.column.totalsRowResult}set totalsRowResult(d){this._set("totalsRowResult",d)}get totalsRowFormula(){return this.column.totalsRowFormula}set totalsRowFormula(d){this._set("totalsRowFormula",d)}}o.exports=class{constructor(s,d){this.worksheet=s,d&&(this.table=d,this.validate(),this.store())}getFormula(s){switch(s.totalsRowFunction){case"none":return null;case"average":return`SUBTOTAL(101,${this.table.name}[${s.name}])`;case"countNums":return`SUBTOTAL(102,${this.table.name}[${s.name}])`;case"count":return`SUBTOTAL(103,${this.table.name}[${s.name}])`;case"max":return`SUBTOTAL(104,${this.table.name}[${s.name}])`;case"min":return`SUBTOTAL(105,${this.table.name}[${s.name}])`;case"stdDev":return`SUBTOTAL(106,${this.table.name}[${s.name}])`;case"var":return`SUBTOTAL(107,${this.table.name}[${s.name}])`;case"sum":return`SUBTOTAL(109,${this.table.name}[${s.name}])`;case"custom":return s.totalsRowFormula;default:throw new Error("Invalid Totals Row Function: "+s.totalsRowFunction)}}get width(){return this.table.columns.length}get height(){return this.table.rows.length}get filterHeight(){return this.height+(this.table.headerRow?1:0)}get tableHeight(){return this.filterHeight+(this.table.totalsRow?1:0)}validate(){let{table:s}=this,d=(P,S,M)=>{P[S]===void 0&&(P[S]=M)};d(s,"headerRow",!0),d(s,"totalsRow",!1),d(s,"style",{}),d(s.style,"theme","TableStyleMedium2"),d(s.style,"showFirstColumn",!1),d(s.style,"showLastColumn",!1),d(s.style,"showRowStripes",!1),d(s.style,"showColumnStripes",!1);let u=(P,S)=>{if(!P)throw new Error(S)};u(s.ref,"Table must have ref"),u(s.columns,"Table must have column definitions"),u(s.rows,"Table must have row definitions"),s.tl=n.decodeAddress(s.ref);let{row:f,col:_}=s.tl;u(f>0,"Table must be on valid row"),u(_>0,"Table must be on valid col");let{width:C,filterHeight:x,tableHeight:y}=this;s.autoFilterRef=n.encode(f,_,f+x-1,_+C-1),s.tableRef=n.encode(f,_,f+y-1,_+C-1),s.columns.forEach((P,S)=>{u(P.name,`Column ${S} must have a name`),S===0?d(P,"totalsRowLabel","Total"):(d(P,"totalsRowFunction","none"),P.totalsRowFormula=this.getFormula(P))})}store(){let s=(x,y)=>{y&&Object.keys(y).forEach(P=>{x[P]=y[P]})},{worksheet:d,table:u}=this,{row:f,col:_}=u.tl,C=0;if(u.headerRow){let x=d.getRow(f+C++);u.columns.forEach((y,P)=>{let{style:S,name:M}=y,D=x.getCell(_+P);D.value=M,s(D,S)})}if(u.rows.forEach(x=>{let y=d.getRow(f+C++);x.forEach((P,S)=>{let M=y.getCell(_+S);M.value=P,s(M,u.columns[S].style)})}),u.totalsRow){let x=d.getRow(f+C++);u.columns.forEach((y,P)=>{let S=x.getCell(_+P);if(P===0)S.value=y.totalsRowLabel;else{let M=this.getFormula(y);S.value=M?{formula:y.totalsRowFormula,result:y.totalsRowResult}:null}s(S,y.style)})}}load(s){let{table:d}=this,{row:u,col:f}=d.tl,_=0;if(d.headerRow){let C=s.getRow(u+_++);d.columns.forEach((x,y)=>{C.getCell(f+y).value=x.name})}if(d.rows.forEach(C=>{let x=s.getRow(u+_++);C.forEach((y,P)=>{x.getCell(f+P).value=y})}),d.totalsRow){let C=s.getRow(u+_++);d.columns.forEach((x,y)=>{let P=C.getCell(f+y);y===0?P.value=x.totalsRowLabel:this.getFormula(x)&&(P.value={formula:x.totalsRowFormula,result:x.totalsRowResult})})}}get model(){return this.table}set model(s){this.table=s}cacheState(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}commit(){if(!this._cache)return;this.validate();let s=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(let d=0;d1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(s,d)}getColumn(s){let d=this.table.columns[s];return new i(this,d,s)}addColumn(s,d,u){this.cacheState(),u===void 0?(this.table.columns.push(s),this.table.rows.forEach((f,_)=>{f.push(d[_])})):(this.table.columns.splice(u,0,s),this.table.rows.forEach((f,_)=>{f.splice(u,0,d[_])}))}removeColumns(s){let d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(s,d),this.table.rows.forEach(u=>{u.splice(s,d)})}_assign(s,d,u){this.cacheState(),s[d]=u}get ref(){return this.table.ref}set ref(s){this._assign(this.table,"ref",s)}get name(){return this.table.name}set name(s){this.table.name=s}get displayName(){return this.table.displyName||this.table.name}set displayNamename(s){this.table.displayName=s}get headerRow(){return this.table.headerRow}set headerRow(s){this._assign(this.table,"headerRow",s)}get totalsRow(){return this.table.totalsRow}set totalsRow(s){this._assign(this.table,"totalsRow",s)}get theme(){return this.table.style.name}set theme(s){this.table.style.name=s}get showFirstColumn(){return this.table.style.showFirstColumn}set showFirstColumn(s){this.table.style.showFirstColumn=s}get showLastColumn(){return this.table.style.showLastColumn}set showLastColumn(s){this.table.style.showLastColumn=s}get showRowStripes(){return this.table.style.showRowStripes}set showRowStripes(s){this.table.style.showRowStripes=s}get showColumnStripes(){return this.table.style.showColumnStripes}set showColumnStripes(s){this.table.style.showColumnStripes=s}}},{"../utils/col-cache":19}],13:[function(e,o,t){"use strict";let n=e("./worksheet"),i=e("./defined-names"),s=e("../xlsx/xlsx"),d=e("../csv/csv");o.exports=class{constructor(){this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new i}get xlsx(){return this._xlsx||(this._xlsx=new s(this)),this._xlsx}get csv(){return this._csv||(this._csv=new d(this)),this._csv}get nextId(){for(let u=1;u(S&&S.orderNo)>P?S.orderNo:P,0),x=Object.assign({},f,{id:_,name:u,orderNo:C+1,workbook:this}),y=new n(x);return this._worksheets[_]=y,y}removeWorksheetEx(u){delete this._worksheets[u.id]}removeWorksheet(u){let f=this.getWorksheet(u);f&&f.destroy()}getWorksheet(u){return u===void 0?this._worksheets.find(Boolean):typeof u=="number"?this._worksheets[u]:typeof u=="string"?this._worksheets.find(f=>f&&f.name===u):void 0}get worksheets(){return this._worksheets.slice(1).sort((u,f)=>u.orderNo-f.orderNo).filter(Boolean)}eachSheet(u){this.worksheets.forEach(f=>{u(f,f.id)})}get definedNames(){return this._definedNames}clearThemes(){this._themes=void 0}addImage(u){let f=this.media.length;return this.media.push(Object.assign({},u,{type:"image"})),f}getImage(u){return this.media[u]}get model(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(u=>u.model),sheets:this.worksheets.map(u=>u.model).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}}set model(u){this.creator=u.creator,this.lastModifiedBy=u.lastModifiedBy,this.lastPrinted=u.lastPrinted,this.created=u.created,this.modified=u.modified,this.company=u.company,this.manager=u.manager,this.title=u.title,this.subject=u.subject,this.keywords=u.keywords,this.category=u.category,this.description=u.description,this.language=u.language,this.revision=u.revision,this.contentStatus=u.contentStatus,this.properties=u.properties,this.calcProperties=u.calcProperties,this._worksheets=[],u.worksheets.forEach(f=>{let{id:_,name:C,state:x}=f,y=u.sheets&&u.sheets.findIndex(P=>P.id===_);(this._worksheets[_]=new n({id:_,name:C,orderNo:y,state:x,workbook:this})).model=f}),this._definedNames.model=u.definedNames,this.views=u.views,this._themes=u.themes,this.media=u.media||[]}}},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,o,t){"use strict";let n=e("../utils/under-dash"),i=e("../utils/col-cache"),s=e("./range"),d=e("./row"),u=e("./column"),f=e("./enums"),_=e("./image"),C=e("./table"),x=e("./data-validations"),y=e("../utils/encryptor"),{copyStyle:P}=e("../utils/copy-style");o.exports=class{constructor(S){S=S||{},this._workbook=S.workbook,this.id=S.id,this.orderNo=S.orderNo,this.name=S.name,this.state=S.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},S.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!S.pageSetup||!S.pageSetup.fitToWidth&&!S.pageSetup.fitToHeight||S.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},S.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},S.headerFooter),this.dataValidations=new x,this.views=S.views||[],this.autoFilter=S.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}get name(){return this._name}set name(S){if(S===void 0&&(S="sheet"+this.id),this._name!==S){if(typeof S!="string")throw new Error("The name has to be a string.");if(S==="")throw new Error("The name can't be empty.");if(S==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(S))throw new Error(`Worksheet name ${S} cannot include any of the following characters: * ? : \\ / [ ]`);if(/(^')|('$)/.test(S))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: "+S);if(S&&S.length>31&&(console.warn(`Worksheet name ${S} exceeds 31 chars. This will be truncated`),S=S.substring(0,31)),this._workbook._worksheets.find(M=>M&&M.name.toLowerCase()===S.toLowerCase()))throw new Error("Worksheet name already exists: "+S);this._name=S}}get workbook(){return this._workbook}destroy(){this._workbook.removeWorksheetEx(this)}get dimensions(){let S=new s;return this._rows.forEach(M=>{if(M){let D=M.dimensions;D&&S.expand(M.number,D.min,M.number,D.max)}}),S}get columns(){return this._columns}set columns(S){this._headerRowCount=S.reduce((k,z)=>{let U=(z.header?1:z.headers&&z.headers.length)||0;return Math.max(k,U)},0);let M=1,D=this._columns=[];S.forEach(k=>{let z=new u(this,M++,!1);D.push(z),z.defn=k})}getColumnKey(S){return this._keys[S]}setColumnKey(S,M){this._keys[S]=M}deleteColumnKey(S){delete this._keys[S]}eachColumnKey(S){n.each(this._keys,S)}getColumn(S){if(typeof S=="string"){let M=this._keys[S];if(M)return M;S=i.l2n(S)}if(this._columns||(this._columns=[]),S>this._columns.length){let M=this._columns.length+1;for(;M<=S;)this._columns.push(new u(this,M++))}return this._columns[S-1]}spliceColumns(S,M){let D=this._rows.length;for(var k=arguments.length,z=new Array(k>2?k-2:0),U=2;U0)for(let ae=0;ae{se.push(de[ae]||null)});let _e=this.getRow(ae+1);_e.splice.apply(_e,se)}else this._rows.forEach(ae=>{ae&&ae.splice(S,M)});let J=z.length-M,re=S+M,ee=this._columns.length;if(J<0)for(let ae=S+z.length;ae<=ee;ae++)this.getColumn(ae).defn=this.getColumn(ae-J).defn;else if(J>0)for(let ae=ee;ae>=re;ae--)this.getColumn(ae+J).defn=this.getColumn(ae).defn;for(let ae=S;ae{S=Math.max(S,M.cellCount)}),S}get actualColumnCount(){let S=[],M=0;return this.eachRow(D=>{D.eachCell(k=>{let{col:z}=k;S[z]||(S[z]=!0,M++)})}),M}_commitRow(){}get _lastRowNumber(){let S=this._rows,M=S.length;for(;M>0&&S[M-1]===void 0;)M--;return M}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(S){return this._rows[S-1]}findRows(S,M){return this._rows.slice(S-1,S-1+M)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let S=0;return this.eachRow(()=>{S++}),S}getRow(S){let M=this._rows[S-1];return M||(M=this._rows[S-1]=new d(this,S)),M}getRows(S,M){if(M<1)return;let D=[];for(let k=S;k1&&arguments[1]!==void 0?arguments[1]:"n",D=this._nextRow,k=this.getRow(D);return k.values=S,this._setStyleOption(D,M[0]==="i"?M:"n"),k}addRows(S){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",D=[];return S.forEach(k=>{D.push(this.addRow(k,M))}),D}insertRow(S,M){let D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(S,0,M),this._setStyleOption(S,D),this.getRow(S)}insertRows(S,M){let D=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(S,0,...M),D!=="n")for(let k=0;k1&&arguments[1]!==void 0?arguments[1]:"n";M[0]==="o"&&this.findRow(S+1)!==void 0?this._copyStyle(S+1,S,M[1]==="+"):M[0]==="i"&&this.findRow(S-1)!==void 0&&this._copyStyle(S-1,S,M[1]==="+")}_copyStyle(S,M){let D=arguments.length>2&&arguments[2]!==void 0&&arguments[2],k=this.getRow(S),z=this.getRow(M);z.style=P(k.style),k.eachCell({includeEmpty:D},(U,J)=>{z.getCell(J).style=P(U.style)}),z.height=k.height}duplicateRow(S,M){let D=arguments.length>2&&arguments[2]!==void 0&&arguments[2],k=this._rows[S-1],z=new Array(M).fill(k.values);this.spliceRows(S+1,D?0:M,...z);for(let U=0;U{J.getCell(ee).style=re.style})}}spliceRows(S,M){let D=S+M;for(var k=arguments.length,z=new Array(k>2?k-2:0),U=2;U{_e.getCell(j).style=de.style}),this._rows[ae-1]=void 0}else this._rows[ae+re-1]=void 0;else if(re>0)for(ae=ee;ae>=D;ae--)if(se=this._rows[ae-1],se){let _e=this.getRow(ae+re);_e.values=se.values,_e.style=se.style,_e.height=se.height,se.eachCell({includeEmpty:!0},(de,j)=>{if(_e.getCell(j).style=de.style,de._value.constructor.name==="MergeValue"){let W=this.getRow(de._row._number+J).getCell(j),pe=de._value._master,O=this.getRow(pe._row._number+J).getCell(pe._column._number);W.merge(O)}})}else this._rows[ae+re-1]=void 0;for(ae=0;ae{D&&D.hasValues&&M(D,D.number)})}getSheetValues(){let S=[];return this._rows.forEach(M=>{M&&(S[M.number]=M.values)}),S}findCell(S,M){let D=i.getAddress(S,M),k=this._rows[D.row-1];return k?k.findCell(D.col):void 0}getCell(S,M){let D=i.getAddress(S,M);return this.getRow(D.row).getCellEx(D)}mergeCells(){for(var S=arguments.length,M=new Array(S),D=0;D{if(k.intersects(S))throw new Error("Cannot merge already merged cells")});let D=this.getCell(S.top,S.left);for(let k=S.top;k<=S.bottom;k++)for(let z=S.left;z<=S.right;z++)(k>S.top||z>S.left)&&this.getCell(k,z).merge(D,M);this._merges[D.address]=S}_unMergeMaster(S){let M=this._merges[S.address];if(M){for(let D=M.top;D<=M.bottom;D++)for(let k=M.left;k<=M.right;k++)this.getCell(D,k).unmerge();delete this._merges[S.address]}}get hasMerges(){return n.some(this._merges,Boolean)}unMergeCells(){for(var S=arguments.length,M=new Array(S),D=0;D3&&arguments[3]!==void 0?arguments[3]:"shared",z=i.decode(S),{top:U,left:J,bottom:re,right:ee}=z,ae=ee-J+1,se=i.encodeAddress(U,J),_e=k==="shared",de;de=typeof D=="function"?D:Array.isArray(D)?Array.isArray(D[0])?(W,pe)=>D[W-U][pe-J]:(W,pe)=>D[(W-U)*ae+(pe-J)]:()=>{};let j=!0;for(let W=U;W<=re;W++)for(let pe=J;pe<=ee;pe++)j?(this.getCell(W,pe).value={shareType:k,formula:M,ref:S,result:de(W,pe)},j=!1):this.getCell(W,pe).value=_e?{sharedFormula:se,result:de(W,pe)}:de(W,pe)}addImage(S,M){let D={type:"image",imageId:S,range:M};this._media.push(new _(this,D))}getImages(){return this._media.filter(S=>S.type==="image")}addBackgroundImage(S){let M={type:"background",imageId:S};this._media.push(new _(this,M))}getBackgroundImageId(){let S=this._media.find(M=>M.type==="background");return S&&S.imageId}protect(S,M){return new Promise(D=>{this.sheetProtection={sheet:!0},M&&"spinCount"in M&&(M.spinCount=Number.isFinite(M.spinCount)?Math.round(Math.max(0,M.spinCount)):1e5),S&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=y.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=M&&"spinCount"in M?M.spinCount:1e5,this.sheetProtection.hashValue=y.convertPasswordToHash(S,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),M&&(this.sheetProtection=Object.assign(this.sheetProtection,M),!S&&"spinCount"in M&&delete this.sheetProtection.spinCount),D()})}unprotect(){this.sheetProtection=null}addTable(S){let M=new C(this,S);return this.tables[S.name]=M,M}getTable(S){return this.tables[S]}removeTable(S){delete this.tables[S]}getTables(){return Object.values(this.tables)}addConditionalFormatting(S){this.conditionalFormattings.push(S)}removeConditionalFormatting(S){typeof S=="number"?this.conditionalFormattings.splice(S,1):this.conditionalFormattings=S instanceof Function?this.conditionalFormattings.filter(S):[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(S){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=S}get model(){let S={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(k=>k.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(k=>k.model),conditionalFormattings:this.conditionalFormattings};S.cols=u.toModel(this.columns);let M=S.rows=[],D=S.dimensions=new s;return this._rows.forEach(k=>{let z=k&&k.model;z&&(D.expand(z.number,z.min,z.number,z.max),M.push(z))}),S.merges=[],n.each(this._merges,k=>{S.merges.push(k.range)}),S}_parseRows(S){this._rows=[],S.rows.forEach(M=>{let D=new d(this,M.number);this._rows[D.number-1]=D,D.model=M})}_parseMergeCells(S){n.each(S.mergeCells,M=>{this.mergeCellsWithoutStyle(M)})}set model(S){this.name=S.name,this._columns=u.fromModel(this,S.cols),this._parseRows(S),this._parseMergeCells(S),this.dataValidations=new x(S.dataValidations),this.properties=S.properties,this.pageSetup=S.pageSetup,this.headerFooter=S.headerFooter,this.views=S.views,this.autoFilter=S.autoFilter,this._media=S.media.map(M=>new _(this,M)),this.sheetProtection=S.sheetProtection,this.tables=S.tables.reduce((M,D)=>{let k=new C;return k.model=D,M[D.name]=k,M},{}),this.conditionalFormattings=S.conditionalFormattings}}},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,o,t){"use strict";e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");let n={Workbook:e("./doc/workbook")},i=e("./doc/enums");Object.keys(i).forEach(s=>{n[s]=i[s]}),o.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,o,t){"use strict";let n=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");t.bufferToString=function(i){return typeof i=="string"?i:n?n.decode(i):i.toString()}},{}],17:[function(e,o,t){"use strict";let n=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:i}=e("buffer");t.stringToBuffer=function(s){return typeof s!="string"?s:n?i.from(n.encode(s).buffer):i.from(s)}},{buffer:220}],18:[function(e,o,t){"use strict";let n=e("./under-dash"),i=e("./col-cache");o.exports=class{constructor(s){this.template=s,this.sheets={}}addCell(s){this.addCellEx(i.decodeEx(s))}getCell(s){return this.findCellEx(i.decodeEx(s),!0)}findCell(s){return this.findCellEx(i.decodeEx(s),!1)}findCellAt(s,d,u){let f=this.sheets[s],_=f&&f[d];return _&&_[u]}addCellEx(s){if(s.top)for(let d=s.top;d<=s.bottom;d++)for(let u=s.left;u<=s.right;u++)this.getCellAt(s.sheetName,d,u);else this.findCellEx(s,!0)}getCellEx(s){return this.findCellEx(s,!0)}findCellEx(s,d){let u=this.findSheet(s,d),f=this.findSheetRow(u,s,d);return this.findRowCell(f,s,d)}getCellAt(s,d,u){let f=this.sheets[s]||(this.sheets[s]=[]),_=f[d]||(f[d]=[]);return _[u]||(_[u]={sheetName:s,address:i.n2l(u)+d,row:d,col:u})}removeCellEx(s){let d=this.findSheet(s);if(!d)return;let u=this.findSheetRow(d,s);u&&delete u[s.col]}forEachInSheet(s,d){let u=this.sheets[s];u&&u.forEach((f,_)=>{f&&f.forEach((C,x)=>{C&&d(C,_,x)})})}forEach(s){n.each(this.sheets,(d,u)=>{this.forEachInSheet(u,s)})}map(s){let d=[];return this.forEach(u=>{d.push(s(u))}),d}findSheet(s,d){let u=s.sheetName;return this.sheets[u]?this.sheets[u]:d?this.sheets[u]=[]:void 0}findSheetRow(s,d,u){let{row:f}=d;return s&&s[f]?s[f]:u?s[f]=[]:void 0}findRowCell(s,d,u){let{col:f}=d;return s&&s[f]?s[f]:u?s[f]=this.template?Object.assign(d,JSON.parse(JSON.stringify(this.template))):d:void 0}spliceRows(s,d,u,f){let _=this.sheets[s];if(_){let C=[];for(let x=0;x{x.splice(d,u,...C)})}}}},{"./col-cache":19,"./under-dash":26}],19:[function(e,o,t){"use strict";let n=/^[A-Z]+\d+$/,i={_dictionary:["A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"],_l2nFill:0,_l2n:{},_n2l:[],_level:s=>s<=26?1:s<=676?2:3,_fill(s){let d,u,f,_,C,x=1;if(s>=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&s>=1){for(;x<=26;)d=this._dictionary[x-1],this._n2l[x]=d,this._l2n[d]=x,x++;this._l2nFill=1}if(this._l2nFill<2&&s>=2){for(x=27;x<=702;)u=x-27,f=u%26,_=Math.floor(u/26),d=this._dictionary[_]+this._dictionary[f],this._n2l[x]=d,this._l2n[d]=x,x++;this._l2nFill=2}if(this._l2nFill<3&&s>=3){for(x=703;x<=16384;)u=x-703,f=u%26,_=Math.floor(u/26)%26,C=Math.floor(u/676),d=this._dictionary[C]+this._dictionary[_]+this._dictionary[f],this._n2l[x]=d,this._l2n[d]=x,x++;this._l2nFill=3}},l2n(s){if(this._l2n[s]||this._fill(s.length),!this._l2n[s])throw new Error("Out of bounds. Invalid column letter: "+s);return this._l2n[s]},n2l(s){if(s<1||s>16384)throw new Error(s+" is out of bounds. Excel supports columns from 1 to 16384");return this._n2l[s]||this._fill(this._level(s)),this._n2l[s]},_hash:{},validateAddress(s){if(!n.test(s))throw new Error("Invalid Address: "+s);return!0},decodeAddress(s){let d=s.length<5&&this._hash[s];if(d)return d;let u=!1,f="",_=0,C=!1,x="",y=0;for(let S,M=0;M=65&&S<=90)u=!0,f+=s[M],_=26*_+S-64;else if(S>=48&&S<=57)C=!0,x+=s[M],y=10*y+S-48;else if(C&&u&&S!==36)break;if(u){if(_>16384)throw new Error("Out of bounds. Invalid column letter: "+f)}else _=void 0;C||(y=void 0);let P={address:s=f+x,col:_,row:y,$col$row:`$${f}$${x}`};return _<=100&&y<=100&&(this._hash[s]=P,this._hash[P.$col$row]=P),P},getAddress(s,d){if(d){let u=this.n2l(d)+s;return this.decodeAddress(u)}return this.decodeAddress(s)},decode(s){let d=s.split(":");if(d.length===2){let u=this.decodeAddress(d[0]),f=this.decodeAddress(d[1]),_={top:Math.min(u.row,f.row),left:Math.min(u.col,f.col),bottom:Math.max(u.row,f.row),right:Math.max(u.col,f.col)};return _.tl=this.n2l(_.left)+_.top,_.br=this.n2l(_.right)+_.bottom,_.dimensions=`${_.tl}:${_.br}`,_}return this.decodeAddress(s)},decodeEx(s){let d=s.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),u=d[1]||d[2],f=d[3],_=f.split(":");if(_.length>1){let x=this.decodeAddress(_[0]),y=this.decodeAddress(_[1]),P=Math.min(x.row,y.row),S=Math.min(x.col,y.col),M=Math.max(x.row,y.row),D=Math.max(x.col,y.col);return x=this.n2l(S)+P,y=this.n2l(D)+M,{top:P,left:S,bottom:M,right:D,sheetName:u,tl:{address:x,col:S,row:P,$col$row:`$${this.n2l(S)}$${P}`,sheetName:u},br:{address:y,col:D,row:M,$col$row:`$${this.n2l(D)}$${M}`,sheetName:u},dimensions:`${x}:${y}`}}if(f.startsWith("#"))return u?{sheetName:u,error:f}:{error:f};let C=this.decodeAddress(f);return u?at({sheetName:u},C):C},encodeAddress:(s,d)=>i.n2l(d)+s,encode(){switch(arguments.length){case 2:return i.encodeAddress(arguments[0],arguments[1]);case 4:return`${i.encodeAddress(arguments[0],arguments[1])}:${i.encodeAddress(arguments[2],arguments[3])}`;default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange(s,d){let[u,f,,_,C]=s,[x,y]=d;return x>=u&&x<=_&&y>=f&&y<=C}};o.exports=i},{}],20:[function(e,o,t){"use strict";let n=(s,d)=>at(at({},s),d.reduce((u,f)=>(s[f]&&(u[f]=at({},s[f])),u),{})),i=function(s,d,u){let f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];s[u]&&(d[u]=n(s[u],f))};t.copyStyle=s=>{if(!s)return s;if(d=s,Object.keys(d).length===0)return{};var d;let u=at({},s);return i(s,u,"font",["color"]),i(s,u,"alignment"),i(s,u,"protection"),s.border&&(i(s,u,"border"),i(s.border,u.border,"top",["color"]),i(s.border,u.border,"left",["color"]),i(s.border,u.border,"bottom",["color"]),i(s.border,u.border,"right",["color"]),i(s.border,u.border,"diagonal",["color"])),s.fill&&(i(s,u,"fill",["fgColor","bgColor","center"]),s.fill.stops&&(u.fill.stops=s.fill.stops.map(f=>n(f,["color"])))),u}},{}],21:[function(e,o,t){(function(n){(function(){"use strict";let i=e("crypto"),s={hash(d){let u=i.createHash(d);for(var f=arguments.length,_=new Array(f>1?f-1:0),C=1;Ci.randomBytes(d)};o.exports=s}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220,crypto:390}],22:[function(e,o,t){"use strict";let{SaxesParser:n}=e("saxes"),{PassThrough:i}=e("readable-stream"),{bufferToString:s}=e("./browser-buffer-decode");o.exports=function(d){return J7(this,null,function*(){d.pipe&&!d[Symbol.asyncIterator]&&(d=d.pipe(new i));let u=new n,f;u.on("error",S=>{f=S});let _=[];u.on("opentag",S=>_.push({eventType:"opentag",value:S})),u.on("text",S=>_.push({eventType:"text",value:S})),u.on("closetag",S=>_.push({eventType:"closetag",value:S}));try{for(var C=dg(d),x,y,P;x=!(y=yield new IT(C.next())).done;x=!1){let S=y.value;if(u.write(s(S)),f)throw f;yield _,_=[]}}catch{P=[y]}finally{try{x&&(y=C.return)&&(yield new IT(y.call(C)))}finally{if(P)throw P[0]}}})}},{"./browser-buffer-decode":16,"readable-stream":491,saxes:496}],23:[function(e,o,t){"use strict";let n=e("./col-cache"),i=/(([a-z_\-0-9]*)!)?([a-z0-9_$]{2,})([(])?/gi,s=/^([$])?([a-z]+)([$])?([1-9][0-9]*)$/i;o.exports={slideFormula:function(d,u,f){let _=n.decode(u),C=n.decode(f);return d.replace(i,(x,y,P,S,M)=>{if(M)return x;let D=s.exec(S);if(D){let k=D[1],z=D[2].toUpperCase(),U=D[3],J=D[4];if(z.length>3||z.length===3&&z>"XFD")return x;let re=n.l2n(z),ee=parseInt(J,10);return k||(re+=C.col-_.col),U||(ee+=C.row-_.row),(y||"")+(k||"")+n.n2l(re)+(U||"")+ee}return x})}}},{"./col-cache":19}],24:[function(e,o,t){(function(n,i){(function(){"use strict";let s=e("readable-stream"),d=e("./utils"),u=e("./string-buf");class f{constructor(M,D){this._data=M,this._encoding=D}get length(){return this.toBuffer().length}copy(M,D,k,z){return this.toBuffer().copy(M,D,k,z)}toBuffer(){return this._buffer||(this._buffer=i.from(this._data,this._encoding)),this._buffer}}class _{constructor(M){this._data=M}get length(){return this._data.length}copy(M,D,k,z){return this._data._buf.copy(M,D,k,z)}toBuffer(){return this._data.toBuffer()}}class C{constructor(M){this._data=M}get length(){return this._data.length}copy(M,D,k,z){this._data.copy(M,D,k,z)}toBuffer(){return this._data}}class x{constructor(M){this.size=M,this.buffer=i.alloc(M),this.iRead=0,this.iWrite=0}toBuffer(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;let M=i.alloc(this.iWrite-this.iRead);return this.buffer.copy(M,0,this.iRead,this.iWrite),M}get length(){return this.iWrite-this.iRead}get eod(){return this.iRead===this.iWrite}get full(){return this.iWrite===this.size}read(M){let D;return M===0?null:M===void 0||M>=this.length?(D=this.toBuffer(),this.iRead=this.iWrite,D):(D=i.alloc(M),this.buffer.copy(D,0,this.iRead,M),this.iRead+=M,D)}write(M,D,k){let z=Math.min(k,this.size-this.iWrite);return M.copy(this.buffer,this.iWrite,D,D+z),this.iWrite+=z,z}}let y=function(S){S=S||{},this.bufSize=S.bufSize||1048576,this.buffers=[],this.batch=S.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};d.inherits(y,s.Duplex,{toBuffer(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return i.concat(this.buffers.map(S=>S.toBuffer()))}},_getWritableBuffer(){if(this.buffers.length){let M=this.buffers[this.buffers.length-1];if(!M.full)return M}let S=new x(this.bufSize);return this.buffers.push(S),S},_pipe(S){return qn(this,null,function*(){yield Promise.all(this.pipes.map(function(M){return new Promise(D=>{M.write(S.toBuffer(),()=>{D()})})}))})},_writeToBuffers(S){let M=0,D=S.length;for(;M1;)this._pipe(this.buffers.shift());else this.corked?(this._writeToBuffers(k),n.nextTick(D)):(yield this._pipe(k),D());else this.paused||this.emit("data",k.toBuffer()),this._writeToBuffers(k),this.emit("readable");return!0})},cork(){this.corked=!0},_flush(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork(){this.corked=!1,this._flush()},end(S,M,D){let k=z=>{z?D(z):(this._flush(),this.pipes.forEach(U=>{U.end()}),this.emit("finish"))};S?this.write(S,M,k):k()},read(S){let M;if(S){for(M=[];S&&this.buffers.length&&!this.buffers[0].eod;){let D=this.buffers[0],k=D.read(S);S-=k.length,M.push(k),D.eod&&D.full&&this.buffers.shift()}return i.concat(M)}return M=this.buffers.map(D=>D.toBuffer()).filter(Boolean),this.buffers=[],i.concat(M)},setEncoding(S){this.encoding=S},pause(){this.paused=!0},resume(){this.paused=!1},isPaused(){return!!this.paused},pipe(S){this.pipes.push(S),!this.paused&&this.buffers.length&&this.end()},unpipe(S){this.pipes=this.pipes.filter(M=>M!==S)},unshift(){throw new Error("Not Implemented")},wrap(){throw new Error("Not Implemented")}}),o.exports=y}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,o,t){(function(n){(function(){"use strict";o.exports=class{constructor(i){this._buf=n.alloc(i&&i.size||16384),this._encoding=i&&i.encoding||"utf8",this._inPos=0,this._buffer=void 0}get length(){return this._inPos}get capacity(){return this._buf.length}get buffer(){return this._buf}toBuffer(){return this._buffer||(this._buffer=n.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}reset(i){i=i||0,this._buffer=void 0,this._inPos=i}_grow(i){let s=2*this._buf.length;for(;s=this._buf.length-4;)this._grow(this._inPos+i.length),s=this._inPos+this._buf.write(i,this._inPos,this._encoding);this._inPos=s}addStringBuf(i){i.length&&(this._buffer=void 0,this.length+i.length>this.capacity&&this._grow(this.length+i.length),i._buf.copy(this._buf,this._inPos,0,i.length),this._inPos+=i.length)}}}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,o,t){"use strict";let{toString:n}=Object.prototype,i=/["&<>]/,s={each:function(d,u){d&&(Array.isArray(d)?d.forEach(u):Object.keys(d).forEach(f=>{u(d[f],f)}))},some:function(d,u){return!!d&&(Array.isArray(d)?d.some(u):Object.keys(d).some(f=>u(d[f],f)))},every:function(d,u){return!d||(Array.isArray(d)?d.every(u):Object.keys(d).every(f=>u(d[f],f)))},map:function(d,u){return d?Array.isArray(d)?d.map(u):Object.keys(d).map(f=>u(d[f],f)):[]},keyBy:(d,u)=>d.reduce((f,_)=>(f[_[u]]=_,f),{}),isEqual:function(d,u){let f=typeof d,_=typeof u,C=Array.isArray(d),x=Array.isArray(u),y;if(f!==_)return!1;switch(typeof d){case"object":if(C||x)return!(!C||!x)&&d.length===u.length&&d.every((P,S)=>{let M=u[S];return s.isEqual(P,M)});if(d===null||u===null)return d===u;if(y=Object.keys(d),Object.keys(u).length!==y.length)return!1;for(let P of y)if(!u.hasOwnProperty(P))return!1;return s.every(d,(P,S)=>{let M=u[S];return s.isEqual(P,M)});default:return d===u}},escapeHtml(d){let u=i.exec(d);if(!u)return d;let f="",_="",C=0,x=u.index;for(;x":_=">";break;default:continue}C!==x&&(f+=d.substring(C,x)),C=x+1,f+=_}return C!==x?f+d.substring(C,x):f},strcmp:(d,u)=>du?1:0,isUndefined:d=>n.call(d)==="[object Undefined]",isObject:d=>n.call(d)==="[object Object]",deepMerge(){let d=arguments[0]||{},{length:u}=arguments,f,_,C;function x(y,P){f=d[P],C=Array.isArray(y),s.isObject(y)||C?(C?(C=!1,_=f&&Array.isArray(f)?f:[]):_=f&&s.isObject(f)?f:{},d[P]=s.deepMerge(_,y)):s.isUndefined(y)||(d[P]=y)}for(let y=0;y&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,u={nop(){},promiseImmediate:f=>new Promise(_=>{n.setImmediate?i(()=>{_(f)}):setTimeout(()=>{_(f)},1)}),inherits:function(f,_,C,x){f.super_=_,x||(x=C,C=null),C&&Object.keys(C).forEach(P=>{Object.defineProperty(f,P,Object.getOwnPropertyDescriptor(C,P))});let y={constructor:{value:f,enumerable:!1,writable:!1,configurable:!0}};x&&Object.keys(x).forEach(P=>{y[P]=Object.getOwnPropertyDescriptor(x,P)}),f.prototype=Object.create(_.prototype,y)},dateToExcel:(f,_)=>25569+f.getTime()/864e5-(_?1462:0),excelToDate(f,_){let C=Math.round(24*(f-25569+(_?1462:0))*3600*1e3);return new Date(C)},parsePath(f){let _=f.lastIndexOf("/");return{path:f.substring(0,_),name:f.substring(_+1)}},getRelsPath(f){let _=u.parsePath(f);return`${_.path}/_rels/${_.name}.rels`},xmlEncode(f){let _=d.exec(f);if(!_)return f;let C="",x="",y=0,P=_.index;for(;P=11&&S!==13)){x="";break}continue}y!==P&&(C+=f.substring(y,P)),y=P+1,x&&(C+=x)}return y!==P?C+f.substring(y,P):C},xmlDecode:f=>f.replace(/&([a-z]*);/g,_=>{switch(_){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return _}}),validInt(f){let _=parseInt(f,10);return Number.isNaN(_)?0:_},isDateFmt(f){return f?(f=(f=f.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null:!1},fs:{exists:f=>new Promise(_=>{s.access(f,s.constants.F_OK,C=>{_(!C)})})},toIsoDateString:f=>f.toIsoString().subsstr(0,10),parseBoolean:f=>f===!0||f==="true"||f===1||f==="1"};o.exports=u}).call(this)}).call(this,typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,o,t){"use strict";let n=e("./under-dash"),i=e("./utils");function s(f,_,C){f.push(` ${_}="${i.xmlEncode(C.toString())}"`)}function d(f,_){if(_){let C=[];n.each(_,(x,y)=>{x!==void 0&&s(C,y,x)}),f.push(C.join(""))}}class u{constructor(){this._xml=[],this._stack=[],this._rollbacks=[]}get tos(){return this._stack.length?this._stack[this._stack.length-1]:void 0}get cursor(){return this._xml.length}openXml(_){let C=this._xml;C.push(" `)}openNode(_,C){let x=this.tos,y=this._xml;x&&this.open&&y.push(">"),this._stack.push(_),y.push("<"),y.push(_),d(y,C),this.leaf=!0,this.open=!0}addAttribute(_,C){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");C!==void 0&&s(this._xml,_,C)}addAttributes(_){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");d(this._xml,_)}writeText(_){let C=this._xml;this.open&&(C.push(">"),this.open=!1),this.leaf=!1,C.push(i.xmlEncode(_.toString()))}writeXml(_){this.open&&(this._xml.push(">"),this.open=!1),this.leaf=!1,this._xml.push(_)}closeNode(){let _=this._stack.pop(),C=this._xml;this.leaf?C.push("/>"):(C.push("")),this.open=!1,this.leaf=!1}leafNode(_,C,x){this.openNode(_,C),x!==void 0&&this.writeText(x),this.closeNode()}closeAll(){for(;this._stack.length;)this.closeNode()}addRollback(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}commit(){this._rollbacks.pop()}rollback(){let _=this._rollbacks.pop();this._xml.length>_.xml&&this._xml.splice(_.xml,this._xml.length-_.xml),this._stack.length>_.stack&&this._stack.splice(_.stack,this._stack.length-_.stack),this.leaf=_.leaf,this.open=_.open}get xml(){return this.closeAll(),this._xml.join("")}}u.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},o.exports=u},{"./under-dash":26,"./utils":27}],29:[function(e,o,t){(function(n){(function(){"use strict";let i=e("events"),s=e("jszip"),d=e("./stream-buf"),{stringToBuffer:u}=e("./browser-buffer-encode");class f extends i.EventEmitter{constructor(C){super(),this.options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},C),this.zip=new s,this.stream=new d}append(C,x){x.hasOwnProperty("base64")&&x.base64?this.zip.file(x.name,C,{base64:!0}):(n.browser&&typeof C=="string"&&(C=u(C)),this.zip.file(x.name,C))}finalize(){return qn(this,null,function*(){let C=yield this.zip.generateAsync(this.options);this.stream.end(C),this.emit("finish")})}read(C){return this.stream.read(C)}setEncoding(C){return this.stream.setEncoding(C)}pause(){return this.stream.pause()}resume(){return this.stream.resume()}isPaused(){return this.stream.isPaused()}pipe(C,x){return this.stream.pipe(C,x)}unpipe(C){return this.stream.unpipe(C)}unshift(C){return this.stream.unshift(C)}wrap(C){return this.stream.wrap(C)}}o.exports={ZipWriter:f}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,o,t){"use strict";o.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},28:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ja-jp":'yyyy"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":'yyyy"\uB144" mm"\uC6D4" dd"\uC77C"'},32:{"zh-tw":'hh"\u6642"mm"\u5206"',"zh-cn":'h"\u65F6"mm"\u5206"',"ja-jp":'h"\u6642"mm"\u5206"',"ko-kr":'h"\uC2DC" mm"\uBD84"'},33:{"zh-tw":'hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'h"\u6642"mm"\u5206"ss"\u79D2"',"ko-kr":'h"\uC2DC" mm"\uBD84" ss"\uCD08"'},34:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},51:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},52:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},55:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"',"ja-jp":'yyyy"\u5E74"m"\u6708"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'\u4E0A\u5348/\u4E0B\u5348 hh"\u6642"mm"\u5206"ss"\u79D2"',"zh-cn":'\u4E0A\u5348/\u4E0B\u5348 h"\u65F6"mm"\u5206"ss"\u79D2"',"ja-jp":'m"\u6708"d"\u65E5"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"\u5E74"m"\u6708"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"\u5E74" mm"\u6708" dd"\u65E5"'},58:{"zh-tw":'[$-404]e"\u5E74"m"\u6708"d"\u65E5"',"zh-cn":'m"\u6708"d"\u65E5"',"ja-jp":'[$-411]ggge"\u5E74"m"\u6708"d"\u65E5"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,o,t){"use strict";o.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,o,t){"use strict";let n=e("../../utils/parse-sax"),i=e("../../utils/xml-stream");class s{prepare(){}render(){}parseOpen(u){}parseText(u){}parseClose(u){}reconcile(u,f){}reset(){this.model=null,this.map&&Object.values(this.map).forEach(u=>{u instanceof s?u.reset():u.xform&&u.xform.reset()})}mergeModel(u){this.model=Object.assign(this.model||{},u)}parse(u){return qn(this,null,function*(){try{for(var f=dg(u),_,C,x;_=!(C=yield f.next()).done;_=!1){let y=C.value;for(let{eventType:P,value:S}of y)if(P==="opentag")this.parseOpen(S);else if(P==="text")this.parseText(S);else if(P==="closetag"&&!this.parseClose(S.name))return this.model}}catch{x=[C]}finally{try{_&&(C=f.return)&&(yield C.call(f))}finally{if(x)throw x[0]}}return this.model})}parseStream(u){return qn(this,null,function*(){return this.parse(n(u))})}get xml(){return this.toXml(this.model)}toXml(u){let f=new i;return this.render(f,u),f.xml}static toAttribute(u,f){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(_)return f}else if(_||u!==f)return u.toString()}static toStringAttribute(u,f){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(u,f,_)}static toStringValue(u,f){return u===void 0?f:u}static toBoolAttribute(u,f){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(u===void 0){if(_)return f}else if(_||u!==f)return u?"1":"0"}static toBoolValue(u,f){return u===void 0?f:u==="1"}static toIntAttribute(u,f){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(u,f,_)}static toIntValue(u,f){return u===void 0?f:parseInt(u,10)}static toFloatAttribute(u,f){let _=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return s.toAttribute(u,f,_)}static toFloatValue(u,f){return u===void 0?f:parseFloat(u)}}o.exports=s},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("../../../utils/col-cache");function s(u){try{return i.decodeEx(u),!0}catch{return!1}}function d(u){let f=[],_=!1,C="";return u.split(",").forEach(x=>{if(!x)return;let y=(x.match(/'/g)||[]).length;if(!y)return void(_?C+=x+",":s(x)&&f.push(x));let P=y%2==0;!_&&P&&s(x)?f.push(x):_&&!P?(_=!1,s(C+x)&&f.push(C+x),C=""):(_=!0,C+=x+",")}),f}o.exports=class extends n{render(u,f){u.openNode("definedName",{name:f.name,localSheetId:f.localSheetId}),u.writeText(f.ranges.join(",")),u.closeNode()}parseOpen(u){switch(u.name){case"definedName":return this._parsedName=u.attributes.name,this._parsedLocalSheetId=u.attributes.localSheetId,this._parsedText=[],!0;default:return!1}}parseText(u){this._parsedText.push(u)}parseClose(){return this.model={name:this._parsedName,ranges:d(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,o,t){"use strict";let n=e("../../../utils/utils"),i=e("../base-xform");o.exports=class extends i{render(s,d){s.leafNode("sheet",{sheetId:d.id,name:d.name,state:d.state,"r:id":d.rId})}parseOpen(s){return s.name==="sheet"&&(this.model={name:n.xmlDecode(s.attributes.name),id:parseInt(s.attributes.sheetId,10),state:s.attributes.state,rId:s.attributes["r:id"]},!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{render(i,s){i.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:s.fullCalcOnLoad?1:void 0})}parseOpen(i){return i.name==="calcPr"&&(this.model={},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],36:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{render(i,s){i.leafNode("workbookPr",{date1904:s.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}parseOpen(i){return i.name==="workbookPr"&&(this.model={date1904:i.attributes.date1904==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],37:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{render(i,s){let d={xWindow:s.x||0,yWindow:s.y||0,windowWidth:s.width||12e3,windowHeight:s.height||24e3,firstSheet:s.firstSheet,activeTab:s.activeTab};s.visibility&&s.visibility!=="visible"&&(d.visibility=s.visibility),i.leafNode("workbookView",d)}parseOpen(i){if(i.name==="workbookView"){let s=this.model={},d=function(f,_,C){let x=_!==void 0?s[f]=_:C;x!==void 0&&(s[f]=x)},u=function(f,_,C){let x=_!==void 0?s[f]=parseInt(_,10):C;x!==void 0&&(s[f]=x)};return u("x",i.attributes.xWindow,0),u("y",i.attributes.yWindow,0),u("width",i.attributes.windowWidth,25e3),u("height",i.attributes.windowHeight,1e4),d("visibility",i.attributes.visibility,"visible"),u("activeTab",i.attributes.activeTab,void 0),u("firstSheet",i.attributes.firstSheet,void 0),!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],38:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),d=e("../base-xform"),u=e("../static-xform"),f=e("../list-xform"),_=e("./defined-name-xform"),C=e("./sheet-xform"),x=e("./workbook-view-xform"),y=e("./workbook-properties-xform"),P=e("./workbook-calc-properties-xform");class S extends d{constructor(){super(),this.map={fileVersion:S.STATIC_XFORMS.fileVersion,workbookPr:new y,bookViews:new f({tag:"bookViews",count:!1,childXform:new x}),sheets:new f({tag:"sheets",count:!1,childXform:new C}),definedNames:new f({tag:"definedNames",count:!1,childXform:new _}),calcPr:new P}}prepare(D){D.sheets=D.worksheets;let k=[],z=0;D.sheets.forEach(U=>{if(U.pageSetup&&U.pageSetup.printArea&&U.pageSetup.printArea.split("&&").forEach(J=>{let re=J.split(":"),ee={name:"_xlnm.Print_Area",ranges:[`'${U.name}'!$${re[0]}:$${re[1]}`],localSheetId:z};k.push(ee)}),U.pageSetup&&(U.pageSetup.printTitlesRow||U.pageSetup.printTitlesColumn)){let J=[];if(U.pageSetup.printTitlesColumn){let ee=U.pageSetup.printTitlesColumn.split(":");J.push(`'${U.name}'!$${ee[0]}:$${ee[1]}`)}if(U.pageSetup.printTitlesRow){let ee=U.pageSetup.printTitlesRow.split(":");J.push(`'${U.name}'!$${ee[0]}:$${ee[1]}`)}let re={name:"_xlnm.Print_Titles",ranges:J,localSheetId:z};k.push(re)}z++}),k.length&&(D.definedNames=D.definedNames.concat(k)),(D.media||[]).forEach((U,J)=>{U.name=U.type+(J+1)})}render(D,k){D.openXml(s.StdDocAttributes),D.openNode("workbook",S.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(D),this.map.workbookPr.render(D,k.properties),this.map.bookViews.render(D,k.views),this.map.sheets.render(D,k.sheets),this.map.definedNames.render(D,k.definedNames),this.map.calcPr.render(D,k.calcProperties),D.closeNode()}parseOpen(D){if(this.parser)return this.parser.parseOpen(D),!0;switch(D.name){case"workbook":return!0;default:return this.parser=this.map[D.name],this.parser&&this.parser.parseOpen(D),!0}}parseText(D){this.parser&&this.parser.parseText(D)}parseClose(D){if(this.parser)return this.parser.parseClose(D)||(this.parser=void 0),!0;switch(D){case"workbook":return this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1;default:return!0}}reconcile(D){let k=(D.workbookRels||[]).reduce((ee,ae)=>(ee[ae.Id]=ae,ee),{}),z=[],U,J=0;(D.sheets||[]).forEach(ee=>{let ae=k[ee.rId];ae&&(U=D.worksheetHash["xl/"+ae.Target.replace(/^(\s|\/xl\/)+/,"")],U&&(U.name=ee.name,U.id=ee.id,U.state=ee.state,z[J++]=U))});let re=[];n.each(D.definedNames,ee=>{if(ee.name==="_xlnm.Print_Area"){if(U=z[ee.localSheetId],U){U.pageSetup||(U.pageSetup={});let ae=i.decodeEx(ee.ranges[0]);U.pageSetup.printArea=U.pageSetup.printArea?`${U.pageSetup.printArea}&&${ae.dimensions}`:ae.dimensions}}else if(ee.name==="_xlnm.Print_Titles"){if(U=z[ee.localSheetId],U){U.pageSetup||(U.pageSetup={});let ae=ee.ranges.join(","),se=/\$/g,_e=/\$\d+:\$\d+/,de=ae.match(_e);if(de&&de.length){let pe=de[0];U.pageSetup.printTitlesRow=pe.replace(se,"")}let j=/\$[A-Z]+:\$[A-Z]+/,W=ae.match(j);if(W&&W.length){let pe=W[0];U.pageSetup.printTitlesColumn=pe.replace(se,"")}}}else re.push(ee)}),D.definedNames=re,D.media.forEach((ee,ae)=>{ee.index=ae})}}S.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},S.STATIC_XFORMS={fileVersion:new u({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},o.exports=S},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,o,t){"use strict";let n=e("../strings/rich-text-xform"),i=e("../../../utils/utils"),s=e("../base-xform"),d=o.exports=function(u){this.model=u};i.inherits(d,s,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render(u,f){f=f||this.model,u.openNode("comment",{ref:f.ref,authorId:0}),u.openNode("text"),f&&f.note&&f.note.texts&&f.note.texts.forEach(_=>{this.richTextXform.render(u,_)}),u.closeNode(),u.closeNode()},parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"comment":return this.model=at({type:"note",note:{texts:[]}},u.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(u),!0;default:return!1}},parseText(u){this.parser&&this.parser.parseText(u)},parseClose(u){switch(u){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(u),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../../../utils/utils"),s=e("../base-xform"),d=e("./comment-xform"),u=o.exports=function(){this.map={comment:new d}};i.inherits(u,s,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render(f,_){_=_||this.model,f.openXml(n.StdDocAttributes),f.openNode("comments",u.COMMENTS_ATTRIBUTES),f.openNode("authors"),f.leafNode("author",null,"Author"),f.closeNode(),f.openNode("commentList"),_.comments.forEach(C=>{this.map.comment.render(f,C)}),f.closeNode(),f.closeNode()},parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(f),!0;default:return!1}},parseText(f){this.parser&&this.parser.parseText(f)},parseClose(f){switch(f){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(f),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,o,t){"use strict";let n=e("../../base-xform");o.exports=class extends n{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,s,d){(s===d[2]||this.tag==="x:SizeWithCells"&&s===d[1])&&i.leafNode(this.tag)}parseOpen(i){switch(i.name){case this.tag:return this.model={},this.model[this.tag]=!0,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../base-xform":32}],42:[function(e,o,t){"use strict";let n=e("../../base-xform");o.exports=class extends n{constructor(i){super(),this._model=i}get tag(){return this._model&&this._model.tag}render(i,s){i.leafNode(this.tag,null,s)}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../../base-xform":32}],43:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"x:Anchor"}getAnchorRect(i){let s=Math.floor(i.left),d=Math.floor(68*(i.left-s)),u=Math.floor(i.top),f=Math.floor(18*(i.top-u)),_=Math.floor(i.right),C=Math.floor(68*(i.right-_)),x=Math.floor(i.bottom);return[s,d,u,f,_,C,x,Math.floor(18*(i.bottom-x))]}getDefaultRect(i){let s=i.col,d=Math.max(i.row-2,0);return[s,6,d,14,s+2,2,d+4,16]}render(i,s){let d=s.anchor?this.getAnchorRect(s.anchor):this.getDefaultRect(s.refAddress);i.leafNode("x:Anchor",null,d.join(", "))}parseOpen(i){switch(i.name){case this.tag:return this.text="",!0;default:return!1}}parseText(i){this.text=i}parseClose(){return!1}}},{"../base-xform":32}],44:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./vml-anchor-xform"),s=e("./style/vml-protection-xform"),d=e("./style/vml-position-xform"),u=["twoCells","oneCells","absolute"];o.exports=class extends n{constructor(){super(),this.map={"x:Anchor":new i,"x:Locked":new s({tag:"x:Locked"}),"x:LockText":new s({tag:"x:LockText"}),"x:SizeWithCells":new d({tag:"x:SizeWithCells"}),"x:MoveWithCells":new d({tag:"x:MoveWithCells"})}}get tag(){return"x:ClientData"}render(f,_){let{protection:C,editAs:x}=_.note;f.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(f,x,u),this.map["x:SizeWithCells"].render(f,x,u),this.map["x:Anchor"].render(f,_),this.map["x:Locked"].render(f,C.locked),f.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(f,C.lockText),f.leafNode("x:Row",null,_.refAddress.row-1),f.leafNode("x:Column",null,_.refAddress.col-1),f.closeNode()}parseOpen(f){switch(f.name){case this.tag:this.reset(),this.model={anchor:[],protection:{},editAs:""};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.normalizeModel(),!1;default:return!0}}normalizeModel(){let f=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),_=Object.keys(f).length;this.model.editAs=u[_],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../base-xform"),s=e("./vml-shape-xform");class d extends i{constructor(){super(),this.map={"v:shape":new s}}get tag(){return"xml"}render(f,_){f.openXml(n.StdDocAttributes),f.openNode(this.tag,d.DRAWING_ATTRIBUTES),f.openNode("o:shapelayout",{"v:ext":"edit"}),f.leafNode("o:idmap",{"v:ext":"edit",data:1}),f.closeNode(),f.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),f.leafNode("v:stroke",{joinstyle:"miter"}),f.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),f.closeNode(),_.comments.forEach((C,x)=>{this.map["v:shape"].render(f,C,x)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset(),this.model={comments:[]};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0;switch(f){case this.tag:return!1;default:return!0}}reconcile(f,_){f.anchors.forEach(C=>{C.br?this.map["xdr:twoCellAnchor"].reconcile(C,_):this.map["xdr:oneCellAnchor"].reconcile(C,_)})}}d.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},o.exports=d},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./vml-textbox-xform"),s=e("./vml-client-data-xform");class d extends n{constructor(){super(),this.map={"v:textbox":new i,"x:ClientData":new s}}get tag(){return"v:shape"}render(f,_,C){f.openNode("v:shape",d.V_SHAPE_ATTRIBUTES(_,C)),f.leafNode("v:fill",{color2:"infoBackground [80]"}),f.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),f.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(f,_),this.map["x:ClientData"].render(f,_),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset(),this.model={margins:{insetmode:f.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}};break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1;default:return!0}}}d.V_SHAPE_ATTRIBUTES=(u,f)=>({id:"_x0000_s"+(1025+f),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":u.note.margins&&u.note.margins.insetmode}),o.exports=d},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"v:textbox"}conversionUnit(i,s,d){return`${parseFloat(i)*s.toFixed(2)}${d}`}reverseConversionUnit(i){return(i||"").split(",").map(s=>Number(parseFloat(this.conversionUnit(parseFloat(s),.1,"")).toFixed(2)))}render(i,s){let d={style:"mso-direction-alt:auto"};if(s&&s.note){let{inset:u}=s.note&&s.note.margins;Array.isArray(u)&&(u=u.map(f=>this.conversionUnit(f,10,"mm")).join(",")),u&&(d.inset=u)}i.openNode("v:textbox",d),i.leafNode("div",{style:"text-align:left"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:return this.model={inset:this.reverseConversionUnit(i.attributes.inset)},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],48:[function(e,o,t){"use strict";let n=e("./base-xform");o.exports=class extends n{createNewModel(i){return{}}parseOpen(i){return this.parser=this.parser||this.map[i.name],this.parser?(this.parser.parseOpen(i),!0):i.name===this.tag&&(this.model=this.createNewModel(i),!0)}parseText(i){this.parser&&this.parser.parseText(i)}onParserClose(i,s){this.model[i]=s.model}parseClose(i){return this.parser?(this.parser.parseClose(i)||(this.onParserClose(i,this.parser),this.parser=void 0),!0):i!==this.tag}}},{"./base-xform":32}],49:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{render(i,s){i.openNode("HeadingPairs"),i.openNode("vt:vector",{size:2,baseType:"variant"}),i.openNode("vt:variant"),i.leafNode("vt:lpstr",void 0,"Worksheets"),i.closeNode(),i.openNode("vt:variant"),i.leafNode("vt:i4",void 0,s.length),i.closeNode(),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="HeadingPairs"}parseText(){}parseClose(i){return i!=="HeadingPairs"}}},{"../base-xform":32}],50:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{render(i,s){i.openNode("TitlesOfParts"),i.openNode("vt:vector",{size:s.length,baseType:"lpstr"}),s.forEach(d=>{i.leafNode("vt:lpstr",void 0,d.name)}),i.closeNode(),i.closeNode()}parseOpen(i){return i.name==="TitlesOfParts"}parseText(){}parseClose(i){return i!=="TitlesOfParts"}}},{"../base-xform":32}],51:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../base-xform"),s=e("../simple/string-xform"),d=e("./app-heading-pairs-xform"),u=e("./app-titles-of-parts-xform");class f extends i{constructor(){super(),this.map={Company:new s({tag:"Company"}),Manager:new s({tag:"Manager"}),HeadingPairs:new d,TitleOfParts:new u}}render(C,x){C.openXml(n.StdDocAttributes),C.openNode("Properties",f.PROPERTY_ATTRIBUTES),C.leafNode("Application",void 0,"Microsoft Excel"),C.leafNode("DocSecurity",void 0,"0"),C.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(C,x.worksheets),this.map.TitleOfParts.render(C,x.worksheets),this.map.Company.render(C,x.company||""),this.map.Manager.render(C,x.manager),C.leafNode("LinksUpToDate",void 0,"false"),C.leafNode("SharedDoc",void 0,"false"),C.leafNode("HyperlinksChanged",void 0,"false"),C.leafNode("AppVersion",void 0,"16.0300"),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case"Properties":return!0;default:return this.parser=this.map[C.name],!!this.parser&&(this.parser.parseOpen(C),!0)}}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){if(this.parser)return this.parser.parseClose(C)||(this.parser=void 0),!0;switch(C){case"Properties":return this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1;default:return!0}}}f.DateFormat=function(_){return _.toISOString().replace(/[.]\d{3,6}/,"")},f.DateAttrs={"xsi:type":"dcterms:W3CDTF"},f.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},o.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../base-xform");class s extends i{render(u,f){u.openXml(n.StdDocAttributes),u.openNode("Types",s.PROPERTY_ATTRIBUTES);let _={};(f.media||[]).forEach(C=>{if(C.type==="image"){let x=C.extension;_[x]||(_[x]=!0,u.leafNode("Default",{Extension:x,ContentType:"image/"+x}))}}),u.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),u.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),u.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),f.worksheets.forEach(C=>{let x=`/xl/worksheets/sheet${C.id}.xml`;u.leafNode("Override",{PartName:x,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),u.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),u.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),f.sharedStrings&&f.sharedStrings.count&&u.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),f.tables&&f.tables.forEach(C=>{u.leafNode("Override",{PartName:"/xl/tables/"+C.target,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),f.drawings&&f.drawings.forEach(C=>{u.leafNode("Override",{PartName:`/xl/drawings/${C.name}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),f.commentRefs&&(u.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),f.commentRefs.forEach(C=>{let{commentName:x}=C;u.leafNode("Override",{PartName:`/xl/${x}.xml`,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),u.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),u.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),u.closeNode()}parseOpen(){return!1}parseText(){}parseClose(){return!1}}s.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},o.exports=s},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../base-xform"),s=e("../simple/date-xform"),d=e("../simple/string-xform"),u=e("../simple/integer-xform");class f extends i{constructor(){super(),this.map={"dc:creator":new d({tag:"dc:creator"}),"dc:title":new d({tag:"dc:title"}),"dc:subject":new d({tag:"dc:subject"}),"dc:description":new d({tag:"dc:description"}),"dc:identifier":new d({tag:"dc:identifier"}),"dc:language":new d({tag:"dc:language"}),"cp:keywords":new d({tag:"cp:keywords"}),"cp:category":new d({tag:"cp:category"}),"cp:lastModifiedBy":new d({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new s({tag:"cp:lastPrinted",format:f.DateFormat}),"cp:revision":new u({tag:"cp:revision"}),"cp:version":new d({tag:"cp:version"}),"cp:contentStatus":new d({tag:"cp:contentStatus"}),"cp:contentType":new d({tag:"cp:contentType"}),"dcterms:created":new s({tag:"dcterms:created",attrs:f.DateAttrs,format:f.DateFormat}),"dcterms:modified":new s({tag:"dcterms:modified",attrs:f.DateAttrs,format:f.DateFormat})}}render(C,x){C.openXml(n.StdDocAttributes),C.openNode("cp:coreProperties",f.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(C,x.creator),this.map["dc:title"].render(C,x.title),this.map["dc:subject"].render(C,x.subject),this.map["dc:description"].render(C,x.description),this.map["dc:identifier"].render(C,x.identifier),this.map["dc:language"].render(C,x.language),this.map["cp:keywords"].render(C,x.keywords),this.map["cp:category"].render(C,x.category),this.map["cp:lastModifiedBy"].render(C,x.lastModifiedBy),this.map["cp:lastPrinted"].render(C,x.lastPrinted),this.map["cp:revision"].render(C,x.revision),this.map["cp:version"].render(C,x.version),this.map["cp:contentStatus"].render(C,x.contentStatus),this.map["cp:contentType"].render(C,x.contentType),this.map["dcterms:created"].render(C,x.created),this.map["dcterms:modified"].render(C,x.modified),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[C.name],this.parser)return this.parser.parseOpen(C),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(C))}}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){if(this.parser)return this.parser.parseClose(C)||(this.parser=void 0),!0;switch(C){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: "+C)}}}f.DateFormat=function(_){return _.toISOString().replace(/[.]\d{3}/,"")},f.DateAttrs={"xsi:type":"dcterms:W3CDTF"},f.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},o.exports=f},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{render(i,s){i.leafNode("Relationship",s)}parseOpen(i){switch(i.name){case"Relationship":return this.model=i.attributes,!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],55:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../base-xform"),s=e("./relationship-xform");class d extends i{constructor(){super(),this.map={Relationship:new s}}render(f,_){_=_||this._values,f.openXml(n.StdDocAttributes),f.openNode("Relationships",d.RELATIONSHIPS_ATTRIBUTES),_.forEach(C=>{this.map.Relationship.render(f,C)}),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"Relationships":return this.model=[],!0;default:if(this.parser=this.map[f.name],this.parser)return this.parser.parseOpen(f),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(f))}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.model.push(this.parser.model),this.parser=void 0),!0;switch(f){case"Relationships":return!1;default:throw new Error("Unexpected xml node in parseClose: "+f)}}}d.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},o.exports=d},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:this.reset(),this.model={range:{editAs:i.attributes.editAs||"oneCell"}};break;default:this.parser=this.map[i.name],this.parser&&this.parser.parseOpen(i)}return!0}parseText(i){this.parser&&this.parser.parseText(i)}reconcilePicture(i,s){if(i&&i.rId){let d=s.rels[i.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(d){let u=d[1],f=s.mediaIndex[u];return s.media[f]}}}}},{"../base-xform":32}],57:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./blip-xform");o.exports=class extends n{constructor(){super(),this.map={"a:blip":new i}}get tag(){return"xdr:blipFill"}render(s,d){s.openNode(this.tag),this.map["a:blip"].render(s,d),s.openNode("a:stretch"),s.leafNode("a:fillRect"),s.closeNode(),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(){}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model=this.map["a:blip"].model,!1;default:return!0}}}},{"../base-xform":32,"./blip-xform":58}],58:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"a:blip"}render(i,s){i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":s.rId,cstate:"print"})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:embed"]},!0;default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],59:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"xdr:cNvPicPr"}render(i){i.openNode(this.tag),i.leafNode("a:picLocks",{noChangeAspect:"1"}),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],60:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./hlink-click-xform"),s=e("./ext-lst-xform");o.exports=class extends n{constructor(){super(),this.map={"a:hlinkClick":new i,"a:extLst":new s}}get tag(){return"xdr:cNvPr"}render(d,u){d.openNode(this.tag,{id:u.index,name:"Picture "+u.index}),this.map["a:hlinkClick"].render(d,u),this.map["a:extLst"].render(d,u),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case this.tag:this.reset();break;default:this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)}return!0}parseText(){}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.parser=void 0),!0;switch(d){case this.tag:return this.model=this.map["a:hlinkClick"].model,!1;default:return!0}}}},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("../simple/integer-xform");o.exports=class extends n{constructor(s){super(),this.tag=s.tag,this.map={"xdr:col":new i({tag:"xdr:col",zero:!0}),"xdr:colOff":new i({tag:"xdr:colOff",zero:!0}),"xdr:row":new i({tag:"xdr:row",zero:!0}),"xdr:rowOff":new i({tag:"xdr:rowOff",zero:!0})}}render(s,d){s.openNode(this.tag),this.map["xdr:col"].render(s,d.nativeCol),this.map["xdr:colOff"].render(s,d.nativeColOff),this.map["xdr:row"].render(s,d.nativeRow),this.map["xdr:rowOff"].render(s,d.nativeRowOff),s.closeNode()}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:this.reset();break;default:this.parser=this.map[s.name],this.parser&&this.parser.parseOpen(s)}return!0}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.parser=void 0),!0;switch(s){case this.tag:return this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1;default:return!0}}}},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,o,t){"use strict";let n=e("../../../utils/col-cache"),i=e("../../../utils/xml-stream"),s=e("../base-xform"),d=e("./two-cell-anchor-xform"),u=e("./one-cell-anchor-xform");class f extends s{constructor(){super(),this.map={"xdr:twoCellAnchor":new d,"xdr:oneCellAnchor":new u}}prepare(C){C.anchors.forEach((x,y)=>{x.anchorType=(function(P){return(typeof P.range=="string"?n.decode(P.range):P.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"})(x),this.map[x.anchorType].prepare(x,{index:y})})}get tag(){return"xdr:wsDr"}render(C,x){C.openXml(i.StdDocAttributes),C.openNode(this.tag,f.DRAWING_ATTRIBUTES),x.anchors.forEach(y=>{this.map[y.anchorType].render(C,y)}),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case this.tag:this.reset(),this.model={anchors:[]};break;default:this.parser=this.map[C.name],this.parser&&this.parser.parseOpen(C)}return!0}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){if(this.parser)return this.parser.parseClose(C)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0;switch(C){case this.tag:return!1;default:return!0}}reconcile(C,x){C.anchors.forEach(y=>{y.br?this.map["xdr:twoCellAnchor"].reconcile(y,x):this.map["xdr:oneCellAnchor"].reconcile(y,x)})}}f.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},o.exports=f},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"a:extLst"}render(i){i.openNode(this.tag),i.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),i.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),i.closeNode(),i.closeNode()}parseOpen(i){switch(i.name){case this.tag:default:return!0}}parseText(){}parseClose(i){switch(i){case this.tag:return!1;default:return!0}}}},{"../base-xform":32}],64:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{constructor(i){super(),this.tag=i.tag,this.map={}}render(i,s){i.openNode(this.tag);let d=Math.floor(9525*s.width),u=Math.floor(9525*s.height);i.addAttribute("cx",d),i.addAttribute("cy",u),i.closeNode()}parseOpen(i){return i.name===this.tag&&(this.model={width:parseInt(i.attributes.cx||"0",10)/9525,height:parseInt(i.attributes.cy||"0",10)/9525},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],65:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"a:hlinkClick"}render(i,s){s.hyperlinks&&s.hyperlinks.rId&&i.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":s.hyperlinks.rId,tooltip:s.hyperlinks.tooltip})}parseOpen(i){switch(i.name){case this.tag:return this.model={hyperlinks:{rId:i.attributes["r:id"],tooltip:i.attributes.tooltip}},!0;default:return!0}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],66:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./c-nv-pr-xform"),s=e("./c-nv-pic-pr-xform");o.exports=class extends n{constructor(){super(),this.map={"xdr:cNvPr":new i,"xdr:cNvPicPr":new s}}get tag(){return"xdr:nvPicPr"}render(d,u){d.openNode(this.tag),this.map["xdr:cNvPr"].render(d,u),this.map["xdr:cNvPicPr"].render(d,u),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case this.tag:this.reset();break;default:this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)}return!0}parseText(){}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.parser=void 0),!0;switch(d){case this.tag:return this.model=this.map["xdr:cNvPr"].model,!1;default:return!0}}}},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,o,t){"use strict";let n=e("./base-cell-anchor-xform"),i=e("../static-xform"),s=e("./cell-position-xform"),d=e("./ext-xform"),u=e("./pic-xform");o.exports=class extends n{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:ext":new d({tag:"xdr:ext"}),"xdr:pic":new u,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:oneCellAnchor"}prepare(f,_){this.map["xdr:pic"].prepare(f.picture,_)}render(f,_){f.openNode(this.tag,{editAs:_.range.editAs||"oneCell"}),this.map["xdr:from"].render(f,_.range.tl),this.map["xdr:ext"].render(f,_.range.ext),this.map["xdr:pic"].render(f,_.picture),this.map["xdr:clientData"].render(f,{}),f.closeNode()}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(f,_){f.medium=this.reconcilePicture(f.picture,_)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("../static-xform"),s=e("./blip-fill-xform"),d=e("./nv-pic-pr-xform"),u=e("./sp-pr");o.exports=class extends n{constructor(){super(),this.map={"xdr:nvPicPr":new d,"xdr:blipFill":new s,"xdr:spPr":new i(u)}}get tag(){return"xdr:pic"}prepare(f,_){f.index=_.index+1}render(f,_){f.openNode(this.tag),this.map["xdr:nvPicPr"].render(f,_),this.map["xdr:blipFill"].render(f,_),this.map["xdr:spPr"].render(f,_),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.tag:this.reset();break;default:this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)}return!0}parseText(){}parseClose(f){if(this.parser)return this.parser.parseClose(f)||(this.mergeModel(this.parser.model),this.parser=void 0),!0;switch(f){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,o,t){"use strict";o.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,o,t){"use strict";let n=e("./base-cell-anchor-xform"),i=e("../static-xform"),s=e("./cell-position-xform"),d=e("./pic-xform");o.exports=class extends n{constructor(){super(),this.map={"xdr:from":new s({tag:"xdr:from"}),"xdr:to":new s({tag:"xdr:to"}),"xdr:pic":new d,"xdr:clientData":new i({tag:"xdr:clientData"})}}get tag(){return"xdr:twoCellAnchor"}prepare(u,f){this.map["xdr:pic"].prepare(u.picture,f)}render(u,f){u.openNode(this.tag,{editAs:f.range.editAs||"oneCell"}),this.map["xdr:from"].render(u,f.range.tl),this.map["xdr:to"].render(u,f.range.br),this.map["xdr:pic"].render(u,f.picture),this.map["xdr:clientData"].render(u,{}),u.closeNode()}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1;default:return!0}}reconcile(u,f){u.medium=this.reconcilePicture(u.picture,f)}}},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,o,t){"use strict";let n=e("./base-xform");o.exports=class extends n{constructor(i){super(),this.tag=i.tag,this.always=!!i.always,this.count=i.count,this.empty=i.empty,this.$count=i.$count||"count",this.$=i.$,this.childXform=i.childXform,this.maxItems=i.maxItems}prepare(i,s){let{childXform:d}=this;i&&i.forEach((u,f)=>{s.index=f,d.prepare(u,s)})}render(i,s){if(this.always||s&&s.length){i.openNode(this.tag,this.$),this.count&&i.addAttribute(this.$count,s&&s.length||0);let{childXform:d}=this;(s||[]).forEach((u,f)=>{d.render(i,u,f)}),i.closeNode()}else this.empty&&i.leafNode(this.tag)}parseOpen(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case this.tag:return this.model=[],!0;default:return!!this.childXform.parseOpen(i)&&(this.parser=this.childXform,!0)}}parseText(i){this.parser&&this.parser.parseText(i)}parseClose(i){if(this.parser){if(!this.parser.parseClose(i)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error(`Max ${this.childXform.tag} count (${this.maxItems}) exceeded`);return!0}return!1}reconcile(i,s){if(i){let{childXform:d}=this;i.forEach(u=>{d.reconcile(u,s)})}}}},{"./base-xform":32}],72:[function(e,o,t){"use strict";let n=e("../../../utils/col-cache"),i=e("../base-xform");o.exports=class extends i{get tag(){return"autoFilter"}render(s,d){if(d)if(typeof d=="string")s.leafNode("autoFilter",{ref:d});else{let u=function(C){return typeof C=="string"?C:n.getAddress(C.row,C.column).address},f=u(d.from),_=u(d.to);f&&_&&s.leafNode("autoFilter",{ref:`${f}:${_}`})}}parseOpen(s){s.name==="autoFilter"&&(this.model=s.attributes.ref)}}},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,o,t){"use strict";let n=e("../../../utils/utils"),i=e("../base-xform"),s=e("../../../doc/range"),d=e("../../../doc/enums"),u=e("../strings/rich-text-xform");function f(_){if(_==null)return d.ValueType.Null;if(_ instanceof String||typeof _=="string")return d.ValueType.String;if(typeof _=="number")return d.ValueType.Number;if(typeof _=="boolean")return d.ValueType.Boolean;if(_ instanceof Date)return d.ValueType.Date;if(_.text&&_.hyperlink)return d.ValueType.Hyperlink;if(_.formula)return d.ValueType.Formula;if(_.error)return d.ValueType.Error;throw new Error("I could not understand type of value")}o.exports=class extends i{constructor(){super(),this.richTextXForm=new u}get tag(){return"c"}prepare(_,C){let x=C.styles.addStyleModel(_.style||{},(function(y){switch(y.type){case d.ValueType.Formula:return f(y.result);default:return y.type}})(_));switch(x&&(_.styleId=x),_.comment&&C.comments.push(qt(at({},_.comment),{ref:_.address})),_.type){case d.ValueType.String:case d.ValueType.RichText:C.sharedStrings&&(_.ssId=C.sharedStrings.add(_.value));break;case d.ValueType.Date:C.date1904&&(_.date1904=!0);break;case d.ValueType.Hyperlink:C.sharedStrings&&_.text!==void 0&&_.text!==null&&(_.ssId=C.sharedStrings.add(_.text)),C.hyperlinks.push({address:_.address,target:_.hyperlink,tooltip:_.tooltip});break;case d.ValueType.Merge:C.merges.add(_);break;case d.ValueType.Formula:if(C.date1904&&(_.date1904=!0),_.shareType==="shared"&&(_.si=C.siFormulae++),_.formula)C.formulae[_.address]=_;else if(_.sharedFormula){let y=C.formulae[_.sharedFormula];if(!y)throw new Error("Shared Formula master must exist above and or left of clone for cell "+_.address);y.si===void 0?(y.shareType="shared",y.si=C.siFormulae++,y.range=new s(y.address,_.address)):y.range&&y.range.expandToAddress(_.address),_.si=y.si}}}renderFormula(_,C){let x=null;switch(C.shareType){case"shared":x={t:"shared",ref:C.ref||C.range.range,si:C.si};break;case"array":x={t:"array",ref:C.ref};break;default:C.si!==void 0&&(x={t:"shared",si:C.si})}switch(f(C.result)){case d.ValueType.Null:_.leafNode("f",x,C.formula);break;case d.ValueType.String:_.addAttribute("t","str"),_.leafNode("f",x,C.formula),_.leafNode("v",null,C.result);break;case d.ValueType.Number:_.leafNode("f",x,C.formula),_.leafNode("v",null,C.result);break;case d.ValueType.Boolean:_.addAttribute("t","b"),_.leafNode("f",x,C.formula),_.leafNode("v",null,C.result?1:0);break;case d.ValueType.Error:_.addAttribute("t","e"),_.leafNode("f",x,C.formula),_.leafNode("v",null,C.result.error);break;case d.ValueType.Date:_.leafNode("f",x,C.formula),_.leafNode("v",null,n.dateToExcel(C.result,C.date1904));break;default:throw new Error("I could not understand type of value")}}render(_,C){if(C.type!==d.ValueType.Null||C.styleId){switch(_.openNode("c"),_.addAttribute("r",C.address),C.styleId&&_.addAttribute("s",C.styleId),C.type){case d.ValueType.Null:break;case d.ValueType.Number:_.leafNode("v",null,C.value);break;case d.ValueType.Boolean:_.addAttribute("t","b"),_.leafNode("v",null,C.value?"1":"0");break;case d.ValueType.Error:_.addAttribute("t","e"),_.leafNode("v",null,C.value.error);break;case d.ValueType.String:case d.ValueType.RichText:C.ssId!==void 0?(_.addAttribute("t","s"),_.leafNode("v",null,C.ssId)):C.value&&C.value.richText?(_.addAttribute("t","inlineStr"),_.openNode("is"),C.value.richText.forEach(x=>{this.richTextXForm.render(_,x)}),_.closeNode("is")):(_.addAttribute("t","str"),_.leafNode("v",null,C.value));break;case d.ValueType.Date:_.leafNode("v",null,n.dateToExcel(C.value,C.date1904));break;case d.ValueType.Hyperlink:C.ssId!==void 0?(_.addAttribute("t","s"),_.leafNode("v",null,C.ssId)):(_.addAttribute("t","str"),_.leafNode("v",null,C.text));break;case d.ValueType.Formula:this.renderFormula(_,C);break;case d.ValueType.Merge:}_.closeNode()}}parseOpen(_){if(this.parser)return this.parser.parseOpen(_),!0;switch(_.name){case"c":return this.model={address:_.attributes.r},this.t=_.attributes.t,_.attributes.s&&(this.model.styleId=parseInt(_.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=_.attributes.si,this.model.shareType=_.attributes.t,this.model.ref=_.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(_),!0;default:return!1}}parseText(_){if(this.parser)this.parser.parseText(_);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+_:_;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+_:_:this.model.value=this.model.value?this.model.value+_:_}}parseClose(_){switch(_){case"c":{let{model:C}=this;if(C.formula||C.shareType)C.type=d.ValueType.Formula,C.value&&(this.t==="str"?C.result=n.xmlDecode(C.value):this.t==="b"?C.result=parseInt(C.value,10)!==0:this.t==="e"?C.result={error:C.value}:C.result=parseFloat(C.value),C.value=void 0);else if(C.value!==void 0)switch(this.t){case"s":C.type=d.ValueType.String,C.value=parseInt(C.value,10);break;case"str":C.type=d.ValueType.String,C.value=n.xmlDecode(C.value);break;case"inlineStr":C.type=d.ValueType.String;break;case"b":C.type=d.ValueType.Boolean,C.value=parseInt(C.value,10)!==0;break;case"e":C.type=d.ValueType.Error,C.value={error:C.value};break;default:C.type=d.ValueType.Number,C.value=parseFloat(C.value)}else C.styleId?C.type=d.ValueType.Null:C.type=d.ValueType.Merge;return!1}case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(_),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(_),!0)}}reconcile(_,C){let x=_.styleId&&C.styles&&C.styles.getStyleModel(_.styleId);switch(x&&(_.style=x),_.styleId!==void 0&&(_.styleId=void 0),_.type){case d.ValueType.String:typeof _.value=="number"&&C.sharedStrings&&(_.value=C.sharedStrings.getString(_.value)),_.value.richText&&(_.type=d.ValueType.RichText);break;case d.ValueType.Number:x&&n.isDateFmt(x.numFmt)&&(_.type=d.ValueType.Date,_.value=n.excelToDate(_.value,C.date1904));break;case d.ValueType.Formula:_.result!==void 0&&x&&n.isDateFmt(x.numFmt)&&(_.result=n.excelToDate(_.result,C.date1904)),_.shareType==="shared"&&(_.ref?C.formulae[_.si]=_.address:(_.sharedFormula=C.formulae[_.si],delete _.shareType),delete _.si)}let y=C.hyperlinkMap[_.address];y&&(_.type===d.ValueType.Formula?(_.text=_.result,_.result=void 0):(_.text=_.value,_.value=void 0),_.type=d.ValueType.Hyperlink,_.hyperlink=y);let P=C.commentsMap&&C.commentsMap[_.address];P&&(_.comment=P)}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,o,t){"use strict";let n=e("../../base-xform");o.exports=class extends n{get tag(){return"x14:cfIcon"}render(i,s){i.leafNode(this.tag,{iconSet:s.iconSet,iconId:s.iconId})}parseOpen(i){let{attributes:s}=i;this.model={iconSet:s.iconSet,iconId:n.toIntValue(s.iconId)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],75:[function(e,o,t){"use strict";let{v4:n}=e("uuid"),i=e("../../base-xform"),s=e("../../composite-xform"),d=e("./databar-ext-xform"),u=e("./icon-set-ext-xform"),f={"3Triangles":!0,"3Stars":!0,"5Boxes":!0};class _ extends s{constructor(){super(),this.map={"x14:dataBar":this.databarXform=new d,"x14:iconSet":this.iconSetXform=new u}}get tag(){return"x14:cfRule"}static isExt(x){return x.type==="dataBar"?d.isExt(x):!(x.type!=="iconSet"||!x.custom&&!f[x.iconSet])}prepare(x){_.isExt(x)&&(x.x14Id=`{${n()}}`.toUpperCase())}render(x,y){if(_.isExt(y))switch(y.type){case"dataBar":this.renderDataBar(x,y);break;case"iconSet":this.renderIconSet(x,y)}}renderDataBar(x,y){x.openNode(this.tag,{type:"dataBar",id:y.x14Id}),this.databarXform.render(x,y),x.closeNode()}renderIconSet(x,y){x.openNode(this.tag,{type:"iconSet",priority:y.priority,id:y.x14Id||`{${n()}}`}),this.iconSetXform.render(x,y),x.closeNode()}createNewModel(x){let{attributes:y}=x;return{type:y.type,x14Id:y.id,priority:i.toIntValue(y.priority)}}onParserClose(x,y){Object.assign(this.model,y.model)}}o.exports=_},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,o,t){"use strict";let n=e("../../composite-xform"),i=e("./f-ext-xform");o.exports=class extends n{constructor(){super(),this.map={"xm:f":this.fExtXform=new i}}get tag(){return"x14:cfvo"}render(s,d){s.openNode(this.tag,{type:d.type}),d.value!==void 0&&this.fExtXform.render(s,d.value),s.closeNode()}createNewModel(s){return{type:s.attributes.type}}onParserClose(s,d){switch(s){case"xm:f":this.model.value=d.model?parseFloat(d.model):0}}}},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,o,t){"use strict";let n=e("../../composite-xform"),i=e("./sqref-ext-xform"),s=e("./cf-rule-ext-xform");o.exports=class extends n{constructor(){super(),this.map={"xm:sqref":this.sqRef=new i,"x14:cfRule":this.cfRule=new s}}get tag(){return"x14:conditionalFormatting"}prepare(d,u){d.rules.forEach(f=>{this.cfRule.prepare(f,u)})}render(d,u){u.rules.some(s.isExt)&&(d.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),u.rules.filter(s.isExt).forEach(f=>this.cfRule.render(d,f)),this.sqRef.render(d,u.ref),d.closeNode())}createNewModel(){return{rules:[]}}onParserClose(d,u){switch(d){case"xm:sqref":this.model.ref=u.model;break;case"x14:cfRule":this.model.rules.push(u.model)}}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,o,t){"use strict";let n=e("../../composite-xform"),i=e("./cf-rule-ext-xform"),s=e("./conditional-formatting-ext-xform");o.exports=class extends n{constructor(){super(),this.map={"x14:conditionalFormatting":this.cfXform=new s}}get tag(){return"x14:conditionalFormattings"}hasContent(d){return d.hasExtContent===void 0&&(d.hasExtContent=d.some(u=>u.rules.some(i.isExt))),d.hasExtContent}prepare(d,u){d.forEach(f=>{this.cfXform.prepare(f,u)})}render(d,u){this.hasContent(u)&&(d.openNode(this.tag),u.forEach(f=>this.cfXform.render(d,f)),d.closeNode())}createNewModel(){return[]}onParserClose(d,u){this.model.push(u.model)}}},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,o,t){"use strict";let n=e("../../base-xform"),i=e("../../composite-xform"),s=e("../../style/color-xform"),d=e("./cfvo-ext-xform");o.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new d,"x14:borderColor":this.borderColorXform=new s("x14:borderColor"),"x14:negativeBorderColor":this.negativeBorderColorXform=new s("x14:negativeBorderColor"),"x14:negativeFillColor":this.negativeFillColorXform=new s("x14:negativeFillColor"),"x14:axisColor":this.axisColorXform=new s("x14:axisColor")}}static isExt(u){return!u.gradient}get tag(){return"x14:dataBar"}render(u,f){u.openNode(this.tag,{minLength:n.toIntAttribute(f.minLength,0,!0),maxLength:n.toIntAttribute(f.maxLength,100,!0),border:n.toBoolAttribute(f.border,!1),gradient:n.toBoolAttribute(f.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(f.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(f.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(f.axisPosition,"auto"),direction:n.toAttribute(f.direction,"leftToRight")}),f.cfvo.forEach(_=>{this.cfvoXform.render(u,_)}),this.borderColorXform.render(u,f.borderColor),this.negativeBorderColorXform.render(u,f.negativeBorderColor),this.negativeFillColorXform.render(u,f.negativeFillColor),this.axisColorXform.render(u,f.axisColor),u.closeNode()}createNewModel(u){let{attributes:f}=u;return{cfvo:[],minLength:n.toIntValue(f.minLength,0),maxLength:n.toIntValue(f.maxLength,100),border:n.toBoolValue(f.border,!1),gradient:n.toBoolValue(f.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(f.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(f.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(f.axisPosition,"auto"),direction:n.toStringValue(f.direction,"leftToRight")}}onParserClose(u,f){let[,_]=u.split(":");switch(_){case"cfvo":this.model.cfvo.push(f.model);break;default:this.model[_]=f.model}}}},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,o,t){"use strict";let n=e("../../base-xform");o.exports=class extends n{get tag(){return"xm:f"}render(i,s){i.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],81:[function(e,o,t){"use strict";let n=e("../../base-xform"),i=e("../../composite-xform"),s=e("./cfvo-ext-xform"),d=e("./cf-icon-ext-xform");o.exports=class extends i{constructor(){super(),this.map={"x14:cfvo":this.cfvoXform=new s,"x14:cfIcon":this.cfIconXform=new d}}get tag(){return"x14:iconSet"}render(u,f){u.openNode(this.tag,{iconSet:n.toStringAttribute(f.iconSet),reverse:n.toBoolAttribute(f.reverse,!1),showValue:n.toBoolAttribute(f.showValue,!0),custom:n.toBoolAttribute(f.icons,!1)}),f.cfvo.forEach(_=>{this.cfvoXform.render(u,_)}),f.icons&&f.icons.forEach((_,C)=>{_.iconId=C,this.cfIconXform.render(u,_)}),u.closeNode()}createNewModel(u){let{attributes:f}=u;return{cfvo:[],iconSet:n.toStringValue(f.iconSet,"3TrafficLights"),reverse:n.toBoolValue(f.reverse,!1),showValue:n.toBoolValue(f.showValue,!0)}}onParserClose(u,f){let[,_]=u.split(":");switch(_){case"cfvo":this.model.cfvo.push(f.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(f.model);break;default:this.model[_]=f.model}}}},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,o,t){"use strict";let n=e("../../base-xform");o.exports=class extends n{get tag(){return"xm:sqref"}render(i,s){i.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],83:[function(e,o,t){"use strict";let n=e("../../base-xform"),i=e("../../composite-xform"),s=e("../../../../doc/range"),d=e("./databar-xform"),u=e("./ext-lst-ref-xform"),f=e("./formula-xform"),_=e("./color-scale-xform"),C=e("./icon-set-xform"),x={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},y=S=>{let{type:M,operator:D}=S;switch(M){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:M};default:return{type:M,operator:D}}};class P extends i{constructor(){super(),this.map={dataBar:this.databarXform=new d,extLst:this.extLstRefXform=new u,formula:this.formulaXform=new f,colorScale:this.colorScaleXform=new _,iconSet:this.iconSetXform=new C}}get tag(){return"cfRule"}static isPrimitive(M){return M.type!=="iconSet"||!M.custom&&!x[M.iconSet]}render(M,D){switch(D.type){case"expression":this.renderExpression(M,D);break;case"cellIs":this.renderCellIs(M,D);break;case"top10":this.renderTop10(M,D);break;case"aboveAverage":this.renderAboveAverage(M,D);break;case"dataBar":this.renderDataBar(M,D);break;case"colorScale":this.renderColorScale(M,D);break;case"iconSet":this.renderIconSet(M,D);break;case"containsText":this.renderText(M,D);break;case"timePeriod":this.renderTimePeriod(M,D)}}renderExpression(M,D){M.openNode(this.tag,{type:"expression",dxfId:D.dxfId,priority:D.priority}),this.formulaXform.render(M,D.formulae[0]),M.closeNode()}renderCellIs(M,D){M.openNode(this.tag,{type:"cellIs",dxfId:D.dxfId,priority:D.priority,operator:D.operator}),D.formulae.forEach(k=>{this.formulaXform.render(M,k)}),M.closeNode()}renderTop10(M,D){M.leafNode(this.tag,{type:"top10",dxfId:D.dxfId,priority:D.priority,percent:n.toBoolAttribute(D.percent,!1),bottom:n.toBoolAttribute(D.bottom,!1),rank:n.toIntValue(D.rank,10,!0)})}renderAboveAverage(M,D){M.leafNode(this.tag,{type:"aboveAverage",dxfId:D.dxfId,priority:D.priority,aboveAverage:n.toBoolAttribute(D.aboveAverage,!0)})}renderDataBar(M,D){M.openNode(this.tag,{type:"dataBar",priority:D.priority}),this.databarXform.render(M,D),this.extLstRefXform.render(M,D),M.closeNode()}renderColorScale(M,D){M.openNode(this.tag,{type:"colorScale",priority:D.priority}),this.colorScaleXform.render(M,D),M.closeNode()}renderIconSet(M,D){P.isPrimitive(D)&&(M.openNode(this.tag,{type:"iconSet",priority:D.priority}),this.iconSetXform.render(M,D),M.closeNode())}renderText(M,D){M.openNode(this.tag,{type:D.operator,dxfId:D.dxfId,priority:D.priority,operator:n.toStringAttribute(D.operator,"containsText")});let k=(z=>{if(z.formulae&&z.formulae[0])return z.formulae[0];let U=new s(z.ref),{tl:J}=U;switch(z.operator){case"containsText":return`NOT(ISERROR(SEARCH("${z.text}",${J})))`;case"containsBlanks":return`LEN(TRIM(${J}))=0`;case"notContainsBlanks":return`LEN(TRIM(${J}))>0`;case"containsErrors":return`ISERROR(${J})`;case"notContainsErrors":return`NOT(ISERROR(${J}))`;default:return}})(D);k&&this.formulaXform.render(M,k),M.closeNode()}renderTimePeriod(M,D){M.openNode(this.tag,{type:"timePeriod",dxfId:D.dxfId,priority:D.priority,timePeriod:D.timePeriod});let k=(z=>{if(z.formulae&&z.formulae[0])return z.formulae[0];let U=new s(z.ref),{tl:J}=U;switch(z.timePeriod){case"thisWeek":return`AND(TODAY()-ROUNDDOWN(${J},0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(${J},0)-TODAY()<=7-WEEKDAY(TODAY()))`;case"lastWeek":return`AND(TODAY()-ROUNDDOWN(${J},0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(${J},0)<(WEEKDAY(TODAY())+7))`;case"nextWeek":return`AND(ROUNDDOWN(${J},0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(${J},0)-TODAY()<(15-WEEKDAY(TODAY())))`;case"yesterday":return`FLOOR(${J},1)=TODAY()-1`;case"today":return`FLOOR(${J},1)=TODAY()`;case"tomorrow":return`FLOOR(${J},1)=TODAY()+1`;case"last7Days":return`AND(TODAY()-FLOOR(${J},1)<=6,FLOOR(${J},1)<=TODAY())`;case"lastMonth":return`AND(MONTH(${J})=MONTH(EDATE(TODAY(),0-1)),YEAR(${J})=YEAR(EDATE(TODAY(),0-1)))`;case"thisMonth":return`AND(MONTH(${J})=MONTH(TODAY()),YEAR(${J})=YEAR(TODAY()))`;case"nextMonth":return`AND(MONTH(${J})=MONTH(EDATE(TODAY(),0+1)),YEAR(${J})=YEAR(EDATE(TODAY(),0+1)))`;default:return}})(D);k&&this.formulaXform.render(M,k),M.closeNode()}createNewModel(M){let{attributes:D}=M;return qt(at({},y(D)),{dxfId:n.toIntValue(D.dxfId),priority:n.toIntValue(D.priority),timePeriod:D.timePeriod,percent:n.toBoolValue(D.percent),bottom:n.toBoolValue(D.bottom),rank:n.toIntValue(D.rank),aboveAverage:n.toBoolValue(D.aboveAverage)})}onParserClose(M,D){switch(M){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,D.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(D.model)}}}o.exports=P},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,o,t){"use strict";let n=e("../../base-xform");o.exports=class extends n{get tag(){return"cfvo"}render(i,s){i.leafNode(this.tag,{type:s.type,val:s.value})}parseOpen(i){this.model={type:i.attributes.type,value:n.toFloatValue(i.attributes.val)}}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],85:[function(e,o,t){"use strict";let n=e("../../composite-xform"),i=e("../../style/color-xform"),s=e("./cfvo-xform");o.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new i}}get tag(){return"colorScale"}render(d,u){d.openNode(this.tag),u.cfvo.forEach(f=>{this.cfvoXform.render(d,f)}),u.color.forEach(f=>{this.colorXform.render(d,f)}),d.closeNode()}createNewModel(d){return{cfvo:[],color:[]}}onParserClose(d,u){this.model[d].push(u.model)}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,o,t){"use strict";let n=e("../../composite-xform"),i=e("./cf-rule-xform");o.exports=class extends n{constructor(){super(),this.map={cfRule:new i}}get tag(){return"conditionalFormatting"}render(s,d){d.rules.some(i.isPrimitive)&&(s.openNode(this.tag,{sqref:d.ref}),d.rules.forEach(u=>{i.isPrimitive(u)&&(u.ref=d.ref,this.map.cfRule.render(s,u))}),s.closeNode())}createNewModel(s){let{attributes:d}=s;return{ref:d.sqref,rules:[]}}onParserClose(s,d){this.model.rules.push(d.model)}}},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,o,t){"use strict";let n=e("../../base-xform"),i=e("./conditional-formatting-xform");o.exports=class extends n{constructor(){super(),this.cfXform=new i}get tag(){return"conditionalFormatting"}reset(){this.model=[]}prepare(s,d){let u=s.reduce((f,_)=>Math.max(f,..._.rules.map(C=>C.priority||0)),1);s.forEach(f=>{f.rules.forEach(_=>{_.priority||(_.priority=u++),_.style&&(_.dxfId=d.styles.addDxfStyle(_.style))})})}render(s,d){d.forEach(u=>{this.cfXform.render(s,u)})}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case"conditionalFormatting":return this.parser=this.cfXform,this.parser.parseOpen(s),!0;default:return!1}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){return!!this.parser&&(!!this.parser.parseClose(s)||(this.model.push(this.parser.model),this.parser=void 0,!1))}reconcile(s,d){s.forEach(u=>{u.rules.forEach(f=>{f.dxfId!==void 0&&(f.style=d.styles.getDxfStyle(f.dxfId),delete f.dxfId)})})}}},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,o,t){"use strict";let n=e("../../composite-xform"),i=e("../../style/color-xform"),s=e("./cfvo-xform");o.exports=class extends n{constructor(){super(),this.map={cfvo:this.cfvoXform=new s,color:this.colorXform=new i}}get tag(){return"dataBar"}render(d,u){d.openNode(this.tag),u.cfvo.forEach(f=>{this.cfvoXform.render(d,f)}),this.colorXform.render(d,u.color),d.closeNode()}createNewModel(){return{cfvo:[]}}onParserClose(d,u){switch(d){case"cfvo":this.model.cfvo.push(u.model);break;case"color":this.model.color=u.model}}}},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,o,t){"use strict";let n=e("../../base-xform"),i=e("../../composite-xform");class s extends n{get tag(){return"x14:id"}render(f,_){f.leafNode(this.tag,null,_)}parseOpen(){this.model=""}parseText(f){this.model+=f}parseClose(f){return f!==this.tag}}class d extends i{constructor(){super(),this.map={"x14:id":this.idXform=new s}}get tag(){return"ext"}render(f,_){f.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(f,_.x14Id),f.closeNode()}createNewModel(){return{}}onParserClose(f,_){this.model.x14Id=_.model}}o.exports=class extends i{constructor(){super(),this.map={ext:new d}}get tag(){return"extLst"}render(u,f){u.openNode(this.tag),this.map.ext.render(u,f),u.closeNode()}createNewModel(){return{}}onParserClose(u,f){Object.assign(this.model,f.model)}}},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,o,t){"use strict";let n=e("../../base-xform");o.exports=class extends n{get tag(){return"formula"}render(i,s){i.leafNode(this.tag,null,s)}parseOpen(){this.model=""}parseText(i){this.model+=i}parseClose(i){return i!==this.tag}}},{"../../base-xform":32}],91:[function(e,o,t){"use strict";let n=e("../../base-xform"),i=e("../../composite-xform"),s=e("./cfvo-xform");o.exports=class extends i{constructor(){super(),this.map={cfvo:this.cfvoXform=new s}}get tag(){return"iconSet"}render(d,u){d.openNode(this.tag,{iconSet:n.toStringAttribute(u.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(u.reverse,!1),showValue:n.toBoolAttribute(u.showValue,!0)}),u.cfvo.forEach(f=>{this.cfvoXform.render(d,f)}),d.closeNode()}createNewModel(d){let{attributes:u}=d;return{iconSet:n.toStringValue(u.iconSet,"3TrafficLights"),reverse:n.toBoolValue(u.reverse),showValue:n.toBoolValue(u.showValue),cfvo:[]}}onParserClose(d,u){this.model[d].push(u.model)}}},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,o,t){"use strict";let n=e("../../../utils/utils"),i=e("../base-xform");o.exports=class extends i{get tag(){return"col"}prepare(s,d){let u=d.styles.addStyleModel(s.style||{});u&&(s.styleId=u)}render(s,d){s.openNode("col"),s.addAttribute("min",d.min),s.addAttribute("max",d.max),d.width&&s.addAttribute("width",d.width),d.styleId&&s.addAttribute("style",d.styleId),d.hidden&&s.addAttribute("hidden","1"),d.bestFit&&s.addAttribute("bestFit","1"),d.outlineLevel&&s.addAttribute("outlineLevel",d.outlineLevel),d.collapsed&&s.addAttribute("collapsed","1"),s.addAttribute("customWidth","1"),s.closeNode()}parseOpen(s){if(s.name==="col"){let d=this.model={min:parseInt(s.attributes.min||"0",10),max:parseInt(s.attributes.max||"0",10),width:s.attributes.width===void 0?void 0:parseFloat(s.attributes.width||"0")};return s.attributes.style&&(d.styleId=parseInt(s.attributes.style,10)),n.parseBoolean(s.attributes.hidden)&&(d.hidden=!0),n.parseBoolean(s.attributes.bestFit)&&(d.bestFit=!0),s.attributes.outlineLevel&&(d.outlineLevel=parseInt(s.attributes.outlineLevel,10)),n.parseBoolean(s.attributes.collapsed)&&(d.collapsed=!0),!0}return!1}parseText(){}parseClose(){return!1}reconcile(s,d){s.styleId&&(s.style=d.styles.getStyleModel(s.styleId))}}},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../../../utils/utils"),s=e("../../../utils/col-cache"),d=e("../base-xform"),u=e("../../../doc/range");function f(C,x,y,P){let S=x[y];S!==void 0?C[y]=S:P!==void 0&&(C[y]=P)}function _(C,x,y,P){let S=x[y];S!==void 0?C[y]=i.parseBoolean(S):P!==void 0&&(C[y]=P)}o.exports=class extends d{get tag(){return"dataValidations"}render(C,x){let y=(function(P){let S=n.map(P,(k,z)=>({address:z,dataValidation:k,marked:!1})).sort((k,z)=>n.strcmp(k.address,z.address)),M=n.keyBy(S,"address"),D=(k,z,U)=>{for(let J=0;J{if(!k.marked){let z=s.decodeEx(k.address);if(z.dimensions)return M[z.dimensions].marked=!0,qt(at({},k.dataValidation),{sqref:k.address});let U=1,J=s.encodeAddress(z.row+U,z.col);for(;P[J]&&n.isEqual(k.dataValidation,P[J]);)U++,J=s.encodeAddress(z.row+U,z.col);let re=1;for(;D(z,U,z.col+re);)re++;for(let ee=0;ee1||re>1){let ee=z.row+(U-1),ae=z.col+(re-1);return qt(at({},k.dataValidation),{sqref:`${k.address}:${s.encodeAddress(ee,ae)}`})}return qt(at({},k.dataValidation),{sqref:k.address})}return null}).filter(Boolean)})(x);y.length&&(C.openNode("dataValidations",{count:y.length}),y.forEach(P=>{C.openNode("dataValidation"),P.type!=="any"&&(C.addAttribute("type",P.type),P.operator&&P.type!=="list"&&P.operator!=="between"&&C.addAttribute("operator",P.operator),P.allowBlank&&C.addAttribute("allowBlank","1")),P.showInputMessage&&C.addAttribute("showInputMessage","1"),P.promptTitle&&C.addAttribute("promptTitle",P.promptTitle),P.prompt&&C.addAttribute("prompt",P.prompt),P.showErrorMessage&&C.addAttribute("showErrorMessage","1"),P.errorStyle&&C.addAttribute("errorStyle",P.errorStyle),P.errorTitle&&C.addAttribute("errorTitle",P.errorTitle),P.error&&C.addAttribute("error",P.error),C.addAttribute("sqref",P.sqref),(P.formulae||[]).forEach((S,M)=>{C.openNode("formula"+(M+1)),P.type==="date"?C.writeText(i.dateToExcel(new Date(S))):C.writeText(S),C.closeNode()}),C.closeNode()}),C.closeNode())}parseOpen(C){switch(C.name){case"dataValidations":return this.model={},!0;case"dataValidation":{this._address=C.attributes.sqref;let x={type:C.attributes.type||"any",formulae:[]};switch(C.attributes.type&&_(x,C.attributes,"allowBlank"),_(x,C.attributes,"showInputMessage"),_(x,C.attributes,"showErrorMessage"),x.type){case"any":case"list":case"custom":break;default:f(x,C.attributes,"operator","between")}return f(x,C.attributes,"promptTitle"),f(x,C.attributes,"prompt"),f(x,C.attributes,"errorStyle"),f(x,C.attributes,"errorTitle"),f(x,C.attributes,"error"),this._dataValidation=x,!0}case"formula1":case"formula2":return this._formula=[],!0;default:return!1}}parseText(C){this._formula&&this._formula.push(C)}parseClose(C){switch(C){case"dataValidations":return!1;case"dataValidation":return this._dataValidation.formulae&&this._dataValidation.formulae.length||(delete this._dataValidation.formulae,delete this._dataValidation.operator),(this._address.split(/\s+/g)||[]).forEach(x=>{x.includes(":")?new u(x).forEachAddress(y=>{this.model[y]=this._dataValidation}):this.model[x]=this._dataValidation}),!0;case"formula1":case"formula2":{let x=this._formula.join("");switch(this._dataValidation.type){case"whole":case"textLength":x=parseInt(x,10);break;case"decimal":x=parseFloat(x);break;case"date":x=i.excelToDate(parseFloat(x))}return this._dataValidation.formulae.push(x),this._formula=void 0,!0}default:return!0}}}},{"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/utils":27,"../base-xform":32}],94:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"dimension"}render(i,s){s&&i.leafNode("dimension",{ref:s})}parseOpen(i){return i.name==="dimension"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],95:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"drawing"}render(i,s){s&&i.leafNode(this.tag,{"r:id":s.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],96:[function(e,o,t){"use strict";let n=e("../composite-xform"),i=e("./cf-ext/conditional-formattings-ext-xform");class s extends n{constructor(){super(),this.map={"x14:conditionalFormattings":this.conditionalFormattings=new i}}get tag(){return"ext"}hasContent(u){return this.conditionalFormattings.hasContent(u.conditionalFormattings)}prepare(u,f){this.conditionalFormattings.prepare(u.conditionalFormattings,f)}render(u,f){u.openNode("ext",{uri:"{78C0D931-6437-407d-A8EE-F0AAD7539E65}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.conditionalFormattings.render(u,f.conditionalFormattings),u.closeNode()}createNewModel(){return{}}onParserClose(u,f){this.model[u]=f.model}}o.exports=class extends n{constructor(){super(),this.map={ext:this.ext=new s}}get tag(){return"extLst"}prepare(d,u){this.ext.prepare(d,u)}hasContent(d){return this.ext.hasContent(d)}render(d,u){this.hasContent(u)&&(d.openNode("extLst"),this.ext.render(d,u),d.closeNode())}createNewModel(){return{}}onParserClose(d,u){Object.assign(this.model,u.model)}}},{"../composite-xform":48,"./cf-ext/conditional-formattings-ext-xform":78}],97:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"headerFooter"}render(i,s){if(s){i.addRollback();let d=!1;i.openNode("headerFooter"),s.differentFirst&&(i.addAttribute("differentFirst","1"),d=!0),s.differentOddEven&&(i.addAttribute("differentOddEven","1"),d=!0),s.oddHeader&&typeof s.oddHeader=="string"&&(i.leafNode("oddHeader",null,s.oddHeader),d=!0),s.oddFooter&&typeof s.oddFooter=="string"&&(i.leafNode("oddFooter",null,s.oddFooter),d=!0),s.evenHeader&&typeof s.evenHeader=="string"&&(i.leafNode("evenHeader",null,s.evenHeader),d=!0),s.evenFooter&&typeof s.evenFooter=="string"&&(i.leafNode("evenFooter",null,s.evenFooter),d=!0),s.firstHeader&&typeof s.firstHeader=="string"&&(i.leafNode("firstHeader",null,s.firstHeader),d=!0),s.firstFooter&&typeof s.firstFooter=="string"&&(i.leafNode("firstFooter",null,s.firstFooter),d=!0),d?(i.closeNode(),i.commit()):i.rollback()}}parseOpen(i){switch(i.name){case"headerFooter":return this.model={},i.attributes.differentFirst&&(this.model.differentFirst=parseInt(i.attributes.differentFirst,0)===1),i.attributes.differentOddEven&&(this.model.differentOddEven=parseInt(i.attributes.differentOddEven,0)===1),!0;case"oddHeader":return this.currentNode="oddHeader",!0;case"oddFooter":return this.currentNode="oddFooter",!0;case"evenHeader":return this.currentNode="evenHeader",!0;case"evenFooter":return this.currentNode="evenFooter",!0;case"firstHeader":return this.currentNode="firstHeader",!0;case"firstFooter":return this.currentNode="firstFooter",!0;default:return!1}}parseText(i){switch(this.currentNode){case"oddHeader":this.model.oddHeader=i;break;case"oddFooter":this.model.oddFooter=i;break;case"evenHeader":this.model.evenHeader=i;break;case"evenFooter":this.model.evenFooter=i;break;case"firstHeader":this.model.firstHeader=i;break;case"firstFooter":this.model.firstFooter=i}}parseClose(){switch(this.currentNode){case"oddHeader":case"oddFooter":case"evenHeader":case"evenFooter":case"firstHeader":case"firstFooter":return this.currentNode=void 0,!0;default:return!1}}}},{"../base-xform":32}],98:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"hyperlink"}render(i,s){this.isInternalLink(s)?i.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip,location:s.target}):i.leafNode("hyperlink",{ref:s.address,"r:id":s.rId,tooltip:s.tooltip})}parseOpen(i){return i.name==="hyperlink"&&(this.model={address:i.attributes.ref,rId:i.attributes["r:id"],tooltip:i.attributes.tooltip},i.attributes.location&&(this.model.target=i.attributes.location),!0)}parseText(){}parseClose(){return!1}isInternalLink(i){return i.target&&/^[^!]+![a-zA-Z]+[\d]+$/.test(i.target)}}},{"../base-xform":32}],99:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"mergeCell"}render(i,s){i.leafNode("mergeCell",{ref:s})}parseOpen(i){return i.name==="mergeCell"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],100:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../../../doc/range"),s=e("../../../utils/col-cache"),d=e("../../../doc/enums");o.exports=class{constructor(){this.merges={}}add(u){if(this.merges[u.master])this.merges[u.master].expandToAddress(u.address);else{let f=`${u.master}:${u.address}`;this.merges[u.master]=new i(f)}}get mergeCells(){return n.map(this.merges,u=>u.range)}reconcile(u,f){n.each(u,_=>{let C=s.decode(_);for(let x=C.top;x<=C.bottom;x++){let y=f[x-1];for(let P=C.left;P<=C.right;P++){let S=y.cells[P-1];S?S.type===d.ValueType.Merge&&(S.master=C.tl):y.cells[P]={type:d.ValueType.Null,address:s.encodeAddress(x,P)}}}})}getMasterAddress(u){let f=this.hash[u];return f&&f.tl}}},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/col-cache":19,"../../../utils/under-dash":26}],101:[function(e,o,t){"use strict";let n=e("../base-xform"),i=s=>s!==void 0;o.exports=class extends n{get tag(){return"outlinePr"}render(s,d){return!(!d||!i(d.summaryBelow)&&!i(d.summaryRight))&&(s.leafNode(this.tag,{summaryBelow:i(d.summaryBelow)?Number(d.summaryBelow):void 0,summaryRight:i(d.summaryRight)?Number(d.summaryRight):void 0}),!0)}parseOpen(s){return s.name===this.tag&&(this.model={summaryBelow:i(s.attributes.summaryBelow)?!!Number(s.attributes.summaryBelow):void 0,summaryRight:i(s.attributes.summaryRight)?!!Number(s.attributes.summaryRight):void 0},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],102:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"brk"}render(i,s){i.leafNode("brk",s)}parseOpen(i){return i.name==="brk"&&(this.model=i.attributes.ref,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],103:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../base-xform");o.exports=class extends i{get tag(){return"pageMargins"}render(s,d){if(d){let u={left:d.left,right:d.right,top:d.top,bottom:d.bottom,header:d.header,footer:d.footer};n.some(u,f=>f!==void 0)&&s.leafNode(this.tag,u)}}parseOpen(s){switch(s.name){case this.tag:return this.model={left:parseFloat(s.attributes.left||.7),right:parseFloat(s.attributes.right||.7),top:parseFloat(s.attributes.top||.75),bottom:parseFloat(s.attributes.bottom||.75),header:parseFloat(s.attributes.header||.3),footer:parseFloat(s.attributes.footer||.3)},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],104:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"pageSetUpPr"}render(i,s){return!(!s||!s.fitToPage)&&(i.leafNode(this.tag,{fitToPage:s.fitToPage?"1":void 0}),!0)}parseOpen(i){return i.name===this.tag&&(this.model={fitToPage:i.attributes.fitToPage==="1"},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],105:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../base-xform");function s(_){return _?"1":void 0}function d(_){switch(_){case"overThenDown":return _;default:return}}function u(_){switch(_){case"atEnd":case"asDisplyed":return _;default:return}}function f(_){switch(_){case"dash":case"blank":case"NA":return _;default:return}}o.exports=class extends i{get tag(){return"pageSetup"}render(_,C){if(C){let x={paperSize:C.paperSize,orientation:C.orientation,horizontalDpi:C.horizontalDpi,verticalDpi:C.verticalDpi,pageOrder:d(C.pageOrder),blackAndWhite:s(C.blackAndWhite),draft:s(C.draft),cellComments:u(C.cellComments),errors:f(C.errors),scale:C.scale,fitToWidth:C.fitToWidth,fitToHeight:C.fitToHeight,firstPageNumber:C.firstPageNumber,useFirstPageNumber:s(C.firstPageNumber),usePrinterDefaults:s(C.usePrinterDefaults),copies:C.copies};n.some(x,y=>y!==void 0)&&_.leafNode(this.tag,x)}}parseOpen(_){switch(_.name){case this.tag:return this.model={paperSize:(C=_.attributes.paperSize,C!==void 0?parseInt(C,10):void 0),orientation:_.attributes.orientation||"portrait",horizontalDpi:parseInt(_.attributes.horizontalDpi||"4294967295",10),verticalDpi:parseInt(_.attributes.verticalDpi||"4294967295",10),pageOrder:_.attributes.pageOrder||"downThenOver",blackAndWhite:_.attributes.blackAndWhite==="1",draft:_.attributes.draft==="1",cellComments:_.attributes.cellComments||"None",errors:_.attributes.errors||"displayed",scale:parseInt(_.attributes.scale||"100",10),fitToWidth:parseInt(_.attributes.fitToWidth||"1",10),fitToHeight:parseInt(_.attributes.fitToHeight||"1",10),firstPageNumber:parseInt(_.attributes.firstPageNumber||"1",10),useFirstPageNumber:_.attributes.useFirstPageNumber==="1",usePrinterDefaults:_.attributes.usePrinterDefaults==="1",copies:parseInt(_.attributes.copies||"1",10)},!0;default:return!1}var C}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],106:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"picture"}render(i,s){s&&i.leafNode(this.tag,{"r:id":s.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],107:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../base-xform");function s(d){return d?"1":void 0}o.exports=class extends i{get tag(){return"printOptions"}render(d,u){if(u){let f={headings:s(u.showRowColHeaders),gridLines:s(u.showGridLines),horizontalCentered:s(u.horizontalCentered),verticalCentered:s(u.verticalCentered)};n.some(f,_=>_!==void 0)&&d.leafNode(this.tag,f)}}parseOpen(d){switch(d.name){case this.tag:return this.model={showRowColHeaders:d.attributes.headings==="1",showGridLines:d.attributes.gridLines==="1",horizontalCentered:d.attributes.horizontalCentered==="1",verticalCentered:d.attributes.verticalCentered==="1"},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],108:[function(e,o,t){"use strict";let n=e("./page-breaks-xform"),i=e("../list-xform");o.exports=class extends i{constructor(){super({tag:"rowBreaks",count:!0,childXform:new n})}render(s,d){if(d&&d.length){s.openNode(this.tag,this.$),this.count&&(s.addAttribute(this.$count,d.length),s.addAttribute("manualBreakCount",d.length));let{childXform:u}=this;d.forEach(f=>{u.render(s,f)}),s.closeNode()}else this.empty&&s.leafNode(this.tag)}}},{"../list-xform":71,"./page-breaks-xform":102}],109:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("../../../utils/utils"),s=e("./cell-xform");o.exports=class extends n{constructor(d){super(),this.maxItems=d&&d.maxItems,this.map={c:new s}}get tag(){return"row"}prepare(d,u){let f=u.styles.addStyleModel(d.style);f&&(d.styleId=f);let _=this.map.c;d.cells.forEach(C=>{_.prepare(C,u)})}render(d,u,f){d.openNode("row"),d.addAttribute("r",u.number),u.height&&(d.addAttribute("ht",u.height),d.addAttribute("customHeight","1")),u.hidden&&d.addAttribute("hidden","1"),u.min>0&&u.max>0&&u.min<=u.max&&d.addAttribute("spans",`${u.min}:${u.max}`),u.styleId&&(d.addAttribute("s",u.styleId),d.addAttribute("customFormat","1")),d.addAttribute("x14ac:dyDescent","0.25"),u.outlineLevel&&d.addAttribute("outlineLevel",u.outlineLevel),u.collapsed&&d.addAttribute("collapsed","1");let _=this.map.c;u.cells.forEach(C=>{_.render(d,C,f)}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;if(d.name==="row"){this.numRowsSeen+=1;let u=d.attributes.spans?d.attributes.spans.split(":").map(_=>parseInt(_,10)):[void 0,void 0],f=this.model={number:parseInt(d.attributes.r,10),min:u[0],max:u[1],cells:[]};return d.attributes.s&&(f.styleId=parseInt(d.attributes.s,10)),i.parseBoolean(d.attributes.hidden)&&(f.hidden=!0),i.parseBoolean(d.attributes.bestFit)&&(f.bestFit=!0),d.attributes.ht&&(f.height=parseFloat(d.attributes.ht)),d.attributes.outlineLevel&&(f.outlineLevel=parseInt(d.attributes.outlineLevel,10)),i.parseBoolean(d.attributes.collapsed)&&(f.collapsed=!0),!0}return this.parser=this.map[d.name],!!this.parser&&(this.parser.parseOpen(d),!0)}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser){if(!this.parser.parseClose(d)){if(this.model.cells.push(this.parser.model),this.maxItems&&this.model.cells.length>this.maxItems)throw new Error(`Max column count (${this.maxItems}) exceeded`);this.parser=void 0}return!0}return!1}reconcile(d,u){d.style=d.styleId?u.styles.getStyleModel(d.styleId):{},d.styleId!==void 0&&(d.styleId=void 0);let f=this.map.c;d.cells.forEach(_=>{f.reconcile(_,u)})}}},{"../../../utils/utils":27,"../base-xform":32,"./cell-xform":73}],110:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../base-xform");o.exports=class extends i{get tag(){return"sheetFormatPr"}render(s,d){if(d){let u={defaultRowHeight:d.defaultRowHeight,outlineLevelRow:d.outlineLevelRow,outlineLevelCol:d.outlineLevelCol,"x14ac:dyDescent":d.dyDescent};d.defaultColWidth&&(u.defaultColWidth=d.defaultColWidth),d.defaultRowHeight&&d.defaultRowHeight===15||(u.customHeight="1"),n.some(u,f=>f!==void 0)&&s.leafNode("sheetFormatPr",u)}}parseOpen(s){return s.name==="sheetFormatPr"&&(this.model={defaultRowHeight:parseFloat(s.attributes.defaultRowHeight||"0"),dyDescent:parseFloat(s.attributes["x14ac:dyDescent"]||"0"),outlineLevelRow:parseInt(s.attributes.outlineLevelRow||"0",10),outlineLevelCol:parseInt(s.attributes.outlineLevelCol||"0",10)},s.attributes.defaultColWidth&&(this.model.defaultColWidth=parseFloat(s.attributes.defaultColWidth)),!0)}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],111:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("../style/color-xform"),s=e("./page-setup-properties-xform"),d=e("./outline-properties-xform");o.exports=class extends n{constructor(){super(),this.map={tabColor:new i("tabColor"),pageSetUpPr:new s,outlinePr:new d}}get tag(){return"sheetPr"}render(u,f){if(f){u.addRollback(),u.openNode("sheetPr");let _=!1;_=this.map.tabColor.render(u,f.tabColor)||_,_=this.map.pageSetUpPr.render(u,f.pageSetup)||_,_=this.map.outlinePr.render(u,f.outlineProperties)||_,_?(u.closeNode(),u.commit()):u.rollback()}}parseOpen(u){return this.parser?(this.parser.parseOpen(u),!0):u.name===this.tag?(this.reset(),!0):!!this.map[u.name]&&(this.parser=this.map[u.name],this.parser.parseOpen(u),!0)}parseText(u){return!!this.parser&&(this.parser.parseText(u),!0)}parseClose(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):(this.map.tabColor.model||this.map.pageSetUpPr.model||this.map.outlinePr.model?(this.model={},this.map.tabColor.model&&(this.model.tabColor=this.map.tabColor.model),this.map.pageSetUpPr.model&&(this.model.pageSetup=this.map.pageSetUpPr.model),this.map.outlinePr.model&&(this.model.outlineProperties=this.map.outlinePr.model)):this.model=null,!1)}}},{"../base-xform":32,"../style/color-xform":128,"./outline-properties-xform":101,"./page-setup-properties-xform":104}],112:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../base-xform");function s(u,f){return u?f:void 0}function d(u,f){return u===f||void 0}o.exports=class extends i{get tag(){return"sheetProtection"}render(u,f){if(f){let _={sheet:s(f.sheet,"1"),selectLockedCells:f.selectLockedCells===!1?"1":void 0,selectUnlockedCells:f.selectUnlockedCells===!1?"1":void 0,formatCells:s(f.formatCells,"0"),formatColumns:s(f.formatColumns,"0"),formatRows:s(f.formatRows,"0"),insertColumns:s(f.insertColumns,"0"),insertRows:s(f.insertRows,"0"),insertHyperlinks:s(f.insertHyperlinks,"0"),deleteColumns:s(f.deleteColumns,"0"),deleteRows:s(f.deleteRows,"0"),sort:s(f.sort,"0"),autoFilter:s(f.autoFilter,"0"),pivotTables:s(f.pivotTables,"0")};f.sheet&&(_.algorithmName=f.algorithmName,_.hashValue=f.hashValue,_.saltValue=f.saltValue,_.spinCount=f.spinCount,_.objects=s(f.objects===!1,"1"),_.scenarios=s(f.scenarios===!1,"1")),n.some(_,C=>C!==void 0)&&u.leafNode(this.tag,_)}}parseOpen(u){switch(u.name){case this.tag:return this.model={sheet:d(u.attributes.sheet,"1"),objects:u.attributes.objects!=="1"&&void 0,scenarios:u.attributes.scenarios!=="1"&&void 0,selectLockedCells:u.attributes.selectLockedCells!=="1"&&void 0,selectUnlockedCells:u.attributes.selectUnlockedCells!=="1"&&void 0,formatCells:d(u.attributes.formatCells,"0"),formatColumns:d(u.attributes.formatColumns,"0"),formatRows:d(u.attributes.formatRows,"0"),insertColumns:d(u.attributes.insertColumns,"0"),insertRows:d(u.attributes.insertRows,"0"),insertHyperlinks:d(u.attributes.insertHyperlinks,"0"),deleteColumns:d(u.attributes.deleteColumns,"0"),deleteRows:d(u.attributes.deleteRows,"0"),sort:d(u.attributes.sort,"0"),autoFilter:d(u.attributes.autoFilter,"0"),pivotTables:d(u.attributes.pivotTables,"0")},u.attributes.algorithmName&&(this.model.algorithmName=u.attributes.algorithmName,this.model.hashValue=u.attributes.hashValue,this.model.saltValue=u.attributes.saltValue,this.model.spinCount=parseInt(u.attributes.spinCount,10)),!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../../../utils/under-dash":26,"../base-xform":32}],113:[function(e,o,t){"use strict";let n=e("../../../utils/col-cache"),i=e("../base-xform"),s={frozen:"frozen",frozenSplit:"frozen",split:"split"};o.exports=class extends i{get tag(){return"sheetView"}prepare(d){switch(d.state){case"frozen":case"split":break;default:d.state="normal"}}render(d,u){d.openNode("sheetView",{workbookViewId:u.workbookViewId||0});let f=function(P,S,M){M&&d.addAttribute(P,S)},_,C,x,y;switch(f("rightToLeft","1",u.rightToLeft===!0),f("tabSelected","1",u.tabSelected),f("showRuler","0",u.showRuler===!1),f("showRowColHeaders","0",u.showRowColHeaders===!1),f("showGridLines","0",u.showGridLines===!1),f("zoomScale",u.zoomScale,u.zoomScale),f("zoomScaleNormal",u.zoomScaleNormal,u.zoomScaleNormal),f("view",u.style,u.style),u.state){case"frozen":C=u.xSplit||0,x=u.ySplit||0,_=u.topLeftCell||n.getAddress(x+1,C+1).address,y=(u.xSplit&&u.ySplit?"bottomRight":u.xSplit&&"topRight")||"bottomLeft",d.leafNode("pane",{xSplit:u.xSplit||void 0,ySplit:u.ySplit||void 0,topLeftCell:_,activePane:y,state:"frozen"}),d.leafNode("selection",{pane:y,activeCell:u.activeCell,sqref:u.activeCell});break;case"split":u.activePane==="topLeft"&&(u.activePane=void 0),d.leafNode("pane",{xSplit:u.xSplit||void 0,ySplit:u.ySplit||void 0,topLeftCell:u.topLeftCell,activePane:u.activePane}),d.leafNode("selection",{pane:u.activePane,activeCell:u.activeCell,sqref:u.activeCell});break;case"normal":u.activeCell&&d.leafNode("selection",{activeCell:u.activeCell,sqref:u.activeCell})}d.closeNode()}parseOpen(d){switch(d.name){case"sheetView":return this.sheetView={workbookViewId:parseInt(d.attributes.workbookViewId,10),rightToLeft:d.attributes.rightToLeft==="1",tabSelected:d.attributes.tabSelected==="1",showRuler:d.attributes.showRuler!=="0",showRowColHeaders:d.attributes.showRowColHeaders!=="0",showGridLines:d.attributes.showGridLines!=="0",zoomScale:parseInt(d.attributes.zoomScale||"100",10),zoomScaleNormal:parseInt(d.attributes.zoomScaleNormal||"100",10),style:d.attributes.view},this.pane=void 0,this.selections={},!0;case"pane":return this.pane={xSplit:parseInt(d.attributes.xSplit||"0",10),ySplit:parseInt(d.attributes.ySplit||"0",10),topLeftCell:d.attributes.topLeftCell,activePane:d.attributes.activePane||"topLeft",state:d.attributes.state},!0;case"selection":{let u=d.attributes.pane||"topLeft";return this.selections[u]={pane:u,activeCell:d.attributes.activeCell},!0}default:return!1}}parseText(){}parseClose(d){let u,f;switch(d){case"sheetView":return this.sheetView&&this.pane?(u=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:s[this.pane.state]||"split",xSplit:this.pane.xSplit,ySplit:this.pane.ySplit,topLeftCell:this.pane.topLeftCell,showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},this.model.state==="split"&&(u.activePane=this.pane.activePane),f=this.selections[this.pane.activePane],f&&f.activeCell&&(u.activeCell=f.activeCell),this.sheetView.style&&(u.style=this.sheetView.style)):(u=this.model={workbookViewId:this.sheetView.workbookViewId,rightToLeft:this.sheetView.rightToLeft,state:"normal",showRuler:this.sheetView.showRuler,showRowColHeaders:this.sheetView.showRowColHeaders,showGridLines:this.sheetView.showGridLines,zoomScale:this.sheetView.zoomScale,zoomScaleNormal:this.sheetView.zoomScaleNormal},f=this.selections.topLeft,f&&f.activeCell&&(u.activeCell=f.activeCell),this.sheetView.style&&(u.style=this.sheetView.style)),!1;default:return!0}}reconcile(){}}},{"../../../utils/col-cache":19,"../base-xform":32}],114:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"tablePart"}render(i,s){s&&i.leafNode(this.tag,{"r:id":s.rId})}parseOpen(i){switch(i.name){case this.tag:return this.model={rId:i.attributes["r:id"]},!0;default:return!1}}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],115:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../../../utils/col-cache"),s=e("../../../utils/xml-stream"),d=e("../../rel-type"),u=e("./merges"),f=e("../base-xform"),_=e("../list-xform"),C=e("./row-xform"),x=e("./col-xform"),y=e("./dimension-xform"),P=e("./hyperlink-xform"),S=e("./merge-cell-xform"),M=e("./data-validations-xform"),D=e("./sheet-properties-xform"),k=e("./sheet-format-properties-xform"),z=e("./sheet-view-xform"),U=e("./sheet-protection-xform"),J=e("./page-margins-xform"),re=e("./page-setup-xform"),ee=e("./print-options-xform"),ae=e("./auto-filter-xform"),se=e("./picture-xform"),_e=e("./drawing-xform"),de=e("./table-part-xform"),j=e("./row-breaks-xform"),W=e("./header-footer-xform"),pe=e("./cf/conditional-formattings-xform"),O=e("./ext-lst-xform"),B=(N,G)=>{if(!G||!G.length)return N;if(!N||!N.length)return G;let $={},ne={};return N.forEach(be=>{$[be.ref]=be,be.rules.forEach(ye=>{let{x14Id:Ne}=ye;Ne&&(ne[Ne]=ye)})}),G.forEach(be=>{be.rules.forEach(ye=>{let Ne=ne[ye.x14Id];Ne?((te,Ae)=>{Object.keys(Ae).forEach(K=>{let Q=te[K],Ce=Ae[K];Q===void 0&&Ce!==void 0&&(te[K]=Ce)})})(Ne,ye):$[be.ref]?$[be.ref].rules.push(ye):N.push({ref:be.ref,rules:[ye]})})}),N};class L extends f{constructor(G){super();let{maxRows:$,maxCols:ne,ignoreNodes:be}=G||{};this.ignoreNodes=be||[],this.map={sheetPr:new D,dimension:new y,sheetViews:new _({tag:"sheetViews",count:!1,childXform:new z}),sheetFormatPr:new k,cols:new _({tag:"cols",count:!1,childXform:new x}),sheetData:new _({tag:"sheetData",count:!1,empty:!0,childXform:new C({maxItems:ne}),maxItems:$}),autoFilter:new ae,mergeCells:new _({tag:"mergeCells",count:!0,childXform:new S}),rowBreaks:new j,hyperlinks:new _({tag:"hyperlinks",count:!1,childXform:new P}),pageMargins:new J,dataValidations:new M,pageSetup:new re,headerFooter:new W,printOptions:new ee,picture:new se,drawing:new _e,sheetProtection:new U,tableParts:new _({tag:"tableParts",count:!0,childXform:new de}),conditionalFormatting:new pe,extLst:new O}}prepare(G,$){$.merges=new u,G.hyperlinks=$.hyperlinks=[],G.comments=$.comments=[],$.formulae={},$.siFormulae=0,this.map.cols.prepare(G.cols,$),this.map.sheetData.prepare(G.rows,$),this.map.conditionalFormatting.prepare(G.conditionalFormattings,$),G.mergeCells=$.merges.mergeCells;let ne=G.rels=[];function be(te){return"rId"+(te.length+1)}if(G.hyperlinks.forEach(te=>{let Ae=be(ne);te.rId=Ae,ne.push({Id:Ae,Type:d.Hyperlink,Target:te.target,TargetMode:"External"})}),G.comments.length>0){let te={Id:be(ne),Type:d.Comments,Target:`../comments${G.id}.xml`};ne.push(te);let Ae={Id:be(ne),Type:d.VmlDrawing,Target:`../drawings/vmlDrawing${G.id}.vml`};ne.push(Ae),G.comments.forEach(K=>{K.refAddress=i.decodeAddress(K.ref)}),$.commentRefs.push({commentName:"comments"+G.id,vmlDrawing:"vmlDrawing"+G.id})}let ye=[],Ne;G.media.forEach(te=>{if(te.type==="background"){let Ae=be(ne);Ne=$.media[te.imageId],ne.push({Id:Ae,Type:d.Image,Target:`../media/${Ne.name}.${Ne.extension}`}),G.background={rId:Ae},G.image=$.media[te.imageId]}else if(te.type==="image"){let{drawing:Ae}=G;Ne=$.media[te.imageId],Ae||(Ae=G.drawing={rId:be(ne),name:"drawing"+ ++$.drawingsCount,anchors:[],rels:[]},$.drawings.push(Ae),ne.push({Id:Ae.rId,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",Target:`../drawings/${Ae.name}.xml`}));let K=this.preImageId===te.imageId?ye[te.imageId]:ye[Ae.rels.length];K||(K=be(Ae.rels),ye[Ae.rels.length]=K,Ae.rels.push({Id:K,Type:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",Target:`../media/${Ne.name}.${Ne.extension}`}));let Q={picture:{rId:K},range:te.range};if(te.hyperlinks&&te.hyperlinks.hyperlink){let Ce=be(Ae.rels);ye[Ae.rels.length]=Ce,Q.picture.hyperlinks={tooltip:te.hyperlinks.tooltip,rId:Ce},Ae.rels.push({Id:Ce,Type:d.Hyperlink,Target:te.hyperlinks.hyperlink,TargetMode:"External"})}this.preImageId=te.imageId,Ae.anchors.push(Q)}}),G.tables.forEach(te=>{let Ae=be(ne);te.rId=Ae,ne.push({Id:Ae,Type:d.Table,Target:"../tables/"+te.target}),te.columns.forEach(K=>{let{style:Q}=K;Q&&(K.dxfId=$.styles.addDxfStyle(Q))})}),this.map.extLst.prepare(G,$)}render(G,$){G.openXml(s.StdDocAttributes),G.openNode("worksheet",L.WORKSHEET_ATTRIBUTES);let ne=$.properties?{defaultRowHeight:$.properties.defaultRowHeight,dyDescent:$.properties.dyDescent,outlineLevelCol:$.properties.outlineLevelCol,outlineLevelRow:$.properties.outlineLevelRow}:void 0;$.properties&&$.properties.defaultColWidth&&(ne.defaultColWidth=$.properties.defaultColWidth);let be={outlineProperties:$.properties&&$.properties.outlineProperties,tabColor:$.properties&&$.properties.tabColor,pageSetup:$.pageSetup&&$.pageSetup.fitToPage?{fitToPage:$.pageSetup.fitToPage}:void 0},ye=$.pageSetup&&$.pageSetup.margins,Ne={showRowColHeaders:$.pageSetup&&$.pageSetup.showRowColHeaders,showGridLines:$.pageSetup&&$.pageSetup.showGridLines,horizontalCentered:$.pageSetup&&$.pageSetup.horizontalCentered,verticalCentered:$.pageSetup&&$.pageSetup.verticalCentered},te=$.sheetProtection;this.map.sheetPr.render(G,be),this.map.dimension.render(G,$.dimensions),this.map.sheetViews.render(G,$.views),this.map.sheetFormatPr.render(G,ne),this.map.cols.render(G,$.cols),this.map.sheetData.render(G,$.rows),this.map.sheetProtection.render(G,te),this.map.autoFilter.render(G,$.autoFilter),this.map.mergeCells.render(G,$.mergeCells),this.map.conditionalFormatting.render(G,$.conditionalFormattings),this.map.dataValidations.render(G,$.dataValidations),this.map.hyperlinks.render(G,$.hyperlinks),this.map.printOptions.render(G,Ne),this.map.pageMargins.render(G,ye),this.map.pageSetup.render(G,$.pageSetup),this.map.headerFooter.render(G,$.headerFooter),this.map.rowBreaks.render(G,$.rowBreaks),this.map.drawing.render(G,$.drawing),this.map.picture.render(G,$.background),this.map.tableParts.render(G,$.tables),this.map.extLst.render(G,$),$.rels&&$.rels.forEach(Ae=>{Ae.Type===d.VmlDrawing&&G.leafNode("legacyDrawing",{"r:id":Ae.Id})}),G.closeNode()}parseOpen(G){return this.parser?(this.parser.parseOpen(G),!0):G.name==="worksheet"?(n.each(this.map,$=>{$.reset()}),!0):(this.map[G.name]&&!this.ignoreNodes.includes(G.name)&&(this.parser=this.map[G.name],this.parser.parseOpen(G)),!0)}parseText(G){this.parser&&this.parser.parseText(G)}parseClose(G){if(this.parser)return this.parser.parseClose(G)||(this.parser=void 0),!0;switch(G){case"worksheet":{let $=this.map.sheetFormatPr.model||{};this.map.sheetPr.model&&this.map.sheetPr.model.tabColor&&($.tabColor=this.map.sheetPr.model.tabColor),this.map.sheetPr.model&&this.map.sheetPr.model.outlineProperties&&($.outlineProperties=this.map.sheetPr.model.outlineProperties);let ne={fitToPage:this.map.sheetPr.model&&this.map.sheetPr.model.pageSetup&&this.map.sheetPr.model.pageSetup.fitToPage||!1,margins:this.map.pageMargins.model},be=Object.assign(ne,this.map.pageSetup.model,this.map.printOptions.model),ye=B(this.map.conditionalFormatting.model,this.map.extLst.model&&this.map.extLst.model["x14:conditionalFormattings"]);return this.model={dimensions:this.map.dimension.model,cols:this.map.cols.model,rows:this.map.sheetData.model,mergeCells:this.map.mergeCells.model,hyperlinks:this.map.hyperlinks.model,dataValidations:this.map.dataValidations.model,properties:$,views:this.map.sheetViews.model,pageSetup:be,headerFooter:this.map.headerFooter.model,background:this.map.picture.model,drawing:this.map.drawing.model,tables:this.map.tableParts.model,conditionalFormattings:ye},this.map.autoFilter.model&&(this.model.autoFilter=this.map.autoFilter.model),this.map.sheetProtection.model&&(this.model.sheetProtection=this.map.sheetProtection.model),!1}default:return!0}}reconcile(G,$){let ne=(G.relationships||[]).reduce((ye,Ne)=>{if(ye[Ne.Id]=Ne,Ne.Type===d.Comments&&(G.comments=$.comments[Ne.Target].comments),Ne.Type===d.VmlDrawing&&G.comments&&G.comments.length){let te=$.vmlDrawings[Ne.Target].comments;G.comments.forEach((Ae,K)=>{Ae.note=Object.assign({},Ae.note,te[K])})}return ye},{});if($.commentsMap=(G.comments||[]).reduce((ye,Ne)=>(Ne.ref&&(ye[Ne.ref]=Ne),ye),{}),$.hyperlinkMap=(G.hyperlinks||[]).reduce((ye,Ne)=>(Ne.rId&&(ye[Ne.address]=ne[Ne.rId].Target),ye),{}),$.formulae={},G.rows=G.rows&&G.rows.filter(Boolean)||[],G.rows.forEach(ye=>{ye.cells=ye.cells&&ye.cells.filter(Boolean)||[]}),this.map.cols.reconcile(G.cols,$),this.map.sheetData.reconcile(G.rows,$),this.map.conditionalFormatting.reconcile(G.conditionalFormattings,$),G.media=[],G.drawing){let ye=ne[G.drawing.rId].Target.match(/\/drawings\/([a-zA-Z0-9]+)[.][a-zA-Z]{3,4}$/);if(ye){let Ne=ye[1];$.drawings[Ne].anchors.forEach(te=>{if(te.medium){let Ae={type:"image",imageId:te.medium.index,range:te.range,hyperlinks:te.picture.hyperlinks};G.media.push(Ae)}})}}let be=G.background&&ne[G.background.rId];if(be){let ye=be.Target.split("/media/")[1],Ne=$.mediaIndex&&$.mediaIndex[ye];Ne!==void 0&&G.media.push({type:"background",imageId:Ne})}G.tables=(G.tables||[]).map(ye=>{let Ne=ne[ye.rId];return $.tables[Ne.Target]}),delete G.relationships,delete G.hyperlinks,delete G.comments}}L.WORKSHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac"},o.exports=L},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../../rel-type":31,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":72,"./cf/conditional-formattings-xform":87,"./col-xform":92,"./data-validations-xform":93,"./dimension-xform":94,"./drawing-xform":95,"./ext-lst-xform":96,"./header-footer-xform":97,"./hyperlink-xform":98,"./merge-cell-xform":99,"./merges":100,"./page-margins-xform":103,"./page-setup-xform":105,"./picture-xform":106,"./print-options-xform":107,"./row-breaks-xform":108,"./row-xform":109,"./sheet-format-properties-xform":110,"./sheet-properties-xform":111,"./sheet-protection-xform":112,"./sheet-view-xform":113,"./table-part-xform":114}],116:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{constructor(i){super(),this.tag=i.tag,this.attr=i.attr}render(i,s){s&&(i.openNode(this.tag),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.model=!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],117:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this._format=i.format||function(s){try{return Number.isNaN(s.getTime())?"":s.toISOString()}catch{return""}},this._parse=i.parse||function(s){return new Date(s)}}render(i,s){s&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,this._format(s)):i.writeText(this._format(s)),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=this._parse(i.attributes[this.attr]):this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this._parse(this.text.join(""))),!1}}},{"../base-xform":32}],118:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs,this.zero=i.zero}render(i,s){(s||this.zero)&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,s):i.writeText(s),i.closeNode())}parseOpen(i){return i.name===this.tag&&(this.attr?this.model=parseInt(i.attributes[this.attr],10):this.text=[],!0)}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=parseInt(this.text.join("")||0,10)),!1}}},{"../base-xform":32}],119:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{constructor(i){super(),this.tag=i.tag,this.attr=i.attr,this.attrs=i.attrs}render(i,s){s!==void 0&&(i.openNode(this.tag),this.attrs&&i.addAttributes(this.attrs),this.attr?i.addAttribute(this.attr,s):i.writeText(s),i.closeNode())}parseOpen(i){i.name===this.tag&&(this.attr?this.model=i.attributes[this.attr]:this.text=[])}parseText(i){this.attr||this.text.push(i)}parseClose(){return this.attr||(this.model=this.text.join("")),!1}}},{"../base-xform":32}],120:[function(e,o,t){"use strict";let n=e("./base-xform"),i=e("../../utils/xml-stream");o.exports=class extends n{constructor(s){super(),this._model=s}render(s){if(!this._xml){let d=new i;(function u(f,_){f.openNode(_.tag,_.$),_.c&&_.c.forEach(C=>{u(f,C)}),_.t&&f.writeText(_.t),f.closeNode()})(d,this._model),this._xml=d.xml}s.writeXml(this._xml)}parseOpen(){return!0}parseText(){}parseClose(s){switch(s){case this._model.tag:return!1;default:return!0}}}},{"../../utils/xml-stream":28,"./base-xform":32}],121:[function(e,o,t){"use strict";let n=e("./text-xform"),i=e("./rich-text-xform"),s=e("../base-xform");o.exports=class extends s{constructor(){super(),this.map={r:new i,t:new n}}get tag(){return"rPh"}render(d,u){if(d.openNode(this.tag,{sb:u.sb||0,eb:u.eb||0}),u&&u.hasOwnProperty("richText")&&u.richText){let{r:f}=this.map;u.richText.forEach(_=>{f.render(d,_)})}else u&&this.map.t.render(d,u.text);d.closeNode()}parseOpen(d){let{name:u}=d;return this.parser?(this.parser.parseOpen(d),!0):u===this.tag?(this.model={sb:parseInt(d.attributes.sb,10),eb:parseInt(d.attributes.eb,10)},!0):(this.parser=this.map[u],!!this.parser&&(this.parser.parseOpen(d),!0))}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser){if(!this.parser.parseClose(d)){switch(d){case"r":{let u=this.model.richText;u||(u=this.model.richText=[]),u.push(this.parser.model);break}case"t":this.model.text=this.parser.model}this.parser=void 0}return!0}switch(d){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./rich-text-xform":122,"./text-xform":125}],122:[function(e,o,t){"use strict";let n=e("./text-xform"),i=e("../style/font-xform"),s=e("../base-xform");class d extends s{constructor(f){super(),this.model=f}get tag(){return"r"}get textXform(){return this._textXform||(this._textXform=new n)}get fontXform(){return this._fontXform||(this._fontXform=new i(d.FONT_OPTIONS))}render(f,_){_=_||this.model,f.openNode("r"),_.font&&this.fontXform.render(f,_.font),this.textXform.render(f,_.text),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"r":return this.model={},!0;case"t":return this.parser=this.textXform,this.parser.parseOpen(f),!0;case"rPr":return this.parser=this.fontXform,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){switch(f){case"r":return!1;case"t":return this.model.text=this.parser.model,this.parser=void 0,!0;case"rPr":return this.model.font=this.parser.model,this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(f),!0}}}d.FONT_OPTIONS={tagName:"rPr",fontNameTag:"rFont"},o.exports=d},{"../base-xform":32,"../style/font-xform":131,"./text-xform":125}],123:[function(e,o,t){"use strict";let n=e("./text-xform"),i=e("./rich-text-xform"),s=e("./phonetic-text-xform"),d=e("../base-xform");o.exports=class extends d{constructor(u){super(),this.model=u,this.map={r:new i,t:new n,rPh:new s}}get tag(){return"si"}render(u,f){u.openNode(this.tag),f&&f.hasOwnProperty("richText")&&f.richText?f.richText.length?f.richText.forEach(_=>{this.map.r.render(u,_)}):this.map.t.render(u,""):f!=null&&this.map.t.render(u,f),u.closeNode()}parseOpen(u){let{name:f}=u;return this.parser?(this.parser.parseOpen(u),!0):f===this.tag?(this.model={},!0):(this.parser=this.map[f],!!this.parser&&(this.parser.parseOpen(u),!0))}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser){if(!this.parser.parseClose(u)){switch(u){case"r":{let f=this.model.richText;f||(f=this.model.richText=[]),f.push(this.parser.model);break}case"t":this.model=this.parser.model}this.parser=void 0}return!0}switch(u){case this.tag:return!1;default:return!0}}}},{"../base-xform":32,"./phonetic-text-xform":121,"./rich-text-xform":122,"./text-xform":125}],124:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../base-xform"),s=e("./shared-string-xform");o.exports=class extends i{constructor(d){super(),this.model=d||{values:[],count:0},this.hash=Object.create(null),this.rich=Object.create(null)}get sharedStringXform(){return this._sharedStringXform||(this._sharedStringXform=new s)}get values(){return this.model.values}get uniqueCount(){return this.model.values.length}get count(){return this.model.count}getString(d){return this.model.values[d]}add(d){return d.richText?this.addRichText(d):this.addText(d)}addText(d){let u=this.hash[d];return u===void 0&&(u=this.hash[d]=this.model.values.length,this.model.values.push(d)),this.model.count++,u}addRichText(d){let u=this.sharedStringXform.toXml(d),f=this.rich[u];return f===void 0&&(f=this.rich[u]=this.model.values.length,this.model.values.push(d)),this.model.count++,f}render(d,u){u=u||this._values,d.openXml(n.StdDocAttributes),d.openNode("sst",{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main",count:u.count,uniqueCount:u.values.length});let f=this.sharedStringXform;u.values.forEach(_=>{f.render(d,_)}),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"sst":return!0;case"si":return this.parser=this.sharedStringXform,this.parser.parseOpen(d),!0;default:throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(d))}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){if(this.parser)return this.parser.parseClose(d)||(this.model.values.push(this.parser.model),this.model.count++,this.parser=void 0),!0;switch(d){case"sst":return!1;default:throw new Error("Unexpected xml node in parseClose: "+d)}}}},{"../../../utils/xml-stream":28,"../base-xform":32,"./shared-string-xform":123}],125:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"t"}render(i,s){i.openNode("t"),/^\s|\n|\s$/.test(s)&&i.addAttribute("xml:space","preserve"),i.writeText(s),i.closeNode()}get model(){return this._text.join("").replace(/_x([0-9A-F]{4})_/g,(i,s)=>String.fromCharCode(parseInt(s,16)))}parseOpen(i){switch(i.name){case"t":return this._text=[],!0;default:return!1}}parseText(i){this._text.push(i)}parseClose(){return!1}}},{"../base-xform":32}],126:[function(e,o,t){"use strict";let n=e("../../../doc/enums"),i=e("../../../utils/utils"),s=e("../base-xform"),d={horizontalValues:["left","center","right","fill","centerContinuous","distributed","justify"].reduce((f,_)=>(f[_]=!0,f),{}),horizontal(f){return this.horizontalValues[f]?f:void 0},verticalValues:["top","middle","bottom","distributed","justify"].reduce((f,_)=>(f[_]=!0,f),{}),vertical(f){return f==="middle"?"center":this.verticalValues[f]?f:void 0},wrapText:f=>!!f||void 0,shrinkToFit:f=>!!f||void 0,textRotation(f){switch(f){case"vertical":return f;default:return(f=i.validInt(f))>=-90&&f<=90?f:void 0}},indent:f=>(f=i.validInt(f),Math.max(0,f)),readingOrder(f){switch(f){case"ltr":return n.ReadingOrder.LeftToRight;case"rtl":return n.ReadingOrder.RightToLeft;default:return}}},u={toXml(f){if(f=d.textRotation(f)){if(f==="vertical")return 255;let _=Math.round(f);if(_>=0&&_<=90)return _;if(_<0&&_>=-90)return 90-_}},toModel(f){let _=i.validInt(f);if(_!==void 0){if(_===255)return"vertical";if(_>=0&&_<=90)return _;if(_>90&&_<=180)return 90-_}}};o.exports=class extends s{get tag(){return"alignment"}render(f,_){f.addRollback(),f.openNode("alignment");let C=!1;function x(y,P){P&&(f.addAttribute(y,P),C=!0)}x("horizontal",d.horizontal(_.horizontal)),x("vertical",d.vertical(_.vertical)),x("wrapText",!!d.wrapText(_.wrapText)&&"1"),x("shrinkToFit",!!d.shrinkToFit(_.shrinkToFit)&&"1"),x("indent",d.indent(_.indent)),x("textRotation",u.toXml(_.textRotation)),x("readingOrder",d.readingOrder(_.readingOrder)),f.closeNode(),C?f.commit():f.rollback()}parseOpen(f){let _={},C=!1;function x(y,P,S){y&&(_[P]=S,C=!0)}x(f.attributes.horizontal,"horizontal",f.attributes.horizontal),x(f.attributes.vertical,"vertical",f.attributes.vertical==="center"?"middle":f.attributes.vertical),x(f.attributes.wrapText,"wrapText",i.parseBoolean(f.attributes.wrapText)),x(f.attributes.shrinkToFit,"shrinkToFit",i.parseBoolean(f.attributes.shrinkToFit)),x(f.attributes.indent,"indent",parseInt(f.attributes.indent,10)),x(f.attributes.textRotation,"textRotation",u.toModel(f.attributes.textRotation)),x(f.attributes.readingOrder,"readingOrder",f.attributes.readingOrder==="2"?"rtl":"ltr"),this.model=C?_:null}parseText(){}parseClose(){return!1}}},{"../../../doc/enums":7,"../../../utils/utils":27,"../base-xform":32}],127:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("../../../utils/utils"),s=e("./color-xform");class d extends n{constructor(f){super(),this.name=f,this.map={color:new s}}get tag(){return this.name}render(f,_,C){let x=_&&_.color||C||this.defaultColor;f.openNode(this.name),_&&_.style&&(f.addAttribute("style",_.style),x&&this.map.color.render(f,x)),f.closeNode()}parseOpen(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case this.name:{let{style:_}=f.attributes;return this.model=_?{style:_}:void 0,!0}case"color":return this.parser=this.map.color,this.parser.parseOpen(f),!0;default:return!1}}parseText(f){this.parser&&this.parser.parseText(f)}parseClose(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):(f===this.name&&this.map.color.model&&(this.model||(this.model={}),this.model.color=this.map.color.model),!1)}validStyle(f){return d.validStyleValues[f]}}d.validStyleValues=["thin","dashed","dotted","dashDot","hair","dashDotDot","slantDashDot","mediumDashed","mediumDashDotDot","mediumDashDot","medium","double","thick"].reduce((u,f)=>(u[f]=!0,u),{}),o.exports=class extends n{constructor(){super(),this.map={top:new d("top"),left:new d("left"),bottom:new d("bottom"),right:new d("right"),diagonal:new d("diagonal")}}render(u,f){let{color:_}=f;function C(x,y){x&&!x.color&&f.color&&(x=qt(at({},x),{color:f.color})),y.render(u,x,_)}u.openNode("border"),f.diagonal&&f.diagonal.style&&(f.diagonal.up&&u.addAttribute("diagonalUp","1"),f.diagonal.down&&u.addAttribute("diagonalDown","1")),C(f.left,this.map.left),C(f.right,this.map.right),C(f.top,this.map.top),C(f.bottom,this.map.bottom),C(f.diagonal,this.map.diagonal),u.closeNode()}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;switch(u.name){case"border":return this.reset(),this.diagonalUp=i.parseBoolean(u.attributes.diagonalUp),this.diagonalDown=i.parseBoolean(u.attributes.diagonalDown),!0;default:return this.parser=this.map[u.name],!!this.parser&&(this.parser.parseOpen(u),!0)}}parseText(u){this.parser&&this.parser.parseText(u)}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;if(u==="border"){let f=this.model={},_=function(C,x,y){x&&(y&&Object.assign(x,y),f[C]=x)};_("left",this.map.left.model),_("right",this.map.right.model),_("top",this.map.top.model),_("bottom",this.map.bottom.model),_("diagonal",this.map.diagonal.model,{up:this.diagonalUp,down:this.diagonalDown})}return!1}}},{"../../../utils/utils":27,"../base-xform":32,"./color-xform":128}],128:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{constructor(i){super(),this.name=i||"color"}get tag(){return this.name}render(i,s){return!!s&&(i.openNode(this.name),s.argb?i.addAttribute("rgb",s.argb):s.theme!==void 0?(i.addAttribute("theme",s.theme),s.tint!==void 0&&i.addAttribute("tint",s.tint)):s.indexed!==void 0?i.addAttribute("indexed",s.indexed):i.addAttribute("auto","1"),i.closeNode(),!0)}parseOpen(i){return i.name===this.name&&(i.attributes.rgb?this.model={argb:i.attributes.rgb}:i.attributes.theme?(this.model={theme:parseInt(i.attributes.theme,10)},i.attributes.tint&&(this.model.tint=parseFloat(i.attributes.tint))):i.attributes.indexed?this.model={indexed:parseInt(i.attributes.indexed,10)}:this.model=void 0,!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],129:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./alignment-xform"),s=e("./border-xform"),d=e("./fill-xform"),u=e("./font-xform"),f=e("./numfmt-xform"),_=e("./protection-xform");o.exports=class extends n{constructor(){super(),this.map={alignment:new i,border:new s,fill:new d,font:new u,numFmt:new f,protection:new _}}get tag(){return"dxf"}render(C,x){if(C.openNode(this.tag),x.font&&this.map.font.render(C,x.font),x.numFmt&&x.numFmtId){let y={id:x.numFmtId,formatCode:x.numFmt};this.map.numFmt.render(C,y)}x.fill&&this.map.fill.render(C,x.fill),x.alignment&&this.map.alignment.render(C,x.alignment),x.border&&this.map.border.render(C,x.border),x.protection&&this.map.protection.render(C,x.protection),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case this.tag:return this.reset(),!0;default:return this.parser=this.map[C.name],this.parser&&this.parser.parseOpen(C),!0}}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){return this.parser?(this.parser.parseClose(C)||(this.parser=void 0),!0):C!==this.tag||(this.model={alignment:this.map.alignment.model,border:this.map.border.model,fill:this.map.fill.model,font:this.map.font.model,numFmt:this.map.numFmt.model,protection:this.map.protection.model},!1)}}},{"../base-xform":32,"./alignment-xform":126,"./border-xform":127,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./protection-xform":133}],130:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./color-xform");class s extends n{constructor(){super(),this.map={color:new i}}get tag(){return"stop"}render(C,x){C.openNode("stop"),C.addAttribute("position",x.position),this.map.color.render(C,x.color),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case"stop":return this.model={position:parseFloat(C.attributes.position)},!0;case"color":return this.parser=this.map.color,this.parser.parseOpen(C),!0;default:return!1}}parseText(){}parseClose(C){return!!this.parser&&(this.parser.parseClose(C)||(this.model.color=this.parser.model,this.parser=void 0),!0)}}class d extends n{constructor(){super(),this.map={fgColor:new i("fgColor"),bgColor:new i("bgColor")}}get name(){return"pattern"}get tag(){return"patternFill"}render(C,x){C.openNode("patternFill"),C.addAttribute("patternType",x.pattern),x.fgColor&&this.map.fgColor.render(C,x.fgColor),x.bgColor&&this.map.bgColor.render(C,x.bgColor),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case"patternFill":return this.model={type:"pattern",pattern:C.attributes.patternType},!0;default:return this.parser=this.map[C.name],!!this.parser&&(this.parser.parseOpen(C),!0)}}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){return!!this.parser&&(this.parser.parseClose(C)||(this.parser.model&&(this.model[C]=this.parser.model),this.parser=void 0),!0)}}class u extends n{constructor(){super(),this.map={stop:new s}}get name(){return"gradient"}get tag(){return"gradientFill"}render(C,x){switch(C.openNode("gradientFill"),x.gradient){case"angle":C.addAttribute("degree",x.degree);break;case"path":C.addAttribute("type","path"),x.center.left&&(C.addAttribute("left",x.center.left),x.center.right===void 0&&C.addAttribute("right",x.center.left)),x.center.right&&C.addAttribute("right",x.center.right),x.center.top&&(C.addAttribute("top",x.center.top),x.center.bottom===void 0&&C.addAttribute("bottom",x.center.top)),x.center.bottom&&C.addAttribute("bottom",x.center.bottom)}let y=this.map.stop;x.stops.forEach(P=>{y.render(C,P)}),C.closeNode()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case"gradientFill":{let x=this.model={stops:[]};return C.attributes.degree?(x.gradient="angle",x.degree=parseInt(C.attributes.degree,10)):C.attributes.type==="path"&&(x.gradient="path",x.center={left:C.attributes.left?parseFloat(C.attributes.left):0,top:C.attributes.top?parseFloat(C.attributes.top):0},C.attributes.right!==C.attributes.left&&(x.center.right=C.attributes.right?parseFloat(C.attributes.right):0),C.attributes.bottom!==C.attributes.top&&(x.center.bottom=C.attributes.bottom?parseFloat(C.attributes.bottom):0)),!0}case"stop":return this.parser=this.map.stop,this.parser.parseOpen(C),!0;default:return!1}}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){return!!this.parser&&(this.parser.parseClose(C)||(this.model.stops.push(this.parser.model),this.parser=void 0),!0)}}class f extends n{constructor(){super(),this.map={patternFill:new d,gradientFill:new u}}get tag(){return"fill"}render(C,x){switch(C.addRollback(),C.openNode("fill"),x.type){case"pattern":this.map.patternFill.render(C,x);break;case"gradient":this.map.gradientFill.render(C,x);break;default:return void C.rollback()}C.closeNode(),C.commit()}parseOpen(C){if(this.parser)return this.parser.parseOpen(C),!0;switch(C.name){case"fill":return this.model={},!0;default:return this.parser=this.map[C.name],!!this.parser&&(this.parser.parseOpen(C),!0)}}parseText(C){this.parser&&this.parser.parseText(C)}parseClose(C){return!!this.parser&&(this.parser.parseClose(C)||(this.model=this.parser.model,this.model.type=this.parser.name,this.parser=void 0),!0)}validStyle(C){return f.validPatternValues[C]}}f.validPatternValues=["none","solid","darkVertical","darkGray","mediumGray","lightGray","gray125","gray0625","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","lightGrid"].reduce((_,C)=>(_[C]=!0,_),{}),f.StopXform=s,f.PatternFillXform=d,f.GradientFillXform=u,o.exports=f},{"../base-xform":32,"./color-xform":128}],131:[function(e,o,t){"use strict";let n=e("./color-xform"),i=e("../simple/boolean-xform"),s=e("../simple/integer-xform"),d=e("../simple/string-xform"),u=e("./underline-xform"),f=e("../../../utils/under-dash"),_=e("../base-xform");class C extends _{constructor(y){super(),this.options=y||C.OPTIONS,this.map={b:{prop:"bold",xform:new i({tag:"b",attr:"val"})},i:{prop:"italic",xform:new i({tag:"i",attr:"val"})},u:{prop:"underline",xform:new u},charset:{prop:"charset",xform:new s({tag:"charset",attr:"val"})},color:{prop:"color",xform:new n},condense:{prop:"condense",xform:new i({tag:"condense",attr:"val"})},extend:{prop:"extend",xform:new i({tag:"extend",attr:"val"})},family:{prop:"family",xform:new s({tag:"family",attr:"val"})},outline:{prop:"outline",xform:new i({tag:"outline",attr:"val"})},vertAlign:{prop:"vertAlign",xform:new d({tag:"vertAlign",attr:"val"})},scheme:{prop:"scheme",xform:new d({tag:"scheme",attr:"val"})},shadow:{prop:"shadow",xform:new i({tag:"shadow",attr:"val"})},strike:{prop:"strike",xform:new i({tag:"strike",attr:"val"})},sz:{prop:"size",xform:new s({tag:"sz",attr:"val"})}},this.map[this.options.fontNameTag]={prop:"name",xform:new d({tag:this.options.fontNameTag,attr:"val"})}}get tag(){return this.options.tagName}render(y,P){let{map:S}=this;y.openNode(this.options.tagName),f.each(this.map,(M,D)=>{S[D].xform.render(y,P[M.prop])}),y.closeNode()}parseOpen(y){if(this.parser)return this.parser.parseOpen(y),!0;if(this.map[y.name])return this.parser=this.map[y.name].xform,this.parser.parseOpen(y);switch(y.name){case this.options.tagName:return this.model={},!0;default:return!1}}parseText(y){this.parser&&this.parser.parseText(y)}parseClose(y){if(this.parser&&!this.parser.parseClose(y)){let P=this.map[y];return this.parser.model&&(this.model[P.prop]=this.parser.model),this.parser=void 0,!0}switch(y){case this.options.tagName:return!1;default:return!0}}}C.OPTIONS={tagName:"font",fontNameTag:"name"},o.exports=C},{"../../../utils/under-dash":26,"../base-xform":32,"../simple/boolean-xform":116,"../simple/integer-xform":118,"../simple/string-xform":119,"./color-xform":128,"./underline-xform":136}],132:[function(e,o,t){"use strict";let n=e("../../../utils/under-dash"),i=e("../../defaultnumformats"),s=e("../base-xform"),d=(function(){let f={};return n.each(i,(_,C)=>{_.f&&(f[_.f]=parseInt(C,10))}),f})();class u extends s{constructor(_,C){super(),this.id=_,this.formatCode=C}get tag(){return"numFmt"}render(_,C){_.leafNode("numFmt",{numFmtId:C.id,formatCode:C.formatCode})}parseOpen(_){switch(_.name){case"numFmt":return this.model={id:parseInt(_.attributes.numFmtId,10),formatCode:_.attributes.formatCode.replace(/[\\](.)/g,"$1")},!0;default:return!1}}parseText(){}parseClose(){return!1}}u.getDefaultFmtId=function(f){return d[f]},u.getDefaultFmtCode=function(f){return i[f]&&i[f].f},o.exports=u},{"../../../utils/under-dash":26,"../../defaultnumformats":30,"../base-xform":32}],133:[function(e,o,t){"use strict";let n=e("../base-xform"),i={boolean:(s,d)=>s===void 0?d:s};o.exports=class extends n{get tag(){return"protection"}render(s,d){s.addRollback(),s.openNode("protection");let u=!1;function f(_,C){C!==void 0&&(s.addAttribute(_,C),u=!0)}f("locked",i.boolean(d.locked,!0)?void 0:"0"),f("hidden",i.boolean(d.hidden,!1)?"1":void 0),s.closeNode(),u?s.commit():s.rollback()}parseOpen(s){let d={locked:s.attributes.locked!=="0",hidden:s.attributes.hidden==="1"},u=!d.locked||d.hidden;this.model=u?d:null}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],134:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./alignment-xform"),s=e("./protection-xform");o.exports=class extends n{constructor(d){super(),this.xfId=!(!d||!d.xfId),this.map={alignment:new i,protection:new s}}get tag(){return"xf"}render(d,u){d.openNode("xf",{numFmtId:u.numFmtId||0,fontId:u.fontId||0,fillId:u.fillId||0,borderId:u.borderId||0}),this.xfId&&d.addAttribute("xfId",u.xfId||0),u.numFmtId&&d.addAttribute("applyNumberFormat","1"),u.fontId&&d.addAttribute("applyFont","1"),u.fillId&&d.addAttribute("applyFill","1"),u.borderId&&d.addAttribute("applyBorder","1"),u.alignment&&d.addAttribute("applyAlignment","1"),u.protection&&d.addAttribute("applyProtection","1"),u.alignment&&this.map.alignment.render(d,u.alignment),u.protection&&this.map.protection.render(d,u.protection),d.closeNode()}parseOpen(d){if(this.parser)return this.parser.parseOpen(d),!0;switch(d.name){case"xf":return this.model={numFmtId:parseInt(d.attributes.numFmtId,10),fontId:parseInt(d.attributes.fontId,10),fillId:parseInt(d.attributes.fillId,10),borderId:parseInt(d.attributes.borderId,10)},this.xfId&&(this.model.xfId=parseInt(d.attributes.xfId,10)),!0;case"alignment":return this.parser=this.map.alignment,this.parser.parseOpen(d),!0;case"protection":return this.parser=this.map.protection,this.parser.parseOpen(d),!0;default:return!1}}parseText(d){this.parser&&this.parser.parseText(d)}parseClose(d){return this.parser?(this.parser.parseClose(d)||(this.map.protection===this.parser?this.model.protection=this.parser.model:this.model.alignment=this.parser.model,this.parser=void 0),!0):d!=="xf"}}},{"../base-xform":32,"./alignment-xform":126,"./protection-xform":133}],135:[function(e,o,t){"use strict";let n=e("../../../doc/enums"),i=e("../../../utils/xml-stream"),s=e("../base-xform"),d=e("../static-xform"),u=e("../list-xform"),f=e("./font-xform"),_=e("./fill-xform"),C=e("./border-xform"),x=e("./numfmt-xform"),y=e("./style-xform"),P=e("./dxf-xform");class S extends s{constructor(D){super(),this.map={numFmts:new u({tag:"numFmts",count:!0,childXform:new x}),fonts:new u({tag:"fonts",count:!0,childXform:new f,$:{"x14ac:knownFonts":1}}),fills:new u({tag:"fills",count:!0,childXform:new _}),borders:new u({tag:"borders",count:!0,childXform:new C}),cellStyleXfs:new u({tag:"cellStyleXfs",count:!0,childXform:new y}),cellXfs:new u({tag:"cellXfs",count:!0,childXform:new y({xfId:!0})}),dxfs:new u({tag:"dxfs",always:!0,count:!0,childXform:new P}),numFmt:new x,font:new f,fill:new _,border:new C,style:new y({xfId:!0}),cellStyles:S.STATIC_XFORMS.cellStyles,tableStyles:S.STATIC_XFORMS.tableStyles,extLst:S.STATIC_XFORMS.extLst},D&&this.init()}initIndex(){this.index={style:{},numFmt:{},numFmtNextId:164,font:{},border:{},fill:{}}}init(){this.model={styles:[],numFmts:[],fonts:[],borders:[],fills:[],dxfs:[]},this.initIndex(),this._addBorder({}),this._addStyle({numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}),this._addFill({type:"pattern",pattern:"none"}),this._addFill({type:"pattern",pattern:"gray125"}),this.weakMap=new WeakMap}render(D,k){k=k||this.model,D.openXml(i.StdDocAttributes),D.openNode("styleSheet",S.STYLESHEET_ATTRIBUTES),this.index?(k.numFmts&&k.numFmts.length&&(D.openNode("numFmts",{count:k.numFmts.length}),k.numFmts.forEach(z=>{D.writeXml(z)}),D.closeNode()),k.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),D.openNode("fonts",{count:k.fonts.length,"x14ac:knownFonts":1}),k.fonts.forEach(z=>{D.writeXml(z)}),D.closeNode(),D.openNode("fills",{count:k.fills.length}),k.fills.forEach(z=>{D.writeXml(z)}),D.closeNode(),D.openNode("borders",{count:k.borders.length}),k.borders.forEach(z=>{D.writeXml(z)}),D.closeNode(),this.map.cellStyleXfs.render(D,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),D.openNode("cellXfs",{count:k.styles.length}),k.styles.forEach(z=>{D.writeXml(z)}),D.closeNode()):(this.map.numFmts.render(D,k.numFmts),this.map.fonts.render(D,k.fonts),this.map.fills.render(D,k.fills),this.map.borders.render(D,k.borders),this.map.cellStyleXfs.render(D,[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}]),this.map.cellXfs.render(D,k.styles)),S.STATIC_XFORMS.cellStyles.render(D),this.map.dxfs.render(D,k.dxfs),S.STATIC_XFORMS.tableStyles.render(D),S.STATIC_XFORMS.extLst.render(D),D.closeNode()}parseOpen(D){if(this.parser)return this.parser.parseOpen(D),!0;switch(D.name){case"styleSheet":return this.initIndex(),!0;default:return this.parser=this.map[D.name],this.parser&&this.parser.parseOpen(D),!0}}parseText(D){this.parser&&this.parser.parseText(D)}parseClose(D){if(this.parser)return this.parser.parseClose(D)||(this.parser=void 0),!0;switch(D){case"styleSheet":{this.model={};let k=(z,U)=>{U.model&&U.model.length&&(this.model[z]=U.model)};if(k("numFmts",this.map.numFmts),k("fonts",this.map.fonts),k("fills",this.map.fills),k("borders",this.map.borders),k("styles",this.map.cellXfs),k("dxfs",this.map.dxfs),this.index={model:[],numFmt:[]},this.model.numFmts){let z=this.index.numFmt;this.model.numFmts.forEach(U=>{z[U.id]=U.formatCode})}return!1}default:return!0}}addStyleModel(D,k){if(!D)return 0;if(this.model.fonts.length||this._addFont({size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}),this.weakMap&&this.weakMap.has(D))return this.weakMap.get(D);let z={};if(k=k||n.ValueType.Number,D.numFmt)z.numFmtId=this._addNumFmtStr(D.numFmt);else switch(k){case n.ValueType.Number:z.numFmtId=this._addNumFmtStr("General");break;case n.ValueType.Date:z.numFmtId=this._addNumFmtStr("mm-dd-yy")}D.font&&(z.fontId=this._addFont(D.font)),D.border&&(z.borderId=this._addBorder(D.border)),D.fill&&(z.fillId=this._addFill(D.fill)),D.alignment&&(z.alignment=D.alignment),D.protection&&(z.protection=D.protection);let U=this._addStyle(z);return this.weakMap&&this.weakMap.set(D,U),U}getStyleModel(D){let k=this.model.styles[D];if(!k)return null;let z=this.index.model[D];if(z)return z;if(z=this.index.model[D]={},k.numFmtId){let J=this.index.numFmt[k.numFmtId]||x.getDefaultFmtCode(k.numFmtId);J&&(z.numFmt=J)}function U(J,re,ee){if(ee||ee===0){let ae=re[ee];ae&&(z[J]=ae)}}return U("font",this.model.fonts,k.fontId),U("border",this.model.borders,k.borderId),U("fill",this.model.fills,k.fillId),k.alignment&&(z.alignment=k.alignment),k.protection&&(z.protection=k.protection),z}addDxfStyle(D){return D.numFmt&&(D.numFmtId=this._addNumFmtStr(D.numFmt)),this.model.dxfs.push(D),this.model.dxfs.length-1}getDxfStyle(D){return this.model.dxfs[D]}_addStyle(D){let k=this.map.style.toXml(D),z=this.index.style[k];return z===void 0&&(z=this.index.style[k]=this.model.styles.length,this.model.styles.push(k)),z}_addNumFmtStr(D){let k=x.getDefaultFmtId(D);if(k!==void 0||(k=this.index.numFmt[D],k!==void 0))return k;k=this.index.numFmt[D]=164+this.model.numFmts.length;let z=this.map.numFmt.toXml({id:k,formatCode:D});return this.model.numFmts.push(z),k}_addFont(D){let k=this.map.font.toXml(D),z=this.index.font[k];return z===void 0&&(z=this.index.font[k]=this.model.fonts.length,this.model.fonts.push(k)),z}_addBorder(D){let k=this.map.border.toXml(D),z=this.index.border[k];return z===void 0&&(z=this.index.border[k]=this.model.borders.length,this.model.borders.push(k)),z}_addFill(D){let k=this.map.fill.toXml(D),z=this.index.fill[k];return z===void 0&&(z=this.index.fill[k]=this.model.fills.length,this.model.fills.push(k)),z}}S.STYLESHEET_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x14ac x16r2","xmlns:x14ac":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac","xmlns:x16r2":"http://schemas.microsoft.com/office/spreadsheetml/2015/02/main"},S.STATIC_XFORMS={cellStyles:new d({tag:"cellStyles",$:{count:1},c:[{tag:"cellStyle",$:{name:"Normal",xfId:0,builtinId:0}}]}),dxfs:new d({tag:"dxfs",$:{count:0}}),tableStyles:new d({tag:"tableStyles",$:{count:0,defaultTableStyle:"TableStyleMedium2",defaultPivotStyle:"PivotStyleLight16"}}),extLst:new d({tag:"extLst",c:[{tag:"ext",$:{uri:"{EB79DEF2-80B8-43e5-95BD-54CBDDF9020C}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"},c:[{tag:"x14:slicerStyles",$:{defaultSlicerStyle:"SlicerStyleLight1"}}]},{tag:"ext",$:{uri:"{9260A510-F301-46a8-8635-F512D64BE5F5}","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},c:[{tag:"x15:timelineStyles",$:{defaultTimelineStyle:"TimeSlicerStyleLight1"}}]}]})},S.Mock=class extends S{constructor(){super(),this.model={styles:[{numFmtId:0,fontId:0,fillId:0,borderId:0,xfId:0}],numFmts:[],fonts:[{size:11,color:{theme:1},name:"Calibri",family:2,scheme:"minor"}],borders:[{}],fills:[{type:"pattern",pattern:"none"},{type:"pattern",pattern:"gray125"}]}}parseStream(M){return M.autodrain(),Promise.resolve()}addStyleModel(M,D){switch(D){case n.ValueType.Date:return this.dateStyleId;default:return 0}}get dateStyleId(){if(!this._dateStyleId){let M={numFmtId:x.getDefaultFmtId("mm-dd-yy")};this._dateStyleId=this.model.styles.length,this.model.styles.push(M)}return this._dateStyleId}getStyleModel(){return{}}},o.exports=S},{"../../../doc/enums":7,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./border-xform":127,"./dxf-xform":129,"./fill-xform":130,"./font-xform":131,"./numfmt-xform":132,"./style-xform":134}],136:[function(e,o,t){"use strict";let n=e("../base-xform");class i extends n{constructor(d){super(),this.model=d}get tag(){return"u"}render(d,u){if((u=u||this.model)===!0)d.leafNode("u");else{let f=i.Attributes[u];f&&d.leafNode("u",f)}}parseOpen(d){d.name==="u"&&(this.model=d.attributes.val||!0)}parseText(){}parseClose(){return!1}}i.Attributes={single:{},double:{val:"double"},singleAccounting:{val:"singleAccounting"},doubleAccounting:{val:"doubleAccounting"}},o.exports=i},{"../base-xform":32}],137:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("./filter-column-xform");o.exports=class extends n{constructor(){super(),this.map={filterColumn:new i}}get tag(){return"autoFilter"}prepare(s){s.columns.forEach((d,u)=>{this.map.filterColumn.prepare(d,{index:u})})}render(s,d){return s.openNode(this.tag,{ref:d.autoFilterRef}),d.columns.forEach(u=>{this.map.filterColumn.render(s,u)}),s.closeNode(),!0}parseOpen(s){if(this.parser)return this.parser.parseOpen(s),!0;switch(s.name){case this.tag:return this.model={autoFilterRef:s.attributes.ref,columns:[]},!0;default:if(this.parser=this.map[s.name],this.parser)return this.parseOpen(s),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(s))}}parseText(s){this.parser&&this.parser.parseText(s)}parseClose(s){if(this.parser)return this.parser.parseClose(s)||(this.model.columns.push(this.parser.model),this.parser=void 0),!0;switch(s){case this.tag:return!1;default:throw new Error("Unexpected xml node in parseClose: "+s)}}}},{"../base-xform":32,"./filter-column-xform":139}],138:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"customFilter"}render(i,s){i.leafNode(this.tag,{val:s.val,operator:s.operator})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val,operator:i.attributes.operator},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],139:[function(e,o,t){"use strict";let n=e("../base-xform"),i=e("../list-xform"),s=e("./custom-filter-xform"),d=e("./filter-xform");o.exports=class extends n{constructor(){super(),this.map={customFilters:new i({tag:"customFilters",count:!1,empty:!0,childXform:new s}),filters:new i({tag:"filters",count:!1,empty:!0,childXform:new d})}}get tag(){return"filterColumn"}prepare(u,f){u.colId=f.index.toString()}render(u,f){return f.customFilters?(u.openNode(this.tag,{colId:f.colId,hiddenButton:f.filterButton?"0":"1"}),this.map.customFilters.render(u,f.customFilters),u.closeNode(),!0):(u.leafNode(this.tag,{colId:f.colId,hiddenButton:f.filterButton?"0":"1"}),!0)}parseOpen(u){if(this.parser)return this.parser.parseOpen(u),!0;let{attributes:f}=u;switch(u.name){case this.tag:return this.model={filterButton:f.hiddenButton==="0"},!0;default:if(this.parser=this.map[u.name],this.parser)return this.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: "+JSON.stringify(u))}}parseText(){}parseClose(u){if(this.parser)return this.parser.parseClose(u)||(this.parser=void 0),!0;switch(u){case this.tag:return this.model.customFilters=this.map.customFilters.model,!1;default:return!0}}}},{"../base-xform":32,"../list-xform":71,"./custom-filter-xform":138,"./filter-xform":140}],140:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"filter"}render(i,s){i.leafNode(this.tag,{val:s.val})}parseOpen(i){return i.name===this.tag&&(this.model={val:i.attributes.val},!0)}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],141:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"tableColumn"}prepare(i,s){i.id=s.index+1}render(i,s){return i.leafNode(this.tag,{id:s.id.toString(),name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId}),!0}parseOpen(i){if(i.name===this.tag){let{attributes:s}=i;return this.model={name:s.name,totalsRowLabel:s.totalsRowLabel,totalsRowFunction:s.totalsRowFunction,dxfId:s.dxfId},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],142:[function(e,o,t){"use strict";let n=e("../base-xform");o.exports=class extends n{get tag(){return"tableStyleInfo"}render(i,s){return i.leafNode(this.tag,{name:s.theme?s.theme:void 0,showFirstColumn:s.showFirstColumn?"1":"0",showLastColumn:s.showLastColumn?"1":"0",showRowStripes:s.showRowStripes?"1":"0",showColumnStripes:s.showColumnStripes?"1":"0"}),!0}parseOpen(i){if(i.name===this.tag){let{attributes:s}=i;return this.model={theme:s.name?s.name:null,showFirstColumn:s.showFirstColumn==="1",showLastColumn:s.showLastColumn==="1",showRowStripes:s.showRowStripes==="1",showColumnStripes:s.showColumnStripes==="1"},!0}return!1}parseText(){}parseClose(){return!1}}},{"../base-xform":32}],143:[function(e,o,t){"use strict";let n=e("../../../utils/xml-stream"),i=e("../base-xform"),s=e("../list-xform"),d=e("./auto-filter-xform"),u=e("./table-column-xform"),f=e("./table-style-info-xform");class _ extends i{constructor(){super(),this.map={autoFilter:new d,tableColumns:new s({tag:"tableColumns",count:!0,empty:!0,childXform:new u}),tableStyleInfo:new f}}prepare(x,y){this.map.autoFilter.prepare(x),this.map.tableColumns.prepare(x.columns,y)}get tag(){return"table"}render(x,y){x.openXml(n.StdDocAttributes),x.openNode(this.tag,qt(at({},_.TABLE_ATTRIBUTES),{id:y.id,name:y.name,displayName:y.displayName||y.name,ref:y.tableRef,totalsRowCount:y.totalsRow?"1":void 0,totalsRowShown:y.totalsRow?void 0:"1",headerRowCount:y.headerRow?"1":"0"})),this.map.autoFilter.render(x,y),this.map.tableColumns.render(x,y.columns),this.map.tableStyleInfo.render(x,y.style),x.closeNode()}parseOpen(x){if(this.parser)return this.parser.parseOpen(x),!0;let{name:y,attributes:P}=x;switch(y){case this.tag:this.reset(),this.model={name:P.name,displayName:P.displayName||P.name,tableRef:P.ref,totalsRow:P.totalsRowCount==="1",headerRow:P.headerRowCount==="1"};break;default:this.parser=this.map[x.name],this.parser&&this.parser.parseOpen(x)}return!0}parseText(x){this.parser&&this.parser.parseText(x)}parseClose(x){if(this.parser)return this.parser.parseClose(x)||(this.parser=void 0),!0;switch(x){case this.tag:return this.model.columns=this.map.tableColumns.model,this.map.autoFilter.model&&(this.model.autoFilterRef=this.map.autoFilter.model.autoFilterRef,this.map.autoFilter.model.columns.forEach((y,P)=>{this.model.columns[P].filterButton=y.filterButton})),this.model.style=this.map.tableStyleInfo.model,!1;default:return!0}}reconcile(x,y){x.columns.forEach(P=>{P.dxfId!==void 0&&(P.style=y.styles.getDxfStyle(P.dxfId))})}}_.TABLE_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"xr xr3","xmlns:xr":"http://schemas.microsoft.com/office/spreadsheetml/2014/revision","xmlns:xr3":"http://schemas.microsoft.com/office/spreadsheetml/2016/revision3"},o.exports=_},{"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"./auto-filter-xform":137,"./table-column-xform":141,"./table-style-info-xform":142}],144:[function(e,o,t){(function(n,i){(function(){"use strict";let s=e("fs"),d=e("jszip"),{PassThrough:u}=e("readable-stream"),f=e("../utils/zip-stream"),_=e("../utils/stream-buf"),C=e("../utils/utils"),x=e("../utils/xml-stream"),{bufferToString:y}=e("../utils/browser-buffer-decode"),P=e("./xform/style/styles-xform"),S=e("./xform/core/core-xform"),M=e("./xform/strings/shared-strings-xform"),D=e("./xform/core/relationships-xform"),k=e("./xform/core/content-types-xform"),z=e("./xform/core/app-xform"),U=e("./xform/book/workbook-xform"),J=e("./xform/sheet/worksheet-xform"),re=e("./xform/drawing/drawing-xform"),ee=e("./xform/table/table-xform"),ae=e("./xform/comment/comments-xform"),se=e("./xform/comment/vml-notes-xform"),_e=e("./xml/theme1");class de{constructor(W){this.workbook=W}readFile(W,pe){return qn(this,null,function*(){if(!(yield C.fs.exists(W)))throw new Error("File not found: "+W);let O=s.createReadStream(W);try{let B=yield this.read(O,pe);return O.close(),B}catch(B){throw O.close(),B}})}parseRels(W){return new D().parseStream(W)}parseWorkbook(W){return new U().parseStream(W)}parseSharedStrings(W){return new M().parseStream(W)}reconcile(W,pe){let O=new U,B=new J(pe),L=new re,N=new ee;O.reconcile(W);let G={media:W.media,mediaIndex:W.mediaIndex};Object.keys(W.drawings).forEach(be=>{let ye=W.drawings[be],Ne=W.drawingRels[be];Ne&&(G.rels=Ne.reduce((te,Ae)=>(te[Ae.Id]=Ae,te),{}),(ye.anchors||[]).forEach(te=>{let Ae=te.picture&&te.picture.hyperlinks;Ae&&G.rels[Ae.rId]&&(Ae.hyperlink=G.rels[Ae.rId].Target,delete Ae.rId)}),L.reconcile(ye,G))});let $={styles:W.styles};Object.values(W.tables).forEach(be=>{N.reconcile(be,$)});let ne={styles:W.styles,sharedStrings:W.sharedStrings,media:W.media,mediaIndex:W.mediaIndex,date1904:W.properties&&W.properties.date1904,drawings:W.drawings,comments:W.comments,tables:W.tables,vmlDrawings:W.vmlDrawings};W.worksheets.forEach(be=>{be.relationships=W.worksheetRels[be.sheetNo],B.reconcile(be,ne)}),delete W.worksheetHash,delete W.worksheetRels,delete W.globalRels,delete W.sharedStrings,delete W.workbookRels,delete W.sheetDefs,delete W.styles,delete W.mediaIndex,delete W.drawings,delete W.drawingRels,delete W.vmlDrawings}_processWorksheetEntry(W,pe,O,B,L){return qn(this,null,function*(){let N=new J(B),G=yield N.parseStream(W);G.sheetNo=O,pe.worksheetHash[L]=G,pe.worksheets.push(G)})}_processCommentEntry(W,pe,O){return qn(this,null,function*(){let B=new ae,L=yield B.parseStream(W);pe.comments[`../${O}.xml`]=L})}_processTableEntry(W,pe,O){return qn(this,null,function*(){let B=new ee,L=yield B.parseStream(W);pe.tables[`../tables/${O}.xml`]=L})}_processWorksheetRelsEntry(W,pe,O){return qn(this,null,function*(){let B=new D,L=yield B.parseStream(W);pe.worksheetRels[O]=L})}_processMediaEntry(W,pe,O){return qn(this,null,function*(){let B=O.lastIndexOf(".");if(B>=1){let L=O.substr(B+1),N=O.substr(0,B);yield new Promise((G,$)=>{let ne=new _;ne.on("finish",()=>{pe.mediaIndex[O]=pe.media.length,pe.mediaIndex[N]=pe.media.length;let be={type:"image",name:N,extension:L,buffer:ne.toBuffer()};pe.media.push(be),G()}),W.on("error",be=>{$(be)}),W.pipe(ne)})}})}_processDrawingEntry(W,pe,O){return qn(this,null,function*(){let B=new re,L=yield B.parseStream(W);pe.drawings[O]=L})}_processDrawingRelsEntry(W,pe,O){return qn(this,null,function*(){let B=new D,L=yield B.parseStream(W);pe.drawingRels[O]=L})}_processVmlDrawingEntry(W,pe,O){return qn(this,null,function*(){let B=new se,L=yield B.parseStream(W);pe.vmlDrawings[`../drawings/${O}.vml`]=L})}_processThemeEntry(W,pe,O){return qn(this,null,function*(){yield new Promise((B,L)=>{let N=new _;W.on("error",L),N.on("error",L),N.on("finish",()=>{pe.themes[O]=N.read().toString(),B()}),W.pipe(N)})})}createInputStream(){throw new Error("`XLSX#createInputStream` is deprecated. You should use `XLSX#read` instead. This method will be removed in version 5.0. Please follow upgrade instruction: https://github.com/exceljs/exceljs/blob/master/UPGRADE-4.0.md")}read(W,pe){return qn(this,null,function*(){!W[Symbol.asyncIterator]&&W.pipe&&(W=W.pipe(new u));let O=[];try{for(var B=dg(W),L,N,G;L=!(N=yield B.next()).done;L=!1){let $=N.value;O.push($)}}catch{G=[N]}finally{try{L&&(N=B.return)&&(yield N.call(B))}finally{if(G)throw G[0]}}return this.load(i.concat(O),pe)})}load(W,pe){return qn(this,null,function*(){let O;O=pe&&pe.base64?i.from(W.toString(),"base64"):W;let B={worksheets:[],worksheetHash:{},worksheetRels:[],themes:{},media:[],mediaIndex:{},drawings:{},drawingRels:{},comments:{},tables:{},vmlDrawings:{}},L=yield d.loadAsync(O);for(let N of Object.values(L.files))if(!N.dir){let G,$=N.name;if($[0]==="/"&&($=$.substr(1)),$.match(/xl\/media\//)||$.match(/xl\/theme\/([a-zA-Z0-9]+)[.]xml/))G=new u,G.write(yield N.async("nodebuffer"));else{let ne;G=new u({writableObjectMode:!0,readableObjectMode:!0}),ne=n.browser?y(yield N.async("nodebuffer")):yield N.async("string");let be=16384;for(let ye=0;yeqn(null,null,function*(){if(O.type==="image"){let B=`xl/media/${O.name}.${O.extension}`;if(O.filename){let L=yield(function(N,G){return new Promise(($,ne)=>{s.readFile(N,G,(be,ye)=>{be?ne(be):$(ye)})})})(O.filename);return W.append(L,{name:B})}if(O.buffer)return W.append(O.buffer,{name:B});if(O.base64){let L=O.base64,N=L.substring(L.indexOf(",")+1);return W.append(N,{name:B,base64:!0})}}throw new Error("Unsupported media")})))})}addDrawings(W,pe){let O=new re,B=new D;pe.worksheets.forEach(L=>{let{drawing:N}=L;if(N){O.prepare(N,{});let G=O.toXml(N);W.append(G,{name:`xl/drawings/${N.name}.xml`}),G=B.toXml(N.rels),W.append(G,{name:`xl/drawings/_rels/${N.name}.xml.rels`})}})}addTables(W,pe){let O=new ee;pe.worksheets.forEach(B=>{let{tables:L}=B;L.forEach(N=>{O.prepare(N,{});let G=O.toXml(N);W.append(G,{name:"xl/tables/"+N.target})})})}addContentTypes(W,pe){return qn(this,null,function*(){let O=new k().toXml(pe);W.append(O,{name:"[Content_Types].xml"})})}addApp(W,pe){return qn(this,null,function*(){let O=new z().toXml(pe);W.append(O,{name:"docProps/app.xml"})})}addCore(W,pe){return qn(this,null,function*(){let O=new S;W.append(O.toXml(pe),{name:"docProps/core.xml"})})}addThemes(W,pe){return qn(this,null,function*(){let O=pe.themes||{theme1:_e};Object.keys(O).forEach(B=>{let L=O[B],N=`xl/theme/${B}.xml`;W.append(L,{name:N})})})}addOfficeRels(W){return qn(this,null,function*(){let pe=new D().toXml([{Id:"rId1",Type:de.RelType.OfficeDocument,Target:"xl/workbook.xml"},{Id:"rId2",Type:de.RelType.CoreProperties,Target:"docProps/core.xml"},{Id:"rId3",Type:de.RelType.ExtenderProperties,Target:"docProps/app.xml"}]);W.append(pe,{name:"_rels/.rels"})})}addWorkbookRels(W,pe){return qn(this,null,function*(){let O=1,B=[{Id:"rId"+O++,Type:de.RelType.Styles,Target:"styles.xml"},{Id:"rId"+O++,Type:de.RelType.Theme,Target:"theme/theme1.xml"}];pe.sharedStrings.count&&B.push({Id:"rId"+O++,Type:de.RelType.SharedStrings,Target:"sharedStrings.xml"}),pe.worksheets.forEach(N=>{N.rId="rId"+O++,B.push({Id:N.rId,Type:de.RelType.Worksheet,Target:`worksheets/sheet${N.id}.xml`})});let L=new D().toXml(B);W.append(L,{name:"xl/_rels/workbook.xml.rels"})})}addSharedStrings(W,pe){return qn(this,null,function*(){pe.sharedStrings&&pe.sharedStrings.count&&W.append(pe.sharedStrings.xml,{name:"xl/sharedStrings.xml"})})}addStyles(W,pe){return qn(this,null,function*(){let{xml:O}=pe.styles;O&&W.append(O,{name:"xl/styles.xml"})})}addWorkbook(W,pe){return qn(this,null,function*(){let O=new U;W.append(O.toXml(pe),{name:"xl/workbook.xml"})})}addWorksheets(W,pe){return qn(this,null,function*(){let O=new J,B=new D,L=new ae,N=new se;pe.worksheets.forEach(G=>{let $=new x;O.render($,G),W.append($.xml,{name:`xl/worksheets/sheet${G.id}.xml`}),G.rels&&G.rels.length&&($=new x,B.render($,G.rels),W.append($.xml,{name:`xl/worksheets/_rels/sheet${G.id}.xml.rels`})),G.comments.length>0&&($=new x,L.render($,G),W.append($.xml,{name:`xl/comments${G.id}.xml`}),$=new x,N.render($,G),W.append($.xml,{name:`xl/drawings/vmlDrawing${G.id}.vml`}))})})}_finalize(W){return new Promise((pe,O)=>{W.on("finish",()=>{pe(this)}),W.on("error",O),W.finalize()})}prepareModel(W,pe){W.creator=W.creator||"ExcelJS",W.lastModifiedBy=W.lastModifiedBy||"ExcelJS",W.created=W.created||new Date,W.modified=W.modified||new Date,W.useSharedStrings=pe.useSharedStrings===void 0||pe.useSharedStrings,W.useStyles=pe.useStyles===void 0||pe.useStyles,W.sharedStrings=new M,W.styles=W.useStyles?new P(!0):new P.Mock;let O=new U,B=new J;O.prepare(W);let L={sharedStrings:W.sharedStrings,styles:W.styles,date1904:W.properties.date1904,drawingsCount:0,media:W.media};L.drawings=W.drawings=[],L.commentRefs=W.commentRefs=[];let N=0;W.tables=[],W.worksheets.forEach(G=>{G.tables.forEach($=>{N++,$.target=`table${N}.xml`,$.id=N,W.tables.push($)}),B.prepare(G,L)})}write(W,pe){return qn(this,null,function*(){pe=pe||{};let{model:O}=this.workbook,B=new f.ZipWriter(pe.zip);return B.pipe(W),this.prepareModel(O,pe),yield this.addContentTypes(B,O),yield this.addOfficeRels(B,O),yield this.addWorkbookRels(B,O),yield this.addWorksheets(B,O),yield this.addSharedStrings(B,O),yield this.addDrawings(B,O),yield this.addTables(B,O),yield Promise.all([this.addThemes(B,O),this.addStyles(B,O)]),yield this.addMedia(B,O),yield Promise.all([this.addApp(B,O),this.addCore(B,O)]),yield this.addWorkbook(B,O),this._finalize(B)})}writeFile(W,pe){let O=s.createWriteStream(W);return new Promise((B,L)=>{O.on("finish",()=>{B()}),O.on("error",N=>{L(N)}),this.write(O,pe).then(()=>{O.end()}).catch(N=>{L(N)})})}writeBuffer(W){return qn(this,null,function*(){let pe=new _;return yield this.write(pe,W),pe.read()})}}de.RelType=e("./rel-type"),o.exports=de}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"../utils/browser-buffer-decode":16,"../utils/stream-buf":24,"../utils/utils":27,"../utils/xml-stream":28,"../utils/zip-stream":29,"./rel-type":31,"./xform/book/workbook-xform":38,"./xform/comment/comments-xform":40,"./xform/comment/vml-notes-xform":45,"./xform/core/app-xform":51,"./xform/core/content-types-xform":52,"./xform/core/core-xform":53,"./xform/core/relationships-xform":55,"./xform/drawing/drawing-xform":62,"./xform/sheet/worksheet-xform":115,"./xform/strings/shared-strings-xform":124,"./xform/style/styles-xform":135,"./xform/table/table-xform":143,"./xml/theme1":145,_process:467,buffer:220,fs:216,jszip:441,"readable-stream":491}],145:[function(e,o,t){"use strict";o.exports=` `},{}],146:[function(e,o,t){(function(n){(function(){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CsvFormatterStream=void 0;let i=e("stream"),s=e("./formatter");class d extends i.Transform{constructor(f){super({writableObjectMode:f.objectMode}),this.hasWrittenBOM=!1,this.formatterOptions=f,this.rowFormatter=new s.RowFormatter(f),this.hasWrittenBOM=!f.writeBOM}transform(f){return this.rowFormatter.rowTransform=f,this}_transform(f,_,C){let x=!1;try{this.hasWrittenBOM||(this.push(this.formatterOptions.BOM),this.hasWrittenBOM=!0),this.rowFormatter.format(f,(y,P)=>y?(x=!0,C(y)):(P&&P.forEach(S=>{this.push(n.from(S,"utf8"))}),x=!0,C()))}catch(y){if(x)throw y;C(y)}}_flush(f){this.rowFormatter.finish((_,C)=>_?f(_):(C&&C.forEach(x=>{this.push(n.from(x,"utf8"))}),f()))}}t.CsvFormatterStream=d}).call(this)}).call(this,e("buffer").Buffer)},{"./formatter":150,buffer:220,stream:505}],147:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FormatterOptions=void 0,t.FormatterOptions=class{constructor(){let n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var i;this.objectMode=!0,this.delimiter=",",this.rowDelimiter=` `,this.quote='"',this.escape=this.quote,this.quoteColumns=!1,this.quoteHeaders=this.quoteColumns,this.headers=null,this.includeEndRowDelimiter=!1,this.writeBOM=!1,this.BOM="\uFEFF",this.alwaysWriteHeaders=!1,Object.assign(this,n||{}),n?.quoteHeaders===void 0&&(this.quoteHeaders=this.quoteColumns),n?.quote===!0?this.quote='"':n?.quote===!1&&(this.quote=""),typeof n?.escape!="string"&&(this.escape=this.quote),this.shouldWriteHeaders=!!this.headers&&((i=n.writeHeaders)===null||i===void 0||i),this.headers=Array.isArray(this.headers)?this.headers:null,this.escapedQuote=`${this.escape}${this.quote}`}}},{}],148:[function(e,o,t){"use strict";var n=function(u){return u&&u.__esModule?u:{default:u}};Object.defineProperty(t,"__esModule",{value:!0}),t.FieldFormatter=void 0;let i=n(e("lodash.isboolean")),s=n(e("lodash.isnil")),d=n(e("lodash.escaperegexp"));t.FieldFormatter=class{constructor(u){this._headers=null,this.formatterOptions=u,u.headers!==null&&(this.headers=u.headers),this.REPLACE_REGEXP=new RegExp(u.quote,"g");let f=`[${u.delimiter}${d.default(u.rowDelimiter)}|\r| @@ -45,17 +45,17 @@ use chrome, FireFox or Internet Explorer 11`)}var d=e("safe-buffer"),u=e("random `)):be=O.stylize("[Circular]","special")),U(ne)){if($&&G.match(/^\d+$/))return be;(ne=JSON.stringify(""+G)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(ne=ne.substr(1,ne.length-2),ne=O.stylize(ne,"name")):(ne=ne.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),ne=O.stylize(ne,"string"))}return ne+": "+be}function S(O){return Array.isArray(O)}function M(O){return typeof O=="boolean"}function D(O){return O===null}function k(O){return typeof O=="number"}function z(O){return typeof O=="string"}function U(O){return O===void 0}function J(O){return re(O)&&_e(O)==="[object RegExp]"}function re(O){return typeof O=="object"&&O!==null}function ee(O){return re(O)&&_e(O)==="[object Date]"}function ae(O){return re(O)&&(_e(O)==="[object Error]"||O instanceof Error)}function se(O){return typeof O=="function"}function _e(O){return Object.prototype.toString.call(O)}function de(O){return O<10?"0"+O.toString(10):O.toString(10)}t.debuglog=function(O){if(U(d)&&(d=n.env.NODE_DEBUG||""),O=O.toUpperCase(),!u[O])if(new RegExp("\\b"+O+"\\b","i").test(d)){var B=n.pid;u[O]=function(){var L=t.format.apply(t,arguments);console.error("%s %d: %s",O,B,L)}}else u[O]=function(){};return u[O]},t.inspect=f,f.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},f.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=S,t.isBoolean=M,t.isNull=D,t.isNullOrUndefined=function(O){return O==null},t.isNumber=k,t.isString=z,t.isSymbol=function(O){return typeof O=="symbol"},t.isUndefined=U,t.isRegExp=J,t.isObject=re,t.isDate=ee,t.isError=ae,t.isFunction=se,t.isPrimitive=function(O){return O===null||typeof O=="boolean"||typeof O=="number"||typeof O=="string"||typeof O=="symbol"||O===void 0},t.isBuffer=e("./support/isBuffer");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W(){var O=new Date,B=[de(O.getHours()),de(O.getMinutes()),de(O.getSeconds())].join(":");return[O.getDate(),j[O.getMonth()],B].join(" ")}function pe(O,B){return Object.prototype.hasOwnProperty.call(O,B)}t.log=function(){console.log("%s - %s",W(),t.format.apply(t,arguments))},t.inherits=e("inherits"),t._extend=function(O,B){if(!B||!re(B))return O;for(var L=Object.keys(B),N=L.length;N--;)O[L[N]]=B[L[N]];return O}}).call(this)}).call(this,e("_process"),typeof global<"u"?global:typeof self<"u"?self:typeof window<"u"?window:{})},{"./support/isBuffer":526,_process:467,inherits:525}],528:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"v1",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(t,"v3",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(t,"v4",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(t,"v5",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(t,"NIL",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(t,"version",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(t,"validate",{enumerable:!0,get:function(){return _.default}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return C.default}}),Object.defineProperty(t,"parse",{enumerable:!0,get:function(){return x.default}});var n=y(e("./v1.js")),i=y(e("./v3.js")),s=y(e("./v4.js")),d=y(e("./v5.js")),u=y(e("./nil.js")),f=y(e("./version.js")),_=y(e("./validate.js")),C=y(e("./stringify.js")),x=y(e("./parse.js"));function y(P){return P&&P.__esModule?P:{default:P}}},{"./nil.js":530,"./parse.js":531,"./stringify.js":535,"./v1.js":536,"./v3.js":537,"./v4.js":539,"./v5.js":540,"./validate.js":541,"./version.js":542}],529:[function(e,o,t){"use strict";function n(x){return 14+(x+64>>>9<<4)+1}function i(x,y){let P=(65535&x)+(65535&y);return(x>>16)+(y>>16)+(P>>16)<<16|65535&P}function s(x,y,P,S,M,D){return i((k=i(i(y,x),i(S,D)))<<(z=M)|k>>>32-z,P);var k,z}function d(x,y,P,S,M,D,k){return s(y&P|~y&S,x,y,M,D,k)}function u(x,y,P,S,M,D,k){return s(y&S|P&~S,x,y,M,D,k)}function f(x,y,P,S,M,D,k){return s(y^P^S,x,y,M,D,k)}function _(x,y,P,S,M,D,k){return s(P^(y|~S),x,y,M,D,k)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var C=function(x){if(typeof x=="string"){let y=unescape(encodeURIComponent(x));x=new Uint8Array(y.length);for(let P=0;P>5]>>>M%32&255,k=parseInt("0123456789abcdef".charAt(D>>>4&15)+"0123456789abcdef".charAt(15&D),16);P.push(k)}return P})((function(y,P){y[P>>5]|=128<>5]|=(255&y[M/8])<>>24,f[1]=u>>>16&255,f[2]=u>>>8&255,f[3]=255&u,f[4]=(u=parseInt(d.slice(9,13),16))>>>8,f[5]=255&u,f[6]=(u=parseInt(d.slice(14,18),16))>>>8,f[7]=255&u,f[8]=(u=parseInt(d.slice(19,23),16))>>>8,f[9]=255&u,f[10]=(u=parseInt(d.slice(24,36),16))/1099511627776&255,f[11]=u/4294967296&255,f[12]=u>>>24&255,f[13]=u>>>16&255,f[14]=u>>>8&255,f[15]=255&u,f};t.default=s},{"./validate.js":541}],532:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0,t.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},{}],533:[function(e,o,t){"use strict";let n;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){if(!n&&(n=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!n))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return n(i)};let i=new Uint8Array(16)},{}],534:[function(e,o,t){"use strict";function n(d,u,f,_){switch(d){case 0:return u&f^~u&_;case 1:return u^f^_;case 2:return u&f^u&_^f&_;case 3:return u^f^_}}function i(d,u){return d<>>32-u}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var s=function(d){let u=[1518500249,1859775393,2400959708,3395469782],f=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof d=="string"){let y=unescape(encodeURIComponent(d));d=[];for(let P=0;P>>0;z=k,k=D,D=i(M,30)>>>0,M=S,S=re}f[0]=f[0]+S>>>0,f[1]=f[1]+M>>>0,f[2]=f[2]+D>>>0,f[3]=f[3]+k>>>0,f[4]=f[4]+z>>>0}return[f[0]>>24&255,f[0]>>16&255,f[0]>>8&255,255&f[0],f[1]>>24&255,f[1]>>16&255,f[1]>>8&255,255&f[1],f[2]>>24&255,f[2]>>16&255,f[2]>>8&255,255&f[2],f[3]>>24&255,f[3]>>16&255,f[3]>>8&255,255&f[3],f[4]>>24&255,f[4]>>16&255,f[4]>>8&255,255&f[4]]};t.default=s},{}],535:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n,i=(n=e("./validate.js"))&&n.__esModule?n:{default:n};let s=[];for(let u=0;u<256;++u)s.push((u+256).toString(16).substr(1));var d=function(u){let f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,_=(s[u[f+0]]+s[u[f+1]]+s[u[f+2]]+s[u[f+3]]+"-"+s[u[f+4]]+s[u[f+5]]+"-"+s[u[f+6]]+s[u[f+7]]+"-"+s[u[f+8]]+s[u[f+9]]+"-"+s[u[f+10]]+s[u[f+11]]+s[u[f+12]]+s[u[f+13]]+s[u[f+14]]+s[u[f+15]]).toLowerCase();if(!(0,i.default)(_))throw TypeError("Stringified UUID is invalid");return _};t.default=d},{"./validate.js":541}],536:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(e("./rng.js")),i=s(e("./stringify.js"));function s(x){return x&&x.__esModule?x:{default:x}}let d,u,f=0,_=0;var C=function(x,y,P){let S=y&&P||0,M=y||new Array(16),D=(x=x||{}).node||d,k=x.clockseq!==void 0?x.clockseq:u;if(D==null||k==null){let ae=x.random||(x.rng||n.default)();D==null&&(D=d=[1|ae[0],ae[1],ae[2],ae[3],ae[4],ae[5]]),k==null&&(k=u=16383&(ae[6]<<8|ae[7]))}let z=x.msecs!==void 0?x.msecs:Date.now(),U=x.nsecs!==void 0?x.nsecs:_+1,J=z-f+(U-_)/1e4;if(J<0&&x.clockseq===void 0&&(k=k+1&16383),(J<0||z>f)&&x.nsecs===void 0&&(U=0),U>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");f=z,_=U,u=k,z+=122192928e5;let re=(1e4*(268435455&z)+U)%4294967296;M[S++]=re>>>24&255,M[S++]=re>>>16&255,M[S++]=re>>>8&255,M[S++]=255&re;let ee=z/4294967296*1e4&268435455;M[S++]=ee>>>8&255,M[S++]=255&ee,M[S++]=ee>>>24&15|16,M[S++]=ee>>>16&255,M[S++]=k>>>8|128,M[S++]=255&k;for(let ae=0;ae<6;++ae)M[S+ae]=D[ae];return y||(0,i.default)(M)};t.default=C},{"./rng.js":533,"./stringify.js":535}],537:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=s(e("./v35.js")),i=s(e("./md5.js"));function s(u){return u&&u.__esModule?u:{default:u}}var d=(0,n.default)("v3",48,i.default);t.default=d},{"./md5.js":529,"./v35.js":538}],538:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(f,_,C){function x(y,P,S,M){if(typeof y=="string"&&(y=(function(k){k=unescape(encodeURIComponent(k));let z=[];for(let U=0;U=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}t.S_LIST=[32,10,13,9],t.isChar=function(i){return i>=32&&i<=55295||i===10||i===13||i===9||i>=57344&&i<=65533||i>=65536&&i<=1114111},t.isS=function(i){return i===32||i===10||i===13||i===9},t.isNameStartChar=n,t.isNameChar=function(i){return n(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}],544:[function(e,o,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CHAR="-\uD7FF\uE000-\uFFFD\u{10000}-\u{10FFFF}",t.RESTRICTED_CHAR="-\b\v\f-\x7F-\x84\x86-\x9F",t.S=` \r -`,t.NAME_START_CHAR=":A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",t.NAME_CHAR="-"+t.NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",t.CHAR_RE=new RegExp("^["+t.CHAR+"]$","u"),t.RESTRICTED_CHAR_RE=new RegExp("^["+t.RESTRICTED_CHAR+"]$","u"),t.S_RE=new RegExp("^["+t.S+"]+$","u"),t.NAME_START_CHAR_RE=new RegExp("^["+t.NAME_START_CHAR+"]$","u"),t.NAME_CHAR_RE=new RegExp("^["+t.NAME_CHAR+"]$","u"),t.NAME_RE=new RegExp("^["+t.NAME_START_CHAR+"]["+t.NAME_CHAR+"]*$","u"),t.NMTOKEN_RE=new RegExp("^["+t.NAME_CHAR+"]+$","u");function n(i){return i>=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}t.S_LIST=[32,10,13,9],t.isChar=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},t.isRestrictedChar=function(i){return i>=1&&i<=8||i===11||i===12||i>=14&&i<=31||i>=127&&i<=132||i>=134&&i<=159},t.isCharAndNotRestricted=function(i){return i===9||i===10||i===13||i>31&&i<127||i===133||i>159&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},t.isS=function(i){return i===32||i===10||i===13||i===9},t.isNameStartChar=n,t.isNameChar=function(i){return n(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}],545:[function(e,o,t){"use strict";function n(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u"),t.isNCNameStartChar=n,t.isNCNameChar=function(i){return n(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}]},{},[15])(15)})});function Lk(e){return new Fo(3e3,!1)}function lre(){return new Fo(3100,!1)}function sre(){return new Fo(3101,!1)}function cre(e){return new Fo(3001,!1)}function pre(e){return new Fo(3003,!1)}function mre(e){return new Fo(3004,!1)}function qk(e,o){return new Fo(3005,!1)}function zk(){return new Fo(3006,!1)}function Hk(){return new Fo(3007,!1)}function Gk(e,o){return new Fo(3008,!1)}function jk(e){return new Fo(3002,!1)}function $k(e,o,t,n,i){return new Fo(3010,!1)}function Uk(){return new Fo(3011,!1)}function Wk(){return new Fo(3012,!1)}function Qk(){return new Fo(3200,!1)}function Yk(){return new Fo(3202,!1)}function Jk(){return new Fo(3013,!1)}function Kk(e){return new Fo(3014,!1)}function Xk(e){return new Fo(3015,!1)}function Zk(e){return new Fo(3016,!1)}function e8(e,o){return new Fo(3404,!1)}function dre(e){return new Fo(3502,!1)}function t8(e){return new Fo(3503,!1)}function i8(){return new Fo(3300,!1)}function n8(e){return new Fo(3504,!1)}function o8(e){return new Fo(3301,!1)}function a8(e,o){return new Fo(3302,!1)}function r8(e){return new Fo(3303,!1)}function l8(e,o){return new Fo(3400,!1)}function s8(e){return new Fo(3401,!1)}function c8(e){return new Fo(3402,!1)}function p8(e,o){return new Fo(3505,!1)}function Nc(e){switch(e.length){case 0:return new ud;case 1:return e[0];default:return new Tg(e)}}function VT(e,o,t=new Map,n=new Map){let i=[],s=[],d=-1,u=null;if(o.forEach(f=>{let _=f.get("offset"),C=_==d,x=C&&u||new Map;f.forEach((y,P)=>{let S=P,M=y;if(P!=="offset")switch(S=e.normalizePropertyName(S,i),M){case sf:M=t.get(P);break;case Es:M=n.get(P);break;default:M=e.normalizeStyleValue(P,S,M,i);break}x.set(S,M)}),C||s.push(x),u=x,d=_}),i.length)throw dre(i);return s}function Xg(e,o,t,n){switch(o){case"start":e.onStart(()=>n(t&&RT(t,"start",e)));break;case"done":e.onDone(()=>n(t&&RT(t,"done",e)));break;case"destroy":e.onDestroy(()=>n(t&&RT(t,"destroy",e)));break}}function RT(e,o,t){let n=t.totalTime,i=!!t.disabled,s=Zg(e.element,e.triggerName,e.fromState,e.toState,o||e.phaseName,n??e.totalTime,i),d=e._data;return d!=null&&(s._data=d),s}function Zg(e,o,t,n,i="",s=0,d){return{element:e,triggerName:o,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!d}}function xl(e,o,t){let n=e.get(o);return n||e.set(o,n=t),n}function qT(e){let o=e.indexOf(":"),t=e.substring(1,o),n=e.slice(o+1);return[t,n]}var ure=typeof document>"u"?null:document.documentElement;function e_(e){let o=e.parentNode||e.host||null;return o===ure?null:o}function fre(e){return e.substring(1,6)=="ebkit"}var fd=null,Vk=!1;function m8(e){fd||(fd=hre()||{},Vk=fd.style?"WebkitAppearance"in fd.style:!1);let o=!0;return fd.style&&!fre(e)&&(o=e in fd.style,!o&&Vk&&(o="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in fd.style)),o}function hre(){return typeof document<"u"?document.body:null}function zT(e,o){for(;o;){if(o===e)return!0;o=e_(o)}return!1}function HT(e,o,t){if(t)return Array.from(e.querySelectorAll(o));let n=e.querySelector(o);return n?[n]:[]}var gre=1e3,GT="{{",_re="}}",jT="ng-enter",t_="ng-leave",mf="ng-trigger",df=".ng-trigger",$T="ng-animating",i_=".ng-animating";function lc(e){if(typeof e=="number")return e;let o=e.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:NT(parseFloat(o[1]),o[2])}function NT(e,o){switch(o){case"s":return e*gre;default:return e}}function uf(e,o,t){return e.hasOwnProperty("duration")?e:vre(e,o,t)}var Cre=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function vre(e,o,t){let n,i=0,s="";if(typeof e=="string"){let d=e.match(Cre);if(d===null)return o.push(Lk(e)),{duration:0,delay:0,easing:""};n=NT(parseFloat(d[1]),d[2]);let u=d[3];u!=null&&(i=NT(parseFloat(u),d[4]));let f=d[5];f&&(s=f)}else n=e;if(!t){let d=!1,u=o.length;n<0&&(o.push(lre()),d=!0),i<0&&(o.push(sre()),d=!0),d&&o.splice(u,0,Lk(e))}return{duration:n,delay:i,easing:s}}function d8(e){return e.length?e[0]instanceof Map?e:e.map(o=>new Map(Object.entries(o))):[]}function As(e,o,t){o.forEach((n,i)=>{let s=n_(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=n})}function Op(e,o){o.forEach((t,n)=>{let i=n_(n);e.style[i]=""})}function I0(e){return Array.isArray(e)?e.length==1?e[0]:RF(e):e}function u8(e,o,t){let n=o.params||{},i=UT(e);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(cre(s))})}var LT=new RegExp(`${GT}\\s*(.+?)\\s*${_re}`,"g");function UT(e){let o=[];if(typeof e=="string"){let t;for(;t=LT.exec(e);)o.push(t[1]);LT.lastIndex=0}return o}function O0(e,o,t){let n=`${e}`,i=n.replace(LT,(s,d)=>{let u=o[d];return u==null&&(t.push(pre(d)),u=""),u.toString()});return i==n?e:i}var xre=/-+([a-z0-9])/g;function n_(e){return e.replace(xre,(...o)=>o[1].toUpperCase())}function f8(e,o){return e===0||o===0}function h8(e,o,t){if(t.size&&o.length){let n=o[0],i=[];if(t.forEach((s,d)=>{n.has(d)||i.push(d),n.set(d,s)}),i.length)for(let s=1;sd.set(u,o_(e,u)))}}return o}function bl(e,o,t){switch(o.type){case wo.Trigger:return e.visitTrigger(o,t);case wo.State:return e.visitState(o,t);case wo.Transition:return e.visitTransition(o,t);case wo.Sequence:return e.visitSequence(o,t);case wo.Group:return e.visitGroup(o,t);case wo.Animate:return e.visitAnimate(o,t);case wo.Keyframes:return e.visitKeyframes(o,t);case wo.Style:return e.visitStyle(o,t);case wo.Reference:return e.visitReference(o,t);case wo.AnimateChild:return e.visitAnimateChild(o,t);case wo.AnimateRef:return e.visitAnimateRef(o,t);case wo.Query:return e.visitQuery(o,t);case wo.Stagger:return e.visitStagger(o,t);default:throw mre(o.type)}}function o_(e,o){return window.getComputedStyle(e)[o]}var c4=(()=>{class e{validateStyleProperty(t){return m8(t)}containsElement(t,n){return zT(t,n)}getParentElement(t){return e_(t)}query(t,n,i){return HT(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,s,d,u=[],f){return new ud(i,s)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})(),gd=class{static NOOP=new c4},_d=class{};var bre=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),c_=class extends _d{normalizePropertyName(o,t){return n_(o)}normalizeStyleValue(o,t,n,i){let s="",d=n.toString().trim();if(bre.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&i.push(qk(o,n))}return d+s}};var p_="*";function yre(e,o){let t=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>Sre(n,t,o)):t.push(e),t}function Sre(e,o,t){if(e[0]==":"){let f=wre(e,t);if(typeof f=="function"){o.push(f);return}e=f}let n=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Xk(e)),o;let i=n[1],s=n[2],d=n[3];o.push(g8(i,d));let u=i==p_&&d==p_;s[0]=="<"&&!u&&o.push(g8(d,i))}function wre(e,o){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var a_=new Set(["true","1"]),r_=new Set(["false","0"]);function g8(e,o){let t=a_.has(e)||r_.has(e),n=a_.has(o)||r_.has(o);return(i,s)=>{let d=e==p_||e==i,u=o==p_||o==s;return!d&&t&&typeof i=="boolean"&&(d=i?a_.has(e):r_.has(e)),!u&&n&&typeof s=="boolean"&&(u=s?a_.has(o):r_.has(o)),d&&u}}var T8=":self",Pre=new RegExp(`s*${T8}s*,?`,"g");function M8(e,o,t,n){return new XT(e).build(o,t,n)}var _8="",XT=class{_driver;constructor(o){this._driver=o}build(o,t,n){let i=new ZT(t);return this._resetContextStyleTimingState(i),bl(this,I0(o),i)}_resetContextStyleTimingState(o){o.currentQuerySelector=_8,o.collectedStyles=new Map,o.collectedStyles.set(_8,new Map),o.currentTime=0}visitTrigger(o,t){let n=t.queryCount=0,i=t.depCount=0,s=[],d=[];return o.name.charAt(0)=="@"&&t.errors.push(zk()),o.definitions.forEach(u=>{if(this._resetContextStyleTimingState(t),u.type==wo.State){let f=u,_=f.name;_.toString().split(/\s*,\s*/).forEach(C=>{f.name=C,s.push(this.visitState(f,t))}),f.name=_}else if(u.type==wo.Transition){let f=this.visitTransition(u,t);n+=f.queryCount,i+=f.depCount,d.push(f)}else t.errors.push(Hk())}),{type:wo.Trigger,name:o.name,states:s,transitions:d,queryCount:n,depCount:i,options:null}}visitState(o,t){let n=this.visitStyle(o.styles,t),i=o.options&&o.options.params||null;if(n.containsDynamicStyles){let s=new Set,d=i||{};n.styles.forEach(u=>{u instanceof Map&&u.forEach(f=>{UT(f).forEach(_=>{d.hasOwnProperty(_)||s.add(_)})})}),s.size&&t.errors.push(Gk(o.name,[...s.values()]))}return{type:wo.State,name:o.name,style:n,options:i?{params:i}:null}}visitTransition(o,t){t.queryCount=0,t.depCount=0;let n=bl(this,I0(o.animation),t),i=yre(o.expr,t.errors);return{type:wo.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:hd(o.options)}}visitSequence(o,t){return{type:wo.Sequence,steps:o.steps.map(n=>bl(this,n,t)),options:hd(o.options)}}visitGroup(o,t){let n=t.currentTime,i=0,s=o.steps.map(d=>{t.currentTime=n;let u=bl(this,d,t);return i=Math.max(i,t.currentTime),u});return t.currentTime=i,{type:wo.Group,steps:s,options:hd(o.options)}}visitAnimate(o,t){let n=Ere(o.timings,t.errors);t.currentAnimateTimings=n;let i,s=o.styles?o.styles:Lo({});if(s.type==wo.Keyframes)i=this.visitKeyframes(s,t);else{let d=o.styles,u=!1;if(!d){u=!0;let _={};n.easing&&(_.easing=n.easing),d=Lo(_)}t.currentTime+=n.duration+n.delay;let f=this.visitStyle(d,t);f.isEmptyStep=u,i=f}return t.currentAnimateTimings=null,{type:wo.Animate,timings:n,style:i,options:null}}visitStyle(o,t){let n=this._makeStyleAst(o,t);return this._validateStyleAst(n,t),n}_makeStyleAst(o,t){let n=[],i=Array.isArray(o.styles)?o.styles:[o.styles];for(let u of i)typeof u=="string"?u===Es?n.push(u):t.errors.push(jk(u)):n.push(new Map(Object.entries(u)));let s=!1,d=null;return n.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(d=u.get("easing"),u.delete("easing")),!s)){for(let f of u.values())if(f.toString().indexOf(GT)>=0){s=!0;break}}}),{type:wo.Style,styles:n,easing:d,offset:o.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(o,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),o.styles.forEach(d=>{typeof d!="string"&&d.forEach((u,f)=>{let _=t.collectedStyles.get(t.currentQuerySelector),C=_.get(f),x=!0;C&&(s!=i&&s>=C.startTime&&i<=C.endTime&&(t.errors.push($k(f,C.startTime,C.endTime,s,i)),x=!1),s=C.startTime),x&&_.set(f,{startTime:s,endTime:i}),t.options&&u8(u,t.options,t.errors)})})}visitKeyframes(o,t){let n={type:wo.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Uk()),n;let i=1,s=0,d=[],u=!1,f=!1,_=0,C=o.steps.map(k=>{let z=this._makeStyleAst(k,t),U=z.offset!=null?z.offset:Dre(z.styles),J=0;return U!=null&&(s++,J=z.offset=U),f=f||J<0||J>1,u=u||J<_,_=J,d.push(J),z});f&&t.errors.push(Wk()),u&&t.errors.push(Qk());let x=o.steps.length,y=0;s>0&&s{let U=y>0?z==P?1:y*z:d[z],J=U*D;t.currentTime=S+M.delay+J,M.duration=J,this._validateStyleAst(k,t),k.offset=U,n.styles.push(k)}),n}visitReference(o,t){return{type:wo.Reference,animation:bl(this,I0(o.animation),t),options:hd(o.options)}}visitAnimateChild(o,t){return t.depCount++,{type:wo.AnimateChild,options:hd(o.options)}}visitAnimateRef(o,t){return{type:wo.AnimateRef,animation:this.visitReference(o.animation,t),options:hd(o.options)}}visitQuery(o,t){let n=t.currentQuerySelector,i=o.options||{};t.queryCount++,t.currentQuery=o;let[s,d]=Tre(o.selector);t.currentQuerySelector=n.length?n+" "+s:s,xl(t.collectedStyles,t.currentQuerySelector,new Map);let u=bl(this,I0(o.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:wo.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:d,animation:u,originalSelector:o.selector,options:hd(o.options)}}visitStagger(o,t){t.currentQuery||t.errors.push(Jk());let n=o.timings==="full"?{duration:0,delay:0,easing:"full"}:uf(o.timings,t.errors,!0);return{type:wo.Stagger,animation:bl(this,I0(o.animation),t),timings:n,options:null}}};function Tre(e){let o=!!e.split(/\s*,\s*/).find(t=>t==T8);return o&&(e=e.replace(Pre,"")),e=e.replace(/@\*/g,df).replace(/@\w+/g,t=>df+"-"+t.slice(1)).replace(/:animating/g,i_),[e,o]}function Mre(e){return e?at({},e):null}var ZT=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(o){this.errors=o}};function Dre(e){if(typeof e=="string")return null;let o=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;o=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let t=e;o=parseFloat(t.get("offset")),t.delete("offset")}return o}function Ere(e,o){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let s=uf(e,o).duration;return WT(s,0,"")}let t=e;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=WT(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=uf(t,o);return WT(i.duration,i.delay,i.easing)}function hd(e){return e?(e=at({},e),e.params&&(e.params=Mre(e.params))):e={},e}function WT(e,o,t){return{duration:e,delay:o,easing:t}}function p4(e,o,t,n,i,s,d=null,u=!1){return{type:1,element:e,keyframes:o,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:d,subTimeline:u}}var hf=class{_map=new Map;get(o){return this._map.get(o)||[]}append(o,t){let n=this._map.get(o);n||this._map.set(o,n=[]),n.push(...t)}has(o){return this._map.has(o)}clear(){this._map.clear()}},Ire=1,Ore=":enter",Are=new RegExp(Ore,"g"),Fre=":leave",kre=new RegExp(Fre,"g");function D8(e,o,t,n,i,s=new Map,d=new Map,u,f,_=[]){return new e4().buildKeyframes(e,o,t,n,i,s,d,u,f,_)}var e4=class{buildKeyframes(o,t,n,i,s,d,u,f,_,C=[]){_=_||new hf;let x=new t4(o,t,_,i,s,C,[]);x.options=f;let y=f.delay?lc(f.delay):0;x.currentTimeline.delayNextStep(y),x.currentTimeline.setStyles([d],null,x.errors,f),bl(this,n,x);let P=x.timelines.filter(S=>S.containsAnimation());if(P.length&&u.size){let S;for(let M=P.length-1;M>=0;M--){let D=P[M];if(D.element===t){S=D;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([u],null,x.errors,f)}return P.length?P.map(S=>S.buildKeyframes()):[p4(t,[],[],[],0,y,"",!1)]}visitTrigger(o,t){}visitState(o,t){}visitTransition(o,t){}visitAnimateChild(o,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(o.options),s=t.currentTimeline.currentTime,d=this._visitSubInstructions(n,i,i.options);s!=d&&t.transformIntoNewTimeline(d)}t.previousNode=o}visitAnimateRef(o,t){let n=t.createSubContext(o.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],t,n),this.visitReference(o.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=o}_applyAnimationRefDelays(o,t,n){for(let i of o){let s=i?.delay;if(s){let d=typeof s=="number"?s:lc(O0(s,i?.params??{},t.errors));n.delayNextStep(d)}}}_visitSubInstructions(o,t,n){let s=t.currentTimeline.currentTime,d=n.duration!=null?lc(n.duration):null,u=n.delay!=null?lc(n.delay):null;return d!==0&&o.forEach(f=>{let _=t.appendInstructionToTimeline(f,d,u);s=Math.max(s,_.duration+_.delay)}),s}visitReference(o,t){t.updateOptions(o.options,!0),bl(this,o.animation,t),t.previousNode=o}visitSequence(o,t){let n=t.subContextCount,i=t,s=o.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==wo.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=m_);let d=lc(s.delay);i.delayNextStep(d)}o.steps.length&&(o.steps.forEach(d=>bl(this,d,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=o}visitGroup(o,t){let n=[],i=t.currentTimeline.currentTime,s=o.options&&o.options.delay?lc(o.options.delay):0;o.steps.forEach(d=>{let u=t.createSubContext(o.options);s&&u.delayNextStep(s),bl(this,d,u),i=Math.max(i,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(d=>t.currentTimeline.mergeTimelineCollectedStyles(d)),t.transformIntoNewTimeline(i),t.previousNode=o}_visitTiming(o,t){if(o.dynamic){let n=o.strValue,i=t.params?O0(n,t.params,t.errors):n;return uf(i,t.errors)}else return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,t){let n=t.currentAnimateTimings=this._visitTiming(o.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=o.style;s.type==wo.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=o}visitStyle(o,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||o.easing;o.isEmptyStep?n.applyEmptyStep(s):n.setStyles(o.styles,s,t.errors,t.options),t.previousNode=o}visitKeyframes(o,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,u=t.createSubContext().currentTimeline;u.easing=n.easing,o.styles.forEach(f=>{let _=f.offset||0;u.forwardTime(_*s),u.setStyles(f.styles,f.easing,t.errors,t.options),u.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(u),t.transformIntoNewTimeline(i+s),t.previousNode=o}visitQuery(o,t){let n=t.currentTimeline.currentTime,i=o.options||{},s=i.delay?lc(i.delay):0;s&&(t.previousNode.type===wo.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=m_);let d=n,u=t.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=u.length;let f=null;u.forEach((_,C)=>{t.currentQueryIndex=C;let x=t.createSubContext(o.options,_);s&&x.delayNextStep(s),_===t.element&&(f=x.currentTimeline),bl(this,o.animation,x),x.currentTimeline.applyStylesToKeyframe();let y=x.currentTimeline.currentTime;d=Math.max(d,y)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(d),f&&(t.currentTimeline.mergeTimelineCollectedStyles(f),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=o}visitStagger(o,t){let n=t.parentContext,i=t.currentTimeline,s=o.timings,d=Math.abs(s.duration),u=d*(t.currentQueryTotal-1),f=d*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":f=u-f;break;case"full":f=n.currentStaggerTime;break}let C=t.currentTimeline;f&&C.delayNextStep(f);let x=C.currentTime;bl(this,o.animation,t),t.previousNode=o,n.currentStaggerTime=i.currentTime-x+(i.startTime-n.currentTimeline.startTime)}},m_={},t4=class e{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=m_;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(o,t,n,i,s,d,u,f){this._driver=o,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=d,this.timelines=u,this.currentTimeline=f||new d_(this._driver,t,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,t){if(!o)return;let n=o,i=this.options;n.duration!=null&&(i.duration=lc(n.duration)),n.delay!=null&&(i.delay=lc(n.delay));let s=n.params;if(s){let d=i.params;d||(d=this.options.params={}),Object.keys(s).forEach(u=>{(!t||!d.hasOwnProperty(u))&&(d[u]=O0(s[u],d,this.errors))})}}_copyOptions(){let o={};if(this.options){let t=this.options.params;if(t){let n=o.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return o}createSubContext(o=null,t,n){let i=t||this.element,s=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(o),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(o){return this.previousNode=m_,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,t,n){let i={duration:t??o.duration,delay:this.currentTimeline.currentTime+(n??0)+o.delay,easing:""},s=new i4(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,i,o.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,t,n,i,s,d){let u=[];if(i&&u.push(this.element),o.length>0){o=o.replace(Are,"."+this._enterClassName),o=o.replace(kre,"."+this._leaveClassName);let f=n!=1,_=this._driver.query(this.element,o,f);n!==0&&(_=n<0?_.slice(_.length+n,_.length):_.slice(0,n)),u.push(..._)}return!s&&u.length==0&&d.push(Kk(t)),u}},d_=class e{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(o,t,n,i){this._driver=o,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+o),t&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,t){return this.applyStylesToKeyframe(),new e(this._driver,o,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ire,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,t){this._localTimelineStyles.set(o,t),this._globalTimelineStyles.set(o,t),this._styleSummary.set(o,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Es),this._currentKeyframe.set(t,Es);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},d=Bre(o,this._globalTimelineStyles);for(let[u,f]of d){let _=O0(f,s,n);this._pendingStyles.set(u,_),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Es),this._updateStyle(u,_)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((o,t)=>{this._currentKeyframe.set(t,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,o)}))}snapshotCurrentStyles(){for(let[o,t]of this._localTimelineStyles)this._pendingStyles.set(o,t),this._updateStyle(o,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let o=[];for(let t in this._currentKeyframe)o.push(t);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let o=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((u,f)=>{let _=new Map([...this._backFill,...u]);_.forEach((C,x)=>{C===sf?o.add(x):C===Es&&t.add(x)}),n||_.set("offset",f/this.duration),i.push(_)});let s=[...o.values()],d=[...t.values()];if(n){let u=i[0],f=new Map(u);u.set("offset",0),f.set("offset",1),i=[u,f]}return p4(this.element,i,s,d,this.duration,this.startTime,this.easing,!1)}},i4=class extends d_{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(o,t,n,i,s,d,u=!1){super(o,t,d.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=u,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],d=n+t,u=t/d,f=new Map(o[0]);f.set("offset",0),s.push(f);let _=new Map(o[0]);_.set("offset",C8(u)),s.push(_);let C=o.length-1;for(let x=1;x<=C;x++){let y=new Map(o[x]),P=y.get("offset"),S=t+P*n;y.set("offset",C8(S/d)),s.push(y)}n=d,t=0,i="",o=s}return p4(this.element,o,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function C8(e,o=3){let t=Math.pow(10,o-1);return Math.round(e*t)/t}function Bre(e,o){let t=new Map,n;return e.forEach(i=>{if(i==="*"){n??=o.keys();for(let s of n)t.set(s,Es)}else for(let[s,d]of i)t.set(s,d)}),t}function v8(e,o,t,n,i,s,d,u,f,_,C,x,y){return{type:0,element:e,triggerName:o,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:d,timelines:u,queriedElements:f,preStyleProps:_,postStyleProps:C,totalTime:x,errors:y}}var QT={},u_=class{_triggerName;ast;_stateStyles;constructor(o,t,n){this._triggerName=o,this.ast=t,this._stateStyles=n}match(o,t,n,i){return Rre(this.ast.matchers,o,t,n,i)}buildStyles(o,t,n){let i=this._stateStyles.get("*");return o!==void 0&&(i=this._stateStyles.get(o?.toString())||i),i?i.buildStyles(t,n):new Map}build(o,t,n,i,s,d,u,f,_,C){let x=[],y=this.ast.options&&this.ast.options.params||QT,P=u&&u.params||QT,S=this.buildStyles(n,P,x),M=f&&f.params||QT,D=this.buildStyles(i,M,x),k=new Set,z=new Map,U=new Map,J=i==="void",re={params:E8(M,y),delay:this.ast.options?.delay},ee=C?[]:D8(o,t,this.ast.animation,s,d,S,D,re,_,x),ae=0;return ee.forEach(se=>{ae=Math.max(se.duration+se.delay,ae)}),x.length?v8(t,this._triggerName,n,i,J,S,D,[],[],z,U,ae,x):(ee.forEach(se=>{let _e=se.element,de=xl(z,_e,new Set);se.preStyleProps.forEach(W=>de.add(W));let j=xl(U,_e,new Set);se.postStyleProps.forEach(W=>j.add(W)),_e!==t&&k.add(_e)}),v8(t,this._triggerName,n,i,J,S,D,ee,[...k.values()],z,U,ae))}};function Rre(e,o,t,n,i){return e.some(s=>s(o,t,n,i))}function E8(e,o){let t=at({},o);return Object.entries(e).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var n4=class{styles;defaultParams;normalizer;constructor(o,t,n){this.styles=o,this.defaultParams=t,this.normalizer=n}buildStyles(o,t){let n=new Map,i=E8(o,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((d,u)=>{d&&(d=O0(d,i,t));let f=this.normalizer.normalizePropertyName(u,t);d=this.normalizer.normalizeStyleValue(u,f,d,t),n.set(u,d)})}),n}};function Nre(e,o,t){return new o4(e,o,t)}var o4=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(o,t,n){this.name=o,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new n4(i.style,s,n))}),x8(this.states,"true","1"),x8(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new u_(o,i,this.states))}),this.fallbackTransition=Lre(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,t,n,i){return this.transitionFactories.find(d=>d.match(o,t,n,i))||null}matchStyles(o,t,n){return this.fallbackTransition.buildStyles(o,t,n)}};function Lre(e,o,t){let n=[(d,u)=>!0],i={type:wo.Sequence,steps:[],options:null},s={type:wo.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new u_(e,s,o)}function x8(e,o,t){e.has(o)?e.has(t)||e.set(t,e.get(o)):e.has(t)&&e.set(o,e.get(t))}var Vre=new hf,a4=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(o,t,n){this.bodyNode=o,this._driver=t,this._normalizer=n}register(o,t){let n=[],i=[],s=M8(this._driver,t,n,i);if(n.length)throw t8(n);this._animations.set(o,s)}_buildPlayer(o,t,n){let i=o.element,s=VT(this._normalizer,o.keyframes,t,n);return this._driver.animate(i,s,o.duration,o.delay,o.easing,[],!0)}create(o,t,n={}){let i=[],s=this._animations.get(o),d,u=new Map;if(s?(d=D8(this._driver,t,s,jT,t_,new Map,new Map,n,Vre,i),d.forEach(C=>{let x=xl(u,C.element,new Map);C.postStyleProps.forEach(y=>x.set(y,null))})):(i.push(i8()),d=[]),i.length)throw n8(i);u.forEach((C,x)=>{C.forEach((y,P)=>{C.set(P,this._driver.computeStyle(x,P,Es))})});let f=d.map(C=>{let x=u.get(C.element);return this._buildPlayer(C,new Map,x)}),_=Nc(f);return this._playersById.set(o,_),_.onDestroy(()=>this.destroy(o)),this.players.push(_),_}destroy(o){let t=this._getPlayer(o);t.destroy(),this._playersById.delete(o);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(o){let t=this._playersById.get(o);if(!t)throw o8(o);return t}listen(o,t,n,i){let s=Zg(t,"","","");return Xg(this._getPlayer(o),n,s,i),()=>{}}command(o,t,n,i){if(n=="register"){this.register(o,i[0]);return}if(n=="create"){let d=i[0]||{};this.create(o,t,d);return}let s=this._getPlayer(o);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(o);break}}},b8="ng-animate-queued",qre=".ng-animate-queued",YT="ng-animate-disabled",zre=".ng-animate-disabled",Hre="ng-star-inserted",Gre=".ng-star-inserted",jre=[],I8={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$re={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fs="__ng_removed",gf=class{namespaceId;value;options;get params(){return this.options.params}constructor(o,t=""){this.namespaceId=t;let n=o&&o.hasOwnProperty("value"),i=n?o.value:o;if(this.value=Wre(i),n){let s=o,{value:d}=s,u=Q7(s,["value"]);this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(o){let t=o.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},ff="void",JT=new gf(ff),r4=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(o,t,n){this.id=o,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+o,ls(t,this._hostClassName)}listen(o,t,n,i){if(!this._triggers.has(t))throw a8(n,t);if(n==null||n.length==0)throw r8(t);if(!Qre(n))throw l8(n,t);let s=xl(this._elementListeners,o,[]),d={name:t,phase:n,callback:i};s.push(d);let u=xl(this._engine.statesByElement,o,new Map);return u.has(t)||(ls(o,mf),ls(o,mf+"-"+t),u.set(t,JT)),()=>{this._engine.afterFlush(()=>{let f=s.indexOf(d);f>=0&&s.splice(f,1),this._triggers.has(t)||u.delete(t)})}}register(o,t){return this._triggers.has(o)?!1:(this._triggers.set(o,t),!0)}_getTrigger(o){let t=this._triggers.get(o);if(!t)throw s8(o);return t}trigger(o,t,n,i=!0){let s=this._getTrigger(t),d=new _f(this.id,t,o),u=this._engine.statesByElement.get(o);u||(ls(o,mf),ls(o,mf+"-"+t),this._engine.statesByElement.set(o,u=new Map));let f=u.get(t),_=new gf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&f&&_.absorbOptions(f.options),u.set(t,_),f||(f=JT),!(_.value===ff)&&f.value===_.value){if(!Kre(f.params,_.params)){let M=[],D=s.matchStyles(f.value,f.params,M),k=s.matchStyles(_.value,_.params,M);M.length?this._engine.reportError(M):this._engine.afterFlush(()=>{Op(o,D),As(o,k)})}return}let y=xl(this._engine.playersByElement,o,[]);y.forEach(M=>{M.namespaceId==this.id&&M.triggerName==t&&M.queued&&M.destroy()});let P=s.matchTransition(f.value,_.value,o,_.params),S=!1;if(!P){if(!i)return;P=s.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:t,transition:P,fromState:f,toState:_,player:d,isFallbackTransition:S}),S||(ls(o,b8),d.onStart(()=>{A0(o,b8)})),d.onDone(()=>{let M=this.players.indexOf(d);M>=0&&this.players.splice(M,1);let D=this._engine.playersByElement.get(o);if(D){let k=D.indexOf(d);k>=0&&D.splice(k,1)}}),this.players.push(d),y.push(d),d}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(t=>t.delete(o)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);let t=this._engine.playersByElement.get(o);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,t){let n=this._engine.driver.query(o,df,!0);n.forEach(i=>{if(i[Fs])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(d=>d.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(o,t,n,i){let s=this._engine.statesByElement.get(o),d=new Map;if(s){let u=[];if(s.forEach((f,_)=>{if(d.set(_,f.value),this._triggers.has(_)){let C=this.trigger(o,_,ff,i);C&&u.push(C)}}),u.length)return this._engine.markElementAsRemoved(this.id,o,!0,t,d),n&&Nc(u).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){let t=this._elementListeners.get(o),n=this._engine.statesByElement.get(o);if(t&&n){let i=new Set;t.forEach(s=>{let d=s.name;if(i.has(d))return;i.add(d);let f=this._triggers.get(d).fallbackTransition,_=n.get(d)||JT,C=new gf(ff),x=new _f(this.id,d,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:d,transition:f,fromState:_,toState:C,player:x,isFallbackTransition:!0})})}}removeNode(o,t){let n=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,t),this.triggerLeaveAnimation(o,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(o):[];if(s&&s.length)i=!0;else{let d=o;for(;d=d.parentNode;)if(n.statesByElement.get(d)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(o),i)n.markElementAsRemoved(this.id,o,!1,t);else{let s=o[Fs];(!s||s===I8)&&(n.afterFlush(()=>this.clearElementCache(o)),n.destroyInnerAnimations(o),n._onRemovalComplete(o,t))}}insertNode(o,t){ls(o,this._hostClassName)}drainQueuedTransitions(o){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,d=this._elementListeners.get(s);d&&d.forEach(u=>{if(u.name==n.triggerName){let f=Zg(s,n.triggerName,n.fromState.value,n.toState.value);f._data=o,Xg(n.player,u.phase,f,u.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,d=i.transition.ast.depCount;return s==0||d==0?s-d:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(o){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}},l4=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(o,t)=>{};_onRemovalComplete(o,t){this.onRemovalComplete(o,t)}constructor(o,t,n){this.bodyNode=o,this.driver=t,this._normalizer=n}get queuedPlayers(){let o=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&o.push(n)})}),o}createNamespace(o,t){let n=new r4(o,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[o]=n}_balanceNamespaceList(o,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let d=!1,u=this.driver.getParentElement(t);for(;u;){let f=i.get(u);if(f){let _=n.indexOf(f);n.splice(_+1,0,o),d=!0;break}u=this.driver.getParentElement(u)}d||n.unshift(o)}else n.push(o);return i.set(t,o),o}register(o,t){let n=this._namespaceLookup[o];return n||(n=this.createNamespace(o,t)),n}registerTrigger(o,t,n){let i=this._namespaceLookup[o];i&&i.register(t,n)&&this.totalAnimations++}destroy(o,t){o&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(o);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[o]}))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){let t=new Set,n=this.statesByElement.get(o);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(o,t,n,i){if(l_(t)){let s=this._fetchNamespace(o);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(o,t,n,i){if(!l_(t))return;let s=t[Fs];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let d=this.collectedLeaveElements.indexOf(t);d>=0&&this.collectedLeaveElements.splice(d,1)}if(o){let d=this._fetchNamespace(o);d&&d.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,t){t?this.disabledNodes.has(o)||(this.disabledNodes.add(o),ls(o,YT)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),A0(o,YT))}removeNode(o,t,n){if(l_(t)){let i=o?this._fetchNamespace(o):null;i?i.removeNode(t,n):this.markElementAsRemoved(o,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==o&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(o,t,n,i,s){this.collectedLeaveElements.push(t),t[Fs]={namespaceId:o,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(o,t,n,i,s){return l_(t)?this._fetchNamespace(o).listen(t,n,i,s):()=>{}}_buildInstruction(o,t,n,i,s){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,n,i,o.fromState.options,o.toState.options,t,s)}destroyInnerAnimations(o){let t=this.driver.query(o,df,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(o,i_,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(o){let t=this.playersByElement.get(o);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(o){let t=this.playersByQueriedElement.get(o);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return Nc(this.players).onDone(()=>o());o()})}processLeaveNode(o){let t=o[Fs];if(t&&t.setForRemoval){if(o[Fs]=I8,t.namespaceId){this.destroyInnerAnimations(o);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(o)}this._onRemovalComplete(o,t.setForRemoval)}o.classList?.contains(YT)&&this.markElementAsDisabled(o,!1),this.driver.query(o,zre,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(o=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?Nc(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(o){throw c8(o)}_flushAnimations(o,t){let n=new hf,i=[],s=new Map,d=[],u=new Map,f=new Map,_=new Map,C=new Set;this.disabledNodes.forEach(L=>{C.add(L);let N=this.driver.query(L,qre,!0);for(let G=0;G{let G=jT+M++;S.set(N,G),L.forEach($=>ls($,G))});let D=[],k=new Set,z=new Set;for(let L=0;Lk.add($)):z.add(N))}let U=new Map,J=w8(y,Array.from(k));J.forEach((L,N)=>{let G=t_+M++;U.set(N,G),L.forEach($=>ls($,G))}),o.push(()=>{P.forEach((L,N)=>{let G=S.get(N);L.forEach($=>A0($,G))}),J.forEach((L,N)=>{let G=U.get(N);L.forEach($=>A0($,G))}),D.forEach(L=>{this.processLeaveNode(L)})});let re=[],ee=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(t).forEach(G=>{let $=G.player,ne=G.element;if(re.push($),this.collectedEnterElements.length){let Q=ne[Fs];if(Q&&Q.setForMove){if(Q.previousTriggersValues&&Q.previousTriggersValues.has(G.triggerName)){let Ce=Q.previousTriggersValues.get(G.triggerName),Ve=this.statesByElement.get(G.element);if(Ve&&Ve.has(G.triggerName)){let mt=Ve.get(G.triggerName);mt.value=Ce,Ve.set(G.triggerName,mt)}}$.destroy();return}}let be=!x||!this.driver.containsElement(x,ne),ye=U.get(ne),Ne=S.get(ne),te=this._buildInstruction(G,n,Ne,ye,be);if(te.errors&&te.errors.length){ee.push(te);return}if(be){$.onStart(()=>Op(ne,te.fromStyles)),$.onDestroy(()=>As(ne,te.toStyles)),i.push($);return}if(G.isFallbackTransition){$.onStart(()=>Op(ne,te.fromStyles)),$.onDestroy(()=>As(ne,te.toStyles)),i.push($);return}let Ae=[];te.timelines.forEach(Q=>{Q.stretchStartingKeyframe=!0,this.disabledNodes.has(Q.element)||Ae.push(Q)}),te.timelines=Ae,n.append(ne,te.timelines);let K={instruction:te,player:$,element:ne};d.push(K),te.queriedElements.forEach(Q=>xl(u,Q,[]).push($)),te.preStyleProps.forEach((Q,Ce)=>{if(Q.size){let Ve=f.get(Ce);Ve||f.set(Ce,Ve=new Set),Q.forEach((mt,Ye)=>Ve.add(Ye))}}),te.postStyleProps.forEach((Q,Ce)=>{let Ve=_.get(Ce);Ve||_.set(Ce,Ve=new Set),Q.forEach((mt,Ye)=>Ve.add(Ye))})});if(ee.length){let L=[];ee.forEach(N=>{L.push(p8(N.triggerName,N.errors))}),re.forEach(N=>N.destroy()),this.reportError(L)}let ae=new Map,se=new Map;d.forEach(L=>{let N=L.element;n.has(N)&&(se.set(N,N),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,ae))}),i.forEach(L=>{let N=L.element;this._getPreviousPlayers(N,!1,L.namespaceId,L.triggerName,null).forEach($=>{xl(ae,N,[]).push($),$.destroy()})});let _e=D.filter(L=>P8(L,f,_)),de=new Map;S8(de,this.driver,z,_,Es).forEach(L=>{P8(L,f,_)&&_e.push(L)});let W=new Map;P.forEach((L,N)=>{S8(W,this.driver,new Set(L),f,sf)}),_e.forEach(L=>{let N=de.get(L),G=W.get(L);de.set(L,new Map([...N?.entries()??[],...G?.entries()??[]]))});let pe=[],O=[],B={};d.forEach(L=>{let{element:N,player:G,instruction:$}=L;if(n.has(N)){if(C.has(N)){G.onDestroy(()=>As(N,$.toStyles)),G.disabled=!0,G.overrideTotalTime($.totalTime),i.push(G);return}let ne=B;if(se.size>1){let ye=N,Ne=[];for(;ye=ye.parentNode;){let te=se.get(ye);if(te){ne=te;break}Ne.push(ye)}Ne.forEach(te=>se.set(te,ne))}let be=this._buildAnimation(G.namespaceId,$,ae,s,W,de);if(G.setRealPlayer(be),ne===B)pe.push(G);else{let ye=this.playersByElement.get(ne);ye&&ye.length&&(G.parentPlayer=Nc(ye)),i.push(G)}}else Op(N,$.fromStyles),G.onDestroy(()=>As(N,$.toStyles)),O.push(G),C.has(N)&&i.push(G)}),O.forEach(L=>{let N=s.get(L.element);if(N&&N.length){let G=Nc(N);L.setRealPlayer(G)}}),i.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L!be.destroyed);ne.length?Yre(this,N,ne):this.processLeaveNode(N)}return D.length=0,pe.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();let N=this.players.indexOf(L);this.players.splice(N,1)}),L.play()}),pe}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,t,n,i,s){let d=[];if(t){let u=this.playersByQueriedElement.get(o);u&&(d=u)}else{let u=this.playersByElement.get(o);if(u){let f=!s||s==ff;u.forEach(_=>{_.queued||!f&&_.triggerName!=i||d.push(_)})}}return(n||i)&&(d=d.filter(u=>!(n&&n!=u.namespaceId||i&&i!=u.triggerName))),d}_beforeAnimationBuild(o,t,n){let i=t.triggerName,s=t.element,d=t.isRemovalTransition?void 0:o,u=t.isRemovalTransition?void 0:i;for(let f of t.timelines){let _=f.element,C=_!==s,x=xl(n,_,[]);this._getPreviousPlayers(_,C,d,u,t.toState).forEach(P=>{let S=P.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),P.destroy(),x.push(P)})}Op(s,t.fromStyles)}_buildAnimation(o,t,n,i,s,d){let u=t.triggerName,f=t.element,_=[],C=new Set,x=new Set,y=t.timelines.map(S=>{let M=S.element;C.add(M);let D=M[Fs];if(D&&D.removedBeforeQueried)return new ud(S.duration,S.delay);let k=M!==f,z=Jre((n.get(M)||jre).map(ae=>ae.getRealPlayer())).filter(ae=>{let se=ae;return se.element?se.element===M:!1}),U=s.get(M),J=d.get(M),re=VT(this._normalizer,S.keyframes,U,J),ee=this._buildPlayer(S,re,z);if(S.subTimeline&&i&&x.add(M),k){let ae=new _f(o,u,M);ae.setRealPlayer(ee),_.push(ae)}return ee});_.forEach(S=>{xl(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>Ure(this.playersByQueriedElement,S.element,S))}),C.forEach(S=>ls(S,$T));let P=Nc(y);return P.onDestroy(()=>{C.forEach(S=>A0(S,$T)),As(f,t.toStyles)}),x.forEach(S=>{xl(i,S,[]).push(P)}),P}_buildPlayer(o,t,n){return t.length>0?this.driver.animate(o.element,t,o.duration,o.delay,o.easing,n):new ud(o.duration,o.delay)}},_f=class{namespaceId;triggerName;element;_player=new ud;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(o,t,n){this.namespaceId=o,this.triggerName=t,this.element=n}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>Xg(o,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){let t=this._player;t.triggerCallback&&o.onStart(()=>t.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,t){xl(this._queuedCallbacks,o,[]).push(t)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){let t=this._player;t.triggerCallback&&t.triggerCallback(o)}};function Ure(e,o,t){let n=e.get(o);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&e.delete(o)}return n}function Wre(e){return e??null}function l_(e){return e&&e.nodeType===1}function Qre(e){return e=="start"||e=="done"}function y8(e,o){let t=e.style.display;return e.style.display=o??"none",t}function S8(e,o,t,n,i){let s=[];t.forEach(f=>s.push(y8(f)));let d=[];n.forEach((f,_)=>{let C=new Map;f.forEach(x=>{let y=o.computeStyle(_,x,i);C.set(x,y),(!y||y.length==0)&&(_[Fs]=$re,d.push(_))}),e.set(_,C)});let u=0;return t.forEach(f=>y8(f,s[u++])),d}function w8(e,o){let t=new Map;if(e.forEach(u=>t.set(u,[])),o.length==0)return t;let n=1,i=new Set(o),s=new Map;function d(u){if(!u)return n;let f=s.get(u);if(f)return f;let _=u.parentNode;return t.has(_)?f=_:i.has(_)?f=n:f=d(_),s.set(u,f),f}return o.forEach(u=>{let f=d(u);f!==n&&t.get(f).push(u)}),t}function ls(e,o){e.classList?.add(o)}function A0(e,o){e.classList?.remove(o)}function Yre(e,o,t){Nc(t).onDone(()=>e.processLeaveNode(o))}function Jre(e){let o=[];return O8(e,o),o}function O8(e,o){for(let t=0;ti.add(s)):o.set(e,n),t.delete(e),!0}var F0=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(o,t)=>{};constructor(o,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new l4(o.body,t,n),this._timelineEngine=new a4(o.body,t,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(o,t,n,i,s){let d=o+"-"+i,u=this._triggerCache[d];if(!u){let f=[],_=[],C=M8(this._driver,s,f,_);if(f.length)throw e8(i,f);u=Nre(i,C,this._normalizer),this._triggerCache[d]=u}this._transitionEngine.registerTrigger(t,i,u)}register(o,t){this._transitionEngine.register(o,t)}destroy(o,t){this._transitionEngine.destroy(o,t)}onInsert(o,t,n,i){this._transitionEngine.insertNode(o,t,n,i)}onRemove(o,t,n){this._transitionEngine.removeNode(o,t,n)}disableAnimations(o,t){this._transitionEngine.markElementAsDisabled(o,t)}process(o,t,n,i){if(n.charAt(0)=="@"){let[s,d]=qT(n),u=i;this._timelineEngine.command(s,t,d,u)}else this._transitionEngine.trigger(o,t,n,i)}listen(o,t,n,i,s){if(n.charAt(0)=="@"){let[d,u]=qT(n);return this._timelineEngine.listen(d,t,u,s)}return this._transitionEngine.listen(o,t,n,i,s)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(o){this._transitionEngine.afterFlushAnimationsDone(o)}};function Xre(e,o){let t=null,n=null;return Array.isArray(o)&&o.length?(t=KT(o[0]),o.length>1&&(n=KT(o[o.length-1]))):o instanceof Map&&(t=KT(o)),t||n?new Zre(e,t,n):null}var Zre=(()=>{class e{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&As(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(As(this._element,this._initialStyles),this._endStyles&&(As(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Op(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Op(this._element,this._endStyles),this._endStyles=null),As(this._element,this._initialStyles),this._state=3)}}return e})();function KT(e){let o=null;return e.forEach((t,n)=>{ele(n)&&(o=o||new Map,o.set(n,t))}),o}function ele(e){return e==="display"||e==="position"}var f_=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(o,t,n,i){this.element=o,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let o=this.keyframes,t=this._triggerWebAnimation(this.element,o,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=o.length?o[o.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n)}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(o){let t=[];return o.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(o,t,n){let i=this._convertKeyframesToObject(t);try{return o.animate(i,n)}catch{return null}}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){let o=this._buildPlayer();o&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),o.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=o*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&o.set(i,this._finished?n:o_(this.element,i))}),this.currentSnapshot=o}triggerCallback(o){let t=o==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},h_=class{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}containsElement(o,t){return zT(o,t)}getParentElement(o){return e_(o)}query(o,t,n){return HT(o,t,n)}computeStyle(o,t,n){return o_(o,t)}animate(o,t,n,i,s,d=[]){let u=i==0?"both":"forwards",f={duration:n,delay:i,fill:u};s&&(f.easing=s);let _=new Map,C=d.filter(P=>P instanceof f_);f8(n,i)&&C.forEach(P=>{P.currentSnapshot.forEach((S,M)=>_.set(M,S))});let x=d8(t).map(P=>new Map(P));x=h8(o,x,_);let y=Xre(o,x);return new f_(o,x,f,y)}};var s_="@",A8="@.disabled",g_=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(o,t,n,i){this.namespaceId=o,this.delegate=t,this.engine=n,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(o){this.delegate.destroyNode?.(o)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(o,t){return this.delegate.createElement(o,t)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,t){this.delegate.appendChild(o,t),this.engine.onInsert(this.namespaceId,t,o,!1)}insertBefore(o,t,n,i=!0){this.delegate.insertBefore(o,t,n),this.engine.onInsert(this.namespaceId,t,o,i)}removeChild(o,t,n,i){if(i){this.delegate.removeChild(o,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(o,t){return this.delegate.selectRootElement(o,t)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,t,n,i){this.delegate.setAttribute(o,t,n,i)}removeAttribute(o,t,n){this.delegate.removeAttribute(o,t,n)}addClass(o,t){this.delegate.addClass(o,t)}removeClass(o,t){this.delegate.removeClass(o,t)}setStyle(o,t,n,i){this.delegate.setStyle(o,t,n,i)}removeStyle(o,t,n){this.delegate.removeStyle(o,t,n)}setProperty(o,t,n){t.charAt(0)==s_&&t==A8?this.disableAnimations(o,!!n):this.delegate.setProperty(o,t,n)}setValue(o,t){this.delegate.setValue(o,t)}listen(o,t,n,i){return this.delegate.listen(o,t,n,i)}disableAnimations(o,t){this.engine.disableAnimations(o,t)}},s4=class extends g_{factory;constructor(o,t,n,i,s){super(t,n,i,s),this.factory=o,this.namespaceId=t}setProperty(o,t,n){t.charAt(0)==s_?t.charAt(1)=="."&&t==A8?(n=n===void 0?!0:!!n,this.disableAnimations(o,n)):this.engine.process(this.namespaceId,o,t.slice(1),n):this.delegate.setProperty(o,t,n)}listen(o,t,n,i){if(t.charAt(0)==s_){let s=tle(o),d=t.slice(1),u="";return d.charAt(0)!=s_&&([d,u]=ile(d)),this.engine.listen(this.namespaceId,s,d,u,f=>{let _=f._data||-1;this.factory.scheduleListenerCallback(_,n,f)})}return this.delegate.listen(o,t,n,i)}};function tle(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function ile(e){let o=e.indexOf("."),t=e.substring(0,o),n=e.slice(o+1);return[t,n]}var __=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(o,t,n){this.delegate=o,this.engine=t,this._zone=n,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(o,t){let i=this.delegate.createRenderer(o,t);if(!o||!t?.data?.animation){let _=this._rendererCache,C=_.get(i);if(!C){let x=()=>_.delete(i);C=new g_("",i,this.engine,x),_.set(i,C)}return C}let s=t.id,d=t.id+"-"+this._currentId;this._currentId++,this.engine.register(d,o);let u=_=>{Array.isArray(_)?_.forEach(u):this.engine.registerTrigger(s,d,o,_.name,_)};return t.data.animation.forEach(u),new s4(this,d,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(o,t,n){if(o>=0&&ot(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[d,u]=s;d(u)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(o){this.engine.flush(),this.delegate.componentReplaced?.(o)}};var ole=(()=>{class e extends F0{constructor(t,n,i){super(t,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||e)(hl(cF),hl(gd),hl(_d))};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})();function ale(){return new c_}function rle(e,o,t){return new __(e,o,t)}var k8=[{provide:_d,useFactory:ale},{provide:F0,useClass:ole},{provide:_F,useFactory:rle,deps:[EF,F0,pd]}],lle=[{provide:gd,useClass:c4},{provide:IT,useValue:"NoopAnimations"},...k8],F8=[{provide:gd,useFactory:()=>new h_},{provide:IT,useFactory:()=>"BrowserAnimations"},...k8],C_=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?lle:F8}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({providers:F8,imports:[wg]})}return e})();var Cd=(function(e){return e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e})(Cd||{}),ks=class e{static{this.level=Cd.Debug}static{this.outputs=[]}static enableProductionMode(){e.level=Cd.Warning}constructor(o){this.source=o}debug(...o){this.log(console.log,Cd.Debug,o)}info(...o){this.log(console.info,Cd.Info,o)}warn(...o){this.log(console.warn,Cd.Warning,o)}error(...o){this.log(console.error,Cd.Error,o)}log(o,t,n){if(t<=e.level){let i=this.source?["["+this.source+"]"].concat(n):n;o.apply(console,i),e.outputs.forEach(s=>s.apply(s,[this.source,t].concat(n)))}}};var B8=(()=>{class e{constructor(){this.timeoutDelay=un.session.timeout.idleTimeout||3e5,this.timeout$=new Rr,this.resetTimer$=new Rr,this.active=!1,this.$onSessionTimeout=this.timeout$.asObservable(),this.resetTimer$.subscribe(()=>{this.timerSubscription?.unsubscribe(),this.timerSubscription=iF(this.timeoutDelay).subscribe(()=>{this.timeout$.next(),this.stop()})})}start(){if(!this.active){this.active=!0,this.reset();let n=ul(...["mousemove","keydown","wheel","mousedown","scroll"].map(i=>cd(document,i)));this.userActionsSubscription=n.subscribe(()=>{this.reset()})}}stop(){this.active&&(this.active=!1,this.timerSubscription?.unsubscribe(),this.userActionsSubscription?.unsubscribe())}reset(){this.active&&this.resetTimer$.next()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var v_=(()=>{class e{constructor(){this.dialogRef=T(eo)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-session-timeout-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content"),c(4),p(5,"translate"),r(),l(6,"mat-dialog-actions")(7,"button",1),c(8),p(9,"translate"),r()()),n&2&&(a(),h(m(2,3,"labels.heading.Session Timeout")),a(3),v("",m(5,5,"labels.text.Session timed out after a period of inactivity"),"."),a(4),h(m(9,7,"labels.buttons.Close")))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var Ia=(()=>{class e{constructor(){this.authenticationService=T(Wo),this.http=T(ko),this.route=T(Ie),this.router=T(qe),this.alertService=T(Ur),this.translateService=T(yi),this.baseUrl=un.OIDC.oidcBaseUrl,this.authUrl=`${this.baseUrl}oauth/v2/authorize`,this.tokenUrl=`${this.baseUrl}oauth/v2/token`,this.clientId=un.OIDC.oidcClientId,this.api=un.OIDC.oidcApiUrl,this.frontUrl=un.OIDC.oidcFrontUrl,this.redirectUri=`${this.frontUrl}#/callback`,this.refreshTimeoutId=null}login(){return qn(this,null,function*(){let t=this.generateRandomString(),n=yield this.generateCodeChallenge(t);sessionStorage.setItem("code_verifier",t);let i=`${this.authUrl}?client_id=${encodeURIComponent(this.clientId)}&redirect_uri=${encodeURIComponent(this.redirectUri)}&response_type=code&scope=openid profile email offline_access&code_challenge=${n}&code_challenge_method=S256`;window.location.href=i})}logout(){let t=localStorage.getItem("id_token"),n=this.frontUrl+"#/login";if(this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),!t){window.location.href=n;return}sessionStorage.removeItem("mifosXCredentials"),sessionStorage.removeItem("mifosXZitadelTokenDetails"),localStorage.removeItem("access_token"),localStorage.removeItem("expires_in"),localStorage.removeItem("id_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("refresh_expires_in"),localStorage.removeItem("token_start_time"),localStorage.removeItem("code_verifier"),localStorage.removeItem("mifosXZitadel"),localStorage.removeItem("auth_code");let i=`${this.baseUrl}/oidc/v1/end_session?id_token_hint=${t}&post_logout_redirect_uri=${encodeURIComponent(n)}`;window.location.href=i}getAccessToken(){let t=sessionStorage.getItem("mifosXZitadelTokenDetails");return t?JSON.parse(t).access_token:null}generateRandomString(t=128){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i="";for(let s=0;sn.ok?n.json():(this.alertService.alert({type:"User Details",message:this.translateService.instant("errors.Username or password incorrect.")}),this.sesionEnd(),!1)).then(n=>{let s=n.object;this.authenticationService.saveZitadelCredentials(s),window.location.href="/#/home"}).catch(n=>{this.alertService.alert({type:"User Details",message:n})})}deletUser(t){fetch(`${this.api}authentication/user/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`}}).then(n=>n.json()).then(n=>{n.status===200?this.router.navigate(["/appusers"]):alert(n.msg)}).catch(n=>{alert(n.msg)})}activeUser(t){fetch(`${this.api}authentication/user/act/${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({userId:t})}).then(n=>n.json()).then(n=>{window.location.reload()}).catch(n=>{alert(n.msg)})}desactiveUser(t){fetch(`${this.api}authentication/user/des/${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`}}).then(n=>n.json()).then(n=>{window.location.reload()}).catch(n=>{alert(n.msg)})}getUsers(){let t=[];fetch(`${this.api}authentication/user`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`}}).then(n=>n.json()).then(n=>{let i=n.data?.result;Array.isArray(i)&&i.forEach(s=>{let d=s.human;d&&t.push(d)})}).catch(n=>console.error(`Error retrieving users: ${n}`))}createRole(t,n,i){fetch(`${this.api}authentication/role`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({roleKey:t,displayName:n,group:i})}).then(s=>s.json()).then(s=>{}).catch(s=>{alert(s.msg)})}updateRole(t,n,i){fetch(`${this.api}authentication/role`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({roleKey:t,displayName:n,group:i})}).then(s=>s.json()).then(s=>{}).catch(s=>{alert(s.msg)})}deleteRole(t){fetch(`${this.api}authentication/role/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({roleKey:t})}).then(n=>n.json()).then(n=>{}).catch(n=>{alert(n.msg)})}refreshToken(){return new Promise((t,n)=>{let i=localStorage.getItem("refresh_token");if(!i)return n("Sin refresh_token");let s=new URLSearchParams;s.set("grant_type","refresh_token"),s.set("refresh_token",i),s.set("client_id",this.clientId),fetch(this.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s.toString()}).then(d=>d.ok?d.json():d.text().then(u=>{throw new Error(u)})).then(d=>{if(!d||!d.access_token||!d.expires_in)throw new Error("The server's response does not contain the expected fields.");localStorage.setItem("access_token",d.access_token),localStorage.setItem("id_token",d.id_token??""),localStorage.setItem("refresh_token",d.refresh_token??""),localStorage.setItem("expires_in",d.expires_in.toString()),localStorage.setItem("refresh_expires_in",d.refresh_expires_in?.toString()??""),localStorage.setItem("token_start_time",Date.now().toString()),this.scheduleRefresh(d.expires_in),t()}).catch(d=>{setTimeout(()=>{},3e5),n(d)})})}scheduleRefresh(t){let n=(t-3539)*1e3;if(n<=0){this.refreshToken();return}this.refreshTimeoutId&&clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=setTimeout(()=>{this.refreshToken()},n)}sesionEnd(){return qn(this,null,function*(){let t=localStorage.getItem("id_token"),n=this.frontUrl+"#/login";if(this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),!t){window.location.href=n;return}let i=`${this.baseUrl}oidc/v1/end_session?id_token_hint=${t}&post_logout_redirect_uri=${encodeURIComponent(n)}`;try{let s=yield fetch(i,{method:"GET",credentials:"include"});s.ok||console.error("Error en logout:",s.status,s.statusText)}catch(s){console.error("Error de red en logout:",s)}finally{sessionStorage.removeItem("mifosXCredentials"),sessionStorage.removeItem("mifosXZitadelTokenDetails"),localStorage.removeItem("access_token"),localStorage.removeItem("expires_in"),localStorage.removeItem("id_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("refresh_expires_in"),localStorage.removeItem("token_start_time"),localStorage.removeItem("code_verifier"),localStorage.removeItem("mifosXZitadel"),localStorage.removeItem("auth_code")}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ple(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:t===Math.floor(t)&&t>=2&&t<=4&&n===0?3:n!==0?4:5}var R8=["cs",[["dop.","odp."]],void 0,[["N","P","\xDA","S","\u010C","P","S"],["ne","po","\xFAt","st","\u010Dt","p\xE1","so"],["ned\u011Ble","pond\u011Bl\xED","\xFAter\xFD","st\u0159eda","\u010Dtvrtek","p\xE1tek","sobota"],["ne","po","\xFAt","st","\u010Dt","p\xE1","so"]],void 0,[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","\xFAno","b\u0159e","dub","kv\u011B","\u010Dvn","\u010Dvc","srp","z\xE1\u0159","\u0159\xEDj","lis","pro"],["ledna","\xFAnora","b\u0159ezna","dubna","kv\u011Btna","\u010Dervna","\u010Dervence","srpna","z\xE1\u0159\xED","\u0159\xEDjna","listopadu","prosince"]],[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","\xFAno","b\u0159e","dub","kv\u011B","\u010Dvn","\u010Dvc","srp","z\xE1\u0159","\u0159\xEDj","lis","pro"],["leden","\xFAnor","b\u0159ezen","duben","kv\u011Bten","\u010Derven","\u010Dervenec","srpen","z\xE1\u0159\xED","\u0159\xEDjen","listopad","prosinec"]],[["p\u0159.n.l.","n.l."],["p\u0159. n. l.","n. l."],["p\u0159ed na\u0161\xEDm letopo\u010Dtem","na\u0161eho letopo\u010Dtu"]],1,[6,0],["dd.MM.yy","d. M. y","d. MMMM y","EEEE d. MMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",","\xA0",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"CZK","K\u010D","\u010Desk\xE1 koruna",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],CSK:["K\u010Ds"],CZK:["K\u010D"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],TWD:["NT$"],USD:["US$","$"],VND:[void 0,"\u20AB"],XEU:["ECU"],XXX:[]},"ltr",ple];function mle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var N8=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",mle];function dle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return o===1?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var L8=["es",[["a.\xA0m.","p.\xA0m."]],void 0,[["D","L","M","X","J","V","S"],["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],["domingo","lunes","martes","mi\xE9rcoles","jueves","viernes","s\xE1bado"],["DO","LU","MA","MI","JU","VI","SA"]],void 0,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],void 0,[["a. C.","d. C."],void 0,["antes de Cristo","despu\xE9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}, {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{AUD:[void 0,"$"],BRL:[void 0,"R$"],BYN:[void 0,"\u0440."],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],EGP:[],ESP:["\u20A7"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],JPY:[void 0,"\xA5"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],THB:["\u0E3F"],TWD:[void 0,"NT$"],USD:["US$","$"],XAF:[],XCD:[void 0,"$"],XOF:[]},"ltr",dle];function ule(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var V8=["de",[["AM","PM"]],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xE4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."]],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} 'um' {0}",void 0],[",",".",";","%","+","-","E","\xB7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","Euro",{ATS:["\xF6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"\u0440."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl\xA3"],GHS:[void 0,"\u20B5"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],RWF:[void 0,"F.Rw"],SYP:[],THB:["\u0E3F"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",ule];function fle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===0||t===1?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var q8=["fr",[["AM","PM"]],void 0,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xE9vr.","mars","avr.","mai","juin","juil.","ao\xFBt","sept.","oct.","nov.","d\xE9c."],["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]],void 0,[["av. J.-C.","ap. J.-C."],void 0,["avant J\xE9sus-Christ","apr\xE8s J\xE9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} '\xE0' {0}",void 0],[",","\u202F",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[void 0,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"\xA5"],COP:["$CO","$"],CYP:["\xA3CY"],EGP:[void 0,"\xA3E"],FJD:["$FJ","$"],FKP:["\xA3FK","\xA3"],FRF:["F"],GBP:["\xA3GB","\xA3"],GIP:["\xA3GI","\xA3"],HKD:[void 0,"$"],IEP:["\xA3IE"],ILP:["\xA3IL"],ITL:["\u20A4IT"],JPY:[void 0,"\xA5"],KMF:[void 0,"FC"],LBP:["\xA3LB","\xA3L"],MTP:["\xA3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],PHP:[void 0,"\u20B1"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",fle];function hle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===1&&n===0?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var z8=["it",[["m.","p."],["AM","PM"]],void 0,[["D","L","M","M","G","V","S"],["dom","lun","mar","mer","gio","ven","sab"],["domenica","luned\xEC","marted\xEC","mercoled\xEC","gioved\xEC","venerd\xEC","sabato"],["dom","lun","mar","mer","gio","ven","sab"]],void 0,[["G","F","M","A","M","G","L","A","S","O","N","D"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]],void 0,[["aC","dC"],["a.C.","d.C."],["avanti Cristo","dopo Cristo"]],1,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} {0}",void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{BRL:[void 0,"R$"],BYN:[void 0,"Br"],EGP:[void 0,"\xA3E"],HKD:[void 0,"$"],INR:[void 0,"\u20B9"],JPY:[void 0,"\xA5"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NOK:[void 0,"NKr"],THB:["\u0E3F"],TWD:[void 0,"NT$"],USD:[void 0,"$"],VND:[void 0,"\u20AB"]},"ltr",hle];function gle(e){let o=e;return 5}var H8=["ko",[["AM","PM"],void 0,["\uC624\uC804","\uC624\uD6C4"]],void 0,[["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],void 0,["\uC77C\uC694\uC77C","\uC6D4\uC694\uC77C","\uD654\uC694\uC77C","\uC218\uC694\uC77C","\uBAA9\uC694\uC77C","\uAE08\uC694\uC77C","\uD1A0\uC694\uC77C"],["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]],void 0,[["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"]],void 0,[["BC","AD"],void 0,["\uAE30\uC6D0\uC804","\uC11C\uAE30"]],0,[6,0],["yy. M. d.","y. M. d.","y\uB144 M\uC6D4 d\uC77C","y\uB144 M\uC6D4 d\uC77C EEEE"],["a h:mm","a h:mm:ss","a h\uC2DC m\uBD84 s\uCD08 z","a h\uC2DC m\uBD84 s\uCD08 zzzz"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"KRW","\u20A9","\uB300\uD55C\uBBFC\uAD6D \uC6D0",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],TWD:["NT$"],USD:["US$","$"]},"ltr",gle];function _le(e){let o=e,t=parseInt(e.toString().replace(/^[^.]*\.?/,""),10)||0;return o%10===1&&!(o%100>=11&&o%100<=19)?1:o%10===Math.floor(o%10)&&o%10>=2&&o%10<=9&&!(o%100>=11&&o%100<=19)?3:t!==0?4:5}var G8=["lt",[["pr.\xA0p.","pop."],["prie\u0161piet","popiet"]],void 0,[["S","P","A","T","K","P","\u0160"],["sk","pr","an","tr","kt","pn","\u0161t"],["sekmadienis","pirmadienis","antradienis","tre\u010Diadienis","ketvirtadienis","penktadienis","\u0161e\u0161tadienis"],["Sk","Pr","An","Tr","Kt","Pn","\u0160t"]],void 0,[["S","V","K","B","G","B","L","R","R","S","L","G"],["saus.","vas.","kov.","bal.","geg.","bir\u017E.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],["sausio","vasario","kovo","baland\u017Eio","gegu\u017E\u0117s","bir\u017Eelio","liepos","rugpj\u016B\u010Dio","rugs\u0117jo","spalio","lapkri\u010Dio","gruod\u017Eio"]],[["S","V","K","B","G","B","L","R","R","S","L","G"],["saus.","vas.","kov.","bal.","geg.","bir\u017E.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],["sausis","vasaris","kovas","balandis","gegu\u017E\u0117","bir\u017Eelis","liepa","rugpj\u016Btis","rugs\u0117jis","spalis","lapkritis","gruodis"]],[["pr. Kr.","po Kr."],void 0,["prie\u0161 Krist\u0173","po Kristaus"]],1,[6,0],["y-MM-dd",void 0,"y 'm'. MMMM d 'd'.","y 'm'. MMMM d 'd'., EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",","\xA0",";","%","+","\u2212","\xD710^","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","Euras",{AUD:[void 0,"$"],BDT:[],BRL:[void 0,"R$"],BYN:[void 0,"Br"],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[],INR:[],JPY:[void 0,"\xA5"],KHR:[],KRW:[void 0,"\u20A9"],LAK:[],MNT:[],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],PLN:[void 0,"zl"],PYG:[void 0,"Gs"],RUB:[void 0,"rb"],TWD:[void 0,"$"],USD:[void 0,"$"],VND:[],XAF:[],XCD:[void 0,"$"],XOF:[],XPF:[]},"ltr",_le];function Cle(e){let o=e,t=e.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(e.toString().replace(/^[^.]*\.?/,""),10)||0;return o%10===0||o%100===Math.floor(o%100)&&o%100>=11&&o%100<=19||t===2&&n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?0:o%10===1&&o%100!==11||t===2&&n%10===1&&n%100!==11||t!==2&&n%10===1?1:5}var j8=["lv",[["priek\u0161p.","p\u0113cp."],void 0,["priek\u0161pusdien\u0101","p\u0113cpusdien\u0101"]],[["priek\u0161p.","p\u0113cpusd."],void 0,["priek\u0161pusdiena","p\u0113cpusdiena"]],[["S","P","O","T","C","P","S"],["sv\u0113td.","pirmd.","otrd.","tre\u0161d.","ceturtd.","piektd.","sestd."],["sv\u0113tdiena","pirmdiena","otrdiena","tre\u0161diena","ceturtdiena","piektdiena","sestdiena"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]],[["S","P","O","T","C","P","S"],["Sv\u0113td.","Pirmd.","Otrd.","Tre\u0161d.","Ceturtd.","Piektd.","Sestd."],["Sv\u0113tdiena","Pirmdiena","Otrdiena","Tre\u0161diena","Ceturtdiena","Piektdiena","Sestdiena"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","febr.","marts","apr.","maijs","j\u016Bn.","j\u016Bl.","aug.","sept.","okt.","nov.","dec."],["janv\u0101ris","febru\u0101ris","marts","apr\u012Blis","maijs","j\u016Bnijs","j\u016Blijs","augusts","septembris","oktobris","novembris","decembris"]],void 0,[["p.m.\u0113.","m.\u0113."],void 0,["pirms m\u016Bsu \u0113ras","m\u016Bsu \u0113r\u0101"]],1,[6,0],["dd.MM.yy","y. 'gada' d. MMM","y. 'gada' d. MMMM","EEEE, y. 'gada' d. MMMM"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",","\xA0",";","%","+","-","E","\xD7","\u2030","\u221E","NS",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","eiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],GHS:[],LVL:["Ls"],PHP:[void 0,"\u20B1"],THB:["\u0E3F"],TWD:["NT$"]},"ltr",Cle];function vle(e){return e===1?1:5}var $8=["ne",[["\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928","\u0905\u092A\u0930\u093E\u0939\u094D\u0928"]],void 0,[["\u0906","\u0938\u094B","\u092E","\u092C\u0941","\u092C\u093F","\u0936\u0941","\u0936"],["\u0906\u0907\u0924","\u0938\u094B\u092E","\u092E\u0919\u094D\u0917\u0932","\u092C\u0941\u0927","\u092C\u093F\u0939\u093F","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"],["\u0906\u0907\u0924\u092C\u093E\u0930","\u0938\u094B\u092E\u092C\u093E\u0930","\u092E\u0919\u094D\u0917\u0932\u092C\u093E\u0930","\u092C\u0941\u0927\u092C\u093E\u0930","\u092C\u093F\u0939\u093F\u092C\u093E\u0930","\u0936\u0941\u0915\u094D\u0930\u092C\u093E\u0930","\u0936\u0928\u093F\u092C\u093E\u0930"],["\u0906\u0907\u0924","\u0938\u094B\u092E","\u092E\u0919\u094D\u0917\u0932","\u092C\u0941\u0927","\u092C\u093F\u0939\u093F","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"]],void 0,[["\u091C\u0928","\u092B\u0947\u092C","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932","\u0905\u0917","\u0938\u0947\u092A","\u0905\u0915\u094D\u091F\u094B","\u0928\u094B\u092D\u0947","\u0921\u093F\u0938\u0947"],["\u091C\u0928\u0935\u0930\u0940","\u092B\u0947\u092C\u094D\u0930\u0941\u0905\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u093F\u0932","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u091F","\u0938\u0947\u092A\u094D\u091F\u0947\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u094B\u092C\u0930","\u0928\u094B\u092D\u0947\u092E\u094D\u092C\u0930","\u0921\u093F\u0938\u0947\u092E\u094D\u092C\u0930"]],[["\u091C\u0928","\u092B\u0947\u0947\u092C","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932","\u0905\u0917","\u0938\u0947\u092A","\u0905\u0915\u094D\u091F\u094B","\u0928\u094B\u092D\u0947","\u0921\u093F\u0938\u0947"],["\u091C\u0928\u0935\u0930\u0940","\u092B\u0947\u092C\u094D\u0930\u0941\u0905\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u093F\u0932","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u091F","\u0938\u0947\u092A\u094D\u091F\u0947\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u094B\u092C\u0930","\u0928\u094B\u092D\u0947\u092E\u094D\u092C\u0930","\u0921\u093F\u0938\u0947\u092E\u094D\u092C\u0930"]],[["\u0908\u0938\u093E \u092A\u0942\u0930\u094D\u0935","\u0938\u0928\u094D"]],0,[6,0],["yy/M/d","y MMM d","y MMMM d","y MMMM d, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} {0}",void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##,##0.###","#,##,##0%","\xA4\xA0#,##,##0.00","#E0"],"NPR","\u0928\u0947\u0930\u0942","\u0928\u0947\u092A\u093E\u0932\u0940 \u0930\u0942\u092A\u0948\u092F\u093E\u0901",{BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],NPR:["\u0928\u0947\u0930\u0942","\u0930\u0942"],PHP:[void 0,"\u20B1"],THB:["\u0E3F"],USD:["US$","$"]},"ltr",vle];function xle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===Math.floor(t)&&t>=0&&t<=1?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var U8=["pt",[["AM","PM"]],void 0,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],void 0,[["a.C.","d.C."],void 0,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],PTE:["Esc."],RON:[void 0,"L"],SYP:[void 0,"S\xA3"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"]},"ltr",xle];function ble(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var W8=["sw",[["am","pm"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ago","Sep","Okt","Nov","Des"],["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"]],void 0,[["KK","BK"],void 0,["Kabla ya Kristo","Baada ya Kristo"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"TZS","TSh","Shilingi ya Tanzania",{BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],KES:["Ksh"],PHP:[void 0,"\u20B1"],THB:["\u0E3F"],TWD:["NT$"],TZS:["TSh"],USD:["US$","$"]},"ltr",ble];var Sle=new ks("MifosX");Nl(R8);Nl(N8);Nl(L8);Nl(V8);Nl(q8);Nl(z8);Nl(H8);Nl(G8);Nl(j8);Nl($8);Nl(U8);Nl(W8);var Q8=(()=>{class e{constructor(t,n,i,s,d,u,f,_,C,x,y,P,S,M){this.router=t,this.activatedRoute=n,this.titleService=i,this.translateService=s,this.themeStorageService=d,this.snackBar=u,this.alertService=f,this.settingsService=_,this.authenticationService=C,this.themingService=x,this.dateUtils=y,this.idle=P,this.dialog=S,this.authService=M,this.destroy$=new Rr}login(){this.authService.login()}ngOnInit(){this.themingService.theme.subscribe(i=>{this.cssClass=i}),this.themingService.setInitialDarkMode(),this.themingService.setDarkMode(!!this.settingsService.themeDarkEnabled),un.production&&ks.enableProductionMode(),Sle.debug("init"),this.translateService.addLangs(un.supportedLanguages.split(",")),this.settingsService.language?this.translateService.use(this.settingsService.languageCode):this.translateService.use(un.defaultLanguage),this.i18nService=new YF(this.translateService);let t=this.router.events.pipe(Fc(i=>i instanceof Mg));ul(this.translateService.onLangChange,t).pipe(Mn(()=>{let i=this.activatedRoute;for(;i.firstChild;)i=i.firstChild;return i}),Fc(i=>i.outlet==="primary"),tF(i=>i.data),Rl(this.destroy$)).subscribe(i=>{let s=i.title?`labels.text.${i.title}`:"APP_NAME";this.i18nService.translate(s).pipe(nF(1)).subscribe(d=>{this.titleService.setTitle(d)})});let n=[];if(localStorage.getItem("mifosXLocation")){let i=JSON.parse(localStorage.getItem("mifosXLocation")),s=i.length;n=s>100?i.slice(s-100):i}t.pipe(Rl(this.destroy$)).subscribe(()=>{n.push(this.router.url),localStorage.setItem("mifosXLocation",JSON.stringify(n))}),this.alertService.alertEvent.subscribe(i=>{this.snackBar.open(`${i.message}`,"Close",{duration:2e3,horizontalPosition:"right",verticalPosition:"top"})}),this.buttonConfig=new QF,localStorage.getItem("mifosXLanguage")||this.settingsService.setDefaultLanguage(),localStorage.getItem("mifosXDateFormat")||this.settingsService.setDateFormat("dd MMMM yyyy"),this.settingsService.setBusinessDate(this.dateUtils.formatDate(new Date,Ot.businessDateFormat)),this.settingsService.servers||this.settingsService.setServers(un.baseApiUrls.split(",")),localStorage.getItem("mifosXTenantIdentifier")||this.settingsService.setTenantIdentifier(un.fineractPlatformTenantId||"default"),this.settingsService.setTenantIdentifiers(un.fineractPlatformTenantIds.split(",")),un.session.timeout.idleTimeout>0&&(this.authSubscription=this.authenticationService.isAuthenticated$.subscribe(i=>{i?this.idle.start():this.idle.stop()}),this.idle.$onSessionTimeout.subscribe(()=>{this.alertService.alert({type:"Session timeout",message:this.translateService.instant("labels.text.Session timed out")}),this.dialog.open(v_),setTimeout(()=>{un.OIDC.oidcServerEnabled?this.authService.logout():this.logout()},1e3)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.authSubscription&&this.authSubscription.unsubscribe()}logout(){this.authenticationService.logout().subscribe(()=>this.router.navigate(["/login"],{replaceUrl:!0}))}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}onKeydownHandler(t){let n=this.buttonConfig.buttonCombinations.find(i=>i.ctrlKey===t.ctrlKey&&i.shiftKey===t.shiftKey&&i.altKey===t.altKey&&i.key===t.key);if(n!==void 0)switch(n.id){case"logout":this.logout();break;case"help":this.help();break;case"runReport":document.getElementById("runReport").click();break;case"cancel":let i=document.querySelectorAll("button"),s=Array.prototype.filter.call(i,function(f){return f.textContent.trim()==="Cancel"});s.length>0&&s[0].click();break;case"submit":let d=document.querySelectorAll("button"),u=Array.prototype.filter.call(d,function(f){return f.textContent.trim()==="Submit"});u.length>0&&u[0].click();break;default:this.router.navigate([n.route],{relativeTo:this.activatedRoute})}}static{this.\u0275fac=function(n){return new(n||e)(Zo(qe),Zo(Ie),Zo(BF),Zo(yi),Zo(GF),Zo(Fg),Zo(Ur),Zo(Ot),Zo(Wo),Zo(JF),Zo(Zt),Zo(B8),Zo(Ht),Zo(Ia))}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-web-app"]],hostVars:2,hostBindings:function(n,i){n&1&&R("keydown",function(d){return i.onKeydownHandler(d)},hF),n&2&&SF(i.cssClass)},standalone:!1,decls:1,vars:0,template:function(n,i){n&1&&b(0,"router-outlet")},dependencies:[ra],encapsulation:2,data:{animation:[Sr("opacityScale",[hr(":enter",[Lo({opacity:0,transform:"scale(.95)"}),fr("100ms ease-out",Lo({opacity:1,transform:"scale(1)"}))]),hr(":leave",[Lo({opacity:1,transform:"scale(1)"}),fr("75ms ease-in",Lo({opacity:0,transform:"scale(.95)"}))])])]}})}}return e})();var x_=(()=>{class e{constructor(){this.location=T(C0)}goBack(){this.location.back()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-not-found"]],decls:11,vars:6,consts:[[1,"not-found-container"],["id","title"],["id","subtitle",1,"f30"],[1,"back-button","m-t-20"],["type","button","mat-raised-button","",3,"click"],["icon","arrow-left",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1),c(2,"404"),r(),l(3,"div",2),c(4),p(5,"translate"),r(),l(6,"div",3)(7,"button",4),R("click",function(){return i.goBack()}),b(8,"fa-icon",5),c(9),p(10,"translate"),r()()()),n&2&&(a(4),h(m(5,2,"not_found_subtitle")),a(5),v(" ",m(10,4,"labels.buttons.Back")," "))},dependencies:[ue,fe,xe,ke,he],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.not-found-container[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#3498db;color:#fff}#title[_ngcontent-%COMP%]{font-size:160px;font-weight:bolder}"]})}}return e})();var wle=new ks("ErrorHandlerInterceptor"),Cf=(()=>{class e{constructor(){this.alertService=T(Ur),this.translate=T(yi)}intercept(t,n){return n.handle(t).pipe(ug(i=>this.handleError(i,t)))}handleError(t,n){let i=t.status,s=t.error.developerMessage||t.message;t.error.errors&&t.error.errors[0]&&(s=t.error.errors[0].defaultUserMessage||t.error.errors[0].developerMessage);let d=i===404&&n.url.includes("/clients/")&&n.url.includes("/images");if(!un.production&&!d&&wle.error(`Request Error: ${s}`),i===401||un.oauth.enabled&&i===400)this.alertService.alert({type:"Authentication Error",message:"Invalid User Details. Please try again!"});else if(i===403&&s==="The provided one time token is invalid")this.alertService.alert({type:"Invalid Token",message:"Invalid Token. Please try again!"});else if(i===400)this.alertService.alert({type:"Bad Request",message:s||"Invalid parameters were passed in the request!"});else if(i===403)this.alertService.alert({type:"Unauthorized Request",message:s||"You are not authorized for this request!"});else if(i===404){if(d)return K7;this.alertService.alert({type:this.translate.instant("error.resource.not.found"),message:s||"Resource does not exist!"})}else i===500?this.alertService.alert({type:"Internal Server Error",message:"Internal Server Error. Please try again later."}):i===501?this.alertService.alert({type:this.translate.instant("error.resource.notImplemented.type"),message:this.translate.instant("error.resource.notImplemented.message")}):this.alertService.alert({type:"Unknown Error",message:"Unknown Error. Please try again later."});throw t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Y8=Ds(vd());var m4=new ks("HttpCacheService"),b_=(()=>{class e{constructor(){this.cachePersistenceStorageKey="mifosXHttpCache",this.cachedData={},this.storage=null,this.loadCacheData()}setCacheData(t,n,i){this.cachedData[t]={lastUpdated:i||new Date,data:n},m4.debug(`Cache set for key: "${t}"`),this.saveCacheData()}getCacheData(t){let n=this.cachedData[t];return n?(m4.debug(`Cache hit for key: "${t}"`),n.data):null}getHttpCacheEntry(t){return this.cachedData[t]||null}clearCache(t){delete this.cachedData[t],m4.debug(`Cache cleared for key: "${t}"`),this.saveCacheData()}cleanCache(t){t?(0,Y8.each)(this.cachedData,(n,i)=>{t>=n.lastUpdated&&delete this.cachedData[i]}):this.cachedData={},this.saveCacheData()}setPersistence(t){this.cleanCache(),this.storage=t==="local"?window.localStorage:t==="session"?window.sessionStorage:null,this.loadCacheData()}saveCacheData(){this.storage&&(this.storage[this.cachePersistenceStorageKey]=JSON.stringify(this.cachedData))}loadCacheData(){let t=this.storage?this.storage[this.cachePersistenceStorageKey]:null;this.cachedData=t?JSON.parse(t):{}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var y_=(()=>{class e{constructor(t){this.httpCacheService=t,this.forceUpdate=!1}configure(t){let n=new e(this.httpCacheService);return t&&t.update&&(n.forceUpdate=!0),n}intercept(t,n){return t.method!=="GET"?n.handle(t):new of(i=>{let s=this.forceUpdate?null:this.httpCacheService.getCacheData(t.urlWithParams);s!==null?(i.next(new OT(s)),i.complete()):n.handle(t).subscribe(d=>{un.httpCacheEnabled&&d instanceof OT&&this.httpCacheService.setCacheData(t.urlWithParams,d),i.next(d)},d=>i.error(d),()=>i.complete())})}static{this.\u0275fac=function(n){return new(n||e)(hl(b_))}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var xf=(()=>{class e{constructor(){this.settingsService=T(Ot)}intercept(t,n){let i=this.settingsService.serverUrl;return/^\/(v[1-9][0-9]*\/).*$/.test(t.url)&&(i=this.settingsService.baseServerUrl),t.url.includes("/actuator/")&&(i=this.settingsService.serverHost),!t.url.includes("http:")&&!t.url.includes("https:")&&(t=t.clone({url:i+t.url})),n.handle(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var d4=class{constructor(o,t){this.next=o,this.interceptor=t}handle(o){return this.interceptor.intercept(o,this.next)}},u4=new u0("HTTP_DYNAMIC_INTERCEPTORS"),J8=(()=>{class e extends ko{constructor(t,n,i=[]){super(t),this.httpHandler=t,this.injector=n,this.interceptors=i,this.interceptors||(this.interceptors=[this.injector.get(xf),this.injector.get(Cf)])}cache(t){let n=this.injector.get(y_).configure({update:t});return this.addInterceptor(n)}skipErrorHandler(){return this.removeInterceptor(Cf)}disableApiPrefix(){return this.removeInterceptor(xf)}request(t,n,i){let s=this.interceptors.reduceRight((d,u)=>new d4(d,u),this.httpHandler);return new ko(s).request(t,n,i)}removeInterceptor(t){return new e(this.httpHandler,this.injector,this.interceptors.filter(n=>!(n instanceof t)))}addInterceptor(t){return new e(this.httpHandler,this.injector,this.interceptors.concat([t]))}static{this.\u0275fac=function(n){return new(n||e)(hl(Pg),hl(Cp),hl(u4,8))}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var sc=(()=>{class e{constructor(){this.requestsRunning=0,this.updateProgressBar=new bi}getRequestsRunning(){return this.requestsRunning}increase(){this.requestsRunning++,this.requestsRunning===1&&this.updateProgressBar.emit("indeterminate")}decrease(){this.requestsRunning>0&&(this.requestsRunning--,this.requestsRunning===0&&this.updateProgressBar.emit("none"))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Mle=new ks("AuthenticationGuard"),S_=(()=>{class e{constructor(){this.router=T(qe),this.authenticationService=T(Wo)}canActivate(){return this.authenticationService.isAuthenticated()?!0:(Mle.debug("User not authenticated, redirecting to login..."),this.authenticationService.logout(),this.router.navigate(["/login"],{replaceUrl:!0}),!1)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var K8=(()=>{class e{constructor(){this.progressBarService=T(sc)}intercept(t,n){return this.progressBarService.increase(),n.handle(t).pipe(Ys(()=>{this.progressBarService.decrease()}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var X8=(()=>{class e extends Dg{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig||t.data.reuse}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fg(e)))(i||e)}})()}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Lc=class{constructor(o,t,n){this.overlayRef=o,this.positionStrategy=t,this.config=n,this.afterClosedSubject=new Rr,n.disableClose||(this.overlayRef.backdropClick().subscribe(()=>{}),this.overlayRef.keydownEvents().pipe(Fc(i=>i.key==="Escape")).subscribe(()=>{}))}close(o){this.afterClosedSubject.next(o),this.afterClosedSubject.complete(),this.overlayRef.dispose()}afterClosed(){return this.afterClosedSubject.asObservable()}positionChanges(){return this.positionStrategy.positionChanges}};var Z8=(()=>{class e{constructor(){this.popoverRef=T(Lc),this.cd=T(es),this.subscription=new nf;let t=this.popoverRef;this.arrowSize=t.config.arrowSize,this.subscription=t.positionChanges().subscribe(n=>{let{offsetX:i,offsetY:s}=n.connectionPair;this.offsetTop=s>=0?s*-1:null,this.offsetLeft=i<0?i*-1:null,this.offsetBottom=s<0?s:null,this.offsetRight=i>=0?i:null,this.cd.detectChanges()})}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=md({type:e,selectors:[["","mifosxPopoverArrow",""]],hostVars:12,hostBindings:function(n,i){n&2&&vp("width",i.arrowSize,"px")("height",i.arrowSize,"px")("top",i.offsetTop,"px")("right",i.offsetRight,"px")("bottom",i.offsetBottom,"px")("left",i.offsetLeft,"px")}})}}return e})();var w_=(()=>{class e extends LF{attachComponentPortal(t){return this.portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this.portalOutlet.attachTemplatePortal(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fg(e)))(i||e)}})()}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-popover"]],viewQuery:function(n,i){if(n&1&&Ee(FT,7),n&2){let s;Te(s=Me())&&(i.portalOutlet=s.first)}},features:[_g],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["mifosxPopoverArrow","",1,"arrow"]],template:function(n,i){n&1&&(gl(0,0),b(1,"div",1))},dependencies:[ue,fe,FT,Z8],styles:["[_nghost-%COMP%]{position:relative;background:#fff;border-radius:8px;padding:20px}.arrow[_ngcontent-%COMP%]{position:absolute;background:inherit;z-index:-1}.center[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .center [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:50%}.top.left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.left [_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.center[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.center [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:top left;transform:rotate(45deg)}.top.right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.right [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:top right;transform:rotate(-45deg)}.bottom.left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.left [_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.center[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.center [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:bottom left;transform:rotate(-45deg)}.bottom.right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.right [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:bottom right;transform:rotate(45deg)}.center.left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .center.left [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:0%;top:50%;transform-origin:center left;transform:rotate(-45deg)}.center.right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .center.right [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:98%;top:50%;transform-origin:center left;transform:rotate(-45deg)}"]})}}return e})();var Dle=new u0("popover.data"),Ele={backdropClass:"",disableClose:!1,panelClass:"",arrowOffset:30,arrowSize:20},Wi=(()=>{class e{constructor(){this.overlay=T(VF),this.injector=T(Cp)}open(t,n,i,s,d={}){let u=Object.assign({},Ele,d),f=u.arrowSize,_=u.arrowOffset,C=f/2,x,y;i==="bottom"?y=[{overlayX:"center",overlayY:"top",originX:"center",originY:"bottom",panelClass:["top","center"],offsetY:C},{overlayX:"start",overlayY:"top",originX:"center",originY:"bottom",panelClass:["top","left"],offsetX:-1*_,offsetY:C},{overlayX:"end",overlayY:"top",originX:"center",originY:"bottom",panelClass:["top","right"],offsetX:_,offsetY:C}]:i==="top"?y=[{overlayX:"center",overlayY:"bottom",originX:"center",originY:"top",panelClass:["bottom","center"],offsetY:-1*C},{overlayX:"start",overlayY:"bottom",originX:"center",originY:"top",panelClass:["bottom","left"],offsetX:-1*_,offsetY:-1*C},{overlayX:"end",overlayY:"bottom",originX:"center",originY:"top",panelClass:["bottom","right"],offsetX:_,offsetY:-1*C}]:i==="right"?y=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",panelClass:["center","left"],offsetX:.5*_,offsetY:-1*C}]:i==="left"&&(y=[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",panelClass:["center","right"],offsetX:-.5*_,offsetY:-1*C}]),s===!0?x=!0:x=!1;let P=this.overlay.position().flexibleConnectedTo(n).withPush(!1).withFlexibleDimensions(!1).withPositions(y),S=this.overlay.create({hasBackdrop:x,backdropClass:d.backdropClass,panelClass:d.panelClass,positionStrategy:P,scrollStrategy:this.overlay.scrollStrategies.reposition()}),M=new Lc(S,P,u),D=S.attach(new AT(w_,null,Cp.create({parent:this.injector,providers:[{provide:Lc,useValue:M}]}))).instance;return t instanceof gF?D.attachTemplatePortal(new NF(t,null,{$implicit:d.data,popover:M})):D.attachComponentPortal(new AT(t,null,Cp.create({parent:this.injector,providers:[{provide:Dle,useValue:d.data},{provide:Lc,useValue:M}]}))),M}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qi=(()=>{class e{constructor(){this.showToolbar=!1,this.showToolbarAdmin=!1,this.showSideNav=!1,this.showSideNavChartofAccounts=!1,this.showBreadcrumbs=!1,this.showHome=!1,this.showHomeSearchActivity=!1,this.showCreateOffice=!1,this.showOfficeList=!1,this.showOfficeTable=!1,this.showOfficeForm=!1,this.showAddEditCurrency=!1,this.showCurrencyPage=!1,this.showCurrencyList=!1,this.showCurrencyForm=!1,this.showCreateHoliday=!1,this.showHolidayPage=!1,this.showHolidayFilter=!1,this.showCreateEmployee=!1,this.showEmployeeList=!1,this.showEmployeeTable=!1,this.showEmployeeForm=!1,this.showDefineWorkingDays=!1,this.showDatatables=!1,this.showDatatablesPage=!1,this.showDatatablesList=!1,this.showDatatablesForm=!1,this.showSystemCodes=!1,this.showSystemCodesPage=!1,this.showSystemCodesList=!1,this.showSystemCodesForm=!1,this.showRolesandPermission=!1,this.showRolesandPermissionPage=!1,this.showRolesandPermissionList=!1,this.showUsers=!1,this.showUsersList=!1,this.showUsersForm=!1,this.showMakerCheckerTable=!1,this.showMakerCheckerTablePage=!1,this.showMakerCheckerTableList=!1,this.showConfigurations=!1,this.showConfigurationsPage=!1,this.showConfigurationsList=!1,this.showSchedulerJobs=!1,this.showSchedulerJobsPage=!1,this.showSchedulerJobsList=!1,this.showChartofAccounts=!1,this.showChartofAccountsPage=!1,this.showChartofAccountsList=!1,this.showChartofAccountsForm=!1,this.showAccountsLinked=!1,this.showAccountsLinkedPage=!1,this.showAccountsLinkedList=!1,this.showMigrateOpeningBalances=!1,this.showClosingEntries=!1,this.showClosingEntriesPage=!1,this.showClosingEntriesList=!1,this.showCreateJournalEntries=!1,this.showCharges=!1,this.showChargesPage=!1,this.showChargesList=!1,this.showLoanProducts=!1,this.showLoanProductsPage=!1,this.showLoanProductsList=!1,this.showSavingsProducts=!1,this.showSavingsProductsPage=!1,this.showSavingsProductsList=!1,this.showShareProducts=!1,this.showShareProductsPage=!1,this.showShareProductsList=!1,this.showFixedDepositProducts=!1,this.showFixedDepositProductsPage=!1,this.showFixedDepositProductsList=!1,this.showRecurringDepositProducts=!1,this.showRecurringDepositProductsPage=!1,this.showRecurringDepositProductsList=!1,this.showManageFunds=!1,this.showManageReports=!1}closeConfigWizard(){this.showToolbar=!1,this.showToolbarAdmin=!1,this.showSideNav=!1,this.showSideNavChartofAccounts=!1,this.showBreadcrumbs=!1,this.showHome=!1,this.showHomeSearchActivity=!1,this.showCreateOffice=!1,this.showOfficeList=!1,this.showOfficeTable=!1,this.showOfficeForm=!1,this.showAddEditCurrency=!1,this.showCurrencyPage=!1,this.showCurrencyList=!1,this.showCurrencyForm=!1,this.showCreateHoliday=!1,this.showHolidayPage=!1,this.showHolidayFilter=!1,this.showCreateEmployee=!1,this.showEmployeeList=!1,this.showEmployeeTable=!1,this.showEmployeeForm=!1,this.showDefineWorkingDays=!1,this.showDatatables=!1,this.showDatatablesPage=!1,this.showDatatablesList=!1,this.showDatatablesForm=!1,this.showSystemCodes=!1,this.showSystemCodesPage=!1,this.showSystemCodesList=!1,this.showSystemCodesForm=!1,this.showRolesandPermission=!1,this.showRolesandPermissionPage=!1,this.showRolesandPermissionList=!1,this.showUsers=!1,this.showUsersList=!1,this.showUsersForm=!1,this.showMakerCheckerTable=!1,this.showMakerCheckerTablePage=!1,this.showMakerCheckerTableList=!1,this.showConfigurations=!1,this.showConfigurationsPage=!1,this.showConfigurationsList=!1,this.showSchedulerJobs=!1,this.showSchedulerJobsPage=!1,this.showSchedulerJobsList=!1,this.showChartofAccounts=!1,this.showChartofAccountsPage=!1,this.showChartofAccountsList=!1,this.showChartofAccountsForm=!1,this.showAccountsLinked=!1,this.showAccountsLinkedPage=!1,this.showAccountsLinkedList=!1,this.showMigrateOpeningBalances=!1,this.showClosingEntries=!1,this.showClosingEntriesPage=!1,this.showClosingEntriesList=!1,this.showCreateJournalEntries=!1,this.showCharges=!1,this.showChargesPage=!1,this.showChargesList=!1,this.showLoanProducts=!1,this.showLoanProductsPage=!1,this.showLoanProductsList=!1,this.showSavingsProducts=!1,this.showSavingsProductsPage=!1,this.showSavingsProductsList=!1,this.showShareProducts=!1,this.showShareProductsPage=!1,this.showShareProductsList=!1,this.showFixedDepositProducts=!1,this.showFixedDepositProductsPage=!1,this.showFixedDepositProductsList=!1,this.showRecurringDepositProducts=!1,this.showRecurringDepositProductsPage=!1,this.showRecurringDepositProductsList=!1,this.showManageFunds=!1,this.showManageReports=!1}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eB=[{path:"/clients",icon:"user",toolTip:"Clients"},{path:"/groups",icon:"users",toolTip:"Groups"},{path:"/centers",icon:"building",toolTip:"Centers"},{path:"/accounting",icon:"money-bill-alt",toolTip:"Accounting"},{path:"/reports",icon:"chart-bar",toolTip:"Reports"},{path:"/appusers",icon:"users",toolTip:"Users"},{path:"/organization",icon:"id-badge",toolTip:"Organization"},{path:"/system",icon:"cog",toolTip:"System"},{path:"/products",icon:"book",toolTip:"Products"},{path:"/templates",icon:"address-card",toolTip:"Templates"}];var Ile=["logo"],Ole=["templateLogo"],Ale=["chartOfAccounts"],Fle=["templateChartOfAccounts"],kle=(e,o)=>({"sidebar-full":e,"sidebar-compact":o}),Ble=()=>["/home"],Rle=()=>["/settings"],Nle=()=>["/dashboard"],Vc=()=>({exact:!1}),Lle=()=>["/navigation"],Vle=()=>["/checker-inbox-and-tasks/checker-inbox"],qle=()=>["/collections/collection-sheet"],zle=()=>["/collections/individual-collection-sheet"],Hle=()=>["/notifications"],Gle=()=>["/accounting/journal-entries/frequent-postings"],jle=()=>["/accounting/journal-entries/create"],$le=()=>["/accounting/chart-of-accounts"],Ule=e=>[e];function Wle(e,o){if(e&1&&(l(0,"div",34)(1,"button",53),b(2,"fa-icon",54),r()()),e&2){let t=o.$implicit,n=w();a(),g("matTooltipPosition",n.tooltipPosition)("matTooltip",t.toolTip)("routerLink",Nt(4,Ule,t.path)),a(),g("icon",t.icon)}}function Qle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(123);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.text.Home")),a(3),h(m(5,7,"labels.text.Welcome page logo from anywhere")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Yle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(121);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(125);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.User Panel")),a(3),h(m(5,7,"labels.text.Section Buttons")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Jle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(123);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(43),u=ve(127);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Frequently Accessed")),a(3),h(m(5,7,"labels.text.Shortcut to the frequently accessed components")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Kle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(125);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(51),u=ve(129);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Dashboard")),a(3),h(m(5,7,"labels.text.User Dashboard Component")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Xle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(43),u=ve(127);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(87),u=ve(131);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Navigation")),a(3),h(m(5,7,"labels.text.User Entity navigation screen")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Zle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(51),u=ve(129);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(95),u=ve(133);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Frequent Postings")),a(3),h(m(5,7,"labels.text.Shortcut accounting rules")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function ese(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(87),u=ve(131);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(103),u=ve(135);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Create Journal Entry")),a(3),h(m(5,7,"labels.text.Shortcut entry screen")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function tse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(95),u=ve(133);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Chart of Accounts")),a(3),h(m(5,7,"labels.text.Shortcut accounts screen")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var P_=(()=>{class e{constructor(){this.router=T(qe),this.dialog=T(Ht),this.authenticationService=T(Wo),this.settingsService=T(Ot),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.authService=T(Ia),this.tooltipPosition="after",this.mappedActivities=[],this.frequentActivities=eB,this.userActivity=JSON.parse(localStorage.getItem("mifosXLocation"))}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.setMappedAcitivites()}logout(){un.OIDC.oidcServerEnabled?this.authService.logout():this.authenticationService.logout().subscribe(()=>this.router.navigate(["/login"],{replaceUrl:!0}))}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}showKeyboardShortcuts(){this.dialog.open(ak).afterClosed().subscribe(n=>{})}getFrequentActivities(){let t={},n=this.userActivity?.length;for(;n;){let d=this.userActivity[--n];t[d]=(t[d]||0)+1}return Object.entries(t).sort((d,u)=>u[1]-d[1]).map(d=>d[0]).filter(d=>!["/","/login","/home","/dashboard"].includes(d)).slice(0,3)}setMappedAcitivites(){this.getFrequentActivities().forEach(n=>{n.includes("/clients")?this.pushActivity("/clients"):n.includes("/groups")?this.pushActivity("/groups"):n.includes("/centers")?this.pushActivity("/centers"):n.includes("/accounting")?this.pushActivity("/accounting"):n.includes("/reports")?this.pushActivity("/reports"):n.includes("/appusers")?this.pushActivity("/appusers"):n.includes("/organization")?this.pushActivity("/organization"):n.includes("/system")?this.pushActivity("/system"):n.includes("/products")?this.pushActivity("/products"):n.includes("/templates")&&this.pushActivity("/templates")}),this.mappedActivities.reverse()}pushActivity(t){let n=this.frequentActivities.find(i=>i.path===t);this.mappedActivities.includes(n)||this.mappedActivities.push(n)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSideNav===!0&&setTimeout(()=>{this.showPopover(this.templateLogo,this.logo.nativeElement,"bottom",!0)}),this.configurationWizardService.showSideNavChartofAccounts===!0&&setTimeout(()=>{this.showPopover(this.templateChartOfAccounts,this.chartOfAccounts.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showSideNav=!1,this.configurationWizardService.showSideNavChartofAccounts=!1,this.configurationWizardService.showBreadcrumbs=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}previousStep(){this.configurationWizardService.showSideNav=!1,this.configurationWizardService.showSideNavChartofAccounts=!1,this.configurationWizardService.showToolbarAdmin=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}get tenantIdentifier(){return!this.settingsService.tenantIdentifier||this.settingsService.tenantIdentifier===""?"default":this.settingsService.tenantIdentifier}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sidenav"]],viewQuery:function(n,i){if(n&1&&(Ee(Ile,5),Ee(Ole,5),Ee(Ale,5),Ee(Fle,5)),n&2){let s;Te(s=Me())&&(i.logo=s.first),Te(s=Me())&&(i.templateLogo=s.first),Te(s=Me())&&(i.chartOfAccounts=s.first),Te(s=Me())&&(i.templateChartOfAccounts=s.first)}},inputs:{sidenavCollapsed:"sidenavCollapsed"},decls:136,vars:151,consts:[["logo",""],["userPanel",""],["frequentlyAccessed",""],["dashboard",""],["navigation",""],["frequentPostings",""],["createJournalEntry",""],["chartOfAccounts",""],["templateLogo",""],["templateUserPanel",""],["templateFrequentlyAccessed",""],["templateDashboard",""],["templateNavigation",""],["templateFrequentPostings",""],["templateCreateJournalEntry",""],["templateChartOfAccounts",""],[3,"ngClass"],[1,"navigation-panel","layout-column"],[1,"app-brand",3,"routerLink"],["src","assets/images/MifosX_logo.png","alt","app-logo",1,"app-logo"],[1,"app-logo-text","text-muted"],[1,"app-user"],[1,"app-user-photo"],["src","assets/images/user_placeholder.png","alt","app-user-photo"],[1,"app-user-name","mb-05"],[1,"app-user-controls"],["mat-icon-button","",1,"xs-button",3,"matTooltip","routerLink"],["icon","cog"],["mat-icon-button","",1,"xs-button",3,"click","matTooltip"],["icon","sign-out-alt"],[1,"app-sidenav"],[1,"mt-1","mb-1","nav-item-sep"],[1,"text-muted","icon-menu-title"],[1,"icon-menu"],[1,"icon-menu-item"],[1,"nav-item-sep"],[1,"text-muted"],["routerLinkActive","active-menu",3,"routerLink","matTooltipPosition","matTooltip","routerLinkActiveOptions"],["matListIcon",""],["icon","tachometer-alt","size","sm"],["matLine",""],["icon","location-arrow","size","sm"],[1,"fa","fa-check"],[1,"fa","fa-tasks"],["icon","bell","size","sm"],["icon","sync","size","sm"],["icon","plus","size","sm"],["icon","sitemap","size","sm"],[3,"click","matTooltipPosition","matTooltip"],["icon","keyboard","size","sm"],[3,"matTooltipPosition","matTooltip"],["matListIcon","",3,"click"],["icon","question-circle","size","sm"],["mat-raised-button","",3,"matTooltipPosition","matTooltip","routerLink"],["size","lg",3,"icon"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",16)(1,"div",17)(2,"div",18),b(3,"img",19),l(4,"span",20,0),c(6),p(7,"translate"),r()(),l(8,"div",21)(9,"div",22),b(10,"img",23),r(),l(11,"span",24),c(12),r(),l(13,"div",25,1)(15,"button",26),p(16,"translate"),b(17,"fa-icon",27),r(),l(18,"button",28),p(19,"translate"),R("click",function(){return V(s),q(i.logout())}),b(20,"fa-icon",29),r()()(),l(21,"div",30)(22,"div",null,2)(24,"div",31),b(25,"mat-divider"),l(26,"span",32),c(27),p(28,"translate"),r()()(),l(29,"div",33),Se(30,Wle,3,6,"div",34,Pe),r(),l(32,"div",35),b(33,"mat-divider"),l(34,"span",36),c(35),p(36,"translate"),r()(),l(37,"mat-nav-list")(38,"mat-list-item",37),p(39,"translate"),l(40,"mat-icon",38),b(41,"fa-icon",39),r(),l(42,"a",40,3),c(44),p(45,"translate"),r()(),l(46,"mat-list-item",37),p(47,"translate"),l(48,"mat-icon",38),b(49,"fa-icon",41),r(),l(50,"a",40,4),c(52),p(53,"translate"),r()(),l(54,"mat-list-item",37),p(55,"translate"),l(56,"mat-icon",38),b(57,"i",42),r(),l(58,"a",40),c(59),p(60,"translate"),r()(),l(61,"mat-list-item",37),p(62,"translate"),l(63,"mat-icon",38),b(64,"i",43),r(),l(65,"a",40),c(66),p(67,"translate"),r()(),l(68,"mat-list-item",37),p(69,"translate"),l(70,"mat-icon",38),b(71,"i",43),r(),l(72,"a",40),c(73),p(74,"translate"),r()(),l(75,"mat-list-item",37),p(76,"translate"),l(77,"mat-icon",38),b(78,"fa-icon",44),r(),l(79,"a",40),c(80),p(81,"translate"),r()(),l(82,"mat-list-item",37),p(83,"translate"),l(84,"mat-icon",38),b(85,"fa-icon",45),r(),l(86,"a",40,5),c(88),p(89,"translate"),r()(),l(90,"mat-list-item",37),p(91,"translate"),l(92,"mat-icon",38),b(93,"fa-icon",46),r(),l(94,"a",40,6),c(96),p(97,"translate"),r()(),l(98,"mat-list-item",37),p(99,"translate"),l(100,"mat-icon",38),b(101,"fa-icon",47),r(),l(102,"a",40,7),c(104),p(105,"translate"),r()(),l(106,"mat-list-item",48),p(107,"translate"),R("click",function(){return V(s),q(i.showKeyboardShortcuts())}),l(108,"mat-icon",38),b(109,"fa-icon",49),r(),l(110,"a",40),c(111),p(112,"translate"),r()(),l(113,"mat-list-item",50),p(114,"translate"),l(115,"mat-icon",51),R("click",function(){return V(s),q(i.help())}),b(116,"fa-icon",52),r(),l(117,"a",40),c(118),p(119,"translate"),r()()()()()(),F(120,Qle,16,15,"ng-template",null,8,ti)(122,Yle,16,15,"ng-template",null,9,ti)(124,Jle,16,15,"ng-template",null,10,ti)(126,Kle,16,15,"ng-template",null,11,ti)(128,Xle,16,15,"ng-template",null,12,ti)(130,Zle,16,15,"ng-template",null,13,ti)(132,ese,16,15,"ng-template",null,14,ti)(134,tse,16,15,"ng-template",null,15,ti)}n&2&&(g("ngClass",Ja(128,kle,!i.sidenavCollapsed,i.sidenavCollapsed)),a(2),g("routerLink",oe(131,Ble)),a(4),h(m(7,74,"APP_NAME")),a(6),le(" ",i.tenantIdentifier," / ",i.username," "),a(3),g("matTooltip",Le(m(16,76,"tooltips.Settings")))("routerLink",oe(132,Rle)),a(3),g("matTooltip",Le(m(19,78,"tooltips.Sign Out"))),a(9),h(m(28,80,"labels.menus.Frequently Accessed")),a(3),we(i.mappedActivities),a(5),h(m(36,82,"labels.menus.Main Items")),a(3),g("matTooltip",Le(m(39,84,"tooltips.Dashboard")))("routerLink",oe(133,Nle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(134,Vc)),a(6),h(m(45,86,"labels.menus.Dashboard")),a(2),g("matTooltip",Le(m(47,88,"tooltips.Navigation")))("routerLink",oe(135,Lle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(136,Vc)),a(6),h(m(53,90,"labels.menus.Navigation")),a(2),g("matTooltip",Le(m(55,92,"tooltips.Checker Inbox and Tasks")))("routerLink",oe(137,Vle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(138,Vc)),a(5),h(m(60,94,"labels.menus.Checker Inbox and Tasks")),a(2),g("matTooltip",Le(m(62,96,"labels.menus.Collection Sheet")))("routerLink",oe(139,qle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(140,Vc)),a(5),h(m(67,98,"labels.menus.Collection Sheet")),a(2),g("matTooltip",Le(m(69,100,"tooltips.Individual Collection Sheet")))("routerLink",oe(141,zle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(142,Vc)),a(5),h(m(74,102,"labels.menus.Individual Collection Sheet")),a(2),g("matTooltip",Le(m(76,104,"tooltips.Notifications")))("routerLink",oe(143,Hle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(144,Vc)),a(5),h(m(81,106,"labels.menus.Notifications")),a(2),g("matTooltip",Le(m(83,108,"tooltips.Frequent Postings")))("routerLink",oe(145,Gle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(146,Vc)),a(6),h(m(89,110,"labels.menus.Frequent Postings")),a(2),g("matTooltip",Le(m(91,112,"tooltips.Create Journal Entry")))("routerLink",oe(147,jle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(148,Vc)),a(6),h(m(97,114,"labels.menus.Create Journal Entry")),a(2),g("matTooltip",Le(m(99,116,"tooltips.Chart Of Accounts")))("routerLink",oe(149,$le))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(150,Vc)),a(6),h(m(105,118,"labels.menus.Chart of Accounts")),a(2),g("matTooltip",Le(m(107,120,"tooltips.Keyboard Shortcuts")))("matTooltipPosition",i.tooltipPosition),a(5),h(m(112,122,"labels.menus.Keyboard Shortcuts")),a(2),g("matTooltip",Le(m(114,124,"tooltips.Help")))("matTooltipPosition",i.tooltipPosition),a(5),h(m(119,126,"labels.menus.Help")))},dependencies:[ue,co,fe,Oe,xe,wi,si,ke,Ri,pa,Vo,Na,Yo,ca,he],styles:[".sidebar-full[_ngcontent-%COMP%] .navigation-panel[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .navigation-panel[_ngcontent-%COMP%]{width:100%;height:100%;padding-top:20%;overflow-x:hidden}.sidebar-full[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}.sidebar-full[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;max-width:15rem;z-index:9999;cursor:pointer}.sidebar-full[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:auto;height:42px;margin-right:8px}.sidebar-full[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo-text[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo-text[_ngcontent-%COMP%]{width:auto;height:auto;font-size:2rem;font-weight:400}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%]{text-align:center;width:100%;padding:1rem 0 .4rem}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-photo[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-photo[_ngcontent-%COMP%]{width:72px;margin:0 auto 8px;height:72px;border:1px solid hsla(210,8%,51%,.13);padding:4px;border-radius:50%}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-name[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-name[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:300;margin-left:-2px}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .xs-button[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .xs-button[_ngcontent-%COMP%]{height:20px;width:20px;line-height:20px;margin:5px}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .text-muted[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .text-muted[_ngcontent-%COMP%]{color:#0000008a}.sidebar-full[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:16px 0 0 16px;display:block;font-size:12px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-evenly}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin:0 -24px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-title[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-title[_ngcontent-%COMP%]{padding-left:0;margin-left:-8px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%]{display:inline-block}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:auto;margin:4px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%]{padding:0;margin:1rem 0}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-icon[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-icon[_ngcontent-%COMP%]{height:30px;font-size:22px}.sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{margin:auto}.sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo-text[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}.sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%]{padding:8px 0 0;width:4rem}.sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}.sidebar-full[_ngcontent-%COMP%] .navigation-panel[_ngcontent-%COMP%]{padding-top:5%}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%]{flex-direction:row}.active-menu[_ngcontent-%COMP%]{background-color:#e0e0e0}"]})}}return e})();var ise=()=>({show:1}),nse=()=>({show:2}),ose=()=>({show:3}),ase=()=>({show:4}),rse=()=>({show:5}),lse=()=>({show:6}),sse=()=>({show:0}),T_=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-configuration-wizard"]],decls:36,vars:44,consts:[[1,"config-wizard-container"],["mat-dialog-title",""],[1,"config-wizard-content"],[1,"description"],[1,"buttons-grid"],["mat-raised-button","","color","primary",3,"mat-dialog-close"],[1,"progress-section"],[1,"progress-label"],["mode","determinate","value","0"],[1,"config-wizard-actions"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h1",1),c(2),p(3,"translate"),r(),l(4,"mat-dialog-content",2)(5,"p",3),c(6),p(7,"translate"),r(),l(8,"div",4)(9,"button",5),c(10),p(11,"translate"),r(),l(12,"button",5),c(13),p(14,"translate"),r(),l(15,"button",5),c(16),p(17,"translate"),r(),l(18,"button",5),c(19),p(20,"translate"),r(),l(21,"button",5),c(22),p(23,"translate"),r(),l(24,"button",5),c(25),p(26,"translate"),r()(),l(27,"div",6)(28,"h3",7),c(29),p(30,"translate"),r(),b(31,"mat-progress-bar",8),r()(),l(32,"mat-dialog-actions",9)(33,"button",10),c(34),p(35,"translate"),r()()()),n&2&&(a(2),h(m(3,17,"labels.heading.Welcome to Mifos")),a(4),h(m(7,19,"labels.heading.Configure Mifos Organization Needs")),a(3),g("mat-dialog-close",oe(37,ise)),a(),v(" ",m(11,21,"labels.buttons.Home Screen Tour")," "),a(2),g("mat-dialog-close",oe(38,nse)),a(),v(" ",m(14,23,"labels.buttons.Setup Organization")," "),a(2),g("mat-dialog-close",oe(39,ose)),a(),v(" ",m(17,25,"labels.buttons.Setup System")," "),a(2),g("mat-dialog-close",oe(40,ase)),a(),v(" ",m(20,27,"labels.buttons.Setup Accounting")," "),a(2),g("mat-dialog-close",oe(41,rse)),a(),v(" ",m(23,29,"labels.buttons.Setup Products")," "),a(2),g("mat-dialog-close",oe(42,lse)),a(),v(" ",m(26,31,"labels.buttons.Setup Funds and Reports")," "),a(4),v("",m(30,33,"labels.heading.Progress Bar"),": 0%"),a(4),g("mat-dialog-close",oe(43,sse)),a(),v(" ",m(35,35,"labels.buttons.Close Config. Wizard")," "))},dependencies:[ue,fe,xe,Wn,ho,Un,ns,Nn,he],styles:[".config-wizard-container[_ngcontent-%COMP%]{padding:24px;max-width:800px}.config-wizard-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 24px;text-align:center;font-size:28px;font-weight:500}.config-wizard-actions[_ngcontent-%COMP%]{padding:16px 0 0!important;margin:0!important;justify-content:center;border-top:1px solid #e0e0e0}.config-wizard-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:180px;height:40px}.config-wizard-content[_ngcontent-%COMP%]{padding:0!important;margin-bottom:24px}.config-wizard-content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{text-align:center;font-size:16px;margin:0 0 32px;color:#555}.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:32px}.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 calc(33.333% - 11px);min-width:180px;height:48px;text-transform:none}@media (width < 768px){.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 calc(50% - 8px)}}@media (width < 480px){.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 100%}}.config-wizard-content[_ngcontent-%COMP%] .progress-section[_ngcontent-%COMP%]{margin-top:32px}.config-wizard-content[_ngcontent-%COMP%] .progress-section[_ngcontent-%COMP%] .progress-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;margin:0 0 12px;color:#333}.config-wizard-content[_ngcontent-%COMP%] .progress-section[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{height:8px;border-radius:4px}"]})}}return e})();var cse=["institution"],pse=["templateInstitution"],mse=["appMenu"],dse=["templateAppMenu"],use=["notificationsTray"],tB=()=>["/accounting"],fse=()=>["/reports"],hse=()=>["/reports","Client"],gse=()=>["/reports","Loan"],_se=()=>["/reports","Savings"],Cse=()=>["/reports","Fund"],vse=()=>["/reports","Accounting"],xse=()=>["/organization"],bse=()=>["/system"],yse=()=>["/products"],Sse=()=>["/profile"],wse=()=>["/settings"];function Pse(e,o){if(e&1){let t=Y();l(0,"button",65),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.toggleSidenav())}),b(2,"fa-icon",66),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Toggle Hide/Open")))}function Tse(e,o){e&1&&b(0,"fa-icon",68)}function Mse(e,o){e&1&&b(0,"fa-icon",69)}function Dse(e,o){if(e&1){let t=Y();l(0,"button",67),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.toggleSidenavCollapse())}),E(2,Tse,1,0,"fa-icon",68),E(3,Mse,1,0,"fa-icon",69),r()}if(e&2){let t=w();g("matTooltip",Le(m(1,4,"tooltips.Toggle Collapse"))),a(2),I(t.sidenavCollapsed?-1:2),a(),I(t.sidenavCollapsed?3:-1)}}function Ese(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(12),u=ve(145);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.menus.Institution")),a(3),h(m(5,6,"labels.text.Button for individual account")),a(4),v(" ",m(9,8,"labels.buttons.Close")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function Ise(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(143);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(17),u=ve(147);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Accounting")),a(3),h(m(5,7,"labels.text.Button for accounting department")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Ose(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(12),u=ve(145);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(149);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Reports")),a(3),h(m(5,7,"labels.text.Dropdown system reports")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Ase(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(17),u=ve(147);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(151);return i.close(),q(s.showPopover(d,s.selfService))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Admin")),a(3),h(m(5,7,"labels.text.Setup organization including users")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Fse(e,o){if(e&1){let t=Y();l(0,"div",71)(1,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(2),p(3,"translate"),r(),l(4,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(149);return i.close(),q(s.showPopover(u,d))}),c(5),p(6,"translate"),r(),l(7,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(29),u=ve(153);return i.close(),q(s.showPopover(u,d))}),c(8),p(9,"translate"),r()()}e&2&&(a(2),v(" ",m(3,3,"labels.buttons.Close")," "),a(3),v(" ",m(6,5,"labels.buttons.Back")," "),a(3),v(" ",m(9,7,"labels.buttons.Next")," "))}function kse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(151);return i.close(),q(s.showPopover(d,s.selfService))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(35),u=ve(155);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Configuration Wizard")),a(3),h(m(5,7,"labels.text.Initial setup and application tour")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Bse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(29),u=ve(153);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(38),u=ve(157);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Global Search")),a(3),h(m(5,7,"labels.text.Navigate system selecting entity")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Rse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(35),u=ve(155);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(44),u=ve(159);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Language Selector")),a(3),h(m(5,7,"labels.text.Organization available languages")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Nse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(38),u=ve(157);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(48),u=ve(161);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Notifications")),a(3),h(m(5,7,"labels.text.This shows all the notifications.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Lse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(44),u=ve(159);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(51),u=ve(163);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Theme Picker")),a(3),h(m(5,7,"labels.text.Choose to work with a dark or bright background")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Vse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(48),u=ve(161);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Application Menu")),a(3),h(m(5,7,"labels.text.User settings and sign out button")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var M_=(()=>{class e{constructor(){this.breakpointObserver=T(Eg),this.router=T(qe),this.authenticationService=T(Wo),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.changeDetector=T(es),this.authService=T(Ia),this.isHandset$=this.breakpointObserver.observe(Ig.Handset).pipe(Mn(t=>t.matches)),this.sidenavCollapsed=!0,this.collapse=new bi}ngOnInit(){this.isHandset$.subscribe(t=>{t&&this.sidenavCollapsed&&this.toggleSidenavCollapse(!1)})}ngAfterContentChecked(){this.changeDetector.detectChanges()}toggleSidenav(){this.sidenav.toggle()}toggleSidenavCollapse(t){this.sidenavCollapsed=t||!this.sidenavCollapsed,this.collapse.emit(this.sidenavCollapsed)}logout(){un.OIDC.oidcServerEnabled?this.authService.logout():this.authenticationService.logout().subscribe(()=>this.router.navigate(["/login"],{replaceUrl:!0}))}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}showPopover(t,n){setTimeout(()=>this.popoverService.open(t,n,"bottom",!0,{}),200)}nextStep(){this.configurationWizardService.showToolbar=!1,this.configurationWizardService.showToolbarAdmin=!1,this.configurationWizardService.showSideNav=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}openDialog(){this.dialog.open(T_,{}).afterClosed().subscribe(n=>{if(n)switch(n.show){case 1:this.configurationWizardService.showToolbar=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"]);break;case 2:this.configurationWizardService.showCreateOffice=!0,this.router.navigate(["/organization"]);break;case 3:this.configurationWizardService.showDatatables=!0,this.router.navigate(["/system"]);break;case 4:this.configurationWizardService.showChartofAccounts=!0,this.router.navigate(["/accounting"]);break;case 5:this.configurationWizardService.showCharges=!0,this.router.navigate(["/products"]);break;case 6:this.configurationWizardService.showManageFunds=!0,this.router.navigate(["/organization"]);break;case 0:break;default:break}})}ngAfterViewInit(){this.configurationWizardService.showToolbar===!0&&setTimeout(()=>{this.showPopover(this.templateInstitution,this.institution.nativeElement)}),(this.configurationWizardService.showSideNav===!0||this.configurationWizardService.showSideNavChartofAccounts===!0)&&this.toggleSidenavCollapse(),this.configurationWizardService.showToolbarAdmin===!0&&setTimeout(()=>{this.showPopover(this.templateAppMenu,this.appMenu.nativeElement)})}navigateMenu(t){this.router.navigate([t])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-toolbar"]],viewQuery:function(n,i){if(n&1&&(Ee(cse,5),Ee(pse,5),Ee(mse,5),Ee(dse,5),Ee(use,5)),n&2){let s;Te(s=Me())&&(i.institution=s.first),Te(s=Me())&&(i.templateInstitution=s.first),Te(s=Me())&&(i.appMenu=s.first),Te(s=Me())&&(i.templateAppMenu=s.first),Te(s=Me())&&(i.notificationsTray=s.first)}},inputs:{sidenav:"sidenav"},outputs:{collapse:"collapse"},decls:164,vars:120,consts:[["institution","","institutionMenuTrigger","matMenuTrigger"],["accounting",""],["reports","","reportsMenuTrigger","matMenuTrigger"],["admin","","adminMenuTrigger","matMenuTrigger"],["configWizard",""],["globalSearch",""],["languageSelector",""],["notifications",""],["notificationsTray",""],["themeToggle",""],["appMenu",""],["languageMenu","matMenu"],["institutionMenu","matMenu"],["reportsMenu","matMenu"],["adminMenu","matMenu"],["applicationMenu","matMenu"],["templateInstitution",""],["templateAccounting",""],["templateReports",""],["templateAdmin",""],["templateSelfService",""],["templateConfigWizard",""],["templateGlobalSearch",""],["templateLanguageSelector",""],["templateNotifications",""],["templateThemePicker",""],["templateAppMenu",""],["color","primary","id","mifosx-toolbar",1,"layout-row"],["mat-icon-button","","tabindex","0",3,"matTooltip"],["mat-icon-button","","tabindex","0",1,"hide-lt-md",3,"matTooltip"],[1,"tab-nav-bar"],["tabindex","0",1,"tab-link",3,"matMenuTriggerFor"],["icon","university","size","lg",1,"mr-05"],[1,"hide-lt-md"],["tabindex","0",1,"tab-link","accounting-link",3,"routerLink"],["icon","money-bill-alt","size","lg",1,"mr-05"],["icon","chart-bar","size","lg",1,"mr-05"],["icon","shield-alt","size","lg",1,"mr-05"],["tabindex","0",1,"tab-link",3,"click"],["icon","info","size","lg",1,"mr-05"],[1,"toolbar-spacer"],[1,"white-text-search"],["tabindex","0"],[1,"white-text-language"],["tabindex","0",1,"ml-1","language","hide-lt-md"],["mat-icon-button","","tabindex","0",3,"matMenuTriggerFor"],[1,"lg-icon"],["tabindex","0",1,"hide-lt-md"],["mat-icon-button","","tabindex","0",1,"ml-1","img-button",3,"matMenuTriggerFor"],["src","assets/images/user_placeholder.png",3,"alt"],[1,"ml-1","language"],[3,"overlapTrigger"],["mat-menu-item","","routerLink","/clients","tabindex","0"],["mat-menu-item","","routerLink","/groups","tabindex","0"],["mat-menu-item","","routerLink","/centers","tabindex","0"],["mat-menu-item","","tabindex","0",3,"routerLink"],["mat-menu-item","","tabindex","0",3,"matMenuTriggerFor"],["mat-menu-item","","tabindex","0",3,"click"],["mat-menu-item","","routerLink","/templates","tabindex","0"],["matListIcon",""],["icon","question-circle","size","sm"],["icon","user","size","sm"],["icon","cog","size","sm"],["mat-menu-item","","id","logout","tabindex","0",3,"click"],["icon","sign-out-alt","size","sm"],["mat-icon-button","","tabindex","0",3,"click","matTooltip"],["icon","bars","size","lg"],["mat-icon-button","","tabindex","0",1,"hide-lt-md",3,"click","matTooltip"],["icon","chevron-left"],["icon","chevron-right"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-toolbar",27),E(1,Pse,3,4,"button",28),E(2,Dse,4,6,"button",29),l(3,"div",30)(4,"a",31,0),b(7,"fa-icon",32),c(8),p(9,"translate"),r(),l(10,"span",33)(11,"a",34,1),b(13,"fa-icon",35),c(14),p(15,"translate"),r(),l(16,"a",31,2),b(19,"fa-icon",36),c(20),p(21,"translate"),r(),l(22,"a",31,3),b(25,"fa-icon",37),c(26),p(27,"translate"),r(),l(28,"a",38,4),R("click",function(){return V(s),q(i.openDialog())}),b(30,"fa-icon",39),c(31),p(32,"translate"),r()()(),b(33,"span",40),l(34,"div",41,5),b(36,"mifosx-search-tool",42),r(),l(37,"div",43,6),b(39,"mifosx-language-selector",44),r(),l(40,"button",45)(41,"mat-icon",46),c(42,"language"),r()(),l(43,"div",null,7),b(45,"mifosx-notifications-tray",47,8),r(),l(47,"div",null,9),b(49,"mifosx-theme-toggle",42),r(),l(50,"div",null,10)(52,"button",48),b(53,"img",49),p(54,"translate"),r()()(),l(55,"mat-menu",null,11),b(57,"mifosx-language-selector",50),r(),l(58,"mat-menu",51,12)(60,"button",52),c(61),p(62,"translate"),r(),l(63,"button",53),c(64),p(65,"translate"),r(),l(66,"button",54),c(67),p(68,"translate"),r(),l(69,"span",33)(70,"button",55),c(71),p(72,"translate"),r(),l(73,"button",56),c(74),p(75,"translate"),r(),l(76,"button",56),c(77),p(78,"translate"),r()()(),l(79,"mat-menu",51,13)(81,"button",55),c(82),p(83,"translate"),r(),l(84,"button",55),c(85),p(86,"translate"),r(),l(87,"button",55),c(88),p(89,"translate"),r(),l(90,"button",55),c(91),p(92,"translate"),r(),l(93,"button",55),c(94),p(95,"translate"),r(),l(96,"button",55),c(97),p(98,"translate"),r()(),l(99,"mat-menu",51,14)(101,"button",57),R("click",function(){return V(s),q(i.navigateMenu("/appusers"))}),c(102),p(103,"translate"),r(),l(104,"button",55),c(105),p(106,"translate"),r(),l(107,"button",55),c(108),p(109,"translate"),r(),l(110,"button",55),c(111),p(112,"translate"),r(),l(113,"button",58),c(114),p(115,"translate"),r()(),l(116,"mat-menu",51,15)(118,"button",57),R("click",function(){return V(s),q(i.help())}),l(119,"mat-icon",59),b(120,"fa-icon",60),r(),l(121,"span"),c(122),p(123,"translate"),r()(),l(124,"button",55)(125,"mat-icon"),b(126,"fa-icon",61),r(),l(127,"span"),c(128),p(129,"translate"),r()(),l(130,"button",55)(131,"mat-icon"),b(132,"fa-icon",62),r(),l(133,"span"),c(134),p(135,"translate"),r()(),l(136,"button",63),R("click",function(){return V(s),q(i.logout())}),l(137,"mat-icon"),b(138,"fa-icon",64),r(),l(139,"span"),c(140),p(141,"translate"),r()()(),F(142,Ese,13,12,"ng-template",null,16,ti)(144,Ise,16,15,"ng-template",null,17,ti)(146,Ose,16,15,"ng-template",null,18,ti)(148,Ase,16,15,"ng-template",null,19,ti)(150,Fse,10,9,"ng-template",null,20,ti)(152,kse,16,15,"ng-template",null,21,ti)(154,Bse,16,15,"ng-template",null,22,ti)(156,Rse,16,15,"ng-template",null,23,ti)(158,Nse,16,15,"ng-template",null,24,ti)(160,Lse,16,15,"ng-template",null,25,ti)(162,Vse,16,15,"ng-template",null,26,ti)}if(n&2){let s=ve(56),d=ve(59),u=ve(80),f=ve(100),_=ve(117);a(),I(i.sidenavCollapsed?-1:1),a(),I(i.sidenav.opened?2:-1),a(2),g("matMenuTriggerFor",d),a(4),v(" ",m(9,53,"labels.menus.Institution")," "),a(3),g("routerLink",oe(107,tB)),a(3),v(" ",m(15,55,"labels.menus.Accounting")," "),a(2),g("matMenuTriggerFor",u),a(4),v(" ",m(21,57,"labels.menus.Reports")," "),a(2),g("matMenuTriggerFor",f),a(4),v(" ",m(27,59,"labels.menus.Admin")," "),a(5),v(" ",m(32,61,"labels.menus.Configuration Wizard")," "),a(9),g("matMenuTriggerFor",s),a(12),g("matMenuTriggerFor",_),a(),g("alt",m(54,63,"labels.headings.User Profile")),a(5),g("overlapTrigger",!1),a(3),h(m(62,65,"labels.menus.Clients")),a(3),h(m(65,67,"labels.menus.Groups")),a(3),h(m(68,69,"labels.menus.Centers")),a(3),g("routerLink",oe(108,tB)),a(),v(" ",m(72,71,"labels.menus.Accounting")," "),a(2),g("matMenuTriggerFor",u),a(),v(" ",m(75,73,"labels.menus.Reports")," "),a(2),g("matMenuTriggerFor",f),a(),h(m(78,75,"labels.menus.Admin")),a(2),g("overlapTrigger",!1),a(2),g("routerLink",oe(109,fse)),a(),h(m(83,77,"labels.menus.All")),a(2),g("routerLink",oe(110,hse)),a(),v(" ",m(86,79,"labels.menus.Clients")," "),a(2),g("routerLink",oe(111,gse)),a(),h(m(89,81,"labels.menus.Loans")),a(2),g("routerLink",oe(112,_se)),a(),v(" ",m(92,83,"labels.menus.Savings")," "),a(2),g("routerLink",oe(113,Cse)),a(),h(m(95,85,"labels.menus.Funds")),a(2),g("routerLink",oe(114,vse)),a(),v(" ",m(98,87,"labels.menus.Accounting")," "),a(2),g("overlapTrigger",!1),a(3),h(m(103,89,"labels.menus.Users")),a(2),g("routerLink",oe(115,xse)),a(),v(" ",m(106,91,"labels.menus.Organization")," "),a(2),g("routerLink",oe(116,bse)),a(),h(m(109,93,"labels.menus.System")),a(2),g("routerLink",oe(117,yse)),a(),h(m(112,95,"labels.menus.Products")),a(3),h(m(115,97,"labels.menus.Templates")),a(2),g("overlapTrigger",!1),a(6),h(m(123,99,"labels.menus.Help")),a(2),g("routerLink",oe(118,Sse)),a(4),h(m(129,101,"labels.menus.Profile")),a(2),g("routerLink",oe(119,wse)),a(4),h(m(135,103,"labels.menus.Settings")),a(6),h(m(141,105,"labels.menus.Sign Out"))}},dependencies:[ue,fe,Oe,xe,Ck,wi,si,ke,nc,ok,Lg,Yo,nk,Jg,ic,tc,he],styles:["#mifosx-toolbar[_ngcontent-%COMP%]{position:relative;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}#mifosx-toolbar[_ngcontent-%COMP%] .tab-nav-bar[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 1rem}#mifosx-toolbar[_ngcontent-%COMP%] .tab-link[_ngcontent-%COMP%]{min-width:auto;padding:15px 1rem;text-decoration:none;font-weight:500;font-size:14px;color:#ffffffb3;cursor:pointer}#mifosx-toolbar[_ngcontent-%COMP%] .tab-link[_ngcontent-%COMP%]:hover{color:#fff}#mifosx-toolbar[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{max-width:400px;width:100%;font-size:1rem}#mifosx-toolbar[_ngcontent-%COMP%] .language[_ngcontent-%COMP%]{min-width:80px;width:80px;font-size:.875rem;margin-top:.375rem}#mifosx-toolbar[_ngcontent-%COMP%] .img-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%}#mifosx-toolbar[_ngcontent-%COMP%] .ml-1[_ngcontent-%COMP%]{margin-left:1rem}#mifosx-toolbar[_ngcontent-%COMP%] .mr-1[_ngcontent-%COMP%]{margin-right:1rem}.lg-icon[_ngcontent-%COMP%]{display:none}@media (width <= 959px){.lg-icon[_ngcontent-%COMP%]{display:block;margin-left:5px}}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.white-text-language[_ngcontent-%COMP%] mifosx-language-selector{color:#fff!important}.white-text-language[_ngcontent-%COMP%] mifosx-language-selector *{background-color:transparent!important;color:#fff!important}.white-text-search[_ngcontent-%COMP%] mifosx-search-tool{color:#fff!important}.white-text-search[_ngcontent-%COMP%] mifosx-search-tool *{background-color:transparent!important;color:#fff!important;margin-bottom:0}"]})}}return e})();var qse=["breadcrumb"],zse=["templateBreadcrumb"];function Hse(e,o){if(e&1&&(l(0,"a",8),c(1),r()),e&2){let t=w(2).$implicit,n=w(2);g("routerLink",t.url),a(),h(n.getTranslate(t.label))}}function Gse(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(2).$implicit,n=w(2);a(),h(n.getTranslate(t.label))}}function jse(e,o){if(e&1&&(l(0,"span",7),E(1,Hse,2,2,"a",8),E(2,Gse,2,1,"span"),r()),e&2){let t=w().$implicit;a(),I(t.url?1:-1),a(),I(t.url?-1:2)}}function $se(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit,n=w(2);a(),h(n.getTranslate(t.label))}}function Use(e,o){if(e&1&&(l(0,"li",6),E(1,jse,3,2,"span",7),E(2,$se,2,1,"span"),r()),e&2){let t=o.$index,n=o.$count;a(),I(t!==n-1?1:-1),a(),I(t===n-1?2:-1)}}function Wse(e,o){if(e&1&&(l(0,"span",5),Se(1,Use,3,2,"li",6,Pe),r()),e&2){let t=w();a(),we(t.breadcrumbs)}}function Qse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",9),c(4),p(5,"translate"),r(),l(6,"div",10)(7,"button",11),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",12),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",12),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Breadcrumbs")),a(3),h(m(5,7,"labels.text.User's current location")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var iB="breadcrumb",f4="routeParamBreadcrumb",h4="routeResolveBreadcrumb",nB="addBreadcrumbLink",D_=(()=>{class e{constructor(){this.activatedRoute=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.translateService=T(yi),this.generateBreadcrumbs()}generateBreadcrumbs(){this.router.events.pipe(Fc(n=>n instanceof Mg)).subscribe(()=>{this.breadcrumbs=[];let n=this.activatedRoute.root,i="";for(;n.children.length>0;){let s=n.children,d,u;s.forEach(f=>{if(n=f,d=!1,f.outlet!=="primary")return;let _=f.snapshot.url.map(y=>y.path).join("/");if(i+=`/${_}`,i==="/"&&(d="Home"),f.routeConfig&&f.routeConfig.data){if(f.snapshot.data.hasOwnProperty(h4)&&f.snapshot.data[h4])d=f.snapshot.data,f.snapshot.data[h4].forEach(y=>{d=d[y]});else if(f.snapshot.data.hasOwnProperty(f4)&&f.snapshot.paramMap.get(f.snapshot.data[f4])){d=f.snapshot.paramMap.get(f.snapshot.data[f4]);let y=f.snapshot.data;if(y.breadcrumb==="Clients")d=this.printableValue(y.clientViewData.displayName),i+="/general";else if(y.breadcrumb==="Groups")d=y.groupViewData.name;else if(y.breadcrumb==="Centers")d=y.centerViewData.name;else if(y.breadcrumb==="Loans")d=this.printableValue(y.loanDetailsData.loanProductName)+" ("+y.loanDetailsData.accountNo+")";else if(y.breadcrumb==="Savings"){let P=y.savingsAccountData?.savingsProductName??"",S=y.savingsAccountData?.accountNo??"";d=this.printableValue(P)+(S?" ("+S+")":"")}else y.breadcrumb==="Fixed Deposits"?d=this.printableValue(y.fixedDepositsAccountData.depositProductName)+" ("+y.fixedDepositsAccountData.accountNo+")":y.breadcrumb==="Loan Products"?d=this.printableValue(y.loanProduct.name):y.breadcrumb==="Charges"?d=y.loansAccountCharge.name:y.breadcrumb==="Saving Products"?d=y.savingProduct.name:y.breadcrumb==="Share Products"?d=y.shareProduct.name:y.breadcrumb==="Fixed Deposit Products"?d=y.fixedDepositProduct.name:y.breadcrumb==="Recurring Deposit Products"?d=y.recurringDepositProduct.name:y.breadcrumb==="Floating Rates"?d=y.floatingRate.name:y.breadcrumb==="Tax Components"?d=y.taxComponent.name:y.breadcrumb==="Tax Groups"&&(d=y.taxGroup.name)}else f.snapshot.data.hasOwnProperty(iB)&&(d=f.snapshot.data[iB]);f.snapshot.data.hasOwnProperty(nB)?u=f.snapshot.data[nB]:u=i}if(u!==void 0&&u.length>8&&u.search("/clients/")>0){let P=u.replace("/general/","/");P=P.replace("//","/"),P+="/general",P=P.replace("/general/general","/general"),u=P}let x={label:d,url:u};d&&this.breadcrumbs.push(x)})}})}printableValue(t){return t.length<=30?t:t.substring(0,30)+"..."}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showBreadcrumbs===!0&&setTimeout(()=>{this.showPopover(this.templateBreadcrumb,this.breadcrumb.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showBreadcrumbs=!1,this.configurationWizardService.showHome=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}previousStep(){this.configurationWizardService.showBreadcrumbs=!1,this.configurationWizardService.showSideNavChartofAccounts=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}getTranslate(t){let n="labels.text."+t,i=this.translateService.instant(n);return i!==n?i:t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-breadcrumb"]],viewQuery:function(n,i){if(n&1&&(Ee(qse,5),Ee(zse,5)),n&2){let s;Te(s=Me())&&(i.breadcrumb=s.first),Te(s=Me())&&(i.templateBreadcrumb=s.first)}},decls:8,vars:2,consts:[["breadcrumb",""],["templateBreadcrumb",""],[1,"breadcrumb-wrapper"],[1,"breadcrumb"],[1,"breadcrumb-title"],[1,"separator"],[1,"breadcrumb-label"],[1,"breadcrumb-link"],[3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"nav",2)(1,"ul",3)(2,"span",4,0),c(4),r(),E(5,Wse,3,0,"span",5),r()(),F(6,Qse,16,15,"ng-template",null,1,ti)),n&2&&(a(4),h(i.getTranslate(i.breadcrumbs[(i.breadcrumbs==null?null:i.breadcrumbs.length)-1].label)),a(),I(i.breadcrumbs.length-1!==0?5:-1))},dependencies:[ue,fe,Oe,xe,he],styles:['body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.breadcrumb-wrapper[_ngcontent-%COMP%]{margin:0 auto;max-width:84rem;width:90%;word-wrap:break-word}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%]{list-style:none;padding:0;margin:1.5rem 0;line-height:40px}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:400}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]:before{content:"";border:1.5px solid #d7dada;margin:0 .6rem;font-size:1.25rem;font-weight:400}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%]{display:inline;font-size:1rem}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%] .breadcrumb-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#4461e2}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%] .breadcrumb-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%] .breadcrumb-link[_ngcontent-%COMP%]:after{content:"/";margin:0 .4rem}']})}}return e})();var E_=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-content"]],decls:2,vars:0,consts:[["id","push"]],template:function(n,i){n&1&&b(0,"router-outlet")(1,"div",0)},dependencies:[ue,fe,ra],styles:["mifosx-content[_ngcontent-%COMP%]{min-height:100%;height:auto!important;height:100%;margin:0 auto -30px}#push[_ngcontent-%COMP%]{height:30px}"]})}}return e})();var Yse=(e,o)=>({"sidebar-full":e,"sidebar-compact":o});function Jse(e,o){e&1&&(l(0,"div"),b(1,"div",7),r())}var I_=(()=>{class e{constructor(){this.breakpointObserver=T(Eg),this.progressBarService=T(sc),this.cdr=T(es),this.isHandset$=this.breakpointObserver.observe(Ig.Handset).pipe(Mn(t=>t.matches)),this.sidenavCollapsed=!0}ngOnInit(){this.progressBar$=this.progressBarService.updateProgressBar.subscribe(t=>{this.progressBarMode=t,this.cdr.detectChanges()})}toggleCollapse(t){this.sidenavCollapsed=t,this.cdr.detectChanges()}ngOnDestroy(){this.progressBar$&&this.progressBar$.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-shell"]],decls:13,vars:17,consts:[["sidenav",""],["id","mifosx-shell-container","autosize",""],[1,"sidebar-panel",3,"ngClass","mode","opened"],[3,"sidenavCollapsed"],[1,"sidenav"],[3,"collapse","sidenav"],[3,"styleClass"],[1,"loading"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-sidenav-container",1)(1,"mat-sidenav",2,0),p(3,"async"),p(4,"async"),p(5,"async"),b(6,"mifosx-sidenav",3),r(),l(7,"mat-sidenav-content",4)(8,"mifosx-toolbar",5),R("collapse",function(u){return V(s),q(i.toggleCollapse(u))}),r(),E(9,Jse,2,0,"div"),b(10,"mifosx-breadcrumb")(11,"mifosx-content")(12,"mifosx-footer",6),r()()}if(n&2){let s=ve(2);a(),g("ngClass",Ja(14,Yse,!i.sidenavCollapsed,i.sidenavCollapsed))("mode",m(3,8,i.isHandset$)?"over":"side")("opened",m(4,10,i.isHandset$)===!1),Dn("role",m(5,12,i.isHandset$)?"dialog":"navigation"),a(5),g("sidenavCollapsed",i.sidenavCollapsed),a(2),g("sidenav",s),a(),I(i.progressBarMode!=="none"?9:-1),a(3),g("styleClass","main-page")}},dependencies:[ue,co,fe,dk,mk,P_,pk,M_,D_,E_,Ng,Ka],styles:["#mifosx-shell-container[_ngcontent-%COMP%]{max-width:100%;height:100vh}#mifosx-shell-container[_ngcontent-%COMP%] .sidebar-panel[_ngcontent-%COMP%]{min-height:100vh;overflow:auto;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}#mifosx-shell-container[_ngcontent-%COMP%] .sidebar-full[_ngcontent-%COMP%]{width:15rem}#mifosx-shell-container[_ngcontent-%COMP%] .sidebar-compact[_ngcontent-%COMP%]{width:4rem}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:760px}50%{left:1330px}66.7%{left:760px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:190px}16.7%{width:760px}33.3%{width:760px}50%{width:190px}66.7%{width:760px}83.3%{width:760px}to{width:190px}}"]})}}return e})();var oB=(()=>{class e{constructor(){let t=T(e,{optional:!0,skipSelf:!0});if(t)throw new Error(`${t} has already been loaded. Import Core module in the AppModule only.`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[Wo,S_,cf,{provide:bp,useClass:cf,multi:!0},b_,{provide:bp,useClass:xf,multi:!0},{provide:bp,useClass:Cf,multi:!0},{provide:bp,useClass:y_,multi:!0},{provide:ko,useClass:J8,deps:[Pg,Cp,[new mF,u4]]},sc,{provide:bp,useClass:K8,multi:!0},{provide:Dg,useClass:X8},FF(kF())],imports:[oo,yp,gn,I_,P_,M_,D_,E_,oo]})}}return e})();var _o=class{static withShell(o){return{path:"",component:I_,children:o,canActivate:[S_]}}};var O_=[{activity:"client",path:"/clients"},{activity:"groups",path:"/groups"},{activity:"centers",path:"/centers"},{activity:"accounting",path:"/accounting"},{activity:"users",path:"/appusers"},{activity:"organization",path:"/organization"},{activity:"system",path:"/system"},{activity:"templates",path:"/templates"},{activity:"create group",path:""},{activity:"create center",path:"/centers/create"},{activity:"configuration",path:"/system/global-configurations"},{activity:"create loan product",path:"/products/loan-products/create"},{activity:"create saving product",path:"/products/saving-products/create"},{activity:"roles",path:"/system/roles-and-permissions"},{activity:"add role",path:"/system/roles-and-permissions/add"},{activity:"configure maker checker tasks",path:""},{activity:"loan products",path:"/products/loan-products"},{activity:"charges",path:"/products/charges"},{activity:"saving products",path:"/products/saving-products"},{activity:"offices",path:"/organization/offices"},{activity:"create office",path:"/organization/offices/create"},{activity:"currency configurations",path:"/organization/currencies"},{activity:"user settings",path:""},{activity:"employees",path:"/organization/employees"},{activity:"create employee",path:"/organization/employees/create"},{activity:"manage funds",path:""},{activity:"chart of accounts",path:"/accounting/chart-of-accounts"},{activity:"frequent postings",path:"/accounting/frequent-postings"},{activity:"journal entry",path:"/accounting/journal-entries"},{activity:"search transaction",path:""},{activity:"account closure",path:"/accounting/closing-entries"},{activity:"accounting rules",path:"/accounting/accounting-rules"},{activity:"add accounting rule",path:"/accounting/accounting-rules/create"},{activity:"data tables",path:"/system/data-tables"},{activity:"create data table",path:"/system/data-tables/create"},{activity:"add code",path:"/system/codes/create"},{activity:"jobs",path:"/system/scheduler-jobs"},{activity:"codes",path:"/system/codes"},{activity:"reports",path:"/reports"},{activity:"create report",path:""},{activity:"holidays",path:"/organization/holidays"},{activity:"create holiday",path:""},{activity:"add member",path:"/clients/:clientId/family-members/add"},{activity:"create charge",path:""},{activity:"enter collection sheet",path:""},{activity:"product mix",path:"/products/products-mix"},{activity:"add product mix",path:""},{activity:"bulk loan reassignment",path:"/accounting/closing-entries/create"},{activity:"audit",path:"/products/audit-trails"},{activity:"create accounting closure",path:""},{activity:"navigation",path:"/navigation"},{activity:"",path:"home"}];var A_=(()=>{class e{constructor(){this.dialogRef=T(eo),this.title=un.warningDialog.title,this.content=un.warningDialog.content,this.buttonText=un.warningDialog.buttonText}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-warning-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content"),c(4),p(5,"translate"),r(),l(6,"mat-dialog-actions")(7,"button",1),c(8),p(9,"translate"),r()()),n&2&&(a(),h(m(2,3,"labels.text."+i.title)),a(3),h(m(5,5,"labels.text.Warning message")),a(4),h(m(9,7,"labels.buttons."+i.buttonText)))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var Kse=()=>({nextStep:!1}),Xse=()=>({nextStep:!0}),ss=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po);let t=this.data;this.stepPercentage=t.stepPercentage,this.nextStepName=t.nextStepName,this.previousStepName=t.previousStepName}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-next-step-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],[1,"mw600"],["mode","determinate",3,"value"],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"h3",1),c(5),p(6,"translate"),r(),l(7,"h3"),c(8),p(9,"translate"),r(),l(10,"h3"),c(11),p(12,"translate"),r(),b(13,"mat-progress-bar",2),r(),l(14,"mat-dialog-actions")(15,"button",3),c(16),p(17,"translate"),r(),l(18,"button",4),c(19),r()()),n&2&&(a(),h(m(2,11,"labels.heading.Welcome to Mifos")),a(4),h(m(6,13,"labels.heading.Configure Mifos Organization Needs")),a(3),le("",m(9,15,"labels.heading.Successfully completed")," ",i.previousStepName),a(3),le("",m(12,17,"labels.heading.Progress Bar")," : ",i.stepPercentage,"%"),a(2),g("value",i.stepPercentage),a(2),g("mat-dialog-close",oe(21,Kse)),a(),v(" ",m(17,19,"labels.buttons.Close Config. Wizard")," "),a(2),g("mat-dialog-close",oe(22,Xse)),a(),h(i.nextStepName))},dependencies:[ue,fe,xe,Wn,ho,ns,Nn,Un,he],encapsulation:2})}}return e})();var Zse=["buttonDashboard"],ece=["templateButtonDashboard"],tce=["searchActivity"],ice=["templateSearchActivity"],nce=()=>["/dashboard"];function oce(e,o){if(e&1&&(l(0,"mat-option",14)(1,"span"),c(2),r()()),e&2){let t=o.$implicit;g("routerLink",t.path),a(2),h(t.activity)}}function ace(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(),s=i.popover,d=i.prev,u=w();return s.close(),q(u.showPopover(d.template,d.target,"bottom",!0))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Back")," "))}function rce(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(),s=i.popover,d=i.next,u=w();return s.close(),q(u.showPopover(d.template,d.target,"bottom",!0))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Next")," "))}function lce(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(2),p(3,"translate"),r(),E(4,ace,3,3,"button",18),E(5,rce,3,3,"button",18),r()}if(e&2){let t=o.prev,n=o.next;a(2),v(" ",m(3,3,"labels.buttons.Close")," "),a(2),I(t?4:-1),a(),I(n?5:-1)}}function sce(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",20),c(4),p(5,"translate"),r(),l(6,"div",16)(7,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(32);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Dashboard")),a(3),h(m(5,7,"labels.text.This will navigate the user to the dashboard component.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function cce(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",20),c(4),p(5,"translate"),r(),l(6,"div",16)(7,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Search Activity")),a(3),h(m(5,7,"labels.text.This will navigate the user to the searched activity.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var F_=(()=>{class e{constructor(){this.authenticationService=T(Wo),this.activatedRoute=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.searchText=new it,this.allActivities=O_}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.setFilteredActivities(),this.authenticationService.hasDialogBeenShown()||(this.dialog.open(A_),this.authenticationService.showDialog())}setFilteredActivities(){this.filteredActivities=this.searchText.valueChanges.pipe(Mn(t=>typeof t=="string"?t:t.activity),Mn(t=>t?this.filterActivity(t):this.allActivities))}filterActivity(t){let n=t.toLowerCase();return this.allActivities.filter(i=>i.activity.toLowerCase().indexOf(n)===0)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showHome===!0&&setTimeout(()=>{this.showPopover(this.templateButtonDashboard,this.buttonDashboard.nativeElement,"bottom",!0)}),this.configurationWizardService.showHomeSearchActivity===!0&&setTimeout(()=>{this.showPopover(this.templateSearchActivity,this.searchActivity.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.openNextStepDialog()}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Organization",previousStepName:"Home Tour",stepPercentage:10}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.configurationWizardService.showCreateOffice=!0,this.router.navigate(["/organization"])):(this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.router.navigate(["/home"]))})}previousStep(){this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.configurationWizardService.showBreadcrumbs=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-home"]],viewQuery:function(n,i){if(n&1&&(Ee(Zse,5),Ee(ece,5),Ee(tce,5),Ee(ice,5)),n&2){let s;Te(s=Me())&&(i.buttonDashboard=s.first),Te(s=Me())&&(i.templateButtonDashboard=s.first),Te(s=Me())&&(i.searchActivity=s.first),Te(s=Me())&&(i.templateSearchActivity=s.first)}},decls:33,vars:16,consts:[["buttonDashboard",""],["searchActivity",""],["activitySearch","matAutocomplete"],["popoverButtons",""],["templateButtonDashboard",""],["templateSearchActivity",""],[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","tachometer-alt",1,"m-r-10"],[1,"container"],[1,"title"],[1,"layout-column"],["matInput","",3,"matAutocomplete","formControl"],[3,"routerLink"],["mat-card-image","","src","assets/images/mifos_lg-logo.png","alt","Mifos X"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","primary",3,"click"],[1,"mw300"]],template:function(n,i){if(n&1&&(l(0,"div",6)(1,"div",7,0)(3,"button",8),b(4,"fa-icon",9),c(5),p(6,"translate"),r()()(),l(7,"div",10)(8,"mat-card")(9,"mat-card-header")(10,"mat-card-title",11),c(11),p(12,"translate"),r()(),l(13,"mat-card-content",null,1)(15,"div",12)(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",13),r()(),l(21,"mat-autocomplete",null,2),Se(23,oce,3,2,"mat-option",14,Pe),p(25,"async"),r()(),b(26,"img",15),r()(),F(27,lce,6,5,"ng-template",null,3,ti)(29,sce,16,15,"ng-template",null,4,ti)(31,cce,16,15,"ng-template",null,5,ti)),n&2){let s=ve(22);a(3),g("routerLink",oe(15,nce)),a(2),v(" ",m(6,7,"labels.buttons.Dashboard")," "),a(6),le(" ",m(12,9,"labels.text.Welcome"),", ",i.username,"! "),a(7),h(m(19,11,"labels.placeholders.Search Activity")),a(2),g("matAutocomplete",s)("formControl",i.searchText),a(3),we(m(25,13,i.filteredActivities))}},dependencies:[ue,fe,st,$e,_n,Oe,Ue,Je,Fe,Be,ze,ft,xe,ke,sa,Qo,er,Za,WF,Ka,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500;margin-left:-15px}.mat-list-base[_ngcontent-%COMP%]{padding-top:0}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}"]})}}return e})();var B0=(()=>{class e{constructor(){this.http=T(ko)}getCollectedAmount(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/Demand Vs Collection",{params:n})}getDisbursedAmount(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/Disbursal Vs Awaitingdisbursal",{params:n})}getClientTrendsByDay(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/ClientTrendsByDay",{params:n})}getClientTrendsByWeek(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/ClientTrendsByWeek",{params:n})}getClientTrendsByMonth(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/ClientTrendsByMonth",{params:n})}getLoanTrendsByDay(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/LoanTrendsByDay",{params:n})}getLoanTrendsByWeek(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/LoanTrendsByWeek",{params:n})}getLoanTrendsByMonth(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/LoanTrendsByMonth",{params:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Sf(e){return e+.5|0}var Ap=(e,o,t)=>Math.max(Math.min(e,t),o);function bf(e){return Ap(Sf(e*2.55),0,255)}function Fp(e){return Ap(Sf(e*255),0,255)}function qc(e){return Ap(Sf(e/2.55)/100,0,1)}function aB(e){return Ap(Sf(e*100),0,100)}var cs={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},_4=[..."0123456789ABCDEF"],pce=e=>_4[e&15],mce=e=>_4[(e&240)>>4]+_4[e&15],k_=e=>(e&240)>>4===(e&15),dce=e=>k_(e.r)&&k_(e.g)&&k_(e.b)&&k_(e.a);function uce(e){var o=e.length,t;return e[0]==="#"&&(o===4||o===5?t={r:255&cs[e[1]]*17,g:255&cs[e[2]]*17,b:255&cs[e[3]]*17,a:o===5?cs[e[4]]*17:255}:(o===7||o===9)&&(t={r:cs[e[1]]<<4|cs[e[2]],g:cs[e[3]]<<4|cs[e[4]],b:cs[e[5]]<<4|cs[e[6]],a:o===9?cs[e[7]]<<4|cs[e[8]]:255})),t}var fce=(e,o)=>e<255?o(e):"";function hce(e){var o=dce(e)?pce:mce;return e?"#"+o(e.r)+o(e.g)+o(e.b)+fce(e.a,o):void 0}var gce=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function cB(e,o,t){let n=o*Math.min(t,1-t),i=(s,d=(s+e/30)%12)=>t-n*Math.max(Math.min(d-3,9-d,1),-1);return[i(0),i(8),i(4)]}function _ce(e,o,t){let n=(i,s=(i+e/60)%6)=>t-t*o*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Cce(e,o,t){let n=cB(e,1,.5),i;for(o+t>1&&(i=1/(o+t),o*=i,t*=i),i=0;i<3;i++)n[i]*=1-o-t,n[i]+=o;return n}function vce(e,o,t,n,i){return e===i?(o-t)/n+(o.5?C/(2-s-d):C/(s+d),f=vce(t,n,i,C,s),f=f*60+.5),[f|0,_||0,u]}function v4(e,o,t,n){return(Array.isArray(o)?e(o[0],o[1],o[2]):e(o,t,n)).map(Fp)}function x4(e,o,t){return v4(cB,e,o,t)}function xce(e,o,t){return v4(Cce,e,o,t)}function bce(e,o,t){return v4(_ce,e,o,t)}function pB(e){return(e%360+360)%360}function yce(e){let o=gce.exec(e),t=255,n;if(!o)return;o[5]!==n&&(t=o[6]?bf(+o[5]):Fp(+o[5]));let i=pB(+o[2]),s=+o[3]/100,d=+o[4]/100;return o[1]==="hwb"?n=xce(i,s,d):o[1]==="hsv"?n=bce(i,s,d):n=x4(i,s,d),{r:n[0],g:n[1],b:n[2],a:t}}function Sce(e,o){var t=C4(e);t[0]=pB(t[0]+o),t=x4(t),e.r=t[0],e.g=t[1],e.b=t[2]}function wce(e){if(!e)return;let o=C4(e),t=o[0],n=aB(o[1]),i=aB(o[2]);return e.a<255?`hsla(${t}, ${n}%, ${i}%, ${qc(e.a)})`:`hsl(${t}, ${n}%, ${i}%)`}var rB={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lB={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Pce(){let e={},o=Object.keys(lB),t=Object.keys(rB),n,i,s,d,u;for(n=0;n>16&255,s>>8&255,s&255]}return e}var B_;function Tce(e){B_||(B_=Pce(),B_.transparent=[0,0,0,0]);let o=B_[e.toLowerCase()];return o&&{r:o[0],g:o[1],b:o[2],a:o.length===4?o[3]:255}}var Mce=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dce(e){let o=Mce.exec(e),t=255,n,i,s;if(o){if(o[7]!==n){let d=+o[7];t=o[8]?bf(d):Ap(d*255,0,255)}return n=+o[1],i=+o[3],s=+o[5],n=255&(o[2]?bf(n):Ap(n,0,255)),i=255&(o[4]?bf(i):Ap(i,0,255)),s=255&(o[6]?bf(s):Ap(s,0,255)),{r:n,g:i,b:s,a:t}}}function Ece(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qc(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var g4=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,R0=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ice(e,o,t){let n=R0(qc(e.r)),i=R0(qc(e.g)),s=R0(qc(e.b));return{r:Fp(g4(n+t*(R0(qc(o.r))-n))),g:Fp(g4(i+t*(R0(qc(o.g))-i))),b:Fp(g4(s+t*(R0(qc(o.b))-s))),a:e.a+t*(o.a-e.a)}}function R_(e,o,t){if(e){let n=C4(e);n[o]=Math.max(0,Math.min(n[o]+n[o]*t,o===0?360:1)),n=x4(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function mB(e,o){return e&&Object.assign(o||{},e)}function sB(e){var o={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(o={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(o.a=Fp(e[3]))):(o=mB(e,{r:0,g:0,b:0,a:1}),o.a=Fp(o.a)),o}function Oce(e){return e.charAt(0)==="r"?Dce(e):yce(e)}var yf=class e{constructor(o){if(o instanceof e)return o;let t=typeof o,n;t==="object"?n=sB(o):t==="string"&&(n=uce(o)||Tce(o)||Oce(o)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var o=mB(this._rgb);return o&&(o.a=qc(o.a)),o}set rgb(o){this._rgb=sB(o)}rgbString(){return this._valid?Ece(this._rgb):void 0}hexString(){return this._valid?hce(this._rgb):void 0}hslString(){return this._valid?wce(this._rgb):void 0}mix(o,t){if(o){let n=this.rgb,i=o.rgb,s,d=t===s?.5:t,u=2*d-1,f=n.a-i.a,_=((u*f===-1?u:(u+f)/(1+u*f))+1)/2;s=1-_,n.r=255&_*n.r+s*i.r+.5,n.g=255&_*n.g+s*i.g+.5,n.b=255&_*n.b+s*i.b+.5,n.a=d*n.a+(1-d)*i.a,this.rgb=n}return this}interpolate(o,t){return o&&(this._rgb=Ice(this._rgb,o._rgb,t)),this}clone(){return new e(this.rgb)}alpha(o){return this._rgb.a=Fp(o),this}clearer(o){let t=this._rgb;return t.a*=1-o,this}greyscale(){let o=this._rgb,t=Sf(o.r*.3+o.g*.59+o.b*.11);return o.r=o.g=o.b=t,this}opaquer(o){let t=this._rgb;return t.a*=1+o,this}negate(){let o=this._rgb;return o.r=255-o.r,o.g=255-o.g,o.b=255-o.b,this}lighten(o){return R_(this._rgb,2,o),this}darken(o){return R_(this._rgb,2,-o),this}saturate(o){return R_(this._rgb,1,o),this}desaturate(o){return R_(this._rgb,1,-o),this}rotate(o){return Sce(this._rgb,o),this}};function mc(){}var yB=(()=>{let e=0;return()=>e++})();function Co(e){return e==null}function ga(e){if(Array.isArray&&Array.isArray(e))return!0;let o=Object.prototype.toString.call(e);return o.slice(0,7)==="[object"&&o.slice(-6)==="Array]"}function bo(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Fa(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function yl(e,o){return Fa(e)?e:o}function Kn(e,o){return typeof e>"u"?o:e}var SB=(e,o)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/o,w4=(e,o)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*o:+e;function oa(e,o,t){if(e&&typeof e.call=="function")return e.apply(t,o)}function Jo(e,o,t,n){let i,s,d;if(ga(e))if(s=e.length,n)for(i=s-1;i>=0;i--)o.call(t,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function kce(e){let o=e.split("."),t=[],n="";for(let i of o)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(t.push(n),n="");return t}function Bce(e){let o=kce(e);return t=>{for(let n of o){if(n==="")break;t=t&&t[n]}return t}}function Gc(e,o){return(dB[o]||(dB[o]=Bce(o)))(e)}function j_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var z0=e=>typeof e<"u",zc=e=>typeof e=="function",P4=(e,o)=>{if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0};function PB(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var Bo=Math.PI,_a=2*Bo,Rce=_a+Bo,z_=Number.POSITIVE_INFINITY,Nce=Bo/180,za=Bo/2,xd=Bo/4,uB=Bo*2/3,Hc=Math.log10,Bs=Math.sign;function H0(e,o,t){return Math.abs(e-o)i-s).pop(),o}function Lce(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Sd(e){return!Lce(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function MB(e,o){let t=Math.round(e);return t-o<=e&&t+o>=e}function M4(e,o,t){let n,i,s;for(n=0,i=e.length;nf&&_=Math.min(o,t)-n&&e<=Math.max(o,t)+n}function U_(e,o,t){t=t||(d=>e[d]1;)s=i+n>>1,t(s)?i=s:n=s;return{lo:i,hi:n}}var cc=(e,o,t,n)=>U_(e,t,n?i=>{let s=e[i][o];return se[i][o]U_(e,t,n=>e[n][o]>=t);function IB(e,o,t){let n=0,i=e.length;for(;nn&&e[i-1]>t;)i--;return n>0||i{let n="_onData"+j_(t),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...s){let d=i.apply(this,s);return e._chartjs.listeners.forEach(u=>{typeof u[n]=="function"&&u[n](...s)}),d}})})}function I4(e,o){let t=e._chartjs;if(!t)return;let n=t.listeners,i=n.indexOf(o);i!==-1&&n.splice(i,1),!(n.length>0)&&(OB.forEach(s=>{delete e[s]}),delete e._chartjs)}function O4(e){let o=new Set(e);return o.size===e.length?e:Array.from(o)}var A4=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function F4(e,o){let t=[],n=!1;return function(...i){t=i,n||(n=!0,A4.call(window,()=>{n=!1,e.apply(o,t)}))}}function FB(e,o){let t;return function(...n){return o?(clearTimeout(t),t=setTimeout(e,o,n)):e.apply(this,n),o}}var W_=e=>e==="start"?"left":e==="end"?"right":"center",Vr=(e,o,t)=>e==="start"?o:e==="end"?t:(o+t)/2,kB=(e,o,t,n)=>e===(n?"left":"right")?t:e==="center"?(o+t)/2:o;function k4(e,o,t){let n=o.length,i=0,s=n;if(e._sorted){let{iScale:d,vScale:u,_parsed:f}=e,_=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,C=d.axis,{min:x,max:y,minDefined:P,maxDefined:S}=d.getUserBounds();if(P){if(i=Math.min(cc(f,C,x).lo,t?n:cc(o,C,d.getPixelForValue(x)).lo),_){let M=f.slice(0,i+1).reverse().findIndex(D=>!Co(D[u.axis]));i-=Math.max(0,M)}i=_r(i,0,n-1)}if(S){let M=Math.max(cc(f,d.axis,y,!0).hi+1,t?0:cc(o,C,d.getPixelForValue(y),!0).hi+1);if(_){let D=f.slice(M-1).findIndex(k=>!Co(k[u.axis]));M+=Math.max(0,D)}s=_r(M,i,n)-i}else s=n-i}return{start:i,count:s}}function B4(e){let{xScale:o,yScale:t,_scaleRanges:n}=e,i={xmin:o.min,xmax:o.max,ymin:t.min,ymax:t.max};if(!n)return e._scaleRanges=i,!0;let s=n.xmin!==o.min||n.xmax!==o.max||n.ymin!==t.min||n.ymax!==t.max;return Object.assign(n,i),s}var N_=e=>e===0||e===1,fB=(e,o,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-o)*_a/t)),hB=(e,o,t)=>Math.pow(2,-10*e)*Math.sin((e-o)*_a/t)+1,N0={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*za)+1,easeOutSine:e=>Math.sin(e*za),easeInOutSine:e=>-.5*(Math.cos(Bo*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>N_(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>N_(e)?e:fB(e,.075,.3),easeOutElastic:e=>N_(e)?e:hB(e,.075,.3),easeInOutElastic(e){return N_(e)?e:e<.5?.5*fB(e*2,.1125,.45):.5+.5*hB(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let o=1.70158;return(e/=.5)<1?.5*(e*e*(((o*=1.525)+1)*e-o)):.5*((e-=2)*e*(((o*=1.525)+1)*e+o)+2)},easeInBounce:e=>1-N0.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?N0.easeInBounce(e*2)*.5:N0.easeOutBounce(e*2-1)*.5+.5};function R4(e){if(e&&typeof e=="object"){let o=e.toString();return o==="[object CanvasPattern]"||o==="[object CanvasGradient]"}return!1}function N4(e){return R4(e)?e:new yf(e)}function b4(e){return R4(e)?e:new yf(e).saturate(.5).darken(.1).hexString()}var qce=["x","y","borderWidth","radius","tension"],zce=["color","borderColor","backgroundColor"];function Hce(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:o=>o!=="onProgress"&&o!=="onComplete"&&o!=="fn"}),e.set("animations",{colors:{type:"color",properties:zce},numbers:{type:"number",properties:qce}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:o=>o|0}}}})}function Gce(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var gB=new Map;function jce(e,o){o=o||{};let t=e+JSON.stringify(o),n=gB.get(t);return n||(n=new Intl.NumberFormat(e,o),gB.set(t,n)),n}function j0(e,o,t){return jce(o,t).format(e)}var BB={values(e){return ga(e)?e:""+e},numeric(e,o,t){if(e===0)return"0";let n=this.chart.options.locale,i,s=e;if(t.length>1){let _=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(_<1e-4||_>1e15)&&(i="scientific"),s=$ce(e,t)}let d=Hc(Math.abs(s)),u=isNaN(d)?1:Math.max(Math.min(-1*Math.floor(d),20),0),f={notation:i,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(f,this.options.ticks.format),j0(e,n,f)},logarithmic(e,o,t){if(e===0)return"0";let n=t[o].significand||e/Math.pow(10,Math.floor(Hc(e)));return[1,2,3,5,10,15].includes(n)||o>.8*t.length?BB.numeric.call(this,e,o,t):""}};function $ce(e,o){let t=o.length>3?o[2].value-o[1].value:o[1].value-o[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var Mf={formatters:BB};function Uce(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(o,t)=>t.lineWidth,tickColor:(o,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Mf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:o=>!o.startsWith("before")&&!o.startsWith("after")&&o!=="callback"&&o!=="parser",_indexable:o=>o!=="borderDash"&&o!=="tickBorderDash"&&o!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:o=>o!=="backdropPadding"&&o!=="callback",_indexable:o=>o!=="backdropPadding"})}var Rp=Object.create(null),Q_=Object.create(null);function wf(e,o){if(!o)return e;let t=o.split(".");for(let n=0,i=t.length;nn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>b4(i.backgroundColor),this.hoverBorderColor=(n,i)=>b4(i.borderColor),this.hoverColor=(n,i)=>b4(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(o),this.apply(t)}set(o,t){return y4(this,o,t)}get(o){return wf(this,o)}describe(o,t){return y4(Q_,o,t)}override(o,t){return y4(Rp,o,t)}route(o,t,n,i){let s=wf(this,o),d=wf(this,n),u="_"+t;Object.defineProperties(s,{[u]:{value:s[t],writable:!0},[t]:{enumerable:!0,get(){let f=this[u],_=d[i];return bo(f)?Object.assign({},_,f):Kn(f,_)},set(f){this[u]=f}}})}apply(o){o.forEach(t=>t(this))}},ba=new S4({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Hce,Gce,Uce]);function Wce(e){return!e||Co(e.size)||Co(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Pf(e,o,t,n,i){let s=o[i];return s||(s=o[i]=e.measureText(i).width,t.push(i)),s>n&&(n=s),n}function RB(e,o,t,n){n=n||{};let i=n.data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==o&&(i=n.data={},s=n.garbageCollect=[],n.font=o),e.save(),e.font=o;let d=0,u=t.length,f,_,C,x,y;for(f=0;ft.length){for(f=0;f0&&e.stroke()}}function pc(e,o,t){return t=t||.5,!o||e&&e.x>o.left-t&&e.xo.top-t&&e.y0&&s.strokeColor!=="",f,_;for(e.save(),e.font=i.string,Qce(e,s),f=0;f+e||0;function J_(e,o){let t={},n=bo(o),i=n?Object.keys(o):o,s=bo(e)?n?d=>Kn(e[d],e[o[d]]):d=>e[d]:()=>e;for(let d of i)t[d]=epe(s(d));return t}function q4(e){return J_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Vp(e){return J_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function qr(e){let o=q4(e);return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function sr(e,o){e=e||{},o=o||ba.font;let t=Kn(e.size,o.size);typeof t=="string"&&(t=parseInt(t,10));let n=Kn(e.style,o.style);n&&!(""+n).match(Xce)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:Kn(e.family,o.family),lineHeight:Zce(Kn(e.lineHeight,o.lineHeight),t),size:t,style:n,weight:Kn(e.weight,o.weight),string:""};return i.string=Wce(i),i}function U0(e,o,t,n){let i=!0,s,d,u;for(s=0,d=e.length;st&&u===0?0:u+f;return{min:d(n,-Math.abs(s)),max:d(i,s)}}function jc(e,o){return Object.assign(Object.create(e),o)}function K_(e,o=[""],t,n,i=()=>e[0]){let s=t||e;typeof n>"u"&&(n=HB("_fallback",e));let d={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:n,_getTarget:i,override:u=>K_([u,...e],o,s,n)};return new Proxy(d,{deleteProperty(u,f){return delete u[f],delete u._keys,delete e[0][f],!0},get(u,f){return qB(u,f,()=>spe(f,o,e,u))},getOwnPropertyDescriptor(u,f){return Reflect.getOwnPropertyDescriptor(u._scopes[0],f)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(u,f){return CB(u).includes(f)},ownKeys(u){return CB(u)},set(u,f,_){let C=u._storage||(u._storage=i());return u[f]=C[f]=_,delete u._keys,!0}})}function yd(e,o,t,n){let i={_cacheable:!1,_proxy:e,_context:o,_subProxy:t,_stack:new Set,_descriptors:z4(e,n),setContext:s=>yd(e,s,t,n),override:s=>yd(e.override(s),o,t,n)};return new Proxy(i,{deleteProperty(s,d){return delete s[d],delete e[d],!0},get(s,d,u){return qB(s,d,()=>ipe(s,d,u))},getOwnPropertyDescriptor(s,d){return s._descriptors.allKeys?Reflect.has(e,d)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,d)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,d){return Reflect.has(e,d)},ownKeys(){return Reflect.ownKeys(e)},set(s,d,u){return e[d]=u,delete s[d],!0}})}function z4(e,o={scriptable:!0,indexable:!0}){let{_scriptable:t=o.scriptable,_indexable:n=o.indexable,_allKeys:i=o.allKeys}=e;return{allKeys:i,scriptable:t,indexable:n,isScriptable:zc(t)?t:()=>t,isIndexable:zc(n)?n:()=>n}}var tpe=(e,o)=>e?e+j_(o):o,H4=(e,o)=>bo(o)&&e!=="adapters"&&(Object.getPrototypeOf(o)===null||o.constructor===Object);function qB(e,o,t){if(Object.prototype.hasOwnProperty.call(e,o)||o==="constructor")return e[o];let n=t();return e[o]=n,n}function ipe(e,o,t){let{_proxy:n,_context:i,_subProxy:s,_descriptors:d}=e,u=n[o];return zc(u)&&d.isScriptable(o)&&(u=npe(o,u,e,t)),ga(u)&&u.length&&(u=ope(o,u,e,d.isIndexable)),H4(o,u)&&(u=yd(u,i,s&&s[o],d)),u}function npe(e,o,t,n){let{_proxy:i,_context:s,_subProxy:d,_stack:u}=t;if(u.has(e))throw new Error("Recursion detected: "+Array.from(u).join("->")+"->"+e);u.add(e);let f=o(s,d||n);return u.delete(e),H4(e,f)&&(f=G4(i._scopes,i,e,f)),f}function ope(e,o,t,n){let{_proxy:i,_context:s,_subProxy:d,_descriptors:u}=t;if(typeof s.index<"u"&&n(e))return o[s.index%o.length];if(bo(o[0])){let f=o,_=i._scopes.filter(C=>C!==f);o=[];for(let C of f){let x=G4(_,i,e,C);o.push(yd(x,s,d&&d[e],u))}}return o}function zB(e,o,t){return zc(e)?e(o,t):e}var ape=(e,o)=>e===!0?o:typeof e=="string"?Gc(o,e):void 0;function rpe(e,o,t,n,i){for(let s of o){let d=ape(t,s);if(d){e.add(d);let u=zB(d._fallback,t,i);if(typeof u<"u"&&u!==t&&u!==n)return u}else if(d===!1&&typeof n<"u"&&t!==n)return null}return!1}function G4(e,o,t,n){let i=o._rootScopes,s=zB(o._fallback,t,n),d=[...e,...i],u=new Set;u.add(n);let f=_B(u,d,t,s||t,n);return f===null||typeof s<"u"&&s!==t&&(f=_B(u,d,s,f,n),f===null)?!1:K_(Array.from(u),[""],i,s,()=>lpe(o,t,n))}function _B(e,o,t,n,i){for(;t;)t=rpe(e,o,t,n,i);return t}function lpe(e,o,t){let n=e._getTarget();o in n||(n[o]={});let i=n[o];return ga(i)&&bo(t)?t:i||{}}function spe(e,o,t,n){let i;for(let s of o)if(i=HB(tpe(s,e),t),typeof i<"u")return H4(e,i)?G4(t,n,e,i):i}function HB(e,o){for(let t of o){if(!t)continue;let n=t[e];if(typeof n<"u")return n}}function CB(e){let o=e._keys;return o||(o=e._keys=cpe(e._scopes)),o}function cpe(e){let o=new Set;for(let t of e)for(let n of Object.keys(t).filter(i=>!i.startsWith("_")))o.add(n);return Array.from(o)}function j4(e,o,t,n){let{iScale:i}=e,{key:s="r"}=this._parsing,d=new Array(n),u,f,_,C;for(u=0,f=n;uoe==="x"?"y":"x";function mpe(e,o,t,n){let i=e.skip?o:e,s=o,d=t.skip?o:t,u=H_(s,i),f=H_(d,s),_=u/(u+f),C=f/(u+f);_=isNaN(_)?0:_,C=isNaN(C)?0:C;let x=n*_,y=n*C;return{previous:{x:s.x-x*(d.x-i.x),y:s.y-x*(d.y-i.y)},next:{x:s.x+y*(d.x-i.x),y:s.y+y*(d.y-i.y)}}}function dpe(e,o,t){let n=e.length,i,s,d,u,f,_=V0(e,0);for(let C=0;C!_.skip)),o.cubicInterpolationMode==="monotone")fpe(e,i);else{let _=n?e[e.length-1]:e[0];for(s=0,d=e.length;se.ownerDocument.defaultView.getComputedStyle(e,null);function gpe(e,o){return eC(e).getPropertyValue(o)}var _pe=["top","right","bottom","left"];function bd(e,o,t){let n={};t=t?"-"+t:"";for(let i=0;i<4;i++){let s=_pe[i];n[s]=parseFloat(e[o+"-"+s+t])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}var Cpe=(e,o,t)=>(e>0||o>0)&&(!t||!t.shadowRoot);function vpe(e,o){let t=e.touches,n=t&&t.length?t[0]:e,{offsetX:i,offsetY:s}=n,d=!1,u,f;if(Cpe(i,s,e.target))u=i,f=s;else{let _=o.getBoundingClientRect();u=n.clientX-_.left,f=n.clientY-_.top,d=!0}return{x:u,y:f,box:d}}function qp(e,o){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:n}=o,i=eC(t),s=i.boxSizing==="border-box",d=bd(i,"padding"),u=bd(i,"border","width"),{x:f,y:_,box:C}=vpe(e,t),x=d.left+(C&&u.left),y=d.top+(C&&u.top),{width:P,height:S}=o;return s&&(P-=d.width+u.width,S-=d.height+u.height),{x:Math.round((f-x)/P*t.width/n),y:Math.round((_-y)/S*t.height/n)}}function xpe(e,o,t){let n,i;if(o===void 0||t===void 0){let s=e&&Z_(e);if(!s)o=e.clientWidth,t=e.clientHeight;else{let d=s.getBoundingClientRect(),u=eC(s),f=bd(u,"border","width"),_=bd(u,"padding");o=d.width-_.width-f.width,t=d.height-_.height-f.height,n=G_(u.maxWidth,s,"clientWidth"),i=G_(u.maxHeight,s,"clientHeight")}}return{width:o,height:t,maxWidth:n||z_,maxHeight:i||z_}}var Bp=e=>Math.round(e*10)/10;function $B(e,o,t,n){let i=eC(e),s=bd(i,"margin"),d=G_(i.maxWidth,e,"clientWidth")||z_,u=G_(i.maxHeight,e,"clientHeight")||z_,f=xpe(e,o,t),{width:_,height:C}=f;if(i.boxSizing==="content-box"){let y=bd(i,"border","width"),P=bd(i,"padding");_-=P.width+y.width,C-=P.height+y.height}return _=Math.max(0,_-s.width),C=Math.max(0,n?_/n:C-s.height),_=Bp(Math.min(_,d,f.maxWidth)),C=Bp(Math.min(C,u,f.maxHeight)),_&&!C&&(C=Bp(_/2)),(o!==void 0||t!==void 0)&&n&&f.height&&C>f.height&&(C=f.height,_=Bp(Math.floor(C*n))),{width:_,height:C}}function $4(e,o,t){let n=o||1,i=Bp(e.height*n),s=Bp(e.width*n);e.height=Bp(e.height),e.width=Bp(e.width);let d=e.canvas;return d.style&&(t||!d.style.height&&!d.style.width)&&(d.style.height=`${e.height}px`,d.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||d.height!==i||d.width!==s?(e.currentDevicePixelRatio=n,d.height=i,d.width=s,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}var UB=(function(){let e=!1;try{let o={get passive(){return e=!0,!1}};X_()&&(window.addEventListener("test",null,o),window.removeEventListener("test",null,o))}catch{}return e})();function U4(e,o){let t=gpe(e,o),n=t&&t.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function kp(e,o,t,n){return{x:e.x+t*(o.x-e.x),y:e.y+t*(o.y-e.y)}}function WB(e,o,t,n){return{x:e.x+t*(o.x-e.x),y:n==="middle"?t<.5?e.y:o.y:n==="after"?t<1?e.y:o.y:t>0?o.y:e.y}}function QB(e,o,t,n){let i={x:e.cp2x,y:e.cp2y},s={x:o.cp1x,y:o.cp1y},d=kp(e,i,t),u=kp(i,s,t),f=kp(s,o,t),_=kp(d,u,t),C=kp(u,f,t);return kp(_,C,t)}var bpe=function(e,o){return{x(t){return e+e+o-t},setWidth(t){o=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,n){return t-n},leftForLtr(t,n){return t-n}}},ype=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,o){return e+o},leftForLtr(e,o){return e}}};function wd(e,o,t){return e?bpe(o,t):ype()}function W4(e,o){let t,n;(o==="ltr"||o==="rtl")&&(t=e.canvas.style,n=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",o,"important"),e.prevTextDirection=n)}function Q4(e,o){o!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",o[0],o[1]))}function YB(e){return e==="angle"?{between:G0,compare:Vce,normalize:Lr}:{between:dc,compare:(o,t)=>o-t,normalize:o=>o}}function vB({start:e,end:o,count:t,loop:n,style:i}){return{start:e%t,end:o%t,loop:n&&(o-e+1)%t===0,style:i}}function Spe(e,o,t){let{property:n,start:i,end:s}=t,{between:d,normalize:u}=YB(n),f=o.length,{start:_,end:C,loop:x}=e,y,P;if(x){for(_+=f,C+=f,y=0,P=f;yf(i,U,k)&&u(i,U)!==0,re=()=>u(s,k)===0||f(s,U,k),ee=()=>M||J(),ae=()=>!M||re();for(let se=C,_e=C;se<=x;++se)z=o[se%d],!z.skip&&(k=_(z[n]),k!==U&&(M=f(k,i,s),D===null&&ee()&&(D=u(k,i)===0?se:_e),D!==null&&ae()&&(S.push(vB({start:D,end:se,loop:y,count:d,style:P})),D=null),_e=se,U=k));return D!==null&&S.push(vB({start:D,end:x,loop:y,count:d,style:P})),S}function J4(e,o){let t=[],n=e.segments;for(let i=0;ii&&e[s%o].skip;)s--;return s%=o,{start:i,end:s}}function Ppe(e,o,t,n){let i=e.length,s=[],d=o,u=e[o],f;for(f=o+1;f<=t;++f){let _=e[f%i];_.skip||_.stop?u.skip||(n=!1,s.push({start:o%i,end:(f-1)%i,loop:n}),o=d=_.stop?f:null):(d=f,u.skip&&(o=f)),u=_}return d!==null&&s.push({start:o%i,end:d%i,loop:n}),s}function JB(e,o){let t=e.points,n=e.options.spanGaps,i=t.length;if(!i)return[];let s=!!e._loop,{start:d,end:u}=wpe(t,i,s,n);if(n===!0)return xB(e,[{start:d,end:u,loop:s}],t,o);let f=uu({chart:o,initial:t.initial,numSteps:d,currentStep:Math.min(n-t.start,d)}))}_refresh(){this._request||(this._running=!0,this._request=A4.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(o=Date.now()){let t=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;let s=n.items,d=s.length-1,u=!1,f;for(;d>=0;--d)f=s[d],f._active?(f._total>n.duration&&(n.duration=f._total),f.tick(o),u=!0):(s[d]=s[s.length-1],s.pop());u&&(i.draw(),this._notify(i,n,o,"progress")),s.length||(n.running=!1,this._notify(i,n,o,"complete"),n.initial=!1),t+=s.length}),this._lastDate=o,t===0&&(this._running=!1)}_getAnims(o){let t=this._charts,n=t.get(o);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(o,n)),n}listen(o,t,n){this._getAnims(o).listeners[t].push(n)}add(o,t){!t||!t.length||this._getAnims(o).items.push(...t)}has(o){return this._getAnims(o).items.length>0}start(o){let t=this._charts.get(o);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(o){if(!this._running)return!1;let t=this._charts.get(o);return!(!t||!t.running||!t.items.length)}stop(o){let t=this._charts.get(o);if(!t||!t.items.length)return;let n=t.items,i=n.length-1;for(;i>=0;--i)n[i].cancel();t.items=[],this._notify(o,t,Date.now(),"complete")}remove(o){return this._charts.delete(o)}},$c=new cM,KB="transparent",Epe={boolean(e,o,t){return t>.5?o:e},color(e,o,t){let n=N4(e||KB),i=n.valid&&N4(o||KB);return i&&i.valid?i.mix(n,t).hexString():o},number(e,o,t){return e+(o-e)*t}},pM=class{constructor(o,t,n,i){let s=t[n];i=U0([o.to,i,s,o.from]);let d=U0([o.from,s,i]);this._active=!0,this._fn=o.fn||Epe[o.type||typeof d],this._easing=N0[o.easing]||N0.linear,this._start=Math.floor(Date.now()+(o.delay||0)),this._duration=this._total=Math.floor(o.duration),this._loop=!!o.loop,this._target=t,this._prop=n,this._from=d,this._to=i,this._promises=void 0}active(){return this._active}update(o,t,n){if(this._active){this._notify(!1);let i=this._target[this._prop],s=n-this._start,d=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(d,o.duration)),this._total+=s,this._loop=!!o.loop,this._to=U0([o.to,t,i,o.from]),this._from=U0([o.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(o){let t=o-this._start,n=this._duration,i=this._prop,s=this._from,d=this._loop,u=this._to,f;if(this._active=s!==u&&(d||t1?2-f:f,f=this._easing(Math.min(1,Math.max(0,f))),this._target[i]=this._fn(s,u,f)}wait(){let o=this._promises||(this._promises=[]);return new Promise((t,n)=>{o.push({res:t,rej:n})})}_notify(o){let t=o?"res":"rej",n=this._promises||[];for(let i=0;i{let s=o[i];if(!bo(s))return;let d={};for(let u of t)d[u]=s[u];(ga(s.properties)&&s.properties||[i]).forEach(u=>{(u===i||!n.has(u))&&n.set(u,d)})})}_animateOptions(o,t){let n=t.options,i=Ope(o,n);if(!i)return[];let s=this._createAnimations(i,n);return n.$shared&&Ipe(o.options.$animations,n).then(()=>{o.options=n},()=>{}),s}_createAnimations(o,t){let n=this._properties,i=[],s=o.$animations||(o.$animations={}),d=Object.keys(t),u=Date.now(),f;for(f=d.length-1;f>=0;--f){let _=d[f];if(_.charAt(0)==="$")continue;if(_==="options"){i.push(...this._animateOptions(o,t));continue}let C=t[_],x=s[_],y=n.get(_);if(x)if(y&&x.active()){x.update(y,C,u);continue}else x.cancel();if(!y||!y.duration){o[_]=C;continue}s[_]=x=new pM(y,o,_,C),i.push(x)}return i}update(o,t){if(this._properties.size===0){Object.assign(o,t);return}let n=this._createAnimations(o,t);if(n.length)return $c.add(this._chart,n),!0}};function Ipe(e,o){let t=[],n=Object.keys(o);for(let i=0;i0||!t&&s<0)return i.index}return null}function tR(e,o){let{chart:t,_cachedMeta:n}=e,i=t._stacks||(t._stacks={}),{iScale:s,vScale:d,index:u}=n,f=s.axis,_=d.axis,C=Bpe(s,d,n),x=o.length,y;for(let P=0;Pt[n].axis===o).shift()}function Lpe(e,o){return jc(e,{active:!1,dataset:void 0,datasetIndex:o,index:o,mode:"default",type:"dataset"})}function Vpe(e,o,t){return jc(e,{active:!1,dataIndex:o,parsed:void 0,raw:void 0,element:t,index:o,mode:"default",type:"data"})}function If(e,o){let t=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){o=o||e._parsed;for(let i of o){let s=i._stacks;if(!s||s[n]===void 0||s[n][t]===void 0)return;delete s[n][t],s[n]._visualValues!==void 0&&s[n]._visualValues[t]!==void 0&&delete s[n]._visualValues[t]}}}var eM=e=>e==="reset"||e==="none",iR=(e,o)=>o?e:Object.assign({},e),qpe=(e,o,t)=>e&&!o.hidden&&o._stacked&&{keys:KR(t,!0),values:null},Hp=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=X4(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&If(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(y,P,S,M)=>y==="x"?P:y==="r"?M:S,d=n.xAxisID=Kn(i.xAxisID,Z4(t,"x")),u=n.yAxisID=Kn(i.yAxisID,Z4(t,"y")),f=n.rAxisID=Kn(i.rAxisID,Z4(t,"r")),_=n.indexAxis,C=n.iAxisID=s(_,d,u,f),x=n.vAxisID=s(_,u,d,f);n.xScale=this.getScaleForId(d),n.yScale=this.getScaleForId(u),n.rScale=this.getScaleForId(f),n.iScale=this.getScaleForId(C),n.vScale=this.getScaleForId(x)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&I4(this._data,this),t._stacked&&If(t)}_dataCheck(){let t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(bo(n)){let s=this._cachedMeta;this._data=kpe(n,s)}else if(i!==n){if(i){I4(i,this);let s=this._cachedMeta;If(s),s._parsed=[]}n&&Object.isExtensible(n)&&AB(n,this),this._syncList=[],this._data=n}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let n=this._cachedMeta,i=this.getDataset(),s=!1;this._dataCheck();let d=n._stacked;n._stacked=X4(n.vScale,n),n.stack!==i.stack&&(s=!0,If(n),n.stack=i.stack),this._resyncElements(t),(s||d!==n._stacked)&&(tR(this,n._parsed),n._stacked=X4(n.vScale,n))}configure(){let t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){let{_cachedMeta:i,_data:s}=this,{iScale:d,_stacked:u}=i,f=d.axis,_=t===0&&n===s.length?!0:i._sorted,C=t>0&&i._parsed[t-1],x,y,P;if(this._parsing===!1)i._parsed=s,i._sorted=!0,P=s;else{ga(s[t])?P=this.parseArrayData(i,s,t,n):bo(s[t])?P=this.parseObjectData(i,s,t,n):P=this.parsePrimitiveData(i,s,t,n);let S=()=>y[f]===null||C&&y[f]D||y=0;--P)if(!M()){this.updateRangeFromParsed(C,t,S,_);break}}return C}getAllParsedValues(t){let n=this._cachedMeta._parsed,i=[],s,d,u;for(s=0,d=n.length;s=0&&tthis.getContext(i,s,n),D=C.resolveNamedOptions(P,S,M,y);return D.$shared&&(D.$shared=_,d[u]=Object.freeze(iR(D,_))),D}_resolveAnimations(t,n,i){let s=this.chart,d=this._cachedDataOpts,u=`animation-${n}`,f=d[u];if(f)return f;let _;if(s.options.animation!==!1){let x=this.chart.config,y=x.datasetAnimationScopeKeys(this._type,n),P=x.getOptionScopes(this.getDataset(),y);_=x.createResolver(P,this.getContext(t,i,n))}let C=new cC(s,_&&_.animations);return _&&_._cacheable&&(d[u]=Object.freeze(C)),C}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||eM(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){let i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,d=this.getSharedOptions(i),u=this.includeOptions(n,d)||d!==s;return this.updateSharedOptions(d,n,i),{sharedOptions:d,includeOptions:u}}updateElement(t,n,i,s){eM(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!eM(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;let d=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(d)||d})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let n=this._data,i=this._cachedMeta.data;for(let[f,_,C]of this._syncList)this[f](_,C);this._syncList=[];let s=i.length,d=n.length,u=Math.min(d,s);u&&this.parse(0,u),d>s?this._insertElements(s,d-s,t):d{for(C.length+=n,f=C.length-1;f>=u;f--)C[f]=C[f-n]};for(_(d),f=t;fi-s))}return e._cache.$bar}function Hpe(e){let o=e.iScale,t=zpe(o,e.type),n=o._length,i,s,d,u,f=()=>{d===32767||d===-32768||(z0(u)&&(n=Math.min(n,Math.abs(d-u)||n)),u=d)};for(i=0,s=t.length;i0?i[e-1]:null,u=eMath.abs(u)&&(f=u,_=d),o[t.axis]=_,o._custom={barStart:f,barEnd:_,start:i,end:s,min:d,max:u}}function XR(e,o,t,n){return ga(e)?$pe(e,o,t,n):o[t.axis]=t.parse(e,n),o}function nR(e,o,t,n){let i=e.iScale,s=e.vScale,d=i.getLabels(),u=i===s,f=[],_,C,x,y;for(_=t,C=t+n;_=t?1:-1)}function Wpe(e){let o,t,n,i,s;return e.horizontal?(o=e.base>e.x,t="left",n="right"):(o=e.base{class e extends Hp{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,n,i,s){return nR(t,n,i,s)}parseArrayData(t,n,i,s){return nR(t,n,i,s)}parseObjectData(t,n,i,s){let{iScale:d,vScale:u}=t,{xAxisKey:f="x",yAxisKey:_="y"}=this._parsing,C=d.axis==="x"?f:_,x=u.axis==="x"?f:_,y=[],P,S,M,D;for(P=i,S=i+s;Px.controller.options.grouped),d=i.options.stacked,u=[],f=this._cachedMeta.controller.getParsed(n),_=f&&f[i.axis],C=x=>{let y=x._parsed.find(S=>S[i.axis]===_),P=y&&y[x.vScale.axis];if(Co(P)||isNaN(P))return!0};for(let x of s)if(!(n!==void 0&&C(x))&&((d===!1||u.indexOf(x.stack)===-1||d===void 0&&x.stack===void 0)&&u.push(x.stack),x.index===t))break;return u.length||u.push(void 0),u}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===n).shift()}_getAxis(){let t={},n=this.getFirstScaleIdForIndexAxis();for(let i of this.chart.data.datasets)t[Kn(this.chart.options.indexAxis==="x"?i.xAxisID:i.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,i){let s=this._getStacks(t,i),d=n!==void 0?s.indexOf(n):-1;return d===-1?s.length-1:d}_getRuler(){let t=this.options,n=this._cachedMeta,i=n.iScale,s=[],d,u;for(d=0,u=n.data.length;d{class e extends Hp{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,i,s){let d=super.parsePrimitiveData(t,n,i,s);for(let u=0;u=0;--i)n=Math.max(n,t[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(t){let n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:d}=n,u=this.getParsed(t),f=s.getLabelForValue(u.x),_=d.getLabelForValue(u.y),C=u._custom;return{label:i[t]||"",value:"("+f+", "+_+(C?", "+C:"")+")"}}update(t){let n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,i,s){let d=s==="reset",{iScale:u,vScale:f}=this._cachedMeta,{sharedOptions:_,includeOptions:C}=this._getSharedOptions(n,s),x=u.axis,y=f.axis;for(let P=n;PG0(U,u,f,!0)?1:Math.max(J,J*t,re,re*t),S=(U,J,re)=>G0(U,u,f,!0)?-1:Math.min(J,J*t,re,re*t),M=P(0,_,x),D=P(za,C,y),k=S(Bo,_,x),z=S(Bo+za,C,y);n=(M-k)/2,i=(D-z)/2,s=-(M+k)/2,d=-(D+z)/2}return{ratioX:n,ratioY:i,offsetX:s,offsetY:d}}var IM=(()=>{class e extends Hp{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data,{labels:{pointStyle:i,textAlign:s,color:d,useBorderRadius:u,borderRadius:f}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((_,C)=>{let y=t.getDatasetMeta(0).controller.getStyle(C);return{text:_,fillStyle:y.backgroundColor,fontColor:d,hidden:!t.getDataVisibility(C),lineDash:y.borderDash,lineDashOffset:y.borderDashOffset,lineJoin:y.borderJoinStyle,lineWidth:y.borderWidth,strokeStyle:y.borderColor,textAlign:s,pointStyle:i,borderRadius:u&&(f||y.borderRadius),index:C}}):[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}};constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){let i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let d=_=>+i[_];if(bo(i[t])){let{key:_="value"}=this._parsing;d=C=>+Gc(i[C],_)}let u,f;for(u=t,f=t+n;u0&&!isNaN(t)?_a*(Math.abs(t)/n):0}getLabelAndValue(t){let n=this._cachedMeta,i=this.chart,s=i.data.labels||[],d=j0(n._parsed[t],i.options.locale);return{label:s[t]||"",value:d}}getMaxBorderWidth(t){let n=0,i=this.chart,s,d,u,f,_;if(!t){for(s=0,d=i.data.datasets.length;s{class e extends Hp{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let n=this._cachedMeta,{dataset:i,data:s=[],_dataset:d}=n,u=this.chart._animationsDisabled,{start:f,count:_}=k4(n,s,u);this._drawStart=f,this._drawCount=_,B4(n)&&(f=0,_=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!d._decimated,i.points=s;let C=this.resolveDatasetElementOptions(t);this.options.showLine||(C.borderWidth=0),C.segment=this.options.segment,this.updateElement(i,void 0,{animated:!u,options:C},t),this.updateElements(s,f,_,t)}updateElements(t,n,i,s){let d=s==="reset",{iScale:u,vScale:f,_stacked:_,_dataset:C}=this._cachedMeta,{sharedOptions:x,includeOptions:y}=this._getSharedOptions(n,s),P=u.axis,S=f.axis,{spanGaps:M,segment:D}=this.options,k=Sd(M)?M:Number.POSITIVE_INFINITY,z=this.chart._animationsDisabled||d||s==="none",U=n+i,J=t.length,re=n>0&&this.getParsed(n-1);for(let ee=0;ee=U){se.skip=!0;continue}let _e=this.getParsed(ee),de=Co(_e[S]),j=se[P]=u.getPixelForValue(_e[P],ee),W=se[S]=d||de?f.getBasePixel():f.getPixelForValue(_?this.applyStack(f,_e,_):_e[S],ee);se.skip=isNaN(j)||isNaN(W)||de,se.stop=ee>0&&Math.abs(_e[P]-re[P])>k,D&&(se.parsed=_e,se.raw=C.data[ee]),y&&(se.options=x||this.resolveDataElementOptions(ee,ae.active?"active":s)),z||this.updateElement(ae,ee,se,s),re=_e}}getMaxOverflow(){let t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;let d=s[0].size(this.resolveDataElementOptions(0)),u=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,d,u)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),ZR=(()=>{class e extends Hp{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data;if(n.labels.length&&n.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return n.labels.map((d,u)=>{let _=t.getDatasetMeta(0).controller.getStyle(u);return{text:d,fillStyle:_.backgroundColor,strokeStyle:_.borderColor,fontColor:s,lineWidth:_.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(u),index:u}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let n=this._cachedMeta,i=this.chart,s=i.data.labels||[],d=j0(n._parsed[t].r,i.options.locale);return{label:s[t]||"",value:d}}parseObjectData(t,n,i,s){return j4.bind(this)(t,n,i,s)}update(t){let n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){let t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,s)=>{let d=this.getParsed(s).r;!isNaN(d)&&this.chart.getDataVisibility(s)&&(dn.max&&(n.max=d))}),n}_updateRadius(){let t=this.chart,n=t.chartArea,i=t.options,s=Math.min(n.right-n.left,n.bottom-n.top),d=Math.max(s/2,0),u=Math.max(i.cutoutPercentage?d/100*i.cutoutPercentage:1,0),f=(d-u)/t.getVisibleDatasetCount();this.outerRadius=d-f*this.index,this.innerRadius=this.outerRadius-f}updateElements(t,n,i,s){let d=s==="reset",u=this.chart,_=u.options.animation,C=this._cachedMeta.rScale,x=C.xCenter,y=C.yCenter,P=C.getIndexAngle(0)-.5*Bo,S=P,M,D=360/this.countVisibleElements();for(M=0;M{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(t,n,i){return this.chart.getDataVisibility(t)?ps(this.resolveDataElementOptions(t,n).angle||i):0}}return e})(),tme=(()=>{class e extends IM{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),ime=(()=>{class e extends Hp{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let n=this._cachedMeta.vScale,i=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(t,n,i,s){return j4.bind(this)(t,n,i,s)}update(t){let n=this._cachedMeta,i=n.dataset,s=n.data||[],d=n.iScale.getLabels();if(i.points=s,t!=="resize"){let u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0);let f={_loop:!0,_fullLoop:d.length===s.length,options:u};this.updateElement(i,void 0,f,t)}this.updateElements(s,0,s.length,t)}updateElements(t,n,i,s){let d=this._cachedMeta.rScale,u=s==="reset";for(let f=n;f{class e extends Hp{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:d}=n,u=this.getParsed(t),f=s.getLabelForValue(u.x),_=d.getLabelForValue(u.y);return{label:i[t]||"",value:"("+f+", "+_+")"}}update(t){let n=this._cachedMeta,{data:i=[]}=n,s=this.chart._animationsDisabled,{start:d,count:u}=k4(n,i,s);if(this._drawStart=d,this._drawCount=u,B4(n)&&(d=0,u=i.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:f,_dataset:_}=n;f._chart=this.chart,f._datasetIndex=this.index,f._decimated=!!_._decimated,f.points=i;let C=this.resolveDatasetElementOptions(t);C.segment=this.options.segment,this.updateElement(f,void 0,{animated:!s,options:C},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,d,u,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,i,s){let d=s==="reset",{iScale:u,vScale:f,_stacked:_,_dataset:C}=this._cachedMeta,x=this.resolveDataElementOptions(n,s),y=this.getSharedOptions(x),P=this.includeOptions(s,y),S=u.axis,M=f.axis,{spanGaps:D,segment:k}=this.options,z=Sd(D)?D:Number.POSITIVE_INFINITY,U=this.chart._animationsDisabled||d||s==="none",J=n>0&&this.getParsed(n-1);for(let re=n;re0&&Math.abs(ae[S]-J[S])>z,k&&(se.parsed=ae,se.raw=C.data[re]),P&&(se.options=y||this.resolveDataElementOptions(re,ee.active?"active":s)),U||this.updateElement(ee,re,se,s),J=ae}this.updateSharedOptions(y,s,x)}getMaxOverflow(){let t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let f=0;for(let _=n.length-1;_>=0;--_)f=Math.max(f,n[_].size(this.resolveDataElementOptions(_))/2);return f>0&&f}let i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;let d=n[0].size(this.resolveDataElementOptions(0)),u=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,d,u)/2}}return e})(),ome=Object.freeze({__proto__:null,BarController:Kpe,BubbleController:Xpe,DoughnutController:IM,LineController:eme,PieController:tme,PolarAreaController:ZR,RadarController:ime,ScatterController:nme});function Pd(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var mM=class e{static override(o){Object.assign(e.prototype,o)}options;constructor(o){this.options=o||{}}init(){}formats(){return Pd()}parse(){return Pd()}format(){return Pd()}add(){return Pd()}diff(){return Pd()}startOf(){return Pd()}endOf(){return Pd()}},ame={_date:mM};function rme(e,o,t,n){let{controller:i,data:s,_sorted:d}=e,u=i._cachedMeta.iScale,f=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(u&&o===u.axis&&o!=="r"&&d&&s.length){let _=u._reversePixels?EB:cc;if(n){if(i._sharedOptions){let C=s[0],x=typeof C.getRange=="function"&&C.getRange(o);if(x){let y=_(s,o,t-x),P=_(s,o,t+x);return{lo:y.lo,hi:P.hi}}}}else{let C=_(s,o,t);if(f){let{vScale:x}=i._cachedMeta,{_parsed:y}=e,P=y.slice(0,C.lo+1).reverse().findIndex(M=>!Co(M[x.axis]));C.lo-=Math.max(0,P);let S=y.slice(C.hi).findIndex(M=>!Co(M[x.axis]));C.hi+=Math.max(0,S)}return C}}return{lo:0,hi:s.length-1}}function qf(e,o,t,n,i){let s=e.getSortedVisibleDatasetMetas(),d=t[o];for(let u=0,f=s.length;u{f[d]&&f[d](o[t],i)&&(s.push({element:f,datasetIndex:_,index:C}),u=u||f.inRange(o.x,o.y,i))}),n&&!u?[]:s}var pme={evaluateInteractionItems:qf,modes:{index(e,o,t,n){let i=qp(o,e),s=t.axis||"x",d=t.includeInvisible||!1,u=t.intersect?iM(e,i,s,n,d):nM(e,i,s,!1,n,d),f=[];return u.length?(e.getSortedVisibleDatasetMetas().forEach(_=>{let C=u[0].index,x=_.data[C];x&&!x.skip&&f.push({element:x,datasetIndex:_.index,index:C})}),f):[]},dataset(e,o,t,n){let i=qp(o,e),s=t.axis||"xy",d=t.includeInvisible||!1,u=t.intersect?iM(e,i,s,n,d):nM(e,i,s,!1,n,d);if(u.length>0){let f=u[0].datasetIndex,_=e.getDatasetMeta(f).data;u=[];for(let C=0;C<_.length;++C)u.push({element:_[C],datasetIndex:f,index:C})}return u},point(e,o,t,n){let i=qp(o,e),s=t.axis||"xy",d=t.includeInvisible||!1;return iM(e,i,s,n,d)},nearest(e,o,t,n){let i=qp(o,e),s=t.axis||"xy",d=t.includeInvisible||!1;return nM(e,i,s,t.intersect,n,d)},x(e,o,t,n){let i=qp(o,e);return rR(e,i,"x",t.intersect,n)},y(e,o,t,n){let i=qp(o,e);return rR(e,i,"y",t.intersect,n)}}},e9=["left","top","right","bottom"];function Of(e,o){return e.filter(t=>t.pos===o)}function lR(e,o){return e.filter(t=>e9.indexOf(t.pos)===-1&&t.box.axis===o)}function Af(e,o){return e.sort((t,n)=>{let i=o?n:t,s=o?t:n;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function mme(e){let o=[],t,n,i,s,d,u;for(t=0,n=(e||[]).length;t_.box.fullSize),!0),n=Af(Of(o,"left"),!0),i=Af(Of(o,"right")),s=Af(Of(o,"top"),!0),d=Af(Of(o,"bottom")),u=lR(o,"x"),f=lR(o,"y");return{fullSize:t,leftAndTop:n.concat(s),rightAndBottom:i.concat(f).concat(d).concat(u),chartArea:Of(o,"chartArea"),vertical:n.concat(i).concat(f),horizontal:s.concat(d).concat(u)}}function sR(e,o,t,n){return Math.max(e[t],o[t])+Math.max(e[n],o[n])}function t9(e,o){e.top=Math.max(e.top,o.top),e.left=Math.max(e.left,o.left),e.bottom=Math.max(e.bottom,o.bottom),e.right=Math.max(e.right,o.right)}function hme(e,o,t,n){let{pos:i,box:s}=t,d=e.maxPadding;if(!bo(i)){t.size&&(e[i]-=t.size);let x=n[t.stack]||{size:0,count:1};x.size=Math.max(x.size,t.horizontal?s.height:s.width),t.size=x.size/x.count,e[i]+=t.size}s.getPadding&&t9(d,s.getPadding());let u=Math.max(0,o.outerWidth-sR(d,e,"left","right")),f=Math.max(0,o.outerHeight-sR(d,e,"top","bottom")),_=u!==e.w,C=f!==e.h;return e.w=u,e.h=f,t.horizontal?{same:_,other:C}:{same:C,other:_}}function gme(e){let o=e.maxPadding;function t(n){let i=Math.max(o[n]-e[n],0);return e[n]+=i,i}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function _me(e,o){let t=o.maxPadding;function n(i){let s={left:0,top:0,right:0,bottom:0};return i.forEach(d=>{s[d]=Math.max(o[d],t[d])}),s}return n(e?["left","right"]:["top","bottom"])}function Bf(e,o,t,n){let i=[],s,d,u,f,_,C;for(s=0,d=e.length,_=0;s{typeof M.beforeLayout=="function"&&M.beforeLayout()});let C=f.reduce((M,D)=>D.box.options&&D.box.options.display===!1?M:M+1,0)||1,x=Object.freeze({outerWidth:o,outerHeight:t,padding:i,availableWidth:s,availableHeight:d,vBoxMaxWidth:s/2/C,hBoxMaxHeight:d/2}),y=Object.assign({},i);t9(y,qr(n));let P=Object.assign({maxPadding:y,w:s,h:d,x:i.left,y:i.top},i),S=ume(f.concat(_),x);Bf(u.fullSize,P,x,S),Bf(f,P,x,S),Bf(_,P,x,S)&&Bf(f,P,x,S),gme(P),cR(u.leftAndTop,P,x,S),P.x+=P.w,P.y+=P.h,cR(u.rightAndBottom,P,x,S),e.chartArea={left:P.left,top:P.top,right:P.left+P.w,bottom:P.top+P.h,height:P.h,width:P.w},Jo(u.chartArea,M=>{let D=M.box;Object.assign(D,e.chartArea),D.update(P.w,P.h,{left:0,top:0,right:0,bottom:0})})}},pC=class{acquireContext(o,t){}releaseContext(o){return!1}addEventListener(o,t,n){}removeEventListener(o,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(o,t,n,i){return t=Math.max(0,t||o.width),n=n||o.height,{width:t,height:Math.max(0,i?Math.floor(t/i):n)}}isAttached(o){return!0}updateConfig(o){}},dM=class extends pC{acquireContext(o){return o&&o.getContext&&o.getContext("2d")||null}updateConfig(o){o.options.animation=!1}},lC="$chartjs",Cme={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},pR=e=>e===null||e==="";function vme(e,o){let t=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[lC]={initial:{height:n,width:i,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",pR(i)){let s=U4(e,"width");s!==void 0&&(e.width=s)}if(pR(n))if(e.style.height==="")e.height=e.width/(o||2);else{let s=U4(e,"height");s!==void 0&&(e.height=s)}return e}var i9=UB?{passive:!0}:!1;function xme(e,o,t){e&&e.addEventListener(o,t,i9)}function bme(e,o,t){e&&e.canvas&&e.canvas.removeEventListener(o,t,i9)}function yme(e,o){let t=Cme[e.type]||e.type,{x:n,y:i}=qp(e,o);return{type:t,chart:o,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function mC(e,o){for(let t of e)if(t===o||t.contains(o))return!0}function Sme(e,o,t){let n=e.canvas,i=new MutationObserver(s=>{let d=!1;for(let u of s)d=d||mC(u.addedNodes,n),d=d&&!mC(u.removedNodes,n);d&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}function wme(e,o,t){let n=e.canvas,i=new MutationObserver(s=>{let d=!1;for(let u of s)d=d||mC(u.removedNodes,n),d=d&&!mC(u.addedNodes,n);d&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}var Nf=new Map,mR=0;function n9(){let e=window.devicePixelRatio;e!==mR&&(mR=e,Nf.forEach((o,t)=>{t.currentDevicePixelRatio!==e&&o()}))}function Pme(e,o){Nf.size||window.addEventListener("resize",n9),Nf.set(e,o)}function Tme(e){Nf.delete(e),Nf.size||window.removeEventListener("resize",n9)}function Mme(e,o,t){let n=e.canvas,i=n&&Z_(n);if(!i)return;let s=F4((u,f)=>{let _=i.clientWidth;t(u,f),_{let f=u[0],_=f.contentRect.width,C=f.contentRect.height;_===0&&C===0||s(_,C)});return d.observe(i),Pme(e,s),d}function oM(e,o,t){t&&t.disconnect(),o==="resize"&&Tme(e)}function Dme(e,o,t){let n=e.canvas,i=F4(s=>{e.ctx!==null&&t(yme(s,e))},e);return xme(n,o,i),i}var uM=class extends pC{acquireContext(o,t){let n=o&&o.getContext&&o.getContext("2d");return n&&n.canvas===o?(vme(o,t),n):null}releaseContext(o){let t=o.canvas;if(!t[lC])return!1;let n=t[lC].initial;["height","width"].forEach(s=>{let d=n[s];Co(d)?t.removeAttribute(s):t.setAttribute(s,d)});let i=n.style||{};return Object.keys(i).forEach(s=>{t.style[s]=i[s]}),t.width=t.width,delete t[lC],!0}addEventListener(o,t,n){this.removeEventListener(o,t);let i=o.$proxies||(o.$proxies={}),d={attach:Sme,detach:wme,resize:Mme}[t]||Dme;i[t]=d(o,t,n)}removeEventListener(o,t){let n=o.$proxies||(o.$proxies={}),i=n[t];if(!i)return;({attach:oM,detach:oM,resize:oM}[t]||bme)(o,t,i),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(o,t,n,i){return $B(o,t,n,i)}isAttached(o){let t=o&&Z_(o);return!!(t&&t.isConnected)}};function Eme(e){return!X_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?dM:uM}var Rs=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(o){let{x:t,y:n}=this.getProps(["x","y"],o);return{x:t,y:n}}hasValue(){return Sd(this.x)&&Sd(this.y)}getProps(o,t){let n=this.$animations;if(!t||!n)return this;let i={};return o.forEach(s=>{i[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),i}};function Ime(e,o){let t=e.options.ticks,n=Ome(e),i=Math.min(t.maxTicksLimit||n,n),s=t.major.enabled?Fme(o):[],d=s.length,u=s[0],f=s[d-1],_=[];if(d>i)return kme(o,_,s,d/i),_;let C=Ame(s,o,i);if(d>0){let x,y,P=d>1?Math.round((f-u)/(d-1)):null;for(iC(o,_,C,Co(P)?0:u-P,u),x=0,y=d-1;xi)return f}return Math.max(i,1)}function Fme(e){let o=[],t,n;for(t=0,n=e.length;te==="left"?"right":e==="right"?"left":e,dR=(e,o,t)=>o==="top"||o==="left"?e[o]+t:e[o]-t,uR=(e,o)=>Math.min(o||e,e);function fR(e,o){let t=[],n=e.length/o,i=e.length,s=0;for(;sd+u)))return f}function Lme(e,o){Jo(e,t=>{let n=t.gc,i=n.length/2,s;if(i>o){for(s=0;sn?n:t,n=i&&t>n?t:n,{min:yl(t,yl(n,t)),max:yl(n,yl(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let o=this.chart.data;return this.options.labels||(this.isHorizontal()?o.xLabels:o.yLabels)||o.labels||[]}getLabelItems(o=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(o))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){oa(this.options.beforeUpdate,[this])}update(o,t,n){let{beginAtZero:i,grace:s,ticks:d}=this.options,u=d.sampleSize;this.beforeUpdate(),this.maxWidth=o,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=VB(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let f=u=s||n<=1||!this.isHorizontal()){this.labelRotation=i;return}let C=this._getLabelSizes(),x=C.widest.width,y=C.highest.height,P=_r(this.chart.width-x,0,this.maxWidth);u=o.offset?this.maxWidth/n:P/(n-1),x+6>u&&(u=P/(n-(o.offset?.5:1)),f=this.maxHeight-Ff(o.grid)-t.padding-hR(o.title,this.chart.options.font),_=Math.sqrt(x*x+y*y),d=$_(Math.min(Math.asin(_r((C.highest.height+6)/u,-1,1)),Math.asin(_r(f/_,-1,1))-Math.asin(_r(y/_,-1,1)))),d=Math.max(i,Math.min(s,d))),this.labelRotation=d}afterCalculateLabelRotation(){oa(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){oa(this.options.beforeFit,[this])}fit(){let o={width:0,height:0},{chart:t,options:{ticks:n,title:i,grid:s}}=this,d=this._isVisible(),u=this.isHorizontal();if(d){let f=hR(i,t.options.font);if(u?(o.width=this.maxWidth,o.height=Ff(s)+f):(o.height=this.maxHeight,o.width=Ff(s)+f),n.display&&this.ticks.length){let{first:_,last:C,widest:x,highest:y}=this._getLabelSizes(),P=n.padding*2,S=ps(this.labelRotation),M=Math.cos(S),D=Math.sin(S);if(u){let k=n.mirror?0:D*x.width+M*y.height;o.height=Math.min(this.maxHeight,o.height+k+P)}else{let k=n.mirror?0:M*x.width+D*y.height;o.width=Math.min(this.maxWidth,o.width+k+P)}this._calculatePadding(_,C,D,M)}}this._handleMargins(),u?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=o.height):(this.width=o.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(o,t,n,i){let{ticks:{align:s,padding:d},position:u}=this.options,f=this.labelRotation!==0,_=u!=="top"&&this.axis==="x";if(this.isHorizontal()){let C=this.getPixelForTick(0)-this.left,x=this.right-this.getPixelForTick(this.ticks.length-1),y=0,P=0;f?_?(y=i*o.width,P=n*t.height):(y=n*o.height,P=i*t.width):s==="start"?P=t.width:s==="end"?y=o.width:s!=="inner"&&(y=o.width/2,P=t.width/2),this.paddingLeft=Math.max((y-C+d)*this.width/(this.width-C),0),this.paddingRight=Math.max((P-x+d)*this.width/(this.width-x),0)}else{let C=t.height/2,x=o.height/2;s==="start"?(C=0,x=o.height):s==="end"&&(C=t.height,x=0),this.paddingTop=C+d,this.paddingBottom=x+d}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){oa(this.options.afterFit,[this])}isHorizontal(){let{axis:o,position:t}=this.options;return t==="top"||t==="bottom"||o==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(o){this.beforeTickToLabelConversion(),this.generateTickLabels(o);let t,n;for(t=0,n=o.length;t({width:d[_e]||0,height:u[_e]||0});return{first:se(0),last:se(t-1),widest:se(ee),highest:se(ae),widths:d,heights:u}}getLabelForValue(o){return o}getPixelForValue(o,t){return NaN}getValueForPixel(o){}getPixelForTick(o){let t=this.ticks;return o<0||o>t.length-1?null:this.getPixelForValue(t[o].value)}getPixelForDecimal(o){this._reversePixels&&(o=1-o);let t=this._startPixel+o*this._length;return DB(this._alignToPixels?Np(this.chart,t,0):t)}getDecimalForPixel(o){let t=(o-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:o,max:t}=this;return o<0&&t<0?t:o>0&&t>0?o:0}getContext(o){let t=this.ticks||[];if(o>=0&&ou*i?u/n:f/i:f*i0}_computeGridLineItems(o){let t=this.axis,n=this.chart,i=this.options,{grid:s,position:d,border:u}=i,f=s.offset,_=this.isHorizontal(),x=this.ticks.length+(f?1:0),y=Ff(s),P=[],S=u.setContext(this.getContext()),M=S.display?S.width:0,D=M/2,k=function(L){return Np(n,L,M)},z,U,J,re,ee,ae,se,_e,de,j,W,pe;if(d==="top")z=k(this.bottom),ae=this.bottom-y,_e=z-D,j=k(o.top)+D,pe=o.bottom;else if(d==="bottom")z=k(this.top),j=o.top,pe=k(o.bottom)-D,ae=z+D,_e=this.top+y;else if(d==="left")z=k(this.right),ee=this.right-y,se=z-D,de=k(o.left)+D,W=o.right;else if(d==="right")z=k(this.left),de=o.left,W=k(o.right)-D,ee=z+D,se=this.left+y;else if(t==="x"){if(d==="center")z=k((o.top+o.bottom)/2+.5);else if(bo(d)){let L=Object.keys(d)[0],N=d[L];z=k(this.chart.scales[L].getPixelForValue(N))}j=o.top,pe=o.bottom,ae=z+D,_e=ae+y}else if(t==="y"){if(d==="center")z=k((o.left+o.right)/2);else if(bo(d)){let L=Object.keys(d)[0],N=d[L];z=k(this.chart.scales[L].getPixelForValue(N))}ee=z-D,se=ee-y,de=o.left,W=o.right}let O=Kn(i.ticks.maxTicksLimit,x),B=Math.max(1,Math.ceil(x/O));for(U=0;U0&&(K-=te/2);break}be={left:K,top:Ae,width:te+ye.width,height:Ne+ye.height,color:B.backdropColor}}D.push({label:J,font:_e,textOffset:W,options:{rotation:M,color:N,strokeColor:G,strokeWidth:$,textAlign:ne,textBaseline:pe,translation:[re,ee],backdrop:be}})}return D}_getXAxisLabelAlignment(){let{position:o,ticks:t}=this.options;if(-ps(this.labelRotation))return o==="top"?"left":"right";let i="center";return t.align==="start"?i="left":t.align==="end"?i="right":t.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(o){let{position:t,ticks:{crossAlign:n,mirror:i,padding:s}}=this.options,d=this._getLabelSizes(),u=o+s,f=d.widest.width,_,C;return t==="left"?i?(C=this.right+s,n==="near"?_="left":n==="center"?(_="center",C+=f/2):(_="right",C+=f)):(C=this.right-u,n==="near"?_="right":n==="center"?(_="center",C-=f/2):(_="left",C=this.left)):t==="right"?i?(C=this.left+s,n==="near"?_="right":n==="center"?(_="center",C-=f/2):(_="left",C-=f)):(C=this.left+u,n==="near"?_="left":n==="center"?(_="center",C+=f/2):(_="right",C=this.right)):_="right",{textAlign:_,x:C}}_computeLabelArea(){if(this.options.ticks.mirror)return;let o=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:o.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:o.width}}drawBackground(){let{ctx:o,options:{backgroundColor:t},left:n,top:i,width:s,height:d}=this;t&&(o.save(),o.fillStyle=t,o.fillRect(n,i,s,d),o.restore())}getLineWidthForValue(o){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let i=this.ticks.findIndex(s=>s.value===o);return i>=0?t.setContext(this.getContext(i)).lineWidth:0}drawGrid(o){let t=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(o)),s,d,u=(f,_,C)=>{!C.width||!C.color||(n.save(),n.lineWidth=C.width,n.strokeStyle=C.color,n.setLineDash(C.borderDash||[]),n.lineDashOffset=C.borderDashOffset,n.beginPath(),n.moveTo(f.x,f.y),n.lineTo(_.x,_.y),n.stroke(),n.restore())};if(t.display)for(s=0,d=i.length;s{this.draw(s)}}]:[{z:n,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(o){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[],s,d;for(s=0,d=t.length;s{let n=t.split("."),i=n.pop(),s=[e].concat(n).join("."),d=o[t].split("."),u=d.pop(),f=d.join(".");ba.route(s,i,f,u)})}function $me(e){return"id"in e&&"defaults"in e}var fM=class{constructor(){this.controllers=new Q0(Hp,"datasets",!0),this.elements=new Q0(Rs,"elements"),this.plugins=new Q0(Object,"plugins"),this.scales=new Q0(Md,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...o){this._each("register",o)}remove(...o){this._each("unregister",o)}addControllers(...o){this._each("register",o,this.controllers)}addElements(...o){this._each("register",o,this.elements)}addPlugins(...o){this._each("register",o,this.plugins)}addScales(...o){this._each("register",o,this.scales)}getController(o){return this._get(o,this.controllers,"controller")}getElement(o){return this._get(o,this.elements,"element")}getPlugin(o){return this._get(o,this.plugins,"plugin")}getScale(o){return this._get(o,this.scales,"scale")}removeControllers(...o){this._each("unregister",o,this.controllers)}removeElements(...o){this._each("unregister",o,this.elements)}removePlugins(...o){this._each("unregister",o,this.plugins)}removeScales(...o){this._each("unregister",o,this.scales)}_each(o,t,n){[...t].forEach(i=>{let s=n||this._getRegistryForType(i);n||s.isForType(i)||s===this.plugins&&i.id?this._exec(o,s,i):Jo(i,d=>{let u=n||this._getRegistryForType(d);this._exec(o,u,d)})})}_exec(o,t,n){let i=j_(o);oa(n["before"+i],[],n),t[o](n),oa(n["after"+i],[],n)}_getRegistryForType(o){for(let t=0;ts.filter(u=>!d.some(f=>u.plugin.id===f.plugin.id));this._notify(i(t,n),o,"stop"),this._notify(i(n,t),o,"start")}};function Ume(e){let o={},t=[],n=Object.keys(fc.plugins.items);for(let s=0;s1&&gR(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function _R(e,o,t){if(t[o+"AxisID"]===e)return{axis:o}}function Zme(e,o){if(o.data&&o.data.datasets){let t=o.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(t.length)return _R(e,"x",t[0])||_R(e,"y",t[0])}return{}}function ede(e,o){let t=Rp[e.type]||{scales:{}},n=o.scales||{},i=gM(e.type,o),s=Object.create(null);return Object.keys(n).forEach(d=>{let u=n[d];if(!bo(u))return console.error(`Invalid scale configuration for scale: ${d}`);if(u._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${d}`);let f=_M(d,u,Zme(d,e),ba.scales[u.type]),_=Kme(f,i),C=t.scales||{};s[d]=q0(Object.create(null),[{axis:f},u,C[f],C[_]])}),e.data.datasets.forEach(d=>{let u=d.type||e.type,f=d.indexAxis||gM(u,o),C=(Rp[u]||{}).scales||{};Object.keys(C).forEach(x=>{let y=Jme(x,f),P=d[y+"AxisID"]||y;s[P]=s[P]||Object.create(null),q0(s[P],[{axis:y},n[P],C[x]])})}),Object.keys(s).forEach(d=>{let u=s[d];q0(u,[ba.scales[u.type],ba.scale])}),s}function o9(e){let o=e.options||(e.options={});o.plugins=Kn(o.plugins,{}),o.scales=ede(e,o)}function a9(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function tde(e){return e=e||{},e.data=a9(e.data),o9(e),e}var CR=new Map,r9=new Set;function nC(e,o){let t=CR.get(e);return t||(t=o(),CR.set(e,t),r9.add(t)),t}var kf=(e,o,t)=>{let n=Gc(o,t);n!==void 0&&e.add(n)},CM=class{constructor(o){this._config=tde(o),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(o){this._config.type=o}get data(){return this._config.data}set data(o){this._config.data=a9(o)}get options(){return this._config.options}set options(o){this._config.options=o}get plugins(){return this._config.plugins}update(){let o=this._config;this.clearCache(),o9(o)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(o){return nC(o,()=>[[`datasets.${o}`,""]])}datasetAnimationScopeKeys(o,t){return nC(`${o}.transition.${t}`,()=>[[`datasets.${o}.transitions.${t}`,`transitions.${t}`],[`datasets.${o}`,""]])}datasetElementScopeKeys(o,t){return nC(`${o}-${t}`,()=>[[`datasets.${o}.elements.${t}`,`datasets.${o}`,`elements.${t}`,""]])}pluginScopeKeys(o){let t=o.id,n=this.type;return nC(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...o.additionalOptionScopes||[]]])}_cachedScopes(o,t){let n=this._scopeCache,i=n.get(o);return(!i||t)&&(i=new Map,n.set(o,i)),i}getOptionScopes(o,t,n){let{options:i,type:s}=this,d=this._cachedScopes(o,n),u=d.get(t);if(u)return u;let f=new Set;t.forEach(C=>{o&&(f.add(o),C.forEach(x=>kf(f,o,x))),C.forEach(x=>kf(f,i,x)),C.forEach(x=>kf(f,Rp[s]||{},x)),C.forEach(x=>kf(f,ba,x)),C.forEach(x=>kf(f,Q_,x))});let _=Array.from(f);return _.length===0&&_.push(Object.create(null)),r9.has(t)&&d.set(t,_),_}chartOptionScopes(){let{options:o,type:t}=this;return[o,Rp[t]||{},ba.datasets[t]||{},{type:t},ba,Q_]}resolveNamedOptions(o,t,n,i=[""]){let s={$shared:!0},{resolver:d,subPrefixes:u}=vR(this._resolverCache,o,i),f=d;if(nde(d,t)){s.$shared=!1,n=zc(n)?n():n;let _=this.createResolver(o,n,u);f=yd(d,n,_)}for(let _ of t)s[_]=f[_];return s}createResolver(o,t,n=[""],i){let{resolver:s}=vR(this._resolverCache,o,n);return bo(t)?yd(s,t,void 0,i):s}};function vR(e,o,t){let n=e.get(o);n||(n=new Map,e.set(o,n));let i=t.join(),s=n.get(i);return s||(s={resolver:K_(o,t),subPrefixes:t.filter(u=>!u.toLowerCase().includes("hover"))},n.set(i,s)),s}var ide=e=>bo(e)&&Object.getOwnPropertyNames(e).some(o=>zc(e[o]));function nde(e,o){let{isScriptable:t,isIndexable:n}=z4(e);for(let i of o){let s=t(i),d=n(i),u=(d||s)&&e[i];if(s&&(zc(u)||ide(u))||d&&ga(u))return!0}return!1}var ode="4.5.1",ade=["top","bottom","left","right","chartArea"];function xR(e,o){return e==="top"||e==="bottom"||ade.indexOf(e)===-1&&o==="x"}function bR(e,o){return function(t,n){return t[e]===n[e]?t[o]-n[o]:t[e]-n[e]}}function yR(e){let o=e.chart,t=o.options.animation;o.notifyPlugins("afterRender"),oa(t&&t.onComplete,[e],o)}function rde(e){let o=e.chart,t=o.options.animation;oa(t&&t.onProgress,[e],o)}function l9(e){return X_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var sC={},SR=e=>{let o=l9(e);return Object.values(sC).filter(t=>t.canvas===o).pop()};function lde(e,o,t){let n=Object.keys(e);for(let i of n){let s=+i;if(s>=o){let d=e[i];delete e[i],(t>0||s>o)&&(e[s+t]=d)}}}function sde(e,o,t,n){return!t||e.type==="mouseout"?null:n?o:e}var Pl=(()=>{class e{static defaults=ba;static instances=sC;static overrides=Rp;static registry=fc;static version=ode;static getChart=SR;static register(...t){fc.add(...t),wR()}static unregister(...t){fc.remove(...t),wR()}constructor(t,n){let i=this.config=new CM(n),s=l9(t),d=SR(s);if(d)throw new Error("Canvas is already in use. Chart with ID '"+d.id+"' must be destroyed before the canvas with ID '"+d.canvas.id+"' can be reused.");let u=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Eme(s)),this.platform.updateConfig(i);let f=this.platform.acquireContext(s,u.aspectRatio),_=f&&f.canvas,C=_&&_.height,x=_&&_.width;if(this.id=yB(),this.ctx=f,this.canvas=_,this.width=x,this.height=C,this._options=u,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new hM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=FB(y=>this.update(y),u.resizeDelay||0),this._dataChanges=[],sC[this.id]=this,!f||!_){console.error("Failed to create chart: can't acquire context from the given item");return}$c.listen(this,"complete",yR),$c.listen(this,"progress",rde),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:d}=this;return Co(t)?n&&d?d:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return fc}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():$4(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return L4(this.canvas,this.ctx),this}stop(){return $c.stop(this),this}resize(t,n){$c.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){let i=this.options,s=this.canvas,d=i.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(s,t,n,d),f=i.devicePixelRatio||this.platform.getDevicePixelRatio(),_=this.width?"resize":"attach";this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,$4(this,f,!0)&&(this.notifyPlugins("resize",{size:u}),oa(i.onResize,[this,u],this),this.attached&&this._doResize(_)&&this.render())}ensureScalesHaveIDs(){let n=this.options.scales||{};Jo(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){let t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((u,f)=>(u[f]=!1,u),{}),d=[];n&&(d=d.concat(Object.keys(n).map(u=>{let f=n[u],_=_M(u,f),C=_==="r",x=_==="x";return{options:f,dposition:C?"chartArea":x?"bottom":"left",dtype:C?"radialLinear":x?"category":"linear"}}))),Jo(d,u=>{let f=u.options,_=f.id,C=_M(_,f),x=Kn(f.type,u.dtype);(f.position===void 0||xR(f.position,C)!==xR(u.dposition))&&(f.position=u.dposition),s[_]=!0;let y=null;if(_ in i&&i[_].type===x)y=i[_];else{let P=fc.getScale(x);y=new P({id:_,type:x,ctx:this.ctx,chart:this}),i[y.id]=y}y.init(f,t)}),Jo(s,(u,f)=>{u||delete i[f]}),Jo(i,u=>{Jr.configure(this,u,u.options),Jr.addBox(this,u)})}_updateMetasets(){let t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,d)=>s.index-d.index),i>n){for(let s=n;sn.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(d=>d===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){let t=[],n=this.data.datasets,i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let n=this.config;n.update();let i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let d=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let u=0;for(let C=0,x=this.data.datasets.length;C{C.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bR("z","_idx"));let{_active:f,_lastEvent:_}=this;_?this._eventHandler(_,!0):f.length&&this._updateHoverStyles(f,f,!0),this.render()}_updateScales(){Jo(this.scales,t=>{Jr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!P4(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(let{method:i,start:s,count:d}of n){let u=i==="_removeElements"?-d:d;lde(t,s,u)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let n=this.data.datasets.length,i=d=>new Set(t.filter(u=>u[0]===d).map((u,f)=>f+","+u.splice(1).join(","))),s=i(0);for(let d=1;dd.split(",")).map(d=>({method:d[1],start:+d[2],count:+d[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Jr.update(this,this.width,this.height,t);let n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Jo(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,d)=>{s._idx=d}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let n=this.ctx,i={meta:t,index:t.index,cancelable:!0},s=K4(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(s&&Df(n,s),t.controller.draw(),s&&Ef(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return pc(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){let d=pme.modes[n];return typeof d=="function"?d(this,t,i,s):[]}getDatasetMeta(t){let n=this.data.datasets[t],i=this._metasets,s=i.filter(d=>d&&d._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=jc(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let n=this.data.datasets[t];if(!n)return!1;let i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){let i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){let s=i?"show":"hide",d=this.getDatasetMeta(t),u=d.controller._resolveAnimations(void 0,s);z0(n)?(d.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),u.update(d,{visible:i}),this.update(f=>f.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){let n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),$c.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,d,u),t[d]=u},s=(d,u,f)=>{d.offsetX=u,d.offsetY=f,this._eventHandler(d)};Jo(this.options.events,d=>i(d,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,n=this.platform,i=(_,C)=>{n.addEventListener(this,_,C),t[_]=C},s=(_,C)=>{t[_]&&(n.removeEventListener(this,_,C),delete t[_])},d=(_,C)=>{this.canvas&&this.resize(_,C)},u,f=()=>{s("attach",f),this.attached=!0,this.resize(),i("resize",d),i("detach",u)};u=()=>{this.attached=!1,s("resize",d),this._stop(),this._resize(0,0),i("attach",f)},n.isAttached(this.canvas)?f():u()}unbindEvents(){Jo(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Jo(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){let s=i?"set":"remove",d,u,f,_;for(n==="dataset"&&(d=this.getDatasetMeta(t[0].datasetIndex),d.controller["_"+s+"DatasetHoverStyle"]()),f=0,_=t.length;f<_;++f){u=t[f];let C=u&&this.getDatasetMeta(u.datasetIndex).controller;C&&C[s+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let n=this._active||[],i=t.map(({datasetIndex:d,index:u})=>{let f=this.getDatasetMeta(d);if(!f)throw new Error("No dataset found at index "+d);return{datasetIndex:d,element:f.data[u],index:u}});!Tf(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){let s=this.options.hover,d=(_,C)=>_.filter(x=>!C.some(y=>x.datasetIndex===y.datasetIndex&&x.index===y.index)),u=d(n,t),f=i?t:d(t,n);u.length&&this.updateHoverStyle(u,s.mode,!1),f.length&&s.mode&&this.updateHoverStyle(f,s.mode,!0)}_eventHandler(t,n){let i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=u=>(u.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;let d=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(d||i.changed)&&this.render(),this}_handleEvent(t,n,i){let{_active:s=[],options:d}=this,u=n,f=this._getActiveElements(t,s,i,u),_=PB(t),C=sde(t,this._lastEvent,i,_);i&&(this._lastEvent=null,oa(d.onHover,[t,f,this],this),_&&oa(d.onClick,[t,f,this],this));let x=!Tf(f,s);return(x||n)&&(this._active=f,this._updateHoverStyles(f,s,n)),this._lastEvent=C,x}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;let d=this.options.hover;return this.getElementsAtEventForMode(t,d.mode,d,s)}}return e})();function wR(){return Jo(Pl.instances,e=>e._plugins.invalidate())}function cde(e,o,t){let{startAngle:n,x:i,y:s,outerRadius:d,innerRadius:u,options:f}=o,{borderWidth:_,borderJoinStyle:C}=f,x=Math.min(_/d,Lr(n-t));if(e.beginPath(),e.arc(i,s,d-_/2,n+x/2,t-x/2),u>0){let y=Math.min(_/u,Lr(n-t));e.arc(i,s,u+_/2,t-y/2,n+y/2,!0)}else{let y=Math.min(_/2,d*Lr(n-t));if(C==="round")e.arc(i,s,y,t-Bo/2,n+Bo/2,!0);else if(C==="bevel"){let P=2*y*y,S=-P*Math.cos(t+Bo/2)+i,M=-P*Math.sin(t+Bo/2)+s,D=P*Math.cos(n+Bo/2)+i,k=P*Math.sin(n+Bo/2)+s;e.lineTo(S,M),e.lineTo(D,k)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function pde(e,o,t){let{startAngle:n,pixelMargin:i,x:s,y:d,outerRadius:u,innerRadius:f}=o,_=i/u;e.beginPath(),e.arc(s,d,u,n-_,t+_),f>i?(_=i/f,e.arc(s,d,f,t+_,n-_,!0)):e.arc(s,d,i,t+za,n-za),e.closePath(),e.clip()}function mde(e){return J_(e,["outerStart","outerEnd","innerStart","innerEnd"])}function dde(e,o,t,n){let i=mde(e.options.borderRadius),s=(t-o)/2,d=Math.min(s,n*o/2),u=f=>{let _=(t-Math.min(s,f))*n/2;return _r(f,0,Math.min(s,_))};return{outerStart:u(i.outerStart),outerEnd:u(i.outerEnd),innerStart:_r(i.innerStart,0,d),innerEnd:_r(i.innerEnd,0,d)}}function W0(e,o,t,n){return{x:t+e*Math.cos(o),y:n+e*Math.sin(o)}}function dC(e,o,t,n,i,s){let{x:d,y:u,startAngle:f,pixelMargin:_,innerRadius:C}=o,x=Math.max(o.outerRadius+n+t-_,0),y=C>0?C+n+t+_:0,P=0,S=i-f;if(n){let B=C>0?C-n:0,L=x>0?x-n:0,N=(B+L)/2,G=N!==0?S*N/(N+n):S;P=(S-G)/2}let M=Math.max(.001,S*x-t/Bo)/x,D=(S-M)/2,k=f+D+P,z=i-D-P,{outerStart:U,outerEnd:J,innerStart:re,innerEnd:ee}=dde(o,y,x,z-k),ae=x-U,se=x-J,_e=k+U/ae,de=z-J/se,j=y+re,W=y+ee,pe=k+re/j,O=z-ee/W;if(e.beginPath(),s){let B=(_e+de)/2;if(e.arc(d,u,x,_e,B),e.arc(d,u,x,B,de),J>0){let $=W0(se,de,d,u);e.arc($.x,$.y,J,de,z+za)}let L=W0(W,z,d,u);if(e.lineTo(L.x,L.y),ee>0){let $=W0(W,O,d,u);e.arc($.x,$.y,ee,z+za,O+Math.PI)}let N=(z-ee/y+(k+re/y))/2;if(e.arc(d,u,y,z-ee/y,N,!0),e.arc(d,u,y,N,k+re/y,!0),re>0){let $=W0(j,pe,d,u);e.arc($.x,$.y,re,pe+Math.PI,k-za)}let G=W0(ae,k,d,u);if(e.lineTo(G.x,G.y),U>0){let $=W0(ae,_e,d,u);e.arc($.x,$.y,U,k-za,_e)}}else{e.moveTo(d,u);let B=Math.cos(_e)*x+d,L=Math.sin(_e)*x+u;e.lineTo(B,L);let N=Math.cos(de)*x+d,G=Math.sin(de)*x+u;e.lineTo(N,G)}e.closePath()}function ude(e,o,t,n,i){let{fullCircles:s,startAngle:d,circumference:u}=o,f=o.endAngle;if(s){dC(e,o,t,n,f,i);for(let _=0;_=Bo&&P===0&&C!=="miter"&&cde(e,o,M),s||(dC(e,o,t,n,M,i),e.stroke())}var vM=class extends Rs{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:o=>o!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(o){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,o&&Object.assign(this,o)}inRange(o,t,n){let i=this.getProps(["x","y"],n),{angle:s,distance:d}=E4(i,{x:o,y:t}),{startAngle:u,endAngle:f,innerRadius:_,outerRadius:C,circumference:x}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),y=(this.options.spacing+this.options.borderWidth)/2,P=Kn(x,f-u),S=G0(s,u,f)&&u!==f,M=P>=_a||S,D=dc(d,_+y,C+y);return M&&D}getCenterPoint(o){let{x:t,y:n,startAngle:i,endAngle:s,innerRadius:d,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:f,spacing:_}=this.options,C=(i+s)/2,x=(d+u+_+f)/2;return{x:t+Math.cos(C)*x,y:n+Math.sin(C)*x}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){let{options:t,circumference:n}=this,i=(t.offset||0)/4,s=(t.spacing||0)/2,d=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=n>_a?Math.floor(n/_a):0,n===0||this.innerRadius<0||this.outerRadius<0)return;o.save();let u=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(u)*i,Math.sin(u)*i);let f=1-Math.sin(Math.min(Bo,n||0)),_=i*f;o.fillStyle=t.backgroundColor,o.strokeStyle=t.borderColor,ude(o,this,_,s,d),fde(o,this,_,s,d),o.restore()}};function s9(e,o,t=o){e.lineCap=Kn(t.borderCapStyle,o.borderCapStyle),e.setLineDash(Kn(t.borderDash,o.borderDash)),e.lineDashOffset=Kn(t.borderDashOffset,o.borderDashOffset),e.lineJoin=Kn(t.borderJoinStyle,o.borderJoinStyle),e.lineWidth=Kn(t.borderWidth,o.borderWidth),e.strokeStyle=Kn(t.borderColor,o.borderColor)}function hde(e,o,t){e.lineTo(t.x,t.y)}function gde(e){return e.stepped?NB:e.tension||e.cubicInterpolationMode==="monotone"?LB:hde}function c9(e,o,t={}){let n=e.length,{start:i=0,end:s=n-1}=t,{start:d,end:u}=o,f=Math.max(i,d),_=Math.min(s,u),C=iu&&s>u;return{count:n,start:f,loop:o.loop,ilen:_(d+(_?u-J:J))%s,U=()=>{M!==D&&(e.lineTo(C,D),e.lineTo(C,M),e.lineTo(C,k))};for(f&&(P=i[z(0)],e.moveTo(P.x,P.y)),y=0;y<=u;++y){if(P=i[z(y)],P.skip)continue;let J=P.x,re=P.y,ee=J|0;ee===S?(reD&&(D=re),C=(x*C+J)/++x):(U(),e.lineTo(J,re),S=ee,x=0,M=D=re),k=re}U()}function xM(e){let o=e.options,t=o.borderDash&&o.borderDash.length;return!e._decimated&&!e._loop&&!o.tension&&o.cubicInterpolationMode!=="monotone"&&!o.stepped&&!t?Cde:_de}function vde(e){return e.stepped?WB:e.tension||e.cubicInterpolationMode==="monotone"?QB:kp}function xde(e,o,t,n){let i=o._path;i||(i=o._path=new Path2D,o.path(i,t,n)&&i.closePath()),s9(e,o.options),e.stroke(i)}function bde(e,o,t,n){let{segments:i,options:s}=o,d=xM(o);for(let u of i)s9(e,s,u.style),e.beginPath(),d(e,o,u,{start:t,end:t+n-1})&&e.closePath(),e.stroke()}var yde=typeof Path2D=="function";function Sde(e,o,t,n){yde&&!o.options.segment?xde(e,o,t,n):bde(e,o,t,n)}var hC=(()=>{class e extends Rs{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){let i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){let s=i.spanGaps?this._loop:this._fullLoop;jB(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=JB(this,this.options.segment))}first(){let t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){let t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){let i=this.options,s=t[n],d=this.points,u=J4(this,{property:n,start:s,end:s});if(!u.length)return;let f=[],_=vde(i),C,x;for(C=0,x=u.length;C{class e extends Rs{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,i){let s=this.options,{x:d,y:u}=this.getProps(["x","y"],i);return Math.pow(t-d,2)+Math.pow(n-u,2)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function m9(e){return yM[e%yM.length]}function d9(e){return TR[e%TR.length]}function Ode(e,o){return e.borderColor=m9(o),e.backgroundColor=d9(o),++o}function Ade(e,o){return e.backgroundColor=e.data.map(()=>m9(o++)),o}function Fde(e,o){return e.backgroundColor=e.data.map(()=>d9(o++)),o}function kde(e){let o=0;return(t,n)=>{let i=e.getDatasetMeta(n).controller;i instanceof IM?o=Ade(t,o):i instanceof ZR?o=Fde(t,o):i&&(o=Ode(t,o))}}function MR(e){let o;for(o in e)if(e[o].borderColor||e[o].backgroundColor)return!0;return!1}function Bde(e){return e&&(e.borderColor||e.backgroundColor)}function Rde(){return ba.borderColor!=="rgba(0,0,0,0.1)"||ba.backgroundColor!=="rgba(0,0,0,0.1)"}var Nde={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,o,t){if(!t.enabled)return;let{data:{datasets:n},options:i}=e.config,{elements:s}=i,d=MR(n)||Bde(i)||s&&MR(s)||Rde();if(!t.forceOverride&&d)return;let u=kde(e);n.forEach(u)}};function Lde(e,o,t,n,i){let s=i.samples||n;if(s>=t)return e.slice(o,o+t);let d=[],u=(t-2)/(s-2),f=0,_=o+t-1,C=o,x,y,P,S,M;for(d[f++]=e[C],x=0;xP&&(P=S,y=e[z],M=z);d[f++]=y,C=M}return d[f++]=e[_],d}function Vde(e,o,t,n){let i=0,s=0,d,u,f,_,C,x,y,P,S,M,D=[],k=o+t-1,z=e[o].x,J=e[k].x-z;for(d=o;dM&&(M=_,y=d),i=(s*i+u.x)/++s;else{let ee=d-1;if(!Co(x)&&!Co(y)){let ae=Math.min(x,y),se=Math.max(x,y);ae!==P&&ae!==ee&&D.push(qt(at({},e[ae]),{x:i})),se!==P&&se!==ee&&D.push(qt(at({},e[se]),{x:i}))}d>0&&ee!==P&&D.push(e[ee]),D.push(u),C=re,s=0,S=M=_,x=y=P=d}}return D}function u9(e){if(e._decimated){let o=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:o})}}function DR(e){e.data.datasets.forEach(o=>{u9(o)})}function qde(e,o){let t=o.length,n=0,i,{iScale:s}=e,{min:d,max:u,minDefined:f,maxDefined:_}=s.getUserBounds();return f&&(n=_r(cc(o,s.axis,d).lo,0,t-1)),_?i=_r(cc(o,s.axis,u).hi+1,n,t)-n:i=t-n,{start:n,count:i}}var zde={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,o,t)=>{if(!t.enabled){DR(e);return}let n=e.width;e.data.datasets.forEach((i,s)=>{let{_data:d,indexAxis:u}=i,f=e.getDatasetMeta(s),_=d||i.data;if(U0([u,e.options.indexAxis])==="y"||!f.controller.supportsDecimation)return;let C=e.scales[f.xAxisID];if(C.type!=="linear"&&C.type!=="time"||e.options.parsing)return;let{start:x,count:y}=qde(f,_),P=t.threshold||4*n;if(y<=P){u9(i);return}Co(d)&&(i._data=_,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(M){this._data=M}}));let S;switch(t.algorithm){case"lttb":S=Lde(_,x,y,n,t);break;case"min-max":S=Vde(_,x,y,n);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}i._decimated=S})},destroy(e){DR(e)}};function Hde(e,o,t){let n=e.segments,i=e.points,s=o.points,d=[];for(let u of n){let{start:f,end:_}=u;_=gC(f,_,i);let C=SM(t,i[f],i[_],u.loop);if(!o.segments){d.push({source:u,target:C,start:i[f],end:i[_]});continue}let x=J4(o,C);for(let y of x){let P=SM(t,s[y.start],s[y.end],y.loop),S=Y4(u,i,P);for(let M of S)d.push({source:M,target:y,start:{[t]:ER(C,P,"start",Math.max)},end:{[t]:ER(C,P,"end",Math.min)}})}}return d}function SM(e,o,t,n){if(n)return;let i=o[e],s=t[e];return e==="angle"&&(i=Lr(i),s=Lr(s)),{property:e,start:i,end:s}}function Gde(e,o){let{x:t=null,y:n=null}=e||{},i=o.points,s=[];return o.segments.forEach(({start:d,end:u})=>{u=gC(d,u,i);let f=i[d],_=i[u];n!==null?(s.push({x:f.x,y:n}),s.push({x:_.x,y:n})):t!==null&&(s.push({x:t,y:f.y}),s.push({x:t,y:_.y}))}),s}function gC(e,o,t){for(;o>e;o--){let n=t[o];if(!isNaN(n.x)&&!isNaN(n.y))break}return o}function ER(e,o,t,n){return e&&o?n(e[t],o[t]):e?e[t]:o?o[t]:0}function f9(e,o){let t=[],n=!1;return ga(e)?(n=!0,t=e):t=Gde(e,o),t.length?new hC({points:t,options:{tension:0},_loop:n,_fullLoop:n}):null}function IR(e){return e&&e.fill!==!1}function jde(e,o,t){let i=e[o].fill,s=[o],d;if(!t)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!Fa(i))return i;if(d=e[i],!d)return!1;if(d.visible)return i;s.push(i),i=d.fill}return!1}function $de(e,o,t){let n=Yde(e);if(bo(n))return isNaN(n.value)?!1:n;let i=parseFloat(n);return Fa(i)&&Math.floor(i)===i?Ude(n[0],o,i,t):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Ude(e,o,t,n){return(e==="-"||e==="+")&&(t=o+t),t===o||t<0||t>=n?!1:t}function Wde(e,o){let t=null;return e==="start"?t=o.bottom:e==="end"?t=o.top:bo(e)?t=o.getPixelForValue(e.value):o.getBasePixel&&(t=o.getBasePixel()),t}function Qde(e,o,t){let n;return e==="start"?n=t:e==="end"?n=o.options.reverse?o.min:o.max:bo(e)?n=e.value:n=o.getBaseValue(),n}function Yde(e){let o=e.options,t=o.fill,n=Kn(t&&t.target,t);return n===void 0&&(n=!!o.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function Jde(e){let{scale:o,index:t,line:n}=e,i=[],s=n.segments,d=n.points,u=Kde(o,t);u.push(f9({x:null,y:o.bottom},n));for(let f=0;f=0;--d){let u=i[d].$filler;u&&(u.line.updateControlPoints(s,u.axis),n&&u.fill&&lM(e.ctx,u,s))}},beforeDatasetsDraw(e,o,t){if(t.drawTime!=="beforeDatasetsDraw")return;let n=e.getSortedVisibleDatasetMetas();for(let i=n.length-1;i>=0;--i){let s=n[i].$filler;IR(s)&&lM(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,o,t){let n=o.meta.$filler;!IR(n)||t.drawTime!=="beforeDatasetDraw"||lM(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},kR=(e,o)=>{let{boxHeight:t=o,boxWidth:n=o}=e;return e.usePointStyle&&(t=Math.min(t,o),n=e.pointStyleWidth||Math.min(n,o)),{boxWidth:n,boxHeight:t,itemHeight:Math.max(o,t)}},s0e=(e,o)=>e!==null&&o!==null&&e.datasetIndex===o.datasetIndex&&e.index===o.index,fC=class extends Rs{constructor(o){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=o.chart,this.options=o.options,this.ctx=o.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(o,t,n){this.maxWidth=o,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let o=this.options.labels||{},t=oa(o.generateLabels,[this.chart],this)||[];o.filter&&(t=t.filter(n=>o.filter(n,this.chart.data))),o.sort&&(t=t.sort((n,i)=>o.sort(n,i,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:o,ctx:t}=this;if(!o.display){this.width=this.height=0;return}let n=o.labels,i=sr(n.font),s=i.size,d=this._computeTitleHeight(),{boxWidth:u,itemHeight:f}=kR(n,s),_,C;t.font=i.string,this.isHorizontal()?(_=this.maxWidth,C=this._fitRows(d,s,u,f)+10):(C=this.maxHeight,_=this._fitCols(d,i,u,f)+10),this.width=Math.min(_,o.maxWidth||this.maxWidth),this.height=Math.min(C,o.maxHeight||this.maxHeight)}_fitRows(o,t,n,i){let{ctx:s,maxWidth:d,options:{labels:{padding:u}}}=this,f=this.legendHitBoxes=[],_=this.lineWidths=[0],C=i+u,x=o;s.textAlign="left",s.textBaseline="middle";let y=-1,P=-C;return this.legendItems.forEach((S,M)=>{let D=n+t/2+s.measureText(S.text).width;(M===0||_[_.length-1]+D+2*u>d)&&(x+=C,_[_.length-(M>0?0:1)]=0,P+=C,y++),f[M]={left:0,top:P,row:y,width:D,height:i},_[_.length-1]+=D+u}),x}_fitCols(o,t,n,i){let{ctx:s,maxHeight:d,options:{labels:{padding:u}}}=this,f=this.legendHitBoxes=[],_=this.columnSizes=[],C=d-o,x=u,y=0,P=0,S=0,M=0;return this.legendItems.forEach((D,k)=>{let{itemWidth:z,itemHeight:U}=c0e(n,t,s,D,i);k>0&&P+U+2*u>C&&(x+=y+u,_.push({width:y,height:P}),S+=y+u,M++,y=P=0),f[k]={left:S,top:P,col:M,width:z,height:U},y=Math.max(y,z),P+=U+u}),x+=y,_.push({width:y,height:P}),x}adjustHitBoxes(){if(!this.options.display)return;let o=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:i},rtl:s}}=this,d=wd(s,this.left,this.width);if(this.isHorizontal()){let u=0,f=Vr(n,this.left+i,this.right-this.lineWidths[u]);for(let _ of t)u!==_.row&&(u=_.row,f=Vr(n,this.left+i,this.right-this.lineWidths[u])),_.top+=this.top+o+i,_.left=d.leftForLtr(d.x(f),_.width),f+=_.width+i}else{let u=0,f=Vr(n,this.top+o+i,this.bottom-this.columnSizes[u].height);for(let _ of t)_.col!==u&&(u=_.col,f=Vr(n,this.top+o+i,this.bottom-this.columnSizes[u].height)),_.top=f,_.left+=this.left+i,_.left=d.leftForLtr(d.x(_.left),_.width),f+=_.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let o=this.ctx;Df(o,this),this._draw(),Ef(o)}}_draw(){let{options:o,columnSizes:t,lineWidths:n,ctx:i}=this,{align:s,labels:d}=o,u=ba.color,f=wd(o.rtl,this.left,this.width),_=sr(d.font),{padding:C}=d,x=_.size,y=x/2,P;this.drawTitle(),i.textAlign=f.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=_.string;let{boxWidth:S,boxHeight:M,itemHeight:D}=kR(d,x),k=function(ee,ae,se){if(isNaN(S)||S<=0||isNaN(M)||M<0)return;i.save();let _e=Kn(se.lineWidth,1);if(i.fillStyle=Kn(se.fillStyle,u),i.lineCap=Kn(se.lineCap,"butt"),i.lineDashOffset=Kn(se.lineDashOffset,0),i.lineJoin=Kn(se.lineJoin,"miter"),i.lineWidth=_e,i.strokeStyle=Kn(se.strokeStyle,u),i.setLineDash(Kn(se.lineDash,[])),d.usePointStyle){let de={radius:M*Math.SQRT2/2,pointStyle:se.pointStyle,rotation:se.rotation,borderWidth:_e},j=f.xPlus(ee,S/2),W=ae+y;V4(i,de,j,W,d.pointStyleWidth&&S)}else{let de=ae+Math.max((x-M)/2,0),j=f.leftForLtr(ee,S),W=Vp(se.borderRadius);i.beginPath(),Object.values(W).some(pe=>pe!==0)?$0(i,{x:j,y:de,w:S,h:M,radius:W}):i.rect(j,de,S,M),i.fill(),_e!==0&&i.stroke()}i.restore()},z=function(ee,ae,se){Lp(i,se.text,ee,ae+D/2,_,{strikethrough:se.hidden,textAlign:f.textAlign(se.textAlign)})},U=this.isHorizontal(),J=this._computeTitleHeight();U?P={x:Vr(s,this.left+C,this.right-n[0]),y:this.top+C+J,line:0}:P={x:this.left+C,y:Vr(s,this.top+J+C,this.bottom-t[0].height),line:0},W4(this.ctx,o.textDirection);let re=D+C;this.legendItems.forEach((ee,ae)=>{i.strokeStyle=ee.fontColor,i.fillStyle=ee.fontColor;let se=i.measureText(ee.text).width,_e=f.textAlign(ee.textAlign||(ee.textAlign=d.textAlign)),de=S+y+se,j=P.x,W=P.y;f.setWidth(this.width),U?ae>0&&j+de+C>this.right&&(W=P.y+=re,P.line++,j=P.x=Vr(s,this.left+C,this.right-n[P.line])):ae>0&&W+re>this.bottom&&(j=P.x=j+t[P.line].width+C,P.line++,W=P.y=Vr(s,this.top+J+C,this.bottom-t[P.line].height));let pe=f.x(j);if(k(pe,W,ee),j=kB(_e,j+S+y,U?j+de:this.right,o.rtl),z(f.x(j),W,ee),U)P.x+=de+C;else if(typeof ee.text!="string"){let O=_.lineHeight;P.y+=h9(ee,O)+C}else P.y+=re}),Q4(this.ctx,o.textDirection)}drawTitle(){let o=this.options,t=o.title,n=sr(t.font),i=qr(t.padding);if(!t.display)return;let s=wd(o.rtl,this.left,this.width),d=this.ctx,u=t.position,f=n.size/2,_=i.top+f,C,x=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),C=this.top+_,x=Vr(o.align,x,this.right-y);else{let S=this.columnSizes.reduce((M,D)=>Math.max(M,D.height),0);C=_+Vr(o.align,this.top,this.bottom-S-o.labels.padding-this._computeTitleHeight())}let P=Vr(u,x,x+y);d.textAlign=s.textAlign(W_(u)),d.textBaseline="middle",d.strokeStyle=t.color,d.fillStyle=t.color,d.font=n.string,Lp(d,t.text,P,C,n)}_computeTitleHeight(){let o=this.options.title,t=sr(o.font),n=qr(o.padding);return o.display?t.lineHeight+n.height:0}_getLegendItemAt(o,t){let n,i,s;if(dc(o,this.left,this.right)&&dc(t,this.top,this.bottom)){for(s=this.legendHitBoxes,n=0;ns.length>d.length?s:d)),o+t.size/2+n.measureText(i).width}function m0e(e,o,t){let n=e;return typeof o.text!="string"&&(n=h9(o,t)),n}function h9(e,o){let t=e.text?e.text.length:0;return o*t}function d0e(e,o){return!!((e==="mousemove"||e==="mouseout")&&(o.onHover||o.onLeave)||o.onClick&&(e==="click"||e==="mouseup"))}var u0e={id:"legend",_element:fC,start(e,o,t){let n=e.legend=new fC({ctx:e.ctx,options:t,chart:e});Jr.configure(e,n,t),Jr.addBox(e,n)},stop(e){Jr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,o,t){let n=e.legend;Jr.configure(e,n,t),n.options=t},afterUpdate(e){let o=e.legend;o.buildLabels(),o.adjustHitBoxes()},afterEvent(e,o){o.replay||e.legend.handleEvent(o.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,o,t){let n=o.datasetIndex,i=t.chart;i.isDatasetVisible(n)?(i.hide(n),o.hidden=!0):(i.show(n),o.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let o=e.data.datasets,{labels:{usePointStyle:t,pointStyle:n,textAlign:i,color:s,useBorderRadius:d,borderRadius:u}}=e.legend.options;return e._getSortedDatasetMetas().map(f=>{let _=f.controller.getStyle(t?0:void 0),C=qr(_.borderWidth);return{text:o[f.index].label,fillStyle:_.backgroundColor,fontColor:s,hidden:!f.visible,lineCap:_.borderCapStyle,lineDash:_.borderDash,lineDashOffset:_.borderDashOffset,lineJoin:_.borderJoinStyle,lineWidth:(C.width+C.height)/4,strokeStyle:_.borderColor,pointStyle:n||_.pointStyle,rotation:_.rotation,textAlign:i||_.textAlign,borderRadius:d&&(u||_.borderRadius),datasetIndex:f.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},Lf=class extends Rs{constructor(o){super(),this.chart=o.chart,this.options=o.options,this.ctx=o.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(o,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=o,this.height=this.bottom=t;let i=ga(n.text)?n.text.length:1;this._padding=qr(n.padding);let s=i*sr(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let o=this.options.position;return o==="top"||o==="bottom"}_drawArgs(o){let{top:t,left:n,bottom:i,right:s,options:d}=this,u=d.align,f=0,_,C,x;return this.isHorizontal()?(C=Vr(u,n,s),x=t+o,_=s-n):(d.position==="left"?(C=n+o,x=Vr(u,i,t),f=Bo*-.5):(C=s-o,x=Vr(u,t,i),f=Bo*.5),_=i-t),{titleX:C,titleY:x,maxWidth:_,rotation:f}}draw(){let o=this.ctx,t=this.options;if(!t.display)return;let n=sr(t.font),s=n.lineHeight/2+this._padding.top,{titleX:d,titleY:u,maxWidth:f,rotation:_}=this._drawArgs(s);Lp(o,t.text,0,0,n,{color:t.color,maxWidth:f,rotation:_,textAlign:W_(t.align),textBaseline:"middle",translation:[d,u]})}};function f0e(e,o){let t=new Lf({ctx:e.ctx,options:o,chart:e});Jr.configure(e,t,o),Jr.addBox(e,t),e.titleBlock=t}var h0e={id:"title",_element:Lf,start(e,o,t){f0e(e,t)},stop(e){let o=e.titleBlock;Jr.removeBox(e,o),delete e.titleBlock},beforeUpdate(e,o,t){let n=e.titleBlock;Jr.configure(e,n,t),n.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},oC=new WeakMap,g0e={id:"subtitle",start(e,o,t){let n=new Lf({ctx:e.ctx,options:t,chart:e});Jr.configure(e,n,t),Jr.addBox(e,n),oC.set(e,n)},stop(e){Jr.removeBox(e,oC.get(e)),oC.delete(e)},beforeUpdate(e,o,t){let n=oC.get(e);Jr.configure(e,n,t),n.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Rf={average(e){if(!e.length)return!1;let o,t,n=new Set,i=0,s=0;for(o=0,t=e.length;ou+f)/n.size,y:i/s}},nearest(e,o){if(!e.length)return!1;let t=o.x,n=o.y,i=Number.POSITIVE_INFINITY,s,d,u;for(s=0,d=e.length;s=65&&i<=90||i>=97&&i<=122||i===58||i===95||i===8204||i===8205||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}t.S_LIST=[32,10,13,9],t.isChar=function(i){return i>=1&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},t.isRestrictedChar=function(i){return i>=1&&i<=8||i===11||i===12||i>=14&&i<=31||i>=127&&i<=132||i>=134&&i<=159},t.isCharAndNotRestricted=function(i){return i===9||i===10||i===13||i>31&&i<127||i===133||i>159&&i<=55295||i>=57344&&i<=65533||i>=65536&&i<=1114111},t.isS=function(i){return i===32||i===10||i===13||i===9},t.isNameStartChar=n,t.isNameChar=function(i){return n(i)||i>=48&&i<=57||i===45||i===46||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}],545:[function(e,o,t){"use strict";function n(i){return i>=65&&i<=90||i===95||i>=97&&i<=122||i>=192&&i<=214||i>=216&&i<=246||i>=248&&i<=767||i>=880&&i<=893||i>=895&&i<=8191||i>=8204&&i<=8205||i>=8304&&i<=8591||i>=11264&&i<=12271||i>=12289&&i<=55295||i>=63744&&i<=64975||i>=65008&&i<=65533||i>=65536&&i<=983039}Object.defineProperty(t,"__esModule",{value:!0}),t.NC_NAME_START_CHAR="A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\u{10000}-\u{EFFFF}",t.NC_NAME_CHAR="-"+t.NC_NAME_START_CHAR+".0-9\xB7\u0300-\u036F\u203F-\u2040",t.NC_NAME_START_CHAR_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]$","u"),t.NC_NAME_CHAR_RE=new RegExp("^["+t.NC_NAME_CHAR+"]$","u"),t.NC_NAME_RE=new RegExp("^["+t.NC_NAME_START_CHAR+"]["+t.NC_NAME_CHAR+"]*$","u"),t.isNCNameStartChar=n,t.isNCNameChar=function(i){return n(i)||i===45||i===46||i>=48&&i<=57||i===183||i>=768&&i<=879||i>=8255&&i<=8256}},{}]},{},[15])(15)})});function Lk(e){return new Fo(3e3,!1)}function lre(){return new Fo(3100,!1)}function sre(){return new Fo(3101,!1)}function cre(e){return new Fo(3001,!1)}function pre(e){return new Fo(3003,!1)}function mre(e){return new Fo(3004,!1)}function qk(e,o){return new Fo(3005,!1)}function zk(){return new Fo(3006,!1)}function Hk(){return new Fo(3007,!1)}function Gk(e,o){return new Fo(3008,!1)}function jk(e){return new Fo(3002,!1)}function $k(e,o,t,n,i){return new Fo(3010,!1)}function Uk(){return new Fo(3011,!1)}function Wk(){return new Fo(3012,!1)}function Qk(){return new Fo(3200,!1)}function Yk(){return new Fo(3202,!1)}function Jk(){return new Fo(3013,!1)}function Kk(e){return new Fo(3014,!1)}function Xk(e){return new Fo(3015,!1)}function Zk(e){return new Fo(3016,!1)}function e8(e,o){return new Fo(3404,!1)}function dre(e){return new Fo(3502,!1)}function t8(e){return new Fo(3503,!1)}function i8(){return new Fo(3300,!1)}function n8(e){return new Fo(3504,!1)}function o8(e){return new Fo(3301,!1)}function a8(e,o){return new Fo(3302,!1)}function r8(e){return new Fo(3303,!1)}function l8(e,o){return new Fo(3400,!1)}function s8(e){return new Fo(3401,!1)}function c8(e){return new Fo(3402,!1)}function p8(e,o){return new Fo(3505,!1)}function Nc(e){switch(e.length){case 0:return new ud;case 1:return e[0];default:return new Tg(e)}}function qT(e,o,t=new Map,n=new Map){let i=[],s=[],d=-1,u=null;if(o.forEach(f=>{let _=f.get("offset"),C=_==d,x=C&&u||new Map;f.forEach((y,P)=>{let S=P,M=y;if(P!=="offset")switch(S=e.normalizePropertyName(S,i),M){case sf:M=t.get(P);break;case Es:M=n.get(P);break;default:M=e.normalizeStyleValue(P,S,M,i);break}x.set(S,M)}),C||s.push(x),u=x,d=_}),i.length)throw dre(i);return s}function Zg(e,o,t,n){switch(o){case"start":e.onStart(()=>n(t&&NT(t,"start",e)));break;case"done":e.onDone(()=>n(t&&NT(t,"done",e)));break;case"destroy":e.onDestroy(()=>n(t&&NT(t,"destroy",e)));break}}function NT(e,o,t){let n=t.totalTime,i=!!t.disabled,s=e_(e.element,e.triggerName,e.fromState,e.toState,o||e.phaseName,n??e.totalTime,i),d=e._data;return d!=null&&(s._data=d),s}function e_(e,o,t,n,i="",s=0,d){return{element:e,triggerName:o,fromState:t,toState:n,phaseName:i,totalTime:s,disabled:!!d}}function xl(e,o,t){let n=e.get(o);return n||e.set(o,n=t),n}function zT(e){let o=e.indexOf(":"),t=e.substring(1,o),n=e.slice(o+1);return[t,n]}var ure=typeof document>"u"?null:document.documentElement;function t_(e){let o=e.parentNode||e.host||null;return o===ure?null:o}function fre(e){return e.substring(1,6)=="ebkit"}var fd=null,Vk=!1;function m8(e){fd||(fd=hre()||{},Vk=fd.style?"WebkitAppearance"in fd.style:!1);let o=!0;return fd.style&&!fre(e)&&(o=e in fd.style,!o&&Vk&&(o="Webkit"+e.charAt(0).toUpperCase()+e.slice(1)in fd.style)),o}function hre(){return typeof document<"u"?document.body:null}function HT(e,o){for(;o;){if(o===e)return!0;o=t_(o)}return!1}function GT(e,o,t){if(t)return Array.from(e.querySelectorAll(o));let n=e.querySelector(o);return n?[n]:[]}var gre=1e3,jT="{{",_re="}}",$T="ng-enter",i_="ng-leave",mf="ng-trigger",df=".ng-trigger",UT="ng-animating",n_=".ng-animating";function lc(e){if(typeof e=="number")return e;let o=e.match(/^(-?[\.\d]+)(m?s)/);return!o||o.length<2?0:LT(parseFloat(o[1]),o[2])}function LT(e,o){switch(o){case"s":return e*gre;default:return e}}function uf(e,o,t){return e.hasOwnProperty("duration")?e:vre(e,o,t)}var Cre=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function vre(e,o,t){let n,i=0,s="";if(typeof e=="string"){let d=e.match(Cre);if(d===null)return o.push(Lk(e)),{duration:0,delay:0,easing:""};n=LT(parseFloat(d[1]),d[2]);let u=d[3];u!=null&&(i=LT(parseFloat(u),d[4]));let f=d[5];f&&(s=f)}else n=e;if(!t){let d=!1,u=o.length;n<0&&(o.push(lre()),d=!0),i<0&&(o.push(sre()),d=!0),d&&o.splice(u,0,Lk(e))}return{duration:n,delay:i,easing:s}}function d8(e){return e.length?e[0]instanceof Map?e:e.map(o=>new Map(Object.entries(o))):[]}function As(e,o,t){o.forEach((n,i)=>{let s=o_(i);t&&!t.has(i)&&t.set(i,e.style[s]),e.style[s]=n})}function Op(e,o){o.forEach((t,n)=>{let i=o_(n);e.style[i]=""})}function I0(e){return Array.isArray(e)?e.length==1?e[0]:NF(e):e}function u8(e,o,t){let n=o.params||{},i=WT(e);i.length&&i.forEach(s=>{n.hasOwnProperty(s)||t.push(cre(s))})}var VT=new RegExp(`${jT}\\s*(.+?)\\s*${_re}`,"g");function WT(e){let o=[];if(typeof e=="string"){let t;for(;t=VT.exec(e);)o.push(t[1]);VT.lastIndex=0}return o}function O0(e,o,t){let n=`${e}`,i=n.replace(VT,(s,d)=>{let u=o[d];return u==null&&(t.push(pre(d)),u=""),u.toString()});return i==n?e:i}var xre=/-+([a-z0-9])/g;function o_(e){return e.replace(xre,(...o)=>o[1].toUpperCase())}function f8(e,o){return e===0||o===0}function h8(e,o,t){if(t.size&&o.length){let n=o[0],i=[];if(t.forEach((s,d)=>{n.has(d)||i.push(d),n.set(d,s)}),i.length)for(let s=1;sd.set(u,a_(e,u)))}}return o}function bl(e,o,t){switch(o.type){case wo.Trigger:return e.visitTrigger(o,t);case wo.State:return e.visitState(o,t);case wo.Transition:return e.visitTransition(o,t);case wo.Sequence:return e.visitSequence(o,t);case wo.Group:return e.visitGroup(o,t);case wo.Animate:return e.visitAnimate(o,t);case wo.Keyframes:return e.visitKeyframes(o,t);case wo.Style:return e.visitStyle(o,t);case wo.Reference:return e.visitReference(o,t);case wo.AnimateChild:return e.visitAnimateChild(o,t);case wo.AnimateRef:return e.visitAnimateRef(o,t);case wo.Query:return e.visitQuery(o,t);case wo.Stagger:return e.visitStagger(o,t);default:throw mre(o.type)}}function a_(e,o){return window.getComputedStyle(e)[o]}var p4=(()=>{class e{validateStyleProperty(t){return m8(t)}containsElement(t,n){return HT(t,n)}getParentElement(t){return t_(t)}query(t,n,i){return GT(t,n,i)}computeStyle(t,n,i){return i||""}animate(t,n,i,s,d,u=[],f){return new ud(i,s)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})(),gd=class{static NOOP=new p4},_d=class{};var bre=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),p_=class extends _d{normalizePropertyName(o,t){return o_(o)}normalizeStyleValue(o,t,n,i){let s="",d=n.toString().trim();if(bre.has(t)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let u=n.match(/^[+-]?[\d\.]+([a-z]*)$/);u&&u[1].length==0&&i.push(qk(o,n))}return d+s}};var m_="*";function yre(e,o){let t=[];return typeof e=="string"?e.split(/\s*,\s*/).forEach(n=>Sre(n,t,o)):t.push(e),t}function Sre(e,o,t){if(e[0]==":"){let f=wre(e,t);if(typeof f=="function"){o.push(f);return}e=f}let n=e.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(n==null||n.length<4)return t.push(Xk(e)),o;let i=n[1],s=n[2],d=n[3];o.push(g8(i,d));let u=i==m_&&d==m_;s[0]=="<"&&!u&&o.push(g8(d,i))}function wre(e,o){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,n)=>parseFloat(n)>parseFloat(t);case":decrement":return(t,n)=>parseFloat(n) *"}}var r_=new Set(["true","1"]),l_=new Set(["false","0"]);function g8(e,o){let t=r_.has(e)||l_.has(e),n=r_.has(o)||l_.has(o);return(i,s)=>{let d=e==m_||e==i,u=o==m_||o==s;return!d&&t&&typeof i=="boolean"&&(d=i?r_.has(e):l_.has(e)),!u&&n&&typeof s=="boolean"&&(u=s?r_.has(o):l_.has(o)),d&&u}}var T8=":self",Pre=new RegExp(`s*${T8}s*,?`,"g");function M8(e,o,t,n){return new ZT(e).build(o,t,n)}var _8="",ZT=class{_driver;constructor(o){this._driver=o}build(o,t,n){let i=new e4(t);return this._resetContextStyleTimingState(i),bl(this,I0(o),i)}_resetContextStyleTimingState(o){o.currentQuerySelector=_8,o.collectedStyles=new Map,o.collectedStyles.set(_8,new Map),o.currentTime=0}visitTrigger(o,t){let n=t.queryCount=0,i=t.depCount=0,s=[],d=[];return o.name.charAt(0)=="@"&&t.errors.push(zk()),o.definitions.forEach(u=>{if(this._resetContextStyleTimingState(t),u.type==wo.State){let f=u,_=f.name;_.toString().split(/\s*,\s*/).forEach(C=>{f.name=C,s.push(this.visitState(f,t))}),f.name=_}else if(u.type==wo.Transition){let f=this.visitTransition(u,t);n+=f.queryCount,i+=f.depCount,d.push(f)}else t.errors.push(Hk())}),{type:wo.Trigger,name:o.name,states:s,transitions:d,queryCount:n,depCount:i,options:null}}visitState(o,t){let n=this.visitStyle(o.styles,t),i=o.options&&o.options.params||null;if(n.containsDynamicStyles){let s=new Set,d=i||{};n.styles.forEach(u=>{u instanceof Map&&u.forEach(f=>{WT(f).forEach(_=>{d.hasOwnProperty(_)||s.add(_)})})}),s.size&&t.errors.push(Gk(o.name,[...s.values()]))}return{type:wo.State,name:o.name,style:n,options:i?{params:i}:null}}visitTransition(o,t){t.queryCount=0,t.depCount=0;let n=bl(this,I0(o.animation),t),i=yre(o.expr,t.errors);return{type:wo.Transition,matchers:i,animation:n,queryCount:t.queryCount,depCount:t.depCount,options:hd(o.options)}}visitSequence(o,t){return{type:wo.Sequence,steps:o.steps.map(n=>bl(this,n,t)),options:hd(o.options)}}visitGroup(o,t){let n=t.currentTime,i=0,s=o.steps.map(d=>{t.currentTime=n;let u=bl(this,d,t);return i=Math.max(i,t.currentTime),u});return t.currentTime=i,{type:wo.Group,steps:s,options:hd(o.options)}}visitAnimate(o,t){let n=Ere(o.timings,t.errors);t.currentAnimateTimings=n;let i,s=o.styles?o.styles:Lo({});if(s.type==wo.Keyframes)i=this.visitKeyframes(s,t);else{let d=o.styles,u=!1;if(!d){u=!0;let _={};n.easing&&(_.easing=n.easing),d=Lo(_)}t.currentTime+=n.duration+n.delay;let f=this.visitStyle(d,t);f.isEmptyStep=u,i=f}return t.currentAnimateTimings=null,{type:wo.Animate,timings:n,style:i,options:null}}visitStyle(o,t){let n=this._makeStyleAst(o,t);return this._validateStyleAst(n,t),n}_makeStyleAst(o,t){let n=[],i=Array.isArray(o.styles)?o.styles:[o.styles];for(let u of i)typeof u=="string"?u===Es?n.push(u):t.errors.push(jk(u)):n.push(new Map(Object.entries(u)));let s=!1,d=null;return n.forEach(u=>{if(u instanceof Map&&(u.has("easing")&&(d=u.get("easing"),u.delete("easing")),!s)){for(let f of u.values())if(f.toString().indexOf(jT)>=0){s=!0;break}}}),{type:wo.Style,styles:n,easing:d,offset:o.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(o,t){let n=t.currentAnimateTimings,i=t.currentTime,s=t.currentTime;n&&s>0&&(s-=n.duration+n.delay),o.styles.forEach(d=>{typeof d!="string"&&d.forEach((u,f)=>{let _=t.collectedStyles.get(t.currentQuerySelector),C=_.get(f),x=!0;C&&(s!=i&&s>=C.startTime&&i<=C.endTime&&(t.errors.push($k(f,C.startTime,C.endTime,s,i)),x=!1),s=C.startTime),x&&_.set(f,{startTime:s,endTime:i}),t.options&&u8(u,t.options,t.errors)})})}visitKeyframes(o,t){let n={type:wo.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(Uk()),n;let i=1,s=0,d=[],u=!1,f=!1,_=0,C=o.steps.map(k=>{let z=this._makeStyleAst(k,t),U=z.offset!=null?z.offset:Dre(z.styles),J=0;return U!=null&&(s++,J=z.offset=U),f=f||J<0||J>1,u=u||J<_,_=J,d.push(J),z});f&&t.errors.push(Wk()),u&&t.errors.push(Qk());let x=o.steps.length,y=0;s>0&&s{let U=y>0?z==P?1:y*z:d[z],J=U*D;t.currentTime=S+M.delay+J,M.duration=J,this._validateStyleAst(k,t),k.offset=U,n.styles.push(k)}),n}visitReference(o,t){return{type:wo.Reference,animation:bl(this,I0(o.animation),t),options:hd(o.options)}}visitAnimateChild(o,t){return t.depCount++,{type:wo.AnimateChild,options:hd(o.options)}}visitAnimateRef(o,t){return{type:wo.AnimateRef,animation:this.visitReference(o.animation,t),options:hd(o.options)}}visitQuery(o,t){let n=t.currentQuerySelector,i=o.options||{};t.queryCount++,t.currentQuery=o;let[s,d]=Tre(o.selector);t.currentQuerySelector=n.length?n+" "+s:s,xl(t.collectedStyles,t.currentQuerySelector,new Map);let u=bl(this,I0(o.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:wo.Query,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:d,animation:u,originalSelector:o.selector,options:hd(o.options)}}visitStagger(o,t){t.currentQuery||t.errors.push(Jk());let n=o.timings==="full"?{duration:0,delay:0,easing:"full"}:uf(o.timings,t.errors,!0);return{type:wo.Stagger,animation:bl(this,I0(o.animation),t),timings:n,options:null}}};function Tre(e){let o=!!e.split(/\s*,\s*/).find(t=>t==T8);return o&&(e=e.replace(Pre,"")),e=e.replace(/@\*/g,df).replace(/@\w+/g,t=>df+"-"+t.slice(1)).replace(/:animating/g,n_),[e,o]}function Mre(e){return e?at({},e):null}var e4=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(o){this.errors=o}};function Dre(e){if(typeof e=="string")return null;let o=null;if(Array.isArray(e))e.forEach(t=>{if(t instanceof Map&&t.has("offset")){let n=t;o=parseFloat(n.get("offset")),n.delete("offset")}});else if(e instanceof Map&&e.has("offset")){let t=e;o=parseFloat(t.get("offset")),t.delete("offset")}return o}function Ere(e,o){if(e.hasOwnProperty("duration"))return e;if(typeof e=="number"){let s=uf(e,o).duration;return QT(s,0,"")}let t=e;if(t.split(/\s+/).some(s=>s.charAt(0)=="{"&&s.charAt(1)=="{")){let s=QT(0,0,"");return s.dynamic=!0,s.strValue=t,s}let i=uf(t,o);return QT(i.duration,i.delay,i.easing)}function hd(e){return e?(e=at({},e),e.params&&(e.params=Mre(e.params))):e={},e}function QT(e,o,t){return{duration:e,delay:o,easing:t}}function m4(e,o,t,n,i,s,d=null,u=!1){return{type:1,element:e,keyframes:o,preStyleProps:t,postStyleProps:n,duration:i,delay:s,totalTime:i+s,easing:d,subTimeline:u}}var hf=class{_map=new Map;get(o){return this._map.get(o)||[]}append(o,t){let n=this._map.get(o);n||this._map.set(o,n=[]),n.push(...t)}has(o){return this._map.has(o)}clear(){this._map.clear()}},Ire=1,Ore=":enter",Are=new RegExp(Ore,"g"),Fre=":leave",kre=new RegExp(Fre,"g");function D8(e,o,t,n,i,s=new Map,d=new Map,u,f,_=[]){return new t4().buildKeyframes(e,o,t,n,i,s,d,u,f,_)}var t4=class{buildKeyframes(o,t,n,i,s,d,u,f,_,C=[]){_=_||new hf;let x=new i4(o,t,_,i,s,C,[]);x.options=f;let y=f.delay?lc(f.delay):0;x.currentTimeline.delayNextStep(y),x.currentTimeline.setStyles([d],null,x.errors,f),bl(this,n,x);let P=x.timelines.filter(S=>S.containsAnimation());if(P.length&&u.size){let S;for(let M=P.length-1;M>=0;M--){let D=P[M];if(D.element===t){S=D;break}}S&&!S.allowOnlyTimelineStyles()&&S.setStyles([u],null,x.errors,f)}return P.length?P.map(S=>S.buildKeyframes()):[m4(t,[],[],[],0,y,"",!1)]}visitTrigger(o,t){}visitState(o,t){}visitTransition(o,t){}visitAnimateChild(o,t){let n=t.subInstructions.get(t.element);if(n){let i=t.createSubContext(o.options),s=t.currentTimeline.currentTime,d=this._visitSubInstructions(n,i,i.options);s!=d&&t.transformIntoNewTimeline(d)}t.previousNode=o}visitAnimateRef(o,t){let n=t.createSubContext(o.options);n.transformIntoNewTimeline(),this._applyAnimationRefDelays([o.options,o.animation.options],t,n),this.visitReference(o.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=o}_applyAnimationRefDelays(o,t,n){for(let i of o){let s=i?.delay;if(s){let d=typeof s=="number"?s:lc(O0(s,i?.params??{},t.errors));n.delayNextStep(d)}}}_visitSubInstructions(o,t,n){let s=t.currentTimeline.currentTime,d=n.duration!=null?lc(n.duration):null,u=n.delay!=null?lc(n.delay):null;return d!==0&&o.forEach(f=>{let _=t.appendInstructionToTimeline(f,d,u);s=Math.max(s,_.duration+_.delay)}),s}visitReference(o,t){t.updateOptions(o.options,!0),bl(this,o.animation,t),t.previousNode=o}visitSequence(o,t){let n=t.subContextCount,i=t,s=o.options;if(s&&(s.params||s.delay)&&(i=t.createSubContext(s),i.transformIntoNewTimeline(),s.delay!=null)){i.previousNode.type==wo.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=d_);let d=lc(s.delay);i.delayNextStep(d)}o.steps.length&&(o.steps.forEach(d=>bl(this,d,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>n&&i.transformIntoNewTimeline()),t.previousNode=o}visitGroup(o,t){let n=[],i=t.currentTimeline.currentTime,s=o.options&&o.options.delay?lc(o.options.delay):0;o.steps.forEach(d=>{let u=t.createSubContext(o.options);s&&u.delayNextStep(s),bl(this,d,u),i=Math.max(i,u.currentTimeline.currentTime),n.push(u.currentTimeline)}),n.forEach(d=>t.currentTimeline.mergeTimelineCollectedStyles(d)),t.transformIntoNewTimeline(i),t.previousNode=o}_visitTiming(o,t){if(o.dynamic){let n=o.strValue,i=t.params?O0(n,t.params,t.errors):n;return uf(i,t.errors)}else return{duration:o.duration,delay:o.delay,easing:o.easing}}visitAnimate(o,t){let n=t.currentAnimateTimings=this._visitTiming(o.timings,t),i=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),i.snapshotCurrentStyles());let s=o.style;s.type==wo.Keyframes?this.visitKeyframes(s,t):(t.incrementTime(n.duration),this.visitStyle(s,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=o}visitStyle(o,t){let n=t.currentTimeline,i=t.currentAnimateTimings;!i&&n.hasCurrentStyleProperties()&&n.forwardFrame();let s=i&&i.easing||o.easing;o.isEmptyStep?n.applyEmptyStep(s):n.setStyles(o.styles,s,t.errors,t.options),t.previousNode=o}visitKeyframes(o,t){let n=t.currentAnimateTimings,i=t.currentTimeline.duration,s=n.duration,u=t.createSubContext().currentTimeline;u.easing=n.easing,o.styles.forEach(f=>{let _=f.offset||0;u.forwardTime(_*s),u.setStyles(f.styles,f.easing,t.errors,t.options),u.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(u),t.transformIntoNewTimeline(i+s),t.previousNode=o}visitQuery(o,t){let n=t.currentTimeline.currentTime,i=o.options||{},s=i.delay?lc(i.delay):0;s&&(t.previousNode.type===wo.Style||n==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=d_);let d=n,u=t.invokeQuery(o.selector,o.originalSelector,o.limit,o.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=u.length;let f=null;u.forEach((_,C)=>{t.currentQueryIndex=C;let x=t.createSubContext(o.options,_);s&&x.delayNextStep(s),_===t.element&&(f=x.currentTimeline),bl(this,o.animation,x),x.currentTimeline.applyStylesToKeyframe();let y=x.currentTimeline.currentTime;d=Math.max(d,y)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(d),f&&(t.currentTimeline.mergeTimelineCollectedStyles(f),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=o}visitStagger(o,t){let n=t.parentContext,i=t.currentTimeline,s=o.timings,d=Math.abs(s.duration),u=d*(t.currentQueryTotal-1),f=d*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":f=u-f;break;case"full":f=n.currentStaggerTime;break}let C=t.currentTimeline;f&&C.delayNextStep(f);let x=C.currentTime;bl(this,o.animation,t),t.previousNode=o,n.currentStaggerTime=i.currentTime-x+(i.startTime-n.currentTimeline.startTime)}},d_={},i4=class e{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=d_;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(o,t,n,i,s,d,u,f){this._driver=o,this.element=t,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=s,this.errors=d,this.timelines=u,this.currentTimeline=f||new u_(this._driver,t,0),u.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(o,t){if(!o)return;let n=o,i=this.options;n.duration!=null&&(i.duration=lc(n.duration)),n.delay!=null&&(i.delay=lc(n.delay));let s=n.params;if(s){let d=i.params;d||(d=this.options.params={}),Object.keys(s).forEach(u=>{(!t||!d.hasOwnProperty(u))&&(d[u]=O0(s[u],d,this.errors))})}}_copyOptions(){let o={};if(this.options){let t=this.options.params;if(t){let n=o.params={};Object.keys(t).forEach(i=>{n[i]=t[i]})}}return o}createSubContext(o=null,t,n){let i=t||this.element,s=new e(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,n||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(o),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(o){return this.previousNode=d_,this.currentTimeline=this.currentTimeline.fork(this.element,o),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(o,t,n){let i={duration:t??o.duration,delay:this.currentTimeline.currentTime+(n??0)+o.delay,easing:""},s=new n4(this._driver,o.element,o.keyframes,o.preStyleProps,o.postStyleProps,i,o.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(o){this.currentTimeline.forwardTime(this.currentTimeline.duration+o)}delayNextStep(o){o>0&&this.currentTimeline.delayNextStep(o)}invokeQuery(o,t,n,i,s,d){let u=[];if(i&&u.push(this.element),o.length>0){o=o.replace(Are,"."+this._enterClassName),o=o.replace(kre,"."+this._leaveClassName);let f=n!=1,_=this._driver.query(this.element,o,f);n!==0&&(_=n<0?_.slice(_.length+n,_.length):_.slice(0,n)),u.push(..._)}return!s&&u.length==0&&d.push(Kk(t)),u}},u_=class e{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(o,t,n,i){this._driver=o,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(o){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+o),t&&this.snapshotCurrentStyles()):this.startTime+=o}fork(o,t){return this.applyStylesToKeyframe(),new e(this._driver,o,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Ire,this._loadKeyframe()}forwardTime(o){this.applyStylesToKeyframe(),this.duration=o,this._loadKeyframe()}_updateStyle(o,t){this._localTimelineStyles.set(o,t),this._globalTimelineStyles.set(o,t),this._styleSummary.set(o,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(o){o&&this._previousKeyframe.set("easing",o);for(let[t,n]of this._globalTimelineStyles)this._backFill.set(t,n||Es),this._currentKeyframe.set(t,Es);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(o,t,n,i){t&&this._previousKeyframe.set("easing",t);let s=i&&i.params||{},d=Bre(o,this._globalTimelineStyles);for(let[u,f]of d){let _=O0(f,s,n);this._pendingStyles.set(u,_),this._localTimelineStyles.has(u)||this._backFill.set(u,this._globalTimelineStyles.get(u)??Es),this._updateStyle(u,_)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((o,t)=>{this._currentKeyframe.set(t,o)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((o,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,o)}))}snapshotCurrentStyles(){for(let[o,t]of this._localTimelineStyles)this._pendingStyles.set(o,t),this._updateStyle(o,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let o=[];for(let t in this._currentKeyframe)o.push(t);return o}mergeTimelineCollectedStyles(o){o._styleSummary.forEach((t,n)=>{let i=this._styleSummary.get(n);(!i||t.time>i.time)&&this._updateStyle(n,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let o=new Set,t=new Set,n=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((u,f)=>{let _=new Map([...this._backFill,...u]);_.forEach((C,x)=>{C===sf?o.add(x):C===Es&&t.add(x)}),n||_.set("offset",f/this.duration),i.push(_)});let s=[...o.values()],d=[...t.values()];if(n){let u=i[0],f=new Map(u);u.set("offset",0),f.set("offset",1),i=[u,f]}return m4(this.element,i,s,d,this.duration,this.startTime,this.easing,!1)}},n4=class extends u_{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(o,t,n,i,s,d,u=!1){super(o,t,d.delay),this.keyframes=n,this.preStyleProps=i,this.postStyleProps=s,this._stretchStartingKeyframe=u,this.timings={duration:d.duration,delay:d.delay,easing:d.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let o=this.keyframes,{delay:t,duration:n,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let s=[],d=n+t,u=t/d,f=new Map(o[0]);f.set("offset",0),s.push(f);let _=new Map(o[0]);_.set("offset",C8(u)),s.push(_);let C=o.length-1;for(let x=1;x<=C;x++){let y=new Map(o[x]),P=y.get("offset"),S=t+P*n;y.set("offset",C8(S/d)),s.push(y)}n=d,t=0,i="",o=s}return m4(this.element,o,this.preStyleProps,this.postStyleProps,n,t,i,!0)}};function C8(e,o=3){let t=Math.pow(10,o-1);return Math.round(e*t)/t}function Bre(e,o){let t=new Map,n;return e.forEach(i=>{if(i==="*"){n??=o.keys();for(let s of n)t.set(s,Es)}else for(let[s,d]of i)t.set(s,d)}),t}function v8(e,o,t,n,i,s,d,u,f,_,C,x,y){return{type:0,element:e,triggerName:o,isRemovalTransition:i,fromState:t,fromStyles:s,toState:n,toStyles:d,timelines:u,queriedElements:f,preStyleProps:_,postStyleProps:C,totalTime:x,errors:y}}var YT={},f_=class{_triggerName;ast;_stateStyles;constructor(o,t,n){this._triggerName=o,this.ast=t,this._stateStyles=n}match(o,t,n,i){return Rre(this.ast.matchers,o,t,n,i)}buildStyles(o,t,n){let i=this._stateStyles.get("*");return o!==void 0&&(i=this._stateStyles.get(o?.toString())||i),i?i.buildStyles(t,n):new Map}build(o,t,n,i,s,d,u,f,_,C){let x=[],y=this.ast.options&&this.ast.options.params||YT,P=u&&u.params||YT,S=this.buildStyles(n,P,x),M=f&&f.params||YT,D=this.buildStyles(i,M,x),k=new Set,z=new Map,U=new Map,J=i==="void",re={params:E8(M,y),delay:this.ast.options?.delay},ee=C?[]:D8(o,t,this.ast.animation,s,d,S,D,re,_,x),ae=0;return ee.forEach(se=>{ae=Math.max(se.duration+se.delay,ae)}),x.length?v8(t,this._triggerName,n,i,J,S,D,[],[],z,U,ae,x):(ee.forEach(se=>{let _e=se.element,de=xl(z,_e,new Set);se.preStyleProps.forEach(W=>de.add(W));let j=xl(U,_e,new Set);se.postStyleProps.forEach(W=>j.add(W)),_e!==t&&k.add(_e)}),v8(t,this._triggerName,n,i,J,S,D,ee,[...k.values()],z,U,ae))}};function Rre(e,o,t,n,i){return e.some(s=>s(o,t,n,i))}function E8(e,o){let t=at({},o);return Object.entries(e).forEach(([n,i])=>{i!=null&&(t[n]=i)}),t}var o4=class{styles;defaultParams;normalizer;constructor(o,t,n){this.styles=o,this.defaultParams=t,this.normalizer=n}buildStyles(o,t){let n=new Map,i=E8(o,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!="string"&&s.forEach((d,u)=>{d&&(d=O0(d,i,t));let f=this.normalizer.normalizePropertyName(u,t);d=this.normalizer.normalizeStyleValue(u,f,d,t),n.set(u,d)})}),n}};function Nre(e,o,t){return new a4(e,o,t)}var a4=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(o,t,n){this.name=o,this.ast=t,this._normalizer=n,t.states.forEach(i=>{let s=i.options&&i.options.params||{};this.states.set(i.name,new o4(i.style,s,n))}),x8(this.states,"true","1"),x8(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new f_(o,i,this.states))}),this.fallbackTransition=Lre(o,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(o,t,n,i){return this.transitionFactories.find(d=>d.match(o,t,n,i))||null}matchStyles(o,t,n){return this.fallbackTransition.buildStyles(o,t,n)}};function Lre(e,o,t){let n=[(d,u)=>!0],i={type:wo.Sequence,steps:[],options:null},s={type:wo.Transition,animation:i,matchers:n,options:null,queryCount:0,depCount:0};return new f_(e,s,o)}function x8(e,o,t){e.has(o)?e.has(t)||e.set(t,e.get(o)):e.has(t)&&e.set(o,e.get(t))}var Vre=new hf,r4=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(o,t,n){this.bodyNode=o,this._driver=t,this._normalizer=n}register(o,t){let n=[],i=[],s=M8(this._driver,t,n,i);if(n.length)throw t8(n);this._animations.set(o,s)}_buildPlayer(o,t,n){let i=o.element,s=qT(this._normalizer,o.keyframes,t,n);return this._driver.animate(i,s,o.duration,o.delay,o.easing,[],!0)}create(o,t,n={}){let i=[],s=this._animations.get(o),d,u=new Map;if(s?(d=D8(this._driver,t,s,$T,i_,new Map,new Map,n,Vre,i),d.forEach(C=>{let x=xl(u,C.element,new Map);C.postStyleProps.forEach(y=>x.set(y,null))})):(i.push(i8()),d=[]),i.length)throw n8(i);u.forEach((C,x)=>{C.forEach((y,P)=>{C.set(P,this._driver.computeStyle(x,P,Es))})});let f=d.map(C=>{let x=u.get(C.element);return this._buildPlayer(C,new Map,x)}),_=Nc(f);return this._playersById.set(o,_),_.onDestroy(()=>this.destroy(o)),this.players.push(_),_}destroy(o){let t=this._getPlayer(o);t.destroy(),this._playersById.delete(o);let n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)}_getPlayer(o){let t=this._playersById.get(o);if(!t)throw o8(o);return t}listen(o,t,n,i){let s=e_(t,"","","");return Zg(this._getPlayer(o),n,s,i),()=>{}}command(o,t,n,i){if(n=="register"){this.register(o,i[0]);return}if(n=="create"){let d=i[0]||{};this.create(o,t,d);return}let s=this._getPlayer(o);switch(n){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(o);break}}},b8="ng-animate-queued",qre=".ng-animate-queued",JT="ng-animate-disabled",zre=".ng-animate-disabled",Hre="ng-star-inserted",Gre=".ng-star-inserted",jre=[],I8={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},$re={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fs="__ng_removed",gf=class{namespaceId;value;options;get params(){return this.options.params}constructor(o,t=""){this.namespaceId=t;let n=o&&o.hasOwnProperty("value"),i=n?o.value:o;if(this.value=Wre(i),n){let s=o,{value:d}=s,u=Y7(s,["value"]);this.options=u}else this.options={};this.options.params||(this.options.params={})}absorbOptions(o){let t=o.params;if(t){let n=this.options.params;Object.keys(t).forEach(i=>{n[i]==null&&(n[i]=t[i])})}}},ff="void",KT=new gf(ff),l4=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(o,t,n){this.id=o,this.hostElement=t,this._engine=n,this._hostClassName="ng-tns-"+o,ls(t,this._hostClassName)}listen(o,t,n,i){if(!this._triggers.has(t))throw a8(n,t);if(n==null||n.length==0)throw r8(t);if(!Qre(n))throw l8(n,t);let s=xl(this._elementListeners,o,[]),d={name:t,phase:n,callback:i};s.push(d);let u=xl(this._engine.statesByElement,o,new Map);return u.has(t)||(ls(o,mf),ls(o,mf+"-"+t),u.set(t,KT)),()=>{this._engine.afterFlush(()=>{let f=s.indexOf(d);f>=0&&s.splice(f,1),this._triggers.has(t)||u.delete(t)})}}register(o,t){return this._triggers.has(o)?!1:(this._triggers.set(o,t),!0)}_getTrigger(o){let t=this._triggers.get(o);if(!t)throw s8(o);return t}trigger(o,t,n,i=!0){let s=this._getTrigger(t),d=new _f(this.id,t,o),u=this._engine.statesByElement.get(o);u||(ls(o,mf),ls(o,mf+"-"+t),this._engine.statesByElement.set(o,u=new Map));let f=u.get(t),_=new gf(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&f&&_.absorbOptions(f.options),u.set(t,_),f||(f=KT),!(_.value===ff)&&f.value===_.value){if(!Kre(f.params,_.params)){let M=[],D=s.matchStyles(f.value,f.params,M),k=s.matchStyles(_.value,_.params,M);M.length?this._engine.reportError(M):this._engine.afterFlush(()=>{Op(o,D),As(o,k)})}return}let y=xl(this._engine.playersByElement,o,[]);y.forEach(M=>{M.namespaceId==this.id&&M.triggerName==t&&M.queued&&M.destroy()});let P=s.matchTransition(f.value,_.value,o,_.params),S=!1;if(!P){if(!i)return;P=s.fallbackTransition,S=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:t,transition:P,fromState:f,toState:_,player:d,isFallbackTransition:S}),S||(ls(o,b8),d.onStart(()=>{A0(o,b8)})),d.onDone(()=>{let M=this.players.indexOf(d);M>=0&&this.players.splice(M,1);let D=this._engine.playersByElement.get(o);if(D){let k=D.indexOf(d);k>=0&&D.splice(k,1)}}),this.players.push(d),y.push(d),d}deregister(o){this._triggers.delete(o),this._engine.statesByElement.forEach(t=>t.delete(o)),this._elementListeners.forEach((t,n)=>{this._elementListeners.set(n,t.filter(i=>i.name!=o))})}clearElementCache(o){this._engine.statesByElement.delete(o),this._elementListeners.delete(o);let t=this._engine.playersByElement.get(o);t&&(t.forEach(n=>n.destroy()),this._engine.playersByElement.delete(o))}_signalRemovalForInnerTriggers(o,t){let n=this._engine.driver.query(o,df,!0);n.forEach(i=>{if(i[Fs])return;let s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(d=>d.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(o,t,n,i){let s=this._engine.statesByElement.get(o),d=new Map;if(s){let u=[];if(s.forEach((f,_)=>{if(d.set(_,f.value),this._triggers.has(_)){let C=this.trigger(o,_,ff,i);C&&u.push(C)}}),u.length)return this._engine.markElementAsRemoved(this.id,o,!0,t,d),n&&Nc(u).onDone(()=>this._engine.processLeaveNode(o)),!0}return!1}prepareLeaveAnimationListeners(o){let t=this._elementListeners.get(o),n=this._engine.statesByElement.get(o);if(t&&n){let i=new Set;t.forEach(s=>{let d=s.name;if(i.has(d))return;i.add(d);let f=this._triggers.get(d).fallbackTransition,_=n.get(d)||KT,C=new gf(ff),x=new _f(this.id,d,o);this._engine.totalQueuedPlayers++,this._queue.push({element:o,triggerName:d,transition:f,fromState:_,toState:C,player:x,isFallbackTransition:!0})})}}removeNode(o,t){let n=this._engine;if(o.childElementCount&&this._signalRemovalForInnerTriggers(o,t),this.triggerLeaveAnimation(o,t,!0))return;let i=!1;if(n.totalAnimations){let s=n.players.length?n.playersByQueriedElement.get(o):[];if(s&&s.length)i=!0;else{let d=o;for(;d=d.parentNode;)if(n.statesByElement.get(d)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(o),i)n.markElementAsRemoved(this.id,o,!1,t);else{let s=o[Fs];(!s||s===I8)&&(n.afterFlush(()=>this.clearElementCache(o)),n.destroyInnerAnimations(o),n._onRemovalComplete(o,t))}}insertNode(o,t){ls(o,this._hostClassName)}drainQueuedTransitions(o){let t=[];return this._queue.forEach(n=>{let i=n.player;if(i.destroyed)return;let s=n.element,d=this._elementListeners.get(s);d&&d.forEach(u=>{if(u.name==n.triggerName){let f=e_(s,n.triggerName,n.fromState.value,n.toState.value);f._data=o,Zg(n.player,u.phase,f,u.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(n)}),this._queue=[],t.sort((n,i)=>{let s=n.transition.ast.depCount,d=i.transition.ast.depCount;return s==0||d==0?s-d:this._engine.driver.containsElement(n.element,i.element)?1:-1})}destroy(o){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,o)}},s4=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(o,t)=>{};_onRemovalComplete(o,t){this.onRemovalComplete(o,t)}constructor(o,t,n){this.bodyNode=o,this.driver=t,this._normalizer=n}get queuedPlayers(){let o=[];return this._namespaceList.forEach(t=>{t.players.forEach(n=>{n.queued&&o.push(n)})}),o}createNamespace(o,t){let n=new l4(o,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[o]=n}_balanceNamespaceList(o,t){let n=this._namespaceList,i=this.namespacesByHostElement;if(n.length-1>=0){let d=!1,u=this.driver.getParentElement(t);for(;u;){let f=i.get(u);if(f){let _=n.indexOf(f);n.splice(_+1,0,o),d=!0;break}u=this.driver.getParentElement(u)}d||n.unshift(o)}else n.push(o);return i.set(t,o),o}register(o,t){let n=this._namespaceLookup[o];return n||(n=this.createNamespace(o,t)),n}registerTrigger(o,t,n){let i=this._namespaceLookup[o];i&&i.register(t,n)&&this.totalAnimations++}destroy(o,t){o&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let n=this._fetchNamespace(o);this.namespacesByHostElement.delete(n.hostElement);let i=this._namespaceList.indexOf(n);i>=0&&this._namespaceList.splice(i,1),n.destroy(t),delete this._namespaceLookup[o]}))}_fetchNamespace(o){return this._namespaceLookup[o]}fetchNamespacesByElement(o){let t=new Set,n=this.statesByElement.get(o);if(n){for(let i of n.values())if(i.namespaceId){let s=this._fetchNamespace(i.namespaceId);s&&t.add(s)}}return t}trigger(o,t,n,i){if(s_(t)){let s=this._fetchNamespace(o);if(s)return s.trigger(t,n,i),!0}return!1}insertNode(o,t,n,i){if(!s_(t))return;let s=t[Fs];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let d=this.collectedLeaveElements.indexOf(t);d>=0&&this.collectedLeaveElements.splice(d,1)}if(o){let d=this._fetchNamespace(o);d&&d.insertNode(t,n)}i&&this.collectEnterElement(t)}collectEnterElement(o){this.collectedEnterElements.push(o)}markElementAsDisabled(o,t){t?this.disabledNodes.has(o)||(this.disabledNodes.add(o),ls(o,JT)):this.disabledNodes.has(o)&&(this.disabledNodes.delete(o),A0(o,JT))}removeNode(o,t,n){if(s_(t)){let i=o?this._fetchNamespace(o):null;i?i.removeNode(t,n):this.markElementAsRemoved(o,t,!1,n);let s=this.namespacesByHostElement.get(t);s&&s.id!==o&&s.removeNode(t,n)}else this._onRemovalComplete(t,n)}markElementAsRemoved(o,t,n,i,s){this.collectedLeaveElements.push(t),t[Fs]={namespaceId:o,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1,previousTriggersValues:s}}listen(o,t,n,i,s){return s_(t)?this._fetchNamespace(o).listen(t,n,i,s):()=>{}}_buildInstruction(o,t,n,i,s){return o.transition.build(this.driver,o.element,o.fromState.value,o.toState.value,n,i,o.fromState.options,o.toState.options,t,s)}destroyInnerAnimations(o){let t=this.driver.query(o,df,!0);t.forEach(n=>this.destroyActiveAnimationsForElement(n)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(o,n_,!0),t.forEach(n=>this.finishActiveQueriedAnimationOnElement(n)))}destroyActiveAnimationsForElement(o){let t=this.playersByElement.get(o);t&&t.forEach(n=>{n.queued?n.markedForDestroy=!0:n.destroy()})}finishActiveQueriedAnimationOnElement(o){let t=this.playersByQueriedElement.get(o);t&&t.forEach(n=>n.finish())}whenRenderingDone(){return new Promise(o=>{if(this.players.length)return Nc(this.players).onDone(()=>o());o()})}processLeaveNode(o){let t=o[Fs];if(t&&t.setForRemoval){if(o[Fs]=I8,t.namespaceId){this.destroyInnerAnimations(o);let n=this._fetchNamespace(t.namespaceId);n&&n.clearElementCache(o)}this._onRemovalComplete(o,t.setForRemoval)}o.classList?.contains(JT)&&this.markElementAsDisabled(o,!1),this.driver.query(o,zre,!0).forEach(n=>{this.markElementAsDisabled(n,!1)})}flush(o=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((n,i)=>this._balanceNamespaceList(n,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;nn()),this._flushFns=[],this._whenQuietFns.length){let n=this._whenQuietFns;this._whenQuietFns=[],t.length?Nc(t).onDone(()=>{n.forEach(i=>i())}):n.forEach(i=>i())}}reportError(o){throw c8(o)}_flushAnimations(o,t){let n=new hf,i=[],s=new Map,d=[],u=new Map,f=new Map,_=new Map,C=new Set;this.disabledNodes.forEach(L=>{C.add(L);let N=this.driver.query(L,qre,!0);for(let G=0;G{let G=$T+M++;S.set(N,G),L.forEach($=>ls($,G))});let D=[],k=new Set,z=new Set;for(let L=0;Lk.add($)):z.add(N))}let U=new Map,J=w8(y,Array.from(k));J.forEach((L,N)=>{let G=i_+M++;U.set(N,G),L.forEach($=>ls($,G))}),o.push(()=>{P.forEach((L,N)=>{let G=S.get(N);L.forEach($=>A0($,G))}),J.forEach((L,N)=>{let G=U.get(N);L.forEach($=>A0($,G))}),D.forEach(L=>{this.processLeaveNode(L)})});let re=[],ee=[];for(let L=this._namespaceList.length-1;L>=0;L--)this._namespaceList[L].drainQueuedTransitions(t).forEach(G=>{let $=G.player,ne=G.element;if(re.push($),this.collectedEnterElements.length){let Q=ne[Fs];if(Q&&Q.setForMove){if(Q.previousTriggersValues&&Q.previousTriggersValues.has(G.triggerName)){let Ce=Q.previousTriggersValues.get(G.triggerName),Ve=this.statesByElement.get(G.element);if(Ve&&Ve.has(G.triggerName)){let mt=Ve.get(G.triggerName);mt.value=Ce,Ve.set(G.triggerName,mt)}}$.destroy();return}}let be=!x||!this.driver.containsElement(x,ne),ye=U.get(ne),Ne=S.get(ne),te=this._buildInstruction(G,n,Ne,ye,be);if(te.errors&&te.errors.length){ee.push(te);return}if(be){$.onStart(()=>Op(ne,te.fromStyles)),$.onDestroy(()=>As(ne,te.toStyles)),i.push($);return}if(G.isFallbackTransition){$.onStart(()=>Op(ne,te.fromStyles)),$.onDestroy(()=>As(ne,te.toStyles)),i.push($);return}let Ae=[];te.timelines.forEach(Q=>{Q.stretchStartingKeyframe=!0,this.disabledNodes.has(Q.element)||Ae.push(Q)}),te.timelines=Ae,n.append(ne,te.timelines);let K={instruction:te,player:$,element:ne};d.push(K),te.queriedElements.forEach(Q=>xl(u,Q,[]).push($)),te.preStyleProps.forEach((Q,Ce)=>{if(Q.size){let Ve=f.get(Ce);Ve||f.set(Ce,Ve=new Set),Q.forEach((mt,Ye)=>Ve.add(Ye))}}),te.postStyleProps.forEach((Q,Ce)=>{let Ve=_.get(Ce);Ve||_.set(Ce,Ve=new Set),Q.forEach((mt,Ye)=>Ve.add(Ye))})});if(ee.length){let L=[];ee.forEach(N=>{L.push(p8(N.triggerName,N.errors))}),re.forEach(N=>N.destroy()),this.reportError(L)}let ae=new Map,se=new Map;d.forEach(L=>{let N=L.element;n.has(N)&&(se.set(N,N),this._beforeAnimationBuild(L.player.namespaceId,L.instruction,ae))}),i.forEach(L=>{let N=L.element;this._getPreviousPlayers(N,!1,L.namespaceId,L.triggerName,null).forEach($=>{xl(ae,N,[]).push($),$.destroy()})});let _e=D.filter(L=>P8(L,f,_)),de=new Map;S8(de,this.driver,z,_,Es).forEach(L=>{P8(L,f,_)&&_e.push(L)});let W=new Map;P.forEach((L,N)=>{S8(W,this.driver,new Set(L),f,sf)}),_e.forEach(L=>{let N=de.get(L),G=W.get(L);de.set(L,new Map([...N?.entries()??[],...G?.entries()??[]]))});let pe=[],O=[],B={};d.forEach(L=>{let{element:N,player:G,instruction:$}=L;if(n.has(N)){if(C.has(N)){G.onDestroy(()=>As(N,$.toStyles)),G.disabled=!0,G.overrideTotalTime($.totalTime),i.push(G);return}let ne=B;if(se.size>1){let ye=N,Ne=[];for(;ye=ye.parentNode;){let te=se.get(ye);if(te){ne=te;break}Ne.push(ye)}Ne.forEach(te=>se.set(te,ne))}let be=this._buildAnimation(G.namespaceId,$,ae,s,W,de);if(G.setRealPlayer(be),ne===B)pe.push(G);else{let ye=this.playersByElement.get(ne);ye&&ye.length&&(G.parentPlayer=Nc(ye)),i.push(G)}}else Op(N,$.fromStyles),G.onDestroy(()=>As(N,$.toStyles)),O.push(G),C.has(N)&&i.push(G)}),O.forEach(L=>{let N=s.get(L.element);if(N&&N.length){let G=Nc(N);L.setRealPlayer(G)}}),i.forEach(L=>{L.parentPlayer?L.syncPlayerEvents(L.parentPlayer):L.destroy()});for(let L=0;L!be.destroyed);ne.length?Yre(this,N,ne):this.processLeaveNode(N)}return D.length=0,pe.forEach(L=>{this.players.push(L),L.onDone(()=>{L.destroy();let N=this.players.indexOf(L);this.players.splice(N,1)}),L.play()}),pe}afterFlush(o){this._flushFns.push(o)}afterFlushAnimationsDone(o){this._whenQuietFns.push(o)}_getPreviousPlayers(o,t,n,i,s){let d=[];if(t){let u=this.playersByQueriedElement.get(o);u&&(d=u)}else{let u=this.playersByElement.get(o);if(u){let f=!s||s==ff;u.forEach(_=>{_.queued||!f&&_.triggerName!=i||d.push(_)})}}return(n||i)&&(d=d.filter(u=>!(n&&n!=u.namespaceId||i&&i!=u.triggerName))),d}_beforeAnimationBuild(o,t,n){let i=t.triggerName,s=t.element,d=t.isRemovalTransition?void 0:o,u=t.isRemovalTransition?void 0:i;for(let f of t.timelines){let _=f.element,C=_!==s,x=xl(n,_,[]);this._getPreviousPlayers(_,C,d,u,t.toState).forEach(P=>{let S=P.getRealPlayer();S.beforeDestroy&&S.beforeDestroy(),P.destroy(),x.push(P)})}Op(s,t.fromStyles)}_buildAnimation(o,t,n,i,s,d){let u=t.triggerName,f=t.element,_=[],C=new Set,x=new Set,y=t.timelines.map(S=>{let M=S.element;C.add(M);let D=M[Fs];if(D&&D.removedBeforeQueried)return new ud(S.duration,S.delay);let k=M!==f,z=Jre((n.get(M)||jre).map(ae=>ae.getRealPlayer())).filter(ae=>{let se=ae;return se.element?se.element===M:!1}),U=s.get(M),J=d.get(M),re=qT(this._normalizer,S.keyframes,U,J),ee=this._buildPlayer(S,re,z);if(S.subTimeline&&i&&x.add(M),k){let ae=new _f(o,u,M);ae.setRealPlayer(ee),_.push(ae)}return ee});_.forEach(S=>{xl(this.playersByQueriedElement,S.element,[]).push(S),S.onDone(()=>Ure(this.playersByQueriedElement,S.element,S))}),C.forEach(S=>ls(S,UT));let P=Nc(y);return P.onDestroy(()=>{C.forEach(S=>A0(S,UT)),As(f,t.toStyles)}),x.forEach(S=>{xl(i,S,[]).push(P)}),P}_buildPlayer(o,t,n){return t.length>0?this.driver.animate(o.element,t,o.duration,o.delay,o.easing,n):new ud(o.duration,o.delay)}},_f=class{namespaceId;triggerName;element;_player=new ud;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(o,t,n){this.namespaceId=o,this.triggerName=t,this.element=n}setRealPlayer(o){this._containsRealPlayer||(this._player=o,this._queuedCallbacks.forEach((t,n)=>{t.forEach(i=>Zg(o,n,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(o.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(o){this.totalTime=o}syncPlayerEvents(o){let t=this._player;t.triggerCallback&&o.onStart(()=>t.triggerCallback("start")),o.onDone(()=>this.finish()),o.onDestroy(()=>this.destroy())}_queueEvent(o,t){xl(this._queuedCallbacks,o,[]).push(t)}onDone(o){this.queued&&this._queueEvent("done",o),this._player.onDone(o)}onStart(o){this.queued&&this._queueEvent("start",o),this._player.onStart(o)}onDestroy(o){this.queued&&this._queueEvent("destroy",o),this._player.onDestroy(o)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(o){this.queued||this._player.setPosition(o)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(o){let t=this._player;t.triggerCallback&&t.triggerCallback(o)}};function Ure(e,o,t){let n=e.get(o);if(n){if(n.length){let i=n.indexOf(t);n.splice(i,1)}n.length==0&&e.delete(o)}return n}function Wre(e){return e??null}function s_(e){return e&&e.nodeType===1}function Qre(e){return e=="start"||e=="done"}function y8(e,o){let t=e.style.display;return e.style.display=o??"none",t}function S8(e,o,t,n,i){let s=[];t.forEach(f=>s.push(y8(f)));let d=[];n.forEach((f,_)=>{let C=new Map;f.forEach(x=>{let y=o.computeStyle(_,x,i);C.set(x,y),(!y||y.length==0)&&(_[Fs]=$re,d.push(_))}),e.set(_,C)});let u=0;return t.forEach(f=>y8(f,s[u++])),d}function w8(e,o){let t=new Map;if(e.forEach(u=>t.set(u,[])),o.length==0)return t;let n=1,i=new Set(o),s=new Map;function d(u){if(!u)return n;let f=s.get(u);if(f)return f;let _=u.parentNode;return t.has(_)?f=_:i.has(_)?f=n:f=d(_),s.set(u,f),f}return o.forEach(u=>{let f=d(u);f!==n&&t.get(f).push(u)}),t}function ls(e,o){e.classList?.add(o)}function A0(e,o){e.classList?.remove(o)}function Yre(e,o,t){Nc(t).onDone(()=>e.processLeaveNode(o))}function Jre(e){let o=[];return O8(e,o),o}function O8(e,o){for(let t=0;ti.add(s)):o.set(e,n),t.delete(e),!0}var F0=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(o,t)=>{};constructor(o,t,n){this._driver=t,this._normalizer=n,this._transitionEngine=new s4(o.body,t,n),this._timelineEngine=new r4(o.body,t,n),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(o,t,n,i,s){let d=o+"-"+i,u=this._triggerCache[d];if(!u){let f=[],_=[],C=M8(this._driver,s,f,_);if(f.length)throw e8(i,f);u=Nre(i,C,this._normalizer),this._triggerCache[d]=u}this._transitionEngine.registerTrigger(t,i,u)}register(o,t){this._transitionEngine.register(o,t)}destroy(o,t){this._transitionEngine.destroy(o,t)}onInsert(o,t,n,i){this._transitionEngine.insertNode(o,t,n,i)}onRemove(o,t,n){this._transitionEngine.removeNode(o,t,n)}disableAnimations(o,t){this._transitionEngine.markElementAsDisabled(o,t)}process(o,t,n,i){if(n.charAt(0)=="@"){let[s,d]=zT(n),u=i;this._timelineEngine.command(s,t,d,u)}else this._transitionEngine.trigger(o,t,n,i)}listen(o,t,n,i,s){if(n.charAt(0)=="@"){let[d,u]=zT(n);return this._timelineEngine.listen(d,t,u,s)}return this._transitionEngine.listen(o,t,n,i,s)}flush(o=-1){this._transitionEngine.flush(o)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(o){this._transitionEngine.afterFlushAnimationsDone(o)}};function Xre(e,o){let t=null,n=null;return Array.isArray(o)&&o.length?(t=XT(o[0]),o.length>1&&(n=XT(o[o.length-1]))):o instanceof Map&&(t=XT(o)),t||n?new Zre(e,t,n):null}var Zre=(()=>{class e{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,n,i){this._element=t,this._startStyles=n,this._endStyles=i;let s=e.initialStylesByElement.get(t);s||e.initialStylesByElement.set(t,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&As(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(As(this._element,this._initialStyles),this._endStyles&&(As(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(e.initialStylesByElement.delete(this._element),this._startStyles&&(Op(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Op(this._element,this._endStyles),this._endStyles=null),As(this._element,this._initialStyles),this._state=3)}}return e})();function XT(e){let o=null;return e.forEach((t,n)=>{ele(n)&&(o=o||new Map,o.set(n,t))}),o}function ele(e){return e==="display"||e==="position"}var h_=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(o,t,n,i){this.element=o,this.keyframes=t,this.options=n,this._specialStyles=i,this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(o=>o()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let o=this.keyframes,t=this._triggerWebAnimation(this.element,o,this.options);if(!t)return this._onFinish(),null;this.domPlayer=t,this._finalKeyframe=o.length?o[o.length-1]:new Map;let n=()=>this._onFinish();return t.addEventListener("finish",n),this.onDestroy(()=>{t.removeEventListener("finish",n)}),t}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(o){let t=[];return o.forEach(n=>{t.push(Object.fromEntries(n))}),t}_triggerWebAnimation(o,t,n){let i=this._convertKeyframesToObject(t);try{return o.animate(i,n)}catch{return null}}onStart(o){this._originalOnStartFns.push(o),this._onStartFns.push(o)}onDone(o){this._originalOnDoneFns.push(o),this._onDoneFns.push(o)}onDestroy(o){this._onDestroyFns.push(o)}play(){let o=this._buildPlayer();o&&(this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),o.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish())}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer?.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(o=>o()),this._onDestroyFns=[])}setPosition(o){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=o*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let o=new Map;this.hasStarted()&&this._finalKeyframe.forEach((n,i)=>{i!=="offset"&&o.set(i,this._finished?n:a_(this.element,i))}),this.currentSnapshot=o}triggerCallback(o){let t=o==="start"?this._onStartFns:this._onDoneFns;t.forEach(n=>n()),t.length=0}},g_=class{validateStyleProperty(o){return!0}validateAnimatableStyleProperty(o){return!0}containsElement(o,t){return HT(o,t)}getParentElement(o){return t_(o)}query(o,t,n){return GT(o,t,n)}computeStyle(o,t,n){return a_(o,t)}animate(o,t,n,i,s,d=[]){let u=i==0?"both":"forwards",f={duration:n,delay:i,fill:u};s&&(f.easing=s);let _=new Map,C=d.filter(P=>P instanceof h_);f8(n,i)&&C.forEach(P=>{P.currentSnapshot.forEach((S,M)=>_.set(M,S))});let x=d8(t).map(P=>new Map(P));x=h8(o,x,_);let y=Xre(o,x);return new h_(o,x,f,y)}};var c_="@",A8="@.disabled",__=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(o,t,n,i){this.namespaceId=o,this.delegate=t,this.engine=n,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(o){this.delegate.destroyNode?.(o)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(o,t){return this.delegate.createElement(o,t)}createComment(o){return this.delegate.createComment(o)}createText(o){return this.delegate.createText(o)}appendChild(o,t){this.delegate.appendChild(o,t),this.engine.onInsert(this.namespaceId,t,o,!1)}insertBefore(o,t,n,i=!0){this.delegate.insertBefore(o,t,n),this.engine.onInsert(this.namespaceId,t,o,i)}removeChild(o,t,n,i){if(i){this.delegate.removeChild(o,t,n,i);return}this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(o,t){return this.delegate.selectRootElement(o,t)}parentNode(o){return this.delegate.parentNode(o)}nextSibling(o){return this.delegate.nextSibling(o)}setAttribute(o,t,n,i){this.delegate.setAttribute(o,t,n,i)}removeAttribute(o,t,n){this.delegate.removeAttribute(o,t,n)}addClass(o,t){this.delegate.addClass(o,t)}removeClass(o,t){this.delegate.removeClass(o,t)}setStyle(o,t,n,i){this.delegate.setStyle(o,t,n,i)}removeStyle(o,t,n){this.delegate.removeStyle(o,t,n)}setProperty(o,t,n){t.charAt(0)==c_&&t==A8?this.disableAnimations(o,!!n):this.delegate.setProperty(o,t,n)}setValue(o,t){this.delegate.setValue(o,t)}listen(o,t,n,i){return this.delegate.listen(o,t,n,i)}disableAnimations(o,t){this.engine.disableAnimations(o,t)}},c4=class extends __{factory;constructor(o,t,n,i,s){super(t,n,i,s),this.factory=o,this.namespaceId=t}setProperty(o,t,n){t.charAt(0)==c_?t.charAt(1)=="."&&t==A8?(n=n===void 0?!0:!!n,this.disableAnimations(o,n)):this.engine.process(this.namespaceId,o,t.slice(1),n):this.delegate.setProperty(o,t,n)}listen(o,t,n,i){if(t.charAt(0)==c_){let s=tle(o),d=t.slice(1),u="";return d.charAt(0)!=c_&&([d,u]=ile(d)),this.engine.listen(this.namespaceId,s,d,u,f=>{let _=f._data||-1;this.factory.scheduleListenerCallback(_,n,f)})}return this.delegate.listen(o,t,n,i)}};function tle(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}function ile(e){let o=e.indexOf("."),t=e.substring(0,o),n=e.slice(o+1);return[t,n]}var C_=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(o,t,n){this.delegate=o,this.engine=t,this._zone=n,t.onRemovalComplete=(i,s)=>{s?.removeChild(null,i)}}createRenderer(o,t){let i=this.delegate.createRenderer(o,t);if(!o||!t?.data?.animation){let _=this._rendererCache,C=_.get(i);if(!C){let x=()=>_.delete(i);C=new __("",i,this.engine,x),_.set(i,C)}return C}let s=t.id,d=t.id+"-"+this._currentId;this._currentId++,this.engine.register(d,o);let u=_=>{Array.isArray(_)?_.forEach(u):this.engine.registerTrigger(s,d,o,_.name,_)};return t.data.animation.forEach(u),new c4(this,d,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(o,t,n){if(o>=0&&ot(n));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(s=>{let[d,u]=s;d(u)}),this._animationCallbacksBuffer=[]})}),i.push([t,n])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(o){this.engine.flush(),this.delegate.componentReplaced?.(o)}};var ole=(()=>{class e extends F0{constructor(t,n,i){super(t,n,i)}ngOnDestroy(){this.flush()}static \u0275fac=function(n){return new(n||e)(hl(pF),hl(gd),hl(_d))};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})();function ale(){return new p_}function rle(e,o,t){return new C_(e,o,t)}var k8=[{provide:_d,useFactory:ale},{provide:F0,useClass:ole},{provide:CF,useFactory:rle,deps:[IF,F0,pd]}],lle=[{provide:gd,useClass:p4},{provide:OT,useValue:"NoopAnimations"},...k8],F8=[{provide:gd,useFactory:()=>new g_},{provide:OT,useFactory:()=>"BrowserAnimations"},...k8],v_=(()=>{class e{static withConfig(t){return{ngModule:e,providers:t.disableAnimations?lle:F8}}static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({providers:F8,imports:[wg]})}return e})();var Cd=(function(e){return e[e.Off=0]="Off",e[e.Error=1]="Error",e[e.Warning=2]="Warning",e[e.Info=3]="Info",e[e.Debug=4]="Debug",e})(Cd||{}),ks=class e{static{this.level=Cd.Debug}static{this.outputs=[]}static enableProductionMode(){e.level=Cd.Warning}constructor(o){this.source=o}debug(...o){this.log(console.log,Cd.Debug,o)}info(...o){this.log(console.info,Cd.Info,o)}warn(...o){this.log(console.warn,Cd.Warning,o)}error(...o){this.log(console.error,Cd.Error,o)}log(o,t,n){if(t<=e.level){let i=this.source?["["+this.source+"]"].concat(n):n;o.apply(console,i),e.outputs.forEach(s=>s.apply(s,[this.source,t].concat(n)))}}};var B8=(()=>{class e{constructor(){this.timeoutDelay=un.session.timeout.idleTimeout||3e5,this.timeout$=new Rr,this.resetTimer$=new Rr,this.active=!1,this.$onSessionTimeout=this.timeout$.asObservable(),this.resetTimer$.subscribe(()=>{this.timerSubscription?.unsubscribe(),this.timerSubscription=nF(this.timeoutDelay).subscribe(()=>{this.timeout$.next(),this.stop()})})}start(){if(!this.active){this.active=!0,this.reset();let n=ul(...["mousemove","keydown","wheel","mousedown","scroll"].map(i=>cd(document,i)));this.userActionsSubscription=n.subscribe(()=>{this.reset()})}}stop(){this.active&&(this.active=!1,this.timerSubscription?.unsubscribe(),this.userActionsSubscription?.unsubscribe())}reset(){this.active&&this.resetTimer$.next()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var x_=(()=>{class e{constructor(){this.dialogRef=T(eo)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-session-timeout-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content"),c(4),p(5,"translate"),r(),l(6,"mat-dialog-actions")(7,"button",1),c(8),p(9,"translate"),r()()),n&2&&(a(),h(m(2,3,"labels.heading.Session Timeout")),a(3),v("",m(5,5,"labels.text.Session timed out after a period of inactivity"),"."),a(4),h(m(9,7,"labels.buttons.Close")))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var Ia=(()=>{class e{constructor(){this.authenticationService=T(Wo),this.http=T(ko),this.route=T(Ie),this.router=T(qe),this.alertService=T(Ur),this.translateService=T(yi),this.baseUrl=un.OIDC.oidcBaseUrl,this.authUrl=`${this.baseUrl}oauth/v2/authorize`,this.tokenUrl=`${this.baseUrl}oauth/v2/token`,this.clientId=un.OIDC.oidcClientId,this.api=un.OIDC.oidcApiUrl,this.frontUrl=un.OIDC.oidcFrontUrl,this.redirectUri=`${this.frontUrl}#/callback`,this.refreshTimeoutId=null}login(){return qn(this,null,function*(){let t=this.generateRandomString(),n=yield this.generateCodeChallenge(t);sessionStorage.setItem("code_verifier",t);let i=`${this.authUrl}?client_id=${encodeURIComponent(this.clientId)}&redirect_uri=${encodeURIComponent(this.redirectUri)}&response_type=code&scope=openid profile email offline_access&code_challenge=${n}&code_challenge_method=S256`;window.location.href=i})}logout(){let t=localStorage.getItem("id_token"),n=this.frontUrl+"#/login";if(this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),!t){window.location.href=n;return}sessionStorage.removeItem("mifosXCredentials"),sessionStorage.removeItem("mifosXZitadelTokenDetails"),localStorage.removeItem("access_token"),localStorage.removeItem("expires_in"),localStorage.removeItem("id_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("refresh_expires_in"),localStorage.removeItem("token_start_time"),localStorage.removeItem("code_verifier"),localStorage.removeItem("mifosXZitadel"),localStorage.removeItem("auth_code");let i=`${this.baseUrl}/oidc/v1/end_session?id_token_hint=${t}&post_logout_redirect_uri=${encodeURIComponent(n)}`;window.location.href=i}getAccessToken(){let t=sessionStorage.getItem("mifosXZitadelTokenDetails");return t?JSON.parse(t).access_token:null}generateRandomString(t=128){let n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._~",i="";for(let s=0;sn.ok?n.json():(this.alertService.alert({type:"User Details",message:this.translateService.instant("errors.Username or password incorrect.")}),this.sesionEnd(),!1)).then(n=>{let s=n.object;this.authenticationService.saveZitadelCredentials(s),window.location.href="/#/home"}).catch(n=>{this.alertService.alert({type:"User Details",message:n})})}deletUser(t){fetch(`${this.api}authentication/user/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`}}).then(n=>n.json()).then(n=>{n.status===200?this.router.navigate(["/appusers"]):alert(n.msg)}).catch(n=>{alert(n.msg)})}activeUser(t){fetch(`${this.api}authentication/user/act/${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({userId:t})}).then(n=>n.json()).then(n=>{window.location.reload()}).catch(n=>{alert(n.msg)})}desactiveUser(t){fetch(`${this.api}authentication/user/des/${t}`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`}}).then(n=>n.json()).then(n=>{window.location.reload()}).catch(n=>{alert(n.msg)})}getUsers(){let t=[];fetch(`${this.api}authentication/user`,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`}}).then(n=>n.json()).then(n=>{let i=n.data?.result;Array.isArray(i)&&i.forEach(s=>{let d=s.human;d&&t.push(d)})}).catch(n=>console.error(`Error retrieving users: ${n}`))}createRole(t,n,i){fetch(`${this.api}authentication/role`,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({roleKey:t,displayName:n,group:i})}).then(s=>s.json()).then(s=>{}).catch(s=>{alert(s.msg)})}updateRole(t,n,i){fetch(`${this.api}authentication/role`,{method:"PUT",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({roleKey:t,displayName:n,group:i})}).then(s=>s.json()).then(s=>{}).catch(s=>{alert(s.msg)})}deleteRole(t){fetch(`${this.api}authentication/role/${t}`,{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.getAccessToken()}`},body:JSON.stringify({roleKey:t})}).then(n=>n.json()).then(n=>{}).catch(n=>{alert(n.msg)})}refreshToken(){return new Promise((t,n)=>{let i=localStorage.getItem("refresh_token");if(!i)return n("Sin refresh_token");let s=new URLSearchParams;s.set("grant_type","refresh_token"),s.set("refresh_token",i),s.set("client_id",this.clientId),fetch(this.tokenUrl,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:s.toString()}).then(d=>d.ok?d.json():d.text().then(u=>{throw new Error(u)})).then(d=>{if(!d||!d.access_token||!d.expires_in)throw new Error("The server's response does not contain the expected fields.");localStorage.setItem("access_token",d.access_token),localStorage.setItem("id_token",d.id_token??""),localStorage.setItem("refresh_token",d.refresh_token??""),localStorage.setItem("expires_in",d.expires_in.toString()),localStorage.setItem("refresh_expires_in",d.refresh_expires_in?.toString()??""),localStorage.setItem("token_start_time",Date.now().toString()),this.scheduleRefresh(d.expires_in),t()}).catch(d=>{setTimeout(()=>{},3e5),n(d)})})}scheduleRefresh(t){let n=(t-3539)*1e3;if(n<=0){this.refreshToken();return}this.refreshTimeoutId&&clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=setTimeout(()=>{this.refreshToken()},n)}sesionEnd(){return qn(this,null,function*(){let t=localStorage.getItem("id_token"),n=this.frontUrl+"#/login";if(this.refreshTimeoutId&&(clearTimeout(this.refreshTimeoutId),this.refreshTimeoutId=null),!t){window.location.href=n;return}let i=`${this.baseUrl}oidc/v1/end_session?id_token_hint=${t}&post_logout_redirect_uri=${encodeURIComponent(n)}`;try{let s=yield fetch(i,{method:"GET",credentials:"include"});s.ok||console.error("Error en logout:",s.status,s.statusText)}catch(s){console.error("Error de red en logout:",s)}finally{sessionStorage.removeItem("mifosXCredentials"),sessionStorage.removeItem("mifosXZitadelTokenDetails"),localStorage.removeItem("access_token"),localStorage.removeItem("expires_in"),localStorage.removeItem("id_token"),localStorage.removeItem("refresh_token"),localStorage.removeItem("refresh_expires_in"),localStorage.removeItem("token_start_time"),localStorage.removeItem("code_verifier"),localStorage.removeItem("mifosXZitadel"),localStorage.removeItem("auth_code")}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ple(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:t===Math.floor(t)&&t>=2&&t<=4&&n===0?3:n!==0?4:5}var R8=["cs",[["dop.","odp."]],void 0,[["N","P","\xDA","S","\u010C","P","S"],["ne","po","\xFAt","st","\u010Dt","p\xE1","so"],["ned\u011Ble","pond\u011Bl\xED","\xFAter\xFD","st\u0159eda","\u010Dtvrtek","p\xE1tek","sobota"],["ne","po","\xFAt","st","\u010Dt","p\xE1","so"]],void 0,[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","\xFAno","b\u0159e","dub","kv\u011B","\u010Dvn","\u010Dvc","srp","z\xE1\u0159","\u0159\xEDj","lis","pro"],["ledna","\xFAnora","b\u0159ezna","dubna","kv\u011Btna","\u010Dervna","\u010Dervence","srpna","z\xE1\u0159\xED","\u0159\xEDjna","listopadu","prosince"]],[["1","2","3","4","5","6","7","8","9","10","11","12"],["led","\xFAno","b\u0159e","dub","kv\u011B","\u010Dvn","\u010Dvc","srp","z\xE1\u0159","\u0159\xEDj","lis","pro"],["leden","\xFAnor","b\u0159ezen","duben","kv\u011Bten","\u010Derven","\u010Dervenec","srpen","z\xE1\u0159\xED","\u0159\xEDjen","listopad","prosinec"]],[["p\u0159.n.l.","n.l."],["p\u0159. n. l.","n. l."],["p\u0159ed na\u0161\xEDm letopo\u010Dtem","na\u0161eho letopo\u010Dtu"]],1,[6,0],["dd.MM.yy","d. M. y","d. MMMM y","EEEE d. MMMM y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",","\xA0",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"CZK","K\u010D","\u010Desk\xE1 koruna",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],CSK:["K\u010Ds"],CZK:["K\u010D"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],TWD:["NT$"],USD:["US$","$"],VND:[void 0,"\u20AB"],XEU:["ECU"],XXX:[]},"ltr",ple];function mle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var N8=["en",[["a","p"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],void 0,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",void 0,"{1} 'at' {0}",void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",mle];function dle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return o===1?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var L8=["es",[["a.\xA0m.","p.\xA0m."]],void 0,[["D","L","M","X","J","V","S"],["dom","lun","mar","mi\xE9","jue","vie","s\xE1b"],["domingo","lunes","martes","mi\xE9rcoles","jueves","viernes","s\xE1bado"],["DO","LU","MA","MI","JU","VI","SA"]],void 0,[["E","F","M","A","M","J","J","A","S","O","N","D"],["ene","feb","mar","abr","may","jun","jul","ago","sept","oct","nov","dic"],["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]],void 0,[["a. C.","d. C."],void 0,["antes de Cristo","despu\xE9s de Cristo"]],1,[6,0],["d/M/yy","d MMM y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["H:mm","H:mm:ss","H:mm:ss z","H:mm:ss (zzzz)"],["{1}, {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{AUD:[void 0,"$"],BRL:[void 0,"R$"],BYN:[void 0,"\u0440."],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],EGP:[],ESP:["\u20A7"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[void 0,"\u20AA"],INR:[void 0,"\u20B9"],JPY:[void 0,"\xA5"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],THB:["\u0E3F"],TWD:[void 0,"NT$"],USD:["US$","$"],XAF:[],XCD:[void 0,"$"],XOF:[]},"ltr",dle];function ule(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var V8=["de",[["AM","PM"]],void 0,[["S","M","D","M","D","F","S"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["S","M","D","M","D","F","S"],["So","Mo","Di","Mi","Do","Fr","Sa"],["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan.","Feb.","M\xE4rz","Apr.","Mai","Juni","Juli","Aug.","Sept.","Okt.","Nov.","Dez."],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","M\xE4r","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],["Januar","Februar","M\xE4rz","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]],[["v. Chr.","n. Chr."]],1,[6,0],["dd.MM.yy","dd.MM.y","d. MMMM y","EEEE, d. MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} 'um' {0}",void 0],[",",".",";","%","+","-","E","\xB7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","Euro",{ATS:["\xF6S"],AUD:["AU$","$"],BGM:["BGK"],BGO:["BGJ"],BYN:[void 0,"\u0440."],CUC:[void 0,"Cub$"],DEM:["DM"],FKP:[void 0,"Fl\xA3"],GHS:[void 0,"\u20B5"],GNF:[void 0,"F.G."],KMF:[void 0,"FC"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],RUR:[void 0,"\u0440."],RWF:[void 0,"F.Rw"],SYP:[],THB:["\u0E3F"],TWD:["NT$"],XXX:[],ZMW:[void 0,"K"]},"ltr",ule];function fle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===0||t===1?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var q8=["fr",[["AM","PM"]],void 0,[["D","L","M","M","J","V","S"],["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"],["di","lu","ma","me","je","ve","sa"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","f\xE9vr.","mars","avr.","mai","juin","juil.","ao\xFBt","sept.","oct.","nov.","d\xE9c."],["janvier","f\xE9vrier","mars","avril","mai","juin","juillet","ao\xFBt","septembre","octobre","novembre","d\xE9cembre"]],void 0,[["av. J.-C.","ap. J.-C."],void 0,["avant J\xE9sus-Christ","apr\xE8s J\xE9sus-Christ"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}","{1}, {0}","{1} '\xE0' {0}",void 0],[",","\u202F",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{ARS:["$AR","$"],AUD:["$AU","$"],BEF:["FB"],BMD:["$BM","$"],BND:["$BN","$"],BYN:[void 0,"\u0440."],BZD:["$BZ","$"],CAD:["$CA","$"],CLP:["$CL","$"],CNY:[void 0,"\xA5"],COP:["$CO","$"],CYP:["\xA3CY"],EGP:[void 0,"\xA3E"],FJD:["$FJ","$"],FKP:["\xA3FK","\xA3"],FRF:["F"],GBP:["\xA3GB","\xA3"],GIP:["\xA3GI","\xA3"],HKD:[void 0,"$"],IEP:["\xA3IE"],ILP:["\xA3IL"],ITL:["\u20A4IT"],JPY:[void 0,"\xA5"],KMF:[void 0,"FC"],LBP:["\xA3LB","\xA3L"],MTP:["\xA3MT"],MXN:["$MX","$"],NAD:["$NA","$"],NIO:[void 0,"$C"],NZD:["$NZ","$"],PHP:[void 0,"\u20B1"],RHD:["$RH"],RON:[void 0,"L"],RWF:[void 0,"FR"],SBD:["$SB","$"],SGD:["$SG","$"],SRD:["$SR","$"],TOP:[void 0,"$T"],TTD:["$TT","$"],TWD:[void 0,"NT$"],USD:["$US","$"],UYU:["$UY","$"],WST:["$WS"],XCD:[void 0,"$"],XPF:["FCFP"],ZMW:[void 0,"Kw"]},"ltr",fle];function hle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===1&&n===0?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var z8=["it",[["m.","p."],["AM","PM"]],void 0,[["D","L","M","M","G","V","S"],["dom","lun","mar","mer","gio","ven","sab"],["domenica","luned\xEC","marted\xEC","mercoled\xEC","gioved\xEC","venerd\xEC","sabato"],["dom","lun","mar","mer","gio","ven","sab"]],void 0,[["G","F","M","A","M","G","L","A","S","O","N","D"],["gen","feb","mar","apr","mag","giu","lug","ago","set","ott","nov","dic"],["gennaio","febbraio","marzo","aprile","maggio","giugno","luglio","agosto","settembre","ottobre","novembre","dicembre"]],void 0,[["aC","dC"],["a.C.","d.C."],["avanti Cristo","dopo Cristo"]],1,[6,0],["dd/MM/yy","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} {0}",void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","euro",{BRL:[void 0,"R$"],BYN:[void 0,"Br"],EGP:[void 0,"\xA3E"],HKD:[void 0,"$"],INR:[void 0,"\u20B9"],JPY:[void 0,"\xA5"],KRW:[void 0,"\u20A9"],MXN:[void 0,"$"],NOK:[void 0,"NKr"],THB:["\u0E3F"],TWD:[void 0,"NT$"],USD:[void 0,"$"],VND:[void 0,"\u20AB"]},"ltr",hle];function gle(e){let o=e;return 5}var H8=["ko",[["AM","PM"],void 0,["\uC624\uC804","\uC624\uD6C4"]],void 0,[["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"],void 0,["\uC77C\uC694\uC77C","\uC6D4\uC694\uC77C","\uD654\uC694\uC77C","\uC218\uC694\uC77C","\uBAA9\uC694\uC77C","\uAE08\uC694\uC77C","\uD1A0\uC694\uC77C"],["\uC77C","\uC6D4","\uD654","\uC218","\uBAA9","\uAE08","\uD1A0"]],void 0,[["1\uC6D4","2\uC6D4","3\uC6D4","4\uC6D4","5\uC6D4","6\uC6D4","7\uC6D4","8\uC6D4","9\uC6D4","10\uC6D4","11\uC6D4","12\uC6D4"]],void 0,[["BC","AD"],void 0,["\uAE30\uC6D0\uC804","\uC11C\uAE30"]],0,[6,0],["yy. M. d.","y. M. d.","y\uB144 M\uC6D4 d\uC77C","y\uB144 M\uC6D4 d\uC77C EEEE"],["a h:mm","a h:mm:ss","a h\uC2DC m\uBD84 s\uCD08 z","a h\uC2DC m\uBD84 s\uCD08 zzzz"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"KRW","\u20A9","\uB300\uD55C\uBBFC\uAD6D \uC6D0",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],RON:[void 0,"L"],TWD:["NT$"],USD:["US$","$"]},"ltr",gle];function _le(e){let o=e,t=parseInt(e.toString().replace(/^[^.]*\.?/,""),10)||0;return o%10===1&&!(o%100>=11&&o%100<=19)?1:o%10===Math.floor(o%10)&&o%10>=2&&o%10<=9&&!(o%100>=11&&o%100<=19)?3:t!==0?4:5}var G8=["lt",[["pr.\xA0p.","pop."],["prie\u0161piet","popiet"]],void 0,[["S","P","A","T","K","P","\u0160"],["sk","pr","an","tr","kt","pn","\u0161t"],["sekmadienis","pirmadienis","antradienis","tre\u010Diadienis","ketvirtadienis","penktadienis","\u0161e\u0161tadienis"],["Sk","Pr","An","Tr","Kt","Pn","\u0160t"]],void 0,[["S","V","K","B","G","B","L","R","R","S","L","G"],["saus.","vas.","kov.","bal.","geg.","bir\u017E.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],["sausio","vasario","kovo","baland\u017Eio","gegu\u017E\u0117s","bir\u017Eelio","liepos","rugpj\u016B\u010Dio","rugs\u0117jo","spalio","lapkri\u010Dio","gruod\u017Eio"]],[["S","V","K","B","G","B","L","R","R","S","L","G"],["saus.","vas.","kov.","bal.","geg.","bir\u017E.","liep.","rugp.","rugs.","spal.","lapkr.","gruod."],["sausis","vasaris","kovas","balandis","gegu\u017E\u0117","bir\u017Eelis","liepa","rugpj\u016Btis","rugs\u0117jis","spalis","lapkritis","gruodis"]],[["pr. Kr.","po Kr."],void 0,["prie\u0161 Krist\u0173","po Kristaus"]],1,[6,0],["y-MM-dd",void 0,"y 'm'. MMMM d 'd'.","y 'm'. MMMM d 'd'., EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",","\xA0",";","%","+","\u2212","\xD710^","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0\xA0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","Euras",{AUD:[void 0,"$"],BDT:[],BRL:[void 0,"R$"],BYN:[void 0,"Br"],CAD:[void 0,"$"],CNY:[void 0,"\xA5"],GBP:[void 0,"\xA3"],HKD:[void 0,"$"],ILS:[],INR:[],JPY:[void 0,"\xA5"],KHR:[],KRW:[void 0,"\u20A9"],LAK:[],MNT:[],MXN:[void 0,"$"],NZD:[void 0,"$"],PHP:[void 0,"\u20B1"],PLN:[void 0,"zl"],PYG:[void 0,"Gs"],RUB:[void 0,"rb"],TWD:[void 0,"$"],USD:[void 0,"$"],VND:[],XAF:[],XCD:[void 0,"$"],XOF:[],XPF:[]},"ltr",_le];function Cle(e){let o=e,t=e.toString().replace(/^[^.]*\.?/,"").length,n=parseInt(e.toString().replace(/^[^.]*\.?/,""),10)||0;return o%10===0||o%100===Math.floor(o%100)&&o%100>=11&&o%100<=19||t===2&&n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?0:o%10===1&&o%100!==11||t===2&&n%10===1&&n%100!==11||t!==2&&n%10===1?1:5}var j8=["lv",[["priek\u0161p.","p\u0113cp."],void 0,["priek\u0161pusdien\u0101","p\u0113cpusdien\u0101"]],[["priek\u0161p.","p\u0113cpusd."],void 0,["priek\u0161pusdiena","p\u0113cpusdiena"]],[["S","P","O","T","C","P","S"],["sv\u0113td.","pirmd.","otrd.","tre\u0161d.","ceturtd.","piektd.","sestd."],["sv\u0113tdiena","pirmdiena","otrdiena","tre\u0161diena","ceturtdiena","piektdiena","sestdiena"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]],[["S","P","O","T","C","P","S"],["Sv\u0113td.","Pirmd.","Otrd.","Tre\u0161d.","Ceturtd.","Piektd.","Sestd."],["Sv\u0113tdiena","Pirmdiena","Otrdiena","Tre\u0161diena","Ceturtdiena","Piektdiena","Sestdiena"],["Sv","Pr","Ot","Tr","Ce","Pk","Se"]],[["J","F","M","A","M","J","J","A","S","O","N","D"],["janv.","febr.","marts","apr.","maijs","j\u016Bn.","j\u016Bl.","aug.","sept.","okt.","nov.","dec."],["janv\u0101ris","febru\u0101ris","marts","apr\u012Blis","maijs","j\u016Bnijs","j\u016Blijs","augusts","septembris","oktobris","novembris","decembris"]],void 0,[["p.m.\u0113.","m.\u0113."],void 0,["pirms m\u016Bsu \u0113ras","m\u016Bsu \u0113r\u0101"]],1,[6,0],["dd.MM.yy","y. 'gada' d. MMM","y. 'gada' d. MMMM","EEEE, y. 'gada' d. MMMM"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",","\xA0",";","%","+","-","E","\xD7","\u2030","\u221E","NS",":"],["#,##0.###","#,##0%","#,##0.00\xA0\xA4","#E0"],"EUR","\u20AC","eiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],GHS:[],LVL:["Ls"],PHP:[void 0,"\u20B1"],THB:["\u0E3F"],TWD:["NT$"]},"ltr",Cle];function vle(e){return e===1?1:5}var $8=["ne",[["\u092A\u0942\u0930\u094D\u0935\u093E\u0939\u094D\u0928","\u0905\u092A\u0930\u093E\u0939\u094D\u0928"]],void 0,[["\u0906","\u0938\u094B","\u092E","\u092C\u0941","\u092C\u093F","\u0936\u0941","\u0936"],["\u0906\u0907\u0924","\u0938\u094B\u092E","\u092E\u0919\u094D\u0917\u0932","\u092C\u0941\u0927","\u092C\u093F\u0939\u093F","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"],["\u0906\u0907\u0924\u092C\u093E\u0930","\u0938\u094B\u092E\u092C\u093E\u0930","\u092E\u0919\u094D\u0917\u0932\u092C\u093E\u0930","\u092C\u0941\u0927\u092C\u093E\u0930","\u092C\u093F\u0939\u093F\u092C\u093E\u0930","\u0936\u0941\u0915\u094D\u0930\u092C\u093E\u0930","\u0936\u0928\u093F\u092C\u093E\u0930"],["\u0906\u0907\u0924","\u0938\u094B\u092E","\u092E\u0919\u094D\u0917\u0932","\u092C\u0941\u0927","\u092C\u093F\u0939\u093F","\u0936\u0941\u0915\u094D\u0930","\u0936\u0928\u093F"]],void 0,[["\u091C\u0928","\u092B\u0947\u092C","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932","\u0905\u0917","\u0938\u0947\u092A","\u0905\u0915\u094D\u091F\u094B","\u0928\u094B\u092D\u0947","\u0921\u093F\u0938\u0947"],["\u091C\u0928\u0935\u0930\u0940","\u092B\u0947\u092C\u094D\u0930\u0941\u0905\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u093F\u0932","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u091F","\u0938\u0947\u092A\u094D\u091F\u0947\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u094B\u092C\u0930","\u0928\u094B\u092D\u0947\u092E\u094D\u092C\u0930","\u0921\u093F\u0938\u0947\u092E\u094D\u092C\u0930"]],[["\u091C\u0928","\u092B\u0947\u0947\u092C","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932","\u0905\u0917","\u0938\u0947\u092A","\u0905\u0915\u094D\u091F\u094B","\u0928\u094B\u092D\u0947","\u0921\u093F\u0938\u0947"],["\u091C\u0928\u0935\u0930\u0940","\u092B\u0947\u092C\u094D\u0930\u0941\u0905\u0930\u0940","\u092E\u093E\u0930\u094D\u091A","\u0905\u092A\u094D\u0930\u093F\u0932","\u092E\u0947","\u091C\u0941\u0928","\u091C\u0941\u0932\u093E\u0908","\u0905\u0917\u0938\u094D\u091F","\u0938\u0947\u092A\u094D\u091F\u0947\u092E\u094D\u092C\u0930","\u0905\u0915\u094D\u091F\u094B\u092C\u0930","\u0928\u094B\u092D\u0947\u092E\u094D\u092C\u0930","\u0921\u093F\u0938\u0947\u092E\u094D\u092C\u0930"]],[["\u0908\u0938\u093E \u092A\u0942\u0930\u094D\u0935","\u0938\u0928\u094D"]],0,[6,0],["yy/M/d","y MMM d","y MMMM d","y MMMM d, EEEE"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1}, {0}",void 0,"{1} {0}",void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##,##0.###","#,##,##0%","\xA4\xA0#,##,##0.00","#E0"],"NPR","\u0928\u0947\u0930\u0942","\u0928\u0947\u092A\u093E\u0932\u0940 \u0930\u0942\u092A\u0948\u092F\u093E\u0901",{BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],NPR:["\u0928\u0947\u0930\u0942","\u0930\u0942"],PHP:[void 0,"\u20B1"],THB:["\u0E3F"],USD:["US$","$"]},"ltr",vle];function xle(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length,i=parseInt(e.toString().replace(/^[^e]*(e([-+]?\d+))?/,"$2"))||0;return t===Math.floor(t)&&t>=0&&t<=1?1:i===0&&t!==0&&t%1e6===0&&n===0||!(i>=0&&i<=5)?4:5}var U8=["pt",[["AM","PM"]],void 0,[["D","S","T","Q","Q","S","S"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."],["domingo","segunda-feira","ter\xE7a-feira","quarta-feira","quinta-feira","sexta-feira","s\xE1bado"],["dom.","seg.","ter.","qua.","qui.","sex.","s\xE1b."]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","fev.","mar.","abr.","mai.","jun.","jul.","ago.","set.","out.","nov.","dez."],["janeiro","fevereiro","mar\xE7o","abril","maio","junho","julho","agosto","setembro","outubro","novembro","dezembro"]],void 0,[["a.C.","d.C."],void 0,["antes de Cristo","depois de Cristo"]],0,[6,0],["dd/MM/y","d 'de' MMM 'de' y","d 'de' MMMM 'de' y","EEEE, d 'de' MMMM 'de' y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[",",".",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"BRL","R$","Real brasileiro",{AUD:["AU$","$"],BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],PHP:[void 0,"\u20B1"],PTE:["Esc."],RON:[void 0,"L"],SYP:[void 0,"S\xA3"],THB:["\u0E3F"],TWD:["NT$"],USD:["US$","$"]},"ltr",xle];function ble(e){let o=e,t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var W8=["sw",[["am","pm"],["AM","PM"]],[["AM","PM"]],[["S","M","T","W","T","F","S"],["Jumapili","Jumatatu","Jumanne","Jumatano","Alhamisi","Ijumaa","Jumamosi"]],void 0,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mac","Apr","Mei","Jun","Jul","Ago","Sep","Okt","Nov","Des"],["Januari","Februari","Machi","Aprili","Mei","Juni","Julai","Agosti","Septemba","Oktoba","Novemba","Desemba"]],void 0,[["KK","BK"],void 0,["Kabla ya Kristo","Baada ya Kristo"]],1,[6,0],["dd/MM/y","d MMM y","d MMMM y","EEEE, d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",void 0,void 0,void 0],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4\xA0#,##0.00","#E0"],"TZS","TSh","Shilingi ya Tanzania",{BYN:[void 0,"\u0440."],JPY:["JP\xA5","\xA5"],KES:["Ksh"],PHP:[void 0,"\u20B1"],THB:["\u0E3F"],TWD:["NT$"],TZS:["TSh"],USD:["US$","$"]},"ltr",ble];var Sle=new ks("MifosX");Nl(R8);Nl(N8);Nl(L8);Nl(V8);Nl(q8);Nl(z8);Nl(H8);Nl(G8);Nl(j8);Nl($8);Nl(U8);Nl(W8);var Q8=(()=>{class e{constructor(t,n,i,s,d,u,f,_,C,x,y,P,S,M){this.router=t,this.activatedRoute=n,this.titleService=i,this.translateService=s,this.themeStorageService=d,this.snackBar=u,this.alertService=f,this.settingsService=_,this.authenticationService=C,this.themingService=x,this.dateUtils=y,this.idle=P,this.dialog=S,this.authService=M,this.destroy$=new Rr}login(){this.authService.login()}ngOnInit(){this.themingService.theme.subscribe(i=>{this.cssClass=i}),this.themingService.setInitialDarkMode(),this.themingService.setDarkMode(!!this.settingsService.themeDarkEnabled),un.production&&ks.enableProductionMode(),Sle.debug("init"),this.translateService.addLangs(un.supportedLanguages.split(",")),this.settingsService.language?this.translateService.use(this.settingsService.languageCode):this.translateService.use(un.defaultLanguage),this.i18nService=new JF(this.translateService);let t=this.router.events.pipe(Fc(i=>i instanceof Mg));ul(this.translateService.onLangChange,t).pipe(Mn(()=>{let i=this.activatedRoute;for(;i.firstChild;)i=i.firstChild;return i}),Fc(i=>i.outlet==="primary"),iF(i=>i.data),Rl(this.destroy$)).subscribe(i=>{let s=i.title?`labels.text.${i.title}`:"APP_NAME";this.i18nService.translate(s).pipe(oF(1)).subscribe(d=>{this.titleService.setTitle(d)})});let n=[];if(localStorage.getItem("mifosXLocation")){let i=JSON.parse(localStorage.getItem("mifosXLocation")),s=i.length;n=s>100?i.slice(s-100):i}t.pipe(Rl(this.destroy$)).subscribe(()=>{n.push(this.router.url),localStorage.setItem("mifosXLocation",JSON.stringify(n))}),this.alertService.alertEvent.subscribe(i=>{this.snackBar.open(`${i.message}`,"Close",{duration:2e3,horizontalPosition:"right",verticalPosition:"top"})}),this.buttonConfig=new YF,localStorage.getItem("mifosXLanguage")||this.settingsService.setDefaultLanguage(),localStorage.getItem("mifosXDateFormat")||this.settingsService.setDateFormat("dd MMMM yyyy"),this.settingsService.setBusinessDate(this.dateUtils.formatDate(new Date,Ot.businessDateFormat)),this.settingsService.servers||this.settingsService.setServers(un.baseApiUrls.split(",")),localStorage.getItem("mifosXTenantIdentifier")||this.settingsService.setTenantIdentifier(un.fineractPlatformTenantId||"default"),this.settingsService.setTenantIdentifiers(un.fineractPlatformTenantIds.split(",")),un.session.timeout.idleTimeout>0&&(this.authSubscription=this.authenticationService.isAuthenticated$.subscribe(i=>{i?this.idle.start():this.idle.stop()}),this.idle.$onSessionTimeout.subscribe(()=>{this.alertService.alert({type:"Session timeout",message:this.translateService.instant("labels.text.Session timed out")}),this.dialog.open(x_),setTimeout(()=>{un.OIDC.oidcServerEnabled?this.authService.logout():this.logout()},1e3)}))}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.authSubscription&&this.authSubscription.unsubscribe()}logout(){this.authenticationService.logout().subscribe(()=>this.router.navigate(["/login"],{replaceUrl:!0}))}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}onKeydownHandler(t){let n=this.buttonConfig.buttonCombinations.find(i=>i.ctrlKey===t.ctrlKey&&i.shiftKey===t.shiftKey&&i.altKey===t.altKey&&i.key===t.key);if(n!==void 0)switch(n.id){case"logout":this.logout();break;case"help":this.help();break;case"runReport":document.getElementById("runReport").click();break;case"cancel":let i=document.querySelectorAll("button"),s=Array.prototype.filter.call(i,function(f){return f.textContent.trim()==="Cancel"});s.length>0&&s[0].click();break;case"submit":let d=document.querySelectorAll("button"),u=Array.prototype.filter.call(d,function(f){return f.textContent.trim()==="Submit"});u.length>0&&u[0].click();break;default:this.router.navigate([n.route],{relativeTo:this.activatedRoute})}}static{this.\u0275fac=function(n){return new(n||e)(Zo(qe),Zo(Ie),Zo(RF),Zo(yi),Zo(jF),Zo(Fg),Zo(Ur),Zo(Ot),Zo(Wo),Zo(KF),Zo(Zt),Zo(B8),Zo(Ht),Zo(Ia))}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-web-app"]],hostVars:2,hostBindings:function(n,i){n&1&&R("keydown",function(d){return i.onKeydownHandler(d)},gF),n&2&&wF(i.cssClass)},standalone:!1,decls:1,vars:0,template:function(n,i){n&1&&b(0,"router-outlet")},dependencies:[ra],encapsulation:2,data:{animation:[Sr("opacityScale",[hr(":enter",[Lo({opacity:0,transform:"scale(.95)"}),fr("100ms ease-out",Lo({opacity:1,transform:"scale(1)"}))]),hr(":leave",[Lo({opacity:1,transform:"scale(1)"}),fr("75ms ease-in",Lo({opacity:0,transform:"scale(.95)"}))])])]}})}}return e})();var b_=(()=>{class e{constructor(){this.location=T(C0)}goBack(){this.location.back()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-not-found"]],decls:11,vars:6,consts:[[1,"not-found-container"],["id","title"],["id","subtitle",1,"f30"],[1,"back-button","m-t-20"],["type","button","mat-raised-button","",3,"click"],["icon","arrow-left",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1),c(2,"404"),r(),l(3,"div",2),c(4),p(5,"translate"),r(),l(6,"div",3)(7,"button",4),R("click",function(){return i.goBack()}),b(8,"fa-icon",5),c(9),p(10,"translate"),r()()()),n&2&&(a(4),h(m(5,2,"not_found_subtitle")),a(5),v(" ",m(10,4,"labels.buttons.Back")," "))},dependencies:[ue,fe,xe,ke,he],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.not-found-container[_ngcontent-%COMP%]{height:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;background:#3498db;color:#fff}#title[_ngcontent-%COMP%]{font-size:160px;font-weight:bolder}"]})}}return e})();var wle=new ks("ErrorHandlerInterceptor"),Cf=(()=>{class e{constructor(){this.alertService=T(Ur),this.translate=T(yi)}intercept(t,n){return n.handle(t).pipe(ug(i=>this.handleError(i,t)))}handleError(t,n){let i=t.status,s=t.error.developerMessage||t.message;t.error.errors&&t.error.errors[0]&&(s=t.error.errors[0].defaultUserMessage||t.error.errors[0].developerMessage);let d=i===404&&n.url.includes("/clients/")&&n.url.includes("/images");if(!un.production&&!d&&wle.error(`Request Error: ${s}`),i===401||un.oauth.enabled&&i===400)this.alertService.alert({type:"Authentication Error",message:"Invalid User Details. Please try again!"});else if(i===403&&s==="The provided one time token is invalid")this.alertService.alert({type:"Invalid Token",message:"Invalid Token. Please try again!"});else if(i===400)this.alertService.alert({type:"Bad Request",message:s||"Invalid parameters were passed in the request!"});else if(i===403)this.alertService.alert({type:"Unauthorized Request",message:s||"You are not authorized for this request!"});else if(i===404){if(d)return X7;this.alertService.alert({type:this.translate.instant("error.resource.not.found"),message:s||"Resource does not exist!"})}else i===500?this.alertService.alert({type:"Internal Server Error",message:"Internal Server Error. Please try again later."}):i===501?this.alertService.alert({type:this.translate.instant("error.resource.notImplemented.type"),message:this.translate.instant("error.resource.notImplemented.message")}):this.alertService.alert({type:"Unknown Error",message:"Unknown Error. Please try again later."});throw t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Y8=Ds(vd());var d4=new ks("HttpCacheService"),y_=(()=>{class e{constructor(){this.cachePersistenceStorageKey="mifosXHttpCache",this.cachedData={},this.storage=null,this.loadCacheData()}setCacheData(t,n,i){this.cachedData[t]={lastUpdated:i||new Date,data:n},d4.debug(`Cache set for key: "${t}"`),this.saveCacheData()}getCacheData(t){let n=this.cachedData[t];return n?(d4.debug(`Cache hit for key: "${t}"`),n.data):null}getHttpCacheEntry(t){return this.cachedData[t]||null}clearCache(t){delete this.cachedData[t],d4.debug(`Cache cleared for key: "${t}"`),this.saveCacheData()}cleanCache(t){t?(0,Y8.each)(this.cachedData,(n,i)=>{t>=n.lastUpdated&&delete this.cachedData[i]}):this.cachedData={},this.saveCacheData()}setPersistence(t){this.cleanCache(),this.storage=t==="local"?window.localStorage:t==="session"?window.sessionStorage:null,this.loadCacheData()}saveCacheData(){this.storage&&(this.storage[this.cachePersistenceStorageKey]=JSON.stringify(this.cachedData))}loadCacheData(){let t=this.storage?this.storage[this.cachePersistenceStorageKey]:null;this.cachedData=t?JSON.parse(t):{}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var S_=(()=>{class e{constructor(t){this.httpCacheService=t,this.forceUpdate=!1}configure(t){let n=new e(this.httpCacheService);return t&&t.update&&(n.forceUpdate=!0),n}intercept(t,n){return t.method!=="GET"?n.handle(t):new of(i=>{let s=this.forceUpdate?null:this.httpCacheService.getCacheData(t.urlWithParams);s!==null?(i.next(new AT(s)),i.complete()):n.handle(t).subscribe(d=>{un.httpCacheEnabled&&d instanceof AT&&this.httpCacheService.setCacheData(t.urlWithParams,d),i.next(d)},d=>i.error(d),()=>i.complete())})}static{this.\u0275fac=function(n){return new(n||e)(hl(y_))}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var xf=(()=>{class e{constructor(){this.settingsService=T(Ot)}intercept(t,n){let i=this.settingsService.serverUrl;return/^\/(v[1-9][0-9]*\/).*$/.test(t.url)&&(i=this.settingsService.baseServerUrl),t.url.includes("/actuator/")&&(i=this.settingsService.serverHost),!t.url.includes("http:")&&!t.url.includes("https:")&&(t=t.clone({url:i+t.url})),n.handle(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var u4=class{constructor(o,t){this.next=o,this.interceptor=t}handle(o){return this.interceptor.intercept(o,this.next)}},f4=new u0("HTTP_DYNAMIC_INTERCEPTORS"),J8=(()=>{class e extends ko{constructor(t,n,i=[]){super(t),this.httpHandler=t,this.injector=n,this.interceptors=i,this.interceptors||(this.interceptors=[this.injector.get(xf),this.injector.get(Cf)])}cache(t){let n=this.injector.get(S_).configure({update:t});return this.addInterceptor(n)}skipErrorHandler(){return this.removeInterceptor(Cf)}disableApiPrefix(){return this.removeInterceptor(xf)}request(t,n,i){let s=this.interceptors.reduceRight((d,u)=>new u4(d,u),this.httpHandler);return new ko(s).request(t,n,i)}removeInterceptor(t){return new e(this.httpHandler,this.injector,this.interceptors.filter(n=>!(n instanceof t)))}addInterceptor(t){return new e(this.httpHandler,this.injector,this.interceptors.concat([t]))}static{this.\u0275fac=function(n){return new(n||e)(hl(Pg),hl(Cp),hl(f4,8))}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var sc=(()=>{class e{constructor(){this.requestsRunning=0,this.updateProgressBar=new bi}getRequestsRunning(){return this.requestsRunning}increase(){this.requestsRunning++,this.requestsRunning===1&&this.updateProgressBar.emit("indeterminate")}decrease(){this.requestsRunning>0&&(this.requestsRunning--,this.requestsRunning===0&&this.updateProgressBar.emit("none"))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Mle=new ks("AuthenticationGuard"),w_=(()=>{class e{constructor(){this.router=T(qe),this.authenticationService=T(Wo)}canActivate(){return this.authenticationService.isAuthenticated()?!0:(Mle.debug("User not authenticated, redirecting to login..."),this.authenticationService.logout(),this.router.navigate(["/login"],{replaceUrl:!0}),!1)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var K8=(()=>{class e{constructor(){this.progressBarService=T(sc)}intercept(t,n){return this.progressBarService.increase(),n.handle(t).pipe(Ys(()=>{this.progressBarService.decrease()}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var X8=(()=>{class e extends Dg{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig||t.data.reuse}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fg(e)))(i||e)}})()}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Lc=class{constructor(o,t,n){this.overlayRef=o,this.positionStrategy=t,this.config=n,this.afterClosedSubject=new Rr,n.disableClose||(this.overlayRef.backdropClick().subscribe(()=>{}),this.overlayRef.keydownEvents().pipe(Fc(i=>i.key==="Escape")).subscribe(()=>{}))}close(o){this.afterClosedSubject.next(o),this.afterClosedSubject.complete(),this.overlayRef.dispose()}afterClosed(){return this.afterClosedSubject.asObservable()}positionChanges(){return this.positionStrategy.positionChanges}};var Z8=(()=>{class e{constructor(){this.popoverRef=T(Lc),this.cd=T(es),this.subscription=new nf;let t=this.popoverRef;this.arrowSize=t.config.arrowSize,this.subscription=t.positionChanges().subscribe(n=>{let{offsetX:i,offsetY:s}=n.connectionPair;this.offsetTop=s>=0?s*-1:null,this.offsetLeft=i<0?i*-1:null,this.offsetBottom=s<0?s:null,this.offsetRight=i>=0?i:null,this.cd.detectChanges()})}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275dir=md({type:e,selectors:[["","mifosxPopoverArrow",""]],hostVars:12,hostBindings:function(n,i){n&2&&vp("width",i.arrowSize,"px")("height",i.arrowSize,"px")("top",i.offsetTop,"px")("right",i.offsetRight,"px")("bottom",i.offsetBottom,"px")("left",i.offsetLeft,"px")}})}}return e})();var P_=(()=>{class e extends VF{attachComponentPortal(t){return this.portalOutlet.attachComponentPortal(t)}attachTemplatePortal(t){return this.portalOutlet.attachTemplatePortal(t)}static{this.\u0275fac=(()=>{let t;return function(i){return(t||(t=fg(e)))(i||e)}})()}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-popover"]],viewQuery:function(n,i){if(n&1&&Ee(kT,7),n&2){let s;Te(s=Me())&&(i.portalOutlet=s.first)}},features:[_g],decls:2,vars:0,consts:[["cdkPortalOutlet",""],["mifosxPopoverArrow","",1,"arrow"]],template:function(n,i){n&1&&(gl(0,0),b(1,"div",1))},dependencies:[ue,fe,kT,Z8],styles:["[_nghost-%COMP%]{position:relative;background:#fff;border-radius:8px;padding:20px}.arrow[_ngcontent-%COMP%]{position:absolute;background:inherit;z-index:-1}.center[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .center [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:50%}.top.left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.left [_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.center[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.center [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:top left;transform:rotate(45deg)}.top.right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .top.right [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:top right;transform:rotate(-45deg)}.bottom.left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.left [_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.center[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.center [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:bottom left;transform:rotate(-45deg)}.bottom.right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .bottom.right [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{transform-origin:bottom right;transform:rotate(45deg)}.center.left[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .center.left [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:0%;top:50%;transform-origin:center left;transform:rotate(-45deg)}.center.right[_nghost-%COMP%] .arrow[_ngcontent-%COMP%], .center.right [_nghost-%COMP%] .arrow[_ngcontent-%COMP%]{left:98%;top:50%;transform-origin:center left;transform:rotate(-45deg)}"]})}}return e})();var Dle=new u0("popover.data"),Ele={backdropClass:"",disableClose:!1,panelClass:"",arrowOffset:30,arrowSize:20},Wi=(()=>{class e{constructor(){this.overlay=T(qF),this.injector=T(Cp)}open(t,n,i,s,d={}){let u=Object.assign({},Ele,d),f=u.arrowSize,_=u.arrowOffset,C=f/2,x,y;i==="bottom"?y=[{overlayX:"center",overlayY:"top",originX:"center",originY:"bottom",panelClass:["top","center"],offsetY:C},{overlayX:"start",overlayY:"top",originX:"center",originY:"bottom",panelClass:["top","left"],offsetX:-1*_,offsetY:C},{overlayX:"end",overlayY:"top",originX:"center",originY:"bottom",panelClass:["top","right"],offsetX:_,offsetY:C}]:i==="top"?y=[{overlayX:"center",overlayY:"bottom",originX:"center",originY:"top",panelClass:["bottom","center"],offsetY:-1*C},{overlayX:"start",overlayY:"bottom",originX:"center",originY:"top",panelClass:["bottom","left"],offsetX:-1*_,offsetY:-1*C},{overlayX:"end",overlayY:"bottom",originX:"center",originY:"top",panelClass:["bottom","right"],offsetX:_,offsetY:-1*C}]:i==="right"?y=[{originX:"end",originY:"center",overlayX:"start",overlayY:"center",panelClass:["center","left"],offsetX:.5*_,offsetY:-1*C}]:i==="left"&&(y=[{originX:"start",originY:"center",overlayX:"end",overlayY:"center",panelClass:["center","right"],offsetX:-.5*_,offsetY:-1*C}]),s===!0?x=!0:x=!1;let P=this.overlay.position().flexibleConnectedTo(n).withPush(!1).withFlexibleDimensions(!1).withPositions(y),S=this.overlay.create({hasBackdrop:x,backdropClass:d.backdropClass,panelClass:d.panelClass,positionStrategy:P,scrollStrategy:this.overlay.scrollStrategies.reposition()}),M=new Lc(S,P,u),D=S.attach(new FT(P_,null,Cp.create({parent:this.injector,providers:[{provide:Lc,useValue:M}]}))).instance;return t instanceof _F?D.attachTemplatePortal(new LF(t,null,{$implicit:d.data,popover:M})):D.attachComponentPortal(new FT(t,null,Cp.create({parent:this.injector,providers:[{provide:Dle,useValue:d.data},{provide:Lc,useValue:M}]}))),M}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Qi=(()=>{class e{constructor(){this.showToolbar=!1,this.showToolbarAdmin=!1,this.showSideNav=!1,this.showSideNavChartofAccounts=!1,this.showBreadcrumbs=!1,this.showHome=!1,this.showHomeSearchActivity=!1,this.showCreateOffice=!1,this.showOfficeList=!1,this.showOfficeTable=!1,this.showOfficeForm=!1,this.showAddEditCurrency=!1,this.showCurrencyPage=!1,this.showCurrencyList=!1,this.showCurrencyForm=!1,this.showCreateHoliday=!1,this.showHolidayPage=!1,this.showHolidayFilter=!1,this.showCreateEmployee=!1,this.showEmployeeList=!1,this.showEmployeeTable=!1,this.showEmployeeForm=!1,this.showDefineWorkingDays=!1,this.showDatatables=!1,this.showDatatablesPage=!1,this.showDatatablesList=!1,this.showDatatablesForm=!1,this.showSystemCodes=!1,this.showSystemCodesPage=!1,this.showSystemCodesList=!1,this.showSystemCodesForm=!1,this.showRolesandPermission=!1,this.showRolesandPermissionPage=!1,this.showRolesandPermissionList=!1,this.showUsers=!1,this.showUsersList=!1,this.showUsersForm=!1,this.showMakerCheckerTable=!1,this.showMakerCheckerTablePage=!1,this.showMakerCheckerTableList=!1,this.showConfigurations=!1,this.showConfigurationsPage=!1,this.showConfigurationsList=!1,this.showSchedulerJobs=!1,this.showSchedulerJobsPage=!1,this.showSchedulerJobsList=!1,this.showChartofAccounts=!1,this.showChartofAccountsPage=!1,this.showChartofAccountsList=!1,this.showChartofAccountsForm=!1,this.showAccountsLinked=!1,this.showAccountsLinkedPage=!1,this.showAccountsLinkedList=!1,this.showMigrateOpeningBalances=!1,this.showClosingEntries=!1,this.showClosingEntriesPage=!1,this.showClosingEntriesList=!1,this.showCreateJournalEntries=!1,this.showCharges=!1,this.showChargesPage=!1,this.showChargesList=!1,this.showLoanProducts=!1,this.showLoanProductsPage=!1,this.showLoanProductsList=!1,this.showSavingsProducts=!1,this.showSavingsProductsPage=!1,this.showSavingsProductsList=!1,this.showShareProducts=!1,this.showShareProductsPage=!1,this.showShareProductsList=!1,this.showFixedDepositProducts=!1,this.showFixedDepositProductsPage=!1,this.showFixedDepositProductsList=!1,this.showRecurringDepositProducts=!1,this.showRecurringDepositProductsPage=!1,this.showRecurringDepositProductsList=!1,this.showManageFunds=!1,this.showManageReports=!1}closeConfigWizard(){this.showToolbar=!1,this.showToolbarAdmin=!1,this.showSideNav=!1,this.showSideNavChartofAccounts=!1,this.showBreadcrumbs=!1,this.showHome=!1,this.showHomeSearchActivity=!1,this.showCreateOffice=!1,this.showOfficeList=!1,this.showOfficeTable=!1,this.showOfficeForm=!1,this.showAddEditCurrency=!1,this.showCurrencyPage=!1,this.showCurrencyList=!1,this.showCurrencyForm=!1,this.showCreateHoliday=!1,this.showHolidayPage=!1,this.showHolidayFilter=!1,this.showCreateEmployee=!1,this.showEmployeeList=!1,this.showEmployeeTable=!1,this.showEmployeeForm=!1,this.showDefineWorkingDays=!1,this.showDatatables=!1,this.showDatatablesPage=!1,this.showDatatablesList=!1,this.showDatatablesForm=!1,this.showSystemCodes=!1,this.showSystemCodesPage=!1,this.showSystemCodesList=!1,this.showSystemCodesForm=!1,this.showRolesandPermission=!1,this.showRolesandPermissionPage=!1,this.showRolesandPermissionList=!1,this.showUsers=!1,this.showUsersList=!1,this.showUsersForm=!1,this.showMakerCheckerTable=!1,this.showMakerCheckerTablePage=!1,this.showMakerCheckerTableList=!1,this.showConfigurations=!1,this.showConfigurationsPage=!1,this.showConfigurationsList=!1,this.showSchedulerJobs=!1,this.showSchedulerJobsPage=!1,this.showSchedulerJobsList=!1,this.showChartofAccounts=!1,this.showChartofAccountsPage=!1,this.showChartofAccountsList=!1,this.showChartofAccountsForm=!1,this.showAccountsLinked=!1,this.showAccountsLinkedPage=!1,this.showAccountsLinkedList=!1,this.showMigrateOpeningBalances=!1,this.showClosingEntries=!1,this.showClosingEntriesPage=!1,this.showClosingEntriesList=!1,this.showCreateJournalEntries=!1,this.showCharges=!1,this.showChargesPage=!1,this.showChargesList=!1,this.showLoanProducts=!1,this.showLoanProductsPage=!1,this.showLoanProductsList=!1,this.showSavingsProducts=!1,this.showSavingsProductsPage=!1,this.showSavingsProductsList=!1,this.showShareProducts=!1,this.showShareProductsPage=!1,this.showShareProductsList=!1,this.showFixedDepositProducts=!1,this.showFixedDepositProductsPage=!1,this.showFixedDepositProductsList=!1,this.showRecurringDepositProducts=!1,this.showRecurringDepositProductsPage=!1,this.showRecurringDepositProductsList=!1,this.showManageFunds=!1,this.showManageReports=!1}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eB=[{path:"/clients",icon:"user",toolTip:"Clients"},{path:"/groups",icon:"users",toolTip:"Groups"},{path:"/centers",icon:"building",toolTip:"Centers"},{path:"/accounting",icon:"money-bill-alt",toolTip:"Accounting"},{path:"/reports",icon:"chart-bar",toolTip:"Reports"},{path:"/appusers",icon:"users",toolTip:"Users"},{path:"/organization",icon:"id-badge",toolTip:"Organization"},{path:"/system",icon:"cog",toolTip:"System"},{path:"/products",icon:"book",toolTip:"Products"},{path:"/templates",icon:"address-card",toolTip:"Templates"}];var Ile=["logo"],Ole=["templateLogo"],Ale=["chartOfAccounts"],Fle=["templateChartOfAccounts"],kle=(e,o)=>({"sidebar-full":e,"sidebar-compact":o}),Ble=()=>["/home"],Rle=()=>["/settings"],Nle=()=>["/dashboard"],Vc=()=>({exact:!1}),Lle=()=>["/navigation"],Vle=()=>["/checker-inbox-and-tasks/checker-inbox"],qle=()=>["/collections/collection-sheet"],zle=()=>["/collections/individual-collection-sheet"],Hle=()=>["/notifications"],Gle=()=>["/accounting/journal-entries/frequent-postings"],jle=()=>["/accounting/journal-entries/create"],$le=()=>["/accounting/chart-of-accounts"],Ule=e=>[e];function Wle(e,o){if(e&1&&(l(0,"div",34)(1,"button",53),b(2,"fa-icon",54),r()()),e&2){let t=o.$implicit,n=w();a(),g("matTooltipPosition",n.tooltipPosition)("matTooltip",t.toolTip)("routerLink",Nt(4,Ule,t.path)),a(),g("icon",t.icon)}}function Qle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(123);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.text.Home")),a(3),h(m(5,7,"labels.text.Welcome page logo from anywhere")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Yle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(121);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(125);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.User Panel")),a(3),h(m(5,7,"labels.text.Section Buttons")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Jle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(123);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(43),u=ve(127);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Frequently Accessed")),a(3),h(m(5,7,"labels.text.Shortcut to the frequently accessed components")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Kle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(125);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(51),u=ve(129);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Dashboard")),a(3),h(m(5,7,"labels.text.User Dashboard Component")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Xle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(43),u=ve(127);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(87),u=ve(131);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Navigation")),a(3),h(m(5,7,"labels.text.User Entity navigation screen")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Zle(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(51),u=ve(129);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(95),u=ve(133);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Frequent Postings")),a(3),h(m(5,7,"labels.text.Shortcut accounting rules")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function ese(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(87),u=ve(131);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(103),u=ve(135);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Create Journal Entry")),a(3),h(m(5,7,"labels.text.Shortcut entry screen")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function tse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",58),R("click",function(){let i=V(t).popover,s=w(),d=ve(95),u=ve(133);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r(),l(13,"button",58),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Chart of Accounts")),a(3),h(m(5,7,"labels.text.Shortcut accounts screen")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var T_=(()=>{class e{constructor(){this.router=T(qe),this.dialog=T(Ht),this.authenticationService=T(Wo),this.settingsService=T(Ot),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.authService=T(Ia),this.tooltipPosition="after",this.mappedActivities=[],this.frequentActivities=eB,this.userActivity=JSON.parse(localStorage.getItem("mifosXLocation"))}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.setMappedAcitivites()}logout(){un.OIDC.oidcServerEnabled?this.authService.logout():this.authenticationService.logout().subscribe(()=>this.router.navigate(["/login"],{replaceUrl:!0}))}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}showKeyboardShortcuts(){this.dialog.open(rk).afterClosed().subscribe(n=>{})}getFrequentActivities(){let t={},n=this.userActivity?.length;for(;n;){let d=this.userActivity[--n];t[d]=(t[d]||0)+1}return Object.entries(t).sort((d,u)=>u[1]-d[1]).map(d=>d[0]).filter(d=>!["/","/login","/home","/dashboard"].includes(d)).slice(0,3)}setMappedAcitivites(){this.getFrequentActivities().forEach(n=>{n.includes("/clients")?this.pushActivity("/clients"):n.includes("/groups")?this.pushActivity("/groups"):n.includes("/centers")?this.pushActivity("/centers"):n.includes("/accounting")?this.pushActivity("/accounting"):n.includes("/reports")?this.pushActivity("/reports"):n.includes("/appusers")?this.pushActivity("/appusers"):n.includes("/organization")?this.pushActivity("/organization"):n.includes("/system")?this.pushActivity("/system"):n.includes("/products")?this.pushActivity("/products"):n.includes("/templates")&&this.pushActivity("/templates")}),this.mappedActivities.reverse()}pushActivity(t){let n=this.frequentActivities.find(i=>i.path===t);this.mappedActivities.includes(n)||this.mappedActivities.push(n)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSideNav===!0&&setTimeout(()=>{this.showPopover(this.templateLogo,this.logo.nativeElement,"bottom",!0)}),this.configurationWizardService.showSideNavChartofAccounts===!0&&setTimeout(()=>{this.showPopover(this.templateChartOfAccounts,this.chartOfAccounts.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showSideNav=!1,this.configurationWizardService.showSideNavChartofAccounts=!1,this.configurationWizardService.showBreadcrumbs=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}previousStep(){this.configurationWizardService.showSideNav=!1,this.configurationWizardService.showSideNavChartofAccounts=!1,this.configurationWizardService.showToolbarAdmin=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}get tenantIdentifier(){return!this.settingsService.tenantIdentifier||this.settingsService.tenantIdentifier===""?"default":this.settingsService.tenantIdentifier}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sidenav"]],viewQuery:function(n,i){if(n&1&&(Ee(Ile,5),Ee(Ole,5),Ee(Ale,5),Ee(Fle,5)),n&2){let s;Te(s=Me())&&(i.logo=s.first),Te(s=Me())&&(i.templateLogo=s.first),Te(s=Me())&&(i.chartOfAccounts=s.first),Te(s=Me())&&(i.templateChartOfAccounts=s.first)}},inputs:{sidenavCollapsed:"sidenavCollapsed"},decls:136,vars:151,consts:[["logo",""],["userPanel",""],["frequentlyAccessed",""],["dashboard",""],["navigation",""],["frequentPostings",""],["createJournalEntry",""],["chartOfAccounts",""],["templateLogo",""],["templateUserPanel",""],["templateFrequentlyAccessed",""],["templateDashboard",""],["templateNavigation",""],["templateFrequentPostings",""],["templateCreateJournalEntry",""],["templateChartOfAccounts",""],[3,"ngClass"],[1,"navigation-panel","layout-column"],[1,"app-brand",3,"routerLink"],["src","assets/images/MifosX_logo.png","alt","app-logo",1,"app-logo"],[1,"app-logo-text","text-muted"],[1,"app-user"],[1,"app-user-photo"],["src","assets/images/user_placeholder.png","alt","app-user-photo"],[1,"app-user-name","mb-05"],[1,"app-user-controls"],["mat-icon-button","",1,"xs-button",3,"matTooltip","routerLink"],["icon","cog"],["mat-icon-button","",1,"xs-button",3,"click","matTooltip"],["icon","sign-out-alt"],[1,"app-sidenav"],[1,"mt-1","mb-1","nav-item-sep"],[1,"text-muted","icon-menu-title"],[1,"icon-menu"],[1,"icon-menu-item"],[1,"nav-item-sep"],[1,"text-muted"],["routerLinkActive","active-menu",3,"routerLink","matTooltipPosition","matTooltip","routerLinkActiveOptions"],["matListIcon",""],["icon","tachometer-alt","size","sm"],["matLine",""],["icon","location-arrow","size","sm"],[1,"fa","fa-check"],[1,"fa","fa-tasks"],["icon","bell","size","sm"],["icon","sync","size","sm"],["icon","plus","size","sm"],["icon","sitemap","size","sm"],[3,"click","matTooltipPosition","matTooltip"],["icon","keyboard","size","sm"],[3,"matTooltipPosition","matTooltip"],["matListIcon","",3,"click"],["icon","question-circle","size","sm"],["mat-raised-button","",3,"matTooltipPosition","matTooltip","routerLink"],["size","lg",3,"icon"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",16)(1,"div",17)(2,"div",18),b(3,"img",19),l(4,"span",20,0),c(6),p(7,"translate"),r()(),l(8,"div",21)(9,"div",22),b(10,"img",23),r(),l(11,"span",24),c(12),r(),l(13,"div",25,1)(15,"button",26),p(16,"translate"),b(17,"fa-icon",27),r(),l(18,"button",28),p(19,"translate"),R("click",function(){return V(s),q(i.logout())}),b(20,"fa-icon",29),r()()(),l(21,"div",30)(22,"div",null,2)(24,"div",31),b(25,"mat-divider"),l(26,"span",32),c(27),p(28,"translate"),r()()(),l(29,"div",33),Se(30,Wle,3,6,"div",34,Pe),r(),l(32,"div",35),b(33,"mat-divider"),l(34,"span",36),c(35),p(36,"translate"),r()(),l(37,"mat-nav-list")(38,"mat-list-item",37),p(39,"translate"),l(40,"mat-icon",38),b(41,"fa-icon",39),r(),l(42,"a",40,3),c(44),p(45,"translate"),r()(),l(46,"mat-list-item",37),p(47,"translate"),l(48,"mat-icon",38),b(49,"fa-icon",41),r(),l(50,"a",40,4),c(52),p(53,"translate"),r()(),l(54,"mat-list-item",37),p(55,"translate"),l(56,"mat-icon",38),b(57,"i",42),r(),l(58,"a",40),c(59),p(60,"translate"),r()(),l(61,"mat-list-item",37),p(62,"translate"),l(63,"mat-icon",38),b(64,"i",43),r(),l(65,"a",40),c(66),p(67,"translate"),r()(),l(68,"mat-list-item",37),p(69,"translate"),l(70,"mat-icon",38),b(71,"i",43),r(),l(72,"a",40),c(73),p(74,"translate"),r()(),l(75,"mat-list-item",37),p(76,"translate"),l(77,"mat-icon",38),b(78,"fa-icon",44),r(),l(79,"a",40),c(80),p(81,"translate"),r()(),l(82,"mat-list-item",37),p(83,"translate"),l(84,"mat-icon",38),b(85,"fa-icon",45),r(),l(86,"a",40,5),c(88),p(89,"translate"),r()(),l(90,"mat-list-item",37),p(91,"translate"),l(92,"mat-icon",38),b(93,"fa-icon",46),r(),l(94,"a",40,6),c(96),p(97,"translate"),r()(),l(98,"mat-list-item",37),p(99,"translate"),l(100,"mat-icon",38),b(101,"fa-icon",47),r(),l(102,"a",40,7),c(104),p(105,"translate"),r()(),l(106,"mat-list-item",48),p(107,"translate"),R("click",function(){return V(s),q(i.showKeyboardShortcuts())}),l(108,"mat-icon",38),b(109,"fa-icon",49),r(),l(110,"a",40),c(111),p(112,"translate"),r()(),l(113,"mat-list-item",50),p(114,"translate"),l(115,"mat-icon",51),R("click",function(){return V(s),q(i.help())}),b(116,"fa-icon",52),r(),l(117,"a",40),c(118),p(119,"translate"),r()()()()()(),F(120,Qle,16,15,"ng-template",null,8,ti)(122,Yle,16,15,"ng-template",null,9,ti)(124,Jle,16,15,"ng-template",null,10,ti)(126,Kle,16,15,"ng-template",null,11,ti)(128,Xle,16,15,"ng-template",null,12,ti)(130,Zle,16,15,"ng-template",null,13,ti)(132,ese,16,15,"ng-template",null,14,ti)(134,tse,16,15,"ng-template",null,15,ti)}n&2&&(g("ngClass",Ja(128,kle,!i.sidenavCollapsed,i.sidenavCollapsed)),a(2),g("routerLink",oe(131,Ble)),a(4),h(m(7,74,"APP_NAME")),a(6),le(" ",i.tenantIdentifier," / ",i.username," "),a(3),g("matTooltip",Le(m(16,76,"tooltips.Settings")))("routerLink",oe(132,Rle)),a(3),g("matTooltip",Le(m(19,78,"tooltips.Sign Out"))),a(9),h(m(28,80,"labels.menus.Frequently Accessed")),a(3),we(i.mappedActivities),a(5),h(m(36,82,"labels.menus.Main Items")),a(3),g("matTooltip",Le(m(39,84,"tooltips.Dashboard")))("routerLink",oe(133,Nle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(134,Vc)),a(6),h(m(45,86,"labels.menus.Dashboard")),a(2),g("matTooltip",Le(m(47,88,"tooltips.Navigation")))("routerLink",oe(135,Lle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(136,Vc)),a(6),h(m(53,90,"labels.menus.Navigation")),a(2),g("matTooltip",Le(m(55,92,"tooltips.Checker Inbox and Tasks")))("routerLink",oe(137,Vle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(138,Vc)),a(5),h(m(60,94,"labels.menus.Checker Inbox and Tasks")),a(2),g("matTooltip",Le(m(62,96,"labels.menus.Collection Sheet")))("routerLink",oe(139,qle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(140,Vc)),a(5),h(m(67,98,"labels.menus.Collection Sheet")),a(2),g("matTooltip",Le(m(69,100,"tooltips.Individual Collection Sheet")))("routerLink",oe(141,zle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(142,Vc)),a(5),h(m(74,102,"labels.menus.Individual Collection Sheet")),a(2),g("matTooltip",Le(m(76,104,"tooltips.Notifications")))("routerLink",oe(143,Hle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(144,Vc)),a(5),h(m(81,106,"labels.menus.Notifications")),a(2),g("matTooltip",Le(m(83,108,"tooltips.Frequent Postings")))("routerLink",oe(145,Gle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(146,Vc)),a(6),h(m(89,110,"labels.menus.Frequent Postings")),a(2),g("matTooltip",Le(m(91,112,"tooltips.Create Journal Entry")))("routerLink",oe(147,jle))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(148,Vc)),a(6),h(m(97,114,"labels.menus.Create Journal Entry")),a(2),g("matTooltip",Le(m(99,116,"tooltips.Chart Of Accounts")))("routerLink",oe(149,$le))("matTooltipPosition",i.tooltipPosition)("routerLinkActiveOptions",oe(150,Vc)),a(6),h(m(105,118,"labels.menus.Chart of Accounts")),a(2),g("matTooltip",Le(m(107,120,"tooltips.Keyboard Shortcuts")))("matTooltipPosition",i.tooltipPosition),a(5),h(m(112,122,"labels.menus.Keyboard Shortcuts")),a(2),g("matTooltip",Le(m(114,124,"tooltips.Help")))("matTooltipPosition",i.tooltipPosition),a(5),h(m(119,126,"labels.menus.Help")))},dependencies:[ue,co,fe,Oe,xe,wi,si,ke,Ri,pa,Vo,Na,Yo,ca,he],styles:[".sidebar-full[_ngcontent-%COMP%] .navigation-panel[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .navigation-panel[_ngcontent-%COMP%]{width:100%;height:100%;padding-top:20%;overflow-x:hidden}.sidebar-full[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-width:100%}.sidebar-full[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;max-width:15rem;z-index:9999;cursor:pointer}.sidebar-full[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{width:auto;height:42px;margin-right:8px}.sidebar-full[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo-text[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo-text[_ngcontent-%COMP%]{width:auto;height:auto;font-size:2rem;font-weight:400}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%]{text-align:center;width:100%;padding:1rem 0 .4rem}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-photo[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-photo[_ngcontent-%COMP%]{width:72px;margin:0 auto 8px;height:72px;border:1px solid hsla(210,8%,51%,.13);padding:4px;border-radius:50%}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;border-radius:50%}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-name[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-name[_ngcontent-%COMP%]{display:block;font-size:.875rem;font-weight:300;margin-left:-2px}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .xs-button[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%] .xs-button[_ngcontent-%COMP%]{height:20px;width:20px;line-height:20px;margin:5px}.sidebar-full[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .text-muted[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%] .app-user-controls[_ngcontent-%COMP%] .text-muted[_ngcontent-%COMP%]{color:#0000008a}.sidebar-full[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%] span[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{padding:16px 0 0 16px;display:block;font-size:12px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-evenly}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .mat-divider[_ngcontent-%COMP%]{margin:0 -24px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-title[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-title[_ngcontent-%COMP%]{padding-left:0;margin-left:-8px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%]{display:inline-block}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .icon-menu-item[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:auto;margin:4px}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%]{padding:0;margin:1rem 0}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%]{margin:0;padding:0;list-style:none}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-icon[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-icon[_ngcontent-%COMP%]{height:30px;font-size:22px}.sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo[_ngcontent-%COMP%]{margin:auto}.sidebar-compact[_ngcontent-%COMP%] .app-brand[_ngcontent-%COMP%] .app-logo-text[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-user[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}.sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%]{padding:8px 0 0;width:4rem}.sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] .nav-item-sep[_ngcontent-%COMP%], .sidebar-compact[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:none}.sidebar-full[_ngcontent-%COMP%] .navigation-panel[_ngcontent-%COMP%]{padding-top:5%}.sidebar-full[_ngcontent-%COMP%] .app-sidenav[_ngcontent-%COMP%] .icon-menu[_ngcontent-%COMP%]{flex-direction:row}.active-menu[_ngcontent-%COMP%]{background-color:#e0e0e0}"]})}}return e})();var ise=()=>({show:1}),nse=()=>({show:2}),ose=()=>({show:3}),ase=()=>({show:4}),rse=()=>({show:5}),lse=()=>({show:6}),sse=()=>({show:0}),M_=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-configuration-wizard"]],decls:36,vars:44,consts:[[1,"config-wizard-container"],["mat-dialog-title",""],[1,"config-wizard-content"],[1,"description"],[1,"buttons-grid"],["mat-raised-button","","color","primary",3,"mat-dialog-close"],[1,"progress-section"],[1,"progress-label"],["mode","determinate","value","0"],[1,"config-wizard-actions"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h1",1),c(2),p(3,"translate"),r(),l(4,"mat-dialog-content",2)(5,"p",3),c(6),p(7,"translate"),r(),l(8,"div",4)(9,"button",5),c(10),p(11,"translate"),r(),l(12,"button",5),c(13),p(14,"translate"),r(),l(15,"button",5),c(16),p(17,"translate"),r(),l(18,"button",5),c(19),p(20,"translate"),r(),l(21,"button",5),c(22),p(23,"translate"),r(),l(24,"button",5),c(25),p(26,"translate"),r()(),l(27,"div",6)(28,"h3",7),c(29),p(30,"translate"),r(),b(31,"mat-progress-bar",8),r()(),l(32,"mat-dialog-actions",9)(33,"button",10),c(34),p(35,"translate"),r()()()),n&2&&(a(2),h(m(3,17,"labels.heading.Welcome to Mifos")),a(4),h(m(7,19,"labels.heading.Configure Mifos Organization Needs")),a(3),g("mat-dialog-close",oe(37,ise)),a(),v(" ",m(11,21,"labels.buttons.Home Screen Tour")," "),a(2),g("mat-dialog-close",oe(38,nse)),a(),v(" ",m(14,23,"labels.buttons.Setup Organization")," "),a(2),g("mat-dialog-close",oe(39,ose)),a(),v(" ",m(17,25,"labels.buttons.Setup System")," "),a(2),g("mat-dialog-close",oe(40,ase)),a(),v(" ",m(20,27,"labels.buttons.Setup Accounting")," "),a(2),g("mat-dialog-close",oe(41,rse)),a(),v(" ",m(23,29,"labels.buttons.Setup Products")," "),a(2),g("mat-dialog-close",oe(42,lse)),a(),v(" ",m(26,31,"labels.buttons.Setup Funds and Reports")," "),a(4),v("",m(30,33,"labels.heading.Progress Bar"),": 0%"),a(4),g("mat-dialog-close",oe(43,sse)),a(),v(" ",m(35,35,"labels.buttons.Close Config. Wizard")," "))},dependencies:[ue,fe,xe,Wn,ho,Un,ns,Nn,he],styles:[".config-wizard-container[_ngcontent-%COMP%]{padding:24px;max-width:800px}.config-wizard-container[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0 0 24px;text-align:center;font-size:28px;font-weight:500}.config-wizard-actions[_ngcontent-%COMP%]{padding:16px 0 0!important;margin:0!important;justify-content:center;border-top:1px solid #e0e0e0}.config-wizard-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:180px;height:40px}.config-wizard-content[_ngcontent-%COMP%]{padding:0!important;margin-bottom:24px}.config-wizard-content[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{text-align:center;font-size:16px;margin:0 0 32px;color:#555}.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:16px;margin-bottom:32px}.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 calc(33.333% - 11px);min-width:180px;height:48px;text-transform:none}@media (width < 768px){.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 calc(50% - 8px)}}@media (width < 480px){.config-wizard-content[_ngcontent-%COMP%] .buttons-grid[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1 1 100%}}.config-wizard-content[_ngcontent-%COMP%] .progress-section[_ngcontent-%COMP%]{margin-top:32px}.config-wizard-content[_ngcontent-%COMP%] .progress-section[_ngcontent-%COMP%] .progress-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;margin:0 0 12px;color:#333}.config-wizard-content[_ngcontent-%COMP%] .progress-section[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{height:8px;border-radius:4px}"]})}}return e})();var cse=["institution"],pse=["templateInstitution"],mse=["appMenu"],dse=["templateAppMenu"],use=["notificationsTray"],tB=()=>["/accounting"],fse=()=>["/reports"],hse=()=>["/reports","Client"],gse=()=>["/reports","Loan"],_se=()=>["/reports","Savings"],Cse=()=>["/reports","Fund"],vse=()=>["/reports","Accounting"],xse=()=>["/organization"],bse=()=>["/system"],yse=()=>["/products"],Sse=()=>["/profile"],wse=()=>["/settings"];function Pse(e,o){if(e&1){let t=Y();l(0,"button",65),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.toggleSidenav())}),b(2,"fa-icon",66),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Toggle Hide/Open")))}function Tse(e,o){e&1&&b(0,"fa-icon",68)}function Mse(e,o){e&1&&b(0,"fa-icon",69)}function Dse(e,o){if(e&1){let t=Y();l(0,"button",67),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.toggleSidenavCollapse())}),E(2,Tse,1,0,"fa-icon",68),E(3,Mse,1,0,"fa-icon",69),r()}if(e&2){let t=w();g("matTooltip",Le(m(1,4,"tooltips.Toggle Collapse"))),a(2),I(t.sidenavCollapsed?-1:2),a(),I(t.sidenavCollapsed?3:-1)}}function Ese(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(12),u=ve(145);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.menus.Institution")),a(3),h(m(5,6,"labels.text.Button for individual account")),a(4),v(" ",m(9,8,"labels.buttons.Close")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function Ise(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(143);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(17),u=ve(147);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Accounting")),a(3),h(m(5,7,"labels.text.Button for accounting department")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Ose(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(12),u=ve(145);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(149);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Reports")),a(3),h(m(5,7,"labels.text.Dropdown system reports")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Ase(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(17),u=ve(147);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(151);return i.close(),q(s.showPopover(d,s.selfService))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Admin")),a(3),h(m(5,7,"labels.text.Setup organization including users")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Fse(e,o){if(e&1){let t=Y();l(0,"div",71)(1,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(2),p(3,"translate"),r(),l(4,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(23),u=ve(149);return i.close(),q(s.showPopover(u,d))}),c(5),p(6,"translate"),r(),l(7,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(29),u=ve(153);return i.close(),q(s.showPopover(u,d))}),c(8),p(9,"translate"),r()()}e&2&&(a(2),v(" ",m(3,3,"labels.buttons.Close")," "),a(3),v(" ",m(6,5,"labels.buttons.Back")," "),a(3),v(" ",m(9,7,"labels.buttons.Next")," "))}function kse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(151);return i.close(),q(s.showPopover(d,s.selfService))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(35),u=ve(155);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Configuration Wizard")),a(3),h(m(5,7,"labels.text.Initial setup and application tour")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Bse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(29),u=ve(153);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(38),u=ve(157);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Global Search")),a(3),h(m(5,7,"labels.text.Navigate system selecting entity")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Rse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(35),u=ve(155);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(44),u=ve(159);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Language Selector")),a(3),h(m(5,7,"labels.text.Organization available languages")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Nse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(38),u=ve(157);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(48),u=ve(161);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Notifications")),a(3),h(m(5,7,"labels.text.This shows all the notifications.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Lse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(44),u=ve(159);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(51),u=ve(163);return i.close(),q(s.showPopover(u,d))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Theme Picker")),a(3),h(m(5,7,"labels.text.Choose to work with a dark or bright background")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Vse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",70),c(4),p(5,"translate"),r(),l(6,"div",71)(7,"button",72),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",73),R("click",function(){let i=V(t).popover,s=w(),d=ve(48),u=ve(161);return i.close(),q(s.showPopover(u,d))}),c(11),p(12,"translate"),r(),l(13,"button",73),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Application Menu")),a(3),h(m(5,7,"labels.text.User settings and sign out button")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var D_=(()=>{class e{constructor(){this.breakpointObserver=T(Eg),this.router=T(qe),this.authenticationService=T(Wo),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.changeDetector=T(es),this.authService=T(Ia),this.isHandset$=this.breakpointObserver.observe(Ig.Handset).pipe(Mn(t=>t.matches)),this.sidenavCollapsed=!0,this.collapse=new bi}ngOnInit(){this.isHandset$.subscribe(t=>{t&&this.sidenavCollapsed&&this.toggleSidenavCollapse(!1)})}ngAfterContentChecked(){this.changeDetector.detectChanges()}toggleSidenav(){this.sidenav.toggle()}toggleSidenavCollapse(t){this.sidenavCollapsed=t||!this.sidenavCollapsed,this.collapse.emit(this.sidenavCollapsed)}logout(){un.OIDC.oidcServerEnabled?this.authService.logout():this.authenticationService.logout().subscribe(()=>this.router.navigate(["/login"],{replaceUrl:!0}))}help(){window.open("https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","_blank")}showPopover(t,n){setTimeout(()=>this.popoverService.open(t,n,"bottom",!0,{}),200)}nextStep(){this.configurationWizardService.showToolbar=!1,this.configurationWizardService.showToolbarAdmin=!1,this.configurationWizardService.showSideNav=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}openDialog(){this.dialog.open(M_,{}).afterClosed().subscribe(n=>{if(n)switch(n.show){case 1:this.configurationWizardService.showToolbar=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"]);break;case 2:this.configurationWizardService.showCreateOffice=!0,this.router.navigate(["/organization"]);break;case 3:this.configurationWizardService.showDatatables=!0,this.router.navigate(["/system"]);break;case 4:this.configurationWizardService.showChartofAccounts=!0,this.router.navigate(["/accounting"]);break;case 5:this.configurationWizardService.showCharges=!0,this.router.navigate(["/products"]);break;case 6:this.configurationWizardService.showManageFunds=!0,this.router.navigate(["/organization"]);break;case 0:break;default:break}})}ngAfterViewInit(){this.configurationWizardService.showToolbar===!0&&setTimeout(()=>{this.showPopover(this.templateInstitution,this.institution.nativeElement)}),(this.configurationWizardService.showSideNav===!0||this.configurationWizardService.showSideNavChartofAccounts===!0)&&this.toggleSidenavCollapse(),this.configurationWizardService.showToolbarAdmin===!0&&setTimeout(()=>{this.showPopover(this.templateAppMenu,this.appMenu.nativeElement)})}navigateMenu(t){this.router.navigate([t])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-toolbar"]],viewQuery:function(n,i){if(n&1&&(Ee(cse,5),Ee(pse,5),Ee(mse,5),Ee(dse,5),Ee(use,5)),n&2){let s;Te(s=Me())&&(i.institution=s.first),Te(s=Me())&&(i.templateInstitution=s.first),Te(s=Me())&&(i.appMenu=s.first),Te(s=Me())&&(i.templateAppMenu=s.first),Te(s=Me())&&(i.notificationsTray=s.first)}},inputs:{sidenav:"sidenav"},outputs:{collapse:"collapse"},decls:164,vars:120,consts:[["institution","","institutionMenuTrigger","matMenuTrigger"],["accounting",""],["reports","","reportsMenuTrigger","matMenuTrigger"],["admin","","adminMenuTrigger","matMenuTrigger"],["configWizard",""],["globalSearch",""],["languageSelector",""],["notifications",""],["notificationsTray",""],["themeToggle",""],["appMenu",""],["languageMenu","matMenu"],["institutionMenu","matMenu"],["reportsMenu","matMenu"],["adminMenu","matMenu"],["applicationMenu","matMenu"],["templateInstitution",""],["templateAccounting",""],["templateReports",""],["templateAdmin",""],["templateSelfService",""],["templateConfigWizard",""],["templateGlobalSearch",""],["templateLanguageSelector",""],["templateNotifications",""],["templateThemePicker",""],["templateAppMenu",""],["color","primary","id","mifosx-toolbar",1,"layout-row"],["mat-icon-button","","tabindex","0",3,"matTooltip"],["mat-icon-button","","tabindex","0",1,"hide-lt-md",3,"matTooltip"],[1,"tab-nav-bar"],["tabindex","0",1,"tab-link",3,"matMenuTriggerFor"],["icon","university","size","lg",1,"mr-05"],[1,"hide-lt-md"],["tabindex","0",1,"tab-link","accounting-link",3,"routerLink"],["icon","money-bill-alt","size","lg",1,"mr-05"],["icon","chart-bar","size","lg",1,"mr-05"],["icon","shield-alt","size","lg",1,"mr-05"],["tabindex","0",1,"tab-link",3,"click"],["icon","info","size","lg",1,"mr-05"],[1,"toolbar-spacer"],[1,"white-text-search"],["tabindex","0"],[1,"white-text-language"],["tabindex","0",1,"ml-1","language","hide-lt-md"],["mat-icon-button","","tabindex","0",3,"matMenuTriggerFor"],[1,"lg-icon"],["tabindex","0",1,"hide-lt-md"],["mat-icon-button","","tabindex","0",1,"ml-1","img-button",3,"matMenuTriggerFor"],["src","assets/images/user_placeholder.png",3,"alt"],[1,"ml-1","language"],[3,"overlapTrigger"],["mat-menu-item","","routerLink","/clients","tabindex","0"],["mat-menu-item","","routerLink","/groups","tabindex","0"],["mat-menu-item","","routerLink","/centers","tabindex","0"],["mat-menu-item","","tabindex","0",3,"routerLink"],["mat-menu-item","","tabindex","0",3,"matMenuTriggerFor"],["mat-menu-item","","tabindex","0",3,"click"],["mat-menu-item","","routerLink","/templates","tabindex","0"],["matListIcon",""],["icon","question-circle","size","sm"],["icon","user","size","sm"],["icon","cog","size","sm"],["mat-menu-item","","id","logout","tabindex","0",3,"click"],["icon","sign-out-alt","size","sm"],["mat-icon-button","","tabindex","0",3,"click","matTooltip"],["icon","bars","size","lg"],["mat-icon-button","","tabindex","0",1,"hide-lt-md",3,"click","matTooltip"],["icon","chevron-left"],["icon","chevron-right"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-toolbar",27),E(1,Pse,3,4,"button",28),E(2,Dse,4,6,"button",29),l(3,"div",30)(4,"a",31,0),b(7,"fa-icon",32),c(8),p(9,"translate"),r(),l(10,"span",33)(11,"a",34,1),b(13,"fa-icon",35),c(14),p(15,"translate"),r(),l(16,"a",31,2),b(19,"fa-icon",36),c(20),p(21,"translate"),r(),l(22,"a",31,3),b(25,"fa-icon",37),c(26),p(27,"translate"),r(),l(28,"a",38,4),R("click",function(){return V(s),q(i.openDialog())}),b(30,"fa-icon",39),c(31),p(32,"translate"),r()()(),b(33,"span",40),l(34,"div",41,5),b(36,"mifosx-search-tool",42),r(),l(37,"div",43,6),b(39,"mifosx-language-selector",44),r(),l(40,"button",45)(41,"mat-icon",46),c(42,"language"),r()(),l(43,"div",null,7),b(45,"mifosx-notifications-tray",47,8),r(),l(47,"div",null,9),b(49,"mifosx-theme-toggle",42),r(),l(50,"div",null,10)(52,"button",48),b(53,"img",49),p(54,"translate"),r()()(),l(55,"mat-menu",null,11),b(57,"mifosx-language-selector",50),r(),l(58,"mat-menu",51,12)(60,"button",52),c(61),p(62,"translate"),r(),l(63,"button",53),c(64),p(65,"translate"),r(),l(66,"button",54),c(67),p(68,"translate"),r(),l(69,"span",33)(70,"button",55),c(71),p(72,"translate"),r(),l(73,"button",56),c(74),p(75,"translate"),r(),l(76,"button",56),c(77),p(78,"translate"),r()()(),l(79,"mat-menu",51,13)(81,"button",55),c(82),p(83,"translate"),r(),l(84,"button",55),c(85),p(86,"translate"),r(),l(87,"button",55),c(88),p(89,"translate"),r(),l(90,"button",55),c(91),p(92,"translate"),r(),l(93,"button",55),c(94),p(95,"translate"),r(),l(96,"button",55),c(97),p(98,"translate"),r()(),l(99,"mat-menu",51,14)(101,"button",57),R("click",function(){return V(s),q(i.navigateMenu("/appusers"))}),c(102),p(103,"translate"),r(),l(104,"button",55),c(105),p(106,"translate"),r(),l(107,"button",55),c(108),p(109,"translate"),r(),l(110,"button",55),c(111),p(112,"translate"),r(),l(113,"button",58),c(114),p(115,"translate"),r()(),l(116,"mat-menu",51,15)(118,"button",57),R("click",function(){return V(s),q(i.help())}),l(119,"mat-icon",59),b(120,"fa-icon",60),r(),l(121,"span"),c(122),p(123,"translate"),r()(),l(124,"button",55)(125,"mat-icon"),b(126,"fa-icon",61),r(),l(127,"span"),c(128),p(129,"translate"),r()(),l(130,"button",55)(131,"mat-icon"),b(132,"fa-icon",62),r(),l(133,"span"),c(134),p(135,"translate"),r()(),l(136,"button",63),R("click",function(){return V(s),q(i.logout())}),l(137,"mat-icon"),b(138,"fa-icon",64),r(),l(139,"span"),c(140),p(141,"translate"),r()()(),F(142,Ese,13,12,"ng-template",null,16,ti)(144,Ise,16,15,"ng-template",null,17,ti)(146,Ose,16,15,"ng-template",null,18,ti)(148,Ase,16,15,"ng-template",null,19,ti)(150,Fse,10,9,"ng-template",null,20,ti)(152,kse,16,15,"ng-template",null,21,ti)(154,Bse,16,15,"ng-template",null,22,ti)(156,Rse,16,15,"ng-template",null,23,ti)(158,Nse,16,15,"ng-template",null,24,ti)(160,Lse,16,15,"ng-template",null,25,ti)(162,Vse,16,15,"ng-template",null,26,ti)}if(n&2){let s=ve(56),d=ve(59),u=ve(80),f=ve(100),_=ve(117);a(),I(i.sidenavCollapsed?-1:1),a(),I(i.sidenav.opened?2:-1),a(2),g("matMenuTriggerFor",d),a(4),v(" ",m(9,53,"labels.menus.Institution")," "),a(3),g("routerLink",oe(107,tB)),a(3),v(" ",m(15,55,"labels.menus.Accounting")," "),a(2),g("matMenuTriggerFor",u),a(4),v(" ",m(21,57,"labels.menus.Reports")," "),a(2),g("matMenuTriggerFor",f),a(4),v(" ",m(27,59,"labels.menus.Admin")," "),a(5),v(" ",m(32,61,"labels.menus.Configuration Wizard")," "),a(9),g("matMenuTriggerFor",s),a(12),g("matMenuTriggerFor",_),a(),g("alt",m(54,63,"labels.headings.User Profile")),a(5),g("overlapTrigger",!1),a(3),h(m(62,65,"labels.menus.Clients")),a(3),h(m(65,67,"labels.menus.Groups")),a(3),h(m(68,69,"labels.menus.Centers")),a(3),g("routerLink",oe(108,tB)),a(),v(" ",m(72,71,"labels.menus.Accounting")," "),a(2),g("matMenuTriggerFor",u),a(),v(" ",m(75,73,"labels.menus.Reports")," "),a(2),g("matMenuTriggerFor",f),a(),h(m(78,75,"labels.menus.Admin")),a(2),g("overlapTrigger",!1),a(2),g("routerLink",oe(109,fse)),a(),h(m(83,77,"labels.menus.All")),a(2),g("routerLink",oe(110,hse)),a(),v(" ",m(86,79,"labels.menus.Clients")," "),a(2),g("routerLink",oe(111,gse)),a(),h(m(89,81,"labels.menus.Loans")),a(2),g("routerLink",oe(112,_se)),a(),v(" ",m(92,83,"labels.menus.Savings")," "),a(2),g("routerLink",oe(113,Cse)),a(),h(m(95,85,"labels.menus.Funds")),a(2),g("routerLink",oe(114,vse)),a(),v(" ",m(98,87,"labels.menus.Accounting")," "),a(2),g("overlapTrigger",!1),a(3),h(m(103,89,"labels.menus.Users")),a(2),g("routerLink",oe(115,xse)),a(),v(" ",m(106,91,"labels.menus.Organization")," "),a(2),g("routerLink",oe(116,bse)),a(),h(m(109,93,"labels.menus.System")),a(2),g("routerLink",oe(117,yse)),a(),h(m(112,95,"labels.menus.Products")),a(3),h(m(115,97,"labels.menus.Templates")),a(2),g("overlapTrigger",!1),a(6),h(m(123,99,"labels.menus.Help")),a(2),g("routerLink",oe(118,Sse)),a(4),h(m(129,101,"labels.menus.Profile")),a(2),g("routerLink",oe(119,wse)),a(4),h(m(135,103,"labels.menus.Settings")),a(6),h(m(141,105,"labels.menus.Sign Out"))}},dependencies:[ue,fe,Oe,xe,vk,wi,si,ke,nc,ak,Lg,Yo,ok,Kg,ic,tc,he],styles:["#mifosx-toolbar[_ngcontent-%COMP%]{position:relative;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}#mifosx-toolbar[_ngcontent-%COMP%] .tab-nav-bar[_ngcontent-%COMP%]{display:flex;align-items:center;padding:0 1rem}#mifosx-toolbar[_ngcontent-%COMP%] .tab-link[_ngcontent-%COMP%]{min-width:auto;padding:15px 1rem;text-decoration:none;font-weight:500;font-size:14px;color:#ffffffb3;cursor:pointer}#mifosx-toolbar[_ngcontent-%COMP%] .tab-link[_ngcontent-%COMP%]:hover{color:#fff}#mifosx-toolbar[_ngcontent-%COMP%] .search-bar[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{max-width:400px;width:100%;font-size:1rem}#mifosx-toolbar[_ngcontent-%COMP%] .language[_ngcontent-%COMP%]{min-width:80px;width:80px;font-size:.875rem;margin-top:.375rem}#mifosx-toolbar[_ngcontent-%COMP%] .img-button[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%}#mifosx-toolbar[_ngcontent-%COMP%] .ml-1[_ngcontent-%COMP%]{margin-left:1rem}#mifosx-toolbar[_ngcontent-%COMP%] .mr-1[_ngcontent-%COMP%]{margin-right:1rem}.lg-icon[_ngcontent-%COMP%]{display:none}@media (width <= 959px){.lg-icon[_ngcontent-%COMP%]{display:block;margin-left:5px}}.toolbar-spacer[_ngcontent-%COMP%]{flex:1 1 auto}.white-text-language[_ngcontent-%COMP%] mifosx-language-selector{color:#fff!important}.white-text-language[_ngcontent-%COMP%] mifosx-language-selector *{background-color:transparent!important;color:#fff!important}.white-text-search[_ngcontent-%COMP%] mifosx-search-tool{color:#fff!important}.white-text-search[_ngcontent-%COMP%] mifosx-search-tool *{background-color:transparent!important;color:#fff!important;margin-bottom:0}"]})}}return e})();var qse=["breadcrumb"],zse=["templateBreadcrumb"];function Hse(e,o){if(e&1&&(l(0,"a",8),c(1),r()),e&2){let t=w(2).$implicit,n=w(2);g("routerLink",t.url),a(),h(n.getTranslate(t.label))}}function Gse(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(2).$implicit,n=w(2);a(),h(n.getTranslate(t.label))}}function jse(e,o){if(e&1&&(l(0,"span",7),E(1,Hse,2,2,"a",8),E(2,Gse,2,1,"span"),r()),e&2){let t=w().$implicit;a(),I(t.url?1:-1),a(),I(t.url?-1:2)}}function $se(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit,n=w(2);a(),h(n.getTranslate(t.label))}}function Use(e,o){if(e&1&&(l(0,"li",6),E(1,jse,3,2,"span",7),E(2,$se,2,1,"span"),r()),e&2){let t=o.$index,n=o.$count;a(),I(t!==n-1?1:-1),a(),I(t===n-1?2:-1)}}function Wse(e,o){if(e&1&&(l(0,"span",5),Se(1,Use,3,2,"li",6,Pe),r()),e&2){let t=w();a(),we(t.breadcrumbs)}}function Qse(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",9),c(4),p(5,"translate"),r(),l(6,"div",10)(7,"button",11),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",12),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",12),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.menus.Breadcrumbs")),a(3),h(m(5,7,"labels.text.User's current location")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var iB="breadcrumb",h4="routeParamBreadcrumb",g4="routeResolveBreadcrumb",nB="addBreadcrumbLink",E_=(()=>{class e{constructor(){this.activatedRoute=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.translateService=T(yi),this.generateBreadcrumbs()}generateBreadcrumbs(){this.router.events.pipe(Fc(n=>n instanceof Mg)).subscribe(()=>{this.breadcrumbs=[];let n=this.activatedRoute.root,i="";for(;n.children.length>0;){let s=n.children,d,u;s.forEach(f=>{if(n=f,d=!1,f.outlet!=="primary")return;let _=f.snapshot.url.map(y=>y.path).join("/");if(i+=`/${_}`,i==="/"&&(d="Home"),f.routeConfig&&f.routeConfig.data){if(f.snapshot.data.hasOwnProperty(g4)&&f.snapshot.data[g4])d=f.snapshot.data,f.snapshot.data[g4].forEach(y=>{d=d[y]});else if(f.snapshot.data.hasOwnProperty(h4)&&f.snapshot.paramMap.get(f.snapshot.data[h4])){d=f.snapshot.paramMap.get(f.snapshot.data[h4]);let y=f.snapshot.data;if(y.breadcrumb==="Clients")d=this.printableValue(y.clientViewData.displayName),i+="/general";else if(y.breadcrumb==="Groups")d=y.groupViewData.name;else if(y.breadcrumb==="Centers")d=y.centerViewData.name;else if(y.breadcrumb==="Loans")d=this.printableValue(y.loanDetailsData.loanProductName)+" ("+y.loanDetailsData.accountNo+")";else if(y.breadcrumb==="Savings"){let P=y.savingsAccountData?.savingsProductName??"",S=y.savingsAccountData?.accountNo??"";d=this.printableValue(P)+(S?" ("+S+")":"")}else y.breadcrumb==="Fixed Deposits"?d=this.printableValue(y.fixedDepositsAccountData.depositProductName)+" ("+y.fixedDepositsAccountData.accountNo+")":y.breadcrumb==="Loan Products"?d=this.printableValue(y.loanProduct.name):y.breadcrumb==="Charges"?d=y.loansAccountCharge.name:y.breadcrumb==="Saving Products"?d=y.savingProduct.name:y.breadcrumb==="Share Products"?d=y.shareProduct.name:y.breadcrumb==="Fixed Deposit Products"?d=y.fixedDepositProduct.name:y.breadcrumb==="Recurring Deposit Products"?d=y.recurringDepositProduct.name:y.breadcrumb==="Floating Rates"?d=y.floatingRate.name:y.breadcrumb==="Tax Components"?d=y.taxComponent.name:y.breadcrumb==="Tax Groups"&&(d=y.taxGroup.name)}else f.snapshot.data.hasOwnProperty(iB)&&(d=f.snapshot.data[iB]);f.snapshot.data.hasOwnProperty(nB)?u=f.snapshot.data[nB]:u=i}if(u!==void 0&&u.length>8&&u.search("/clients/")>0){let P=u.replace("/general/","/");P=P.replace("//","/"),P+="/general",P=P.replace("/general/general","/general"),u=P}let x={label:d,url:u};d&&this.breadcrumbs.push(x)})}})}printableValue(t){return t.length<=30?t:t.substring(0,30)+"..."}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showBreadcrumbs===!0&&setTimeout(()=>{this.showPopover(this.templateBreadcrumb,this.breadcrumb.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showBreadcrumbs=!1,this.configurationWizardService.showHome=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}previousStep(){this.configurationWizardService.showBreadcrumbs=!1,this.configurationWizardService.showSideNavChartofAccounts=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}getTranslate(t){let n="labels.text."+t,i=this.translateService.instant(n);return i!==n?i:t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-breadcrumb"]],viewQuery:function(n,i){if(n&1&&(Ee(qse,5),Ee(zse,5)),n&2){let s;Te(s=Me())&&(i.breadcrumb=s.first),Te(s=Me())&&(i.templateBreadcrumb=s.first)}},decls:8,vars:2,consts:[["breadcrumb",""],["templateBreadcrumb",""],[1,"breadcrumb-wrapper"],[1,"breadcrumb"],[1,"breadcrumb-title"],[1,"separator"],[1,"breadcrumb-label"],[1,"breadcrumb-link"],[3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"nav",2)(1,"ul",3)(2,"span",4,0),c(4),r(),E(5,Wse,3,0,"span",5),r()(),F(6,Qse,16,15,"ng-template",null,1,ti)),n&2&&(a(4),h(i.getTranslate(i.breadcrumbs[(i.breadcrumbs==null?null:i.breadcrumbs.length)-1].label)),a(),I(i.breadcrumbs.length-1!==0?5:-1))},dependencies:[ue,fe,Oe,xe,he],styles:['body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.breadcrumb-wrapper[_ngcontent-%COMP%]{margin:0 auto;max-width:84rem;width:90%;word-wrap:break-word}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%]{list-style:none;padding:0;margin:1.5rem 0;line-height:40px}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:400}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .separator[_ngcontent-%COMP%]:before{content:"";border:1.5px solid #d7dada;margin:0 .6rem;font-size:1.25rem;font-weight:400}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%]{display:inline;font-size:1rem}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%] .breadcrumb-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{text-decoration:none;color:#4461e2}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%] .breadcrumb-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:underline}.breadcrumb-wrapper[_ngcontent-%COMP%] .breadcrumb[_ngcontent-%COMP%] .breadcrumb-label[_ngcontent-%COMP%] .breadcrumb-link[_ngcontent-%COMP%]:after{content:"/";margin:0 .4rem}']})}}return e})();var I_=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-content"]],decls:2,vars:0,consts:[["id","push"]],template:function(n,i){n&1&&b(0,"router-outlet")(1,"div",0)},dependencies:[ue,fe,ra],styles:["mifosx-content[_ngcontent-%COMP%]{min-height:100%;height:auto!important;height:100%;margin:0 auto -30px}#push[_ngcontent-%COMP%]{height:30px}"]})}}return e})();var Yse=(e,o)=>({"sidebar-full":e,"sidebar-compact":o});function Jse(e,o){e&1&&(l(0,"div"),b(1,"div",7),r())}var O_=(()=>{class e{constructor(){this.breakpointObserver=T(Eg),this.progressBarService=T(sc),this.cdr=T(es),this.isHandset$=this.breakpointObserver.observe(Ig.Handset).pipe(Mn(t=>t.matches)),this.sidenavCollapsed=!0}ngOnInit(){this.progressBar$=this.progressBarService.updateProgressBar.subscribe(t=>{this.progressBarMode=t,this.cdr.detectChanges()})}toggleCollapse(t){this.sidenavCollapsed=t,this.cdr.detectChanges()}ngOnDestroy(){this.progressBar$&&this.progressBar$.unsubscribe()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-shell"]],decls:13,vars:17,consts:[["sidenav",""],["id","mifosx-shell-container","autosize",""],[1,"sidebar-panel",3,"ngClass","mode","opened"],[3,"sidenavCollapsed"],[1,"sidenav"],[3,"collapse","sidenav"],[3,"styleClass"],[1,"loading"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-sidenav-container",1)(1,"mat-sidenav",2,0),p(3,"async"),p(4,"async"),p(5,"async"),b(6,"mifosx-sidenav",3),r(),l(7,"mat-sidenav-content",4)(8,"mifosx-toolbar",5),R("collapse",function(u){return V(s),q(i.toggleCollapse(u))}),r(),E(9,Jse,2,0,"div"),b(10,"mifosx-breadcrumb")(11,"mifosx-content")(12,"mifosx-footer",6),r()()}if(n&2){let s=ve(2);a(),g("ngClass",Ja(14,Yse,!i.sidenavCollapsed,i.sidenavCollapsed))("mode",m(3,8,i.isHandset$)?"over":"side")("opened",m(4,10,i.isHandset$)===!1),Dn("role",m(5,12,i.isHandset$)?"dialog":"navigation"),a(5),g("sidenavCollapsed",i.sidenavCollapsed),a(2),g("sidenav",s),a(),I(i.progressBarMode!=="none"?9:-1),a(3),g("styleClass","main-page")}},dependencies:[ue,co,fe,uk,dk,T_,mk,D_,E_,I_,Ng,Ka],styles:["#mifosx-shell-container[_ngcontent-%COMP%]{max-width:100%;height:100vh}#mifosx-shell-container[_ngcontent-%COMP%] .sidebar-panel[_ngcontent-%COMP%]{min-height:100vh;overflow:auto;box-shadow:0 3px 1px -2px #0003,0 2px 2px #00000024,0 1px 5px #0000001f}#mifosx-shell-container[_ngcontent-%COMP%] .sidebar-full[_ngcontent-%COMP%]{width:15rem}#mifosx-shell-container[_ngcontent-%COMP%] .sidebar-compact[_ngcontent-%COMP%]{width:4rem}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:760px}50%{left:1330px}66.7%{left:760px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:190px}16.7%{width:760px}33.3%{width:760px}50%{width:190px}66.7%{width:760px}83.3%{width:760px}to{width:190px}}"]})}}return e})();var oB=(()=>{class e{constructor(){let t=T(e,{optional:!0,skipSelf:!0});if(t)throw new Error(`${t} has already been loaded. Import Core module in the AppModule only.`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[Wo,w_,cf,{provide:bp,useClass:cf,multi:!0},y_,{provide:bp,useClass:xf,multi:!0},{provide:bp,useClass:Cf,multi:!0},{provide:bp,useClass:S_,multi:!0},{provide:ko,useClass:J8,deps:[Pg,Cp,[new dF,f4]]},sc,{provide:bp,useClass:K8,multi:!0},{provide:Dg,useClass:X8},kF(BF())],imports:[oo,yp,gn,O_,T_,D_,E_,I_,oo]})}}return e})();var _o=class{static withShell(o){return{path:"",component:O_,children:o,canActivate:[w_]}}};var A_=[{activity:"client",path:"/clients"},{activity:"groups",path:"/groups"},{activity:"centers",path:"/centers"},{activity:"accounting",path:"/accounting"},{activity:"users",path:"/appusers"},{activity:"organization",path:"/organization"},{activity:"system",path:"/system"},{activity:"templates",path:"/templates"},{activity:"create group",path:""},{activity:"create center",path:"/centers/create"},{activity:"configuration",path:"/system/global-configurations"},{activity:"create loan product",path:"/products/loan-products/create"},{activity:"create saving product",path:"/products/saving-products/create"},{activity:"roles",path:"/system/roles-and-permissions"},{activity:"add role",path:"/system/roles-and-permissions/add"},{activity:"configure maker checker tasks",path:""},{activity:"loan products",path:"/products/loan-products"},{activity:"charges",path:"/products/charges"},{activity:"saving products",path:"/products/saving-products"},{activity:"offices",path:"/organization/offices"},{activity:"create office",path:"/organization/offices/create"},{activity:"currency configurations",path:"/organization/currencies"},{activity:"user settings",path:""},{activity:"employees",path:"/organization/employees"},{activity:"create employee",path:"/organization/employees/create"},{activity:"manage funds",path:""},{activity:"chart of accounts",path:"/accounting/chart-of-accounts"},{activity:"frequent postings",path:"/accounting/frequent-postings"},{activity:"journal entry",path:"/accounting/journal-entries"},{activity:"search transaction",path:""},{activity:"account closure",path:"/accounting/closing-entries"},{activity:"accounting rules",path:"/accounting/accounting-rules"},{activity:"add accounting rule",path:"/accounting/accounting-rules/create"},{activity:"data tables",path:"/system/data-tables"},{activity:"create data table",path:"/system/data-tables/create"},{activity:"add code",path:"/system/codes/create"},{activity:"jobs",path:"/system/scheduler-jobs"},{activity:"codes",path:"/system/codes"},{activity:"reports",path:"/reports"},{activity:"create report",path:""},{activity:"holidays",path:"/organization/holidays"},{activity:"create holiday",path:""},{activity:"add member",path:"/clients/:clientId/family-members/add"},{activity:"create charge",path:""},{activity:"enter collection sheet",path:""},{activity:"product mix",path:"/products/products-mix"},{activity:"add product mix",path:""},{activity:"bulk loan reassignment",path:"/accounting/closing-entries/create"},{activity:"audit",path:"/products/audit-trails"},{activity:"create accounting closure",path:""},{activity:"navigation",path:"/navigation"},{activity:"",path:"home"}];var F_=(()=>{class e{constructor(){this.dialogRef=T(eo),this.title=un.warningDialog.title,this.content=un.warningDialog.content,this.buttonText=un.warningDialog.buttonText}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-warning-dialog"]],decls:10,vars:9,consts:[["mat-dialog-title",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content"),c(4),p(5,"translate"),r(),l(6,"mat-dialog-actions")(7,"button",1),c(8),p(9,"translate"),r()()),n&2&&(a(),h(m(2,3,"labels.text."+i.title)),a(3),h(m(5,5,"labels.text.Warning message")),a(4),h(m(9,7,"labels.buttons."+i.buttonText)))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var Kse=()=>({nextStep:!1}),Xse=()=>({nextStep:!0}),ss=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po);let t=this.data;this.stepPercentage=t.stepPercentage,this.nextStepName=t.nextStepName,this.previousStepName=t.previousStepName}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-next-step-dialog"]],decls:20,vars:23,consts:[["mat-dialog-title",""],[1,"mw600"],["mode","determinate",3,"value"],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"h3",1),c(5),p(6,"translate"),r(),l(7,"h3"),c(8),p(9,"translate"),r(),l(10,"h3"),c(11),p(12,"translate"),r(),b(13,"mat-progress-bar",2),r(),l(14,"mat-dialog-actions")(15,"button",3),c(16),p(17,"translate"),r(),l(18,"button",4),c(19),r()()),n&2&&(a(),h(m(2,11,"labels.heading.Welcome to Mifos")),a(4),h(m(6,13,"labels.heading.Configure Mifos Organization Needs")),a(3),le("",m(9,15,"labels.heading.Successfully completed")," ",i.previousStepName),a(3),le("",m(12,17,"labels.heading.Progress Bar")," : ",i.stepPercentage,"%"),a(2),g("value",i.stepPercentage),a(2),g("mat-dialog-close",oe(21,Kse)),a(),v(" ",m(17,19,"labels.buttons.Close Config. Wizard")," "),a(2),g("mat-dialog-close",oe(22,Xse)),a(),h(i.nextStepName))},dependencies:[ue,fe,xe,Wn,ho,ns,Nn,Un,he],encapsulation:2})}}return e})();var Zse=["buttonDashboard"],ece=["templateButtonDashboard"],tce=["searchActivity"],ice=["templateSearchActivity"],nce=()=>["/dashboard"];function oce(e,o){if(e&1&&(l(0,"mat-option",14)(1,"span"),c(2),r()()),e&2){let t=o.$implicit;g("routerLink",t.path),a(2),h(t.activity)}}function ace(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(),s=i.popover,d=i.prev,u=w();return s.close(),q(u.showPopover(d.template,d.target,"bottom",!0))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Back")," "))}function rce(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(),s=i.popover,d=i.next,u=w();return s.close(),q(u.showPopover(d.template,d.target,"bottom",!0))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Next")," "))}function lce(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(2),p(3,"translate"),r(),E(4,ace,3,3,"button",18),E(5,rce,3,3,"button",18),r()}if(e&2){let t=o.prev,n=o.next;a(2),v(" ",m(3,3,"labels.buttons.Close")," "),a(2),I(t?4:-1),a(),I(n?5:-1)}}function sce(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",20),c(4),p(5,"translate"),r(),l(6,"div",16)(7,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(32);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Dashboard")),a(3),h(m(5,7,"labels.text.This will navigate the user to the dashboard component.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function cce(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",20),c(4),p(5,"translate"),r(),l(6,"div",16)(7,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Search Activity")),a(3),h(m(5,7,"labels.text.This will navigate the user to the searched activity.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var k_=(()=>{class e{constructor(){this.authenticationService=T(Wo),this.activatedRoute=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.searchText=new it,this.allActivities=A_}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.setFilteredActivities(),this.authenticationService.hasDialogBeenShown()||(this.dialog.open(F_),this.authenticationService.showDialog())}setFilteredActivities(){this.filteredActivities=this.searchText.valueChanges.pipe(Mn(t=>typeof t=="string"?t:t.activity),Mn(t=>t?this.filterActivity(t):this.allActivities))}filterActivity(t){let n=t.toLowerCase();return this.allActivities.filter(i=>i.activity.toLowerCase().indexOf(n)===0)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showHome===!0&&setTimeout(()=>{this.showPopover(this.templateButtonDashboard,this.buttonDashboard.nativeElement,"bottom",!0)}),this.configurationWizardService.showHomeSearchActivity===!0&&setTimeout(()=>{this.showPopover(this.templateSearchActivity,this.searchActivity.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.openNextStepDialog()}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Organization",previousStepName:"Home Tour",stepPercentage:10}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.configurationWizardService.showCreateOffice=!0,this.router.navigate(["/organization"])):(this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.router.navigate(["/home"]))})}previousStep(){this.configurationWizardService.showHome=!1,this.configurationWizardService.showHomeSearchActivity=!1,this.configurationWizardService.showBreadcrumbs=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/home"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-home"]],viewQuery:function(n,i){if(n&1&&(Ee(Zse,5),Ee(ece,5),Ee(tce,5),Ee(ice,5)),n&2){let s;Te(s=Me())&&(i.buttonDashboard=s.first),Te(s=Me())&&(i.templateButtonDashboard=s.first),Te(s=Me())&&(i.searchActivity=s.first),Te(s=Me())&&(i.templateSearchActivity=s.first)}},decls:33,vars:16,consts:[["buttonDashboard",""],["searchActivity",""],["activitySearch","matAutocomplete"],["popoverButtons",""],["templateButtonDashboard",""],["templateSearchActivity",""],[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","tachometer-alt",1,"m-r-10"],[1,"container"],[1,"title"],[1,"layout-column"],["matInput","",3,"matAutocomplete","formControl"],[3,"routerLink"],["mat-card-image","","src","assets/images/mifos_lg-logo.png","alt","Mifos X"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","primary",3,"click"],[1,"mw300"]],template:function(n,i){if(n&1&&(l(0,"div",6)(1,"div",7,0)(3,"button",8),b(4,"fa-icon",9),c(5),p(6,"translate"),r()()(),l(7,"div",10)(8,"mat-card")(9,"mat-card-header")(10,"mat-card-title",11),c(11),p(12,"translate"),r()(),l(13,"mat-card-content",null,1)(15,"div",12)(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",13),r()(),l(21,"mat-autocomplete",null,2),Se(23,oce,3,2,"mat-option",14,Pe),p(25,"async"),r()(),b(26,"img",15),r()(),F(27,lce,6,5,"ng-template",null,3,ti)(29,sce,16,15,"ng-template",null,4,ti)(31,cce,16,15,"ng-template",null,5,ti)),n&2){let s=ve(22);a(3),g("routerLink",oe(15,nce)),a(2),v(" ",m(6,7,"labels.buttons.Dashboard")," "),a(6),le(" ",m(12,9,"labels.text.Welcome"),", ",i.username,"! "),a(7),h(m(19,11,"labels.placeholders.Search Activity")),a(2),g("matAutocomplete",s)("formControl",i.searchText),a(3),we(m(25,13,i.filteredActivities))}},dependencies:[ue,fe,st,$e,_n,Oe,Ue,Je,Fe,Be,ze,ft,xe,ke,sa,Qo,er,Za,QF,Ka,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .title[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:500;margin-left:-15px}.mat-list-base[_ngcontent-%COMP%]{padding-top:0}a[_ngcontent-%COMP%]{text-decoration:none;color:#000}"]})}}return e})();var B0=(()=>{class e{constructor(){this.http=T(ko)}getCollectedAmount(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/Demand Vs Collection",{params:n})}getDisbursedAmount(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/Disbursal Vs Awaitingdisbursal",{params:n})}getClientTrendsByDay(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/ClientTrendsByDay",{params:n})}getClientTrendsByWeek(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/ClientTrendsByWeek",{params:n})}getClientTrendsByMonth(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/ClientTrendsByMonth",{params:n})}getLoanTrendsByDay(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/LoanTrendsByDay",{params:n})}getLoanTrendsByWeek(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/LoanTrendsByWeek",{params:n})}getLoanTrendsByMonth(t){let n=new rn().set("R_officeId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/LoanTrendsByMonth",{params:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Sf(e){return e+.5|0}var Ap=(e,o,t)=>Math.max(Math.min(e,t),o);function bf(e){return Ap(Sf(e*2.55),0,255)}function Fp(e){return Ap(Sf(e*255),0,255)}function qc(e){return Ap(Sf(e/2.55)/100,0,1)}function aB(e){return Ap(Sf(e*100),0,100)}var cs={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},C4=[..."0123456789ABCDEF"],pce=e=>C4[e&15],mce=e=>C4[(e&240)>>4]+C4[e&15],B_=e=>(e&240)>>4===(e&15),dce=e=>B_(e.r)&&B_(e.g)&&B_(e.b)&&B_(e.a);function uce(e){var o=e.length,t;return e[0]==="#"&&(o===4||o===5?t={r:255&cs[e[1]]*17,g:255&cs[e[2]]*17,b:255&cs[e[3]]*17,a:o===5?cs[e[4]]*17:255}:(o===7||o===9)&&(t={r:cs[e[1]]<<4|cs[e[2]],g:cs[e[3]]<<4|cs[e[4]],b:cs[e[5]]<<4|cs[e[6]],a:o===9?cs[e[7]]<<4|cs[e[8]]:255})),t}var fce=(e,o)=>e<255?o(e):"";function hce(e){var o=dce(e)?pce:mce;return e?"#"+o(e.r)+o(e.g)+o(e.b)+fce(e.a,o):void 0}var gce=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function cB(e,o,t){let n=o*Math.min(t,1-t),i=(s,d=(s+e/30)%12)=>t-n*Math.max(Math.min(d-3,9-d,1),-1);return[i(0),i(8),i(4)]}function _ce(e,o,t){let n=(i,s=(i+e/60)%6)=>t-t*o*Math.max(Math.min(s,4-s,1),0);return[n(5),n(3),n(1)]}function Cce(e,o,t){let n=cB(e,1,.5),i;for(o+t>1&&(i=1/(o+t),o*=i,t*=i),i=0;i<3;i++)n[i]*=1-o-t,n[i]+=o;return n}function vce(e,o,t,n,i){return e===i?(o-t)/n+(o.5?C/(2-s-d):C/(s+d),f=vce(t,n,i,C,s),f=f*60+.5),[f|0,_||0,u]}function x4(e,o,t,n){return(Array.isArray(o)?e(o[0],o[1],o[2]):e(o,t,n)).map(Fp)}function b4(e,o,t){return x4(cB,e,o,t)}function xce(e,o,t){return x4(Cce,e,o,t)}function bce(e,o,t){return x4(_ce,e,o,t)}function pB(e){return(e%360+360)%360}function yce(e){let o=gce.exec(e),t=255,n;if(!o)return;o[5]!==n&&(t=o[6]?bf(+o[5]):Fp(+o[5]));let i=pB(+o[2]),s=+o[3]/100,d=+o[4]/100;return o[1]==="hwb"?n=xce(i,s,d):o[1]==="hsv"?n=bce(i,s,d):n=b4(i,s,d),{r:n[0],g:n[1],b:n[2],a:t}}function Sce(e,o){var t=v4(e);t[0]=pB(t[0]+o),t=b4(t),e.r=t[0],e.g=t[1],e.b=t[2]}function wce(e){if(!e)return;let o=v4(e),t=o[0],n=aB(o[1]),i=aB(o[2]);return e.a<255?`hsla(${t}, ${n}%, ${i}%, ${qc(e.a)})`:`hsl(${t}, ${n}%, ${i}%)`}var rB={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},lB={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Pce(){let e={},o=Object.keys(lB),t=Object.keys(rB),n,i,s,d,u;for(n=0;n>16&255,s>>8&255,s&255]}return e}var R_;function Tce(e){R_||(R_=Pce(),R_.transparent=[0,0,0,0]);let o=R_[e.toLowerCase()];return o&&{r:o[0],g:o[1],b:o[2],a:o.length===4?o[3]:255}}var Mce=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Dce(e){let o=Mce.exec(e),t=255,n,i,s;if(o){if(o[7]!==n){let d=+o[7];t=o[8]?bf(d):Ap(d*255,0,255)}return n=+o[1],i=+o[3],s=+o[5],n=255&(o[2]?bf(n):Ap(n,0,255)),i=255&(o[4]?bf(i):Ap(i,0,255)),s=255&(o[6]?bf(s):Ap(s,0,255)),{r:n,g:i,b:s,a:t}}}function Ece(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${qc(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var _4=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,R0=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Ice(e,o,t){let n=R0(qc(e.r)),i=R0(qc(e.g)),s=R0(qc(e.b));return{r:Fp(_4(n+t*(R0(qc(o.r))-n))),g:Fp(_4(i+t*(R0(qc(o.g))-i))),b:Fp(_4(s+t*(R0(qc(o.b))-s))),a:e.a+t*(o.a-e.a)}}function N_(e,o,t){if(e){let n=v4(e);n[o]=Math.max(0,Math.min(n[o]+n[o]*t,o===0?360:1)),n=b4(n),e.r=n[0],e.g=n[1],e.b=n[2]}}function mB(e,o){return e&&Object.assign(o||{},e)}function sB(e){var o={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(o={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(o.a=Fp(e[3]))):(o=mB(e,{r:0,g:0,b:0,a:1}),o.a=Fp(o.a)),o}function Oce(e){return e.charAt(0)==="r"?Dce(e):yce(e)}var yf=class e{constructor(o){if(o instanceof e)return o;let t=typeof o,n;t==="object"?n=sB(o):t==="string"&&(n=uce(o)||Tce(o)||Oce(o)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var o=mB(this._rgb);return o&&(o.a=qc(o.a)),o}set rgb(o){this._rgb=sB(o)}rgbString(){return this._valid?Ece(this._rgb):void 0}hexString(){return this._valid?hce(this._rgb):void 0}hslString(){return this._valid?wce(this._rgb):void 0}mix(o,t){if(o){let n=this.rgb,i=o.rgb,s,d=t===s?.5:t,u=2*d-1,f=n.a-i.a,_=((u*f===-1?u:(u+f)/(1+u*f))+1)/2;s=1-_,n.r=255&_*n.r+s*i.r+.5,n.g=255&_*n.g+s*i.g+.5,n.b=255&_*n.b+s*i.b+.5,n.a=d*n.a+(1-d)*i.a,this.rgb=n}return this}interpolate(o,t){return o&&(this._rgb=Ice(this._rgb,o._rgb,t)),this}clone(){return new e(this.rgb)}alpha(o){return this._rgb.a=Fp(o),this}clearer(o){let t=this._rgb;return t.a*=1-o,this}greyscale(){let o=this._rgb,t=Sf(o.r*.3+o.g*.59+o.b*.11);return o.r=o.g=o.b=t,this}opaquer(o){let t=this._rgb;return t.a*=1+o,this}negate(){let o=this._rgb;return o.r=255-o.r,o.g=255-o.g,o.b=255-o.b,this}lighten(o){return N_(this._rgb,2,o),this}darken(o){return N_(this._rgb,2,-o),this}saturate(o){return N_(this._rgb,1,o),this}desaturate(o){return N_(this._rgb,1,-o),this}rotate(o){return Sce(this._rgb,o),this}};function mc(){}var yB=(()=>{let e=0;return()=>e++})();function Co(e){return e==null}function ga(e){if(Array.isArray&&Array.isArray(e))return!0;let o=Object.prototype.toString.call(e);return o.slice(0,7)==="[object"&&o.slice(-6)==="Array]"}function bo(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Fa(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function yl(e,o){return Fa(e)?e:o}function Kn(e,o){return typeof e>"u"?o:e}var SB=(e,o)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/o,P4=(e,o)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*o:+e;function oa(e,o,t){if(e&&typeof e.call=="function")return e.apply(t,o)}function Jo(e,o,t,n){let i,s,d;if(ga(e))if(s=e.length,n)for(i=s-1;i>=0;i--)o.call(t,e[i],i);else for(i=0;ie,x:e=>e.x,y:e=>e.y};function kce(e){let o=e.split("."),t=[],n="";for(let i of o)n+=i,n.endsWith("\\")?n=n.slice(0,-1)+".":(t.push(n),n="");return t}function Bce(e){let o=kce(e);return t=>{for(let n of o){if(n==="")break;t=t&&t[n]}return t}}function Gc(e,o){return(dB[o]||(dB[o]=Bce(o)))(e)}function $_(e){return e.charAt(0).toUpperCase()+e.slice(1)}var z0=e=>typeof e<"u",zc=e=>typeof e=="function",T4=(e,o)=>{if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0};function PB(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var Bo=Math.PI,_a=2*Bo,Rce=_a+Bo,H_=Number.POSITIVE_INFINITY,Nce=Bo/180,za=Bo/2,xd=Bo/4,uB=Bo*2/3,Hc=Math.log10,Bs=Math.sign;function H0(e,o,t){return Math.abs(e-o)i-s).pop(),o}function Lce(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Sd(e){return!Lce(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function MB(e,o){let t=Math.round(e);return t-o<=e&&t+o>=e}function D4(e,o,t){let n,i,s;for(n=0,i=e.length;nf&&_=Math.min(o,t)-n&&e<=Math.max(o,t)+n}function W_(e,o,t){t=t||(d=>e[d]1;)s=i+n>>1,t(s)?i=s:n=s;return{lo:i,hi:n}}var cc=(e,o,t,n)=>W_(e,t,n?i=>{let s=e[i][o];return se[i][o]W_(e,t,n=>e[n][o]>=t);function IB(e,o,t){let n=0,i=e.length;for(;nn&&e[i-1]>t;)i--;return n>0||i{let n="_onData"+$_(t),i=e[t];Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value(...s){let d=i.apply(this,s);return e._chartjs.listeners.forEach(u=>{typeof u[n]=="function"&&u[n](...s)}),d}})})}function O4(e,o){let t=e._chartjs;if(!t)return;let n=t.listeners,i=n.indexOf(o);i!==-1&&n.splice(i,1),!(n.length>0)&&(OB.forEach(s=>{delete e[s]}),delete e._chartjs)}function A4(e){let o=new Set(e);return o.size===e.length?e:Array.from(o)}var F4=(function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame})();function k4(e,o){let t=[],n=!1;return function(...i){t=i,n||(n=!0,F4.call(window,()=>{n=!1,e.apply(o,t)}))}}function FB(e,o){let t;return function(...n){return o?(clearTimeout(t),t=setTimeout(e,o,n)):e.apply(this,n),o}}var Q_=e=>e==="start"?"left":e==="end"?"right":"center",Vr=(e,o,t)=>e==="start"?o:e==="end"?t:(o+t)/2,kB=(e,o,t,n)=>e===(n?"left":"right")?t:e==="center"?(o+t)/2:o;function B4(e,o,t){let n=o.length,i=0,s=n;if(e._sorted){let{iScale:d,vScale:u,_parsed:f}=e,_=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,C=d.axis,{min:x,max:y,minDefined:P,maxDefined:S}=d.getUserBounds();if(P){if(i=Math.min(cc(f,C,x).lo,t?n:cc(o,C,d.getPixelForValue(x)).lo),_){let M=f.slice(0,i+1).reverse().findIndex(D=>!Co(D[u.axis]));i-=Math.max(0,M)}i=_r(i,0,n-1)}if(S){let M=Math.max(cc(f,d.axis,y,!0).hi+1,t?0:cc(o,C,d.getPixelForValue(y),!0).hi+1);if(_){let D=f.slice(M-1).findIndex(k=>!Co(k[u.axis]));M+=Math.max(0,D)}s=_r(M,i,n)-i}else s=n-i}return{start:i,count:s}}function R4(e){let{xScale:o,yScale:t,_scaleRanges:n}=e,i={xmin:o.min,xmax:o.max,ymin:t.min,ymax:t.max};if(!n)return e._scaleRanges=i,!0;let s=n.xmin!==o.min||n.xmax!==o.max||n.ymin!==t.min||n.ymax!==t.max;return Object.assign(n,i),s}var L_=e=>e===0||e===1,fB=(e,o,t)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-o)*_a/t)),hB=(e,o,t)=>Math.pow(2,-10*e)*Math.sin((e-o)*_a/t)+1,N0={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*za)+1,easeOutSine:e=>Math.sin(e*za),easeInOutSine:e=>-.5*(Math.cos(Bo*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>L_(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>L_(e)?e:fB(e,.075,.3),easeOutElastic:e=>L_(e)?e:hB(e,.075,.3),easeInOutElastic(e){return L_(e)?e:e<.5?.5*fB(e*2,.1125,.45):.5+.5*hB(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let o=1.70158;return(e/=.5)<1?.5*(e*e*(((o*=1.525)+1)*e-o)):.5*((e-=2)*e*(((o*=1.525)+1)*e+o)+2)},easeInBounce:e=>1-N0.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?N0.easeInBounce(e*2)*.5:N0.easeOutBounce(e*2-1)*.5+.5};function N4(e){if(e&&typeof e=="object"){let o=e.toString();return o==="[object CanvasPattern]"||o==="[object CanvasGradient]"}return!1}function L4(e){return N4(e)?e:new yf(e)}function y4(e){return N4(e)?e:new yf(e).saturate(.5).darken(.1).hexString()}var qce=["x","y","borderWidth","radius","tension"],zce=["color","borderColor","backgroundColor"];function Hce(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:o=>o!=="onProgress"&&o!=="onComplete"&&o!=="fn"}),e.set("animations",{colors:{type:"color",properties:zce},numbers:{type:"number",properties:qce}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:o=>o|0}}}})}function Gce(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var gB=new Map;function jce(e,o){o=o||{};let t=e+JSON.stringify(o),n=gB.get(t);return n||(n=new Intl.NumberFormat(e,o),gB.set(t,n)),n}function j0(e,o,t){return jce(o,t).format(e)}var BB={values(e){return ga(e)?e:""+e},numeric(e,o,t){if(e===0)return"0";let n=this.chart.options.locale,i,s=e;if(t.length>1){let _=Math.max(Math.abs(t[0].value),Math.abs(t[t.length-1].value));(_<1e-4||_>1e15)&&(i="scientific"),s=$ce(e,t)}let d=Hc(Math.abs(s)),u=isNaN(d)?1:Math.max(Math.min(-1*Math.floor(d),20),0),f={notation:i,minimumFractionDigits:u,maximumFractionDigits:u};return Object.assign(f,this.options.ticks.format),j0(e,n,f)},logarithmic(e,o,t){if(e===0)return"0";let n=t[o].significand||e/Math.pow(10,Math.floor(Hc(e)));return[1,2,3,5,10,15].includes(n)||o>.8*t.length?BB.numeric.call(this,e,o,t):""}};function $ce(e,o){let t=o.length>3?o[2].value-o[1].value:o[1].value-o[0].value;return Math.abs(t)>=1&&e!==Math.floor(e)&&(t=e-Math.floor(e)),t}var Mf={formatters:BB};function Uce(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(o,t)=>t.lineWidth,tickColor:(o,t)=>t.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Mf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:o=>!o.startsWith("before")&&!o.startsWith("after")&&o!=="callback"&&o!=="parser",_indexable:o=>o!=="borderDash"&&o!=="tickBorderDash"&&o!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:o=>o!=="backdropPadding"&&o!=="callback",_indexable:o=>o!=="backdropPadding"})}var Rp=Object.create(null),Y_=Object.create(null);function wf(e,o){if(!o)return e;let t=o.split(".");for(let n=0,i=t.length;nn.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(n,i)=>y4(i.backgroundColor),this.hoverBorderColor=(n,i)=>y4(i.borderColor),this.hoverColor=(n,i)=>y4(i.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(o),this.apply(t)}set(o,t){return S4(this,o,t)}get(o){return wf(this,o)}describe(o,t){return S4(Y_,o,t)}override(o,t){return S4(Rp,o,t)}route(o,t,n,i){let s=wf(this,o),d=wf(this,n),u="_"+t;Object.defineProperties(s,{[u]:{value:s[t],writable:!0},[t]:{enumerable:!0,get(){let f=this[u],_=d[i];return bo(f)?Object.assign({},_,f):Kn(f,_)},set(f){this[u]=f}}})}apply(o){o.forEach(t=>t(this))}},ba=new w4({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[Hce,Gce,Uce]);function Wce(e){return!e||Co(e.size)||Co(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Pf(e,o,t,n,i){let s=o[i];return s||(s=o[i]=e.measureText(i).width,t.push(i)),s>n&&(n=s),n}function RB(e,o,t,n){n=n||{};let i=n.data=n.data||{},s=n.garbageCollect=n.garbageCollect||[];n.font!==o&&(i=n.data={},s=n.garbageCollect=[],n.font=o),e.save(),e.font=o;let d=0,u=t.length,f,_,C,x,y;for(f=0;ft.length){for(f=0;f0&&e.stroke()}}function pc(e,o,t){return t=t||.5,!o||e&&e.x>o.left-t&&e.xo.top-t&&e.y0&&s.strokeColor!=="",f,_;for(e.save(),e.font=i.string,Qce(e,s),f=0;f+e||0;function K_(e,o){let t={},n=bo(o),i=n?Object.keys(o):o,s=bo(e)?n?d=>Kn(e[d],e[o[d]]):d=>e[d]:()=>e;for(let d of i)t[d]=epe(s(d));return t}function z4(e){return K_(e,{top:"y",right:"x",bottom:"y",left:"x"})}function Vp(e){return K_(e,["topLeft","topRight","bottomLeft","bottomRight"])}function qr(e){let o=z4(e);return o.width=o.left+o.right,o.height=o.top+o.bottom,o}function sr(e,o){e=e||{},o=o||ba.font;let t=Kn(e.size,o.size);typeof t=="string"&&(t=parseInt(t,10));let n=Kn(e.style,o.style);n&&!(""+n).match(Xce)&&(console.warn('Invalid font style specified: "'+n+'"'),n=void 0);let i={family:Kn(e.family,o.family),lineHeight:Zce(Kn(e.lineHeight,o.lineHeight),t),size:t,style:n,weight:Kn(e.weight,o.weight),string:""};return i.string=Wce(i),i}function U0(e,o,t,n){let i=!0,s,d,u;for(s=0,d=e.length;st&&u===0?0:u+f;return{min:d(n,-Math.abs(s)),max:d(i,s)}}function jc(e,o){return Object.assign(Object.create(e),o)}function X_(e,o=[""],t,n,i=()=>e[0]){let s=t||e;typeof n>"u"&&(n=HB("_fallback",e));let d={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:s,_fallback:n,_getTarget:i,override:u=>X_([u,...e],o,s,n)};return new Proxy(d,{deleteProperty(u,f){return delete u[f],delete u._keys,delete e[0][f],!0},get(u,f){return qB(u,f,()=>spe(f,o,e,u))},getOwnPropertyDescriptor(u,f){return Reflect.getOwnPropertyDescriptor(u._scopes[0],f)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(u,f){return CB(u).includes(f)},ownKeys(u){return CB(u)},set(u,f,_){let C=u._storage||(u._storage=i());return u[f]=C[f]=_,delete u._keys,!0}})}function yd(e,o,t,n){let i={_cacheable:!1,_proxy:e,_context:o,_subProxy:t,_stack:new Set,_descriptors:H4(e,n),setContext:s=>yd(e,s,t,n),override:s=>yd(e.override(s),o,t,n)};return new Proxy(i,{deleteProperty(s,d){return delete s[d],delete e[d],!0},get(s,d,u){return qB(s,d,()=>ipe(s,d,u))},getOwnPropertyDescriptor(s,d){return s._descriptors.allKeys?Reflect.has(e,d)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,d)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(s,d){return Reflect.has(e,d)},ownKeys(){return Reflect.ownKeys(e)},set(s,d,u){return e[d]=u,delete s[d],!0}})}function H4(e,o={scriptable:!0,indexable:!0}){let{_scriptable:t=o.scriptable,_indexable:n=o.indexable,_allKeys:i=o.allKeys}=e;return{allKeys:i,scriptable:t,indexable:n,isScriptable:zc(t)?t:()=>t,isIndexable:zc(n)?n:()=>n}}var tpe=(e,o)=>e?e+$_(o):o,G4=(e,o)=>bo(o)&&e!=="adapters"&&(Object.getPrototypeOf(o)===null||o.constructor===Object);function qB(e,o,t){if(Object.prototype.hasOwnProperty.call(e,o)||o==="constructor")return e[o];let n=t();return e[o]=n,n}function ipe(e,o,t){let{_proxy:n,_context:i,_subProxy:s,_descriptors:d}=e,u=n[o];return zc(u)&&d.isScriptable(o)&&(u=npe(o,u,e,t)),ga(u)&&u.length&&(u=ope(o,u,e,d.isIndexable)),G4(o,u)&&(u=yd(u,i,s&&s[o],d)),u}function npe(e,o,t,n){let{_proxy:i,_context:s,_subProxy:d,_stack:u}=t;if(u.has(e))throw new Error("Recursion detected: "+Array.from(u).join("->")+"->"+e);u.add(e);let f=o(s,d||n);return u.delete(e),G4(e,f)&&(f=j4(i._scopes,i,e,f)),f}function ope(e,o,t,n){let{_proxy:i,_context:s,_subProxy:d,_descriptors:u}=t;if(typeof s.index<"u"&&n(e))return o[s.index%o.length];if(bo(o[0])){let f=o,_=i._scopes.filter(C=>C!==f);o=[];for(let C of f){let x=j4(_,i,e,C);o.push(yd(x,s,d&&d[e],u))}}return o}function zB(e,o,t){return zc(e)?e(o,t):e}var ape=(e,o)=>e===!0?o:typeof e=="string"?Gc(o,e):void 0;function rpe(e,o,t,n,i){for(let s of o){let d=ape(t,s);if(d){e.add(d);let u=zB(d._fallback,t,i);if(typeof u<"u"&&u!==t&&u!==n)return u}else if(d===!1&&typeof n<"u"&&t!==n)return null}return!1}function j4(e,o,t,n){let i=o._rootScopes,s=zB(o._fallback,t,n),d=[...e,...i],u=new Set;u.add(n);let f=_B(u,d,t,s||t,n);return f===null||typeof s<"u"&&s!==t&&(f=_B(u,d,s,f,n),f===null)?!1:X_(Array.from(u),[""],i,s,()=>lpe(o,t,n))}function _B(e,o,t,n,i){for(;t;)t=rpe(e,o,t,n,i);return t}function lpe(e,o,t){let n=e._getTarget();o in n||(n[o]={});let i=n[o];return ga(i)&&bo(t)?t:i||{}}function spe(e,o,t,n){let i;for(let s of o)if(i=HB(tpe(s,e),t),typeof i<"u")return G4(e,i)?j4(t,n,e,i):i}function HB(e,o){for(let t of o){if(!t)continue;let n=t[e];if(typeof n<"u")return n}}function CB(e){let o=e._keys;return o||(o=e._keys=cpe(e._scopes)),o}function cpe(e){let o=new Set;for(let t of e)for(let n of Object.keys(t).filter(i=>!i.startsWith("_")))o.add(n);return Array.from(o)}function $4(e,o,t,n){let{iScale:i}=e,{key:s="r"}=this._parsing,d=new Array(n),u,f,_,C;for(u=0,f=n;uoe==="x"?"y":"x";function mpe(e,o,t,n){let i=e.skip?o:e,s=o,d=t.skip?o:t,u=G_(s,i),f=G_(d,s),_=u/(u+f),C=f/(u+f);_=isNaN(_)?0:_,C=isNaN(C)?0:C;let x=n*_,y=n*C;return{previous:{x:s.x-x*(d.x-i.x),y:s.y-x*(d.y-i.y)},next:{x:s.x+y*(d.x-i.x),y:s.y+y*(d.y-i.y)}}}function dpe(e,o,t){let n=e.length,i,s,d,u,f,_=V0(e,0);for(let C=0;C!_.skip)),o.cubicInterpolationMode==="monotone")fpe(e,i);else{let _=n?e[e.length-1]:e[0];for(s=0,d=e.length;se.ownerDocument.defaultView.getComputedStyle(e,null);function gpe(e,o){return tC(e).getPropertyValue(o)}var _pe=["top","right","bottom","left"];function bd(e,o,t){let n={};t=t?"-"+t:"";for(let i=0;i<4;i++){let s=_pe[i];n[s]=parseFloat(e[o+"-"+s+t])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}var Cpe=(e,o,t)=>(e>0||o>0)&&(!t||!t.shadowRoot);function vpe(e,o){let t=e.touches,n=t&&t.length?t[0]:e,{offsetX:i,offsetY:s}=n,d=!1,u,f;if(Cpe(i,s,e.target))u=i,f=s;else{let _=o.getBoundingClientRect();u=n.clientX-_.left,f=n.clientY-_.top,d=!0}return{x:u,y:f,box:d}}function qp(e,o){if("native"in e)return e;let{canvas:t,currentDevicePixelRatio:n}=o,i=tC(t),s=i.boxSizing==="border-box",d=bd(i,"padding"),u=bd(i,"border","width"),{x:f,y:_,box:C}=vpe(e,t),x=d.left+(C&&u.left),y=d.top+(C&&u.top),{width:P,height:S}=o;return s&&(P-=d.width+u.width,S-=d.height+u.height),{x:Math.round((f-x)/P*t.width/n),y:Math.round((_-y)/S*t.height/n)}}function xpe(e,o,t){let n,i;if(o===void 0||t===void 0){let s=e&&eC(e);if(!s)o=e.clientWidth,t=e.clientHeight;else{let d=s.getBoundingClientRect(),u=tC(s),f=bd(u,"border","width"),_=bd(u,"padding");o=d.width-_.width-f.width,t=d.height-_.height-f.height,n=j_(u.maxWidth,s,"clientWidth"),i=j_(u.maxHeight,s,"clientHeight")}}return{width:o,height:t,maxWidth:n||H_,maxHeight:i||H_}}var Bp=e=>Math.round(e*10)/10;function $B(e,o,t,n){let i=tC(e),s=bd(i,"margin"),d=j_(i.maxWidth,e,"clientWidth")||H_,u=j_(i.maxHeight,e,"clientHeight")||H_,f=xpe(e,o,t),{width:_,height:C}=f;if(i.boxSizing==="content-box"){let y=bd(i,"border","width"),P=bd(i,"padding");_-=P.width+y.width,C-=P.height+y.height}return _=Math.max(0,_-s.width),C=Math.max(0,n?_/n:C-s.height),_=Bp(Math.min(_,d,f.maxWidth)),C=Bp(Math.min(C,u,f.maxHeight)),_&&!C&&(C=Bp(_/2)),(o!==void 0||t!==void 0)&&n&&f.height&&C>f.height&&(C=f.height,_=Bp(Math.floor(C*n))),{width:_,height:C}}function U4(e,o,t){let n=o||1,i=Bp(e.height*n),s=Bp(e.width*n);e.height=Bp(e.height),e.width=Bp(e.width);let d=e.canvas;return d.style&&(t||!d.style.height&&!d.style.width)&&(d.style.height=`${e.height}px`,d.style.width=`${e.width}px`),e.currentDevicePixelRatio!==n||d.height!==i||d.width!==s?(e.currentDevicePixelRatio=n,d.height=i,d.width=s,e.ctx.setTransform(n,0,0,n,0,0),!0):!1}var UB=(function(){let e=!1;try{let o={get passive(){return e=!0,!1}};Z_()&&(window.addEventListener("test",null,o),window.removeEventListener("test",null,o))}catch{}return e})();function W4(e,o){let t=gpe(e,o),n=t&&t.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function kp(e,o,t,n){return{x:e.x+t*(o.x-e.x),y:e.y+t*(o.y-e.y)}}function WB(e,o,t,n){return{x:e.x+t*(o.x-e.x),y:n==="middle"?t<.5?e.y:o.y:n==="after"?t<1?e.y:o.y:t>0?o.y:e.y}}function QB(e,o,t,n){let i={x:e.cp2x,y:e.cp2y},s={x:o.cp1x,y:o.cp1y},d=kp(e,i,t),u=kp(i,s,t),f=kp(s,o,t),_=kp(d,u,t),C=kp(u,f,t);return kp(_,C,t)}var bpe=function(e,o){return{x(t){return e+e+o-t},setWidth(t){o=t},textAlign(t){return t==="center"?t:t==="right"?"left":"right"},xPlus(t,n){return t-n},leftForLtr(t,n){return t-n}}},ype=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,o){return e+o},leftForLtr(e,o){return e}}};function wd(e,o,t){return e?bpe(o,t):ype()}function Q4(e,o){let t,n;(o==="ltr"||o==="rtl")&&(t=e.canvas.style,n=[t.getPropertyValue("direction"),t.getPropertyPriority("direction")],t.setProperty("direction",o,"important"),e.prevTextDirection=n)}function Y4(e,o){o!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",o[0],o[1]))}function YB(e){return e==="angle"?{between:G0,compare:Vce,normalize:Lr}:{between:dc,compare:(o,t)=>o-t,normalize:o=>o}}function vB({start:e,end:o,count:t,loop:n,style:i}){return{start:e%t,end:o%t,loop:n&&(o-e+1)%t===0,style:i}}function Spe(e,o,t){let{property:n,start:i,end:s}=t,{between:d,normalize:u}=YB(n),f=o.length,{start:_,end:C,loop:x}=e,y,P;if(x){for(_+=f,C+=f,y=0,P=f;yf(i,U,k)&&u(i,U)!==0,re=()=>u(s,k)===0||f(s,U,k),ee=()=>M||J(),ae=()=>!M||re();for(let se=C,_e=C;se<=x;++se)z=o[se%d],!z.skip&&(k=_(z[n]),k!==U&&(M=f(k,i,s),D===null&&ee()&&(D=u(k,i)===0?se:_e),D!==null&&ae()&&(S.push(vB({start:D,end:se,loop:y,count:d,style:P})),D=null),_e=se,U=k));return D!==null&&S.push(vB({start:D,end:x,loop:y,count:d,style:P})),S}function K4(e,o){let t=[],n=e.segments;for(let i=0;ii&&e[s%o].skip;)s--;return s%=o,{start:i,end:s}}function Ppe(e,o,t,n){let i=e.length,s=[],d=o,u=e[o],f;for(f=o+1;f<=t;++f){let _=e[f%i];_.skip||_.stop?u.skip||(n=!1,s.push({start:o%i,end:(f-1)%i,loop:n}),o=d=_.stop?f:null):(d=f,u.skip&&(o=f)),u=_}return d!==null&&s.push({start:o%i,end:d%i,loop:n}),s}function JB(e,o){let t=e.points,n=e.options.spanGaps,i=t.length;if(!i)return[];let s=!!e._loop,{start:d,end:u}=wpe(t,i,s,n);if(n===!0)return xB(e,[{start:d,end:u,loop:s}],t,o);let f=uu({chart:o,initial:t.initial,numSteps:d,currentStep:Math.min(n-t.start,d)}))}_refresh(){this._request||(this._running=!0,this._request=F4.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(o=Date.now()){let t=0;this._charts.forEach((n,i)=>{if(!n.running||!n.items.length)return;let s=n.items,d=s.length-1,u=!1,f;for(;d>=0;--d)f=s[d],f._active?(f._total>n.duration&&(n.duration=f._total),f.tick(o),u=!0):(s[d]=s[s.length-1],s.pop());u&&(i.draw(),this._notify(i,n,o,"progress")),s.length||(n.running=!1,this._notify(i,n,o,"complete"),n.initial=!1),t+=s.length}),this._lastDate=o,t===0&&(this._running=!1)}_getAnims(o){let t=this._charts,n=t.get(o);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},t.set(o,n)),n}listen(o,t,n){this._getAnims(o).listeners[t].push(n)}add(o,t){!t||!t.length||this._getAnims(o).items.push(...t)}has(o){return this._getAnims(o).items.length>0}start(o){let t=this._charts.get(o);t&&(t.running=!0,t.start=Date.now(),t.duration=t.items.reduce((n,i)=>Math.max(n,i._duration),0),this._refresh())}running(o){if(!this._running)return!1;let t=this._charts.get(o);return!(!t||!t.running||!t.items.length)}stop(o){let t=this._charts.get(o);if(!t||!t.items.length)return;let n=t.items,i=n.length-1;for(;i>=0;--i)n[i].cancel();t.items=[],this._notify(o,t,Date.now(),"complete")}remove(o){return this._charts.delete(o)}},$c=new pM,KB="transparent",Epe={boolean(e,o,t){return t>.5?o:e},color(e,o,t){let n=L4(e||KB),i=n.valid&&L4(o||KB);return i&&i.valid?i.mix(n,t).hexString():o},number(e,o,t){return e+(o-e)*t}},mM=class{constructor(o,t,n,i){let s=t[n];i=U0([o.to,i,s,o.from]);let d=U0([o.from,s,i]);this._active=!0,this._fn=o.fn||Epe[o.type||typeof d],this._easing=N0[o.easing]||N0.linear,this._start=Math.floor(Date.now()+(o.delay||0)),this._duration=this._total=Math.floor(o.duration),this._loop=!!o.loop,this._target=t,this._prop=n,this._from=d,this._to=i,this._promises=void 0}active(){return this._active}update(o,t,n){if(this._active){this._notify(!1);let i=this._target[this._prop],s=n-this._start,d=this._duration-s;this._start=n,this._duration=Math.floor(Math.max(d,o.duration)),this._total+=s,this._loop=!!o.loop,this._to=U0([o.to,t,i,o.from]),this._from=U0([o.from,i,t])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(o){let t=o-this._start,n=this._duration,i=this._prop,s=this._from,d=this._loop,u=this._to,f;if(this._active=s!==u&&(d||t1?2-f:f,f=this._easing(Math.min(1,Math.max(0,f))),this._target[i]=this._fn(s,u,f)}wait(){let o=this._promises||(this._promises=[]);return new Promise((t,n)=>{o.push({res:t,rej:n})})}_notify(o){let t=o?"res":"rej",n=this._promises||[];for(let i=0;i{let s=o[i];if(!bo(s))return;let d={};for(let u of t)d[u]=s[u];(ga(s.properties)&&s.properties||[i]).forEach(u=>{(u===i||!n.has(u))&&n.set(u,d)})})}_animateOptions(o,t){let n=t.options,i=Ope(o,n);if(!i)return[];let s=this._createAnimations(i,n);return n.$shared&&Ipe(o.options.$animations,n).then(()=>{o.options=n},()=>{}),s}_createAnimations(o,t){let n=this._properties,i=[],s=o.$animations||(o.$animations={}),d=Object.keys(t),u=Date.now(),f;for(f=d.length-1;f>=0;--f){let _=d[f];if(_.charAt(0)==="$")continue;if(_==="options"){i.push(...this._animateOptions(o,t));continue}let C=t[_],x=s[_],y=n.get(_);if(x)if(y&&x.active()){x.update(y,C,u);continue}else x.cancel();if(!y||!y.duration){o[_]=C;continue}s[_]=x=new mM(y,o,_,C),i.push(x)}return i}update(o,t){if(this._properties.size===0){Object.assign(o,t);return}let n=this._createAnimations(o,t);if(n.length)return $c.add(this._chart,n),!0}};function Ipe(e,o){let t=[],n=Object.keys(o);for(let i=0;i0||!t&&s<0)return i.index}return null}function tR(e,o){let{chart:t,_cachedMeta:n}=e,i=t._stacks||(t._stacks={}),{iScale:s,vScale:d,index:u}=n,f=s.axis,_=d.axis,C=Bpe(s,d,n),x=o.length,y;for(let P=0;Pt[n].axis===o).shift()}function Lpe(e,o){return jc(e,{active:!1,dataset:void 0,datasetIndex:o,index:o,mode:"default",type:"dataset"})}function Vpe(e,o,t){return jc(e,{active:!1,dataIndex:o,parsed:void 0,raw:void 0,element:t,index:o,mode:"default",type:"data"})}function If(e,o){let t=e.controller.index,n=e.vScale&&e.vScale.axis;if(n){o=o||e._parsed;for(let i of o){let s=i._stacks;if(!s||s[n]===void 0||s[n][t]===void 0)return;delete s[n][t],s[n]._visualValues!==void 0&&s[n]._visualValues[t]!==void 0&&delete s[n]._visualValues[t]}}}var tM=e=>e==="reset"||e==="none",iR=(e,o)=>o?e:Object.assign({},e),qpe=(e,o,t)=>e&&!o.hidden&&o._stacked&&{keys:KR(t,!0),values:null},Hp=(()=>{class e{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Z4(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&If(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,n=this._cachedMeta,i=this.getDataset(),s=(y,P,S,M)=>y==="x"?P:y==="r"?M:S,d=n.xAxisID=Kn(i.xAxisID,eM(t,"x")),u=n.yAxisID=Kn(i.yAxisID,eM(t,"y")),f=n.rAxisID=Kn(i.rAxisID,eM(t,"r")),_=n.indexAxis,C=n.iAxisID=s(_,d,u,f),x=n.vAxisID=s(_,u,d,f);n.xScale=this.getScaleForId(d),n.yScale=this.getScaleForId(u),n.rScale=this.getScaleForId(f),n.iScale=this.getScaleForId(C),n.vScale=this.getScaleForId(x)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&O4(this._data,this),t._stacked&&If(t)}_dataCheck(){let t=this.getDataset(),n=t.data||(t.data=[]),i=this._data;if(bo(n)){let s=this._cachedMeta;this._data=kpe(n,s)}else if(i!==n){if(i){O4(i,this);let s=this._cachedMeta;If(s),s._parsed=[]}n&&Object.isExtensible(n)&&AB(n,this),this._syncList=[],this._data=n}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let n=this._cachedMeta,i=this.getDataset(),s=!1;this._dataCheck();let d=n._stacked;n._stacked=Z4(n.vScale,n),n.stack!==i.stack&&(s=!0,If(n),n.stack=i.stack),this._resyncElements(t),(s||d!==n._stacked)&&(tR(this,n._parsed),n._stacked=Z4(n.vScale,n))}configure(){let t=this.chart.config,n=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){let{_cachedMeta:i,_data:s}=this,{iScale:d,_stacked:u}=i,f=d.axis,_=t===0&&n===s.length?!0:i._sorted,C=t>0&&i._parsed[t-1],x,y,P;if(this._parsing===!1)i._parsed=s,i._sorted=!0,P=s;else{ga(s[t])?P=this.parseArrayData(i,s,t,n):bo(s[t])?P=this.parseObjectData(i,s,t,n):P=this.parsePrimitiveData(i,s,t,n);let S=()=>y[f]===null||C&&y[f]D||y=0;--P)if(!M()){this.updateRangeFromParsed(C,t,S,_);break}}return C}getAllParsedValues(t){let n=this._cachedMeta._parsed,i=[],s,d,u;for(s=0,d=n.length;s=0&&tthis.getContext(i,s,n),D=C.resolveNamedOptions(P,S,M,y);return D.$shared&&(D.$shared=_,d[u]=Object.freeze(iR(D,_))),D}_resolveAnimations(t,n,i){let s=this.chart,d=this._cachedDataOpts,u=`animation-${n}`,f=d[u];if(f)return f;let _;if(s.options.animation!==!1){let x=this.chart.config,y=x.datasetAnimationScopeKeys(this._type,n),P=x.getOptionScopes(this.getDataset(),y);_=x.createResolver(P,this.getContext(t,i,n))}let C=new pC(s,_&&_.animations);return _&&_._cacheable&&(d[u]=Object.freeze(C)),C}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||tM(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){let i=this.resolveDataElementOptions(t,n),s=this._sharedOptions,d=this.getSharedOptions(i),u=this.includeOptions(n,d)||d!==s;return this.updateSharedOptions(d,n,i),{sharedOptions:d,includeOptions:u}}updateElement(t,n,i,s){tM(s)?Object.assign(t,i):this._resolveAnimations(n,s).update(t,i)}updateSharedOptions(t,n,i){t&&!tM(n)&&this._resolveAnimations(void 0,n).update(t,i)}_setStyle(t,n,i,s){t.active=s;let d=this.getStyle(n,s);this._resolveAnimations(n,i,s).update(t,{options:!s&&this.getSharedOptions(d)||d})}removeHoverStyle(t,n,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,n,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let n=this._data,i=this._cachedMeta.data;for(let[f,_,C]of this._syncList)this[f](_,C);this._syncList=[];let s=i.length,d=n.length,u=Math.min(d,s);u&&this.parse(0,u),d>s?this._insertElements(s,d-s,t):d{for(C.length+=n,f=C.length-1;f>=u;f--)C[f]=C[f-n]};for(_(d),f=t;fi-s))}return e._cache.$bar}function Hpe(e){let o=e.iScale,t=zpe(o,e.type),n=o._length,i,s,d,u,f=()=>{d===32767||d===-32768||(z0(u)&&(n=Math.min(n,Math.abs(d-u)||n)),u=d)};for(i=0,s=t.length;i0?i[e-1]:null,u=eMath.abs(u)&&(f=u,_=d),o[t.axis]=_,o._custom={barStart:f,barEnd:_,start:i,end:s,min:d,max:u}}function XR(e,o,t,n){return ga(e)?$pe(e,o,t,n):o[t.axis]=t.parse(e,n),o}function nR(e,o,t,n){let i=e.iScale,s=e.vScale,d=i.getLabels(),u=i===s,f=[],_,C,x,y;for(_=t,C=t+n;_=t?1:-1)}function Wpe(e){let o,t,n,i,s;return e.horizontal?(o=e.base>e.x,t="left",n="right"):(o=e.base{class e extends Hp{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,n,i,s){return nR(t,n,i,s)}parseArrayData(t,n,i,s){return nR(t,n,i,s)}parseObjectData(t,n,i,s){let{iScale:d,vScale:u}=t,{xAxisKey:f="x",yAxisKey:_="y"}=this._parsing,C=d.axis==="x"?f:_,x=u.axis==="x"?f:_,y=[],P,S,M,D;for(P=i,S=i+s;Px.controller.options.grouped),d=i.options.stacked,u=[],f=this._cachedMeta.controller.getParsed(n),_=f&&f[i.axis],C=x=>{let y=x._parsed.find(S=>S[i.axis]===_),P=y&&y[x.vScale.axis];if(Co(P)||isNaN(P))return!0};for(let x of s)if(!(n!==void 0&&C(x))&&((d===!1||u.indexOf(x.stack)===-1||d===void 0&&x.stack===void 0)&&u.push(x.stack),x.index===t))break;return u.length||u.push(void 0),u}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){let t=this.chart.scales,n=this.chart.options.indexAxis;return Object.keys(t).filter(i=>t[i].axis===n).shift()}_getAxis(){let t={},n=this.getFirstScaleIdForIndexAxis();for(let i of this.chart.data.datasets)t[Kn(this.chart.options.indexAxis==="x"?i.xAxisID:i.yAxisID,n)]=!0;return Object.keys(t)}_getStackIndex(t,n,i){let s=this._getStacks(t,i),d=n!==void 0?s.indexOf(n):-1;return d===-1?s.length-1:d}_getRuler(){let t=this.options,n=this._cachedMeta,i=n.iScale,s=[],d,u;for(d=0,u=n.data.length;d{class e extends Hp{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,n,i,s){let d=super.parsePrimitiveData(t,n,i,s);for(let u=0;u=0;--i)n=Math.max(n,t[i].size(this.resolveDataElementOptions(i))/2);return n>0&&n}getLabelAndValue(t){let n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:d}=n,u=this.getParsed(t),f=s.getLabelForValue(u.x),_=d.getLabelForValue(u.y),C=u._custom;return{label:i[t]||"",value:"("+f+", "+_+(C?", "+C:"")+")"}}update(t){let n=this._cachedMeta.data;this.updateElements(n,0,n.length,t)}updateElements(t,n,i,s){let d=s==="reset",{iScale:u,vScale:f}=this._cachedMeta,{sharedOptions:_,includeOptions:C}=this._getSharedOptions(n,s),x=u.axis,y=f.axis;for(let P=n;PG0(U,u,f,!0)?1:Math.max(J,J*t,re,re*t),S=(U,J,re)=>G0(U,u,f,!0)?-1:Math.min(J,J*t,re,re*t),M=P(0,_,x),D=P(za,C,y),k=S(Bo,_,x),z=S(Bo+za,C,y);n=(M-k)/2,i=(D-z)/2,s=-(M+k)/2,d=-(D+z)/2}return{ratioX:n,ratioY:i,offsetX:s,offsetY:d}}var OM=(()=>{class e extends Hp{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data,{labels:{pointStyle:i,textAlign:s,color:d,useBorderRadius:u,borderRadius:f}}=t.legend.options;return n.labels.length&&n.datasets.length?n.labels.map((_,C)=>{let y=t.getDatasetMeta(0).controller.getStyle(C);return{text:_,fillStyle:y.backgroundColor,fontColor:d,hidden:!t.getDataVisibility(C),lineDash:y.borderDash,lineDashOffset:y.borderDashOffset,lineJoin:y.borderJoinStyle,lineWidth:y.borderWidth,strokeStyle:y.borderColor,textAlign:s,pointStyle:i,borderRadius:u&&(f||y.borderRadius),index:C}}):[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}}};constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){let i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let d=_=>+i[_];if(bo(i[t])){let{key:_="value"}=this._parsing;d=C=>+Gc(i[C],_)}let u,f;for(u=t,f=t+n;u0&&!isNaN(t)?_a*(Math.abs(t)/n):0}getLabelAndValue(t){let n=this._cachedMeta,i=this.chart,s=i.data.labels||[],d=j0(n._parsed[t],i.options.locale);return{label:s[t]||"",value:d}}getMaxBorderWidth(t){let n=0,i=this.chart,s,d,u,f,_;if(!t){for(s=0,d=i.data.datasets.length;s{class e extends Hp{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let n=this._cachedMeta,{dataset:i,data:s=[],_dataset:d}=n,u=this.chart._animationsDisabled,{start:f,count:_}=B4(n,s,u);this._drawStart=f,this._drawCount=_,R4(n)&&(f=0,_=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!d._decimated,i.points=s;let C=this.resolveDatasetElementOptions(t);this.options.showLine||(C.borderWidth=0),C.segment=this.options.segment,this.updateElement(i,void 0,{animated:!u,options:C},t),this.updateElements(s,f,_,t)}updateElements(t,n,i,s){let d=s==="reset",{iScale:u,vScale:f,_stacked:_,_dataset:C}=this._cachedMeta,{sharedOptions:x,includeOptions:y}=this._getSharedOptions(n,s),P=u.axis,S=f.axis,{spanGaps:M,segment:D}=this.options,k=Sd(M)?M:Number.POSITIVE_INFINITY,z=this.chart._animationsDisabled||d||s==="none",U=n+i,J=t.length,re=n>0&&this.getParsed(n-1);for(let ee=0;ee=U){se.skip=!0;continue}let _e=this.getParsed(ee),de=Co(_e[S]),j=se[P]=u.getPixelForValue(_e[P],ee),W=se[S]=d||de?f.getBasePixel():f.getPixelForValue(_?this.applyStack(f,_e,_):_e[S],ee);se.skip=isNaN(j)||isNaN(W)||de,se.stop=ee>0&&Math.abs(_e[P]-re[P])>k,D&&(se.parsed=_e,se.raw=C.data[ee]),y&&(se.options=x||this.resolveDataElementOptions(ee,ae.active?"active":s)),z||this.updateElement(ae,ee,se,s),re=_e}}getMaxOverflow(){let t=this._cachedMeta,n=t.dataset,i=n.options&&n.options.borderWidth||0,s=t.data||[];if(!s.length)return i;let d=s[0].size(this.resolveDataElementOptions(0)),u=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,d,u)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}return e})(),ZR=(()=>{class e extends Hp{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data;if(n.labels.length&&n.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return n.labels.map((d,u)=>{let _=t.getDatasetMeta(0).controller.getStyle(u);return{text:d,fillStyle:_.backgroundColor,strokeStyle:_.borderColor,fontColor:s,lineWidth:_.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(u),index:u}})}return[]}},onClick(t,n,i){i.chart.toggleDataVisibility(n.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,n){super(t,n),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let n=this._cachedMeta,i=this.chart,s=i.data.labels||[],d=j0(n._parsed[t].r,i.options.locale);return{label:s[t]||"",value:d}}parseObjectData(t,n,i,s){return $4.bind(this)(t,n,i,s)}update(t){let n=this._cachedMeta.data;this._updateRadius(),this.updateElements(n,0,n.length,t)}getMinMax(){let t=this._cachedMeta,n={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,s)=>{let d=this.getParsed(s).r;!isNaN(d)&&this.chart.getDataVisibility(s)&&(dn.max&&(n.max=d))}),n}_updateRadius(){let t=this.chart,n=t.chartArea,i=t.options,s=Math.min(n.right-n.left,n.bottom-n.top),d=Math.max(s/2,0),u=Math.max(i.cutoutPercentage?d/100*i.cutoutPercentage:1,0),f=(d-u)/t.getVisibleDatasetCount();this.outerRadius=d-f*this.index,this.innerRadius=this.outerRadius-f}updateElements(t,n,i,s){let d=s==="reset",u=this.chart,_=u.options.animation,C=this._cachedMeta.rScale,x=C.xCenter,y=C.yCenter,P=C.getIndexAngle(0)-.5*Bo,S=P,M,D=360/this.countVisibleElements();for(M=0;M{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&n++}),n}_computeAngle(t,n,i){return this.chart.getDataVisibility(t)?ps(this.resolveDataElementOptions(t,n).angle||i):0}}return e})(),tme=(()=>{class e extends OM{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}return e})(),ime=(()=>{class e extends Hp{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){let n=this._cachedMeta.vScale,i=this.getParsed(t);return{label:n.getLabels()[t],value:""+n.getLabelForValue(i[n.axis])}}parseObjectData(t,n,i,s){return $4.bind(this)(t,n,i,s)}update(t){let n=this._cachedMeta,i=n.dataset,s=n.data||[],d=n.iScale.getLabels();if(i.points=s,t!=="resize"){let u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0);let f={_loop:!0,_fullLoop:d.length===s.length,options:u};this.updateElement(i,void 0,f,t)}this.updateElements(s,0,s.length,t)}updateElements(t,n,i,s){let d=this._cachedMeta.rScale,u=s==="reset";for(let f=n;f{class e extends Hp{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){let n=this._cachedMeta,i=this.chart.data.labels||[],{xScale:s,yScale:d}=n,u=this.getParsed(t),f=s.getLabelForValue(u.x),_=d.getLabelForValue(u.y);return{label:i[t]||"",value:"("+f+", "+_+")"}}update(t){let n=this._cachedMeta,{data:i=[]}=n,s=this.chart._animationsDisabled,{start:d,count:u}=B4(n,i,s);if(this._drawStart=d,this._drawCount=u,R4(n)&&(d=0,u=i.length),this.options.showLine){this.datasetElementType||this.addElements();let{dataset:f,_dataset:_}=n;f._chart=this.chart,f._datasetIndex=this.index,f._decimated=!!_._decimated,f.points=i;let C=this.resolveDatasetElementOptions(t);C.segment=this.options.segment,this.updateElement(f,void 0,{animated:!s,options:C},t)}else this.datasetElementType&&(delete n.dataset,this.datasetElementType=!1);this.updateElements(i,d,u,t)}addElements(){let{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,n,i,s){let d=s==="reset",{iScale:u,vScale:f,_stacked:_,_dataset:C}=this._cachedMeta,x=this.resolveDataElementOptions(n,s),y=this.getSharedOptions(x),P=this.includeOptions(s,y),S=u.axis,M=f.axis,{spanGaps:D,segment:k}=this.options,z=Sd(D)?D:Number.POSITIVE_INFINITY,U=this.chart._animationsDisabled||d||s==="none",J=n>0&&this.getParsed(n-1);for(let re=n;re0&&Math.abs(ae[S]-J[S])>z,k&&(se.parsed=ae,se.raw=C.data[re]),P&&(se.options=y||this.resolveDataElementOptions(re,ee.active?"active":s)),U||this.updateElement(ee,re,se,s),J=ae}this.updateSharedOptions(y,s,x)}getMaxOverflow(){let t=this._cachedMeta,n=t.data||[];if(!this.options.showLine){let f=0;for(let _=n.length-1;_>=0;--_)f=Math.max(f,n[_].size(this.resolveDataElementOptions(_))/2);return f>0&&f}let i=t.dataset,s=i.options&&i.options.borderWidth||0;if(!n.length)return s;let d=n[0].size(this.resolveDataElementOptions(0)),u=n[n.length-1].size(this.resolveDataElementOptions(n.length-1));return Math.max(s,d,u)/2}}return e})(),ome=Object.freeze({__proto__:null,BarController:Kpe,BubbleController:Xpe,DoughnutController:OM,LineController:eme,PieController:tme,PolarAreaController:ZR,RadarController:ime,ScatterController:nme});function Pd(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var dM=class e{static override(o){Object.assign(e.prototype,o)}options;constructor(o){this.options=o||{}}init(){}formats(){return Pd()}parse(){return Pd()}format(){return Pd()}add(){return Pd()}diff(){return Pd()}startOf(){return Pd()}endOf(){return Pd()}},ame={_date:dM};function rme(e,o,t,n){let{controller:i,data:s,_sorted:d}=e,u=i._cachedMeta.iScale,f=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(u&&o===u.axis&&o!=="r"&&d&&s.length){let _=u._reversePixels?EB:cc;if(n){if(i._sharedOptions){let C=s[0],x=typeof C.getRange=="function"&&C.getRange(o);if(x){let y=_(s,o,t-x),P=_(s,o,t+x);return{lo:y.lo,hi:P.hi}}}}else{let C=_(s,o,t);if(f){let{vScale:x}=i._cachedMeta,{_parsed:y}=e,P=y.slice(0,C.lo+1).reverse().findIndex(M=>!Co(M[x.axis]));C.lo-=Math.max(0,P);let S=y.slice(C.hi).findIndex(M=>!Co(M[x.axis]));C.hi+=Math.max(0,S)}return C}}return{lo:0,hi:s.length-1}}function qf(e,o,t,n,i){let s=e.getSortedVisibleDatasetMetas(),d=t[o];for(let u=0,f=s.length;u{f[d]&&f[d](o[t],i)&&(s.push({element:f,datasetIndex:_,index:C}),u=u||f.inRange(o.x,o.y,i))}),n&&!u?[]:s}var pme={evaluateInteractionItems:qf,modes:{index(e,o,t,n){let i=qp(o,e),s=t.axis||"x",d=t.includeInvisible||!1,u=t.intersect?nM(e,i,s,n,d):oM(e,i,s,!1,n,d),f=[];return u.length?(e.getSortedVisibleDatasetMetas().forEach(_=>{let C=u[0].index,x=_.data[C];x&&!x.skip&&f.push({element:x,datasetIndex:_.index,index:C})}),f):[]},dataset(e,o,t,n){let i=qp(o,e),s=t.axis||"xy",d=t.includeInvisible||!1,u=t.intersect?nM(e,i,s,n,d):oM(e,i,s,!1,n,d);if(u.length>0){let f=u[0].datasetIndex,_=e.getDatasetMeta(f).data;u=[];for(let C=0;C<_.length;++C)u.push({element:_[C],datasetIndex:f,index:C})}return u},point(e,o,t,n){let i=qp(o,e),s=t.axis||"xy",d=t.includeInvisible||!1;return nM(e,i,s,n,d)},nearest(e,o,t,n){let i=qp(o,e),s=t.axis||"xy",d=t.includeInvisible||!1;return oM(e,i,s,t.intersect,n,d)},x(e,o,t,n){let i=qp(o,e);return rR(e,i,"x",t.intersect,n)},y(e,o,t,n){let i=qp(o,e);return rR(e,i,"y",t.intersect,n)}}},e9=["left","top","right","bottom"];function Of(e,o){return e.filter(t=>t.pos===o)}function lR(e,o){return e.filter(t=>e9.indexOf(t.pos)===-1&&t.box.axis===o)}function Af(e,o){return e.sort((t,n)=>{let i=o?n:t,s=o?t:n;return i.weight===s.weight?i.index-s.index:i.weight-s.weight})}function mme(e){let o=[],t,n,i,s,d,u;for(t=0,n=(e||[]).length;t_.box.fullSize),!0),n=Af(Of(o,"left"),!0),i=Af(Of(o,"right")),s=Af(Of(o,"top"),!0),d=Af(Of(o,"bottom")),u=lR(o,"x"),f=lR(o,"y");return{fullSize:t,leftAndTop:n.concat(s),rightAndBottom:i.concat(f).concat(d).concat(u),chartArea:Of(o,"chartArea"),vertical:n.concat(i).concat(f),horizontal:s.concat(d).concat(u)}}function sR(e,o,t,n){return Math.max(e[t],o[t])+Math.max(e[n],o[n])}function t9(e,o){e.top=Math.max(e.top,o.top),e.left=Math.max(e.left,o.left),e.bottom=Math.max(e.bottom,o.bottom),e.right=Math.max(e.right,o.right)}function hme(e,o,t,n){let{pos:i,box:s}=t,d=e.maxPadding;if(!bo(i)){t.size&&(e[i]-=t.size);let x=n[t.stack]||{size:0,count:1};x.size=Math.max(x.size,t.horizontal?s.height:s.width),t.size=x.size/x.count,e[i]+=t.size}s.getPadding&&t9(d,s.getPadding());let u=Math.max(0,o.outerWidth-sR(d,e,"left","right")),f=Math.max(0,o.outerHeight-sR(d,e,"top","bottom")),_=u!==e.w,C=f!==e.h;return e.w=u,e.h=f,t.horizontal?{same:_,other:C}:{same:C,other:_}}function gme(e){let o=e.maxPadding;function t(n){let i=Math.max(o[n]-e[n],0);return e[n]+=i,i}e.y+=t("top"),e.x+=t("left"),t("right"),t("bottom")}function _me(e,o){let t=o.maxPadding;function n(i){let s={left:0,top:0,right:0,bottom:0};return i.forEach(d=>{s[d]=Math.max(o[d],t[d])}),s}return n(e?["left","right"]:["top","bottom"])}function Bf(e,o,t,n){let i=[],s,d,u,f,_,C;for(s=0,d=e.length,_=0;s{typeof M.beforeLayout=="function"&&M.beforeLayout()});let C=f.reduce((M,D)=>D.box.options&&D.box.options.display===!1?M:M+1,0)||1,x=Object.freeze({outerWidth:o,outerHeight:t,padding:i,availableWidth:s,availableHeight:d,vBoxMaxWidth:s/2/C,hBoxMaxHeight:d/2}),y=Object.assign({},i);t9(y,qr(n));let P=Object.assign({maxPadding:y,w:s,h:d,x:i.left,y:i.top},i),S=ume(f.concat(_),x);Bf(u.fullSize,P,x,S),Bf(f,P,x,S),Bf(_,P,x,S)&&Bf(f,P,x,S),gme(P),cR(u.leftAndTop,P,x,S),P.x+=P.w,P.y+=P.h,cR(u.rightAndBottom,P,x,S),e.chartArea={left:P.left,top:P.top,right:P.left+P.w,bottom:P.top+P.h,height:P.h,width:P.w},Jo(u.chartArea,M=>{let D=M.box;Object.assign(D,e.chartArea),D.update(P.w,P.h,{left:0,top:0,right:0,bottom:0})})}},mC=class{acquireContext(o,t){}releaseContext(o){return!1}addEventListener(o,t,n){}removeEventListener(o,t,n){}getDevicePixelRatio(){return 1}getMaximumSize(o,t,n,i){return t=Math.max(0,t||o.width),n=n||o.height,{width:t,height:Math.max(0,i?Math.floor(t/i):n)}}isAttached(o){return!0}updateConfig(o){}},uM=class extends mC{acquireContext(o){return o&&o.getContext&&o.getContext("2d")||null}updateConfig(o){o.options.animation=!1}},sC="$chartjs",Cme={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},pR=e=>e===null||e==="";function vme(e,o){let t=e.style,n=e.getAttribute("height"),i=e.getAttribute("width");if(e[sC]={initial:{height:n,width:i,style:{display:t.display,height:t.height,width:t.width}}},t.display=t.display||"block",t.boxSizing=t.boxSizing||"border-box",pR(i)){let s=W4(e,"width");s!==void 0&&(e.width=s)}if(pR(n))if(e.style.height==="")e.height=e.width/(o||2);else{let s=W4(e,"height");s!==void 0&&(e.height=s)}return e}var i9=UB?{passive:!0}:!1;function xme(e,o,t){e&&e.addEventListener(o,t,i9)}function bme(e,o,t){e&&e.canvas&&e.canvas.removeEventListener(o,t,i9)}function yme(e,o){let t=Cme[e.type]||e.type,{x:n,y:i}=qp(e,o);return{type:t,chart:o,native:e,x:n!==void 0?n:null,y:i!==void 0?i:null}}function dC(e,o){for(let t of e)if(t===o||t.contains(o))return!0}function Sme(e,o,t){let n=e.canvas,i=new MutationObserver(s=>{let d=!1;for(let u of s)d=d||dC(u.addedNodes,n),d=d&&!dC(u.removedNodes,n);d&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}function wme(e,o,t){let n=e.canvas,i=new MutationObserver(s=>{let d=!1;for(let u of s)d=d||dC(u.removedNodes,n),d=d&&!dC(u.addedNodes,n);d&&t()});return i.observe(document,{childList:!0,subtree:!0}),i}var Nf=new Map,mR=0;function n9(){let e=window.devicePixelRatio;e!==mR&&(mR=e,Nf.forEach((o,t)=>{t.currentDevicePixelRatio!==e&&o()}))}function Pme(e,o){Nf.size||window.addEventListener("resize",n9),Nf.set(e,o)}function Tme(e){Nf.delete(e),Nf.size||window.removeEventListener("resize",n9)}function Mme(e,o,t){let n=e.canvas,i=n&&eC(n);if(!i)return;let s=k4((u,f)=>{let _=i.clientWidth;t(u,f),_{let f=u[0],_=f.contentRect.width,C=f.contentRect.height;_===0&&C===0||s(_,C)});return d.observe(i),Pme(e,s),d}function aM(e,o,t){t&&t.disconnect(),o==="resize"&&Tme(e)}function Dme(e,o,t){let n=e.canvas,i=k4(s=>{e.ctx!==null&&t(yme(s,e))},e);return xme(n,o,i),i}var fM=class extends mC{acquireContext(o,t){let n=o&&o.getContext&&o.getContext("2d");return n&&n.canvas===o?(vme(o,t),n):null}releaseContext(o){let t=o.canvas;if(!t[sC])return!1;let n=t[sC].initial;["height","width"].forEach(s=>{let d=n[s];Co(d)?t.removeAttribute(s):t.setAttribute(s,d)});let i=n.style||{};return Object.keys(i).forEach(s=>{t.style[s]=i[s]}),t.width=t.width,delete t[sC],!0}addEventListener(o,t,n){this.removeEventListener(o,t);let i=o.$proxies||(o.$proxies={}),d={attach:Sme,detach:wme,resize:Mme}[t]||Dme;i[t]=d(o,t,n)}removeEventListener(o,t){let n=o.$proxies||(o.$proxies={}),i=n[t];if(!i)return;({attach:aM,detach:aM,resize:aM}[t]||bme)(o,t,i),n[t]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(o,t,n,i){return $B(o,t,n,i)}isAttached(o){let t=o&&eC(o);return!!(t&&t.isConnected)}};function Eme(e){return!Z_()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?uM:fM}var Rs=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(o){let{x:t,y:n}=this.getProps(["x","y"],o);return{x:t,y:n}}hasValue(){return Sd(this.x)&&Sd(this.y)}getProps(o,t){let n=this.$animations;if(!t||!n)return this;let i={};return o.forEach(s=>{i[s]=n[s]&&n[s].active()?n[s]._to:this[s]}),i}};function Ime(e,o){let t=e.options.ticks,n=Ome(e),i=Math.min(t.maxTicksLimit||n,n),s=t.major.enabled?Fme(o):[],d=s.length,u=s[0],f=s[d-1],_=[];if(d>i)return kme(o,_,s,d/i),_;let C=Ame(s,o,i);if(d>0){let x,y,P=d>1?Math.round((f-u)/(d-1)):null;for(nC(o,_,C,Co(P)?0:u-P,u),x=0,y=d-1;xi)return f}return Math.max(i,1)}function Fme(e){let o=[],t,n;for(t=0,n=e.length;te==="left"?"right":e==="right"?"left":e,dR=(e,o,t)=>o==="top"||o==="left"?e[o]+t:e[o]-t,uR=(e,o)=>Math.min(o||e,e);function fR(e,o){let t=[],n=e.length/o,i=e.length,s=0;for(;sd+u)))return f}function Lme(e,o){Jo(e,t=>{let n=t.gc,i=n.length/2,s;if(i>o){for(s=0;sn?n:t,n=i&&t>n?t:n,{min:yl(t,yl(n,t)),max:yl(n,yl(t,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let o=this.chart.data;return this.options.labels||(this.isHorizontal()?o.xLabels:o.yLabels)||o.labels||[]}getLabelItems(o=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(o))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){oa(this.options.beforeUpdate,[this])}update(o,t,n){let{beginAtZero:i,grace:s,ticks:d}=this.options,u=d.sampleSize;this.beforeUpdate(),this.maxWidth=o,this.maxHeight=t,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=VB(this,s,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let f=u=s||n<=1||!this.isHorizontal()){this.labelRotation=i;return}let C=this._getLabelSizes(),x=C.widest.width,y=C.highest.height,P=_r(this.chart.width-x,0,this.maxWidth);u=o.offset?this.maxWidth/n:P/(n-1),x+6>u&&(u=P/(n-(o.offset?.5:1)),f=this.maxHeight-Ff(o.grid)-t.padding-hR(o.title,this.chart.options.font),_=Math.sqrt(x*x+y*y),d=U_(Math.min(Math.asin(_r((C.highest.height+6)/u,-1,1)),Math.asin(_r(f/_,-1,1))-Math.asin(_r(y/_,-1,1)))),d=Math.max(i,Math.min(s,d))),this.labelRotation=d}afterCalculateLabelRotation(){oa(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){oa(this.options.beforeFit,[this])}fit(){let o={width:0,height:0},{chart:t,options:{ticks:n,title:i,grid:s}}=this,d=this._isVisible(),u=this.isHorizontal();if(d){let f=hR(i,t.options.font);if(u?(o.width=this.maxWidth,o.height=Ff(s)+f):(o.height=this.maxHeight,o.width=Ff(s)+f),n.display&&this.ticks.length){let{first:_,last:C,widest:x,highest:y}=this._getLabelSizes(),P=n.padding*2,S=ps(this.labelRotation),M=Math.cos(S),D=Math.sin(S);if(u){let k=n.mirror?0:D*x.width+M*y.height;o.height=Math.min(this.maxHeight,o.height+k+P)}else{let k=n.mirror?0:M*x.width+D*y.height;o.width=Math.min(this.maxWidth,o.width+k+P)}this._calculatePadding(_,C,D,M)}}this._handleMargins(),u?(this.width=this._length=t.width-this._margins.left-this._margins.right,this.height=o.height):(this.width=o.width,this.height=this._length=t.height-this._margins.top-this._margins.bottom)}_calculatePadding(o,t,n,i){let{ticks:{align:s,padding:d},position:u}=this.options,f=this.labelRotation!==0,_=u!=="top"&&this.axis==="x";if(this.isHorizontal()){let C=this.getPixelForTick(0)-this.left,x=this.right-this.getPixelForTick(this.ticks.length-1),y=0,P=0;f?_?(y=i*o.width,P=n*t.height):(y=n*o.height,P=i*t.width):s==="start"?P=t.width:s==="end"?y=o.width:s!=="inner"&&(y=o.width/2,P=t.width/2),this.paddingLeft=Math.max((y-C+d)*this.width/(this.width-C),0),this.paddingRight=Math.max((P-x+d)*this.width/(this.width-x),0)}else{let C=t.height/2,x=o.height/2;s==="start"?(C=0,x=o.height):s==="end"&&(C=t.height,x=0),this.paddingTop=C+d,this.paddingBottom=x+d}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){oa(this.options.afterFit,[this])}isHorizontal(){let{axis:o,position:t}=this.options;return t==="top"||t==="bottom"||o==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(o){this.beforeTickToLabelConversion(),this.generateTickLabels(o);let t,n;for(t=0,n=o.length;t({width:d[_e]||0,height:u[_e]||0});return{first:se(0),last:se(t-1),widest:se(ee),highest:se(ae),widths:d,heights:u}}getLabelForValue(o){return o}getPixelForValue(o,t){return NaN}getValueForPixel(o){}getPixelForTick(o){let t=this.ticks;return o<0||o>t.length-1?null:this.getPixelForValue(t[o].value)}getPixelForDecimal(o){this._reversePixels&&(o=1-o);let t=this._startPixel+o*this._length;return DB(this._alignToPixels?Np(this.chart,t,0):t)}getDecimalForPixel(o){let t=(o-this._startPixel)/this._length;return this._reversePixels?1-t:t}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:o,max:t}=this;return o<0&&t<0?t:o>0&&t>0?o:0}getContext(o){let t=this.ticks||[];if(o>=0&&ou*i?u/n:f/i:f*i0}_computeGridLineItems(o){let t=this.axis,n=this.chart,i=this.options,{grid:s,position:d,border:u}=i,f=s.offset,_=this.isHorizontal(),x=this.ticks.length+(f?1:0),y=Ff(s),P=[],S=u.setContext(this.getContext()),M=S.display?S.width:0,D=M/2,k=function(L){return Np(n,L,M)},z,U,J,re,ee,ae,se,_e,de,j,W,pe;if(d==="top")z=k(this.bottom),ae=this.bottom-y,_e=z-D,j=k(o.top)+D,pe=o.bottom;else if(d==="bottom")z=k(this.top),j=o.top,pe=k(o.bottom)-D,ae=z+D,_e=this.top+y;else if(d==="left")z=k(this.right),ee=this.right-y,se=z-D,de=k(o.left)+D,W=o.right;else if(d==="right")z=k(this.left),de=o.left,W=k(o.right)-D,ee=z+D,se=this.left+y;else if(t==="x"){if(d==="center")z=k((o.top+o.bottom)/2+.5);else if(bo(d)){let L=Object.keys(d)[0],N=d[L];z=k(this.chart.scales[L].getPixelForValue(N))}j=o.top,pe=o.bottom,ae=z+D,_e=ae+y}else if(t==="y"){if(d==="center")z=k((o.left+o.right)/2);else if(bo(d)){let L=Object.keys(d)[0],N=d[L];z=k(this.chart.scales[L].getPixelForValue(N))}ee=z-D,se=ee-y,de=o.left,W=o.right}let O=Kn(i.ticks.maxTicksLimit,x),B=Math.max(1,Math.ceil(x/O));for(U=0;U0&&(K-=te/2);break}be={left:K,top:Ae,width:te+ye.width,height:Ne+ye.height,color:B.backdropColor}}D.push({label:J,font:_e,textOffset:W,options:{rotation:M,color:N,strokeColor:G,strokeWidth:$,textAlign:ne,textBaseline:pe,translation:[re,ee],backdrop:be}})}return D}_getXAxisLabelAlignment(){let{position:o,ticks:t}=this.options;if(-ps(this.labelRotation))return o==="top"?"left":"right";let i="center";return t.align==="start"?i="left":t.align==="end"?i="right":t.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(o){let{position:t,ticks:{crossAlign:n,mirror:i,padding:s}}=this.options,d=this._getLabelSizes(),u=o+s,f=d.widest.width,_,C;return t==="left"?i?(C=this.right+s,n==="near"?_="left":n==="center"?(_="center",C+=f/2):(_="right",C+=f)):(C=this.right-u,n==="near"?_="right":n==="center"?(_="center",C-=f/2):(_="left",C=this.left)):t==="right"?i?(C=this.left+s,n==="near"?_="right":n==="center"?(_="center",C-=f/2):(_="left",C-=f)):(C=this.left+u,n==="near"?_="left":n==="center"?(_="center",C+=f/2):(_="right",C=this.right)):_="right",{textAlign:_,x:C}}_computeLabelArea(){if(this.options.ticks.mirror)return;let o=this.chart,t=this.options.position;if(t==="left"||t==="right")return{top:0,left:this.left,bottom:o.height,right:this.right};if(t==="top"||t==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:o.width}}drawBackground(){let{ctx:o,options:{backgroundColor:t},left:n,top:i,width:s,height:d}=this;t&&(o.save(),o.fillStyle=t,o.fillRect(n,i,s,d),o.restore())}getLineWidthForValue(o){let t=this.options.grid;if(!this._isVisible()||!t.display)return 0;let i=this.ticks.findIndex(s=>s.value===o);return i>=0?t.setContext(this.getContext(i)).lineWidth:0}drawGrid(o){let t=this.options.grid,n=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(o)),s,d,u=(f,_,C)=>{!C.width||!C.color||(n.save(),n.lineWidth=C.width,n.strokeStyle=C.color,n.setLineDash(C.borderDash||[]),n.lineDashOffset=C.borderDashOffset,n.beginPath(),n.moveTo(f.x,f.y),n.lineTo(_.x,_.y),n.stroke(),n.restore())};if(t.display)for(s=0,d=i.length;s{this.draw(s)}}]:[{z:n,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:t,draw:s=>{this.drawLabels(s)}}]}getMatchingVisibleMetas(o){let t=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",i=[],s,d;for(s=0,d=t.length;s{let n=t.split("."),i=n.pop(),s=[e].concat(n).join("."),d=o[t].split("."),u=d.pop(),f=d.join(".");ba.route(s,i,f,u)})}function $me(e){return"id"in e&&"defaults"in e}var hM=class{constructor(){this.controllers=new Q0(Hp,"datasets",!0),this.elements=new Q0(Rs,"elements"),this.plugins=new Q0(Object,"plugins"),this.scales=new Q0(Md,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...o){this._each("register",o)}remove(...o){this._each("unregister",o)}addControllers(...o){this._each("register",o,this.controllers)}addElements(...o){this._each("register",o,this.elements)}addPlugins(...o){this._each("register",o,this.plugins)}addScales(...o){this._each("register",o,this.scales)}getController(o){return this._get(o,this.controllers,"controller")}getElement(o){return this._get(o,this.elements,"element")}getPlugin(o){return this._get(o,this.plugins,"plugin")}getScale(o){return this._get(o,this.scales,"scale")}removeControllers(...o){this._each("unregister",o,this.controllers)}removeElements(...o){this._each("unregister",o,this.elements)}removePlugins(...o){this._each("unregister",o,this.plugins)}removeScales(...o){this._each("unregister",o,this.scales)}_each(o,t,n){[...t].forEach(i=>{let s=n||this._getRegistryForType(i);n||s.isForType(i)||s===this.plugins&&i.id?this._exec(o,s,i):Jo(i,d=>{let u=n||this._getRegistryForType(d);this._exec(o,u,d)})})}_exec(o,t,n){let i=$_(o);oa(n["before"+i],[],n),t[o](n),oa(n["after"+i],[],n)}_getRegistryForType(o){for(let t=0;ts.filter(u=>!d.some(f=>u.plugin.id===f.plugin.id));this._notify(i(t,n),o,"stop"),this._notify(i(n,t),o,"start")}};function Ume(e){let o={},t=[],n=Object.keys(fc.plugins.items);for(let s=0;s1&&gR(e[0].toLowerCase());if(n)return n}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function _R(e,o,t){if(t[o+"AxisID"]===e)return{axis:o}}function Zme(e,o){if(o.data&&o.data.datasets){let t=o.data.datasets.filter(n=>n.xAxisID===e||n.yAxisID===e);if(t.length)return _R(e,"x",t[0])||_R(e,"y",t[0])}return{}}function ede(e,o){let t=Rp[e.type]||{scales:{}},n=o.scales||{},i=_M(e.type,o),s=Object.create(null);return Object.keys(n).forEach(d=>{let u=n[d];if(!bo(u))return console.error(`Invalid scale configuration for scale: ${d}`);if(u._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${d}`);let f=CM(d,u,Zme(d,e),ba.scales[u.type]),_=Kme(f,i),C=t.scales||{};s[d]=q0(Object.create(null),[{axis:f},u,C[f],C[_]])}),e.data.datasets.forEach(d=>{let u=d.type||e.type,f=d.indexAxis||_M(u,o),C=(Rp[u]||{}).scales||{};Object.keys(C).forEach(x=>{let y=Jme(x,f),P=d[y+"AxisID"]||y;s[P]=s[P]||Object.create(null),q0(s[P],[{axis:y},n[P],C[x]])})}),Object.keys(s).forEach(d=>{let u=s[d];q0(u,[ba.scales[u.type],ba.scale])}),s}function o9(e){let o=e.options||(e.options={});o.plugins=Kn(o.plugins,{}),o.scales=ede(e,o)}function a9(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function tde(e){return e=e||{},e.data=a9(e.data),o9(e),e}var CR=new Map,r9=new Set;function oC(e,o){let t=CR.get(e);return t||(t=o(),CR.set(e,t),r9.add(t)),t}var kf=(e,o,t)=>{let n=Gc(o,t);n!==void 0&&e.add(n)},vM=class{constructor(o){this._config=tde(o),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(o){this._config.type=o}get data(){return this._config.data}set data(o){this._config.data=a9(o)}get options(){return this._config.options}set options(o){this._config.options=o}get plugins(){return this._config.plugins}update(){let o=this._config;this.clearCache(),o9(o)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(o){return oC(o,()=>[[`datasets.${o}`,""]])}datasetAnimationScopeKeys(o,t){return oC(`${o}.transition.${t}`,()=>[[`datasets.${o}.transitions.${t}`,`transitions.${t}`],[`datasets.${o}`,""]])}datasetElementScopeKeys(o,t){return oC(`${o}-${t}`,()=>[[`datasets.${o}.elements.${t}`,`datasets.${o}`,`elements.${t}`,""]])}pluginScopeKeys(o){let t=o.id,n=this.type;return oC(`${n}-plugin-${t}`,()=>[[`plugins.${t}`,...o.additionalOptionScopes||[]]])}_cachedScopes(o,t){let n=this._scopeCache,i=n.get(o);return(!i||t)&&(i=new Map,n.set(o,i)),i}getOptionScopes(o,t,n){let{options:i,type:s}=this,d=this._cachedScopes(o,n),u=d.get(t);if(u)return u;let f=new Set;t.forEach(C=>{o&&(f.add(o),C.forEach(x=>kf(f,o,x))),C.forEach(x=>kf(f,i,x)),C.forEach(x=>kf(f,Rp[s]||{},x)),C.forEach(x=>kf(f,ba,x)),C.forEach(x=>kf(f,Y_,x))});let _=Array.from(f);return _.length===0&&_.push(Object.create(null)),r9.has(t)&&d.set(t,_),_}chartOptionScopes(){let{options:o,type:t}=this;return[o,Rp[t]||{},ba.datasets[t]||{},{type:t},ba,Y_]}resolveNamedOptions(o,t,n,i=[""]){let s={$shared:!0},{resolver:d,subPrefixes:u}=vR(this._resolverCache,o,i),f=d;if(nde(d,t)){s.$shared=!1,n=zc(n)?n():n;let _=this.createResolver(o,n,u);f=yd(d,n,_)}for(let _ of t)s[_]=f[_];return s}createResolver(o,t,n=[""],i){let{resolver:s}=vR(this._resolverCache,o,n);return bo(t)?yd(s,t,void 0,i):s}};function vR(e,o,t){let n=e.get(o);n||(n=new Map,e.set(o,n));let i=t.join(),s=n.get(i);return s||(s={resolver:X_(o,t),subPrefixes:t.filter(u=>!u.toLowerCase().includes("hover"))},n.set(i,s)),s}var ide=e=>bo(e)&&Object.getOwnPropertyNames(e).some(o=>zc(e[o]));function nde(e,o){let{isScriptable:t,isIndexable:n}=H4(e);for(let i of o){let s=t(i),d=n(i),u=(d||s)&&e[i];if(s&&(zc(u)||ide(u))||d&&ga(u))return!0}return!1}var ode="4.5.1",ade=["top","bottom","left","right","chartArea"];function xR(e,o){return e==="top"||e==="bottom"||ade.indexOf(e)===-1&&o==="x"}function bR(e,o){return function(t,n){return t[e]===n[e]?t[o]-n[o]:t[e]-n[e]}}function yR(e){let o=e.chart,t=o.options.animation;o.notifyPlugins("afterRender"),oa(t&&t.onComplete,[e],o)}function rde(e){let o=e.chart,t=o.options.animation;oa(t&&t.onProgress,[e],o)}function l9(e){return Z_()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var cC={},SR=e=>{let o=l9(e);return Object.values(cC).filter(t=>t.canvas===o).pop()};function lde(e,o,t){let n=Object.keys(e);for(let i of n){let s=+i;if(s>=o){let d=e[i];delete e[i],(t>0||s>o)&&(e[s+t]=d)}}}function sde(e,o,t,n){return!t||e.type==="mouseout"?null:n?o:e}var Pl=(()=>{class e{static defaults=ba;static instances=cC;static overrides=Rp;static registry=fc;static version=ode;static getChart=SR;static register(...t){fc.add(...t),wR()}static unregister(...t){fc.remove(...t),wR()}constructor(t,n){let i=this.config=new vM(n),s=l9(t),d=SR(s);if(d)throw new Error("Canvas is already in use. Chart with ID '"+d.id+"' must be destroyed before the canvas with ID '"+d.canvas.id+"' can be reused.");let u=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Eme(s)),this.platform.updateConfig(i);let f=this.platform.acquireContext(s,u.aspectRatio),_=f&&f.canvas,C=_&&_.height,x=_&&_.width;if(this.id=yB(),this.ctx=f,this.canvas=_,this.width=x,this.height=C,this._options=u,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new gM,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=FB(y=>this.update(y),u.resizeDelay||0),this._dataChanges=[],cC[this.id]=this,!f||!_){console.error("Failed to create chart: can't acquire context from the given item");return}$c.listen(this,"complete",yR),$c.listen(this,"progress",rde),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:n},width:i,height:s,_aspectRatio:d}=this;return Co(t)?n&&d?d:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return fc}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():U4(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return V4(this.canvas,this.ctx),this}stop(){return $c.stop(this),this}resize(t,n){$c.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){let i=this.options,s=this.canvas,d=i.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(s,t,n,d),f=i.devicePixelRatio||this.platform.getDevicePixelRatio(),_=this.width?"resize":"attach";this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,U4(this,f,!0)&&(this.notifyPlugins("resize",{size:u}),oa(i.onResize,[this,u],this),this.attached&&this._doResize(_)&&this.render())}ensureScalesHaveIDs(){let n=this.options.scales||{};Jo(n,(i,s)=>{i.id=s})}buildOrUpdateScales(){let t=this.options,n=t.scales,i=this.scales,s=Object.keys(i).reduce((u,f)=>(u[f]=!1,u),{}),d=[];n&&(d=d.concat(Object.keys(n).map(u=>{let f=n[u],_=CM(u,f),C=_==="r",x=_==="x";return{options:f,dposition:C?"chartArea":x?"bottom":"left",dtype:C?"radialLinear":x?"category":"linear"}}))),Jo(d,u=>{let f=u.options,_=f.id,C=CM(_,f),x=Kn(f.type,u.dtype);(f.position===void 0||xR(f.position,C)!==xR(u.dposition))&&(f.position=u.dposition),s[_]=!0;let y=null;if(_ in i&&i[_].type===x)y=i[_];else{let P=fc.getScale(x);y=new P({id:_,type:x,ctx:this.ctx,chart:this}),i[y.id]=y}y.init(f,t)}),Jo(s,(u,f)=>{u||delete i[f]}),Jo(i,u=>{Jr.configure(this,u,u.options),Jr.addBox(this,u)})}_updateMetasets(){let t=this._metasets,n=this.data.datasets.length,i=t.length;if(t.sort((s,d)=>s.index-d.index),i>n){for(let s=n;sn.length&&delete this._stacks,t.forEach((i,s)=>{n.filter(d=>d===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){let t=[],n=this.data.datasets,i,s;for(this._removeUnreferencedMetasets(),i=0,s=n.length;i{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let n=this.config;n.update();let i=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let d=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let u=0;for(let C=0,x=this.data.datasets.length;C{C.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(bR("z","_idx"));let{_active:f,_lastEvent:_}=this;_?this._eventHandler(_,!0):f.length&&this._updateHoverStyles(f,f,!0),this.render()}_updateScales(){Jo(this.scales,t=>{Jr.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,n=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!T4(n,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(let{method:i,start:s,count:d}of n){let u=i==="_removeElements"?-d:d;lde(t,s,u)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let n=this.data.datasets.length,i=d=>new Set(t.filter(u=>u[0]===d).map((u,f)=>f+","+u.splice(1).join(","))),s=i(0);for(let d=1;dd.split(",")).map(d=>({method:d[1],start:+d[2],count:+d[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Jr.update(this,this.width,this.height,t);let n=this.chartArea,i=n.width<=0||n.height<=0;this._layers=[],Jo(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,d)=>{s._idx=d}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,i=this.data.datasets.length;n=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let n=this.ctx,i={meta:t,index:t.index,cancelable:!0},s=X4(this,t);this.notifyPlugins("beforeDatasetDraw",i)!==!1&&(s&&Df(n,s),t.controller.draw(),s&&Ef(n),i.cancelable=!1,this.notifyPlugins("afterDatasetDraw",i))}isPointInArea(t){return pc(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,i,s){let d=pme.modes[n];return typeof d=="function"?d(this,t,i,s):[]}getDatasetMeta(t){let n=this.data.datasets[t],i=this._metasets,s=i.filter(d=>d&&d._dataset===n).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=jc(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let n=this.data.datasets[t];if(!n)return!1;let i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!n.hidden}setDatasetVisibility(t,n){let i=this.getDatasetMeta(t);i.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,i){let s=i?"show":"hide",d=this.getDatasetMeta(t),u=d.controller._resolveAnimations(void 0,s);z0(n)?(d.data[n].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),u.update(d,{visible:i}),this.update(f=>f.datasetIndex===t?s:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){let n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),$c.remove(this),t=0,n=this.data.datasets.length;t{n.addEventListener(this,d,u),t[d]=u},s=(d,u,f)=>{d.offsetX=u,d.offsetY=f,this._eventHandler(d)};Jo(this.options.events,d=>i(d,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,n=this.platform,i=(_,C)=>{n.addEventListener(this,_,C),t[_]=C},s=(_,C)=>{t[_]&&(n.removeEventListener(this,_,C),delete t[_])},d=(_,C)=>{this.canvas&&this.resize(_,C)},u,f=()=>{s("attach",f),this.attached=!0,this.resize(),i("resize",d),i("detach",u)};u=()=>{this.attached=!1,s("resize",d),this._stop(),this._resize(0,0),i("attach",f)},n.isAttached(this.canvas)?f():u()}unbindEvents(){Jo(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},Jo(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,i){let s=i?"set":"remove",d,u,f,_;for(n==="dataset"&&(d=this.getDatasetMeta(t[0].datasetIndex),d.controller["_"+s+"DatasetHoverStyle"]()),f=0,_=t.length;f<_;++f){u=t[f];let C=u&&this.getDatasetMeta(u.datasetIndex).controller;C&&C[s+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let n=this._active||[],i=t.map(({datasetIndex:d,index:u})=>{let f=this.getDatasetMeta(d);if(!f)throw new Error("No dataset found at index "+d);return{datasetIndex:d,element:f.data[u],index:u}});!Tf(i,n)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,n))}notifyPlugins(t,n,i){return this._plugins.notify(this,t,n,i)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,i){let s=this.options.hover,d=(_,C)=>_.filter(x=>!C.some(y=>x.datasetIndex===y.datasetIndex&&x.index===y.index)),u=d(n,t),f=i?t:d(t,n);u.length&&this.updateHoverStyle(u,s.mode,!1),f.length&&s.mode&&this.updateHoverStyle(f,s.mode,!0)}_eventHandler(t,n){let i={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},s=u=>(u.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;let d=this._handleEvent(t,n,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(d||i.changed)&&this.render(),this}_handleEvent(t,n,i){let{_active:s=[],options:d}=this,u=n,f=this._getActiveElements(t,s,i,u),_=PB(t),C=sde(t,this._lastEvent,i,_);i&&(this._lastEvent=null,oa(d.onHover,[t,f,this],this),_&&oa(d.onClick,[t,f,this],this));let x=!Tf(f,s);return(x||n)&&(this._active=f,this._updateHoverStyles(f,s,n)),this._lastEvent=C,x}_getActiveElements(t,n,i,s){if(t.type==="mouseout")return[];if(!i)return n;let d=this.options.hover;return this.getElementsAtEventForMode(t,d.mode,d,s)}}return e})();function wR(){return Jo(Pl.instances,e=>e._plugins.invalidate())}function cde(e,o,t){let{startAngle:n,x:i,y:s,outerRadius:d,innerRadius:u,options:f}=o,{borderWidth:_,borderJoinStyle:C}=f,x=Math.min(_/d,Lr(n-t));if(e.beginPath(),e.arc(i,s,d-_/2,n+x/2,t-x/2),u>0){let y=Math.min(_/u,Lr(n-t));e.arc(i,s,u+_/2,t-y/2,n+y/2,!0)}else{let y=Math.min(_/2,d*Lr(n-t));if(C==="round")e.arc(i,s,y,t-Bo/2,n+Bo/2,!0);else if(C==="bevel"){let P=2*y*y,S=-P*Math.cos(t+Bo/2)+i,M=-P*Math.sin(t+Bo/2)+s,D=P*Math.cos(n+Bo/2)+i,k=P*Math.sin(n+Bo/2)+s;e.lineTo(S,M),e.lineTo(D,k)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function pde(e,o,t){let{startAngle:n,pixelMargin:i,x:s,y:d,outerRadius:u,innerRadius:f}=o,_=i/u;e.beginPath(),e.arc(s,d,u,n-_,t+_),f>i?(_=i/f,e.arc(s,d,f,t+_,n-_,!0)):e.arc(s,d,i,t+za,n-za),e.closePath(),e.clip()}function mde(e){return K_(e,["outerStart","outerEnd","innerStart","innerEnd"])}function dde(e,o,t,n){let i=mde(e.options.borderRadius),s=(t-o)/2,d=Math.min(s,n*o/2),u=f=>{let _=(t-Math.min(s,f))*n/2;return _r(f,0,Math.min(s,_))};return{outerStart:u(i.outerStart),outerEnd:u(i.outerEnd),innerStart:_r(i.innerStart,0,d),innerEnd:_r(i.innerEnd,0,d)}}function W0(e,o,t,n){return{x:t+e*Math.cos(o),y:n+e*Math.sin(o)}}function uC(e,o,t,n,i,s){let{x:d,y:u,startAngle:f,pixelMargin:_,innerRadius:C}=o,x=Math.max(o.outerRadius+n+t-_,0),y=C>0?C+n+t+_:0,P=0,S=i-f;if(n){let B=C>0?C-n:0,L=x>0?x-n:0,N=(B+L)/2,G=N!==0?S*N/(N+n):S;P=(S-G)/2}let M=Math.max(.001,S*x-t/Bo)/x,D=(S-M)/2,k=f+D+P,z=i-D-P,{outerStart:U,outerEnd:J,innerStart:re,innerEnd:ee}=dde(o,y,x,z-k),ae=x-U,se=x-J,_e=k+U/ae,de=z-J/se,j=y+re,W=y+ee,pe=k+re/j,O=z-ee/W;if(e.beginPath(),s){let B=(_e+de)/2;if(e.arc(d,u,x,_e,B),e.arc(d,u,x,B,de),J>0){let $=W0(se,de,d,u);e.arc($.x,$.y,J,de,z+za)}let L=W0(W,z,d,u);if(e.lineTo(L.x,L.y),ee>0){let $=W0(W,O,d,u);e.arc($.x,$.y,ee,z+za,O+Math.PI)}let N=(z-ee/y+(k+re/y))/2;if(e.arc(d,u,y,z-ee/y,N,!0),e.arc(d,u,y,N,k+re/y,!0),re>0){let $=W0(j,pe,d,u);e.arc($.x,$.y,re,pe+Math.PI,k-za)}let G=W0(ae,k,d,u);if(e.lineTo(G.x,G.y),U>0){let $=W0(ae,_e,d,u);e.arc($.x,$.y,U,k-za,_e)}}else{e.moveTo(d,u);let B=Math.cos(_e)*x+d,L=Math.sin(_e)*x+u;e.lineTo(B,L);let N=Math.cos(de)*x+d,G=Math.sin(de)*x+u;e.lineTo(N,G)}e.closePath()}function ude(e,o,t,n,i){let{fullCircles:s,startAngle:d,circumference:u}=o,f=o.endAngle;if(s){uC(e,o,t,n,f,i);for(let _=0;_=Bo&&P===0&&C!=="miter"&&cde(e,o,M),s||(uC(e,o,t,n,M,i),e.stroke())}var xM=class extends Rs{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:o=>o!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(o){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,o&&Object.assign(this,o)}inRange(o,t,n){let i=this.getProps(["x","y"],n),{angle:s,distance:d}=I4(i,{x:o,y:t}),{startAngle:u,endAngle:f,innerRadius:_,outerRadius:C,circumference:x}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),y=(this.options.spacing+this.options.borderWidth)/2,P=Kn(x,f-u),S=G0(s,u,f)&&u!==f,M=P>=_a||S,D=dc(d,_+y,C+y);return M&&D}getCenterPoint(o){let{x:t,y:n,startAngle:i,endAngle:s,innerRadius:d,outerRadius:u}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],o),{offset:f,spacing:_}=this.options,C=(i+s)/2,x=(d+u+_+f)/2;return{x:t+Math.cos(C)*x,y:n+Math.sin(C)*x}}tooltipPosition(o){return this.getCenterPoint(o)}draw(o){let{options:t,circumference:n}=this,i=(t.offset||0)/4,s=(t.spacing||0)/2,d=t.circular;if(this.pixelMargin=t.borderAlign==="inner"?.33:0,this.fullCircles=n>_a?Math.floor(n/_a):0,n===0||this.innerRadius<0||this.outerRadius<0)return;o.save();let u=(this.startAngle+this.endAngle)/2;o.translate(Math.cos(u)*i,Math.sin(u)*i);let f=1-Math.sin(Math.min(Bo,n||0)),_=i*f;o.fillStyle=t.backgroundColor,o.strokeStyle=t.borderColor,ude(o,this,_,s,d),fde(o,this,_,s,d),o.restore()}};function s9(e,o,t=o){e.lineCap=Kn(t.borderCapStyle,o.borderCapStyle),e.setLineDash(Kn(t.borderDash,o.borderDash)),e.lineDashOffset=Kn(t.borderDashOffset,o.borderDashOffset),e.lineJoin=Kn(t.borderJoinStyle,o.borderJoinStyle),e.lineWidth=Kn(t.borderWidth,o.borderWidth),e.strokeStyle=Kn(t.borderColor,o.borderColor)}function hde(e,o,t){e.lineTo(t.x,t.y)}function gde(e){return e.stepped?NB:e.tension||e.cubicInterpolationMode==="monotone"?LB:hde}function c9(e,o,t={}){let n=e.length,{start:i=0,end:s=n-1}=t,{start:d,end:u}=o,f=Math.max(i,d),_=Math.min(s,u),C=iu&&s>u;return{count:n,start:f,loop:o.loop,ilen:_(d+(_?u-J:J))%s,U=()=>{M!==D&&(e.lineTo(C,D),e.lineTo(C,M),e.lineTo(C,k))};for(f&&(P=i[z(0)],e.moveTo(P.x,P.y)),y=0;y<=u;++y){if(P=i[z(y)],P.skip)continue;let J=P.x,re=P.y,ee=J|0;ee===S?(reD&&(D=re),C=(x*C+J)/++x):(U(),e.lineTo(J,re),S=ee,x=0,M=D=re),k=re}U()}function bM(e){let o=e.options,t=o.borderDash&&o.borderDash.length;return!e._decimated&&!e._loop&&!o.tension&&o.cubicInterpolationMode!=="monotone"&&!o.stepped&&!t?Cde:_de}function vde(e){return e.stepped?WB:e.tension||e.cubicInterpolationMode==="monotone"?QB:kp}function xde(e,o,t,n){let i=o._path;i||(i=o._path=new Path2D,o.path(i,t,n)&&i.closePath()),s9(e,o.options),e.stroke(i)}function bde(e,o,t,n){let{segments:i,options:s}=o,d=bM(o);for(let u of i)s9(e,s,u.style),e.beginPath(),d(e,o,u,{start:t,end:t+n-1})&&e.closePath(),e.stroke()}var yde=typeof Path2D=="function";function Sde(e,o,t,n){yde&&!o.options.segment?xde(e,o,t,n):bde(e,o,t,n)}var gC=(()=>{class e extends Rs{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){let i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){let s=i.spanGaps?this._loop:this._fullLoop;jB(this._points,i,t,s,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=JB(this,this.options.segment))}first(){let t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){let t=this.segments,n=this.points,i=t.length;return i&&n[t[i-1].end]}interpolate(t,n){let i=this.options,s=t[n],d=this.points,u=K4(this,{property:n,start:s,end:s});if(!u.length)return;let f=[],_=vde(i),C,x;for(C=0,x=u.length;C{class e extends Rs{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,n,i){let s=this.options,{x:d,y:u}=this.getProps(["x","y"],i);return Math.pow(t-d,2)+Math.pow(n-u,2)e.replace("rgb(","rgba(").replace(")",", 0.5)"));function m9(e){return SM[e%SM.length]}function d9(e){return TR[e%TR.length]}function Ode(e,o){return e.borderColor=m9(o),e.backgroundColor=d9(o),++o}function Ade(e,o){return e.backgroundColor=e.data.map(()=>m9(o++)),o}function Fde(e,o){return e.backgroundColor=e.data.map(()=>d9(o++)),o}function kde(e){let o=0;return(t,n)=>{let i=e.getDatasetMeta(n).controller;i instanceof OM?o=Ade(t,o):i instanceof ZR?o=Fde(t,o):i&&(o=Ode(t,o))}}function MR(e){let o;for(o in e)if(e[o].borderColor||e[o].backgroundColor)return!0;return!1}function Bde(e){return e&&(e.borderColor||e.backgroundColor)}function Rde(){return ba.borderColor!=="rgba(0,0,0,0.1)"||ba.backgroundColor!=="rgba(0,0,0,0.1)"}var Nde={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,o,t){if(!t.enabled)return;let{data:{datasets:n},options:i}=e.config,{elements:s}=i,d=MR(n)||Bde(i)||s&&MR(s)||Rde();if(!t.forceOverride&&d)return;let u=kde(e);n.forEach(u)}};function Lde(e,o,t,n,i){let s=i.samples||n;if(s>=t)return e.slice(o,o+t);let d=[],u=(t-2)/(s-2),f=0,_=o+t-1,C=o,x,y,P,S,M;for(d[f++]=e[C],x=0;xP&&(P=S,y=e[z],M=z);d[f++]=y,C=M}return d[f++]=e[_],d}function Vde(e,o,t,n){let i=0,s=0,d,u,f,_,C,x,y,P,S,M,D=[],k=o+t-1,z=e[o].x,J=e[k].x-z;for(d=o;dM&&(M=_,y=d),i=(s*i+u.x)/++s;else{let ee=d-1;if(!Co(x)&&!Co(y)){let ae=Math.min(x,y),se=Math.max(x,y);ae!==P&&ae!==ee&&D.push(qt(at({},e[ae]),{x:i})),se!==P&&se!==ee&&D.push(qt(at({},e[se]),{x:i}))}d>0&&ee!==P&&D.push(e[ee]),D.push(u),C=re,s=0,S=M=_,x=y=P=d}}return D}function u9(e){if(e._decimated){let o=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:o})}}function DR(e){e.data.datasets.forEach(o=>{u9(o)})}function qde(e,o){let t=o.length,n=0,i,{iScale:s}=e,{min:d,max:u,minDefined:f,maxDefined:_}=s.getUserBounds();return f&&(n=_r(cc(o,s.axis,d).lo,0,t-1)),_?i=_r(cc(o,s.axis,u).hi+1,n,t)-n:i=t-n,{start:n,count:i}}var zde={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,o,t)=>{if(!t.enabled){DR(e);return}let n=e.width;e.data.datasets.forEach((i,s)=>{let{_data:d,indexAxis:u}=i,f=e.getDatasetMeta(s),_=d||i.data;if(U0([u,e.options.indexAxis])==="y"||!f.controller.supportsDecimation)return;let C=e.scales[f.xAxisID];if(C.type!=="linear"&&C.type!=="time"||e.options.parsing)return;let{start:x,count:y}=qde(f,_),P=t.threshold||4*n;if(y<=P){u9(i);return}Co(d)&&(i._data=_,delete i.data,Object.defineProperty(i,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(M){this._data=M}}));let S;switch(t.algorithm){case"lttb":S=Lde(_,x,y,n,t);break;case"min-max":S=Vde(_,x,y,n);break;default:throw new Error(`Unsupported decimation algorithm '${t.algorithm}'`)}i._decimated=S})},destroy(e){DR(e)}};function Hde(e,o,t){let n=e.segments,i=e.points,s=o.points,d=[];for(let u of n){let{start:f,end:_}=u;_=_C(f,_,i);let C=wM(t,i[f],i[_],u.loop);if(!o.segments){d.push({source:u,target:C,start:i[f],end:i[_]});continue}let x=K4(o,C);for(let y of x){let P=wM(t,s[y.start],s[y.end],y.loop),S=J4(u,i,P);for(let M of S)d.push({source:M,target:y,start:{[t]:ER(C,P,"start",Math.max)},end:{[t]:ER(C,P,"end",Math.min)}})}}return d}function wM(e,o,t,n){if(n)return;let i=o[e],s=t[e];return e==="angle"&&(i=Lr(i),s=Lr(s)),{property:e,start:i,end:s}}function Gde(e,o){let{x:t=null,y:n=null}=e||{},i=o.points,s=[];return o.segments.forEach(({start:d,end:u})=>{u=_C(d,u,i);let f=i[d],_=i[u];n!==null?(s.push({x:f.x,y:n}),s.push({x:_.x,y:n})):t!==null&&(s.push({x:t,y:f.y}),s.push({x:t,y:_.y}))}),s}function _C(e,o,t){for(;o>e;o--){let n=t[o];if(!isNaN(n.x)&&!isNaN(n.y))break}return o}function ER(e,o,t,n){return e&&o?n(e[t],o[t]):e?e[t]:o?o[t]:0}function f9(e,o){let t=[],n=!1;return ga(e)?(n=!0,t=e):t=Gde(e,o),t.length?new gC({points:t,options:{tension:0},_loop:n,_fullLoop:n}):null}function IR(e){return e&&e.fill!==!1}function jde(e,o,t){let i=e[o].fill,s=[o],d;if(!t)return i;for(;i!==!1&&s.indexOf(i)===-1;){if(!Fa(i))return i;if(d=e[i],!d)return!1;if(d.visible)return i;s.push(i),i=d.fill}return!1}function $de(e,o,t){let n=Yde(e);if(bo(n))return isNaN(n.value)?!1:n;let i=parseFloat(n);return Fa(i)&&Math.floor(i)===i?Ude(n[0],o,i,t):["origin","start","end","stack","shape"].indexOf(n)>=0&&n}function Ude(e,o,t,n){return(e==="-"||e==="+")&&(t=o+t),t===o||t<0||t>=n?!1:t}function Wde(e,o){let t=null;return e==="start"?t=o.bottom:e==="end"?t=o.top:bo(e)?t=o.getPixelForValue(e.value):o.getBasePixel&&(t=o.getBasePixel()),t}function Qde(e,o,t){let n;return e==="start"?n=t:e==="end"?n=o.options.reverse?o.min:o.max:bo(e)?n=e.value:n=o.getBaseValue(),n}function Yde(e){let o=e.options,t=o.fill,n=Kn(t&&t.target,t);return n===void 0&&(n=!!o.backgroundColor),n===!1||n===null?!1:n===!0?"origin":n}function Jde(e){let{scale:o,index:t,line:n}=e,i=[],s=n.segments,d=n.points,u=Kde(o,t);u.push(f9({x:null,y:o.bottom},n));for(let f=0;f=0;--d){let u=i[d].$filler;u&&(u.line.updateControlPoints(s,u.axis),n&&u.fill&&sM(e.ctx,u,s))}},beforeDatasetsDraw(e,o,t){if(t.drawTime!=="beforeDatasetsDraw")return;let n=e.getSortedVisibleDatasetMetas();for(let i=n.length-1;i>=0;--i){let s=n[i].$filler;IR(s)&&sM(e.ctx,s,e.chartArea)}},beforeDatasetDraw(e,o,t){let n=o.meta.$filler;!IR(n)||t.drawTime!=="beforeDatasetDraw"||sM(e.ctx,n,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}},kR=(e,o)=>{let{boxHeight:t=o,boxWidth:n=o}=e;return e.usePointStyle&&(t=Math.min(t,o),n=e.pointStyleWidth||Math.min(n,o)),{boxWidth:n,boxHeight:t,itemHeight:Math.max(o,t)}},s0e=(e,o)=>e!==null&&o!==null&&e.datasetIndex===o.datasetIndex&&e.index===o.index,hC=class extends Rs{constructor(o){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=o.chart,this.options=o.options,this.ctx=o.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(o,t,n){this.maxWidth=o,this.maxHeight=t,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){let o=this.options.labels||{},t=oa(o.generateLabels,[this.chart],this)||[];o.filter&&(t=t.filter(n=>o.filter(n,this.chart.data))),o.sort&&(t=t.sort((n,i)=>o.sort(n,i,this.chart.data))),this.options.reverse&&t.reverse(),this.legendItems=t}fit(){let{options:o,ctx:t}=this;if(!o.display){this.width=this.height=0;return}let n=o.labels,i=sr(n.font),s=i.size,d=this._computeTitleHeight(),{boxWidth:u,itemHeight:f}=kR(n,s),_,C;t.font=i.string,this.isHorizontal()?(_=this.maxWidth,C=this._fitRows(d,s,u,f)+10):(C=this.maxHeight,_=this._fitCols(d,i,u,f)+10),this.width=Math.min(_,o.maxWidth||this.maxWidth),this.height=Math.min(C,o.maxHeight||this.maxHeight)}_fitRows(o,t,n,i){let{ctx:s,maxWidth:d,options:{labels:{padding:u}}}=this,f=this.legendHitBoxes=[],_=this.lineWidths=[0],C=i+u,x=o;s.textAlign="left",s.textBaseline="middle";let y=-1,P=-C;return this.legendItems.forEach((S,M)=>{let D=n+t/2+s.measureText(S.text).width;(M===0||_[_.length-1]+D+2*u>d)&&(x+=C,_[_.length-(M>0?0:1)]=0,P+=C,y++),f[M]={left:0,top:P,row:y,width:D,height:i},_[_.length-1]+=D+u}),x}_fitCols(o,t,n,i){let{ctx:s,maxHeight:d,options:{labels:{padding:u}}}=this,f=this.legendHitBoxes=[],_=this.columnSizes=[],C=d-o,x=u,y=0,P=0,S=0,M=0;return this.legendItems.forEach((D,k)=>{let{itemWidth:z,itemHeight:U}=c0e(n,t,s,D,i);k>0&&P+U+2*u>C&&(x+=y+u,_.push({width:y,height:P}),S+=y+u,M++,y=P=0),f[k]={left:S,top:P,col:M,width:z,height:U},y=Math.max(y,z),P+=U+u}),x+=y,_.push({width:y,height:P}),x}adjustHitBoxes(){if(!this.options.display)return;let o=this._computeTitleHeight(),{legendHitBoxes:t,options:{align:n,labels:{padding:i},rtl:s}}=this,d=wd(s,this.left,this.width);if(this.isHorizontal()){let u=0,f=Vr(n,this.left+i,this.right-this.lineWidths[u]);for(let _ of t)u!==_.row&&(u=_.row,f=Vr(n,this.left+i,this.right-this.lineWidths[u])),_.top+=this.top+o+i,_.left=d.leftForLtr(d.x(f),_.width),f+=_.width+i}else{let u=0,f=Vr(n,this.top+o+i,this.bottom-this.columnSizes[u].height);for(let _ of t)_.col!==u&&(u=_.col,f=Vr(n,this.top+o+i,this.bottom-this.columnSizes[u].height)),_.top=f,_.left+=this.left+i,_.left=d.leftForLtr(d.x(_.left),_.width),f+=_.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let o=this.ctx;Df(o,this),this._draw(),Ef(o)}}_draw(){let{options:o,columnSizes:t,lineWidths:n,ctx:i}=this,{align:s,labels:d}=o,u=ba.color,f=wd(o.rtl,this.left,this.width),_=sr(d.font),{padding:C}=d,x=_.size,y=x/2,P;this.drawTitle(),i.textAlign=f.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=_.string;let{boxWidth:S,boxHeight:M,itemHeight:D}=kR(d,x),k=function(ee,ae,se){if(isNaN(S)||S<=0||isNaN(M)||M<0)return;i.save();let _e=Kn(se.lineWidth,1);if(i.fillStyle=Kn(se.fillStyle,u),i.lineCap=Kn(se.lineCap,"butt"),i.lineDashOffset=Kn(se.lineDashOffset,0),i.lineJoin=Kn(se.lineJoin,"miter"),i.lineWidth=_e,i.strokeStyle=Kn(se.strokeStyle,u),i.setLineDash(Kn(se.lineDash,[])),d.usePointStyle){let de={radius:M*Math.SQRT2/2,pointStyle:se.pointStyle,rotation:se.rotation,borderWidth:_e},j=f.xPlus(ee,S/2),W=ae+y;q4(i,de,j,W,d.pointStyleWidth&&S)}else{let de=ae+Math.max((x-M)/2,0),j=f.leftForLtr(ee,S),W=Vp(se.borderRadius);i.beginPath(),Object.values(W).some(pe=>pe!==0)?$0(i,{x:j,y:de,w:S,h:M,radius:W}):i.rect(j,de,S,M),i.fill(),_e!==0&&i.stroke()}i.restore()},z=function(ee,ae,se){Lp(i,se.text,ee,ae+D/2,_,{strikethrough:se.hidden,textAlign:f.textAlign(se.textAlign)})},U=this.isHorizontal(),J=this._computeTitleHeight();U?P={x:Vr(s,this.left+C,this.right-n[0]),y:this.top+C+J,line:0}:P={x:this.left+C,y:Vr(s,this.top+J+C,this.bottom-t[0].height),line:0},Q4(this.ctx,o.textDirection);let re=D+C;this.legendItems.forEach((ee,ae)=>{i.strokeStyle=ee.fontColor,i.fillStyle=ee.fontColor;let se=i.measureText(ee.text).width,_e=f.textAlign(ee.textAlign||(ee.textAlign=d.textAlign)),de=S+y+se,j=P.x,W=P.y;f.setWidth(this.width),U?ae>0&&j+de+C>this.right&&(W=P.y+=re,P.line++,j=P.x=Vr(s,this.left+C,this.right-n[P.line])):ae>0&&W+re>this.bottom&&(j=P.x=j+t[P.line].width+C,P.line++,W=P.y=Vr(s,this.top+J+C,this.bottom-t[P.line].height));let pe=f.x(j);if(k(pe,W,ee),j=kB(_e,j+S+y,U?j+de:this.right,o.rtl),z(f.x(j),W,ee),U)P.x+=de+C;else if(typeof ee.text!="string"){let O=_.lineHeight;P.y+=h9(ee,O)+C}else P.y+=re}),Y4(this.ctx,o.textDirection)}drawTitle(){let o=this.options,t=o.title,n=sr(t.font),i=qr(t.padding);if(!t.display)return;let s=wd(o.rtl,this.left,this.width),d=this.ctx,u=t.position,f=n.size/2,_=i.top+f,C,x=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),C=this.top+_,x=Vr(o.align,x,this.right-y);else{let S=this.columnSizes.reduce((M,D)=>Math.max(M,D.height),0);C=_+Vr(o.align,this.top,this.bottom-S-o.labels.padding-this._computeTitleHeight())}let P=Vr(u,x,x+y);d.textAlign=s.textAlign(Q_(u)),d.textBaseline="middle",d.strokeStyle=t.color,d.fillStyle=t.color,d.font=n.string,Lp(d,t.text,P,C,n)}_computeTitleHeight(){let o=this.options.title,t=sr(o.font),n=qr(o.padding);return o.display?t.lineHeight+n.height:0}_getLegendItemAt(o,t){let n,i,s;if(dc(o,this.left,this.right)&&dc(t,this.top,this.bottom)){for(s=this.legendHitBoxes,n=0;ns.length>d.length?s:d)),o+t.size/2+n.measureText(i).width}function m0e(e,o,t){let n=e;return typeof o.text!="string"&&(n=h9(o,t)),n}function h9(e,o){let t=e.text?e.text.length:0;return o*t}function d0e(e,o){return!!((e==="mousemove"||e==="mouseout")&&(o.onHover||o.onLeave)||o.onClick&&(e==="click"||e==="mouseup"))}var u0e={id:"legend",_element:hC,start(e,o,t){let n=e.legend=new hC({ctx:e.ctx,options:t,chart:e});Jr.configure(e,n,t),Jr.addBox(e,n)},stop(e){Jr.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,o,t){let n=e.legend;Jr.configure(e,n,t),n.options=t},afterUpdate(e){let o=e.legend;o.buildLabels(),o.adjustHitBoxes()},afterEvent(e,o){o.replay||e.legend.handleEvent(o.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,o,t){let n=o.datasetIndex,i=t.chart;i.isDatasetVisible(n)?(i.hide(n),o.hidden=!0):(i.show(n),o.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let o=e.data.datasets,{labels:{usePointStyle:t,pointStyle:n,textAlign:i,color:s,useBorderRadius:d,borderRadius:u}}=e.legend.options;return e._getSortedDatasetMetas().map(f=>{let _=f.controller.getStyle(t?0:void 0),C=qr(_.borderWidth);return{text:o[f.index].label,fillStyle:_.backgroundColor,fontColor:s,hidden:!f.visible,lineCap:_.borderCapStyle,lineDash:_.borderDash,lineDashOffset:_.borderDashOffset,lineJoin:_.borderJoinStyle,lineWidth:(C.width+C.height)/4,strokeStyle:_.borderColor,pointStyle:n||_.pointStyle,rotation:_.rotation,textAlign:i||_.textAlign,borderRadius:d&&(u||_.borderRadius),datasetIndex:f.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}},Lf=class extends Rs{constructor(o){super(),this.chart=o.chart,this.options=o.options,this.ctx=o.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(o,t){let n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=o,this.height=this.bottom=t;let i=ga(n.text)?n.text.length:1;this._padding=qr(n.padding);let s=i*sr(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){let o=this.options.position;return o==="top"||o==="bottom"}_drawArgs(o){let{top:t,left:n,bottom:i,right:s,options:d}=this,u=d.align,f=0,_,C,x;return this.isHorizontal()?(C=Vr(u,n,s),x=t+o,_=s-n):(d.position==="left"?(C=n+o,x=Vr(u,i,t),f=Bo*-.5):(C=s-o,x=Vr(u,t,i),f=Bo*.5),_=i-t),{titleX:C,titleY:x,maxWidth:_,rotation:f}}draw(){let o=this.ctx,t=this.options;if(!t.display)return;let n=sr(t.font),s=n.lineHeight/2+this._padding.top,{titleX:d,titleY:u,maxWidth:f,rotation:_}=this._drawArgs(s);Lp(o,t.text,0,0,n,{color:t.color,maxWidth:f,rotation:_,textAlign:Q_(t.align),textBaseline:"middle",translation:[d,u]})}};function f0e(e,o){let t=new Lf({ctx:e.ctx,options:o,chart:e});Jr.configure(e,t,o),Jr.addBox(e,t),e.titleBlock=t}var h0e={id:"title",_element:Lf,start(e,o,t){f0e(e,t)},stop(e){let o=e.titleBlock;Jr.removeBox(e,o),delete e.titleBlock},beforeUpdate(e,o,t){let n=e.titleBlock;Jr.configure(e,n,t),n.options=t},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},aC=new WeakMap,g0e={id:"subtitle",start(e,o,t){let n=new Lf({ctx:e.ctx,options:t,chart:e});Jr.configure(e,n,t),Jr.addBox(e,n),aC.set(e,n)},stop(e){Jr.removeBox(e,aC.get(e)),aC.delete(e)},beforeUpdate(e,o,t){let n=aC.get(e);Jr.configure(e,n,t),n.options=t},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}},Rf={average(e){if(!e.length)return!1;let o,t,n=new Set,i=0,s=0;for(o=0,t=e.length;ou+f)/n.size,y:i/s}},nearest(e,o){if(!e.length)return!1;let t=o.x,n=o.y,i=Number.POSITIVE_INFINITY,s,d,u;for(s=0,d=e.length;s-1?e.split(` -`):e}function _0e(e,o){let{element:t,datasetIndex:n,index:i}=o,s=e.getDatasetMeta(n).controller,{label:d,value:u}=s.getLabelAndValue(i);return{chart:e,label:d,parsed:s.getParsed(i),raw:e.data.datasets[n].data[i],formattedValue:u,dataset:s.getDataset(),dataIndex:i,datasetIndex:n,element:t}}function BR(e,o){let t=e.chart.ctx,{body:n,footer:i,title:s}=e,{boxWidth:d,boxHeight:u}=o,f=sr(o.bodyFont),_=sr(o.titleFont),C=sr(o.footerFont),x=s.length,y=i.length,P=n.length,S=qr(o.padding),M=S.height,D=0,k=n.reduce((J,re)=>J+re.before.length+re.lines.length+re.after.length,0);if(k+=e.beforeBody.length+e.afterBody.length,x&&(M+=x*_.lineHeight+(x-1)*o.titleSpacing+o.titleMarginBottom),k){let J=o.displayColors?Math.max(u,f.lineHeight):f.lineHeight;M+=P*J+(k-P)*f.lineHeight+(k-1)*o.bodySpacing}y&&(M+=o.footerMarginTop+y*C.lineHeight+(y-1)*o.footerSpacing);let z=0,U=function(J){D=Math.max(D,t.measureText(J).width+z)};return t.save(),t.font=_.string,Jo(e.title,U),t.font=f.string,Jo(e.beforeBody.concat(e.afterBody),U),z=o.displayColors?d+2+o.boxPadding:0,Jo(n,J=>{Jo(J.before,U),Jo(J.lines,U),Jo(J.after,U)}),z=0,t.font=C.string,Jo(e.footer,U),t.restore(),D+=S.width,{width:D,height:M}}function C0e(e,o){let{y:t,height:n}=o;return te.height-n/2?"bottom":"center"}function v0e(e,o,t,n){let{x:i,width:s}=n,d=t.caretSize+t.caretPadding;if(e==="left"&&i+s+d>o.width||e==="right"&&i-s-d<0)return!0}function x0e(e,o,t,n){let{x:i,width:s}=t,{width:d,chartArea:{left:u,right:f}}=e,_="center";return n==="center"?_=i<=(u+f)/2?"left":"right":i<=s/2?_="left":i>=d-s/2&&(_="right"),v0e(_,e,o,t)&&(_="center"),_}function RR(e,o,t){let n=t.yAlign||o.yAlign||C0e(e,t);return{xAlign:t.xAlign||o.xAlign||x0e(e,o,t,n),yAlign:n}}function b0e(e,o){let{x:t,width:n}=e;return o==="right"?t-=n:o==="center"&&(t-=n/2),t}function y0e(e,o,t){let{y:n,height:i}=e;return o==="top"?n+=t:o==="bottom"?n-=i+t:n-=i/2,n}function NR(e,o,t,n){let{caretSize:i,caretPadding:s,cornerRadius:d}=e,{xAlign:u,yAlign:f}=t,_=i+s,{topLeft:C,topRight:x,bottomLeft:y,bottomRight:P}=Vp(d),S=b0e(o,u),M=y0e(o,f,_);return f==="center"?u==="left"?S+=_:u==="right"&&(S-=_):u==="left"?S-=Math.max(C,y)+i:u==="right"&&(S+=Math.max(x,P)+i),{x:_r(S,0,n.width-o.width),y:_r(M,0,n.height-o.height)}}function aC(e,o,t){let n=qr(t.padding);return o==="center"?e.x+e.width/2:o==="right"?e.x+e.width-n.right:e.x+n.left}function LR(e){return uc([],Uc(e))}function S0e(e,o,t){return jc(e,{tooltip:o,tooltipItems:t,type:"tooltip"})}function VR(e,o){let t=o&&o.dataset&&o.dataset.tooltip&&o.dataset.tooltip.callbacks;return t?e.override(t):e}var g9={beforeTitle:mc,title(e){if(e.length>0){let o=e[0],t=o.chart.data.labels,n=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return o.dataset.label||"";if(o.label)return o.label;if(n>0&&o.dataIndex"u"?g9[o].call(t,n):i}var qR=(()=>{class e extends Rs{static positioners=Rf;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,d=new cC(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(d)),d}getContext(){return this.$context||(this.$context=S0e(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:i}=n,s=Sl(i,"beforeTitle",this,t),d=Sl(i,"title",this,t),u=Sl(i,"afterTitle",this,t),f=[];return f=uc(f,Uc(s)),f=uc(f,Uc(d)),f=uc(f,Uc(u)),f}getBeforeBody(t,n){return LR(Sl(n.callbacks,"beforeBody",this,t))}getBody(t,n){let{callbacks:i}=n,s=[];return Jo(t,d=>{let u={before:[],lines:[],after:[]},f=VR(i,d);uc(u.before,Uc(Sl(f,"beforeLabel",this,d))),uc(u.lines,Sl(f,"label",this,d)),uc(u.after,Uc(Sl(f,"afterLabel",this,d))),s.push(u)}),s}getAfterBody(t,n){return LR(Sl(n.callbacks,"afterBody",this,t))}getFooter(t,n){let{callbacks:i}=n,s=Sl(i,"beforeFooter",this,t),d=Sl(i,"footer",this,t),u=Sl(i,"afterFooter",this,t),f=[];return f=uc(f,Uc(s)),f=uc(f,Uc(d)),f=uc(f,Uc(u)),f}_createItems(t){let n=this._active,i=this.chart.data,s=[],d=[],u=[],f=[],_,C;for(_=0,C=n.length;_t.filter(x,y,P,i))),t.itemSort&&(f=f.sort((x,y)=>t.itemSort(x,y,i))),Jo(f,x=>{let y=VR(t.callbacks,x);s.push(Sl(y,"labelColor",this,x)),d.push(Sl(y,"labelPointStyle",this,x)),u.push(Sl(y,"labelTextColor",this,x))}),this.labelColors=s,this.labelPointStyles=d,this.labelTextColors=u,this.dataPoints=f,f}update(t,n){let i=this.options.setContext(this.getContext()),s=this._active,d,u=[];if(!s.length)this.opacity!==0&&(d={opacity:0});else{let f=Rf[i.position].call(this,s,this._eventPosition);u=this._createItems(i),this.title=this.getTitle(u,i),this.beforeBody=this.getBeforeBody(u,i),this.body=this.getBody(u,i),this.afterBody=this.getAfterBody(u,i),this.footer=this.getFooter(u,i);let _=this._size=BR(this,i),C=Object.assign({},f,_),x=RR(this.chart,i,C),y=NR(i,C,x,this.chart);this.xAlign=x.xAlign,this.yAlign=x.yAlign,d={opacity:1,x:y.x,y:y.y,width:_.width,height:_.height,caretX:f.x,caretY:f.y}}this._tooltipItems=u,this.$context=void 0,d&&this._resolveAnimations().update(this,d),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){let d=this.getCaretPosition(t,i,s);n.lineTo(d.x1,d.y1),n.lineTo(d.x2,d.y2),n.lineTo(d.x3,d.y3)}getCaretPosition(t,n,i){let{xAlign:s,yAlign:d}=this,{caretSize:u,cornerRadius:f}=i,{topLeft:_,topRight:C,bottomLeft:x,bottomRight:y}=Vp(f),{x:P,y:S}=t,{width:M,height:D}=n,k,z,U,J,re,ee;return d==="center"?(re=S+D/2,s==="left"?(k=P,z=k-u,J=re+u,ee=re-u):(k=P+M,z=k+u,J=re-u,ee=re+u),U=k):(s==="left"?z=P+Math.max(_,x)+u:s==="right"?z=P+M-Math.max(C,y)-u:z=this.caretX,d==="top"?(J=S,re=J-u,k=z-u,U=z+u):(J=S+D,re=J+u,k=z+u,U=z-u),ee=J),{x1:k,x2:z,x3:U,y1:J,y2:re,y3:ee}}drawTitle(t,n,i){let s=this.title,d=s.length,u,f,_;if(d){let C=wd(i.rtl,this.x,this.width);for(t.x=aC(this,i.titleAlign,i),n.textAlign=C.textAlign(i.titleAlign),n.textBaseline="middle",u=sr(i.titleFont),f=i.titleSpacing,n.fillStyle=i.titleColor,n.font=u.string,_=0;_U!==0)?(t.beginPath(),t.fillStyle=d.multiKeyBackground,$0(t,{x:D,y:M,w:C,h:_,radius:z}),t.fill(),t.stroke(),t.fillStyle=u.backgroundColor,t.beginPath(),$0(t,{x:k,y:M+1,w:C-2,h:_-2,radius:z}),t.fill()):(t.fillStyle=d.multiKeyBackground,t.fillRect(D,M,C,_),t.strokeRect(D,M,C,_),t.fillStyle=u.backgroundColor,t.fillRect(k,M+1,C-2,_-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){let{body:s}=this,{bodySpacing:d,bodyAlign:u,displayColors:f,boxHeight:_,boxWidth:C,boxPadding:x}=i,y=sr(i.bodyFont),P=y.lineHeight,S=0,M=wd(i.rtl,this.x,this.width),D=function(_e){n.fillText(_e,M.x(t.x+S),t.y+P/2),t.y+=P+d},k=M.textAlign(u),z,U,J,re,ee,ae,se;for(n.textAlign=u,n.textBaseline="middle",n.font=y.string,t.x=aC(this,k,i),n.fillStyle=i.bodyColor,Jo(this.beforeBody,D),S=f&&k!=="right"?u==="center"?C/2+x:C+2+x:0,re=0,ae=s.length;re0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,i=this.$animations,s=i&&i.x,d=i&&i.y;if(s||d){let u=Rf[t.position].call(this,this._active,this._eventPosition);if(!u)return;let f=this._size=BR(this,t),_=Object.assign({},u,this._size),C=RR(n,t,_),x=NR(t,_,C,n);(s._to!==x.x||d._to!==x.y)&&(this.xAlign=C.xAlign,this.yAlign=C.yAlign,this.width=f.width,this.height=f.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,x))}}_willRender(){return!!this.opacity}draw(t){let n=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(n);let s={width:this.width,height:this.height},d={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;let u=qr(n.padding),f=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&f&&(t.save(),t.globalAlpha=i,this.drawBackground(d,t,s,n),W4(t,n.textDirection),d.y+=u.top,this.drawTitle(d,t,n),this.drawBody(d,t,n),this.drawFooter(d,t,n),Q4(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){let i=this._active,s=t.map(({datasetIndex:f,index:_})=>{let C=this.chart.getDatasetMeta(f);if(!C)throw new Error("Cannot find a dataset at index "+f);return{datasetIndex:f,element:C.data[_],index:_}}),d=!Tf(i,s),u=this._positionChanged(s,n);(d||u)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,d=this._active||[],u=this._getActiveElements(t,d,n,i),f=this._positionChanged(u,t),_=n||!Tf(u,d)||f;return _&&(this._active=u,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),_}_getActiveElements(t,n,i,s){let d=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(f=>this.chart.data.datasets[f.datasetIndex]&&this.chart.getDatasetMeta(f.datasetIndex).controller.getParsed(f.index)!==void 0);let u=this.chart.getElementsAtEventForMode(t,d.mode,d,i);return d.reverse&&u.reverse(),u}_positionChanged(t,n){let{caretX:i,caretY:s,options:d}=this,u=Rf[d.position].call(this,t,n);return u!==!1&&(i!==u.x||s!==u.y)}}return e})(),w0e={id:"tooltip",_element:qR,positioners:Rf,afterInit(e,o,t){t&&(e.tooltip=new qR({chart:e,options:t}))},beforeUpdate(e,o,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,o,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){let o=e.tooltip;if(o&&o._willRender()){let t={tooltip:o};if(e.notifyPlugins("beforeTooltipDraw",qt(at({},t),{cancelable:!0}))===!1)return;o.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,o){if(e.tooltip){let t=o.replay;e.tooltip.handleEvent(o.event,t,o.inChartArea)&&(o.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,o)=>o.bodyFont.size,boxWidth:(e,o)=>o.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:g9},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},P0e=Object.freeze({__proto__:null,Colors:Nde,Decimation:zde,Filler:l0e,Legend:u0e,SubTitle:g0e,Title:h0e,Tooltip:w0e}),T0e=(e,o,t,n)=>(typeof o=="string"?(t=e.push(o)-1,n.unshift({index:t,label:o})):isNaN(o)&&(t=null),t);function M0e(e,o,t,n){let i=e.indexOf(o);if(i===-1)return T0e(e,o,t,n);let s=e.lastIndexOf(o);return i!==s?t:i}var D0e=(e,o)=>e===null?null:_r(Math.round(e),0,o);function zR(e){let o=this.getLabels();return e>=0&&e{class e extends Md{static id="category";static defaults={ticks:{callback:zR}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let n=this._addedLabels;if(n.length){let i=this.getLabels();for(let{index:s,label:d}of n)i[s]===d&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Co(t))return null;let i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:M0e(i,t,Kn(n,t),this._addedLabels),D0e(n,i.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){let t=this.min,n=this.max,i=this.options.offset,s=[],d=this.getLabels();d=t===0&&n===d.length-1?d:d.slice(t,n+1),this._valueRange=Math.max(d.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let u=t;u<=n;u++)s.push({value:u});return s}getLabelForValue(t){return zR.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}return e})();function I0e(e,o){let t=[],{bounds:i,step:s,min:d,max:u,precision:f,count:_,maxTicks:C,maxDigits:x,includeBounds:y}=e,P=s||1,S=C-1,{min:M,max:D}=o,k=!Co(d),z=!Co(u),U=!Co(_),J=(D-M)/(x+1),re=T4((D-M)/S/P)*P,ee,ae,se,_e;if(re<1e-14&&!k&&!z)return[{value:M},{value:D}];_e=Math.ceil(D/re)-Math.floor(M/re),_e>S&&(re=T4(_e*re/S/P)*P),Co(f)||(ee=Math.pow(10,f),re=Math.ceil(re*ee)/ee),i==="ticks"?(ae=Math.floor(M/re)*re,se=Math.ceil(D/re)*re):(ae=M,se=D),k&&z&&s&&MB((u-d)/s,re/1e3)?(_e=Math.round(Math.min((u-d)/re,C)),re=(u-d)/_e,ae=d,se=u):U?(ae=k?d:ae,se=z?u:se,_e=_-1,re=(se-ae)/_e):(_e=(se-ae)/re,H0(_e,Math.round(_e),re/1e3)?_e=Math.round(_e):_e=Math.ceil(_e));let de=Math.max(D4(re),D4(ae));ee=Math.pow(10,Co(f)?de:f),ae=Math.round(ae*ee)/ee,se=Math.round(se*ee)/ee;let j=0;for(k&&(y&&ae!==d?(t.push({value:d}),aeu)break;t.push({value:W})}return z&&y&&se!==u?t.length&&H0(t[t.length-1].value,u,HR(u,J,e))?t[t.length-1].value=u:t.push({value:u}):(!z||se===u)&&t.push({value:se}),t}function HR(e,o,{horizontal:t,minRotation:n}){let i=ps(n),s=(t?Math.sin(i):Math.cos(i))||.001,d=.75*o*(""+e).length;return Math.min(o/s,d)}var Y0=class extends Md{constructor(o){super(o),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(o,t){return Co(o)||(typeof o=="number"||o instanceof Number)&&!isFinite(+o)?null:+o}handleTickRangeOptions(){let{beginAtZero:o}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:i,max:s}=this,d=f=>i=t?i:f,u=f=>s=n?s:f;if(o){let f=Bs(i),_=Bs(s);f<0&&_<0?u(0):f>0&&_>0&&d(0)}if(i===s){let f=s===0?1:Math.abs(s*.05);u(s+f),o||d(i-f)}this.min=i,this.max=s}getTickLimit(){let o=this.options.ticks,{maxTicksLimit:t,stepSize:n}=o,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),t=t||11),t&&(i=Math.min(t,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let o=this.options,t=o.ticks,n=this.getTickLimit();n=Math.max(2,n);let i={maxTicks:n,bounds:o.bounds,min:o.min,max:o.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},s=this._range||this,d=I0e(i,s);return o.bounds==="ticks"&&M4(d,this,"value"),o.reverse?(d.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),d}configure(){let o=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&o.length){let i=(n-t)/Math.max(o.length-1,1)/2;t-=i,n+=i}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(o){return j0(o,this.chart.options.locale,this.options.ticks.format)}},wM=class extends Y0{static id="linear";static defaults={ticks:{callback:Mf.formatters.numeric}};determineDataLimits(){let{min:o,max:t}=this.getMinMax(!0);this.min=Fa(o)?o:0,this.max=Fa(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let o=this.isHorizontal(),t=o?this.width:this.height,n=ps(this.options.ticks.minRotation),i=(o?Math.sin(n):Math.cos(n))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,s.lineHeight/i))}getPixelForValue(o){return o===null?NaN:this.getPixelForDecimal((o-this._startValue)/this._valueRange)}getValueForPixel(o){return this._startValue+this.getDecimalForPixel(o)*this._valueRange}},Vf=e=>Math.floor(Hc(e)),Td=(e,o)=>Math.pow(10,Vf(e)+o);function GR(e){return e/Math.pow(10,Vf(e))===1}function jR(e,o,t){let n=Math.pow(10,t),i=Math.floor(e/n);return Math.ceil(o/n)-i}function O0e(e,o){let t=o-e,n=Vf(t);for(;jR(e,o,n)>10;)n++;for(;jR(e,o,n)<10;)n--;return Math.min(n,Vf(e))}function A0e(e,{min:o,max:t}){o=yl(e.min,o);let n=[],i=Vf(o),s=O0e(o,t),d=s<0?Math.pow(10,Math.abs(s)):1,u=Math.pow(10,s),f=i>s?Math.pow(10,i):0,_=Math.round((o-f)*d)/d,C=Math.floor((o-f)/u/10)*u*10,x=Math.floor((_-C)/Math.pow(10,s)),y=yl(e.min,Math.round((f+C+x*Math.pow(10,s))*d)/d);for(;y=10?x=x<15?15:20:x++,x>=20&&(s++,x=2,d=s>=0?1:d),y=Math.round((f+C+x*Math.pow(10,s))*d)/d;let P=yl(e.max,y);return n.push({value:P,major:GR(P),significand:x}),n}var PM=class extends Md{static id="logarithmic";static defaults={ticks:{callback:Mf.formatters.logarithmic,major:{enabled:!0}}};constructor(o){super(o),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(o,t){let n=Y0.prototype.parse.apply(this,[o,t]);if(n===0){this._zero=!0;return}return Fa(n)&&n>0?n:null}determineDataLimits(){let{min:o,max:t}=this.getMinMax(!0);this.min=Fa(o)?Math.max(0,o):null,this.max=Fa(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Fa(this._userMin)&&(this.min=o===Td(this.min,0)?Td(this.min,-1):Td(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:o,maxDefined:t}=this.getUserBounds(),n=this.min,i=this.max,s=u=>n=o?n:u,d=u=>i=t?i:u;n===i&&(n<=0?(s(1),d(10)):(s(Td(n,-1)),d(Td(i,1)))),n<=0&&s(Td(i,-1)),i<=0&&d(Td(n,1)),this.min=n,this.max=i}buildTicks(){let o=this.options,t={min:this._userMin,max:this._userMax},n=A0e(t,this);return o.bounds==="ticks"&&M4(n,this,"value"),o.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(o){return o===void 0?"0":j0(o,this.chart.options.locale,this.options.ticks.format)}configure(){let o=this.min;super.configure(),this._startValue=Hc(o),this._valueRange=Hc(this.max)-Hc(o)}getPixelForValue(o){return(o===void 0||o===0)&&(o=this.min),o===null||isNaN(o)?NaN:this.getPixelForDecimal(o===this.min?0:(Hc(o)-this._startValue)/this._valueRange)}getValueForPixel(o){let t=this.getDecimalForPixel(o);return Math.pow(10,this._startValue+t*this._valueRange)}};function TM(e){let o=e.ticks;if(o.display&&e.display){let t=qr(o.backdropPadding);return Kn(o.font&&o.font.size,ba.font.size)+t.height}return 0}function F0e(e,o,t){return t=ga(t)?t:[t],{w:RB(e,o.string,t),h:t.length*o.lineHeight}}function $R(e,o,t,n,i){return e===n||e===i?{start:o-t/2,end:o+t/2}:ei?{start:o-t,end:o}:{start:o,end:o+t}}function k0e(e){let o={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},o),n=[],i=[],s=e._pointLabels.length,d=e.options.pointLabels,u=d.centerPointLabels?Bo/s:0;for(let f=0;fo.r&&(u=(n.end-o.r)/s,e.r=Math.max(e.r,o.r+u)),i.starto.b&&(f=(i.end-o.b)/d,e.b=Math.max(e.b,o.b+f))}function R0e(e,o,t){let n=e.drawingArea,{extra:i,additionalAngle:s,padding:d,size:u}=t,f=e.getPointPosition(o,n+i+d,s),_=Math.round($_(Lr(f.angle+za))),C=z0e(f.y,u.h,_),x=V0e(_),y=q0e(f.x,u.w,x);return{visible:!0,x:f.x,y:C,textAlign:x,left:y,top:C,right:y+u.w,bottom:C+u.h}}function N0e(e,o){if(!o)return!0;let{left:t,top:n,right:i,bottom:s}=e;return!(pc({x:t,y:n},o)||pc({x:t,y:s},o)||pc({x:i,y:n},o)||pc({x:i,y:s},o))}function L0e(e,o,t){let n=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:d,display:u}=s.pointLabels,f={extra:TM(s)/2,additionalAngle:d?Bo/i:0},_;for(let C=0;C270||t<90)&&(e-=o),e}function H0e(e,o,t){let{left:n,top:i,right:s,bottom:d}=t,{backdropColor:u}=o;if(!Co(u)){let f=Vp(o.borderRadius),_=qr(o.backdropPadding);e.fillStyle=u;let C=n-_.left,x=i-_.top,y=s-n+_.width,P=d-i+_.height;Object.values(f).some(S=>S!==0)?(e.beginPath(),$0(e,{x:C,y:x,w:y,h:P,radius:f}),e.fill()):e.fillRect(C,x,y,P)}}function G0e(e,o){let{ctx:t,options:{pointLabels:n}}=e;for(let i=o-1;i>=0;i--){let s=e._pointLabelItems[i];if(!s.visible)continue;let d=n.setContext(e.getPointLabelContext(i));H0e(t,d,s);let u=sr(d.font),{x:f,y:_,textAlign:C}=s;Lp(t,e._pointLabels[i],f,_+u.lineHeight/2,u,{color:d.color,textAlign:C,textBaseline:"middle"})}}function _9(e,o,t,n){let{ctx:i}=e;if(t)i.arc(e.xCenter,e.yCenter,o,0,_a);else{let s=e.getPointPosition(0,o);i.moveTo(s.x,s.y);for(let d=1;d{let i=oa(this.options.pointLabels.callback,[t,n],this);return i||i===0?i:""}).filter((t,n)=>this.chart.getDataVisibility(n))}fit(){let o=this.options;o.display&&o.pointLabels.display?k0e(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(o,t,n,i){this.xCenter+=Math.floor((o-t)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(o,t,n,i))}getIndexAngle(o){let t=_a/(this._pointLabels.length||1),n=this.options.startAngle||0;return Lr(o*t+ps(n))}getDistanceFromCenterForValue(o){if(Co(o))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-o)*t:(o-this.min)*t}getValueForDistanceFromCenter(o){if(Co(o))return NaN;let t=o/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(o){let t=this._pointLabels||[];if(o>=0&&o{if(x!==0||x===0&&this.min<0){f=this.getDistanceFromCenterForValue(C.value);let y=this.getContext(x),P=i.setContext(y),S=s.setContext(y);j0e(this,P,f,d,S)}}),n.display){for(o.save(),u=d-1;u>=0;u--){let C=n.setContext(this.getPointLabelContext(u)),{color:x,lineWidth:y}=C;!y||!x||(o.lineWidth=y,o.strokeStyle=x,o.setLineDash(C.borderDash),o.lineDashOffset=C.borderDashOffset,f=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),_=this.getPointPosition(u,f),o.beginPath(),o.moveTo(this.xCenter,this.yCenter),o.lineTo(_.x,_.y),o.stroke())}o.restore()}}drawBorder(){}drawLabels(){let o=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let i=this.getIndexAngle(0),s,d;o.save(),o.translate(this.xCenter,this.yCenter),o.rotate(i),o.textAlign="center",o.textBaseline="middle",this.ticks.forEach((u,f)=>{if(f===0&&this.min>=0&&!t.reverse)return;let _=n.setContext(this.getContext(f)),C=sr(_.font);if(s=this.getDistanceFromCenterForValue(this.ticks[f].value),_.showLabelBackdrop){o.font=C.string,d=o.measureText(u.label).width,o.fillStyle=_.backdropColor;let x=qr(_.backdropPadding);o.fillRect(-d/2-x.left,-s-C.size/2-x.top,d+x.width,C.size+x.height)}Lp(o,u.label,0,-s,C,{color:_.color,strokeColor:_.textStrokeColor,strokeWidth:_.textStrokeWidth})}),o.restore()}drawTitle(){}},_C={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},wl=Object.keys(_C);function UR(e,o){return e-o}function WR(e,o){if(Co(o))return null;let t=e._adapter,{parser:n,round:i,isoWeekday:s}=e._parseOpts,d=o;return typeof n=="function"&&(d=n(d)),Fa(d)||(d=typeof n=="string"?t.parse(d,n):t.parse(d)),d===null?null:(i&&(d=i==="week"&&(Sd(s)||s===!0)?t.startOf(d,"isoWeek",s):t.startOf(d,i)),+d)}function QR(e,o,t,n){let i=wl.length;for(let s=wl.indexOf(e);s=wl.indexOf(t);s--){let d=wl[s];if(_C[d].common&&e._adapter.diff(i,n,d)>=o-1)return d}return wl[t?wl.indexOf(t):0]}function W0e(e){for(let o=wl.indexOf(e)+1,t=wl.length;o=o?t[n]:t[i];e[s]=!0}}function Q0e(e,o,t,n){let i=e._adapter,s=+i.startOf(o[0].value,n),d=o[o.length-1].value,u,f;for(u=s;u<=d;u=+i.add(u,1,n))f=t[u],f>=0&&(o[f].major=!0);return o}function JR(e,o,t){let n=[],i={},s=o.length,d,u;for(d=0;d{class e extends Md{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){let i=t.time||(t.time={}),s=this._adapter=new ame._date(t.adapters.date);s.init(n),q0(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:WR(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,n=this._adapter,i=t.time.unit||"day",{min:s,max:d,minDefined:u,maxDefined:f}=this.getUserBounds();function _(C){!u&&!isNaN(C.min)&&(s=Math.min(s,C.min)),!f&&!isNaN(C.max)&&(d=Math.max(d,C.max))}(!u||!f)&&(_(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&_(this.getMinMax(!1))),s=Fa(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),d=Fa(d)&&!isNaN(d)?d:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,d-1),this.max=Math.max(s+1,d)}_getLabelBounds(){let t=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){let t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);let d=this.min,u=this.max,f=IB(s,d,u);return this._unit=n.unit||(i.autoSkip?QR(n.minUnit,this.min,this.max,this._getLabelCapacity(d)):U0e(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:W0e(this._unit),this.initOffsets(s),t.reverse&&f.reverse(),JR(this,f,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,d;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,d=this.getDecimalForValue(t[t.length-1]),t.length===1?i=d:i=(d-this.getDecimalForValue(t[t.length-2]))/2);let u=t.length<3?.5:.25;n=_r(n,0,u),i=_r(i,0,u),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){let t=this._adapter,n=this.min,i=this.max,s=this.options,d=s.time,u=d.unit||QR(d.minUnit,n,i,this._getLabelCapacity(n)),f=Kn(s.ticks.stepSize,1),_=u==="week"?d.isoWeekday:!1,C=Sd(_)||_===!0,x={},y=n,P,S;if(C&&(y=+t.startOf(y,"isoWeek",_)),y=+t.startOf(y,C?"day":u),t.diff(i,n,u)>1e5*f)throw new Error(n+" and "+i+" are too far apart with stepSize of "+f+" "+u);let M=s.ticks.source==="data"&&this.getDataTimestamps();for(P=y,S=0;P+D)}getLabelForValue(t){let n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){let s=this.options.time.displayFormats,d=this._unit,u=n||s[d];return this._adapter.format(t,u)}_tickFormatFunction(t,n,i,s){let d=this.options,u=d.ticks.callback;if(u)return oa(u,[t,n,i],this);let f=d.time.displayFormats,_=this._unit,C=this._majorUnit,x=_&&f[_],y=C&&f[C],P=i[n],S=C&&y&&P&&P.major;return this._adapter.format(t,s||(S?y:x))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n0?f:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n=e[n].pos&&o<=e[i].pos&&({lo:n,hi:i}=cc(e,"pos",o)),{pos:s,time:u}=e[n],{pos:d,time:f}=e[i]):(o>=e[n].time&&o<=e[i].time&&({lo:n,hi:i}=cc(e,"time",o)),{time:s,pos:u}=e[n],{time:d,pos:f}=e[i]);let _=d-s;return _?u+(f-u)*(o-s)/_:u}var EM=class extends DM{static id="timeseries";static defaults=DM.defaults;constructor(o){super(o),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let o=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(o);this._minPos=rC(t,this.min),this._tableRange=rC(t,this.max)-this._minPos,super.initOffsets(o)}buildLookupTable(o){let{min:t,max:n}=this,i=[],s=[],d,u,f,_,C;for(d=0,u=o.length;d=t&&_<=n&&i.push(_);if(i.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(d=0,u=i.length;di-s)}_getTimestampsForTable(){let o=this._cache.all||[];if(o.length)return o;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return t.length&&n.length?o=this.normalize(t.concat(n)):o=t.length?t:n,o=this._cache.all=o,o}getDecimalForValue(o){return(rC(this._table,o)-this._minPos)/this._tableRange}getValueForPixel(o){let t=this._offsets,n=this.getDecimalForPixel(o)/t.factor-t.end;return rC(this._table,n*this._tableRange+this._minPos,!0)}},Y0e=Object.freeze({__proto__:null,CategoryScale:E0e,LinearScale:wM,LogarithmicScale:PM,RadialLinearScale:MM,TimeScale:DM,TimeSeriesScale:EM}),Gp=[ome,Ide,P0e,Y0e];var J0e=e=>({display:e});function K0e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}Pl.register(...Gp);var CC=(()=>{class e{constructor(){this.homeService=T(B0),this.route=T(Ie),this.dateUtils=T(Zt),this.officeId=new it,this.timescale=new it,this.hideOutput=!0,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.getChartData(),this.initializeControls()}initializeControls(){this.officeId.patchValue(1),this.timescale.patchValue("Day")}getChartData(){ul(this.officeId.valueChanges,this.timescale.valueChanges).pipe(rF(1)).subscribe(()=>{let t=this.officeId.value,n=this.timescale.value;switch(n){case"Day":let i=this.homeService.getClientTrendsByDay(t),s=this.homeService.getLoanTrendsByDay(t);d0([i,s]).subscribe(C=>{let x=this.getLabels(n),y=this.getCounts(C[0],x,n,"client"),P=this.getCounts(C[1],x,n,"loan");this.setChart(x,y,P),this.hideOutput=!1});break;case"Week":let d=this.homeService.getClientTrendsByWeek(t),u=this.homeService.getLoanTrendsByWeek(t);d0([d,u]).subscribe(C=>{let x=this.getLabels(n),y=this.getCounts(C[0],x,n,"client"),P=this.getCounts(C[1],x,n,"loan");this.setChart(x,y,P),this.hideOutput=!1});break;case"Month":let f=this.homeService.getClientTrendsByMonth(t),_=this.homeService.getLoanTrendsByMonth(t);d0([f,_]).subscribe(C=>{let x=this.getLabels(n),y=this.getCounts(C[0],x,n,"client"),P=this.getCounts(C[1],x,n,"loan");this.setChart(x,y,P),this.hideOutput=!1});break}})}getLabels(t){let n=new Date,i=[];switch(t){case"Day":for(;i.length<12;){n.setDate(n.getDate()-1);let d=this.dateUtils.formatDate(n,"d/M");i.push(d)}break;case"Week":let s=new Date(n.getFullYear(),0,1);for(;i.length<12;){n.setDate(n.getDate()-7);let d=Math.ceil(((n.getTime()-s.getTime())/864e5+s.getDay()+1)/7);i.push(d)}break;case"Month":for(;i.length<12;){let d=this.dateUtils.formatDate(n,"MMMM");i.push(d),n.setMonth(n.getMonth()-1)}break}return i.reverse()}getCounts(t,n,i,s){let d=[];switch(i){case"Day":n.forEach(u=>{let f=t.find(_=>this.dateUtils.formatDate(_.days,"d/M")===u);d=this.updateCount(f,d,s)});break;case"Week":n.forEach(u=>{let f=t.find(_=>_.Weeks===u);d=this.updateCount(f,d,s)});break;case"Month":n.forEach(u=>{let f=t.find(_=>_.Months===u);d=this.updateCount(f,d,s)});break}return d}updateCount(t,n,i){if(t)switch(i){case"client":n.push(t.count);break;case"loan":n.push(t.lcount);break}else n.push(0);return n}setChart(t,n,i){this.chart?(this.chart.data.labels=t,this.chart.data.datasets[0].data=n,this.chart.data.datasets[1].data=i,this.chart.update()):this.chart=new Pl("client-trends-bar",{type:"line",data:{labels:t,datasets:[{label:"New Clients",data:n,backgroundColor:"dodgerblue",borderColor:"dodgerblue",borderWidth:2,fill:!1},{label:"Loans Disbursed",data:i,backgroundColor:"red",borderColor:"red",borderWidth:2,fill:!1}]},options:{responsive:!0,scales:{y:{min:0,title:{display:!0,text:"Values",color:"#1074B9"}}}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-trends-bar"]],decls:27,vars:20,consts:[[1,"card"],[1,"header"],[1,"flex-100"],["icon","chart-line"],["id","office",1,"flex-94"],[3,"formControl"],[3,"value"],[3,"ngStyle"],["id","client-trends-bar","width","800","height","465",1,"fallback"],["id","timescale","appearance","legacy",3,"formControl"],["value","Day"],["value","Week"],["value","Month"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"mat-card-header",1)(2,"h3",2),b(3,"fa-icon",3),c(4),p(5,"translate"),l(6,"div")(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",5),Se(12,K0e,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),l(17,"mat-button-toggle-group",9)(18,"mat-button-toggle",10),c(19),p(20,"translate"),r(),l(21,"mat-button-toggle",11),c(22),p(23,"translate"),r(),l(24,"mat-button-toggle",12),c(25),p(26,"translate"),r()()()()),n&2&&(a(4),v(" \xA0\xA0 ",m(5,8,"labels.inputs.Client Trends")," "),a(5),h(m(10,10,"labels.inputs.Office")),a(2),g("formControl",i.officeId),a(),we(i.officeData),a(3),g("ngStyle",Nt(18,J0e,i.hideOutput?"none":"block")),a(2),g("formControl",i.timescale),a(2),h(m(20,12,"labels.buttons.Day")),a(3),h(m(23,14,"labels.buttons.Week")),a(3),h(m(26,16,"labels.buttons.Month")))},dependencies:[ue,is,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,sa,ke,Mp,Dp,he],styles:[".card[_ngcontent-%COMP%]{min-width:18.5rem;padding:0}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]){margin-bottom:-1.2em}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#000000de}.card[_ngcontent-%COMP%] :where(#timescale[_ngcontent-%COMP%]){margin:2% 50%;transform:translate(-50%)}.card[_ngcontent-%COMP%] .fallback[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%;min-height:16.5rem}.dark-theme[_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]), .dark-theme [_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#fff}"]})}}return e})();var X0e=e=>({display:e});function Z0e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eue(e,o){e&1&&(l(0,"div",9)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.No Data")))}Pl.register(...Gp);var vC=(()=>{class e{constructor(){this.homeService=T(B0),this.route=T(Ie),this.officeId=new it,this.hideOutput=!0,this.showFallback=!0,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.getChartData(),this.officeId.patchValue(1)}getChartData(){this.officeId.valueChanges.subscribe(t=>{this.homeService.getDisbursedAmount(t).subscribe(n=>{let i=Object.entries(n[0]).map(s=>s[1]);i[0]===0&&i[1]===0?(this.showFallback=!0,this.hideOutput=!0):(this.setChart(i),this.showFallback=!1,this.hideOutput=!1)})})}setChart(t){this.chart?(this.chart.data.datasets[0].data=t,this.chart.update()):this.chart=new Pl("disbursement-pie",{type:"doughnut",data:{labels:["Pending","Disbursed"],datasets:[{backgroundColor:["dodgerblue","red"],data:t}]},options:{layout:{padding:{top:10,bottom:15}}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-amount-disbursed-pie"]],decls:18,vars:11,consts:[[1,"card"],[1,"header"],[1,"flex-100"],["icon","money-bill"],["id","office",1,"flex-94"],[3,"formControl"],[3,"value"],[3,"ngStyle"],["id","disbursement-pie","width","800","height","600"],[1,"fallback","align-center-center"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"mat-card-header",1)(2,"h3",2),b(3,"fa-icon",3),c(4),p(5,"translate"),l(6,"div")(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",5),Se(12,Z0e,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,eue,4,3,"div",9),r()()),n&2&&(a(4),v(" \xA0\xA0 ",m(5,5,"labels.inputs.Amount Pending / Disbursed")," "),a(5),h(m(10,7,"labels.inputs.Office")),a(2),g("formControl",i.officeId),a(),we(i.officeData),a(3),g("ngStyle",Nt(9,X0e,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,is,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,sa,ke,he],styles:[".card[_ngcontent-%COMP%]{min-width:18.5rem;padding:0}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]){margin-bottom:-1.2em}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#000000de}.card[_ngcontent-%COMP%] .fallback[_ngcontent-%COMP%]{height:20rem}.dark-theme[_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]), .dark-theme [_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#fff}"]})}}return e})();var tue=e=>({display:e});function iue(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function nue(e,o){e&1&&(l(0,"div",9)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.No Data")))}Pl.register(...Gp);var xC=(()=>{class e{constructor(){this.homeService=T(B0),this.route=T(Ie),this.officeId=new it,this.hideOutput=!0,this.showFallback=!1,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.getChartData(),this.officeId.patchValue(1)}getChartData(){this.officeId.valueChanges.subscribe(t=>{this.homeService.getCollectedAmount(t).subscribe(n=>{let i=Object.entries(n[0]).map(s=>s[1]);i[0]===0&&i[1]===0?(this.showFallback=!0,this.hideOutput=!0):(this.setChart(i),this.hideOutput=!1,this.showFallback=!1)})})}setChart(t){this.chart?(this.chart.data.datasets[0].data=t,this.chart.update()):this.chart=new Pl("collection-pie",{type:"doughnut",data:{labels:["Pending","Collected"],datasets:[{backgroundColor:["dodgerblue","red"],data:t}]},options:{layout:{padding:{top:10,bottom:15}}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-amount-collected-pie"]],decls:18,vars:11,consts:[[1,"card"],[1,"header"],[1,"flex-100"],["icon","donate"],["id","office",1,"flex-94"],[3,"formControl"],[3,"value"],[3,"ngStyle"],["id","collection-pie","width","800","height","600"],[1,"fallback","align-center-center"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"mat-card-header",1)(2,"h3",2),b(3,"fa-icon",3),c(4),p(5,"translate"),l(6,"div")(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",5),Se(12,iue,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,nue,4,3,"div",9),r()()),n&2&&(a(4),v(" \xA0\xA0 ",m(5,5,"labels.inputs.Amount Collected")," "),a(5),h(m(10,7,"labels.inputs.Office")),a(2),g("formControl",i.officeId),a(),we(i.officeData),a(3),g("ngStyle",Nt(9,tue,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,is,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,sa,ke,he],styles:[".card[_ngcontent-%COMP%]{min-width:18.5rem;padding:0}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]){margin-bottom:-1.2em}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#000000de}.card[_ngcontent-%COMP%] .fallback[_ngcontent-%COMP%]{height:20rem}.dark-theme[_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]), .dark-theme [_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#fff}"]})}}return e})();function oue(e,o){if(e&1&&(l(0,"mat-option",5)(1,"span"),c(2),r()()),e&2){let t=o.$implicit;g("routerLink",t.path),a(2),h(t.activity)}}var bC=(()=>{class e{constructor(){this.router=T(qe),this.searchText=new it,this.allActivities=O_,this.userActivity=JSON.parse(localStorage.getItem("mifosXLocation"))}ngOnInit(){this.recentActivities=this.getRecentActivities(),this.frequentActivities=this.getFrequentActivities(),this.setFilteredActivities()}getRecentActivities(){let t=this.userActivity.reverse(),n=[];return t.forEach(s=>{n.includes(s)||n.push(s)}),n.filter(s=>!["/","/login","/home","/dashboard"].includes(s)).slice(0,8)}getFrequentActivities(){let t={},n=this.userActivity?.length;for(;n;){let d=this.userActivity[--n];t[d]=(t[d]||0)+1}return Object.entries(t).sort((d,u)=>u[1]-d[1]).map(d=>d[0]).filter(d=>!["/","/login","/home","/dashboard"].includes(d)).slice(0,8)}navigatetoActivity(t){this.router.navigateByUrl(t)}setFilteredActivities(){this.filteredActivities=this.searchText.valueChanges.pipe(Mn(t=>typeof t=="string"?t:t.activity),Mn(t=>t?this.filterActivity(t):this.allActivities))}filterActivity(t){let n=t.toLowerCase();return this.allActivities.filter(i=>i.activity.toLowerCase().indexOf(n)===0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-dashboard"]],decls:22,vars:7,consts:[["activitySearch","matAutocomplete"],[1,"container"],[1,"card","layout-column","gap-40px"],[1,"layout-row","search"],["matInput","",3,"matAutocomplete","formControl"],[3,"routerLink"],[1,"layout-row","top-card"],[1,"trends-bar"],[1,"layout-row","bottom-card"],[1,"amount-disbursed"],[1,"amount-collected"]],template:function(n,i){if(n&1&&(l(0,"div",1)(1,"mat-card",2)(2,"div",3)(3,"mat-card-content")(4,"mat-form-field")(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4),r(),l(9,"mat-autocomplete",null,0),Se(11,oue,3,2,"mat-option",5,Pe),p(13,"async"),r()()(),l(14,"div",6)(15,"div",7),b(16,"mifosx-client-trends-bar"),r()(),l(17,"div",8)(18,"div",9),b(19,"mifosx-amount-disbursed-pie"),r(),l(20,"div",10),b(21,"mifosx-amount-collected-pie"),r()()()()),n&2){let s=ve(10);a(6),h(m(7,3,"labels.placeholders.Search Activity")),a(2),g("matAutocomplete",s)("formControl",i.searchText),a(3),we(m(13,5,i.filteredActivities))}},dependencies:[ue,fe,st,$e,_n,Oe,Ue,Je,Fe,Be,ze,ft,er,Za,CC,vC,xC,Ka,he],styles:[".card[_ngcontent-%COMP%]{box-sizing:border-box;padding:2%;display:flex;flex-direction:column;overflow-x:hidden}.card[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%;padding:12px}.card[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{width:100%}.card[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.card[_ngcontent-%COMP%] .top-card[_ngcontent-%COMP%]{flex:1 0 100%}.card[_ngcontent-%COMP%] .top-card[_ngcontent-%COMP%] .trends-bar[_ngcontent-%COMP%]{width:100%;flex:1 0 100%}.card[_ngcontent-%COMP%] .bottom-card[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:2px}.card[_ngcontent-%COMP%] .bottom-card[_ngcontent-%COMP%] .amount-collected[_ngcontent-%COMP%], .card[_ngcontent-%COMP%] .bottom-card[_ngcontent-%COMP%] .amount-disbursed[_ngcontent-%COMP%]{flex:1 0 calc(40% - 10px);padding:0;margin:10px}@media screen and (width <= 768px){.top-card[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%]{flex-direction:column}.top-card[_ngcontent-%COMP%] .trends-bar[_ngcontent-%COMP%], .top-card[_ngcontent-%COMP%] .amount-collected[_ngcontent-%COMP%], .top-card[_ngcontent-%COMP%] .amount-disbursed[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%] .trends-bar[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%] .amount-collected[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%] .amount-disbursed[_ngcontent-%COMP%]{flex:1 0 100%;width:100%;margin:10px 0}}"]})}}return e})();var zr=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var aue=[_o.withShell([{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:F_,data:{title:"Home"}},{path:"dashboard",component:bC,data:{title:"Dashboard",breadcrumb:"Dashboard"},resolve:{offices:zr}}])],C9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr],imports:[gn.forChild(aue),gn]})}}return e})();var v9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[kg,oo,ha,C9,yp,F_,bC,xC,vC,CC,A_,v_]})}}return e})();function rue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Username")," "),a(3),h(m(5,4,"labels.commons.is required")))}function lue(e,o){e&1&&(l(0,"span",3),b(1,"fa-icon",11),r())}function sue(e,o){e&1&&b(0,"fa-icon",13)}function cue(e,o){e&1&&b(0,"fa-icon",14)}function pue(e,o){if(e&1){let t=Y();l(0,"button",12),R("mousedown",function(){V(t);let i=w(2);return q(i.togglePasswordVisibility())})("mouseup",function(){V(t);let i=w(2);return q(i.togglePasswordVisibility())}),E(1,sue,1,0,"fa-icon",13),E(2,cue,1,0,"fa-icon",14),r()}if(e&2){let t=w(2);a(),I(t.passwordInputType==="password"?1:-1),a(),I(t.passwordInputType==="text"?2:-1)}}function mue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.pass is required")))}function due(e,o){e&1&&b(0,"mat-progress-bar",8)}function uue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function fue(e,o){if(e&1){let t=Y();l(0,"div")(1,"form",1),R("ngSubmit",function(){V(t);let i=w();return q(i.login())}),l(2,"mat-form-field",2)(3,"span",3),b(4,"fa-icon",4),r(),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5),E(9,rue,6,6,"mat-error"),r(),l(10,"mat-form-field",2),E(11,lue,2,0,"span",3),l(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",6),E(16,pue,3,2,"button",7),E(17,mue,6,6,"mat-error"),r(),E(18,due,1,0,"mat-progress-bar",8),l(19,"button",9),c(20),p(21,"translate"),E(22,uue,1,1,"mat-spinner",10),r()()()}if(e&2){let t=w();a(),g("formGroup",t.loginForm),a(5),h(m(7,13,"labels.inputs.Username")),a(3),I(t.loginForm.controls.username.hasError("required")?9:-1),a(2),I(t.loginForm.controls.password.value?-1:11),a(2),h(m(14,15,"labels.inputs.Password")),a(2),g("type",Le(t.passwordInputType)),a(),I(t.loginForm.controls.password.value&&!t.loading?16:-1),a(),I(t.loginForm.controls.password.hasError("required")?17:-1),a(),I(t.loading?18:-1),a(),g("disabled",!t.loginForm.valid),a(),v(" ",m(21,17,"labels.buttons.Login")," "),a(2),I(t.loading?22:-1)}}function hue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function gue(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"button",16),R("click",function(){V(t);let i=w(2);return q(i.loginOIDC())}),c(2),p(3,"translate"),E(4,hue,1,1,"mat-spinner",10),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,2,"labels.buttons.Login")," "),a(2),I(t.loading?4:-1)}}function _ue(e,o){if(e&1){let t=Y();l(0,"div")(1,"p"),c(2,"Welcome! You are logged in."),r(),l(3,"button",17),R("click",function(){V(t);let i=w(2);return q(i.logout())}),c(4,"Logout"),r(),l(5,"button",17),R("click",function(){V(t);let i=w(2);return q(i.loadProtectedData())}),c(6,"Load Protected Data"),r(),l(7,"pre"),c(8),p(9,"json"),r()()}if(e&2){let t=w(2);a(8),h(m(9,1,t.protectedData))}}function Cue(e,o){if(e&1&&(l(0,"div",0),E(1,gue,5,4,"div",15),E(2,_ue,10,3,"div"),r()),e&2){let t=w();a(),I(t.isLoggedIn?-1:1),a(),I(t.isLoggedIn?2:-1)}}var yC=(()=>{class e{constructor(){this.formBuilder=T(UF),this.authenticationService=T(Wo),this.authService=T(Ia),this.passwordInputType="password",this.loading=!1,this.oidcServerEnabled=un.OIDC.oidcServerEnabled,this.enableRememberMe=un.enableRememberMe===!0}ngOnInit(){this.createLoginForm()}login(){this.loading=!0,this.loginForm.disable(),this.authenticationService.login(this.loginForm.value).pipe(Ys(()=>{this.loginForm.reset(),this.loginForm.markAsPristine(),this.loginForm.enable(),this.loading=!1})).subscribe()}loginOIDC(){this.authService.login()}getUsers(){this.authService.getUsers()}logout(){this.authService.logout()}togglePasswordVisibility(){this.passwordInputType=this.passwordInputType==="password"?"text":"password"}createLoginForm(){this.loginForm=this.formBuilder.group({username:["",ce.required],password:["",[ce.required,ce.minLength(8)]],remember:!1})}getErrorMessage(t){let n=this.loginForm.get(t);return n?.hasError("required")?"This field is required":n?.hasError("minlength")?`Minimum length is ${n.errors?.minlength.requiredLength}`:""}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-login-form"]],decls:2,vars:2,consts:[[1,"container","container-margin"],["id","login-form",1,"layout-column",3,"ngSubmit","formGroup"],[1,"login-input","flex-align-center"],["matPrefix","",1,"m-r-10"],["icon","user-circle","size","lg"],["matInput","","type","text","autocomplete","off","formControlName","username"],["matInput","","formControlName","password",3,"type"],["type","button","matSuffix","","mat-icon-button",""],["mode","indeterminate"],["mat-raised-button","","color","primary",1,"login-button-first","flex-align-center",3,"disabled"],[3,"diameter"],["icon","lock","size","lg"],["type","button","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"],[1,"layout-column","align-center-center"],["mat-raised-button","","color","primary",1,"login-button-first","flex-align-center",3,"click"],[3,"click"]],template:function(n,i){n&1&&(E(0,fue,23,19,"div"),E(1,Cue,3,2,"div",0)),n&2&&(I(i.oidcServerEnabled?-1:0),a(),I(i.oidcServerEnabled?1:-1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Fe,Be,ut,ai,ze,xe,b0,ke,wi,ns,w0,MF,he],styles:["#login-form[_ngcontent-%COMP%] .login-input[_ngcontent-%COMP%]{width:14rem;margin-bottom:.1rem}#login-form[_ngcontent-%COMP%] [matPrefix][_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;top:50%;left:190px;transform:translateY(-50%)}#login-form[_ngcontent-%COMP%] .login-button-first[_ngcontent-%COMP%]{width:14rem;margin-top:.8rem;background-color:#1976d2;color:#fff;border-radius:8px;margin-bottom:.5rem}#login-form[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{float:right;margin:.5rem 0} .mat-mdc-form-field-infix{width:144px!important}.container-margin[_ngcontent-%COMP%]{margin-top:8rem;margin-bottom:8rem}"]})}}return e})();var jp=e=>{let o=e.get("password"),t=e.get("repeatPassword");return o&&t&&o.value!==t.value?{passwordsDoNotMatch:!0}:null};function vue(e,o){e&1&&b(0,"fa-icon",12)}function xue(e,o){e&1&&b(0,"fa-icon",13)}function bue(e,o){if(e&1){let t=Y();l(0,"button",11),R("mousedown",function(){V(t);let i=w();return q(i.passwordInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.passwordInputType="password")}),E(1,vue,1,0,"fa-icon",12),E(2,xue,1,0,"fa-icon",13),r()}if(e&2){let t=w();a(),I(t.passwordInputType==="password"?1:-1),a(),I(t.passwordInputType==="text"?2:-1)}}function yue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.is required")))}function Sue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.is required")))}function wue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function Pue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should not be more than")," "),a(3),h(m(5,4,"labels.commons.50 characters long")))}function Tue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),l(8,"strong"),c(9),p(10,"translate"),r(),c(11," ,"),l(12,"strong"),c(13),p(14,"translate"),r()()),e&2&&(a(),v(" ",m(2,5,"labels.commons.Password should include a")," "),a(3),h(m(5,7,"labels.commons.numeral")),a(2),v(" ",m(7,9,"labels.commons.and at")," "),a(3),h(m(10,11,"labels.commons.least one uppercase")),a(4),h(m(14,13,"labels.commons.lowercase and special character")))}function Mue(e,o){e&1&&(l(0,"p",8),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.text.Passwords")," "),a(3),h(m(5,4,"labels.text.do not match")))}function Due(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}var SC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Wo),this.passwordsUtility=T(S0),this.loading=!1}ngOnInit(){this.createResetPasswordForm(),this.passwordInputType="password"}resetPassword(){this.loading=!0,this.resetPasswordForm.disable(),this.authenticationService.resetPassword(this.resetPasswordForm.value).pipe(Ys(()=>{this.resetPasswordForm.reset(),this.resetPasswordForm.markAsPristine(),this.resetPasswordForm.enable(),this.loading=!1})).subscribe()}createResetPasswordForm(){this.resetPasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",ce.required]},{validator:jp})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reset-password"]],decls:30,vars:24,consts:[["id","reset-password-form",1,"layout-column",3,"ngSubmit","formGroup"],[1,"reset-password-input","flex-fill","align-center"],["matPrefix",""],["icon","lock","size","lg",1,"m-r-10"],["matInput","","required","","formControlName","password",3,"type"],["mat-button","","matSuffix","","mat-icon-button",""],["icon","check-circle","size","lg",1,"m-r-10"],["type","password","matInput","","required","","formControlName","repeatPassword"],[1,"reset-password-error"],["mat-raised-button","","color","primary",1,"reset-password-button","align-center",3,"disabled"],[3,"diameter"],["mat-button","","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"]],template:function(n,i){n&1&&(l(0,"p"),c(1),p(2,"translate"),r(),b(3,"mat-divider"),l(4,"form",0),R("ngSubmit",function(){return i.resetPassword()}),l(5,"mat-form-field",1)(6,"span",2),b(7,"fa-icon",3),r(),l(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",4),E(12,bue,3,2,"button",5),E(13,yue,6,6,"mat-error"),r(),l(14,"mat-form-field",1)(15,"span",2),b(16,"fa-icon",6),r(),l(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",7),E(21,Sue,6,6,"mat-error"),E(22,wue,6,6,"mat-error"),E(23,Pue,6,6,"mat-error"),E(24,Tue,15,15,"mat-error"),r(),E(25,Mue,6,6,"p",8),l(26,"button",9),c(27),p(28,"translate"),E(29,Due,1,1,"mat-spinner",10),r()()),n&2&&(a(),v("",m(2,16,"labels.text.Please update your password"),":"),a(3),g("formGroup",i.resetPasswordForm),a(5),h(m(10,18,"labels.inputs.Password")),a(2),g("type",Le(i.passwordInputType)),a(),I(i.resetPasswordForm.controls.password.value&&!i.loading?12:-1),a(),I(i.resetPasswordForm.controls.password.hasError("required")?13:-1),a(5),h(m(19,20,"labels.inputs.Confirm Password")),a(3),I(i.resetPasswordForm.controls.password.hasError("required")?21:-1),a(),I(i.resetPasswordForm.controls.password.hasError("minlength")?22:-1),a(),I(i.resetPasswordForm.controls.password.hasError("maxlength")?23:-1),a(),I(i.resetPasswordForm.controls.password.hasError("pattern")&&!(i.resetPasswordForm.controls.password.hasError("minlength")||i.resetPasswordForm.controls.password.hasError("maxlength"))?24:-1),a(),I(i.resetPasswordForm.errors!=null&&i.resetPasswordForm.errors.passwordsDoNotMatch&&!i.resetPasswordForm.controls.password.hasError("required")&&!i.resetPasswordForm.controls.repeatPassword.hasError("required")?25:-1),a(),g("disabled",!i.resetPasswordForm.valid),a(),v(" ",m(28,22,"labels.buttons.Reset Password")," "),a(2),I(i.loading?29:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,xe,Ri,b0,ke,wi,w0,he],styles:["#reset-password-form[_ngcontent-%COMP%] .reset-password-input[_ngcontent-%COMP%]{width:14rem;margin-top:.6rem}#reset-password-form[_ngcontent-%COMP%] .reset-password-button[_ngcontent-%COMP%]{width:14rem;margin-top:1rem}#reset-password-form[_ngcontent-%COMP%] .reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}#reset-password-form[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{float:right;margin:.5rem 0}"]})}}return e})();function Eue(e,o){e&1&&(l(0,"p"),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.text.Please select a delivery method"),":"))}function Iue(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),p(3,"translate"),r()),e&2){let t=o.$implicit;g("value",t),a(),wF(" ",m(2,5,"labels.inputs.Send")," ",t.name," ",m(3,7,"labels.inputs.to")," ",t.target," ")}}function Oue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Aue(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){V(t);let i=w();return q(i.requestOTP())}),l(1,"mat-radio-group",2),Se(2,Iue,4,9,"mat-radio-button",3,Pe),r(),l(4,"button",4),c(5),p(6,"translate"),E(7,Oue,1,1,"mat-spinner",5),r()()}if(e&2){let t=w();g("formGroup",t.twoFactorAuthenticationDeliveryMethodForm),a(2),we(t.twoFactorAuthenticationDeliveryMethods),a(2),g("disabled",!t.twoFactorAuthenticationDeliveryMethodForm.valid),a(),v(" ",m(6,4,"labels.buttons.Request OTP")," "),a(2),I(t.loading?7:-1)}}function Fue(e,o){e&1&&(l(0,"p"),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.text.Please enter the OTP"),":"))}function kue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.OTP")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Rue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Nue(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){V(t);let i=w();return q(i.validateOTP())}),l(1,"mat-form-field",6)(2,"span",7),b(3,"fa-icon",8),r(),l(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",9),l(8,"mat-hint",10)(9,"strong"),c(10),p(11,"translate"),r(),c(12),r(),l(13,"mat-hint",11)(14,"strong"),c(15),p(16,"translate"),r(),c(17),p(18,"translate"),r(),E(19,kue,7,9,"mat-error"),r(),l(20,"button",12),c(21),p(22,"translate"),E(23,Bue,1,1,"mat-spinner",5),r(),l(24,"button",13),R("click",function(){V(t);let i=w();return q(i.resendOTP())}),c(25),p(26,"translate"),E(27,Rue,1,1,"mat-spinner",5),r()()}if(e&2){let t=w();g("formGroup",t.twoFactorAuthenticationForm),a(5),h(m(6,14,"labels.inputs.OTP")),a(5),v("",m(11,16,"labels.inputs.Delivery Method"),":"),a(2),v(" ",t.selectedTwoFactorAuthenticationDeliveryMethod.name," "),a(3),v("",m(16,18,"labels.inputs.Validity"),":"),a(2),le(" ",t.tokenValidityTime/60," ",m(18,20,"labels.inputs.mins")," "),a(2),I(t.twoFactorAuthenticationForm.controls.otp.hasError("required")?19:-1),a(),g("disabled",!t.twoFactorAuthenticationForm.valid),a(),v(" ",m(22,22,"labels.buttons.Validate OTP")," "),a(2),I(t.loading?23:-1),a(),g("disabled",t.loading||t.resendOTPLoading),a(),v(" ",m(26,24,"labels.buttons.Resend OTP")," "),a(2),I(t.resendOTPLoading?27:-1)}}var wC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Wo),this.otpRequested=!1,this.loading=!1,this.resendOTPLoading=!1}ngOnInit(){this.createTwoFactorAuthenticationDeliveryMethodForm(),this.authenticationService.getDeliveryMethods().subscribe(t=>{this.twoFactorAuthenticationDeliveryMethods=t})}requestOTP(){this.loading=!0,this.twoFactorAuthenticationDeliveryMethodForm.disable(),this.selectedTwoFactorAuthenticationDeliveryMethod=this.twoFactorAuthenticationDeliveryMethodForm.value.twoFactorAuthenticationDeliveryMethod,this.authenticationService.requestOTP(this.selectedTwoFactorAuthenticationDeliveryMethod).pipe(Ys(()=>{this.twoFactorAuthenticationDeliveryMethodForm.reset(),this.twoFactorAuthenticationDeliveryMethodForm.markAsPristine(),this.twoFactorAuthenticationDeliveryMethodForm.enable(),this.loading=!1})).subscribe(t=>{this.createTwoFactorAuthenticationForm(),this.otpRequested=!0,this.tokenValidityTime=t.tokenLiveTimeInSec})}validateOTP(){this.loading=!0,this.twoFactorAuthenticationForm.disable(),this.authenticationService.validateOTP(this.twoFactorAuthenticationForm.value.otp).pipe(Ys(()=>{this.twoFactorAuthenticationForm.reset(),this.twoFactorAuthenticationForm.markAsPristine(),this.twoFactorAuthenticationForm.enable(),this.loading=!1})).subscribe()}resendOTP(){this.resendOTPLoading=!0,this.twoFactorAuthenticationForm.disable(),this.authenticationService.requestOTP(this.selectedTwoFactorAuthenticationDeliveryMethod).pipe(Ys(()=>{this.twoFactorAuthenticationForm.reset(),this.twoFactorAuthenticationForm.markAsPristine(),this.twoFactorAuthenticationForm.enable(),this.resendOTPLoading=!1})).subscribe()}createTwoFactorAuthenticationDeliveryMethodForm(){this.twoFactorAuthenticationDeliveryMethodForm=this.formBuilder.group({twoFactorAuthenticationDeliveryMethod:["",ce.required]})}createTwoFactorAuthenticationForm(){this.twoFactorAuthenticationForm=this.formBuilder.group({otp:["",ce.required]})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-two-factor-authentication"]],decls:9,vars:7,consts:[[1,"layout-column","two-factor-auth-form",3,"formGroup"],[1,"layout-column","two-factor-auth-form",3,"ngSubmit","formGroup"],["formControlName","twoFactorAuthenticationDeliveryMethod",1,"layout-column","align-center","radio-group-spacing"],[3,"value"],["mat-raised-button","","color","primary",1,"flex-fill","align-center",3,"disabled"],[3,"diameter"],[1,"two-factor-auth-input","flex-fill","align-center"],["matPrefix",""],["icon","user-shield",1,"m-r-10"],["type","password","matInput","","autocomplete","off","required","","formControlName","otp"],["align","start"],["align","end"],["mat-raised-button","","color","primary",1,"two-factor-auth-button","align-center",3,"disabled"],["type","button","mat-button","",1,"two-factor-auth-button","align-center",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"p")(1,"strong"),c(2),p(3,"translate"),r()(),b(4,"mat-divider"),E(5,Eue,3,3,"p"),E(6,Aue,8,6,"form",0),E(7,Fue,3,3,"p"),E(8,Nue,28,26,"form",0)),n&2&&(a(2),h(m(3,5,"labels.text.Two Factor Authentication")),a(3),I(i.otpRequested?-1:5),a(),I(i.otpRequested?-1:6),a(),I(i.otpRequested?7:-1),a(),I(i.otpRequested?8:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,qa,ze,xe,Ri,tr,ir,w0,b0,ke,he],styles:[".two-factor-auth-form[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{margin-bottom:.5rem}.two-factor-auth-form[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]:last-child{margin-bottom:1rem}.two-factor-auth-form[_ngcontent-%COMP%] .two-factor-auth-button[_ngcontent-%COMP%]{width:14rem;margin-top:.5rem}.two-factor-auth-form[_ngcontent-%COMP%] .two-factor-auth-input[_ngcontent-%COMP%]{width:14rem}.two-factor-auth-form[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{float:right;margin:.5rem 0}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();function Lue(e,o){e&1&&b(0,"mifosx-server-selector",14)}function Vue(e,o){e&1&&b(0,"mifosx-tenant-selector")}function que(e,o){e&1&&b(0,"mifosx-login-form")}function zue(e,o){e&1&&b(0,"mifosx-reset-password")}function Hue(e,o){e&1&&b(0,"mifosx-two-factor-authentication")}var PC=(()=>{class e{constructor(){this.alertService=T(Ur),this.settingsService=T(Ot),this.router=T(qe),this.environment=un,this.resetPassword=!1,this.twoFactorAuthenticationRequired=!1}ngOnInit(){this.alert$=this.alertService.alertEvent.subscribe(t=>{let n=t.type;n==="Password Expired"?(this.twoFactorAuthenticationRequired=!1,this.resetPassword=!0):n==="Two Factor Authentication Required"?(this.resetPassword=!1,this.twoFactorAuthenticationRequired=!0):n==="Authentication Success"&&(this.resetPassword=!1,this.twoFactorAuthenticationRequired=!1,this.router.navigate(["/"],{replaceUrl:!0}))})}ngOnDestroy(){this.alert$.unsubscribe()}reloadSettings(){this.settingsService.setTenantIdentifier(""),this.settingsService.setTenantIdentifier(un.fineractPlatformTenantId||"default"),this.settingsService.setTenantIdentifiers(un.fineractPlatformTenantIds.split(",")),this.settingsService.setServers(un.baseApiUrls.split(",")),window.location.reload()}displayTenantSelector(){return un.displayTenantSelector!=="false"}allowServerSwitch(){return un.allowServerSwitch!=="false"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-login"]],decls:88,vars:73,consts:[["resourcesMenu","matMenu"],["communityMenu","matMenu"],["contributeMenu","matMenu"],[1,"layout-row"],[1,"flex-70","layout-column","align-center","align-items-center","hide-lt-sm","cover"],[1,"cover-content"],[1,"mat-display-1","cover-title"],[1,"mat-headline","cover-description"],["href","https://mifos.org/","target","_blank",1,"cover-link"],["href","https://mifos.org/resources/community/","target","_blank",1,"cover-link"],["href","https://mifos.org/take-action/volunteer/","target","_blank",1,"cover-link"],[1,"layout-column","flex-gt-sm-30","login-container"],[1,"layout-row-reverse"],[1,"p-t-10","p-r-10","width-40"],[1,"p-t-10"],[1,"layout-row","align-center-center","flex-auto"],["src","assets/images/mifos_lg-logo.png",1,"img-container",3,"alt"],[1,"layout-column","align-center-center"],[1,"information-list","align-items-center","custom-horizontal-list","hide-lt-lg"],["mat-button","",3,"matMenuTriggerFor"],[3,"styleClass"],["align","end",1,"layout-row","m-b-20","m-r-10"],[3,"click"],["icon","refresh"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","target","_blank","mat-menu-item",""],["href","https://cwiki.apache.org/confluence/display/FINERACT/Apache+Fineract+1.0+Functional+Specifications","target","_blank","mat-menu-item",""],["href","https://cwiki.apache.org/confluence/display/FINERACT/Contributor%27s+Zone","target","_blank","mat-menu-item",""],["href","https://groups.google.com/forum/#!forum/mifosusers","target","_blank","mat-menu-item",""],["href","https://groups.google.com/forum/#!forum/mifosdeveloper","target","_blank","mat-menu-item",""],["href","https://mifos.org/resources/community/communications/#mifos-irc","target","_blank","mat-menu-item",""],["href","https://mifosforge.jira.com/wiki/spaces/MDZ/pages/92012624/Key+Design+Principles","target","_blank","mat-menu-item",""],["href","https://sourceforge.net/projects/mifos/","target","_blank","mat-menu-item",""],["href","https://mifos.org/donate/","target","_blank","mat-menu-item",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"div",4)(2,"div",5)(3,"h1",6),c(4),p(5,"translate"),r(),l(6,"p",7),c(7),p(8,"translate"),p(9,"translate"),l(10,"a",8),c(11),p(12,"translate"),r(),c(13),p(14,"translate"),l(15,"a",9),c(16),p(17,"translate"),r(),c(18),p(19,"translate"),l(20,"a",10),c(21),p(22,"translate"),r()()()(),l(23,"div",11)(24,"div",12),b(25,"mifosx-language-selector",13)(26,"mifosx-theme-toggle",14),E(27,Lue,1,0,"mifosx-server-selector",14),r(),l(28,"div",15),b(29,"img",16),p(30,"translate"),r(),l(31,"div",17),E(32,Vue,1,0,"mifosx-tenant-selector"),E(33,que,1,0,"mifosx-login-form"),l(34,"div",3),E(35,zue,1,0,"mifosx-reset-password"),E(36,Hue,1,0,"mifosx-two-factor-authentication"),r()(),l(37,"div",3)(38,"mat-list",18)(39,"mat-list-item")(40,"button",19),c(41),p(42,"translate"),r()(),l(43,"mat-list-item")(44,"button",19),c(45),p(46,"translate"),r()(),l(47,"mat-list-item")(48,"button",19),c(49),p(50,"translate"),r()()()(),b(51,"mifosx-footer",20),l(52,"div",21)(53,"a",22),R("click",function(){return V(s),q(i.reloadSettings())}),b(54,"fa-icon",23),r()()()(),l(55,"mat-menu",null,0)(57,"a",24),c(58),p(59,"translate"),r(),l(60,"a",25),c(61),p(62,"translate"),r(),l(63,"a",26),c(64),p(65,"translate"),r()(),l(66,"mat-menu",null,1)(68,"a",27),c(69),p(70,"translate"),r(),l(71,"a",28),c(72),p(73,"translate"),r(),l(74,"a",29),c(75),p(76,"translate"),r()(),l(77,"mat-menu",null,2)(79,"a",30),c(80),p(81,"translate"),r(),l(82,"a",31),c(83),p(84,"translate"),r(),l(85,"a",32),c(86),p(87,"translate"),r()()}if(n&2){let s=ve(56),d=ve(67),u=ve(78);a(4),h(m(5,31,"APP_NAME")),a(3),le(" ",m(8,33,"APP_NAME")," ",m(9,35,"labels.text.is designed by the")," "),a(4),h(m(12,37,"labels.text.Mifos Initiative")),a(2),v(". ",m(14,39,"labels.text.A")," "),a(3),h(m(17,41,"labels.text.global community")),a(2),v(" ",m(19,43,"labels.text.elimination of poverty")," "),a(3),v("",m(22,45,"labels.text.Get involved"),"!"),a(6),I(i.allowServerSwitch()?27:-1),a(2),g("alt",_0("",m(30,47,"APP_NAME")," Logo")),a(3),I(i.displayTenantSelector()?32:-1),a(),I(!i.resetPassword&&!i.twoFactorAuthenticationRequired?33:-1),a(2),I(i.resetPassword?35:-1),a(),I(i.twoFactorAuthenticationRequired?36:-1),a(4),g("matMenuTriggerFor",s),a(),v(" ",m(42,49,"labels.links.Resources")," "),a(3),g("matMenuTriggerFor",d),a(),v(" ",m(46,51,"labels.links.Community")," "),a(3),g("matMenuTriggerFor",u),a(),v(" ",m(50,53,"labels.links.Contribute")," "),a(2),g("styleClass","m-t-90"),a(7),h(m(59,55,"labels.links.User Manual")),a(3),h(m(62,57,"labels.links.Functional Specifications")),a(3),h(m(65,59,"labels.links.Developer Zone")),a(5),h(m(70,61,"labels.links.User Group")),a(3),h(m(73,63,"labels.links.Developer Group")),a(3),h(m(76,65,"labels.links.IRC")),a(5),h(m(81,67,"labels.links.Key Design Principles")),a(3),h(m(84,69,"labels.links.Working with Code")),a(3),h(m(87,71,"labels.links.Donate"))}},dependencies:[ue,fe,xe,Lg,Jg,rk,lk,yC,SC,wC,vl,Vo,nc,Ng,ke,ic,tc,he],styles:['mifosx-server-selector[_ngcontent-%COMP%]{padding-left:5px;width:40%}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{width:144px!important}mifosx-tenant-selector[_ngcontent-%COMP%]{border-radius:8px;width:14rem;margin-bottom:.1rem}mifosx-tenant-selector[_ngcontent-%COMP%] .mat-mdc-form-field{width:14rem}mifosx-tenant-selector[_ngcontent-%COMP%] .mat-mdc-form-field-infix{width:144px!important;border-radius:8px}mifosx-tenant-selector[_ngcontent-%COMP%] [matPrefix] fa-icon{font-size:16px;position:absolute;left:190px;border-radius:8px;top:50%;transform:translateY(-50%)}.cover[_ngcontent-%COMP%]{background:url("./media/cover_image_resized.webp") no-repeat center center;background-size:cover;position:relative;z-index:0;max-width:70vw}.cover[_ngcontent-%COMP%]:after{content:"";opacity:.5;background:linear-gradient(#000,#000);width:100%;height:100%;top:0;left:0;display:block;z-index:1;position:absolute}.cover[_ngcontent-%COMP%] .width-40[_ngcontent-%COMP%]{width:40%}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%]{display:block;max-width:80%;margin:100px;color:#fff;text-align:justify;z-index:2;font-size:1.2rem}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%] .cover-title[_ngcontent-%COMP%]{border-bottom:2px solid #fff;margin:0 0 20px;padding-bottom:10px}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%] .cover-description[_ngcontent-%COMP%] .cover-link[_ngcontent-%COMP%]{text-decoration:underline;color:#fff}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%] .cover-description[_ngcontent-%COMP%] .cover-link[_ngcontent-%COMP%]:hover{color:#d3d3d3}.login-container[_ngcontent-%COMP%]{box-shadow:1px 1px 50px #000;height:100vh;width:100%;min-width:21.5rem;padding:.5rem 1rem}.login-container[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{max-width:18rem;margin-bottom:2rem;gap:20px}.layout-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.custom-horizontal-list[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:center;align-items:center;gap:1.5rem}.custom-horizontal-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{width:auto!important;min-width:0!important;padding:0!important}.custom-horizontal-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] [mat-button][_ngcontent-%COMP%]{white-space:nowrap}.p-t-10[_ngcontent-%COMP%]{padding-top:0}.p-r-10[_ngcontent-%COMP%]{padding-right:10px} .login-container mifosx-footer .divider{margin:2px 0 0!important;width:14rem!important} .login-container #footer{align-items:unset!important}']})}}return e})();var Gue=[{path:"login",component:PC,data:{title:"Login"}}],x9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(Gue),gn]})}}return e})();var b9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,x9,yp,PC,yC,SC,wC]})}}return e})();function jue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function $ue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Uue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Wue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}var TC=(()=>{class e{constructor(){this.settingsService=T(Ot),this.languages=[{name:"English",code:"en"}],this.dateFormats=["dd MMMM yyyy","dd/MMMM/yyyy","dd-MMMM-yyyy","dd-MM-yy","MMMM-dd-yyyy","MMMM dd yyyy","MMMM/dd/yyyy","MM-dd-yy","yyyy-MM-dd"],this.decimals=["0","1","2","3","4","5","6","7","8"],this.language=new it(""),this.dateFormat=new it(""),this.decimalsToDisplay=new it("")}ngOnInit(){this.language.patchValue(this.settingsService.language),this.dateFormat.patchValue(this.settingsService.dateFormat),this.decimalsToDisplay.patchValue(this.settingsService.decimals),this.buildDependencies()}buildDependencies(){this.language.valueChanges.subscribe(t=>{this.settingsService.setLanguage(t)}),this.dateFormat.valueChanges.subscribe(t=>{this.settingsService.setDateFormat(t)}),this.decimalsToDisplay.valueChanges.subscribe(t=>{this.settingsService.setDecimalToDisplay(t)})}compareOptions(t,n){return t&&n&&t.code===n.code}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-settings"]],decls:89,vars:52,consts:[[1,"container"],[1,"layout-column"],[3,"formControl","compareWith"],[3,"value"],[3,"formControl"],[1,"header"],["type","url","matInput",""],["type","email","matInput",""],["type","tel","matInput",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),c(5),p(6,"translate"),r()(),l(7,"div",1)(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",2),Se(13,jue,2,2,"mat-option",3,Pe),r()(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",4),Se(20,$ue,2,2,"mat-option",3,Pe),r()(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),l(26,"mat-select",4),Se(27,Uue,2,2,"mat-option",3,Pe),r()()()(),l(29,"mat-expansion-panel")(30,"mat-expansion-panel-header")(31,"mat-panel-title"),c(32),p(33,"translate"),r()(),l(34,"div",1)(35,"span",5),c(36),p(37,"translate"),r(),b(38,"mifosx-file-upload"),l(39,"span",5),c(40),p(41,"translate"),r(),b(42,"mifosx-file-upload"),l(43,"span",5),c(44),p(45,"translate"),r(),b(46,"mifosx-file-upload"),l(47,"span",5),c(48),p(49,"translate"),r(),b(50,"mifosx-file-upload"),r()(),l(51,"mat-expansion-panel")(52,"mat-expansion-panel-header")(53,"mat-panel-title"),c(54),p(55,"translate"),r()(),l(56,"div",1)(57,"span",5),c(58),p(59,"translate"),r(),b(60,"mifosx-theme-picker"),l(61,"mat-form-field")(62,"mat-label"),c(63),p(64,"translate"),r(),l(65,"mat-select"),Se(66,Wue,2,2,"mat-option",3,Pe),r()()()(),l(68,"mat-expansion-panel")(69,"mat-expansion-panel-header")(70,"mat-panel-title"),c(71),p(72,"translate"),r()(),l(73,"div",1)(74,"mat-form-field")(75,"mat-label"),c(76),p(77,"translate"),r(),b(78,"input",6),r(),l(79,"mat-form-field")(80,"mat-label"),c(81),p(82,"translate"),r(),b(83,"input",7),r(),l(84,"mat-form-field")(85,"mat-label"),c(86),p(87,"translate"),r(),b(88,"input",8),r()()()()()),n&2&&(a(5),v(" ",m(6,20,"labels.inputs.Main Configuration")," "),a(5),h(m(11,22,"labels.inputs.Default Language")),a(2),g("formControl",i.language)("compareWith",i.compareOptions),a(),we(i.languages),a(4),h(m(18,24,"labels.inputs.Default Date Format")),a(2),g("formControl",i.dateFormat),a(),we(i.dateFormats),a(4),h(m(25,26,"labels.inputs.Decimals to Display")),a(2),g("formControl",i.decimalsToDisplay),a(),we(i.decimals),a(5),v(" ",m(33,28,"labels.inputs.Images")," "),a(4),h(m(37,30,"labels.inputs.Favicon")),a(4),h(m(41,32,"labels.inputs.Cover Image")),a(4),h(m(45,34,"labels.inputs.Logo")),a(4),h(m(49,36,"labels.inputs.Logo with Organization Name")),a(6),v(" ",m(55,38,"labels.inputs.Theme and Font")," "),a(4),h(m(59,40,"labels.inputs.Theme")),a(5),h(m(64,42,"labels.inputs.Default Font")),a(3),we(i.fonts),a(5),v(" ",m(72,44,"labels.inputs.Contact Information")," "),a(5),h(m(77,46,"labels.inputs.Website")),a(5),h(m(82,48,"labels.inputs.Email")),a(5),h(m(87,50,"labels.inputs.Contact No")))},dependencies:[ue,fe,$e,_n,Fe,Be,ze,gt,ft,Dr,Pr,Tr,Mr,wp,ZF,he],styles:[".header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var Que=[_o.withShell([{path:"settings",component:TC,data:{title:"Settings",breadcrumb:"Settings"}}])],y9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(Que),gn]})}}return e})();var S9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,y9,TC]})}}return e})();var MC=(()=>{class e{constructor(){this.http=T(ko)}getOffices(){return this.http.get("/offices")}getEmployees(t){let n=new rn().set("officeId",t.toString());return this.http.get("/staff",{params:n})}getCentersFromStaffId(t){let n=new rn().set("R_staffId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/GroupNamesByStaff",{params:n})}getCenter(t){let n=new rn().set("associations","groupMembers");return this.http.get(`/centers/${t}`,{params:n})}getCenterAccounts(t){return this.http.get(`/centers/${t}/accounts`)}getCenterSummary(t){let n=new rn().set("R_groupId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:n})}getGroup(t){let n=new rn().set("associations","all");return this.http.get(`/groups/${t}`,{params:n})}getGroupAccounts(t){return this.http.get(`/groups/${t}/accounts`)}getClient(t){return this.http.get(`/clients/${t}`)}getClientAccounts(t){return this.http.get(`/clients/${t}/accounts`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Yue(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.External Id")," "))}function Jue(e,o){if(e&1&&(l(0,"div",5),b(1,"mifosx-external-identifier",6),r()),e&2){let t=w();a(),g("externalId",Le(t.officeData.externalId))}}var zf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-office-navigation"]],inputs:{officeData:"officeData",employeeData:"employeeData"},decls:21,vars:13,consts:[[1,"layout-row","align-items-center","gap-10px"],["icon","building","size","3x"],[1,"flex-fill"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"externalId"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group",2)(3,"mat-card-title")(4,"h2"),c(5),r()()()(),l(6,"mat-card-content")(7,"div",3),E(8,Yue,3,3,"div",4),E(9,Jue,2,2,"div",5),l(10,"div",4),c(11),p(12,"translate"),r(),l(13,"div",5),c(14),p(15,"dateFormat"),r(),l(16,"div",4),c(17),p(18,"translate"),r(),l(19,"div",5),c(20),r()()()),n&2&&(a(5),h(i.officeData.name),a(3),I(i.officeData.externalId?8:-1),a(),I(i.officeData.externalId?9:-1),a(2),v(" ",m(12,7,"labels.inputs.Opened On")," "),a(3),v(" ",m(15,9,i.officeData.openingDate)," "),a(3),v(" ",m(18,11,"labels.inputs.Number of Staff")," "),a(3),v(" ",i.employeeData?i.employeeData.length:""," "))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,Da,Pi,he],styles:["mat-card-header[_ngcontent-%COMP%]{padding:1.5rem 1.5rem 1rem}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:500;font-size:1.5rem;margin:0;line-height:1.4}@media (width <= 480px){mat-card-header[_ngcontent-%COMP%]{padding:1rem}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.25rem}}mat-card-content[_ngcontent-%COMP%]{padding:1.5rem}mat-card-content[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%}@media (width <= 768px){mat-card-content[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{grid-template-columns:100%}}mat-card-content[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.625rem 0;display:flex;align-items:center;font-size:.875rem;word-wrap:break-word;line-height:1.6}mat-card-content[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{font-weight:600}mat-card-content[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]:not(:last-child,:nth-last-child(2)){border-bottom:1px solid #ddd}@media (width <= 480px){mat-card-content[_ngcontent-%COMP%]{padding:1rem}}"]})}}return e})();function Kue(e,o){e&1&&(l(0,"div",6),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Mobile Number")," "))}function Xue(e,o){if(e&1&&(l(0,"div",7),c(1),r()),e&2){let t=w();a(),v(" ",t.employeeData.mobileNo," ")}}var Hf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-staff-navigation"]],inputs:{employeeData:"employeeData",centerData:"centerData"},decls:34,vars:26,consts:[[1,"layout-row","gap-5percent","header"],["icon","user","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),b(8,"fa-icon",4),r()()(),l(9,"mat-card-subtitle")(10,"p"),c(11),p(12,"translate"),r()()()()(),l(13,"mat-card-content")(14,"div",5)(15,"div",6),c(16),p(17,"translate"),r(),l(18,"div",7),c(19),p(20,"dateFormat"),r(),l(21,"div",6),c(22),p(23,"translate"),r(),l(24,"div",7),c(25),p(26,"yesNo"),r(),E(27,Kue,3,3,"div",6),E(28,Xue,2,1,"div",7),l(29,"div",6),c(30),p(31,"translate"),r(),l(32,"div",7),c(33),r()()()),n&2&&(a(6),v(" ",i.employeeData.displayName," "),a(),g("className",i.employeeData.isActive===!0?"true":"false"),a(),g("matTooltip",Le(i.employeeData.isActive===!0?"Active":"Inactive")),a(3),le("",m(12,14,"labels.inputs.Associated Office"),": ",i.employeeData.officeName),a(5),v(" ",m(17,16,"labels.inputs.Joined On")," "),a(3),v(" ",m(20,18,i.employeeData.joiningDate)," "),a(3),v(" ",m(23,20,"labels.inputs.Loan Officer")," "),a(3),v(" ",m(26,22,i.employeeData.isLoanOfficer)," "),a(2),I(i.employeeData.mobileNo?27:-1),a(),I(i.employeeData.mobileNo?28:-1),a(2),v(" ",m(31,24,"labels.inputs.Number of Centers")," "),a(3),v(" ",i.centerData?i.centerData.length:""," "))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,Pi,he,po],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Zue=()=>[10,25];function efe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function tfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function ife(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Account")))}function nfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function ofe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function afe(e,o){if(e&1&&(l(0,"td",16),b(1,"fa-icon",18),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.loanType.value))("icon",t.loanType.code==="accountType.individual"?"user":"users")}}function rfe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function lfe(e,o){if(e&1&&(l(0,"td",16)(1,"span",19),p(2,"statusLookup"),b(3,"fa-icon",20),r()()),e&2){let t=o.$implicit;a(),g("className",t.inArrears?"status-active-overdue":m(2,3,t.status.code)),a(2),g("matTooltip",Le(t.status.value))}}function sfe(e,o){e&1&&b(0,"tr",21)}function cfe(e,o){e&1&&b(0,"tr",22)}var Ns=(()=>{class e{constructor(){this.accountsFilterPipe=T(os),this.displayedColumns=["accountNo","productName","Type","Status"],this.showClosed=!1}set loanAccountData(t){this.accountData=t;let n=this.accountsFilterPipe.transform(t,"loan",this.showClosed?"closed":"open","isLoan");this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleClosed(){this.showClosed=!this.showClosed;let t=this.accountsFilterPipe.transform(this.accountData,"loan",this.showClosed?"closed":"open","isLoan");this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-account-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{loanAccountData:"loanAccountData"},decls:24,vars:9,consts:[[1,"layout-row","align-between","align-items-center"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","Type"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","Status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["matTooltipPosition","right","size","lg",3,"matTooltip","icon"],[3,"className"],["matTooltipPosition","right","icon","circle","size","md",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(6,"button",3),R("click",function(){return i.toggleClosed()}),c(7),r()(),l(8,"table",4),X(9,5),F(10,efe,3,3,"th",6)(11,tfe,2,1,"td",7),Z(),X(12,8),F(13,ife,3,3,"th",6)(14,nfe,2,1,"td",7),Z(),X(15,9),F(16,ofe,3,3,"th",10)(17,afe,2,3,"td",7),Z(),X(18,11),F(19,rfe,3,3,"th",10)(20,lfe,4,5,"td",7),Z(),F(21,sfe,1,0,"tr",12)(22,cfe,1,0,"tr",13),r(),b(23,"mat-paginator",14)),n&2&&(a(3),h(m(4,6,"labels.inputs.Filter")),a(4),v(" ",i.showClosed?"View Active":"View Closed"," "),a(),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Zue)))},dependencies:[ue,fe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var pfe=()=>[10,25];function mfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function dfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function ufe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Savings Account")))}function ffe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function hfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function gfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function _fe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function Cfe(e,o){if(e&1&&(l(0,"td",16)(1,"span",18),p(2,"statusLookup"),b(3,"fa-icon",19),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.status.code)),a(2),g("matTooltip",Le(t.status.value))}}function vfe(e,o){e&1&&b(0,"tr",20)}function xfe(e,o){e&1&&b(0,"tr",21)}var Ls=(()=>{class e{constructor(){this.accountsFilterPipe=T(os),this.displayedColumns=["accountNo","productName","accountBalance","Status"],this.showClosed=!1}set savingsAccountData(t){this.accountData=t;let n=this.accountsFilterPipe.transform(t,"saving",this.showClosed?"closed":"open","isSavings");this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleClosed(){this.showClosed=!this.showClosed;let t=this.accountsFilterPipe.transform(this.accountData,"saving",this.showClosed?"closed":"open","isSavings");this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-savings-account-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{savingsAccountData:"savingsAccountData"},decls:24,vars:9,consts:[[1,"layout-row","align-between","align-items-center"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","accountBalance"],["matColumnDef","Status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","md",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(6,"button",3),R("click",function(){return i.toggleClosed()}),c(7),r()(),l(8,"table",4),X(9,5),F(10,mfe,3,3,"th",6)(11,dfe,2,1,"td",7),Z(),X(12,8),F(13,ufe,3,3,"th",6)(14,ffe,2,1,"td",7),Z(),X(15,9),F(16,hfe,3,3,"th",6)(17,gfe,2,1,"td",7),Z(),X(18,10),F(19,_fe,3,3,"th",11)(20,Cfe,4,5,"td",7),Z(),F(21,vfe,1,0,"tr",12)(22,xfe,1,0,"tr",13),r(),b(23,"mat-paginator",14)),n&2&&(a(3),h(m(4,6,"labels.inputs.Filter")),a(4),v(" ",i.showClosed?"View Active":"View Closed"," "),a(),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,pfe)))},dependencies:[ue,fe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();function bfe(e,o){if(e&1&&(l(0,"p"),c(1),p(2,"translate"),b(3,"mifosx-external-identifier",13),r()),e&2){let t=w();a(),v(" ",m(2,3,"labels.inputs.External Id"),": "),a(2),g("externalId",Le(t.centerData.externalId))}}function yfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Clients")," "))}function Sfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClients," ")}}function wfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Client Loans")," "))}function Pfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientLoans," ")}}function Tfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Client Borrowers")," "))}function Mfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientBorrowers," ")}}function Dfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Overdue Group Loans")," "))}function Efe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueGroupLoans," ")}}function Ife(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Overdue Client Loans")," "))}function Ofe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueClientLoans," ")}}function Afe(e,o){e&1&&(l(0,"div",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Next Meeting Date")," "))}function Ffe(e,o){if(e&1&&(l(0,"div",9),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.centerSummaryData.collectionMeetingCalendar.nextTenRecurringDates[0])," ")}}function kfe(e,o){e&1&&(l(0,"div",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Meeting Frequency")," "))}function Bfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.collectionMeetingCalendar.humanReadable," ")}}function Rfe(e,o){if(e&1&&(l(0,"mat-tab",11),b(1,"mifosx-loan-account-table",14),r()),e&2){let t=w();a(),g("loanAccountData",t.centerAccountsData.loanAccounts)}}function Nfe(e,o){if(e&1&&(l(0,"mat-tab",12),b(1,"mifosx-savings-account-table",15),r()),e&2){let t=w();a(),g("savingsAccountData",t.centerAccountsData.savingsAccounts)}}var Gf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(Ns,5),Ee(Ls,5)),n&2){let s;Te(s=Me())&&(i.loanAccountTableComponent=s.first),Te(s=Me())&&(i.savingsAccountTableComponent=s.first)}},inputs:{centerData:"centerData",centerAccountsData:"centerAccountsData",centerSummaryData:"centerSummaryData",groupData:"groupData"},decls:52,vars:42,consts:[[1,"layout-row","gap-5percent","header"],["icon","building","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],[3,"accountNo"],["label","Details"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"mat-body-strong","flex-50"],["label","Loan Accounts"],["label","Savings Accounts"],[3,"externalId"],[3,"loanAccountData"],[3,"savingsAccountData"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),p(8,"statusLookup"),b(9,"fa-icon",4),r()()(),l(10,"mat-card-subtitle")(11,"p"),c(12),p(13,"translate"),b(14,"mifosx-account-number",5),r(),E(15,bfe,4,5,"p"),r()()()(),l(16,"mat-card-content")(17,"mat-tab-group")(18,"mat-tab",6)(19,"div",7)(20,"div",8),c(21),p(22,"translate"),r(),l(23,"div",9),c(24),p(25,"dateFormat"),r(),l(26,"div",8),c(27),p(28,"translate"),r(),l(29,"div",9),c(30),r(),E(31,yfe,3,3,"div",8),E(32,Sfe,2,1,"div",9),E(33,wfe,3,3,"div",8),E(34,Pfe,2,1,"div",9),E(35,Tfe,3,3,"div",8),E(36,Mfe,2,1,"div",9),E(37,Dfe,3,3,"div",8),E(38,Efe,2,1,"div",9),E(39,Ife,3,3,"div",8),E(40,Ofe,2,1,"div",9),E(41,Afe,3,3,"div",10),E(42,Ffe,3,3,"div",9),E(43,kfe,3,3,"div",10),E(44,Bfe,2,1,"div",9),l(45,"div",8),c(46),p(47,"translate"),r(),l(48,"div",9),c(49),r()()(),E(50,Rfe,2,1,"mat-tab",11),E(51,Nfe,2,1,"mat-tab",12),r()()),n&2&&(a(6),v(" ",i.centerData.name," "),a(),g("className",m(8,30,i.centerData.status.code)),a(2),g("matTooltip",Le(i.centerData.status.value)),a(3),v(" ",m(13,32,"labels.inputs.Account No"),": "),a(2),g("accountNo",Le(i.centerData.accountNo)),a(),I(i.centerData.externalId?15:-1),a(6),v(" ",m(22,34,"labels.inputs.Activation Date")," "),a(3),v(" ",m(25,36,i.centerData.activationDate)," "),a(3),v(" ",m(28,38,"labels.inputs.Associated Officer")," "),a(3),v(" ",i.centerData.staffName," "),a(),I(i.centerSummaryData?31:-1),a(),I(i.centerSummaryData?32:-1),a(),I(i.centerSummaryData?33:-1),a(),I(i.centerSummaryData?34:-1),a(),I(i.centerSummaryData?35:-1),a(),I(i.centerSummaryData?36:-1),a(),I(i.centerSummaryData?37:-1),a(),I(i.centerSummaryData?38:-1),a(),I(i.centerSummaryData?39:-1),a(),I(i.centerSummaryData?40:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.nextTenRecurringDates[0]?41:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.nextTenRecurringDates[0]?42:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.humanReadable?43:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.humanReadable?44:-1),a(2),v(" ",m(47,40,"labels.inputs.Number of Groups")," "),a(3),v(" ",i.groupData?i.groupData.length:""," "),a(),I(i.centerAccountsData&&i.centerAccountsData.loanAccounts?50:-1),a(),I(i.centerAccountsData&&i.centerAccountsData.savingsAccounts?51:-1))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,rc,Da,Nr,Qr,Ns,Ls,Pi,he,go],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function Lfe(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Associated Center")," "))}function Vfe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.centerName," ")}}function qfe(e,o){e&1&&(l(0,"div",9),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Next Meeting Date")," "))}function zfe(e,o){if(e&1&&(l(0,"div",8),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.groupData.collectionMeetingCalendar.nextTenRecurringDates[0])," ")}}function Hfe(e,o){e&1&&(l(0,"div",9),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Meeting Frequency")," "))}function Gfe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.collectionMeetingCalendar.humanReadable," ")}}function jfe(e,o){if(e&1&&(l(0,"mat-tab",10),b(1,"mifosx-loan-account-table",12),r()),e&2){let t=w();a(),g("loanAccountData",t.groupAccountsData.loanAccounts)}}function $fe(e,o){if(e&1&&(l(0,"mat-tab",11),b(1,"mifosx-savings-account-table",13),r()),e&2){let t=w();a(),g("savingsAccountData",t.groupAccountsData.savingsAccounts)}}var jf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(Ns,5),Ee(Ls,5)),n&2){let s;Te(s=Me())&&(i.loanAccountTableComponent=s.first),Te(s=Me())&&(i.savingsAccountTableComponent=s.first)}},inputs:{groupData:"groupData",groupAccountsData:"groupAccountsData",clientData:"clientData"},decls:42,vars:33,consts:[[1,"layout-row","gap-5percent"],["icon","users","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["label","Details"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"mat-body-strong","flex-50"],["label","Loan Accounts"],["label","Savings Accounts"],[3,"loanAccountData"],[3,"savingsAccountData"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),p(8,"statusLookup"),b(9,"fa-icon",4),r()()(),l(10,"mat-card-subtitle")(11,"p"),c(12),p(13,"translate"),r()()()()(),l(14,"mat-card-content")(15,"mat-tab-group")(16,"mat-tab",5)(17,"div",6)(18,"div",7),c(19),p(20,"translate"),r(),l(21,"div",8),c(22),p(23,"dateFormat"),r(),l(24,"div",7),c(25),p(26,"translate"),r(),l(27,"div",8),c(28),r(),E(29,Lfe,3,3,"div",7),E(30,Vfe,2,1,"div",8),E(31,qfe,3,3,"div",9),E(32,zfe,3,3,"div",8),E(33,Hfe,3,3,"div",9),E(34,Gfe,2,1,"div",8),l(35,"div",7),c(36),p(37,"translate"),r(),l(38,"div",8),c(39),r()()(),E(40,jfe,2,1,"mat-tab",10),E(41,$fe,2,1,"mat-tab",11),r()()),n&2&&(a(6),v(" ",i.groupData.name," "),a(),g("className",m(8,21,i.groupData.status.code)),a(2),g("matTooltip",Le(i.groupData.status.value)),a(3),ea(" ",m(13,23,"labels.inputs.Account No"),": ",i.groupData.accountNo," ",i.groupData.externalId?"| External ID: "+i.groupData.externalId:""," "),a(7),v(" ",m(20,25,"labels.inputs.Activation Date")," "),a(3),v(" ",m(23,27,i.groupData.activationDate)," "),a(3),v(" ",m(26,29,"labels.inputs.Associated Officer")," "),a(3),v(" ",i.groupData.staffName," "),a(),I(i.groupData.centerName?29:-1),a(),I(i.groupData.centerName?30:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.nextTenRecurringDates[0]?31:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.nextTenRecurringDates[0]?32:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.humanReadable?33:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.humanReadable?34:-1),a(2),v(" ",m(37,31,"labels.inputs.Number of Clients")," "),a(3),v(" ",i.clientData?i.clientData.length:""," "),a(),I(i.groupAccountsData&&i.groupAccountsData.loanAccounts?40:-1),a(),I(i.groupAccountsData&&i.groupAccountsData.savingsAccounts?41:-1))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,Nr,Qr,Ns,Ls,Pi,he,go],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Ufe=()=>[10,25];function Wfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function Qfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function Yfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Account")))}function Jfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Kfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved Shares")))}function Xfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function Zfe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function e1e(e,o){if(e&1&&(l(0,"td",16)(1,"span",18),p(2,"statusLookup"),b(3,"fa-icon",19),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.status.code)),a(2),g("matTooltip",Le(t.status.value))}}function t1e(e,o){e&1&&b(0,"tr",20)}function i1e(e,o){e&1&&b(0,"tr",21)}var $f=(()=>{class e{constructor(){this.accountsFilterPipe=T(os),this.displayedColumns=["accountNo","productName","totalApprovedShares","Status"],this.showClosed=!1}set shareAccountData(t){this.accountData=t;let n=this.accountsFilterPipe.transform(t,"share",this.showClosed?"closed":"open","isShare");this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleClosed(){this.showClosed=!this.showClosed;let t=this.accountsFilterPipe.transform(this.accountData,"share",this.showClosed?"closed":"open","isShare");this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-account-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{shareAccountData:"shareAccountData"},decls:24,vars:9,consts:[[1,"layout-row","align-between","align-items-center"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","totalApprovedShares"],["matColumnDef","Status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","md",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(6,"button",3),R("click",function(){return i.toggleClosed()}),c(7),r()(),l(8,"table",4),X(9,5),F(10,Wfe,3,3,"th",6)(11,Qfe,2,1,"td",7),Z(),X(12,8),F(13,Yfe,3,3,"th",6)(14,Jfe,2,1,"td",7),Z(),X(15,9),F(16,Kfe,3,3,"th",6)(17,Xfe,2,1,"td",7),Z(),X(18,10),F(19,Zfe,3,3,"th",11)(20,e1e,4,5,"td",7),Z(),F(21,t1e,1,0,"tr",12)(22,i1e,1,0,"tr",13),r(),b(23,"mat-paginator",14)),n&2&&(a(3),h(m(4,6,"labels.inputs.Filter")),a(4),v(" ",i.showClosed?"View Active":"View Closed"," "),a(),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Ufe)))},dependencies:[ue,fe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var n1e=()=>[10,25];function o1e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function a1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function r1e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Group Name")))}function l1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function s1e(e,o){e&1&&b(0,"tr",13)}function c1e(e,o){e&1&&b(0,"tr",14)}var Uf=(()=>{class e{set memberGroupData(t){this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}constructor(){this.displayedColumns=["accountNo","name"]}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-member-groups"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{memberGroupData:"memberGroupData"},decls:16,vars:8,consts:[[1,"layout-row"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(6,"table",3),X(7,4),F(8,o1e,3,3,"th",5)(9,a1e,2,1,"td",6),Z(),X(10,7),F(11,r1e,3,3,"th",5)(12,l1e,2,1,"td",6),Z(),F(13,s1e,1,0,"tr",8)(14,c1e,1,0,"tr",9),r(),b(15,"mat-paginator",10)),n&2&&(a(3),h(m(4,5,"labels.inputs.Filter")),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,n1e)))},dependencies:[ue,fe,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],encapsulation:2})}}return e})();function p1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.First Name")," "))}function m1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.firstName," ")}}function d1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Middle Name")," "))}function u1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.middleName," ")}}function f1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Last Name")," "))}function h1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.lastName," ")}}function g1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Date of Birth")," "))}function _1e(e,o){if(e&1&&(l(0,"div",8),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.clientData.dateOfBirth)," ")}}function C1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Mobile Number")," "))}function v1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.mobileNo," ")}}function x1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Associated Office")," "))}function b1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.officeName," ")}}function y1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Associated Staff")," "))}function S1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.staffName," ")}}function w1e(e,o){if(e&1&&(l(0,"mat-tab",9),b(1,"mifosx-loan-account-table",13),r()),e&2){let t=w();a(),g("loanAccountData",t.clientAccountsData.loanAccounts)}}function P1e(e,o){if(e&1&&(l(0,"mat-tab",10),b(1,"mifosx-savings-account-table",14),r()),e&2){let t=w();a(),g("savingsAccountData",t.clientAccountsData.savingsAccounts)}}function T1e(e,o){if(e&1&&(l(0,"mat-tab",11),b(1,"mifosx-share-account-table",15),r()),e&2){let t=w();a(),g("shareAccountData",t.clientAccountsData.shareAccounts)}}function M1e(e,o){if(e&1&&(l(0,"mat-tab",12),b(1,"mifosx-member-groups",16),r()),e&2){let t=w();a(),g("memberGroupData",t.clientData.groups)}}var Wf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(Ns,5),Ee(Ls,5),Ee($f,5),Ee(Uf,5)),n&2){let s;Te(s=Me())&&(i.loanAccountTableComponent=s.first),Te(s=Me())&&(i.savingsAccountTableComponent=s.first),Te(s=Me())&&(i.shareAccountTableComponent=s.first),Te(s=Me())&&(i.memberGroupsComponent=s.first)}},inputs:{clientData:"clientData",clientAccountsData:"clientAccountsData"},decls:42,vars:35,consts:[[1,"layout-row","gap-5percent"],["icon","user","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["label","Details"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["label","Loan Accounts"],["label","Savings Accounts"],["label","Share Accounts"],["label","Group Members"],[3,"loanAccountData"],[3,"savingsAccountData"],[3,"shareAccountData"],[3,"memberGroupData"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),p(8,"statusLookup"),b(9,"fa-icon",4),r()()(),l(10,"mat-card-subtitle")(11,"p"),c(12),p(13,"translate"),r()()()()(),l(14,"mat-card-content")(15,"mat-tab-group")(16,"mat-tab",5)(17,"div",6),E(18,p1e,3,3,"div",7),E(19,m1e,2,1,"div",8),E(20,d1e,3,3,"div",7),E(21,u1e,2,1,"div",8),E(22,f1e,3,3,"div",7),E(23,h1e,2,1,"div",8),E(24,g1e,3,3,"div",7),E(25,_1e,3,3,"div",8),E(26,C1e,3,3,"div",7),E(27,v1e,2,1,"div",8),l(28,"div",7),c(29),p(30,"translate"),r(),l(31,"div",8),c(32),p(33,"dateFormat"),r(),E(34,x1e,3,3,"div",7),E(35,b1e,2,1,"div",8),E(36,y1e,3,3,"div",7),E(37,S1e,2,1,"div",8),r()(),E(38,w1e,2,1,"mat-tab",9),E(39,P1e,2,1,"mat-tab",10),E(40,T1e,2,1,"mat-tab",11),E(41,M1e,2,1,"mat-tab",12),r()()),n&2&&(a(6),v(" ",i.clientData.displayName," "),a(),g("className",m(8,27,i.clientData.status.code)),a(2),g("matTooltip",Le(i.clientData.status.value)),a(3),ea(" ",m(13,29,"labels.inputs.Account No"),": ",i.clientData.accountNo," ",i.clientData.externalId?"| External ID: "+i.clientData.externalId:""," "),a(6),I(i.clientData.firstName?18:-1),a(),I(i.clientData.firstName?19:-1),a(),I(i.clientData.middleName?20:-1),a(),I(i.clientData.middleName?21:-1),a(),I(i.clientData.lastName?22:-1),a(),I(i.clientData.lastName?23:-1),a(),I(i.clientData.dateOfBirth?24:-1),a(),I(i.clientData.dateOfBirth?25:-1),a(),I(i.clientData.mobileNo?26:-1),a(),I(i.clientData.mobileNo?27:-1),a(2),v(" ",m(30,31,"labels.inputs.Activation Date")," "),a(3),v(" ",m(33,33,i.clientData.activationDate)," "),a(2),I(i.clientData.officeName?34:-1),a(),I(i.clientData.officeName?35:-1),a(),I(i.clientData.staffName?36:-1),a(),I(i.clientData.staffName?37:-1),a(),I(i.clientAccountsData&&i.clientAccountsData.loanAccounts?38:-1),a(),I(i.clientAccountsData&&i.clientAccountsData.savingsAccounts?39:-1),a(),I(i.clientAccountsData&&i.clientAccountsData.shareAccounts?40:-1),a(),I(i.clientData.groups&&i.clientData.groups.length!==0?41:-1))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,Nr,Qr,Ns,Ls,$f,Uf,Pi,he,go],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function D1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function E1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",4),Se(5,D1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Office")),a(2),g("formControl",t.officeSelector),a(),we(t.officeData)}}function I1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function O1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,I1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.employeeData.length?"Officer":"No Associated Officers"),a(),g("formControl",t.employeeSelector),a(),we(t.employeeData)}}function A1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function F1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,A1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.centerData.length?"Center":"No Associated Centers"),a(),g("formControl",t.centerSelector),a(),we(t.centerData)}}function k1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function B1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,k1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.groupData.length?"Group":"No Associated Groups"),a(),g("formControl",t.groupSelector),a(),we(t.groupData)}}function R1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function N1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,R1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.clientData.length?"Client":"No Associated Clients"),a(),g("formControl",t.clientSelector),a(),we(t.clientData)}}function L1e(e,o){if(e&1&&b(0,"mifosx-office-navigation",6),e&2){let t=w(2);g("officeData",t.selectedItem)("employeeData",t.employeeData)}}function V1e(e,o){if(e&1&&b(0,"mifosx-staff-navigation",7),e&2){let t=w(2);g("employeeData",t.selectedItem)("centerData",t.centerData)}}function q1e(e,o){if(e&1&&b(0,"mifosx-center-navigation",8),e&2){let t=w(2);g("centerData",t.selectedItem)("groupData",t.groupData)("centerAccountsData",t.selectedItemAccounts)("centerSummaryData",t.selectedItemSummary)}}function z1e(e,o){if(e&1&&b(0,"mifosx-group-navigation",9),e&2){let t=w(2);g("groupData",t.selectedItem)("clientData",t.clientData)("groupAccountsData",t.selectedItemAccounts)}}function H1e(e,o){if(e&1&&b(0,"mifosx-client-navigation",10),e&2){let t=w(2);g("clientData",t.selectedItem)("clientAccountsData",t.selectedItemAccounts)}}function G1e(e,o){if(e&1&&(l(0,"mat-card",3),E(1,L1e,1,2,"mifosx-office-navigation",6),E(2,V1e,1,2,"mifosx-staff-navigation",7),E(3,q1e,1,4,"mifosx-center-navigation",8),E(4,z1e,1,3,"mifosx-group-navigation",9),E(5,H1e,1,2,"mifosx-client-navigation",10),r()),e&2){let t=w();a(),I(t.selectedItem.itemType==="office"?1:-1),a(),I(t.selectedItem.itemType==="employee"?2:-1),a(),I(t.selectedItem.itemType==="center"?3:-1),a(),I(t.selectedItem.itemType==="group"?4:-1),a(),I(t.selectedItem.itemType==="client"?5:-1)}}var DC=(()=>{class e{constructor(){this.navigationService=T(MC),this.route=T(Ie),this.router=T(qe),this.officeSelector=new it,this.employeeSelector=new it,this.centerSelector=new it,this.groupSelector=new it,this.clientSelector=new it,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.setOfficeSelector(),this.setEmployeeSelector(),this.setCenterSelector(),this.setGroupSelector(),this.setClientSelector()}setOfficeSelector(){this.officeSelector.valueChanges.subscribe(t=>{this.employeeSelector.reset(null,{emitEvent:!1}),this.centerSelector.reset(null,{emitEvent:!1}),this.groupSelector.reset(null,{emitEvent:!1}),this.clientSelector.reset(null,{emitEvent:!1}),this.employeeData=null,this.centerData=null,this.groupData=null,this.clientData=null,this.selectedItem=this.officeData.find(n=>n.id===t),this.selectedItem.itemType="office",this.navigationService.getEmployees(t).subscribe(n=>{this.employeeData=n,this.employeeData.length?this.employeeSelector.enable():this.employeeSelector.disable()})})}setEmployeeSelector(){this.employeeSelector.valueChanges.subscribe(t=>{t&&(this.centerSelector.reset(null,{emitEvent:!1}),this.groupSelector.reset(null,{emitEvent:!1}),this.clientSelector.reset(null,{emitEvent:!1}),this.centerData=null,this.groupData=null,this.clientData=null,this.selectedItem=this.employeeData.find(n=>n.id===t),this.selectedItem.itemType="employee",this.navigationService.getCentersFromStaffId(t).subscribe(n=>{this.centerData=n,this.centerData.length?this.centerSelector.enable():this.centerSelector.disable()}))})}setCenterSelector(){this.centerSelector.valueChanges.subscribe(t=>{t&&(this.groupSelector.reset(null,{emitEvent:!1}),this.clientSelector.reset(null,{emitEvent:!1}),this.groupData=null,this.clientData=null,this.navigationService.getCenter(t).subscribe(n=>{this.selectedItem=n,this.selectedItem.itemType="center",this.groupData=n.groupMembers?n.groupMembers:[],this.groupData.length?this.groupSelector.enable():this.groupSelector.disable()}),this.selectedItemAccounts=null,this.navigationService.getCenterAccounts(t).subscribe(n=>{this.selectedItemAccounts=n}),this.selectedItemSummary=null,this.navigationService.getCenterSummary(t).subscribe(n=>{this.selectedItemSummary=n[0]}))})}setGroupSelector(){this.groupSelector.valueChanges.subscribe(t=>{t&&(this.clientSelector.reset(null,{emitEvent:!1}),this.clientData=null,this.navigationService.getGroup(t).subscribe(n=>{this.selectedItem=n,this.selectedItem.itemType="group",this.clientData=n.clientMembers?n.clientMembers:[],this.clientData.length?this.clientSelector.enable():this.clientSelector.disable()}),this.selectedItemAccounts=null,this.navigationService.getGroupAccounts(t).subscribe(n=>{this.selectedItemAccounts=n}))})}setClientSelector(){this.clientSelector.valueChanges.subscribe(t=>{t&&(this.selectedItemAccounts=null,this.navigationService.getClient(t).subscribe(n=>{this.selectedItem=n,this.selectedItem.itemType="client"}),this.navigationService.getClientAccounts(t).subscribe(n=>{this.selectedItemAccounts=n}))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(zf,5),Ee(Hf,5),Ee(Gf,5),Ee(jf,5),Ee(Wf,5)),n&2){let s;Te(s=Me())&&(i.officeNavigationComponent=s.first),Te(s=Me())&&(i.staffNavigationComponent=s.first),Te(s=Me())&&(i.centerNavigationComponent=s.first),Te(s=Me())&&(i.groupNavigationComponent=s.first),Te(s=Me())&&(i.clientNavigationComponent=s.first)}},decls:12,vars:6,consts:[[1,"container"],[1,"layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-48"],[1,"layout-column"],[3,"formControl"],[3,"value"],[3,"officeData","employeeData"],[3,"employeeData","centerData"],[3,"centerData","groupData","centerAccountsData","centerSummaryData"],[3,"groupData","clientData","groupAccountsData"],[3,"clientData","clientAccountsData"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-card",3)(4,"mat-card-content",3),E(5,E1e,7,4,"mat-form-field"),E(6,O1e,6,2,"mat-form-field"),E(7,F1e,6,2,"mat-form-field"),E(8,B1e,6,2,"mat-form-field"),E(9,N1e,6,2,"mat-form-field"),r()()(),l(10,"div",2),E(11,G1e,6,5,"mat-card",3),r()()()),n&2&&(a(5),I(i.officeData===void 0||i.officeData===null?-1:5),a(),I(i.employeeData===void 0||i.employeeData===null?-1:6),a(),I(i.centerData===void 0||i.centerData===null?-1:7),a(),I(i.groupData===void 0||i.groupData===null?-1:8),a(),I(i.clientData===void 0||i.clientData===null?-1:9),a(2),I(i.selectedItem?11:-1))},dependencies:[ue,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,zf,Hf,Gf,jf,Wf,he],styles:["[_nghost-%COMP%]{display:block}.container[_ngcontent-%COMP%]{width:100%}.layout-row-wrap.responsive-column[_ngcontent-%COMP%]{align-items:flex-start}.flex-48[_ngcontent-%COMP%]{min-width:20rem}@media (width >= 1200px){.flex-48[_ngcontent-%COMP%]{flex-basis:48%}}mat-card[_ngcontent-%COMP%]{padding:1rem;border-radius:.5rem;overflow:hidden}mat-card-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}@media (width >= 768px){mat-card-content[_ngcontent-%COMP%]{grid-template-columns:50% 50%}}@media (width >= 1200px){mat-card-content[_ngcontent-%COMP%]{grid-template-columns:50% 50%;gap:1rem}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-label[_ngcontent-%COMP%]{letter-spacing:.0125rem}"]})}}return e})();var OM=(()=>{class e{constructor(){this.navigationService=T(MC)}resolve(){return this.navigationService.getOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var j1e=[_o.withShell([{path:"navigation",component:DC,data:{title:"Navigation",breadcrumb:"Navigation"},resolve:{offices:OM}}])],w9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[OM],imports:[gn.forChild(j1e),gn]})}}return e})();var P9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,w9,DC,zf,Hf,Gf,jf,Wf,Ns,$f,Ls,Uf]})}}return e})();var $1e=["showClosedAccounts"],U1e=()=>[5,50,100],W1e=()=>["../","organization","bulk-import","Clients"],Q1e=()=>["create"],Y1e=e=>[e,"general"];function J1e(e,o){e&1&&(l(0,"div",6)(1,"mat-checkbox",26,0),c(3),p(4,"translate"),r()()),e&2&&(a(3),v("",m(4,1,"labels.inputs.Show Closed Accounts")," "))}function K1e(e,o){e&1&&(l(0,"button",27),b(1,"fa-icon",28),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,W1e)),a(2),v("",m(3,2,"labels.buttons.Import Client")," "))}function X1e(e,o){e&1&&(l(0,"button",27),b(1,"fa-icon",29),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Q1e)),a(2),v("",m(3,2,"labels.buttons.Create Client")," "))}function Z1e(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",30),r())}function ehe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function the(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,Y1e,t.id)),a(),h(t.displayName)}}function ihe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function nhe(e,o){if(e&1&&(l(0,"td",33),b(1,"mifosx-account-number",34),r()),e&2){let t=o.$implicit;a(),g("accountNo",Le(t.accountNumber))}}function ohe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function ahe(e,o){if(e&1&&(l(0,"td",33),b(1,"mifosx-external-identifier",35),r()),e&2){let t=o.$implicit;a(),g("externalId",Le(t.externalId))}}function rhe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function lhe(e,o){if(e&1&&(l(0,"td",33)(1,"div",37),p(2,"statusLookup"),b(3,"fa-icon",38),l(4,"span",39),c(5),p(6,"translate"),r()()()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,2,t.status.code)),a(4),v(" ",m(6,4,t.status.value)," ")}}function she(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function che(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function phe(e,o){e&1&&b(0,"tr",40)}function mhe(e,o){e&1&&b(0,"tr",41)}var EC=(()=>{class e{constructor(){this.clientService=T(Oi),this.displayedColumns=["displayName","accountNumber","externalId","status","officeName"],this.dataSource=new Wt,this.existsClientsToFilter=!1,this.notExistsClientsToFilter=!1,this.isLoading=!1,this.pageSize=50,this.currentPage=0,this.filterText="",this.sortAttribute="",this.sortDirection=""}ngOnInit(){un.preloadClients&&this.getClients()}search(t){this.filterText=t,this.resetPaginator(),this.getClients()}getClients(){this.isLoading=!0,this.clientService.searchByText(this.filterText,this.currentPage,this.pageSize,this.sortAttribute,this.sortDirection).subscribe(t=>{this.dataSource.data=t.content,this.totalRows=t.totalElements,this.existsClientsToFilter=t.numberOfElements>0,this.notExistsClientsToFilter=!this.existsClientsToFilter,this.isLoading=!1},t=>{this.isLoading=!1})}pageChanged(t){this.pageSize=t.pageSize,this.currentPage=t.pageIndex,this.getClients()}sortChanged(t){t.direction===""?(this.sortDirection="",this.sortAttribute=""):(this.sortAttribute=t.active,this.sortDirection=t.direction),this.resetPaginator(),this.getClients()}resetPaginator(){this.currentPage=0,this.paginator.firstPage()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-clients"]],viewQuery:function(n,i){if(n&1&&(Ee($1e,5),Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.showClosedAccounts=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:16,consts:[["showClosedAccounts",""],[1,"container"],[1,"layout-column","layout-gt-sm-row","align-gt-sm-start-center"],[1,"search-box","m-r-30"],[1,"search-box"],["matInput","","placeholder","Search by client name, external Id, mobile",1,"search-box",3,"keydown.enter"],[1,"filter-box"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"client-list",3,"hidden"],["mat-table","","matSort","",1,"bordered-table",3,"matSortChange","dataSource"],["matColumnDef","displayName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"routerLink",4,"matCellDef"],["matColumnDef","accountNumber"],["mat-cell","",4,"matCellDef"],["matColumnDef","externalId"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"page","pageSize","pageSizeOptions","length"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["labelPosition","after",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","download",1,"m-r-20"],["icon","plus",1,"m-r-20"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"routerLink"],["mat-cell",""],["display","left",3,"accountNo"],["display","left",3,"externalId"],["mat-header-cell",""],[3,"ngClass"],["icon","stop"],[1,"m-l-10","status"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){n&1&&(l(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),R("keydown.enter",function(d){return i.search(d.target.value)}),r()()(),E(5,J1e,5,3,"div",6),l(6,"div",7),F(7,K1e,4,5,"button",8)(8,X1e,4,5,"button",8),r()(),l(9,"div",9),E(10,Z1e,2,0,"div"),l(11,"table",10),R("matSortChange",function(d){return i.sortChanged(d)}),X(12,11),F(13,ehe,3,3,"th",12)(14,the,2,4,"td",13),Z(),X(15,14),F(16,ihe,3,3,"th",12)(17,nhe,2,2,"td",15),Z(),X(18,16),F(19,ohe,3,3,"th",12)(20,ahe,2,2,"td",15),Z(),X(21,17),F(22,rhe,3,3,"th",18)(23,lhe,7,6,"td",15),Z(),X(24,19),F(25,she,3,3,"th",18)(26,che,2,1,"td",15),Z(),F(27,phe,1,0,"tr",20)(28,mhe,1,0,"tr",21),r(),l(29,"mat-paginator",22),R("page",function(d){return i.pageChanged(d)}),r()(),l(30,"div",23)(31,"div",24),b(32,"i",25),c(33),p(34,"translate"),r()()()),n&2&&(a(5),I(i.existsClientsToFilter?5:-1),a(2),g("mifosxHasPermission","CREATE_CLIENT"),a(),g("mifosxHasPermission","CREATE_CLIENT"),a(),g("hidden",!i.existsClientsToFilter),a(),I(i.isLoading?10:-1),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSize",i.pageSize)("pageSizeOptions",oe(15,U1e))("length",i.totalRows),a(),g("hidden",!i.notExistsClientsToFilter),a(3),v(" ",m(34,13,"labels.text.No client was found")," "))},dependencies:[ue,co,fe,Oe,Ue,Fe,ze,xe,fi,Ke,ke,ns,_t,It,xt,vt,bt,ri,Ct,yt,rc,Da,St,Pt,wt,Tt,kt,he,go],styles:[".container[_ngcontent-%COMP%]{padding:24px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px;flex-wrap:nowrap;gap:20px}.container[_ngcontent-%COMP%] .layout-column.align-gt-sm-start-center[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row.align-gt-sm-start-center[_ngcontent-%COMP%]{align-items:center;justify-content:flex-start}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;flex:1;min-width:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:200px;flex:1}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%]{width:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0;margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:25px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%]{width:100%;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;margin-top:16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;border-bottom:1px solid #e0e0e0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #f0f0f0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.container[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;margin-top:0}.container[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:0}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:16px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;margin-right:0!important;margin-bottom:15px;flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:150px;margin-bottom:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:0;width:100%;justify-content:center}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:15px}}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.m-r-10[_ngcontent-%COMP%]{margin-right:10px!important}.m-r-20[_ngcontent-%COMP%]{margin-right:20px!important}.m-r-30[_ngcontent-%COMP%]{margin-right:30px!important}"]})}}return e})();var dhe=()=>({confirm:!0}),IC=(()=>{class e{constructor(){this.dialogRef=T(eo)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-unassign-staff-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"p"),c(5),p(6,"translate"),r()(),l(7,"mat-dialog-actions",2)(8,"button",3),c(9),p(10,"translate"),r(),l(11,"button",4),c(12),p(13,"translate"),r()()),n&2&&(a(),h(m(2,5,"labels.heading.Unassign Staff")),a(4),v("",m(6,7,"labels.text.Unassign Staff client")," ?"),a(4),h(m(10,9,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",oe(13,dhe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var OC=(()=>{class e{constructor(){this.dialogRef=T(eo)}onFileSelect(t){t.target.files.length>0&&(this.signature=t.target.files[0])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-upload-signature-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["flex","60%","acceptFilter",".png,.jpeg,.jpg",3,"change"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div")(4,"mifosx-file-upload",1),R("change",function(d){return i.onFileSelect(d)}),r(),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),l(9,"button",4),c(10),p(11,"translate"),r()()()),n&2&&(a(),h(m(2,5,"labels.heading.Upload Client Signature")),a(6),h(m(8,7,"labels.buttons.Cancel")),a(2),g("disabled",!i.signature)("mat-dialog-close",i.signature),a(),v(" ",m(11,9,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,wp,Nn,Un,he],encapsulation:2})}}return e})();var G9=Ds(H9());var Ghe=()=>({delete:!0}),jhe=()=>({upload:!0});function $he(e,o){if(e&1&&(l(0,"div",1),b(1,"img",6),r()),e&2){let t=w();a(),g("src",t.signatureImage,f0)}}function Uhe(e,o){e&1&&(l(0,"div",1)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.Client Signature is not provided.")))}function Whe(e,o){e&1&&(l(0,"button",4),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Ghe)),a(),v(" ",m(2,2,"labels.buttons.Delete")," "))}function Qhe(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,jhe)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var BC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.clientsService=T(Oi),this.sanitizer=T(Zs),this.data=T(Po);let t=this.data.documents.find(n=>n.name==="clientSignature")||{};this.signatureId=t.id,this.clientId=this.data.id}ngOnInit(){this.signatureId&&this.clientsService.getClientSignatureImage(this.clientId,this.signatureId).subscribe(t=>qn(this,null,function*(){let n=G9.Buffer.from(yield t.arrayBuffer());this.signatureImage="data:"+t.type+";base64,"+n.toString("base64")}),t=>{})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-signature-dialog"]],decls:11,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"],["alt","Signature",3,"src"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),E(3,$he,2,1,"div",1),E(4,Uhe,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,Whe,3,5,"button",4),E(10,Qhe,3,5,"button",5),r()),n&2&&(a(),h(m(2,6,"labels.heading.View Client Signature")),a(2),I(i.signatureId?3:-1),a(),I(i.signatureId?-1:4),a(3),h(m(8,8,"labels.buttons.Close")),a(2),I(i.signatureId?9:-1),a(),I(i.signatureId?-1:10))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var Yhe=e=>({delete:!0,id:e}),Jhe=()=>({upload:!0});function Khe(e,o){e&1&&(l(0,"div",1)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),v("",m(3,1,"labels.text.Delete clients signature")," ?"))}function Xhe(e,o){e&1&&(l(0,"div",1)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.Client Signature is not provided.")))}function Zhe(e,o){if(e&1&&(l(0,"button",4),c(1),p(2,"translate"),r()),e&2){let t=w();g("mat-dialog-close",Nt(4,Yhe,t.signatureId)),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}function ege(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Jhe)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var RC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po);let t=this.data.find(n=>n.name==="clientSignature")||{};this.signatureId=t.id}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-delete-signature-dialog"]],decls:11,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),E(3,Khe,4,3,"div",1),E(4,Xhe,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,Zhe,3,6,"button",4),E(10,ege,3,5,"button",5),r()),n&2&&(a(),h(m(2,6,"labels.heading.Delete Client Signature")),a(2),I(i.signatureId?3:-1),a(),I(i.signatureId?-1:4),a(3),h(m(8,8,"labels.buttons.Cancel")),a(2),I(i.signatureId?9:-1),a(),I(i.signatureId?-1:10))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var NC=(()=>{class e{constructor(){this.dialogRef=T(eo)}onFileSelect(t){t.target.files.length>0&&(this.image=t.target.files[0])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-upload-image-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["flex","60%","acceptFilter",".png,.jpeg,.jpg",3,"change"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div")(4,"mifosx-file-upload",1),R("change",function(d){return i.onFileSelect(d)}),r(),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),l(9,"button",4),c(10),p(11,"translate"),r()()()),n&2&&(a(),h(m(2,5,"labels.heading.Upload Client Image")),a(6),h(m(8,7,"labels.buttons.Cancel")),a(2),g("disabled",!i.image)("mat-dialog-close",i.image),a(),v(" ",m(11,9,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,wp,Nn,Un,he],encapsulation:2})}}return e})();var tge=["video"],ige=["canvas"],nge=["fallback"],oge=["captureButton"],j9=()=>({display:"none"});function age(e,o){if(e&1){let t=Y();l(0,"button",14,3),R("click",function(){V(t);let i=w();return q(i.capture())}),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Capture")," "))}function rge(e,o){if(e&1){let t=Y();l(0,"button",14),R("click",function(){V(t);let i=w();return q(i.recapture())}),b(1,"fa-icon",15),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Recapture")," "))}var LC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.renderer=T(gg),this.isCaptured=!1}ngAfterViewInit(){this.startCamera()}ngOnDestroy(){this.stopCamera()}startCamera(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){let t={width:{ideal:640},height:{ideal:480},facingMode:"user"};navigator.mediaDevices.getUserMedia({video:t}).then(n=>{this.renderer.setProperty(this.video.nativeElement,"srcObject",n),this.video.nativeElement.play()}).catch(n=>{this.handleError(n)})}else throw new Error("Cannot connect to camera")}handleError(t){this.renderer.removeStyle(this.fallback.nativeElement,"display");let n=this.renderer.createText(`${t.name}: ${t.message}`);this.renderer.appendChild(this.fallback.nativeElement,n),this.renderer.setStyle(this.video.nativeElement,"display","none"),this.renderer.setProperty(this.captureButton,"disabled","true")}stopCamera(){let t=this.video.nativeElement.srcObject;t&&t.getTracks()[0].stop(),this.renderer.setProperty(this.video.nativeElement,"srcObject",null)}capture(){this.isCaptured=!0,this.video.nativeElement.pause();let t=this.video.nativeElement.videoWidth,n=this.video.nativeElement.videoHeight;this.canvas.nativeElement.width=t,this.canvas.nativeElement.height=n,this.canvas.nativeElement.getContext("2d").drawImage(this.video.nativeElement,0,0,t,n),this.clientImageDataURL=this.canvas.nativeElement.toDataURL("image/jpeg",.9)}recapture(){this.isCaptured=!1,this.video.nativeElement.play()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-capture-image-dialog"]],viewQuery:function(n,i){if(n&1&&(Ee(tge,7),Ee(ige,7),Ee(nge,7),Ee(oge,5)),n&2){let s;Te(s=Me())&&(i.video=s.first),Te(s=Me())&&(i.canvas=s.first),Te(s=Me())&&(i.fallback=s.first),Te(s=Me())&&(i.captureButton=s.first)}},decls:20,vars:17,consts:[["video",""],["canvas",""],["fallback",""],["captureButton",""],[1,"layout-column","gap-2px"],["mat-dialog-title","","align","center"],["autoplay","",1,"capture-video"],[3,"ngStyle"],["align","center",3,"ngStyle"],["align","center",1,"flex-20"],["mat-stroked-button","","color","primary"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"],["mat-stroked-button","","color","primary",3,"click"],["icon","undo","size","sm",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",4)(1,"h1",5),c(2),p(3,"translate"),r(),b(4,"video",6,0)(6,"canvas",7,1)(8,"p",8,2),l(10,"div",9),E(11,age,4,3,"button",10),E(12,rge,4,3,"button",10),r(),l(13,"mat-dialog-actions",11)(14,"button",12),c(15),p(16,"translate"),r(),l(17,"button",13),c(18),p(19,"translate"),r()()()),n&2&&(a(2),h(m(3,9,"labels.heading.Capture Client Image")),a(4),g("ngStyle",oe(15,j9)),a(2),g("ngStyle",oe(16,j9)),a(3),I(i.isCaptured?-1:11),a(),I(i.isCaptured?12:-1),a(3),h(m(16,11,"labels.buttons.Cancel")),a(2),g("disabled",!i.isCaptured)("mat-dialog-close",i.clientImageDataURL),a(),v(" ",m(19,13,"labels.buttons.Upload")," "))},dependencies:[ue,is,fe,xe,Wn,ke,Nn,Un,he],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.capture-video[_ngcontent-%COMP%]{width:100%;max-width:640px;height:auto;object-fit:contain;border-radius:4px;background-color:#000}"]})}}return e})();var lge=()=>["./general"],sge=()=>["./address"],cge=()=>["./family-members"],pge=()=>["edit"],mge=()=>["loans-accounts","create"],dge=()=>["savings-accounts","create"],uge=()=>["shares-accounts","create"],fge=()=>["recurring-deposits-accounts","create-recurring-deposits-account"],hge=()=>["fixed-deposits-accounts","create"],gge=()=>["./identities"],_ge=()=>["./documents"],Cge=()=>["./notes"],vge=e=>["./datatables",e];function xge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.doAction("Upload Image"))}),b(2,"i",46),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Upload Image")))}function bge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.doAction("Capture Image"))}),b(2,"i",47),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Capture Image")))}function yge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.doAction("Delete Image"))}),b(2,"i",48),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete Image")))}function Sge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),c(6),p(7,"dateFormat"),r()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Activation Date")),a(3),h(m(7,4,t.clientViewData.activationDate))}}function wge(e,o){if(e&1&&(l(0,"td"),c(1),r()),e&2){let t=w();a(),h(t.clientViewData.staffName)}}function Pge(e,o){e&1&&(l(0,"td"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unassigned")))}function Tge(e,o){if(e&1&&(l(0,"span")(1,"span",49),c(2),r()()),e&2){let t=o.$implicit;a(2),h(t.name)}}function Mge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),Se(6,Tge,3,1,"span",null,Pe),r()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Member Of")),a(3),we(t.clientViewData.groups)}}function Dge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),c(6),r()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Client Type")),a(3),h(t.clientViewData.clientType.name)}}function Ege(e,o){e&1&&(l(0,"button",50)(1,"mat-icon",36),b(2,"fa-icon",51),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2&&(g("routerLink",oe(4,pge)),a(4),h(m(5,2,"labels.buttons.Edit")))}function Ige(e,o){if(e&1&&(l(0,"button",35)(1,"mat-icon",36),b(2,"fa-icon",52),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2){w();let t=ve(97);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function Oge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Assign Staff"))}),l(1,"mat-icon",36),b(2,"fa-icon",53),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Assign Staff")))}function Age(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w(2);return q(i.doAction("Unassign Staff"))}),l(1,"mat-icon",36),b(2,"fa-icon",53),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Unassign Staff")))}function Fge(e,o){e&1&&(l(0,"span"),F(1,Age,6,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_CLIENT"))}function kge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,mge)),a(),v(" ",m(2,2,"labels.buttons.New Loan Account")," "))}function Bge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,dge)),a(),v(" ",m(2,2,"labels.buttons.New Savings Account")," "))}function Rge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,uge)),a(),v(" ",m(2,2,"labels.buttons.New Share Account")," "))}function Nge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,fge)),a(),v(" ",m(2,2,"labels.buttons.New Recurring Deposit Account")," "))}function Lge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,hge)),a(),v(" ",m(2,2,"labels.buttons.New Fixed Deposits Account")," "))}function Vge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Activate"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Activate")," "))}function qge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Withdraw"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Withdraw")," "))}function zge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Reject"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),h(m(3,1,"labels.buttons.Reject")))}function Hge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w(2);return q(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function Gge(e,o){e&1&&(l(0,"span"),F(1,Hge,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENT"))}function jge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Reactivate"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reactivate")," "))}function $ge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Undo Rejection"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Rejection")," "))}function Uge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Undo Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Transfer")," "))}function Wge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Accept Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Accept Transfer")," "))}function Qge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Reject Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reject transfer")," "))}function Yge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Add Charge"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Add Charge")," "))}function Jge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Update Default Savings"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Update Default Savings")," "))}function Kge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Upload Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Upload Signature")," "))}function Xge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Delete Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete Signature")," "))}function Zge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Create Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Create Standing Instructions")," "))}function e_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w(2);return q(i.doAction("View Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.View Standing Instructions")," "))}function t_e(e,o){e&1&&(l(0,"span"),F(1,e_e,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","READ_STANDINGINSTRUCTION"))}function i_e(e,o){if(e&1&&(l(0,"a",43,8),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,gge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Identities")," ")}}function n_e(e,o){if(e&1&&(l(0,"a",43,9),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,_ge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Documents")," ")}}function o_e(e,o){if(e&1&&(l(0,"a",43,10),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,Cge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function a_e(e,o){if(e&1&&(l(0,"a",43,11),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,vge,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function r_e(e,o){if(e&1&&F(0,a_e,3,5,"a",44),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var VC=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this._sanitizer=T(Zs),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.clientViewData=t.clientViewData,this.clientDatatables=t.clientDatatables,this.clientTemplateData=t.clientTemplateData})}ngOnInit(){this.clientsService.getClientProfileImage(this.clientViewData.id).subscribe({next:t=>{t?this.clientImage=this._sanitizer.bypassSecurityTrustResourceUrl(t):this.clientImage=null},error:t=>{console.error("Error loading client profile image:",t),this.clientImage=null}})}isActive(){return this.clientViewData.status.value==="Active"}doAction(t){switch(t){case"Assign Staff":case"Close":case"Survey":case"Reject":case"Activate":case"Withdraw":case"Update Default Savings":case"Transfer Client":case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":case"Reactivate":case"Undo Rejection":case"Add Charge":case"Create Collateral":case"Client Screen Reports":this.router.navigate([`actions/${t}`],{relativeTo:this.route});break;case"Unassign Staff":this.unassignStaff();break;case"Delete":this.deleteClient();break;case"View Signature":this.viewSignature();break;case"Upload Signature":this.uploadSignature();break;case"Delete Signature":this.deleteSignature();break;case"Capture Image":this.captureProfileImage();break;case"Upload Image":this.uploadProfileImage();break;case"Delete Image":this.deleteProfileImage();break;case"Create Standing Instructions":let n={officeId:this.clientViewData.officeId,accountType:"fromsavings"};this.router.navigate(["standing-instructions/create-standing-instructions"],{relativeTo:this.route,queryParams:n});break;case"View Standing Instructions":let i={officeId:this.clientViewData.officeId,accountType:"fromsavings"};this.router.navigate(["standing-instructions/list-standing-instructions"],{relativeTo:this.route,queryParams:i});break}}reload(){let t=this.router.url;this.router.navigateByUrl("/clients",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}deleteClient(){this.dialog.open(vi,{data:{deleteContext:`client with id: ${this.clientViewData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.clientsService.deleteClient(this.clientViewData.id).subscribe(()=>{this.router.navigate(["/clients"],{relativeTo:this.route})})})}unassignStaff(){this.dialog.open(IC).afterClosed().subscribe(n=>{n.confirm&&this.clientsService.executeClientCommand(this.clientViewData.id,"unassignStaff",{staffId:this.clientViewData.staffId}).subscribe(()=>{this.reload()})})}viewSignature(){this.clientsService.getClientDocuments(this.clientViewData.id).subscribe(t=>{this.dialog.open(BC,{data:{documents:t,id:this.clientViewData.id}}).afterClosed().subscribe(i=>{i.upload?this.uploadSignature():i.delete&&this.deleteSignature()})})}uploadSignature(){this.dialog.open(OC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadClientSignatureImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}deleteSignature(){this.clientsService.getClientDocuments(this.clientViewData.id).subscribe(t=>{this.dialog.open(RC,{data:t}).afterClosed().subscribe(i=>{i.delete?this.clientsService.deleteClientDocument(this.clientViewData.id,i.id).subscribe(()=>{this.reload()}):i.upload&&this.uploadSignature()})})}captureProfileImage(){this.dialog.open(LC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadCapturedClientProfileImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}uploadProfileImage(){this.dialog.open(NC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadClientProfileImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}deleteProfileImage(){this.dialog.open(vi,{data:{deleteContext:`the profile image of ${this.clientViewData.displayName}`}}).afterClosed().subscribe(n=>{n.delete&&this.clientsService.deleteClientProfileImage(this.clientViewData.id).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-clients-view"]],decls:159,vars:123,consts:[["clientMenu","matMenu"],["accountApplications","matMenu"],["Actions","matMenu"],["More","matMenu"],["general","routerLinkActive"],["address","routerLinkActive"],["familyMembers","routerLinkActive"],["tabPanel",""],["identities","routerLinkActive"],["documents","routerLinkActive"],["notes","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"src"],[1,"m-b-5","flex-center"],["class","client-image-button","mat-raised-button","",3,"matTooltip","click",4,"mifosxHasPermission"],[1,"signature",3,"click"],[1,"mat-typography","account-card-title"],[1,"make-flex","content"],[1,"flex-95"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"entityName"],[1,"flex-5","align-end-center"],["mat-icon-button","","aria-label","Client actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],[1,"layout-row","responsive-column"],[1,"flex-50"],[1,"account-overview"],[3,"accountNo"],["completed","true",3,"externalId"],["mat-menu-item","",3,"routerLink",4,"mifosxHasPermission"],["mat-menu-item","",3,"matMenuTriggerFor"],["matListIcon",""],["icon","tasks","size","sm"],["mat-menu-item",""],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click","disabled"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["mat-raised-button","",1,"client-image-button",3,"click","matTooltip"],[1,"fa","fa-upload"],[1,"fa","fa-camera"],[1,"fa","fa-trash"],[1,"m-r-3"],["mat-menu-item","",3,"routerLink"],["icon","edit","size","sm"],["icon","money-bill-alt","size","sm"],["icon","user-tie","size","sm"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",12)(1,"mat-card-header",13)(2,"mat-card-title-group",14)(3,"div",15)(4,"div"),b(5,"img",16),r(),l(6,"div",17),F(7,xge,3,4,"button",18)(8,bge,3,4,"button",18)(9,yge,3,4,"button",18),b(10,"br"),r(),l(11,"p",19),R("click",function(){return V(s),q(i.doAction("View Signature"))}),c(12),p(13,"translate"),r()(),l(14,"div",20)(15,"mat-card-title",21)(16,"h3",22),b(17,"i",23),p(18,"translate"),p(19,"statusLookup"),l(20,"b"),c(21),p(22,"translate"),r(),b(23,"mifosx-entity-name",24),r(),l(24,"div",25)(25,"button",26)(26,"mat-icon",27),b(27,"fa-icon",28),r()()()(),l(28,"mat-card-subtitle")(29,"div",29)(30,"div",30)(31,"table",31)(32,"tbody")(33,"tr")(34,"td")(35,"b"),c(36),p(37,"translate"),r()(),l(38,"td"),b(39,"mifosx-entity-name",24),r()(),l(40,"tr")(41,"td")(42,"b"),c(43),p(44,"translate"),r()(),l(45,"td"),b(46,"mifosx-account-number",32),r()(),l(47,"tr")(48,"td")(49,"b"),c(50),p(51,"translate"),r()(),l(52,"td"),b(53,"mifosx-external-identifier",33),r()(),E(54,Sge,8,6,"tr"),l(55,"tr")(56,"td")(57,"b"),c(58),p(59,"translate"),r()(),E(60,wge,2,1,"td"),E(61,Pge,3,3,"td"),r()()()(),l(62,"div",30)(63,"table",31)(64,"tbody"),E(65,Mge,8,3,"tr"),E(66,Dge,7,4,"tr"),l(67,"tr")(68,"td")(69,"b"),c(70),p(71,"translate"),r()(),l(72,"td"),b(73,"mifosx-external-identifier",33),r()(),l(74,"tr")(75,"td")(76,"b"),c(77),p(78,"translate"),r()(),l(79,"td"),b(80,"mifosx-external-identifier",33),r()()()()()()()(),l(81,"mat-menu",null,0),F(83,Ege,6,5,"button",34),E(84,Ige,6,4,"button",35),l(85,"button",35)(86,"mat-icon",36),b(87,"fa-icon",37),r(),l(88,"span"),c(89),p(90,"translate"),r()(),E(91,Oge,6,3,"button",38),E(92,Fge,2,1,"span"),l(93,"button",35),c(94),p(95,"translate"),r()(),l(96,"mat-menu",null,1),F(98,kge,3,5,"button",34)(99,Bge,3,5,"button",34)(100,Rge,3,5,"button",34)(101,Nge,3,5,"button",34)(102,Lge,3,5,"button",34),r(),l(103,"mat-menu",null,2)(105,"button",39),R("click",function(){return V(s),q(i.doAction("Close"))}),c(106),p(107,"translate"),r(),l(108,"button",39),R("click",function(){return V(s),q(i.doAction("Transfer Client"))}),c(109),p(110,"translate"),r(),E(111,Vge,4,3,"span"),E(112,qge,4,3,"span"),E(113,zge,4,3,"span"),E(114,Gge,2,1,"span"),E(115,jge,4,3,"span"),E(116,$ge,4,3,"span"),E(117,Uge,4,3,"span"),E(118,Wge,4,3,"span"),E(119,Qge,4,3,"span"),r(),l(120,"mat-menu",null,3),F(122,Yge,3,3,"button",40),l(123,"button",39),R("click",function(){return V(s),q(i.doAction("Create Collateral"))}),c(124),p(125,"translate"),r(),l(126,"button",41),R("click",function(){return V(s),q(i.doAction("Survey"))}),c(127),p(128,"translate"),r(),F(129,Jge,3,3,"button",40)(130,Kge,3,3,"button",40)(131,Xge,3,3,"button",40),l(132,"button",39),R("click",function(){return V(s),q(i.doAction("Client Screen Reports"))}),c(133),p(134,"translate"),r(),F(135,Zge,3,3,"button",40),E(136,t_e,2,1,"span"),r()()(),l(137,"mat-card-content")(138,"nav",42)(139,"a",43,4),c(141),p(142,"translate"),r(),l(143,"a",43,5),c(145),p(146,"translate"),r(),l(147,"a",43,6),c(149),p(150,"translate"),r(),F(151,i_e,4,6,"a",44)(152,n_e,4,6,"a",44)(153,o_e,4,6,"a",44),Se(154,r_e,1,1,"a",43,Pe),r(),l(156,"mat-tab-nav-panel",null,7),b(158,"router-outlet"),r()()()}if(n&2){let s=ve(82),d=ve(104),u=ve(121),f=ve(140),_=ve(144),C=ve(148),x=ve(157);a(5),g("src",i.clientImage?i.clientImage:"assets/images/user_placeholder.png",f0),a(2),g("mifosxHasPermission","CREATE_CLIENTIMAGE"),a(),g("mifosxHasPermission","CREATE_CLIENTIMAGE"),a(),g("mifosxHasPermission","DELETE_CLIENTIMAGE"),a(3),h(m(13,80,"labels.inputs.View Signature")),a(5),g("matTooltip",Le(m(18,82,"labels.status."+i.clientViewData.status.value)))("ngClass",m(19,84,i.clientViewData.status.code)),a(4),v("",m(22,86,"labels.inputs.Client Name")," :"),a(2),g("entityName",Le(i.clientViewData.displayName)),a(2),g("matMenuTriggerFor",s),a(11),h(m(37,88,"labels.inputs.Office")),a(3),g("entityName",Le(i.clientViewData.officeName)),a(4),h(m(44,90,"labels.inputs.Client")),a(3),g("accountNo",Le(i.clientViewData.accountNo)),a(4),h(m(51,92,"labels.inputs.External Id")),a(3),g("externalId",Le(i.clientViewData.externalId)),a(),I(i.clientViewData.activationDate?54:-1),a(4),h(m(59,94,"labels.inputs.Staff")),a(2),I(i.clientViewData.staffName?60:-1),a(),I(i.clientViewData.staffName?-1:61),a(4),I(i.clientViewData.groups.length>0?65:-1),a(),I(i.clientViewData.clientType?66:-1),a(4),h(m(71,96,"labels.inputs.Mobile Number")),a(3),g("externalId",Le(i.clientViewData.mobileNo)),a(4),h(m(78,98,"labels.inputs.Email")),a(3),g("externalId",Le(i.clientViewData.emailAddress)),a(3),g("mifosxHasPermission","UPDATE_CLIENT"),a(),I(i.isActive()?84:-1),a(),g("matMenuTriggerFor",d),a(4),h(m(90,100,"labels.buttons.Actions")),a(2),I(i.clientViewData.staffId?-1:91),a(),I(i.clientViewData.staffId?92:-1),a(),g("matMenuTriggerFor",u),a(),h(m(95,102,"labels.buttons.More")),a(4),g("mifosxHasPermission","CREATE_LOAN"),a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","CREATE_SHAREACCOUNT"),a(),g("mifosxHasPermission","CREATE_RECURRINGDEPOSITACCOUNT"),a(),g("mifosxHasPermission","CREATE_FIXEDDEPOSITACCOUNT"),a(4),h(m(107,104,"labels.buttons.Close")),a(3),v(" ",m(110,106,"labels.buttons.Transfer Client")," "),a(2),I(i.clientViewData.status.value==="Pending"?111:-1),a(),I(i.clientViewData.status.value==="Pending"?112:-1),a(),I(i.clientViewData.status.value==="Pending"?113:-1),a(),I(i.clientViewData.status.value==="Pending"?114:-1),a(),I(i.clientViewData.status.value==="Closed"?115:-1),a(),I(i.clientViewData.status.value==="Rejected"?116:-1),a(),I(i.clientViewData.status.value==="Transfer in progress"?117:-1),a(),I(i.clientViewData.status.value==="Transfer in progress"?118:-1),a(),I(i.clientViewData.status.value==="Transfer in progress"?119:-1),a(3),g("mifosxHasPermission","CREATE_CLIENTCHARGE"),a(2),v(" ",m(125,108,"labels.buttons.Create Collateral")," "),a(2),g("disabled",!0),a(),v(" ",m(128,110,"labels.buttons.Survey")," "),a(2),g("mifosxHasPermission","UPDATESAVINGSACCOUNT_CLIENT"),a(),g("mifosxHasPermission","CREATE_CLIENTIMAGE"),a(),g("mifosxHasPermission","DELETE_CLIENTIMAGE"),a(2),v(" ",m(134,112,"labels.buttons.Client Screen Reports")," "),a(2),g("mifosxHasPermission","CREATE_STANDINGINSTRUCTION"),a(),I(i.clientViewData.status.value!=="Transfer on hold"?136:-1),a(2),g("tabPanel",x),a(),g("routerLink",oe(120,lge))("active",f.isActive),a(2),v(" ",m(142,114,"labels.inputs.General")," "),a(2),g("routerLink",oe(121,sge))("active",_.isActive),a(2),v(" ",m(146,116,"labels.inputs.Address")," "),a(2),g("routerLink",oe(122,cge))("active",C.isActive),a(2),v(" ",m(150,118,"labels.inputs.Family Members")," "),a(2),g("mifosxHasPermission","READ_CLIENTIDENTIFIER"),a(),g("mifosxHasPermission","READ_DOCUMENT"),a(),g("mifosxHasPermission","READ_CLIENTNOTE"),a(),we(i.clientDatatables)}},dependencies:[ue,co,fe,Oe,Ue,Je,xe,Ke,sa,Wr,x0,si,Qo,kk,wi,nc,Yo,ke,Cl,rc,Da,ic,tc,nr,or,Na,ar,ra,Pi,he,go],styles:[".account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .client-image-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .signature[_ngcontent-%COMP%]{color:#fff;text-align:center;margin:0;padding:2%}.account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .signature[_ngcontent-%COMP%]:hover{cursor:pointer}.account-overview[_ngcontent-%COMP%]{color:#fff;min-width:85%;margin-left:10px}.make-flex[_ngcontent-%COMP%]{display:flex}.mat-card-title-group[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var l_e=()=>["../","charges","overview"],s_e=e=>["../","charges",e,"pay"],c_e=e=>["../","charges",e],p_e=e=>["../","loans-accounts",e,"actions","Make Repayment"],m_e=e=>["../","loans-accounts",e,"actions","Approve"],d_e=e=>["../","loans-accounts",e,"actions","Disburse"],$9=e=>["../","loans-accounts",e,"general"],u_e=e=>["../","savings-accounts",e,"actions","Deposit"],f_e=e=>["../","savings-accounts",e,"actions","Withdrawal"],h_e=e=>["../","savings-accounts",e,"actions","Approve"],g_e=e=>["../","savings-accounts",e,"actions","Undo Approval"],__e=e=>["../","savings-accounts",e,"actions","Activate"],U9=e=>["../","savings-accounts",e,"general"],C_e=e=>["../","fixed-deposits-accounts",e,"actions","Approve"],v_e=e=>["../","fixed-deposits-accounts",e,"actions","Undo Approval"],x_e=e=>["../","fixed-deposits-accounts",e,"actions","Activate"],W9=e=>["../","fixed-deposits-accounts",e,"general"],b_e=e=>["../","recurring-deposits-accounts",e,"actions","Approve"],y_e=e=>["../","recurring-deposits-accounts",e,"actions","Undo Approval"],S_e=e=>["../","recurring-deposits-accounts",e,"actions","Activate"],Q9=e=>["../","recurring-deposits-accounts",e,"general"],w_e=e=>["../","shares-accounts",e,"actions","Approve"],P_e=e=>["../","shares-accounts",e,"actions","Undo Approval"],T_e=e=>["../","shares-accounts",e,"actions","Activate"],Y9=e=>["../","shares-accounts",e,"general"],M_e=e=>["../","client-collateral",e];function D_e(e,o){e&1&&(l(0,"button",30),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,l_e)),a(),v(" ",m(2,2,"labels.buttons.Charges Overview")," "))}function E_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function I_e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,2,!(t.isWaived||t.isPaid))),a(2),v(" ",t.name," ")}}function O_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due as of")))}function A_e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dueDate))}}function F_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due")))}function k_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amount))}}function B_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Paid")))}function R_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountPaid))}}function N_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Waived")))}function L_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountWaived))}}function V_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Outstanding")))}function q_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountOutstanding))}}function z_e(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function H_e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(1,"i",41),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,s_e,t.id))}}function G_e(e,o){if(e&1){let t=Y();l(0,"button",42),R("click",function(i){V(t);let s=w().$implicit,d=w();return d.routeEdit(i),q(d.waiveCharge(s.id,s.clientId))}),b(1,"i",43),r()}}function j_e(e,o){e&1&&(l(0,"td",37),F(1,H_e,2,3,"button",38)(2,G_e,2,0,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","PAY_CLIENTCHARGE"),a(),g("mifosxHasPermission","WAIVE_CLIENTCHARGE"))}function $_e(e,o){e&1&&b(0,"tr",44)}function U_e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,c_e,t.id))}}function W_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function Q_e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function Y_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Product")))}function J_e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function K_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function X_e(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function Z_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function eCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.loanBalance))}}function tCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function iCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountPaid))}}function nCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function oCe(e,o){if(e&1&&(l(0,"td",37),b(1,"i",55),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function aCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function rCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(2,"i",41),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.Make Repayment")))("routerLink",Nt(5,p_e,t.id))}}function lCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(2,"i",59),r()}if(e&2){let t=w(2).$implicit;g("matTooltip",Le(m(1,3,"tooltips.Approve")))("routerLink",Nt(5,m_e,t.id))}}function sCe(e,o){e&1&&(l(0,"span"),F(1,lCe,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","APPROVE_LOAN"))}function cCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(2,"i",43),r()}if(e&2){let t=w(2).$implicit;g("matTooltip",Le(m(1,3,"tooltips.Disburse")))("routerLink",Nt(5,d_e,t.id))}}function pCe(e,o){e&1&&(l(0,"span"),F(1,cCe,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function mCe(e,o){if(e&1){let t=Y();l(0,"button",61),p(1,"translate"),R("click",function(i){V(t);let s=w(2).$implicit,d=w(2);return d.routeEdit(i),q(d.routeTransferFund(s.id))}),b(2,"i",62),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Transfer Funds")))}function dCe(e,o){e&1&&(l(0,"span"),F(1,mCe,3,4,"button",60),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function uCe(e,o){if(e&1&&(l(0,"td",37),E(1,rCe,3,7,"button",56),E(2,sCe,2,1,"span"),E(3,pCe,2,1,"span"),E(4,dCe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.pendingApproval?2:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&!t.status.overpaid?3:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&t.status.overpaid?4:-1)}}function fCe(e,o){e&1&&b(0,"tr",44)}function hCe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,$9,t.id))}}function gCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,W_e,3,3,"th",9)(4,Q_e,4,5,"td",10),Z(),X(5,47),F(6,Y_e,3,3,"th",9)(7,J_e,2,2,"td",10),Z(),X(8,48),F(9,K_e,3,3,"th",9)(10,X_e,2,1,"td",10),Z(),X(11,49),F(12,Z_e,3,3,"th",13)(13,eCe,3,3,"td",14),Z(),X(14,50),F(15,tCe,3,3,"th",13)(16,iCe,3,3,"td",14),Z(),X(17,51),F(18,nCe,3,3,"th",19)(19,oCe,2,3,"td",20),Z(),X(20,18),F(21,aCe,3,3,"th",19)(22,uCe,5,4,"td",20),Z(),F(23,fCe,1,0,"tr",21)(24,hCe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",Ft(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function _Ce(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function CCe(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function vCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Product")))}function xCe(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function bCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function yCe(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function SCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function wCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.loanBalance))}}function PCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function TCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function MCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function DCe(e,o){if(e&1&&(l(0,"td",37),b(1,"i",55),r()),e&2){let t=o.$implicit;a(),g("matTooltip",_0(" ",t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function ECe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function ICe(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function OCe(e,o){e&1&&b(0,"tr",44)}function ACe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,$9,t.id))}}function FCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,_Ce,3,3,"th",9)(4,CCe,4,5,"td",10),Z(),X(5,47),F(6,vCe,3,3,"th",9)(7,xCe,2,2,"td",10),Z(),X(8,48),F(9,bCe,3,3,"th",9)(10,yCe,3,3,"td",10),Z(),X(11,49),F(12,SCe,3,3,"th",13)(13,wCe,3,3,"td",14),Z(),X(14,50),F(15,PCe,3,3,"th",13)(16,TCe,3,3,"td",14),Z(),X(17,51),F(18,MCe,3,3,"th",19)(19,DCe,2,3,"td",20),Z(),X(20,64),F(21,ECe,3,3,"th",9)(22,ICe,3,3,"td",10),Z(),F(23,OCe,1,0,"tr",21)(24,ACe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",yr(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function kCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function BCe(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function RCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Savings Product")))}function NCe(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function LCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function VCe(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function qCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function zCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function HCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function GCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",69),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,u_e,t.id))}}function jCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",70),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,f_e,t.id))}}function $Ce(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,h_e,t.id))}}function UCe(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,g_e,t.id))}}function WCe(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,__e,t.id))}}function QCe(e,o){if(e&1&&(l(0,"td",37),E(1,GCe,2,3,"button",68),E(2,jCe,2,3,"button",68),E(3,$Ce,2,3,"button",68),E(4,UCe,2,3,"button",68),E(5,WCe,2,3,"button",68),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.active?2:-1),a(),I(t.status.submittedAndPendingApproval?3:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?4:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?5:-1)}}function YCe(e,o){e&1&&b(0,"tr",44)}function JCe(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function KCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,kCe,3,3,"th",9)(4,BCe,4,5,"td",10),Z(),X(5,65),F(6,RCe,3,3,"th",9)(7,NCe,2,2,"td",10),Z(),X(8,66),F(9,LCe,3,3,"th",9)(10,VCe,3,3,"td",10),Z(),X(11,67),F(12,qCe,3,3,"th",13)(13,zCe,3,3,"td",14),Z(),X(14,18),F(15,HCe,3,3,"th",19)(16,QCe,6,5,"td",20),Z(),F(17,YCe,1,0,"tr",21)(18,JCe,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","open","isSavings")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function XCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function ZCe(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function e2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Savings Product")))}function t2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function i2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function n2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function o2e(e,o){e&1&&b(0,"tr",44)}function a2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function r2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,XCe,3,3,"th",9)(4,ZCe,4,5,"td",10),Z(),X(5,65),F(6,e2e,3,3,"th",9)(7,t2e,2,2,"td",10),Z(),X(8,64),F(9,i2e,3,3,"th",9)(10,n2e,3,3,"td",10),Z(),F(11,o2e,1,0,"tr",21)(12,a2e,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","closed","isSavings")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function l2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function s2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function c2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fixed Deposit Product")))}function p2e(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function m2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function d2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function u2e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function f2e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function h2e(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function g2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,C_e,t.id))}}function _2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,v_e,t.id))}}function C2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,x_e,t.id))}}function v2e(e,o){if(e&1&&(l(0,"td",37),E(1,g2e,2,3,"button",68),E(2,_2e,2,3,"button",68),E(3,C2e,2,3,"button",68),r()),e&2){let t=o.$implicit;a(),I(t.status.submittedAndPendingApproval?1:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?2:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?3:-1)}}function x2e(e,o){e&1&&b(0,"tr",44)}function b2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function y2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,l2e,3,3,"th",9)(4,s2e,4,5,"td",10),Z(),X(5,65),F(6,c2e,3,3,"th",9)(7,p2e,2,1,"td",10),Z(),X(8,66),F(9,m2e,3,3,"th",9)(10,d2e,3,3,"td",10),Z(),X(11,67),F(12,u2e,3,3,"th",13)(13,f2e,3,3,"td",14),Z(),X(14,18),F(15,h2e,3,3,"th",19)(16,v2e,4,3,"td",20),Z(),F(17,x2e,1,0,"tr",21)(18,b2e,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","open","isFixed")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function S2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function w2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function P2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fixed Deposit Product")))}function T2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function M2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function D2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function E2e(e,o){e&1&&b(0,"tr",44)}function I2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function O2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,S2e,3,3,"th",9)(4,w2e,4,5,"td",10),Z(),X(5,65),F(6,P2e,3,3,"th",9)(7,T2e,2,2,"td",10),Z(),X(8,64),F(9,M2e,3,3,"th",9)(10,D2e,3,3,"td",10),Z(),F(11,E2e,1,0,"tr",21)(12,I2e,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","closed","isFixed")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function A2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function F2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function k2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Recurring Deposit Product")))}function B2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function R2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function N2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function L2e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function V2e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function q2e(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function z2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",59),r()),e&2){let t=w(2).$implicit;g("routerLink",Nt(1,b_e,t.id))}}function H2e(e,o){e&1&&F(0,z2e,2,3,"button",73),e&2&&g("mifosxHasPermission","APPROVE_SAVINGSACCOUNT")}function G2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,y_e,t.id))}}function j2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,S_e,t.id))}}function $2e(e,o){e&1&&F(0,G2e,2,3,"button",38)(1,j2e,2,3,"button",38),e&2&&(g("mifosxHasPermission","APPROVALUNDO_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","ACTIVATE_SAVINGSACCOUNT"))}function U2e(e,o){if(e&1&&(l(0,"td",37),E(1,H2e,1,1,"button",68),E(2,$2e,2,2),r()),e&2){let t=o.$implicit;a(),I(t.status.submittedAndPendingApproval?1:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?2:-1)}}function W2e(e,o){e&1&&b(0,"tr",44)}function Q2e(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function Y2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,A2e,3,3,"th",9)(4,F2e,4,5,"td",10),Z(),X(5,65),F(6,k2e,3,3,"th",9)(7,B2e,2,2,"td",10),Z(),X(8,66),F(9,R2e,3,3,"th",9)(10,N2e,3,3,"td",10),Z(),X(11,67),F(12,L2e,3,3,"th",13)(13,V2e,3,3,"td",14),Z(),X(14,18),F(15,q2e,3,3,"th",19)(16,U2e,3,2,"td",20),Z(),F(17,W2e,1,0,"tr",21)(18,Q2e,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","open","isRecurring")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function J2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function K2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function X2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Recurring Deposit Product")))}function Z2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function eve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function tve(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function ive(e,o){e&1&&b(0,"tr",44)}function nve(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function ove(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,J2e,3,3,"th",9)(4,K2e,4,5,"td",10),Z(),X(5,65),F(6,X2e,3,3,"th",9)(7,Z2e,2,2,"td",10),Z(),X(8,64),F(9,eve,3,3,"th",9)(10,tve,3,3,"td",10),Z(),F(11,ive,1,0,"tr",21)(12,nve,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","closed","isRecurring")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function ave(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function rve(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function lve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Product")))}function sve(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function cve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved Shares")))}function pve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function mve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Pending For Approval Shares")))}function dve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function uve(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function fve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,w_e,t.id))}}function hve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,P_e,t.id))}}function gve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,T_e,t.id))}}function _ve(e,o){if(e&1&&(l(0,"td",37),E(1,fve,2,3,"button",68),E(2,hve,2,3,"button",68),E(3,gve,2,3,"button",68),r()),e&2){let t=o.$implicit;a(),I(t.status.submittedAndPendingApproval?1:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?2:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?3:-1)}}function Cve(e,o){e&1&&b(0,"tr",44)}function vve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function xve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,ave,3,3,"th",9)(4,rve,4,5,"td",10),Z(),X(5,74),F(6,lve,3,3,"th",9)(7,sve,2,2,"td",10),Z(),X(8,75),F(9,cve,3,3,"th",9)(10,pve,2,1,"td",10),Z(),X(11,76),F(12,mve,3,3,"th",9)(13,dve,2,1,"td",10),Z(),X(14,18),F(15,uve,3,3,"th",19)(16,_ve,4,3,"td",20),Z(),F(17,Cve,1,0,"tr",21)(18,vve,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",Ft(1,3,t.shareAccounts,"share")),a(17),g("matHeaderRowDef",t.openSharesColumns),a(),g("matRowDefColumns",t.openSharesColumns)}}function bve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function yve(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function Sve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Product")))}function wve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Pve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved Shares")))}function Tve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function Mve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Pending For Approval Shares")))}function Dve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function Eve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function Ive(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function Ove(e,o){e&1&&b(0,"tr",44)}function Ave(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function Fve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,bve,3,3,"th",9)(4,yve,4,5,"td",10),Z(),X(5,74),F(6,Sve,3,3,"th",9)(7,wve,2,1,"td",10),Z(),X(8,75),F(9,Pve,3,3,"th",9)(10,Tve,2,1,"td",10),Z(),X(11,76),F(12,Mve,3,3,"th",9)(13,Dve,2,1,"td",10),Z(),X(14,64),F(15,Eve,3,3,"th",9)(16,Ive,3,3,"td",10),Z(),F(17,Ove,1,0,"tr",21)(18,Ave,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",yr(1,3,t.shareAccounts,"share","closed")),a(17),g("matHeaderRowDef",t.closedSharesColumns),a(),g("matRowDefColumns",t.closedSharesColumns)}}function kve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.ID")))}function Bve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.collateralId)}}function Rve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Nve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Lve(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Quantity")))}function Vve(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.quantity))}}function qve(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Value")))}function zve(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.basePrice*t.quantity)," ")}}function Hve(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Total Collateral Value")," "))}function Gve(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.pctToBase*t.basePrice*t.quantity/100)," ")}}function jve(e,o){e&1&&b(0,"tr",44)}function $ve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,M_e,t.collateralId))}}var qC=(()=>{class e{constructor(){this.route=T(Ie),this.clientService=T(Oi),this.router=T(qe),this.openLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Actions"],this.closedLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Closed Date"],this.openSavingsColumns=["Account No","Saving Account","Last Active","Balance","Actions"],this.closedSavingsColumns=["Account No","Saving Account","Closed Date"],this.openSharesColumns=["Account No","Share Account","Approved Shares","Pending For Approval Shares","Actions"],this.closedSharesColumns=["Account No","Share Account","Approved Shares","Pending For Approval Shares","Closed Date"],this.upcomingChargesColumns=["Name","Due as of","Due","Paid","Waived","Outstanding","Actions"],this.collateralsColumns=["ID","Name","Quantity","Total Value","Total Collateral Value"],this.showClosedLoanAccounts=!1,this.showClosedSavingAccounts=!1,this.showClosedShareAccounts=!1,this.showClosedRecurringAccounts=!1,this.showClosedFixedAccounts=!1,this.route.data.subscribe(t=>{this.clientAccountData=t.clientAccountsData,this.savingAccounts=t.clientAccountsData.savingsAccounts,this.loanAccounts=t.clientAccountsData.loanAccounts,this.shareAccounts=t.clientAccountsData.shareAccounts,this.upcomingCharges=t.clientChargesData.pageItems,this.collaterals=t.clientCollateralData,this.clientSummary=t.clientSummary?t.clientSummary[0]:[],this.clientid=this.route.parent.snapshot.params.clientId})}toggleLoanAccountsOverview(){this.showClosedLoanAccounts=!this.showClosedLoanAccounts}toggleSavingAccountsOverview(){this.showClosedSavingAccounts=!this.showClosedSavingAccounts}toggleShareAccountsOverview(){this.showClosedShareAccounts=!this.showClosedShareAccounts}toggleRecurringAccountsOverview(){this.showClosedRecurringAccounts=!this.showClosedRecurringAccounts}toggleFixedAccountsOverview(){this.showClosedFixedAccounts=!this.showClosedFixedAccounts}waiveCharge(t,n){let i={clientId:n.toString(),resourceType:t};this.clientService.waiveClientCharge(i).subscribe(()=>{this.getChargeData(n)})}getChargeData(t){this.clientService.getClientChargesData(t).subscribe(n=>{this.upcomingCharges=n.pageItems})}routeEdit(t){t.stopPropagation()}routeTransferFund(t){let n={loanId:t,accountType:"fromloans"};this.router.navigate(["../","loans-accounts",t,"transfer-funds","make-account-transfer"],{relativeTo:this.route,queryParams:n})}viewAccountsLabel(t){return t?"labels.buttons.View Active Accounts":"labels.buttons.View Closed Accounts"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:156,vars:83,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","performance-history-container"],[1,"heading-content"],[1,"layout-column","flex-50"],["className","heading-name"],[1,"layout-row","align-flex-end"],["mat-raised-button","","class","f-right","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","Name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Due as of"],["matColumnDef","Due"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","Paid"],["matColumnDef","Waived"],["matColumnDef","Outstanding"],["matColumnDef","Actions"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"heading-name"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["mat-raised-button","","color","primary","disabled","",1,"f-right"],["matColumnDef","ID"],["matColumnDef","Quantity"],["matColumnDef","Total Value"],["matColumnDef","Total Collateral Value"],["mat-raised-button","","color","primary",1,"f-right",3,"routerLink"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row","",3,"routerLink"],["matColumnDef","Account No"],["matColumnDef","Loan Account"],["matColumnDef","Original Loan"],["matColumnDef","Loan Balance"],["matColumnDef","Amount Paid"],["matColumnDef","Type"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[3,"accountNo"],["chars","35",3,"textValue"],["matTooltipPosition","above",1,"fa","fa-large",3,"ngClass","matTooltip"],["mat-raised-button","","color","primary","matTooltipPosition","above",1,"account-action-button",3,"matTooltip","routerLink"],["mat-raised-button","","color","primary","matTooltipPosition","above",1,"account-action-button",3,"click","matTooltip","routerLink"],["class","account-action-button","mat-raised-button","","color","primary","matTooltipPosition","above",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],[1,"fa","fa-check"],["class","account-action-button","mat-raised-button","","color","primary","matTooltipPosition","above",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltipPosition","above",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-exchange"],["mat-row","",1,"select-row",3,"routerLink"],["matColumnDef","Closed Date"],["matColumnDef","Saving Account"],["matColumnDef","Last Active"],["matColumnDef","Balance"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],[1,"fa","fa-arrow-up"],[1,"fa","fa-arrow-down"],[1,"fa","fa-undo"],[1,"fa","fa-check-circle"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["matColumnDef","Share Account"],["matColumnDef","Approved Shares"],["matColumnDef","Pending For Approval Shares"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"table")(6,"tbody")(7,"tr")(8,"td")(9,"p"),c(10),p(11,"translate"),b(12,"br"),c(13),p(14,"translate"),b(15,"br"),c(16),p(17,"translate"),p(18,"formatNumber"),b(19,"br"),r()(),l(20,"td")(21,"p"),c(22),p(23,"translate"),b(24,"br"),c(25),p(26,"translate"),p(27,"formatNumber"),b(28,"br"),r()()()()()(),l(29,"div",2)(30,"div",3)(31,"div",4)(32,"h3"),c(33),p(34,"translate"),r()()(),l(35,"div",3)(36,"div",5),F(37,D_e,3,5,"button",6),r()()(),l(38,"table",7),X(39,8),F(40,E_e,3,3,"th",9)(41,I_e,4,4,"td",10),Z(),X(42,11),F(43,O_e,3,3,"th",9)(44,A_e,3,3,"td",10),Z(),X(45,12),F(46,F_e,3,3,"th",13)(47,k_e,3,3,"td",14),Z(),X(48,15),F(49,B_e,3,3,"th",13)(50,R_e,3,3,"td",14),Z(),X(51,16),F(52,N_e,3,3,"th",13)(53,L_e,3,3,"td",14),Z(),X(54,17),F(55,V_e,3,3,"th",13)(56,q_e,3,3,"td",14),Z(),X(57,18),F(58,z_e,3,3,"th",19)(59,j_e,3,2,"td",20),Z(),F(60,$_e,1,0,"tr",21)(61,U_e,1,3,"tr",22),r(),l(62,"div",2)(63,"div",3)(64,"div",23)(65,"h3"),c(66),p(67,"translate"),r()()(),l(68,"div",3)(69,"div",5)(70,"button",24),R("click",function(){return i.toggleLoanAccountsOverview()}),c(71),p(72,"translate"),r()()()(),E(73,gCe,25,6,"table",7),E(74,FCe,25,7,"table",7),l(75,"div",2)(76,"div",3)(77,"div",23)(78,"h3"),c(79),p(80,"translate"),r()()(),l(81,"div",3)(82,"div",5)(83,"button",24),R("click",function(){return i.toggleSavingAccountsOverview()}),c(84),p(85,"translate"),r()()()(),E(86,KCe,19,8,"table",7),E(87,r2e,13,8,"table",7),l(88,"div",2)(89,"div",3)(90,"div",23)(91,"h3"),c(92),p(93,"translate"),r()()(),l(94,"div",3)(95,"div",5)(96,"button",24),R("click",function(){return i.toggleFixedAccountsOverview()}),c(97),p(98,"translate"),r()()()(),E(99,y2e,19,8,"table",7),E(100,O2e,13,8,"table",7),l(101,"div",2)(102,"div",3)(103,"div",23)(104,"h3"),c(105),p(106,"translate"),r()()(),l(107,"div",3)(108,"div",5)(109,"button",24),R("click",function(){return i.toggleRecurringAccountsOverview()}),c(110),p(111,"translate"),r()()()(),E(112,Y2e,19,8,"table",7),E(113,ove,13,8,"table",7),l(114,"div",2)(115,"div",3)(116,"div",23)(117,"h3"),c(118),p(119,"translate"),r()()(),l(120,"div",3)(121,"div",5)(122,"button",24),R("click",function(){return i.toggleShareAccountsOverview()}),c(123),p(124,"translate"),r()()()(),E(125,xve,19,6,"table",7),E(126,Fve,19,7,"table",7),l(127,"div",2)(128,"div",3)(129,"div",23)(130,"h3"),c(131),p(132,"translate"),r()()(),l(133,"div",3)(134,"div",5)(135,"button",25),c(136),p(137,"translate"),r()()()(),l(138,"table",7),X(139,26),F(140,kve,3,3,"th",9)(141,Bve,2,1,"td",10),Z(),X(142,8),F(143,Rve,3,3,"th",9)(144,Nve,2,1,"td",10),Z(),X(145,27),F(146,Lve,3,3,"th",13)(147,Vve,3,3,"td",14),Z(),X(148,28),F(149,qve,3,3,"th",13)(150,zve,3,3,"td",14),Z(),X(151,29),F(152,Hve,3,3,"th",13)(153,Gve,3,3,"td",14),Z(),F(154,jve,1,0,"tr",21)(155,$ve,1,3,"tr",22),r()()),n&2&&(a(2),h(m(3,41,"labels.heading.Performance History")),a(8),le(" ",m(11,43,"labels.inputs.No. Of Loan Cycles")," :",i.clientSummary==null?null:i.clientSummary.loanCycle," "),a(3),le(" ",m(14,45,"labels.inputs.No. of Active Loans")," :",i.clientSummary==null?null:i.clientSummary.activeLoans," "),a(3),le(" ",m(17,47,"labels.inputs.Last Loan Amount")," :",m(18,49,i.clientSummary==null?null:i.clientSummary.lastLoanAmount)," "),a(6),le(" ",m(23,51,"labels.inputs.No. of Active Savings")," :",i.clientSummary==null?null:i.clientSummary.activeSavings," "),a(3),le(" ",m(26,53,"labels.inputs.Total Savings")," :",m(27,55,i.clientSummary==null?null:i.clientSummary.totalSavings)," "),a(8),h(m(34,57,"labels.heading.Upcoming Charges")),a(4),g("mifosxHasPermission","READ_CLIENTCHARGE"),a(),g("dataSource",i.upcomingCharges),a(22),g("matHeaderRowDef",i.upcomingChargesColumns),a(),g("matRowDefColumns",i.upcomingChargesColumns),a(5),h(m(67,59,"labels.heading.Loan Accounts")),a(5),v(" ",m(72,61,i.viewAccountsLabel(i.showClosedLoanAccounts))," "),a(2),I(i.showClosedLoanAccounts?-1:73),a(),I(i.showClosedLoanAccounts?74:-1),a(5),h(m(80,63,"labels.heading.Saving Accounts")),a(5),v(" ",m(85,65,i.viewAccountsLabel(i.showClosedSavingAccounts))," "),a(2),I(i.showClosedSavingAccounts?-1:86),a(),I(i.showClosedSavingAccounts?87:-1),a(5),h(m(93,67,"labels.heading.Fixed Deposit Accounts")),a(5),v(" ",m(98,69,i.viewAccountsLabel(i.showClosedFixedAccounts))," "),a(2),I(i.showClosedFixedAccounts?-1:99),a(),I(i.showClosedFixedAccounts?100:-1),a(5),h(m(106,71,"labels.heading.Recurring Deposit Accounts")),a(5),v(" ",m(111,73,i.viewAccountsLabel(i.showClosedRecurringAccounts))," "),a(2),I(i.showClosedRecurringAccounts?-1:112),a(),I(i.showClosedRecurringAccounts?113:-1),a(5),h(m(119,75,"labels.inputs.Shares Accounts")),a(5),v(" ",m(124,77,i.viewAccountsLabel(i.showClosedShareAccounts))," "),a(2),I(i.showClosedShareAccounts?-1:125),a(),I(i.showClosedShareAccounts?126:-1),a(5),h(m(132,79,"labels.heading.Collateral Data")),a(5),v(" ",m(137,81,"labels.buttons.View Collaterals")," "),a(2),g("dataSource",i.collaterals),a(16),g("matHeaderRowDef",i.collateralsColumns),a(),g("matRowDefColumns",i.collateralsColumns))},dependencies:[ue,co,fe,Oe,xe,Ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rc,Bk,si,Pi,he,go,os,In],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:hover{cursor:pointer}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.heading-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:1%;margin-top:1%}.heading-name[_ngcontent-%COMP%]{margin:0}.layout-row.align-flex-end[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}"]})}}return e})();var Uve=()=>["./add"],Wve=e=>[e,"edit"];function Qve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.First Name")," : ",t.firstName)}}function Yve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Middle Name")," : ",t.middleName)}}function Jve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Last Name")," : ",t.lastName)}}function Kve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Qualification")," : ",t.qualification)}}function Xve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Mobile Number")," : ",t.mobileNumber)}}function Zve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Age")," : ",t.age)}}function exe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),p(3,"yesNo"),b(4,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Is Dependent")," : ",m(3,4,t.isDependent))}}function txe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Marital Status")," : ",t.maritalStatus)}}function ixe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Gender")," : ",t.gender)}}function nxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Profession")," : ",t.profession)}}function oxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),p(3,"dateFormat"),b(4,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Date Of Birth")," : ",m(3,4,t.dateOfBirth))}}function axe(e,o){if(e&1){let t=Y();l(0,"mat-expansion-panel",4)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider",5),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),r(),l(10,"button",9),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w();return q(u.deleteFamilyMember(s.clientId,s.id,s.firstName,d))}),b(11,"fa-icon",10),r()(),l(12,"p"),E(13,Qve,4,4,"span"),E(14,Yve,4,4,"span"),E(15,Jve,4,4,"span"),E(16,Kve,4,4,"span"),E(17,Xve,4,4,"span"),E(18,Zve,4,4,"span"),E(19,exe,5,6,"span"),E(20,txe,4,4,"span"),E(21,ixe,4,4,"span"),E(22,nxe,4,4,"span"),E(23,oxe,5,6,"span"),r()()}if(e&2){let t=o.$implicit,n=w();a(3),v(" ",n.displayName(t)," "),a(2),v(" ",t.relationship," "),a(),g("inset",!0),a(3),g("routerLink",Nt(15,Wve,t.id)),a(4),I(t.firstName?13:-1),a(),I(t.middleName?14:-1),a(),I(t.lastName?15:-1),a(),I(t.qualification?16:-1),a(),I(t.mobileNumber?17:-1),a(),I(t.age?18:-1),a(),I(t.isDependent?19:-1),a(),I(t.maritalStatus?20:-1),a(),I(t.gender?21:-1),a(),I(t.profession?22:-1),a(),I(t.dateOfBirth?23:-1)}}var zC=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.clientFamilyMembers=t.clientFamilyMembers})}deleteFamilyMember(t,n,i,s){this.dialog.open(vi,{data:{deleteContext:`Family member id:${n} name : ${i} ${s}`}}).afterClosed().subscribe(u=>{u.delete&&this.clientsService.deleteFamilyMember(t,n).subscribe(()=>{this.clientFamilyMembers.splice(s,1)})})}displayName(t){let n=t.firstName;return t.middleName&&(n=n+" "+t.middleName),t.lastName&&(n=n+" "+t.lastName),n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-family-members-tab"]],decls:13,vars:8,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"family-member"],[3,"inset"],[1,"family-member-actions","layout-row","align-end"],["mat-button","","color","primary"],["icon","edit",3,"routerLink"],["mat-button","","color","warn",3,"click"],["icon","trash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"router-outlet")(2,"h3"),c(3),p(4,"translate"),r(),l(5,"div",1)(6,"button",2),b(7,"fa-icon",3),c(8),p(9,"translate"),r()(),l(10,"mat-accordion"),Se(11,axe,24,17,"mat-expansion-panel",4,Pe),r()()()),n&2&&(a(3),h(m(4,3,"labels.heading.Family Members")),a(3),g("routerLink",oe(7,Uve)),a(2),v("",m(9,5,"labels.buttons.Add")," "),a(3),we(i.clientFamilyMembers))},dependencies:[ue,fe,Oe,xe,ra,ke,Dr,Pr,Tr,Mr,oc,Ri,Pi,he,po],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%]{margin-top:1%}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}"]})}}return e})();var rxe=()=>["../"];function lxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function pxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function dxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function fxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}var HC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.router=T(qe),this.route=T(Ie),this.clientsService=T(Oi),this.settingsService=T(Ot),this.maxDate=new Date,this.minAge=0,this.route.data.subscribe(t=>{this.addFamilyMemberTemplate=t.clientTemplate.familyMemberOptions}),this.clientId=this.route.parent.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createAddFamilyMemberForm(),this.addFamilyMemberForm.get("dateOfBirth").valueChanges.subscribe(t=>{if(t){let n=this.calculateAge(t);this.addFamilyMemberForm.get("age").setValue(n)}else this.addFamilyMemberForm.get("age").setValue("")})}calculateAge(t){let n=new Date(this.settingsService.businessDate),i=new Date(t),s=n.getFullYear()-i.getFullYear(),d=n.getMonth()-i.getMonth();return(d<0||d===0&&n.getDate(){this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-family-member"]],decls:78,vars:51,consts:[["dueDatePicker",""],[1,"add-family-member-container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","align-start-center"],[1,"flex-50-minus-25px"],["formControlName","firstName","required","","matInput","","aria-label","First Name","placeholder","First Name","title","First Name"],["formControlName","middleName","matInput","","aria-label","Middle Name","placeholder","Middle Name","title","Middle Name"],["formControlName","lastName","required","","matInput","","aria-label","Last Name","placeholder","Last Name","title","Last Name"],["formControlName","qualification","matInput","","aria-label","Qualification","placeholder","Qualification","title","Qualification"],["type","number","formControlName","age","matInput","","disabled","","aria-label","Age","placeholder","Age","title","Age",3,"min"],["formControlName","isDependent","labelPosition","before",1,"flex-50-minus-25px"],["formControlName","relationshipId","required",""],[3,"value"],["formControlName","genderId","required",""],["formControlName","professionId"],["formControlName","maritalStatusId"],[1,"flex-fill",3,"click"],["formControlName","dateOfBirth","matInput","","placeholder","Optional","aria-label","Date Of Birth","title","Date Of Birth",3,"max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","gap-32px","layout-align-center"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",5),E(8,lxe,7,9,"mat-error"),r(),l(9,"mat-form-field",4)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",6),r(),l(14,"mat-form-field",4)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",7),E(19,sxe,7,9,"mat-error"),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",4)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",9),r(),l(30,"mat-checkbox",10),c(31),p(32,"translate"),r(),l(33,"mat-form-field",4)(34,"mat-label"),c(35),p(36,"translate"),r(),l(37,"mat-select",11),Se(38,cxe,3,5,"mat-option",12,Pe),r(),E(40,pxe,7,9,"mat-error"),r(),l(41,"mat-form-field",4)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",13),Se(46,mxe,3,5,"mat-option",12,Pe),r(),E(48,dxe,7,9,"mat-error"),r(),l(49,"mat-form-field",4)(50,"mat-label"),c(51),p(52,"translate"),r(),l(53,"mat-select",14),Se(54,uxe,3,5,"mat-option",12,Pe),r()(),l(56,"mat-form-field",4)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",15),Se(61,fxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){V(s);let u=ve(70);return q(u.open())}),l(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",17)(68,"mat-datepicker-toggle",18)(69,"mat-datepicker",null,0),r()(),l(71,"div",19)(72,"button",20),c(73),p(74,"translate"),r(),l(75,"button",21),c(76),p(77,"translate"),r()()()()}if(n&2){let s=ve(70);a(),g("formGroup",i.addFamilyMemberForm),a(4),h(m(6,24,"labels.inputs.First Name")),a(3),I(i.addFamilyMemberForm.controls.firstName.hasError("required")?8:-1),a(3),h(m(12,26,"labels.inputs.Middle Name")),a(5),h(m(17,28,"labels.inputs.Last Name")),a(3),I(i.addFamilyMemberForm.controls.lastName.hasError("required")?19:-1),a(3),h(m(23,30,"labels.inputs.Qualification")),a(5),h(m(28,32,"labels.inputs.Age")),a(2),g("min",i.minAge),a(2),v(" ",m(32,34,"labels.inputs.Is Dependent"),"? "),a(4),h(m(36,36,"labels.inputs.Relationship")),a(3),we(i.addFamilyMemberTemplate.relationshipIdOptions),a(2),I(i.addFamilyMemberForm.controls.relationshipId.hasError("required")?40:-1),a(3),h(m(44,38,"labels.inputs.Gender")),a(3),we(i.addFamilyMemberTemplate.genderIdOptions),a(2),I(i.addFamilyMemberForm.controls.genderId.hasError("required")?48:-1),a(3),h(m(52,40,"labels.inputs.Profession")),a(3),we(i.addFamilyMemberTemplate.professionIdOptions),a(4),h(m(59,42,"labels.inputs.Marital Status")),a(3),we(i.addFamilyMemberTemplate.maritalStatusIdOptions),a(4),h(m(66,44,"labels.inputs.Date Of Birth")),a(2),g("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(4),g("routerLink",oe(50,rxe)),a(),h(m(74,46,"labels.buttons.Cancel")),a(2),g("disabled",!i.addFamilyMemberForm.valid),a(),v(" ",m(77,48,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,he,ki],styles:[".add-family-member-container[_ngcontent-%COMP%]{width:70%;margin:0 auto;padding:5%}@media screen and (width >= 960px){.add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-fill[_ngcontent-%COMP%]:nth-child(odd), .add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-50-minus-25px[_ngcontent-%COMP%]:nth-child(odd){margin-right:25px}.add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-fill[_ngcontent-%COMP%]:last-child, .add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-50-minus-25px[_ngcontent-%COMP%]:last-child{margin-right:0}}.mat-form-field-hint[_ngcontent-%COMP%]{font-size:75%;color:#0009;margin-top:4px;margin-bottom:8px}"]})}}return e})();var hxe=()=>["../../"];function gxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _xe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Cxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function vxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function bxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function Sxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}var GC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.router=T(qe),this.route=T(Ie),this.clientsService=T(Oi),this.settingsService=T(Ot),this.maxDate=new Date,this.route.data.subscribe(t=>{this.addFamilyMemberTemplate=t.clientTemplate.familyMemberOptions,this.familyMemberDetails=t.editFamilyMember})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditFamilyMemberForm(this.familyMemberDetails),this.editFamilyMemberForm.get("dateOfBirth").valueChanges.subscribe(t=>{if(t){let n=this.calculateAge(t);this.editFamilyMemberForm.get("age").setValue(n)}else this.editFamilyMemberForm.get("age").setValue("")})}calculateAge(t){let n=new Date(this.settingsService.businessDate),i=new Date(t),s=n.getFullYear()-i.getFullYear(),d=n.getMonth()-i.getMonth();return(d<0||d===0&&n.getDate(){this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-family-member"]],decls:78,vars:50,consts:[["dueDatePicker",""],[1,"add-family-member-container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","align-start-center"],[1,"flex-50-minus-25px"],["formControlName","firstName","required","","matInput",""],["formControlName","middleName","matInput",""],["formControlName","lastName","required","","matInput",""],["formControlName","qualification","matInput",""],["type","number","formControlName","age","matInput","","disabled",""],["formControlName","isDependent","labelPosition","before",1,"flex-50-minus-25px"],["formControlName","relationshipId","required",""],[3,"value"],["formControlName","genderId","required",""],["formControlName","professionId"],["formControlName","maritalStatusId"],[1,"flex-fill",3,"click"],["formControlName","dateOfBirth","matInput","","placeholder","Optional",3,"max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","gap-32px","layout-align-center"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",5),E(8,gxe,7,9,"mat-error"),r(),l(9,"mat-form-field",4)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",6),r(),l(14,"mat-form-field",4)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",7),E(19,_xe,7,9,"mat-error"),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",4)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",9),r(),l(30,"mat-checkbox",10),c(31),p(32,"translate"),r(),l(33,"mat-form-field",4)(34,"mat-label"),c(35),p(36,"translate"),r(),l(37,"mat-select",11),Se(38,Cxe,3,5,"mat-option",12,Pe),r(),E(40,vxe,7,9,"mat-error"),r(),l(41,"mat-form-field",4)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",13),Se(46,xxe,3,5,"mat-option",12,Pe),r(),E(48,bxe,7,9,"mat-error"),r(),l(49,"mat-form-field",4)(50,"mat-label"),c(51),p(52,"translate"),r(),l(53,"mat-select",14),Se(54,yxe,3,5,"mat-option",12,Pe),r()(),l(56,"mat-form-field",4)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",15),Se(61,Sxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){V(s);let u=ve(70);return q(u.open())}),l(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",17)(68,"mat-datepicker-toggle",18)(69,"mat-datepicker",null,0),r()(),l(71,"div",19)(72,"button",20),c(73),p(74,"translate"),r(),l(75,"button",21),c(76),p(77,"translate"),r()()()()}if(n&2){let s=ve(70);a(),g("formGroup",i.editFamilyMemberForm),a(4),h(m(6,23,"labels.inputs.First Name")),a(3),I(i.editFamilyMemberForm.controls.firstName.hasError("required")?8:-1),a(3),h(m(12,25,"labels.inputs.Middle Name")),a(5),h(m(17,27,"labels.inputs.Last Name")),a(3),I(i.editFamilyMemberForm.controls.lastName.hasError("required")?19:-1),a(3),h(m(23,29,"labels.inputs.Qualification")),a(5),h(m(28,31,"labels.inputs.Age")),a(4),v(" ",m(32,33,"labels.inputs.Is Dependent")," "),a(4),h(m(36,35,"labels.inputs.Relationship")),a(3),we(i.addFamilyMemberTemplate.relationshipIdOptions),a(2),I(i.editFamilyMemberForm.controls.relationshipId.hasError("required")?40:-1),a(3),h(m(44,37,"labels.inputs.Gender")),a(3),we(i.addFamilyMemberTemplate.genderIdOptions),a(2),I(i.editFamilyMemberForm.controls.genderId.hasError("required")?48:-1),a(3),h(m(52,39,"labels.inputs.Profession")),a(3),we(i.addFamilyMemberTemplate.professionIdOptions),a(4),h(m(59,41,"labels.inputs.Marital Status")),a(3),we(i.addFamilyMemberTemplate.maritalStatusIdOptions),a(4),h(m(66,43,"labels.inputs.Date Of Birth")),a(2),g("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(4),g("routerLink",oe(49,hxe)),a(),v(" ",m(74,45,"labels.buttons.Cancel")," "),a(2),g("disabled",i.editFamilyMemberForm.pristine||!i.editFamilyMemberForm.valid),a(),v(" ",m(77,47,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,he,ki],styles:[".add-family-member-container[_ngcontent-%COMP%]{width:70%;margin:0 auto;padding:5%}@media screen and (width >= 960px){.add-family-member-container[_ngcontent-%COMP%] .flex-50-minus-25px[_ngcontent-%COMP%]:nth-child(odd){margin-right:25px}.add-family-member-container[_ngcontent-%COMP%] .flex-50-minus-25px[_ngcontent-%COMP%]:last-child{margin-right:0}}.mat-form-field-hint[_ngcontent-%COMP%]{font-size:75%;color:#0009;margin-top:4px;margin-bottom:8px}"]})}}return e})();var wxe=["identifiersTable"],Pxe=["identityLightbox"],Txe=()=>({"margin-top":"3%"});function Mxe(e,o){if(e&1){let t=Y();l(0,"button",18),R("click",function(){V(t);let i=w();return q(i.addIdentifier())}),b(1,"fa-icon",19),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add")," "))}function Dxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Id")))}function Exe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function Ixe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Oxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentType.name)}}function Axe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Document Key")))}function Fxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentKey)}}function kxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function Bxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function Rxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Identity Documents")))}function Nxe(e,o){if(e&1&&b(0,"img",26),e&2){let t=w().$implicit,n=w(3);g("src",n.previewThumbnails[t.id],f0)("alt",t.name)("title",t.name)}}function Lxe(e,o){if(e&1&&(l(0,"div",27),b(1,"fa-icon",32),l(2,"span"),c(3),r()()),e&2){let t=w().$implicit;a(3),h(t.fileName||t.name)}}function Vxe(e,o){e&1&&(l(0,"div",28),b(1,"fa-icon",33),r())}function qxe(e,o){if(e&1&&(l(0,"div",31),c(1),r()),e&2){let t=w().$implicit;a(),h(t.fileName)}}function zxe(e,o){if(e&1){let t=Y();l(0,"div",24)(1,"div",25),p(2,"translate"),R("keydown.enter",function(){let i=V(t).$implicit,s=w(2).$implicit,d=w();return q(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("keydown.space",function(){let i=V(t).$implicit,s=w(2).$implicit,d=w();return q(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("click",function(){let i=V(t).$implicit,s=w(2).$implicit,d=w();return q(d.isPreviewable(i)&&d.openDocumentPreview(s,i))}),E(3,Nxe,1,3,"img",26)(4,Lxe,4,1,"div",27),E(5,Vxe,2,0,"div",28),r(),l(6,"div",29)(7,"div",30),c(8),r(),E(9,qxe,2,1,"div",31),r()()}if(e&2){let t=o.$implicit,n=w(3);a(),_l("clickable",n.isPreviewable(t)),Dn("aria-label",m(2,7,"labels.buttons.Preview")+": "+t.name),a(2),I(n.previewThumbnails[t.id]?3:4),a(2),I(n.isPreviewable(t)?5:-1),a(3),h(t.name),a(),I(t.fileName?9:-1)}}function Hxe(e,o){if(e&1&&(l(0,"div",22),Se(1,zxe,10,9,"div",24,dd().trackByDocumentId,!0),r()),e&2){let t=w().$implicit;a(),we(t.documents)}}function Gxe(e,o){e&1&&(l(0,"span",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.NoDocuments")))}function jxe(e,o){if(e&1&&(l(0,"td",21),E(1,Hxe,3,0,"div",22)(2,Gxe,3,3,"span",23),r()),e&2){let t=o.$implicit;a(),I(t.documents!=null&&t.documents.length?1:2)}}function $xe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function Uxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.status==="clientIdentifierStatusType.active"?"active":"inactive"," ")}}function Wxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Qxe(e,o){if(e&1){let t=Y();l(0,"button",35),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w(),s=i.$implicit,d=i.index,u=w();return q(u.deleteIdentifier(s.clientId,s.id,d))}),b(3,"fa-icon",36),r()}e&2&&(g("title",m(1,2,"labels.buttons.Delete")),Dn("aria-label",m(2,4,"labels.buttons.Delete")))}function Yxe(e,o){e&1&&(l(0,"td",21),F(1,Qxe,4,6,"button",34),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENTIDENTIFIER"))}function Jxe(e,o){e&1&&b(0,"tr",37)}function Kxe(e,o){e&1&&b(0,"tr",38)}var jC=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.clientService=T(Oi),this.translateService=T(yi),this.documentPreviewService=T(Ik),this.destroyRef=T(pF),this.identitiesColumns=["id","description","type","documentKey","documents","status","actions"],this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[Ek,Dk,Mk],this.clientId=this.route.parent.snapshot.paramMap.get("clientId"),this.route.data.pipe(Rk(this.destroyRef)).subscribe(t=>{this.clientIdentities=t.clientIdentities,this.clientIdentifierTemplate=t.clientIdentifierTemplate,this.prefetchThumbnails()})}ngOnDestroy(){this.destroyLightbox(),Array.isArray(this.clientIdentities)&&this.clientIdentities.forEach(t=>{t.documents?.forEach(n=>this.documentPreviewService.release(n.id))})}trackByDocumentId(t,n){return n?.id}addIdentifier(){let t=this.clientIdentifierTemplate.allowedDocumentTypes.map(s=>qt(at({},s),{name:this.translateService.instant(`labels.catalogs.${s.name}`)})),n=[{label:this.translateService.instant("labels.catalogs.Active"),value:"Active"},{label:this.translateService.instant("labels.catalogs.Inactive"),value:"Inactive"}];this.dialog.open(Ug,{data:{documentIdentifier:!0,allowedDocumentTypes:t,statusOptions:n}}).afterClosed().subscribe(s=>{if(s){let d={documentTypeId:s.documentTypeId,status:s.status,documentKey:s.documentKey,description:s.description};this.clientService.addClientIdentifier(this.clientId,d).subscribe({next:u=>{let f=u.resourceId,_=this.clientIdentifierTemplate.allowedDocumentTypes.find(x=>x.id===s.documentTypeId),C={id:f,description:s.description,documentType:_,documentKey:s.documentKey,documents:[],clientId:this.clientId,status:s.status==="Active"?"clientIdentifierStatusType.active":"clientIdentifierStatusType.inactive"};if(s.file){let x=new FormData;x.append("name",s.fileName),x.append("file",s.file),this.clientService.uploadClientIdentifierDocument(f,x).subscribe({next:y=>{let P={id:y.resourceId,parentEntityType:"client_identifiers",parentEntityId:f,name:s.fileName,fileName:s.file.name};C.documents.push(P),this.clientIdentities.push(C),this.identifiersTable.renderRows(),this.setThumbnail(P)},error:y=>{console.error("Failed to upload document",y),this.clientIdentities.push(C),this.identifiersTable.renderRows()}})}else this.clientIdentities.push(C),this.identifiersTable.renderRows()},error:u=>{console.error("Failed to create identifier",u)}})}})}deleteIdentifier(t,n,i){this.dialog.open(vi,{data:{deleteContext:`${this.translateService.instant("labels.heading.identifier id")} : ${n}`}}).afterClosed().subscribe(d=>{d.delete&&this.clientService.deleteClientIdentifier(t,n).subscribe(u=>{this.clientIdentities.splice(i,1),this.identifiersTable.renderRows()})})}isPreviewable(t){return this.documentPreviewService.isPreviewable(t)}openDocumentPreview(t,n){return qn(this,null,function*(){if(this.isPreviewable(n))try{let i=(t.documents||[]).filter(u=>this.isPreviewable(u)),s=[];for(let u of i)try{let f=yield this.documentPreviewService.resolvePreviewUrl(u,()=>this.clientService.downloadClientIdentificationDocument(u.parentEntityId||t.id,u.id));f.type==="image"&&(this.previewThumbnails[u.id]=f.url),s.push({src:f.url,thumb:f.type==="image"?f.url:void 0,subHtml:this.buildSubHtml(u,t),iframe:f.type==="pdf"})}catch(f){console.error("Preview failed for document",u.id,f)}if(!s.length)return;let d=Math.max(0,i.findIndex(u=>u.id===n.id));this.destroyLightbox(),this.lightboxInstance=Tk(this.identityLightbox.nativeElement,{dynamic:!0,dynamicEl:s,plugins:this.lightboxPlugins,licenseKey:"0000-0000-000-0000",download:!1,escKey:!0,closable:!0,zoomFromOrigin:!0}),this.lightboxInstance.openGallery(d)}catch(i){console.error("Unable to open preview",i)}})}buildSubHtml(t,n){let i=t.description?`

${this.escapeHtml(t.description)}

`:"",s=n?.documentKey?`

${this.escapeHtml(n.documentKey)}

`:"";return`

${this.escapeHtml(t.name||"Document")}

${i}${s}
`}escapeHtml(t){return t?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):""}destroyLightbox(){this.lightboxInstance&&(this.lightboxInstance.destroy(),this.lightboxInstance=null)}setThumbnail(t){this.documentPreviewService.isPreviewable(t)&&this.documentPreviewService.resolvePreviewUrl(t,()=>this.clientService.downloadClientIdentificationDocument(t.parentEntityId||this.clientId,t.id)).then(n=>{n.type==="image"&&(this.previewThumbnails[t.id]=n.url)}).catch(()=>{})}prefetchThumbnails(){Array.isArray(this.clientIdentities)&&this.clientIdentities.forEach(t=>{t.documents?.forEach(n=>this.setThumbnail(n))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-identities-tab"]],viewQuery:function(n,i){if(n&1&&(Ee(wxe,7),Ee(Pxe,7)),n&2){let s;Te(s=Me())&&(i.identifiersTable=s.first),Te(s=Me())&&(i.identityLightbox=s.first)}},decls:33,vars:9,consts:[["identifiersTable",""],["identityLightbox",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource","ngStyle"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","documentKey"],["matColumnDef","description"],["matColumnDef","documents"],["matColumnDef","status"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"document-lightbox-host"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],[1,"document-grid"],[1,"muted"],[1,"document-card"],["role","button","tabindex","0",1,"thumb",3,"keydown.enter","keydown.space","click"],["loading","lazy",3,"src","alt","title"],[1,"placeholder"],[1,"preview-overlay"],[1,"card-body"],[1,"title"],[1,"meta"],["icon","file"],["icon","eye"],["class","identity-action-button","mat-raised-button","","color","warn",3,"title","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"identity-action-button",3,"click","title"],["icon","times"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",2)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",3),F(5,Mxe,4,3,"button",4),r(),l(6,"table",5,0),X(8,6),F(9,Dxe,3,3,"th",7)(10,Exe,2,1,"td",8),Z(),X(11,9),F(12,Ixe,3,3,"th",7)(13,Oxe,2,1,"td",8),Z(),X(14,10),F(15,Axe,3,3,"th",7)(16,Fxe,2,1,"td",8),Z(),X(17,11),F(18,kxe,3,3,"th",7)(19,Bxe,2,1,"td",8),Z(),X(20,12),F(21,Rxe,3,3,"th",7)(22,jxe,3,1,"td",8),Z(),X(23,13),F(24,$xe,3,3,"th",7)(25,Uxe,2,1,"td",8),Z(),X(26,14),F(27,Wxe,3,3,"th",7)(28,Yxe,2,1,"td",8),Z(),F(29,Jxe,1,0,"tr",15)(30,Kxe,1,0,"tr",16),r()(),b(31,"div",17,1)),n&2&&(a(2),h(m(3,6,"labels.heading.Identities")),a(3),g("mifosxHasPermission","CREATE_CLIENTIDENTIFIER"),a(),g("dataSource",i.clientIdentities)("ngStyle",oe(8,Txe)),a(23),g("matHeaderRowDef",i.identitiesColumns),a(),g("matRowDefColumns",i.identitiesColumns))},dependencies:[ue,is,fe,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.tab-container[_ngcontent-%COMP%]{padding:1rem;margin:1rem 0}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .identity-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.document-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem}.document-card[_ngcontent-%COMP%]{width:200px;background:#fff;border:1px solid #bdc3c7;border-radius:4px;overflow:hidden;box-shadow:0 1px 4px #353b3b1f;display:flex;flex-direction:column}.document-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #353b3b24}.thumb[_ngcontent-%COMP%]{position:relative;background:#ecf0f1;min-height:7.5rem;display:flex;align-items:center;justify-content:center;cursor:default}.thumb.clickable[_ngcontent-%COMP%]{cursor:pointer}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.preview-overlay[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;right:.5rem;background:#ffffffe6;border-radius:50%;padding:.4rem;color:#3498db;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease}.thumb[_ngcontent-%COMP%]:hover .preview-overlay[_ngcontent-%COMP%], .thumb[_ngcontent-%COMP%]:focus .preview-overlay[_ngcontent-%COMP%]{opacity:1}.placeholder[_ngcontent-%COMP%]{color:#f5f5f5;text-align:center;padding:.75rem;display:flex;flex-direction:column;gap:.4rem;align-items:center;justify-content:center}.placeholder[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:1.125rem}.placeholder[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.2}.preview-btn[_ngcontent-%COMP%]{position:absolute;right:.5rem;bottom:.5rem;background:#000000a6;color:#fff}.card-body[_ngcontent-%COMP%]{padding:.625rem .75rem .75rem;display:flex;flex-direction:column;gap:.25rem}.title[_ngcontent-%COMP%]{font-weight:700;color:#353b3b}.meta[_ngcontent-%COMP%]{font-size:.75rem;color:#7f8c8d}.muted[_ngcontent-%COMP%]{color:#95a5a6}.document-lightbox-host[_ngcontent-%COMP%]{display:none}"]})}}return e})();var $C=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.authenticationService=T(Wo),this.entityId=this.route.parent.snapshot.params.clientId,this.addNote=this.addNote.bind(this)}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.route.data.subscribe(n=>{this.entityNotes=n.clientNotes})}editNote(t,n,i){this.clientsService.editClientNote(this.entityId,t,n).subscribe(()=>{this.entityNotes[i].note=n.note})}deleteNote(t,n){this.clientsService.deleteClientNote(this.entityId,t).subscribe(()=>{this.entityNotes.splice(n,1)})}addNote(t){this.clientsService.createClientNote(this.entityId,t).subscribe(n=>{this.entityNotes.push({id:n.resourceId,createdByUsername:this.username,createdOn:new Date,note:t.note})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-notes-tab",0),n&2&&g("entityId",i.entityId)("entityNotes",i.entityNotes)("callbackAdd",i.addNote)("callbackEdit",i.editNote)("callbackDelete",i.deleteNote)},dependencies:[ue,fe,E0],encapsulation:2})}}return e})();var UC=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.dialog=T(Ht),this.entityType="clients",this.route.data.subscribe(t=>{this.entityDocuments=t.clientDocuments}),this.entityId=this.route.parent.snapshot.paramMap.get("clientId")}deleteDocument(t){this.clientsService.deleteClientDocument(this.entityId,t).subscribe(n=>{})}uploadDocument(t){return this.clientsService.uploadClientDocument(this.entityId,t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-documents-tab"]],decls:1,vars:5,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-documents-tab",0),n&2&&g("entityType",i.entityType)("entityId",i.entityId)("entityDocuments",i.entityDocuments)("callbackUpload",i.uploadDocument)("callbackDelete",i.deleteDocument)},dependencies:[ue,fe,Ok],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .document-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var WC=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("clientId"),this.route.data.subscribe(t=>{this.entityDatatable=t.clientDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Client",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();function Xxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Street")," : ",t.street)}}function Zxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function ebe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function tbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function ibe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function nbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.City")," : ",t.city)}}function obe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w();a(),le("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function abe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w();a(),le("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function rbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function lbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function sbe(e,o){if(e&1){let t=Y();l(0,"mat-expansion-panel",4)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider",5),l(7,"div",6)(8,"button",7),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w();return q(u.editAddress(s,d))}),b(9,"fa-icon",8),r(),l(10,"mat-slide-toggle",9),R("change",function(){let i=V(t).$implicit,s=w();return q(s.toggleAddress(i))}),r()(),l(11,"p"),E(12,Xxe,4,4,"span"),E(13,Zxe,4,4,"span"),E(14,ebe,4,4,"span"),E(15,tbe,4,4,"span"),E(16,ibe,4,4,"span"),E(17,nbe,4,4,"span"),E(18,obe,4,4,"span"),E(19,abe,4,4,"span"),E(20,rbe,4,4,"span"),E(21,lbe,4,4,"span"),r()()}if(e&2){let t=o.$implicit,n=w();a(3),v(" ",t.addressType," "),a(2),v(" ",t.relationship," "),a(),g("inset",!0),a(4),g("checked",t.isActive),a(2),I(n.isFieldEnabled("street")?12:-1),a(),I(n.isFieldEnabled("addressLine1")?13:-1),a(),I(n.isFieldEnabled("addressLine2")?14:-1),a(),I(n.isFieldEnabled("addressLine3")?15:-1),a(),I(n.isFieldEnabled("townVillage")?16:-1),a(),I(n.isFieldEnabled("city")?17:-1),a(),I(n.isFieldEnabled("stateProvinceId")?18:-1),a(),I(n.isFieldEnabled("countryId")?19:-1),a(),I(n.isFieldEnabled("postalCode")?20:-1),a(),I(n.isFieldEnabled("isActive")?21:-1)}}var QC=(()=>{class e{constructor(){this.route=T(Ie),this.clientService=T(Oi),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.clientAddressData=t.clientAddressData,this.clientAddressFieldConfig=t.clientAddressFieldConfig,this.clientAddressTemplate=t.clientAddressTemplateData,this.clientId=this.route.parent.snapshot.paramMap.get("clientId")})}addAddress(){let t={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields("add")};this.dialog.open(an,{data:t}).afterClosed().subscribe(i=>{i.data&&this.clientService.createClientAddress(this.clientId,i.data.value.addressType,i.data.value).subscribe(s=>{let d=i.data.value;d.addressId=s.resourceId,d.addressType=this.getSelectedValue("addressTypeIdOptions",d.addressType).name,d.isActive=!1,this.clientAddressData.push(d)})})}editAddress(t,n){let i={title:this.translateService.instant("labels.buttons.Edit")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields("edit",t),layout:{addButtonText:"Edit"}};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=d.data.value;u.addressId=t.addressId,u.isActive=t.isActive,this.clientService.editClientAddress(this.clientId,t.addressTypeId,u).subscribe(f=>{u.addressTypeId=t.addressTypeId,u.addressType=t.addressType,this.clientAddressData[n]=u})}})}toggleAddress(t){let n={addressId:t.addressId,isActive:!t.isActive};this.clientService.editClientAddress(this.clientId,t.addressTypeId,n).subscribe(()=>{t.isActive=!t.isActive})}isFieldEnabled(t){return this.clientAddressFieldConfig.find(n=>n.field===t)?.isEnabled}getSelectedValue(t,n){return this.clientAddressTemplate[t].find(i=>i.id===n)}getAddressFormFields(t,n){let i=[];for(let s=0;ss!==null),i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-address-tab"]],decls:12,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"address"],[3,"inset"],[1,"address-actions","layout-row","align-end","align-items-center"],["mat-button","","color","primary",3,"click"],["icon","edit"],[3,"change","checked"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"button",2),R("click",function(){return i.addAddress()}),b(6,"fa-icon",3),c(7),p(8,"translate"),r()(),l(9,"mat-accordion"),Se(10,sbe,22,14,"mat-expansion-panel",4,Pe),r()()),n&2&&(a(2),h(m(3,2,"labels.heading.Address")),a(5),v("",m(8,4,"labels.buttons.Add")," "),a(3),we(i.clientAddressData))},dependencies:[ue,fe,xe,ke,Dr,Pr,Tr,Mr,oc,Ri,Ip,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%]{margin-top:1%}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}"]})}}return e})();var cbe=()=>["../../"];function pbe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function mbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var YC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.clientData=t.clientActionData})}ngOnInit(){this.staffData=this.clientData.staffOptions,this.createClientAssignStaffForm()}createClientAssignStaffForm(){this.clientAssignStaffForm=this.formBuilder.group({staffId:[""]})}submit(){this.clientsService.executeClientCommand(this.clientData.id,"assignStaff",this.clientAssignStaffForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-assign-staff"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","staffId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,pbe,2,2,"mat-option",5,Pe),r(),E(12,mbe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.clientAssignStaffForm),a(5),h(m(8,7,"labels.inputs.Staff")),a(3),we(i.staffData),a(2),I(i.clientAssignStaffForm.controls.staffId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,cbe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientAssignStaffForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dbe=()=>["../../"];function ube(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fbe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function hbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var JC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.closureData=t.clientActionData.narrations}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseClientForm()}createCloseClientForm(){this.closeClientForm=this.formBuilder.group({closureDate:["",ce.required],closureReasonId:["",ce.required]})}submit(){let t=this.closeClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.closeClientForm.value.closureDate;t.closureDate instanceof Date&&(t.closureDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"close",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-close-client"]],decls:29,vars:22,consts:[["closureDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closureDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","closureReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,ube,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,fbe,2,2,"mat-option",9,Pe),r(),E(21,hbe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.closeClientForm),a(5),h(m(8,13,"labels.inputs.Closed On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.closeClientForm.controls.closureDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Closure Reason")),a(3),we(i.closureData),a(2),I(i.closeClientForm.controls.closureReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,dbe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.closeClientForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var gbe=()=>["../Take Survey"],_be=()=>[10,25,50,100];function Cbe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Survey")))}function vbe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.surveyName)}}function xbe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Created By")," "))}function bbe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function ybe(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.DateTime")))}function Sbe(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.date))}}function wbe(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Score")))}function Pbe(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.score))}}function Tbe(e,o){e&1&&b(0,"tr",24)}function Mbe(e,o){e&1&&b(0,"tr",25)}var KC=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["surveyName","createdBy","date","score"],this.route.data.subscribe(t=>{this.surveyData=t.clientActionData})}ngOnInit(){this.constructSurveys(this.surveyData)}constructSurveys(t){let n=[];t.forEach(i=>{let s=i.scorecardValues.map(d=>({surveyName:i.surveyName,createdBy:i.username,date:d.createdOn,score:d.value}));n=n.concat(s)}),this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-survey"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:13,consts:[[1,"container","m-b-20","layout-align-end"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","surveyName"],["mat-header-cell","","mat-sort-header","surveyName",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-cell","","mat-sort-header","createdBy",4,"matHeaderCellDef"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","score"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header","surveyName"],["mat-cell",""],["mat-header-cell","","mat-sort-header","createdBy"],["mat-header-cell","","mat-sort-header",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",6),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(12,"div",7)(13,"table",8),X(14,9),F(15,Cbe,3,3,"th",10)(16,vbe,2,1,"td",11),Z(),X(17,12),F(18,xbe,3,3,"th",13)(19,bbe,2,1,"td",11),Z(),X(20,14),F(21,ybe,3,3,"th",15)(22,Sbe,3,3,"td",11),Z(),X(23,16),F(24,wbe,3,3,"th",15)(25,Pbe,3,3,"td",11),Z(),F(26,Tbe,1,0,"tr",17)(27,Mbe,1,0,"tr",18),r(),b(28,"mat-paginator",19),r()()),n&2&&(a(),g("routerLink",oe(11,gbe)),a(2),v(" ",m(4,7,"labels.buttons.Take Survey")," "),a(6),h(m(10,9,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,_be)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,Yr,In],styles:[".headingContent[_ngcontent-%COMP%]{margin-bottom:1%;margin-top:1%}.headingName[_ngcontent-%COMP%]{display:block}"]})}}return e})();var Dbe=()=>["../../"];function Ebe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Rejection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ibe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Obe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Rejection Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var XC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.rejectionData=t.clientActionData.narrations}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectClientForm()}createRejectClientForm(){this.rejectClientForm=this.formBuilder.group({rejectionDate:["",ce.required],rejectionReasonId:["",ce.required]})}submit(){let t=this.rejectClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.rejectClientForm.value.rejectionDate;t.rejectionDate instanceof Date&&(t.rejectionDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"reject",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reject-client"]],decls:29,vars:22,consts:[["rejectionDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","rejectionReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,Ebe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,Ibe,2,2,"mat-option",9,Pe),r(),E(21,Obe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.rejectClientForm),a(5),h(m(8,13,"labels.inputs.Rejection Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.rejectClientForm.controls.rejectionDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Rejection Reason")),a(3),we(i.rejectionData),a(2),I(i.rejectClientForm.controls.rejectionReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,Dbe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.rejectClientForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Abe=()=>["../../"];function Fbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ZC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateClientForm()}createActivateClientForm(){this.activateClientForm=this.formBuilder.group({activationDate:["",ce.required]})}submit(){let t=this.activateClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.activateClientForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"activate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-activate-client"]],decls:20,vars:18,consts:[["activationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,Fbe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.activateClientForm),a(4),h(m(7,11,"labels.inputs.Activated On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.activateClientForm.controls.activationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,Abe)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.activateClientForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var kbe=()=>["../../"];function Bbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Withdrawal Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Rbe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Nbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Withdrawal Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var e2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.withdrawalData=t.clientActionData.narrations}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawClientForm()}createWithdrawClientForm(){this.withdrawClientForm=this.formBuilder.group({withdrawalDate:["",ce.required],withdrawalReasonId:["",ce.required]})}submit(){let t=this.withdrawClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.withdrawClientForm.value.withdrawalDate;t.withdrawalDate instanceof Date&&(t.withdrawalDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"withdraw",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-withdraw-client"]],decls:29,vars:22,consts:[["withdrawalDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawalDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","withdrawalReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,Bbe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,Rbe,2,2,"mat-option",9,Pe),r(),E(21,Nbe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.withdrawClientForm),a(5),h(m(8,13,"labels.inputs.Withdrawal Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.withdrawClientForm.controls.withdrawalDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Withdrawal Reason")),a(3),we(i.withdrawalData),a(2),I(i.withdrawClientForm.controls.withdrawalReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,kbe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.withdrawClientForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Lbe=()=>["../../"];function Vbe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.accountNo," ")}}function qbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var t2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.clientData=t.clientActionData})}ngOnInit(){this.savingsAccounts=this.clientData.savingAccountOptions,this.createClientSavingsAccountForm()}createClientSavingsAccountForm(){this.clientSavingsAccountForm=this.formBuilder.group({savingsAccountId:[this.clientData.savingsAccountId]})}submit(){this.clientsService.executeClientCommand(this.clientData.id,"updateSavingsAccount",this.clientSavingsAccountForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-update-client-savings-account"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","savingsAccountId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Vbe,2,2,"mat-option",5,Pe),r(),E(12,qbe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.clientSavingsAccountForm),a(5),h(m(8,7,"labels.inputs.Default Savings Account")),a(3),we(i.savingsAccounts),a(2),I(i.clientSavingsAccountForm.controls.savingsAccountId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,Lbe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientSavingsAccountForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var zbe=()=>["../../"];function Hbe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Gbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transfer Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var i2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransferClientForm()}createTransferClientForm(){this.transferClientForm=this.formBuilder.group({destinationOfficeId:["",ce.required],transferDate:["",ce.required],note:[""]})}submit(){let t=this.transferClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.transferClientForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"proposeTransfer",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-transfer-client"]],decls:34,vars:25,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","destinationOfficeId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Hbe,2,2,"mat-option",5,Pe),r(),E(12,Gbe,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,jbe,7,9,"mat-error"),r(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"textarea",9),r()()(),l(27,"mat-card-actions",10)(28,"button",11),c(29),p(30,"translate"),r(),l(31,"button",12),c(32),p(33,"translate"),r()()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.transferClientForm),a(5),h(m(8,14,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.transferClientForm.controls.destinationOfficeId.hasError("required")?12:-1),a(3),h(m(16,16,"labels.inputs.Transfer Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.transferClientForm.controls.transferDate.hasError("required")?21:-1),a(3),h(m(25,18,"labels.inputs.Note")),a(4),g("routerLink",oe(24,zbe)),a(),v(" ",m(30,20,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.transferClientForm.valid),a(),v(" ",m(33,22,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var $be=()=>["../../"],n2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.transferDate=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createUndoClientTransferForm()}createUndoClientTransferForm(){this.undoClientTransferForm=this.formBuilder.group({transferDate:{value:new Date(this.transferDate),disabled:!0},note:[""]})}submit(){let t=this.undoClientTransferForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.undoClientTransferForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(s,i));let d=at({},t);this.clientsService.executeClientCommand(this.clientId,"withdrawTransfer",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-undo-client-transfer"]],decls:24,vars:18,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"textarea",8),r()(),l(17,"mat-card-actions",9)(18,"button",10),c(19),p(20,"translate"),r(),l(21,"button",11),c(22),p(23,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.undoClientTransferForm),a(4),h(m(7,9,"labels.inputs.Transfer Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(15,11,"labels.inputs.Note")),a(4),g("routerLink",oe(17,$be)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.undoClientTransferForm.valid),a(),v(" ",m(23,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Ube=()=>["../../"],o2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.transferDate=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createRejectClientTransferForm()}createRejectClientTransferForm(){this.rejectClientTransferForm=this.formBuilder.group({transferDate:{value:new Date(this.transferDate),disabled:!0},note:[""]})}submit(){let t=this.rejectClientTransferForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.rejectClientTransferForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(s,i));let d=at({},t);this.clientsService.executeClientCommand(this.clientId,"rejectTransfer",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reject-client-transfer"]],decls:24,vars:18,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"textarea",8),r()(),l(17,"mat-card-actions",9)(18,"button",10),c(19),p(20,"translate"),r(),l(21,"button",11),c(22),p(23,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.rejectClientTransferForm),a(4),h(m(7,9,"labels.inputs.Transfer Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(15,11,"labels.inputs.Note")),a(4),g("routerLink",oe(17,Ube)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.rejectClientTransferForm.valid),a(),v(" ",m(23,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Wbe=()=>["../../"],a2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.transferDate=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createAcceptClientTransferForm()}createAcceptClientTransferForm(){this.acceptClientTransferForm=this.formBuilder.group({transferDate:{value:new Date(this.transferDate),disabled:!0},note:[""]})}submit(){let t=this.acceptClientTransferForm.value,n=this.settingsService.dateFormat,i=this.acceptClientTransferForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(i,n));let s=at({},t);this.clientsService.executeClientCommand(this.clientId,"acceptTransfer",s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-accept-client-transfer"]],decls:24,vars:18,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"textarea",8),r()(),l(17,"mat-card-actions",9)(18,"button",10),c(19),p(20,"translate"),r(),l(21,"button",11),c(22),p(23,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.acceptClientTransferForm),a(4),h(m(7,9,"labels.inputs.Transfer Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(15,11,"labels.inputs.Note")),a(4),g("routerLink",oe(17,Wbe)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.acceptClientTransferForm.valid),a(),v(" ",m(23,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Qbe=()=>["../../"];function Ybe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Reactivation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var r2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createReactivateClientForm()}createReactivateClientForm(){this.reactivateClientForm=this.formBuilder.group({reactivationDate:["",ce.required]})}submit(){let t=this.reactivateClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.reactivateClientForm.value.reactivationDate;t.reactivationDate instanceof Date&&(t.reactivationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"reactivate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reactivate-client"]],decls:20,vars:18,consts:[["reactivationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","reactivationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,Ybe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.reactivateClientForm),a(4),h(m(7,11,"labels.inputs.Re Activation On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.reactivateClientForm.controls.reactivationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,Qbe)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.reactivateClientForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Jbe=()=>["../../"];function Kbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Reopened On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var l2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createUndoClientRejectionForm()}createUndoClientRejectionForm(){this.undoClientRejectionForm=this.formBuilder.group({reopenedDate:["",ce.required]})}submit(){let t=this.undoClientRejectionForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.undoClientRejectionForm.value.reopenedDate;t.reopenedDate instanceof Date&&(t.reopenedDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"undoRejection",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-undo-client-rejection"]],decls:20,vars:18,consts:[["reopenedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","reopenedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,Kbe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.undoClientRejectionForm),a(4),h(m(7,11,"labels.inputs.Reopened On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.undoClientRejectionForm.controls.reopenedDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,Jbe)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.undoClientRejectionForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Xbe=()=>["../../"];function Zbe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name+" ("+t.currency.name+")"," ")}}function eye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iye(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function nye(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function oye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Due for collection on")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),E(8,oye,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Due for collection on")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.clientChargeForm.controls.dueDate.hasError("required")?8:-1)}}function rye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Due Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),E(8,rye,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Due On")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.clientChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function sye(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Repeats Every")))}function cye(e,o){if(e&1&&(l(0,"div",4)(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",10),E(6,tye,7,9,"mat-error"),r(),l(7,"mat-form-field")(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",11),Se(12,iye,2,2,"mat-option",6,Pe),r()(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",12),Se(19,nye,2,2,"mat-option",6,Pe),r()(),E(21,aye,9,8,"mat-form-field"),E(22,lye,9,8,"mat-form-field"),E(23,sye,5,3,"mat-form-field"),r()),e&2){let t=w();a(3),h(m(4,7,"labels.inputs.Amount")),a(3),I(t.clientChargeForm.controls.amount.hasError("required")?6:-1),a(3),h(m(10,9,"labels.inputs.Charge Calculation")),a(3),we(t.chargeDetails.chargeCalculationTypeOptions),a(4),h(m(17,11,"labels.inputs.Charge time type")),a(3),we(t.chargeDetails.chargeTimeTypeOptions),a(2),I(t.clientChargeForm.contains("dueDate")?21:-1),a(),I(t.clientChargeForm.contains("feeOnMonthDay")?22:-1),a(),I(t.clientChargeForm.contains("feeInterval")?23:-1)}}var s2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.clientChargeOptions=t.clientActionData.chargeOptions}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createClientsChargeForm(),this.buildDependencies()}buildDependencies(){this.clientChargeForm.controls.chargeId.valueChanges.subscribe(t=>{this.clientsService.getChargeAndTemplate(t).subscribe(n=>{this.chargeDetails=n;let i=n.chargeTimeType.id;(n.chargeTimeType.value==="Withdrawal Fee"||n.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(n.chargeTimeType.value==="Annual Fee"||n.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.clientChargeForm.addControl("dueDate",new it("",ce.required)):this.clientChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.clientChargeForm.addControl("feeOnMonthDay",new it("",ce.required)):this.clientChargeForm.removeControl("feeOnMonthDay"),i.value==="Monthly Fee"?this.clientChargeForm.addControl("feeInterval",new it(n.feeInterval,ce.required)):this.clientChargeForm.removeControl("feeInterval"),this.clientChargeForm.patchValue({amount:n.amount,chargeCalculationType:n.chargeCalculationType.id,chargeTimeType:n.chargeTimeType.id})})})}createClientsChargeForm(){this.clientChargeForm=this.formBuilder.group({chargeId:["",ce.required],amount:["",ce.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let t=this.clientChargeForm.value;if(t.locale=this.settingsService.language.code,t.feeInterval||(t.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let n="MMMM-dd";if(t.monthDayFormat=n,t.feeOnMonthDay){let i=this.clientChargeForm.value.feeOnMonthDay;t.feeOnMonthDay=this.dateUtils.formatDate(i,n)}}else{let n=this.settingsService.dateFormat;if(t.dateFormat=n,t.dueDate){let i=this.clientChargeForm.value.dueDate;t.dueDate=this.dateUtils.formatDate(i,n)}}this.clientsService.createClientCharge(this.clientId,t).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-client-charge"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(n,i){n&1&&(l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,Zbe,2,2,"mat-option",6,Pe),r(),E(12,eye,7,9,"mat-error"),r(),E(13,cye,24,13,"div",4),r(),l(14,"mat-card-actions",7)(15,"button",8),c(16),p(17,"translate"),r(),l(18,"button",9),c(19),p(20,"translate"),r()()()()()()),n&2&&(a(2),g("formGroup",i.clientChargeForm),a(5),h(m(8,8,"labels.inputs.Charge")),a(3),we(i.clientChargeOptions),a(2),I(i.clientChargeForm.controls.chargeId.hasError("required")?12:-1),a(),I(i.chargeDetails?13:-1),a(2),g("routerLink",oe(14,Xbe)),a(),v(" ",m(17,10,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientChargeForm.valid),a(),v(" ",m(20,12,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();var pye=()=>["../../general"];function mye(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function dye(e,o){e&1&&(l(0,"h2"),c(1,"component[0].componentKey"),r())}function uye(e,o){if(e&1&&(l(0,"mat-radio-button",12)(1,"span",13),c(2),r()()),e&2){let t=o.$implicit;g("value",t),a(2),v(" ",t.text," ")}}function fye(e,o){if(e&1&&(l(0,"div"),c(1),p(2,"translate"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.text.Your answer is"),": ",t.answer.text)}}function hye(e,o){if(e&1){let t=Y();l(0,"div",9)(1,"mat-label",10),c(2),r(),l(3,"mat-radio-group",11),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.answer,i)||(s.answer=i),q(i)}),Se(4,uye,3,2,"mat-radio-button",12,Pe),r()(),E(6,fye,3,4,"div")}if(e&2){let t=o.$implicit;a(2),h(t.text),a(),kc("ngModel",t.answer),a(),we(t.responseDatas),a(2),I(t.answer?6:-1)}}function gye(e,o){if(e&1&&(E(0,dye,2,0,"h2"),l(1,"div",8),Se(2,hye,7,3,null,null,Pe),r()),e&2){let t=o.$implicit;I(t[0].componentKey?0:-1),a(2),we(t)}}var c2=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.router=T(qe),this.authenticationService=T(Wo),this.route.data.subscribe(n=>{this.allSurveyData=n.clientActionData,this.clientId=this.route.parent.snapshot.params.clientId});let t=this.authenticationService.getCredentials();this.userId=t.userId}onSurveyChange(t){if(t.value){this.surveyData=t.value;let n=this.groupBy(this.surveyData.questionDatas,function(i){return[i.componentKey]});this.componentGroups=n}}groupBy(t,n){let i={};return t.forEach(s=>{let d=JSON.stringify(n(s));i[d]=i[d]||[],i[d].push(s)}),Object.keys(i).map(function(s){return i[s]})}isAnyResponse(){return this.surveyData&&this.surveyData.questionDatas.forEach(t=>{if(t.answer)return!1}),!0}submit(){this.formData={userId:this.userId,clientId:this.clientId,surveyId:this.surveyData.id,surveyName:"",username:"",id:0,scorecardValues:[]},this.surveyData.questionDatas.forEach(t=>{if(t.answer){let n={questionId:t.id,responseId:t.answer.id,value:t.answer.value,createdOn:new Date().getTime()};this.formData.scorecardValues.push(n)}}),this.clientsService.createNewSurvey(this.surveyData.id,this.formData).subscribe(()=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-take-survey"]],decls:19,vars:11,consts:[[1,"container","mat-typography"],[1,"mat-elevation-z2-surveycont"],[1,"survey-select","layout-row"],[1,"name-label"],[3,"selectionChange"],[3,"value"],["mat-raised-button","","color","danger",1,"button-cancel",3,"routerLink"],["mat-raised-button","","color","primary",1,"button-submit",3,"click"],[1,"layout-column","display-questions"],[1,"layout-row","question"],[1,"flex-40","question-text"],[1,"flex-60","radio-group-spacing",3,"ngModelChange","ngModel"],[1,"layout-column","radio-button",3,"value"],[1,"wrap-mat-radio-label"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-label",3),c(4),p(5,"translate"),r(),l(6,"mat-select",4),R("selectionChange",function(d){return i.onSurveyChange(d)}),Se(7,mye,2,2,"mat-option",5,Pe),r()(),b(9,"hr"),l(10,"div"),Se(11,gye,4,1,null,null,Pe),r(),l(13,"button",6),c(14),p(15,"translate"),r(),l(16,"button",7),R("click",function(){return i.submit()}),c(17),p(18,"translate"),r()()()),n&2&&(a(4),h(m(5,4,"labels.inputs.Survey Name")),a(3),we(i.allSurveyData),a(4),we(i.componentGroups),a(2),g("routerLink",oe(10,pye)),a(),v(" ",m(15,6,"labels.buttons.Cancel")," "),a(3),v(" ",m(18,8,"labels.buttons.Submit")," "))},dependencies:[ue,fe,$e,Oe,Be,gt,ft,xe,tr,ec,Sp,ir,he],styles:[".surveyOption[_ngcontent-%COMP%]{border:1px solid #cbcbcb;padding:5px}.display-questions[_ngcontent-%COMP%]{margin-top:20px}.question[_ngcontent-%COMP%]{padding:10px 0}.wrap-mat-radio-label[_ngcontent-%COMP%]{white-space:normal}.question-text[_ngcontent-%COMP%]{font-weight:700}.survey-select[_ngcontent-%COMP%]{height:40px;margin-bottom:20px}.name-label[_ngcontent-%COMP%]{width:25%}.surveyCont[_ngcontent-%COMP%]{padding:5%}.button-cancel[_ngcontent-%COMP%]{margin-left:35%}.button-submit[_ngcontent-%COMP%]{margin-left:2%}.radio-button[_ngcontent-%COMP%]{margin-bottom:5px;align-items:normal;white-space:normal}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var _ye=["screenReport"],Cye=()=>["../../"];function vye(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function xye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Screen Report")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var p2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.sanitizer=T(Zs),this.renderer=T(gg),this.route.data.subscribe(t=>{this.templatesData=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createClientScreenReportForm()}createClientScreenReportForm(){this.clientScreenReportForm=this.formBuilder.group({templateId:[""]})}print(){let t=window.open("","Screen Report","height=400,width=600");t.document.write(""),t.document.write(""),t.document.write(this.template),t.document.write(""),t.print(),t.close()}generate(){let t=this.clientScreenReportForm.get("templateId").value;this.clientsService.retrieveClientReportTemplate(t,this.clientId).subscribe(n=>{this.template=this.sanitizer.sanitize(uF.HTML,n),this.renderer.setProperty(this.screenReportRef.nativeElement,"innerHTML",this.template)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-screen-reports"]],viewQuery:function(n,i){if(n&1&&Ee(_ye,7),n&2){let s;Te(s=Me())&&(i.screenReportRef=s.first)}},decls:34,vars:21,consts:[["output",""],["screenReport",""],[1,"container","m-b-20"],[3,"ngSubmit","formGroup"],[1,"flex-fill"],["formControlName","templateId"],[3,"value"],[1,"layout-row","align-center","gap-5px","actions-spacing","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs","size","sm",1,"m-r-10"],[1,"container","m-t-20"],[1,"layout-column","gap-3percent"],[1,"layout-align-end"],["mat-stroked-button","","color","primary",3,"click","disabled"],["icon","file",1,"m-r-10"],[1,"layout-align-center"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.generate())}),l(3,"mat-card-content")(4,"div")(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,vye,2,2,"mat-option",6,Pe),r(),E(12,xye,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",7)(14,"button",8),c(15),p(16,"translate"),r(),l(17,"button",9),b(18,"fa-icon",10),c(19),p(20,"translate"),r()()()()(),l(21,"div",11,0)(23,"mat-card",12)(24,"div",13)(25,"button",14),R("click",function(){return V(s),q(i.print())}),b(26,"fa-icon",15),c(27),p(28,"translate"),r()(),l(29,"div",16,1)(31,"p"),c(32),p(33,"translate"),r()()()()}n&2&&(a(2),g("formGroup",i.clientScreenReportForm),a(5),h(m(8,10,"labels.inputs.Client Screen Reports")),a(3),we(i.templatesData),a(2),I(i.clientScreenReportForm.controls.templateId.hasError("required")?12:-1),a(2),g("routerLink",oe(20,Cye)),a(),v(" ",m(16,12,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientScreenReportForm.valid),a(2),v("",m(20,14,"labels.buttons.Generate Report")," "),a(6),g("disabled",!i.template),a(2),v(" ",m(28,16,"labels.buttons.Print")," "),a(5),h(m(33,18,"labels.text.Please select a screen report.")))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .print[_ngcontent-%COMP%]{align-self:flex-end} mat-card{margin-bottom:1rem;padding:1rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease;height:10rem}.m-t-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#1976d2;color:#fff} .container.m-t-20 mat-card p{display:block;margin-top:-1.9rem}.m-b-20[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin-top:-1.5rem}.actions-spacing[_ngcontent-%COMP%]{margin-top:24px}"]})}}return e})();var ci=(()=>{class e{constructor(){this.http=T(ko),this.settingsService=T(Ot)}getLoanProducts(){return this.http.get("/loanproducts")}createLoanProduct(t){return this.http.post("/loanproducts",t)}getLoanProductsTemplate(){return this.http.get("/loanproducts/template")}getLoanProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/loanproducts/${t}`,{params:i})}updateLoanProduct(t,n){return this.http.put(`/loanproducts/${t}`,n)}getSavingProducts(){return this.http.get("/savingsproducts")}createSavingProduct(t){return this.http.post("/savingsproducts",t)}getSavingProductsTemplate(){return this.http.get("/savingsproducts/template")}getSavingProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/savingsproducts/${t}`,{params:i})}updateSavingProduct(t,n){return this.http.put(`/savingsproducts/${t}`,n)}getShareProducts(){return this.http.get("/products/share")}createShareProduct(t){return this.http.post("/products/share",t)}getShareProductsTemplate(){return this.http.get("/products/share/template")}getShareProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/products/share/${t}`,{params:i})}updateShareProduct(t,n){return this.http.put(`/products/share/${t}`,n)}getDividends(t){return this.http.get(`/shareproduct/${t}/dividend`)}createDividend(t,n){return this.http.post(`/shareproduct/${t}/dividend`,n)}getDividendData(t,n){let i=new rn().set("dateFormat",this.settingsService.dateFormat).set("limit","10").set("locale",this.settingsService.language.code).set("offset","0");return this.http.get(`/shareproduct/${t}/dividend/${n}`,{params:i})}approveDividend(t,n,i){let s=new rn().set("command","approve");return this.http.put(`/shareproduct/${t}/dividend/${n}`,i,{params:s})}getRecurringDepositProducts(){return this.http.get("/recurringdepositproducts")}getRecurringDepositProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/recurringdepositproducts/${t}`,{params:i})}getRecurringDepositProductsTemplate(){return this.http.get("/recurringdepositproducts/template")}getCharges(){return this.http.get("/charges")}getChargesTemplate(){return this.http.get("/charges/template")}getCharge(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/charges/${t}`,{params:i})}updateCharge(t,n){return this.http.put(`/charges/${t}`,n)}deleteCharge(t){return this.http.delete(`/charges/${t}`)}createCharge(t){return this.http.post("/charges",t)}getFixedDepositProducts(){return this.http.get("/fixeddepositproducts")}createFixedDepositProduct(t){return this.http.post("/fixeddepositproducts",t)}getFixedDepositProductsTemplate(){return this.http.get("/fixeddepositproducts/template")}getFixedDepositProduct(t){return this.http.get(`/fixeddepositproducts/${t}`)}getFixedDepositProductAndTemplate(t){let n=new rn().set("template","true");return this.http.get(`/fixeddepositproducts/${t}`,{params:n})}updateFixedDepositProduct(t,n){return this.http.put(`/fixeddepositproducts/${t}`,n)}getTaxComponents(){return this.http.get("/taxes/component")}getTaxComponent(t){return this.http.get(`/taxes/component/${t}`)}getTaxComponentTemplate(){return this.http.get("/taxes/component/template")}createTaxComponent(t){return this.http.post("/taxes/component",t)}updateTaxComponent(t,n){return this.http.put(`/taxes/component/${t}`,n)}getTaxGroups(){return this.http.get("/taxes/group")}getTaxGroup(t,n){let i=new rn().set("template",n);return this.http.get(`/taxes/group/${t}`,{params:i})}getTaxGroupTemplate(){return this.http.get("/taxes/group/template")}createTaxGroup(t){return this.http.post("/taxes/group",t)}updateTaxGroup(t,n){return this.http.put(`/taxes/group/${t}`,n)}getDelinquencyRanges(){return this.http.get("/delinquency/ranges")}getDelinquencyRange(t){return this.http.get(`/delinquency/ranges/${t}`)}createDelinquencyRange(t){return this.http.post("/delinquency/ranges",t)}updateDelinquencyRange(t,n){return this.http.put(`/delinquency/ranges/${t}`,n)}deleteDelinquencyRange(t){return this.http.delete(`/delinquency/ranges/${t}`)}getDelinquencyBuckets(){return this.http.get("/delinquency/buckets")}getDelinquencyBucket(t){return this.http.get(`/delinquency/buckets/${t}`)}createDelinquencyBucket(t){return this.http.post("/delinquency/buckets",t)}updateDelinquencyBucket(t,n){return this.http.put(`/delinquency/buckets/${t}`,n)}deleteDelinquencyBucket(t){return this.http.delete(`/delinquency/buckets/${t}`)}getProductMixes(){let t=new rn;return t=t.set("associations","productMixes"),this.http.get("/loanproducts",{params:t})}getFloatingRates(){return this.http.get("/floatingrates")}createFloatingRate(t){return this.http.post("/floatingrates",t)}getFloatingRate(t){return this.http.get(`/floatingrates/${t}`)}updateFloatingRate(t,n){return this.http.put(`/floatingrates/${t}`,n)}getProductMix(t){return this.http.get(`/loanproducts/${t}/productmix`)}getProductsMixTemplate(){let t=new rn;return t=t.set("isProductMixTemplate","true"),this.http.get("/loanproducts/template",{params:t})}getProductMixTemplate(t){let n=new rn;return n=n.set("template","true"),this.http.get(`/loanproducts/${t}/productmix`,{params:n})}createProductMix(t,n){return this.http.post(`/loanproducts/${n}/productmix`,t)}updateProductMix(t,n){return this.http.put(`/loanproducts/${n}/productmix`,t)}deleteProductMix(t){return this.http.delete(`/loanproducts/${t}/productmix`)}getAllInterestRateCharts(t){let n=new rn().set("productId",t);return this.http.get("/interestratecharts",{params:n})}createRecurringDepositProduct(t){return this.http.post("/recurringdepositproducts",t)}getRecurringDepositProductAndTemplate(t){let n=new rn().set("template","true");return this.http.get(`/recurringdepositproducts/${t}`,{params:n})}updateRecurringDepositProduct(t,n){return this.http.put(`/recurringdepositproducts/${t}`,n)}getCollaterals(){return this.http.get("/collateral-management")}getCollateralTemplate(){return this.http.get("/collateral-management/template")}getCollateral(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/collateral-management/${t}`,{params:i})}updateCollateral(t,n){return this.http.put(`/collateral-management/${t}`,n)}deleteCollateral(t){return this.http.delete(`/collateral-management/${t}`)}createCollateral(t){return this.http.post("/collateral-management",t)}getProductDatatables(t){let n=new rn().set("apptable",t);return this.http.get("/datatables",{params:n})}getProductDatatable(t,n){let i=new rn().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${t}`,{params:i})}addProductDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${t}`,i,{params:s})}editProductDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${t}`,i,{params:s})}deleteDatatableContent(t,n){let i=new rn().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${t}`,{params:i})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var bye=()=>["../../"];function yye(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Sye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Collateral")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Quantity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pye(e,o){if(e&1&&(l(0,"div",2)(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",8),r(),l(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",9),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",10),r(),l(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",11),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",12),r(),l(26,"mat-form-field")(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",13),E(31,wye,7,9,"mat-error"),r(),l(32,"mat-form-field")(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"input",14),r(),l(37,"mat-form-field")(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",15),r()()),e&2){let t=w();a(3),h(m(4,9,"labels.inputs.name")),a(5),h(m(9,11,"labels.inputs.Type/Quality")),a(5),h(m(14,13,"labels.inputs.Unit Type")),a(5),h(m(19,15,"labels.inputs.Base Price")),a(5),h(m(24,17,"labels.inputs.Percentage To Base")),a(5),h(m(29,19,"labels.inputs.Quantity")),a(3),I(t.clientCollateralForm.controls.quantity.hasError("required")?31:-1),a(3),h(m(35,21,"labels.inputs.Total")),a(5),h(m(40,23,"labels.inputs.Total Collateral Value"))}}var m2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.productsService=T(ci),this.clientsService=T(Oi),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.clientCollateralOptions=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createClientCollateralForm(),this.buildDependencies()}buildDependencies(){this.clientCollateralForm.controls.collateralId.valueChanges.subscribe(t=>{this.productsService.getCollateral(t).subscribe(n=>{this.collateralDetails=n,this.clientCollateralForm.patchValue({name:n.name,quality:n.quality,unitType:n.unitType,basePrice:this.collateralDetails.basePrice,pctToBase:this.collateralDetails.pctToBase})})}),this.clientCollateralForm.controls.quantity.valueChanges.subscribe(t=>{this.clientCollateralForm.patchValue({totalValue:this.collateralDetails.basePrice*t,totalCollateralValue:this.collateralDetails.basePrice*this.collateralDetails.pctToBase*t/100})})}createClientCollateralForm(){this.clientCollateralForm=this.formBuilder.group({collateralId:["",ce.required],quantity:["",ce.required],name:[{value:"",disabled:!0}],quality:[{value:"",disabled:!0}],unitType:[{value:"",disabled:!0}],basePrice:[{value:"",disabled:!0}],pctToBase:[{value:"",disabled:!0}],totalValue:[{value:"",disabled:!0}],totalCollateralValue:[{value:"",disabled:!0}]})}submit(){let t=this.clientCollateralForm.value.collateralId,n=this.clientCollateralForm.value.quantity,i=this.settingsService.language.code,s={collateralId:t,quantity:n,locale:i};this.clientsService.createClientCollateral(this.clientId,s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-client-collateral"]],decls:21,vars:15,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","collateralId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","quality"],["matInput","","required","","formControlName","unitType"],["matInput","","required","","formControlName","basePrice"],["matInput","","required","","formControlName","pctToBase"],["matInput","","required","","formControlName","quantity"],["matInput","","required","","formControlName","totalValue"],["matInput","","required","","formControlName","totalCollateralValue"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,yye,2,2,"mat-option",4,Pe),r(),E(12,Sye,7,9,"mat-error"),r(),E(13,Pye,42,25,"div",2),r()(),l(14,"mat-card-actions",5)(15,"button",6),c(16),p(17,"translate"),r(),l(18,"button",7),c(19),p(20,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.clientCollateralForm),a(5),h(m(8,8,"labels.inputs.Collateral")),a(3),we(i.clientCollateralOptions),a(2),I(i.clientCollateralForm.controls.collateralId.hasError("required")?12:-1),a(),I(i.collateralDetails?13:-1),a(2),g("routerLink",oe(14,bye)),a(),v(" ",m(17,10,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientCollateralForm.valid),a(),v(" ",m(20,12,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();function Tye(e,o){e&1&&b(0,"mifosx-client-assign-staff")}function Mye(e,o){e&1&&b(0,"mifosx-close-client")}function Dye(e,o){e&1&&b(0,"mifosx-view-survey")}function Eye(e,o){e&1&&b(0,"mifosx-reject-client")}function Iye(e,o){e&1&&b(0,"mifosx-activate-client")}function Oye(e,o){e&1&&b(0,"mifosx-withdraw-client")}function Aye(e,o){e&1&&b(0,"mifosx-update-client-savings-account")}function Fye(e,o){e&1&&b(0,"mifosx-transfer-client")}function kye(e,o){e&1&&b(0,"mifosx-undo-client-transfer")}function Bye(e,o){e&1&&b(0,"mifosx-reject-client-transfer")}function Rye(e,o){e&1&&b(0,"mifosx-accept-client-transfer")}function Nye(e,o){e&1&&b(0,"mifosx-reactivate-client")}function Lye(e,o){e&1&&b(0,"mifosx-undo-client-rejection")}function Vye(e,o){e&1&&b(0,"mifosx-add-client-charge")}function qye(e,o){e&1&&b(0,"mifosx-take-survey")}function zye(e,o){e&1&&b(0,"mifosx-client-screen-reports")}function Hye(e,o){e&1&&b(0,"mifosx-add-client-collateral")}var d2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.actions={"Assign Staff":!1,Close:!1,Reject:!1,Survey:!1,Withdraw:!1,"Update Default Savings":!1,"Transfer Client":!1,"Undo Transfer":!1,"Accept Transfer":!1,"Reject Transfer":!1,Reactivate:!1,Activate:!1,"Undo Rejection":!1,"Add Charge":!1,"Take Survey":!1,"Client Screen Reports":!1,"Create Collateral":!1},this.router.routeReuseStrategy.shouldReuseRoute=()=>!1;let t=this.route.snapshot.params.name;this.actions[t]=!0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-actions"]],decls:17,vars:17,template:function(n,i){n&1&&(E(0,Tye,1,0,"mifosx-client-assign-staff"),E(1,Mye,1,0,"mifosx-close-client"),E(2,Dye,1,0,"mifosx-view-survey"),E(3,Eye,1,0,"mifosx-reject-client"),E(4,Iye,1,0,"mifosx-activate-client"),E(5,Oye,1,0,"mifosx-withdraw-client"),E(6,Aye,1,0,"mifosx-update-client-savings-account"),E(7,Fye,1,0,"mifosx-transfer-client"),E(8,kye,1,0,"mifosx-undo-client-transfer"),E(9,Bye,1,0,"mifosx-reject-client-transfer"),E(10,Rye,1,0,"mifosx-accept-client-transfer"),E(11,Nye,1,0,"mifosx-reactivate-client"),E(12,Lye,1,0,"mifosx-undo-client-rejection"),E(13,Vye,1,0,"mifosx-add-client-charge"),E(14,qye,1,0,"mifosx-take-survey"),E(15,zye,1,0,"mifosx-client-screen-reports"),E(16,Hye,1,0,"mifosx-add-client-collateral")),n&2&&(I(i.actions["Assign Staff"]?0:-1),a(),I(i.actions.Close?1:-1),a(),I(i.actions.Survey?2:-1),a(),I(i.actions.Reject?3:-1),a(),I(i.actions.Activate?4:-1),a(),I(i.actions.Withdraw?5:-1),a(),I(i.actions["Update Default Savings"]?6:-1),a(),I(i.actions["Transfer Client"]?7:-1),a(),I(i.actions["Undo Transfer"]?8:-1),a(),I(i.actions["Reject Transfer"]?9:-1),a(),I(i.actions["Accept Transfer"]?10:-1),a(),I(i.actions.Reactivate?11:-1),a(),I(i.actions["Undo Rejection"]?12:-1),a(),I(i.actions["Add Charge"]?13:-1),a(),I(i.actions["Take Survey"]?14:-1),a(),I(i.actions["Client Screen Reports"]?15:-1),a(),I(i.actions["Create Collateral"]?16:-1))},dependencies:[ue,fe,YC,JC,KC,XC,ZC,e2,t2,i2,n2,o2,a2,r2,l2,s2,c2,p2,m2],encapsulation:2})}}return e})();var Gye=()=>["../../","general"],jye=()=>["pay"],X0=e=>({strikeoff:e});function $ye(e,o){e&1&&(l(0,"button",12),b(1,"fa-icon",13),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,jye)),a(2),v(" ",m(3,2,"labels.buttons.Pay")," "))}function Uye(e,o){if(e&1){let t=Y();l(0,"button",3),R("click",function(){V(t);let i=w();return q(i.waiveCharge())}),b(1,"i",14),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Waive Charge")," "))}function Wye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.ID")))}function Qye(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,X0,t.reversed)),a(),h(t.id)}}function Yye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function Jye(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,X0,t.reversed)),a(),v(" ",t.officeName," ")}}function Kye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Xye(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,X0,t.reversed)),a(),v(" ",t.type.value," ")}}function Zye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction Date")))}function e3e(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("ngClass",Nt(4,X0,t.reversed)),a(),v(" ",m(2,2,t.date)," ")}}function t3e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function i3e(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;g("ngClass",Nt(4,X0,t.reversed)),a(),v(" ",m(2,2,t.amount)," ")}}function n3e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function o3e(e,o){if(e&1){let t=Y();l(0,"td",26)(1,"button",27),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.undoTransaction(i.id))}),b(2,"fa-icon",4),r()()}if(e&2){let t=o.$implicit;g("ngClass",Nt(1,X0,t.reversed))}}function a3e(e,o){e&1&&b(0,"tr",28)}function r3e(e,o){e&1&&b(0,"tr",29)}function l3e(e,o){if(e&1&&(l(0,"table",9),X(1,15),F(2,Wye,3,3,"th",16)(3,Qye,2,4,"td",17),Z(),X(4,18),F(5,Yye,3,3,"th",16)(6,Jye,2,4,"td",17),Z(),X(7,19),F(8,Kye,3,3,"th",16)(9,Xye,2,4,"td",17),Z(),X(10,20),F(11,Zye,3,3,"th",16)(12,e3e,3,6,"td",17),Z(),X(13,21),F(14,t3e,3,3,"th",16)(15,i3e,3,6,"td",17),Z(),X(16,22),F(17,n3e,3,3,"th",16)(18,o3e,3,3,"td",17),Z(),F(19,a3e,1,0,"tr",23)(20,r3e,1,0,"tr",24),r()),e&2){let t=w();g("dataSource",t.chargeData.clientTransactionDatas),a(19),g("matHeaderRowDef",t.viewChargeTableColumns),a(),g("matRowDefColumns",t.viewChargeTableColumns)}}var u2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientService=T(Oi),this.viewChargeTableColumns=["id","officeName","type","transactionDate","amount","actions"],this.route.data.subscribe(t=>{this.chargeData=t.clientChargeData})}waiveCharge(){let t={clientId:this.chargeData.clientId,resourceType:this.chargeData.id};this.clientService.waiveClientCharge(t).subscribe(()=>{this.getChargeData()})}undoTransaction(t){let n={clientId:this.chargeData.clientId.toString(),transactionId:t};this.clientService.undoTransaction(n).subscribe(()=>{this.getChargeData()})}getChargeData(){this.clientService.getSelectedChargeData(this.chargeData.clientId,this.chargeData.id).subscribe(t=>{this.chargeData=t})}deleteCharge(){this.clientService.deleteCharge(this.chargeData.clientId,this.chargeData.id).subscribe(()=>{this.router.navigate(["../../clients",this.chargeData.clientId,"general"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-charge"]],decls:77,vars:52,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","trash",1,"m-r-10"],[1,"container"],[1,"fa","fa-stop",3,"ngClass"],[1,"share-account-tables","p-t-20","layout-row-wrap","flex-50"],[1,"layout-row-wrap"],["mat-table","",3,"dataSource"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","dollar-sign",1,"m-r-10"],[1,"fa","fa-flag"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","type"],["matColumnDef","transactionDate"],["matColumnDef","amount"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"ngClass"],["mat-raised-button","","color","primary",1,"del-btn",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,$ye,4,5,"button",1)(2,Uye,4,3,"button",2),l(3,"button",3),R("click",function(){return i.deleteCharge()}),b(4,"fa-icon",4),c(5),p(6,"translate"),r()(),l(7,"div",5)(8,"mat-card")(9,"mat-card-title"),b(10,"i",6),p(11,"statusLookup"),c(12),r(),b(13,"mat-divider"),l(14,"mat-card-content")(15,"div",7)(16,"table")(17,"tbody")(18,"tr")(19,"td"),c(20),p(21,"translate"),r(),l(22,"td"),c(23),r()(),l(24,"tr")(25,"td"),c(26),p(27,"translate"),r(),l(28,"td"),c(29),r()(),l(30,"tr")(31,"td"),c(32),p(33,"translate"),r(),l(34,"td"),c(35),r()(),l(36,"tr")(37,"td"),c(38),p(39,"translate"),r(),l(40,"td"),c(41),p(42,"dateFormat"),r()(),l(43,"tr")(44,"td"),c(45),p(46,"translate"),r(),l(47,"td"),c(48),r()(),l(49,"tr")(50,"td"),c(51),p(52,"translate"),r(),l(53,"td"),c(54),r()(),l(55,"tr")(56,"td"),c(57),p(58,"translate"),r(),l(59,"td"),c(60),r()(),l(61,"tr")(62,"td"),c(63),p(64,"translate"),r(),l(65,"td"),c(66),r()()()()()(),l(67,"div",8)(68,"h1")(69,"b"),c(70),p(71,"translate"),r()(),E(72,l3e,21,3,"table",9),r(),l(73,"mat-card-actions",10)(74,"button",11),c(75),p(76,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","PAY_CLIENTCHARGE"),a(),g("mifosxHasPermission","WAIVE_CLIENTCHARGE"),a(3),v(" ",m(6,25,"labels.buttons.Delete")," "),a(5),g("ngClass",m(11,27,!(i.chargeData.isWaived||i.chargeData.isPaid))),a(2),v(" ",i.chargeData.name," "),a(8),h(m(21,29,"labels.inputs.Currency")),a(3),h(i.chargeData.currency.name),a(3),h(m(27,31,"labels.inputs.Charge Time Type")),a(3),h(i.chargeData.chargeTimeType.value),a(3),h(m(33,33,"labels.inputs.Charge Calculation Type")),a(3),h(i.chargeData.chargeCalculationType.value),a(3),h(m(39,35,"labels.inputs.Due as of")),a(3),h(m(42,37,i.chargeData.dueDate)),a(4),h(m(46,39,"labels.inputs.Due")),a(3),h(i.chargeData.amount),a(3),h(m(52,41,"labels.inputs.Paid")),a(3),h(i.chargeData.amountPaid),a(3),h(m(58,43,"labels.inputs.Waived")),a(3),h(i.chargeData.amountWaived),a(3),h(m(64,45,"labels.inputs.Outstanding")),a(3),h(i.chargeData.amountOutstanding),a(4),v(" ",m(71,47,"labels.heading.Transactions")," "),a(2),I(i.chargeData.clientTransactionDatas?72:-1),a(2),g("routerLink",oe(51,Gye)),a(),v(" ",m(76,49,"labels.buttons.Back")," "))},dependencies:[ue,co,fe,Oe,Ue,Je,Et,xe,Ke,ke,Qo,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he,go,In],styles:[".del-btn[_ngcontent-%COMP%]{width:20px!important;height:25px;min-width:20px!important;line-height:0px;padding-left:10px;padding-right:25px}.strikeoff[_ngcontent-%COMP%]{color:red!important;text-decoration:line-through;text-decoration-style:double}.share-account-tables[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.content[_ngcontent-%COMP%]{padding-top:10px}"]})}}return e})();var s3e=()=>["../../..","general"];function c3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function p3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transaction date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var f2=(()=>{class e{constructor(){this.clientsService=T(Oi),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.route.data.subscribe(t=>{this.transactionData=t.transactionData})}ngOnInit(){this.setTransactionForm()}setTransactionForm(){this.transactionForm=this.formBuilder.group({amount:[this.transactionData.amount,ce.required],transactionDate:[new Date,ce.required]})}submit(){let t=this.transactionForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.transactionForm.value.transactionDate;t.transactionDate instanceof Date&&(t.transactionDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.payClientCharge(this.transactionData.clientId,this.transactionData.id,d).subscribe(()=>{this.router.navigate(["../../..","general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-pay-charges"]],decls:26,vars:21,consts:[["transactionDatePicker",""],[1,"container","mat-typography"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","amount"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"div",3)(4,"mat-form-field")(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4),E(9,c3e,7,9,"mat-error"),r(),l(10,"mat-form-field",5),R("click",function(){V(s);let u=ve(17);return q(u.open())}),l(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6)(15,"mat-datepicker-toggle",7)(16,"mat-datepicker",null,0),E(18,p3e,7,9,"mat-error"),r()(),l(19,"div",8)(20,"button",9),c(21),p(22,"translate"),r(),l(23,"button",10),c(24),p(25,"translate"),r()()()()()}if(n&2){let s=ve(17);a(2),g("formGroup",i.transactionForm),a(4),v(" ",m(7,12,"labels.inputs.Amount")," "),a(3),I(i.transactionForm.controls.amount.hasError("required")?9:-1),a(3),v(" ",m(13,14,"labels.inputs.Transaction date")," "),a(2),g("min",i.minDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.transactionForm.controls.transactionDate.hasError("required")?18:-1),a(2),g("routerLink",oe(20,s3e)),a(),v(" ",m(22,16,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.transactionForm.valid),a(),v(" ",m(25,18,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var zM=()=>["Date of Birth","Incorporation Date"],m3e=()=>["../general"],HM=()=>["Name","Entity Name"];function d3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function u3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function f3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function h3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function g3e(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32),p(5,"translate"),p(6,"translate"),E(7,h3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(10,HM)))),a(2),g("placeholder",m(5,6,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(11,HM))))("title",m(6,8,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(12,HM)))),a(3),I(t.editClientForm.controls.fullname.hasError("required")?7:-1)}}function _3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function C3e(e,o){if(e&1&&(l(0,"mat-form-field",14)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",33),p(5,"translate"),p(6,"translate"),E(7,_3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.First Name")),a(2),g("placeholder",m(5,6,"labels.inputs.First Name"))("title",m(6,8,"labels.inputs.First Name")),a(3),I(t.editClientForm.controls.firstname.hasError("required")?7:-1)}}function v3e(e,o){e&1&&(l(0,"mat-form-field",14)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",34),p(5,"translate"),p(6,"translate"),r()),e&2&&(a(2),h(m(3,3,"labels.inputs.Middle Name")),a(2),g("placeholder",m(5,5,"labels.inputs.Middle Name"))("title",m(6,7,"labels.inputs.Middle Name")))}function x3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function b3e(e,o){if(e&1&&(l(0,"mat-form-field",14)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",35),p(5,"translate"),p(6,"translate"),E(7,x3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Last Name")),a(2),g("placeholder",m(5,6,"labels.inputs.Last Name"))("title",m(6,8,"labels.inputs.Last Name")),a(3),I(t.editClientForm.controls.lastname.hasError("required")?7:-1)}}function y3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function S3e(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,y3e,2,2,"mat-option",9,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Gender")),a(3),we(t.genderOptions)}}function w3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function P3e(e,o){e&1&&(l(0,"mat-checkbox",21),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is staff"),"? "))}function T3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function M3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function D3e(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"mat-form-field",13)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",37),Se(6,T3e,2,2,"mat-option",9,Pe),r()(),l(8,"mat-form-field",13)(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",38),Se(13,M3e,2,2,"mat-option",9,Pe),r()(),l(15,"mat-form-field",16),R("click",function(){V(t);let i=ve(24);return q(i.open())}),l(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",39),p(20,"translate"),p(21,"translate"),b(22,"mat-datepicker-toggle",18)(23,"mat-datepicker",null,3),r(),l(25,"mat-form-field",13)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",40),p(30,"translate"),p(31,"translate"),r(),l(32,"mat-form-field",41)(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"textarea",42),p(37,"translate"),p(38,"translate"),r()()}if(e&2){let t=ve(24),n=w();a(3),h(m(4,15,"labels.inputs.Constitution")),a(3),we(n.constitutionOptions),a(4),h(m(11,17,"labels.inputs.Main Business Line")),a(3),we(n.businessLineOptions),a(4),h(m(18,19,"labels.inputs.Incorporation Validity Till Date")),a(2),g("placeholder",m(20,21,"labels.inputs.Incorporation Validity Till Date"))("title",m(21,23,"labels.inputs.Incorporation Validity Till Date"))("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(3),g("for",t),a(5),h(m(28,25,"labels.inputs.Incorporation No")),a(2),g("placeholder",m(30,27,"labels.inputs.Incorporation No"))("title",m(31,29,"labels.inputs.Incorporation No")),a(5),h(m(35,31,"labels.inputs.Remarks")),a(2),g("placeholder",m(37,33,"labels.inputs.Remarks"))("title",m(38,35,"labels.inputs.Remarks"))}}function E3e(e,o){e&1&&(l(0,"mat-error"),c(1," Email not valid "),r())}function I3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function O3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function A3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submitted Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var h2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.legalFormId=1,this.route.data.subscribe(t=>{this.clientDataAndTemplate=t.clientDataAndTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditClientForm(),this.setOptions(),this.buildDependencies(),this.legalFormId=1,this.editClientForm.patchValue({officeId:this.clientDataAndTemplate.officeId,staffId:this.clientDataAndTemplate.staffId,legalFormId:this.clientDataAndTemplate.legalForm&&this.clientDataAndTemplate.legalForm.id,accountNo:this.clientDataAndTemplate.accountNo,externalId:this.clientDataAndTemplate.externalId,genderId:this.clientDataAndTemplate.gender&&this.clientDataAndTemplate.gender.id,isStaff:this.clientDataAndTemplate.isStaff,active:this.clientDataAndTemplate.active,mobileNo:this.clientDataAndTemplate.mobileNo,emailAddress:this.clientDataAndTemplate.emailAddress,dateOfBirth:this.clientDataAndTemplate.dateOfBirth&&new Date(this.clientDataAndTemplate.dateOfBirth),clientTypeId:this.clientDataAndTemplate.clientType&&this.clientDataAndTemplate.clientType.id,clientClassificationId:this.clientDataAndTemplate.clientClassification&&this.clientDataAndTemplate.clientClassification.id,submittedOnDate:this.clientDataAndTemplate.timeline.submittedOnDate&&new Date(this.clientDataAndTemplate.timeline.submittedOnDate),activationDate:this.clientDataAndTemplate.timeline.activatedOnDate&&new Date(this.clientDataAndTemplate.timeline.activatedOnDate)}),this.clientDataAndTemplate.legalForm&&(this.legalFormId=this.clientDataAndTemplate.legalForm.id)}createEditClientForm(){this.editClientForm=this.formBuilder.group({officeId:[{value:"",disabled:!0}],staffId:[""],legalFormId:[{value:"",disabled:!0}],isStaff:[!1],active:[!1],accountNo:[{value:"",disabled:!0}],externalId:[""],genderId:[""],mobileNo:[""],emailAddress:["",ce.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:["",ce.required],activationDate:[""]})}setOptions(){this.officeOptions=this.clientDataAndTemplate.officeOptions,this.staffOptions=this.clientDataAndTemplate.staffOptions,this.legalFormOptions=this.clientDataAndTemplate.clientLegalFormOptions,this.clientTypeOptions=this.clientDataAndTemplate.clientTypeOptions,this.clientClassificationTypeOptions=this.clientDataAndTemplate.clientClassificationOptions,this.businessLineOptions=this.clientDataAndTemplate.clientNonPersonMainBusinessLineOptions,this.constitutionOptions=this.clientDataAndTemplate.clientNonPersonConstitutionOptions,this.genderOptions=this.clientDataAndTemplate.genderOptions}buildDependencies(){this.editClientForm.get("legalFormId").valueChanges.subscribe(t=>{t===1?(this.editClientForm.removeControl("fullname"),this.editClientForm.removeControl("clientNonPersonDetails"),this.editClientForm.addControl("firstname",new it(this.clientDataAndTemplate.firstname,ce.required)),this.editClientForm.addControl("middlename",new it(this.clientDataAndTemplate.middlename)),this.editClientForm.addControl("lastname",new it(this.clientDataAndTemplate.lastname,ce.required))):(this.editClientForm.removeControl("firstname"),this.editClientForm.removeControl("middlename"),this.editClientForm.removeControl("lastname"),this.editClientForm.addControl("fullname",new it(this.clientDataAndTemplate.fullname,ce.required)),this.editClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:[this.clientDataAndTemplate.clientNonPersonDetails.constitution&&this.clientDataAndTemplate.clientNonPersonDetails.constitution.id,ce.required],incorpValidityTillDate:[this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate&&new Date(this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate)],incorpNumber:[this.clientDataAndTemplate.clientNonPersonDetails.incorpNumber],mainBusinessLineId:[this.clientDataAndTemplate.clientNonPersonDetails.mainBusinessLine&&this.clientDataAndTemplate.clientNonPersonDetails.mainBusinessLine.id],remarks:[this.clientDataAndTemplate.clientNonPersonDetails.remarks]})))})}getDateLabel(t,n){return t===1?n[0]:n[1]}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=this.editClientForm.getRawValue(),s=qt(at({},i),{dateOfBirth:i.dateOfBirth&&this.dateUtils.formatDate(i.dateOfBirth,n),submittedOnDate:i.submittedOnDate&&this.dateUtils.formatDate(i.submittedOnDate,n),activationDate:this.dateUtils.formatDate(i.activationDate,n),dateFormat:n,locale:t});delete s.officeId,i.clientNonPersonDetails?s.clientNonPersonDetails=qt(at({},i.clientNonPersonDetails),{incorpValidityTillDate:i.clientNonPersonDetails.incorpValidityTillDate&&this.dateUtils.formatDate(i.clientNonPersonDetails.incorpValidityTillDate,n),dateFormat:n,locale:t}):s.clientNonPersonDetails={},this.clientsService.updateClient(this.clientDataAndTemplate.id,s).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-client"]],decls:122,vars:112,consts:[["dateOfBirthDatePicker",""],["submittedOnDatePicker",""],["activatedOnDatePicker",""],["incorpValidityTillDateDatePicker",""],[1,"container"],[3,"formGroup"],[1,"responsive-row"],[1,"flex-24"],["required","","formControlName","officeId"],[3,"value"],["formControlName","legalFormId"],["matInput","","formControlName","accountNo","placeholder","Account No","title","Account No",3,"placeholder","title"],["matInput","","formControlName","externalId","placeholder","External Id","title","External Id",3,"placeholder","title"],[1,"flex-48"],[1,"flex-32"],[1,"section-divider"],[1,"flex-48",3,"click"],["matInput","","formControlName","dateOfBirth","placeholder","Date of Birth","title","Date of Birth",3,"max","matDatepicker","placeholder","title"],["matSuffix","",3,"for"],[1,"responsive-row","align-center"],["formControlName","staffId"],["labelPosition","before","formControlName","isStaff",1,"flex-48","margin-v"],["formGroupName","clientNonPersonDetails",1,"flex-100","layout-row-wrap","gap-2percent","column-on-small"],["matInput","","type","text","formControlName","mobileNo","placeholder","Mobile No","title","Mobile No",3,"placeholder","title"],["matInput","","formControlName","emailAddress","placeholder","Email Address","title","Email Address",3,"placeholder","title"],["formControlName","clientTypeId"],["formControlName","clientClassificationId"],["placeholder","Submitted On","title","Submitted On","matInput","","formControlName","submittedOnDate","required","",3,"placeholder","title","min","max","matDatepicker"],["placeholder","Activated On","title","Activated On","matInput","","formControlName","activationDate",3,"placeholder","title","min","max","matDatepicker"],[1,"button-container"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","formControlName","fullname","placeholder","Full Name","title","Full Name",3,"placeholder","title"],["matInput","","required","","formControlName","firstname","placeholder","First Name","title","First Name",3,"placeholder","title"],["matInput","","formControlName","middlename","placeholder","Middle Name","title","Middle Name",3,"placeholder","title"],["matInput","","required","","formControlName","lastname","placeholder","Last Name","title","Last Name",3,"placeholder","title"],["formControlName","genderId"],["formControlName","constitutionId","required",""],["formControlName","mainBusinessLineId"],["placeholder","Incorporation Validity Till Date","title","Incorporation Validity Till Date","matInput","","formControlName","incorpValidityTillDate",3,"placeholder","title","min","max","matDatepicker"],["matInput","","formControlName","incorpNumber","placeholder","Incorporation No","title","Incorporation No",3,"placeholder","title"],[1,"flex-98"],["matInput","","formControlName","remarks","cdkTextareaAutosize","","cdkAutosizeMinRows","2","placeholder","Remarks","title","Remarks",3,"placeholder","title"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"mat-card")(2,"form",5)(3,"mat-card-content")(4,"div",6)(5,"mat-form-field",7)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",8),Se(10,d3e,2,2,"mat-option",9,Pe),r(),E(12,u3e,7,9,"mat-error"),r(),l(13,"mat-form-field",7)(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",10),Se(18,f3e,2,2,"mat-option",9,Pe),r()(),l(20,"mat-form-field",7)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",11),p(25,"translate"),p(26,"translate"),r(),l(27,"mat-form-field",7)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",12),p(32,"translate"),p(33,"translate"),r()(),l(34,"div",6),E(35,g3e,8,13,"mat-form-field",13),E(36,C3e,8,10,"mat-form-field",14),E(37,v3e,7,9,"mat-form-field",14),E(38,b3e,8,10,"mat-form-field",14),r(),b(39,"mat-divider",15),l(40,"div",6)(41,"mat-form-field",16),R("click",function(){V(s);let u=ve(50);return q(u.open())}),l(42,"mat-label"),c(43),p(44,"translate"),r(),b(45,"input",17),p(46,"translate"),p(47,"translate"),b(48,"mat-datepicker-toggle",18)(49,"mat-datepicker",null,0),r(),E(51,S3e,7,3,"mat-form-field",13),r(),l(52,"div",19)(53,"mat-form-field",13)(54,"mat-label"),c(55),p(56,"translate"),r(),l(57,"mat-select",20),Se(58,w3e,2,2,"mat-option",9,Pe),r()(),E(60,P3e,3,3,"mat-checkbox",21),r(),E(61,D3e,39,37,"div",22),l(62,"div",6)(63,"mat-form-field",13)(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",23),p(68,"translate"),p(69,"translate"),r(),l(70,"mat-form-field",13)(71,"mat-label"),c(72),p(73,"translate"),r(),b(74,"input",24),p(75,"translate"),p(76,"translate"),E(77,E3e,2,0,"mat-error"),r()(),l(78,"div",6)(79,"mat-form-field",13)(80,"mat-label"),c(81),p(82,"translate"),r(),l(83,"mat-select",25),Se(84,I3e,2,2,"mat-option",9,Pe),r()(),l(86,"mat-form-field",13)(87,"mat-label"),c(88),p(89,"translate"),r(),l(90,"mat-select",26),Se(91,O3e,2,2,"mat-option",9,Pe),r()()(),l(93,"div",6)(94,"mat-form-field",16),R("click",function(){V(s);let u=ve(103);return q(u.open())}),l(95,"mat-label"),c(96),p(97,"translate"),r(),b(98,"input",27),p(99,"translate"),p(100,"translate"),b(101,"mat-datepicker-toggle",18)(102,"mat-datepicker",null,1),E(104,A3e,7,9,"mat-error"),r(),l(105,"mat-form-field",16),R("click",function(){V(s);let u=ve(114);return q(u.open())}),l(106,"mat-label"),c(107),p(108,"translate"),r(),b(109,"input",28),p(110,"translate"),p(111,"translate"),b(112,"mat-datepicker-toggle",18)(113,"mat-datepicker",null,2),r()()(),l(115,"mat-card-actions",29)(116,"button",30),c(117),p(118,"translate"),r(),l(119,"button",31),R("click",function(){return V(s),q(i.submit())}),c(120),p(121,"translate"),r()()()()()}if(n&2){let s=ve(50),d=ve(103),u=ve(114);a(2),g("formGroup",i.editClientForm),a(5),h(m(8,52,"labels.inputs.Office")),a(3),we(i.officeOptions),a(2),I(i.editClientForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,54,"labels.inputs.Legal Form")),a(3),we(i.legalFormOptions),a(4),h(m(23,56,"labels.inputs.Account No")),a(2),g("placeholder",m(25,58,"labels.inputs.Account No"))("title",m(26,60,"labels.inputs.Account No")),a(5),h(m(30,62,"labels.inputs.External Id")),a(2),g("placeholder",m(32,64,"labels.inputs.External Id"))("title",m(33,66,"labels.inputs.External Id")),a(4),I(i.editClientForm.contains("fullname")?35:-1),a(),I(i.editClientForm.contains("firstname")?36:-1),a(),I(i.editClientForm.contains("middlename")?37:-1),a(),I(i.editClientForm.contains("lastname")?38:-1),a(5),h(m(44,68,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(108,zM)))),a(2),g("max",i.maxDate)("matDatepicker",s)("placeholder",m(46,70,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(109,zM))))("title",m(47,72,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(110,zM)))),a(3),g("for",s),a(3),I(i.legalFormId===1?51:-1),a(4),h(m(56,74,"labels.inputs.Staff")),a(3),we(i.staffOptions),a(2),I(i.legalFormId===1?60:-1),a(),I(i.editClientForm.contains("clientNonPersonDetails")?61:-1),a(4),h(m(66,76,"labels.inputs.Mobile No")),a(2),g("placeholder",m(68,78,"labels.inputs.Mobile No"))("title",m(69,80,"labels.inputs.Mobile No")),a(5),h(m(73,82,"labels.inputs.Email Address")),a(2),g("placeholder",m(75,84,"labels.inputs.Email Address"))("title",m(76,86,"labels.inputs.Email Address")),a(3),I(i.editClientForm.controls.emailAddress.errors!=null&&i.editClientForm.controls.emailAddress.errors.email?77:-1),a(4),h(m(82,88,"labels.inputs.Client Type")),a(3),we(i.clientTypeOptions),a(4),h(m(89,90,"labels.inputs.Client Classification")),a(3),we(i.clientClassificationTypeOptions),a(5),h(m(97,92,"labels.inputs.Submitted On")),a(2),g("placeholder",m(99,94,"labels.inputs.Submitted On"))("title",m(100,96,"labels.inputs.Submitted On"))("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(3),g("for",d),a(3),I(i.editClientForm.controls.submittedOnDate.hasError("required")?104:-1),a(3),h(m(108,98,"labels.inputs.Activated On")),a(2),g("placeholder",m(110,100,"labels.inputs.Activated On"))("title",m(111,102,"labels.inputs.Activated On"))("min",i.editClientForm.value.submittedOnDate)("max",i.maxDate)("matDatepicker",u),a(3),g("for",u),a(4),g("routerLink",oe(111,m3e)),a(),v(" ",m(118,104,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editClientForm.valid),a(),v(" ",m(121,106,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ri,Ln,he],styles:[".margin-v[_ngcontent-%COMP%]{margin:2em 0 0}.flex-32[_ngcontent-%COMP%]{flex:0 1 32%;max-width:32%}.gap-2percent[_ngcontent-%COMP%]{gap:2%}.align-center[_ngcontent-%COMP%]{align-items:center}.container[_ngcontent-%COMP%]{margin:24px auto;max-width:1200px;width:100%;padding:0 24px;box-sizing:border-box}[_nghost-%COMP%] .mat-card{padding:32px;margin:16px 0;border-radius:12px;box-shadow:0 4px 12px #0000001a}[_nghost-%COMP%] .mat-card-content{padding:0}.flex-24[_ngcontent-%COMP%]{flex:0 1 calc(25% - 15px);max-width:calc(25% - 15px);margin-right:0}.flex-48[_ngcontent-%COMP%]{flex:0 1 calc(50% - 10px);max-width:calc(50% - 10px);margin-right:0}.responsive-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:24px;align-items:flex-start}.responsive-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%] .mat-form-field{margin-bottom:16px;width:100%}[_nghost-%COMP%] .mat-form-field:last-child{margin-right:0}[_nghost-%COMP%] .responsive-row .mat-form-field{min-height:56px}[_nghost-%COMP%] .responsive-row .mat-form-field .mat-form-field-wrapper{padding-bottom:1.3438em}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-outline{color:#0000001f}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#3f51b5}[_nghost-%COMP%] .mat-form-field.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336;opacity:1}[_nghost-%COMP%] .mat-error{font-size:12px;margin-top:4px}.section-divider[_ngcontent-%COMP%]{margin:32px 0 24px;border-color:#0000001f}[_nghost-%COMP%] .mat-checkbox{margin:20px 0}[_nghost-%COMP%] mat-card-actions{display:flex;justify-content:center;gap:20px;padding:24px 0;margin-top:32px;border-top:1px solid rgba(0,0,0,.12);width:100%}[_nghost-%COMP%] mat-card-actions button{min-width:100px;height:36px;padding:0 20px;border-radius:4px;font-weight:500;text-transform:none;letter-spacing:.3px;font-size:13px;margin:0}@media (width <= 1024px){.flex-24[_ngcontent-%COMP%]{flex:0 1 calc(50% - 10px);max-width:calc(50% - 10px)}.flex-48[_ngcontent-%COMP%]{flex:0 1 100%;max-width:100%}}@media (width <= 768px){.flex-32[_ngcontent-%COMP%], .flex-24[_ngcontent-%COMP%], .flex-48[_ngcontent-%COMP%]{flex:0 1 100%;max-width:100%}.container[_ngcontent-%COMP%]{margin:16px;padding:0 16px}[_nghost-%COMP%] .mat-card{padding:20px}.responsive-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.responsive-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{flex:1 1 100%;max-width:100%;margin-right:0}}@media (width <= 600px){[_nghost-%COMP%] mat-card-actions{flex-direction:column;gap:12px}[_nghost-%COMP%] mat-card-actions button{width:100%;margin:0}}@media (width <= 480px){[_nghost-%COMP%] .mat-card{padding:16px;margin:8px 0}.responsive-row[_ngcontent-%COMP%]{gap:8px;margin-bottom:12px}.container[_ngcontent-%COMP%]{padding:0 12px}}[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] form{width:100%}[_nghost-%COMP%] .mat-datepicker-toggle{color:#0000008a}[_nghost-%COMP%] .mat-select-panel{max-height:256px}"]})}}return e})();var F3e=()=>["Date of Birth","Incorporation Date"],k3e=()=>["Name","Entity Name"];function B3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function R3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"inputs")," ")}}function L3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function V3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function q3e(e,o){if(e&1&&(l(0,"mat-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32),E(5,L3e,7,9,"mat-error"),E(6,V3e,8,9,"mat-error"),r()),e&2){let t=w();a(2),v(" ",m(3,3,"labels.inputs."+t.getDateLabel(t.createClientForm.value.legalFormId,oe(5,k3e)))," "),a(3),I(t.createClientForm.controls.fullname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.fullname.hasError("pattern")?6:-1)}}function z3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function H3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client first name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function G3e(e,o){if(e&1&&(l(0,"mat-form-field",33)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",36),E(5,z3e,7,9,"mat-error"),E(6,H3e,8,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.First Name")),a(3),I(t.createClientForm.controls.firstname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.firstname.hasError("pattern")?6:-1)}}function j3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client middle name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function $3e(e,o){if(e&1&&(l(0,"mat-form-field",34)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",37),E(5,j3e,8,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Middle Name")),a(3),I(t.createClientForm.controls.middlename.hasError("pattern")?5:-1)}}function U3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function W3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client last name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function Q3e(e,o){if(e&1&&(l(0,"mat-form-field",35)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",38),E(5,U3e,7,9,"mat-error"),E(6,W3e,8,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.Last Name")),a(3),I(t.createClientForm.controls.lastname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.lastname.hasError("pattern")?6:-1)}}function Y3e(e,o){if(e&1&&(l(0,"div",12),E(1,G3e,7,5,"mat-form-field",33),E(2,$3e,6,4,"mat-form-field",34),E(3,Q3e,7,5,"mat-form-field",35),r()),e&2){let t=w();a(),I(t.createClientForm.contains("firstname")?1:-1),a(),I(t.createClientForm.contains("middlename")?2:-1),a(),I(t.createClientForm.contains("lastname")?3:-1)}}function J3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function K3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function X3e(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"mat-form-field",11)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",39),Se(6,J3e,2,2,"mat-option",8,Pe),r()(),l(8,"mat-form-field",11)(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",40),Se(13,K3e,2,2,"mat-option",8,Pe),r()(),l(15,"mat-form-field",13),R("click",function(){V(t);let i=ve(22);return q(i.open())}),l(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",41)(20,"mat-datepicker-toggle",15)(21,"mat-datepicker",null,2),r(),l(23,"mat-form-field",11)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",42),r(),l(28,"mat-form-field",19)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"textarea",43),r()()}if(e&2){let t=ve(22),n=w();a(3),h(m(4,9,"labels.inputs.Constitution")),a(3),we(n.constitutionOptions),a(4),h(m(11,11,"labels.inputs.Main Business Line")),a(3),we(n.businessLineOptions),a(4),h(m(18,13,"labels.inputs.Incorporation Validity Till Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(5),h(m(26,15,"labels.inputs.Incorporation Number")),a(5),h(m(31,17,"labels.inputs.Remarks"))}}function Z3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eSe(e,o){if(e&1&&(l(0,"mat-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",44),Se(5,Z3e,2,2,"mat-option",8,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Gender")),a(3),we(t.genderOptions)}}function tSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function iSe(e,o){e&1&&(l(0,"mat-checkbox",18),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is staff"),"? "))}function nSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"error.Email not valid")," "))}function oSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function aSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function rSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lSe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",45)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,3),E(8,rSe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.createClientForm.value.submittedOnDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.createClientForm.controls.activationDate.hasError("required")?8:-1)}}function sSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function cSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Savings Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pSe(e,o){if(e&1&&(l(0,"mat-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",46),Se(5,sSe,2,2,"mat-option",8,Pe),r(),E(7,cSe,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Savings Product")),a(3),we(t.savingProductOptions),a(2),I(t.createClientForm.controls.savingsProductId.hasError("required")?7:-1)}}var Qf=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.clientService=T(Oi),this.legalFormChangeEvent=new bi,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.setClientForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setOptions(),this.buildDependencies()}setClientForm(){this.createClientForm=this.formBuilder.group({officeId:["",ce.required],staffId:[""],legalFormId:["",ce.required],isStaff:[!1],active:[!1],addSavings:[!1],accountNo:[""],externalId:[""],genderId:[""],mobileNo:[""],emailAddress:["",ce.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:[this.settingsService.businessDate,ce.required]})}setOptions(){this.officeOptions=this.clientTemplate.officeOptions,this.staffOptions=this.clientTemplate.staffOptions,this.legalFormOptions=this.clientTemplate.clientLegalFormOptions,this.clientTypeOptions=this.clientTemplate.clientTypeOptions,this.clientClassificationTypeOptions=this.clientTemplate.clientClassificationOptions,this.businessLineOptions=this.clientTemplate.clientNonPersonMainBusinessLineOptions,this.constitutionOptions=this.clientTemplate.clientNonPersonConstitutionOptions,this.genderOptions=this.clientTemplate.genderOptions,this.savingProductOptions=this.clientTemplate.savingProductOptions}buildDependencies(){this.createClientForm.get("legalFormId").valueChanges.subscribe(t=>{this.legalFormChangeEvent.emit({legalForm:t}),t===1?(this.createClientForm.removeControl("fullname"),this.createClientForm.removeControl("clientNonPersonDetails"),this.createClientForm.addControl("firstname",new it("",[ce.required,ce.pattern("(^[A-z]).*")])),this.createClientForm.addControl("middlename",new it("",ce.pattern("(^[A-z]).*"))),this.createClientForm.addControl("lastname",new it("",[ce.required,ce.pattern("(^[A-z]).*")]))):(this.createClientForm.removeControl("firstname"),this.createClientForm.removeControl("middlename"),this.createClientForm.removeControl("lastname"),this.createClientForm.addControl("fullname",new it("",[ce.required,ce.pattern("(^[A-z]).*")])),this.createClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:["",ce.required],incorpValidityTillDate:[""],incorpNumber:[""],mainBusinessLineId:[""],remarks:[""]})))}),this.createClientForm.get("legalFormId").patchValue(1),this.createClientForm.get("active").valueChanges.subscribe(t=>{t?this.createClientForm.addControl("activationDate",new it("",ce.required)):this.createClientForm.removeControl("activationDate")}),this.createClientForm.get("addSavings").valueChanges.subscribe(t=>{t?this.createClientForm.addControl("savingsProductId",new it("",ce.required)):this.createClientForm.removeControl("savingsProductId")}),this.createClientForm.get("officeId").valueChanges.subscribe(t=>{this.clientService.getClientWithOfficeTemplate(t).subscribe(n=>{this.staffOptions=n.staffOptions})})}getDateLabel(t,n){return t===1?n[0]:n[1]}get clientGeneralDetails(){let t=this.createClientForm.value,n=this.settingsService.dateFormat,i=this.settingsService.language.code;for(let s in t)(t[s]===""||s==="addSavings")&&delete t[s];return t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(t.submittedOnDate,n)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(t.activationDate,n)),t.dateOfBirth instanceof Date&&(t.dateOfBirth=this.dateUtils.formatDate(t.dateOfBirth,n)),t.clientNonPersonDetails&&t.clientNonPersonDetails.incorpValidityTillDate&&(t.clientNonPersonDetails=qt(at({},t.clientNonPersonDetails),{incorpValidityTillDate:this.dateUtils.formatDate(t.clientNonPersonDetails.incorpValidityTillDate,n),dateFormat:n,locale:i})),t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-general-step"]],inputs:{clientTemplate:"clientTemplate"},outputs:{legalFormChangeEvent:"legalFormChangeEvent"},decls:95,vars:60,consts:[["dateOfBirthDatePicker",""],["submittedOnDatePicker",""],["incorpValidityTillDateDatePicker",""],["activatedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill","flex-23"],["required","","formControlName","officeId"],[3,"value"],["required","","formControlName","legalFormId"],["matInput","","formControlName","externalId"],[1,"flex-48"],[1,"name-fields-row"],[1,"flex-48",3,"click"],["matInput","","formControlName","dateOfBirth",3,"max","matDatepicker"],["matSuffix","",3,"for"],["formGroupName","clientNonPersonDetails",1,"flex-100","layout-row-wrap","responsive-column","gap-4percent"],["formControlName","staffId"],["labelPosition","before","formControlName","isStaff",1,"flex-48","margin-v"],[1,"flex-98"],["matInput","","type","text","formControlName","mobileNo"],["matInput","","formControlName","emailAddress"],["formControlName","clientTypeId"],["formControlName","clientClassificationId"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["labelPosition","before","formControlName","active",1,"margin-v","flex-48"],["labelPosition","before","formControlName","addSavings",1,"margin-v","flex-48"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["matInput","","required","","formControlName","fullname"],[1,"name-field","first-name"],[1,"name-field","middle-name"],[1,"name-field","last-name"],["matInput","","required","","formControlName","firstname"],["matInput","","formControlName","middlename"],["matInput","","required","","formControlName","lastname"],["formControlName","constitutionId","required",""],["formControlName","mainBusinessLineId"],["matInput","","formControlName","incorpValidityTillDate",3,"min","max","matDatepicker"],["matInput","","formControlName","incorpNumber"],["matInput","","formControlName","remarks","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["formControlName","genderId"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["required","","formControlName","savingsProductId"]],template:function(n,i){if(n&1){let s=Y();l(0,"form",4)(1,"div",5)(2,"mat-form-field",6)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",7),Se(7,B3e,2,2,"mat-option",8,Pe),r(),E(9,R3e,7,9,"mat-error"),r(),l(10,"mat-form-field",6)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",9),Se(15,N3e,3,5,"mat-option",8,Pe),r()(),l(17,"mat-form-field",6)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",10),r(),E(22,q3e,7,6,"mat-form-field",11),E(23,Y3e,4,3,"div",12),b(24,"mat-divider"),l(25,"mat-form-field",13),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",14)(30,"mat-datepicker-toggle",15)(31,"mat-datepicker",null,0),r(),E(33,X3e,33,19,"div",16),E(34,eSe,7,3,"mat-form-field",11),l(35,"mat-form-field",11)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",17),Se(40,tSe,2,2,"mat-option",8,Pe),r()(),E(42,iSe,3,3,"mat-checkbox",18),b(43,"mat-divider",19),l(44,"mat-form-field",11)(45,"mat-label"),c(46),p(47,"translate"),r(),b(48,"input",20),r(),l(49,"mat-form-field",11)(50,"mat-label"),c(51),p(52,"translate"),r(),b(53,"input",21),E(54,nSe,3,3,"mat-error"),r(),l(55,"mat-form-field",11)(56,"mat-label"),c(57),p(58,"translate"),r(),l(59,"mat-select",22),Se(60,oSe,2,2,"mat-option",8,Pe),r()(),l(62,"mat-form-field",11)(63,"mat-label"),c(64),p(65,"translate"),r(),l(66,"mat-select",23),Se(67,aSe,2,2,"mat-option",8,Pe),r()(),l(69,"mat-form-field",13),R("click",function(){V(s);let u=ve(76);return q(u.open())}),l(70,"mat-label"),c(71),p(72,"translate"),r(),b(73,"input",24)(74,"mat-datepicker-toggle",15)(75,"mat-datepicker",null,1),r(),b(77,"br"),l(78,"mat-checkbox",25),c(79),p(80,"translate"),r(),E(81,lSe,9,8,"mat-form-field",11),l(82,"mat-checkbox",26),c(83),p(84,"translate"),r(),E(85,pSe,8,4,"mat-form-field",11),r(),l(86,"div",27)(87,"button",28),b(88,"fa-icon",29),c(89),p(90,"translate"),r(),l(91,"button",30),c(92),p(93,"translate"),b(94,"fa-icon",31),r()()()}if(n&2){let s=ve(32),d=ve(76);g("formGroup",i.createClientForm),a(4),h(m(5,31,"labels.inputs.Office")),a(3),we(i.officeOptions),a(2),I(i.createClientForm.controls.officeId.hasError("required")?9:-1),a(3),h(m(13,33,"labels.inputs.Legal Form")),a(3),we(i.legalFormOptions),a(4),h(m(20,35,"labels.inputs.External Id")),a(3),I(i.createClientForm.contains("fullname")?22:-1),a(),I(i.createClientForm.contains("firstname")||i.createClientForm.contains("middlename")||i.createClientForm.contains("lastname")?23:-1),a(4),v(" ",m(28,37,"labels.inputs."+i.getDateLabel(i.createClientForm.value.legalFormId,oe(59,F3e)))," "),a(2),g("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.createClientForm.get("clientNonPersonDetails")?33:-1),a(),I(i.createClientForm.value.legalFormId===1?34:-1),a(3),h(m(38,39,"labels.inputs.Staff")),a(3),we(i.staffOptions),a(2),I(i.createClientForm.value.legalFormId===1?42:-1),a(4),h(m(47,41,"labels.inputs.Mobile No")),a(5),h(m(52,43,"labels.inputs.Email Address")),a(3),I(i.createClientForm.controls.emailAddress.errors!=null&&i.createClientForm.controls.emailAddress.errors.email?54:-1),a(3),h(m(58,45,"labels.inputs.Client Type")),a(3),we(i.clientTypeOptions),a(4),h(m(65,47,"labels.inputs.Client Classification")),a(3),we(i.clientClassificationTypeOptions),a(4),h(m(72,49,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(5),v(" ",m(80,51,"labels.inputs.Active"),"? "),a(2),I(i.createClientForm.contains("activationDate")?81:-1),a(2),v(" ",m(84,53,"labels.inputs.Open Savings Account"),"? "),a(2),I(i.createClientForm.contains("savingsProductId")?85:-1),a(4),v(" ",m(90,55,"labels.buttons.Previous")," "),a(3),v(" ",m(93,57,"labels.buttons.Next")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ri,Ln,qi,ke,Ji,he,ki],styles:["form[_ngcontent-%COMP%]{padding:16px 0}form[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{gap:8px!important}mat-form-field[_ngcontent-%COMP%]{margin-bottom:8px}mat-divider[_ngcontent-%COMP%]{margin:16px 0}.margin-v[_ngcontent-%COMP%]{margin:2em 0 0}.margin-t[_ngcontent-%COMP%]{margin-top:2em}.name-fields-row[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap;width:100%;margin-bottom:8px}.name-fields-row[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{flex:1;min-width:200px}.name-fields-row[_ngcontent-%COMP%] .name-field.first-name[_ngcontent-%COMP%], .name-fields-row[_ngcontent-%COMP%] .name-field.last-name[_ngcontent-%COMP%]{flex:1.2}.name-fields-row[_ngcontent-%COMP%] .name-field.middle-name[_ngcontent-%COMP%]{flex:1}@media (width <= 768px){.name-fields-row[_ngcontent-%COMP%]{flex-direction:column;gap:4px}.name-fields-row[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{width:100%;min-width:unset;flex:none}}.name-fields-row[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .name-fields-row[_ngcontent-%COMP%] + mat-divider[_ngcontent-%COMP%], .name-fields-row[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:8px}.layout-row.align-center[_ngcontent-%COMP%]{padding-top:16px;margin-top:12px}.layout-row.align-center[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 6px}.flex-100[_ngcontent-%COMP%]{margin:16px 0;padding:8px 0}mat-checkbox[_ngcontent-%COMP%]{margin:8px 0}mat-checkbox.margin-v[_ngcontent-%COMP%]{margin-top:12px}@media (width <= 768px){form[_ngcontent-%COMP%]{padding:12px 0}form[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{gap:6px!important}mat-form-field[_ngcontent-%COMP%]{margin-bottom:6px}mat-divider[_ngcontent-%COMP%]{margin:12px 0}.layout-row.align-center[_ngcontent-%COMP%]{padding-top:12px;margin-top:8px;flex-direction:column;gap:8px}.layout-row.align-center[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;margin:2px 0}}@media (width <= 480px){form[_ngcontent-%COMP%]{padding:8px 0}form[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{gap:4px!important}}"]})}}return e})();var mSe=e=>({member:e});function dSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function hSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function _Se(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function vSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}var Yf=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.data=T(Po),this.settingsService=T(Ot),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFamilyMemberForm(),this.data.context==="Edit"&&this.familyMemberForm.patchValue({firstName:this.data.member.firstName,middleName:this.data.member.middleName,lastName:this.data.member.lastName,qualification:this.data.member.qualification,age:this.data.member.age,isDependent:this.data.member.isDependent,relationshipId:this.data.member.relationshipId,genderId:this.data.member.genderId,professionId:this.data.member.professionId,maritalStatusId:this.data.member.maritalStatusId,dateOfBirth:this.data.member.dateOfBirth&&new Date(this.data.member.dateOfBirth)}),this.familyMemberForm.get("dateOfBirth").valueChanges.subscribe(n=>{if(n){let i=this.calculateAge(n);this.familyMemberForm.get("age").setValue(i)}else this.familyMemberForm.get("age").setValue("")});let t=this.familyMemberForm.get("dateOfBirth").value;if(t){let n=this.calculateAge(t);this.familyMemberForm.get("age").setValue(n)}}calculateAge(t){let n=new Date(this.settingsService.businessDate),i=new Date(t),s=n.getFullYear()-i.getFullYear(),d=n.getMonth()-i.getMonth();return(d<0||d===0&&n.getDate(){class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.clientFamilyMembers=[]}addFamilyMember(){this.dialog.open(Yf,{data:{context:this.translateService.instant("labels.buttons.Add"),options:this.clientTemplate.familyMemberOptions},width:"50rem"}).afterClosed().subscribe(n=>{n.member&&this.clientFamilyMembers.push(n.member)})}editFamilyMember(t,n){this.dialog.open(Yf,{data:{context:"Edit",member:t,options:this.clientTemplate.familyMemberOptions},width:"50rem"}).afterClosed().subscribe(s=>{s.member&&this.clientFamilyMembers.splice(n,1,s.member)})}deleteFamilyMember(t,n){this.dialog.open(vi,{data:{deleteContext:`Family member name : ${t} ${n}`}}).afterClosed().subscribe(s=>{s.delete&&this.clientFamilyMembers.splice(n,1)})}get familyMembers(){return{familyMembers:this.clientFamilyMembers}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-family-members-step"]],inputs:{clientTemplate:"clientTemplate"},decls:21,vars:12,consts:[[1,"mat-typography"],[1,"layout-row","align-end","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"family-member"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"family-member-actions","layout-row","align-end"],["mat-button","","color","primary"],["icon","edit",3,"click"],["mat-button","","color","warn",3,"click"],["icon","trash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"button",2),R("click",function(){return i.addFamilyMember()}),b(6,"fa-icon",3),c(7),p(8,"translate"),r()(),l(9,"mat-accordion"),Se(10,xSe,51,69,"mat-expansion-panel",4,Pe),r(),l(12,"div",5)(13,"button",6),b(14,"fa-icon",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),b(20,"fa-icon",9),r()()()),n&2&&(a(2),h(m(3,4,"labels.heading.Family Members")),a(5),v("",m(8,6,"labels.buttons.Add")," "),a(3),we(i.clientFamilyMembers),a(5),v(" ",m(16,8,"labels.buttons.Previous")," "),a(3),v(" ",m(19,10,"labels.buttons.Next")," "))},dependencies:[ue,fe,xe,ke,Dr,Pr,Tr,Mr,oc,Ri,qi,Ji,Pi,he,Qn],styles:[".family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%]{margin-top:1%}.family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.family-member[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.family-member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.margin-t[_ngcontent-%COMP%]{margin-top:2em}"]})}}return e})();function bSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Street")," : ",t.street)}}function ySe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function SSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function wSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function PSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function TSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.City")," : ",t.city)}}function MSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function DSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function ESe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function ISe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function OSe(e,o){if(e&1){let t=Y();l(0,"mat-expansion-panel",9)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider"),l(7,"div",10)(8,"button",11),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.editAddress(s,d))}),b(9,"fa-icon",12),r(),l(10,"button",13),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.deleteAddress(s,d))}),b(11,"fa-icon",14),r(),l(12,"mat-slide-toggle",15),R("change",function(){let i=V(t).$implicit,s=w(2);return q(s.toggleAddress(i))}),r()(),l(13,"p"),E(14,bSe,4,4,"span"),E(15,ySe,4,4,"span"),E(16,SSe,4,4,"span"),E(17,wSe,4,4,"span"),E(18,PSe,4,4,"span"),E(19,TSe,4,4,"span"),E(20,MSe,4,4,"span"),E(21,DSe,4,4,"span"),E(22,ESe,4,4,"span"),E(23,ISe,4,4,"span"),r()()}if(e&2){let t,n=o.$implicit,i=w(2);a(3),v(" ",(t=i.getSelectedValue("addressTypeIdOptions",n.addressTypeId))==null?null:t.name," "),a(2),v(" ",n.relationship," "),a(7),g("checked",n.isActive),a(2),I(i.isFieldEnabled("street")?14:-1),a(),I(i.isFieldEnabled("addressLine1")?15:-1),a(),I(i.isFieldEnabled("addressLine2")?16:-1),a(),I(i.isFieldEnabled("addressLine3")?17:-1),a(),I(i.isFieldEnabled("townVillage")?18:-1),a(),I(i.isFieldEnabled("city")?19:-1),a(),I(i.isFieldEnabled("stateProvinceId")?20:-1),a(),I(i.isFieldEnabled("countryId")?21:-1),a(),I(i.isFieldEnabled("postalCode")?22:-1),a(),I(i.isFieldEnabled("isActive")?23:-1)}}function ASe(e,o){if(e&1&&(l(0,"mat-accordion"),Se(1,OSe,24,13,"mat-expansion-panel",9,Pe),r()),e&2){let t=w();a(),we(t.clientAddressData)}}var _2=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.clientAddressData=[],this.clientAddressData=[]}addAddress(){let t={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields()};this.dialog.open(an,{data:t,width:"50rem"}).afterClosed().subscribe(i=>{if(i.data){let s=i.data.value;s.isActive=!1;for(let d in s)(s[d]===""||s[d]===void 0)&&delete s[d];this.clientAddressData.push(s)}})}editAddress(t,n){let i={title:this.translateService.instant("labels.buttons.Edit")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields(t),layout:{addButtonText:"Edit"}};this.dialog.open(an,{data:i,width:"50rem"}).afterClosed().subscribe(d=>{if(d.data){let u=d.data.value;u.isActive=t.isActive;for(let f in u)(u[f]===""||u[f]===void 0)&&delete u[f];this.clientAddressData[n]=u}})}deleteAddress(t,n){this.dialog.open(vi,{data:{deleteContext:`${this.translateService.instant("labels.heading.Address")} ${this.translateService.instant("labels.inputs.Type")} : ${t.addressType} ${n}`}}).afterClosed().subscribe(s=>{s.delete&&this.clientAddressData.splice(n,1)})}toggleAddress(t){t.isActive=!t.isActive}isFieldEnabled(t){return this.clientAddressFieldConfig.find(n=>n.field===t)?.isEnabled}getSelectedValue(t,n){return this.clientTemplate.address[0][t].find(i=>i.id===n)}getAddressFormFields(t){let n=[];for(let i=0;ii!==null),n}get address(){return{address:this.clientAddressData?this.clientAddressData:[]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-address-step"]],inputs:{clientAddressFieldConfig:"clientAddressFieldConfig",clientTemplate:"clientTemplate"},decls:19,vars:13,consts:[[1,"mat-typography"],[1,"layout-row","align-end","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"address"],[1,"address-actions","layout-row","align-end","align-items-center"],["mat-button","","color","primary",3,"click"],["icon","edit"],["mat-button","","color","warn",3,"click"],["icon","trash"],[3,"change","checked"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"button",2),R("click",function(){return i.addAddress()}),b(6,"fa-icon",3),c(7),p(8,"translate"),r()(),E(9,ASe,3,0,"mat-accordion"),l(10,"div",4)(11,"button",5),b(12,"fa-icon",6),c(13),p(14,"translate"),r(),l(15,"button",7),c(16),p(17,"translate"),b(18,"fa-icon",8),r()()()),n&2&&(a(2),h(m(3,5,"labels.heading.Address")),a(5),v("",m(8,7,"labels.buttons.Add")," "),a(2),I(i.clientAddressData.length>0?9:-1),a(4),v(" ",m(14,9,"labels.buttons.Previous")," "),a(3),v(" ",m(17,11,"labels.buttons.Next")," "))},dependencies:[ue,fe,xe,ke,Dr,Pr,Tr,Mr,oc,Ri,Ip,qi,Ji,he],styles:[".address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%]{margin-top:1%}.address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.address[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.address[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.margin-t[_ngcontent-%COMP%]{margin-top:2em}"]})}}return e})();function FSe(e,o){if(e&1&&(l(0,"mat-option",14),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function kSe(e,o){if(e&1&&(l(0,"mat-select",11),Se(1,FSe,2,2,"mat-option",14,Pe),r()),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName)),a(),we(t.columnValues)}}function BSe(e,o){if(e&1&&b(0,"input",12),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function RSe(e,o){if(e&1&&b(0,"input",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function NSe(e,o){if(e&1&&b(0,"textarea",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function LSe(e,o){if(e&1){let t=Y();l(0,"span",15),R("click",function(){V(t);let i=ve(4);return q(i.open())}),b(1,"input",16)(2,"mat-datepicker-toggle",17)(3,"mat-datepicker",null,0),r()}if(e&2){let t=ve(4),n=w(2).$implicit;a(),g("formControlName",Le(n.controlName))("matDatepicker",t),a(),g("for",t)}}function VSe(e,o){if(e&1&&(l(0,"mat-form-field",9)(1,"mat-label"),c(2),r(),E(3,kSe,3,2,"mat-select",11),E(4,BSe,1,2,"input",12),E(5,RSe,1,2,"input",13),E(6,NSe,1,2,"textarea",13),E(7,LSe,5,4,"span"),r()),e&2){let t=w().$implicit,n=w();a(2),h(n.getInputName(t)),a(),I(n.isDropdown(t.columnDisplayType)?3:-1),a(),I(n.isNumeric(t.columnDisplayType)?4:-1),a(),I(n.isString(t.columnDisplayType)?5:-1),a(),I(n.isText(t.columnDisplayType)?6:-1),a(),I(n.isDate(t.columnDisplayType)?7:-1)}}function qSe(e,o){if(e&1&&(l(0,"mat-checkbox",10),c(1),r()),e&2){let t=w().$implicit,n=w();g("formControlName",Le(t.controlName)),a(),v(" ",n.getInputName(t)," ")}}function zSe(e,o){if(e&1&&(l(0,"div",3),E(1,VSe,8,6,"mat-form-field",9),E(2,qSe,2,3,"mat-checkbox",10),r()),e&2){let t=o.$implicit,n=w();a(),I(n.isBoolean(t.columnDisplayType)?-1:1),a(),I(n.isBoolean(t.columnDisplayType)?2:-1)}}var C2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.settingsService=T(Ot),this.datatableService=T(Ak),this.datatableInputs=[]}ngOnInit(){this.datatableInputs=this.datatableService.filterSystemColumns(this.datatableData.columnHeaderData);let t={};this.datatableInputs.forEach(n=>{n.controlName=this.getInputName(n),n.isColumnNullable?t[n.controlName]=new it(""):this.isNumeric(n.columnDisplayType)?t[n.controlName]=new it(0,[ce.required]):t[n.controlName]=new it("",[ce.required])}),this.datatableForm=this.formBuilder.group(t)}getInputName(t){return this.datatableService.getInputName(t)}isNumeric(t){return this.datatableService.isNumeric(t)}isDate(t){return this.datatableService.isDate(t)}isBoolean(t){return this.datatableService.isBoolean(t)}isDropdown(t){return this.datatableService.isDropdown(t)}isString(t){return this.datatableService.isString(t)}isText(t){return this.datatableService.isText(t)}get payload(){let t=this.settingsService.dateFormat,n=this.datatableForm.value,i=this.datatableService.buildPayload(this.datatableInputs,n,t,{locale:this.settingsService.language.code});return{registeredTableName:this.datatableData.registeredTableName,data:i}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-datatable-step"]],inputs:{datatableData:"datatableData"},decls:13,vars:7,consts:[["datePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-100"],["labelPosition","before",1,"margin-v",3,"formControlName"],[3,"formControlName"],["matInput","","type","number",3,"formControlName"],["matInput","",3,"formControlName"],[3,"value"],[3,"click"],["matInput","",1,"date-picker",3,"matDatepicker","formControlName"],["matSuffix","",3,"for"]],template:function(n,i){n&1&&(l(0,"form",1)(1,"div",2),Se(2,zSe,3,2,"div",3,Pe),r(),l(4,"div",4)(5,"button",5),b(6,"fa-icon",6),c(7),p(8,"translate"),r(),l(9,"button",7),c(10),p(11,"translate"),b(12,"fa-icon",8),r()()()),n&2&&(g("formGroup",i.datatableForm),a(2),we(i.datatableInputs),a(5),v(" ",m(8,3,"labels.buttons.Previous")," "),a(3),v(" ",m(11,5,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,Ze,et,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,fi,qi,ke,Ji,he],styles:[".date-picker[_ngcontent-%COMP%]{width:92%}mat-checkbox[_ngcontent-%COMP%]{margin-top:30px}"]})}}return e})();var HSe=()=>["../"];function GSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),h(t.client.fullname)}}function jSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),le("",t.client.firstname," ",t.client.middlename?t.client.middlename+" "+t.client.lastname:t.client.lastname)}}function $Se(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Staff")),a(3),h($t(6,4,t.client.staffId,t.clientTemplate.staffOptions,"id","displayName"))}}function USe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),r(),l(3,"span",4),c(4),p(5,"dateFormat"),r()()),e&2){let t=w();a(2),h(t.client.legalFormId===1?"Date of Birth":"Incorporation Date"),a(2),h(m(5,2,t.client.dateOfBirth))}}function WSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),b(5,"mifosx-external-identifier",12),r()()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.External Id")),a(3),g("externalId",Le(t.client.externalId))}}function QSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Mobile No")),a(3),h(t.client.mobileNo)}}function YSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Email Address")),a(3),h(t.client.emailAddress)}}function JSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Client Type")),a(3),h($t(6,4,t.client.clientTypeId,t.clientTemplate.clientTypeOptions,"id","name"))}}function KSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Client Classification")),a(3),h($t(6,4,t.client.clientClassificationId,t.clientTemplate.clientClassificationOptions,"id","name"))}}function XSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Savings Product")),a(3),h($t(6,4,t.client.savingsProductId,t.clientTemplate.savingProductOptions,"id","name"))}}function ZSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"dateFormat"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Submitted On Date")),a(3),h(m(6,4,t.client.submittedOnDate))}}function ewe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"dateFormat"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Activation Date")),a(3),h(m(6,4,t.client.activationDate))}}function twe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Gender")),a(3),h($t(6,4,t.client.genderId,t.clientTemplate.genderOptions,"id","name"))}}function iwe(e,o){if(e&1&&(E(0,twe,7,9,"div",2),l(1,"div",2)(2,"span",3),c(3),p(4,"translate"),r(),l(5,"span",4),c(6),p(7,"yesNo"),r()()),e&2){let t=w();I(t.client.genderId?0:-1),a(3),v("",m(4,3,"labels.inputs.Is staff"),"?"),a(3),h(m(7,5,t.client.isStaff))}}function nwe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Incorporation Validity Till Date")),a(3),h(m(6,4,t.client.clientNonPersonDetails.incorpValidityTillDate))}}function owe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Main Business Line")),a(3),h($t(6,4,t.client.clientNonPersonDetails.mainBusinessLineId,t.clientTemplate.clientNonPersonMainBusinessLineOptions,"id","name"))}}function awe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Constitution")),a(3),h($t(6,4,t.client.clientNonPersonDetails.constitutionId,t.clientTemplate.clientNonPersonConstitutionOptions,"id","name"))}}function rwe(e,o){if(e&1&&(E(0,nwe,7,6,"div",2),l(1,"div",2)(2,"span",3),c(3),p(4,"translate"),r(),l(5,"span",4),c(6),r()(),E(7,owe,7,9,"div",2),E(8,awe,7,9,"div",2),l(9,"div",2)(10,"span",3),c(11),p(12,"translate"),r(),l(13,"span",4),c(14),r()()),e&2){let t=w();I(t.client.clientNonPersonDetails.incorpValidityTillDate?0:-1),a(3),h(m(4,7,"labels.inputs.Incorportation Number")),a(3),h(t.client.clientNonPersonDetails.incorpNumber||"Not Provided"),a(),I(t.client.clientNonPersonDetails.mainBusinessLineId?7:-1),a(),I(t.client.clientNonPersonDetails.constitutionId?8:-1),a(3),h(m(12,9,"labels.inputs.Remarks")),a(3),h(t.client.clientNonPersonDetails.remarks||"N/A")}}function lwe(e,o){if(e&1&&(l(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider"),l(7,"p"),c(8),p(9,"translate"),b(10,"br"),c(11),p(12,"translate"),b(13,"br"),c(14),p(15,"translate"),b(16,"br"),c(17),p(18,"translate"),b(19,"br"),c(20),p(21,"translate"),p(22,"find"),b(23,"br"),c(24),p(25,"translate"),b(26,"br"),c(27),p(28,"translate"),b(29,"br"),c(30),p(31,"translate"),p(32,"find"),b(33,"br"),c(34),p(35,"translate"),p(36,"find"),b(37,"br"),c(38),p(39,"translate"),p(40,"find"),b(41,"br"),c(42),p(43,"translate"),p(44,"dateFormat"),b(45,"br"),r()()),e&2){let t=o.$implicit,n=w(2);a(3),le(" ",t.firstName," ",t.middleName?t.middleName+" "+t.lastName:t.lastName," "),a(2),v(" ",t.relationship," "),a(3),le(" ",m(9,25,"labels.inputs.First Name")," : ",t.firstName),a(3),le(" ",m(12,27,"labels.inputs.Middle Name")," : ",t.middleName),a(3),le(" ",m(15,29,"labels.inputs.Last Name")," : ",t.lastName),a(3),le(" ",m(18,31,"labels.inputs.Qualification")," : ",t.qualification),a(3),le(" ",m(21,33,"labels.inputs.Relationship")," : ",$t(22,35,t.relationshipId,n.clientTemplate.familyMemberOptions.relationshipIdOptions,"id","name")),a(4),le(" ",m(25,40,"labels.inputs.Age")," : ",t.age),a(3),le(" ",m(28,42,"labels.inputs.Is Dependent")," : ",t.isDependent?"Yes":"No"),a(3),le(" ",m(31,44,"labels.inputs.Marital Status")," : ",$t(32,46,t.maritalStatusId,n.clientTemplate.familyMemberOptions.maritalStatusIdOptions,"id","name")),a(4),le(" ",m(35,51,"labels.inputs.Gender")," : ",$t(36,53,t.genderId,n.clientTemplate.familyMemberOptions.genderIdOptions,"id","name")),a(4),le(" ",m(39,58,"labels.inputs.Profession")," : ",$t(40,60,t.professionId,n.clientTemplate.familyMemberOptions.professionIdOptions,"id","name")),a(4),le(" ",m(43,65,"labels.inputs.Date Of Birth")," : ",m(44,67,t.dateOfBirth))}}function swe(e,o){if(e&1&&(l(0,"div",5)(1,"h3",13),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"mat-accordion",14),Se(6,lwe,46,69,"mat-expansion-panel",15,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Family Members")),a(4),we(t.client.familyMembers)}}function cwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Street")," : ",t.street)}}function pwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function mwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function dwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function uwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function fwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.City")," : ",t.city)}}function hwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function gwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function _we(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function Cwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function vwe(e,o){if(e&1&&(l(0,"mat-expansion-panel",16)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider"),l(7,"p"),E(8,cwe,4,4,"span"),E(9,pwe,4,4,"span"),E(10,mwe,4,4,"span"),E(11,dwe,4,4,"span"),E(12,uwe,4,4,"span"),E(13,fwe,4,4,"span"),E(14,hwe,4,4,"span"),E(15,gwe,4,4,"span"),E(16,_we,4,4,"span"),E(17,Cwe,4,4,"span"),r()()),e&2){let t,n=o.$implicit,i=w(2);a(3),v(" ",(t=i.getSelectedValue("addressTypeIdOptions",n.addressTypeId))==null?null:t.name," "),a(2),v(" ",n.relationship," "),a(3),I(i.isFieldEnabled("street")?8:-1),a(),I(i.isFieldEnabled("addressLine1")?9:-1),a(),I(i.isFieldEnabled("addressLine2")?10:-1),a(),I(i.isFieldEnabled("addressLine3")?11:-1),a(),I(i.isFieldEnabled("townVillage")?12:-1),a(),I(i.isFieldEnabled("city")?13:-1),a(),I(i.isFieldEnabled("stateProvinceId")?14:-1),a(),I(i.isFieldEnabled("countryId")?15:-1),a(),I(i.isFieldEnabled("postalCode")?16:-1),a(),I(i.isFieldEnabled("isActive")?17:-1)}}function xwe(e,o){if(e&1&&(l(0,"div",6)(1,"h3",13),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"mat-accordion",14),Se(6,vwe,18,12,"mat-expansion-panel",16,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Address")),a(4),we(t.client.address)}}var v2=(()=>{class e{constructor(){this.submitEvent=new bi}getSelectedValue(t,n){return this.clientTemplate.address[0][t].find(i=>i.id===n)}isFieldEnabled(t){return this.clientAddressFieldConfig.find(n=>n.field===t)?.isEnabled}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-preview-step"]],inputs:{clientAddressFieldConfig:"clientAddressFieldConfig",clientTemplate:"clientTemplate",client:"client"},outputs:{submitEvent:"submitEvent"},decls:57,vars:58,consts:[[1,"container","p-b-20"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill","m-b-20"],[1,"flex-fill","layout-row-wrap","responsive-column"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],[1,"mat-h3","flex-fill"],[1,"flex-fill","m-t-5"],[1,"family-member"],[1,"address"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),b(4,"mat-divider",1),l(5,"div",2)(6,"span",3),c(7),p(8,"translate"),r(),E(9,GSe,2,1,"span",4),E(10,jSe,2,2,"span",4),r(),l(11,"div",2)(12,"span",3),c(13),p(14,"translate"),r(),l(15,"span",4),c(16),p(17,"find"),r()(),l(18,"div",2)(19,"span",3),c(20),p(21,"translate"),r(),l(22,"span",4),c(23),p(24,"find"),r()(),E(25,$Se,7,9,"div",2),E(26,USe,6,4,"div",2),E(27,WSe,6,5,"div",2),E(28,QSe,6,4,"div",2),E(29,YSe,6,4,"div",2),E(30,JSe,7,9,"div",2),E(31,KSe,7,9,"div",2),E(32,XSe,7,9,"div",2),E(33,ZSe,7,6,"div",2),l(34,"div",2)(35,"span",3),c(36),p(37,"translate"),r(),l(38,"span",4),c(39),p(40,"yesNo"),r()(),E(41,ewe,7,6,"div",2),E(42,iwe,8,7),E(43,rwe,15,11),E(44,swe,8,3,"div",5),E(45,xwe,8,3,"div",6),r(),l(46,"div",7)(47,"button",8),b(48,"fa-icon",9),c(49),p(50,"translate"),r(),l(51,"button",10),c(52),p(53,"translate"),r(),l(54,"button",11),R("click",function(){return i.submitEvent.emit()}),c(55),p(56,"translate"),r()()),n&2&&(a(2),h(m(3,29,"labels.heading.General")),a(2),g("inset",!0),a(3),h(m(8,31,"labels.inputs.name")),a(2),I(i.client.legalFormId===2?9:-1),a(),I(i.client.legalFormId===1?10:-1),a(3),h(m(14,33,"labels.inputs.Office")),a(3),h($t(17,35,i.client.officeId,i.clientTemplate.officeOptions,"id","name")),a(4),h(m(21,40,"labels.inputs.Legal Form")),a(3),h($t(24,42,i.client.legalFormId,i.clientTemplate.clientLegalFormOptions,"id","value")),a(2),I(i.client.staffId?25:-1),a(),I(i.client.dateOfBirth?26:-1),a(),I(i.client.externalId?27:-1),a(),I(i.client.mobileNo?28:-1),a(),I(i.client.emailAddress?29:-1),a(),I(i.client.clientTypeId?30:-1),a(),I(i.client.clientClassificationId?31:-1),a(),I(i.client.savingsProductId?32:-1),a(),I(i.client.submittedOnDate?33:-1),a(3),v("",m(37,47,"labels.inputs.Active"),"?"),a(3),h(m(40,49,i.client.active)),a(2),I(i.client.activationDate?41:-1),a(),I(i.client.legalFormId===1?42:-1),a(),I(i.client.legalFormId===2?43:-1),a(),I(i.client.familyMembers.length?44:-1),a(),I(i.clientTemplate.isAddressEnabled&&i.client.address&&i.client.address.length?45:-1),a(4),v(" ",m(50,51,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(57,HSe)),a(),v(" ",m(53,53,"labels.buttons.Cancel")," "),a(3),v(" ",m(56,55,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,xe,Ri,Da,Dr,Pr,Tr,Mr,oc,qi,ke,Pi,he,Qn,po],styles:["h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:2em}.family-member[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.family-member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.address[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.address[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}"]})}}return e})();var bwe=["clientFamily"],ywe=["clientAddress"],Swe=["dtclient"];function wwe(e,o){e&1&&b(0,"fa-icon",16)}function Pwe(e,o){e&1&&b(0,"fa-icon",16)}function Twe(e,o){e&1&&b(0,"fa-icon",17)}function Mwe(e,o){e&1&&b(0,"fa-icon",18)}function Dwe(e,o){e&1&&b(0,"fa-icon",19)}function Ewe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.GENERAL"))}function Iwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.FAMILY MEMBERS"))}function Owe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ADDRESS"))}function Awe(e,o){if(e&1&&(l(0,"mat-step"),F(1,Owe,2,3,"ng-template",12),b(2,"mifosx-client-address-step",20,2),r()),e&2){let t=w();a(2),g("clientTemplate",t.clientTemplate)("clientAddressFieldConfig",t.clientAddressFieldConfig)}}function Fwe(e,o){if(e&1&&c(0),e&2){let t=w().$implicit;h(t.registeredTableName)}}function kwe(e,o){if(e&1&&(l(0,"mat-step"),F(1,Fwe,1,1,"ng-template",12),b(2,"mifosx-client-datatable-step",21,3),r()),e&2){let t=o.$implicit;a(2),g("datatableData",t)}}function Bwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function Rwe(e,o){if(e&1){let t=Y();l(0,"mat-step",15),F(1,Bwe,2,3,"ng-template",12),l(2,"mifosx-client-preview-step",22),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("clientTemplate",t.clientTemplate)("clientAddressFieldConfig",t.clientAddressFieldConfig)("client",t.client)}}var x2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.settingsService=T(Ot),this.datatables=[],this.legalFormType=1,this.route.data.subscribe(t=>{this.clientTemplate=t.clientTemplate,this.clientAddressFieldConfig=t.clientAddressFieldConfig,this.setDatatables()})}get clientGeneralForm(){return this.clientGeneralStep.createClientForm}get client(){return this.clientTemplate.isAddressEnabled?at(at(at({},this.clientGeneralStep.clientGeneralDetails),this.clientFamilyMembersStep.familyMembers),this.clientAddressStep.address):at(at({},this.clientGeneralStep.clientGeneralDetails),this.clientFamilyMembersStep.familyMembers)}areFormvalids(){let t=this.clientGeneralForm.valid;return this.clientTemplate.isAddressEnabled&&(t=t&&this.clientAddressStep.address.address.length>0),this.clientTemplate.datatables&&this.clientTemplate.datatables.length>0&&this.clientDatatables&&this.clientDatatables.forEach(n=>{t=t&&n.datatableForm.valid}),t}setDatatables(){this.datatables=[];let t="person";this.legalFormType===2&&(t="entity"),this.clientTemplate.datatables&&this.clientTemplate.datatables.forEach(n=>{n.entitySubType.toLowerCase()===t&&this.datatables.push(n)})}legalFormChange(t){this.legalFormType=t.legalForm,this.setDatatables()}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.client),{dateFormat:n,locale:t});if(this.clientTemplate.datatables&&this.clientTemplate.datatables.length>0){let s=[];this.clientDatatables.forEach(d=>{s.push(d.payload)}),i.datatables=s}this.clientsService.createClient(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-client"]],viewQuery:function(n,i){if(n&1&&(Ee(Qf,7),Ee(bwe,5),Ee(ywe,5),Ee(Swe,5)),n&2){let s;Te(s=Me())&&(i.clientGeneralStep=s.first),Te(s=Me())&&(i.clientFamilyMembersStep=s.first),Te(s=Me())&&(i.clientAddressStep=s.first),Te(s=Me())&&(i.clientDatatables=s)}},decls:19,vars:6,consts:[["clientStepper",""],["clientFamily",""],["clientAddress",""],["dtclient",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"legalFormChangeEvent","clientTemplate"],[3,"clientTemplate"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"clientTemplate","clientAddressFieldConfig"],[3,"datatableData"],[3,"submitEvent","clientTemplate","clientAddressFieldConfig","client"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"mat-stepper",5,0),F(3,wwe,1,0,"ng-template",6)(4,Pwe,1,0,"ng-template",7)(5,Twe,1,0,"ng-template",8)(6,Mwe,1,0,"ng-template",9)(7,Dwe,1,0,"ng-template",10),l(8,"mat-step",11),F(9,Ewe,2,3,"ng-template",12),l(10,"mifosx-client-general-step",13),R("legalFormChangeEvent",function(u){return V(s),q(i.legalFormChange(u))}),r()(),l(11,"mat-step"),F(12,Iwe,2,3,"ng-template",12),b(13,"mifosx-client-family-members-step",14,1),r(),E(15,Awe,4,2,"mat-step"),Se(16,kwe,4,1,"mat-step",null,Pe),E(18,Rwe,3,3,"mat-step",15),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.clientGeneralForm),a(2),g("clientTemplate",i.clientTemplate),a(3),g("clientTemplate",i.clientTemplate),a(2),I(i.clientTemplate.isAddressEnabled?15:-1),a(),we(i.datatables),a(2),I(i.areFormvalids()?18:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Qf,g2,_2,C2,v2,he],encapsulation:2})}}return e})();var b2=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.paramMap.get("clientId");return this.clientsService.getClientData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var GM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientAccountData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var jM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientAddressData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var $M=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientChargesData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var J9=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientSummary(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var UM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.paramMap.get("clientId");return this.clientsService.getClientFamilyMembers(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var WM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.parent.paramMap.get("clientId"),i=t.parent.paramMap.get("familyMemberId");return this.clientsService.getClientFamilyMember(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Z0=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){return this.clientsService.getClientTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var QM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId"),i;return this.clientsService.getClientIdentifiers(n).pipe(Mn(s=>{i=s;let d=[];return s.forEach(u=>{d.push(this.clientsService.getClientIdentificationDocuments(u.id))}),d0(d).subscribe(u=>{u.forEach((f,_)=>{i[_].documents=f})}),i}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var YM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientNotes(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var JM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientDocuments(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var KM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(){return this.clientsService.getClientDatatables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var XM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.paramMap.get("clientId"),i=t.paramMap.get("datatableName");return this.clientsService.getClientDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var ZM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientIdentifierTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var y2=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(){return this.clientsService.getAddressFieldConfiguration()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var e5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(){return this.clientsService.getClientAddressTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Nwe=()=>[10,20,25];function Lwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Vwe(e,o){if(e&1&&(l(0,"td",15),b(1,"i",16),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,2,!(t.isWaived||t.isPaid))),a(2),v(" ",t.name," ")}}function qwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due as of")))}function zwe(e,o){if(e&1&&(l(0,"td",15),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dueDate))}}function Hwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due")))}function Gwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function jwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Paid")))}function $we(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountPaid)}}function Uwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Waived")))}function Wwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountWaived)}}function Qwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Outstanding")))}function Ywe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountOutstanding)}}function Jwe(e,o){e&1&&b(0,"tr",17)}function Kwe(e,o){e&1&&b(0,"tr",18)}var S2=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.displayedColumns=["name","dueAsOf","due","paid","waived","outstanding"],this.route.data.subscribe(t=>{this.chargeOverviewData=t.clientChargesData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new Wt(this.chargeOverviewData.pageItems),this.dataSource.paginator=this.paginator}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-charges-overview"]],viewQuery:function(n,i){if(n&1&&Ee(kt,7),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},decls:27,vars:8,consts:[[1,"charges-card"],[1,"tab-container","mat-typography"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","dueAsOf"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"div",1)(2,"h2"),c(3),p(4,"translate"),r(),l(5,"table",2),X(6,3),F(7,Lwe,3,3,"th",4)(8,Vwe,4,4,"td",5),Z(),X(9,6),F(10,qwe,3,3,"th",4)(11,zwe,3,3,"td",5),Z(),X(12,7),F(13,Hwe,3,3,"th",4)(14,Gwe,2,1,"td",5),Z(),X(15,8),F(16,jwe,3,3,"th",4)(17,$we,2,1,"td",5),Z(),X(18,9),F(19,Uwe,3,3,"th",4)(20,Wwe,2,1,"td",5),Z(),X(21,10),F(22,Qwe,3,3,"th",4)(23,Ywe,2,1,"td",5),Z(),F(24,Jwe,1,0,"tr",11)(25,Kwe,1,0,"tr",12),r(),b(26,"mat-paginator",13),r()()),n&2&&(a(3),h(m(4,5,"labels.heading.Charges Overview")),a(2),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,Nwe)))},dependencies:[ue,co,fe,Ue,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,kt,Pi,he,go],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.charges-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%}"]})}}return e})();var t5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.params.clientId;return this.clientsService.getAllClientCharges(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var i5=(()=>{class e{constructor(){this.clientsService=T(Oi),this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("name"),i=t.paramMap.get("clientId")||t.parent.parent.paramMap.get("clientId");switch(n){case"Survey":return this.clientsService.getSurveys(i);case"Take Survey":return this.clientsService.getAllSurveysType();case"Close":return this.clientsService.getClientCommandTemplate("close");case"Reject":return this.clientsService.getClientCommandTemplate("reject");case"Withdraw":return this.clientsService.getClientCommandTemplate("withdraw");case"Transfer Client":return this.clientsService.getOffices();case"Add Charge":return this.clientsService.getClientChargeTemplate(i);case"Create Collateral":return this.productsService.getCollaterals();case"Client Screen Reports":return this.clientsService.getClientReportTemplates();case"Assign Staff":case"Update Default Savings":return this.clientsService.getClientDataAndTemplate(i);case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":return this.clientsService.getClientTransferProposalDate(i);default:return}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var n5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.parent.paramMap.get("clientId"),i=t.paramMap.get("chargeId");return this.clientsService.getSelectedChargeData(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var o5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.parent.paramMap.get("clientId"),i=t.paramMap.get("chargeId");return this.clientsService.getClientTransactionPay(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var a5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.paramMap.get("clientId");return this.clientsService.getClientDataAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var r5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getCollateralTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Xwe=[_o.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:EC},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:x2,resolve:{clientAddressFieldConfig:y2,clientTemplate:Z0}},{path:":clientId",component:VC,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:b2,clientTemplateData:Z0,clientDatatables:KM},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:qC,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:GM,clientChargesData:$M,clientCollateralData:r5}},{path:"address",component:QC,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:y2,clientAddressTemplateData:e5,clientAddressData:jM}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:zC,resolve:{clientFamilyMembers:UM}},{path:"add",component:HC,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:Z0}},{path:":familyMemberId",children:[{path:"edit",component:GC,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:Z0,editFamilyMember:WM}}]}]},{path:"identities",component:jC,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:QM,clientIdentifierTemplate:ZM}},{path:"documents",component:UC,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:JM}},{path:"notes",component:$C,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:YM}},{path:"datatables",children:[{path:":datatableName",component:WC,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:XM}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:b2},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:h2,resolve:{clientDataAndTemplate:a5}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:d2,resolve:{clientActionData:i5}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:S2,resolve:{clientChargesData:t5}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:u2,resolve:{clientChargeData:n5}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:f2,resolve:{transactionData:o5}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-IL7ZR3BL.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-MDXEFAPM.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-UTCE26MJ.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-IVI3UD24.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-WSJHPYGD.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-LLFRCDC7.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-WS265DLT.js").then(e=>e.AccountTransfersModule)}]}]}])],K9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[b2,GM,jM,$M,J9,UM,WM,Z0,QM,YM,JM,KM,XM,ZM,y2,e5,t5,i5,n5,o5,a5,r5],imports:[gn.forChild(Xwe),gn]})}}return e})();var Zwe=e=>({editForm:e}),X9=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po)}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:[this.data.noteContent,ce.required]})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-notes-dialog"]],decls:15,vars:14,consts:[["formRef","ngForm"],["mat-dialog-title",""],[3,"formGroup"],["formControlName","note","matInput","","placeholder","Write a note ...."],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",1),c(1),p(2,"translate"),r(),l(3,"div")(4,"form",2,0)(6,"mat-form-field"),b(7,"textarea",3),r(),l(8,"mat-dialog-actions",4)(9,"button",5),c(10),p(11,"translate"),r(),l(12,"button",6),c(13),p(14,"translate"),r()()()()),n&2&&(a(),h(m(2,6,"labels.heading.Edit Note")),a(3),g("formGroup",i.noteForm),a(6),h(m(11,8,"labels.buttons.Cancel")),a(2),g("disabled",i.noteForm.pristine)("mat-dialog-close",Nt(12,Zwe,i.noteForm)),a(),v(" ",m(14,10,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Fe,ze,xe,Wn,Nn,Un,he],encapsulation:2})}}return e})();var Z9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,K9,ha,Er,EC,VC,qC,zC,HC,GC,jC,Ug,$C,X9,UC,WC,QC,S2,d2,YC,IC,JC,KC,XC,ZC,e2,c2,t2,i2,n2,o2,a2,r2,l2,s2,u2,f2,BC,OC,RC,NC,p2,h2,x2,Qf,g2,v2,_2,Yf,LC,m2,C2]})}}return e})();var w2=class{constructor(o){this.groupsService=o,this.groupsSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getGroups(o,t="",n="",i=0,s=10,d=!0){this.groupsSubject.next([]),this.groupsService.getGroups(o,t,n,i*s,s).subscribe(u=>{u.pageItems=d?u.pageItems.filter(f=>f.active):u.pageItems,this.recordsSubject.next(u.totalFilteredRecords),this.groupsSubject.next(u.pageItems)})}connect(o){return this.groupsSubject.asObservable()}disconnect(o){this.groupsSubject.complete(),this.recordsSubject.complete()}};var ePe=["showClosedGroups"],tPe=()=>["../","organization","bulk-import","Groups"],iPe=()=>[10,25,50,100],nPe=()=>["create"],oPe=e=>[e,"general"];function aPe(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,nPe)),a(2),v("",m(3,2,"labels.buttons.Create Group")," "))}function rPe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function lPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function sPe(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account")," #"))}function cPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function pPe(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function mPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function dPe(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function uPe(e,o){if(e&1&&(l(0,"td",25)(1,"div",27),p(2,"statusLookup"),b(3,"fa-icon",28),r()()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,1,t.status.code))}}function fPe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function hPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function gPe(e,o){e&1&&b(0,"tr",29)}function _Pe(e,o){if(e&1&&b(0,"tr",30),e&2){let t=o.$implicit;g("routerLink",Nt(1,oPe,t.id))}}var P2=(()=>{class e{constructor(){this.groupsService=T(On),this.name=new it,this.displayedColumns=["name","accountNo","externalId","status","officeName"],this.filterGroupsBy=[{type:"name",value:""}]}ngOnInit(){this.getGroups()}ngAfterViewInit(){this.name.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"name")})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadGroupsPage())).subscribe()}changeShowClosedGroups(){this.loadGroupsPage()}loadGroupsPage(){this.sort.direction||delete this.sort.active,this.dataSource.getGroups(this.filterGroupsBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize,!this.showClosedGroups.checked)}applyFilter(t,n){this.paginator.pageIndex=0;let i=this.filterGroupsBy.findIndex(s=>s.type===n);this.filterGroupsBy[i].value=t,this.loadGroupsPage()}getGroups(){this.dataSource=new w2(this.groupsService),this.dataSource.getGroups(this.filterGroupsBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-app-groups"]],viewQuery:function(n,i){if(n&1&&(Ee(ePe,7),Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.showClosedGroups=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:19,consts:[["showClosedGroups",""],[1,"container"],[1,"layout-column","layout-gt-sm-row","align-gt-sm-start-center"],[1,"search-box","m-r-30"],[1,"search-box"],["matInput","","placeholder","Search by Name",3,"formControl"],["labelPosition","after",1,"m-r-10",3,"change"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","download",1,"m-r-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-table","","matSort","",1,"bordered-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accountNo"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","externalId"],["matColumnDef","status"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["icon","plus",1,"m-r-20"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"ngClass"],["icon","stop"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4),b(4,"input",5),r(),l(5,"mat-checkbox",6,0),R("change",function(){return V(s),q(i.changeShowClosedGroups())}),c(7),p(8,"translate"),r()(),l(9,"div",7)(10,"button",8),b(11,"fa-icon",9),c(12),p(13,"translate"),r(),F(14,aPe,4,5,"button",10),r()(),l(15,"table",11),X(16,12),F(17,rPe,3,3,"th",13)(18,lPe,2,1,"td",14),Z(),X(19,15),F(20,sPe,3,3,"th",16)(21,cPe,2,1,"td",14),Z(),X(22,17),F(23,pPe,3,3,"th",16)(24,mPe,2,1,"td",14),Z(),X(25,18),F(26,dPe,3,3,"th",16)(27,uPe,4,3,"td",14),Z(),X(28,19),F(29,fPe,3,3,"th",13)(30,hPe,2,1,"td",14),Z(),F(31,gPe,1,0,"tr",20)(32,_Pe,1,3,"tr",21),r(),b(33,"mat-paginator",22),p(34,"async"),r()}n&2&&(a(4),g("formControl",i.name),a(3),h(m(8,11,"labels.inputs.Show Closed Groups")),a(3),g("routerLink",oe(17,tPe)),a(2),v("",m(13,13,"labels.buttons.Import Group")," "),a(2),g("mifosxHasPermission","CREATE_GROUP"),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("length",m(34,15,i.dataSource==null?null:i.dataSource.records$))("pageSize",10)("pageSizeOptions",oe(18,iPe)))},dependencies:[ue,co,fe,st,$e,_n,Oe,Ue,Fe,ze,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he,go],styles:[".container[_ngcontent-%COMP%]{padding:24px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px;flex-wrap:nowrap;gap:20px}.container[_ngcontent-%COMP%] .layout-column.align-gt-sm-start-center[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row.align-gt-sm-start-center[_ngcontent-%COMP%]{align-items:center;justify-content:flex-start}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;flex:1;min-width:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:200px;flex:1}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%]{width:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0;margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:25px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%]{width:100%;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;margin-top:16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;border-bottom:1px solid #e0e0e0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #f0f0f0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.container[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;margin-top:0}.container[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:0}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:16px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;margin-right:0!important;margin-bottom:15px;flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:150px;margin-bottom:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:0;width:100%;justify-content:center}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:15px}}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.m-r-10[_ngcontent-%COMP%]{margin-right:10px!important}.m-r-20[_ngcontent-%COMP%]{margin-right:20px!important}.m-r-30[_ngcontent-%COMP%]{margin-right:30px!important}"]})}}return e})();var CPe=()=>({confirm:!0}),T2=(()=>{class e{constructor(){this.dialogRef=T(eo)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-unassign-staff-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"p"),c(5),p(6,"translate"),r()(),l(7,"mat-dialog-actions",2)(8,"button",3),c(9),p(10,"translate"),r(),l(11,"button",4),c(12),p(13,"translate"),r()()),n&2&&(a(),h(m(2,5,"labels.heading.Unassign Role")),a(4),v("",m(6,7,"labels.text.Unassign staff for this group")," ?"),a(4),h(m(10,9,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",oe(13,CPe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var vPe=()=>["./general"],xPe=()=>["./committee"],bPe=()=>["savings-accounts","create"],yPe=()=>["loans-accounts","create"],SPe=()=>["loans-accounts","glim-account","create"],wPe=()=>["savings-accounts","gsim-account","create"],PPe=()=>["./notes"],TPe=e=>["./datatables",e];function MPe(e,o){if(e&1&&(l(0,"span")(1,"b"),c(2),p(3,"translate"),r(),c(4),p(5,"dateFormat"),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Closure Date")," :"),a(2),v(" ",m(5,4,t.groupViewData.timeline.closedOnDate)," ")}}function DPe(e,o){if(e&1){let t=Y();l(0,"i",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Edit Meeting"))}),r()}}function EPe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,DPe,1,0,"i",29),b(6,"br"),c(7),p(8,"translate"),p(9,"lowercase"),r()()),e&2){let t=w();a(2),le(" ",m(3,5,"labels.inputs.Next Meeting on"),": ",m(4,7,t.groupViewData.collectionMeetingCalendar==null?null:t.groupViewData.collectionMeetingCalendar.nextTenRecurringDates[0])," "),a(3),I(t.editMeeting?5:-1),a(2),le(" ",m(8,9,"labels.inputs.Meeting Frequency"),": ",m(9,11,t.groupViewData.collectionMeetingCalendar==null?null:t.groupViewData.collectionMeetingCalendar.frequency.value)," ")}}function IPe(e,o){e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"translate"),b(5,"i",31)(6,"br"),c(7),p(8,"translate"),p(9,"translate"),r()()),e&2&&(a(2),le(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.inputs.Unassigned")," "),a(5),le(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.inputs.N/A")," "))}function OPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Activate"))}),l(1,"mat-icon",33),b(2,"fa-icon",34),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Activate")))}function APe(e,o){e&1&&(l(0,"span"),F(1,OPe,6,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_GROUP"))}function FPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Edit"))}),l(1,"mat-icon",33),b(2,"fa-icon",35),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Edit")))}function kPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Transfer Clients"))}),l(1,"mat-icon",33),b(2,"fa-icon",36),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Transfer Clients")))}function BPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Manage Members"))}),l(1,"mat-icon",33),b(2,"fa-icon",37),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Manage Members")))}function RPe(e,o){if(e&1&&(l(0,"button",24)(1,"mat-icon",33),b(2,"fa-icon",38),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2){w();let t=ve(55);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function NPe(e,o){e&1&&(l(0,"button",40),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.buttons.Bulk JLG Loan Application")," "))}function LPe(e,o){e&1&&(l(0,"span"),F(1,NPe,3,3,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function VPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,bPe)),a(),v(" ",m(2,2,"labels.buttons.Group Saving Application")," "))}function qPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,yPe)),a(),v(" ",m(2,2,"labels.buttons.Group Loan Application")," "))}function zPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,SPe)),a(),v(" ",m(2,2,"labels.buttons.GLIM Application")," "))}function HPe(e,o){e&1&&(l(0,"span"),F(1,zPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function GPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,wPe)),a(),v(" ",m(2,2,"labels.buttons.GSIM Application")," "))}function jPe(e,o){e&1&&(l(0,"span"),F(1,GPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_GSIMACCOUNT"))}function $Pe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function UPe(e,o){e&1&&(l(0,"span"),F(1,$Pe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function WPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function QPe(e,o){e&1&&(l(0,"span"),F(1,WPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function YPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function JPe(e,o){e&1&&(l(0,"span"),F(1,YPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function KPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function XPe(e,o){e&1&&(l(0,"span"),F(1,KPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function ZPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function eTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function tTe(e,o){if(e&1&&(l(0,"a",27,6),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,PPe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function iTe(e,o){if(e&1&&(l(0,"a",27,7),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,TPe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function nTe(e,o){if(e&1&&(l(0,"span"),F(1,iTe,3,5,"a",28),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var M2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.groupViewData=t.groupViewData,this.groupDatatables=t.groupDatatables})}doAction(t){switch(t){case"Assign Staff":case"Close":case"Activate":case"Attach Meeting":case"Attendance":case"Manage Members":case"Transfer Clients":if(this.router.navigate([`actions/${t}`],{relativeTo:this.route}),t==="Activate"){let i=this.getGeneralTabComponent();i&&i.refreshAccounts(this.groupViewData.id)}break;case"Edit Meeting":let n={calendarId:this.groupViewData.collectionMeetingCalendar.id};this.router.navigate([`actions/${t}`],{relativeTo:this.route,queryParams:n});break;case"Edit":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Unassign Staff":this.unassignStaff();break;case"Delete":this.deleteGroup();break}}getGeneralTabComponent(){return null}get editMeeting(){return!!(this.groupViewData.collectionMeetingCalendar&&this.groupViewData.collectionMeetingCalendar.entityType.value==="GROUPS"&&this.groupViewData.hierarchy==="."+this.groupViewData.id+".")}reload(){let t=this.router.url;this.router.navigateByUrl("/groups",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}unassignStaff(){this.dialog.open(T2).afterClosed().subscribe(n=>{n.confirm&&this.groupsService.executeGroupCommand(this.groupViewData.id,"unassignStaff",{staffId:this.groupViewData.staffId}).subscribe(()=>{this.reload()})})}deleteGroup(){this.dialog.open(vi,{data:{deleteContext:`group with id: ${this.groupViewData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.groupsService.deleteGroup(this.groupViewData.id).subscribe(()=>{this.router.navigate(["/groups"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-groups-view"]],decls:88,vars:67,consts:[["groupMenu","matMenu"],["AccountApplications","matMenu"],["More","matMenu"],["general","routerLinkActive"],["committee","routerLinkActive"],["tabPanel",""],["notes","routerLinkActive"],["datatable","routerLinkActive"],[1,"group-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","","src","assets/images/group_placeholder.png",1,"profile-image"],[1,"mat-typography","group-card-title"],[1,"make-flex"],[1,"flex-95"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"flex-5","flex-xs-15","flex-sm-10","flex-md-5"],["mat-icon-button","","aria-label","Group actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],[1,"flex-45"],[1,"group-meeting","flex-45","align-start-start"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"routerLink",4,"mifosxHasPermission"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[1,"fa","fa-edit"],[1,"fa","fa-edit",3,"click"],[1,"fa","fa-calendar"],["mat-menu-item","",3,"click"],["matListIcon",""],["icon","checkSign","size","sm"],["icon","edit","size","sm"],["icon","users","size","sm"],["icon","user","size","sm"],["icon","money-bill-alt","size","sm"],["mat-menu-item","",4,"mifosxHasPermission"],["mat-menu-item",""],["mat-menu-item","",3,"routerLink"]],template:function(n,i){if(n&1&&(l(0,"mat-card",8)(1,"mat-card-header",9)(2,"mat-card-title-group",10)(3,"div",11)(4,"div"),b(5,"img",12),r()(),l(6,"div",13)(7,"mat-card-title",14)(8,"h3",15),b(9,"i",16),p(10,"statusLookup"),c(11),p(12,"translate"),r(),l(13,"div",17)(14,"button",18)(15,"mat-icon",19),b(16,"fa-icon",20),r()()()(),l(17,"mat-card-subtitle",14)(18,"div",21)(19,"b"),c(20),p(21,"translate"),r(),c(22),l(23,"b"),c(24),p(25,"translate"),r(),c(26),l(27,"b"),c(28),p(29,"translate"),r(),c(30),b(31,"br"),l(32,"b"),c(33),p(34,"translate"),r(),c(35),b(36,"br"),l(37,"b"),c(38),p(39,"translate"),r(),c(40),p(41,"dateFormat"),b(42,"br"),E(43,MPe,6,6,"span"),r(),l(44,"div",22),E(45,EPe,10,13,"div")(46,IPe,10,12,"div"),r()()(),l(47,"mat-menu",null,0),E(49,APe,2,1,"span"),F(50,FPe,6,3,"button",23)(51,kPe,6,3,"button",23)(52,BPe,6,3,"button",23),E(53,RPe,6,4,"button",24),l(54,"mat-menu",null,1),E(56,LPe,2,1,"span"),F(57,VPe,3,5,"button",25)(58,qPe,3,5,"button",25),E(59,HPe,2,1,"span"),E(60,jPe,2,1,"span"),r(),l(61,"button",24),c(62),p(63,"translate"),r(),l(64,"mat-menu",null,2),E(66,UPe,2,1,"span"),E(67,QPe,2,1,"span"),E(68,JPe,2,1,"span"),E(69,XPe,2,1,"span"),F(70,ZPe,3,3,"button",23)(71,eTe,3,3,"button",23),r()()()(),l(72,"mat-card-content")(73,"nav",26)(74,"a",27,3),c(76),p(77,"translate"),r(),F(78,tTe,4,6,"a",28),l(79,"a",27,4),c(81),p(82,"translate"),r(),Se(83,nTe,2,1,"span",null,Pe),r(),l(85,"mat-tab-nav-panel",null,5),b(87,"router-outlet"),r()()()),n&2){let s=ve(48),d=ve(65),u=ve(75),f=ve(80),_=ve(86);a(9),g("ngClass",m(10,43,i.groupViewData.status.code))("matTooltip",i.groupViewData.status.value),a(2),le(" ",m(12,45,"labels.heading.Group Name")," : ",i.groupViewData.name," "),a(3),g("matMenuTriggerFor",s),a(6),v("",m(21,47,"labels.inputs.Group")," :"),a(2),v(" ",i.groupViewData.name," | "),a(2),v("",m(25,49,"labels.inputs.Center Name"),":"),a(2),v(" ",i.groupViewData.centerName," | "),a(2),v("",m(29,51,"labels.inputs.Staff"),":"),a(2),v(" ",i.groupViewData.staffName||"Unassigned"),a(3),v("",m(34,53,"labels.inputs.Office Name")," :"),a(2),v(" ",i.groupViewData.officeName),a(3),v("",m(39,55,"labels.inputs.Activation Date")," :"),a(2),v(" ",i.groupViewData.activationDate?m(41,57,i.groupViewData.activationDate):"Not Activated"),a(3),I(i.groupViewData.active?-1:43),a(2),I(i.groupViewData.collectionMeetingCalendar?45:46),a(4),I(i.groupViewData.status.value!=="Active"?49:-1),a(),g("mifosxHasPermission","UPDATE_GROUP"),a(),g("mifosxHasPermission","ASSOCIATECLIENTS_GROUP"),a(),g("mifosxHasPermission","TRANSFERCLIENTS_GROUP"),a(),I(i.groupViewData.active?53:-1),a(3),I(i.groupViewData.clientMembers?56:-1),a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","CREATE_LOAN"),a(),I(i.groupViewData.clientMembers?59:-1),a(),I(i.groupViewData.clientMembers?60:-1),a(),g("matMenuTriggerFor",d),a(),h(m(63,59,"labels.buttons.More")),a(4),I(i.groupViewData.collectionMeetingCalendar?66:-1),a(),I(i.groupViewData.staffId?-1:67),a(),I(i.groupViewData.staffId?68:-1),a(),I(!(i.groupViewData.centerId||i.groupViewData.collectionMeetingCalendar)&&i.groupViewData.status.value==="Active"?69:-1),a(),g("mifosxHasPermission","CLOSE_GROUP"),a(),g("mifosxHasPermission","DELETE_GROUP"),a(2),g("tabPanel",_),a(),g("routerLink",oe(65,vPe))("active",u.isActive),a(2),v(" ",m(77,61,"labels.inputs.General")," "),a(2),g("mifosxHasPermission","READ_GROUPNOTE"),a(),g("routerLink",oe(66,xPe))("active",f.isActive),a(2),v(" ",m(82,63,"labels.inputs.Committee")," "),a(2),we(i.groupDatatables)}},dependencies:[ue,co,fe,Oe,Ue,Je,Ke,sa,Wr,x0,Qo,si,wi,nc,Yo,ke,Cl,ic,tc,nr,or,Na,ar,ra,xg,Pi,he,go],styles:[".group-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.group-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.group-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.group-card[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .group-card-title[_ngcontent-%COMP%]{color:#fff;width:90%}.group-card[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .group-card-title[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{color:#fff}.group-card[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{margin:1%}.group-card[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{object-fit:cover;border-radius:20px}.group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%]{align-self:flex-end;width:100%}.group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#0a6aac}.group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff;padding:0 10px}.group-card[_ngcontent-%COMP%] .group-actions[_ngcontent-%COMP%]{align-self:flex-end;margin:0 1%}.group-card[_ngcontent-%COMP%] .group-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-bottom:2px;margin-right:4px}.group-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.make-flex[_ngcontent-%COMP%]{display:flex}"]})}}return e})();var oTe=e=>["/clients",e,"general"],eN=e=>["../","loans-accounts",e,"general"],aTe=e=>["../","savings-accounts","gsim-account",e],rTe=e=>["../","loans-accounts","glim-account",e],lTe=e=>["../","savings-accounts",e,"actions","Deposit"],sTe=e=>["../","savings-accounts",e,"actions","Withdrawal"],cTe=e=>["../","savings-accounts",e,"actions","Approve"],pTe=e=>["../","savings-accounts",e,"actions","Undo Approval"],mTe=e=>["../","savings-accounts",e,"actions","Activate"],tN=e=>["../","savings-accounts",e,"transactions"];function dTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function uTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code))("matTooltip",t.status.value),a(2),v(" ",t.displayName," ")}}function fTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function hTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function gTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function _Te(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function CTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.JLG Loan Application")))}function vTe(e,o){e&1&&(l(0,"div",14)(1,"button",15),b(2,"i",16),p(3,"translate"),r()()),e&2&&(a(2),g("matTooltip",Le(m(3,2,"tooltips.New Loan Application"))))}function xTe(e,o){if(e&1&&(l(0,"td",12),E(1,vTe,4,4,"div",14),r()),e&2){let t=o.$implicit;a(),I(t.status.code!=="clientStatusType.closed"?1:-1)}}function bTe(e,o){e&1&&b(0,"tr",17)}function yTe(e,o){if(e&1&&b(0,"tr",18),e&2){let t=o.$implicit;g("routerLink",Nt(1,oTe,t.id))}}function STe(e,o){if(e&1&&(l(0,"div")(1,"h3"),c(2),p(3,"translate"),r(),l(4,"table",2),X(5,3),F(6,dTe,3,3,"th",4)(7,uTe,4,5,"td",5),Z(),X(8,6),F(9,fTe,3,3,"th",4)(10,hTe,2,1,"td",5),Z(),X(11,7),F(12,gTe,3,3,"th",4)(13,_Te,2,1,"td",5),Z(),X(14,8),F(15,CTe,3,3,"th",4)(16,xTe,2,1,"td",5),Z(),F(17,bTe,1,0,"tr",9)(18,yTe,1,3,"tr",10),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Client Members")),a(2),g("dataSource",t.groupClientMembers),a(13),g("matHeaderRowDef",t.clientMemberColumns),a(),g("matRowDefColumns",t.clientMemberColumns)}}function wTe(e,o){if(e&1){let t=Y();l(0,"div",21)(1,"button",22),R("click",function(){V(t);let i=w(2);return q(i.toggleLoanAccountsOverview())}),c(2),r()()}if(e&2){let t=w(2);a(2),v(" ",t.showClosedLoanAccounts?"View Active Accounts":"View Closed Accounts"," ")}}function PTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function TTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code))("matTooltip",t.inArrears?"Active Overdue":t.status.value),a(2),v(" ",t.accountNo," ")}}function MTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Account")))}function DTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function ETe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function ITe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function OTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function ATe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"currency"),r()),e&2){let t=o.$implicit;a(),v(" ",$t(2,1,t.loanBalance,(t.currency==null?null:t.currency.code)||"USD","symbol","1.2-2")," ")}}function FTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function kTe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"currency"),r()),e&2){let t=o.$implicit;a(),v(" ",$t(2,1,t.amountPaid,(t.currency==null?null:t.currency.code)||"USD","symbol","1.2-2")," ")}}function BTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function RTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",30),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")("matTooltip",t.loanType.value==="Individual"?"Individual":"Group")}}function NTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function LTe(e,o){e&1&&(l(0,"button",31),b(1,"i",32),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Make Repayment"))))}function VTe(e,o){e&1&&(l(0,"button",31),b(1,"i",33),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Approve"))))}function qTe(e,o){e&1&&(l(0,"button",31),b(1,"i",34),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Disburse"))))}function zTe(e,o){e&1&&(l(0,"button",31),b(1,"i",35),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Transfer Funds"))))}function HTe(e,o){if(e&1&&(l(0,"td",12),E(1,LTe,3,4,"button",31),E(2,VTe,3,4,"button",31),E(3,qTe,3,4,"button",31),E(4,zTe,3,4,"button",31),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.pendingApproval?2:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&!t.status.overpaid?3:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&t.status.overpaid?4:-1)}}function GTe(e,o){e&1&&b(0,"tr",17)}function jTe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,eN,t.id))}}function $Te(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,PTe,3,3,"th",4)(4,TTe,4,5,"td",5),Z(),X(5,23),F(6,MTe,3,3,"th",4)(7,DTe,2,1,"td",5),Z(),X(8,24),F(9,ETe,3,3,"th",4)(10,ITe,2,1,"td",5),Z(),X(11,25),F(12,OTe,3,3,"th",4)(13,ATe,3,6,"td",5),Z(),X(14,26),F(15,FTe,3,3,"th",4)(16,kTe,3,6,"td",5),Z(),X(17,27),F(18,BTe,3,3,"th",4)(19,RTe,2,2,"td",5),Z(),X(20,28),F(21,NTe,3,3,"th",4)(22,HTe,5,4,"td",5),Z(),F(23,GTe,1,0,"tr",9)(24,jTe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ft(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function UTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function WTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code))("matTooltip",t.inArrears?"Active Overdue":t.status.value),a(2),v(" ",t.accountNo," ")}}function QTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Account")))}function YTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function JTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function KTe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function XTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function ZTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanBalance)}}function e4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function t4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function i4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function n4e(e,o){if(e&1&&(l(0,"td",12),b(1,"i",30),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")("matTooltip",t.loanType.value==="Individual"?"Individual":"Group")}}function o4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function a4e(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function r4e(e,o){e&1&&b(0,"tr",17)}function l4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,eN,t.id))}}function s4e(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,UTe,3,3,"th",4)(4,WTe,4,5,"td",5),Z(),X(5,23),F(6,QTe,3,3,"th",4)(7,YTe,2,1,"td",5),Z(),X(8,24),F(9,JTe,3,3,"th",4)(10,KTe,3,3,"td",5),Z(),X(11,25),F(12,XTe,3,3,"th",4)(13,ZTe,2,1,"td",5),Z(),X(14,26),F(15,e4e,3,3,"th",4)(16,t4e,2,1,"td",5),Z(),X(17,27),F(18,i4e,3,3,"th",4)(19,n4e,2,2,"td",5),Z(),X(20,37),F(21,o4e,3,3,"th",4)(22,a4e,3,3,"td",5),Z(),F(23,r4e,1,0,"tr",9)(24,l4e,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",yr(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function c4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()(),E(6,wTe,3,1,"div",21),p(7,"accountsFilter"),r(),E(8,$Te,25,6,"table",2),E(9,s4e,25,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Loan Accounts")),a(2),I(yr(7,6,t.loanAccounts,"loan","closed").length?6:-1),a(2),I(t.showClosedLoanAccounts?-1:8),a(),I(t.showClosedLoanAccounts?9:-1)}}function p4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GSIM Id")))}function m4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.gsimId," ")}}function d4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function u4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function f4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product")))}function h4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.childGSIMAccounts[0].productName)}}function g4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function _4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentBalance)}}function C4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function v4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.savingsStatus)}}function x4e(e,o){e&1&&b(0,"tr",17)}function b4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,aTe,t.accountNumber))}}function y4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()()(),l(6,"table",2),X(7,38),F(8,p4e,3,3,"th",4)(9,m4e,2,1,"td",5),Z(),X(10,39),F(11,d4e,3,3,"th",4)(12,u4e,2,1,"td",5),Z(),X(13,40),F(14,f4e,3,3,"th",4)(15,h4e,2,1,"td",5),Z(),X(16,41),F(17,g4e,3,3,"th",4)(18,_4e,2,1,"td",5),Z(),X(19,42),F(20,C4e,3,3,"th",4)(21,v4e,2,1,"td",5),Z(),F(22,x4e,1,0,"tr",9)(23,b4e,1,3,"tr",29),r()()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.GSIM Account Overview")),a(2),g("dataSource",t.gsimAccounts),a(16),g("matHeaderRowDef",t.gsimAccountsColumns),a(),g("matRowDefColumns",t.gsimAccountsColumns)}}function S4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GLIM Id")))}function w4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.glimId," ")}}function P4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function T4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function M4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product")))}function D4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.childGLIMAccounts[0].productName)}}function E4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function I4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentPrincipalAmount)}}function O4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function A4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanStatus)}}function F4e(e,o){e&1&&b(0,"tr",17)}function k4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,rTe,t.glimId))}}function B4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()()(),l(6,"table",2),X(7,43),F(8,S4e,3,3,"th",4)(9,w4e,2,1,"td",5),Z(),X(10,39),F(11,P4e,3,3,"th",4)(12,T4e,2,1,"td",5),Z(),X(13,40),F(14,M4e,3,3,"th",4)(15,D4e,2,1,"td",5),Z(),X(16,24),F(17,E4e,3,3,"th",4)(18,I4e,2,1,"td",5),Z(),X(19,42),F(20,O4e,3,3,"th",4)(21,A4e,2,1,"td",5),Z(),F(22,F4e,1,0,"tr",9)(23,k4e,1,3,"tr",29),r()()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.GLIM Loans Account Overview")),a(2),g("dataSource",t.glimAccounts),a(16),g("matHeaderRowDef",t.glimAccountsColumns),a(),g("matRowDefColumns",t.glimAccountsColumns)}}function R4e(e,o){if(e&1){let t=Y();l(0,"button",22),R("click",function(){V(t);let i=w(2);return q(i.toggleSavingAccountsOverview())}),c(1),r()}if(e&2){let t=w(2);a(),v(" ",t.showClosedSavingAccounts?"View Active Accounts":"View Closed Accounts"," ")}}function N4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function L4e(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code))("matTooltip",t.status.value),a(2),v(" ",t.accountNo," ")}}function V4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Saving Account")))}function q4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function z4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function H4e(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function G4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function j4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function $4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function U4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",49),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,lTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function W4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",50),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,sTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function Q4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",33),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,cTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function Y4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",51),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,pTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Undo Approval")))}}function J4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",52),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,mTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Activate")))}}function K4e(e,o){if(e&1&&(l(0,"td",12),E(1,U4e,3,7,"button",47),E(2,W4e,3,7,"button",47),E(3,Q4e,3,7,"button",47),E(4,Y4e,3,7,"button",47),E(5,J4e,3,7,"button",47),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.active?2:-1),a(),I(t.status.submittedAndPendingApproval?3:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?4:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?5:-1)}}function X4e(e,o){e&1&&b(0,"tr",17)}function Z4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function eMe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,N4e,3,3,"th",4)(4,L4e,4,5,"td",5),Z(),X(5,45),F(6,V4e,3,3,"th",4)(7,q4e,2,1,"td",5),Z(),X(8,46),F(9,z4e,3,3,"th",4)(10,H4e,3,3,"td",5),Z(),X(11,41),F(12,G4e,3,3,"th",4)(13,j4e,2,1,"td",5),Z(),X(14,28),F(15,$4e,3,3,"th",4)(16,K4e,6,5,"td",5),Z(),F(17,X4e,1,0,"tr",9)(18,Z4e,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ft(1,3,t.savingAccounts,"saving")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function tMe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function iMe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code))("matTooltip",t.status.value),a(2),v(" ",t.accountNo," ")}}function nMe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Saving Account")))}function oMe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function aMe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function rMe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function lMe(e,o){e&1&&b(0,"tr",17)}function sMe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function cMe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,tMe,3,3,"th",4)(4,iMe,4,5,"td",5),Z(),X(5,45),F(6,nMe,3,3,"th",4)(7,oMe,2,1,"td",5),Z(),X(8,37),F(9,aMe,3,3,"th",4)(10,rMe,3,3,"td",5),Z(),F(11,lMe,1,0,"tr",9)(12,sMe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",yr(1,3,t.savingAccounts,"saving","closed")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function pMe(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()(),l(6,"div",21),E(7,R4e,2,1,"button",44),p(8,"accountsFilter"),r()(),E(9,eMe,19,6,"table",2),E(10,cMe,13,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Saving Accounts")),a(3),I(yr(8,6,t.savingAccounts,"saving","closed").length?7:-1),a(2),I(t.showClosedSavingAccounts?-1:9),a(),I(t.showClosedSavingAccounts?10:-1)}}var D2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.clientMemberColumns=["Name","Account No","Office","JLG Loan Application"],this.openLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Actions"],this.closedLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Closed Date"],this.openSavingsColumns=["Account No","Saving Account","Last Active","Balance","Actions"],this.closedSavingsColumns=["Account No","Saving Account","Closed Date"],this.gsimAccountsColumns=["GSIM Id","Account Number","Product","Balance","Status"],this.glimAccountsColumns=["GLIM Id","Account Number","Product","Original Loan","Status"],this.showClosedLoanAccounts=!1,this.showClosedSavingAccounts=!1,this.route.data.subscribe(t=>{this.glimAccounts=t.glimData,this.gsimAccounts=t.gsimData,this.groupAccountData=t.groupAccountsData,this.savingAccounts=t.groupAccountsData.savingsAccounts,this.loanAccounts=t.groupAccountsData.loanAccounts,this.groupSummary=t.groupSummary[0]}),this.route.parent.data.subscribe(t=>{this.groupClientMembers=t.groupViewData.clientMembers})}refreshAccounts(t){this.groupsService.getGroupAccountsData(t).subscribe(n=>{this.groupAccountData=n,this.savingAccounts=n.savingsAccounts,this.loanAccounts=n.loanAccounts})}toggleLoanAccountsOverview(){this.showClosedLoanAccounts=!this.showClosedLoanAccounts}toggleSavingAccountsOverview(){this.showClosedSavingAccounts=!this.showClosedSavingAccounts}routeEdit(t){t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:34,vars:36,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","group-details-container","m-b-30"],["mat-table","",1,"mat-elevation-z1","m-b-30",3,"dataSource"],["matColumnDef","Name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Account No"],["matColumnDef","Office"],["matColumnDef","JLG Loan Application"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"m-l-30"],["mat-raised-button","","color","primary","disabled","",1,"account-action-button"],[1,"fa","fa-plus",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"layout-row","align-start","table-header"],[1,"m-b-10"],[1,"action-button","m-b-10"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["matColumnDef","Loan Account"],["matColumnDef","Original Loan"],["matColumnDef","Loan Balance"],["matColumnDef","Amount Paid"],["matColumnDef","Type"],["matColumnDef","Actions"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"fa","fa-large",3,"ngClass","matTooltip"],["mat-raised-button","","color","primary",1,"account-action-button"],[1,"fa","fa-dollar",3,"matTooltip"],[1,"fa","fa-check",3,"matTooltip"],[1,"fa","fa-flag",3,"matTooltip"],[1,"fa","fa-exchange",3,"matTooltip"],["mat-row","",3,"routerLink"],["matColumnDef","Closed Date"],["matColumnDef","GSIM Id"],["matColumnDef","Account Number"],["matColumnDef","Product"],["matColumnDef","Balance"],["matColumnDef","Status"],["matColumnDef","GLIM Id"],["mat-raised-button","","color","primary",1,"f-right"],["matColumnDef","Saving Account"],["matColumnDef","Last Active"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-arrow-up",3,"matTooltip"],[1,"fa","fa-arrow-down",3,"matTooltip"],[1,"fa","fa-undo",3,"matTooltip"],[1,"fa","fa-check-circle",3,"matTooltip"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"p"),c(6),p(7,"translate"),b(8,"br"),c(9),p(10,"translate"),b(11,"br"),c(12),p(13,"translate"),b(14,"br"),r(),l(15,"p"),c(16),p(17,"translate"),b(18,"br"),c(19),p(20,"translate"),b(21,"br"),c(22),p(23,"translate"),b(24,"br"),r(),l(25,"p"),c(26),p(27,"translate"),b(28,"br"),r()(),E(29,STe,19,6,"div"),E(30,c4e,10,10,"div"),E(31,y4e,24,6,"div"),E(32,B4e,24,6,"div"),E(33,pMe,11,10,"div"),r()),n&2&&(a(2),h(m(3,20,"labels.heading.Group Details")),a(4),le(" ",m(7,22,"labels.inputs.Active Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeClientLoans),a(3),le(" ",m(10,24,"labels.inputs.Active Client Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeClientBorrowers),a(3),le(" ",m(13,26,"labels.inputs.Active Overdue Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueClientLoans),a(4),le(" ",m(17,28,"labels.inputs.Active Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupLoans),a(3),le(" ",m(20,30,"labels.inputs.Active Group Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupBorrowers),a(3),le(" ",m(23,32,"labels.inputs.Active Overdue Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueGroupLoans),a(4),le("",m(27,34,"labels.inputs.Active Clients"),": ",i.groupSummary==null?null:i.groupSummary.activeClients),a(3),I(i.groupClientMembers?29:-1),a(),I(i.loanAccounts?30:-1),a(),I(i.gsimAccounts?31:-1),a(),I(i.glimAccounts?32:-1),a(),I(i.savingAccounts?33:-1))},dependencies:[ue,co,fe,Oe,xe,_t,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,Sg,Pi,he,go,os],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var E2=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Wo),this.groupsService=T(On),this.entityId=this.route.parent.snapshot.params.groupId,this.addNote=this.addNote.bind(this)}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.route.data.subscribe(n=>{this.entityNotes=n.groupNotes})}addNote(t){this.groupsService.createGroupNote(this.entityId,t).subscribe(n=>{this.entityNotes.push({id:n.resourceId,createdByUsername:this.username,createdOn:new Date,note:t.note})})}editNote(t,n,i){this.groupsService.editGroupNote(this.entityId,t,n).subscribe(()=>{this.entityNotes[i].note=n.note})}deleteNote(t,n){this.groupsService.deleteGroupNote(this.entityId,t).subscribe(()=>{this.entityNotes.splice(n,1)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-notes-tab",0),n&2&&g("entityId",i.entityId)("entityNotes",i.entityNotes)("callbackAdd",i.addNote)("callbackEdit",i.editNote)("callbackDelete",i.deleteNote)},dependencies:[ue,fe,E0],encapsulation:2})}}return e})();var mMe=()=>({confirm:!0}),I2=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-unassign-role-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"p"),c(5),p(6,"translate"),r()(),l(7,"mat-dialog-actions",2)(8,"button",3),c(9),p(10,"translate"),r(),l(11,"button",4),c(12),p(13,"translate"),r()()),n&2&&(a(),h(m(2,6,"labels.heading.Unassign Role")),a(4),le("",m(6,8,"labels.text.Unassign role for client member"),": ",i.data.id," ?"),a(4),h(m(10,10,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",oe(14,mMe)),a(),v(" ",m(13,12,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var dMe=["rolesTable"],uMe=()=>["add-role"];function fMe(e,o){e&1&&(l(0,"button",6),b(1,"i",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,uMe)),a(2),v("\xA0 ",m(3,2,"labels.buttons.Add")," "))}function hMe(e,o){e&1&&(l(0,"div",4),F(1,fMe,4,5,"button",5),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNROLE_GROUP"))}function gMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function _Me(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientName)}}function CMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Role")))}function vMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.role.name)}}function xMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Id")))}function bMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientId)}}function yMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function SMe(e,o){if(e&1){let t=Y();l(0,"button",20),R("click",function(){V(t);let i=w(2).$implicit,s=w(2);return q(s.unassignRole(i.clientId,i.id))}),b(1,"i",21),p(2,"translate"),r()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Unassign"))))}function wMe(e,o){e&1&&(l(0,"span"),F(1,SMe,3,4,"button",19),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNROLE_GROUP"))}function PMe(e,o){if(e&1&&(l(0,"td",18),E(1,wMe,2,1,"span"),r()),e&2){let t=w(2);a(),I(t.groupStatus!=="Closed"?1:-1)}}function TMe(e,o){e&1&&b(0,"tr",22)}function MMe(e,o){e&1&&b(0,"tr",23)}function DMe(e,o){if(e&1&&(l(0,"div")(1,"table",8,0),X(3,9),F(4,gMe,3,3,"th",10)(5,_Me,2,1,"td",11),Z(),X(6,12),F(7,CMe,3,3,"th",10)(8,vMe,2,1,"td",11),Z(),X(9,13),F(10,xMe,3,3,"th",10)(11,bMe,2,1,"td",11),Z(),X(12,14),F(13,yMe,3,3,"th",10)(14,PMe,2,1,"td",11),Z(),F(15,TMe,1,0,"tr",15)(16,MMe,1,0,"tr",16),r()()),e&2){let t=w();a(),g("dataSource",t.groupRolesData),a(14),g("matHeaderRowDef",t.groupRolesColumns),a(),g("matRowDefColumns",t.groupRolesColumns)}}var O2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.dialog=T(Ht),this.groupRolesColumns=["Name","Role","Client Id","Actions"],this.route.parent.data.subscribe(t=>{this.groupViewData=t.groupViewData,this.groupRolesData=this.groupViewData.groupRoles,this.groupStatus=this.groupViewData.status.value})}unassignRole(t,n){this.dialog.open(I2,{data:{id:t}}).afterClosed().subscribe(s=>{if(s.confirm){let d=this.groupRolesData.findIndex(u=>u.clientId===t);this.groupRolesData.splice(d,1),this.rolesTableRef.renderRows(),this.groupsService.unAssignRoleCommand(this.groupViewData.id,n).subscribe(()=>{})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-committee-tab"]],viewQuery:function(n,i){if(n&1&&Ee(dMe,5),n&2){let s;Te(s=Me())&&(i.rolesTableRef=s.first)}},decls:8,vars:5,consts:[["rolesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-10","gap-25px"],["mat-raised-button","","class","f-right","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"f-right",3,"routerLink"],[1,"fa","fa-plus"],["mat-table","",1,"mat-elevation-z1","m-b-25",3,"dataSource"],["matColumnDef","Name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Role"],["matColumnDef","Client Id"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click"],[1,"fa","fa-ban",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),c(4),p(5,"translate"),r()(),E(6,hMe,2,1,"div",4),r(),E(7,DMe,17,3,"div"),r()),n&2&&(a(4),h(m(5,3,"labels.heading.Client Members")),a(2),I(i.groupStatus!=="Closed"?6:-1),a(),I(i.groupRolesData?7:-1))},dependencies:[ue,fe,Oe,xe,Ke,_t,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var EMe=()=>["../"];function IMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Group Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function AMe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function FMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kMe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function BMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function RMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function NMe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",10),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",22)(5,"mat-datepicker-toggle",12)(6,"mat-datepicker",null,2),E(8,RMe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.groupForm.value.submittedOnDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.groupForm.controls.activationDate.hasError("required")?8:-1)}}function LMe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.displayName," ")}}function VMe(e,o){if(e&1){let t=Y();l(0,"div",18)(1,"div",23)(2,"div",24),c(3),p(4,"translate"),r(),l(5,"button",25),R("click",function(){V(t);let i=w();return q(i.addClient())}),b(6,"fa-icon",26),r()(),l(7,"div",27)(8,"div",28),c(9),p(10,"translate"),r(),l(11,"div",28),c(12),r()(),l(13,"div",27)(14,"div",28),c(15),p(16,"translate"),r(),l(17,"div",28),c(18),r()(),l(19,"div",27)(20,"div",28),c(21),p(22,"translate"),r(),l(23,"div",28),c(24),r()()()}if(e&2){let t=w();a(3),h(m(4,7,"labels.inputs.Client Details")),a(6),h(m(10,9,"labels.inputs.name")),a(3),h(t.clientChoice.value.displayName),a(3),h(m(16,11,"labels.inputs.Id")),a(3),h(t.clientChoice.value.id),a(3),h(m(22,13,"labels.inputs.Office")),a(3),h(t.clientChoice.value.officeName)}}function qMe(e,o){if(e&1){let t=Y();l(0,"div",30)(1,"span",31),c(2),r(),l(3,"button",32),R("click",function(){let i=V(t).$index,s=w(2);return q(s.removeClient(i))}),b(4,"fa-icon",33),r()()}if(e&2){let t=o.$implicit;a(2),h(t.displayName)}}function zMe(e,o){if(e&1&&(l(0,"mat-nav-list")(1,"h3",29),c(2),p(3,"translate"),r(),Se(4,qMe,5,1,"div",30,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Selected Clients")),a(2),we(t.clientMembers)}}var A2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.groupService=T(On),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientsData=[],this.clientMembers=[],this.clientChoice=new it(""),this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createGroupForm()}ngAfterViewInit(){this.clientChoice.valueChanges.subscribe(t=>{t.length>=2&&this.clientsService.getFilteredClients("displayName","ASC",!0,t,this.groupForm.get("officeId").value).subscribe(n=>{this.clientsData=n.pageItems})})}createGroupForm(){this.groupForm=this.formBuilder.group({name:["",[ce.required,ce.pattern("(^[A-z]).*")]],officeId:["",ce.required],submittedOnDate:[this.settingsService.businessDate,ce.required],staffId:[""],externalId:[""],active:[!1]}),this.buildDependencies()}buildDependencies(){this.groupForm.get("officeId").valueChanges.subscribe(t=>{this.groupService.getStaff(t).subscribe(n=>{this.staffData=n.staffOptions,this.staffData===void 0?this.groupForm.controls.staffId.disable():this.groupForm.controls.staffId.enable()})}),this.groupForm.get("active").valueChanges.subscribe(t=>{t?this.groupForm.addControl("activationDate",new it("",ce.required)):this.groupForm.removeControl("activationDate")})}addClient(){this.clientMembers.includes(this.clientChoice.value)||this.clientMembers.push(this.clientChoice.value)}removeClient(t){this.clientMembers.splice(t,1)}displayClient(t){return t?t.displayName:void 0}submit(){let t=this.groupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.groupForm.value.submittedOnDate,d=this.groupForm.value.activationDate;t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(s,i)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});u.clientMembers=[],this.clientMembers.forEach(f=>u.clientMembers.push(f.id)),this.groupService.createGroup(u).subscribe(f=>{this.router.navigate(["../groups",f.resourceId,"general"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-group"]],decls:64,vars:45,consts:[["submittedOnDatePicker",""],["clientsAutocomplete","matAutocomplete"],["activationDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],["formControlName","staffId"],[3,"click"],["matInput","","required","","formControlName","submittedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","active"],["matInput","","formControlName","externalId"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[1,"layout-row"],[1,"mat-table"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],["matSubheader",""],["mat-list-item",""],["matLine",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),E(10,IMe,7,9,"mat-error"),E(11,OMe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",7),Se(17,AMe,2,2,"mat-option",8,Pe),r(),E(19,FMe,7,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",9),Se(25,kMe,2,2,"mat-option",8,Pe),r()(),l(27,"mat-form-field",10),R("click",function(){V(s);let u=ve(34);return q(u.open())}),l(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",11)(32,"mat-datepicker-toggle",12)(33,"mat-datepicker",null,0),E(35,BMe,7,9,"mat-error"),r(),l(36,"mat-checkbox",13),c(37),p(38,"translate"),r(),E(39,NMe,9,8,"mat-form-field"),l(40,"mat-form-field")(41,"mat-label"),c(42),p(43,"translate"),r(),b(44,"input",14),r(),l(45,"mat-form-field")(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"input",15),r()(),l(50,"mat-autocomplete",16,1),Se(52,LMe,2,2,"mat-option",8,Pe),r(),l(54,"div",17),E(55,VMe,25,15,"div",18),E(56,zMe,6,3,"mat-nav-list"),r()(),l(57,"mat-card-actions",19)(58,"button",20),c(59),p(60,"translate"),r(),l(61,"button",21),R("click",function(){return V(s),q(i.submit())}),c(62),p(63,"translate"),r()()()()()}if(n&2){let s=ve(34),d=ve(51);a(2),g("formGroup",i.groupForm),a(5),h(m(8,26,"labels.inputs.name")),a(3),I(i.groupForm.controls.name.hasError("required")?10:-1),a(),I(i.groupForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,28,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.groupForm.controls.officeId.hasError("required")?19:-1),a(3),h(m(23,30,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(30,32,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupForm.controls.submittedOnDate.hasError("required")?35:-1),a(2),v(" ",m(38,34,"labels.inputs.Active")," "),a(2),I(i.groupForm.controls.active.value?39:-1),a(3),h(m(43,36,"labels.inputs.External id")),a(5),h(m(48,38,"labels.inputs.Add Clients")),a(2),g("formControl",i.clientChoice)("matAutocomplete",d),a(),g("displayWith",i.displayClient),a(2),we(i.clientsData),a(3),I(i.clientChoice.value?55:-1),a(),I(i.clientMembers.length?56:-1),a(2),g("routerLink",oe(44,EMe)),a(),v(" ",m(60,40,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.groupForm.valid),a(),v(" ",m(63,42,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,er,Za,wi,ke,pa,Ep,ca,he],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.mat-table[_ngcontent-%COMP%]{display:block;font-family:Tahoma,Verdana,sans-serif;width:50%}.mat-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;min-height:48px;padding:0 24px}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word}"]})}}return e})();var F2=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("groupId"),this.route.data.subscribe(t=>{this.entityDatatable=t.groupDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Group",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var HMe=()=>["../"];function GMe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function jMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client Member")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Me(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function UMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Role")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function WMe(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.groupsAddRoleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}var k2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.groupAndTemplateData=t.groupAndTemplateData})}ngOnInit(){this.clientMemberData=this.groupAndTemplateData.activeClientMembers,this.roleData=this.groupAndTemplateData.availableRoles,this.createGroupsAddRoleForm()}createGroupsAddRoleForm(){this.groupsAddRoleForm=this.formBuilder.group({clientId:["",ce.required],role:["",ce.required]})}submit(){this.groupsService.executeGroupCommand(this.groupAndTemplateData.id,"assignRole",this.groupsAddRoleForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-role"]],decls:26,vars:15,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["formControlName","clientId"],[3,"value"],["formControlName","role"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,GMe,2,2,"mat-option",4,Pe),r(),E(12,jMe,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,$Me,2,2,"mat-option",4,Pe),r(),E(20,UMe,7,9,"mat-error"),r()()(),l(21,"mat-card-actions",6)(22,"button",7),c(23),p(24,"translate"),r(),F(25,WMe,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.groupsAddRoleForm),a(5),h(m(8,8,"labels.inputs.Client")),a(3),we(i.clientMemberData),a(2),I(i.groupsAddRoleForm.controls.clientId.hasError("required")?12:-1),a(3),h(m(16,10,"labels.inputs.Role")),a(3),we(i.roleData),a(2),I(i.groupsAddRoleForm.controls.role.hasError("required")?20:-1),a(2),g("routerLink",oe(14,HMe)),a(),v(" ",m(24,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","ASSIGNROLE_GROUP"))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var QMe=()=>["../../"];function YMe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function JMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var B2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.groupData=t.groupActionData})}ngOnInit(){this.staffData=this.groupData.staffOptions,this.createGroupAssignStaffForm()}createGroupAssignStaffForm(){this.groupAssignStaffForm=this.formBuilder.group({staffId:[""]})}submit(){this.groupsService.executeGroupCommand(this.groupData.id,"assignStaff",this.groupAssignStaffForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-assign-staff"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","staffId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,YMe,2,2,"mat-option",5,Pe),r(),E(12,JMe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.groupAssignStaffForm),a(5),h(m(8,7,"labels.inputs.Staff")),a(3),we(i.staffData),a(2),I(i.groupAssignStaffForm.controls.staffId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,QMe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.groupAssignStaffForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var KMe=()=>["../../"];function XMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZMe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function e5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var R2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.closureData=t.groupActionData.closureReasons}),this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseGroupForm()}createCloseGroupForm(){this.closeGroupForm=this.formBuilder.group({closureDate:["",ce.required],closureReasonId:["",ce.required]})}submit(){let t=this.closeGroupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.closeGroupForm.value.closureDate;t.closureDate instanceof Date&&(t.closureDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.groupsService.executeGroupCommand(this.groupId,"close",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-close-group"]],decls:29,vars:22,consts:[["closureDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closureDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","closureReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,XMe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,ZMe,2,2,"mat-option",9,Pe),r(),E(21,e5e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.closeGroupForm),a(5),h(m(8,13,"labels.inputs.Closed On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.closeGroupForm.controls.closureDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Closure Reason")),a(3),we(i.closureData),a(2),I(i.closeGroupForm.controls.closureReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,KMe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.closeGroupForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var t5e=()=>["../../"];function i5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var N2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateGroupForm()}createActivateGroupForm(){this.activateGroupForm=this.formBuilder.group({activationDate:["",ce.required]})}submit(){let t=this.activateGroupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.activateGroupForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.groupsService.executeGroupCommand(this.groupId,"activate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-activate-group"]],decls:20,vars:18,consts:[["activationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,i5e,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.activateGroupForm),a(4),h(m(7,11,"labels.inputs.Activated On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.activateGroupForm.controls.activationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,t5e)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.activateGroupForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var n5e=()=>["../../"];function o5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function a5e(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function r5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function l5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,a5e,2,2,"mat-option",12,Pe),r(),E(7,r5e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Frequency")),a(3),we(t.frequencyOptions),a(2),I(t.groupMeetingForm.controls.frequency.hasError("repeatsOnDay")?7:-1)}}function s5e(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function c5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function p5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",13),Se(5,s5e,2,2,"mat-option",12,Pe),r(),E(7,c5e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Interval")),a(3),we(t.repetitionIntervals),a(2),I(t.groupMeetingForm.controls.interval.hasError("repeatsOnDay")?7:-1)}}function m5e(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function d5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function u5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),Se(5,m5e,2,2,"mat-option",12,Pe),r(),E(7,d5e,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.groupMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}function f5e(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.groupMeetingForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var L2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.groupActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createGroupMeetingForm(),this.buildDependencies()}createGroupMeetingForm(){this.groupMeetingForm=this.formBuilder.group({startDate:["",ce.required],repeating:[!1]})}buildDependencies(){this.groupMeetingForm.get("repeating").valueChanges.subscribe(t=>{t?(this.groupMeetingForm.addControl("frequency",new it),this.groupMeetingForm.addControl("interval",new it),this.groupMeetingForm.get("frequency").valueChanges.subscribe(n=>{switch(this.groupMeetingForm.removeControl("repeatsOnDay"),n){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.groupMeetingForm.addControl("repeatsOnDay",new it("",ce.required));break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.groupMeetingForm.patchValue({frequency:1,interval:"1"})):(this.groupMeetingForm.removeControl("frequency"),this.groupMeetingForm.removeControl("interval"))})}submit(){let t=this.groupMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`groups_${this.groupId}_CollectionMeeting`,d=t.repeating?"1":"4",u=this.groupMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{title:s,typeId:d,dateFormat:i,locale:n});this.groupsService.createGroupMeeting(this.groupId,f).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-attach-group-meeting"]],decls:25,vars:21,consts:[["startDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","repeating",1,"m-t-10","m-b-10"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],["formControlName","repeatsOnDay","required",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,o5e,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,l5e,8,4,"mat-form-field"),E(18,p5e,8,4,"mat-form-field"),E(19,u5e,8,4,"mat-form-field"),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),F(24,f5e,3,4,"button",10),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.groupMeetingForm),a(5),h(m(8,14,"labels.inputs.Meeting Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupMeetingForm.controls.startDate.hasError("required")?13:-1),a(2),v(" ",m(16,16,"labels.inputs.Repeats"),"? "),a(2),I(i.groupMeetingForm.contains("frequency")?17:-1),a(),I(i.groupMeetingForm.contains("interval")?18:-1),a(),I(i.groupMeetingForm.contains("repeatsOnDay")?19:-1),a(2),g("routerLink",oe(20,n5e)),a(),v(" ",m(23,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var h5e=()=>["../../"];function g5e(e,o){if(e&1&&(l(0,"mat-option",16),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function _5e(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function C5e(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),h($t(2,1,t.clientId,n.membersData,"id","displayName"))}}function v5e(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attendance")))}function x5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function b5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function y5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function S5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function w5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function P5e(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,x5e,3,3,"span",20)(2,b5e,3,3,"span",20)(3,y5e,3,3,"span",20)(4,S5e,3,3,"span",20)(5,w5e,3,3,"span",20),l(6,"button",21),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editAttendance(i))}),b(7,"fa-icon",22),r()()}if(e&2){let t=o.$implicit;g("ngSwitch",t.attendanceType),a(),g("ngSwitchCase",1),a(),g("ngSwitchCase",2),a(),g("ngSwitchCase",3),a(),g("ngSwitchCase",4),a(),g("ngSwitchCase",5)}}function T5e(e,o){e&1&&b(0,"tr",23)}function M5e(e,o){e&1&&b(0,"tr",24)}function D5e(e,o){if(e&1){let t=Y();l(0,"button",25),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var V2=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.groupsService=T(On),this.dialog=T(Ht),this.settingsService=T(Ot),this.displayedColumns=["name","attendance"],this.meetingDate=new it,this.route.data.subscribe(t=>{this.groupData=t.groupActionData,this.membersData=t.groupActionData.clientMembers})}ngOnInit(){this.dataSource=this.membersData.map(t=>({clientId:t.id,attendanceType:1})),this.meetingDates=this.groupData.collectionMeetingCalendar.recurringDates.filter(t=>new Date(t).getTime(){this.attendanceTypeOptions=t.attendanceTypeOptions})}editAttendance(t){let n=[new $i({controlName:"attendanceType",label:"Attendance",value:t.attendanceType,options:{label:"value",value:"id",data:this.attendanceTypeOptions},required:!1})],i={title:"Assign Member Attendance",layout:{addButtonText:"Confirm"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=at(at({},t),d.data.value);this.dataSource.splice(this.dataSource.indexOf(t),1,u),this.dataSource=this.dataSource.concat([])}})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=new Date(this.meetingDate.value),s={meetingDate:this.dateUtils.formatDate(i,n),calendarId:this.groupData.collectionMeetingCalendar.id,clientsAttendance:this.dataSource,dateFormat:n,locale:t};this.groupsService.assignGroupAttendance(this.groupData.id,this.groupData.collectionMeetingCalendar.id,s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-attendance"]],decls:26,vars:20,consts:[[1,"container"],[1,"layout-column","gap-3percent"],[1,"flex-fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","attendance"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),F(7,g5e,3,4,"mat-option",4),r(),l(8,"mat-hint"),c(9),p(10,"translate"),p(11,"dateFormat"),r()(),l(12,"table",5),X(13,6),F(14,_5e,3,3,"th",7)(15,C5e,3,6,"td",8),Z(),X(16,9),F(17,v5e,3,3,"th",7)(18,P5e,8,6,"td",10),Z(),F(19,T5e,1,0,"tr",11)(20,M5e,1,0,"tr",12),r(),l(21,"mat-card-actions",13)(22,"button",14),c(23),p(24,"translate"),r(),F(25,D5e,3,3,"button",15),r()()()),n&2&&(a(4),h(m(5,11,"labels.inputs.Meeting Date")),a(2),g("formControl",i.meetingDate),a(),g("ngForOf",i.meetingDates),a(2),le("",m(10,13,"labels.inputs.Next Meeting on"),": ",m(11,15,i.groupData.collectionMeetingCalendar.nextTenRecurringDates[0])),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(19,h5e)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))},dependencies:[ue,ts,Ks,Xs,fe,$e,_n,Oe,Ue,Et,Fe,Be,qa,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function E5e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.displayName," ")}}function I5e(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"span",17),c(2),r(),b(3,"div",18),l(4,"button",19),p(5,"translate"),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.removeClient(d,s))}),b(6,"fa-icon",20),r()()}if(e&2){let t=o.$implicit;a(2),h(t.displayName),a(2),g("matTooltip",Le(m(5,3,"tooltips.Remove Client from Group")))}}function O5e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,I5e,7,5,"div",16,Pe),r()),e&2){let t=w();a(),we(t.clientMembers)}}var q2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.clientsService=T(Oi),this.dialog=T(Ht),this.clientsData=[],this.clientMembers=[],this.clientChoice=new it(""),this.route.data.subscribe(t=>{this.groupData=t.groupActionData,this.clientMembers=t.groupActionData.clientMembers||[]})}ngAfterViewInit(){this.clientChoice.valueChanges.subscribe(t=>{t.length>=2&&this.clientsService.getFilteredClients("displayName","ASC",!0,t,this.groupData.officeId).subscribe(n=>{this.clientsData=n.pageItems})})}addClient(){this.clientMembers.includes(this.clientChoice.value)||this.groupsService.executeGroupCommand(this.groupData.id,"associateClients",{clientMembers:[this.clientChoice.value.id]}).subscribe(()=>{this.clientMembers.push(this.clientChoice.value)})}removeClient(t,n){this.dialog.open(vi,{data:{deleteContext:`client member: ${n.displayName}`}}).afterClosed().subscribe(s=>{s.delete&&this.groupsService.executeGroupCommand(this.groupData.id,"disassociateClients",{clientMembers:[n.id]}).subscribe(()=>{this.clientMembers.splice(t,1)})})}displayClient(t){return t?t.displayName:void 0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-group-members"]],decls:41,vars:25,consts:[["clientsAutocomplete","matAutocomplete"],[1,"container","layout-row","gap-3percent"],[1,"client-card","layout-column","flex","gap-2px"],[1,"flex-30"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[3,"value"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],[1,"flex-50"],["matSubheader",""],["mat-list-item",""],["matLine","",1,"p-t-10"],[1,"flex-fill"],["mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),r(),l(7,"mat-autocomplete",5,0),Se(9,E5e,2,2,"mat-option",6,Pe),r(),l(11,"div",7)(12,"div",8)(13,"div",9),c(14),p(15,"translate"),r(),l(16,"button",10),R("click",function(){return V(s),q(i.addClient())}),b(17,"fa-icon",11),r()(),l(18,"div",12)(19,"div",13),c(20),p(21,"translate"),r(),l(22,"div",13),c(23),r()(),l(24,"div",12)(25,"div",13),c(26),p(27,"translate"),r(),l(28,"div",13),c(29),r()(),l(30,"div",12)(31,"div",13),c(32),p(33,"translate"),r(),l(34,"div",13),c(35),r()()()(),l(36,"mat-card",14)(37,"h3",15),c(38),p(39,"translate"),r(),E(40,O5e,3,0,"mat-nav-list"),r()()}if(n&2){let s=ve(8);a(4),h(m(5,13,"labels.inputs.Add Clients")),a(2),g("formControl",i.clientChoice)("matAutocomplete",s),a(),g("displayWith",i.displayClient),a(2),we(i.clientsData),a(5),h(m(15,15,"labels.inputs.Client Details")),a(6),h(m(21,17,"labels.inputs.name")),a(3),h(i.clientChoice.value.displayName),a(3),h(m(27,19,"labels.inputs.Id")),a(3),h(i.clientChoice.value.id),a(3),h(m(33,21,"labels.inputs.Office")),a(3),h(i.clientChoice.value.officeName),a(3),h(m(39,23,"labels.heading.Client Members")),a(2),I(i.clientMembers!=null&&i.clientMembers.length?40:-1)}},dependencies:[ue,fe,st,$e,_n,Ue,Fe,Be,ze,ft,er,Za,wi,ke,Ep,pa,ca,si,he],styles:[".container[_ngcontent-%COMP%]{max-width:70rem}.container[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%]{display:block;font-family:Roboto,Helvetica Neue,sans-serif;width:100%;margin-top:-2rem;padding:1.5rem}.container[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--border-color-light, #eee);color:var(--text-color, inherit);font-weight:500;align-items:center;min-height:48px;padding:0 24px}.container[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word;flex-direction:column}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{padding-left:0;margin-bottom:0;font-weight:500;border-bottom:2px solid var(--border-color-light, #eee)}.container[_ngcontent-%COMP%] .p-t-10[_ngcontent-%COMP%]{font-weight:500;margin-left:1rem}.container[_ngcontent-%COMP%] .client-card[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{max-height:20rem;margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{left:0}.container[_ngcontent-%COMP%] .flex-fill[_ngcontent-%COMP%]{margin-top:.5rem;display:inline;font-weight:500}"]})}}return e})();var A5e=()=>["../../"];function F5e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function k5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function B5e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function R5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N5e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function L5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function V5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,N5e,2,2,"mat-option",8,Pe),r(),E(7,L5e,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.groupEditMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}function q5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function z5e(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.groupEditMeetingForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var z2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.groupActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditGroupMeetingForm(),this.buildDependencies()}createEditGroupMeetingForm(){this.groupEditMeetingForm=this.formBuilder.group({startDate:["",ce.required],frequency:["",ce.required],interval:["",ce.required]})}buildDependencies(){this.groupEditMeetingForm.get("frequency").valueChanges.subscribe(t=>{switch(this.groupEditMeetingForm.removeControl("repeatsOnDay"),t){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.groupEditMeetingForm.addControl("repeatsOnDay",new it("",ce.required)),this.groupEditMeetingForm.get("repeatsOnDay").patchValue(this.calendarTemplate.repeatsOnDay.id);break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.groupEditMeetingForm.patchValue({startDate:this.calendarTemplate.startDate&&new Date(this.calendarTemplate.startDate),frequency:this.calendarTemplate.frequency.id,interval:`${this.calendarTemplate.interval}`})}editSchedule(){let t={calendarId:this.calendarId};this.router.navigate(["../Edit Meeting Schedule"],{relativeTo:this.route,queryParams:t})}submit(){let t=this.groupEditMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`groups_${this.groupId}_CollectionMeeting`,d="1",u=this.groupEditMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{repeating:!0,title:s,typeId:d,dateFormat:i,locale:n});this.groupsService.updateGroupMeeting(this.groupId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-group-meeting"]],decls:44,vars:30,consts:[["startDatePicker",""],[1,"container","m-b-20","layout-row","align-end"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],[1,"m-b-5",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["formControlName","repeatsOnDay","required",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"button",2),R("click",function(){return V(s),q(i.editSchedule())}),b(2,"fa-icon",3),c(3),p(4,"translate"),r()(),l(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-card-content")(9,"div",6)(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",7),Se(15,F5e,2,2,"mat-option",8,Pe),r(),E(17,k5e,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),l(22,"mat-select",9),Se(23,B5e,2,2,"mat-option",8,Pe),r(),E(25,R5e,7,9,"mat-error"),r(),E(26,V5e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){V(s);let u=ve(34);return q(u.open())}),l(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",11)(32,"mat-datepicker-toggle",12)(33,"mat-datepicker",null,0),E(35,q5e,7,9,"mat-error"),l(36,"mat-hint"),c(37),p(38,"translate"),r()()()(),l(39,"mat-card-actions",13)(40,"button",14),c(41),p(42,"translate"),r(),F(43,z5e,3,4,"button",15),r()()()()}if(n&2){let s=ve(34);a(3),v(" ",m(4,17,"labels.buttons.Edit Schedule")," "),a(4),g("formGroup",i.groupEditMeetingForm),a(5),h(m(13,19,"labels.inputs.Repetition Frequency")),a(3),we(i.frequencyOptions),a(2),I(i.groupEditMeetingForm.controls.frequency.hasError("repeatsOnDay")?17:-1),a(3),h(m(21,21,"labels.inputs.Repetition Interval")),a(3),we(i.repetitionIntervals),a(2),I(i.groupEditMeetingForm.controls.interval.hasError("repeatsOnDay")?25:-1),a(),I(i.groupEditMeetingForm.contains("repeatsOnDay")?26:-1),a(3),h(m(30,23,"labels.inputs.Above Changes are Effective from")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupEditMeetingForm.controls.startDate.hasError("required")?35:-1),a(2),v(" ",m(38,25,"labels.text.Repeats' and 'Repeats every")," "),a(3),g("routerLink",oe(29,A5e)),a(),v(" ",m(42,27,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var H5e=()=>["../../"];function G5e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function j5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function U5e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.groupEditMeetingScheduleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var H2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.groupActionData,this.nextMeetingDates=this.calendarTemplate.nextTenRecurringDates}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditMeetingScheduleForm()}createEditMeetingScheduleForm(){this.groupEditMeetingScheduleForm=this.formBuilder.group({presentMeetingDate:["",ce.required],newMeetingDate:["",ce.required]})}submit(){let t=this.groupEditMeetingScheduleForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=!0,d=new Date(this.groupEditMeetingScheduleForm.value.presentMeetingDate),u=this.groupEditMeetingScheduleForm.value.newMeetingDate;t.presentMeetingDate instanceof Date&&(t.presentMeetingDate=this.dateUtils.formatDate(d,i)),t.newMeetingDate instanceof Date&&(t.newMeetingDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{reschedulebasedOnMeetingDates:s,dateFormat:i,locale:n});this.groupsService.updateGroupMeeting(this.groupId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-group-meeting-schedule"]],decls:27,vars:19,consts:[["newMeetingDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","presentMeetingDate"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","newMeetingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,G5e,3,4,"mat-option",5,Pe),r(),E(12,j5e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,$5e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",9)(23,"button",10),c(24),p(25,"translate"),r(),F(26,U5e,3,4,"button",11),r()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.groupEditMeetingScheduleForm),a(5),h(m(8,12,"labels.inputs.Existing Meeting Date")),a(3),we(i.nextMeetingDates),a(2),I(i.groupEditMeetingScheduleForm.controls.presentMeetingDate.hasError("repeatsOnDay")?12:-1),a(3),h(m(16,14,"labels.inputs.Revised Meeting Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupEditMeetingScheduleForm.controls.newMeetingDate.hasError("required")?21:-1),a(2),g("routerLink",oe(18,H5e)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var W5e=()=>["../../"],Q5e=e=>({id:e});function Y5e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",Nt(2,Q5e,t.id)),a(),v(" ",t.displayName," ")}}function J5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Destination Group")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function K5e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function X5e(e,o){if(e&1&&(l(0,"div",9)(1,"div",13)(2,"div",14),c(3),p(4,"translate"),r()(),l(5,"div",15)(6,"div",16),c(7),p(8,"translate"),r(),l(9,"div",16),c(10),r()(),l(11,"div",15)(12,"div",16),c(13),p(14,"translate"),r(),l(15,"div",16),c(16),r()(),l(17,"div",15)(18,"div",16),c(19),p(20,"translate"),r(),l(21,"div",16),c(22),p(23,"dateFormat"),r()(),l(24,"div",15)(25,"div",16),c(26),p(27,"translate"),r(),l(28,"div",16),c(29),r()(),l(30,"div",15)(31,"div",16),c(32),p(33,"translate"),r(),l(34,"div",16),c(35),r()()()),e&2){let t=w();a(3),h(m(4,11,"labels.inputs.Destination Group Details")),a(4),h(m(8,13,"labels.inputs.name")),a(3),h(t.transferClientsForm.get("destinationGroupId").value.name),a(3),h(m(14,15,"labels.inputs.Id")),a(3),h(t.transferClientsForm.get("destinationGroupId").value.id),a(3),h(m(20,17,"labels.inputs.Activation Date")),a(3),v(" ",m(23,19,t.transferClientsForm.get("destinationGroupId").value.activationDate)||"Not Activated"," "),a(4),h(m(27,21,"labels.inputs.Staff")),a(3),v(" ",t.transferClientsForm.get("destinationGroupId").value.staffName||"Unassigned"," "),a(3),h(m(33,23,"labels.inputs.External Id")),a(3),v(" ",t.transferClientsForm.get("destinationGroupId").value.externalId||"Unassigned"," ")}}function Z5e(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.transferClientsForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var G2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupsService=T(On),this.settingsService=T(Ot),this.groupsData=[],this.clientMembers=[],this.route.data.subscribe(t=>{this.groupData=t.groupActionData,this.clientMembers=this.groupData.clientMembers})}ngOnInit(){this.createTransferClientsForm()}ngAfterViewInit(){this.transferClientsForm.get("destinationGroupId").valueChanges.subscribe(t=>{t.length>=2&&this.groupsService.getFilteredGroups("name","ASC",t,this.groupData.officeId).subscribe(n=>{this.groupsData=n})})}createTransferClientsForm(){this.transferClientsForm=this.formBuilder.group({clients:["",ce.required],inheritDestinationGroupLoanOfficer:[!1],destinationGroupId:["",ce.required]})}displayGroup(t){return t?t.name:void 0}submit(){let t=this.settingsService.language.code,n=qt(at({},this.transferClientsForm.value),{destinationGroupId:this.transferClientsForm.get("destinationGroupId").value.id,locale:t});this.groupsService.executeGroupCommand(this.groupData.id,"transferClients",n).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-transfer-clients"]],decls:31,vars:20,consts:[["groupsAutocomplete","matAutocomplete"],[1,"container"],[3,"formGroup"],[1,"layout-column"],["required","","formControlName","clients","multiple",""],[3,"value"],["labelPosition","before","formControlName","inheritDestinationGroupLoanOfficer",1,"m-t-10","m-b-10"],["matInput","","formControlName","destinationGroupId",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[1,"mat-table"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Y5e,2,4,"mat-option",5,Pe),r()(),l(12,"mat-checkbox",6),c(13),p(14,"translate"),r(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),E(20,J5e,7,9,"mat-error"),r()(),l(21,"mat-autocomplete",8,0),Se(23,K5e,2,2,"mat-option",5,Pe),r(),E(25,X5e,36,25,"div",9),r(),l(26,"mat-card-actions",10)(27,"button",11),c(28),p(29,"translate"),r(),F(30,Z5e,3,4,"button",12),r()()()()),n&2){let s,d=ve(22);a(2),g("formGroup",i.transferClientsForm),a(5),h(m(8,11,"labels.inputs.Select Client Members for Transfer")),a(3),we(i.clientMembers),a(3),v(" ",m(14,13,"labels.inputs.Inherit Group Loan Officer"),"? "),a(4),h(m(18,15,"labels.inputs.Destination Group")),a(2),g("matAutocomplete",d),a(),I(i.transferClientsForm.controls.destinationGroupId.hasError("required")?20:-1),a(),g("displayWith",i.displayGroup),a(2),we(i.groupsData),a(2),I((s=i.transferClientsForm.get("destinationGroupId").value)!=null&&s.id?25:-1),a(2),g("routerLink",oe(19,W5e)),a(),v(" ",m(29,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","TRANSFERCLIENTS_GROUP")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,er,Za,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.mat-table[_ngcontent-%COMP%]{display:block;font-family:Tahoma,Verdana,sans-serif;width:100%}.mat-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;min-height:30px;padding:0 24px}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word}"]})}}return e})();function eDe(e,o){e&1&&b(0,"mifosx-group-assign-staff")}function tDe(e,o){e&1&&b(0,"mifosx-close-group")}function iDe(e,o){e&1&&b(0,"mifosx-activate-group")}function nDe(e,o){e&1&&b(0,"mifosx-attach-group-meeting")}function oDe(e,o){e&1&&b(0,"mifosx-group-attendance")}function aDe(e,o){e&1&&b(0,"mifosx-manage-group-members")}function rDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting")}function lDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting-schedule")}function sDe(e,o){e&1&&b(0,"mifosx-group-transfer-clients")}var j2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.actions={"Assign Staff":!1,Close:!1,Activate:!1,"Attach Meeting":!1,Attendance:!1,"Manage Members":!1,"Edit Meeting":!1,"Edit Meeting Schedule":!1,"Transfer Clients":!1},this.router.routeReuseStrategy.shouldReuseRoute=()=>!1;let t=this.route.snapshot.params.action;t&&t in this.actions&&(this.actions[t]=!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-actions"]],decls:9,vars:9,template:function(n,i){n&1&&(E(0,eDe,1,0,"mifosx-group-assign-staff"),E(1,tDe,1,0,"mifosx-close-group"),E(2,iDe,1,0,"mifosx-activate-group"),E(3,nDe,1,0,"mifosx-attach-group-meeting"),E(4,oDe,1,0,"mifosx-group-attendance"),E(5,aDe,1,0,"mifosx-manage-group-members"),E(6,rDe,1,0,"mifosx-edit-group-meeting"),E(7,lDe,1,0,"mifosx-edit-group-meeting-schedule"),E(8,sDe,1,0,"mifosx-group-transfer-clients")),n&2&&(I(i.actions["Assign Staff"]?0:-1),a(),I(i.actions.Close?1:-1),a(),I(i.actions.Activate?2:-1),a(),I(i.actions["Attach Meeting"]?3:-1),a(),I(i.actions.Attendance?4:-1),a(),I(i.actions["Manage Members"]?5:-1),a(),I(i.actions["Edit Meeting"]?6:-1),a(),I(i.actions["Edit Meeting Schedule"]?7:-1),a(),I(i.actions["Transfer Clients"]?8:-1))},dependencies:[ue,fe,B2,R2,N2,L2,V2,q2,z2,H2,G2],encapsulation:2})}}return e})();var cDe=()=>["../"];function pDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Group Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function dDe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function uDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",8),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",15)(5,"mat-datepicker-toggle",10)(6,"mat-datepicker",null,1),E(8,fDe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.editGroupForm.value.submittedOnDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.editGroupForm.controls.activationDate.hasError("required")?8:-1)}}var $2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupService=T(On),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.staffData=t.groupAndTemplateData.staffOptions,this.groupData=t.groupAndTemplateData,this.submittedOnDate=t.groupViewData.timeline.submittedOnDate&&new Date(t.groupViewData.timeline.submittedOnDate)})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditGroupForm(),this.editGroupForm.patchValue({name:this.groupData.name,submittedOnDate:this.submittedOnDate,staffId:this.groupData.staffId,externalId:this.groupData.externalId})}createEditGroupForm(){this.editGroupForm=this.formBuilder.group({name:["",[ce.required,ce.pattern("(^[A-z]).*")]],submittedOnDate:["",ce.required],staffId:[""],externalId:[""]}),this.buildDependencies()}buildDependencies(){this.groupData.active?(this.editGroupForm.addControl("activationDate",new it("",ce.required)),this.editGroupForm.get("activationDate").patchValue(this.groupData.activationDate&&new Date(this.groupData.activationDate))):this.editGroupForm.removeControl("activationDate")}submit(){let t=this.editGroupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.editGroupForm.value.submittedOnDate,d=this.editGroupForm.value.activationDate;t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(s,i)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.groupService.updateGroup(u,this.groupData.id).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-group"]],decls:41,vars:30,consts:[["submittedOnDatePicker",""],["activationDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["formControlName","staffId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","submittedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3)(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,pDe,7,9,"mat-error"),E(11,mDe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,dDe,2,2,"mat-option",7,Pe),r()(),l(19,"mat-form-field",8),R("click",function(){V(s);let u=ve(26);return q(u.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",9)(24,"mat-datepicker-toggle",10)(25,"mat-datepicker",null,0),E(27,uDe,7,9,"mat-error"),r(),E(28,hDe,9,8,"mat-form-field"),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",11),r()()(),l(34,"mat-card-actions",12)(35,"button",13),c(36),p(37,"translate"),r(),l(38,"button",14),R("click",function(){return V(s),q(i.submit())}),c(39),p(40,"translate"),r()()()()()}if(n&2){let s=ve(26);a(2),g("formGroup",i.editGroupForm),a(5),h(m(8,17,"labels.inputs.name")),a(3),I(i.editGroupForm.controls.name.hasError("required")?10:-1),a(),I(i.editGroupForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,19,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(22,21,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.editGroupForm.controls.submittedOnDate.hasError("required")?27:-1),a(),I(i.editGroupForm.contains("activationDate")?28:-1),a(3),h(m(32,23,"labels.inputs.External id")),a(4),g("routerLink",oe(29,cDe)),a(),v(" ",m(37,25,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editGroupForm.valid),a(),v(" ",m(40,27,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var l5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.paramMap.get("groupId");return this.groupsService.getGroupSummary(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var s5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.paramMap.get("groupId");return this.groupsService.getGroupNotes(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var c5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(){return this.groupsService.getGroupDatatables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var p5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.parent.paramMap.get("groupId"),i=t.paramMap.get("datatableName");return this.groupsService.getGroupDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var U2=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.paramMap.get("groupId");return this.groupsService.getGroupData(n,"true")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var m5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.paramMap.get("action"),i=t.paramMap.get("groupId")||t.parent.parent.paramMap.get("groupId");switch(n){case"Attendance":case"Manage Members":case"Transfer Clients":return this.groupsService.getGroupData(i);case"Assign Staff":return this.groupsService.getGroupData(i,"true");case"Close":return this.groupsService.getGroupCommandTemplate("close");case"Attach Meeting":return this.groupsService.getGroupCalendarTemplate(i);case"Edit Meeting":case"Edit Meeting Schedule":let s=t.queryParamMap.get("calendarId");return this.groupsService.getGroupCalendarAndTemplate(i,s);default:return}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var d5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.paramMap.get("groupId");return this.groupsService.getGLIMAccountsData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var gDe=[_o.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:P2},{path:"create",component:A2,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:zr}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:pf},children:[{path:"",component:M2,resolve:{groupViewData:pf,groupDatatables:c5},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:D2,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:kT,groupSummary:l5,gsimData:BT,glimData:d5}},{path:"notes",component:E2,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:s5}},{path:"committee",component:O2,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:F2,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:p5}}]}]},{path:"edit",component:$2,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:U2,groupViewData:pf}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:k2,resolve:{groupAndTemplateData:U2}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:j2,resolve:{groupActionData:m5}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-IL7ZR3BL.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-IVI3UD24.js").then(e=>e.SavingsModule)}]}]}])],iN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[pf,kT,l5,s5,c5,p5,U2,m5,BT,d5],imports:[gn.forChild(gDe),gn]})}}return e})();var nN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,Er,iN,P2,M2,D2,E2,O2,A2,F2,k2,I2,j2,B2,T2,R2,N2,$2,L2,V2,q2,z2,H2,G2]})}}return e})();var Jn=(()=>{class e{constructor(){this.http=T(ko)}getCenters(t,n,i,s,d){let u=new rn().set("offset",s.toString()).set("limit",d.toString()).set("sortOrder",i).set("orderBy",n).set("paged","true");return t.forEach(function(f){f.value&&(u=u.set(f.type,f.value))}),this.http.get("/centers",{params:u})}createCenter(t){return this.http.post("/centers",t)}getStaff(t){let n=new rn().set("officeId",t.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/centers/template",{params:n})}getCenterData(t){let n=new rn().set("associations","groupMembers,collectionMeetingCalendar");return this.http.get(`/centers/${t}`,{params:n})}getCenterSummary(t){let n=new rn().set("R_groupId",t).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:n})}getSavingsAccountDetails(t){return this.http.get(`/centers/${t}/accounts`)}getCenterNotes(t){return this.http.get(`/groups/${t}/notes`)}createCenterNote(t,n){return this.http.post(`/groups/${t}/notes`,n)}editCenterNote(t,n,i){return this.http.put(`/groups/${t}/notes/${n}`,i)}deleteCenterNote(t,n){return this.http.delete(`/groups/${t}/notes/${n}`)}getcenterDatatables(){let t=new rn().set("apptable","m_center");return this.http.get("/datatables",{params:t})}getCenterDatatable(t,n){let i=new rn().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${t}`,{params:i})}addCenterDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${t}`,i,{params:s})}editCenterDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${t}`,i,{params:s})}deleteDatatableContent(t,n){let i=new rn().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${t}`,{params:i})}executeCenterActionCommand(t,n,i){let s=new rn().set("command",n);return this.http.post(`/centers/${t}`,i,{params:s})}executeGroupActionCommand(t,n,i){let s=new rn().set("command",n);return this.http.post(`/groups/${t}`,i,{params:s})}getGroupStaffData(t){let n=new rn().set("groupOrCenter","centers").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/groups/${t}`,{params:n})}deleteCenter(t){return this.http.delete(`/centers/${t}`)}getCentersData(t,n,i){let s=new rn().set("associations",n);return s=i?s.set("template",i):s,this.http.get(`/centers/${t}`,{params:s})}getMeetingsTemplate(t,n){let i=new rn().set("calenderId",n);return this.http.get(`/centers/${t}/meetings/template`)}assignCenterAttendance(t,n,i){let s=new rn().set("calenderId",n);return this.http.post(`/centers/${t}/meetings`,i,{params:s})}getCalendarTemplate(t){return this.http.get(`/centers/${t}/calendars/template`)}createCenterMeeting(t,n){return this.http.post(`/centers/${t}/calendars`,n)}getCalendarAndTemplate(t,n){let i=new rn().set("template","true");return this.http.get(`/centers/${t}/calendars/${n}`,{params:i})}updateCenterMeeting(t,n,i){return this.http.put(`/centers/${t}/calendars/${i}`,n)}getStaffAssignmentHistoryData(t,n,i,s){let d=new rn().set("tenantIdentifier",i).set("locale",s).set("R_centerId",n);return this.http.get(`/runreports/${t}`,{responseType:"arraybuffer",observe:"response",params:d})}getCenterAndTemplateData(t){let n=new rn().set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/centers/${t}`,{params:n})}executeEditCenter(t,n){return this.http.put(`/groups/${t}`,n)}getAllMeetingFallCenters(t,n,i,s,d){return this.http.get(`/centers?dateFormat=${s}&locale=${d}&meetingDate=${i}&officeId=${t}&staffId=${n}`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var W2=class{constructor(o){this.centersService=o,this.centersSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getCenters(o,t="",n="",i=0,s=10,d=!0){this.centersSubject.next([]),this.centersService.getCenters(o,t,n,i*s,s).subscribe(u=>{u.pageItems=d?u.pageItems.filter(f=>f.active):u.pageItems,this.recordsSubject.next(u.totalFilteredRecords),this.centersSubject.next(u.pageItems)})}connect(o){return this.centersSubject.asObservable()}disconnect(o){this.centersSubject.complete(),this.recordsSubject.complete()}};var _De=["showClosedCenters"],CDe=()=>[10,25,50,100],vDe=()=>["../","organization","bulk-import","Centers"],xDe=()=>["create"],bDe=e=>[e,"general"];function yDe(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,vDe)),a(2),v("",m(3,2,"labels.buttons.Import Center")," "))}function SDe(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,xDe)),a(2),v("",m(3,2,"labels.buttons.Create Center")," "))}function wDe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function PDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function TDe(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account")," #"))}function MDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function DDe(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function EDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function IDe(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function ODe(e,o){if(e&1&&(l(0,"td",26)(1,"div",28),p(2,"statusLookup"),b(3,"fa-icon",29),r()()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,1,t.status.code))}}function ADe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function FDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function kDe(e,o){e&1&&b(0,"tr",30)}function BDe(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,bDe,t.id))}}var Q2=(()=>{class e{constructor(){this.centersService=T(Jn),this.name=new it,this.externalId=new it,this.displayedColumns=["name","accountNo","externalId","status","officeName"],this.filterCentersBy=[{type:"name",value:""},{type:"externalId",value:""}]}ngOnInit(){this.getCenters()}ngAfterViewInit(){this.name.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"name")})).subscribe(),this.externalId.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"externalId")})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadCentersPage())).subscribe()}changeShowClosedCenters(){this.loadCentersPage()}loadCentersPage(){this.sort.direction||delete this.sort.active,this.dataSource.getCenters(this.filterCentersBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize,!this.showClosedCenters.checked)}applyFilter(t,n){this.paginator.pageIndex=0;let i=this.filterCentersBy.findIndex(s=>s.type===n);this.filterCentersBy[i].value=t,this.loadCentersPage()}getCenters(){this.dataSource=new W2(this.centersService),this.dataSource.getCenters(this.filterCentersBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-app-centers"]],viewQuery:function(n,i){if(n&1&&(Ee(_De,7),Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.showClosedCenters=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:34,vars:16,consts:[["showClosedCenters",""],[1,"container"],[1,"layout-column","layout-gt-sm-row","align-gt-sm-start-center"],[1,"search-box","m-r-30"],[1,"search-box"],["matInput","","placeholder","Search by Name",3,"formControl"],["matInput","","placeholder","Search by ExternalID",3,"formControl"],["labelPosition","after",1,"m-r-10",3,"change"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-table","","matSort","",1,"bordered-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accountNo"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","externalId"],["matColumnDef","status"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","download",1,"m-r-10"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"ngClass"],["icon","stop"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4),b(4,"input",5),r(),l(5,"mat-form-field",4),b(6,"input",6),r(),l(7,"mat-checkbox",7,0),R("change",function(){return V(s),q(i.changeShowClosedCenters())}),c(9),p(10,"translate"),r()(),l(11,"div",8),F(12,yDe,4,5,"button",9)(13,SDe,4,5,"button",9),r()(),l(14,"table",10),X(15,11),F(16,wDe,3,3,"th",12)(17,PDe,2,1,"td",13),Z(),X(18,14),F(19,TDe,3,3,"th",15)(20,MDe,2,1,"td",13),Z(),X(21,16),F(22,DDe,3,3,"th",15)(23,EDe,2,1,"td",13),Z(),X(24,17),F(25,IDe,3,3,"th",15)(26,ODe,4,3,"td",13),Z(),X(27,18),F(28,ADe,3,3,"th",12)(29,FDe,2,1,"td",13),Z(),F(30,kDe,1,0,"tr",19)(31,BDe,1,3,"tr",20),r(),b(32,"mat-paginator",21),p(33,"async"),r()}n&2&&(a(4),g("formControl",i.name),a(2),g("formControl",i.externalId),a(3),v(" ",m(10,11,"labels.inputs.Show Closed Centers")," "),a(3),g("mifosxHasPermission","CREATE_CENTER"),a(),g("mifosxHasPermission","CREATE_CENTER"),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("length",m(33,13,i.dataSource==null?null:i.dataSource.records$))("pageSize",10)("pageSizeOptions",oe(15,CDe)))},dependencies:[ue,co,fe,st,$e,_n,Oe,Ue,Fe,ze,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he,go],styles:[".container[_ngcontent-%COMP%]{padding:24px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px;flex-wrap:nowrap;gap:20px}.container[_ngcontent-%COMP%] .layout-column.align-gt-sm-start-center[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row.align-gt-sm-start-center[_ngcontent-%COMP%]{align-items:center;justify-content:flex-start}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;flex:1;min-width:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:200px;flex:1}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%]{width:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0;margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:25px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%]{width:100%;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;margin-top:16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;border-bottom:1px solid #e0e0e0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #f0f0f0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.container[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;margin-top:0}.container[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:0}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:16px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;margin-right:0!important;margin-bottom:15px;flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:150px;margin-bottom:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:0;width:100%;justify-content:center}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:15px}}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.m-r-10[_ngcontent-%COMP%]{margin-right:10px!important}.m-r-20[_ngcontent-%COMP%]{margin-right:20px!important}.m-r-30[_ngcontent-%COMP%]{margin-right:30px!important}"]})}}return e})();var RDe=()=>["../"];function NDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function LDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Center Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function VDe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function qDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zDe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function HDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function GDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",20)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,1),E(8,HDe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.centerForm.controls.activationDate.hasError("required")?8:-1)}}function jDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $De(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function UDe(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"div",21)(2,"div",22),c(3),p(4,"translate"),r(),l(5,"button",23),R("click",function(){V(t);let i=w();return q(i.addGroup())}),b(6,"fa-icon",24),r()(),l(7,"div",25)(8,"div",26),c(9),p(10,"translate"),r(),l(11,"div",26),c(12),r()(),l(13,"div",25)(14,"div",26),c(15),p(16,"translate"),r(),l(17,"div",26),c(18),r()(),l(19,"div",25)(20,"div",26),c(21),p(22,"translate"),r(),l(23,"div",26),c(24),r()()()}if(e&2){let t=w();a(3),h(m(4,7,"labels.inputs.Group Details")),a(6),h(m(10,9,"labels.inputs.name")),a(3),h(t.groupChoice.value.name),a(3),h(m(16,11,"labels.inputs.Id")),a(3),h(t.groupChoice.value.id),a(3),h(m(22,13,"labels.inputs.Office")),a(3),h(t.groupChoice.value.officeName)}}function WDe(e,o){if(e&1){let t=Y();l(0,"div",28)(1,"button",23),R("click",function(){let i=V(t).$index,s=w(2);return q(s.removeGroup(i))}),b(2,"fa-icon",29),r(),l(3,"span",30),c(4),r()()}if(e&2){let t=o.$implicit;a(4),h(t.name)}}function QDe(e,o){if(e&1&&(l(0,"mat-nav-list")(1,"h3",27),c(2),p(3,"translate"),r(),Se(4,WDe,5,1,"div",28,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Selected Groups")),a(2),we(t.groupMembers)}}function YDe(e,o){if(e&1){let t=Y();l(0,"button",31),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.centerForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Y2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centerService=T(Jn),this.settingsService=T(Ot),this.groupService=T(On),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.groupMembers=[],this.groupChoice=new it(""),this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCenterForm()}createCenterForm(){this.centerForm=this.formBuilder.group({name:["",[ce.required,ce.pattern("(^[A-z]).*")]],officeId:["",ce.required],submittedOnDate:["",ce.required],staffId:[""],externalId:[""],active:[""]}),this.buildDependencies()}buildDependencies(){this.centerForm.get("officeId").valueChanges.subscribe(t=>{this.groupService.getGroupsByOfficeId(t).subscribe(n=>{this.groupsData=n,this.groupsData.length?this.groupChoice.enable():this.groupChoice.disable()}),this.centerService.getStaff(t).subscribe(n=>{this.staffData=n.staffOptions,this.staffData===void 0?this.centerForm.controls.staffId.disable():this.centerForm.controls.staffId.enable()})}),this.centerForm.get("active").valueChanges.subscribe(t=>{t?this.centerForm.addControl("activationDate",new it("",ce.required)):this.centerForm.removeControl("activationDate")})}addGroup(){this.groupMembers.includes(this.groupChoice.value)||this.groupMembers.push(this.groupChoice.value)}removeGroup(t){this.groupMembers.splice(t,1)}submit(){let t=this.centerForm.value,n=this.centerForm.value.submittedOnDate,i=this.centerForm.value.activationDate,s=this.settingsService.language.code,d=this.settingsService.dateFormat;t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(n,d)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(i,d));let u=qt(at({},t),{dateFormat:d,locale:s});u.groupMembers=[],this.groupMembers.forEach(f=>u.groupMembers.push(f.id)),this.centerService.createCenter(u).subscribe(f=>{this.router.navigate(["../centers"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-center"]],decls:60,vars:40,consts:[["submittedOnDatePicker",""],["activationDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],["formControlName","staffId"],["labelPosition","before","formControlName","active"],["matInput","","formControlName","externalId"],[3,"click"],["matInput","","required","","formControlName","submittedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"formControl"],[1,"layout-row"],[1,"mat-table"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],["matSubheader",""],["mat-list-item",""],["icon","trash"],["matLine",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3)(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,NDe,7,9,"mat-error"),E(11,LDe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,VDe,2,2,"mat-option",7,Pe),r(),E(19,qDe,7,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",8),Se(25,zDe,2,2,"mat-option",7,Pe),r()(),l(27,"mat-checkbox",9),c(28),p(29,"translate"),r(),E(30,GDe,9,8,"mat-form-field"),l(31,"mat-form-field")(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",10),r(),l(36,"mat-form-field",11),R("click",function(){V(s);let u=ve(43);return q(u.open())}),l(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),E(44,jDe,7,9,"mat-error"),r(),l(45,"mat-form-field")(46,"mat-label"),c(47),p(48,"translate"),r(),l(49,"mat-select",14),Se(50,$De,2,2,"mat-option",7,Pe),r()()(),l(52,"div",15),E(53,UDe,25,15,"div",16),E(54,QDe,6,3,"mat-nav-list"),r()(),l(55,"mat-card-actions",17)(56,"button",18),c(57),p(58,"translate"),r(),F(59,YDe,3,4,"button",19),r()()()()}if(n&2){let s=ve(43);a(2),g("formGroup",i.centerForm),a(5),h(m(8,23,"labels.inputs.name")),a(3),I(i.centerForm.controls.name.hasError("required")?10:-1),a(),I(i.centerForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,25,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.centerForm.controls.officeId.hasError("required")?19:-1),a(3),h(m(23,27,"labels.inputs.Staff")),a(3),we(i.staffData),a(3),v(" ",m(29,29,"labels.inputs.Active")," "),a(2),I(i.centerForm.controls.active.value?30:-1),a(3),h(m(34,31,"labels.inputs.External Id")),a(5),h(m(39,33,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerForm.controls.submittedOnDate.hasError("required")?44:-1),a(3),h(m(48,35,"labels.inputs.Select and Add groups")),a(2),g("formControl",i.groupChoice),a(),we(i.groupsData),a(3),I(i.groupChoice.value?53:-1),a(),I(i.groupMembers.length?54:-1),a(2),g("routerLink",oe(39,RDe)),a(),v(" ",m(58,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CENTER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,wi,ke,pa,Ep,ca,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.mat-table[_ngcontent-%COMP%]{display:block;font-family:Tahoma,Verdana,sans-serif;width:50%}.mat-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;min-height:48px;padding:0 24px}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word}"]})}}return e})();var JDe=()=>["./general"],KDe=()=>["savings-accounts","create"],XDe=()=>["./notes"],ZDe=e=>["./datatables",e];function eEe(e,o){if(e&1&&(l(0,"div")(1,"button",23)(2,"mat-icon",24),b(3,"fa-icon",25),r()()()),e&2){w();let t=ve(36);a(),g("matMenuTriggerFor",t)}}function tEe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"mifosx-external-identifier",26)(4,"br"),r()),e&2){let t=w();a(),v(" ",m(2,3,"labels.inputs.External Id"),": "),a(2),g("externalId",Le(t.centerViewData.externalId))}}function iEe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w();a(),le(" ",m(2,2,"labels.inputs.Staff"),": ",t.centerViewData.staffName," ")}}function nEe(e,o){if(e&1){let t=Y();l(0,"i",28),R("click",function(){V(t);let i=w(3);return q(i.doAction("Edit Meeting"))}),r()}}function oEe(e,o){e&1&&(l(0,"span"),F(1,nEe,1,0,"i",27),b(2,"br"),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_MEETING"))}function aEe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,oEe,3,1,"span"),c(6),p(7,"translate"),p(8,"lowercase"),r()()),e&2){let t=w();a(2),le(" ",m(3,5,"labels.inputs.Next Meeting on"),": ",m(4,7,t.centerViewData.collectionMeetingCalendar==null?null:t.centerViewData.collectionMeetingCalendar.nextTenRecurringDates[0])," "),a(3),I(t.editMeeting?5:-1),a(),le(" ",m(7,9,"labels.inputs.Meeting Frequency"),": ",m(8,11,t.centerViewData.collectionMeetingCalendar==null?null:t.centerViewData.collectionMeetingCalendar.frequency.value)," ")}}function rEe(e,o){e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"translate"),b(5,"i",29)(6,"br"),c(7),p(8,"translate"),p(9,"translate"),r()()),e&2&&(a(2),le(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.text.Unassigned")," "),a(5),le(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.text.N/A")," "))}function lEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Activate"))}),l(1,"mat-icon",31),b(2,"fa-icon",32),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Activate")))}function sEe(e,o){e&1&&(l(0,"span"),F(1,lEe,6,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ACTIVATE_CENTER"))}function cEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Edit"))}),l(1,"mat-icon",31),b(2,"fa-icon",33),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Edit")))}function pEe(e,o){e&1&&(l(0,"button",34)(1,"mat-icon",31),b(2,"fa-icon",35),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2&&(g("disabled",!0),a(4),h(m(5,2,"labels.buttons.Add Group")))}function mEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Manage Groups"))}),l(1,"mat-icon",31),b(2,"fa-icon",33),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Manage Groups")))}function dEe(e,o){e&1&&(l(0,"button",37)(1,"mat-icon",31),b(2,"fa-icon",38),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2&&(g("disabled",!0)("routerLink",oe(5,KDe)),a(4),h(m(5,3,"labels.buttons.Centers Saving Application")))}function uEe(e,o){e&1&&(l(0,"span"),F(1,dEe,6,6,"button",36),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"))}function fEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function hEe(e,o){e&1&&(l(0,"span"),F(1,fEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function gEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function _Ee(e,o){e&1&&(l(0,"span"),F(1,gEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function CEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function vEe(e,o){e&1&&(l(0,"span"),F(1,CEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function xEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function bEe(e,o){e&1&&(l(0,"span"),F(1,xEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CENTER"))}function yEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function SEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function wEe(e,o){e&1&&(l(0,"span"),F(1,SEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function PEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Staff Assignment History"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Staff Assignment History")," "))}function TEe(e,o){if(e&1&&(l(0,"a",21,4),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,XDe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function MEe(e,o){if(e&1&&(l(0,"a",21,5),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,ZDe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function DEe(e,o){if(e&1&&(l(0,"span"),F(1,MEe,3,5,"a",22),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var J2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.centersService=T(Jn),this.translateService=T(yi),this.route.data.subscribe(t=>{this.centerViewData=t.centerViewData,this.centerDatatables=t.centerDatatables})}ngOnInit(){this.centerViewData.collectionMeetingCalendar?this.meetingData=!0:this.meetingData=!1}get editMeeting(){return!!(this.centerViewData.collectionMeetingCalendar&&this.centerViewData.collectionMeetingCalendar.entityType.value==="CENTERS"&&this.centerViewData.hierarchy==="."+this.centerViewData.id+".")}doAction(t){switch(t){case"Activate":case"Assign Staff":case"Close":case"Attendance":case"Attach Meeting":case"Manage Groups":case"Staff Assignment History":this.router.navigate([`actions/${t}`],{relativeTo:this.route});break;case"Edit Meeting":let n={calendarId:this.centerViewData.collectionMeetingCalendar.id};this.router.navigate([`actions/${t}`],{relativeTo:this.route,queryParams:n});break;case"Unassign Staff":this.centersUnassignStaff();break;case"Delete":this.deleteCenter();break;case"Edit":this.router.navigate(["edit"],{relativeTo:this.route})}}centersUnassignStaff(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Unassign Staff"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want Unassign Staff")}}).afterClosed().subscribe(n=>{n.confirm&&this.centersService.executeGroupActionCommand(this.centerViewData.id,"unassignStaff",{staffId:this.centerViewData.staffId}).subscribe(()=>{this.reload()})})}deleteCenter(){this.dialog.open(vi,{data:{deleteContext:`center with id: ${this.centerViewData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.centersService.deleteCenter(this.centerViewData.id).subscribe(()=>{this.router.navigate(["/centers"],{relativeTo:this.route})})})}reload(){let t=this.router.url;this.router.navigateByUrl("/centers",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-centers-view"]],decls:66,vars:51,consts:[["centerMenu","matMenu"],["More","matMenu"],["general","routerLinkActive"],["tabPanel",""],["notes","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],["mat-card-md-image","","src","assets/images/center_placeholder.png",1,"profile-image"],[1,"mat-typography","account-card-title"],[1,"make-flex"],[1,"flex-95"],[1,"fa","fa-stop",3,"matTooltip","ngClass"],[1,"layout-row","responsive-column"],[1,"flex-45"],[1,"center-meeting","flex-45","align-start-start"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"disabled",4,"mifosxHasPermission"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["mat-icon-button","","aria-label","Center actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],[3,"externalId"],["class","fa fa-edit",3,"click",4,"mifosxHasPermission"],[1,"fa","fa-edit",3,"click"],[1,"fa","fa-calendar"],["mat-menu-item","",3,"click"],["matListIcon",""],["icon","checkSign","size","sm"],["icon","edit","size","sm"],["mat-menu-item","",3,"disabled"],["icon","add","size","sm"],["mat-menu-item","",3,"disabled","routerLink",4,"mifosxHasPermission"],["mat-menu-item","",3,"disabled","routerLink"],["icon","file","size","sm"]],template:function(n,i){if(n&1&&(l(0,"mat-card",6)(1,"mat-card-header",7)(2,"mat-card-title-group",8)(3,"div")(4,"div"),b(5,"img",9),r()(),l(6,"div",10)(7,"mat-card-title",11)(8,"h3",12),b(9,"i",13),p(10,"statusLookup"),l(11,"b"),c(12),p(13,"translate"),r(),c(14),r(),E(15,eEe,4,1,"div"),r(),l(16,"mat-card-subtitle")(17,"div",14)(18,"div",15)(19,"p"),c(20),p(21,"translate"),b(22,"br"),c(23),p(24,"translate"),b(25,"br"),E(26,tEe,5,5,"span"),E(27,iEe,4,4,"span"),c(28),p(29,"translate"),p(30,"dateFormat"),b(31,"br"),r()(),l(32,"div",16),E(33,aEe,9,13,"div")(34,rEe,10,12,"div"),r()()()(),l(35,"mat-menu",null,0),E(37,sEe,2,1,"span"),F(38,cEe,6,3,"button",17)(39,pEe,6,4,"button",18)(40,mEe,6,3,"button",17),E(41,uEe,2,1,"span"),l(42,"button",19),c(43),p(44,"translate"),r(),l(45,"mat-menu",null,1),E(47,hEe,2,1,"span"),E(48,_Ee,2,1,"span"),E(49,vEe,2,1,"span"),E(50,bEe,2,1,"span"),F(51,yEe,3,3,"button",17),E(52,wEe,2,1,"span"),F(53,PEe,3,3,"button",17),r()()()(),l(54,"mat-card-content")(55,"nav",20)(56,"a",21,2),c(58),p(59,"translate"),r(),F(60,TEe,4,6,"a",22),Se(61,DEe,2,1,"span",null,Pe),r(),l(63,"mat-tab-nav-panel",null,3),b(65,"router-outlet"),r()()()),n&2){let s=ve(46),d=ve(57),u=ve(64);a(9),g("matTooltip",Le(i.centerViewData.status.value))("ngClass",m(10,34,i.centerViewData.status.code)),a(3),v("",m(13,36,"labels.heading.Center Name")," :"),a(2),v(" ",i.centerViewData.name," "),a(),I(i.centerViewData.status.value!=="Closed"?15:-1),a(5),le(" ",m(21,38,"labels.inputs.Account")," #:",i.centerViewData.accountNo," "),a(3),le(" ",m(24,40,"labels.inputs.Office"),": ",i.centerViewData.officeName," "),a(3),I(i.centerViewData.externalId?26:-1),a(),I(i.centerViewData.staffName?27:-1),a(),le(" ",m(29,42,"labels.inputs.Activation Date")," : ",i.centerViewData.activationDate?m(30,44,i.centerViewData.activationDate):"Not Activated"),a(5),I(i.centerViewData.collectionMeetingCalendar?33:34),a(4),I(i.centerViewData.status.value!=="Active"?37:-1),a(),g("mifosxHasPermission","UPDATE_CENTER"),a(),g("mifosxHasPermission","CREATE_GROUP"),a(),g("mifosxHasPermission","ASSOCIATEGROUPS_CENTER"),a(),I(i.centerViewData.active?41:-1),a(),g("matMenuTriggerFor",s),a(),h(m(44,46,"labels.buttons.More")),a(4),I(i.centerViewData.collectionMeetingCalendar?47:-1),a(),I(i.centerViewData.staffId?-1:48),a(),I(i.centerViewData.staffId?49:-1),a(),I(i.centerViewData.status.value==="Active"?50:-1),a(),g("mifosxHasPermission","CLOSE_CENTER"),a(),I(i.centerViewData.status.value==="Active"&&!i.centerViewData.collectionMeetingCalendar?52:-1),a(),g("mifosxHasPermission","READ_Staff Assignment History"),a(2),g("tabPanel",u),a(),g("routerLink",oe(50,JDe))("active",d.isActive),a(2),v(" ",m(59,48,"labels.inputs.General")," "),a(2),g("mifosxHasPermission","READ_GROUPNOTE"),a(),we(i.centerDatatables)}},dependencies:[ue,co,fe,Oe,Ue,Je,Ke,sa,Wr,x0,Qo,si,wi,nc,Yo,ke,Cl,Da,ic,tc,nr,or,Na,ar,ra,xg,Pi,he,go],styles:[".account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%]{align-self:flex-end;width:100%}.account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#0a6aac}.account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff;padding:0 10px}.meetingDetails[_ngcontent-%COMP%]{float:right;margin-right:10px;border:1px black solid;padding:10px}.make-flex[_ngcontent-%COMP%]{display:flex}"]})}}return e})();var EEe=e=>["/groups",e,"general"],oN=e=>["../","savings-accounts",e,"actions","Deposit"],aN=e=>["../","savings-accounts",e,"actions","Withdrawal"],IEe=e=>["../","savings-accounts",e,"actions","Approve"],OEe=e=>["../","savings-accounts",e,"actions","Undo Approval"],AEe=e=>["../","savings-accounts",e,"actions","Activate"],FEe=e=>["../","savings-accounts",e,"transactions"];function kEe(e,o){e&1&&(l(0,"div")(1,"h3",2),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.heading.Center Closed")))}function BEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function REe(e,o){if(e&1&&(l(0,"td",13),b(1,"i",14),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.status.value))("ngClass",m(2,4,t.status.code)),a(2),v(" ",t.accountNo," ")}}function NEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Group Name")))}function LEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function VEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function qEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function zEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Submitted On")))}function HEe(e,o){if(e&1&&(l(0,"td",13),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.submittedOnDate))}}function GEe(e,o){e&1&&b(0,"tr",15)}function jEe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,EEe,t.id))}}function $Ee(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,BEe,3,3,"th",5)(6,REe,4,6,"td",6),Z(),X(7,7),F(8,NEe,3,3,"th",5)(9,LEe,2,1,"td",6),Z(),X(10,8),F(11,VEe,3,3,"th",5)(12,qEe,2,1,"td",6),Z(),X(13,9),F(14,zEe,3,3,"th",5)(15,HEe,3,3,"td",6),Z(),F(16,GEe,1,0,"tr",10)(17,jEe,1,3,"tr",11),r()),e&2){let t=w();a(),h(m(2,4,"labels.heading.Groups")),a(2),g("dataSource",t.groupResourceData),a(13),g("matHeaderRowDef",t.groupsColumns),a(),g("matRowDefColumns",t.groupsColumns)}}function UEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function WEe(e,o){if(e&1&&(l(0,"td",13),b(1,"i",14),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.status.value))("ngClass",m(2,4,t.status.code)),a(2),v(" ",t.accountNo," ")}}function QEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Products")))}function YEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function JEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function KEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function XEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ZEe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",22),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,oN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function eIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",22),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,oN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function tIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,aN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function iIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,aN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function nIe(e,o){if(e&1&&(E(0,ZEe,3,7,"button",20),E(1,eIe,3,7,"button",20),E(2,tIe,3,7,"button",20),E(3,iIe,3,7,"button",20)),e&2){let t=w().$implicit;I(t.depositType.id===100?0:-1),a(),I(t.depositType.id===300?1:-1),a(),I(t.depositType.id===100?2:-1),a(),I(t.depositType.id===300?3:-1)}}function oIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",24),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,IEe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function aIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",25),p(2,"translate"),r(),l(3,"button",21),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(4,"i",26),p(5,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(10,OEe,t.id)),a(),g("matTooltip",Le(m(2,6,"tooltips.Undo Approve"))),a(2),g("routerLink",Nt(12,AEe,t.id)),a(),g("matTooltip",Le(m(5,8,"tooltips.Activate")))}}function rIe(e,o){if(e&1&&(l(0,"td",13),E(1,nIe,4,4),E(2,oIe,3,7,"button",20),E(3,aIe,6,14),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.submittedAndPendingApproval?2:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?3:-1)}}function lIe(e,o){e&1&&b(0,"tr",15)}function sIe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,FEe,t.id))}}function cIe(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,UEe,3,3,"th",5)(6,WEe,4,6,"td",6),Z(),X(7,17),F(8,QEe,3,3,"th",5)(9,YEe,2,1,"td",6),Z(),X(10,18),F(11,JEe,3,3,"th",5)(12,KEe,2,1,"td",6),Z(),X(13,19),F(14,XEe,3,3,"th",5)(15,rIe,4,3,"td",6),Z(),F(16,lIe,1,0,"tr",10)(17,sIe,1,3,"tr",11),r()),e&2){let t=w(2);a(),h(m(2,4,"labels.heading.Savings Account Overview")),a(2),g("dataSource",t.savingsAccountData),a(13),g("matHeaderRowDef",t.savingsAccountColumns),a(),g("matRowDefColumns",t.savingsAccountColumns)}}function pIe(e,o){if(e&1&&E(0,cIe,18,6),e&2){let t=w();I(t.savingsAccountData.length>0?0:-1)}}var K2=(()=>{class e{constructor(){this.route=T(Ie),this.savingsAccountColumns=["Account No","Products","Balance","Actions"],this.groupsColumns=["Account No","Group Name","Office Name","Submitted On"],this.route.data.subscribe(t=>{this.centerSummaryData=t.centerSummaryData[0],this.centerViewData=t.centerViewData,this.savingsAccountData=t.savingsAccountData.savingsAccounts,this.groupResourceData=t.centerViewData.groupMembers})}routeEdit(t){t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:31,vars:34,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","summary-details-container"],[1,"closedCenter"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","Account No"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Group Name"],["matColumnDef","Office Name"],["matColumnDef","Submitted On"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"matTooltip","ngClass"],["mat-header-row",""],["mat-row","",3,"routerLink"],["matColumnDef","Products"],["matColumnDef","Balance"],["matColumnDef","Actions"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-arrow-right",3,"matTooltip"],[1,"fa","fa-arrow-left",3,"matTooltip"],[1,"fa","fa-check",3,"matTooltip"],[1,"fa","fa-undo",3,"matTooltip"],[1,"fa","fa-power-off",3,"matTooltip"]],template:function(n,i){n&1&&(l(0,"div",0),E(1,kEe,4,3,"div"),l(2,"h3"),c(3),p(4,"translate"),r(),l(5,"div",1)(6,"p"),c(7),p(8,"translate"),b(9,"br"),c(10),p(11,"translate"),b(12,"br"),c(13),p(14,"translate"),b(15,"br"),c(16),p(17,"translate"),b(18,"br"),r(),l(19,"p"),c(20),p(21,"translate"),b(22,"br"),c(23),p(24,"translate"),b(25,"br"),c(26),p(27,"translate"),b(28,"br"),r()(),E(29,$Ee,18,6),E(30,pIe,1,1),r()),n&2&&(a(),I(i.centerViewData.status.value==="Closed"?1:-1),a(2),h(m(4,18,"labels.heading.Summary Details")),a(4),le(" ",m(8,20,"labels.inputs.Active Clients"),": ",i.centerSummaryData.activeClients),a(3),le(" ",m(11,22,"labels.inputs.Active Group Loans"),": ",i.centerSummaryData.activeGroupLoans),a(3),le(" ",m(14,24,"labels.inputs.Active Client Loans"),": ",i.centerSummaryData.activeClientLoans),a(3),le(" ",m(17,26,"labels.inputs.Active Overdue Group Loans"),": ",i.centerSummaryData.overdueGroupLoans),a(4),le(" ",m(21,28,"labels.inputs.Active Group Borrowers"),": ",i.centerSummaryData.activeGroupBorrowers),a(3),le(" ",m(24,30,"labels.inputs.Active Client Borrowers"),": ",i.centerSummaryData.activeClientBorrowers),a(3),le(" ",m(27,32,"labels.inputs.Active Overdue Client Loans"),": ",i.centerSummaryData.overdueClientLoans),a(3),I(i.groupResourceData.length>0?29:-1),a(),I(i.savingsAccountData!==void 0?30:-1))},dependencies:[ue,co,fe,Oe,xe,_t,It,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,Pi,he,go],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .summary-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.closedCenter[_ngcontent-%COMP%]{text-align:center;color:red;font-size:2rem}"]})}}return e})();var X2=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Wo),this.centersService=T(Jn),this.entityId=this.route.parent.parent.snapshot.params.centerId,this.addNote=this.addNote.bind(this),this.editNote=this.editNote.bind(this),this.deleteNote=this.deleteNote.bind(this)}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.route.data.subscribe(n=>{this.entityNotes=n.centerNotes})}addNote(t){this.centersService.createCenterNote(this.entityId,t).subscribe(n=>{this.entityNotes.push({id:n.resourceId,createdByUsername:this.username,createdOn:new Date,note:t.note})})}editNote(t,n,i){this.centersService.editCenterNote(this.entityId,t,n).subscribe(()=>{this.entityNotes[i].note=n.note})}deleteNote(t,n){this.centersService.deleteCenterNote(this.entityId,t).subscribe(()=>{this.entityNotes.splice(n,1)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-notes-tab",0),n&2&&g("entityId",i.entityId)("entityNotes",i.entityNotes)("callbackAdd",i.addNote)("callbackEdit",i.editNote)("callbackDelete",i.deleteNote)},dependencies:[ue,fe,E0],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}"]})}}return e})();var Z2=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("centerId"),this.route.data.subscribe(t=>{this.entityDatatable=t.centerDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Center",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var mIe=()=>["../general"];function dIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Center Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function fIe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function hIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gIe(e,o){if(e&1){let t=Y();X(0,11),R("click",function(){V(t);let i=ve(8);return q(i.open())}),l(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",12)(6,"mat-datepicker-toggle",13)(7,"mat-datepicker",null,0),E(9,hIe,7,9,"mat-error"),r(),Z()}if(e&2){let t=ve(8),n=w();a(3),h(m(4,6,"labels.inputs.Activation Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.editCenterForm.controls.activationDate.hasError("required")?9:-1)}}var ev=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.centerData=t.centerData,this.staffs=this.centerData.staffOptions})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditCenterForm()}createEditCenterForm(){let t=this.settingsService.dateFormat;this.editCenterForm=this.formBuilder.group({name:[this.centerData.name,[ce.required,ce.pattern("(^[A-z]).*")]],staffId:[this.centerData.staffId],externalId:[this.centerData.externalId]}),this.centerData.status.value==="Pending"&&this.editCenterForm.addControl("activationDate",new it(this.centerData.activationDate?this.centerData.activationDate:new Date,ce.required))}submit(){let t=this.editCenterForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat;if(this.centerData.status.value==="Pending"){let d=this.editCenterForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(d,i))}let s=qt(at({},t),{name:this.centerData.name,dateFormat:i,locale:n});this.centersService.executeEditCenter(this.centerData.id,s).subscribe(()=>{this.router.navigate(["../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-center"]],decls:32,vars:22,consts:[["activatedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["formControlName","staffId"],[3,"value"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,dIe,7,9,"mat-error"),E(11,uIe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",5),Se(17,fIe,2,2,"mat-option",6,Pe),r()(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",7),r(),E(24,gIe,10,8,"ng-container"),r()(),l(25,"mat-card-actions",8)(26,"button",9),c(27),p(28,"translate"),r(),l(29,"button",10),c(30),p(31,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.editCenterForm),a(5),h(m(8,11,"labels.inputs.name")),a(3),I(i.editCenterForm.controls.name.hasError("required")?10:-1),a(),I(i.editCenterForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,13,"labels.inputs.Staff")),a(3),we(i.staffs),a(4),h(m(22,15,"labels.inputs.External Id")),a(3),I(i.centerData.status.value==="Pending"?24:-1),a(2),g("routerLink",oe(21,mIe)),a(),v(" ",m(28,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editCenterForm.valid),a(),v(" ",m(31,19,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var _Ie=()=>["../../"];function CIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var tv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateCenterForm()}createActivateCenterForm(){this.activateCenterForm=this.formBuilder.group({activationDate:[new Date,ce.required]})}submit(){let t=this.activateCenterForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.activateCenterForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.centersService.executeCenterActionCommand(this.centerId,"activate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-activate-center"]],decls:20,vars:18,consts:[["activationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,CIe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.activateCenterForm),a(4),h(m(7,11,"labels.inputs.Activated On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.activateCenterForm.controls.activationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,_Ie)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.activateCenterForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var vIe=()=>["../../"];function xIe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function bIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var iv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.centerData=t.centersActionData})}ngOnInit(){this.staffData=this.centerData.staffOptions,this.createCenterAssignStaffForm()}createCenterAssignStaffForm(){this.centerAssignStaffForm=this.formBuilder.group({staffId:[""]})}submit(){this.centersService.executeGroupActionCommand(this.centerData.id,"assignStaff",this.centerAssignStaffForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-assign-staff"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","staffId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,xIe,2,2,"mat-option",5,Pe),r(),E(12,bIe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.centerAssignStaffForm),a(5),h(m(8,7,"labels.inputs.Staff")),a(3),we(i.staffData),a(2),I(i.centerAssignStaffForm.controls.staffId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,vIe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerAssignStaffForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var yIe=()=>["../../"];function SIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wIe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function PIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function TIe(e,o){if(e&1&&(l(0,"button",13),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.closeCenterForm.valid),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}var nv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.closureData=t.centeractionData.closureReasons}),this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseCenterForm()}createCloseCenterForm(){this.closeCenterForm=this.formBuilder.group({closureDate:["",ce.required],closureReasonId:["",ce.required]})}submit(){let t=this.closeCenterForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.closeCenterForm.value.closureDate;t.closureDate instanceof Date&&(t.closureDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.centersService.executeCenterActionCommand(this.centerId,"close",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-close-center"]],decls:27,vars:19,consts:[["closureDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closureDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","closureReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,SIe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,wIe,2,2,"mat-option",9,Pe),r(),E(21,PIe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),F(26,TIe,3,4,"button",12),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.closeCenterForm),a(5),h(m(8,12,"labels.inputs.Closed On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.closeCenterForm.controls.closureDate.hasError("required")?13:-1),a(3),h(m(17,14,"labels.inputs.Closure Reason")),a(3),we(i.closureData),a(2),I(i.closeCenterForm.controls.closureReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(18,yIe)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CLOSE_CENTER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var MIe=()=>["../../"];function DIe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function EIe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function IIe(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),h($t(2,1,t.clientId,n.membersData,"id","displayName"))}}function OIe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attendance")))}function AIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function FIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function kIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function BIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function RIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function NIe(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,AIe,3,3,"span",20)(2,FIe,3,3,"span",20)(3,kIe,3,3,"span",20)(4,BIe,3,3,"span",20)(5,RIe,3,3,"span",20),l(6,"button",21),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editAttendance(i))}),b(7,"fa-icon",22),r()()}if(e&2){let t=o.$implicit;g("ngSwitch",t.attendanceType),a(),g("ngSwitchCase",1),a(),g("ngSwitchCase",2),a(),g("ngSwitchCase",3),a(),g("ngSwitchCase",4),a(),g("ngSwitchCase",5)}}function LIe(e,o){e&1&&b(0,"tr",23)}function VIe(e,o){e&1&&b(0,"tr",24)}function qIe(e,o){if(e&1){let t=Y();l(0,"button",25),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var ov=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(Ot),this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","attendance"],this.meetingDate=new it,this.dataSource=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.centerData=t.centersActionData,this.membersData=t.centersActionData.clients})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.membersData!==void 0&&this.membersData!==null&&(this.dataSource=this.membersData.map(t=>({clientId:t.id,attendanceType:1}))),this.meetingDates=this.centerData.collectionMeetingCalendar.recurringDates.filter(t=>new Date(t).getTime(){this.attendanceTypeOptions=t.attendanceTypeOptions})}editAttendance(t){let n=[new $i({controlName:"attendanceType",label:this.translateService.instant("labels.buttons.Attendance"),value:t.attendanceType,options:{label:"value",value:"id",data:this.attendanceTypeOptions},required:!1})],i={title:this.translateService.instant("labels.buttons.Assign Member")+" "+this.translateService.instant("labels.buttons.Attendance"),layout:{addButtonText:"Confirm"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=at(at({},t),d.data.value);this.dataSource.splice(this.dataSource.indexOf(t),1,u),this.dataSource=this.dataSource.concat([])}})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=new Date(this.meetingDate.value),s={meetingDate:this.dateUtils.formatDate(this.meetingDate.value,n),calendarId:this.centerData.collectionMeetingCalendar.id,clientsAttendance:this.dataSource,dateFormat:n,locale:t};this.centersService.assignCenterAttendance(this.centerData.id,this.centerData.collectionMeetingCalendar.id,s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-attendance"]],decls:26,vars:20,consts:[[1,"container"],[1,"layout-column","gap-3percent"],[1,"flex-fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","attendance"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),F(7,DIe,3,4,"mat-option",4),r(),l(8,"mat-hint"),c(9),p(10,"translate"),p(11,"dateFormat"),r()(),l(12,"table",5),X(13,6),F(14,EIe,3,3,"th",7)(15,IIe,3,6,"td",8),Z(),X(16,9),F(17,OIe,3,3,"th",7)(18,NIe,8,6,"td",10),Z(),F(19,LIe,1,0,"tr",11)(20,VIe,1,0,"tr",12),r(),l(21,"mat-card-actions",13)(22,"button",14),c(23),p(24,"translate"),r(),F(25,qIe,3,3,"button",15),r()()()),n&2&&(a(4),h(m(5,11,"labels.inputs.Meeting Date")),a(2),g("formControl",i.meetingDate),a(),g("ngForOf",i.meetingDates),a(2),le("",m(10,13,"labels.inputs.Next Meeting on"),": ",m(11,15,i.centerData.collectionMeetingCalendar.nextTenRecurringDates[0])),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(19,MIe)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING"))},dependencies:[ue,ts,Ks,Xs,fe,$e,_n,Oe,Ue,Et,Fe,Be,qa,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var zIe=()=>["../../"];function HIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function GIe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function jIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Ie(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,GIe,2,2,"mat-option",12,Pe),r(),E(7,jIe,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Frequency")),a(3),we(t.frequencyOptions),a(2),I(t.centerMeetingForm.controls.frequency.hasError("repeatsOnDay")?7:-1)}}function UIe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function WIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function QIe(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",13),Se(5,UIe,2,2,"mat-option",12,Pe),r(),E(7,WIe,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Interval")),a(3),we(t.repetitionIntervals),a(2),I(t.centerMeetingForm.controls.interval.hasError("repeatsOnDay")?7:-1)}}function YIe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function JIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function KIe(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),Se(5,YIe,2,2,"mat-option",12,Pe),r(),E(7,JIe,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.centerMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}var av=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.centersActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCenterMeetingForm(),this.buildDependencies()}createCenterMeetingForm(){this.centerMeetingForm=this.formBuilder.group({startDate:["",ce.required],repeating:[!1]})}buildDependencies(){this.centerMeetingForm.get("repeating").valueChanges.subscribe(t=>{t?(this.centerMeetingForm.addControl("frequency",new it),this.centerMeetingForm.addControl("interval",new it),this.centerMeetingForm.get("frequency").valueChanges.subscribe(n=>{switch(this.centerMeetingForm.removeControl("repeatsOnDay"),n){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.centerMeetingForm.addControl("repeatsOnDay",new it("",ce.required));break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.centerMeetingForm.patchValue({frequency:1,interval:"1"})):(this.centerMeetingForm.removeControl("frequency"),this.centerMeetingForm.removeControl("interval"))})}submit(){let t=this.centerMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`centers_${this.centerId}_CollectionMeeting`,d="1",u=this.centerMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{title:s,typeId:d,dateFormat:i,locale:n});this.centersService.createCenterMeeting(this.centerId,f).subscribe(_=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-attach-center-meeting"]],decls:27,vars:24,consts:[["startDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","repeating",1,"m-t-10","m-b-10"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],["formControlName","repeatsOnDay","required",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,HIe,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,$Ie,8,4,"mat-form-field"),E(18,QIe,8,4,"mat-form-field"),E(19,KIe,8,4,"mat-form-field"),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),l(24,"button",10),R("click",function(){return V(s),q(i.submit())}),c(25),p(26,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.centerMeetingForm),a(5),h(m(8,15,"labels.inputs.Meeting Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerMeetingForm.controls.startDate.hasError("required")?13:-1),a(2),v(" ",m(16,17,"labels.inputs.Repeats?")," "),a(2),I(i.centerMeetingForm.contains("frequency")?17:-1),a(),I(i.centerMeetingForm.contains("interval")?18:-1),a(),I(i.centerMeetingForm.contains("repeatsOnDay")?19:-1),a(2),g("routerLink",oe(23,zIe)),a(),v(" ",m(23,19,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerMeetingForm.valid),a(),v(" ",m(26,21,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var XIe=()=>["../../"];function ZIe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function e6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function t6e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function i6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function n6e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function o6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function a6e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,n6e,2,2,"mat-option",8,Pe),r(),E(7,o6e,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.centerEditMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}function r6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var rv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.centersActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditCenterMeetingForm(),this.buildDependencies()}createEditCenterMeetingForm(){this.centerEditMeetingForm=this.formBuilder.group({startDate:["",ce.required],frequency:["",ce.required],interval:["",ce.required]})}buildDependencies(){this.centerEditMeetingForm.get("frequency").valueChanges.subscribe(t=>{switch(this.centerEditMeetingForm.removeControl("repeatsOnDay"),t){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.centerEditMeetingForm.addControl("repeatsOnDay",new it("",ce.required)),this.centerEditMeetingForm.get("repeatsOnDay").patchValue(this.calendarTemplate.repeatsOnDay.id);break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.centerEditMeetingForm.patchValue({startDate:this.calendarTemplate.startDate&&new Date(this.calendarTemplate.startDate),frequency:this.calendarTemplate.frequency.id,interval:`${this.calendarTemplate.interval}`})}editSchedule(){let t={calendarId:this.calendarId};this.router.navigate(["../Edit Meeting Schedule"],{relativeTo:this.route,queryParams:t})}submit(){let t=this.centerEditMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`centers_${this.centerId}_CollectionMeeting`,d="1",u=this.centerEditMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{repeating:!0,title:s,typeId:d,dateFormat:i,locale:n});this.centersService.updateCenterMeeting(this.centerId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-center-meeting"]],decls:46,vars:33,consts:[["startDatePicker",""],[1,"container","m-b-20","layout-row","align-end"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],[1,"m-b-5",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["formControlName","repeatsOnDay","required",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"button",2),R("click",function(){return V(s),q(i.editSchedule())}),b(2,"fa-icon",3),c(3),p(4,"translate"),r()(),l(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-card-content")(9,"div",6)(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",7),Se(15,ZIe,2,2,"mat-option",8,Pe),r(),E(17,e6e,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),l(22,"mat-select",9),Se(23,t6e,2,2,"mat-option",8,Pe),r(),E(25,i6e,7,9,"mat-error"),r(),E(26,a6e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){V(s);let u=ve(34);return q(u.open())}),l(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",11)(32,"mat-datepicker-toggle",12)(33,"mat-datepicker",null,0),E(35,r6e,7,9,"mat-error"),l(36,"mat-hint"),c(37),p(38,"translate"),r()()()(),l(39,"mat-card-actions",13)(40,"button",14),c(41),p(42,"translate"),r(),l(43,"button",15),R("click",function(){return V(s),q(i.submit())}),c(44),p(45,"translate"),r()()()()()}if(n&2){let s=ve(34);a(3),v(" ",m(4,18,"labels.buttons.Edit Schedule")," "),a(4),g("formGroup",i.centerEditMeetingForm),a(5),h(m(13,20,"labels.inputs.Repetition Frequency")),a(3),we(i.frequencyOptions),a(2),I(i.centerEditMeetingForm.controls.frequency.hasError("repeatsOnDay")?17:-1),a(3),h(m(21,22,"labels.inputs.Repetition Interval")),a(3),we(i.repetitionIntervals),a(2),I(i.centerEditMeetingForm.controls.interval.hasError("repeatsOnDay")?25:-1),a(),I(i.centerEditMeetingForm.contains("repeatsOnDay")?26:-1),a(3),h(m(30,24,"labels.inputs.Above Changes are Effective from")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerEditMeetingForm.controls.startDate.hasError("required")?35:-1),a(2),v(" ",m(38,26,"labels.text.Repeats' and 'Repeats every")," "),a(3),g("routerLink",oe(32,XIe)),a(),v(" ",m(42,28,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerEditMeetingForm.valid),a(),v(" ",m(45,30,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var l6e=()=>["../../"];function s6e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function c6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function p6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var lv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.centersActionData,this.nextMeetingDates=this.calendarTemplate.nextTenRecurringDates}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditMeetingScheduleForm()}createEditMeetingScheduleForm(){this.centerEditMeetingScheduleForm=this.formBuilder.group({presentMeetingDate:["",ce.required],newMeetingDate:["",ce.required]})}submit(){let t=this.centerEditMeetingScheduleForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=!0,d=new Date(this.centerEditMeetingScheduleForm.value.presentMeetingDate);t.startDate instanceof Date&&(t.presentMeetingDate=this.dateUtils.formatDate(d,i));let u=this.centerEditMeetingScheduleForm.value.newMeetingDate;t.newMeetingDate instanceof Date&&(t.newMeetingDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{reschedulebasedOnMeetingDates:s,dateFormat:i,locale:n});this.centersService.updateCenterMeeting(this.centerId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-center-meeting-schedule"]],decls:29,vars:22,consts:[["newMeetingDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","presentMeetingDate"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","newMeetingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,s6e,3,4,"mat-option",5,Pe),r(),E(12,c6e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,p6e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",9)(23,"button",10),c(24),p(25,"translate"),r(),l(26,"button",11),R("click",function(){return V(s),q(i.submit())}),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.centerEditMeetingScheduleForm),a(5),h(m(8,13,"labels.inputs.Existing Meeting Date")),a(3),we(i.nextMeetingDates),a(2),I(i.centerEditMeetingScheduleForm.controls.presentMeetingDate.hasError("repeatsOnDay")?12:-1),a(3),h(m(16,15,"labels.inputs.Revised Meeting Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerEditMeetingScheduleForm.controls.newMeetingDate.hasError("required")?21:-1),a(2),g("routerLink",oe(21,l6e)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerEditMeetingScheduleForm.valid),a(),v(" ",m(28,19,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function m6e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function d6e(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"span",17),c(2),r(),l(3,"button",18),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.removeGroup(d,s))}),b(4,"fa-icon",19),r()()}if(e&2){let t=o.$implicit;a(2),h(t.name)}}function u6e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,d6e,5,1,"div",16,Pe),r()),e&2){let t=w();a(),we(t.groupMembers)}}var sv=(()=>{class e{constructor(){this.route=T(Ie),this.centersService=T(Jn),this.groupsService=T(On),this.dialog=T(Ht),this.groupsData=[],this.groupMembers=[],this.groupChoice=new it(""),this.route.data.subscribe(t=>{this.centerData=t.centersActionData,this.groupMembers=t.centersActionData.groupMembers})}ngAfterViewInit(){this.groupChoice.valueChanges.subscribe(t=>{t.length>=2&&this.groupsService.getFilteredGroups("name","ASC",t,this.centerData.officeId,"true").subscribe(n=>{this.groupsData=n})})}addGroup(){this.groupMembers!==null&&this.groupMembers!==void 0?this.groupMembers.includes(this.groupChoice.value)||this.centersService.executeCenterActionCommand(this.centerData.id,"associateGroups",{groupMembers:[this.groupChoice.value.id]}).subscribe(()=>{this.groupMembers.push(this.groupChoice.value)}):this.centersService.executeCenterActionCommand(this.centerData.id,"associateGroups",{groupMembers:[this.groupChoice.value.id]}).subscribe(()=>{this.groupMembers.push(this.groupChoice.value)})}removeGroup(t,n){this.dialog.open(vi,{data:{deleteContext:`group member: ${n.name}`}}).afterClosed().subscribe(s=>{s.delete&&this.centersService.executeCenterActionCommand(this.centerData.id,"disassociateGroups",{groupMembers:[n.id]}).subscribe(()=>{this.groupMembers.splice(t,1)})})}displayGroup(t){return t?t.name:void 0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-groups"]],decls:41,vars:25,consts:[["groupsAutocomplete","matAutocomplete"],[1,"container","layout-row","gap-3percent"],[1,"group-card","flex-fill","layout-column","gap-2percent"],[1,"flex-30"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[3,"value"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],[1,"flex-50"],["matSubheader",""],["mat-list-item","",1,"member-item","center-gap"],["matLine","",1,"p-t-10"],["mat-icon-button","","color","warn","aria-label","Remove group",1,"delete-btn",3,"click"],["icon","trash"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),r(),l(7,"mat-autocomplete",5,0),Se(9,m6e,2,2,"mat-option",6,Pe),r(),l(11,"div",7)(12,"div",8)(13,"div",9),c(14),p(15,"translate"),r(),l(16,"button",10),R("click",function(){return V(s),q(i.addGroup())}),b(17,"fa-icon",11),r()(),l(18,"div",12)(19,"div",13),c(20),p(21,"translate"),r(),l(22,"div",13),c(23),r()(),l(24,"div",12)(25,"div",13),c(26),p(27,"translate"),r(),l(28,"div",13),c(29),r()(),l(30,"div",12)(31,"div",13),c(32),p(33,"translate"),r(),l(34,"div",13),c(35),r()()()(),l(36,"mat-card",14)(37,"h3",15),c(38),p(39,"translate"),r(),E(40,u6e,3,0,"mat-nav-list"),r()()}if(n&2){let s=ve(8);a(4),h(m(5,13,"labels.inputs.Add Groups")),a(2),g("formControl",i.groupChoice)("matAutocomplete",s),a(),g("displayWith",i.displayGroup),a(2),we(i.groupsData),a(5),h(m(15,15,"labels.inputs.Group Details")),a(6),h(m(21,17,"labels.inputs.name")),a(3),h(i.groupChoice.value.name),a(3),h(m(27,19,"labels.inputs.Id")),a(3),h(i.groupChoice.value.id),a(3),h(m(33,21,"labels.inputs.Office")),a(3),h(i.groupChoice.value.officeName),a(3),h(m(39,23,"labels.heading.Group Members")),a(2),I(i.groupMembers!=null&&i.groupMembers.length?40:-1)}},dependencies:[ue,fe,st,$e,_n,Ue,Fe,Be,ze,ft,er,Za,wi,ke,Ep,pa,ca,he],styles:[".container[_ngcontent-%COMP%]{max-width:70rem}.container[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%]{display:block;font-family:Roboto,Helvetica Neue,sans-serif;width:100%;margin-top:-2rem;padding:1.5rem}.container[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--border-color-light, #eee);color:var(--text-color, inherit);font-weight:500;align-items:center;min-height:48px;padding:0 24px}.container[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word;flex-direction:column}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{padding-left:0;margin-bottom:0;font-weight:500;border-bottom:2px solid var(--border-color-light, #eee);padding-bottom:1rem}.container[_ngcontent-%COMP%] .group-card[_ngcontent-%COMP%]{max-height:20rem;margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .p-t-10[_ngcontent-%COMP%]{padding-top:10px;font-weight:500;margin-left:1rem}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{max-height:20rem;margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .member-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.25rem 0}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .center-gap[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .member-item[_ngcontent-%COMP%] .p-t-10[_ngcontent-%COMP%]{margin:0;font-weight:500}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{margin-left:.25rem}"]})}}return e})();var f6e=()=>["../../"],cv=(()=>{class e{constructor(){this.sanitizer=T(Zs),this.route=T(Ie),this.route.data.subscribe(t=>{this.staffAssignmentHistoryData=t.centersActionData})}ngOnInit(){let t=this.staffAssignmentHistoryData.headers.get("Content-Type"),n=new Blob([this.staffAssignmentHistoryData.body],{type:t}),i=URL.createObjectURL(n);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-staff-assignment-history"]],decls:7,vars:6,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"div",1)(2,"button",2),b(3,"fa-icon",3),c(4),p(5,"translate"),r()(),b(6,"iframe",4),r()),n&2&&(a(2),g("routerLink",oe(5,f6e)),a(2),v("",m(5,3,"labels.buttons.Back")," "),a(2),g("src",i.pentahoUrl,hg))},dependencies:[ue,fe,Oe,Ue,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:60rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]})}}return e})();function h6e(e,o){e&1&&b(0,"mifosx-activate-center")}function g6e(e,o){e&1&&b(0,"mifosx-center-assign-staff")}function _6e(e,o){e&1&&b(0,"mifosx-close-center")}function C6e(e,o){e&1&&b(0,"mifosx-center-attendance")}function v6e(e,o){e&1&&b(0,"mifosx-attach-center-meeting")}function x6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting")}function b6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting-schedule")}function y6e(e,o){e&1&&b(0,"mifosx-manage-groups")}function S6e(e,o){e&1&&b(0,"mifosx-staff-assignment-history")}var pv=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.actions={Activate:!1,"Assign Staff":!1,Close:!1,Attendance:!1,"Attach Meeting":!1,"Edit Meeting":!1,"Edit Meeting Schedule":!1,"Manage Groups":!1,"Staff Assignment History":!1},this.router.routeReuseStrategy.shouldReuseRoute=()=>!1;let t=this.route.snapshot.params.action;t&&t in this.actions&&(this.actions[t]=!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-actions"]],decls:9,vars:9,template:function(n,i){n&1&&(E(0,h6e,1,0,"mifosx-activate-center"),E(1,g6e,1,0,"mifosx-center-assign-staff"),E(2,_6e,1,0,"mifosx-close-center"),E(3,C6e,1,0,"mifosx-center-attendance"),E(4,v6e,1,0,"mifosx-attach-center-meeting"),E(5,x6e,1,0,"mifosx-edit-center-meeting"),E(6,b6e,1,0,"mifosx-edit-center-meeting-schedule"),E(7,y6e,1,0,"mifosx-manage-groups"),E(8,S6e,1,0,"mifosx-staff-assignment-history")),n&2&&(I(i.actions.Activate?0:-1),a(),I(i.actions["Assign Staff"]?1:-1),a(),I(i.actions.Close?2:-1),a(),I(i.actions.Attendance?3:-1),a(),I(i.actions["Attach Meeting"]?4:-1),a(),I(i.actions["Edit Meeting"]?5:-1),a(),I(i.actions["Edit Meeting Schedule"]?6:-1),a(),I(i.actions["Manage Groups"]?7:-1),a(),I(i.actions["Staff Assignment History"]?8:-1))},dependencies:[ue,fe,tv,iv,nv,ov,av,rv,lv,sv,cv],encapsulation:2})}}return e})();var Jf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.paramMap.get("centerId");return this.centersService.getCenterData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Kf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getSavingsAccountDetails(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Xf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getCenterData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Zf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getCenterSummary(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var e1=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.parent.paramMap.get("centerId");return this.centersService.getCenterNotes(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var t1=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.parent.paramMap.get("centerId"),i=t.paramMap.get("datatableName");return this.centersService.getCenterDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var i1=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(){return this.centersService.getcenterDatatables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var u5=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.paramMap.get("action"),i=t.paramMap.get("centerId")||t.parent.parent.paramMap.get("centerId");switch(n){case"Assign Staff":return this.centersService.getGroupStaffData(i);case"Attendance":return this.centersService.getCentersData(i,"groupMembers,collectionMeetingCalendar");case"Manage Groups":return this.centersService.getCentersData(i,"groupMembers","true");case"Attach Meeting":return this.centersService.getCalendarTemplate(i);case"Edit Meeting":case"Edit Meeting Schedule":let s=t.queryParamMap.get("calendarId");return this.centersService.getCalendarAndTemplate(i,s);case"Staff Assignment History":return this.centersService.getStaffAssignmentHistoryData("Staff Assignment History",i,"default","en");default:return}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var f5=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getCenterAndTemplateData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var w6e=[_o.withShell([{path:"centers",data:{title:"Centers",breadcrumb:"Centers"},children:[{path:"",component:Q2},{path:"create",component:Y2,data:{title:"Create Center",breadcrumb:"Create"},resolve:{offices:zr}},{path:":centerId",data:{title:"Centers View",routeParamBreadcrumb:"centerId"},resolve:{centerViewData:Jf},children:[{path:"",component:J2,resolve:{centerDatatables:i1},children:[{path:"general",component:K2,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{centerSummaryData:Zf,centerViewData:Xf,savingsAccountData:Kf}},{path:"notes",component:X2,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{centerNotes:e1}},{path:"datatables",children:[{path:":datatableName",component:Z2,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{centerDatatable:t1}}]}]},{path:"actions/:action",data:{title:"Center Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:pv,resolve:{centersActionData:u5}},{path:"edit",component:ev,data:{title:"Edit Center",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{centerData:f5}}]}]}])],rN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,Jf,Kf,Xf,Zf,e1,t1,i1,u5,f5],imports:[gn.forChild(w6e),gn]})}}return e})();var lN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[Jf,t1,i1,Zf,Xf,Kf,e1],imports:[oo,rN,ha,Er,Q2,Y2,J2,K2,X2,Z2,pv,tv,iv,nv,ov,av,rv,lv,sv,cv,ev]})}}return e})();var P6e=["chartofAccounts"],T6e=["templateChartofAccounts"],M6e=["accountsLinked"],D6e=["templateAccountsLinked"],E6e=["migrateOpeningBalances"],I6e=["templateMigrateOpeningBalances"],O6e=["closingEntries"],A6e=["templateClosingEntries"],F6e=["createJournalEntries"],k6e=["templateCreateJournalEntries"],sN=()=>["journal-entries/frequent-postings"],cN=()=>["journal-entries/create"],pN=()=>["journal-entries"],mN=()=>["financial-activity-mappings"],dN=()=>["migrate-opening-balances"],uN=()=>["chart-of-accounts"],fN=()=>["closing-entries"],hN=()=>["accounting-rules"],gN=()=>["periodic-accruals"],_N=()=>["provisioning-entries"];function B6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,sN)),a(),v(" ",m(2,2,"labels.text.These are predefined postings")," "))}function R6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function N6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function L6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",17),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,B6e,3,5,"p",19),r()(),l(9,"div",20),E(10,R6e,1,0,"fa-icon",21),E(11,N6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,sN)),a(4),v(" ",m(7,5,"labels.heading.Frequent Postings")," "),a(2),I(t.arrowBooleans[0]?8:-1),a(2),I(t.arrowBooleans[0]?-1:10),a(),I(t.arrowBooleans[0]?11:-1)}}function V6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,cN)),a(),v(" ",m(2,2,"labels.text.Manual journal entry transactions recorded in a journal")," "))}function q6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function z6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function H6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",25),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,V6e,3,5,"p",19),r()(),l(9,"div",20),E(10,q6e,1,0,"fa-icon",21),E(11,z6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,cN)),a(4),v(" ",m(7,5,"labels.heading.Create Journal Entries")," "),a(2),I(t.arrowBooleans[1]?8:-1),a(2),I(t.arrowBooleans[1]?-1:10),a(),I(t.arrowBooleans[1]?11:-1)}}function G6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,pN)),a(),v(" ",m(2,2,"labels.text.Advanced search option for journal entries")," "))}function j6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function $6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function U6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",26),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,G6e,3,5,"p",19),r()(),l(9,"div",20),E(10,j6e,1,0,"fa-icon",21),E(11,$6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,pN)),a(4),v(" ",m(7,5,"labels.heading.Search Journal Entries")," "),a(2),I(t.arrowBooleans[2]?8:-1),a(2),I(t.arrowBooleans[2]?-1:10),a(),I(t.arrowBooleans[2]?11:-1)}}function W6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,mN)),a(),v(" ",m(2,2,"labels.text.List of Financial Activities and GL Account Mappings")," "))}function Q6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function Y6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function J6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",27),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,W6e,3,5,"p",19),r()(),l(9,"div",20),E(10,Q6e,1,0,"fa-icon",21),E(11,Y6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,mN)),a(4),v(" ",m(7,5,"labels.heading.Accounts Linked to Financial Activities")," "),a(2),I(t.arrowBooleans[3]?8:-1),a(2),I(t.arrowBooleans[3]?-1:10),a(),I(t.arrowBooleans[3]?11:-1)}}function K6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,dN)),a(),v(" ",m(2,2,"labels.text.Set or update office-level opening balances for GL accounts")," "))}function X6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function Z6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function eOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",28),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,K6e,3,5,"p",19),r()(),l(9,"div",20),E(10,X6e,1,0,"fa-icon",21),E(11,Z6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,dN)),a(4),v(" ",m(7,5,"labels.heading.Migrate Opening Balances (Office-wise)")," "),a(2),I(t.arrowBooleans[4]?8:-1),a(2),I(t.arrowBooleans[4]?-1:10),a(),I(t.arrowBooleans[4]?11:-1)}}function tOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,uN)),a(),v(" ",m(2,2,"labels.text.List of accounts used by the organization")," "))}function iOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function nOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function oOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",29),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,tOe,3,5,"p",19),r()(),l(9,"div",20),E(10,iOe,1,0,"fa-icon",21),E(11,nOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,uN)),a(4),v(" ",m(7,5,"labels.heading.Chart of Accounts")," "),a(2),I(t.arrowBooleans[5]?8:-1),a(2),I(t.arrowBooleans[5]?-1:10),a(),I(t.arrowBooleans[5]?11:-1)}}function aOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,fN)),a(),v(" ",m(2,2,"labels.text.Journal entries made at the end of accounting period")," "))}function rOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function lOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function sOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",30),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,aOe,3,5,"p",19),r()(),l(9,"div",20),E(10,rOe,1,0,"fa-icon",21),E(11,lOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,fN)),a(4),v(" ",m(7,5,"labels.heading.Closing Entries")," "),a(2),I(t.arrowBooleans[6]?8:-1),a(2),I(t.arrowBooleans[6]?-1:10),a(),I(t.arrowBooleans[6]?11:-1)}}function cOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,hN)),a(),v(" ",m(2,2,"labels.text.List of all accounting rules")," "))}function pOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function mOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function dOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",31),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,cOe,3,5,"p",19),r()(),l(9,"div",20),E(10,pOe,1,0,"fa-icon",21),E(11,mOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,hN)),a(4),v(" ",m(7,5,"labels.heading.Accounting Rules")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function uOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,gN)),a(),v(" ",m(2,2,"labels.text.Accrues income, expenses and liabilities")," "))}function fOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function hOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function gOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",32),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,uOe,3,5,"p",19),r()(),l(9,"div",20),E(10,fOe,1,0,"fa-icon",21),E(11,hOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,gN)),a(4),v(" ",m(7,5,"labels.heading.Accruals")," "),a(2),I(t.arrowBooleans[8]?8:-1),a(2),I(t.arrowBooleans[8]?-1:10),a(),I(t.arrowBooleans[8]?11:-1)}}function _Oe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,_N)),a(),v(" ",m(2,2,"labels.text.Create provisioning entries")," "))}function COe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function vOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function xOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",33),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,_Oe,3,5,"p",19),r()(),l(9,"div",20),E(10,COe,1,0,"fa-icon",21),E(11,vOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,_N)),a(4),v(" ",m(7,5,"labels.heading.Provisioning Entries")," "),a(2),I(t.arrowBooleans[9]?8:-1),a(2),I(t.arrowBooleans[9]?-1:10),a(),I(t.arrowBooleans[9]?11:-1)}}function bOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepChartofAccounts())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepChartofAccounts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Chart of Accounts")),a(3),h(m(5,7,"labels.text.The Chart of Accounts - General Ledger Setup")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function yOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",38),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepAccountsLinked())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepAccountsLinked())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Accounts Linked to Financial Activities")),a(3),h(m(5,7,"labels.text.Accounts linked to Financial Activities")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function SOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",38),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepMigrateOpeningBalances())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepMigrateOpeningBalances())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Migrate Opening Balances (Office-wise)")),a(3),h(m(5,7,"labels.text.GLAccount Balances Application")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function wOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepClosingEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepClosingEntries())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Closing Entries")),a(3),h(m(5,7,"labels.text.Accounting to journal entries")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function POe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepCreateJournalEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepCreateJournalEntries())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Journal Entries")),a(3),h(m(5,7,"labels.text.Journal Entries Transactions")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var mv=(()=>{class e{constructor(){this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.arrowBooleans=new Array(10).fill(!1)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showChartofAccounts===!0&&setTimeout(()=>{this.showPopover(this.templateChartofAccounts,this.chartofAccounts.nativeElement,"bottom",!0)}),this.configurationWizardService.showAccountsLinked===!0&&setTimeout(()=>{this.showPopover(this.templateAccountsLinked,this.accountsLinked.nativeElement,"bottom",!0)}),this.configurationWizardService.showMigrateOpeningBalances===!0&&setTimeout(()=>{this.showPopover(this.templateMigrateOpeningBalances,this.migrateOpeningBalances.nativeElement,"bottom",!0)}),this.configurationWizardService.showClosingEntries===!0&&setTimeout(()=>{this.showPopover(this.templateClosingEntries,this.closingEntries.nativeElement,"bottom",!0)}),this.configurationWizardService.showCreateJournalEntries===!0&&setTimeout(()=>{this.showPopover(this.templateCreateJournalEntries,this.createJournalEntries.nativeElement,"bottom",!0)})}nextStepChartofAccounts(){this.configurationWizardService.showChartofAccounts=!1,this.configurationWizardService.showChartofAccountsPage=!0,this.router.navigate(["/accounting/chart-of-accounts"])}previousStepChartofAccounts(){this.configurationWizardService.showChartofAccounts=!1,this.configurationWizardService.showSchedulerJobsList=!0,this.router.navigate(["/system/scheduler-jobs"])}nextStepAccountsLinked(){this.configurationWizardService.showAccountsLinked=!1,this.configurationWizardService.showAccountsLinkedPage=!0,this.router.navigate(["/accounting/financial-activity-mappings"])}previousStepAccountsLinked(){this.configurationWizardService.showAccountsLinked=!1,this.configurationWizardService.showChartofAccountsForm=!0,this.router.navigate(["/accounting/chart-of-accounts/gl-accounts/create"])}nextStepMigrateOpeningBalances(){this.router.navigate(["/accounting/migrate-opening-balances"])}previousStepMigrateOpeningBalances(){this.configurationWizardService.showMigrateOpeningBalances=!1,this.configurationWizardService.showAccountsLinkedList=!0,this.router.navigate(["accounting/financial-activity-mappings"])}nextStepClosingEntries(){this.configurationWizardService.showClosingEntries=!1,this.configurationWizardService.showClosingEntriesPage=!0,this.router.navigate(["/accounting/closing-entries"])}previousStepClosingEntries(){this.configurationWizardService.showClosingEntries=!1,this.configurationWizardService.showMigrateOpeningBalances=!0,this.router.navigate(["/accounting/migrate-opening-balances"])}nextStepCreateJournalEntries(){this.router.navigate(["/accounting/journal-entries/create"])}previousStepCreateJournalEntries(){this.configurationWizardService.showCreateJournalEntries=!1,this.configurationWizardService.showClosingEntriesList=!0,this.router.navigate(["/accounting/closing-entries"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-accounting"]],viewQuery:function(n,i){if(n&1&&(Ee(P6e,5),Ee(T6e,5),Ee(M6e,5),Ee(D6e,5),Ee(E6e,5),Ee(I6e,5),Ee(O6e,5),Ee(A6e,5),Ee(F6e,5),Ee(k6e,5)),n&2){let s;Te(s=Me())&&(i.chartofAccounts=s.first),Te(s=Me())&&(i.templateChartofAccounts=s.first),Te(s=Me())&&(i.accountsLinked=s.first),Te(s=Me())&&(i.templateAccountsLinked=s.first),Te(s=Me())&&(i.migrateOpeningBalances=s.first),Te(s=Me())&&(i.templateMigrateOpeningBalances=s.first),Te(s=Me())&&(i.closingEntries=s.first),Te(s=Me())&&(i.templateClosingEntries=s.first),Te(s=Me())&&(i.createJournalEntries=s.first),Te(s=Me())&&(i.templateCreateJournalEntries=s.first)}},decls:37,vars:10,consts:[["createJournalEntries",""],["accountsLinked",""],["migrateOpeningBalances",""],["chartofAccounts",""],["closingEntries",""],["templateChartofAccounts",""],["templateAccountsLinked",""],["templateMigrateOpeningBalances",""],["templateClosingEntries",""],["templateCreateJournalEntries",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[4,"mifosxHasPermission"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","sync","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","plus","size","sm"],["icon","search","size","sm"],["icon","link","size","sm"],["icon","hand-holding-usd","size","sm"],["icon","sitemap","size","sm"],["icon","archive","size","sm"],["icon","list","size","sm"],["icon","calendar","size","sm"],["icon","cogs","size","sm"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"mw400"]],template:function(n,i){n&1&&(l(0,"div",10)(1,"mat-card")(2,"div",11)(3,"div",12)(4,"mat-nav-list"),F(5,L6e,12,8,"mat-list-item",13),l(6,"div",null,0),F(8,H6e,12,8,"mat-list-item",13),r(),F(9,U6e,12,8,"mat-list-item",13),l(10,"div",null,1),F(12,J6e,12,8,"mat-list-item",13),r(),l(13,"div",null,2),F(15,eOe,12,8,"mat-list-item",13),r()()(),l(16,"div",12)(17,"mat-nav-list")(18,"div",null,3),F(20,oOe,12,8,"mat-list-item",13),r(),l(21,"div",null,4),F(23,sOe,12,8,"mat-list-item",13),r(),F(24,dOe,12,8,"mat-list-item",13)(25,gOe,12,8,"mat-list-item",13)(26,xOe,12,8,"mat-list-item",13),r()()()()(),F(27,bOe,16,15,"ng-template",null,5,ti)(29,yOe,16,15,"ng-template",null,6,ti)(31,SOe,16,15,"ng-template",null,7,ti)(33,wOe,16,15,"ng-template",null,8,ti)(35,POe,16,15,"ng-template",null,9,ti)),n&2&&(a(5),g("mifosxHasPermission","CREATE_JOURNALENTRY"),a(3),g("mifosxHasPermission","CREATE_JOURNALENTRY"),a(),g("mifosxHasPermission","READ_JOURNALENTRY"),a(3),g("mifosxHasPermission","READ_FINANCIALACTIVITYACCOUNT"),a(3),g("mifosxHasPermission","READ_JOURNALENTRY"),a(5),g("mifosxHasPermission","READ_GLACCOUNT"),a(3),g("mifosxHasPermission","READ_GLCLOSURE"),a(),g("mifosxHasPermission","READ_ACCOUNTINGRULE"),a(),g("mifosxHasPermission","EXECUTE_PERIODICACCRUALACCOUNTING"),a(),g("mifosxHasPermission","VIEW_PROVISIONING_ENTRIES"))},dependencies:[ue,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var TOe=()=>["../../"];function MOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function DOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function EOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function IOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accounting Rule")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.displayLabel," ")}}function AOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function kOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Affected GL Entry (Debit)")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function BOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ROe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",35),r()}}function NOe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",37),r()}}function LOe(e,o){if(e&1&&(l(0,"div",10)(1,"div",27)(2,"mat-form-field",4)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",28),Se(7,FOe,2,2,"mat-option",6,Pe),r(),E(9,kOe,7,9,"mat-error"),r(),l(10,"mat-form-field",29)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",30),E(15,BOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,ROe,2,0,"button",32),E(18,NOe,2,0,"button",33),r()()()),e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(3),h(m(5,7,"labels.inputs.Affected GL Entry (Debit)")),a(3),we(n.debitAccountData),a(2),I(n.debits.at(t).controls.glAccountId.hasError("required")?9:-1),a(3),h(m(13,9,"labels.inputs.Debit Amount")),a(3),I(n.debits.at(t).controls.amount.hasError("required")?15:-1),a(2),I(t!==0?17:-1),a(),I(t===0&&n.allowMultipleDebitEntries?18:-1)}}function VOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function qOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Affected GL Entry (Credit)")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function HOe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",35),r()}}function GOe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",37),r()}}function jOe(e,o){if(e&1&&(l(0,"div",11)(1,"div",27)(2,"mat-form-field",4)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",28),Se(7,VOe,2,2,"mat-option",6,Pe),r(),E(9,qOe,7,9,"mat-error"),r(),l(10,"mat-form-field",29)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",30),E(15,zOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,HOe,2,0,"button",32),E(18,GOe,2,0,"button",33),r()()()),e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(3),h(m(5,7,"labels.inputs.Affected GL Entry (Credit)")),a(3),we(n.creditAccountData),a(2),I(n.credits.at(t).controls.glAccountId.hasError("required")?9:-1),a(3),h(m(13,9,"labels.inputs.Credit Amount")),a(3),I(n.credits.at(t).controls.amount.hasError("required")?15:-1),a(2),I(t!==0?17:-1),a(),I(t===0&&n.allowMultipleCreditEntries?18:-1)}}function $Oe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function UOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function WOe(e,o){if(e&1&&(l(0,"button",38),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.frequentPostingsForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var dv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices,this.accountingRuleData=t.accountingRules,this.currencyData=t.currencies.selectedCurrencyOptions,this.paymentTypeData=t.paymentTypes})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFrequentPostingsForm(),this.setAffectedGLEntryForm()}createFrequentPostingsForm(){this.frequentPostingsForm=this.formBuilder.group({officeId:["",ce.required],accountingRule:["",ce.required],currencyCode:["",ce.required],debits:this.formBuilder.array([]),credits:this.formBuilder.array([]),referenceNumber:[""],transactionDate:["",ce.required],paymentTypeId:[""],accountNumber:[""],checkNumber:[""],routingCode:[""],receiptNumber:[""],bankNumber:[""],comments:[""]})}setAffectedGLEntryForm(){this.frequentPostingsForm.get("accountingRule").valueChanges.subscribe(t=>{for(;this.debits.length;)this.debits.removeAt(0);for(;this.credits.length;)this.credits.removeAt(0);this.allowMultipleDebitEntries=t.allowMultipleDebitEntries,this.allowMultipleCreditEntries=t.allowMultipleCreditEntries,this.debitAccountData=t.debitAccounts,this.creditAccountData=t.creditAccounts,this.addAffectedGLEntry(this.debits),this.addAffectedGLEntry(this.credits)})}createAffectedGLEntryForm(){return this.formBuilder.group({glAccountId:["",ce.required],amount:["",ce.required]})}get debits(){return this.frequentPostingsForm.get("debits")}get credits(){return this.frequentPostingsForm.get("credits")}addAffectedGLEntry(t){t.push(this.createAffectedGLEntryForm())}removeAffectedGLEntry(t,n){t.removeAt(n)}submit(){let t=this.frequentPostingsForm.value;t.accountingRule=t.accountingRule.id,t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.transactionDate instanceof Date&&(t.transactionDate=this.dateUtils.formatDate(t.transactionDate,this.settingsService.dateFormat)),this.accountingService.createJournalEntry(t).subscribe(n=>{this.router.navigate(["../transactions/view",n.transactionId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-frequent-postings"]],decls:90,vars:51,consts:[["transactionDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","officeId"],[3,"value"],["required","","formControlName","accountingRule"],["required","","formControlName","currencyCode"],[1,"flex-48","hide-lt-md"],["formArrayName","debits",1,"flex-fill","layout-row-wrap","responsive-column"],["formArrayName","credits",1,"flex-fill","layout-row-wrap","responsive-column"],["matInput","","formControlName","referenceNumber"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","paymentTypeId"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],[1,"flex-98"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],["required","","formControlName","glAccountId"],[1,"flex-43"],["type","number","matInput","","required","","formControlName","amount"],[1,"flex-fill"],["type","button","mat-icon-button",""],["type","button","mat-icon-button","","color","primary"],["type","button","mat-icon-button","",3,"click"],["icon","minus-circle","size","lg"],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","plus-circle","size","lg"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,MOe,2,2,"mat-option",6,Pe),r(),E(12,DOe,7,9,"mat-error"),r(),l(13,"mat-form-field",4)(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",7),Se(18,EOe,2,2,"mat-option",6,Pe),r(),E(20,IOe,7,9,"mat-error"),r(),l(21,"mat-form-field",4)(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",8),Se(26,OOe,2,2,"mat-option",6,Pe),r(),E(28,AOe,7,9,"mat-error"),r(),b(29,"span",9),Se(30,LOe,19,11,"div",10,Pe),Se(32,jOe,19,11,"div",11,Pe),l(34,"mat-form-field",4)(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",12),r(),l(39,"mat-form-field",13),R("click",function(){V(s);let u=ve(46);return q(u.open())}),l(40,"mat-label"),c(41),p(42,"translate"),r(),b(43,"input",14)(44,"mat-datepicker-toggle",15)(45,"mat-datepicker",null,0),E(47,$Oe,7,9,"mat-error"),r(),l(48,"mat-form-field",4)(49,"mat-label"),c(50),p(51,"translate"),r(),l(52,"mat-select",16),Se(53,UOe,2,2,"mat-option",6,Pe),r()(),l(55,"mat-form-field",4)(56,"mat-label"),c(57),p(58,"translate"),r(),b(59,"input",17),r(),l(60,"mat-form-field",4)(61,"mat-label"),c(62),p(63,"translate"),r(),b(64,"input",18),r(),l(65,"mat-form-field",4)(66,"mat-label"),c(67),p(68,"translate"),r(),b(69,"input",19),r(),l(70,"mat-form-field",4)(71,"mat-label"),c(72),p(73,"translate"),r(),b(74,"input",20),r(),l(75,"mat-form-field",4)(76,"mat-label"),c(77),p(78,"translate"),r(),b(79,"input",21),r(),l(80,"mat-form-field",22)(81,"mat-label"),c(82),p(83,"translate"),r(),b(84,"textarea",23),r()()(),l(85,"mat-card-actions",24)(86,"button",25),c(87),p(88,"translate"),r(),F(89,WOe,3,4,"button",26),r()()()()}if(n&2){let s=ve(46);a(2),g("formGroup",i.frequentPostingsForm),a(5),h(m(8,24,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.frequentPostingsForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,26,"labels.inputs.Accounting Rule")),a(3),we(i.accountingRuleData),a(2),I(i.frequentPostingsForm.controls.accountingRule.hasError("required")?20:-1),a(3),h(m(24,28,"labels.inputs.Currency")),a(3),we(i.currencyData),a(2),I(i.frequentPostingsForm.controls.currencyCode.hasError("required")?28:-1),a(2),we(i.debits.controls),a(2),we(i.credits.controls),a(4),h(m(37,30,"labels.inputs.Reference Number")),a(5),h(m(42,32,"labels.inputs.Transaction Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.frequentPostingsForm.controls.transactionDate.hasError("required")?47:-1),a(3),h(m(51,34,"labels.inputs.Payment Type")),a(3),we(i.paymentTypeData),a(4),h(m(58,36,"labels.inputs.Account Number")),a(5),h(m(63,38,"labels.inputs.Cheque Number")),a(5),h(m(68,40,"labels.inputs.Routing Code")),a(5),h(m(73,42,"labels.inputs.Receipt Number")),a(5),h(m(78,44,"labels.inputs.Bank Number")),a(5),h(m(83,46,"labels.inputs.Comments")),a(4),g("routerLink",oe(50,TOe)),a(),v(" ",m(88,48,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,wi,ke,Ln,he],encapsulation:2})}}return e})();var QOe=["createJournalFormRef"],YOe=["templateCreateJournalFormRef"],JOe=()=>["../../"];function KOe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function XOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZOe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.displayLabel," ")}}function eAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tAe(e,o){e&1&&(l(0,"mat-form-field",9)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",28),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.External Asset Owner")))}function iAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",37),r()}}function oAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",39),r()}}function aAe(e,o){if(e&1){let t=Y();l(0,"div",11)(1,"div",29),b(2,"mifosx-gl-account-selector",30),l(3,"mat-form-field",31)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",32),R("input",function(i){V(t);let s=w();return q(s.onAmountInput(i))}),r(),E(8,iAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,nAe,2,0,"button",34),E(11,oAe,2,0,"button",35),r()()()}if(e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(),g("inputFormControl",n.debits.at(t).controls.glAccountId)("glAccountList",n.glAccountData)("required",!0)("inputLabel","Affected GL Entry (Debit)"),a(3),h(m(6,9,"labels.inputs.Debit Amount")),a(3),I(n.debits.at(t).controls.amount.hasError("required")?8:-1),a(2),I(t!==0?10:-1),a(),I(t===0?11:-1)}}function rAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",37),r()}}function sAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",39),r()}}function cAe(e,o){if(e&1){let t=Y();l(0,"div",12)(1,"div",29),b(2,"mifosx-gl-account-selector",30),l(3,"mat-form-field",31)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",32),R("input",function(i){V(t);let s=w();return q(s.onAmountInput(i))}),r(),E(8,rAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,lAe,2,0,"button",34),E(11,sAe,2,0,"button",35),r()()()}if(e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(),g("inputFormControl",n.credits.at(t).controls.glAccountId)("glAccountList",n.glAccountData)("required",!0)("inputLabel","Affected GL Entry (Credit)"),a(3),h(m(6,9,"labels.inputs.Credit Amount")),a(3),I(n.credits.at(t).controls.amount.hasError("required")?8:-1),a(2),I(t!==0?10:-1),a(),I(t===0?11:-1)}}function pAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mAe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function dAe(e,o){if(e&1&&(l(0,"button",40),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.journalEntryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function uAe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",41),c(4),p(5,"translate"),l(6,"a",42),c(7),p(8,"translate"),r()(),l(9,"div",43)(10,"button",44),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",45),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",45),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(17),p(18,"translate"),r()()}e&2&&(a(),h(m(2,6,"labels.heading.Add Journal Entry Form")),a(3),v(" ",m(5,8,"labels.text.Red asterisk field")," "),a(3),h(m(8,10,"labels.inputs.Add Journal Entries")),a(4),v(" ",m(12,12,"labels.buttons.Close")," "),a(3),v(" ",m(15,14,"labels.buttons.Back")," "),a(3),v(" ",m(18,16,"labels.buttons.Next")," "))}var uv=(()=>{class e{onAmountInput(t){let n=t.target;if(!(n instanceof HTMLInputElement))return;let i=n.value.trim();if(i==="")return;let s=Number(i);(!Number.isFinite(s)||s<1)&&(n.value="1",n.dispatchEvent(new Event("input",{bubbles:!0})))}constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.assetExternalizationEnabled=!1,this.assetExternalizationEnabled=!1,this.route.data.subscribe(t=>{this.officeData=t.offices,this.currencyData=t.currencies.selectedCurrencyOptions,this.paymentTypeData=t.paymentTypes,this.glAccountData=t.glAccounts,this.assetExternalizationConfig=t.globalConfig})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createJournalEntryForm()}createJournalEntryForm(){this.journalEntryForm=this.formBuilder.group({officeId:["",ce.required],currencyCode:["",ce.required],debits:this.formBuilder.array([this.createAffectedGLEntryForm()]),credits:this.formBuilder.array([this.createAffectedGLEntryForm()]),referenceNumber:[""],transactionDate:["",ce.required],paymentTypeId:[""],accountNumber:[""],checkNumber:[""],routingCode:[""],receiptNumber:[""],bankNumber:[""],comments:[""]})}createAffectedGLEntryForm(){return this.formBuilder.group({glAccountId:["",ce.required],amount:["",[ce.required,ce.min(1)]]})}get debits(){return this.journalEntryForm.get("debits")}get credits(){return this.journalEntryForm.get("credits")}addAffectedGLEntry(t){t.push(this.createAffectedGLEntryForm())}removeAffectedGLEntry(t,n){t.removeAt(n)}submit(){let t=this.journalEntryForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.transactionDate&&(t.transactionDate=this.dateUtils.formatDate(t.transactionDate,this.settingsService.dateFormat)),t.externalAssetOwner||delete t.externalAssetOwner,this.accountingService.createJournalEntry(t).subscribe(n=>{this.router.navigate(["../transactions/view",n.transactionId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCreateJournalEntries===!0&&setTimeout(()=>{this.showPopover(this.templateCreateJournalFormRef,this.createJournalFormRef.nativeElement,"top",!0)}),this.assetExternalizationEnabled=this.assetExternalizationConfig.enabled,this.assetExternalizationEnabled&&this.journalEntryForm.addControl("externalAssetOwner",new it)}nextStep(){this.configurationWizardService.showCreateJournalEntries=!1,this.openNextStepDialog()}previousStep(){this.router.navigate(["/accounting"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Products",previousStepName:"Accounting",stepPercentage:74}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showCreateJournalEntries=!1,this.configurationWizardService.showCharges=!0,this.router.navigate(["/products"])):(this.configurationWizardService.showCreateJournalEntries=!1,this.router.navigate(["/home"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-journal-entry"]],viewQuery:function(n,i){if(n&1&&(Ee(QOe,5),Ee(YOe,5)),n&2){let s;Te(s=Me())&&(i.createJournalFormRef=s.first),Te(s=Me())&&(i.templateCreateJournalFormRef=s.first)}},decls:85,vars:48,consts:[["createJournalFormRef",""],["transactionDatePicker",""],["templateCreateJournalFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-48"],["required","","formControlName","officeId"],[3,"value"],[1,"flex-24"],["required","","formControlName","currencyCode"],["formArrayName","debits",1,"flex-fill","layout-row-wrap","responsive-column"],["formArrayName","credits",1,"flex-fill","layout-row-wrap","responsive-column"],["matInput","","formControlName","referenceNumber"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","paymentTypeId"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],[1,"flex-98"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","externalAssetOwner"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"flex-43"],["type","number","matInput","","required","","formControlName","amount","min","1",3,"input"],[1,"flex-fill"],["type","button","mat-icon-button",""],["type","button","mat-icon-button","","color","primary"],["type","button","mat-icon-button","",3,"click"],["icon","minus-circle","size","lg"],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","plus-circle","size","lg"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895310/Add+Journal+Entries","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"mat-form-field",6)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",7),Se(11,KOe,2,2,"mat-option",8,Pe),r(),E(13,XOe,7,9,"mat-error"),r(),l(14,"mat-form-field",9)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",10),Se(19,ZOe,2,2,"mat-option",8,Pe),r(),E(21,eAe,7,9,"mat-error"),r(),E(22,tAe,5,3,"mat-form-field",9),Se(23,aAe,12,11,"div",11,Pe),Se(25,cAe,12,11,"div",12,Pe),l(27,"mat-form-field",6)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",13),r(),l(32,"mat-form-field",14),R("click",function(){V(s);let u=ve(39);return q(u.open())}),l(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"input",15)(37,"mat-datepicker-toggle",16)(38,"mat-datepicker",null,1),E(40,pAe,7,9,"mat-error"),r(),l(41,"mat-form-field",6)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",17),Se(46,mAe,2,2,"mat-option",8,Pe),r()(),l(48,"mat-form-field",6)(49,"mat-label"),c(50),p(51,"translate"),r(),b(52,"input",18),r(),l(53,"mat-form-field",6)(54,"mat-label"),c(55),p(56,"translate"),r(),b(57,"input",19),r(),l(58,"mat-form-field",6)(59,"mat-label"),c(60),p(61,"translate"),r(),b(62,"input",20),r(),l(63,"mat-form-field",6)(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",21),r(),l(68,"mat-form-field",6)(69,"mat-label"),c(70),p(71,"translate"),r(),b(72,"input",22),r(),l(73,"mat-form-field",23)(74,"mat-label"),c(75),p(76,"translate"),r(),b(77,"textarea",24),r()()(),l(78,"mat-card-actions",25)(79,"button",26),c(80),p(81,"translate"),r(),F(82,dAe,3,4,"button",27),r()()()(),F(83,uAe,19,18,"ng-template",null,2,ti)}if(n&2){let s=ve(39);a(2),g("formGroup",i.journalEntryForm),a(6),h(m(9,23,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.journalEntryForm.controls.officeId.hasError("required")?13:-1),a(3),h(m(17,25,"labels.inputs.Currency")),a(3),we(i.currencyData),a(2),I(i.journalEntryForm.controls.currencyCode.hasError("required")?21:-1),a(),I(i.assetExternalizationEnabled?22:-1),a(),we(i.debits.controls),a(2),we(i.credits.controls),a(4),h(m(30,27,"labels.inputs.Reference Number")),a(5),h(m(35,29,"labels.inputs.Transaction Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.journalEntryForm.controls.transactionDate.hasError("required")?40:-1),a(3),h(m(44,31,"labels.inputs.Payment Type")),a(3),we(i.paymentTypeData),a(4),h(m(51,33,"labels.inputs.Account Number")),a(5),h(m(56,35,"labels.inputs.Cheque Number")),a(5),h(m(61,37,"labels.inputs.Routing Code")),a(5),h(m(66,39,"labels.inputs.Receipt Number")),a(5),h(m(71,41,"labels.inputs.Bank Number")),a(5),h(m(76,43,"labels.inputs.Comments")),a(4),g("routerLink",oe(47,JOe)),a(),v(" ",m(81,45,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,ta,wi,ke,Ln,he],encapsulation:2})}}return e})();var fv=class{constructor(o){this.accountingService=o,this.journalEntriesSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getJournalEntries(o,t="",n="",i=0,s=10){this.journalEntriesSubject.next([]),t=t==="debit"||t==="credit"?"amount":t,this.accountingService.getJournalEntries(o,t,n,i*s,s).subscribe(d=>{this.recordsSubject.next(d.totalFilteredRecords),this.journalEntriesSubject.next(d.pageItems)})}connect(o){return this.journalEntriesSubject.asObservable()}disconnect(o){this.journalEntriesSubject.complete(),this.recordsSubject.complete()}};var fAe=()=>[10,25,50,100],hAe=(e,o)=>({id:e,name:o}),gAe=e=>["transactions/view",e];function _Ae(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",t.option," ")}}function CAe(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,hAe,t.id,t.name)),a(),v(" ",t.name," ")}}function vAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entry ID")))}function xAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function bAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function yAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function SAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction ID")))}function wAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}function PAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction Date")))}function TAe(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.transactionDate))}}function MAe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function DAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function EAe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function IAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUserName)}}function OAe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Submitted on date")))}function AAe(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.submittedOnDate))}}function FAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Code")))}function kAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}function BAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Name")))}function RAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function NAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency")))}function LAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currency.code)}}function VAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit")))}function qAe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"formatNumber"),r()),e&2){let t=w().$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function zAe(e,o){if(e&1&&(l(0,"td",39),E(1,qAe,3,3,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="DEBIT"?1:-1)}}function HAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit")))}function GAe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"formatNumber"),r()),e&2){let t=w().$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function jAe(e,o){if(e&1&&(l(0,"td",39),E(1,GAe,3,3,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function $Ae(e,o){e&1&&b(0,"tr",41)}function UAe(e,o){if(e&1&&b(0,"tr",42),e&2){let t=o.$implicit;g("routerLink",Nt(1,gAe,t.transactionId))}}var hv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.officeName=new it,this.glAccount=new it,this.entryTypeFilter=new it(""),this.entryTypeFilterData=[{option:"All",value:""},{option:"Manual Entries",value:!0},{option:"System Entries",value:!1}],this.transactionDateFrom=new it(new Date(new Date().setMonth(new Date().getMonth()-1))),this.transactionDateTo=new it(new Date),this.transactionId=new it,this.submittedOnDateFrom=new it,this.submittedOnDateTo=new it,this.displayedColumns=["id","officeName","transactionId","transactionDate","glAccountType","createdByUserName","submittedOnDate","glAccountCode","glAccountName","currency","debit","credit"],this.filterJournalEntriesBy=[{type:"officeId",value:""},{type:"glAccountId",value:""},{type:"manualEntriesOnly",value:""},{type:"transactionId",value:""},{type:"fromDate",value:this.dateUtils.formatDate(new Date(new Date().setMonth(new Date().getMonth()-1)),this.settingsService.dateFormat)},{type:"toDate",value:this.dateUtils.formatDate(new Date,this.settingsService.dateFormat)},{type:"submittedOnDateFrom",value:""},{type:"submittedOnDateTo",value:""},{type:"dateFormat",value:this.settingsService.dateFormat},{type:"locale",value:this.settingsService.language.code}],this.route.data.subscribe(t=>{this.officeData=t.offices,this.glAccountData=t.glAccounts})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setFilteredOffices(),this.setFilteredGlAccounts(),this.getJournalEntries()}ngAfterViewInit(){this.officeName.valueChanges.pipe(Mn(t=>t.id?t.id:""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeId")})).subscribe(),this.glAccount.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"glAccountId")})).subscribe(),this.transactionId.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"transactionId")})).subscribe(),this.transactionDateFrom.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"fromDate")})).subscribe(),this.transactionDateTo.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"toDate")})).subscribe(),this.submittedOnDateFrom.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"submittedOnDateFrom")})).subscribe(),this.submittedOnDateTo.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"submittedOnDateTo")})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadJournalEntriesPage())).subscribe()}loadJournalEntriesPage(){this.sort.direction||delete this.sort.active,this.dataSource.getJournalEntries(this.filterJournalEntriesBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}applyFilter(t,n){this.paginator.pageIndex=0;let i=this.filterJournalEntriesBy.findIndex(s=>s.type===n);this.filterJournalEntriesBy[i].value=t,this.loadJournalEntriesPage()}displayOfficeName(t){return t?t.name:void 0}setFilteredOffices(){this.filteredOfficeData=this.officeName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredGlAccounts(){this.filteredGLAccountData=this.glAccount.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name+" ("+t.glCode+")"),Mn(t=>t?this.filterGLAccountAutocompleteData(t):this.glAccountData))}filterOfficeAutocompleteData(t){return this.officeData.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))}filterGLAccountAutocompleteData(t){return this.glAccountData.filter(n=>(n.name+" ("+n.glCode+")").toLowerCase().includes(t.toLowerCase()))}getJournalEntries(){this.dataSource=new fv(this.accountingService),this.dataSource.getJournalEntries(this.filterJournalEntriesBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-search-journal-entry"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:98,vars:59,consts:[["transactionDateFromPicker",""],["transactionDateToPicker",""],["submittedOnDateFromPicker",""],["submittedOnDateToPicker",""],["officeNameAutocomplete","matAutocomplete"],[1,"container","layout-row-wrap","gap-2px","responsive-column","filter-container"],[1,"flex-31"],["matInput","",3,"formControl","matAutocomplete"],[1,"flex-31",3,"inputFormControl","glAccountList","required","inputLabel"],[3,"selectionChange","formControl"],[3,"value"],[1,"flex-31",3,"click"],["matInput","",3,"min","max","matDatepicker","formControl"],["matSuffix","",3,"for"],["matInput","",3,"formControl"],["matInput","",3,"max","matDatepicker","formControl"],["matInput","",3,"min","matDatepicker","formControl"],["autoActiveFirstOption","",3,"displayWith"],[1,"mat-elevation-z8","container","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","transactionId"],["matColumnDef","transactionDate"],["matColumnDef","glAccountType"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","createdByUserName"],["matColumnDef","submittedOnDate"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["matColumnDef","currency"],["matColumnDef","debit"],["matColumnDef","credit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",5)(1,"mat-form-field",6)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",7),r(),b(6,"mifosx-gl-account-selector",8),l(7,"mat-form-field",6)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",9),R("selectionChange",function(u){return V(s),q(i.applyFilter(u.value,"manualEntriesOnly"))}),Se(12,_Ae,2,2,"mat-option",10,Pe),r()(),l(14,"mat-form-field",11),R("click",function(){V(s);let u=ve(21);return q(u.open())}),l(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",12)(19,"mat-datepicker-toggle",13)(20,"mat-datepicker",null,0),r(),l(22,"mat-form-field",11),R("click",function(){V(s);let u=ve(29);return q(u.open())}),l(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"input",12)(27,"mat-datepicker-toggle",13)(28,"mat-datepicker",null,1),r(),l(30,"mat-form-field",6)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",14),r(),l(35,"mat-form-field",11),R("click",function(){V(s);let u=ve(42);return q(u.open())}),l(36,"mat-label"),c(37),p(38,"translate"),r(),b(39,"input",15)(40,"mat-datepicker-toggle",13)(41,"mat-datepicker",null,2),r(),l(43,"mat-form-field",11),R("click",function(){V(s);let u=ve(50);return q(u.open())}),l(44,"mat-label"),c(45),p(46,"translate"),r(),b(47,"input",16)(48,"mat-datepicker-toggle",13)(49,"mat-datepicker",null,3),r()(),l(51,"mat-autocomplete",17,4),Se(53,CAe,2,5,"mat-option",10,Pe),p(55,"async"),r(),l(56,"div",18)(57,"table",19),X(58,20),F(59,vAe,3,3,"th",21)(60,xAe,2,1,"td",22),Z(),X(61,23),F(62,bAe,3,3,"th",21)(63,yAe,2,1,"td",22),Z(),X(64,24),F(65,SAe,3,3,"th",21)(66,wAe,2,1,"td",22),Z(),X(67,25),F(68,PAe,3,3,"th",21)(69,TAe,3,3,"td",22),Z(),X(70,26),F(71,MAe,3,3,"th",27)(72,DAe,2,1,"td",22),Z(),X(73,28),F(74,EAe,3,3,"th",27)(75,IAe,2,1,"td",22),Z(),X(76,29),F(77,OAe,3,3,"th",27)(78,AAe,3,3,"td",22),Z(),X(79,30),F(80,FAe,3,3,"th",21)(81,kAe,2,1,"td",22),Z(),X(82,31),F(83,BAe,3,3,"th",21)(84,RAe,2,1,"td",22),Z(),X(85,32),F(86,NAe,3,3,"th",21)(87,LAe,2,1,"td",22),Z(),X(88,33),F(89,VAe,3,3,"th",21)(90,zAe,2,1,"td",22),Z(),X(91,34),F(92,HAe,3,3,"th",21)(93,jAe,2,1,"td",22),Z(),F(94,$Ae,1,0,"tr",35)(95,UAe,1,3,"tr",36),r(),b(96,"mat-paginator",37),p(97,"async"),r()}if(n&2){let s=ve(21),d=ve(29),u=ve(42),f=ve(50),_=ve(52);a(3),h(m(4,40,"labels.inputs.Office Name")),a(2),g("formControl",i.officeName)("matAutocomplete",_),a(),g("inputFormControl",i.glAccount)("glAccountList",i.glAccountData)("required",!0)("inputLabel","GL Account Name or Code"),a(3),h(m(10,42,"labels.inputs.Filter")),a(2),g("formControl",i.entryTypeFilter),a(),we(i.entryTypeFilterData),a(4),h(m(17,44,"labels.inputs.Transaction Date From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s)("formControl",i.transactionDateFrom),a(),g("for",s),a(5),h(m(25,46,"labels.inputs.Transaction Date To")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d)("formControl",i.transactionDateTo),a(),g("for",d),a(5),h(m(33,48,"labels.inputs.Transaction ID")),a(2),g("formControl",i.transactionId),a(3),h(m(38,50,"labels.inputs.Submitted on Date From")),a(2),g("max",i.submittedOnDateTo.value)("matDatepicker",u)("formControl",i.submittedOnDateFrom),a(),g("for",u),a(5),v("",m(46,52,"labels.inputs.Submitted on Date To")," "),a(2),g("min",i.submittedOnDateFrom.value)("matDatepicker",f)("formControl",i.submittedOnDateTo),a(),g("for",f),a(3),g("displayWith",i.displayOfficeName),a(2),we(m(55,54,i.filteredOfficeData)),a(4),g("dataSource",i.dataSource),a(37),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("length",m(97,56,i.dataSource==null?null:i.dataSource.records$))("pageSize",50)("pageSizeOptions",oe(58,fAe))}},dependencies:[ue,fe,st,$e,_n,Oe,Fe,Be,ai,ze,gt,ft,mi,di,pi,er,ta,Za,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,Pi,he,Yr,In],styles:["table[_ngcontent-%COMP%]{width:100%;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.filter-container[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.table-container[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}"]})}}return e})();var WAe=["buttonDefineMapping"],QAe=["templateButtonDefineMapping"],YAe=["activitiesTable"],JAe=["templateActivitiesTable"],KAe=()=>[10,25],XAe=()=>["create"],ZAe=e=>["view",e];function e7e(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,XAe)),a(2),v(" ",m(3,2,"labels.buttons.Define New Mapping")," "))}function t7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Financial Activity")))}function i7e(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),le(" (",t.financialActivityData.id,") ",m(2,2,"labels.accounting.financialActivity."+t.financialActivityData.name)," ")}}function n7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Type")))}function o7e(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,"labels.inputs.accounting."+t.financialActivityData.mappedGLAccountType)," ")}}function a7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Code")))}function r7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.glCode)}}function l7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Name")))}function s7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.name)}}function c7e(e,o){e&1&&b(0,"tr",21)}function p7e(e,o){if(e&1&&b(0,"tr",22),e&2){let t=o.$implicit;g("routerLink",Nt(1,ZAe,t.id))}}function m7e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",23),c(4),p(5,"translate"),r(),l(6,"div",24)(7,"button",25),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(25);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Define New Mapping")),a(3),h(m(5,7,"labels.text.To define new mapping.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function d7e(e,o){if(e&1){let t=Y();l(0,"h4",23),c(1),p(2,"translate"),l(3,"a",27),c(4),p(5,"translate"),r()(),l(6,"div",24)(7,"button",25),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(23);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.Account Linked Financial")," "),a(3),h(m(5,7,"labels.heading.Accounts linked to Financial Activities")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var gv=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["financialActivity","glAccountType","glAccountCode","glAccountName"],this.route.data.subscribe(t=>{this.financialActivityAccountData=t.financialActivityAccounts})}ngOnInit(){this.setFinancialActivityAccounts()}setFinancialActivityAccounts(){this.dataSource=new Wt(this.financialActivityAccountData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"financialActivity":return t.financialActivityData.name;case"glAccountName":return t.glAccountData.name;case"glAccountCode":return t.glAccountData.glCode;default:return t[n]}},this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showAccountsLinkedPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonDefineMapping,this.buttonDefineMapping.nativeElement,"bottom",!0)}),this.configurationWizardService.showAccountsLinkedList===!0&&setTimeout(()=>{this.showPopover(this.templateActivitiesTable,this.activitiesTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showAccountsLinkedPage=!1,this.configurationWizardService.showAccountsLinkedList=!1,this.configurationWizardService.showMigrateOpeningBalances=!0,this.router.navigate(["/accounting"])}previousStep(){this.configurationWizardService.showAccountsLinkedPage=!1,this.configurationWizardService.showAccountsLinkedList=!1,this.configurationWizardService.showAccountsLinked=!0,this.router.navigate(["/accounting"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-financial-activity-mappings"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(WAe,5),Ee(QAe,5),Ee(YAe,5),Ee(JAe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonDefineMapping=s.first),Te(s=Me())&&(i.templateButtonDefineMapping=s.first),Te(s=Me())&&(i.activitiesTable=s.first),Te(s=Me())&&(i.templateActivitiesTable=s.first)}},decls:26,vars:6,consts:[["buttonDefineMapping",""],["activitiesTable",""],["templateButtonDefineMapping",""],["templateActivitiesTable",""],[1,"layout-row","align-end","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"mat-elevation-z8","container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","financialActivity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glAccountType"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/106430472/Accounts+linked+to+Financial+Activities","target","_blank"]],template:function(n,i){n&1&&(l(0,"div",4)(1,"div",null,0),F(3,e7e,4,5,"button",5),r()(),l(4,"div",6,1)(6,"table",7),X(7,8),F(8,t7e,3,3,"th",9)(9,i7e,3,4,"td",10),Z(),X(10,11),F(11,n7e,3,3,"th",9)(12,o7e,3,3,"td",10),Z(),X(13,12),F(14,a7e,3,3,"th",9)(15,r7e,2,1,"td",10),Z(),X(16,13),F(17,l7e,3,3,"th",9)(18,s7e,2,1,"td",10),Z(),F(19,c7e,1,0,"tr",14)(20,p7e,1,3,"tr",15),r(),b(21,"mat-paginator",16),r(),F(22,m7e,16,15,"ng-template",null,2,ti)(24,d7e,16,15,"ng-template",null,3,ti)),n&2&&(a(3),g("mifosxHasPermission","CREATE_FINANCIALACTIVITYACCOUNT"),a(3),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(5,KAe)))},dependencies:[ue,fe,Oe,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var u7e=()=>["../"];function f7e(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),le(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function h7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Financial Activity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function g7e(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.financialActivityMappingForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var _v=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.glAccountData=[],this.route.data.subscribe(t=>{this.glAccountOptions=t.financialActivityAccountsTemplate.glAccountOptions,this.financialActivityData=t.financialActivityAccountsTemplate.financialActivityOptions})}ngOnInit(){this.createFinancialActivityMappingForm(),this.setGlAccountData()}createFinancialActivityMappingForm(){this.financialActivityMappingForm=this.formBuilder.group({financialActivityId:["",ce.required],glAccountId:["",ce.required]})}setGlAccountData(){this.financialActivityMappingForm.get("financialActivityId").valueChanges.subscribe(t=>{switch(t){case 100:case 101:case 102:case 103:this.glAccountData=this.glAccountOptions.assetAccountOptions;break;case 200:case 201:this.glAccountData=this.glAccountOptions.liabilityAccountOptions;break;case 300:this.glAccountData=this.glAccountOptions.equityAccountOptions;break}})}submit(){this.accountingService.createFinancialActivityAccount(this.financialActivityMappingForm.value).subscribe(t=>{this.router.navigate(["../view",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-financial-activity-mapping"]],decls:19,vars:15,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","financialActivityId"],[3,"value"],[3,"inputFormControl","glAccountList","required","inputLabel"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,f7e,3,5,"mat-option",4,Pe),r(),E(12,h7e,7,9,"mat-error"),r(),b(13,"mifosx-gl-account-selector",5),r()(),l(14,"mat-card-actions",6)(15,"button",7),c(16),p(17,"translate"),r(),F(18,g7e,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.financialActivityMappingForm),a(5),h(m(8,10,"labels.inputs.Financial Activity")),a(3),we(i.financialActivityData),a(2),I(i.financialActivityMappingForm.controls.financialActivityId.hasError("required")?12:-1),a(),g("inputFormControl",i.financialActivityMappingForm.controls.glAccountId)("glAccountList",i.glAccountData)("required",!0)("inputLabel","Account"),a(2),g("routerLink",oe(14,u7e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,ta,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var _7e=()=>["../.."],C7e=()=>["edit"];function v7e(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,C7e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function x7e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w();return q(i.deleteFinancialActivityAccount())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}var Cv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(C0),this.route.data.subscribe(t=>{this.financialActivityAccount=t.financialActivityAccount,this.financialActivityAccountId=t.financialActivityAccount.id})}deleteFinancialActivityAccount(){this.dialog.open(vi,{data:{deleteContext:`financial activity mapping ${this.financialActivityAccountId}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteFinancialActivityAccount(this.financialActivityAccountId).subscribe(()=>{this.router.navigate(["/accounting/financial-activity-mappings"])})})}goBack(){this.location.back()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-financial-activity-mapping"]],decls:24,vars:22,consts:[[1,"layout-row","align-end","gap-2percent","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],[1,"flex-100",3,"glAccount","accountTitle"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,v7e,4,5,"button",1)(2,x7e,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),p(12,"translate"),r(),l(13,"div",5),c(14),p(15,"translate"),r(),l(16,"div",6),c(17),p(18,"translate"),r(),b(19,"mifosx-gl-account-display",7),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_FINANCIALACTIVITYACCOUNT"),a(),g("mifosxHasPermission","DELETE_FINANCIALACTIVITYACCOUNT"),a(6),v(" ",m(9,11,"labels.inputs.Financial Activity")," "),a(3),le(" (",i.financialActivityAccount==null?null:i.financialActivityAccount.financialActivityData.id,") ",m(12,13,"labels.accounting.financialActivity."+(i.financialActivityAccount==null?null:i.financialActivityAccount.financialActivityData.name))," "),a(3),v(" ",m(15,15,"labels.inputs.Account Type")," "),a(3),v(" ",m(18,17,"labels.inputs.accounting."+(i.financialActivityAccount==null?null:i.financialActivityAccount.financialActivityData.mappedGLAccountType))," "),a(2),g("glAccount",i.financialActivityAccount==null?null:i.financialActivityAccount.glAccountData)("accountTitle","Account Name"),a(2),g("routerLink",oe(21,_7e)),a(),v(" ",m(23,19,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,Ke,ke,as,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var b7e=()=>["../"];function y7e(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),le(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function S7e(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.financialActivityMappingForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var vv=(()=>{class e{constructor(){this.formBuider=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.glAccountData=[],this.route.data.subscribe(t=>{this.financialActivityAccountId=t.financialActivityAccountAndTemplate.id,this.financialActivityId=t.financialActivityAccountAndTemplate.financialActivityData.id,this.glAccountId=t.financialActivityAccountAndTemplate.glAccountData.id,this.glAccountOptions=t.financialActivityAccountAndTemplate.glAccountOptions,this.financialActivityData=t.financialActivityAccountAndTemplate.financialActivityOptions})}ngOnInit(){this.createFinancialActivityMappingForm(),this.setGLAccountData(),this.financialActivityMappingForm.get("financialActivityId").setValue(this.financialActivityId),this.financialActivityMappingForm.get("glAccountId").setValue(this.glAccountId)}createFinancialActivityMappingForm(){this.financialActivityMappingForm=this.formBuider.group({financialActivityId:["",ce.required],glAccountId:["",ce.required]})}setGLAccountData(){this.financialActivityMappingForm.get("financialActivityId").valueChanges.subscribe(t=>{switch(t){case 100:case 101:case 102:case 103:this.glAccountData=this.glAccountOptions.assetAccountOptions;break;case 200:case 201:this.glAccountData=this.glAccountOptions.liabilityAccountOptions;break;case 300:this.glAccountData=this.glAccountOptions.equityAccountOptions;break}})}submit(){this.accountingService.updateFinancialActivityAccount(this.financialActivityAccountId,this.financialActivityMappingForm.value).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-financial-activity-mapping"]],decls:18,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","financialActivityId"],[3,"value"],[3,"inputFormControl","glAccountList","required","inputLabel"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,y7e,3,5,"mat-option",4,Pe),r()(),b(12,"mifosx-gl-account-selector",5),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),F(17,S7e,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.financialActivityMappingForm),a(5),h(m(8,9,"labels.inputs.Financial Activity")),a(3),we(i.financialActivityData),a(2),g("inputFormControl",i.financialActivityMappingForm.controls.glAccountId)("glAccountList",i.glAccountData)("required",!0)("inputLabel","Account"),a(2),g("routerLink",oe(13,b7e)),a(),v(" ",m(16,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,gt,ft,xe,Ke,ta,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var CN=e=>{let o=e.controls.debit.value,t=e.controls.credit.value;return o&&t&&o>0&&t>0?{error:!0}:null};var w7e=["searchFormRef"],P7e=["templateSearchFormRef"],T7e=()=>["../"];function M7e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function D7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function E7e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.displayLabel," ")}}function I7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function O7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Opening Balances Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function A7e(e,o){if(e&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),c(3),r(),l(4,"div",28),c(5),r(),l(6,"div",29),c(7),r(),l(8,"div",30)(9,"mat-form-field")(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",31),r()(),l(14,"div",30)(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",32),r()()()()),e&2){let t=o.$index,n=w(2);a(),g("formGroupName",t),a(2),v(" ",n.openingBalancesData.glAccounts[t].glAccountType.value!==(n.openingBalancesData.glAccounts[t-1]==null?null:n.openingBalancesData.glAccounts[t-1].glAccountType.value)?n.glAccountTypeLabel(n.openingBalancesData.glAccounts[t].glAccountType.value):""," "),a(2),v(" ",n.openingBalancesData.glAccounts[t].glAccountCode," "),a(2),v(" ",n.openingBalancesData.glAccounts[t].glAccountName," "),a(4),h(m(12,6,"labels.inputs.Debit")),a(6),h(m(18,8,"labels.inputs.Credit"))}}function F7e(e,o){if(e&1){let t=Y();l(0,"div",12),b(1,"mifosx-gl-account-display",14),l(2,"mat-form-field",15)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",16),Se(7,E7e,2,2,"mat-option",9,Pe),r(),E(9,I7e,7,9,"mat-error"),r(),l(10,"mat-form-field",17),R("click",function(){V(t);let i=ve(17);return q(i.open())}),l(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",18)(15,"mat-datepicker-toggle",19)(16,"mat-datepicker",null,2),E(18,O7e,7,9,"mat-error"),r(),l(19,"div",20)(20,"div",21),c(21),p(22,"translate"),r(),l(23,"div",22),c(24),p(25,"translate"),r(),l(26,"div",22),c(27),p(28,"translate"),p(29,"translate"),r(),l(30,"div",23),c(31),p(32,"translate"),p(33,"currency"),r(),l(34,"div",24),c(35),p(36,"translate"),p(37,"currency"),r()(),Se(38,A7e,20,10,"div",25,Pe),r()}if(e&2){let t=ve(17),n=w();a(),g("accountTitle","Opening Balances Contra Account")("glAccount",n.openingBalancesData.contraAccount)("withTitle","50%"),a(3),h(m(5,19,"labels.inputs.Currency")),a(3),we(n.currencyData),a(2),I(n.openingBalancesForm.controls.currencyCode.hasError("required")?9:-1),a(3),h(m(13,21,"labels.inputs.Opening Balances Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.openingBalancesForm.controls.transactionDate.hasError("required")?18:-1),a(3),v(" ",m(22,23,"labels.inputs.Type")," "),a(3),v(" ",m(25,25,"labels.inputs.GL Code")," "),a(3),le(" ",m(28,27,"labels.inputs.GL Name")," ",m(29,29,"labels.inputs.Account")," "),a(4),le(" ",m(32,31,"labels.inputs.Total Debit"),": ",$t(33,33,n.debitsSum,n.currencyCode,"symbol-narrow","1.2-2")," "),a(4),le(" ",m(36,38,"labels.inputs.Total Credit"),": ",$t(37,40,n.creditsSum,n.currencyCode,"symbol-narrow","1.2-2")," "),a(3),we(n.glAccountEntries.controls)}}function k7e(e,o){if(e&1&&(l(0,"button",35),c(1),p(2,"translate"),r()),e&2){let t=w(2);g("disabled",!t.openingBalancesForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function B7e(e,o){e&1&&(l(0,"mat-card-actions",13)(1,"button",33),c(2),p(3,"translate"),r(),F(4,k7e,3,4,"button",34),r()),e&2&&(a(),g("routerLink",oe(5,T7e)),a(),v(" ",m(3,3,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","DEFINEOPENINGBALANCE_JOURNALENTRY"))}function R7e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",36),c(4),p(5,"translate"),l(6,"a",37),c(7),p(8,"translate"),r()(),l(9,"div",38)(10,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",11),R("click",function(){let i=V(t).popover,s=w();return i.close(),i.close(),q(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",11),R("click",function(){let i=V(t).popover,s=w();return i.close(),i.close(),q(s.nextStep())}),c(17),p(18,"translate"),r()()}e&2&&(a(),h(m(2,6,"labels.heading.Migrate opening balances (Office-wise)")),a(3),v(" ",m(5,8,"labels.text.Migrate Opening Balances")," "),a(3),h(m(8,10,"labels.inputs.Migrate opening balances (Office-wise)")),a(4),v(" ",m(12,12,"labels.buttons.Close")," "),a(3),v(" ",m(15,14,"labels.buttons.Back")," "),a(3),v(" ",m(18,16,"labels.buttons.Next")," "))}var xv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.debitsSum=0,this.creditsSum=0,this.route.data.subscribe(t=>{this.officeData=t.offices,this.currencyData=t.currencies.selectedCurrencyOptions})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createOpeningBalancesForm()}createOpeningBalancesForm(){this.openingBalancesForm=this.formBuilder.group({officeId:["",ce.required],currencyCode:["",ce.required],transactionDate:["",ce.required],glAccountEntries:this.formBuilder.array([])}),this.openingBalancesForm.controls.currencyCode.valueChanges.subscribe(t=>{this.currencyCode=t})}createGLAccountEntryForm(t){return this.formBuilder.group({glAccountId:[t.glAccountId],debit:[null],credit:[null]},{validator:CN})}get glAccountEntries(){return this.openingBalancesForm.get("glAccountEntries")}retrieveOpeningBalances(){this.accountingService.retrieveOpeningBalances(this.openingBalancesForm.value.officeId).subscribe(t=>{let n=this.openingBalancesForm.get("glAccountEntries");t.glAccounts=t.assetAccountOpeningBalances.concat(t.liabityAccountOpeningBalances,t.equityAccountOpeningBalances,t.incomeAccountOpeningBalances,t.expenseAccountOpeningBalances),t.glAccounts.forEach(i=>{n.push(this.createGLAccountEntryForm(i))}),this.openingBalancesData=t,n.valueChanges.subscribe(()=>{this.debitsSum=0,this.creditsSum=0,n.controls.forEach(i=>{this.debitsSum+=i.value.debit,this.creditsSum+=i.value.credit})})})}submit(){if(this.amountsAreOK()){let t=this.openingBalancesForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.transactionDate instanceof Date&&(t.transactionDate=this.dateUtils.formatDate(t.transactionDate,this.settingsService.dateFormat)),t.debits=[],t.credits=[],this.openingBalancesForm.value.glAccountEntries.forEach(n=>{n.debit&&t.debits.push({glAccountId:n.glAccountId,amount:n.debit}),n.credit&&t.credits.push({glAccountId:n.glAccountId,amount:n.credit})}),delete t.glAccountEntries,this.accountingService.defineOpeningBalances(t).subscribe(n=>{this.router.navigate(["/accounting/journal-entries/transactions/view",n.transactionId])})}}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showMigrateOpeningBalances===!0&&setTimeout(()=>{this.showPopover(this.templateSearchFormRef,this.searchFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showMigrateOpeningBalances=!1,this.configurationWizardService.showClosingEntries=!0,this.router.navigate(["/accounting"])}previousStep(){this.router.navigate(["/accounting"])}amountsAreOK(){let t=0,n=0;return this.openingBalancesForm.value.glAccountEntries.forEach(i=>{i.debit&&(t=t+i.debit),i.credit&&(n=n+i.credit)}),t>0&&t===n}glAccountTypeLabel(t){return this.translateService.instant("labels.inputs.accounting."+t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-migrate-opening-balances"]],viewQuery:function(n,i){if(n&1&&(Ee(w7e,5),Ee(P7e,5)),n&2){let s;Te(s=Me())&&(i.searchFormRef=s.first),Te(s=Me())&&(i.templateSearchFormRef=s.first)}},decls:23,vars:10,consts:[["searchFormRef",""],["templateSearchFormRef",""],["openingBalancesDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-2px"],[1,"m-r-30","flex-83"],[1,"flex-96"],["required","","formControlName","officeId"],[3,"value"],[1,"flex-15"],["mat-raised-button","","color","primary",3,"click"],[1,"layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","gap-5px","align-center","responsive-column"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"],[1,"flex-48"],["required","","formControlName","currencyCode"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row-wrap","gap-2percent","responsive-column","flex-100","content"],[1,"header","flex-8"],[1,"header","flex-18"],[1,"header","r-amount","flex-18"],[1,"header","r-amount","flex-23"],["formArrayName","glAccountEntries",1,"flex-fill","layout-row-wrap","responsive-column","content"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],[1,"flex-8"],[1,"flex-13"],[1,"flex-29"],[1,"flex-20"],["matInput","","type","number","formControlName","debit"],["matInput","","type","number","formControlName","credit"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/90243328/Migrate+opening+balances+Office-wise","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",8),Se(12,M7e,2,2,"mat-option",9,Pe),r(),E(14,D7e,7,9,"mat-error"),r()(),l(15,"div",10)(16,"button",11),R("click",function(){return V(s),q(i.retrieveOpeningBalances())}),c(17),p(18,"translate"),r()()(),E(19,F7e,40,45,"div",12),r(),E(20,B7e,5,6,"mat-card-actions",13),r()()(),F(21,R7e,19,18,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.openingBalancesForm),a(7),h(m(10,6,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.openingBalancesForm.controls.officeId.hasError("required")?14:-1),a(3),v(" ",m(18,8,"labels.buttons.Retrieve")," "),a(2),I(i.openingBalancesData?19:-1),a(),I(i.openingBalancesData?20:-1))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,as,Sg,he],styles:[".content[_ngcontent-%COMP%]{padding-top:20px}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{word-wrap:break-word}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var _c=class{constructor(o,t="",n="",i="",s=!1,d=""){this.name=o,this.glCode=t,this.type=n,this.usage=i,this.manualEntriesAllowed=s,this.description=d,this.children=[]}};var vN=(()=>{class e{constructor(){this.translateService=T(yi),this.treeDataChange=new Ra([])}get treeData(){return this.treeDataChange.value}initialize(t){let n=this.buildGLAccountTree(t);this.treeDataChange.next(n)}buildGLAccountTree(t){let n=[];if(n.push(new _c("ACCOUNTS")),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.ASSET"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.EQUITY"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.EXPENSE"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.INCOME"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.LIABILITY"))),t.length===0)return n;t[0].parentId||(t[0].parentId=0),t.sort((s,d)=>(s.parentId||(s.parentId=0),s.parentId-d.parentId));let i=[];for(let s of t)i[s.id]=new _c(s.name,s.glCode,s.type.value,s.usage.value,s.manualEntriesAllowed,s.description);for(let s of t)s.parentId===0?s.type.value==="ASSET"?n[0].children[0].children.push(i[s.id]):s.type.value==="EQUITY"?n[0].children[1].children.push(i[s.id]):s.type.value==="EXPENSE"?n[0].children[2].children.push(i[s.id]):s.type.value==="INCOME"?n[0].children[3].children.push(i[s.id]):s.type.value==="LIABILITY"&&n[0].children[4].children.push(i[s.id]):i[s.parentId]&&i[s.parentId].children.push(i[s.id]);return n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var bv=(()=>{class e{constructor(){}toggleExpandCollapse(t,n){return n?t.collapseAll():t.expandAll(),!n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var N7e=["buttonTreeView"],L7e=["templateButtonTreeView"],V7e=["accountsTable"],q7e=["templateAccountsTable"],z7e=()=>[10,25,50,100],H7e=()=>["gl-accounts/create"],G7e=e=>["gl-accounts/view",e];function j7e(e,o){e&1&&(l(0,"button",40),b(1,"fa-icon",41),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,H7e)),a(2),v(" ",m(3,2,"labels.buttons.Add Account")," "))}function $7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account")))}function U7e(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function W7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GL Code")))}function Q7e(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glCode)}}function Y7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function J7e(e,o){if(e&1&&(l(0,"td",43),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,"labels.inputs.accounting."+t.type.value)," ")}}function K7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function X7e(e,o){if(e&1&&(l(0,"td",43)(1,"div",44),b(2,"fa-icon",45),r()()),e&2){let t=o.$implicit;a(),g("className",t.disabled===!0?"disabled":"enabled"),a(),g("matTooltip",Le(t.disabled===!0?"Disabled":"Enabled"))}}function Z7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Manual Entries Allowed")," "))}function eFe(e,o){e&1&&(b(0,"fa-icon",46),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Allowed")))}function tFe(e,o){e&1&&(b(0,"fa-icon",47),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.")))}function iFe(e,o){if(e&1&&(l(0,"td",43),E(1,eFe,2,4,"fa-icon",46),E(2,tFe,2,4,"fa-icon",47),r()),e&2){let t=o.$implicit;a(),I(t.manualEntriesAllowed?1:-1),a(),I(t.manualEntriesAllowed?-1:2)}}function nFe(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Used as")))}function oFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.usage.value)}}function aFe(e,o){e&1&&b(0,"tr",48)}function rFe(e,o){if(e&1&&b(0,"tr",49),e&2){let t=o.$implicit;g("routerLink",Nt(1,G7e,t.id))}}function lFe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function sFe(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",50)(1,"li",51),b(2,"button",52),l(3,"span",53),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewGLAccountNode(i))}),E(4,lFe,2,1,"span",54),c(5),r()()()}if(e&2){let t=o.$implicit;a(4),I(t.glCode?4:-1),a(),v(" ",t.name," ")}}function cFe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function pFe(e,o){if(e&1){let t=Y();l(0,"mat-nested-tree-node")(1,"li")(2,"div",51)(3,"button",55),b(4,"fa-icon",56),r(),l(5,"span",53),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewGLAccountNode(i))}),E(6,cFe,2,1,"span",54),c(7),r()(),l(8,"ul"),gl(9,57),r()()()}if(e&2){let t=o.$implicit,n=w();a(3),Dn("aria-label","toggle "+t.name),a(),g("icon",Le(n.nestedTreeControl.isExpanded(t)?"chevron-down":"chevron-right")),a(2),I(t.glCode?6:-1),a(),v(" ",t.name," "),a(),_l("gl-account-tree-invisible",!n.nestedTreeControl.isExpanded(t))}}function mFe(e,o){if(e&1&&(l(0,"div",39)(1,"mat-card")(2,"mat-card-content")(3,"div",58)(4,"div",59),c(5),p(6,"translate"),r(),l(7,"div",60),c(8),r(),l(9,"div",59),c(10),p(11,"translate"),r(),l(12,"div",60),c(13),r(),l(14,"div",59),c(15),p(16,"translate"),r(),l(17,"div",60),c(18),p(19,"translate"),r(),l(20,"div",59),c(21),p(22,"translate"),r(),l(23,"div",60),c(24),r(),l(25,"div",59),c(26),p(27,"translate"),r(),l(28,"div",60),c(29),r(),l(30,"div",59),c(31),p(32,"translate"),r(),l(33,"div",60),c(34),r()()()()()),e&2){let t=w();a(5),v(" ",m(6,12,"labels.inputs.Account Name")," "),a(3),v(" ",t.glAccount.name," "),a(2),v(" ",m(11,14,"labels.inputs.GL Code")," "),a(3),v(" ",t.glAccount.glCode," "),a(2),v(" ",m(16,16,"labels.inputs.Account Type")," "),a(3),v(" ",m(19,18,"labels.inputs.accounting."+t.glAccount.type)," "),a(3),v(" ",m(22,20,"labels.inputs.Account Usage")," "),a(3),v(" ",t.glAccount.usage," "),a(2),v(" ",m(27,22,"labels.inputs.Manual Entries Allowed")," "),a(3),v(" ",t.glAccount.manualEntriesAllowed," "),a(2),v(" ",m(32,24,"labels.inputs.Description")," "),a(3),v(" ",t.glAccount.description," ")}}function dFe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",61),c(4),p(5,"translate"),r(),l(6,"div",62)(7,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Tree View")),a(3),h(m(5,7,"labels.text.Alternative way-Tree view")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function uFe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",61),c(4),p(5,"translate"),r(),l(6,"div",62)(7,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(55);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Add Account")),a(3),h(m(5,7,"labels.text.Create New GL Account")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function fFe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",62)(4,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(20),u=ve(61);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter GL accounts.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function hFe(e,o){if(e&1){let t=Y();l(0,"h4",61),c(1),p(2,"translate"),r(),l(3,"div",62)(4,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),v(" ",m(2,4,"labels.heading.List of chart of all the accounts being used by your organization.")," "),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var yv=(()=>{class e{constructor(){this.glAccountTreeService=T(vN),this.route=T(Ie),this.router=T(qe),this.treeControlService=T(bv),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.viewGroup=new it("listView"),this.displayedColumns=["name","glCode","glAccountType","disabled","manualEntriesAllowed","usedAs"],this.isTreeExpanded=!0,this.hasNestedChild=(n,i)=>i.children.length,this._getChildren=n=>sd(n.children);let t=this.glAccountTreeService;this.route.data.subscribe(n=>{this.glAccountData=n.chartOfAccounts,t.initialize(this.glAccountData)}),this.nestedTreeControl=new zg(this._getChildren),this.nestedTreeDataSource=new jg}ngOnInit(){this.tableDataSource=new Wt(this.glAccountData),this.glAccountTreeService.treeDataChange.subscribe(t=>{this.nestedTreeDataSource.data=t,this.nestedTreeControl.expand(this.nestedTreeDataSource.data[0]),this.nestedTreeControl.dataNodes=t})}ngAfterViewInit(){this.tableDataSource.paginator=this.paginator,this.tableDataSource.sortingDataAccessor=(t,n)=>{switch(n){case"glAccountType":return t.type.value;case"usedAs":return t.usage.value;default:return t[n]}},this.tableDataSource.sort=this.sort,this.configurationWizardService.showChartofAccountsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonTreeView,this.buttonTreeView.nativeElement,"bottom",!0)}),this.configurationWizardService.showChartofAccountsList===!0&&setTimeout(()=>{this.showPopover(this.templateAccountsTable,this.accountsTable.nativeElement,"top",!0)})}applyFilter(t){this.tableDataSource.filter=t.trim().toLowerCase()}viewGLAccountNode(t){t.glCode?this.glAccount=t:delete this.glAccount}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showChartofAccountsPage=!1,this.configurationWizardService.showChartofAccountsList=!1,this.configurationWizardService.showChartofAccountsForm=!0,this.router.navigate(["/accounting/chart-of-accounts/gl-accounts/create"])}previousStep(){this.configurationWizardService.showChartofAccountsPage=!1,this.configurationWizardService.showChartofAccountsList=!1,this.configurationWizardService.showChartofAccounts=!0,this.router.navigate(["/accounting"])}toggleExpandCollapse(){this.isTreeExpanded=this.treeControlService.toggleExpandCollapse(this.nestedTreeControl,this.isTreeExpanded)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-chart-of-accounts"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(N7e,5),Ee(L7e,5),Ee(V7e,5),Ee(q7e,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonTreeView=s.first),Te(s=Me())&&(i.templateButtonTreeView=s.first),Te(s=Me())&&(i.accountsTable=s.first),Te(s=Me())&&(i.templateAccountsTable=s.first)}},decls:62,vars:19,consts:[["buttonTreeView",""],["buttonAddAccount",""],["filter",""],["accountsTable",""],["templateButtonTreeView",""],["templateButtonAddAccount",""],["templateFilter",""],["templateAccountsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[3,"formControl"],["value","listView"],["icon","list"],["value","treeView"],["icon","sitemap"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container",3,"hidden"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glCode"],["matColumnDef","glAccountType"],["matColumnDef","disabled"],["matColumnDef","manualEntriesAllowed"],["matColumnDef","usedAs"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"m-b-20","layout-row","align-start","gap-20px"],["mat-raised-button","",3,"click"],[1,"layout-row","gap-4percent","responsive-column"],[1,"mat-elevation-z8","flex"],[1,"gl-account-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"flex-48"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["matTooltipPosition","right","icon","check-circle","size","lg",1,"manual-entries-allowed",3,"matTooltip"],["matTooltipPosition","right","icon","times-circle","size","lg",1,"manual-entries-not-allowed",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["mat-icon-button","","disabled",""],[3,"click"],[1,"m-r-10"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror",3,"icon"],["matTreeNodeOutlet",""],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",8)(1,"div",null,0)(3,"mat-button-toggle-group",9)(4,"mat-button-toggle",10),b(5,"fa-icon",11),r(),l(6,"mat-button-toggle",12),b(7,"fa-icon",13),r()()(),l(8,"div",null,1),F(10,j7e,4,5,"button",14),r()(),l(11,"div",15)(12,"div",16,2)(14,"mat-form-field",17)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"input",18),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(19,"div",19,3)(21,"table",20),X(22,21),F(23,$7e,3,3,"th",22)(24,U7e,2,1,"td",23),Z(),X(25,24),F(26,W7e,3,3,"th",22)(27,Q7e,2,1,"td",23),Z(),X(28,25),F(29,Y7e,3,3,"th",22)(30,J7e,3,3,"td",23),Z(),X(31,26),F(32,K7e,3,3,"th",22)(33,X7e,3,3,"td",23),Z(),X(34,27),F(35,Z7e,3,3,"th",22)(36,iFe,3,2,"td",23),Z(),X(37,28),F(38,nFe,3,3,"th",22)(39,oFe,2,1,"td",23),Z(),F(40,aFe,1,0,"tr",29)(41,rFe,1,3,"tr",30),r(),b(42,"mat-paginator",31),r()(),l(43,"div",15)(44,"div",32)(45,"button",33),R("click",function(){return V(s),q(i.toggleExpandCollapse())}),c(46),p(47,"translate"),r()(),l(48,"div",34)(49,"div",35)(50,"mat-tree",36),F(51,sFe,6,2,"mat-tree-node",37)(52,pFe,10,7,"mat-nested-tree-node",38),r()(),E(53,mFe,35,26,"div",39),r()(),F(54,dFe,16,15,"ng-template",null,4,ti)(56,uFe,16,15,"ng-template",null,5,ti)(58,fFe,13,12,"ng-template",null,6,ti)(60,hFe,13,12,"ng-template",null,7,ti)}n&2&&(a(3),g("formControl",i.viewGroup),a(7),g("mifosxHasPermission","CREATE_GLACCOUNT"),a(),g("hidden",i.viewGroup.value!=="listView"),a(5),h(m(17,14,"labels.inputs.Filter")),a(5),g("dataSource",i.tableDataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(18,z7e)),a(),g("hidden",i.viewGroup.value!=="treeView"),a(3),v(" ",m(47,16,i.isTreeExpanded?"labels.buttons.Collapse All":"labels.buttons.Expand All")," "),a(4),g("dataSource",i.nestedTreeDataSource)("treeControl",i.nestedTreeControl),a(2),g("matTreeNodeDefWhen",i.hasNestedChild),a(),I(i.glAccount?53:-1))},dependencies:[ue,fe,$e,_n,Oe,Ue,Je,Fe,Be,ze,xe,Ke,Mp,Dp,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,M0,T0,P0,D0,wi,Hg,Gg,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.gl-account-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .gl-account-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.gl-account-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer}.gl-account-tree[_ngcontent-%COMP%] .gl-account-tree-invisible[_ngcontent-%COMP%]{display:none}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.manual-entries-allowed[_ngcontent-%COMP%]{color:#32cd32}.manual-entries-not-allowed[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var gFe=()=>({step:1}),_Fe=()=>({step:2}),CFe=()=>({step:3}),Ar=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po);let t=this.data;this.stepName=t.stepName}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-continue-setup-dialog"]],decls:18,vars:26,consts:[["mat-dialog-title",""],[1,"mw600"],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h2",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"h3",1),c(5),p(6,"translate"),p(7,"translate"),r()(),l(8,"mat-dialog-actions")(9,"button",2),c(10),p(11,"translate"),r(),l(12,"button",3),c(13),p(14,"translate"),r(),l(15,"button",3),c(16),p(17,"translate"),r()()),n&2&&(a(),h(m(2,11,"labels.heading.Configuration Wizard")),a(4),ea(" ",m(6,13,"labels.heading.You have created")," ",i.stepName," ",m(7,15,"labels.heading.successfully select option")," "),a(4),g("mat-dialog-close",oe(23,gFe)),a(),v(" ",m(11,17,"labels.buttons.Close Configuration Wizard")," "),a(2),g("mat-dialog-close",oe(24,_Fe)),a(),le(" ",m(14,19,"labels.buttons.Create more")," ",i.stepName," "),a(2),g("mat-dialog-close",oe(25,CFe)),a(),v(" ",m(17,21,"labels.buttons.Go to next step")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var vFe=["accountFormRef"],xFe=["templateAccountFormRef"],bFe=e=>[e];function yFe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",m(2,2,"labels.inputs.accounting."+t.value)," ")}}function SFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function PFe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function TFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function MFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function DFe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function EFe(e,o){if(e&1&&(l(0,"button",21),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.glAccountForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function IFe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",22),c(4),p(5,"translate"),l(6,"a",23),c(7),p(8,"translate"),r()(),l(9,"div",24)(10,"button",25),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create GL account")),a(3),v(" ",m(5,9,"labels.text.Filling Details")," "),a(3),h(m(8,11,"labels.inputs.Chart of Accounts")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create GL Account")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var Sv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.dialog=T(Ht),this.parentData=[],this.cancelRoute="../../",this.route.queryParamMap.subscribe(t=>{this.accountTypeId=Number(t.get("accountType")),this.parentId=Number(t.get("parent")),this.parentId&&(this.cancelRoute=`../view/${this.parentId}`)}),this.route.data.subscribe(t=>{this.chartOfAccountsData=t.chartOfAccountsTemplate,this.accountTypeData=t.chartOfAccountsTemplate.accountTypeOptions,this.accountUsageData=t.chartOfAccountsTemplate.usageOptions})}ngOnInit(){this.createGlAccountForm(),this.setGLAccountForm()}createGlAccountForm(){this.glAccountForm=this.formBuilder.group({type:["",ce.required],name:["",ce.required],usage:["",ce.required],glCode:["",ce.required],parentId:[this.parentId||void 0],tagId:[""],manualEntriesAllowed:[!0],description:[""]})}setGLAccountForm(){this.glAccountForm.get("type").valueChanges.subscribe(t=>{switch(t){case 1:this.parentData=this.chartOfAccountsData.assetHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedAssetsTagOptions;break;case 2:this.parentData=this.chartOfAccountsData.liabilityHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedLiabilitiesTagOptions;break;case 3:this.parentData=this.chartOfAccountsData.equityHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedEquityTagOptions;break;case 4:this.parentData=this.chartOfAccountsData.incomeHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedIncomeTagOptions;break;case 5:this.parentData=this.chartOfAccountsData.expenseHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedExpensesTagOptions;break}})}submit(){this.glAccountForm.invalid||this.accountingService.createGlAccount(this.glAccountForm.value).subscribe(t=>{this.configurationWizardService.showChartofAccounts===!0?(this.configurationWizardService.showChartofAccounts=!1,this.openDialog()):this.router.navigate(["../view",t.resourceId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showChartofAccountsForm===!0&&setTimeout(()=>{this.showPopover(this.templateAccountFormRef,this.accountFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showChartofAccountsForm=!1,this.configurationWizardService.showAccountsLinked=!0,this.router.navigate(["/accounting"])}previousStep(){this.configurationWizardService.showChartofAccountsForm=!1,this.configurationWizardService.showChartofAccountsList=!0,this.router.navigate(["/accounting/chart-of-accounts"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"GL account"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showChartofAccountsForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showChartofAccountsForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/accounting/chart-of-accounts/gl-accounts/create"])):n.step===3&&(this.configurationWizardService.showChartofAccountsForm=!1,this.configurationWizardService.showAccountsLinked=!0,this.router.navigate(["/accounting"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-gl-account"]],viewQuery:function(n,i){if(n&1&&(Ee(vFe,5),Ee(xFe,5)),n&2){let s;Te(s=Me())&&(i.accountFormRef=s.first),Te(s=Me())&&(i.templateAccountFormRef=s.first)}},decls:58,vars:37,consts:[["accountFormRef",""],["templateAccountFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","type"],[3,"value"],["matInput","","required","","formControlName","name"],["required","","formControlName","usage"],["matInput","","required","","formControlName","glCode"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"flex-28"],["formControlName","tagId"],[1,"manual-entries-allowed-wrapper","flex-18"],["labelPosition","before","formControlName","manualEntriesAllowed",1,"manual-entries-allowed"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141745/Chart+of+Accounts+-+General+Ledger+Setup","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3,0),R("ngSubmit",function(){return V(s),q(i.submit())}),l(4,"mat-card-content")(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",6),Se(11,yFe,3,4,"mat-option",7,Pe),r(),E(13,SFe,7,9,"mat-error"),r(),l(14,"mat-form-field",5)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8),E(19,wFe,7,9,"mat-error"),r(),l(20,"mat-form-field",5)(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",9),Se(25,PFe,2,2,"mat-option",7,Pe),r(),E(27,TFe,7,9,"mat-error"),r(),l(28,"mat-form-field",5)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",10),E(33,MFe,7,9,"mat-error"),r(),b(34,"mifosx-gl-account-selector",11),l(35,"mat-form-field",12)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",13),Se(40,DFe,2,2,"mat-option",7,Pe),r()(),l(42,"div",14)(43,"mat-checkbox",15),c(44),p(45,"translate"),r()(),l(46,"mat-form-field",16)(47,"mat-label"),c(48),p(49,"translate"),r(),b(50,"textarea",17),r()()(),l(51,"mat-card-actions",18)(52,"button",19),c(53),p(54,"translate"),r(),F(55,EFe,3,4,"button",20),r()()()(),F(56,IFe,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.glAccountForm),a(6),h(m(9,19,"labels.inputs.Account Type")),a(3),we(i.accountTypeData),a(2),I(i.glAccountForm.controls.type.hasError("required")&&(i.glAccountForm.controls.type.touched||i.glAccountForm.controls.type.dirty)?13:-1),a(3),h(m(17,21,"labels.inputs.Account Name")),a(3),I(i.glAccountForm.controls.name.hasError("required")&&(i.glAccountForm.controls.name.touched||i.glAccountForm.controls.name.dirty)?19:-1),a(3),h(m(23,23,"labels.inputs.Account Usage")),a(3),we(i.accountUsageData),a(2),I(i.glAccountForm.controls.usage.hasError("required")&&(i.glAccountForm.controls.usage.touched||i.glAccountForm.controls.usage.dirty)?27:-1),a(3),h(m(31,25,"labels.inputs.GL Code")),a(3),I(i.glAccountForm.controls.glCode.hasError("required")&&(i.glAccountForm.controls.glCode.touched||i.glAccountForm.controls.glCode.dirty)?33:-1),a(),g("inputFormControl",i.glAccountForm.controls.parentId)("glAccountList",i.parentData)("required",!1)("inputLabel","Parent"),a(3),h(m(38,27,"labels.inputs.Tag")),a(3),we(i.tagData),a(4),v(" ",m(45,29,"labels.inputs.Manual Entries Allowed")," "),a(4),h(m(49,31,"labels.inputs.Description")),a(4),g("routerLink",Nt(35,bFe,i.cancelRoute)),a(),v(" ",m(54,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,ta,Ln,he],styles:[".manual-entries-allowed-wrapper[_ngcontent-%COMP%]{position:relative}.manual-entries-allowed-wrapper[_ngcontent-%COMP%] .manual-entries-allowed[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}"]})}}return e})();var OFe=()=>["/accounting/chart-of-accounts/gl-accounts/create"],AFe=(e,o)=>({parent:e,accountType:o}),FFe=()=>["edit"],kFe=e=>[e];function BFe(e,o){if(e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2){let t=w(2);g("routerLink",oe(5,OFe))("queryParams",Ja(6,AFe,t.glAccount.id,t.glAccount.type.id)),a(2),v(" ",m(3,3,"labels.buttons.Subledger Account")," ")}}function RFe(e,o){if(e&1&&(l(0,"span"),E(1,BFe,4,9,"button",10),r()),e&2){let t=w();a(),I(t.glAccount.usage.value==="HEADER"?1:-1)}}function NFe(e,o){e&1&&(l(0,"span")(1,"button",12),b(2,"fa-icon",13),c(3),p(4,"translate"),r()()),e&2&&(a(),g("routerLink",oe(4,FFe)),a(2),v(" ",m(4,2,"labels.buttons.Edit")," "))}function LFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){V(t);let i=w(2);return q(i.changeGlAccountState())}),b(1,"fa-icon",16),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Disable")," "))}function VFe(e,o){if(e&1&&(l(0,"span"),E(1,LFe,4,3,"button",14),r()),e&2){let t=w();a(),I(t.glAccount.disabled?-1:1)}}function qFe(e,o){if(e&1){let t=Y();l(0,"button",18),R("click",function(){V(t);let i=w(2);return q(i.changeGlAccountState())}),b(1,"fa-icon",19),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Enable")," "))}function zFe(e,o){if(e&1&&(l(0,"span"),E(1,qFe,4,3,"button",17),r()),e&2){let t=w();a(),I(t.glAccount.disabled?1:-1)}}function HFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){V(t);let i=w();return q(i.deleteGlAccount())}),b(1,"fa-icon",20),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function GFe(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7)(5,"a",21),b(6,"mifosx-gl-account-display",22),r()()()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Parent Account Name")),a(3),g("routerLink",Nt(5,kFe,"/accounting/chart-of-accounts/gl-accounts/view/"+t.glAccount.parent.id)),a(),g("glAccount",t.glAccount.parent)}}function jFe(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Tag")),a(3),h(t.glAccount.tagId.name)}}function $Fe(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Description")),a(3),h(t.glAccount.description)}}var wv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(C0),this.route.data.subscribe(t=>{this.glAccount=t.glAccountAndChartOfAccountsTemplate})}deleteGlAccount(){this.dialog.open(vi,{data:{deleteContext:`gl account ${this.glAccount.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteGlAccount(this.glAccount.id).subscribe(()=>{this.router.navigate(["/accounting/chart-of-accounts"])})})}changeGlAccountState(){this.accountingService.updateGlAccount(this.glAccount.id,{disabled:!this.glAccount.disabled}).subscribe(t=>{this.glAccount.disabled=t.changes.disabled})}goBack(){this.router.navigateByUrl("/accounting/chart-of-accounts")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-gl-account"]],decls:43,vars:31,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],[4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"content-rows"],[1,"content-row"],[1,"label"],[1,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"routerLink","queryParams"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn"],["mat-raised-button","","color","warn",3,"click"],["icon","lock",1,"m-r-10"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["icon","trash",1,"m-r-10"],[1,"tab-link",3,"routerLink"],[3,"glAccount"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,RFe,2,1,"span",1)(2,NFe,5,5,"span",1)(3,VFe,2,1,"span",1)(4,zFe,2,1,"span",1)(5,HFe,4,3,"button",2),r(),l(6,"div",3)(7,"mat-card")(8,"mat-card-content")(9,"div",4)(10,"div",5)(11,"div",6),c(12),p(13,"translate"),r(),l(14,"div",7),c(15),p(16,"translate"),r()(),l(17,"div",5)(18,"div",6),c(19),p(20,"translate"),r(),l(21,"div",7),c(22),r()(),E(23,GFe,7,7,"div",5),E(24,jFe,6,4,"div",5),l(25,"div",5)(26,"div",6),c(27),p(28,"translate"),r(),l(29,"div",7),c(30),r()(),l(31,"div",5)(32,"div",6),c(33),p(34,"translate"),r(),l(35,"div",7),c(36),p(37,"yesNo"),r()(),E(38,$Fe,6,4,"div",5),r()(),l(39,"mat-card-actions",8)(40,"button",9),R("click",function(){return i.goBack()}),c(41),p(42,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","CREATE_GLACCOUNT"),a(),g("mifosxHasPermission","UPDATE_GLACCOUNT"),a(),g("mifosxHasPermission","UPDATE_GLACCOUNT"),a(),g("mifosxHasPermission","UPDATE_GLACCOUNT"),a(),g("mifosxHasPermission","DELETE_GLACCOUNT"),a(7),h(m(13,17,"labels.inputs.Account Type")),a(3),h(m(16,19,"labels.inputs.accounting."+(i.glAccount.type==null?null:i.glAccount.type.value))),a(4),h(m(20,21,"labels.inputs.GL Code")),a(3),h(i.glAccount.glCode),a(),I(i.glAccount.parent?23:-1),a(),I(i.glAccount.tagId.id?24:-1),a(3),h(m(28,23,"labels.inputs.Account Usage")),a(3),h(i.glAccount.usage==null?null:i.glAccount.usage.value),a(3),h(m(34,25,"labels.inputs.Manual Entries Allowed")),a(3),h(m(37,27,i.glAccount.manualEntriesAllowed)),a(2),I(i.glAccount.description?38:-1),a(3),v(" ",m(42,29,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,Ke,ke,as,he,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var UFe=()=>["../"];function WFe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function QFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function YFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function JFe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function KFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function XFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZFe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eke(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.glAccountForm.invalid||t.glAccountForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Pv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.glAccount=t.glAccountAndChartOfAccountsTemplate})}ngOnInit(){this.createGlAccountForm(),this.setGLAccountForm()}createGlAccountForm(){this.glAccountForm=this.formBuilder.group({type:["",ce.required],name:[this.glAccount.name,ce.required],usage:[this.glAccount.usage.id,ce.required],glCode:[this.glAccount.glCode,ce.required],parentId:[this.glAccount.parentId],tagId:[this.glAccount.tagId.id],manualEntriesAllowed:[this.glAccount.manualEntriesAllowed,ce.required],description:[this.glAccount.description]})}setGLAccountForm(){this.accountTypeData=this.glAccount.accountTypeOptions,this.accountUsageData=this.glAccount.usageOptions,this.glAccountForm.get("type").valueChanges.subscribe(t=>{switch(t){case 1:this.parentData=this.glAccount.assetHeaderAccountOptions,this.tagData=this.glAccount.allowedAssetsTagOptions;break;case 2:this.parentData=this.glAccount.liabilityHeaderAccountOptions,this.tagData=this.glAccount.allowedLiabilitiesTagOptions;break;case 3:this.parentData=this.glAccount.equityHeaderAccountOptions,this.tagData=this.glAccount.allowedEquityTagOptions;break;case 4:this.parentData=this.glAccount.incomeHeaderAccountOptions,this.tagData=this.glAccount.allowedIncomeTagOptions;break;case 5:this.parentData=this.glAccount.expenseHeaderAccountOptions,this.tagData=this.glAccount.allowedExpensesTagOptions;break}}),this.glAccountForm.get("type").setValue(this.glAccount.type.id)}submit(){this.accountingService.updateGlAccount(this.glAccount.id,this.glAccountForm.value).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-gl-account"]],decls:55,vars:36,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","type"],[3,"value"],["matInput","","required","","formControlName","name"],["required","","formControlName","usage"],["matInput","","required","","formControlName","glCode"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"flex-28"],["formControlName","tagId"],[1,"manual-entries-allowed-wrapper","flex-18"],["labelPosition","before","required","","formControlName","manualEntriesAllowed",1,"manual-entries-allowed"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,WFe,2,2,"mat-option",5,Pe),r(),E(12,QFe,7,9,"mat-error"),r(),l(13,"mat-form-field",3)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",6),E(18,YFe,7,9,"mat-error"),r(),l(19,"mat-form-field",3)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",7),Se(24,JFe,2,2,"mat-option",5,Pe),r(),E(26,KFe,7,9,"mat-error"),r(),l(27,"mat-form-field",3)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",8),E(32,XFe,7,9,"mat-error"),r(),b(33,"mifosx-gl-account-selector",9),l(34,"mat-form-field",10)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",11),Se(39,ZFe,2,2,"mat-option",5,Pe),r()(),l(41,"div",12)(42,"mat-checkbox",13),c(43),p(44,"translate"),r()(),l(45,"mat-form-field",14)(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"textarea",15),r()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,eke,3,4,"button",18),r()()()()),n&2&&(a(2),g("formGroup",i.glAccountForm),a(5),h(m(8,19,"labels.inputs.Account Type")),a(3),we(i.accountTypeData),a(2),I(i.glAccountForm.controls.type.hasError("required")?12:-1),a(3),h(m(16,21,"labels.inputs.Account Name")),a(3),I(i.glAccountForm.controls.name.hasError("required")?18:-1),a(3),h(m(22,23,"labels.inputs.Account Usage")),a(3),we(i.accountUsageData),a(2),I(i.glAccountForm.controls.usage.hasError("required")?26:-1),a(3),h(m(30,25,"labels.inputs.GL Code")),a(3),I(i.glAccountForm.controls.glCode.hasError("required")?32:-1),a(),g("inputFormControl",i.glAccountForm.controls.parentId)("glAccountList",i.parentData)("required",!1)("inputLabel","Parent"),a(3),h(m(37,27,"labels.inputs.Tag")),a(3),we(i.tagData),a(4),v(" ",m(44,29,"labels.inputs.Manual Entries Allowed")," "),a(4),h(m(48,31,"labels.inputs.Description")),a(4),g("routerLink",oe(35,UFe)),a(),v(" ",m(53,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,ta,Ln,he],styles:[".manual-entries-allowed-wrapper[_ngcontent-%COMP%]{position:relative}.manual-entries-allowed-wrapper[_ngcontent-%COMP%] .manual-entries-allowed[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}"]})}}return e})();var tke=["buttonCreateClosure"],ike=["templateButtonCreateClosure"],nke=["closuresTable"],oke=["templateClosuresTable"],ake=()=>[10,25,50,100],rke=()=>["create"],lke=e=>["view",e];function ske(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",27),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,rke)),a(2),v(" ",m(3,2,"labels.buttons.Create Closure")," "))}function cke(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function pke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function mke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function dke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closure Date")))}function uke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.closingDate)}}function fke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Comments")))}function hke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.comments)}}function gke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function _ke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUsername)}}function Cke(e,o){e&1&&b(0,"tr",30)}function vke(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,lke,t.id))}}function xke(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(38);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Closure")),a(3),h(m(5,7,"labels.text.Create new closure")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function bke(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",33)(4,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(18),u=ve(40);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter closures by office.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function yke(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),l(3,"a",36),c(4),p(5,"translate"),r()(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(38);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of closures. To know more click"),": "),a(3),h(m(5,7,"labels.inputs.Closing Entries")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Tv=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["officeName","closingDate","comments","createdByUsername"],this.officeName=new it,this.route.data.subscribe(t=>{this.officeData=t.offices,this.glAccountClosureData=t.glAccountClosures})}ngOnInit(){this.applyFilter(),this.setFilteredOffices(),this.setAccountingClosures()}applyFilter(){this.officeName.valueChanges.subscribe(t=>{this.dataSource.filter=t.trim().toLowerCase()})}setAccountingClosures(){this.dataSource=new Wt(this.glAccountClosureData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}setFilteredOffices(){this.filteredOfficeData=this.officeName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}filterOfficeAutocompleteData(t){return this.officeData.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showClosingEntriesPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateClosure,this.buttonCreateClosure.nativeElement,"bottom",!0)}),this.configurationWizardService.showClosingEntriesList===!0&&setTimeout(()=>{this.showPopover(this.templateClosuresTable,this.closuresTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showClosingEntriesPage=!1,this.configurationWizardService.showClosingEntriesList=!1,this.configurationWizardService.showCreateJournalEntries=!0,this.router.navigate(["/accounting"])}previousStep(){this.configurationWizardService.showClosingEntriesPage=!1,this.configurationWizardService.showClosingEntriesList=!1,this.configurationWizardService.showClosingEntries=!0,this.router.navigate(["/accounting"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-closing-entries"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(tke,5),Ee(ike,5),Ee(nke,5),Ee(oke,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateClosure=s.first),Te(s=Me())&&(i.templateButtonCreateClosure=s.first),Te(s=Me())&&(i.closuresTable=s.first),Te(s=Me())&&(i.templateClosuresTable=s.first)}},decls:41,vars:13,consts:[["buttonCreateClosure",""],["filter",""],["officeNameAutocomplete","matAutocomplete"],["closuresTable",""],["templateButtonCreateClosure",""],["templateFilter",""],["templateClosuresTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container","layout-row"],[1,"flex-fill"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],[3,"value"],[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","closingDate"],["matColumnDef","comments"],["matColumnDef","createdByUsername"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895316/Closing+Entries","target","_blank"]],template:function(n,i){if(n&1&&(l(0,"div",7)(1,"div",null,0),F(3,ske,4,5,"button",8),r()(),l(4,"div",9,1)(6,"mat-form-field",10)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",11),r()(),l(11,"mat-autocomplete",12,2),Se(13,cke,2,2,"mat-option",13,Pe),p(15,"async"),r(),l(16,"div",14)(17,"div",15,3)(19,"table",16),X(20,17),F(21,pke,3,3,"th",18)(22,mke,2,1,"td",19),Z(),X(23,20),F(24,dke,3,3,"th",18)(25,uke,2,1,"td",19),Z(),X(26,21),F(27,fke,3,3,"th",18)(28,hke,2,1,"td",19),Z(),X(29,22),F(30,gke,3,3,"th",18)(31,_ke,2,1,"td",19),Z(),F(32,Cke,1,0,"tr",23)(33,vke,1,3,"tr",24),r(),b(34,"mat-paginator",25),r()(),F(35,xke,16,15,"ng-template",null,4,ti)(37,bke,13,12,"ng-template",null,5,ti)(39,yke,16,15,"ng-template",null,6,ti)),n&2){let s=ve(12);a(3),g("mifosxHasPermission","CREATE_GLCLOSURE"),a(5),h(m(9,8,"labels.inputs.Office Name")),a(2),g("formControl",i.officeName)("matAutocomplete",s),a(3),we(m(15,10,i.filteredOfficeData)),a(6),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,ake))}},dependencies:[ue,fe,st,$e,_n,Oe,Fe,Be,ze,ft,xe,Ke,ke,er,Za,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Ske=()=>["../"];function wke(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Pke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closing Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mke(e,o){if(e&1&&(l(0,"button",13),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountingClosureForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Mv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createAccountingClosureForm()}createAccountingClosureForm(){this.accountingClosureForm=this.formBuilder.group({officeId:["",ce.required],closingDate:["",ce.required],comments:[""]})}submit(){let t=this.accountingClosureForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.closingDate&&(t.closingDate=this.dateUtils.formatDate(t.closingDate,this.settingsService.dateFormat)),this.accountingService.createAccountingClosure(t).subscribe(n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-closure"]],decls:32,vars:22,consts:[["closingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","closingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,wke,2,2,"mat-option",5,Pe),r(),E(12,Pke,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,Tke,7,9,"mat-error"),r(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"textarea",9),r()()(),l(27,"mat-card-actions",10)(28,"button",11),c(29),p(30,"translate"),r(),F(31,Mke,3,4,"button",12),r()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.accountingClosureForm),a(5),h(m(8,13,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.accountingClosureForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,15,"labels.inputs.Closing Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.accountingClosureForm.controls.closingDate.hasError("required")?21:-1),a(3),h(m(25,17,"labels.inputs.Comments")),a(4),g("routerLink",oe(21,Ske)),a(),v(" ",m(30,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLCLOSURE")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Dke=()=>["edit"];function Eke(e,o){if(e&1){let t=Y();l(0,"button",5),R("click",function(){V(t);let i=w();return q(i.deleteAccountingClosure())}),b(1,"fa-icon",6),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function Ike(e,o){if(e&1&&(l(0,"div",4)(1,"mat-card")(2,"mat-card-content")(3,"div",7)(4,"div",8),c(5),p(6,"translate"),r(),l(7,"div",9),c(8),r(),l(9,"div",8),c(10),p(11,"translate"),r(),l(12,"div",9),c(13),r(),l(14,"div",8),c(15),p(16,"translate"),r(),l(17,"div",9),c(18),r(),l(19,"div",8),c(20),p(21,"translate"),r(),l(22,"div",9),c(23),r(),l(24,"div",8),c(25),p(26,"translate"),r(),l(27,"div",9),c(28),r(),l(29,"div",8),c(30),p(31,"translate"),r(),l(32,"div",9),c(33),r(),l(34,"div",8),c(35),p(36,"translate"),r(),l(37,"div",9),c(38),r()()()()()),e&2){let t=w();a(5),v(" ",m(6,14,"labels.inputs.Office")," "),a(3),v(" ",t.glAccountClosure.officeName," "),a(2),v(" ",m(11,16,"labels.inputs.Closure Date")," "),a(3),v(" ",t.glAccountClosure.closingDate," "),a(2),v(" ",m(16,18,"labels.inputs.Closed By")," "),a(3),v(" ",t.glAccountClosure.createdByUsername," "),a(2),v(" ",m(21,20,"labels.inputs.Updated By")," "),a(3),v(" ",t.glAccountClosure.lastUpdatedByUsername," "),a(2),v(" ",m(26,22,"labels.inputs.Updated on")," "),a(3),v(" ",t.glAccountClosure.lastUpdatedDate," "),a(2),v(" ",m(31,24,"labels.inputs.Closure Creation Date")," "),a(3),v(" ",t.glAccountClosure.createdDate," "),a(2),v(" ",m(36,26,"labels.inputs.Comments")," "),a(3),v(" ",t.glAccountClosure.comments," ")}}var Dv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.glAccountClosure=t.glAccountClosure})}deleteAccountingClosure(){this.dialog.open(vi,{data:{deleteContext:`accounting closure ${this.glAccountClosure.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteAccountingClosure(this.glAccountClosure.id).subscribe(()=>{this.router.navigate(["/accounting/closing-entries"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-closure"]],decls:7,vars:7,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),F(5,Eke,4,3,"button",3),r(),E(6,Ike,39,28,"div",4)),n&2&&(a(),g("routerLink",oe(6,Dke)),a(2),v(" ",m(4,4,"labels.buttons.Edit")," "),a(2),g("mifosxHasPermission","DELETE_GLCLOSURE"),a(),I(i.glAccountClosure?6:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var Oke=()=>["../"];function Ake(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}var Ev=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.glAccountClosure=t.glAccountClosure})}ngOnInit(){this.createAccountingClosureForm(),this.setAccountingClosure()}createAccountingClosureForm(){this.accountingClosureForm=this.formBuilder.group({officeId:[{value:"",disabled:!0},ce.required],closingDate:[{value:"",disabled:!0},ce.required],comments:[""]})}setAccountingClosure(){this.officeData=[{id:this.glAccountClosure.officeId,name:this.glAccountClosure.officeName}],this.accountingClosureForm.get("officeId").setValue(this.glAccountClosure.officeId),this.accountingClosureForm.get("closingDate").setValue(new Date(this.glAccountClosure.closingDate)),this.accountingClosureForm.get("comments").setValue(this.glAccountClosure.comments)}submit(){this.accountingService.updateAccountingClosure(this.glAccountClosure.id,{comments:this.accountingClosureForm.value.comments}).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-closure"]],decls:32,vars:21,consts:[["closingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","closingDate",3,"matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Ake,2,2,"mat-option",5,Pe),r()(),l(12,"mat-form-field",6),R("click",function(){V(s);let u=ve(19);return q(u.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",7)(17,"mat-datepicker-toggle",8)(18,"mat-datepicker",null,0),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"textarea",9),r()()(),l(25,"mat-card-actions",10)(26,"button",11),c(27),p(28,"translate"),r(),l(29,"button",12),c(30),p(31,"translate"),r()()()()()}if(n&2){let s=ve(19);a(2),g("formGroup",i.accountingClosureForm),a(5),h(m(8,10,"labels.inputs.Office")),a(3),we(i.officeData),a(4),h(m(15,12,"labels.inputs.Closing Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(23,14,"labels.inputs.Comments")),a(4),g("routerLink",oe(20,Oke)),a(),v(" ",m(28,16,"labels.buttons.Cancel")," "),a(2),g("disabled",i.accountingClosureForm.pristine),a(),v(" ",m(31,18,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Fke=()=>[10,25,50,100],kke=()=>["create"],Bke=e=>["view",e];function Rke(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,kke)),a(2),v(" ",m(3,2,"labels.buttons.Add Rule")," "))}function Nke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Lke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Vke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function qke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function zke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit Tags")))}function Hke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.debitTags)}}function Gke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit Account")))}function jke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.debitAccounts?t.debitAccounts[0].name:""," ")}}function $ke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit Tags")))}function Uke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.creditTags)}}function Wke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit Account")))}function Qke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.creditAccounts?t.creditAccounts[0].name:""," ")}}function Yke(e,o){e&1&&b(0,"tr",23)}function Jke(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("routerLink",Nt(1,Bke,t.id))}}var Iv=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","officeName","debitTags","debitAccount","creditTags","creditAccount"],this.route.data.subscribe(t=>{this.accountingRuleData=t.accountingRules})}ngOnInit(){this.setAccountingRules()}setAccountingRules(){this.accountingRuleData.forEach(t=>{t.debitTags=t.debitTags?t.debitTags.map(n=>n.tag.name).join(", "):"",t.creditTags=t.creditTags?t.creditTags.map(n=>n.tag.name).join(", "):""}),this.dataSource=new Wt(this.accountingRuleData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"debitAccount":return t.debitAccounts[0].name;case"creditAccount":return t.creditAccounts[0].name;default:return t[n]}},this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-accounting-rules"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","debitTags"],["matColumnDef","debitAccount"],["matColumnDef","creditTags"],["matColumnDef","creditAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Rke,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Nke,3,3,"th",9)(13,Lke,2,1,"td",10),Z(),X(14,11),F(15,Vke,3,3,"th",9)(16,qke,2,1,"td",10),Z(),X(17,12),F(18,zke,3,3,"th",9)(19,Hke,2,1,"td",10),Z(),X(20,13),F(21,Gke,3,3,"th",9)(22,jke,2,1,"td",10),Z(),X(23,14),F(24,$ke,3,3,"th",9)(25,Uke,2,1,"td",10),Z(),X(26,15),F(27,Wke,3,3,"th",9)(28,Qke,2,1,"td",10),Z(),F(29,Yke,1,0,"tr",16)(30,Jke,1,3,"tr",17),r(),b(31,"mat-paginator",18),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_ACCOUNTINGRULE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Fke)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Ov=e=>{let o=e.controls.accountToDebit.value,t=e.controls.debitTags.value,n=e.controls.accountToCredit.value,i=e.controls.creditTags.value;return(o||t)&&(n||i)?null:{error:!0}};var Kke=()=>["../../"];function Xke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zke(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function e8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function t8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function i8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",19),Se(5,t8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Debit")),a(3),we(t.glAccountData)}}function n8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function o8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",20),Se(6,n8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",22),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Debit Tags")),a(3),we(t.debitTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Debit Entries Allowed")," ")}}function a8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function r8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,a8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Credit")),a(3),we(t.glAccountData)}}function l8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function s8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",24),Se(6,l8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",25),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Credit Tags")),a(3),we(t.creditTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Credit Entries Allowed")," ")}}function c8e(e,o){if(e&1&&(l(0,"button",26),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountingRuleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Av=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.officeData=t.accountingRulesTemplate.allowedOffices,this.glAccountData=t.accountingRulesTemplate.allowedAccounts,this.debitTagData=t.accountingRulesTemplate.allowedDebitTagOptions,this.creditTagData=t.accountingRulesTemplate.allowedCreditTagOptions})}ngOnInit(){this.createAccountingRuleForm(),this.setAccountingRulesForm()}createAccountingRuleForm(){this.accountingRuleForm=this.formBuilder.group({name:["",ce.required],officeId:["",ce.required],debitRuleType:["fixedAccount"],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:["fixedAccount"],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[""]},{validator:Ov})}setAccountingRulesForm(){this.accountingRuleForm.get("debitRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("debitTags").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").reset()):(this.accountingRuleForm.get("accountToDebit").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").setValue(!1))}),this.accountingRuleForm.get("creditRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("creditTags").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").reset()):(this.accountingRuleForm.get("accountToCredit").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").setValue(!1))})}submit(){let t=this.accountingRuleForm.value;t.debitRuleType==="fixedAccount"?(delete t.debitTags,delete t.allowMultipleDebitEntries):delete t.accountToDebit,t.creditRuleType==="fixedAccount"?(delete t.creditTags,delete t.allowMultipleCreditEntries):delete t.accountToCredit,delete t.debitRuleType,delete t.creditRuleType,this.accountingService.createAccountingRule(t).subscribe(n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-rule"]],decls:55,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],[1,"rule-wrapper","flex-48","layout-row","responsive-column"],[1,"flex-50"],["formControlName","debitRuleType",1,"flex-50","layout-row","gap-5percent","radio-group-spacing"],["value","fixedAccount"],["value","listOfAccounts"],[1,"flex-48","layout-row","gap-2percent","responsive-column"],["formControlName","creditRuleType",1,"flex-50","layout-row","gap-5-percent","radio-group-spacing"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","accountToDebit"],["formControlName","debitTags","multiple",""],["ngClass.gt-md","entries-wrapper",1,"flex-50"],["labelPosition","before","formControlName","allowMultipleDebitEntries",1,"entries"],["formControlName","accountToCredit"],["formControlName","creditTags","multiple",""],["labelPosition","before","formControlName","allowMultipleCreditEntries",1,"entries"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,Xke,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,Zke,2,2,"mat-option",6,Pe),r(),E(18,e8e,7,9,"mat-error"),r(),l(19,"div",7)(20,"mat-label",8),c(21),p(22,"translate"),r(),l(23,"mat-radio-group",9)(24,"mat-radio-button",10),c(25),p(26,"translate"),r(),l(27,"mat-radio-button",11),c(28),p(29,"translate"),r()()(),E(30,i8e,7,3,"mat-form-field",3),E(31,o8e,12,6,"div",12),l(32,"div",7)(33,"mat-label",8),c(34),p(35,"translate"),r(),l(36,"mat-radio-group",13)(37,"mat-radio-button",10),c(38),p(39,"translate"),r(),l(40,"mat-radio-button",11),c(41),p(42,"translate"),r()()(),E(43,r8e,7,3,"mat-form-field",3),E(44,s8e,12,6,"div",12),l(45,"mat-form-field",14)(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"textarea",15),r()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,c8e,3,4,"button",18),r()()()()),n&2&&(a(2),g("formGroup",i.accountingRuleForm),a(5),h(m(8,19,"labels.inputs.Accounting Rule Name")),a(3),I(i.accountingRuleForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,21,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.accountingRuleForm.controls.officeId.hasError("required")?18:-1),a(3),v("",m(22,23,"labels.inputs.Affected GL Entry (Debit) Rule Type")," *"),a(4),h(m(26,25,"labels.inputs.Fixed Account")),a(3),h(m(29,27,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.debitRuleType.value==="fixedAccount"?30:-1),a(),I(i.accountingRuleForm.controls.debitRuleType.value==="listOfAccounts"?31:-1),a(3),v("",m(35,29,"labels.inputs.Affected GL Entry (Credit) Rule Type")," *"),a(4),h(m(39,31,"labels.inputs.Fixed Account")),a(3),h(m(42,33,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.creditRuleType.value==="fixedAccount"?43:-1),a(),I(i.accountingRuleForm.controls.creditRuleType.value==="listOfAccounts"?44:-1),a(3),h(m(48,35,"labels.inputs.Description")),a(4),g("routerLink",oe(39,Kke)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,tr,ir,Ln,he],styles:[".rule-wrapper[_ngcontent-%COMP%]{margin:17.5px 0 0}.entries-wrapper[_ngcontent-%COMP%]{position:relative}.entries-wrapper[_ngcontent-%COMP%] .entries[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var p8e=()=>["edit"];function m8e(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,p8e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function d8e(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){V(t);let i=w();return q(i.deleteAccountingRule())}),b(1,"fa-icon",11),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function u8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Description")),a(3),h(t.accountingRule.description)}}function f8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function h8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,f8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Debit Tags")),a(3),we(t.accountingRule.debitTags)}}function g8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function _8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,g8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Debit Account Name")),a(3),we(t.accountingRule.debitAccounts)}}function C8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function v8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,C8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Credit Tags")),a(3),we(t.accountingRule.creditTags)}}function x8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function b8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,x8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Credit Account Name")),a(3),we(t.accountingRule.creditAccounts)}}var Fv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.accountingRule=t.accountingRule})}deleteAccountingRule(){this.dialog.open(vi,{data:{deleteContext:`accounting rule ${this.accountingRule.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteAccountingRule(this.accountingRule.id).subscribe(()=>{this.router.navigate(["/accounting/accounting-rules"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-rule"]],decls:31,vars:19,consts:[[1,"container"],[1,"layout-row","align-end","gap-2px","responsive-column","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"content-rows"],[1,"content-row"],[1,"label"],[1,"value"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1),F(2,m8e,4,5,"button",2)(3,d8e,4,3,"button",3),r(),l(4,"mat-card")(5,"mat-card-content",4)(6,"div",5)(7,"div",6),c(8),p(9,"translate"),r(),l(10,"div",7),c(11),r()(),E(12,u8e,6,4,"div",5),l(13,"div",5)(14,"div",6),c(15),p(16,"translate"),r(),l(17,"div",7),c(18),r()(),l(19,"div",5)(20,"div",6),c(21),p(22,"translate"),r(),l(23,"div",7),c(24),r()()()(),l(25,"mat-card")(26,"mat-card-content",4),E(27,h8e,7,3,"div",5),E(28,_8e,7,3,"div",5),E(29,v8e,7,3,"div",5),E(30,b8e,7,3,"div",5),r()()()),n&2&&(a(2),g("mifosxHasPermission","UPDATE_ACCOUNTINGRULE"),a(),g("mifosxHasPermission","DELETE_ACCOUNTINGRULE"),a(5),h(m(9,13,"labels.inputs.Office")),a(3),h(i.accountingRule.officeName),a(),I(i.accountingRule.description?12:-1),a(3),h(m(16,15,"labels.inputs.Multiple Debit Entries Allowed")),a(3),h(i.accountingRule.allowMultipleDebitEntries),a(3),h(m(22,17,"labels.inputs.Multiple Credit Entries Allowed")),a(3),h(i.accountingRule.allowMultipleCreditEntries),a(3),I(i.accountingRule.debitTags!=null&&i.accountingRule.debitTags.length?27:-1),a(),I(i.accountingRule.debitAccounts!=null&&i.accountingRule.debitAccounts.length?28:-1),a(),I(i.accountingRule.creditTags!=null&&i.accountingRule.creditTags.length?29:-1),a(),I(i.accountingRule.creditAccounts!=null&&i.accountingRule.creditAccounts.length?30:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var y8e=()=>["../"];function S8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function w8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function P8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function T8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function M8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",19),Se(5,T8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Debit")),a(3),we(t.glAccountData)}}function D8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function E8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",20),Se(6,D8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",22),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Debit Tags")),a(3),we(t.debitTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Debit Entries Allowed")," ")}}function I8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function O8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,I8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Credit")),a(3),we(t.glAccountData)}}function A8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function F8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",24),Se(6,A8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",25),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Credit Tags")),a(3),we(t.creditTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Credit Entries Allowed")," ")}}function k8e(e,o){if(e&1&&(l(0,"button",26),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.accountingRuleForm.pristine||!t.accountingRuleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var kv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.officeData=t.accountingRulesTemplate.allowedOffices,this.glAccountData=t.accountingRulesTemplate.allowedAccounts,this.debitTagData=t.accountingRulesTemplate.allowedDebitTagOptions,this.creditTagData=t.accountingRulesTemplate.allowedCreditTagOptions,this.accountingRule=t.accountingRule})}ngOnInit(){this.createAccountingRuleForm(),this.setAccountingRulesForm()}createAccountingRuleForm(){this.accountingRuleForm=this.formBuilder.group({name:[this.accountingRule.name,ce.required],officeId:[this.accountingRule.officeId,ce.required],debitRuleType:[""],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:[""],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[this.accountingRule.description]},{validator:Ov})}setAccountingRulesForm(){this.accountingRuleForm.get("debitRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("debitTags").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").reset()):(this.accountingRuleForm.get("accountToDebit").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").setValue(!1))}),this.accountingRuleForm.get("creditRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("creditTags").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").reset()):(this.accountingRuleForm.get("accountToCredit").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").setValue(!1))}),this.accountingRule.debitAccounts?(this.accountingRuleForm.get("debitRuleType").setValue("fixedAccount"),this.accountingRuleForm.get("accountToDebit").setValue(this.accountingRule.debitAccounts[0].id)):(this.accountingRuleForm.get("debitRuleType").setValue("listOfAccounts"),this.accountingRuleForm.get("debitTags").setValue(this.accountingRule.debitTags.map(t=>t.tag.id)),this.accountingRuleForm.get("allowMultipleDebitEntries").setValue(this.accountingRule.allowMultipleDebitEntries)),this.accountingRule.creditAccounts?(this.accountingRuleForm.get("creditRuleType").setValue("fixedAccount"),this.accountingRuleForm.get("accountToCredit").setValue(this.accountingRule.creditAccounts[0].id)):(this.accountingRuleForm.get("creditRuleType").setValue("listOfAccounts"),this.accountingRuleForm.get("creditTags").setValue(this.accountingRule.creditTags.map(t=>t.tag.id)),this.accountingRuleForm.get("allowMultipleCreditEntries").setValue(this.accountingRule.allowMultipleCreditEntries))}submit(){let t=this.accountingRuleForm.value;t.debitRuleType==="fixedAccount"?(delete t.debitTags,delete t.allowMultipleDebitEntries):delete t.accountToDebit,t.creditRuleType==="fixedAccount"?(delete t.creditTags,delete t.allowMultipleCreditEntries):delete t.accountToCredit,delete t.debitRuleType,delete t.creditRuleType,this.accountingService.updateAccountingRule(this.accountingRule.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-rule"]],decls:55,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],[1,"rule-wrapper","flex-48","layout-row","responsive-column"],[1,"flex-50"],["formControlName","debitRuleType",1,"flex-50","layout-row","gap-5percent","radio-group-spacing"],["value","fixedAccount"],["value","listOfAccounts"],[1,"flex-48","layout-row","gap-2percent","responsive-column"],["formControlName","creditRuleType",1,"flex-50","layout-row","gap-5-percent","radio-group-spacing"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","accountToDebit"],["formControlName","debitTags","multiple",""],[1,"flex-50","entries-wrapper"],["labelPosition","before","formControlName","allowMultipleDebitEntries",1,"entries"],["formControlName","accountToCredit"],["formControlName","creditTags","multiple",""],["labelPosition","before","formControlName","allowMultipleCreditEntries",1,"entries"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,S8e,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,w8e,2,2,"mat-option",6,Pe),r(),E(18,P8e,7,9,"mat-error"),r(),l(19,"div",7)(20,"mat-label",8),c(21),p(22,"translate"),r(),l(23,"mat-radio-group",9)(24,"mat-radio-button",10),c(25),p(26,"translate"),r(),l(27,"mat-radio-button",11),c(28),p(29,"translate"),r()()(),E(30,M8e,7,3,"mat-form-field",3),E(31,E8e,12,6,"div",12),l(32,"div",7)(33,"mat-label",8),c(34),p(35,"translate"),r(),l(36,"mat-radio-group",13)(37,"mat-radio-button",10),c(38),p(39,"translate"),r(),l(40,"mat-radio-button",11),c(41),p(42,"translate"),r()()(),E(43,O8e,7,3,"mat-form-field",3),E(44,F8e,12,6,"div",12),l(45,"mat-form-field",14)(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"textarea",15),r()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,k8e,3,4,"button",18),r()()()()),n&2&&(a(2),g("formGroup",i.accountingRuleForm),a(5),h(m(8,19,"labels.inputs.Accounting Rule Name")),a(3),I(i.accountingRuleForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,21,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.accountingRuleForm.controls.officeId.hasError("required")?18:-1),a(3),v("",m(22,23,"labels.inputs.Affected GL Entry (Debit) Rule Type")," *"),a(4),h(m(26,25,"labels.inputs.Fixed Account")),a(3),h(m(29,27,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.debitRuleType.value==="fixedAccount"?30:-1),a(),I(i.accountingRuleForm.controls.debitRuleType.value==="listOfAccounts"?31:-1),a(3),v("",m(35,29,"labels.inputs.Affected GL Entry (Credit) Rule Type")," *"),a(4),h(m(39,31,"labels.inputs.Fixed Account")),a(3),h(m(42,33,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.creditRuleType.value==="fixedAccount"?43:-1),a(),I(i.accountingRuleForm.controls.creditRuleType.value==="listOfAccounts"?44:-1),a(3),h(m(48,35,"labels.inputs.Description")),a(4),g("routerLink",oe(39,y8e)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,tr,ir,Ln,he],styles:[".rule-wrapper[_ngcontent-%COMP%]{margin:17.5px 0 0}.entries-wrapper[_ngcontent-%COMP%]{position:relative}.entries-wrapper[_ngcontent-%COMP%] .entries[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var B8e=()=>["../"];function R8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accrue Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N8e(e,o){if(e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2){let t=w();g("disabled",!t.periodicAccrualsForm.valid),a(2),v(" ",m(3,2,"labels.buttons.Run Periodic Accruals")," ")}}var Bv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPeriodicAccrualsForm()}createPeriodicAccrualsForm(){this.periodicAccrualsForm=this.formBuilder.group({tillDate:["",ce.required]})}submit(){let t=this.periodicAccrualsForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.tillDate instanceof Date&&(t.tillDate=this.dateUtils.formatDate(t.tillDate,this.settingsService.dateFormat)),this.accountingService.executePeriodicAccruals(t).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-periodic-accruals"]],decls:19,vars:15,consts:[["tillDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","tillDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],["icon","play",1,"m-r-10"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,R8e,7,9,"mat-error"),r()()(),l(14,"mat-card-actions",7)(15,"button",8),c(16),p(17,"translate"),r(),F(18,N8e,4,4,"button",9),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.periodicAccrualsForm),a(5),h(m(8,10,"labels.inputs.Accrue Till Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.periodicAccrualsForm.controls.tillDate.hasError("required")?13:-1),a(2),g("routerLink",oe(14,B8e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","EXECUTE_PERIODICACCRUALACCOUNTING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var L8e=()=>[10,25,50,100],V8e=()=>["create"],q8e=e=>["view",e];function z8e(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,V8e)),a(2),v(" ",m(3,2,"labels.buttons.Create Provisioning Entry")," "))}function H8e(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function G8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdUser)}}function j8e(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created On")))}function $8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdDate)}}function U8e(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Journal Entry Created")," "))}function W8e(e,o){if(e&1&&(l(0,"td",23),b(1,"mat-checkbox",24),r()),e&2){let t=o.$implicit;a(),g("disabled",!0)("checked",t.journalEntry)}}function Q8e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.View Report")))}function Y8e(e,o){if(e&1&&(l(0,"td",23)(1,"button",26),b(2,"fa-icon",27),c(3),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("routerLink",Nt(4,q8e,t.id)),a(2),v("",m(4,2,"labels.buttons.View")," ")}}function J8e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Recreate Provisioning")))}function K8e(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=V(t).$implicit,d=w();return q(d.recreateProvisioning(i,s.id))}),b(2,"fa-icon",29),c(3),p(4,"translate"),r()()}if(e&2){let t=o.$implicit;a(),g("disabled",t.journalEntry),a(2),v("",m(4,2,"labels.buttons.Recreate")," ")}}function X8e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.View Journal Entry")))}function Z8e(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=V(t).$implicit,d=w();return q(d.viewJournalEntry(i,s.id))}),b(2,"fa-icon",27),c(3),p(4,"translate"),r()()}if(e&2){let t=o.$implicit;a(),g("disabled",!t.journalEntry),a(2),v("",m(4,2,"labels.buttons.View")," ")}}function eBe(e,o){e&1&&b(0,"tr",30)}function tBe(e,o){e&1&&b(0,"tr",31)}var Rv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.displayedColumns=["createdUser","createdDate","journalEntry","viewReport","recreateProvisioning","viewJournalEntry"],this.route.data.subscribe(t=>{this.provisioningEntryData=t.provisioningEntries.pageItems})}ngOnInit(){this.setProvisioningEntries()}setProvisioningEntries(){this.dataSource=new Wt(this.provisioningEntryData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}recreateProvisioning(t,n){this.accountingService.recreateProvisioningEntries(n).subscribe(i=>{this.router.navigate(["view",i.resourceId],{relativeTo:this.route})}),t.stopPropagation()}viewJournalEntry(t,n){this.router.navigate(["journal-entries/view",n],{relativeTo:this.route}),t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-provisioning-entries"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","createdUser"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdDate"],["matColumnDef","journalEntry"],["matColumnDef","viewReport"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","recreateProvisioning"],["matColumnDef","viewJournalEntry"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"disabled","checked"],["mat-header-cell",""],["mat-button","","color","primary",3,"routerLink"],["icon","eye",1,"m-r-10"],["mat-button","","color","primary",3,"click","disabled"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,z8e,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,H8e,3,3,"th",9)(13,G8e,2,1,"td",10),Z(),X(14,11),F(15,j8e,3,3,"th",9)(16,$8e,2,1,"td",10),Z(),X(17,12),F(18,U8e,3,3,"th",9)(19,W8e,2,2,"td",10),Z(),X(20,13),F(21,Q8e,3,3,"th",14)(22,Y8e,5,6,"td",10),Z(),X(23,15),F(24,J8e,3,3,"th",14)(25,K8e,5,4,"td",10),Z(),X(26,16),F(27,X8e,3,3,"th",14)(28,Z8e,5,4,"td",10),Z(),F(29,eBe,1,0,"tr",17)(30,tBe,1,0,"tr",18),r(),b(31,"mat-paginator",19),r()()),n&2&&(a(),g("mifosxHasPermission","VIEW_ALL_PROVISIONING_ENTRIES"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,L8e)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var iBe=()=>["../"];function nBe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oBe(e,o){if(e&1&&(l(0,"button",12),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.provisioningEntryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Nv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createProvisioningEntryForm()}createProvisioningEntryForm(){this.provisioningEntryForm=this.formBuilder.group({date:["",ce.required],createjournalentries:[!1]})}submit(){let t=this.provisioningEntryForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.date instanceof Date&&(t.date=this.dateUtils.formatDate(t.date,this.settingsService.dateFormat)),this.accountingService.createProvisioningEntry(t).subscribe(n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-provisioning-entry"]],decls:23,vars:18,consts:[["datePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","date",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["labelPosition","before","formControlName","createjournalentries"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,nBe,7,9,"mat-error"),r(),l(14,"div",7)(15,"mat-checkbox",8),c(16),p(17,"translate"),r()()()(),l(18,"mat-card-actions",9)(19,"button",10),c(20),p(21,"translate"),r(),F(22,oBe,3,4,"button",11),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.provisioningEntryForm),a(5),h(m(8,11,"labels.inputs.Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.provisioningEntryForm.controls.date.hasError("required")?13:-1),a(3),v(" ",m(17,13,"labels.inputs.Create Journal Entries")," "),a(3),g("routerLink",oe(17,iBe)),a(),v(" ",m(21,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PROVISIONING_ENTRIES")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var aBe=()=>[10,25,50,100];function rBe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.createProvisioningJournalEntries())}),b(1,"fa-icon",31),c(2),p(3,"translate"),r()}if(e&2){let t=w(2);g("disabled",t.provisioningEntry.journalEntry),a(2),v(" ",m(3,2,"labels.buttons.Create Journal Entries")," ")}}function lBe(e,o){if(e&1&&(l(0,"div",3)(1,"div",23),F(2,rBe,4,4,"button",24),r(),l(3,"mat-card")(4,"mat-card-content")(5,"div",25)(6,"div",26),c(7),p(8,"translate"),r(),l(9,"div",27),c(10),r(),l(11,"div",26),c(12),p(13,"translate"),r(),l(14,"div",27),c(15),r(),l(16,"div",28),c(17),p(18,"translate"),r(),l(19,"div",29),c(20),r()()()()()),e&2){let t=w();a(2),g("mifosxHasPermission","CREATE_JOURNAL_ENTRY"),a(5),v(" ",m(8,7,"labels.inputs.Created By")," "),a(3),v(" ",t.provisioningEntry.createdUser," "),a(2),v(" ",m(13,9,"labels.inputs.Created On")," "),a(3),v(" ",t.provisioningEntry.createdDate," "),a(2),v(" ",m(18,11,"labels.inputs.Amount to be Reserved")," "),a(3),v(" ",t.provisioningEntry.reservedAmount," ")}}function sBe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function cBe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function pBe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.categoryName),a(),v(" ",t.categoryName," ")}}function mBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function dBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function uBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function fBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function hBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency Code")))}function gBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currencyCode)}}function _Be(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category Name")))}function CBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function vBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Provisioning Amount")))}function xBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountreserved)}}function bBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Liability Account (CR)")," "))}function yBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.liabilityAccountName)}}function SBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account (DR)")))}function wBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.expenseAccountName)}}function PBe(e,o){e&1&&b(0,"tr",34)}function TBe(e,o){e&1&&b(0,"tr",35)}var Lv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.officeName=new it,this.loanProduct=new it,this.provisioningCategory=new it,this.displayedColumns=["officeName","productName","currencyCode","categoryName","amountreserved","liabilityAccountName","expenseAccountName"],this.filterValue={officeName:"",productName:"",categoryName:""},this.route.data.subscribe(t=>{this.provisioningEntryId=t.provisioningEntry.id,this.provisioningEntry=t.provisioningEntry,this.provisioningEntryEntries=t.provisioningEntryEntries,this.officeData=t.offices,this.loanProductData=t.loanProducts,this.provisioningCategoryData=t.provisiningCategories})}ngOnInit(){this.setProvisioningEntryEntries(),this.setFilteredOffices(),this.setFilteredLoanProducts(),this.setFilteredProvisioningCategories()}ngAfterViewInit(){this.officeName.valueChanges.pipe(Mn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeName")})).subscribe(),this.loanProduct.valueChanges.pipe(Mn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"productName")})).subscribe(),this.provisioningCategory.valueChanges.pipe(Mn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"categoryName")})).subscribe()}filterPredicate(t,n){return t.officeName.toLowerCase().indexOf(n.officeName)!==-1&&t.productName.toLowerCase().indexOf(n.productName)!==-1&&t.categoryName.toLowerCase().indexOf(n.categoryName)!==-1}setProvisioningEntryEntries(){this.dataSource=new Wt(this.provisioningEntryEntries.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=this.filterPredicate}applyFilter(t,n){this.filterValue[n]=t,this.dataSource.filter=this.filterValue}setFilteredOffices(){this.filteredOfficeData=this.officeName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredLoanProducts(){this.filteredLoanProductData=this.loanProduct.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterLoanProductAutocompleteData(t):this.loanProductData))}setFilteredProvisioningCategories(){this.filteredProvisioningCategoryData=this.provisioningCategory.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.categoryName),Mn(t=>t?this.filterProvisioningCategoryAutocompleteData(t):this.provisioningCategoryData))}filterOfficeAutocompleteData(t){return this.officeData.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))}filterLoanProductAutocompleteData(t){return this.loanProductData.filter(n=>n.name.toLowerCase().includes(t.toLocaleLowerCase()))}filterProvisioningCategoryAutocompleteData(t){return this.provisioningCategoryData.filter(n=>n.categoryName.toLowerCase().includes(t.toLocaleLowerCase()))}createProvisioningJournalEntries(){this.accountingService.createProvisioningJournalEntries(this.provisioningEntryId).subscribe(t=>{this.router.navigate(["../../journal-entries/view",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-provisioning-entry"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:58,vars:27,consts:[["officeNameAutocomplete","matAutocomplete"],["loanProductAutocomplete","matAutocomplete"],["provisioningCategoryAutocomplete","matAutocomplete"],[1,"container"],[1,"container","m-t-20","layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-31"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],[3,"value"],[1,"mat-elevation-z8","container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","currencyCode"],["matColumnDef","categoryName"],["matColumnDef","amountreserved"],["matColumnDef","liabilityAccountName"],["matColumnDef","expenseAccountName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[1,"layout-row-wrap","responsive-column","content"],[1,"flex-16","header"],[1,"flex-16"],[1,"flex-18","header"],[1,"flex-18"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1&&(E(0,lBe,21,13,"div",3),l(1,"div",4)(2,"mat-form-field",5)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",6),r(),l(7,"mat-form-field",5)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",6),r(),l(12,"mat-form-field",5)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),r()(),l(17,"mat-autocomplete",7,0),Se(19,sBe,2,2,"mat-option",8,Pe),p(21,"async"),r(),l(22,"mat-autocomplete",7,1),Se(24,cBe,2,2,"mat-option",8,Pe),p(26,"async"),r(),l(27,"mat-autocomplete",7,2),Se(29,pBe,2,2,"mat-option",8,Pe),p(31,"async"),r(),l(32,"div",9)(33,"table",10),X(34,11),F(35,mBe,3,3,"th",12)(36,dBe,2,1,"td",13),Z(),X(37,14),F(38,uBe,3,3,"th",12)(39,fBe,2,1,"td",13),Z(),X(40,15),F(41,hBe,3,3,"th",12)(42,gBe,2,1,"td",13),Z(),X(43,16),F(44,_Be,3,3,"th",12)(45,CBe,2,1,"td",13),Z(),X(46,17),F(47,vBe,3,3,"th",12)(48,xBe,2,1,"td",13),Z(),X(49,18),F(50,bBe,3,3,"th",12)(51,yBe,2,1,"td",13),Z(),X(52,19),F(53,SBe,3,3,"th",12)(54,wBe,2,1,"td",13),Z(),F(55,PBe,1,0,"tr",20)(56,TBe,1,0,"tr",21),r(),b(57,"mat-paginator",22),r()),n&2){let s=ve(18),d=ve(23),u=ve(28);I(i.provisioningEntry?0:-1),a(4),h(m(5,14,"labels.inputs.Office Name")),a(2),g("formControl",i.officeName)("matAutocomplete",s),a(3),h(m(10,16,"labels.inputs.Loan Product")),a(2),g("formControl",i.loanProduct)("matAutocomplete",d),a(3),h(m(15,18,"labels.inputs.Provisioning Category")),a(2),g("formControl",i.provisioningCategory)("matAutocomplete",u),a(3),we(m(21,20,i.filteredOfficeData)),a(5),we(m(26,22,i.filteredLoanProductData)),a(5),we(m(31,24,i.filteredProvisioningCategoryData)),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(26,aBe))}},dependencies:[ue,fe,st,$e,_n,Ue,Je,Fe,Be,ze,ft,xe,Ke,ke,er,Za,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he],styles:["table[_ngcontent-%COMP%]{width:100%}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var MBe=()=>[10,25,50,100];function DBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entry ID")))}function EBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function IBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function OBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function ABe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction Date")))}function FBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionDate)}}function kBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction ID")))}function BBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}function RBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function NBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function LBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function VBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUserName)}}function qBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Code")))}function zBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}function HBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Name")))}function GBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function jBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit")))}function $Be(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),v(" ",(t.currency.displaySymbol||t.currency.code)+" "+t.amount," ")}}function UBe(e,o){if(e&1&&(l(0,"td",22),E(1,$Be,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="DEBIT"?1:-1)}}function WBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit")))}function QBe(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),v(" ",(t.currency.displaySymbol||t.currency.code)+" "+t.amount," ")}}function YBe(e,o){if(e&1&&(l(0,"td",22),E(1,QBe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function JBe(e,o){e&1&&b(0,"tr",23)}function KBe(e,o){e&1&&b(0,"tr",24)}var Vv=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["id","officeName","transactionDate","transactionId","glAccountType","createdByUserName","glAccountCode","glAccountName","debit","credit"],this.route.data.subscribe(t=>{this.provisioningJournalEntryData=t.provisioningJournalEntry.pageItems})}ngOnInit(){this.setProvisioningJournalEntry()}setProvisioningJournalEntry(){this.dataSource=new Wt(this.provisioningJournalEntryData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"glAccountType":return t.glAccountType.value;case"debit":return t.amount;case"credit":return t.amount;default:return t[n]}},this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-provisioning-journal-entries"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:42,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","transactionDate"],["matColumnDef","transactionId"],["matColumnDef","glAccountType"],["matColumnDef","createdByUserName"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["matColumnDef","debit"],["matColumnDef","credit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"input",3),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(7,"div",4)(8,"table",5),X(9,6),F(10,DBe,3,3,"th",7)(11,EBe,2,1,"td",8),Z(),X(12,9),F(13,IBe,3,3,"th",7)(14,OBe,2,1,"td",8),Z(),X(15,10),F(16,ABe,3,3,"th",7)(17,FBe,2,1,"td",8),Z(),X(18,11),F(19,kBe,3,3,"th",7)(20,BBe,2,1,"td",8),Z(),X(21,12),F(22,RBe,3,3,"th",7)(23,NBe,2,1,"td",8),Z(),X(24,13),F(25,LBe,3,3,"th",7)(26,VBe,2,1,"td",8),Z(),X(27,14),F(28,qBe,3,3,"th",7)(29,zBe,2,1,"td",8),Z(),X(30,15),F(31,HBe,3,3,"th",7)(32,GBe,2,1,"td",8),Z(),X(33,16),F(34,jBe,3,3,"th",7)(35,UBe,2,1,"td",8),Z(),X(36,17),F(37,WBe,3,3,"th",7)(38,YBe,2,1,"td",8),Z(),F(39,JBe,1,0,"tr",18)(40,KBe,1,0,"tr",19),r(),b(41,"mat-paginator",20),r()()),n&2&&(a(4),h(m(5,5,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(31),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,MBe)))},dependencies:[ue,fe,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var h5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingRules(!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var n1=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getCurrencies()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var qv=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getPaymentTypes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var eu=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getGlAccounts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var g5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getFinancialActivityAccounts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var _5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getFinancialActivityAccountsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var C5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getFinancialActivityAccount(n,!1)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var v5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getFinancialActivityAccount(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var x5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getChartOfAccounts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var b5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getChartOfAccountsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var y5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getGlAccount(n,!0).pipe(Mn(i=>{let s=[];switch(i.type.value){case"ASSET":s=i.assetHeaderAccountOptions;break;case"EQUITY":s=i.equityHeaderAccountOptions;break;case"EXPENSE":s=i.expenseHeaderAccountOptions;break;case"INCOME":s=i.incomeHeaderAccountOptions;break;case"LIABILITY":s=i.liabilityHeaderAccountOptions;break}return i.parentId&&(i.parent=s.find(d=>d.id===i.parentId)),i}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var S5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingClosures()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var w5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getAccountingClosure(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var P5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingRules()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var zv=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingRulesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var T5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getAccountingRule(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var M5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getProvisioningEntries()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var D5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getProvisioningEntry(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var E5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getProvisioningEntryEntries(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var I5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getLoanProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var O5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getProvisioningCategories()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var A5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getProvisioningJournalEntries(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Hv=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getJournalEntry(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var xN=(()=>{class e{constructor(){this.externalAssetOwnerService=T(Kg)}resolve(t){let n=t.paramMap.get("transferId")||t.parent.paramMap.get("transferId");return this.externalAssetOwnerService.retrieveExternalAssetOwnerTransferJournalEntries(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var F5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getConfigurationByName(ii.CONFIG_ASSET_EXTERNALIZATION)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var XBe=[_o.withShell([{path:"accounting",data:{title:"Accounting",breadcrumb:"Accounting"},children:[{path:"",component:mv},{path:"journal-entries",data:{title:"Search Journal Entry",breadcrumb:"Journal Entries"},children:[{path:"",component:hv,resolve:{offices:zr,glAccounts:eu}},{path:"frequent-postings",component:dv,data:{title:"Frequent Postings",breadcrumb:"Frequent Postings"},resolve:{offices:zr,accountingRules:h5,currencies:n1,paymentTypes:qv}},{path:"create",component:uv,data:{title:"Create Journal Entry",breadcrumb:"Create"},resolve:{offices:zr,currencies:n1,paymentTypes:qv,glAccounts:eu,globalConfig:F5}},{path:"transactions",data:{title:"Transactions",breadcrumb:"Transactions",addBreadcrumbLink:!1},children:[{path:"view/:id",component:Qg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:Hv}}]}]},{path:"financial-activity-mappings",data:{title:"Financial Activity Mappings",breadcrumb:"Financial Activity Mappings"},children:[{path:"",component:gv,resolve:{financialActivityAccounts:g5}},{path:"create",component:_v,data:{title:"Create Financial Activity Mapping",breadcrumb:"Create"},resolve:{financialActivityAccountsTemplate:_5}},{path:"view/:id",data:{title:"View Financial Activity Mapping",routeParamBreadcrumb:"id"},children:[{path:"",component:Cv,resolve:{financialActivityAccount:C5}},{path:"edit",component:vv,data:{title:"Edit Financial Activity Mapping",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{financialActivityAccountAndTemplate:v5}}]}]},{path:"migrate-opening-balances",component:xv,data:{title:"Migrate Opening Balances",breadcrumb:"Migrate Opening Balances"},resolve:{offices:zr,currencies:n1}},{path:"chart-of-accounts",data:{title:"Chart of Accounts",breadcrumb:"Chart of Accounts"},children:[{path:"",component:yv,resolve:{chartOfAccounts:x5}},{path:"gl-accounts",children:[{path:"create",component:Sv,data:{title:"Create GL Account",breadcrumb:"Create GL Account"},resolve:{chartOfAccountsTemplate:b5}},{path:"view/:id",data:{title:"View GL Account",routeResolveBreadcrumb:["glAccountAndChartOfAccountsTemplate","name"]},resolve:{glAccountAndChartOfAccountsTemplate:y5},runGuardsAndResolvers:"always",children:[{path:"",component:wv},{path:"edit",component:Pv,data:{title:"Edit GL Account",breadcrumb:"Edit",routeResolveBreadcrumb:!1}}]}]}]},{path:"closing-entries",data:{title:"Accounting Closures",breadcrumb:"Closing Entries"},children:[{path:"",component:Tv,resolve:{offices:zr,glAccountClosures:S5}},{path:"create",component:Mv,data:{title:"Create Accounting Closure",breadcrumb:"Create"},resolve:{offices:zr}},{path:"view/:id",data:{title:"View Accounting Closure",routeParamBreadcrumb:"id"},resolve:{glAccountClosure:w5},runGuardsAndResolvers:"always",children:[{path:"",component:Dv},{path:"edit",component:Ev,data:{title:"Edit Accounting Closure",breadcrumb:"Edit",routeParamBreadcrumb:!1}}]}]},{path:"accounting-rules",data:{title:"Accounting Rules",breadcrumb:"Accounting Rules"},children:[{path:"",component:Iv,resolve:{accountingRules:P5}},{path:"create",component:Av,data:{title:"Create Accounting Rule",breadcrumb:"Create"},resolve:{accountingRulesTemplate:zv}},{path:"view/:id",data:{title:"View Accounting Rule",routeResolveBreadcrumb:["accountingRule","name"]},resolve:{accountingRule:T5},runGuardsAndResolvers:"always",children:[{path:"",component:Fv},{path:"edit",component:kv,data:{title:"Edit Accounting Rules",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{accountingRulesTemplate:zv}}]}]},{path:"periodic-accruals",component:Bv,data:{title:"Periodic Accrual Accounting",breadcrumb:"Execute Periodic Accrual Accounting"}},{path:"provisioning-entries",data:{title:"Provisioning Entries",breadcrumb:"Provisioning Entries"},children:[{path:"",component:Rv,resolve:{provisioningEntries:M5}},{path:"create",component:Nv,data:{title:"Create Provisioning Entry",breadcrumb:"Create"}},{path:"view/:id",component:Lv,data:{title:"View Provisioning Entry",routeParamBreadcrumb:"id"},resolve:{provisioningEntry:D5,provisioningEntryEntries:E5,office:zr,loanProducts:I5,provisioningCategories:O5}},{path:"journal-entries",data:{breadcrumb:"Journal Entries",addBreadcrumbLink:!1},children:[{path:"view/:id",component:Vv,data:{title:"View Provisioning Journal Entry",routeParamBreadcrumb:"id"},resolve:{provisioningJournalEntries:A5}}]}]}]},{path:"journal-entry",data:{title:"Journal Entries",breadcrumb:"Journal Entries"},children:[{path:"view/:id",component:Qg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:Hv}},{path:"view-transfer/:transferId",component:Qg,data:{title:"View Transfer",routeParamBreadcrumb:"transferId"},resolve:{transferJournalEntryData:xN}}]}])],bN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,h5,n1,qv,eu,Hv,g5,_5,C5,v5,x5,b5,y5,S5,w5,P5,zv,T5,M5,D5,E5,I5,O5,A5,F5],imports:[gn.forChild(XBe),gn]})}}return e})();var yN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,Er,bN,ha,mv,dv,uv,hv,Fk,gv,_v,Cv,vv,xv,yv,Sv,wv,Pv,Tv,Mv,Dv,Ev,Iv,Av,Fv,kv,Bv,Rv,Nv,Lv,Vv]})}}return e})();var ZBe=()=>[10,25,50,100],eRe=()=>["create"],tRe=e=>[e];function iRe(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,eRe)),a(2),v(" ",m(3,2,"labels.buttons.Create Preference")," "))}function nRe(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Account Number Preferences")," "))}function oRe(e,o){if(e&1&&(l(0,"td",17),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.accountType.value,"catalogs")," ")}}function aRe(e,o){e&1&&b(0,"tr",18)}function rRe(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,tRe,t.id))}}var Gv=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["accountType"],this.route.data.subscribe(t=>{this.accountNumberPreferencesData=t.accountNumberPreferences})}ngOnInit(){this.setAccountNumberPreferences()}setAccountNumberPreferences(){this.dataSource=new Wt(this.accountNumberPreferencesData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>t.accountType.value,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,n)=>t.accountType.value.toLowerCase().indexOf(n)!==-1}applyFilter(t){this.dataSource.filter=t.toLowerCase().trim()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-account-number-preferences"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountType"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,iRe,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,nRe,3,3,"th",9)(13,oRe,3,4,"td",10),Z(),F(14,aRe,1,0,"tr",11)(15,rRe,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","ADD_PREFERENCES"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,ZBe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var lRe=()=>["../"];function sRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function cRe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function mRe(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountNumberPreferenceForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var jv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.accountNumberPreferencesTemplateData=t.accountNumberPreferencesTemplate})}ngOnInit(){this.createAccountNumberPreferenceForm(),this.getPrefixTypeValue()}getPrefixTypeValue(){this.accountNumberPreferenceForm.get("accountType").valueChanges.subscribe(t=>{this.prefixTypeData=this.accountNumberPreferencesTemplateData.prefixTypeOptions[`accountType.${this.accountNumberPreferencesTemplateData.accountTypeOptions.find(n=>n.id===t).value.toLowerCase()}`]})}createAccountNumberPreferenceForm(){this.accountNumberPreferenceForm=this.formBuilder.group({accountType:["",ce.required],prefixType:[""]})}submit(){let t=this.accountNumberPreferenceForm.value;t.prefixType===""&&(t.prefixType=void 0),this.systemService.createAccountNumberPreference(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-account-number-preference"]],decls:25,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","accountType"],[3,"value"],["formControlName","prefixType"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,sRe,3,5,"mat-option",4,Pe),r(),E(12,cRe,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,pRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,mRe,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.accountNumberPreferenceForm),a(5),h(m(8,7,"labels.inputs.Account Type")),a(3),we(i.accountNumberPreferencesTemplateData.accountTypeOptions),a(2),I(i.accountNumberPreferenceForm.controls.accountType.hasError("required")?12:-1),a(3),h(m(16,9,"labels.inputs.Prefix Field")),a(3),we(i.prefixTypeData),a(3),g("routerLink",oe(13,lRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dRe=()=>["../"];function uRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function fRe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function gRe(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountNumberPreferenceForm.valid||t.accountNumberPreferenceForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var $v=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.systemService=T(ii),this.router=T(qe),this.route.data.subscribe(t=>{this.accountNumberPreferenceData=t.accountNumberPreference,this.accountNumberPreferencesTemplateData=t.accountNumberPreferencesTemplate})}ngOnInit(){this.prefixTypeData=this.accountNumberPreferencesTemplateData.prefixTypeOptions[this.accountNumberPreferenceData.accountType.code],this.createAccountNumberPreferenceForm()}createAccountNumberPreferenceForm(){this.accountNumberPreferenceForm=this.formBuilder.group({accountType:[{value:this.accountNumberPreferenceData.accountType.id,disabled:!0},ce.required],prefixType:[this.accountNumberPreferenceData.prefixType?this.accountNumberPreferenceData.prefixType.id:0]})}submit(){let t=this.accountNumberPreferenceForm.value;t.prefixType===""&&(t.prefixType=void 0),this.systemService.updateAccountNumberPreference(this.accountNumberPreferenceData.id,t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-account-number-preference"]],decls:25,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","accountType"],[3,"value"],["formControlName","prefixType"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,uRe,3,5,"mat-option",4,Pe),r(),E(12,fRe,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,hRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,gRe,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.accountNumberPreferenceForm),a(5),h(m(8,7,"labels.inputs.Account Type")),a(3),we(i.accountNumberPreferencesTemplateData.accountTypeOptions),a(2),I(i.accountNumberPreferenceForm.controls.accountType.hasError("required")?12:-1),a(3),h(m(16,9,"labels.inputs.Prefix Field")),a(3),we(i.prefixTypeData),a(3),g("routerLink",oe(13,dRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var _Re=()=>["edit"];function CRe(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,_Re)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function vRe(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function xRe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Prefix Type")," "))}function bRe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.accountNumberPreferenceData.prefixType.value," ")}}var Uv=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.accountNumberPreferenceData=t.accountNumberPreference})}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.heading.Account Number Preferences")+" "+this.accountNumberPreferenceData.id}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteAccountNumberPreference(this.accountNumberPreferenceData.id).subscribe(()=>{this.router.navigate(["/system/account-number-preferences"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-account-number-preference"]],decls:15,vars:11,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,CRe,4,5,"button",1)(2,vRe,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),p(12,"translateKey"),r(),E(13,xRe,3,3,"div",5),E(14,bRe,2,1,"div",6),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_ACCOUNTNUMBERFORMAT"),a(),g("mifosxHasPermission","DELETE_ACCOUNTNUMBERFORMAT"),a(6),v(" ",m(9,6,"labels.inputs.Account Type")," "),a(3),v(" ",Ft(12,8,i.accountNumberPreferenceData.accountType.value,"catalogs")," "),a(2),I(i.accountNumberPreferenceData.prefixType?13:-1),a(),I(i.accountNumberPreferenceData.prefixType?14:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Wv=class{constructor(o){this.systemService=o,this.auditTrailsSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getAuditTrails(o,t="",n="",i=0,s=10){this.auditTrailsSubject.next([]),this.systemService.getAuditTrails(o,t,n,i*s,s).subscribe(d=>{this.recordsSubject.next(d.totalFilteredRecords),this.auditTrailsSubject.next(d.pageItems)})}connect(o){return this.auditTrailsSubject.asObservable()}disconnect(o){this.auditTrailsSubject.complete(),this.recordsSubject.complete()}};var SN=(e,o)=>({id:e,name:o}),yRe=e=>[e],SRe=()=>[10,25,50,100];function wRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.processingResult," ")}}function PRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,SN,t.id,t.username)),a(),v(" ",t.username," ")}}function TRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function MRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function DRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,SN,t.id,t.username)),a(),v(" ",t.username," ")}}function ERe(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",27),r())}function IRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Trail ID")))}function ORe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function ARe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Resource ID")))}function FRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.resourceId)}}function kRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function BRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.processingResult)}}function RRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made By")))}function NRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maker)}}function LRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function VRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function qRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function zRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function HRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function GRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function jRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made Date")))}function $Re(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.madeOnDate))}}function URe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checker")))}function WRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.checker)}}function QRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checked Date")))}function YRe(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.checkedOnDate))}}function JRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Ip")))}function KRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.ip)}}function XRe(e,o){e&1&&b(0,"tr",45)}function ZRe(e,o){if(e&1&&b(0,"tr",46),e&2){let t=o.$implicit;g("routerLink",Nt(1,yRe,t.id))}}function e9e(e,o){if(e&1&&(l(0,"table",25),X(1,28),F(2,IRe,3,3,"th",29)(3,ORe,2,1,"td",30),Z(),X(4,31),F(5,ARe,3,3,"th",29)(6,FRe,2,1,"td",30),Z(),X(7,32),F(8,kRe,3,3,"th",29)(9,BRe,2,1,"td",30),Z(),X(10,33),F(11,RRe,3,3,"th",29)(12,NRe,2,1,"td",30),Z(),X(13,34),F(14,LRe,3,3,"th",29)(15,VRe,2,1,"td",30),Z(),X(16,35),F(17,qRe,3,3,"th",29)(18,zRe,2,1,"td",30),Z(),X(19,36),F(20,HRe,3,3,"th",29)(21,GRe,2,1,"td",30),Z(),X(22,37),F(23,jRe,3,3,"th",29)(24,$Re,3,3,"td",30),Z(),X(25,38),F(26,URe,3,3,"th",29)(27,WRe,2,1,"td",30),Z(),X(28,39),F(29,QRe,3,3,"th",29)(30,YRe,3,3,"td",30),Z(),X(31,40),F(32,JRe,3,3,"th",29)(33,KRe,2,1,"td",30),Z(),F(34,XRe,1,0,"tr",41)(35,ZRe,1,3,"tr",42),r()),e&2){let t=w();g("dataSource",t.dataSource),a(34),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function t9e(e,o){if(e&1&&(b(0,"mat-paginator",26),p(1,"async")),e&2){let t=w();g("length",m(1,3,t.dataSource==null?null:t.dataSource.records$))("pageSize",10)("pageSizeOptions",oe(5,SRe))}}var Qv=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.displayedColumns=["id","resourceId","processingResult","maker","actionName","entityName","officeName","madeOnDate","checker","checkedOnDate","clientIp"],this.filterAuditTrailsBy=[{type:"actionName",value:""},{type:"entityName",value:""},{type:"resourceId",value:""},{type:"makerId",value:""},{type:"makerDateTimeFrom",value:""},{type:"makerDateTimeTo",value:""},{type:"checkerDateTimeFrom",value:""},{type:"checkerDateTimeTo",value:""},{type:"checkerId",value:""},{type:"processingResult",value:""},{type:"dateFormat",value:this.settingsService.dateFormat},{type:"locale",value:this.settingsService.language.code}],this.user=new it(""),this.fromDate=new it,this.fromTime=new it,this.checkedFromDate=new it,this.checkedFromTime=new it,this.processingResult=new it,this.actionName=new it,this.resourceId=new it(""),this.toDate=new it,this.toTime=new it,this.checkedToDate=new it,this.checkedToTime=new it,this.entityName=new it,this.checker=new it,this.isLoading=!1,this.route.data.subscribe(t=>{this.auditTrailSearchTemplateData=t.auditTrailSearchTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setFilteredUsers(),this.setFilteredActions(),this.setFilteredEntities(),this.setFilteredCheckers(),this.dataSource=new Wv(this.systemService),this.getAuditTrails()}ngAfterViewInit(){this.user.valueChanges.pipe(Mn(t=>t.id?t.id:""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"makerId")})).subscribe(),this.fromDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.fromTime.value),"makerDateTimeFrom")})).subscribe(),this.fromTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.fromDate.value,t),"makerDateTimeFrom")})).subscribe(),this.toDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.toTime.value),"makerDateTimeTo")})).subscribe(),this.toTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.toDate.value,t),"makerDateTimeTo")})).subscribe(),this.checkedFromDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.checkedFromTime.value),"checkerDateTimeFrom")})).subscribe(),this.checkedFromTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.checkedFromDate.value,t),"checkerDateTimeFrom")})).subscribe(),this.checkedToDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.checkedToTime.value),"checkerDateTimeTo")})).subscribe(),this.checkedToTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.checkedToDate.value,t),"checkerDateTimeTo")})).subscribe(),this.resourceId.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"resourceId")})).subscribe(),this.actionName.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"actionName")})).subscribe(),this.entityName.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"entityName")})).subscribe(),this.checker.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t.id,"checkerId")})).subscribe(),this.sort&&this.paginator&&ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadAuditTrailsPage())).subscribe()}getAuditTrails(){this.isLoading=!0;let t=this.sort?this.sort.active:"",n=this.sort?this.sort.direction:"",i=this.paginator?this.paginator.pageIndex:0,s=this.paginator?this.paginator.pageSize:20;this.dataSource.getAuditTrails(this.filterAuditTrailsBy,t,n,i,s),this.isLoading=!1}loadAuditTrailsPage(){this.sort&&!this.sort.direction&&delete this.sort.active,this.getAuditTrails()}applyFilter(t,n){this.paginator&&(this.paginator.pageIndex=0);let i=this.filterAuditTrailsBy.findIndex(s=>s.type===n);this.filterAuditTrailsBy[i].value=t,this.loadAuditTrailsPage()}displayUserName(t){return t?t.name:void 0}displayActionName(t){return t||void 0}displayEntityName(t){return t||void 0}setFilteredUsers(){this.filteredUserData=this.user.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredCheckers(){this.filteredCheckerData=this.checker.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredActions(){this.filteredActionData=this.actionName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:""),Mn(t=>t?this.filterActionAutocompleteData(t):this.auditTrailSearchTemplateData.actionNames))}setFilteredEntities(){this.filteredEntityData=this.entityName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:""),Mn(t=>t?this.filterEntityAutocompleteData(t):this.auditTrailSearchTemplateData.entityNames))}filterUserAutocompleteData(t){return this.auditTrailSearchTemplateData.appUsers.filter(n=>n.username.toLowerCase().includes(t.toLowerCase()))}filterActionAutocompleteData(t){return this.auditTrailSearchTemplateData.actionNames.filter(n=>n.toLowerCase().includes(t.toLowerCase()))}filterEntityAutocompleteData(t){return this.auditTrailSearchTemplateData.entityNames.filter(n=>n.toLowerCase().includes(t.toLowerCase()))}downloadCSV(){let t=this.settingsService.dateFormat,n=(d,u)=>u===void 0?"":u,i=["ID","Resource ID","Status","Office","Made On","Maker","Checked On","Checker","Entity","Action","Client"],s=["id","resourceId","processingResult","officeName","madeOnDate","maker","checkedOnDate","checker","entityName","actionName","clientName"];this.systemService.getAuditTrails(this.filterAuditTrailsBy,this.sort?.active??"",this.sort?.direction??"",0,-1).subscribe(d=>{if(d!==void 0){let u=d.pageItems.map(_=>s.map(C=>(C==="madeOnDate"||C==="checkedOnDate")&&_[C]!=null&&_[C]!==""?JSON.stringify(this.dateUtils.formatDate(_[C],"yyyy-MM-ddTHH:mm:ssZ")):JSON.stringify(_[C],n)));u.unshift(`data:text/csv;charset=utf-8,${i.join()}`),u=u.join(`\r -`);let f=document.createElement("a");f.setAttribute("href",encodeURI(u)),f.setAttribute("download","Audit Trails.csv"),document.body.appendChild(f),f.click(),document.body.removeChild(f)}})}getDate(t){let n=this.settingsService.dateFormat;return this.dateUtils.formatDate(t,n)}getDateTime(t,n){if(!t)return"";let i=new Date(t);if(n){let[s,d,u]=n.split(":").map(Number);i.setHours(s||0),i.setMinutes(d||0),i.setSeconds(u||0)}return this.dateUtils.formatDate(i,"yyyy-MM-ddTHH:mm:ssZ")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-audit-trails"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:118,vars:94,consts:[["fromDatePicker",""],["toDatePicker",""],["checkedFromDatePicker",""],["checkedToDatePicker",""],["userNameAutocomplete","matAutocomplete"],["actionNameAutocomplete","matAutocomplete"],["entityNameAutocomplete","matAutocomplete"],["checkerAutocomplete","matAutocomplete"],[1,"container","m-b-20","layout-row","align-end"],["mat-raised-button","","color","primary",3,"click"],["icon","file",1,"m-r-10"],[1,"container","layout-row-wrap","gap-8px","responsive-column"],[1,"flex-48"],["matInput","",3,"formControl"],[3,"selectionChange","formControl"],[3,"value"],["matInput","",3,"formControl","matAutocomplete"],[1,"flex-48","layout-row-wrap","gap-8px"],[1,"flex-60",3,"click"],["matInput","","placeholder","yyyy-MM-dd",3,"min","max","matDatepicker","formControl"],["matSuffix","",3,"for"],[1,"flex-38"],["matInput","","type","time","step","1","placeholder","HH:MM:SS",1,"time-input",3,"formControl"],["autoActiveFirstOption","",3,"displayWith"],[1,"container","mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["mode","indeterminate"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resourceId"],["matColumnDef","processingResult"],["matColumnDef","maker"],["matColumnDef","actionName"],["matColumnDef","entityName"],["matColumnDef","officeName"],["matColumnDef","madeOnDate"],["matColumnDef","checker"],["matColumnDef","checkedOnDate"],["matColumnDef","clientIp"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",8)(1,"button",9),R("click",function(){return V(s),q(i.downloadCSV())}),b(2,"fa-icon",10),c(3),p(4,"translate"),r()(),l(5,"div",11)(6,"mat-form-field",12)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",13),r(),l(11,"mat-form-field",12)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",14),R("selectionChange",function(u){return V(s),q(i.applyFilter(u.value,"processingResult"))}),Se(16,wRe,2,2,"mat-option",15,Pe),r()(),l(18,"mat-form-field",12)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",16),r(),l(23,"mat-form-field",12)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",16),r(),l(28,"mat-form-field",12)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",16),r(),l(33,"mat-form-field",12)(34,"mat-label"),c(35),p(36,"translate"),r(),b(37,"input",16),r(),l(38,"div",17)(39,"mat-form-field",18),R("click",function(){V(s);let u=ve(46);return q(u.open())}),l(40,"mat-label"),c(41),p(42,"translate"),r(),b(43,"input",19)(44,"mat-datepicker-toggle",20)(45,"mat-datepicker",null,0),r(),l(47,"mat-form-field",21)(48,"mat-label"),c(49),p(50,"translate"),r(),b(51,"input",22),r()(),l(52,"div",17)(53,"mat-form-field",18),R("click",function(){V(s);let u=ve(60);return q(u.open())}),l(54,"mat-label"),c(55),p(56,"translate"),r(),b(57,"input",19)(58,"mat-datepicker-toggle",20)(59,"mat-datepicker",null,1),r(),l(61,"mat-form-field",21)(62,"mat-label"),c(63),p(64,"translate"),r(),b(65,"input",22),r()(),l(66,"div",17)(67,"mat-form-field",18),R("click",function(){V(s);let u=ve(74);return q(u.open())}),l(68,"mat-label"),c(69),p(70,"translate"),r(),b(71,"input",19)(72,"mat-datepicker-toggle",20)(73,"mat-datepicker",null,2),r(),l(75,"mat-form-field",21)(76,"mat-label"),c(77),p(78,"translate"),r(),b(79,"input",22),r()(),l(80,"div",17)(81,"mat-form-field",18),R("click",function(){V(s);let u=ve(88);return q(u.open())}),l(82,"mat-label"),c(83),p(84,"translate"),r(),b(85,"input",19)(86,"mat-datepicker-toggle",20)(87,"mat-datepicker",null,3),r(),l(89,"mat-form-field",21)(90,"mat-label"),c(91),p(92,"translate"),r(),b(93,"input",22),r()()(),l(94,"mat-autocomplete",23,4),Se(96,PRe,2,5,"mat-option",15,Pe),p(98,"async"),r(),l(99,"mat-autocomplete",23,5),Se(101,TRe,2,2,"mat-option",15,Pe),p(103,"async"),r(),l(104,"mat-autocomplete",23,6),Se(106,MRe,2,2,"mat-option",15,Pe),p(108,"async"),r(),l(109,"mat-autocomplete",23,7),Se(111,DRe,2,5,"mat-option",15,Pe),p(113,"async"),r(),l(114,"div",24),E(115,ERe,2,0,"div"),E(116,e9e,36,3,"table",25),E(117,t9e,2,6,"mat-paginator",26),r()}if(n&2){let s=ve(46),d=ve(60),u=ve(74),f=ve(88),_=ve(95),C=ve(100),x=ve(105),y=ve(110);a(3),v(" ",m(4,56,"labels.buttons.Download CSV")," "),a(5),h(m(9,58,"labels.inputs.Resource ID")),a(2),g("formControl",i.resourceId),a(3),h(m(14,60,"labels.inputs.Status")),a(2),g("formControl",i.processingResult),a(),we(i.auditTrailSearchTemplateData.processingResults),a(4),h(m(21,62,"labels.inputs.User")),a(2),g("formControl",i.user)("matAutocomplete",_),a(3),h(m(26,64,"labels.inputs.Action")),a(2),g("formControl",i.actionName)("matAutocomplete",C),a(3),h(m(31,66,"labels.inputs.Entity")),a(2),g("formControl",i.entityName)("matAutocomplete",x),a(3),h(m(36,68,"labels.inputs.Checker")),a(2),g("formControl",i.checker)("matAutocomplete",y),a(4),h(m(42,70,"labels.inputs.Maker From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s)("formControl",i.fromDate),a(),g("for",s),a(5),h(m(50,72,"labels.inputs.Time")),a(2),g("formControl",i.fromTime),a(4),h(m(56,74,"labels.inputs.Maker To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d)("formControl",i.toDate),a(),g("for",d),a(5),h(m(64,76,"labels.inputs.Time")),a(2),g("formControl",i.toTime),a(4),h(m(70,78,"labels.inputs.Checker From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",u)("formControl",i.checkedFromDate),a(),g("for",u),a(5),h(m(78,80,"labels.inputs.Time")),a(2),g("formControl",i.checkedFromTime),a(4),h(m(84,82,"labels.inputs.Checked To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",f)("formControl",i.checkedToDate),a(),g("for",f),a(5),h(m(92,84,"labels.inputs.Time")),a(2),g("formControl",i.checkedToTime),a(),g("displayWith",i.displayUserName),a(2),we(m(98,86,i.filteredUserData)),a(3),g("displayWith",i.displayActionName),a(2),we(m(103,88,i.filteredActionData)),a(3),g("displayWith",i.displayEntityName),a(2),we(m(108,90,i.filteredEntityData)),a(3),g("displayWith",i.displayUserName),a(2),we(m(113,92,i.filteredCheckerData)),a(4),I(i.isLoading?115:-1),a(),I(i.isLoading?-1:116),a(),I(i.isLoading?-1:117)}},dependencies:[ue,fe,st,$e,_n,Oe,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,ke,er,Za,ns,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he,Yr],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.flex-38[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]{font-size:14px;width:100%}.gap-8px[_ngcontent-%COMP%]{gap:8px}"]})}}return e})();var i9e=()=>["../"];function n9e(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Office")," "))}function o9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.officeName," ")}}function a9e(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Savings Account No")," "))}function r9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.savingsAccountNo," ")}}function l9e(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Group Level")," "))}function s9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.groupLevelName," ")}}function c9e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Client Ip")," "))}function p9e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.ip," ")}}function m9e(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Command")))}function d9e(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.command)}}function u9e(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Command Value")))}function f9e(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.commandValue," ")}}function h9e(e,o){e&1&&b(0,"tr",25)}function g9e(e,o){e&1&&b(0,"tr",26)}var Yv=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["command","commandValue"],this.route.data.subscribe(t=>{this.auditTrailData=t.auditTrail})}ngOnInit(){this.setAuditTrailCommands()}get auditTrailCommandsData(){if(!this.auditTrailData||!this.auditTrailData.commandAsJson)return[];try{let t=JSON.parse(this.auditTrailData.commandAsJson);return t&&typeof t=="object"&&!Array.isArray(t)?Object.entries(t).map(([n,i])=>({command:n,commandValue:i})):[]}catch(t){return console.error("Invalid commandAsJson in audit trail:",t),[]}}setAuditTrailCommands(){this.dataSource=new Wt(this.auditTrailCommandsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-audit"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:64,vars:46,consts:[[1,"container","layout-row","align-between","responsive-column"],[1,"flex-100"],[1,"layout-row","flex-100"],[1,"flex-46"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],[1,"flex-46","command"],["mat-table","","matSort","",1,"command-table",3,"dataSource"],["matColumnDef","command"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","commandValue"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","column-value-wrapper",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","layout-align-center","m-t-20","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-cell","",1,"column-value-wrapper"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),c(7),p(8,"translate"),r(),l(9,"div",6),c(10),r(),l(11,"div",5),c(12),p(13,"translate"),r(),l(14,"div",6),c(15),r(),l(16,"div",5),c(17),p(18,"translate"),r(),l(19,"div",6),c(20),r(),l(21,"div",5),c(22),p(23,"translate"),r(),l(24,"div",6),c(25),r(),l(26,"div",5),c(27),p(28,"translate"),r(),l(29,"div",6),c(30),r(),l(31,"div",5),c(32),p(33,"translate"),r(),l(34,"div",6),c(35),r(),l(36,"div",5),c(37),p(38,"translate"),r(),l(39,"div",6),c(40),p(41,"datetimeFormat"),r(),E(42,n9e,3,3,"div",5),E(43,o9e,2,1,"div",6),E(44,a9e,3,3,"div",5),E(45,r9e,2,1,"div",6),E(46,l9e,3,3,"div",5),E(47,s9e,2,1,"div",6),r(),E(48,c9e,3,3,"div",7),E(49,p9e,2,1,"div",8),r(),l(50,"div",9)(51,"table",10),X(52,11),F(53,m9e,3,3,"th",12)(54,d9e,2,1,"td",13),Z(),X(55,14),F(56,u9e,3,3,"th",15)(57,f9e,2,1,"td",16),Z(),F(58,h9e,1,0,"tr",17)(59,g9e,1,0,"tr",18),r()()(),l(60,"div",19)(61,"button",20),c(62),p(63,"translate"),r()()()()()),n&2&&(a(7),v(" ",m(8,27,"labels.inputs.ID")," "),a(3),v(" ",i.auditTrailData.id," "),a(2),v(" ",m(13,29,"labels.inputs.Status")," "),a(3),v(" ",i.auditTrailData.processingResult," "),a(2),v(" ",m(18,31,"labels.inputs.User")," "),a(3),v(" ",i.auditTrailData.maker," "),a(2),v(" ",m(23,33,"labels.inputs.Action")," "),a(3),v(" ",i.auditTrailData.actionName," "),a(2),v(" ",m(28,35,"labels.inputs.Entity")," "),a(3),v(" ",i.auditTrailData.entityName," "),a(2),v(" ",m(33,37,"labels.inputs.Resource ID")," "),a(3),v(" ",i.auditTrailData.resourceId," "),a(2),v(" ",m(38,39,"labels.inputs.Date")," "),a(3),v(" ",m(41,41,i.auditTrailData.madeOnDate)," "),a(2),I(i.auditTrailData.officeName?42:-1),a(),I(i.auditTrailData.officeName?43:-1),a(),I(i.auditTrailData.savingsAccountNo?44:-1),a(),I(i.auditTrailData.savingsAccountNo?45:-1),a(),I(i.auditTrailData.groupLevelName?46:-1),a(),I(i.auditTrailData.groupLevelName?47:-1),a(),I(i.auditTrailData.ip?48:-1),a(),I(i.auditTrailData.ip?49:-1),a(2),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(45,i9e)),a(),v(" ",m(63,43,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,Yr],styles:[".content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}.column-value-wrapper[_ngcontent-%COMP%]{word-break:break-all}.command[_ngcontent-%COMP%]{background-color:#eee}.command-table[_ngcontent-%COMP%]{background-color:inherit}"]})}}return e})();var _9e=["buttonCreateCode"],C9e=["templateButtonCreateCode"],v9e=["tableCodes"],x9e=["templateTableCodes"],b9e=()=>[10,25,50,100],y9e=()=>["create"],S9e=e=>[e];function w9e(e,o){e&1&&(l(0,"button",21),b(1,"fa-icon",22),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,y9e)),a(2),v(" ",m(3,2,"labels.buttons.Create Code")," "))}function P9e(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code Name")))}function T9e(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function M9e(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.System Defined")))}function D9e(e,o){e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function E9e(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function I9e(e,o){if(e&1&&(l(0,"td",24),E(1,D9e,2,4,"fa-icon",25),E(2,E9e,2,4,"fa-icon",26),r()),e&2){let t=o.$implicit;a(),I(t.systemDefined?1:-1),a(),I(t.systemDefined?-1:2)}}function O9e(e,o){e&1&&b(0,"tr",27)}function A9e(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,S9e,t.id))}}function F9e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Codes")),a(3),h(m(5,7,"labels.text.To create additional codes.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function k9e(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter codes")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function B9e(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of all codes in the Mifos system")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var Jv=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","systemDefined"],this.route.data.subscribe(t=>{this.codesData=t.codes})}ngOnInit(){this.setCodes()}setCodes(){this.dataSource=new Wt(this.codesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSystemCodesPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateCode,this.buttonCreateCode.nativeElement,"bottom",!0)}),this.configurationWizardService.showSystemCodesList===!0&&setTimeout(()=>{this.showPopover(this.templateTableCodes,this.tableCodes.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showSystemCodesPage=!1,this.configurationWizardService.showSystemCodesList=!1,this.configurationWizardService.showSystemCodesForm=!0,this.router.navigate(["/system/codes/create"])}previousStep(){this.configurationWizardService.showSystemCodesPage=!1,this.configurationWizardService.showSystemCodesList=!1,this.configurationWizardService.showSystemCodes=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-codes"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(_9e,5),Ee(C9e,5),Ee(v9e,5),Ee(x9e,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateCode=s.first),Te(s=Me())&&(i.templateButtonCreateCode=s.first),Te(s=Me())&&(i.tableCodes=s.first),Te(s=Me())&&(i.templateTableCodes=s.first)}},decls:30,vars:9,consts:[["buttonCreateCode",""],["filter",""],["tableCodes",""],["templateButtonCreateCode",""],["templateFilter",""],["templateTableCodes",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","systemDefined"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"system-defined",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-system-defined",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",null,0),F(3,w9e,4,5,"button",7),r()(),l(4,"div",8)(5,"div",9,1)(7,"mat-form-field",10)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",11),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",12,2)(14,"table",13),X(15,14),F(16,P9e,3,3,"th",15)(17,T9e,2,1,"td",16),Z(),X(18,17),F(19,M9e,3,3,"th",15)(20,I9e,3,2,"td",16),Z(),F(21,O9e,1,0,"tr",18)(22,A9e,1,3,"tr",19),r(),b(23,"mat-paginator",20),r()(),F(24,F9e,16,15,"ng-template",null,3,ti)(26,k9e,13,12,"ng-template",null,4,ti)(28,B9e,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_CODE"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,b9e)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.system-defined[_ngcontent-%COMP%]{color:#32cd32}.not-system-defined[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var R9e=["codeFormRef"],N9e=["templateCodeFormRef"],L9e=()=>["../"];function V9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Code Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function q9e(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.codeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function z9e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",10),c(4),p(5,"translate"),b(6,"br"),c(7),p(8,"translate"),l(9,"a",11),c(10),p(11,"translate"),r()(),l(12,"div",12)(13,"button",13),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(14),p(15,"translate"),r(),l(16,"button",14),R("click",function(){let i=V(t).popover;return q(i.close())}),c(17),p(18,"translate"),r(),l(19,"button",14),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(20),p(21,"translate"),r(),l(22,"button",14),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(23),p(24,"translate"),r()()}e&2&&(a(),h(m(2,8,"labels.heading.Create Code")),a(3),v(" ",m(5,10,"labels.text.To create code,create")),a(3),v(" ",m(8,12,"labels.text.For more details click"),": "),a(3),h(m(11,14,"labels.inputs.Manage Codes")),a(4),v(" ",m(15,16,"labels.buttons.Close")," "),a(3),v(" ",m(18,18,"labels.buttons.Create Code")," "),a(3),v(" ",m(21,20,"labels.buttons.Back")," "),a(3),v(" ",m(24,22,"labels.buttons.Next")," "))}var Kv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi)}ngOnInit(){this.createCodeForm()}createCodeForm(){this.codeForm=this.formBuilder.group({name:["",ce.required]})}submit(){this.systemService.createCode(this.codeForm.value).subscribe(t=>{this.configurationWizardService.showSystemCodesForm===!0?(this.configurationWizardService.showSystemCodesForm=!1,this.configurationWizardService.showRolesandPermission=!0,this.router.navigate(["/system"])):this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSystemCodesForm===!0&&setTimeout(()=>{this.showPopover(this.templateCodeFormRef,this.codeFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showSystemCodesForm=!1,this.configurationWizardService.showRolesandPermission=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showSystemCodesForm=!1,this.configurationWizardService.showSystemCodesList=!0,this.router.navigate(["/system/codes"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-code"]],viewQuery:function(n,i){if(n&1&&(Ee(R9e,5),Ee(N9e,5)),n&2){let s;Te(s=Me())&&(i.codeFormRef=s.first),Te(s=Me())&&(i.templateCodeFormRef=s.first)}},decls:19,vars:11,consts:[["codeFormRef",""],["templateCodeFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895350/Manage+Codes","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4,0)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",5),E(11,V9e,7,9,"mat-error"),r()()(),l(12,"mat-card-actions",6)(13,"button",7),c(14),p(15,"translate"),r(),F(16,q9e,3,4,"button",8),r()()()(),F(17,z9e,25,24,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.codeForm),a(6),h(m(9,6,"labels.inputs.Code Name")),a(3),I(i.codeForm.controls.name.hasError("required")?11:-1),a(2),g("routerLink",oe(10,L9e)),a(),v(" ",m(15,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CODE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var H9e=()=>["../"];function G9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Code Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function j9e(e,o){if(e&1&&(l(0,"button",7),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.codeForm.valid||t.codeForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Xv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.codeData=t.code})}ngOnInit(){this.createCodeForm()}createCodeForm(){this.codeForm=this.formBuilder.group({name:[this.codeData.name,ce.required]})}submit(){this.systemService.updateCode(this.codeForm.value,this.codeData.id).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-code"]],decls:16,vars:11,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,G9e,7,9,"mat-error"),r()()(),l(11,"mat-card-actions",4)(12,"button",5),c(13),p(14,"translate"),r(),F(15,j9e,3,4,"button",6),r()()()()),n&2&&(a(2),g("formGroup",i.codeForm),a(5),h(m(8,6,"labels.inputs.Code Name")),a(3),I(i.codeForm.controls.name.hasError("required")?10:-1),a(2),g("routerLink",oe(10,H9e)),a(),v(" ",m(14,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_CODE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var $9e=()=>["edit"];function U9e(e,o){if(e&1){let t=Y();l(0,"button",6),R("click",function(){V(t);let i=w();return q(i.addCodeValueRow())}),b(1,"fa-icon",7),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Code Value")," "))}function W9e(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,$9e)),a(2),v(" ",m(3,2,"labels.buttons.Edit Code")," "))}function Q9e(e,o){e&1&&(l(0,"span"),F(1,W9e,4,5,"button",8),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_CODE"))}function Y9e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w(2);return q(i.delete())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete Code")," "))}function J9e(e,o){e&1&&(l(0,"span"),F(1,Y9e,4,3,"button",11),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CODEVALUE"))}function K9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function X9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Z9e(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w(2).$index,s=w();return q(s.updateCodeValue(i))}),c(1),p(2,"translate"),r()}if(e&2){let t=w(2).$index,n=w();g("disabled",!n.codeValues.at(t).valid||n.codeValues.at(t).pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function eNe(e,o){e&1&&(l(0,"span"),F(1,Z9e,3,4,"button",28),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_CODEVALUE"))}function tNe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w().$index,s=w();return q(s.disableRow(i))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Cancel")," "))}function iNe(e,o){if(e&1){let t=Y();l(0,"button",31),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w().$index,s=w();return q(s.addCodeValue(i))}),b(3,"fa-icon",32),r()}if(e&2){let t=w().$index,n=w();g("title",Le(m(1,5,"tooltips.Add")))("matTooltip",Le(m(2,7,"tooltips.Add")))("disabled",!n.codeValuesForm.get("codeValues").at(t).valid)}}function nNe(e,o){if(e&1){let t=Y();l(0,"button",33),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w().$index,s=w();return q(s.enableRow(i))}),b(3,"fa-icon",34),r()}e&2&&g("title",Le(m(1,4,"tooltips.Edit")))("matTooltip",Le(m(2,6,"tooltips.Edit")))}function oNe(e,o){if(e&1){let t=Y();l(0,"button",35),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w().$index,s=w();return q(s.codeValueRowStatus[i]==="new"?s.removeNewCodeValue(i):s.deleteCodeValue(i))}),b(3,"fa-icon",36),r()}e&2&&g("title",Le(m(1,4,"tooltips.Delete")))("matTooltip",Le(m(2,6,"tooltips.Delete")))}function aNe(e,o){if(e&1&&(l(0,"div",5)(1,"div",14)(2,"mat-form-field",15)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",16),p(7,"translate"),E(8,K9e,7,9,"mat-error"),r(),l(9,"mat-form-field",17)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",18),p(14,"translate"),r(),l(15,"mat-form-field",19)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",20),p(20,"translate"),E(21,X9e,7,9,"mat-error"),r(),l(22,"div",21)(23,"mat-checkbox",22),c(24),p(25,"translate"),r()(),l(26,"div",23),E(27,eNe,2,1,"span"),E(28,tNe,3,3,"button",24),E(29,iNe,4,9,"button",25),E(30,nNe,4,8,"button",26),F(31,oNe,4,8,"button",27),r()()()),e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(3),h(m(5,18,"labels.inputs.name")),a(2),g("placeholder",Le(m(7,20,"labels.inputs.name"))),a(2),I(n.codeValues.at(t).controls.name.hasError("required")?8:-1),a(3),h(m(12,22,"labels.inputs.Description")),a(2),g("placeholder",Le(m(14,24,"labels.inputs.Description"))),a(4),h(m(18,26,"labels.inputs.Position")),a(2),g("placeholder",Le(m(20,28,"labels.inputs.Position"))),a(2),I(n.codeValues.at(t).controls.position.hasError("required")?21:-1),a(3),h(m(25,30,"labels.inputs.Active")),a(3),I(n.codeValueRowStatus[t]==="edit"?27:-1),a(),I(n.codeValueRowStatus[t]==="edit"?28:-1),a(),I(n.codeValueRowStatus[t]==="new"?29:-1),a(),I(n.codeValueRowStatus[t]==="disabled"?30:-1),a(),g("mifosxHasPermission","DELETE_CODEVALUE")}}var Zv=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.codeValueRowStatus=[],this.route.data.subscribe(t=>{this.codeData=t.code,this.codeValuesData=t.codeValues})}ngOnInit(){this.createCodeValuesForm(),this.initCodeValuesForm()}initCodeValuesForm(){this.codeValuesData.forEach(t=>{this.codeValues.push(this.createCodeValuesRow(t)),this.codeValueRowStatus.push("disabled")})}get codeValues(){return this.codeValuesForm.get("codeValues")}createCodeValuesForm(){this.codeValuesForm=this.formBuilder.group({codeValues:this.formBuilder.array([])})}addCodeValueRow(){this.codeValues.push(this.createCodeValuesRow()),this.codeValues.at(this.codeValues.length-1).enable(),this.codeValueRowStatus.push("new")}createCodeValuesRow(t){return this.formBuilder.group({name:[{value:t?t.name:"",disabled:!0},ce.required],description:[{value:t?t.description:"",disabled:!0}],position:[{value:t?t.position:0,disabled:!0},ce.required],isActive:[{value:t?t.active:!1,disabled:!0}]})}deleteCodeValue(t){let n=this.codeValuesData[t].id;this.systemService.deleteCodeValue(this.codeData.id,n).subscribe(i=>{this.codeValuesData.splice(t,1),this.codeValues.removeAt(t),this.codeValueRowStatus.splice(t,1)})}removeNewCodeValue(t){this.codeValues.removeAt(t),this.codeValueRowStatus.splice(t,1)}updateCodeValue(t){let n=this.codeValues.at(t).value;this.systemService.updateCodeValue(this.codeData.id,this.codeValuesData[t].id,n).subscribe(i=>{this.codeValues.at(t).disable(),this.codeValueRowStatus[t]="disabled",this.codeValues.at(t).markAsPristine()})}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Code")+" "+this.codeData.name}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteCode(this.codeData.id).subscribe(()=>{this.router.navigate(["/system/codes"])})})}disableRow(t){this.codeValues.at(t).get("name").setValue(this.codeValuesData[t].name),this.codeValues.at(t).get("description").setValue(this.codeValuesData[t].description),this.codeValues.at(t).get("position").setValue(this.codeValuesData[t].position),this.codeValues.at(t).get("isActive").setValue(this.codeValuesData[t].isActive),this.codeValues.at(t).disable(),this.codeValueRowStatus[t]="disabled",this.codeValues.at(t).markAsPristine()}addCodeValue(t){let n=this.codeValues.at(t).value;this.systemService.createCodeValue(this.codeData.id,n).subscribe(i=>{this.codeValues.at(t).disable(),this.codeValueRowStatus[t]="disabled",this.codeValuesData.push({id:i.subResourceId,name:this.codeValues.at(t).get("name").value,description:this.codeValues.at(t).get("description").value,position:this.codeValues.at(t).get("position").value,isActive:this.codeValues.at(t).get("isActive").value}),this.codeValues.at(t).markAsPristine()})}enableRow(t){this.codeValues.at(t).enable(),this.codeValueRowStatus[t]="edit"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-code"]],decls:13,vars:5,consts:[[1,"container","m-b-20","layout-row","align-end","layout-xs-column","gap-20px"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"m-t-20","m-l-20"],[3,"formGroup"],["formArrayName","codeValues"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],[1,"flex-fill","flex-20"],["required","","matInput","","formControlName","name",3,"placeholder"],[1,"flex-fill","flex-22"],["matInput","","formControlName","description",3,"placeholder"],[1,"flex-fill","flex-18"],["required","","matInput","","formControlName","position","type","number",3,"placeholder"],[1,"active-wrapper","flex-8"],["formControlName","isActive",1,"active"],[1,"options-wrapper","gap-2percent","flex-22"],["mat-button","","type","button"],["mat-icon-button","","color","primary","type","button","matTooltipPosition","above",3,"title","disabled","matTooltip"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"title","matTooltip"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"title","matTooltip","click",4,"mifosxHasPermission"],["mat-stroked-button","","color","primary","type","button",3,"disabled","click",4,"mifosxHasPermission"],["mat-stroked-button","","color","primary","type","button",3,"click","disabled"],["mat-button","","type","button",3,"click"],["mat-icon-button","","color","primary","type","button","matTooltipPosition","above",3,"click","title","disabled","matTooltip"],["icon","plus","size","lg"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"click","title","matTooltip"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","title","matTooltip"],["icon","trash","size","lg"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,U9e,4,3,"button",1),E(2,Q9e,2,1,"span"),E(3,J9e,2,1,"span"),r(),l(4,"div",2)(5,"mat-card")(6,"mat-card-title",3)(7,"h4"),c(8),r()(),l(9,"form",4)(10,"mat-card-content"),Se(11,aNe,32,32,"div",5,Pe),r()()()()),n&2&&(a(),g("mifosxHasPermission","CREATE_CODEVALUE"),a(),I(i.codeData.systemDefined?-1:2),a(),I(i.codeData.systemDefined?-1:3),a(5),h(i.codeData.name),a(),g("formGroup",i.codeValuesForm),a(2),we(i.codeValues.controls))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,la,La,Oe,Ue,Je,Fe,Be,ut,ze,xe,fi,Ke,ke,Qo,wi,si,he],styles:["@media (width >= 992px){.active-wrapper[_ngcontent-%COMP%]{position:relative}.active-wrapper[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}.options-wrapper[_ngcontent-%COMP%]{padding:18px 0 0}"]})}}return e})();var rNe=()=>[10,25,50,100];function lNe(e,o){e&1&&(l(0,"th",8),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Mapping Between Entities")))}function sNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Offices Loan Products")," "))}function cNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Offices Savings Products")," "))}function pNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Offices Charges/Fees")," "))}function mNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Roles Loan Products")," "))}function dNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Roles Savings Products")," "))}function uNe(e,o){if(e&1){let t=Y();l(0,"td",9),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showFilters(i.id))}),E(1,sNe,3,3,"span"),E(2,cNe,3,3,"span"),E(3,pNe,3,3,"span"),E(4,mNe,3,3,"span"),E(5,dNe,3,3,"span"),r()}if(e&2){let t=o.$implicit;a(),I(t.mappingTypes==="office_access_to_loan_products"?1:-1),a(),I(t.mappingTypes==="office_access_to_savings_products"?2:-1),a(),I(t.mappingTypes==="office_access_to_fees/charges"?3:-1),a(),I(t.mappingTypes==="role_access_to_loan_products"?4:-1),a(),I(t.mappingTypes==="role_access_to_savings_products"?5:-1)}}function fNe(e,o){e&1&&b(0,"tr",10)}function hNe(e,o){e&1&&b(0,"tr",11)}function gNe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function _Ne(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translateKey"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2){let t=w(2);a(),le(" ",Ft(2,3,t.firstMappingEntity,"inputs")," ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function CNe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function vNe(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translateKey"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2){let t=w(2);a(),le(" ",Ft(2,3,t.secondMappingEntity,"text")," ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function xNe(e,o){if(e&1){let t=Y();l(0,"button",20),R("click",function(){V(t);let i=w(2);return q(i.showAddScreen(i.selectedMappingType))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Add")," "))}function bNe(e,o){if(e&1&&(l(0,"th",8),c(1),p(2,"translateKey"),r()),e&2){let t=w(3);a(),h(Ft(2,1,t.firstMappingEntity,"inputs"))}}function yNe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.fromEntity)}}function SNe(e,o){if(e&1&&(l(0,"th",8),c(1),p(2,"translateKey"),r()),e&2){let t=w(3);a(),h(Ft(2,1,t.secondMappingEntity,"text"))}}function wNe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.toEntity)}}function PNe(e,o){e&1&&(l(0,"th",8),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function TNe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function MNe(e,o){e&1&&(l(0,"th",8),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Date")))}function DNe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.endDate))}}function ENe(e,o){e&1&&b(0,"th",8)}function INe(e,o){if(e&1){let t=Y();l(0,"button",31),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w(3);return q(s.showEditScreen(i.mapId,s.selectedMappingType))}),b(2,"fa-icon",32),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit")))}function ONe(e,o){e&1&&(l(0,"td",29),F(1,INe,3,4,"button",30),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_ENTITYMAPPING"))}function ANe(e,o){e&1&&b(0,"th",8)}function FNe(e,o){if(e&1){let t=Y();l(0,"button",34),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w(3);return q(s.delete(i.mapId))}),b(2,"fa-icon",35),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete")))}function kNe(e,o){e&1&&(l(0,"td",29),F(1,FNe,3,4,"button",33),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_ENTITYMAPPING"))}function BNe(e,o){e&1&&b(0,"tr",10)}function RNe(e,o){e&1&&b(0,"tr",11)}function NNe(e,o){if(e&1&&(l(0,"div")(1,"table",2),X(2,21),F(3,bNe,3,4,"th",4)(4,yNe,2,1,"td",22),Z(),X(5,23),F(6,SNe,3,4,"th",4)(7,wNe,2,1,"td",22),Z(),X(8,24),F(9,PNe,3,3,"th",4)(10,TNe,3,3,"td",22),Z(),X(11,25),F(12,MNe,3,3,"th",4)(13,DNe,3,3,"td",22),Z(),X(14,26),F(15,ENe,1,0,"th",4)(16,ONe,2,1,"td",22),Z(),X(17,27),F(18,ANe,1,0,"th",4)(19,kNe,2,1,"td",22),Z(),F(20,BNe,1,0,"tr",6)(21,RNe,1,0,"tr",7),r(),b(22,"mat-paginator",28),r()),e&2){let t=w(2);a(),g("dataSource",t.entityMappingsListData),a(19),g("matHeaderRowDef",t.entityMappingListColumns),a(),g("matRowDefColumns",t.entityMappingListColumns),a(),g("pageSizeOptions",oe(4,rNe))}}function LNe(e,o){if(e&1){let t=Y();l(0,"mat-card")(1,"form",12),R("ngSubmit",function(){V(t);let i=w();return q(i.showFilteredData())}),l(2,"mat-card-title"),c(3),p(4,"translateKey"),p(5,"translate"),p(6,"translateKey"),r(),l(7,"mat-card-content")(8,"div",13)(9,"mat-form-field")(10,"mat-label"),c(11),p(12,"translateKey"),r(),l(13,"mat-select",14)(14,"mat-option",15),c(15),p(16,"translate"),r(),Se(17,gNe,2,2,"mat-option",15,Pe),r(),E(19,_Ne,7,10,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translateKey"),r(),l(24,"mat-select",16)(25,"mat-option",15),c(26),p(27,"translate"),r(),Se(28,CNe,2,2,"mat-option",15,Pe),r(),E(30,vNe,7,10,"mat-error"),r(),l(31,"mat-card-actions",17)(32,"button",18),c(33),p(34,"translate"),r(),E(35,xNe,3,3,"button",19),r()()()(),E(36,NNe,23,5,"div"),r()}if(e&2){let t=w();a(),g("formGroup",t.filterPreferenceForm),a(2),ea(" ",Ft(4,16,t.firstMappingEntity,"inputs")," ",m(5,19,"labels.text.access to")," ",Ft(6,21,t.secondMappingEntity,"text")," "),a(8),h(Ft(12,24,t.firstMappingEntity,"inputs")),a(3),g("value",0),a(),v(" ",m(16,27,"labels.inputs.All")," "),a(2),we(t.firstEntityData),a(2),I(t.filterPreferenceForm.controls.mappingFirstParamId.hasError("required")?19:-1),a(3),h(Ft(23,29,t.secondMappingEntity,"text")),a(3),g("value",0),a(),v(" ",m(27,32,"labels.inputs.All")," "),a(2),we(t.secondEntityData),a(2),I(t.filterPreferenceForm.controls.mappingSecondParamId.hasError("required")?30:-1),a(2),g("disabled",!t.filterPreferenceForm.valid),a(),v(" ",m(34,34,"labels.buttons.Submit")," "),a(2),I(t.hasClickedFilters?35:-1),a(),I(t.hasClickedFilters?36:-1)}}var ex=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.systemService=T(ii),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.entityMappings=[],this.selectedMappingType=0,this.selectedFromId=0,this.selectedToId=0,this.hasClickedFilters=!1,this.retrieveById=0,this.firstEntityData=[],this.secondEntityData=[],this.displayedColumns=["entitymapping"],this.entityMappingListColumns=["fromentity","toentity","startdate","enddate","edit","delete"],this.route.data.subscribe(t=>{this.entityMappings=t.entityMappings})}createFilterPreferenceForm(){this.filterPreferenceForm=this.formBuilder.group({mappingFirstParamId:["",ce.required],mappingSecondParamId:["",ce.required]})}ngOnInit(){this.setMapping()}setMapping(){this.datasource=new Wt(this.entityMappings)}showFilters(t){this.selectedMappingType=t,this.hasClickedFilters=!1,this.fetchRelatedData(this.selectedMappingType),this.selectedFromId=0,this.selectedToId=0}fetchRelatedData(t){switch(this.retrieveById=t,this.createFilterPreferenceForm(),this.retrieveById){case 1:this.systemService.getOffices().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Office"}),this.systemService.getLoanProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Loan Products"});break;case 2:this.systemService.getOffices().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Office"}),this.systemService.getSavingProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Saving Products"});break;case 3:this.systemService.getOffices().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Office"}),this.systemService.getCharges().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Charges"});break;case 4:this.systemService.getRoles().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Role"}),this.systemService.getLoanProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Loan Products"});break;case 5:this.systemService.getRoles().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Role"}),this.systemService.getSavingProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Saving Products"});break}}showFilteredData(){this.filterPreference=this.filterPreferenceForm.value,this.filterPreference.mappingFirstParamId===""&&(this.filterPreference.mappingFirstParamId=0),this.filterPreference.mappingSecondParamId===""&&(this.filterPreference.mappingSecondParamId=0),this.hasClickedFilters=!0,this.selectedFromId=this.filterPreference.mappingFirstParamId,this.selectedToId=this.filterPreference.mappingSecondParamId,this.systemService.getEntitytoEntityData(this.retrieveById,this.selectedFromId,this.selectedToId).subscribe(t=>{this.entityMappingsListData=new Wt(t),this.entityMappingsListData.paginator=this.paginator,this.entityMappingsListData.sort=this.sort})}showAddScreen(t){this.relId=t,this.fetchRelatedData(this.relId);let n=[new $i({controlName:"fromId",label:this.translateService.instant(`labels.inputs.${this.firstMappingEntity}`),options:{label:"name",value:"id",data:this.firstEntityData},required:!0}),new $i({controlName:"toId",label:this.translateService.instant(`labels.text.${this.secondMappingEntity}`),options:{label:"name",value:"id",data:this.secondEntityData},required:!0}),new rr({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),type:"date",required:!1}),new rr({controlName:"endDate",label:this.translateService.instant("labels.inputs.End Date"),type:"date",required:!1})],i={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.heading.Entity to Entity Mapping"),layout:{addButtonText:"Confirm"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&this.submitNew(d.data)})}showEditScreen(t,n){this.relId=n,this.mapIdToEdit=t,this.fetchRelatedData(this.relId),this.systemService.getMapIdData(t).subscribe(u=>{this.entityMap=u});let i=[new $i({controlName:"fromId",label:this.translateService.instant(`labels.inputs.${this.firstMappingEntity}`),options:{label:"name",value:"id",data:this.firstEntityData},required:!0}),new $i({controlName:"toId",label:this.translateService.instant(`labels.text.${this.secondMappingEntity}`),options:{label:"name",value:"id",data:this.secondEntityData},required:!0}),new rr({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),type:"date",required:!1}),new rr({controlName:"endDate",label:this.translateService.instant("labels.inputs.End Date"),type:"date",required:!1})],s={title:this.translateService.instant("labels.buttons.Edit")+" "+this.translateService.instant("labels.heading.Entity to Entity Mapping"),layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&this.submitEdit(u.data)})}submitNew(t){t.value.fromId===""&&(t.value.fromId=void 0),t.value.toId===""&&(t.value.toId=void 0);let n=this.settingsService.dateFormat,i=t.value.startDate,s=t.value.endDate,d=t.value;d.startDate=this.dateUtils.formatDate(i,n),d.endDate=this.dateUtils.formatDate(s,n),d.dateFormat=n,d.locale=this.settingsService.language.code,this.systemService.createMapping(this.relId,d).subscribe(u=>{this.showFilteredData()})}submitEdit(t){let n=this.settingsService.dateFormat,i=t.value.startDate,s=t.value.endDate,d=t.value;d.startDate=this.dateUtils.formatDate(i,n),d.endDate=this.dateUtils.formatDate(s,n),d.dateFormat=n,d.locale=this.settingsService.language.code,this.systemService.editMapping(this.mapIdToEdit,d).subscribe(u=>{this.showFilteredData()})}delete(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Mapping id")+" "+t}}).afterClosed().subscribe(i=>{i.delete&&this.systemService.deleteMapping(t).subscribe(()=>{this.showFilteredData()})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-entity-to-entity-mapping"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:9,vars:4,consts:[[1,"container"],[1,"mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","entitymapping"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-header-row",""],["mat-row","",1,"select-row"],[3,"ngSubmit","formGroup"],[1,"layout-row","align-space-evenly-center"],["required","","formControlName","mappingFirstParamId"],[3,"value"],["required","","formControlName","mappingSecondParamId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["mat-raised-button","","color","primary",3,"disabled"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","primary",3,"click"],["matColumnDef","fromentity"],["mat-cell","",4,"matCellDef"],["matColumnDef","toentity"],["matColumnDef","startdate"],["matColumnDef","enddate"],["matColumnDef","edit"],["matColumnDef","delete"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-cell",""],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"mifosxHasPermission"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"mifosxHasPermission"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","trash","size","lg"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"table",2),X(3,3),F(4,lNe,3,3,"th",4)(5,uNe,6,5,"td",5),Z(),F(6,fNe,1,0,"tr",6)(7,hNe,1,0,"tr",7),r(),E(8,LNe,37,36,"mat-card"),r()()),n&2&&(a(2),g("dataSource",i.datasource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),I(i.selectedMappingType>0?8:-1))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Qo,wi,si,ke,kt,Pi,he,ki],styles:["table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}"]})}}return e})();var VNe=()=>["edit"];function qNe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function zNe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"inputs"))}}function HNe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function GNe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit,n=w();a(),h(n.getConfigurationValue(t))}}function jNe(e,o){e&1&&b(0,"tr",13)}function $Ne(e,o){e&1&&b(0,"tr",14)}var tx=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.amazonS3ConfigurationData=t.amazonS3Configuration})}ngOnInit(){this.setAmazonS3Configuration()}setAmazonS3Configuration(){this.dataSource=new Wt(this.amazonS3ConfigurationData),this.dataSource.sort=this.sort}getConfigurationValue(t){let n=t.value;return t.name==="s3_access_key"||t.name==="s3_secret_key"?n?n.replace(n.substr(1,n.length-3),n.substr(1,n.length-3).replace(/./g,"*")):"":n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-amazon-s3"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,qNe,3,3,"th",6)(9,zNe,3,4,"td",7),Z(),X(10,8),F(11,HNe,3,3,"th",6)(12,GNe,2,1,"td",7),Z(),F(13,jNe,1,0,"tr",9)(14,$Ne,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,VNe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var UNe=()=>["../"];function WNe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.S3 Bucket Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function QNe(e,o){e&1&&b(0,"fa-icon",11)}function YNe(e,o){e&1&&b(0,"fa-icon",12)}function JNe(e,o){if(e&1){let t=Y();l(0,"button",10),R("mousedown",function(){V(t);let i=w();return q(i.accessKeyInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.accessKeyInputType="password")}),E(1,QNe,1,0,"fa-icon",11),E(2,YNe,1,0,"fa-icon",12),r()}if(e&2){let t=w();a(),I(t.accessKeyInputType==="password"?1:-1),a(),I(t.accessKeyInputType==="text"?2:-1)}}function KNe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.S3 Access Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function XNe(e,o){e&1&&b(0,"fa-icon",11)}function ZNe(e,o){e&1&&b(0,"fa-icon",12)}function eLe(e,o){if(e&1){let t=Y();l(0,"button",10),R("mousedown",function(){V(t);let i=w();return q(i.secretKeyInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.secretKeyInputType="password")}),E(1,XNe,1,0,"fa-icon",11),E(2,ZNe,1,0,"fa-icon",12),r()}if(e&2){let t=w();a(),I(t.secretKeyInputType==="password"?1:-1),a(),I(t.secretKeyInputType==="text"?2:-1)}}function tLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.S3 Secret Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ix=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.amazonS3ConfigurationData=t.amazonS3Configuration})}ngOnInit(){this.createAmazonS3ConfigurationForm(),this.secretKeyInputType="password",this.accessKeyInputType="password"}createAmazonS3ConfigurationForm(){this.amazonS3ConfigurationForm=this.formBuilder.group({s3_bucket_name:[this.amazonS3ConfigurationData[1].value,ce.required],s3_access_key:[this.amazonS3ConfigurationData[0].value,ce.required],s3_secret_key:[this.amazonS3ConfigurationData[2].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("S3",this.amazonS3ConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-amazon-s3"]],decls:32,vars:28,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","s3_bucket_name"],["matInput","","required","","formControlName","s3_access_key",3,"type"],["mat-button","","matSuffix","","mat-icon-button",""],["matInput","","required","","formControlName","s3_secret_key",3,"type"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-button","","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,WNe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,JNe,3,2,"button",5),E(17,KNe,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),E(23,eLe,3,2,"button",5),E(24,tLe,7,9,"mat-error"),r()()(),l(25,"mat-card-actions",7)(26,"button",8),c(27),p(28,"translate"),r(),l(29,"button",9),c(30),p(31,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.amazonS3ConfigurationForm),a(5),h(m(8,17,"labels.inputs.S3 Bucket Name")),a(3),I(i.amazonS3ConfigurationForm.controls.s3_bucket_name.hasError("required")?10:-1),a(3),h(m(14,19,"labels.inputs.S3 Access Key")),a(2),g("type",Le(i.accessKeyInputType)),a(),I(i.amazonS3ConfigurationForm.controls.s3_access_key.value?16:-1),a(),I(i.amazonS3ConfigurationForm.controls.s3_access_key.hasError("required")?17:-1),a(3),h(m(21,21,"labels.inputs.S3 Secret Key")),a(2),g("type",Le(i.secretKeyInputType)),a(),I(i.amazonS3ConfigurationForm.controls.s3_secret_key.value?23:-1),a(),I(i.amazonS3ConfigurationForm.controls.s3_secret_key.hasError("required")?24:-1),a(2),g("routerLink",oe(27,UNe)),a(),v(" ",m(28,23,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.amazonS3ConfigurationForm.valid||i.amazonS3ConfigurationForm.pristine),a(),v(" ",m(31,25,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,xe,wi,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var iLe=()=>["../"];function nLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oLe(e,o){e&1&&b(0,"fa-icon",15)}function aLe(e,o){e&1&&b(0,"fa-icon",16)}function rLe(e,o){if(e&1){let t=Y();l(0,"button",14),R("mousedown",function(){V(t);let i=w();return q(i.passwordInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.passwordInputType="password")}),E(1,oLe,1,0,"fa-icon",15),E(2,aLe,1,0,"fa-icon",16),r()}if(e&2){let t=w();a(),I(t.passwordInputType==="password"?1:-1),a(),I(t.passwordInputType==="text"?2:-1)}}function lLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Host")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Port")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var nx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.emailConfigurationData=t.emailConfiguration})}ngOnInit(){this.setEmailConfigurationForm(),this.passwordInputType="password"}setEmailConfigurationForm(){this.emailConfigurationForm=this.formBuilder.group({username:[this.emailConfigurationData[0].value,ce.required],password:[this.emailConfigurationData[1].value,ce.required],host:[this.emailConfigurationData[2].value,ce.required],port:[this.emailConfigurationData[3].value,ce.required],useTLS:[this.emailConfigurationData[4].value,ce.required],fromEmail:[this.emailConfigurationData[5].value,ce.required],fromName:[this.emailConfigurationData[6].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("SMTP",this.emailConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-email"]],decls:52,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","username"],["matInput","","required","","formControlName","password",3,"type"],["mat-button","","matSuffix","","mat-icon-button",""],["matInput","","required","","formControlName","host"],["matInput","","type","number","required","","formControlName","port"],["labelPosition","before","formControlName","useTLS",1,"margin-v","flex-48"],["matInput","","type","email","required","","formControlName","fromEmail"],["matInput","","required","","formControlName","fromName"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-button","","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,nLe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,rLe,3,2,"button",5),E(17,lLe,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),E(23,sLe,7,9,"mat-error"),r(),l(24,"mat-form-field")(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",7),E(29,cLe,7,9,"mat-error"),r(),l(30,"mat-checkbox",8),c(31),p(32,"translate"),r(),l(33,"mat-form-field")(34,"mat-label"),c(35),p(36,"translate"),r(),b(37,"input",9),E(38,pLe,7,9,"mat-error"),r(),l(39,"mat-form-field")(40,"mat-label"),c(41),p(42,"translate"),r(),b(43,"input",10),E(44,mLe,7,9,"mat-error"),r()()(),l(45,"mat-card-actions",11)(46,"button",12),c(47),p(48,"translate"),r(),l(49,"button",13),c(50),p(51,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.emailConfigurationForm),a(5),h(m(8,21,"labels.inputs.Username")),a(3),I(i.emailConfigurationForm.controls.username.hasError("required")?10:-1),a(3),h(m(14,23,"labels.inputs.Password")),a(2),g("type",Le(i.passwordInputType)),a(),I(i.emailConfigurationForm.controls.password.value?16:-1),a(),I(i.emailConfigurationForm.controls.password.hasError("required")?17:-1),a(3),h(m(21,25,"labels.inputs.Host")),a(3),I(i.emailConfigurationForm.controls.host.hasError("required")?23:-1),a(3),h(m(27,27,"labels.inputs.Port")),a(3),I(i.emailConfigurationForm.controls.port.hasError("required")?29:-1),a(2),v(" ",m(32,29,"labels.inputs.Use TLS"),"? "),a(4),h(m(36,31,"labels.inputs.From Email")),a(3),I(i.emailConfigurationForm.controls.fromEmail.hasError("required")?38:-1),a(3),h(m(42,33,"labels.inputs.From Name")),a(3),I(i.emailConfigurationForm.controls.fromName.hasError("required")?44:-1),a(2),g("routerLink",oe(39,iLe)),a(),v(" ",m(48,35,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.emailConfigurationForm.valid||i.emailConfigurationForm.pristine),a(),v(" ",m(51,37,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,xe,fi,wi,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dLe=()=>["edit"];function uLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function fLe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function hLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function gLe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function _Le(e,o){e&1&&b(0,"tr",13)}function CLe(e,o){e&1&&b(0,"tr",14)}var ox=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.emailConfigurationData=t.emailConfiguration})}ngOnInit(){this.setEmailConfiguration()}setEmailConfiguration(){this.dataSource=new Wt(this.emailConfigurationData),this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-email"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,uLe,3,3,"th",6)(9,fLe,3,4,"td",7),Z(),X(10,8),F(11,hLe,3,3,"th",6)(12,gLe,2,1,"td",7),Z(),F(13,_Le,1,0,"tr",9)(14,CLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,dLe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var ax=()=>["amazon-s3"],rx=()=>["sms"],lx=()=>["email"],sx=()=>["notification"];function vLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function xLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function bLe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,ax)),a(),v(" ",m(2,2,"labels.text.S3 Amazon Service Configuration")," "))}function yLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function SLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function wLe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,rx)),a(),v(" ",m(2,2,"labels.text.SMS Service Configuration")," "))}function PLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function TLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function MLe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,lx)),a(),v(" ",m(2,2,"labels.text.Email Service Configuration")," "))}function DLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function ELe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function ILe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,sx)),a(),v(" ",m(2,2,"labels.text.Notification Service Configuration")," "))}var cx=(()=>{class e{constructor(){this.arrowBooleans=new Array(4).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-external-services"]],decls:43,vars:48,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink"],["matListIcon","",3,"routerLink"],["icon","cloud","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","comment-alt","size","sm"],["icon","envelope","size","sm"],["icon","bell","size","sm"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list")(5,"mat-list-item",3)(6,"mat-icon",4),b(7,"fa-icon",5),r(),l(8,"h4",6),c(9),p(10,"translate"),r(),E(11,vLe,1,0,"fa-icon",7),E(12,xLe,1,0,"fa-icon",8),E(13,bLe,3,5,"p",6),r(),l(14,"mat-list-item",3)(15,"mat-icon",4),b(16,"fa-icon",9),r(),l(17,"h4",6),c(18),p(19,"translate"),r(),E(20,yLe,1,0,"fa-icon",7),E(21,SLe,1,0,"fa-icon",8),E(22,wLe,3,5,"p",6),r()()(),l(23,"div",2)(24,"mat-nav-list")(25,"mat-list-item",3)(26,"mat-icon",4),b(27,"fa-icon",10),r(),l(28,"h4",6),c(29),p(30,"translate"),r(),E(31,PLe,1,0,"fa-icon",7),E(32,TLe,1,0,"fa-icon",8),E(33,MLe,3,5,"p",6),r(),l(34,"mat-list-item",3)(35,"mat-icon",4),b(36,"fa-icon",11),r(),l(37,"h4",6),c(38),p(39,"translate"),r(),E(40,DLe,1,0,"fa-icon",7),E(41,ELe,1,0,"fa-icon",8),E(42,ILe,3,5,"p",6),r()()()()()()),n&2&&(a(5),g("routerLink",oe(36,ax)),a(),g("routerLink",oe(37,ax)),a(2),g("routerLink",oe(38,ax)),a(),h(m(10,28,"labels.heading.S3 Amazon External Service")),a(2),I(i.arrowBooleans[0]?-1:11),a(),I(i.arrowBooleans[0]?12:-1),a(),I(i.arrowBooleans[0]?13:-1),a(),g("routerLink",oe(39,rx)),a(),g("routerLink",oe(40,rx)),a(2),g("routerLink",oe(41,rx)),a(),h(m(19,30,"labels.heading.SMS External Service")),a(2),I(i.arrowBooleans[1]?-1:20),a(),I(i.arrowBooleans[1]?21:-1),a(),I(i.arrowBooleans[1]?22:-1),a(3),g("routerLink",oe(42,lx)),a(),g("routerLink",oe(43,lx)),a(2),g("routerLink",oe(44,lx)),a(),h(m(30,32,"labels.heading.Email External Service")),a(2),I(i.arrowBooleans[2]?-1:31),a(),I(i.arrowBooleans[2]?32:-1),a(),I(i.arrowBooleans[2]?33:-1),a(),g("routerLink",oe(45,sx)),a(),g("routerLink",oe(46,sx)),a(2),g("routerLink",oe(47,sx)),a(),v(" ",m(39,34,"labels.heading.Notification External Service")," "),a(2),I(i.arrowBooleans[3]?-1:40),a(),I(i.arrowBooleans[3]?41:-1),a(),I(i.arrowBooleans[3]?42:-1))},dependencies:[ue,fe,Oe,Ue,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var OLe=()=>["../"];function ALe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Server Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.GCM End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.FCM End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var px=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.notificationConfigurationData=t.notificationConfiguration})}ngOnInit(){this.setNotificationConfigurationForm()}setNotificationConfigurationForm(){this.notificationConfigurationForm=this.formBuilder.group({server_key:[this.notificationConfigurationData[0].value,ce.required],gcm_end_point:[this.notificationConfigurationData[1].value,ce.required],fcm_end_point:[this.notificationConfigurationData[2].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("NOTIFICATION",this.notificationConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-notification"]],decls:30,vars:22,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","server_key"],["matInput","","required","","formControlName","gcm_end_point"],["matInput","","required","","formControlName","fcm_end_point"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,ALe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,FLe,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,kLe,7,9,"mat-error"),r()()(),l(23,"mat-card-actions",6)(24,"button",7),c(25),p(26,"translate"),r(),l(27,"button",8),c(28),p(29,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.notificationConfigurationForm),a(5),h(m(8,11,"labels.inputs.Server Key")),a(3),I(i.notificationConfigurationForm.controls.server_key.hasError("required")?10:-1),a(3),h(m(14,13,"labels.inputs.GCM End Point")),a(3),I(i.notificationConfigurationForm.controls.gcm_end_point.hasError("required")?16:-1),a(3),h(m(20,15,"labels.inputs.FCM End Point")),a(3),I(i.notificationConfigurationForm.controls.fcm_end_point.hasError("required")?22:-1),a(2),g("routerLink",oe(21,OLe)),a(),v(" ",m(26,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.notificationConfigurationForm.valid||i.notificationConfigurationForm.pristine),a(),v(" ",m(29,19,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var BLe=()=>["edit"];function RLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function NLe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function LLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function VLe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit,n=w();a(),h(n.getConfigurationValue(t))}}function qLe(e,o){e&1&&b(0,"tr",13)}function zLe(e,o){e&1&&b(0,"tr",14)}var mx=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.notificationConfigurationData=t.notificationConfiguration})}ngOnInit(){this.setNotificationConfiguration()}setNotificationConfiguration(){this.dataSource=new Wt(this.notificationConfigurationData),this.dataSource.sort=this.sort}getConfigurationValue(t){let n=t.value;return t.name==="server_key"?n.replace(n.substr(1,n.length-3),n.substr(1,n.length-3).replace(/./g,"*")):n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notification"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,RLe,3,3,"th",6)(9,NLe,3,4,"td",7),Z(),X(10,8),F(11,LLe,3,3,"th",6)(12,VLe,2,1,"td",7),Z(),F(13,qLe,1,0,"tr",9)(14,zLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,BLe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var HLe=()=>["../"];function GLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Host Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Port Number")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Le(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ULe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Tenant App Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var dx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.smsConfigurationData=t.smsConfiguration})}ngOnInit(){this.setSMSConfigurationForm()}setSMSConfigurationForm(){this.smsConfigurationForm=this.formBuilder.group({host_name:[this.smsConfigurationData[0].value,ce.required],port_number:[this.smsConfigurationData[1].value,ce.required],end_point:[this.smsConfigurationData[2].value,ce.required],tenant_app_key:[this.smsConfigurationData[3].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("SMS",this.smsConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-sms"]],decls:36,vars:26,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","host_name"],["matInput","","required","","formControlName","port_number"],["matInput","","required","","formControlName","end_point"],["matInput","","required","","formControlName","tenant_app_key"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,GLe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,jLe,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,$Le,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",6),E(28,ULe,7,9,"mat-error"),r()()(),l(29,"mat-card-actions",7)(30,"button",8),c(31),p(32,"translate"),r(),l(33,"button",9),c(34),p(35,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.smsConfigurationForm),a(5),h(m(8,13,"labels.inputs.Host Name")),a(3),I(i.smsConfigurationForm.controls.host_name.hasError("required")?10:-1),a(3),h(m(14,15,"labels.inputs.Port Number")),a(3),I(i.smsConfigurationForm.controls.port_number.hasError("required")?16:-1),a(3),h(m(20,17,"labels.inputs.End Point")),a(3),I(i.smsConfigurationForm.controls.end_point.hasError("required")?22:-1),a(3),h(m(26,19,"labels.inputs.Tenant App Key")),a(3),I(i.smsConfigurationForm.controls.tenant_app_key.hasError("required")?28:-1),a(2),g("routerLink",oe(25,HLe)),a(),v(" ",m(32,21,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.smsConfigurationForm.valid||i.smsConfigurationForm.pristine),a(),v(" ",m(35,23,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var WLe=()=>["edit"];function QLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function YLe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function JLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function KLe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function XLe(e,o){e&1&&b(0,"tr",13)}function ZLe(e,o){e&1&&b(0,"tr",14)}var ux=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.smsConfigurationData=t.smsConfiguration})}ngOnInit(){this.setSMSConfiguration()}setSMSConfiguration(){this.dataSource=new Wt(this.smsConfigurationData),this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sms"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,QLe,3,3,"th",6)(9,YLe,3,4,"td",7),Z(),X(10,8),F(11,JLe,3,3,"th",6)(12,KLe,2,1,"td",7),Z(),F(13,XLe,1,0,"tr",9)(14,ZLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,WLe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var fx=[{displayValue:"Client",value:"m_client"},{displayValue:"Group",value:"m_group"},{displayValue:"Center",value:"m_center"},{displayValue:"Office",value:"m_office"},{displayValue:"Loan Account",value:"m_loan"},{displayValue:"Saving Account",value:"m_savings_account"},{displayValue:"Loan Product",value:"m_product_loan"},{displayValue:"Saving Account Transaction",value:"m_savings_account_transaction"},{displayValue:"Savings Product",value:"m_savings_product"},{displayValue:"Share Product",value:"m_share_product"}],hx=[{displayValue:"Person",value:"Person"},{displayValue:"Entity",value:"Entity"}],wN=[{displayValue:"Savings Product",value:"Savings Product"},{displayValue:"Fixed Deposit",value:"Fixed Deposit"},{displayValue:"Recurring Deposit",value:"Recurring Deposit"}];var PN=[{displayValue:"Boolean",value:"Boolean"},{displayValue:"Date",value:"Date"},{displayValue:"Date and Time",value:"Datetime"},{displayValue:"Decimal",value:"Decimal"},{displayValue:"Dropdown",value:"Dropdown"},{displayValue:"Number",value:"Number"},{displayValue:"String",value:"String"},{displayValue:"Text",value:"Text"}];function eVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Column Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tVe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function iVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Column Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nVe(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12),p(5,"translate"),r()),e&2&&(a(2),v(" ",m(3,3,"labels.inputs.Column Length")),a(2),g("placeholder",Le(m(5,5,"labels.inputs.Column Length"))))}function oVe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function aVe(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",13),Se(5,oVe,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),v(" ",m(3,1,"labels.inputs.Column Code")),a(3),we(t.data.columnCodes)}}var $p=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po),this.columnTypeData=PN}ngOnInit(){this.columnForm=this.formBuilder.group({name:[this.data?this.data.columnName:"",ce.required],type:[{value:this.data?this.data.columnDisplayType===""?"":this.getColumnType(this.data.columnDisplayType):"",disabled:this.data.type==="existing"},ce.required],length:[{value:this.data?+this.data.columnLength:"",disabled:this.getColumnType(this.data.columnDisplayType)!=="String"||this.data.type==="existing"},ce.required],mandatory:[{value:this.data.isColumnNullable,disabled:this.data.type==="existing"}],unique:[{value:this.data.isColumnUnique,disabled:this.data.isColumnNullable||this.data.type==="existing"}],indexed:[{value:this.data.isColumnIndexed,disabled:this.data.type==="existing"}],code:[{value:this.data?this.data.columnCode:"",disabled:this.getColumnType(this.data.columnDisplayType)!=="Dropdown"||this.data.type==="existing"},ce.required]}),this.onColumnTypeChanges()}getColumnType(t){switch(t){case void 0:return"";case"INTEGER":return"Number";case"CODELOOKUP":return"Dropdown";default:return t[0]+t.substr(1).toLowerCase()}}onColumnTypeChanges(){this.columnForm.get("type").valueChanges.subscribe(t=>{switch(t){case"String":{this.columnForm.get("length").enable(),this.columnForm.get("code").disable();break}case"Dropdown":{this.columnForm.get("code").enable(),this.columnForm.get("length").disable();break}default:this.columnForm.get("code").disable(),this.columnForm.get("length").disable()}})}submit(){this.dialogRef.close(this.columnForm.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-column-dialog"]],decls:44,vars:39,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name",3,"placeholder"],["required","","formControlName","type"],[3,"value"],["labelPosition","after","formControlName","mandatory"],["labelPosition","after","formControlName","unique"],["labelPosition","after","formControlName","indexed"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","type","number","formControlName","length",3,"placeholder"],["required","","formControlName","code"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),r(),l(5,"mat-dialog-content")(6,"form",1)(7,"div",2)(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",3),p(13,"translate"),E(14,eVe,7,9,"mat-error"),r(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",4),Se(20,tVe,3,5,"mat-option",5,Pe),r(),E(22,iVe,7,9,"mat-error"),r(),E(23,nVe,6,7,"mat-form-field"),E(24,aVe,7,3,"mat-form-field"),l(25,"div")(26,"mat-checkbox",6),c(27),p(28,"translate"),r()(),l(29,"div")(30,"mat-checkbox",7),c(31),p(32,"translate"),r()(),l(33,"div")(34,"mat-checkbox",8),c(35),p(36,"translate"),r()()()()(),l(37,"mat-dialog-actions",9)(38,"button",10),c(39),p(40,"translate"),r(),l(41,"button",11),R("click",function(){return i.submit()}),c(42),p(43,"translate"),r()()),n&2&&(a(),le(" ",i.data.columnName?m(2,17,"labels.buttons.Edit"):m(3,19,"labels.buttons.Add")," ",m(4,21,"labels.inputs.Column"),` -`),a(5),g("formGroup",i.columnForm),a(4),h(m(11,23,"labels.inputs.Column Name")),a(2),g("placeholder",Le(m(13,25,"labels.inputs.Column Name"))),a(2),I(i.columnForm.controls.name.hasError("required")?14:-1),a(3),h(m(18,27,"labels.inputs.Column Type")),a(3),we(i.columnTypeData),a(2),I(i.columnForm.controls.type.hasError("required")?22:-1),a(),I(i.columnForm.value.type==="String"?23:-1),a(),I(i.columnForm.value.type==="Dropdown"?24:-1),a(3),h(m(28,29,"labels.text.Mandatory")),a(4),h(m(32,31,"labels.inputs.Unique")),a(4),h(m(36,33,"labels.inputs.Indexed")),a(4),h(m(40,35,"labels.buttons.Cancel")),a(2),g("disabled",!i.columnForm.valid||i.columnForm.pristine),a(),v(" ",m(43,37,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,Wn,ho,Nn,Un,he,ki],encapsulation:2})}}return e})();var rVe=["dataTableFormRef"],lVe=["templateDataTableFormRef"],sVe=()=>[10,25,50,100],cVe=()=>["../"];function pVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Data Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mVe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function dVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Application Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uVe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function fVe(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,uVe,3,5,"mat-option",9,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Entity SubType")),a(3),we(t.entitySubTypeData)}}function hVe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function gVe(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,hVe,3,5,"mat-option",9,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Savings SubType")),a(3),we(t.savingsSubTypeData)}}function _Ve(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function CVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Primary Key")))}function vVe(e,o){if(e&1&&(l(0,"td",38),c(1),E(2,CVe,2,4,"fa-icon",39),r()),e&2){let t=o.$implicit;a(),v(" ",t.columnName," "),a(),I(t.isColumnPrimaryKey?2:-1)}}function xVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function bVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}function yVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Length")))}function SVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function wVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code")))}function PVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function TVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.Mandatory")))}function MVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function DVe(e,o){e&1&&(b(0,"fa-icon",41),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function EVe(e,o){if(e&1&&(l(0,"td",40),E(1,MVe,2,4,"fa-icon",39),E(2,DVe,2,4,"fa-icon",41),r()),e&2){let t=o.$implicit;a(),I(t.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function IVe(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Unique")," "))}function OVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function AVe(e,o){e&1&&(b(0,"fa-icon",43),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function FVe(e,o){if(e&1&&(l(0,"td",38),E(1,OVe,2,4,"fa-icon",39),E(2,AVe,2,4,"fa-icon",43),r()),e&2){let t=o.$implicit;a(),I(t.isColumnUnique?1:-1),a(),I(t.isColumnUnique?-1:2)}}function kVe(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Indexed")," "))}function BVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function RVe(e,o){e&1&&(b(0,"fa-icon",41),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function NVe(e,o){if(e&1&&(l(0,"td",38),E(1,BVe,2,4,"fa-icon",39),E(2,RVe,2,4,"fa-icon",41),r()),e&2){let t=o.$implicit;a(),I(t.isColumnIndexed?1:-1),a(),I(t.isColumnIndexed?-1:2)}}function LVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function VVe(e,o){if(e&1){let t=Y();l(0,"td",44)(1,"button",45),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editColumn(i))}),b(2,"fa-icon",46),r(),l(3,"button",47),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteColumn(i))}),b(4,"fa-icon",48),r()()}}function qVe(e,o){e&1&&b(0,"tr",49)}function zVe(e,o){e&1&&b(0,"tr",50)}function HVe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",51),c(4),p(5,"translate"),l(6,"a",52),c(7),p(8,"translate"),r()(),l(9,"div",53)(10,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.buttons.Create Datatable")),a(3),v(" ",m(5,9,"labels.text.Filling Details")," "),a(3),h(m(8,11,"labels.inputs.Manage Datatables")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create Datatable")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var gx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.translateService=T(yi),this.appTableData=fx,this.entitySubTypeData=hx,this.savingsSubTypeData=wN,this.columnData=[],this.dataForDialog={columnName:void 0,columnDisplayType:void 0,isColumnNullable:void 0,columnLength:void 0,columnCode:void 0,columnCodes:void 0,type:void 0,isColumnUnique:void 0,isColumnIndexed:void 0},this.displayedColumns=["name","type","length","code","mandatory","unique","indexed","actions"],this.route.data.subscribe(t=>{this.dataForDialog.columnCodes=t.columnCodes})}ngOnInit(){this.createDataTableForm(),this.setColumns(),this.dataTableForm.controls.apptableName.valueChanges.subscribe(t=>{this.showEntitySubType=t==="m_client",this.showSavingsSubType=t==="m_savings_product"})}setColumns(){this.dataSource=new Wt(this.columnData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createDataTableForm(){this.dataTableForm=this.formBuilder.group({datatableName:["",ce.required],apptableName:["",ce.required],multiRow:[!1],entitySubType:[""]})}addColumn(){this.dataForDialog.columnName=void 0,this.dataForDialog.columnDisplayType=void 0,this.dataForDialog.isColumnNullable=void 0,this.dataForDialog.columnLength=void 0,this.dataForDialog.columnCode=void 0,this.dataForDialog.isColumnUnique=void 0,this.dataForDialog.isColumnIndexed=void 0,this.dataForDialog.type="new",this.dialog.open($p,{data:this.dataForDialog,height:"450px",width:"400px"}).afterClosed().subscribe(n=>{n!==""&&(this.columnData.push({columnName:n.name,columnDisplayType:n.type,isColumnNullable:!n.mandatory,isColumnUnique:n.unique,isColumnIndexed:n.indexed,columnLength:n.length,columnCode:n.code,type:"new"}),this.dataSource.connect().next(this.columnData))})}editColumn(t){this.dataForDialog.columnName=t.columnName,this.dataForDialog.columnDisplayType=t.columnDisplayType,this.dataForDialog.isColumnNullable=!t.isColumnNullable,this.dataForDialog.isColumnUnique=t.isColumnUnique,this.dataForDialog.isColumnIndexed=t.isColumnIndexed,this.dataForDialog.columnLength=t.columnLength,this.dataForDialog.columnCode=t.columnCode,this.dataForDialog.type=t.type,this.dialog.open($p,{data:this.dataForDialog,height:"450px",width:"400px"}).afterClosed().subscribe(i=>{i!==""&&(this.columnData[this.columnData.findIndex(s=>s.columnName===t.name)]={columnName:i.name,columnDisplayType:i.type,isColumnNullable:!i.mandatory,isColumnUnique:i.unique,isColumnIndexed:i.indexed,columnLength:i.length,columnCode:i.code,type:"existing"},this.dataSource.connect().next(this.columnData))})}deleteColumn(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Column")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.columnData.splice(this.columnData.indexOf(t),1),this.dataSource.connect().next(this.columnData))})}submit(){let t=[];this.columnData.forEach(i=>{t.push({name:i.columnName,type:i.columnDisplayType,code:i.columnCode,length:i.columnLength,mandatory:!i.isColumnNullable,unique:i.isColumnUnique,indexed:i.isColumnIndexed})}),this.dataTableForm.value.columns=t;let n=this.dataTableForm.value;(this.dataTableForm.value.entitySubType==null||this.dataTableForm.value.entitySubType==="")&&delete n.entitySubType,this.systemService.createDataTable(n).subscribe(i=>{this.configurationWizardService.showDatatablesForm===!0?(this.configurationWizardService.showDatatablesForm=!1,this.openDialog()):this.router.navigate(["../",i.resourceIdentifier],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDatatablesForm===!0&&setTimeout(()=>{this.showPopover(this.templateDataTableFormRef,this.dataTableFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showDatatablesForm=!1,this.configurationWizardService.showSystemCodes=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showDatatablesForm=!1,this.configurationWizardService.showDatatablesList=!0,this.router.navigate(["/system/data-tables"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"data table"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showDatatablesForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showDatatablesForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/data-tables/create"])):n.step===3&&(this.configurationWizardService.showDatatablesForm=!1,this.configurationWizardService.showSystemCodes=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-data-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(rVe,5),Ee(lVe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.dataTableFormRef=s.first),Te(s=Me())&&(i.templateDataTableFormRef=s.first)}},decls:74,vars:37,consts:[["dataTableFormRef",""],["templateDataTableFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-40"],["matInput","","required","","formControlName","datatableName"],[1,"flex-fill","flex-20"],["required","","formControlName","apptableName"],[3,"value"],[1,"multi-row-wrapper","flex-14"],["labelPosition","before","formControlName","multiRow",1,"multi-row"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","length"],["matColumnDef","code"],["matColumnDef","mandatory"],["mat-cell","","class","left",4,"matCellDef"],["matColumnDef","unique"],["mat-header-cell","","mat-sort-header","","class","center",4,"matHeaderCellDef"],["matColumnDef","indexed"],["matColumnDef","actions"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["formControlName","entitySubType"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"column-mandatory",3,"matTooltip"],["mat-cell","",1,"left"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-column-mandatory",3,"matTooltip"],["mat-header-cell","","mat-sort-header","",1,"center"],["icon","times-circle","size","lg","unique","right",1,"not-column-mandatory",3,"matTooltip"],["mat-cell","",1,"gap-15percent"],["type","button","color","primary","mat-icon-button","",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/52592760/Manage+Data+Tables","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3,0),R("ngSubmit",function(){return V(s),q(i.submit())}),l(4,"mat-card-content")(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",6),E(11,pVe,7,9,"mat-error"),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",8),Se(17,mVe,3,5,"mat-option",9,Pe),r(),E(19,dVe,7,9,"mat-error"),r(),E(20,fVe,7,3,"mat-form-field",7),E(21,gVe,7,3,"mat-form-field",7),l(22,"div",10)(23,"mat-checkbox",11),c(24),p(25,"translate"),r()()(),b(26,"br"),l(27,"div",12)(28,"p",13),c(29),p(30,"translate"),r(),l(31,"button",14),R("click",function(){return V(s),q(i.addColumn())}),b(32,"fa-icon",15),c(33),p(34,"translate"),p(35,"translate"),r()(),b(36,"br"),l(37,"table",16),X(38,17),F(39,_Ve,3,3,"th",18)(40,vVe,3,2,"td",19),Z(),X(41,20),F(42,xVe,3,3,"th",18)(43,bVe,2,1,"td",19),Z(),X(44,21),F(45,yVe,3,3,"th",18)(46,SVe,2,1,"td",19),Z(),X(47,22),F(48,wVe,3,3,"th",18)(49,PVe,2,1,"td",19),Z(),X(50,23),F(51,TVe,3,3,"th",18)(52,EVe,3,2,"td",24),Z(),X(53,25),F(54,IVe,3,3,"th",26)(55,FVe,3,2,"td",19),Z(),X(56,27),F(57,kVe,3,3,"th",26)(58,NVe,3,2,"td",19),Z(),X(59,28),F(60,LVe,3,3,"th",18)(61,VVe,5,0,"td",29),Z(),F(62,qVe,1,0,"tr",30)(63,zVe,1,0,"tr",31),r(),b(64,"mat-paginator",32),r(),l(65,"mat-card-actions",33)(66,"button",34),c(67),p(68,"translate"),r(),l(69,"button",35),c(70),p(71,"translate"),r()()()()(),F(72,HVe,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.dataTableForm),a(6),h(m(9,19,"labels.inputs.Data Table Name")),a(3),I(i.dataTableForm.controls.datatableName.hasError("required")?11:-1),a(3),h(m(15,21,"labels.inputs.Entity Type")),a(3),we(i.appTableData),a(2),I(i.dataTableForm.controls.apptableName.hasError("required")?19:-1),a(),I(i.showEntitySubType?20:-1),a(),I(i.showSavingsSubType?21:-1),a(3),h(m(25,23,"labels.inputs.Multi Row")),a(5),h(m(30,25,"labels.inputs.Columns")),a(4),le(" ",m(34,27,"labels.buttons.Add")," ",m(35,29,"labels.inputs.Columns")," "),a(4),g("dataSource",i.dataSource),a(25),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(35,sVe)),a(2),g("routerLink",oe(36,cVe)),a(),v(" ",m(68,31,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.dataTableForm.valid||i.columnData.length===0),a(),v(" ",m(71,33,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he,ki],styles:["@media (width >= 992px){.multi-row-wrapper[_ngcontent-%COMP%]{position:relative}.multi-row-wrapper[_ngcontent-%COMP%] .multi-row[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var GVe=()=>[10,25],jVe=()=>["../"];function $Ve(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function UVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Application Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function WVe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function QVe(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",30),Se(5,WVe,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Entity SubType")),a(3),we(t.entitySubTypeData)}}function YVe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Name")," "))}function JVe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnName)}}function KVe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Type")," "))}function XVe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}function ZVe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Length")," "))}function eqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function tqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Code")," "))}function iqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function nqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function oqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function aqe(e,o){e&1&&(b(0,"fa-icon",34),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function rqe(e,o){if(e&1&&(l(0,"td",32),E(1,oqe,2,4,"fa-icon",33),E(2,aqe,2,4,"fa-icon",34),r()),e&2){let t=o.$implicit;a(),I(t.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function lqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Unique")," "))}function sqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function cqe(e,o){e&1&&(b(0,"fa-icon",35),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function pqe(e,o){if(e&1&&(l(0,"td",32),E(1,sqe,2,4,"fa-icon",33),E(2,cqe,2,4,"fa-icon",35),r()),e&2){let t=o.$implicit;a(),I(t.isColumnUnique?1:-1),a(),I(t.isColumnUnique?-1:2)}}function mqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Indexed")," "))}function dqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function uqe(e,o){e&1&&(b(0,"fa-icon",34),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function fqe(e,o){if(e&1&&(l(0,"td",32),E(1,dqe,2,4,"fa-icon",33),E(2,uqe,2,4,"fa-icon",34),r()),e&2){let t=o.$implicit;a(),I(t.isColumnIndexed?1:-1),a(),I(t.isColumnIndexed?-1:2)}}function hqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Actions")," "))}function gqe(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.editColumn(i))}),b(1,"fa-icon",40),r()}}function _qe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deleteColumn(i))}),b(1,"fa-icon",42),r()}}function Cqe(e,o){if(e&1&&(l(0,"td",36),E(1,gqe,2,0,"button",37),E(2,_qe,2,0,"button",38),r()),e&2){let t=o.$implicit;a(),I(t.system?-1:1),a(),I(t.system?-1:2)}}function vqe(e,o){e&1&&b(0,"tr",43)}function xqe(e,o){e&1&&b(0,"tr",44)}function bqe(e,o){if(e&1&&(l(0,"button",45),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.isFormEdited),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var _x=(()=>{class e{constructor(){this.systemService=T(ii),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.entitySubTypeData=hx,this.appTableData=fx,this.isFormEdited=!1,this.dataTableChangesData={apptableName:"",changeColumns:[],addColumns:[],dropColumns:[],entitySubType:""},this.dataForDialog={columnName:void 0,columnDisplayType:void 0,isColumnNullable:void 0,columnLength:void 0,columnCode:void 0,columnCodes:void 0,type:void 0,isColumnUnique:void 0,isColumnIndexed:void 0},this.displayedColumns=["name","type","length","code","mandatory","unique","indexed","actions"],this.route.data.subscribe(t=>{this.dataTableData=t.dataTable;let n=this.getRelationshipColumnName(this.dataTableData.applicationTableName);this.dataTableData.columnHeaderData.forEach(i=>{i.system=["id","created_at","updated_at"].includes(i.columnName)||i.columnName===n}),this.columnData=this.dataTableData.columnHeaderData,this.dataForDialog.columnCodes=t.columnCodes})}getRelationshipColumnName(t){return{m_client:"client_id",m_group:"group_id",m_center:"center_id",m_office:"office_id",m_loan:"loan_id",m_savings_account:"savings_account_id",m_savings_account_transaction:"savings_transaction_id",m_product_loan:"product_loan_id",m_savings_product:"savings_product_id",m_share_product:"share_product_id"}[t]||""}ngOnInit(){this.initData(),this.createDataTableForm(),this.setColumns(),this.dataTableForm.controls.apptableName.valueChanges.subscribe(t=>{this.showEntitySubType=t==="m_client"})}setColumns(){this.dataSource=new Wt(this.columnData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}initData(){this.columnData.length>0&&this.columnData[0].columnName==="id"&&this.columnData.shift(),this.dataTableChangesData.apptableName=this.dataTableData.applicationTableName,this.dataTableChangesData.entitySubType=this.dataTableData.entitySubType;for(let t=0;t{if(n!==""){this.isFormEdited=!0;let i={columnName:n.name,columnDisplayType:n.type,isColumnNullable:!n.mandatory,isColumnUnique:n.unique,isColumnIndexed:n.indexed,columnLength:n.length,columnCode:n.code,type:"new"},s=!1;this.columnData.forEach(d=>{(i.columnName===d.columnName||i.columnName===d.columnName&&i.columnDisplayType===d.columnDisplayType&&i.isColumnNullable===d.isColumnNullable)&&(s=!0)}),s||(this.dataTableChangesData.addColumns.push({name:n.name,type:n.type,mandatory:n.mandatory,unique:n.unique,indexed:n.indexed,length:n.length,code:n.code}),this.columnData.push(i),this.dataSource.connect().next(this.columnData))}})}editColumn(t){this.dataForDialog.columnName=t.columnName,this.dataForDialog.columnDisplayType=t.columnDisplayType,this.dataForDialog.isColumnNullable=!t.isColumnNullable,this.dataForDialog.isColumnUnique=t.isColumnUnique,this.dataForDialog.isColumnIndexed=t.isColumnIndexed,this.dataForDialog.columnLength=t.columnLength,this.dataForDialog.columnCode=t.columnCode,this.dataForDialog.type=t.type,this.dialog.open($p,{data:this.dataForDialog,height:"450px",width:"400px"}).afterClosed().subscribe(i=>{if(i!==""){if(this.isFormEdited=!0,t.type==="new")this.dataTableChangesData.addColumns[this.dataTableChangesData.addColumns.findIndex(s=>s.name===t.columnName&&s.type===t.columnDisplayType&&s.mandatory===t.isColumnNullable)]={name:i.name,type:i.type,code:i.code,mandatory:i.mandatory,length:i.length},this.columnData[this.columnData.indexOf(t)]={columnName:i.name,columnDisplayType:i.type,isColumnNullable:!i.mandatory,isColumnUnique:i.unique,isColumnIndexed:i.indexed,columnLength:i.length,columnCode:i.code,type:"new"};else if(t.type==="existing"){this.columnData[this.columnData.indexOf(t)]={columnName:i.name,columnDisplayType:t.columnDisplayType,isColumnNullable:t.isColumnNullable,isColumnUnique:t.unique,isColumnIndexed:t.indexed,columnLength:t.columnLength,columnCode:t.columnCode,type:"existing"};let s=this.dataTableChangesData.changeColumns.findIndex(d=>d.newName===t.columnName);s===-1?this.dataTableChangesData.changeColumns.push({name:t.columnName,newName:i.name,code:t.columnCode,newCode:i.code,mandatory:i.mandatory,length:i.length}):this.dataTableChangesData.changeColumns[s]={name:t.columnName,newName:i.name,code:t.columnCode,newCode:i.code,mandatory:i.mandatory,length:i.length}}this.dataSource.connect().next(this.columnData)}})}deleteColumn(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Column")+" "+t.columnName}}).afterClosed().subscribe(i=>{i.delete&&(this.isFormEdited=!0,this.columnData.splice(this.columnData.indexOf(t),1),this.dataSource.connect().next(this.columnData),t.type==="existing"?this.dataTableChangesData.dropColumns.push({name:t.columnName}):t.type==="new"&&this.dataTableChangesData.addColumns.splice(this.dataTableChangesData.addColumns.findIndex(s=>s.name===t.columnName&&s.type===t.columnDisplayType&&s.mandatory===t.isColumnNullable),1))})}getColumnType(t){switch(t){case"INTEGER":return"Number";case"CODELOOKUP":return"Dropdown";default:return t[0]+t.substr(1).toLowerCase()}}submit(){(!this.dataTableChangesData.addColumns||this.dataTableChangesData.addColumns.length===0)&&(this.dataTableChangesData.addColumns=void 0),(!this.dataTableChangesData.changeColumns||this.dataTableChangesData.changeColumns.length===0)&&(this.dataTableChangesData.changeColumns=void 0),(!this.dataTableChangesData.dropColumns||this.dataTableChangesData.dropColumns.length===0)&&(this.dataTableChangesData.dropColumns=void 0),this.systemService.updateDataTable(this.dataTableChangesData,this.dataTableData.registeredTableName).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-data-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:63,vars:29,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-40"],["matInput","","required","","formControlName","datatableName"],[1,"flex-fill","flex-20"],["required","","formControlName","apptableName"],[3,"value"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","","class","center",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","length"],["matColumnDef","code"],["matColumnDef","mandatory"],["matColumnDef","unique"],["matColumnDef","indexed"],["matColumnDef","actions"],["mat-cell","","class","center gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","entitySubType"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"column-mandatory",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-column-mandatory",3,"matTooltip"],["icon","times-circle","size","lg","unique","right",1,"not-column-mandatory",3,"matTooltip"],["mat-cell","",1,"center","gap-15percent"],["type","button","color","primary","mat-icon-button",""],["type","button","color","warn","mat-icon-button",""],["type","button","color","primary","mat-icon-button","",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),r(),l(10,"mat-form-field",5)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",6),Se(15,$Ve,3,5,"mat-option",7,Pe),r(),E(17,UVe,7,9,"mat-error"),r(),E(18,QVe,7,3,"mat-form-field",5),r(),b(19,"br"),l(20,"div",8)(21,"p",9),c(22),p(23,"translate"),r(),l(24,"button",10),R("click",function(){return i.addColumn()}),b(25,"fa-icon",11),c(26),p(27,"translate"),p(28,"translate"),r()(),b(29,"br"),l(30,"table",12),X(31,13),F(32,YVe,3,3,"th",14)(33,JVe,2,1,"td",15),Z(),X(34,16),F(35,KVe,3,3,"th",14)(36,XVe,2,1,"td",15),Z(),X(37,17),F(38,ZVe,3,3,"th",14)(39,eqe,2,1,"td",15),Z(),X(40,18),F(41,tqe,3,3,"th",14)(42,iqe,2,1,"td",15),Z(),X(43,19),F(44,nqe,3,3,"th",14)(45,rqe,3,2,"td",15),Z(),X(46,20),F(47,lqe,3,3,"th",14)(48,pqe,3,2,"td",15),Z(),X(49,21),F(50,mqe,3,3,"th",14)(51,fqe,3,2,"td",15),Z(),X(52,22),F(53,hqe,3,3,"th",14)(54,Cqe,3,2,"td",23),Z(),F(55,vqe,1,0,"tr",24)(56,xqe,1,0,"tr",25),r(),b(57,"mat-paginator",26),r(),l(58,"mat-card-actions",27)(59,"button",28),c(60),p(61,"translate"),r(),F(62,bqe,3,4,"button",29),r()()()()),n&2&&(a(2),g("formGroup",i.dataTableForm),a(5),h(m(8,15,"labels.inputs.Data Table Name")),a(5),h(m(13,17,"labels.inputs.Application Table Name")),a(3),we(i.appTableData),a(2),I(i.dataTableForm.controls.apptableName.hasError("required")?17:-1),a(),I(i.showEntitySubType?18:-1),a(4),h(m(23,19,"labels.inputs.Columns")),a(4),le(" ",m(27,21,"labels.buttons.Add")," ",m(28,23,"labels.inputs.Columns")," "),a(4),g("dataSource",i.dataSource),a(25),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(27,GVe)),a(2),g("routerLink",oe(28,jVe)),a(),v(" ",m(61,25,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_DATATABLE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var yqe=["createDatatableRef"],Sqe=["templateCreateDatatableRef"],wqe=["datatablesList"],Pqe=["templateDatatablesList"],Tqe=()=>[10,25,50,100],Mqe=()=>["create"],Dqe=e=>[e];function Eqe(e,o){e&1&&(l(0,"button",23),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Mqe)),a(2),v(" ",m(3,2,"labels.buttons.Create Data Table")," "))}function Iqe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Data Table Name")))}function Oqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.registeredTableName)}}function Aqe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Associated With")))}function Fqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.applicationTableName)}}function kqe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Sub Type")))}function Bqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entitySubType)}}function Rqe(e,o){e&1&&b(0,"tr",27)}function Nqe(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,Dqe,t.registeredTableName))}}function Lqe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Data Table")),a(3),h(m(5,7,"labels.text.Launch a page that create new data table")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Vqe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(32);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter datatables")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function qqe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of all currently available data tables")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var Cx=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["registeredTableName","applicationTableName","entitySubType"],this.route.data.subscribe(t=>{this.dataTableData=t.dataTables})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setDataTables()}setDataTables(){this.dataSource=new Wt(this.dataTableData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDatatablesPage===!0&&setTimeout(()=>{this.showPopover(this.templateCreateDatatableRef,this.createDatatableRef.nativeElement,"bottom",!0)}),this.configurationWizardService.showDatatablesList===!0&&setTimeout(()=>{this.showPopover(this.templateDatatablesList,this.datatablesList.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showDatatablesPage=!1,this.configurationWizardService.showDatatablesList=!1,this.configurationWizardService.showDatatablesForm=!0,this.router.navigate(["/system/data-tables/create"])}previousStep(){this.configurationWizardService.showDatatablesPage=!1,this.configurationWizardService.showDatatablesList=!1,this.configurationWizardService.showDatatables=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-data-tables"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(yqe,5),Ee(Sqe,5),Ee(wqe,5),Ee(Pqe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.createDatatableRef=s.first),Te(s=Me())&&(i.templateCreateDatatableRef=s.first),Te(s=Me())&&(i.datatablesList=s.first),Te(s=Me())&&(i.templateDatatablesList=s.first)}},decls:33,vars:9,consts:[["createDatatableRef",""],["filter",""],["datatablesList",""],["templateCreateDatatableRef",""],["templateFilter",""],["templateDatatablesList",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","registeredTableName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","applicationTableName"],["matColumnDef","entitySubType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,Eqe,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,Iqe,3,3,"th",16)(17,Oqe,2,1,"td",17),Z(),X(18,18),F(19,Aqe,3,3,"th",16)(20,Fqe,2,1,"td",17),Z(),X(21,19),F(22,kqe,3,3,"th",16)(23,Bqe,2,1,"td",17),Z(),F(24,Rqe,1,0,"tr",20)(25,Nqe,1,3,"tr",21),r(),b(26,"mat-paginator",22),r()(),F(27,Lqe,16,15,"ng-template",null,3,ti)(29,Vqe,13,12,"ng-template",null,4,ti)(31,qqe,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_DATATABLE"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Tqe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var zqe=()=>[10,25,50,100],Hqe=()=>["edit"];function Gqe(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Hqe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function jqe(e,o){if(e&1){let t=Y();l(0,"button",22),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",23),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function $qe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Field Name")," "))}function Uqe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnName)}}function Wqe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Qqe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}function Yqe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Length")))}function Jqe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function Kqe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code")))}function Xqe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function Zqe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function eze(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function tze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function ize(e,o){if(e&1&&(l(0,"td",25),E(1,eze,2,4,"fa-icon",26),E(2,tze,2,4,"fa-icon",27),r()),e&2){let t=o.$implicit;a(),I(t.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function nze(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unique")))}function oze(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function aze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function rze(e,o){if(e&1&&(l(0,"td",25),E(1,oze,2,4,"fa-icon",26),E(2,aze,2,4,"fa-icon",27),r()),e&2){let t=o.$implicit;a(),I(t.isColumnUnique?1:-1),a(),I(t.isColumnUnique?-1:2)}}function lze(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Indexed")," "))}function sze(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function cze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function pze(e,o){if(e&1&&(l(0,"td",25),E(1,sze,2,4,"fa-icon",26),E(2,cze,2,4,"fa-icon",27),r()),e&2){let t=o.$implicit;a(),I(t.isColumnIndexed?1:-1),a(),I(t.isColumnIndexed?-1:2)}}function mze(e,o){e&1&&b(0,"tr",28)}function dze(e,o){e&1&&b(0,"tr",29)}var vx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["columnName","columnDisplayType","columnLength","columnCode","isColumnNullable","isColumnUnique","isColumnIndexed"],this.route.data.subscribe(t=>{this.dataTableData=t.dataTable,this.columnsData=this.dataTableData.columnHeaderData})}ngOnInit(){this.setColumnsTable()}setColumnsTable(){this.columnsData.shift(),this.dataSource=new Wt(this.columnsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Data Table")+" "+this.dataTableData.registeredTableName}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteDataTable(this.dataTableData.registeredTableName).subscribe(()=>{this.router.navigate(["/system/data-tables"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-data-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:38,vars:11,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container","m-b-15","layout-align-start"],[1,"layout-row-wrap","responsive-column","gap-12px"],[1,"mat-body-strong"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","columnName"],["mat-header-cell","","mat-sort-header","","class","center",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","columnDisplayType"],["matColumnDef","columnLength"],["matColumnDef","columnCode"],["matColumnDef","isColumnNullable"],["matColumnDef","isColumnUnique"],["matColumnDef","isColumnIndexed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"column-mandatory",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-column-mandatory",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Gqe,4,5,"button",1)(2,jqe,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div"),c(11),r()()()()(),l(12,"div",6)(13,"table",7),X(14,8),F(15,$qe,3,3,"th",9)(16,Uqe,2,1,"td",10),Z(),X(17,11),F(18,Wqe,3,3,"th",9)(19,Qqe,2,1,"td",10),Z(),X(20,12),F(21,Yqe,3,3,"th",9)(22,Jqe,2,1,"td",10),Z(),X(23,13),F(24,Kqe,3,3,"th",9)(25,Xqe,2,1,"td",10),Z(),X(26,14),F(27,Zqe,3,3,"th",9)(28,ize,3,2,"td",10),Z(),X(29,15),F(30,nze,3,3,"th",9)(31,rze,3,2,"td",10),Z(),X(32,16),F(33,lze,3,3,"th",9)(34,pze,3,2,"td",10),Z(),F(35,mze,1,0,"tr",17)(36,dze,1,0,"tr",18),r(),b(37,"mat-paginator",19),r()),n&2&&(a(),g("mifosxHasPermission","UPDATE_DATATABLE"),a(),g("mifosxHasPermission","DELETE_DATATABLE"),a(6),v(" ",m(9,8,"labels.inputs.Associated With")," "),a(3),v(" ",i.dataTableData.applicationTableName," "),a(2),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(10,zqe)))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function uze(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function fze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Grouping")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hze(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function gze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Entity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _ze(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Cze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Action")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var tu=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po),this.entityData=new Array,this.actionData=new Array}ngOnInit(){this.eventForm=this.formBuilder.group({grouping:["",ce.required],entity:["",ce.required],action:["",ce.required]}),this.setGroupingListener(),this.setEntityListener()}setGroupingListener(){this.eventForm.get("grouping").valueChanges.subscribe(t=>{this.entityData=this.data.groupings.find(n=>n.name===t).entities})}setEntityListener(){this.eventForm.get("entity").valueChanges.subscribe(t=>{this.actionData=this.entityData.find(n=>n.name===t).actions})}submit(){this.dialogRef.close(this.eventForm.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-event-dialog"]],decls:37,vars:23,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"layout-column"],["required","","formControlName","grouping"],[3,"value"],["required","","formControlName","entity"],["required","","formControlName","action"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"form",1)(5,"div",2)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",3),Se(11,uze,3,5,"mat-option",4,Pe),r(),E(13,fze,7,9,"mat-error"),r(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",5),Se(19,hze,2,2,"mat-option",4,Pe),r(),E(21,gze,7,9,"mat-error"),r(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),l(26,"mat-select",6),Se(27,_ze,2,2,"mat-option",4,Pe),r(),E(29,Cze,7,9,"mat-error"),r()()()(),l(30,"mat-dialog-actions",7)(31,"button",8),c(32),p(33,"translate"),r(),l(34,"button",9),R("click",function(){return i.submit()}),c(35),p(36,"translate"),r()()),n&2&&(a(),h(m(2,11,"labels.buttons.Add Event")),a(3),g("formGroup",i.eventForm),a(4),h(m(9,13,"labels.inputs.Select Grouping")),a(3),we(i.data.groupings),a(2),I(i.eventForm.controls.grouping.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Select Entity")),a(3),we(i.entityData),a(2),I(i.eventForm.controls.entity.hasError("required")?21:-1),a(3),h(m(25,17,"labels.inputs.Select Action")),a(3),we(i.actionData),a(2),I(i.eventForm.controls.action.hasError("required")?29:-1),a(3),h(m(33,19,"labels.buttons.Cancel")),a(2),g("disabled",!i.eventForm.valid||i.eventForm.pristine),a(),v(" ",m(36,21,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Fe,Be,ut,gt,ft,xe,Wn,ho,Nn,Un,he,ki],encapsulation:2})}}return e})();var vze=()=>["../"];function xze(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",Ft(2,2,t.name,"text")," ")}}function bze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Hook Template")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Display Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Sze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Content Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wze(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",29)(5,"mat-option",6),c(6),p(7,"translate"),r(),l(8,"mat-option",6),c(9),p(10,"translate"),r()(),E(11,Sze,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,6,"labels.inputs.Content Type")),a(3),g("value","json"),a(),v(" ",m(7,8,"labels.inputs.json")," "),a(2),g("value","form"),a(),v(" ",m(10,10,"labels.inputs.form")," "),a(2),I(t.hookForm.controls.contentType.hasError("required")?11:-1)}}function Pze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tze(e,o){if(e&1&&(l(0,"mat-form-field",8)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",30,0),l(6,"mat-hint",31),c(7),r(),E(8,Pze,7,9,"mat-error"),r()),e&2){let t=ve(5),n=w();a(2),h(m(3,3,"labels.inputs.Phone Number")),a(5),v("",(t.value==null?null:t.value.length)||0,"/10"),a(),I(n.hookForm.controls.phoneNumber.hasError("required")?8:-1)}}function Mze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Dze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Eze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Account ID")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ize(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Token")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Oze(e,o){if(e&1&&(l(0,"div",3)(1,"mat-form-field",32)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",33),E(6,Dze,7,9,"mat-error"),r(),l(7,"mat-form-field",32)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",34),E(12,Eze,7,9,"mat-error"),r(),l(13,"mat-form-field",32)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",35),E(18,Ize,7,9,"mat-error"),r()()),e&2){let t=w();a(3),h(m(4,6,"labels.inputs.SMS Provider")),a(3),I(t.hookForm.controls.smsProvider.hasError("required")?6:-1),a(3),h(m(10,8,"labels.inputs.SMS Provider Account ID")),a(3),I(t.hookForm.controls.smsProviderAccountId.hasError("required")?12:-1),a(3),h(m(16,10,"labels.inputs.SMS Provider Token")),a(3),I(t.hookForm.controls.smsProviderToken.hasError("required")?18:-1)}}function Aze(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Name")))}function Fze(e,o){if(e&1&&(l(0,"td",37),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function kze(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Action")," ",m(3,4,"labels.inputs.Name")," "))}function Bze(e,o){if(e&1&&(l(0,"td",37),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function Rze(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Nze(e,o){if(e&1){let t=Y();l(0,"td",39)(1,"button",40),R("click",function(){let i=V(t).index,s=w();return q(s.deleteEvent(i))}),b(2,"fa-icon",41),r()()}}function Lze(e,o){e&1&&b(0,"tr",42)}function Vze(e,o){e&1&&b(0,"tr",43)}function qze(e,o){if(e&1&&(l(0,"button",44),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.hookForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var xx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["entityName","actionName","actions"],this.eventsData=[],this.route.data.subscribe(t=>{this.hooksTemplateData=t.hooksTemplate})}ngOnInit(){this.createHookForm(),this.hookForm.get("name").valueChanges.subscribe(t=>{t==="Web"?(this.hookForm.get("contentType").enable(),this.hookForm.get("phoneNumber").disable(),this.hookForm.get("smsProvider").disable(),this.hookForm.get("smsProviderAccountId").disable(),this.hookForm.get("smsProviderToken").disable()):(this.hookForm.get("contentType").disable(),this.hookForm.get("phoneNumber").enable(),this.hookForm.get("smsProvider").enable(),this.hookForm.get("smsProviderAccountId").enable(),this.hookForm.get("smsProviderToken").enable())}),this.setEvents()}setEvents(){this.dataSource=new Wt(this.eventsData),this.dataSource.sort=this.sort}createHookForm(){this.hookForm=this.formBuilder.group({name:["Web",ce.required],displayName:["",ce.required],isActive:[""],phoneNumber:[{value:"",disabled:!0},ce.required],smsProvider:[{value:"",disabled:!0},ce.required],smsProviderAccountId:[{value:"",disabled:!0},ce.required],smsProviderToken:[{value:"",disabled:!0},ce.required],contentType:["",ce.required],payloadUrl:["",ce.required]})}addEvent(){this.dialog.open(tu,{data:this.hooksTemplateData}).afterClosed().subscribe(n=>{n&&(this.eventsData.push({entityName:n.entity,actionName:n.action}),this.dataSource.connect().next(this.eventsData))})}deleteEvent(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.event with entity name of")+" "+this.eventsData[t].entityName}}).afterClosed().subscribe(i=>{i.delete&&(this.eventsData.splice(t,1),this.dataSource.connect().next(this.eventsData))})}submit(){let t={name:this.hookForm.get("name").value,isActive:this.hookForm.get("isActive").value,displayName:this.hookForm.get("displayName").value,events:this.eventsData,config:{"Payload URL":this.hookForm.get("payloadUrl").value,"Content Type":this.hookForm.get("contentType").enabled?this.hookForm.get("contentType").value:void 0,"SMS Provider":this.hookForm.get("smsProvider").enabled?this.hookForm.get("smsProvider").value:void 0,"SMS Provider Account Id":this.hookForm.get("smsProviderAccountId").enabled?this.hookForm.get("smsProviderAccountId").value:void 0,"SMS Provider Token":this.hookForm.get("smsProviderToken").enabled?this.hookForm.get("smsProviderToken").value:void 0}};this.systemService.createHook(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-hook"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:62,vars:37,consts:[["input",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-4percent"],[1,"flex-40"],["required","","formControlName","name"],[3,"value"],["matInput","","required","","formControlName","displayName"],[1,"flex-fill","flex-40"],["matInput","","required","","formControlName","payloadUrl"],[1,"layout-row-wrap","responsive-column","align-center"],[1,"mat-title","flex-20"],[1,"red"],["mat-raised-button","","type","button","color","primary",1,"AddEventButton","flex-20",3,"click"],["icon","plus",1,"m-r-10"],["labelPosition","before","formControlName","isActive",1,"is-active","flex-10","m-l-20"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entityName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actionName"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","contentType"],["matInput","","type","tel","maxlength","10","required","","formControlName","phoneNumber"],["align","end"],[1,"flex-30"],["matInput","","required","","formControlName","smsProvider"],["matInput","","required","","formControlName","smsProviderAccountId"],["matInput","","required","","formControlName","smsProviderToken"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-cell","",1,"gap-15percent"],["type","button","color","warn","mat-icon-button","",1,"flex-8",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,xze,3,5,"mat-option",6,Pe),r(),E(12,bze,7,9,"mat-error"),r(),l(13,"mat-form-field",4)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7),E(18,yze,7,9,"mat-error"),r()(),l(19,"div",3),E(20,wze,12,12,"mat-form-field",4),E(21,Tze,9,5,"mat-form-field",8),l(22,"mat-form-field",4)(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"input",9),E(27,Mze,7,9,"mat-error"),r()(),E(28,Oze,19,12,"div",3),b(29,"br")(30,"br"),l(31,"div",10)(32,"p",11),c(33),p(34,"translate"),l(35,"span",12),c(36,"*"),r()(),l(37,"button",13),R("click",function(){return i.addEvent()}),b(38,"fa-icon",14),c(39),p(40,"translate"),p(41,"translate"),r(),l(42,"mat-checkbox",15),c(43),p(44,"translate"),r()(),l(45,"table",16),X(46,17),F(47,Aze,3,3,"th",18)(48,Fze,2,1,"td",19),Z(),X(49,20),F(50,kze,4,6,"th",18)(51,Bze,2,1,"td",19),Z(),X(52,21),F(53,Rze,3,3,"th",22)(54,Nze,3,0,"td",23),Z(),F(55,Lze,1,0,"tr",24)(56,Vze,1,0,"tr",25),r()(),l(57,"mat-card-actions",26)(58,"button",27),c(59),p(60,"translate"),r(),F(61,qze,3,4,"button",28),r()()()()),n&2&&(a(2),g("formGroup",i.hookForm),a(5),h(m(8,20,"labels.inputs.Hook Template")),a(3),we(i.hooksTemplateData.templates),a(2),I(i.hookForm.controls.name.hasError("required")?12:-1),a(3),h(m(16,22,"labels.inputs.Display Name")),a(3),I(i.hookForm.controls.displayName.hasError("required")?18:-1),a(2),I(i.hookForm.controls.name.value==="Web"?20:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?21:-1),a(3),h(m(25,24,"labels.inputs.Payload URL")),a(3),I(i.hookForm.controls.payloadUrl.hasError("required")?27:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?28:-1),a(5),h(m(34,26,"labels.inputs.Events")),a(6),le(" ",m(40,28,"labels.buttons.Add")," ",m(41,30,"labels.inputs.Events")," "),a(4),v(" ",m(44,32,"labels.inputs.Is Active"),"? "),a(2),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(36,vze)),a(),v(" ",m(60,34,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_HOOK"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,qa,ze,gt,ft,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,he,ki],styles:["@media (width >= 992px){.is-active-wrapper[_ngcontent-%COMP%]{position:relative}.is-active-wrapper[_ngcontent-%COMP%] .is-active[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}table[_ngcontent-%COMP%]{width:100%}.AddEventButton[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return e})();var zze=()=>["../"];function Hze(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",Ft(2,2,t.name,"text")," ")}}function Gze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Hook Template")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Display Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $ze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Content Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Uze(e,o){if(e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",31)(5,"mat-option",6),c(6),p(7,"translate"),r(),l(8,"mat-option",6),c(9),p(10,"translate"),r()(),E(11,$ze,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,6,"labels.inputs.Content Type")),a(3),g("value","json"),a(),v(" ",m(7,8,"labels.inputs.json")," "),a(2),g("value","form"),a(),v(" ",m(10,10,"labels.inputs.form")," "),a(2),I(t.hookForm.controls.contentType.hasError("required")?11:-1)}}function Wze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Qze(e,o){if(e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32,0),l(6,"mat-hint",33),c(7),r(),E(8,Wze,7,9,"mat-error"),r()),e&2){let t=ve(5),n=w();a(2),h(m(3,3,"labels.inputs.Phone Number")),a(5),v("",(t.value==null?null:t.value.length)||0,"/10"),a(),I(n.hookForm.controls.phoneNumber.hasError("required")?8:-1)}}function Yze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Jze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Kze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Account ID")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Token")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zze(e,o){if(e&1&&(l(0,"div",3)(1,"mat-form-field",34)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",35),E(6,Jze,7,9,"mat-error"),r(),l(7,"mat-form-field",34)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",36),E(12,Kze,7,9,"mat-error"),r(),l(13,"mat-form-field",34)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",37),E(18,Xze,7,9,"mat-error"),r()()),e&2){let t=w();a(3),h(m(4,6,"labels.inputs.SMS Provider")),a(3),I(t.hookForm.controls.smsProvider.hasError("required")?6:-1),a(3),h(m(10,8,"labels.inputs.SMS Provider Account ID")),a(3),I(t.hookForm.controls.smsProviderAccountId.hasError("required")?12:-1),a(3),h(m(16,10,"labels.inputs.SMS Provider Token")),a(3),I(t.hookForm.controls.smsProviderToken.hasError("required")?18:-1)}}function eHe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Name")))}function tHe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function iHe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Action")," ",m(3,4,"labels.inputs.Name")," "))}function nHe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function oHe(e,o){e&1&&(l(0,"div",23)(1,"p"),c(2,"At least one event is required. Cannot delete the last event."),r()())}function aHe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function rHe(e,o){if(e&1){let t=Y();l(0,"td",39)(1,"button",41),R("click",function(){let i=V(t).index,s=w();return q(s.deleteEvent(i))}),b(2,"fa-icon",42),r()()}}function lHe(e,o){e&1&&b(0,"tr",43)}function sHe(e,o){e&1&&b(0,"tr",44)}function cHe(e,o){if(e&1&&(l(0,"button",45),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",(!t.hookForm.valid||t.hookForm.pristine)&&!t.eventsDataChanged),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var bx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.snackBar=T(Fg),this.cdr=T(es),this.displayedColumns=["entityName","actionName","actions"],this.eventsData=[],this.cannotDeleteLastEvent=!1,this.eventsDataChanged=!1,this.route.data.subscribe(t=>{this.hooksTemplateData=t.hooksTemplate,this.hookData=t.hook,this.eventsData=t.hook.events?t.hook.events:[]})}ngOnInit(){this.createHookForm(),this.setEvents()}setEvents(){this.dataSource=new Wt(this.eventsData),this.dataSource.sort=this.sort}createHookForm(){this.hookForm=this.formBuilder.group({name:[{value:this.hookData.name,disabled:!0},ce.required],displayName:[this.hookData.displayName,ce.required],isActive:[this.hookData.isActive],phoneNumber:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[1].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],smsProvider:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[2].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],smsProviderAccountId:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[3].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],smsProviderToken:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[4].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],contentType:[{value:this.hookData.name==="Web"?this.hookData.config[0].fieldValue:"",disabled:this.hookData.name!=="Web"},ce.required],payloadUrl:[this.hookData.name==="Web"?this.hookData.config[1].fieldValue:this.hookData.config[0].fieldValue,ce.required]})}addEvent(){this.dialog.open(tu,{data:this.hooksTemplateData}).afterClosed().subscribe(n=>{n&&(this.eventsData.push({entityName:n.entity,actionName:n.action}),this.dataSource.connect().next(this.eventsData),this.eventsDataChanged=!0)})}deleteEvent(t){if(this.eventsData.length===1){this.snackBar.open("At least one event is required. Cannot delete the last event.","Close",{duration:3e3,panelClass:["error-snackbar"]});return}this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.event with entity name of")+" "+this.eventsData[t].entityName}}).afterClosed().subscribe(i=>{i.delete&&(this.eventsData.splice(t,1),this.dataSource.connect().next(this.eventsData),this.eventsDataChanged=!0,this.cdr.detectChanges())})}submit(){let t={name:this.hookForm.get("name").value,isActive:this.hookForm.get("isActive").value,displayName:this.hookForm.get("displayName").value,events:this.eventsData,config:{"Payload URL":this.hookForm.get("payloadUrl").value,"Content Type":this.hookForm.get("contentType").enabled?this.hookForm.get("contentType").value:void 0,"SMS Provider":this.hookForm.get("smsProvider").enabled?this.hookForm.get("smsProvider").value:void 0,"SMS Provider Account Id":this.hookForm.get("smsProviderAccountId").enabled?this.hookForm.get("smsProviderAccountId").value:void 0,"SMS Provider Token":this.hookForm.get("smsProviderToken").enabled?this.hookForm.get("smsProviderToken").value:void 0}};this.systemService.updateHook(this.hookData.id,t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-hook"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:65,vars:39,consts:[["input",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-4percent"],[1,"flex-40"],["required","","formControlName","name"],[3,"value"],["matInput","","required","","formControlName","displayName"],[1,"is-active-wrapper"],["labelPosition","before","formControlName","isActive",1,"is-active","flex-10"],[1,"flex-fill","flex-40"],["matInput","","required","","formControlName","payloadUrl"],[3,"inset"],[1,"layout-row-wrap","responsive-column"],[1,"mat-title","flex-20"],[1,"red"],["mat-raised-button","","type","button","color","primary",1,"AddEventButton","flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entityName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actionName"],[1,"error-message"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","contentType"],["matInput","","type","tel","maxlength","10","required","","formControlName","phoneNumber"],["align","end"],[1,"flex-30"],["matInput","","required","","formControlName","smsProvider"],["matInput","","required","","formControlName","smsProviderAccountId"],["matInput","","required","","formControlName","smsProviderToken"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,Hze,3,5,"mat-option",6,Pe),r(),E(12,Gze,7,9,"mat-error"),r(),l(13,"mat-form-field",4)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7),E(18,jze,7,9,"mat-error"),r(),l(19,"div",8)(20,"mat-checkbox",9),c(21),p(22,"translate"),r()()(),l(23,"div",3),E(24,Uze,12,12,"mat-form-field",10),E(25,Qze,9,5,"mat-form-field",10),l(26,"mat-form-field",4)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",11),E(31,Yze,7,9,"mat-error"),r()(),E(32,Zze,19,12,"div",3),b(33,"br")(34,"mat-divider",12)(35,"br"),l(36,"div",13)(37,"p",14),c(38),p(39,"translate"),l(40,"span",15),c(41,"*"),r()(),l(42,"button",16),R("click",function(){return i.addEvent()}),b(43,"fa-icon",17),c(44),p(45,"translate"),p(46,"translate"),r()(),l(47,"table",18),X(48,19),F(49,eHe,3,3,"th",20)(50,tHe,2,1,"td",21),Z(),X(51,22),F(52,iHe,4,6,"th",20)(53,nHe,2,1,"td",21),Z(),E(54,oHe,3,0,"div",23),X(55,24),F(56,aHe,3,3,"th",25)(57,rHe,3,0,"td",21),Z(),F(58,lHe,1,0,"tr",26)(59,sHe,1,0,"tr",27),r()(),l(60,"mat-card-actions",28)(61,"button",29),c(62),p(63,"translate"),r(),F(64,cHe,3,4,"button",30),r()()()()),n&2&&(a(2),g("formGroup",i.hookForm),a(5),h(m(8,22,"labels.inputs.Hook Template")),a(3),we(i.hooksTemplateData.templates),a(2),I(i.hookForm.controls.name.hasError("required")?12:-1),a(3),h(m(16,24,"labels.inputs.Display Name")),a(3),I(i.hookForm.controls.displayName.hasError("required")?18:-1),a(3),v(" ",m(22,26,"labels.inputs.Is Active"),"? "),a(3),I(i.hookForm.controls.name.value==="Web"?24:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?25:-1),a(3),h(m(29,28,"labels.inputs.Payload URL")),a(3),I(i.hookForm.controls.payloadUrl.hasError("required")?31:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?32:-1),a(2),g("inset",!0),a(4),v("",m(39,30,"labels.inputs.Events")," "),a(6),le(" ",m(45,32,"labels.buttons.Add")," ",m(46,34,"labels.inputs.Events")," "),a(3),g("dataSource",i.dataSource),a(7),I(i.cannotDeleteLastEvent?54:-1),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(38,zze)),a(),v(" ",m(63,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_HOOK"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,qa,ze,gt,ft,xe,fi,Ke,Ri,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,he,ki],styles:["@media (width >= 992px){.is-active-wrapper[_ngcontent-%COMP%]{position:relative}.is-active-wrapper[_ngcontent-%COMP%] .is-active[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}table[_ngcontent-%COMP%]{width:100%}.AddEventButton[_ngcontent-%COMP%]{margin-bottom:10px}.error-message[_ngcontent-%COMP%]{color:red;font-weight:700;margin-top:10px;padding:5px;background-color:#ffe6e6;border:1px solid red;border-radius:5px}.error-snackbar[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.error-snackbar[_ngcontent-%COMP%] .mat-simple-snackbar-action[_ngcontent-%COMP%]{color:#fff}"]})}}return e})();var pHe=()=>[10,25,50,100],mHe=()=>["create"],dHe=e=>[e];function uHe(e,o){e&1&&(l(0,"button",16),b(1,"fa-icon",17),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,mHe)),a(2),v(" ",m(3,2,"labels.buttons.Create Hook")," "))}function fHe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Hook Template")))}function hHe(e,o){if(e&1&&(l(0,"td",19),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function gHe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Hook Name")))}function _He(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.displayName)}}function CHe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function vHe(e,o){if(e&1&&(l(0,"td",19)(1,"div",20),b(2,"fa-icon",21),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.isActive===!0?"true":"false"),a(),g("matTooltip",Le(t.isActive===!0?m(3,3,"labels.inputs.Active"):m(4,5,"labels.catalogs.Inactive")))}}function xHe(e,o){e&1&&b(0,"tr",22)}function bHe(e,o){if(e&1&&b(0,"tr",23),e&2){let t=o.$implicit;g("routerLink",Nt(1,dHe,t.id))}}var yx=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","displayName","isActive"],this.route.data.subscribe(t=>{this.hookData=t.hooks})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setHooks()}setHooks(){this.dataSource=new Wt(this.hookData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-hooks"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:23,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["matColumnDef","isActive"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,uHe,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,fHe,3,3,"th",9)(13,hHe,3,4,"td",10),Z(),X(14,11),F(15,gHe,3,3,"th",9)(16,_He,2,1,"td",10),Z(),X(17,12),F(18,CHe,3,3,"th",9)(19,vHe,5,7,"td",10),Z(),F(20,xHe,1,0,"tr",13)(21,bHe,1,3,"tr",14),r(),b(22,"mat-paginator",15),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_HOOK"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,pHe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var yHe=()=>["edit"];function SHe(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,yHe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function wHe(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function PHe(e,o){if(e&1&&(l(0,"mat-label"),c(1),b(2,"br"),r()),e&2){let t=o.$implicit;a(),v(" ",t.actionName+" - "+t.entityName," ")}}function THe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Content Type"),":"))}function MHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[0].fieldValue," ")}}function DHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[1].fieldValue," ")}}function EHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[0].fieldValue," ")}}function IHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Phone Number"),":"))}function OHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[1].fieldValue," ")}}function AHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.SMS Provider"),":"))}function FHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[2].fieldValue," ")}}function kHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.SMS Provider Account ID"),":"))}function BHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[3].fieldValue," ")}}function RHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.SMS Provider Token"),":"))}function NHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[4].fieldValue," ")}}var Sx=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.systemService=T(ii),this.router=T(qe),this.translateService=T(yi),this.route.data.subscribe(t=>{this.hookData=t.hook})}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.hook")+" "+this.hookData.id}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteHook(this.hookData.id).subscribe(()=>{this.router.navigate(["/system/hooks"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-hook"]],decls:52,vars:44,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,SHe,4,5,"button",1)(2,wHe,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),p(17,"translate"),p(18,"translate"),r(),l(19,"div",5),c(20),p(21,"translate"),r(),l(22,"div",6),c(23),p(24,"dateFormat"),r(),l(25,"div",5),c(26),p(27,"translate"),r(),l(28,"div",6),c(29),p(30,"dateFormat"),r(),l(31,"div",5),c(32),p(33,"translate"),r(),l(34,"div",6),Se(35,PHe,3,1,"mat-label",null,Pe),r(),E(37,THe,3,3,"div",5),E(38,MHe,2,1,"div",6),l(39,"div",5),c(40),p(41,"translate"),r(),E(42,DHe,2,1,"div",6),E(43,EHe,2,1,"div",6),E(44,IHe,3,3,"div",5),E(45,OHe,2,1,"div",6),E(46,AHe,3,3,"div",5),E(47,FHe,2,1,"div",6),E(48,kHe,3,3,"div",5),E(49,BHe,2,1,"div",6),E(50,RHe,3,3,"div",5),E(51,NHe,2,1,"div",6),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_HOOK"),a(),g("mifosxHasPermission","DELETE_HOOK"),a(6),v("",m(9,24,"labels.inputs.Hook Name"),":"),a(3),v(" ",i.hookData.displayName," "),a(2),v("",m(14,26,"labels.inputs.Status"),":"),a(3),v(" ",i.hookData.isActive?m(17,28,"labels.inputs.Active"):m(18,30,"labels.catalogs.Inactive")," "),a(4),v("",m(21,32,"labels.inputs.Activation Date"),":"),a(3),v(" ",m(24,34,i.hookData.createdAt)," "),a(3),v("",m(27,36,"labels.inputs.Updated on"),":"),a(3),v(" ",m(30,38,i.hookData.updatedAt)," "),a(3),v("",m(33,40,"labels.inputs.Events"),":"),a(3),we(i.hookData.events),a(2),I(i.hookData.name==="Web"?37:-1),a(),I(i.hookData.name==="Web"?38:-1),a(2),v("",m(41,42,"labels.inputs.Payload URL"),":"),a(2),I(i.hookData.name==="Web"?42:-1),a(),I(i.hookData.name==="SMS Bridge"?43:-1),a(),I(i.hookData.name==="SMS Bridge"?44:-1),a(),I(i.hookData.name==="SMS Bridge"?45:-1),a(),I(i.hookData.name==="SMS Bridge"?46:-1),a(),I(i.hookData.name==="SMS Bridge"?47:-1),a(),I(i.hookData.name==="SMS Bridge"?48:-1),a(),I(i.hookData.name==="SMS Bridge"?49:-1),a(),I(i.hookData.name==="SMS Bridge"?50:-1),a(),I(i.hookData.name==="SMS Bridge"?51:-1))},dependencies:[ue,fe,Oe,Ue,Je,Be,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function LHe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.parameterName," ")}}function VHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Parameters")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Up=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po)}ngOnInit(){this.reportParameterForm=this.formBuilder.group({parameterName:[this.data.parameterName,ce.required],reportParameterName:[this.data.reportParameterName]})}submit(){this.dialogRef.close(this.reportParameterForm.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-report-parameter-dialog"]],decls:28,vars:23,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"layout-column"],["required","","formControlName","parameterName"],[3,"value"],["matInput","","formControlName","reportParameterName"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),r(),l(5,"mat-dialog-content")(6,"form",1)(7,"div",2)(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",3),Se(13,LHe,2,2,"mat-option",4,Pe),r(),E(15,VHe,7,9,"mat-error"),r(),l(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",5),r()()()(),l(21,"mat-dialog-actions",6)(22,"button",7),c(23),p(24,"translate"),r(),l(25,"button",8),R("click",function(){return i.submit()}),c(26),p(27,"translate"),r()()),n&2&&(a(),le(" ",i.data.parameterName?m(2,9,"labels.buttons.Edit"):m(3,11,"labels.buttons.Add")," ",m(4,13,"labels.heading.Report Parameter"),` -`),a(5),g("formGroup",i.reportParameterForm),a(4),h(m(11,15,"labels.inputs.Select allowed parameter")),a(3),we(i.data.allowedParameters),a(2),I(i.reportParameterForm.controls.parameterName.hasError("required")?15:-1),a(3),h(m(19,17,"labels.inputs.Parameter Name Passed to Pentaho")),a(5),h(m(24,19,"labels.buttons.Cancel")),a(2),g("disabled",!i.reportParameterForm.valid||i.reportParameterForm.pristine),a(),v(" ",m(27,21,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var qHe=()=>[10,25,50,100],zHe=()=>["../"];function HHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function GHe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function jHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $He(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function UHe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"catalogs")," ")}}function WHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function QHe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.buttons.Parameters")," "))}function YHe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.parameterName," ")}}function JHe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Parameter Name Passed to Pentaho")," "))}function KHe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.reportParameterName," ")}}function XHe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Actions")," "))}function ZHe(e,o){if(e&1){let t=Y();l(0,"td",33)(1,"div",35)(2,"button",36),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editReportParameter(i))}),b(3,"fa-icon",37),r(),l(4,"button",38),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteReportParameter(i))}),b(5,"fa-icon",39),r()()()}}function eGe(e,o){e&1&&b(0,"tr",40)}function tGe(e,o){e&1&&b(0,"tr",41)}function iGe(e,o){if(e&1&&(l(0,"button",42),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.reportForm.valid&&t.reportParametersData.length===0),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var wx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateServices=T(yi),this.dataForDialog={allowedParameters:void 0,parameterName:void 0,reportParameterName:void 0},this.displayedColumns=["parameterName","parameterNamePassed","actions"],this.reportParametersData=[],this.reportCategoryTypeOptions=["Client","Loan","Savings","Fund","Accounting"],this.route.data.subscribe(t=>{this.reportTemplateData=t.reportTemplate,this.dataForDialog.allowedParameters=this.reportTemplateData.allowedParameters})}ngOnInit(){this.createReportForm(),this.toggleVisibility(),this.setReportParameters()}setReportParameters(){this.dataSource=new Wt(this.reportParametersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createReportForm(){this.reportForm=this.formBuilder.group({reportName:["",ce.required],reportCategory:[""],description:[""],reportType:["",ce.required],reportSubType:[{value:"",disabled:!0}],useReport:[!1],reportSql:["",ce.required]})}addReportParameter(){this.dataForDialog.parameterName=void 0,this.dataForDialog.reportParameterName=void 0,this.dialog.open(Up,{data:qt(at({},this.dataForDialog),{layout:{addButtonText:"Add"}}),width:"25rem"}).afterClosed().subscribe(n=>{n!==""&&(this.reportParametersData.push({id:"",parameterName:this.reportTemplateData.allowedParameters.find(i=>i.id===n.parameterName).parameterName,parameterId:n.parameterName,reportParameterName:n.reportParameterName}),this.dataSource.connect().next(this.reportParametersData))})}editReportParameter(t){this.dataForDialog.parameterName=t.parameterId,this.dataForDialog.reportParameterName=t.reportParameterName,this.dialog.open(Up,{data:this.dataForDialog}).afterClosed().subscribe(i=>{i!==""&&(this.reportParametersData[this.reportParametersData.indexOf(t)]={id:"",parameterName:this.reportTemplateData.allowedParameters.find(s=>s.id===i.parameterName).parameterName,parameterId:i.parameterName,reportParameterName:i.reportParameterName},this.dataSource.connect().next(this.reportParametersData))})}deleteReportParameter(t){this.dialog.open(vi,{data:{deleteContext:this.translateServices.instant("labels.heading.Report Parameter")+" "+t.parameterName}}).afterClosed().subscribe(i=>{i.delete&&(this.reportParametersData.splice(this.reportParametersData.indexOf(t),1),this.dataSource.connect().next(this.reportParametersData))})}toggleVisibility(){this.reportForm.get("reportType").valueChanges.subscribe(t=>{switch(t){case"Chart":this.reportForm.get("reportSubType").enable(),this.reportForm.get("reportSql").enable();break;case"Pentaho":this.reportForm.get("reportSql").disable(),this.reportForm.get("reportSubType").disable();break;default:this.reportForm.get("reportSql").enable(),this.reportForm.get("reportSubType").disable()}})}submit(){this.reportForm.value.reportParameters=this.reportParametersData.map(function(t){return t.parameterName=void 0,t}),this.systemService.createReport(this.reportForm.value).subscribe(t=>{this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-report"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:75,vars:42,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","reportName"],[1,"flex-50"],["required","","formControlName","reportType"],[3,"value"],["formControlName","reportSubType"],["formControlName","reportCategory"],[1,"user-report-wrapper","flex-50"],["labelPosition","after","formControlName","useReport",1,"user-report"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"flex-98"],["matInput","","required","","formControlName","reportSql","cdkTextareaAutosize","","cdkAutosizeMinRows","6"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","parameterName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","parameterNamePassed"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","type","submit","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"layout-row","gap-15percent"],["type","button","color","primary","mat-icon-button","",1,"flex-8",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",1,"flex-8",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,HHe,7,9,"mat-error"),r(),l(11,"mat-form-field",5)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",6),Se(16,GHe,3,5,"mat-option",7,Pe),r(),E(18,jHe,7,9,"mat-error"),r(),l(19,"mat-form-field",5)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",8),Se(24,$He,3,5,"mat-option",7,Pe),r()(),l(26,"mat-form-field",5)(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",9),Se(31,UHe,3,5,"mat-option",7,Pe),r()(),l(33,"div",10)(34,"mat-checkbox",11),c(35),p(36,"translate"),r()(),l(37,"mat-form-field",3)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"textarea",12),r(),l(42,"mat-form-field",13)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"textarea",14),E(47,WHe,7,9,"mat-error"),r()(),b(48,"br"),l(49,"div",15)(50,"p",16),c(51),p(52,"translate"),r(),l(53,"button",17),R("click",function(){return i.addReportParameter()}),b(54,"fa-icon",18),c(55),p(56,"translate"),r()(),l(57,"table",19),X(58,20),F(59,QHe,3,3,"th",21)(60,YHe,2,1,"td",22),Z(),X(61,23),F(62,JHe,3,3,"th",21)(63,KHe,2,1,"td",22),Z(),X(64,24),F(65,XHe,3,3,"th",25)(66,ZHe,6,0,"td",22),Z(),F(67,eGe,1,0,"tr",26)(68,tGe,1,0,"tr",27),r(),b(69,"mat-paginator",28),r(),l(70,"mat-card-actions",29)(71,"button",30),c(72),p(73,"translate"),r(),F(74,iGe,3,4,"button",31),r()()()()),n&2&&(a(2),g("formGroup",i.reportForm),a(5),h(m(8,20,"labels.inputs.Report Name")),a(3),I(i.reportForm.controls.reportName.hasError("required")?10:-1),a(3),h(m(14,22,"labels.inputs.Report Type")),a(3),we(i.reportTemplateData.allowedReportTypes),a(2),I(i.reportForm.controls.reportType.hasError("required")?18:-1),a(3),h(m(22,24,"labels.inputs.Report Sub Type")),a(3),we(i.reportTemplateData.allowedReportSubTypes),a(4),h(m(29,26,"labels.inputs.Report Category")),a(3),we(i.reportCategoryTypeOptions),a(4),v(" ",m(36,28,"labels.inputs.User Report (UI)")," "),a(4),h(m(40,30,"labels.inputs.Description")),a(5),h(m(45,32,"labels.inputs.SQL")),a(3),I(i.reportForm.controls.reportSql.hasError("required")?47:-1),a(4),h(m(52,34,"labels.inputs.Report Parameters")),a(4),v("",m(56,36,"labels.buttons.Add Report Parameter")," "),a(2),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(40,qHe)),a(2),g("routerLink",oe(41,zHe)),a(),v(" ",m(73,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_REPORT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,Ln,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,he,ki],styles:["@media (width >= 992px){.user-report-wrapper[_ngcontent-%COMP%]{position:relative}.user-report-wrapper[_ngcontent-%COMP%] .user-report[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}table[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]})}}return e})();var nGe=()=>[10,25,50,100],oGe=()=>["../"];function aGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rGe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function lGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sGe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function cGe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"catalogs")," ")}}function pGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mGe(e,o){if(e&1){let t=Y();l(0,"button",31),R("click",function(){V(t);let i=w();return q(i.addReportParameter())}),b(1,"fa-icon",32),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Report Parameter")," "))}function dGe(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Parameters")))}function uGe(e,o){if(e&1&&(l(0,"td",34),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parameterName)}}function fGe(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Parameter Name Passed to Pentaho")," "))}function hGe(e,o){if(e&1&&(l(0,"td",34),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportParameterName)}}function gGe(e,o){e&1&&(l(0,"th",35),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function _Ge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.editReportParameter(i))}),b(1,"fa-icon",40),r()}}function CGe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deleteReportParameter(i))}),b(1,"fa-icon",42),r()}}function vGe(e,o){if(e&1&&(l(0,"td",36),E(1,_Ge,2,0,"button",37),E(2,CGe,2,0,"button",38),r()),e&2){let t=w();a(),I(t.reportData.coreReport?-1:1),a(),I(t.reportData.coreReport?-1:2)}}function xGe(e,o){e&1&&b(0,"tr",43)}function bGe(e,o){e&1&&b(0,"tr",44)}function yGe(e,o){if(e&1&&(l(0,"button",45),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",(!t.reportForm.valid||t.reportForm.pristine)&&!t.isReportParametersChanged),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Px=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.systemService=T(ii),this.dialog=T(Ht),this.reportParametersData=[],this.dataForDialog={allowedParameters:void 0,parameterName:void 0,reportParameterName:void 0},this.displayedColumns=["parameterName","parameterNamePassed","actions"],this.isReportParametersChanged=!1,this.reportCategoryTypeOptions=["Client","Loan","Savings","Fund","Accounting"],this.route.data.subscribe(t=>{this.reportData=t.report,this.reportParametersData=t.report.reportParameters?t.report.reportParameters:[],this.reportTemplateData=t.reportTemplate,this.dataForDialog.allowedParameters=this.reportData.allowedParameters})}ngOnInit(){this.createReportForm(),this.setReportParameters(),this.toggleVisibility()}setReportParameters(){this.dataSource=new Wt(this.reportParametersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createReportForm(){this.reportForm=this.formBuilder.group({reportName:[{value:this.reportData.reportName,disabled:this.reportData.coreReport},ce.required],reportCategory:[{value:this.reportData.reportCategory?this.reportData.reportCategory:"",disabled:this.reportData.coreReport}],description:[{value:this.reportData.description?this.reportData.description:"",disabled:this.reportData.coreReport}],reportType:[{value:this.reportData.reportType,disabled:this.reportData.coreReport},ce.required],reportSubType:[{value:this.reportData.reportSubType?this.reportData.reportSubType:"",disabled:this.reportData.reportType!=="Chart"||this.reportData.coreReport}],useReport:[this.reportData.useReport?this.reportData.useReport:!1],reportSql:[{value:this.reportData.reportSql,disabled:this.reportData.coreReport||this.reportData.reportType==="Pentaho"},ce.required]})}addReportParameter(){this.dataForDialog.parameterName=void 0,this.dataForDialog.reportParameterName=void 0,this.dialog.open(Up,{data:this.dataForDialog}).afterClosed().subscribe(n=>{n!==""&&(this.reportParametersData.push({id:"",parameterName:this.reportTemplateData.allowedParameters.find(i=>i.id===n.parameterName).parameterName,parameterId:n.parameterName,reportParameterName:n.reportParameterName?n.reportParameterName:void 0}),this.dataSource.connect().next(this.reportParametersData),this.isReportParametersChanged=!0)})}editReportParameter(t){this.dataForDialog.parameterName=t.parameterId,this.dataForDialog.reportParameterName=t.reportParameterName,this.dialog.open(Up,{data:this.dataForDialog}).afterClosed().subscribe(i=>{i!==""&&(this.reportParametersData[this.reportParametersData.indexOf(t)]={id:t.id,parameterName:this.reportTemplateData.allowedParameters.find(s=>s.id===i.parameterName).parameterName,parameterId:i.parameterName,reportParameterName:i.reportParameterName},this.dataSource.connect().next(this.reportParametersData),this.isReportParametersChanged=!0)})}deleteReportParameter(t){this.dialog.open(vi,{data:{deleteContext:`report parameter ${t.parameterName}`}}).afterClosed().subscribe(i=>{i.delete&&(this.reportParametersData.splice(this.reportParametersData.indexOf(t),1),this.dataSource.connect().next(this.reportParametersData),this.isReportParametersChanged=!0)})}toggleVisibility(){this.reportForm.get("reportType").valueChanges.subscribe(t=>{switch(t){case"Chart":this.reportForm.get("reportSubType").enable(),this.reportForm.get("reportSql").enable();break;case"Pentaho":this.reportForm.get("reportSql").disable(),this.reportForm.get("reportSubType").disable();break;default:this.reportForm.get("reportSql").enable(),this.reportForm.get("reportSubType").disable()}})}submit(){this.reportData.coreReport?this.reportForm.value.reportParameters=void 0:(this.reportForm.value.reportParameters=this.reportParametersData,this.reportForm.value.reportParameters.map(function(t){return t.parameterName=void 0,t})),this.systemService.updateReport(this.reportData.id,this.reportForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-report"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:72,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","reportName"],[1,"flex-50"],["required","","formControlName","reportType"],[3,"value"],["formControlName","reportSubType"],["formControlName","reportCategory"],["labelPosition","after","formControlName","useReport",1,"user-report"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"flex-98"],["matInput","","required","","formControlName","reportSql","cdkTextareaAutosize","","cdkAutosizeMinRows","6"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","parameterName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","parameterNamePassed"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-cell","",1,"gap-15percent"],["type","button","color","primary","mat-icon-button","",1,"flex-8"],["type","button","color","warn","mat-icon-button","",1,"flex-8"],["type","button","color","primary","mat-icon-button","",1,"flex-8",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",1,"flex-8",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,aGe,7,9,"mat-error"),r(),l(11,"mat-form-field",5)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",6),Se(16,rGe,3,5,"mat-option",7,Pe),r(),E(18,lGe,7,9,"mat-error"),r(),l(19,"mat-form-field",5)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",8),Se(24,sGe,3,5,"mat-option",7,Pe),r()(),l(26,"mat-form-field",5)(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",9),Se(31,cGe,3,5,"mat-option",7,Pe),r()(),l(33,"div",5)(34,"mat-checkbox",10),c(35),p(36,"translate"),r()(),l(37,"mat-form-field",3)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"textarea",11),r(),l(42,"mat-form-field",12)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"textarea",13),E(47,pGe,7,9,"mat-error"),r()(),b(48,"br"),l(49,"div",14)(50,"p",15),c(51),p(52,"translate"),r(),E(53,mGe,4,3,"button",16),r(),l(54,"table",17),X(55,18),F(56,dGe,3,3,"th",19)(57,uGe,2,1,"td",20),Z(),X(58,21),F(59,fGe,3,3,"th",19)(60,hGe,2,1,"td",20),Z(),X(61,22),F(62,gGe,3,3,"th",23)(63,vGe,3,2,"td",24),Z(),F(64,xGe,1,0,"tr",25)(65,bGe,1,0,"tr",26),r(),b(66,"mat-paginator",27),r(),l(67,"mat-card-actions",28)(68,"button",29),c(69),p(70,"translate"),r(),F(71,yGe,3,4,"button",30),r()()()()),n&2&&(a(2),g("formGroup",i.reportForm),a(5),h(m(8,20,"labels.inputs.Report Name")),a(3),I(i.reportForm.controls.reportName.hasError("required")?10:-1),a(3),h(m(14,22,"labels.inputs.Report Type")),a(3),we(i.reportData.allowedReportTypes),a(2),I(i.reportForm.controls.reportType.hasError("required")?18:-1),a(3),h(m(22,24,"labels.inputs.Report Sub Type")),a(3),we(i.reportData.allowedReportSubTypes),a(4),h(m(29,26,"labels.inputs.Report Category")),a(3),we(i.reportCategoryTypeOptions),a(4),v(" ",m(36,28,"labels.inputs.User Report (UI)")," "),a(4),h(m(40,30,"labels.inputs.Description")),a(5),v(" ",m(45,32,"labels.inputs.SQL")),a(3),I(i.reportForm.controls.reportSql.hasError("required")?47:-1),a(4),h(m(52,34,"labels.inputs.Report Parameters")),a(2),I(i.reportData.coreReport?-1:53),a(),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(38,nGe)),a(2),g("routerLink",oe(39,oGe)),a(),v(" ",m(70,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_REPORT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,Ln,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,he,ki],styles:["@media (width >= 992px){.user-report-wrapper[_ngcontent-%COMP%]{position:relative}.user-report-wrapper[_ngcontent-%COMP%] .user-report[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var Tx=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-completion-dialog"]],decls:18,vars:15,consts:[["mat-dialog-title",""],[1,"mw600"],["mode","determinate","value","100"],["mat-raised-button","","color","warn","mat-dialog-close",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"h3",1),c(5),p(6,"translate"),r(),l(7,"h3"),c(8),p(9,"translate"),r(),l(10,"h3"),c(11),p(12,"translate"),r(),b(13,"mat-progress-bar",2),r(),l(14,"mat-dialog-actions")(15,"button",3),c(16),p(17,"translate"),r()()),n&2&&(a(),h(m(2,5,"labels.heading.Welcome to Mifos")),a(4),h(m(6,7,"labels.heading.Configure Mifos Organization Needs")),a(3),h(m(9,9,"labels.heading.Configuration Wizard Setup")),a(3),v("",m(12,11,"labels.heading.Progress Bar")," : 100 %"),a(5),v(" ",m(17,13,"labels.buttons.Close Config. Wizard")," "))},dependencies:[ue,fe,xe,Wn,ho,ns,Nn,Un,he],encapsulation:2})}}return e})();var SGe=["buttonCreateReport"],wGe=["templateButtonCreateReport"],PGe=()=>[10,25,50,100],TGe=()=>["create"],MGe=e=>[e];function DGe(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",27),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,TGe)),a(2),v(" ",m(3,2,"labels.buttons.Create Report")," "))}function EGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Name")))}function IGe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportName)}}function OGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Type")))}function AGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.reportType,"text"))}}function FGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Sub Type")))}function kGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.reportSubType,"text"))}}function BGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Category")))}function RGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.reportCategory,"catalogs"))}}function NGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Core Report")))}function LGe(e,o){e&1&&(b(0,"fa-icon",30),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Yes"))}function VGe(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.No"))}function qGe(e,o){if(e&1&&(l(0,"td",29),E(1,LGe,2,3,"fa-icon",30),E(2,VGe,2,3,"fa-icon",31),r()),e&2){let t=o.$implicit;a(),I(t.coreReport?1:-1),a(),I(t.coreReport?-1:2)}}function zGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.User Report")))}function HGe(e,o){e&1&&(b(0,"fa-icon",30),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Yes"))}function GGe(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.No"))}function jGe(e,o){if(e&1&&(l(0,"td",29),E(1,HGe,2,3,"fa-icon",30),E(2,GGe,2,3,"fa-icon",31),r()),e&2){let t=o.$implicit;a(),I(t.useReport?1:-1),a(),I(t.useReport?-1:2)}}function $Ge(e,o){e&1&&b(0,"tr",32)}function UGe(e,o){if(e&1&&b(0,"tr",33),e&2){let t=o.$implicit;g("routerLink",Nt(1,MGe,t.id))}}function WGe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Report")),a(3),h(m(5,7,"labels.text.Create new report")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function QGe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",35)(4,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(37);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(41);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Filter reports by name")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function YGe(e,o){if(e&1){let t=Y();l(0,"h4",34),c(1),p(2,"translate"),l(3,"a",38),c(4),p(5,"translate"),r()(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of all currently available reports"),": "),a(3),h(m(5,7,"labels.heading.Manage Reports")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Mx=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.dialog=T(Ht),this.displayedColumns=["reportName","reportType","reportSubType","reportCategory","coreReport","userReport"],this.route.data.subscribe(t=>{this.reportsData=t.reports})}ngOnInit(){this.setReports()}setReports(){this.dataSource=new Wt(this.reportsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showManageReports===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateReport,this.buttonCreateReport.nativeElement,"bottom",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showManageReports=!1,this.openNextStepDialog()}previousStep(){this.router.navigate(["/system"])}openNextStepDialog(){this.dialog.open(Tx).afterClosed().subscribe(()=>{this.router.navigate(["/home"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-reports"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(SGe,5),Ee(wGe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateReport=s.first),Te(s=Me())&&(i.templateButtonCreateReport=s.first)}},decls:42,vars:9,consts:[["buttonCreateReport",""],["filter",""],["reportsTable",""],["templateButtonCreateReport",""],["templateFilter",""],["templateReportsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","reportName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","reportType"],["matColumnDef","reportSubType"],["matColumnDef","reportCategory"],["matColumnDef","coreReport"],["matColumnDef","userReport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"true",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"false",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895354/Manage+Reports","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,DGe,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,EGe,3,3,"th",16)(17,IGe,2,1,"td",17),Z(),X(18,18),F(19,OGe,3,3,"th",16)(20,AGe,3,4,"td",17),Z(),X(21,19),F(22,FGe,3,3,"th",16)(23,kGe,3,4,"td",17),Z(),X(24,20),F(25,BGe,3,3,"th",16)(26,RGe,3,4,"td",17),Z(),X(27,21),F(28,NGe,3,3,"th",16)(29,qGe,3,2,"td",17),Z(),X(30,22),F(31,zGe,3,3,"th",16)(32,jGe,3,2,"td",17),Z(),F(33,$Ge,1,0,"tr",23)(34,UGe,1,3,"tr",24),r(),b(35,"mat-paginator",25),r()(),F(36,WGe,16,15,"ng-template",null,3,ti)(38,QGe,13,12,"ng-template",null,4,ti)(40,YGe,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_REPORT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,PGe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var JGe=()=>["edit"];function KGe(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,JGe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function XGe(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w(2);return q(i.delete())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function ZGe(e,o){e&1&&(l(0,"span"),F(1,XGe,4,3,"button",11),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_REPORT"))}function eje(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Report Sub Type"),":"))}function tje(e,o){if(e&1&&(l(0,"div",7),c(1),p(2,"translateKey"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,t.reportData.reportSubType,"text")," ")}}var Dx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dialog=T(Ht),this.router=T(qe),this.route.data.subscribe(t=>{this.reportData=t.report})}delete(){this.dialog.open(vi,{data:{deleteContext:`report ${this.reportData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteReport(this.reportData.id).subscribe(()=>{this.router.navigate(["/system/reports"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-report"]],decls:39,vars:34,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","flex-100"],[1,"flex-100","report-name"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"mat-body-strong","flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,KGe,4,5,"button",1),E(2,ZGe,2,1,"span"),r(),l(3,"div",2)(4,"mat-card")(5,"mat-card-title",3)(6,"div",4),c(7),p(8,"translate"),l(9,"b"),c(10),r()()(),l(11,"mat-card-content")(12,"div",5)(13,"div",6),c(14),p(15,"translate"),r(),l(16,"div",7),c(17),p(18,"translateKey"),r(),E(19,eje,3,3,"div",8),E(20,tje,3,4,"div",7),l(21,"div",6),c(22),p(23,"translate"),r(),l(24,"div",7),c(25),p(26,"translateKey"),r(),l(27,"div",6),c(28),p(29,"translate"),r(),l(30,"div",7),c(31),p(32,"yesNo"),r(),l(33,"div",6),c(34),p(35,"translate"),r(),l(36,"div",7),c(37),p(38,"yesNo"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_REPORT"),a(),I(i.reportData.coreReport?-1:2),a(5),v(" ",m(8,14,"labels.catalogs.Report")," : "),a(3),h(i.reportData.reportName),a(4),v("",m(15,16,"labels.inputs.Report Type"),":"),a(3),v(" ",Ft(18,18,i.reportData.reportType,"text")," "),a(2),I(i.reportData.reportSubType?19:-1),a(),I(i.reportData.reportSubType?20:-1),a(2),v("",m(23,21,"labels.inputs.Report Category"),":"),a(3),v(" ",Ft(26,23,i.reportData.reportCategory,"catalogs")," "),a(3),v("",m(29,26,"labels.inputs.Core Report"),":"),a(3),v(" ",m(32,28,i.reportData.coreReport)," "),a(3),v("",m(35,30,"labels.inputs.User Report"),":"),a(3),v(" ",m(38,32,i.reportData.useReport)," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Qo,he,ki,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.report-name[_ngcontent-%COMP%]{margin:18px}"]})}}return e})();var ije=()=>["../"];function nje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Country Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Country Code")," "),a(3),h(m(5,4,"labels.commons.must consist of 2 alphabetic characters")))}function lje(e,o){if(e&1){let t=Y();l(0,"div",10)(1,"button",13),c(2),p(3,"translate"),r(),l(4,"button",14),R("click",function(){V(t);let i=w();return q(i.addQuestion())}),c(5),p(6,"translate"),r()()}if(e&2){let t=w();a(),g("routerLink",oe(8,ije)),a(),v(" ",m(3,4,"labels.buttons.Cancel")," "),a(2),g("disabled",!(t.surveyForm.get("key").valid&&t.surveyForm.get("name").valid&&t.surveyForm.get("countryCode").valid)),a(),v(" ",m(6,6,"labels.buttons.Proceed")," ")}}function sje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Value")," "),a(3),h(m(5,4,"labels.commons.must be an integer between -9999 and 9999")))}function uje(e,o){if(e&1){let t=Y();l(0,"div",27)(1,"div",29)(2,"mat-form-field",30)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",31),E(7,pje,7,9,"mat-error"),r(),l(8,"mat-form-field",30)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",32),E(13,mje,7,9,"mat-error"),E(14,dje,6,6,"mat-error"),r(),l(15,"div",33)(16,"div",34)(17,"button",35),p(18,"translate"),R("click",function(){let i=V(t).$index,s=w().$index,d=w();return q(d.removeResponse(d.getResponseDatas(s),i))}),b(19,"fa-icon",36),r()()()()()}if(e&2){let t=o.$implicit,n=o.$index,i=w().$index,s=w();a(),g("formGroupName",n),a(3),h(m(5,8,"labels.inputs.Text")),a(3),I(t.controls.text.hasError("required")?7:-1),a(3),h(m(11,10,"labels.inputs.Value")),a(3),I(t.controls.value.hasError("required")?13:-1),a(),I(t.controls.value.hasError("pattern")?14:-1),a(3),g("matTooltip",m(18,12,"labels.buttons.Delete"))("disabled",s.getResponseDatas(i).controls.length===1)}}function fje(e,o){if(e&1){let t=Y();l(0,"mat-card-actions",28)(1,"button",37),R("click",function(){V(t);let i=w(2);return q(i.cancelSurvey())}),c(2),p(3,"translate"),r(),l(4,"button",24),R("click",function(){V(t);let i=w(2);return q(i.addQuestion())}),b(5,"fa-icon",25),c(6),p(7,"translate"),p(8,"translate"),r(),l(9,"button",38),c(10),p(11,"translate"),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,5,"labels.buttons.Cancel")," "),a(4),le(" ",m(7,7,"labels.buttons.Add")," ",m(8,9,"labels.heading.Question")," "),a(3),g("disabled",!t.surveyForm.valid),a(),v(" ",m(11,11,"labels.buttons.Submit")," ")}}function hje(e,o){if(e&1){let t=Y();l(0,"mat-card",12)(1,"mat-card-content")(2,"div",15)(3,"div",16)(4,"h2",17),c(5),p(6,"translate"),r(),l(7,"button",18),R("click",function(){let i=V(t).$index,s=w();return q(s.removeQuestion(i))}),b(8,"fa-icon",19),c(9),p(10,"translate"),p(11,"translate"),r()(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",5),E(17,sje,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",20),E(23,cje,7,9,"mat-error"),r(),l(24,"mat-form-field",8)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"textarea",9),r(),b(29,"mat-divider",21),l(30,"div",22)(31,"h4",23),c(32),p(33,"translate"),r(),l(34,"button",24),R("click",function(){let i=V(t).$index,s=w();return q(s.addResponse(i))}),b(35,"fa-icon",25),c(36),p(37,"translate"),p(38,"translate"),r()(),l(39,"div",26),R("cdkDropListDropped",function(i){let s=V(t).$index,d=w();return q(d.dropResponse(i,s))}),Se(40,uje,20,14,"div",27,Pe),r()()(),l(42,"div"),E(43,fje,12,13,"mat-card-actions",28),r()()}if(e&2){let t=o.$implicit,n=o.$index,i=o.$count,s=w();a(2),g("formGroupName",n),a(3),le("",m(6,16,"labels.heading.Question")," ",n+1),a(2),g("disabled",s.questionDatas.controls.length===1),a(2),le(" ",m(10,18,"labels.buttons.Delete")," ",m(11,20,"labels.heading.Question")," "),a(5),h(m(15,22,"labels.inputs.Key")),a(3),I(t.controls.key.hasError("required")?17:-1),a(3),h(m(21,24,"labels.inputs.Text")),a(3),I(t.controls.text.hasError("required")?23:-1),a(3),h(m(27,26,"labels.inputs.Description")),a(3),g("inset",!0),a(3),h(m(33,28,"labels.heading.Options")),a(4),le(" ",m(37,30,"labels.buttons.Add")," ",m(38,32,"labels.inputs.Option")," "),a(4),we(s.getResponseDatas(n).controls),a(3),I(n===i-1?43:-1)}}var Ex=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht)}ngOnInit(){this.createSurveyForm()}createSurveyForm(){this.surveyForm=this.formBuilder.group({key:["",ce.required],name:["",ce.required],countryCode:["",[ce.required,ce.pattern("^\\s*([A-Za-z]{2})?\\s*$")]],description:[""],questionDatas:this.formBuilder.array([])})}get questionDatas(){return this.surveyForm.get("questionDatas")}getResponseDatas(t){return this.surveyForm.get(["questionDatas",t,"responseDatas"])}createQuestionForm(){return this.formBuilder.group({key:["",ce.required],text:["",ce.required],description:[""],responseDatas:this.formBuilder.array([this.createResponseForm()]),sequenceNo:[""]})}addQuestion(){this.questionDatas.push(this.createQuestionForm()),this.updateSequenceNumber()}removeQuestion(t){this.questionDatas.removeAt(t),this.updateSequenceNumber()}createResponseForm(){return this.formBuilder.group({text:["",ce.required],value:["",[ce.required,ce.pattern("^\\s*[-]?\\d{0,4}\\s*$")]],sequenceNo:[""]})}addResponse(t){this.getResponseDatas(t).push(this.createResponseForm()),this.updateSequenceNumber()}removeResponse(t,n){t.removeAt(n),this.updateSequenceNumber()}updateSequenceNumber(){for(let t=0;t{n.cancel&&this.router.navigate(["../"],{relativeTo:this.route})})}dropQuestion(t){Os(this.questionDatas.controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}dropResponse(t,n){Os(this.getResponseDatas(n).controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}submit(){this.surveyForm.patchValue({countryCode:this.surveyForm.value.countryCode.toUpperCase()}),this.systemService.createSurvey(this.surveyForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-survey"]],decls:34,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column","gap-4percent"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","maxlength","32","required","","formControlName","key"],["matInput","","maxlength","255","required","","formControlName","name"],["matInput","","maxlength","2","required","","formControlName","countryCode"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"flex-fill","layout-row","layout-align-center","gap-5px","layout-xs-column"],["cdkDropList","",1,"layout-column","gap-4percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","questionDatas"],["type","button","mat-raised-button","",3,"routerLink"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],[1,"flex-fill","gap-2percent","responsive-column","layout-row-wrap",3,"formGroupName"],[1,"flex-98","layout-row-wrap","gap-2percent","align-between","align-items-center"],[1,"mat-h2"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","trash",1,"m-r-10"],["matInput","","maxlength","255","required","","formControlName","text"],[3,"inset"],[1,"flex-98","layout-row","align-between","align-items-center"],[1,"mat-h4"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["cdkDropList","",1,"flex-fill","layout-row-wrap","gap-2percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","responseDatas",1,"flex-fill","layout-row-wrap","gap-2percent"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],[1,"flex-fill","layout-row-wrap","gap-2percent",3,"formGroupName"],[1,"flex-43"],["matInput","","required","","formControlName","text"],["matInput","","required","","formControlName","value"],[1,"flex-8"],[1,"delete-wrapper"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["icon","trash","size","lg"],["type","button","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"form",1),R("ngSubmit",function(){return i.submit()}),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"mat-form-field",4)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",5),E(11,nje,7,9,"mat-error"),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),E(17,oje,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",7),E(23,aje,7,9,"mat-error"),E(24,rje,6,6,"mat-error"),r(),l(25,"mat-form-field",8)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"textarea",9),r(),E(30,lje,7,9,"div",10),r()()(),l(31,"div",11),R("cdkDropListDropped",function(d){return i.dropQuestion(d)}),Se(32,hje,44,34,"mat-card",12,Pe),r()()()()),n&2&&(a(),g("formGroup",i.surveyForm),a(7),h(m(9,10,"labels.inputs.Key")),a(3),I(i.surveyForm.controls.key.hasError("required")?11:-1),a(3),h(m(15,12,"labels.inputs.Name")),a(3),I(i.surveyForm.controls.name.hasError("required")?17:-1),a(3),h(m(21,14,"labels.inputs.Country Code")),a(3),I(i.surveyForm.controls.countryCode.hasError("required")?23:-1),a(),I(i.surveyForm.controls.countryCode.hasError("pattern")?24:-1),a(3),h(m(28,16,"labels.inputs.Description")),a(3),I(i.questionDatas.length?-1:30),a(2),we(i.questionDatas.controls))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ln,Tp,Pp,ke,Ri,wi,si,he],styles:[".delete-wrapper[_ngcontent-%COMP%]{padding:17.5px 0 0}h2[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:0}.mat-card[_ngcontent-%COMP%] .mat-divider-horizontal.mat-divider-inset[_ngcontent-%COMP%]{margin:1em 0 2em}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}"]})}}return e})();function gje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _je(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Cje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Country Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Country Code")," "),a(3),h(m(5,4,"labels.commons.must consist of 2 alphabetic characters")))}function xje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Sje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Value")),a(3),h(m(5,4,"labels.commons.must be an integer between -9999 and 9999")))}function Pje(e,o){if(e&1){let t=Y();l(0,"div",24)(1,"div",26)(2,"mat-form-field",27)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",28),E(7,yje,7,9,"mat-error"),r(),l(8,"mat-form-field",27)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",29),E(13,Sje,7,9,"mat-error"),E(14,wje,6,6,"mat-error"),r(),l(15,"div",30)(16,"div",31)(17,"button",32),p(18,"translate"),R("click",function(){let i=V(t).$index,s=w().$index,d=w();return q(d.removeResponse(d.getResponseDatas(s),i))}),b(19,"fa-icon",33),r()()()()()}if(e&2){let t=o.$implicit,n=o.$index,i=w().$index,s=w();a(),g("formGroupName",n),a(3),h(m(5,8,"labels.inputs.Text")),a(3),I(t.get("text").hasError("required")?7:-1),a(3),h(m(11,10,"labels.inputs.Value")),a(3),I(t.get("value").hasError("required")?13:-1),a(),I(t.get("value").hasError("pattern")?14:-1),a(3),g("matTooltip",m(18,12,"labels.buttons.Delete"))("disabled",s.getResponseDatas(i).controls.length===1)}}function Tje(e,o){if(e&1){let t=Y();l(0,"mat-card-actions",25)(1,"button",34),R("click",function(){V(t);let i=w(2);return q(i.cancelSurvey())}),c(2),p(3,"translate"),r(),l(4,"button",21),R("click",function(){V(t);let i=w(2);return q(i.addQuestion())}),b(5,"fa-icon",22),c(6),p(7,"translate"),p(8,"translate"),r(),l(9,"button",35),c(10),p(11,"translate"),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,5,"labels.buttons.Cancel")," "),a(4),le(" ",m(7,7,"labels.buttons.Add")," ",m(8,9,"labels.heading.Question")," "),a(3),g("disabled",!t.surveyForm.valid),a(),v(" ",m(11,11,"labels.text.Edit Survey")," ")}}function Mje(e,o){if(e&1){let t=Y();l(0,"mat-card",11)(1,"mat-card-content")(2,"div",12)(3,"div",13)(4,"h2",14),c(5),p(6,"translate"),r(),l(7,"button",15),R("click",function(){let i=V(t).$index,s=w();return q(s.removeQuestion(i))}),b(8,"fa-icon",16),c(9),p(10,"translate"),p(11,"translate"),r()(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",5),E(17,xje,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",17),E(23,bje,7,9,"mat-error"),r(),l(24,"mat-form-field",8)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"textarea",9),r(),b(29,"mat-divider",18),l(30,"div",19)(31,"h4",20),c(32),p(33,"translate"),r(),l(34,"button",21),R("click",function(){let i=V(t).$index,s=w();return q(s.addResponse(i))}),b(35,"fa-icon",22),c(36),p(37,"translate"),p(38,"translate"),r()(),l(39,"div",23),R("cdkDropListDropped",function(i){let s=V(t).$index,d=w();return q(d.dropResponse(i,s))}),Se(40,Pje,20,14,"div",24,Pe),r()()(),l(42,"div"),E(43,Tje,12,13,"mat-card-actions",25),r()()}if(e&2){let t=o.$implicit,n=o.$index,i=o.$count,s=w();a(2),g("formGroupName",n),a(3),le("",m(6,16,"labels.heading.Question")," ",n+1),a(2),g("disabled",s.questionDatas.controls.length===1),a(2),le(" ",m(10,18,"labels.buttons.Delete")," ",m(11,20,"labels.heading.Question")," "),a(5),h(m(15,22,"labels.inputs.Key")),a(3),I(t.get("key").hasError("required")?17:-1),a(3),h(m(21,24,"labels.inputs.Text")),a(3),I(t.get("text").hasError("required")?23:-1),a(3),h(m(27,26,"labels.inputs.Description")),a(3),g("inset",!0),a(3),h(m(33,28,"labels.heading.Options")),a(4),le(" ",m(37,30,"labels.buttons.Add")," ",m(38,32,"labels.inputs.Option")," "),a(4),we(s.getResponseDatas(n).controls),a(3),I(n===i-1?43:-1)}}var Ix=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.createSurveyForm(),this.route.data.subscribe(t=>{this.prepareSurveyForm(t.survey)})}prepareSurveyForm(t){this.surveyForm.get("key").setValue(t.key),this.surveyForm.get("name").setValue(t.name),this.surveyForm.get("countryCode").setValue(t.countryCode),this.surveyForm.get("description").setValue(t.description),this.prepareQuestionDatas(this.questionDatas,t.questionDatas)}prepareQuestionDatas(t,n){n.forEach((i,s)=>{this.addQuestion();let d=t.at(s);d.get("key").setValue(i.key),d.get("text").setValue(i.text),d.get("description").setValue(i.description),this.prepareResponseDatas(d.get("responseDatas"),i.responseDatas,s)})}prepareResponseDatas(t,n,i){n.forEach((s,d)=>{d&&this.addResponse(i);let u=t.at(d);u.get("text").setValue(s.text),u.get("value").setValue(s.value)})}createSurveyForm(){this.surveyForm=this.formBuilder.group({key:["",ce.required],name:["",ce.required],countryCode:["",[ce.required,ce.pattern("^\\s*([A-Za-z]{2})?\\s*$")]],description:[""],questionDatas:this.formBuilder.array([])})}get questionDatas(){return this.surveyForm.get("questionDatas")}getResponseDatas(t){return this.surveyForm.get(["questionDatas",t,"responseDatas"])}createQuestionForm(){return this.formBuilder.group({key:["",ce.required],text:["",ce.required],description:[""],responseDatas:this.formBuilder.array([this.createResponseForm()]),sequenceNo:[""]})}addQuestion(){this.questionDatas.push(this.createQuestionForm()),this.updateSequenceNumber()}removeQuestion(t){this.questionDatas.removeAt(t),this.updateSequenceNumber()}createResponseForm(){return this.formBuilder.group({text:["",ce.required],value:["",[ce.required,ce.pattern("^\\s*[-]?\\d{0,4}\\s*$")]],sequenceNo:[""]})}addResponse(t){this.getResponseDatas(t).push(this.createResponseForm()),this.updateSequenceNumber()}removeResponse(t,n){t.removeAt(n),this.updateSequenceNumber()}updateSequenceNumber(){for(let t=0;t{n.cancel&&this.router.navigate(["../"],{relativeTo:this.route})})}dropQuestion(t){Os(this.questionDatas.controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}dropResponse(t,n){Os(this.getResponseDatas(n).controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}submit(){this.surveyForm.patchValue({countryCode:this.surveyForm.value.countryCode.toUpperCase()}),this.systemService.editSurvey(this.route.snapshot.paramMap.get("id"),this.surveyForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-survey"]],decls:33,vars:17,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column","gap-4percent"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","maxlength","32","required","","formControlName","key"],["matInput","","maxlength","255","required","","formControlName","name"],["matInput","","maxlength","2","required","","formControlName","countryCode"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["cdkDropList","",1,"layout-column","gap-4percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","questionDatas"],[1,"flex-fill","gap-2percent","responsive-column","layout-row-wrap",3,"formGroupName"],[1,"flex-98","layout-row-wrap","gap-2percent","align-between","align-items-center"],[1,"mat-h2"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","trash",1,"m-r-10"],["matInput","","maxlength","255","required","","formControlName","text"],[3,"inset"],[1,"flex-98","layout-row","align-between","align-items-center"],[1,"mat-h4"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["cdkDropList","",1,"flex-fill","layout-row-wrap","gap-2percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","responseDatas",1,"flex-fill","layout-row-wrap","gap-2percent"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],[1,"flex-fill","layout-row-wrap","gap-2percent",3,"formGroupName"],[1,"flex-43"],["matInput","","required","","formControlName","text"],["matInput","","required","","formControlName","value"],[1,"flex-8"],[1,"delete-wrapper"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["icon","trash","size","lg"],["type","button","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"form",1),R("ngSubmit",function(){return i.submit()}),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"mat-form-field",4)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",5),E(11,gje,7,9,"mat-error"),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),E(17,_je,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",7),E(23,Cje,7,9,"mat-error"),E(24,vje,6,6,"mat-error"),r(),l(25,"mat-form-field",8)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"textarea",9),r()()()(),l(30,"div",10),R("cdkDropListDropped",function(d){return i.dropQuestion(d)}),Se(31,Mje,44,34,"mat-card",11,Pe),r()()()()),n&2&&(a(),g("formGroup",i.surveyForm),a(7),h(m(9,9,"labels.inputs.Key")),a(3),I(i.surveyForm.controls.key.hasError("required")?11:-1),a(3),h(m(15,11,"labels.inputs.Name")),a(3),I(i.surveyForm.controls.name.hasError("required")?17:-1),a(3),v("",m(21,13,"labels.inputs.Country Code")," "),a(3),I(i.surveyForm.controls.countryCode.hasError("required")?23:-1),a(),I(i.surveyForm.controls.countryCode.hasError("pattern")?24:-1),a(3),h(m(28,15,"labels.inputs.Description")),a(4),we(i.questionDatas.controls))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,la,La,Ue,Je,Et,Fe,Be,ut,ze,xe,Ln,Tp,Pp,ke,Ri,wi,si,he],styles:[".delete-wrapper[_ngcontent-%COMP%]{padding:17.5px 0 0}h2[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:0}.mat-card[_ngcontent-%COMP%] .mat-divider-horizontal.mat-divider-inset[_ngcontent-%COMP%]{margin:1em 0 2em}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}"]})}}return e})();var Dje=()=>["create"],Eje=()=>[10,25,50,100],Ije=e=>[e];function Oje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Key")))}function Aje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.key)}}function Fje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function kje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Bje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function Rje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function Nje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Country Code")))}function Lje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.countryCode)}}function Vje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function qje(e,o){if(e&1&&(l(0,"td",21)(1,"div",22),b(2,"fa-icon",23),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit,n=w();a(),g("className",n.isActive(t.validFrom,t.validTo)?"enabled":"disabled"),a(),g("matTooltip",Le(n.isActive(t.validFrom,t.validTo)?m(4,5,"labels.inputs.Enabled"):m(3,3,"labels.inputs.Disabled")))}}function zje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function Hje(e,o){if(e&1){let t=Y();l(0,"button",26),R("click",function(i){V(t);let s=w().$implicit;return w().activate(s),q(i.stopPropagation())}),b(1,"fa-icon",27),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Activate")," "))}function Gje(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(i){V(t);let s=w().$implicit;return w().deactivate(s),q(i.stopPropagation())}),b(1,"fa-icon",29),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Deactivate")," "))}function jje(e,o){if(e&1&&(l(0,"td",21),E(1,Hje,4,3,"button",24),E(2,Gje,4,3,"button",25),r()),e&2){let t=o.$implicit,n=w();a(),I(n.isActive(t.validFrom,t.validTo)?-1:1),a(),I(n.isActive(t.validFrom,t.validTo)?2:-1)}}function $je(e,o){e&1&&b(0,"tr",30)}function Uje(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,Ije,t.id))}}var Ox=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.displayedColumns=["key","name","description","countryCode","status","action"],this.route.data.subscribe(t=>{this.surveysData=t.surveys})}isActive(t,n){let i=new Date().toISOString().split("T")[0];return i>=t&&i<=n}ngOnInit(){this.setSurveys(),this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"status":return this.isActive(t.validFrom,t.validTo);case"action":return this.isActive(t.validFrom,t.validTo);default:return t[n]}}}setSurveys(){this.dataSource=new Wt(this.surveysData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}activate(t){this.systemService.activateSurvey(t.id).subscribe(()=>{let n=new Date().toISOString().split("T")[0];t.validFrom=n,t.validTo=n})}deactivate(t){this.systemService.deactivateSurvey(t.id).subscribe(()=>{let n=new Date;n.setDate(n.getDate()-1);let i=n.toISOString().split("T")[0];t.validTo=i})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-surveys"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:13,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","countryCode"],["matColumnDef","status"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-button","","color","accent"],["mat-button","","color","warn"],["mat-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-button","","color","warn",3,"click"],["icon","lock",1,"m-r-10"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",6),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(12,"div",7)(13,"table",8),X(14,9),F(15,Oje,3,3,"th",10)(16,Aje,2,1,"td",11),Z(),X(17,12),F(18,Fje,3,3,"th",10)(19,kje,2,1,"td",11),Z(),X(20,13),F(21,Bje,3,3,"th",10)(22,Rje,2,1,"td",11),Z(),X(23,14),F(24,Nje,3,3,"th",10)(25,Lje,2,1,"td",11),Z(),X(26,15),F(27,Vje,3,3,"th",10)(28,qje,5,7,"td",11),Z(),X(29,16),F(30,zje,3,3,"th",10)(31,jje,3,2,"td",11),Z(),F(32,$je,1,0,"tr",17)(33,Uje,1,3,"tr",18),r(),b(34,"mat-paginator",19),r()()),n&2&&(a(),g("routerLink",oe(11,Dje)),a(2),v(" ",m(4,7,"labels.buttons.Create Surveys")," "),a(6),h(m(10,9,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,Eje)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();function Wje(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){V(t);let i=w();return q(i.onEdit())}),b(1,"fa-icon",11),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function Qje(e,o){if(e&1&&(l(0,"th"),c(1),p(2,"titlecase"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t))}}function Yje(e,o){if(e&1&&(l(0,"td"),c(1),r()),e&2){let t=o.$implicit,n=w().$implicit;a(),v(" ",n[t]," ")}}function Jje(e,o){if(e&1&&(l(0,"tr"),Se(1,Yje,2,1,"td",null,Pe),r()),e&2){let t=w(2);a(),we(t.displayedColumns)}}function Kje(e,o){if(e&1&&(l(0,"div",9)(1,"mat-card")(2,"mat-card-content")(3,"div"),c(4),p(5,"translate"),r(),l(6,"div",12)(7,"div",13)(8,"b"),c(9),p(10,"translate"),r()(),l(11,"div",14),c(12),r(),l(13,"div",6)(14,"b"),c(15),p(16,"translate"),r()(),l(17,"div",14),c(18),r()(),l(19,"div",15)(20,"div",16)(21,"b"),c(22),p(23,"translate"),r()(),l(24,"div",14),c(25),r()(),l(26,"div",17)(27,"div")(28,"b"),c(29),p(30,"translate"),r()(),l(31,"table",18)(32,"tr"),Se(33,Qje,3,3,"th",null,Pe),r(),Se(35,Jje,3,0,"tr",null,Pe),r()()()()()),e&2){let t=o.$implicit,n=o.$index,i=w();a(4),le("",m(5,9,"labels.heading.Question"),": ",n+1),a(5),v("",m(10,11,"labels.inputs.Key"),":"),a(3),v(" ",t.key," "),a(3),v("",m(16,13,"labels.inputs.Text"),":"),a(3),v(" ",t.text," "),a(4),v("",m(23,15,"labels.inputs.Description"),":"),a(3),v(" ",t.description," "),a(4),v("",m(30,17,"labels.inputs.Option"),": "),a(4),we(i.displayedColumns),a(2),we(t.responseDatas)}}var Ax=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dialog=T(Ht),this.router=T(qe),this.displayedColumns=["text","value"],this.route.data.subscribe(t=>{this.surveyData=t.survey})}onEdit(){this.router.navigate(["./edit"],{relativeTo:this.route})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-survey"]],decls:45,vars:25,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[1,"container","m-b-20"],[1,"layout-column"],[3,"inset"],[1,"layout-row-wrap"],[1,"flex-40","flex-lt-md-50","header"],[1,"flex-60","flex-lt-md-50"],[1,"questions"],[1,"survey-questions"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["id","key-text",1,"layout-row"],[1,"flex-25","header"],[1,"flex-40","flex-50-lt-md"],["id","description",1,"layout-row"],[1,"flex-20","flex-50-lt-md","header"],["id","questionaire",1,"layout-column"],["id","response"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Wje,4,3,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-header",3)(5,"mat-card-title"),c(6),p(7,"translate"),r(),b(8,"mat-divider",4),r(),l(9,"mat-card-content")(10,"div",5)(11,"div",6)(12,"b"),c(13),p(14,"translate"),r()(),l(15,"div",7),c(16),r(),l(17,"div",6)(18,"b"),c(19),p(20,"translate"),r()(),l(21,"div",7),c(22),r(),l(23,"div",6)(24,"b"),c(25),p(26,"translate"),r()(),l(27,"div",7),c(28),r(),l(29,"div",6)(30,"b"),c(31),p(32,"translate"),r()(),l(33,"div",7),c(34),r()()()()(),l(35,"div",2)(36,"mat-card",8)(37,"mat-card-header",3)(38,"mat-card-title"),c(39),p(40,"translate"),r(),b(41,"mat-divider",4),r(),l(42,"mat-card-content"),Se(43,Kje,37,19,"div",9,Pe),r()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_REPORT"),a(5),h(m(7,13,"labels.buttons.Survey")),a(2),g("inset",!0),a(5),v("",m(14,15,"labels.inputs.Key"),":"),a(3),v(" ",i.surveyData.key," "),a(3),v("",m(20,17,"labels.inputs.Name"),":"),a(3),v(" ",i.surveyData.name," "),a(3),v("",m(26,19,"labels.inputs.Country Code"),":"),a(3),v(" ",i.surveyData.countryCode," "),a(3),v("",m(32,21,"labels.inputs.Description"),":"),a(3),v(" ",i.surveyData.description," "),a(5),h(m(40,23,"labels.inputs.Questions")),a(2),g("inset",!0),a(2),we(i.surveyData.questionDatas))},dependencies:[ue,fe,Ue,Je,xe,Ke,ke,sa,Qo,Ri,v0,he],styles:[".mat-card[_ngcontent-%COMP%]{margin:5px}.survey-questions[_ngcontent-%COMP%]{margin-bottom:10px}#key-text[_ngcontent-%COMP%], #description[_ngcontent-%COMP%], #questionaire[_ngcontent-%COMP%]{margin:10px}#response[_ngcontent-%COMP%]{width:100%}#response[_ngcontent-%COMP%] th[_ngcontent-%COMP%], #response[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;width:100px}#response[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#ddd}mat-card-header[_ngcontent-%COMP%]{margin-bottom:12px}"]})}}return e})();var Xje=()=>["../"];function Zje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Role Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function e$e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Role Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Fx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.authService=T(Ia)}ngOnInit(){this.createRoleForm()}createRoleForm(){this.roleForm=this.formBuilder.group({name:["",ce.required],description:["",ce.required]})}submit(){this.systemService.createRole(this.roleForm.value).subscribe(t=>{un.OIDC.oidcServerEnabled&&this.authService.createRole(t.resourceId,this.roleForm.value.name,this.roleForm.value.description),this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-role"]],decls:24,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Zje,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),E(16,e$e,7,9,"mat-error"),r()()(),l(17,"mat-card-actions",5)(18,"button",6),c(19),p(20,"translate"),r(),l(21,"button",7),c(22),p(23,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.roleForm),a(5),h(m(8,9,"labels.inputs.Name")),a(3),I(i.roleForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,11,"labels.inputs.Description")),a(3),I(i.roleForm.controls.description.hasError("required")?16:-1),a(2),g("routerLink",oe(17,Xje)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.roleForm.valid),a(),v(" ",m(23,15,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var t$e=()=>["../../"];function i$e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var kx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.authService=T(Ia),this.route.data.subscribe(t=>{this.roleData=t.role})}ngOnInit(){this.createRoleForm()}createRoleForm(){this.roleForm=this.formBuilder.group({name:[{value:this.roleData.name,disabled:!0},ce.required],description:[this.roleData.description,ce.required]})}submit(){this.systemService.updateRole(this.roleForm.value,this.roleData.id).subscribe(()=>{un.OIDC.oidcServerEnabled&&this.authService.updateRole(this.roleData.id,this.roleForm.get("name")?.value,this.roleForm.value.description),this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-role"]],decls:23,vars:17,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","disabled","","formControlName","name"],["matInput","","required","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),r(),l(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",4),E(15,i$e,7,9,"mat-error"),r()()(),l(16,"mat-card-actions",5)(17,"button",6),c(18),p(19,"translate"),r(),l(20,"button",7),c(21),p(22,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.roleForm),a(5),h(m(8,8,"labels.inputs.Role Name")),a(5),h(m(13,10,"labels.inputs.Role Description")),a(3),I(i.roleForm.controls.description.hasError("required")?15:-1),a(2),g("routerLink",oe(16,t$e)),a(),v(" ",m(19,12,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.roleForm.valid||i.roleForm.pristine),a(),v(" ",m(22,14,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}span[_ngcontent-%COMP%]{font-size:1rem}.roleName[_ngcontent-%COMP%]{line-height:3rem}"]})}}return e})();var n$e=["buttonAddRole"],o$e=["templateButtonAddRole"],a$e=["tableRolesandPermissions"],r$e=["templateTableRolesandPermissions"],l$e=()=>["add"],s$e=()=>[10,25,50,100],c$e=e=>[e,"edit"],p$e=e=>[e];function m$e(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function d$e(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function u$e(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function f$e(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function h$e(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function g$e(e,o){if(e&1&&(l(0,"td",27)(1,"div",28),b(2,"fa-icon",29),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.disabled===!0?"false":"true"),a(),g("matTooltip",t.disabled===!0?m(3,2,"labels.inputs.Disabled"):m(4,4,"labels.inputs.Enabled"))}}function _$e(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function C$e(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),l(1,"fa-icon",33),c(2),p(3,"translate"),r()()}if(e&2){let t=w().$implicit;g("routerLink",Nt(4,c$e,t.id)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," ")}}function v$e(e,o){if(e&1&&(l(0,"td",27),E(1,C$e,4,6,"button",31),r()),e&2){let t=o.$implicit;a(),I(t.name!=="Super user"?1:-1)}}function x$e(e,o){e&1&&b(0,"tr",34)}function b$e(e,o){if(e&1&&b(0,"tr",35),e&2){let t=o.$implicit;g("routerLink",Nt(1,p$e,t.id))}}function y$e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",36),c(4),p(5,"translate"),r(),l(6,"div",37)(7,"button",38),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Add Role")),a(3),v("",m(5,7,"labels.text.To create a new role"),"."),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function S$e(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",37)(4,"button",38),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(34);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(16),u=ve(38);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Search bar to filter roles"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function w$e(e,o){if(e&1){let t=Y();l(0,"h4",36),c(1),p(2,"translate"),l(3,"a",40),c(4),p(5,"translate"),r()(),l(6,"div",37)(7,"button",38),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of roles defined within the organization"),": "),a(3),h(m(5,7,"labels.inputs.Manage Roles and Permission")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Bx=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","description","disabled","actions"],this.route.data.subscribe(t=>{this.roleData=t.roles})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setRoles()}routeEdit(t){t.stopPropagation()}setRoles(){this.dataSource=new Wt(this.roleData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showRolesandPermissionPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonAddRole,this.buttonAddRole.nativeElement,"bottom",!0)}),this.configurationWizardService.showRolesandPermissionList===!0&&setTimeout(()=>{this.showPopover(this.templateTableRolesandPermissions,this.tableRolesandPermissions.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showRolesandPermissionPage=!1,this.configurationWizardService.showRolesandPermissionList=!1,this.configurationWizardService.showUsers=!0,this.router.navigate(["/appusers"])}previousStep(){this.configurationWizardService.showRolesandPermissionPage=!1,this.configurationWizardService.showRolesandPermissionList=!1,this.configurationWizardService.showRolesandPermission=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-roles-and-permissions"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(n$e,5),Ee(o$e,5),Ee(a$e,5),Ee(r$e,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonAddRole=s.first),Te(s=Me())&&(i.templateButtonAddRole=s.first),Te(s=Me())&&(i.tableRolesandPermissions=s.first),Te(s=Me())&&(i.templateTableRolesandPermissions=s.first)}},decls:39,vars:13,consts:[["buttonAddRole",""],["filter",""],["tableRolesandPermissions",""],["templateButtonAddRole",""],["templateFilter",""],["templateTableRolesandPermissions",""],[1,"container","m-b-20","layout-row","layout-align-end","gap-20px",3,"routerLink"],[1,"in-block"],["mat-raised-button","","color","primary"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","disabled"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-cell",""],["mat-icon-button","","color","primary",3,"routerLink"],["mat-icon-button","","color","primary",3,"click","routerLink"],["icon","edit"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895364/Manage+Roles+and+Permissions","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0)(3,"button",8),b(4,"fa-icon",9),c(5),p(6,"translate"),r()()(),l(7,"div",10)(8,"div",11,1)(10,"mat-form-field",12)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",13),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(15,"div",14,2)(17,"table",15),X(18,16),F(19,m$e,3,3,"th",17)(20,d$e,2,1,"td",18),Z(),X(21,19),F(22,u$e,3,3,"th",17)(23,f$e,2,1,"td",18),Z(),X(24,20),F(25,h$e,3,3,"th",17)(26,g$e,5,6,"td",18),Z(),X(27,21),F(28,_$e,3,3,"th",22)(29,v$e,2,1,"td",18),Z(),F(30,x$e,1,0,"tr",23)(31,b$e,1,3,"tr",24),r(),b(32,"mat-paginator",25),r()(),F(33,y$e,16,15,"ng-template",null,3,ti)(35,S$e,13,12,"ng-template",null,4,ti)(37,w$e,16,15,"ng-template",null,5,ti)}n&2&&(g("routerLink",oe(11,l$e)),a(5),v(" ",m(6,7,"labels.buttons.Add Role")," "),a(7),h(m(13,9,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,s$e)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var k5=Ds(vd());function P$e(e,o){if(e&1){let t=Y();l(0,"button",24),R("click",function(){V(t);let i=w();return q(i.disableRolesConfirmation())}),b(1,"fa-icon",25),c(2),p(3,"translate"),p(4,"translate"),r()}if(e&2){let t=w();g("disabled",t.rolePermissionService.name==="Super user"),a(2),le(" ",m(3,3,"labels.buttons.Disable")," ",m(4,5,"labels.inputs.Role")," ")}}function T$e(e,o){if(e&1){let t=Y();l(0,"button",1),R("click",function(){V(t);let i=w();return q(i.enableRolesConfirmation())}),b(1,"fa-icon",26),c(2),p(3,"translate"),p(4,"translate"),r()}if(e&2){let t=w();g("disabled",t.rolePermissionService.name==="Super user"),a(2),le(" ",m(3,3,"labels.buttons.Enable")," ",m(4,5,"labels.inputs.Role")," ")}}function M$e(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"button",27),R("click",function(){V(t);let i=w();return q(i.selectAll())}),c(2),p(3,"translate"),r(),l(4,"button",28),R("click",function(){V(t);let i=w();return q(i.deselectAll())}),c(5),p(6,"translate"),r()()}e&2&&(a(2),v(" ",m(3,2,"labels.buttons.Select All")," "),a(3),v(" ",m(6,4,"labels.buttons.Deselect All")," "))}function D$e(e,o){if(e&1){let t=Y();l(0,"mat-list-item",29),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showPermissions(i))}),l(1,"span",30),c(2),r()()}if(e&2){let t=o.$implicit,n=w();g("ngClass",n.selectedItem===t?"active":"inactive"),a(2),v(" ",n.formatName(t)," ")}}function E$e(e,o){if(e&1&&(l(0,"div",22)(1,"div",31)(2,"div",32)(3,"mat-checkbox",33),c(4),r()()()()),e&2){let t=o.$implicit,n=w();a(2),g("formGroupName",t.id),a(),g("id",Le(t.code)),a(),v(" ",n.permissionName(t.code)," ")}}function I$e(e,o){if(e&1){let t=Y();l(0,"div",23)(1,"mat-card-actions")(2,"button",34),R("click",function(){V(t);let i=w();return i.cancel(),q(i.restoreCheckboxes())}),c(3),p(4,"translate"),r(),l(5,"button",27),R("click",function(){V(t);let i=w();return q(i.submit())}),c(6),p(7,"translate"),r()()()}e&2&&(a(3),v(" ",m(4,2,"labels.buttons.Cancel")," "),a(3),v(" ",m(7,4,"labels.buttons.Submit")," "))}var Rx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.translateService=T(yi),this.dialog=T(Ht),this.authService=T(Ia),this.previousGrouping="",this.groupings=[],this.selectedItem="",this.isDisabled=!0,this.checkboxesChanged=!1,this.bValuesOnly=[],this.tempPermissionUIData={},this.permissions={permissions:[]},this.route.data.subscribe(t=>{this.rolePermissionService=t.roledetails})}ngOnInit(){this.permissions={permissions:[]},this.createForm(),this.groupRules(),this.selectedItem="special",this.showPermissions("special"),this.route.params.subscribe(t=>{this.roleId=t.id})}createForm(){this.formGroup=this.formBuilder.group({roster:this.formBuilder.array(this.rolePermissionService.permissionUsageData.map(t=>this.createMemberGroup(t)))})}createMemberGroup(t){return this.formBuilder.group(qt(at({},t),{code:[t.code,ce.required],selected:[{value:t.selected,disabled:!0},ce.required]}))}groupRules(){this.tempPermissionUIData={};for(let t in this.rolePermissionService.permissionUsageData)if(this.rolePermissionService.permissionUsageData[t]){this.rolePermissionService.permissionUsageData[t].grouping!==this.currentGrouping&&(this.currentGrouping=this.rolePermissionService.permissionUsageData[t].grouping,this.groupings.push(this.currentGrouping),this.tempPermissionUIData[this.currentGrouping]={permissions:[]});let n={code:this.rolePermissionService.permissionUsageData[t].code,id:+t,selected:this.rolePermissionService.permissionUsageData[t].selected};this.tempPermissionUIData[this.currentGrouping].permissions.push(n)}}showPermissions(t){this.permissions=this.tempPermissionUIData[t],this.selectedItem=t,this.previousGrouping=t}formatName(t){if(t.indexOf("portfolio_")>-1&&(t=t.replace("portfolio_","")),t.indexOf("transaction_")>-1){let n=t.split("_");t=n[1]+" "+n[0].charAt(0).toUpperCase()+n[0].slice(1)+"s"}return t=t.charAt(0).toUpperCase()+t.slice(1),t}permissionName(t){return t=t||"",t=t.replace(/_/g," "),this.previousGrouping==="report"&&(t=t.replace(/READ/g,"View")),t}backupCheckValues(){this.backupform=k5.cloneDeep(this.formGroup)}restoreCheckboxes(){this.formGroup=k5.cloneDeep(this.backupform)}isRoleEnable(t){return t}editRoles(){this.isDisabled=!1,this.formGroup.controls.roster.enable()}cancel(){this.isDisabled=!0,this.formGroup.controls.roster.disable()}submit(){let t=this.formGroup.get("roster").value,n={},i={permissions:{}};for(let s=0;s{})}selectAll(){let t=this.formGroup.get("roster");for(let n=0;n{n.delete&&this.systemService.deleteRole(this.roleId).subscribe(()=>{un.OIDC.oidcServerEnabled&&this.authService.deleteRole(this.roleId),this.router.navigate(["/system/roles-and-permissions"])})})}enableRolesConfirmation(){this.dialog.open(ek,{data:{enableContext:this.translateService.instant("labels.inputs.Role")+" "+this.roleId}}).afterClosed().subscribe(n=>{n.enable&&this.systemService.enableRole(this.roleId).subscribe(()=>{this.router.navigate(["/system/roles-and-permissions"])})})}disableRolesConfirmation(){this.dialog.open(tk,{data:{disableContext:this.translateService.instant("labels.inputs.Role")+" "+this.roleId}}).afterClosed().subscribe(n=>{n.disable&&this.systemService.disableRole(this.roleId).subscribe(()=>{this.router.navigate(["/system/roles-and-permissions"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-role"]],decls:50,vars:29,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","danger",3,"disabled"],["mat-raised-button","","color","primary",3,"disabled"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","trash",1,"m-r-10"],[1,"container","m-b-20"],[1,"mat-elevation-z8"],[1,"layout-row-wrap"],[1,"flex-40","flex-lt-md-50","header"],[1,"flex-60","flex-lt-md-50"],[1,"mat-elevation-z8","container"],[1,"permission-selected","layout-row"],[1,"flex-75"],[1,"flex-25","layout-row","layout-xs-column","layout-align-end","gap-5px","select-deselect"],[1,"layout-row"],[1,"layout-column","flex-30"],[3,"ngClass"],[3,"vertical"],[1,"flex-70","layout-column","list-permission"],[3,"submit","formGroup"],[1,"display-permissions"],[1,"layout-row","layout-align-center","gap-5px","layout-xs-column"],["mat-raised-button","","color","danger",3,"click","disabled"],["icon","lock",1,"m-r-10"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","default",3,"click"],[3,"click","ngClass"],[1,"grouping-name"],["formArrayName","roster"],[3,"formGroupName"],["name","cp","formControlName","selected",3,"id"],["type","button","mat-raised-button","",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),R("click",function(){return i.editRoles(),i.backupCheckValues()}),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),E(5,P$e,5,7,"button",3),E(6,T$e,5,7,"button",4),l(7,"button",5),R("click",function(){return i.deleteRole()}),b(8,"fa-icon",6),c(9),p(10,"translate"),p(11,"translate"),r()(),l(12,"div",7)(13,"mat-card",8)(14,"mat-card-content")(15,"div",9)(16,"div",10)(17,"b"),c(18),p(19,"translate"),r()(),l(20,"div",11),c(21),r(),l(22,"div",10)(23,"b"),c(24),p(25,"translate"),r()(),l(26,"div",11),c(27),r()()()()(),l(28,"div",12)(29,"mat-card"),X(30),l(31,"div",13)(32,"div",14)(33,"h3"),c(34),p(35,"translate"),l(36,"strong"),c(37),r()()(),E(38,M$e,7,6,"div",15),r(),l(39,"div",16)(40,"div",17)(41,"mat-list"),Se(42,D$e,3,2,"mat-list-item",18,Pe),r()(),b(44,"mat-divider",19),l(45,"div",20)(46,"form",21),R("submit",function(){return i.submit()}),Se(47,E$e,5,4,"div",22,Pe),r()()(),Z(),E(49,I$e,8,6,"div",23),r()()),n&2&&(a(),g("disabled",i.rolePermissionService.name==="Super user"),a(2),v(" ",m(4,17,"labels.text.Edit Role")," "),a(2),I(i.isRoleEnable(i.rolePermissionService.disabled)?-1:5),a(),I(i.isRoleEnable(i.rolePermissionService.disabled)?6:-1),a(),g("disabled",i.rolePermissionService.name==="Super user"),a(2),le(" ",m(10,19,"labels.buttons.Delete")," ",m(11,21,"labels.inputs.Role")," "),a(9),v("",m(19,23,"labels.inputs.Name"),":"),a(3),v(" ",i.rolePermissionService.name," "),a(3),v("",m(25,25,"labels.inputs.Role Description"),":"),a(3),v(" ",i.rolePermissionService.description," "),a(7),v(" ",m(35,27,"labels.buttons.Permissions"),": "),a(3),h(i.formatName(i.previousGrouping)),a(),I(i.isDisabled?-1:38),a(4),we(i.groupings),a(2),g("vertical",!0),a(2),g("formGroup",i.formGroup),a(),we(i.permissions.permissions),a(2),I(i.isDisabled?-1:49))},dependencies:[ue,co,fe,tt,$e,Xe,Ze,et,la,La,Ue,Je,Et,xe,fi,ke,vl,Vo,Ri,he],styles:[".display-permissions[_ngcontent-%COMP%]{padding-top:15px}span[_ngcontent-%COMP%]{font-size:1rem}mat-list-item[_ngcontent-%COMP%]{cursor:pointer}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{cursor:pointer}.active[_ngcontent-%COMP%]{background-color:#f2f2f2}.grouping-name[_ngcontent-%COMP%]{padding:0 10px}.list-permission[_ngcontent-%COMP%]{padding-left:20px}.permission-selected[_ngcontent-%COMP%]{margin-top:10px;height:40px}.inactive[_ngcontent-%COMP%]{transition:all .2s ease-in-out}.inactive[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:3rem}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var O$e=["datatables"],A$e=["templateDatatables"],F$e=["codes"],k$e=["templateCodes"],B$e=["rolesandpermission"],R$e=["templateRolesandPermission"],N$e=["makerCheckerTable"],L$e=["templateMakerCheckerTable"],V$e=["configurations"],q$e=["templateConfigurations"],z$e=["schedulerJobs"],H$e=["templateSchedulerJobs"],G$e=["manageReports"],j$e=["templateManageReports"],B5=()=>["data-tables"],R5=()=>["codes"],N5=()=>["roles-and-permissions"],Nx=()=>["configure-mc-tasks"],L5=()=>["hooks"],V5=()=>["entity-to-entity-mapping"],TN=e=>({"disabled-item":e}),q5=()=>["audit-trails"],z5=()=>["reports"],H5=()=>["manage-jobs"],G5=()=>["configurations"],j5=()=>["account-number-preferences"],$5=()=>["external-services"],U5=()=>["external-events"];function $$e(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,B5)),a(),v(" ",m(2,2,"labels.text.Add new extra fields to any entity")," "))}function U$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function W$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function Q$e(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,R5)),a(),v(" ",m(2,2,"labels.text.Codes are used to define drop down values")," "))}function Y$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function J$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function K$e(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,N5)),a(),v(" ",m(2,2,"labels.text.Define or modify roles and associated permissions")," "))}function X$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function Z$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function eUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,Nx)),a(),v(" ",m(2,2,"labels.text.Define or modify Maker Checker tasks")," "))}function tUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function iUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function nUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,L5)),a(),v(" ",m(2,2,"labels.text.Define Hooks")," "))}function oUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function aUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function rUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,V5)),a(),v(" ",m(2,2,"labels.text.Define or modify entity to entity mappings")," "))}function lUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function sUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function cUe(e,o){e&1&&(l(0,"p",35),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Manage Surveys")," "))}function pUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function mUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function dUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,U5)),a(),v(" ",m(2,2,"labels.text.External Events configuration, to enable or disable")," "))}function uUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function fUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function hUe(e,o){if(e&1&&(l(0,"mat-list-item",15)(1,"div",16)(2,"div",17)(3,"mat-icon",18),b(4,"fa-icon",30),r(),l(5,"div",20),c(6),p(7,"translate"),E(8,dUe,3,5,"p",21),r()(),l(9,"div",22),E(10,uUe,1,0,"fa-icon",23),E(11,fUe,1,0,"fa-icon",24),r()()()),e&2){let t=w();g("routerLink",oe(8,U5)),a(2),g("routerLink",oe(9,U5)),a(4),v(" ",m(7,6,"labels.heading.Manage External Events")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function gUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,q5)),a(),v(" ",m(2,2,"labels.text.Audit logs of all the activities")," "))}function _Ue(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function CUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function vUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,z5)),a(),v(" ",m(2,2,"labels.text.Add new report and classify reports")," "))}function xUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function bUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function yUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,H5)),a(),v(" ",m(2,2,"labels.text.Manage Schedule and Workflow jobs, modify jobs")," "))}function SUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function wUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function PUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,G5)),a(),v(" ",m(2,2,"labels.text.Global configurations, Cache and Business Date")," "))}function TUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(11),q(i.stopPropagation())}),r()}}function MUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(11),q(i.stopPropagation())}),r()}}function DUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,j5)),a(),v(" ",m(2,2,"labels.text.Preferences for generating account numbers for client")," "))}function EUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(12),q(i.stopPropagation())}),r()}}function IUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(12),q(i.stopPropagation())}),r()}}function OUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,$5)),a(),v(" ",m(2,2,"labels.text.External Services Configuration")," "))}function AUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(13),q(i.stopPropagation())}),r()}}function FUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(13),q(i.stopPropagation())}),r()}}function kUe(e,o){e&1&&(l(0,"p",35),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Two-factor authentication configuration")," "))}function BUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(14),q(i.stopPropagation())}),r()}}function RUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(14),q(i.stopPropagation())}),r()}}function NUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepDatatables())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepDatatables())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Data Tables")),a(3),h(m(5,7,"labels.text.Mifos X data-tables allow the user to add custom fields")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function LUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepCodes())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepCodes())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Codes")),a(3),h(m(5,7,"labels.text.Selection you can create new drop-downs and edit")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function VUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepRolesandPermission())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepRolesandPermission())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Roles and Permissions")),a(3),h(m(5,7,"labels.text.Roles and Permissions allow the administrator to control access")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function qUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepMakerCheckerTable())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepMakerCheckerTable())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Configure Maker-Checker Tasks")),a(3),h(m(5,7,"labels.text.\u201CMaker-Checker\u201D principle requires every tasks")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function zUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepConfigurations())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepConfigurations())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Configuration")),a(3),h(m(5,7,"labels.text.Configurations page allows you to further customize")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function HUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepSchedulerJobs())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepSchedulerJobs())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Scheduler Jobs")),a(3),h(m(5,7,"labels.text.Scheduler Jobs can set batch jobs")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function GUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepManageReports())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepManageReports())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Reports")),a(3),h(m(5,7,"labels.text.Add customized reports and edit core reports")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Lx=(()=>{class e{constructor(){this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.isDisabled=!0,this.arrowBooleans=new Array(15).fill(!1)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDatatables===!0&&setTimeout(()=>{this.showPopover(this.templateDatatables,this.datatables.nativeElement,"bottom",!0)}),this.configurationWizardService.showSystemCodes===!0&&setTimeout(()=>{this.showPopover(this.templateCodes,this.codes.nativeElement,"bottom",!0)}),this.configurationWizardService.showRolesandPermission===!0&&setTimeout(()=>{this.showPopover(this.templateRolesandPermission,this.rolesandpermission.nativeElement,"bottom",!0)}),this.configurationWizardService.showMakerCheckerTable===!0&&setTimeout(()=>{this.showPopover(this.templateMakerCheckerTable,this.makerCheckerTable.nativeElement,"bottom",!0)}),this.configurationWizardService.showConfigurations===!0&&setTimeout(()=>{this.showPopover(this.templateConfigurations,this.configurations.nativeElement,"bottom",!0)}),this.configurationWizardService.showSchedulerJobs===!0&&setTimeout(()=>{this.showPopover(this.templateSchedulerJobs,this.schedulerJobs.nativeElement,"bottom",!0)}),this.configurationWizardService.showManageReports===!0&&setTimeout(()=>{this.showPopover(this.templateManageReports,this.manageReports.nativeElement,"bottom",!0)})}nextStepDatatables(){this.configurationWizardService.showDatatables=!1,this.configurationWizardService.showDatatablesPage=!0,this.router.navigate(["/system/data-tables"])}previousStepDatatables(){this.configurationWizardService.showDatatables=!1,this.configurationWizardService.showDefineWorkingDays=!0,this.router.navigate(["/organization/working-days"])}nextStepCodes(){this.configurationWizardService.showSystemCodes=!1,this.configurationWizardService.showSystemCodesPage=!0,this.router.navigate(["/system/codes"])}previousStepCodes(){this.configurationWizardService.showSystemCodes=!1,this.configurationWizardService.showDatatablesForm=!0,this.router.navigate(["/system/data-tables/create"])}nextStepRolesandPermission(){this.configurationWizardService.showRolesandPermission=!1,this.configurationWizardService.showRolesandPermissionPage=!0,this.router.navigate(["/system/roles-and-permissions"])}previousStepRolesandPermission(){this.configurationWizardService.showRolesandPermission=!1,this.configurationWizardService.showSystemCodesForm=!0,this.router.navigate(["/system/codes/create"])}nextStepMakerCheckerTable(){this.configurationWizardService.showMakerCheckerTable=!1,this.configurationWizardService.showMakerCheckerTablePage=!0,this.router.navigate(["/system/configure-mc-tasks"])}previousStepMakerCheckerTable(){this.configurationWizardService.showMakerCheckerTable=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/users/create"])}nextStepConfigurations(){this.configurationWizardService.showConfigurations=!1,this.configurationWizardService.showConfigurationsPage=!0,this.router.navigate(["/system/configurations"])}previousStepConfigurations(){this.configurationWizardService.showConfigurations=!1,this.configurationWizardService.showMakerCheckerTableList=!0,this.router.navigate(["/system/configure-mc-tasks"])}nextStepSchedulerJobs(){this.configurationWizardService.showSchedulerJobs=!1,this.configurationWizardService.showSchedulerJobsPage=!0,this.router.navigate(["/system/scheduler-jobs"])}previousStepSchedulerJobs(){this.configurationWizardService.showSchedulerJobs=!1,this.configurationWizardService.showConfigurationsList=!0,this.router.navigate(["/system/global-configurations"])}nextStepManageReports(){this.router.navigate(["/system/reports"])}previousStepManageReports(){this.configurationWizardService.showManageReports=!1,this.configurationWizardService.showManageFunds=!0,this.router.navigate(["/organization/manage-funds"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-system"]],viewQuery:function(n,i){if(n&1&&(Ee(O$e,5),Ee(A$e,5),Ee(F$e,5),Ee(k$e,5),Ee(B$e,5),Ee(R$e,5),Ee(N$e,5),Ee(L$e,5),Ee(V$e,5),Ee(q$e,5),Ee(z$e,5),Ee(H$e,5),Ee(G$e,5),Ee(j$e,5)),n&2){let s;Te(s=Me())&&(i.datatables=s.first),Te(s=Me())&&(i.templateDatatables=s.first),Te(s=Me())&&(i.codes=s.first),Te(s=Me())&&(i.templateCodes=s.first),Te(s=Me())&&(i.rolesandpermission=s.first),Te(s=Me())&&(i.templateRolesandPermission=s.first),Te(s=Me())&&(i.makerCheckerTable=s.first),Te(s=Me())&&(i.templateMakerCheckerTable=s.first),Te(s=Me())&&(i.configurations=s.first),Te(s=Me())&&(i.templateConfigurations=s.first),Te(s=Me())&&(i.schedulerJobs=s.first),Te(s=Me())&&(i.templateSchedulerJobs=s.first),Te(s=Me())&&(i.manageReports=s.first),Te(s=Me())&&(i.templateManageReports=s.first)}},decls:200,vars:141,consts:[["datatables",""],["codes",""],["rolesandpermission",""],["makerCheckerTable",""],["manageReports",""],["templateDatatables",""],["templateCodes",""],["templateRolesandPermission",""],["templateMakerCheckerTable",""],["templateConfigurations",""],["templateSchedulerJobs",""],["templateManageReports",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","table","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["matListIcon","",3,"routerLink"],["icon","list-ul","size","sm"],["icon","key","size","sm"],["icon","sitemap","size","sm"],["matLine","",3,"routerLink"],["icon","anchor","size","sm"],["icon","road","size","sm"],[3,"ngClass"],[1,"menu-left-section"],["icon","file-alt","size","sm"],["matLine","",1,"menu-explanation"],[3,"routerLink",4,"mifosxHasPermission"],["icon","money-check","size","sm"],["icon","file-word","size","sm"],["icon","clock","size","sm"],["icon","cogs","size","sm"],["icon","cog","size","sm"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",12)(1,"mat-card")(2,"div",13)(3,"div",14)(4,"mat-nav-list")(5,"div",null,0)(7,"mat-list-item",15)(8,"div",16)(9,"div",17)(10,"mat-icon",18),b(11,"fa-icon",19),r(),l(12,"div",20),c(13),p(14,"translate"),E(15,$$e,3,5,"p",21),r()(),l(16,"div",22),E(17,U$e,1,0,"fa-icon",23),E(18,W$e,1,0,"fa-icon",24),r()()()(),l(19,"div",null,1)(21,"mat-list-item",25)(22,"div",16)(23,"div",17)(24,"mat-icon",18),b(25,"fa-icon",26),r(),l(26,"div"),c(27),p(28,"translate"),E(29,Q$e,3,5,"p",21),r()(),l(30,"div",22),E(31,Y$e,1,0,"fa-icon",23),E(32,J$e,1,0,"fa-icon",24),r()()()(),l(33,"div",null,2)(35,"mat-list-item",15)(36,"div",16)(37,"div",17)(38,"mat-icon",18),b(39,"fa-icon",27),r(),l(40,"div",20),c(41),p(42,"translate"),E(43,K$e,3,5,"p",21),r()(),l(44,"div",22),E(45,X$e,1,0,"fa-icon",23),E(46,Z$e,1,0,"fa-icon",24),r()()()(),l(47,"div",null,3)(49,"mat-list-item",15)(50,"div",16)(51,"div",17)(52,"mat-icon",18),b(53,"fa-icon",28),r(),l(54,"div",29),c(55),p(56,"translate"),E(57,eUe,3,5,"p",21),r()(),l(58,"div",22),E(59,tUe,1,0,"fa-icon",23),E(60,iUe,1,0,"fa-icon",24),r()()()(),l(61,"mat-list-item",15)(62,"div",16)(63,"div",17)(64,"mat-icon",18),b(65,"fa-icon",30),r(),l(66,"div",20),c(67),p(68,"translate"),E(69,nUe,3,5,"p",21),r()(),l(70,"div",22),E(71,oUe,1,0,"fa-icon",23),E(72,aUe,1,0,"fa-icon",24),r()()(),l(73,"mat-list-item",15)(74,"div",16)(75,"div",17)(76,"mat-icon",18),b(77,"fa-icon",31),r(),l(78,"div",20),c(79),p(80,"translate"),E(81,rUe,3,5,"p",21),r()(),l(82,"div",22),E(83,lUe,1,0,"fa-icon",23),E(84,sUe,1,0,"fa-icon",24),r()()(),l(85,"mat-list-item",32)(86,"div",16)(87,"div",33)(88,"mat-icon",18),b(89,"fa-icon",34),r(),l(90,"div",20),c(91),p(92,"translate"),E(93,cUe,3,3,"p",35),r()(),l(94,"div",22),E(95,pUe,1,0,"fa-icon",23),E(96,mUe,1,0,"fa-icon",24),r()()(),F(97,hUe,12,10,"mat-list-item",36),r()(),l(98,"div",14)(99,"mat-nav-list")(100,"mat-list-item",15)(101,"div",16)(102,"div",17)(103,"mat-icon",18),b(104,"fa-icon",37),r(),l(105,"div",20),c(106),p(107,"translate"),E(108,gUe,3,5,"p",21),r()(),l(109,"div",22),E(110,_Ue,1,0,"fa-icon",23),E(111,CUe,1,0,"fa-icon",24),r()()(),l(112,"div",null,4)(114,"mat-list-item",15)(115,"div",16)(116,"div",17)(117,"mat-icon",18),b(118,"fa-icon",38),r(),l(119,"div",20),c(120),p(121,"translate"),E(122,vUe,3,5,"p",21),r()(),l(123,"div",22),E(124,xUe,1,0,"fa-icon",23),E(125,bUe,1,0,"fa-icon",24),r()()()(),l(126,"mat-list-item",15)(127,"div",16)(128,"div",17)(129,"mat-icon",18),b(130,"fa-icon",39),r(),l(131,"div",20),c(132),p(133,"translate"),E(134,yUe,3,5,"p",21),r()(),l(135,"div",22),E(136,SUe,1,0,"fa-icon",23),E(137,wUe,1,0,"fa-icon",24),r()()(),l(138,"mat-list-item",15)(139,"div",16)(140,"div",17)(141,"mat-icon"),b(142,"fa-icon",40),r(),l(143,"div",20),c(144),p(145,"translate"),E(146,PUe,3,5,"p",21),r()(),l(147,"div",22),E(148,TUe,1,0,"fa-icon",23),E(149,MUe,1,0,"fa-icon",24),r()()(),l(150,"mat-list-item",15)(151,"div",16)(152,"div",17)(153,"mat-icon",18),b(154,"fa-icon",27),r(),l(155,"div",20),c(156),p(157,"translate"),E(158,DUe,3,5,"p",21),r()(),l(159,"div",22),E(160,EUe,1,0,"fa-icon",23),E(161,IUe,1,0,"fa-icon",24),r()()(),l(162,"mat-list-item",15)(163,"div",16)(164,"div",17)(165,"mat-icon",18),b(166,"fa-icon",41),r(),l(167,"div",20),c(168),p(169,"translate"),E(170,OUe,3,5,"p",21),r()(),l(171,"div",22),E(172,AUe,1,0,"fa-icon",23),E(173,FUe,1,0,"fa-icon",24),r()()(),l(174,"mat-list-item",32)(175,"div",16)(176,"div",33)(177,"mat-icon",18),b(178,"fa-icon",27),r(),l(179,"div",20),c(180),p(181,"translate"),E(182,kUe,3,3,"p",35),r()(),l(183,"div",22),E(184,BUe,1,0,"fa-icon",23),E(185,RUe,1,0,"fa-icon",24),r()()()()()()()(),F(186,NUe,16,15,"ng-template",null,5,ti)(188,LUe,16,15,"ng-template",null,6,ti)(190,VUe,16,15,"ng-template",null,7,ti)(192,qUe,16,15,"ng-template",null,8,ti)(194,zUe,16,15,"ng-template",null,9,ti)(196,HUe,16,15,"ng-template",null,10,ti)(198,GUe,16,15,"ng-template",null,11,ti)),n&2&&(a(7),g("routerLink",oe(112,B5)),a(2),g("routerLink",oe(113,B5)),a(4),v(" ",m(14,84,"labels.heading.Manage Data tables")," "),a(2),I(i.arrowBooleans[0]?15:-1),a(2),I(i.arrowBooleans[0]?-1:17),a(),I(i.arrowBooleans[0]?18:-1),a(3),g("routerLink",oe(114,R5)),a(2),g("routerLink",oe(115,R5)),a(4),v(" ",m(28,86,"labels.heading.Manage Codes")," "),a(2),I(i.arrowBooleans[1]?29:-1),a(2),I(i.arrowBooleans[1]?-1:31),a(),I(i.arrowBooleans[1]?32:-1),a(3),g("routerLink",oe(116,N5)),a(2),g("routerLink",oe(117,N5)),a(4),v(" ",m(42,88,"labels.heading.Manage Roles and Permissions")," "),a(2),I(i.arrowBooleans[2]?43:-1),a(2),I(i.arrowBooleans[2]?-1:45),a(),I(i.arrowBooleans[2]?46:-1),a(3),g("routerLink",oe(118,Nx)),a(2),g("routerLink",oe(119,Nx)),a(3),g("routerLink",oe(120,Nx)),a(),v(" ",m(56,90,"labels.heading.Configure Maker Checker Tasks")," "),a(2),I(i.arrowBooleans[3]?57:-1),a(2),I(i.arrowBooleans[3]?-1:59),a(),I(i.arrowBooleans[3]?60:-1),a(),g("routerLink",oe(121,L5)),a(2),g("routerLink",oe(122,L5)),a(4),v(" ",m(68,92,"labels.heading.Manage Hooks")," "),a(2),I(i.arrowBooleans[4]?69:-1),a(2),I(i.arrowBooleans[4]?-1:71),a(),I(i.arrowBooleans[4]?72:-1),a(),g("routerLink",oe(123,V5)),a(2),g("routerLink",oe(124,V5)),a(4),v(" ",m(80,94,"labels.heading.Entity to Entity Mapping")," "),a(2),I(i.arrowBooleans[5]?81:-1),a(2),I(i.arrowBooleans[5]?-1:83),a(),I(i.arrowBooleans[5]?84:-1),a(),g("ngClass",Nt(125,TN,i.isDisabled)),a(6),v(" ",m(92,96,"labels.heading.Manage Surveys")," "),a(2),I(i.arrowBooleans[6]?93:-1),a(2),I(i.arrowBooleans[6]?-1:95),a(),I(i.arrowBooleans[6]?96:-1),a(),g("mifosxHasPermission","READ_EXTERNAL_EVENT_CONFIGURATION"),a(3),g("routerLink",oe(127,q5)),a(2),g("routerLink",oe(128,q5)),a(4),v(" ",m(107,98,"labels.heading.Audit Trails")," "),a(2),I(i.arrowBooleans[8]?108:-1),a(2),I(i.arrowBooleans[8]?-1:110),a(),I(i.arrowBooleans[8]?111:-1),a(3),g("routerLink",oe(129,z5)),a(2),g("routerLink",oe(130,z5)),a(4),v(" ",m(121,100,"labels.heading.Manage Reports")," "),a(2),I(i.arrowBooleans[9]?122:-1),a(2),I(i.arrowBooleans[9]?-1:124),a(),I(i.arrowBooleans[9]?125:-1),a(),g("routerLink",oe(131,H5)),a(2),g("routerLink",oe(132,H5)),a(4),v(" ",m(133,102,"labels.heading.Manage Jobs")," "),a(2),I(i.arrowBooleans[10]?134:-1),a(2),I(i.arrowBooleans[10]?-1:136),a(),I(i.arrowBooleans[10]?137:-1),a(),g("routerLink",oe(133,G5)),a(2),g("routerLink",oe(134,G5)),a(4),v(" ",m(145,104,"labels.heading.Configurations")," "),a(2),I(i.arrowBooleans[11]?146:-1),a(2),I(i.arrowBooleans[11]?-1:148),a(),I(i.arrowBooleans[11]?149:-1),a(),g("routerLink",oe(135,j5)),a(2),g("routerLink",oe(136,j5)),a(4),v(" ",m(157,106,"labels.heading.Account Number Preferences")," "),a(2),I(i.arrowBooleans[12]?158:-1),a(2),I(i.arrowBooleans[12]?-1:160),a(),I(i.arrowBooleans[12]?161:-1),a(),g("routerLink",oe(137,$5)),a(2),g("routerLink",oe(138,$5)),a(4),v(" ",m(169,108,"labels.heading.External Services")," "),a(2),I(i.arrowBooleans[13]?170:-1),a(2),I(i.arrowBooleans[13]?-1:172),a(),I(i.arrowBooleans[13]?173:-1),a(),g("ngClass",Nt(139,TN,i.isDisabled)),a(6),v(" ",m(181,110,"labels.heading.Two-Factor Authentication")," "),a(2),I(i.arrowBooleans[14]?182:-1),a(2),I(i.arrowBooleans[14]?-1:184),a(),I(i.arrowBooleans[14]?185:-1))},dependencies:[ue,co,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],styles:[".disabled-item[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})}}return e})();var W5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getAccountNumberPreferences()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Vx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getAccountNumberPreferencesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var qx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getAccountNumberPreference(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Q5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getAuditTrailSearchTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Y5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getAuditTrail(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var zx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getCode(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var o1=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getCodes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var J5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getCodeValues(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var jUe=["filter"],$Ue=["templateFilter"],UUe=["configurationsTable"],WUe=["templateConfigurationsTable"],QUe=()=>[10,25,50,100],YUe=e=>[e,"edit"];function JUe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function KUe(e,o){if(e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2){let t=w().$implicit;g("matTooltip",Le(m(1,2,t.description)))}}function XUe(e,o){if(e&1&&(l(0,"td",23)(1,"span",24),c(2),r(),E(3,KUe,2,4,"fa-icon",25),r()),e&2){let t=o.$implicit;a(2),h(t.name),a(),I(t.description?3:-1)}}function ZUe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function eWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enabled")))}function tWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function iWe(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"mat-slide-toggle",26),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.enabled,i)||(s.enabled=i),q(i)}),R("click",function(){let i=V(t).$implicit,s=w();return q(s.toggleStatus(i))}),l(2,"div",27),E(3,eWe,3,3,"span"),E(4,tWe,3,3,"span"),r()()()}if(e&2){let t=o.$implicit;a(),g("name",Le(t.name)),kc("ngModel",t.enabled),a(),g("className",t.enabled?"enabled":"disabled"),a(),I(t.enabled?3:-1),a(),I(t.enabled?-1:4)}}function nWe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function oWe(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function aWe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.String Value")))}function rWe(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.stringValue)}}function lWe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Date Value")))}function sWe(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dateValue))}}function cWe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function pWe(e,o){if(e&1&&(l(0,"td",23)(1,"button",29),b(2,"fa-icon",30),r()()),e&2){let t=o.$implicit;a(),g("routerLink",Nt(1,YUe,t.id))}}function mWe(e,o){e&1&&b(0,"tr",31)}function dWe(e,o){e&1&&b(0,"tr",32)}function uWe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",33)(4,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(35);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter configurations")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function fWe(e,o){if(e&1){let t=Y();l(0,"h4",36),c(1),p(2,"translate"),l(3,"a",37),c(4),p(5,"translate"),r()(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(33);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.Global Configuration options"),": "),a(3),h(m(5,7,"labels.inputs.Global Configurations")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Hx=(()=>{class e{constructor(){this.route=T(Ie),this.alertService=T(Ur),this.systemService=T(ii),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","enabled","value","stringValue","dateValue","edit"],this.route.data.subscribe(t=>{this.configurationData=t.configurations})}ngOnInit(){this.setConfigurationData()}setConfigurationData(){this.systemService.getConfigurations().subscribe(t=>{this.configurationData=t.globalConfiguration,this.dataSource=new Wt(this.configurationData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleStatus(t){this.systemService.updateConfiguration(t.id,{enabled:t.enabled}).subscribe(n=>{if(t.enabled=n.changes.enabled,t.name===Ot.businessDateConfigName){let i=t.enabled?"enabled":"disabled";this.alertService.alert({type:Ot.businessDateType+" Set Config",message:i})}})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showConfigurationsPage===!0&&setTimeout(()=>{this.showPopover(this.templateFilter,this.filter.nativeElement,"bottom",!0)}),this.configurationWizardService.showConfigurationsList===!0&&setTimeout(()=>{this.showPopover(this.templateConfigurationsTable,this.configurationsTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showConfigurationsPage=!1,this.configurationWizardService.showConfigurationsList=!1,this.configurationWizardService.showSchedulerJobs=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showConfigurationsPage=!1,this.configurationWizardService.showConfigurationsList=!1,this.configurationWizardService.showConfigurations=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-global-configurations-tab"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(jUe,5),Ee($Ue,5),Ee(UUe,5),Ee(WUe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.filter=s.first),Te(s=Me())&&(i.templateFilter=s.first),Te(s=Me())&&(i.configurationsTable=s.first),Te(s=Me())&&(i.templateConfigurationsTable=s.first)}},decls:36,vars:8,consts:[["filter",""],["configurationsTable",""],["templateFilter",""],["templateConfigurationsTable",""],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","m-b-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["matColumnDef","value"],["matColumnDef","stringValue"],["matColumnDef","dateValue"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"m-r-10"],["icon","question-circle","matTooltipPosition","right",3,"matTooltip"],[3,"ngModelChange","click","ngModel","name"],[3,"className"],["mat-header-cell",""],["mat-button","","color","primary",3,"routerLink"],["icon","edit"],["mat-header-row",""],["mat-row",""],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895362/Global+Configuration","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0)(3,"mat-form-field",6)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",7),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(8,"div",8,1)(10,"table",9),X(11,10),F(12,JUe,3,3,"th",11)(13,XUe,4,2,"td",12),Z(),X(14,13),F(15,ZUe,3,3,"th",11)(16,iWe,5,6,"td",12),Z(),X(17,14),F(18,nWe,3,3,"th",11)(19,oWe,2,1,"td",12),Z(),X(20,15),F(21,aWe,3,3,"th",11)(22,rWe,2,1,"td",12),Z(),X(23,16),F(24,lWe,3,3,"th",11)(25,sWe,3,3,"td",12),Z(),X(26,17),F(27,cWe,3,3,"th",18)(28,pWe,3,3,"td",12),Z(),F(29,mWe,1,0,"tr",19)(30,dWe,1,0,"tr",20),r(),b(31,"mat-paginator",21),r()(),F(32,uWe,13,12,"ng-template",null,2,ti)(34,fWe,16,15,"ng-template",null,3,ti)}n&2&&(a(5),h(m(6,5,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,QUe)))},dependencies:[ue,fe,$e,Oe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,Ip,ec,Sp,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function hWe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),l(4,"code"),c(5),r()()()),e&2){let t=w();a(2),v(" ",m(3,2,"labels.text.Business Date functionality is not enabled"),": "),a(3),h(t.configurationName)}}function gWe(e,o){if(e&1&&(l(0,"div",10)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",15),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Business Date"),": "),a(3),h(m(6,4,t.businessDate))}}function _We(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Business Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CWe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",16),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17)(5,"mat-datepicker-toggle",18)(6,"mat-datepicker",null,0),E(8,_We,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Business Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.businessDateForm.controls.businessDate.hasError("required")?8:-1)}}function vWe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w(3);return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w(3);g("disabled",t.businessDateForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function xWe(e,o){if(e&1){let t=Y();l(0,"span"),F(1,vWe,3,4,"button",19),l(2,"button",20),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(0))}),c(3),p(4,"translate"),r()()}e&2&&(a(),g("mifosxHasPermission","UPDATE_BUSINESSDATE"),a(2),v(" ",m(4,2,"labels.buttons.Cancel")," "))}function bWe(e,o){if(e&1){let t=Y();l(0,"button",22),p(1,"translate"),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(0))}),b(2,"fa-icon",23),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit the Business Date")))}function yWe(e,o){if(e&1&&(l(0,"div",10)(1,"span",24),c(2),p(3,"translate"),r(),l(4,"span",25),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.COB Date"),": "),a(3),h(m(6,4,t.cobDate))}}function SWe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.COB Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wWe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",16),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17)(5,"mat-datepicker-toggle",18)(6,"mat-datepicker",null,1),E(8,SWe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.COB Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.businessDateForm.controls.cobDate.hasError("required")?8:-1)}}function PWe(e,o){if(e&1){let t=Y();l(0,"button",27),R("click",function(){V(t);let i=w(3);return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w(3);g("disabled",t.businessDateForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function TWe(e,o){e&1&&(l(0,"span"),F(1,PWe,3,4,"button",26),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_BUSINESSDATE"))}function MWe(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(1))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Cancel")," "))}function DWe(e,o){if(e&1){let t=Y();l(0,"button",22),p(1,"translate"),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(1))}),b(2,"fa-icon",23),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit the COB Date")))}function EWe(e,o){if(e&1&&(l(0,"div")(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"div",6)(6,"span",7),c(7),p(8,"translate"),r(),l(9,"span",8),c(10),r()()(),l(11,"div",9),E(12,gWe,7,6,"div",10),E(13,CWe,9,8,"mat-form-field"),l(14,"div",11),E(15,xWe,5,4,"span"),E(16,bWe,3,4,"button",12),r()(),l(17,"div",9),E(18,yWe,7,6,"div",10),E(19,wWe,9,8,"mat-form-field"),l(20,"div",13),E(21,TWe,2,1,"span"),E(22,MWe,3,3,"button",14),E(23,DWe,3,4,"button",12),r()()()()()()),e&2){let t=w();a(2),g("formGroup",t.businessDateForm),a(5),v("",m(8,12,"labels.inputs.User date format"),": "),a(3),h(t.userDateFormat),a(2),I(t.isEditInProgress?-1:12),a(),I(t.isEditInProgress&&t.dateIndex===0?13:-1),a(2),I(t.isEditInProgress&&t.dateIndex===0?15:-1),a(),I(t.isEditInProgress?-1:16),a(2),I(t.isEditInProgress?-1:18),a(),I(t.isEditInProgress&&t.dateIndex===1?19:-1),a(2),I(t.isEditInProgress&&t.dateIndex===1?21:-1),a(),I(t.isEditInProgress&&t.dateIndex===1?22:-1),a(),I(t.isEditInProgress?-1:23)}}var Gx=(()=>{class e{constructor(){this.systemService=T(ii),this.settingsService=T(Ot),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.alertService=T(Ur),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.businessDate=new Date,this.cobDate=new Date,this.dateIndex=0,this.isBusinessDateEnabled=!1,this.isEditInProgress=!1}ngOnInit(){this.alert$=this.alertService.alertEvent.subscribe(t=>{t.type===Ot.businessDateType+" Set Config"&&(this.isBusinessDateEnabled=t.message==="enabled",this.isBusinessDateEnabled&&(this.setBusinessDates(),this.createBusinessDateForm()))}),this.userDateFormat=this.settingsService.dateFormat,this.getConfigurations(),this.createBusinessDateForm()}getConfigurations(){this.systemService.getConfigurationByName(Ot.businessDateConfigName).subscribe(t=>{this.isBusinessDateEnabled=t.enabled,this.isBusinessDateEnabled&&this.setBusinessDates()})}setBusinessDates(){this.systemService.getBusinessDates().subscribe(t=>{t.forEach(n=>{n.type===Ot.businessDateType?(this.businessDate=new Date(n.date),this.businessDateForm.patchValue({businessDate:this.businessDate})):(this.cobDate=new Date(n.date),this.businessDateForm.patchValue({cobDate:this.cobDate}))})})}createBusinessDateForm(){this.businessDateForm=this.formBuilder.group({businessDate:[new Date,ce.required],cobDate:[new Date,ce.required]})}editInProgressToggle(t){this.dateIndex=t,this.isEditInProgress=!this.isEditInProgress}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=this.businessDateForm.value.businessDate,s=Ot.businessDateType;this.dateIndex===1&&(s=Ot.cobDateType);let d={date:this.dateUtils.formatDate(i,n),type:s,dateFormat:n,locale:t};this.systemService.updateBusinessDate(d).subscribe(u=>{this.getConfigurations(),this.editInProgressToggle(this.dateIndex)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-business-date-tab"]],decls:4,vars:2,consts:[["businessDatePicker",""],["cobDatePicker",""],[1,"container","space"],[1,"mat-elevation-z8"],[3,"formGroup"],[1,"flex-100","layout-row","layout-lt-md-column","space"],[1,"flex-50"],[1,"date-type","flex-40"],[1,"date-value","flex-60","m-l-30"],[1,"flex-100","layout-row","layout-lt-md-column"],[1,"flex-50","table-row"],[1,"options-wrapper","gap-2percent","flex-22"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"matTooltip"],[1,"options-wrapper","flex-22","gap-4percent"],["mat-button",""],[1,"date-value","flex-60","m-l-40"],[3,"click"],["matInput","","formControlName","businessDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","edit","size","lg"],[1,"date-type"],[1,"date-value","flex-60","m-l-80"],["mat-stroked-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-stroked-button","","color","primary",3,"click","disabled"],["mat-button","",3,"click"]],template:function(n,i){n&1&&(l(0,"div",2)(1,"div",3),E(2,hWe,6,4,"div"),E(3,EWe,24,14,"div"),r()()),n&2&&(a(2),I(i.isBusinessDateEnabled?-1:2),a(),I(i.isBusinessDateEnabled?3:-1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Ue,Je,Fe,Be,ut,ai,ze,mi,di,pi,xe,Ke,wi,si,ke,Pi,he],styles:[".space[_ngcontent-%COMP%]{padding-bottom:40px}.date-type[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:400;min-width:40%}.date-value[_ngcontent-%COMP%]{display:inline;font-size:1rem;min-width:50%}.table-row[_ngcontent-%COMP%]{vertical-align:middle}"]})}}return e})();function IWe(e,o){e&1&&(l(0,"mat-tab",3),p(1,"translate"),b(2,"mifosx-business-date-tab"),r()),e&2&&g("label",Le(m(1,2,"labels.inputs.Business Date")))}var jx=(()=>{class e{constructor(){this.alertService=T(Ur),this.systemService=T(ii),this.isBusinessDateEnabled=!1}ngOnInit(){this.alert$=this.alertService.alertEvent.subscribe(t=>{t.type===Ot.businessDateType+" Set Config"&&(this.isBusinessDateEnabled=t.message==="enabled")}),this.getConfigurations()}getConfigurations(){this.systemService.getConfigurationByName(Ot.businessDateConfigName).subscribe(t=>{this.isBusinessDateEnabled=t.enabled})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-configurations"]],decls:8,vars:5,consts:[["tabGroup",""],[1,"configurations-card"],["mat-align-tabs","center"],[3,"label"]],template:function(n,i){n&1&&(l(0,"mat-card",1)(1,"mat-card-content")(2,"mat-tab-group",2,0)(4,"mat-tab",3),p(5,"translate"),b(6,"mifosx-global-configurations-tab"),r(),E(7,IWe,3,4,"mat-tab",3),r()()()),n&2&&(a(4),g("label",Le(m(5,3,"labels.inputs.Global Configurations"))),a(3),I(i.isBusinessDateEnabled?7:-1))},dependencies:[ue,fe,Ue,Je,Nr,Qr,Hx,Gx,he],styles:[".configurations-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0 0 50px;min-height:500px}.configurations-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.configurations-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%]{margin-top:1.4rem;color:#fff;width:90%}.configurations-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.configurations-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.configurations-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var OWe=()=>["../.."],$x=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.configuration=t.configuration})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createConfigurationForm()}createConfigurationForm(){this.configurationForm=this.formBuilder.group({name:[{value:this.configuration.name,disabled:!0},ce.required],description:[{value:this.configuration.description,disabled:!0}],value:[this.configuration.value],stringValue:[this.configuration.stringValue],dateValue:[this.configuration.dateValue]})}submit(){if(this.configurationForm.value.value!=null||this.configurationForm.value.stringValue!=null||this.configurationForm.value.dateValue!=null){let t=at({},this.configurationForm.value);this.configurationForm.value.stringValue||delete t.stringValue,this.configurationForm.value.dateValue!=null?(t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat):delete t.dateValue,this.systemService.updateConfiguration(this.configuration.id,t).subscribe(n=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-configuration"]],decls:40,vars:29,consts:[["configurationDatePicker",""],[1,"container","space"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["matInput","","type","number","formControlName","value"],["matInput","","formControlName","stringValue"],[1,"flex-48",3,"click"],["matInput","","formControlName","dateValue",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),r(),l(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"textarea",5),r(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",6),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",7),r(),l(25,"mat-form-field",8),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",9)(30,"mat-datepicker-toggle",10)(31,"mat-datepicker",null,0),r()()(),l(33,"mat-card-actions",11)(34,"button",12),c(35),p(36,"translate"),r(),l(37,"button",13),c(38),p(39,"translate"),r()()()()()}if(n&2){let s=ve(32);a(2),g("formGroup",i.configurationForm),a(5),h(m(8,14,"labels.inputs.Configuration Name")),a(5),h(m(13,16,"labels.inputs.Description")),a(5),h(m(18,18,"labels.inputs.Number Value")),a(5),h(m(23,20,"labels.inputs.String Value")),a(5),h(m(28,22,"labels.inputs.Date Value")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(4),g("routerLink",oe(28,OWe)),a(),v(" ",m(36,24,"labels.buttons.Cancel")," "),a(2),g("disabled",i.configurationForm.pristine||!i.configurationForm.valid),a(),v(" ",m(39,26,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.space[_ngcontent-%COMP%]{padding-bottom:40px}"]})}}return e})();var K5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getConfiguration(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Wp=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getConfigurations()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var X5=Ds(vd());var AWe=["buttonEdit"],FWe=["templateButtonEdit"],kWe=["mcTable"],BWe=["templateMcTable"];function RWe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return i.editTask(),q(i.backupCheckValues())}),b(1,"fa-icon",18),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function NWe(e,o){if(e&1){let t=Y();l(0,"mat-list-item",19),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showPermissions(i))}),l(1,"span",20),c(2),r()()}if(e&2){let t=o.$implicit,n=w();g("ngClass",n.selectedItem===t?"active":"inactive"),a(2),v(" ",n.formatName(t)," ")}}function LWe(e,o){if(e&1&&(l(0,"div",15)(1,"div",21)(2,"mat-checkbox",22),c(3),r()()()),e&2){let t=o.$implicit,n=o.$index,i=w();a(),g("formGroupName",n),a(),g("id",Le(t.code)),a(),v(" ",i.permissionName(t.code)," ")}}function VWe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w(2);return q(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Submit")," "))}function qWe(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"mat-card-actions")(2,"button",23),R("click",function(){V(t);let i=w();return i.cancel(),q(i.restoreCheckboxes())}),c(3),p(4,"translate"),r(),F(5,VWe,3,3,"button",6),r()()}e&2&&(a(3),v(" ",m(4,2,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PERMISSION"))}function zWe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",24),c(4),p(5,"translate"),r(),l(6,"div",25)(7,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",17),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(23);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Edit")),a(3),h(m(5,7,"labels.text.To add or remove a task from the Maker-Checker list")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function HWe(e,o){if(e&1){let t=Y();l(0,"h4",24),c(1),p(2,"translate"),l(3,"a",27),c(4),p(5,"translate"),r()(),l(6,"div",25)(7,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",17),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(21);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of all maker checker tasks"),": "),a(3),h(m(5,7,"labels.inputs.Configure Maker-Checker Tasks")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Ux=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.formBuilder=T(nt),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.permissionsData=[],this.groupings=[],this.currentGrouping="",this.tempPermissionUIData={},this.permissions={permissions:[]},this.formData={},this.isDisabled=!0,this.selectedItem="",this.previousGrouping="",this.checkboxesChanged=!1,this.permissionName=function(t){return t=t||"",t=t.replace(/_/g," "),this.previousGrouping==="report"&&(t=t.replace(/READ/g,"View")),t},this.formatName=function(t){if(t=t||"",t.indexOf("portfolio_")>-1&&(t=t.replace("portfolio_","")),t.indexOf("transaction_")>-1){let n=t.split("_");t=n[1]+" "+n[0].charAt(0).toUpperCase()+n[0].slice(1)+"s"}return t=t.charAt(0).toUpperCase()+t.slice(1),t},this.route.data.subscribe(t=>{this.permissionsData=t.permissions})}ngOnInit(){this.createForm(),this.setMakerCheckerTask(),this.selectedItem="portfolio",this.showPermissions("portfolio")}createForm(){this.formGroup=this.formBuilder.group({roster:this.formBuilder.array(this.permissionsData.map(t=>this.createMemberGroup(t)))})}createMemberGroup(t){return this.formBuilder.group(qt(at({},t),{code:[t.code,ce.required],selected:[{value:t.selected,disabled:!0},ce.required]}))}setMakerCheckerTask(){this.tempPermissionUIData={};for(let t of this.permissionsData){t.grouping!==this.currentGrouping&&(this.currentGrouping=t.grouping||"",this.groupings.push(this.currentGrouping),this.tempPermissionUIData[this.currentGrouping]={permissions:[]});let n={code:t.code,id:t.id,selected:t.selected};this.tempPermissionUIData[this.currentGrouping].permissions.push(n)}}showPermissions(t){let n=this.tempPermissionUIData[t];n&&(this.permissions=n,this.selectedItem=t,this.previousGrouping=t)}backupCheckValues(){this.backupform=X5.cloneDeep(this.formGroup)}restoreCheckboxes(){this.formGroup=X5.cloneDeep(this.backupform)}isTaskEnable(t){return t}editTask(){this.isDisabled=!1,this.formGroup.controls.roster.enable()}cancel(){this.isDisabled=!0,this.formGroup.controls.roster.disable()}submit(){let t=this.formGroup.get("roster")?.value,n={permissions:{}};Array.isArray(t)&&t.forEach(i=>{i.code&&typeof i.selected=="boolean"&&(n.permissions[i.code]=i.selected)}),this.formGroup.get("roster")?.disable(),this.checkboxesChanged=!1,this.isDisabled=!0,this.systemService.updateMakerCheckerPermission(n).subscribe(i=>{})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showMakerCheckerTablePage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonEdit,this.buttonEdit.nativeElement,"bottom",!0)}),this.configurationWizardService.showMakerCheckerTableList===!0&&setTimeout(()=>{this.showPopover(this.templateMcTable,this.mcTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showMakerCheckerTablePage=!1,this.configurationWizardService.showMakerCheckerTableList=!1,this.configurationWizardService.showConfigurations=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showMakerCheckerTablePage=!1,this.configurationWizardService.showMakerCheckerTableList=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-configure-maker-checker-tasks"]],viewQuery:function(n,i){if(n&1&&(Ee(AWe,5),Ee(FWe,5),Ee(kWe,5),Ee(BWe,5)),n&2){let s;Te(s=Me())&&(i.buttonEdit=s.first),Te(s=Me())&&(i.templateButtonEdit=s.first),Te(s=Me())&&(i.mcTable=s.first),Te(s=Me())&&(i.templateMcTable=s.first)}},decls:24,vars:4,consts:[["buttonEdit",""],["mcTable",""],["templateButtonEdit",""],["templateMcTable",""],[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],[1,"in-block"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"layout-column","flex-30"],[3,"ngClass"],[3,"vertical"],[1,"list-permission","layout-column","flex-70"],[3,"submit","formGroup"],["formArrayName","roster"],[1,"display-permissions"],[1,"layout-row","layout-align-center","gap-5px","layout-xs-column"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],[3,"click","ngClass"],[1,"grouping-name"],[3,"formGroupName"],["name","cp","formControlName","selected",3,"id"],["type","button","mat-raised-button","",3,"click"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895359/Configure+Maker-Checker+Tasks","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0),F(3,RWe,4,3,"button",6),r()(),l(4,"div",7)(5,"mat-card"),X(6),l(7,"div",8)(8,"div",9,1)(10,"mat-list"),Se(11,NWe,3,2,"mat-list-item",10,Pe),r()(),b(13,"mat-divider",11),l(14,"div",12)(15,"form",13),R("submit",function(){return V(s),q(i.submit())}),l(16,"div",14),Se(17,LWe,4,4,"div",15,Pe),r()()()(),Z(),E(19,qWe,6,4,"div",16),r()(),F(20,zWe,16,15,"ng-template",null,2,ti)(22,HWe,16,15,"ng-template",null,3,ti)}n&2&&(a(3),g("mifosxHasPermission","UPDATE_PERMISSION"),a(8),we(i.groupings),a(2),g("vertical",!0),a(2),g("formGroup",i.formGroup),a(2),we(i.permissions.permissions),a(2),I(i.isDisabled?-1:19))},dependencies:[ue,co,fe,tt,$e,Xe,Ze,et,la,La,Ue,Et,xe,fi,Ke,ke,vl,Vo,Ri,he],styles:[".display-permissions[_ngcontent-%COMP%]{padding-top:15px}span[_ngcontent-%COMP%]{font-size:1rem}mat-list-item[_ngcontent-%COMP%]{cursor:pointer}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{cursor:pointer}.active[_ngcontent-%COMP%]{background-color:#f2f2f2}.grouping-name[_ngcontent-%COMP%]{padding:0 10px}.list-permission[_ngcontent-%COMP%]{padding-left:20px}.permission-selected[_ngcontent-%COMP%]{margin-top:10px;height:40px}.inactive[_ngcontent-%COMP%]{transition:all .2s ease-in-out}.inactive[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]})}}return e})();var Z5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getMakerCheckerPermissions()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var eD=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getEntityMappings()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Wx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("S3")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Qx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("SMTP")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Yx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("NOTIFICATION")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Jx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("SMS")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Kx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("datatableName");return this.systemService.getDataTable(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var tD=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getDataTables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var GWe=()=>[10,25,50,100];function jWe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return q(i.applyChanges())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.existAnyUpdate),a(),v(" ",m(2,2,"labels.buttons.Apply Changes")," ")}}function $We(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Event Type")))}function UWe(e,o){if(e&1&&(l(0,"td",19),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.type,"text"))}}function WWe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function QWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enabled")))}function YWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function JWe(e,o){if(e&1){let t=Y();l(0,"td",19)(1,"mat-slide-toggle",20),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.enabled,i)||(s.enabled=i),q(i)}),R("click",function(){let i=V(t).$implicit,s=w();return q(s.toggleStatus(i))}),l(2,"div",21),E(3,QWe,3,3,"span"),E(4,YWe,3,3,"span"),r()()()}if(e&2){let t=o.$implicit;a(),g("name",Le(t.type)),kc("ngModel",t.enabled),a(),g("className",t.enabled?"enabled":"disabled"),a(),I(t.enabled?3:-1),a(),I(t.enabled?-1:4)}}function KWe(e,o){e&1&&b(0,"tr",22)}function XWe(e,o){e&1&&b(0,"tr",23)}var Xx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.externalEventConfigurations={},this.existAnyUpdate=!1,this.displayedColumns=["eventType","status"],this.route.data.subscribe(t=>{this.eventsData=t.events.externalEventConfiguration})}ngOnInit(){this.setEventDatasource()}setEventDatasource(){this.dataSource=new Wt(this.eventsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}toggleStatus(t){this.externalEventConfigurations[t.type]=t.enabled,this.existAnyUpdate=!0}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}applyChanges(){let t={externalEventConfigurations:this.externalEventConfigurations};this.systemService.putExternalEventConfiguration(t).subscribe(()=>{this.existAnyUpdate=!1})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-external-events"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:22,vars:9,consts:[["filter",""],["eventsTable",""],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","eventType"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngModelChange","click","ngModel","name"],[3,"className"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"div",3,0)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",5),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()(),l(8,"div",6),F(9,jWe,3,4,"button",7),r()(),l(10,"div",8,1)(12,"table",9),X(13,10),F(14,$We,3,3,"th",11)(15,UWe,3,4,"td",12),Z(),X(16,13),F(17,WWe,3,3,"th",11)(18,JWe,5,6,"td",12),Z(),F(19,KWe,1,0,"tr",14)(20,XWe,1,0,"tr",15),r(),b(21,"mat-paginator",16),r()()}n&2&&(a(5),h(m(6,6,"labels.inputs.Filter")),a(4),g("mifosxHasPermission","UPDATE_EXTERNAL_EVENT_CONFIGURATION"),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,GWe)))},dependencies:[ue,fe,$e,Fe,Be,ze,xe,Ke,_t,It,xt,vt,bt,ri,Ct,yt,Ip,ec,Sp,St,Pt,wt,Tt,kt,he,ki],styles:[".container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.table-container[_ngcontent-%COMP%]{padding-bottom:10px}"]})}}return e})();var MN=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getExternalEventConfiguration()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Zx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getHooksTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var iD=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getHooks()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var eb=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getHook(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();function ZWe(e,o){e&1&&(l(0,"th",10),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Parameter")," ",m(3,4,"labels.inputs.Name")," "))}function eQe(e,o){if(e&1){let t=Y();l(0,"td",11)(1,"mat-form-field")(2,"input",12),p(3,"translate"),p(4,"translate"),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.parameterName,i)||(s.parameterName=i),q(i)}),r()()()}if(e&2){let t=o.$implicit;a(2),g("placeholder",m(3,2,"labels.inputs.Parameter")+" "+m(4,4,"labels.inputs.Name")),kc("ngModel",t.parameterName)}}function tQe(e,o){e&1&&(l(0,"th",10),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Parameter")," ",m(3,4,"labels.inputs.Value")," "))}function iQe(e,o){if(e&1){let t=Y();l(0,"td",11)(1,"mat-form-field")(2,"input",12),p(3,"translate"),p(4,"translate"),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.parameterValue,i)||(s.parameterValue=i),q(i)}),r()()()}if(e&2){let t=o.$implicit;a(2),g("placeholder",m(3,2,"labels.inputs.Parameter")+" "+m(4,4,"labels.inputs.Value")),kc("ngModel",t.parameterValue)}}function nQe(e,o){e&1&&b(0,"th",10)}function oQe(e,o){if(e&1){let t=Y();l(0,"td",11)(1,"button",13),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.deleteParameter(i))}),b(3,"fa-icon",14),r()()}e&2&&(a(),g("matTooltip",m(2,1,"labels.buttons.Delete")))}function aQe(e,o){e&1&&b(0,"tr",15)}function rQe(e,o){e&1&&b(0,"tr",16)}var a1=(()=>{class e{constructor(){this.retrieveJob=new bi,this.columnsToDisplay=["parameterName","parameterValue","actions"]}ngOnInit(){this.updatedJobParameters=this.jobParameters,this.updatedJobParameters.push({parameterName:"",parameterValue:""})}addParameter(){this.updatedJobParameters=[...this.updatedJobParameters,{parameterName:"",parameterValue:""}]}deleteParameter(t){let n=0,i=[];for(;n({show:0}),sQe=e=>({green:e});function cQe(e,o){if(e&1){let t=Y();l(0,"div")(1,"mifosx-custom-parameters-table",6),R("retrieveData",function(i){V(t);let s=w();return q(s.runSelectedJobs(i))}),r()()}if(e&2){let t=o.$implicit;a(),g("displayName",t.displayName)("jobId",t.jobId)("jobParameters",t.jobParameters)}}function pQe(e,o){if(e&1&&(l(0,"mat-list-item",2),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,sQe,t.status)),a(),v(" ",t.message," ")}}var tb=(()=>{class e{constructor(){this.systemService=T(ii),this.data=T(Po),this.selectedJobs=[],this.messages=[]}ngOnInit(){this.selectedJobs=this.data.selectedJobs.selected.map(t=>qt(at({},t),{jobParameters:[]}))}runSelectedJobs(){this.messages=[];let t=[];this.tableComponents.forEach(n=>{t.push(n.getTableData())}),t.forEach(n=>{this.systemService.runSelectedJobWithParameters(n.jobId,{jobParameters:n.jobParameters}).then(i=>{this.messages.push({message:`${n.displayName}: ${i.statusText} (${i.status})`,status:i.ok})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-custom-parameters-popover"]],viewQuery:function(n,i){if(n&1&&Ee(a1,5),n&2){let s;Te(s=Me())&&(i.tableComponents=s)}},decls:18,vars:11,consts:[["mat-dialog-title",""],[1,"jobs-container"],[1,"message",3,"ngClass"],["mat-raised-button","","color","primary",3,"click"],["icon","play",1,"m-r-10"],["mat-raised-button","","color","warn",3,"mat-dialog-close"],[3,"retrieveData","displayName","jobId","jobParameters"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"div",1),Se(5,cQe,2,3,"div",null,Pe),r()(),l(7,"mat-list"),Se(8,pQe,2,4,"mat-list-item",2,Pe),r(),l(10,"mat-dialog-actions")(11,"button",3),R("click",function(){return i.runSelectedJobs()}),b(12,"fa-icon",4),c(13),p(14,"translate"),r(),l(15,"button",5),c(16),p(17,"translate"),r()()),n&2&&(a(),h(m(2,4,"labels.buttons.Edit Job Custom Parameters")),a(4),we(i.selectedJobs),a(3),we(i.messages),a(5),v(" ",m(14,6,"labels.buttons.Run Selected Jobs")," "),a(2),g("mat-dialog-close",oe(10,lQe)),a(),v(" ",m(17,8,"labels.buttons.Close Custom Parameters")," "))},dependencies:[ue,co,fe,xe,Wn,ho,a1,vl,Vo,Nn,ke,Un,he],styles:[".message[_ngcontent-%COMP%]{height:auto;font-weight:500;color:#f44366}.message.green[_ngcontent-%COMP%]{color:#32cd32}"]})}}return e})();function mQe(e,o){if(e&1){let t=Y();l(0,"button",11),R("click",function(){V(t);let i=w();return q(i.show=!i.show)}),c(1),r()}if(e&2){let t=w();a(),v(" ",t.buttonLabel()," ")}}var ib=(()=>{class e{constructor(){this.data=T(Po),this.translateService=T(yi),this.show=!1}ngOnInit(){this.job=this.data.job}buttonLabel(){let t=this.show?this.translateService.instant("labels.buttons.Show less"):this.translateService.instant("labels.buttons.Show more");return this.translateService.instant("labels.buttons."+t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-error-log-popover"]],decls:32,vars:25,consts:[["content",""],["mat-dialog-title",""],[1,"m-r-10"],[1,"m-b-5"],[1,"m-b-20"],[1,"header"],["colspan","4",1,"message"],[1,"note-field"],["mat-flat-button","",1,"show-button"],["align","center"],["mat-raised-button","","mat-dialog-close",""],["mat-flat-button","",1,"show-button",3,"click"]],template:function(n,i){if(n&1&&(l(0,"h2",1)(1,"span",2),c(2),p(3,"translate"),r(),c(4),r(),l(5,"mat-dialog-content")(6,"table",3)(7,"tbody")(8,"tr",4)(9,"td",5),c(10),p(11,"translate"),r(),l(12,"td"),c(13),p(14,"datetimeFormat"),r(),l(15,"td",5),c(16),p(17,"translate"),r(),l(18,"td"),c(19),p(20,"datetimeFormat"),r()(),l(21,"tr")(22,"td",6)(23,"div",7,0)(25,"span"),c(26),r()(),E(27,mQe,2,1,"button",8),r()()()()(),l(28,"mat-dialog-actions",9)(29,"button",10),c(30),p(31,"translate"),r()()),n&2){let s=ve(24);a(2),v("",m(3,13,"labels.inputs.Job Name"),":"),a(2),v("",i.job.displayName,` -`),a(6),h(m(11,15,"labels.inputs.Start Time")),a(3),h(m(14,17,i.job.lastRunHistory.jobRunStartTime)),a(3),h(m(17,19,"labels.inputs.End Time")),a(3),h(m(20,21,i.job.lastRunHistory.jobRunEndTime)),a(4),_l("show",i.show)("note-text",s.scrollHeight>18),a(3),h(i.job.lastRunHistory.jobRunErrorLog),a(),I(s.scrollHeight>18?27:-1),a(3),h(m(31,23,"labels.buttons.Close"))}},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he,Yr],styles:['.message[_ngcontent-%COMP%]{height:auto;font-weight:500}tr[_ngcontent-%COMP%]{padding-bottom:10px}span[_ngcontent-%COMP%]:not(.note){font-size:.9rem;line-height:14px}.note-text[_ngcontent-%COMP%]{height:7.95rem;overflow:hidden;display:inline-block;position:relative;text-align:left}.note-field[_ngcontent-%COMP%]:not(.show):after{content:"...";padding-left:.5rem;position:absolute;right:0;bottom:0}.show[_ngcontent-%COMP%]{overflow:visible;text-overflow:none;height:auto}button[_ngcontent-%COMP%]{background:transparent;font-size:small;border:none;padding:0;cursor:pointer}button[_ngcontent-%COMP%]:hover{text-decoration:none}']})}}return e})();function dQe(e,o){e&1&&(l(0,"th",7),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Display Name")))}function uQe(e,o){if(e&1&&(l(0,"td",8),c(1),r()),e&2){let t=o.$implicit;a(),h(t.displayName)}}function fQe(e,o){e&1&&b(0,"th",7)}function hQe(e,o){if(e&1){let t=Y();l(0,"td",8)(1,"button",9),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.removeJobFromSelection(i))}),b(3,"fa-icon",10),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"labels.buttons.Delete"))))}function gQe(e,o){e&1&&b(0,"tr",11)}function _Qe(e,o){e&1&&b(0,"tr",12)}var r1=(()=>{class e{constructor(){this.selectedJobs=[],this.confirmedJobs=new bi,this.columnsToDisplay=["displayName","actions"]}removeJobFromSelection(t){let n=0,i=[];for(;n({show:0});function vQe(e,o){if(e&1&&(l(0,"mat-list-item",3),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.message," ")}}var nb=(()=>{class e{constructor(){this.systemService=T(ii),this.data=T(Po),this.confirmedJobs=new bi,this.selectedJobs=[],this.messages=[]}ngOnInit(){this.selectedJobs=this.data.selectedJobs.selected.sort((t,n)=>t.jobId-n.jobId)}runSelectedJobs(){this.messages=[];let t=[];this.tableComponents.forEach(n=>{t=n.getTableData()}),t.forEach(n=>{this.systemService.runSelectedJob(n.jobId.toString()).then(i=>{this.messages.push({message:`${n.displayName}: ${i.statusText} (${i.status})`,status:i.ok})})}),this.confirmedJobs.emit(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-run-selected-jobs-popover"]],viewQuery:function(n,i){if(n&1&&Ee(r1,5),n&2){let s;Te(s=Me())&&(i.tableComponents=s)}},outputs:{confirmedJobs:"confirmedJobs"},decls:17,vars:12,consts:[["mat-dialog-title",""],[1,"jobs-container"],[3,"confirmedJobs","selectedJobs"],["ngClass]","{'green' : message.status}",1,"message"],["mat-raised-button","","color","primary",3,"click"],["icon","play",1,"m-r-10"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"div",1)(5,"mifosx-run-selected-jobs-table",2),R("confirmedJobs",function(){return i.runSelectedJobs()}),r()()(),l(6,"mat-list"),Se(7,vQe,2,1,"mat-list-item",3,Pe),r(),l(9,"mat-dialog-actions")(10,"button",4),R("click",function(){return i.runSelectedJobs()}),b(11,"fa-icon",5),c(12),p(13,"translate"),r(),l(14,"button",6),c(15),p(16,"translate"),r()()),n&2&&(a(),v("",m(2,5,"labels.heading.Selected Jobs"),":"),a(4),g("selectedJobs",i.selectedJobs),a(2),we(i.messages),a(5),v(" ",m(13,7,"labels.buttons.Confirm")," "),a(2),g("mat-dialog-close",oe(11,CQe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "))},dependencies:[ue,fe,xe,Wn,ho,r1,vl,Vo,Nn,ke,Un,he],styles:[".message[_ngcontent-%COMP%]{height:auto;font-weight:500;color:#f44366}.message.green[_ngcontent-%COMP%]{color:#32cd32}"]})}}return e})();var xQe=["schedulerStatus"],bQe=["templateSchedulerStatus"],yQe=["jobsTable"],SQe=["templateJobsTable"],wQe=()=>[50,100],PQe=e=>[e];function TQe(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.suspendScheduler())}),b(1,"fa-icon",40),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Suspend")," "))}function MQe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w();return q(i.activateScheduler())}),b(1,"fa-icon",40),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Activate")," "))}function DQe(e,o){if(e&1){let t=Y();l(0,"th",42)(1,"mat-checkbox",43),R("change",function(i){V(t);let s=w();return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w();a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function EQe(e,o){if(e&1){let t=Y();l(0,"mat-checkbox",46),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){V(t);let s=w().$implicit,d=w();return q(i?d.selection.toggle(s):null)}),r()}if(e&2){let t=w().$implicit,n=w();g("checked",n.selection.isSelected(t))}}function IQe(e,o){if(e&1&&(l(0,"td",44),E(1,EQe,1,1,"mat-checkbox",45),r()),e&2){let t=o.$implicit;a(),I(t.currentlyRunning?-1:1)}}function OQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function AQe(e,o){if(e&1&&(l(0,"td",48),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,PQe,t.jobId)),a(),h(t.displayName)}}function FQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Active")))}function kQe(e,o){if(e&1&&(l(0,"td",49)(1,"div",50),b(2,"fa-icon",51),p(3,"yesNo"),r()()),e&2){let t=o.$implicit;a(),g("className",t.active===!0?"currently-running":"not-currently-running"),a(),g("matTooltip",Le(m(3,3,t.active===!0)))}}function BQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Previous Run")))}function RQe(e,o){e&1&&(b(0,"fa-icon",52),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Successful"))}function NQe(e,o){e&1&&(b(0,"fa-icon",53),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Failed"))}function LQe(e,o){if(e&1&&(l(0,"span",54),c(1),p(2,"datetimeFormat"),r()),e&2){let t=w(2).$implicit;a(),v(" ",m(2,1,t.lastRunHistory.jobRunStartTime))}}function VQe(e,o){if(e&1&&(l(0,"div"),E(1,RQe,2,3,"fa-icon",52),E(2,NQe,2,3,"fa-icon",53),E(3,LQe,3,3,"span",54),r()),e&2){let t=w().$implicit;a(),I(t.lastRunHistory.status==="success"?1:-1),a(),I(t.lastRunHistory.status!=="success"?2:-1),a(),I(t.lastRunHistory?3:-1)}}function qQe(e,o){if(e&1&&(l(0,"td",44),E(1,VQe,4,3,"div"),r()),e&2){let t=o.$implicit;a(),I(t.lastRunHistory?1:-1)}}function zQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Next Run")))}function HQe(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.nextRunTime))}}function GQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currently Running")))}function jQe(e,o){if(e&1&&(l(0,"td",49)(1,"div",50),b(2,"fa-icon",51),p(3,"yesNo"),r()()),e&2){let t=o.$implicit;a(),g("className",t.currentlyRunning===!0?"currently-running":"not-currently-running"),a(),g("matTooltip",Le(m(3,3,t.currentlyRunning===!0)))}}function $Qe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error Log")))}function UQe(e,o){if(e&1){let t=Y();l(0,"button",56),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.showErrorLog(i))}),b(2,"fa-icon",57),r()}e&2&&g("matTooltip",Le(m(1,2,"labels.inputs.Error Log")))}function WQe(e,o){if(e&1&&(l(0,"td",49),E(1,UQe,3,4,"button",55),r()),e&2){let t=o.$implicit,n=w();a(),I(n.jobWithError(t)?1:-1)}}function QQe(e,o){e&1&&b(0,"tr",58)}function YQe(e,o){if(e&1&&b(0,"tr",59),e&2){let t=o.$implicit,n=w();g("ngClass",Le(n.rowColor(t)))}}function JQe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",60)(4,"button",61),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(72);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Scheduler status"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function KQe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",60)(4,"button",61),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(70);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(34),u=ve(74);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Search bar to filter jobs"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function XQe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),l(3,"a",62),c(4),p(5,"translate"),r()(),l(6,"div",60)(7,"button",61),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(72);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of all scheduled batch jobs")," "),a(3),h(m(5,7,"labels.heading.Schedular Jobs")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var ob=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["select","displayName","active","previousRunTime","currentlyRunning","nextRunTime","errorLog"],this.selection=new gr(!0,[]),this.schedulerActive=!1,this.jobsCounter=0,this.route.data.subscribe(t=>{t.jobsScheduler&&(this.jobData=t.jobsScheduler[0],this.schedulerData=t.jobsScheduler[1])})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}isAllSelected(){return this.selection.selected.length===this.jobsCounter}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}ngOnInit(){this.setJobs(),this.getScheduler()}setJobs(){this.systemService.getJobs().subscribe(t=>{let n=t.sort((i,s)=>s.active-i.active||this.sortByName(i,s));this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.jobsCounter=n.length,this.selection.clear(),this.dataSource.sortingDataAccessor=(i,s)=>{switch(s){case"previousRunStatus":return i.lastRunHistory.status;case"errorLog":return i.lastRunHistory.status;case"previousRunTime":return new Date(i.lastRunHistory.jobRunStartTime);case"nextRunTime":return new Date(i.nextRunTime);default:return i[s]}}})}sortByName(t,n){return t.displayNamen.displayName?1:0}getScheduler(){this.systemService.getScheduler().subscribe(t=>{this.schedulerData=t,this.schedulerActive=this.schedulerData.active})}suspendScheduler(){this.systemService.runCommandOnScheduler("stop").subscribe(()=>{this.getScheduler()})}activateScheduler(){this.systemService.runCommandOnScheduler("start").subscribe(()=>{this.getScheduler()})}isAnyJobSelected(){return this.selection.selected.length>0}runSelectedJobs(){this.selection.selected.forEach(t=>{this.systemService.runSelectedJob(t.jobId)})}refresh(){this.setJobs()}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSchedulerJobsPage===!0&&setTimeout(()=>{this.showPopover(this.templateSchedulerStatus,this.schedulerStatus.nativeElement,"bottom",!0)}),this.configurationWizardService.showSchedulerJobsList===!0&&setTimeout(()=>{this.showPopover(this.templateJobsTable,this.jobsTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.openNextStepDialog()}previousStep(){this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.configurationWizardService.showSchedulerJobs=!0,this.router.navigate(["/system"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Accounting",previousStepName:"System",stepPercentage:60}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.configurationWizardService.showChartofAccounts=!0,this.router.navigate(["/accounting"])):(this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.router.navigate(["/home"]))})}openCustomParametersDialog(){this.dialog.open(tb,{data:{selectedJobs:this.selection}})}showErrorLog(t){t.lastRunHistory&&this.dialog.open(ib,{data:{job:t}})}openRunSelectedJobsDialog(){let t=this.dialog.open(nb,{data:{selectedJobs:this.selection}});t.componentInstance.confirmedJobs.subscribe(n=>{if(n){let i=this.selection.selected,s=n.map(d=>d.jobId);i.forEach(d=>{s.includes(d.jobId)||this.selection.deselect(d)}),t.close()}})}jobWithError(t){return!(t.lastRunHistory&&t.lastRunHistory.status==="success")}rowColor(t){return this.jobWithError(t)?"job-error":""}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-scheduler-jobs"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(xQe,7),Ee(bQe,7),Ee(yQe,7),Ee(SQe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.schedulerStatus=s.first),Te(s=Me())&&(i.templateSchedulerStatus=s.first),Te(s=Me())&&(i.jobsTable=s.first),Te(s=Me())&&(i.templateJobsTable=s.first)}},decls:75,vars:36,consts:[["schedulerStatus",""],["filter",""],["jobsTable",""],["templateSchedulerStatus",""],["templateFilter",""],["templateJobsTable",""],[1,"container","m-b-20","space-top","layout-row","gap-20px"],[1,"no-m"],[1,"m-l-20","m-r-20"],["mat-raised-button","",1,"suspend"],["mat-raised-button","",1,"activate"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"space-top","layout-row","gap-10px"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","play",1,"m-r-10"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","sync",1,"m-r-10"],[1,"mat-elevation-z8","space-top"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"routerLink",4,"matCellDef"],["matColumnDef","active"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","previousRunTime"],["matColumnDef","nextRunTime"],["matColumnDef","currentlyRunning"],["matColumnDef","errorLog"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"ngClass",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"container","space-top","layout-row","gap-10px"],["mat-raised-button","",1,"suspend",3,"click"],["icon","times-circle",1,"m-r-10"],["mat-raised-button","",1,"activate",3,"click"],["mat-header-cell",""],[1,"m-r-10",3,"change","checked","indeterminate"],["mat-cell",""],[1,"m-r-10",3,"checked"],[1,"m-r-10",3,"click","change","checked"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"routerLink"],["mat-cell","",1,"center"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["matTooltipPosition","right","icon","check-circle","size","lg",1,"success",3,"matTooltip"],["matTooltipPosition","right","icon","times-circle","size","lg",1,"fail",3,"matTooltip"],[1,"m-l-5"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"click","matTooltip"],["icon","exclamation-circle","size","lg"],["mat-header-row",""],["mat-row","",1,"select-row",3,"ngClass"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895356/Manage+Scheduler+Jobs","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",null,0)(3,"h2",7),c(4),p(5,"translate"),l(6,"span",8),c(7),p(8,"translate"),p(9,"translate"),r()()(),E(10,TQe,4,3,"button",9),E(11,MQe,4,3,"button",10),r(),l(12,"div",11)(13,"div",12,1)(15,"mat-form-field",13)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"input",14),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(20,"div",15)(21,"button",16),R("click",function(){return V(s),q(i.openRunSelectedJobsDialog())}),b(22,"fa-icon",17),c(23),p(24,"translate"),r(),l(25,"button",16),R("click",function(){return V(s),q(i.openCustomParametersDialog())}),b(26,"fa-icon",18),c(27),p(28,"translate"),r(),l(29,"button",19),R("click",function(){return V(s),q(i.refresh())}),b(30,"fa-icon",20),c(31),p(32,"translate"),r()(),l(33,"div",21,2)(35,"table",22),X(36,23),F(37,DQe,2,2,"th",24)(38,IQe,2,1,"td",25),Z(),X(39,26),F(40,OQe,3,3,"th",27)(41,AQe,2,4,"td",28),Z(),X(42,29),F(43,FQe,3,3,"th",27)(44,kQe,4,5,"td",30),Z(),X(45,31),F(46,BQe,3,3,"th",27)(47,qQe,2,1,"td",25),Z(),X(48,32),F(49,zQe,3,3,"th",27)(50,HQe,3,3,"td",25),Z(),X(51,33),F(52,GQe,3,3,"th",27)(53,jQe,4,5,"td",30),Z(),X(54,34),F(55,$Qe,3,3,"th",27)(56,WQe,2,1,"td",30),Z(),F(57,QQe,1,0,"tr",35)(58,YQe,1,2,"tr",36),r(),b(59,"mat-paginator",37),r()(),l(60,"div",38)(61,"button",16),R("click",function(){return V(s),q(i.openRunSelectedJobsDialog())}),b(62,"fa-icon",17),c(63),p(64,"translate"),r(),l(65,"button",19),R("click",function(){return V(s),q(i.refresh())}),b(66,"fa-icon",20),c(67),p(68,"translate"),r()(),F(69,JQe,13,12,"ng-template",null,3,ti)(71,KQe,13,12,"ng-template",null,4,ti)(73,XQe,16,15,"ng-template",null,5,ti)}n&2&&(a(4),v(" ",m(5,17,"labels.heading.Scheduler Status"),":"),a(3),h(i.schedulerActive?m(8,19,"labels.inputs.Active"):m(9,21,"labels.catalogs.Inactive")),a(3),I(i.schedulerActive?10:-1),a(),I(i.schedulerActive?-1:11),a(6),h(m(18,23,"labels.inputs.Filter")),a(4),g("disabled",!i.isAnyJobSelected()),a(2),v(" ",m(24,25,"labels.buttons.Run Selected Jobs")," "),a(2),g("disabled",!i.isAnyJobSelected()),a(2),v(" ",m(28,27,"labels.buttons.Add Custom Parameters")," "),a(4),v(" ",m(32,29,"labels.buttons.Refresh")," "),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(35,wQe)),a(2),g("disabled",!i.isAnyJobSelected()),a(2),v(" ",m(64,31,"labels.buttons.Run Selected Jobs")," "),a(4),v(" ",m(68,33,"labels.buttons.Refresh")," "))},dependencies:[ue,co,fe,Oe,Fe,Be,ze,xe,fi,ke,_t,It,xt,vt,bt,Ct,yt,ri,si,wi,St,Pt,wt,Tt,kt,he,Yr,po],styles:[".container[_ngcontent-%COMP%]{min-width:84rem;width:84rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.success[_ngcontent-%COMP%]{color:#32cd32}.fail[_ngcontent-%COMP%]{color:#f44366}.currently-running[_ngcontent-%COMP%]{color:#32cd32}.not-currently-running[_ngcontent-%COMP%]{color:#f44366}.errorlog[_ngcontent-%COMP%]{color:#ffa726}.job-error[_ngcontent-%COMP%]{background-color:#f7dbb7}.suspend[_ngcontent-%COMP%]{background:#32cd32;color:#fff}.activate[_ngcontent-%COMP%]{background:#f44366;color:#fff}.space-top[_ngcontent-%COMP%]{margin-top:30px}.cdk-column-displayName[_ngcontent-%COMP%], .mat-column-displayName[_ngcontent-%COMP%]{flex:0 0 5px!important}"]})}}return e})();var ab="http://www.w3.org/1999/xhtml",nD={svg:"http://www.w3.org/2000/svg",xhtml:ab,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Qc(e){var o=e+="",t=o.indexOf(":");return t>=0&&(o=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),nD.hasOwnProperty(o)?{space:nD[o],local:e}:e}function ZQe(e){return function(){var o=this.ownerDocument,t=this.namespaceURI;return t===ab&&o.documentElement.namespaceURI===ab?o.createElement(e):o.createElementNS(t,e)}}function eYe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function rb(e){var o=Qc(e);return(o.local?eYe:ZQe)(o)}function tYe(){}function Id(e){return e==null?tYe:function(){return this.querySelector(e)}}function DN(e){typeof e!="function"&&(e=Id(e));for(var o=this._groups,t=o.length,n=new Array(t),i=0;i=U&&(U=z+1);!(re=D[U])&&++U=0;)(d=n[i])&&(s&&d.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(d,s),s=d);return this}function qN(e){e||(e=fYe);function o(x,y){return x&&y?e(x.__data__,y.__data__):!x-!y}for(var t=this._groups,n=t.length,i=new Array(n),s=0;so?1:e>=o?0:NaN}function zN(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function HN(){return Array.from(this)}function GN(){for(var e=this._groups,o=0,t=e.length;o1?this.each((o==null?bYe:typeof o=="function"?SYe:yYe)(e,o,t??"")):Qp(this.node(),e)}function Qp(e,o){return e.style.getPropertyValue(o)||cb(e).getComputedStyle(e,null).getPropertyValue(o)}function wYe(e){return function(){delete this[e]}}function PYe(e,o){return function(){this[e]=o}}function TYe(e,o){return function(){var t=o.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function YN(e,o){return arguments.length>1?this.each((o==null?wYe:typeof o=="function"?TYe:PYe)(e,o)):this.node()[e]}function JN(e){return e.trim().split(/^|\s+/)}function aD(e){return e.classList||new KN(e)}function KN(e){this._node=e,this._names=JN(e.getAttribute("class")||"")}KN.prototype={add:function(e){var o=this._names.indexOf(e);o<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var o=this._names.indexOf(e);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function XN(e,o){for(var t=aD(e),n=-1,i=o.length;++n=0&&(t=o.slice(n+1),o=o.slice(0,n)),{type:o,name:t}})}function jYe(e){return function(){var o=this.__on;if(o){for(var t=0,n=-1,i=o.length,s;t=0))throw new Error(`invalid digits: ${e}`);if(o>15)return hL;let t=10**o;return function(n){this._+=n[0];for(let i=1,s=n.length;iAd)if(!(Math.abs(x*f-_*C)>Ad)||!s)this._append`L${this._x1=o},${this._y1=t}`;else{let P=n-d,S=i-u,M=f*f+_*_,D=P*P+S*S,k=Math.sqrt(M),z=Math.sqrt(y),U=s*Math.tan((lD-Math.acos((M+y-D)/(2*k*z)))/2),J=U/z,re=U/k;Math.abs(J-1)>Ad&&this._append`L${o+J*C},${t+J*x}`,this._append`A${s},${s},0,0,${+(x*P>C*S)},${this._x1=o+re*f},${this._y1=t+re*_}`}}arc(o,t,n,i,s,d){if(o=+o,t=+t,n=+n,d=!!d,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),f=n*Math.sin(i),_=o+u,C=t+f,x=1^d,y=d?i-s:s-i;this._x1===null?this._append`M${_},${C}`:(Math.abs(this._x1-_)>Ad||Math.abs(this._y1-C)>Ad)&&this._append`L${_},${C}`,n&&(y<0&&(y=y%sD+sD),y>YYe?this._append`A${n},${n},0,1,${x},${o-u},${t-f}A${n},${n},0,1,${x},${this._x1=_},${this._y1=C}`:y>Ad&&this._append`A${n},${n},0,${+(y>=lD)},${x},${this._x1=o+n*Math.cos(s)},${this._y1=t+n*Math.sin(s)}`)}rect(o,t,n,i){this._append`M${this._x0=this._x1=+o},${this._y0=this._y1=+t}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function gL(){return new Fd}gL.prototype=Fd.prototype;function _L(e){let o=3;return e.digits=function(t){if(!arguments.length)return o;if(t==null)o=null;else{let n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);o=n}return e},()=>new Fd(o)}var L_n=Array.prototype.slice;function CL(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function vL(e){this._context=e}vL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,o){switch(e=+e,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,o):this._context.moveTo(e,o);break;case 1:this._point=2;default:this._context.lineTo(e,o);break}}};function p1(e){return new vL(e)}function xL(e){return e[0]}function bL(e){return e[1]}function cD(e,o){var t=Od(!0),n=null,i=p1,s=null,d=_L(u);e=typeof e=="function"?e:e===void 0?xL:Od(e),o=typeof o=="function"?o:o===void 0?bL:Od(o);function u(f){var _,C=(f=CL(f)).length,x,y=!1,P;for(n==null&&(s=i(P=d())),_=0;_<=C;++_)!(_0)for(var n=e[0],i=o[0],s=e[t]-n,d=o[t]-i,u=-1,f;++u<=t;)f=u/t,this._basis.point(this._beta*e[u]+(1-this._beta)*(n+f*s),this._beta*o[u]+(1-this._beta)*(i+f*d));this._x=this._y=null,this._basis.lineEnd()},point:function(e,o){this._x.push(+e),this._y.push(+o)}};var pD=(function e(o){function t(n){return o===1?new mb(n):new SL(n,o)}return t.beta=function(n){return e(+n)},t})(.85);function db(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var PL=Math.PI,tCn=PL/2;function m1(e){return(1-Math.cos(PL*e))/2}var mD={};DT(mD,{dispatch:()=>iu});var XYe={value:()=>{}};function ML(){for(var e=0,o=arguments.length,t={},n;e=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!o.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}ub.prototype=ML.prototype={constructor:ub,on:function(e,o){var t=this._,n=ZYe(e+"",t),i,s=-1,d=n.length;if(arguments.length<2){for(;++s0)for(var t=new Array(i),n=0,i,s;nOL,now:()=>Yp,timeout:()=>g1,timer:()=>Rd,timerFlush:()=>uD});var nu=0,u1=0,d1=0,EL=1e3,fb,f1,hb=0,kd=0,gb=0,h1=typeof performance=="object"&&performance.now?performance:Date,IL=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yp(){return kd||(IL(tJe),kd=h1.now()+gb)}function tJe(){kd=0}function Bd(){this._call=this._time=this._next=null}Bd.prototype=Rd.prototype={constructor:Bd,restart:function(e,o,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Yp():+t)+(o==null?0:+o),!this._next&&f1!==this&&(f1?f1._next=this:fb=this,f1=this),this._call=e,this._time=t,dD()},stop:function(){this._call&&(this._call=null,this._time=1/0,dD())}};function Rd(e,o,t){var n=new Bd;return n.restart(e,o,t),n}function uD(){Yp(),++nu;for(var e=fb,o;e;)(o=kd-e._time)>=0&&e._call.call(void 0,o),e=e._next;--nu}function DL(){kd=(hb=h1.now())+gb,nu=u1=0;try{uD()}finally{nu=0,nJe(),kd=0}}function iJe(){var e=h1.now(),o=e-hb;o>EL&&(gb-=o,hb=e)}function nJe(){for(var e,o=fb,t,n=1/0;o;)o._call?(n>o._time&&(n=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:fb=t);f1=e,dD(n)}function dD(e){if(!nu){u1&&(u1=clearTimeout(u1));var o=e-kd;o>24?(e<1/0&&(u1=setTimeout(DL,e-h1.now()-gb)),d1&&(d1=clearInterval(d1))):(d1||(hb=h1.now(),d1=setInterval(iJe,EL)),nu=1,IL(DL))}}function g1(e,o,t){var n=new Bd;return o=o==null?0:+o,n.restart(i=>{n.stop(),e(i+o)},o,t),n}function OL(e,o,t){var n=new Bd,i=o;return o==null?(n.restart(e,o,t),n):(n._restart=n.restart,n.restart=function(s,d,u){d=+d,u=u==null?Yp():+u,n._restart(function f(_){_+=i,n._restart(f,i+=d,u),s(_)},d,u)},n.restart(e,o,t),n)}var oJe=iu("start","end","cancel","interrupt"),aJe=[],kL=0,AL=1,Cb=2,_b=3,FL=4,vb=5,_1=6;function Jp(e,o,t,n,i,s){var d=e.__transition;if(!d)e.__transition={};else if(t in d)return;rJe(e,t,{name:o,index:n,group:i,on:oJe,tween:aJe,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:kL})}function C1(e,o){var t=Cr(e,o);if(t.state>kL)throw new Error("too late; already scheduled");return t}function Hr(e,o){var t=Cr(e,o);if(t.state>_b)throw new Error("too late; already running");return t}function Cr(e,o){var t=e.__transition;if(!t||!(t=t[o]))throw new Error("transition not found");return t}function rJe(e,o,t){var n=e.__transition,i;n[o]=t,t.timer=Rd(s,0,t.time);function s(_){t.state=AL,t.timer.restart(d,t.delay,t.time),t.delay<=_&&d(_-t.delay)}function d(_){var C,x,y,P;if(t.state!==AL)return f();for(C in n)if(P=n[C],P.name===t.name){if(P.state===_b)return g1(d);P.state===FL?(P.state=_1,P.timer.stop(),P.on.call("interrupt",e,e.__data__,P.index,P.group),delete n[C]):+CCb&&n.state>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):t===8?bb(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):t===4?bb(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=sJe.exec(e))?new Ml(o[1],o[2],o[3],1):(o=cJe.exec(e))?new Ml(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=pJe.exec(e))?bb(o[1],o[2],o[3],o[4]):(o=mJe.exec(e))?bb(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=dJe.exec(e))?GL(o[1],o[2]/100,o[3]/100,1):(o=uJe.exec(e))?GL(o[1],o[2]/100,o[3]/100,o[4]):NL.hasOwnProperty(e)?qL(NL[e]):e==="transparent"?new Ml(NaN,NaN,NaN,0):null}function qL(e){return new Ml(e>>16&255,e>>8&255,e&255,1)}function bb(e,o,t,n){return n<=0&&(e=o=t=NaN),new Ml(e,o,t,n)}function gJe(e){return e instanceof b1||(e=Kp(e)),e?(e=e.rgb(),new Ml(e.r,e.g,e.b,e.opacity)):new Ml}function au(e,o,t,n){return arguments.length===1?gJe(e):new Ml(e,o,t,n??1)}function Ml(e,o,t,n){this.r=+e,this.g=+o,this.b=+t,this.opacity=+n}xb(Ml,au,hD(b1,{brighter(e){return e=e==null?Sb:Math.pow(Sb,e),new Ml(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?v1:Math.pow(v1,e),new Ml(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ml(Ld(this.r),Ld(this.g),Ld(this.b),wb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zL,formatHex:zL,formatHex8:_Je,formatRgb:HL,toString:HL}));function zL(){return`#${Nd(this.r)}${Nd(this.g)}${Nd(this.b)}`}function _Je(){return`#${Nd(this.r)}${Nd(this.g)}${Nd(this.b)}${Nd((isNaN(this.opacity)?1:this.opacity)*255)}`}function HL(){let e=wb(this.opacity);return`${e===1?"rgb(":"rgba("}${Ld(this.r)}, ${Ld(this.g)}, ${Ld(this.b)}${e===1?")":`, ${e})`}`}function wb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ld(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nd(e){return e=Ld(e),(e<16?"0":"")+e.toString(16)}function GL(e,o,t,n){return n<=0?e=o=t=NaN:t<=0||t>=1?e=o=NaN:o<=0&&(e=NaN),new Vs(e,o,t,n)}function $L(e){if(e instanceof Vs)return new Vs(e.h,e.s,e.l,e.opacity);if(e instanceof b1||(e=Kp(e)),!e)return new Vs;if(e instanceof Vs)return e;e=e.rgb();var o=e.r/255,t=e.g/255,n=e.b/255,i=Math.min(o,t,n),s=Math.max(o,t,n),d=NaN,u=s-i,f=(s+i)/2;return u?(o===s?d=(t-n)/u+(t0&&f<1?0:d,new Vs(d,u,f,e.opacity)}function UL(e,o,t,n){return arguments.length===1?$L(e):new Vs(e,o,t,n??1)}function Vs(e,o,t,n){this.h=+e,this.s=+o,this.l=+t,this.opacity=+n}xb(Vs,UL,hD(b1,{brighter(e){return e=e==null?Sb:Math.pow(Sb,e),new Vs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?v1:Math.pow(v1,e),new Vs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,o=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*o,i=2*t-n;return new Ml(gD(e>=240?e-240:e+120,i,n),gD(e,i,n),gD(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Vs(jL(this.h),yb(this.s),yb(this.l),wb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=wb(this.opacity);return`${e===1?"hsl(":"hsla("}${jL(this.h)}, ${yb(this.s)*100}%, ${yb(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jL(e){return e=(e||0)%360,e<0?e+360:e}function yb(e){return Math.max(0,Math.min(1,e||0))}function gD(e,o,t){return(e<60?o+(t-o)*e/60:e<180?t:e<240?o+(t-o)*(240-e)/60:o)*255}function _D(e,o,t,n,i){var s=e*e,d=s*e;return((1-3*e+3*s-d)*o+(4-6*s+3*d)*t+(1+3*e+3*s-3*d)*n+d*i)/6}function WL(e){var o=e.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,o-1):Math.floor(t*o),i=e[n],s=e[n+1],d=n>0?e[n-1]:2*i-s,u=n()=>e;function CJe(e,o){return function(t){return e+t*o}}function vJe(e,o,t){return e=Math.pow(e,t),o=Math.pow(o,t)-e,t=1/t,function(n){return Math.pow(e+n*o,t)}}function YL(e){return(e=+e)==1?Pb:function(o,t){return t-o?vJe(o,t,e):CD(isNaN(o)?t:o)}}function Pb(e,o){var t=o-e;return t?CJe(e,t):CD(isNaN(e)?o:e)}var Tb=(function e(o){var t=YL(o);function n(i,s){var d=t((i=au(i)).r,(s=au(s)).r),u=t(i.g,s.g),f=t(i.b,s.b),_=Pb(i.opacity,s.opacity);return function(C){return i.r=d(C),i.g=u(C),i.b=f(C),i.opacity=_(C),i+""}}return n.gamma=e,n})(1);function JL(e){return function(o){var t=o.length,n=new Array(t),i=new Array(t),s=new Array(t),d,u;for(d=0;dt&&(s=o.slice(t,s),u[d]?u[d]+=s:u[++d]=s),(n=n[0])===(i=i[0])?u[d]?u[d]+=i:u[++d]=i:(u[++d]=null,f.push({i:d,x:ds(n,i)})),t=vD.lastIndex;return t180?C+=360:C-_>180&&(_+=360),y.push({i:x.push(i(x)+"rotate(",null,n)-2,x:ds(_,C)})):C&&x.push(i(x)+"rotate("+C+n)}function u(_,C,x,y){_!==C?y.push({i:x.push(i(x)+"skewX(",null,n)-2,x:ds(_,C)}):C&&x.push(i(x)+"skewX("+C+n)}function f(_,C,x,y,P,S){if(_!==x||C!==y){var M=P.push(i(P)+"scale(",null,",",null,")");S.push({i:M-4,x:ds(_,x)},{i:M-2,x:ds(C,y)})}else(x!==1||y!==1)&&P.push(i(P)+"scale("+x+","+y+")")}return function(_,C){var x=[],y=[];return _=e(_),C=e(C),s(_.translateX,_.translateY,C.translateX,C.translateY,x,y),d(_.rotate,C.rotate,x,y),u(_.skewX,C.skewX,x,y),f(_.scaleX,_.scaleY,C.scaleX,C.scaleY,x,y),_=C=null,function(P){for(var S=-1,M=y.length,D;++S=0&&(o=o.slice(0,t)),!o||o==="start"})}function GJe(e,o,t){var n,i,s=HJe(o)?C1:Hr;return function(){var d=s(this,e),u=d.on;u!==n&&(i=(n=u).copy()).on(o,t),d.on=i}}function pV(e,o){var t=this._id;return arguments.length<2?Cr(this.node(),t).on.on(e):this.each(GJe(t,e,o))}function jJe(e){return function(){var o=this.parentNode;for(var t in this.__transition)if(+t!==e)return;o&&o.removeChild(this)}}function mV(){return this.on("end.remove",jJe(this._id))}function dV(e){var o=this._name,t=this._id;typeof e!="function"&&(e=Id(e));for(var n=this._groups,i=n.length,s=new Array(i),d=0;d"u"}function Kc(e,o=0){return{a:1,c:0,e,b:0,d:1,f:o}}function Xc(...e){e=Array.isArray(e[0])?e[0]:e;let o=(t,n)=>({a:t.a*n.a+t.c*n.b,c:t.a*n.c+t.c*n.d,e:t.a*n.e+t.c*n.f+t.e,b:t.b*n.a+t.d*n.b,d:t.b*n.c+t.d*n.d,f:t.b*n.e+t.d*n.f+t.f});switch(e.length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return o(e[0],e[1]);default:{let[t,n,...i]=e,s=o(t,n);return Xc(s,...i)}}}var{cos:Qvn,sin:Yvn,PI:Jvn}=Math;function S1(e,o=void 0,t=void 0,n=void 0){y1(o)&&(o=e);let i={a:e,c:0,e:0,b:0,d:o,f:0};return y1(t)||y1(n)?i:Xc([Kc(t,n),i,Kc(-t,-n)])}var{tan:nxn}=Math;function PV(e){return aKe(e)}function aKe(e){return`matrix(${e.a},${e.b},${e.c},${e.d},${e.e},${e.f})`}function PD(e,o=1e10){return{a:Math.round(e.a*o)/o,b:Math.round(e.b*o)/o,c:Math.round(e.c*o)/o,d:Math.round(e.d*o)/o,e:Math.round(e.e*o)/o,f:Math.round(e.f*o)/o}}function rKe(e,o){function t(){this.constructor=e}t.prototype=o.prototype,e.prototype=new t}function Ob(e,o,t,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Ob.prototype),i.expected=o,i.found=t,i.location=n,i.name="SyntaxError",i}rKe(Ob,Error);function TD(e,o,t){return t=t||" ",e.length>o?e:(o-=e.length,t+=t.repeat(o),e+t.slice(0,o))}Ob.prototype.format=function(e){var o="Error: "+this.message;if(this.location){var t=null,n;for(n=0;nJ+re.before.length+re.lines.length+re.after.length,0);if(k+=e.beforeBody.length+e.afterBody.length,x&&(M+=x*_.lineHeight+(x-1)*o.titleSpacing+o.titleMarginBottom),k){let J=o.displayColors?Math.max(u,f.lineHeight):f.lineHeight;M+=P*J+(k-P)*f.lineHeight+(k-1)*o.bodySpacing}y&&(M+=o.footerMarginTop+y*C.lineHeight+(y-1)*o.footerSpacing);let z=0,U=function(J){D=Math.max(D,t.measureText(J).width+z)};return t.save(),t.font=_.string,Jo(e.title,U),t.font=f.string,Jo(e.beforeBody.concat(e.afterBody),U),z=o.displayColors?d+2+o.boxPadding:0,Jo(n,J=>{Jo(J.before,U),Jo(J.lines,U),Jo(J.after,U)}),z=0,t.font=C.string,Jo(e.footer,U),t.restore(),D+=S.width,{width:D,height:M}}function C0e(e,o){let{y:t,height:n}=o;return te.height-n/2?"bottom":"center"}function v0e(e,o,t,n){let{x:i,width:s}=n,d=t.caretSize+t.caretPadding;if(e==="left"&&i+s+d>o.width||e==="right"&&i-s-d<0)return!0}function x0e(e,o,t,n){let{x:i,width:s}=t,{width:d,chartArea:{left:u,right:f}}=e,_="center";return n==="center"?_=i<=(u+f)/2?"left":"right":i<=s/2?_="left":i>=d-s/2&&(_="right"),v0e(_,e,o,t)&&(_="center"),_}function RR(e,o,t){let n=t.yAlign||o.yAlign||C0e(e,t);return{xAlign:t.xAlign||o.xAlign||x0e(e,o,t,n),yAlign:n}}function b0e(e,o){let{x:t,width:n}=e;return o==="right"?t-=n:o==="center"&&(t-=n/2),t}function y0e(e,o,t){let{y:n,height:i}=e;return o==="top"?n+=t:o==="bottom"?n-=i+t:n-=i/2,n}function NR(e,o,t,n){let{caretSize:i,caretPadding:s,cornerRadius:d}=e,{xAlign:u,yAlign:f}=t,_=i+s,{topLeft:C,topRight:x,bottomLeft:y,bottomRight:P}=Vp(d),S=b0e(o,u),M=y0e(o,f,_);return f==="center"?u==="left"?S+=_:u==="right"&&(S-=_):u==="left"?S-=Math.max(C,y)+i:u==="right"&&(S+=Math.max(x,P)+i),{x:_r(S,0,n.width-o.width),y:_r(M,0,n.height-o.height)}}function rC(e,o,t){let n=qr(t.padding);return o==="center"?e.x+e.width/2:o==="right"?e.x+e.width-n.right:e.x+n.left}function LR(e){return uc([],Uc(e))}function S0e(e,o,t){return jc(e,{tooltip:o,tooltipItems:t,type:"tooltip"})}function VR(e,o){let t=o&&o.dataset&&o.dataset.tooltip&&o.dataset.tooltip.callbacks;return t?e.override(t):e}var g9={beforeTitle:mc,title(e){if(e.length>0){let o=e[0],t=o.chart.data.labels,n=t?t.length:0;if(this&&this.options&&this.options.mode==="dataset")return o.dataset.label||"";if(o.label)return o.label;if(n>0&&o.dataIndex"u"?g9[o].call(t,n):i}var qR=(()=>{class e extends Rs{static positioners=Rf;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let n=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&n.options.animation&&i.animations,d=new pC(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(d)),d}getContext(){return this.$context||(this.$context=S0e(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:i}=n,s=Sl(i,"beforeTitle",this,t),d=Sl(i,"title",this,t),u=Sl(i,"afterTitle",this,t),f=[];return f=uc(f,Uc(s)),f=uc(f,Uc(d)),f=uc(f,Uc(u)),f}getBeforeBody(t,n){return LR(Sl(n.callbacks,"beforeBody",this,t))}getBody(t,n){let{callbacks:i}=n,s=[];return Jo(t,d=>{let u={before:[],lines:[],after:[]},f=VR(i,d);uc(u.before,Uc(Sl(f,"beforeLabel",this,d))),uc(u.lines,Sl(f,"label",this,d)),uc(u.after,Uc(Sl(f,"afterLabel",this,d))),s.push(u)}),s}getAfterBody(t,n){return LR(Sl(n.callbacks,"afterBody",this,t))}getFooter(t,n){let{callbacks:i}=n,s=Sl(i,"beforeFooter",this,t),d=Sl(i,"footer",this,t),u=Sl(i,"afterFooter",this,t),f=[];return f=uc(f,Uc(s)),f=uc(f,Uc(d)),f=uc(f,Uc(u)),f}_createItems(t){let n=this._active,i=this.chart.data,s=[],d=[],u=[],f=[],_,C;for(_=0,C=n.length;_t.filter(x,y,P,i))),t.itemSort&&(f=f.sort((x,y)=>t.itemSort(x,y,i))),Jo(f,x=>{let y=VR(t.callbacks,x);s.push(Sl(y,"labelColor",this,x)),d.push(Sl(y,"labelPointStyle",this,x)),u.push(Sl(y,"labelTextColor",this,x))}),this.labelColors=s,this.labelPointStyles=d,this.labelTextColors=u,this.dataPoints=f,f}update(t,n){let i=this.options.setContext(this.getContext()),s=this._active,d,u=[];if(!s.length)this.opacity!==0&&(d={opacity:0});else{let f=Rf[i.position].call(this,s,this._eventPosition);u=this._createItems(i),this.title=this.getTitle(u,i),this.beforeBody=this.getBeforeBody(u,i),this.body=this.getBody(u,i),this.afterBody=this.getAfterBody(u,i),this.footer=this.getFooter(u,i);let _=this._size=BR(this,i),C=Object.assign({},f,_),x=RR(this.chart,i,C),y=NR(i,C,x,this.chart);this.xAlign=x.xAlign,this.yAlign=x.yAlign,d={opacity:1,x:y.x,y:y.y,width:_.width,height:_.height,caretX:f.x,caretY:f.y}}this._tooltipItems=u,this.$context=void 0,d&&this._resolveAnimations().update(this,d),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,i,s){let d=this.getCaretPosition(t,i,s);n.lineTo(d.x1,d.y1),n.lineTo(d.x2,d.y2),n.lineTo(d.x3,d.y3)}getCaretPosition(t,n,i){let{xAlign:s,yAlign:d}=this,{caretSize:u,cornerRadius:f}=i,{topLeft:_,topRight:C,bottomLeft:x,bottomRight:y}=Vp(f),{x:P,y:S}=t,{width:M,height:D}=n,k,z,U,J,re,ee;return d==="center"?(re=S+D/2,s==="left"?(k=P,z=k-u,J=re+u,ee=re-u):(k=P+M,z=k+u,J=re-u,ee=re+u),U=k):(s==="left"?z=P+Math.max(_,x)+u:s==="right"?z=P+M-Math.max(C,y)-u:z=this.caretX,d==="top"?(J=S,re=J-u,k=z-u,U=z+u):(J=S+D,re=J+u,k=z+u,U=z-u),ee=J),{x1:k,x2:z,x3:U,y1:J,y2:re,y3:ee}}drawTitle(t,n,i){let s=this.title,d=s.length,u,f,_;if(d){let C=wd(i.rtl,this.x,this.width);for(t.x=rC(this,i.titleAlign,i),n.textAlign=C.textAlign(i.titleAlign),n.textBaseline="middle",u=sr(i.titleFont),f=i.titleSpacing,n.fillStyle=i.titleColor,n.font=u.string,_=0;_U!==0)?(t.beginPath(),t.fillStyle=d.multiKeyBackground,$0(t,{x:D,y:M,w:C,h:_,radius:z}),t.fill(),t.stroke(),t.fillStyle=u.backgroundColor,t.beginPath(),$0(t,{x:k,y:M+1,w:C-2,h:_-2,radius:z}),t.fill()):(t.fillStyle=d.multiKeyBackground,t.fillRect(D,M,C,_),t.strokeRect(D,M,C,_),t.fillStyle=u.backgroundColor,t.fillRect(k,M+1,C-2,_-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,n,i){let{body:s}=this,{bodySpacing:d,bodyAlign:u,displayColors:f,boxHeight:_,boxWidth:C,boxPadding:x}=i,y=sr(i.bodyFont),P=y.lineHeight,S=0,M=wd(i.rtl,this.x,this.width),D=function(_e){n.fillText(_e,M.x(t.x+S),t.y+P/2),t.y+=P+d},k=M.textAlign(u),z,U,J,re,ee,ae,se;for(n.textAlign=u,n.textBaseline="middle",n.font=y.string,t.x=rC(this,k,i),n.fillStyle=i.bodyColor,Jo(this.beforeBody,D),S=f&&k!=="right"?u==="center"?C/2+x:C+2+x:0,re=0,ae=s.length;re0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,i=this.$animations,s=i&&i.x,d=i&&i.y;if(s||d){let u=Rf[t.position].call(this,this._active,this._eventPosition);if(!u)return;let f=this._size=BR(this,t),_=Object.assign({},u,this._size),C=RR(n,t,_),x=NR(t,_,C,n);(s._to!==x.x||d._to!==x.y)&&(this.xAlign=C.xAlign,this.yAlign=C.yAlign,this.width=f.width,this.height=f.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,x))}}_willRender(){return!!this.opacity}draw(t){let n=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(n);let s={width:this.width,height:this.height},d={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;let u=qr(n.padding),f=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&f&&(t.save(),t.globalAlpha=i,this.drawBackground(d,t,s,n),Q4(t,n.textDirection),d.y+=u.top,this.drawTitle(d,t,n),this.drawBody(d,t,n),this.drawFooter(d,t,n),Y4(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){let i=this._active,s=t.map(({datasetIndex:f,index:_})=>{let C=this.chart.getDatasetMeta(f);if(!C)throw new Error("Cannot find a dataset at index "+f);return{datasetIndex:f,element:C.data[_],index:_}}),d=!Tf(i,s),u=this._positionChanged(s,n);(d||u)&&(this._active=s,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,i=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,d=this._active||[],u=this._getActiveElements(t,d,n,i),f=this._positionChanged(u,t),_=n||!Tf(u,d)||f;return _&&(this._active=u,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),_}_getActiveElements(t,n,i,s){let d=this.options;if(t.type==="mouseout")return[];if(!s)return n.filter(f=>this.chart.data.datasets[f.datasetIndex]&&this.chart.getDatasetMeta(f.datasetIndex).controller.getParsed(f.index)!==void 0);let u=this.chart.getElementsAtEventForMode(t,d.mode,d,i);return d.reverse&&u.reverse(),u}_positionChanged(t,n){let{caretX:i,caretY:s,options:d}=this,u=Rf[d.position].call(this,t,n);return u!==!1&&(i!==u.x||s!==u.y)}}return e})(),w0e={id:"tooltip",_element:qR,positioners:Rf,afterInit(e,o,t){t&&(e.tooltip=new qR({chart:e,options:t}))},beforeUpdate(e,o,t){e.tooltip&&e.tooltip.initialize(t)},reset(e,o,t){e.tooltip&&e.tooltip.initialize(t)},afterDraw(e){let o=e.tooltip;if(o&&o._willRender()){let t={tooltip:o};if(e.notifyPlugins("beforeTooltipDraw",qt(at({},t),{cancelable:!0}))===!1)return;o.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",t)}},afterEvent(e,o){if(e.tooltip){let t=o.replay;e.tooltip.handleEvent(o.event,t,o.inChartArea)&&(o.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,o)=>o.bodyFont.size,boxWidth:(e,o)=>o.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:g9},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},P0e=Object.freeze({__proto__:null,Colors:Nde,Decimation:zde,Filler:l0e,Legend:u0e,SubTitle:g0e,Title:h0e,Tooltip:w0e}),T0e=(e,o,t,n)=>(typeof o=="string"?(t=e.push(o)-1,n.unshift({index:t,label:o})):isNaN(o)&&(t=null),t);function M0e(e,o,t,n){let i=e.indexOf(o);if(i===-1)return T0e(e,o,t,n);let s=e.lastIndexOf(o);return i!==s?t:i}var D0e=(e,o)=>e===null?null:_r(Math.round(e),0,o);function zR(e){let o=this.getLabels();return e>=0&&e{class e extends Md{static id="category";static defaults={ticks:{callback:zR}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let n=this._addedLabels;if(n.length){let i=this.getLabels();for(let{index:s,label:d}of n)i[s]===d&&i.splice(s,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(Co(t))return null;let i=this.getLabels();return n=isFinite(n)&&i[n]===t?n:M0e(i,t,Kn(n,t),this._addedLabels),D0e(n,i.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:i,max:s}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(i=0),n||(s=this.getLabels().length-1)),this.min=i,this.max=s}buildTicks(){let t=this.min,n=this.max,i=this.options.offset,s=[],d=this.getLabels();d=t===0&&n===d.length-1?d:d.slice(t,n+1),this._valueRange=Math.max(d.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let u=t;u<=n;u++)s.push({value:u});return s}getLabelForValue(t){return zR.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}return e})();function I0e(e,o){let t=[],{bounds:i,step:s,min:d,max:u,precision:f,count:_,maxTicks:C,maxDigits:x,includeBounds:y}=e,P=s||1,S=C-1,{min:M,max:D}=o,k=!Co(d),z=!Co(u),U=!Co(_),J=(D-M)/(x+1),re=M4((D-M)/S/P)*P,ee,ae,se,_e;if(re<1e-14&&!k&&!z)return[{value:M},{value:D}];_e=Math.ceil(D/re)-Math.floor(M/re),_e>S&&(re=M4(_e*re/S/P)*P),Co(f)||(ee=Math.pow(10,f),re=Math.ceil(re*ee)/ee),i==="ticks"?(ae=Math.floor(M/re)*re,se=Math.ceil(D/re)*re):(ae=M,se=D),k&&z&&s&&MB((u-d)/s,re/1e3)?(_e=Math.round(Math.min((u-d)/re,C)),re=(u-d)/_e,ae=d,se=u):U?(ae=k?d:ae,se=z?u:se,_e=_-1,re=(se-ae)/_e):(_e=(se-ae)/re,H0(_e,Math.round(_e),re/1e3)?_e=Math.round(_e):_e=Math.ceil(_e));let de=Math.max(E4(re),E4(ae));ee=Math.pow(10,Co(f)?de:f),ae=Math.round(ae*ee)/ee,se=Math.round(se*ee)/ee;let j=0;for(k&&(y&&ae!==d?(t.push({value:d}),aeu)break;t.push({value:W})}return z&&y&&se!==u?t.length&&H0(t[t.length-1].value,u,HR(u,J,e))?t[t.length-1].value=u:t.push({value:u}):(!z||se===u)&&t.push({value:se}),t}function HR(e,o,{horizontal:t,minRotation:n}){let i=ps(n),s=(t?Math.sin(i):Math.cos(i))||.001,d=.75*o*(""+e).length;return Math.min(o/s,d)}var Y0=class extends Md{constructor(o){super(o),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(o,t){return Co(o)||(typeof o=="number"||o instanceof Number)&&!isFinite(+o)?null:+o}handleTickRangeOptions(){let{beginAtZero:o}=this.options,{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:i,max:s}=this,d=f=>i=t?i:f,u=f=>s=n?s:f;if(o){let f=Bs(i),_=Bs(s);f<0&&_<0?u(0):f>0&&_>0&&d(0)}if(i===s){let f=s===0?1:Math.abs(s*.05);u(s+f),o||d(i-f)}this.min=i,this.max=s}getTickLimit(){let o=this.options.ticks,{maxTicksLimit:t,stepSize:n}=o,i;return n?(i=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),t=t||11),t&&(i=Math.min(t,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let o=this.options,t=o.ticks,n=this.getTickLimit();n=Math.max(2,n);let i={maxTicks:n,bounds:o.bounds,min:o.min,max:o.max,precision:t.precision,step:t.stepSize,count:t.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:t.minRotation||0,includeBounds:t.includeBounds!==!1},s=this._range||this,d=I0e(i,s);return o.bounds==="ticks"&&D4(d,this,"value"),o.reverse?(d.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),d}configure(){let o=this.ticks,t=this.min,n=this.max;if(super.configure(),this.options.offset&&o.length){let i=(n-t)/Math.max(o.length-1,1)/2;t-=i,n+=i}this._startValue=t,this._endValue=n,this._valueRange=n-t}getLabelForValue(o){return j0(o,this.chart.options.locale,this.options.ticks.format)}},PM=class extends Y0{static id="linear";static defaults={ticks:{callback:Mf.formatters.numeric}};determineDataLimits(){let{min:o,max:t}=this.getMinMax(!0);this.min=Fa(o)?o:0,this.max=Fa(t)?t:1,this.handleTickRangeOptions()}computeTickLimit(){let o=this.isHorizontal(),t=o?this.width:this.height,n=ps(this.options.ticks.minRotation),i=(o?Math.sin(n):Math.cos(n))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(t/Math.min(40,s.lineHeight/i))}getPixelForValue(o){return o===null?NaN:this.getPixelForDecimal((o-this._startValue)/this._valueRange)}getValueForPixel(o){return this._startValue+this.getDecimalForPixel(o)*this._valueRange}},Vf=e=>Math.floor(Hc(e)),Td=(e,o)=>Math.pow(10,Vf(e)+o);function GR(e){return e/Math.pow(10,Vf(e))===1}function jR(e,o,t){let n=Math.pow(10,t),i=Math.floor(e/n);return Math.ceil(o/n)-i}function O0e(e,o){let t=o-e,n=Vf(t);for(;jR(e,o,n)>10;)n++;for(;jR(e,o,n)<10;)n--;return Math.min(n,Vf(e))}function A0e(e,{min:o,max:t}){o=yl(e.min,o);let n=[],i=Vf(o),s=O0e(o,t),d=s<0?Math.pow(10,Math.abs(s)):1,u=Math.pow(10,s),f=i>s?Math.pow(10,i):0,_=Math.round((o-f)*d)/d,C=Math.floor((o-f)/u/10)*u*10,x=Math.floor((_-C)/Math.pow(10,s)),y=yl(e.min,Math.round((f+C+x*Math.pow(10,s))*d)/d);for(;y=10?x=x<15?15:20:x++,x>=20&&(s++,x=2,d=s>=0?1:d),y=Math.round((f+C+x*Math.pow(10,s))*d)/d;let P=yl(e.max,y);return n.push({value:P,major:GR(P),significand:x}),n}var TM=class extends Md{static id="logarithmic";static defaults={ticks:{callback:Mf.formatters.logarithmic,major:{enabled:!0}}};constructor(o){super(o),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(o,t){let n=Y0.prototype.parse.apply(this,[o,t]);if(n===0){this._zero=!0;return}return Fa(n)&&n>0?n:null}determineDataLimits(){let{min:o,max:t}=this.getMinMax(!0);this.min=Fa(o)?Math.max(0,o):null,this.max=Fa(t)?Math.max(0,t):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Fa(this._userMin)&&(this.min=o===Td(this.min,0)?Td(this.min,-1):Td(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:o,maxDefined:t}=this.getUserBounds(),n=this.min,i=this.max,s=u=>n=o?n:u,d=u=>i=t?i:u;n===i&&(n<=0?(s(1),d(10)):(s(Td(n,-1)),d(Td(i,1)))),n<=0&&s(Td(i,-1)),i<=0&&d(Td(n,1)),this.min=n,this.max=i}buildTicks(){let o=this.options,t={min:this._userMin,max:this._userMax},n=A0e(t,this);return o.bounds==="ticks"&&D4(n,this,"value"),o.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(o){return o===void 0?"0":j0(o,this.chart.options.locale,this.options.ticks.format)}configure(){let o=this.min;super.configure(),this._startValue=Hc(o),this._valueRange=Hc(this.max)-Hc(o)}getPixelForValue(o){return(o===void 0||o===0)&&(o=this.min),o===null||isNaN(o)?NaN:this.getPixelForDecimal(o===this.min?0:(Hc(o)-this._startValue)/this._valueRange)}getValueForPixel(o){let t=this.getDecimalForPixel(o);return Math.pow(10,this._startValue+t*this._valueRange)}};function MM(e){let o=e.ticks;if(o.display&&e.display){let t=qr(o.backdropPadding);return Kn(o.font&&o.font.size,ba.font.size)+t.height}return 0}function F0e(e,o,t){return t=ga(t)?t:[t],{w:RB(e,o.string,t),h:t.length*o.lineHeight}}function $R(e,o,t,n,i){return e===n||e===i?{start:o-t/2,end:o+t/2}:ei?{start:o-t,end:o}:{start:o,end:o+t}}function k0e(e){let o={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},t=Object.assign({},o),n=[],i=[],s=e._pointLabels.length,d=e.options.pointLabels,u=d.centerPointLabels?Bo/s:0;for(let f=0;fo.r&&(u=(n.end-o.r)/s,e.r=Math.max(e.r,o.r+u)),i.starto.b&&(f=(i.end-o.b)/d,e.b=Math.max(e.b,o.b+f))}function R0e(e,o,t){let n=e.drawingArea,{extra:i,additionalAngle:s,padding:d,size:u}=t,f=e.getPointPosition(o,n+i+d,s),_=Math.round(U_(Lr(f.angle+za))),C=z0e(f.y,u.h,_),x=V0e(_),y=q0e(f.x,u.w,x);return{visible:!0,x:f.x,y:C,textAlign:x,left:y,top:C,right:y+u.w,bottom:C+u.h}}function N0e(e,o){if(!o)return!0;let{left:t,top:n,right:i,bottom:s}=e;return!(pc({x:t,y:n},o)||pc({x:t,y:s},o)||pc({x:i,y:n},o)||pc({x:i,y:s},o))}function L0e(e,o,t){let n=[],i=e._pointLabels.length,s=e.options,{centerPointLabels:d,display:u}=s.pointLabels,f={extra:MM(s)/2,additionalAngle:d?Bo/i:0},_;for(let C=0;C270||t<90)&&(e-=o),e}function H0e(e,o,t){let{left:n,top:i,right:s,bottom:d}=t,{backdropColor:u}=o;if(!Co(u)){let f=Vp(o.borderRadius),_=qr(o.backdropPadding);e.fillStyle=u;let C=n-_.left,x=i-_.top,y=s-n+_.width,P=d-i+_.height;Object.values(f).some(S=>S!==0)?(e.beginPath(),$0(e,{x:C,y:x,w:y,h:P,radius:f}),e.fill()):e.fillRect(C,x,y,P)}}function G0e(e,o){let{ctx:t,options:{pointLabels:n}}=e;for(let i=o-1;i>=0;i--){let s=e._pointLabelItems[i];if(!s.visible)continue;let d=n.setContext(e.getPointLabelContext(i));H0e(t,d,s);let u=sr(d.font),{x:f,y:_,textAlign:C}=s;Lp(t,e._pointLabels[i],f,_+u.lineHeight/2,u,{color:d.color,textAlign:C,textBaseline:"middle"})}}function _9(e,o,t,n){let{ctx:i}=e;if(t)i.arc(e.xCenter,e.yCenter,o,0,_a);else{let s=e.getPointPosition(0,o);i.moveTo(s.x,s.y);for(let d=1;d{let i=oa(this.options.pointLabels.callback,[t,n],this);return i||i===0?i:""}).filter((t,n)=>this.chart.getDataVisibility(n))}fit(){let o=this.options;o.display&&o.pointLabels.display?k0e(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(o,t,n,i){this.xCenter+=Math.floor((o-t)/2),this.yCenter+=Math.floor((n-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(o,t,n,i))}getIndexAngle(o){let t=_a/(this._pointLabels.length||1),n=this.options.startAngle||0;return Lr(o*t+ps(n))}getDistanceFromCenterForValue(o){if(Co(o))return NaN;let t=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-o)*t:(o-this.min)*t}getValueForDistanceFromCenter(o){if(Co(o))return NaN;let t=o/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-t:this.min+t}getPointLabelContext(o){let t=this._pointLabels||[];if(o>=0&&o{if(x!==0||x===0&&this.min<0){f=this.getDistanceFromCenterForValue(C.value);let y=this.getContext(x),P=i.setContext(y),S=s.setContext(y);j0e(this,P,f,d,S)}}),n.display){for(o.save(),u=d-1;u>=0;u--){let C=n.setContext(this.getPointLabelContext(u)),{color:x,lineWidth:y}=C;!y||!x||(o.lineWidth=y,o.strokeStyle=x,o.setLineDash(C.borderDash),o.lineDashOffset=C.borderDashOffset,f=this.getDistanceFromCenterForValue(t.reverse?this.min:this.max),_=this.getPointPosition(u,f),o.beginPath(),o.moveTo(this.xCenter,this.yCenter),o.lineTo(_.x,_.y),o.stroke())}o.restore()}}drawBorder(){}drawLabels(){let o=this.ctx,t=this.options,n=t.ticks;if(!n.display)return;let i=this.getIndexAngle(0),s,d;o.save(),o.translate(this.xCenter,this.yCenter),o.rotate(i),o.textAlign="center",o.textBaseline="middle",this.ticks.forEach((u,f)=>{if(f===0&&this.min>=0&&!t.reverse)return;let _=n.setContext(this.getContext(f)),C=sr(_.font);if(s=this.getDistanceFromCenterForValue(this.ticks[f].value),_.showLabelBackdrop){o.font=C.string,d=o.measureText(u.label).width,o.fillStyle=_.backdropColor;let x=qr(_.backdropPadding);o.fillRect(-d/2-x.left,-s-C.size/2-x.top,d+x.width,C.size+x.height)}Lp(o,u.label,0,-s,C,{color:_.color,strokeColor:_.textStrokeColor,strokeWidth:_.textStrokeWidth})}),o.restore()}drawTitle(){}},CC={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},wl=Object.keys(CC);function UR(e,o){return e-o}function WR(e,o){if(Co(o))return null;let t=e._adapter,{parser:n,round:i,isoWeekday:s}=e._parseOpts,d=o;return typeof n=="function"&&(d=n(d)),Fa(d)||(d=typeof n=="string"?t.parse(d,n):t.parse(d)),d===null?null:(i&&(d=i==="week"&&(Sd(s)||s===!0)?t.startOf(d,"isoWeek",s):t.startOf(d,i)),+d)}function QR(e,o,t,n){let i=wl.length;for(let s=wl.indexOf(e);s=wl.indexOf(t);s--){let d=wl[s];if(CC[d].common&&e._adapter.diff(i,n,d)>=o-1)return d}return wl[t?wl.indexOf(t):0]}function W0e(e){for(let o=wl.indexOf(e)+1,t=wl.length;o=o?t[n]:t[i];e[s]=!0}}function Q0e(e,o,t,n){let i=e._adapter,s=+i.startOf(o[0].value,n),d=o[o.length-1].value,u,f;for(u=s;u<=d;u=+i.add(u,1,n))f=t[u],f>=0&&(o[f].major=!0);return o}function JR(e,o,t){let n=[],i={},s=o.length,d,u;for(d=0;d{class e extends Md{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,n={}){let i=t.time||(t.time={}),s=this._adapter=new ame._date(t.adapters.date);s.init(n),q0(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:WR(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,n=this._adapter,i=t.time.unit||"day",{min:s,max:d,minDefined:u,maxDefined:f}=this.getUserBounds();function _(C){!u&&!isNaN(C.min)&&(s=Math.min(s,C.min)),!f&&!isNaN(C.max)&&(d=Math.max(d,C.max))}(!u||!f)&&(_(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&_(this.getMinMax(!1))),s=Fa(s)&&!isNaN(s)?s:+n.startOf(Date.now(),i),d=Fa(d)&&!isNaN(d)?d:+n.endOf(Date.now(),i)+1,this.min=Math.min(s,d-1),this.max=Math.max(s+1,d)}_getLabelBounds(){let t=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],i=t[t.length-1]),{min:n,max:i}}buildTicks(){let t=this.options,n=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);let d=this.min,u=this.max,f=IB(s,d,u);return this._unit=n.unit||(i.autoSkip?QR(n.minUnit,this.min,this.max,this._getLabelCapacity(d)):U0e(this,f.length,n.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:W0e(this._unit),this.initOffsets(s),t.reverse&&f.reverse(),JR(this,f,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,i=0,s,d;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?n=1-s:n=(this.getDecimalForValue(t[1])-s)/2,d=this.getDecimalForValue(t[t.length-1]),t.length===1?i=d:i=(d-this.getDecimalForValue(t[t.length-2]))/2);let u=t.length<3?.5:.25;n=_r(n,0,u),i=_r(i,0,u),this._offsets={start:n,end:i,factor:1/(n+1+i)}}_generate(){let t=this._adapter,n=this.min,i=this.max,s=this.options,d=s.time,u=d.unit||QR(d.minUnit,n,i,this._getLabelCapacity(n)),f=Kn(s.ticks.stepSize,1),_=u==="week"?d.isoWeekday:!1,C=Sd(_)||_===!0,x={},y=n,P,S;if(C&&(y=+t.startOf(y,"isoWeek",_)),y=+t.startOf(y,C?"day":u),t.diff(i,n,u)>1e5*f)throw new Error(n+" and "+i+" are too far apart with stepSize of "+f+" "+u);let M=s.ticks.source==="data"&&this.getDataTimestamps();for(P=y,S=0;P+D)}getLabelForValue(t){let n=this._adapter,i=this.options.time;return i.tooltipFormat?n.format(t,i.tooltipFormat):n.format(t,i.displayFormats.datetime)}format(t,n){let s=this.options.time.displayFormats,d=this._unit,u=n||s[d];return this._adapter.format(t,u)}_tickFormatFunction(t,n,i,s){let d=this.options,u=d.ticks.callback;if(u)return oa(u,[t,n,i],this);let f=d.time.displayFormats,_=this._unit,C=this._majorUnit,x=_&&f[_],y=C&&f[C],P=i[n],S=C&&y&&P&&P.major;return this._adapter.format(t,s||(S?y:x))}generateTickLabels(t){let n,i,s;for(n=0,i=t.length;n0?f:1}getDataTimestamps(){let t=this._cache.data||[],n,i;if(t.length)return t;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(n=0,i=s.length;n=e[n].pos&&o<=e[i].pos&&({lo:n,hi:i}=cc(e,"pos",o)),{pos:s,time:u}=e[n],{pos:d,time:f}=e[i]):(o>=e[n].time&&o<=e[i].time&&({lo:n,hi:i}=cc(e,"time",o)),{time:s,pos:u}=e[n],{time:d,pos:f}=e[i]);let _=d-s;return _?u+(f-u)*(o-s)/_:u}var IM=class extends EM{static id="timeseries";static defaults=EM.defaults;constructor(o){super(o),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let o=this._getTimestampsForTable(),t=this._table=this.buildLookupTable(o);this._minPos=lC(t,this.min),this._tableRange=lC(t,this.max)-this._minPos,super.initOffsets(o)}buildLookupTable(o){let{min:t,max:n}=this,i=[],s=[],d,u,f,_,C;for(d=0,u=o.length;d=t&&_<=n&&i.push(_);if(i.length<2)return[{time:t,pos:0},{time:n,pos:1}];for(d=0,u=i.length;di-s)}_getTimestampsForTable(){let o=this._cache.all||[];if(o.length)return o;let t=this.getDataTimestamps(),n=this.getLabelTimestamps();return t.length&&n.length?o=this.normalize(t.concat(n)):o=t.length?t:n,o=this._cache.all=o,o}getDecimalForValue(o){return(lC(this._table,o)-this._minPos)/this._tableRange}getValueForPixel(o){let t=this._offsets,n=this.getDecimalForPixel(o)/t.factor-t.end;return lC(this._table,n*this._tableRange+this._minPos,!0)}},Y0e=Object.freeze({__proto__:null,CategoryScale:E0e,LinearScale:PM,LogarithmicScale:TM,RadialLinearScale:DM,TimeScale:EM,TimeSeriesScale:IM}),Gp=[ome,Ide,P0e,Y0e];var J0e=e=>({display:e});function K0e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}Pl.register(...Gp);var vC=(()=>{class e{constructor(){this.homeService=T(B0),this.route=T(Ie),this.dateUtils=T(Zt),this.officeId=new it,this.timescale=new it,this.hideOutput=!0,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.getChartData(),this.initializeControls()}initializeControls(){this.officeId.patchValue(1),this.timescale.patchValue("Day")}getChartData(){ul(this.officeId.valueChanges,this.timescale.valueChanges).pipe(lF(1)).subscribe(()=>{let t=this.officeId.value,n=this.timescale.value;switch(n){case"Day":let i=this.homeService.getClientTrendsByDay(t),s=this.homeService.getLoanTrendsByDay(t);d0([i,s]).subscribe(C=>{let x=this.getLabels(n),y=this.getCounts(C[0],x,n,"client"),P=this.getCounts(C[1],x,n,"loan");this.setChart(x,y,P),this.hideOutput=!1});break;case"Week":let d=this.homeService.getClientTrendsByWeek(t),u=this.homeService.getLoanTrendsByWeek(t);d0([d,u]).subscribe(C=>{let x=this.getLabels(n),y=this.getCounts(C[0],x,n,"client"),P=this.getCounts(C[1],x,n,"loan");this.setChart(x,y,P),this.hideOutput=!1});break;case"Month":let f=this.homeService.getClientTrendsByMonth(t),_=this.homeService.getLoanTrendsByMonth(t);d0([f,_]).subscribe(C=>{let x=this.getLabels(n),y=this.getCounts(C[0],x,n,"client"),P=this.getCounts(C[1],x,n,"loan");this.setChart(x,y,P),this.hideOutput=!1});break}})}getLabels(t){let n=new Date,i=[];switch(t){case"Day":for(;i.length<12;){n.setDate(n.getDate()-1);let d=this.dateUtils.formatDate(n,"d/M");i.push(d)}break;case"Week":let s=new Date(n.getFullYear(),0,1);for(;i.length<12;){n.setDate(n.getDate()-7);let d=Math.ceil(((n.getTime()-s.getTime())/864e5+s.getDay()+1)/7);i.push(d)}break;case"Month":for(;i.length<12;){let d=this.dateUtils.formatDate(n,"MMMM");i.push(d),n.setMonth(n.getMonth()-1)}break}return i.reverse()}getCounts(t,n,i,s){let d=[];switch(i){case"Day":n.forEach(u=>{let f=t.find(_=>this.dateUtils.formatDate(_.days,"d/M")===u);d=this.updateCount(f,d,s)});break;case"Week":n.forEach(u=>{let f=t.find(_=>_.Weeks===u);d=this.updateCount(f,d,s)});break;case"Month":n.forEach(u=>{let f=t.find(_=>_.Months===u);d=this.updateCount(f,d,s)});break}return d}updateCount(t,n,i){if(t)switch(i){case"client":n.push(t.count);break;case"loan":n.push(t.lcount);break}else n.push(0);return n}setChart(t,n,i){this.chart?(this.chart.data.labels=t,this.chart.data.datasets[0].data=n,this.chart.data.datasets[1].data=i,this.chart.update()):this.chart=new Pl("client-trends-bar",{type:"line",data:{labels:t,datasets:[{label:"New Clients",data:n,backgroundColor:"dodgerblue",borderColor:"dodgerblue",borderWidth:2,fill:!1},{label:"Loans Disbursed",data:i,backgroundColor:"red",borderColor:"red",borderWidth:2,fill:!1}]},options:{responsive:!0,scales:{y:{min:0,title:{display:!0,text:"Values",color:"#1074B9"}}}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-trends-bar"]],decls:27,vars:20,consts:[[1,"card"],[1,"header"],[1,"flex-100"],["icon","chart-line"],["id","office",1,"flex-94"],[3,"formControl"],[3,"value"],[3,"ngStyle"],["id","client-trends-bar","width","800","height","465",1,"fallback"],["id","timescale","appearance","legacy",3,"formControl"],["value","Day"],["value","Week"],["value","Month"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"mat-card-header",1)(2,"h3",2),b(3,"fa-icon",3),c(4),p(5,"translate"),l(6,"div")(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",5),Se(12,K0e,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),l(17,"mat-button-toggle-group",9)(18,"mat-button-toggle",10),c(19),p(20,"translate"),r(),l(21,"mat-button-toggle",11),c(22),p(23,"translate"),r(),l(24,"mat-button-toggle",12),c(25),p(26,"translate"),r()()()()),n&2&&(a(4),v(" \xA0\xA0 ",m(5,8,"labels.inputs.Client Trends")," "),a(5),h(m(10,10,"labels.inputs.Office")),a(2),g("formControl",i.officeId),a(),we(i.officeData),a(3),g("ngStyle",Nt(18,J0e,i.hideOutput?"none":"block")),a(2),g("formControl",i.timescale),a(2),h(m(20,12,"labels.buttons.Day")),a(3),h(m(23,14,"labels.buttons.Week")),a(3),h(m(26,16,"labels.buttons.Month")))},dependencies:[ue,is,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,sa,ke,Mp,Dp,he],styles:[".card[_ngcontent-%COMP%]{min-width:18.5rem;padding:0}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]){margin-bottom:-1.2em}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#000000de}.card[_ngcontent-%COMP%] :where(#timescale[_ngcontent-%COMP%]){margin:2% 50%;transform:translate(-50%)}.card[_ngcontent-%COMP%] .fallback[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%;min-height:16.5rem}.dark-theme[_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]), .dark-theme [_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#fff}"]})}}return e})();var X0e=e=>({display:e});function Z0e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eue(e,o){e&1&&(l(0,"div",9)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.No Data")))}Pl.register(...Gp);var xC=(()=>{class e{constructor(){this.homeService=T(B0),this.route=T(Ie),this.officeId=new it,this.hideOutput=!0,this.showFallback=!0,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.getChartData(),this.officeId.patchValue(1)}getChartData(){this.officeId.valueChanges.subscribe(t=>{this.homeService.getDisbursedAmount(t).subscribe(n=>{let i=Object.entries(n[0]).map(s=>s[1]);i[0]===0&&i[1]===0?(this.showFallback=!0,this.hideOutput=!0):(this.setChart(i),this.showFallback=!1,this.hideOutput=!1)})})}setChart(t){this.chart?(this.chart.data.datasets[0].data=t,this.chart.update()):this.chart=new Pl("disbursement-pie",{type:"doughnut",data:{labels:["Pending","Disbursed"],datasets:[{backgroundColor:["dodgerblue","red"],data:t}]},options:{layout:{padding:{top:10,bottom:15}}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-amount-disbursed-pie"]],decls:18,vars:11,consts:[[1,"card"],[1,"header"],[1,"flex-100"],["icon","money-bill"],["id","office",1,"flex-94"],[3,"formControl"],[3,"value"],[3,"ngStyle"],["id","disbursement-pie","width","800","height","600"],[1,"fallback","align-center-center"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"mat-card-header",1)(2,"h3",2),b(3,"fa-icon",3),c(4),p(5,"translate"),l(6,"div")(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",5),Se(12,Z0e,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,eue,4,3,"div",9),r()()),n&2&&(a(4),v(" \xA0\xA0 ",m(5,5,"labels.inputs.Amount Pending / Disbursed")," "),a(5),h(m(10,7,"labels.inputs.Office")),a(2),g("formControl",i.officeId),a(),we(i.officeData),a(3),g("ngStyle",Nt(9,X0e,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,is,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,sa,ke,he],styles:[".card[_ngcontent-%COMP%]{min-width:18.5rem;padding:0}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]){margin-bottom:-1.2em}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#000000de}.card[_ngcontent-%COMP%] .fallback[_ngcontent-%COMP%]{height:20rem}.dark-theme[_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]), .dark-theme [_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#fff}"]})}}return e})();var tue=e=>({display:e});function iue(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function nue(e,o){e&1&&(l(0,"div",9)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.No Data")))}Pl.register(...Gp);var bC=(()=>{class e{constructor(){this.homeService=T(B0),this.route=T(Ie),this.officeId=new it,this.hideOutput=!0,this.showFallback=!1,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.getChartData(),this.officeId.patchValue(1)}getChartData(){this.officeId.valueChanges.subscribe(t=>{this.homeService.getCollectedAmount(t).subscribe(n=>{let i=Object.entries(n[0]).map(s=>s[1]);i[0]===0&&i[1]===0?(this.showFallback=!0,this.hideOutput=!0):(this.setChart(i),this.hideOutput=!1,this.showFallback=!1)})})}setChart(t){this.chart?(this.chart.data.datasets[0].data=t,this.chart.update()):this.chart=new Pl("collection-pie",{type:"doughnut",data:{labels:["Pending","Collected"],datasets:[{backgroundColor:["dodgerblue","red"],data:t}]},options:{layout:{padding:{top:10,bottom:15}}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-amount-collected-pie"]],decls:18,vars:11,consts:[[1,"card"],[1,"header"],[1,"flex-100"],["icon","donate"],["id","office",1,"flex-94"],[3,"formControl"],[3,"value"],[3,"ngStyle"],["id","collection-pie","width","800","height","600"],[1,"fallback","align-center-center"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"mat-card-header",1)(2,"h3",2),b(3,"fa-icon",3),c(4),p(5,"translate"),l(6,"div")(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",5),Se(12,iue,2,2,"mat-option",6,Pe),r()()()()(),l(14,"mat-card-content")(15,"div",7),b(16,"canvas",8),r(),E(17,nue,4,3,"div",9),r()()),n&2&&(a(4),v(" \xA0\xA0 ",m(5,5,"labels.inputs.Amount Collected")," "),a(5),h(m(10,7,"labels.inputs.Office")),a(2),g("formControl",i.officeId),a(),we(i.officeData),a(3),g("ngStyle",Nt(9,tue,i.hideOutput?"none":"block")),a(2),I(i.showFallback?17:-1))},dependencies:[ue,is,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,sa,ke,he],styles:[".card[_ngcontent-%COMP%]{min-width:18.5rem;padding:0}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]){margin-bottom:-1.2em}.card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#000000de}.card[_ngcontent-%COMP%] .fallback[_ngcontent-%COMP%]{height:20rem}.dark-theme[_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]), .dark-theme [_nghost-%COMP%] .card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] :where(#office[_ngcontent-%COMP%]) :where(mat-label[_ngcontent-%COMP%]){color:#fff}"]})}}return e})();function oue(e,o){if(e&1&&(l(0,"mat-option",5)(1,"span"),c(2),r()()),e&2){let t=o.$implicit;g("routerLink",t.path),a(2),h(t.activity)}}var yC=(()=>{class e{constructor(){this.router=T(qe),this.searchText=new it,this.allActivities=A_,this.userActivity=JSON.parse(localStorage.getItem("mifosXLocation"))}ngOnInit(){this.recentActivities=this.getRecentActivities(),this.frequentActivities=this.getFrequentActivities(),this.setFilteredActivities()}getRecentActivities(){let t=this.userActivity.reverse(),n=[];return t.forEach(s=>{n.includes(s)||n.push(s)}),n.filter(s=>!["/","/login","/home","/dashboard"].includes(s)).slice(0,8)}getFrequentActivities(){let t={},n=this.userActivity?.length;for(;n;){let d=this.userActivity[--n];t[d]=(t[d]||0)+1}return Object.entries(t).sort((d,u)=>u[1]-d[1]).map(d=>d[0]).filter(d=>!["/","/login","/home","/dashboard"].includes(d)).slice(0,8)}navigatetoActivity(t){this.router.navigateByUrl(t)}setFilteredActivities(){this.filteredActivities=this.searchText.valueChanges.pipe(Mn(t=>typeof t=="string"?t:t.activity),Mn(t=>t?this.filterActivity(t):this.allActivities))}filterActivity(t){let n=t.toLowerCase();return this.allActivities.filter(i=>i.activity.toLowerCase().indexOf(n)===0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-dashboard"]],decls:22,vars:7,consts:[["activitySearch","matAutocomplete"],[1,"container"],[1,"card","layout-column","gap-40px"],[1,"layout-row","search"],["matInput","",3,"matAutocomplete","formControl"],[3,"routerLink"],[1,"layout-row","top-card"],[1,"trends-bar"],[1,"layout-row","bottom-card"],[1,"amount-disbursed"],[1,"amount-collected"]],template:function(n,i){if(n&1&&(l(0,"div",1)(1,"mat-card",2)(2,"div",3)(3,"mat-card-content")(4,"mat-form-field")(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4),r(),l(9,"mat-autocomplete",null,0),Se(11,oue,3,2,"mat-option",5,Pe),p(13,"async"),r()()(),l(14,"div",6)(15,"div",7),b(16,"mifosx-client-trends-bar"),r()(),l(17,"div",8)(18,"div",9),b(19,"mifosx-amount-disbursed-pie"),r(),l(20,"div",10),b(21,"mifosx-amount-collected-pie"),r()()()()),n&2){let s=ve(10);a(6),h(m(7,3,"labels.placeholders.Search Activity")),a(2),g("matAutocomplete",s)("formControl",i.searchText),a(3),we(m(13,5,i.filteredActivities))}},dependencies:[ue,fe,st,$e,_n,Oe,Ue,Je,Fe,Be,ze,ft,er,Za,vC,xC,bC,Ka,he],styles:[".card[_ngcontent-%COMP%]{box-sizing:border-box;padding:2%;display:flex;flex-direction:column;overflow-x:hidden}.card[_ngcontent-%COMP%] .search[_ngcontent-%COMP%]{width:100%;padding:12px}.card[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{width:100%}.card[_ngcontent-%COMP%] .search[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%}.card[_ngcontent-%COMP%] .top-card[_ngcontent-%COMP%]{flex:1 0 100%}.card[_ngcontent-%COMP%] .top-card[_ngcontent-%COMP%] .trends-bar[_ngcontent-%COMP%]{width:100%;flex:1 0 100%}.card[_ngcontent-%COMP%] .bottom-card[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;gap:2px}.card[_ngcontent-%COMP%] .bottom-card[_ngcontent-%COMP%] .amount-collected[_ngcontent-%COMP%], .card[_ngcontent-%COMP%] .bottom-card[_ngcontent-%COMP%] .amount-disbursed[_ngcontent-%COMP%]{flex:1 0 calc(40% - 10px);padding:0;margin:10px}@media screen and (width <= 768px){.top-card[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%]{flex-direction:column}.top-card[_ngcontent-%COMP%] .trends-bar[_ngcontent-%COMP%], .top-card[_ngcontent-%COMP%] .amount-collected[_ngcontent-%COMP%], .top-card[_ngcontent-%COMP%] .amount-disbursed[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%] .trends-bar[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%] .amount-collected[_ngcontent-%COMP%], .bottom-card[_ngcontent-%COMP%] .amount-disbursed[_ngcontent-%COMP%]{flex:1 0 100%;width:100%;margin:10px 0}}"]})}}return e})();var zr=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var aue=[_o.withShell([{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:k_,data:{title:"Home"}},{path:"dashboard",component:yC,data:{title:"Dashboard",breadcrumb:"Dashboard"},resolve:{offices:zr}}])],C9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr],imports:[gn.forChild(aue),gn]})}}return e})();var v9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[kg,oo,ha,C9,yp,k_,yC,bC,xC,vC,F_,x_]})}}return e})();function rue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Username")," "),a(3),h(m(5,4,"labels.commons.is required")))}function lue(e,o){e&1&&(l(0,"span",3),b(1,"fa-icon",11),r())}function sue(e,o){e&1&&b(0,"fa-icon",13)}function cue(e,o){e&1&&b(0,"fa-icon",14)}function pue(e,o){if(e&1){let t=Y();l(0,"button",12),R("mousedown",function(){V(t);let i=w(2);return q(i.togglePasswordVisibility())})("mouseup",function(){V(t);let i=w(2);return q(i.togglePasswordVisibility())}),E(1,sue,1,0,"fa-icon",13),E(2,cue,1,0,"fa-icon",14),r()}if(e&2){let t=w(2);a(),I(t.passwordInputType==="password"?1:-1),a(),I(t.passwordInputType==="text"?2:-1)}}function mue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.pass is required")))}function due(e,o){e&1&&b(0,"mat-progress-bar",8)}function uue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function fue(e,o){if(e&1){let t=Y();l(0,"div")(1,"form",1),R("ngSubmit",function(){V(t);let i=w();return q(i.login())}),l(2,"mat-form-field",2)(3,"span",3),b(4,"fa-icon",4),r(),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5),E(9,rue,6,6,"mat-error"),r(),l(10,"mat-form-field",2),E(11,lue,2,0,"span",3),l(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",6),E(16,pue,3,2,"button",7),E(17,mue,6,6,"mat-error"),r(),E(18,due,1,0,"mat-progress-bar",8),l(19,"button",9),c(20),p(21,"translate"),E(22,uue,1,1,"mat-spinner",10),r()()()}if(e&2){let t=w();a(),g("formGroup",t.loginForm),a(5),h(m(7,13,"labels.inputs.Username")),a(3),I(t.loginForm.controls.username.hasError("required")?9:-1),a(2),I(t.loginForm.controls.password.value?-1:11),a(2),h(m(14,15,"labels.inputs.Password")),a(2),g("type",Le(t.passwordInputType)),a(),I(t.loginForm.controls.password.value&&!t.loading?16:-1),a(),I(t.loginForm.controls.password.hasError("required")?17:-1),a(),I(t.loading?18:-1),a(),g("disabled",!t.loginForm.valid),a(),v(" ",m(21,17,"labels.buttons.Login")," "),a(2),I(t.loading?22:-1)}}function hue(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}function gue(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"button",16),R("click",function(){V(t);let i=w(2);return q(i.loginOIDC())}),c(2),p(3,"translate"),E(4,hue,1,1,"mat-spinner",10),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,2,"labels.buttons.Login")," "),a(2),I(t.loading?4:-1)}}function _ue(e,o){if(e&1){let t=Y();l(0,"div")(1,"p"),c(2,"Welcome! You are logged in."),r(),l(3,"button",17),R("click",function(){V(t);let i=w(2);return q(i.logout())}),c(4,"Logout"),r(),l(5,"button",17),R("click",function(){V(t);let i=w(2);return q(i.loadProtectedData())}),c(6,"Load Protected Data"),r(),l(7,"pre"),c(8),p(9,"json"),r()()}if(e&2){let t=w(2);a(8),h(m(9,1,t.protectedData))}}function Cue(e,o){if(e&1&&(l(0,"div",0),E(1,gue,5,4,"div",15),E(2,_ue,10,3,"div"),r()),e&2){let t=w();a(),I(t.isLoggedIn?-1:1),a(),I(t.isLoggedIn?2:-1)}}var SC=(()=>{class e{constructor(){this.formBuilder=T(WF),this.authenticationService=T(Wo),this.authService=T(Ia),this.passwordInputType="password",this.loading=!1,this.oidcServerEnabled=un.OIDC.oidcServerEnabled,this.enableRememberMe=un.enableRememberMe===!0}ngOnInit(){this.createLoginForm()}login(){this.loading=!0,this.loginForm.disable(),this.authenticationService.login(this.loginForm.value).pipe(Ys(()=>{this.loginForm.reset(),this.loginForm.markAsPristine(),this.loginForm.enable(),this.loading=!1})).subscribe()}loginOIDC(){this.authService.login()}getUsers(){this.authService.getUsers()}logout(){this.authService.logout()}togglePasswordVisibility(){this.passwordInputType=this.passwordInputType==="password"?"text":"password"}createLoginForm(){this.loginForm=this.formBuilder.group({username:["",ce.required],password:["",[ce.required,ce.minLength(8)]],remember:!1})}getErrorMessage(t){let n=this.loginForm.get(t);return n?.hasError("required")?"This field is required":n?.hasError("minlength")?`Minimum length is ${n.errors?.minlength.requiredLength}`:""}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-login-form"]],decls:2,vars:2,consts:[[1,"container","container-margin"],["id","login-form",1,"layout-column",3,"ngSubmit","formGroup"],[1,"login-input","flex-align-center"],["matPrefix","",1,"m-r-10"],["icon","user-circle","size","lg"],["matInput","","type","text","autocomplete","off","formControlName","username"],["matInput","","formControlName","password",3,"type"],["type","button","matSuffix","","mat-icon-button",""],["mode","indeterminate"],["mat-raised-button","","color","primary",1,"login-button-first","flex-align-center",3,"disabled"],[3,"diameter"],["icon","lock","size","lg"],["type","button","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"],[1,"layout-column","align-center-center"],["mat-raised-button","","color","primary",1,"login-button-first","flex-align-center",3,"click"],[3,"click"]],template:function(n,i){n&1&&(E(0,fue,23,19,"div"),E(1,Cue,3,2,"div",0)),n&2&&(I(i.oidcServerEnabled?-1:0),a(),I(i.oidcServerEnabled?1:-1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Fe,Be,ut,ai,ze,xe,b0,ke,wi,ns,w0,DF,he],styles:["#login-form[_ngcontent-%COMP%] .login-input[_ngcontent-%COMP%]{width:14rem;margin-bottom:.1rem}#login-form[_ngcontent-%COMP%] [matPrefix][_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:16px;position:absolute;top:50%;left:190px;transform:translateY(-50%)}#login-form[_ngcontent-%COMP%] .login-button-first[_ngcontent-%COMP%]{width:14rem;margin-top:.8rem;background-color:#1976d2;color:#fff;border-radius:8px;margin-bottom:.5rem}#login-form[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{float:right;margin:.5rem 0} .mat-mdc-form-field-infix{width:144px!important}.container-margin[_ngcontent-%COMP%]{margin-top:8rem;margin-bottom:8rem}"]})}}return e})();var jp=e=>{let o=e.get("password"),t=e.get("repeatPassword");return o&&t&&o.value!==t.value?{passwordsDoNotMatch:!0}:null};function vue(e,o){e&1&&b(0,"fa-icon",12)}function xue(e,o){e&1&&b(0,"fa-icon",13)}function bue(e,o){if(e&1){let t=Y();l(0,"button",11),R("mousedown",function(){V(t);let i=w();return q(i.passwordInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.passwordInputType="password")}),E(1,vue,1,0,"fa-icon",12),E(2,xue,1,0,"fa-icon",13),r()}if(e&2){let t=w();a(),I(t.passwordInputType==="password"?1:-1),a(),I(t.passwordInputType==="text"?2:-1)}}function yue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.is required")))}function Sue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Password")," "),a(3),h(m(5,4,"labels.commons.is required")))}function wue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function Pue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should not be more than")," "),a(3),h(m(5,4,"labels.commons.50 characters long")))}function Tue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),l(8,"strong"),c(9),p(10,"translate"),r(),c(11," ,"),l(12,"strong"),c(13),p(14,"translate"),r()()),e&2&&(a(),v(" ",m(2,5,"labels.commons.Password should include a")," "),a(3),h(m(5,7,"labels.commons.numeral")),a(2),v(" ",m(7,9,"labels.commons.and at")," "),a(3),h(m(10,11,"labels.commons.least one uppercase")),a(4),h(m(14,13,"labels.commons.lowercase and special character")))}function Mue(e,o){e&1&&(l(0,"p",8),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.text.Passwords")," "),a(3),h(m(5,4,"labels.text.do not match")))}function Due(e,o){e&1&&b(0,"mat-spinner",10),e&2&&g("diameter",20)}var wC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Wo),this.passwordsUtility=T(S0),this.loading=!1}ngOnInit(){this.createResetPasswordForm(),this.passwordInputType="password"}resetPassword(){this.loading=!0,this.resetPasswordForm.disable(),this.authenticationService.resetPassword(this.resetPasswordForm.value).pipe(Ys(()=>{this.resetPasswordForm.reset(),this.resetPasswordForm.markAsPristine(),this.resetPasswordForm.enable(),this.loading=!1})).subscribe()}createResetPasswordForm(){this.resetPasswordForm=this.formBuilder.group({password:["",this.passwordsUtility.getPasswordValidators()],repeatPassword:["",ce.required]},{validator:jp})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reset-password"]],decls:30,vars:24,consts:[["id","reset-password-form",1,"layout-column",3,"ngSubmit","formGroup"],[1,"reset-password-input","flex-fill","align-center"],["matPrefix",""],["icon","lock","size","lg",1,"m-r-10"],["matInput","","required","","formControlName","password",3,"type"],["mat-button","","matSuffix","","mat-icon-button",""],["icon","check-circle","size","lg",1,"m-r-10"],["type","password","matInput","","required","","formControlName","repeatPassword"],[1,"reset-password-error"],["mat-raised-button","","color","primary",1,"reset-password-button","align-center",3,"disabled"],[3,"diameter"],["mat-button","","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"]],template:function(n,i){n&1&&(l(0,"p"),c(1),p(2,"translate"),r(),b(3,"mat-divider"),l(4,"form",0),R("ngSubmit",function(){return i.resetPassword()}),l(5,"mat-form-field",1)(6,"span",2),b(7,"fa-icon",3),r(),l(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",4),E(12,bue,3,2,"button",5),E(13,yue,6,6,"mat-error"),r(),l(14,"mat-form-field",1)(15,"span",2),b(16,"fa-icon",6),r(),l(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",7),E(21,Sue,6,6,"mat-error"),E(22,wue,6,6,"mat-error"),E(23,Pue,6,6,"mat-error"),E(24,Tue,15,15,"mat-error"),r(),E(25,Mue,6,6,"p",8),l(26,"button",9),c(27),p(28,"translate"),E(29,Due,1,1,"mat-spinner",10),r()()),n&2&&(a(),v("",m(2,16,"labels.text.Please update your password"),":"),a(3),g("formGroup",i.resetPasswordForm),a(5),h(m(10,18,"labels.inputs.Password")),a(2),g("type",Le(i.passwordInputType)),a(),I(i.resetPasswordForm.controls.password.value&&!i.loading?12:-1),a(),I(i.resetPasswordForm.controls.password.hasError("required")?13:-1),a(5),h(m(19,20,"labels.inputs.Confirm Password")),a(3),I(i.resetPasswordForm.controls.password.hasError("required")?21:-1),a(),I(i.resetPasswordForm.controls.password.hasError("minlength")?22:-1),a(),I(i.resetPasswordForm.controls.password.hasError("maxlength")?23:-1),a(),I(i.resetPasswordForm.controls.password.hasError("pattern")&&!(i.resetPasswordForm.controls.password.hasError("minlength")||i.resetPasswordForm.controls.password.hasError("maxlength"))?24:-1),a(),I(i.resetPasswordForm.errors!=null&&i.resetPasswordForm.errors.passwordsDoNotMatch&&!i.resetPasswordForm.controls.password.hasError("required")&&!i.resetPasswordForm.controls.repeatPassword.hasError("required")?25:-1),a(),g("disabled",!i.resetPasswordForm.valid),a(),v(" ",m(28,22,"labels.buttons.Reset Password")," "),a(2),I(i.loading?29:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,xe,Ri,b0,ke,wi,w0,he],styles:["#reset-password-form[_ngcontent-%COMP%] .reset-password-input[_ngcontent-%COMP%]{width:14rem;margin-top:.6rem}#reset-password-form[_ngcontent-%COMP%] .reset-password-button[_ngcontent-%COMP%]{width:14rem;margin-top:1rem}#reset-password-form[_ngcontent-%COMP%] .reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}#reset-password-form[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{float:right;margin:.5rem 0}"]})}}return e})();function Eue(e,o){e&1&&(l(0,"p"),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.text.Please select a delivery method"),":"))}function Iue(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),p(3,"translate"),r()),e&2){let t=o.$implicit;g("value",t),a(),PF(" ",m(2,5,"labels.inputs.Send")," ",t.name," ",m(3,7,"labels.inputs.to")," ",t.target," ")}}function Oue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Aue(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){V(t);let i=w();return q(i.requestOTP())}),l(1,"mat-radio-group",2),Se(2,Iue,4,9,"mat-radio-button",3,Pe),r(),l(4,"button",4),c(5),p(6,"translate"),E(7,Oue,1,1,"mat-spinner",5),r()()}if(e&2){let t=w();g("formGroup",t.twoFactorAuthenticationDeliveryMethodForm),a(2),we(t.twoFactorAuthenticationDeliveryMethods),a(2),g("disabled",!t.twoFactorAuthenticationDeliveryMethodForm.valid),a(),v(" ",m(6,4,"labels.buttons.Request OTP")," "),a(2),I(t.loading?7:-1)}}function Fue(e,o){e&1&&(l(0,"p"),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.text.Please enter the OTP"),":"))}function kue(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.OTP")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Rue(e,o){e&1&&b(0,"mat-spinner",5),e&2&&g("diameter",20)}function Nue(e,o){if(e&1){let t=Y();l(0,"form",1),R("ngSubmit",function(){V(t);let i=w();return q(i.validateOTP())}),l(1,"mat-form-field",6)(2,"span",7),b(3,"fa-icon",8),r(),l(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",9),l(8,"mat-hint",10)(9,"strong"),c(10),p(11,"translate"),r(),c(12),r(),l(13,"mat-hint",11)(14,"strong"),c(15),p(16,"translate"),r(),c(17),p(18,"translate"),r(),E(19,kue,7,9,"mat-error"),r(),l(20,"button",12),c(21),p(22,"translate"),E(23,Bue,1,1,"mat-spinner",5),r(),l(24,"button",13),R("click",function(){V(t);let i=w();return q(i.resendOTP())}),c(25),p(26,"translate"),E(27,Rue,1,1,"mat-spinner",5),r()()}if(e&2){let t=w();g("formGroup",t.twoFactorAuthenticationForm),a(5),h(m(6,14,"labels.inputs.OTP")),a(5),v("",m(11,16,"labels.inputs.Delivery Method"),":"),a(2),v(" ",t.selectedTwoFactorAuthenticationDeliveryMethod.name," "),a(3),v("",m(16,18,"labels.inputs.Validity"),":"),a(2),le(" ",t.tokenValidityTime/60," ",m(18,20,"labels.inputs.mins")," "),a(2),I(t.twoFactorAuthenticationForm.controls.otp.hasError("required")?19:-1),a(),g("disabled",!t.twoFactorAuthenticationForm.valid),a(),v(" ",m(22,22,"labels.buttons.Validate OTP")," "),a(2),I(t.loading?23:-1),a(),g("disabled",t.loading||t.resendOTPLoading),a(),v(" ",m(26,24,"labels.buttons.Resend OTP")," "),a(2),I(t.resendOTPLoading?27:-1)}}var PC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.authenticationService=T(Wo),this.otpRequested=!1,this.loading=!1,this.resendOTPLoading=!1}ngOnInit(){this.createTwoFactorAuthenticationDeliveryMethodForm(),this.authenticationService.getDeliveryMethods().subscribe(t=>{this.twoFactorAuthenticationDeliveryMethods=t})}requestOTP(){this.loading=!0,this.twoFactorAuthenticationDeliveryMethodForm.disable(),this.selectedTwoFactorAuthenticationDeliveryMethod=this.twoFactorAuthenticationDeliveryMethodForm.value.twoFactorAuthenticationDeliveryMethod,this.authenticationService.requestOTP(this.selectedTwoFactorAuthenticationDeliveryMethod).pipe(Ys(()=>{this.twoFactorAuthenticationDeliveryMethodForm.reset(),this.twoFactorAuthenticationDeliveryMethodForm.markAsPristine(),this.twoFactorAuthenticationDeliveryMethodForm.enable(),this.loading=!1})).subscribe(t=>{this.createTwoFactorAuthenticationForm(),this.otpRequested=!0,this.tokenValidityTime=t.tokenLiveTimeInSec})}validateOTP(){this.loading=!0,this.twoFactorAuthenticationForm.disable(),this.authenticationService.validateOTP(this.twoFactorAuthenticationForm.value.otp).pipe(Ys(()=>{this.twoFactorAuthenticationForm.reset(),this.twoFactorAuthenticationForm.markAsPristine(),this.twoFactorAuthenticationForm.enable(),this.loading=!1})).subscribe()}resendOTP(){this.resendOTPLoading=!0,this.twoFactorAuthenticationForm.disable(),this.authenticationService.requestOTP(this.selectedTwoFactorAuthenticationDeliveryMethod).pipe(Ys(()=>{this.twoFactorAuthenticationForm.reset(),this.twoFactorAuthenticationForm.markAsPristine(),this.twoFactorAuthenticationForm.enable(),this.resendOTPLoading=!1})).subscribe()}createTwoFactorAuthenticationDeliveryMethodForm(){this.twoFactorAuthenticationDeliveryMethodForm=this.formBuilder.group({twoFactorAuthenticationDeliveryMethod:["",ce.required]})}createTwoFactorAuthenticationForm(){this.twoFactorAuthenticationForm=this.formBuilder.group({otp:["",ce.required]})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-two-factor-authentication"]],decls:9,vars:7,consts:[[1,"layout-column","two-factor-auth-form",3,"formGroup"],[1,"layout-column","two-factor-auth-form",3,"ngSubmit","formGroup"],["formControlName","twoFactorAuthenticationDeliveryMethod",1,"layout-column","align-center","radio-group-spacing"],[3,"value"],["mat-raised-button","","color","primary",1,"flex-fill","align-center",3,"disabled"],[3,"diameter"],[1,"two-factor-auth-input","flex-fill","align-center"],["matPrefix",""],["icon","user-shield",1,"m-r-10"],["type","password","matInput","","autocomplete","off","required","","formControlName","otp"],["align","start"],["align","end"],["mat-raised-button","","color","primary",1,"two-factor-auth-button","align-center",3,"disabled"],["type","button","mat-button","",1,"two-factor-auth-button","align-center",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"p")(1,"strong"),c(2),p(3,"translate"),r()(),b(4,"mat-divider"),E(5,Eue,3,3,"p"),E(6,Aue,8,6,"form",0),E(7,Fue,3,3,"p"),E(8,Nue,28,26,"form",0)),n&2&&(a(2),h(m(3,5,"labels.text.Two Factor Authentication")),a(3),I(i.otpRequested?-1:5),a(),I(i.otpRequested?-1:6),a(),I(i.otpRequested?7:-1),a(),I(i.otpRequested?8:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,qa,ze,xe,Ri,tr,ir,w0,b0,ke,he],styles:[".two-factor-auth-form[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]{margin-bottom:.5rem}.two-factor-auth-form[_ngcontent-%COMP%] mat-radio-button[_ngcontent-%COMP%]:last-child{margin-bottom:1rem}.two-factor-auth-form[_ngcontent-%COMP%] .two-factor-auth-button[_ngcontent-%COMP%]{width:14rem;margin-top:.5rem}.two-factor-auth-form[_ngcontent-%COMP%] .two-factor-auth-input[_ngcontent-%COMP%]{width:14rem}.two-factor-auth-form[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{float:right;margin:.5rem 0}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();function Lue(e,o){e&1&&b(0,"mifosx-server-selector",14)}function Vue(e,o){e&1&&b(0,"mifosx-tenant-selector")}function que(e,o){e&1&&b(0,"mifosx-login-form")}function zue(e,o){e&1&&b(0,"mifosx-reset-password")}function Hue(e,o){e&1&&b(0,"mifosx-two-factor-authentication")}var TC=(()=>{class e{constructor(){this.alertService=T(Ur),this.settingsService=T(Ot),this.router=T(qe),this.environment=un,this.resetPassword=!1,this.twoFactorAuthenticationRequired=!1}ngOnInit(){this.alert$=this.alertService.alertEvent.subscribe(t=>{let n=t.type;n==="Password Expired"?(this.twoFactorAuthenticationRequired=!1,this.resetPassword=!0):n==="Two Factor Authentication Required"?(this.resetPassword=!1,this.twoFactorAuthenticationRequired=!0):n==="Authentication Success"&&(this.resetPassword=!1,this.twoFactorAuthenticationRequired=!1,this.router.navigate(["/"],{replaceUrl:!0}))})}ngOnDestroy(){this.alert$.unsubscribe()}reloadSettings(){this.settingsService.setTenantIdentifier(""),this.settingsService.setTenantIdentifier(un.fineractPlatformTenantId||"default"),this.settingsService.setTenantIdentifiers(un.fineractPlatformTenantIds.split(",")),this.settingsService.setServers(un.baseApiUrls.split(",")),window.location.reload()}displayTenantSelector(){return un.displayTenantSelector!=="false"}allowServerSwitch(){return un.allowServerSwitch!=="false"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-login"]],decls:88,vars:73,consts:[["resourcesMenu","matMenu"],["communityMenu","matMenu"],["contributeMenu","matMenu"],[1,"layout-row"],[1,"flex-70","layout-column","align-center","align-items-center","hide-lt-sm","cover"],[1,"cover-content"],[1,"mat-display-1","cover-title"],[1,"mat-headline","cover-description"],["href","https://mifos.org/","target","_blank",1,"cover-link"],["href","https://mifos.org/resources/community/","target","_blank",1,"cover-link"],["href","https://mifos.org/take-action/volunteer/","target","_blank",1,"cover-link"],[1,"layout-column","flex-gt-sm-30","login-container"],[1,"layout-row-reverse"],[1,"p-t-10","p-r-10","width-40"],[1,"p-t-10"],[1,"layout-row","align-center-center","flex-auto"],["src","assets/images/mifos_lg-logo.png",1,"img-container",3,"alt"],[1,"layout-column","align-center-center"],[1,"information-list","align-items-center","custom-horizontal-list","hide-lt-lg"],["mat-button","",3,"matMenuTriggerFor"],[3,"styleClass"],["align","end",1,"layout-row","m-b-20","m-r-10"],[3,"click"],["icon","refresh"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/52035622/User+Manual","target","_blank","mat-menu-item",""],["href","https://cwiki.apache.org/confluence/display/FINERACT/Apache+Fineract+1.0+Functional+Specifications","target","_blank","mat-menu-item",""],["href","https://cwiki.apache.org/confluence/display/FINERACT/Contributor%27s+Zone","target","_blank","mat-menu-item",""],["href","https://groups.google.com/forum/#!forum/mifosusers","target","_blank","mat-menu-item",""],["href","https://groups.google.com/forum/#!forum/mifosdeveloper","target","_blank","mat-menu-item",""],["href","https://mifos.org/resources/community/communications/#mifos-irc","target","_blank","mat-menu-item",""],["href","https://mifosforge.jira.com/wiki/spaces/MDZ/pages/92012624/Key+Design+Principles","target","_blank","mat-menu-item",""],["href","https://sourceforge.net/projects/mifos/","target","_blank","mat-menu-item",""],["href","https://mifos.org/donate/","target","_blank","mat-menu-item",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"div",4)(2,"div",5)(3,"h1",6),c(4),p(5,"translate"),r(),l(6,"p",7),c(7),p(8,"translate"),p(9,"translate"),l(10,"a",8),c(11),p(12,"translate"),r(),c(13),p(14,"translate"),l(15,"a",9),c(16),p(17,"translate"),r(),c(18),p(19,"translate"),l(20,"a",10),c(21),p(22,"translate"),r()()()(),l(23,"div",11)(24,"div",12),b(25,"mifosx-language-selector",13)(26,"mifosx-theme-toggle",14),E(27,Lue,1,0,"mifosx-server-selector",14),r(),l(28,"div",15),b(29,"img",16),p(30,"translate"),r(),l(31,"div",17),E(32,Vue,1,0,"mifosx-tenant-selector"),E(33,que,1,0,"mifosx-login-form"),l(34,"div",3),E(35,zue,1,0,"mifosx-reset-password"),E(36,Hue,1,0,"mifosx-two-factor-authentication"),r()(),l(37,"div",3)(38,"mat-list",18)(39,"mat-list-item")(40,"button",19),c(41),p(42,"translate"),r()(),l(43,"mat-list-item")(44,"button",19),c(45),p(46,"translate"),r()(),l(47,"mat-list-item")(48,"button",19),c(49),p(50,"translate"),r()()()(),b(51,"mifosx-footer",20),l(52,"div",21)(53,"a",22),R("click",function(){return V(s),q(i.reloadSettings())}),b(54,"fa-icon",23),r()()()(),l(55,"mat-menu",null,0)(57,"a",24),c(58),p(59,"translate"),r(),l(60,"a",25),c(61),p(62,"translate"),r(),l(63,"a",26),c(64),p(65,"translate"),r()(),l(66,"mat-menu",null,1)(68,"a",27),c(69),p(70,"translate"),r(),l(71,"a",28),c(72),p(73,"translate"),r(),l(74,"a",29),c(75),p(76,"translate"),r()(),l(77,"mat-menu",null,2)(79,"a",30),c(80),p(81,"translate"),r(),l(82,"a",31),c(83),p(84,"translate"),r(),l(85,"a",32),c(86),p(87,"translate"),r()()}if(n&2){let s=ve(56),d=ve(67),u=ve(78);a(4),h(m(5,31,"APP_NAME")),a(3),le(" ",m(8,33,"APP_NAME")," ",m(9,35,"labels.text.is designed by the")," "),a(4),h(m(12,37,"labels.text.Mifos Initiative")),a(2),v(". ",m(14,39,"labels.text.A")," "),a(3),h(m(17,41,"labels.text.global community")),a(2),v(" ",m(19,43,"labels.text.elimination of poverty")," "),a(3),v("",m(22,45,"labels.text.Get involved"),"!"),a(6),I(i.allowServerSwitch()?27:-1),a(2),g("alt",_0("",m(30,47,"APP_NAME")," Logo")),a(3),I(i.displayTenantSelector()?32:-1),a(),I(!i.resetPassword&&!i.twoFactorAuthenticationRequired?33:-1),a(2),I(i.resetPassword?35:-1),a(),I(i.twoFactorAuthenticationRequired?36:-1),a(4),g("matMenuTriggerFor",s),a(),v(" ",m(42,49,"labels.links.Resources")," "),a(3),g("matMenuTriggerFor",d),a(),v(" ",m(46,51,"labels.links.Community")," "),a(3),g("matMenuTriggerFor",u),a(),v(" ",m(50,53,"labels.links.Contribute")," "),a(2),g("styleClass","m-t-90"),a(7),h(m(59,55,"labels.links.User Manual")),a(3),h(m(62,57,"labels.links.Functional Specifications")),a(3),h(m(65,59,"labels.links.Developer Zone")),a(5),h(m(70,61,"labels.links.User Group")),a(3),h(m(73,63,"labels.links.Developer Group")),a(3),h(m(76,65,"labels.links.IRC")),a(5),h(m(81,67,"labels.links.Key Design Principles")),a(3),h(m(84,69,"labels.links.Working with Code")),a(3),h(m(87,71,"labels.links.Donate"))}},dependencies:[ue,fe,xe,Lg,Kg,lk,sk,SC,wC,PC,vl,Vo,nc,Ng,ke,ic,tc,he],styles:['mifosx-server-selector[_ngcontent-%COMP%]{padding-left:5px;width:40%}.mat-mdc-form-field-infix[_ngcontent-%COMP%]{width:144px!important}mifosx-tenant-selector[_ngcontent-%COMP%]{border-radius:8px;width:14rem;margin-bottom:.1rem}mifosx-tenant-selector[_ngcontent-%COMP%] .mat-mdc-form-field{width:14rem}mifosx-tenant-selector[_ngcontent-%COMP%] .mat-mdc-form-field-infix{width:144px!important;border-radius:8px}mifosx-tenant-selector[_ngcontent-%COMP%] [matPrefix] fa-icon{font-size:16px;position:absolute;left:190px;border-radius:8px;top:50%;transform:translateY(-50%)}.cover[_ngcontent-%COMP%]{background:url("./media/cover_image_resized.webp") no-repeat center center;background-size:cover;position:relative;z-index:0;max-width:70vw}.cover[_ngcontent-%COMP%]:after{content:"";opacity:.5;background:linear-gradient(#000,#000);width:100%;height:100%;top:0;left:0;display:block;z-index:1;position:absolute}.cover[_ngcontent-%COMP%] .width-40[_ngcontent-%COMP%]{width:40%}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%]{display:block;max-width:80%;margin:100px;color:#fff;text-align:justify;z-index:2;font-size:1.2rem}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%] .cover-title[_ngcontent-%COMP%]{border-bottom:2px solid #fff;margin:0 0 20px;padding-bottom:10px}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%] .cover-description[_ngcontent-%COMP%] .cover-link[_ngcontent-%COMP%]{text-decoration:underline;color:#fff}.cover[_ngcontent-%COMP%] .cover-content[_ngcontent-%COMP%] .cover-description[_ngcontent-%COMP%] .cover-link[_ngcontent-%COMP%]:hover{color:#d3d3d3}.login-container[_ngcontent-%COMP%]{box-shadow:1px 1px 50px #000;height:100vh;width:100%;min-width:21.5rem;padding:.5rem 1rem}.login-container[_ngcontent-%COMP%] .img-container[_ngcontent-%COMP%]{max-width:18rem;margin-bottom:2rem;gap:20px}.layout-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center}.custom-horizontal-list[_ngcontent-%COMP%]{display:flex!important;flex-direction:row!important;justify-content:center;align-items:center;gap:1.5rem}.custom-horizontal-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%]{width:auto!important;min-width:0!important;padding:0!important}.custom-horizontal-list[_ngcontent-%COMP%] mat-list-item[_ngcontent-%COMP%] [mat-button][_ngcontent-%COMP%]{white-space:nowrap}.p-t-10[_ngcontent-%COMP%]{padding-top:0}.p-r-10[_ngcontent-%COMP%]{padding-right:10px} .login-container mifosx-footer .divider{margin:2px 0 0!important;width:14rem!important} .login-container #footer{align-items:unset!important}']})}}return e})();var Gue=[{path:"login",component:TC,data:{title:"Login"}}],x9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(Gue),gn]})}}return e})();var b9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,x9,yp,TC,SC,wC,PC]})}}return e})();function jue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function $ue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Uue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Wue(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}var MC=(()=>{class e{constructor(){this.settingsService=T(Ot),this.languages=[{name:"English",code:"en"}],this.dateFormats=["dd MMMM yyyy","dd/MMMM/yyyy","dd-MMMM-yyyy","dd-MM-yy","MMMM-dd-yyyy","MMMM dd yyyy","MMMM/dd/yyyy","MM-dd-yy","yyyy-MM-dd"],this.decimals=["0","1","2","3","4","5","6","7","8"],this.language=new it(""),this.dateFormat=new it(""),this.decimalsToDisplay=new it("")}ngOnInit(){this.language.patchValue(this.settingsService.language),this.dateFormat.patchValue(this.settingsService.dateFormat),this.decimalsToDisplay.patchValue(this.settingsService.decimals),this.buildDependencies()}buildDependencies(){this.language.valueChanges.subscribe(t=>{this.settingsService.setLanguage(t)}),this.dateFormat.valueChanges.subscribe(t=>{this.settingsService.setDateFormat(t)}),this.decimalsToDisplay.valueChanges.subscribe(t=>{this.settingsService.setDecimalToDisplay(t)})}compareOptions(t,n){return t&&n&&t.code===n.code}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-settings"]],decls:89,vars:52,consts:[[1,"container"],[1,"layout-column"],[3,"formControl","compareWith"],[3,"value"],[3,"formControl"],[1,"header"],["type","url","matInput",""],["type","email","matInput",""],["type","tel","matInput",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-accordion")(2,"mat-expansion-panel")(3,"mat-expansion-panel-header")(4,"mat-panel-title"),c(5),p(6,"translate"),r()(),l(7,"div",1)(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",2),Se(13,jue,2,2,"mat-option",3,Pe),r()(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",4),Se(20,$ue,2,2,"mat-option",3,Pe),r()(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),l(26,"mat-select",4),Se(27,Uue,2,2,"mat-option",3,Pe),r()()()(),l(29,"mat-expansion-panel")(30,"mat-expansion-panel-header")(31,"mat-panel-title"),c(32),p(33,"translate"),r()(),l(34,"div",1)(35,"span",5),c(36),p(37,"translate"),r(),b(38,"mifosx-file-upload"),l(39,"span",5),c(40),p(41,"translate"),r(),b(42,"mifosx-file-upload"),l(43,"span",5),c(44),p(45,"translate"),r(),b(46,"mifosx-file-upload"),l(47,"span",5),c(48),p(49,"translate"),r(),b(50,"mifosx-file-upload"),r()(),l(51,"mat-expansion-panel")(52,"mat-expansion-panel-header")(53,"mat-panel-title"),c(54),p(55,"translate"),r()(),l(56,"div",1)(57,"span",5),c(58),p(59,"translate"),r(),b(60,"mifosx-theme-picker"),l(61,"mat-form-field")(62,"mat-label"),c(63),p(64,"translate"),r(),l(65,"mat-select"),Se(66,Wue,2,2,"mat-option",3,Pe),r()()()(),l(68,"mat-expansion-panel")(69,"mat-expansion-panel-header")(70,"mat-panel-title"),c(71),p(72,"translate"),r()(),l(73,"div",1)(74,"mat-form-field")(75,"mat-label"),c(76),p(77,"translate"),r(),b(78,"input",6),r(),l(79,"mat-form-field")(80,"mat-label"),c(81),p(82,"translate"),r(),b(83,"input",7),r(),l(84,"mat-form-field")(85,"mat-label"),c(86),p(87,"translate"),r(),b(88,"input",8),r()()()()()),n&2&&(a(5),v(" ",m(6,20,"labels.inputs.Main Configuration")," "),a(5),h(m(11,22,"labels.inputs.Default Language")),a(2),g("formControl",i.language)("compareWith",i.compareOptions),a(),we(i.languages),a(4),h(m(18,24,"labels.inputs.Default Date Format")),a(2),g("formControl",i.dateFormat),a(),we(i.dateFormats),a(4),h(m(25,26,"labels.inputs.Decimals to Display")),a(2),g("formControl",i.decimalsToDisplay),a(),we(i.decimals),a(5),v(" ",m(33,28,"labels.inputs.Images")," "),a(4),h(m(37,30,"labels.inputs.Favicon")),a(4),h(m(41,32,"labels.inputs.Cover Image")),a(4),h(m(45,34,"labels.inputs.Logo")),a(4),h(m(49,36,"labels.inputs.Logo with Organization Name")),a(6),v(" ",m(55,38,"labels.inputs.Theme and Font")," "),a(4),h(m(59,40,"labels.inputs.Theme")),a(5),h(m(64,42,"labels.inputs.Default Font")),a(3),we(i.fonts),a(5),v(" ",m(72,44,"labels.inputs.Contact Information")," "),a(5),h(m(77,46,"labels.inputs.Website")),a(5),h(m(82,48,"labels.inputs.Email")),a(5),h(m(87,50,"labels.inputs.Contact No")))},dependencies:[ue,fe,$e,_n,Fe,Be,ze,gt,ft,Dr,Pr,Tr,Mr,wp,ek,he],styles:[".header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var Que=[_o.withShell([{path:"settings",component:MC,data:{title:"Settings",breadcrumb:"Settings"}}])],y9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(Que),gn]})}}return e})();var S9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,y9,MC]})}}return e})();var DC=(()=>{class e{constructor(){this.http=T(ko)}getOffices(){return this.http.get("/offices")}getEmployees(t){let n=new rn().set("officeId",t.toString());return this.http.get("/staff",{params:n})}getCentersFromStaffId(t){let n=new rn().set("R_staffId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/GroupNamesByStaff",{params:n})}getCenter(t){let n=new rn().set("associations","groupMembers");return this.http.get(`/centers/${t}`,{params:n})}getCenterAccounts(t){return this.http.get(`/centers/${t}/accounts`)}getCenterSummary(t){let n=new rn().set("R_groupId",t.toString()).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:n})}getGroup(t){let n=new rn().set("associations","all");return this.http.get(`/groups/${t}`,{params:n})}getGroupAccounts(t){return this.http.get(`/groups/${t}/accounts`)}getClient(t){return this.http.get(`/clients/${t}`)}getClientAccounts(t){return this.http.get(`/clients/${t}/accounts`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Yue(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.External Id")," "))}function Jue(e,o){if(e&1&&(l(0,"div",5),b(1,"mifosx-external-identifier",6),r()),e&2){let t=w();a(),g("externalId",Le(t.officeData.externalId))}}var zf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-office-navigation"]],inputs:{officeData:"officeData",employeeData:"employeeData"},decls:21,vars:13,consts:[[1,"layout-row","align-items-center","gap-10px"],["icon","building","size","3x"],[1,"flex-fill"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"externalId"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group",2)(3,"mat-card-title")(4,"h2"),c(5),r()()()(),l(6,"mat-card-content")(7,"div",3),E(8,Yue,3,3,"div",4),E(9,Jue,2,2,"div",5),l(10,"div",4),c(11),p(12,"translate"),r(),l(13,"div",5),c(14),p(15,"dateFormat"),r(),l(16,"div",4),c(17),p(18,"translate"),r(),l(19,"div",5),c(20),r()()()),n&2&&(a(5),h(i.officeData.name),a(3),I(i.officeData.externalId?8:-1),a(),I(i.officeData.externalId?9:-1),a(2),v(" ",m(12,7,"labels.inputs.Opened On")," "),a(3),v(" ",m(15,9,i.officeData.openingDate)," "),a(3),v(" ",m(18,11,"labels.inputs.Number of Staff")," "),a(3),v(" ",i.employeeData?i.employeeData.length:""," "))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,Da,Pi,he],styles:["mat-card-header[_ngcontent-%COMP%]{padding:1.5rem 1.5rem 1rem}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:500;font-size:1.5rem;margin:0;line-height:1.4}@media (width <= 480px){mat-card-header[_ngcontent-%COMP%]{padding:1rem}mat-card-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1.25rem}}mat-card-content[_ngcontent-%COMP%]{padding:1.5rem}mat-card-content[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%}@media (width <= 768px){mat-card-content[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{grid-template-columns:100%}}mat-card-content[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.625rem 0;display:flex;align-items:center;font-size:.875rem;word-wrap:break-word;line-height:1.6}mat-card-content[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{font-weight:600}mat-card-content[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]:not(:last-child,:nth-last-child(2)){border-bottom:1px solid #ddd}@media (width <= 480px){mat-card-content[_ngcontent-%COMP%]{padding:1rem}}"]})}}return e})();function Kue(e,o){e&1&&(l(0,"div",6),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Mobile Number")," "))}function Xue(e,o){if(e&1&&(l(0,"div",7),c(1),r()),e&2){let t=w();a(),v(" ",t.employeeData.mobileNo," ")}}var Hf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-staff-navigation"]],inputs:{employeeData:"employeeData",centerData:"centerData"},decls:34,vars:26,consts:[[1,"layout-row","gap-5percent","header"],["icon","user","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),b(8,"fa-icon",4),r()()(),l(9,"mat-card-subtitle")(10,"p"),c(11),p(12,"translate"),r()()()()(),l(13,"mat-card-content")(14,"div",5)(15,"div",6),c(16),p(17,"translate"),r(),l(18,"div",7),c(19),p(20,"dateFormat"),r(),l(21,"div",6),c(22),p(23,"translate"),r(),l(24,"div",7),c(25),p(26,"yesNo"),r(),E(27,Kue,3,3,"div",6),E(28,Xue,2,1,"div",7),l(29,"div",6),c(30),p(31,"translate"),r(),l(32,"div",7),c(33),r()()()),n&2&&(a(6),v(" ",i.employeeData.displayName," "),a(),g("className",i.employeeData.isActive===!0?"true":"false"),a(),g("matTooltip",Le(i.employeeData.isActive===!0?"Active":"Inactive")),a(3),le("",m(12,14,"labels.inputs.Associated Office"),": ",i.employeeData.officeName),a(5),v(" ",m(17,16,"labels.inputs.Joined On")," "),a(3),v(" ",m(20,18,i.employeeData.joiningDate)," "),a(3),v(" ",m(23,20,"labels.inputs.Loan Officer")," "),a(3),v(" ",m(26,22,i.employeeData.isLoanOfficer)," "),a(2),I(i.employeeData.mobileNo?27:-1),a(),I(i.employeeData.mobileNo?28:-1),a(2),v(" ",m(31,24,"labels.inputs.Number of Centers")," "),a(3),v(" ",i.centerData?i.centerData.length:""," "))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,Pi,he,po],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Zue=()=>[10,25];function efe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function tfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function ife(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Account")))}function nfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function ofe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function afe(e,o){if(e&1&&(l(0,"td",16),b(1,"fa-icon",18),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.loanType.value))("icon",t.loanType.code==="accountType.individual"?"user":"users")}}function rfe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function lfe(e,o){if(e&1&&(l(0,"td",16)(1,"span",19),p(2,"statusLookup"),b(3,"fa-icon",20),r()()),e&2){let t=o.$implicit;a(),g("className",t.inArrears?"status-active-overdue":m(2,3,t.status.code)),a(2),g("matTooltip",Le(t.status.value))}}function sfe(e,o){e&1&&b(0,"tr",21)}function cfe(e,o){e&1&&b(0,"tr",22)}var Ns=(()=>{class e{constructor(){this.accountsFilterPipe=T(os),this.displayedColumns=["accountNo","productName","Type","Status"],this.showClosed=!1}set loanAccountData(t){this.accountData=t;let n=this.accountsFilterPipe.transform(t,"loan",this.showClosed?"closed":"open","isLoan");this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleClosed(){this.showClosed=!this.showClosed;let t=this.accountsFilterPipe.transform(this.accountData,"loan",this.showClosed?"closed":"open","isLoan");this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-account-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{loanAccountData:"loanAccountData"},decls:24,vars:9,consts:[[1,"layout-row","align-between","align-items-center"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","Type"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","Status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["matTooltipPosition","right","size","lg",3,"matTooltip","icon"],[3,"className"],["matTooltipPosition","right","icon","circle","size","md",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(6,"button",3),R("click",function(){return i.toggleClosed()}),c(7),r()(),l(8,"table",4),X(9,5),F(10,efe,3,3,"th",6)(11,tfe,2,1,"td",7),Z(),X(12,8),F(13,ife,3,3,"th",6)(14,nfe,2,1,"td",7),Z(),X(15,9),F(16,ofe,3,3,"th",10)(17,afe,2,3,"td",7),Z(),X(18,11),F(19,rfe,3,3,"th",10)(20,lfe,4,5,"td",7),Z(),F(21,sfe,1,0,"tr",12)(22,cfe,1,0,"tr",13),r(),b(23,"mat-paginator",14)),n&2&&(a(3),h(m(4,6,"labels.inputs.Filter")),a(4),v(" ",i.showClosed?"View Active":"View Closed"," "),a(),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Zue)))},dependencies:[ue,fe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var pfe=()=>[10,25];function mfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function dfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function ufe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Savings Account")))}function ffe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function hfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function gfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function _fe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function Cfe(e,o){if(e&1&&(l(0,"td",16)(1,"span",18),p(2,"statusLookup"),b(3,"fa-icon",19),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.status.code)),a(2),g("matTooltip",Le(t.status.value))}}function vfe(e,o){e&1&&b(0,"tr",20)}function xfe(e,o){e&1&&b(0,"tr",21)}var Ls=(()=>{class e{constructor(){this.accountsFilterPipe=T(os),this.displayedColumns=["accountNo","productName","accountBalance","Status"],this.showClosed=!1}set savingsAccountData(t){this.accountData=t;let n=this.accountsFilterPipe.transform(t,"saving",this.showClosed?"closed":"open","isSavings");this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleClosed(){this.showClosed=!this.showClosed;let t=this.accountsFilterPipe.transform(this.accountData,"saving",this.showClosed?"closed":"open","isSavings");this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-savings-account-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{savingsAccountData:"savingsAccountData"},decls:24,vars:9,consts:[[1,"layout-row","align-between","align-items-center"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","accountBalance"],["matColumnDef","Status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","md",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(6,"button",3),R("click",function(){return i.toggleClosed()}),c(7),r()(),l(8,"table",4),X(9,5),F(10,mfe,3,3,"th",6)(11,dfe,2,1,"td",7),Z(),X(12,8),F(13,ufe,3,3,"th",6)(14,ffe,2,1,"td",7),Z(),X(15,9),F(16,hfe,3,3,"th",6)(17,gfe,2,1,"td",7),Z(),X(18,10),F(19,_fe,3,3,"th",11)(20,Cfe,4,5,"td",7),Z(),F(21,vfe,1,0,"tr",12)(22,xfe,1,0,"tr",13),r(),b(23,"mat-paginator",14)),n&2&&(a(3),h(m(4,6,"labels.inputs.Filter")),a(4),v(" ",i.showClosed?"View Active":"View Closed"," "),a(),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,pfe)))},dependencies:[ue,fe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();function bfe(e,o){if(e&1&&(l(0,"p"),c(1),p(2,"translate"),b(3,"mifosx-external-identifier",13),r()),e&2){let t=w();a(),v(" ",m(2,3,"labels.inputs.External Id"),": "),a(2),g("externalId",Le(t.centerData.externalId))}}function yfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Clients")," "))}function Sfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClients," ")}}function wfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Client Loans")," "))}function Pfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientLoans," ")}}function Tfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Client Borrowers")," "))}function Mfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.activeClientBorrowers," ")}}function Dfe(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Overdue Group Loans")," "))}function Efe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueGroupLoans," ")}}function Ife(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Number of Active Overdue Client Loans")," "))}function Ofe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.overdueClientLoans," ")}}function Afe(e,o){e&1&&(l(0,"div",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Next Meeting Date")," "))}function Ffe(e,o){if(e&1&&(l(0,"div",9),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.centerSummaryData.collectionMeetingCalendar.nextTenRecurringDates[0])," ")}}function kfe(e,o){e&1&&(l(0,"div",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Meeting Frequency")," "))}function Bfe(e,o){if(e&1&&(l(0,"div",9),c(1),r()),e&2){let t=w();a(),v(" ",t.centerSummaryData.collectionMeetingCalendar.humanReadable," ")}}function Rfe(e,o){if(e&1&&(l(0,"mat-tab",11),b(1,"mifosx-loan-account-table",14),r()),e&2){let t=w();a(),g("loanAccountData",t.centerAccountsData.loanAccounts)}}function Nfe(e,o){if(e&1&&(l(0,"mat-tab",12),b(1,"mifosx-savings-account-table",15),r()),e&2){let t=w();a(),g("savingsAccountData",t.centerAccountsData.savingsAccounts)}}var Gf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(Ns,5),Ee(Ls,5)),n&2){let s;Te(s=Me())&&(i.loanAccountTableComponent=s.first),Te(s=Me())&&(i.savingsAccountTableComponent=s.first)}},inputs:{centerData:"centerData",centerAccountsData:"centerAccountsData",centerSummaryData:"centerSummaryData",groupData:"groupData"},decls:52,vars:42,consts:[[1,"layout-row","gap-5percent","header"],["icon","building","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],[3,"accountNo"],["label","Details"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"mat-body-strong","flex-50"],["label","Loan Accounts"],["label","Savings Accounts"],[3,"externalId"],[3,"loanAccountData"],[3,"savingsAccountData"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),p(8,"statusLookup"),b(9,"fa-icon",4),r()()(),l(10,"mat-card-subtitle")(11,"p"),c(12),p(13,"translate"),b(14,"mifosx-account-number",5),r(),E(15,bfe,4,5,"p"),r()()()(),l(16,"mat-card-content")(17,"mat-tab-group")(18,"mat-tab",6)(19,"div",7)(20,"div",8),c(21),p(22,"translate"),r(),l(23,"div",9),c(24),p(25,"dateFormat"),r(),l(26,"div",8),c(27),p(28,"translate"),r(),l(29,"div",9),c(30),r(),E(31,yfe,3,3,"div",8),E(32,Sfe,2,1,"div",9),E(33,wfe,3,3,"div",8),E(34,Pfe,2,1,"div",9),E(35,Tfe,3,3,"div",8),E(36,Mfe,2,1,"div",9),E(37,Dfe,3,3,"div",8),E(38,Efe,2,1,"div",9),E(39,Ife,3,3,"div",8),E(40,Ofe,2,1,"div",9),E(41,Afe,3,3,"div",10),E(42,Ffe,3,3,"div",9),E(43,kfe,3,3,"div",10),E(44,Bfe,2,1,"div",9),l(45,"div",8),c(46),p(47,"translate"),r(),l(48,"div",9),c(49),r()()(),E(50,Rfe,2,1,"mat-tab",11),E(51,Nfe,2,1,"mat-tab",12),r()()),n&2&&(a(6),v(" ",i.centerData.name," "),a(),g("className",m(8,30,i.centerData.status.code)),a(2),g("matTooltip",Le(i.centerData.status.value)),a(3),v(" ",m(13,32,"labels.inputs.Account No"),": "),a(2),g("accountNo",Le(i.centerData.accountNo)),a(),I(i.centerData.externalId?15:-1),a(6),v(" ",m(22,34,"labels.inputs.Activation Date")," "),a(3),v(" ",m(25,36,i.centerData.activationDate)," "),a(3),v(" ",m(28,38,"labels.inputs.Associated Officer")," "),a(3),v(" ",i.centerData.staffName," "),a(),I(i.centerSummaryData?31:-1),a(),I(i.centerSummaryData?32:-1),a(),I(i.centerSummaryData?33:-1),a(),I(i.centerSummaryData?34:-1),a(),I(i.centerSummaryData?35:-1),a(),I(i.centerSummaryData?36:-1),a(),I(i.centerSummaryData?37:-1),a(),I(i.centerSummaryData?38:-1),a(),I(i.centerSummaryData?39:-1),a(),I(i.centerSummaryData?40:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.nextTenRecurringDates[0]?41:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.nextTenRecurringDates[0]?42:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.humanReadable?43:-1),a(),I(i.centerData.collectionMeetingCalendar&&i.centerData.collectionMeetingCalendar.humanReadable?44:-1),a(2),v(" ",m(47,40,"labels.inputs.Number of Groups")," "),a(3),v(" ",i.groupData?i.groupData.length:""," "),a(),I(i.centerAccountsData&&i.centerAccountsData.loanAccounts?50:-1),a(),I(i.centerAccountsData&&i.centerAccountsData.savingsAccounts?51:-1))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,rc,Da,Nr,Qr,Ns,Ls,Pi,he,go],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function Lfe(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Associated Center")," "))}function Vfe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.centerName," ")}}function qfe(e,o){e&1&&(l(0,"div",9),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Next Meeting Date")," "))}function zfe(e,o){if(e&1&&(l(0,"div",8),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.groupData.collectionMeetingCalendar.nextTenRecurringDates[0])," ")}}function Hfe(e,o){e&1&&(l(0,"div",9),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Meeting Frequency")," "))}function Gfe(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.groupData.collectionMeetingCalendar.humanReadable," ")}}function jfe(e,o){if(e&1&&(l(0,"mat-tab",10),b(1,"mifosx-loan-account-table",12),r()),e&2){let t=w();a(),g("loanAccountData",t.groupAccountsData.loanAccounts)}}function $fe(e,o){if(e&1&&(l(0,"mat-tab",11),b(1,"mifosx-savings-account-table",13),r()),e&2){let t=w();a(),g("savingsAccountData",t.groupAccountsData.savingsAccounts)}}var jf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(Ns,5),Ee(Ls,5)),n&2){let s;Te(s=Me())&&(i.loanAccountTableComponent=s.first),Te(s=Me())&&(i.savingsAccountTableComponent=s.first)}},inputs:{groupData:"groupData",groupAccountsData:"groupAccountsData",clientData:"clientData"},decls:42,vars:33,consts:[[1,"layout-row","gap-5percent"],["icon","users","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["label","Details"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"mat-body-strong","flex-50"],["label","Loan Accounts"],["label","Savings Accounts"],[3,"loanAccountData"],[3,"savingsAccountData"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),p(8,"statusLookup"),b(9,"fa-icon",4),r()()(),l(10,"mat-card-subtitle")(11,"p"),c(12),p(13,"translate"),r()()()()(),l(14,"mat-card-content")(15,"mat-tab-group")(16,"mat-tab",5)(17,"div",6)(18,"div",7),c(19),p(20,"translate"),r(),l(21,"div",8),c(22),p(23,"dateFormat"),r(),l(24,"div",7),c(25),p(26,"translate"),r(),l(27,"div",8),c(28),r(),E(29,Lfe,3,3,"div",7),E(30,Vfe,2,1,"div",8),E(31,qfe,3,3,"div",9),E(32,zfe,3,3,"div",8),E(33,Hfe,3,3,"div",9),E(34,Gfe,2,1,"div",8),l(35,"div",7),c(36),p(37,"translate"),r(),l(38,"div",8),c(39),r()()(),E(40,jfe,2,1,"mat-tab",10),E(41,$fe,2,1,"mat-tab",11),r()()),n&2&&(a(6),v(" ",i.groupData.name," "),a(),g("className",m(8,21,i.groupData.status.code)),a(2),g("matTooltip",Le(i.groupData.status.value)),a(3),ea(" ",m(13,23,"labels.inputs.Account No"),": ",i.groupData.accountNo," ",i.groupData.externalId?"| External ID: "+i.groupData.externalId:""," "),a(7),v(" ",m(20,25,"labels.inputs.Activation Date")," "),a(3),v(" ",m(23,27,i.groupData.activationDate)," "),a(3),v(" ",m(26,29,"labels.inputs.Associated Officer")," "),a(3),v(" ",i.groupData.staffName," "),a(),I(i.groupData.centerName?29:-1),a(),I(i.groupData.centerName?30:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.nextTenRecurringDates[0]?31:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.nextTenRecurringDates[0]?32:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.humanReadable?33:-1),a(),I(i.groupData.collectionMeetingCalendar&&i.groupData.collectionMeetingCalendar.humanReadable?34:-1),a(2),v(" ",m(37,31,"labels.inputs.Number of Clients")," "),a(3),v(" ",i.clientData?i.clientData.length:""," "),a(),I(i.groupAccountsData&&i.groupAccountsData.loanAccounts?40:-1),a(),I(i.groupAccountsData&&i.groupAccountsData.savingsAccounts?41:-1))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,Nr,Qr,Ns,Ls,Pi,he,go],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Ufe=()=>[10,25];function Wfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function Qfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function Yfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Account")))}function Jfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Kfe(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved Shares")))}function Xfe(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function Zfe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function e1e(e,o){if(e&1&&(l(0,"td",16)(1,"span",18),p(2,"statusLookup"),b(3,"fa-icon",19),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.status.code)),a(2),g("matTooltip",Le(t.status.value))}}function t1e(e,o){e&1&&b(0,"tr",20)}function i1e(e,o){e&1&&b(0,"tr",21)}var $f=(()=>{class e{constructor(){this.accountsFilterPipe=T(os),this.displayedColumns=["accountNo","productName","totalApprovedShares","Status"],this.showClosed=!1}set shareAccountData(t){this.accountData=t;let n=this.accountsFilterPipe.transform(t,"share",this.showClosed?"closed":"open","isShare");this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleClosed(){this.showClosed=!this.showClosed;let t=this.accountsFilterPipe.transform(this.accountData,"share",this.showClosed?"closed":"open","isShare");this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-account-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{shareAccountData:"shareAccountData"},decls:24,vars:9,consts:[[1,"layout-row","align-between","align-items-center"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","totalApprovedShares"],["matColumnDef","Status"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","md",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(6,"button",3),R("click",function(){return i.toggleClosed()}),c(7),r()(),l(8,"table",4),X(9,5),F(10,Wfe,3,3,"th",6)(11,Qfe,2,1,"td",7),Z(),X(12,8),F(13,Yfe,3,3,"th",6)(14,Jfe,2,1,"td",7),Z(),X(15,9),F(16,Kfe,3,3,"th",6)(17,Xfe,2,1,"td",7),Z(),X(18,10),F(19,Zfe,3,3,"th",11)(20,e1e,4,5,"td",7),Z(),F(21,t1e,1,0,"tr",12)(22,i1e,1,0,"tr",13),r(),b(23,"mat-paginator",14)),n&2&&(a(3),h(m(4,6,"labels.inputs.Filter")),a(4),v(" ",i.showClosed?"View Active":"View Closed"," "),a(),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Ufe)))},dependencies:[ue,fe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,St,Pt,wt,Tt,kt,he,go],encapsulation:2})}}return e})();var n1e=()=>[10,25];function o1e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function a1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function r1e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Group Name")))}function l1e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function s1e(e,o){e&1&&b(0,"tr",13)}function c1e(e,o){e&1&&b(0,"tr",14)}var Uf=(()=>{class e{set memberGroupData(t){this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}constructor(){this.displayedColumns=["accountNo","name"]}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-member-groups"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},inputs:{memberGroupData:"memberGroupData"},decls:16,vars:8,consts:[[1,"layout-row"],[1,"flex-50"],["matInput","",3,"keyup"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountNo"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"input",2),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(6,"table",3),X(7,4),F(8,o1e,3,3,"th",5)(9,a1e,2,1,"td",6),Z(),X(10,7),F(11,r1e,3,3,"th",5)(12,l1e,2,1,"td",6),Z(),F(13,s1e,1,0,"tr",8)(14,c1e,1,0,"tr",9),r(),b(15,"mat-paginator",10)),n&2&&(a(3),h(m(4,5,"labels.inputs.Filter")),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,n1e)))},dependencies:[ue,fe,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],encapsulation:2})}}return e})();function p1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.First Name")," "))}function m1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.firstName," ")}}function d1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Middle Name")," "))}function u1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.middleName," ")}}function f1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Last Name")," "))}function h1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.lastName," ")}}function g1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Date of Birth")," "))}function _1e(e,o){if(e&1&&(l(0,"div",8),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.clientData.dateOfBirth)," ")}}function C1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Mobile Number")," "))}function v1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.mobileNo," ")}}function x1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Associated Office")," "))}function b1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.officeName," ")}}function y1e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Associated Staff")," "))}function S1e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.clientData.staffName," ")}}function w1e(e,o){if(e&1&&(l(0,"mat-tab",9),b(1,"mifosx-loan-account-table",13),r()),e&2){let t=w();a(),g("loanAccountData",t.clientAccountsData.loanAccounts)}}function P1e(e,o){if(e&1&&(l(0,"mat-tab",10),b(1,"mifosx-savings-account-table",14),r()),e&2){let t=w();a(),g("savingsAccountData",t.clientAccountsData.savingsAccounts)}}function T1e(e,o){if(e&1&&(l(0,"mat-tab",11),b(1,"mifosx-share-account-table",15),r()),e&2){let t=w();a(),g("shareAccountData",t.clientAccountsData.shareAccounts)}}function M1e(e,o){if(e&1&&(l(0,"mat-tab",12),b(1,"mifosx-member-groups",16),r()),e&2){let t=w();a(),g("memberGroupData",t.clientData.groups)}}var Wf=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(Ns,5),Ee(Ls,5),Ee($f,5),Ee(Uf,5)),n&2){let s;Te(s=Me())&&(i.loanAccountTableComponent=s.first),Te(s=Me())&&(i.savingsAccountTableComponent=s.first),Te(s=Me())&&(i.shareAccountTableComponent=s.first),Te(s=Me())&&(i.memberGroupsComponent=s.first)}},inputs:{clientData:"clientData",clientAccountsData:"clientAccountsData"},decls:42,vars:35,consts:[[1,"layout-row","gap-5percent"],["icon","user","size","3x",1,"main-icon"],[1,"mat-typography"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["label","Details"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["label","Loan Accounts"],["label","Savings Accounts"],["label","Share Accounts"],["label","Group Members"],[3,"loanAccountData"],[3,"savingsAccountData"],[3,"shareAccountData"],[3,"memberGroupData"]],template:function(n,i){n&1&&(l(0,"mat-card-header",0),b(1,"fa-icon",1),l(2,"mat-card-title-group")(3,"div",2)(4,"mat-card-title")(5,"h2"),c(6),l(7,"span",3),p(8,"statusLookup"),b(9,"fa-icon",4),r()()(),l(10,"mat-card-subtitle")(11,"p"),c(12),p(13,"translate"),r()()()()(),l(14,"mat-card-content")(15,"mat-tab-group")(16,"mat-tab",5)(17,"div",6),E(18,p1e,3,3,"div",7),E(19,m1e,2,1,"div",8),E(20,d1e,3,3,"div",7),E(21,u1e,2,1,"div",8),E(22,f1e,3,3,"div",7),E(23,h1e,2,1,"div",8),E(24,g1e,3,3,"div",7),E(25,_1e,3,3,"div",8),E(26,C1e,3,3,"div",7),E(27,v1e,2,1,"div",8),l(28,"div",7),c(29),p(30,"translate"),r(),l(31,"div",8),c(32),p(33,"dateFormat"),r(),E(34,x1e,3,3,"div",7),E(35,b1e,2,1,"div",8),E(36,y1e,3,3,"div",7),E(37,S1e,2,1,"div",8),r()(),E(38,w1e,2,1,"mat-tab",9),E(39,P1e,2,1,"mat-tab",10),E(40,T1e,2,1,"mat-tab",11),E(41,M1e,2,1,"mat-tab",12),r()()),n&2&&(a(6),v(" ",i.clientData.displayName," "),a(),g("className",m(8,27,i.clientData.status.code)),a(2),g("matTooltip",Le(i.clientData.status.value)),a(3),ea(" ",m(13,29,"labels.inputs.Account No"),": ",i.clientData.accountNo," ",i.clientData.externalId?"| External ID: "+i.clientData.externalId:""," "),a(6),I(i.clientData.firstName?18:-1),a(),I(i.clientData.firstName?19:-1),a(),I(i.clientData.middleName?20:-1),a(),I(i.clientData.middleName?21:-1),a(),I(i.clientData.lastName?22:-1),a(),I(i.clientData.lastName?23:-1),a(),I(i.clientData.dateOfBirth?24:-1),a(),I(i.clientData.dateOfBirth?25:-1),a(),I(i.clientData.mobileNo?26:-1),a(),I(i.clientData.mobileNo?27:-1),a(2),v(" ",m(30,31,"labels.inputs.Activation Date")," "),a(3),v(" ",m(33,33,i.clientData.activationDate)," "),a(2),I(i.clientData.officeName?34:-1),a(),I(i.clientData.officeName?35:-1),a(),I(i.clientData.staffName?36:-1),a(),I(i.clientData.staffName?37:-1),a(),I(i.clientAccountsData&&i.clientAccountsData.loanAccounts?38:-1),a(),I(i.clientAccountsData&&i.clientAccountsData.savingsAccounts?39:-1),a(),I(i.clientAccountsData&&i.clientAccountsData.shareAccounts?40:-1),a(),I(i.clientData.groups&&i.clientData.groups.length!==0?41:-1))},dependencies:[ue,fe,Je,sa,ke,Wr,Qo,si,Cl,Nr,Qr,Ns,Ls,$f,Uf,Pi,he,go],styles:[".main-icon[_ngcontent-%COMP%]{margin:7px 0 0}h2[_ngcontent-%COMP%]{font-weight:500}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function D1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function E1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",4),Se(5,D1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Office")),a(2),g("formControl",t.officeSelector),a(),we(t.officeData)}}function I1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function O1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,I1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.employeeData.length?"Officer":"No Associated Officers"),a(),g("formControl",t.employeeSelector),a(),we(t.employeeData)}}function A1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function F1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,A1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.centerData.length?"Center":"No Associated Centers"),a(),g("formControl",t.centerSelector),a(),we(t.centerData)}}function k1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function B1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,k1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.groupData.length?"Group":"No Associated Groups"),a(),g("formControl",t.groupSelector),a(),we(t.groupData)}}function R1e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function N1e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),r(),l(3,"mat-select",4),Se(4,R1e,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),h(t.clientData.length?"Client":"No Associated Clients"),a(),g("formControl",t.clientSelector),a(),we(t.clientData)}}function L1e(e,o){if(e&1&&b(0,"mifosx-office-navigation",6),e&2){let t=w(2);g("officeData",t.selectedItem)("employeeData",t.employeeData)}}function V1e(e,o){if(e&1&&b(0,"mifosx-staff-navigation",7),e&2){let t=w(2);g("employeeData",t.selectedItem)("centerData",t.centerData)}}function q1e(e,o){if(e&1&&b(0,"mifosx-center-navigation",8),e&2){let t=w(2);g("centerData",t.selectedItem)("groupData",t.groupData)("centerAccountsData",t.selectedItemAccounts)("centerSummaryData",t.selectedItemSummary)}}function z1e(e,o){if(e&1&&b(0,"mifosx-group-navigation",9),e&2){let t=w(2);g("groupData",t.selectedItem)("clientData",t.clientData)("groupAccountsData",t.selectedItemAccounts)}}function H1e(e,o){if(e&1&&b(0,"mifosx-client-navigation",10),e&2){let t=w(2);g("clientData",t.selectedItem)("clientAccountsData",t.selectedItemAccounts)}}function G1e(e,o){if(e&1&&(l(0,"mat-card",3),E(1,L1e,1,2,"mifosx-office-navigation",6),E(2,V1e,1,2,"mifosx-staff-navigation",7),E(3,q1e,1,4,"mifosx-center-navigation",8),E(4,z1e,1,3,"mifosx-group-navigation",9),E(5,H1e,1,2,"mifosx-client-navigation",10),r()),e&2){let t=w();a(),I(t.selectedItem.itemType==="office"?1:-1),a(),I(t.selectedItem.itemType==="employee"?2:-1),a(),I(t.selectedItem.itemType==="center"?3:-1),a(),I(t.selectedItem.itemType==="group"?4:-1),a(),I(t.selectedItem.itemType==="client"?5:-1)}}var EC=(()=>{class e{constructor(){this.navigationService=T(DC),this.route=T(Ie),this.router=T(qe),this.officeSelector=new it,this.employeeSelector=new it,this.centerSelector=new it,this.groupSelector=new it,this.clientSelector=new it,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.setOfficeSelector(),this.setEmployeeSelector(),this.setCenterSelector(),this.setGroupSelector(),this.setClientSelector()}setOfficeSelector(){this.officeSelector.valueChanges.subscribe(t=>{this.employeeSelector.reset(null,{emitEvent:!1}),this.centerSelector.reset(null,{emitEvent:!1}),this.groupSelector.reset(null,{emitEvent:!1}),this.clientSelector.reset(null,{emitEvent:!1}),this.employeeData=null,this.centerData=null,this.groupData=null,this.clientData=null,this.selectedItem=this.officeData.find(n=>n.id===t),this.selectedItem.itemType="office",this.navigationService.getEmployees(t).subscribe(n=>{this.employeeData=n,this.employeeData.length?this.employeeSelector.enable():this.employeeSelector.disable()})})}setEmployeeSelector(){this.employeeSelector.valueChanges.subscribe(t=>{t&&(this.centerSelector.reset(null,{emitEvent:!1}),this.groupSelector.reset(null,{emitEvent:!1}),this.clientSelector.reset(null,{emitEvent:!1}),this.centerData=null,this.groupData=null,this.clientData=null,this.selectedItem=this.employeeData.find(n=>n.id===t),this.selectedItem.itemType="employee",this.navigationService.getCentersFromStaffId(t).subscribe(n=>{this.centerData=n,this.centerData.length?this.centerSelector.enable():this.centerSelector.disable()}))})}setCenterSelector(){this.centerSelector.valueChanges.subscribe(t=>{t&&(this.groupSelector.reset(null,{emitEvent:!1}),this.clientSelector.reset(null,{emitEvent:!1}),this.groupData=null,this.clientData=null,this.navigationService.getCenter(t).subscribe(n=>{this.selectedItem=n,this.selectedItem.itemType="center",this.groupData=n.groupMembers?n.groupMembers:[],this.groupData.length?this.groupSelector.enable():this.groupSelector.disable()}),this.selectedItemAccounts=null,this.navigationService.getCenterAccounts(t).subscribe(n=>{this.selectedItemAccounts=n}),this.selectedItemSummary=null,this.navigationService.getCenterSummary(t).subscribe(n=>{this.selectedItemSummary=n[0]}))})}setGroupSelector(){this.groupSelector.valueChanges.subscribe(t=>{t&&(this.clientSelector.reset(null,{emitEvent:!1}),this.clientData=null,this.navigationService.getGroup(t).subscribe(n=>{this.selectedItem=n,this.selectedItem.itemType="group",this.clientData=n.clientMembers?n.clientMembers:[],this.clientData.length?this.clientSelector.enable():this.clientSelector.disable()}),this.selectedItemAccounts=null,this.navigationService.getGroupAccounts(t).subscribe(n=>{this.selectedItemAccounts=n}))})}setClientSelector(){this.clientSelector.valueChanges.subscribe(t=>{t&&(this.selectedItemAccounts=null,this.navigationService.getClient(t).subscribe(n=>{this.selectedItem=n,this.selectedItem.itemType="client"}),this.navigationService.getClientAccounts(t).subscribe(n=>{this.selectedItemAccounts=n}))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-navigation"]],viewQuery:function(n,i){if(n&1&&(Ee(zf,5),Ee(Hf,5),Ee(Gf,5),Ee(jf,5),Ee(Wf,5)),n&2){let s;Te(s=Me())&&(i.officeNavigationComponent=s.first),Te(s=Me())&&(i.staffNavigationComponent=s.first),Te(s=Me())&&(i.centerNavigationComponent=s.first),Te(s=Me())&&(i.groupNavigationComponent=s.first),Te(s=Me())&&(i.clientNavigationComponent=s.first)}},decls:12,vars:6,consts:[[1,"container"],[1,"layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-48"],[1,"layout-column"],[3,"formControl"],[3,"value"],[3,"officeData","employeeData"],[3,"employeeData","centerData"],[3,"centerData","groupData","centerAccountsData","centerSummaryData"],[3,"groupData","clientData","groupAccountsData"],[3,"clientData","clientAccountsData"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-card",3)(4,"mat-card-content",3),E(5,E1e,7,4,"mat-form-field"),E(6,O1e,6,2,"mat-form-field"),E(7,F1e,6,2,"mat-form-field"),E(8,B1e,6,2,"mat-form-field"),E(9,N1e,6,2,"mat-form-field"),r()()(),l(10,"div",2),E(11,G1e,6,5,"mat-card",3),r()()()),n&2&&(a(5),I(i.officeData===void 0||i.officeData===null?-1:5),a(),I(i.employeeData===void 0||i.employeeData===null?-1:6),a(),I(i.centerData===void 0||i.centerData===null?-1:7),a(),I(i.groupData===void 0||i.groupData===null?-1:8),a(),I(i.clientData===void 0||i.clientData===null?-1:9),a(2),I(i.selectedItem?11:-1))},dependencies:[ue,fe,$e,_n,Ue,Je,Fe,Be,gt,ft,zf,Hf,Gf,jf,Wf,he],styles:["[_nghost-%COMP%]{display:block}.container[_ngcontent-%COMP%]{width:100%}.layout-row-wrap.responsive-column[_ngcontent-%COMP%]{align-items:flex-start}.flex-48[_ngcontent-%COMP%]{min-width:20rem}@media (width >= 1200px){.flex-48[_ngcontent-%COMP%]{flex-basis:48%}}mat-card[_ngcontent-%COMP%]{padding:1rem;border-radius:.5rem;overflow:hidden}mat-card-content[_ngcontent-%COMP%]{display:grid;grid-template-columns:100%}@media (width >= 768px){mat-card-content[_ngcontent-%COMP%]{grid-template-columns:50% 50%}}@media (width >= 1200px){mat-card-content[_ngcontent-%COMP%]{grid-template-columns:50% 50%;gap:1rem}}mat-form-field[_ngcontent-%COMP%]{width:100%}mat-label[_ngcontent-%COMP%]{letter-spacing:.0125rem}"]})}}return e})();var AM=(()=>{class e{constructor(){this.navigationService=T(DC)}resolve(){return this.navigationService.getOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var j1e=[_o.withShell([{path:"navigation",component:EC,data:{title:"Navigation",breadcrumb:"Navigation"},resolve:{offices:AM}}])],w9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[AM],imports:[gn.forChild(j1e),gn]})}}return e})();var P9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,w9,EC,zf,Hf,Gf,jf,Wf,Ns,$f,Ls,Uf]})}}return e})();var $1e=["showClosedAccounts"],U1e=()=>[5,50,100],W1e=()=>["../","organization","bulk-import","Clients"],Q1e=()=>["create"],Y1e=e=>[e,"general"];function J1e(e,o){e&1&&(l(0,"div",6)(1,"mat-checkbox",26,0),c(3),p(4,"translate"),r()()),e&2&&(a(3),v("",m(4,1,"labels.inputs.Show Closed Accounts")," "))}function K1e(e,o){e&1&&(l(0,"button",27),b(1,"fa-icon",28),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,W1e)),a(2),v("",m(3,2,"labels.buttons.Import Client")," "))}function X1e(e,o){e&1&&(l(0,"button",27),b(1,"fa-icon",29),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Q1e)),a(2),v("",m(3,2,"labels.buttons.Create Client")," "))}function Z1e(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",30),r())}function ehe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function the(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,Y1e,t.id)),a(),h(t.displayName)}}function ihe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function nhe(e,o){if(e&1&&(l(0,"td",33),b(1,"mifosx-account-number",34),r()),e&2){let t=o.$implicit;a(),g("accountNo",Le(t.accountNumber))}}function ohe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function ahe(e,o){if(e&1&&(l(0,"td",33),b(1,"mifosx-external-identifier",35),r()),e&2){let t=o.$implicit;a(),g("externalId",Le(t.externalId))}}function rhe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function lhe(e,o){if(e&1&&(l(0,"td",33)(1,"div",37),p(2,"statusLookup"),b(3,"fa-icon",38),l(4,"span",39),c(5),p(6,"translate"),r()()()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,2,t.status.code)),a(4),v(" ",m(6,4,t.status.value)," ")}}function she(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function che(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function phe(e,o){e&1&&b(0,"tr",40)}function mhe(e,o){e&1&&b(0,"tr",41)}var IC=(()=>{class e{constructor(){this.clientService=T(Oi),this.displayedColumns=["displayName","accountNumber","externalId","status","officeName"],this.dataSource=new Wt,this.existsClientsToFilter=!1,this.notExistsClientsToFilter=!1,this.isLoading=!1,this.pageSize=50,this.currentPage=0,this.filterText="",this.sortAttribute="",this.sortDirection=""}ngOnInit(){un.preloadClients&&this.getClients()}search(t){this.filterText=t,this.resetPaginator(),this.getClients()}getClients(){this.isLoading=!0,this.clientService.searchByText(this.filterText,this.currentPage,this.pageSize,this.sortAttribute,this.sortDirection).subscribe(t=>{this.dataSource.data=t.content,this.totalRows=t.totalElements,this.existsClientsToFilter=t.numberOfElements>0,this.notExistsClientsToFilter=!this.existsClientsToFilter,this.isLoading=!1},t=>{this.isLoading=!1})}pageChanged(t){this.pageSize=t.pageSize,this.currentPage=t.pageIndex,this.getClients()}sortChanged(t){t.direction===""?(this.sortDirection="",this.sortAttribute=""):(this.sortAttribute=t.active,this.sortDirection=t.direction),this.resetPaginator(),this.getClients()}resetPaginator(){this.currentPage=0,this.paginator.firstPage()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-clients"]],viewQuery:function(n,i){if(n&1&&(Ee($1e,5),Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.showClosedAccounts=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:16,consts:[["showClosedAccounts",""],[1,"container"],[1,"layout-column","layout-gt-sm-row","align-gt-sm-start-center"],[1,"search-box","m-r-30"],[1,"search-box"],["matInput","","placeholder","Search by client name, external Id, mobile",1,"search-box",3,"keydown.enter"],[1,"filter-box"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"client-list",3,"hidden"],["mat-table","","matSort","",1,"bordered-table",3,"matSortChange","dataSource"],["matColumnDef","displayName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"routerLink",4,"matCellDef"],["matColumnDef","accountNumber"],["mat-cell","",4,"matCellDef"],["matColumnDef","externalId"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"page","pageSize","pageSizeOptions","length"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["labelPosition","after",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","download",1,"m-r-20"],["icon","plus",1,"m-r-20"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"routerLink"],["mat-cell",""],["display","left",3,"accountNo"],["display","left",3,"externalId"],["mat-header-cell",""],[3,"ngClass"],["icon","stop"],[1,"m-l-10","status"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){n&1&&(l(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),R("keydown.enter",function(d){return i.search(d.target.value)}),r()()(),E(5,J1e,5,3,"div",6),l(6,"div",7),F(7,K1e,4,5,"button",8)(8,X1e,4,5,"button",8),r()(),l(9,"div",9),E(10,Z1e,2,0,"div"),l(11,"table",10),R("matSortChange",function(d){return i.sortChanged(d)}),X(12,11),F(13,ehe,3,3,"th",12)(14,the,2,4,"td",13),Z(),X(15,14),F(16,ihe,3,3,"th",12)(17,nhe,2,2,"td",15),Z(),X(18,16),F(19,ohe,3,3,"th",12)(20,ahe,2,2,"td",15),Z(),X(21,17),F(22,rhe,3,3,"th",18)(23,lhe,7,6,"td",15),Z(),X(24,19),F(25,she,3,3,"th",18)(26,che,2,1,"td",15),Z(),F(27,phe,1,0,"tr",20)(28,mhe,1,0,"tr",21),r(),l(29,"mat-paginator",22),R("page",function(d){return i.pageChanged(d)}),r()(),l(30,"div",23)(31,"div",24),b(32,"i",25),c(33),p(34,"translate"),r()()()),n&2&&(a(5),I(i.existsClientsToFilter?5:-1),a(2),g("mifosxHasPermission","CREATE_CLIENT"),a(),g("mifosxHasPermission","CREATE_CLIENT"),a(),g("hidden",!i.existsClientsToFilter),a(),I(i.isLoading?10:-1),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSize",i.pageSize)("pageSizeOptions",oe(15,U1e))("length",i.totalRows),a(),g("hidden",!i.notExistsClientsToFilter),a(3),v(" ",m(34,13,"labels.text.No client was found")," "))},dependencies:[ue,co,fe,Oe,Ue,Fe,ze,xe,fi,Ke,ke,ns,_t,It,xt,vt,bt,ri,Ct,yt,rc,Da,St,Pt,wt,Tt,kt,he,go],styles:[".container[_ngcontent-%COMP%]{padding:24px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px;flex-wrap:nowrap;gap:20px}.container[_ngcontent-%COMP%] .layout-column.align-gt-sm-start-center[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row.align-gt-sm-start-center[_ngcontent-%COMP%]{align-items:center;justify-content:flex-start}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;flex:1;min-width:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:200px;flex:1}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%]{width:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0;margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:25px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%]{width:100%;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;margin-top:16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;border-bottom:1px solid #e0e0e0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #f0f0f0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.container[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;margin-top:0}.container[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:0}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:16px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;margin-right:0!important;margin-bottom:15px;flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:150px;margin-bottom:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:0;width:100%;justify-content:center}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:15px}}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.m-r-10[_ngcontent-%COMP%]{margin-right:10px!important}.m-r-20[_ngcontent-%COMP%]{margin-right:20px!important}.m-r-30[_ngcontent-%COMP%]{margin-right:30px!important}"]})}}return e})();var dhe=()=>({confirm:!0}),OC=(()=>{class e{constructor(){this.dialogRef=T(eo)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-unassign-staff-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"p"),c(5),p(6,"translate"),r()(),l(7,"mat-dialog-actions",2)(8,"button",3),c(9),p(10,"translate"),r(),l(11,"button",4),c(12),p(13,"translate"),r()()),n&2&&(a(),h(m(2,5,"labels.heading.Unassign Staff")),a(4),v("",m(6,7,"labels.text.Unassign Staff client")," ?"),a(4),h(m(10,9,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",oe(13,dhe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var AC=(()=>{class e{constructor(){this.dialogRef=T(eo)}onFileSelect(t){t.target.files.length>0&&(this.signature=t.target.files[0])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-upload-signature-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["flex","60%","acceptFilter",".png,.jpeg,.jpg",3,"change"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div")(4,"mifosx-file-upload",1),R("change",function(d){return i.onFileSelect(d)}),r(),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),l(9,"button",4),c(10),p(11,"translate"),r()()()),n&2&&(a(),h(m(2,5,"labels.heading.Upload Client Signature")),a(6),h(m(8,7,"labels.buttons.Cancel")),a(2),g("disabled",!i.signature)("mat-dialog-close",i.signature),a(),v(" ",m(11,9,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,wp,Nn,Un,he],encapsulation:2})}}return e})();var G9=Ds(H9());var Ghe=()=>({delete:!0}),jhe=()=>({upload:!0});function $he(e,o){if(e&1&&(l(0,"div",1),b(1,"img",6),r()),e&2){let t=w();a(),g("src",t.signatureImage,f0)}}function Uhe(e,o){e&1&&(l(0,"div",1)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.Client Signature is not provided.")))}function Whe(e,o){e&1&&(l(0,"button",4),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Ghe)),a(),v(" ",m(2,2,"labels.buttons.Delete")," "))}function Qhe(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,jhe)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var RC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.clientsService=T(Oi),this.sanitizer=T(Zs),this.data=T(Po);let t=this.data.documents.find(n=>n.name==="clientSignature")||{};this.signatureId=t.id,this.clientId=this.data.id}ngOnInit(){this.signatureId&&this.clientsService.getClientSignatureImage(this.clientId,this.signatureId).subscribe(t=>qn(this,null,function*(){let n=G9.Buffer.from(yield t.arrayBuffer());this.signatureImage="data:"+t.type+";base64,"+n.toString("base64")}),t=>{})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-signature-dialog"]],decls:11,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"],["alt","Signature",3,"src"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),E(3,$he,2,1,"div",1),E(4,Uhe,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,Whe,3,5,"button",4),E(10,Qhe,3,5,"button",5),r()),n&2&&(a(),h(m(2,6,"labels.heading.View Client Signature")),a(2),I(i.signatureId?3:-1),a(),I(i.signatureId?-1:4),a(3),h(m(8,8,"labels.buttons.Close")),a(2),I(i.signatureId?9:-1),a(),I(i.signatureId?-1:10))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var Yhe=e=>({delete:!0,id:e}),Jhe=()=>({upload:!0});function Khe(e,o){e&1&&(l(0,"div",1)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),v("",m(3,1,"labels.text.Delete clients signature")," ?"))}function Xhe(e,o){e&1&&(l(0,"div",1)(1,"p"),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.text.Client Signature is not provided.")))}function Zhe(e,o){if(e&1&&(l(0,"button",4),c(1),p(2,"translate"),r()),e&2){let t=w();g("mat-dialog-close",Nt(4,Yhe,t.signatureId)),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}function ege(e,o){e&1&&(l(0,"button",5),c(1),p(2,"translate"),r()),e&2&&(g("mat-dialog-close",oe(4,Jhe)),a(),v(" ",m(2,2,"labels.buttons.Upload")," "))}var NC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po);let t=this.data.find(n=>n.name==="clientSignature")||{};this.signatureId=t.id}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-delete-signature-dialog"]],decls:11,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),E(3,Khe,4,3,"div",1),E(4,Xhe,4,3,"div",1),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),E(9,Zhe,3,6,"button",4),E(10,ege,3,5,"button",5),r()),n&2&&(a(),h(m(2,6,"labels.heading.Delete Client Signature")),a(2),I(i.signatureId?3:-1),a(),I(i.signatureId?-1:4),a(3),h(m(8,8,"labels.buttons.Cancel")),a(2),I(i.signatureId?9:-1),a(),I(i.signatureId?-1:10))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var LC=(()=>{class e{constructor(){this.dialogRef=T(eo)}onFileSelect(t){t.target.files.length>0&&(this.image=t.target.files[0])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-upload-image-dialog"]],decls:12,vars:11,consts:[["mat-dialog-title",""],["flex","60%","acceptFilter",".png,.jpeg,.jpg",3,"change"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div")(4,"mifosx-file-upload",1),R("change",function(d){return i.onFileSelect(d)}),r(),l(5,"mat-dialog-actions",2)(6,"button",3),c(7),p(8,"translate"),r(),l(9,"button",4),c(10),p(11,"translate"),r()()()),n&2&&(a(),h(m(2,5,"labels.heading.Upload Client Image")),a(6),h(m(8,7,"labels.buttons.Cancel")),a(2),g("disabled",!i.image)("mat-dialog-close",i.image),a(),v(" ",m(11,9,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,wp,Nn,Un,he],encapsulation:2})}}return e})();var tge=["video"],ige=["canvas"],nge=["fallback"],oge=["captureButton"],j9=()=>({display:"none"});function age(e,o){if(e&1){let t=Y();l(0,"button",14,3),R("click",function(){V(t);let i=w();return q(i.capture())}),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Capture")," "))}function rge(e,o){if(e&1){let t=Y();l(0,"button",14),R("click",function(){V(t);let i=w();return q(i.recapture())}),b(1,"fa-icon",15),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Recapture")," "))}var VC=(()=>{class e{constructor(){this.dialogRef=T(eo),this.renderer=T(gg),this.isCaptured=!1}ngAfterViewInit(){this.startCamera()}ngOnDestroy(){this.stopCamera()}startCamera(){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia){let t={width:{ideal:640},height:{ideal:480},facingMode:"user"};navigator.mediaDevices.getUserMedia({video:t}).then(n=>{this.renderer.setProperty(this.video.nativeElement,"srcObject",n),this.video.nativeElement.play()}).catch(n=>{this.handleError(n)})}else throw new Error("Cannot connect to camera")}handleError(t){this.renderer.removeStyle(this.fallback.nativeElement,"display");let n=this.renderer.createText(`${t.name}: ${t.message}`);this.renderer.appendChild(this.fallback.nativeElement,n),this.renderer.setStyle(this.video.nativeElement,"display","none"),this.renderer.setProperty(this.captureButton,"disabled","true")}stopCamera(){let t=this.video.nativeElement.srcObject;t&&t.getTracks()[0].stop(),this.renderer.setProperty(this.video.nativeElement,"srcObject",null)}capture(){this.isCaptured=!0,this.video.nativeElement.pause();let t=this.video.nativeElement.videoWidth,n=this.video.nativeElement.videoHeight;this.canvas.nativeElement.width=t,this.canvas.nativeElement.height=n,this.canvas.nativeElement.getContext("2d").drawImage(this.video.nativeElement,0,0,t,n),this.clientImageDataURL=this.canvas.nativeElement.toDataURL("image/jpeg",.9)}recapture(){this.isCaptured=!1,this.video.nativeElement.play()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-capture-image-dialog"]],viewQuery:function(n,i){if(n&1&&(Ee(tge,7),Ee(ige,7),Ee(nge,7),Ee(oge,5)),n&2){let s;Te(s=Me())&&(i.video=s.first),Te(s=Me())&&(i.canvas=s.first),Te(s=Me())&&(i.fallback=s.first),Te(s=Me())&&(i.captureButton=s.first)}},decls:20,vars:17,consts:[["video",""],["canvas",""],["fallback",""],["captureButton",""],[1,"layout-column","gap-2px"],["mat-dialog-title","","align","center"],["autoplay","",1,"capture-video"],[3,"ngStyle"],["align","center",3,"ngStyle"],["align","center",1,"flex-20"],["mat-stroked-button","","color","primary"],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"],["mat-stroked-button","","color","primary",3,"click"],["icon","undo","size","sm",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",4)(1,"h1",5),c(2),p(3,"translate"),r(),b(4,"video",6,0)(6,"canvas",7,1)(8,"p",8,2),l(10,"div",9),E(11,age,4,3,"button",10),E(12,rge,4,3,"button",10),r(),l(13,"mat-dialog-actions",11)(14,"button",12),c(15),p(16,"translate"),r(),l(17,"button",13),c(18),p(19,"translate"),r()()()),n&2&&(a(2),h(m(3,9,"labels.heading.Capture Client Image")),a(4),g("ngStyle",oe(15,j9)),a(2),g("ngStyle",oe(16,j9)),a(3),I(i.isCaptured?-1:11),a(),I(i.isCaptured?12:-1),a(3),h(m(16,11,"labels.buttons.Cancel")),a(2),g("disabled",!i.isCaptured)("mat-dialog-close",i.clientImageDataURL),a(),v(" ",m(19,13,"labels.buttons.Upload")," "))},dependencies:[ue,is,fe,xe,Wn,ke,Nn,Un,he],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.capture-video[_ngcontent-%COMP%]{width:100%;max-width:640px;height:auto;object-fit:contain;border-radius:4px;background-color:#000}"]})}}return e})();var lge=()=>["./general"],sge=()=>["./address"],cge=()=>["./family-members"],pge=()=>["edit"],mge=()=>["loans-accounts","create"],dge=()=>["savings-accounts","create"],uge=()=>["shares-accounts","create"],fge=()=>["recurring-deposits-accounts","create-recurring-deposits-account"],hge=()=>["fixed-deposits-accounts","create"],gge=()=>["./identities"],_ge=()=>["./documents"],Cge=()=>["./notes"],vge=e=>["./datatables",e];function xge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.doAction("Upload Image"))}),b(2,"i",46),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Upload Image")))}function bge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.doAction("Capture Image"))}),b(2,"i",47),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Capture Image")))}function yge(e,o){if(e&1){let t=Y();l(0,"button",45),p(1,"translate"),R("click",function(){V(t);let i=w();return q(i.doAction("Delete Image"))}),b(2,"i",48),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete Image")))}function Sge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),c(6),p(7,"dateFormat"),r()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Activation Date")),a(3),h(m(7,4,t.clientViewData.activationDate))}}function wge(e,o){if(e&1&&(l(0,"td"),c(1),r()),e&2){let t=w();a(),h(t.clientViewData.staffName)}}function Pge(e,o){e&1&&(l(0,"td"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unassigned")))}function Tge(e,o){if(e&1&&(l(0,"span")(1,"span",49),c(2),r()()),e&2){let t=o.$implicit;a(2),h(t.name)}}function Mge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),Se(6,Tge,3,1,"span",null,Pe),r()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Member Of")),a(3),we(t.clientViewData.groups)}}function Dge(e,o){if(e&1&&(l(0,"tr")(1,"td")(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td"),c(6),r()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Client Type")),a(3),h(t.clientViewData.clientType.name)}}function Ege(e,o){e&1&&(l(0,"button",50)(1,"mat-icon",36),b(2,"fa-icon",51),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2&&(g("routerLink",oe(4,pge)),a(4),h(m(5,2,"labels.buttons.Edit")))}function Ige(e,o){if(e&1&&(l(0,"button",35)(1,"mat-icon",36),b(2,"fa-icon",52),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2){w();let t=ve(97);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function Oge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Assign Staff"))}),l(1,"mat-icon",36),b(2,"fa-icon",53),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Assign Staff")))}function Age(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w(2);return q(i.doAction("Unassign Staff"))}),l(1,"mat-icon",36),b(2,"fa-icon",53),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Unassign Staff")))}function Fge(e,o){e&1&&(l(0,"span"),F(1,Age,6,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_CLIENT"))}function kge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,mge)),a(),v(" ",m(2,2,"labels.buttons.New Loan Account")," "))}function Bge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,dge)),a(),v(" ",m(2,2,"labels.buttons.New Savings Account")," "))}function Rge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,uge)),a(),v(" ",m(2,2,"labels.buttons.New Share Account")," "))}function Nge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,fge)),a(),v(" ",m(2,2,"labels.buttons.New Recurring Deposit Account")," "))}function Lge(e,o){e&1&&(l(0,"button",50),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,hge)),a(),v(" ",m(2,2,"labels.buttons.New Fixed Deposits Account")," "))}function Vge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Activate"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Activate")," "))}function qge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Withdraw"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Withdraw")," "))}function zge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Reject"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),h(m(3,1,"labels.buttons.Reject")))}function Hge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w(2);return q(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function Gge(e,o){e&1&&(l(0,"span"),F(1,Hge,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENT"))}function jge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Reactivate"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reactivate")," "))}function $ge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Undo Rejection"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Rejection")," "))}function Uge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Undo Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Undo Transfer")," "))}function Wge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Accept Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Accept Transfer")," "))}function Qge(e,o){if(e&1){let t=Y();l(0,"span")(1,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Reject Transfer"))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reject transfer")," "))}function Yge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Add Charge"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Add Charge")," "))}function Jge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Update Default Savings"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Update Default Savings")," "))}function Kge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Upload Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Upload Signature")," "))}function Xge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Delete Signature"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete Signature")," "))}function Zge(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.doAction("Create Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Create Standing Instructions")," "))}function e_e(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w(2);return q(i.doAction("View Standing Instructions"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.View Standing Instructions")," "))}function t_e(e,o){e&1&&(l(0,"span"),F(1,e_e,3,3,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","READ_STANDINGINSTRUCTION"))}function i_e(e,o){if(e&1&&(l(0,"a",43,8),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,gge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Identities")," ")}}function n_e(e,o){if(e&1&&(l(0,"a",43,9),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,_ge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Documents")," ")}}function o_e(e,o){if(e&1&&(l(0,"a",43,10),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,Cge))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function a_e(e,o){if(e&1&&(l(0,"a",43,11),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,vge,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function r_e(e,o){if(e&1&&F(0,a_e,3,5,"a",44),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var qC=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this._sanitizer=T(Zs),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.clientViewData=t.clientViewData,this.clientDatatables=t.clientDatatables,this.clientTemplateData=t.clientTemplateData})}ngOnInit(){this.clientsService.getClientProfileImage(this.clientViewData.id).subscribe({next:t=>{t?this.clientImage=this._sanitizer.bypassSecurityTrustResourceUrl(t):this.clientImage=null},error:t=>{console.error("Error loading client profile image:",t),this.clientImage=null}})}isActive(){return this.clientViewData.status.value==="Active"}doAction(t){switch(t){case"Assign Staff":case"Close":case"Survey":case"Reject":case"Activate":case"Withdraw":case"Update Default Savings":case"Transfer Client":case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":case"Reactivate":case"Undo Rejection":case"Add Charge":case"Create Collateral":case"Client Screen Reports":this.router.navigate([`actions/${t}`],{relativeTo:this.route});break;case"Unassign Staff":this.unassignStaff();break;case"Delete":this.deleteClient();break;case"View Signature":this.viewSignature();break;case"Upload Signature":this.uploadSignature();break;case"Delete Signature":this.deleteSignature();break;case"Capture Image":this.captureProfileImage();break;case"Upload Image":this.uploadProfileImage();break;case"Delete Image":this.deleteProfileImage();break;case"Create Standing Instructions":let n={officeId:this.clientViewData.officeId,accountType:"fromsavings"};this.router.navigate(["standing-instructions/create-standing-instructions"],{relativeTo:this.route,queryParams:n});break;case"View Standing Instructions":let i={officeId:this.clientViewData.officeId,accountType:"fromsavings"};this.router.navigate(["standing-instructions/list-standing-instructions"],{relativeTo:this.route,queryParams:i});break}}reload(){let t=this.router.url;this.router.navigateByUrl("/clients",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}deleteClient(){this.dialog.open(vi,{data:{deleteContext:`client with id: ${this.clientViewData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.clientsService.deleteClient(this.clientViewData.id).subscribe(()=>{this.router.navigate(["/clients"],{relativeTo:this.route})})})}unassignStaff(){this.dialog.open(OC).afterClosed().subscribe(n=>{n.confirm&&this.clientsService.executeClientCommand(this.clientViewData.id,"unassignStaff",{staffId:this.clientViewData.staffId}).subscribe(()=>{this.reload()})})}viewSignature(){this.clientsService.getClientDocuments(this.clientViewData.id).subscribe(t=>{this.dialog.open(RC,{data:{documents:t,id:this.clientViewData.id}}).afterClosed().subscribe(i=>{i.upload?this.uploadSignature():i.delete&&this.deleteSignature()})})}uploadSignature(){this.dialog.open(AC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadClientSignatureImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}deleteSignature(){this.clientsService.getClientDocuments(this.clientViewData.id).subscribe(t=>{this.dialog.open(NC,{data:t}).afterClosed().subscribe(i=>{i.delete?this.clientsService.deleteClientDocument(this.clientViewData.id,i.id).subscribe(()=>{this.reload()}):i.upload&&this.uploadSignature()})})}captureProfileImage(){this.dialog.open(VC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadCapturedClientProfileImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}uploadProfileImage(){this.dialog.open(LC).afterClosed().subscribe(n=>{n&&this.clientsService.uploadClientProfileImage(this.clientViewData.id,n).subscribe(()=>{this.reload()})})}deleteProfileImage(){this.dialog.open(vi,{data:{deleteContext:`the profile image of ${this.clientViewData.displayName}`}}).afterClosed().subscribe(n=>{n.delete&&this.clientsService.deleteClientProfileImage(this.clientViewData.id).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-clients-view"]],decls:159,vars:123,consts:[["clientMenu","matMenu"],["accountApplications","matMenu"],["Actions","matMenu"],["More","matMenu"],["general","routerLinkActive"],["address","routerLinkActive"],["familyMembers","routerLinkActive"],["tabPanel",""],["identities","routerLinkActive"],["documents","routerLinkActive"],["notes","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"src"],[1,"m-b-5","flex-center"],["class","client-image-button","mat-raised-button","",3,"matTooltip","click",4,"mifosxHasPermission"],[1,"signature",3,"click"],[1,"mat-typography","account-card-title"],[1,"make-flex","content"],[1,"flex-95"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"entityName"],[1,"flex-5","align-end-center"],["mat-icon-button","","aria-label","Client actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],[1,"layout-row","responsive-column"],[1,"flex-50"],[1,"account-overview"],[3,"accountNo"],["completed","true",3,"externalId"],["mat-menu-item","",3,"routerLink",4,"mifosxHasPermission"],["mat-menu-item","",3,"matMenuTriggerFor"],["matListIcon",""],["icon","tasks","size","sm"],["mat-menu-item",""],["mat-menu-item","",3,"click"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click","disabled"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["mat-raised-button","",1,"client-image-button",3,"click","matTooltip"],[1,"fa","fa-upload"],[1,"fa","fa-camera"],[1,"fa","fa-trash"],[1,"m-r-3"],["mat-menu-item","",3,"routerLink"],["icon","edit","size","sm"],["icon","money-bill-alt","size","sm"],["icon","user-tie","size","sm"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",12)(1,"mat-card-header",13)(2,"mat-card-title-group",14)(3,"div",15)(4,"div"),b(5,"img",16),r(),l(6,"div",17),F(7,xge,3,4,"button",18)(8,bge,3,4,"button",18)(9,yge,3,4,"button",18),b(10,"br"),r(),l(11,"p",19),R("click",function(){return V(s),q(i.doAction("View Signature"))}),c(12),p(13,"translate"),r()(),l(14,"div",20)(15,"mat-card-title",21)(16,"h3",22),b(17,"i",23),p(18,"translate"),p(19,"statusLookup"),l(20,"b"),c(21),p(22,"translate"),r(),b(23,"mifosx-entity-name",24),r(),l(24,"div",25)(25,"button",26)(26,"mat-icon",27),b(27,"fa-icon",28),r()()()(),l(28,"mat-card-subtitle")(29,"div",29)(30,"div",30)(31,"table",31)(32,"tbody")(33,"tr")(34,"td")(35,"b"),c(36),p(37,"translate"),r()(),l(38,"td"),b(39,"mifosx-entity-name",24),r()(),l(40,"tr")(41,"td")(42,"b"),c(43),p(44,"translate"),r()(),l(45,"td"),b(46,"mifosx-account-number",32),r()(),l(47,"tr")(48,"td")(49,"b"),c(50),p(51,"translate"),r()(),l(52,"td"),b(53,"mifosx-external-identifier",33),r()(),E(54,Sge,8,6,"tr"),l(55,"tr")(56,"td")(57,"b"),c(58),p(59,"translate"),r()(),E(60,wge,2,1,"td"),E(61,Pge,3,3,"td"),r()()()(),l(62,"div",30)(63,"table",31)(64,"tbody"),E(65,Mge,8,3,"tr"),E(66,Dge,7,4,"tr"),l(67,"tr")(68,"td")(69,"b"),c(70),p(71,"translate"),r()(),l(72,"td"),b(73,"mifosx-external-identifier",33),r()(),l(74,"tr")(75,"td")(76,"b"),c(77),p(78,"translate"),r()(),l(79,"td"),b(80,"mifosx-external-identifier",33),r()()()()()()()(),l(81,"mat-menu",null,0),F(83,Ege,6,5,"button",34),E(84,Ige,6,4,"button",35),l(85,"button",35)(86,"mat-icon",36),b(87,"fa-icon",37),r(),l(88,"span"),c(89),p(90,"translate"),r()(),E(91,Oge,6,3,"button",38),E(92,Fge,2,1,"span"),l(93,"button",35),c(94),p(95,"translate"),r()(),l(96,"mat-menu",null,1),F(98,kge,3,5,"button",34)(99,Bge,3,5,"button",34)(100,Rge,3,5,"button",34)(101,Nge,3,5,"button",34)(102,Lge,3,5,"button",34),r(),l(103,"mat-menu",null,2)(105,"button",39),R("click",function(){return V(s),q(i.doAction("Close"))}),c(106),p(107,"translate"),r(),l(108,"button",39),R("click",function(){return V(s),q(i.doAction("Transfer Client"))}),c(109),p(110,"translate"),r(),E(111,Vge,4,3,"span"),E(112,qge,4,3,"span"),E(113,zge,4,3,"span"),E(114,Gge,2,1,"span"),E(115,jge,4,3,"span"),E(116,$ge,4,3,"span"),E(117,Uge,4,3,"span"),E(118,Wge,4,3,"span"),E(119,Qge,4,3,"span"),r(),l(120,"mat-menu",null,3),F(122,Yge,3,3,"button",40),l(123,"button",39),R("click",function(){return V(s),q(i.doAction("Create Collateral"))}),c(124),p(125,"translate"),r(),l(126,"button",41),R("click",function(){return V(s),q(i.doAction("Survey"))}),c(127),p(128,"translate"),r(),F(129,Jge,3,3,"button",40)(130,Kge,3,3,"button",40)(131,Xge,3,3,"button",40),l(132,"button",39),R("click",function(){return V(s),q(i.doAction("Client Screen Reports"))}),c(133),p(134,"translate"),r(),F(135,Zge,3,3,"button",40),E(136,t_e,2,1,"span"),r()()(),l(137,"mat-card-content")(138,"nav",42)(139,"a",43,4),c(141),p(142,"translate"),r(),l(143,"a",43,5),c(145),p(146,"translate"),r(),l(147,"a",43,6),c(149),p(150,"translate"),r(),F(151,i_e,4,6,"a",44)(152,n_e,4,6,"a",44)(153,o_e,4,6,"a",44),Se(154,r_e,1,1,"a",43,Pe),r(),l(156,"mat-tab-nav-panel",null,7),b(158,"router-outlet"),r()()()}if(n&2){let s=ve(82),d=ve(104),u=ve(121),f=ve(140),_=ve(144),C=ve(148),x=ve(157);a(5),g("src",i.clientImage?i.clientImage:"assets/images/user_placeholder.png",f0),a(2),g("mifosxHasPermission","CREATE_CLIENTIMAGE"),a(),g("mifosxHasPermission","CREATE_CLIENTIMAGE"),a(),g("mifosxHasPermission","DELETE_CLIENTIMAGE"),a(3),h(m(13,80,"labels.inputs.View Signature")),a(5),g("matTooltip",Le(m(18,82,"labels.status."+i.clientViewData.status.value)))("ngClass",m(19,84,i.clientViewData.status.code)),a(4),v("",m(22,86,"labels.inputs.Client Name")," :"),a(2),g("entityName",Le(i.clientViewData.displayName)),a(2),g("matMenuTriggerFor",s),a(11),h(m(37,88,"labels.inputs.Office")),a(3),g("entityName",Le(i.clientViewData.officeName)),a(4),h(m(44,90,"labels.inputs.Client")),a(3),g("accountNo",Le(i.clientViewData.accountNo)),a(4),h(m(51,92,"labels.inputs.External Id")),a(3),g("externalId",Le(i.clientViewData.externalId)),a(),I(i.clientViewData.activationDate?54:-1),a(4),h(m(59,94,"labels.inputs.Staff")),a(2),I(i.clientViewData.staffName?60:-1),a(),I(i.clientViewData.staffName?-1:61),a(4),I(i.clientViewData.groups.length>0?65:-1),a(),I(i.clientViewData.clientType?66:-1),a(4),h(m(71,96,"labels.inputs.Mobile Number")),a(3),g("externalId",Le(i.clientViewData.mobileNo)),a(4),h(m(78,98,"labels.inputs.Email")),a(3),g("externalId",Le(i.clientViewData.emailAddress)),a(3),g("mifosxHasPermission","UPDATE_CLIENT"),a(),I(i.isActive()?84:-1),a(),g("matMenuTriggerFor",d),a(4),h(m(90,100,"labels.buttons.Actions")),a(2),I(i.clientViewData.staffId?-1:91),a(),I(i.clientViewData.staffId?92:-1),a(),g("matMenuTriggerFor",u),a(),h(m(95,102,"labels.buttons.More")),a(4),g("mifosxHasPermission","CREATE_LOAN"),a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","CREATE_SHAREACCOUNT"),a(),g("mifosxHasPermission","CREATE_RECURRINGDEPOSITACCOUNT"),a(),g("mifosxHasPermission","CREATE_FIXEDDEPOSITACCOUNT"),a(4),h(m(107,104,"labels.buttons.Close")),a(3),v(" ",m(110,106,"labels.buttons.Transfer Client")," "),a(2),I(i.clientViewData.status.value==="Pending"?111:-1),a(),I(i.clientViewData.status.value==="Pending"?112:-1),a(),I(i.clientViewData.status.value==="Pending"?113:-1),a(),I(i.clientViewData.status.value==="Pending"?114:-1),a(),I(i.clientViewData.status.value==="Closed"?115:-1),a(),I(i.clientViewData.status.value==="Rejected"?116:-1),a(),I(i.clientViewData.status.value==="Transfer in progress"?117:-1),a(),I(i.clientViewData.status.value==="Transfer in progress"?118:-1),a(),I(i.clientViewData.status.value==="Transfer in progress"?119:-1),a(3),g("mifosxHasPermission","CREATE_CLIENTCHARGE"),a(2),v(" ",m(125,108,"labels.buttons.Create Collateral")," "),a(2),g("disabled",!0),a(),v(" ",m(128,110,"labels.buttons.Survey")," "),a(2),g("mifosxHasPermission","UPDATESAVINGSACCOUNT_CLIENT"),a(),g("mifosxHasPermission","CREATE_CLIENTIMAGE"),a(),g("mifosxHasPermission","DELETE_CLIENTIMAGE"),a(2),v(" ",m(134,112,"labels.buttons.Client Screen Reports")," "),a(2),g("mifosxHasPermission","CREATE_STANDINGINSTRUCTION"),a(),I(i.clientViewData.status.value!=="Transfer on hold"?136:-1),a(2),g("tabPanel",x),a(),g("routerLink",oe(120,lge))("active",f.isActive),a(2),v(" ",m(142,114,"labels.inputs.General")," "),a(2),g("routerLink",oe(121,sge))("active",_.isActive),a(2),v(" ",m(146,116,"labels.inputs.Address")," "),a(2),g("routerLink",oe(122,cge))("active",C.isActive),a(2),v(" ",m(150,118,"labels.inputs.Family Members")," "),a(2),g("mifosxHasPermission","READ_CLIENTIDENTIFIER"),a(),g("mifosxHasPermission","READ_DOCUMENT"),a(),g("mifosxHasPermission","READ_CLIENTNOTE"),a(),we(i.clientDatatables)}},dependencies:[ue,co,fe,Oe,Ue,Je,xe,Ke,sa,Wr,x0,si,Qo,kk,wi,nc,Yo,ke,Cl,rc,Da,ic,tc,nr,or,Na,ar,ra,Pi,he,go],styles:[".account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .client-image-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .signature[_ngcontent-%COMP%]{color:#fff;text-align:center;margin:0;padding:2%}.account-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .signature[_ngcontent-%COMP%]:hover{cursor:pointer}.account-overview[_ngcontent-%COMP%]{color:#fff;min-width:85%;margin-left:10px}.make-flex[_ngcontent-%COMP%]{display:flex}.mat-card-title-group[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var l_e=()=>["../","charges","overview"],s_e=e=>["../","charges",e,"pay"],c_e=e=>["../","charges",e],p_e=e=>["../","loans-accounts",e,"actions","Make Repayment"],m_e=e=>["../","loans-accounts",e,"actions","Approve"],d_e=e=>["../","loans-accounts",e,"actions","Disburse"],$9=e=>["../","loans-accounts",e,"general"],u_e=e=>["../","savings-accounts",e,"actions","Deposit"],f_e=e=>["../","savings-accounts",e,"actions","Withdrawal"],h_e=e=>["../","savings-accounts",e,"actions","Approve"],g_e=e=>["../","savings-accounts",e,"actions","Undo Approval"],__e=e=>["../","savings-accounts",e,"actions","Activate"],U9=e=>["../","savings-accounts",e,"general"],C_e=e=>["../","fixed-deposits-accounts",e,"actions","Approve"],v_e=e=>["../","fixed-deposits-accounts",e,"actions","Undo Approval"],x_e=e=>["../","fixed-deposits-accounts",e,"actions","Activate"],W9=e=>["../","fixed-deposits-accounts",e,"general"],b_e=e=>["../","recurring-deposits-accounts",e,"actions","Approve"],y_e=e=>["../","recurring-deposits-accounts",e,"actions","Undo Approval"],S_e=e=>["../","recurring-deposits-accounts",e,"actions","Activate"],Q9=e=>["../","recurring-deposits-accounts",e,"general"],w_e=e=>["../","shares-accounts",e,"actions","Approve"],P_e=e=>["../","shares-accounts",e,"actions","Undo Approval"],T_e=e=>["../","shares-accounts",e,"actions","Activate"],Y9=e=>["../","shares-accounts",e,"general"],M_e=e=>["../","client-collateral",e];function D_e(e,o){e&1&&(l(0,"button",30),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,l_e)),a(),v(" ",m(2,2,"labels.buttons.Charges Overview")," "))}function E_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function I_e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,2,!(t.isWaived||t.isPaid))),a(2),v(" ",t.name," ")}}function O_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due as of")))}function A_e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dueDate))}}function F_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due")))}function k_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amount))}}function B_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Paid")))}function R_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountPaid))}}function N_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Waived")))}function L_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountWaived))}}function V_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Outstanding")))}function q_e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountOutstanding))}}function z_e(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function H_e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(1,"i",41),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,s_e,t.id))}}function G_e(e,o){if(e&1){let t=Y();l(0,"button",42),R("click",function(i){V(t);let s=w().$implicit,d=w();return d.routeEdit(i),q(d.waiveCharge(s.id,s.clientId))}),b(1,"i",43),r()}}function j_e(e,o){e&1&&(l(0,"td",37),F(1,H_e,2,3,"button",38)(2,G_e,2,0,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","PAY_CLIENTCHARGE"),a(),g("mifosxHasPermission","WAIVE_CLIENTCHARGE"))}function $_e(e,o){e&1&&b(0,"tr",44)}function U_e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,c_e,t.id))}}function W_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function Q_e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function Y_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Product")))}function J_e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function K_e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function X_e(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function Z_e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function eCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.loanBalance))}}function tCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function iCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amountPaid))}}function nCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function oCe(e,o){if(e&1&&(l(0,"td",37),b(1,"i",55),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function aCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function rCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(2,"i",41),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.Make Repayment")))("routerLink",Nt(5,p_e,t.id))}}function lCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(2,"i",59),r()}if(e&2){let t=w(2).$implicit;g("matTooltip",Le(m(1,3,"tooltips.Approve")))("routerLink",Nt(5,m_e,t.id))}}function sCe(e,o){e&1&&(l(0,"span"),F(1,lCe,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","APPROVE_LOAN"))}function cCe(e,o){if(e&1){let t=Y();l(0,"button",57),p(1,"translate"),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(2,"i",43),r()}if(e&2){let t=w(2).$implicit;g("matTooltip",Le(m(1,3,"tooltips.Disburse")))("routerLink",Nt(5,d_e,t.id))}}function pCe(e,o){e&1&&(l(0,"span"),F(1,cCe,3,7,"button",58),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function mCe(e,o){if(e&1){let t=Y();l(0,"button",61),p(1,"translate"),R("click",function(i){V(t);let s=w(2).$implicit,d=w(2);return d.routeEdit(i),q(d.routeTransferFund(s.id))}),b(2,"i",62),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Transfer Funds")))}function dCe(e,o){e&1&&(l(0,"span"),F(1,mCe,3,4,"button",60),r()),e&2&&(a(),g("mifosxHasPermission","DISBURSE_LOAN"))}function uCe(e,o){if(e&1&&(l(0,"td",37),E(1,rCe,3,7,"button",56),E(2,sCe,2,1,"span"),E(3,pCe,2,1,"span"),E(4,dCe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.pendingApproval?2:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&!t.status.overpaid?3:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&t.status.overpaid?4:-1)}}function fCe(e,o){e&1&&b(0,"tr",44)}function hCe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,$9,t.id))}}function gCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,W_e,3,3,"th",9)(4,Q_e,4,5,"td",10),Z(),X(5,47),F(6,Y_e,3,3,"th",9)(7,J_e,2,2,"td",10),Z(),X(8,48),F(9,K_e,3,3,"th",9)(10,X_e,2,1,"td",10),Z(),X(11,49),F(12,Z_e,3,3,"th",13)(13,eCe,3,3,"td",14),Z(),X(14,50),F(15,tCe,3,3,"th",13)(16,iCe,3,3,"td",14),Z(),X(17,51),F(18,nCe,3,3,"th",19)(19,oCe,2,3,"td",20),Z(),X(20,18),F(21,aCe,3,3,"th",19)(22,uCe,5,4,"td",20),Z(),F(23,fCe,1,0,"tr",21)(24,hCe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",Ft(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function _Ce(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function CCe(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function vCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Product")))}function xCe(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function bCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function yCe(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function SCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function wCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.loanBalance))}}function PCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function TCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function MCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function DCe(e,o){if(e&1&&(l(0,"td",37),b(1,"i",55),r()),e&2){let t=o.$implicit;a(),g("matTooltip",_0(" ",t.loanType.value))("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")}}function ECe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function ICe(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function OCe(e,o){e&1&&b(0,"tr",44)}function ACe(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,$9,t.id))}}function FCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,_Ce,3,3,"th",9)(4,CCe,4,5,"td",10),Z(),X(5,47),F(6,vCe,3,3,"th",9)(7,xCe,2,2,"td",10),Z(),X(8,48),F(9,bCe,3,3,"th",9)(10,yCe,3,3,"td",10),Z(),X(11,49),F(12,SCe,3,3,"th",13)(13,wCe,3,3,"td",14),Z(),X(14,50),F(15,PCe,3,3,"th",13)(16,TCe,3,3,"td",14),Z(),X(17,51),F(18,MCe,3,3,"th",19)(19,DCe,2,3,"td",20),Z(),X(20,64),F(21,ECe,3,3,"th",9)(22,ICe,3,3,"td",10),Z(),F(23,OCe,1,0,"tr",21)(24,ACe,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",yr(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function kCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function BCe(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function RCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Savings Product")))}function NCe(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function LCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function VCe(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function qCe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function zCe(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function HCe(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function GCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",69),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,u_e,t.id))}}function jCe(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",70),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,f_e,t.id))}}function $Ce(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,h_e,t.id))}}function UCe(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,g_e,t.id))}}function WCe(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,__e,t.id))}}function QCe(e,o){if(e&1&&(l(0,"td",37),E(1,GCe,2,3,"button",68),E(2,jCe,2,3,"button",68),E(3,$Ce,2,3,"button",68),E(4,UCe,2,3,"button",68),E(5,WCe,2,3,"button",68),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.active?2:-1),a(),I(t.status.submittedAndPendingApproval?3:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?4:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?5:-1)}}function YCe(e,o){e&1&&b(0,"tr",44)}function JCe(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function KCe(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,kCe,3,3,"th",9)(4,BCe,4,5,"td",10),Z(),X(5,65),F(6,RCe,3,3,"th",9)(7,NCe,2,2,"td",10),Z(),X(8,66),F(9,LCe,3,3,"th",9)(10,VCe,3,3,"td",10),Z(),X(11,67),F(12,qCe,3,3,"th",13)(13,zCe,3,3,"td",14),Z(),X(14,18),F(15,HCe,3,3,"th",19)(16,QCe,6,5,"td",20),Z(),F(17,YCe,1,0,"tr",21)(18,JCe,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","open","isSavings")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function XCe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function ZCe(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function e2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Savings Product")))}function t2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function i2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function n2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function o2e(e,o){e&1&&b(0,"tr",44)}function a2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,U9,t.id))}}function r2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,XCe,3,3,"th",9)(4,ZCe,4,5,"td",10),Z(),X(5,65),F(6,e2e,3,3,"th",9)(7,t2e,2,2,"td",10),Z(),X(8,64),F(9,i2e,3,3,"th",9)(10,n2e,3,3,"td",10),Z(),F(11,o2e,1,0,"tr",21)(12,a2e,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","closed","isSavings")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function l2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function s2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function c2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fixed Deposit Product")))}function p2e(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function m2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function d2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function u2e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function f2e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function h2e(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function g2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,C_e,t.id))}}function _2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",71),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,v_e,t.id))}}function C2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",72),r()),e&2){let t=w().$implicit;g("routerLink",Nt(1,x_e,t.id))}}function v2e(e,o){if(e&1&&(l(0,"td",37),E(1,g2e,2,3,"button",68),E(2,_2e,2,3,"button",68),E(3,C2e,2,3,"button",68),r()),e&2){let t=o.$implicit;a(),I(t.status.submittedAndPendingApproval?1:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?2:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?3:-1)}}function x2e(e,o){e&1&&b(0,"tr",44)}function b2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function y2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,l2e,3,3,"th",9)(4,s2e,4,5,"td",10),Z(),X(5,65),F(6,c2e,3,3,"th",9)(7,p2e,2,1,"td",10),Z(),X(8,66),F(9,m2e,3,3,"th",9)(10,d2e,3,3,"td",10),Z(),X(11,67),F(12,u2e,3,3,"th",13)(13,f2e,3,3,"td",14),Z(),X(14,18),F(15,h2e,3,3,"th",19)(16,v2e,4,3,"td",20),Z(),F(17,x2e,1,0,"tr",21)(18,b2e,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","open","isFixed")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function S2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function w2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function P2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fixed Deposit Product")))}function T2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function M2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function D2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function E2e(e,o){e&1&&b(0,"tr",44)}function I2e(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,W9,t.id))}}function O2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,S2e,3,3,"th",9)(4,w2e,4,5,"td",10),Z(),X(5,65),F(6,P2e,3,3,"th",9)(7,T2e,2,2,"td",10),Z(),X(8,64),F(9,M2e,3,3,"th",9)(10,D2e,3,3,"td",10),Z(),F(11,E2e,1,0,"tr",21)(12,I2e,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","closed","isFixed")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function A2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function F2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function k2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Recurring Deposit Product")))}function B2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function R2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function N2e(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function L2e(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function V2e(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.accountBalance))}}function q2e(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function z2e(e,o){if(e&1&&(l(0,"button",68),b(1,"i",59),r()),e&2){let t=w(2).$implicit;g("routerLink",Nt(1,b_e,t.id))}}function H2e(e,o){e&1&&F(0,z2e,2,3,"button",73),e&2&&g("mifosxHasPermission","APPROVE_SAVINGSACCOUNT")}function G2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,y_e,t.id))}}function j2e(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(1,S_e,t.id))}}function $2e(e,o){e&1&&F(0,G2e,2,3,"button",38)(1,j2e,2,3,"button",38),e&2&&(g("mifosxHasPermission","APPROVALUNDO_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","ACTIVATE_SAVINGSACCOUNT"))}function U2e(e,o){if(e&1&&(l(0,"td",37),E(1,H2e,1,1,"button",68),E(2,$2e,2,2),r()),e&2){let t=o.$implicit;a(),I(t.status.submittedAndPendingApproval?1:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?2:-1)}}function W2e(e,o){e&1&&b(0,"tr",44)}function Q2e(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function Y2e(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,A2e,3,3,"th",9)(4,F2e,4,5,"td",10),Z(),X(5,65),F(6,k2e,3,3,"th",9)(7,B2e,2,2,"td",10),Z(),X(8,66),F(9,R2e,3,3,"th",9)(10,N2e,3,3,"td",10),Z(),X(11,67),F(12,L2e,3,3,"th",13)(13,V2e,3,3,"td",14),Z(),X(14,18),F(15,q2e,3,3,"th",19)(16,U2e,3,2,"td",20),Z(),F(17,W2e,1,0,"tr",21)(18,Q2e,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","open","isRecurring")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function J2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function K2e(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function X2e(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Recurring Deposit Product")))}function Z2e(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function eve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function tve(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function ive(e,o){e&1&&b(0,"tr",44)}function nve(e,o){if(e&1&&b(0,"tr",63),e&2){let t=o.$implicit;g("routerLink",Nt(1,Q9,t.id))}}function ove(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,J2e,3,3,"th",9)(4,K2e,4,5,"td",10),Z(),X(5,65),F(6,X2e,3,3,"th",9)(7,Z2e,2,2,"td",10),Z(),X(8,64),F(9,eve,3,3,"th",9)(10,tve,3,3,"td",10),Z(),F(11,ive,1,0,"tr",21)(12,nve,1,3,"tr",52),r()),e&2){let t=w();g("dataSource",$t(1,3,t.savingAccounts,"saving","closed","isRecurring")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function ave(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function rve(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function lve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Product")))}function sve(e,o){if(e&1&&(l(0,"td",32),b(1,"mifosx-long-text",54),r()),e&2){let t=o.$implicit;a(),g("textValue",Le(t.productName))}}function cve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved Shares")))}function pve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function mve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Pending For Approval Shares")))}function dve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function uve(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function fve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",59),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,w_e,t.id))}}function hve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",71),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,P_e,t.id))}}function gve(e,o){if(e&1){let t=Y();l(0,"button",40),R("click",function(i){V(t);let s=w(3);return q(s.routeEdit(i))}),b(1,"i",72),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(1,T_e,t.id))}}function _ve(e,o){if(e&1&&(l(0,"td",37),E(1,fve,2,3,"button",68),E(2,hve,2,3,"button",68),E(3,gve,2,3,"button",68),r()),e&2){let t=o.$implicit;a(),I(t.status.submittedAndPendingApproval?1:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?2:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?3:-1)}}function Cve(e,o){e&1&&b(0,"tr",44)}function vve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function xve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,ave,3,3,"th",9)(4,rve,4,5,"td",10),Z(),X(5,74),F(6,lve,3,3,"th",9)(7,sve,2,2,"td",10),Z(),X(8,75),F(9,cve,3,3,"th",9)(10,pve,2,1,"td",10),Z(),X(11,76),F(12,mve,3,3,"th",9)(13,dve,2,1,"td",10),Z(),X(14,18),F(15,uve,3,3,"th",19)(16,_ve,4,3,"td",20),Z(),F(17,Cve,1,0,"tr",21)(18,vve,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",Ft(1,3,t.shareAccounts,"share")),a(17),g("matHeaderRowDef",t.openSharesColumns),a(),g("matRowDefColumns",t.openSharesColumns)}}function bve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function yve(e,o){if(e&1&&(l(0,"td",32),b(1,"i",33),p(2,"statusLookup"),b(3,"mifosx-account-number",53),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code)),a(2),g("accountNo",Le(t.accountNo))}}function Sve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Product")))}function wve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Pve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved Shares")))}function Tve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalApprovedShares)}}function Mve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Pending For Approval Shares")))}function Dve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalPendingForApprovalShares)}}function Eve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function Ive(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function Ove(e,o){e&1&&b(0,"tr",44)}function Ave(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y9,t.id))}}function Fve(e,o){if(e&1&&(l(0,"table",7),p(1,"accountsFilter"),X(2,46),F(3,bve,3,3,"th",9)(4,yve,4,5,"td",10),Z(),X(5,74),F(6,Sve,3,3,"th",9)(7,wve,2,1,"td",10),Z(),X(8,75),F(9,Pve,3,3,"th",9)(10,Tve,2,1,"td",10),Z(),X(11,76),F(12,Mve,3,3,"th",9)(13,Dve,2,1,"td",10),Z(),X(14,64),F(15,Eve,3,3,"th",9)(16,Ive,3,3,"td",10),Z(),F(17,Ove,1,0,"tr",21)(18,Ave,1,3,"tr",22),r()),e&2){let t=w();g("dataSource",yr(1,3,t.shareAccounts,"share","closed")),a(17),g("matHeaderRowDef",t.closedSharesColumns),a(),g("matRowDefColumns",t.closedSharesColumns)}}function kve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.ID")))}function Bve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.collateralId)}}function Rve(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Nve(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Lve(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Quantity")))}function Vve(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.quantity))}}function qve(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Value")))}function zve(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.basePrice*t.quantity)," ")}}function Hve(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Total Collateral Value")," "))}function Gve(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.pctToBase*t.basePrice*t.quantity/100)," ")}}function jve(e,o){e&1&&b(0,"tr",44)}function $ve(e,o){if(e&1&&b(0,"tr",45),e&2){let t=o.$implicit;g("routerLink",Nt(1,M_e,t.collateralId))}}var zC=(()=>{class e{constructor(){this.route=T(Ie),this.clientService=T(Oi),this.router=T(qe),this.openLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Actions"],this.closedLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Closed Date"],this.openSavingsColumns=["Account No","Saving Account","Last Active","Balance","Actions"],this.closedSavingsColumns=["Account No","Saving Account","Closed Date"],this.openSharesColumns=["Account No","Share Account","Approved Shares","Pending For Approval Shares","Actions"],this.closedSharesColumns=["Account No","Share Account","Approved Shares","Pending For Approval Shares","Closed Date"],this.upcomingChargesColumns=["Name","Due as of","Due","Paid","Waived","Outstanding","Actions"],this.collateralsColumns=["ID","Name","Quantity","Total Value","Total Collateral Value"],this.showClosedLoanAccounts=!1,this.showClosedSavingAccounts=!1,this.showClosedShareAccounts=!1,this.showClosedRecurringAccounts=!1,this.showClosedFixedAccounts=!1,this.route.data.subscribe(t=>{this.clientAccountData=t.clientAccountsData,this.savingAccounts=t.clientAccountsData.savingsAccounts,this.loanAccounts=t.clientAccountsData.loanAccounts,this.shareAccounts=t.clientAccountsData.shareAccounts,this.upcomingCharges=t.clientChargesData.pageItems,this.collaterals=t.clientCollateralData,this.clientSummary=t.clientSummary?t.clientSummary[0]:[],this.clientid=this.route.parent.snapshot.params.clientId})}toggleLoanAccountsOverview(){this.showClosedLoanAccounts=!this.showClosedLoanAccounts}toggleSavingAccountsOverview(){this.showClosedSavingAccounts=!this.showClosedSavingAccounts}toggleShareAccountsOverview(){this.showClosedShareAccounts=!this.showClosedShareAccounts}toggleRecurringAccountsOverview(){this.showClosedRecurringAccounts=!this.showClosedRecurringAccounts}toggleFixedAccountsOverview(){this.showClosedFixedAccounts=!this.showClosedFixedAccounts}waiveCharge(t,n){let i={clientId:n.toString(),resourceType:t};this.clientService.waiveClientCharge(i).subscribe(()=>{this.getChargeData(n)})}getChargeData(t){this.clientService.getClientChargesData(t).subscribe(n=>{this.upcomingCharges=n.pageItems})}routeEdit(t){t.stopPropagation()}routeTransferFund(t){let n={loanId:t,accountType:"fromloans"};this.router.navigate(["../","loans-accounts",t,"transfer-funds","make-account-transfer"],{relativeTo:this.route,queryParams:n})}viewAccountsLabel(t){return t?"labels.buttons.View Active Accounts":"labels.buttons.View Closed Accounts"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:156,vars:83,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","performance-history-container"],[1,"heading-content"],[1,"layout-column","flex-50"],["className","heading-name"],[1,"layout-row","align-flex-end"],["mat-raised-button","","class","f-right","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","Name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Due as of"],["matColumnDef","Due"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","Paid"],["matColumnDef","Waived"],["matColumnDef","Outstanding"],["matColumnDef","Actions"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"heading-name"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["mat-raised-button","","color","primary","disabled","",1,"f-right"],["matColumnDef","ID"],["matColumnDef","Quantity"],["matColumnDef","Total Value"],["matColumnDef","Total Collateral Value"],["mat-raised-button","","color","primary",1,"f-right",3,"routerLink"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount"],["mat-header-cell","",1,"center"],["mat-cell","",1,"center"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-dollar"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row","",3,"routerLink"],["matColumnDef","Account No"],["matColumnDef","Loan Account"],["matColumnDef","Original Loan"],["matColumnDef","Loan Balance"],["matColumnDef","Amount Paid"],["matColumnDef","Type"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[3,"accountNo"],["chars","35",3,"textValue"],["matTooltipPosition","above",1,"fa","fa-large",3,"ngClass","matTooltip"],["mat-raised-button","","color","primary","matTooltipPosition","above",1,"account-action-button",3,"matTooltip","routerLink"],["mat-raised-button","","color","primary","matTooltipPosition","above",1,"account-action-button",3,"click","matTooltip","routerLink"],["class","account-action-button","mat-raised-button","","color","primary","matTooltipPosition","above",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],[1,"fa","fa-check"],["class","account-action-button","mat-raised-button","","color","primary","matTooltipPosition","above",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary","matTooltipPosition","above",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-exchange"],["mat-row","",1,"select-row",3,"routerLink"],["matColumnDef","Closed Date"],["matColumnDef","Saving Account"],["matColumnDef","Last Active"],["matColumnDef","Balance"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],[1,"fa","fa-arrow-up"],[1,"fa","fa-arrow-down"],[1,"fa","fa-undo"],[1,"fa","fa-check-circle"],["class","account-action-button","mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["matColumnDef","Share Account"],["matColumnDef","Approved Shares"],["matColumnDef","Pending For Approval Shares"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"table")(6,"tbody")(7,"tr")(8,"td")(9,"p"),c(10),p(11,"translate"),b(12,"br"),c(13),p(14,"translate"),b(15,"br"),c(16),p(17,"translate"),p(18,"formatNumber"),b(19,"br"),r()(),l(20,"td")(21,"p"),c(22),p(23,"translate"),b(24,"br"),c(25),p(26,"translate"),p(27,"formatNumber"),b(28,"br"),r()()()()()(),l(29,"div",2)(30,"div",3)(31,"div",4)(32,"h3"),c(33),p(34,"translate"),r()()(),l(35,"div",3)(36,"div",5),F(37,D_e,3,5,"button",6),r()()(),l(38,"table",7),X(39,8),F(40,E_e,3,3,"th",9)(41,I_e,4,4,"td",10),Z(),X(42,11),F(43,O_e,3,3,"th",9)(44,A_e,3,3,"td",10),Z(),X(45,12),F(46,F_e,3,3,"th",13)(47,k_e,3,3,"td",14),Z(),X(48,15),F(49,B_e,3,3,"th",13)(50,R_e,3,3,"td",14),Z(),X(51,16),F(52,N_e,3,3,"th",13)(53,L_e,3,3,"td",14),Z(),X(54,17),F(55,V_e,3,3,"th",13)(56,q_e,3,3,"td",14),Z(),X(57,18),F(58,z_e,3,3,"th",19)(59,j_e,3,2,"td",20),Z(),F(60,$_e,1,0,"tr",21)(61,U_e,1,3,"tr",22),r(),l(62,"div",2)(63,"div",3)(64,"div",23)(65,"h3"),c(66),p(67,"translate"),r()()(),l(68,"div",3)(69,"div",5)(70,"button",24),R("click",function(){return i.toggleLoanAccountsOverview()}),c(71),p(72,"translate"),r()()()(),E(73,gCe,25,6,"table",7),E(74,FCe,25,7,"table",7),l(75,"div",2)(76,"div",3)(77,"div",23)(78,"h3"),c(79),p(80,"translate"),r()()(),l(81,"div",3)(82,"div",5)(83,"button",24),R("click",function(){return i.toggleSavingAccountsOverview()}),c(84),p(85,"translate"),r()()()(),E(86,KCe,19,8,"table",7),E(87,r2e,13,8,"table",7),l(88,"div",2)(89,"div",3)(90,"div",23)(91,"h3"),c(92),p(93,"translate"),r()()(),l(94,"div",3)(95,"div",5)(96,"button",24),R("click",function(){return i.toggleFixedAccountsOverview()}),c(97),p(98,"translate"),r()()()(),E(99,y2e,19,8,"table",7),E(100,O2e,13,8,"table",7),l(101,"div",2)(102,"div",3)(103,"div",23)(104,"h3"),c(105),p(106,"translate"),r()()(),l(107,"div",3)(108,"div",5)(109,"button",24),R("click",function(){return i.toggleRecurringAccountsOverview()}),c(110),p(111,"translate"),r()()()(),E(112,Y2e,19,8,"table",7),E(113,ove,13,8,"table",7),l(114,"div",2)(115,"div",3)(116,"div",23)(117,"h3"),c(118),p(119,"translate"),r()()(),l(120,"div",3)(121,"div",5)(122,"button",24),R("click",function(){return i.toggleShareAccountsOverview()}),c(123),p(124,"translate"),r()()()(),E(125,xve,19,6,"table",7),E(126,Fve,19,7,"table",7),l(127,"div",2)(128,"div",3)(129,"div",23)(130,"h3"),c(131),p(132,"translate"),r()()(),l(133,"div",3)(134,"div",5)(135,"button",25),c(136),p(137,"translate"),r()()()(),l(138,"table",7),X(139,26),F(140,kve,3,3,"th",9)(141,Bve,2,1,"td",10),Z(),X(142,8),F(143,Rve,3,3,"th",9)(144,Nve,2,1,"td",10),Z(),X(145,27),F(146,Lve,3,3,"th",13)(147,Vve,3,3,"td",14),Z(),X(148,28),F(149,qve,3,3,"th",13)(150,zve,3,3,"td",14),Z(),X(151,29),F(152,Hve,3,3,"th",13)(153,Gve,3,3,"td",14),Z(),F(154,jve,1,0,"tr",21)(155,$ve,1,3,"tr",22),r()()),n&2&&(a(2),h(m(3,41,"labels.heading.Performance History")),a(8),le(" ",m(11,43,"labels.inputs.No. Of Loan Cycles")," :",i.clientSummary==null?null:i.clientSummary.loanCycle," "),a(3),le(" ",m(14,45,"labels.inputs.No. of Active Loans")," :",i.clientSummary==null?null:i.clientSummary.activeLoans," "),a(3),le(" ",m(17,47,"labels.inputs.Last Loan Amount")," :",m(18,49,i.clientSummary==null?null:i.clientSummary.lastLoanAmount)," "),a(6),le(" ",m(23,51,"labels.inputs.No. of Active Savings")," :",i.clientSummary==null?null:i.clientSummary.activeSavings," "),a(3),le(" ",m(26,53,"labels.inputs.Total Savings")," :",m(27,55,i.clientSummary==null?null:i.clientSummary.totalSavings)," "),a(8),h(m(34,57,"labels.heading.Upcoming Charges")),a(4),g("mifosxHasPermission","READ_CLIENTCHARGE"),a(),g("dataSource",i.upcomingCharges),a(22),g("matHeaderRowDef",i.upcomingChargesColumns),a(),g("matRowDefColumns",i.upcomingChargesColumns),a(5),h(m(67,59,"labels.heading.Loan Accounts")),a(5),v(" ",m(72,61,i.viewAccountsLabel(i.showClosedLoanAccounts))," "),a(2),I(i.showClosedLoanAccounts?-1:73),a(),I(i.showClosedLoanAccounts?74:-1),a(5),h(m(80,63,"labels.heading.Saving Accounts")),a(5),v(" ",m(85,65,i.viewAccountsLabel(i.showClosedSavingAccounts))," "),a(2),I(i.showClosedSavingAccounts?-1:86),a(),I(i.showClosedSavingAccounts?87:-1),a(5),h(m(93,67,"labels.heading.Fixed Deposit Accounts")),a(5),v(" ",m(98,69,i.viewAccountsLabel(i.showClosedFixedAccounts))," "),a(2),I(i.showClosedFixedAccounts?-1:99),a(),I(i.showClosedFixedAccounts?100:-1),a(5),h(m(106,71,"labels.heading.Recurring Deposit Accounts")),a(5),v(" ",m(111,73,i.viewAccountsLabel(i.showClosedRecurringAccounts))," "),a(2),I(i.showClosedRecurringAccounts?-1:112),a(),I(i.showClosedRecurringAccounts?113:-1),a(5),h(m(119,75,"labels.inputs.Shares Accounts")),a(5),v(" ",m(124,77,i.viewAccountsLabel(i.showClosedShareAccounts))," "),a(2),I(i.showClosedShareAccounts?-1:125),a(),I(i.showClosedShareAccounts?126:-1),a(5),h(m(132,79,"labels.heading.Collateral Data")),a(5),v(" ",m(137,81,"labels.buttons.View Collaterals")," "),a(2),g("dataSource",i.collaterals),a(16),g("matHeaderRowDef",i.collateralsColumns),a(),g("matRowDefColumns",i.collateralsColumns))},dependencies:[ue,co,fe,Oe,xe,Ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rc,Bk,si,Pi,he,go,os,In],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:hover{cursor:pointer}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.heading-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:1%;margin-top:1%}.heading-name[_ngcontent-%COMP%]{margin:0}.layout-row.align-flex-end[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}"]})}}return e})();var Uve=()=>["./add"],Wve=e=>[e,"edit"];function Qve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.First Name")," : ",t.firstName)}}function Yve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Middle Name")," : ",t.middleName)}}function Jve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Last Name")," : ",t.lastName)}}function Kve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Qualification")," : ",t.qualification)}}function Xve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Mobile Number")," : ",t.mobileNumber)}}function Zve(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Age")," : ",t.age)}}function exe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),p(3,"yesNo"),b(4,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Is Dependent")," : ",m(3,4,t.isDependent))}}function txe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Marital Status")," : ",t.maritalStatus)}}function ixe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Gender")," : ",t.gender)}}function nxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Profession")," : ",t.profession)}}function oxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),p(3,"dateFormat"),b(4,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Date Of Birth")," : ",m(3,4,t.dateOfBirth))}}function axe(e,o){if(e&1){let t=Y();l(0,"mat-expansion-panel",4)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider",5),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),r(),l(10,"button",9),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w();return q(u.deleteFamilyMember(s.clientId,s.id,s.firstName,d))}),b(11,"fa-icon",10),r()(),l(12,"p"),E(13,Qve,4,4,"span"),E(14,Yve,4,4,"span"),E(15,Jve,4,4,"span"),E(16,Kve,4,4,"span"),E(17,Xve,4,4,"span"),E(18,Zve,4,4,"span"),E(19,exe,5,6,"span"),E(20,txe,4,4,"span"),E(21,ixe,4,4,"span"),E(22,nxe,4,4,"span"),E(23,oxe,5,6,"span"),r()()}if(e&2){let t=o.$implicit,n=w();a(3),v(" ",n.displayName(t)," "),a(2),v(" ",t.relationship," "),a(),g("inset",!0),a(3),g("routerLink",Nt(15,Wve,t.id)),a(4),I(t.firstName?13:-1),a(),I(t.middleName?14:-1),a(),I(t.lastName?15:-1),a(),I(t.qualification?16:-1),a(),I(t.mobileNumber?17:-1),a(),I(t.age?18:-1),a(),I(t.isDependent?19:-1),a(),I(t.maritalStatus?20:-1),a(),I(t.gender?21:-1),a(),I(t.profession?22:-1),a(),I(t.dateOfBirth?23:-1)}}var HC=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.clientFamilyMembers=t.clientFamilyMembers})}deleteFamilyMember(t,n,i,s){this.dialog.open(vi,{data:{deleteContext:`Family member id:${n} name : ${i} ${s}`}}).afterClosed().subscribe(u=>{u.delete&&this.clientsService.deleteFamilyMember(t,n).subscribe(()=>{this.clientFamilyMembers.splice(s,1)})})}displayName(t){let n=t.firstName;return t.middleName&&(n=n+" "+t.middleName),t.lastName&&(n=n+" "+t.lastName),n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-family-members-tab"]],decls:13,vars:8,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"family-member"],[3,"inset"],[1,"family-member-actions","layout-row","align-end"],["mat-button","","color","primary"],["icon","edit",3,"routerLink"],["mat-button","","color","warn",3,"click"],["icon","trash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"router-outlet")(2,"h3"),c(3),p(4,"translate"),r(),l(5,"div",1)(6,"button",2),b(7,"fa-icon",3),c(8),p(9,"translate"),r()(),l(10,"mat-accordion"),Se(11,axe,24,17,"mat-expansion-panel",4,Pe),r()()()),n&2&&(a(3),h(m(4,3,"labels.heading.Family Members")),a(3),g("routerLink",oe(7,Uve)),a(2),v("",m(9,5,"labels.buttons.Add")," "),a(3),we(i.clientFamilyMembers))},dependencies:[ue,fe,Oe,xe,ra,ke,Dr,Pr,Tr,Mr,oc,Ri,Pi,he,po],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%]{margin-top:1%}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .family-member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}"]})}}return e})();var rxe=()=>["../"];function lxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function pxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function dxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function fxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}var GC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.router=T(qe),this.route=T(Ie),this.clientsService=T(Oi),this.settingsService=T(Ot),this.maxDate=new Date,this.minAge=0,this.route.data.subscribe(t=>{this.addFamilyMemberTemplate=t.clientTemplate.familyMemberOptions}),this.clientId=this.route.parent.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createAddFamilyMemberForm(),this.addFamilyMemberForm.get("dateOfBirth").valueChanges.subscribe(t=>{if(t){let n=this.calculateAge(t);this.addFamilyMemberForm.get("age").setValue(n)}else this.addFamilyMemberForm.get("age").setValue("")})}calculateAge(t){let n=new Date(this.settingsService.businessDate),i=new Date(t),s=n.getFullYear()-i.getFullYear(),d=n.getMonth()-i.getMonth();return(d<0||d===0&&n.getDate(){this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-family-member"]],decls:78,vars:51,consts:[["dueDatePicker",""],[1,"add-family-member-container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","align-start-center"],[1,"flex-50-minus-25px"],["formControlName","firstName","required","","matInput","","aria-label","First Name","placeholder","First Name","title","First Name"],["formControlName","middleName","matInput","","aria-label","Middle Name","placeholder","Middle Name","title","Middle Name"],["formControlName","lastName","required","","matInput","","aria-label","Last Name","placeholder","Last Name","title","Last Name"],["formControlName","qualification","matInput","","aria-label","Qualification","placeholder","Qualification","title","Qualification"],["type","number","formControlName","age","matInput","","disabled","","aria-label","Age","placeholder","Age","title","Age",3,"min"],["formControlName","isDependent","labelPosition","before",1,"flex-50-minus-25px"],["formControlName","relationshipId","required",""],[3,"value"],["formControlName","genderId","required",""],["formControlName","professionId"],["formControlName","maritalStatusId"],[1,"flex-fill",3,"click"],["formControlName","dateOfBirth","matInput","","placeholder","Optional","aria-label","Date Of Birth","title","Date Of Birth",3,"max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","gap-32px","layout-align-center"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",5),E(8,lxe,7,9,"mat-error"),r(),l(9,"mat-form-field",4)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",6),r(),l(14,"mat-form-field",4)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",7),E(19,sxe,7,9,"mat-error"),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",4)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",9),r(),l(30,"mat-checkbox",10),c(31),p(32,"translate"),r(),l(33,"mat-form-field",4)(34,"mat-label"),c(35),p(36,"translate"),r(),l(37,"mat-select",11),Se(38,cxe,3,5,"mat-option",12,Pe),r(),E(40,pxe,7,9,"mat-error"),r(),l(41,"mat-form-field",4)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",13),Se(46,mxe,3,5,"mat-option",12,Pe),r(),E(48,dxe,7,9,"mat-error"),r(),l(49,"mat-form-field",4)(50,"mat-label"),c(51),p(52,"translate"),r(),l(53,"mat-select",14),Se(54,uxe,3,5,"mat-option",12,Pe),r()(),l(56,"mat-form-field",4)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",15),Se(61,fxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){V(s);let u=ve(70);return q(u.open())}),l(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",17)(68,"mat-datepicker-toggle",18)(69,"mat-datepicker",null,0),r()(),l(71,"div",19)(72,"button",20),c(73),p(74,"translate"),r(),l(75,"button",21),c(76),p(77,"translate"),r()()()()}if(n&2){let s=ve(70);a(),g("formGroup",i.addFamilyMemberForm),a(4),h(m(6,24,"labels.inputs.First Name")),a(3),I(i.addFamilyMemberForm.controls.firstName.hasError("required")?8:-1),a(3),h(m(12,26,"labels.inputs.Middle Name")),a(5),h(m(17,28,"labels.inputs.Last Name")),a(3),I(i.addFamilyMemberForm.controls.lastName.hasError("required")?19:-1),a(3),h(m(23,30,"labels.inputs.Qualification")),a(5),h(m(28,32,"labels.inputs.Age")),a(2),g("min",i.minAge),a(2),v(" ",m(32,34,"labels.inputs.Is Dependent"),"? "),a(4),h(m(36,36,"labels.inputs.Relationship")),a(3),we(i.addFamilyMemberTemplate.relationshipIdOptions),a(2),I(i.addFamilyMemberForm.controls.relationshipId.hasError("required")?40:-1),a(3),h(m(44,38,"labels.inputs.Gender")),a(3),we(i.addFamilyMemberTemplate.genderIdOptions),a(2),I(i.addFamilyMemberForm.controls.genderId.hasError("required")?48:-1),a(3),h(m(52,40,"labels.inputs.Profession")),a(3),we(i.addFamilyMemberTemplate.professionIdOptions),a(4),h(m(59,42,"labels.inputs.Marital Status")),a(3),we(i.addFamilyMemberTemplate.maritalStatusIdOptions),a(4),h(m(66,44,"labels.inputs.Date Of Birth")),a(2),g("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(4),g("routerLink",oe(50,rxe)),a(),h(m(74,46,"labels.buttons.Cancel")),a(2),g("disabled",!i.addFamilyMemberForm.valid),a(),v(" ",m(77,48,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,he,ki],styles:[".add-family-member-container[_ngcontent-%COMP%]{width:70%;margin:0 auto;padding:5%}@media screen and (width >= 960px){.add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-fill[_ngcontent-%COMP%]:nth-child(odd), .add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-50-minus-25px[_ngcontent-%COMP%]:nth-child(odd){margin-right:25px}.add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-fill[_ngcontent-%COMP%]:last-child, .add-family-member-container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] > .flex-50-minus-25px[_ngcontent-%COMP%]:last-child{margin-right:0}}.mat-form-field-hint[_ngcontent-%COMP%]{font-size:75%;color:#0009;margin-top:4px;margin-bottom:8px}"]})}}return e})();var hxe=()=>["../../"];function gxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _xe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Cxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function vxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function bxe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function Sxe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}var jC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.router=T(qe),this.route=T(Ie),this.clientsService=T(Oi),this.settingsService=T(Ot),this.maxDate=new Date,this.route.data.subscribe(t=>{this.addFamilyMemberTemplate=t.clientTemplate.familyMemberOptions,this.familyMemberDetails=t.editFamilyMember})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditFamilyMemberForm(this.familyMemberDetails),this.editFamilyMemberForm.get("dateOfBirth").valueChanges.subscribe(t=>{if(t){let n=this.calculateAge(t);this.editFamilyMemberForm.get("age").setValue(n)}else this.editFamilyMemberForm.get("age").setValue("")})}calculateAge(t){let n=new Date(this.settingsService.businessDate),i=new Date(t),s=n.getFullYear()-i.getFullYear(),d=n.getMonth()-i.getMonth();return(d<0||d===0&&n.getDate(){this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-family-member"]],decls:78,vars:50,consts:[["dueDatePicker",""],[1,"add-family-member-container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","align-start-center"],[1,"flex-50-minus-25px"],["formControlName","firstName","required","","matInput",""],["formControlName","middleName","matInput",""],["formControlName","lastName","required","","matInput",""],["formControlName","qualification","matInput",""],["type","number","formControlName","age","matInput","","disabled",""],["formControlName","isDependent","labelPosition","before",1,"flex-50-minus-25px"],["formControlName","relationshipId","required",""],[3,"value"],["formControlName","genderId","required",""],["formControlName","professionId"],["formControlName","maritalStatusId"],[1,"flex-fill",3,"click"],["formControlName","dateOfBirth","matInput","","placeholder","Optional",3,"max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","gap-32px","layout-align-center"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",5),E(8,gxe,7,9,"mat-error"),r(),l(9,"mat-form-field",4)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",6),r(),l(14,"mat-form-field",4)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",7),E(19,_xe,7,9,"mat-error"),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",4)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",9),r(),l(30,"mat-checkbox",10),c(31),p(32,"translate"),r(),l(33,"mat-form-field",4)(34,"mat-label"),c(35),p(36,"translate"),r(),l(37,"mat-select",11),Se(38,Cxe,3,5,"mat-option",12,Pe),r(),E(40,vxe,7,9,"mat-error"),r(),l(41,"mat-form-field",4)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",13),Se(46,xxe,3,5,"mat-option",12,Pe),r(),E(48,bxe,7,9,"mat-error"),r(),l(49,"mat-form-field",4)(50,"mat-label"),c(51),p(52,"translate"),r(),l(53,"mat-select",14),Se(54,yxe,3,5,"mat-option",12,Pe),r()(),l(56,"mat-form-field",4)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",15),Se(61,Sxe,3,5,"mat-option",12,Pe),r()(),l(63,"mat-form-field",16),R("click",function(){V(s);let u=ve(70);return q(u.open())}),l(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",17)(68,"mat-datepicker-toggle",18)(69,"mat-datepicker",null,0),r()(),l(71,"div",19)(72,"button",20),c(73),p(74,"translate"),r(),l(75,"button",21),c(76),p(77,"translate"),r()()()()}if(n&2){let s=ve(70);a(),g("formGroup",i.editFamilyMemberForm),a(4),h(m(6,23,"labels.inputs.First Name")),a(3),I(i.editFamilyMemberForm.controls.firstName.hasError("required")?8:-1),a(3),h(m(12,25,"labels.inputs.Middle Name")),a(5),h(m(17,27,"labels.inputs.Last Name")),a(3),I(i.editFamilyMemberForm.controls.lastName.hasError("required")?19:-1),a(3),h(m(23,29,"labels.inputs.Qualification")),a(5),h(m(28,31,"labels.inputs.Age")),a(4),v(" ",m(32,33,"labels.inputs.Is Dependent")," "),a(4),h(m(36,35,"labels.inputs.Relationship")),a(3),we(i.addFamilyMemberTemplate.relationshipIdOptions),a(2),I(i.editFamilyMemberForm.controls.relationshipId.hasError("required")?40:-1),a(3),h(m(44,37,"labels.inputs.Gender")),a(3),we(i.addFamilyMemberTemplate.genderIdOptions),a(2),I(i.editFamilyMemberForm.controls.genderId.hasError("required")?48:-1),a(3),h(m(52,39,"labels.inputs.Profession")),a(3),we(i.addFamilyMemberTemplate.professionIdOptions),a(4),h(m(59,41,"labels.inputs.Marital Status")),a(3),we(i.addFamilyMemberTemplate.maritalStatusIdOptions),a(4),h(m(66,43,"labels.inputs.Date Of Birth")),a(2),g("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(4),g("routerLink",oe(49,hxe)),a(),v(" ",m(74,45,"labels.buttons.Cancel")," "),a(2),g("disabled",i.editFamilyMemberForm.pristine||!i.editFamilyMemberForm.valid),a(),v(" ",m(77,47,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,he,ki],styles:[".add-family-member-container[_ngcontent-%COMP%]{width:70%;margin:0 auto;padding:5%}@media screen and (width >= 960px){.add-family-member-container[_ngcontent-%COMP%] .flex-50-minus-25px[_ngcontent-%COMP%]:nth-child(odd){margin-right:25px}.add-family-member-container[_ngcontent-%COMP%] .flex-50-minus-25px[_ngcontent-%COMP%]:last-child{margin-right:0}}.mat-form-field-hint[_ngcontent-%COMP%]{font-size:75%;color:#0009;margin-top:4px;margin-bottom:8px}"]})}}return e})();var wxe=["identifiersTable"],Pxe=["identityLightbox"],Txe=()=>({"margin-top":"3%"});function Mxe(e,o){if(e&1){let t=Y();l(0,"button",18),R("click",function(){V(t);let i=w();return q(i.addIdentifier())}),b(1,"fa-icon",19),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add")," "))}function Dxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Id")))}function Exe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function Ixe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Oxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentType.name)}}function Axe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Document Key")))}function Fxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.documentKey)}}function kxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function Bxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function Rxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Identity Documents")))}function Nxe(e,o){if(e&1&&b(0,"img",26),e&2){let t=w().$implicit,n=w(3);g("src",n.previewThumbnails[t.id],f0)("alt",t.name)("title",t.name)}}function Lxe(e,o){if(e&1&&(l(0,"div",27),b(1,"fa-icon",32),l(2,"span"),c(3),r()()),e&2){let t=w().$implicit;a(3),h(t.fileName||t.name)}}function Vxe(e,o){e&1&&(l(0,"div",28),b(1,"fa-icon",33),r())}function qxe(e,o){if(e&1&&(l(0,"div",31),c(1),r()),e&2){let t=w().$implicit;a(),h(t.fileName)}}function zxe(e,o){if(e&1){let t=Y();l(0,"div",24)(1,"div",25),p(2,"translate"),R("keydown.enter",function(){let i=V(t).$implicit,s=w(2).$implicit,d=w();return q(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("keydown.space",function(){let i=V(t).$implicit,s=w(2).$implicit,d=w();return q(d.isPreviewable(i)&&d.openDocumentPreview(s,i))})("click",function(){let i=V(t).$implicit,s=w(2).$implicit,d=w();return q(d.isPreviewable(i)&&d.openDocumentPreview(s,i))}),E(3,Nxe,1,3,"img",26)(4,Lxe,4,1,"div",27),E(5,Vxe,2,0,"div",28),r(),l(6,"div",29)(7,"div",30),c(8),r(),E(9,qxe,2,1,"div",31),r()()}if(e&2){let t=o.$implicit,n=w(3);a(),_l("clickable",n.isPreviewable(t)),Dn("aria-label",m(2,7,"labels.buttons.Preview")+": "+t.name),a(2),I(n.previewThumbnails[t.id]?3:4),a(2),I(n.isPreviewable(t)?5:-1),a(3),h(t.name),a(),I(t.fileName?9:-1)}}function Hxe(e,o){if(e&1&&(l(0,"div",22),Se(1,zxe,10,9,"div",24,dd().trackByDocumentId,!0),r()),e&2){let t=w().$implicit;a(),we(t.documents)}}function Gxe(e,o){e&1&&(l(0,"span",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.NoDocuments")))}function jxe(e,o){if(e&1&&(l(0,"td",21),E(1,Hxe,3,0,"div",22)(2,Gxe,3,3,"span",23),r()),e&2){let t=o.$implicit;a(),I(t.documents!=null&&t.documents.length?1:2)}}function $xe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function Uxe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.status==="clientIdentifierStatusType.active"?"active":"inactive"," ")}}function Wxe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Qxe(e,o){if(e&1){let t=Y();l(0,"button",35),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w(),s=i.$implicit,d=i.index,u=w();return q(u.deleteIdentifier(s.clientId,s.id,d))}),b(3,"fa-icon",36),r()}e&2&&(g("title",m(1,2,"labels.buttons.Delete")),Dn("aria-label",m(2,4,"labels.buttons.Delete")))}function Yxe(e,o){e&1&&(l(0,"td",21),F(1,Qxe,4,6,"button",34),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CLIENTIDENTIFIER"))}function Jxe(e,o){e&1&&b(0,"tr",37)}function Kxe(e,o){e&1&&b(0,"tr",38)}var $C=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.clientService=T(Oi),this.translateService=T(yi),this.documentPreviewService=T(Ok),this.destroyRef=T(mF),this.identitiesColumns=["id","description","type","documentKey","documents","status","actions"],this.previewThumbnails={},this.lightboxInstance=null,this.lightboxPlugins=[Ik,Ek,Dk],this.clientId=this.route.parent.snapshot.paramMap.get("clientId"),this.route.data.pipe(Rk(this.destroyRef)).subscribe(t=>{this.clientIdentities=t.clientIdentities,this.clientIdentifierTemplate=t.clientIdentifierTemplate,this.prefetchThumbnails()})}ngOnDestroy(){this.destroyLightbox(),Array.isArray(this.clientIdentities)&&this.clientIdentities.forEach(t=>{t.documents?.forEach(n=>this.documentPreviewService.release(n.id))})}trackByDocumentId(t,n){return n?.id}addIdentifier(){let t=this.clientIdentifierTemplate.allowedDocumentTypes.map(s=>qt(at({},s),{name:this.translateService.instant(`labels.catalogs.${s.name}`)})),n=[{label:this.translateService.instant("labels.catalogs.Active"),value:"Active"},{label:this.translateService.instant("labels.catalogs.Inactive"),value:"Inactive"}];this.dialog.open(Ug,{data:{documentIdentifier:!0,allowedDocumentTypes:t,statusOptions:n}}).afterClosed().subscribe(s=>{if(s){let d={documentTypeId:s.documentTypeId,status:s.status,documentKey:s.documentKey,description:s.description};this.clientService.addClientIdentifier(this.clientId,d).subscribe({next:u=>{let f=u.resourceId,_=this.clientIdentifierTemplate.allowedDocumentTypes.find(x=>x.id===s.documentTypeId),C={id:f,description:s.description,documentType:_,documentKey:s.documentKey,documents:[],clientId:this.clientId,status:s.status==="Active"?"clientIdentifierStatusType.active":"clientIdentifierStatusType.inactive"};if(s.file){let x=new FormData;x.append("name",s.fileName),x.append("file",s.file),this.clientService.uploadClientIdentifierDocument(f,x).subscribe({next:y=>{let P={id:y.resourceId,parentEntityType:"client_identifiers",parentEntityId:f,name:s.fileName,fileName:s.file.name};C.documents.push(P),this.clientIdentities.push(C),this.identifiersTable.renderRows(),this.setThumbnail(P)},error:y=>{console.error("Failed to upload document",y),this.clientIdentities.push(C),this.identifiersTable.renderRows()}})}else this.clientIdentities.push(C),this.identifiersTable.renderRows()},error:u=>{console.error("Failed to create identifier",u)}})}})}deleteIdentifier(t,n,i){this.dialog.open(vi,{data:{deleteContext:`${this.translateService.instant("labels.heading.identifier id")} : ${n}`}}).afterClosed().subscribe(d=>{d.delete&&this.clientService.deleteClientIdentifier(t,n).subscribe(u=>{this.clientIdentities.splice(i,1),this.identifiersTable.renderRows()})})}isPreviewable(t){return this.documentPreviewService.isPreviewable(t)}openDocumentPreview(t,n){return qn(this,null,function*(){if(this.isPreviewable(n))try{let i=(t.documents||[]).filter(u=>this.isPreviewable(u)),s=[];for(let u of i)try{let f=yield this.documentPreviewService.resolvePreviewUrl(u,()=>this.clientService.downloadClientIdentificationDocument(u.parentEntityId||t.id,u.id));f.type==="image"&&(this.previewThumbnails[u.id]=f.url),s.push({src:f.url,thumb:f.type==="image"?f.url:void 0,subHtml:this.buildSubHtml(u,t),iframe:f.type==="pdf"})}catch(f){console.error("Preview failed for document",u.id,f)}if(!s.length)return;let d=Math.max(0,i.findIndex(u=>u.id===n.id));this.destroyLightbox(),this.lightboxInstance=Mk(this.identityLightbox.nativeElement,{dynamic:!0,dynamicEl:s,plugins:this.lightboxPlugins,licenseKey:"0000-0000-000-0000",download:!1,escKey:!0,closable:!0,zoomFromOrigin:!0}),this.lightboxInstance.openGallery(d)}catch(i){console.error("Unable to open preview",i)}})}buildSubHtml(t,n){let i=t.description?`

${this.escapeHtml(t.description)}

`:"",s=n?.documentKey?`

${this.escapeHtml(n.documentKey)}

`:"";return`

${this.escapeHtml(t.name||"Document")}

${i}${s}
`}escapeHtml(t){return t?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):""}destroyLightbox(){this.lightboxInstance&&(this.lightboxInstance.destroy(),this.lightboxInstance=null)}setThumbnail(t){this.documentPreviewService.isPreviewable(t)&&this.documentPreviewService.resolvePreviewUrl(t,()=>this.clientService.downloadClientIdentificationDocument(t.parentEntityId||this.clientId,t.id)).then(n=>{n.type==="image"&&(this.previewThumbnails[t.id]=n.url)}).catch(()=>{})}prefetchThumbnails(){Array.isArray(this.clientIdentities)&&this.clientIdentities.forEach(t=>{t.documents?.forEach(n=>this.setThumbnail(n))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-identities-tab"]],viewQuery:function(n,i){if(n&1&&(Ee(wxe,7),Ee(Pxe,7)),n&2){let s;Te(s=Me())&&(i.identifiersTable=s.first),Te(s=Me())&&(i.identityLightbox=s.first)}},decls:33,vars:9,consts:[["identifiersTable",""],["identityLightbox",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource","ngStyle"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","documentKey"],["matColumnDef","description"],["matColumnDef","documents"],["matColumnDef","status"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"document-lightbox-host"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],[1,"document-grid"],[1,"muted"],[1,"document-card"],["role","button","tabindex","0",1,"thumb",3,"keydown.enter","keydown.space","click"],["loading","lazy",3,"src","alt","title"],[1,"placeholder"],[1,"preview-overlay"],[1,"card-body"],[1,"title"],[1,"meta"],["icon","file"],["icon","eye"],["class","identity-action-button","mat-raised-button","","color","warn",3,"title","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"identity-action-button",3,"click","title"],["icon","times"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",2)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",3),F(5,Mxe,4,3,"button",4),r(),l(6,"table",5,0),X(8,6),F(9,Dxe,3,3,"th",7)(10,Exe,2,1,"td",8),Z(),X(11,9),F(12,Ixe,3,3,"th",7)(13,Oxe,2,1,"td",8),Z(),X(14,10),F(15,Axe,3,3,"th",7)(16,Fxe,2,1,"td",8),Z(),X(17,11),F(18,kxe,3,3,"th",7)(19,Bxe,2,1,"td",8),Z(),X(20,12),F(21,Rxe,3,3,"th",7)(22,jxe,3,1,"td",8),Z(),X(23,13),F(24,$xe,3,3,"th",7)(25,Uxe,2,1,"td",8),Z(),X(26,14),F(27,Wxe,3,3,"th",7)(28,Yxe,2,1,"td",8),Z(),F(29,Jxe,1,0,"tr",15)(30,Kxe,1,0,"tr",16),r()(),b(31,"div",17,1)),n&2&&(a(2),h(m(3,6,"labels.heading.Identities")),a(3),g("mifosxHasPermission","CREATE_CLIENTIDENTIFIER"),a(),g("dataSource",i.clientIdentities)("ngStyle",oe(8,Txe)),a(23),g("matHeaderRowDef",i.identitiesColumns),a(),g("matRowDefColumns",i.identitiesColumns))},dependencies:[ue,is,fe,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.tab-container[_ngcontent-%COMP%]{padding:1rem;margin:1rem 0}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .identity-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.document-grid[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:.75rem}.document-card[_ngcontent-%COMP%]{width:200px;background:#fff;border:1px solid #bdc3c7;border-radius:4px;overflow:hidden;box-shadow:0 1px 4px #353b3b1f;display:flex;flex-direction:column}.document-card[_ngcontent-%COMP%]:hover{box-shadow:0 4px 12px #353b3b24}.thumb[_ngcontent-%COMP%]{position:relative;background:#ecf0f1;min-height:7.5rem;display:flex;align-items:center;justify-content:center;cursor:default}.thumb.clickable[_ngcontent-%COMP%]{cursor:pointer}.thumb[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;object-fit:cover}.preview-overlay[_ngcontent-%COMP%]{position:absolute;bottom:.5rem;right:.5rem;background:#ffffffe6;border-radius:50%;padding:.4rem;color:#3498db;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .2s ease}.thumb[_ngcontent-%COMP%]:hover .preview-overlay[_ngcontent-%COMP%], .thumb[_ngcontent-%COMP%]:focus .preview-overlay[_ngcontent-%COMP%]{opacity:1}.placeholder[_ngcontent-%COMP%]{color:#f5f5f5;text-align:center;padding:.75rem;display:flex;flex-direction:column;gap:.4rem;align-items:center;justify-content:center}.placeholder[_ngcontent-%COMP%] fa-icon[_ngcontent-%COMP%]{font-size:1.125rem}.placeholder[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.75rem;line-height:1.2}.preview-btn[_ngcontent-%COMP%]{position:absolute;right:.5rem;bottom:.5rem;background:#000000a6;color:#fff}.card-body[_ngcontent-%COMP%]{padding:.625rem .75rem .75rem;display:flex;flex-direction:column;gap:.25rem}.title[_ngcontent-%COMP%]{font-weight:700;color:#353b3b}.meta[_ngcontent-%COMP%]{font-size:.75rem;color:#7f8c8d}.muted[_ngcontent-%COMP%]{color:#95a5a6}.document-lightbox-host[_ngcontent-%COMP%]{display:none}"]})}}return e})();var UC=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.authenticationService=T(Wo),this.entityId=this.route.parent.snapshot.params.clientId,this.addNote=this.addNote.bind(this)}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.route.data.subscribe(n=>{this.entityNotes=n.clientNotes})}editNote(t,n,i){this.clientsService.editClientNote(this.entityId,t,n).subscribe(()=>{this.entityNotes[i].note=n.note})}deleteNote(t,n){this.clientsService.deleteClientNote(this.entityId,t).subscribe(()=>{this.entityNotes.splice(n,1)})}addNote(t){this.clientsService.createClientNote(this.entityId,t).subscribe(n=>{this.entityNotes.push({id:n.resourceId,createdByUsername:this.username,createdOn:new Date,note:t.note})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-notes-tab",0),n&2&&g("entityId",i.entityId)("entityNotes",i.entityNotes)("callbackAdd",i.addNote)("callbackEdit",i.editNote)("callbackDelete",i.deleteNote)},dependencies:[ue,fe,E0],encapsulation:2})}}return e})();var WC=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.dialog=T(Ht),this.entityType="clients",this.route.data.subscribe(t=>{this.entityDocuments=t.clientDocuments}),this.entityId=this.route.parent.snapshot.paramMap.get("clientId")}deleteDocument(t){this.clientsService.deleteClientDocument(this.entityId,t).subscribe(n=>{})}uploadDocument(t){return this.clientsService.uploadClientDocument(this.entityId,t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-documents-tab"]],decls:1,vars:5,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-documents-tab",0),n&2&&g("entityType",i.entityType)("entityId",i.entityId)("entityDocuments",i.entityDocuments)("callbackUpload",i.uploadDocument)("callbackDelete",i.deleteDocument)},dependencies:[ue,fe,Ak],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .document-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var QC=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("clientId"),this.route.data.subscribe(t=>{this.entityDatatable=t.clientDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Client",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();function Xxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Street")," : ",t.street)}}function Zxe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function ebe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function tbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function ibe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function nbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.City")," : ",t.city)}}function obe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w();a(),le("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function abe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w();a(),le("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function rbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function lbe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function sbe(e,o){if(e&1){let t=Y();l(0,"mat-expansion-panel",4)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider",5),l(7,"div",6)(8,"button",7),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w();return q(u.editAddress(s,d))}),b(9,"fa-icon",8),r(),l(10,"mat-slide-toggle",9),R("change",function(){let i=V(t).$implicit,s=w();return q(s.toggleAddress(i))}),r()(),l(11,"p"),E(12,Xxe,4,4,"span"),E(13,Zxe,4,4,"span"),E(14,ebe,4,4,"span"),E(15,tbe,4,4,"span"),E(16,ibe,4,4,"span"),E(17,nbe,4,4,"span"),E(18,obe,4,4,"span"),E(19,abe,4,4,"span"),E(20,rbe,4,4,"span"),E(21,lbe,4,4,"span"),r()()}if(e&2){let t=o.$implicit,n=w();a(3),v(" ",t.addressType," "),a(2),v(" ",t.relationship," "),a(),g("inset",!0),a(4),g("checked",t.isActive),a(2),I(n.isFieldEnabled("street")?12:-1),a(),I(n.isFieldEnabled("addressLine1")?13:-1),a(),I(n.isFieldEnabled("addressLine2")?14:-1),a(),I(n.isFieldEnabled("addressLine3")?15:-1),a(),I(n.isFieldEnabled("townVillage")?16:-1),a(),I(n.isFieldEnabled("city")?17:-1),a(),I(n.isFieldEnabled("stateProvinceId")?18:-1),a(),I(n.isFieldEnabled("countryId")?19:-1),a(),I(n.isFieldEnabled("postalCode")?20:-1),a(),I(n.isFieldEnabled("isActive")?21:-1)}}var YC=(()=>{class e{constructor(){this.route=T(Ie),this.clientService=T(Oi),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.clientAddressData=t.clientAddressData,this.clientAddressFieldConfig=t.clientAddressFieldConfig,this.clientAddressTemplate=t.clientAddressTemplateData,this.clientId=this.route.parent.snapshot.paramMap.get("clientId")})}addAddress(){let t={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields("add")};this.dialog.open(an,{data:t}).afterClosed().subscribe(i=>{i.data&&this.clientService.createClientAddress(this.clientId,i.data.value.addressType,i.data.value).subscribe(s=>{let d=i.data.value;d.addressId=s.resourceId,d.addressType=this.getSelectedValue("addressTypeIdOptions",d.addressType).name,d.isActive=!1,this.clientAddressData.push(d)})})}editAddress(t,n){let i={title:this.translateService.instant("labels.buttons.Edit")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields("edit",t),layout:{addButtonText:"Edit"}};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=d.data.value;u.addressId=t.addressId,u.isActive=t.isActive,this.clientService.editClientAddress(this.clientId,t.addressTypeId,u).subscribe(f=>{u.addressTypeId=t.addressTypeId,u.addressType=t.addressType,this.clientAddressData[n]=u})}})}toggleAddress(t){let n={addressId:t.addressId,isActive:!t.isActive};this.clientService.editClientAddress(this.clientId,t.addressTypeId,n).subscribe(()=>{t.isActive=!t.isActive})}isFieldEnabled(t){return this.clientAddressFieldConfig.find(n=>n.field===t)?.isEnabled}getSelectedValue(t,n){return this.clientAddressTemplate[t].find(i=>i.id===n)}getAddressFormFields(t,n){let i=[];for(let s=0;ss!==null),i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-address-tab"]],decls:12,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","align-flex-end"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"address"],[3,"inset"],[1,"address-actions","layout-row","align-end","align-items-center"],["mat-button","","color","primary",3,"click"],["icon","edit"],[3,"change","checked"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"button",2),R("click",function(){return i.addAddress()}),b(6,"fa-icon",3),c(7),p(8,"translate"),r()(),l(9,"mat-accordion"),Se(10,sbe,22,14,"mat-expansion-panel",4,Pe),r()()),n&2&&(a(2),h(m(3,2,"labels.heading.Address")),a(5),v("",m(8,4,"labels.buttons.Add")," "),a(3),we(i.clientAddressData))},dependencies:[ue,fe,xe,ke,Dr,Pr,Tr,Mr,oc,Ri,Ip,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%]{margin-top:1%}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .address[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}"]})}}return e})();var cbe=()=>["../../"];function pbe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function mbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var JC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.clientData=t.clientActionData})}ngOnInit(){this.staffData=this.clientData.staffOptions,this.createClientAssignStaffForm()}createClientAssignStaffForm(){this.clientAssignStaffForm=this.formBuilder.group({staffId:[""]})}submit(){this.clientsService.executeClientCommand(this.clientData.id,"assignStaff",this.clientAssignStaffForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-assign-staff"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","staffId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,pbe,2,2,"mat-option",5,Pe),r(),E(12,mbe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.clientAssignStaffForm),a(5),h(m(8,7,"labels.inputs.Staff")),a(3),we(i.staffData),a(2),I(i.clientAssignStaffForm.controls.staffId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,cbe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientAssignStaffForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dbe=()=>["../../"];function ube(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fbe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function hbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var KC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.closureData=t.clientActionData.narrations}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseClientForm()}createCloseClientForm(){this.closeClientForm=this.formBuilder.group({closureDate:["",ce.required],closureReasonId:["",ce.required]})}submit(){let t=this.closeClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.closeClientForm.value.closureDate;t.closureDate instanceof Date&&(t.closureDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"close",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-close-client"]],decls:29,vars:22,consts:[["closureDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closureDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","closureReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,ube,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,fbe,2,2,"mat-option",9,Pe),r(),E(21,hbe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.closeClientForm),a(5),h(m(8,13,"labels.inputs.Closed On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.closeClientForm.controls.closureDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Closure Reason")),a(3),we(i.closureData),a(2),I(i.closeClientForm.controls.closureReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,dbe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.closeClientForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var gbe=()=>["../Take Survey"],_be=()=>[10,25,50,100];function Cbe(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Survey")))}function vbe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.surveyName)}}function xbe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Created By")," "))}function bbe(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function ybe(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.DateTime")))}function Sbe(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.date))}}function wbe(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Score")))}function Pbe(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.score))}}function Tbe(e,o){e&1&&b(0,"tr",24)}function Mbe(e,o){e&1&&b(0,"tr",25)}var XC=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["surveyName","createdBy","date","score"],this.route.data.subscribe(t=>{this.surveyData=t.clientActionData})}ngOnInit(){this.constructSurveys(this.surveyData)}constructSurveys(t){let n=[];t.forEach(i=>{let s=i.scorecardValues.map(d=>({surveyName:i.surveyName,createdBy:i.username,date:d.createdOn,score:d.value}));n=n.concat(s)}),this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-survey"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:13,consts:[[1,"container","m-b-20","layout-align-end"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","surveyName"],["mat-header-cell","","mat-sort-header","surveyName",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-cell","","mat-sort-header","createdBy",4,"matHeaderCellDef"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","score"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header","surveyName"],["mat-cell",""],["mat-header-cell","","mat-sort-header","createdBy"],["mat-header-cell","","mat-sort-header",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",6),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(12,"div",7)(13,"table",8),X(14,9),F(15,Cbe,3,3,"th",10)(16,vbe,2,1,"td",11),Z(),X(17,12),F(18,xbe,3,3,"th",13)(19,bbe,2,1,"td",11),Z(),X(20,14),F(21,ybe,3,3,"th",15)(22,Sbe,3,3,"td",11),Z(),X(23,16),F(24,wbe,3,3,"th",15)(25,Pbe,3,3,"td",11),Z(),F(26,Tbe,1,0,"tr",17)(27,Mbe,1,0,"tr",18),r(),b(28,"mat-paginator",19),r()()),n&2&&(a(),g("routerLink",oe(11,gbe)),a(2),v(" ",m(4,7,"labels.buttons.Take Survey")," "),a(6),h(m(10,9,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,_be)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,Yr,In],styles:[".headingContent[_ngcontent-%COMP%]{margin-bottom:1%;margin-top:1%}.headingName[_ngcontent-%COMP%]{display:block}"]})}}return e})();var Dbe=()=>["../../"];function Ebe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Rejection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ibe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Obe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Rejection Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ZC=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.rejectionData=t.clientActionData.narrations}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectClientForm()}createRejectClientForm(){this.rejectClientForm=this.formBuilder.group({rejectionDate:["",ce.required],rejectionReasonId:["",ce.required]})}submit(){let t=this.rejectClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.rejectClientForm.value.rejectionDate;t.rejectionDate instanceof Date&&(t.rejectionDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"reject",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reject-client"]],decls:29,vars:22,consts:[["rejectionDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","rejectionReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,Ebe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,Ibe,2,2,"mat-option",9,Pe),r(),E(21,Obe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.rejectClientForm),a(5),h(m(8,13,"labels.inputs.Rejection Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.rejectClientForm.controls.rejectionDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Rejection Reason")),a(3),we(i.rejectionData),a(2),I(i.rejectClientForm.controls.rejectionReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,Dbe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.rejectClientForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Abe=()=>["../../"];function Fbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var e2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateClientForm()}createActivateClientForm(){this.activateClientForm=this.formBuilder.group({activationDate:["",ce.required]})}submit(){let t=this.activateClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.activateClientForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"activate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-activate-client"]],decls:20,vars:18,consts:[["activationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,Fbe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.activateClientForm),a(4),h(m(7,11,"labels.inputs.Activated On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.activateClientForm.controls.activationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,Abe)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.activateClientForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var kbe=()=>["../../"];function Bbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Withdrawal Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Rbe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Nbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Withdrawal Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var t2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.withdrawalData=t.clientActionData.narrations}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawClientForm()}createWithdrawClientForm(){this.withdrawClientForm=this.formBuilder.group({withdrawalDate:["",ce.required],withdrawalReasonId:["",ce.required]})}submit(){let t=this.withdrawClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.withdrawClientForm.value.withdrawalDate;t.withdrawalDate instanceof Date&&(t.withdrawalDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"withdraw",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-withdraw-client"]],decls:29,vars:22,consts:[["withdrawalDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawalDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","withdrawalReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,Bbe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,Rbe,2,2,"mat-option",9,Pe),r(),E(21,Nbe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.withdrawClientForm),a(5),h(m(8,13,"labels.inputs.Withdrawal Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.withdrawClientForm.controls.withdrawalDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Withdrawal Reason")),a(3),we(i.withdrawalData),a(2),I(i.withdrawClientForm.controls.withdrawalReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,kbe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.withdrawClientForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Lbe=()=>["../../"];function Vbe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.accountNo," ")}}function qbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var i2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.clientData=t.clientActionData})}ngOnInit(){this.savingsAccounts=this.clientData.savingAccountOptions,this.createClientSavingsAccountForm()}createClientSavingsAccountForm(){this.clientSavingsAccountForm=this.formBuilder.group({savingsAccountId:[this.clientData.savingsAccountId]})}submit(){this.clientsService.executeClientCommand(this.clientData.id,"updateSavingsAccount",this.clientSavingsAccountForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-update-client-savings-account"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","savingsAccountId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Vbe,2,2,"mat-option",5,Pe),r(),E(12,qbe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.clientSavingsAccountForm),a(5),h(m(8,7,"labels.inputs.Default Savings Account")),a(3),we(i.savingsAccounts),a(2),I(i.clientSavingsAccountForm.controls.savingsAccountId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,Lbe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientSavingsAccountForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var zbe=()=>["../../"];function Hbe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Gbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transfer Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var n2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransferClientForm()}createTransferClientForm(){this.transferClientForm=this.formBuilder.group({destinationOfficeId:["",ce.required],transferDate:["",ce.required],note:[""]})}submit(){let t=this.transferClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.transferClientForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"proposeTransfer",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-transfer-client"]],decls:34,vars:25,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","destinationOfficeId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Hbe,2,2,"mat-option",5,Pe),r(),E(12,Gbe,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,jbe,7,9,"mat-error"),r(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"textarea",9),r()()(),l(27,"mat-card-actions",10)(28,"button",11),c(29),p(30,"translate"),r(),l(31,"button",12),c(32),p(33,"translate"),r()()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.transferClientForm),a(5),h(m(8,14,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.transferClientForm.controls.destinationOfficeId.hasError("required")?12:-1),a(3),h(m(16,16,"labels.inputs.Transfer Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.transferClientForm.controls.transferDate.hasError("required")?21:-1),a(3),h(m(25,18,"labels.inputs.Note")),a(4),g("routerLink",oe(24,zbe)),a(),v(" ",m(30,20,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.transferClientForm.valid),a(),v(" ",m(33,22,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var $be=()=>["../../"],o2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.transferDate=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createUndoClientTransferForm()}createUndoClientTransferForm(){this.undoClientTransferForm=this.formBuilder.group({transferDate:{value:new Date(this.transferDate),disabled:!0},note:[""]})}submit(){let t=this.undoClientTransferForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.undoClientTransferForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(s,i));let d=at({},t);this.clientsService.executeClientCommand(this.clientId,"withdrawTransfer",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-undo-client-transfer"]],decls:24,vars:18,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"textarea",8),r()(),l(17,"mat-card-actions",9)(18,"button",10),c(19),p(20,"translate"),r(),l(21,"button",11),c(22),p(23,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.undoClientTransferForm),a(4),h(m(7,9,"labels.inputs.Transfer Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(15,11,"labels.inputs.Note")),a(4),g("routerLink",oe(17,$be)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.undoClientTransferForm.valid),a(),v(" ",m(23,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Ube=()=>["../../"],a2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.transferDate=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createRejectClientTransferForm()}createRejectClientTransferForm(){this.rejectClientTransferForm=this.formBuilder.group({transferDate:{value:new Date(this.transferDate),disabled:!0},note:[""]})}submit(){let t=this.rejectClientTransferForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.rejectClientTransferForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(s,i));let d=at({},t);this.clientsService.executeClientCommand(this.clientId,"rejectTransfer",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reject-client-transfer"]],decls:24,vars:18,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"textarea",8),r()(),l(17,"mat-card-actions",9)(18,"button",10),c(19),p(20,"translate"),r(),l(21,"button",11),c(22),p(23,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.rejectClientTransferForm),a(4),h(m(7,9,"labels.inputs.Transfer Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(15,11,"labels.inputs.Note")),a(4),g("routerLink",oe(17,Ube)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.rejectClientTransferForm.valid),a(),v(" ",m(23,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Wbe=()=>["../../"],r2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.transferDate=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createAcceptClientTransferForm()}createAcceptClientTransferForm(){this.acceptClientTransferForm=this.formBuilder.group({transferDate:{value:new Date(this.transferDate),disabled:!0},note:[""]})}submit(){let t=this.acceptClientTransferForm.value,n=this.settingsService.dateFormat,i=this.acceptClientTransferForm.value.transferDate;t.transferDate instanceof Date&&(t.transferDate=this.dateUtils.formatDate(i,n));let s=at({},t);this.clientsService.executeClientCommand(this.clientId,"acceptTransfer",s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-accept-client-transfer"]],decls:24,vars:18,consts:[["transferDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transferDate",3,"matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content",3)(4,"mat-form-field",4),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"textarea",8),r()(),l(17,"mat-card-actions",9)(18,"button",10),c(19),p(20,"translate"),r(),l(21,"button",11),c(22),p(23,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.acceptClientTransferForm),a(4),h(m(7,9,"labels.inputs.Transfer Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(15,11,"labels.inputs.Note")),a(4),g("routerLink",oe(17,Wbe)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.acceptClientTransferForm.valid),a(),v(" ",m(23,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Qbe=()=>["../../"];function Ybe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Reactivation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var l2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createReactivateClientForm()}createReactivateClientForm(){this.reactivateClientForm=this.formBuilder.group({reactivationDate:["",ce.required]})}submit(){let t=this.reactivateClientForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.reactivateClientForm.value.reactivationDate;t.reactivationDate instanceof Date&&(t.reactivationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"reactivate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reactivate-client"]],decls:20,vars:18,consts:[["reactivationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","reactivationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,Ybe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.reactivateClientForm),a(4),h(m(7,11,"labels.inputs.Re Activation On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.reactivateClientForm.controls.reactivationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,Qbe)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.reactivateClientForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Jbe=()=>["../../"];function Kbe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Reopened On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var s2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createUndoClientRejectionForm()}createUndoClientRejectionForm(){this.undoClientRejectionForm=this.formBuilder.group({reopenedDate:["",ce.required]})}submit(){let t=this.undoClientRejectionForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.undoClientRejectionForm.value.reopenedDate;t.reopenedDate instanceof Date&&(t.reopenedDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.executeClientCommand(this.clientId,"undoRejection",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-undo-client-rejection"]],decls:20,vars:18,consts:[["reopenedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","reopenedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,Kbe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.undoClientRejectionForm),a(4),h(m(7,11,"labels.inputs.Reopened On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.undoClientRejectionForm.controls.reopenedDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,Jbe)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.undoClientRejectionForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Xbe=()=>["../../"];function Zbe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name+" ("+t.currency.name+")"," ")}}function eye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iye(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function nye(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function oye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Due for collection on")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),E(8,oye,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Due for collection on")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.clientChargeForm.controls.dueDate.hasError("required")?8:-1)}}function rye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Due Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lye(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),E(8,rye,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Due On")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.clientChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function sye(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Repeats Every")))}function cye(e,o){if(e&1&&(l(0,"div",4)(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",10),E(6,tye,7,9,"mat-error"),r(),l(7,"mat-form-field")(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",11),Se(12,iye,2,2,"mat-option",6,Pe),r()(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",12),Se(19,nye,2,2,"mat-option",6,Pe),r()(),E(21,aye,9,8,"mat-form-field"),E(22,lye,9,8,"mat-form-field"),E(23,sye,5,3,"mat-form-field"),r()),e&2){let t=w();a(3),h(m(4,7,"labels.inputs.Amount")),a(3),I(t.clientChargeForm.controls.amount.hasError("required")?6:-1),a(3),h(m(10,9,"labels.inputs.Charge Calculation")),a(3),we(t.chargeDetails.chargeCalculationTypeOptions),a(4),h(m(17,11,"labels.inputs.Charge time type")),a(3),we(t.chargeDetails.chargeTimeTypeOptions),a(2),I(t.clientChargeForm.contains("dueDate")?21:-1),a(),I(t.clientChargeForm.contains("feeOnMonthDay")?22:-1),a(),I(t.clientChargeForm.contains("feeInterval")?23:-1)}}var c2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.clientsService=T(Oi),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.clientChargeOptions=t.clientActionData.chargeOptions}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createClientsChargeForm(),this.buildDependencies()}buildDependencies(){this.clientChargeForm.controls.chargeId.valueChanges.subscribe(t=>{this.clientsService.getChargeAndTemplate(t).subscribe(n=>{this.chargeDetails=n;let i=n.chargeTimeType.id;(n.chargeTimeType.value==="Withdrawal Fee"||n.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(n.chargeTimeType.value==="Annual Fee"||n.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.clientChargeForm.addControl("dueDate",new it("",ce.required)):this.clientChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.clientChargeForm.addControl("feeOnMonthDay",new it("",ce.required)):this.clientChargeForm.removeControl("feeOnMonthDay"),i.value==="Monthly Fee"?this.clientChargeForm.addControl("feeInterval",new it(n.feeInterval,ce.required)):this.clientChargeForm.removeControl("feeInterval"),this.clientChargeForm.patchValue({amount:n.amount,chargeCalculationType:n.chargeCalculationType.id,chargeTimeType:n.chargeTimeType.id})})})}createClientsChargeForm(){this.clientChargeForm=this.formBuilder.group({chargeId:["",ce.required],amount:["",ce.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let t=this.clientChargeForm.value;if(t.locale=this.settingsService.language.code,t.feeInterval||(t.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let n="MMMM-dd";if(t.monthDayFormat=n,t.feeOnMonthDay){let i=this.clientChargeForm.value.feeOnMonthDay;t.feeOnMonthDay=this.dateUtils.formatDate(i,n)}}else{let n=this.settingsService.dateFormat;if(t.dateFormat=n,t.dueDate){let i=this.clientChargeForm.value.dueDate;t.dueDate=this.dateUtils.formatDate(i,n)}}this.clientsService.createClientCharge(this.clientId,t).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-client-charge"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(n,i){n&1&&(l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,Zbe,2,2,"mat-option",6,Pe),r(),E(12,eye,7,9,"mat-error"),r(),E(13,cye,24,13,"div",4),r(),l(14,"mat-card-actions",7)(15,"button",8),c(16),p(17,"translate"),r(),l(18,"button",9),c(19),p(20,"translate"),r()()()()()()),n&2&&(a(2),g("formGroup",i.clientChargeForm),a(5),h(m(8,8,"labels.inputs.Charge")),a(3),we(i.clientChargeOptions),a(2),I(i.clientChargeForm.controls.chargeId.hasError("required")?12:-1),a(),I(i.chargeDetails?13:-1),a(2),g("routerLink",oe(14,Xbe)),a(),v(" ",m(17,10,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientChargeForm.valid),a(),v(" ",m(20,12,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();var pye=()=>["../../general"];function mye(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function dye(e,o){e&1&&(l(0,"h2"),c(1,"component[0].componentKey"),r())}function uye(e,o){if(e&1&&(l(0,"mat-radio-button",12)(1,"span",13),c(2),r()()),e&2){let t=o.$implicit;g("value",t),a(2),v(" ",t.text," ")}}function fye(e,o){if(e&1&&(l(0,"div"),c(1),p(2,"translate"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.text.Your answer is"),": ",t.answer.text)}}function hye(e,o){if(e&1){let t=Y();l(0,"div",9)(1,"mat-label",10),c(2),r(),l(3,"mat-radio-group",11),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.answer,i)||(s.answer=i),q(i)}),Se(4,uye,3,2,"mat-radio-button",12,Pe),r()(),E(6,fye,3,4,"div")}if(e&2){let t=o.$implicit;a(2),h(t.text),a(),kc("ngModel",t.answer),a(),we(t.responseDatas),a(2),I(t.answer?6:-1)}}function gye(e,o){if(e&1&&(E(0,dye,2,0,"h2"),l(1,"div",8),Se(2,hye,7,3,null,null,Pe),r()),e&2){let t=o.$implicit;I(t[0].componentKey?0:-1),a(2),we(t)}}var p2=(()=>{class e{constructor(){this.route=T(Ie),this.clientsService=T(Oi),this.router=T(qe),this.authenticationService=T(Wo),this.route.data.subscribe(n=>{this.allSurveyData=n.clientActionData,this.clientId=this.route.parent.snapshot.params.clientId});let t=this.authenticationService.getCredentials();this.userId=t.userId}onSurveyChange(t){if(t.value){this.surveyData=t.value;let n=this.groupBy(this.surveyData.questionDatas,function(i){return[i.componentKey]});this.componentGroups=n}}groupBy(t,n){let i={};return t.forEach(s=>{let d=JSON.stringify(n(s));i[d]=i[d]||[],i[d].push(s)}),Object.keys(i).map(function(s){return i[s]})}isAnyResponse(){return this.surveyData&&this.surveyData.questionDatas.forEach(t=>{if(t.answer)return!1}),!0}submit(){this.formData={userId:this.userId,clientId:this.clientId,surveyId:this.surveyData.id,surveyName:"",username:"",id:0,scorecardValues:[]},this.surveyData.questionDatas.forEach(t=>{if(t.answer){let n={questionId:t.id,responseId:t.answer.id,value:t.answer.value,createdOn:new Date().getTime()};this.formData.scorecardValues.push(n)}}),this.clientsService.createNewSurvey(this.surveyData.id,this.formData).subscribe(()=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-take-survey"]],decls:19,vars:11,consts:[[1,"container","mat-typography"],[1,"mat-elevation-z2-surveycont"],[1,"survey-select","layout-row"],[1,"name-label"],[3,"selectionChange"],[3,"value"],["mat-raised-button","","color","danger",1,"button-cancel",3,"routerLink"],["mat-raised-button","","color","primary",1,"button-submit",3,"click"],[1,"layout-column","display-questions"],[1,"layout-row","question"],[1,"flex-40","question-text"],[1,"flex-60","radio-group-spacing",3,"ngModelChange","ngModel"],[1,"layout-column","radio-button",3,"value"],[1,"wrap-mat-radio-label"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"mat-label",3),c(4),p(5,"translate"),r(),l(6,"mat-select",4),R("selectionChange",function(d){return i.onSurveyChange(d)}),Se(7,mye,2,2,"mat-option",5,Pe),r()(),b(9,"hr"),l(10,"div"),Se(11,gye,4,1,null,null,Pe),r(),l(13,"button",6),c(14),p(15,"translate"),r(),l(16,"button",7),R("click",function(){return i.submit()}),c(17),p(18,"translate"),r()()()),n&2&&(a(4),h(m(5,4,"labels.inputs.Survey Name")),a(3),we(i.allSurveyData),a(4),we(i.componentGroups),a(2),g("routerLink",oe(10,pye)),a(),v(" ",m(15,6,"labels.buttons.Cancel")," "),a(3),v(" ",m(18,8,"labels.buttons.Submit")," "))},dependencies:[ue,fe,$e,Oe,Be,gt,ft,xe,tr,ec,Sp,ir,he],styles:[".surveyOption[_ngcontent-%COMP%]{border:1px solid #cbcbcb;padding:5px}.display-questions[_ngcontent-%COMP%]{margin-top:20px}.question[_ngcontent-%COMP%]{padding:10px 0}.wrap-mat-radio-label[_ngcontent-%COMP%]{white-space:normal}.question-text[_ngcontent-%COMP%]{font-weight:700}.survey-select[_ngcontent-%COMP%]{height:40px;margin-bottom:20px}.name-label[_ngcontent-%COMP%]{width:25%}.surveyCont[_ngcontent-%COMP%]{padding:5%}.button-cancel[_ngcontent-%COMP%]{margin-left:35%}.button-submit[_ngcontent-%COMP%]{margin-left:2%}.radio-button[_ngcontent-%COMP%]{margin-bottom:5px;align-items:normal;white-space:normal}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var _ye=["screenReport"],Cye=()=>["../../"];function vye(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function xye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Screen Report")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var m2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.clientsService=T(Oi),this.route=T(Ie),this.sanitizer=T(Zs),this.renderer=T(gg),this.route.data.subscribe(t=>{this.templatesData=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createClientScreenReportForm()}createClientScreenReportForm(){this.clientScreenReportForm=this.formBuilder.group({templateId:[""]})}print(){let t=window.open("","Screen Report","height=400,width=600");t.document.write(""),t.document.write(""),t.document.write(this.template),t.document.write(""),t.print(),t.close()}generate(){let t=this.clientScreenReportForm.get("templateId").value;this.clientsService.retrieveClientReportTemplate(t,this.clientId).subscribe(n=>{this.template=this.sanitizer.sanitize(fF.HTML,n),this.renderer.setProperty(this.screenReportRef.nativeElement,"innerHTML",this.template)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-screen-reports"]],viewQuery:function(n,i){if(n&1&&Ee(_ye,7),n&2){let s;Te(s=Me())&&(i.screenReportRef=s.first)}},decls:34,vars:21,consts:[["output",""],["screenReport",""],[1,"container","m-b-20"],[3,"ngSubmit","formGroup"],[1,"flex-fill"],["formControlName","templateId"],[3,"value"],[1,"layout-row","align-center","gap-5px","actions-spacing","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs","size","sm",1,"m-r-10"],[1,"container","m-t-20"],[1,"layout-column","gap-3percent"],[1,"layout-align-end"],["mat-stroked-button","","color","primary",3,"click","disabled"],["icon","file",1,"m-r-10"],[1,"layout-align-center"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.generate())}),l(3,"mat-card-content")(4,"div")(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,vye,2,2,"mat-option",6,Pe),r(),E(12,xye,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",7)(14,"button",8),c(15),p(16,"translate"),r(),l(17,"button",9),b(18,"fa-icon",10),c(19),p(20,"translate"),r()()()()(),l(21,"div",11,0)(23,"mat-card",12)(24,"div",13)(25,"button",14),R("click",function(){return V(s),q(i.print())}),b(26,"fa-icon",15),c(27),p(28,"translate"),r()(),l(29,"div",16,1)(31,"p"),c(32),p(33,"translate"),r()()()()}n&2&&(a(2),g("formGroup",i.clientScreenReportForm),a(5),h(m(8,10,"labels.inputs.Client Screen Reports")),a(3),we(i.templatesData),a(2),I(i.clientScreenReportForm.controls.templateId.hasError("required")?12:-1),a(2),g("routerLink",oe(20,Cye)),a(),v(" ",m(16,12,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientScreenReportForm.valid),a(2),v("",m(20,14,"labels.buttons.Generate Report")," "),a(6),g("disabled",!i.template),a(2),v(" ",m(28,16,"labels.buttons.Print")," "),a(5),h(m(33,18,"labels.text.Please select a screen report.")))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .print[_ngcontent-%COMP%]{align-self:flex-end} mat-card{margin-bottom:1rem;padding:1rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease;height:10rem}.m-t-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{background-color:#1976d2;color:#fff} .container.m-t-20 mat-card p{display:block;margin-top:-1.9rem}.m-b-20[_ngcontent-%COMP%] form[_ngcontent-%COMP%]{margin-top:-1.5rem}.actions-spacing[_ngcontent-%COMP%]{margin-top:24px}"]})}}return e})();var ci=(()=>{class e{constructor(){this.http=T(ko),this.settingsService=T(Ot)}getLoanProducts(){return this.http.get("/loanproducts")}createLoanProduct(t){return this.http.post("/loanproducts",t)}getLoanProductsTemplate(){return this.http.get("/loanproducts/template")}getLoanProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/loanproducts/${t}`,{params:i})}updateLoanProduct(t,n){return this.http.put(`/loanproducts/${t}`,n)}getSavingProducts(){return this.http.get("/savingsproducts")}createSavingProduct(t){return this.http.post("/savingsproducts",t)}getSavingProductsTemplate(){return this.http.get("/savingsproducts/template")}getSavingProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/savingsproducts/${t}`,{params:i})}updateSavingProduct(t,n){return this.http.put(`/savingsproducts/${t}`,n)}getShareProducts(){return this.http.get("/products/share")}createShareProduct(t){return this.http.post("/products/share",t)}getShareProductsTemplate(){return this.http.get("/products/share/template")}getShareProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/products/share/${t}`,{params:i})}updateShareProduct(t,n){return this.http.put(`/products/share/${t}`,n)}getDividends(t){return this.http.get(`/shareproduct/${t}/dividend`)}createDividend(t,n){return this.http.post(`/shareproduct/${t}/dividend`,n)}getDividendData(t,n){let i=new rn().set("dateFormat",this.settingsService.dateFormat).set("limit","10").set("locale",this.settingsService.language.code).set("offset","0");return this.http.get(`/shareproduct/${t}/dividend/${n}`,{params:i})}approveDividend(t,n,i){let s=new rn().set("command","approve");return this.http.put(`/shareproduct/${t}/dividend/${n}`,i,{params:s})}getRecurringDepositProducts(){return this.http.get("/recurringdepositproducts")}getRecurringDepositProduct(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/recurringdepositproducts/${t}`,{params:i})}getRecurringDepositProductsTemplate(){return this.http.get("/recurringdepositproducts/template")}getCharges(){return this.http.get("/charges")}getChargesTemplate(){return this.http.get("/charges/template")}getCharge(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/charges/${t}`,{params:i})}updateCharge(t,n){return this.http.put(`/charges/${t}`,n)}deleteCharge(t){return this.http.delete(`/charges/${t}`)}createCharge(t){return this.http.post("/charges",t)}getFixedDepositProducts(){return this.http.get("/fixeddepositproducts")}createFixedDepositProduct(t){return this.http.post("/fixeddepositproducts",t)}getFixedDepositProductsTemplate(){return this.http.get("/fixeddepositproducts/template")}getFixedDepositProduct(t){return this.http.get(`/fixeddepositproducts/${t}`)}getFixedDepositProductAndTemplate(t){let n=new rn().set("template","true");return this.http.get(`/fixeddepositproducts/${t}`,{params:n})}updateFixedDepositProduct(t,n){return this.http.put(`/fixeddepositproducts/${t}`,n)}getTaxComponents(){return this.http.get("/taxes/component")}getTaxComponent(t){return this.http.get(`/taxes/component/${t}`)}getTaxComponentTemplate(){return this.http.get("/taxes/component/template")}createTaxComponent(t){return this.http.post("/taxes/component",t)}updateTaxComponent(t,n){return this.http.put(`/taxes/component/${t}`,n)}getTaxGroups(){return this.http.get("/taxes/group")}getTaxGroup(t,n){let i=new rn().set("template",n);return this.http.get(`/taxes/group/${t}`,{params:i})}getTaxGroupTemplate(){return this.http.get("/taxes/group/template")}createTaxGroup(t){return this.http.post("/taxes/group",t)}updateTaxGroup(t,n){return this.http.put(`/taxes/group/${t}`,n)}getDelinquencyRanges(){return this.http.get("/delinquency/ranges")}getDelinquencyRange(t){return this.http.get(`/delinquency/ranges/${t}`)}createDelinquencyRange(t){return this.http.post("/delinquency/ranges",t)}updateDelinquencyRange(t,n){return this.http.put(`/delinquency/ranges/${t}`,n)}deleteDelinquencyRange(t){return this.http.delete(`/delinquency/ranges/${t}`)}getDelinquencyBuckets(){return this.http.get("/delinquency/buckets")}getDelinquencyBucket(t){return this.http.get(`/delinquency/buckets/${t}`)}createDelinquencyBucket(t){return this.http.post("/delinquency/buckets",t)}updateDelinquencyBucket(t,n){return this.http.put(`/delinquency/buckets/${t}`,n)}deleteDelinquencyBucket(t){return this.http.delete(`/delinquency/buckets/${t}`)}getProductMixes(){let t=new rn;return t=t.set("associations","productMixes"),this.http.get("/loanproducts",{params:t})}getFloatingRates(){return this.http.get("/floatingrates")}createFloatingRate(t){return this.http.post("/floatingrates",t)}getFloatingRate(t){return this.http.get(`/floatingrates/${t}`)}updateFloatingRate(t,n){return this.http.put(`/floatingrates/${t}`,n)}getProductMix(t){return this.http.get(`/loanproducts/${t}/productmix`)}getProductsMixTemplate(){let t=new rn;return t=t.set("isProductMixTemplate","true"),this.http.get("/loanproducts/template",{params:t})}getProductMixTemplate(t){let n=new rn;return n=n.set("template","true"),this.http.get(`/loanproducts/${t}/productmix`,{params:n})}createProductMix(t,n){return this.http.post(`/loanproducts/${n}/productmix`,t)}updateProductMix(t,n){return this.http.put(`/loanproducts/${n}/productmix`,t)}deleteProductMix(t){return this.http.delete(`/loanproducts/${t}/productmix`)}getAllInterestRateCharts(t){let n=new rn().set("productId",t);return this.http.get("/interestratecharts",{params:n})}createRecurringDepositProduct(t){return this.http.post("/recurringdepositproducts",t)}getRecurringDepositProductAndTemplate(t){let n=new rn().set("template","true");return this.http.get(`/recurringdepositproducts/${t}`,{params:n})}updateRecurringDepositProduct(t,n){return this.http.put(`/recurringdepositproducts/${t}`,n)}getCollaterals(){return this.http.get("/collateral-management")}getCollateralTemplate(){return this.http.get("/collateral-management/template")}getCollateral(t,n=!1){let i=new rn().set("template",n.toString());return this.http.get(`/collateral-management/${t}`,{params:i})}updateCollateral(t,n){return this.http.put(`/collateral-management/${t}`,n)}deleteCollateral(t){return this.http.delete(`/collateral-management/${t}`)}createCollateral(t){return this.http.post("/collateral-management",t)}getProductDatatables(t){let n=new rn().set("apptable",t);return this.http.get("/datatables",{params:n})}getProductDatatable(t,n){let i=new rn().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${t}`,{params:i})}addProductDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${t}`,i,{params:s})}editProductDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${t}`,i,{params:s})}deleteDatatableContent(t,n){let i=new rn().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${t}`,{params:i})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var bye=()=>["../../"];function yye(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Sye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Collateral")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wye(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Quantity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pye(e,o){if(e&1&&(l(0,"div",2)(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",8),r(),l(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",9),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",10),r(),l(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",11),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",12),r(),l(26,"mat-form-field")(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",13),E(31,wye,7,9,"mat-error"),r(),l(32,"mat-form-field")(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"input",14),r(),l(37,"mat-form-field")(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",15),r()()),e&2){let t=w();a(3),h(m(4,9,"labels.inputs.name")),a(5),h(m(9,11,"labels.inputs.Type/Quality")),a(5),h(m(14,13,"labels.inputs.Unit Type")),a(5),h(m(19,15,"labels.inputs.Base Price")),a(5),h(m(24,17,"labels.inputs.Percentage To Base")),a(5),h(m(29,19,"labels.inputs.Quantity")),a(3),I(t.clientCollateralForm.controls.quantity.hasError("required")?31:-1),a(3),h(m(35,21,"labels.inputs.Total")),a(5),h(m(40,23,"labels.inputs.Total Collateral Value"))}}var d2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.productsService=T(ci),this.clientsService=T(Oi),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.clientCollateralOptions=t.clientActionData}),this.clientId=this.route.parent.snapshot.params.clientId}ngOnInit(){this.createClientCollateralForm(),this.buildDependencies()}buildDependencies(){this.clientCollateralForm.controls.collateralId.valueChanges.subscribe(t=>{this.productsService.getCollateral(t).subscribe(n=>{this.collateralDetails=n,this.clientCollateralForm.patchValue({name:n.name,quality:n.quality,unitType:n.unitType,basePrice:this.collateralDetails.basePrice,pctToBase:this.collateralDetails.pctToBase})})}),this.clientCollateralForm.controls.quantity.valueChanges.subscribe(t=>{this.clientCollateralForm.patchValue({totalValue:this.collateralDetails.basePrice*t,totalCollateralValue:this.collateralDetails.basePrice*this.collateralDetails.pctToBase*t/100})})}createClientCollateralForm(){this.clientCollateralForm=this.formBuilder.group({collateralId:["",ce.required],quantity:["",ce.required],name:[{value:"",disabled:!0}],quality:[{value:"",disabled:!0}],unitType:[{value:"",disabled:!0}],basePrice:[{value:"",disabled:!0}],pctToBase:[{value:"",disabled:!0}],totalValue:[{value:"",disabled:!0}],totalCollateralValue:[{value:"",disabled:!0}]})}submit(){let t=this.clientCollateralForm.value.collateralId,n=this.clientCollateralForm.value.quantity,i=this.settingsService.language.code,s={collateralId:t,quantity:n,locale:i};this.clientsService.createClientCollateral(this.clientId,s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-client-collateral"]],decls:21,vars:15,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","collateralId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","quality"],["matInput","","required","","formControlName","unitType"],["matInput","","required","","formControlName","basePrice"],["matInput","","required","","formControlName","pctToBase"],["matInput","","required","","formControlName","quantity"],["matInput","","required","","formControlName","totalValue"],["matInput","","required","","formControlName","totalCollateralValue"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,yye,2,2,"mat-option",4,Pe),r(),E(12,Sye,7,9,"mat-error"),r(),E(13,Pye,42,25,"div",2),r()(),l(14,"mat-card-actions",5)(15,"button",6),c(16),p(17,"translate"),r(),l(18,"button",7),c(19),p(20,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.clientCollateralForm),a(5),h(m(8,8,"labels.inputs.Collateral")),a(3),we(i.clientCollateralOptions),a(2),I(i.clientCollateralForm.controls.collateralId.hasError("required")?12:-1),a(),I(i.collateralDetails?13:-1),a(2),g("routerLink",oe(14,bye)),a(),v(" ",m(17,10,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.clientCollateralForm.valid),a(),v(" ",m(20,12,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return e})();function Tye(e,o){e&1&&b(0,"mifosx-client-assign-staff")}function Mye(e,o){e&1&&b(0,"mifosx-close-client")}function Dye(e,o){e&1&&b(0,"mifosx-view-survey")}function Eye(e,o){e&1&&b(0,"mifosx-reject-client")}function Iye(e,o){e&1&&b(0,"mifosx-activate-client")}function Oye(e,o){e&1&&b(0,"mifosx-withdraw-client")}function Aye(e,o){e&1&&b(0,"mifosx-update-client-savings-account")}function Fye(e,o){e&1&&b(0,"mifosx-transfer-client")}function kye(e,o){e&1&&b(0,"mifosx-undo-client-transfer")}function Bye(e,o){e&1&&b(0,"mifosx-reject-client-transfer")}function Rye(e,o){e&1&&b(0,"mifosx-accept-client-transfer")}function Nye(e,o){e&1&&b(0,"mifosx-reactivate-client")}function Lye(e,o){e&1&&b(0,"mifosx-undo-client-rejection")}function Vye(e,o){e&1&&b(0,"mifosx-add-client-charge")}function qye(e,o){e&1&&b(0,"mifosx-take-survey")}function zye(e,o){e&1&&b(0,"mifosx-client-screen-reports")}function Hye(e,o){e&1&&b(0,"mifosx-add-client-collateral")}var u2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.actions={"Assign Staff":!1,Close:!1,Reject:!1,Survey:!1,Withdraw:!1,"Update Default Savings":!1,"Transfer Client":!1,"Undo Transfer":!1,"Accept Transfer":!1,"Reject Transfer":!1,Reactivate:!1,Activate:!1,"Undo Rejection":!1,"Add Charge":!1,"Take Survey":!1,"Client Screen Reports":!1,"Create Collateral":!1},this.router.routeReuseStrategy.shouldReuseRoute=()=>!1;let t=this.route.snapshot.params.name;this.actions[t]=!0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-actions"]],decls:17,vars:17,template:function(n,i){n&1&&(E(0,Tye,1,0,"mifosx-client-assign-staff"),E(1,Mye,1,0,"mifosx-close-client"),E(2,Dye,1,0,"mifosx-view-survey"),E(3,Eye,1,0,"mifosx-reject-client"),E(4,Iye,1,0,"mifosx-activate-client"),E(5,Oye,1,0,"mifosx-withdraw-client"),E(6,Aye,1,0,"mifosx-update-client-savings-account"),E(7,Fye,1,0,"mifosx-transfer-client"),E(8,kye,1,0,"mifosx-undo-client-transfer"),E(9,Bye,1,0,"mifosx-reject-client-transfer"),E(10,Rye,1,0,"mifosx-accept-client-transfer"),E(11,Nye,1,0,"mifosx-reactivate-client"),E(12,Lye,1,0,"mifosx-undo-client-rejection"),E(13,Vye,1,0,"mifosx-add-client-charge"),E(14,qye,1,0,"mifosx-take-survey"),E(15,zye,1,0,"mifosx-client-screen-reports"),E(16,Hye,1,0,"mifosx-add-client-collateral")),n&2&&(I(i.actions["Assign Staff"]?0:-1),a(),I(i.actions.Close?1:-1),a(),I(i.actions.Survey?2:-1),a(),I(i.actions.Reject?3:-1),a(),I(i.actions.Activate?4:-1),a(),I(i.actions.Withdraw?5:-1),a(),I(i.actions["Update Default Savings"]?6:-1),a(),I(i.actions["Transfer Client"]?7:-1),a(),I(i.actions["Undo Transfer"]?8:-1),a(),I(i.actions["Reject Transfer"]?9:-1),a(),I(i.actions["Accept Transfer"]?10:-1),a(),I(i.actions.Reactivate?11:-1),a(),I(i.actions["Undo Rejection"]?12:-1),a(),I(i.actions["Add Charge"]?13:-1),a(),I(i.actions["Take Survey"]?14:-1),a(),I(i.actions["Client Screen Reports"]?15:-1),a(),I(i.actions["Create Collateral"]?16:-1))},dependencies:[ue,fe,JC,KC,XC,ZC,e2,t2,i2,n2,o2,a2,r2,l2,s2,c2,p2,m2,d2],encapsulation:2})}}return e})();var Gye=()=>["../../","general"],jye=()=>["pay"],X0=e=>({strikeoff:e});function $ye(e,o){e&1&&(l(0,"button",12),b(1,"fa-icon",13),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,jye)),a(2),v(" ",m(3,2,"labels.buttons.Pay")," "))}function Uye(e,o){if(e&1){let t=Y();l(0,"button",3),R("click",function(){V(t);let i=w();return q(i.waiveCharge())}),b(1,"i",14),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Waive Charge")," "))}function Wye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.ID")))}function Qye(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,X0,t.reversed)),a(),h(t.id)}}function Yye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function Jye(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,X0,t.reversed)),a(),v(" ",t.officeName," ")}}function Kye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Xye(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,X0,t.reversed)),a(),v(" ",t.type.value," ")}}function Zye(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction Date")))}function e3e(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("ngClass",Nt(4,X0,t.reversed)),a(),v(" ",m(2,2,t.date)," ")}}function t3e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function i3e(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;g("ngClass",Nt(4,X0,t.reversed)),a(),v(" ",m(2,2,t.amount)," ")}}function n3e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function o3e(e,o){if(e&1){let t=Y();l(0,"td",26)(1,"button",27),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.undoTransaction(i.id))}),b(2,"fa-icon",4),r()()}if(e&2){let t=o.$implicit;g("ngClass",Nt(1,X0,t.reversed))}}function a3e(e,o){e&1&&b(0,"tr",28)}function r3e(e,o){e&1&&b(0,"tr",29)}function l3e(e,o){if(e&1&&(l(0,"table",9),X(1,15),F(2,Wye,3,3,"th",16)(3,Qye,2,4,"td",17),Z(),X(4,18),F(5,Yye,3,3,"th",16)(6,Jye,2,4,"td",17),Z(),X(7,19),F(8,Kye,3,3,"th",16)(9,Xye,2,4,"td",17),Z(),X(10,20),F(11,Zye,3,3,"th",16)(12,e3e,3,6,"td",17),Z(),X(13,21),F(14,t3e,3,3,"th",16)(15,i3e,3,6,"td",17),Z(),X(16,22),F(17,n3e,3,3,"th",16)(18,o3e,3,3,"td",17),Z(),F(19,a3e,1,0,"tr",23)(20,r3e,1,0,"tr",24),r()),e&2){let t=w();g("dataSource",t.chargeData.clientTransactionDatas),a(19),g("matHeaderRowDef",t.viewChargeTableColumns),a(),g("matRowDefColumns",t.viewChargeTableColumns)}}var f2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientService=T(Oi),this.viewChargeTableColumns=["id","officeName","type","transactionDate","amount","actions"],this.route.data.subscribe(t=>{this.chargeData=t.clientChargeData})}waiveCharge(){let t={clientId:this.chargeData.clientId,resourceType:this.chargeData.id};this.clientService.waiveClientCharge(t).subscribe(()=>{this.getChargeData()})}undoTransaction(t){let n={clientId:this.chargeData.clientId.toString(),transactionId:t};this.clientService.undoTransaction(n).subscribe(()=>{this.getChargeData()})}getChargeData(){this.clientService.getSelectedChargeData(this.chargeData.clientId,this.chargeData.id).subscribe(t=>{this.chargeData=t})}deleteCharge(){this.clientService.deleteCharge(this.chargeData.clientId,this.chargeData.id).subscribe(()=>{this.router.navigate(["../../clients",this.chargeData.clientId,"general"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-charge"]],decls:77,vars:52,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","trash",1,"m-r-10"],[1,"container"],[1,"fa","fa-stop",3,"ngClass"],[1,"share-account-tables","p-t-20","layout-row-wrap","flex-50"],[1,"layout-row-wrap"],["mat-table","",3,"dataSource"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","dollar-sign",1,"m-r-10"],[1,"fa","fa-flag"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","type"],["matColumnDef","transactionDate"],["matColumnDef","amount"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"ngClass"],["mat-raised-button","","color","primary",1,"del-btn",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,$ye,4,5,"button",1)(2,Uye,4,3,"button",2),l(3,"button",3),R("click",function(){return i.deleteCharge()}),b(4,"fa-icon",4),c(5),p(6,"translate"),r()(),l(7,"div",5)(8,"mat-card")(9,"mat-card-title"),b(10,"i",6),p(11,"statusLookup"),c(12),r(),b(13,"mat-divider"),l(14,"mat-card-content")(15,"div",7)(16,"table")(17,"tbody")(18,"tr")(19,"td"),c(20),p(21,"translate"),r(),l(22,"td"),c(23),r()(),l(24,"tr")(25,"td"),c(26),p(27,"translate"),r(),l(28,"td"),c(29),r()(),l(30,"tr")(31,"td"),c(32),p(33,"translate"),r(),l(34,"td"),c(35),r()(),l(36,"tr")(37,"td"),c(38),p(39,"translate"),r(),l(40,"td"),c(41),p(42,"dateFormat"),r()(),l(43,"tr")(44,"td"),c(45),p(46,"translate"),r(),l(47,"td"),c(48),r()(),l(49,"tr")(50,"td"),c(51),p(52,"translate"),r(),l(53,"td"),c(54),r()(),l(55,"tr")(56,"td"),c(57),p(58,"translate"),r(),l(59,"td"),c(60),r()(),l(61,"tr")(62,"td"),c(63),p(64,"translate"),r(),l(65,"td"),c(66),r()()()()()(),l(67,"div",8)(68,"h1")(69,"b"),c(70),p(71,"translate"),r()(),E(72,l3e,21,3,"table",9),r(),l(73,"mat-card-actions",10)(74,"button",11),c(75),p(76,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","PAY_CLIENTCHARGE"),a(),g("mifosxHasPermission","WAIVE_CLIENTCHARGE"),a(3),v(" ",m(6,25,"labels.buttons.Delete")," "),a(5),g("ngClass",m(11,27,!(i.chargeData.isWaived||i.chargeData.isPaid))),a(2),v(" ",i.chargeData.name," "),a(8),h(m(21,29,"labels.inputs.Currency")),a(3),h(i.chargeData.currency.name),a(3),h(m(27,31,"labels.inputs.Charge Time Type")),a(3),h(i.chargeData.chargeTimeType.value),a(3),h(m(33,33,"labels.inputs.Charge Calculation Type")),a(3),h(i.chargeData.chargeCalculationType.value),a(3),h(m(39,35,"labels.inputs.Due as of")),a(3),h(m(42,37,i.chargeData.dueDate)),a(4),h(m(46,39,"labels.inputs.Due")),a(3),h(i.chargeData.amount),a(3),h(m(52,41,"labels.inputs.Paid")),a(3),h(i.chargeData.amountPaid),a(3),h(m(58,43,"labels.inputs.Waived")),a(3),h(i.chargeData.amountWaived),a(3),h(m(64,45,"labels.inputs.Outstanding")),a(3),h(i.chargeData.amountOutstanding),a(4),v(" ",m(71,47,"labels.heading.Transactions")," "),a(2),I(i.chargeData.clientTransactionDatas?72:-1),a(2),g("routerLink",oe(51,Gye)),a(),v(" ",m(76,49,"labels.buttons.Back")," "))},dependencies:[ue,co,fe,Oe,Ue,Je,Et,xe,Ke,ke,Qo,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he,go,In],styles:[".del-btn[_ngcontent-%COMP%]{width:20px!important;height:25px;min-width:20px!important;line-height:0px;padding-left:10px;padding-right:25px}.strikeoff[_ngcontent-%COMP%]{color:red!important;text-decoration:line-through;text-decoration-style:double}.share-account-tables[_ngcontent-%COMP%]{display:flex;justify-content:space-between}.content[_ngcontent-%COMP%]{padding-top:10px}"]})}}return e})();var s3e=()=>["../../..","general"];function c3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function p3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transaction date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var h2=(()=>{class e{constructor(){this.clientsService=T(Oi),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.route.data.subscribe(t=>{this.transactionData=t.transactionData})}ngOnInit(){this.setTransactionForm()}setTransactionForm(){this.transactionForm=this.formBuilder.group({amount:[this.transactionData.amount,ce.required],transactionDate:[new Date,ce.required]})}submit(){let t=this.transactionForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.transactionForm.value.transactionDate;t.transactionDate instanceof Date&&(t.transactionDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.clientsService.payClientCharge(this.transactionData.clientId,this.transactionData.id,d).subscribe(()=>{this.router.navigate(["../../..","general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-pay-charges"]],decls:26,vars:21,consts:[["transactionDatePicker",""],[1,"container","mat-typography"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","amount"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"div",3)(4,"mat-form-field")(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4),E(9,c3e,7,9,"mat-error"),r(),l(10,"mat-form-field",5),R("click",function(){V(s);let u=ve(17);return q(u.open())}),l(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6)(15,"mat-datepicker-toggle",7)(16,"mat-datepicker",null,0),E(18,p3e,7,9,"mat-error"),r()(),l(19,"div",8)(20,"button",9),c(21),p(22,"translate"),r(),l(23,"button",10),c(24),p(25,"translate"),r()()()()()}if(n&2){let s=ve(17);a(2),g("formGroup",i.transactionForm),a(4),v(" ",m(7,12,"labels.inputs.Amount")," "),a(3),I(i.transactionForm.controls.amount.hasError("required")?9:-1),a(3),v(" ",m(13,14,"labels.inputs.Transaction date")," "),a(2),g("min",i.minDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.transactionForm.controls.transactionDate.hasError("required")?18:-1),a(2),g("routerLink",oe(20,s3e)),a(),v(" ",m(22,16,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.transactionForm.valid),a(),v(" ",m(25,18,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var HM=()=>["Date of Birth","Incorporation Date"],m3e=()=>["../general"],GM=()=>["Name","Entity Name"];function d3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function u3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function f3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function h3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function g3e(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32),p(5,"translate"),p(6,"translate"),E(7,h3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(10,GM)))),a(2),g("placeholder",m(5,6,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(11,GM))))("title",m(6,8,"labels.inputs."+t.getDateLabel(t.legalFormId,oe(12,GM)))),a(3),I(t.editClientForm.controls.fullname.hasError("required")?7:-1)}}function _3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function C3e(e,o){if(e&1&&(l(0,"mat-form-field",14)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",33),p(5,"translate"),p(6,"translate"),E(7,_3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.First Name")),a(2),g("placeholder",m(5,6,"labels.inputs.First Name"))("title",m(6,8,"labels.inputs.First Name")),a(3),I(t.editClientForm.controls.firstname.hasError("required")?7:-1)}}function v3e(e,o){e&1&&(l(0,"mat-form-field",14)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",34),p(5,"translate"),p(6,"translate"),r()),e&2&&(a(2),h(m(3,3,"labels.inputs.Middle Name")),a(2),g("placeholder",m(5,5,"labels.inputs.Middle Name"))("title",m(6,7,"labels.inputs.Middle Name")))}function x3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function b3e(e,o){if(e&1&&(l(0,"mat-form-field",14)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",35),p(5,"translate"),p(6,"translate"),E(7,x3e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Last Name")),a(2),g("placeholder",m(5,6,"labels.inputs.Last Name"))("title",m(6,8,"labels.inputs.Last Name")),a(3),I(t.editClientForm.controls.lastname.hasError("required")?7:-1)}}function y3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function S3e(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,y3e,2,2,"mat-option",9,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Gender")),a(3),we(t.genderOptions)}}function w3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function P3e(e,o){e&1&&(l(0,"mat-checkbox",21),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is staff"),"? "))}function T3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function M3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function D3e(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"mat-form-field",13)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",37),Se(6,T3e,2,2,"mat-option",9,Pe),r()(),l(8,"mat-form-field",13)(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",38),Se(13,M3e,2,2,"mat-option",9,Pe),r()(),l(15,"mat-form-field",16),R("click",function(){V(t);let i=ve(24);return q(i.open())}),l(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",39),p(20,"translate"),p(21,"translate"),b(22,"mat-datepicker-toggle",18)(23,"mat-datepicker",null,3),r(),l(25,"mat-form-field",13)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",40),p(30,"translate"),p(31,"translate"),r(),l(32,"mat-form-field",41)(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"textarea",42),p(37,"translate"),p(38,"translate"),r()()}if(e&2){let t=ve(24),n=w();a(3),h(m(4,15,"labels.inputs.Constitution")),a(3),we(n.constitutionOptions),a(4),h(m(11,17,"labels.inputs.Main Business Line")),a(3),we(n.businessLineOptions),a(4),h(m(18,19,"labels.inputs.Incorporation Validity Till Date")),a(2),g("placeholder",m(20,21,"labels.inputs.Incorporation Validity Till Date"))("title",m(21,23,"labels.inputs.Incorporation Validity Till Date"))("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(3),g("for",t),a(5),h(m(28,25,"labels.inputs.Incorporation No")),a(2),g("placeholder",m(30,27,"labels.inputs.Incorporation No"))("title",m(31,29,"labels.inputs.Incorporation No")),a(5),h(m(35,31,"labels.inputs.Remarks")),a(2),g("placeholder",m(37,33,"labels.inputs.Remarks"))("title",m(38,35,"labels.inputs.Remarks"))}}function E3e(e,o){e&1&&(l(0,"mat-error"),c(1," Email not valid "),r())}function I3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function O3e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function A3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submitted Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var g2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.legalFormId=1,this.route.data.subscribe(t=>{this.clientDataAndTemplate=t.clientDataAndTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditClientForm(),this.setOptions(),this.buildDependencies(),this.legalFormId=1,this.editClientForm.patchValue({officeId:this.clientDataAndTemplate.officeId,staffId:this.clientDataAndTemplate.staffId,legalFormId:this.clientDataAndTemplate.legalForm&&this.clientDataAndTemplate.legalForm.id,accountNo:this.clientDataAndTemplate.accountNo,externalId:this.clientDataAndTemplate.externalId,genderId:this.clientDataAndTemplate.gender&&this.clientDataAndTemplate.gender.id,isStaff:this.clientDataAndTemplate.isStaff,active:this.clientDataAndTemplate.active,mobileNo:this.clientDataAndTemplate.mobileNo,emailAddress:this.clientDataAndTemplate.emailAddress,dateOfBirth:this.clientDataAndTemplate.dateOfBirth&&new Date(this.clientDataAndTemplate.dateOfBirth),clientTypeId:this.clientDataAndTemplate.clientType&&this.clientDataAndTemplate.clientType.id,clientClassificationId:this.clientDataAndTemplate.clientClassification&&this.clientDataAndTemplate.clientClassification.id,submittedOnDate:this.clientDataAndTemplate.timeline.submittedOnDate&&new Date(this.clientDataAndTemplate.timeline.submittedOnDate),activationDate:this.clientDataAndTemplate.timeline.activatedOnDate&&new Date(this.clientDataAndTemplate.timeline.activatedOnDate)}),this.clientDataAndTemplate.legalForm&&(this.legalFormId=this.clientDataAndTemplate.legalForm.id)}createEditClientForm(){this.editClientForm=this.formBuilder.group({officeId:[{value:"",disabled:!0}],staffId:[""],legalFormId:[{value:"",disabled:!0}],isStaff:[!1],active:[!1],accountNo:[{value:"",disabled:!0}],externalId:[""],genderId:[""],mobileNo:[""],emailAddress:["",ce.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:["",ce.required],activationDate:[""]})}setOptions(){this.officeOptions=this.clientDataAndTemplate.officeOptions,this.staffOptions=this.clientDataAndTemplate.staffOptions,this.legalFormOptions=this.clientDataAndTemplate.clientLegalFormOptions,this.clientTypeOptions=this.clientDataAndTemplate.clientTypeOptions,this.clientClassificationTypeOptions=this.clientDataAndTemplate.clientClassificationOptions,this.businessLineOptions=this.clientDataAndTemplate.clientNonPersonMainBusinessLineOptions,this.constitutionOptions=this.clientDataAndTemplate.clientNonPersonConstitutionOptions,this.genderOptions=this.clientDataAndTemplate.genderOptions}buildDependencies(){this.editClientForm.get("legalFormId").valueChanges.subscribe(t=>{t===1?(this.editClientForm.removeControl("fullname"),this.editClientForm.removeControl("clientNonPersonDetails"),this.editClientForm.addControl("firstname",new it(this.clientDataAndTemplate.firstname,ce.required)),this.editClientForm.addControl("middlename",new it(this.clientDataAndTemplate.middlename)),this.editClientForm.addControl("lastname",new it(this.clientDataAndTemplate.lastname,ce.required))):(this.editClientForm.removeControl("firstname"),this.editClientForm.removeControl("middlename"),this.editClientForm.removeControl("lastname"),this.editClientForm.addControl("fullname",new it(this.clientDataAndTemplate.fullname,ce.required)),this.editClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:[this.clientDataAndTemplate.clientNonPersonDetails.constitution&&this.clientDataAndTemplate.clientNonPersonDetails.constitution.id,ce.required],incorpValidityTillDate:[this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate&&new Date(this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate)],incorpNumber:[this.clientDataAndTemplate.clientNonPersonDetails.incorpNumber],mainBusinessLineId:[this.clientDataAndTemplate.clientNonPersonDetails.mainBusinessLine&&this.clientDataAndTemplate.clientNonPersonDetails.mainBusinessLine.id],remarks:[this.clientDataAndTemplate.clientNonPersonDetails.remarks]})))})}getDateLabel(t,n){return t===1?n[0]:n[1]}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=this.editClientForm.getRawValue(),s=qt(at({},i),{dateOfBirth:i.dateOfBirth&&this.dateUtils.formatDate(i.dateOfBirth,n),submittedOnDate:i.submittedOnDate&&this.dateUtils.formatDate(i.submittedOnDate,n),activationDate:this.dateUtils.formatDate(i.activationDate,n),dateFormat:n,locale:t});delete s.officeId,i.clientNonPersonDetails?s.clientNonPersonDetails=qt(at({},i.clientNonPersonDetails),{incorpValidityTillDate:i.clientNonPersonDetails.incorpValidityTillDate&&this.dateUtils.formatDate(i.clientNonPersonDetails.incorpValidityTillDate,n),dateFormat:n,locale:t}):s.clientNonPersonDetails={},this.clientsService.updateClient(this.clientDataAndTemplate.id,s).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-client"]],decls:122,vars:112,consts:[["dateOfBirthDatePicker",""],["submittedOnDatePicker",""],["activatedOnDatePicker",""],["incorpValidityTillDateDatePicker",""],[1,"container"],[3,"formGroup"],[1,"responsive-row"],[1,"flex-24"],["required","","formControlName","officeId"],[3,"value"],["formControlName","legalFormId"],["matInput","","formControlName","accountNo","placeholder","Account No","title","Account No",3,"placeholder","title"],["matInput","","formControlName","externalId","placeholder","External Id","title","External Id",3,"placeholder","title"],[1,"flex-48"],[1,"flex-32"],[1,"section-divider"],[1,"flex-48",3,"click"],["matInput","","formControlName","dateOfBirth","placeholder","Date of Birth","title","Date of Birth",3,"max","matDatepicker","placeholder","title"],["matSuffix","",3,"for"],[1,"responsive-row","align-center"],["formControlName","staffId"],["labelPosition","before","formControlName","isStaff",1,"flex-48","margin-v"],["formGroupName","clientNonPersonDetails",1,"flex-100","layout-row-wrap","gap-2percent","column-on-small"],["matInput","","type","text","formControlName","mobileNo","placeholder","Mobile No","title","Mobile No",3,"placeholder","title"],["matInput","","formControlName","emailAddress","placeholder","Email Address","title","Email Address",3,"placeholder","title"],["formControlName","clientTypeId"],["formControlName","clientClassificationId"],["placeholder","Submitted On","title","Submitted On","matInput","","formControlName","submittedOnDate","required","",3,"placeholder","title","min","max","matDatepicker"],["placeholder","Activated On","title","Activated On","matInput","","formControlName","activationDate",3,"placeholder","title","min","max","matDatepicker"],[1,"button-container"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","formControlName","fullname","placeholder","Full Name","title","Full Name",3,"placeholder","title"],["matInput","","required","","formControlName","firstname","placeholder","First Name","title","First Name",3,"placeholder","title"],["matInput","","formControlName","middlename","placeholder","Middle Name","title","Middle Name",3,"placeholder","title"],["matInput","","required","","formControlName","lastname","placeholder","Last Name","title","Last Name",3,"placeholder","title"],["formControlName","genderId"],["formControlName","constitutionId","required",""],["formControlName","mainBusinessLineId"],["placeholder","Incorporation Validity Till Date","title","Incorporation Validity Till Date","matInput","","formControlName","incorpValidityTillDate",3,"placeholder","title","min","max","matDatepicker"],["matInput","","formControlName","incorpNumber","placeholder","Incorporation No","title","Incorporation No",3,"placeholder","title"],[1,"flex-98"],["matInput","","formControlName","remarks","cdkTextareaAutosize","","cdkAutosizeMinRows","2","placeholder","Remarks","title","Remarks",3,"placeholder","title"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"mat-card")(2,"form",5)(3,"mat-card-content")(4,"div",6)(5,"mat-form-field",7)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",8),Se(10,d3e,2,2,"mat-option",9,Pe),r(),E(12,u3e,7,9,"mat-error"),r(),l(13,"mat-form-field",7)(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",10),Se(18,f3e,2,2,"mat-option",9,Pe),r()(),l(20,"mat-form-field",7)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",11),p(25,"translate"),p(26,"translate"),r(),l(27,"mat-form-field",7)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",12),p(32,"translate"),p(33,"translate"),r()(),l(34,"div",6),E(35,g3e,8,13,"mat-form-field",13),E(36,C3e,8,10,"mat-form-field",14),E(37,v3e,7,9,"mat-form-field",14),E(38,b3e,8,10,"mat-form-field",14),r(),b(39,"mat-divider",15),l(40,"div",6)(41,"mat-form-field",16),R("click",function(){V(s);let u=ve(50);return q(u.open())}),l(42,"mat-label"),c(43),p(44,"translate"),r(),b(45,"input",17),p(46,"translate"),p(47,"translate"),b(48,"mat-datepicker-toggle",18)(49,"mat-datepicker",null,0),r(),E(51,S3e,7,3,"mat-form-field",13),r(),l(52,"div",19)(53,"mat-form-field",13)(54,"mat-label"),c(55),p(56,"translate"),r(),l(57,"mat-select",20),Se(58,w3e,2,2,"mat-option",9,Pe),r()(),E(60,P3e,3,3,"mat-checkbox",21),r(),E(61,D3e,39,37,"div",22),l(62,"div",6)(63,"mat-form-field",13)(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",23),p(68,"translate"),p(69,"translate"),r(),l(70,"mat-form-field",13)(71,"mat-label"),c(72),p(73,"translate"),r(),b(74,"input",24),p(75,"translate"),p(76,"translate"),E(77,E3e,2,0,"mat-error"),r()(),l(78,"div",6)(79,"mat-form-field",13)(80,"mat-label"),c(81),p(82,"translate"),r(),l(83,"mat-select",25),Se(84,I3e,2,2,"mat-option",9,Pe),r()(),l(86,"mat-form-field",13)(87,"mat-label"),c(88),p(89,"translate"),r(),l(90,"mat-select",26),Se(91,O3e,2,2,"mat-option",9,Pe),r()()(),l(93,"div",6)(94,"mat-form-field",16),R("click",function(){V(s);let u=ve(103);return q(u.open())}),l(95,"mat-label"),c(96),p(97,"translate"),r(),b(98,"input",27),p(99,"translate"),p(100,"translate"),b(101,"mat-datepicker-toggle",18)(102,"mat-datepicker",null,1),E(104,A3e,7,9,"mat-error"),r(),l(105,"mat-form-field",16),R("click",function(){V(s);let u=ve(114);return q(u.open())}),l(106,"mat-label"),c(107),p(108,"translate"),r(),b(109,"input",28),p(110,"translate"),p(111,"translate"),b(112,"mat-datepicker-toggle",18)(113,"mat-datepicker",null,2),r()()(),l(115,"mat-card-actions",29)(116,"button",30),c(117),p(118,"translate"),r(),l(119,"button",31),R("click",function(){return V(s),q(i.submit())}),c(120),p(121,"translate"),r()()()()()}if(n&2){let s=ve(50),d=ve(103),u=ve(114);a(2),g("formGroup",i.editClientForm),a(5),h(m(8,52,"labels.inputs.Office")),a(3),we(i.officeOptions),a(2),I(i.editClientForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,54,"labels.inputs.Legal Form")),a(3),we(i.legalFormOptions),a(4),h(m(23,56,"labels.inputs.Account No")),a(2),g("placeholder",m(25,58,"labels.inputs.Account No"))("title",m(26,60,"labels.inputs.Account No")),a(5),h(m(30,62,"labels.inputs.External Id")),a(2),g("placeholder",m(32,64,"labels.inputs.External Id"))("title",m(33,66,"labels.inputs.External Id")),a(4),I(i.editClientForm.contains("fullname")?35:-1),a(),I(i.editClientForm.contains("firstname")?36:-1),a(),I(i.editClientForm.contains("middlename")?37:-1),a(),I(i.editClientForm.contains("lastname")?38:-1),a(5),h(m(44,68,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(108,HM)))),a(2),g("max",i.maxDate)("matDatepicker",s)("placeholder",m(46,70,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(109,HM))))("title",m(47,72,"labels.inputs."+i.getDateLabel(i.legalFormId,oe(110,HM)))),a(3),g("for",s),a(3),I(i.legalFormId===1?51:-1),a(4),h(m(56,74,"labels.inputs.Staff")),a(3),we(i.staffOptions),a(2),I(i.legalFormId===1?60:-1),a(),I(i.editClientForm.contains("clientNonPersonDetails")?61:-1),a(4),h(m(66,76,"labels.inputs.Mobile No")),a(2),g("placeholder",m(68,78,"labels.inputs.Mobile No"))("title",m(69,80,"labels.inputs.Mobile No")),a(5),h(m(73,82,"labels.inputs.Email Address")),a(2),g("placeholder",m(75,84,"labels.inputs.Email Address"))("title",m(76,86,"labels.inputs.Email Address")),a(3),I(i.editClientForm.controls.emailAddress.errors!=null&&i.editClientForm.controls.emailAddress.errors.email?77:-1),a(4),h(m(82,88,"labels.inputs.Client Type")),a(3),we(i.clientTypeOptions),a(4),h(m(89,90,"labels.inputs.Client Classification")),a(3),we(i.clientClassificationTypeOptions),a(5),h(m(97,92,"labels.inputs.Submitted On")),a(2),g("placeholder",m(99,94,"labels.inputs.Submitted On"))("title",m(100,96,"labels.inputs.Submitted On"))("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(3),g("for",d),a(3),I(i.editClientForm.controls.submittedOnDate.hasError("required")?104:-1),a(3),h(m(108,98,"labels.inputs.Activated On")),a(2),g("placeholder",m(110,100,"labels.inputs.Activated On"))("title",m(111,102,"labels.inputs.Activated On"))("min",i.editClientForm.value.submittedOnDate)("max",i.maxDate)("matDatepicker",u),a(3),g("for",u),a(4),g("routerLink",oe(111,m3e)),a(),v(" ",m(118,104,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editClientForm.valid),a(),v(" ",m(121,106,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ri,Ln,he],styles:[".margin-v[_ngcontent-%COMP%]{margin:2em 0 0}.flex-32[_ngcontent-%COMP%]{flex:0 1 32%;max-width:32%}.gap-2percent[_ngcontent-%COMP%]{gap:2%}.align-center[_ngcontent-%COMP%]{align-items:center}.container[_ngcontent-%COMP%]{margin:24px auto;max-width:1200px;width:100%;padding:0 24px;box-sizing:border-box}[_nghost-%COMP%] .mat-card{padding:32px;margin:16px 0;border-radius:12px;box-shadow:0 4px 12px #0000001a}[_nghost-%COMP%] .mat-card-content{padding:0}.flex-24[_ngcontent-%COMP%]{flex:0 1 calc(25% - 15px);max-width:calc(25% - 15px);margin-right:0}.flex-48[_ngcontent-%COMP%]{flex:0 1 calc(50% - 10px);max-width:calc(50% - 10px);margin-right:0}.responsive-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:20px;margin-bottom:24px;align-items:flex-start}.responsive-row[_ngcontent-%COMP%]:last-child{margin-bottom:0}[_nghost-%COMP%] .mat-form-field{margin-bottom:16px;width:100%}[_nghost-%COMP%] .mat-form-field:last-child{margin-right:0}[_nghost-%COMP%] .responsive-row .mat-form-field{min-height:56px}[_nghost-%COMP%] .responsive-row .mat-form-field .mat-form-field-wrapper{padding-bottom:1.3438em}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-outline{color:#0000001f}[_nghost-%COMP%] .mat-form-field-appearance-outline .mat-form-field-outline-thick{color:#3f51b5}[_nghost-%COMP%] .mat-form-field.mat-form-field-invalid .mat-form-field-outline-thick{color:#f44336;opacity:1}[_nghost-%COMP%] .mat-error{font-size:12px;margin-top:4px}.section-divider[_ngcontent-%COMP%]{margin:32px 0 24px;border-color:#0000001f}[_nghost-%COMP%] .mat-checkbox{margin:20px 0}[_nghost-%COMP%] mat-card-actions{display:flex;justify-content:center;gap:20px;padding:24px 0;margin-top:32px;border-top:1px solid rgba(0,0,0,.12);width:100%}[_nghost-%COMP%] mat-card-actions button{min-width:100px;height:36px;padding:0 20px;border-radius:4px;font-weight:500;text-transform:none;letter-spacing:.3px;font-size:13px;margin:0}@media (width <= 1024px){.flex-24[_ngcontent-%COMP%]{flex:0 1 calc(50% - 10px);max-width:calc(50% - 10px)}.flex-48[_ngcontent-%COMP%]{flex:0 1 100%;max-width:100%}}@media (width <= 768px){.flex-32[_ngcontent-%COMP%], .flex-24[_ngcontent-%COMP%], .flex-48[_ngcontent-%COMP%]{flex:0 1 100%;max-width:100%}.container[_ngcontent-%COMP%]{margin:16px;padding:0 16px}[_nghost-%COMP%] .mat-card{padding:20px}.responsive-row[_ngcontent-%COMP%]{gap:12px;margin-bottom:16px}.responsive-row[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%]{flex:1 1 100%;max-width:100%;margin-right:0}}@media (width <= 600px){[_nghost-%COMP%] mat-card-actions{flex-direction:column;gap:12px}[_nghost-%COMP%] mat-card-actions button{width:100%;margin:0}}@media (width <= 480px){[_nghost-%COMP%] .mat-card{padding:16px;margin:8px 0}.responsive-row[_ngcontent-%COMP%]{gap:8px;margin-bottom:12px}.container[_ngcontent-%COMP%]{padding:0 12px}}[_nghost-%COMP%]{display:block;width:100%}[_nghost-%COMP%] form{width:100%}[_nghost-%COMP%] .mat-datepicker-toggle{color:#0000008a}[_nghost-%COMP%] .mat-select-panel{max-height:256px}"]})}}return e})();var F3e=()=>["Date of Birth","Incorporation Date"],k3e=()=>["Name","Entity Name"];function B3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function R3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"inputs")," ")}}function L3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function V3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function q3e(e,o){if(e&1&&(l(0,"mat-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32),E(5,L3e,7,9,"mat-error"),E(6,V3e,8,9,"mat-error"),r()),e&2){let t=w();a(2),v(" ",m(3,3,"labels.inputs."+t.getDateLabel(t.createClientForm.value.legalFormId,oe(5,k3e)))," "),a(3),I(t.createClientForm.controls.fullname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.fullname.hasError("pattern")?6:-1)}}function z3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client first name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function H3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client first name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function G3e(e,o){if(e&1&&(l(0,"mat-form-field",33)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",36),E(5,z3e,7,9,"mat-error"),E(6,H3e,8,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.First Name")),a(3),I(t.createClientForm.controls.firstname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.firstname.hasError("pattern")?6:-1)}}function j3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client middle name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function $3e(e,o){if(e&1&&(l(0,"mat-form-field",34)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",37),E(5,j3e,8,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Middle Name")),a(3),I(t.createClientForm.controls.middlename.hasError("pattern")?5:-1)}}function U3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client last name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function W3e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Client last name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function Q3e(e,o){if(e&1&&(l(0,"mat-form-field",35)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",38),E(5,U3e,7,9,"mat-error"),E(6,W3e,8,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.Last Name")),a(3),I(t.createClientForm.controls.lastname.hasError("required")?5:-1),a(),I(t.createClientForm.controls.lastname.hasError("pattern")?6:-1)}}function Y3e(e,o){if(e&1&&(l(0,"div",12),E(1,G3e,7,5,"mat-form-field",33),E(2,$3e,6,4,"mat-form-field",34),E(3,Q3e,7,5,"mat-form-field",35),r()),e&2){let t=w();a(),I(t.createClientForm.contains("firstname")?1:-1),a(),I(t.createClientForm.contains("middlename")?2:-1),a(),I(t.createClientForm.contains("lastname")?3:-1)}}function J3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function K3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function X3e(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"mat-form-field",11)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",39),Se(6,J3e,2,2,"mat-option",8,Pe),r()(),l(8,"mat-form-field",11)(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",40),Se(13,K3e,2,2,"mat-option",8,Pe),r()(),l(15,"mat-form-field",13),R("click",function(){V(t);let i=ve(22);return q(i.open())}),l(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",41)(20,"mat-datepicker-toggle",15)(21,"mat-datepicker",null,2),r(),l(23,"mat-form-field",11)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",42),r(),l(28,"mat-form-field",19)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"textarea",43),r()()}if(e&2){let t=ve(22),n=w();a(3),h(m(4,9,"labels.inputs.Constitution")),a(3),we(n.constitutionOptions),a(4),h(m(11,11,"labels.inputs.Main Business Line")),a(3),we(n.businessLineOptions),a(4),h(m(18,13,"labels.inputs.Incorporation Validity Till Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(5),h(m(26,15,"labels.inputs.Incorporation Number")),a(5),h(m(31,17,"labels.inputs.Remarks"))}}function Z3e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eSe(e,o){if(e&1&&(l(0,"mat-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",44),Se(5,Z3e,2,2,"mat-option",8,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Gender")),a(3),we(t.genderOptions)}}function tSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function iSe(e,o){e&1&&(l(0,"mat-checkbox",18),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is staff"),"? "))}function nSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"error.Email not valid")," "))}function oSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function aSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function rSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lSe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",13),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",45)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,3),E(8,rSe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.createClientForm.value.submittedOnDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.createClientForm.controls.activationDate.hasError("required")?8:-1)}}function sSe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function cSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Savings Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pSe(e,o){if(e&1&&(l(0,"mat-form-field",11)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",46),Se(5,sSe,2,2,"mat-option",8,Pe),r(),E(7,cSe,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Savings Product")),a(3),we(t.savingProductOptions),a(2),I(t.createClientForm.controls.savingsProductId.hasError("required")?7:-1)}}var Qf=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.clientService=T(Oi),this.legalFormChangeEvent=new bi,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.setClientForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setOptions(),this.buildDependencies()}setClientForm(){this.createClientForm=this.formBuilder.group({officeId:["",ce.required],staffId:[""],legalFormId:["",ce.required],isStaff:[!1],active:[!1],addSavings:[!1],accountNo:[""],externalId:[""],genderId:[""],mobileNo:[""],emailAddress:["",ce.email],dateOfBirth:[""],clientTypeId:[""],clientClassificationId:[""],submittedOnDate:[this.settingsService.businessDate,ce.required]})}setOptions(){this.officeOptions=this.clientTemplate.officeOptions,this.staffOptions=this.clientTemplate.staffOptions,this.legalFormOptions=this.clientTemplate.clientLegalFormOptions,this.clientTypeOptions=this.clientTemplate.clientTypeOptions,this.clientClassificationTypeOptions=this.clientTemplate.clientClassificationOptions,this.businessLineOptions=this.clientTemplate.clientNonPersonMainBusinessLineOptions,this.constitutionOptions=this.clientTemplate.clientNonPersonConstitutionOptions,this.genderOptions=this.clientTemplate.genderOptions,this.savingProductOptions=this.clientTemplate.savingProductOptions}buildDependencies(){this.createClientForm.get("legalFormId").valueChanges.subscribe(t=>{this.legalFormChangeEvent.emit({legalForm:t}),t===1?(this.createClientForm.removeControl("fullname"),this.createClientForm.removeControl("clientNonPersonDetails"),this.createClientForm.addControl("firstname",new it("",[ce.required,ce.pattern("(^[A-z]).*")])),this.createClientForm.addControl("middlename",new it("",ce.pattern("(^[A-z]).*"))),this.createClientForm.addControl("lastname",new it("",[ce.required,ce.pattern("(^[A-z]).*")]))):(this.createClientForm.removeControl("firstname"),this.createClientForm.removeControl("middlename"),this.createClientForm.removeControl("lastname"),this.createClientForm.addControl("fullname",new it("",[ce.required,ce.pattern("(^[A-z]).*")])),this.createClientForm.addControl("clientNonPersonDetails",this.formBuilder.group({constitutionId:["",ce.required],incorpValidityTillDate:[""],incorpNumber:[""],mainBusinessLineId:[""],remarks:[""]})))}),this.createClientForm.get("legalFormId").patchValue(1),this.createClientForm.get("active").valueChanges.subscribe(t=>{t?this.createClientForm.addControl("activationDate",new it("",ce.required)):this.createClientForm.removeControl("activationDate")}),this.createClientForm.get("addSavings").valueChanges.subscribe(t=>{t?this.createClientForm.addControl("savingsProductId",new it("",ce.required)):this.createClientForm.removeControl("savingsProductId")}),this.createClientForm.get("officeId").valueChanges.subscribe(t=>{this.clientService.getClientWithOfficeTemplate(t).subscribe(n=>{this.staffOptions=n.staffOptions})})}getDateLabel(t,n){return t===1?n[0]:n[1]}get clientGeneralDetails(){let t=this.createClientForm.value,n=this.settingsService.dateFormat,i=this.settingsService.language.code;for(let s in t)(t[s]===""||s==="addSavings")&&delete t[s];return t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(t.submittedOnDate,n)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(t.activationDate,n)),t.dateOfBirth instanceof Date&&(t.dateOfBirth=this.dateUtils.formatDate(t.dateOfBirth,n)),t.clientNonPersonDetails&&t.clientNonPersonDetails.incorpValidityTillDate&&(t.clientNonPersonDetails=qt(at({},t.clientNonPersonDetails),{incorpValidityTillDate:this.dateUtils.formatDate(t.clientNonPersonDetails.incorpValidityTillDate,n),dateFormat:n,locale:i})),t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-general-step"]],inputs:{clientTemplate:"clientTemplate"},outputs:{legalFormChangeEvent:"legalFormChangeEvent"},decls:95,vars:60,consts:[["dateOfBirthDatePicker",""],["submittedOnDatePicker",""],["incorpValidityTillDateDatePicker",""],["activatedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill","flex-23"],["required","","formControlName","officeId"],[3,"value"],["required","","formControlName","legalFormId"],["matInput","","formControlName","externalId"],[1,"flex-48"],[1,"name-fields-row"],[1,"flex-48",3,"click"],["matInput","","formControlName","dateOfBirth",3,"max","matDatepicker"],["matSuffix","",3,"for"],["formGroupName","clientNonPersonDetails",1,"flex-100","layout-row-wrap","responsive-column","gap-4percent"],["formControlName","staffId"],["labelPosition","before","formControlName","isStaff",1,"flex-48","margin-v"],[1,"flex-98"],["matInput","","type","text","formControlName","mobileNo"],["matInput","","formControlName","emailAddress"],["formControlName","clientTypeId"],["formControlName","clientClassificationId"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["labelPosition","before","formControlName","active",1,"margin-v","flex-48"],["labelPosition","before","formControlName","addSavings",1,"margin-v","flex-48"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["matInput","","required","","formControlName","fullname"],[1,"name-field","first-name"],[1,"name-field","middle-name"],[1,"name-field","last-name"],["matInput","","required","","formControlName","firstname"],["matInput","","formControlName","middlename"],["matInput","","required","","formControlName","lastname"],["formControlName","constitutionId","required",""],["formControlName","mainBusinessLineId"],["matInput","","formControlName","incorpValidityTillDate",3,"min","max","matDatepicker"],["matInput","","formControlName","incorpNumber"],["matInput","","formControlName","remarks","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["formControlName","genderId"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["required","","formControlName","savingsProductId"]],template:function(n,i){if(n&1){let s=Y();l(0,"form",4)(1,"div",5)(2,"mat-form-field",6)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",7),Se(7,B3e,2,2,"mat-option",8,Pe),r(),E(9,R3e,7,9,"mat-error"),r(),l(10,"mat-form-field",6)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",9),Se(15,N3e,3,5,"mat-option",8,Pe),r()(),l(17,"mat-form-field",6)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",10),r(),E(22,q3e,7,6,"mat-form-field",11),E(23,Y3e,4,3,"div",12),b(24,"mat-divider"),l(25,"mat-form-field",13),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",14)(30,"mat-datepicker-toggle",15)(31,"mat-datepicker",null,0),r(),E(33,X3e,33,19,"div",16),E(34,eSe,7,3,"mat-form-field",11),l(35,"mat-form-field",11)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",17),Se(40,tSe,2,2,"mat-option",8,Pe),r()(),E(42,iSe,3,3,"mat-checkbox",18),b(43,"mat-divider",19),l(44,"mat-form-field",11)(45,"mat-label"),c(46),p(47,"translate"),r(),b(48,"input",20),r(),l(49,"mat-form-field",11)(50,"mat-label"),c(51),p(52,"translate"),r(),b(53,"input",21),E(54,nSe,3,3,"mat-error"),r(),l(55,"mat-form-field",11)(56,"mat-label"),c(57),p(58,"translate"),r(),l(59,"mat-select",22),Se(60,oSe,2,2,"mat-option",8,Pe),r()(),l(62,"mat-form-field",11)(63,"mat-label"),c(64),p(65,"translate"),r(),l(66,"mat-select",23),Se(67,aSe,2,2,"mat-option",8,Pe),r()(),l(69,"mat-form-field",13),R("click",function(){V(s);let u=ve(76);return q(u.open())}),l(70,"mat-label"),c(71),p(72,"translate"),r(),b(73,"input",24)(74,"mat-datepicker-toggle",15)(75,"mat-datepicker",null,1),r(),b(77,"br"),l(78,"mat-checkbox",25),c(79),p(80,"translate"),r(),E(81,lSe,9,8,"mat-form-field",11),l(82,"mat-checkbox",26),c(83),p(84,"translate"),r(),E(85,pSe,8,4,"mat-form-field",11),r(),l(86,"div",27)(87,"button",28),b(88,"fa-icon",29),c(89),p(90,"translate"),r(),l(91,"button",30),c(92),p(93,"translate"),b(94,"fa-icon",31),r()()()}if(n&2){let s=ve(32),d=ve(76);g("formGroup",i.createClientForm),a(4),h(m(5,31,"labels.inputs.Office")),a(3),we(i.officeOptions),a(2),I(i.createClientForm.controls.officeId.hasError("required")?9:-1),a(3),h(m(13,33,"labels.inputs.Legal Form")),a(3),we(i.legalFormOptions),a(4),h(m(20,35,"labels.inputs.External Id")),a(3),I(i.createClientForm.contains("fullname")?22:-1),a(),I(i.createClientForm.contains("firstname")||i.createClientForm.contains("middlename")||i.createClientForm.contains("lastname")?23:-1),a(4),v(" ",m(28,37,"labels.inputs."+i.getDateLabel(i.createClientForm.value.legalFormId,oe(59,F3e)))," "),a(2),g("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.createClientForm.get("clientNonPersonDetails")?33:-1),a(),I(i.createClientForm.value.legalFormId===1?34:-1),a(3),h(m(38,39,"labels.inputs.Staff")),a(3),we(i.staffOptions),a(2),I(i.createClientForm.value.legalFormId===1?42:-1),a(4),h(m(47,41,"labels.inputs.Mobile No")),a(5),h(m(52,43,"labels.inputs.Email Address")),a(3),I(i.createClientForm.controls.emailAddress.errors!=null&&i.createClientForm.controls.emailAddress.errors.email?54:-1),a(3),h(m(58,45,"labels.inputs.Client Type")),a(3),we(i.clientTypeOptions),a(4),h(m(65,47,"labels.inputs.Client Classification")),a(3),we(i.clientClassificationTypeOptions),a(4),h(m(72,49,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(5),v(" ",m(80,51,"labels.inputs.Active"),"? "),a(2),I(i.createClientForm.contains("activationDate")?81:-1),a(2),v(" ",m(84,53,"labels.inputs.Open Savings Account"),"? "),a(2),I(i.createClientForm.contains("savingsProductId")?85:-1),a(4),v(" ",m(90,55,"labels.buttons.Previous")," "),a(3),v(" ",m(93,57,"labels.buttons.Next")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ri,Ln,qi,ke,Ji,he,ki],styles:["form[_ngcontent-%COMP%]{padding:16px 0}form[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{gap:8px!important}mat-form-field[_ngcontent-%COMP%]{margin-bottom:8px}mat-divider[_ngcontent-%COMP%]{margin:16px 0}.margin-v[_ngcontent-%COMP%]{margin:2em 0 0}.margin-t[_ngcontent-%COMP%]{margin-top:2em}.name-fields-row[_ngcontent-%COMP%]{display:flex;gap:8px;flex-wrap:wrap;width:100%;margin-bottom:8px}.name-fields-row[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{flex:1;min-width:200px}.name-fields-row[_ngcontent-%COMP%] .name-field.first-name[_ngcontent-%COMP%], .name-fields-row[_ngcontent-%COMP%] .name-field.last-name[_ngcontent-%COMP%]{flex:1.2}.name-fields-row[_ngcontent-%COMP%] .name-field.middle-name[_ngcontent-%COMP%]{flex:1}@media (width <= 768px){.name-fields-row[_ngcontent-%COMP%]{flex-direction:column;gap:4px}.name-fields-row[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{width:100%;min-width:unset;flex:none}}.name-fields-row[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .name-fields-row[_ngcontent-%COMP%] + mat-divider[_ngcontent-%COMP%], .name-fields-row[_ngcontent-%COMP%] + div[_ngcontent-%COMP%]{margin-top:8px}.layout-row.align-center[_ngcontent-%COMP%]{padding-top:16px;margin-top:12px}.layout-row.align-center[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin:0 6px}.flex-100[_ngcontent-%COMP%]{margin:16px 0;padding:8px 0}mat-checkbox[_ngcontent-%COMP%]{margin:8px 0}mat-checkbox.margin-v[_ngcontent-%COMP%]{margin-top:12px}@media (width <= 768px){form[_ngcontent-%COMP%]{padding:12px 0}form[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{gap:6px!important}mat-form-field[_ngcontent-%COMP%]{margin-bottom:6px}mat-divider[_ngcontent-%COMP%]{margin:12px 0}.layout-row.align-center[_ngcontent-%COMP%]{padding-top:12px;margin-top:8px;flex-direction:column;gap:8px}.layout-row.align-center[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:100%;margin:2px 0}}@media (width <= 480px){form[_ngcontent-%COMP%]{padding:8px 0}form[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{gap:4px!important}}"]})}}return e})();var mSe=e=>({member:e});function dSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function hSe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Relationship")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function _Se(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Gender")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function vSe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}var Yf=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.data=T(Po),this.settingsService=T(Ot),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFamilyMemberForm(),this.data.context==="Edit"&&this.familyMemberForm.patchValue({firstName:this.data.member.firstName,middleName:this.data.member.middleName,lastName:this.data.member.lastName,qualification:this.data.member.qualification,age:this.data.member.age,isDependent:this.data.member.isDependent,relationshipId:this.data.member.relationshipId,genderId:this.data.member.genderId,professionId:this.data.member.professionId,maritalStatusId:this.data.member.maritalStatusId,dateOfBirth:this.data.member.dateOfBirth&&new Date(this.data.member.dateOfBirth)}),this.familyMemberForm.get("dateOfBirth").valueChanges.subscribe(n=>{if(n){let i=this.calculateAge(n);this.familyMemberForm.get("age").setValue(i)}else this.familyMemberForm.get("age").setValue("")});let t=this.familyMemberForm.get("dateOfBirth").value;if(t){let n=this.calculateAge(t);this.familyMemberForm.get("age").setValue(n)}}calculateAge(t){let n=new Date(this.settingsService.businessDate),i=new Date(t),s=n.getFullYear()-i.getFullYear(),d=n.getMonth()-i.getMonth();return(d<0||d===0&&n.getDate(){class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.clientFamilyMembers=[]}addFamilyMember(){this.dialog.open(Yf,{data:{context:this.translateService.instant("labels.buttons.Add"),options:this.clientTemplate.familyMemberOptions},width:"50rem"}).afterClosed().subscribe(n=>{n.member&&this.clientFamilyMembers.push(n.member)})}editFamilyMember(t,n){this.dialog.open(Yf,{data:{context:"Edit",member:t,options:this.clientTemplate.familyMemberOptions},width:"50rem"}).afterClosed().subscribe(s=>{s.member&&this.clientFamilyMembers.splice(n,1,s.member)})}deleteFamilyMember(t,n){this.dialog.open(vi,{data:{deleteContext:`Family member name : ${t} ${n}`}}).afterClosed().subscribe(s=>{s.delete&&this.clientFamilyMembers.splice(n,1)})}get familyMembers(){return{familyMembers:this.clientFamilyMembers}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-family-members-step"]],inputs:{clientTemplate:"clientTemplate"},decls:21,vars:12,consts:[[1,"mat-typography"],[1,"layout-row","align-end","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"family-member"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"family-member-actions","layout-row","align-end"],["mat-button","","color","primary"],["icon","edit",3,"click"],["mat-button","","color","warn",3,"click"],["icon","trash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"button",2),R("click",function(){return i.addFamilyMember()}),b(6,"fa-icon",3),c(7),p(8,"translate"),r()(),l(9,"mat-accordion"),Se(10,xSe,51,69,"mat-expansion-panel",4,Pe),r(),l(12,"div",5)(13,"button",6),b(14,"fa-icon",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),b(20,"fa-icon",9),r()()()),n&2&&(a(2),h(m(3,4,"labels.heading.Family Members")),a(5),v("",m(8,6,"labels.buttons.Add")," "),a(3),we(i.clientFamilyMembers),a(5),v(" ",m(16,8,"labels.buttons.Previous")," "),a(3),v(" ",m(19,10,"labels.buttons.Next")," "))},dependencies:[ue,fe,xe,ke,Dr,Pr,Tr,Mr,oc,Ri,qi,Ji,Pi,he,Qn],styles:[".family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%]{margin-top:1%}.family-member[_ngcontent-%COMP%] .family-member-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.family-member[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.family-member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.margin-t[_ngcontent-%COMP%]{margin-top:2em}"]})}}return e})();function bSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Street")," : ",t.street)}}function ySe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function SSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function wSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function PSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function TSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.City")," : ",t.city)}}function MSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function DSe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function ESe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function ISe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function OSe(e,o){if(e&1){let t=Y();l(0,"mat-expansion-panel",9)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider"),l(7,"div",10)(8,"button",11),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.editAddress(s,d))}),b(9,"fa-icon",12),r(),l(10,"button",13),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.deleteAddress(s,d))}),b(11,"fa-icon",14),r(),l(12,"mat-slide-toggle",15),R("change",function(){let i=V(t).$implicit,s=w(2);return q(s.toggleAddress(i))}),r()(),l(13,"p"),E(14,bSe,4,4,"span"),E(15,ySe,4,4,"span"),E(16,SSe,4,4,"span"),E(17,wSe,4,4,"span"),E(18,PSe,4,4,"span"),E(19,TSe,4,4,"span"),E(20,MSe,4,4,"span"),E(21,DSe,4,4,"span"),E(22,ESe,4,4,"span"),E(23,ISe,4,4,"span"),r()()}if(e&2){let t,n=o.$implicit,i=w(2);a(3),v(" ",(t=i.getSelectedValue("addressTypeIdOptions",n.addressTypeId))==null?null:t.name," "),a(2),v(" ",n.relationship," "),a(7),g("checked",n.isActive),a(2),I(i.isFieldEnabled("street")?14:-1),a(),I(i.isFieldEnabled("addressLine1")?15:-1),a(),I(i.isFieldEnabled("addressLine2")?16:-1),a(),I(i.isFieldEnabled("addressLine3")?17:-1),a(),I(i.isFieldEnabled("townVillage")?18:-1),a(),I(i.isFieldEnabled("city")?19:-1),a(),I(i.isFieldEnabled("stateProvinceId")?20:-1),a(),I(i.isFieldEnabled("countryId")?21:-1),a(),I(i.isFieldEnabled("postalCode")?22:-1),a(),I(i.isFieldEnabled("isActive")?23:-1)}}function ASe(e,o){if(e&1&&(l(0,"mat-accordion"),Se(1,OSe,24,13,"mat-expansion-panel",9,Pe),r()),e&2){let t=w();a(),we(t.clientAddressData)}}var C2=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.clientAddressData=[],this.clientAddressData=[]}addAddress(){let t={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields()};this.dialog.open(an,{data:t,width:"50rem"}).afterClosed().subscribe(i=>{if(i.data){let s=i.data.value;s.isActive=!1;for(let d in s)(s[d]===""||s[d]===void 0)&&delete s[d];this.clientAddressData.push(s)}})}editAddress(t,n){let i={title:this.translateService.instant("labels.buttons.Edit")+" "+this.translateService.instant("labels.catalogs.Client")+" "+this.translateService.instant("labels.heading.Address"),formfields:this.getAddressFormFields(t),layout:{addButtonText:"Edit"}};this.dialog.open(an,{data:i,width:"50rem"}).afterClosed().subscribe(d=>{if(d.data){let u=d.data.value;u.isActive=t.isActive;for(let f in u)(u[f]===""||u[f]===void 0)&&delete u[f];this.clientAddressData[n]=u}})}deleteAddress(t,n){this.dialog.open(vi,{data:{deleteContext:`${this.translateService.instant("labels.heading.Address")} ${this.translateService.instant("labels.inputs.Type")} : ${t.addressType} ${n}`}}).afterClosed().subscribe(s=>{s.delete&&this.clientAddressData.splice(n,1)})}toggleAddress(t){t.isActive=!t.isActive}isFieldEnabled(t){return this.clientAddressFieldConfig.find(n=>n.field===t)?.isEnabled}getSelectedValue(t,n){return this.clientTemplate.address[0][t].find(i=>i.id===n)}getAddressFormFields(t){let n=[];for(let i=0;ii!==null),n}get address(){return{address:this.clientAddressData?this.clientAddressData:[]}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-address-step"]],inputs:{clientAddressFieldConfig:"clientAddressFieldConfig",clientTemplate:"clientTemplate"},decls:19,vars:13,consts:[[1,"mat-typography"],[1,"layout-row","align-end","m-b-20"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"address"],[1,"address-actions","layout-row","align-end","align-items-center"],["mat-button","","color","primary",3,"click"],["icon","edit"],["mat-button","","color","warn",3,"click"],["icon","trash"],[3,"change","checked"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"button",2),R("click",function(){return i.addAddress()}),b(6,"fa-icon",3),c(7),p(8,"translate"),r()(),E(9,ASe,3,0,"mat-accordion"),l(10,"div",4)(11,"button",5),b(12,"fa-icon",6),c(13),p(14,"translate"),r(),l(15,"button",7),c(16),p(17,"translate"),b(18,"fa-icon",8),r()()()),n&2&&(a(2),h(m(3,5,"labels.heading.Address")),a(5),v("",m(8,7,"labels.buttons.Add")," "),a(2),I(i.clientAddressData.length>0?9:-1),a(4),v(" ",m(14,9,"labels.buttons.Previous")," "),a(3),v(" ",m(17,11,"labels.buttons.Next")," "))},dependencies:[ue,fe,xe,ke,Dr,Pr,Tr,Mr,oc,Ri,Ip,qi,Ji,he],styles:[".address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%]{margin-top:1%}.address[_ngcontent-%COMP%] .address-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.address[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.address[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.margin-t[_ngcontent-%COMP%]{margin-top:2em}"]})}}return e})();function FSe(e,o){if(e&1&&(l(0,"mat-option",14),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function kSe(e,o){if(e&1&&(l(0,"mat-select",11),Se(1,FSe,2,2,"mat-option",14,Pe),r()),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName)),a(),we(t.columnValues)}}function BSe(e,o){if(e&1&&b(0,"input",12),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function RSe(e,o){if(e&1&&b(0,"input",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function NSe(e,o){if(e&1&&b(0,"textarea",13),e&2){let t=w(2).$implicit;g("formControlName",Le(t.controlName))}}function LSe(e,o){if(e&1){let t=Y();l(0,"span",15),R("click",function(){V(t);let i=ve(4);return q(i.open())}),b(1,"input",16)(2,"mat-datepicker-toggle",17)(3,"mat-datepicker",null,0),r()}if(e&2){let t=ve(4),n=w(2).$implicit;a(),g("formControlName",Le(n.controlName))("matDatepicker",t),a(),g("for",t)}}function VSe(e,o){if(e&1&&(l(0,"mat-form-field",9)(1,"mat-label"),c(2),r(),E(3,kSe,3,2,"mat-select",11),E(4,BSe,1,2,"input",12),E(5,RSe,1,2,"input",13),E(6,NSe,1,2,"textarea",13),E(7,LSe,5,4,"span"),r()),e&2){let t=w().$implicit,n=w();a(2),h(n.getInputName(t)),a(),I(n.isDropdown(t.columnDisplayType)?3:-1),a(),I(n.isNumeric(t.columnDisplayType)?4:-1),a(),I(n.isString(t.columnDisplayType)?5:-1),a(),I(n.isText(t.columnDisplayType)?6:-1),a(),I(n.isDate(t.columnDisplayType)?7:-1)}}function qSe(e,o){if(e&1&&(l(0,"mat-checkbox",10),c(1),r()),e&2){let t=w().$implicit,n=w();g("formControlName",Le(t.controlName)),a(),v(" ",n.getInputName(t)," ")}}function zSe(e,o){if(e&1&&(l(0,"div",3),E(1,VSe,8,6,"mat-form-field",9),E(2,qSe,2,3,"mat-checkbox",10),r()),e&2){let t=o.$implicit,n=w();a(),I(n.isBoolean(t.columnDisplayType)?-1:1),a(),I(n.isBoolean(t.columnDisplayType)?2:-1)}}var v2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.settingsService=T(Ot),this.datatableService=T(Qg),this.datatableInputs=[]}ngOnInit(){this.datatableInputs=this.datatableService.filterSystemColumns(this.datatableData.columnHeaderData);let t={};this.datatableInputs.forEach(n=>{n.controlName=this.getInputName(n),n.isColumnNullable?t[n.controlName]=new it(""):this.isNumeric(n.columnDisplayType)?t[n.controlName]=new it(0,[ce.required]):t[n.controlName]=new it("",[ce.required])}),this.datatableForm=this.formBuilder.group(t)}getInputName(t){return this.datatableService.getInputName(t)}isNumeric(t){return this.datatableService.isNumeric(t)}isDate(t){return this.datatableService.isDate(t)}isBoolean(t){return this.datatableService.isBoolean(t)}isDropdown(t){return this.datatableService.isDropdown(t)}isString(t){return this.datatableService.isString(t)}isText(t){return this.datatableService.isText(t)}get payload(){let t=this.settingsService.dateFormat,n=this.datatableForm.value,i=this.datatableService.buildPayload(this.datatableInputs,n,t,{locale:this.settingsService.language.code});return{registeredTableName:this.datatableData.registeredTableName,data:i}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-datatable-step"]],inputs:{datatableData:"datatableData"},decls:13,vars:7,consts:[["datePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-100"],["labelPosition","before",1,"margin-v",3,"formControlName"],[3,"formControlName"],["matInput","","type","number",3,"formControlName"],["matInput","",3,"formControlName"],[3,"value"],[3,"click"],["matInput","",1,"date-picker",3,"matDatepicker","formControlName"],["matSuffix","",3,"for"]],template:function(n,i){n&1&&(l(0,"form",1)(1,"div",2),Se(2,zSe,3,2,"div",3,Pe),r(),l(4,"div",4)(5,"button",5),b(6,"fa-icon",6),c(7),p(8,"translate"),r(),l(9,"button",7),c(10),p(11,"translate"),b(12,"fa-icon",8),r()()()),n&2&&(g("formGroup",i.datatableForm),a(2),we(i.datatableInputs),a(5),v(" ",m(8,3,"labels.buttons.Previous")," "),a(3),v(" ",m(11,5,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,Ze,et,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,fi,qi,ke,Ji,he],styles:[".date-picker[_ngcontent-%COMP%]{width:92%}mat-checkbox[_ngcontent-%COMP%]{margin-top:30px}"]})}}return e})();var HSe=()=>["../"];function GSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),h(t.client.fullname)}}function jSe(e,o){if(e&1&&(l(0,"span",4),c(1),r()),e&2){let t=w();a(),le("",t.client.firstname," ",t.client.middlename?t.client.middlename+" "+t.client.lastname:t.client.lastname)}}function $Se(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Staff")),a(3),h($t(6,4,t.client.staffId,t.clientTemplate.staffOptions,"id","displayName"))}}function USe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),r(),l(3,"span",4),c(4),p(5,"dateFormat"),r()()),e&2){let t=w();a(2),h(t.client.legalFormId===1?"Date of Birth":"Incorporation Date"),a(2),h(m(5,2,t.client.dateOfBirth))}}function WSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),b(5,"mifosx-external-identifier",12),r()()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.External Id")),a(3),g("externalId",Le(t.client.externalId))}}function QSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Mobile No")),a(3),h(t.client.mobileNo)}}function YSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Email Address")),a(3),h(t.client.emailAddress)}}function JSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Client Type")),a(3),h($t(6,4,t.client.clientTypeId,t.clientTemplate.clientTypeOptions,"id","name"))}}function KSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Client Classification")),a(3),h($t(6,4,t.client.clientClassificationId,t.clientTemplate.clientClassificationOptions,"id","name"))}}function XSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Savings Product")),a(3),h($t(6,4,t.client.savingsProductId,t.clientTemplate.savingProductOptions,"id","name"))}}function ZSe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"dateFormat"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Submitted On Date")),a(3),h(m(6,4,t.client.submittedOnDate))}}function ewe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"dateFormat"),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Activation Date")),a(3),h(m(6,4,t.client.activationDate))}}function twe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Gender")),a(3),h($t(6,4,t.client.genderId,t.clientTemplate.genderOptions,"id","name"))}}function iwe(e,o){if(e&1&&(E(0,twe,7,9,"div",2),l(1,"div",2)(2,"span",3),c(3),p(4,"translate"),r(),l(5,"span",4),c(6),p(7,"yesNo"),r()()),e&2){let t=w();I(t.client.genderId?0:-1),a(3),v("",m(4,3,"labels.inputs.Is staff"),"?"),a(3),h(m(7,5,t.client.isStaff))}}function nwe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Incorporation Validity Till Date")),a(3),h(m(6,4,t.client.clientNonPersonDetails.incorpValidityTillDate))}}function owe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Main Business Line")),a(3),h($t(6,4,t.client.clientNonPersonDetails.mainBusinessLineId,t.clientTemplate.clientNonPersonMainBusinessLineOptions,"id","name"))}}function awe(e,o){if(e&1&&(l(0,"div",2)(1,"span",3),c(2),p(3,"translate"),r(),l(4,"span",4),c(5),p(6,"find"),r()()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Constitution")),a(3),h($t(6,4,t.client.clientNonPersonDetails.constitutionId,t.clientTemplate.clientNonPersonConstitutionOptions,"id","name"))}}function rwe(e,o){if(e&1&&(E(0,nwe,7,6,"div",2),l(1,"div",2)(2,"span",3),c(3),p(4,"translate"),r(),l(5,"span",4),c(6),r()(),E(7,owe,7,9,"div",2),E(8,awe,7,9,"div",2),l(9,"div",2)(10,"span",3),c(11),p(12,"translate"),r(),l(13,"span",4),c(14),r()()),e&2){let t=w();I(t.client.clientNonPersonDetails.incorpValidityTillDate?0:-1),a(3),h(m(4,7,"labels.inputs.Incorportation Number")),a(3),h(t.client.clientNonPersonDetails.incorpNumber||"Not Provided"),a(),I(t.client.clientNonPersonDetails.mainBusinessLineId?7:-1),a(),I(t.client.clientNonPersonDetails.constitutionId?8:-1),a(3),h(m(12,9,"labels.inputs.Remarks")),a(3),h(t.client.clientNonPersonDetails.remarks||"N/A")}}function lwe(e,o){if(e&1&&(l(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider"),l(7,"p"),c(8),p(9,"translate"),b(10,"br"),c(11),p(12,"translate"),b(13,"br"),c(14),p(15,"translate"),b(16,"br"),c(17),p(18,"translate"),b(19,"br"),c(20),p(21,"translate"),p(22,"find"),b(23,"br"),c(24),p(25,"translate"),b(26,"br"),c(27),p(28,"translate"),b(29,"br"),c(30),p(31,"translate"),p(32,"find"),b(33,"br"),c(34),p(35,"translate"),p(36,"find"),b(37,"br"),c(38),p(39,"translate"),p(40,"find"),b(41,"br"),c(42),p(43,"translate"),p(44,"dateFormat"),b(45,"br"),r()()),e&2){let t=o.$implicit,n=w(2);a(3),le(" ",t.firstName," ",t.middleName?t.middleName+" "+t.lastName:t.lastName," "),a(2),v(" ",t.relationship," "),a(3),le(" ",m(9,25,"labels.inputs.First Name")," : ",t.firstName),a(3),le(" ",m(12,27,"labels.inputs.Middle Name")," : ",t.middleName),a(3),le(" ",m(15,29,"labels.inputs.Last Name")," : ",t.lastName),a(3),le(" ",m(18,31,"labels.inputs.Qualification")," : ",t.qualification),a(3),le(" ",m(21,33,"labels.inputs.Relationship")," : ",$t(22,35,t.relationshipId,n.clientTemplate.familyMemberOptions.relationshipIdOptions,"id","name")),a(4),le(" ",m(25,40,"labels.inputs.Age")," : ",t.age),a(3),le(" ",m(28,42,"labels.inputs.Is Dependent")," : ",t.isDependent?"Yes":"No"),a(3),le(" ",m(31,44,"labels.inputs.Marital Status")," : ",$t(32,46,t.maritalStatusId,n.clientTemplate.familyMemberOptions.maritalStatusIdOptions,"id","name")),a(4),le(" ",m(35,51,"labels.inputs.Gender")," : ",$t(36,53,t.genderId,n.clientTemplate.familyMemberOptions.genderIdOptions,"id","name")),a(4),le(" ",m(39,58,"labels.inputs.Profession")," : ",$t(40,60,t.professionId,n.clientTemplate.familyMemberOptions.professionIdOptions,"id","name")),a(4),le(" ",m(43,65,"labels.inputs.Date Of Birth")," : ",m(44,67,t.dateOfBirth))}}function swe(e,o){if(e&1&&(l(0,"div",5)(1,"h3",13),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"mat-accordion",14),Se(6,lwe,46,69,"mat-expansion-panel",15,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Family Members")),a(4),we(t.client.familyMembers)}}function cwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Street")," : ",t.street)}}function pwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 1 : ",t.addressLine1)}}function mwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 2 : ",t.addressLine2)}}function dwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Address Line")," 3 : ",t.addressLine3)}}function uwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Town / Village")," : ",t.townVillage)}}function fwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.City")," : ",t.city)}}function hwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.State / Province")," : ",(t=i.getSelectedValue("stateProvinceIdOptions",n.stateProvinceId))==null?null:t.name)}}function gwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t,n=w().$implicit,i=w(2);a(),le("",m(2,2,"labels.inputs.Country")," : ",(t=i.getSelectedValue("countryIdOptions",n.countryId))==null?null:t.name)}}function _we(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Postal Code")," : ",t.postalCode)}}function Cwe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w().$implicit;a(),le("",m(2,2,"labels.inputs.Active Status")," : ",t.isActive)}}function vwe(e,o){if(e&1&&(l(0,"mat-expansion-panel",16)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),r(),l(4,"mat-panel-description"),c(5),r()(),b(6,"mat-divider"),l(7,"p"),E(8,cwe,4,4,"span"),E(9,pwe,4,4,"span"),E(10,mwe,4,4,"span"),E(11,dwe,4,4,"span"),E(12,uwe,4,4,"span"),E(13,fwe,4,4,"span"),E(14,hwe,4,4,"span"),E(15,gwe,4,4,"span"),E(16,_we,4,4,"span"),E(17,Cwe,4,4,"span"),r()()),e&2){let t,n=o.$implicit,i=w(2);a(3),v(" ",(t=i.getSelectedValue("addressTypeIdOptions",n.addressTypeId))==null?null:t.name," "),a(2),v(" ",n.relationship," "),a(3),I(i.isFieldEnabled("street")?8:-1),a(),I(i.isFieldEnabled("addressLine1")?9:-1),a(),I(i.isFieldEnabled("addressLine2")?10:-1),a(),I(i.isFieldEnabled("addressLine3")?11:-1),a(),I(i.isFieldEnabled("townVillage")?12:-1),a(),I(i.isFieldEnabled("city")?13:-1),a(),I(i.isFieldEnabled("stateProvinceId")?14:-1),a(),I(i.isFieldEnabled("countryId")?15:-1),a(),I(i.isFieldEnabled("postalCode")?16:-1),a(),I(i.isFieldEnabled("isActive")?17:-1)}}function xwe(e,o){if(e&1&&(l(0,"div",6)(1,"h3",13),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"mat-accordion",14),Se(6,vwe,18,12,"mat-expansion-panel",16,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Address")),a(4),we(t.client.address)}}var x2=(()=>{class e{constructor(){this.submitEvent=new bi}getSelectedValue(t,n){return this.clientTemplate.address[0][t].find(i=>i.id===n)}isFieldEnabled(t){return this.clientAddressFieldConfig.find(n=>n.field===t)?.isEnabled}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-preview-step"]],inputs:{clientAddressFieldConfig:"clientAddressFieldConfig",clientTemplate:"clientTemplate",client:"client"},outputs:{submitEvent:"submitEvent"},decls:57,vars:58,consts:[[1,"container","p-b-20"],[3,"inset"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill","m-b-20"],[1,"flex-fill","layout-row-wrap","responsive-column"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],[1,"mat-h3","flex-fill"],[1,"flex-fill","m-t-5"],[1,"family-member"],[1,"address"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),b(4,"mat-divider",1),l(5,"div",2)(6,"span",3),c(7),p(8,"translate"),r(),E(9,GSe,2,1,"span",4),E(10,jSe,2,2,"span",4),r(),l(11,"div",2)(12,"span",3),c(13),p(14,"translate"),r(),l(15,"span",4),c(16),p(17,"find"),r()(),l(18,"div",2)(19,"span",3),c(20),p(21,"translate"),r(),l(22,"span",4),c(23),p(24,"find"),r()(),E(25,$Se,7,9,"div",2),E(26,USe,6,4,"div",2),E(27,WSe,6,5,"div",2),E(28,QSe,6,4,"div",2),E(29,YSe,6,4,"div",2),E(30,JSe,7,9,"div",2),E(31,KSe,7,9,"div",2),E(32,XSe,7,9,"div",2),E(33,ZSe,7,6,"div",2),l(34,"div",2)(35,"span",3),c(36),p(37,"translate"),r(),l(38,"span",4),c(39),p(40,"yesNo"),r()(),E(41,ewe,7,6,"div",2),E(42,iwe,8,7),E(43,rwe,15,11),E(44,swe,8,3,"div",5),E(45,xwe,8,3,"div",6),r(),l(46,"div",7)(47,"button",8),b(48,"fa-icon",9),c(49),p(50,"translate"),r(),l(51,"button",10),c(52),p(53,"translate"),r(),l(54,"button",11),R("click",function(){return i.submitEvent.emit()}),c(55),p(56,"translate"),r()()),n&2&&(a(2),h(m(3,29,"labels.heading.General")),a(2),g("inset",!0),a(3),h(m(8,31,"labels.inputs.name")),a(2),I(i.client.legalFormId===2?9:-1),a(),I(i.client.legalFormId===1?10:-1),a(3),h(m(14,33,"labels.inputs.Office")),a(3),h($t(17,35,i.client.officeId,i.clientTemplate.officeOptions,"id","name")),a(4),h(m(21,40,"labels.inputs.Legal Form")),a(3),h($t(24,42,i.client.legalFormId,i.clientTemplate.clientLegalFormOptions,"id","value")),a(2),I(i.client.staffId?25:-1),a(),I(i.client.dateOfBirth?26:-1),a(),I(i.client.externalId?27:-1),a(),I(i.client.mobileNo?28:-1),a(),I(i.client.emailAddress?29:-1),a(),I(i.client.clientTypeId?30:-1),a(),I(i.client.clientClassificationId?31:-1),a(),I(i.client.savingsProductId?32:-1),a(),I(i.client.submittedOnDate?33:-1),a(3),v("",m(37,47,"labels.inputs.Active"),"?"),a(3),h(m(40,49,i.client.active)),a(2),I(i.client.activationDate?41:-1),a(),I(i.client.legalFormId===1?42:-1),a(),I(i.client.legalFormId===2?43:-1),a(),I(i.client.familyMembers.length?44:-1),a(),I(i.clientTemplate.isAddressEnabled&&i.client.address&&i.client.address.length?45:-1),a(4),v(" ",m(50,51,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(57,HSe)),a(),v(" ",m(53,53,"labels.buttons.Cancel")," "),a(3),v(" ",m(56,55,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,xe,Ri,Da,Dr,Pr,Tr,Mr,oc,qi,ke,Pi,he,Qn,po],styles:["h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:2em}.family-member[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.family-member[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.address[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.address[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}"]})}}return e})();var bwe=["clientFamily"],ywe=["clientAddress"],Swe=["dtclient"];function wwe(e,o){e&1&&b(0,"fa-icon",16)}function Pwe(e,o){e&1&&b(0,"fa-icon",16)}function Twe(e,o){e&1&&b(0,"fa-icon",17)}function Mwe(e,o){e&1&&b(0,"fa-icon",18)}function Dwe(e,o){e&1&&b(0,"fa-icon",19)}function Ewe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.GENERAL"))}function Iwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.FAMILY MEMBERS"))}function Owe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ADDRESS"))}function Awe(e,o){if(e&1&&(l(0,"mat-step"),F(1,Owe,2,3,"ng-template",12),b(2,"mifosx-client-address-step",20,2),r()),e&2){let t=w();a(2),g("clientTemplate",t.clientTemplate)("clientAddressFieldConfig",t.clientAddressFieldConfig)}}function Fwe(e,o){if(e&1&&c(0),e&2){let t=w().$implicit;h(t.registeredTableName)}}function kwe(e,o){if(e&1&&(l(0,"mat-step"),F(1,Fwe,1,1,"ng-template",12),b(2,"mifosx-client-datatable-step",21,3),r()),e&2){let t=o.$implicit;a(2),g("datatableData",t)}}function Bwe(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function Rwe(e,o){if(e&1){let t=Y();l(0,"mat-step",15),F(1,Bwe,2,3,"ng-template",12),l(2,"mifosx-client-preview-step",22),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("clientTemplate",t.clientTemplate)("clientAddressFieldConfig",t.clientAddressFieldConfig)("client",t.client)}}var b2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.settingsService=T(Ot),this.datatables=[],this.legalFormType=1,this.route.data.subscribe(t=>{this.clientTemplate=t.clientTemplate,this.clientAddressFieldConfig=t.clientAddressFieldConfig,this.setDatatables()})}get clientGeneralForm(){return this.clientGeneralStep.createClientForm}get client(){return this.clientTemplate.isAddressEnabled?at(at(at({},this.clientGeneralStep.clientGeneralDetails),this.clientFamilyMembersStep.familyMembers),this.clientAddressStep.address):at(at({},this.clientGeneralStep.clientGeneralDetails),this.clientFamilyMembersStep.familyMembers)}areFormvalids(){let t=this.clientGeneralForm.valid;return this.clientTemplate.isAddressEnabled&&(t=t&&this.clientAddressStep.address.address.length>0),this.clientTemplate.datatables&&this.clientTemplate.datatables.length>0&&this.clientDatatables&&this.clientDatatables.forEach(n=>{t=t&&n.datatableForm.valid}),t}setDatatables(){this.datatables=[];let t="person";this.legalFormType===2&&(t="entity"),this.clientTemplate.datatables&&this.clientTemplate.datatables.forEach(n=>{n.entitySubType.toLowerCase()===t&&this.datatables.push(n)})}legalFormChange(t){this.legalFormType=t.legalForm,this.setDatatables()}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.client),{dateFormat:n,locale:t});if(this.clientTemplate.datatables&&this.clientTemplate.datatables.length>0){let s=[];this.clientDatatables.forEach(d=>{s.push(d.payload)}),i.datatables=s}this.clientsService.createClient(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-client"]],viewQuery:function(n,i){if(n&1&&(Ee(Qf,7),Ee(bwe,5),Ee(ywe,5),Ee(Swe,5)),n&2){let s;Te(s=Me())&&(i.clientGeneralStep=s.first),Te(s=Me())&&(i.clientFamilyMembersStep=s.first),Te(s=Me())&&(i.clientAddressStep=s.first),Te(s=Me())&&(i.clientDatatables=s)}},decls:19,vars:6,consts:[["clientStepper",""],["clientFamily",""],["clientAddress",""],["dtclient",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"legalFormChangeEvent","clientTemplate"],[3,"clientTemplate"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"clientTemplate","clientAddressFieldConfig"],[3,"datatableData"],[3,"submitEvent","clientTemplate","clientAddressFieldConfig","client"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"mat-stepper",5,0),F(3,wwe,1,0,"ng-template",6)(4,Pwe,1,0,"ng-template",7)(5,Twe,1,0,"ng-template",8)(6,Mwe,1,0,"ng-template",9)(7,Dwe,1,0,"ng-template",10),l(8,"mat-step",11),F(9,Ewe,2,3,"ng-template",12),l(10,"mifosx-client-general-step",13),R("legalFormChangeEvent",function(u){return V(s),q(i.legalFormChange(u))}),r()(),l(11,"mat-step"),F(12,Iwe,2,3,"ng-template",12),b(13,"mifosx-client-family-members-step",14,1),r(),E(15,Awe,4,2,"mat-step"),Se(16,kwe,4,1,"mat-step",null,Pe),E(18,Rwe,3,3,"mat-step",15),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.clientGeneralForm),a(2),g("clientTemplate",i.clientTemplate),a(3),g("clientTemplate",i.clientTemplate),a(2),I(i.clientTemplate.isAddressEnabled?15:-1),a(),we(i.datatables),a(2),I(i.areFormvalids()?18:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Qf,_2,C2,v2,x2,he],encapsulation:2})}}return e})();var y2=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.paramMap.get("clientId");return this.clientsService.getClientData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var jM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientAccountData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var $M=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientAddressData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var UM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientChargesData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var J9=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientSummary(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var WM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.paramMap.get("clientId");return this.clientsService.getClientFamilyMembers(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var QM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.parent.paramMap.get("clientId"),i=t.parent.paramMap.get("familyMemberId");return this.clientsService.getClientFamilyMember(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Z0=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){return this.clientsService.getClientTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var YM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId"),i;return this.clientsService.getClientIdentifiers(n).pipe(Mn(s=>{i=s;let d=[];return s.forEach(u=>{d.push(this.clientsService.getClientIdentificationDocuments(u.id))}),d0(d).subscribe(u=>{u.forEach((f,_)=>{i[_].documents=f})}),i}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var JM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientNotes(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var KM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientDocuments(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var XM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(){return this.clientsService.getClientDatatables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var ZM=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.paramMap.get("clientId"),i=t.paramMap.get("datatableName");return this.clientsService.getClientDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var e5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getClientIdentifierTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var S2=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(){return this.clientsService.getAddressFieldConfiguration()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var t5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(){return this.clientsService.getClientAddressTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Nwe=()=>[10,20,25];function Lwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Vwe(e,o){if(e&1&&(l(0,"td",15),b(1,"i",16),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,2,!(t.isWaived||t.isPaid))),a(2),v(" ",t.name," ")}}function qwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due as of")))}function zwe(e,o){if(e&1&&(l(0,"td",15),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dueDate))}}function Hwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Due")))}function Gwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function jwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Paid")))}function $we(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountPaid)}}function Uwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Waived")))}function Wwe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountWaived)}}function Qwe(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Outstanding")))}function Ywe(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountOutstanding)}}function Jwe(e,o){e&1&&b(0,"tr",17)}function Kwe(e,o){e&1&&b(0,"tr",18)}var w2=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.displayedColumns=["name","dueAsOf","due","paid","waived","outstanding"],this.route.data.subscribe(t=>{this.chargeOverviewData=t.clientChargesData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new Wt(this.chargeOverviewData.pageItems),this.dataSource.paginator=this.paginator}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-charges-overview"]],viewQuery:function(n,i){if(n&1&&Ee(kt,7),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},decls:27,vars:8,consts:[[1,"charges-card"],[1,"tab-container","mat-typography"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","dueAsOf"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"div",1)(2,"h2"),c(3),p(4,"translate"),r(),l(5,"table",2),X(6,3),F(7,Lwe,3,3,"th",4)(8,Vwe,4,4,"td",5),Z(),X(9,6),F(10,qwe,3,3,"th",4)(11,zwe,3,3,"td",5),Z(),X(12,7),F(13,Hwe,3,3,"th",4)(14,Gwe,2,1,"td",5),Z(),X(15,8),F(16,jwe,3,3,"th",4)(17,$we,2,1,"td",5),Z(),X(18,9),F(19,Uwe,3,3,"th",4)(20,Wwe,2,1,"td",5),Z(),X(21,10),F(22,Qwe,3,3,"th",4)(23,Ywe,2,1,"td",5),Z(),F(24,Jwe,1,0,"tr",11)(25,Kwe,1,0,"tr",12),r(),b(26,"mat-paginator",13),r()()),n&2&&(a(3),h(m(4,5,"labels.heading.Charges Overview")),a(2),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,Nwe)))},dependencies:[ue,co,fe,Ue,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,kt,Pi,he,go],styles:["table[_ngcontent-%COMP%]{width:100%;margin-top:3%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.charges-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%}"]})}}return e})();var i5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.params.clientId;return this.clientsService.getAllClientCharges(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var n5=(()=>{class e{constructor(){this.clientsService=T(Oi),this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("name"),i=t.paramMap.get("clientId")||t.parent.parent.paramMap.get("clientId");switch(n){case"Survey":return this.clientsService.getSurveys(i);case"Take Survey":return this.clientsService.getAllSurveysType();case"Close":return this.clientsService.getClientCommandTemplate("close");case"Reject":return this.clientsService.getClientCommandTemplate("reject");case"Withdraw":return this.clientsService.getClientCommandTemplate("withdraw");case"Transfer Client":return this.clientsService.getOffices();case"Add Charge":return this.clientsService.getClientChargeTemplate(i);case"Create Collateral":return this.productsService.getCollaterals();case"Client Screen Reports":return this.clientsService.getClientReportTemplates();case"Assign Staff":case"Update Default Savings":return this.clientsService.getClientDataAndTemplate(i);case"Undo Transfer":case"Accept Transfer":case"Reject Transfer":return this.clientsService.getClientTransferProposalDate(i);default:return}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var o5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.parent.paramMap.get("clientId"),i=t.paramMap.get("chargeId");return this.clientsService.getSelectedChargeData(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var a5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.parent.parent.paramMap.get("clientId"),i=t.paramMap.get("chargeId");return this.clientsService.getClientTransactionPay(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var r5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.paramMap.get("clientId");return this.clientsService.getClientDataAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var l5=(()=>{class e{constructor(){this.clientsService=T(Oi)}resolve(t){let n=t.parent.paramMap.get("clientId");return this.clientsService.getCollateralTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Xwe=[_o.withShell([{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:"",component:IC},{path:"create",data:{title:"Create Client",breadcrumb:"Create Client",routeParamBreadcrumb:!1},component:b2,resolve:{clientAddressFieldConfig:S2,clientTemplate:Z0}},{path:":clientId",component:qC,data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:y2,clientTemplateData:Z0,clientDatatables:XM},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:zC,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{clientAccountsData:jM,clientChargesData:UM,clientCollateralData:l5}},{path:"address",component:YC,data:{title:"Address",breadcrumb:"Address",routeParamBreadcrumb:!1},resolve:{clientAddressFieldConfig:S2,clientAddressTemplateData:t5,clientAddressData:$M}},{path:"family-members",data:{title:"Family Members",breadcrumb:"Family Members",routeParamBreadcrumb:!1},children:[{path:"",component:HC,resolve:{clientFamilyMembers:WM}},{path:"add",component:GC,data:{title:"Add",breadcrumb:"Add",routeParamBreadcrumb:!1},resolve:{clientTemplate:Z0}},{path:":familyMemberId",children:[{path:"edit",component:jC,data:{title:"Family Member View",routeParamBreadcrumb:"familyMemberId"},resolve:{clientTemplate:Z0,editFamilyMember:QM}}]}]},{path:"identities",component:$C,data:{title:"Identities",breadcrumb:"Identities",routeParamBreadcrumb:!1},resolve:{clientIdentities:YM,clientIdentifierTemplate:e5}},{path:"documents",component:WC,data:{title:"Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{clientDocuments:KM}},{path:"notes",component:UC,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{clientNotes:JM}},{path:"datatables",children:[{path:":datatableName",component:QC,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{clientDatatable:ZM}}]}]}]},{path:"clients",data:{title:"Clients",breadcrumb:"Clients",routeParamBreadcrumb:!1},children:[{path:":clientId",data:{title:"Clients View",routeParamBreadcrumb:"clientId"},resolve:{clientViewData:y2},children:[{path:"edit",data:{title:"Edit Client",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:g2,resolve:{clientDataAndTemplate:r5}},{path:"actions/:name",data:{title:"Client Actions",routeParamBreadcrumb:"name"},component:u2,resolve:{clientActionData:n5}},{path:"charges",children:[{path:"overview",data:{title:"Charges Overview",breadcrumb:"Charges Overview"},component:w2,resolve:{clientChargesData:i5}},{path:":chargeId",data:{title:"Charges",routeParamBreadcrumb:"chargeId"},children:[{path:"",component:f2,resolve:{clientChargeData:o5}},{path:"pay",data:{title:"Pay Charge",routeParamBreadcrumb:!1},component:h2,resolve:{transactionData:a5}}]}]},{path:"loans-accounts",loadChildren:()=>import("./loans.module-NGQPIAPW.js").then(e=>e.LoansModule)},{path:"client-collateral",loadChildren:()=>import("./collaterals.module-OS5YELGC.js").then(e=>e.CollateralsModule)},{path:"fixed-deposits-accounts",loadChildren:()=>import("./fixed-deposits.module-LDALWSJB.js").then(e=>e.FixedDepositsModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-BWCLPAVJ.js").then(e=>e.SavingsModule)},{path:"recurring-deposits-accounts",loadChildren:()=>import("./recurring-deposits.module-TS72WU3A.js").then(e=>e.RecurringDepositsModule)},{path:"shares-accounts",loadChildren:()=>import("./shares.module-JMFI4QBM.js").then(e=>e.SharesModule)},{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-3HW2IDTS.js").then(e=>e.AccountTransfersModule)}]}]}])],K9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[y2,jM,$M,UM,J9,WM,QM,Z0,YM,JM,KM,XM,ZM,e5,S2,t5,i5,n5,o5,a5,r5,l5],imports:[gn.forChild(Xwe),gn]})}}return e})();var Zwe=e=>({editForm:e}),X9=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po)}ngOnInit(){this.createNoteForm()}createNoteForm(){this.noteForm=this.formBuilder.group({note:[this.data.noteContent,ce.required]})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-notes-dialog"]],decls:15,vars:14,consts:[["formRef","ngForm"],["mat-dialog-title",""],[3,"formGroup"],["formControlName","note","matInput","","placeholder","Write a note ...."],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"disabled","mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",1),c(1),p(2,"translate"),r(),l(3,"div")(4,"form",2,0)(6,"mat-form-field"),b(7,"textarea",3),r(),l(8,"mat-dialog-actions",4)(9,"button",5),c(10),p(11,"translate"),r(),l(12,"button",6),c(13),p(14,"translate"),r()()()()),n&2&&(a(),h(m(2,6,"labels.heading.Edit Note")),a(3),g("formGroup",i.noteForm),a(6),h(m(11,8,"labels.buttons.Cancel")),a(2),g("disabled",i.noteForm.pristine)("mat-dialog-close",Nt(12,Zwe,i.noteForm)),a(),v(" ",m(14,10,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Fe,ze,xe,Wn,Nn,Un,he],encapsulation:2})}}return e})();var Z9=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,K9,ha,Er,IC,qC,zC,HC,GC,jC,$C,Ug,UC,X9,WC,QC,YC,w2,u2,JC,OC,KC,XC,ZC,e2,t2,p2,i2,n2,o2,a2,r2,l2,s2,c2,f2,h2,RC,AC,NC,LC,m2,g2,b2,Qf,_2,x2,C2,Yf,VC,d2,v2]})}}return e})();var P2=class{constructor(o){this.groupsService=o,this.groupsSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getGroups(o,t="",n="",i=0,s=10,d=!0){this.groupsSubject.next([]),this.groupsService.getGroups(o,t,n,i*s,s).subscribe(u=>{u.pageItems=d?u.pageItems.filter(f=>f.active):u.pageItems,this.recordsSubject.next(u.totalFilteredRecords),this.groupsSubject.next(u.pageItems)})}connect(o){return this.groupsSubject.asObservable()}disconnect(o){this.groupsSubject.complete(),this.recordsSubject.complete()}};var ePe=["showClosedGroups"],tPe=()=>["../","organization","bulk-import","Groups"],iPe=()=>[10,25,50,100],nPe=()=>["create"],oPe=e=>[e,"general"];function aPe(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,nPe)),a(2),v("",m(3,2,"labels.buttons.Create Group")," "))}function rPe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function lPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function sPe(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account")," #"))}function cPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function pPe(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function mPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function dPe(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function uPe(e,o){if(e&1&&(l(0,"td",25)(1,"div",27),p(2,"statusLookup"),b(3,"fa-icon",28),r()()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,1,t.status.code))}}function fPe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function hPe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function gPe(e,o){e&1&&b(0,"tr",29)}function _Pe(e,o){if(e&1&&b(0,"tr",30),e&2){let t=o.$implicit;g("routerLink",Nt(1,oPe,t.id))}}var T2=(()=>{class e{constructor(){this.groupsService=T(On),this.name=new it,this.displayedColumns=["name","accountNo","externalId","status","officeName"],this.filterGroupsBy=[{type:"name",value:""}]}ngOnInit(){this.getGroups()}ngAfterViewInit(){this.name.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"name")})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadGroupsPage())).subscribe()}changeShowClosedGroups(){this.loadGroupsPage()}loadGroupsPage(){this.sort.direction||delete this.sort.active,this.dataSource.getGroups(this.filterGroupsBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize,!this.showClosedGroups.checked)}applyFilter(t,n){this.paginator.pageIndex=0;let i=this.filterGroupsBy.findIndex(s=>s.type===n);this.filterGroupsBy[i].value=t,this.loadGroupsPage()}getGroups(){this.dataSource=new P2(this.groupsService),this.dataSource.getGroups(this.filterGroupsBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-app-groups"]],viewQuery:function(n,i){if(n&1&&(Ee(ePe,7),Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.showClosedGroups=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:19,consts:[["showClosedGroups",""],[1,"container"],[1,"layout-column","layout-gt-sm-row","align-gt-sm-start-center"],[1,"search-box","m-r-30"],[1,"search-box"],["matInput","","placeholder","Search by Name",3,"formControl"],["labelPosition","after",1,"m-r-10",3,"change"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","download",1,"m-r-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-table","","matSort","",1,"bordered-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accountNo"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","externalId"],["matColumnDef","status"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["icon","plus",1,"m-r-20"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"ngClass"],["icon","stop"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4),b(4,"input",5),r(),l(5,"mat-checkbox",6,0),R("change",function(){return V(s),q(i.changeShowClosedGroups())}),c(7),p(8,"translate"),r()(),l(9,"div",7)(10,"button",8),b(11,"fa-icon",9),c(12),p(13,"translate"),r(),F(14,aPe,4,5,"button",10),r()(),l(15,"table",11),X(16,12),F(17,rPe,3,3,"th",13)(18,lPe,2,1,"td",14),Z(),X(19,15),F(20,sPe,3,3,"th",16)(21,cPe,2,1,"td",14),Z(),X(22,17),F(23,pPe,3,3,"th",16)(24,mPe,2,1,"td",14),Z(),X(25,18),F(26,dPe,3,3,"th",16)(27,uPe,4,3,"td",14),Z(),X(28,19),F(29,fPe,3,3,"th",13)(30,hPe,2,1,"td",14),Z(),F(31,gPe,1,0,"tr",20)(32,_Pe,1,3,"tr",21),r(),b(33,"mat-paginator",22),p(34,"async"),r()}n&2&&(a(4),g("formControl",i.name),a(3),h(m(8,11,"labels.inputs.Show Closed Groups")),a(3),g("routerLink",oe(17,tPe)),a(2),v("",m(13,13,"labels.buttons.Import Group")," "),a(2),g("mifosxHasPermission","CREATE_GROUP"),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("length",m(34,15,i.dataSource==null?null:i.dataSource.records$))("pageSize",10)("pageSizeOptions",oe(18,iPe)))},dependencies:[ue,co,fe,st,$e,_n,Oe,Ue,Fe,ze,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he,go],styles:[".container[_ngcontent-%COMP%]{padding:24px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px;flex-wrap:nowrap;gap:20px}.container[_ngcontent-%COMP%] .layout-column.align-gt-sm-start-center[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row.align-gt-sm-start-center[_ngcontent-%COMP%]{align-items:center;justify-content:flex-start}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;flex:1;min-width:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:200px;flex:1}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%]{width:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0;margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:25px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%]{width:100%;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;margin-top:16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;border-bottom:1px solid #e0e0e0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #f0f0f0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.container[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;margin-top:0}.container[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:0}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:16px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;margin-right:0!important;margin-bottom:15px;flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:150px;margin-bottom:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:0;width:100%;justify-content:center}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:15px}}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.m-r-10[_ngcontent-%COMP%]{margin-right:10px!important}.m-r-20[_ngcontent-%COMP%]{margin-right:20px!important}.m-r-30[_ngcontent-%COMP%]{margin-right:30px!important}"]})}}return e})();var CPe=()=>({confirm:!0}),M2=(()=>{class e{constructor(){this.dialogRef=T(eo)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-unassign-staff-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"p"),c(5),p(6,"translate"),r()(),l(7,"mat-dialog-actions",2)(8,"button",3),c(9),p(10,"translate"),r(),l(11,"button",4),c(12),p(13,"translate"),r()()),n&2&&(a(),h(m(2,5,"labels.heading.Unassign Role")),a(4),v("",m(6,7,"labels.text.Unassign staff for this group")," ?"),a(4),h(m(10,9,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",oe(13,CPe)),a(),v(" ",m(13,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var vPe=()=>["./general"],xPe=()=>["./committee"],bPe=()=>["savings-accounts","create"],yPe=()=>["loans-accounts","create"],SPe=()=>["loans-accounts","glim-account","create"],wPe=()=>["savings-accounts","gsim-account","create"],PPe=()=>["./notes"],TPe=e=>["./datatables",e];function MPe(e,o){if(e&1&&(l(0,"span")(1,"b"),c(2),p(3,"translate"),r(),c(4),p(5,"dateFormat"),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Closure Date")," :"),a(2),v(" ",m(5,4,t.groupViewData.timeline.closedOnDate)," ")}}function DPe(e,o){if(e&1){let t=Y();l(0,"i",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Edit Meeting"))}),r()}}function EPe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,DPe,1,0,"i",29),b(6,"br"),c(7),p(8,"translate"),p(9,"lowercase"),r()()),e&2){let t=w();a(2),le(" ",m(3,5,"labels.inputs.Next Meeting on"),": ",m(4,7,t.groupViewData.collectionMeetingCalendar==null?null:t.groupViewData.collectionMeetingCalendar.nextTenRecurringDates[0])," "),a(3),I(t.editMeeting?5:-1),a(2),le(" ",m(8,9,"labels.inputs.Meeting Frequency"),": ",m(9,11,t.groupViewData.collectionMeetingCalendar==null?null:t.groupViewData.collectionMeetingCalendar.frequency.value)," ")}}function IPe(e,o){e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"translate"),b(5,"i",31)(6,"br"),c(7),p(8,"translate"),p(9,"translate"),r()()),e&2&&(a(2),le(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.inputs.Unassigned")," "),a(5),le(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.inputs.N/A")," "))}function OPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Activate"))}),l(1,"mat-icon",33),b(2,"fa-icon",34),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Activate")))}function APe(e,o){e&1&&(l(0,"span"),F(1,OPe,6,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_GROUP"))}function FPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Edit"))}),l(1,"mat-icon",33),b(2,"fa-icon",35),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Edit")))}function kPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Transfer Clients"))}),l(1,"mat-icon",33),b(2,"fa-icon",36),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Transfer Clients")))}function BPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Manage Members"))}),l(1,"mat-icon",33),b(2,"fa-icon",37),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Manage Members")))}function RPe(e,o){if(e&1&&(l(0,"button",24)(1,"mat-icon",33),b(2,"fa-icon",38),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2){w();let t=ve(55);g("matMenuTriggerFor",t),a(4),h(m(5,2,"labels.buttons.Applications"))}}function NPe(e,o){e&1&&(l(0,"button",40),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.buttons.Bulk JLG Loan Application")," "))}function LPe(e,o){e&1&&(l(0,"span"),F(1,NPe,3,3,"button",39),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function VPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,bPe)),a(),v(" ",m(2,2,"labels.buttons.Group Saving Application")," "))}function qPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,yPe)),a(),v(" ",m(2,2,"labels.buttons.Group Loan Application")," "))}function zPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,SPe)),a(),v(" ",m(2,2,"labels.buttons.GLIM Application")," "))}function HPe(e,o){e&1&&(l(0,"span"),F(1,zPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_LOAN"))}function GPe(e,o){e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,wPe)),a(),v(" ",m(2,2,"labels.buttons.GSIM Application")," "))}function jPe(e,o){e&1&&(l(0,"span"),F(1,GPe,3,5,"button",25),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_GSIMACCOUNT"))}function $Pe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function UPe(e,o){e&1&&(l(0,"span"),F(1,$Pe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function WPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function QPe(e,o){e&1&&(l(0,"span"),F(1,WPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function YPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function JPe(e,o){e&1&&(l(0,"span"),F(1,YPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function KPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function XPe(e,o){e&1&&(l(0,"span"),F(1,KPe,3,3,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function ZPe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function eTe(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){V(t);let i=w();return q(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function tTe(e,o){if(e&1&&(l(0,"a",27,6),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,PPe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function iTe(e,o){if(e&1&&(l(0,"a",27,7),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,TPe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function nTe(e,o){if(e&1&&(l(0,"span"),F(1,iTe,3,5,"a",28),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var D2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.groupViewData=t.groupViewData,this.groupDatatables=t.groupDatatables})}doAction(t){switch(t){case"Assign Staff":case"Close":case"Activate":case"Attach Meeting":case"Attendance":case"Manage Members":case"Transfer Clients":if(this.router.navigate([`actions/${t}`],{relativeTo:this.route}),t==="Activate"){let i=this.getGeneralTabComponent();i&&i.refreshAccounts(this.groupViewData.id)}break;case"Edit Meeting":let n={calendarId:this.groupViewData.collectionMeetingCalendar.id};this.router.navigate([`actions/${t}`],{relativeTo:this.route,queryParams:n});break;case"Edit":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Unassign Staff":this.unassignStaff();break;case"Delete":this.deleteGroup();break}}getGeneralTabComponent(){return null}get editMeeting(){return!!(this.groupViewData.collectionMeetingCalendar&&this.groupViewData.collectionMeetingCalendar.entityType.value==="GROUPS"&&this.groupViewData.hierarchy==="."+this.groupViewData.id+".")}reload(){let t=this.router.url;this.router.navigateByUrl("/groups",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}unassignStaff(){this.dialog.open(M2).afterClosed().subscribe(n=>{n.confirm&&this.groupsService.executeGroupCommand(this.groupViewData.id,"unassignStaff",{staffId:this.groupViewData.staffId}).subscribe(()=>{this.reload()})})}deleteGroup(){this.dialog.open(vi,{data:{deleteContext:`group with id: ${this.groupViewData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.groupsService.deleteGroup(this.groupViewData.id).subscribe(()=>{this.router.navigate(["/groups"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-groups-view"]],decls:88,vars:67,consts:[["groupMenu","matMenu"],["AccountApplications","matMenu"],["More","matMenu"],["general","routerLinkActive"],["committee","routerLinkActive"],["tabPanel",""],["notes","routerLinkActive"],["datatable","routerLinkActive"],[1,"group-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","","src","assets/images/group_placeholder.png",1,"profile-image"],[1,"mat-typography","group-card-title"],[1,"make-flex"],[1,"flex-95"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"flex-5","flex-xs-15","flex-sm-10","flex-md-5"],["mat-icon-button","","aria-label","Group actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],[1,"flex-45"],[1,"group-meeting","flex-45","align-start-start"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-menu-item","",3,"routerLink",4,"mifosxHasPermission"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[1,"fa","fa-edit"],[1,"fa","fa-edit",3,"click"],[1,"fa","fa-calendar"],["mat-menu-item","",3,"click"],["matListIcon",""],["icon","checkSign","size","sm"],["icon","edit","size","sm"],["icon","users","size","sm"],["icon","user","size","sm"],["icon","money-bill-alt","size","sm"],["mat-menu-item","",4,"mifosxHasPermission"],["mat-menu-item",""],["mat-menu-item","",3,"routerLink"]],template:function(n,i){if(n&1&&(l(0,"mat-card",8)(1,"mat-card-header",9)(2,"mat-card-title-group",10)(3,"div",11)(4,"div"),b(5,"img",12),r()(),l(6,"div",13)(7,"mat-card-title",14)(8,"h3",15),b(9,"i",16),p(10,"statusLookup"),c(11),p(12,"translate"),r(),l(13,"div",17)(14,"button",18)(15,"mat-icon",19),b(16,"fa-icon",20),r()()()(),l(17,"mat-card-subtitle",14)(18,"div",21)(19,"b"),c(20),p(21,"translate"),r(),c(22),l(23,"b"),c(24),p(25,"translate"),r(),c(26),l(27,"b"),c(28),p(29,"translate"),r(),c(30),b(31,"br"),l(32,"b"),c(33),p(34,"translate"),r(),c(35),b(36,"br"),l(37,"b"),c(38),p(39,"translate"),r(),c(40),p(41,"dateFormat"),b(42,"br"),E(43,MPe,6,6,"span"),r(),l(44,"div",22),E(45,EPe,10,13,"div")(46,IPe,10,12,"div"),r()()(),l(47,"mat-menu",null,0),E(49,APe,2,1,"span"),F(50,FPe,6,3,"button",23)(51,kPe,6,3,"button",23)(52,BPe,6,3,"button",23),E(53,RPe,6,4,"button",24),l(54,"mat-menu",null,1),E(56,LPe,2,1,"span"),F(57,VPe,3,5,"button",25)(58,qPe,3,5,"button",25),E(59,HPe,2,1,"span"),E(60,jPe,2,1,"span"),r(),l(61,"button",24),c(62),p(63,"translate"),r(),l(64,"mat-menu",null,2),E(66,UPe,2,1,"span"),E(67,QPe,2,1,"span"),E(68,JPe,2,1,"span"),E(69,XPe,2,1,"span"),F(70,ZPe,3,3,"button",23)(71,eTe,3,3,"button",23),r()()()(),l(72,"mat-card-content")(73,"nav",26)(74,"a",27,3),c(76),p(77,"translate"),r(),F(78,tTe,4,6,"a",28),l(79,"a",27,4),c(81),p(82,"translate"),r(),Se(83,nTe,2,1,"span",null,Pe),r(),l(85,"mat-tab-nav-panel",null,5),b(87,"router-outlet"),r()()()),n&2){let s=ve(48),d=ve(65),u=ve(75),f=ve(80),_=ve(86);a(9),g("ngClass",m(10,43,i.groupViewData.status.code))("matTooltip",i.groupViewData.status.value),a(2),le(" ",m(12,45,"labels.heading.Group Name")," : ",i.groupViewData.name," "),a(3),g("matMenuTriggerFor",s),a(6),v("",m(21,47,"labels.inputs.Group")," :"),a(2),v(" ",i.groupViewData.name," | "),a(2),v("",m(25,49,"labels.inputs.Center Name"),":"),a(2),v(" ",i.groupViewData.centerName," | "),a(2),v("",m(29,51,"labels.inputs.Staff"),":"),a(2),v(" ",i.groupViewData.staffName||"Unassigned"),a(3),v("",m(34,53,"labels.inputs.Office Name")," :"),a(2),v(" ",i.groupViewData.officeName),a(3),v("",m(39,55,"labels.inputs.Activation Date")," :"),a(2),v(" ",i.groupViewData.activationDate?m(41,57,i.groupViewData.activationDate):"Not Activated"),a(3),I(i.groupViewData.active?-1:43),a(2),I(i.groupViewData.collectionMeetingCalendar?45:46),a(4),I(i.groupViewData.status.value!=="Active"?49:-1),a(),g("mifosxHasPermission","UPDATE_GROUP"),a(),g("mifosxHasPermission","ASSOCIATECLIENTS_GROUP"),a(),g("mifosxHasPermission","TRANSFERCLIENTS_GROUP"),a(),I(i.groupViewData.active?53:-1),a(3),I(i.groupViewData.clientMembers?56:-1),a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"),a(),g("mifosxHasPermission","CREATE_LOAN"),a(),I(i.groupViewData.clientMembers?59:-1),a(),I(i.groupViewData.clientMembers?60:-1),a(),g("matMenuTriggerFor",d),a(),h(m(63,59,"labels.buttons.More")),a(4),I(i.groupViewData.collectionMeetingCalendar?66:-1),a(),I(i.groupViewData.staffId?-1:67),a(),I(i.groupViewData.staffId?68:-1),a(),I(!(i.groupViewData.centerId||i.groupViewData.collectionMeetingCalendar)&&i.groupViewData.status.value==="Active"?69:-1),a(),g("mifosxHasPermission","CLOSE_GROUP"),a(),g("mifosxHasPermission","DELETE_GROUP"),a(2),g("tabPanel",_),a(),g("routerLink",oe(65,vPe))("active",u.isActive),a(2),v(" ",m(77,61,"labels.inputs.General")," "),a(2),g("mifosxHasPermission","READ_GROUPNOTE"),a(),g("routerLink",oe(66,xPe))("active",f.isActive),a(2),v(" ",m(82,63,"labels.inputs.Committee")," "),a(2),we(i.groupDatatables)}},dependencies:[ue,co,fe,Oe,Ue,Je,Ke,sa,Wr,x0,Qo,si,wi,nc,Yo,ke,Cl,ic,tc,nr,or,Na,ar,ra,xg,Pi,he,go],styles:[".group-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.group-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}.group-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.group-card[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .group-card-title[_ngcontent-%COMP%]{color:#fff;width:90%}.group-card[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .group-card-title[_ngcontent-%COMP%] mat-card-subtitle[_ngcontent-%COMP%]{color:#fff}.group-card[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%]{margin:1%}.group-card[_ngcontent-%COMP%] .profile-image-container[_ngcontent-%COMP%] .profile-image[_ngcontent-%COMP%]{object-fit:cover;border-radius:20px}.group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%]{align-self:flex-end;width:100%}.group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#0a6aac}.group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .group-card[_ngcontent-%COMP%] .group-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff;padding:0 10px}.group-card[_ngcontent-%COMP%] .group-actions[_ngcontent-%COMP%]{align-self:flex-end;margin:0 1%}.group-card[_ngcontent-%COMP%] .group-actions[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{margin-bottom:2px;margin-right:4px}.group-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.make-flex[_ngcontent-%COMP%]{display:flex}"]})}}return e})();var oTe=e=>["/clients",e,"general"],eN=e=>["../","loans-accounts",e,"general"],aTe=e=>["../","savings-accounts","gsim-account",e],rTe=e=>["../","loans-accounts","glim-account",e],lTe=e=>["../","savings-accounts",e,"actions","Deposit"],sTe=e=>["../","savings-accounts",e,"actions","Withdrawal"],cTe=e=>["../","savings-accounts",e,"actions","Approve"],pTe=e=>["../","savings-accounts",e,"actions","Undo Approval"],mTe=e=>["../","savings-accounts",e,"actions","Activate"],tN=e=>["../","savings-accounts",e,"transactions"];function dTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function uTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code))("matTooltip",t.status.value),a(2),v(" ",t.displayName," ")}}function fTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function hTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function gTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function _Te(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function CTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.JLG Loan Application")))}function vTe(e,o){e&1&&(l(0,"div",14)(1,"button",15),b(2,"i",16),p(3,"translate"),r()()),e&2&&(a(2),g("matTooltip",Le(m(3,2,"tooltips.New Loan Application"))))}function xTe(e,o){if(e&1&&(l(0,"td",12),E(1,vTe,4,4,"div",14),r()),e&2){let t=o.$implicit;a(),I(t.status.code!=="clientStatusType.closed"?1:-1)}}function bTe(e,o){e&1&&b(0,"tr",17)}function yTe(e,o){if(e&1&&b(0,"tr",18),e&2){let t=o.$implicit;g("routerLink",Nt(1,oTe,t.id))}}function STe(e,o){if(e&1&&(l(0,"div")(1,"h3"),c(2),p(3,"translate"),r(),l(4,"table",2),X(5,3),F(6,dTe,3,3,"th",4)(7,uTe,4,5,"td",5),Z(),X(8,6),F(9,fTe,3,3,"th",4)(10,hTe,2,1,"td",5),Z(),X(11,7),F(12,gTe,3,3,"th",4)(13,_Te,2,1,"td",5),Z(),X(14,8),F(15,CTe,3,3,"th",4)(16,xTe,2,1,"td",5),Z(),F(17,bTe,1,0,"tr",9)(18,yTe,1,3,"tr",10),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Client Members")),a(2),g("dataSource",t.groupClientMembers),a(13),g("matHeaderRowDef",t.clientMemberColumns),a(),g("matRowDefColumns",t.clientMemberColumns)}}function wTe(e,o){if(e&1){let t=Y();l(0,"div",21)(1,"button",22),R("click",function(){V(t);let i=w(2);return q(i.toggleLoanAccountsOverview())}),c(2),r()()}if(e&2){let t=w(2);a(2),v(" ",t.showClosedLoanAccounts?"View Active Accounts":"View Closed Accounts"," ")}}function PTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function TTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code))("matTooltip",t.inArrears?"Active Overdue":t.status.value),a(2),v(" ",t.accountNo," ")}}function MTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Account")))}function DTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function ETe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function ITe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.originalLoan)}}function OTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function ATe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"currency"),r()),e&2){let t=o.$implicit;a(),v(" ",$t(2,1,t.loanBalance,(t.currency==null?null:t.currency.code)||"USD","symbol","1.2-2")," ")}}function FTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function kTe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"currency"),r()),e&2){let t=o.$implicit;a(),v(" ",$t(2,1,t.amountPaid,(t.currency==null?null:t.currency.code)||"USD","symbol","1.2-2")," ")}}function BTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function RTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",30),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")("matTooltip",t.loanType.value==="Individual"?"Individual":"Group")}}function NTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function LTe(e,o){e&1&&(l(0,"button",31),b(1,"i",32),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Make Repayment"))))}function VTe(e,o){e&1&&(l(0,"button",31),b(1,"i",33),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Approve"))))}function qTe(e,o){e&1&&(l(0,"button",31),b(1,"i",34),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Disburse"))))}function zTe(e,o){e&1&&(l(0,"button",31),b(1,"i",35),p(2,"translate"),r()),e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Transfer Funds"))))}function HTe(e,o){if(e&1&&(l(0,"td",12),E(1,LTe,3,4,"button",31),E(2,VTe,3,4,"button",31),E(3,qTe,3,4,"button",31),E(4,zTe,3,4,"button",31),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.pendingApproval?2:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&!t.status.overpaid?3:-1),a(),I(!t.status.pendingApproval&&!t.status.active&&t.status.overpaid?4:-1)}}function GTe(e,o){e&1&&b(0,"tr",17)}function jTe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,eN,t.id))}}function $Te(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,PTe,3,3,"th",4)(4,TTe,4,5,"td",5),Z(),X(5,23),F(6,MTe,3,3,"th",4)(7,DTe,2,1,"td",5),Z(),X(8,24),F(9,ETe,3,3,"th",4)(10,ITe,2,1,"td",5),Z(),X(11,25),F(12,OTe,3,3,"th",4)(13,ATe,3,6,"td",5),Z(),X(14,26),F(15,FTe,3,3,"th",4)(16,kTe,3,6,"td",5),Z(),X(17,27),F(18,BTe,3,3,"th",4)(19,RTe,2,2,"td",5),Z(),X(20,28),F(21,NTe,3,3,"th",4)(22,HTe,5,4,"td",5),Z(),F(23,GTe,1,0,"tr",9)(24,jTe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ft(1,3,t.loanAccounts,"loan")),a(23),g("matHeaderRowDef",t.openLoansColumns),a(),g("matRowDefColumns",t.openLoansColumns)}}function UTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function WTe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.inArrears?"status-active-overdue":m(2,3,t.status.code))("matTooltip",t.inArrears?"Active Overdue":t.status.value),a(2),v(" ",t.accountNo," ")}}function QTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Account")))}function YTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function JTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function KTe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function XTe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Balance")))}function ZTe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanBalance)}}function e4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Paid")))}function t4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function i4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function n4e(e,o){if(e&1&&(l(0,"td",12),b(1,"i",30),r()),e&2){let t=o.$implicit;a(),g("ngClass",t.loanType.value==="Individual"?"fa-user":"fa-group")("matTooltip",t.loanType.value==="Individual"?"Individual":"Group")}}function o4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function a4e(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function r4e(e,o){e&1&&b(0,"tr",17)}function l4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,eN,t.id))}}function s4e(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,UTe,3,3,"th",4)(4,WTe,4,5,"td",5),Z(),X(5,23),F(6,QTe,3,3,"th",4)(7,YTe,2,1,"td",5),Z(),X(8,24),F(9,JTe,3,3,"th",4)(10,KTe,3,3,"td",5),Z(),X(11,25),F(12,XTe,3,3,"th",4)(13,ZTe,2,1,"td",5),Z(),X(14,26),F(15,e4e,3,3,"th",4)(16,t4e,2,1,"td",5),Z(),X(17,27),F(18,i4e,3,3,"th",4)(19,n4e,2,2,"td",5),Z(),X(20,37),F(21,o4e,3,3,"th",4)(22,a4e,3,3,"td",5),Z(),F(23,r4e,1,0,"tr",9)(24,l4e,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",yr(1,3,t.loanAccounts,"loan","closed")),a(23),g("matHeaderRowDef",t.closedLoansColumns),a(),g("matRowDefColumns",t.closedLoansColumns)}}function c4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()(),E(6,wTe,3,1,"div",21),p(7,"accountsFilter"),r(),E(8,$Te,25,6,"table",2),E(9,s4e,25,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Loan Accounts")),a(2),I(yr(7,6,t.loanAccounts,"loan","closed").length?6:-1),a(2),I(t.showClosedLoanAccounts?-1:8),a(),I(t.showClosedLoanAccounts?9:-1)}}function p4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GSIM Id")))}function m4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.gsimId," ")}}function d4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function u4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function f4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product")))}function h4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.childGSIMAccounts[0].productName)}}function g4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function _4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentBalance)}}function C4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function v4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.savingsStatus)}}function x4e(e,o){e&1&&b(0,"tr",17)}function b4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,aTe,t.accountNumber))}}function y4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()()(),l(6,"table",2),X(7,38),F(8,p4e,3,3,"th",4)(9,m4e,2,1,"td",5),Z(),X(10,39),F(11,d4e,3,3,"th",4)(12,u4e,2,1,"td",5),Z(),X(13,40),F(14,f4e,3,3,"th",4)(15,h4e,2,1,"td",5),Z(),X(16,41),F(17,g4e,3,3,"th",4)(18,_4e,2,1,"td",5),Z(),X(19,42),F(20,C4e,3,3,"th",4)(21,v4e,2,1,"td",5),Z(),F(22,x4e,1,0,"tr",9)(23,b4e,1,3,"tr",29),r()()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.GSIM Account Overview")),a(2),g("dataSource",t.gsimAccounts),a(16),g("matHeaderRowDef",t.gsimAccountsColumns),a(),g("matRowDefColumns",t.gsimAccountsColumns)}}function S4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GLIM Id")))}function w4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.glimId," ")}}function P4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function T4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNumber)}}function M4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product")))}function D4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.childGLIMAccounts[0].productName)}}function E4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Original Loan")))}function I4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentPrincipalAmount)}}function O4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function A4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanStatus)}}function F4e(e,o){e&1&&b(0,"tr",17)}function k4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,rTe,t.glimId))}}function B4e(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()()(),l(6,"table",2),X(7,43),F(8,S4e,3,3,"th",4)(9,w4e,2,1,"td",5),Z(),X(10,39),F(11,P4e,3,3,"th",4)(12,T4e,2,1,"td",5),Z(),X(13,40),F(14,M4e,3,3,"th",4)(15,D4e,2,1,"td",5),Z(),X(16,24),F(17,E4e,3,3,"th",4)(18,I4e,2,1,"td",5),Z(),X(19,42),F(20,O4e,3,3,"th",4)(21,A4e,2,1,"td",5),Z(),F(22,F4e,1,0,"tr",9)(23,k4e,1,3,"tr",29),r()()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.GLIM Loans Account Overview")),a(2),g("dataSource",t.glimAccounts),a(16),g("matHeaderRowDef",t.glimAccountsColumns),a(),g("matRowDefColumns",t.glimAccountsColumns)}}function R4e(e,o){if(e&1){let t=Y();l(0,"button",22),R("click",function(){V(t);let i=w(2);return q(i.toggleSavingAccountsOverview())}),c(1),r()}if(e&2){let t=w(2);a(),v(" ",t.showClosedSavingAccounts?"View Active Accounts":"View Closed Accounts"," ")}}function N4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function L4e(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code))("matTooltip",t.status.value),a(2),v(" ",t.accountNo," ")}}function V4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Saving Account")))}function q4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function z4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Active")))}function H4e(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lastActiveTransactionDate))}}function G4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function j4e(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function $4e(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function U4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",49),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,lTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function W4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",50),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,sTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function Q4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",33),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,cTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function Y4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",51),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,pTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Undo Approval")))}}function J4e(e,o){if(e&1){let t=Y();l(0,"button",48),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",52),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,mTe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Activate")))}}function K4e(e,o){if(e&1&&(l(0,"td",12),E(1,U4e,3,7,"button",47),E(2,W4e,3,7,"button",47),E(3,Q4e,3,7,"button",47),E(4,Y4e,3,7,"button",47),E(5,J4e,3,7,"button",47),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.active?2:-1),a(),I(t.status.submittedAndPendingApproval?3:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?4:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?5:-1)}}function X4e(e,o){e&1&&b(0,"tr",17)}function Z4e(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function eMe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,N4e,3,3,"th",4)(4,L4e,4,5,"td",5),Z(),X(5,45),F(6,V4e,3,3,"th",4)(7,q4e,2,1,"td",5),Z(),X(8,46),F(9,z4e,3,3,"th",4)(10,H4e,3,3,"td",5),Z(),X(11,41),F(12,G4e,3,3,"th",4)(13,j4e,2,1,"td",5),Z(),X(14,28),F(15,$4e,3,3,"th",4)(16,K4e,6,5,"td",5),Z(),F(17,X4e,1,0,"tr",9)(18,Z4e,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",Ft(1,3,t.savingAccounts,"saving")),a(17),g("matHeaderRowDef",t.openSavingsColumns),a(),g("matRowDefColumns",t.openSavingsColumns)}}function tMe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account No"),"."))}function iMe(e,o){if(e&1&&(l(0,"td",12),b(1,"i",13),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,3,t.status.code))("matTooltip",t.status.value),a(2),v(" ",t.accountNo," ")}}function nMe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Saving Account")))}function oMe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function aMe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closed Date")))}function rMe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.closedOnDate))}}function lMe(e,o){e&1&&b(0,"tr",17)}function sMe(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,tN,t.id))}}function cMe(e,o){if(e&1&&(l(0,"table",2),p(1,"accountsFilter"),X(2,6),F(3,tMe,3,3,"th",4)(4,iMe,4,5,"td",5),Z(),X(5,45),F(6,nMe,3,3,"th",4)(7,oMe,2,1,"td",5),Z(),X(8,37),F(9,aMe,3,3,"th",4)(10,rMe,3,3,"td",5),Z(),F(11,lMe,1,0,"tr",9)(12,sMe,1,3,"tr",29),r()),e&2){let t=w(2);g("dataSource",yr(1,3,t.savingAccounts,"saving","closed")),a(11),g("matHeaderRowDef",t.closedSavingsColumns),a(),g("matRowDefColumns",t.closedSavingsColumns)}}function pMe(e,o){if(e&1&&(l(0,"div")(1,"div",19)(2,"div",20)(3,"h3"),c(4),p(5,"translate"),r()(),l(6,"div",21),E(7,R4e,2,1,"button",44),p(8,"accountsFilter"),r()(),E(9,eMe,19,6,"table",2),E(10,cMe,13,7,"table",2),r()),e&2){let t=w();a(4),h(m(5,4,"labels.heading.Saving Accounts")),a(3),I(yr(8,6,t.savingAccounts,"saving","closed").length?7:-1),a(2),I(t.showClosedSavingAccounts?-1:9),a(),I(t.showClosedSavingAccounts?10:-1)}}var E2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.clientMemberColumns=["Name","Account No","Office","JLG Loan Application"],this.openLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Actions"],this.closedLoansColumns=["Account No","Loan Account","Original Loan","Loan Balance","Amount Paid","Type","Closed Date"],this.openSavingsColumns=["Account No","Saving Account","Last Active","Balance","Actions"],this.closedSavingsColumns=["Account No","Saving Account","Closed Date"],this.gsimAccountsColumns=["GSIM Id","Account Number","Product","Balance","Status"],this.glimAccountsColumns=["GLIM Id","Account Number","Product","Original Loan","Status"],this.showClosedLoanAccounts=!1,this.showClosedSavingAccounts=!1,this.route.data.subscribe(t=>{this.glimAccounts=t.glimData,this.gsimAccounts=t.gsimData,this.groupAccountData=t.groupAccountsData,this.savingAccounts=t.groupAccountsData.savingsAccounts,this.loanAccounts=t.groupAccountsData.loanAccounts,this.groupSummary=t.groupSummary[0]}),this.route.parent.data.subscribe(t=>{this.groupClientMembers=t.groupViewData.clientMembers})}refreshAccounts(t){this.groupsService.getGroupAccountsData(t).subscribe(n=>{this.groupAccountData=n,this.savingAccounts=n.savingsAccounts,this.loanAccounts=n.loanAccounts})}toggleLoanAccountsOverview(){this.showClosedLoanAccounts=!this.showClosedLoanAccounts}toggleSavingAccountsOverview(){this.showClosedSavingAccounts=!this.showClosedSavingAccounts}routeEdit(t){t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:34,vars:36,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","group-details-container","m-b-30"],["mat-table","",1,"mat-elevation-z1","m-b-30",3,"dataSource"],["matColumnDef","Name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Account No"],["matColumnDef","Office"],["matColumnDef","JLG Loan Application"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"m-l-30"],["mat-raised-button","","color","primary","disabled","",1,"account-action-button"],[1,"fa","fa-plus",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"layout-row","align-start","table-header"],[1,"m-b-10"],[1,"action-button","m-b-10"],["mat-raised-button","","color","primary",1,"f-right",3,"click"],["matColumnDef","Loan Account"],["matColumnDef","Original Loan"],["matColumnDef","Loan Balance"],["matColumnDef","Amount Paid"],["matColumnDef","Type"],["matColumnDef","Actions"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],[1,"fa","fa-large",3,"ngClass","matTooltip"],["mat-raised-button","","color","primary",1,"account-action-button"],[1,"fa","fa-dollar",3,"matTooltip"],[1,"fa","fa-check",3,"matTooltip"],[1,"fa","fa-flag",3,"matTooltip"],[1,"fa","fa-exchange",3,"matTooltip"],["mat-row","",3,"routerLink"],["matColumnDef","Closed Date"],["matColumnDef","GSIM Id"],["matColumnDef","Account Number"],["matColumnDef","Product"],["matColumnDef","Balance"],["matColumnDef","Status"],["matColumnDef","GLIM Id"],["mat-raised-button","","color","primary",1,"f-right"],["matColumnDef","Saving Account"],["matColumnDef","Last Active"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-arrow-up",3,"matTooltip"],[1,"fa","fa-arrow-down",3,"matTooltip"],[1,"fa","fa-undo",3,"matTooltip"],[1,"fa","fa-check-circle",3,"matTooltip"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h3"),c(2),p(3,"translate"),r(),l(4,"div",1)(5,"p"),c(6),p(7,"translate"),b(8,"br"),c(9),p(10,"translate"),b(11,"br"),c(12),p(13,"translate"),b(14,"br"),r(),l(15,"p"),c(16),p(17,"translate"),b(18,"br"),c(19),p(20,"translate"),b(21,"br"),c(22),p(23,"translate"),b(24,"br"),r(),l(25,"p"),c(26),p(27,"translate"),b(28,"br"),r()(),E(29,STe,19,6,"div"),E(30,c4e,10,10,"div"),E(31,y4e,24,6,"div"),E(32,B4e,24,6,"div"),E(33,pMe,11,10,"div"),r()),n&2&&(a(2),h(m(3,20,"labels.heading.Group Details")),a(4),le(" ",m(7,22,"labels.inputs.Active Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeClientLoans),a(3),le(" ",m(10,24,"labels.inputs.Active Client Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeClientBorrowers),a(3),le(" ",m(13,26,"labels.inputs.Active Overdue Client Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueClientLoans),a(4),le(" ",m(17,28,"labels.inputs.Active Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupLoans),a(3),le(" ",m(20,30,"labels.inputs.Active Group Borrowers"),": ",i.groupSummary==null?null:i.groupSummary.activeGroupBorrowers),a(3),le(" ",m(23,32,"labels.inputs.Active Overdue Group Loans"),": ",i.groupSummary==null?null:i.groupSummary.overdueGroupLoans),a(4),le("",m(27,34,"labels.inputs.Active Clients"),": ",i.groupSummary==null?null:i.groupSummary.activeClients),a(3),I(i.groupClientMembers?29:-1),a(),I(i.loanAccounts?30:-1),a(),I(i.gsimAccounts?31:-1),a(),I(i.glimAccounts?32:-1),a(),I(i.savingAccounts?33:-1))},dependencies:[ue,co,fe,Oe,xe,_t,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,Sg,Pi,he,go,os],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var I2=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Wo),this.groupsService=T(On),this.entityId=this.route.parent.snapshot.params.groupId,this.addNote=this.addNote.bind(this)}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.route.data.subscribe(n=>{this.entityNotes=n.groupNotes})}addNote(t){this.groupsService.createGroupNote(this.entityId,t).subscribe(n=>{this.entityNotes.push({id:n.resourceId,createdByUsername:this.username,createdOn:new Date,note:t.note})})}editNote(t,n,i){this.groupsService.editGroupNote(this.entityId,t,n).subscribe(()=>{this.entityNotes[i].note=n.note})}deleteNote(t,n){this.groupsService.deleteGroupNote(this.entityId,t).subscribe(()=>{this.entityNotes.splice(n,1)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-notes-tab",0),n&2&&g("entityId",i.entityId)("entityNotes",i.entityNotes)("callbackAdd",i.addNote)("callbackEdit",i.editNote)("callbackDelete",i.deleteNote)},dependencies:[ue,fe,E0],encapsulation:2})}}return e})();var mMe=()=>({confirm:!0}),O2=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-unassign-role-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"p"),c(5),p(6,"translate"),r()(),l(7,"mat-dialog-actions",2)(8,"button",3),c(9),p(10,"translate"),r(),l(11,"button",4),c(12),p(13,"translate"),r()()),n&2&&(a(),h(m(2,6,"labels.heading.Unassign Role")),a(4),le("",m(6,8,"labels.text.Unassign role for client member"),": ",i.data.id," ?"),a(4),h(m(10,10,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",oe(14,mMe)),a(),v(" ",m(13,12,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var dMe=["rolesTable"],uMe=()=>["add-role"];function fMe(e,o){e&1&&(l(0,"button",6),b(1,"i",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,uMe)),a(2),v("\xA0 ",m(3,2,"labels.buttons.Add")," "))}function hMe(e,o){e&1&&(l(0,"div",4),F(1,fMe,4,5,"button",5),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNROLE_GROUP"))}function gMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function _Me(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientName)}}function CMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Role")))}function vMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.role.name)}}function xMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Id")))}function bMe(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.clientId)}}function yMe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function SMe(e,o){if(e&1){let t=Y();l(0,"button",20),R("click",function(){V(t);let i=w(2).$implicit,s=w(2);return q(s.unassignRole(i.clientId,i.id))}),b(1,"i",21),p(2,"translate"),r()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Unassign"))))}function wMe(e,o){e&1&&(l(0,"span"),F(1,SMe,3,4,"button",19),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNROLE_GROUP"))}function PMe(e,o){if(e&1&&(l(0,"td",18),E(1,wMe,2,1,"span"),r()),e&2){let t=w(2);a(),I(t.groupStatus!=="Closed"?1:-1)}}function TMe(e,o){e&1&&b(0,"tr",22)}function MMe(e,o){e&1&&b(0,"tr",23)}function DMe(e,o){if(e&1&&(l(0,"div")(1,"table",8,0),X(3,9),F(4,gMe,3,3,"th",10)(5,_Me,2,1,"td",11),Z(),X(6,12),F(7,CMe,3,3,"th",10)(8,vMe,2,1,"td",11),Z(),X(9,13),F(10,xMe,3,3,"th",10)(11,bMe,2,1,"td",11),Z(),X(12,14),F(13,yMe,3,3,"th",10)(14,PMe,2,1,"td",11),Z(),F(15,TMe,1,0,"tr",15)(16,MMe,1,0,"tr",16),r()()),e&2){let t=w();a(),g("dataSource",t.groupRolesData),a(14),g("matHeaderRowDef",t.groupRolesColumns),a(),g("matRowDefColumns",t.groupRolesColumns)}}var A2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.dialog=T(Ht),this.groupRolesColumns=["Name","Role","Client Id","Actions"],this.route.parent.data.subscribe(t=>{this.groupViewData=t.groupViewData,this.groupRolesData=this.groupViewData.groupRoles,this.groupStatus=this.groupViewData.status.value})}unassignRole(t,n){this.dialog.open(O2,{data:{id:t}}).afterClosed().subscribe(s=>{if(s.confirm){let d=this.groupRolesData.findIndex(u=>u.clientId===t);this.groupRolesData.splice(d,1),this.rolesTableRef.renderRows(),this.groupsService.unAssignRoleCommand(this.groupViewData.id,n).subscribe(()=>{})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-committee-tab"]],viewQuery:function(n,i){if(n&1&&Ee(dMe,5),n&2){let s;Te(s=Me())&&(i.rolesTableRef=s.first)}},decls:8,vars:5,consts:[["rolesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-10","gap-25px"],["mat-raised-button","","class","f-right","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"f-right",3,"routerLink"],[1,"fa","fa-plus"],["mat-table","",1,"mat-elevation-z1","m-b-25",3,"dataSource"],["matColumnDef","Name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Role"],["matColumnDef","Client Id"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click"],[1,"fa","fa-ban",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),c(4),p(5,"translate"),r()(),E(6,hMe,2,1,"div",4),r(),E(7,DMe,17,3,"div"),r()),n&2&&(a(4),h(m(5,3,"labels.heading.Client Members")),a(2),I(i.groupStatus!=="Closed"?6:-1),a(),I(i.groupRolesData?7:-1))},dependencies:[ue,fe,Oe,xe,Ke,_t,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var EMe=()=>["../"];function IMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Group Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function AMe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function FMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kMe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function BMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function RMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function NMe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",10),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",22)(5,"mat-datepicker-toggle",12)(6,"mat-datepicker",null,2),E(8,RMe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.groupForm.value.submittedOnDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.groupForm.controls.activationDate.hasError("required")?8:-1)}}function LMe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.displayName," ")}}function VMe(e,o){if(e&1){let t=Y();l(0,"div",18)(1,"div",23)(2,"div",24),c(3),p(4,"translate"),r(),l(5,"button",25),R("click",function(){V(t);let i=w();return q(i.addClient())}),b(6,"fa-icon",26),r()(),l(7,"div",27)(8,"div",28),c(9),p(10,"translate"),r(),l(11,"div",28),c(12),r()(),l(13,"div",27)(14,"div",28),c(15),p(16,"translate"),r(),l(17,"div",28),c(18),r()(),l(19,"div",27)(20,"div",28),c(21),p(22,"translate"),r(),l(23,"div",28),c(24),r()()()}if(e&2){let t=w();a(3),h(m(4,7,"labels.inputs.Client Details")),a(6),h(m(10,9,"labels.inputs.name")),a(3),h(t.clientChoice.value.displayName),a(3),h(m(16,11,"labels.inputs.Id")),a(3),h(t.clientChoice.value.id),a(3),h(m(22,13,"labels.inputs.Office")),a(3),h(t.clientChoice.value.officeName)}}function qMe(e,o){if(e&1){let t=Y();l(0,"div",30)(1,"span",31),c(2),r(),l(3,"button",32),R("click",function(){let i=V(t).$index,s=w(2);return q(s.removeClient(i))}),b(4,"fa-icon",33),r()()}if(e&2){let t=o.$implicit;a(2),h(t.displayName)}}function zMe(e,o){if(e&1&&(l(0,"mat-nav-list")(1,"h3",29),c(2),p(3,"translate"),r(),Se(4,qMe,5,1,"div",30,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Selected Clients")),a(2),we(t.clientMembers)}}var F2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.clientsService=T(Oi),this.groupService=T(On),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.clientsData=[],this.clientMembers=[],this.clientChoice=new it(""),this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createGroupForm()}ngAfterViewInit(){this.clientChoice.valueChanges.subscribe(t=>{t.length>=2&&this.clientsService.getFilteredClients("displayName","ASC",!0,t,this.groupForm.get("officeId").value).subscribe(n=>{this.clientsData=n.pageItems})})}createGroupForm(){this.groupForm=this.formBuilder.group({name:["",[ce.required,ce.pattern("(^[A-z]).*")]],officeId:["",ce.required],submittedOnDate:[this.settingsService.businessDate,ce.required],staffId:[""],externalId:[""],active:[!1]}),this.buildDependencies()}buildDependencies(){this.groupForm.get("officeId").valueChanges.subscribe(t=>{this.groupService.getStaff(t).subscribe(n=>{this.staffData=n.staffOptions,this.staffData===void 0?this.groupForm.controls.staffId.disable():this.groupForm.controls.staffId.enable()})}),this.groupForm.get("active").valueChanges.subscribe(t=>{t?this.groupForm.addControl("activationDate",new it("",ce.required)):this.groupForm.removeControl("activationDate")})}addClient(){this.clientMembers.includes(this.clientChoice.value)||this.clientMembers.push(this.clientChoice.value)}removeClient(t){this.clientMembers.splice(t,1)}displayClient(t){return t?t.displayName:void 0}submit(){let t=this.groupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.groupForm.value.submittedOnDate,d=this.groupForm.value.activationDate;t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(s,i)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});u.clientMembers=[],this.clientMembers.forEach(f=>u.clientMembers.push(f.id)),this.groupService.createGroup(u).subscribe(f=>{this.router.navigate(["../groups",f.resourceId,"general"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-group"]],decls:64,vars:45,consts:[["submittedOnDatePicker",""],["clientsAutocomplete","matAutocomplete"],["activationDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],["formControlName","staffId"],[3,"click"],["matInput","","required","","formControlName","submittedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","active"],["matInput","","formControlName","externalId"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[1,"layout-row"],[1,"mat-table"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],["matSubheader",""],["mat-list-item",""],["matLine",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),E(10,IMe,7,9,"mat-error"),E(11,OMe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",7),Se(17,AMe,2,2,"mat-option",8,Pe),r(),E(19,FMe,7,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",9),Se(25,kMe,2,2,"mat-option",8,Pe),r()(),l(27,"mat-form-field",10),R("click",function(){V(s);let u=ve(34);return q(u.open())}),l(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",11)(32,"mat-datepicker-toggle",12)(33,"mat-datepicker",null,0),E(35,BMe,7,9,"mat-error"),r(),l(36,"mat-checkbox",13),c(37),p(38,"translate"),r(),E(39,NMe,9,8,"mat-form-field"),l(40,"mat-form-field")(41,"mat-label"),c(42),p(43,"translate"),r(),b(44,"input",14),r(),l(45,"mat-form-field")(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"input",15),r()(),l(50,"mat-autocomplete",16,1),Se(52,LMe,2,2,"mat-option",8,Pe),r(),l(54,"div",17),E(55,VMe,25,15,"div",18),E(56,zMe,6,3,"mat-nav-list"),r()(),l(57,"mat-card-actions",19)(58,"button",20),c(59),p(60,"translate"),r(),l(61,"button",21),R("click",function(){return V(s),q(i.submit())}),c(62),p(63,"translate"),r()()()()()}if(n&2){let s=ve(34),d=ve(51);a(2),g("formGroup",i.groupForm),a(5),h(m(8,26,"labels.inputs.name")),a(3),I(i.groupForm.controls.name.hasError("required")?10:-1),a(),I(i.groupForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,28,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.groupForm.controls.officeId.hasError("required")?19:-1),a(3),h(m(23,30,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(30,32,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupForm.controls.submittedOnDate.hasError("required")?35:-1),a(2),v(" ",m(38,34,"labels.inputs.Active")," "),a(2),I(i.groupForm.controls.active.value?39:-1),a(3),h(m(43,36,"labels.inputs.External id")),a(5),h(m(48,38,"labels.inputs.Add Clients")),a(2),g("formControl",i.clientChoice)("matAutocomplete",d),a(),g("displayWith",i.displayClient),a(2),we(i.clientsData),a(3),I(i.clientChoice.value?55:-1),a(),I(i.clientMembers.length?56:-1),a(2),g("routerLink",oe(44,EMe)),a(),v(" ",m(60,40,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.groupForm.valid),a(),v(" ",m(63,42,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,er,Za,wi,ke,pa,Ep,ca,he],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.mat-table[_ngcontent-%COMP%]{display:block;font-family:Tahoma,Verdana,sans-serif;width:50%}.mat-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;min-height:48px;padding:0 24px}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word}"]})}}return e})();var k2=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("groupId"),this.route.data.subscribe(t=>{this.entityDatatable=t.groupDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Group",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var HMe=()=>["../"];function GMe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function jMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Client Member")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Me(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function UMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Role")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function WMe(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.groupsAddRoleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}var B2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.groupAndTemplateData=t.groupAndTemplateData})}ngOnInit(){this.clientMemberData=this.groupAndTemplateData.activeClientMembers,this.roleData=this.groupAndTemplateData.availableRoles,this.createGroupsAddRoleForm()}createGroupsAddRoleForm(){this.groupsAddRoleForm=this.formBuilder.group({clientId:["",ce.required],role:["",ce.required]})}submit(){this.groupsService.executeGroupCommand(this.groupAndTemplateData.id,"assignRole",this.groupsAddRoleForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-role"]],decls:26,vars:15,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["formControlName","clientId"],[3,"value"],["formControlName","role"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,GMe,2,2,"mat-option",4,Pe),r(),E(12,jMe,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,$Me,2,2,"mat-option",4,Pe),r(),E(20,UMe,7,9,"mat-error"),r()()(),l(21,"mat-card-actions",6)(22,"button",7),c(23),p(24,"translate"),r(),F(25,WMe,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.groupsAddRoleForm),a(5),h(m(8,8,"labels.inputs.Client")),a(3),we(i.clientMemberData),a(2),I(i.groupsAddRoleForm.controls.clientId.hasError("required")?12:-1),a(3),h(m(16,10,"labels.inputs.Role")),a(3),we(i.roleData),a(2),I(i.groupsAddRoleForm.controls.role.hasError("required")?20:-1),a(2),g("routerLink",oe(14,HMe)),a(),v(" ",m(24,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","ASSIGNROLE_GROUP"))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var QMe=()=>["../../"];function YMe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function JMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var R2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.groupData=t.groupActionData})}ngOnInit(){this.staffData=this.groupData.staffOptions,this.createGroupAssignStaffForm()}createGroupAssignStaffForm(){this.groupAssignStaffForm=this.formBuilder.group({staffId:[""]})}submit(){this.groupsService.executeGroupCommand(this.groupData.id,"assignStaff",this.groupAssignStaffForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-assign-staff"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","staffId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,YMe,2,2,"mat-option",5,Pe),r(),E(12,JMe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.groupAssignStaffForm),a(5),h(m(8,7,"labels.inputs.Staff")),a(3),we(i.staffData),a(2),I(i.groupAssignStaffForm.controls.staffId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,QMe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.groupAssignStaffForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var KMe=()=>["../../"];function XMe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZMe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function e5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var N2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.closureData=t.groupActionData.closureReasons}),this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseGroupForm()}createCloseGroupForm(){this.closeGroupForm=this.formBuilder.group({closureDate:["",ce.required],closureReasonId:["",ce.required]})}submit(){let t=this.closeGroupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.closeGroupForm.value.closureDate;t.closureDate instanceof Date&&(t.closureDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.groupsService.executeGroupCommand(this.groupId,"close",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-close-group"]],decls:29,vars:22,consts:[["closureDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closureDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","closureReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,XMe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,ZMe,2,2,"mat-option",9,Pe),r(),E(21,e5e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),l(26,"button",12),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.closeGroupForm),a(5),h(m(8,13,"labels.inputs.Closed On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.closeGroupForm.controls.closureDate.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Closure Reason")),a(3),we(i.closureData),a(2),I(i.closeGroupForm.controls.closureReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(21,KMe)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.closeGroupForm.valid),a(),v(" ",m(28,19,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var t5e=()=>["../../"];function i5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var L2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateGroupForm()}createActivateGroupForm(){this.activateGroupForm=this.formBuilder.group({activationDate:["",ce.required]})}submit(){let t=this.activateGroupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.activateGroupForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.groupsService.executeGroupCommand(this.groupId,"activate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-activate-group"]],decls:20,vars:18,consts:[["activationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,i5e,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.activateGroupForm),a(4),h(m(7,11,"labels.inputs.Activated On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.activateGroupForm.controls.activationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,t5e)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.activateGroupForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var n5e=()=>["../../"];function o5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function a5e(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function r5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function l5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,a5e,2,2,"mat-option",12,Pe),r(),E(7,r5e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Frequency")),a(3),we(t.frequencyOptions),a(2),I(t.groupMeetingForm.controls.frequency.hasError("repeatsOnDay")?7:-1)}}function s5e(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function c5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function p5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",13),Se(5,s5e,2,2,"mat-option",12,Pe),r(),E(7,c5e,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Interval")),a(3),we(t.repetitionIntervals),a(2),I(t.groupMeetingForm.controls.interval.hasError("repeatsOnDay")?7:-1)}}function m5e(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function d5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function u5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),Se(5,m5e,2,2,"mat-option",12,Pe),r(),E(7,d5e,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.groupMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}function f5e(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.groupMeetingForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var V2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.groupActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createGroupMeetingForm(),this.buildDependencies()}createGroupMeetingForm(){this.groupMeetingForm=this.formBuilder.group({startDate:["",ce.required],repeating:[!1]})}buildDependencies(){this.groupMeetingForm.get("repeating").valueChanges.subscribe(t=>{t?(this.groupMeetingForm.addControl("frequency",new it),this.groupMeetingForm.addControl("interval",new it),this.groupMeetingForm.get("frequency").valueChanges.subscribe(n=>{switch(this.groupMeetingForm.removeControl("repeatsOnDay"),n){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.groupMeetingForm.addControl("repeatsOnDay",new it("",ce.required));break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.groupMeetingForm.patchValue({frequency:1,interval:"1"})):(this.groupMeetingForm.removeControl("frequency"),this.groupMeetingForm.removeControl("interval"))})}submit(){let t=this.groupMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`groups_${this.groupId}_CollectionMeeting`,d=t.repeating?"1":"4",u=this.groupMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{title:s,typeId:d,dateFormat:i,locale:n});this.groupsService.createGroupMeeting(this.groupId,f).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-attach-group-meeting"]],decls:25,vars:21,consts:[["startDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","repeating",1,"m-t-10","m-b-10"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],["formControlName","repeatsOnDay","required",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,o5e,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,l5e,8,4,"mat-form-field"),E(18,p5e,8,4,"mat-form-field"),E(19,u5e,8,4,"mat-form-field"),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),F(24,f5e,3,4,"button",10),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.groupMeetingForm),a(5),h(m(8,14,"labels.inputs.Meeting Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupMeetingForm.controls.startDate.hasError("required")?13:-1),a(2),v(" ",m(16,16,"labels.inputs.Repeats"),"? "),a(2),I(i.groupMeetingForm.contains("frequency")?17:-1),a(),I(i.groupMeetingForm.contains("interval")?18:-1),a(),I(i.groupMeetingForm.contains("repeatsOnDay")?19:-1),a(2),g("routerLink",oe(20,n5e)),a(),v(" ",m(23,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var h5e=()=>["../../"];function g5e(e,o){if(e&1&&(l(0,"mat-option",16),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function _5e(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function C5e(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),h($t(2,1,t.clientId,n.membersData,"id","displayName"))}}function v5e(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attendance")))}function x5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function b5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function y5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function S5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function w5e(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function P5e(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,x5e,3,3,"span",20)(2,b5e,3,3,"span",20)(3,y5e,3,3,"span",20)(4,S5e,3,3,"span",20)(5,w5e,3,3,"span",20),l(6,"button",21),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editAttendance(i))}),b(7,"fa-icon",22),r()()}if(e&2){let t=o.$implicit;g("ngSwitch",t.attendanceType),a(),g("ngSwitchCase",1),a(),g("ngSwitchCase",2),a(),g("ngSwitchCase",3),a(),g("ngSwitchCase",4),a(),g("ngSwitchCase",5)}}function T5e(e,o){e&1&&b(0,"tr",23)}function M5e(e,o){e&1&&b(0,"tr",24)}function D5e(e,o){if(e&1){let t=Y();l(0,"button",25),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var q2=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.groupsService=T(On),this.dialog=T(Ht),this.settingsService=T(Ot),this.displayedColumns=["name","attendance"],this.meetingDate=new it,this.route.data.subscribe(t=>{this.groupData=t.groupActionData,this.membersData=t.groupActionData.clientMembers})}ngOnInit(){this.dataSource=this.membersData.map(t=>({clientId:t.id,attendanceType:1})),this.meetingDates=this.groupData.collectionMeetingCalendar.recurringDates.filter(t=>new Date(t).getTime(){this.attendanceTypeOptions=t.attendanceTypeOptions})}editAttendance(t){let n=[new $i({controlName:"attendanceType",label:"Attendance",value:t.attendanceType,options:{label:"value",value:"id",data:this.attendanceTypeOptions},required:!1})],i={title:"Assign Member Attendance",layout:{addButtonText:"Confirm"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=at(at({},t),d.data.value);this.dataSource.splice(this.dataSource.indexOf(t),1,u),this.dataSource=this.dataSource.concat([])}})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=new Date(this.meetingDate.value),s={meetingDate:this.dateUtils.formatDate(i,n),calendarId:this.groupData.collectionMeetingCalendar.id,clientsAttendance:this.dataSource,dateFormat:n,locale:t};this.groupsService.assignGroupAttendance(this.groupData.id,this.groupData.collectionMeetingCalendar.id,s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-attendance"]],decls:26,vars:20,consts:[[1,"container"],[1,"layout-column","gap-3percent"],[1,"flex-fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","attendance"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),F(7,g5e,3,4,"mat-option",4),r(),l(8,"mat-hint"),c(9),p(10,"translate"),p(11,"dateFormat"),r()(),l(12,"table",5),X(13,6),F(14,_5e,3,3,"th",7)(15,C5e,3,6,"td",8),Z(),X(16,9),F(17,v5e,3,3,"th",7)(18,P5e,8,6,"td",10),Z(),F(19,T5e,1,0,"tr",11)(20,M5e,1,0,"tr",12),r(),l(21,"mat-card-actions",13)(22,"button",14),c(23),p(24,"translate"),r(),F(25,D5e,3,3,"button",15),r()()()),n&2&&(a(4),h(m(5,11,"labels.inputs.Meeting Date")),a(2),g("formControl",i.meetingDate),a(),g("ngForOf",i.meetingDates),a(2),le("",m(10,13,"labels.inputs.Next Meeting on"),": ",m(11,15,i.groupData.collectionMeetingCalendar.nextTenRecurringDates[0])),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(19,h5e)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))},dependencies:[ue,ts,Ks,Xs,fe,$e,_n,Oe,Ue,Et,Fe,Be,qa,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function E5e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.displayName," ")}}function I5e(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"span",17),c(2),r(),b(3,"div",18),l(4,"button",19),p(5,"translate"),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.removeClient(d,s))}),b(6,"fa-icon",20),r()()}if(e&2){let t=o.$implicit;a(2),h(t.displayName),a(2),g("matTooltip",Le(m(5,3,"tooltips.Remove Client from Group")))}}function O5e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,I5e,7,5,"div",16,Pe),r()),e&2){let t=w();a(),we(t.clientMembers)}}var z2=(()=>{class e{constructor(){this.route=T(Ie),this.groupsService=T(On),this.clientsService=T(Oi),this.dialog=T(Ht),this.clientsData=[],this.clientMembers=[],this.clientChoice=new it(""),this.route.data.subscribe(t=>{this.groupData=t.groupActionData,this.clientMembers=t.groupActionData.clientMembers||[]})}ngAfterViewInit(){this.clientChoice.valueChanges.subscribe(t=>{t.length>=2&&this.clientsService.getFilteredClients("displayName","ASC",!0,t,this.groupData.officeId).subscribe(n=>{this.clientsData=n.pageItems})})}addClient(){this.clientMembers.includes(this.clientChoice.value)||this.groupsService.executeGroupCommand(this.groupData.id,"associateClients",{clientMembers:[this.clientChoice.value.id]}).subscribe(()=>{this.clientMembers.push(this.clientChoice.value)})}removeClient(t,n){this.dialog.open(vi,{data:{deleteContext:`client member: ${n.displayName}`}}).afterClosed().subscribe(s=>{s.delete&&this.groupsService.executeGroupCommand(this.groupData.id,"disassociateClients",{clientMembers:[n.id]}).subscribe(()=>{this.clientMembers.splice(t,1)})})}displayClient(t){return t?t.displayName:void 0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-group-members"]],decls:41,vars:25,consts:[["clientsAutocomplete","matAutocomplete"],[1,"container","layout-row","gap-3percent"],[1,"client-card","layout-column","flex","gap-2px"],[1,"flex-30"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[3,"value"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],[1,"flex-50"],["matSubheader",""],["mat-list-item",""],["matLine","",1,"p-t-10"],[1,"flex-fill"],["mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),r(),l(7,"mat-autocomplete",5,0),Se(9,E5e,2,2,"mat-option",6,Pe),r(),l(11,"div",7)(12,"div",8)(13,"div",9),c(14),p(15,"translate"),r(),l(16,"button",10),R("click",function(){return V(s),q(i.addClient())}),b(17,"fa-icon",11),r()(),l(18,"div",12)(19,"div",13),c(20),p(21,"translate"),r(),l(22,"div",13),c(23),r()(),l(24,"div",12)(25,"div",13),c(26),p(27,"translate"),r(),l(28,"div",13),c(29),r()(),l(30,"div",12)(31,"div",13),c(32),p(33,"translate"),r(),l(34,"div",13),c(35),r()()()(),l(36,"mat-card",14)(37,"h3",15),c(38),p(39,"translate"),r(),E(40,O5e,3,0,"mat-nav-list"),r()()}if(n&2){let s=ve(8);a(4),h(m(5,13,"labels.inputs.Add Clients")),a(2),g("formControl",i.clientChoice)("matAutocomplete",s),a(),g("displayWith",i.displayClient),a(2),we(i.clientsData),a(5),h(m(15,15,"labels.inputs.Client Details")),a(6),h(m(21,17,"labels.inputs.name")),a(3),h(i.clientChoice.value.displayName),a(3),h(m(27,19,"labels.inputs.Id")),a(3),h(i.clientChoice.value.id),a(3),h(m(33,21,"labels.inputs.Office")),a(3),h(i.clientChoice.value.officeName),a(3),h(m(39,23,"labels.heading.Client Members")),a(2),I(i.clientMembers!=null&&i.clientMembers.length?40:-1)}},dependencies:[ue,fe,st,$e,_n,Ue,Fe,Be,ze,ft,er,Za,wi,ke,Ep,pa,ca,si,he],styles:[".container[_ngcontent-%COMP%]{max-width:70rem}.container[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%]{display:block;font-family:Roboto,Helvetica Neue,sans-serif;width:100%;margin-top:-2rem;padding:1.5rem}.container[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--border-color-light, #eee);color:var(--text-color, inherit);font-weight:500;align-items:center;min-height:48px;padding:0 24px}.container[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word;flex-direction:column}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{padding-left:0;margin-bottom:0;font-weight:500;border-bottom:2px solid var(--border-color-light, #eee)}.container[_ngcontent-%COMP%] .p-t-10[_ngcontent-%COMP%]{font-weight:500;margin-left:1rem}.container[_ngcontent-%COMP%] .client-card[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{max-height:20rem;margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{left:0}.container[_ngcontent-%COMP%] .flex-fill[_ngcontent-%COMP%]{margin-top:.5rem;display:inline;font-weight:500}"]})}}return e})();var A5e=()=>["../../"];function F5e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function k5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function B5e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function R5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repeition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N5e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function L5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function V5e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,N5e,2,2,"mat-option",8,Pe),r(),E(7,L5e,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.groupEditMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}function q5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function z5e(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.groupEditMeetingForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var H2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.groupActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditGroupMeetingForm(),this.buildDependencies()}createEditGroupMeetingForm(){this.groupEditMeetingForm=this.formBuilder.group({startDate:["",ce.required],frequency:["",ce.required],interval:["",ce.required]})}buildDependencies(){this.groupEditMeetingForm.get("frequency").valueChanges.subscribe(t=>{switch(this.groupEditMeetingForm.removeControl("repeatsOnDay"),t){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.groupEditMeetingForm.addControl("repeatsOnDay",new it("",ce.required)),this.groupEditMeetingForm.get("repeatsOnDay").patchValue(this.calendarTemplate.repeatsOnDay.id);break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.groupEditMeetingForm.patchValue({startDate:this.calendarTemplate.startDate&&new Date(this.calendarTemplate.startDate),frequency:this.calendarTemplate.frequency.id,interval:`${this.calendarTemplate.interval}`})}editSchedule(){let t={calendarId:this.calendarId};this.router.navigate(["../Edit Meeting Schedule"],{relativeTo:this.route,queryParams:t})}submit(){let t=this.groupEditMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`groups_${this.groupId}_CollectionMeeting`,d="1",u=this.groupEditMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{repeating:!0,title:s,typeId:d,dateFormat:i,locale:n});this.groupsService.updateGroupMeeting(this.groupId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-group-meeting"]],decls:44,vars:30,consts:[["startDatePicker",""],[1,"container","m-b-20","layout-row","align-end"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],[1,"m-b-5",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["formControlName","repeatsOnDay","required",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"button",2),R("click",function(){return V(s),q(i.editSchedule())}),b(2,"fa-icon",3),c(3),p(4,"translate"),r()(),l(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-card-content")(9,"div",6)(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",7),Se(15,F5e,2,2,"mat-option",8,Pe),r(),E(17,k5e,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),l(22,"mat-select",9),Se(23,B5e,2,2,"mat-option",8,Pe),r(),E(25,R5e,7,9,"mat-error"),r(),E(26,V5e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){V(s);let u=ve(34);return q(u.open())}),l(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",11)(32,"mat-datepicker-toggle",12)(33,"mat-datepicker",null,0),E(35,q5e,7,9,"mat-error"),l(36,"mat-hint"),c(37),p(38,"translate"),r()()()(),l(39,"mat-card-actions",13)(40,"button",14),c(41),p(42,"translate"),r(),F(43,z5e,3,4,"button",15),r()()()()}if(n&2){let s=ve(34);a(3),v(" ",m(4,17,"labels.buttons.Edit Schedule")," "),a(4),g("formGroup",i.groupEditMeetingForm),a(5),h(m(13,19,"labels.inputs.Repetition Frequency")),a(3),we(i.frequencyOptions),a(2),I(i.groupEditMeetingForm.controls.frequency.hasError("repeatsOnDay")?17:-1),a(3),h(m(21,21,"labels.inputs.Repetition Interval")),a(3),we(i.repetitionIntervals),a(2),I(i.groupEditMeetingForm.controls.interval.hasError("repeatsOnDay")?25:-1),a(),I(i.groupEditMeetingForm.contains("repeatsOnDay")?26:-1),a(3),h(m(30,23,"labels.inputs.Above Changes are Effective from")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupEditMeetingForm.controls.startDate.hasError("required")?35:-1),a(2),v(" ",m(38,25,"labels.text.Repeats' and 'Repeats every")," "),a(3),g("routerLink",oe(29,A5e)),a(),v(" ",m(42,27,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var H5e=()=>["../../"];function G5e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function j5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function U5e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.groupEditMeetingScheduleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var G2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.groupsService=T(On),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.groupActionData,this.nextMeetingDates=this.calendarTemplate.nextTenRecurringDates}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.groupId=this.route.parent.snapshot.params.groupId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditMeetingScheduleForm()}createEditMeetingScheduleForm(){this.groupEditMeetingScheduleForm=this.formBuilder.group({presentMeetingDate:["",ce.required],newMeetingDate:["",ce.required]})}submit(){let t=this.groupEditMeetingScheduleForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=!0,d=new Date(this.groupEditMeetingScheduleForm.value.presentMeetingDate),u=this.groupEditMeetingScheduleForm.value.newMeetingDate;t.presentMeetingDate instanceof Date&&(t.presentMeetingDate=this.dateUtils.formatDate(d,i)),t.newMeetingDate instanceof Date&&(t.newMeetingDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{reschedulebasedOnMeetingDates:s,dateFormat:i,locale:n});this.groupsService.updateGroupMeeting(this.groupId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-group-meeting-schedule"]],decls:27,vars:19,consts:[["newMeetingDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","presentMeetingDate"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","newMeetingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,G5e,3,4,"mat-option",5,Pe),r(),E(12,j5e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,$5e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",9)(23,"button",10),c(24),p(25,"translate"),r(),F(26,U5e,3,4,"button",11),r()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.groupEditMeetingScheduleForm),a(5),h(m(8,12,"labels.inputs.Existing Meeting Date")),a(3),we(i.nextMeetingDates),a(2),I(i.groupEditMeetingScheduleForm.controls.presentMeetingDate.hasError("repeatsOnDay")?12:-1),a(3),h(m(16,14,"labels.inputs.Revised Meeting Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.groupEditMeetingScheduleForm.controls.newMeetingDate.hasError("required")?21:-1),a(2),g("routerLink",oe(18,H5e)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var W5e=()=>["../../"],Q5e=e=>({id:e});function Y5e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",Nt(2,Q5e,t.id)),a(),v(" ",t.displayName," ")}}function J5e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Destination Group")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function K5e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function X5e(e,o){if(e&1&&(l(0,"div",9)(1,"div",13)(2,"div",14),c(3),p(4,"translate"),r()(),l(5,"div",15)(6,"div",16),c(7),p(8,"translate"),r(),l(9,"div",16),c(10),r()(),l(11,"div",15)(12,"div",16),c(13),p(14,"translate"),r(),l(15,"div",16),c(16),r()(),l(17,"div",15)(18,"div",16),c(19),p(20,"translate"),r(),l(21,"div",16),c(22),p(23,"dateFormat"),r()(),l(24,"div",15)(25,"div",16),c(26),p(27,"translate"),r(),l(28,"div",16),c(29),r()(),l(30,"div",15)(31,"div",16),c(32),p(33,"translate"),r(),l(34,"div",16),c(35),r()()()),e&2){let t=w();a(3),h(m(4,11,"labels.inputs.Destination Group Details")),a(4),h(m(8,13,"labels.inputs.name")),a(3),h(t.transferClientsForm.get("destinationGroupId").value.name),a(3),h(m(14,15,"labels.inputs.Id")),a(3),h(t.transferClientsForm.get("destinationGroupId").value.id),a(3),h(m(20,17,"labels.inputs.Activation Date")),a(3),v(" ",m(23,19,t.transferClientsForm.get("destinationGroupId").value.activationDate)||"Not Activated"," "),a(4),h(m(27,21,"labels.inputs.Staff")),a(3),v(" ",t.transferClientsForm.get("destinationGroupId").value.staffName||"Unassigned"," "),a(3),h(m(33,23,"labels.inputs.External Id")),a(3),v(" ",t.transferClientsForm.get("destinationGroupId").value.externalId||"Unassigned"," ")}}function Z5e(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.transferClientsForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var j2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupsService=T(On),this.settingsService=T(Ot),this.groupsData=[],this.clientMembers=[],this.route.data.subscribe(t=>{this.groupData=t.groupActionData,this.clientMembers=this.groupData.clientMembers})}ngOnInit(){this.createTransferClientsForm()}ngAfterViewInit(){this.transferClientsForm.get("destinationGroupId").valueChanges.subscribe(t=>{t.length>=2&&this.groupsService.getFilteredGroups("name","ASC",t,this.groupData.officeId).subscribe(n=>{this.groupsData=n})})}createTransferClientsForm(){this.transferClientsForm=this.formBuilder.group({clients:["",ce.required],inheritDestinationGroupLoanOfficer:[!1],destinationGroupId:["",ce.required]})}displayGroup(t){return t?t.name:void 0}submit(){let t=this.settingsService.language.code,n=qt(at({},this.transferClientsForm.value),{destinationGroupId:this.transferClientsForm.get("destinationGroupId").value.id,locale:t});this.groupsService.executeGroupCommand(this.groupData.id,"transferClients",n).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-transfer-clients"]],decls:31,vars:20,consts:[["groupsAutocomplete","matAutocomplete"],[1,"container"],[3,"formGroup"],[1,"layout-column"],["required","","formControlName","clients","multiple",""],[3,"value"],["labelPosition","before","formControlName","inheritDestinationGroupLoanOfficer",1,"m-t-10","m-b-10"],["matInput","","formControlName","destinationGroupId",3,"matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[1,"mat-table"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[1,"mat-header-row"],[1,"mat-header-cell"],[1,"mat-row"],[1,"mat-cell"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Y5e,2,4,"mat-option",5,Pe),r()(),l(12,"mat-checkbox",6),c(13),p(14,"translate"),r(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),E(20,J5e,7,9,"mat-error"),r()(),l(21,"mat-autocomplete",8,0),Se(23,K5e,2,2,"mat-option",5,Pe),r(),E(25,X5e,36,25,"div",9),r(),l(26,"mat-card-actions",10)(27,"button",11),c(28),p(29,"translate"),r(),F(30,Z5e,3,4,"button",12),r()()()()),n&2){let s,d=ve(22);a(2),g("formGroup",i.transferClientsForm),a(5),h(m(8,11,"labels.inputs.Select Client Members for Transfer")),a(3),we(i.clientMembers),a(3),v(" ",m(14,13,"labels.inputs.Inherit Group Loan Officer"),"? "),a(4),h(m(18,15,"labels.inputs.Destination Group")),a(2),g("matAutocomplete",d),a(),I(i.transferClientsForm.controls.destinationGroupId.hasError("required")?20:-1),a(),g("displayWith",i.displayGroup),a(2),we(i.groupsData),a(2),I((s=i.transferClientsForm.get("destinationGroupId").value)!=null&&s.id?25:-1),a(2),g("routerLink",oe(19,W5e)),a(),v(" ",m(29,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","TRANSFERCLIENTS_GROUP")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,er,Za,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.mat-table[_ngcontent-%COMP%]{display:block;font-family:Tahoma,Verdana,sans-serif;width:100%}.mat-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;min-height:30px;padding:0 24px}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word}"]})}}return e})();function eDe(e,o){e&1&&b(0,"mifosx-group-assign-staff")}function tDe(e,o){e&1&&b(0,"mifosx-close-group")}function iDe(e,o){e&1&&b(0,"mifosx-activate-group")}function nDe(e,o){e&1&&b(0,"mifosx-attach-group-meeting")}function oDe(e,o){e&1&&b(0,"mifosx-group-attendance")}function aDe(e,o){e&1&&b(0,"mifosx-manage-group-members")}function rDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting")}function lDe(e,o){e&1&&b(0,"mifosx-edit-group-meeting-schedule")}function sDe(e,o){e&1&&b(0,"mifosx-group-transfer-clients")}var $2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.actions={"Assign Staff":!1,Close:!1,Activate:!1,"Attach Meeting":!1,Attendance:!1,"Manage Members":!1,"Edit Meeting":!1,"Edit Meeting Schedule":!1,"Transfer Clients":!1},this.router.routeReuseStrategy.shouldReuseRoute=()=>!1;let t=this.route.snapshot.params.action;t&&t in this.actions&&(this.actions[t]=!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-group-actions"]],decls:9,vars:9,template:function(n,i){n&1&&(E(0,eDe,1,0,"mifosx-group-assign-staff"),E(1,tDe,1,0,"mifosx-close-group"),E(2,iDe,1,0,"mifosx-activate-group"),E(3,nDe,1,0,"mifosx-attach-group-meeting"),E(4,oDe,1,0,"mifosx-group-attendance"),E(5,aDe,1,0,"mifosx-manage-group-members"),E(6,rDe,1,0,"mifosx-edit-group-meeting"),E(7,lDe,1,0,"mifosx-edit-group-meeting-schedule"),E(8,sDe,1,0,"mifosx-group-transfer-clients")),n&2&&(I(i.actions["Assign Staff"]?0:-1),a(),I(i.actions.Close?1:-1),a(),I(i.actions.Activate?2:-1),a(),I(i.actions["Attach Meeting"]?3:-1),a(),I(i.actions.Attendance?4:-1),a(),I(i.actions["Manage Members"]?5:-1),a(),I(i.actions["Edit Meeting"]?6:-1),a(),I(i.actions["Edit Meeting Schedule"]?7:-1),a(),I(i.actions["Transfer Clients"]?8:-1))},dependencies:[ue,fe,R2,N2,L2,V2,q2,z2,H2,G2,j2],encapsulation:2})}}return e})();var cDe=()=>["../"];function pDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Group Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Group Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function dDe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function uDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",8),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",15)(5,"mat-datepicker-toggle",10)(6,"mat-datepicker",null,1),E(8,fDe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.editGroupForm.value.submittedOnDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.editGroupForm.controls.activationDate.hasError("required")?8:-1)}}var U2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.groupService=T(On),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.staffData=t.groupAndTemplateData.staffOptions,this.groupData=t.groupAndTemplateData,this.submittedOnDate=t.groupViewData.timeline.submittedOnDate&&new Date(t.groupViewData.timeline.submittedOnDate)})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditGroupForm(),this.editGroupForm.patchValue({name:this.groupData.name,submittedOnDate:this.submittedOnDate,staffId:this.groupData.staffId,externalId:this.groupData.externalId})}createEditGroupForm(){this.editGroupForm=this.formBuilder.group({name:["",[ce.required,ce.pattern("(^[A-z]).*")]],submittedOnDate:["",ce.required],staffId:[""],externalId:[""]}),this.buildDependencies()}buildDependencies(){this.groupData.active?(this.editGroupForm.addControl("activationDate",new it("",ce.required)),this.editGroupForm.get("activationDate").patchValue(this.groupData.activationDate&&new Date(this.groupData.activationDate))):this.editGroupForm.removeControl("activationDate")}submit(){let t=this.editGroupForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.editGroupForm.value.submittedOnDate,d=this.editGroupForm.value.activationDate;t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(s,i)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.groupService.updateGroup(u,this.groupData.id).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-group"]],decls:41,vars:30,consts:[["submittedOnDatePicker",""],["activationDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["formControlName","staffId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","submittedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3)(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,pDe,7,9,"mat-error"),E(11,mDe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,dDe,2,2,"mat-option",7,Pe),r()(),l(19,"mat-form-field",8),R("click",function(){V(s);let u=ve(26);return q(u.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",9)(24,"mat-datepicker-toggle",10)(25,"mat-datepicker",null,0),E(27,uDe,7,9,"mat-error"),r(),E(28,hDe,9,8,"mat-form-field"),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",11),r()()(),l(34,"mat-card-actions",12)(35,"button",13),c(36),p(37,"translate"),r(),l(38,"button",14),R("click",function(){return V(s),q(i.submit())}),c(39),p(40,"translate"),r()()()()()}if(n&2){let s=ve(26);a(2),g("formGroup",i.editGroupForm),a(5),h(m(8,17,"labels.inputs.name")),a(3),I(i.editGroupForm.controls.name.hasError("required")?10:-1),a(),I(i.editGroupForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,19,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(22,21,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.editGroupForm.controls.submittedOnDate.hasError("required")?27:-1),a(),I(i.editGroupForm.contains("activationDate")?28:-1),a(3),h(m(32,23,"labels.inputs.External id")),a(4),g("routerLink",oe(29,cDe)),a(),v(" ",m(37,25,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editGroupForm.valid),a(),v(" ",m(40,27,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}"]})}}return e})();var s5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.paramMap.get("groupId");return this.groupsService.getGroupSummary(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var c5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.paramMap.get("groupId");return this.groupsService.getGroupNotes(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var p5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(){return this.groupsService.getGroupDatatables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var m5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.parent.paramMap.get("groupId"),i=t.paramMap.get("datatableName");return this.groupsService.getGroupDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var W2=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.paramMap.get("groupId");return this.groupsService.getGroupData(n,"true")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var d5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.paramMap.get("action"),i=t.paramMap.get("groupId")||t.parent.parent.paramMap.get("groupId");switch(n){case"Attendance":case"Manage Members":case"Transfer Clients":return this.groupsService.getGroupData(i);case"Assign Staff":return this.groupsService.getGroupData(i,"true");case"Close":return this.groupsService.getGroupCommandTemplate("close");case"Attach Meeting":return this.groupsService.getGroupCalendarTemplate(i);case"Edit Meeting":case"Edit Meeting Schedule":let s=t.queryParamMap.get("calendarId");return this.groupsService.getGroupCalendarAndTemplate(i,s);default:return}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var u5=(()=>{class e{constructor(){this.groupsService=T(On)}resolve(t){let n=t.parent.paramMap.get("groupId");return this.groupsService.getGLIMAccountsData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var gDe=[_o.withShell([{path:"groups",data:{title:"Groups",breadcrumb:"Groups",routeParamBreadcrumb:!1},children:[{path:"",component:T2},{path:"create",component:F2,data:{title:"Create Group",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{offices:zr}},{path:":groupId",data:{title:"View Group",routeParamBreadcrumb:"groupId"},resolve:{groupViewData:pf},children:[{path:"",component:D2,resolve:{groupViewData:pf,groupDatatables:p5},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:E2,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{groupAccountsData:BT,groupSummary:s5,gsimData:RT,glimData:u5}},{path:"notes",component:I2,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{groupNotes:c5}},{path:"committee",component:A2,data:{title:"Committee",breadcrumb:"Committee",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:k2,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{groupDatatable:m5}}]}]},{path:"edit",component:U2,data:{title:"Edit Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{groupAndTemplateData:W2,groupViewData:pf}},{path:"committee",children:[{path:"",redirectTo:"../committee",pathMatch:"prefix"},{path:"add-role",data:{title:"Add Role",breadcrumb:"Add Role",routeParamBreadcrumb:!1},component:B2,resolve:{groupAndTemplateData:W2}}]},{path:"actions/:action",data:{title:"Group Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:$2,resolve:{groupActionData:d5}},{path:"loans-accounts",loadChildren:()=>import("./loans.module-NGQPIAPW.js").then(e=>e.LoansModule)},{path:"savings-accounts",loadChildren:()=>import("./savings.module-BWCLPAVJ.js").then(e=>e.SavingsModule)}]}]}])],iN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[pf,BT,s5,c5,p5,m5,W2,d5,RT,u5],imports:[gn.forChild(gDe),gn]})}}return e})();var nN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,Er,iN,T2,D2,E2,I2,A2,F2,k2,B2,O2,$2,R2,M2,N2,L2,U2,V2,q2,z2,H2,G2,j2]})}}return e})();var Jn=(()=>{class e{constructor(){this.http=T(ko)}getCenters(t,n,i,s,d){let u=new rn().set("offset",s.toString()).set("limit",d.toString()).set("sortOrder",i).set("orderBy",n).set("paged","true");return t.forEach(function(f){f.value&&(u=u.set(f.type,f.value))}),this.http.get("/centers",{params:u})}createCenter(t){return this.http.post("/centers",t)}getStaff(t){let n=new rn().set("officeId",t.toString()).set("staffInSelectedOfficeOnly","true");return this.http.get("/centers/template",{params:n})}getCenterData(t){let n=new rn().set("associations","groupMembers,collectionMeetingCalendar");return this.http.get(`/centers/${t}`,{params:n})}getCenterSummary(t){let n=new rn().set("R_groupId",t).set("genericResultSet","false");return this.http.get("/runreports/GroupSummaryCounts",{params:n})}getSavingsAccountDetails(t){return this.http.get(`/centers/${t}/accounts`)}getCenterNotes(t){return this.http.get(`/groups/${t}/notes`)}createCenterNote(t,n){return this.http.post(`/groups/${t}/notes`,n)}editCenterNote(t,n,i){return this.http.put(`/groups/${t}/notes/${n}`,i)}deleteCenterNote(t,n){return this.http.delete(`/groups/${t}/notes/${n}`)}getcenterDatatables(){let t=new rn().set("apptable","m_center");return this.http.get("/datatables",{params:t})}getCenterDatatable(t,n){let i=new rn().set("genericResultSet","true");return this.http.get(`/datatables/${n}/${t}`,{params:i})}addCenterDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.post(`/datatables/${n}/${t}`,i,{params:s})}editCenterDatatableEntry(t,n,i){let s=new rn().set("genericResultSet","true");return this.http.put(`/datatables/${n}/${t}`,i,{params:s})}deleteDatatableContent(t,n){let i=new rn().set("genericResultSet","true");return this.http.delete(`/datatables/${n}/${t}`,{params:i})}executeCenterActionCommand(t,n,i){let s=new rn().set("command",n);return this.http.post(`/centers/${t}`,i,{params:s})}executeGroupActionCommand(t,n,i){let s=new rn().set("command",n);return this.http.post(`/groups/${t}`,i,{params:s})}getGroupStaffData(t){let n=new rn().set("groupOrCenter","centers").set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/groups/${t}`,{params:n})}deleteCenter(t){return this.http.delete(`/centers/${t}`)}getCentersData(t,n,i){let s=new rn().set("associations",n);return s=i?s.set("template",i):s,this.http.get(`/centers/${t}`,{params:s})}getMeetingsTemplate(t,n){let i=new rn().set("calenderId",n);return this.http.get(`/centers/${t}/meetings/template`)}assignCenterAttendance(t,n,i){let s=new rn().set("calenderId",n);return this.http.post(`/centers/${t}/meetings`,i,{params:s})}getCalendarTemplate(t){return this.http.get(`/centers/${t}/calendars/template`)}createCenterMeeting(t,n){return this.http.post(`/centers/${t}/calendars`,n)}getCalendarAndTemplate(t,n){let i=new rn().set("template","true");return this.http.get(`/centers/${t}/calendars/${n}`,{params:i})}updateCenterMeeting(t,n,i){return this.http.put(`/centers/${t}/calendars/${i}`,n)}getStaffAssignmentHistoryData(t,n,i,s){let d=new rn().set("tenantIdentifier",i).set("locale",s).set("R_centerId",n);return this.http.get(`/runreports/${t}`,{responseType:"arraybuffer",observe:"response",params:d})}getCenterAndTemplateData(t){let n=new rn().set("staffInSelectedOfficeOnly","true").set("template","true");return this.http.get(`/centers/${t}`,{params:n})}executeEditCenter(t,n){return this.http.put(`/groups/${t}`,n)}getAllMeetingFallCenters(t,n,i,s,d){return this.http.get(`/centers?dateFormat=${s}&locale=${d}&meetingDate=${i}&officeId=${t}&staffId=${n}`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Q2=class{constructor(o){this.centersService=o,this.centersSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getCenters(o,t="",n="",i=0,s=10,d=!0){this.centersSubject.next([]),this.centersService.getCenters(o,t,n,i*s,s).subscribe(u=>{u.pageItems=d?u.pageItems.filter(f=>f.active):u.pageItems,this.recordsSubject.next(u.totalFilteredRecords),this.centersSubject.next(u.pageItems)})}connect(o){return this.centersSubject.asObservable()}disconnect(o){this.centersSubject.complete(),this.recordsSubject.complete()}};var _De=["showClosedCenters"],CDe=()=>[10,25,50,100],vDe=()=>["../","organization","bulk-import","Centers"],xDe=()=>["create"],bDe=e=>[e,"general"];function yDe(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,vDe)),a(2),v("",m(3,2,"labels.buttons.Import Center")," "))}function SDe(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,xDe)),a(2),v("",m(3,2,"labels.buttons.Create Center")," "))}function wDe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function PDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function TDe(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Account")," #"))}function MDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountNo)}}function DDe(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function EDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function IDe(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function ODe(e,o){if(e&1&&(l(0,"td",26)(1,"div",28),p(2,"statusLookup"),b(3,"fa-icon",29),r()()),e&2){let t=o.$implicit;a(),g("ngClass",m(2,1,t.status.code))}}function ADe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function FDe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function kDe(e,o){e&1&&b(0,"tr",30)}function BDe(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,bDe,t.id))}}var Y2=(()=>{class e{constructor(){this.centersService=T(Jn),this.name=new it,this.externalId=new it,this.displayedColumns=["name","accountNo","externalId","status","officeName"],this.filterCentersBy=[{type:"name",value:""},{type:"externalId",value:""}]}ngOnInit(){this.getCenters()}ngAfterViewInit(){this.name.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"name")})).subscribe(),this.externalId.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"externalId")})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadCentersPage())).subscribe()}changeShowClosedCenters(){this.loadCentersPage()}loadCentersPage(){this.sort.direction||delete this.sort.active,this.dataSource.getCenters(this.filterCentersBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize,!this.showClosedCenters.checked)}applyFilter(t,n){this.paginator.pageIndex=0;let i=this.filterCentersBy.findIndex(s=>s.type===n);this.filterCentersBy[i].value=t,this.loadCentersPage()}getCenters(){this.dataSource=new Q2(this.centersService),this.dataSource.getCenters(this.filterCentersBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-app-centers"]],viewQuery:function(n,i){if(n&1&&(Ee(_De,7),Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.showClosedCenters=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:34,vars:16,consts:[["showClosedCenters",""],[1,"container"],[1,"layout-column","layout-gt-sm-row","align-gt-sm-start-center"],[1,"search-box","m-r-30"],[1,"search-box"],["matInput","","placeholder","Search by Name",3,"formControl"],["matInput","","placeholder","Search by ExternalID",3,"formControl"],["labelPosition","after",1,"m-r-10",3,"change"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-table","","matSort","",1,"bordered-table",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","accountNo"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","externalId"],["matColumnDef","status"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","download",1,"m-r-10"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[3,"ngClass"],["icon","stop"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",1)(1,"div",2)(2,"div",3)(3,"mat-form-field",4),b(4,"input",5),r(),l(5,"mat-form-field",4),b(6,"input",6),r(),l(7,"mat-checkbox",7,0),R("change",function(){return V(s),q(i.changeShowClosedCenters())}),c(9),p(10,"translate"),r()(),l(11,"div",8),F(12,yDe,4,5,"button",9)(13,SDe,4,5,"button",9),r()(),l(14,"table",10),X(15,11),F(16,wDe,3,3,"th",12)(17,PDe,2,1,"td",13),Z(),X(18,14),F(19,TDe,3,3,"th",15)(20,MDe,2,1,"td",13),Z(),X(21,16),F(22,DDe,3,3,"th",15)(23,EDe,2,1,"td",13),Z(),X(24,17),F(25,IDe,3,3,"th",15)(26,ODe,4,3,"td",13),Z(),X(27,18),F(28,ADe,3,3,"th",12)(29,FDe,2,1,"td",13),Z(),F(30,kDe,1,0,"tr",19)(31,BDe,1,3,"tr",20),r(),b(32,"mat-paginator",21),p(33,"async"),r()}n&2&&(a(4),g("formControl",i.name),a(2),g("formControl",i.externalId),a(3),v(" ",m(10,11,"labels.inputs.Show Closed Centers")," "),a(3),g("mifosxHasPermission","CREATE_CENTER"),a(),g("mifosxHasPermission","CREATE_CENTER"),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("length",m(33,13,i.dataSource==null?null:i.dataSource.records$))("pageSize",10)("pageSizeOptions",oe(15,CDe)))},dependencies:[ue,co,fe,st,$e,_n,Oe,Ue,Fe,ze,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he,go],styles:[".container[_ngcontent-%COMP%]{padding:24px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:20px;flex-wrap:nowrap;gap:20px}.container[_ngcontent-%COMP%] .layout-column.align-gt-sm-start-center[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row.align-gt-sm-start-center[_ngcontent-%COMP%]{align-items:center;justify-content:flex-start}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{display:flex;align-items:center;gap:15px;flex:1;min-width:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:200px;flex:1}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field.search-box[_ngcontent-%COMP%]{width:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{white-space:nowrap;flex-shrink:0;margin-left:15px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{display:flex;align-items:center;flex-shrink:0;margin-left:auto}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:25px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{white-space:nowrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-10[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%] button[_ngcontent-%COMP%] fa-icon.m-r-20[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%]{width:100%;border:1px solid #e0e0e0;border-radius:4px;overflow:hidden;margin-top:16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#f5f5f5}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:12px 16px}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;border-bottom:1px solid #e0e0e0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]{border-bottom:1px solid #f0f0f0}.container[_ngcontent-%COMP%] .bordered-table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:last-child{border-bottom:none}.container[_ngcontent-%COMP%] mat-paginator[_ngcontent-%COMP%]{border-top:1px solid #e0e0e0;margin-top:0}.container[_ngcontent-%COMP%] mat-progress-bar[_ngcontent-%COMP%]{margin:0}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:16px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%]{flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%]{width:100%;margin-right:0!important;margin-bottom:15px;flex-wrap:wrap}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{min-width:150px;margin-bottom:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%] + mat-form-field[_ngcontent-%COMP%]{margin-left:0}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .search-box[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:0;margin-top:10px}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:0;width:100%;justify-content:center}.container[_ngcontent-%COMP%] .layout-column[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .layout-gt-sm-row[_ngcontent-%COMP%] .action-button.gap-25px[_ngcontent-%COMP%]{gap:15px}}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.m-r-10[_ngcontent-%COMP%]{margin-right:10px!important}.m-r-20[_ngcontent-%COMP%]{margin-right:20px!important}.m-r-30[_ngcontent-%COMP%]{margin-right:30px!important}"]})}}return e})();var RDe=()=>["../"];function NDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function LDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Center Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function VDe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function qDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zDe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function HDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function GDe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",20)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,1),E(8,HDe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Activation Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.centerForm.controls.activationDate.hasError("required")?8:-1)}}function jDe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Submission Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $De(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function UDe(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"div",21)(2,"div",22),c(3),p(4,"translate"),r(),l(5,"button",23),R("click",function(){V(t);let i=w();return q(i.addGroup())}),b(6,"fa-icon",24),r()(),l(7,"div",25)(8,"div",26),c(9),p(10,"translate"),r(),l(11,"div",26),c(12),r()(),l(13,"div",25)(14,"div",26),c(15),p(16,"translate"),r(),l(17,"div",26),c(18),r()(),l(19,"div",25)(20,"div",26),c(21),p(22,"translate"),r(),l(23,"div",26),c(24),r()()()}if(e&2){let t=w();a(3),h(m(4,7,"labels.inputs.Group Details")),a(6),h(m(10,9,"labels.inputs.name")),a(3),h(t.groupChoice.value.name),a(3),h(m(16,11,"labels.inputs.Id")),a(3),h(t.groupChoice.value.id),a(3),h(m(22,13,"labels.inputs.Office")),a(3),h(t.groupChoice.value.officeName)}}function WDe(e,o){if(e&1){let t=Y();l(0,"div",28)(1,"button",23),R("click",function(){let i=V(t).$index,s=w(2);return q(s.removeGroup(i))}),b(2,"fa-icon",29),r(),l(3,"span",30),c(4),r()()}if(e&2){let t=o.$implicit;a(4),h(t.name)}}function QDe(e,o){if(e&1&&(l(0,"mat-nav-list")(1,"h3",27),c(2),p(3,"translate"),r(),Se(4,WDe,5,1,"div",28,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Selected Groups")),a(2),we(t.groupMembers)}}function YDe(e,o){if(e&1){let t=Y();l(0,"button",31),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.centerForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var J2=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centerService=T(Jn),this.settingsService=T(Ot),this.groupService=T(On),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.groupMembers=[],this.groupChoice=new it(""),this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCenterForm()}createCenterForm(){this.centerForm=this.formBuilder.group({name:["",[ce.required,ce.pattern("(^[A-z]).*")]],officeId:["",ce.required],submittedOnDate:["",ce.required],staffId:[""],externalId:[""],active:[""]}),this.buildDependencies()}buildDependencies(){this.centerForm.get("officeId").valueChanges.subscribe(t=>{this.groupService.getGroupsByOfficeId(t).subscribe(n=>{this.groupsData=n,this.groupsData.length?this.groupChoice.enable():this.groupChoice.disable()}),this.centerService.getStaff(t).subscribe(n=>{this.staffData=n.staffOptions,this.staffData===void 0?this.centerForm.controls.staffId.disable():this.centerForm.controls.staffId.enable()})}),this.centerForm.get("active").valueChanges.subscribe(t=>{t?this.centerForm.addControl("activationDate",new it("",ce.required)):this.centerForm.removeControl("activationDate")})}addGroup(){this.groupMembers.includes(this.groupChoice.value)||this.groupMembers.push(this.groupChoice.value)}removeGroup(t){this.groupMembers.splice(t,1)}submit(){let t=this.centerForm.value,n=this.centerForm.value.submittedOnDate,i=this.centerForm.value.activationDate,s=this.settingsService.language.code,d=this.settingsService.dateFormat;t.submittedOnDate instanceof Date&&(t.submittedOnDate=this.dateUtils.formatDate(n,d)),t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(i,d));let u=qt(at({},t),{dateFormat:d,locale:s});u.groupMembers=[],this.groupMembers.forEach(f=>u.groupMembers.push(f.id)),this.centerService.createCenter(u).subscribe(f=>{this.router.navigate(["../centers"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-center"]],decls:60,vars:40,consts:[["submittedOnDatePicker",""],["activationDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],["formControlName","staffId"],["labelPosition","before","formControlName","active"],["matInput","","formControlName","externalId"],[3,"click"],["matInput","","required","","formControlName","submittedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"formControl"],[1,"layout-row"],[1,"mat-table"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],["matSubheader",""],["mat-list-item",""],["icon","trash"],["matLine",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3)(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,NDe,7,9,"mat-error"),E(11,LDe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,VDe,2,2,"mat-option",7,Pe),r(),E(19,qDe,7,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",8),Se(25,zDe,2,2,"mat-option",7,Pe),r()(),l(27,"mat-checkbox",9),c(28),p(29,"translate"),r(),E(30,GDe,9,8,"mat-form-field"),l(31,"mat-form-field")(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",10),r(),l(36,"mat-form-field",11),R("click",function(){V(s);let u=ve(43);return q(u.open())}),l(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",12)(41,"mat-datepicker-toggle",13)(42,"mat-datepicker",null,0),E(44,jDe,7,9,"mat-error"),r(),l(45,"mat-form-field")(46,"mat-label"),c(47),p(48,"translate"),r(),l(49,"mat-select",14),Se(50,$De,2,2,"mat-option",7,Pe),r()()(),l(52,"div",15),E(53,UDe,25,15,"div",16),E(54,QDe,6,3,"mat-nav-list"),r()(),l(55,"mat-card-actions",17)(56,"button",18),c(57),p(58,"translate"),r(),F(59,YDe,3,4,"button",19),r()()()()}if(n&2){let s=ve(43);a(2),g("formGroup",i.centerForm),a(5),h(m(8,23,"labels.inputs.name")),a(3),I(i.centerForm.controls.name.hasError("required")?10:-1),a(),I(i.centerForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,25,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.centerForm.controls.officeId.hasError("required")?19:-1),a(3),h(m(23,27,"labels.inputs.Staff")),a(3),we(i.staffData),a(3),v(" ",m(29,29,"labels.inputs.Active")," "),a(2),I(i.centerForm.controls.active.value?30:-1),a(3),h(m(34,31,"labels.inputs.External Id")),a(5),h(m(39,33,"labels.inputs.Submitted On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerForm.controls.submittedOnDate.hasError("required")?44:-1),a(3),h(m(48,35,"labels.inputs.Select and Add groups")),a(2),g("formControl",i.groupChoice),a(),we(i.groupsData),a(3),I(i.groupChoice.value?53:-1),a(),I(i.groupMembers.length?54:-1),a(2),g("routerLink",oe(39,RDe)),a(),v(" ",m(58,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CENTER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,wi,ke,pa,Ep,ca,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.mat-table[_ngcontent-%COMP%]{display:block;font-family:Tahoma,Verdana,sans-serif;width:50%}.mat-row[_ngcontent-%COMP%], .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom-width:1px;border-bottom-style:solid;align-items:center;min-height:48px;padding:0 24px}.mat-cell[_ngcontent-%COMP%], .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word}"]})}}return e})();var JDe=()=>["./general"],KDe=()=>["savings-accounts","create"],XDe=()=>["./notes"],ZDe=e=>["./datatables",e];function eEe(e,o){if(e&1&&(l(0,"div")(1,"button",23)(2,"mat-icon",24),b(3,"fa-icon",25),r()()()),e&2){w();let t=ve(36);a(),g("matMenuTriggerFor",t)}}function tEe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"mifosx-external-identifier",26)(4,"br"),r()),e&2){let t=w();a(),v(" ",m(2,3,"labels.inputs.External Id"),": "),a(2),g("externalId",Le(t.centerViewData.externalId))}}function iEe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"translate"),b(3,"br"),r()),e&2){let t=w();a(),le(" ",m(2,2,"labels.inputs.Staff"),": ",t.centerViewData.staffName," ")}}function nEe(e,o){if(e&1){let t=Y();l(0,"i",28),R("click",function(){V(t);let i=w(3);return q(i.doAction("Edit Meeting"))}),r()}}function oEe(e,o){e&1&&(l(0,"span"),F(1,nEe,1,0,"i",27),b(2,"br"),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_MEETING"))}function aEe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"dateFormat"),E(5,oEe,3,1,"span"),c(6),p(7,"translate"),p(8,"lowercase"),r()()),e&2){let t=w();a(2),le(" ",m(3,5,"labels.inputs.Next Meeting on"),": ",m(4,7,t.centerViewData.collectionMeetingCalendar==null?null:t.centerViewData.collectionMeetingCalendar.nextTenRecurringDates[0])," "),a(3),I(t.editMeeting?5:-1),a(),le(" ",m(7,9,"labels.inputs.Meeting Frequency"),": ",m(8,11,t.centerViewData.collectionMeetingCalendar==null?null:t.centerViewData.collectionMeetingCalendar.frequency.value)," ")}}function rEe(e,o){e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),p(4,"translate"),b(5,"i",29)(6,"br"),c(7),p(8,"translate"),p(9,"translate"),r()()),e&2&&(a(2),le(" ",m(3,4,"labels.inputs.Next Meeting on"),": ",m(4,6,"labels.text.Unassigned")," "),a(5),le(" ",m(8,8,"labels.inputs.Meeting Frequency"),": ",m(9,10,"labels.text.N/A")," "))}function lEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Activate"))}),l(1,"mat-icon",31),b(2,"fa-icon",32),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Activate")))}function sEe(e,o){e&1&&(l(0,"span"),F(1,lEe,6,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ACTIVATE_CENTER"))}function cEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Edit"))}),l(1,"mat-icon",31),b(2,"fa-icon",33),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Edit")))}function pEe(e,o){e&1&&(l(0,"button",34)(1,"mat-icon",31),b(2,"fa-icon",35),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2&&(g("disabled",!0),a(4),h(m(5,2,"labels.buttons.Add Group")))}function mEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Manage Groups"))}),l(1,"mat-icon",31),b(2,"fa-icon",33),r(),l(3,"span"),c(4),p(5,"translate"),r()()}e&2&&(a(4),h(m(5,1,"labels.buttons.Manage Groups")))}function dEe(e,o){e&1&&(l(0,"button",37)(1,"mat-icon",31),b(2,"fa-icon",38),r(),l(3,"span"),c(4),p(5,"translate"),r()()),e&2&&(g("disabled",!0)("routerLink",oe(5,KDe)),a(4),h(m(5,3,"labels.buttons.Centers Saving Application")))}function uEe(e,o){e&1&&(l(0,"span"),F(1,dEe,6,6,"button",36),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_SAVINGSACCOUNT"))}function fEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attendance"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attendance")," "))}function hEe(e,o){e&1&&(l(0,"span"),F(1,fEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","SAVEORUPDATEATTENDANCE_MEETING"))}function gEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Assign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Assign Staff")," "))}function _Ee(e,o){e&1&&(l(0,"span"),F(1,gEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","ASSIGNSTAFF_GROUP"))}function CEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Unassign Staff"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Unassign Staff")," "))}function vEe(e,o){e&1&&(l(0,"span"),F(1,CEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","UNASSIGNSTAFF_GROUP"))}function xEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Delete"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Delete")," "))}function bEe(e,o){e&1&&(l(0,"span"),F(1,xEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CENTER"))}function yEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Close"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Close")," "))}function SEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.doAction("Attach Meeting"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Attach Meeting")," "))}function wEe(e,o){e&1&&(l(0,"span"),F(1,SEe,3,3,"button",17),r()),e&2&&(a(),g("mifosxHasPermission","CREATE_MEETING"))}function PEe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w();return q(i.doAction("Staff Assignment History"))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Staff Assignment History")," "))}function TEe(e,o){if(e&1&&(l(0,"a",21,4),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,XDe))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Notes")," ")}}function MEe(e,o){if(e&1&&(l(0,"a",21,5),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,ZDe,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function DEe(e,o){if(e&1&&(l(0,"span"),F(1,MEe,3,5,"a",22),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var K2=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.centersService=T(Jn),this.translateService=T(yi),this.route.data.subscribe(t=>{this.centerViewData=t.centerViewData,this.centerDatatables=t.centerDatatables})}ngOnInit(){this.centerViewData.collectionMeetingCalendar?this.meetingData=!0:this.meetingData=!1}get editMeeting(){return!!(this.centerViewData.collectionMeetingCalendar&&this.centerViewData.collectionMeetingCalendar.entityType.value==="CENTERS"&&this.centerViewData.hierarchy==="."+this.centerViewData.id+".")}doAction(t){switch(t){case"Activate":case"Assign Staff":case"Close":case"Attendance":case"Attach Meeting":case"Manage Groups":case"Staff Assignment History":this.router.navigate([`actions/${t}`],{relativeTo:this.route});break;case"Edit Meeting":let n={calendarId:this.centerViewData.collectionMeetingCalendar.id};this.router.navigate([`actions/${t}`],{relativeTo:this.route,queryParams:n});break;case"Unassign Staff":this.centersUnassignStaff();break;case"Delete":this.deleteCenter();break;case"Edit":this.router.navigate(["edit"],{relativeTo:this.route})}}centersUnassignStaff(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Unassign Staff"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want Unassign Staff")}}).afterClosed().subscribe(n=>{n.confirm&&this.centersService.executeGroupActionCommand(this.centerViewData.id,"unassignStaff",{staffId:this.centerViewData.staffId}).subscribe(()=>{this.reload()})})}deleteCenter(){this.dialog.open(vi,{data:{deleteContext:`center with id: ${this.centerViewData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.centersService.deleteCenter(this.centerViewData.id).subscribe(()=>{this.router.navigate(["/centers"],{relativeTo:this.route})})})}reload(){let t=this.router.url;this.router.navigateByUrl("/centers",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-centers-view"]],decls:66,vars:51,consts:[["centerMenu","matMenu"],["More","matMenu"],["general","routerLinkActive"],["tabPanel",""],["notes","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],["mat-card-md-image","","src","assets/images/center_placeholder.png",1,"profile-image"],[1,"mat-typography","account-card-title"],[1,"make-flex"],[1,"flex-95"],[1,"fa","fa-stop",3,"matTooltip","ngClass"],[1,"layout-row","responsive-column"],[1,"flex-45"],[1,"center-meeting","flex-45","align-start-start"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"disabled",4,"mifosxHasPermission"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["mat-icon-button","","aria-label","Center actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],[3,"externalId"],["class","fa fa-edit",3,"click",4,"mifosxHasPermission"],[1,"fa","fa-edit",3,"click"],[1,"fa","fa-calendar"],["mat-menu-item","",3,"click"],["matListIcon",""],["icon","checkSign","size","sm"],["icon","edit","size","sm"],["mat-menu-item","",3,"disabled"],["icon","add","size","sm"],["mat-menu-item","",3,"disabled","routerLink",4,"mifosxHasPermission"],["mat-menu-item","",3,"disabled","routerLink"],["icon","file","size","sm"]],template:function(n,i){if(n&1&&(l(0,"mat-card",6)(1,"mat-card-header",7)(2,"mat-card-title-group",8)(3,"div")(4,"div"),b(5,"img",9),r()(),l(6,"div",10)(7,"mat-card-title",11)(8,"h3",12),b(9,"i",13),p(10,"statusLookup"),l(11,"b"),c(12),p(13,"translate"),r(),c(14),r(),E(15,eEe,4,1,"div"),r(),l(16,"mat-card-subtitle")(17,"div",14)(18,"div",15)(19,"p"),c(20),p(21,"translate"),b(22,"br"),c(23),p(24,"translate"),b(25,"br"),E(26,tEe,5,5,"span"),E(27,iEe,4,4,"span"),c(28),p(29,"translate"),p(30,"dateFormat"),b(31,"br"),r()(),l(32,"div",16),E(33,aEe,9,13,"div")(34,rEe,10,12,"div"),r()()()(),l(35,"mat-menu",null,0),E(37,sEe,2,1,"span"),F(38,cEe,6,3,"button",17)(39,pEe,6,4,"button",18)(40,mEe,6,3,"button",17),E(41,uEe,2,1,"span"),l(42,"button",19),c(43),p(44,"translate"),r(),l(45,"mat-menu",null,1),E(47,hEe,2,1,"span"),E(48,_Ee,2,1,"span"),E(49,vEe,2,1,"span"),E(50,bEe,2,1,"span"),F(51,yEe,3,3,"button",17),E(52,wEe,2,1,"span"),F(53,PEe,3,3,"button",17),r()()()(),l(54,"mat-card-content")(55,"nav",20)(56,"a",21,2),c(58),p(59,"translate"),r(),F(60,TEe,4,6,"a",22),Se(61,DEe,2,1,"span",null,Pe),r(),l(63,"mat-tab-nav-panel",null,3),b(65,"router-outlet"),r()()()),n&2){let s=ve(46),d=ve(57),u=ve(64);a(9),g("matTooltip",Le(i.centerViewData.status.value))("ngClass",m(10,34,i.centerViewData.status.code)),a(3),v("",m(13,36,"labels.heading.Center Name")," :"),a(2),v(" ",i.centerViewData.name," "),a(),I(i.centerViewData.status.value!=="Closed"?15:-1),a(5),le(" ",m(21,38,"labels.inputs.Account")," #:",i.centerViewData.accountNo," "),a(3),le(" ",m(24,40,"labels.inputs.Office"),": ",i.centerViewData.officeName," "),a(3),I(i.centerViewData.externalId?26:-1),a(),I(i.centerViewData.staffName?27:-1),a(),le(" ",m(29,42,"labels.inputs.Activation Date")," : ",i.centerViewData.activationDate?m(30,44,i.centerViewData.activationDate):"Not Activated"),a(5),I(i.centerViewData.collectionMeetingCalendar?33:34),a(4),I(i.centerViewData.status.value!=="Active"?37:-1),a(),g("mifosxHasPermission","UPDATE_CENTER"),a(),g("mifosxHasPermission","CREATE_GROUP"),a(),g("mifosxHasPermission","ASSOCIATEGROUPS_CENTER"),a(),I(i.centerViewData.active?41:-1),a(),g("matMenuTriggerFor",s),a(),h(m(44,46,"labels.buttons.More")),a(4),I(i.centerViewData.collectionMeetingCalendar?47:-1),a(),I(i.centerViewData.staffId?-1:48),a(),I(i.centerViewData.staffId?49:-1),a(),I(i.centerViewData.status.value==="Active"?50:-1),a(),g("mifosxHasPermission","CLOSE_CENTER"),a(),I(i.centerViewData.status.value==="Active"&&!i.centerViewData.collectionMeetingCalendar?52:-1),a(),g("mifosxHasPermission","READ_Staff Assignment History"),a(2),g("tabPanel",u),a(),g("routerLink",oe(50,JDe))("active",d.isActive),a(2),v(" ",m(59,48,"labels.inputs.General")," "),a(2),g("mifosxHasPermission","READ_GROUPNOTE"),a(),we(i.centerDatatables)}},dependencies:[ue,co,fe,Oe,Ue,Je,Ke,sa,Wr,x0,Qo,si,wi,nc,Yo,ke,Cl,Da,ic,tc,nr,or,Na,ar,ra,xg,Pi,he,go],styles:[".account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%]{align-self:flex-end;width:100%}.account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%], .account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%]{background-color:#0a6aac}.account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%], .account-card[_ngcontent-%COMP%] .center-meeting[_ngcontent-%COMP%] ng-template[_ngcontent-%COMP%] > div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff;padding:0 10px}.meetingDetails[_ngcontent-%COMP%]{float:right;margin-right:10px;border:1px black solid;padding:10px}.make-flex[_ngcontent-%COMP%]{display:flex}"]})}}return e})();var EEe=e=>["/groups",e,"general"],oN=e=>["../","savings-accounts",e,"actions","Deposit"],aN=e=>["../","savings-accounts",e,"actions","Withdrawal"],IEe=e=>["../","savings-accounts",e,"actions","Approve"],OEe=e=>["../","savings-accounts",e,"actions","Undo Approval"],AEe=e=>["../","savings-accounts",e,"actions","Activate"],FEe=e=>["../","savings-accounts",e,"transactions"];function kEe(e,o){e&1&&(l(0,"div")(1,"h3",2),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.heading.Center Closed")))}function BEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function REe(e,o){if(e&1&&(l(0,"td",13),b(1,"i",14),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.status.value))("ngClass",m(2,4,t.status.code)),a(2),v(" ",t.accountNo," ")}}function NEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Group Name")))}function LEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function VEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function qEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function zEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Submitted On")))}function HEe(e,o){if(e&1&&(l(0,"td",13),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.timeline.submittedOnDate))}}function GEe(e,o){e&1&&b(0,"tr",15)}function jEe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,EEe,t.id))}}function $Ee(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,BEe,3,3,"th",5)(6,REe,4,6,"td",6),Z(),X(7,7),F(8,NEe,3,3,"th",5)(9,LEe,2,1,"td",6),Z(),X(10,8),F(11,VEe,3,3,"th",5)(12,qEe,2,1,"td",6),Z(),X(13,9),F(14,zEe,3,3,"th",5)(15,HEe,3,3,"td",6),Z(),F(16,GEe,1,0,"tr",10)(17,jEe,1,3,"tr",11),r()),e&2){let t=w();a(),h(m(2,4,"labels.heading.Groups")),a(2),g("dataSource",t.groupResourceData),a(13),g("matHeaderRowDef",t.groupsColumns),a(),g("matRowDefColumns",t.groupsColumns)}}function UEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function WEe(e,o){if(e&1&&(l(0,"td",13),b(1,"i",14),p(2,"statusLookup"),c(3),r()),e&2){let t=o.$implicit;a(),g("matTooltip",Le(t.status.value))("ngClass",m(2,4,t.status.code)),a(2),v(" ",t.accountNo," ")}}function QEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Products")))}function YEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function JEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Balance")))}function KEe(e,o){if(e&1&&(l(0,"td",13),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountBalance)}}function XEe(e,o){e&1&&(l(0,"th",12),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ZEe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",22),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,oN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function eIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",22),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,oN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Deposit")))}}function tIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,aN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function iIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(5);return q(s.routeEdit(i))}),b(1,"i",23),p(2,"translate"),r()}if(e&2){let t=w(2).$implicit;g("routerLink",Nt(5,aN,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Withdraw")))}}function nIe(e,o){if(e&1&&(E(0,ZEe,3,7,"button",20),E(1,eIe,3,7,"button",20),E(2,tIe,3,7,"button",20),E(3,iIe,3,7,"button",20)),e&2){let t=w().$implicit;I(t.depositType.id===100?0:-1),a(),I(t.depositType.id===300?1:-1),a(),I(t.depositType.id===100?2:-1),a(),I(t.depositType.id===300?3:-1)}}function oIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",24),p(2,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(5,IEe,t.id)),a(),g("matTooltip",Le(m(2,3,"tooltips.Approve")))}}function aIe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(1,"i",25),p(2,"translate"),r(),l(3,"button",21),R("click",function(i){V(t);let s=w(4);return q(s.routeEdit(i))}),b(4,"i",26),p(5,"translate"),r()}if(e&2){let t=w().$implicit;g("routerLink",Nt(10,OEe,t.id)),a(),g("matTooltip",Le(m(2,6,"tooltips.Undo Approve"))),a(2),g("routerLink",Nt(12,AEe,t.id)),a(),g("matTooltip",Le(m(5,8,"tooltips.Activate")))}}function rIe(e,o){if(e&1&&(l(0,"td",13),E(1,nIe,4,4),E(2,oIe,3,7,"button",20),E(3,aIe,6,14),r()),e&2){let t=o.$implicit;a(),I(t.status.active?1:-1),a(),I(t.status.submittedAndPendingApproval?2:-1),a(),I(!t.status.submittedAndPendingApproval&&!t.status.active?3:-1)}}function lIe(e,o){e&1&&b(0,"tr",15)}function sIe(e,o){if(e&1&&b(0,"tr",16),e&2){let t=o.$implicit;g("routerLink",Nt(1,FEe,t.id))}}function cIe(e,o){if(e&1&&(l(0,"h3"),c(1),p(2,"translate"),r(),l(3,"table",3),X(4,4),F(5,UEe,3,3,"th",5)(6,WEe,4,6,"td",6),Z(),X(7,17),F(8,QEe,3,3,"th",5)(9,YEe,2,1,"td",6),Z(),X(10,18),F(11,JEe,3,3,"th",5)(12,KEe,2,1,"td",6),Z(),X(13,19),F(14,XEe,3,3,"th",5)(15,rIe,4,3,"td",6),Z(),F(16,lIe,1,0,"tr",10)(17,sIe,1,3,"tr",11),r()),e&2){let t=w(2);a(),h(m(2,4,"labels.heading.Savings Account Overview")),a(2),g("dataSource",t.savingsAccountData),a(13),g("matHeaderRowDef",t.savingsAccountColumns),a(),g("matRowDefColumns",t.savingsAccountColumns)}}function pIe(e,o){if(e&1&&E(0,cIe,18,6),e&2){let t=w();I(t.savingsAccountData.length>0?0:-1)}}var X2=(()=>{class e{constructor(){this.route=T(Ie),this.savingsAccountColumns=["Account No","Products","Balance","Actions"],this.groupsColumns=["Account No","Group Name","Office Name","Submitted On"],this.route.data.subscribe(t=>{this.centerSummaryData=t.centerSummaryData[0],this.centerViewData=t.centerViewData,this.savingsAccountData=t.savingsAccountData.savingsAccounts,this.groupResourceData=t.centerViewData.groupMembers})}routeEdit(t){t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:31,vars:34,consts:[[1,"tab-container","mat-typography"],[1,"layout-row","gap-32px","summary-details-container"],[1,"closedCenter"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","Account No"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Group Name"],["matColumnDef","Office Name"],["matColumnDef","Submitted On"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"matTooltip","ngClass"],["mat-header-row",""],["mat-row","",3,"routerLink"],["matColumnDef","Products"],["matColumnDef","Balance"],["matColumnDef","Actions"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-arrow-right",3,"matTooltip"],[1,"fa","fa-arrow-left",3,"matTooltip"],[1,"fa","fa-check",3,"matTooltip"],[1,"fa","fa-undo",3,"matTooltip"],[1,"fa","fa-power-off",3,"matTooltip"]],template:function(n,i){n&1&&(l(0,"div",0),E(1,kEe,4,3,"div"),l(2,"h3"),c(3),p(4,"translate"),r(),l(5,"div",1)(6,"p"),c(7),p(8,"translate"),b(9,"br"),c(10),p(11,"translate"),b(12,"br"),c(13),p(14,"translate"),b(15,"br"),c(16),p(17,"translate"),b(18,"br"),r(),l(19,"p"),c(20),p(21,"translate"),b(22,"br"),c(23),p(24,"translate"),b(25,"br"),c(26),p(27,"translate"),b(28,"br"),r()(),E(29,$Ee,18,6),E(30,pIe,1,1),r()),n&2&&(a(),I(i.centerViewData.status.value==="Closed"?1:-1),a(2),h(m(4,18,"labels.heading.Summary Details")),a(4),le(" ",m(8,20,"labels.inputs.Active Clients"),": ",i.centerSummaryData.activeClients),a(3),le(" ",m(11,22,"labels.inputs.Active Group Loans"),": ",i.centerSummaryData.activeGroupLoans),a(3),le(" ",m(14,24,"labels.inputs.Active Client Loans"),": ",i.centerSummaryData.activeClientLoans),a(3),le(" ",m(17,26,"labels.inputs.Active Overdue Group Loans"),": ",i.centerSummaryData.overdueGroupLoans),a(4),le(" ",m(21,28,"labels.inputs.Active Group Borrowers"),": ",i.centerSummaryData.activeGroupBorrowers),a(3),le(" ",m(24,30,"labels.inputs.Active Client Borrowers"),": ",i.centerSummaryData.activeClientBorrowers),a(3),le(" ",m(27,32,"labels.inputs.Active Overdue Client Loans"),": ",i.centerSummaryData.overdueClientLoans),a(3),I(i.groupResourceData.length>0?29:-1),a(),I(i.savingsAccountData!==void 0?30:-1))},dependencies:[ue,co,fe,Oe,xe,_t,It,xt,vt,bt,Ct,yt,si,St,Pt,wt,Tt,Pi,he,go],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .summary-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.closedCenter[_ngcontent-%COMP%]{text-align:center;color:red;font-size:2rem}"]})}}return e})();var Z2=(()=>{class e{constructor(){this.route=T(Ie),this.authenticationService=T(Wo),this.centersService=T(Jn),this.entityId=this.route.parent.parent.snapshot.params.centerId,this.addNote=this.addNote.bind(this),this.editNote=this.editNote.bind(this),this.deleteNote=this.deleteNote.bind(this)}ngOnInit(){let t=this.authenticationService.getCredentials();this.username=t.username,this.route.data.subscribe(n=>{this.entityNotes=n.centerNotes})}addNote(t){this.centersService.createCenterNote(this.entityId,t).subscribe(n=>{this.entityNotes.push({id:n.resourceId,createdByUsername:this.username,createdOn:new Date,note:t.note})})}editNote(t,n,i){this.centersService.editCenterNote(this.entityId,t,n).subscribe(()=>{this.entityNotes[i].note=n.note})}deleteNote(t,n){this.centersService.deleteCenterNote(this.entityId,t).subscribe(()=>{this.entityNotes.splice(n,1)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(n,i){n&1&&b(0,"mifosx-entity-notes-tab",0),n&2&&g("entityId",i.entityId)("entityNotes",i.entityNotes)("callbackAdd",i.addNote)("callbackEdit",i.editNote)("callbackDelete",i.deleteNote)},dependencies:[ue,fe,E0],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}"]})}}return e})();var ev=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("centerId"),this.route.data.subscribe(t=>{this.entityDatatable=t.centerDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Center",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var mIe=()=>["../general"];function dIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Center Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Center Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function fIe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function hIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activation Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gIe(e,o){if(e&1){let t=Y();X(0,11),R("click",function(){V(t);let i=ve(8);return q(i.open())}),l(1,"mat-form-field")(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",12)(6,"mat-datepicker-toggle",13)(7,"mat-datepicker",null,0),E(9,hIe,7,9,"mat-error"),r(),Z()}if(e&2){let t=ve(8),n=w();a(3),h(m(4,6,"labels.inputs.Activation Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.editCenterForm.controls.activationDate.hasError("required")?9:-1)}}var tv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.centerData=t.centerData,this.staffs=this.centerData.staffOptions})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditCenterForm()}createEditCenterForm(){let t=this.settingsService.dateFormat;this.editCenterForm=this.formBuilder.group({name:[this.centerData.name,[ce.required,ce.pattern("(^[A-z]).*")]],staffId:[this.centerData.staffId],externalId:[this.centerData.externalId]}),this.centerData.status.value==="Pending"&&this.editCenterForm.addControl("activationDate",new it(this.centerData.activationDate?this.centerData.activationDate:new Date,ce.required))}submit(){let t=this.editCenterForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat;if(this.centerData.status.value==="Pending"){let d=this.editCenterForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(d,i))}let s=qt(at({},t),{name:this.centerData.name,dateFormat:i,locale:n});this.centersService.executeEditCenter(this.centerData.id,s).subscribe(()=>{this.router.navigate(["../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-center"]],decls:32,vars:22,consts:[["activatedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["formControlName","staffId"],[3,"value"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,dIe,7,9,"mat-error"),E(11,uIe,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",5),Se(17,fIe,2,2,"mat-option",6,Pe),r()(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",7),r(),E(24,gIe,10,8,"ng-container"),r()(),l(25,"mat-card-actions",8)(26,"button",9),c(27),p(28,"translate"),r(),l(29,"button",10),c(30),p(31,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.editCenterForm),a(5),h(m(8,11,"labels.inputs.name")),a(3),I(i.editCenterForm.controls.name.hasError("required")?10:-1),a(),I(i.editCenterForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,13,"labels.inputs.Staff")),a(3),we(i.staffs),a(4),h(m(22,15,"labels.inputs.External Id")),a(3),I(i.centerData.status.value==="Pending"?24:-1),a(2),g("routerLink",oe(21,mIe)),a(),v(" ",m(28,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editCenterForm.valid),a(),v(" ",m(31,19,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var _Ie=()=>["../../"];function CIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Activated On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var iv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateCenterForm()}createActivateCenterForm(){this.activateCenterForm=this.formBuilder.group({activationDate:[new Date,ce.required]})}submit(){let t=this.activateCenterForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.activateCenterForm.value.activationDate;t.activationDate instanceof Date&&(t.activationDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.centersService.executeCenterActionCommand(this.centerId,"activate",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-activate-center"]],decls:20,vars:18,consts:[["activationDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activationDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"mat-form-field",3),R("click",function(){V(s);let u=ve(11);return q(u.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),E(12,CIe,7,9,"mat-error"),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()}if(n&2){let s=ve(11);a(2),g("formGroup",i.activateCenterForm),a(4),h(m(7,11,"labels.inputs.Activated On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.activateCenterForm.controls.activationDate.hasError("required")?12:-1),a(2),g("routerLink",oe(17,_Ie)),a(),v(" ",m(16,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.activateCenterForm.valid),a(),v(" ",m(19,15,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var vIe=()=>["../../"];function xIe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function bIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Staff")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var nv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.centerData=t.centersActionData})}ngOnInit(){this.staffData=this.centerData.staffOptions,this.createCenterAssignStaffForm()}createCenterAssignStaffForm(){this.centerAssignStaffForm=this.formBuilder.group({staffId:[""]})}submit(){this.centersService.executeGroupActionCommand(this.centerData.id,"assignStaff",this.centerAssignStaffForm.value).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-assign-staff"]],decls:20,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","staffId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,xIe,2,2,"mat-option",5,Pe),r(),E(12,bIe,7,9,"mat-error"),r()()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),l(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.centerAssignStaffForm),a(5),h(m(8,7,"labels.inputs.Staff")),a(3),we(i.staffData),a(2),I(i.centerAssignStaffForm.controls.staffId.hasError("required")?12:-1),a(2),g("routerLink",oe(13,vIe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerAssignStaffForm.valid),a(),v(" ",m(19,11,"labels.buttons.Confirm")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var yIe=()=>["../../"];function SIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closed On Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wIe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function PIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closure Reason")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function TIe(e,o){if(e&1&&(l(0,"button",13),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.closeCenterForm.valid),a(),v(" ",m(2,2,"labels.buttons.Confirm")," ")}}var ov=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.closureData=t.centeractionData.closureReasons}),this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseCenterForm()}createCloseCenterForm(){this.closeCenterForm=this.formBuilder.group({closureDate:["",ce.required],closureReasonId:["",ce.required]})}submit(){let t=this.closeCenterForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.closeCenterForm.value.closureDate;t.closureDate instanceof Date&&(t.closureDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.centersService.executeCenterActionCommand(this.centerId,"close",d).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-close-center"]],decls:27,vars:19,consts:[["closureDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closureDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-48"],["formControlName","closureReasonId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,SIe,7,9,"mat-error"),r(),l(14,"mat-form-field",7)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,wIe,2,2,"mat-option",9,Pe),r(),E(21,PIe,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",10)(23,"button",11),c(24),p(25,"translate"),r(),F(26,TIe,3,4,"button",12),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.closeCenterForm),a(5),h(m(8,12,"labels.inputs.Closed On Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.closeCenterForm.controls.closureDate.hasError("required")?13:-1),a(3),h(m(17,14,"labels.inputs.Closure Reason")),a(3),we(i.closureData),a(2),I(i.closeCenterForm.controls.closureReasonId.hasError("required")?21:-1),a(2),g("routerLink",oe(18,yIe)),a(),v(" ",m(25,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CLOSE_CENTER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var MIe=()=>["../../"];function DIe(e,o){if(e&1&&(l(0,"mat-option",16),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function EIe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function IIe(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),h($t(2,1,t.clientId,n.membersData,"id","displayName"))}}function OIe(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attendance")))}function AIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Present")))}function FIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Absent")))}function kIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved")))}function BIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Leave")))}function RIe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Late")))}function NIe(e,o){if(e&1){let t=Y();l(0,"td",19),F(1,AIe,3,3,"span",20)(2,FIe,3,3,"span",20)(3,kIe,3,3,"span",20)(4,BIe,3,3,"span",20)(5,RIe,3,3,"span",20),l(6,"button",21),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editAttendance(i))}),b(7,"fa-icon",22),r()()}if(e&2){let t=o.$implicit;g("ngSwitch",t.attendanceType),a(),g("ngSwitchCase",1),a(),g("ngSwitchCase",2),a(),g("ngSwitchCase",3),a(),g("ngSwitchCase",4),a(),g("ngSwitchCase",5)}}function LIe(e,o){e&1&&b(0,"tr",23)}function VIe(e,o){e&1&&b(0,"tr",24)}function qIe(e,o){if(e&1){let t=Y();l(0,"button",25),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Confirm")," "))}var av=(()=>{class e{constructor(){this.route=T(Ie),this.dateUtils=T(Zt),this.router=T(qe),this.centersService=T(Jn),this.settingsService=T(Ot),this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","attendance"],this.meetingDate=new it,this.dataSource=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.centerData=t.centersActionData,this.membersData=t.centersActionData.clients})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.membersData!==void 0&&this.membersData!==null&&(this.dataSource=this.membersData.map(t=>({clientId:t.id,attendanceType:1}))),this.meetingDates=this.centerData.collectionMeetingCalendar.recurringDates.filter(t=>new Date(t).getTime(){this.attendanceTypeOptions=t.attendanceTypeOptions})}editAttendance(t){let n=[new $i({controlName:"attendanceType",label:this.translateService.instant("labels.buttons.Attendance"),value:t.attendanceType,options:{label:"value",value:"id",data:this.attendanceTypeOptions},required:!1})],i={title:this.translateService.instant("labels.buttons.Assign Member")+" "+this.translateService.instant("labels.buttons.Attendance"),layout:{addButtonText:"Confirm"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=at(at({},t),d.data.value);this.dataSource.splice(this.dataSource.indexOf(t),1,u),this.dataSource=this.dataSource.concat([])}})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=new Date(this.meetingDate.value),s={meetingDate:this.dateUtils.formatDate(this.meetingDate.value,n),calendarId:this.centerData.collectionMeetingCalendar.id,clientsAttendance:this.dataSource,dateFormat:n,locale:t};this.centersService.assignCenterAttendance(this.centerData.id,this.centerData.collectionMeetingCalendar.id,s).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-attendance"]],decls:26,vars:20,consts:[[1,"container"],[1,"layout-column","gap-3percent"],[1,"flex-fill"],[3,"formControl"],[3,"value",4,"ngFor","ngForOf"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","attendance"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[3,"value"],["mat-header-cell",""],["mat-cell",""],["mat-cell","",3,"ngSwitch"],[4,"ngSwitchCase"],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),F(7,DIe,3,4,"mat-option",4),r(),l(8,"mat-hint"),c(9),p(10,"translate"),p(11,"dateFormat"),r()(),l(12,"table",5),X(13,6),F(14,EIe,3,3,"th",7)(15,IIe,3,6,"td",8),Z(),X(16,9),F(17,OIe,3,3,"th",7)(18,NIe,8,6,"td",10),Z(),F(19,LIe,1,0,"tr",11)(20,VIe,1,0,"tr",12),r(),l(21,"mat-card-actions",13)(22,"button",14),c(23),p(24,"translate"),r(),F(25,qIe,3,3,"button",15),r()()()),n&2&&(a(4),h(m(5,11,"labels.inputs.Meeting Date")),a(2),g("formControl",i.meetingDate),a(),g("ngForOf",i.meetingDates),a(2),le("",m(10,13,"labels.inputs.Next Meeting on"),": ",m(11,15,i.centerData.collectionMeetingCalendar.nextTenRecurringDates[0])),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(19,MIe)),a(),v(" ",m(24,17,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_MEETING"))},dependencies:[ue,ts,Ks,Xs,fe,$e,_n,Oe,Ue,Et,Fe,Be,qa,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,wi,ke,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var zIe=()=>["../../"];function HIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function GIe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function jIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Ie(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,GIe,2,2,"mat-option",12,Pe),r(),E(7,jIe,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Frequency")),a(3),we(t.frequencyOptions),a(2),I(t.centerMeetingForm.controls.frequency.hasError("repeatsOnDay")?7:-1)}}function UIe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function WIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function QIe(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",13),Se(5,UIe,2,2,"mat-option",12,Pe),r(),E(7,WIe,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repetition Interval")),a(3),we(t.repetitionIntervals),a(2),I(t.centerMeetingForm.controls.interval.hasError("repeatsOnDay")?7:-1)}}function YIe(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function JIe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function KIe(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),Se(5,YIe,2,2,"mat-option",12,Pe),r(),E(7,JIe,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.centerMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}var rv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.centersActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCenterMeetingForm(),this.buildDependencies()}createCenterMeetingForm(){this.centerMeetingForm=this.formBuilder.group({startDate:["",ce.required],repeating:[!1]})}buildDependencies(){this.centerMeetingForm.get("repeating").valueChanges.subscribe(t=>{t?(this.centerMeetingForm.addControl("frequency",new it),this.centerMeetingForm.addControl("interval",new it),this.centerMeetingForm.get("frequency").valueChanges.subscribe(n=>{switch(this.centerMeetingForm.removeControl("repeatsOnDay"),n){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.centerMeetingForm.addControl("repeatsOnDay",new it("",ce.required));break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.centerMeetingForm.patchValue({frequency:1,interval:"1"})):(this.centerMeetingForm.removeControl("frequency"),this.centerMeetingForm.removeControl("interval"))})}submit(){let t=this.centerMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`centers_${this.centerId}_CollectionMeeting`,d="1",u=this.centerMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{title:s,typeId:d,dateFormat:i,locale:n});this.centersService.createCenterMeeting(this.centerId,f).subscribe(_=>{this.router.navigate(["../../general"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-attach-center-meeting"]],decls:27,vars:24,consts:[["startDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","repeating",1,"m-t-10","m-b-10"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],["formControlName","repeatsOnDay","required",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,HIe,7,9,"mat-error"),r(),l(14,"mat-checkbox",7),c(15),p(16,"translate"),r(),E(17,$Ie,8,4,"mat-form-field"),E(18,QIe,8,4,"mat-form-field"),E(19,KIe,8,4,"mat-form-field"),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),l(24,"button",10),R("click",function(){return V(s),q(i.submit())}),c(25),p(26,"translate"),r()()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.centerMeetingForm),a(5),h(m(8,15,"labels.inputs.Meeting Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerMeetingForm.controls.startDate.hasError("required")?13:-1),a(2),v(" ",m(16,17,"labels.inputs.Repeats?")," "),a(2),I(i.centerMeetingForm.contains("frequency")?17:-1),a(),I(i.centerMeetingForm.contains("interval")?18:-1),a(),I(i.centerMeetingForm.contains("repeatsOnDay")?19:-1),a(2),g("routerLink",oe(23,zIe)),a(),v(" ",m(23,19,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerMeetingForm.valid),a(),v(" ",m(26,21,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var XIe=()=>["../../"];function ZIe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function e6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function t6e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function i6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repetition Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function n6e(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function o6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.At least")," "),a(3),h(m(5,5,"labels.inputs.one")),a(2),v(" ",m(7,7,"labels.inputs.day must be selected")," "))}function a6e(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,n6e,2,2,"mat-option",8,Pe),r(),E(7,o6e,8,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeats on Day")),a(3),we(t.repeatsOnDays),a(2),I(t.centerEditMeetingForm.controls.repeatsOnDay.hasError("repeatsOnDay")?7:-1)}}function r6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Changes Affection Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var lv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.centersActionData,this.frequencyOptions=this.calendarTemplate.frequencyOptions,this.repeatsOnDays=this.calendarTemplate.repeatsOnDayOptions}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditCenterMeetingForm(),this.buildDependencies()}createEditCenterMeetingForm(){this.centerEditMeetingForm=this.formBuilder.group({startDate:["",ce.required],frequency:["",ce.required],interval:["",ce.required]})}buildDependencies(){this.centerEditMeetingForm.get("frequency").valueChanges.subscribe(t=>{switch(this.centerEditMeetingForm.removeControl("repeatsOnDay"),t){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.centerEditMeetingForm.addControl("repeatsOnDay",new it("",ce.required)),this.centerEditMeetingForm.get("repeatsOnDay").patchValue(this.calendarTemplate.repeatsOnDay.id);break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}}),this.centerEditMeetingForm.patchValue({startDate:this.calendarTemplate.startDate&&new Date(this.calendarTemplate.startDate),frequency:this.calendarTemplate.frequency.id,interval:`${this.calendarTemplate.interval}`})}editSchedule(){let t={calendarId:this.calendarId};this.router.navigate(["../Edit Meeting Schedule"],{relativeTo:this.route,queryParams:t})}submit(){let t=this.centerEditMeetingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=`centers_${this.centerId}_CollectionMeeting`,d="1",u=this.centerEditMeetingForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{repeating:!0,title:s,typeId:d,dateFormat:i,locale:n});this.centersService.updateCenterMeeting(this.centerId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-center-meeting"]],decls:46,vars:33,consts:[["startDatePicker",""],[1,"container","m-b-20","layout-row","align-end"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","frequency"],[3,"value"],["formControlName","interval"],[1,"m-b-5",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],["formControlName","repeatsOnDay","required",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"button",2),R("click",function(){return V(s),q(i.editSchedule())}),b(2,"fa-icon",3),c(3),p(4,"translate"),r()(),l(5,"div",4)(6,"mat-card")(7,"form",5)(8,"mat-card-content")(9,"div",6)(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",7),Se(15,ZIe,2,2,"mat-option",8,Pe),r(),E(17,e6e,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),l(22,"mat-select",9),Se(23,t6e,2,2,"mat-option",8,Pe),r(),E(25,i6e,7,9,"mat-error"),r(),E(26,a6e,8,4,"mat-form-field"),l(27,"mat-form-field",10),R("click",function(){V(s);let u=ve(34);return q(u.open())}),l(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",11)(32,"mat-datepicker-toggle",12)(33,"mat-datepicker",null,0),E(35,r6e,7,9,"mat-error"),l(36,"mat-hint"),c(37),p(38,"translate"),r()()()(),l(39,"mat-card-actions",13)(40,"button",14),c(41),p(42,"translate"),r(),l(43,"button",15),R("click",function(){return V(s),q(i.submit())}),c(44),p(45,"translate"),r()()()()()}if(n&2){let s=ve(34);a(3),v(" ",m(4,18,"labels.buttons.Edit Schedule")," "),a(4),g("formGroup",i.centerEditMeetingForm),a(5),h(m(13,20,"labels.inputs.Repetition Frequency")),a(3),we(i.frequencyOptions),a(2),I(i.centerEditMeetingForm.controls.frequency.hasError("repeatsOnDay")?17:-1),a(3),h(m(21,22,"labels.inputs.Repetition Interval")),a(3),we(i.repetitionIntervals),a(2),I(i.centerEditMeetingForm.controls.interval.hasError("repeatsOnDay")?25:-1),a(),I(i.centerEditMeetingForm.contains("repeatsOnDay")?26:-1),a(3),h(m(30,24,"labels.inputs.Above Changes are Effective from")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerEditMeetingForm.controls.startDate.hasError("required")?35:-1),a(2),v(" ",m(38,26,"labels.text.Repeats' and 'Repeats every")," "),a(3),g("routerLink",oe(32,XIe)),a(),v(" ",m(42,28,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerEditMeetingForm.valid),a(),v(" ",m(45,30,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,qa,ze,gt,ft,mi,di,pi,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var l6e=()=>["../../"];function s6e(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",m(2,2,t)," ")}}function c6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Existing Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function p6e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Revised Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var sv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centersService=T(Jn),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.calendarTemplate=t.centersActionData,this.nextMeetingDates=this.calendarTemplate.nextTenRecurringDates}),this.calendarId=this.route.snapshot.queryParams.calendarId,this.centerId=this.route.parent.snapshot.params.centerId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditMeetingScheduleForm()}createEditMeetingScheduleForm(){this.centerEditMeetingScheduleForm=this.formBuilder.group({presentMeetingDate:["",ce.required],newMeetingDate:["",ce.required]})}submit(){let t=this.centerEditMeetingScheduleForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=!0,d=new Date(this.centerEditMeetingScheduleForm.value.presentMeetingDate);t.startDate instanceof Date&&(t.presentMeetingDate=this.dateUtils.formatDate(d,i));let u=this.centerEditMeetingScheduleForm.value.newMeetingDate;t.newMeetingDate instanceof Date&&(t.newMeetingDate=this.dateUtils.formatDate(u,i));let f=qt(at({},t),{reschedulebasedOnMeetingDates:s,dateFormat:i,locale:n});this.centersService.updateCenterMeeting(this.centerId,f,this.calendarId).subscribe(_=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-center-meeting-schedule"]],decls:29,vars:22,consts:[["newMeetingDatePicker",""],[1,"container"],[3,"formGroup"],[1,"layout-column"],["formControlName","presentMeetingDate"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","newMeetingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2)(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,s6e,3,4,"mat-option",5,Pe),r(),E(12,c6e,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,p6e,7,9,"mat-error"),r()()(),l(22,"mat-card-actions",9)(23,"button",10),c(24),p(25,"translate"),r(),l(26,"button",11),R("click",function(){return V(s),q(i.submit())}),c(27),p(28,"translate"),r()()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.centerEditMeetingScheduleForm),a(5),h(m(8,13,"labels.inputs.Existing Meeting Date")),a(3),we(i.nextMeetingDates),a(2),I(i.centerEditMeetingScheduleForm.controls.presentMeetingDate.hasError("repeatsOnDay")?12:-1),a(3),h(m(16,15,"labels.inputs.Revised Meeting Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.centerEditMeetingScheduleForm.controls.newMeetingDate.hasError("required")?21:-1),a(2),g("routerLink",oe(21,l6e)),a(),v(" ",m(25,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.centerEditMeetingScheduleForm.valid),a(),v(" ",m(28,19,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();function m6e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function d6e(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"span",17),c(2),r(),l(3,"button",18),R("click",function(){let i=V(t),s=i.$implicit,d=i.$index,u=w(2);return q(u.removeGroup(d,s))}),b(4,"fa-icon",19),r()()}if(e&2){let t=o.$implicit;a(2),h(t.name)}}function u6e(e,o){if(e&1&&(l(0,"mat-nav-list"),Se(1,d6e,5,1,"div",16,Pe),r()),e&2){let t=w();a(),we(t.groupMembers)}}var cv=(()=>{class e{constructor(){this.route=T(Ie),this.centersService=T(Jn),this.groupsService=T(On),this.dialog=T(Ht),this.groupsData=[],this.groupMembers=[],this.groupChoice=new it(""),this.route.data.subscribe(t=>{this.centerData=t.centersActionData,this.groupMembers=t.centersActionData.groupMembers})}ngAfterViewInit(){this.groupChoice.valueChanges.subscribe(t=>{t.length>=2&&this.groupsService.getFilteredGroups("name","ASC",t,this.centerData.officeId,"true").subscribe(n=>{this.groupsData=n})})}addGroup(){this.groupMembers!==null&&this.groupMembers!==void 0?this.groupMembers.includes(this.groupChoice.value)||this.centersService.executeCenterActionCommand(this.centerData.id,"associateGroups",{groupMembers:[this.groupChoice.value.id]}).subscribe(()=>{this.groupMembers.push(this.groupChoice.value)}):this.centersService.executeCenterActionCommand(this.centerData.id,"associateGroups",{groupMembers:[this.groupChoice.value.id]}).subscribe(()=>{this.groupMembers.push(this.groupChoice.value)})}removeGroup(t,n){this.dialog.open(vi,{data:{deleteContext:`group member: ${n.name}`}}).afterClosed().subscribe(s=>{s.delete&&this.centersService.executeCenterActionCommand(this.centerData.id,"disassociateGroups",{groupMembers:[n.id]}).subscribe(()=>{this.groupMembers.splice(t,1)})})}displayGroup(t){return t?t.name:void 0}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-groups"]],decls:41,vars:25,consts:[["groupsAutocomplete","matAutocomplete"],[1,"container","layout-row","gap-3percent"],[1,"group-card","flex-fill","layout-column","gap-2percent"],[1,"flex-30"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption","",3,"displayWith"],[3,"value"],[1,"mat-table"],[1,"mat-header-row"],[1,"mat-header-cell"],["mat-icon-button","",3,"click"],["icon","plus"],[1,"mat-row"],[1,"mat-cell"],[1,"flex-50"],["matSubheader",""],["mat-list-item","",1,"member-item","center-gap"],["matLine","",1,"p-t-10"],["mat-icon-button","","color","warn","aria-label","Remove group",1,"delete-btn",3,"click"],["icon","trash"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),r(),l(7,"mat-autocomplete",5,0),Se(9,m6e,2,2,"mat-option",6,Pe),r(),l(11,"div",7)(12,"div",8)(13,"div",9),c(14),p(15,"translate"),r(),l(16,"button",10),R("click",function(){return V(s),q(i.addGroup())}),b(17,"fa-icon",11),r()(),l(18,"div",12)(19,"div",13),c(20),p(21,"translate"),r(),l(22,"div",13),c(23),r()(),l(24,"div",12)(25,"div",13),c(26),p(27,"translate"),r(),l(28,"div",13),c(29),r()(),l(30,"div",12)(31,"div",13),c(32),p(33,"translate"),r(),l(34,"div",13),c(35),r()()()(),l(36,"mat-card",14)(37,"h3",15),c(38),p(39,"translate"),r(),E(40,u6e,3,0,"mat-nav-list"),r()()}if(n&2){let s=ve(8);a(4),h(m(5,13,"labels.inputs.Add Groups")),a(2),g("formControl",i.groupChoice)("matAutocomplete",s),a(),g("displayWith",i.displayGroup),a(2),we(i.groupsData),a(5),h(m(15,15,"labels.inputs.Group Details")),a(6),h(m(21,17,"labels.inputs.name")),a(3),h(i.groupChoice.value.name),a(3),h(m(27,19,"labels.inputs.Id")),a(3),h(i.groupChoice.value.id),a(3),h(m(33,21,"labels.inputs.Office")),a(3),h(i.groupChoice.value.officeName),a(3),h(m(39,23,"labels.heading.Group Members")),a(2),I(i.groupMembers!=null&&i.groupMembers.length?40:-1)}},dependencies:[ue,fe,st,$e,_n,Ue,Fe,Be,ze,ft,er,Za,wi,ke,Ep,pa,ca,he],styles:[".container[_ngcontent-%COMP%]{max-width:70rem}.container[_ngcontent-%COMP%] .mat-table[_ngcontent-%COMP%]{display:block;font-family:Roboto,Helvetica Neue,sans-serif;width:100%;margin-top:-2rem;padding:1.5rem}.container[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-row[_ngcontent-%COMP%]{display:flex;border-bottom:1px solid var(--border-color-light, #eee);color:var(--text-color, inherit);font-weight:500;align-items:center;min-height:48px;padding:0 24px}.container[_ngcontent-%COMP%] .mat-cell[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] .mat-header-cell[_ngcontent-%COMP%]{flex:1;overflow:hidden;word-wrap:break-word;flex-direction:column}.container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{padding-left:0;margin-bottom:0;font-weight:500;border-bottom:2px solid var(--border-color-light, #eee);padding-bottom:1rem}.container[_ngcontent-%COMP%] .group-card[_ngcontent-%COMP%]{max-height:20rem;margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .p-t-10[_ngcontent-%COMP%]{padding-top:10px;font-weight:500;margin-left:1rem}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{max-height:20rem;margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .member-item[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem;padding:.25rem 0}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .center-gap[_ngcontent-%COMP%]{display:flex;align-items:center;gap:.5rem}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .member-item[_ngcontent-%COMP%] .p-t-10[_ngcontent-%COMP%]{margin:0;font-weight:500}.container[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%] .mat-nav-list[_ngcontent-%COMP%] .delete-btn[_ngcontent-%COMP%]{margin-left:.25rem}"]})}}return e})();var f6e=()=>["../../"],pv=(()=>{class e{constructor(){this.sanitizer=T(Zs),this.route=T(Ie),this.route.data.subscribe(t=>{this.staffAssignmentHistoryData=t.centersActionData})}ngOnInit(){let t=this.staffAssignmentHistoryData.headers.get("Content-Type"),n=new Blob([this.staffAssignmentHistoryData.body],{type:t}),i=URL.createObjectURL(n);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-staff-assignment-history"]],decls:7,vars:6,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(n,i){n&1&&(l(0,"mat-card",0)(1,"div",1)(2,"button",2),b(3,"fa-icon",3),c(4),p(5,"translate"),r()(),b(6,"iframe",4),r()),n&2&&(a(2),g("routerLink",oe(5,f6e)),a(2),v("",m(5,3,"labels.buttons.Back")," "),a(2),g("src",i.pentahoUrl,hg))},dependencies:[ue,fe,Oe,Ue,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:60rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]})}}return e})();function h6e(e,o){e&1&&b(0,"mifosx-activate-center")}function g6e(e,o){e&1&&b(0,"mifosx-center-assign-staff")}function _6e(e,o){e&1&&b(0,"mifosx-close-center")}function C6e(e,o){e&1&&b(0,"mifosx-center-attendance")}function v6e(e,o){e&1&&b(0,"mifosx-attach-center-meeting")}function x6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting")}function b6e(e,o){e&1&&b(0,"mifosx-edit-center-meeting-schedule")}function y6e(e,o){e&1&&b(0,"mifosx-manage-groups")}function S6e(e,o){e&1&&b(0,"mifosx-staff-assignment-history")}var mv=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.actions={Activate:!1,"Assign Staff":!1,Close:!1,Attendance:!1,"Attach Meeting":!1,"Edit Meeting":!1,"Edit Meeting Schedule":!1,"Manage Groups":!1,"Staff Assignment History":!1},this.router.routeReuseStrategy.shouldReuseRoute=()=>!1;let t=this.route.snapshot.params.action;t&&t in this.actions&&(this.actions[t]=!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-center-actions"]],decls:9,vars:9,template:function(n,i){n&1&&(E(0,h6e,1,0,"mifosx-activate-center"),E(1,g6e,1,0,"mifosx-center-assign-staff"),E(2,_6e,1,0,"mifosx-close-center"),E(3,C6e,1,0,"mifosx-center-attendance"),E(4,v6e,1,0,"mifosx-attach-center-meeting"),E(5,x6e,1,0,"mifosx-edit-center-meeting"),E(6,b6e,1,0,"mifosx-edit-center-meeting-schedule"),E(7,y6e,1,0,"mifosx-manage-groups"),E(8,S6e,1,0,"mifosx-staff-assignment-history")),n&2&&(I(i.actions.Activate?0:-1),a(),I(i.actions["Assign Staff"]?1:-1),a(),I(i.actions.Close?2:-1),a(),I(i.actions.Attendance?3:-1),a(),I(i.actions["Attach Meeting"]?4:-1),a(),I(i.actions["Edit Meeting"]?5:-1),a(),I(i.actions["Edit Meeting Schedule"]?6:-1),a(),I(i.actions["Manage Groups"]?7:-1),a(),I(i.actions["Staff Assignment History"]?8:-1))},dependencies:[ue,fe,iv,nv,ov,av,rv,lv,sv,cv,pv],encapsulation:2})}}return e})();var Jf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.paramMap.get("centerId");return this.centersService.getCenterData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Kf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getSavingsAccountDetails(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Xf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getCenterData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Zf=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getCenterSummary(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var e1=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.parent.paramMap.get("centerId");return this.centersService.getCenterNotes(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var t1=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.parent.paramMap.get("centerId"),i=t.paramMap.get("datatableName");return this.centersService.getCenterDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var i1=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(){return this.centersService.getcenterDatatables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var f5=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.paramMap.get("action"),i=t.paramMap.get("centerId")||t.parent.parent.paramMap.get("centerId");switch(n){case"Assign Staff":return this.centersService.getGroupStaffData(i);case"Attendance":return this.centersService.getCentersData(i,"groupMembers,collectionMeetingCalendar");case"Manage Groups":return this.centersService.getCentersData(i,"groupMembers","true");case"Attach Meeting":return this.centersService.getCalendarTemplate(i);case"Edit Meeting":case"Edit Meeting Schedule":let s=t.queryParamMap.get("calendarId");return this.centersService.getCalendarAndTemplate(i,s);case"Staff Assignment History":return this.centersService.getStaffAssignmentHistoryData("Staff Assignment History",i,"default","en");default:return}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var h5=(()=>{class e{constructor(){this.centersService=T(Jn)}resolve(t){let n=t.parent.paramMap.get("centerId");return this.centersService.getCenterAndTemplateData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var w6e=[_o.withShell([{path:"centers",data:{title:"Centers",breadcrumb:"Centers"},children:[{path:"",component:Y2},{path:"create",component:J2,data:{title:"Create Center",breadcrumb:"Create"},resolve:{offices:zr}},{path:":centerId",data:{title:"Centers View",routeParamBreadcrumb:"centerId"},resolve:{centerViewData:Jf},children:[{path:"",component:K2,resolve:{centerDatatables:i1},children:[{path:"general",component:X2,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{centerSummaryData:Zf,centerViewData:Xf,savingsAccountData:Kf}},{path:"notes",component:Z2,data:{title:"Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{centerNotes:e1}},{path:"datatables",children:[{path:":datatableName",component:ev,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{centerDatatable:t1}}]}]},{path:"actions/:action",data:{title:"Center Actions",breadcrumb:"action",routeParamBreadcrumb:"action"},component:mv,resolve:{centersActionData:f5}},{path:"edit",component:tv,data:{title:"Edit Center",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{centerData:h5}}]}]}])],rN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,Jf,Kf,Xf,Zf,e1,t1,i1,f5,h5],imports:[gn.forChild(w6e),gn]})}}return e})();var lN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[Jf,t1,i1,Zf,Xf,Kf,e1],imports:[oo,rN,ha,Er,Y2,J2,K2,X2,Z2,ev,mv,iv,nv,ov,av,rv,lv,sv,cv,pv,tv]})}}return e})();var P6e=["chartofAccounts"],T6e=["templateChartofAccounts"],M6e=["accountsLinked"],D6e=["templateAccountsLinked"],E6e=["migrateOpeningBalances"],I6e=["templateMigrateOpeningBalances"],O6e=["closingEntries"],A6e=["templateClosingEntries"],F6e=["createJournalEntries"],k6e=["templateCreateJournalEntries"],sN=()=>["journal-entries/frequent-postings"],cN=()=>["journal-entries/create"],pN=()=>["journal-entries"],mN=()=>["financial-activity-mappings"],dN=()=>["migrate-opening-balances"],uN=()=>["chart-of-accounts"],fN=()=>["closing-entries"],hN=()=>["accounting-rules"],gN=()=>["periodic-accruals"],_N=()=>["provisioning-entries"];function B6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,sN)),a(),v(" ",m(2,2,"labels.text.These are predefined postings")," "))}function R6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function N6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function L6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",17),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,B6e,3,5,"p",19),r()(),l(9,"div",20),E(10,R6e,1,0,"fa-icon",21),E(11,N6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,sN)),a(4),v(" ",m(7,5,"labels.heading.Frequent Postings")," "),a(2),I(t.arrowBooleans[0]?8:-1),a(2),I(t.arrowBooleans[0]?-1:10),a(),I(t.arrowBooleans[0]?11:-1)}}function V6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,cN)),a(),v(" ",m(2,2,"labels.text.Manual journal entry transactions recorded in a journal")," "))}function q6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function z6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function H6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",25),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,V6e,3,5,"p",19),r()(),l(9,"div",20),E(10,q6e,1,0,"fa-icon",21),E(11,z6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,cN)),a(4),v(" ",m(7,5,"labels.heading.Create Journal Entries")," "),a(2),I(t.arrowBooleans[1]?8:-1),a(2),I(t.arrowBooleans[1]?-1:10),a(),I(t.arrowBooleans[1]?11:-1)}}function G6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,pN)),a(),v(" ",m(2,2,"labels.text.Advanced search option for journal entries")," "))}function j6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function $6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function U6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",26),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,G6e,3,5,"p",19),r()(),l(9,"div",20),E(10,j6e,1,0,"fa-icon",21),E(11,$6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,pN)),a(4),v(" ",m(7,5,"labels.heading.Search Journal Entries")," "),a(2),I(t.arrowBooleans[2]?8:-1),a(2),I(t.arrowBooleans[2]?-1:10),a(),I(t.arrowBooleans[2]?11:-1)}}function W6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,mN)),a(),v(" ",m(2,2,"labels.text.List of Financial Activities and GL Account Mappings")," "))}function Q6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function Y6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function J6e(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",27),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,W6e,3,5,"p",19),r()(),l(9,"div",20),E(10,Q6e,1,0,"fa-icon",21),E(11,Y6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,mN)),a(4),v(" ",m(7,5,"labels.heading.Accounts Linked to Financial Activities")," "),a(2),I(t.arrowBooleans[3]?8:-1),a(2),I(t.arrowBooleans[3]?-1:10),a(),I(t.arrowBooleans[3]?11:-1)}}function K6e(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,dN)),a(),v(" ",m(2,2,"labels.text.Set or update office-level opening balances for GL accounts")," "))}function X6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function Z6e(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function eOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",28),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,K6e,3,5,"p",19),r()(),l(9,"div",20),E(10,X6e,1,0,"fa-icon",21),E(11,Z6e,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,dN)),a(4),v(" ",m(7,5,"labels.heading.Migrate Opening Balances (Office-wise)")," "),a(2),I(t.arrowBooleans[4]?8:-1),a(2),I(t.arrowBooleans[4]?-1:10),a(),I(t.arrowBooleans[4]?11:-1)}}function tOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,uN)),a(),v(" ",m(2,2,"labels.text.List of accounts used by the organization")," "))}function iOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function nOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function oOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",29),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,tOe,3,5,"p",19),r()(),l(9,"div",20),E(10,iOe,1,0,"fa-icon",21),E(11,nOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,uN)),a(4),v(" ",m(7,5,"labels.heading.Chart of Accounts")," "),a(2),I(t.arrowBooleans[5]?8:-1),a(2),I(t.arrowBooleans[5]?-1:10),a(),I(t.arrowBooleans[5]?11:-1)}}function aOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,fN)),a(),v(" ",m(2,2,"labels.text.Journal entries made at the end of accounting period")," "))}function rOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function lOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function sOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",30),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,aOe,3,5,"p",19),r()(),l(9,"div",20),E(10,rOe,1,0,"fa-icon",21),E(11,lOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,fN)),a(4),v(" ",m(7,5,"labels.heading.Closing Entries")," "),a(2),I(t.arrowBooleans[6]?8:-1),a(2),I(t.arrowBooleans[6]?-1:10),a(),I(t.arrowBooleans[6]?11:-1)}}function cOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,hN)),a(),v(" ",m(2,2,"labels.text.List of all accounting rules")," "))}function pOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function mOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function dOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",31),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,cOe,3,5,"p",19),r()(),l(9,"div",20),E(10,pOe,1,0,"fa-icon",21),E(11,mOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,hN)),a(4),v(" ",m(7,5,"labels.heading.Accounting Rules")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function uOe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,gN)),a(),v(" ",m(2,2,"labels.text.Accrues income, expenses and liabilities")," "))}function fOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function hOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function gOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",32),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,uOe,3,5,"p",19),r()(),l(9,"div",20),E(10,fOe,1,0,"fa-icon",21),E(11,hOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,gN)),a(4),v(" ",m(7,5,"labels.heading.Accruals")," "),a(2),I(t.arrowBooleans[8]?8:-1),a(2),I(t.arrowBooleans[8]?-1:10),a(),I(t.arrowBooleans[8]?11:-1)}}function _Oe(e,o){e&1&&(l(0,"p",19),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,_N)),a(),v(" ",m(2,2,"labels.text.Create provisioning entries")," "))}function COe(e,o){if(e&1){let t=Y();l(0,"fa-icon",23),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function vOe(e,o){if(e&1){let t=Y();l(0,"fa-icon",24),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function xOe(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",14)(2,"div",15)(3,"mat-icon",16),b(4,"fa-icon",33),r(),l(5,"div",18),c(6),p(7,"translate"),E(8,_Oe,3,5,"p",19),r()(),l(9,"div",20),E(10,COe,1,0,"fa-icon",21),E(11,vOe,1,0,"fa-icon",22),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,_N)),a(4),v(" ",m(7,5,"labels.heading.Provisioning Entries")," "),a(2),I(t.arrowBooleans[9]?8:-1),a(2),I(t.arrowBooleans[9]?-1:10),a(),I(t.arrowBooleans[9]?11:-1)}}function bOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepChartofAccounts())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepChartofAccounts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Chart of Accounts")),a(3),h(m(5,7,"labels.text.The Chart of Accounts - General Ledger Setup")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function yOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",38),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepAccountsLinked())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepAccountsLinked())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Accounts Linked to Financial Activities")),a(3),h(m(5,7,"labels.text.Accounts linked to Financial Activities")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function SOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",38),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepMigrateOpeningBalances())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepMigrateOpeningBalances())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Migrate Opening Balances (Office-wise)")),a(3),h(m(5,7,"labels.text.GLAccount Balances Application")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function wOe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepClosingEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepClosingEntries())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Closing Entries")),a(3),h(m(5,7,"labels.text.Accounting to journal entries")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function POe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepCreateJournalEntries())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepCreateJournalEntries())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Journal Entries")),a(3),h(m(5,7,"labels.text.Journal Entries Transactions")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var dv=(()=>{class e{constructor(){this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.arrowBooleans=new Array(10).fill(!1)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showChartofAccounts===!0&&setTimeout(()=>{this.showPopover(this.templateChartofAccounts,this.chartofAccounts.nativeElement,"bottom",!0)}),this.configurationWizardService.showAccountsLinked===!0&&setTimeout(()=>{this.showPopover(this.templateAccountsLinked,this.accountsLinked.nativeElement,"bottom",!0)}),this.configurationWizardService.showMigrateOpeningBalances===!0&&setTimeout(()=>{this.showPopover(this.templateMigrateOpeningBalances,this.migrateOpeningBalances.nativeElement,"bottom",!0)}),this.configurationWizardService.showClosingEntries===!0&&setTimeout(()=>{this.showPopover(this.templateClosingEntries,this.closingEntries.nativeElement,"bottom",!0)}),this.configurationWizardService.showCreateJournalEntries===!0&&setTimeout(()=>{this.showPopover(this.templateCreateJournalEntries,this.createJournalEntries.nativeElement,"bottom",!0)})}nextStepChartofAccounts(){this.configurationWizardService.showChartofAccounts=!1,this.configurationWizardService.showChartofAccountsPage=!0,this.router.navigate(["/accounting/chart-of-accounts"])}previousStepChartofAccounts(){this.configurationWizardService.showChartofAccounts=!1,this.configurationWizardService.showSchedulerJobsList=!0,this.router.navigate(["/system/scheduler-jobs"])}nextStepAccountsLinked(){this.configurationWizardService.showAccountsLinked=!1,this.configurationWizardService.showAccountsLinkedPage=!0,this.router.navigate(["/accounting/financial-activity-mappings"])}previousStepAccountsLinked(){this.configurationWizardService.showAccountsLinked=!1,this.configurationWizardService.showChartofAccountsForm=!0,this.router.navigate(["/accounting/chart-of-accounts/gl-accounts/create"])}nextStepMigrateOpeningBalances(){this.router.navigate(["/accounting/migrate-opening-balances"])}previousStepMigrateOpeningBalances(){this.configurationWizardService.showMigrateOpeningBalances=!1,this.configurationWizardService.showAccountsLinkedList=!0,this.router.navigate(["accounting/financial-activity-mappings"])}nextStepClosingEntries(){this.configurationWizardService.showClosingEntries=!1,this.configurationWizardService.showClosingEntriesPage=!0,this.router.navigate(["/accounting/closing-entries"])}previousStepClosingEntries(){this.configurationWizardService.showClosingEntries=!1,this.configurationWizardService.showMigrateOpeningBalances=!0,this.router.navigate(["/accounting/migrate-opening-balances"])}nextStepCreateJournalEntries(){this.router.navigate(["/accounting/journal-entries/create"])}previousStepCreateJournalEntries(){this.configurationWizardService.showCreateJournalEntries=!1,this.configurationWizardService.showClosingEntriesList=!0,this.router.navigate(["/accounting/closing-entries"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-accounting"]],viewQuery:function(n,i){if(n&1&&(Ee(P6e,5),Ee(T6e,5),Ee(M6e,5),Ee(D6e,5),Ee(E6e,5),Ee(I6e,5),Ee(O6e,5),Ee(A6e,5),Ee(F6e,5),Ee(k6e,5)),n&2){let s;Te(s=Me())&&(i.chartofAccounts=s.first),Te(s=Me())&&(i.templateChartofAccounts=s.first),Te(s=Me())&&(i.accountsLinked=s.first),Te(s=Me())&&(i.templateAccountsLinked=s.first),Te(s=Me())&&(i.migrateOpeningBalances=s.first),Te(s=Me())&&(i.templateMigrateOpeningBalances=s.first),Te(s=Me())&&(i.closingEntries=s.first),Te(s=Me())&&(i.templateClosingEntries=s.first),Te(s=Me())&&(i.createJournalEntries=s.first),Te(s=Me())&&(i.templateCreateJournalEntries=s.first)}},decls:37,vars:10,consts:[["createJournalEntries",""],["accountsLinked",""],["migrateOpeningBalances",""],["chartofAccounts",""],["closingEntries",""],["templateChartofAccounts",""],["templateAccountsLinked",""],["templateMigrateOpeningBalances",""],["templateClosingEntries",""],["templateCreateJournalEntries",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[4,"mifosxHasPermission"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","sync","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","plus","size","sm"],["icon","search","size","sm"],["icon","link","size","sm"],["icon","hand-holding-usd","size","sm"],["icon","sitemap","size","sm"],["icon","archive","size","sm"],["icon","list","size","sm"],["icon","calendar","size","sm"],["icon","cogs","size","sm"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"mw400"]],template:function(n,i){n&1&&(l(0,"div",10)(1,"mat-card")(2,"div",11)(3,"div",12)(4,"mat-nav-list"),F(5,L6e,12,8,"mat-list-item",13),l(6,"div",null,0),F(8,H6e,12,8,"mat-list-item",13),r(),F(9,U6e,12,8,"mat-list-item",13),l(10,"div",null,1),F(12,J6e,12,8,"mat-list-item",13),r(),l(13,"div",null,2),F(15,eOe,12,8,"mat-list-item",13),r()()(),l(16,"div",12)(17,"mat-nav-list")(18,"div",null,3),F(20,oOe,12,8,"mat-list-item",13),r(),l(21,"div",null,4),F(23,sOe,12,8,"mat-list-item",13),r(),F(24,dOe,12,8,"mat-list-item",13)(25,gOe,12,8,"mat-list-item",13)(26,xOe,12,8,"mat-list-item",13),r()()()()(),F(27,bOe,16,15,"ng-template",null,5,ti)(29,yOe,16,15,"ng-template",null,6,ti)(31,SOe,16,15,"ng-template",null,7,ti)(33,wOe,16,15,"ng-template",null,8,ti)(35,POe,16,15,"ng-template",null,9,ti)),n&2&&(a(5),g("mifosxHasPermission","CREATE_JOURNALENTRY"),a(3),g("mifosxHasPermission","CREATE_JOURNALENTRY"),a(),g("mifosxHasPermission","READ_JOURNALENTRY"),a(3),g("mifosxHasPermission","READ_FINANCIALACTIVITYACCOUNT"),a(3),g("mifosxHasPermission","READ_JOURNALENTRY"),a(5),g("mifosxHasPermission","READ_GLACCOUNT"),a(3),g("mifosxHasPermission","READ_GLCLOSURE"),a(),g("mifosxHasPermission","READ_ACCOUNTINGRULE"),a(),g("mifosxHasPermission","EXECUTE_PERIODICACCRUALACCOUNTING"),a(),g("mifosxHasPermission","VIEW_PROVISIONING_ENTRIES"))},dependencies:[ue,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var TOe=()=>["../../"];function MOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function DOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function EOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function IOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accounting Rule")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.displayLabel," ")}}function AOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function kOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Affected GL Entry (Debit)")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function BOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ROe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",35),r()}}function NOe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",37),r()}}function LOe(e,o){if(e&1&&(l(0,"div",10)(1,"div",27)(2,"mat-form-field",4)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",28),Se(7,FOe,2,2,"mat-option",6,Pe),r(),E(9,kOe,7,9,"mat-error"),r(),l(10,"mat-form-field",29)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",30),E(15,BOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,ROe,2,0,"button",32),E(18,NOe,2,0,"button",33),r()()()),e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(3),h(m(5,7,"labels.inputs.Affected GL Entry (Debit)")),a(3),we(n.debitAccountData),a(2),I(n.debits.at(t).controls.glAccountId.hasError("required")?9:-1),a(3),h(m(13,9,"labels.inputs.Debit Amount")),a(3),I(n.debits.at(t).controls.amount.hasError("required")?15:-1),a(2),I(t!==0?17:-1),a(),I(t===0&&n.allowMultipleDebitEntries?18:-1)}}function VOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function qOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Affected GL Entry (Credit)")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function HOe(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",35),r()}}function GOe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",37),r()}}function jOe(e,o){if(e&1&&(l(0,"div",11)(1,"div",27)(2,"mat-form-field",4)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",28),Se(7,VOe,2,2,"mat-option",6,Pe),r(),E(9,qOe,7,9,"mat-error"),r(),l(10,"mat-form-field",29)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",30),E(15,zOe,7,9,"mat-error"),r(),l(16,"span",31),E(17,HOe,2,0,"button",32),E(18,GOe,2,0,"button",33),r()()()),e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(3),h(m(5,7,"labels.inputs.Affected GL Entry (Credit)")),a(3),we(n.creditAccountData),a(2),I(n.credits.at(t).controls.glAccountId.hasError("required")?9:-1),a(3),h(m(13,9,"labels.inputs.Credit Amount")),a(3),I(n.credits.at(t).controls.amount.hasError("required")?15:-1),a(2),I(t!==0?17:-1),a(),I(t===0&&n.allowMultipleCreditEntries?18:-1)}}function $Oe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function UOe(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function WOe(e,o){if(e&1&&(l(0,"button",38),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.frequentPostingsForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var uv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices,this.accountingRuleData=t.accountingRules,this.currencyData=t.currencies.selectedCurrencyOptions,this.paymentTypeData=t.paymentTypes})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFrequentPostingsForm(),this.setAffectedGLEntryForm()}createFrequentPostingsForm(){this.frequentPostingsForm=this.formBuilder.group({officeId:["",ce.required],accountingRule:["",ce.required],currencyCode:["",ce.required],debits:this.formBuilder.array([]),credits:this.formBuilder.array([]),referenceNumber:[""],transactionDate:["",ce.required],paymentTypeId:[""],accountNumber:[""],checkNumber:[""],routingCode:[""],receiptNumber:[""],bankNumber:[""],comments:[""]})}setAffectedGLEntryForm(){this.frequentPostingsForm.get("accountingRule").valueChanges.subscribe(t=>{for(;this.debits.length;)this.debits.removeAt(0);for(;this.credits.length;)this.credits.removeAt(0);this.allowMultipleDebitEntries=t.allowMultipleDebitEntries,this.allowMultipleCreditEntries=t.allowMultipleCreditEntries,this.debitAccountData=t.debitAccounts,this.creditAccountData=t.creditAccounts,this.addAffectedGLEntry(this.debits),this.addAffectedGLEntry(this.credits)})}createAffectedGLEntryForm(){return this.formBuilder.group({glAccountId:["",ce.required],amount:["",ce.required]})}get debits(){return this.frequentPostingsForm.get("debits")}get credits(){return this.frequentPostingsForm.get("credits")}addAffectedGLEntry(t){t.push(this.createAffectedGLEntryForm())}removeAffectedGLEntry(t,n){t.removeAt(n)}submit(){let t=this.frequentPostingsForm.value;t.accountingRule=t.accountingRule.id,t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.transactionDate instanceof Date&&(t.transactionDate=this.dateUtils.formatDate(t.transactionDate,this.settingsService.dateFormat)),this.accountingService.createJournalEntry(t).subscribe(n=>{this.router.navigate(["../transactions/view",n.transactionId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-frequent-postings"]],decls:90,vars:51,consts:[["transactionDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","officeId"],[3,"value"],["required","","formControlName","accountingRule"],["required","","formControlName","currencyCode"],[1,"flex-48","hide-lt-md"],["formArrayName","debits",1,"flex-fill","layout-row-wrap","responsive-column"],["formArrayName","credits",1,"flex-fill","layout-row-wrap","responsive-column"],["matInput","","formControlName","referenceNumber"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","paymentTypeId"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],[1,"flex-98"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],["required","","formControlName","glAccountId"],[1,"flex-43"],["type","number","matInput","","required","","formControlName","amount"],[1,"flex-fill"],["type","button","mat-icon-button",""],["type","button","mat-icon-button","","color","primary"],["type","button","mat-icon-button","",3,"click"],["icon","minus-circle","size","lg"],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","plus-circle","size","lg"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,MOe,2,2,"mat-option",6,Pe),r(),E(12,DOe,7,9,"mat-error"),r(),l(13,"mat-form-field",4)(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",7),Se(18,EOe,2,2,"mat-option",6,Pe),r(),E(20,IOe,7,9,"mat-error"),r(),l(21,"mat-form-field",4)(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",8),Se(26,OOe,2,2,"mat-option",6,Pe),r(),E(28,AOe,7,9,"mat-error"),r(),b(29,"span",9),Se(30,LOe,19,11,"div",10,Pe),Se(32,jOe,19,11,"div",11,Pe),l(34,"mat-form-field",4)(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",12),r(),l(39,"mat-form-field",13),R("click",function(){V(s);let u=ve(46);return q(u.open())}),l(40,"mat-label"),c(41),p(42,"translate"),r(),b(43,"input",14)(44,"mat-datepicker-toggle",15)(45,"mat-datepicker",null,0),E(47,$Oe,7,9,"mat-error"),r(),l(48,"mat-form-field",4)(49,"mat-label"),c(50),p(51,"translate"),r(),l(52,"mat-select",16),Se(53,UOe,2,2,"mat-option",6,Pe),r()(),l(55,"mat-form-field",4)(56,"mat-label"),c(57),p(58,"translate"),r(),b(59,"input",17),r(),l(60,"mat-form-field",4)(61,"mat-label"),c(62),p(63,"translate"),r(),b(64,"input",18),r(),l(65,"mat-form-field",4)(66,"mat-label"),c(67),p(68,"translate"),r(),b(69,"input",19),r(),l(70,"mat-form-field",4)(71,"mat-label"),c(72),p(73,"translate"),r(),b(74,"input",20),r(),l(75,"mat-form-field",4)(76,"mat-label"),c(77),p(78,"translate"),r(),b(79,"input",21),r(),l(80,"mat-form-field",22)(81,"mat-label"),c(82),p(83,"translate"),r(),b(84,"textarea",23),r()()(),l(85,"mat-card-actions",24)(86,"button",25),c(87),p(88,"translate"),r(),F(89,WOe,3,4,"button",26),r()()()()}if(n&2){let s=ve(46);a(2),g("formGroup",i.frequentPostingsForm),a(5),h(m(8,24,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.frequentPostingsForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,26,"labels.inputs.Accounting Rule")),a(3),we(i.accountingRuleData),a(2),I(i.frequentPostingsForm.controls.accountingRule.hasError("required")?20:-1),a(3),h(m(24,28,"labels.inputs.Currency")),a(3),we(i.currencyData),a(2),I(i.frequentPostingsForm.controls.currencyCode.hasError("required")?28:-1),a(2),we(i.debits.controls),a(2),we(i.credits.controls),a(4),h(m(37,30,"labels.inputs.Reference Number")),a(5),h(m(42,32,"labels.inputs.Transaction Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.frequentPostingsForm.controls.transactionDate.hasError("required")?47:-1),a(3),h(m(51,34,"labels.inputs.Payment Type")),a(3),we(i.paymentTypeData),a(4),h(m(58,36,"labels.inputs.Account Number")),a(5),h(m(63,38,"labels.inputs.Cheque Number")),a(5),h(m(68,40,"labels.inputs.Routing Code")),a(5),h(m(73,42,"labels.inputs.Receipt Number")),a(5),h(m(78,44,"labels.inputs.Bank Number")),a(5),h(m(83,46,"labels.inputs.Comments")),a(4),g("routerLink",oe(50,TOe)),a(),v(" ",m(88,48,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,wi,ke,Ln,he],encapsulation:2})}}return e})();var QOe=["createJournalFormRef"],YOe=["templateCreateJournalFormRef"],JOe=()=>["../../"];function KOe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function XOe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZOe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.displayLabel," ")}}function eAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tAe(e,o){e&1&&(l(0,"mat-form-field",9)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",28),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.External Asset Owner")))}function iAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Debit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.debits,i))}),b(1,"fa-icon",37),r()}}function oAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.debits))}),b(1,"fa-icon",39),r()}}function aAe(e,o){if(e&1){let t=Y();l(0,"div",11)(1,"div",29),b(2,"mifosx-gl-account-selector",30),l(3,"mat-form-field",31)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",32),R("input",function(i){V(t);let s=w();return q(s.onAmountInput(i))}),r(),E(8,iAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,nAe,2,0,"button",34),E(11,oAe,2,0,"button",35),r()()()}if(e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(),g("inputFormControl",n.debits.at(t).controls.glAccountId)("glAccountList",n.glAccountData)("required",!0)("inputLabel","Affected GL Entry (Debit)"),a(3),h(m(6,9,"labels.inputs.Debit Amount")),a(3),I(n.debits.at(t).controls.amount.hasError("required")?8:-1),a(2),I(t!==0?10:-1),a(),I(t===0?11:-1)}}function rAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Credit Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lAe(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w().$index,s=w();return q(s.removeAffectedGLEntry(s.credits,i))}),b(1,"fa-icon",37),r()}}function sAe(e,o){if(e&1){let t=Y();l(0,"button",38),R("click",function(){V(t);let i=w(2);return q(i.addAffectedGLEntry(i.credits))}),b(1,"fa-icon",39),r()}}function cAe(e,o){if(e&1){let t=Y();l(0,"div",12)(1,"div",29),b(2,"mifosx-gl-account-selector",30),l(3,"mat-form-field",31)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",32),R("input",function(i){V(t);let s=w();return q(s.onAmountInput(i))}),r(),E(8,rAe,7,9,"mat-error"),r(),l(9,"span",33),E(10,lAe,2,0,"button",34),E(11,sAe,2,0,"button",35),r()()()}if(e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(),g("inputFormControl",n.credits.at(t).controls.glAccountId)("glAccountList",n.glAccountData)("required",!0)("inputLabel","Affected GL Entry (Credit)"),a(3),h(m(6,9,"labels.inputs.Credit Amount")),a(3),I(n.credits.at(t).controls.amount.hasError("required")?8:-1),a(2),I(t!==0?10:-1),a(),I(t===0?11:-1)}}function pAe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Transaction Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mAe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function dAe(e,o){if(e&1&&(l(0,"button",40),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.journalEntryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function uAe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",41),c(4),p(5,"translate"),l(6,"a",42),c(7),p(8,"translate"),r()(),l(9,"div",43)(10,"button",44),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",45),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",45),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(17),p(18,"translate"),r()()}e&2&&(a(),h(m(2,6,"labels.heading.Add Journal Entry Form")),a(3),v(" ",m(5,8,"labels.text.Red asterisk field")," "),a(3),h(m(8,10,"labels.inputs.Add Journal Entries")),a(4),v(" ",m(12,12,"labels.buttons.Close")," "),a(3),v(" ",m(15,14,"labels.buttons.Back")," "),a(3),v(" ",m(18,16,"labels.buttons.Next")," "))}var fv=(()=>{class e{onAmountInput(t){let n=t.target;if(!(n instanceof HTMLInputElement))return;let i=n.value.trim();if(i==="")return;let s=Number(i);(!Number.isFinite(s)||s<1)&&(n.value="1",n.dispatchEvent(new Event("input",{bubbles:!0})))}constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.assetExternalizationEnabled=!1,this.assetExternalizationEnabled=!1,this.route.data.subscribe(t=>{this.officeData=t.offices,this.currencyData=t.currencies.selectedCurrencyOptions,this.paymentTypeData=t.paymentTypes,this.glAccountData=t.glAccounts,this.assetExternalizationConfig=t.globalConfig})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createJournalEntryForm()}createJournalEntryForm(){this.journalEntryForm=this.formBuilder.group({officeId:["",ce.required],currencyCode:["",ce.required],debits:this.formBuilder.array([this.createAffectedGLEntryForm()]),credits:this.formBuilder.array([this.createAffectedGLEntryForm()]),referenceNumber:[""],transactionDate:["",ce.required],paymentTypeId:[""],accountNumber:[""],checkNumber:[""],routingCode:[""],receiptNumber:[""],bankNumber:[""],comments:[""]})}createAffectedGLEntryForm(){return this.formBuilder.group({glAccountId:["",ce.required],amount:["",[ce.required,ce.min(1)]]})}get debits(){return this.journalEntryForm.get("debits")}get credits(){return this.journalEntryForm.get("credits")}addAffectedGLEntry(t){t.push(this.createAffectedGLEntryForm())}removeAffectedGLEntry(t,n){t.removeAt(n)}submit(){let t=this.journalEntryForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.transactionDate&&(t.transactionDate=this.dateUtils.formatDate(t.transactionDate,this.settingsService.dateFormat)),t.externalAssetOwner||delete t.externalAssetOwner,this.accountingService.createJournalEntry(t).subscribe(n=>{this.router.navigate(["../transactions/view",n.transactionId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCreateJournalEntries===!0&&setTimeout(()=>{this.showPopover(this.templateCreateJournalFormRef,this.createJournalFormRef.nativeElement,"top",!0)}),this.assetExternalizationEnabled=this.assetExternalizationConfig.enabled,this.assetExternalizationEnabled&&this.journalEntryForm.addControl("externalAssetOwner",new it)}nextStep(){this.configurationWizardService.showCreateJournalEntries=!1,this.openNextStepDialog()}previousStep(){this.router.navigate(["/accounting"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Products",previousStepName:"Accounting",stepPercentage:74}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showCreateJournalEntries=!1,this.configurationWizardService.showCharges=!0,this.router.navigate(["/products"])):(this.configurationWizardService.showCreateJournalEntries=!1,this.router.navigate(["/home"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-journal-entry"]],viewQuery:function(n,i){if(n&1&&(Ee(QOe,5),Ee(YOe,5)),n&2){let s;Te(s=Me())&&(i.createJournalFormRef=s.first),Te(s=Me())&&(i.templateCreateJournalFormRef=s.first)}},decls:85,vars:48,consts:[["createJournalFormRef",""],["transactionDatePicker",""],["templateCreateJournalFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-48"],["required","","formControlName","officeId"],[3,"value"],[1,"flex-24"],["required","","formControlName","currencyCode"],["formArrayName","debits",1,"flex-fill","layout-row-wrap","responsive-column"],["formArrayName","credits",1,"flex-fill","layout-row-wrap","responsive-column"],["matInput","","formControlName","referenceNumber"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","paymentTypeId"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"],[1,"flex-98"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","externalAssetOwner"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"flex-43"],["type","number","matInput","","required","","formControlName","amount","min","1",3,"input"],[1,"flex-fill"],["type","button","mat-icon-button",""],["type","button","mat-icon-button","","color","primary"],["type","button","mat-icon-button","",3,"click"],["icon","minus-circle","size","lg"],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","plus-circle","size","lg"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895310/Add+Journal+Entries","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"mat-form-field",6)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",7),Se(11,KOe,2,2,"mat-option",8,Pe),r(),E(13,XOe,7,9,"mat-error"),r(),l(14,"mat-form-field",9)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",10),Se(19,ZOe,2,2,"mat-option",8,Pe),r(),E(21,eAe,7,9,"mat-error"),r(),E(22,tAe,5,3,"mat-form-field",9),Se(23,aAe,12,11,"div",11,Pe),Se(25,cAe,12,11,"div",12,Pe),l(27,"mat-form-field",6)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",13),r(),l(32,"mat-form-field",14),R("click",function(){V(s);let u=ve(39);return q(u.open())}),l(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"input",15)(37,"mat-datepicker-toggle",16)(38,"mat-datepicker",null,1),E(40,pAe,7,9,"mat-error"),r(),l(41,"mat-form-field",6)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",17),Se(46,mAe,2,2,"mat-option",8,Pe),r()(),l(48,"mat-form-field",6)(49,"mat-label"),c(50),p(51,"translate"),r(),b(52,"input",18),r(),l(53,"mat-form-field",6)(54,"mat-label"),c(55),p(56,"translate"),r(),b(57,"input",19),r(),l(58,"mat-form-field",6)(59,"mat-label"),c(60),p(61,"translate"),r(),b(62,"input",20),r(),l(63,"mat-form-field",6)(64,"mat-label"),c(65),p(66,"translate"),r(),b(67,"input",21),r(),l(68,"mat-form-field",6)(69,"mat-label"),c(70),p(71,"translate"),r(),b(72,"input",22),r(),l(73,"mat-form-field",23)(74,"mat-label"),c(75),p(76,"translate"),r(),b(77,"textarea",24),r()()(),l(78,"mat-card-actions",25)(79,"button",26),c(80),p(81,"translate"),r(),F(82,dAe,3,4,"button",27),r()()()(),F(83,uAe,19,18,"ng-template",null,2,ti)}if(n&2){let s=ve(39);a(2),g("formGroup",i.journalEntryForm),a(6),h(m(9,23,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.journalEntryForm.controls.officeId.hasError("required")?13:-1),a(3),h(m(17,25,"labels.inputs.Currency")),a(3),we(i.currencyData),a(2),I(i.journalEntryForm.controls.currencyCode.hasError("required")?21:-1),a(),I(i.assetExternalizationEnabled?22:-1),a(),we(i.debits.controls),a(2),we(i.credits.controls),a(4),h(m(30,27,"labels.inputs.Reference Number")),a(5),h(m(35,29,"labels.inputs.Transaction Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.journalEntryForm.controls.transactionDate.hasError("required")?40:-1),a(3),h(m(44,31,"labels.inputs.Payment Type")),a(3),we(i.paymentTypeData),a(4),h(m(51,33,"labels.inputs.Account Number")),a(5),h(m(56,35,"labels.inputs.Cheque Number")),a(5),h(m(61,37,"labels.inputs.Routing Code")),a(5),h(m(66,39,"labels.inputs.Receipt Number")),a(5),h(m(71,41,"labels.inputs.Bank Number")),a(5),h(m(76,43,"labels.inputs.Comments")),a(4),g("routerLink",oe(47,JOe)),a(),v(" ",m(81,45,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_JOURNALENTRY")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,ta,wi,ke,Ln,he],encapsulation:2})}}return e})();var hv=class{constructor(o){this.accountingService=o,this.journalEntriesSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getJournalEntries(o,t="",n="",i=0,s=10){this.journalEntriesSubject.next([]),t=t==="debit"||t==="credit"?"amount":t,this.accountingService.getJournalEntries(o,t,n,i*s,s).subscribe(d=>{this.recordsSubject.next(d.totalFilteredRecords),this.journalEntriesSubject.next(d.pageItems)})}connect(o){return this.journalEntriesSubject.asObservable()}disconnect(o){this.journalEntriesSubject.complete(),this.recordsSubject.complete()}};var fAe=()=>[10,25,50,100],hAe=(e,o)=>({id:e,name:o}),gAe=e=>["transactions/view",e];function _Ae(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",t.option," ")}}function CAe(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,hAe,t.id,t.name)),a(),v(" ",t.name," ")}}function vAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entry ID")))}function xAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function bAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function yAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function SAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction ID")))}function wAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}function PAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction Date")))}function TAe(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.transactionDate))}}function MAe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function DAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function EAe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function IAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUserName)}}function OAe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Submitted on date")))}function AAe(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.submittedOnDate))}}function FAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Code")))}function kAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}function BAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Name")))}function RAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function NAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency")))}function LAe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currency.code)}}function VAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit")))}function qAe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"formatNumber"),r()),e&2){let t=w().$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function zAe(e,o){if(e&1&&(l(0,"td",39),E(1,qAe,3,3,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="DEBIT"?1:-1)}}function HAe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit")))}function GAe(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"formatNumber"),r()),e&2){let t=w().$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function jAe(e,o){if(e&1&&(l(0,"td",39),E(1,GAe,3,3,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function $Ae(e,o){e&1&&b(0,"tr",41)}function UAe(e,o){if(e&1&&b(0,"tr",42),e&2){let t=o.$implicit;g("routerLink",Nt(1,gAe,t.transactionId))}}var gv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.officeName=new it,this.glAccount=new it,this.entryTypeFilter=new it(""),this.entryTypeFilterData=[{option:"All",value:""},{option:"Manual Entries",value:!0},{option:"System Entries",value:!1}],this.transactionDateFrom=new it(new Date(new Date().setMonth(new Date().getMonth()-1))),this.transactionDateTo=new it(new Date),this.transactionId=new it,this.submittedOnDateFrom=new it,this.submittedOnDateTo=new it,this.displayedColumns=["id","officeName","transactionId","transactionDate","glAccountType","createdByUserName","submittedOnDate","glAccountCode","glAccountName","currency","debit","credit"],this.filterJournalEntriesBy=[{type:"officeId",value:""},{type:"glAccountId",value:""},{type:"manualEntriesOnly",value:""},{type:"transactionId",value:""},{type:"fromDate",value:this.dateUtils.formatDate(new Date(new Date().setMonth(new Date().getMonth()-1)),this.settingsService.dateFormat)},{type:"toDate",value:this.dateUtils.formatDate(new Date,this.settingsService.dateFormat)},{type:"submittedOnDateFrom",value:""},{type:"submittedOnDateTo",value:""},{type:"dateFormat",value:this.settingsService.dateFormat},{type:"locale",value:this.settingsService.language.code}],this.route.data.subscribe(t=>{this.officeData=t.offices,this.glAccountData=t.glAccounts})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setFilteredOffices(),this.setFilteredGlAccounts(),this.getJournalEntries()}ngAfterViewInit(){this.officeName.valueChanges.pipe(Mn(t=>t.id?t.id:""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeId")})).subscribe(),this.glAccount.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"glAccountId")})).subscribe(),this.transactionId.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"transactionId")})).subscribe(),this.transactionDateFrom.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"fromDate")})).subscribe(),this.transactionDateTo.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"toDate")})).subscribe(),this.submittedOnDateFrom.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"submittedOnDateFrom")})).subscribe(),this.submittedOnDateTo.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.dateUtils.formatDate(t,this.settingsService.dateFormat),"submittedOnDateTo")})).subscribe(),this.sort.sortChange.subscribe(()=>this.paginator.pageIndex=0),ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadJournalEntriesPage())).subscribe()}loadJournalEntriesPage(){this.sort.direction||delete this.sort.active,this.dataSource.getJournalEntries(this.filterJournalEntriesBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}applyFilter(t,n){this.paginator.pageIndex=0;let i=this.filterJournalEntriesBy.findIndex(s=>s.type===n);this.filterJournalEntriesBy[i].value=t,this.loadJournalEntriesPage()}displayOfficeName(t){return t?t.name:void 0}setFilteredOffices(){this.filteredOfficeData=this.officeName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredGlAccounts(){this.filteredGLAccountData=this.glAccount.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name+" ("+t.glCode+")"),Mn(t=>t?this.filterGLAccountAutocompleteData(t):this.glAccountData))}filterOfficeAutocompleteData(t){return this.officeData.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))}filterGLAccountAutocompleteData(t){return this.glAccountData.filter(n=>(n.name+" ("+n.glCode+")").toLowerCase().includes(t.toLowerCase()))}getJournalEntries(){this.dataSource=new hv(this.accountingService),this.dataSource.getJournalEntries(this.filterJournalEntriesBy,this.sort.active,this.sort.direction,this.paginator.pageIndex,this.paginator.pageSize)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-search-journal-entry"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:98,vars:59,consts:[["transactionDateFromPicker",""],["transactionDateToPicker",""],["submittedOnDateFromPicker",""],["submittedOnDateToPicker",""],["officeNameAutocomplete","matAutocomplete"],[1,"container","layout-row-wrap","gap-2px","responsive-column","filter-container"],[1,"flex-31"],["matInput","",3,"formControl","matAutocomplete"],[1,"flex-31",3,"inputFormControl","glAccountList","required","inputLabel"],[3,"selectionChange","formControl"],[3,"value"],[1,"flex-31",3,"click"],["matInput","",3,"min","max","matDatepicker","formControl"],["matSuffix","",3,"for"],["matInput","",3,"formControl"],["matInput","",3,"max","matDatepicker","formControl"],["matInput","",3,"min","matDatepicker","formControl"],["autoActiveFirstOption","",3,"displayWith"],[1,"mat-elevation-z8","container","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","transactionId"],["matColumnDef","transactionDate"],["matColumnDef","glAccountType"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","createdByUserName"],["matColumnDef","submittedOnDate"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["matColumnDef","currency"],["matColumnDef","debit"],["matColumnDef","credit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",5)(1,"mat-form-field",6)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",7),r(),b(6,"mifosx-gl-account-selector",8),l(7,"mat-form-field",6)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",9),R("selectionChange",function(u){return V(s),q(i.applyFilter(u.value,"manualEntriesOnly"))}),Se(12,_Ae,2,2,"mat-option",10,Pe),r()(),l(14,"mat-form-field",11),R("click",function(){V(s);let u=ve(21);return q(u.open())}),l(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",12)(19,"mat-datepicker-toggle",13)(20,"mat-datepicker",null,0),r(),l(22,"mat-form-field",11),R("click",function(){V(s);let u=ve(29);return q(u.open())}),l(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"input",12)(27,"mat-datepicker-toggle",13)(28,"mat-datepicker",null,1),r(),l(30,"mat-form-field",6)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",14),r(),l(35,"mat-form-field",11),R("click",function(){V(s);let u=ve(42);return q(u.open())}),l(36,"mat-label"),c(37),p(38,"translate"),r(),b(39,"input",15)(40,"mat-datepicker-toggle",13)(41,"mat-datepicker",null,2),r(),l(43,"mat-form-field",11),R("click",function(){V(s);let u=ve(50);return q(u.open())}),l(44,"mat-label"),c(45),p(46,"translate"),r(),b(47,"input",16)(48,"mat-datepicker-toggle",13)(49,"mat-datepicker",null,3),r()(),l(51,"mat-autocomplete",17,4),Se(53,CAe,2,5,"mat-option",10,Pe),p(55,"async"),r(),l(56,"div",18)(57,"table",19),X(58,20),F(59,vAe,3,3,"th",21)(60,xAe,2,1,"td",22),Z(),X(61,23),F(62,bAe,3,3,"th",21)(63,yAe,2,1,"td",22),Z(),X(64,24),F(65,SAe,3,3,"th",21)(66,wAe,2,1,"td",22),Z(),X(67,25),F(68,PAe,3,3,"th",21)(69,TAe,3,3,"td",22),Z(),X(70,26),F(71,MAe,3,3,"th",27)(72,DAe,2,1,"td",22),Z(),X(73,28),F(74,EAe,3,3,"th",27)(75,IAe,2,1,"td",22),Z(),X(76,29),F(77,OAe,3,3,"th",27)(78,AAe,3,3,"td",22),Z(),X(79,30),F(80,FAe,3,3,"th",21)(81,kAe,2,1,"td",22),Z(),X(82,31),F(83,BAe,3,3,"th",21)(84,RAe,2,1,"td",22),Z(),X(85,32),F(86,NAe,3,3,"th",21)(87,LAe,2,1,"td",22),Z(),X(88,33),F(89,VAe,3,3,"th",21)(90,zAe,2,1,"td",22),Z(),X(91,34),F(92,HAe,3,3,"th",21)(93,jAe,2,1,"td",22),Z(),F(94,$Ae,1,0,"tr",35)(95,UAe,1,3,"tr",36),r(),b(96,"mat-paginator",37),p(97,"async"),r()}if(n&2){let s=ve(21),d=ve(29),u=ve(42),f=ve(50),_=ve(52);a(3),h(m(4,40,"labels.inputs.Office Name")),a(2),g("formControl",i.officeName)("matAutocomplete",_),a(),g("inputFormControl",i.glAccount)("glAccountList",i.glAccountData)("required",!0)("inputLabel","GL Account Name or Code"),a(3),h(m(10,42,"labels.inputs.Filter")),a(2),g("formControl",i.entryTypeFilter),a(),we(i.entryTypeFilterData),a(4),h(m(17,44,"labels.inputs.Transaction Date From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s)("formControl",i.transactionDateFrom),a(),g("for",s),a(5),h(m(25,46,"labels.inputs.Transaction Date To")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d)("formControl",i.transactionDateTo),a(),g("for",d),a(5),h(m(33,48,"labels.inputs.Transaction ID")),a(2),g("formControl",i.transactionId),a(3),h(m(38,50,"labels.inputs.Submitted on Date From")),a(2),g("max",i.submittedOnDateTo.value)("matDatepicker",u)("formControl",i.submittedOnDateFrom),a(),g("for",u),a(5),v("",m(46,52,"labels.inputs.Submitted on Date To")," "),a(2),g("min",i.submittedOnDateFrom.value)("matDatepicker",f)("formControl",i.submittedOnDateTo),a(),g("for",f),a(3),g("displayWith",i.displayOfficeName),a(2),we(m(55,54,i.filteredOfficeData)),a(4),g("dataSource",i.dataSource),a(37),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("length",m(97,56,i.dataSource==null?null:i.dataSource.records$))("pageSize",50)("pageSizeOptions",oe(58,fAe))}},dependencies:[ue,fe,st,$e,_n,Oe,Fe,Be,ai,ze,gt,ft,mi,di,pi,er,ta,Za,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,Pi,he,Yr,In],styles:["table[_ngcontent-%COMP%]{width:100%;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.filter-container[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}.table-container[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;transition:background-color .3s ease,border-color .3s ease}"]})}}return e})();var WAe=["buttonDefineMapping"],QAe=["templateButtonDefineMapping"],YAe=["activitiesTable"],JAe=["templateActivitiesTable"],KAe=()=>[10,25],XAe=()=>["create"],ZAe=e=>["view",e];function e7e(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,XAe)),a(2),v(" ",m(3,2,"labels.buttons.Define New Mapping")," "))}function t7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Financial Activity")))}function i7e(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),le(" (",t.financialActivityData.id,") ",m(2,2,"labels.accounting.financialActivity."+t.financialActivityData.name)," ")}}function n7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Type")))}function o7e(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,"labels.inputs.accounting."+t.financialActivityData.mappedGLAccountType)," ")}}function a7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Code")))}function r7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.glCode)}}function l7e(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Name")))}function s7e(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountData.name)}}function c7e(e,o){e&1&&b(0,"tr",21)}function p7e(e,o){if(e&1&&b(0,"tr",22),e&2){let t=o.$implicit;g("routerLink",Nt(1,ZAe,t.id))}}function m7e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",23),c(4),p(5,"translate"),r(),l(6,"div",24)(7,"button",25),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(25);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Define New Mapping")),a(3),h(m(5,7,"labels.text.To define new mapping.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function d7e(e,o){if(e&1){let t=Y();l(0,"h4",23),c(1),p(2,"translate"),l(3,"a",27),c(4),p(5,"translate"),r()(),l(6,"div",24)(7,"button",25),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",26),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(23);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.Account Linked Financial")," "),a(3),h(m(5,7,"labels.heading.Accounts linked to Financial Activities")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var _v=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["financialActivity","glAccountType","glAccountCode","glAccountName"],this.route.data.subscribe(t=>{this.financialActivityAccountData=t.financialActivityAccounts})}ngOnInit(){this.setFinancialActivityAccounts()}setFinancialActivityAccounts(){this.dataSource=new Wt(this.financialActivityAccountData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"financialActivity":return t.financialActivityData.name;case"glAccountName":return t.glAccountData.name;case"glAccountCode":return t.glAccountData.glCode;default:return t[n]}},this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showAccountsLinkedPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonDefineMapping,this.buttonDefineMapping.nativeElement,"bottom",!0)}),this.configurationWizardService.showAccountsLinkedList===!0&&setTimeout(()=>{this.showPopover(this.templateActivitiesTable,this.activitiesTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showAccountsLinkedPage=!1,this.configurationWizardService.showAccountsLinkedList=!1,this.configurationWizardService.showMigrateOpeningBalances=!0,this.router.navigate(["/accounting"])}previousStep(){this.configurationWizardService.showAccountsLinkedPage=!1,this.configurationWizardService.showAccountsLinkedList=!1,this.configurationWizardService.showAccountsLinked=!0,this.router.navigate(["/accounting"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-financial-activity-mappings"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(WAe,5),Ee(QAe,5),Ee(YAe,5),Ee(JAe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonDefineMapping=s.first),Te(s=Me())&&(i.templateButtonDefineMapping=s.first),Te(s=Me())&&(i.activitiesTable=s.first),Te(s=Me())&&(i.templateActivitiesTable=s.first)}},decls:26,vars:6,consts:[["buttonDefineMapping",""],["activitiesTable",""],["templateButtonDefineMapping",""],["templateActivitiesTable",""],[1,"layout-row","align-end","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"mat-elevation-z8","container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","financialActivity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glAccountType"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/106430472/Accounts+linked+to+Financial+Activities","target","_blank"]],template:function(n,i){n&1&&(l(0,"div",4)(1,"div",null,0),F(3,e7e,4,5,"button",5),r()(),l(4,"div",6,1)(6,"table",7),X(7,8),F(8,t7e,3,3,"th",9)(9,i7e,3,4,"td",10),Z(),X(10,11),F(11,n7e,3,3,"th",9)(12,o7e,3,3,"td",10),Z(),X(13,12),F(14,a7e,3,3,"th",9)(15,r7e,2,1,"td",10),Z(),X(16,13),F(17,l7e,3,3,"th",9)(18,s7e,2,1,"td",10),Z(),F(19,c7e,1,0,"tr",14)(20,p7e,1,3,"tr",15),r(),b(21,"mat-paginator",16),r(),F(22,m7e,16,15,"ng-template",null,2,ti)(24,d7e,16,15,"ng-template",null,3,ti)),n&2&&(a(3),g("mifosxHasPermission","CREATE_FINANCIALACTIVITYACCOUNT"),a(3),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(5,KAe)))},dependencies:[ue,fe,Oe,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var u7e=()=>["../"];function f7e(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),le(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function h7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Financial Activity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function g7e(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.financialActivityMappingForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Cv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.glAccountData=[],this.route.data.subscribe(t=>{this.glAccountOptions=t.financialActivityAccountsTemplate.glAccountOptions,this.financialActivityData=t.financialActivityAccountsTemplate.financialActivityOptions})}ngOnInit(){this.createFinancialActivityMappingForm(),this.setGlAccountData()}createFinancialActivityMappingForm(){this.financialActivityMappingForm=this.formBuilder.group({financialActivityId:["",ce.required],glAccountId:["",ce.required]})}setGlAccountData(){this.financialActivityMappingForm.get("financialActivityId").valueChanges.subscribe(t=>{switch(t){case 100:case 101:case 102:case 103:this.glAccountData=this.glAccountOptions.assetAccountOptions;break;case 200:case 201:this.glAccountData=this.glAccountOptions.liabilityAccountOptions;break;case 300:this.glAccountData=this.glAccountOptions.equityAccountOptions;break}})}submit(){this.accountingService.createFinancialActivityAccount(this.financialActivityMappingForm.value).subscribe(t=>{this.router.navigate(["../view",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-financial-activity-mapping"]],decls:19,vars:15,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","financialActivityId"],[3,"value"],[3,"inputFormControl","glAccountList","required","inputLabel"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,f7e,3,5,"mat-option",4,Pe),r(),E(12,h7e,7,9,"mat-error"),r(),b(13,"mifosx-gl-account-selector",5),r()(),l(14,"mat-card-actions",6)(15,"button",7),c(16),p(17,"translate"),r(),F(18,g7e,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.financialActivityMappingForm),a(5),h(m(8,10,"labels.inputs.Financial Activity")),a(3),we(i.financialActivityData),a(2),I(i.financialActivityMappingForm.controls.financialActivityId.hasError("required")?12:-1),a(),g("inputFormControl",i.financialActivityMappingForm.controls.glAccountId)("glAccountList",i.glAccountData)("required",!0)("inputLabel","Account"),a(2),g("routerLink",oe(14,u7e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,ta,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var _7e=()=>["../.."],C7e=()=>["edit"];function v7e(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,C7e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function x7e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w();return q(i.deleteFinancialActivityAccount())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}var vv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(C0),this.route.data.subscribe(t=>{this.financialActivityAccount=t.financialActivityAccount,this.financialActivityAccountId=t.financialActivityAccount.id})}deleteFinancialActivityAccount(){this.dialog.open(vi,{data:{deleteContext:`financial activity mapping ${this.financialActivityAccountId}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteFinancialActivityAccount(this.financialActivityAccountId).subscribe(()=>{this.router.navigate(["/accounting/financial-activity-mappings"])})})}goBack(){this.location.back()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-financial-activity-mapping"]],decls:24,vars:22,consts:[[1,"layout-row","align-end","gap-2percent","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],[1,"flex-100",3,"glAccount","accountTitle"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,v7e,4,5,"button",1)(2,x7e,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),p(12,"translate"),r(),l(13,"div",5),c(14),p(15,"translate"),r(),l(16,"div",6),c(17),p(18,"translate"),r(),b(19,"mifosx-gl-account-display",7),r()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_FINANCIALACTIVITYACCOUNT"),a(),g("mifosxHasPermission","DELETE_FINANCIALACTIVITYACCOUNT"),a(6),v(" ",m(9,11,"labels.inputs.Financial Activity")," "),a(3),le(" (",i.financialActivityAccount==null?null:i.financialActivityAccount.financialActivityData.id,") ",m(12,13,"labels.accounting.financialActivity."+(i.financialActivityAccount==null?null:i.financialActivityAccount.financialActivityData.name))," "),a(3),v(" ",m(15,15,"labels.inputs.Account Type")," "),a(3),v(" ",m(18,17,"labels.inputs.accounting."+(i.financialActivityAccount==null?null:i.financialActivityAccount.financialActivityData.mappedGLAccountType))," "),a(2),g("glAccount",i.financialActivityAccount==null?null:i.financialActivityAccount.glAccountData)("accountTitle","Account Name"),a(2),g("routerLink",oe(21,_7e)),a(),v(" ",m(23,19,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,Ke,ke,as,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var b7e=()=>["../"];function y7e(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),le(" (",t.id,") ",m(2,3,"labels.accounting.financialActivity."+t.name)," ")}}function S7e(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.financialActivityMappingForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var xv=(()=>{class e{constructor(){this.formBuider=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.glAccountData=[],this.route.data.subscribe(t=>{this.financialActivityAccountId=t.financialActivityAccountAndTemplate.id,this.financialActivityId=t.financialActivityAccountAndTemplate.financialActivityData.id,this.glAccountId=t.financialActivityAccountAndTemplate.glAccountData.id,this.glAccountOptions=t.financialActivityAccountAndTemplate.glAccountOptions,this.financialActivityData=t.financialActivityAccountAndTemplate.financialActivityOptions})}ngOnInit(){this.createFinancialActivityMappingForm(),this.setGLAccountData(),this.financialActivityMappingForm.get("financialActivityId").setValue(this.financialActivityId),this.financialActivityMappingForm.get("glAccountId").setValue(this.glAccountId)}createFinancialActivityMappingForm(){this.financialActivityMappingForm=this.formBuider.group({financialActivityId:["",ce.required],glAccountId:["",ce.required]})}setGLAccountData(){this.financialActivityMappingForm.get("financialActivityId").valueChanges.subscribe(t=>{switch(t){case 100:case 101:case 102:case 103:this.glAccountData=this.glAccountOptions.assetAccountOptions;break;case 200:case 201:this.glAccountData=this.glAccountOptions.liabilityAccountOptions;break;case 300:this.glAccountData=this.glAccountOptions.equityAccountOptions;break}})}submit(){this.accountingService.updateFinancialActivityAccount(this.financialActivityAccountId,this.financialActivityMappingForm.value).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-financial-activity-mapping"]],decls:18,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","financialActivityId"],[3,"value"],[3,"inputFormControl","glAccountList","required","inputLabel"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,y7e,3,5,"mat-option",4,Pe),r()(),b(12,"mifosx-gl-account-selector",5),r()(),l(13,"mat-card-actions",6)(14,"button",7),c(15),p(16,"translate"),r(),F(17,S7e,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.financialActivityMappingForm),a(5),h(m(8,9,"labels.inputs.Financial Activity")),a(3),we(i.financialActivityData),a(2),g("inputFormControl",i.financialActivityMappingForm.controls.glAccountId)("glAccountList",i.glAccountData)("required",!0)("inputLabel","Account"),a(2),g("routerLink",oe(13,b7e)),a(),v(" ",m(16,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_FINANCIALACTIVITYACCOUNT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,gt,ft,xe,Ke,ta,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var CN=e=>{let o=e.controls.debit.value,t=e.controls.credit.value;return o&&t&&o>0&&t>0?{error:!0}:null};var w7e=["searchFormRef"],P7e=["templateSearchFormRef"],T7e=()=>["../"];function M7e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function D7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function E7e(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.displayLabel," ")}}function I7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function O7e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Opening Balances Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function A7e(e,o){if(e&1&&(l(0,"div",25)(1,"div",26)(2,"div",27),c(3),r(),l(4,"div",28),c(5),r(),l(6,"div",29),c(7),r(),l(8,"div",30)(9,"mat-form-field")(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",31),r()(),l(14,"div",30)(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",32),r()()()()),e&2){let t=o.$index,n=w(2);a(),g("formGroupName",t),a(2),v(" ",n.openingBalancesData.glAccounts[t].glAccountType.value!==(n.openingBalancesData.glAccounts[t-1]==null?null:n.openingBalancesData.glAccounts[t-1].glAccountType.value)?n.glAccountTypeLabel(n.openingBalancesData.glAccounts[t].glAccountType.value):""," "),a(2),v(" ",n.openingBalancesData.glAccounts[t].glAccountCode," "),a(2),v(" ",n.openingBalancesData.glAccounts[t].glAccountName," "),a(4),h(m(12,6,"labels.inputs.Debit")),a(6),h(m(18,8,"labels.inputs.Credit"))}}function F7e(e,o){if(e&1){let t=Y();l(0,"div",12),b(1,"mifosx-gl-account-display",14),l(2,"mat-form-field",15)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",16),Se(7,E7e,2,2,"mat-option",9,Pe),r(),E(9,I7e,7,9,"mat-error"),r(),l(10,"mat-form-field",17),R("click",function(){V(t);let i=ve(17);return q(i.open())}),l(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",18)(15,"mat-datepicker-toggle",19)(16,"mat-datepicker",null,2),E(18,O7e,7,9,"mat-error"),r(),l(19,"div",20)(20,"div",21),c(21),p(22,"translate"),r(),l(23,"div",22),c(24),p(25,"translate"),r(),l(26,"div",22),c(27),p(28,"translate"),p(29,"translate"),r(),l(30,"div",23),c(31),p(32,"translate"),p(33,"currency"),r(),l(34,"div",24),c(35),p(36,"translate"),p(37,"currency"),r()(),Se(38,A7e,20,10,"div",25,Pe),r()}if(e&2){let t=ve(17),n=w();a(),g("accountTitle","Opening Balances Contra Account")("glAccount",n.openingBalancesData.contraAccount)("withTitle","50%"),a(3),h(m(5,19,"labels.inputs.Currency")),a(3),we(n.currencyData),a(2),I(n.openingBalancesForm.controls.currencyCode.hasError("required")?9:-1),a(3),h(m(13,21,"labels.inputs.Opening Balances Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.openingBalancesForm.controls.transactionDate.hasError("required")?18:-1),a(3),v(" ",m(22,23,"labels.inputs.Type")," "),a(3),v(" ",m(25,25,"labels.inputs.GL Code")," "),a(3),le(" ",m(28,27,"labels.inputs.GL Name")," ",m(29,29,"labels.inputs.Account")," "),a(4),le(" ",m(32,31,"labels.inputs.Total Debit"),": ",$t(33,33,n.debitsSum,n.currencyCode,"symbol-narrow","1.2-2")," "),a(4),le(" ",m(36,38,"labels.inputs.Total Credit"),": ",$t(37,40,n.creditsSum,n.currencyCode,"symbol-narrow","1.2-2")," "),a(3),we(n.glAccountEntries.controls)}}function k7e(e,o){if(e&1&&(l(0,"button",35),c(1),p(2,"translate"),r()),e&2){let t=w(2);g("disabled",!t.openingBalancesForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function B7e(e,o){e&1&&(l(0,"mat-card-actions",13)(1,"button",33),c(2),p(3,"translate"),r(),F(4,k7e,3,4,"button",34),r()),e&2&&(a(),g("routerLink",oe(5,T7e)),a(),v(" ",m(3,3,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","DEFINEOPENINGBALANCE_JOURNALENTRY"))}function R7e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",36),c(4),p(5,"translate"),l(6,"a",37),c(7),p(8,"translate"),r()(),l(9,"div",38)(10,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",11),R("click",function(){let i=V(t).popover,s=w();return i.close(),i.close(),q(s.previousStep())}),c(14),p(15,"translate"),r(),l(16,"button",11),R("click",function(){let i=V(t).popover,s=w();return i.close(),i.close(),q(s.nextStep())}),c(17),p(18,"translate"),r()()}e&2&&(a(),h(m(2,6,"labels.heading.Migrate opening balances (Office-wise)")),a(3),v(" ",m(5,8,"labels.text.Migrate Opening Balances")," "),a(3),h(m(8,10,"labels.inputs.Migrate opening balances (Office-wise)")),a(4),v(" ",m(12,12,"labels.buttons.Close")," "),a(3),v(" ",m(15,14,"labels.buttons.Back")," "),a(3),v(" ",m(18,16,"labels.buttons.Next")," "))}var bv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.debitsSum=0,this.creditsSum=0,this.route.data.subscribe(t=>{this.officeData=t.offices,this.currencyData=t.currencies.selectedCurrencyOptions})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createOpeningBalancesForm()}createOpeningBalancesForm(){this.openingBalancesForm=this.formBuilder.group({officeId:["",ce.required],currencyCode:["",ce.required],transactionDate:["",ce.required],glAccountEntries:this.formBuilder.array([])}),this.openingBalancesForm.controls.currencyCode.valueChanges.subscribe(t=>{this.currencyCode=t})}createGLAccountEntryForm(t){return this.formBuilder.group({glAccountId:[t.glAccountId],debit:[null],credit:[null]},{validator:CN})}get glAccountEntries(){return this.openingBalancesForm.get("glAccountEntries")}retrieveOpeningBalances(){this.accountingService.retrieveOpeningBalances(this.openingBalancesForm.value.officeId).subscribe(t=>{let n=this.openingBalancesForm.get("glAccountEntries");t.glAccounts=t.assetAccountOpeningBalances.concat(t.liabityAccountOpeningBalances,t.equityAccountOpeningBalances,t.incomeAccountOpeningBalances,t.expenseAccountOpeningBalances),t.glAccounts.forEach(i=>{n.push(this.createGLAccountEntryForm(i))}),this.openingBalancesData=t,n.valueChanges.subscribe(()=>{this.debitsSum=0,this.creditsSum=0,n.controls.forEach(i=>{this.debitsSum+=i.value.debit,this.creditsSum+=i.value.credit})})})}submit(){if(this.amountsAreOK()){let t=this.openingBalancesForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.transactionDate instanceof Date&&(t.transactionDate=this.dateUtils.formatDate(t.transactionDate,this.settingsService.dateFormat)),t.debits=[],t.credits=[],this.openingBalancesForm.value.glAccountEntries.forEach(n=>{n.debit&&t.debits.push({glAccountId:n.glAccountId,amount:n.debit}),n.credit&&t.credits.push({glAccountId:n.glAccountId,amount:n.credit})}),delete t.glAccountEntries,this.accountingService.defineOpeningBalances(t).subscribe(n=>{this.router.navigate(["/accounting/journal-entries/transactions/view",n.transactionId])})}}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showMigrateOpeningBalances===!0&&setTimeout(()=>{this.showPopover(this.templateSearchFormRef,this.searchFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showMigrateOpeningBalances=!1,this.configurationWizardService.showClosingEntries=!0,this.router.navigate(["/accounting"])}previousStep(){this.router.navigate(["/accounting"])}amountsAreOK(){let t=0,n=0;return this.openingBalancesForm.value.glAccountEntries.forEach(i=>{i.debit&&(t=t+i.debit),i.credit&&(n=n+i.credit)}),t>0&&t===n}glAccountTypeLabel(t){return this.translateService.instant("labels.inputs.accounting."+t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-migrate-opening-balances"]],viewQuery:function(n,i){if(n&1&&(Ee(w7e,5),Ee(P7e,5)),n&2){let s;Te(s=Me())&&(i.searchFormRef=s.first),Te(s=Me())&&(i.templateSearchFormRef=s.first)}},decls:23,vars:10,consts:[["searchFormRef",""],["templateSearchFormRef",""],["openingBalancesDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-2px"],[1,"m-r-30","flex-83"],[1,"flex-96"],["required","","formControlName","officeId"],[3,"value"],[1,"flex-15"],["mat-raised-button","","color","primary",3,"click"],[1,"layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","gap-5px","align-center","responsive-column"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"],[1,"flex-48"],["required","","formControlName","currencyCode"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row-wrap","gap-2percent","responsive-column","flex-100","content"],[1,"header","flex-8"],[1,"header","flex-18"],[1,"header","r-amount","flex-18"],[1,"header","r-amount","flex-23"],["formArrayName","glAccountEntries",1,"flex-fill","layout-row-wrap","responsive-column","content"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],[1,"flex-8"],[1,"flex-13"],[1,"flex-29"],[1,"flex-20"],["matInput","","type","number","formControlName","debit"],["matInput","","type","number","formControlName","credit"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/90243328/Migrate+opening+balances+Office-wise","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",8),Se(12,M7e,2,2,"mat-option",9,Pe),r(),E(14,D7e,7,9,"mat-error"),r()(),l(15,"div",10)(16,"button",11),R("click",function(){return V(s),q(i.retrieveOpeningBalances())}),c(17),p(18,"translate"),r()()(),E(19,F7e,40,45,"div",12),r(),E(20,B7e,5,6,"mat-card-actions",13),r()()(),F(21,R7e,19,18,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.openingBalancesForm),a(7),h(m(10,6,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.openingBalancesForm.controls.officeId.hasError("required")?14:-1),a(3),v(" ",m(18,8,"labels.buttons.Retrieve")," "),a(2),I(i.openingBalancesData?19:-1),a(),I(i.openingBalancesData?20:-1))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,as,Sg,he],styles:[".content[_ngcontent-%COMP%]{padding-top:20px}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{word-wrap:break-word}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var _c=class{constructor(o,t="",n="",i="",s=!1,d=""){this.name=o,this.glCode=t,this.type=n,this.usage=i,this.manualEntriesAllowed=s,this.description=d,this.children=[]}};var vN=(()=>{class e{constructor(){this.translateService=T(yi),this.treeDataChange=new Ra([])}get treeData(){return this.treeDataChange.value}initialize(t){let n=this.buildGLAccountTree(t);this.treeDataChange.next(n)}buildGLAccountTree(t){let n=[];if(n.push(new _c("ACCOUNTS")),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.ASSET"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.EQUITY"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.EXPENSE"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.INCOME"))),n[0].children.push(new _c(this.translateService.instant("labels.inputs.accounting.LIABILITY"))),t.length===0)return n;t[0].parentId||(t[0].parentId=0),t.sort((s,d)=>(s.parentId||(s.parentId=0),s.parentId-d.parentId));let i=[];for(let s of t)i[s.id]=new _c(s.name,s.glCode,s.type.value,s.usage.value,s.manualEntriesAllowed,s.description);for(let s of t)s.parentId===0?s.type.value==="ASSET"?n[0].children[0].children.push(i[s.id]):s.type.value==="EQUITY"?n[0].children[1].children.push(i[s.id]):s.type.value==="EXPENSE"?n[0].children[2].children.push(i[s.id]):s.type.value==="INCOME"?n[0].children[3].children.push(i[s.id]):s.type.value==="LIABILITY"&&n[0].children[4].children.push(i[s.id]):i[s.parentId]&&i[s.parentId].children.push(i[s.id]);return n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yv=(()=>{class e{constructor(){}toggleExpandCollapse(t,n){return n?t.collapseAll():t.expandAll(),!n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var N7e=["buttonTreeView"],L7e=["templateButtonTreeView"],V7e=["accountsTable"],q7e=["templateAccountsTable"],z7e=()=>[10,25,50,100],H7e=()=>["gl-accounts/create"],G7e=e=>["gl-accounts/view",e];function j7e(e,o){e&1&&(l(0,"button",40),b(1,"fa-icon",41),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,H7e)),a(2),v(" ",m(3,2,"labels.buttons.Add Account")," "))}function $7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account")))}function U7e(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function W7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GL Code")))}function Q7e(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glCode)}}function Y7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function J7e(e,o){if(e&1&&(l(0,"td",43),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,"labels.inputs.accounting."+t.type.value)," ")}}function K7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function X7e(e,o){if(e&1&&(l(0,"td",43)(1,"div",44),b(2,"fa-icon",45),r()()),e&2){let t=o.$implicit;a(),g("className",t.disabled===!0?"disabled":"enabled"),a(),g("matTooltip",Le(t.disabled===!0?"Disabled":"Enabled"))}}function Z7e(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Manual Entries Allowed")," "))}function eFe(e,o){e&1&&(b(0,"fa-icon",46),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Allowed")))}function tFe(e,o){e&1&&(b(0,"fa-icon",47),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.")))}function iFe(e,o){if(e&1&&(l(0,"td",43),E(1,eFe,2,4,"fa-icon",46),E(2,tFe,2,4,"fa-icon",47),r()),e&2){let t=o.$implicit;a(),I(t.manualEntriesAllowed?1:-1),a(),I(t.manualEntriesAllowed?-1:2)}}function nFe(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Used as")))}function oFe(e,o){if(e&1&&(l(0,"td",43),c(1),r()),e&2){let t=o.$implicit;a(),h(t.usage.value)}}function aFe(e,o){e&1&&b(0,"tr",48)}function rFe(e,o){if(e&1&&b(0,"tr",49),e&2){let t=o.$implicit;g("routerLink",Nt(1,G7e,t.id))}}function lFe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function sFe(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",50)(1,"li",51),b(2,"button",52),l(3,"span",53),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewGLAccountNode(i))}),E(4,lFe,2,1,"span",54),c(5),r()()()}if(e&2){let t=o.$implicit;a(4),I(t.glCode?4:-1),a(),v(" ",t.name," ")}}function cFe(e,o){if(e&1&&(l(0,"span",54),c(1),r()),e&2){let t=w().$implicit;a(),h("("+t.glCode+")")}}function pFe(e,o){if(e&1){let t=Y();l(0,"mat-nested-tree-node")(1,"li")(2,"div",51)(3,"button",55),b(4,"fa-icon",56),r(),l(5,"span",53),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewGLAccountNode(i))}),E(6,cFe,2,1,"span",54),c(7),r()(),l(8,"ul"),gl(9,57),r()()()}if(e&2){let t=o.$implicit,n=w();a(3),Dn("aria-label","toggle "+t.name),a(),g("icon",Le(n.nestedTreeControl.isExpanded(t)?"chevron-down":"chevron-right")),a(2),I(t.glCode?6:-1),a(),v(" ",t.name," "),a(),_l("gl-account-tree-invisible",!n.nestedTreeControl.isExpanded(t))}}function mFe(e,o){if(e&1&&(l(0,"div",39)(1,"mat-card")(2,"mat-card-content")(3,"div",58)(4,"div",59),c(5),p(6,"translate"),r(),l(7,"div",60),c(8),r(),l(9,"div",59),c(10),p(11,"translate"),r(),l(12,"div",60),c(13),r(),l(14,"div",59),c(15),p(16,"translate"),r(),l(17,"div",60),c(18),p(19,"translate"),r(),l(20,"div",59),c(21),p(22,"translate"),r(),l(23,"div",60),c(24),r(),l(25,"div",59),c(26),p(27,"translate"),r(),l(28,"div",60),c(29),r(),l(30,"div",59),c(31),p(32,"translate"),r(),l(33,"div",60),c(34),r()()()()()),e&2){let t=w();a(5),v(" ",m(6,12,"labels.inputs.Account Name")," "),a(3),v(" ",t.glAccount.name," "),a(2),v(" ",m(11,14,"labels.inputs.GL Code")," "),a(3),v(" ",t.glAccount.glCode," "),a(2),v(" ",m(16,16,"labels.inputs.Account Type")," "),a(3),v(" ",m(19,18,"labels.inputs.accounting."+t.glAccount.type)," "),a(3),v(" ",m(22,20,"labels.inputs.Account Usage")," "),a(3),v(" ",t.glAccount.usage," "),a(2),v(" ",m(27,22,"labels.inputs.Manual Entries Allowed")," "),a(3),v(" ",t.glAccount.manualEntriesAllowed," "),a(2),v(" ",m(32,24,"labels.inputs.Description")," "),a(3),v(" ",t.glAccount.description," ")}}function dFe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",61),c(4),p(5,"translate"),r(),l(6,"div",62)(7,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Tree View")),a(3),h(m(5,7,"labels.text.Alternative way-Tree view")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function uFe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",61),c(4),p(5,"translate"),r(),l(6,"div",62)(7,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(55);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Add Account")),a(3),h(m(5,7,"labels.text.Create New GL Account")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function fFe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",62)(4,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(20),u=ve(61);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter GL accounts.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function hFe(e,o){if(e&1){let t=Y();l(0,"h4",61),c(1),p(2,"translate"),r(),l(3,"div",62)(4,"button",63),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",64),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",64),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),v(" ",m(2,4,"labels.heading.List of chart of all the accounts being used by your organization.")," "),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var Sv=(()=>{class e{constructor(){this.glAccountTreeService=T(vN),this.route=T(Ie),this.router=T(qe),this.treeControlService=T(yv),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.viewGroup=new it("listView"),this.displayedColumns=["name","glCode","glAccountType","disabled","manualEntriesAllowed","usedAs"],this.isTreeExpanded=!0,this.hasNestedChild=(n,i)=>i.children.length,this._getChildren=n=>sd(n.children);let t=this.glAccountTreeService;this.route.data.subscribe(n=>{this.glAccountData=n.chartOfAccounts,t.initialize(this.glAccountData)}),this.nestedTreeControl=new zg(this._getChildren),this.nestedTreeDataSource=new jg}ngOnInit(){this.tableDataSource=new Wt(this.glAccountData),this.glAccountTreeService.treeDataChange.subscribe(t=>{this.nestedTreeDataSource.data=t,this.nestedTreeControl.expand(this.nestedTreeDataSource.data[0]),this.nestedTreeControl.dataNodes=t})}ngAfterViewInit(){this.tableDataSource.paginator=this.paginator,this.tableDataSource.sortingDataAccessor=(t,n)=>{switch(n){case"glAccountType":return t.type.value;case"usedAs":return t.usage.value;default:return t[n]}},this.tableDataSource.sort=this.sort,this.configurationWizardService.showChartofAccountsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonTreeView,this.buttonTreeView.nativeElement,"bottom",!0)}),this.configurationWizardService.showChartofAccountsList===!0&&setTimeout(()=>{this.showPopover(this.templateAccountsTable,this.accountsTable.nativeElement,"top",!0)})}applyFilter(t){this.tableDataSource.filter=t.trim().toLowerCase()}viewGLAccountNode(t){t.glCode?this.glAccount=t:delete this.glAccount}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showChartofAccountsPage=!1,this.configurationWizardService.showChartofAccountsList=!1,this.configurationWizardService.showChartofAccountsForm=!0,this.router.navigate(["/accounting/chart-of-accounts/gl-accounts/create"])}previousStep(){this.configurationWizardService.showChartofAccountsPage=!1,this.configurationWizardService.showChartofAccountsList=!1,this.configurationWizardService.showChartofAccounts=!0,this.router.navigate(["/accounting"])}toggleExpandCollapse(){this.isTreeExpanded=this.treeControlService.toggleExpandCollapse(this.nestedTreeControl,this.isTreeExpanded)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-chart-of-accounts"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(N7e,5),Ee(L7e,5),Ee(V7e,5),Ee(q7e,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonTreeView=s.first),Te(s=Me())&&(i.templateButtonTreeView=s.first),Te(s=Me())&&(i.accountsTable=s.first),Te(s=Me())&&(i.templateAccountsTable=s.first)}},decls:62,vars:19,consts:[["buttonTreeView",""],["buttonAddAccount",""],["filter",""],["accountsTable",""],["templateButtonTreeView",""],["templateButtonAddAccount",""],["templateFilter",""],["templateAccountsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[3,"formControl"],["value","listView"],["icon","list"],["value","treeView"],["icon","sitemap"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container",3,"hidden"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glCode"],["matColumnDef","glAccountType"],["matColumnDef","disabled"],["matColumnDef","manualEntriesAllowed"],["matColumnDef","usedAs"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"m-b-20","layout-row","align-start","gap-20px"],["mat-raised-button","",3,"click"],[1,"layout-row","gap-4percent","responsive-column"],[1,"mat-elevation-z8","flex"],[1,"gl-account-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"flex-48"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["matTooltipPosition","right","icon","check-circle","size","lg",1,"manual-entries-allowed",3,"matTooltip"],["matTooltipPosition","right","icon","times-circle","size","lg",1,"manual-entries-not-allowed",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["mat-icon-button","","disabled",""],[3,"click"],[1,"m-r-10"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror",3,"icon"],["matTreeNodeOutlet",""],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",8)(1,"div",null,0)(3,"mat-button-toggle-group",9)(4,"mat-button-toggle",10),b(5,"fa-icon",11),r(),l(6,"mat-button-toggle",12),b(7,"fa-icon",13),r()()(),l(8,"div",null,1),F(10,j7e,4,5,"button",14),r()(),l(11,"div",15)(12,"div",16,2)(14,"mat-form-field",17)(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"input",18),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(19,"div",19,3)(21,"table",20),X(22,21),F(23,$7e,3,3,"th",22)(24,U7e,2,1,"td",23),Z(),X(25,24),F(26,W7e,3,3,"th",22)(27,Q7e,2,1,"td",23),Z(),X(28,25),F(29,Y7e,3,3,"th",22)(30,J7e,3,3,"td",23),Z(),X(31,26),F(32,K7e,3,3,"th",22)(33,X7e,3,3,"td",23),Z(),X(34,27),F(35,Z7e,3,3,"th",22)(36,iFe,3,2,"td",23),Z(),X(37,28),F(38,nFe,3,3,"th",22)(39,oFe,2,1,"td",23),Z(),F(40,aFe,1,0,"tr",29)(41,rFe,1,3,"tr",30),r(),b(42,"mat-paginator",31),r()(),l(43,"div",15)(44,"div",32)(45,"button",33),R("click",function(){return V(s),q(i.toggleExpandCollapse())}),c(46),p(47,"translate"),r()(),l(48,"div",34)(49,"div",35)(50,"mat-tree",36),F(51,sFe,6,2,"mat-tree-node",37)(52,pFe,10,7,"mat-nested-tree-node",38),r()(),E(53,mFe,35,26,"div",39),r()(),F(54,dFe,16,15,"ng-template",null,4,ti)(56,uFe,16,15,"ng-template",null,5,ti)(58,fFe,13,12,"ng-template",null,6,ti)(60,hFe,13,12,"ng-template",null,7,ti)}n&2&&(a(3),g("formControl",i.viewGroup),a(7),g("mifosxHasPermission","CREATE_GLACCOUNT"),a(),g("hidden",i.viewGroup.value!=="listView"),a(5),h(m(17,14,"labels.inputs.Filter")),a(5),g("dataSource",i.tableDataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(18,z7e)),a(),g("hidden",i.viewGroup.value!=="treeView"),a(3),v(" ",m(47,16,i.isTreeExpanded?"labels.buttons.Collapse All":"labels.buttons.Expand All")," "),a(4),g("dataSource",i.nestedTreeDataSource)("treeControl",i.nestedTreeControl),a(2),g("matTreeNodeDefWhen",i.hasNestedChild),a(),I(i.glAccount?53:-1))},dependencies:[ue,fe,$e,_n,Oe,Ue,Je,Fe,Be,ze,xe,Ke,Mp,Dp,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,M0,T0,P0,D0,wi,Hg,Gg,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.gl-account-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .gl-account-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.gl-account-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer}.gl-account-tree[_ngcontent-%COMP%] .gl-account-tree-invisible[_ngcontent-%COMP%]{display:none}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.manual-entries-allowed[_ngcontent-%COMP%]{color:#32cd32}.manual-entries-not-allowed[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var gFe=()=>({step:1}),_Fe=()=>({step:2}),CFe=()=>({step:3}),Ar=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po);let t=this.data;this.stepName=t.stepName}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-continue-setup-dialog"]],decls:18,vars:26,consts:[["mat-dialog-title",""],[1,"mw600"],["mat-raised-button","","color","warn",3,"mat-dialog-close"],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h2",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"h3",1),c(5),p(6,"translate"),p(7,"translate"),r()(),l(8,"mat-dialog-actions")(9,"button",2),c(10),p(11,"translate"),r(),l(12,"button",3),c(13),p(14,"translate"),r(),l(15,"button",3),c(16),p(17,"translate"),r()()),n&2&&(a(),h(m(2,11,"labels.heading.Configuration Wizard")),a(4),ea(" ",m(6,13,"labels.heading.You have created")," ",i.stepName," ",m(7,15,"labels.heading.successfully select option")," "),a(4),g("mat-dialog-close",oe(23,gFe)),a(),v(" ",m(11,17,"labels.buttons.Close Configuration Wizard")," "),a(2),g("mat-dialog-close",oe(24,_Fe)),a(),le(" ",m(14,19,"labels.buttons.Create more")," ",i.stepName," "),a(2),g("mat-dialog-close",oe(25,CFe)),a(),v(" ",m(17,21,"labels.buttons.Go to next step")," "))},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var vFe=["accountFormRef"],xFe=["templateAccountFormRef"],bFe=e=>[e];function yFe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",m(2,2,"labels.inputs.accounting."+t.value)," ")}}function SFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function PFe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function TFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function MFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function DFe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function EFe(e,o){if(e&1&&(l(0,"button",21),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.glAccountForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function IFe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",22),c(4),p(5,"translate"),l(6,"a",23),c(7),p(8,"translate"),r()(),l(9,"div",24)(10,"button",25),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",26),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create GL account")),a(3),v(" ",m(5,9,"labels.text.Filling Details")," "),a(3),h(m(8,11,"labels.inputs.Chart of Accounts")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create GL Account")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var wv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.dialog=T(Ht),this.parentData=[],this.cancelRoute="../../",this.route.queryParamMap.subscribe(t=>{this.accountTypeId=Number(t.get("accountType")),this.parentId=Number(t.get("parent")),this.parentId&&(this.cancelRoute=`../view/${this.parentId}`)}),this.route.data.subscribe(t=>{this.chartOfAccountsData=t.chartOfAccountsTemplate,this.accountTypeData=t.chartOfAccountsTemplate.accountTypeOptions,this.accountUsageData=t.chartOfAccountsTemplate.usageOptions})}ngOnInit(){this.createGlAccountForm(),this.setGLAccountForm()}createGlAccountForm(){this.glAccountForm=this.formBuilder.group({type:["",ce.required],name:["",ce.required],usage:["",ce.required],glCode:["",ce.required],parentId:[this.parentId||void 0],tagId:[""],manualEntriesAllowed:[!0],description:[""]})}setGLAccountForm(){this.glAccountForm.get("type").valueChanges.subscribe(t=>{switch(t){case 1:this.parentData=this.chartOfAccountsData.assetHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedAssetsTagOptions;break;case 2:this.parentData=this.chartOfAccountsData.liabilityHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedLiabilitiesTagOptions;break;case 3:this.parentData=this.chartOfAccountsData.equityHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedEquityTagOptions;break;case 4:this.parentData=this.chartOfAccountsData.incomeHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedIncomeTagOptions;break;case 5:this.parentData=this.chartOfAccountsData.expenseHeaderAccountOptions,this.tagData=this.chartOfAccountsData.allowedExpensesTagOptions;break}})}submit(){this.glAccountForm.invalid||this.accountingService.createGlAccount(this.glAccountForm.value).subscribe(t=>{this.configurationWizardService.showChartofAccounts===!0?(this.configurationWizardService.showChartofAccounts=!1,this.openDialog()):this.router.navigate(["../view",t.resourceId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showChartofAccountsForm===!0&&setTimeout(()=>{this.showPopover(this.templateAccountFormRef,this.accountFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showChartofAccountsForm=!1,this.configurationWizardService.showAccountsLinked=!0,this.router.navigate(["/accounting"])}previousStep(){this.configurationWizardService.showChartofAccountsForm=!1,this.configurationWizardService.showChartofAccountsList=!0,this.router.navigate(["/accounting/chart-of-accounts"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"GL account"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showChartofAccountsForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showChartofAccountsForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/accounting/chart-of-accounts/gl-accounts/create"])):n.step===3&&(this.configurationWizardService.showChartofAccountsForm=!1,this.configurationWizardService.showAccountsLinked=!0,this.router.navigate(["/accounting"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-gl-account"]],viewQuery:function(n,i){if(n&1&&(Ee(vFe,5),Ee(xFe,5)),n&2){let s;Te(s=Me())&&(i.accountFormRef=s.first),Te(s=Me())&&(i.templateAccountFormRef=s.first)}},decls:58,vars:37,consts:[["accountFormRef",""],["templateAccountFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","type"],[3,"value"],["matInput","","required","","formControlName","name"],["required","","formControlName","usage"],["matInput","","required","","formControlName","glCode"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"flex-28"],["formControlName","tagId"],[1,"manual-entries-allowed-wrapper","flex-18"],["labelPosition","before","formControlName","manualEntriesAllowed",1,"manual-entries-allowed"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141745/Chart+of+Accounts+-+General+Ledger+Setup","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3,0),R("ngSubmit",function(){return V(s),q(i.submit())}),l(4,"mat-card-content")(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",6),Se(11,yFe,3,4,"mat-option",7,Pe),r(),E(13,SFe,7,9,"mat-error"),r(),l(14,"mat-form-field",5)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8),E(19,wFe,7,9,"mat-error"),r(),l(20,"mat-form-field",5)(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",9),Se(25,PFe,2,2,"mat-option",7,Pe),r(),E(27,TFe,7,9,"mat-error"),r(),l(28,"mat-form-field",5)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",10),E(33,MFe,7,9,"mat-error"),r(),b(34,"mifosx-gl-account-selector",11),l(35,"mat-form-field",12)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",13),Se(40,DFe,2,2,"mat-option",7,Pe),r()(),l(42,"div",14)(43,"mat-checkbox",15),c(44),p(45,"translate"),r()(),l(46,"mat-form-field",16)(47,"mat-label"),c(48),p(49,"translate"),r(),b(50,"textarea",17),r()()(),l(51,"mat-card-actions",18)(52,"button",19),c(53),p(54,"translate"),r(),F(55,EFe,3,4,"button",20),r()()()(),F(56,IFe,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.glAccountForm),a(6),h(m(9,19,"labels.inputs.Account Type")),a(3),we(i.accountTypeData),a(2),I(i.glAccountForm.controls.type.hasError("required")&&(i.glAccountForm.controls.type.touched||i.glAccountForm.controls.type.dirty)?13:-1),a(3),h(m(17,21,"labels.inputs.Account Name")),a(3),I(i.glAccountForm.controls.name.hasError("required")&&(i.glAccountForm.controls.name.touched||i.glAccountForm.controls.name.dirty)?19:-1),a(3),h(m(23,23,"labels.inputs.Account Usage")),a(3),we(i.accountUsageData),a(2),I(i.glAccountForm.controls.usage.hasError("required")&&(i.glAccountForm.controls.usage.touched||i.glAccountForm.controls.usage.dirty)?27:-1),a(3),h(m(31,25,"labels.inputs.GL Code")),a(3),I(i.glAccountForm.controls.glCode.hasError("required")&&(i.glAccountForm.controls.glCode.touched||i.glAccountForm.controls.glCode.dirty)?33:-1),a(),g("inputFormControl",i.glAccountForm.controls.parentId)("glAccountList",i.parentData)("required",!1)("inputLabel","Parent"),a(3),h(m(38,27,"labels.inputs.Tag")),a(3),we(i.tagData),a(4),v(" ",m(45,29,"labels.inputs.Manual Entries Allowed")," "),a(4),h(m(49,31,"labels.inputs.Description")),a(4),g("routerLink",Nt(35,bFe,i.cancelRoute)),a(),v(" ",m(54,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,ta,Ln,he],styles:[".manual-entries-allowed-wrapper[_ngcontent-%COMP%]{position:relative}.manual-entries-allowed-wrapper[_ngcontent-%COMP%] .manual-entries-allowed[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}"]})}}return e})();var OFe=()=>["/accounting/chart-of-accounts/gl-accounts/create"],AFe=(e,o)=>({parent:e,accountType:o}),FFe=()=>["edit"],kFe=e=>[e];function BFe(e,o){if(e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2){let t=w(2);g("routerLink",oe(5,OFe))("queryParams",Ja(6,AFe,t.glAccount.id,t.glAccount.type.id)),a(2),v(" ",m(3,3,"labels.buttons.Subledger Account")," ")}}function RFe(e,o){if(e&1&&(l(0,"span"),E(1,BFe,4,9,"button",10),r()),e&2){let t=w();a(),I(t.glAccount.usage.value==="HEADER"?1:-1)}}function NFe(e,o){e&1&&(l(0,"span")(1,"button",12),b(2,"fa-icon",13),c(3),p(4,"translate"),r()()),e&2&&(a(),g("routerLink",oe(4,FFe)),a(2),v(" ",m(4,2,"labels.buttons.Edit")," "))}function LFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){V(t);let i=w(2);return q(i.changeGlAccountState())}),b(1,"fa-icon",16),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Disable")," "))}function VFe(e,o){if(e&1&&(l(0,"span"),E(1,LFe,4,3,"button",14),r()),e&2){let t=w();a(),I(t.glAccount.disabled?-1:1)}}function qFe(e,o){if(e&1){let t=Y();l(0,"button",18),R("click",function(){V(t);let i=w(2);return q(i.changeGlAccountState())}),b(1,"fa-icon",19),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Enable")," "))}function zFe(e,o){if(e&1&&(l(0,"span"),E(1,qFe,4,3,"button",17),r()),e&2){let t=w();a(),I(t.glAccount.disabled?1:-1)}}function HFe(e,o){if(e&1){let t=Y();l(0,"button",15),R("click",function(){V(t);let i=w();return q(i.deleteGlAccount())}),b(1,"fa-icon",20),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function GFe(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7)(5,"a",21),b(6,"mifosx-gl-account-display",22),r()()()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Parent Account Name")),a(3),g("routerLink",Nt(5,kFe,"/accounting/chart-of-accounts/gl-accounts/view/"+t.glAccount.parent.id)),a(),g("glAccount",t.glAccount.parent)}}function jFe(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Tag")),a(3),h(t.glAccount.tagId.name)}}function $Fe(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Description")),a(3),h(t.glAccount.description)}}var Pv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.location=T(C0),this.route.data.subscribe(t=>{this.glAccount=t.glAccountAndChartOfAccountsTemplate})}deleteGlAccount(){this.dialog.open(vi,{data:{deleteContext:`gl account ${this.glAccount.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteGlAccount(this.glAccount.id).subscribe(()=>{this.router.navigate(["/accounting/chart-of-accounts"])})})}changeGlAccountState(){this.accountingService.updateGlAccount(this.glAccount.id,{disabled:!this.glAccount.disabled}).subscribe(t=>{this.glAccount.disabled=t.changes.disabled})}goBack(){this.router.navigateByUrl("/accounting/chart-of-accounts")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-gl-account"]],decls:43,vars:31,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],[4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"content-rows"],[1,"content-row"],[1,"label"],[1,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"routerLink","queryParams"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn"],["mat-raised-button","","color","warn",3,"click"],["icon","lock",1,"m-r-10"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["icon","trash",1,"m-r-10"],[1,"tab-link",3,"routerLink"],[3,"glAccount"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,RFe,2,1,"span",1)(2,NFe,5,5,"span",1)(3,VFe,2,1,"span",1)(4,zFe,2,1,"span",1)(5,HFe,4,3,"button",2),r(),l(6,"div",3)(7,"mat-card")(8,"mat-card-content")(9,"div",4)(10,"div",5)(11,"div",6),c(12),p(13,"translate"),r(),l(14,"div",7),c(15),p(16,"translate"),r()(),l(17,"div",5)(18,"div",6),c(19),p(20,"translate"),r(),l(21,"div",7),c(22),r()(),E(23,GFe,7,7,"div",5),E(24,jFe,6,4,"div",5),l(25,"div",5)(26,"div",6),c(27),p(28,"translate"),r(),l(29,"div",7),c(30),r()(),l(31,"div",5)(32,"div",6),c(33),p(34,"translate"),r(),l(35,"div",7),c(36),p(37,"yesNo"),r()(),E(38,$Fe,6,4,"div",5),r()(),l(39,"mat-card-actions",8)(40,"button",9),R("click",function(){return i.goBack()}),c(41),p(42,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","CREATE_GLACCOUNT"),a(),g("mifosxHasPermission","UPDATE_GLACCOUNT"),a(),g("mifosxHasPermission","UPDATE_GLACCOUNT"),a(),g("mifosxHasPermission","UPDATE_GLACCOUNT"),a(),g("mifosxHasPermission","DELETE_GLACCOUNT"),a(7),h(m(13,17,"labels.inputs.Account Type")),a(3),h(m(16,19,"labels.inputs.accounting."+(i.glAccount.type==null?null:i.glAccount.type.value))),a(4),h(m(20,21,"labels.inputs.GL Code")),a(3),h(i.glAccount.glCode),a(),I(i.glAccount.parent?23:-1),a(),I(i.glAccount.tagId.id?24:-1),a(3),h(m(28,23,"labels.inputs.Account Usage")),a(3),h(i.glAccount.usage==null?null:i.glAccount.usage.value),a(3),h(m(34,25,"labels.inputs.Manual Entries Allowed")),a(3),h(m(37,27,i.glAccount.manualEntriesAllowed)),a(2),I(i.glAccount.description?38:-1),a(3),v(" ",m(42,29,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,Ke,ke,as,he,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var UFe=()=>["../"];function WFe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function QFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function YFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function JFe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function KFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Usage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function XFe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.GL Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZFe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eke(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.glAccountForm.invalid||t.glAccountForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Tv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.glAccount=t.glAccountAndChartOfAccountsTemplate})}ngOnInit(){this.createGlAccountForm(),this.setGLAccountForm()}createGlAccountForm(){this.glAccountForm=this.formBuilder.group({type:["",ce.required],name:[this.glAccount.name,ce.required],usage:[this.glAccount.usage.id,ce.required],glCode:[this.glAccount.glCode,ce.required],parentId:[this.glAccount.parentId],tagId:[this.glAccount.tagId.id],manualEntriesAllowed:[this.glAccount.manualEntriesAllowed,ce.required],description:[this.glAccount.description]})}setGLAccountForm(){this.accountTypeData=this.glAccount.accountTypeOptions,this.accountUsageData=this.glAccount.usageOptions,this.glAccountForm.get("type").valueChanges.subscribe(t=>{switch(t){case 1:this.parentData=this.glAccount.assetHeaderAccountOptions,this.tagData=this.glAccount.allowedAssetsTagOptions;break;case 2:this.parentData=this.glAccount.liabilityHeaderAccountOptions,this.tagData=this.glAccount.allowedLiabilitiesTagOptions;break;case 3:this.parentData=this.glAccount.equityHeaderAccountOptions,this.tagData=this.glAccount.allowedEquityTagOptions;break;case 4:this.parentData=this.glAccount.incomeHeaderAccountOptions,this.tagData=this.glAccount.allowedIncomeTagOptions;break;case 5:this.parentData=this.glAccount.expenseHeaderAccountOptions,this.tagData=this.glAccount.allowedExpensesTagOptions;break}}),this.glAccountForm.get("type").setValue(this.glAccount.type.id)}submit(){this.accountingService.updateGlAccount(this.glAccount.id,this.glAccountForm.value).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-gl-account"]],decls:55,vars:36,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","type"],[3,"value"],["matInput","","required","","formControlName","name"],["required","","formControlName","usage"],["matInput","","required","","formControlName","glCode"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"flex-28"],["formControlName","tagId"],[1,"manual-entries-allowed-wrapper","flex-18"],["labelPosition","before","required","","formControlName","manualEntriesAllowed",1,"manual-entries-allowed"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,WFe,2,2,"mat-option",5,Pe),r(),E(12,QFe,7,9,"mat-error"),r(),l(13,"mat-form-field",3)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",6),E(18,YFe,7,9,"mat-error"),r(),l(19,"mat-form-field",3)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",7),Se(24,JFe,2,2,"mat-option",5,Pe),r(),E(26,KFe,7,9,"mat-error"),r(),l(27,"mat-form-field",3)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",8),E(32,XFe,7,9,"mat-error"),r(),b(33,"mifosx-gl-account-selector",9),l(34,"mat-form-field",10)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",11),Se(39,ZFe,2,2,"mat-option",5,Pe),r()(),l(41,"div",12)(42,"mat-checkbox",13),c(43),p(44,"translate"),r()(),l(45,"mat-form-field",14)(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"textarea",15),r()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,eke,3,4,"button",18),r()()()()),n&2&&(a(2),g("formGroup",i.glAccountForm),a(5),h(m(8,19,"labels.inputs.Account Type")),a(3),we(i.accountTypeData),a(2),I(i.glAccountForm.controls.type.hasError("required")?12:-1),a(3),h(m(16,21,"labels.inputs.Account Name")),a(3),I(i.glAccountForm.controls.name.hasError("required")?18:-1),a(3),h(m(22,23,"labels.inputs.Account Usage")),a(3),we(i.accountUsageData),a(2),I(i.glAccountForm.controls.usage.hasError("required")?26:-1),a(3),h(m(30,25,"labels.inputs.GL Code")),a(3),I(i.glAccountForm.controls.glCode.hasError("required")?32:-1),a(),g("inputFormControl",i.glAccountForm.controls.parentId)("glAccountList",i.parentData)("required",!1)("inputLabel","Parent"),a(3),h(m(37,27,"labels.inputs.Tag")),a(3),we(i.tagData),a(4),v(" ",m(44,29,"labels.inputs.Manual Entries Allowed")," "),a(4),h(m(48,31,"labels.inputs.Description")),a(4),g("routerLink",oe(35,UFe)),a(),v(" ",m(53,33,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_GLACCOUNT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,ta,Ln,he],styles:[".manual-entries-allowed-wrapper[_ngcontent-%COMP%]{position:relative}.manual-entries-allowed-wrapper[_ngcontent-%COMP%] .manual-entries-allowed[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}"]})}}return e})();var tke=["buttonCreateClosure"],ike=["templateButtonCreateClosure"],nke=["closuresTable"],oke=["templateClosuresTable"],ake=()=>[10,25,50,100],rke=()=>["create"],lke=e=>["view",e];function ske(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",27),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,rke)),a(2),v(" ",m(3,2,"labels.buttons.Create Closure")," "))}function cke(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function pke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function mke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function dke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Closure Date")))}function uke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.closingDate)}}function fke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Comments")))}function hke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.comments)}}function gke(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function _ke(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUsername)}}function Cke(e,o){e&1&&b(0,"tr",30)}function vke(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,lke,t.id))}}function xke(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(38);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Closure")),a(3),h(m(5,7,"labels.text.Create new closure")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function bke(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",33)(4,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(18),u=ve(40);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter closures by office.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function yke(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),l(3,"a",36),c(4),p(5,"translate"),r()(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(38);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of closures. To know more click"),": "),a(3),h(m(5,7,"labels.inputs.Closing Entries")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Mv=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["officeName","closingDate","comments","createdByUsername"],this.officeName=new it,this.route.data.subscribe(t=>{this.officeData=t.offices,this.glAccountClosureData=t.glAccountClosures})}ngOnInit(){this.applyFilter(),this.setFilteredOffices(),this.setAccountingClosures()}applyFilter(){this.officeName.valueChanges.subscribe(t=>{this.dataSource.filter=t.trim().toLowerCase()})}setAccountingClosures(){this.dataSource=new Wt(this.glAccountClosureData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}setFilteredOffices(){this.filteredOfficeData=this.officeName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}filterOfficeAutocompleteData(t){return this.officeData.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showClosingEntriesPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateClosure,this.buttonCreateClosure.nativeElement,"bottom",!0)}),this.configurationWizardService.showClosingEntriesList===!0&&setTimeout(()=>{this.showPopover(this.templateClosuresTable,this.closuresTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showClosingEntriesPage=!1,this.configurationWizardService.showClosingEntriesList=!1,this.configurationWizardService.showCreateJournalEntries=!0,this.router.navigate(["/accounting"])}previousStep(){this.configurationWizardService.showClosingEntriesPage=!1,this.configurationWizardService.showClosingEntriesList=!1,this.configurationWizardService.showClosingEntries=!0,this.router.navigate(["/accounting"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-closing-entries"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(tke,5),Ee(ike,5),Ee(nke,5),Ee(oke,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateClosure=s.first),Te(s=Me())&&(i.templateButtonCreateClosure=s.first),Te(s=Me())&&(i.closuresTable=s.first),Te(s=Me())&&(i.templateClosuresTable=s.first)}},decls:41,vars:13,consts:[["buttonCreateClosure",""],["filter",""],["officeNameAutocomplete","matAutocomplete"],["closuresTable",""],["templateButtonCreateClosure",""],["templateFilter",""],["templateClosuresTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container","layout-row"],[1,"flex-fill"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],[3,"value"],[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","closingDate"],["matColumnDef","comments"],["matColumnDef","createdByUsername"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895316/Closing+Entries","target","_blank"]],template:function(n,i){if(n&1&&(l(0,"div",7)(1,"div",null,0),F(3,ske,4,5,"button",8),r()(),l(4,"div",9,1)(6,"mat-form-field",10)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",11),r()(),l(11,"mat-autocomplete",12,2),Se(13,cke,2,2,"mat-option",13,Pe),p(15,"async"),r(),l(16,"div",14)(17,"div",15,3)(19,"table",16),X(20,17),F(21,pke,3,3,"th",18)(22,mke,2,1,"td",19),Z(),X(23,20),F(24,dke,3,3,"th",18)(25,uke,2,1,"td",19),Z(),X(26,21),F(27,fke,3,3,"th",18)(28,hke,2,1,"td",19),Z(),X(29,22),F(30,gke,3,3,"th",18)(31,_ke,2,1,"td",19),Z(),F(32,Cke,1,0,"tr",23)(33,vke,1,3,"tr",24),r(),b(34,"mat-paginator",25),r()(),F(35,xke,16,15,"ng-template",null,4,ti)(37,bke,13,12,"ng-template",null,5,ti)(39,yke,16,15,"ng-template",null,6,ti)),n&2){let s=ve(12);a(3),g("mifosxHasPermission","CREATE_GLCLOSURE"),a(5),h(m(9,8,"labels.inputs.Office Name")),a(2),g("formControl",i.officeName)("matAutocomplete",s),a(3),we(m(15,10,i.filteredOfficeData)),a(6),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,ake))}},dependencies:[ue,fe,st,$e,_n,Oe,Fe,Be,ze,ft,xe,Ke,ke,er,Za,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Ske=()=>["../"];function wke(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Pke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Closing Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mke(e,o){if(e&1&&(l(0,"button",13),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountingClosureForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Dv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createAccountingClosureForm()}createAccountingClosureForm(){this.accountingClosureForm=this.formBuilder.group({officeId:["",ce.required],closingDate:["",ce.required],comments:[""]})}submit(){let t=this.accountingClosureForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.closingDate&&(t.closingDate=this.dateUtils.formatDate(t.closingDate,this.settingsService.dateFormat)),this.accountingService.createAccountingClosure(t).subscribe(n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-closure"]],decls:32,vars:22,consts:[["closingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","closingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,wke,2,2,"mat-option",5,Pe),r(),E(12,Pke,7,9,"mat-error"),r(),l(13,"mat-form-field",6),R("click",function(){V(s);let u=ve(20);return q(u.open())}),l(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7)(18,"mat-datepicker-toggle",8)(19,"mat-datepicker",null,0),E(21,Tke,7,9,"mat-error"),r(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"textarea",9),r()()(),l(27,"mat-card-actions",10)(28,"button",11),c(29),p(30,"translate"),r(),F(31,Mke,3,4,"button",12),r()()()()}if(n&2){let s=ve(20);a(2),g("formGroup",i.accountingClosureForm),a(5),h(m(8,13,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.accountingClosureForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,15,"labels.inputs.Closing Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.accountingClosureForm.controls.closingDate.hasError("required")?21:-1),a(3),h(m(25,17,"labels.inputs.Comments")),a(4),g("routerLink",oe(21,Ske)),a(),v(" ",m(30,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_GLCLOSURE")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Dke=()=>["edit"];function Eke(e,o){if(e&1){let t=Y();l(0,"button",5),R("click",function(){V(t);let i=w();return q(i.deleteAccountingClosure())}),b(1,"fa-icon",6),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function Ike(e,o){if(e&1&&(l(0,"div",4)(1,"mat-card")(2,"mat-card-content")(3,"div",7)(4,"div",8),c(5),p(6,"translate"),r(),l(7,"div",9),c(8),r(),l(9,"div",8),c(10),p(11,"translate"),r(),l(12,"div",9),c(13),r(),l(14,"div",8),c(15),p(16,"translate"),r(),l(17,"div",9),c(18),r(),l(19,"div",8),c(20),p(21,"translate"),r(),l(22,"div",9),c(23),r(),l(24,"div",8),c(25),p(26,"translate"),r(),l(27,"div",9),c(28),r(),l(29,"div",8),c(30),p(31,"translate"),r(),l(32,"div",9),c(33),r(),l(34,"div",8),c(35),p(36,"translate"),r(),l(37,"div",9),c(38),r()()()()()),e&2){let t=w();a(5),v(" ",m(6,14,"labels.inputs.Office")," "),a(3),v(" ",t.glAccountClosure.officeName," "),a(2),v(" ",m(11,16,"labels.inputs.Closure Date")," "),a(3),v(" ",t.glAccountClosure.closingDate," "),a(2),v(" ",m(16,18,"labels.inputs.Closed By")," "),a(3),v(" ",t.glAccountClosure.createdByUsername," "),a(2),v(" ",m(21,20,"labels.inputs.Updated By")," "),a(3),v(" ",t.glAccountClosure.lastUpdatedByUsername," "),a(2),v(" ",m(26,22,"labels.inputs.Updated on")," "),a(3),v(" ",t.glAccountClosure.lastUpdatedDate," "),a(2),v(" ",m(31,24,"labels.inputs.Closure Creation Date")," "),a(3),v(" ",t.glAccountClosure.createdDate," "),a(2),v(" ",m(36,26,"labels.inputs.Comments")," "),a(3),v(" ",t.glAccountClosure.comments," ")}}var Ev=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.glAccountClosure=t.glAccountClosure})}deleteAccountingClosure(){this.dialog.open(vi,{data:{deleteContext:`accounting closure ${this.glAccountClosure.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteAccountingClosure(this.glAccountClosure.id).subscribe(()=>{this.router.navigate(["/accounting/closing-entries"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-closure"]],decls:7,vars:7,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),F(5,Eke,4,3,"button",3),r(),E(6,Ike,39,28,"div",4)),n&2&&(a(),g("routerLink",oe(6,Dke)),a(2),v(" ",m(4,4,"labels.buttons.Edit")," "),a(2),g("mifosxHasPermission","DELETE_GLCLOSURE"),a(),I(i.glAccountClosure?6:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var Oke=()=>["../"];function Ake(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}var Iv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.glAccountClosure=t.glAccountClosure})}ngOnInit(){this.createAccountingClosureForm(),this.setAccountingClosure()}createAccountingClosureForm(){this.accountingClosureForm=this.formBuilder.group({officeId:[{value:"",disabled:!0},ce.required],closingDate:[{value:"",disabled:!0},ce.required],comments:[""]})}setAccountingClosure(){this.officeData=[{id:this.glAccountClosure.officeId,name:this.glAccountClosure.officeName}],this.accountingClosureForm.get("officeId").setValue(this.glAccountClosure.officeId),this.accountingClosureForm.get("closingDate").setValue(new Date(this.glAccountClosure.closingDate)),this.accountingClosureForm.get("comments").setValue(this.glAccountClosure.comments)}submit(){this.accountingService.updateAccountingClosure(this.glAccountClosure.id,{comments:this.accountingClosureForm.value.comments}).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-closure"]],decls:32,vars:21,consts:[["closingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","closingDate",3,"matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","comments","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,Ake,2,2,"mat-option",5,Pe),r()(),l(12,"mat-form-field",6),R("click",function(){V(s);let u=ve(19);return q(u.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",7)(17,"mat-datepicker-toggle",8)(18,"mat-datepicker",null,0),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"textarea",9),r()()(),l(25,"mat-card-actions",10)(26,"button",11),c(27),p(28,"translate"),r(),l(29,"button",12),c(30),p(31,"translate"),r()()()()()}if(n&2){let s=ve(19);a(2),g("formGroup",i.accountingClosureForm),a(5),h(m(8,10,"labels.inputs.Office")),a(3),we(i.officeData),a(4),h(m(15,12,"labels.inputs.Closing Date")),a(2),g("matDatepicker",s),a(),g("for",s),a(5),h(m(23,14,"labels.inputs.Comments")),a(4),g("routerLink",oe(20,Oke)),a(),v(" ",m(28,16,"labels.buttons.Cancel")," "),a(2),g("disabled",i.accountingClosureForm.pristine),a(),v(" ",m(31,18,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Fke=()=>[10,25,50,100],kke=()=>["create"],Bke=e=>["view",e];function Rke(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,kke)),a(2),v(" ",m(3,2,"labels.buttons.Add Rule")," "))}function Nke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Lke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Vke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function qke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function zke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit Tags")))}function Hke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.debitTags)}}function Gke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit Account")))}function jke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.debitAccounts?t.debitAccounts[0].name:""," ")}}function $ke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit Tags")))}function Uke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.creditTags)}}function Wke(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit Account")))}function Qke(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.creditAccounts?t.creditAccounts[0].name:""," ")}}function Yke(e,o){e&1&&b(0,"tr",23)}function Jke(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("routerLink",Nt(1,Bke,t.id))}}var Ov=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","officeName","debitTags","debitAccount","creditTags","creditAccount"],this.route.data.subscribe(t=>{this.accountingRuleData=t.accountingRules})}ngOnInit(){this.setAccountingRules()}setAccountingRules(){this.accountingRuleData.forEach(t=>{t.debitTags=t.debitTags?t.debitTags.map(n=>n.tag.name).join(", "):"",t.creditTags=t.creditTags?t.creditTags.map(n=>n.tag.name).join(", "):""}),this.dataSource=new Wt(this.accountingRuleData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"debitAccount":return t.debitAccounts[0].name;case"creditAccount":return t.creditAccounts[0].name;default:return t[n]}},this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-accounting-rules"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","debitTags"],["matColumnDef","debitAccount"],["matColumnDef","creditTags"],["matColumnDef","creditAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Rke,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Nke,3,3,"th",9)(13,Lke,2,1,"td",10),Z(),X(14,11),F(15,Vke,3,3,"th",9)(16,qke,2,1,"td",10),Z(),X(17,12),F(18,zke,3,3,"th",9)(19,Hke,2,1,"td",10),Z(),X(20,13),F(21,Gke,3,3,"th",9)(22,jke,2,1,"td",10),Z(),X(23,14),F(24,$ke,3,3,"th",9)(25,Uke,2,1,"td",10),Z(),X(26,15),F(27,Wke,3,3,"th",9)(28,Qke,2,1,"td",10),Z(),F(29,Yke,1,0,"tr",16)(30,Jke,1,3,"tr",17),r(),b(31,"mat-paginator",18),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_ACCOUNTINGRULE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Fke)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Av=e=>{let o=e.controls.accountToDebit.value,t=e.controls.debitTags.value,n=e.controls.accountToCredit.value,i=e.controls.creditTags.value;return(o||t)&&(n||i)?null:{error:!0}};var Kke=()=>["../../"];function Xke(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zke(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function e8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function t8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function i8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",19),Se(5,t8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Debit")),a(3),we(t.glAccountData)}}function n8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function o8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",20),Se(6,n8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",22),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Debit Tags")),a(3),we(t.debitTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Debit Entries Allowed")," ")}}function a8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function r8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,a8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Credit")),a(3),we(t.glAccountData)}}function l8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function s8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",24),Se(6,l8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",25),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Credit Tags")),a(3),we(t.creditTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Credit Entries Allowed")," ")}}function c8e(e,o){if(e&1&&(l(0,"button",26),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountingRuleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Fv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.officeData=t.accountingRulesTemplate.allowedOffices,this.glAccountData=t.accountingRulesTemplate.allowedAccounts,this.debitTagData=t.accountingRulesTemplate.allowedDebitTagOptions,this.creditTagData=t.accountingRulesTemplate.allowedCreditTagOptions})}ngOnInit(){this.createAccountingRuleForm(),this.setAccountingRulesForm()}createAccountingRuleForm(){this.accountingRuleForm=this.formBuilder.group({name:["",ce.required],officeId:["",ce.required],debitRuleType:["fixedAccount"],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:["fixedAccount"],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[""]},{validator:Av})}setAccountingRulesForm(){this.accountingRuleForm.get("debitRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("debitTags").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").reset()):(this.accountingRuleForm.get("accountToDebit").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").setValue(!1))}),this.accountingRuleForm.get("creditRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("creditTags").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").reset()):(this.accountingRuleForm.get("accountToCredit").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").setValue(!1))})}submit(){let t=this.accountingRuleForm.value;t.debitRuleType==="fixedAccount"?(delete t.debitTags,delete t.allowMultipleDebitEntries):delete t.accountToDebit,t.creditRuleType==="fixedAccount"?(delete t.creditTags,delete t.allowMultipleCreditEntries):delete t.accountToCredit,delete t.debitRuleType,delete t.creditRuleType,this.accountingService.createAccountingRule(t).subscribe(n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-rule"]],decls:55,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],[1,"rule-wrapper","flex-48","layout-row","responsive-column"],[1,"flex-50"],["formControlName","debitRuleType",1,"flex-50","layout-row","gap-5percent","radio-group-spacing"],["value","fixedAccount"],["value","listOfAccounts"],[1,"flex-48","layout-row","gap-2percent","responsive-column"],["formControlName","creditRuleType",1,"flex-50","layout-row","gap-5-percent","radio-group-spacing"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","accountToDebit"],["formControlName","debitTags","multiple",""],["ngClass.gt-md","entries-wrapper",1,"flex-50"],["labelPosition","before","formControlName","allowMultipleDebitEntries",1,"entries"],["formControlName","accountToCredit"],["formControlName","creditTags","multiple",""],["labelPosition","before","formControlName","allowMultipleCreditEntries",1,"entries"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,Xke,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,Zke,2,2,"mat-option",6,Pe),r(),E(18,e8e,7,9,"mat-error"),r(),l(19,"div",7)(20,"mat-label",8),c(21),p(22,"translate"),r(),l(23,"mat-radio-group",9)(24,"mat-radio-button",10),c(25),p(26,"translate"),r(),l(27,"mat-radio-button",11),c(28),p(29,"translate"),r()()(),E(30,i8e,7,3,"mat-form-field",3),E(31,o8e,12,6,"div",12),l(32,"div",7)(33,"mat-label",8),c(34),p(35,"translate"),r(),l(36,"mat-radio-group",13)(37,"mat-radio-button",10),c(38),p(39,"translate"),r(),l(40,"mat-radio-button",11),c(41),p(42,"translate"),r()()(),E(43,r8e,7,3,"mat-form-field",3),E(44,s8e,12,6,"div",12),l(45,"mat-form-field",14)(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"textarea",15),r()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,c8e,3,4,"button",18),r()()()()),n&2&&(a(2),g("formGroup",i.accountingRuleForm),a(5),h(m(8,19,"labels.inputs.Accounting Rule Name")),a(3),I(i.accountingRuleForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,21,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.accountingRuleForm.controls.officeId.hasError("required")?18:-1),a(3),v("",m(22,23,"labels.inputs.Affected GL Entry (Debit) Rule Type")," *"),a(4),h(m(26,25,"labels.inputs.Fixed Account")),a(3),h(m(29,27,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.debitRuleType.value==="fixedAccount"?30:-1),a(),I(i.accountingRuleForm.controls.debitRuleType.value==="listOfAccounts"?31:-1),a(3),v("",m(35,29,"labels.inputs.Affected GL Entry (Credit) Rule Type")," *"),a(4),h(m(39,31,"labels.inputs.Fixed Account")),a(3),h(m(42,33,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.creditRuleType.value==="fixedAccount"?43:-1),a(),I(i.accountingRuleForm.controls.creditRuleType.value==="listOfAccounts"?44:-1),a(3),h(m(48,35,"labels.inputs.Description")),a(4),g("routerLink",oe(39,Kke)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,tr,ir,Ln,he],styles:[".rule-wrapper[_ngcontent-%COMP%]{margin:17.5px 0 0}.entries-wrapper[_ngcontent-%COMP%]{position:relative}.entries-wrapper[_ngcontent-%COMP%] .entries[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var p8e=()=>["edit"];function m8e(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,p8e)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function d8e(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){V(t);let i=w();return q(i.deleteAccountingRule())}),b(1,"fa-icon",11),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function u8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Description")),a(3),h(t.accountingRule.description)}}function f8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function h8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,f8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Debit Tags")),a(3),we(t.accountingRule.debitTags)}}function g8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function _8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,g8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Debit Account Name")),a(3),we(t.accountingRule.debitAccounts)}}function C8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tag.name)}}function v8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,C8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Credit Tags")),a(3),we(t.accountingRule.creditTags)}}function x8e(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name+" ("+t.glCode+")")}}function b8e(e,o){if(e&1&&(l(0,"div",5)(1,"div",6),c(2),p(3,"translate"),r(),l(4,"div",7),Se(5,x8e,2,1,"span",null,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Credit Account Name")),a(3),we(t.accountingRule.creditAccounts)}}var kv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.accountingRule=t.accountingRule})}deleteAccountingRule(){this.dialog.open(vi,{data:{deleteContext:`accounting rule ${this.accountingRule.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.accountingService.deleteAccountingRule(this.accountingRule.id).subscribe(()=>{this.router.navigate(["/accounting/accounting-rules"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-rule"]],decls:31,vars:19,consts:[[1,"container"],[1,"layout-row","align-end","gap-2px","responsive-column","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"content-rows"],[1,"content-row"],[1,"label"],[1,"value"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1),F(2,m8e,4,5,"button",2)(3,d8e,4,3,"button",3),r(),l(4,"mat-card")(5,"mat-card-content",4)(6,"div",5)(7,"div",6),c(8),p(9,"translate"),r(),l(10,"div",7),c(11),r()(),E(12,u8e,6,4,"div",5),l(13,"div",5)(14,"div",6),c(15),p(16,"translate"),r(),l(17,"div",7),c(18),r()(),l(19,"div",5)(20,"div",6),c(21),p(22,"translate"),r(),l(23,"div",7),c(24),r()()()(),l(25,"mat-card")(26,"mat-card-content",4),E(27,h8e,7,3,"div",5),E(28,_8e,7,3,"div",5),E(29,v8e,7,3,"div",5),E(30,b8e,7,3,"div",5),r()()()),n&2&&(a(2),g("mifosxHasPermission","UPDATE_ACCOUNTINGRULE"),a(),g("mifosxHasPermission","DELETE_ACCOUNTINGRULE"),a(5),h(m(9,13,"labels.inputs.Office")),a(3),h(i.accountingRule.officeName),a(),I(i.accountingRule.description?12:-1),a(3),h(m(16,15,"labels.inputs.Multiple Debit Entries Allowed")),a(3),h(i.accountingRule.allowMultipleDebitEntries),a(3),h(m(22,17,"labels.inputs.Multiple Credit Entries Allowed")),a(3),h(i.accountingRule.allowMultipleCreditEntries),a(3),I(i.accountingRule.debitTags!=null&&i.accountingRule.debitTags.length?27:-1),a(),I(i.accountingRule.debitAccounts!=null&&i.accountingRule.debitAccounts.length?28:-1),a(),I(i.accountingRule.creditTags!=null&&i.accountingRule.creditTags.length?29:-1),a(),I(i.accountingRule.creditAccounts!=null&&i.accountingRule.creditAccounts.length?30:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var y8e=()=>["../"];function S8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accounting Rule Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function w8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function P8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function T8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function M8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",19),Se(5,T8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Debit")),a(3),we(t.glAccountData)}}function D8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function E8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",20),Se(6,D8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",22),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Debit Tags")),a(3),we(t.debitTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Debit Entries Allowed")," ")}}function I8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function O8e(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,I8e,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Account to Credit")),a(3),we(t.glAccountData)}}function A8e(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function F8e(e,o){if(e&1&&(l(0,"div",12)(1,"mat-form-field",8)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",24),Se(6,A8e,2,2,"mat-option",6,Pe),r()(),l(8,"div",21)(9,"mat-checkbox",25),c(10),p(11,"translate"),r()()()),e&2){let t=w();a(3),h(m(4,2,"labels.inputs.Credit Tags")),a(3),we(t.creditTagData),a(4),v(" ",m(11,4,"labels.inputs.Multiple Credit Entries Allowed")," ")}}function k8e(e,o){if(e&1&&(l(0,"button",26),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.accountingRuleForm.pristine||!t.accountingRuleForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Bv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.officeData=t.accountingRulesTemplate.allowedOffices,this.glAccountData=t.accountingRulesTemplate.allowedAccounts,this.debitTagData=t.accountingRulesTemplate.allowedDebitTagOptions,this.creditTagData=t.accountingRulesTemplate.allowedCreditTagOptions,this.accountingRule=t.accountingRule})}ngOnInit(){this.createAccountingRuleForm(),this.setAccountingRulesForm()}createAccountingRuleForm(){this.accountingRuleForm=this.formBuilder.group({name:[this.accountingRule.name,ce.required],officeId:[this.accountingRule.officeId,ce.required],debitRuleType:[""],accountToDebit:[""],debitTags:[""],allowMultipleDebitEntries:[""],creditRuleType:[""],accountToCredit:[""],creditTags:[""],allowMultipleCreditEntries:[""],description:[this.accountingRule.description]},{validator:Av})}setAccountingRulesForm(){this.accountingRuleForm.get("debitRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("debitTags").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").reset()):(this.accountingRuleForm.get("accountToDebit").reset(),this.accountingRuleForm.get("allowMultipleDebitEntries").setValue(!1))}),this.accountingRuleForm.get("creditRuleType").valueChanges.subscribe(t=>{t==="fixedAccount"?(this.accountingRuleForm.get("creditTags").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").reset()):(this.accountingRuleForm.get("accountToCredit").reset(),this.accountingRuleForm.get("allowMultipleCreditEntries").setValue(!1))}),this.accountingRule.debitAccounts?(this.accountingRuleForm.get("debitRuleType").setValue("fixedAccount"),this.accountingRuleForm.get("accountToDebit").setValue(this.accountingRule.debitAccounts[0].id)):(this.accountingRuleForm.get("debitRuleType").setValue("listOfAccounts"),this.accountingRuleForm.get("debitTags").setValue(this.accountingRule.debitTags.map(t=>t.tag.id)),this.accountingRuleForm.get("allowMultipleDebitEntries").setValue(this.accountingRule.allowMultipleDebitEntries)),this.accountingRule.creditAccounts?(this.accountingRuleForm.get("creditRuleType").setValue("fixedAccount"),this.accountingRuleForm.get("accountToCredit").setValue(this.accountingRule.creditAccounts[0].id)):(this.accountingRuleForm.get("creditRuleType").setValue("listOfAccounts"),this.accountingRuleForm.get("creditTags").setValue(this.accountingRule.creditTags.map(t=>t.tag.id)),this.accountingRuleForm.get("allowMultipleCreditEntries").setValue(this.accountingRule.allowMultipleCreditEntries))}submit(){let t=this.accountingRuleForm.value;t.debitRuleType==="fixedAccount"?(delete t.debitTags,delete t.allowMultipleDebitEntries):delete t.accountToDebit,t.creditRuleType==="fixedAccount"?(delete t.creditTags,delete t.allowMultipleCreditEntries):delete t.accountToCredit,delete t.debitRuleType,delete t.creditRuleType,this.accountingService.updateAccountingRule(this.accountingRule.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-rule"]],decls:55,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],[1,"rule-wrapper","flex-48","layout-row","responsive-column"],[1,"flex-50"],["formControlName","debitRuleType",1,"flex-50","layout-row","gap-5percent","radio-group-spacing"],["value","fixedAccount"],["value","listOfAccounts"],[1,"flex-48","layout-row","gap-2percent","responsive-column"],["formControlName","creditRuleType",1,"flex-50","layout-row","gap-5-percent","radio-group-spacing"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","accountToDebit"],["formControlName","debitTags","multiple",""],[1,"flex-50","entries-wrapper"],["labelPosition","before","formControlName","allowMultipleDebitEntries",1,"entries"],["formControlName","accountToCredit"],["formControlName","creditTags","multiple",""],["labelPosition","before","formControlName","allowMultipleCreditEntries",1,"entries"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,S8e,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,w8e,2,2,"mat-option",6,Pe),r(),E(18,P8e,7,9,"mat-error"),r(),l(19,"div",7)(20,"mat-label",8),c(21),p(22,"translate"),r(),l(23,"mat-radio-group",9)(24,"mat-radio-button",10),c(25),p(26,"translate"),r(),l(27,"mat-radio-button",11),c(28),p(29,"translate"),r()()(),E(30,M8e,7,3,"mat-form-field",3),E(31,E8e,12,6,"div",12),l(32,"div",7)(33,"mat-label",8),c(34),p(35,"translate"),r(),l(36,"mat-radio-group",13)(37,"mat-radio-button",10),c(38),p(39,"translate"),r(),l(40,"mat-radio-button",11),c(41),p(42,"translate"),r()()(),E(43,O8e,7,3,"mat-form-field",3),E(44,F8e,12,6,"div",12),l(45,"mat-form-field",14)(46,"mat-label"),c(47),p(48,"translate"),r(),b(49,"textarea",15),r()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,k8e,3,4,"button",18),r()()()()),n&2&&(a(2),g("formGroup",i.accountingRuleForm),a(5),h(m(8,19,"labels.inputs.Accounting Rule Name")),a(3),I(i.accountingRuleForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,21,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.accountingRuleForm.controls.officeId.hasError("required")?18:-1),a(3),v("",m(22,23,"labels.inputs.Affected GL Entry (Debit) Rule Type")," *"),a(4),h(m(26,25,"labels.inputs.Fixed Account")),a(3),h(m(29,27,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.debitRuleType.value==="fixedAccount"?30:-1),a(),I(i.accountingRuleForm.controls.debitRuleType.value==="listOfAccounts"?31:-1),a(3),v("",m(35,29,"labels.inputs.Affected GL Entry (Credit) Rule Type")," *"),a(4),h(m(39,31,"labels.inputs.Fixed Account")),a(3),h(m(42,33,"labels.inputs.List of Accounts")),a(2),I(i.accountingRuleForm.controls.creditRuleType.value==="fixedAccount"?43:-1),a(),I(i.accountingRuleForm.controls.creditRuleType.value==="listOfAccounts"?44:-1),a(3),h(m(48,35,"labels.inputs.Description")),a(4),g("routerLink",oe(39,y8e)),a(),v(" ",m(53,37,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTINGRULE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,tr,ir,Ln,he],styles:[".rule-wrapper[_ngcontent-%COMP%]{margin:17.5px 0 0}.entries-wrapper[_ngcontent-%COMP%]{position:relative}.entries-wrapper[_ngcontent-%COMP%] .entries[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var B8e=()=>["../"];function R8e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Accrue Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function N8e(e,o){if(e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2){let t=w();g("disabled",!t.periodicAccrualsForm.valid),a(2),v(" ",m(3,2,"labels.buttons.Run Periodic Accruals")," ")}}var Rv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPeriodicAccrualsForm()}createPeriodicAccrualsForm(){this.periodicAccrualsForm=this.formBuilder.group({tillDate:["",ce.required]})}submit(){let t=this.periodicAccrualsForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.tillDate instanceof Date&&(t.tillDate=this.dateUtils.formatDate(t.tillDate,this.settingsService.dateFormat)),this.accountingService.executePeriodicAccruals(t).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-periodic-accruals"]],decls:19,vars:15,consts:[["tillDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","tillDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],["icon","play",1,"m-r-10"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,R8e,7,9,"mat-error"),r()()(),l(14,"mat-card-actions",7)(15,"button",8),c(16),p(17,"translate"),r(),F(18,N8e,4,4,"button",9),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.periodicAccrualsForm),a(5),h(m(8,10,"labels.inputs.Accrue Till Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.periodicAccrualsForm.controls.tillDate.hasError("required")?13:-1),a(2),g("routerLink",oe(14,B8e)),a(),v(" ",m(17,12,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","EXECUTE_PERIODICACCRUALACCOUNTING")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var L8e=()=>[10,25,50,100],V8e=()=>["create"],q8e=e=>["view",e];function z8e(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,V8e)),a(2),v(" ",m(3,2,"labels.buttons.Create Provisioning Entry")," "))}function H8e(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function G8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdUser)}}function j8e(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created On")))}function $8e(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdDate)}}function U8e(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Journal Entry Created")," "))}function W8e(e,o){if(e&1&&(l(0,"td",23),b(1,"mat-checkbox",24),r()),e&2){let t=o.$implicit;a(),g("disabled",!0)("checked",t.journalEntry)}}function Q8e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.View Report")))}function Y8e(e,o){if(e&1&&(l(0,"td",23)(1,"button",26),b(2,"fa-icon",27),c(3),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("routerLink",Nt(4,q8e,t.id)),a(2),v("",m(4,2,"labels.buttons.View")," ")}}function J8e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Recreate Provisioning")))}function K8e(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=V(t).$implicit,d=w();return q(d.recreateProvisioning(i,s.id))}),b(2,"fa-icon",29),c(3),p(4,"translate"),r()()}if(e&2){let t=o.$implicit;a(),g("disabled",t.journalEntry),a(2),v("",m(4,2,"labels.buttons.Recreate")," ")}}function X8e(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.View Journal Entry")))}function Z8e(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",28),R("click",function(i){let s=V(t).$implicit,d=w();return q(d.viewJournalEntry(i,s.id))}),b(2,"fa-icon",27),c(3),p(4,"translate"),r()()}if(e&2){let t=o.$implicit;a(),g("disabled",!t.journalEntry),a(2),v("",m(4,2,"labels.buttons.View")," ")}}function eBe(e,o){e&1&&b(0,"tr",30)}function tBe(e,o){e&1&&b(0,"tr",31)}var Nv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.displayedColumns=["createdUser","createdDate","journalEntry","viewReport","recreateProvisioning","viewJournalEntry"],this.route.data.subscribe(t=>{this.provisioningEntryData=t.provisioningEntries.pageItems})}ngOnInit(){this.setProvisioningEntries()}setProvisioningEntries(){this.dataSource=new Wt(this.provisioningEntryData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}recreateProvisioning(t,n){this.accountingService.recreateProvisioningEntries(n).subscribe(i=>{this.router.navigate(["view",i.resourceId],{relativeTo:this.route})}),t.stopPropagation()}viewJournalEntry(t,n){this.router.navigate(["journal-entries/view",n],{relativeTo:this.route}),t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-provisioning-entries"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","createdUser"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdDate"],["matColumnDef","journalEntry"],["matColumnDef","viewReport"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","recreateProvisioning"],["matColumnDef","viewJournalEntry"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"disabled","checked"],["mat-header-cell",""],["mat-button","","color","primary",3,"routerLink"],["icon","eye",1,"m-r-10"],["mat-button","","color","primary",3,"click","disabled"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,z8e,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,H8e,3,3,"th",9)(13,G8e,2,1,"td",10),Z(),X(14,11),F(15,j8e,3,3,"th",9)(16,$8e,2,1,"td",10),Z(),X(17,12),F(18,U8e,3,3,"th",9)(19,W8e,2,2,"td",10),Z(),X(20,13),F(21,Q8e,3,3,"th",14)(22,Y8e,5,6,"td",10),Z(),X(23,15),F(24,J8e,3,3,"th",14)(25,K8e,5,4,"td",10),Z(),X(26,16),F(27,X8e,3,3,"th",14)(28,Z8e,5,4,"td",10),Z(),F(29,eBe,1,0,"tr",17)(30,tBe,1,0,"tr",18),r(),b(31,"mat-paginator",19),r()()),n&2&&(a(),g("mifosxHasPermission","VIEW_ALL_PROVISIONING_ENTRIES"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,L8e)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var iBe=()=>["../"];function nBe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oBe(e,o){if(e&1&&(l(0,"button",12),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.provisioningEntryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Lv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.accountingService=T(Ui),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createProvisioningEntryForm()}createProvisioningEntryForm(){this.provisioningEntryForm=this.formBuilder.group({date:["",ce.required],createjournalentries:[!1]})}submit(){let t=this.provisioningEntryForm.value;t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat,t.date instanceof Date&&(t.date=this.dateUtils.formatDate(t.date,this.settingsService.dateFormat)),this.accountingService.createProvisioningEntry(t).subscribe(n=>{this.router.navigate(["../view",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-provisioning-entry"]],decls:23,vars:18,consts:[["datePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","date",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"flex-fill"],["labelPosition","before","formControlName","createjournalentries"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),E(13,nBe,7,9,"mat-error"),r(),l(14,"div",7)(15,"mat-checkbox",8),c(16),p(17,"translate"),r()()()(),l(18,"mat-card-actions",9)(19,"button",10),c(20),p(21,"translate"),r(),F(22,oBe,3,4,"button",11),r()()()()}if(n&2){let s=ve(12);a(2),g("formGroup",i.provisioningEntryForm),a(5),h(m(8,11,"labels.inputs.Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.provisioningEntryForm.controls.date.hasError("required")?13:-1),a(3),v(" ",m(17,13,"labels.inputs.Create Journal Entries")," "),a(3),g("routerLink",oe(17,iBe)),a(),v(" ",m(21,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PROVISIONING_ENTRIES")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var aBe=()=>[10,25,50,100];function rBe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w(2);return q(i.createProvisioningJournalEntries())}),b(1,"fa-icon",31),c(2),p(3,"translate"),r()}if(e&2){let t=w(2);g("disabled",t.provisioningEntry.journalEntry),a(2),v(" ",m(3,2,"labels.buttons.Create Journal Entries")," ")}}function lBe(e,o){if(e&1&&(l(0,"div",3)(1,"div",23),F(2,rBe,4,4,"button",24),r(),l(3,"mat-card")(4,"mat-card-content")(5,"div",25)(6,"div",26),c(7),p(8,"translate"),r(),l(9,"div",27),c(10),r(),l(11,"div",26),c(12),p(13,"translate"),r(),l(14,"div",27),c(15),r(),l(16,"div",28),c(17),p(18,"translate"),r(),l(19,"div",29),c(20),r()()()()()),e&2){let t=w();a(2),g("mifosxHasPermission","CREATE_JOURNAL_ENTRY"),a(5),v(" ",m(8,7,"labels.inputs.Created By")," "),a(3),v(" ",t.provisioningEntry.createdUser," "),a(2),v(" ",m(13,9,"labels.inputs.Created On")," "),a(3),v(" ",t.provisioningEntry.createdDate," "),a(2),v(" ",m(18,11,"labels.inputs.Amount to be Reserved")," "),a(3),v(" ",t.provisioningEntry.reservedAmount," ")}}function sBe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function cBe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function pBe(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.categoryName),a(),v(" ",t.categoryName," ")}}function mBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function dBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function uBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function fBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function hBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency Code")))}function gBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.currencyCode)}}function _Be(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category Name")))}function CBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function vBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Provisioning Amount")))}function xBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amountreserved)}}function bBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Liability Account (CR)")," "))}function yBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.liabilityAccountName)}}function SBe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account (DR)")))}function wBe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),h(t.expenseAccountName)}}function PBe(e,o){e&1&&b(0,"tr",34)}function TBe(e,o){e&1&&b(0,"tr",35)}var Vv=(()=>{class e{constructor(){this.accountingService=T(Ui),this.route=T(Ie),this.router=T(qe),this.officeName=new it,this.loanProduct=new it,this.provisioningCategory=new it,this.displayedColumns=["officeName","productName","currencyCode","categoryName","amountreserved","liabilityAccountName","expenseAccountName"],this.filterValue={officeName:"",productName:"",categoryName:""},this.route.data.subscribe(t=>{this.provisioningEntryId=t.provisioningEntry.id,this.provisioningEntry=t.provisioningEntry,this.provisioningEntryEntries=t.provisioningEntryEntries,this.officeData=t.offices,this.loanProductData=t.loanProducts,this.provisioningCategoryData=t.provisiningCategories})}ngOnInit(){this.setProvisioningEntryEntries(),this.setFilteredOffices(),this.setFilteredLoanProducts(),this.setFilteredProvisioningCategories()}ngAfterViewInit(){this.officeName.valueChanges.pipe(Mn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"officeName")})).subscribe(),this.loanProduct.valueChanges.pipe(Mn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"productName")})).subscribe(),this.provisioningCategory.valueChanges.pipe(Mn(t=>t.toLowerCase()),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"categoryName")})).subscribe()}filterPredicate(t,n){return t.officeName.toLowerCase().indexOf(n.officeName)!==-1&&t.productName.toLowerCase().indexOf(n.productName)!==-1&&t.categoryName.toLowerCase().indexOf(n.categoryName)!==-1}setProvisioningEntryEntries(){this.dataSource=new Wt(this.provisioningEntryEntries.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=this.filterPredicate}applyFilter(t,n){this.filterValue[n]=t,this.dataSource.filter=this.filterValue}setFilteredOffices(){this.filteredOfficeData=this.officeName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterOfficeAutocompleteData(t):this.officeData))}setFilteredLoanProducts(){this.filteredLoanProductData=this.loanProduct.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterLoanProductAutocompleteData(t):this.loanProductData))}setFilteredProvisioningCategories(){this.filteredProvisioningCategoryData=this.provisioningCategory.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.categoryName),Mn(t=>t?this.filterProvisioningCategoryAutocompleteData(t):this.provisioningCategoryData))}filterOfficeAutocompleteData(t){return this.officeData.filter(n=>n.name.toLowerCase().includes(t.toLowerCase()))}filterLoanProductAutocompleteData(t){return this.loanProductData.filter(n=>n.name.toLowerCase().includes(t.toLocaleLowerCase()))}filterProvisioningCategoryAutocompleteData(t){return this.provisioningCategoryData.filter(n=>n.categoryName.toLowerCase().includes(t.toLocaleLowerCase()))}createProvisioningJournalEntries(){this.accountingService.createProvisioningJournalEntries(this.provisioningEntryId).subscribe(t=>{this.router.navigate(["../../journal-entries/view",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-provisioning-entry"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:58,vars:27,consts:[["officeNameAutocomplete","matAutocomplete"],["loanProductAutocomplete","matAutocomplete"],["provisioningCategoryAutocomplete","matAutocomplete"],[1,"container"],[1,"container","m-t-20","layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-31"],["matInput","",3,"formControl","matAutocomplete"],["autoActiveFirstOption",""],[3,"value"],[1,"mat-elevation-z8","container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","currencyCode"],["matColumnDef","categoryName"],["matColumnDef","amountreserved"],["matColumnDef","liabilityAccountName"],["matColumnDef","expenseAccountName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[1,"layout-row-wrap","responsive-column","content"],[1,"flex-16","header"],[1,"flex-16"],[1,"flex-18","header"],[1,"flex-18"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1&&(E(0,lBe,21,13,"div",3),l(1,"div",4)(2,"mat-form-field",5)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",6),r(),l(7,"mat-form-field",5)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",6),r(),l(12,"mat-form-field",5)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),r()(),l(17,"mat-autocomplete",7,0),Se(19,sBe,2,2,"mat-option",8,Pe),p(21,"async"),r(),l(22,"mat-autocomplete",7,1),Se(24,cBe,2,2,"mat-option",8,Pe),p(26,"async"),r(),l(27,"mat-autocomplete",7,2),Se(29,pBe,2,2,"mat-option",8,Pe),p(31,"async"),r(),l(32,"div",9)(33,"table",10),X(34,11),F(35,mBe,3,3,"th",12)(36,dBe,2,1,"td",13),Z(),X(37,14),F(38,uBe,3,3,"th",12)(39,fBe,2,1,"td",13),Z(),X(40,15),F(41,hBe,3,3,"th",12)(42,gBe,2,1,"td",13),Z(),X(43,16),F(44,_Be,3,3,"th",12)(45,CBe,2,1,"td",13),Z(),X(46,17),F(47,vBe,3,3,"th",12)(48,xBe,2,1,"td",13),Z(),X(49,18),F(50,bBe,3,3,"th",12)(51,yBe,2,1,"td",13),Z(),X(52,19),F(53,SBe,3,3,"th",12)(54,wBe,2,1,"td",13),Z(),F(55,PBe,1,0,"tr",20)(56,TBe,1,0,"tr",21),r(),b(57,"mat-paginator",22),r()),n&2){let s=ve(18),d=ve(23),u=ve(28);I(i.provisioningEntry?0:-1),a(4),h(m(5,14,"labels.inputs.Office Name")),a(2),g("formControl",i.officeName)("matAutocomplete",s),a(3),h(m(10,16,"labels.inputs.Loan Product")),a(2),g("formControl",i.loanProduct)("matAutocomplete",d),a(3),h(m(15,18,"labels.inputs.Provisioning Category")),a(2),g("formControl",i.provisioningCategory)("matAutocomplete",u),a(3),we(m(21,20,i.filteredOfficeData)),a(5),we(m(26,22,i.filteredLoanProductData)),a(5),we(m(31,24,i.filteredProvisioningCategoryData)),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(26,aBe))}},dependencies:[ue,fe,st,$e,_n,Ue,Je,Fe,Be,ze,ft,xe,Ke,ke,er,Za,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he],styles:["table[_ngcontent-%COMP%]{width:100%}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var MBe=()=>[10,25,50,100];function DBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entry ID")))}function EBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function IBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function OBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function ABe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction Date")))}function FBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionDate)}}function kBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transaction ID")))}function BBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.transactionId)}}function RBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function NBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountType.value)}}function LBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function VBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdByUserName)}}function qBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Code")))}function zBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountCode)}}function HBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Name")))}function GBe(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.glAccountName)}}function jBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Debit")))}function $Be(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),v(" ",(t.currency.displaySymbol||t.currency.code)+" "+t.amount," ")}}function UBe(e,o){if(e&1&&(l(0,"td",22),E(1,$Be,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="DEBIT"?1:-1)}}function WBe(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit")))}function QBe(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),v(" ",(t.currency.displaySymbol||t.currency.code)+" "+t.amount," ")}}function YBe(e,o){if(e&1&&(l(0,"td",22),E(1,QBe,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.entryType.value==="CREDIT"?1:-1)}}function JBe(e,o){e&1&&b(0,"tr",23)}function KBe(e,o){e&1&&b(0,"tr",24)}var qv=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["id","officeName","transactionDate","transactionId","glAccountType","createdByUserName","glAccountCode","glAccountName","debit","credit"],this.route.data.subscribe(t=>{this.provisioningJournalEntryData=t.provisioningJournalEntry.pageItems})}ngOnInit(){this.setProvisioningJournalEntry()}setProvisioningJournalEntry(){this.dataSource=new Wt(this.provisioningJournalEntryData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"glAccountType":return t.glAccountType.value;case"debit":return t.amount;case"credit":return t.amount;default:return t[n]}},this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-provisioning-journal-entries"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:42,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","officeName"],["matColumnDef","transactionDate"],["matColumnDef","transactionId"],["matColumnDef","glAccountType"],["matColumnDef","createdByUserName"],["matColumnDef","glAccountCode"],["matColumnDef","glAccountName"],["matColumnDef","debit"],["matColumnDef","credit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"input",3),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(7,"div",4)(8,"table",5),X(9,6),F(10,DBe,3,3,"th",7)(11,EBe,2,1,"td",8),Z(),X(12,9),F(13,IBe,3,3,"th",7)(14,OBe,2,1,"td",8),Z(),X(15,10),F(16,ABe,3,3,"th",7)(17,FBe,2,1,"td",8),Z(),X(18,11),F(19,kBe,3,3,"th",7)(20,BBe,2,1,"td",8),Z(),X(21,12),F(22,RBe,3,3,"th",7)(23,NBe,2,1,"td",8),Z(),X(24,13),F(25,LBe,3,3,"th",7)(26,VBe,2,1,"td",8),Z(),X(27,14),F(28,qBe,3,3,"th",7)(29,zBe,2,1,"td",8),Z(),X(30,15),F(31,HBe,3,3,"th",7)(32,GBe,2,1,"td",8),Z(),X(33,16),F(34,jBe,3,3,"th",7)(35,UBe,2,1,"td",8),Z(),X(36,17),F(37,WBe,3,3,"th",7)(38,YBe,2,1,"td",8),Z(),F(39,JBe,1,0,"tr",18)(40,KBe,1,0,"tr",19),r(),b(41,"mat-paginator",20),r()()),n&2&&(a(4),h(m(5,5,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(31),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,MBe)))},dependencies:[ue,fe,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var g5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingRules(!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var n1=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getCurrencies()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var zv=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getPaymentTypes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var eu=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getGlAccounts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var _5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getFinancialActivityAccounts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var C5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getFinancialActivityAccountsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var v5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getFinancialActivityAccount(n,!1)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var x5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getFinancialActivityAccount(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var b5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getChartOfAccounts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var y5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getChartOfAccountsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var S5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getGlAccount(n,!0).pipe(Mn(i=>{let s=[];switch(i.type.value){case"ASSET":s=i.assetHeaderAccountOptions;break;case"EQUITY":s=i.equityHeaderAccountOptions;break;case"EXPENSE":s=i.expenseHeaderAccountOptions;break;case"INCOME":s=i.incomeHeaderAccountOptions;break;case"LIABILITY":s=i.liabilityHeaderAccountOptions;break}return i.parentId&&(i.parent=s.find(d=>d.id===i.parentId)),i}))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var w5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingClosures()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var P5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getAccountingClosure(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var T5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingRules()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Hv=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getAccountingRulesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var M5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getAccountingRule(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var D5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getProvisioningEntries()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var E5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getProvisioningEntry(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var I5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getProvisioningEntryEntries(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var O5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getLoanProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var A5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(){return this.accountingService.getProvisioningCategories()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var F5=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getProvisioningJournalEntries(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Gv=(()=>{class e{constructor(){this.accountingService=T(Ui)}resolve(t){let n=t.paramMap.get("id");return this.accountingService.getJournalEntry(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var xN=(()=>{class e{constructor(){this.externalAssetOwnerService=T(Xg)}resolve(t){let n=t.paramMap.get("transferId")||t.parent.paramMap.get("transferId");return this.externalAssetOwnerService.retrieveExternalAssetOwnerTransferJournalEntries(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var k5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getConfigurationByName(ii.CONFIG_ASSET_EXTERNALIZATION)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var XBe=[_o.withShell([{path:"accounting",data:{title:"Accounting",breadcrumb:"Accounting"},children:[{path:"",component:dv},{path:"journal-entries",data:{title:"Search Journal Entry",breadcrumb:"Journal Entries"},children:[{path:"",component:gv,resolve:{offices:zr,glAccounts:eu}},{path:"frequent-postings",component:uv,data:{title:"Frequent Postings",breadcrumb:"Frequent Postings"},resolve:{offices:zr,accountingRules:g5,currencies:n1,paymentTypes:zv}},{path:"create",component:fv,data:{title:"Create Journal Entry",breadcrumb:"Create"},resolve:{offices:zr,currencies:n1,paymentTypes:zv,glAccounts:eu,globalConfig:k5}},{path:"transactions",data:{title:"Transactions",breadcrumb:"Transactions",addBreadcrumbLink:!1},children:[{path:"view/:id",component:Yg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:Gv}}]}]},{path:"financial-activity-mappings",data:{title:"Financial Activity Mappings",breadcrumb:"Financial Activity Mappings"},children:[{path:"",component:_v,resolve:{financialActivityAccounts:_5}},{path:"create",component:Cv,data:{title:"Create Financial Activity Mapping",breadcrumb:"Create"},resolve:{financialActivityAccountsTemplate:C5}},{path:"view/:id",data:{title:"View Financial Activity Mapping",routeParamBreadcrumb:"id"},children:[{path:"",component:vv,resolve:{financialActivityAccount:v5}},{path:"edit",component:xv,data:{title:"Edit Financial Activity Mapping",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{financialActivityAccountAndTemplate:x5}}]}]},{path:"migrate-opening-balances",component:bv,data:{title:"Migrate Opening Balances",breadcrumb:"Migrate Opening Balances"},resolve:{offices:zr,currencies:n1}},{path:"chart-of-accounts",data:{title:"Chart of Accounts",breadcrumb:"Chart of Accounts"},children:[{path:"",component:Sv,resolve:{chartOfAccounts:b5}},{path:"gl-accounts",children:[{path:"create",component:wv,data:{title:"Create GL Account",breadcrumb:"Create GL Account"},resolve:{chartOfAccountsTemplate:y5}},{path:"view/:id",data:{title:"View GL Account",routeResolveBreadcrumb:["glAccountAndChartOfAccountsTemplate","name"]},resolve:{glAccountAndChartOfAccountsTemplate:S5},runGuardsAndResolvers:"always",children:[{path:"",component:Pv},{path:"edit",component:Tv,data:{title:"Edit GL Account",breadcrumb:"Edit",routeResolveBreadcrumb:!1}}]}]}]},{path:"closing-entries",data:{title:"Accounting Closures",breadcrumb:"Closing Entries"},children:[{path:"",component:Mv,resolve:{offices:zr,glAccountClosures:w5}},{path:"create",component:Dv,data:{title:"Create Accounting Closure",breadcrumb:"Create"},resolve:{offices:zr}},{path:"view/:id",data:{title:"View Accounting Closure",routeParamBreadcrumb:"id"},resolve:{glAccountClosure:P5},runGuardsAndResolvers:"always",children:[{path:"",component:Ev},{path:"edit",component:Iv,data:{title:"Edit Accounting Closure",breadcrumb:"Edit",routeParamBreadcrumb:!1}}]}]},{path:"accounting-rules",data:{title:"Accounting Rules",breadcrumb:"Accounting Rules"},children:[{path:"",component:Ov,resolve:{accountingRules:T5}},{path:"create",component:Fv,data:{title:"Create Accounting Rule",breadcrumb:"Create"},resolve:{accountingRulesTemplate:Hv}},{path:"view/:id",data:{title:"View Accounting Rule",routeResolveBreadcrumb:["accountingRule","name"]},resolve:{accountingRule:M5},runGuardsAndResolvers:"always",children:[{path:"",component:kv},{path:"edit",component:Bv,data:{title:"Edit Accounting Rules",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{accountingRulesTemplate:Hv}}]}]},{path:"periodic-accruals",component:Rv,data:{title:"Periodic Accrual Accounting",breadcrumb:"Execute Periodic Accrual Accounting"}},{path:"provisioning-entries",data:{title:"Provisioning Entries",breadcrumb:"Provisioning Entries"},children:[{path:"",component:Nv,resolve:{provisioningEntries:D5}},{path:"create",component:Lv,data:{title:"Create Provisioning Entry",breadcrumb:"Create"}},{path:"view/:id",component:Vv,data:{title:"View Provisioning Entry",routeParamBreadcrumb:"id"},resolve:{provisioningEntry:E5,provisioningEntryEntries:I5,office:zr,loanProducts:O5,provisioningCategories:A5}},{path:"journal-entries",data:{breadcrumb:"Journal Entries",addBreadcrumbLink:!1},children:[{path:"view/:id",component:qv,data:{title:"View Provisioning Journal Entry",routeParamBreadcrumb:"id"},resolve:{provisioningJournalEntries:F5}}]}]}]},{path:"journal-entry",data:{title:"Journal Entries",breadcrumb:"Journal Entries"},children:[{path:"view/:id",component:Yg,data:{title:"View Transaction",routeParamBreadcrumb:"id"},resolve:{transaction:Gv}},{path:"view-transfer/:transferId",component:Yg,data:{title:"View Transfer",routeParamBreadcrumb:"transferId"},resolve:{transferJournalEntryData:xN}}]}])],bN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[zr,g5,n1,zv,eu,Gv,_5,C5,v5,x5,b5,y5,S5,w5,P5,T5,Hv,M5,D5,E5,I5,O5,A5,F5,k5],imports:[gn.forChild(XBe),gn]})}}return e})();var yN=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,Er,bN,ha,dv,uv,fv,gv,Fk,_v,Cv,vv,xv,bv,Sv,wv,Pv,Tv,Mv,Dv,Ev,Iv,Ov,Fv,kv,Bv,Rv,Nv,Lv,Vv,qv]})}}return e})();var ZBe=()=>[10,25,50,100],eRe=()=>["create"],tRe=e=>[e];function iRe(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,eRe)),a(2),v(" ",m(3,2,"labels.buttons.Create Preference")," "))}function nRe(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Account Number Preferences")," "))}function oRe(e,o){if(e&1&&(l(0,"td",17),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.accountType.value,"catalogs")," ")}}function aRe(e,o){e&1&&b(0,"tr",18)}function rRe(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,tRe,t.id))}}var jv=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["accountType"],this.route.data.subscribe(t=>{this.accountNumberPreferencesData=t.accountNumberPreferences})}ngOnInit(){this.setAccountNumberPreferences()}setAccountNumberPreferences(){this.dataSource=new Wt(this.accountNumberPreferencesData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>t.accountType.value,this.dataSource.sort=this.sort,this.dataSource.filterPredicate=(t,n)=>t.accountType.value.toLowerCase().indexOf(n)!==-1}applyFilter(t){this.dataSource.filter=t.toLowerCase().trim()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-account-number-preferences"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","accountType"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,iRe,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,nRe,3,3,"th",9)(13,oRe,3,4,"td",10),Z(),F(14,aRe,1,0,"tr",11)(15,rRe,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","ADD_PREFERENCES"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,ZBe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var lRe=()=>["../"];function sRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function cRe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function mRe(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountNumberPreferenceForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var $v=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.accountNumberPreferencesTemplateData=t.accountNumberPreferencesTemplate})}ngOnInit(){this.createAccountNumberPreferenceForm(),this.getPrefixTypeValue()}getPrefixTypeValue(){this.accountNumberPreferenceForm.get("accountType").valueChanges.subscribe(t=>{this.prefixTypeData=this.accountNumberPreferencesTemplateData.prefixTypeOptions[`accountType.${this.accountNumberPreferencesTemplateData.accountTypeOptions.find(n=>n.id===t).value.toLowerCase()}`]})}createAccountNumberPreferenceForm(){this.accountNumberPreferenceForm=this.formBuilder.group({accountType:["",ce.required],prefixType:[""]})}submit(){let t=this.accountNumberPreferenceForm.value;t.prefixType===""&&(t.prefixType=void 0),this.systemService.createAccountNumberPreference(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-account-number-preference"]],decls:25,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","accountType"],[3,"value"],["formControlName","prefixType"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,sRe,3,5,"mat-option",4,Pe),r(),E(12,cRe,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,pRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,mRe,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.accountNumberPreferenceForm),a(5),h(m(8,7,"labels.inputs.Account Type")),a(3),we(i.accountNumberPreferencesTemplateData.accountTypeOptions),a(2),I(i.accountNumberPreferenceForm.controls.accountType.hasError("required")?12:-1),a(3),h(m(16,9,"labels.inputs.Prefix Field")),a(3),we(i.prefixTypeData),a(3),g("routerLink",oe(13,lRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dRe=()=>["../"];function uRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function fRe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Account Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hRe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function gRe(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.accountNumberPreferenceForm.valid||t.accountNumberPreferenceForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Uv=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.systemService=T(ii),this.router=T(qe),this.route.data.subscribe(t=>{this.accountNumberPreferenceData=t.accountNumberPreference,this.accountNumberPreferencesTemplateData=t.accountNumberPreferencesTemplate})}ngOnInit(){this.prefixTypeData=this.accountNumberPreferencesTemplateData.prefixTypeOptions[this.accountNumberPreferenceData.accountType.code],this.createAccountNumberPreferenceForm()}createAccountNumberPreferenceForm(){this.accountNumberPreferenceForm=this.formBuilder.group({accountType:[{value:this.accountNumberPreferenceData.accountType.id,disabled:!0},ce.required],prefixType:[this.accountNumberPreferenceData.prefixType?this.accountNumberPreferenceData.prefixType.id:0]})}submit(){let t=this.accountNumberPreferenceForm.value;t.prefixType===""&&(t.prefixType=void 0),this.systemService.updateAccountNumberPreference(this.accountNumberPreferenceData.id,t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-account-number-preference"]],decls:25,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","accountType"],[3,"value"],["formControlName","prefixType"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,uRe,3,5,"mat-option",4,Pe),r(),E(12,fRe,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,hRe,2,2,"mat-option",4,Pe),r()()()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,gRe,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.accountNumberPreferenceForm),a(5),h(m(8,7,"labels.inputs.Account Type")),a(3),we(i.accountNumberPreferencesTemplateData.accountTypeOptions),a(2),I(i.accountNumberPreferenceForm.controls.accountType.hasError("required")?12:-1),a(3),h(m(16,9,"labels.inputs.Prefix Field")),a(3),we(i.prefixTypeData),a(3),g("routerLink",oe(13,dRe)),a(),v(" ",m(23,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ACCOUNTNUMBERFORMAT"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var _Re=()=>["edit"];function CRe(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,_Re)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function vRe(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function xRe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Prefix Type")," "))}function bRe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.accountNumberPreferenceData.prefixType.value," ")}}var Wv=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.accountNumberPreferenceData=t.accountNumberPreference})}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.heading.Account Number Preferences")+" "+this.accountNumberPreferenceData.id}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteAccountNumberPreference(this.accountNumberPreferenceData.id).subscribe(()=>{this.router.navigate(["/system/account-number-preferences"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-account-number-preference"]],decls:15,vars:11,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,CRe,4,5,"button",1)(2,vRe,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),p(12,"translateKey"),r(),E(13,xRe,3,3,"div",5),E(14,bRe,2,1,"div",6),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_ACCOUNTNUMBERFORMAT"),a(),g("mifosxHasPermission","DELETE_ACCOUNTNUMBERFORMAT"),a(6),v(" ",m(9,6,"labels.inputs.Account Type")," "),a(3),v(" ",Ft(12,8,i.accountNumberPreferenceData.accountType.value,"catalogs")," "),a(2),I(i.accountNumberPreferenceData.prefixType?13:-1),a(),I(i.accountNumberPreferenceData.prefixType?14:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Qv=class{constructor(o){this.systemService=o,this.auditTrailsSubject=new Ra([]),this.recordsSubject=new Ra(0),this.records$=this.recordsSubject.asObservable()}getAuditTrails(o,t="",n="",i=0,s=10){this.auditTrailsSubject.next([]),this.systemService.getAuditTrails(o,t,n,i*s,s).subscribe(d=>{this.recordsSubject.next(d.totalFilteredRecords),this.auditTrailsSubject.next(d.pageItems)})}connect(o){return this.auditTrailsSubject.asObservable()}disconnect(o){this.auditTrailsSubject.complete(),this.recordsSubject.complete()}};var SN=(e,o)=>({id:e,name:o}),yRe=e=>[e],SRe=()=>[10,25,50,100];function wRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.processingResult," ")}}function PRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,SN,t.id,t.username)),a(),v(" ",t.username," ")}}function TRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function MRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function DRe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",Ja(2,SN,t.id,t.username)),a(),v(" ",t.username," ")}}function ERe(e,o){e&1&&(l(0,"div"),b(1,"mat-progress-bar",27),r())}function IRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Trail ID")))}function ORe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function ARe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Resource ID")))}function FRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.resourceId)}}function kRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function BRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.processingResult)}}function RRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made By")))}function NRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maker)}}function LRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function VRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function qRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function zRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function HRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function GRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function jRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made Date")))}function $Re(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.madeOnDate))}}function URe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checker")))}function WRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.checker)}}function QRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Checked Date")))}function YRe(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.checkedOnDate))}}function JRe(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Ip")))}function KRe(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.ip)}}function XRe(e,o){e&1&&b(0,"tr",45)}function ZRe(e,o){if(e&1&&b(0,"tr",46),e&2){let t=o.$implicit;g("routerLink",Nt(1,yRe,t.id))}}function e9e(e,o){if(e&1&&(l(0,"table",25),X(1,28),F(2,IRe,3,3,"th",29)(3,ORe,2,1,"td",30),Z(),X(4,31),F(5,ARe,3,3,"th",29)(6,FRe,2,1,"td",30),Z(),X(7,32),F(8,kRe,3,3,"th",29)(9,BRe,2,1,"td",30),Z(),X(10,33),F(11,RRe,3,3,"th",29)(12,NRe,2,1,"td",30),Z(),X(13,34),F(14,LRe,3,3,"th",29)(15,VRe,2,1,"td",30),Z(),X(16,35),F(17,qRe,3,3,"th",29)(18,zRe,2,1,"td",30),Z(),X(19,36),F(20,HRe,3,3,"th",29)(21,GRe,2,1,"td",30),Z(),X(22,37),F(23,jRe,3,3,"th",29)(24,$Re,3,3,"td",30),Z(),X(25,38),F(26,URe,3,3,"th",29)(27,WRe,2,1,"td",30),Z(),X(28,39),F(29,QRe,3,3,"th",29)(30,YRe,3,3,"td",30),Z(),X(31,40),F(32,JRe,3,3,"th",29)(33,KRe,2,1,"td",30),Z(),F(34,XRe,1,0,"tr",41)(35,ZRe,1,3,"tr",42),r()),e&2){let t=w();g("dataSource",t.dataSource),a(34),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function t9e(e,o){if(e&1&&(b(0,"mat-paginator",26),p(1,"async")),e&2){let t=w();g("length",m(1,3,t.dataSource==null?null:t.dataSource.records$))("pageSize",10)("pageSizeOptions",oe(5,SRe))}}var Yv=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.displayedColumns=["id","resourceId","processingResult","maker","actionName","entityName","officeName","madeOnDate","checker","checkedOnDate","clientIp"],this.filterAuditTrailsBy=[{type:"actionName",value:""},{type:"entityName",value:""},{type:"resourceId",value:""},{type:"makerId",value:""},{type:"makerDateTimeFrom",value:""},{type:"makerDateTimeTo",value:""},{type:"checkerDateTimeFrom",value:""},{type:"checkerDateTimeTo",value:""},{type:"checkerId",value:""},{type:"processingResult",value:""},{type:"dateFormat",value:this.settingsService.dateFormat},{type:"locale",value:this.settingsService.language.code}],this.user=new it(""),this.fromDate=new it,this.fromTime=new it,this.checkedFromDate=new it,this.checkedFromTime=new it,this.processingResult=new it,this.actionName=new it,this.resourceId=new it(""),this.toDate=new it,this.toTime=new it,this.checkedToDate=new it,this.checkedToTime=new it,this.entityName=new it,this.checker=new it,this.isLoading=!1,this.route.data.subscribe(t=>{this.auditTrailSearchTemplateData=t.auditTrailSearchTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setFilteredUsers(),this.setFilteredActions(),this.setFilteredEntities(),this.setFilteredCheckers(),this.dataSource=new Qv(this.systemService),this.getAuditTrails()}ngAfterViewInit(){this.user.valueChanges.pipe(Mn(t=>t.id?t.id:""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"makerId")})).subscribe(),this.fromDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.fromTime.value),"makerDateTimeFrom")})).subscribe(),this.fromTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.fromDate.value,t),"makerDateTimeFrom")})).subscribe(),this.toDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.toTime.value),"makerDateTimeTo")})).subscribe(),this.toTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.toDate.value,t),"makerDateTimeTo")})).subscribe(),this.checkedFromDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.checkedFromTime.value),"checkerDateTimeFrom")})).subscribe(),this.checkedFromTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.checkedFromDate.value,t),"checkerDateTimeFrom")})).subscribe(),this.checkedToDate.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(t,this.checkedToTime.value),"checkerDateTimeTo")})).subscribe(),this.checkedToTime.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(this.getDateTime(this.checkedToDate.value,t),"checkerDateTimeTo")})).subscribe(),this.resourceId.valueChanges.pipe(Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"resourceId")})).subscribe(),this.actionName.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"actionName")})).subscribe(),this.entityName.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t,"entityName")})).subscribe(),this.checker.valueChanges.pipe(Mn(t=>t||""),Oo(500),Ao(),Eo(t=>{this.applyFilter(t.id,"checkerId")})).subscribe(),this.sort&&this.paginator&&ul(this.sort.sortChange,this.paginator.page).pipe(Eo(()=>this.loadAuditTrailsPage())).subscribe()}getAuditTrails(){this.isLoading=!0;let t=this.sort?this.sort.active:"",n=this.sort?this.sort.direction:"",i=this.paginator?this.paginator.pageIndex:0,s=this.paginator?this.paginator.pageSize:20;this.dataSource.getAuditTrails(this.filterAuditTrailsBy,t,n,i,s),this.isLoading=!1}loadAuditTrailsPage(){this.sort&&!this.sort.direction&&delete this.sort.active,this.getAuditTrails()}applyFilter(t,n){this.paginator&&(this.paginator.pageIndex=0);let i=this.filterAuditTrailsBy.findIndex(s=>s.type===n);this.filterAuditTrailsBy[i].value=t,this.loadAuditTrailsPage()}displayUserName(t){return t?t.name:void 0}displayActionName(t){return t||void 0}displayEntityName(t){return t||void 0}setFilteredUsers(){this.filteredUserData=this.user.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredCheckers(){this.filteredCheckerData=this.checker.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:t.name),Mn(t=>t?this.filterUserAutocompleteData(t):this.auditTrailSearchTemplateData.appUsers))}setFilteredActions(){this.filteredActionData=this.actionName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:""),Mn(t=>t?this.filterActionAutocompleteData(t):this.auditTrailSearchTemplateData.actionNames))}setFilteredEntities(){this.filteredEntityData=this.entityName.valueChanges.pipe(fl(""),Mn(t=>typeof t=="string"?t:""),Mn(t=>t?this.filterEntityAutocompleteData(t):this.auditTrailSearchTemplateData.entityNames))}filterUserAutocompleteData(t){return this.auditTrailSearchTemplateData.appUsers.filter(n=>n.username.toLowerCase().includes(t.toLowerCase()))}filterActionAutocompleteData(t){return this.auditTrailSearchTemplateData.actionNames.filter(n=>n.toLowerCase().includes(t.toLowerCase()))}filterEntityAutocompleteData(t){return this.auditTrailSearchTemplateData.entityNames.filter(n=>n.toLowerCase().includes(t.toLowerCase()))}downloadCSV(){let t=this.settingsService.dateFormat,n=(d,u)=>u===void 0?"":u,i=["ID","Resource ID","Status","Office","Made On","Maker","Checked On","Checker","Entity","Action","Client"],s=["id","resourceId","processingResult","officeName","madeOnDate","maker","checkedOnDate","checker","entityName","actionName","clientName"];this.systemService.getAuditTrails(this.filterAuditTrailsBy,this.sort?.active??"",this.sort?.direction??"",0,-1).subscribe(d=>{if(d!==void 0){let u=d.pageItems.map(_=>s.map(C=>(C==="madeOnDate"||C==="checkedOnDate")&&_[C]!=null&&_[C]!==""?JSON.stringify(this.dateUtils.formatDate(_[C],"yyyy-MM-ddTHH:mm:ssZ")):JSON.stringify(_[C],n)));u.unshift(`data:text/csv;charset=utf-8,${i.join()}`),u=u.join(`\r +`);let f=document.createElement("a");f.setAttribute("href",encodeURI(u)),f.setAttribute("download","Audit Trails.csv"),document.body.appendChild(f),f.click(),document.body.removeChild(f)}})}getDate(t){let n=this.settingsService.dateFormat;return this.dateUtils.formatDate(t,n)}getDateTime(t,n){if(!t)return"";let i=new Date(t);if(n){let[s,d,u]=n.split(":").map(Number);i.setHours(s||0),i.setMinutes(d||0),i.setSeconds(u||0)}return this.dateUtils.formatDate(i,"yyyy-MM-ddTHH:mm:ssZ")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-audit-trails"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:118,vars:94,consts:[["fromDatePicker",""],["toDatePicker",""],["checkedFromDatePicker",""],["checkedToDatePicker",""],["userNameAutocomplete","matAutocomplete"],["actionNameAutocomplete","matAutocomplete"],["entityNameAutocomplete","matAutocomplete"],["checkerAutocomplete","matAutocomplete"],[1,"container","m-b-20","layout-row","align-end"],["mat-raised-button","","color","primary",3,"click"],["icon","file",1,"m-r-10"],[1,"container","layout-row-wrap","gap-8px","responsive-column"],[1,"flex-48"],["matInput","",3,"formControl"],[3,"selectionChange","formControl"],[3,"value"],["matInput","",3,"formControl","matAutocomplete"],[1,"flex-48","layout-row-wrap","gap-8px"],[1,"flex-60",3,"click"],["matInput","","placeholder","yyyy-MM-dd",3,"min","max","matDatepicker","formControl"],["matSuffix","",3,"for"],[1,"flex-38"],["matInput","","type","time","step","1","placeholder","HH:MM:SS",1,"time-input",3,"formControl"],["autoActiveFirstOption","",3,"displayWith"],[1,"container","mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["showFirstLastButtons","",3,"length","pageSize","pageSizeOptions"],["mode","indeterminate"],["matColumnDef","id"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","resourceId"],["matColumnDef","processingResult"],["matColumnDef","maker"],["matColumnDef","actionName"],["matColumnDef","entityName"],["matColumnDef","officeName"],["matColumnDef","madeOnDate"],["matColumnDef","checker"],["matColumnDef","checkedOnDate"],["matColumnDef","clientIp"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",8)(1,"button",9),R("click",function(){return V(s),q(i.downloadCSV())}),b(2,"fa-icon",10),c(3),p(4,"translate"),r()(),l(5,"div",11)(6,"mat-form-field",12)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",13),r(),l(11,"mat-form-field",12)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",14),R("selectionChange",function(u){return V(s),q(i.applyFilter(u.value,"processingResult"))}),Se(16,wRe,2,2,"mat-option",15,Pe),r()(),l(18,"mat-form-field",12)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",16),r(),l(23,"mat-form-field",12)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",16),r(),l(28,"mat-form-field",12)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",16),r(),l(33,"mat-form-field",12)(34,"mat-label"),c(35),p(36,"translate"),r(),b(37,"input",16),r(),l(38,"div",17)(39,"mat-form-field",18),R("click",function(){V(s);let u=ve(46);return q(u.open())}),l(40,"mat-label"),c(41),p(42,"translate"),r(),b(43,"input",19)(44,"mat-datepicker-toggle",20)(45,"mat-datepicker",null,0),r(),l(47,"mat-form-field",21)(48,"mat-label"),c(49),p(50,"translate"),r(),b(51,"input",22),r()(),l(52,"div",17)(53,"mat-form-field",18),R("click",function(){V(s);let u=ve(60);return q(u.open())}),l(54,"mat-label"),c(55),p(56,"translate"),r(),b(57,"input",19)(58,"mat-datepicker-toggle",20)(59,"mat-datepicker",null,1),r(),l(61,"mat-form-field",21)(62,"mat-label"),c(63),p(64,"translate"),r(),b(65,"input",22),r()(),l(66,"div",17)(67,"mat-form-field",18),R("click",function(){V(s);let u=ve(74);return q(u.open())}),l(68,"mat-label"),c(69),p(70,"translate"),r(),b(71,"input",19)(72,"mat-datepicker-toggle",20)(73,"mat-datepicker",null,2),r(),l(75,"mat-form-field",21)(76,"mat-label"),c(77),p(78,"translate"),r(),b(79,"input",22),r()(),l(80,"div",17)(81,"mat-form-field",18),R("click",function(){V(s);let u=ve(88);return q(u.open())}),l(82,"mat-label"),c(83),p(84,"translate"),r(),b(85,"input",19)(86,"mat-datepicker-toggle",20)(87,"mat-datepicker",null,3),r(),l(89,"mat-form-field",21)(90,"mat-label"),c(91),p(92,"translate"),r(),b(93,"input",22),r()()(),l(94,"mat-autocomplete",23,4),Se(96,PRe,2,5,"mat-option",15,Pe),p(98,"async"),r(),l(99,"mat-autocomplete",23,5),Se(101,TRe,2,2,"mat-option",15,Pe),p(103,"async"),r(),l(104,"mat-autocomplete",23,6),Se(106,MRe,2,2,"mat-option",15,Pe),p(108,"async"),r(),l(109,"mat-autocomplete",23,7),Se(111,DRe,2,5,"mat-option",15,Pe),p(113,"async"),r(),l(114,"div",24),E(115,ERe,2,0,"div"),E(116,e9e,36,3,"table",25),E(117,t9e,2,6,"mat-paginator",26),r()}if(n&2){let s=ve(46),d=ve(60),u=ve(74),f=ve(88),_=ve(95),C=ve(100),x=ve(105),y=ve(110);a(3),v(" ",m(4,56,"labels.buttons.Download CSV")," "),a(5),h(m(9,58,"labels.inputs.Resource ID")),a(2),g("formControl",i.resourceId),a(3),h(m(14,60,"labels.inputs.Status")),a(2),g("formControl",i.processingResult),a(),we(i.auditTrailSearchTemplateData.processingResults),a(4),h(m(21,62,"labels.inputs.User")),a(2),g("formControl",i.user)("matAutocomplete",_),a(3),h(m(26,64,"labels.inputs.Action")),a(2),g("formControl",i.actionName)("matAutocomplete",C),a(3),h(m(31,66,"labels.inputs.Entity")),a(2),g("formControl",i.entityName)("matAutocomplete",x),a(3),h(m(36,68,"labels.inputs.Checker")),a(2),g("formControl",i.checker)("matAutocomplete",y),a(4),h(m(42,70,"labels.inputs.Maker From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s)("formControl",i.fromDate),a(),g("for",s),a(5),h(m(50,72,"labels.inputs.Time")),a(2),g("formControl",i.fromTime),a(4),h(m(56,74,"labels.inputs.Maker To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d)("formControl",i.toDate),a(),g("for",d),a(5),h(m(64,76,"labels.inputs.Time")),a(2),g("formControl",i.toTime),a(4),h(m(70,78,"labels.inputs.Checker From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",u)("formControl",i.checkedFromDate),a(),g("for",u),a(5),h(m(78,80,"labels.inputs.Time")),a(2),g("formControl",i.checkedFromTime),a(4),h(m(84,82,"labels.inputs.Checked To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",f)("formControl",i.checkedToDate),a(),g("for",f),a(5),h(m(92,84,"labels.inputs.Time")),a(2),g("formControl",i.checkedToTime),a(),g("displayWith",i.displayUserName),a(2),we(m(98,86,i.filteredUserData)),a(3),g("displayWith",i.displayActionName),a(2),we(m(103,88,i.filteredActionData)),a(3),g("displayWith",i.displayEntityName),a(2),we(m(108,90,i.filteredEntityData)),a(3),g("displayWith",i.displayUserName),a(2),we(m(113,92,i.filteredCheckerData)),a(4),I(i.isLoading?115:-1),a(),I(i.isLoading?-1:116),a(),I(i.isLoading?-1:117)}},dependencies:[ue,fe,st,$e,_n,Oe,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,ke,er,Za,ns,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Ka,he,Yr],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.flex-38[_ngcontent-%COMP%] .time-input[_ngcontent-%COMP%]{font-size:14px;width:100%}.gap-8px[_ngcontent-%COMP%]{gap:8px}"]})}}return e})();var i9e=()=>["../"];function n9e(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Office")," "))}function o9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.officeName," ")}}function a9e(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Savings Account No")," "))}function r9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.savingsAccountNo," ")}}function l9e(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Group Level")," "))}function s9e(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.groupLevelName," ")}}function c9e(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Client Ip")," "))}function p9e(e,o){if(e&1&&(l(0,"div",8),c(1),r()),e&2){let t=w();a(),v(" ",t.auditTrailData.ip," ")}}function m9e(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Command")))}function d9e(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.command)}}function u9e(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Command Value")))}function f9e(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.commandValue," ")}}function h9e(e,o){e&1&&b(0,"tr",25)}function g9e(e,o){e&1&&b(0,"tr",26)}var Jv=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["command","commandValue"],this.route.data.subscribe(t=>{this.auditTrailData=t.auditTrail})}ngOnInit(){this.setAuditTrailCommands()}get auditTrailCommandsData(){if(!this.auditTrailData||!this.auditTrailData.commandAsJson)return[];try{let t=JSON.parse(this.auditTrailData.commandAsJson);return t&&typeof t=="object"&&!Array.isArray(t)?Object.entries(t).map(([n,i])=>({command:n,commandValue:i})):[]}catch(t){return console.error("Invalid commandAsJson in audit trail:",t),[]}}setAuditTrailCommands(){this.dataSource=new Wt(this.auditTrailCommandsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-audit"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:64,vars:46,consts:[[1,"container","layout-row","align-between","responsive-column"],[1,"flex-100"],[1,"layout-row","flex-100"],[1,"flex-46"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["fxFlex","50%",1,"mat-body-strong"],["fxFlex","50%"],[1,"flex-46","command"],["mat-table","","matSort","",1,"command-table",3,"dataSource"],["matColumnDef","command"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","commandValue"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","column-value-wrapper",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","layout-align-center","m-t-20","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-cell","",1,"column-value-wrapper"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card",1)(2,"mat-card-content",1)(3,"div",2)(4,"div",3)(5,"div",4)(6,"div",5),c(7),p(8,"translate"),r(),l(9,"div",6),c(10),r(),l(11,"div",5),c(12),p(13,"translate"),r(),l(14,"div",6),c(15),r(),l(16,"div",5),c(17),p(18,"translate"),r(),l(19,"div",6),c(20),r(),l(21,"div",5),c(22),p(23,"translate"),r(),l(24,"div",6),c(25),r(),l(26,"div",5),c(27),p(28,"translate"),r(),l(29,"div",6),c(30),r(),l(31,"div",5),c(32),p(33,"translate"),r(),l(34,"div",6),c(35),r(),l(36,"div",5),c(37),p(38,"translate"),r(),l(39,"div",6),c(40),p(41,"datetimeFormat"),r(),E(42,n9e,3,3,"div",5),E(43,o9e,2,1,"div",6),E(44,a9e,3,3,"div",5),E(45,r9e,2,1,"div",6),E(46,l9e,3,3,"div",5),E(47,s9e,2,1,"div",6),r(),E(48,c9e,3,3,"div",7),E(49,p9e,2,1,"div",8),r(),l(50,"div",9)(51,"table",10),X(52,11),F(53,m9e,3,3,"th",12)(54,d9e,2,1,"td",13),Z(),X(55,14),F(56,u9e,3,3,"th",15)(57,f9e,2,1,"td",16),Z(),F(58,h9e,1,0,"tr",17)(59,g9e,1,0,"tr",18),r()()(),l(60,"div",19)(61,"button",20),c(62),p(63,"translate"),r()()()()()),n&2&&(a(7),v(" ",m(8,27,"labels.inputs.ID")," "),a(3),v(" ",i.auditTrailData.id," "),a(2),v(" ",m(13,29,"labels.inputs.Status")," "),a(3),v(" ",i.auditTrailData.processingResult," "),a(2),v(" ",m(18,31,"labels.inputs.User")," "),a(3),v(" ",i.auditTrailData.maker," "),a(2),v(" ",m(23,33,"labels.inputs.Action")," "),a(3),v(" ",i.auditTrailData.actionName," "),a(2),v(" ",m(28,35,"labels.inputs.Entity")," "),a(3),v(" ",i.auditTrailData.entityName," "),a(2),v(" ",m(33,37,"labels.inputs.Resource ID")," "),a(3),v(" ",i.auditTrailData.resourceId," "),a(2),v(" ",m(38,39,"labels.inputs.Date")," "),a(3),v(" ",m(41,41,i.auditTrailData.madeOnDate)," "),a(2),I(i.auditTrailData.officeName?42:-1),a(),I(i.auditTrailData.officeName?43:-1),a(),I(i.auditTrailData.savingsAccountNo?44:-1),a(),I(i.auditTrailData.savingsAccountNo?45:-1),a(),I(i.auditTrailData.groupLevelName?46:-1),a(),I(i.auditTrailData.groupLevelName?47:-1),a(),I(i.auditTrailData.ip?48:-1),a(),I(i.auditTrailData.ip?49:-1),a(2),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(45,i9e)),a(),v(" ",m(63,43,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,Yr],styles:[".content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}table[_ngcontent-%COMP%]{width:100%}.column-value-wrapper[_ngcontent-%COMP%]{word-break:break-all}.command[_ngcontent-%COMP%]{background-color:#eee}.command-table[_ngcontent-%COMP%]{background-color:inherit}"]})}}return e})();var _9e=["buttonCreateCode"],C9e=["templateButtonCreateCode"],v9e=["tableCodes"],x9e=["templateTableCodes"],b9e=()=>[10,25,50,100],y9e=()=>["create"],S9e=e=>[e];function w9e(e,o){e&1&&(l(0,"button",21),b(1,"fa-icon",22),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,y9e)),a(2),v(" ",m(3,2,"labels.buttons.Create Code")," "))}function P9e(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code Name")))}function T9e(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function M9e(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.System Defined")))}function D9e(e,o){e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function E9e(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function I9e(e,o){if(e&1&&(l(0,"td",24),E(1,D9e,2,4,"fa-icon",25),E(2,E9e,2,4,"fa-icon",26),r()),e&2){let t=o.$implicit;a(),I(t.systemDefined?1:-1),a(),I(t.systemDefined?-1:2)}}function O9e(e,o){e&1&&b(0,"tr",27)}function A9e(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,S9e,t.id))}}function F9e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Codes")),a(3),h(m(5,7,"labels.text.To create additional codes.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function k9e(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter codes")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function B9e(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of all codes in the Mifos system")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var Kv=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","systemDefined"],this.route.data.subscribe(t=>{this.codesData=t.codes})}ngOnInit(){this.setCodes()}setCodes(){this.dataSource=new Wt(this.codesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSystemCodesPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateCode,this.buttonCreateCode.nativeElement,"bottom",!0)}),this.configurationWizardService.showSystemCodesList===!0&&setTimeout(()=>{this.showPopover(this.templateTableCodes,this.tableCodes.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showSystemCodesPage=!1,this.configurationWizardService.showSystemCodesList=!1,this.configurationWizardService.showSystemCodesForm=!0,this.router.navigate(["/system/codes/create"])}previousStep(){this.configurationWizardService.showSystemCodesPage=!1,this.configurationWizardService.showSystemCodesList=!1,this.configurationWizardService.showSystemCodes=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-codes"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(_9e,5),Ee(C9e,5),Ee(v9e,5),Ee(x9e,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateCode=s.first),Te(s=Me())&&(i.templateButtonCreateCode=s.first),Te(s=Me())&&(i.tableCodes=s.first),Te(s=Me())&&(i.templateTableCodes=s.first)}},decls:30,vars:9,consts:[["buttonCreateCode",""],["filter",""],["tableCodes",""],["templateButtonCreateCode",""],["templateFilter",""],["templateTableCodes",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","systemDefined"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"system-defined",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-system-defined",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",null,0),F(3,w9e,4,5,"button",7),r()(),l(4,"div",8)(5,"div",9,1)(7,"mat-form-field",10)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",11),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",12,2)(14,"table",13),X(15,14),F(16,P9e,3,3,"th",15)(17,T9e,2,1,"td",16),Z(),X(18,17),F(19,M9e,3,3,"th",15)(20,I9e,3,2,"td",16),Z(),F(21,O9e,1,0,"tr",18)(22,A9e,1,3,"tr",19),r(),b(23,"mat-paginator",20),r()(),F(24,F9e,16,15,"ng-template",null,3,ti)(26,k9e,13,12,"ng-template",null,4,ti)(28,B9e,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_CODE"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,b9e)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.system-defined[_ngcontent-%COMP%]{color:#32cd32}.not-system-defined[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var R9e=["codeFormRef"],N9e=["templateCodeFormRef"],L9e=()=>["../"];function V9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Code Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function q9e(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.codeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function z9e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",10),c(4),p(5,"translate"),b(6,"br"),c(7),p(8,"translate"),l(9,"a",11),c(10),p(11,"translate"),r()(),l(12,"div",12)(13,"button",13),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(14),p(15,"translate"),r(),l(16,"button",14),R("click",function(){let i=V(t).popover;return q(i.close())}),c(17),p(18,"translate"),r(),l(19,"button",14),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(20),p(21,"translate"),r(),l(22,"button",14),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(23),p(24,"translate"),r()()}e&2&&(a(),h(m(2,8,"labels.heading.Create Code")),a(3),v(" ",m(5,10,"labels.text.To create code,create")),a(3),v(" ",m(8,12,"labels.text.For more details click"),": "),a(3),h(m(11,14,"labels.inputs.Manage Codes")),a(4),v(" ",m(15,16,"labels.buttons.Close")," "),a(3),v(" ",m(18,18,"labels.buttons.Create Code")," "),a(3),v(" ",m(21,20,"labels.buttons.Back")," "),a(3),v(" ",m(24,22,"labels.buttons.Next")," "))}var Xv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi)}ngOnInit(){this.createCodeForm()}createCodeForm(){this.codeForm=this.formBuilder.group({name:["",ce.required]})}submit(){this.systemService.createCode(this.codeForm.value).subscribe(t=>{this.configurationWizardService.showSystemCodesForm===!0?(this.configurationWizardService.showSystemCodesForm=!1,this.configurationWizardService.showRolesandPermission=!0,this.router.navigate(["/system"])):this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSystemCodesForm===!0&&setTimeout(()=>{this.showPopover(this.templateCodeFormRef,this.codeFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showSystemCodesForm=!1,this.configurationWizardService.showRolesandPermission=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showSystemCodesForm=!1,this.configurationWizardService.showSystemCodesList=!0,this.router.navigate(["/system/codes"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-code"]],viewQuery:function(n,i){if(n&1&&(Ee(R9e,5),Ee(N9e,5)),n&2){let s;Te(s=Me())&&(i.codeFormRef=s.first),Te(s=Me())&&(i.templateCodeFormRef=s.first)}},decls:19,vars:11,consts:[["codeFormRef",""],["templateCodeFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895350/Manage+Codes","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4,0)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",5),E(11,V9e,7,9,"mat-error"),r()()(),l(12,"mat-card-actions",6)(13,"button",7),c(14),p(15,"translate"),r(),F(16,q9e,3,4,"button",8),r()()()(),F(17,z9e,25,24,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.codeForm),a(6),h(m(9,6,"labels.inputs.Code Name")),a(3),I(i.codeForm.controls.name.hasError("required")?11:-1),a(2),g("routerLink",oe(10,L9e)),a(),v(" ",m(15,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CODE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var H9e=()=>["../"];function G9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Code Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function j9e(e,o){if(e&1&&(l(0,"button",7),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.codeForm.valid||t.codeForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Zv=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.codeData=t.code})}ngOnInit(){this.createCodeForm()}createCodeForm(){this.codeForm=this.formBuilder.group({name:[this.codeData.name,ce.required]})}submit(){this.systemService.updateCode(this.codeForm.value,this.codeData.id).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-code"]],decls:16,vars:11,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,G9e,7,9,"mat-error"),r()()(),l(11,"mat-card-actions",4)(12,"button",5),c(13),p(14,"translate"),r(),F(15,j9e,3,4,"button",6),r()()()()),n&2&&(a(2),g("formGroup",i.codeForm),a(5),h(m(8,6,"labels.inputs.Code Name")),a(3),I(i.codeForm.controls.name.hasError("required")?10:-1),a(2),g("routerLink",oe(10,H9e)),a(),v(" ",m(14,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_CODE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var $9e=()=>["edit"];function U9e(e,o){if(e&1){let t=Y();l(0,"button",6),R("click",function(){V(t);let i=w();return q(i.addCodeValueRow())}),b(1,"fa-icon",7),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Code Value")," "))}function W9e(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,$9e)),a(2),v(" ",m(3,2,"labels.buttons.Edit Code")," "))}function Q9e(e,o){e&1&&(l(0,"span"),F(1,W9e,4,5,"button",8),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_CODE"))}function Y9e(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w(2);return q(i.delete())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete Code")," "))}function J9e(e,o){e&1&&(l(0,"span"),F(1,Y9e,4,3,"button",11),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_CODEVALUE"))}function K9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function X9e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Z9e(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w(2).$index,s=w();return q(s.updateCodeValue(i))}),c(1),p(2,"translate"),r()}if(e&2){let t=w(2).$index,n=w();g("disabled",!n.codeValues.at(t).valid||n.codeValues.at(t).pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function eNe(e,o){e&1&&(l(0,"span"),F(1,Z9e,3,4,"button",28),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_CODEVALUE"))}function tNe(e,o){if(e&1){let t=Y();l(0,"button",30),R("click",function(){V(t);let i=w().$index,s=w();return q(s.disableRow(i))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Cancel")," "))}function iNe(e,o){if(e&1){let t=Y();l(0,"button",31),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w().$index,s=w();return q(s.addCodeValue(i))}),b(3,"fa-icon",32),r()}if(e&2){let t=w().$index,n=w();g("title",Le(m(1,5,"tooltips.Add")))("matTooltip",Le(m(2,7,"tooltips.Add")))("disabled",!n.codeValuesForm.get("codeValues").at(t).valid)}}function nNe(e,o){if(e&1){let t=Y();l(0,"button",33),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w().$index,s=w();return q(s.enableRow(i))}),b(3,"fa-icon",34),r()}e&2&&g("title",Le(m(1,4,"tooltips.Edit")))("matTooltip",Le(m(2,6,"tooltips.Edit")))}function oNe(e,o){if(e&1){let t=Y();l(0,"button",35),p(1,"translate"),p(2,"translate"),R("click",function(){V(t);let i=w().$index,s=w();return q(s.codeValueRowStatus[i]==="new"?s.removeNewCodeValue(i):s.deleteCodeValue(i))}),b(3,"fa-icon",36),r()}e&2&&g("title",Le(m(1,4,"tooltips.Delete")))("matTooltip",Le(m(2,6,"tooltips.Delete")))}function aNe(e,o){if(e&1&&(l(0,"div",5)(1,"div",14)(2,"mat-form-field",15)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",16),p(7,"translate"),E(8,K9e,7,9,"mat-error"),r(),l(9,"mat-form-field",17)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",18),p(14,"translate"),r(),l(15,"mat-form-field",19)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",20),p(20,"translate"),E(21,X9e,7,9,"mat-error"),r(),l(22,"div",21)(23,"mat-checkbox",22),c(24),p(25,"translate"),r()(),l(26,"div",23),E(27,eNe,2,1,"span"),E(28,tNe,3,3,"button",24),E(29,iNe,4,9,"button",25),E(30,nNe,4,8,"button",26),F(31,oNe,4,8,"button",27),r()()()),e&2){let t=o.$index,n=w();a(),g("formGroupName",t),a(3),h(m(5,18,"labels.inputs.name")),a(2),g("placeholder",Le(m(7,20,"labels.inputs.name"))),a(2),I(n.codeValues.at(t).controls.name.hasError("required")?8:-1),a(3),h(m(12,22,"labels.inputs.Description")),a(2),g("placeholder",Le(m(14,24,"labels.inputs.Description"))),a(4),h(m(18,26,"labels.inputs.Position")),a(2),g("placeholder",Le(m(20,28,"labels.inputs.Position"))),a(2),I(n.codeValues.at(t).controls.position.hasError("required")?21:-1),a(3),h(m(25,30,"labels.inputs.Active")),a(3),I(n.codeValueRowStatus[t]==="edit"?27:-1),a(),I(n.codeValueRowStatus[t]==="edit"?28:-1),a(),I(n.codeValueRowStatus[t]==="new"?29:-1),a(),I(n.codeValueRowStatus[t]==="disabled"?30:-1),a(),g("mifosxHasPermission","DELETE_CODEVALUE")}}var ex=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.codeValueRowStatus=[],this.route.data.subscribe(t=>{this.codeData=t.code,this.codeValuesData=t.codeValues})}ngOnInit(){this.createCodeValuesForm(),this.initCodeValuesForm()}initCodeValuesForm(){this.codeValuesData.forEach(t=>{this.codeValues.push(this.createCodeValuesRow(t)),this.codeValueRowStatus.push("disabled")})}get codeValues(){return this.codeValuesForm.get("codeValues")}createCodeValuesForm(){this.codeValuesForm=this.formBuilder.group({codeValues:this.formBuilder.array([])})}addCodeValueRow(){this.codeValues.push(this.createCodeValuesRow()),this.codeValues.at(this.codeValues.length-1).enable(),this.codeValueRowStatus.push("new")}createCodeValuesRow(t){return this.formBuilder.group({name:[{value:t?t.name:"",disabled:!0},ce.required],description:[{value:t?t.description:"",disabled:!0}],position:[{value:t?t.position:0,disabled:!0},ce.required],isActive:[{value:t?t.active:!1,disabled:!0}]})}deleteCodeValue(t){let n=this.codeValuesData[t].id;this.systemService.deleteCodeValue(this.codeData.id,n).subscribe(i=>{this.codeValuesData.splice(t,1),this.codeValues.removeAt(t),this.codeValueRowStatus.splice(t,1)})}removeNewCodeValue(t){this.codeValues.removeAt(t),this.codeValueRowStatus.splice(t,1)}updateCodeValue(t){let n=this.codeValues.at(t).value;this.systemService.updateCodeValue(this.codeData.id,this.codeValuesData[t].id,n).subscribe(i=>{this.codeValues.at(t).disable(),this.codeValueRowStatus[t]="disabled",this.codeValues.at(t).markAsPristine()})}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Code")+" "+this.codeData.name}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteCode(this.codeData.id).subscribe(()=>{this.router.navigate(["/system/codes"])})})}disableRow(t){this.codeValues.at(t).get("name").setValue(this.codeValuesData[t].name),this.codeValues.at(t).get("description").setValue(this.codeValuesData[t].description),this.codeValues.at(t).get("position").setValue(this.codeValuesData[t].position),this.codeValues.at(t).get("isActive").setValue(this.codeValuesData[t].isActive),this.codeValues.at(t).disable(),this.codeValueRowStatus[t]="disabled",this.codeValues.at(t).markAsPristine()}addCodeValue(t){let n=this.codeValues.at(t).value;this.systemService.createCodeValue(this.codeData.id,n).subscribe(i=>{this.codeValues.at(t).disable(),this.codeValueRowStatus[t]="disabled",this.codeValuesData.push({id:i.subResourceId,name:this.codeValues.at(t).get("name").value,description:this.codeValues.at(t).get("description").value,position:this.codeValues.at(t).get("position").value,isActive:this.codeValues.at(t).get("isActive").value}),this.codeValues.at(t).markAsPristine()})}enableRow(t){this.codeValues.at(t).enable(),this.codeValueRowStatus[t]="edit"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-code"]],decls:13,vars:5,consts:[[1,"container","m-b-20","layout-row","align-end","layout-xs-column","gap-20px"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"m-t-20","m-l-20"],[3,"formGroup"],["formArrayName","codeValues"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column",3,"formGroupName"],[1,"flex-fill","flex-20"],["required","","matInput","","formControlName","name",3,"placeholder"],[1,"flex-fill","flex-22"],["matInput","","formControlName","description",3,"placeholder"],[1,"flex-fill","flex-18"],["required","","matInput","","formControlName","position","type","number",3,"placeholder"],[1,"active-wrapper","flex-8"],["formControlName","isActive",1,"active"],[1,"options-wrapper","gap-2percent","flex-22"],["mat-button","","type","button"],["mat-icon-button","","color","primary","type","button","matTooltipPosition","above",3,"title","disabled","matTooltip"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"title","matTooltip"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"title","matTooltip","click",4,"mifosxHasPermission"],["mat-stroked-button","","color","primary","type","button",3,"disabled","click",4,"mifosxHasPermission"],["mat-stroked-button","","color","primary","type","button",3,"click","disabled"],["mat-button","","type","button",3,"click"],["mat-icon-button","","color","primary","type","button","matTooltipPosition","above",3,"click","title","disabled","matTooltip"],["icon","plus","size","lg"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"click","title","matTooltip"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","title","matTooltip"],["icon","trash","size","lg"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,U9e,4,3,"button",1),E(2,Q9e,2,1,"span"),E(3,J9e,2,1,"span"),r(),l(4,"div",2)(5,"mat-card")(6,"mat-card-title",3)(7,"h4"),c(8),r()(),l(9,"form",4)(10,"mat-card-content"),Se(11,aNe,32,32,"div",5,Pe),r()()()()),n&2&&(a(),g("mifosxHasPermission","CREATE_CODEVALUE"),a(),I(i.codeData.systemDefined?-1:2),a(),I(i.codeData.systemDefined?-1:3),a(5),h(i.codeData.name),a(),g("formGroup",i.codeValuesForm),a(2),we(i.codeValues.controls))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,la,La,Oe,Ue,Je,Fe,Be,ut,ze,xe,fi,Ke,ke,Qo,wi,si,he],styles:["@media (width >= 992px){.active-wrapper[_ngcontent-%COMP%]{position:relative}.active-wrapper[_ngcontent-%COMP%] .active[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}.options-wrapper[_ngcontent-%COMP%]{padding:18px 0 0}"]})}}return e})();var rNe=()=>[10,25,50,100];function lNe(e,o){e&1&&(l(0,"th",8),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Mapping Between Entities")))}function sNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Offices Loan Products")," "))}function cNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Offices Savings Products")," "))}function pNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Offices Charges/Fees")," "))}function mNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Roles Loan Products")," "))}function dNe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Roles Savings Products")," "))}function uNe(e,o){if(e&1){let t=Y();l(0,"td",9),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showFilters(i.id))}),E(1,sNe,3,3,"span"),E(2,cNe,3,3,"span"),E(3,pNe,3,3,"span"),E(4,mNe,3,3,"span"),E(5,dNe,3,3,"span"),r()}if(e&2){let t=o.$implicit;a(),I(t.mappingTypes==="office_access_to_loan_products"?1:-1),a(),I(t.mappingTypes==="office_access_to_savings_products"?2:-1),a(),I(t.mappingTypes==="office_access_to_fees/charges"?3:-1),a(),I(t.mappingTypes==="role_access_to_loan_products"?4:-1),a(),I(t.mappingTypes==="role_access_to_savings_products"?5:-1)}}function fNe(e,o){e&1&&b(0,"tr",10)}function hNe(e,o){e&1&&b(0,"tr",11)}function gNe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function _Ne(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translateKey"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2){let t=w(2);a(),le(" ",Ft(2,3,t.firstMappingEntity,"inputs")," ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function CNe(e,o){if(e&1&&(l(0,"mat-option",15),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function vNe(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translateKey"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2){let t=w(2);a(),le(" ",Ft(2,3,t.secondMappingEntity,"text")," ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function xNe(e,o){if(e&1){let t=Y();l(0,"button",20),R("click",function(){V(t);let i=w(2);return q(i.showAddScreen(i.selectedMappingType))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Add")," "))}function bNe(e,o){if(e&1&&(l(0,"th",8),c(1),p(2,"translateKey"),r()),e&2){let t=w(3);a(),h(Ft(2,1,t.firstMappingEntity,"inputs"))}}function yNe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.fromEntity)}}function SNe(e,o){if(e&1&&(l(0,"th",8),c(1),p(2,"translateKey"),r()),e&2){let t=w(3);a(),h(Ft(2,1,t.secondMappingEntity,"text"))}}function wNe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.toEntity)}}function PNe(e,o){e&1&&(l(0,"th",8),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function TNe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function MNe(e,o){e&1&&(l(0,"th",8),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Date")))}function DNe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.endDate))}}function ENe(e,o){e&1&&b(0,"th",8)}function INe(e,o){if(e&1){let t=Y();l(0,"button",31),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w(3);return q(s.showEditScreen(i.mapId,s.selectedMappingType))}),b(2,"fa-icon",32),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit")))}function ONe(e,o){e&1&&(l(0,"td",29),F(1,INe,3,4,"button",30),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_ENTITYMAPPING"))}function ANe(e,o){e&1&&b(0,"th",8)}function FNe(e,o){if(e&1){let t=Y();l(0,"button",34),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w(3);return q(s.delete(i.mapId))}),b(2,"fa-icon",35),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete")))}function kNe(e,o){e&1&&(l(0,"td",29),F(1,FNe,3,4,"button",33),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_ENTITYMAPPING"))}function BNe(e,o){e&1&&b(0,"tr",10)}function RNe(e,o){e&1&&b(0,"tr",11)}function NNe(e,o){if(e&1&&(l(0,"div")(1,"table",2),X(2,21),F(3,bNe,3,4,"th",4)(4,yNe,2,1,"td",22),Z(),X(5,23),F(6,SNe,3,4,"th",4)(7,wNe,2,1,"td",22),Z(),X(8,24),F(9,PNe,3,3,"th",4)(10,TNe,3,3,"td",22),Z(),X(11,25),F(12,MNe,3,3,"th",4)(13,DNe,3,3,"td",22),Z(),X(14,26),F(15,ENe,1,0,"th",4)(16,ONe,2,1,"td",22),Z(),X(17,27),F(18,ANe,1,0,"th",4)(19,kNe,2,1,"td",22),Z(),F(20,BNe,1,0,"tr",6)(21,RNe,1,0,"tr",7),r(),b(22,"mat-paginator",28),r()),e&2){let t=w(2);a(),g("dataSource",t.entityMappingsListData),a(19),g("matHeaderRowDef",t.entityMappingListColumns),a(),g("matRowDefColumns",t.entityMappingListColumns),a(),g("pageSizeOptions",oe(4,rNe))}}function LNe(e,o){if(e&1){let t=Y();l(0,"mat-card")(1,"form",12),R("ngSubmit",function(){V(t);let i=w();return q(i.showFilteredData())}),l(2,"mat-card-title"),c(3),p(4,"translateKey"),p(5,"translate"),p(6,"translateKey"),r(),l(7,"mat-card-content")(8,"div",13)(9,"mat-form-field")(10,"mat-label"),c(11),p(12,"translateKey"),r(),l(13,"mat-select",14)(14,"mat-option",15),c(15),p(16,"translate"),r(),Se(17,gNe,2,2,"mat-option",15,Pe),r(),E(19,_Ne,7,10,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translateKey"),r(),l(24,"mat-select",16)(25,"mat-option",15),c(26),p(27,"translate"),r(),Se(28,CNe,2,2,"mat-option",15,Pe),r(),E(30,vNe,7,10,"mat-error"),r(),l(31,"mat-card-actions",17)(32,"button",18),c(33),p(34,"translate"),r(),E(35,xNe,3,3,"button",19),r()()()(),E(36,NNe,23,5,"div"),r()}if(e&2){let t=w();a(),g("formGroup",t.filterPreferenceForm),a(2),ea(" ",Ft(4,16,t.firstMappingEntity,"inputs")," ",m(5,19,"labels.text.access to")," ",Ft(6,21,t.secondMappingEntity,"text")," "),a(8),h(Ft(12,24,t.firstMappingEntity,"inputs")),a(3),g("value",0),a(),v(" ",m(16,27,"labels.inputs.All")," "),a(2),we(t.firstEntityData),a(2),I(t.filterPreferenceForm.controls.mappingFirstParamId.hasError("required")?19:-1),a(3),h(Ft(23,29,t.secondMappingEntity,"text")),a(3),g("value",0),a(),v(" ",m(27,32,"labels.inputs.All")," "),a(2),we(t.secondEntityData),a(2),I(t.filterPreferenceForm.controls.mappingSecondParamId.hasError("required")?30:-1),a(2),g("disabled",!t.filterPreferenceForm.valid),a(),v(" ",m(34,34,"labels.buttons.Submit")," "),a(2),I(t.hasClickedFilters?35:-1),a(),I(t.hasClickedFilters?36:-1)}}var tx=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.systemService=T(ii),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.entityMappings=[],this.selectedMappingType=0,this.selectedFromId=0,this.selectedToId=0,this.hasClickedFilters=!1,this.retrieveById=0,this.firstEntityData=[],this.secondEntityData=[],this.displayedColumns=["entitymapping"],this.entityMappingListColumns=["fromentity","toentity","startdate","enddate","edit","delete"],this.route.data.subscribe(t=>{this.entityMappings=t.entityMappings})}createFilterPreferenceForm(){this.filterPreferenceForm=this.formBuilder.group({mappingFirstParamId:["",ce.required],mappingSecondParamId:["",ce.required]})}ngOnInit(){this.setMapping()}setMapping(){this.datasource=new Wt(this.entityMappings)}showFilters(t){this.selectedMappingType=t,this.hasClickedFilters=!1,this.fetchRelatedData(this.selectedMappingType),this.selectedFromId=0,this.selectedToId=0}fetchRelatedData(t){switch(this.retrieveById=t,this.createFilterPreferenceForm(),this.retrieveById){case 1:this.systemService.getOffices().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Office"}),this.systemService.getLoanProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Loan Products"});break;case 2:this.systemService.getOffices().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Office"}),this.systemService.getSavingProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Saving Products"});break;case 3:this.systemService.getOffices().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Office"}),this.systemService.getCharges().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Charges"});break;case 4:this.systemService.getRoles().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Role"}),this.systemService.getLoanProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Loan Products"});break;case 5:this.systemService.getRoles().subscribe(n=>{this.firstEntityData=n,this.firstMappingEntity="Role"}),this.systemService.getSavingProducts().subscribe(n=>{this.secondEntityData=n,this.secondMappingEntity="Saving Products"});break}}showFilteredData(){this.filterPreference=this.filterPreferenceForm.value,this.filterPreference.mappingFirstParamId===""&&(this.filterPreference.mappingFirstParamId=0),this.filterPreference.mappingSecondParamId===""&&(this.filterPreference.mappingSecondParamId=0),this.hasClickedFilters=!0,this.selectedFromId=this.filterPreference.mappingFirstParamId,this.selectedToId=this.filterPreference.mappingSecondParamId,this.systemService.getEntitytoEntityData(this.retrieveById,this.selectedFromId,this.selectedToId).subscribe(t=>{this.entityMappingsListData=new Wt(t),this.entityMappingsListData.paginator=this.paginator,this.entityMappingsListData.sort=this.sort})}showAddScreen(t){this.relId=t,this.fetchRelatedData(this.relId);let n=[new $i({controlName:"fromId",label:this.translateService.instant(`labels.inputs.${this.firstMappingEntity}`),options:{label:"name",value:"id",data:this.firstEntityData},required:!0}),new $i({controlName:"toId",label:this.translateService.instant(`labels.text.${this.secondMappingEntity}`),options:{label:"name",value:"id",data:this.secondEntityData},required:!0}),new rr({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),type:"date",required:!1}),new rr({controlName:"endDate",label:this.translateService.instant("labels.inputs.End Date"),type:"date",required:!1})],i={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.heading.Entity to Entity Mapping"),layout:{addButtonText:"Confirm"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&this.submitNew(d.data)})}showEditScreen(t,n){this.relId=n,this.mapIdToEdit=t,this.fetchRelatedData(this.relId),this.systemService.getMapIdData(t).subscribe(u=>{this.entityMap=u});let i=[new $i({controlName:"fromId",label:this.translateService.instant(`labels.inputs.${this.firstMappingEntity}`),options:{label:"name",value:"id",data:this.firstEntityData},required:!0}),new $i({controlName:"toId",label:this.translateService.instant(`labels.text.${this.secondMappingEntity}`),options:{label:"name",value:"id",data:this.secondEntityData},required:!0}),new rr({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),type:"date",required:!1}),new rr({controlName:"endDate",label:this.translateService.instant("labels.inputs.End Date"),type:"date",required:!1})],s={title:this.translateService.instant("labels.buttons.Edit")+" "+this.translateService.instant("labels.heading.Entity to Entity Mapping"),layout:{addButtonText:"Confirm"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&this.submitEdit(u.data)})}submitNew(t){t.value.fromId===""&&(t.value.fromId=void 0),t.value.toId===""&&(t.value.toId=void 0);let n=this.settingsService.dateFormat,i=t.value.startDate,s=t.value.endDate,d=t.value;d.startDate=this.dateUtils.formatDate(i,n),d.endDate=this.dateUtils.formatDate(s,n),d.dateFormat=n,d.locale=this.settingsService.language.code,this.systemService.createMapping(this.relId,d).subscribe(u=>{this.showFilteredData()})}submitEdit(t){let n=this.settingsService.dateFormat,i=t.value.startDate,s=t.value.endDate,d=t.value;d.startDate=this.dateUtils.formatDate(i,n),d.endDate=this.dateUtils.formatDate(s,n),d.dateFormat=n,d.locale=this.settingsService.language.code,this.systemService.editMapping(this.mapIdToEdit,d).subscribe(u=>{this.showFilteredData()})}delete(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Mapping id")+" "+t}}).afterClosed().subscribe(i=>{i.delete&&this.systemService.deleteMapping(t).subscribe(()=>{this.showFilteredData()})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-entity-to-entity-mapping"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:9,vars:4,consts:[[1,"container"],[1,"mat-elevation-z8"],["mat-table","",3,"dataSource"],["matColumnDef","entitymapping"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-header-row",""],["mat-row","",1,"select-row"],[3,"ngSubmit","formGroup"],[1,"layout-row","align-space-evenly-center"],["required","","formControlName","mappingFirstParamId"],[3,"value"],["required","","formControlName","mappingSecondParamId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["mat-raised-button","","color","primary",3,"disabled"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","primary",3,"click"],["matColumnDef","fromentity"],["mat-cell","",4,"matCellDef"],["matColumnDef","toentity"],["matColumnDef","startdate"],["matColumnDef","enddate"],["matColumnDef","edit"],["matColumnDef","delete"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-cell",""],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"mifosxHasPermission"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"matTooltip","click",4,"mifosxHasPermission"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","trash","size","lg"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"table",2),X(3,3),F(4,lNe,3,3,"th",4)(5,uNe,6,5,"td",5),Z(),F(6,fNe,1,0,"tr",6)(7,hNe,1,0,"tr",7),r(),E(8,LNe,37,36,"mat-card"),r()()),n&2&&(a(2),g("dataSource",i.datasource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),I(i.selectedMappingType>0?8:-1))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Qo,wi,si,ke,kt,Pi,he,ki],styles:["table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]{cursor:pointer}"]})}}return e})();var VNe=()=>["edit"];function qNe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function zNe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"inputs"))}}function HNe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function GNe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit,n=w();a(),h(n.getConfigurationValue(t))}}function jNe(e,o){e&1&&b(0,"tr",13)}function $Ne(e,o){e&1&&b(0,"tr",14)}var ix=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.amazonS3ConfigurationData=t.amazonS3Configuration})}ngOnInit(){this.setAmazonS3Configuration()}setAmazonS3Configuration(){this.dataSource=new Wt(this.amazonS3ConfigurationData),this.dataSource.sort=this.sort}getConfigurationValue(t){let n=t.value;return t.name==="s3_access_key"||t.name==="s3_secret_key"?n?n.replace(n.substr(1,n.length-3),n.substr(1,n.length-3).replace(/./g,"*")):"":n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-amazon-s3"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,qNe,3,3,"th",6)(9,zNe,3,4,"td",7),Z(),X(10,8),F(11,HNe,3,3,"th",6)(12,GNe,2,1,"td",7),Z(),F(13,jNe,1,0,"tr",9)(14,$Ne,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,VNe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var UNe=()=>["../"];function WNe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.S3 Bucket Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function QNe(e,o){e&1&&b(0,"fa-icon",11)}function YNe(e,o){e&1&&b(0,"fa-icon",12)}function JNe(e,o){if(e&1){let t=Y();l(0,"button",10),R("mousedown",function(){V(t);let i=w();return q(i.accessKeyInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.accessKeyInputType="password")}),E(1,QNe,1,0,"fa-icon",11),E(2,YNe,1,0,"fa-icon",12),r()}if(e&2){let t=w();a(),I(t.accessKeyInputType==="password"?1:-1),a(),I(t.accessKeyInputType==="text"?2:-1)}}function KNe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.S3 Access Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function XNe(e,o){e&1&&b(0,"fa-icon",11)}function ZNe(e,o){e&1&&b(0,"fa-icon",12)}function eLe(e,o){if(e&1){let t=Y();l(0,"button",10),R("mousedown",function(){V(t);let i=w();return q(i.secretKeyInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.secretKeyInputType="password")}),E(1,XNe,1,0,"fa-icon",11),E(2,ZNe,1,0,"fa-icon",12),r()}if(e&2){let t=w();a(),I(t.secretKeyInputType==="password"?1:-1),a(),I(t.secretKeyInputType==="text"?2:-1)}}function tLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.S3 Secret Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var nx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.amazonS3ConfigurationData=t.amazonS3Configuration})}ngOnInit(){this.createAmazonS3ConfigurationForm(),this.secretKeyInputType="password",this.accessKeyInputType="password"}createAmazonS3ConfigurationForm(){this.amazonS3ConfigurationForm=this.formBuilder.group({s3_bucket_name:[this.amazonS3ConfigurationData[1].value,ce.required],s3_access_key:[this.amazonS3ConfigurationData[0].value,ce.required],s3_secret_key:[this.amazonS3ConfigurationData[2].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("S3",this.amazonS3ConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-amazon-s3"]],decls:32,vars:28,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","s3_bucket_name"],["matInput","","required","","formControlName","s3_access_key",3,"type"],["mat-button","","matSuffix","","mat-icon-button",""],["matInput","","required","","formControlName","s3_secret_key",3,"type"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-button","","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,WNe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,JNe,3,2,"button",5),E(17,KNe,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),E(23,eLe,3,2,"button",5),E(24,tLe,7,9,"mat-error"),r()()(),l(25,"mat-card-actions",7)(26,"button",8),c(27),p(28,"translate"),r(),l(29,"button",9),c(30),p(31,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.amazonS3ConfigurationForm),a(5),h(m(8,17,"labels.inputs.S3 Bucket Name")),a(3),I(i.amazonS3ConfigurationForm.controls.s3_bucket_name.hasError("required")?10:-1),a(3),h(m(14,19,"labels.inputs.S3 Access Key")),a(2),g("type",Le(i.accessKeyInputType)),a(),I(i.amazonS3ConfigurationForm.controls.s3_access_key.value?16:-1),a(),I(i.amazonS3ConfigurationForm.controls.s3_access_key.hasError("required")?17:-1),a(3),h(m(21,21,"labels.inputs.S3 Secret Key")),a(2),g("type",Le(i.secretKeyInputType)),a(),I(i.amazonS3ConfigurationForm.controls.s3_secret_key.value?23:-1),a(),I(i.amazonS3ConfigurationForm.controls.s3_secret_key.hasError("required")?24:-1),a(2),g("routerLink",oe(27,UNe)),a(),v(" ",m(28,23,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.amazonS3ConfigurationForm.valid||i.amazonS3ConfigurationForm.pristine),a(),v(" ",m(31,25,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,xe,wi,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var iLe=()=>["../"];function nLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oLe(e,o){e&1&&b(0,"fa-icon",15)}function aLe(e,o){e&1&&b(0,"fa-icon",16)}function rLe(e,o){if(e&1){let t=Y();l(0,"button",14),R("mousedown",function(){V(t);let i=w();return q(i.passwordInputType="text")})("mouseup",function(){V(t);let i=w();return q(i.passwordInputType="password")}),E(1,oLe,1,0,"fa-icon",15),E(2,aLe,1,0,"fa-icon",16),r()}if(e&2){let t=w();a(),I(t.passwordInputType==="password"?1:-1),a(),I(t.passwordInputType==="text"?2:-1)}}function lLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Host")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Port")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ox=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.emailConfigurationData=t.emailConfiguration})}ngOnInit(){this.setEmailConfigurationForm(),this.passwordInputType="password"}setEmailConfigurationForm(){this.emailConfigurationForm=this.formBuilder.group({username:[this.emailConfigurationData[0].value,ce.required],password:[this.emailConfigurationData[1].value,ce.required],host:[this.emailConfigurationData[2].value,ce.required],port:[this.emailConfigurationData[3].value,ce.required],useTLS:[this.emailConfigurationData[4].value,ce.required],fromEmail:[this.emailConfigurationData[5].value,ce.required],fromName:[this.emailConfigurationData[6].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("SMTP",this.emailConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-email"]],decls:52,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","username"],["matInput","","required","","formControlName","password",3,"type"],["mat-button","","matSuffix","","mat-icon-button",""],["matInput","","required","","formControlName","host"],["matInput","","type","number","required","","formControlName","port"],["labelPosition","before","formControlName","useTLS",1,"margin-v","flex-48"],["matInput","","type","email","required","","formControlName","fromEmail"],["matInput","","required","","formControlName","fromName"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["mat-button","","matSuffix","","mat-icon-button","",3,"mousedown","mouseup"],["icon","eye"],["icon","eye-slash"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,nLe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,rLe,3,2,"button",5),E(17,lLe,7,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),E(23,sLe,7,9,"mat-error"),r(),l(24,"mat-form-field")(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",7),E(29,cLe,7,9,"mat-error"),r(),l(30,"mat-checkbox",8),c(31),p(32,"translate"),r(),l(33,"mat-form-field")(34,"mat-label"),c(35),p(36,"translate"),r(),b(37,"input",9),E(38,pLe,7,9,"mat-error"),r(),l(39,"mat-form-field")(40,"mat-label"),c(41),p(42,"translate"),r(),b(43,"input",10),E(44,mLe,7,9,"mat-error"),r()()(),l(45,"mat-card-actions",11)(46,"button",12),c(47),p(48,"translate"),r(),l(49,"button",13),c(50),p(51,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.emailConfigurationForm),a(5),h(m(8,21,"labels.inputs.Username")),a(3),I(i.emailConfigurationForm.controls.username.hasError("required")?10:-1),a(3),h(m(14,23,"labels.inputs.Password")),a(2),g("type",Le(i.passwordInputType)),a(),I(i.emailConfigurationForm.controls.password.value?16:-1),a(),I(i.emailConfigurationForm.controls.password.hasError("required")?17:-1),a(3),h(m(21,25,"labels.inputs.Host")),a(3),I(i.emailConfigurationForm.controls.host.hasError("required")?23:-1),a(3),h(m(27,27,"labels.inputs.Port")),a(3),I(i.emailConfigurationForm.controls.port.hasError("required")?29:-1),a(2),v(" ",m(32,29,"labels.inputs.Use TLS"),"? "),a(4),h(m(36,31,"labels.inputs.From Email")),a(3),I(i.emailConfigurationForm.controls.fromEmail.hasError("required")?38:-1),a(3),h(m(42,33,"labels.inputs.From Name")),a(3),I(i.emailConfigurationForm.controls.fromName.hasError("required")?44:-1),a(2),g("routerLink",oe(39,iLe)),a(),v(" ",m(48,35,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.emailConfigurationForm.valid||i.emailConfigurationForm.pristine),a(),v(" ",m(51,37,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,xe,fi,wi,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dLe=()=>["edit"];function uLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function fLe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function hLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function gLe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function _Le(e,o){e&1&&b(0,"tr",13)}function CLe(e,o){e&1&&b(0,"tr",14)}var ax=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.emailConfigurationData=t.emailConfiguration})}ngOnInit(){this.setEmailConfiguration()}setEmailConfiguration(){this.dataSource=new Wt(this.emailConfigurationData),this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-email"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,uLe,3,3,"th",6)(9,fLe,3,4,"td",7),Z(),X(10,8),F(11,hLe,3,3,"th",6)(12,gLe,2,1,"td",7),Z(),F(13,_Le,1,0,"tr",9)(14,CLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,dLe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var rx=()=>["amazon-s3"],lx=()=>["sms"],sx=()=>["email"],cx=()=>["notification"];function vLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function xLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function bLe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,rx)),a(),v(" ",m(2,2,"labels.text.S3 Amazon Service Configuration")," "))}function yLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function SLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function wLe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,lx)),a(),v(" ",m(2,2,"labels.text.SMS Service Configuration")," "))}function PLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function TLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function MLe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,sx)),a(),v(" ",m(2,2,"labels.text.Email Service Configuration")," "))}function DLe(e,o){if(e&1){let t=Y();l(0,"fa-icon",12),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function ELe(e,o){if(e&1){let t=Y();l(0,"fa-icon",13),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function ILe(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,cx)),a(),v(" ",m(2,2,"labels.text.Notification Service Configuration")," "))}var px=(()=>{class e{constructor(){this.arrowBooleans=new Array(4).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-external-services"]],decls:43,vars:48,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink"],["matListIcon","",3,"routerLink"],["icon","cloud","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","comment-alt","size","sm"],["icon","envelope","size","sm"],["icon","bell","size","sm"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list")(5,"mat-list-item",3)(6,"mat-icon",4),b(7,"fa-icon",5),r(),l(8,"h4",6),c(9),p(10,"translate"),r(),E(11,vLe,1,0,"fa-icon",7),E(12,xLe,1,0,"fa-icon",8),E(13,bLe,3,5,"p",6),r(),l(14,"mat-list-item",3)(15,"mat-icon",4),b(16,"fa-icon",9),r(),l(17,"h4",6),c(18),p(19,"translate"),r(),E(20,yLe,1,0,"fa-icon",7),E(21,SLe,1,0,"fa-icon",8),E(22,wLe,3,5,"p",6),r()()(),l(23,"div",2)(24,"mat-nav-list")(25,"mat-list-item",3)(26,"mat-icon",4),b(27,"fa-icon",10),r(),l(28,"h4",6),c(29),p(30,"translate"),r(),E(31,PLe,1,0,"fa-icon",7),E(32,TLe,1,0,"fa-icon",8),E(33,MLe,3,5,"p",6),r(),l(34,"mat-list-item",3)(35,"mat-icon",4),b(36,"fa-icon",11),r(),l(37,"h4",6),c(38),p(39,"translate"),r(),E(40,DLe,1,0,"fa-icon",7),E(41,ELe,1,0,"fa-icon",8),E(42,ILe,3,5,"p",6),r()()()()()()),n&2&&(a(5),g("routerLink",oe(36,rx)),a(),g("routerLink",oe(37,rx)),a(2),g("routerLink",oe(38,rx)),a(),h(m(10,28,"labels.heading.S3 Amazon External Service")),a(2),I(i.arrowBooleans[0]?-1:11),a(),I(i.arrowBooleans[0]?12:-1),a(),I(i.arrowBooleans[0]?13:-1),a(),g("routerLink",oe(39,lx)),a(),g("routerLink",oe(40,lx)),a(2),g("routerLink",oe(41,lx)),a(),h(m(19,30,"labels.heading.SMS External Service")),a(2),I(i.arrowBooleans[1]?-1:20),a(),I(i.arrowBooleans[1]?21:-1),a(),I(i.arrowBooleans[1]?22:-1),a(3),g("routerLink",oe(42,sx)),a(),g("routerLink",oe(43,sx)),a(2),g("routerLink",oe(44,sx)),a(),h(m(30,32,"labels.heading.Email External Service")),a(2),I(i.arrowBooleans[2]?-1:31),a(),I(i.arrowBooleans[2]?32:-1),a(),I(i.arrowBooleans[2]?33:-1),a(),g("routerLink",oe(45,cx)),a(),g("routerLink",oe(46,cx)),a(2),g("routerLink",oe(47,cx)),a(),v(" ",m(39,34,"labels.heading.Notification External Service")," "),a(2),I(i.arrowBooleans[3]?-1:40),a(),I(i.arrowBooleans[3]?41:-1),a(),I(i.arrowBooleans[3]?42:-1))},dependencies:[ue,fe,Oe,Ue,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var OLe=()=>["../"];function ALe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Server Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.GCM End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.FCM End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var mx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.notificationConfigurationData=t.notificationConfiguration})}ngOnInit(){this.setNotificationConfigurationForm()}setNotificationConfigurationForm(){this.notificationConfigurationForm=this.formBuilder.group({server_key:[this.notificationConfigurationData[0].value,ce.required],gcm_end_point:[this.notificationConfigurationData[1].value,ce.required],fcm_end_point:[this.notificationConfigurationData[2].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("NOTIFICATION",this.notificationConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-notification"]],decls:30,vars:22,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","server_key"],["matInput","","required","","formControlName","gcm_end_point"],["matInput","","required","","formControlName","fcm_end_point"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,ALe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,FLe,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,kLe,7,9,"mat-error"),r()()(),l(23,"mat-card-actions",6)(24,"button",7),c(25),p(26,"translate"),r(),l(27,"button",8),c(28),p(29,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.notificationConfigurationForm),a(5),h(m(8,11,"labels.inputs.Server Key")),a(3),I(i.notificationConfigurationForm.controls.server_key.hasError("required")?10:-1),a(3),h(m(14,13,"labels.inputs.GCM End Point")),a(3),I(i.notificationConfigurationForm.controls.gcm_end_point.hasError("required")?16:-1),a(3),h(m(20,15,"labels.inputs.FCM End Point")),a(3),I(i.notificationConfigurationForm.controls.fcm_end_point.hasError("required")?22:-1),a(2),g("routerLink",oe(21,OLe)),a(),v(" ",m(26,17,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.notificationConfigurationForm.valid||i.notificationConfigurationForm.pristine),a(),v(" ",m(29,19,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var BLe=()=>["edit"];function RLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function NLe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function LLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function VLe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit,n=w();a(),h(n.getConfigurationValue(t))}}function qLe(e,o){e&1&&b(0,"tr",13)}function zLe(e,o){e&1&&b(0,"tr",14)}var dx=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.notificationConfigurationData=t.notificationConfiguration})}ngOnInit(){this.setNotificationConfiguration()}setNotificationConfiguration(){this.dataSource=new Wt(this.notificationConfigurationData),this.dataSource.sort=this.sort}getConfigurationValue(t){let n=t.value;return t.name==="server_key"?n.replace(n.substr(1,n.length-3),n.substr(1,n.length-3).replace(/./g,"*")):n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notification"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,RLe,3,3,"th",6)(9,NLe,3,4,"td",7),Z(),X(10,8),F(11,LLe,3,3,"th",6)(12,VLe,2,1,"td",7),Z(),F(13,qLe,1,0,"tr",9)(14,zLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,BLe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var HLe=()=>["../"];function GLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Host Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jLe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Port Number")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Le(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.End Point")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ULe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Tenant App Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var ux=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.smsConfigurationData=t.smsConfiguration})}ngOnInit(){this.setSMSConfigurationForm()}setSMSConfigurationForm(){this.smsConfigurationForm=this.formBuilder.group({host_name:[this.smsConfigurationData[0].value,ce.required],port_number:[this.smsConfigurationData[1].value,ce.required],end_point:[this.smsConfigurationData[2].value,ce.required],tenant_app_key:[this.smsConfigurationData[3].value,ce.required]})}submit(){this.systemService.updateExternalConfiguration("SMS",this.smsConfigurationForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-sms"]],decls:36,vars:26,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","host_name"],["matInput","","required","","formControlName","port_number"],["matInput","","required","","formControlName","end_point"],["matInput","","required","","formControlName","tenant_app_key"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,GLe,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,jLe,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,$Le,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",6),E(28,ULe,7,9,"mat-error"),r()()(),l(29,"mat-card-actions",7)(30,"button",8),c(31),p(32,"translate"),r(),l(33,"button",9),c(34),p(35,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.smsConfigurationForm),a(5),h(m(8,13,"labels.inputs.Host Name")),a(3),I(i.smsConfigurationForm.controls.host_name.hasError("required")?10:-1),a(3),h(m(14,15,"labels.inputs.Port Number")),a(3),I(i.smsConfigurationForm.controls.port_number.hasError("required")?16:-1),a(3),h(m(20,17,"labels.inputs.End Point")),a(3),I(i.smsConfigurationForm.controls.end_point.hasError("required")?22:-1),a(3),h(m(26,19,"labels.inputs.Tenant App Key")),a(3),I(i.smsConfigurationForm.controls.tenant_app_key.hasError("required")?28:-1),a(2),g("routerLink",oe(25,HLe)),a(),v(" ",m(32,21,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.smsConfigurationForm.valid||i.smsConfigurationForm.pristine),a(),v(" ",m(35,23,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var WLe=()=>["edit"];function QLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function YLe(e,o){if(e&1&&(l(0,"td",12),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function JLe(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function KLe(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function XLe(e,o){e&1&&b(0,"tr",13)}function ZLe(e,o){e&1&&b(0,"tr",14)}var fx=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","value"],this.route.data.subscribe(t=>{this.smsConfigurationData=t.smsConfiguration})}ngOnInit(){this.setSMSConfiguration()}setSMSConfiguration(){this.dataSource=new Wt(this.smsConfigurationData),this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sms"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:15,vars:8,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","value"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"table",4),X(7,5),F(8,QLe,3,3,"th",6)(9,YLe,3,4,"td",7),Z(),X(10,8),F(11,JLe,3,3,"th",6)(12,KLe,2,1,"td",7),Z(),F(13,XLe,1,0,"tr",9)(14,ZLe,1,0,"tr",10),r()()),n&2&&(a(),g("routerLink",oe(7,WLe)),a(2),v(" ",m(4,5,"labels.buttons.Edit")," "),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var hx=[{displayValue:"Client",value:"m_client"},{displayValue:"Group",value:"m_group"},{displayValue:"Center",value:"m_center"},{displayValue:"Office",value:"m_office"},{displayValue:"Loan Account",value:"m_loan"},{displayValue:"Saving Account",value:"m_savings_account"},{displayValue:"Loan Product",value:"m_product_loan"},{displayValue:"Saving Account Transaction",value:"m_savings_account_transaction"},{displayValue:"Savings Product",value:"m_savings_product"},{displayValue:"Share Product",value:"m_share_product"}],gx=[{displayValue:"Person",value:"Person"},{displayValue:"Entity",value:"Entity"}],wN=[{displayValue:"Savings Product",value:"Savings Product"},{displayValue:"Fixed Deposit",value:"Fixed Deposit"},{displayValue:"Recurring Deposit",value:"Recurring Deposit"}];var PN=[{displayValue:"Boolean",value:"Boolean"},{displayValue:"Date",value:"Date"},{displayValue:"Date and Time",value:"Datetime"},{displayValue:"Decimal",value:"Decimal"},{displayValue:"Dropdown",value:"Dropdown"},{displayValue:"Number",value:"Number"},{displayValue:"String",value:"String"},{displayValue:"Text",value:"Text"}];function eVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Column Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tVe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function iVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Column Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nVe(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12),p(5,"translate"),r()),e&2&&(a(2),v(" ",m(3,3,"labels.inputs.Column Length")),a(2),g("placeholder",Le(m(5,5,"labels.inputs.Column Length"))))}function oVe(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function aVe(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",13),Se(5,oVe,2,2,"mat-option",5,Pe),r()()),e&2){let t=w();a(2),v(" ",m(3,1,"labels.inputs.Column Code")),a(3),we(t.data.columnCodes)}}var $p=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po),this.columnTypeData=PN}ngOnInit(){this.columnForm=this.formBuilder.group({name:[this.data?this.data.columnName:"",ce.required],type:[{value:this.data?this.data.columnDisplayType===""?"":this.getColumnType(this.data.columnDisplayType):"",disabled:this.data.type==="existing"},ce.required],length:[{value:this.data?+this.data.columnLength:"",disabled:this.getColumnType(this.data.columnDisplayType)!=="String"||this.data.type==="existing"},ce.required],mandatory:[{value:this.data.isColumnNullable,disabled:this.data.type==="existing"}],unique:[{value:this.data.isColumnUnique,disabled:this.data.isColumnNullable||this.data.type==="existing"}],indexed:[{value:this.data.isColumnIndexed,disabled:this.data.type==="existing"}],code:[{value:this.data?this.data.columnCode:"",disabled:this.getColumnType(this.data.columnDisplayType)!=="Dropdown"||this.data.type==="existing"},ce.required]}),this.onColumnTypeChanges()}getColumnType(t){switch(t){case void 0:return"";case"INTEGER":return"Number";case"CODELOOKUP":return"Dropdown";default:return t[0]+t.substr(1).toLowerCase()}}onColumnTypeChanges(){this.columnForm.get("type").valueChanges.subscribe(t=>{switch(t){case"String":{this.columnForm.get("length").enable(),this.columnForm.get("code").disable();break}case"Dropdown":{this.columnForm.get("code").enable(),this.columnForm.get("length").disable();break}default:this.columnForm.get("code").disable(),this.columnForm.get("length").disable()}})}submit(){this.dialogRef.close(this.columnForm.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-column-dialog"]],decls:44,vars:39,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name",3,"placeholder"],["required","","formControlName","type"],[3,"value"],["labelPosition","after","formControlName","mandatory"],["labelPosition","after","formControlName","unique"],["labelPosition","after","formControlName","indexed"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click","disabled"],["matInput","","required","","type","number","formControlName","length",3,"placeholder"],["required","","formControlName","code"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),r(),l(5,"mat-dialog-content")(6,"form",1)(7,"div",2)(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",3),p(13,"translate"),E(14,eVe,7,9,"mat-error"),r(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",4),Se(20,tVe,3,5,"mat-option",5,Pe),r(),E(22,iVe,7,9,"mat-error"),r(),E(23,nVe,6,7,"mat-form-field"),E(24,aVe,7,3,"mat-form-field"),l(25,"div")(26,"mat-checkbox",6),c(27),p(28,"translate"),r()(),l(29,"div")(30,"mat-checkbox",7),c(31),p(32,"translate"),r()(),l(33,"div")(34,"mat-checkbox",8),c(35),p(36,"translate"),r()()()()(),l(37,"mat-dialog-actions",9)(38,"button",10),c(39),p(40,"translate"),r(),l(41,"button",11),R("click",function(){return i.submit()}),c(42),p(43,"translate"),r()()),n&2&&(a(),le(" ",i.data.columnName?m(2,17,"labels.buttons.Edit"):m(3,19,"labels.buttons.Add")," ",m(4,21,"labels.inputs.Column"),` +`),a(5),g("formGroup",i.columnForm),a(4),h(m(11,23,"labels.inputs.Column Name")),a(2),g("placeholder",Le(m(13,25,"labels.inputs.Column Name"))),a(2),I(i.columnForm.controls.name.hasError("required")?14:-1),a(3),h(m(18,27,"labels.inputs.Column Type")),a(3),we(i.columnTypeData),a(2),I(i.columnForm.controls.type.hasError("required")?22:-1),a(),I(i.columnForm.value.type==="String"?23:-1),a(),I(i.columnForm.value.type==="Dropdown"?24:-1),a(3),h(m(28,29,"labels.text.Mandatory")),a(4),h(m(32,31,"labels.inputs.Unique")),a(4),h(m(36,33,"labels.inputs.Indexed")),a(4),h(m(40,35,"labels.buttons.Cancel")),a(2),g("disabled",!i.columnForm.valid||i.columnForm.pristine),a(),v(" ",m(43,37,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,Wn,ho,Nn,Un,he,ki],encapsulation:2})}}return e})();var rVe=["dataTableFormRef"],lVe=["templateDataTableFormRef"],sVe=()=>[10,25,50,100],cVe=()=>["../"];function pVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Data Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mVe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function dVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Application Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uVe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function fVe(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,uVe,3,5,"mat-option",9,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Entity SubType")),a(3),we(t.entitySubTypeData)}}function hVe(e,o){if(e&1&&(l(0,"mat-option",9),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function gVe(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",36),Se(5,hVe,3,5,"mat-option",9,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Savings SubType")),a(3),we(t.savingsSubTypeData)}}function _Ve(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function CVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Primary Key")))}function vVe(e,o){if(e&1&&(l(0,"td",38),c(1),E(2,CVe,2,4,"fa-icon",39),r()),e&2){let t=o.$implicit;a(),v(" ",t.columnName," "),a(),I(t.isColumnPrimaryKey?2:-1)}}function xVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function bVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}function yVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Length")))}function SVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function wVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code")))}function PVe(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function TVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.Mandatory")))}function MVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function DVe(e,o){e&1&&(b(0,"fa-icon",41),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function EVe(e,o){if(e&1&&(l(0,"td",40),E(1,MVe,2,4,"fa-icon",39),E(2,DVe,2,4,"fa-icon",41),r()),e&2){let t=o.$implicit;a(),I(t.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function IVe(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Unique")," "))}function OVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function AVe(e,o){e&1&&(b(0,"fa-icon",43),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function FVe(e,o){if(e&1&&(l(0,"td",38),E(1,OVe,2,4,"fa-icon",39),E(2,AVe,2,4,"fa-icon",43),r()),e&2){let t=o.$implicit;a(),I(t.isColumnUnique?1:-1),a(),I(t.isColumnUnique?-1:2)}}function kVe(e,o){e&1&&(l(0,"th",42),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Indexed")," "))}function BVe(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function RVe(e,o){e&1&&(b(0,"fa-icon",41),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function NVe(e,o){if(e&1&&(l(0,"td",38),E(1,BVe,2,4,"fa-icon",39),E(2,RVe,2,4,"fa-icon",41),r()),e&2){let t=o.$implicit;a(),I(t.isColumnIndexed?1:-1),a(),I(t.isColumnIndexed?-1:2)}}function LVe(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function VVe(e,o){if(e&1){let t=Y();l(0,"td",44)(1,"button",45),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editColumn(i))}),b(2,"fa-icon",46),r(),l(3,"button",47),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteColumn(i))}),b(4,"fa-icon",48),r()()}}function qVe(e,o){e&1&&b(0,"tr",49)}function zVe(e,o){e&1&&b(0,"tr",50)}function HVe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",51),c(4),p(5,"translate"),l(6,"a",52),c(7),p(8,"translate"),r()(),l(9,"div",53)(10,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.buttons.Create Datatable")),a(3),v(" ",m(5,9,"labels.text.Filling Details")," "),a(3),h(m(8,11,"labels.inputs.Manage Datatables")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create Datatable")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var _x=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.translateService=T(yi),this.appTableData=hx,this.entitySubTypeData=gx,this.savingsSubTypeData=wN,this.columnData=[],this.dataForDialog={columnName:void 0,columnDisplayType:void 0,isColumnNullable:void 0,columnLength:void 0,columnCode:void 0,columnCodes:void 0,type:void 0,isColumnUnique:void 0,isColumnIndexed:void 0},this.displayedColumns=["name","type","length","code","mandatory","unique","indexed","actions"],this.route.data.subscribe(t=>{this.dataForDialog.columnCodes=t.columnCodes})}ngOnInit(){this.createDataTableForm(),this.setColumns(),this.dataTableForm.controls.apptableName.valueChanges.subscribe(t=>{this.showEntitySubType=t==="m_client",this.showSavingsSubType=t==="m_savings_product"})}setColumns(){this.dataSource=new Wt(this.columnData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createDataTableForm(){this.dataTableForm=this.formBuilder.group({datatableName:["",ce.required],apptableName:["",ce.required],multiRow:[!1],entitySubType:[""]})}addColumn(){this.dataForDialog.columnName=void 0,this.dataForDialog.columnDisplayType=void 0,this.dataForDialog.isColumnNullable=void 0,this.dataForDialog.columnLength=void 0,this.dataForDialog.columnCode=void 0,this.dataForDialog.isColumnUnique=void 0,this.dataForDialog.isColumnIndexed=void 0,this.dataForDialog.type="new",this.dialog.open($p,{data:this.dataForDialog,height:"450px",width:"400px"}).afterClosed().subscribe(n=>{n!==""&&(this.columnData.push({columnName:n.name,columnDisplayType:n.type,isColumnNullable:!n.mandatory,isColumnUnique:n.unique,isColumnIndexed:n.indexed,columnLength:n.length,columnCode:n.code,type:"new"}),this.dataSource.connect().next(this.columnData))})}editColumn(t){this.dataForDialog.columnName=t.columnName,this.dataForDialog.columnDisplayType=t.columnDisplayType,this.dataForDialog.isColumnNullable=!t.isColumnNullable,this.dataForDialog.isColumnUnique=t.isColumnUnique,this.dataForDialog.isColumnIndexed=t.isColumnIndexed,this.dataForDialog.columnLength=t.columnLength,this.dataForDialog.columnCode=t.columnCode,this.dataForDialog.type=t.type,this.dialog.open($p,{data:this.dataForDialog,height:"450px",width:"400px"}).afterClosed().subscribe(i=>{i!==""&&(this.columnData[this.columnData.findIndex(s=>s.columnName===t.name)]={columnName:i.name,columnDisplayType:i.type,isColumnNullable:!i.mandatory,isColumnUnique:i.unique,isColumnIndexed:i.indexed,columnLength:i.length,columnCode:i.code,type:"existing"},this.dataSource.connect().next(this.columnData))})}deleteColumn(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Column")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.columnData.splice(this.columnData.indexOf(t),1),this.dataSource.connect().next(this.columnData))})}submit(){let t=[];this.columnData.forEach(i=>{t.push({name:i.columnName,type:i.columnDisplayType,code:i.columnCode,length:i.columnLength,mandatory:!i.isColumnNullable,unique:i.isColumnUnique,indexed:i.isColumnIndexed})}),this.dataTableForm.value.columns=t;let n=this.dataTableForm.value;(this.dataTableForm.value.entitySubType==null||this.dataTableForm.value.entitySubType==="")&&delete n.entitySubType,this.systemService.createDataTable(n).subscribe(i=>{this.configurationWizardService.showDatatablesForm===!0?(this.configurationWizardService.showDatatablesForm=!1,this.openDialog()):this.router.navigate(["../",i.resourceIdentifier],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDatatablesForm===!0&&setTimeout(()=>{this.showPopover(this.templateDataTableFormRef,this.dataTableFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showDatatablesForm=!1,this.configurationWizardService.showSystemCodes=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showDatatablesForm=!1,this.configurationWizardService.showDatatablesList=!0,this.router.navigate(["/system/data-tables"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"data table"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showDatatablesForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showDatatablesForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/data-tables/create"])):n.step===3&&(this.configurationWizardService.showDatatablesForm=!1,this.configurationWizardService.showSystemCodes=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-data-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(rVe,5),Ee(lVe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.dataTableFormRef=s.first),Te(s=Me())&&(i.templateDataTableFormRef=s.first)}},decls:74,vars:37,consts:[["dataTableFormRef",""],["templateDataTableFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-40"],["matInput","","required","","formControlName","datatableName"],[1,"flex-fill","flex-20"],["required","","formControlName","apptableName"],[3,"value"],[1,"multi-row-wrapper","flex-14"],["labelPosition","before","formControlName","multiRow",1,"multi-row"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","length"],["matColumnDef","code"],["matColumnDef","mandatory"],["mat-cell","","class","left",4,"matCellDef"],["matColumnDef","unique"],["mat-header-cell","","mat-sort-header","","class","center",4,"matHeaderCellDef"],["matColumnDef","indexed"],["matColumnDef","actions"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["formControlName","entitySubType"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"column-mandatory",3,"matTooltip"],["mat-cell","",1,"left"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-column-mandatory",3,"matTooltip"],["mat-header-cell","","mat-sort-header","",1,"center"],["icon","times-circle","size","lg","unique","right",1,"not-column-mandatory",3,"matTooltip"],["mat-cell","",1,"gap-15percent"],["type","button","color","primary","mat-icon-button","",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/52592760/Manage+Data+Tables","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3,0),R("ngSubmit",function(){return V(s),q(i.submit())}),l(4,"mat-card-content")(5,"div",4)(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",6),E(11,pVe,7,9,"mat-error"),r(),l(12,"mat-form-field",7)(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",8),Se(17,mVe,3,5,"mat-option",9,Pe),r(),E(19,dVe,7,9,"mat-error"),r(),E(20,fVe,7,3,"mat-form-field",7),E(21,gVe,7,3,"mat-form-field",7),l(22,"div",10)(23,"mat-checkbox",11),c(24),p(25,"translate"),r()()(),b(26,"br"),l(27,"div",12)(28,"p",13),c(29),p(30,"translate"),r(),l(31,"button",14),R("click",function(){return V(s),q(i.addColumn())}),b(32,"fa-icon",15),c(33),p(34,"translate"),p(35,"translate"),r()(),b(36,"br"),l(37,"table",16),X(38,17),F(39,_Ve,3,3,"th",18)(40,vVe,3,2,"td",19),Z(),X(41,20),F(42,xVe,3,3,"th",18)(43,bVe,2,1,"td",19),Z(),X(44,21),F(45,yVe,3,3,"th",18)(46,SVe,2,1,"td",19),Z(),X(47,22),F(48,wVe,3,3,"th",18)(49,PVe,2,1,"td",19),Z(),X(50,23),F(51,TVe,3,3,"th",18)(52,EVe,3,2,"td",24),Z(),X(53,25),F(54,IVe,3,3,"th",26)(55,FVe,3,2,"td",19),Z(),X(56,27),F(57,kVe,3,3,"th",26)(58,NVe,3,2,"td",19),Z(),X(59,28),F(60,LVe,3,3,"th",18)(61,VVe,5,0,"td",29),Z(),F(62,qVe,1,0,"tr",30)(63,zVe,1,0,"tr",31),r(),b(64,"mat-paginator",32),r(),l(65,"mat-card-actions",33)(66,"button",34),c(67),p(68,"translate"),r(),l(69,"button",35),c(70),p(71,"translate"),r()()()()(),F(72,HVe,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.dataTableForm),a(6),h(m(9,19,"labels.inputs.Data Table Name")),a(3),I(i.dataTableForm.controls.datatableName.hasError("required")?11:-1),a(3),h(m(15,21,"labels.inputs.Entity Type")),a(3),we(i.appTableData),a(2),I(i.dataTableForm.controls.apptableName.hasError("required")?19:-1),a(),I(i.showEntitySubType?20:-1),a(),I(i.showSavingsSubType?21:-1),a(3),h(m(25,23,"labels.inputs.Multi Row")),a(5),h(m(30,25,"labels.inputs.Columns")),a(4),le(" ",m(34,27,"labels.buttons.Add")," ",m(35,29,"labels.inputs.Columns")," "),a(4),g("dataSource",i.dataSource),a(25),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(35,sVe)),a(2),g("routerLink",oe(36,cVe)),a(),v(" ",m(68,31,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.dataTableForm.valid||i.columnData.length===0),a(),v(" ",m(71,33,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he,ki],styles:["@media (width >= 992px){.multi-row-wrapper[_ngcontent-%COMP%]{position:relative}.multi-row-wrapper[_ngcontent-%COMP%] .multi-row[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var GVe=()=>[10,25],jVe=()=>["../"];function $Ve(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function UVe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Application Table Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function WVe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",Ft(2,2,t.displayValue,"inputs")," ")}}function QVe(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",30),Se(5,WVe,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Entity SubType")),a(3),we(t.entitySubTypeData)}}function YVe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Name")," "))}function JVe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnName)}}function KVe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Type")," "))}function XVe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}function ZVe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Length")," "))}function eqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function tqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Code")," "))}function iqe(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function nqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function oqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function aqe(e,o){e&1&&(b(0,"fa-icon",34),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function rqe(e,o){if(e&1&&(l(0,"td",32),E(1,oqe,2,4,"fa-icon",33),E(2,aqe,2,4,"fa-icon",34),r()),e&2){let t=o.$implicit;a(),I(t.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function lqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Unique")," "))}function sqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function cqe(e,o){e&1&&(b(0,"fa-icon",35),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function pqe(e,o){if(e&1&&(l(0,"td",32),E(1,sqe,2,4,"fa-icon",33),E(2,cqe,2,4,"fa-icon",35),r()),e&2){let t=o.$implicit;a(),I(t.isColumnUnique?1:-1),a(),I(t.isColumnUnique?-1:2)}}function mqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Indexed")," "))}function dqe(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function uqe(e,o){e&1&&(b(0,"fa-icon",34),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function fqe(e,o){if(e&1&&(l(0,"td",32),E(1,dqe,2,4,"fa-icon",33),E(2,uqe,2,4,"fa-icon",34),r()),e&2){let t=o.$implicit;a(),I(t.isColumnIndexed?1:-1),a(),I(t.isColumnIndexed?-1:2)}}function hqe(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Actions")," "))}function gqe(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.editColumn(i))}),b(1,"fa-icon",40),r()}}function _qe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deleteColumn(i))}),b(1,"fa-icon",42),r()}}function Cqe(e,o){if(e&1&&(l(0,"td",36),E(1,gqe,2,0,"button",37),E(2,_qe,2,0,"button",38),r()),e&2){let t=o.$implicit;a(),I(t.system?-1:1),a(),I(t.system?-1:2)}}function vqe(e,o){e&1&&b(0,"tr",43)}function xqe(e,o){e&1&&b(0,"tr",44)}function bqe(e,o){if(e&1&&(l(0,"button",45),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.isFormEdited),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Cx=(()=>{class e{constructor(){this.systemService=T(ii),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.entitySubTypeData=gx,this.appTableData=hx,this.isFormEdited=!1,this.dataTableChangesData={apptableName:"",changeColumns:[],addColumns:[],dropColumns:[],entitySubType:""},this.dataForDialog={columnName:void 0,columnDisplayType:void 0,isColumnNullable:void 0,columnLength:void 0,columnCode:void 0,columnCodes:void 0,type:void 0,isColumnUnique:void 0,isColumnIndexed:void 0},this.displayedColumns=["name","type","length","code","mandatory","unique","indexed","actions"],this.route.data.subscribe(t=>{this.dataTableData=t.dataTable;let n=this.getRelationshipColumnName(this.dataTableData.applicationTableName);this.dataTableData.columnHeaderData.forEach(i=>{i.system=["id","created_at","updated_at"].includes(i.columnName)||i.columnName===n}),this.columnData=this.dataTableData.columnHeaderData,this.dataForDialog.columnCodes=t.columnCodes})}getRelationshipColumnName(t){return{m_client:"client_id",m_group:"group_id",m_center:"center_id",m_office:"office_id",m_loan:"loan_id",m_savings_account:"savings_account_id",m_savings_account_transaction:"savings_transaction_id",m_product_loan:"product_loan_id",m_savings_product:"savings_product_id",m_share_product:"share_product_id"}[t]||""}ngOnInit(){this.initData(),this.createDataTableForm(),this.setColumns(),this.dataTableForm.controls.apptableName.valueChanges.subscribe(t=>{this.showEntitySubType=t==="m_client"})}setColumns(){this.dataSource=new Wt(this.columnData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}initData(){this.columnData.length>0&&this.columnData[0].columnName==="id"&&this.columnData.shift(),this.dataTableChangesData.apptableName=this.dataTableData.applicationTableName,this.dataTableChangesData.entitySubType=this.dataTableData.entitySubType;for(let t=0;t{if(n!==""){this.isFormEdited=!0;let i={columnName:n.name,columnDisplayType:n.type,isColumnNullable:!n.mandatory,isColumnUnique:n.unique,isColumnIndexed:n.indexed,columnLength:n.length,columnCode:n.code,type:"new"},s=!1;this.columnData.forEach(d=>{(i.columnName===d.columnName||i.columnName===d.columnName&&i.columnDisplayType===d.columnDisplayType&&i.isColumnNullable===d.isColumnNullable)&&(s=!0)}),s||(this.dataTableChangesData.addColumns.push({name:n.name,type:n.type,mandatory:n.mandatory,unique:n.unique,indexed:n.indexed,length:n.length,code:n.code}),this.columnData.push(i),this.dataSource.connect().next(this.columnData))}})}editColumn(t){this.dataForDialog.columnName=t.columnName,this.dataForDialog.columnDisplayType=t.columnDisplayType,this.dataForDialog.isColumnNullable=!t.isColumnNullable,this.dataForDialog.isColumnUnique=t.isColumnUnique,this.dataForDialog.isColumnIndexed=t.isColumnIndexed,this.dataForDialog.columnLength=t.columnLength,this.dataForDialog.columnCode=t.columnCode,this.dataForDialog.type=t.type,this.dialog.open($p,{data:this.dataForDialog,height:"450px",width:"400px"}).afterClosed().subscribe(i=>{if(i!==""){if(this.isFormEdited=!0,t.type==="new")this.dataTableChangesData.addColumns[this.dataTableChangesData.addColumns.findIndex(s=>s.name===t.columnName&&s.type===t.columnDisplayType&&s.mandatory===t.isColumnNullable)]={name:i.name,type:i.type,code:i.code,mandatory:i.mandatory,length:i.length},this.columnData[this.columnData.indexOf(t)]={columnName:i.name,columnDisplayType:i.type,isColumnNullable:!i.mandatory,isColumnUnique:i.unique,isColumnIndexed:i.indexed,columnLength:i.length,columnCode:i.code,type:"new"};else if(t.type==="existing"){this.columnData[this.columnData.indexOf(t)]={columnName:i.name,columnDisplayType:t.columnDisplayType,isColumnNullable:t.isColumnNullable,isColumnUnique:t.unique,isColumnIndexed:t.indexed,columnLength:t.columnLength,columnCode:t.columnCode,type:"existing"};let s=this.dataTableChangesData.changeColumns.findIndex(d=>d.newName===t.columnName);s===-1?this.dataTableChangesData.changeColumns.push({name:t.columnName,newName:i.name,code:t.columnCode,newCode:i.code,mandatory:i.mandatory,length:i.length}):this.dataTableChangesData.changeColumns[s]={name:t.columnName,newName:i.name,code:t.columnCode,newCode:i.code,mandatory:i.mandatory,length:i.length}}this.dataSource.connect().next(this.columnData)}})}deleteColumn(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Column")+" "+t.columnName}}).afterClosed().subscribe(i=>{i.delete&&(this.isFormEdited=!0,this.columnData.splice(this.columnData.indexOf(t),1),this.dataSource.connect().next(this.columnData),t.type==="existing"?this.dataTableChangesData.dropColumns.push({name:t.columnName}):t.type==="new"&&this.dataTableChangesData.addColumns.splice(this.dataTableChangesData.addColumns.findIndex(s=>s.name===t.columnName&&s.type===t.columnDisplayType&&s.mandatory===t.isColumnNullable),1))})}getColumnType(t){switch(t){case"INTEGER":return"Number";case"CODELOOKUP":return"Dropdown";default:return t[0]+t.substr(1).toLowerCase()}}submit(){(!this.dataTableChangesData.addColumns||this.dataTableChangesData.addColumns.length===0)&&(this.dataTableChangesData.addColumns=void 0),(!this.dataTableChangesData.changeColumns||this.dataTableChangesData.changeColumns.length===0)&&(this.dataTableChangesData.changeColumns=void 0),(!this.dataTableChangesData.dropColumns||this.dataTableChangesData.dropColumns.length===0)&&(this.dataTableChangesData.dropColumns=void 0),this.systemService.updateDataTable(this.dataTableChangesData,this.dataTableData.registeredTableName).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-data-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:63,vars:29,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-40"],["matInput","","required","","formControlName","datatableName"],[1,"flex-fill","flex-20"],["required","","formControlName","apptableName"],[3,"value"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","","class","center",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","length"],["matColumnDef","code"],["matColumnDef","mandatory"],["matColumnDef","unique"],["matColumnDef","indexed"],["matColumnDef","actions"],["mat-cell","","class","center gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","entitySubType"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"column-mandatory",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-column-mandatory",3,"matTooltip"],["icon","times-circle","size","lg","unique","right",1,"not-column-mandatory",3,"matTooltip"],["mat-cell","",1,"center","gap-15percent"],["type","button","color","primary","mat-icon-button",""],["type","button","color","warn","mat-icon-button",""],["type","button","color","primary","mat-icon-button","",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),r(),l(10,"mat-form-field",5)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"mat-select",6),Se(15,$Ve,3,5,"mat-option",7,Pe),r(),E(17,UVe,7,9,"mat-error"),r(),E(18,QVe,7,3,"mat-form-field",5),r(),b(19,"br"),l(20,"div",8)(21,"p",9),c(22),p(23,"translate"),r(),l(24,"button",10),R("click",function(){return i.addColumn()}),b(25,"fa-icon",11),c(26),p(27,"translate"),p(28,"translate"),r()(),b(29,"br"),l(30,"table",12),X(31,13),F(32,YVe,3,3,"th",14)(33,JVe,2,1,"td",15),Z(),X(34,16),F(35,KVe,3,3,"th",14)(36,XVe,2,1,"td",15),Z(),X(37,17),F(38,ZVe,3,3,"th",14)(39,eqe,2,1,"td",15),Z(),X(40,18),F(41,tqe,3,3,"th",14)(42,iqe,2,1,"td",15),Z(),X(43,19),F(44,nqe,3,3,"th",14)(45,rqe,3,2,"td",15),Z(),X(46,20),F(47,lqe,3,3,"th",14)(48,pqe,3,2,"td",15),Z(),X(49,21),F(50,mqe,3,3,"th",14)(51,fqe,3,2,"td",15),Z(),X(52,22),F(53,hqe,3,3,"th",14)(54,Cqe,3,2,"td",23),Z(),F(55,vqe,1,0,"tr",24)(56,xqe,1,0,"tr",25),r(),b(57,"mat-paginator",26),r(),l(58,"mat-card-actions",27)(59,"button",28),c(60),p(61,"translate"),r(),F(62,bqe,3,4,"button",29),r()()()()),n&2&&(a(2),g("formGroup",i.dataTableForm),a(5),h(m(8,15,"labels.inputs.Data Table Name")),a(5),h(m(13,17,"labels.inputs.Application Table Name")),a(3),we(i.appTableData),a(2),I(i.dataTableForm.controls.apptableName.hasError("required")?17:-1),a(),I(i.showEntitySubType?18:-1),a(4),h(m(23,19,"labels.inputs.Columns")),a(4),le(" ",m(27,21,"labels.buttons.Add")," ",m(28,23,"labels.inputs.Columns")," "),a(4),g("dataSource",i.dataSource),a(25),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(27,GVe)),a(2),g("routerLink",oe(28,jVe)),a(),v(" ",m(61,25,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_DATATABLE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var yqe=["createDatatableRef"],Sqe=["templateCreateDatatableRef"],wqe=["datatablesList"],Pqe=["templateDatatablesList"],Tqe=()=>[10,25,50,100],Mqe=()=>["create"],Dqe=e=>[e];function Eqe(e,o){e&1&&(l(0,"button",23),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Mqe)),a(2),v(" ",m(3,2,"labels.buttons.Create Data Table")," "))}function Iqe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Data Table Name")))}function Oqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.registeredTableName)}}function Aqe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Associated With")))}function Fqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.applicationTableName)}}function kqe(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Sub Type")))}function Bqe(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entitySubType)}}function Rqe(e,o){e&1&&b(0,"tr",27)}function Nqe(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,Dqe,t.registeredTableName))}}function Lqe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Data Table")),a(3),h(m(5,7,"labels.text.Launch a page that create new data table")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function Vqe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(32);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter datatables")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function qqe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of all currently available data tables")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var vx=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["registeredTableName","applicationTableName","entitySubType"],this.route.data.subscribe(t=>{this.dataTableData=t.dataTables})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setDataTables()}setDataTables(){this.dataSource=new Wt(this.dataTableData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDatatablesPage===!0&&setTimeout(()=>{this.showPopover(this.templateCreateDatatableRef,this.createDatatableRef.nativeElement,"bottom",!0)}),this.configurationWizardService.showDatatablesList===!0&&setTimeout(()=>{this.showPopover(this.templateDatatablesList,this.datatablesList.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showDatatablesPage=!1,this.configurationWizardService.showDatatablesList=!1,this.configurationWizardService.showDatatablesForm=!0,this.router.navigate(["/system/data-tables/create"])}previousStep(){this.configurationWizardService.showDatatablesPage=!1,this.configurationWizardService.showDatatablesList=!1,this.configurationWizardService.showDatatables=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-data-tables"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(yqe,5),Ee(Sqe,5),Ee(wqe,5),Ee(Pqe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.createDatatableRef=s.first),Te(s=Me())&&(i.templateCreateDatatableRef=s.first),Te(s=Me())&&(i.datatablesList=s.first),Te(s=Me())&&(i.templateDatatablesList=s.first)}},decls:33,vars:9,consts:[["createDatatableRef",""],["filter",""],["datatablesList",""],["templateCreateDatatableRef",""],["templateFilter",""],["templateDatatablesList",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","registeredTableName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","applicationTableName"],["matColumnDef","entitySubType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,Eqe,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,Iqe,3,3,"th",16)(17,Oqe,2,1,"td",17),Z(),X(18,18),F(19,Aqe,3,3,"th",16)(20,Fqe,2,1,"td",17),Z(),X(21,19),F(22,kqe,3,3,"th",16)(23,Bqe,2,1,"td",17),Z(),F(24,Rqe,1,0,"tr",20)(25,Nqe,1,3,"tr",21),r(),b(26,"mat-paginator",22),r()(),F(27,Lqe,16,15,"ng-template",null,3,ti)(29,Vqe,13,12,"ng-template",null,4,ti)(31,qqe,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_DATATABLE"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Tqe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var zqe=()=>[10,25,50,100],Hqe=()=>["edit"];function Gqe(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Hqe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function jqe(e,o){if(e&1){let t=Y();l(0,"button",22),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",23),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function $qe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Field Name")," "))}function Uqe(e,o){if(e&1&&(l(0,"span",26),c(1),r()),e&2){let t=w().$implicit,n=w();a(),v("(",n.datatables.getCodeName(t.columnName),")")}}function Wqe(e,o){if(e&1&&(l(0,"td",25),c(1),E(2,Uqe,2,1,"span",26),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",n.getFieldDisplayName(t.columnName)," "),a(),I(n.datatables.getCodeName(t.columnName)?2:-1)}}function Qqe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Yqe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnDisplayType)}}function Jqe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Length")))}function Kqe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnLength)}}function Xqe(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code")))}function Zqe(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.columnCode)}}function eze(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function tze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function ize(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function nze(e,o){if(e&1&&(l(0,"td",25),E(1,tze,2,4,"fa-icon",27),E(2,ize,2,4,"fa-icon",28),r()),e&2){let t=o.$implicit;a(),I(t.isColumnNullable?-1:1),a(),I(t.isColumnNullable?2:-1)}}function oze(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unique")))}function aze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function rze(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function lze(e,o){if(e&1&&(l(0,"td",25),E(1,aze,2,4,"fa-icon",27),E(2,rze,2,4,"fa-icon",28),r()),e&2){let t=o.$implicit;a(),I(t.isColumnUnique?1:-1),a(),I(t.isColumnUnique?-1:2)}}function sze(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Indexed")," "))}function cze(e,o){e&1&&(b(0,"fa-icon",27),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function pze(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function mze(e,o){if(e&1&&(l(0,"td",25),E(1,cze,2,4,"fa-icon",27),E(2,pze,2,4,"fa-icon",28),r()),e&2){let t=o.$implicit;a(),I(t.isColumnIndexed?1:-1),a(),I(t.isColumnIndexed?-1:2)}}function dze(e,o){e&1&&b(0,"tr",29)}function uze(e,o){e&1&&b(0,"tr",30)}var xx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.datatables=T(Qg),this.displayedColumns=["columnName","columnDisplayType","columnLength","columnCode","isColumnNullable","isColumnUnique","isColumnIndexed"],this.route.data.subscribe(t=>{this.dataTableData=t.dataTable,this.columnsData=this.dataTableData.columnHeaderData})}ngOnInit(){this.setColumnsTable()}getFieldDisplayName(t){return this.datatables.toDisplayLabel(t)}setColumnsTable(){this.columnsData.shift(),this.dataSource=new Wt(this.columnsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Data Table")+" "+this.dataTableData.registeredTableName}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteDataTable(this.dataTableData.registeredTableName).subscribe(()=>{this.router.navigate(["/system/data-tables"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-data-table"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:38,vars:11,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container","m-b-15","layout-align-start"],[1,"layout-row-wrap","responsive-column","gap-12px"],[1,"mat-body-strong"],[1,"container","mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","columnName"],["mat-header-cell","","mat-sort-header","","class","center",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","columnDisplayType"],["matColumnDef","columnLength"],["matColumnDef","columnCode"],["matColumnDef","isColumnNullable"],["matColumnDef","isColumnUnique"],["matColumnDef","isColumnIndexed"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell",""],[1,"code-name"],["icon","check-circle","size","lg","matTooltipPosition","right",1,"column-mandatory",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-column-mandatory",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Gqe,4,5,"button",1)(2,jqe,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div"),c(11),r()()()()(),l(12,"div",6)(13,"table",7),X(14,8),F(15,$qe,3,3,"th",9)(16,Wqe,3,2,"td",10),Z(),X(17,11),F(18,Qqe,3,3,"th",9)(19,Yqe,2,1,"td",10),Z(),X(20,12),F(21,Jqe,3,3,"th",9)(22,Kqe,2,1,"td",10),Z(),X(23,13),F(24,Xqe,3,3,"th",9)(25,Zqe,2,1,"td",10),Z(),X(26,14),F(27,eze,3,3,"th",9)(28,nze,3,2,"td",10),Z(),X(29,15),F(30,oze,3,3,"th",9)(31,lze,3,2,"td",10),Z(),X(32,16),F(33,sze,3,3,"th",9)(34,mze,3,2,"td",10),Z(),F(35,dze,1,0,"tr",17)(36,uze,1,0,"tr",18),r(),b(37,"mat-paginator",19),r()),n&2&&(a(),g("mifosxHasPermission","UPDATE_DATATABLE"),a(),g("mifosxHasPermission","DELETE_DATATABLE"),a(6),v(" ",m(9,8,"labels.inputs.Associated With")," "),a(3),v(" ",i.dataTableData.applicationTableName," "),a(2),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(10,zqe)))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}.code-name[_ngcontent-%COMP%]{opacity:.6;font-size:.9em;margin-left:4px}"]})}}return e})();function fze(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function hze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Grouping")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gze(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",t.name," ")}}function _ze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Entity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Cze(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function vze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Action")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var tu=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po),this.entityData=new Array,this.actionData=new Array}ngOnInit(){this.eventForm=this.formBuilder.group({grouping:["",ce.required],entity:["",ce.required],action:["",ce.required]}),this.setGroupingListener(),this.setEntityListener()}setGroupingListener(){this.eventForm.get("grouping").valueChanges.subscribe(t=>{this.entityData=this.data.groupings.find(n=>n.name===t).entities})}setEntityListener(){this.eventForm.get("entity").valueChanges.subscribe(t=>{this.actionData=this.entityData.find(n=>n.name===t).actions})}submit(){this.dialogRef.close(this.eventForm.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-event-dialog"]],decls:37,vars:23,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"layout-column"],["required","","formControlName","grouping"],[3,"value"],["required","","formControlName","entity"],["required","","formControlName","action"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"form",1)(5,"div",2)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",3),Se(11,fze,3,5,"mat-option",4,Pe),r(),E(13,hze,7,9,"mat-error"),r(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",5),Se(19,gze,2,2,"mat-option",4,Pe),r(),E(21,_ze,7,9,"mat-error"),r(),l(22,"mat-form-field")(23,"mat-label"),c(24),p(25,"translate"),r(),l(26,"mat-select",6),Se(27,Cze,2,2,"mat-option",4,Pe),r(),E(29,vze,7,9,"mat-error"),r()()()(),l(30,"mat-dialog-actions",7)(31,"button",8),c(32),p(33,"translate"),r(),l(34,"button",9),R("click",function(){return i.submit()}),c(35),p(36,"translate"),r()()),n&2&&(a(),h(m(2,11,"labels.buttons.Add Event")),a(3),g("formGroup",i.eventForm),a(4),h(m(9,13,"labels.inputs.Select Grouping")),a(3),we(i.data.groupings),a(2),I(i.eventForm.controls.grouping.hasError("required")?13:-1),a(3),h(m(17,15,"labels.inputs.Select Entity")),a(3),we(i.entityData),a(2),I(i.eventForm.controls.entity.hasError("required")?21:-1),a(3),h(m(25,17,"labels.inputs.Select Action")),a(3),we(i.actionData),a(2),I(i.eventForm.controls.action.hasError("required")?29:-1),a(3),h(m(33,19,"labels.buttons.Cancel")),a(2),g("disabled",!i.eventForm.valid||i.eventForm.pristine),a(),v(" ",m(36,21,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Fe,Be,ut,gt,ft,xe,Wn,ho,Nn,Un,he,ki],encapsulation:2})}}return e})();var xze=()=>["../"];function bze(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",Ft(2,2,t.name,"text")," ")}}function yze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Hook Template")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Sze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Display Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Content Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pze(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",29)(5,"mat-option",6),c(6),p(7,"translate"),r(),l(8,"mat-option",6),c(9),p(10,"translate"),r()(),E(11,wze,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,6,"labels.inputs.Content Type")),a(3),g("value","json"),a(),v(" ",m(7,8,"labels.inputs.json")," "),a(2),g("value","form"),a(),v(" ",m(10,10,"labels.inputs.form")," "),a(2),I(t.hookForm.controls.contentType.hasError("required")?11:-1)}}function Tze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mze(e,o){if(e&1&&(l(0,"mat-form-field",8)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",30,0),l(6,"mat-hint",31),c(7),r(),E(8,Tze,7,9,"mat-error"),r()),e&2){let t=ve(5),n=w();a(2),h(m(3,3,"labels.inputs.Phone Number")),a(5),v("",(t.value==null?null:t.value.length)||0,"/10"),a(),I(n.hookForm.controls.phoneNumber.hasError("required")?8:-1)}}function Dze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Eze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ize(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Account ID")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Oze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Token")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Aze(e,o){if(e&1&&(l(0,"div",3)(1,"mat-form-field",32)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",33),E(6,Eze,7,9,"mat-error"),r(),l(7,"mat-form-field",32)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",34),E(12,Ize,7,9,"mat-error"),r(),l(13,"mat-form-field",32)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",35),E(18,Oze,7,9,"mat-error"),r()()),e&2){let t=w();a(3),h(m(4,6,"labels.inputs.SMS Provider")),a(3),I(t.hookForm.controls.smsProvider.hasError("required")?6:-1),a(3),h(m(10,8,"labels.inputs.SMS Provider Account ID")),a(3),I(t.hookForm.controls.smsProviderAccountId.hasError("required")?12:-1),a(3),h(m(16,10,"labels.inputs.SMS Provider Token")),a(3),I(t.hookForm.controls.smsProviderToken.hasError("required")?18:-1)}}function Fze(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Name")))}function kze(e,o){if(e&1&&(l(0,"td",37),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function Bze(e,o){e&1&&(l(0,"th",36),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Action")," ",m(3,4,"labels.inputs.Name")," "))}function Rze(e,o){if(e&1&&(l(0,"td",37),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function Nze(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Lze(e,o){if(e&1){let t=Y();l(0,"td",39)(1,"button",40),R("click",function(){let i=V(t).index,s=w();return q(s.deleteEvent(i))}),b(2,"fa-icon",41),r()()}}function Vze(e,o){e&1&&b(0,"tr",42)}function qze(e,o){e&1&&b(0,"tr",43)}function zze(e,o){if(e&1&&(l(0,"button",44),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.hookForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var bx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["entityName","actionName","actions"],this.eventsData=[],this.route.data.subscribe(t=>{this.hooksTemplateData=t.hooksTemplate})}ngOnInit(){this.createHookForm(),this.hookForm.get("name").valueChanges.subscribe(t=>{t==="Web"?(this.hookForm.get("contentType").enable(),this.hookForm.get("phoneNumber").disable(),this.hookForm.get("smsProvider").disable(),this.hookForm.get("smsProviderAccountId").disable(),this.hookForm.get("smsProviderToken").disable()):(this.hookForm.get("contentType").disable(),this.hookForm.get("phoneNumber").enable(),this.hookForm.get("smsProvider").enable(),this.hookForm.get("smsProviderAccountId").enable(),this.hookForm.get("smsProviderToken").enable())}),this.setEvents()}setEvents(){this.dataSource=new Wt(this.eventsData),this.dataSource.sort=this.sort}createHookForm(){this.hookForm=this.formBuilder.group({name:["Web",ce.required],displayName:["",ce.required],isActive:[""],phoneNumber:[{value:"",disabled:!0},ce.required],smsProvider:[{value:"",disabled:!0},ce.required],smsProviderAccountId:[{value:"",disabled:!0},ce.required],smsProviderToken:[{value:"",disabled:!0},ce.required],contentType:["",ce.required],payloadUrl:["",ce.required]})}addEvent(){this.dialog.open(tu,{data:this.hooksTemplateData}).afterClosed().subscribe(n=>{n&&(this.eventsData.push({entityName:n.entity,actionName:n.action}),this.dataSource.connect().next(this.eventsData))})}deleteEvent(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.event with entity name of")+" "+this.eventsData[t].entityName}}).afterClosed().subscribe(i=>{i.delete&&(this.eventsData.splice(t,1),this.dataSource.connect().next(this.eventsData))})}submit(){let t={name:this.hookForm.get("name").value,isActive:this.hookForm.get("isActive").value,displayName:this.hookForm.get("displayName").value,events:this.eventsData,config:{"Payload URL":this.hookForm.get("payloadUrl").value,"Content Type":this.hookForm.get("contentType").enabled?this.hookForm.get("contentType").value:void 0,"SMS Provider":this.hookForm.get("smsProvider").enabled?this.hookForm.get("smsProvider").value:void 0,"SMS Provider Account Id":this.hookForm.get("smsProviderAccountId").enabled?this.hookForm.get("smsProviderAccountId").value:void 0,"SMS Provider Token":this.hookForm.get("smsProviderToken").enabled?this.hookForm.get("smsProviderToken").value:void 0}};this.systemService.createHook(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-hook"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:62,vars:37,consts:[["input",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-4percent"],[1,"flex-40"],["required","","formControlName","name"],[3,"value"],["matInput","","required","","formControlName","displayName"],[1,"flex-fill","flex-40"],["matInput","","required","","formControlName","payloadUrl"],[1,"layout-row-wrap","responsive-column","align-center"],[1,"mat-title","flex-20"],[1,"red"],["mat-raised-button","","type","button","color","primary",1,"AddEventButton","flex-20",3,"click"],["icon","plus",1,"m-r-10"],["labelPosition","before","formControlName","isActive",1,"is-active","flex-10","m-l-20"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entityName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actionName"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","contentType"],["matInput","","type","tel","maxlength","10","required","","formControlName","phoneNumber"],["align","end"],[1,"flex-30"],["matInput","","required","","formControlName","smsProvider"],["matInput","","required","","formControlName","smsProviderAccountId"],["matInput","","required","","formControlName","smsProviderToken"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-cell","",1,"gap-15percent"],["type","button","color","warn","mat-icon-button","",1,"flex-8",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,bze,3,5,"mat-option",6,Pe),r(),E(12,yze,7,9,"mat-error"),r(),l(13,"mat-form-field",4)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7),E(18,Sze,7,9,"mat-error"),r()(),l(19,"div",3),E(20,Pze,12,12,"mat-form-field",4),E(21,Mze,9,5,"mat-form-field",8),l(22,"mat-form-field",4)(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"input",9),E(27,Dze,7,9,"mat-error"),r()(),E(28,Aze,19,12,"div",3),b(29,"br")(30,"br"),l(31,"div",10)(32,"p",11),c(33),p(34,"translate"),l(35,"span",12),c(36,"*"),r()(),l(37,"button",13),R("click",function(){return i.addEvent()}),b(38,"fa-icon",14),c(39),p(40,"translate"),p(41,"translate"),r(),l(42,"mat-checkbox",15),c(43),p(44,"translate"),r()(),l(45,"table",16),X(46,17),F(47,Fze,3,3,"th",18)(48,kze,2,1,"td",19),Z(),X(49,20),F(50,Bze,4,6,"th",18)(51,Rze,2,1,"td",19),Z(),X(52,21),F(53,Nze,3,3,"th",22)(54,Lze,3,0,"td",23),Z(),F(55,Vze,1,0,"tr",24)(56,qze,1,0,"tr",25),r()(),l(57,"mat-card-actions",26)(58,"button",27),c(59),p(60,"translate"),r(),F(61,zze,3,4,"button",28),r()()()()),n&2&&(a(2),g("formGroup",i.hookForm),a(5),h(m(8,20,"labels.inputs.Hook Template")),a(3),we(i.hooksTemplateData.templates),a(2),I(i.hookForm.controls.name.hasError("required")?12:-1),a(3),h(m(16,22,"labels.inputs.Display Name")),a(3),I(i.hookForm.controls.displayName.hasError("required")?18:-1),a(2),I(i.hookForm.controls.name.value==="Web"?20:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?21:-1),a(3),h(m(25,24,"labels.inputs.Payload URL")),a(3),I(i.hookForm.controls.payloadUrl.hasError("required")?27:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?28:-1),a(5),h(m(34,26,"labels.inputs.Events")),a(6),le(" ",m(40,28,"labels.buttons.Add")," ",m(41,30,"labels.inputs.Events")," "),a(4),v(" ",m(44,32,"labels.inputs.Is Active"),"? "),a(2),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(36,xze)),a(),v(" ",m(60,34,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_HOOK"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,qa,ze,gt,ft,xe,fi,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,he,ki],styles:["@media (width >= 992px){.is-active-wrapper[_ngcontent-%COMP%]{position:relative}.is-active-wrapper[_ngcontent-%COMP%] .is-active[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}table[_ngcontent-%COMP%]{width:100%}.AddEventButton[_ngcontent-%COMP%]{margin-bottom:10px}"]})}}return e})();var Hze=()=>["../"];function Gze(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.name),a(),v(" ",Ft(2,2,t.name,"text")," ")}}function jze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Hook Template")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $ze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Display Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Uze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Content Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Wze(e,o){if(e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",31)(5,"mat-option",6),c(6),p(7,"translate"),r(),l(8,"mat-option",6),c(9),p(10,"translate"),r()(),E(11,Uze,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,6,"labels.inputs.Content Type")),a(3),g("value","json"),a(),v(" ",m(7,8,"labels.inputs.json")," "),a(2),g("value","form"),a(),v(" ",m(10,10,"labels.inputs.form")," "),a(2),I(t.hookForm.controls.contentType.hasError("required")?11:-1)}}function Qze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Yze(e,o){if(e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32,0),l(6,"mat-hint",33),c(7),r(),E(8,Qze,7,9,"mat-error"),r()),e&2){let t=ve(5),n=w();a(2),h(m(3,3,"labels.inputs.Phone Number")),a(5),v("",(t.value==null?null:t.value.length)||0,"/10"),a(),I(n.hookForm.controls.phoneNumber.hasError("required")?8:-1)}}function Jze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payload URL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Kze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Account ID")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zze(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SMS Provider Token")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eHe(e,o){if(e&1&&(l(0,"div",3)(1,"mat-form-field",34)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",35),E(6,Kze,7,9,"mat-error"),r(),l(7,"mat-form-field",34)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",36),E(12,Xze,7,9,"mat-error"),r(),l(13,"mat-form-field",34)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",37),E(18,Zze,7,9,"mat-error"),r()()),e&2){let t=w();a(3),h(m(4,6,"labels.inputs.SMS Provider")),a(3),I(t.hookForm.controls.smsProvider.hasError("required")?6:-1),a(3),h(m(10,8,"labels.inputs.SMS Provider Account ID")),a(3),I(t.hookForm.controls.smsProviderAccountId.hasError("required")?12:-1),a(3),h(m(16,10,"labels.inputs.SMS Provider Token")),a(3),I(t.hookForm.controls.smsProviderToken.hasError("required")?18:-1)}}function tHe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Name")))}function iHe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function nHe(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Action")," ",m(3,4,"labels.inputs.Name")," "))}function oHe(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function aHe(e,o){e&1&&(l(0,"div",23)(1,"p"),c(2,"At least one event is required. Cannot delete the last event."),r()())}function rHe(e,o){e&1&&(l(0,"th",40),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function lHe(e,o){if(e&1){let t=Y();l(0,"td",39)(1,"button",41),R("click",function(){let i=V(t).index,s=w();return q(s.deleteEvent(i))}),b(2,"fa-icon",42),r()()}}function sHe(e,o){e&1&&b(0,"tr",43)}function cHe(e,o){e&1&&b(0,"tr",44)}function pHe(e,o){if(e&1&&(l(0,"button",45),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",(!t.hookForm.valid||t.hookForm.pristine)&&!t.eventsDataChanged),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var yx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.snackBar=T(Fg),this.cdr=T(es),this.displayedColumns=["entityName","actionName","actions"],this.eventsData=[],this.cannotDeleteLastEvent=!1,this.eventsDataChanged=!1,this.route.data.subscribe(t=>{this.hooksTemplateData=t.hooksTemplate,this.hookData=t.hook,this.eventsData=t.hook.events?t.hook.events:[]})}ngOnInit(){this.createHookForm(),this.setEvents()}setEvents(){this.dataSource=new Wt(this.eventsData),this.dataSource.sort=this.sort}createHookForm(){this.hookForm=this.formBuilder.group({name:[{value:this.hookData.name,disabled:!0},ce.required],displayName:[this.hookData.displayName,ce.required],isActive:[this.hookData.isActive],phoneNumber:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[1].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],smsProvider:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[2].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],smsProviderAccountId:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[3].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],smsProviderToken:[{value:this.hookData.name==="SMS Bridge"?this.hookData.config[4].fieldValue:"",disabled:this.hookData.name!=="SMS Bridge"},ce.required],contentType:[{value:this.hookData.name==="Web"?this.hookData.config[0].fieldValue:"",disabled:this.hookData.name!=="Web"},ce.required],payloadUrl:[this.hookData.name==="Web"?this.hookData.config[1].fieldValue:this.hookData.config[0].fieldValue,ce.required]})}addEvent(){this.dialog.open(tu,{data:this.hooksTemplateData}).afterClosed().subscribe(n=>{n&&(this.eventsData.push({entityName:n.entity,actionName:n.action}),this.dataSource.connect().next(this.eventsData),this.eventsDataChanged=!0)})}deleteEvent(t){if(this.eventsData.length===1){this.snackBar.open("At least one event is required. Cannot delete the last event.","Close",{duration:3e3,panelClass:["error-snackbar"]});return}this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.event with entity name of")+" "+this.eventsData[t].entityName}}).afterClosed().subscribe(i=>{i.delete&&(this.eventsData.splice(t,1),this.dataSource.connect().next(this.eventsData),this.eventsDataChanged=!0,this.cdr.detectChanges())})}submit(){let t={name:this.hookForm.get("name").value,isActive:this.hookForm.get("isActive").value,displayName:this.hookForm.get("displayName").value,events:this.eventsData,config:{"Payload URL":this.hookForm.get("payloadUrl").value,"Content Type":this.hookForm.get("contentType").enabled?this.hookForm.get("contentType").value:void 0,"SMS Provider":this.hookForm.get("smsProvider").enabled?this.hookForm.get("smsProvider").value:void 0,"SMS Provider Account Id":this.hookForm.get("smsProviderAccountId").enabled?this.hookForm.get("smsProviderAccountId").value:void 0,"SMS Provider Token":this.hookForm.get("smsProviderToken").enabled?this.hookForm.get("smsProviderToken").value:void 0}};this.systemService.updateHook(this.hookData.id,t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-hook"]],viewQuery:function(n,i){if(n&1&&Ee(It,7),n&2){let s;Te(s=Me())&&(i.sort=s.first)}},decls:65,vars:39,consts:[["input",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-4percent"],[1,"flex-40"],["required","","formControlName","name"],[3,"value"],["matInput","","required","","formControlName","displayName"],[1,"is-active-wrapper"],["labelPosition","before","formControlName","isActive",1,"is-active","flex-10"],[1,"flex-fill","flex-40"],["matInput","","required","","formControlName","payloadUrl"],[3,"inset"],[1,"layout-row-wrap","responsive-column"],[1,"mat-title","flex-20"],[1,"red"],["mat-raised-button","","type","button","color","primary",1,"AddEventButton","flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entityName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actionName"],[1,"error-message"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","contentType"],["matInput","","type","tel","maxlength","10","required","","formControlName","phoneNumber"],["align","end"],[1,"flex-30"],["matInput","","required","","formControlName","smsProvider"],["matInput","","required","","formControlName","smsProviderAccountId"],["matInput","","required","","formControlName","smsProviderToken"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,Gze,3,5,"mat-option",6,Pe),r(),E(12,jze,7,9,"mat-error"),r(),l(13,"mat-form-field",4)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7),E(18,$ze,7,9,"mat-error"),r(),l(19,"div",8)(20,"mat-checkbox",9),c(21),p(22,"translate"),r()()(),l(23,"div",3),E(24,Wze,12,12,"mat-form-field",10),E(25,Yze,9,5,"mat-form-field",10),l(26,"mat-form-field",4)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",11),E(31,Jze,7,9,"mat-error"),r()(),E(32,eHe,19,12,"div",3),b(33,"br")(34,"mat-divider",12)(35,"br"),l(36,"div",13)(37,"p",14),c(38),p(39,"translate"),l(40,"span",15),c(41,"*"),r()(),l(42,"button",16),R("click",function(){return i.addEvent()}),b(43,"fa-icon",17),c(44),p(45,"translate"),p(46,"translate"),r()(),l(47,"table",18),X(48,19),F(49,tHe,3,3,"th",20)(50,iHe,2,1,"td",21),Z(),X(51,22),F(52,nHe,4,6,"th",20)(53,oHe,2,1,"td",21),Z(),E(54,aHe,3,0,"div",23),X(55,24),F(56,rHe,3,3,"th",25)(57,lHe,3,0,"td",21),Z(),F(58,sHe,1,0,"tr",26)(59,cHe,1,0,"tr",27),r()(),l(60,"mat-card-actions",28)(61,"button",29),c(62),p(63,"translate"),r(),F(64,pHe,3,4,"button",30),r()()()()),n&2&&(a(2),g("formGroup",i.hookForm),a(5),h(m(8,22,"labels.inputs.Hook Template")),a(3),we(i.hooksTemplateData.templates),a(2),I(i.hookForm.controls.name.hasError("required")?12:-1),a(3),h(m(16,24,"labels.inputs.Display Name")),a(3),I(i.hookForm.controls.displayName.hasError("required")?18:-1),a(3),v(" ",m(22,26,"labels.inputs.Is Active"),"? "),a(3),I(i.hookForm.controls.name.value==="Web"?24:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?25:-1),a(3),h(m(29,28,"labels.inputs.Payload URL")),a(3),I(i.hookForm.controls.payloadUrl.hasError("required")?31:-1),a(),I(i.hookForm.controls.name.value==="SMS Bridge"?32:-1),a(2),g("inset",!0),a(4),v("",m(39,30,"labels.inputs.Events")," "),a(6),le(" ",m(45,32,"labels.buttons.Add")," ",m(46,34,"labels.inputs.Events")," "),a(3),g("dataSource",i.dataSource),a(7),I(i.cannotDeleteLastEvent?54:-1),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(38,Hze)),a(),v(" ",m(63,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_HOOK"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,qa,ze,gt,ft,xe,fi,Ke,Ri,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,he,ki],styles:["@media (width >= 992px){.is-active-wrapper[_ngcontent-%COMP%]{position:relative}.is-active-wrapper[_ngcontent-%COMP%] .is-active[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0;right:0}}table[_ngcontent-%COMP%]{width:100%}.AddEventButton[_ngcontent-%COMP%]{margin-bottom:10px}.error-message[_ngcontent-%COMP%]{color:red;font-weight:700;margin-top:10px;padding:5px;background-color:#ffe6e6;border:1px solid red;border-radius:5px}.error-snackbar[_ngcontent-%COMP%]{background-color:#f44336;color:#fff}.error-snackbar[_ngcontent-%COMP%] .mat-simple-snackbar-action[_ngcontent-%COMP%]{color:#fff}"]})}}return e})();var mHe=()=>[10,25,50,100],dHe=()=>["create"],uHe=e=>[e];function fHe(e,o){e&1&&(l(0,"button",16),b(1,"fa-icon",17),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,dHe)),a(2),v(" ",m(3,2,"labels.buttons.Create Hook")," "))}function hHe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Hook Template")))}function gHe(e,o){if(e&1&&(l(0,"td",19),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.name,"text"))}}function _He(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Hook Name")))}function CHe(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.displayName)}}function vHe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function xHe(e,o){if(e&1&&(l(0,"td",19)(1,"div",20),b(2,"fa-icon",21),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.isActive===!0?"true":"false"),a(),g("matTooltip",Le(t.isActive===!0?m(3,3,"labels.inputs.Active"):m(4,5,"labels.catalogs.Inactive")))}}function bHe(e,o){e&1&&b(0,"tr",22)}function yHe(e,o){if(e&1&&b(0,"tr",23),e&2){let t=o.$implicit;g("routerLink",Nt(1,uHe,t.id))}}var Sx=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","displayName","isActive"],this.route.data.subscribe(t=>{this.hookData=t.hooks})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setHooks()}setHooks(){this.dataSource=new Wt(this.hookData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-hooks"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:23,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["matColumnDef","isActive"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,fHe,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,hHe,3,3,"th",9)(13,gHe,3,4,"td",10),Z(),X(14,11),F(15,_He,3,3,"th",9)(16,CHe,2,1,"td",10),Z(),X(17,12),F(18,vHe,3,3,"th",9)(19,xHe,5,7,"td",10),Z(),F(20,bHe,1,0,"tr",13)(21,yHe,1,3,"tr",14),r(),b(22,"mat-paginator",15),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_HOOK"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,mHe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var SHe=()=>["edit"];function wHe(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,SHe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function PHe(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function THe(e,o){if(e&1&&(l(0,"mat-label"),c(1),b(2,"br"),r()),e&2){let t=o.$implicit;a(),v(" ",t.actionName+" - "+t.entityName," ")}}function MHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Content Type"),":"))}function DHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[0].fieldValue," ")}}function EHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[1].fieldValue," ")}}function IHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[0].fieldValue," ")}}function OHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Phone Number"),":"))}function AHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[1].fieldValue," ")}}function FHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.SMS Provider"),":"))}function kHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[2].fieldValue," ")}}function BHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.SMS Provider Account ID"),":"))}function RHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[3].fieldValue," ")}}function NHe(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.SMS Provider Token"),":"))}function LHe(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.hookData.config[4].fieldValue," ")}}var wx=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.systemService=T(ii),this.router=T(qe),this.translateService=T(yi),this.route.data.subscribe(t=>{this.hookData=t.hook})}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.hook")+" "+this.hookData.id}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteHook(this.hookData.id).subscribe(()=>{this.router.navigate(["/system/hooks"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-hook"]],decls:52,vars:44,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,wHe,4,5,"button",1)(2,PHe,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),p(17,"translate"),p(18,"translate"),r(),l(19,"div",5),c(20),p(21,"translate"),r(),l(22,"div",6),c(23),p(24,"dateFormat"),r(),l(25,"div",5),c(26),p(27,"translate"),r(),l(28,"div",6),c(29),p(30,"dateFormat"),r(),l(31,"div",5),c(32),p(33,"translate"),r(),l(34,"div",6),Se(35,THe,3,1,"mat-label",null,Pe),r(),E(37,MHe,3,3,"div",5),E(38,DHe,2,1,"div",6),l(39,"div",5),c(40),p(41,"translate"),r(),E(42,EHe,2,1,"div",6),E(43,IHe,2,1,"div",6),E(44,OHe,3,3,"div",5),E(45,AHe,2,1,"div",6),E(46,FHe,3,3,"div",5),E(47,kHe,2,1,"div",6),E(48,BHe,3,3,"div",5),E(49,RHe,2,1,"div",6),E(50,NHe,3,3,"div",5),E(51,LHe,2,1,"div",6),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_HOOK"),a(),g("mifosxHasPermission","DELETE_HOOK"),a(6),v("",m(9,24,"labels.inputs.Hook Name"),":"),a(3),v(" ",i.hookData.displayName," "),a(2),v("",m(14,26,"labels.inputs.Status"),":"),a(3),v(" ",i.hookData.isActive?m(17,28,"labels.inputs.Active"):m(18,30,"labels.catalogs.Inactive")," "),a(4),v("",m(21,32,"labels.inputs.Activation Date"),":"),a(3),v(" ",m(24,34,i.hookData.createdAt)," "),a(3),v("",m(27,36,"labels.inputs.Updated on"),":"),a(3),v(" ",m(30,38,i.hookData.updatedAt)," "),a(3),v("",m(33,40,"labels.inputs.Events"),":"),a(3),we(i.hookData.events),a(2),I(i.hookData.name==="Web"?37:-1),a(),I(i.hookData.name==="Web"?38:-1),a(2),v("",m(41,42,"labels.inputs.Payload URL"),":"),a(2),I(i.hookData.name==="Web"?42:-1),a(),I(i.hookData.name==="SMS Bridge"?43:-1),a(),I(i.hookData.name==="SMS Bridge"?44:-1),a(),I(i.hookData.name==="SMS Bridge"?45:-1),a(),I(i.hookData.name==="SMS Bridge"?46:-1),a(),I(i.hookData.name==="SMS Bridge"?47:-1),a(),I(i.hookData.name==="SMS Bridge"?48:-1),a(),I(i.hookData.name==="SMS Bridge"?49:-1),a(),I(i.hookData.name==="SMS Bridge"?50:-1),a(),I(i.hookData.name==="SMS Bridge"?51:-1))},dependencies:[ue,fe,Oe,Ue,Je,Be,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function VHe(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.parameterName," ")}}function qHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Parameters")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Up=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.data=T(Po)}ngOnInit(){this.reportParameterForm=this.formBuilder.group({parameterName:[this.data.parameterName,ce.required],reportParameterName:[this.data.reportParameterName]})}submit(){this.dialogRef.close(this.reportParameterForm.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-report-parameter-dialog"]],decls:28,vars:23,consts:[["mat-dialog-title",""],[3,"formGroup"],[1,"layout-column"],["required","","formControlName","parameterName"],[3,"value"],["matInput","","formControlName","reportParameterName"],["align","end"],["mat-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),r(),l(5,"mat-dialog-content")(6,"form",1)(7,"div",2)(8,"mat-form-field")(9,"mat-label"),c(10),p(11,"translate"),r(),l(12,"mat-select",3),Se(13,VHe,2,2,"mat-option",4,Pe),r(),E(15,qHe,7,9,"mat-error"),r(),l(16,"mat-form-field")(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",5),r()()()(),l(21,"mat-dialog-actions",6)(22,"button",7),c(23),p(24,"translate"),r(),l(25,"button",8),R("click",function(){return i.submit()}),c(26),p(27,"translate"),r()()),n&2&&(a(),le(" ",i.data.parameterName?m(2,9,"labels.buttons.Edit"):m(3,11,"labels.buttons.Add")," ",m(4,13,"labels.heading.Report Parameter"),` +`),a(5),g("formGroup",i.reportParameterForm),a(4),h(m(11,15,"labels.inputs.Select allowed parameter")),a(3),we(i.data.allowedParameters),a(2),I(i.reportParameterForm.controls.parameterName.hasError("required")?15:-1),a(3),h(m(19,17,"labels.inputs.Parameter Name Passed to Pentaho")),a(5),h(m(24,19,"labels.buttons.Cancel")),a(2),g("disabled",!i.reportParameterForm.valid||i.reportParameterForm.pristine),a(),v(" ",m(27,21,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();var zHe=()=>[10,25,50,100],HHe=()=>["../"];function GHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jHe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function $He(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function UHe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function WHe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"catalogs")," ")}}function QHe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function YHe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.buttons.Parameters")," "))}function JHe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.parameterName," ")}}function KHe(e,o){e&1&&(l(0,"th",32),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Parameter Name Passed to Pentaho")," "))}function XHe(e,o){if(e&1&&(l(0,"td",33),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.reportParameterName," ")}}function ZHe(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Actions")," "))}function eGe(e,o){if(e&1){let t=Y();l(0,"td",33)(1,"div",35)(2,"button",36),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editReportParameter(i))}),b(3,"fa-icon",37),r(),l(4,"button",38),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteReportParameter(i))}),b(5,"fa-icon",39),r()()()}}function tGe(e,o){e&1&&b(0,"tr",40)}function iGe(e,o){e&1&&b(0,"tr",41)}function nGe(e,o){if(e&1&&(l(0,"button",42),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.reportForm.valid&&t.reportParametersData.length===0),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Px=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateServices=T(yi),this.dataForDialog={allowedParameters:void 0,parameterName:void 0,reportParameterName:void 0},this.displayedColumns=["parameterName","parameterNamePassed","actions"],this.reportParametersData=[],this.reportCategoryTypeOptions=["Client","Loan","Savings","Fund","Accounting"],this.route.data.subscribe(t=>{this.reportTemplateData=t.reportTemplate,this.dataForDialog.allowedParameters=this.reportTemplateData.allowedParameters})}ngOnInit(){this.createReportForm(),this.toggleVisibility(),this.setReportParameters()}setReportParameters(){this.dataSource=new Wt(this.reportParametersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createReportForm(){this.reportForm=this.formBuilder.group({reportName:["",ce.required],reportCategory:[""],description:[""],reportType:["",ce.required],reportSubType:[{value:"",disabled:!0}],useReport:[!1],reportSql:["",ce.required]})}addReportParameter(){this.dataForDialog.parameterName=void 0,this.dataForDialog.reportParameterName=void 0,this.dialog.open(Up,{data:qt(at({},this.dataForDialog),{layout:{addButtonText:"Add"}}),width:"25rem"}).afterClosed().subscribe(n=>{n!==""&&(this.reportParametersData.push({id:"",parameterName:this.reportTemplateData.allowedParameters.find(i=>i.id===n.parameterName).parameterName,parameterId:n.parameterName,reportParameterName:n.reportParameterName}),this.dataSource.connect().next(this.reportParametersData))})}editReportParameter(t){this.dataForDialog.parameterName=t.parameterId,this.dataForDialog.reportParameterName=t.reportParameterName,this.dialog.open(Up,{data:this.dataForDialog}).afterClosed().subscribe(i=>{i!==""&&(this.reportParametersData[this.reportParametersData.indexOf(t)]={id:"",parameterName:this.reportTemplateData.allowedParameters.find(s=>s.id===i.parameterName).parameterName,parameterId:i.parameterName,reportParameterName:i.reportParameterName},this.dataSource.connect().next(this.reportParametersData))})}deleteReportParameter(t){this.dialog.open(vi,{data:{deleteContext:this.translateServices.instant("labels.heading.Report Parameter")+" "+t.parameterName}}).afterClosed().subscribe(i=>{i.delete&&(this.reportParametersData.splice(this.reportParametersData.indexOf(t),1),this.dataSource.connect().next(this.reportParametersData))})}toggleVisibility(){this.reportForm.get("reportType").valueChanges.subscribe(t=>{switch(t){case"Chart":this.reportForm.get("reportSubType").enable(),this.reportForm.get("reportSql").enable();break;case"Pentaho":this.reportForm.get("reportSql").disable(),this.reportForm.get("reportSubType").disable();break;default:this.reportForm.get("reportSql").enable(),this.reportForm.get("reportSubType").disable()}})}submit(){this.reportForm.value.reportParameters=this.reportParametersData.map(function(t){return t.parameterName=void 0,t}),this.systemService.createReport(this.reportForm.value).subscribe(t=>{this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-report"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:75,vars:42,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","reportName"],[1,"flex-50"],["required","","formControlName","reportType"],[3,"value"],["formControlName","reportSubType"],["formControlName","reportCategory"],[1,"user-report-wrapper","flex-50"],["labelPosition","after","formControlName","useReport",1,"user-report"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"flex-98"],["matInput","","required","","formControlName","reportSql","cdkTextareaAutosize","","cdkAutosizeMinRows","6"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","parameterName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","parameterNamePassed"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","type","submit","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"layout-row","gap-15percent"],["type","button","color","primary","mat-icon-button","",1,"flex-8",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",1,"flex-8",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,GHe,7,9,"mat-error"),r(),l(11,"mat-form-field",5)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",6),Se(16,jHe,3,5,"mat-option",7,Pe),r(),E(18,$He,7,9,"mat-error"),r(),l(19,"mat-form-field",5)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",8),Se(24,UHe,3,5,"mat-option",7,Pe),r()(),l(26,"mat-form-field",5)(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",9),Se(31,WHe,3,5,"mat-option",7,Pe),r()(),l(33,"div",10)(34,"mat-checkbox",11),c(35),p(36,"translate"),r()(),l(37,"mat-form-field",3)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"textarea",12),r(),l(42,"mat-form-field",13)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"textarea",14),E(47,QHe,7,9,"mat-error"),r()(),b(48,"br"),l(49,"div",15)(50,"p",16),c(51),p(52,"translate"),r(),l(53,"button",17),R("click",function(){return i.addReportParameter()}),b(54,"fa-icon",18),c(55),p(56,"translate"),r()(),l(57,"table",19),X(58,20),F(59,YHe,3,3,"th",21)(60,JHe,2,1,"td",22),Z(),X(61,23),F(62,KHe,3,3,"th",21)(63,XHe,2,1,"td",22),Z(),X(64,24),F(65,ZHe,3,3,"th",25)(66,eGe,6,0,"td",22),Z(),F(67,tGe,1,0,"tr",26)(68,iGe,1,0,"tr",27),r(),b(69,"mat-paginator",28),r(),l(70,"mat-card-actions",29)(71,"button",30),c(72),p(73,"translate"),r(),F(74,nGe,3,4,"button",31),r()()()()),n&2&&(a(2),g("formGroup",i.reportForm),a(5),h(m(8,20,"labels.inputs.Report Name")),a(3),I(i.reportForm.controls.reportName.hasError("required")?10:-1),a(3),h(m(14,22,"labels.inputs.Report Type")),a(3),we(i.reportTemplateData.allowedReportTypes),a(2),I(i.reportForm.controls.reportType.hasError("required")?18:-1),a(3),h(m(22,24,"labels.inputs.Report Sub Type")),a(3),we(i.reportTemplateData.allowedReportSubTypes),a(4),h(m(29,26,"labels.inputs.Report Category")),a(3),we(i.reportCategoryTypeOptions),a(4),v(" ",m(36,28,"labels.inputs.User Report (UI)")," "),a(4),h(m(40,30,"labels.inputs.Description")),a(5),h(m(45,32,"labels.inputs.SQL")),a(3),I(i.reportForm.controls.reportSql.hasError("required")?47:-1),a(4),h(m(52,34,"labels.inputs.Report Parameters")),a(4),v("",m(56,36,"labels.buttons.Add Report Parameter")," "),a(2),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(40,zHe)),a(2),g("routerLink",oe(41,HHe)),a(),v(" ",m(73,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_REPORT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,Ln,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,he,ki],styles:["@media (width >= 992px){.user-report-wrapper[_ngcontent-%COMP%]{position:relative}.user-report-wrapper[_ngcontent-%COMP%] .user-report[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}table[_ngcontent-%COMP%]{width:100%;margin-top:20px}"]})}}return e})();var oGe=()=>[10,25,50,100],aGe=()=>["../"];function rGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lGe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function sGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Report Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cGe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"text")," ")}}function pGe(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"catalogs")," ")}}function mGe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dGe(e,o){if(e&1){let t=Y();l(0,"button",31),R("click",function(){V(t);let i=w();return q(i.addReportParameter())}),b(1,"fa-icon",32),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Report Parameter")," "))}function uGe(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Parameters")))}function fGe(e,o){if(e&1&&(l(0,"td",34),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parameterName)}}function hGe(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Parameter Name Passed to Pentaho")," "))}function gGe(e,o){if(e&1&&(l(0,"td",34),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportParameterName)}}function _Ge(e,o){e&1&&(l(0,"th",35),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function CGe(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.editReportParameter(i))}),b(1,"fa-icon",40),r()}}function vGe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deleteReportParameter(i))}),b(1,"fa-icon",42),r()}}function xGe(e,o){if(e&1&&(l(0,"td",36),E(1,CGe,2,0,"button",37),E(2,vGe,2,0,"button",38),r()),e&2){let t=w();a(),I(t.reportData.coreReport?-1:1),a(),I(t.reportData.coreReport?-1:2)}}function bGe(e,o){e&1&&b(0,"tr",43)}function yGe(e,o){e&1&&b(0,"tr",44)}function SGe(e,o){if(e&1&&(l(0,"button",45),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",(!t.reportForm.valid||t.reportForm.pristine)&&!t.isReportParametersChanged),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Tx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.systemService=T(ii),this.dialog=T(Ht),this.reportParametersData=[],this.dataForDialog={allowedParameters:void 0,parameterName:void 0,reportParameterName:void 0},this.displayedColumns=["parameterName","parameterNamePassed","actions"],this.isReportParametersChanged=!1,this.reportCategoryTypeOptions=["Client","Loan","Savings","Fund","Accounting"],this.route.data.subscribe(t=>{this.reportData=t.report,this.reportParametersData=t.report.reportParameters?t.report.reportParameters:[],this.reportTemplateData=t.reportTemplate,this.dataForDialog.allowedParameters=this.reportData.allowedParameters})}ngOnInit(){this.createReportForm(),this.setReportParameters(),this.toggleVisibility()}setReportParameters(){this.dataSource=new Wt(this.reportParametersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createReportForm(){this.reportForm=this.formBuilder.group({reportName:[{value:this.reportData.reportName,disabled:this.reportData.coreReport},ce.required],reportCategory:[{value:this.reportData.reportCategory?this.reportData.reportCategory:"",disabled:this.reportData.coreReport}],description:[{value:this.reportData.description?this.reportData.description:"",disabled:this.reportData.coreReport}],reportType:[{value:this.reportData.reportType,disabled:this.reportData.coreReport},ce.required],reportSubType:[{value:this.reportData.reportSubType?this.reportData.reportSubType:"",disabled:this.reportData.reportType!=="Chart"||this.reportData.coreReport}],useReport:[this.reportData.useReport?this.reportData.useReport:!1],reportSql:[{value:this.reportData.reportSql,disabled:this.reportData.coreReport||this.reportData.reportType==="Pentaho"},ce.required]})}addReportParameter(){this.dataForDialog.parameterName=void 0,this.dataForDialog.reportParameterName=void 0,this.dialog.open(Up,{data:this.dataForDialog}).afterClosed().subscribe(n=>{n!==""&&(this.reportParametersData.push({id:"",parameterName:this.reportTemplateData.allowedParameters.find(i=>i.id===n.parameterName).parameterName,parameterId:n.parameterName,reportParameterName:n.reportParameterName?n.reportParameterName:void 0}),this.dataSource.connect().next(this.reportParametersData),this.isReportParametersChanged=!0)})}editReportParameter(t){this.dataForDialog.parameterName=t.parameterId,this.dataForDialog.reportParameterName=t.reportParameterName,this.dialog.open(Up,{data:this.dataForDialog}).afterClosed().subscribe(i=>{i!==""&&(this.reportParametersData[this.reportParametersData.indexOf(t)]={id:t.id,parameterName:this.reportTemplateData.allowedParameters.find(s=>s.id===i.parameterName).parameterName,parameterId:i.parameterName,reportParameterName:i.reportParameterName},this.dataSource.connect().next(this.reportParametersData),this.isReportParametersChanged=!0)})}deleteReportParameter(t){this.dialog.open(vi,{data:{deleteContext:`report parameter ${t.parameterName}`}}).afterClosed().subscribe(i=>{i.delete&&(this.reportParametersData.splice(this.reportParametersData.indexOf(t),1),this.dataSource.connect().next(this.reportParametersData),this.isReportParametersChanged=!0)})}toggleVisibility(){this.reportForm.get("reportType").valueChanges.subscribe(t=>{switch(t){case"Chart":this.reportForm.get("reportSubType").enable(),this.reportForm.get("reportSql").enable();break;case"Pentaho":this.reportForm.get("reportSql").disable(),this.reportForm.get("reportSubType").disable();break;default:this.reportForm.get("reportSql").enable(),this.reportForm.get("reportSubType").disable()}})}submit(){this.reportData.coreReport?this.reportForm.value.reportParameters=void 0:(this.reportForm.value.reportParameters=this.reportParametersData,this.reportForm.value.reportParameters.map(function(t){return t.parameterName=void 0,t})),this.systemService.updateReport(this.reportData.id,this.reportForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-report"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:72,vars:40,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","reportName"],[1,"flex-50"],["required","","formControlName","reportType"],[3,"value"],["formControlName","reportSubType"],["formControlName","reportCategory"],["labelPosition","after","formControlName","useReport",1,"user-report"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"flex-98"],["matInput","","required","","formControlName","reportSql","cdkTextareaAutosize","","cdkAutosizeMinRows","6"],[1,"layout-row-wrap","gap-60percent","layout-lt-md-column"],[1,"mat-title","flex-20"],["mat-raised-button","","type","button","color","primary",1,"flex-20"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","parameterName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","parameterNamePassed"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","type","button","color","primary",1,"flex-20",3,"click"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["mat-cell","",1,"gap-15percent"],["type","button","color","primary","mat-icon-button","",1,"flex-8"],["type","button","color","warn","mat-icon-button","",1,"flex-8"],["type","button","color","primary","mat-icon-button","",1,"flex-8",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",1,"flex-8",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,rGe,7,9,"mat-error"),r(),l(11,"mat-form-field",5)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",6),Se(16,lGe,3,5,"mat-option",7,Pe),r(),E(18,sGe,7,9,"mat-error"),r(),l(19,"mat-form-field",5)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",8),Se(24,cGe,3,5,"mat-option",7,Pe),r()(),l(26,"mat-form-field",5)(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",9),Se(31,pGe,3,5,"mat-option",7,Pe),r()(),l(33,"div",5)(34,"mat-checkbox",10),c(35),p(36,"translate"),r()(),l(37,"mat-form-field",3)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"textarea",11),r(),l(42,"mat-form-field",12)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"textarea",13),E(47,mGe,7,9,"mat-error"),r()(),b(48,"br"),l(49,"div",14)(50,"p",15),c(51),p(52,"translate"),r(),E(53,dGe,4,3,"button",16),r(),l(54,"table",17),X(55,18),F(56,uGe,3,3,"th",19)(57,fGe,2,1,"td",20),Z(),X(58,21),F(59,hGe,3,3,"th",19)(60,gGe,2,1,"td",20),Z(),X(61,22),F(62,_Ge,3,3,"th",23)(63,xGe,3,2,"td",24),Z(),F(64,bGe,1,0,"tr",25)(65,yGe,1,0,"tr",26),r(),b(66,"mat-paginator",27),r(),l(67,"mat-card-actions",28)(68,"button",29),c(69),p(70,"translate"),r(),F(71,SGe,3,4,"button",30),r()()()()),n&2&&(a(2),g("formGroup",i.reportForm),a(5),h(m(8,20,"labels.inputs.Report Name")),a(3),I(i.reportForm.controls.reportName.hasError("required")?10:-1),a(3),h(m(14,22,"labels.inputs.Report Type")),a(3),we(i.reportData.allowedReportTypes),a(2),I(i.reportForm.controls.reportType.hasError("required")?18:-1),a(3),h(m(22,24,"labels.inputs.Report Sub Type")),a(3),we(i.reportData.allowedReportSubTypes),a(4),h(m(29,26,"labels.inputs.Report Category")),a(3),we(i.reportCategoryTypeOptions),a(4),v(" ",m(36,28,"labels.inputs.User Report (UI)")," "),a(4),h(m(40,30,"labels.inputs.Description")),a(5),v(" ",m(45,32,"labels.inputs.SQL")),a(3),I(i.reportForm.controls.reportSql.hasError("required")?47:-1),a(4),h(m(52,34,"labels.inputs.Report Parameters")),a(2),I(i.reportData.coreReport?-1:53),a(),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(38,oGe)),a(2),g("routerLink",oe(39,aGe)),a(),v(" ",m(70,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_REPORT"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,Ln,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,he,ki],styles:["@media (width >= 992px){.user-report-wrapper[_ngcontent-%COMP%]{position:relative}.user-report-wrapper[_ngcontent-%COMP%] .user-report[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var Mx=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-completion-dialog"]],decls:18,vars:15,consts:[["mat-dialog-title",""],[1,"mw600"],["mode","determinate","value","100"],["mat-raised-button","","color","warn","mat-dialog-close",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"h3",1),c(5),p(6,"translate"),r(),l(7,"h3"),c(8),p(9,"translate"),r(),l(10,"h3"),c(11),p(12,"translate"),r(),b(13,"mat-progress-bar",2),r(),l(14,"mat-dialog-actions")(15,"button",3),c(16),p(17,"translate"),r()()),n&2&&(a(),h(m(2,5,"labels.heading.Welcome to Mifos")),a(4),h(m(6,7,"labels.heading.Configure Mifos Organization Needs")),a(3),h(m(9,9,"labels.heading.Configuration Wizard Setup")),a(3),v("",m(12,11,"labels.heading.Progress Bar")," : 100 %"),a(5),v(" ",m(17,13,"labels.buttons.Close Config. Wizard")," "))},dependencies:[ue,fe,xe,Wn,ho,ns,Nn,Un,he],encapsulation:2})}}return e})();var wGe=["buttonCreateReport"],PGe=["templateButtonCreateReport"],TGe=()=>[10,25,50,100],MGe=()=>["create"],DGe=e=>[e];function EGe(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",27),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,MGe)),a(2),v(" ",m(3,2,"labels.buttons.Create Report")," "))}function IGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Name")))}function OGe(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportName)}}function AGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Type")))}function FGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.reportType,"text"))}}function kGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Sub Type")))}function BGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.reportSubType,"text"))}}function RGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Report Category")))}function NGe(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.reportCategory,"catalogs"))}}function LGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Core Report")))}function VGe(e,o){e&1&&(b(0,"fa-icon",30),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Yes"))}function qGe(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.No"))}function zGe(e,o){if(e&1&&(l(0,"td",29),E(1,VGe,2,3,"fa-icon",30),E(2,qGe,2,3,"fa-icon",31),r()),e&2){let t=o.$implicit;a(),I(t.coreReport?1:-1),a(),I(t.coreReport?-1:2)}}function HGe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.User Report")))}function GGe(e,o){e&1&&(b(0,"fa-icon",30),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Yes"))}function jGe(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.No"))}function $Ge(e,o){if(e&1&&(l(0,"td",29),E(1,GGe,2,3,"fa-icon",30),E(2,jGe,2,3,"fa-icon",31),r()),e&2){let t=o.$implicit;a(),I(t.useReport?1:-1),a(),I(t.useReport?-1:2)}}function UGe(e,o){e&1&&b(0,"tr",32)}function WGe(e,o){if(e&1&&b(0,"tr",33),e&2){let t=o.$implicit;g("routerLink",Nt(1,DGe,t.id))}}function QGe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",34),c(4),p(5,"translate"),r(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Report")),a(3),h(m(5,7,"labels.text.Create new report")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function YGe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",35)(4,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(37);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(41);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Filter reports by name")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function JGe(e,o){if(e&1){let t=Y();l(0,"h4",34),c(1),p(2,"translate"),l(3,"a",38),c(4),p(5,"translate"),r()(),l(6,"div",35)(7,"button",36),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",37),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",37),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of all currently available reports"),": "),a(3),h(m(5,7,"labels.heading.Manage Reports")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Dx=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.dialog=T(Ht),this.displayedColumns=["reportName","reportType","reportSubType","reportCategory","coreReport","userReport"],this.route.data.subscribe(t=>{this.reportsData=t.reports})}ngOnInit(){this.setReports()}setReports(){this.dataSource=new Wt(this.reportsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showManageReports===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateReport,this.buttonCreateReport.nativeElement,"bottom",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showManageReports=!1,this.openNextStepDialog()}previousStep(){this.router.navigate(["/system"])}openNextStepDialog(){this.dialog.open(Mx).afterClosed().subscribe(()=>{this.router.navigate(["/home"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-reports"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(wGe,5),Ee(PGe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateReport=s.first),Te(s=Me())&&(i.templateButtonCreateReport=s.first)}},decls:42,vars:9,consts:[["buttonCreateReport",""],["filter",""],["reportsTable",""],["templateButtonCreateReport",""],["templateFilter",""],["templateReportsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","reportName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","reportType"],["matColumnDef","reportSubType"],["matColumnDef","reportCategory"],["matColumnDef","coreReport"],["matColumnDef","userReport"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"true",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"false",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895354/Manage+Reports","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,EGe,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,IGe,3,3,"th",16)(17,OGe,2,1,"td",17),Z(),X(18,18),F(19,AGe,3,3,"th",16)(20,FGe,3,4,"td",17),Z(),X(21,19),F(22,kGe,3,3,"th",16)(23,BGe,3,4,"td",17),Z(),X(24,20),F(25,RGe,3,3,"th",16)(26,NGe,3,4,"td",17),Z(),X(27,21),F(28,LGe,3,3,"th",16)(29,zGe,3,2,"td",17),Z(),X(30,22),F(31,HGe,3,3,"th",16)(32,$Ge,3,2,"td",17),Z(),F(33,UGe,1,0,"tr",23)(34,WGe,1,3,"tr",24),r(),b(35,"mat-paginator",25),r()(),F(36,QGe,16,15,"ng-template",null,3,ti)(38,YGe,13,12,"ng-template",null,4,ti)(40,JGe,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_REPORT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,TGe)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var KGe=()=>["edit"];function XGe(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,KGe)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function ZGe(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w(2);return q(i.delete())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function eje(e,o){e&1&&(l(0,"span"),F(1,ZGe,4,3,"button",11),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_REPORT"))}function tje(e,o){e&1&&(l(0,"div",8),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Report Sub Type"),":"))}function ije(e,o){if(e&1&&(l(0,"div",7),c(1),p(2,"translateKey"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,t.reportData.reportSubType,"text")," ")}}var Ex=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dialog=T(Ht),this.router=T(qe),this.route.data.subscribe(t=>{this.reportData=t.report})}delete(){this.dialog.open(vi,{data:{deleteContext:`report ${this.reportData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.systemService.deleteReport(this.reportData.id).subscribe(()=>{this.router.navigate(["/system/reports"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-report"]],decls:39,vars:34,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","flex-100"],[1,"flex-100","report-name"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"mat-body-strong","flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,XGe,4,5,"button",1),E(2,eje,2,1,"span"),r(),l(3,"div",2)(4,"mat-card")(5,"mat-card-title",3)(6,"div",4),c(7),p(8,"translate"),l(9,"b"),c(10),r()()(),l(11,"mat-card-content")(12,"div",5)(13,"div",6),c(14),p(15,"translate"),r(),l(16,"div",7),c(17),p(18,"translateKey"),r(),E(19,tje,3,3,"div",8),E(20,ije,3,4,"div",7),l(21,"div",6),c(22),p(23,"translate"),r(),l(24,"div",7),c(25),p(26,"translateKey"),r(),l(27,"div",6),c(28),p(29,"translate"),r(),l(30,"div",7),c(31),p(32,"yesNo"),r(),l(33,"div",6),c(34),p(35,"translate"),r(),l(36,"div",7),c(37),p(38,"yesNo"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_REPORT"),a(),I(i.reportData.coreReport?-1:2),a(5),v(" ",m(8,14,"labels.catalogs.Report")," : "),a(3),h(i.reportData.reportName),a(4),v("",m(15,16,"labels.inputs.Report Type"),":"),a(3),v(" ",Ft(18,18,i.reportData.reportType,"text")," "),a(2),I(i.reportData.reportSubType?19:-1),a(),I(i.reportData.reportSubType?20:-1),a(2),v("",m(23,21,"labels.inputs.Report Category"),":"),a(3),v(" ",Ft(26,23,i.reportData.reportCategory,"catalogs")," "),a(3),v("",m(29,26,"labels.inputs.Core Report"),":"),a(3),v(" ",m(32,28,i.reportData.coreReport)," "),a(3),v("",m(35,30,"labels.inputs.User Report"),":"),a(3),v(" ",m(38,32,i.reportData.useReport)," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Qo,he,ki,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.report-name[_ngcontent-%COMP%]{margin:18px}"]})}}return e})();var nje=()=>["../"];function oje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Country Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Country Code")," "),a(3),h(m(5,4,"labels.commons.must consist of 2 alphabetic characters")))}function sje(e,o){if(e&1){let t=Y();l(0,"div",10)(1,"button",13),c(2),p(3,"translate"),r(),l(4,"button",14),R("click",function(){V(t);let i=w();return q(i.addQuestion())}),c(5),p(6,"translate"),r()()}if(e&2){let t=w();a(),g("routerLink",oe(8,nje)),a(),v(" ",m(3,4,"labels.buttons.Cancel")," "),a(2),g("disabled",!(t.surveyForm.get("key").valid&&t.surveyForm.get("name").valid&&t.surveyForm.get("countryCode").valid)),a(),v(" ",m(6,6,"labels.buttons.Proceed")," ")}}function cje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Value")," "),a(3),h(m(5,4,"labels.commons.must be an integer between -9999 and 9999")))}function fje(e,o){if(e&1){let t=Y();l(0,"div",27)(1,"div",29)(2,"mat-form-field",30)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",31),E(7,mje,7,9,"mat-error"),r(),l(8,"mat-form-field",30)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",32),E(13,dje,7,9,"mat-error"),E(14,uje,6,6,"mat-error"),r(),l(15,"div",33)(16,"div",34)(17,"button",35),p(18,"translate"),R("click",function(){let i=V(t).$index,s=w().$index,d=w();return q(d.removeResponse(d.getResponseDatas(s),i))}),b(19,"fa-icon",36),r()()()()()}if(e&2){let t=o.$implicit,n=o.$index,i=w().$index,s=w();a(),g("formGroupName",n),a(3),h(m(5,8,"labels.inputs.Text")),a(3),I(t.controls.text.hasError("required")?7:-1),a(3),h(m(11,10,"labels.inputs.Value")),a(3),I(t.controls.value.hasError("required")?13:-1),a(),I(t.controls.value.hasError("pattern")?14:-1),a(3),g("matTooltip",m(18,12,"labels.buttons.Delete"))("disabled",s.getResponseDatas(i).controls.length===1)}}function hje(e,o){if(e&1){let t=Y();l(0,"mat-card-actions",28)(1,"button",37),R("click",function(){V(t);let i=w(2);return q(i.cancelSurvey())}),c(2),p(3,"translate"),r(),l(4,"button",24),R("click",function(){V(t);let i=w(2);return q(i.addQuestion())}),b(5,"fa-icon",25),c(6),p(7,"translate"),p(8,"translate"),r(),l(9,"button",38),c(10),p(11,"translate"),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,5,"labels.buttons.Cancel")," "),a(4),le(" ",m(7,7,"labels.buttons.Add")," ",m(8,9,"labels.heading.Question")," "),a(3),g("disabled",!t.surveyForm.valid),a(),v(" ",m(11,11,"labels.buttons.Submit")," ")}}function gje(e,o){if(e&1){let t=Y();l(0,"mat-card",12)(1,"mat-card-content")(2,"div",15)(3,"div",16)(4,"h2",17),c(5),p(6,"translate"),r(),l(7,"button",18),R("click",function(){let i=V(t).$index,s=w();return q(s.removeQuestion(i))}),b(8,"fa-icon",19),c(9),p(10,"translate"),p(11,"translate"),r()(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",5),E(17,cje,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",20),E(23,pje,7,9,"mat-error"),r(),l(24,"mat-form-field",8)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"textarea",9),r(),b(29,"mat-divider",21),l(30,"div",22)(31,"h4",23),c(32),p(33,"translate"),r(),l(34,"button",24),R("click",function(){let i=V(t).$index,s=w();return q(s.addResponse(i))}),b(35,"fa-icon",25),c(36),p(37,"translate"),p(38,"translate"),r()(),l(39,"div",26),R("cdkDropListDropped",function(i){let s=V(t).$index,d=w();return q(d.dropResponse(i,s))}),Se(40,fje,20,14,"div",27,Pe),r()()(),l(42,"div"),E(43,hje,12,13,"mat-card-actions",28),r()()}if(e&2){let t=o.$implicit,n=o.$index,i=o.$count,s=w();a(2),g("formGroupName",n),a(3),le("",m(6,16,"labels.heading.Question")," ",n+1),a(2),g("disabled",s.questionDatas.controls.length===1),a(2),le(" ",m(10,18,"labels.buttons.Delete")," ",m(11,20,"labels.heading.Question")," "),a(5),h(m(15,22,"labels.inputs.Key")),a(3),I(t.controls.key.hasError("required")?17:-1),a(3),h(m(21,24,"labels.inputs.Text")),a(3),I(t.controls.text.hasError("required")?23:-1),a(3),h(m(27,26,"labels.inputs.Description")),a(3),g("inset",!0),a(3),h(m(33,28,"labels.heading.Options")),a(4),le(" ",m(37,30,"labels.buttons.Add")," ",m(38,32,"labels.inputs.Option")," "),a(4),we(s.getResponseDatas(n).controls),a(3),I(n===i-1?43:-1)}}var Ix=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht)}ngOnInit(){this.createSurveyForm()}createSurveyForm(){this.surveyForm=this.formBuilder.group({key:["",ce.required],name:["",ce.required],countryCode:["",[ce.required,ce.pattern("^\\s*([A-Za-z]{2})?\\s*$")]],description:[""],questionDatas:this.formBuilder.array([])})}get questionDatas(){return this.surveyForm.get("questionDatas")}getResponseDatas(t){return this.surveyForm.get(["questionDatas",t,"responseDatas"])}createQuestionForm(){return this.formBuilder.group({key:["",ce.required],text:["",ce.required],description:[""],responseDatas:this.formBuilder.array([this.createResponseForm()]),sequenceNo:[""]})}addQuestion(){this.questionDatas.push(this.createQuestionForm()),this.updateSequenceNumber()}removeQuestion(t){this.questionDatas.removeAt(t),this.updateSequenceNumber()}createResponseForm(){return this.formBuilder.group({text:["",ce.required],value:["",[ce.required,ce.pattern("^\\s*[-]?\\d{0,4}\\s*$")]],sequenceNo:[""]})}addResponse(t){this.getResponseDatas(t).push(this.createResponseForm()),this.updateSequenceNumber()}removeResponse(t,n){t.removeAt(n),this.updateSequenceNumber()}updateSequenceNumber(){for(let t=0;t{n.cancel&&this.router.navigate(["../"],{relativeTo:this.route})})}dropQuestion(t){Os(this.questionDatas.controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}dropResponse(t,n){Os(this.getResponseDatas(n).controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}submit(){this.surveyForm.patchValue({countryCode:this.surveyForm.value.countryCode.toUpperCase()}),this.systemService.createSurvey(this.surveyForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-survey"]],decls:34,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column","gap-4percent"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","maxlength","32","required","","formControlName","key"],["matInput","","maxlength","255","required","","formControlName","name"],["matInput","","maxlength","2","required","","formControlName","countryCode"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"flex-fill","layout-row","layout-align-center","gap-5px","layout-xs-column"],["cdkDropList","",1,"layout-column","gap-4percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","questionDatas"],["type","button","mat-raised-button","",3,"routerLink"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],[1,"flex-fill","gap-2percent","responsive-column","layout-row-wrap",3,"formGroupName"],[1,"flex-98","layout-row-wrap","gap-2percent","align-between","align-items-center"],[1,"mat-h2"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","trash",1,"m-r-10"],["matInput","","maxlength","255","required","","formControlName","text"],[3,"inset"],[1,"flex-98","layout-row","align-between","align-items-center"],[1,"mat-h4"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["cdkDropList","",1,"flex-fill","layout-row-wrap","gap-2percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","responseDatas",1,"flex-fill","layout-row-wrap","gap-2percent"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],[1,"flex-fill","layout-row-wrap","gap-2percent",3,"formGroupName"],[1,"flex-43"],["matInput","","required","","formControlName","text"],["matInput","","required","","formControlName","value"],[1,"flex-8"],[1,"delete-wrapper"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["icon","trash","size","lg"],["type","button","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"form",1),R("ngSubmit",function(){return i.submit()}),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"mat-form-field",4)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",5),E(11,oje,7,9,"mat-error"),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),E(17,aje,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",7),E(23,rje,7,9,"mat-error"),E(24,lje,6,6,"mat-error"),r(),l(25,"mat-form-field",8)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"textarea",9),r(),E(30,sje,7,9,"div",10),r()()(),l(31,"div",11),R("cdkDropListDropped",function(d){return i.dropQuestion(d)}),Se(32,gje,44,34,"mat-card",12,Pe),r()()()()),n&2&&(a(),g("formGroup",i.surveyForm),a(7),h(m(9,10,"labels.inputs.Key")),a(3),I(i.surveyForm.controls.key.hasError("required")?11:-1),a(3),h(m(15,12,"labels.inputs.Name")),a(3),I(i.surveyForm.controls.name.hasError("required")?17:-1),a(3),h(m(21,14,"labels.inputs.Country Code")),a(3),I(i.surveyForm.controls.countryCode.hasError("required")?23:-1),a(),I(i.surveyForm.controls.countryCode.hasError("pattern")?24:-1),a(3),h(m(28,16,"labels.inputs.Description")),a(3),I(i.questionDatas.length?-1:30),a(2),we(i.questionDatas.controls))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,la,La,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ln,Tp,Pp,ke,Ri,wi,si,he],styles:[".delete-wrapper[_ngcontent-%COMP%]{padding:17.5px 0 0}h2[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:0}.mat-card[_ngcontent-%COMP%] .mat-divider-horizontal.mat-divider-inset[_ngcontent-%COMP%]{margin:1em 0 2em}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}"]})}}return e})();function _je(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Cje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Country Code")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Country Code")," "),a(3),h(m(5,4,"labels.commons.must consist of 2 alphabetic characters")))}function bje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Key")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Sje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Text")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pje(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Value")),a(3),h(m(5,4,"labels.commons.must be an integer between -9999 and 9999")))}function Tje(e,o){if(e&1){let t=Y();l(0,"div",24)(1,"div",26)(2,"mat-form-field",27)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",28),E(7,Sje,7,9,"mat-error"),r(),l(8,"mat-form-field",27)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",29),E(13,wje,7,9,"mat-error"),E(14,Pje,6,6,"mat-error"),r(),l(15,"div",30)(16,"div",31)(17,"button",32),p(18,"translate"),R("click",function(){let i=V(t).$index,s=w().$index,d=w();return q(d.removeResponse(d.getResponseDatas(s),i))}),b(19,"fa-icon",33),r()()()()()}if(e&2){let t=o.$implicit,n=o.$index,i=w().$index,s=w();a(),g("formGroupName",n),a(3),h(m(5,8,"labels.inputs.Text")),a(3),I(t.get("text").hasError("required")?7:-1),a(3),h(m(11,10,"labels.inputs.Value")),a(3),I(t.get("value").hasError("required")?13:-1),a(),I(t.get("value").hasError("pattern")?14:-1),a(3),g("matTooltip",m(18,12,"labels.buttons.Delete"))("disabled",s.getResponseDatas(i).controls.length===1)}}function Mje(e,o){if(e&1){let t=Y();l(0,"mat-card-actions",25)(1,"button",34),R("click",function(){V(t);let i=w(2);return q(i.cancelSurvey())}),c(2),p(3,"translate"),r(),l(4,"button",21),R("click",function(){V(t);let i=w(2);return q(i.addQuestion())}),b(5,"fa-icon",22),c(6),p(7,"translate"),p(8,"translate"),r(),l(9,"button",35),c(10),p(11,"translate"),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,5,"labels.buttons.Cancel")," "),a(4),le(" ",m(7,7,"labels.buttons.Add")," ",m(8,9,"labels.heading.Question")," "),a(3),g("disabled",!t.surveyForm.valid),a(),v(" ",m(11,11,"labels.text.Edit Survey")," ")}}function Dje(e,o){if(e&1){let t=Y();l(0,"mat-card",11)(1,"mat-card-content")(2,"div",12)(3,"div",13)(4,"h2",14),c(5),p(6,"translate"),r(),l(7,"button",15),R("click",function(){let i=V(t).$index,s=w();return q(s.removeQuestion(i))}),b(8,"fa-icon",16),c(9),p(10,"translate"),p(11,"translate"),r()(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",5),E(17,bje,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",17),E(23,yje,7,9,"mat-error"),r(),l(24,"mat-form-field",8)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"textarea",9),r(),b(29,"mat-divider",18),l(30,"div",19)(31,"h4",20),c(32),p(33,"translate"),r(),l(34,"button",21),R("click",function(){let i=V(t).$index,s=w();return q(s.addResponse(i))}),b(35,"fa-icon",22),c(36),p(37,"translate"),p(38,"translate"),r()(),l(39,"div",23),R("cdkDropListDropped",function(i){let s=V(t).$index,d=w();return q(d.dropResponse(i,s))}),Se(40,Tje,20,14,"div",24,Pe),r()()(),l(42,"div"),E(43,Mje,12,13,"mat-card-actions",25),r()()}if(e&2){let t=o.$implicit,n=o.$index,i=o.$count,s=w();a(2),g("formGroupName",n),a(3),le("",m(6,16,"labels.heading.Question")," ",n+1),a(2),g("disabled",s.questionDatas.controls.length===1),a(2),le(" ",m(10,18,"labels.buttons.Delete")," ",m(11,20,"labels.heading.Question")," "),a(5),h(m(15,22,"labels.inputs.Key")),a(3),I(t.get("key").hasError("required")?17:-1),a(3),h(m(21,24,"labels.inputs.Text")),a(3),I(t.get("text").hasError("required")?23:-1),a(3),h(m(27,26,"labels.inputs.Description")),a(3),g("inset",!0),a(3),h(m(33,28,"labels.heading.Options")),a(4),le(" ",m(37,30,"labels.buttons.Add")," ",m(38,32,"labels.inputs.Option")," "),a(4),we(s.getResponseDatas(n).controls),a(3),I(n===i-1?43:-1)}}var Ox=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.createSurveyForm(),this.route.data.subscribe(t=>{this.prepareSurveyForm(t.survey)})}prepareSurveyForm(t){this.surveyForm.get("key").setValue(t.key),this.surveyForm.get("name").setValue(t.name),this.surveyForm.get("countryCode").setValue(t.countryCode),this.surveyForm.get("description").setValue(t.description),this.prepareQuestionDatas(this.questionDatas,t.questionDatas)}prepareQuestionDatas(t,n){n.forEach((i,s)=>{this.addQuestion();let d=t.at(s);d.get("key").setValue(i.key),d.get("text").setValue(i.text),d.get("description").setValue(i.description),this.prepareResponseDatas(d.get("responseDatas"),i.responseDatas,s)})}prepareResponseDatas(t,n,i){n.forEach((s,d)=>{d&&this.addResponse(i);let u=t.at(d);u.get("text").setValue(s.text),u.get("value").setValue(s.value)})}createSurveyForm(){this.surveyForm=this.formBuilder.group({key:["",ce.required],name:["",ce.required],countryCode:["",[ce.required,ce.pattern("^\\s*([A-Za-z]{2})?\\s*$")]],description:[""],questionDatas:this.formBuilder.array([])})}get questionDatas(){return this.surveyForm.get("questionDatas")}getResponseDatas(t){return this.surveyForm.get(["questionDatas",t,"responseDatas"])}createQuestionForm(){return this.formBuilder.group({key:["",ce.required],text:["",ce.required],description:[""],responseDatas:this.formBuilder.array([this.createResponseForm()]),sequenceNo:[""]})}addQuestion(){this.questionDatas.push(this.createQuestionForm()),this.updateSequenceNumber()}removeQuestion(t){this.questionDatas.removeAt(t),this.updateSequenceNumber()}createResponseForm(){return this.formBuilder.group({text:["",ce.required],value:["",[ce.required,ce.pattern("^\\s*[-]?\\d{0,4}\\s*$")]],sequenceNo:[""]})}addResponse(t){this.getResponseDatas(t).push(this.createResponseForm()),this.updateSequenceNumber()}removeResponse(t,n){t.removeAt(n),this.updateSequenceNumber()}updateSequenceNumber(){for(let t=0;t{n.cancel&&this.router.navigate(["../"],{relativeTo:this.route})})}dropQuestion(t){Os(this.questionDatas.controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}dropResponse(t,n){Os(this.getResponseDatas(n).controls,t.previousIndex,t.currentIndex),this.updateSequenceNumber()}submit(){this.surveyForm.patchValue({countryCode:this.surveyForm.value.countryCode.toUpperCase()}),this.systemService.editSurvey(this.route.snapshot.paramMap.get("id"),this.surveyForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-survey"]],decls:33,vars:17,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column","gap-4percent"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","maxlength","32","required","","formControlName","key"],["matInput","","maxlength","255","required","","formControlName","name"],["matInput","","maxlength","2","required","","formControlName","countryCode"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["cdkDropList","",1,"layout-column","gap-4percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","questionDatas"],[1,"flex-fill","gap-2percent","responsive-column","layout-row-wrap",3,"formGroupName"],[1,"flex-98","layout-row-wrap","gap-2percent","align-between","align-items-center"],[1,"mat-h2"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","trash",1,"m-r-10"],["matInput","","maxlength","255","required","","formControlName","text"],[3,"inset"],[1,"flex-98","layout-row","align-between","align-items-center"],[1,"mat-h4"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["cdkDropList","",1,"flex-fill","layout-row-wrap","gap-2percent",3,"cdkDropListDropped"],["cdkDrag","","cdkDragLockAxis","y","formArrayName","responseDatas",1,"flex-fill","layout-row-wrap","gap-2percent"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],[1,"flex-fill","layout-row-wrap","gap-2percent",3,"formGroupName"],[1,"flex-43"],["matInput","","required","","formControlName","text"],["matInput","","required","","formControlName","value"],[1,"flex-8"],[1,"delete-wrapper"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip","disabled"],["icon","trash","size","lg"],["type","button","mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"form",1),R("ngSubmit",function(){return i.submit()}),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"mat-form-field",4)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",5),E(11,_je,7,9,"mat-error"),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),E(17,Cje,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",7),E(23,vje,7,9,"mat-error"),E(24,xje,6,6,"mat-error"),r(),l(25,"mat-form-field",8)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"textarea",9),r()()()(),l(30,"div",10),R("cdkDropListDropped",function(d){return i.dropQuestion(d)}),Se(31,Dje,44,34,"mat-card",11,Pe),r()()()()),n&2&&(a(),g("formGroup",i.surveyForm),a(7),h(m(9,9,"labels.inputs.Key")),a(3),I(i.surveyForm.controls.key.hasError("required")?11:-1),a(3),h(m(15,11,"labels.inputs.Name")),a(3),I(i.surveyForm.controls.name.hasError("required")?17:-1),a(3),v("",m(21,13,"labels.inputs.Country Code")," "),a(3),I(i.surveyForm.controls.countryCode.hasError("required")?23:-1),a(),I(i.surveyForm.controls.countryCode.hasError("pattern")?24:-1),a(3),h(m(28,15,"labels.inputs.Description")),a(4),we(i.questionDatas.controls))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,la,La,Ue,Je,Et,Fe,Be,ut,ze,xe,Ln,Tp,Pp,ke,Ri,wi,si,he],styles:[".delete-wrapper[_ngcontent-%COMP%]{padding:17.5px 0 0}h2[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:0}.mat-card[_ngcontent-%COMP%] .mat-divider-horizontal.mat-divider-inset[_ngcontent-%COMP%]{margin:1em 0 2em}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}"]})}}return e})();var Eje=()=>["create"],Ije=()=>[10,25,50,100],Oje=e=>[e];function Aje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Key")))}function Fje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.key)}}function kje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Bje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Rje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function Nje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function Lje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Country Code")))}function Vje(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.countryCode)}}function qje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function zje(e,o){if(e&1&&(l(0,"td",21)(1,"div",22),b(2,"fa-icon",23),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit,n=w();a(),g("className",n.isActive(t.validFrom,t.validTo)?"enabled":"disabled"),a(),g("matTooltip",Le(n.isActive(t.validFrom,t.validTo)?m(4,5,"labels.inputs.Enabled"):m(3,3,"labels.inputs.Disabled")))}}function Hje(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function Gje(e,o){if(e&1){let t=Y();l(0,"button",26),R("click",function(i){V(t);let s=w().$implicit;return w().activate(s),q(i.stopPropagation())}),b(1,"fa-icon",27),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Activate")," "))}function jje(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(i){V(t);let s=w().$implicit;return w().deactivate(s),q(i.stopPropagation())}),b(1,"fa-icon",29),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Deactivate")," "))}function $je(e,o){if(e&1&&(l(0,"td",21),E(1,Gje,4,3,"button",24),E(2,jje,4,3,"button",25),r()),e&2){let t=o.$implicit,n=w();a(),I(n.isActive(t.validFrom,t.validTo)?-1:1),a(),I(n.isActive(t.validFrom,t.validTo)?2:-1)}}function Uje(e,o){e&1&&b(0,"tr",30)}function Wje(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,Oje,t.id))}}var Ax=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.displayedColumns=["key","name","description","countryCode","status","action"],this.route.data.subscribe(t=>{this.surveysData=t.surveys})}isActive(t,n){let i=new Date().toISOString().split("T")[0];return i>=t&&i<=n}ngOnInit(){this.setSurveys(),this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"status":return this.isActive(t.validFrom,t.validTo);case"action":return this.isActive(t.validFrom,t.validTo);default:return t[n]}}}setSurveys(){this.dataSource=new Wt(this.surveysData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}activate(t){this.systemService.activateSurvey(t.id).subscribe(()=>{let n=new Date().toISOString().split("T")[0];t.validFrom=n,t.validTo=n})}deactivate(t){this.systemService.deactivateSurvey(t.id).subscribe(()=>{let n=new Date;n.setDate(n.getDate()-1);let i=n.toISOString().split("T")[0];t.validTo=i})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-surveys"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:13,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","key"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","description"],["matColumnDef","countryCode"],["matColumnDef","status"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-button","","color","accent"],["mat-button","","color","warn"],["mat-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-button","","color","warn",3,"click"],["icon","lock",1,"m-r-10"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"div",4)(7,"mat-form-field",5)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",6),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(12,"div",7)(13,"table",8),X(14,9),F(15,Aje,3,3,"th",10)(16,Fje,2,1,"td",11),Z(),X(17,12),F(18,kje,3,3,"th",10)(19,Bje,2,1,"td",11),Z(),X(20,13),F(21,Rje,3,3,"th",10)(22,Nje,2,1,"td",11),Z(),X(23,14),F(24,Lje,3,3,"th",10)(25,Vje,2,1,"td",11),Z(),X(26,15),F(27,qje,3,3,"th",10)(28,zje,5,7,"td",11),Z(),X(29,16),F(30,Hje,3,3,"th",10)(31,$je,3,2,"td",11),Z(),F(32,Uje,1,0,"tr",17)(33,Wje,1,3,"tr",18),r(),b(34,"mat-paginator",19),r()()),n&2&&(a(),g("routerLink",oe(11,Eje)),a(2),v(" ",m(4,7,"labels.buttons.Create Surveys")," "),a(6),h(m(10,9,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,Ije)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();function Qje(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){V(t);let i=w();return q(i.onEdit())}),b(1,"fa-icon",11),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function Yje(e,o){if(e&1&&(l(0,"th"),c(1),p(2,"titlecase"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t))}}function Jje(e,o){if(e&1&&(l(0,"td"),c(1),r()),e&2){let t=o.$implicit,n=w().$implicit;a(),v(" ",n[t]," ")}}function Kje(e,o){if(e&1&&(l(0,"tr"),Se(1,Jje,2,1,"td",null,Pe),r()),e&2){let t=w(2);a(),we(t.displayedColumns)}}function Xje(e,o){if(e&1&&(l(0,"div",9)(1,"mat-card")(2,"mat-card-content")(3,"div"),c(4),p(5,"translate"),r(),l(6,"div",12)(7,"div",13)(8,"b"),c(9),p(10,"translate"),r()(),l(11,"div",14),c(12),r(),l(13,"div",6)(14,"b"),c(15),p(16,"translate"),r()(),l(17,"div",14),c(18),r()(),l(19,"div",15)(20,"div",16)(21,"b"),c(22),p(23,"translate"),r()(),l(24,"div",14),c(25),r()(),l(26,"div",17)(27,"div")(28,"b"),c(29),p(30,"translate"),r()(),l(31,"table",18)(32,"tr"),Se(33,Yje,3,3,"th",null,Pe),r(),Se(35,Kje,3,0,"tr",null,Pe),r()()()()()),e&2){let t=o.$implicit,n=o.$index,i=w();a(4),le("",m(5,9,"labels.heading.Question"),": ",n+1),a(5),v("",m(10,11,"labels.inputs.Key"),":"),a(3),v(" ",t.key," "),a(3),v("",m(16,13,"labels.inputs.Text"),":"),a(3),v(" ",t.text," "),a(4),v("",m(23,15,"labels.inputs.Description"),":"),a(3),v(" ",t.description," "),a(4),v("",m(30,17,"labels.inputs.Option"),": "),a(4),we(i.displayedColumns),a(2),we(t.responseDatas)}}var Fx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.dialog=T(Ht),this.router=T(qe),this.displayedColumns=["text","value"],this.route.data.subscribe(t=>{this.surveyData=t.survey})}onEdit(){this.router.navigate(["./edit"],{relativeTo:this.route})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-survey"]],decls:45,vars:25,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[1,"container","m-b-20"],[1,"layout-column"],[3,"inset"],[1,"layout-row-wrap"],[1,"flex-40","flex-lt-md-50","header"],[1,"flex-60","flex-lt-md-50"],[1,"questions"],[1,"survey-questions"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["id","key-text",1,"layout-row"],[1,"flex-25","header"],[1,"flex-40","flex-50-lt-md"],["id","description",1,"layout-row"],[1,"flex-20","flex-50-lt-md","header"],["id","questionaire",1,"layout-column"],["id","response"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Qje,4,3,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-header",3)(5,"mat-card-title"),c(6),p(7,"translate"),r(),b(8,"mat-divider",4),r(),l(9,"mat-card-content")(10,"div",5)(11,"div",6)(12,"b"),c(13),p(14,"translate"),r()(),l(15,"div",7),c(16),r(),l(17,"div",6)(18,"b"),c(19),p(20,"translate"),r()(),l(21,"div",7),c(22),r(),l(23,"div",6)(24,"b"),c(25),p(26,"translate"),r()(),l(27,"div",7),c(28),r(),l(29,"div",6)(30,"b"),c(31),p(32,"translate"),r()(),l(33,"div",7),c(34),r()()()()(),l(35,"div",2)(36,"mat-card",8)(37,"mat-card-header",3)(38,"mat-card-title"),c(39),p(40,"translate"),r(),b(41,"mat-divider",4),r(),l(42,"mat-card-content"),Se(43,Xje,37,19,"div",9,Pe),r()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_REPORT"),a(5),h(m(7,13,"labels.buttons.Survey")),a(2),g("inset",!0),a(5),v("",m(14,15,"labels.inputs.Key"),":"),a(3),v(" ",i.surveyData.key," "),a(3),v("",m(20,17,"labels.inputs.Name"),":"),a(3),v(" ",i.surveyData.name," "),a(3),v("",m(26,19,"labels.inputs.Country Code"),":"),a(3),v(" ",i.surveyData.countryCode," "),a(3),v("",m(32,21,"labels.inputs.Description"),":"),a(3),v(" ",i.surveyData.description," "),a(5),h(m(40,23,"labels.inputs.Questions")),a(2),g("inset",!0),a(2),we(i.surveyData.questionDatas))},dependencies:[ue,fe,Ue,Je,xe,Ke,ke,sa,Qo,Ri,v0,he],styles:[".mat-card[_ngcontent-%COMP%]{margin:5px}.survey-questions[_ngcontent-%COMP%]{margin-bottom:10px}#key-text[_ngcontent-%COMP%], #description[_ngcontent-%COMP%], #questionaire[_ngcontent-%COMP%]{margin:10px}#response[_ngcontent-%COMP%]{width:100%}#response[_ngcontent-%COMP%] th[_ngcontent-%COMP%], #response[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{text-align:left;width:100px}#response[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:#ddd}mat-card-header[_ngcontent-%COMP%]{margin-bottom:12px}"]})}}return e})();var Zje=()=>["../"];function e$e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Role Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function t$e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Role Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var kx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.authService=T(Ia)}ngOnInit(){this.createRoleForm()}createRoleForm(){this.roleForm=this.formBuilder.group({name:["",ce.required],description:["",ce.required]})}submit(){this.systemService.createRole(this.roleForm.value).subscribe(t=>{un.OIDC.oidcServerEnabled&&this.authService.createRole(t.resourceId,this.roleForm.value.name,this.roleForm.value.description),this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-add-role"]],decls:24,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,e$e,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),E(16,t$e,7,9,"mat-error"),r()()(),l(17,"mat-card-actions",5)(18,"button",6),c(19),p(20,"translate"),r(),l(21,"button",7),c(22),p(23,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.roleForm),a(5),h(m(8,9,"labels.inputs.Name")),a(3),I(i.roleForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,11,"labels.inputs.Description")),a(3),I(i.roleForm.controls.description.hasError("required")?16:-1),a(2),g("routerLink",oe(17,Zje)),a(),v(" ",m(20,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.roleForm.valid),a(),v(" ",m(23,15,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var i$e=()=>["../../"];function n$e(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Bx=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.route=T(Ie),this.router=T(qe),this.authService=T(Ia),this.route.data.subscribe(t=>{this.roleData=t.role})}ngOnInit(){this.createRoleForm()}createRoleForm(){this.roleForm=this.formBuilder.group({name:[{value:this.roleData.name,disabled:!0},ce.required],description:[this.roleData.description,ce.required]})}submit(){this.systemService.updateRole(this.roleForm.value,this.roleData.id).subscribe(()=>{un.OIDC.oidcServerEnabled&&this.authService.updateRole(this.roleData.id,this.roleForm.get("name")?.value,this.roleForm.value.description),this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-role"]],decls:23,vars:17,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","disabled","","formControlName","name"],["matInput","","required","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),r(),l(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",4),E(15,n$e,7,9,"mat-error"),r()()(),l(16,"mat-card-actions",5)(17,"button",6),c(18),p(19,"translate"),r(),l(20,"button",7),c(21),p(22,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.roleForm),a(5),h(m(8,8,"labels.inputs.Role Name")),a(5),h(m(13,10,"labels.inputs.Role Description")),a(3),I(i.roleForm.controls.description.hasError("required")?15:-1),a(2),g("routerLink",oe(16,i$e)),a(),v(" ",m(19,12,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.roleForm.valid||i.roleForm.pristine),a(),v(" ",m(22,14,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}span[_ngcontent-%COMP%]{font-size:1rem}.roleName[_ngcontent-%COMP%]{line-height:3rem}"]})}}return e})();var o$e=["buttonAddRole"],a$e=["templateButtonAddRole"],r$e=["tableRolesandPermissions"],l$e=["templateTableRolesandPermissions"],s$e=()=>["add"],c$e=()=>[10,25,50,100],p$e=e=>[e,"edit"],m$e=e=>[e];function d$e(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function u$e(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function f$e(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function h$e(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function g$e(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function _$e(e,o){if(e&1&&(l(0,"td",27)(1,"div",28),b(2,"fa-icon",29),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.disabled===!0?"false":"true"),a(),g("matTooltip",t.disabled===!0?m(3,2,"labels.inputs.Disabled"):m(4,4,"labels.inputs.Enabled"))}}function C$e(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function v$e(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),l(1,"fa-icon",33),c(2),p(3,"translate"),r()()}if(e&2){let t=w().$implicit;g("routerLink",Nt(4,p$e,t.id)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," ")}}function x$e(e,o){if(e&1&&(l(0,"td",27),E(1,v$e,4,6,"button",31),r()),e&2){let t=o.$implicit;a(),I(t.name!=="Super user"?1:-1)}}function b$e(e,o){e&1&&b(0,"tr",34)}function y$e(e,o){if(e&1&&b(0,"tr",35),e&2){let t=o.$implicit;g("routerLink",Nt(1,m$e,t.id))}}function S$e(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",36),c(4),p(5,"translate"),r(),l(6,"div",37)(7,"button",38),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Add Role")),a(3),v("",m(5,7,"labels.text.To create a new role"),"."),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function w$e(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",37)(4,"button",38),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(34);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(16),u=ve(38);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Search bar to filter roles"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function P$e(e,o){if(e&1){let t=Y();l(0,"h4",36),c(1),p(2,"translate"),l(3,"a",40),c(4),p(5,"translate"),r()(),l(6,"div",37)(7,"button",38),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",39),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of roles defined within the organization"),": "),a(3),h(m(5,7,"labels.inputs.Manage Roles and Permission")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Rx=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","description","disabled","actions"],this.route.data.subscribe(t=>{this.roleData=t.roles})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setRoles()}routeEdit(t){t.stopPropagation()}setRoles(){this.dataSource=new Wt(this.roleData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showRolesandPermissionPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonAddRole,this.buttonAddRole.nativeElement,"bottom",!0)}),this.configurationWizardService.showRolesandPermissionList===!0&&setTimeout(()=>{this.showPopover(this.templateTableRolesandPermissions,this.tableRolesandPermissions.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showRolesandPermissionPage=!1,this.configurationWizardService.showRolesandPermissionList=!1,this.configurationWizardService.showUsers=!0,this.router.navigate(["/appusers"])}previousStep(){this.configurationWizardService.showRolesandPermissionPage=!1,this.configurationWizardService.showRolesandPermissionList=!1,this.configurationWizardService.showRolesandPermission=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-roles-and-permissions"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(o$e,5),Ee(a$e,5),Ee(r$e,5),Ee(l$e,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonAddRole=s.first),Te(s=Me())&&(i.templateButtonAddRole=s.first),Te(s=Me())&&(i.tableRolesandPermissions=s.first),Te(s=Me())&&(i.templateTableRolesandPermissions=s.first)}},decls:39,vars:13,consts:[["buttonAddRole",""],["filter",""],["tableRolesandPermissions",""],["templateButtonAddRole",""],["templateFilter",""],["templateTableRolesandPermissions",""],[1,"container","m-b-20","layout-row","layout-align-end","gap-20px",3,"routerLink"],[1,"in-block"],["mat-raised-button","","color","primary"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","disabled"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-cell",""],["mat-icon-button","","color","primary",3,"routerLink"],["mat-icon-button","","color","primary",3,"click","routerLink"],["icon","edit"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895364/Manage+Roles+and+Permissions","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0)(3,"button",8),b(4,"fa-icon",9),c(5),p(6,"translate"),r()()(),l(7,"div",10)(8,"div",11,1)(10,"mat-form-field",12)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",13),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(15,"div",14,2)(17,"table",15),X(18,16),F(19,d$e,3,3,"th",17)(20,u$e,2,1,"td",18),Z(),X(21,19),F(22,f$e,3,3,"th",17)(23,h$e,2,1,"td",18),Z(),X(24,20),F(25,g$e,3,3,"th",17)(26,_$e,5,6,"td",18),Z(),X(27,21),F(28,C$e,3,3,"th",22)(29,x$e,2,1,"td",18),Z(),F(30,b$e,1,0,"tr",23)(31,y$e,1,3,"tr",24),r(),b(32,"mat-paginator",25),r()(),F(33,S$e,16,15,"ng-template",null,3,ti)(35,w$e,13,12,"ng-template",null,4,ti)(37,P$e,16,15,"ng-template",null,5,ti)}n&2&&(g("routerLink",oe(11,s$e)),a(5),v(" ",m(6,7,"labels.buttons.Add Role")," "),a(7),h(m(13,9,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,c$e)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,wi,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var B5=Ds(vd());function T$e(e,o){if(e&1){let t=Y();l(0,"button",24),R("click",function(){V(t);let i=w();return q(i.disableRolesConfirmation())}),b(1,"fa-icon",25),c(2),p(3,"translate"),p(4,"translate"),r()}if(e&2){let t=w();g("disabled",t.rolePermissionService.name==="Super user"),a(2),le(" ",m(3,3,"labels.buttons.Disable")," ",m(4,5,"labels.inputs.Role")," ")}}function M$e(e,o){if(e&1){let t=Y();l(0,"button",1),R("click",function(){V(t);let i=w();return q(i.enableRolesConfirmation())}),b(1,"fa-icon",26),c(2),p(3,"translate"),p(4,"translate"),r()}if(e&2){let t=w();g("disabled",t.rolePermissionService.name==="Super user"),a(2),le(" ",m(3,3,"labels.buttons.Enable")," ",m(4,5,"labels.inputs.Role")," ")}}function D$e(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"button",27),R("click",function(){V(t);let i=w();return q(i.selectAll())}),c(2),p(3,"translate"),r(),l(4,"button",28),R("click",function(){V(t);let i=w();return q(i.deselectAll())}),c(5),p(6,"translate"),r()()}e&2&&(a(2),v(" ",m(3,2,"labels.buttons.Select All")," "),a(3),v(" ",m(6,4,"labels.buttons.Deselect All")," "))}function E$e(e,o){if(e&1){let t=Y();l(0,"mat-list-item",29),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showPermissions(i))}),l(1,"span",30),c(2),r()()}if(e&2){let t=o.$implicit,n=w();g("ngClass",n.selectedItem===t?"active":"inactive"),a(2),v(" ",n.formatName(t)," ")}}function I$e(e,o){if(e&1&&(l(0,"div",22)(1,"div",31)(2,"div",32)(3,"mat-checkbox",33),c(4),r()()()()),e&2){let t=o.$implicit,n=w();a(2),g("formGroupName",t.id),a(),g("id",Le(t.code)),a(),v(" ",n.permissionName(t.code)," ")}}function O$e(e,o){if(e&1){let t=Y();l(0,"div",23)(1,"mat-card-actions")(2,"button",34),R("click",function(){V(t);let i=w();return i.cancel(),q(i.restoreCheckboxes())}),c(3),p(4,"translate"),r(),l(5,"button",27),R("click",function(){V(t);let i=w();return q(i.submit())}),c(6),p(7,"translate"),r()()()}e&2&&(a(3),v(" ",m(4,2,"labels.buttons.Cancel")," "),a(3),v(" ",m(7,4,"labels.buttons.Submit")," "))}var Nx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.translateService=T(yi),this.dialog=T(Ht),this.authService=T(Ia),this.previousGrouping="",this.groupings=[],this.selectedItem="",this.isDisabled=!0,this.checkboxesChanged=!1,this.bValuesOnly=[],this.tempPermissionUIData={},this.permissions={permissions:[]},this.route.data.subscribe(t=>{this.rolePermissionService=t.roledetails})}ngOnInit(){this.permissions={permissions:[]},this.createForm(),this.groupRules(),this.selectedItem="special",this.showPermissions("special"),this.route.params.subscribe(t=>{this.roleId=t.id})}createForm(){this.formGroup=this.formBuilder.group({roster:this.formBuilder.array(this.rolePermissionService.permissionUsageData.map(t=>this.createMemberGroup(t)))})}createMemberGroup(t){return this.formBuilder.group(qt(at({},t),{code:[t.code,ce.required],selected:[{value:t.selected,disabled:!0},ce.required]}))}groupRules(){this.tempPermissionUIData={};for(let t in this.rolePermissionService.permissionUsageData)if(this.rolePermissionService.permissionUsageData[t]){this.rolePermissionService.permissionUsageData[t].grouping!==this.currentGrouping&&(this.currentGrouping=this.rolePermissionService.permissionUsageData[t].grouping,this.groupings.push(this.currentGrouping),this.tempPermissionUIData[this.currentGrouping]={permissions:[]});let n={code:this.rolePermissionService.permissionUsageData[t].code,id:+t,selected:this.rolePermissionService.permissionUsageData[t].selected};this.tempPermissionUIData[this.currentGrouping].permissions.push(n)}}showPermissions(t){this.permissions=this.tempPermissionUIData[t],this.selectedItem=t,this.previousGrouping=t}formatName(t){if(t.indexOf("portfolio_")>-1&&(t=t.replace("portfolio_","")),t.indexOf("transaction_")>-1){let n=t.split("_");t=n[1]+" "+n[0].charAt(0).toUpperCase()+n[0].slice(1)+"s"}return t=t.charAt(0).toUpperCase()+t.slice(1),t}permissionName(t){return t=t||"",t=t.replace(/_/g," "),this.previousGrouping==="report"&&(t=t.replace(/READ/g,"View")),t}backupCheckValues(){this.backupform=B5.cloneDeep(this.formGroup)}restoreCheckboxes(){this.formGroup=B5.cloneDeep(this.backupform)}isRoleEnable(t){return t}editRoles(){this.isDisabled=!1,this.formGroup.controls.roster.enable()}cancel(){this.isDisabled=!0,this.formGroup.controls.roster.disable()}submit(){let t=this.formGroup.get("roster").value,n={},i={permissions:{}};for(let s=0;s{})}selectAll(){let t=this.formGroup.get("roster");for(let n=0;n{n.delete&&this.systemService.deleteRole(this.roleId).subscribe(()=>{un.OIDC.oidcServerEnabled&&this.authService.deleteRole(this.roleId),this.router.navigate(["/system/roles-and-permissions"])})})}enableRolesConfirmation(){this.dialog.open(tk,{data:{enableContext:this.translateService.instant("labels.inputs.Role")+" "+this.roleId}}).afterClosed().subscribe(n=>{n.enable&&this.systemService.enableRole(this.roleId).subscribe(()=>{this.router.navigate(["/system/roles-and-permissions"])})})}disableRolesConfirmation(){this.dialog.open(ik,{data:{disableContext:this.translateService.instant("labels.inputs.Role")+" "+this.roleId}}).afterClosed().subscribe(n=>{n.disable&&this.systemService.disableRole(this.roleId).subscribe(()=>{this.router.navigate(["/system/roles-and-permissions"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-role"]],decls:50,vars:29,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","danger",3,"disabled"],["mat-raised-button","","color","primary",3,"disabled"],["mat-raised-button","","color","warn",3,"click","disabled"],["icon","trash",1,"m-r-10"],[1,"container","m-b-20"],[1,"mat-elevation-z8"],[1,"layout-row-wrap"],[1,"flex-40","flex-lt-md-50","header"],[1,"flex-60","flex-lt-md-50"],[1,"mat-elevation-z8","container"],[1,"permission-selected","layout-row"],[1,"flex-75"],[1,"flex-25","layout-row","layout-xs-column","layout-align-end","gap-5px","select-deselect"],[1,"layout-row"],[1,"layout-column","flex-30"],[3,"ngClass"],[3,"vertical"],[1,"flex-70","layout-column","list-permission"],[3,"submit","formGroup"],[1,"display-permissions"],[1,"layout-row","layout-align-center","gap-5px","layout-xs-column"],["mat-raised-button","","color","danger",3,"click","disabled"],["icon","lock",1,"m-r-10"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["mat-raised-button","","color","default",3,"click"],[3,"click","ngClass"],[1,"grouping-name"],["formArrayName","roster"],[3,"formGroupName"],["name","cp","formControlName","selected",3,"id"],["type","button","mat-raised-button","",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),R("click",function(){return i.editRoles(),i.backupCheckValues()}),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),E(5,T$e,5,7,"button",3),E(6,M$e,5,7,"button",4),l(7,"button",5),R("click",function(){return i.deleteRole()}),b(8,"fa-icon",6),c(9),p(10,"translate"),p(11,"translate"),r()(),l(12,"div",7)(13,"mat-card",8)(14,"mat-card-content")(15,"div",9)(16,"div",10)(17,"b"),c(18),p(19,"translate"),r()(),l(20,"div",11),c(21),r(),l(22,"div",10)(23,"b"),c(24),p(25,"translate"),r()(),l(26,"div",11),c(27),r()()()()(),l(28,"div",12)(29,"mat-card"),X(30),l(31,"div",13)(32,"div",14)(33,"h3"),c(34),p(35,"translate"),l(36,"strong"),c(37),r()()(),E(38,D$e,7,6,"div",15),r(),l(39,"div",16)(40,"div",17)(41,"mat-list"),Se(42,E$e,3,2,"mat-list-item",18,Pe),r()(),b(44,"mat-divider",19),l(45,"div",20)(46,"form",21),R("submit",function(){return i.submit()}),Se(47,I$e,5,4,"div",22,Pe),r()()(),Z(),E(49,O$e,8,6,"div",23),r()()),n&2&&(a(),g("disabled",i.rolePermissionService.name==="Super user"),a(2),v(" ",m(4,17,"labels.text.Edit Role")," "),a(2),I(i.isRoleEnable(i.rolePermissionService.disabled)?-1:5),a(),I(i.isRoleEnable(i.rolePermissionService.disabled)?6:-1),a(),g("disabled",i.rolePermissionService.name==="Super user"),a(2),le(" ",m(10,19,"labels.buttons.Delete")," ",m(11,21,"labels.inputs.Role")," "),a(9),v("",m(19,23,"labels.inputs.Name"),":"),a(3),v(" ",i.rolePermissionService.name," "),a(3),v("",m(25,25,"labels.inputs.Role Description"),":"),a(3),v(" ",i.rolePermissionService.description," "),a(7),v(" ",m(35,27,"labels.buttons.Permissions"),": "),a(3),h(i.formatName(i.previousGrouping)),a(),I(i.isDisabled?-1:38),a(4),we(i.groupings),a(2),g("vertical",!0),a(2),g("formGroup",i.formGroup),a(),we(i.permissions.permissions),a(2),I(i.isDisabled?-1:49))},dependencies:[ue,co,fe,tt,$e,Xe,Ze,et,la,La,Ue,Je,Et,xe,fi,ke,vl,Vo,Ri,he],styles:[".display-permissions[_ngcontent-%COMP%]{padding-top:15px}span[_ngcontent-%COMP%]{font-size:1rem}mat-list-item[_ngcontent-%COMP%]{cursor:pointer}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{cursor:pointer}.active[_ngcontent-%COMP%]{background-color:#f2f2f2}.grouping-name[_ngcontent-%COMP%]{padding:0 10px}.list-permission[_ngcontent-%COMP%]{padding-left:20px}.permission-selected[_ngcontent-%COMP%]{margin-top:10px;height:40px}.inactive[_ngcontent-%COMP%]{transition:all .2s ease-in-out}.inactive[_ngcontent-%COMP%]:hover{transform:scale(1.1)}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:3rem}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var A$e=["datatables"],F$e=["templateDatatables"],k$e=["codes"],B$e=["templateCodes"],R$e=["rolesandpermission"],N$e=["templateRolesandPermission"],L$e=["makerCheckerTable"],V$e=["templateMakerCheckerTable"],q$e=["configurations"],z$e=["templateConfigurations"],H$e=["schedulerJobs"],G$e=["templateSchedulerJobs"],j$e=["manageReports"],$$e=["templateManageReports"],R5=()=>["data-tables"],N5=()=>["codes"],L5=()=>["roles-and-permissions"],Lx=()=>["configure-mc-tasks"],V5=()=>["hooks"],q5=()=>["entity-to-entity-mapping"],TN=e=>({"disabled-item":e}),z5=()=>["audit-trails"],H5=()=>["reports"],G5=()=>["manage-jobs"],j5=()=>["configurations"],$5=()=>["account-number-preferences"],U5=()=>["external-services"],W5=()=>["external-events"];function U$e(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,R5)),a(),v(" ",m(2,2,"labels.text.Add new extra fields to any entity")," "))}function W$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function Q$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function Y$e(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,N5)),a(),v(" ",m(2,2,"labels.text.Codes are used to define drop down values")," "))}function J$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function K$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function X$e(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,L5)),a(),v(" ",m(2,2,"labels.text.Define or modify roles and associated permissions")," "))}function Z$e(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function eUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function tUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,Lx)),a(),v(" ",m(2,2,"labels.text.Define or modify Maker Checker tasks")," "))}function iUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function nUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function oUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,V5)),a(),v(" ",m(2,2,"labels.text.Define Hooks")," "))}function aUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function rUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function lUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,q5)),a(),v(" ",m(2,2,"labels.text.Define or modify entity to entity mappings")," "))}function sUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function cUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function pUe(e,o){e&1&&(l(0,"p",35),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Manage Surveys")," "))}function mUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function dUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function uUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,W5)),a(),v(" ",m(2,2,"labels.text.External Events configuration, to enable or disable")," "))}function fUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function hUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function gUe(e,o){if(e&1&&(l(0,"mat-list-item",15)(1,"div",16)(2,"div",17)(3,"mat-icon",18),b(4,"fa-icon",30),r(),l(5,"div",20),c(6),p(7,"translate"),E(8,uUe,3,5,"p",21),r()(),l(9,"div",22),E(10,fUe,1,0,"fa-icon",23),E(11,hUe,1,0,"fa-icon",24),r()()()),e&2){let t=w();g("routerLink",oe(8,W5)),a(2),g("routerLink",oe(9,W5)),a(4),v(" ",m(7,6,"labels.heading.Manage External Events")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function _Ue(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,z5)),a(),v(" ",m(2,2,"labels.text.Audit logs of all the activities")," "))}function CUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function vUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function xUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,H5)),a(),v(" ",m(2,2,"labels.text.Add new report and classify reports")," "))}function bUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function yUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function SUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,G5)),a(),v(" ",m(2,2,"labels.text.Manage Schedule and Workflow jobs, modify jobs")," "))}function wUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function PUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function TUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,j5)),a(),v(" ",m(2,2,"labels.text.Global configurations, Cache and Business Date")," "))}function MUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(11),q(i.stopPropagation())}),r()}}function DUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(11),q(i.stopPropagation())}),r()}}function EUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,$5)),a(),v(" ",m(2,2,"labels.text.Preferences for generating account numbers for client")," "))}function IUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(12),q(i.stopPropagation())}),r()}}function OUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(12),q(i.stopPropagation())}),r()}}function AUe(e,o){e&1&&(l(0,"p",21),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,U5)),a(),v(" ",m(2,2,"labels.text.External Services Configuration")," "))}function FUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(13),q(i.stopPropagation())}),r()}}function kUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(13),q(i.stopPropagation())}),r()}}function BUe(e,o){e&1&&(l(0,"p",35),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Two-factor authentication configuration")," "))}function RUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",42),R("click",function(i){return V(t),w().arrowBooleansToggle(14),q(i.stopPropagation())}),r()}}function NUe(e,o){if(e&1){let t=Y();l(0,"fa-icon",43),R("click",function(i){return V(t),w().arrowBooleansToggle(14),q(i.stopPropagation())}),r()}}function LUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepDatatables())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepDatatables())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Data Tables")),a(3),h(m(5,7,"labels.text.Mifos X data-tables allow the user to add custom fields")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function VUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepCodes())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepCodes())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Codes")),a(3),h(m(5,7,"labels.text.Selection you can create new drop-downs and edit")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function qUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepRolesandPermission())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepRolesandPermission())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Roles and Permissions")),a(3),h(m(5,7,"labels.text.Roles and Permissions allow the administrator to control access")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function zUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepMakerCheckerTable())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepMakerCheckerTable())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Configure Maker-Checker Tasks")),a(3),h(m(5,7,"labels.text.\u201CMaker-Checker\u201D principle requires every tasks")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function HUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepConfigurations())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepConfigurations())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Configuration")),a(3),h(m(5,7,"labels.text.Configurations page allows you to further customize")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function GUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepSchedulerJobs())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepSchedulerJobs())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Scheduler Jobs")),a(3),h(m(5,7,"labels.text.Scheduler Jobs can set batch jobs")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function jUe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepManageReports())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepManageReports())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Reports")),a(3),h(m(5,7,"labels.text.Add customized reports and edit core reports")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Vx=(()=>{class e{constructor(){this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.isDisabled=!0,this.arrowBooleans=new Array(15).fill(!1)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDatatables===!0&&setTimeout(()=>{this.showPopover(this.templateDatatables,this.datatables.nativeElement,"bottom",!0)}),this.configurationWizardService.showSystemCodes===!0&&setTimeout(()=>{this.showPopover(this.templateCodes,this.codes.nativeElement,"bottom",!0)}),this.configurationWizardService.showRolesandPermission===!0&&setTimeout(()=>{this.showPopover(this.templateRolesandPermission,this.rolesandpermission.nativeElement,"bottom",!0)}),this.configurationWizardService.showMakerCheckerTable===!0&&setTimeout(()=>{this.showPopover(this.templateMakerCheckerTable,this.makerCheckerTable.nativeElement,"bottom",!0)}),this.configurationWizardService.showConfigurations===!0&&setTimeout(()=>{this.showPopover(this.templateConfigurations,this.configurations.nativeElement,"bottom",!0)}),this.configurationWizardService.showSchedulerJobs===!0&&setTimeout(()=>{this.showPopover(this.templateSchedulerJobs,this.schedulerJobs.nativeElement,"bottom",!0)}),this.configurationWizardService.showManageReports===!0&&setTimeout(()=>{this.showPopover(this.templateManageReports,this.manageReports.nativeElement,"bottom",!0)})}nextStepDatatables(){this.configurationWizardService.showDatatables=!1,this.configurationWizardService.showDatatablesPage=!0,this.router.navigate(["/system/data-tables"])}previousStepDatatables(){this.configurationWizardService.showDatatables=!1,this.configurationWizardService.showDefineWorkingDays=!0,this.router.navigate(["/organization/working-days"])}nextStepCodes(){this.configurationWizardService.showSystemCodes=!1,this.configurationWizardService.showSystemCodesPage=!0,this.router.navigate(["/system/codes"])}previousStepCodes(){this.configurationWizardService.showSystemCodes=!1,this.configurationWizardService.showDatatablesForm=!0,this.router.navigate(["/system/data-tables/create"])}nextStepRolesandPermission(){this.configurationWizardService.showRolesandPermission=!1,this.configurationWizardService.showRolesandPermissionPage=!0,this.router.navigate(["/system/roles-and-permissions"])}previousStepRolesandPermission(){this.configurationWizardService.showRolesandPermission=!1,this.configurationWizardService.showSystemCodesForm=!0,this.router.navigate(["/system/codes/create"])}nextStepMakerCheckerTable(){this.configurationWizardService.showMakerCheckerTable=!1,this.configurationWizardService.showMakerCheckerTablePage=!0,this.router.navigate(["/system/configure-mc-tasks"])}previousStepMakerCheckerTable(){this.configurationWizardService.showMakerCheckerTable=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/users/create"])}nextStepConfigurations(){this.configurationWizardService.showConfigurations=!1,this.configurationWizardService.showConfigurationsPage=!0,this.router.navigate(["/system/configurations"])}previousStepConfigurations(){this.configurationWizardService.showConfigurations=!1,this.configurationWizardService.showMakerCheckerTableList=!0,this.router.navigate(["/system/configure-mc-tasks"])}nextStepSchedulerJobs(){this.configurationWizardService.showSchedulerJobs=!1,this.configurationWizardService.showSchedulerJobsPage=!0,this.router.navigate(["/system/scheduler-jobs"])}previousStepSchedulerJobs(){this.configurationWizardService.showSchedulerJobs=!1,this.configurationWizardService.showConfigurationsList=!0,this.router.navigate(["/system/global-configurations"])}nextStepManageReports(){this.router.navigate(["/system/reports"])}previousStepManageReports(){this.configurationWizardService.showManageReports=!1,this.configurationWizardService.showManageFunds=!0,this.router.navigate(["/organization/manage-funds"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-system"]],viewQuery:function(n,i){if(n&1&&(Ee(A$e,5),Ee(F$e,5),Ee(k$e,5),Ee(B$e,5),Ee(R$e,5),Ee(N$e,5),Ee(L$e,5),Ee(V$e,5),Ee(q$e,5),Ee(z$e,5),Ee(H$e,5),Ee(G$e,5),Ee(j$e,5),Ee($$e,5)),n&2){let s;Te(s=Me())&&(i.datatables=s.first),Te(s=Me())&&(i.templateDatatables=s.first),Te(s=Me())&&(i.codes=s.first),Te(s=Me())&&(i.templateCodes=s.first),Te(s=Me())&&(i.rolesandpermission=s.first),Te(s=Me())&&(i.templateRolesandPermission=s.first),Te(s=Me())&&(i.makerCheckerTable=s.first),Te(s=Me())&&(i.templateMakerCheckerTable=s.first),Te(s=Me())&&(i.configurations=s.first),Te(s=Me())&&(i.templateConfigurations=s.first),Te(s=Me())&&(i.schedulerJobs=s.first),Te(s=Me())&&(i.templateSchedulerJobs=s.first),Te(s=Me())&&(i.manageReports=s.first),Te(s=Me())&&(i.templateManageReports=s.first)}},decls:200,vars:141,consts:[["datatables",""],["codes",""],["rolesandpermission",""],["makerCheckerTable",""],["manageReports",""],["templateDatatables",""],["templateCodes",""],["templateRolesandPermission",""],["templateMakerCheckerTable",""],["templateConfigurations",""],["templateSchedulerJobs",""],["templateManageReports",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","table","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["matListIcon","",3,"routerLink"],["icon","list-ul","size","sm"],["icon","key","size","sm"],["icon","sitemap","size","sm"],["matLine","",3,"routerLink"],["icon","anchor","size","sm"],["icon","road","size","sm"],[3,"ngClass"],[1,"menu-left-section"],["icon","file-alt","size","sm"],["matLine","",1,"menu-explanation"],[3,"routerLink",4,"mifosxHasPermission"],["icon","money-check","size","sm"],["icon","file-word","size","sm"],["icon","clock","size","sm"],["icon","cogs","size","sm"],["icon","cog","size","sm"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",12)(1,"mat-card")(2,"div",13)(3,"div",14)(4,"mat-nav-list")(5,"div",null,0)(7,"mat-list-item",15)(8,"div",16)(9,"div",17)(10,"mat-icon",18),b(11,"fa-icon",19),r(),l(12,"div",20),c(13),p(14,"translate"),E(15,U$e,3,5,"p",21),r()(),l(16,"div",22),E(17,W$e,1,0,"fa-icon",23),E(18,Q$e,1,0,"fa-icon",24),r()()()(),l(19,"div",null,1)(21,"mat-list-item",25)(22,"div",16)(23,"div",17)(24,"mat-icon",18),b(25,"fa-icon",26),r(),l(26,"div"),c(27),p(28,"translate"),E(29,Y$e,3,5,"p",21),r()(),l(30,"div",22),E(31,J$e,1,0,"fa-icon",23),E(32,K$e,1,0,"fa-icon",24),r()()()(),l(33,"div",null,2)(35,"mat-list-item",15)(36,"div",16)(37,"div",17)(38,"mat-icon",18),b(39,"fa-icon",27),r(),l(40,"div",20),c(41),p(42,"translate"),E(43,X$e,3,5,"p",21),r()(),l(44,"div",22),E(45,Z$e,1,0,"fa-icon",23),E(46,eUe,1,0,"fa-icon",24),r()()()(),l(47,"div",null,3)(49,"mat-list-item",15)(50,"div",16)(51,"div",17)(52,"mat-icon",18),b(53,"fa-icon",28),r(),l(54,"div",29),c(55),p(56,"translate"),E(57,tUe,3,5,"p",21),r()(),l(58,"div",22),E(59,iUe,1,0,"fa-icon",23),E(60,nUe,1,0,"fa-icon",24),r()()()(),l(61,"mat-list-item",15)(62,"div",16)(63,"div",17)(64,"mat-icon",18),b(65,"fa-icon",30),r(),l(66,"div",20),c(67),p(68,"translate"),E(69,oUe,3,5,"p",21),r()(),l(70,"div",22),E(71,aUe,1,0,"fa-icon",23),E(72,rUe,1,0,"fa-icon",24),r()()(),l(73,"mat-list-item",15)(74,"div",16)(75,"div",17)(76,"mat-icon",18),b(77,"fa-icon",31),r(),l(78,"div",20),c(79),p(80,"translate"),E(81,lUe,3,5,"p",21),r()(),l(82,"div",22),E(83,sUe,1,0,"fa-icon",23),E(84,cUe,1,0,"fa-icon",24),r()()(),l(85,"mat-list-item",32)(86,"div",16)(87,"div",33)(88,"mat-icon",18),b(89,"fa-icon",34),r(),l(90,"div",20),c(91),p(92,"translate"),E(93,pUe,3,3,"p",35),r()(),l(94,"div",22),E(95,mUe,1,0,"fa-icon",23),E(96,dUe,1,0,"fa-icon",24),r()()(),F(97,gUe,12,10,"mat-list-item",36),r()(),l(98,"div",14)(99,"mat-nav-list")(100,"mat-list-item",15)(101,"div",16)(102,"div",17)(103,"mat-icon",18),b(104,"fa-icon",37),r(),l(105,"div",20),c(106),p(107,"translate"),E(108,_Ue,3,5,"p",21),r()(),l(109,"div",22),E(110,CUe,1,0,"fa-icon",23),E(111,vUe,1,0,"fa-icon",24),r()()(),l(112,"div",null,4)(114,"mat-list-item",15)(115,"div",16)(116,"div",17)(117,"mat-icon",18),b(118,"fa-icon",38),r(),l(119,"div",20),c(120),p(121,"translate"),E(122,xUe,3,5,"p",21),r()(),l(123,"div",22),E(124,bUe,1,0,"fa-icon",23),E(125,yUe,1,0,"fa-icon",24),r()()()(),l(126,"mat-list-item",15)(127,"div",16)(128,"div",17)(129,"mat-icon",18),b(130,"fa-icon",39),r(),l(131,"div",20),c(132),p(133,"translate"),E(134,SUe,3,5,"p",21),r()(),l(135,"div",22),E(136,wUe,1,0,"fa-icon",23),E(137,PUe,1,0,"fa-icon",24),r()()(),l(138,"mat-list-item",15)(139,"div",16)(140,"div",17)(141,"mat-icon"),b(142,"fa-icon",40),r(),l(143,"div",20),c(144),p(145,"translate"),E(146,TUe,3,5,"p",21),r()(),l(147,"div",22),E(148,MUe,1,0,"fa-icon",23),E(149,DUe,1,0,"fa-icon",24),r()()(),l(150,"mat-list-item",15)(151,"div",16)(152,"div",17)(153,"mat-icon",18),b(154,"fa-icon",27),r(),l(155,"div",20),c(156),p(157,"translate"),E(158,EUe,3,5,"p",21),r()(),l(159,"div",22),E(160,IUe,1,0,"fa-icon",23),E(161,OUe,1,0,"fa-icon",24),r()()(),l(162,"mat-list-item",15)(163,"div",16)(164,"div",17)(165,"mat-icon",18),b(166,"fa-icon",41),r(),l(167,"div",20),c(168),p(169,"translate"),E(170,AUe,3,5,"p",21),r()(),l(171,"div",22),E(172,FUe,1,0,"fa-icon",23),E(173,kUe,1,0,"fa-icon",24),r()()(),l(174,"mat-list-item",32)(175,"div",16)(176,"div",33)(177,"mat-icon",18),b(178,"fa-icon",27),r(),l(179,"div",20),c(180),p(181,"translate"),E(182,BUe,3,3,"p",35),r()(),l(183,"div",22),E(184,RUe,1,0,"fa-icon",23),E(185,NUe,1,0,"fa-icon",24),r()()()()()()()(),F(186,LUe,16,15,"ng-template",null,5,ti)(188,VUe,16,15,"ng-template",null,6,ti)(190,qUe,16,15,"ng-template",null,7,ti)(192,zUe,16,15,"ng-template",null,8,ti)(194,HUe,16,15,"ng-template",null,9,ti)(196,GUe,16,15,"ng-template",null,10,ti)(198,jUe,16,15,"ng-template",null,11,ti)),n&2&&(a(7),g("routerLink",oe(112,R5)),a(2),g("routerLink",oe(113,R5)),a(4),v(" ",m(14,84,"labels.heading.Manage Data tables")," "),a(2),I(i.arrowBooleans[0]?15:-1),a(2),I(i.arrowBooleans[0]?-1:17),a(),I(i.arrowBooleans[0]?18:-1),a(3),g("routerLink",oe(114,N5)),a(2),g("routerLink",oe(115,N5)),a(4),v(" ",m(28,86,"labels.heading.Manage Codes")," "),a(2),I(i.arrowBooleans[1]?29:-1),a(2),I(i.arrowBooleans[1]?-1:31),a(),I(i.arrowBooleans[1]?32:-1),a(3),g("routerLink",oe(116,L5)),a(2),g("routerLink",oe(117,L5)),a(4),v(" ",m(42,88,"labels.heading.Manage Roles and Permissions")," "),a(2),I(i.arrowBooleans[2]?43:-1),a(2),I(i.arrowBooleans[2]?-1:45),a(),I(i.arrowBooleans[2]?46:-1),a(3),g("routerLink",oe(118,Lx)),a(2),g("routerLink",oe(119,Lx)),a(3),g("routerLink",oe(120,Lx)),a(),v(" ",m(56,90,"labels.heading.Configure Maker Checker Tasks")," "),a(2),I(i.arrowBooleans[3]?57:-1),a(2),I(i.arrowBooleans[3]?-1:59),a(),I(i.arrowBooleans[3]?60:-1),a(),g("routerLink",oe(121,V5)),a(2),g("routerLink",oe(122,V5)),a(4),v(" ",m(68,92,"labels.heading.Manage Hooks")," "),a(2),I(i.arrowBooleans[4]?69:-1),a(2),I(i.arrowBooleans[4]?-1:71),a(),I(i.arrowBooleans[4]?72:-1),a(),g("routerLink",oe(123,q5)),a(2),g("routerLink",oe(124,q5)),a(4),v(" ",m(80,94,"labels.heading.Entity to Entity Mapping")," "),a(2),I(i.arrowBooleans[5]?81:-1),a(2),I(i.arrowBooleans[5]?-1:83),a(),I(i.arrowBooleans[5]?84:-1),a(),g("ngClass",Nt(125,TN,i.isDisabled)),a(6),v(" ",m(92,96,"labels.heading.Manage Surveys")," "),a(2),I(i.arrowBooleans[6]?93:-1),a(2),I(i.arrowBooleans[6]?-1:95),a(),I(i.arrowBooleans[6]?96:-1),a(),g("mifosxHasPermission","READ_EXTERNAL_EVENT_CONFIGURATION"),a(3),g("routerLink",oe(127,z5)),a(2),g("routerLink",oe(128,z5)),a(4),v(" ",m(107,98,"labels.heading.Audit Trails")," "),a(2),I(i.arrowBooleans[8]?108:-1),a(2),I(i.arrowBooleans[8]?-1:110),a(),I(i.arrowBooleans[8]?111:-1),a(3),g("routerLink",oe(129,H5)),a(2),g("routerLink",oe(130,H5)),a(4),v(" ",m(121,100,"labels.heading.Manage Reports")," "),a(2),I(i.arrowBooleans[9]?122:-1),a(2),I(i.arrowBooleans[9]?-1:124),a(),I(i.arrowBooleans[9]?125:-1),a(),g("routerLink",oe(131,G5)),a(2),g("routerLink",oe(132,G5)),a(4),v(" ",m(133,102,"labels.heading.Manage Jobs")," "),a(2),I(i.arrowBooleans[10]?134:-1),a(2),I(i.arrowBooleans[10]?-1:136),a(),I(i.arrowBooleans[10]?137:-1),a(),g("routerLink",oe(133,j5)),a(2),g("routerLink",oe(134,j5)),a(4),v(" ",m(145,104,"labels.heading.Configurations")," "),a(2),I(i.arrowBooleans[11]?146:-1),a(2),I(i.arrowBooleans[11]?-1:148),a(),I(i.arrowBooleans[11]?149:-1),a(),g("routerLink",oe(135,$5)),a(2),g("routerLink",oe(136,$5)),a(4),v(" ",m(157,106,"labels.heading.Account Number Preferences")," "),a(2),I(i.arrowBooleans[12]?158:-1),a(2),I(i.arrowBooleans[12]?-1:160),a(),I(i.arrowBooleans[12]?161:-1),a(),g("routerLink",oe(137,U5)),a(2),g("routerLink",oe(138,U5)),a(4),v(" ",m(169,108,"labels.heading.External Services")," "),a(2),I(i.arrowBooleans[13]?170:-1),a(2),I(i.arrowBooleans[13]?-1:172),a(),I(i.arrowBooleans[13]?173:-1),a(),g("ngClass",Nt(139,TN,i.isDisabled)),a(6),v(" ",m(181,110,"labels.heading.Two-Factor Authentication")," "),a(2),I(i.arrowBooleans[14]?182:-1),a(2),I(i.arrowBooleans[14]?-1:184),a(),I(i.arrowBooleans[14]?185:-1))},dependencies:[ue,co,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],styles:[".disabled-item[_ngcontent-%COMP%]{pointer-events:none;opacity:.5}"]})}}return e})();var Q5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getAccountNumberPreferences()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var qx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getAccountNumberPreferencesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var zx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getAccountNumberPreference(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Y5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getAuditTrailSearchTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var J5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getAuditTrail(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Hx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getCode(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var o1=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getCodes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var K5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getCodeValues(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var $Ue=["filter"],UUe=["templateFilter"],WUe=["configurationsTable"],QUe=["templateConfigurationsTable"],YUe=()=>[10,25,50,100],JUe=e=>[e,"edit"];function KUe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function XUe(e,o){if(e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2){let t=w().$implicit;g("matTooltip",Le(m(1,2,t.description)))}}function ZUe(e,o){if(e&1&&(l(0,"td",23)(1,"span",24),c(2),r(),E(3,XUe,2,4,"fa-icon",25),r()),e&2){let t=o.$implicit;a(2),h(t.name),a(),I(t.description?3:-1)}}function eWe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function tWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enabled")))}function iWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function nWe(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"mat-slide-toggle",26),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.enabled,i)||(s.enabled=i),q(i)}),R("click",function(){let i=V(t).$implicit,s=w();return q(s.toggleStatus(i))}),l(2,"div",27),E(3,tWe,3,3,"span"),E(4,iWe,3,3,"span"),r()()()}if(e&2){let t=o.$implicit;a(),g("name",Le(t.name)),kc("ngModel",t.enabled),a(),g("className",t.enabled?"enabled":"disabled"),a(),I(t.enabled?3:-1),a(),I(t.enabled?-1:4)}}function oWe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Value")))}function aWe(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.value)}}function rWe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.String Value")))}function lWe(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.stringValue)}}function sWe(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Date Value")))}function cWe(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dateValue))}}function pWe(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function mWe(e,o){if(e&1&&(l(0,"td",23)(1,"button",29),b(2,"fa-icon",30),r()()),e&2){let t=o.$implicit;a(),g("routerLink",Nt(1,JUe,t.id))}}function dWe(e,o){e&1&&b(0,"tr",31)}function uWe(e,o){e&1&&b(0,"tr",32)}function fWe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",33)(4,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(35);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter configurations")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function hWe(e,o){if(e&1){let t=Y();l(0,"h4",36),c(1),p(2,"translate"),l(3,"a",37),c(4),p(5,"translate"),r()(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(33);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.Global Configuration options"),": "),a(3),h(m(5,7,"labels.inputs.Global Configurations")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Gx=(()=>{class e{constructor(){this.route=T(Ie),this.alertService=T(Ur),this.systemService=T(ii),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","enabled","value","stringValue","dateValue","edit"],this.route.data.subscribe(t=>{this.configurationData=t.configurations})}ngOnInit(){this.setConfigurationData()}setConfigurationData(){this.systemService.getConfigurations().subscribe(t=>{this.configurationData=t.globalConfiguration,this.dataSource=new Wt(this.configurationData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}toggleStatus(t){this.systemService.updateConfiguration(t.id,{enabled:t.enabled}).subscribe(n=>{if(t.enabled=n.changes.enabled,t.name===Ot.businessDateConfigName){let i=t.enabled?"enabled":"disabled";this.alertService.alert({type:Ot.businessDateType+" Set Config",message:i})}})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showConfigurationsPage===!0&&setTimeout(()=>{this.showPopover(this.templateFilter,this.filter.nativeElement,"bottom",!0)}),this.configurationWizardService.showConfigurationsList===!0&&setTimeout(()=>{this.showPopover(this.templateConfigurationsTable,this.configurationsTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showConfigurationsPage=!1,this.configurationWizardService.showConfigurationsList=!1,this.configurationWizardService.showSchedulerJobs=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showConfigurationsPage=!1,this.configurationWizardService.showConfigurationsList=!1,this.configurationWizardService.showConfigurations=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-global-configurations-tab"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee($Ue,5),Ee(UUe,5),Ee(WUe,5),Ee(QUe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.filter=s.first),Te(s=Me())&&(i.templateFilter=s.first),Te(s=Me())&&(i.configurationsTable=s.first),Te(s=Me())&&(i.templateConfigurationsTable=s.first)}},decls:36,vars:8,consts:[["filter",""],["configurationsTable",""],["templateFilter",""],["templateConfigurationsTable",""],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","m-b-10"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","enabled"],["matColumnDef","value"],["matColumnDef","stringValue"],["matColumnDef","dateValue"],["matColumnDef","edit"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"m-r-10"],["icon","question-circle","matTooltipPosition","right",3,"matTooltip"],[3,"ngModelChange","click","ngModel","name"],[3,"className"],["mat-header-cell",""],["mat-button","","color","primary",3,"routerLink"],["icon","edit"],["mat-header-row",""],["mat-row",""],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895362/Global+Configuration","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0)(3,"mat-form-field",6)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",7),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(8,"div",8,1)(10,"table",9),X(11,10),F(12,KUe,3,3,"th",11)(13,ZUe,4,2,"td",12),Z(),X(14,13),F(15,eWe,3,3,"th",11)(16,nWe,5,6,"td",12),Z(),X(17,14),F(18,oWe,3,3,"th",11)(19,aWe,2,1,"td",12),Z(),X(20,15),F(21,rWe,3,3,"th",11)(22,lWe,2,1,"td",12),Z(),X(23,16),F(24,sWe,3,3,"th",11)(25,cWe,3,3,"td",12),Z(),X(26,17),F(27,pWe,3,3,"th",18)(28,mWe,3,3,"td",12),Z(),F(29,dWe,1,0,"tr",19)(30,uWe,1,0,"tr",20),r(),b(31,"mat-paginator",21),r()(),F(32,fWe,13,12,"ng-template",null,2,ti)(34,hWe,16,15,"ng-template",null,3,ti)}n&2&&(a(5),h(m(6,5,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,YUe)))},dependencies:[ue,fe,$e,Oe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,Ip,ec,Sp,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function gWe(e,o){if(e&1&&(l(0,"div")(1,"p"),c(2),p(3,"translate"),l(4,"code"),c(5),r()()()),e&2){let t=w();a(2),v(" ",m(3,2,"labels.text.Business Date functionality is not enabled"),": "),a(3),h(t.configurationName)}}function _We(e,o){if(e&1&&(l(0,"div",10)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",15),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Business Date"),": "),a(3),h(m(6,4,t.businessDate))}}function CWe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Business Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vWe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",16),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17)(5,"mat-datepicker-toggle",18)(6,"mat-datepicker",null,0),E(8,CWe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Business Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.businessDateForm.controls.businessDate.hasError("required")?8:-1)}}function xWe(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w(3);return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w(3);g("disabled",t.businessDateForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function bWe(e,o){if(e&1){let t=Y();l(0,"span"),F(1,xWe,3,4,"button",19),l(2,"button",20),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(0))}),c(3),p(4,"translate"),r()()}e&2&&(a(),g("mifosxHasPermission","UPDATE_BUSINESSDATE"),a(2),v(" ",m(4,2,"labels.buttons.Cancel")," "))}function yWe(e,o){if(e&1){let t=Y();l(0,"button",22),p(1,"translate"),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(0))}),b(2,"fa-icon",23),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit the Business Date")))}function SWe(e,o){if(e&1&&(l(0,"div",10)(1,"span",24),c(2),p(3,"translate"),r(),l(4,"span",25),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.COB Date"),": "),a(3),h(m(6,4,t.cobDate))}}function wWe(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.COB Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function PWe(e,o){if(e&1){let t=Y();l(0,"mat-form-field",16),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17)(5,"mat-datepicker-toggle",18)(6,"mat-datepicker",null,1),E(8,wWe,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.COB Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.businessDateForm.controls.cobDate.hasError("required")?8:-1)}}function TWe(e,o){if(e&1){let t=Y();l(0,"button",27),R("click",function(){V(t);let i=w(3);return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w(3);g("disabled",t.businessDateForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function MWe(e,o){e&1&&(l(0,"span"),F(1,TWe,3,4,"button",26),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_BUSINESSDATE"))}function DWe(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(1))}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Cancel")," "))}function EWe(e,o){if(e&1){let t=Y();l(0,"button",22),p(1,"translate"),R("click",function(){V(t);let i=w(2);return q(i.editInProgressToggle(1))}),b(2,"fa-icon",23),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Edit the COB Date")))}function IWe(e,o){if(e&1&&(l(0,"div")(1,"mat-card")(2,"form",4)(3,"mat-card-content")(4,"div",5)(5,"div",6)(6,"span",7),c(7),p(8,"translate"),r(),l(9,"span",8),c(10),r()()(),l(11,"div",9),E(12,_We,7,6,"div",10),E(13,vWe,9,8,"mat-form-field"),l(14,"div",11),E(15,bWe,5,4,"span"),E(16,yWe,3,4,"button",12),r()(),l(17,"div",9),E(18,SWe,7,6,"div",10),E(19,PWe,9,8,"mat-form-field"),l(20,"div",13),E(21,MWe,2,1,"span"),E(22,DWe,3,3,"button",14),E(23,EWe,3,4,"button",12),r()()()()()()),e&2){let t=w();a(2),g("formGroup",t.businessDateForm),a(5),v("",m(8,12,"labels.inputs.User date format"),": "),a(3),h(t.userDateFormat),a(2),I(t.isEditInProgress?-1:12),a(),I(t.isEditInProgress&&t.dateIndex===0?13:-1),a(2),I(t.isEditInProgress&&t.dateIndex===0?15:-1),a(),I(t.isEditInProgress?-1:16),a(2),I(t.isEditInProgress?-1:18),a(),I(t.isEditInProgress&&t.dateIndex===1?19:-1),a(2),I(t.isEditInProgress&&t.dateIndex===1?21:-1),a(),I(t.isEditInProgress&&t.dateIndex===1?22:-1),a(),I(t.isEditInProgress?-1:23)}}var jx=(()=>{class e{constructor(){this.systemService=T(ii),this.settingsService=T(Ot),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.alertService=T(Ur),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.businessDate=new Date,this.cobDate=new Date,this.dateIndex=0,this.isBusinessDateEnabled=!1,this.isEditInProgress=!1}ngOnInit(){this.alert$=this.alertService.alertEvent.subscribe(t=>{t.type===Ot.businessDateType+" Set Config"&&(this.isBusinessDateEnabled=t.message==="enabled",this.isBusinessDateEnabled&&(this.setBusinessDates(),this.createBusinessDateForm()))}),this.userDateFormat=this.settingsService.dateFormat,this.getConfigurations(),this.createBusinessDateForm()}getConfigurations(){this.systemService.getConfigurationByName(Ot.businessDateConfigName).subscribe(t=>{this.isBusinessDateEnabled=t.enabled,this.isBusinessDateEnabled&&this.setBusinessDates()})}setBusinessDates(){this.systemService.getBusinessDates().subscribe(t=>{t.forEach(n=>{n.type===Ot.businessDateType?(this.businessDate=new Date(n.date),this.businessDateForm.patchValue({businessDate:this.businessDate})):(this.cobDate=new Date(n.date),this.businessDateForm.patchValue({cobDate:this.cobDate}))})})}createBusinessDateForm(){this.businessDateForm=this.formBuilder.group({businessDate:[new Date,ce.required],cobDate:[new Date,ce.required]})}editInProgressToggle(t){this.dateIndex=t,this.isEditInProgress=!this.isEditInProgress}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=this.businessDateForm.value.businessDate,s=Ot.businessDateType;this.dateIndex===1&&(s=Ot.cobDateType);let d={date:this.dateUtils.formatDate(i,n),type:s,dateFormat:n,locale:t};this.systemService.updateBusinessDate(d).subscribe(u=>{this.getConfigurations(),this.editInProgressToggle(this.dateIndex)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-business-date-tab"]],decls:4,vars:2,consts:[["businessDatePicker",""],["cobDatePicker",""],[1,"container","space"],[1,"mat-elevation-z8"],[3,"formGroup"],[1,"flex-100","layout-row","layout-lt-md-column","space"],[1,"flex-50"],[1,"date-type","flex-40"],[1,"date-value","flex-60","m-l-30"],[1,"flex-100","layout-row","layout-lt-md-column"],[1,"flex-50","table-row"],[1,"options-wrapper","gap-2percent","flex-22"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"matTooltip"],[1,"options-wrapper","flex-22","gap-4percent"],["mat-button",""],[1,"date-value","flex-60","m-l-40"],[3,"click"],["matInput","","formControlName","businessDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-raised-button","",3,"click"],["mat-raised-button","","color","primary",3,"click","disabled"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","above",3,"click","matTooltip"],["icon","edit","size","lg"],[1,"date-type"],[1,"date-value","flex-60","m-l-80"],["mat-stroked-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-stroked-button","","color","primary",3,"click","disabled"],["mat-button","",3,"click"]],template:function(n,i){n&1&&(l(0,"div",2)(1,"div",3),E(2,gWe,6,4,"div"),E(3,IWe,24,14,"div"),r()()),n&2&&(a(2),I(i.isBusinessDateEnabled?-1:2),a(),I(i.isBusinessDateEnabled?3:-1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Ue,Je,Fe,Be,ut,ai,ze,mi,di,pi,xe,Ke,wi,si,ke,Pi,he],styles:[".space[_ngcontent-%COMP%]{padding-bottom:40px}.date-type[_ngcontent-%COMP%]{font-size:1.25rem;font-weight:400;min-width:40%}.date-value[_ngcontent-%COMP%]{display:inline;font-size:1rem;min-width:50%}.table-row[_ngcontent-%COMP%]{vertical-align:middle}"]})}}return e})();function OWe(e,o){e&1&&(l(0,"mat-tab",3),p(1,"translate"),b(2,"mifosx-business-date-tab"),r()),e&2&&g("label",Le(m(1,2,"labels.inputs.Business Date")))}var $x=(()=>{class e{constructor(){this.alertService=T(Ur),this.systemService=T(ii),this.isBusinessDateEnabled=!1}ngOnInit(){this.alert$=this.alertService.alertEvent.subscribe(t=>{t.type===Ot.businessDateType+" Set Config"&&(this.isBusinessDateEnabled=t.message==="enabled")}),this.getConfigurations()}getConfigurations(){this.systemService.getConfigurationByName(Ot.businessDateConfigName).subscribe(t=>{this.isBusinessDateEnabled=t.enabled})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-configurations"]],decls:8,vars:5,consts:[["tabGroup",""],[1,"configurations-card"],["mat-align-tabs","center"],[3,"label"]],template:function(n,i){n&1&&(l(0,"mat-card",1)(1,"mat-card-content")(2,"mat-tab-group",2,0)(4,"mat-tab",3),p(5,"translate"),b(6,"mifosx-global-configurations-tab"),r(),E(7,OWe,3,4,"mat-tab",3),r()()()),n&2&&(a(4),g("label",Le(m(5,3,"labels.inputs.Global Configurations"))),a(3),I(i.isBusinessDateEnabled?7:-1))},dependencies:[ue,fe,Ue,Je,Nr,Qr,Gx,jx,he],styles:[".configurations-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0 0 50px;min-height:500px}.configurations-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.configurations-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%]{margin-top:1.4rem;color:#fff;width:90%}.configurations-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.configurations-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.configurations-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var AWe=()=>["../.."],Ux=(()=>{class e{constructor(){this.formBuilder=T(nt),this.systemService=T(ii),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.configuration=t.configuration})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createConfigurationForm()}createConfigurationForm(){this.configurationForm=this.formBuilder.group({name:[{value:this.configuration.name,disabled:!0},ce.required],description:[{value:this.configuration.description,disabled:!0}],value:[this.configuration.value],stringValue:[this.configuration.stringValue],dateValue:[this.configuration.dateValue]})}submit(){if(this.configurationForm.value.value!=null||this.configurationForm.value.stringValue!=null||this.configurationForm.value.dateValue!=null){let t=at({},this.configurationForm.value);this.configurationForm.value.stringValue||delete t.stringValue,this.configurationForm.value.dateValue!=null?(t.locale=this.settingsService.language.code,t.dateFormat=this.settingsService.dateFormat):delete t.dateValue,this.systemService.updateConfiguration(this.configuration.id,t).subscribe(n=>{this.router.navigate(["../../"],{relativeTo:this.route})})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-configuration"]],decls:40,vars:29,consts:[["configurationDatePicker",""],[1,"container","space"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["matInput","","type","number","formControlName","value"],["matInput","","formControlName","stringValue"],[1,"flex-48",3,"click"],["matInput","","formControlName","dateValue",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),r(),l(10,"mat-form-field")(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"textarea",5),r(),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",6),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",7),r(),l(25,"mat-form-field",8),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",9)(30,"mat-datepicker-toggle",10)(31,"mat-datepicker",null,0),r()()(),l(33,"mat-card-actions",11)(34,"button",12),c(35),p(36,"translate"),r(),l(37,"button",13),c(38),p(39,"translate"),r()()()()()}if(n&2){let s=ve(32);a(2),g("formGroup",i.configurationForm),a(5),h(m(8,14,"labels.inputs.Configuration Name")),a(5),h(m(13,16,"labels.inputs.Description")),a(5),h(m(18,18,"labels.inputs.Number Value")),a(5),h(m(23,20,"labels.inputs.String Value")),a(5),h(m(28,22,"labels.inputs.Date Value")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(4),g("routerLink",oe(28,AWe)),a(),v(" ",m(36,24,"labels.buttons.Cancel")," "),a(2),g("disabled",i.configurationForm.pristine||!i.configurationForm.valid),a(),v(" ",m(39,26,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,mi,di,pi,xe,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.space[_ngcontent-%COMP%]{padding-bottom:40px}"]})}}return e})();var X5=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getConfiguration(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Wp=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getConfigurations()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Z5=Ds(vd());var FWe=["buttonEdit"],kWe=["templateButtonEdit"],BWe=["mcTable"],RWe=["templateMcTable"];function NWe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return i.editTask(),q(i.backupCheckValues())}),b(1,"fa-icon",18),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Edit")," "))}function LWe(e,o){if(e&1){let t=Y();l(0,"mat-list-item",19),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showPermissions(i))}),l(1,"span",20),c(2),r()()}if(e&2){let t=o.$implicit,n=w();g("ngClass",n.selectedItem===t?"active":"inactive"),a(2),v(" ",n.formatName(t)," ")}}function VWe(e,o){if(e&1&&(l(0,"div",15)(1,"div",21)(2,"mat-checkbox",22),c(3),r()()()),e&2){let t=o.$implicit,n=o.$index,i=w();a(),g("formGroupName",n),a(),g("id",Le(t.code)),a(),v(" ",i.permissionName(t.code)," ")}}function qWe(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w(2);return q(i.submit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Submit")," "))}function zWe(e,o){if(e&1){let t=Y();l(0,"div",16)(1,"mat-card-actions")(2,"button",23),R("click",function(){V(t);let i=w();return i.cancel(),q(i.restoreCheckboxes())}),c(3),p(4,"translate"),r(),F(5,qWe,3,3,"button",6),r()()}e&2&&(a(3),v(" ",m(4,2,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PERMISSION"))}function HWe(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",24),c(4),p(5,"translate"),r(),l(6,"div",25)(7,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",17),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(23);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Edit")),a(3),h(m(5,7,"labels.text.To add or remove a task from the Maker-Checker list")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function GWe(e,o){if(e&1){let t=Y();l(0,"h4",24),c(1),p(2,"translate"),l(3,"a",27),c(4),p(5,"translate"),r()(),l(6,"div",25)(7,"button",26),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",17),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(21);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",17),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of all maker checker tasks"),": "),a(3),h(m(5,7,"labels.inputs.Configure Maker-Checker Tasks")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Wx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.formBuilder=T(nt),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.permissionsData=[],this.groupings=[],this.currentGrouping="",this.tempPermissionUIData={},this.permissions={permissions:[]},this.formData={},this.isDisabled=!0,this.selectedItem="",this.previousGrouping="",this.checkboxesChanged=!1,this.permissionName=function(t){return t=t||"",t=t.replace(/_/g," "),this.previousGrouping==="report"&&(t=t.replace(/READ/g,"View")),t},this.formatName=function(t){if(t=t||"",t.indexOf("portfolio_")>-1&&(t=t.replace("portfolio_","")),t.indexOf("transaction_")>-1){let n=t.split("_");t=n[1]+" "+n[0].charAt(0).toUpperCase()+n[0].slice(1)+"s"}return t=t.charAt(0).toUpperCase()+t.slice(1),t},this.route.data.subscribe(t=>{this.permissionsData=t.permissions})}ngOnInit(){this.createForm(),this.setMakerCheckerTask(),this.selectedItem="portfolio",this.showPermissions("portfolio")}createForm(){this.formGroup=this.formBuilder.group({roster:this.formBuilder.array(this.permissionsData.map(t=>this.createMemberGroup(t)))})}createMemberGroup(t){return this.formBuilder.group(qt(at({},t),{code:[t.code,ce.required],selected:[{value:t.selected,disabled:!0},ce.required]}))}setMakerCheckerTask(){this.tempPermissionUIData={};for(let t of this.permissionsData){t.grouping!==this.currentGrouping&&(this.currentGrouping=t.grouping||"",this.groupings.push(this.currentGrouping),this.tempPermissionUIData[this.currentGrouping]={permissions:[]});let n={code:t.code,id:t.id,selected:t.selected};this.tempPermissionUIData[this.currentGrouping].permissions.push(n)}}showPermissions(t){let n=this.tempPermissionUIData[t];n&&(this.permissions=n,this.selectedItem=t,this.previousGrouping=t)}backupCheckValues(){this.backupform=Z5.cloneDeep(this.formGroup)}restoreCheckboxes(){this.formGroup=Z5.cloneDeep(this.backupform)}isTaskEnable(t){return t}editTask(){this.isDisabled=!1,this.formGroup.controls.roster.enable()}cancel(){this.isDisabled=!0,this.formGroup.controls.roster.disable()}submit(){let t=this.formGroup.get("roster")?.value,n={permissions:{}};Array.isArray(t)&&t.forEach(i=>{i.code&&typeof i.selected=="boolean"&&(n.permissions[i.code]=i.selected)}),this.formGroup.get("roster")?.disable(),this.checkboxesChanged=!1,this.isDisabled=!0,this.systemService.updateMakerCheckerPermission(n).subscribe(i=>{})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showMakerCheckerTablePage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonEdit,this.buttonEdit.nativeElement,"bottom",!0)}),this.configurationWizardService.showMakerCheckerTableList===!0&&setTimeout(()=>{this.showPopover(this.templateMcTable,this.mcTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showMakerCheckerTablePage=!1,this.configurationWizardService.showMakerCheckerTableList=!1,this.configurationWizardService.showConfigurations=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showMakerCheckerTablePage=!1,this.configurationWizardService.showMakerCheckerTableList=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-configure-maker-checker-tasks"]],viewQuery:function(n,i){if(n&1&&(Ee(FWe,5),Ee(kWe,5),Ee(BWe,5),Ee(RWe,5)),n&2){let s;Te(s=Me())&&(i.buttonEdit=s.first),Te(s=Me())&&(i.templateButtonEdit=s.first),Te(s=Me())&&(i.mcTable=s.first),Te(s=Me())&&(i.templateMcTable=s.first)}},decls:24,vars:4,consts:[["buttonEdit",""],["mcTable",""],["templateButtonEdit",""],["templateMcTable",""],[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],[1,"in-block"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"layout-column","flex-30"],[3,"ngClass"],[3,"vertical"],[1,"list-permission","layout-column","flex-70"],[3,"submit","formGroup"],["formArrayName","roster"],[1,"display-permissions"],[1,"layout-row","layout-align-center","gap-5px","layout-xs-column"],["mat-raised-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],[3,"click","ngClass"],[1,"grouping-name"],[3,"formGroupName"],["name","cp","formControlName","selected",3,"id"],["type","button","mat-raised-button","",3,"click"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895359/Configure+Maker-Checker+Tasks","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0),F(3,NWe,4,3,"button",6),r()(),l(4,"div",7)(5,"mat-card"),X(6),l(7,"div",8)(8,"div",9,1)(10,"mat-list"),Se(11,LWe,3,2,"mat-list-item",10,Pe),r()(),b(13,"mat-divider",11),l(14,"div",12)(15,"form",13),R("submit",function(){return V(s),q(i.submit())}),l(16,"div",14),Se(17,VWe,4,4,"div",15,Pe),r()()()(),Z(),E(19,zWe,6,4,"div",16),r()(),F(20,HWe,16,15,"ng-template",null,2,ti)(22,GWe,16,15,"ng-template",null,3,ti)}n&2&&(a(3),g("mifosxHasPermission","UPDATE_PERMISSION"),a(8),we(i.groupings),a(2),g("vertical",!0),a(2),g("formGroup",i.formGroup),a(2),we(i.permissions.permissions),a(2),I(i.isDisabled?-1:19))},dependencies:[ue,co,fe,tt,$e,Xe,Ze,et,la,La,Ue,Et,xe,fi,Ke,ke,vl,Vo,Ri,he],styles:[".display-permissions[_ngcontent-%COMP%]{padding-top:15px}span[_ngcontent-%COMP%]{font-size:1rem}mat-list-item[_ngcontent-%COMP%]{cursor:pointer}.mat-list-base[_ngcontent-%COMP%] .mat-list-item[_ngcontent-%COMP%] .mat-list-item-content[_ngcontent-%COMP%]{cursor:pointer}.active[_ngcontent-%COMP%]{background-color:#f2f2f2}.grouping-name[_ngcontent-%COMP%]{padding:0 10px}.list-permission[_ngcontent-%COMP%]{padding-left:20px}.permission-selected[_ngcontent-%COMP%]{margin-top:10px;height:40px}.inactive[_ngcontent-%COMP%]{transition:all .2s ease-in-out}.inactive[_ngcontent-%COMP%]:hover{transform:scale(1.1)}"]})}}return e})();var eD=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getMakerCheckerPermissions()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var tD=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getEntityMappings()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Qx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("S3")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Yx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("SMTP")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Jx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("NOTIFICATION")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Kx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getExternalConfiguration("SMS")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Xx=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("datatableName");return this.systemService.getDataTable(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var iD=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getDataTables()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var jWe=()=>[10,25,50,100];function $We(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w();return q(i.applyChanges())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.existAnyUpdate),a(),v(" ",m(2,2,"labels.buttons.Apply Changes")," ")}}function UWe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Event Type")))}function WWe(e,o){if(e&1&&(l(0,"td",19),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.type,"text"))}}function QWe(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function YWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enabled")))}function JWe(e,o){e&1&&(l(0,"span"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Disabled")))}function KWe(e,o){if(e&1){let t=Y();l(0,"td",19)(1,"mat-slide-toggle",20),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.enabled,i)||(s.enabled=i),q(i)}),R("click",function(){let i=V(t).$implicit,s=w();return q(s.toggleStatus(i))}),l(2,"div",21),E(3,YWe,3,3,"span"),E(4,JWe,3,3,"span"),r()()()}if(e&2){let t=o.$implicit;a(),g("name",Le(t.type)),kc("ngModel",t.enabled),a(),g("className",t.enabled?"enabled":"disabled"),a(),I(t.enabled?3:-1),a(),I(t.enabled?-1:4)}}function XWe(e,o){e&1&&b(0,"tr",22)}function ZWe(e,o){e&1&&b(0,"tr",23)}var Zx=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.externalEventConfigurations={},this.existAnyUpdate=!1,this.displayedColumns=["eventType","status"],this.route.data.subscribe(t=>{this.eventsData=t.events.externalEventConfiguration})}ngOnInit(){this.setEventDatasource()}setEventDatasource(){this.dataSource=new Wt(this.eventsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}toggleStatus(t){this.externalEventConfigurations[t.type]=t.enabled,this.existAnyUpdate=!0}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}applyChanges(){let t={externalEventConfigurations:this.externalEventConfigurations};this.systemService.putExternalEventConfiguration(t).subscribe(()=>{this.existAnyUpdate=!1})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-external-events"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:22,vars:9,consts:[["filter",""],["eventsTable",""],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"action-button","gap-25px"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","eventType"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click","disabled"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"ngModelChange","click","ngModel","name"],[3,"className"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"div",3,0)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",5),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()(),l(8,"div",6),F(9,$We,3,4,"button",7),r()(),l(10,"div",8,1)(12,"table",9),X(13,10),F(14,UWe,3,3,"th",11)(15,WWe,3,4,"td",12),Z(),X(16,13),F(17,QWe,3,3,"th",11)(18,KWe,5,6,"td",12),Z(),F(19,XWe,1,0,"tr",14)(20,ZWe,1,0,"tr",15),r(),b(21,"mat-paginator",16),r()()}n&2&&(a(5),h(m(6,6,"labels.inputs.Filter")),a(4),g("mifosxHasPermission","UPDATE_EXTERNAL_EVENT_CONFIGURATION"),a(3),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,jWe)))},dependencies:[ue,fe,$e,Fe,Be,ze,xe,Ke,_t,It,xt,vt,bt,ri,Ct,yt,Ip,ec,Sp,St,Pt,wt,Tt,kt,he,ki],styles:[".container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.table-container[_ngcontent-%COMP%]{padding-bottom:10px}"]})}}return e})();var MN=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getExternalEventConfiguration()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eb=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getHooksTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var nD=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getHooks()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var tb=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getHook(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();function eQe(e,o){e&1&&(l(0,"th",10),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Parameter")," ",m(3,4,"labels.inputs.Name")," "))}function tQe(e,o){if(e&1){let t=Y();l(0,"td",11)(1,"mat-form-field")(2,"input",12),p(3,"translate"),p(4,"translate"),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.parameterName,i)||(s.parameterName=i),q(i)}),r()()()}if(e&2){let t=o.$implicit;a(2),g("placeholder",m(3,2,"labels.inputs.Parameter")+" "+m(4,4,"labels.inputs.Name")),kc("ngModel",t.parameterName)}}function iQe(e,o){e&1&&(l(0,"th",10),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.inputs.Parameter")," ",m(3,4,"labels.inputs.Value")," "))}function nQe(e,o){if(e&1){let t=Y();l(0,"td",11)(1,"mat-form-field")(2,"input",12),p(3,"translate"),p(4,"translate"),Rc("ngModelChange",function(i){let s=V(t).$implicit;return Bc(s.parameterValue,i)||(s.parameterValue=i),q(i)}),r()()()}if(e&2){let t=o.$implicit;a(2),g("placeholder",m(3,2,"labels.inputs.Parameter")+" "+m(4,4,"labels.inputs.Value")),kc("ngModel",t.parameterValue)}}function oQe(e,o){e&1&&b(0,"th",10)}function aQe(e,o){if(e&1){let t=Y();l(0,"td",11)(1,"button",13),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.deleteParameter(i))}),b(3,"fa-icon",14),r()()}e&2&&(a(),g("matTooltip",m(2,1,"labels.buttons.Delete")))}function rQe(e,o){e&1&&b(0,"tr",15)}function lQe(e,o){e&1&&b(0,"tr",16)}var a1=(()=>{class e{constructor(){this.retrieveJob=new bi,this.columnsToDisplay=["parameterName","parameterValue","actions"]}ngOnInit(){this.updatedJobParameters=this.jobParameters,this.updatedJobParameters.push({parameterName:"",parameterValue:""})}addParameter(){this.updatedJobParameters=[...this.updatedJobParameters,{parameterName:"",parameterValue:""}]}deleteParameter(t){let n=0,i=[];for(;n({show:0}),cQe=e=>({green:e});function pQe(e,o){if(e&1){let t=Y();l(0,"div")(1,"mifosx-custom-parameters-table",6),R("retrieveData",function(i){V(t);let s=w();return q(s.runSelectedJobs(i))}),r()()}if(e&2){let t=o.$implicit;a(),g("displayName",t.displayName)("jobId",t.jobId)("jobParameters",t.jobParameters)}}function mQe(e,o){if(e&1&&(l(0,"mat-list-item",2),c(1),r()),e&2){let t=o.$implicit;g("ngClass",Nt(2,cQe,t.status)),a(),v(" ",t.message," ")}}var ib=(()=>{class e{constructor(){this.systemService=T(ii),this.data=T(Po),this.selectedJobs=[],this.messages=[]}ngOnInit(){this.selectedJobs=this.data.selectedJobs.selected.map(t=>qt(at({},t),{jobParameters:[]}))}runSelectedJobs(){this.messages=[];let t=[];this.tableComponents.forEach(n=>{t.push(n.getTableData())}),t.forEach(n=>{this.systemService.runSelectedJobWithParameters(n.jobId,{jobParameters:n.jobParameters}).then(i=>{this.messages.push({message:`${n.displayName}: ${i.statusText} (${i.status})`,status:i.ok})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-custom-parameters-popover"]],viewQuery:function(n,i){if(n&1&&Ee(a1,5),n&2){let s;Te(s=Me())&&(i.tableComponents=s)}},decls:18,vars:11,consts:[["mat-dialog-title",""],[1,"jobs-container"],[1,"message",3,"ngClass"],["mat-raised-button","","color","primary",3,"click"],["icon","play",1,"m-r-10"],["mat-raised-button","","color","warn",3,"mat-dialog-close"],[3,"retrieveData","displayName","jobId","jobParameters"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"div",1),Se(5,pQe,2,3,"div",null,Pe),r()(),l(7,"mat-list"),Se(8,mQe,2,4,"mat-list-item",2,Pe),r(),l(10,"mat-dialog-actions")(11,"button",3),R("click",function(){return i.runSelectedJobs()}),b(12,"fa-icon",4),c(13),p(14,"translate"),r(),l(15,"button",5),c(16),p(17,"translate"),r()()),n&2&&(a(),h(m(2,4,"labels.buttons.Edit Job Custom Parameters")),a(4),we(i.selectedJobs),a(3),we(i.messages),a(5),v(" ",m(14,6,"labels.buttons.Run Selected Jobs")," "),a(2),g("mat-dialog-close",oe(10,sQe)),a(),v(" ",m(17,8,"labels.buttons.Close Custom Parameters")," "))},dependencies:[ue,co,fe,xe,Wn,ho,a1,vl,Vo,Nn,ke,Un,he],styles:[".message[_ngcontent-%COMP%]{height:auto;font-weight:500;color:#f44366}.message.green[_ngcontent-%COMP%]{color:#32cd32}"]})}}return e})();function dQe(e,o){if(e&1){let t=Y();l(0,"button",11),R("click",function(){V(t);let i=w();return q(i.show=!i.show)}),c(1),r()}if(e&2){let t=w();a(),v(" ",t.buttonLabel()," ")}}var nb=(()=>{class e{constructor(){this.data=T(Po),this.translateService=T(yi),this.show=!1}ngOnInit(){this.job=this.data.job}buttonLabel(){let t=this.show?this.translateService.instant("labels.buttons.Show less"):this.translateService.instant("labels.buttons.Show more");return this.translateService.instant("labels.buttons."+t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-error-log-popover"]],decls:32,vars:25,consts:[["content",""],["mat-dialog-title",""],[1,"m-r-10"],[1,"m-b-5"],[1,"m-b-20"],[1,"header"],["colspan","4",1,"message"],[1,"note-field"],["mat-flat-button","",1,"show-button"],["align","center"],["mat-raised-button","","mat-dialog-close",""],["mat-flat-button","",1,"show-button",3,"click"]],template:function(n,i){if(n&1&&(l(0,"h2",1)(1,"span",2),c(2),p(3,"translate"),r(),c(4),r(),l(5,"mat-dialog-content")(6,"table",3)(7,"tbody")(8,"tr",4)(9,"td",5),c(10),p(11,"translate"),r(),l(12,"td"),c(13),p(14,"datetimeFormat"),r(),l(15,"td",5),c(16),p(17,"translate"),r(),l(18,"td"),c(19),p(20,"datetimeFormat"),r()(),l(21,"tr")(22,"td",6)(23,"div",7,0)(25,"span"),c(26),r()(),E(27,dQe,2,1,"button",8),r()()()()(),l(28,"mat-dialog-actions",9)(29,"button",10),c(30),p(31,"translate"),r()()),n&2){let s=ve(24);a(2),v("",m(3,13,"labels.inputs.Job Name"),":"),a(2),v("",i.job.displayName,` +`),a(6),h(m(11,15,"labels.inputs.Start Time")),a(3),h(m(14,17,i.job.lastRunHistory.jobRunStartTime)),a(3),h(m(17,19,"labels.inputs.End Time")),a(3),h(m(20,21,i.job.lastRunHistory.jobRunEndTime)),a(4),_l("show",i.show)("note-text",s.scrollHeight>18),a(3),h(i.job.lastRunHistory.jobRunErrorLog),a(),I(s.scrollHeight>18?27:-1),a(3),h(m(31,23,"labels.buttons.Close"))}},dependencies:[ue,fe,xe,Wn,ho,Nn,Un,he,Yr],styles:['.message[_ngcontent-%COMP%]{height:auto;font-weight:500}tr[_ngcontent-%COMP%]{padding-bottom:10px}span[_ngcontent-%COMP%]:not(.note){font-size:.9rem;line-height:14px}.note-text[_ngcontent-%COMP%]{height:7.95rem;overflow:hidden;display:inline-block;position:relative;text-align:left}.note-field[_ngcontent-%COMP%]:not(.show):after{content:"...";padding-left:.5rem;position:absolute;right:0;bottom:0}.show[_ngcontent-%COMP%]{overflow:visible;text-overflow:none;height:auto}button[_ngcontent-%COMP%]{background:transparent;font-size:small;border:none;padding:0;cursor:pointer}button[_ngcontent-%COMP%]:hover{text-decoration:none}']})}}return e})();function uQe(e,o){e&1&&(l(0,"th",7),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Display Name")))}function fQe(e,o){if(e&1&&(l(0,"td",8),c(1),r()),e&2){let t=o.$implicit;a(),h(t.displayName)}}function hQe(e,o){e&1&&b(0,"th",7)}function gQe(e,o){if(e&1){let t=Y();l(0,"td",8)(1,"button",9),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.removeJobFromSelection(i))}),b(3,"fa-icon",10),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"labels.buttons.Delete"))))}function _Qe(e,o){e&1&&b(0,"tr",11)}function CQe(e,o){e&1&&b(0,"tr",12)}var r1=(()=>{class e{constructor(){this.selectedJobs=[],this.confirmedJobs=new bi,this.columnsToDisplay=["displayName","actions"]}removeJobFromSelection(t){let n=0,i=[];for(;n({show:0});function xQe(e,o){if(e&1&&(l(0,"mat-list-item",3),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.message," ")}}var ob=(()=>{class e{constructor(){this.systemService=T(ii),this.data=T(Po),this.confirmedJobs=new bi,this.selectedJobs=[],this.messages=[]}ngOnInit(){this.selectedJobs=this.data.selectedJobs.selected.sort((t,n)=>t.jobId-n.jobId)}runSelectedJobs(){this.messages=[];let t=[];this.tableComponents.forEach(n=>{t=n.getTableData()}),t.forEach(n=>{this.systemService.runSelectedJob(n.jobId.toString()).then(i=>{this.messages.push({message:`${n.displayName}: ${i.statusText} (${i.status})`,status:i.ok})})}),this.confirmedJobs.emit(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-run-selected-jobs-popover"]],viewQuery:function(n,i){if(n&1&&Ee(r1,5),n&2){let s;Te(s=Me())&&(i.tableComponents=s)}},outputs:{confirmedJobs:"confirmedJobs"},decls:17,vars:12,consts:[["mat-dialog-title",""],[1,"jobs-container"],[3,"confirmedJobs","selectedJobs"],["ngClass]","{'green' : message.status}",1,"message"],["mat-raised-button","","color","primary",3,"click"],["icon","play",1,"m-r-10"],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"mat-dialog-content")(4,"div",1)(5,"mifosx-run-selected-jobs-table",2),R("confirmedJobs",function(){return i.runSelectedJobs()}),r()()(),l(6,"mat-list"),Se(7,xQe,2,1,"mat-list-item",3,Pe),r(),l(9,"mat-dialog-actions")(10,"button",4),R("click",function(){return i.runSelectedJobs()}),b(11,"fa-icon",5),c(12),p(13,"translate"),r(),l(14,"button",6),c(15),p(16,"translate"),r()()),n&2&&(a(),v("",m(2,5,"labels.heading.Selected Jobs"),":"),a(4),g("selectedJobs",i.selectedJobs),a(2),we(i.messages),a(5),v(" ",m(13,7,"labels.buttons.Confirm")," "),a(2),g("mat-dialog-close",oe(11,vQe)),a(),v(" ",m(16,9,"labels.buttons.Cancel")," "))},dependencies:[ue,fe,xe,Wn,ho,r1,vl,Vo,Nn,ke,Un,he],styles:[".message[_ngcontent-%COMP%]{height:auto;font-weight:500;color:#f44366}.message.green[_ngcontent-%COMP%]{color:#32cd32}"]})}}return e})();var bQe=["schedulerStatus"],yQe=["templateSchedulerStatus"],SQe=["jobsTable"],wQe=["templateJobsTable"],PQe=()=>[50,100],TQe=e=>[e];function MQe(e,o){if(e&1){let t=Y();l(0,"button",39),R("click",function(){V(t);let i=w();return q(i.suspendScheduler())}),b(1,"fa-icon",40),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Suspend")," "))}function DQe(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w();return q(i.activateScheduler())}),b(1,"fa-icon",40),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Activate")," "))}function EQe(e,o){if(e&1){let t=Y();l(0,"th",42)(1,"mat-checkbox",43),R("change",function(i){V(t);let s=w();return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w();a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected())}}function IQe(e,o){if(e&1){let t=Y();l(0,"mat-checkbox",46),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){V(t);let s=w().$implicit,d=w();return q(i?d.selection.toggle(s):null)}),r()}if(e&2){let t=w().$implicit,n=w();g("checked",n.selection.isSelected(t))}}function OQe(e,o){if(e&1&&(l(0,"td",44),E(1,IQe,1,1,"mat-checkbox",45),r()),e&2){let t=o.$implicit;a(),I(t.currentlyRunning?-1:1)}}function AQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function FQe(e,o){if(e&1&&(l(0,"td",48),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,TQe,t.jobId)),a(),h(t.displayName)}}function kQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Active")))}function BQe(e,o){if(e&1&&(l(0,"td",49)(1,"div",50),b(2,"fa-icon",51),p(3,"yesNo"),r()()),e&2){let t=o.$implicit;a(),g("className",t.active===!0?"currently-running":"not-currently-running"),a(),g("matTooltip",Le(m(3,3,t.active===!0)))}}function RQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Previous Run")))}function NQe(e,o){e&1&&(b(0,"fa-icon",52),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Successful"))}function LQe(e,o){e&1&&(b(0,"fa-icon",53),p(1,"translate")),e&2&&g("matTooltip",m(1,1,"tooltips.Failed"))}function VQe(e,o){if(e&1&&(l(0,"span",54),c(1),p(2,"datetimeFormat"),r()),e&2){let t=w(2).$implicit;a(),v(" ",m(2,1,t.lastRunHistory.jobRunStartTime))}}function qQe(e,o){if(e&1&&(l(0,"div"),E(1,NQe,2,3,"fa-icon",52),E(2,LQe,2,3,"fa-icon",53),E(3,VQe,3,3,"span",54),r()),e&2){let t=w().$implicit;a(),I(t.lastRunHistory.status==="success"?1:-1),a(),I(t.lastRunHistory.status!=="success"?2:-1),a(),I(t.lastRunHistory?3:-1)}}function zQe(e,o){if(e&1&&(l(0,"td",44),E(1,qQe,4,3,"div"),r()),e&2){let t=o.$implicit;a(),I(t.lastRunHistory?1:-1)}}function HQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Next Run")))}function GQe(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.nextRunTime))}}function jQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currently Running")))}function $Qe(e,o){if(e&1&&(l(0,"td",49)(1,"div",50),b(2,"fa-icon",51),p(3,"yesNo"),r()()),e&2){let t=o.$implicit;a(),g("className",t.currentlyRunning===!0?"currently-running":"not-currently-running"),a(),g("matTooltip",Le(m(3,3,t.currentlyRunning===!0)))}}function UQe(e,o){e&1&&(l(0,"th",47),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error Log")))}function WQe(e,o){if(e&1){let t=Y();l(0,"button",56),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.showErrorLog(i))}),b(2,"fa-icon",57),r()}e&2&&g("matTooltip",Le(m(1,2,"labels.inputs.Error Log")))}function QQe(e,o){if(e&1&&(l(0,"td",49),E(1,WQe,3,4,"button",55),r()),e&2){let t=o.$implicit,n=w();a(),I(n.jobWithError(t)?1:-1)}}function YQe(e,o){e&1&&b(0,"tr",58)}function JQe(e,o){if(e&1&&b(0,"tr",59),e&2){let t=o.$implicit,n=w();g("ngClass",Le(n.rowColor(t)))}}function KQe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",60)(4,"button",61),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(72);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Scheduler status"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function XQe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",60)(4,"button",61),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(70);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(34),u=ve(74);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Search bar to filter jobs"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function ZQe(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),l(3,"a",62),c(4),p(5,"translate"),r()(),l(6,"div",60)(7,"button",61),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",19),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(72);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of all scheduled batch jobs")," "),a(3),h(m(5,7,"labels.heading.Schedular Jobs")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var ab=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["select","displayName","active","previousRunTime","currentlyRunning","nextRunTime","errorLog"],this.selection=new gr(!0,[]),this.schedulerActive=!1,this.jobsCounter=0,this.route.data.subscribe(t=>{t.jobsScheduler&&(this.jobData=t.jobsScheduler[0],this.schedulerData=t.jobsScheduler[1])})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}isAllSelected(){return this.selection.selected.length===this.jobsCounter}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}ngOnInit(){this.setJobs(),this.getScheduler()}setJobs(){this.systemService.getJobs().subscribe(t=>{let n=t.sort((i,s)=>s.active-i.active||this.sortByName(i,s));this.dataSource=new Wt(n),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.jobsCounter=n.length,this.selection.clear(),this.dataSource.sortingDataAccessor=(i,s)=>{switch(s){case"previousRunStatus":return i.lastRunHistory.status;case"errorLog":return i.lastRunHistory.status;case"previousRunTime":return new Date(i.lastRunHistory.jobRunStartTime);case"nextRunTime":return new Date(i.nextRunTime);default:return i[s]}}})}sortByName(t,n){return t.displayNamen.displayName?1:0}getScheduler(){this.systemService.getScheduler().subscribe(t=>{this.schedulerData=t,this.schedulerActive=this.schedulerData.active})}suspendScheduler(){this.systemService.runCommandOnScheduler("stop").subscribe(()=>{this.getScheduler()})}activateScheduler(){this.systemService.runCommandOnScheduler("start").subscribe(()=>{this.getScheduler()})}isAnyJobSelected(){return this.selection.selected.length>0}runSelectedJobs(){this.selection.selected.forEach(t=>{this.systemService.runSelectedJob(t.jobId)})}refresh(){this.setJobs()}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showSchedulerJobsPage===!0&&setTimeout(()=>{this.showPopover(this.templateSchedulerStatus,this.schedulerStatus.nativeElement,"bottom",!0)}),this.configurationWizardService.showSchedulerJobsList===!0&&setTimeout(()=>{this.showPopover(this.templateJobsTable,this.jobsTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.openNextStepDialog()}previousStep(){this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.configurationWizardService.showSchedulerJobs=!0,this.router.navigate(["/system"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Accounting",previousStepName:"System",stepPercentage:60}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.configurationWizardService.showChartofAccounts=!0,this.router.navigate(["/accounting"])):(this.configurationWizardService.showSchedulerJobsPage=!1,this.configurationWizardService.showSchedulerJobsList=!1,this.router.navigate(["/home"]))})}openCustomParametersDialog(){this.dialog.open(ib,{data:{selectedJobs:this.selection}})}showErrorLog(t){t.lastRunHistory&&this.dialog.open(nb,{data:{job:t}})}openRunSelectedJobsDialog(){let t=this.dialog.open(ob,{data:{selectedJobs:this.selection}});t.componentInstance.confirmedJobs.subscribe(n=>{if(n){let i=this.selection.selected,s=n.map(d=>d.jobId);i.forEach(d=>{s.includes(d.jobId)||this.selection.deselect(d)}),t.close()}})}jobWithError(t){return!(t.lastRunHistory&&t.lastRunHistory.status==="success")}rowColor(t){return this.jobWithError(t)?"job-error":""}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-scheduler-jobs"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(bQe,7),Ee(yQe,7),Ee(SQe,7),Ee(wQe,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.schedulerStatus=s.first),Te(s=Me())&&(i.templateSchedulerStatus=s.first),Te(s=Me())&&(i.jobsTable=s.first),Te(s=Me())&&(i.templateJobsTable=s.first)}},decls:75,vars:36,consts:[["schedulerStatus",""],["filter",""],["jobsTable",""],["templateSchedulerStatus",""],["templateFilter",""],["templateJobsTable",""],[1,"container","m-b-20","space-top","layout-row","gap-20px"],[1,"no-m"],[1,"m-l-20","m-r-20"],["mat-raised-button","",1,"suspend"],["mat-raised-button","",1,"activate"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"space-top","layout-row","gap-10px"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","play",1,"m-r-10"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","sync",1,"m-r-10"],[1,"mat-elevation-z8","space-top"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","displayName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"routerLink",4,"matCellDef"],["matColumnDef","active"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","previousRunTime"],["matColumnDef","nextRunTime"],["matColumnDef","currentlyRunning"],["matColumnDef","errorLog"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"ngClass",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"container","space-top","layout-row","gap-10px"],["mat-raised-button","",1,"suspend",3,"click"],["icon","times-circle",1,"m-r-10"],["mat-raised-button","",1,"activate",3,"click"],["mat-header-cell",""],[1,"m-r-10",3,"change","checked","indeterminate"],["mat-cell",""],[1,"m-r-10",3,"checked"],[1,"m-r-10",3,"click","change","checked"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"routerLink"],["mat-cell","",1,"center"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["matTooltipPosition","right","icon","check-circle","size","lg",1,"success",3,"matTooltip"],["matTooltipPosition","right","icon","times-circle","size","lg",1,"fail",3,"matTooltip"],[1,"m-l-5"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"click","matTooltip"],["icon","exclamation-circle","size","lg"],["mat-header-row",""],["mat-row","",1,"select-row",3,"ngClass"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67895356/Manage+Scheduler+Jobs","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",null,0)(3,"h2",7),c(4),p(5,"translate"),l(6,"span",8),c(7),p(8,"translate"),p(9,"translate"),r()()(),E(10,MQe,4,3,"button",9),E(11,DQe,4,3,"button",10),r(),l(12,"div",11)(13,"div",12,1)(15,"mat-form-field",13)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"input",14),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(20,"div",15)(21,"button",16),R("click",function(){return V(s),q(i.openRunSelectedJobsDialog())}),b(22,"fa-icon",17),c(23),p(24,"translate"),r(),l(25,"button",16),R("click",function(){return V(s),q(i.openCustomParametersDialog())}),b(26,"fa-icon",18),c(27),p(28,"translate"),r(),l(29,"button",19),R("click",function(){return V(s),q(i.refresh())}),b(30,"fa-icon",20),c(31),p(32,"translate"),r()(),l(33,"div",21,2)(35,"table",22),X(36,23),F(37,EQe,2,2,"th",24)(38,OQe,2,1,"td",25),Z(),X(39,26),F(40,AQe,3,3,"th",27)(41,FQe,2,4,"td",28),Z(),X(42,29),F(43,kQe,3,3,"th",27)(44,BQe,4,5,"td",30),Z(),X(45,31),F(46,RQe,3,3,"th",27)(47,zQe,2,1,"td",25),Z(),X(48,32),F(49,HQe,3,3,"th",27)(50,GQe,3,3,"td",25),Z(),X(51,33),F(52,jQe,3,3,"th",27)(53,$Qe,4,5,"td",30),Z(),X(54,34),F(55,UQe,3,3,"th",27)(56,QQe,2,1,"td",30),Z(),F(57,YQe,1,0,"tr",35)(58,JQe,1,2,"tr",36),r(),b(59,"mat-paginator",37),r()(),l(60,"div",38)(61,"button",16),R("click",function(){return V(s),q(i.openRunSelectedJobsDialog())}),b(62,"fa-icon",17),c(63),p(64,"translate"),r(),l(65,"button",19),R("click",function(){return V(s),q(i.refresh())}),b(66,"fa-icon",20),c(67),p(68,"translate"),r()(),F(69,KQe,13,12,"ng-template",null,3,ti)(71,XQe,13,12,"ng-template",null,4,ti)(73,ZQe,16,15,"ng-template",null,5,ti)}n&2&&(a(4),v(" ",m(5,17,"labels.heading.Scheduler Status"),":"),a(3),h(i.schedulerActive?m(8,19,"labels.inputs.Active"):m(9,21,"labels.catalogs.Inactive")),a(3),I(i.schedulerActive?10:-1),a(),I(i.schedulerActive?-1:11),a(6),h(m(18,23,"labels.inputs.Filter")),a(4),g("disabled",!i.isAnyJobSelected()),a(2),v(" ",m(24,25,"labels.buttons.Run Selected Jobs")," "),a(2),g("disabled",!i.isAnyJobSelected()),a(2),v(" ",m(28,27,"labels.buttons.Add Custom Parameters")," "),a(4),v(" ",m(32,29,"labels.buttons.Refresh")," "),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(35,PQe)),a(2),g("disabled",!i.isAnyJobSelected()),a(2),v(" ",m(64,31,"labels.buttons.Run Selected Jobs")," "),a(4),v(" ",m(68,33,"labels.buttons.Refresh")," "))},dependencies:[ue,co,fe,Oe,Fe,Be,ze,xe,fi,ke,_t,It,xt,vt,bt,Ct,yt,ri,si,wi,St,Pt,wt,Tt,kt,he,Yr,po],styles:[".container[_ngcontent-%COMP%]{min-width:84rem;width:84rem}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.success[_ngcontent-%COMP%]{color:#32cd32}.fail[_ngcontent-%COMP%]{color:#f44366}.currently-running[_ngcontent-%COMP%]{color:#32cd32}.not-currently-running[_ngcontent-%COMP%]{color:#f44366}.errorlog[_ngcontent-%COMP%]{color:#ffa726}.job-error[_ngcontent-%COMP%]{background-color:#f7dbb7}.suspend[_ngcontent-%COMP%]{background:#32cd32;color:#fff}.activate[_ngcontent-%COMP%]{background:#f44366;color:#fff}.space-top[_ngcontent-%COMP%]{margin-top:30px}.cdk-column-displayName[_ngcontent-%COMP%], .mat-column-displayName[_ngcontent-%COMP%]{flex:0 0 5px!important}"]})}}return e})();var rb="http://www.w3.org/1999/xhtml",oD={svg:"http://www.w3.org/2000/svg",xhtml:rb,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Qc(e){var o=e+="",t=o.indexOf(":");return t>=0&&(o=e.slice(0,t))!=="xmlns"&&(e=e.slice(t+1)),oD.hasOwnProperty(o)?{space:oD[o],local:e}:e}function eYe(e){return function(){var o=this.ownerDocument,t=this.namespaceURI;return t===rb&&o.documentElement.namespaceURI===rb?o.createElement(e):o.createElementNS(t,e)}}function tYe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function lb(e){var o=Qc(e);return(o.local?tYe:eYe)(o)}function iYe(){}function Id(e){return e==null?iYe:function(){return this.querySelector(e)}}function DN(e){typeof e!="function"&&(e=Id(e));for(var o=this._groups,t=o.length,n=new Array(t),i=0;i=U&&(U=z+1);!(re=D[U])&&++U=0;)(d=n[i])&&(s&&d.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(d,s),s=d);return this}function qN(e){e||(e=hYe);function o(x,y){return x&&y?e(x.__data__,y.__data__):!x-!y}for(var t=this._groups,n=t.length,i=new Array(n),s=0;so?1:e>=o?0:NaN}function zN(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function HN(){return Array.from(this)}function GN(){for(var e=this._groups,o=0,t=e.length;o1?this.each((o==null?yYe:typeof o=="function"?wYe:SYe)(e,o,t??"")):Qp(this.node(),e)}function Qp(e,o){return e.style.getPropertyValue(o)||pb(e).getComputedStyle(e,null).getPropertyValue(o)}function PYe(e){return function(){delete this[e]}}function TYe(e,o){return function(){this[e]=o}}function MYe(e,o){return function(){var t=o.apply(this,arguments);t==null?delete this[e]:this[e]=t}}function YN(e,o){return arguments.length>1?this.each((o==null?PYe:typeof o=="function"?MYe:TYe)(e,o)):this.node()[e]}function JN(e){return e.trim().split(/^|\s+/)}function rD(e){return e.classList||new KN(e)}function KN(e){this._node=e,this._names=JN(e.getAttribute("class")||"")}KN.prototype={add:function(e){var o=this._names.indexOf(e);o<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var o=this._names.indexOf(e);o>=0&&(this._names.splice(o,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function XN(e,o){for(var t=rD(e),n=-1,i=o.length;++n=0&&(t=o.slice(n+1),o=o.slice(0,n)),{type:o,name:t}})}function $Ye(e){return function(){var o=this.__on;if(o){for(var t=0,n=-1,i=o.length,s;t=0))throw new Error(`invalid digits: ${e}`);if(o>15)return hL;let t=10**o;return function(n){this._+=n[0];for(let i=1,s=n.length;iAd)if(!(Math.abs(x*f-_*C)>Ad)||!s)this._append`L${this._x1=o},${this._y1=t}`;else{let P=n-d,S=i-u,M=f*f+_*_,D=P*P+S*S,k=Math.sqrt(M),z=Math.sqrt(y),U=s*Math.tan((sD-Math.acos((M+y-D)/(2*k*z)))/2),J=U/z,re=U/k;Math.abs(J-1)>Ad&&this._append`L${o+J*C},${t+J*x}`,this._append`A${s},${s},0,0,${+(x*P>C*S)},${this._x1=o+re*f},${this._y1=t+re*_}`}}arc(o,t,n,i,s,d){if(o=+o,t=+t,n=+n,d=!!d,n<0)throw new Error(`negative radius: ${n}`);let u=n*Math.cos(i),f=n*Math.sin(i),_=o+u,C=t+f,x=1^d,y=d?i-s:s-i;this._x1===null?this._append`M${_},${C}`:(Math.abs(this._x1-_)>Ad||Math.abs(this._y1-C)>Ad)&&this._append`L${_},${C}`,n&&(y<0&&(y=y%cD+cD),y>JYe?this._append`A${n},${n},0,1,${x},${o-u},${t-f}A${n},${n},0,1,${x},${this._x1=_},${this._y1=C}`:y>Ad&&this._append`A${n},${n},0,${+(y>=sD)},${x},${this._x1=o+n*Math.cos(s)},${this._y1=t+n*Math.sin(s)}`)}rect(o,t,n,i){this._append`M${this._x0=this._x1=+o},${this._y0=this._y1=+t}h${n=+n}v${+i}h${-n}Z`}toString(){return this._}};function gL(){return new Fd}gL.prototype=Fd.prototype;function _L(e){let o=3;return e.digits=function(t){if(!arguments.length)return o;if(t==null)o=null;else{let n=Math.floor(t);if(!(n>=0))throw new RangeError(`invalid digits: ${t}`);o=n}return e},()=>new Fd(o)}var q_n=Array.prototype.slice;function CL(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function vL(e){this._context=e}vL.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,o){switch(e=+e,o=+o,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,o):this._context.moveTo(e,o);break;case 1:this._point=2;default:this._context.lineTo(e,o);break}}};function p1(e){return new vL(e)}function xL(e){return e[0]}function bL(e){return e[1]}function pD(e,o){var t=Od(!0),n=null,i=p1,s=null,d=_L(u);e=typeof e=="function"?e:e===void 0?xL:Od(e),o=typeof o=="function"?o:o===void 0?bL:Od(o);function u(f){var _,C=(f=CL(f)).length,x,y=!1,P;for(n==null&&(s=i(P=d())),_=0;_<=C;++_)!(_0)for(var n=e[0],i=o[0],s=e[t]-n,d=o[t]-i,u=-1,f;++u<=t;)f=u/t,this._basis.point(this._beta*e[u]+(1-this._beta)*(n+f*s),this._beta*o[u]+(1-this._beta)*(i+f*d));this._x=this._y=null,this._basis.lineEnd()},point:function(e,o){this._x.push(+e),this._y.push(+o)}};var mD=(function e(o){function t(n){return o===1?new db(n):new SL(n,o)}return t.beta=function(n){return e(+n)},t})(.85);function ub(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var PL=Math.PI,nCn=PL/2;function m1(e){return(1-Math.cos(PL*e))/2}var dD={};ET(dD,{dispatch:()=>iu});var ZYe={value:()=>{}};function ML(){for(var e=0,o=arguments.length,t={},n;e=0&&(n=t.slice(i+1),t=t.slice(0,i)),t&&!o.hasOwnProperty(t))throw new Error("unknown type: "+t);return{type:t,name:n}})}fb.prototype=ML.prototype={constructor:fb,on:function(e,o){var t=this._,n=eJe(e+"",t),i,s=-1,d=n.length;if(arguments.length<2){for(;++s0)for(var t=new Array(i),n=0,i,s;nOL,now:()=>Yp,timeout:()=>g1,timer:()=>Rd,timerFlush:()=>fD});var nu=0,u1=0,d1=0,EL=1e3,hb,f1,gb=0,kd=0,_b=0,h1=typeof performance=="object"&&performance.now?performance:Date,IL=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yp(){return kd||(IL(iJe),kd=h1.now()+_b)}function iJe(){kd=0}function Bd(){this._call=this._time=this._next=null}Bd.prototype=Rd.prototype={constructor:Bd,restart:function(e,o,t){if(typeof e!="function")throw new TypeError("callback is not a function");t=(t==null?Yp():+t)+(o==null?0:+o),!this._next&&f1!==this&&(f1?f1._next=this:hb=this,f1=this),this._call=e,this._time=t,uD()},stop:function(){this._call&&(this._call=null,this._time=1/0,uD())}};function Rd(e,o,t){var n=new Bd;return n.restart(e,o,t),n}function fD(){Yp(),++nu;for(var e=hb,o;e;)(o=kd-e._time)>=0&&e._call.call(void 0,o),e=e._next;--nu}function DL(){kd=(gb=h1.now())+_b,nu=u1=0;try{fD()}finally{nu=0,oJe(),kd=0}}function nJe(){var e=h1.now(),o=e-gb;o>EL&&(_b-=o,gb=e)}function oJe(){for(var e,o=hb,t,n=1/0;o;)o._call?(n>o._time&&(n=o._time),e=o,o=o._next):(t=o._next,o._next=null,o=e?e._next=t:hb=t);f1=e,uD(n)}function uD(e){if(!nu){u1&&(u1=clearTimeout(u1));var o=e-kd;o>24?(e<1/0&&(u1=setTimeout(DL,e-h1.now()-_b)),d1&&(d1=clearInterval(d1))):(d1||(gb=h1.now(),d1=setInterval(nJe,EL)),nu=1,IL(DL))}}function g1(e,o,t){var n=new Bd;return o=o==null?0:+o,n.restart(i=>{n.stop(),e(i+o)},o,t),n}function OL(e,o,t){var n=new Bd,i=o;return o==null?(n.restart(e,o,t),n):(n._restart=n.restart,n.restart=function(s,d,u){d=+d,u=u==null?Yp():+u,n._restart(function f(_){_+=i,n._restart(f,i+=d,u),s(_)},d,u)},n.restart(e,o,t),n)}var aJe=iu("start","end","cancel","interrupt"),rJe=[],kL=0,AL=1,vb=2,Cb=3,FL=4,xb=5,_1=6;function Jp(e,o,t,n,i,s){var d=e.__transition;if(!d)e.__transition={};else if(t in d)return;lJe(e,t,{name:o,index:n,group:i,on:aJe,tween:rJe,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:kL})}function C1(e,o){var t=Cr(e,o);if(t.state>kL)throw new Error("too late; already scheduled");return t}function Hr(e,o){var t=Cr(e,o);if(t.state>Cb)throw new Error("too late; already running");return t}function Cr(e,o){var t=e.__transition;if(!t||!(t=t[o]))throw new Error("transition not found");return t}function lJe(e,o,t){var n=e.__transition,i;n[o]=t,t.timer=Rd(s,0,t.time);function s(_){t.state=AL,t.timer.restart(d,t.delay,t.time),t.delay<=_&&d(_-t.delay)}function d(_){var C,x,y,P;if(t.state!==AL)return f();for(C in n)if(P=n[C],P.name===t.name){if(P.state===Cb)return g1(d);P.state===FL?(P.state=_1,P.timer.stop(),P.on.call("interrupt",e,e.__data__,P.index,P.group),delete n[C]):+Cvb&&n.state>8&15|o>>4&240,o>>4&15|o&240,(o&15)<<4|o&15,1):t===8?yb(o>>24&255,o>>16&255,o>>8&255,(o&255)/255):t===4?yb(o>>12&15|o>>8&240,o>>8&15|o>>4&240,o>>4&15|o&240,((o&15)<<4|o&15)/255):null):(o=cJe.exec(e))?new Ml(o[1],o[2],o[3],1):(o=pJe.exec(e))?new Ml(o[1]*255/100,o[2]*255/100,o[3]*255/100,1):(o=mJe.exec(e))?yb(o[1],o[2],o[3],o[4]):(o=dJe.exec(e))?yb(o[1]*255/100,o[2]*255/100,o[3]*255/100,o[4]):(o=uJe.exec(e))?GL(o[1],o[2]/100,o[3]/100,1):(o=fJe.exec(e))?GL(o[1],o[2]/100,o[3]/100,o[4]):NL.hasOwnProperty(e)?qL(NL[e]):e==="transparent"?new Ml(NaN,NaN,NaN,0):null}function qL(e){return new Ml(e>>16&255,e>>8&255,e&255,1)}function yb(e,o,t,n){return n<=0&&(e=o=t=NaN),new Ml(e,o,t,n)}function _Je(e){return e instanceof b1||(e=Kp(e)),e?(e=e.rgb(),new Ml(e.r,e.g,e.b,e.opacity)):new Ml}function au(e,o,t,n){return arguments.length===1?_Je(e):new Ml(e,o,t,n??1)}function Ml(e,o,t,n){this.r=+e,this.g=+o,this.b=+t,this.opacity=+n}bb(Ml,au,gD(b1,{brighter(e){return e=e==null?wb:Math.pow(wb,e),new Ml(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?v1:Math.pow(v1,e),new Ml(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Ml(Ld(this.r),Ld(this.g),Ld(this.b),Pb(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zL,formatHex:zL,formatHex8:CJe,formatRgb:HL,toString:HL}));function zL(){return`#${Nd(this.r)}${Nd(this.g)}${Nd(this.b)}`}function CJe(){return`#${Nd(this.r)}${Nd(this.g)}${Nd(this.b)}${Nd((isNaN(this.opacity)?1:this.opacity)*255)}`}function HL(){let e=Pb(this.opacity);return`${e===1?"rgb(":"rgba("}${Ld(this.r)}, ${Ld(this.g)}, ${Ld(this.b)}${e===1?")":`, ${e})`}`}function Pb(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Ld(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Nd(e){return e=Ld(e),(e<16?"0":"")+e.toString(16)}function GL(e,o,t,n){return n<=0?e=o=t=NaN:t<=0||t>=1?e=o=NaN:o<=0&&(e=NaN),new Vs(e,o,t,n)}function $L(e){if(e instanceof Vs)return new Vs(e.h,e.s,e.l,e.opacity);if(e instanceof b1||(e=Kp(e)),!e)return new Vs;if(e instanceof Vs)return e;e=e.rgb();var o=e.r/255,t=e.g/255,n=e.b/255,i=Math.min(o,t,n),s=Math.max(o,t,n),d=NaN,u=s-i,f=(s+i)/2;return u?(o===s?d=(t-n)/u+(t0&&f<1?0:d,new Vs(d,u,f,e.opacity)}function UL(e,o,t,n){return arguments.length===1?$L(e):new Vs(e,o,t,n??1)}function Vs(e,o,t,n){this.h=+e,this.s=+o,this.l=+t,this.opacity=+n}bb(Vs,UL,gD(b1,{brighter(e){return e=e==null?wb:Math.pow(wb,e),new Vs(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?v1:Math.pow(v1,e),new Vs(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,o=isNaN(e)||isNaN(this.s)?0:this.s,t=this.l,n=t+(t<.5?t:1-t)*o,i=2*t-n;return new Ml(_D(e>=240?e-240:e+120,i,n),_D(e,i,n),_D(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new Vs(jL(this.h),Sb(this.s),Sb(this.l),Pb(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=Pb(this.opacity);return`${e===1?"hsl(":"hsla("}${jL(this.h)}, ${Sb(this.s)*100}%, ${Sb(this.l)*100}%${e===1?")":`, ${e})`}`}}));function jL(e){return e=(e||0)%360,e<0?e+360:e}function Sb(e){return Math.max(0,Math.min(1,e||0))}function _D(e,o,t){return(e<60?o+(t-o)*e/60:e<180?t:e<240?o+(t-o)*(240-e)/60:o)*255}function CD(e,o,t,n,i){var s=e*e,d=s*e;return((1-3*e+3*s-d)*o+(4-6*s+3*d)*t+(1+3*e+3*s-3*d)*n+d*i)/6}function WL(e){var o=e.length-1;return function(t){var n=t<=0?t=0:t>=1?(t=1,o-1):Math.floor(t*o),i=e[n],s=e[n+1],d=n>0?e[n-1]:2*i-s,u=n()=>e;function vJe(e,o){return function(t){return e+t*o}}function xJe(e,o,t){return e=Math.pow(e,t),o=Math.pow(o,t)-e,t=1/t,function(n){return Math.pow(e+n*o,t)}}function YL(e){return(e=+e)==1?Tb:function(o,t){return t-o?xJe(o,t,e):vD(isNaN(o)?t:o)}}function Tb(e,o){var t=o-e;return t?vJe(e,t):vD(isNaN(e)?o:e)}var Mb=(function e(o){var t=YL(o);function n(i,s){var d=t((i=au(i)).r,(s=au(s)).r),u=t(i.g,s.g),f=t(i.b,s.b),_=Tb(i.opacity,s.opacity);return function(C){return i.r=d(C),i.g=u(C),i.b=f(C),i.opacity=_(C),i+""}}return n.gamma=e,n})(1);function JL(e){return function(o){var t=o.length,n=new Array(t),i=new Array(t),s=new Array(t),d,u;for(d=0;dt&&(s=o.slice(t,s),u[d]?u[d]+=s:u[++d]=s),(n=n[0])===(i=i[0])?u[d]?u[d]+=i:u[++d]=i:(u[++d]=null,f.push({i:d,x:ds(n,i)})),t=xD.lastIndex;return t180?C+=360:C-_>180&&(_+=360),y.push({i:x.push(i(x)+"rotate(",null,n)-2,x:ds(_,C)})):C&&x.push(i(x)+"rotate("+C+n)}function u(_,C,x,y){_!==C?y.push({i:x.push(i(x)+"skewX(",null,n)-2,x:ds(_,C)}):C&&x.push(i(x)+"skewX("+C+n)}function f(_,C,x,y,P,S){if(_!==x||C!==y){var M=P.push(i(P)+"scale(",null,",",null,")");S.push({i:M-4,x:ds(_,x)},{i:M-2,x:ds(C,y)})}else(x!==1||y!==1)&&P.push(i(P)+"scale("+x+","+y+")")}return function(_,C){var x=[],y=[];return _=e(_),C=e(C),s(_.translateX,_.translateY,C.translateX,C.translateY,x,y),d(_.rotate,C.rotate,x,y),u(_.skewX,C.skewX,x,y),f(_.scaleX,_.scaleY,C.scaleX,C.scaleY,x,y),_=C=null,function(P){for(var S=-1,M=y.length,D;++S=0&&(o=o.slice(0,t)),!o||o==="start"})}function jJe(e,o,t){var n,i,s=GJe(o)?C1:Hr;return function(){var d=s(this,e),u=d.on;u!==n&&(i=(n=u).copy()).on(o,t),d.on=i}}function pV(e,o){var t=this._id;return arguments.length<2?Cr(this.node(),t).on.on(e):this.each(jJe(t,e,o))}function $Je(e){return function(){var o=this.parentNode;for(var t in this.__transition)if(+t!==e)return;o&&o.removeChild(this)}}function mV(){return this.on("end.remove",$Je(this._id))}function dV(e){var o=this._name,t=this._id;typeof e!="function"&&(e=Id(e));for(var n=this._groups,i=n.length,s=new Array(i),d=0;d"u"}function Kc(e,o=0){return{a:1,c:0,e,b:0,d:1,f:o}}function Xc(...e){e=Array.isArray(e[0])?e[0]:e;let o=(t,n)=>({a:t.a*n.a+t.c*n.b,c:t.a*n.c+t.c*n.d,e:t.a*n.e+t.c*n.f+t.e,b:t.b*n.a+t.d*n.b,d:t.b*n.c+t.d*n.d,f:t.b*n.e+t.d*n.f+t.f});switch(e.length){case 0:throw new Error("no matrices provided");case 1:return e[0];case 2:return o(e[0],e[1]);default:{let[t,n,...i]=e,s=o(t,n);return Xc(s,...i)}}}var{cos:Jvn,sin:Kvn,PI:Xvn}=Math;function S1(e,o=void 0,t=void 0,n=void 0){y1(o)&&(o=e);let i={a:e,c:0,e:0,b:0,d:o,f:0};return y1(t)||y1(n)?i:Xc([Kc(t,n),i,Kc(-t,-n)])}var{tan:axn}=Math;function PV(e){return rKe(e)}function rKe(e){return`matrix(${e.a},${e.b},${e.c},${e.d},${e.e},${e.f})`}function TD(e,o=1e10){return{a:Math.round(e.a*o)/o,b:Math.round(e.b*o)/o,c:Math.round(e.c*o)/o,d:Math.round(e.d*o)/o,e:Math.round(e.e*o)/o,f:Math.round(e.f*o)/o}}function lKe(e,o){function t(){this.constructor=e}t.prototype=o.prototype,e.prototype=new t}function Ab(e,o,t,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Ab.prototype),i.expected=o,i.found=t,i.location=n,i.name="SyntaxError",i}lKe(Ab,Error);function MD(e,o,t){return t=t||" ",e.length>o?e:(o-=e.length,t+=t.repeat(o),e+t.slice(0,o))}Ab.prototype.format=function(e){var o="Error: "+this.message;if(this.location){var t=null,n;for(n=0;n `+d+` `+f+` | `+s.line+" | "+_+` -`+f+" | "+TD("",i.column-1," ")+TD("",x,"^")}else o+=` - at `+d}return o};Ob.buildMessage=function(e,o){var t={literal:function(_){return'"'+i(_.text)+'"'},class:function(_){var C=_.parts.map(function(x){return Array.isArray(x)?s(x[0])+"-"+s(x[1]):s(x)});return"["+(_.inverted?"^":"")+C.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(_){return _.description}};function n(_){return _.charCodeAt(0).toString(16).toUpperCase()}function i(_){return _.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+n(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+n(C)})}function s(_){return _.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+n(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+n(C)})}function d(_){return t[_.type](_)}function u(_){var C=_.map(d),x,y;if(C.sort(),C.length>0){for(x=1,y=1;xPJ,forceCollide:()=>cy,forceLink:()=>py,forceManyBody:()=>dy,forceRadial:()=>QJ,forceSimulation:()=>my,forceX:()=>YJ,forceY:()=>JJ});function PJ(e,o){var t,n=1;e==null&&(e=0),o==null&&(o=0);function i(){var s,d=t.length,u,f=0,_=0;for(s=0;s=(x=(u+_)/2))?u=x:_=x,(D=t>=(y=(f+C)/2))?f=y:C=y,i=s,!(s=s[k=D<<1|M]))return i[k]=d,e;if(P=+e._x.call(null,s.data),S=+e._y.call(null,s.data),o===P&&t===S)return d.next=s,i?i[k]=d:e._root=d,e;do i=i?i[k]=new Array(4):e._root=new Array(4),(M=o>=(x=(u+_)/2))?u=x:_=x,(D=t>=(y=(f+C)/2))?f=y:C=y;while((k=D<<1|M)===(z=(S>=y)<<1|P>=x));return i[z]=s,i[k]=d,e}function DJ(e){var o,t,n=e.length,i,s,d=new Array(n),u=new Array(n),f=1/0,_=1/0,C=-1/0,x=-1/0;for(t=0;tC&&(C=i),s<_&&(_=s),s>x&&(x=s));if(f>C||_>x)return this;for(this.cover(f,_).cover(C,x),t=0;te||e>=i||n>o||o>=s;)switch(_=(oC||(u=S.y0)>x||(f=S.x1)=k)<<1|e>=D)&&(S=y[y.length-1],y[y.length-1]=y[y.length-1-M],y[y.length-1-M]=S)}else{var z=e-+this._x.call(null,P.data),U=o-+this._y.call(null,P.data),J=z*z+U*U;if(J=(y=(d+f)/2))?d=y:f=y,(M=x>=(P=(u+_)/2))?u=P:_=P,o=t,!(t=t[D=M<<1|S]))return this;if(!t.length)break;(o[D+1&3]||o[D+2&3]||o[D+3&3])&&(n=o,k=D)}for(;t.data!==e;)if(i=t,!(t=t.next))return this;return(s=t.next)&&delete t.next,i?(s?i.next=s:delete i.next,this):o?(s?o[D]=s:delete o[D],(t=o[0]||o[1]||o[2]||o[3])&&t===(o[3]||o[2]||o[1]||o[0])&&!t.length&&(n?n[k]=t:this._root=t),this):(this._root=s,this)}function kJ(e){for(var o=0,t=e.length;oy.index){var j=P-se.x-se.vx,W=S-se.y-se.vy,pe=j*j+W*W;peP+de||eeS+de||ae_.r&&(_.r=_[C].r)}function f(){if(o){var _,C=o.length,x;for(t=new Array(C),_=0;_[o(re,ee,d),re])),J;for(D=0,u=new Array(k);D(e=(1664525*e+1013904223)%4294967296)/4294967296}function UJ(e){return e.x}function WJ(e){return e.y}var E1t=10,I1t=Math.PI*(3-Math.sqrt(5));function my(e){var o,t=1,n=.001,i=1-Math.pow(n,1/300),s=0,d=.6,u=new Map,f=Rd(x),_=iu("tick","end"),C=$J();e==null&&(e=[]);function x(){y(),_.call("tick",o),t1?(D==null?u.delete(M):u.set(M,S(D)),o):u.get(M)},find:function(M,D,k){var z=0,U=e.length,J,re,ee,ae,se;for(k==null?k=1/0:k*=k,z=0;z1?(_.on(M,D),o):_.on(M)}}}function dy(){var e,o,t,n,i=wa(-30),s,d=1,u=1/0,f=.81;function _(P){var S,M=e.length,D=Qd(e,UJ,WJ).visitAfter(x);for(n=P,S=0;S=u)return;(P.data!==o||P.next)&&(k===0&&(k=zs(t),J+=k*k),z===0&&(z=zs(t),J+=z*z),J({$implicit:e});function Qht(e,o){if(e&1&&(na(),gl(0,19)),e&2){let t=w(2);g("ngTemplateOutlet",t.defsTemplate)}}function Yht(e,o){if(e&1&&(na(),b(0,"path",20)),e&2){let t=o.$implicit;Dn("d",t.textPath)("id",t.id)}}function Jht(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.clusterTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function Kht(e,o){if(e&1&&(na(),l(0,"g",25),b(1,"rect"),l(2,"text",26),c(3),r()()),e&2){let t=w().$implicit;a(),Dn("width",t.dimension.width)("height",t.dimension.height)("fill",t.data==null?null:t.data.color),a(),Dn("x",10)("y",t.dimension.height/2),a(),v(" ",t.label," ")}}function Xht(e,o){if(e&1){let t=Y();na(),l(0,"g",21,1),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.onClick(i))}),F(2,Jht,1,4,"ng-container",22)(3,Kht,4,6,"g",23),r()}if(e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldClusters.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.clusterTemplate&&!t.hidden),a(),g("ngIf",!n.clusterTemplate)}}function Zht(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.nodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function egt(e,o){if(e&1&&(na(),l(0,"g",29),b(1,"rect"),l(2,"text",26),c(3),r()()),e&2){let t=w().$implicit;a(),Dn("width",t.dimension.width)("height",t.dimension.height)("fill",t.data==null?null:t.data.color),a(),Dn("x",10)("y",t.dimension.height/2),a(),v(" ",t.label," ")}}function tgt(e,o){if(e&1){let t=Y();na(),l(0,"g",27,2),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.onClick(i))})("mousedown",function(i){let s=V(t).$implicit,d=w(2);return q(d.onNodeMouseDown(i,s))}),F(2,Zht,1,4,"ng-container",22)(3,egt,4,6,"g",28),r()}if(e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldCompoundNodes.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.nodeTemplate&&!t.hidden),a(),g("ngIf",!n.nodeTemplate)}}function igt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.linkTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function ngt(e,o){if(e&1&&(na(),b(0,"path",32)),e&2){let t=w().$implicit;Dn("d",t.line)}}function ogt(e,o){if(e&1&&(na(),l(0,"g",30,3),F(2,igt,1,4,"ng-container",22)(3,ngt,1,1,"path",31),r()),e&2){let t=o.$implicit,n=w(2);g("id",t.id),a(2),g("ngIf",n.linkTemplate),a(),g("ngIf",!n.linkTemplate)}}function agt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.nodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function rgt(e,o){if(e&1&&(na(),b(0,"circle",34)),e&2){let t=w().$implicit;Dn("cx",t.dimension.width/2)("cy",t.dimension.height/2)("fill",t.data==null?null:t.data.color)}}function lgt(e,o){if(e&1){let t=Y();na(),l(0,"g",27,2),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.onClick(i))})("mousedown",function(i){let s=V(t).$implicit,d=w(2);return q(d.onNodeMouseDown(i,s))}),F(2,agt,1,4,"ng-container",22)(3,rgt,1,3,"circle",33),r()}if(e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldNodes.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.nodeTemplate&&!t.hidden),a(),g("ngIf",!n.nodeTemplate)}}function sgt(e,o){if(e&1){let t=Y();na(),l(0,"g",8),R("touchstart",function(i){V(t);let s=w();return q(s.onTouchStart(i))})("touchend",function(){V(t);let i=w();return q(i.onTouchEnd())}),l(1,"defs"),F(2,Qht,1,1,"ng-container",9)(3,Yht,1,2,"path",10),r(),l(4,"rect",11),R("mousedown",function(){V(t);let i=w();return q(i.isPanning=!0)}),r(),yF(5),l(6,"g",12),F(7,Xht,4,6,"g",13),r(),l(8,"g",14),F(9,tgt,4,6,"g",15),r(),l(10,"g",16),F(11,ogt,4,3,"g",17),r(),l(12,"g",18,0),F(14,lgt,4,6,"g",15),r()()}if(e&2){let t=w();Dn("transform",t.transform),a(2),g("ngIf",t.defsTemplate),a(),g("ngForOf",t.graph.edges),a(),Dn("width",t.dims.width*100)("height",t.dims.height*100)("transform","translate("+(-t.dims.width||0)*50+","+(-t.dims.height||0)*50+")"),a(3),g("ngForOf",t.graph.clusters)("ngForTrackBy",t.trackNodeBy),a(2),g("ngForOf",t.graph.compoundNodes)("ngForTrackBy",t.trackNodeBy),a(2),g("ngForOf",t.graph.edges)("ngForTrackBy",t.trackLinkBy),a(3),g("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy)}}function cgt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.miniMapNodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function pgt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.nodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function mgt(e,o){if(e&1&&(na(),b(0,"circle",34)),e&2){let t=w().$implicit,n=w(2);Dn("cx",t.dimension.width/2/n.minimapScaleCoefficient)("cy",t.dimension.height/2/n.minimapScaleCoefficient)("fill",t.data==null?null:t.data.color)}}function dgt(e,o){if(e&1&&(na(),l(0,"g",40,2),F(2,cgt,1,4,"ng-container",22)(3,pgt,1,4,"ng-container",22)(4,mgt,1,3,"circle",33),r()),e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldNodes.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.miniMapNodeTemplate),a(),g("ngIf",!n.miniMapNodeTemplate&&n.nodeTemplate),a(),g("ngIf",!n.nodeTemplate&&!n.miniMapNodeTemplate)}}function ugt(e,o){if(e&1){let t=Y();na(),l(0,"g",35)(1,"rect",36),R("mousedown",function(i){V(t);let s=w();return q(s.onMinimapPanTo(i))}),r(),l(2,"g")(3,"g",37),F(4,dgt,5,7,"g",38),r(),l(5,"rect",39),R("mousedown",function(){V(t);let i=w();return q(i.onMinimapDragMouseDown())}),r()()()}if(e&2){let t=w();Dn("transform",t.minimapTransform)("clip-path","url(#"+t.minimapClipPathId+")"),a(),Dn("width",t.graphDims.width/t.minimapScaleCoefficient)("height",t.graphDims.height/t.minimapScaleCoefficient),a(),vp("transform","translate("+-t.minimapOffsetX/t.minimapScaleCoefficient+"px,"+-t.minimapOffsetY/t.minimapScaleCoefficient+"px)"),a(),vp("transform","scale("+1/t.minimapScaleCoefficient+")"),a(),g("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy),a(),_l("panning",t.isMinimapPanning),Dn("transform","translate("+t.panOffsetX/t.zoomLevel/-t.minimapScaleCoefficient+","+t.panOffsetY/t.zoomLevel/-t.minimapScaleCoefficient+")")("width",t.width/t.minimapScaleCoefficient/t.zoomLevel)("height",t.height/t.minimapScaleCoefficient/t.zoomLevel)}}var LK={};function rp(){let e=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return e=`a${e}`,LK[e]?rp():(LK[e]=!0,e)}var Oy=(function(e){return e.Both="both",e.Horizontal="horizontal",e.Vertical="vertical",e})(Oy||{}),Ay=(function(e){return e.UpperLeft="UpperLeft",e.UpperRight="UpperRight",e})(Ay||{});function fgt(e,o,t,n){n=n||{};let i,s,d=null,u=0;function f(){u=n.leading===!1?0:+new Date,d=null,s=o.apply(e,i)}return function(..._){let C=+new Date;!u&&n.leading===!1&&(u=C);let x=t-(C-u);return i=_,x<=0?(clearTimeout(d),d=null,u=C,s=o.apply(e,i)):!d&&n.trailing!==!1&&(d=setTimeout(f,x)),s}}function hgt(e,o){return function(n,i,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,i,{configurable:!0,enumerable:s.enumerable,value:fgt(this,s.value,e,o)}),this[i]}}}}var VK=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}],DI=class{scale;colorDomain;domain;customColors;constructor(o,t,n){typeof o=="string"&&(o=VK.find(i=>i.name===o)),this.colorDomain=o.domain,this.domain=t,this.customColors=n,this.scale=this.generateColorScheme(o,this.domain)}generateColorScheme(o,t){return typeof o=="string"&&(o=VK.find(n=>n.name===o)),w1().range(o.domain).domain(t)}getColor(o){if(o==null)throw new Error("Value can not be null");if(typeof this.customColors=="function")return this.customColors(o);let t=o.toString(),n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(i=>i.name.toLowerCase()===t.toLowerCase())),n?n.value:this.scale(o)}};function qK({width:e,height:o}){let t=e,n=o;return t=Math.max(0,t),n=Math.max(0,n),{width:Math.floor(t),height:Math.floor(n)}}var ggt=(()=>{class e{element;zone;visible=new bi;timeout;isVisible=!1;constructor(t,n){this.element=t,this.zone=n,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){let t=()=>{if(!this.element)return;let{offsetHeight:n,offsetWidth:i}=this.element.nativeElement;n&&i?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}static \u0275fac=function(n){return new(n||e)(Zo(lf),Zo(pd))};static \u0275dir=md({type:e,selectors:[["visibility-observer"]],outputs:{visible:"visible"},standalone:!1})}return e})(),Fy=(function(e){return e.LEFT_TO_RIGHT="LR",e.RIGHT_TO_LEFT="RL",e.TOP_TO_BOTTOM="TB",e.BOTTOM_TO_TOM="BT",e})(Fy||{});var EI=class{defaultSettings={orientation:Fy.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0};settings={};dagreGraph;dagreNodes;dagreEdges;run(o){this.createDagreGraph(o),sm.layout(this.dagreGraph),o.edgeLabels=this.dagreGraph._edgeLabels;for(let t in this.dagreGraph._nodes){let n=this.dagreGraph._nodes[t],i=o.nodes.find(s=>s.id===n.id);i.position={x:n.x,y:n.y},i.dimension={width:n.width,height:n.height}}return o}updateEdge(o,t){let n=o.nodes.find(f=>f.id===t.source),i=o.nodes.find(f=>f.id===t.target),s=n.position.y<=i.position.y?-1:1,d={x:n.position.x,y:n.position.y-s*(n.dimension.height/2)},u={x:i.position.x,y:i.position.y+s*(i.dimension.height/2)};return t.points=[d,u],o}createDagreGraph(o){let t=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new sm.graphlib.Graph({compound:t.compound,multigraph:t.multigraph}),this.dagreGraph.setGraph({rankdir:t.orientation,marginx:t.marginX,marginy:t.marginY,edgesep:t.edgePadding,ranksep:t.rankPadding,nodesep:t.nodePadding,align:t.align,acyclicer:t.acyclicer,ranker:t.ranker,multigraph:t.multigraph,compound:t.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=o.nodes.map(n=>{let i=Object.assign({},n);return i.width=n.dimension.width,i.height=n.dimension.height,i.x=n.position.x,i.y=n.position.y,i}),this.dagreEdges=o.edges.map(n=>{let i=Object.assign({},n);return i.id||(i.id=rp()),i});for(let n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(let n of this.dagreEdges)t.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},II=class{defaultSettings={orientation:Fy.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0};settings={};dagreGraph;dagreNodes;dagreClusters;dagreEdges;run(o){this.createDagreGraph(o),sm.layout(this.dagreGraph),o.edgeLabels=this.dagreGraph._edgeLabels;let t=n=>{let i=this.dagreGraph._nodes[n.id];return qt(at({},n),{position:{x:i.x,y:i.y},dimension:{width:i.width,height:i.height}})};return o.clusters=(o.clusters||[]).map(t),o.nodes=o.nodes.map(t),o}updateEdge(o,t){let n=o.nodes.find(f=>f.id===t.source),i=o.nodes.find(f=>f.id===t.target),s=n.position.y<=i.position.y?-1:1,d={x:n.position.x,y:n.position.y-s*(n.dimension.height/2)},u={x:i.position.x,y:i.position.y+s*(i.dimension.height/2)};return t.points=[d,u],o}createDagreGraph(o){let t=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new sm.graphlib.Graph({compound:t.compound,multigraph:t.multigraph}),this.dagreGraph.setGraph({rankdir:t.orientation,marginx:t.marginX,marginy:t.marginY,edgesep:t.edgePadding,ranksep:t.rankPadding,nodesep:t.nodePadding,align:t.align,acyclicer:t.acyclicer,ranker:t.ranker,multigraph:t.multigraph,compound:t.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=o.nodes.map(n=>{let i=Object.assign({},n);return i.width=n.dimension.width,i.height=n.dimension.height,i.x=n.position.x,i.y=n.position.y,i}),this.dagreClusters=o.clusters||[],this.dagreEdges=o.edges.map(n=>{let i=Object.assign({},n);return i.id||(i.id=rp()),i});for(let n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(let n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(i=>{this.dagreGraph.setParent(i,n.id)});for(let n of this.dagreEdges)t.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},_gt="\0";var zK="",ph=class{defaultSettings={orientation:Fy.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0};settings={};dagreGraph;dagreNodes;dagreEdges;run(o){this.createDagreGraph(o),sm.layout(this.dagreGraph),o.edgeLabels=this.dagreGraph._edgeLabels;for(let t in this.dagreGraph._nodes){let n=this.dagreGraph._nodes[t],i=o.nodes.find(s=>s.id===n.id);i.position={x:n.x,y:n.y},i.dimension={width:n.width,height:n.height}}for(let t of o.edges)this.updateEdge(o,t);return o}updateEdge(o,t){let n=o.nodes.find(S=>S.id===t.source),i=o.nodes.find(S=>S.id===t.target),s=this.settings.orientation==="BT"||this.settings.orientation==="TB"?"y":"x",d=s==="y"?"x":"y",u=s==="y"?"height":"width",f=n.position[s]<=i.position[s]?-1:1,_={[d]:n.position[d],[s]:n.position[s]-f*(n.dimension[u]/2)},C={[d]:i.position[d],[s]:i.position[s]+f*(i.dimension[u]/2)},x=this.settings.curveDistance||this.defaultSettings.curveDistance;t.points=[_,{[d]:_[d],[s]:_[s]-f*x},{[d]:C[d],[s]:C[s]+f*x},C];let y=`${t.source}${zK}${t.target}${zK}${_gt}`,P=o.edgeLabels[y];return P&&(P.points=t.points),o}createDagreGraph(o){let t=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new sm.graphlib.Graph({compound:t.compound,multigraph:t.multigraph}),this.dagreGraph.setGraph({rankdir:t.orientation,marginx:t.marginX,marginy:t.marginY,edgesep:t.edgePadding,ranksep:t.rankPadding,nodesep:t.nodePadding,align:t.align,acyclicer:t.acyclicer,ranker:t.ranker,multigraph:t.multigraph,compound:t.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=o.nodes.map(n=>{let i=Object.assign({},n);return i.width=n.dimension.width,i.height=n.dimension.height,i.x=n.position.x,i.y=n.position.y,i}),this.dagreEdges=o.edges.map(n=>{let i=Object.assign({},n);return i.id||(i.id=rp()),i});for(let n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(let n of this.dagreEdges)t.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}};function Du(e){return typeof e=="string"?{id:e,x:0,y:0}:e}var OI=class{defaultSettings={force:my().force("charge",dy().strength(-150)).force("collide",cy(5)),forceLink:py().id(o=>o.id).distance(()=>100)};settings={};inputGraph;outputGraph;d3Graph;outputGraph$=new Rr;draggingStart;run(o){return this.inputGraph=o,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>at({},t))],edges:[...this.inputGraph.edges.map(t=>at({},t))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(o,t){let n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(o){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>qt(at({},t),{id:t.id||rp(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>qt(at({},t),{source:Du(t.source).id,target:Du(t.target).id,points:[{x:Du(t.source).x,y:Du(t.source).y},{x:Du(t.target).x,y:Du(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(o,t){this.settings.force.alphaTarget(.3).restart();let n=this.d3Graph.nodes.find(i=>i.id===o.id);n&&(this.draggingStart={x:t.x-n.x,y:t.y-n.y},n.fx=t.x-this.draggingStart.x,n.fy=t.y-this.draggingStart.y)}onDrag(o,t){if(!o)return;let n=this.d3Graph.nodes.find(i=>i.id===o.id);n&&(n.fx=t.x-this.draggingStart.x,n.fy=t.y-this.draggingStart.y)}onDragEnd(o,t){if(!o)return;let n=this.d3Graph.nodes.find(i=>i.id===o.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}};function HK(e,o){return typeof o=="number"?e[o]:o}var AI=class{defaultSettings={force:(0,jK.d3adaptor)(at(at(at({},mD),iI),fD)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}};settings={};inputGraph;outputGraph;internalGraph;outputGraph$=new Rr;draggingStart;run(o){return this.inputGraph=o,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>qt(at({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(n=>this.inputGraph.clusters.findIndex(i=>i.id===n)).filter(n=>n>=0),leaves:t.childNodeIds.map(n=>this.inputGraph.nodes.findIndex(i=>i.id===n)).filter(n=>n>=0)}))],links:[...this.inputGraph.edges.map(t=>{let n=this.inputGraph.nodes.findIndex(s=>t.source===s.id),i=this.inputGraph.nodes.findIndex(s=>t.target===s.id);if(!(n===-1||i===-1))return qt(at({},t),{source:n,target:i})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{let n=this.inputGraph.nodes.findIndex(s=>t.source===s.id),i=this.inputGraph.nodes.findIndex(s=>t.target===s.id);if(!(n>=0&&i>=0))return t}).filter(t=>!!t)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(o,t){let n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(o){return this.outputGraph.nodes=o.nodes.map(t=>qt(at({},t),{id:t.id||rp(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=o.links.map(t=>{let n=HK(o.nodes,t.source),i=HK(o.nodes,t.target);return qt(at({},t),{source:n.id,target:i.id,points:[n.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy()),i.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(o.groupLinks.map(t=>{let n=o.nodes.find(u=>u.id===t.source),i=o.nodes.find(u=>u.id===t.target),s=n||o.groups.find(u=>u.id===t.source),d=i||o.groups.find(u=>u.id===t.target);return qt(at({},t),{source:s.id,target:d.id,points:[s.bounds.rayIntersection(d.bounds.cx(),d.bounds.cy()),d.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy())]})})),this.outputGraph.clusters=o.groups.map((t,n)=>{let i=this.inputGraph.clusters[n];return qt(at({},i),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})}),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(o,t){let n=this.outputGraph.nodes.findIndex(s=>s.id===o.id),i=this.internalGraph.nodes[n];i&&(this.draggingStart={x:i.x-t.x,y:i.y-t.y},i.fixed=1,this.settings.force.start())}onDrag(o,t){if(!o)return;let n=this.outputGraph.nodes.findIndex(s=>s.id===o.id),i=this.internalGraph.nodes[n];i&&(i.x=this.draggingStart.x+t.x,i.y=this.draggingStart.y+t.y)}onDragEnd(o,t){if(!o)return;let n=this.outputGraph.nodes.findIndex(s=>s.id===o.id),i=this.internalGraph.nodes[n];i&&(i.fixed=0)}},GK={dagre:EI,dagreCluster:II,dagreNodesOnly:ph,d3ForceDirected:OI,colaForceDirected:AI},$K=(()=>{class e{getLayout(t){if(GK[t])return new GK[t];throw new Error(`Unknown layout type '${t}'`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})(),Cgt=(()=>{class e{mouseWheelUp=new bi;mouseWheelDown=new bi;onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);let n=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),i=t.wheelDelta?n>0:n<0,s=t.wheelDelta?n<0:n>0;i?this.mouseWheelUp.emit(t):s&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=md({type:e,selectors:[["","mouseWheel",""]],hostBindings:function(n,i){n&1&&R("mousewheel",function(d){return i.onMouseWheelChrome(d)})("DOMMouseScroll",function(d){return i.onMouseWheelFirefox(d)})("wheel",function(d){return i.onWheel(d)})("onmousewheel",function(d){return i.onMouseWheelIE(d)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"},standalone:!1})}return e})(),ch=(function(e){return e.Init="init",e.Subscribe="subscribe",e.Transform="transform",e.Output="output",e})(ch||{}),UK=(()=>{class e{el;zone;cd;layoutService;nodes=[];clusters=[];compoundNodes=[];links=[];activeEntries=[];curve;draggingEnabled=!0;nodeHeight;nodeMaxHeight;nodeMinHeight;nodeWidth;nodeMinWidth;nodeMaxWidth;panningEnabled=!0;panningAxis=Oy.Both;enableZoom=!0;zoomSpeed=.1;minZoomLevel=.1;maxZoomLevel=4;autoZoom=!1;panOnZoom=!0;animate=!1;autoCenter=!1;update$;center$;zoomToFit$;panToNode$;layout;layoutSettings;enableTrackpadSupport=!1;showMiniMap=!1;miniMapMaxWidth=100;miniMapMaxHeight;miniMapPosition=Ay.UpperRight;view;scheme="cool";customColors;deferDisplayUntilPosition=!1;centerNodesOnPositionChange=!0;enablePreUpdateTransform=!0;select=new bi;activate=new bi;deactivate=new bi;zoomChange=new bi;clickHandler=new bi;stateChange=new bi;linkTemplate;nodeTemplate;clusterTemplate;defsTemplate;miniMapNodeTemplate;nodeElements;linkElements;chartWidth;isMouseMoveCalled=!1;graphSubscription=new nf;colors;dims;seriesDomain;transform;isPanning=!1;isDragging=!1;draggingNode;initialized=!1;graph;graphDims={width:0,height:0};_oldLinks=[];oldNodes=new Set;oldClusters=new Set;oldCompoundNodes=new Set;transformationMatrix=wV();_touchLastX=null;_touchLastY=null;minimapScaleCoefficient=3;minimapTransform;minimapOffsetX=0;minimapOffsetY=0;isMinimapPanning=!1;minimapClipPathId;width;height;resizeSubscription;visibilityObserver;destroy$=new Rr;constructor(t,n,i,s){this.el=t,this.zone=n,this.cd=i,this.layoutService=s}groupResultsBy=t=>t.label;get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}ngOnInit(){this.update$&&this.update$.pipe(Rl(this.destroy$)).subscribe(()=>{this.update()}),this.center$&&this.center$.pipe(Rl(this.destroy$)).subscribe(()=>{this.center()}),this.zoomToFit$&&this.zoomToFit$.pipe(Rl(this.destroy$)).subscribe(t=>{this.zoomToFit(t||{})}),this.panToNode$&&this.panToNode$.pipe(Rl(this.destroy$)).subscribe(t=>{this.panToNodeId(t)}),this.minimapClipPathId=`minimapClip${rp()}`,this.stateChange.emit({state:ch.Subscribe})}ngOnChanges(t){this.basicUpdate();let{layoutSettings:n}=t;this.setLayout(this.layout),n&&this.setLayoutSettings(this.layoutSettings),this.layout&&this.nodes.length&&this.links.length&&this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),typeof t=="string"&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&typeof this.layout!="string"&&(this.layout.settings=t)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy()),this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new ggt(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=pD.beta(1)),this.zone.run(()=>{this.dims=qK({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized||this.stateChange.emit({state:ch.Init}),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new nf;let t=i=>(i.meta||(i.meta={}),i.id||(i.id=rp()),i.dimension?i.meta.forceDimensions=i.meta.forceDimensions===void 0?!0:i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position||(i.position={x:0,y:0},this.deferDisplayUntilPosition&&(i.hidden=!0)),i.data=i.data?i.data:{},i),n=i=>(i.id||(i.id=rp()),i);this.graph={nodes:this.nodes.map(i=>t(i)),clusters:this.clusters.map(i=>t(i)),compoundNodes:this.compoundNodes.map(i=>t(i)),edges:this.links.map(i=>n(i))},requestAnimationFrame(()=>this.draw())}draw(){let t=this.layout.run(this.graph),n=t instanceof of?t:sd(t);this.graphSubscription.add(n.subscribe(i=>{this.graph=i,this.tick()}))}tick(){let t=new Set,n=new Set,i=new Set;this.graph.nodes.forEach(d=>{d.transform=`translate(${d.position.x-(this.centerNodesOnPositionChange?d.dimension.width/2:0)||0}, ${d.position.y-(this.centerNodesOnPositionChange?d.dimension.height/2:0)||0})`,d.data||(d.data={}),d.data.color=this.colors.getColor(this.groupResultsBy(d)),this.deferDisplayUntilPosition&&(d.hidden=!1),t.add(d.id)}),(this.graph.clusters||[]).forEach(d=>{d.transform=`translate(${d.position.x-(this.centerNodesOnPositionChange?d.dimension.width/2:0)||0}, ${d.position.y-(this.centerNodesOnPositionChange?d.dimension.height/2:0)||0})`,d.data||(d.data={}),d.data.color=this.colors.getColor(this.groupResultsBy(d)),this.deferDisplayUntilPosition&&(d.hidden=!1),n.add(d.id)}),(this.graph.compoundNodes||[]).forEach(d=>{d.transform=`translate(${d.position.x-(this.centerNodesOnPositionChange?d.dimension.width/2:0)||0}, ${d.position.y-(this.centerNodesOnPositionChange?d.dimension.height/2:0)||0})`,d.data||(d.data={}),d.data.color=this.colors.getColor(this.groupResultsBy(d)),this.deferDisplayUntilPosition&&(d.hidden=!1),i.add(d.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=n,this.oldCompoundNodes=i},500);let s=[];for(let d in this.graph.edgeLabels){let u=this.graph.edgeLabels[d],f=d.replace(/[^\w-]*/g,""),_=this.layout&&typeof this.layout!="string"&&this.layout.settings&&this.layout.settings.multigraph,C=_?this._oldLinks.find(D=>`${D.source}${D.target}${D.id}`===f):this._oldLinks.find(D=>`${D.source}${D.target}`===f),x=_?this.graph.edges.find(D=>`${D.source}${D.target}${D.id}`===f):this.graph.edges.find(D=>`${D.source}${D.target}`===f);C?C.data&&x&&x.data&&JSON.stringify(C.data)!==JSON.stringify(x.data)&&(C.data=x.data):C=x||u,C.oldLine=C.line;let y=u.points,P=this.generateLine(y),S=Object.assign({},C);S.line=P,S.points=y,this.updateMidpointOnEdge(S,y);let M=y[Math.floor(y.length/2)];M&&(S.textTransform=`translate(${M.x||0},${M.y||0})`),S.textAngle=0,S.oldLine||(S.oldLine=S.line),this.calcDominantBaseline(S),s.push(S)}this.graph.edges=s,this.graph.edges&&(this._oldLinks=this.graph.edges.map(d=>{let u=Object.assign({},d);return u.oldLine=d.line,u})),this.applyNodeDimensions(),this.redrawLines(),this.updateMinimap(),requestAnimationFrame(()=>{this.applyNodeDimensions(),this.redrawLines(),this.updateMinimap(),this.autoZoom?this.zoomToFit({autoCenter:this.autoCenter?this.autoCenter:!1}):this.autoCenter&&this.center(),this.stateChange.emit({state:ch.Output})}),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Ay.UpperLeft:return"";case Ay.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,n=-1/0,i=1/0,s=-1/0;for(let d=0;dn?u.position.x+u.dimension.width:n,s=u.position.y+u.dimension.height>s?u.position.y+u.dimension.height:s}t-=100,i-=100,n+=100,s+=100,this.graphDims.width=n-t,this.graphDims.height=s-i,this.minimapOffsetX=t,this.minimapOffsetY=i}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.forEach(t=>{let n=t.nativeElement,i=this.graph.nodes.find(d=>d.id===n.id);if(!i)return;let s;try{if(s=n.getBBox(),!s.width||!s.height)return}catch{return}if(this.nodeHeight?i.dimension.height=i.dimension.height&&i.meta.forceDimensions?i.dimension.height:this.nodeHeight:i.dimension.height=i.dimension.height&&i.meta.forceDimensions?i.dimension.height:s.height,this.nodeMaxHeight&&(i.dimension.height=Math.max(i.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(i.dimension.height=Math.min(i.dimension.height,this.nodeMinHeight)),this.nodeWidth)i.dimension.width=i.dimension.width&&i.meta.forceDimensions?i.dimension.width:this.nodeWidth;else if(n.getElementsByTagName("text").length){let d;try{for(let u of n.getElementsByTagName("text")){let f=u.getBBox();d?(f.width>d.width&&(d.width=f.width),f.height>d.height&&(d.height=f.height)):d=f}}catch{return}i.dimension.width=i.dimension.width&&i.meta.forceDimensions?i.dimension.width:d.width+20}else i.dimension.width=i.dimension.width&&i.meta.forceDimensions?i.dimension.width:s.width;this.nodeMaxWidth&&(i.dimension.width=Math.max(i.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(i.dimension.width=Math.min(i.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.forEach(n=>{let i=this.graph.edges.find(s=>s.id===n.nativeElement.id);i&&(pb(n.nativeElement).select(".line").attr("d",i.oldLine).transition().ease(m1).duration(t?500:0).attr("d",i.line),pb(this.el.nativeElement).select(`#${i.id}`).attr("d",i.oldTextPath).transition().ease(m1).duration(t?500:0).attr("d",i.textPath),this.updateMidpointOnEdge(i,i.points))})}calcDominantBaseline(t){let n=t.points[0],i=t.points[t.points.length-1];t.oldTextPath=t.textPath,i.xi.x).y(i=>i.y).curve(this.curve)(t)}onZoom(t,n){if(this.enableTrackpadSupport&&!t.ctrlKey){this.pan(t.deltaX*-1,t.deltaY*-1);return}let i=1+(n==="in"?this.zoomSpeed:-this.zoomSpeed),s=this.zoomLevel*i;if(!(s<=this.minZoomLevel||s>=this.maxZoomLevel)&&this.enableZoom)if(this.panOnZoom===!0&&t){let d=t.clientX,u=t.clientY,f=this.el.nativeElement.querySelector("svg"),_=f.querySelector("g.chart"),C=f.createSVGPoint();C.x=d,C.y=u;let x=C.matrixTransform(_.getScreenCTM().inverse());this.pan(x.x,x.y,!0),this.zoom(i),this.pan(-x.x,-x.y,!0)}else this.zoom(i)}pan(t,n,i=!1){let s=i?1:this.zoomLevel;this.transformationMatrix=Xc(this.transformationMatrix,Kc(t/s,n/s)),this.updateTransform()}panTo(t,n){if(t==null||isNaN(t)||n===null||n===void 0||isNaN(n))return;let i=-this.panOffsetX-t*this.zoomLevel+this.dims.width/2,s=-this.panOffsetY-n*this.zoomLevel+this.dims.height/2;this.transformationMatrix=Xc(this.transformationMatrix,Kc(i/this.zoomLevel,s/this.zoomLevel)),this.updateTransform()}zoom(t){this.transformationMatrix=Xc(this.transformationMatrix,S1(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.enablePreUpdateTransform&&this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;let n=this.draggingNode;this.layout&&typeof this.layout!="string"&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel;let i=n.position.x-(this.centerNodesOnPositionChange?n.dimension.width/2:0),s=n.position.y-(this.centerNodesOnPositionChange?n.dimension.height/2:0);n.transform=`translate(${i}, ${s})`;for(let d of this.graph.edges)if((d.target===n.id||d.source===n.id||d.target.id===n.id||d.source.id===n.id)&&this.layout&&typeof this.layout!="string"){let u=this.layout.updateEdge(this.graph,d),f=u instanceof of?u:sd(u);this.graphSubscription.add(f.subscribe(_=>{this.graph=_,this.redrawEdge(d)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){let n=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=n}updateTransform(){this.transform=PV(PD(this.transformationMatrix,100)),this.stateChange.emit({state:ch.Transform})}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){let n=this.activeEntries.indexOf(t);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,n)=>t.indexOf(n)!==-1?t:t.concat([n]),[]).sort()}trackLinkBy(t,n){return n.id}trackNodeBy(t,n){return n.id}setColors(){this.colors=new DI(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){let n=t.changedTouches[0].clientX,i=t.changedTouches[0].clientY,s=n-this._touchLastX,d=i-this._touchLastY;this._touchLastX=n,this._touchLastY=i,this.pan(s,d)}}onTouchEnd(){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&typeof this.layout!="string"&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,n){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=n,this.layout&&typeof this.layout!="string"&&this.layout.onDragStart&&this.layout.onDragStart(n,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){let n=t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient),i=t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient;this.panTo(n*this.minimapScaleCoefficient,i*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(t){this.dims=qK({width:this.width,height:this.height}),this.updateGraphDims();let n=this.dims.height/this.graphDims.height,i=this.dims.width/this.graphDims.width,s=Math.min(n,i,1);sthis.maxZoomLevel&&(s=this.maxZoomLevel),(t?.force===!0||s!==this.zoomLevel)&&(this.zoomLevel=s,t?.autoCenter!==!0&&this.updateTransform(),t?.autoCenter===!0&&this.center(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){let n=this.graph.nodes.find(i=>i.id===t);n&&this.panTo(n.position.x,n.position.y)}getCompoundNodeChildren(t){return this.nodes.filter(n=>t.includes(n.id))}panWithConstraints(t,n){let i=n.movementX,s=n.movementY;switch(this.isMinimapPanning&&(i=-this.minimapScaleCoefficient*i*this.zoomLevel,s=-this.minimapScaleCoefficient*s*this.zoomLevel),t){case Oy.Horizontal:this.pan(i,0);break;case Oy.Vertical:this.pan(0,s);break;default:this.pan(i,s);break}}updateMidpointOnEdge(t,n){if(!(!t||!n))if(n.length%2===1)t.midPoint=n[Math.floor(n.length/2)];else if(this.layout?.settings?.properties?.["elk.direction"])this._calcMidPointElk(t,n);else{let i=n[n.length/2],s=n[n.length/2-1];t.midPoint={x:(i.x+s.x)/2,y:(i.y+s.y)/2}}}_calcMidPointElk(t,n){let i=null,s=null,d=null,u=null,f=this.layout.settings?.properties["elk.direction"];(f==="RIGHT"?n.some(C=>C.y!==n[0].y):n.some(C=>C.x!==n[0].x))?(i=n[n.length-1],s=n[n.length-2],d=n[n.length-1],u=n[n.length-2]):f==="RIGHT"?(i=n[0],s=n[n.length-1],d=n[n.length/2],u=n[n.length/2-1]):(i=n[n.length/2],s=n[n.length/2-1],d=n[0],u=n[n.length-1]),t.midPoint={x:(i.x+s.x)/2,y:(d.y+u.y)/2}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{let t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,n,i=this.el.nativeElement;if(i.parentNode!==null){let s=i.parentNode.getBoundingClientRect();t=s.width,n=s.height}return t&&n?{width:t,height:n}:null}hasGraphDims(){return this.graphDims.width>0&&this.graphDims.height>0}hasNodeDims(){return this.graph.nodes?.every(t=>t.dimension.width>0&&t.dimension.height>0)}hasCompoundNodeDims(){return this.graph.compoundNodes?.every(t=>t.dimension.width>0&&t.dimension.height>0)}hasClusterDims(){return this.graph.clusters?.every(t=>t.dimension.width>0&&t.dimension.height>0)}hasDims(){return this.hasGraphDims()&&this.hasNodeDims()&&((this.compoundNodes?.length?this.hasCompoundNodeDims():!0)||(this.clusters?.length?this.hasClusterDims():!0))}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){let n=cd(window,"resize").pipe(Oo(200)).subscribe(i=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=n}static \u0275fac=function(n){return new(n||e)(Zo(lf),Zo(pd),Zo(es),Zo($K))};static \u0275cmp=me({type:e,selectors:[["ngx-graph"]],contentQueries:function(n,i,s){if(n&1&&(g0(s,qht,5),g0(s,zht,5),g0(s,Hht,5),g0(s,Ght,5),g0(s,jht,5)),n&2){let d;Te(d=Me())&&(i.linkTemplate=d.first),Te(d=Me())&&(i.nodeTemplate=d.first),Te(d=Me())&&(i.clusterTemplate=d.first),Te(d=Me())&&(i.defsTemplate=d.first),Te(d=Me())&&(i.miniMapNodeTemplate=d.first)}},viewQuery:function(n,i){if(n&1&&(Ee($ht,5),Ee(Uht,5)),n&2){let s;Te(s=Me())&&(i.nodeElements=s),Te(s=Me())&&(i.linkElements=s)}},hostBindings:function(n,i){n&1&&R("mousemove",function(d){return i.onMouseMove(d)},h0)("mousedown",function(d){return i.onMouseDown(d)},h0)("click",function(d){return i.graphClick(d)},h0)("touchmove",function(d){return i.onTouchMove(d)},h0)("mouseup",function(d){return i.onMouseUp(d)},h0)},inputs:{nodes:"nodes",clusters:"clusters",compoundNodes:"compoundNodes",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",deferDisplayUntilPosition:"deferDisplayUntilPosition",centerNodesOnPositionChange:"centerNodesOnPositionChange",enablePreUpdateTransform:"enablePreUpdateTransform",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler",stateChange:"stateChange"},standalone:!1,features:[Uo],ngContentSelectors:Wht,decls:6,vars:11,consts:[["nodeGroup",""],["clusterElement",""],["nodeElement",""],["linkElement",""],["mouseWheel","",1,"ngx-graph-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-graph"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"compound-nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"node-group",3,"click","mousedown","id"],["class","node compound-node",4,"ngIf"],[1,"node","compound-node"],[1,"link-group",3,"id"],["class","edge",4,"ngIf"],[1,"edge"],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(n,i){n&1&&(bF(),l(0,"div",4),R("mouseWheelUp",function(d){return i.onZoom(d,"in")})("mouseWheelDown",function(d){return i.onZoom(d,"out")}),na(),l(1,"svg",5),F(2,sgt,15,14,"g",6),l(3,"clipPath"),b(4,"rect"),r(),F(5,ugt,6,15,"g",7),r()()),n&2&&(vp("width",i.width,"px"),g("@animationState","active")("@.disabled",!i.animate),a(),Dn("width",i.width)("height",i.height),a(),g("ngIf",i.initialized&&i.graph),a(),Dn("id",i.minimapClipPathId),a(),Dn("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),a(),g("ngIf",i.showMiniMap))},dependencies:[ts,Js,TF,Cgt],styles:[`.minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .compound-node rect{opacity:.5}.graph .cluster rect{opacity:.2} -`],encapsulation:2,data:{animation:[Sr("animationState",[hr(":enter",[Lo({opacity:0}),fr("500ms 100ms",Lo({opacity:1}))])])]},changeDetection:0})}return X7([hgt(500)],e.prototype,"updateMinimap",null),e})(),FI=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({providers:[$K],imports:[ue]})}return e})(),WK=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({imports:[ue,FI]})}return e})();function xgt(e,o){e&1&&(na(),l(0,"marker",4),b(1,"path",5),r())}function bgt(e,o){if(e&1&&(na(),l(0,"g",6)(1,"foreignObject",7),sF(),l(2,"div",8)(3,"label",9),c(4),r(),l(5,"label"),c(6),r()()()()),e&2){let t=o.$implicit;a(4),h(t.data.name),a(2),h(t.data.order)}}function ygt(e,o){if(e&1&&(na(),l(0,"g",14),b(1,"ellipse",15),l(2,"text",16),c(3),p(4,"translateKey"),r()()),e&2){let t=w().$implicit;Dn("transform","translate("+t.midPoint.x+","+t.midPoint.y+")"),a(3),h(Ft(4,2,t.data.linkText,"text"))}}function Sgt(e,o){if(e&1&&(na(),l(0,"g",10),b(1,"path",11),l(2,"text",12)(3,"textPath",13),c(4),r()()(),E(5,ygt,5,5,":svg:g",14)),e&2){let t=o.$implicit;a(3),vp("dominant-baseline",t.dominantBaseline),Dn("href","#"+t.id),a(),v(" ",t.label," "),a(),I(t.midPoint?5:-1)}}var ky=(()=>{class e{constructor(){this.jobStepsData=[],this.diagramSize=[1024,300],this.nodes=[],this.links=[],this.layoutSettings={orientation:"LR"},this.curve=p1,this.layout=new ph,this.colorScheme={domain:["#5AA454","#A10A28","#C7B42C"]},this.center$=new Rr}ngOnInit(){let t=0;for(let n of this.jobStepsData){let i=`node_${n.order}`,s={id:i,label:n.stepName,data:{name:n.stepName,order:n.order}};if(this.nodes.push(s),t>0){let d={id:`link_${n.id}`,source:`node_${n.order-1}`,target:i,label:"",data:{linkText:"Precedes of"}};this.links.push(d)}t++}this.center$.next(void 0)}getStyles(t){return"node_odd"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-workflow-diagram"]],inputs:{jobStepsData:"jobStepsData"},decls:7,vars:9,consts:[["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],[3,"view","links","nodes","curve","layout","nodeHeight","layoutSettings","enableZoom","center$"],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["xmlns","http://www.w3.org/2000/xhtml","width","150","height","100",1,"node"],["width","150","height","100"],["xmlns","http://www.w3.org/1999/xhtml",1,"card-container"],[1,"name"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"],[1,"link-midpoint"],["rx","30","ry","10"],["alignment-baseline","central"]],template:function(n,i){n&1&&(l(0,"ngx-graph",3),F(1,xgt,2,0,"ng-template",null,0,ti)(3,bgt,7,2,"ng-template",null,1,ti)(5,Sgt,6,5,"ng-template",null,2,ti),r()),n&2&&g("view",i.diagramSize)("links",i.links)("nodes",i.nodes)("curve",i.curve)("layout",i.layout)("nodeHeight",100)("layoutSettings",i.layoutSettings)("enableZoom",!0)("center$",i.center$)},dependencies:[ue,fe,FI,UK,ki],styles:["[_nghost-%COMP%] {display:block;height:inherit;width:inherit}[_nghost-%COMP%] .card-container{height:100;min-width:150;display:block;fill:#d7dada;border:#000}[_nghost-%COMP%] .card-container .name{font-size:12px}[_nghost-%COMP%] .card-container label{display:block;text-align:center;font-size:20px;margin-top:4px;margin-bottom:8px}[_nghost-%COMP%] .link-midpoint ellipse{fill:#fff;stroke:#000;stroke-width:1}[_nghost-%COMP%] .link-midpoint text{stroke:transparent;fill:#000;text-anchor:middle;font-size:8px}"]})}}return e})();var wgt=["table"],Pgt=()=>["../"];function Tgt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"catalogs")," ")}}function Mgt(e,o){if(e&1){let t=Y();l(0,"div",5)(1,"button",9),R("click",function(){V(t);let i=w();return q(i.addJobStep())}),b(2,"fa-icon",10),c(3),p(4,"translate"),r()()}e&2&&(a(3),v("",m(4,1,"labels.buttons.Link Job Step")," "))}function Dgt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Step Name")))}function Egt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.stepName)}}function Igt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Order")))}function Ogt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.order)}}function Agt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Fgt(e,o){if(e&1){let t=Y();l(0,"td",20)(1,"button",21),p(2,"translate"),R("click",function(){let i=V(t).index,s=w(2);return q(s.removeJobStep(i))}),b(3,"fa-icon",22),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Delete"))))}function kgt(e,o){e&1&&b(0,"tr",23)}function Bgt(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("cdkDragData",t)}}function Rgt(e,o){if(e&1){let t=Y();l(0,"div",6)(1,"table",11,0),R("cdkDropListDropped",function(i){V(t);let s=w();return q(s.dropTable(i))}),X(3,12),F(4,Dgt,3,3,"th",13)(5,Egt,2,1,"td",14),Z(),X(6,15),F(7,Igt,3,3,"th",13)(8,Ogt,2,1,"td",14),Z(),X(9,16),F(10,Agt,3,3,"th",13)(11,Fgt,4,4,"td",14),Z(),F(12,kgt,1,0,"tr",17)(13,Bgt,1,1,"tr",18),r()()}if(e&2){let t=w();a(),g("dataSource",t.jobStepsData)("cdkDropListData",t.jobStepsData),a(11),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function Ngt(e,o){if(e&1){let t=Y();l(0,"div",7)(1,"button",25),c(2),p(3,"translate"),r(),l(4,"button",9),R("click",function(){V(t);let i=w();return q(i.saveChanges())}),c(5),p(6,"translate"),r()()}e&2&&(a(),g("routerLink",oe(7,Pgt)),a(),v(" ",m(3,3,"labels.buttons.Cancel")," "),a(3),v(" ",m(6,5,"labels.buttons.Apply Changes")," "))}function Lgt(e,o){if(e&1&&(l(0,"div",8),b(1,"mifosx-workflow-diagram",26),r()),e&2){let t=w();a(),g("jobStepsData",t.jobStepsData)}}var By=(()=>{class e{constructor(){this.systemService=T(ii),this.dialog=T(Ht),this.translateService=T(yi),this.stepOrderHasChanged=!1,this.jobNameOptions=[],this.jobStepsData=[],this.jobAvailableStepsData=[],this.jobStepsDataBase=[],this.jobStepName=null,this.jobName=new it("",ce.required),this.displayedColumns=["stepName","stepOrder","actions"]}ngOnInit(){this.systemService.getWorkflowJobNames().toPromise().then(t=>{this.jobNameOptions=t.businessJobs.sort(function(n,i){return n.stepName-i.stepName})})}getWorkflowJobSteps(t){this.systemService.getWorkflowJobSteps(t).subscribe(n=>{this.jobStepName=t,this.jobStepsData=n.businessSteps.sort(function(i,s){return i.order-s.order}),this.jobStepsDataBase=this.jobStepsData})}dropTable(t){let n=this.jobStepsData.findIndex(i=>i===t.item.data);Os(this.jobStepsData,n,t.currentIndex),this.jobStepsData=[...this.jobStepsData],this.table.renderRows(),this.stepOrderHasChanged=!0}removeJobStep(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.jobStepsData.splice(t,1),this.jobStepsData=this.jobStepsData.concat([]),this.jobStepsData=[...this.jobStepsData],this.stepOrderHasChanged=!0)})}addJobStep(){if(this.jobStepName!=null){let t=this.jobStepName.split("_");this.jobAvailableStepsData=[],this.systemService.getAvailablesJobSteps(t[0]).toPromise().then(n=>{this.jobAvailableStepsData=n.availableBusinessSteps.sort(function(s,d){return s.stepName-d.stepName});let i=[];if(this.jobStepsData.forEach(s=>i.push(s.stepName)),this.jobAvailableStepsData.length>0&&(this.jobAvailableStepsData=this.jobAvailableStepsData.filter(s=>i.indexOf(s.stepName)<0)),this.jobAvailableStepsData.length>0){for(let f=0;f{f.data&&(this.jobStepsData=this.jobStepsData.concat(f.data.value),this.stepOrderHasChanged=!0)})}})}}saveChanges(){let t=1;this.jobStepsData.forEach(i=>{i.order=t++});let n={businessSteps:this.jobStepsData};this.systemService.putWorkflowJobSteps(this.jobStepName,n).toPromise().then(i=>{this.stepOrderHasChanged=!1})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-workflow-jobs"]],viewQuery:function(n,i){if(n&1&&Ee(wgt,5),n&2){let s;Te(s=Me())&&(i.table=s.first)}},decls:12,vars:8,consts:[["table",""],[1,"container","space-top","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"flex-31"],[3,"selectionChange","formControl"],[3,"value"],[1,"action-button","gap-25percent"],[1,"mat-elevation-z8","container"],[1,"container","margin-t","space-top","layout-row","gap-2percent","layout-align-center","layout-column-xs"],[1,"container","space-top"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","cdkDropList","",3,"cdkDropListDropped","dataSource","cdkDropListData"],["matColumnDef","stepName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","stepOrder"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","cdkDrag","",3,"cdkDragData",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row","","cdkDrag","",3,"cdkDragData"],["mat-raised-button","",3,"routerLink"],[3,"jobStepsData"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",3),R("selectionChange",function(d){return i.getWorkflowJobSteps(d.value)}),Se(6,Tgt,3,5,"mat-option",4,Pe),r()(),E(8,Mgt,5,3,"div",5),E(9,Rgt,14,4,"div",6),E(10,Ngt,7,8,"div",7),E(11,Lgt,2,1,"div",8),r()),n&2&&(a(3),h(m(4,6,"labels.inputs.Job Name")),a(2),g("formControl",i.jobName),a(),we(i.jobNameOptions),a(2),I(i.jobStepName?8:-1),a(),I(i.jobStepsData.length>0?9:-1),a(),I(i.stepOrderHasChanged?10:-1),a(),I(i.jobStepsData.length>0&&!i.stepOrderHasChanged?11:-1))},dependencies:[ue,fe,$e,_n,Oe,Fe,Be,gt,ft,xe,ke,_t,Tp,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,Pp,ky,he,ki],styles:[".container[_ngcontent-%COMP%]{margin:auto!important}.workflow-graph[_ngcontent-%COMP%]{min-height:400px}.space-top[_ngcontent-%COMP%]{margin-top:20px!important}.space-bottom[_ngcontent-%COMP%]{margin-bottom:20px!important}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}}return e})();var Ko=(()=>{class e{constructor(){this.http=T(ko)}getMakerCheckerData(t){let n=new rn;if(t){let i=Object.getOwnPropertyNames(t);for(let s=0;s[100,500,1e3,5e3];function qgt(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w(3);return q(i.runInlineCOB())}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"Start inline COB")," "))}function zgt(e,o){e&1&&(l(0,"div",6),F(1,qgt,4,3,"button",20),r()),e&2&&(a(),g("mifosxHasPermission","EXECUTE_INLINE_JOB"))}function Hgt(e,o){if(e&1){let t=Y();l(0,"th",23)(1,"mat-checkbox",24),R("change",function(i){V(t);let s=w(2);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(2);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function Ggt(e,o){if(e&1){let t=Y();l(0,"td",25)(1,"mat-checkbox",26),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(2);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(2);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function jgt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Id")))}function $gt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanId)}}function Ugt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Lock Placed On")))}function Wgt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lockPlacedOn))}}function Qgt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Lock Owner")))}function Ygt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lockOwner)}}function Jgt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error")))}function Kgt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.error)}}function Xgt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.heading.Details")))}function Zgt(e,o){if(e&1){let t=Y();l(0,"td",27)(1,"button",28),p(2,"translate"),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.showDetails(i))}),b(3,"fa-icon",29),r(),l(4,"button",30),p(5,"translate"),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.viewLoanAccount(i))}),b(6,"fa-icon",31),r()()}e&2&&(a(),g("matTooltip",Le(m(2,4,"tooltips.Error details"))),a(3),g("matTooltip",Le(m(5,6,"tooltips.View Loan Account"))))}function e_t(e,o){e&1&&b(0,"tr",32)}function t_t(e,o){if(e&1){let t=Y();l(0,"tr",33),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.selection.toggle(i))}),r()}}function i_t(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),E(5,zgt,2,1,"div",6),r(),l(6,"table",7),X(7,8),F(8,Hgt,2,3,"th",9)(9,Ggt,2,2,"td",10),Z(),X(10,11),F(11,jgt,3,3,"th",9)(12,$gt,2,1,"td",12),Z(),X(13,13),F(14,Ugt,3,3,"th",9)(15,Wgt,3,3,"td",12),Z(),X(16,14),F(17,Qgt,3,3,"th",9)(18,Ygt,2,1,"td",12),Z(),X(19,15),F(20,Jgt,3,3,"th",9)(21,Kgt,2,1,"td",12),Z(),X(22,16),F(23,Xgt,3,3,"th",9)(24,Zgt,7,8,"td",12),Z(),F(25,e_t,1,0,"tr",17)(26,t_t,1,0,"tr",18),r(),l(27,"mat-paginator",19),R("page",function(i){V(t);let s=w();return q(s.changePaging(i))}),r()()}if(e&2){let t=w();a(5),I(t.allowRunInlineJob?5:-1),a(),g("dataSource",t.dataSource),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("hidden",!t.showPaginator)("pageSizeOptions",oe(8,Vgt))("pageSize",t.pageSize)("pageIndex",t.currentPage)}}function n_t(e,o){e&1&&(l(0,"div",1)(1,"div",34),b(2,"i",35),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No loan locked available"),". "))}var Ry=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.loansService=T(Pk),this.systemService=T(ii),this.tasksService=T(Ko),this.dialog=T(Ht),this.translateService=T(yi),this.loans=[],this.displayedColumns=["select","loanId","lockPlacedOn","lockOwner","error","details"],this.currentPage=0,this.itemsToRead=5e3,this.pageSize=100,this.allowRunInlineJob=!1,this.jobName="LOAN_COB",this.showPaginator=!1}set paginator(t){this.dataSource!=null&&(this.dataSource.paginator=t)}ngOnInit(){this.allowRunInlineJob=!1,this.getLoansLocked(0)}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}changePaging(t){this.pageSize=t.pageSize,this.currentPage!==t.pageIndex&&(this.currentPage=t.pageIndex)}getLoansLocked(t){this.tasksService.getAllLoansLocked(t,this.itemsToRead).subscribe(n=>{this.loans=n.content,this.dataSource=new Wt(this.loans),this.dataSource.paginator=this.paginator,this.showPaginator=this.loans.length>this.pageSize,this.allowRunInlineJob=!1,this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length;t===0?this.allowRunInlineJob=!1:this.allowRunInlineJob=!0;let n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?this.translateService.instant("labels.text.deselect"):this.translateService.instant("labels.text.select")} ${this.translateService.instant("labels.text.row")} ${t.position+1}`:`${this.isAllSelected()?this.translateService.instant("labels.text.select"):this.translateService.instant("labels.text.deselect")} ${this.translateService.instant("labels.text.All")}`}showDetails(t){this.dialog.open(qg,{width:"960px",height:"400px",data:"
"+t.stacktrace+"
"})}viewLoanAccount(t){let n=t.loanId;this.loansService.getLoanAccountDetails(n).subscribe(i=>{let s=i.clientId;this.router.navigateByUrl(`/clients/${s}/loans-accounts/${n}/general`)})}runInlineCOB(){let t=[];if(this.selection.selected.forEach(n=>{t.push(n.loanId)}),t.length>0){let n={loanIds:t};this.systemService.runInlineCOB(this.jobName,n).subscribe(i=>{this.getLoansLocked(0)})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-locked"]],viewQuery:function(n,i){if(n&1&&Ee(kt,5),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-90"],["matInput","","placeholder","Filter by loan Id or error",3,"keyup"],[1,"flex-60"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","loanId"],["mat-cell","","class","view-details",4,"matCellDef"],["matColumnDef","lockPlacedOn"],["matColumnDef","lockOwner"],["matColumnDef","error"],["matColumnDef","details"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"page","hidden","pageSizeOptions","pageSize","pageIndex"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","success",3,"click"],["icon","play",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details"],["mat-icon-button","","matTooltipPosition","left",1,"error-log",3,"click","matTooltip"],["icon","exclamation-circle","size","lg"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["icon","eye","size","lg"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,i_t,28,9,"div",0),E(1,n_t,5,3,"div",1)),n&2&&(I(i.loans&&i.loans.length>0?0:-1),a(),I(i.loans&&i.loans.length===0?1:-1))},dependencies:[ue,fe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,kt,he,Yr],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#32cd32}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffa726}.tab-container[_ngcontent-%COMP%] #search-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:1rem}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%], .tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.error-log[_ngcontent-%COMP%]{color:#ffa726}"]})}}return e})();function o_t(e,o){if(e&1){let t=Y();l(0,"button",6),R("click",function(){V(t);let i=w();return q(i.runCatchUp())}),b(1,"fa-icon",7),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Run Catch-Up")," "))}var Ny=(()=>{class e{constructor(){this.systemService=T(ii),this.waitTime=un.waitTimeForCOBCatchUp||30,this.isCatchUpRunning=!0}ngOnInit(){this.getCOBCatchUpStatus()}ngOnDestroy(){clearTimeout(this.timer)}getCOBCatchUpStatus(){this.systemService.getCOBCatchUpStatus().subscribe(t=>{this.isCatchUpRunning=t.isCatchUpRunning}),this.timer=setTimeout(()=>{this.getCOBCatchUpStatus()},this.waitTime*1e3)}runCatchUp(){this.systemService.runCOBCatchUp().subscribe(t=>{this.isCatchUpRunning=!0,this.waitTime=5e3})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-cob-workflow"]],inputs:{isCatchUpRunning:"isCatchUpRunning"},decls:13,vars:9,consts:[["cobCatchUpStatus",""],[1,"container","m-b-20","space-top","layout-row","layout-row","gap-20px"],[1,"no-m"],[1,"m-l-20","m-r-20"],["mat-raised-button","",1,"activate"],[1,"container","space-top"],["mat-raised-button","",1,"activate",3,"click"],["icon","times-circle",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"div",null,0)(3,"h2",2),c(4),p(5,"translate"),l(6,"span",3),c(7),p(8,"translate"),p(9,"translate"),r()()(),E(10,o_t,4,3,"button",4),r(),l(11,"div",5),b(12,"mifosx-loan-locked"),r()),n&2&&(a(4),v(" ",m(5,3,"labels.heading.COB Catch-Up is"),":"),a(3),h(i.isCatchUpRunning?m(8,5,"labels.catalogs.Running"):m(9,7,"labels.catalogs.Inactive")),a(3),I(i.isCatchUpRunning?-1:10))},dependencies:[ue,fe,xe,ke,Ry,he],styles:[".success[_ngcontent-%COMP%]{color:#32cd32}.fail[_ngcontent-%COMP%]{color:#f44366}.currently-running[_ngcontent-%COMP%]{color:#32cd32}.not-currently-running[_ngcontent-%COMP%]{color:#f44366}.errorlog[_ngcontent-%COMP%]{color:#ffa726}.suspend[_ngcontent-%COMP%]{background:#32cd32;color:#fff}.activate[_ngcontent-%COMP%]{background:#f44366;color:#fff}.space-top[_ngcontent-%COMP%]{margin-top:30px}"]})}}return e})();var Ly=(()=>{class e{constructor(){this.systemService=T(ii),this.translateService=T(yi),this.isCatchUpRunning=!0}onJobTabChange(t){t.index===2&&this.systemService.getCOBCatchUpStatus().subscribe(n=>{this.isCatchUpRunning=n.isCatchUpRunning})}title(t){return this.translateService.instant("labels.inputs."+t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-jobs"]],decls:10,vars:7,consts:[["tabGroup",""],[1,"container-card"],["mat-align-tabs","center",3,"selectedTabChange"],[3,"label"],[3,"isCatchUpRunning"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",1)(1,"mat-card-content")(2,"mat-tab-group",2,0),R("selectedTabChange",function(u){return V(s),q(i.onJobTabChange(u))}),l(4,"mat-tab",3),b(5,"mifosx-manage-scheduler-jobs"),r(),l(6,"mat-tab",3),b(7,"mifosx-workflow-jobs"),r(),l(8,"mat-tab",3),b(9,"mifosx-cob-workflow",4),r()()()()}n&2&&(a(4),g("label",Le(i.title("Scheduler Jobs"))),a(2),g("label",Le(i.title("Workflow Jobs"))),a(2),g("label",Le(i.title("COB"))),a(),g("isCatchUpRunning",i.isCatchUpRunning))},dependencies:[ue,fe,Ue,Je,Nr,Qr,ob,By,Ny],styles:[".container-card[_ngcontent-%COMP%]{margin:0 auto;max-width:90rem;width:90%;padding:0 0 50px;min-height:500px}.container-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.container-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%]{margin-top:1.4rem;color:#fff;width:90%}.container-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.container-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.container-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var a_t=()=>["../"];function r_t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Job Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function l_t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Cron Expression")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function s_t(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.jobForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var mh=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.route.data.subscribe(t=>{this.jobData=t.jobSelected})}ngOnInit(){this.createJobForm()}createJobForm(){this.jobForm=this.formBuilder.group({displayName:[this.jobData.displayName,ce.required],cronExpression:[this.jobData.cronExpression,ce.required],active:[this.jobData.active]})}submit(){this.systemService.updateScheduler(this.jobData.jobId,this.jobForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-scheduler-job"]],decls:25,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","displayName"],["matInput","","required","","formControlName","cronExpression"],["labelPosition","before","formControlName","active"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,r_t,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,l_t,7,9,"mat-error"),r(),l(17,"mat-checkbox",5),c(18),p(19,"translate"),r()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,s_t,3,4,"button",8),r()()()()()),n&2&&(a(2),g("formGroup",i.jobForm),a(5),h(m(8,9,"labels.inputs.Job Name")),a(3),I(i.jobForm.controls.displayName.hasError("required")?10:-1),a(3),h(m(14,11,"labels.inputs.Cron Expression")),a(3),I(i.jobForm.controls.cronExpression.hasError("required")?16:-1),a(2),v(" ",m(19,13,"labels.inputs.Is job active"),"? "),a(3),g("routerLink",oe(17,a_t)),a(),v(" ",m(23,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_SCHEDULER"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var kI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getSelectedJob(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var c_t=()=>[10,25,50,100],p_t=()=>["../"];function m_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Version")))}function d_t(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.version)}}function u_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Time")))}function f_t(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.jobRunStartTime))}}function h_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.End Time"),"End time"))}function g_t(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.jobRunEndTime))}}function __t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function C_t(e,o){e&1&&(b(0,"fa-icon",21),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Successful")))}function v_t(e,o){e&1&&(b(0,"fa-icon",22),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Failed")))}function x_t(e,o){if(e&1&&(l(0,"td",20),E(1,C_t,2,4,"fa-icon",21),E(2,v_t,2,4,"fa-icon",22),r()),e&2){let t=o.$implicit;a(),I(t.status==="success"?1:-1),a(),I(t.status!=="success"?2:-1)}}function b_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Run Type")))}function y_t(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.triggerType)}}function S_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error Log")))}function w_t(e,o){if(e&1){let t=Y();l(0,"button",24),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.openError(i.version))}),b(2,"fa-icon",25),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Error Log")))}function P_t(e,o){if(e&1&&(l(0,"td",20),E(1,w_t,3,4,"button",23),r()),e&2){let t=o.$implicit;a(),I(t.status!=="success"?1:-1)}}function T_t(e,o){e&1&&b(0,"tr",26)}function M_t(e,o){e&1&&b(0,"tr",27)}var Vy=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.router=T(qe),this.displayedColumns=["version","run_start_time","run_end_time","status","run_type","error_log"],this.route.data.subscribe(t=>{this.jobHistoryData=t.jobsSchedulerHistory})}applyFilter(t){let n=[{id:"version",value:t}];this.dataSource.filter=JSON.stringify(n)}ngOnInit(){this.setJobHistory()}setJobHistory(){this.dataSource=new Wt(this.jobHistoryData.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.filterPredicate=(t,n)=>{let i=[];return JSON.parse(n).forEach(d=>{let u=t[d.id]===null?"":t[d.id];d.value!==""&&u!==""?i.push(parseInt(u.toString(),10)===parseInt(d.value,10)):(d.value===""||u==="")&&i.push(u.toString().toLowerCase().includes(d.value.toLowerCase()))}),i.every(Boolean)}}openError(t){this.dialog.open(qg,{width:"400px",data:this.jobHistoryData.pageItems.filter(i=>i.version===t)[0].jobRunErrorLog}).afterClosed().subscribe(i=>{this.router.navigate([""])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-history-scheduler-job"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:34,vars:13,consts:[[1,"container"],[1,"layout-row","m-b-10"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","version"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","run_start_time"],["matColumnDef","run_end_time"],["matColumnDef","status"],["matColumnDef","run_type"],["matColumnDef","error_log"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","layout-align-center"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","right","icon","check-circle","size","lg",1,"success",3,"matTooltip"],["matTooltipPosition","right","icon","times-circle","size","lg",1,"fail",3,"matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"click","matTooltip"],["icon","exclamation-circle","size","lg"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"input",3),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(7,"div",4)(8,"table",5),X(9,6),F(10,m_t,3,3,"th",7)(11,d_t,2,1,"td",8),Z(),X(12,9),F(13,u_t,3,3,"th",7)(14,f_t,3,3,"td",8),Z(),X(15,10),F(16,h_t,3,3,"th",7)(17,g_t,3,3,"td",8),Z(),X(18,11),F(19,__t,3,3,"th",7)(20,x_t,3,2,"td",8),Z(),X(21,12),F(22,b_t,3,3,"th",7)(23,y_t,2,1,"td",8),Z(),X(24,13),F(25,S_t,3,3,"th",7)(26,P_t,2,1,"td",8),Z(),F(27,T_t,1,0,"tr",14)(28,M_t,1,0,"tr",15),r(),b(29,"mat-paginator",16),l(30,"div",17)(31,"button",18),c(32),p(33,"translate"),r()()()()),n&2&&(a(4),h(m(5,7,"labels.inputs.Filter By Version")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(11,c_t)),a(2),g("routerLink",oe(12,p_t)),a(),v(" ",m(33,9,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,wi,St,Pt,wt,Tt,kt,he,Yr],styles:[".container[_ngcontent-%COMP%]{padding-bottom:15px}table[_ngcontent-%COMP%]{width:96%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.success[_ngcontent-%COMP%]{color:#32cd32}.fail[_ngcontent-%COMP%]{color:#f44366}.currently-running[_ngcontent-%COMP%]{color:#32cd32}.not-currently-running[_ngcontent-%COMP%]{color:#f44366}.errorlog[_ngcontent-%COMP%]{color:#ffa726}.suspend[_ngcontent-%COMP%]{background:#ffa726;color:#fff}"]})}}return e})();var BI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getHistoryScheduler(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var D_t=()=>["edit"],E_t=()=>["viewhistory"],I_t=()=>["../"],qy=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.jobData=t.selectedJob})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-scheduler-job"]],decls:40,vars:35,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["href","http://www.cronmaker.com/"],[1,"layout-row","layout-align-center","flex-100","column-on-mobile"],["type","button","color","primary","mat-raised-button","",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",1),c(6),p(7,"translate"),r()(),l(8,"div",3)(9,"mat-card")(10,"mat-card-content")(11,"div",4)(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r(),l(22,"div",5),c(23),p(24,"translate"),r(),l(25,"div",6),c(26),p(27,"yesNo"),r(),l(28,"div",5),c(29),p(30,"translate"),r(),l(31,"div",6)(32,"a",7),c(33),p(34,"translate"),r()()()(),l(35,"mat-card-actions")(36,"div",8)(37,"button",9),c(38),p(39,"translate"),r()()()()()),n&2&&(a(),g("routerLink",oe(32,D_t)),a(2),v(" ",m(4,14,"labels.buttons.Edit")," "),a(2),g("routerLink",oe(33,E_t)),a(),v(" ",m(7,16,"labels.buttons.View History")," "),a(7),v(" ",m(14,18,"labels.inputs.Job Name")," "),a(3),v(" ",i.jobData.displayName," "),a(2),v(" ",m(19,20,"labels.inputs.Cron Expression")," "),a(3),v(" ",i.jobData.cronExpression," "),a(2),v("",m(24,22,"labels.inputs.Is Active Job"),"?"),a(3),v(" ",m(27,24,i.jobData.active)," "),a(3),v(" ",m(30,26,"labels.inputs.Follow")," "),a(4),v(" ",m(34,28,"labels.text.Click Here To Generate Cron Expression")," "),a(4),g("routerLink",oe(34,I_t)),a(),v(" ",m(39,30,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,ke,he,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var RI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getSelectedJob(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var zy=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getReportTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Hy=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getReport(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var NI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getReports()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var LI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getSurveys()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Gy=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getSurvey(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var VI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getRoles()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var jy=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getRole(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var O_t=[_o.withShell([{path:"system",data:{title:"System",breadcrumb:"System"},children:[{path:"",component:Lx},{path:"codes",data:{title:"View Codes",breadcrumb:"Codes"},children:[{path:"",component:Jv,resolve:{codes:o1}},{path:"create",component:Kv,data:{title:"Create Code",breadcrumb:"Create"}},{path:":id",data:{title:"View Code",routeParamBreadcrumb:"id"},children:[{path:"",component:Zv,resolve:{code:zx,codeValues:J5}},{path:"edit",component:Xv,data:{title:"Edit Code",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{code:zx}}]}]},{path:"external-events",data:{title:"Manage External Events",breadcrumb:"Manage External Events"},children:[{path:"",component:Xx,resolve:{events:MN}}]},{path:"entity-to-entity-mapping",component:ex,data:{title:"Entity to Entity Mapping",breadcrumb:"Entity to Entity Mapping"},resolve:{entityMappings:eD}},{path:"external-services",data:{title:"External Services",breadcrumb:"External Services"},children:[{path:"",component:cx},{path:"amazon-s3",data:{title:"View Amazon S3 Configuration",breadcrumb:"Amazon S3"},children:[{path:"",component:tx,resolve:{amazonS3Configuration:Wx}},{path:"edit",component:ix,data:{title:"Edit Amazon S3 Configuration",breadcrumb:"Edit"},resolve:{amazonS3Configuration:Wx}}]},{path:"email",data:{title:"View Email Configuration",breadcrumb:"Email"},children:[{path:"",component:ox,resolve:{emailConfiguration:Qx}},{path:"edit",component:nx,data:{title:"Edit Email Configuration",breadcrumb:"Edit"},resolve:{emailConfiguration:Qx}}]},{path:"sms",data:{title:"View SMS Configuration",breadcrumb:"SMS"},children:[{path:"",component:ux,resolve:{smsConfiguration:Jx}},{path:"edit",data:{title:"Edit SMS Configuration",breadcrumb:"Edit"},component:dx,resolve:{smsConfiguration:Jx}}]},{path:"notification",data:{title:"View Notification Configuration",breadcrumb:"Notification"},children:[{path:"",component:mx,resolve:{notificationConfiguration:Yx}},{path:"edit",component:px,data:{title:"Edit Notification Configuration",breadcrumb:"Edit"},resolve:{notificationConfiguration:Yx}}]}]},{path:"data-tables",data:{title:"Manage Data Tables",breadcrumb:"Manage Data Tables"},children:[{path:"",component:Cx,resolve:{dataTables:tD}},{path:"create",component:gx,data:{title:"Create Data Table",breadcrumb:"Create"},resolve:{columnCodes:o1}},{path:":datatableName",data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},children:[{path:"",component:vx,resolve:{dataTable:Kx}},{path:"edit",component:_x,data:{title:"Edit Data table",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{dataTable:Kx,columnCodes:o1}}]}]},{path:"hooks",data:{title:"Manage Hooks",breadcrumb:"Manage Hooks"},children:[{path:"",component:yx,resolve:{hooks:iD}},{path:"create",component:xx,data:{title:"Create Hook",breadcrumb:"Create"},resolve:{hooksTemplate:Zx}},{path:":id",data:{title:"View Hook",routeParamBreadcrumb:"id"},children:[{path:"",component:Sx,resolve:{hook:eb}},{path:"edit",component:bx,data:{title:"Edit Hook",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{hooksTemplate:Zx,hook:eb}}]}]},{path:"roles-and-permissions",data:{title:"Roles and Permissions",breadcrumb:"Roles and Permissions"},children:[{path:"",component:Bx,resolve:{roles:VI}},{path:"add",component:Fx,data:{title:"Add Role",breadcrumb:"Add"}},{path:":id",data:{title:"View Role",routeParamBreadcrumb:"id"},runGuardsAndResolvers:"always",children:[{path:"",component:Rx,resolve:{roledetails:jy}},{path:"edit",component:kx,data:{title:"Edit Role",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{role:jy}}]}]},{path:"configure-mc-tasks",data:{title:"Configure Maker Checker Tasks",breadcrumb:"Configure Maker Checker Tasks"},component:Ux,resolve:{permissions:Z5}},{path:"surveys",data:{title:"Manage Surveys",breadcrumb:"Manage Surveys"},children:[{path:"",component:Ox,resolve:{surveys:LI}},{path:"create",component:Ex,data:{title:"Create Survey",breadcrumb:"Create"}},{path:":id",data:{title:"View Survey",routeParamBreadcrumb:"id"},children:[{path:"",component:Ax,resolve:{survey:Gy}},{path:"edit",component:Ix,data:{title:"Edit Survey",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{survey:Gy}}]}]},{path:"manage-jobs",data:{title:"Manage Scheduler and COB Jobs",breadcrumb:"Manage Scheduler and COB Jobs"},children:[{path:"",component:Ly,resolve:{}},{path:":id",data:{title:"View Scheduler Job",routeParamBreadcrumb:"id"},children:[{path:"",component:qy,resolve:{selectedJob:RI}},{path:"edit",component:mh,data:{title:"Edit Scheduler Job",routeParamBreadcrumb:!1,breadcrumb:"Edit"},resolve:{jobSelected:kI}},{path:"viewhistory",component:Vy,data:{title:"Scheduler Job History",breadcrumb:"View History"},resolve:{jobsSchedulerHistory:BI}}]}]},{path:"configurations",data:{title:"Configurations",breadcrumb:"Configurations"},children:[{path:"",component:jx,resolve:{configurations:Wp}},{path:":id/edit",data:{title:"Edit Configuration",routeParamBreadcrumb:"id"},component:$x,resolve:{configuration:K5}}]},{path:"account-number-preferences",data:{title:"Account Number Preferences",breadcrumb:"Account Number Preferences"},children:[{path:"",component:Gv,resolve:{accountNumberPreferences:W5}},{path:"create",component:jv,data:{title:"Create Account Number Preference",breadcrumb:"Create"},resolve:{accountNumberPreferencesTemplate:Vx}},{path:":id",data:{title:"View Account Number Preference",routeParamBreadcrumb:"id"},children:[{path:"",component:Uv,resolve:{accountNumberPreference:qx}},{path:"edit",component:$v,data:{title:"Edit Account Number Preference",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{accountNumberPreference:qx,accountNumberPreferencesTemplate:Vx}}]}]},{path:"reports",data:{title:"Manage Reports",breadcrumb:"Manage Reports"},children:[{path:"",component:Mx,resolve:{reports:NI}},{path:"create",component:wx,data:{title:"Create Report",breadcrumb:"Create"},resolve:{reportTemplate:zy}},{path:":id",data:{title:"View Report",routeParamBreadcrumb:"id"},children:[{path:"",component:Dx,resolve:{report:Hy}},{path:"edit",component:Px,data:{title:"Edit Report",routeParamBreadcrumb:!1,breadcrumb:"Edit"},resolve:{report:Hy,reportTemplate:zy}}]}]},{path:"audit-trails",data:{title:"Audit Trails",breadcrumb:"Audit Trails"},children:[{path:"",component:Qv,resolve:{auditTrailSearchTemplate:Q5}},{path:":id",component:Yv,data:{title:"View Audit",routeParamBreadcrumb:"id"},resolve:{auditTrail:Y5}}]}]}])],QK=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[o1,zx,J5,tD,Kx,iD,eb,Zx,VI,LI,Gy,Wp,K5,Wx,Qx,Jx,Yx,W5,Vx,qx,NI,Hy,zy,Q5,Y5,RI,kI,jy,eD,Z5,BI],imports:[gn.forChild(O_t),gn]})}}return e})();var YK=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[QK,oo,ha,WK,C_,sk,Er,Lx,Jv,Zv,Kv,Xv,cx,Cx,gx,vx,_x,yx,Bx,Ox,$x,tx,ox,ux,mx,ix,nx,px,dx,Gv,jv,Uv,$v,Mx,Dx,wx,Px,Up,Fx,bx,Sx,xx,tu,$p,Qv,Yv,qy,mh,Rx,kx,ex,Ux,Ex,mh,Vy,Ax,Ix,Gx,jx,Hx,Ly,ob,By,ky,Xx,Ny,Ry,tb,a1,ib,nb,r1]})}}return e})();var A_t=["charges"],F_t=["templateCharges"],k_t=["loanProducts"],B_t=["templateLoanProducts"],R_t=["savingsProducts"],N_t=["templateSavingsProducts"],L_t=["shareProducts"],V_t=["templateShareProducts"],q_t=["fixedDepositProducts"],z_t=["templateFixedDepositProducts"],H_t=["recurringDepositProducts"],G_t=["templateRecurringDepositProducts"],qI=()=>["collaterals"],zI=()=>["loan-products"],HI=()=>["saving-products"],GI=()=>["share-products"],jI=()=>["charges"],$I=()=>["delinquency-bucket-configurations"],UI=()=>["products-mix"],WI=()=>["fixed-deposit-products"],QI=()=>["recurring-deposit-products"],YI=()=>["tax-configurations"],JI=()=>["floating-rates"];function j_t(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,zI)),a(),v(" ",m(2,2,"labels.text.Add new loan product or modify or inactivate loan product")," "))}function $_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function U_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function W_t(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,j_t,3,5,"p",22),r()(),l(9,"div",23),E(10,$_t,1,0,"fa-icon",24),E(11,U_t,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,zI)),a(2),g("routerLink",oe(9,zI)),a(4),v(" ",m(7,6,"labels.heading.Loan Products")," "),a(2),I(t.arrowBooleans[0]?8:-1),a(2),I(t.arrowBooleans[0]?-1:10),a(),I(t.arrowBooleans[0]?11:-1)}}function Q_t(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,HI)),a(),v(" ",m(2,2,"labels.text.Add new savings product or modify or inactivate savings product")," "))}function Y_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function J_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function K_t(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,Q_t,3,5,"p",22),r()(),l(9,"div",23),E(10,Y_t,1,0,"fa-icon",24),E(11,J_t,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,HI)),a(2),g("routerLink",oe(9,HI)),a(4),v(" ",m(7,6,"labels.heading.Savings Products")," "),a(2),I(t.arrowBooleans[1]?8:-1),a(2),I(t.arrowBooleans[1]?-1:10),a(),I(t.arrowBooleans[1]?11:-1)}}function X_t(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,GI)),a(),v(" ",m(2,2,"labels.text.Add new share product or modify or inactivate share product")," "))}function Z_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function eCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function tCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,X_t,3,5,"p",22),r()(),l(9,"div",23),E(10,Z_t,1,0,"fa-icon",24),E(11,eCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,GI)),a(2),g("routerLink",oe(9,GI)),a(4),v(" ",m(7,6,"labels.heading.Share Products")," "),a(2),I(t.arrowBooleans[2]?8:-1),a(2),I(t.arrowBooleans[2]?-1:10),a(),I(t.arrowBooleans[2]?11:-1)}}function iCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,jI)),a(),v(" ",m(2,2,"labels.text.Define charges/penalties for loan products, savings and deposit products")," "))}function nCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function oCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function aCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",20),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,iCt,3,5,"p",22),r()(),l(9,"div",23),E(10,nCt,1,0,"fa-icon",24),E(11,oCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,jI)),a(2),g("routerLink",oe(9,jI)),a(4),v(" ",m(7,6,"labels.heading.Charges")," "),a(2),I(t.arrowBooleans[3]?8:-1),a(2),I(t.arrowBooleans[3]?-1:10),a(),I(t.arrowBooleans[3]?11:-1)}}function rCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,qI)),a(),v(" ",m(2,2,"labels.text.Define collaterals for Collateral Management")," "))}function lCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function sCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function cCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,$I)),a(),v(" ",m(2,2,"labels.text.Define delinquency day ranges and bucket set for loan products")," "))}function pCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function mCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function dCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,cCt,3,5,"p",22),r()(),l(9,"div",23),E(10,pCt,1,0,"fa-icon",24),E(11,mCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,$I)),a(2),g("routerLink",oe(9,$I)),a(4),v(" ",m(7,6,"labels.heading.Delinquency Buckets")," "),a(2),I(t.arrowBooleans[5]?8:-1),a(2),I(t.arrowBooleans[5]?-1:10),a(),I(t.arrowBooleans[5]?11:-1)}}function uCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,UI)),a(),v(" ",m(2,2,"labels.text.Defines rules for taking multiple rules")," "))}function fCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function hCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function gCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",29),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,uCt,3,5,"p",22),r()(),l(9,"div",23),E(10,fCt,1,0,"fa-icon",24),E(11,hCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,UI)),a(2),g("routerLink",oe(9,UI)),a(4),v(" ",m(7,6,"labels.heading.Products Mix")," "),a(2),I(t.arrowBooleans[6]?8:-1),a(2),I(t.arrowBooleans[6]?-1:10),a(),I(t.arrowBooleans[6]?11:-1)}}function _Ct(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,WI)),a(),v(" ",m(2,2,"labels.text.Add, modify or inactivate a Fixed deposit product")," "))}function CCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function vCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function xCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,_Ct,3,5,"p",22),r()(),l(9,"div",23),E(10,CCt,1,0,"fa-icon",24),E(11,vCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,WI)),a(2),g("routerLink",oe(9,WI)),a(4),v(" ",m(7,6,"labels.heading.Fixed Deposit Products")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function bCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,QI)),a(),v(" ",m(2,2,"labels.text.Add, modify or inactivate a Recurring Deposit product")," "))}function yCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function SCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function wCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,bCt,3,5,"p",22),r()(),l(9,"div",23),E(10,yCt,1,0,"fa-icon",24),E(11,SCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,QI)),a(2),g("routerLink",oe(9,QI)),a(4),v(" ",m(7,6,"labels.heading.Recurring Deposit Products")," "),a(2),I(t.arrowBooleans[8]?8:-1),a(2),I(t.arrowBooleans[8]?-1:10),a(),I(t.arrowBooleans[8]?11:-1)}}function PCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,YI)),a(),v(" ",m(2,2,"labels.text.Define Tax components and Tax groups")," "))}function TCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function MCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function DCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",30),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,PCt,3,5,"p",22),r()(),l(9,"div",23),E(10,TCt,1,0,"fa-icon",24),E(11,MCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,YI)),a(2),g("routerLink",oe(9,YI)),a(4),v(" ",m(7,6,"labels.heading.Manage Tax Configurations")," "),a(2),I(t.arrowBooleans[9]?8:-1),a(2),I(t.arrowBooleans[9]?-1:10),a(),I(t.arrowBooleans[9]?11:-1)}}function ECt(e,o){e&1&&(l(0,"p",31),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,JI)),a(),v(" ",m(2,2,"labels.text.Define floating rates for loan products")," "))}function ICt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function OCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function ACt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",20),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,ECt,3,5,"p",31),r()(),l(9,"div",23),E(10,ICt,1,0,"fa-icon",24),E(11,OCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,JI)),a(2),g("routerLink",oe(9,JI)),a(4),v(" ",m(7,6,"labels.heading.Floating Rates")," "),a(2),I(t.arrowBooleans[10]?8:-1),a(2),I(t.arrowBooleans[10]?-1:10),a(),I(t.arrowBooleans[10]?11:-1)}}function FCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8," Close "),r(),l(9,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepCharges())}),c(10),p(11,"translate"),r(),l(12,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepCharges())}),c(13),p(14,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Charges")),a(3),h(m(5,6,"labels.text.Two types of charges\u2014fees and penalties")),a(6),v(" ",m(11,8,"labels.buttons.Back")," "),a(3),v(" ",m(14,10,"labels.buttons.Next")," "))}function kCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepLoanProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepLoanProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Loan Products")),a(3),h(m(5,7,"labels.text.Loan products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function BCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepSavingsProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepSavingsProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Savings Products")),a(3),h(m(5,7,"labels.text.Savings products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function RCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepShareProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepShareProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Share Products")),a(3),h(m(5,7,"labels.text.Share products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function NCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepFixedDepositProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepFixedDepositProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Fixed Deposit Products")),a(3),h(m(5,7,"labels.text.Fixed Deposit Products defines the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function LCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepRecurringDepositProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepRecurringDepositProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Recurring Deposit Products")),a(3),h(m(5,7,"labels.text.Recurring Deposit products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var $y=(()=>{class e{constructor(){this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.arrowBooleans=new Array(11).fill(!1)}ngAfterViewInit(){this.configurationWizardService.showCharges===!0&&setTimeout(()=>{this.showPopover(this.templateCharges,this.charges.nativeElement,"bottom",!0)}),this.configurationWizardService.showLoanProducts===!0&&setTimeout(()=>{this.showPopover(this.templateLoanProducts,this.loanProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showSavingsProducts===!0&&setTimeout(()=>{this.showPopover(this.templateSavingsProducts,this.savingsProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showShareProducts===!0&&setTimeout(()=>{this.showPopover(this.templateShareProducts,this.shareProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showFixedDepositProducts===!0&&setTimeout(()=>{this.showPopover(this.templateFixedDepositProducts,this.fixedDepositProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showRecurringDepositProducts===!0&&setTimeout(()=>{this.showPopover(this.templateRecurringDepositProducts,this.recurringDepositProducts.nativeElement,"bottom",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStepCharges(){this.configurationWizardService.showCharges=!1,this.configurationWizardService.showChargesPage=!0,this.router.navigate(["/products/charges"])}previousStepCharges(){this.configurationWizardService.showCharges=!1,this.configurationWizardService.showCreateJournalEntries=!0,this.router.navigate(["/accounting/journal-entries/create"])}nextStepLoanProducts(){this.configurationWizardService.showLoanProducts=!1,this.configurationWizardService.showLoanProductsPage=!0,this.router.navigate(["/products/loan-products"])}previousStepLoanProducts(){this.configurationWizardService.showLoanProducts=!1,this.configurationWizardService.showChargesList=!0,this.router.navigate(["/products/charges"])}nextStepSavingsProducts(){this.configurationWizardService.showSavingsProducts=!1,this.configurationWizardService.showSavingsProductsPage=!0,this.router.navigate(["/products/saving-products"])}previousStepSavingsProducts(){this.configurationWizardService.showSavingsProducts=!1,this.configurationWizardService.showLoanProductsList=!0,this.router.navigate(["/products/loan-products"])}nextStepShareProducts(){this.configurationWizardService.showShareProducts=!1,this.configurationWizardService.showShareProductsPage=!0,this.router.navigate(["/products/share-products"])}previousStepShareProducts(){this.configurationWizardService.showShareProducts=!1,this.configurationWizardService.showSavingsProductsList=!0,this.router.navigate(["/products/saving-products"])}nextStepFixedDepositProducts(){this.configurationWizardService.showFixedDepositProducts=!1,this.configurationWizardService.showFixedDepositProductsPage=!0,this.router.navigate(["/products/fixed-deposit-products"])}previousStepFixedDepositProducts(){this.configurationWizardService.showFixedDepositProducts=!1,this.configurationWizardService.showShareProductsList=!0,this.router.navigate(["/products/share-products"])}nextStepRecurringDepositProducts(){this.configurationWizardService.showRecurringDepositProducts=!1,this.configurationWizardService.showRecurringDepositProductsPage=!0,this.router.navigate(["/products/recurring-deposit-products"])}previousStepRecurringDepositProducts(){this.configurationWizardService.showRecurringDepositProducts=!1,this.configurationWizardService.showFixedDepositProductsList=!0,this.router.navigate(["/products/fixed-deposit-products"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-products"]],viewQuery:function(n,i){if(n&1&&(Ee(A_t,5),Ee(F_t,5),Ee(k_t,5),Ee(B_t,5),Ee(R_t,5),Ee(N_t,5),Ee(L_t,5),Ee(V_t,5),Ee(q_t,5),Ee(z_t,5),Ee(H_t,5),Ee(G_t,5)),n&2){let s;Te(s=Me())&&(i.charges=s.first),Te(s=Me())&&(i.templateCharges=s.first),Te(s=Me())&&(i.loanProducts=s.first),Te(s=Me())&&(i.templateLoanProducts=s.first),Te(s=Me())&&(i.savingsProducts=s.first),Te(s=Me())&&(i.templateSavingsProducts=s.first),Te(s=Me())&&(i.shareProducts=s.first),Te(s=Me())&&(i.templateShareProducts=s.first),Te(s=Me())&&(i.fixedDepositProducts=s.first),Te(s=Me())&&(i.templateFixedDepositProducts=s.first),Te(s=Me())&&(i.recurringDepositProducts=s.first),Te(s=Me())&&(i.templateRecurringDepositProducts=s.first)}},decls:53,vars:20,consts:[["loanProducts",""],["savingsProducts",""],["shareProducts",""],["charges",""],["fixedDepositProducts",""],["recurringDepositProducts",""],["templateCharges",""],["templateLoanProducts",""],["templateSavingsProducts",""],["templateShareProducts",""],["templateFixedDepositProducts",""],["templateRecurringDepositProducts",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink",4,"mifosxHasPermission"],[3,"routerLink"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","money-bill-alt","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","briefcase","size","sm"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","random","size","sm"],["icon","cogs","size","sm"],["matLine","",3,"routerLink"],[1,"mw400"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",12)(1,"mat-card")(2,"div",13)(3,"div",14)(4,"mat-nav-list")(5,"div",null,0),F(7,W_t,12,10,"mat-list-item",15),r(),l(8,"div",null,1),F(10,K_t,12,10,"mat-list-item",15),r(),l(11,"div",null,2),F(13,tCt,12,10,"mat-list-item",15),r(),l(14,"div",null,3),F(16,aCt,12,10,"mat-list-item",15),r(),l(17,"mat-list-item",16)(18,"div",17)(19,"div",18)(20,"mat-icon",19),b(21,"fa-icon",20),r(),l(22,"div",21),c(23),p(24,"translate"),E(25,rCt,3,5,"p",22),r()(),l(26,"div",23),E(27,lCt,1,0,"fa-icon",24),E(28,sCt,1,0,"fa-icon",25),r()()(),F(29,dCt,12,10,"mat-list-item",15),r()(),l(30,"div",14)(31,"mat-nav-list"),F(32,gCt,12,10,"mat-list-item",15),l(33,"div",null,4),F(35,xCt,12,10,"mat-list-item",15),r(),l(36,"div",null,5),F(38,wCt,12,10,"mat-list-item",15),r(),F(39,DCt,12,10,"mat-list-item",15)(40,ACt,12,10,"mat-list-item",15),r()()()()(),F(41,FCt,15,12,"ng-template",null,6,ti)(43,kCt,16,15,"ng-template",null,7,ti)(45,BCt,16,15,"ng-template",null,8,ti)(47,RCt,16,15,"ng-template",null,9,ti)(49,NCt,16,15,"ng-template",null,10,ti)(51,LCt,16,15,"ng-template",null,11,ti)),n&2&&(a(7),g("mifosxHasPermission","READ_LOANPRODUCT"),a(3),g("mifosxHasPermission","READ_SAVINGSPRODUCT"),a(3),g("mifosxHasPermission","READ_SHAREPRODUCT"),a(3),g("mifosxHasPermission","READ_CHARGE"),a(),g("routerLink",oe(18,qI)),a(2),g("routerLink",oe(19,qI)),a(4),v(" ",m(24,16,"labels.heading.Collateral Management")," "),a(2),I(i.arrowBooleans[4]?25:-1),a(2),I(i.arrowBooleans[4]?-1:27),a(),I(i.arrowBooleans[4]?28:-1),a(),g("mifosxHasPermission","READ_DELINQUENCY_BUCKET"),a(3),g("mifosxHasPermission","READ_PRODUCTMIX"),a(3),g("mifosxHasPermission","READ_FIXEDDEPOSITPRODUCT"),a(3),g("mifosxHasPermission","READ_RECURRINGDEPOSITPRODUCT"),a(),g("mifosxHasPermission","READ_TAXGROUP"),a(),g("mifosxHasPermission","READ_FLOATINGRATE"))},dependencies:[ue,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],styles:["mat-list-item[_ngcontent-%COMP%]{height:50px}"]})}}return e})();var VCt=["buttonCreateLoanProduct"],qCt=["templateButtonCreateLoanProduct"],zCt=["loanProductsTable"],HCt=["templateLoanProductsTable"],GCt=()=>[10,25,50,100],jCt=()=>["create"],$Ct=e=>[e];function UCt(e,o){e&1&&(l(0,"button",24),b(1,"fa-icon",25),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,jCt)),a(2),v(" ",m(3,2,"labels.buttons.Create Loan Product")," "))}function WCt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function QCt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function YCt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function JCt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function KCt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expiry Date")))}function XCt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.closeDate))}}function ZCt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function e2t(e,o){if(e&1&&(l(0,"td",27)(1,"div",28),p(2,"statusLookup"),b(3,"fa-icon",29),p(4,"translate"),p(5,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.status)),a(2),g("matTooltip",Le(t.status==="loanProduct.active"?m(4,5,"labels.inputs.Active"):m(5,7,"labels.catalogs.Inactive")))}}function t2t(e,o){e&1&&b(0,"tr",30)}function i2t(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,$Ct,t.id))}}function n2t(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(33);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create loan product")),a(3),h(m(5,7,"labels.text.This option allows you to create new loan product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function o2t(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",33)(4,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(31);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(35);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter loan products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function a2t(e,o){if(e&1){let t=Y();l(0,"h4",32),c(1),p(2,"translate"),l(3,"a",36),c(4),p(5,"translate"),r()(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(33);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of loan products in the organization"),": "),a(3),h(m(5,7,"labels.heading.Loan Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Uy=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName","closeDate","status"],this.route.data.subscribe(t=>{this.loanProductsData=t.loanProducts})}ngOnInit(){this.dataSource=new Wt(this.loanProductsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showLoanProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateLoanProduct,this.buttonCreateLoanProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showLoanProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateLoanProductsTable,this.loanProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showLoanProductsPage=!1,this.configurationWizardService.showLoanProductsList=!1,this.configurationWizardService.showSavingsProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showLoanProductsPage=!1,this.configurationWizardService.showLoanProductsList=!1,this.configurationWizardService.showLoanProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(VCt,5),Ee(qCt,5),Ee(zCt,5),Ee(HCt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateLoanProduct=s.first),Te(s=Me())&&(i.templateButtonCreateLoanProduct=s.first),Te(s=Me())&&(i.loanProductsTable=s.first),Te(s=Me())&&(i.templateLoanProductsTable=s.first)}},decls:36,vars:9,consts:[["buttonCreateLoanProduct",""],["filter",""],["loanProductsTable",""],["templateButtonCreateLoanProduct",""],["templateFilter",""],["templateLoanProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","closeDate"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102039585/Loan+Products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,UCt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,WCt,3,3,"th",16)(17,QCt,2,1,"td",17),Z(),X(18,18),F(19,YCt,3,3,"th",16)(20,JCt,2,1,"td",17),Z(),X(21,19),F(22,KCt,3,3,"th",16)(23,XCt,3,3,"td",17),Z(),X(24,20),F(25,ZCt,3,3,"th",16)(26,e2t,6,9,"td",17),Z(),F(27,t2t,1,0,"tr",21)(28,i2t,1,3,"tr",22),r(),b(29,"mat-paginator",23),r()(),F(30,n2t,16,15,"ng-template",null,3,ti)(32,o2t,13,12,"ng-template",null,4,ti)(34,a2t,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_LOANPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,GCt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,Pi,he,go],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function r2t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}var cm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.createLoanProductDetailsForm()}ngOnInit(){this.fundData=this.loanProductsTemplate.fundOptions,this.loanProductDetailsForm.patchValue({name:this.loanProductsTemplate.name,shortName:this.loanProductsTemplate.shortName,description:this.loanProductsTemplate.description,externalId:this.loanProductsTemplate.externalId,fundId:this.loanProductsTemplate.fundId,startDate:this.loanProductsTemplate.startDate&&new Date(this.loanProductsTemplate.startDate),closeDate:this.loanProductsTemplate.closeDate&&new Date(this.loanProductsTemplate.closeDate),includeInBorrowerCycle:this.loanProductsTemplate.includeInBorrowerCycle})}createLoanProductDetailsForm(){this.loanProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:[""],externalId:[""],fundId:[""],startDate:[""],closeDate:[""],includeInBorrowerCycle:[!1]})}get loanProductDetails(){let t=this.loanProductDetailsForm.value,n=this.loanProductDetailsForm.value.startDate,i=this.loanProductDetailsForm.value.closeDate,s=this.settingsService.dateFormat;return t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(n,s)||""),t.closeDate instanceof Date&&(t.closeDate=this.dateUtils.formatDate(i,s)||""),t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-details-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},decls:79,vars:89,consts:[["startDatePicker",""],["closeDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["matInput","","formControlName","name","required","",3,"matTooltip"],[1,"flex-48"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],["matInput","","formControlName","externalId",3,"matTooltip"],["formControlName","fundId",3,"matTooltip"],[3,"value"],["labelPosition","before","formControlName","includeInBorrowerCycle",1,"flex-48",3,"matTooltip"],[1,"flex-48",3,"click"],["matInput","","formControlName","startDate",3,"min","max","matDatepicker","matTooltip"],["matSuffix","",3,"for"],["matInput","","formControlName","closeDate",3,"min","max","matDatepicker","matTooltip"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){if(n&1){let s=Y();l(0,"form",2)(1,"div",3)(2,"mat-form-field",4)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",5),p(7,"translate"),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",6)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),p(20,"translate"),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",6)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",8),p(33,"translate"),r(),l(34,"mat-form-field",6)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",9),p(39,"translate"),Se(40,r2t,2,2,"mat-option",10,Pe),r()(),l(42,"mat-checkbox",11),p(43,"translate"),c(44),p(45,"translate"),r(),l(46,"mat-form-field",12),R("click",function(){V(s);let u=ve(54);return q(u.open())}),l(47,"mat-label"),c(48),p(49,"translate"),r(),b(50,"input",13),p(51,"translate"),b(52,"mat-datepicker-toggle",14)(53,"mat-datepicker",null,0),r(),l(55,"mat-form-field",12),R("click",function(){V(s);let u=ve(63);return q(u.open())}),l(56,"mat-label"),c(57),p(58,"translate"),r(),b(59,"input",15),p(60,"translate"),b(61,"mat-datepicker-toggle",14)(62,"mat-datepicker",null,1),r(),l(64,"mat-form-field",4)(65,"mat-label"),c(66),p(67,"translate"),r(),b(68,"textarea",16),p(69,"translate"),r()(),l(70,"div",17)(71,"button",18),b(72,"fa-icon",19),c(73),p(74,"translate"),r(),l(75,"button",20),c(76),p(77,"translate"),b(78,"fa-icon",21),r()()()}if(n&2){let s=ve(54),d=ve(63);g("formGroup",i.loanProductDetailsForm),a(4),h(m(5,41,"labels.inputs.Product Name")),a(2),g("matTooltip",Le(m(7,43,"tooltips.Product name is a unique identifier"))),a(3),le(" ",m(10,45,"labels.inputs.Product Name")," ",m(11,47,"labels.commons.is")," "),a(4),h(m(14,49,"labels.commons.required")),a(4),h(m(18,51,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(20,53,"tooltips.Short name is a unique identifier"))),a(3),le(" ",m(23,55,"labels.inputs.Short Name")," ",m(24,57,"labels.commons.is")," "),a(4),h(m(27,59,"labels.commons.required")),a(4),h(m(31,61,"labels.inputs.External Id")),a(2),g("matTooltip",Le(m(33,63,"tooltips.External Id is a unique identifier"))),a(4),h(m(37,65,"labels.inputs.Fund")),a(2),g("matTooltip",Le(m(39,67,"tooltips.Loan products may be assigned"))),a(2),we(i.fundData),a(2),g("matTooltip",Le(m(43,69,"tooltips.A borrower loan counter (cycle)"))),a(2),v(" ",m(45,71,"labels.inputs.Include in Customer Loan Counter")," "),a(4),h(m(49,73,"labels.inputs.Start Date")),a(2),g("matTooltip",Le(m(51,75,"tooltips.loan product will be active and available to clients")))("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(2),g("for",s),a(5),h(m(58,77,"labels.inputs.Close Date")),a(2),g("matTooltip",Le(m(60,79,"tooltips.loan product will become inactive and unavailable to clients")))("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(2),g("for",d),a(5),h(m(67,81,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(69,83,"tooltips.Provide additional information"))),a(5),v(" ",m(74,85,"labels.buttons.Previous")," "),a(3),v(" ",m(77,87,"labels.buttons.Next")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,si,Ln,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function l2t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var pm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createLoanProductCurrencyForm()}ngOnInit(){this.currencyData=this.loanProductsTemplate.currencyOptions,this.loanProductCurrencyForm.patchValue({currencyCode:this.loanProductsTemplate.currency.code||this.currencyData[0].code,digitsAfterDecimal:this.loanProductsTemplate.currency.decimalPlaces?this.loanProductsTemplate.currency.decimalPlaces:2,inMultiplesOf:this.loanProductsTemplate.currency.inMultiplesOf,installmentAmountInMultiplesOf:this.loanProductsTemplate.installmentAmountInMultiplesOf})}createLoanProductCurrencyForm(){this.loanProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:[2,ce.required],inMultiplesOf:"",installmentAmountInMultiplesOf:""})}get loanProductCurrency(){return this.loanProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-currency-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},decls:50,vars:49,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf",3,"matTooltip"],["type","number","matInput","","formControlName","installmentAmountInMultiplesOf"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,l2t,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),r(),l(36,"mat-form-field",2)(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",7),r()(),l(41,"div",8)(42,"button",9),b(43,"fa-icon",10),c(44),p(45,"translate"),r(),l(46,"button",11),c(47),p(48,"translate"),b(49,"fa-icon",12),r()()()),n&2&&(g("formGroup",i.loanProductCurrencyForm),a(4),h(m(5,19,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,21,"tooltips.The currency in which the loan will be disbursed"))),a(2),we(i.currencyData),a(3),le(" ",m(12,23,"labels.inputs.Currency")," ",m(13,25,"labels.commons.is")," "),a(4),h(m(16,27,"labels.commons.required")),a(4),h(m(20,29,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,31,"tooltips.Number of decimal places to be used to track and report"))),a(3),le(" ",m(25,33,"labels.inputs.Decimal Places")," ",m(26,35,"labels.commons.is")," "),a(4),h(m(29,37,"labels.commons.required")),a(4),h(m(33,39,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,41,"tooltips.Enter multiples of currency value"))),a(4),h(m(39,43,"labels.inputs.Installment in multiples of")),a(6),v(" ",m(45,45,"labels.buttons.Previous")," "),a(3),v(" ",m(48,47,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Wy=(()=>{class e{constructor(){this.advancedTransactionProcessingStrategy=new Ra(!1)}initialize(t){this.advancedTransactionProcessingStrategy.next(t)}get isAdvancedTransactionProcessingStrategy(){return this.advancedTransactionProcessingStrategy.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function s2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function c2t(e,o){if(e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",38),Se(5,s2t,3,5,"mat-option",13,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Over Amount Calculation Type")),a(3),we(t.overAppliedCalculationTypeData)}}function p2t(e,o){e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",39),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Over Amount")))}function m2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function d2t(e,o){if(e&1&&(l(0,"mat-checkbox",20),c(1),p(2,"translate"),r()),e&2){let t=w();g("formControl",t.zeroInterest),a(),v(" ",m(2,2,"labels.inputs.Is Zero Interest Rate?")," ")}}function u2t(e,o){e&1&&(l(0,"mat-checkbox",21),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is Linked to floating interest rates?")," "))}function f2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function h2t(e,o){if(e&1&&(l(0,"div",22)(1,"h4",2),c(2),p(3,"translate"),b(4,"i",11),p(5,"translate"),r(),l(6,"mat-form-field",40)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",41),l(11,"mat-error"),c(12),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",40)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",42),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",40)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",43),l(35,"mat-error"),c(36),p(37,"translate"),l(38,"strong"),c(39),p(40,"translate"),r(),c(41),p(42,"translate"),l(43,"strong"),c(44),p(45,"translate"),r()()(),l(46,"mat-form-field",40)(47,"mat-label"),c(48),p(49,"translate"),r(),l(50,"mat-select",44),Se(51,f2t,3,5,"mat-option",13,Pe),r(),l(53,"mat-error"),c(54),p(55,"translate"),p(56,"translate"),l(57,"strong"),c(58),p(59,"translate"),r()()()()),e&2){let t=w();a(2),v(" ",m(3,26,"labels.inputs.Nominal interest rate")," "),a(2),g("matTooltip",Le(m(5,28,"tooltips.Define the minimum, default, maximum, and period for the nominal interest rate"))),a(4),h(m(9,30,"labels.inputs.Minimum")),a(2),g("min",0),Dn("disabled",t.isZeroInterest()),a(2),v(" ",m(13,32,"labels.commons.Minimum Value must be")," "),a(3),h(m(16,34,"labels.commons.greater equal to than 0")),a(4),h(m(20,36,"labels.inputs.Default")),a(2),Dn("disabled",t.isZeroInterest()),a(2),ea(" ",m(24,38,"labels.catalogs.Default")," ",m(25,40,"labels.inputs.Nominal interest rate")," ",m(26,42,"labels.commons.is")," "),a(5),h(m(29,44,"labels.commons.required")),a(4),h(m(33,46,"labels.inputs.Maximum")),a(2),g("min",0),Dn("disabled",t.isZeroInterest()),a(2),v(" ",m(37,48,"labels.commons.Maximum Value must be")," "),a(3),h(m(40,50,"labels.commons.greater equal to than 0")),a(2),v(" ",m(42,52,"labels.commons.and must be greater than")," "),a(3),h(m(45,54,"labels.commons.Minimum Principal")),a(4),h(m(49,56,"labels.inputs.Frequency")),a(2),g("disabled",t.isZeroInterest()),a(),we(t.interestRateFrequencyTypeData),a(3),le(" ",m(55,58,"labels.inputs.Nominal interest rate frequency")," ",m(56,60,"labels.commons.is")," "),a(4),h(m(59,62,"labels.commons.required"))}}function g2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function _2t(e,o){if(e&1&&(l(0,"div",23)(1,"h4",2),c(2),p(3,"translate"),b(4,"i",11),p(5,"translate"),r(),l(6,"mat-form-field",4)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",45),Se(11,g2t,2,2,"mat-option",13,Pe),r(),l(13,"mat-error"),c(14),p(15,"translate"),p(16,"translate"),l(17,"strong"),c(18),p(19,"translate"),r()()(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",46),l(25,"mat-error"),c(26),p(27,"translate"),p(28,"translate"),l(29,"strong"),c(30),p(31,"translate"),r()()(),l(32,"mat-checkbox",47),c(33),p(34,"translate"),r(),l(35,"mat-form-field",4)(36,"mat-label"),c(37),p(38,"translate"),r(),b(39,"input",48),l(40,"mat-error"),c(41),p(42,"translate"),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()(),l(47,"mat-form-field",4)(48,"mat-label"),c(49),p(50,"translate"),r(),b(51,"input",49),l(52,"mat-error"),c(53),p(54,"translate"),p(55,"translate"),p(56,"translate"),l(57,"strong"),c(58),p(59,"translate"),r()()(),l(60,"mat-form-field",4)(61,"mat-label"),c(62),p(63,"translate"),r(),b(64,"input",50),l(65,"mat-error"),c(66),p(67,"translate"),p(68,"translate"),l(69,"strong"),c(70),p(71,"translate"),r()()()()),e&2){let t=w();a(2),v(" ",m(3,26,"labels.inputs.Floating Interest Rate")," "),a(2),g("matTooltip",Le(m(5,28,"tooltips.Define the minimum, default, maximum, and period for the floating interest rate"))),a(4),h(m(9,30,"labels.inputs.Floating Rate")),a(3),we(t.floatingRateData),a(3),le(" ",m(15,32,"labels.inputs.Floating rate")," ",m(16,34,"labels.commons.is")," "),a(4),h(m(19,36,"labels.commons.required")),a(4),h(m(23,38,"labels.inputs.Differential Rate")),a(4),le(" ",m(27,40,"labels.inputs.Differential rate")," ",m(28,42,"labels.commons.is")," "),a(4),h(m(31,44,"labels.commons.required")),a(3),v(" ",m(34,46,"labels.inputs.Is Floating calculation allowed?")," "),a(4),h(m(38,48,"labels.inputs.Minimum")),a(2),g("min",0),a(2),le(" ",m(42,50,"labels.inputs.Minimum interest rate")," ",m(43,52,"labels.commons.is")," "),a(4),h(m(46,54,"labels.commons.required")),a(4),h(m(50,56,"labels.inputs.Default")),a(4),ea(" ",m(54,58,"labels.catalogs.Default")," ",m(55,60,"labels.inputs.Interest rate")," ",m(56,62,"labels.commons.is")," "),a(5),h(m(59,64,"labels.commons.required")),a(4),h(m(63,66,"labels.inputs.Maximum")),a(4),le(" ",m(67,68,"labels.inputs.Maximum interest rate")," ",m(68,70,"labels.commons.is")," "),a(4),h(m(71,72,"labels.commons.required"))}}function C2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function v2t(e,o){if(e&1&&(l(0,"td",67),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.valueConditionType,n.valueConditionTypeData,"id","value")," ")}}function x2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function b2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function y2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function S2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function w2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function P2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function T2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function M2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function D2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function E2t(e,o){if(e&1){let t=Y();l(0,"td",67)(1,"button",68),R("click",function(){let i=V(t).index,s=w(3);return q(s.editVariationsForBorrowerCycle("Principal",s.principalVariationsForBorrowerCycle,i))}),b(2,"fa-icon",69),r(),l(3,"button",70),R("click",function(){let i=V(t).index,s=w(3);return q(s.deleteVariationsForBorrowerCycle(s.principalVariationsForBorrowerCycle,i))}),b(4,"fa-icon",71),r()()}}function I2t(e,o){e&1&&b(0,"tr",72)}function O2t(e,o){e&1&&b(0,"tr",73)}function A2t(e,o){if(e&1&&(l(0,"table",55),X(1,56),F(2,C2t,3,3,"th",57)(3,v2t,3,6,"td",58),Z(),X(4,59),F(5,x2t,3,3,"th",57)(6,b2t,2,1,"td",58),Z(),X(7,60),F(8,y2t,3,3,"th",57)(9,S2t,2,1,"td",58),Z(),X(10,61),F(11,w2t,3,3,"th",57)(12,P2t,2,1,"td",58),Z(),X(13,62),F(14,T2t,3,3,"th",57)(15,M2t,2,1,"td",58),Z(),X(16,63),F(17,D2t,3,3,"th",57)(18,E2t,5,0,"td",58),Z(),F(19,I2t,1,0,"tr",64)(20,O2t,1,0,"tr",65),r()),e&2){let t=w(2);g("dataSource",t.principalVariationsForBorrowerCycle.value),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function F2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function k2t(e,o){if(e&1&&(l(0,"td",67),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.valueConditionType,n.valueConditionTypeData,"id","value")," ")}}function B2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function R2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function N2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function L2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function V2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function q2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function z2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function H2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function G2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function j2t(e,o){if(e&1){let t=Y();l(0,"td",67)(1,"button",68),R("click",function(){let i=V(t).index,s=w(3);return q(s.editVariationsForBorrowerCycle("NumberOfRepayments",s.numberOfRepaymentVariationsForBorrowerCycle,i))}),b(2,"fa-icon",69),r(),l(3,"button",70),R("click",function(){let i=V(t).index,s=w(3);return q(s.deleteVariationsForBorrowerCycle(s.numberOfRepaymentVariationsForBorrowerCycle,i))}),b(4,"fa-icon",71),r()()}}function $2t(e,o){e&1&&b(0,"tr",72)}function U2t(e,o){e&1&&b(0,"tr",73)}function W2t(e,o){if(e&1&&(l(0,"table",55),X(1,56),F(2,F2t,3,3,"th",57)(3,k2t,3,6,"td",58),Z(),X(4,59),F(5,B2t,3,3,"th",57)(6,R2t,2,1,"td",58),Z(),X(7,60),F(8,N2t,3,3,"th",57)(9,L2t,2,1,"td",58),Z(),X(10,61),F(11,V2t,3,3,"th",57)(12,q2t,2,1,"td",58),Z(),X(13,62),F(14,z2t,3,3,"th",57)(15,H2t,2,1,"td",58),Z(),X(16,63),F(17,G2t,3,3,"th",57)(18,j2t,5,0,"td",58),Z(),F(19,$2t,1,0,"tr",64)(20,U2t,1,0,"tr",65),r()),e&2){let t=w(2);g("dataSource",t.numberOfRepaymentVariationsForBorrowerCycle.value),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function Q2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function Y2t(e,o){if(e&1&&(l(0,"td",67),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.valueConditionType,n.valueConditionTypeData,"id","value")," ")}}function J2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function K2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function X2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function Z2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function evt(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function tvt(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function ivt(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function nvt(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function ovt(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function avt(e,o){if(e&1){let t=Y();l(0,"td",67)(1,"button",68),R("click",function(){let i=V(t).index,s=w(3);return q(s.editVariationsForBorrowerCycle("NominalInterestRate",s.interestRateVariationsForBorrowerCycle,i))}),b(2,"fa-icon",69),r(),l(3,"button",70),R("click",function(){let i=V(t).index,s=w(3);return q(s.deleteVariationsForBorrowerCycle(s.interestRateVariationsForBorrowerCycle,i))}),b(4,"fa-icon",71),r()()}}function rvt(e,o){e&1&&b(0,"tr",72)}function lvt(e,o){e&1&&b(0,"tr",73)}function svt(e,o){if(e&1&&(l(0,"table",55),X(1,56),F(2,Q2t,3,3,"th",57)(3,Y2t,3,6,"td",58),Z(),X(4,59),F(5,J2t,3,3,"th",57)(6,K2t,2,1,"td",58),Z(),X(7,60),F(8,X2t,3,3,"th",57)(9,Z2t,2,1,"td",58),Z(),X(10,61),F(11,evt,3,3,"th",57)(12,tvt,2,1,"td",58),Z(),X(13,62),F(14,ivt,3,3,"th",57)(15,nvt,2,1,"td",58),Z(),X(16,63),F(17,ovt,3,3,"th",57)(18,avt,5,0,"td",58),Z(),F(19,rvt,1,0,"tr",64)(20,lvt,1,0,"tr",65),r()),e&2){let t=w(2);g("dataSource",t.interestRateVariationsForBorrowerCycle.value),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function cvt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"div",52)(5,"button",53),R("click",function(){V(t);let i=w();return q(i.addVariationsForBorrowerCycle("Principal",i.principalVariationsForBorrowerCycle))}),b(6,"fa-icon",54),c(7),p(8,"translate"),r()(),E(9,A2t,21,3,"table",55),l(10,"h4",51),c(11),p(12,"translate"),r(),l(13,"div",52)(14,"button",53),R("click",function(){V(t);let i=w();return q(i.addVariationsForBorrowerCycle("NumberOfRepayments",i.numberOfRepaymentVariationsForBorrowerCycle))}),b(15,"fa-icon",54),c(16),p(17,"translate"),r()(),E(18,W2t,21,3,"table",55),l(19,"h4",51),c(20),p(21,"translate"),r(),l(22,"div",52)(23,"button",53),R("click",function(){V(t);let i=w();return q(i.addVariationsForBorrowerCycle("NominalInterestRate",i.interestRateVariationsForBorrowerCycle))}),b(24,"fa-icon",54),c(25),p(26,"translate"),r()(),E(27,svt,21,3,"table",55),r()}if(e&2){let t=w();a(2),h(m(3,9,"labels.inputs.Principal by loan cycle")),a(5),v(" ",m(8,11,"labels.buttons.Add")," "),a(2),I(t.principalVariationsForBorrowerCycle.value.length?9:-1),a(2),h(m(12,13,"labels.inputs.Number of repayments by loan cycle")),a(5),v(" ",m(17,15,"labels.buttons.Add")," "),a(2),I(t.numberOfRepaymentVariationsForBorrowerCycle.value.length?18:-1),a(2),h(m(21,17,"labels.inputs.Nominal interest rate by loan cycle")),a(5),v(" ",m(26,19,"labels.buttons.Add")," "),a(2),I(t.interestRateVariationsForBorrowerCycle.value.length?27:-1)}}function pvt(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function mvt(e,o){e&1&&(l(0,"h4",29),c(1),p(2,"translate"),b(3,"i",11),p(4,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Fixed Length")," "),a(2),g("matTooltip",Le(m(4,5,"tooltips.Due to regulatory requirements in some countries"))))}function dvt(e,o){e&1&&(l(0,"mat-form-field",26)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",74),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Fixed Length")))}function uvt(e,o){if(e&1&&(l(0,"span",30),c(1),p(2,"find"),p(3,"translateKey"),r()),e&2){let t=w();a(),h(Ft(3,6,$t(2,1,t.loanProductTermsForm.value.repaymentFrequencyType,t.repaymentFrequencyTypeData,"id","value"),"catalogs"))}}var mm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.processingStrategyService=T(Wy),this.dialog=T(Ht),this.translateService=T(yi),this.zeroInterest=new it(!1),this.displayedColumns=["valueConditionType","borrowerCycleNumber","minValue","defaultValue","maxValue","actions"],this.isAdvancedTransactionProcessingStrategy=!1,this.createLoanProductTermsForm(),this.setConditionalControls()}ngOnInit(){this.valueConditionTypeData=this.loanProductsTemplate.valueConditionTypeOptions,this.floatingRateData=this.loanProductsTemplate.floatingRateOptions,this.interestRateFrequencyTypeData=this.loanProductsTemplate.interestRateFrequencyTypeOptions,this.repaymentFrequencyTypeData=this.loanProductsTemplate.repaymentFrequencyTypeOptions,this.repaymentStartDateTypeOptions=this.loanProductsTemplate.repaymentStartDateTypeOptions,this.overAppliedCalculationTypeData=[{id:"percentage",value:"Percentage"},{id:"flat",value:"Fixed Amount"}],this.loanProductTermsForm.patchValue({minPrincipal:this.loanProductsTemplate.minPrincipal,principal:this.loanProductsTemplate.principal,maxPrincipal:this.loanProductsTemplate.maxPrincipal,minNumberOfRepayments:this.loanProductsTemplate.minNumberOfRepayments,numberOfRepayments:this.loanProductsTemplate.numberOfRepayments,maxNumberOfRepayments:this.loanProductsTemplate.maxNumberOfRepayments,isLinkedToFloatingInterestRates:this.loanProductsTemplate.isLinkedToFloatingInterestRates,minInterestRatePerPeriod:this.loanProductsTemplate.minInterestRatePerPeriod,interestRatePerPeriod:this.loanProductsTemplate.interestRatePerPeriod,maxInterestRatePerPeriod:this.loanProductsTemplate.maxInterestRatePerPeriod,interestRateFrequencyType:this.loanProductsTemplate.interestRateFrequencyType.id,floatingRatesId:this.loanProductsTemplate.floatingRateId,interestRateDifferential:this.loanProductsTemplate.interestRateDifferential,isFloatingInterestRateCalculationAllowed:this.loanProductsTemplate.isFloatingInterestRateCalculationAllowed,allowApprovedDisbursedAmountsOverApplied:this.loanProductsTemplate.allowApprovedDisbursedAmountsOverApplied,minDifferentialLendingRate:this.loanProductsTemplate.minDifferentialLendingRate,defaultDifferentialLendingRate:this.loanProductsTemplate.defaultDifferentialLendingRate,maxDifferentialLendingRate:this.loanProductsTemplate.maxDifferentialLendingRate,useBorrowerCycle:this.loanProductsTemplate.useBorrowerCycle,repaymentEvery:this.loanProductsTemplate.repaymentEvery,repaymentFrequencyType:this.loanProductsTemplate.repaymentFrequencyType.id,minimumDaysBetweenDisbursalAndFirstRepayment:this.loanProductsTemplate.minimumDaysBetweenDisbursalAndFirstRepayment,repaymentStartDateType:this.loanProductsTemplate.repaymentStartDateType.id||1,interestRecognitionOnDisbursementDate:this.loanProductsTemplate.interestRecognitionOnDisbursementDate||!1}),this.loanProductsTemplate.allowApprovedDisbursedAmountsOverApplied&&this.loanProductTermsForm.patchValue({overAppliedCalculationType:this.loanProductsTemplate.overAppliedCalculationType,overAppliedNumber:this.loanProductsTemplate.overAppliedNumber}),this.loanProductTermsForm.setControl("principalVariationsForBorrowerCycle",this.formBuilder.array(this.loanProductsTemplate.principalVariationsForBorrowerCycle.map(t=>qt(at({},t),{valueConditionType:t.valueConditionType.id})))),this.loanProductTermsForm.setControl("numberOfRepaymentVariationsForBorrowerCycle",this.formBuilder.array(this.loanProductsTemplate.numberOfRepaymentVariationsForBorrowerCycle.map(t=>qt(at({},t),{valueConditionType:t.valueConditionType.id})))),this.loanProductTermsForm.setControl("interestRateVariationsForBorrowerCycle",this.formBuilder.array(this.loanProductsTemplate.interestRateVariationsForBorrowerCycle.map(t=>qt(at({},t),{valueConditionType:t.valueConditionType.id})))),this.zeroInterest.patchValue(this.loanProductsTemplate.minInterestRatePerPeriod===0&&this.loanProductsTemplate.interestRatePerPeriod===0&&this.loanProductsTemplate.maxInterestRatePerPeriod===0),this.processingStrategyService.advancedTransactionProcessingStrategy.subscribe(t=>{this.isAdvancedTransactionProcessingStrategy=t}),this.validateAdvancedPaymentStrategyControls()}createLoanProductTermsForm(){this.loanProductTermsForm=this.formBuilder.group({useBorrowerCycle:[!1],minPrincipal:[""],principal:["",ce.required],maxPrincipal:[""],minNumberOfRepayments:["",[ce.pattern("^[1-9]\\d*$")]],numberOfRepayments:["",[ce.required,ce.pattern("^[1-9]\\d*$")]],maxNumberOfRepayments:["",[ce.pattern("^[1-9]\\d*$")]],isLinkedToFloatingInterestRates:[!1],allowApprovedDisbursedAmountsOverApplied:[!1],overAppliedCalculationType:[{value:null,disabled:!0}],overAppliedNumber:[{value:null,disabled:!0}],minInterestRatePerPeriod:[""],interestRatePerPeriod:["",ce.required],maxInterestRatePerPeriod:[""],interestRateFrequencyType:["",ce.required],repaymentEvery:["",ce.required],repaymentFrequencyType:["",ce.required],minimumDaysBetweenDisbursalAndFirstRepayment:[""],repaymentStartDateType:[1],fixedLength:[null],interestRecognitionOnDisbursementDate:[!1]})}ngOnChanges(t){this.validateAdvancedPaymentStrategyControls()}setConditionalControls(){this.loanProductTermsForm.get("allowApprovedDisbursedAmountsOverApplied").valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.get("overAppliedCalculationType").enable(),this.loanProductTermsForm.get("overAppliedNumber").enable(),this.loanProductTermsForm.addControl("disallowExpectedDisbursements",new it("true"))):(this.loanProductTermsForm.get("overAppliedCalculationType").disable(),this.loanProductTermsForm.get("overAppliedCalculationType").patchValue(null),this.loanProductTermsForm.get("overAppliedNumber").disable(),this.loanProductTermsForm.get("overAppliedNumber").patchValue(null),this.loanProductTermsForm.removeControl("disallowExpectedDisbursements"))}),this.loanProductTermsForm.get("isLinkedToFloatingInterestRates").valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.removeControl("minInterestRatePerPeriod"),this.loanProductTermsForm.removeControl("interestRatePerPeriod"),this.loanProductTermsForm.removeControl("maxInterestRatePerPeriod"),this.loanProductTermsForm.removeControl("interestRateFrequencyType"),this.loanProductTermsForm.addControl("floatingRatesId",new it("",ce.required)),this.loanProductTermsForm.addControl("interestRateDifferential",new it("",ce.required)),this.loanProductTermsForm.addControl("isFloatingInterestRateCalculationAllowed",new it(!1)),this.loanProductTermsForm.addControl("minDifferentialLendingRate",new it("",ce.required)),this.loanProductTermsForm.addControl("defaultDifferentialLendingRate",new it("",ce.required)),this.loanProductTermsForm.addControl("maxDifferentialLendingRate",new it("",ce.required))):(this.loanProductTermsForm.addControl("minInterestRatePerPeriod",new it("")),this.loanProductTermsForm.addControl("interestRatePerPeriod",new it("",ce.required)),this.loanProductTermsForm.addControl("maxInterestRatePerPeriod",new it("")),this.loanProductTermsForm.addControl("interestRateFrequencyType",new it(this.interestRateFrequencyTypeData.id,ce.required)),this.loanProductTermsForm.removeControl("floatingRatesId"),this.loanProductTermsForm.removeControl("interestRateDifferential"),this.loanProductTermsForm.removeControl("isFloatingInterestRateCalculationAllowed"),this.loanProductTermsForm.removeControl("minDifferentialLendingRate"),this.loanProductTermsForm.removeControl("defaultDifferentialLendingRate"),this.loanProductTermsForm.removeControl("maxDifferentialLendingRate"))}),this.loanProductTermsForm.get("useBorrowerCycle").valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.addControl("principalVariationsForBorrowerCycle",this.formBuilder.array([])),this.loanProductTermsForm.addControl("numberOfRepaymentVariationsForBorrowerCycle",this.formBuilder.array([])),this.loanProductTermsForm.addControl("interestRateVariationsForBorrowerCycle",this.formBuilder.array([]))):(this.loanProductTermsForm.removeControl("principalVariationsForBorrowerCycle"),this.loanProductTermsForm.removeControl("numberOfRepaymentVariationsForBorrowerCycle"),this.loanProductTermsForm.removeControl("interestRateVariationsForBorrowerCycle"))}),this.zeroInterest.valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.get("minInterestRatePerPeriod").patchValue(0),this.loanProductTermsForm.get("minInterestRatePerPeriod").disable(),this.loanProductTermsForm.get("interestRatePerPeriod").patchValue(0),this.loanProductTermsForm.get("interestRatePerPeriod").disable(),this.loanProductTermsForm.get("maxInterestRatePerPeriod").patchValue(0),this.loanProductTermsForm.get("maxInterestRatePerPeriod").disable()):(this.loanProductTermsForm.get("minInterestRatePerPeriod").patchValue(this.loanProductsTemplate.minInterestRatePerPeriod),this.loanProductTermsForm.get("minInterestRatePerPeriod").enable(),this.loanProductTermsForm.get("interestRatePerPeriod").patchValue(this.loanProductsTemplate.interestRatePerPeriod),this.loanProductTermsForm.get("interestRatePerPeriod").enable(),this.loanProductTermsForm.get("maxInterestRatePerPeriod").patchValue(this.loanProductsTemplate.maxInterestRatePerPeriod),this.loanProductTermsForm.get("maxInterestRatePerPeriod").enable()),this.validateAdvancedPaymentStrategyControls()})}get principalVariationsForBorrowerCycle(){return this.loanProductTermsForm.get("principalVariationsForBorrowerCycle")}get numberOfRepaymentVariationsForBorrowerCycle(){return this.loanProductTermsForm.get("numberOfRepaymentVariationsForBorrowerCycle")}get interestRateVariationsForBorrowerCycle(){return this.loanProductTermsForm.get("interestRateVariationsForBorrowerCycle")}setLoanProductTermsFormDirty(){this.loanProductTermsForm.pristine&&this.loanProductTermsForm.markAsDirty()}addVariationsForBorrowerCycle(t,n){let i=this.getData(t);this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&(n.push(d.data),this.setLoanProductTermsFormDirty())})}editVariationsForBorrowerCycle(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&(n.at(i).patchValue(u.data.value),this.setLoanProductTermsFormDirty())})}deleteVariationsForBorrowerCycle(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&(t.removeAt(n),this.setLoanProductTermsFormDirty())})}getData(t,n){switch(t){case"Principal":return{title:this.translateService.instant("labels.heading.Principal by loan cycle"),formfields:this.getFormfields(n)};case"NumberOfRepayments":return{title:this.translateService.instant("labels.heading.Number of Repayments by loan cycle"),formfields:this.getFormfields(n)};case"NominalInterestRate":return{title:this.translateService.instant("labels.heading.Nominal Interest Rate by loan cycle"),formfields:this.getFormfields(n)}}}getFormfields(t){return[new $i({controlName:"valueConditionType",label:this.translateService.instant("labels.inputs.Condition"),value:t?t.valueConditionType:this.valueConditionTypeData[0].id,options:{label:"value",value:"id",data:this.valueConditionTypeData},required:!0,order:1}),new vn({controlName:"borrowerCycleNumber",label:this.translateService.instant("labels.inputs.Loan Cycle"),value:t?t.borrowerCycleNumber:void 0,type:"number",required:!0,order:2}),new vn({controlName:"minValue",label:this.translateService.instant("labels.inputs.Minimum"),value:t?t.minValue:void 0,type:"number",order:3}),new vn({controlName:"defaultValue",label:this.translateService.instant("labels.inputs.Default"),value:t?t.defaultValue:void 0,type:"number",required:!0,order:4}),new vn({controlName:"maxValue",label:this.translateService.instant("labels.inputs.Maximum"),value:t?t.maxValue:void 0,type:"number",order:5})]}get loanProductTerms(){return this.loanProductTermsForm.getRawValue()}isZeroInterest(){return this.zeroInterest.value}allowFixedLength(){return this.isAdvancedTransactionProcessingStrategy&&this.isZeroInterest()}validateAdvancedPaymentStrategyControls(){this.allowFixedLength()?this.loanProductTermsForm.get("fixedLength").patchValue(this.loanProductsTemplate.fixedLength||null):this.loanProductTermsForm.get("fixedLength").patchValue(null)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-terms-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},features:[Uo],decls:174,vars:167,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"m-l-10","fas","fa-question",3,"matTooltip"],[1,"flex-31"],["type","number","matInput","","formControlName","minPrincipal",3,"min"],["type","number","matInput","","formControlName","principal","required",""],["type","number","matInput","","formControlName","maxPrincipal",3,"min"],["labelPosition","before","formControlName","allowApprovedDisbursedAmountsOverApplied",1,"flex-60"],[1,"flex-98","layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-fill","flex-32"],[1,"fas","fa-question",3,"matTooltip"],["formControlName","repaymentStartDateType","required",""],[3,"value"],["type","number","matInput","","formControlName","minNumberOfRepayments",3,"min"],["type","number","matInput","","formControlName","numberOfRepayments","required","",3,"min"],["type","number","matInput","","formControlName","maxNumberOfRepayments",3,"min"],[1,"flex-98"],["labelPosition","before","formControlName","interestRecognitionOnDisbursementDate",1,"flex-96"],[1,"mat-h3","flex-23"],["labelPosition","before",1,"flex-23",3,"formControl"],["labelPosition","before","formControlName","isLinkedToFloatingInterestRates",1,"flex-32"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column","align-gt-sm-start-center"],["labelPosition","before","formControlName","useBorrowerCycle",1,"flex-73"],[1,"mat-h4","flex-33"],[1,"flex-30"],["type","number","matInput","","formControlName","repaymentEvery","required",""],["formControlName","repaymentFrequencyType","required",""],[1,"mat-h4","flex-30"],[1,"label-field","flex-30"],[1,"flex-48"],["type","number","matInput","","formControlName","minimumDaysBetweenDisbursalAndFirstRepayment"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","overAppliedCalculationType","required",""],["type","number","matInput","","formControlName","overAppliedNumber","required",""],[1,"flex-fill","flex-23"],["type","number","matInput","","formControlName","minInterestRatePerPeriod",3,"min"],["type","number","matInput","","formControlName","interestRatePerPeriod","required",""],["type","number","matInput","","formControlName","maxInterestRatePerPeriod",3,"min"],["formControlName","interestRateFrequencyType","required","",3,"disabled"],["formControlName","floatingRatesId","required",""],["type","number","matInput","","formControlName","interestRateDifferential","required",""],["labelPosition","before","formControlName","isFloatingInterestRateCalculationAllowed",1,"flex-31"],["type","number","matInput","","formControlName","minDifferentialLendingRate","required","",3,"min"],["type","number","matInput","","formControlName","defaultDifferentialLendingRate","required",""],["type","number","matInput","","formControlName","maxDifferentialLendingRate","required",""],[1,"mat-h4","flex-73"],[1,"flex-23"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],["matColumnDef","valueConditionType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","borrowerCycleNumber"],["matColumnDef","minValue"],["matColumnDef","defaultValue"],["matColumnDef","maxValue"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["type","number","matInput","","formControlName","fixedLength"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",5),l(12,"mat-error"),c(13),p(14,"translate"),l(15,"strong"),c(16),p(17,"translate"),r()()(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),p(27,"translate"),l(28,"strong"),c(29),p(30,"translate"),r()()(),l(31,"mat-form-field",4)(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",7),l(36,"mat-error"),c(37),p(38,"translate"),l(39,"strong"),c(40),p(41,"translate"),r(),c(42),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()(),l(47,"mat-checkbox",8),c(48),p(49,"translate"),r(),l(50,"div",9),E(51,c2t,7,3,"mat-form-field",10),E(52,p2t,5,3,"mat-form-field",10),r(),l(53,"mat-form-field",4)(54,"mat-label"),c(55),p(56,"translate"),b(57,"i",11),p(58,"translate"),r(),l(59,"mat-select",12),Se(60,m2t,3,5,"mat-option",13,Pe),r()(),l(62,"h4",2),c(63),p(64,"translate"),b(65,"i",11),p(66,"translate"),r(),l(67,"mat-form-field",4)(68,"mat-label"),c(69),p(70,"translate"),r(),b(71,"input",14),l(72,"mat-error"),c(73),p(74,"translate"),l(75,"strong"),c(76,"1"),r()()(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),b(81,"input",15),l(82,"mat-error"),c(83),p(84,"translate"),p(85,"translate"),p(86,"translate"),l(87,"strong"),c(88),p(89,"translate"),r()()(),l(90,"mat-form-field",4)(91,"mat-label"),c(92),p(93,"translate"),r(),b(94,"input",16),l(95,"mat-error"),c(96),p(97,"translate"),l(98,"strong"),c(99,"1"),r(),c(100),p(101,"translate"),l(102,"strong"),c(103),p(104,"translate"),r()()(),b(105,"mat-divider",17),l(106,"mat-checkbox",18),c(107),p(108,"translate"),r(),l(109,"h3",19),c(110),p(111,"translate"),r(),E(112,d2t,3,4,"mat-checkbox",20),E(113,u2t,3,3,"mat-checkbox",21),E(114,h2t,60,64,"div",22),E(115,_2t,72,74,"div",23),b(116,"mat-divider",17),l(117,"h3",19),c(118),p(119,"translate"),r(),l(120,"mat-checkbox",24),c(121),p(122,"translate"),r(),E(123,cvt,28,21,"div",22),b(124,"mat-divider",17),l(125,"h4",25),c(126),p(127,"translate"),b(128,"i",11),p(129,"translate"),r(),l(130,"mat-form-field",26)(131,"mat-label"),c(132),p(133,"translate"),r(),b(134,"input",27),l(135,"mat-error"),c(136),p(137,"translate"),p(138,"translate"),p(139,"translate"),l(140,"strong"),c(141),p(142,"translate"),r()()(),l(143,"mat-form-field",26)(144,"mat-label"),c(145),p(146,"translate"),r(),l(147,"mat-select",28),Se(148,pvt,3,5,"mat-option",13,Pe),r(),l(150,"mat-error"),c(151),p(152,"translate"),p(153,"translate"),l(154,"strong"),c(155),p(156,"translate"),r()()(),E(157,mvt,5,7,"h4",29),E(158,dvt,5,3,"mat-form-field",26),E(159,uvt,4,9,"span",30),l(160,"mat-form-field",31)(161,"mat-label"),c(162),p(163,"translate"),r(),b(164,"input",32),r()(),l(165,"div",33)(166,"button",34),b(167,"fa-icon",35),c(168),p(169,"translate"),r(),l(170,"button",36),c(171),p(172,"translate"),b(173,"fa-icon",37),r()()()),n&2&&(g("formGroup",i.loanProductTermsForm),a(3),v(" ",m(4,69,"labels.inputs.Principal")),a(2),g("matTooltip",Le(m(6,71,"tooltips.Fields are used to define the minimum, default, and maximum principal"))),a(4),h(m(10,73,"labels.inputs.Minimum")),a(2),g("min",0),a(2),v(" ",m(14,75,"labels.commons.Minimum Value must be")," "),a(3),h(m(17,77,"labels.commons.greater equal to than 0")),a(4),h(m(21,79,"labels.inputs.Default")),a(4),ea(" ",m(25,81,"labels.catalogs.Default")," ",m(26,83,"labels.inputs.Principal")," ",m(27,85,"labels.commons.is")," "),a(5),h(m(30,87,"labels.commons.required")),a(4),h(m(34,89,"labels.inputs.Maximum")),a(2),g("min",0),a(2),v(" ",m(38,91,"labels.commons.Minimum Value must be")," "),a(3),h(m(41,93,"labels.commons.greater equal to than 0")),a(2),v(" ",m(43,95,"labels.commons.and must be greater than")," "),a(3),h(m(46,97,"labels.commons.Minimum Principal")),a(3),v(" ",m(49,99,"labels.inputs.Allow approval / disbursal above loan applied amount")," "),a(3),I(i.loanProductTermsForm.value.allowApprovedDisbursedAmountsOverApplied?51:-1),a(),I(i.loanProductTermsForm.value.allowApprovedDisbursedAmountsOverApplied?52:-1),a(3),v("",m(56,101,"labels.inputs.Installment day calculation from")," "),a(2),g("matTooltip",Le(m(58,103,"tooltips.Repayment schedule will start the installment"))),a(3),we(i.repaymentStartDateTypeOptions),a(3),v(" ",m(64,105,"labels.inputs.Number of repayments")," "),a(2),g("matTooltip",Le(m(66,107,"tooltips.Fields are used to define the minimum, default, and maximum number of repayments"))),a(4),h(m(70,109,"labels.inputs.Minimum")),a(2),g("min",1),a(2),v(" ",m(74,111,"labels.commons.Minimum Value must be")," "),a(6),h(m(80,113,"labels.inputs.Default")),a(2),g("min",1),a(2),ea(" ",m(84,115,"labels.catalogs.Default")," ",m(85,117,"labels.inputs.Number of repayments")," ",m(86,119,"labels.commons.is")," "),a(5),h(m(89,121,"labels.commons.required")),a(4),h(m(93,123,"labels.inputs.Maximum")),a(2),g("min",1),a(2),v(" ",m(97,125,"labels.commons.Maximum Value must be")," "),a(4),v(" ",m(101,127,"labels.commons.and must be greater than")," "),a(3),h(m(104,129,"labels.inputs.Minimum")),a(4),v(" ",m(108,131,"labels.inputs.Is interest recognition on disbursement date?")," "),a(3),h(m(111,133,"labels.inputs.Interest Rates")),a(2),I(i.loanProductTermsForm.value.isLinkedToFloatingInterestRates?-1:112),a(),I(i.isZeroInterest()?-1:113),a(),I(i.loanProductTermsForm.value.isLinkedToFloatingInterestRates?-1:114),a(),I(i.loanProductTermsForm.value.isLinkedToFloatingInterestRates&&!i.isZeroInterest()?115:-1),a(3),h(m(119,135,"labels.inputs.Variations")),a(3),v(" ",m(122,137,"labels.inputs.Terms vary based on loan cycle")," "),a(2),I(i.loanProductTermsForm.value.useBorrowerCycle?123:-1),a(3),v(" ",m(127,139,"labels.inputs.Repaid every")," "),a(2),g("matTooltip",Le(m(129,141,"tooltips.Fields are input to calculating the repayment schedule"))),a(4),h(m(133,143,"labels.inputs.Frequency")),a(4),ea(" ",m(137,145,"labels.inputs.Repaid every")," ",m(138,147,"labels.inputs.Frequency")," ",m(139,149,"labels.commons.is")," "),a(5),h(m(142,151,"labels.commons.required")),a(4),h(m(146,153,"labels.inputs.Frequency Type")),a(3),we(i.repaymentFrequencyTypeData),a(3),le(" ",m(152,155,"labels.inputs.Repaid every type")," ",m(153,157,"labels.commons.is")," "),a(4),h(m(156,159,"labels.commons.required")),a(2),I(i.allowFixedLength()?157:-1),a(),I(i.allowFixedLength()?158:-1),a(),I(i.allowFixedLength()?159:-1),a(3),h(m(163,161,"labels.inputs.Minimum days between disbursal and first repayment date")),a(6),v(" ",m(169,163,"labels.buttons.Previous")," "),a(3),v(" ",m(172,165,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,_n,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ki,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function JK(e,o){return t=>t.value!==void 0&&(isNaN(t.value)||t.valueo)?{range:!0}:null}function fvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",m(2,2,"labels.inputs.products.loan.amortizationType."+t.value)," ")}}function hvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function gvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function _vt(e,o){e&1&&(l(0,"mat-checkbox",8),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.To be used with SAME AS REPAYMENT PERIOD"))),a(2),v(" ",m(3,5,"labels.inputs.Calculate interest for exact days in partial period")," "))}function Cvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function vvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function xvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function bvt(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",51),Se(5,xvt,3,5,"mat-option",4,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Loan Schedule Processing Type")),a(3),we(t.loanScheduleProcessingTypeData)}}function yvt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Maximum Tranche count")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Svt(e,o){e&1&&(l(0,"mat-checkbox",55),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Allow full term length for each tranche disbursement"))),a(2),v(" ",m(3,5,"labels.inputs.Allow full term for each tranche")," "))}function wvt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",52),p(6,"translate"),E(7,yvt,7,9,"mat-error"),r(),l(8,"mat-form-field",22)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",53),p(13,"translate"),r(),l(14,"mat-checkbox",54),c(15),p(16,"translate"),r(),E(17,Svt,4,7,"mat-checkbox",55),r()),e&2){let t=w();a(3),h(m(4,9,"labels.inputs.Maximum Tranche count")),a(2),g("matTooltip",Le(m(6,11,"tooltips.Maximum number of disbursements"))),a(2),I(t.loanProductSettingsForm.controls.maxTrancheCount.hasError("required")?7:-1),a(3),h(m(11,13,"labels.inputs.Maximum allowed outstanding balance")),a(2),g("matTooltip",Le(m(13,15,"tooltips.Maximum outstanding loan account balance"))),a(3),v(" ",m(16,17,"labels.inputs.Disallow Expected Disbursements")," "),a(2),I(t.loanProductSettingsForm.value.loanScheduleType==="PROGRESSIVE"?17:-1)}}function Pvt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Disbursed Amount Percentage Down Payment")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tvt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),l(5,"strong"),c(6),p(7,"translate"),r()()),e&2&&(a(),ea(" ",m(2,4,"labels.inputs.Disbursed Amount Percentage Down Payment")," ",m(3,6,"labels.commons.is")," ",m(4,8,"labels.text.out")," "),a(5),h(m(7,10,"labels.text.percentage range")))}function Mvt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",56),p(6,"translate"),E(7,Pvt,7,9,"mat-error"),E(8,Tvt,8,12,"mat-error"),r(),l(9,"mat-checkbox",57),p(10,"translate"),c(11),p(12,"translate"),r()()),e&2){let t=w();a(3),v("",m(4,10,"labels.inputs.Disbursed Amount Percentage Down Payment")," (%)"),a(2),g("matTooltip",Le(m(6,12,"tooltips.The percentage of disbursements amount for Down Payment")))("min",0)("max",100),a(2),I(t.loanProductSettingsForm.controls.disbursedAmountPercentageForDownPayment.hasError("required")?7:-1),a(),I(t.loanProductSettingsForm.controls.disbursedAmountPercentageForDownPayment.errors!=null&&t.loanProductSettingsForm.controls.disbursedAmountPercentageForDownPayment.errors.range?8:-1),a(),g("matTooltip",Le(m(10,14,"tooltips.Enable or disable the auto repayment of down-payment."))),a(2),v(" ",m(12,16,"labels.inputs.Enable Auto Repayment for Down Payment")," ")}}function Dvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Evt(e,o){if(e&1&&(l(0,"div")(1,"h3",10),c(2),p(3,"translate"),r(),l(4,"mat-form-field",2)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",58),Se(9,Dvt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Loan Charge-off behaviour")),a(4),h(m(7,4,"labels.inputs.Loan Charge-off behaviour")),a(3),we(t.chargeOffBehaviourData)}}function Ivt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Ovt(e,o){if(e&1){let t=Y();l(0,"button",59),R("click",function(i){V(t);let s=w();return q(s.clearProperty(i,"delinquencyBucketId"))}),b(1,"fa-icon",60),r()}}function Avt(e,o){e&1&&(l(0,"mat-checkbox",27),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Enable installment level Delinquency")," "))}function Fvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function kvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Bvt(e,o){if(e&1&&(l(0,"mat-form-field",22)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",61),p(5,"translate"),Se(6,kvt,3,5,"mat-option",4,Pe),r()()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Days in year custom strategy")),a(2),g("matTooltip",Le(m(5,5,"tooltips.To calculate interest"))),a(2),we(t.daysInYearCustomStrategyOptions)}}function Rvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Nvt(e,o){e&1&&(l(0,"div",16)(1,"h4",10),c(2),p(3,"translate"),r(),l(4,"mat-form-field",22)(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",62),l(9,"mat-error"),c(10),p(11,"translate"),p(12,"translate"),l(13,"strong"),c(14),p(15,"translate"),r()()(),l(16,"mat-form-field",22)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",63),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()()()),e&2&&(a(2),h(m(3,9,"labels.inputs.Variable Installments")),a(4),h(m(7,11,"labels.inputs.Minimum gap between Installments")),a(4),le(" ",m(11,13,"labels.inputs.Minimum gap between Installments")," ",m(12,15,"labels.commons.is")," "),a(4),h(m(15,17,"labels.commons.required")),a(4),h(m(19,19,"labels.inputs.Maximum gap between Installments")),a(4),le(" ",m(23,21,"labels.inputs.Maximum gap between Installments")," ",m(24,23,"labels.commons.is")," "),a(4),h(m(27,25,"labels.commons.required")))}function Lvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Vvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function qvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function zvt(e,o){e&1&&(l(0,"mat-form-field",22)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",73),l(5,"mat-error"),c(6),p(7,"translate"),p(8,"translate"),l(9,"strong"),c(10),p(11,"translate"),r()()()),e&2&&(a(2),h(m(3,4,"labels.inputs.Frequency Interval for compounding")),a(4),le(" ",m(7,6,"labels.inputs.Frequency Interval for compounding")," ",m(8,8,"labels.commons.is")," "),a(4),h(m(11,10,"labels.commons.required")))}function Hvt(e,o){e&1&&(l(0,"mat-form-field",22)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",74),l(5,"mat-error"),c(6),p(7,"translate"),p(8,"translate"),l(9,"strong"),c(10),p(11,"translate"),r()()()),e&2&&(a(2),h(m(3,4,"labels.inputs.Frequency Interval for recalculation")),a(4),le(" ",m(7,6,"labels.inputs.Frequency Interval for recalculation")," ",m(8,8,"labels.commons.is")," "),a(4),h(m(11,10,"labels.commons.required")))}function Gvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function jvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function $vt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",77),Se(3,jvt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(3);a(3),we(t.interestRecalculationNthDayTypeData)}}function Uvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Wvt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",78),Se(3,Uvt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(3);a(3),we(t.interestRecalculationDayOfWeekTypeData)}}function Qvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Yvt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",79),Se(3,Qvt,2,2,"mat-option",4,Pe),r()()()),e&2){let t=w(3);a(3),we(t.interestRecalculationOnDayTypeData)}}function Jvt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",68)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",75),Se(6,Gvt,2,2,"mat-option",4,Pe),r()(),E(8,$vt,5,0,"div",70),E(9,Wvt,5,0,"div",70),E(10,Yvt,5,0,"div",70),r()),e&2){let t=w(2);a(3),h(m(4,4,"labels.inputs.Frequency for compounding")),a(3),we(t.interestRecalculationFrequencyTypeData),a(2),I(t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===4?8:-1),a(),I(t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===4&&t.loanProductSettingsForm.value.recalculationCompoundingFrequencyNthDayType!==-2||t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===3?9:-1),a(),I(t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===4&&t.loanProductSettingsForm.value.recalculationCompoundingFrequencyNthDayType===-2?10:-1)}}function Kvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Xvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Zvt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",80),Se(3,Xvt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(2);a(3),we(t.interestRecalculationNthDayTypeData)}}function ext(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function txt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",81),Se(3,ext,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(2);a(3),we(t.interestRecalculationDayOfWeekTypeData)}}function ixt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function nxt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",82),Se(3,ixt,2,2,"mat-option",4,Pe),r()()()),e&2){let t=w(2);a(3),we(t.interestRecalculationOnDayTypeData)}}function oxt(e,o){e&1&&(l(0,"mat-checkbox",72),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Do not calculate interest on past due principal balances")," "))}function axt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",64),Se(6,Lvt,3,5,"mat-option",4,Pe),r(),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",22)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",65),Se(20,Vvt,3,5,"mat-option",4,Pe),r(),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),l(26,"strong"),c(27),p(28,"translate"),r()()(),l(29,"mat-form-field",22)(30,"mat-label"),c(31),p(32,"translate"),r(),l(33,"mat-select",66),Se(34,qvt,3,5,"mat-option",4,Pe),r(),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()(),b(43,"span",18),l(44,"div",67),E(45,zvt,12,12,"mat-form-field",22),E(46,Hvt,12,12,"mat-form-field",22),r(),E(47,Jvt,11,6,"div",16),l(48,"mat-form-field",68)(49,"mat-label"),c(50),p(51,"translate"),r(),l(52,"mat-select",69),Se(53,Kvt,3,5,"mat-option",4,Pe),r(),l(55,"mat-error"),c(56),p(57,"translate"),p(58,"translate"),l(59,"strong"),c(60),p(61,"translate"),r()()(),E(62,Zvt,5,0,"div",70),E(63,txt,5,0,"div",70),E(64,nxt,5,0,"div",70),l(65,"mat-checkbox",71),c(66),p(67,"translate"),r(),E(68,oxt,3,3,"mat-checkbox",72),r()),e&2){let t=w();a(3),h(m(4,25,"labels.inputs.Pre-closure interest calculation rule")),a(3),we(t.preClosureInterestCalculationStrategyData),a(3),le(" ",m(10,27,"labels.inputs.Pre-closure interest calculation rule")," ",m(11,29,"labels.commons.is")," "),a(4),h(m(14,31,"labels.commons.required")),a(4),h(m(18,33,"labels.inputs.Advance payments adjustment type")),a(2),g("disabled",t.rescheduleStrategyTypeDisabled),a(),we(t.rescheduleStrategyTypeData),a(3),le(" ",m(24,35,"labels.inputs.Advance payments adjustment type")," ",m(25,37,"labels.commons.is")," "),a(4),h(m(28,39,"labels.commons.required")),a(4),h(m(32,41,"labels.inputs.Interest recalculation compounding on")),a(3),we(t.interestRecalculationCompoundingTypeData),a(3),le(" ",m(38,43,"labels.inputs.Interest recalculation compounding on")," ",m(39,45,"labels.commons.is")," "),a(4),h(m(42,47,"labels.commons.required")),a(4),I(t.loanProductSettingsForm.value.interestRecalculationCompoundingMethod!==0&&t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType!==1?45:-1),a(),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType!==1?46:-1),a(),I(t.loanProductSettingsForm.value.interestRecalculationCompoundingMethod!==0?47:-1),a(3),h(m(51,49,"labels.inputs.Frequency for recalculate Outstanding Principal")),a(3),we(t.interestRecalculationFrequencyTypeData),a(3),le(" ",m(57,51,"labels.inputs.Frequency for recalculate Outstanding Principal")," ",m(58,53,"labels.commons.is")," "),a(4),h(m(61,55,"labels.commons.required")),a(2),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType===4?62:-1),a(),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType===4&&t.loanProductSettingsForm.value.recalculationRestFrequencyNthDayType!==-2||t.loanProductSettingsForm.value.recalculationRestFrequencyType===3?63:-1),a(),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType===4&&t.loanProductSettingsForm.value.recalculationRestFrequencyNthDayType===-2?64:-1),a(2),v(" ",m(67,57,"labels.inputs.Is Arrears recognization based on original schedule"),"? "),a(2),I(t.loanProductSettingsForm.value.loanScheduleType==="PROGRESSIVE"?68:-1)}}function rxt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",68)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",83),l(6,"mat-error"),c(7),p(8,"translate"),p(9,"translate"),l(10,"strong"),c(11),p(12,"translate"),r()()(),l(13,"mat-form-field",68)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",84),r(),l(18,"mat-form-field",68)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",85),r()()),e&2&&(a(3),h(m(4,6,"labels.inputs.Mandatory Guarantee(%)")),a(4),le(" ",m(8,8,"labels.inputs.Mandatory Guarantee")," ",m(9,10,"labels.commons.is")," "),a(4),h(m(12,12,"labels.commons.required")),a(4),h(m(16,14,"labels.inputs.Minimum Guarantee from Own Funds(%)")),a(5),h(m(21,16,"labels.inputs.Minimum Guarantee from Guarantor Funds(%)")))}function lxt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",86),p(6,"translate"),r(),l(7,"mat-form-field",22)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",87),p(12,"translate"),r()()),e&2&&(a(3),h(m(4,6,"labels.inputs.Due days for repayment event")),a(2),g("matTooltip",Le(m(6,8,"tooltips.Maximum outstanding loan account balance"))),a(4),h(m(10,10,"labels.inputs.OverDue days for repayment event")),a(2),g("matTooltip",Le(m(12,12,"tooltips.Maximum outstanding loan account balance"))))}function sxt(e,o){e&1&&(l(0,"div",45)(1,"mat-checkbox",88),c(2),p(3,"translate"),r(),l(4,"mat-checkbox",89),c(5),p(6,"translate"),r(),l(7,"mat-checkbox",90),c(8),p(9,"translate"),r(),l(10,"mat-checkbox",91),c(11),p(12,"translate"),r(),l(13,"mat-checkbox",92),c(14),p(15,"translate"),r(),l(16,"mat-checkbox",93),c(17),p(18,"translate"),r(),l(19,"mat-checkbox",94),c(20),p(21,"translate"),r(),l(22,"mat-checkbox",95),c(23),p(24,"translate"),r()()),e&2&&(a(2),v(" ",m(3,8,"labels.inputs.Amortization")," "),a(3),v(" ",m(6,10,"labels.inputs.Interest method")," "),a(3),v(" ",m(9,12,"labels.inputs.Repayment strategy")," "),a(3),v(" ",m(12,14,"labels.inputs.Interest calculation period")," "),a(3),v(" ",m(15,16,"labels.inputs.Arrears tolerance")," "),a(3),v(" ",m(18,18,"labels.inputs.Repaid every")," "),a(3),v(" ",m(21,20,"labels.inputs.Moratorium")," "),a(3),v(" ",m(24,22,"labels.inputs.Number of days a loan may be overdue before moving into arrears")," "))}var dm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.processingStrategyService=T(Wy),this.DAYS_BEFORE_REPAYMENT_IS_DUE=Ea.DAYS_BEFORE_REPAYMENT_IS_DUE,this.DAYS_AFTER_REPAYMENT_IS_OVERDUE=Ea.DAYS_AFTER_REPAYMENT_IS_OVERDUE,this.advancePaymentStrategy=new bi,this.transactionProcessingStrategyData=[],this.transactionProcessingStrategyDataBase=[],this.loanScheduleTypeData=[],this.loanScheduleProcessingTypeData=[],this.isAdvancedTransactionProcessingStrategy=!1,this.advancedTransactionProcessingStrategyDisabled=!0,this.useDueForRepaymentsConfigurations=!1,this.rescheduleStrategyTypeDisabled=!1,this.chargeOffBehaviourData=[],this.daysInYearCustomStrategyOptions=[],this.useDaysInYearCustomStrategy=!1,this.defaultConfigValues=[],this.createLoanProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.defaultConfigValues=this.loanProductsTemplate.itemsByDefault,this.isLinkedToFloatingInterestRates.valueChanges.subscribe(n=>{n&&(this.loanProductSettingsForm.get("isInterestRecalculationEnabled").setValue(!0),this.loanProductSettingsForm.get("allowPartialPeriodInterestCalculation").setValue(!0))}),this.amortizationTypeData=this.loanProductsTemplate.amortizationTypeOptions,this.interestTypeData=this.loanProductsTemplate.interestTypeOptions,this.interestCalculationPeriodTypeData=this.loanProductsTemplate.interestCalculationPeriodTypeOptions,this.transactionProcessingStrategyData=this.loanProductsTemplate.transactionProcessingStrategyOptions,this.transactionProcessingStrategyDataBase=this.loanProductsTemplate.transactionProcessingStrategyOptions,this.daysInYearTypeData=this.loanProductsTemplate.daysInYearTypeOptions,this.daysInMonthTypeData=this.loanProductsTemplate.daysInMonthTypeOptions,this.preClosureInterestCalculationStrategyData=this.loanProductsTemplate.preClosureInterestCalculationStrategyOptions,this.rescheduleStrategyTypeData=this.loanProductsTemplate.rescheduleStrategyTypeOptions,this.rescheduleStrategyTypeDataBase=this.loanProductsTemplate.rescheduleStrategyTypeOptions,this.interestRecalculationCompoundingTypeData=this.loanProductsTemplate.interestRecalculationCompoundingTypeOptions,this.interestRecalculationFrequencyTypeData=this.loanProductsTemplate.interestRecalculationFrequencyTypeOptions,this.interestRecalculationNthDayTypeData=this.loanProductsTemplate.interestRecalculationNthDayTypeOptions,this.interestRecalculationNthDayTypeData.push({id:-2,code:"onDay",value:"on day"}),this.interestRecalculationDayOfWeekTypeData=this.loanProductsTemplate.interestRecalculationDayOfWeekTypeOptions,this.interestRecalculationOnDayTypeData=Array.from({length:28},(n,i)=>i+1),this.delinquencyBucketData=this.loanProductsTemplate.delinquencyBucketOptions,this.loanScheduleTypeData=this.loanProductsTemplate.loanScheduleTypeOptions,this.loanScheduleProcessingTypeData=this.loanProductsTemplate.loanScheduleProcessingTypeOptions,this.chargeOffBehaviourData=this.loanProductsTemplate.chargeOffBehaviourOptions,this.daysInYearCustomStrategyOptions=this.loanProductsTemplate.daysInYearCustomStrategyOptions;let t=this.loanProductsTemplate.transactionProcessingStrategyCode||this.transactionProcessingStrategyData[0].code;this.loanProductSettingsForm.patchValue({amortizationType:this.loanProductsTemplate.amortizationType.id,interestType:this.loanProductsTemplate.interestType.id,isEqualAmortization:this.loanProductsTemplate.isEqualAmortization,interestCalculationPeriodType:this.loanProductsTemplate.interestCalculationPeriodType.id,allowPartialPeriodInterestCalculation:this.loanProductsTemplate.allowPartialPeriodInterestCalculation,transactionProcessingStrategyCode:t,graceOnPrincipalPayment:this.loanProductsTemplate.graceOnPrincipalPayment,graceOnInterestPayment:this.loanProductsTemplate.graceOnInterestPayment,graceOnInterestCharged:this.loanProductsTemplate.graceOnInterestCharged,inArrearsTolerance:this.loanProductsTemplate.inArrearsTolerance,daysInYearType:this.loanProductsTemplate.daysInYearType.id,daysInMonthType:this.loanProductsTemplate.daysInMonthType.id,canDefineInstallmentAmount:this.loanProductsTemplate.canDefineInstallmentAmount,graceOnArrearsAgeing:this.loanProductsTemplate.graceOnArrearsAgeing,overdueDaysForNPA:this.loanProductsTemplate.overdueDaysForNPA,accountMovesOutOfNPAOnlyOnArrearsCompletion:this.loanProductsTemplate.accountMovesOutOfNPAOnlyOnArrearsCompletion,principalThresholdForLastInstallment:this.loanProductsTemplate.principalThresholdForLastInstallment,allowVariableInstallments:this.loanProductsTemplate.allowVariableInstallments,disallowExpectedDisbursements:this.loanProductsTemplate.disallowExpectedDisbursements,minimumGap:this.loanProductsTemplate.minimumGap,maximumGap:this.loanProductsTemplate.maximumGap,canUseForTopup:this.loanProductsTemplate.canUseForTopup,isInterestRecalculationEnabled:this.loanProductsTemplate.isInterestRecalculationEnabled,holdGuaranteeFunds:this.loanProductsTemplate.holdGuaranteeFunds,multiDisburseLoan:this.loanProductsTemplate.multiDisburseLoan,maxTrancheCount:this.loanProductsTemplate.maxTrancheCount,outstandingLoanBalance:this.loanProductsTemplate.outstandingLoanBalance,allowFullTermForTranche:this.loanProductsTemplate.allowFullTermForTranche,enableDownPayment:this.loanProductsTemplate.enableDownPayment,enableInstallmentLevelDelinquency:this.loanProductsTemplate.enableInstallmentLevelDelinquency,loanScheduleType:this.loanProductsTemplate.loanScheduleType.code,useDueForRepaymentsConfigurations:this.loanProductsTemplate.useDueForRepaymentsConfigurations,allowAccrualPostingInArrears:this.loanProductsTemplate.allowAccrualPostingInArrears,chargeOffBehaviour:this.loanProductsTemplate.chargeOffBehaviour.id}),this.isAdvancedTransactionProcessingStrategy=Ea.isAdvancedPaymentAllocationStrategy(t),this.processingStrategyService.initialize(this.isAdvancedTransactionProcessingStrategy),this.validateAdvancedPaymentStrategyControls(),this.loanProductsTemplate.dueDaysForRepaymentEvent!=null&&this.loanProductsTemplate.overDueDaysForRepaymentEvent!=null?this.loanProductSettingsForm.patchValue({useDueForRepaymentsConfigurations:!1,dueDaysForRepaymentEvent:this.loanProductsTemplate.dueDaysForRepaymentEvent,overDueDaysForRepaymentEvent:this.loanProductsTemplate.overDueDaysForRepaymentEvent}):this.loanProductSettingsForm.patchValue({useDueForRepaymentsConfigurations:!0,dueDaysForRepaymentEvent:null,overDueDaysForRepaymentEvent:null}),this.loanProductsTemplate.delinquencyBucket&&this.loanProductSettingsForm.patchValue({delinquencyBucketId:this.loanProductsTemplate.delinquencyBucket.id>0?this.loanProductsTemplate.delinquencyBucket.id:null}),this.loanProductsTemplate.enableDownPayment&&this.loanProductSettingsForm.patchValue({disbursedAmountPercentageForDownPayment:this.loanProductsTemplate.disbursedAmountPercentageForDownPayment||0,enableAutoRepaymentForDownPayment:this.loanProductsTemplate.enableAutoRepaymentForDownPayment||!1}),this.loanProductsTemplate.isInterestRecalculationEnabled&&this.loanProductSettingsForm.patchValue({preClosureInterestCalculationStrategy:this.loanProductsTemplate.interestRecalculationData.preClosureInterestCalculationStrategy.id,rescheduleStrategyMethod:this.loanProductsTemplate.interestRecalculationData.rescheduleStrategyType.id,interestRecalculationCompoundingMethod:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id,recalculationRestFrequencyType:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id,isArrearsBasedOnOriginalSchedule:this.loanProductsTemplate.interestRecalculationData.isArrearsBasedOnOriginalSchedule,recalculationCompoundingFrequencyType:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id,recalculationCompoundingFrequencyInterval:this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyInterval,recalculationRestFrequencyInterval:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyInterval,recalculationRestFrequencyNthDayType:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id===4&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyOnDay?-2:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyNthDay&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyNthDay.id,recalculationCompoundingFrequencyNthDayType:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyOnDay?-2:this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyNthDay&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyNthDay.id,recalculationCompoundingFrequencyDayOfWeekType:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id&&(this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&!this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyOnDay||this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id===3)&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyWeekday&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyWeekday.id,recalculationRestFrequencyDayOfWeekType:(this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id===4&&!this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyOnDay||this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id===3)&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyWeekday&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyWeekday.id,recalculationCompoundingFrequencyOnDayType:this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyOnDay,recalculationRestFrequencyOnDayType:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyOnDay}),this.loanProductsTemplate.holdGuaranteeFunds&&this.loanProductSettingsForm.patchValue({mandatoryGuarantee:this.loanProductsTemplate.productGuaranteeData.mandatoryGuarantee,minimumGuaranteeFromOwnFunds:this.loanProductsTemplate.productGuaranteeData.minimumGuaranteeFromOwnFunds,minimumGuaranteeFromGuarantor:this.loanProductsTemplate.productGuaranteeData.minimumGuaranteeFromGuarantor}),this.loanProductsTemplate.allowAttributeOverrides&&this.loanProductSettingsForm.patchValue({allowAttributeConfiguration:Object.values(this.loanProductsTemplate.allowAttributeOverrides).some(n=>n),allowAttributeOverrides:{amortizationType:this.loanProductsTemplate.allowAttributeOverrides.amortizationType,interestType:this.loanProductsTemplate.allowAttributeOverrides.interestType,transactionProcessingStrategyCode:this.loanProductsTemplate.allowAttributeOverrides.transactionProcessingStrategyCode,interestCalculationPeriodType:this.loanProductsTemplate.allowAttributeOverrides.interestCalculationPeriodType,inArrearsTolerance:this.loanProductsTemplate.allowAttributeOverrides.inArrearsTolerance,repaymentEvery:this.loanProductsTemplate.allowAttributeOverrides.repaymentEvery,graceOnPrincipalAndInterestPayment:this.loanProductsTemplate.allowAttributeOverrides.graceOnPrincipalAndInterestPayment,graceOnArrearsAgeing:this.loanProductsTemplate.allowAttributeOverrides.graceOnArrearsAgeing}})}createLoanProductSettingsForm(){this.loanProductSettingsForm=this.formBuilder.group({amortizationType:["",ce.required],interestType:["",ce.required],isEqualAmortization:[!1],interestCalculationPeriodType:["",ce.required],transactionProcessingStrategyCode:["",ce.required],graceOnPrincipalPayment:[""],graceOnInterestPayment:[""],graceOnInterestCharged:[""],inArrearsTolerance:[""],daysInYearType:["",ce.required],daysInMonthType:["",ce.required],canDefineInstallmentAmount:[!1],graceOnArrearsAgeing:[""],overdueDaysForNPA:[""],accountMovesOutOfNPAOnlyOnArrearsCompletion:[!1],principalThresholdForLastInstallment:[""],allowVariableInstallments:[!1],disallowExpectedDisbursements:[!1],canUseForTopup:[!1],isInterestRecalculationEnabled:[!1],holdGuaranteeFunds:[!1],multiDisburseLoan:[!1],allowFullTermForTranche:[!1],allowAttributeConfiguration:[!0],allowPartialPeriodInterestCalculation:[!1],allowAttributeOverrides:this.formBuilder.group({amortizationType:[!0],interestType:[!0],transactionProcessingStrategyCode:[!0],interestCalculationPeriodType:[!0],inArrearsTolerance:[!0],repaymentEvery:[!0],graceOnPrincipalAndInterestPayment:[!0],graceOnArrearsAgeing:[!0]}),delinquencyBucketId:[""],enableDownPayment:[!1],enableInstallmentLevelDelinquency:[!1],useDueForRepaymentsConfigurations:[!1],dueDaysForRepaymentEvent:[""],overDueDaysForRepaymentEvent:[""],loanScheduleType:[Ea.LOAN_SCHEDULE_TYPE_CUMULATIVE,ce.required],allowAccrualPostingInArrears:[!1]})}setConditionalControls(){let t=this.loanProductSettingsForm.get("allowAttributeOverrides");this.loanProductSettingsForm.get("daysInYearType").valueChanges.subscribe(n=>{if(this.isAdvancedTransactionProcessingStrategy)if(this.useDaysInYearCustomStrategy=n==1,this.useDaysInYearCustomStrategy){let i=this.loanProductsTemplate.daysInYearCustomStrategy?.id?this.loanProductsTemplate.daysInYearCustomStrategy.id:this.daysInYearCustomStrategyOptions[0].id;this.loanProductSettingsForm.addControl("daysInYearCustomStrategy",new it(i,ce.required))}else this.loanProductSettingsForm.removeControl("daysInYearCustomStrategy")}),this.loanProductSettingsForm.get("interestCalculationPeriodType").valueChanges.subscribe(n=>{n===0&&this.loanProductSettingsForm.patchValue({allowPartialPeriodInterestCalculation:!1})}),this.loanProductSettingsForm.get("allowVariableInstallments").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("minimumGap",new it("",ce.required)),this.loanProductSettingsForm.addControl("maximumGap",new it("",ce.required))):(this.loanProductSettingsForm.removeControl("minimumGap"),this.loanProductSettingsForm.removeControl("maximumGap"))}),this.loanProductSettingsForm.get("isInterestRecalculationEnabled").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("preClosureInterestCalculationStrategy",new it(this.preClosureInterestCalculationStrategyData[0].id,ce.required)),this.loanProductSettingsForm.addControl("rescheduleStrategyMethod",new it(this.rescheduleStrategyTypeData[0].id,ce.required)),this.loanProductSettingsForm.addControl("interestRecalculationCompoundingMethod",new it(this.interestRecalculationCompoundingTypeData[0].id,ce.required)),this.loanProductSettingsForm.addControl("recalculationRestFrequencyType",new it(this.interestRecalculationFrequencyTypeData[0].id,ce.required)),this.loanProductSettingsForm.addControl("isArrearsBasedOnOriginalSchedule",new it("")),this.loanProductSettingsForm.value.isInterestRecalculationEnabled&&this.setRescheduleStrategies(),this.loanProductSettingsForm.get("interestRecalculationCompoundingMethod").valueChanges.subscribe(i=>{i!==0?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyType",new it(this.interestRecalculationFrequencyTypeData[0].id,ce.required)),this.loanProductSettingsForm.get("recalculationCompoundingFrequencyType").valueChanges.subscribe(s=>{s!==1?this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyInterval",new it("",ce.required)):this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyInterval"),s===3?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyOnDayType")):s===4?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyNthDayType",new it("")),this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.get("recalculationCompoundingFrequencyNthDayType").valueChanges.subscribe(d=>{d===-2?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyOnDayType",new it("")),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyDayOfWeekType")):(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyOnDayType"))})):(this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyDayOfWeekType"),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyOnDayType"))})):this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyType")}),this.loanProductSettingsForm.get("recalculationRestFrequencyType").valueChanges.subscribe(i=>{i!==1?this.loanProductSettingsForm.addControl("recalculationRestFrequencyInterval",new it("",ce.required)):this.loanProductSettingsForm.removeControl("recalculationRestFrequencyInterval"),i===3?(this.loanProductSettingsForm.addControl("recalculationRestFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyOnDayType")):i===4?(this.loanProductSettingsForm.addControl("recalculationRestFrequencyNthDayType",new it("")),this.loanProductSettingsForm.addControl("recalculationRestFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.get("recalculationRestFrequencyNthDayType").valueChanges.subscribe(s=>{s===-2?(this.loanProductSettingsForm.addControl("recalculationRestFrequencyOnDayType",new it("")),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyDayOfWeekType")):(this.loanProductSettingsForm.addControl("recalculationRestFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyOnDayType"))})):(this.loanProductSettingsForm.removeControl("recalculationRestFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyDayOfWeekType"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyOnDayType"))})):(this.loanProductSettingsForm.removeControl("preClosureInterestCalculationStrategy"),this.loanProductSettingsForm.removeControl("rescheduleStrategyMethod"),this.loanProductSettingsForm.removeControl("interestRecalculationCompoundingMethod"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyType"),this.loanProductSettingsForm.removeControl("isArrearsBasedOnOriginalSchedule")),this.enableFieldsWhenScheduleTypeIsProgressiveAndInterestRateRecalculationEnabled()}),this.loanProductSettingsForm.get("holdGuaranteeFunds").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("mandatoryGuarantee",new it("",ce.required)),this.loanProductSettingsForm.addControl("minimumGuaranteeFromOwnFunds",new it("")),this.loanProductSettingsForm.addControl("minimumGuaranteeFromGuarantor",new it(""))):(this.loanProductSettingsForm.removeControl("mandatoryGuarantee"),this.loanProductSettingsForm.removeControl("minimumGuaranteeFromOwnFunds"),this.loanProductSettingsForm.removeControl("minimumGuaranteeFromGuarantor"))}),this.loanProductSettingsForm.get("multiDisburseLoan").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("maxTrancheCount",new it("",ce.required)),this.loanProductSettingsForm.addControl("outstandingLoanBalance",new it(""))):(this.loanProductSettingsForm.removeControl("maxTrancheCount"),this.loanProductSettingsForm.removeControl("outstandingLoanBalance"),this.loanProductSettingsForm.patchValue({disallowExpectedDisbursements:!1,allowFullTermForTranche:!1}))}),this.loanProductSettingsForm.get("enableDownPayment").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("disbursedAmountPercentageForDownPayment",new it(0,[ce.required,JK(0,100)])),this.loanProductSettingsForm.addControl("enableAutoRepaymentForDownPayment",new it(!1,[]))):(this.loanProductSettingsForm.removeControl("disbursedAmountPercentageForDownPayment"),this.loanProductSettingsForm.removeControl("enableAutoRepaymentForDownPayment"))}),this.loanProductSettingsForm.get("transactionProcessingStrategyCode").valueChanges.subscribe(n=>{this.advancePaymentStrategy.emit(n),this.isAdvancedTransactionProcessingStrategy=Ea.isAdvancedPaymentAllocationStrategy(n),this.processingStrategyService.initialize(this.isAdvancedTransactionProcessingStrategy),this.validateAdvancedPaymentStrategyControls()}),this.loanProductSettingsForm.get("allowAttributeConfiguration").valueChanges.subscribe(n=>{n?t.patchValue({amortizationType:!0,interestType:!0,transactionProcessingStrategyCode:!0,interestCalculationPeriodType:!0,inArrearsTolerance:!0,repaymentEvery:!0,graceOnPrincipalAndInterestPayment:!0,graceOnArrearsAgeing:!0}):t.patchValue({amortizationType:!1,interestType:!1,transactionProcessingStrategyCode:!1,interestCalculationPeriodType:!1,inArrearsTolerance:!1,repaymentEvery:!1,graceOnPrincipalAndInterestPayment:!1,graceOnArrearsAgeing:!1})}),this.loanProductSettingsForm.get("useDueForRepaymentsConfigurations").valueChanges.subscribe(n=>{n?this.loanProductSettingsForm.patchValue({dueDaysForRepaymentEvent:null,overDueDaysForRepaymentEvent:null}):this.loanProductSettingsForm.patchValue({dueDaysForRepaymentEvent:this.getGlobalConfigValue(Ea.DAYS_BEFORE_REPAYMENT_IS_DUE),overDueDaysForRepaymentEvent:this.getGlobalConfigValue(Ea.DAYS_AFTER_REPAYMENT_IS_OVERDUE)})}),this.loanProductSettingsForm.get("loanScheduleType").valueChanges.subscribe(n=>{this.transactionProcessingStrategyData=[],n===Ea.LOAN_SCHEDULE_TYPE_CUMULATIVE?(this.transactionProcessingStrategyData=this.transactionProcessingStrategyDataBase.filter(i=>!Ea.isAdvancedPaymentAllocationStrategy(i.code)),Ea.isAdvancedPaymentAllocationStrategy(this.loanProductSettingsForm.value.transactionProcessingStrategyCode)&&this.loanProductSettingsForm.patchValue({transactionProcessingStrategyCode:this.transactionProcessingStrategyData[0].code}),this.advancedTransactionProcessingStrategyDisabled=!1,this.isAdvancedTransactionProcessingStrategy=!1,this.loanProductSettingsForm.removeControl("chargeOffBehaviour"),this.loanProductSettingsForm.patchValue({allowFullTermForTranche:!1})):(this.transactionProcessingStrategyDataBase.some(i=>{Ea.isAdvancedPaymentAllocationStrategy(i.code)&&this.transactionProcessingStrategyData.push(i)}),this.advancedTransactionProcessingStrategyDisabled=!0,this.loanProductSettingsForm.patchValue({transactionProcessingStrategyCode:this.transactionProcessingStrategyData[0].code}),this.isAdvancedTransactionProcessingStrategy=!0,this.loanProductSettingsForm.addControl("chargeOffBehaviour",new it(this.loanProductsTemplate.chargeOffBehaviour.id)),this.validateAdvancedPaymentStrategyControls()),this.loanProductSettingsForm.value.isInterestRecalculationEnabled&&this.setRescheduleStrategies(),this.processingStrategyService.initialize(this.isAdvancedTransactionProcessingStrategy),this.enableFieldsWhenScheduleTypeIsProgressiveAndInterestRateRecalculationEnabled()})}enableFieldsWhenScheduleTypeIsProgressiveAndInterestRateRecalculationEnabled(){let t=this.loanProductSettingsForm.get("loanScheduleType").value===Ea.LOAN_SCHEDULE_TYPE_PROGRESSIVE,n=this.loanProductSettingsForm.get("isInterestRecalculationEnabled").value==!0,i=t&&n,s=this.loanProductSettingsForm.contains("disallowInterestCalculationOnPastDue");i&&!s?(this.loanProductSettingsForm.addControl("disallowInterestCalculationOnPastDue",new it("")),this.loanProductSettingsForm.patchValue({disallowInterestCalculationOnPastDue:this.loanProductsTemplate.interestRecalculationData?.disallowInterestCalculationOnPastDue??!1})):s&&!i&&(this.loanProductSettingsForm.patchValue({disallowInterestCalculationOnPastDue:void 0}),this.loanProductSettingsForm.removeControl("disallowInterestCalculationOnPastDue"))}setRescheduleStrategies(){this.advancedTransactionProcessingStrategyDisabled?(this.rescheduleStrategyTypeData=this.rescheduleStrategyTypeDataBase.filter(t=>t.id>3),this.loanProductSettingsForm.patchValue({rescheduleStrategyMethod:this.rescheduleStrategyTypeData[0].id}),this.rescheduleStrategyTypeDisabled=!0):(this.rescheduleStrategyTypeData=this.rescheduleStrategyTypeDataBase.filter(t=>t.id<4),this.loanProductSettingsForm.patchValue({rescheduleStrategyMethod:this.rescheduleStrategyTypeData[0].id}),this.rescheduleStrategyTypeDisabled=!1)}getGlobalConfigValue(t){let n=null;return this.defaultConfigValues.forEach(i=>{i.name===t&&(n=i.value)}),n}clearProperty(t,n){n==="delinquencyBucketId"&&this.loanProductSettingsForm.patchValue({delinquencyBucketId:"",enableInstallmentLevelDelinquency:!1}),this.loanProductSettingsForm.markAsDirty(),t.stopPropagation()}get loanProductSettings(){let t=this.loanProductSettingsForm.value;return this.loanProductSettingsForm.value.useDueForRepaymentsConfigurations&&(t.dueDaysForRepaymentEvent=null,t.overDueDaysForRepaymentEvent=null),t.delinquencyBucketId===""&&(t.delinquencyBucketId=null),t}validateAdvancedPaymentStrategyControls(){if(this.isAdvancedTransactionProcessingStrategy){let t=this.loanProductSettingsForm.get("daysInYearType").value;if(this.loanProductSettingsForm.addControl("loanScheduleProcessingType",new it(this.loanProductsTemplate.loanScheduleProcessingType.code||Ea.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL,[ce.required])),this.useDaysInYearCustomStrategy=t===1,this.useDaysInYearCustomStrategy){let n=this.loanProductsTemplate.daysInYearCustomStrategy?.id?this.loanProductsTemplate.daysInYearCustomStrategy.id:this.daysInYearCustomStrategyOptions[0].id;this.loanProductSettingsForm.addControl("daysInYearCustomStrategy",new it(n,ce.required))}}else this.useDaysInYearCustomStrategy=!1,this.loanProductSettingsForm.removeControl("loanScheduleProcessingType"),this.loanProductSettingsForm.removeControl("daysInYearCustomStrategy")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-settings-step"]],inputs:{toEdit:"toEdit",loanProductsTemplate:"loanProductsTemplate",isLinkedToFloatingInterestRates:"isLinkedToFloatingInterestRates"},outputs:{advancePaymentStrategy:"advancePaymentStrategy"},decls:251,vars:251,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-30"],["formControlName","amortizationType","required","",3,"matTooltip"],[3,"value"],["formControlName","interestType","required","",3,"matTooltip"],["formControlName","interestCalculationPeriodType","required","",3,"matTooltip"],["labelPosition","before","formControlName","isEqualAmortization",1,"flex-96"],["labelPosition","before","formControlName","allowPartialPeriodInterestCalculation",1,"flex-96",3,"matTooltip"],[1,"flex-98"],[1,"mat-h4","flex-98"],["formControlName","loanScheduleType","required",""],["formControlName","transactionProcessingStrategyCode","required","",3,"matTooltip","disabled"],[1,"flex-fill","flex-30"],[1,"mat-h3","flex-96"],["labelPosition","before","formControlName","multiDisburseLoan",1,"margin-b","flex-73",3,"matTooltip"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["labelPosition","before","formControlName","enableDownPayment",1,"margin-b","flex-73",3,"matTooltip"],[1,"flex-48","hide-lt-md"],[1,"full-width-flex"],[1,"mat-h4","m-r-10","flex-98"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-48"],["type","number","matInput","","formControlName","graceOnPrincipalPayment"],["type","number","matInput","","formControlName","graceOnInterestPayment"],["formControlName","delinquencyBucketId"],["matSuffix","","mat-icon-button","","aria-label","Clear"],["labelPosition","before","formControlName","enableInstallmentLevelDelinquency",1,"flex-48","margin-v"],["type","number","matInput","","formControlName","graceOnInterestCharged",3,"matTooltip"],["type","number","matInput","","formControlName","inArrearsTolerance",3,"matTooltip"],["formControlName","daysInYearType","required","",3,"matTooltip"],["formControlName","daysInMonthType","required","",3,"matTooltip"],["labelPosition","before","formControlName","canDefineInstallmentAmount",1,"margin-v","flex-98"],["type","number","matInput","","formControlName","graceOnArrearsAgeing"],["type","number","matInput","","formControlName","overdueDaysForNPA"],["labelPosition","before","formControlName","accountMovesOutOfNPAOnlyOnArrearsCompletion",1,"flex-48","margin-v"],["type","number","matInput","","formControlName","principalThresholdForLastInstallment"],["labelPosition","before","formControlName","allowVariableInstallments",1,"flex-48","margin-v",3,"matTooltip"],["labelPosition","before","formControlName","canUseForTopup",1,"flex-48","margin-v",3,"matTooltip"],["labelPosition","before","formControlName","isInterestRecalculationEnabled",1,"flex-73","margin-b"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","holdGuaranteeFunds",1,"flex-73","margin-b"],["labelPosition","before","formControlName","useDueForRepaymentsConfigurations",1,"flex-48","margin-b",3,"matTooltip"],[1,"mat-h3","flex-43"],["labelPosition","before","formControlName","allowAttributeConfiguration",1,"margin-b","flex-53"],["formGroupName","allowAttributeOverrides",1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","loanScheduleProcessingType","required",""],["type","number","matInput","","formControlName","maxTrancheCount","required","",3,"matTooltip"],["type","number","matInput","","formControlName","outstandingLoanBalance",3,"matTooltip"],["labelPosition","before","formControlName","disallowExpectedDisbursements",1,"flex-48","margin-v"],["labelPosition","before","formControlName","allowFullTermForTranche",1,"flex-48","margin-v",3,"matTooltip"],["type","number","matInput","","formControlName","disbursedAmountPercentageForDownPayment","required","",3,"matTooltip","min","max"],["labelPosition","before","formControlName","enableAutoRepaymentForDownPayment",1,"flex-48","margin-v",3,"matTooltip"],["formControlName","chargeOffBehaviour","required",""],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["icon","close","size","md"],["formControlName","daysInYearCustomStrategy",3,"matTooltip"],["type","number","matInput","","formControlName","minimumGap","required",""],["type","number","matInput","","formControlName","maximumGap","required",""],["formControlName","preClosureInterestCalculationStrategy","required",""],["formControlName","rescheduleStrategyMethod","required","",3,"disabled"],["formControlName","interestRecalculationCompoundingMethod","required",""],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"flex-31"],["formControlName","recalculationRestFrequencyType","required",""],[1,"flex-31","layout-row","layout-lt-md-column"],["labelPosition","before","formControlName","isArrearsBasedOnOriginalSchedule",1,"flex-98","margin-v"],["labelPosition","before","formControlName","disallowInterestCalculationOnPastDue",1,"flex-98","margin-v"],["type","number","matInput","","formControlName","recalculationCompoundingFrequencyInterval","required",""],["type","number","matInput","","formControlName","recalculationRestFrequencyInterval","required",""],["formControlName","recalculationCompoundingFrequencyType","required",""],[1,"flex-fill"],["formControlName","recalculationCompoundingFrequencyNthDayType"],["formControlName","recalculationCompoundingFrequencyDayOfWeekType"],["formControlName","recalculationCompoundingFrequencyOnDayType"],["formControlName","recalculationRestFrequencyNthDayType"],["formControlName","recalculationRestFrequencyDayOfWeekType"],["formControlName","recalculationRestFrequencyOnDayType"],["type","number","matInput","","formControlName","mandatoryGuarantee","required",""],["type","number","matInput","","formControlName","minimumGuaranteeFromOwnFunds"],["type","number","matInput","","formControlName","minimumGuaranteeFromGuarantor"],["type","number","matInput","","formControlName","dueDaysForRepaymentEvent",3,"matTooltip"],["type","number","matInput","","formControlName","overDueDaysForRepaymentEvent",3,"matTooltip"],["labelPosition","before","formControlName","amortizationType",1,"margin-v","flex-48"],["labelPosition","before","formControlName","interestType",1,"margin-v","flex-48"],["labelPosition","before","formControlName","transactionProcessingStrategyCode",1,"flex-48","margin-v"],["labelPosition","before","formControlName","interestCalculationPeriodType",1,"flex-48","margin-v"],["labelPosition","before","formControlName","inArrearsTolerance",1,"margin-v","flex-48"],["labelPosition","before","formControlName","repaymentEvery",1,"margin-v","flex-48"],["labelPosition","before","formControlName","graceOnPrincipalAndInterestPayment",1,"flex-48","margin-v"],["labelPosition","before","formControlName","graceOnArrearsAgeing",1,"margin-v","flex-48"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,fvt,3,4,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),l(21,"mat-select",5),p(22,"translate"),Se(23,hvt,3,5,"mat-option",4,Pe),r(),l(25,"mat-error"),c(26),p(27,"translate"),p(28,"translate"),l(29,"strong"),c(30),p(31,"translate"),r()()(),l(32,"mat-form-field",2)(33,"mat-label"),c(34),p(35,"translate"),r(),l(36,"mat-select",6),p(37,"translate"),Se(38,gvt,3,5,"mat-option",4,Pe),r(),l(40,"mat-error"),c(41),p(42,"translate"),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()(),l(47,"mat-checkbox",7),c(48),p(49,"translate"),r(),E(50,_vt,4,7,"mat-checkbox",8),b(51,"mat-divider",9),l(52,"h4",10),c(53),p(54,"translate"),r(),l(55,"mat-form-field",2)(56,"mat-label"),c(57),p(58,"translate"),r(),l(59,"mat-select",11),Se(60,Cvt,3,5,"mat-option",4,Pe),r()(),l(62,"mat-form-field",2)(63,"mat-label"),c(64),p(65,"translate"),r(),l(66,"mat-select",12),p(67,"translate"),Se(68,vvt,3,5,"mat-option",4,Pe),r(),l(70,"mat-error"),c(71),p(72,"translate"),p(73,"translate"),l(74,"strong"),c(75),p(76,"translate"),r()()(),E(77,bvt,7,3,"mat-form-field",13),l(78,"h3",14),c(79),p(80,"translate"),r(),l(81,"mat-checkbox",15),p(82,"translate"),c(83),p(84,"translate"),r(),E(85,wvt,18,19,"div",16),l(86,"h3",14),c(87),p(88,"translate"),r(),l(89,"mat-checkbox",17),p(90,"translate"),c(91),p(92,"translate"),r(),E(93,Mvt,13,18,"div",16),b(94,"mat-divider",9)(95,"span",18),l(96,"div",19),E(97,Evt,11,6,"div"),r(),l(98,"h4",20),c(99),p(100,"translate"),b(101,"i",21),p(102,"translate"),r(),l(103,"mat-form-field",22)(104,"mat-label"),c(105),p(106,"translate"),r(),b(107,"input",23),r(),l(108,"mat-form-field",22)(109,"mat-label"),c(110),p(111,"translate"),r(),b(112,"input",24),r(),b(113,"mat-divider",9),l(114,"mat-form-field",22)(115,"mat-label"),c(116),p(117,"translate"),r(),l(118,"mat-select",25),Se(119,Ivt,2,2,"mat-option",4,Pe),r(),E(121,Ovt,2,0,"button",26),r(),E(122,Avt,3,3,"mat-checkbox",27),b(123,"mat-divider",9),l(124,"mat-form-field",22)(125,"mat-label"),c(126),p(127,"translate"),r(),b(128,"input",28),p(129,"translate"),r(),l(130,"mat-form-field",22)(131,"mat-label"),c(132),p(133,"translate"),r(),b(134,"input",29),p(135,"translate"),r(),l(136,"mat-form-field",22)(137,"mat-label"),c(138),p(139,"translate"),r(),l(140,"mat-select",30),p(141,"translate"),Se(142,Fvt,3,5,"mat-option",4,Pe),r(),l(144,"mat-error"),c(145),p(146,"translate"),p(147,"translate"),l(148,"strong"),c(149),p(150,"translate"),r()()(),E(151,Bvt,8,7,"mat-form-field",22),l(152,"mat-form-field",22)(153,"mat-label"),c(154),p(155,"translate"),r(),l(156,"mat-select",31),p(157,"translate"),Se(158,Rvt,3,5,"mat-option",4,Pe),r(),l(160,"mat-error"),c(161),p(162,"translate"),p(163,"translate"),l(164,"strong"),c(165),p(166,"translate"),r()()(),l(167,"mat-checkbox",32),c(168),p(169,"translate"),r(),l(170,"h4",22),c(171),p(172,"translate"),b(173,"i",21),p(174,"translate"),r(),l(175,"mat-form-field",22)(176,"mat-label"),c(177),p(178,"translate"),r(),b(179,"input",33),r(),l(180,"h4",22),c(181),p(182,"translate"),b(183,"i",21),p(184,"translate"),r(),l(185,"mat-form-field",22)(186,"mat-label"),c(187),p(188,"translate"),r(),b(189,"input",34),r(),l(190,"mat-checkbox",35),c(191),p(192,"translate"),r(),l(193,"mat-form-field",22)(194,"mat-label"),c(195),p(196,"translate"),r(),b(197,"input",36),r(),l(198,"mat-checkbox",37),p(199,"translate"),c(200),p(201,"translate"),r(),E(202,Nvt,28,27,"div",16),l(203,"mat-checkbox",38),p(204,"translate"),c(205),p(206,"translate"),r(),b(207,"mat-divider",9),l(208,"h3",14),c(209),p(210,"translate"),r(),l(211,"mat-checkbox",39),c(212),p(213,"translate"),r(),E(214,axt,69,59,"div",16),b(215,"mat-divider",9),l(216,"h3",40),c(217),p(218,"translate"),r(),l(219,"mat-checkbox",41),c(220),p(221,"translate"),r(),E(222,rxt,23,18,"div",16),b(223,"mat-divider",9),l(224,"h3",40),c(225),p(226,"translate"),b(227,"i",21),p(228,"translate"),r(),l(229,"mat-checkbox",42),p(230,"translate"),c(231),p(232,"translate"),r(),E(233,lxt,13,14,"div",16),b(234,"mat-divider",9),l(235,"h3",43),c(236),p(237,"translate"),r(),l(238,"mat-checkbox",44),c(239),p(240,"translate"),r(),E(241,sxt,25,24,"div",45),r(),l(242,"div",46)(243,"button",47),b(244,"fa-icon",48),c(245),p(246,"translate"),r(),l(247,"button",49),c(248),p(249,"translate"),b(250,"fa-icon",50),r()()()),n&2&&(g("formGroup",i.loanProductSettingsForm),a(4),h(m(5,105,"labels.inputs.products.loan.Amortization")),a(2),g("matTooltip",Le(m(7,107,"tooltips.The Amortization value"))),a(2),we(i.amortizationTypeData),a(3),le(" ",m(12,109,"labels.inputs.products.loan.Amortization")," ",m(13,111,"labels.commons.is")," "),a(4),h(m(16,113,"labels.commons.required")),a(4),h(m(20,115,"labels.inputs.Interest Method")),a(2),g("matTooltip",Le(m(22,117,"tooltips.The Interest method value"))),a(2),we(i.interestTypeData),a(3),le(" ",m(27,119,"labels.inputs.Interest Method")," ",m(28,121,"labels.commons.is")," "),a(4),h(m(31,123,"labels.commons.required")),a(4),h(m(35,125,"labels.inputs.Interest calculation period")),a(2),g("matTooltip",Le(m(37,127,"tooltips.Daily - Will Calculate the interest"))),a(2),we(i.interestCalculationPeriodTypeData),a(3),le(" ",m(42,129,"labels.inputs.Interest calculation period")," ",m(43,131,"labels.commons.is")," "),a(4),h(m(46,133,"labels.commons.required")),a(3),v(" ",m(49,135,"labels.inputs.products.loan.Is Equal Amortization?")," "),a(2),I(i.loanProductSettingsForm.value.interestCalculationPeriodType===1?50:-1),a(3),h(m(54,137,"labels.inputs.Loan Schedule")),a(4),h(m(58,139,"labels.inputs.Loan Schedule Type")),a(3),we(i.loanScheduleTypeData),a(4),h(m(65,141,"labels.inputs.Repayment strategy")),a(2),g("matTooltip",Le(m(67,143,"tooltips.The repayment strategy")))("disabled",i.advancedTransactionProcessingStrategyDisabled),a(2),we(i.transactionProcessingStrategyData),a(3),le(" ",m(72,145,"labels.inputs.Repayment strategy")," ",m(73,147,"labels.commons.is")," "),a(4),h(m(76,149,"labels.commons.required")),a(2),I(i.isAdvancedTransactionProcessingStrategy?77:-1),a(2),h(m(80,151,"labels.inputs.Loan Tranche Details")),a(2),g("matTooltip",Le(m(82,153,"tooltips.Leave this checkbox unchecked"))),a(2),v(" ",m(84,155,"labels.inputs.Enable Multiple Disbursals")," "),a(2),I(i.loanProductSettingsForm.value.multiDisburseLoan?85:-1),a(2),h(m(88,157,"labels.heading.Down Payment")),a(2),g("matTooltip",Le(m(90,159,"tooltips.Leave this checkbox unchecked"))),a(2),v(" ",m(92,161,"labels.inputs.Enable Down Payment")," "),a(2),I(i.loanProductSettingsForm.value.enableDownPayment?93:-1),a(4),I(i.isAdvancedTransactionProcessingStrategy?97:-1),a(2),v(" ",m(100,163,"labels.inputs.Moratorium")," "),a(2),g("matTooltip",Le(m(102,165,"tooltips.The moratorium information"))),a(4),h(m(106,167,"labels.inputs.Grace on principal payment")),a(5),h(m(111,169,"labels.inputs.Grace on interest payment")),a(6),h(m(117,171,"labels.inputs.Delinquency Bucket")),a(3),we(i.delinquencyBucketData),a(2),I(i.loanProductSettingsForm.controls.delinquencyBucketId?121:-1),a(),I(i.loanProductSettingsForm.value.delinquencyBucketId?122:-1),a(4),h(m(127,173,"labels.inputs.Interest free period")),a(2),g("matTooltip",Le(m(129,175,"tooltips.If the Interest Free Period"))),a(4),h(m(133,177,"labels.inputs.Arrears tolerance")),a(2),g("matTooltip",Le(m(135,179,"tooltips.With Arrears tolerance"))),a(4),h(m(139,181,"labels.inputs.Days in year")),a(2),g("matTooltip",Le(m(141,183,"tooltips.To calculate interest"))),a(2),we(i.daysInYearTypeData),a(3),le(" ",m(146,185,"labels.inputs.Days in year")," ",m(147,187,"labels.commons.is")," "),a(4),h(m(150,189,"labels.commons.required")),a(2),I(i.useDaysInYearCustomStrategy?151:-1),a(3),h(m(155,191,"labels.inputs.Days in month")),a(2),g("matTooltip",_0("",m(157,193,"tooltips.Number of days in month"),".")),a(2),we(i.daysInMonthTypeData),a(3),le(" ",m(162,195,"labels.inputs.Days in month")," ",m(163,197,"labels.commons.is")," "),a(4),h(m(166,199,"labels.commons.required")),a(3),v(" ",m(169,201,"labels.inputs.Allow fixing of the installment amount")," "),a(3),v(" ",m(172,203,"labels.inputs.Number of days a loan may be overdue before moving into arrears")," "),a(2),g("matTooltip",Le(m(174,205,"tooltips.A loan is in arrears once the number of days"))),a(4),h(m(178,207,"labels.inputs.On arrears ageing")),a(4),v(" ",m(182,209,"labels.inputs.Maximum number of days a loan may be overdue before becoming a NPA (non performing asset)")," "),a(2),g("matTooltip",Le(m(184,211,"tooltips.NPA (non performing asset) once the number of days"))),a(4),h(m(188,213,"labels.inputs.Overdue days for NPA")),a(4),v(" ",m(192,215,"labels.inputs.Account moves out of NPA only after all arrears have been cleared")," "),a(4),h(m(196,217,"labels.inputs.Principal Threshold (%) for Last Instalment")),a(3),g("matTooltip",Le(m(199,219,"tooltips.Fields are used to define the minimum, maximum gap"))),a(2),v(" ",m(201,221,"labels.inputs.Are Variable Installments allowed?")," "),a(2),I(i.loanProductSettingsForm.value.allowVariableInstallments?202:-1),a(),g("matTooltip",Le(m(204,223,"tooltips.Loan Product can be used to apply for Topup Loans"))),a(2),v(" ",m(206,225,"labels.inputs.Allowed to be used for providing Topup Loans")," "),a(4),h(m(210,227,"labels.heading.Interest Recalculation")),a(3),v(" ",m(213,229,"labels.inputs.Recalculate Interest")," "),a(2),I(i.loanProductSettingsForm.value.isInterestRecalculationEnabled?214:-1),a(3),h(m(218,231,"labels.heading.Guarantee Requirements")),a(3),v(" ",m(221,233,"labels.inputs.Place Guarantee Funds On-Hold")," "),a(2),I(i.loanProductSettingsForm.value.holdGuaranteeFunds?222:-1),a(3),v(" ",m(226,235,"labels.heading.Event Settings")),a(2),g("matTooltip",Le(m(228,237,"tooltips.Setting for event notifications to be sent"))),a(2),g("matTooltip",Le(m(230,239,"tooltips.Use or not the Global Configurations"))),a(2),v(" ",m(232,241,"labels.inputs.Use the Global Configurations values to the Repayment Event (notifications)")," "),a(2),I(i.loanProductSettingsForm.value.useDueForRepaymentsConfigurations?-1:233),a(3),h(m(237,243,"labels.inputs.Configurable Terms and Settings")),a(3),v(" ",m(240,245,"labels.inputs.Allow overriding select terms and settings in loan accounts")," "),a(2),I(i.loanProductSettingsForm.value.allowAttributeConfiguration?241:-1),a(4),v(" ",m(246,247,"labels.buttons.Previous")," "),a(3),v(" ",m(249,249,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,$F,Ze,et,la,Fe,Be,ut,ai,ze,gt,ft,xe,fi,si,Ri,wi,ke,qi,Ji,he,ki],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.by-default[_ngcontent-%COMP%]{color:#4461e2b3;font-weight:700}"]})}}return e})();function cxt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function pxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function mxt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function dxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function uxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function fxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function hxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function gxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function _xt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function Cxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function vxt(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",30),r()()}}function xxt(e,o){e&1&&b(0,"tr",31)}function bxt(e,o){e&1&&b(0,"tr",32)}function yxt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function Sxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function wxt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function Pxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Txt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function Mxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function Dxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function Ext(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function Ixt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function Oxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Axt(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",30),r()()}}function Fxt(e,o){e&1&&b(0,"tr",31)}function kxt(e,o){e&1&&b(0,"tr",32)}var um=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"],this.pristine=!0}ngOnInit(){this.chargeData=this.loanProductsTemplate.chargeOptions,this.overdueChargeData=this.loanProductsTemplate.penaltyOptions?this.loanProductsTemplate.penaltyOptions.filter(t=>t.chargeTimeType.code==="chargeTimeType.overdueInstallment"):[],this.chargesDataSource=this.loanProductsTemplate.charges||[],this.pristine=!0,this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[]),this.multiDisburseLoan.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value="",this.pristine=!1}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get loanProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-charges-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate",currencyCode:"currencyCode",multiDisburseLoan:"multiDisburseLoan"},decls:83,vars:46,consts:[["charge",""],["chargesTable",""],["overdueCharge",""],["overdueChargesTable",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"flex-98"],[1,"mat-h3"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"mat-form-field",5)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,cxt,2,2,"mat-option",6,Pe),p(9,"chargesFilter"),r()(),l(10,"div",7)(11,"button",8),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",9),c(13),p(14,"translate"),r()(),l(15,"table",10,1),p(17,"chargesPenaltyFilter"),X(18,11),F(19,pxt,3,3,"th",12)(20,mxt,2,1,"td",13),Z(),X(21,14),F(22,dxt,3,3,"th",12)(23,uxt,3,4,"td",13),Z(),X(24,15),F(25,fxt,3,3,"th",12)(26,hxt,3,3,"td",13),Z(),X(27,16),F(28,gxt,3,3,"th",12)(29,_xt,3,4,"td",13),Z(),X(30,17),F(31,Cxt,3,3,"th",12)(32,vxt,3,0,"td",13),Z(),F(33,xxt,1,0,"tr",18)(34,bxt,1,0,"tr",19),r(),b(35,"mat-divider",20),l(36,"div",20)(37,"h3",21),c(38),p(39,"translate"),r()(),l(40,"mat-form-field",5)(41,"mat-label"),c(42),p(43,"translate"),r(),l(44,"mat-select",null,2),Se(46,yxt,2,2,"mat-option",6,Pe),p(48,"chargesFilter"),r()(),l(49,"div",7)(50,"button",8),R("click",function(){V(s);let u=ve(45);return q(i.addCharge(u))}),b(51,"fa-icon",9),c(52),p(53,"translate"),r()(),l(54,"table",10,3),p(56,"chargesPenaltyFilter"),X(57,11),F(58,Sxt,3,3,"th",12)(59,wxt,2,1,"td",13),Z(),X(60,14),F(61,Pxt,3,3,"th",12)(62,Txt,3,4,"td",13),Z(),X(63,15),F(64,Mxt,3,3,"th",12)(65,Dxt,3,3,"td",13),Z(),X(66,16),F(67,Ext,3,3,"th",12)(68,Ixt,3,4,"td",13),Z(),X(69,17),F(70,Oxt,3,3,"th",12)(71,Axt,3,0,"td",13),Z(),F(72,Fxt,1,0,"tr",18)(73,kxt,1,0,"tr",19),r()(),l(74,"div",22)(75,"button",23),b(76,"fa-icon",24),c(77),p(78,"translate"),r(),l(79,"button",25),c(80),p(81,"translate"),b(82,"fa-icon",26),r()()}if(n&2){let s=ve(6),d=ve(16),u=ve(45),f=ve(55);a(3),h(m(4,17,"labels.inputs.Charge")),a(4),we($t(9,19,i.chargeData,i.chargesDataSource,i.currencyCode.value,i.multiDisburseLoan.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,24,"labels.buttons.Add")," "),a(2),g("dataSource",Ft(17,26,i.chargesDataSource,!1))("hidden",d.dataSource.length===0),a(18),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),h(m(39,29,"labels.inputs.Overdue Charges")),a(4),h(m(43,31,"labels.inputs.Overdue Charge")),a(4),we(yr(48,33,i.overdueChargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!u.value),a(2),v(" ",m(53,37,"labels.buttons.Add")," "),a(2),g("dataSource",Ft(56,39,i.chargesDataSource,!0))("hidden",f.dataSource.length===0),a(18),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(78,42,"labels.buttons.Previous")," "),a(3),v(" ",m(81,44,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,Ri,qi,Ji,he,ki,ac,$g,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function Bxt(e,o){if(e&1&&(l(0,"th",13),c(1),p(2,"translate"),r()),e&2){let t=w(2);a(),h(m(2,1,"labels.inputs."+t.textField))}}function Rxt(e,o){if(e&1&&(l(0,"td",14),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.value.name," ")}}function Nxt(e,o){e&1&&(l(0,"th",13),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GL Account Name or Code")))}function Lxt(e,o){if(e&1&&(l(0,"td",14),c(1),r()),e&2){let t=o.$implicit;a(),le("(",t.glAccount.glCode,") ",t.glAccount.name)}}function Vxt(e,o){e&1&&(l(0,"th",13),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function qxt(e,o){if(e&1){let t=Y();l(0,"td",14)(1,"button",15),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w(2);return q(u.edit(s,d))}),b(2,"fa-icon",16),r(),l(3,"button",17),R("click",function(){let i=V(t).index,s=w(2);return q(s.delete(i))}),b(4,"fa-icon",18),r()()}}function zxt(e,o){e&1&&b(0,"tr",19)}function Hxt(e,o){e&1&&b(0,"tr",20)}function Gxt(e,o){if(e&1&&(l(0,"table",5),X(1,6),F(2,Bxt,3,3,"th",7)(3,Rxt,2,1,"td",8),Z(),X(4,9),F(5,Nxt,3,3,"th",7)(6,Lxt,2,2,"td",8),Z(),X(7,10),F(8,Vxt,3,3,"th",7)(9,qxt,5,0,"td",8),Z(),F(10,zxt,1,0,"tr",11)(11,Hxt,1,0,"tr",12),r()),e&2){let t=w();g("dataSource",t.tableData),a(10),g("matHeaderRowDef",t.tableDisplayedColumns),a(),g("matRowDefColumns",t.tableDisplayedColumns)}}var Qy=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.allowAddAccountingMapping=!0,this.accountingMappingOptions=[],this.currentFormValues=[],this.formChangeEvent=new bi,this.tableData=[],this.tableDisplayedColumns=["codeValueId","glAccountId","actions"]}ngOnInit(){this.tableData=this.formArray?.value||[],this.sendParentData()}add(){if(this.currentFormValues=[],this.formType=="ChargeOffReasonExpense"&&(this.allowAddAccountingMapping=!0,this.tableData.forEach(i=>this.currentFormValues.push(i.chargeOffReasonCodeValueId)),this.accountingMappingOptions.length==this.currentFormValues.length)){this.allowAddAccountingMapping=!1;return}let t=qt(at({},this.getData(this.formType)),{pristine:!1});this.dialog.open(an,{data:t}).afterClosed().subscribe(i=>{if(i.data){if(["ChargeOffReasonExpense","WriteOffReasonToExpense"].includes(this.formType)){let s={value:this.getValueData(i.data.value.chargeOffReasonCodeValueId),glAccount:this.getGlAccountData(i.data.value.expenseAccountId)};this.addTableData(s)}else if(["BuydownFeeClassificationToIncome","CapitalizedIncomeClassificationToIncome"].includes(this.formType)){let s={value:this.getValueData(i.data.value.valueId),glAccount:this.getGlAccountData(i.data.value.glAccountId)};this.addTableData(s)}this.sendParentData(),this.formType=="ChargeOffReasonExpense"&&(this.allowAddAccountingMapping=this.tableData.length{i.delete&&(this.tableData=this.tableData.filter((s,d)=>d!==t),this.sendParentData())})}edit(t,n){let i=qt(at({},this.getData(this.formType,t)),{pristine:!1,layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u;["ChargeOffReasonExpense","WriteOffReasonToExpense"].includes(this.formType)?u={value:this.getValueData(d.data.value.chargeOffReasonCodeValueId),glAccount:this.getGlAccountData(d.data.value.expenseAccountId)}:["BuydownFeeClassificationToIncome","CapitalizedIncomeClassificationToIncome"].includes(this.formType)?u={value:this.getValueData(d.data.value.valueId),glAccount:this.getGlAccountData(d.data.value.glAccountId)}:this.formType==="PaymentFundSource"?u={value:this.getValueData(d.data.paymentTypeId),glAccount:this.getGlAccountData(d.data.fundSourceAccountId)}:this.formType==="FeesIncome"?u={value:this.getValueData(d.data.chargeId),glAccount:this.getGlAccountData(d.data.incomeAccountId)}:this.formType==="PenaltyIncome"&&(u={value:this.getValueData(d.data.chargeId),glAccount:this.getGlAccountData(d.data.incomeAccountId)}),this.updateTableData(u,n),this.sendParentData()}})}sendParentData(){let t={formType:this.formType,values:this.tableData};this.formChangeEvent.emit(t)}getData(t,n){switch(t){case"PaymentFundSource":return{title:"Configure Fund Sources for Payment Channels",formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:"Map Fees to Income Accounts",formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:"Map Penalties to Specific Income Accounts",formfields:this.getPenaltyIncomeFormfields(n)};case"ChargeOffReasonExpense":return{title:"Map Charge-off reasons to Expense accounts",formfields:this.getChargeOffReasonExpenseFormfields(n)};case"BuydownFeeClassificationToIncome":return{title:"Buydown Fee classifications to Income accounts",formfields:this.getClassificationIncomeFormfields(n)};case"CapitalizedIncomeClassificationToIncome":return{title:"Capitalized Income classifications to Income accounts",formfields:this.getClassificationIncomeFormfields(n)};case"WriteOffReasonToExpense":return{title:"Map Write-off reasons to Expense accounts",formfields:this.getChargeOffReasonExpenseFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:"Payment Type",value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:"Fund Source",value:t?t.fundSourceAccountId:this.assetAccountData[0].id,options:{label:"name",value:"id",data:this.assetAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Fees",value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAndLiabilityAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAndLiabilityAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Penalty",value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getChargeOffReasonExpenseFormfields(t){let n=this.accountingMappingOptions.filter(s=>!this.currentFormValues.includes(s.id));return[new $i({controlName:"chargeOffReasonCodeValueId",label:"Charge-off reason",value:t?t.value.id:n[0].id,options:{label:"name",value:"id",data:n},required:!0,order:1}),new $i({controlName:"expenseAccountId",label:"Expense Account",value:t?t.glAccount.id:this.expenseAccountData[0].id,options:{label:"name",value:"id",data:this.expenseAccountData},required:!0,order:2})]}getClassificationIncomeFormfields(t){let n=this.accountingMappingOptions.filter(s=>!this.currentFormValues.includes(s.id));return[new $i({controlName:"valueId",label:"Classification",value:t?t.value.id:n[0].id,options:{label:"name",value:"id",data:n},required:!0,order:1}),new $i({controlName:"glAccountId",label:"Income Account",value:t?t.glAccount.id:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getValueData(t){return this.accountingMappingOptions.find(n=>n.id===t)}getGlAccountData(t){let n=[this.incomeAccountData,this.expenseAccountData,this.assetAccountData,this.liabilityAccountData];for(let i of n)if(i){let s=i.find(d=>d.id===t);if(s)return s}return null}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-advanced-accounting-mapping-rule"]],inputs:{formType:"formType",formArray:"formArray",textHeading:"textHeading",textField:"textField",allowAddAccountingMapping:"allowAddAccountingMapping",accountingMappingOptions:"accountingMappingOptions",chargeData:"chargeData",penaltyData:"penaltyData",paymentTypeData:"paymentTypeData",assetAccountData:"assetAccountData",incomeAccountData:"incomeAccountData",expenseAccountData:"expenseAccountData",liabilityAccountData:"liabilityAccountData",incomeAndLiabilityAccountData:"incomeAndLiabilityAccountData",assetAndLiabilityAccountData:"assetAndLiabilityAccountData"},outputs:{formChangeEvent:"formChangeEvent"},decls:10,vars:9,consts:[[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-33"],[1,"flex-63"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],["matColumnDef","codeValueId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h4",1),c(2),p(3,"translateKey"),r(),l(4,"div",2)(5,"button",3),R("click",function(){return i.add()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r()(),E(9,Gxt,12,3,"table",5),r()),n&2&&(a(2),v(" ",Ft(3,4,i.textHeading,"heading")," "),a(3),g("disabled",!i.allowAddAccountingMapping),a(2),v(" ",m(8,7,"labels.buttons.Add")," "),a(2),I(i.tableData.length!==0?9:-1))},dependencies:[ue,fe,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();function jxt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function $xt(e,o){e&1&&(l(0,"mat-checkbox",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enable Accrual Activity Posting on Installment Due Date")))}function Uxt(e,o){if(e&1&&(l(0,"div",5),b(1,"mifosx-gl-account-selector",13)(2,"mifosx-gl-account-selector",13)(3,"mifosx-gl-account-selector",13),r()),e&2){let t=w(2);a(),g("inputFormControl",t.loanProductAccountingForm.controls.receivableInterestAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Interest Receivable"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.receivableFeeAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.receivablePenaltyAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function Wxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromCapitalizationAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income capitalization")}}function Qxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromBuyDownAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Buy down fees")}}function Yxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.buyDownExpenseAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Buy down fee Expense")}}function Jxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.deferredIncomeLiabilityAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Deferred income")}}function Kxt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function Xxt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function Zxt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function ebt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.assetAccountData,"id","name")," ")}}function tbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ibt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",36),r()()}}function nbt(e,o){e&1&&b(0,"tr",37)}function obt(e,o){e&1&&b(0,"tr",38)}function abt(e,o){if(e&1&&(l(0,"table",20),X(1,24),F(2,Kxt,3,3,"th",25)(3,Xxt,3,6,"td",26),Z(),X(4,27),F(5,Zxt,3,3,"th",25)(6,ebt,3,6,"td",26),Z(),X(7,28),F(8,tbt,3,3,"th",25)(9,ibt,5,0,"td",26),Z(),F(10,nbt,1,0,"tr",29)(11,obt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function rbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function lbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function sbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function cbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAndLiabilityAccountData,"id","name")," ")}}function pbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function mbt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",36),r()()}}function dbt(e,o){e&1&&b(0,"tr",37)}function ubt(e,o){e&1&&b(0,"tr",38)}function fbt(e,o){if(e&1&&(l(0,"table",20),X(1,39),F(2,rbt,3,3,"th",25)(3,lbt,3,6,"td",26),Z(),X(4,40),F(5,sbt,3,3,"th",25)(6,cbt,3,6,"td",26),Z(),X(7,28),F(8,pbt,3,3,"th",25)(9,mbt,5,0,"td",26),Z(),F(10,dbt,1,0,"tr",29)(11,ubt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function hbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function gbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function _bt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function Cbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function vbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function xbt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",36),r()()}}function bbt(e,o){e&1&&b(0,"tr",37)}function ybt(e,o){e&1&&b(0,"tr",38)}function Sbt(e,o){if(e&1&&(l(0,"table",20),X(1,39),F(2,hbt,3,3,"th",25)(3,gbt,3,6,"td",26),Z(),X(4,40),F(5,_bt,3,3,"th",25)(6,Cbt,3,6,"td",26),Z(),X(7,28),F(8,vbt,3,3,"th",25)(9,xbt,5,0,"td",26),Z(),F(10,bbt,1,0,"tr",29)(11,ybt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function wbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge-off reason")))}function Pbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.chargeOffReasonCodeValueId,n.chargeOffReasonOptions,"id","name")," ")}}function Tbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function Mbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.expenseAccountId,n.expenseAccountData,"id","name")," ")}}function Dbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Ebt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("ChargeOffReasonExpense",s.chargeOffReasonToExpenseAccountMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("ChargeOffReasonExpense",s.chargeOffReasonToExpenseAccountMappings,i))}),b(4,"fa-icon",36),r()()}}function Ibt(e,o){e&1&&b(0,"tr",37)}function Obt(e,o){e&1&&b(0,"tr",38)}function Abt(e,o){if(e&1&&(l(0,"table",20),X(1,41),F(2,wbt,3,3,"th",25)(3,Pbt,3,6,"td",26),Z(),X(4,42),F(5,Tbt,3,3,"th",25)(6,Mbt,3,6,"td",26),Z(),X(7,28),F(8,Dbt,3,3,"th",25)(9,Ebt,5,0,"td",26),Z(),F(10,Ibt,1,0,"tr",29)(11,Obt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.chargeOffReasonToExpenseAccountMappings.value),a(10),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function Fbt(e,o){if(e&1){let t=Y();l(0,"div",5)(1,"h4",16),c(2),p(3,"translate"),r(),l(4,"div",17)(5,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(6,"fa-icon",19),c(7),p(8,"translate"),r()(),E(9,abt,12,3,"table",20),l(10,"h4",16),c(11),p(12,"translate"),r(),l(13,"div",17)(14,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(15,"fa-icon",19),c(16),p(17,"translate"),r()(),E(18,fbt,12,3,"table",20),l(19,"h4",16),c(20),p(21,"translate"),r(),l(22,"div",17)(23,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(24,"fa-icon",19),c(25),p(26,"translate"),r()(),E(27,Sbt,12,3,"table",20),l(28,"h4",16),c(29),p(30,"translate"),r(),l(31,"div",17)(32,"button",21),R("click",function(){V(t);let i=w(2);return q(i.add("ChargeOffReasonExpense",i.chargeOffReasonToExpenseAccountMappings))}),b(33,"fa-icon",19),c(34),p(35,"translate"),r()(),E(36,Abt,12,3,"table",20),l(37,"mifosx-advanced-accounting-mapping-rule",22),R("formChangeEvent",function(i){V(t);let s=w(2);return q(s.formChangeEvent(i))}),r(),l(38,"mifosx-advanced-accounting-mapping-rule",22),R("formChangeEvent",function(i){V(t);let s=w(2);return q(s.formChangeEvent(i))}),r(),l(39,"mifosx-advanced-accounting-mapping-rule",23),R("formChangeEvent",function(i){V(t);let s=w(2);return q(s.formChangeEvent(i))}),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,31,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(8,33,"labels.buttons.Add")," "),a(2),I(t.paymentChannelToFundSourceMappings.value.length!==0?9:-1),a(2),h(m(12,35,"labels.heading.Map Fees to Specific Income Accounts")),a(5),v(" ",m(17,37,"labels.buttons.Add")," "),a(2),I(t.feeToIncomeAccountMappings.value.length!==0?18:-1),a(2),v(" ",m(21,39,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(5),v(" ",m(26,41,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?27:-1),a(2),v(" ",m(30,43,"labels.heading.Map Charge-off reasons to Expense accounts")," "),a(3),g("disabled",!t.allowAddChargeOffReasonExpense),a(2),v(" ",m(35,45,"labels.buttons.Add")," "),a(2),I(t.chargeOffReasonToExpenseAccountMappings.value.length!==0?36:-1),a(),g("textField","Classification")("formType","BuydownFeeClassificationToIncome")("formArray",t.buydownfeeClassificationToIncomeAccountMappings)("textHeading","Buydown Fee classifications to Income accounts")("incomeAccountData",t.incomeAccountData)("accountingMappingOptions",t.buydownFeeClassificationOptions),a(),g("textField","Classification")("formType","CapitalizedIncomeClassificationToIncome")("formArray",t.capitalizedIncomeClassificationToIncomeAccountMappings)("textHeading","Capitalized Income classifications to Income accounts")("incomeAccountData",t.incomeAccountData)("accountingMappingOptions",t.capitalizedIncomeClassificationOptions),a(),g("textField","WriteOff Reason")("formType","WriteOffReasonToExpense")("formArray",t.writeOffReasonsToExpenseMappings)("textHeading","WriteOff reasons to Expense accounts")("expenseAccountData",t.expenseAccountData)("accountingMappingOptions",t.writeOffReasonOptions)}}function kbt(e,o){if(e&1&&(l(0,"div",5),E(1,$xt,3,3,"mat-checkbox",11),l(2,"h4",12),c(3),p(4,"translate"),p(5,"translate"),r(),b(6,"mifosx-gl-account-selector",13),l(7,"h4",12),c(8),p(9,"translate"),r(),b(10,"mifosx-gl-account-selector",13)(11,"mifosx-gl-account-selector",13),E(12,Uxt,4,12,"div",5),b(13,"mat-divider",4),l(14,"h4",12),c(15),p(16,"translate"),r(),b(17,"mifosx-gl-account-selector",13)(18,"mifosx-gl-account-selector",13)(19,"mifosx-gl-account-selector",13)(20,"mifosx-gl-account-selector",13)(21,"mifosx-gl-account-selector",13)(22,"mifosx-gl-account-selector",13)(23,"mifosx-gl-account-selector",13)(24,"mifosx-gl-account-selector",13)(25,"mifosx-gl-account-selector",13)(26,"mifosx-gl-account-selector",13),E(27,Wxt,1,4,"mifosx-gl-account-selector",13),E(28,Qxt,1,4,"mifosx-gl-account-selector",13),b(29,"mat-divider",4),l(30,"h4",12),c(31),p(32,"translate"),r(),b(33,"mifosx-gl-account-selector",13)(34,"mifosx-gl-account-selector",13)(35,"mifosx-gl-account-selector",13)(36,"mifosx-gl-account-selector",13),E(37,Yxt,1,4,"mifosx-gl-account-selector",13),b(38,"mat-divider",4),l(39,"h4",12),c(40),p(41,"translate"),r(),b(42,"mifosx-gl-account-selector",13),E(43,Jxt,1,4,"mifosx-gl-account-selector",13),b(44,"mat-divider",14),l(45,"mat-checkbox",15),c(46),p(47,"translate"),r(),E(48,Fbt,40,47,"div",5),r()),e&2){let t=w();a(),I(t.isAccountingAccrualBased?1:-1),a(2),le(" ",m(4,86,"labels.heading.Assets")," / ",m(5,88,"labels.heading.Liabilities")," "),a(3),g("inputFormControl",t.loanProductAccountingForm.controls.fundSourceAccountId)("glAccountList",t.assetAndLiabilityAccountData)("required",!0)("inputLabel","Fund source"),a(2),h(m(9,90,"labels.heading.Assets")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.loanPortfolioAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Loan portfolio"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Transfer in suspense"),a(),I(t.loanProductAccountingForm.value.accountingRule===3||t.loanProductAccountingForm.value.accountingRule===4?12:-1),a(3),h(m(16,92,"labels.heading.Income")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.interestOnLoanAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Interest"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromRecoveryAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Recovery Repayments"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromChargeOffInterestAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from ChargeOff Interest"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromChargeOffFeesAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from ChargeOff Fees"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromChargeOffPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from ChargeOff Penalty"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromGoodwillCreditInterestAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Goodwill Credit Interest"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromGoodwillCreditFeesAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Goodwill Credit Fees"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromGoodwillCreditPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Goodwill Credit Penalty"),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.capitalizedIncome==null)&&t.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization?27:-1),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.enableBuyDownFee?28:-1),a(3),h(m(32,94,"labels.heading.Expenses")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.writeOffAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Losses written off"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.goodwillCreditAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Expenses from Goodwill Credit"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.chargeOffExpenseAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","ChargeOff Expense"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.chargeOffFraudExpenseAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","ChargeOff Fraud Expense"),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.enableBuyDownFee&&(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee)?37:-1),a(3),h(m(41,96,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.overpaymentLiabilityAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Over payment liability"),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.capitalizedIncome==null)&&t.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization||!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.enableBuyDownFee?43:-1),a(3),h(m(47,98,"labels.heading.Advanced Accounting Rules")),a(2),I(t.loanProductAccountingForm.value.advancedAccountingRules?48:-1)}}var fm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.capitalizedIncomeClassificationOptions=[],this.buydownFeeClassificationOptions=[],this.writeOffReasonOptions=[],this.currentFormValues=[],this.allowAddChargeOffReasonExpense=!0,this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.chargeOffReasonExpenseDisplayedColumns=["chargeOffReasonCodeValueId","expenseAccountId","actions"],this.createLoanProductAccountingForm(),this.setConditionalControls()}ngOnChanges(t){this.setDeferredIncomeRecognitionControls()}ngOnInit(){this.chargeData=this.loanProductsTemplate.chargeOptions||[],this.penaltyData=this.loanProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.loanProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.loanProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.loanProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.loanProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.loanProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.incomeAndLiabilityAccountData=this.incomeAccountData.concat(this.liabilityAccountData),this.assetAndLiabilityAccountData=this.loanProductsTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions||[],this.chargeOffReasonOptions=this.loanProductsTemplate.chargeOffReasonOptions||[],this.capitalizedIncomeClassificationOptions=this.loanProductsTemplate.capitalizedIncomeClassificationOptions||[],this.buydownFeeClassificationOptions=this.loanProductsTemplate.buydownFeeClassificationOptions||[],this.writeOffReasonOptions=this.loanProductsTemplate.writeOffReasonOptions||[],this.loanProductAccountingForm.patchValue({accountingRule:this.loanProductsTemplate.accountingRule.id});let t=this.loanProductsTemplate.accountingMappings;switch(this.setDeferredIncomeRecognitionControls(),this.loanProductsTemplate.accountingRule.id){case 3:case 4:this.loanProductAccountingForm.patchValue({receivableInterestAccountId:t.receivableInterestAccount.id,receivableFeeAccountId:t.receivableFeeAccount.id,receivablePenaltyAccountId:t.receivablePenaltyAccount.id}),this.loanProductAccountingForm.patchValue({enableAccrualActivityPosting:this.loanProductsTemplate.enableAccrualActivityPosting}),this.deferredIncomeRecognition&&(this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization&&this.loanProductAccountingForm.patchValue({deferredIncomeLiabilityAccountId:t.deferredIncomeLiabilityAccount.id,incomeFromCapitalizationAccountId:t.incomeFromCapitalizationAccount.id}),this.deferredIncomeRecognition.buyDownFee?.enableBuyDownFee&&(this.loanProductAccountingForm.patchValue({deferredIncomeLiabilityAccountId:t.deferredIncomeLiabilityAccount.id,incomeFromBuyDownAccountId:t.incomeFromBuyDownAccount.id}),this.deferredIncomeRecognition.buyDownFee?.merchantBuyDownFee&&this.loanProductAccountingForm.patchValue({buyDownExpenseAccountId:t.buyDownExpenseAccount?.id})));case 2:this.loanProductAccountingForm.patchValue({fundSourceAccountId:t.fundSourceAccount.id,loanPortfolioAccountId:t.loanPortfolioAccount.id,transfersInSuspenseAccountId:t.transfersInSuspenseAccount.id,interestOnLoanAccountId:t.interestOnLoanAccount.id,incomeFromFeeAccountId:t.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:t.incomeFromPenaltyAccount.id,incomeFromRecoveryAccountId:t.incomeFromRecoveryAccount.id,writeOffAccountId:t.writeOffAccount.id,goodwillCreditAccountId:t.goodwillCreditAccount?.id||null,overpaymentLiabilityAccountId:t.overpaymentLiabilityAccount.id,chargeOffFraudExpenseAccountId:t.chargeOffFraudExpenseAccount?t.chargeOffFraudExpenseAccount.id:"",chargeOffExpenseAccountId:t.chargeOffExpenseAccount?t.chargeOffExpenseAccount.id:"",incomeFromChargeOffPenaltyAccountId:t.incomeFromChargeOffPenaltyAccount?t.incomeFromChargeOffPenaltyAccount.id:"",incomeFromChargeOffFeesAccountId:t.incomeFromChargeOffFeesAccount?t.incomeFromChargeOffFeesAccount.id:"",incomeFromChargeOffInterestAccountId:t.incomeFromChargeOffInterestAccount?t.incomeFromChargeOffInterestAccount.id:"",incomeFromGoodwillCreditInterestAccountId:t.incomeFromGoodwillCreditInterestAccount?t.incomeFromGoodwillCreditInterestAccount.id:"",incomeFromGoodwillCreditFeesAccountId:t.incomeFromGoodwillCreditFeesAccount?t.incomeFromGoodwillCreditFeesAccount.id:"",incomeFromGoodwillCreditPenaltyAccountId:t.incomeFromGoodwillCreditPenaltyAccount?t.incomeFromGoodwillCreditPenaltyAccount.id:"",advancedAccountingRules:!!(this.loanProductsTemplate.paymentChannelToFundSourceMappings||this.loanProductsTemplate.feeToIncomeAccountMappings||this.loanProductsTemplate.penaltyToIncomeAccountMappings||this.loanProductsTemplate.chargeOffReasonToExpenseAccountMappings||this.loanProductsTemplate.buydownFeeClassificationToIncomeAccountMappings||this.loanProductsTemplate.capitalizedIncomeClassificationToIncomeAccountMappings||this.loanProductsTemplate.writeOffReasonsToExpenseMappings)}),this.loanProductAccountingForm.setControl("paymentChannelToFundSourceMappings",this.formBuilder.array((this.loanProductsTemplate.paymentChannelToFundSourceMappings||[]).map(n=>({paymentTypeId:n.paymentType.id,fundSourceAccountId:n.fundSourceAccount.id})))),this.loanProductAccountingForm.setControl("feeToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.feeToIncomeAccountMappings||[]).map(n=>({chargeId:n.charge.id,incomeAccountId:n.incomeAccount.id})))),this.loanProductAccountingForm.setControl("penaltyToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.penaltyToIncomeAccountMappings||[]).map(n=>({chargeId:n.charge.id,incomeAccountId:n.incomeAccount.id})))),this.loanProductAccountingForm.setControl("chargeOffReasonToExpenseAccountMappings",this.formBuilder.array((this.loanProductsTemplate.chargeOffReasonToExpenseAccountMappings||[]).map(n=>({chargeOffReasonCodeValueId:n.reasonCodeValue.id,expenseAccountId:n.expenseAccount.id})))),this.loanProductAccountingForm.setControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.buydownFeeClassificationToIncomeAccountMappings||[]).map(n=>({value:n.classificationCodeValue,glAccount:n.incomeAccount})))),this.loanProductAccountingForm.setControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.capitalizedIncomeClassificationToIncomeAccountMappings||[]).map(n=>({value:n.classificationCodeValue,glAccount:n.incomeAccount})))),this.loanProductAccountingForm.setControl("writeOffReasonsToExpenseMappings",this.formBuilder.array((this.loanProductsTemplate.writeOffReasonsToExpenseMappings||[]).map(n=>({value:n.reasonCodeValue,glAccount:n.expenseAccount}))))}}createLoanProductAccountingForm(){this.loanProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}setConditionalControls(){this.loanProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t>=2&&t<=4?(this.loanProductAccountingForm.addControl("fundSourceAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("loanPortfolioAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("interestOnLoanAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromRecoveryAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("writeOffAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("goodwillCreditAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("overpaymentLiabilityAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),this.loanProductAccountingForm.addControl("chargeOffFraudExpenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("chargeOffExpenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromChargeOffPenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromChargeOffFeesAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromChargeOffInterestAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromGoodwillCreditInterestAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromGoodwillCreditFeesAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromGoodwillCreditPenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.loanProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("chargeOffReasonToExpenseAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("writeOffReasonsToExpenseMappings",this.formBuilder.array([]))):(this.loanProductAccountingForm.setControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("penaltyToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("chargeOffReasonToExpenseAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("writeOffReasonsToExpenseMappings",this.formBuilder.array([])))})):(this.loanProductAccountingForm.removeControl("fundSourceAccountId"),this.loanProductAccountingForm.removeControl("loanPortfolioAccountId"),this.loanProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.loanProductAccountingForm.removeControl("interestOnLoanAccountId"),this.loanProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.loanProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.loanProductAccountingForm.removeControl("incomeFromRecoveryAccountId"),this.loanProductAccountingForm.removeControl("writeOffAccountId"),this.loanProductAccountingForm.removeControl("goodwillCreditAccountId"),this.loanProductAccountingForm.removeControl("overpaymentLiabilityAccountId"),this.loanProductAccountingForm.removeControl("advancedAccountingRules"),this.loanProductAccountingForm.removeControl("chargeOffExpenseAccountId"),this.loanProductAccountingForm.removeControl("chargeOffFraudExpenseAccountId"),this.loanProductAccountingForm.removeControl("incomeFromChargeOffPenaltyAccountId"),this.loanProductAccountingForm.removeControl("incomeFromChargeOffFeesAccountId"),this.loanProductAccountingForm.removeControl("incomeFromChargeOffInterestAccountId"),this.loanProductAccountingForm.removeControl("incomeFromGoodwillCreditInterestAccountId"),this.loanProductAccountingForm.removeControl("incomeFromGoodwillCreditFeesAccountId"),this.loanProductAccountingForm.removeControl("incomeFromGoodwillCreditPenaltyAccountId")),t===3||t===4?(this.loanProductAccountingForm.addControl("receivableInterestAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("receivableFeeAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("receivablePenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("enableAccrualActivityPosting",new it(!1))):(this.loanProductAccountingForm.removeControl("receivableInterestAccountId"),this.loanProductAccountingForm.removeControl("receivableFeeAccountId"),this.loanProductAccountingForm.removeControl("receivablePenaltyAccountId"),this.loanProductAccountingForm.removeControl("enableAccrualActivityPosting"))})}get paymentChannelToFundSourceMappings(){return this.loanProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.loanProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.loanProductAccountingForm.get("penaltyToIncomeAccountMappings")}get chargeOffReasonToExpenseAccountMappings(){return this.loanProductAccountingForm.get("chargeOffReasonToExpenseAccountMappings")}get buydownfeeClassificationToIncomeAccountMappings(){return this.loanProductAccountingForm.get("buydownfeeClassificationToIncomeAccountMappings")}get capitalizedIncomeClassificationToIncomeAccountMappings(){return this.loanProductAccountingForm.get("capitalizedIncomeClassificationToIncomeAccountMappings")}get writeOffReasonsToExpenseMappings(){return this.loanProductAccountingForm.get("writeOffReasonsToExpenseMappings")}setLoanProductAccountingFormDirty(){this.loanProductAccountingForm.pristine&&this.loanProductAccountingForm.markAsDirty()}add(t,n){if(this.currentFormValues=[],t=="ChargeOffReasonExpense"&&(this.allowAddChargeOffReasonExpense=!0,n.value.forEach(d=>this.currentFormValues.push(d.chargeOffReasonCodeValueId)),this.chargeOffReasonOptions.length==this.currentFormValues.length)){this.allowAddChargeOffReasonExpense=!1;return}let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&(n.push(d.data),t=="ChargeOffReasonExpense"&&(this.allowAddChargeOffReasonExpense=n.value.length{u.data&&(n.at(i).patchValue(u.data.value),this.setLoanProductAccountingFormDirty())})}delete(t,n,i){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(d=>{d.delete&&(n.removeAt(i),t=="ChargeOffReasonExpense"&&(this.allowAddChargeOffReasonExpense=n.value.length!this.currentFormValues.includes(s.id));return[new $i({controlName:"chargeOffReasonCodeValueId",label:"Charge-off reason",value:t?t.chargeOffReasonCodeValueId:n[0].id,options:{label:"name",value:"id",data:n},required:!0,order:1}),new $i({controlName:"expenseAccountId",label:"Expense Account",value:t?t.expenseAccountId:this.expenseAccountData[0].id,options:{label:"name",value:"id",data:this.expenseAccountData},required:!0,order:2})]}get isAccountingAccrualBased(){let t=this.loanProductAccountingForm.value.accountingRule;return t===3||t===4}get loanProductAccounting(){return this.loanProductAccountingForm.value}setDeferredIncomeRecognitionControls(){this.isAccountingAccrualBased&&this.deferredIncomeRecognition&&(this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization||this.deferredIncomeRecognition.buyDownFee?.enableBuyDownFee?this.loanProductAccountingForm.addControl("deferredIncomeLiabilityAccountId",new it("",ce.required)):this.loanProductAccountingForm.removeControl("deferredIncomeLiabilityAccountId"),this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization?this.loanProductAccountingForm.addControl("incomeFromCapitalizationAccountId",new it("",ce.required)):this.loanProductAccountingForm.removeControl("incomeFromCapitalizationAccountId"),this.deferredIncomeRecognition.buyDownFee?.enableBuyDownFee?(this.deferredIncomeRecognition.buyDownFee?.merchantBuyDownFee&&this.loanProductAccountingForm.addControl("buyDownExpenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromBuyDownAccountId",new it("",ce.required))):(this.loanProductAccountingForm.removeControl("buyDownExpenseAccountId"),this.loanProductAccountingForm.removeControl("incomeFromBuyDownAccountId")))}formChangeEvent(t){t.formType==="BuydownFeeClassificationToIncome"?this.loanProductAccountingForm.setControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array((t.values||[]).map(n=>({classificationCodeValueId:n.value.id,incomeAccountId:n.glAccount.id})))):t.formType==="CapitalizedIncomeClassificationToIncome"?this.loanProductAccountingForm.setControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array((t.values||[]).map(n=>({classificationCodeValueId:n.value.id,incomeAccountId:n.glAccount.id})))):t.formType==="WriteOffReasonToExpense"&&this.loanProductAccountingForm.setControl("writeOffReasonsToExpenseMappings",this.formBuilder.array((t.values||[]).map(n=>({writeOffReasonCodeValueId:n.value.id,expenseAccountId:n.glAccount.id})))),this.setLoanProductAccountingFormDirty()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-accounting-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate",accountingRuleData:"accountingRuleData",loanProductFormValid:"loanProductFormValid",deferredIncomeRecognition:"deferredIncomeRecognition"},features:[Uo],decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-lt-md-column","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"layout-row","align-center","margin-t","responsive-column","gap-2percent"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["formControlName","enableAccrualActivityPosting",1,"flex-73"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],["fxFlex","flex-98"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"mat-h4","flex-33"],[1,"flex-63"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],[1,"flex-100","m-t-10",3,"formChangeEvent","textField","formType","formArray","textHeading","incomeAccountData","accountingMappingOptions"],[1,"flex-100","m-t-10",3,"formChangeEvent","textField","formType","formArray","textHeading","expenseAccountData","accountingMappingOptions"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"],["matColumnDef","chargeOffReasonCodeValueId"],["matColumnDef","expenseAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,jxt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,kbt,49,100,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.loanProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.loanProductAccountingForm.value.accountingRule>=2&&i.loanProductAccountingForm.value.accountingRule<=4?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.loanProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,Qy,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();function Bbt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}var hm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.supportedInterestRefundTypes=new bi,this.createLoanProductInterestRefundForm(),this.setConditionalControls()}ngOnInit(){this.supportedInterestRefundTypesOptions=this.loanProductsTemplate.supportedInterestRefundTypesOptions;let t=this.loanProductsTemplate.supportedInterestRefundTypes,n=this.mapStringEnumOptionToIdList(t);this.loanProductInterestRefundForm.patchValue({supportedInterestRefundTypes:n}),this.supportedInterestRefundTypes.emit(t)}createLoanProductInterestRefundForm(){this.loanProductInterestRefundForm=this.formBuilder.group({supportedInterestRefundTypes:""})}setConditionalControls(){this.loanProductInterestRefundForm.get("supportedInterestRefundTypes").valueChanges.subscribe(t=>{this.supportedInterestRefundTypes.emit(this.mapIdToStringEnumOptionList(t,this.loanProductsTemplate.supportedInterestRefundTypesOptions))})}mapStringEnumOptionToIdList(t){return t?t.map(n=>n.id):[]}mapIdToStringEnumOptionList(t,n){return n.filter(i=>t.includes(i.id))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-interest-refund-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},outputs:{supportedInterestRefundTypes:"supportedInterestRefundTypes"},decls:10,vars:8,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["multiple","","formControlName","supportedInterestRefundTypes",3,"matTooltip"],[3,"value"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,Bbt,3,5,"mat-option",4,Pe),r()()()()),n&2&&(g("formGroup",i.loanProductInterestRefundForm),a(4),h(m(5,4,"labels.inputs.Supported Interest Refund Types")),a(2),g("matTooltip",Le(m(7,6,"tooltips.Refund transactions where interest refund will automatically be calculated"))),a(2),we(i.supportedInterestRefundTypesOptions))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Fe,Be,gt,ft,si,he,ki],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var KK=(()=>{class e{static{this.DEFAULT_TRANSACTION={id:1,value:"Default",code:"DEFAULT"}}}return e})();var gm=(()=>{class e{buildAdvancedCreditAllocationList(t){let n=[],i=t.creditAllocationTransactionTypes,s=t.creditAllocationAllocationTypes;return t.creditAllocation&&t.creditAllocation.forEach(d=>{n.push({transaction:this.getItemByCode(d.transactionType,i),creditAllocationOrder:this.buildCurrentCreditAllocationOrder(d.creditAllocationOrder,s)})}),n}buildAdvancedPaymentAllocationList(t){let n=[],i=t.advancedPaymentAllocationTransactionTypes,s=t.advancedPaymentAllocationTypes,d=t.advancedPaymentAllocationFutureInstallmentAllocationRules;return t.paymentAllocation&&t.paymentAllocation.forEach(u=>{n.push({transaction:this.getItemByCode(u.transactionType,i),paymentAllocationOrder:this.buildCurrentPaymentAllocationOrder(u.paymentAllocationOrder,s),futureInstallmentAllocationRule:this.getItemByCode(u.futureInstallmentAllocationRule,d),futureInstallmentAllocationRules:d})}),n.length===0&&n.push({transaction:KK.DEFAULT_TRANSACTION,paymentAllocationOrder:this.buildPaymentAllocationTransactionOrder(!0,[],t.advancedPaymentAllocationTypes),futureInstallmentAllocationRule:t.advancedPaymentAllocationFutureInstallmentAllocationRules[0],futureInstallmentAllocationRules:t.advancedPaymentAllocationFutureInstallmentAllocationRules}),n}buildAdvancedPaymentAllocation(t,n,i,s){return{transaction:n,paymentAllocationOrder:this.buildPaymentAllocationTransactionOrder(t,i,i),futureInstallmentAllocationRule:s[0],futureInstallmentAllocationRules:s}}buildAdvancedCreditAllocation(t,n){return{transaction:t,creditAllocationOrder:this.buildCreditAllocationTransactionOrder(!0,n,n)}}buildPaymentAllocationTransactionOrder(t,n,i){let s=[];return t?i:(n.forEach(d=>{i.forEach(u=>{d.id===u.id&&s.push(u)})}),s)}buildCreditAllocationTransactionOrder(t,n,i){let s=[];return t?i:(n.forEach(d=>{i.forEach(u=>{d.id===u.id&&s.push(u)})}),s)}buildPaymentAllocations(t){let n=[];return t.forEach(i=>{i.paymentAllocationOrder&&n.push({transactionType:i.transaction.code,paymentAllocationOrder:this.buildPaymentAllocationOrder(i.paymentAllocationOrder),futureInstallmentAllocationRule:i.futureInstallmentAllocationRule.code})}),n}buildCreditAllocations(t){let n=[];return t.forEach(i=>{n.push({transactionType:i.transaction.code,creditAllocationOrder:this.buildCreditAllocationOrder(i.creditAllocationOrder)})}),n}buildPaymentAllocationOrder(t){let n=[];return t.forEach((i,s)=>{n.push({order:s+1,paymentAllocationRule:i.code})}),n}buildCreditAllocationOrder(t){let n=[];return t.forEach((i,s)=>{n.push({order:s+1,creditAllocationRule:i.code})}),n}buildCurrentPaymentAllocationOrder(t,n){let i=[];return t.forEach(s=>{i.push(this.getItemByCode(s.paymentAllocationRule,n))}),i}buildCurrentCreditAllocationOrder(t,n){let i=[];return t.forEach(s=>{i.push(this.getItemByCode(s.creditAllocationRule,n))}),i}getItemByCode(t,n){let i;return n.forEach(s=>{s.code===t&&(i=s)}),i}isDefault(t){return t.code===KK.DEFAULT_TRANSACTION.code}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Rbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Nbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",6),Se(5,Rbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Income capitalization calculation type")),a(3),we(t.capitalizedIncomeCalculationTypeOptions)}}function Lbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Vbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",8),Se(5,Lbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Income capitalization strategy")),a(3),we(t.capitalizedIncomeStrategyOptions)}}function qbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function zbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",9),Se(5,qbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Income type")),a(3),we(t.capitalizedIncomeTypeOptions)}}function Hbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Gbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Hbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Buy down fee calculation type")),a(3),we(t.buyDownFeeCalculationTypeOptions)}}function jbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function $bt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,jbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Buy down fee strategy")),a(3),we(t.buyDownFeeStrategyOptions)}}function Ubt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Wbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",12),Se(5,Ubt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Buy down fee income type")),a(3),we(t.buyDownFeeIncomeTypeOptions)}}function Qbt(e,o){e&1&&(l(0,"mat-checkbox",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Merchant Buy down fee")," "))}var _m=(()=>{class e{constructor(){this.formBuilder=T(nt),this.setViewChildForm=new bi,this.enableIncomeCapitalization=this.deferredIncomeRecognition!=null?this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization:!1,this.enableBuyDownFee=this.deferredIncomeRecognition!=null?this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee:!1,this.createCapitalizedIncomeForm(),this.setConditionalControls()}createCapitalizedIncomeForm(){this.loanDeferredIncomeRecognitionForm=this.formBuilder.group({enableIncomeCapitalization:[this.enableIncomeCapitalization],enableBuyDownFee:[this.enableBuyDownFee]}),this.enableIncomeCapitalization&&(this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeCalculationType",[this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeStrategy",[this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeType",[this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType,ce.required])),this.enableBuyDownFee&&(this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeCalculationType",[this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeStrategy",[this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeIncomeType",[this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("merchantBuyDownFee",[this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee]))}ngOnInit(){this.enableIncomeCapitalization=this.deferredIncomeRecognition.capitalizedIncome?this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization:!1,this.enableBuyDownFee=this.deferredIncomeRecognition.buyDownFee?this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee:!1,this.enableIncomeCapitalization&&this.loanDeferredIncomeRecognitionForm.patchValue({enableIncomeCapitalization:this.enableIncomeCapitalization,capitalizedIncomeCalculationType:this.deferredIncomeRecognition.capitalizedIncome?.capitalizedIncomeCalculationType,capitalizedIncomeStrategy:this.deferredIncomeRecognition.capitalizedIncome?.capitalizedIncomeStrategy,capitalizedIncomeType:this.deferredIncomeRecognition.capitalizedIncome?.capitalizedIncomeType}),this.enableBuyDownFee&&this.loanDeferredIncomeRecognitionForm.patchValue({enableBuyDownFee:this.enableBuyDownFee,buyDownFeeCalculationType:this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,buyDownFeeStrategy:this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,buyDownFeeIncomeType:this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,merchantBuyDownFee:this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee}),this.setViewChildForm.emit(this.loanDeferredIncomeRecognitionForm)}setConditionalControls(){this.loanDeferredIncomeRecognitionForm.get("enableIncomeCapitalization").valueChanges.subscribe(t=>{if(this.enableIncomeCapitalization=t,this.enableIncomeCapitalization){let n=!(this.deferredIncomeRecognition.capitalizedIncome&&this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType)||this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType==""?this.capitalizedIncomeCalculationTypeOptions[0].id:this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType;this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeCalculationType",new it(n,ce.required));let i=!this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy||this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy==""?this.capitalizedIncomeStrategyOptions[0].id:this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy;this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeStrategy",new it(i,ce.required));let s=!this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType||this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType==""?this.capitalizedIncomeTypeOptions[0].id:this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType;this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeType",new it(s,ce.required)),this.loanDeferredIncomeRecognitionForm.get("capitalizedIncomeCalculationType").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("capitalizedIncomeStrategy").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("capitalizedIncomeType").valueChanges.subscribe(d=>{this.emitValuesChange()})}else this.loanDeferredIncomeRecognitionForm.removeControl("capitalizedIncomeCalculationType"),this.loanDeferredIncomeRecognitionForm.removeControl("capitalizedIncomeStrategy"),this.loanDeferredIncomeRecognitionForm.removeControl("capitalizedIncomeType");this.emitValuesChange(),this.setViewChildForm.emit(this.loanDeferredIncomeRecognitionForm)}),this.loanDeferredIncomeRecognitionForm.get("enableBuyDownFee").valueChanges.subscribe(t=>{if(this.enableBuyDownFee=t,this.enableBuyDownFee){let n=!this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType||this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType==""?this.buyDownFeeCalculationTypeOptions[0].id:this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType;this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeCalculationType",new it(n,ce.required));let i=!this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy||this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy==""?this.buyDownFeeStrategyOptions[0].id:this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy;this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeStrategy",new it(i,ce.required));let s=!this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType||this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType==""?this.buyDownFeeIncomeTypeOptions[0].id:this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType;this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeIncomeType",new it(s,ce.required)),this.loanDeferredIncomeRecognitionForm.addControl("merchantBuyDownFee",new it(this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee)),this.loanDeferredIncomeRecognitionForm.get("buyDownFeeCalculationType").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("buyDownFeeStrategy").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("buyDownFeeIncomeType").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("merchantBuyDownFee").valueChanges.subscribe(d=>{this.emitValuesChange()})}else this.loanDeferredIncomeRecognitionForm.removeControl("buyDownFeeCalculationType"),this.loanDeferredIncomeRecognitionForm.removeControl("buyDownFeeStrategy"),this.loanDeferredIncomeRecognitionForm.removeControl("buyDownFeeIncomeType"),this.loanDeferredIncomeRecognitionForm.removeControl("merchantBuyDownFee");this.emitValuesChange()})}emitValuesChange(){this.setViewChildForm.emit(this.loanDeferredIncomeRecognitionForm)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-capitalized-income-step"]],inputs:{deferredIncomeRecognition:"deferredIncomeRecognition",capitalizedIncomeCalculationTypeOptions:"capitalizedIncomeCalculationTypeOptions",capitalizedIncomeStrategyOptions:"capitalizedIncomeStrategyOptions",capitalizedIncomeTypeOptions:"capitalizedIncomeTypeOptions",buyDownFeeCalculationTypeOptions:"buyDownFeeCalculationTypeOptions",buyDownFeeStrategyOptions:"buyDownFeeStrategyOptions",buyDownFeeIncomeTypeOptions:"buyDownFeeIncomeTypeOptions"},outputs:{setViewChildForm:"setViewChildForm"},decls:16,vars:14,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","layout-column-lt-md"],["labelPosition","before","formControlName","enableIncomeCapitalization",1,"flex-98"],[1,"flex-48"],["labelPosition","before","formControlName","enableBuyDownFee",1,"flex-98"],["labelPosition","before","formControlName","merchantBuyDownFee",1,"flex-48"],["formControlName","capitalizedIncomeCalculationType","required",""],[3,"value"],["formControlName","capitalizedIncomeStrategy","required",""],["formControlName","capitalizedIncomeType","required",""],["formControlName","buyDownFeeCalculationType","required",""],["formControlName","buyDownFeeStrategy","required",""],["formControlName","buyDownFeeIncomeType","required",""]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-checkbox",2),c(3),p(4,"translate"),r(),E(5,Nbt,7,3,"mat-form-field",3),E(6,Vbt,7,3,"mat-form-field",3),E(7,zbt,7,3,"mat-form-field",3),r(),l(8,"div",1)(9,"mat-checkbox",4),c(10),p(11,"translate"),r(),E(12,Gbt,7,3,"mat-form-field",3),E(13,$bt,7,3,"mat-form-field",3),E(14,Wbt,7,3,"mat-form-field",3),E(15,Qbt,3,3,"mat-checkbox",5),r()()),n&2&&(g("formGroup",i.loanDeferredIncomeRecognitionForm),a(3),v(" ",m(4,10,"labels.inputs.Enable income capitalization")," "),a(2),I(i.enableIncomeCapitalization?5:-1),a(),I(i.enableIncomeCapitalization?6:-1),a(),I(i.enableIncomeCapitalization?7:-1),a(3),v(" ",m(11,12,"labels.inputs.Enable Buy down fee")," "),a(2),I(i.enableBuyDownFee?12:-1),a(),I(i.enableBuyDownFee?13:-1),a(),I(i.enableBuyDownFee?14:-1),a(),I(i.enableBuyDownFee?15:-1))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Fe,Be,gt,ft,fi,he,ki],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Ybt=["table"];function Jbt(e,o){if(e&1){let t=Y();l(0,"div",3)(1,"button",7),R("click",function(){V(t);let i=w();return q(i.removeTransaction())}),b(2,"fa-icon",8),r()()}}function Kbt(e,o){e&1&&b(0,"th",17)}function Xbt(e,o){e&1&&(l(0,"td",18),b(1,"fa-icon",19),r())}function Zbt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Order")))}function eyt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.index;a(),h(t+1)}}function tyt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Allocation Rule")))}function iyt(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.value,"catalogs"))}}function nyt(e,o){e&1&&b(0,"tr",20)}function oyt(e,o){if(e&1&&b(0,"tr",21),e&2){let t=o.$implicit;g("cdkDragData",t)}}function ayt(e,o){if(e&1){let t=Y();l(0,"div",4)(1,"table",9,0),R("cdkDropListDropped",function(i){V(t);let s=w();return q(s.dropTable(i,!1))}),X(3,10),F(4,Kbt,1,0,"th",11)(5,Xbt,2,0,"td",12),Z(),X(6,13),F(7,Zbt,3,3,"th",11)(8,eyt,2,1,"td",12),Z(),X(9,14),F(10,tyt,3,3,"th",11)(11,iyt,3,4,"td",12),Z(),F(12,nyt,1,0,"tr",15)(13,oyt,1,1,"tr",16),r()()}if(e&2){let t=w();a(),g("dataSource",t.paymentAllocationsData)("cdkDropListData",t.paymentAllocationsData),a(11),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function ryt(e,o){e&1&&b(0,"th",17)}function lyt(e,o){e&1&&(l(0,"td",18),b(1,"fa-icon",19),r())}function syt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Order")))}function cyt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.index;a(),h(t+1)}}function pyt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit Allocation Rule")))}function myt(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.value,"catalogs"))}}function dyt(e,o){e&1&&b(0,"tr",20)}function uyt(e,o){if(e&1&&b(0,"tr",21),e&2){let t=o.$implicit;g("cdkDragData",t)}}function fyt(e,o){if(e&1){let t=Y();l(0,"div",5)(1,"table",9,0),R("cdkDropListDropped",function(i){V(t);let s=w();return q(s.dropTable(i,!0))}),X(3,10),F(4,ryt,1,0,"th",11)(5,lyt,2,0,"td",12),Z(),X(6,13),F(7,syt,3,3,"th",11)(8,cyt,2,1,"td",12),Z(),X(9,14),F(10,pyt,3,3,"th",11)(11,myt,3,4,"td",12),Z(),F(12,dyt,1,0,"tr",15)(13,uyt,1,1,"tr",16),r()()}if(e&2){let t=w();a(),g("dataSource",t.creditAllocationsData)("cdkDropListData",t.creditAllocationsData),a(11),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function hyt(e,o){if(e&1&&(l(0,"mat-option",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function gyt(e,o){if(e&1&&(l(0,"mat-form-field",6)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",22),Se(5,hyt,3,5,"mat-option",23,Pe),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Future Installment Allocation Rule")),a(2),g("formControl",t.futureInstallmentAllocationRule),a(),we(t.advancedPaymentAllocation.futureInstallmentAllocationRules)}}var Yy=(()=>{class e{constructor(){this.dialog=T(Ht),this.advancedPaymentStrategy=T(gm),this.translateService=T(yi),this.allocationChanged=new bi,this.transactionTypeRemoved=new bi,this.paymentAllocationsData=null,this.creditAllocationsData=null,this.displayedColumns=["actions","order","allocationRule"],this.futureInstallmentAllocationRule=new it("",ce.required)}ngOnInit(){this.advancedCreditAllocation&&(this.creditAllocationsData=this.advancedCreditAllocation?.creditAllocationOrder),this.advancedPaymentAllocation&&(this.paymentAllocationsData=this.advancedPaymentAllocation?.paymentAllocationOrder,this.advancedPaymentAllocation.futureInstallmentAllocationRule&&this.futureInstallmentAllocationRule.patchValue(this.advancedPaymentAllocation.futureInstallmentAllocationRule.code),this.futureInstallmentAllocationRule.valueChanges.subscribe(t=>{this.advancedPaymentAllocation.futureInstallmentAllocationRules.forEach(n=>{t===n.code&&(this.advancedPaymentAllocation.futureInstallmentAllocationRule=n,this.allocationChanged.emit(!0))})}))}dropTable(t,n){if(n){let i=this.creditAllocationsData.findIndex(s=>s===t.item.data);Os(this.creditAllocationsData,i,t.currentIndex),this.creditAllocationsData=[...this.creditAllocationsData],this.advancedCreditAllocation.creditAllocationOrder=this.creditAllocationsData,this.table.renderRows(),this.allocationChanged.emit(!0)}else{let i=this.paymentAllocationsData.findIndex(s=>s===t.item.data);Os(this.paymentAllocationsData,i,t.currentIndex),this.paymentAllocationsData=[...this.paymentAllocationsData],this.advancedPaymentAllocation.paymentAllocationOrder=this.paymentAllocationsData,this.table.renderRows(),this.allocationChanged.emit(!0)}}isDefault(){return this.advancedPaymentAllocation&&this.advancedPaymentAllocation.transaction?this.advancedPaymentStrategy.isDefault(this.advancedPaymentAllocation.transaction):!1}removeTransaction(){let t=null;this.advancedPaymentAllocation&&this.advancedPaymentAllocation.transaction?t=this.advancedPaymentAllocation.transaction:this.advancedCreditAllocation&&this.advancedCreditAllocation.transaction&&(t=this.advancedCreditAllocation.transaction,t.credit=!0),this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.dialogContext.the Transaction Type")+" "+t.value}}).afterClosed().subscribe(i=>{i.delete&&this.transactionTypeRemoved.emit(t)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-advance-payment-allocation-tab"]],viewQuery:function(n,i){if(n&1&&Ee(Ybt,5),n&2){let s;Te(s=Me())&&(i.table=s.first)}},inputs:{advancedPaymentAllocation:"advancedPaymentAllocation",advancedCreditAllocation:"advancedCreditAllocation"},outputs:{allocationChanged:"allocationChanged",transactionTypeRemoved:"transactionTypeRemoved"},decls:8,vars:7,consts:[["table",""],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"m-b-15","right","flex-90"],[1,"right","flex-4"],[1,"mat-elevation-z8","container","m-t-15"],[1,"mat-elevation-z8","container","m-t-15","m-b-15"],[1,"m-t-20","flex-33"],["mat-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-table","","cdkDropList","",3,"cdkDropListDropped","dataSource","cdkDropListData"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","order"],["matColumnDef","allocationRule"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","cdkDrag","",3,"cdkDragData",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["icon","bars"],["mat-header-row",""],["mat-row","","cdkDrag","",3,"cdkDragData"],[3,"formControl"],[3,"value"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"h4",2),c(2),p(3,"translate"),r(),E(4,Jbt,3,0,"div",3),E(5,ayt,14,4,"div",4),E(6,fyt,14,4,"div",5),E(7,gyt,7,4,"mat-form-field",6),r()),n&2&&(a(2),v(" ",m(3,5,"labels.heading.You can drag and drop the rows to set a Payment Allocations order")," "),a(2),I(i.isDefault()?-1:4),a(),I(i.paymentAllocationsData?5:-1),a(),I(i.creditAllocationsData?6:-1),a(),I(i.advancedPaymentAllocation&&i.advancedPaymentAllocation.futureInstallmentAllocationRules?7:-1))},dependencies:[ue,fe,$e,_n,Fe,Be,gt,ft,xe,ke,_t,Tp,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pp,he,ki],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}tr[_ngcontent-%COMP%]:hover{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;display:table;background-color:#fff}.cdk-drag-preview[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{flex-grow:2;font-size:14px;padding:4px;vertical-align:middle}.cdk-drag-placeholder[_ngcontent-%COMP%]{background-color:#4461e2;opacity:.2}.cdk-drag-animating[_ngcontent-%COMP%]{cursor:move;transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}}return e})();function _yt(e,o){if(e&1&&(c(0),p(1,"translateKey")),e&2){let t=w().$implicit;v(" ",Ft(1,1,t.transaction.value,"catalogs")," ")}}function Cyt(e,o){if(e&1){let t=Y();l(0,"mat-tab"),F(1,_yt,2,4,"ng-template",1),l(2,"mifosx-advance-payment-allocation-tab",3),R("allocationChanged",function(i){V(t);let s=w();return q(s.allocationChanged(i))})("transactionTypeRemoved",function(i){V(t);let s=w();return q(s.transactionTypeRemoved(i))}),r()()}if(e&2){let t=o.$implicit;a(2),g("advancedPaymentAllocation",t)}}function vyt(e,o){if(e&1&&(c(0),p(1,"translateKey")),e&2){let t=w().$implicit;v(" ",Ft(1,1,t.transaction.value,"catalogs")," ")}}function xyt(e,o){if(e&1){let t=Y();l(0,"mat-tab"),F(1,vyt,2,4,"ng-template",1),l(2,"mifosx-advance-payment-allocation-tab",4),R("allocationChanged",function(i){V(t);let s=w();return q(s.allocationChanged(i))})("transactionTypeRemoved",function(i){V(t);let s=w();return q(s.transactionTypeRemoved(i))}),r()()}if(e&2){let t=o.$implicit;a(2),g("advancedCreditAllocation",t)}}function byt(e,o){if(e&1){let t=Y();l(0,"button",5),R("click",function(i){return V(t),w().addTransaction(),q(i.stopPropagation())}),l(1,"mat-icon"),b(2,"fa-icon",6),r()()}}function yyt(e,o){}var Iu=(()=>{class e{constructor(){this.dialog=T(Ht),this.advancedPaymentStrategy=T(gm),this.translateService=T(yi),this.advancedPaymentAllocations=[],this.advancedCreditAllocations=[],this.advancedPaymentAllocationTransactionTypes=[],this.advancedCreditAllocationTransactionTypes=[],this.paymentAllocationChange=new bi,this.setPaymentAllocation=new bi,this.setCreditAllocation=new bi}ngOnInit(){this.sendAllocations()}sendAllocations(){this.setPaymentAllocation.emit(this.advancedPaymentStrategy.buildPaymentAllocations(this.advancedPaymentAllocations)),this.setCreditAllocation.emit(this.advancedPaymentStrategy.buildCreditAllocations(this.advancedCreditAllocations))}allocationChanged(t){this.paymentAllocationChange.emit(t),this.sendAllocations()}addTransaction(){let t=[];this.advancedPaymentAllocations.forEach(u=>{t.push(u.transaction.code)}),this.advancedCreditAllocations.forEach(u=>{t.push(u.transaction.code)});let n=[];this.advancedPaymentAllocationTransactionTypes.forEach(u=>{!this.advancedPaymentStrategy.isDefault(u)&&t.indexOf(u.code)<0&&(u.credit=!1,u.value=this.translateService.instant("labels.catalogs."+u.value),n.push(u))}),this.advancedCreditAllocationTransactionTypes.forEach(u=>{t.indexOf(u.code)<0&&(u.credit=!0,u.value=this.translateService.instant("labels.catalogs."+u.value),n.push(u))});let i=[new $i({controlName:"code",label:this.translateService.instant("labels.inputs.Transaction Type"),options:{label:"value",value:"code",data:n},order:1})],s={title:this.translateService.instant("labels.inputs.Advanced Payment Allocation Transaction Type"),layout:{addButtonText:this.translateService.instant("labels.buttons.Add"),cancelButtonText:this.translateService.instant("labels.buttons.Cancel")},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){let f=this.advancedPaymentAllocations[0];n.forEach(_=>{_.code===u.data.value.code&&(_.credit?this.advancedCreditAllocations.push(this.advancedPaymentStrategy.buildAdvancedCreditAllocation(_,this.creditAllocationOrderDefault)):this.advancedPaymentAllocations.push(this.advancedPaymentStrategy.buildAdvancedPaymentAllocation(!0,_,this.paymentAllocationOrderDefault,f.futureInstallmentAllocationRules)),this.paymentAllocationChange.emit(!0),this.sendAllocations())})}})}transactionTypeRemoved(t){t.credit?this.advancedCreditAllocations.forEach((n,i)=>{n.transaction.code===t.code&&(this.advancedCreditAllocations.splice(i,1),this.paymentAllocationChange.emit(!0),this.tabGroup.selectedIndex=i-1,this.sendAllocations())}):this.advancedPaymentAllocations.forEach((n,i)=>{n.transaction.code===t.code&&(this.advancedPaymentAllocations.splice(i,1),this.paymentAllocationChange.emit(!0),this.tabGroup.selectedIndex=i-1,this.sendAllocations())})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-payment-strategy-step"]],viewQuery:function(n,i){if(n&1&&Ee(Nr,5),n&2){let s;Te(s=Me())&&(i.tabGroup=s.first)}},inputs:{advancedPaymentAllocations:"advancedPaymentAllocations",advancedCreditAllocations:"advancedCreditAllocations",advancedPaymentAllocationTransactionTypes:"advancedPaymentAllocationTransactionTypes",paymentAllocationOrderDefault:"paymentAllocationOrderDefault",advancedCreditAllocationTransactionTypes:"advancedCreditAllocationTransactionTypes",creditAllocationOrderDefault:"creditAllocationOrderDefault"},outputs:{paymentAllocationChange:"paymentAllocationChange",setPaymentAllocation:"setPaymentAllocation",setCreditAllocation:"setCreditAllocation"},decls:8,vars:0,consts:[["animationDuration","0ms",1,"layout-row-wrap","gap-2percent","layout-lt-md-column"],["mat-tab-label",""],["matTabContent",""],[3,"allocationChanged","transactionTypeRemoved","advancedPaymentAllocation"],[3,"allocationChanged","transactionTypeRemoved","advancedCreditAllocation"],["mat-icon-button","","type","button",3,"click"],["icon","plus","size","sm"]],template:function(n,i){n&1&&(l(0,"mat-tab-group",0),Se(1,Cyt,3,1,"mat-tab",null,Pe),Se(3,xyt,3,1,"mat-tab",null,Pe),l(5,"mat-tab"),F(6,byt,3,0,"ng-template",1)(7,yyt,0,0,"ng-template",2),r()()),n&2&&(a(),we(i.advancedPaymentAllocations),a(2),we(i.advancedCreditAllocations))},dependencies:[ue,fe,Nr,Qr,_k,Yy,wi,Yo,ke,gk,ki],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366} .mat-tab-body-wrapper{width:96%;margin:auto} .mat-tab-label.mat-tab-disabled{padding:0;margin:0;justify-content:left;color:#4461e2}"]})}}return e})();function Syt(e,o){if(e&1&&(l(0,"tr")(1,"td"),c(2),r(),l(3,"td"),c(4),p(5,"translateKey"),r()()),e&2){let t=o.$implicit,n=o.$index,i=w(2);a(2),h(n+1),a(2),h(Ft(5,2,i.allocationRuleValue(t.paymentAllocationRule),"catalogs"))}}function wyt(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"div",0)(4,"span",1),c(5),p(6,"translate"),r(),l(7,"span",2),c(8),r()()()(),l(9,"div",0)(10,"div",0)(11,"span",1),c(12),p(13,"translate"),r(),l(14,"span",2),c(15),p(16,"translateKey"),r()(),l(17,"div",0)(18,"span",1),c(19),p(20,"translate"),r(),l(21,"span",2)(22,"table")(23,"thead")(24,"tr")(25,"th"),c(26),p(27,"translate"),r(),l(28,"th"),c(29),p(30,"translate"),r()()(),l(31,"tbody"),Se(32,Syt,6,5,"tr",null,Pe),r()()()()()()),e&2){let t=w();a(5),v("",m(6,7,"labels.inputs.Transaction Type"),":"),a(3),h(t.transactionTypeValue(t.paymentAllocation.transactionType)),a(4),v("",m(13,9,"labels.inputs.Future Installment Allocation Rule"),":"),a(3),h(Ft(16,11,t.futureInstallmentRuleValue(t.paymentAllocation.futureInstallmentAllocationRule),"catalogs")),a(4),h(m(20,14,"labels.inputs.Payment Allocation Order")),a(7),h(m(27,16,"labels.inputs.Order")),a(3),h(m(30,18,"labels.inputs.Payment Allocation Rule")),a(3),we(t.paymentAllocation.paymentAllocationOrder)}}function Pyt(e,o){if(e&1&&(l(0,"tr")(1,"td"),c(2),r(),l(3,"td"),c(4),p(5,"translateKey"),r()()),e&2){let t=o.$implicit,n=o.$index,i=w(2);a(2),h(n+1),a(2),h(Ft(5,2,i.allocationRuleValue(t.creditAllocationRule),"catalogs"))}}function Tyt(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"div",0)(4,"span",1),c(5),p(6,"translate"),r(),l(7,"span",2),c(8),r()()()(),l(9,"div",0)(10,"div",0)(11,"span",1),c(12),p(13,"translate"),r(),l(14,"span",2)(15,"table")(16,"thead")(17,"tr")(18,"th"),c(19),p(20,"translate"),r(),l(21,"th"),c(22),p(23,"translate"),r()()(),l(24,"tbody"),Se(25,Pyt,6,5,"tr",null,Pe),r()()()()()()),e&2){let t=w();a(5),v("",m(6,5,"labels.inputs.Transaction Type"),":"),a(3),h(t.transactionTypeValue(t.creditAllocation.transactionType)),a(4),h(m(13,7,"labels.inputs.Credit Allocation Order")),a(7),h(m(20,9,"labels.inputs.Order")),a(3),h(m(23,11,"labels.inputs.Credit Allocation Rule")),a(3),we(t.creditAllocation.creditAllocationOrder)}}var Jy=(()=>{class e{constructor(){}transactionTypeValue(t){return this.advancePaymentAllocationData==null?t:this.advancePaymentAllocationData.transactionTypes.find(i=>i.code===t).value}allocationRuleValue(t){return this.advancePaymentAllocationData==null?t:this.advancePaymentAllocationData.allocationTypes.find(i=>i.code===t).value}futureInstallmentRuleValue(t){return this.advancePaymentAllocationData==null?t:this.advancePaymentAllocationData.futureInstallmentAllocationRules.find(i=>i.code===t).value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-advance-paymeny-allocation"]],inputs:{paymentAllocation:"paymentAllocation",creditAllocation:"creditAllocation",advancePaymentAllocationData:"advancePaymentAllocationData"},decls:2,vars:2,consts:[[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"]],template:function(n,i){n&1&&(E(0,wyt,34,20,"mat-expansion-panel"),E(1,Tyt,27,13,"mat-expansion-panel")),n&2&&(I(i.paymentAllocation?0:-1),a(),I(i.creditAllocation?1:-1))},dependencies:[ue,fe,Pr,Tr,Mr,he,ki],encapsulation:2})}}return e})();function Myt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.External Id"),":"),a(3),h(t.loanProduct.externalId)}}function Dyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Fund"),":"),a(3),h(t.loanProduct.fundName)}}function Eyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Start Date"),":"),a(3),h(m(6,4,t.loanProduct.startDate))}}function Iyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Close Date"),":"),a(3),h(m(6,4,t.loanProduct.closeDate))}}function Oyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.loanProduct.description)}}function Ayt(e,o){if(e&1&&(l(0,"span",6),c(1),p(2,"formatNumber"),r()),e&2){let t=w(3);a(),v("",Ft(2,1,t.loanProduct.overAppliedNumber,0)," %")}}function Fyt(e,o){if(e&1&&(l(0,"span",6),c(1),p(2,"formatNumber"),r()),e&2){let t=w(3);a(),le("",m(2,2,t.loanProduct.overAppliedNumber)," ",t.loanProduct.currencyCode)}}function kyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),E(4,Ayt,3,4,"span",6),E(5,Fyt,3,4,"span",6),r()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Over Amount"),":"),a(2),I(t.loanProduct.overAppliedCalculationType==="percentage"?4:-1),a(),I(t.loanProduct.overAppliedCalculationType==="flat"?5:-1)}}function Byt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Nominal interest rate"),":"),a(3),le("",t.loanProduct.interestRatePerPeriod+" (Min: "+(t.loanProduct.minInterestRatePerPeriod?t.loanProduct.minInterestRatePerPeriod:t.loanProduct.interestRatePerPeriod)+", Max: "+(t.loanProduct.maxInterestRatePerPeriod?t.loanProduct.maxInterestRatePerPeriod:t.loanProduct.interestRatePerPeriod)+")"," ",Ft(6,5,t.loanProduct.interestRateFrequencyType==null?null:t.loanProduct.interestRateFrequencyType.value,"catalogs"))}}function Ryt(e,o){if(e&1&&(l(0,"div")(1,"div",9)(2,"span",5),c(3),p(4,"translate"),r(),l(5,"span",6),c(6),r()(),l(7,"div",9)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),r()(),l(13,"div",9)(14,"span",5),c(15),p(16,"translate"),r(),l(17,"span",6),c(18),p(19,"yesNo"),r()(),l(20,"div",9)(21,"span",5),c(22),p(23,"translate"),r(),l(24,"span",6),c(25),r()()()),e&2){let t=w(2);a(3),v("",m(4,8,"labels.inputs.Floating Lending Interest Rate"),":"),a(3),h(t.loanProduct.floatingRateName),a(3),v("",m(10,10,"labels.inputs.Interest Rate Differential"),":"),a(3),h(t.loanProduct.interestRateDifferential),a(3),v("",m(16,12,"labels.inputs.Floating Interest Rate Calculation Allowed"),":"),a(3),h(m(19,14,t.loanProduct.isFloatingInterestRateCalculationAllowed)),a(4),v("",m(23,16,"labels.inputs.Floating Interest Rate"),":"),a(3),h(t.loanProduct.defaultDifferentialLendingRate+" (Min: "+(t.loanProduct.minDifferentialLendingRate?t.loanProduct.minDifferentialLendingRate:t.loanProduct.defaultDifferentialLendingRate)+", Max: "+(t.loanProduct.maxDifferentialLendingRate?t.loanProduct.maxDifferentialLendingRate:t.loanProduct.defaultDifferentialLendingRate)+")")}}function Nyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function Lyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.valueConditionType.value,"catalogs")," ")}}function Vyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function qyt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function zyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function Hyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.minValue)," ")}}function Gyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function jyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.defaultValue)," ")}}function $yt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function Uyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.maxValue)," ")}}function Wyt(e,o){e&1&&b(0,"tr",27)}function Qyt(e,o){e&1&&b(0,"tr",28)}function Yyt(e,o){if(e&1&&(l(0,"div",4)(1,"h4",14),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,16),F(6,Nyt,3,3,"th",17)(7,Lyt,3,4,"td",18),Z(),X(8,19),F(9,Vyt,3,3,"th",17)(10,qyt,2,1,"td",18),Z(),X(11,20),F(12,zyt,3,3,"th",17)(13,Hyt,3,3,"td",18),Z(),X(14,21),F(15,Gyt,3,3,"th",17)(16,jyt,3,3,"td",18),Z(),X(17,22),F(18,$yt,3,3,"th",17)(19,Uyt,3,3,"td",18),Z(),F(20,Wyt,1,0,"tr",23)(21,Qyt,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Principal by loan cycle")),a(2),g("dataSource",t.loanProduct.principalVariationsForBorrowerCycle),a(16),g("matHeaderRowDef",t.variationsDisplayedColumns),a(),g("matRowDefColumns",t.variationsDisplayedColumns)}}function Jyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function Kyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.valueConditionType.value,"catalogs")," ")}}function Xyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function Zyt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function e3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function t3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function i3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function n3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function o3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function a3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function r3t(e,o){e&1&&b(0,"tr",27)}function l3t(e,o){e&1&&b(0,"tr",28)}function s3t(e,o){if(e&1&&(l(0,"div",7)(1,"h4",14),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,16),F(6,Jyt,3,3,"th",17)(7,Kyt,3,4,"td",18),Z(),X(8,19),F(9,Xyt,3,3,"th",17)(10,Zyt,2,1,"td",18),Z(),X(11,20),F(12,e3t,3,3,"th",17)(13,t3t,2,1,"td",18),Z(),X(14,21),F(15,i3t,3,3,"th",17)(16,n3t,2,1,"td",18),Z(),X(17,22),F(18,o3t,3,3,"th",17)(19,a3t,2,1,"td",18),Z(),F(20,r3t,1,0,"tr",23)(21,l3t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Number of Repayments by loan cycle")),a(2),g("dataSource",t.loanProduct.numberOfRepaymentVariationsForBorrowerCycle),a(16),g("matHeaderRowDef",t.variationsDisplayedColumns),a(),g("matRowDefColumns",t.variationsDisplayedColumns)}}function c3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function p3t(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.valueConditionType.value,"catalogs")," ")}}function m3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function d3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function u3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function f3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function h3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function g3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function _3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function C3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function v3t(e,o){e&1&&b(0,"tr",27)}function x3t(e,o){e&1&&b(0,"tr",28)}function b3t(e,o){if(e&1&&(l(0,"div",7)(1,"h4",14),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,16),F(6,c3t,3,3,"th",17)(7,p3t,3,4,"td",18),Z(),X(8,19),F(9,m3t,3,3,"th",17)(10,d3t,2,1,"td",18),Z(),X(11,20),F(12,u3t,3,3,"th",17)(13,f3t,2,1,"td",18),Z(),X(14,21),F(15,h3t,3,3,"th",17)(16,g3t,2,1,"td",18),Z(),X(17,22),F(18,_3t,3,3,"th",17)(19,C3t,2,1,"td",18),Z(),F(20,v3t,1,0,"tr",23)(21,x3t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Nominal Interest Rate by loan cycle")),a(2),g("dataSource",t.loanProduct.interestRateVariationsForBorrowerCycle),a(16),g("matHeaderRowDef",t.variationsDisplayedColumns),a(),g("matRowDefColumns",t.variationsDisplayedColumns)}}function y3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Fixed Length"),":"),a(3),le("",t.loanProduct.fixedLength," ",Ft(6,5,t.loanProduct.repaymentFrequencyType.value,"catalogs"))}}function S3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Minimum days between disbursal and first repayment date"),":"),a(3),h(m(6,4,t.loanProduct.minimumDaysBetweenDisbursalAndFirstRepayment))}}function w3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Amortization"),":"),a(3),h(Ft(6,4,t.loanProduct.amortizationType.value,"catalogs"))}}function P3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Loan Schedule Processing Type"),":"),a(3),h(t.loanProduct.loanScheduleProcessingType.value)}}function T3t(e,o){if(e&1&&b(0,"mifosx-view-advance-paymeny-allocation",29),e&2){let t=o.$implicit,n=w(3);g("paymentAllocation",t)("advancePaymentAllocationData",n.advancePaymentAllocationData)}}function M3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6)(5,"mat-accordion"),Se(6,T3t,1,2,"mifosx-view-advance-paymeny-allocation",29,Pe),r()()()),e&2){let t=w(2);a(2),v("",m(3,1,"labels.inputs.Advanced Payment Allocation Transactions"),":"),a(4),we(t.paymentAllocations)}}function D3t(e,o){if(e&1&&b(0,"mifosx-view-advance-paymeny-allocation",30),e&2){let t=o.$implicit,n=w(3);g("creditAllocation",t)("advancePaymentAllocationData",n.advancePaymentAllocationData)}}function E3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6)(5,"mat-accordion"),Se(6,D3t,1,2,"mifosx-view-advance-paymeny-allocation",30,Pe),r()()()),e&2){let t=w(2);a(2),v("",m(3,1,"labels.inputs.Advanced Credit Allocation Transactions"),":"),a(4),we(t.creditAllocations)}}function I3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Supported Interest Refund Types"),":"),a(3),v(" ",t.mapHumanReadableValueStringEnumOptionDataList(t.supportedInterestRefundTypes)," ")}}function O3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Disbursed Amount Percentage Down Payment")," (%):"),a(3),v("",t.loanProduct.disbursedAmountPercentageForDownPayment," %")}}function A3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Enable Auto Repayment for Down Payment"),":"),a(3),h(m(6,4,t.loanProduct.enableAutoRepaymentForDownPayment))}}function F3t(e,o){if(e&1&&(l(0,"div",10)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"div",13)(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),p(11,"translateKey"),r()()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Loan Charge-off behaviour")),a(2),g("inset",!0),a(3),v("",m(8,6,"labels.inputs.Loan Charge-off behaviour"),":"),a(3),h(Ft(11,8,t.loanProduct.chargeOffBehaviour.value,"catalogs"))}}function k3t(e,o){if(e&1&&(l(0,"span",6),c(1),r()),e&2){let t=w(3);a(),h(t.loanProduct.delinquencyBucket.name)}}function B3t(e,o){e&1&&(l(0,"span",6),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unassigned")))}function R3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),E(4,k3t,2,1,"span",6),E(5,B3t,3,3,"span",6),r()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Delinquency Bucket"),":"),a(2),I(t.loanProduct.delinquencyBucket.name?4:-1),a(),I(t.loanProduct.delinquencyBucket.name?-1:5)}}function N3t(e,o){e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translate"),r()()),e&2&&(a(2),v("",m(3,2,"labels.inputs.Delinquency Bucket"),":"),a(3),h(m(6,4,"labels.inputs.Unassigned")))}function L3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Enable installment level Delinquency"),":"),a(3),h(m(6,4,t.loanProduct.enableInstallmentLevelDelinquency))}}function V3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Grace on principal payment"),":"),a(3),h(t.loanProduct.graceOnPrincipalPayment)}}function q3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Grace on interest payment"),":"),a(3),h(t.loanProduct.graceOnInterestPayment)}}function z3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Interest free period"),":"),a(3),h(t.loanProduct.graceOnInterestCharged)}}function H3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Arrears tolerance"),":"),a(3),h(t.loanProduct.inArrearsTolerance)}}function G3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Days in year custom strategy"),":"),a(3),h(Ft(6,4,t.loanProduct.daysInYearCustomStrategy.value,"catalogs"))}}function j3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Number of days a loan may be overdue before moving into arrears"),":"),a(3),h(t.loanProduct.graceOnArrearsAgeing)}}function $3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Maximum number of days a loan may be overdue before becoming a NPA (non performing asset)"),":"),a(3),h(t.loanProduct.overdueDaysForNPA)}}function U3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Principal Threshold (%) for Last Instalment"),":"),a(3),h(t.loanProduct.principalThresholdForLastInstallment)}}function W3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Variable Installments"),":"),a(3),h("(Min: "+t.loanProduct.minimumGap+", Max: "+(t.loanProduct.maximumGap?t.loanProduct.maximumGap:t.loanProduct.minimumGap)+")")}}function Q3t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(4);a(),v("\xA0\xA0","on "+(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyNthDay==null?null:t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyNthDay.value))}}function Y3t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(4);a(),v("\xA0\xA0",t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyWeekday==null?null:t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value)}}function J3t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(4);a(),v("\xA0\xA0","on day "+t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyOnDay)}}function K3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(4);a(2),v("",m(3,2,"labels.inputs.Frequency Interval for compounding"),":"),a(3),h(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyInterval)}}function X3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),E(6,Q3t,2,1,"span"),E(7,Y3t,2,1,"span"),E(8,J3t,2,1,"span"),r(),E(9,K3t,6,4,"div",9),r()),e&2){let t=w(3);a(2),v("",m(3,6,"labels.inputs.Frequency for compounding"),":"),a(3),v(" ",t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.value," "),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyNthDay?6:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&!t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyOnDay||t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===3?7:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyOnDay?8:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id!==1?9:-1)}}function Z3t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(3);a(),v("\xA0\xA0","on "+(t.loanProduct.interestRecalculationData.recalculationRestFrequencyNthDay==null?null:t.loanProduct.interestRecalculationData.recalculationRestFrequencyNthDay.value))}}function eSt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(3);a(),v("\xA0\xA0",t.loanProduct.interestRecalculationData.recalculationRestFrequencyWeekday==null?null:t.loanProduct.interestRecalculationData.recalculationRestFrequencyWeekday.value)}}function tSt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(3);a(),v("\xA0\xA0","on day "+t.loanProduct.interestRecalculationData.recalculationRestFrequencyOnDay)}}function iSt(e,o){if(e&1&&(l(0,"div",7)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(4);a(2),v("",m(3,2,"labels.inputs.Rest Frequency Date"),":"),a(3),h(t.loanProduct.interestRecalculationData.recalculationRestFrequencyDate)}}function nSt(e,o){if(e&1&&(l(0,"div",10)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r(),E(6,iSt,6,4,"div",7),r()),e&2){let t=w(3);a(2),v("",m(3,3,"labels.inputs.Frequency Interval for recalculation"),":"),a(3),h(t.loanProduct.interestRecalculationData.recalculationRestFrequencyInterval),a(),I(t.loanProduct.recalculationRestFrequencyDate?6:-1)}}function oSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Do not calculate interest on past due principal balances"),":"),a(3),h(m(6,4,t.loanProduct.interestRecalculationData.disallowInterestCalculationOnPastDue))}}function aSt(e,o){if(e&1&&(l(0,"div")(1,"div",9)(2,"span",5),c(3),p(4,"translate"),r(),l(5,"span",6),c(6),r()(),l(7,"div",9)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),r()(),l(13,"div",9)(14,"span",5),c(15),p(16,"translate"),r(),l(17,"span",6),c(18),r()(),E(19,X3t,10,8,"div",9),l(20,"div",31)(21,"span",5),c(22),p(23,"translate"),r(),l(24,"span",6),c(25),E(26,Z3t,2,1,"span"),E(27,eSt,2,1,"span"),E(28,tSt,2,1,"span"),r()(),E(29,nSt,7,5,"div",10),l(30,"div",13)(31,"span",5),c(32),p(33,"translate"),r(),l(34,"span",6),c(35),p(36,"yesNo"),r()(),E(37,oSt,7,6,"div",4),r()),e&2){let t=w(2);a(3),v("",m(4,16,"labels.inputs.Pre-closure interest calculation rule"),":"),a(3),h(t.loanProduct.interestRecalculationData.preClosureInterestCalculationStrategy.value),a(3),v("",m(10,18,"labels.inputs.Advance payments adjustment type"),":"),a(3),h(t.loanProduct.interestRecalculationData.rescheduleStrategyType.value),a(3),v("",m(16,20,"labels.inputs.Interest recalculation compounding on"),":"),a(3),h(t.loanProduct.interestRecalculationData.interestRecalculationCompoundingType.value),a(),I(t.loanProduct.interestRecalculationData.interestRecalculationCompoundingType.id!==0?19:-1),a(3),v("",m(23,22,"labels.inputs.Frequency for recalculate Outstanding Principal"),":"),a(3),v(" ",t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.value," "),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationRestFrequencyNthDay?26:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===4&&!t.loanProduct.interestRecalculationData.recalculationRestFrequencyOnDay||t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===3?27:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationRestFrequencyOnDay?28:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id!==1?29:-1),a(3),v("",m(33,24,"labels.inputs.Is Arrears recognization based on original schedule"),":"),a(3),h(m(36,26,t.loanProduct.interestRecalculationData.isArrearsBasedOnOriginalSchedule)),a(2),I(t.loanProduct.loanScheduleType.code==="PROGRESSIVE"?37:-1)}}function rSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Minimum Guarantee from Own Funds")," (%):"),a(3),h(t.loanProduct.productGuaranteeData.minimumGuaranteeFromOwnFunds)}}function lSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Minimum Guarantee from Guarantor Funds")," (%):"),a(3),h(t.loanProduct.productGuaranteeData.minimumGuaranteeFromGuarantor)}}function sSt(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r(),E(6,rSt,6,4,"div",4),E(7,lSt,6,4,"div",4),r()),e&2){let t=w(2);a(2),v("",m(3,4,"labels.inputs.Mandatory Guarantee")," (%):"),a(3),h(t.loanProduct.productGuaranteeData.mandatoryGuarantee),a(),I(t.loanProduct.productGuaranteeData.minimumGuaranteeFromOwnFunds?6:-1),a(),I(t.loanProduct.productGuaranteeData.minimumGuaranteeFromGuarantor?7:-1)}}function cSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Maximum allowed outstanding balance"),":"),a(3),h(t.loanProduct.outstandingLoanBalance)}}function pSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Allow full term for each tranche"),":"),a(3),h(m(6,4,t.loanProduct.allowFullTermForTranche))}}function mSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()(),E(6,cSt,6,4,"div",4),l(7,"div",4)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),p(13,"yesNo"),r()(),E(14,pSt,7,6,"div",4)),e&2){let t=w(2);a(2),v("",m(3,6,"labels.inputs.Maximum Tranche count"),":"),a(3),h(t.loanProduct.maxTrancheCount),a(),I(t.loanProduct.outstandingLoanBalance?6:-1),a(3),v("",m(10,8,"labels.inputs.Disallow Expected Disbursements"),":"),a(3),h(m(13,10,t.loanProduct.disallowExpectedDisbursements)),a(2),I(t.loanProduct.loanScheduleType&&t.loanProduct.loanScheduleType.code==="PROGRESSIVE"?14:-1)}}function dSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"number"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Due days for repayment event"),":"),a(3),h(m(6,4,t.loanProduct.dueDaysForRepaymentEvent))}}function uSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"number"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.OverDue days for repayment event"),":"),a(3),h(m(6,4,t.loanProduct.overDueDaysForRepaymentEvent))}}function fSt(e,o){if(e&1&&(l(0,"div")(1,"div",4)(2,"span",5),c(3),p(4,"translate"),r(),l(5,"span",6),c(6),p(7,"yesNo"),r()(),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),p(14,"yesNo"),r()(),l(15,"div",4)(16,"span",5),c(17),p(18,"translate"),r(),l(19,"span",6),c(20),p(21,"yesNo"),r()(),l(22,"div",4)(23,"span",5),c(24),p(25,"translate"),r(),l(26,"span",6),c(27),p(28,"yesNo"),r()(),l(29,"div",4)(30,"span",5),c(31),p(32,"translate"),r(),l(33,"span",6),c(34),p(35,"yesNo"),r()(),l(36,"div",4)(37,"span",5),c(38),p(39,"translate"),r(),l(40,"span",6),c(41),p(42,"yesNo"),r()(),l(43,"div",4)(44,"span",5),c(45),p(46,"translate"),r(),l(47,"span",6),c(48),p(49,"yesNo"),r()(),l(50,"div",4)(51,"span",5),c(52),p(53,"translate"),r(),l(54,"span",6),c(55),p(56,"yesNo"),r()()()),e&2){let t=w(2);a(3),v("",m(4,16,"labels.inputs.Amortization"),":"),a(3),h(m(7,18,t.loanProduct.allowAttributeOverrides.amortizationType)),a(4),v("",m(11,20,"labels.inputs.Interest method"),":"),a(3),h(m(14,22,t.loanProduct.allowAttributeOverrides.interestType)),a(4),v("",m(18,24,"labels.inputs.Repayment strategy"),":"),a(3),h(m(21,26,t.loanProduct.allowAttributeOverrides.transactionProcessingStrategyCode)),a(4),v("",m(25,28,"labels.inputs.Interest calculation period"),":"),a(3),h(m(28,30,t.loanProduct.allowAttributeOverrides.interestCalculationPeriodType)),a(4),v("",m(32,32,"labels.inputs.Arrears tolerance"),":"),a(3),h(m(35,34,t.loanProduct.allowAttributeOverrides.inArrearsTolerance)),a(4),v("",m(39,36,"labels.inputs.Repaid every"),":"),a(3),h(m(42,38,t.loanProduct.allowAttributeOverrides.repaymentEvery)),a(4),v("",m(46,40,"labels.inputs.Moratorium"),":"),a(3),h(m(49,42,t.loanProduct.allowAttributeOverrides.graceOnPrincipalAndInterestPayment)),a(4),v("",m(53,44,"labels.inputs.Number of days a loan may be overdue before moving into arrears"),":"),a(3),h(m(56,46,t.loanProduct.allowAttributeOverrides.graceOnArrearsAgeing))}}function hSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function gSt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function _St(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge Type")))}function CSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function vSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function xSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function bSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function ySt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function SSt(e,o){e&1&&b(0,"tr",27)}function wSt(e,o){e&1&&b(0,"tr",28)}function PSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function TSt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function MSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge Type")))}function DSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function ESt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function ISt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function OSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function ASt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function FSt(e,o){e&1&&b(0,"tr",27)}function kSt(e,o){e&1&&b(0,"tr",28)}function BSt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",2),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"table",32),p(6,"chargesPenaltyFilter"),X(7,33),F(8,hSt,3,3,"th",17)(9,gSt,2,1,"td",18),Z(),X(10,34),F(11,_St,3,3,"th",17)(12,CSt,3,4,"td",18),Z(),X(13,35),F(14,vSt,3,3,"th",17)(15,xSt,3,3,"td",18),Z(),X(16,36),F(17,bSt,3,3,"th",17)(18,ySt,3,4,"td",18),Z(),F(19,SSt,1,0,"tr",23)(20,wSt,1,0,"tr",24),r(),l(21,"h3",2),c(22),p(23,"translate"),r(),b(24,"mat-divider",3),l(25,"table",32),p(26,"chargesPenaltyFilter"),X(27,33),F(28,PSt,3,3,"th",17)(29,TSt,2,1,"td",18),Z(),X(30,34),F(31,MSt,3,3,"th",17)(32,DSt,3,4,"td",18),Z(),X(33,35),F(34,ESt,3,3,"th",17)(35,ISt,3,3,"td",18),Z(),X(36,36),F(37,OSt,3,3,"th",17)(38,ASt,3,4,"td",18),Z(),F(39,FSt,1,0,"tr",23)(40,kSt,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,10,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",Ft(6,12,t.loanProduct.charges,!1)),a(14),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns),a(2),h(m(23,15,"labels.inputs.Overdue Charges")),a(2),g("inset",!0),a(),g("dataSource",Ft(26,17,t.loanProduct.charges,!0)),a(14),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function RSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Income capitalization calculation type"),":"),a(3),h(Ft(6,4,t.loanProduct.capitalizedIncomeCalculationType==null?null:t.loanProduct.capitalizedIncomeCalculationType.value,"catalogs"))}}function NSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Income capitalization strategy"),":"),a(3),h(Ft(6,4,t.loanProduct.capitalizedIncomeStrategy==null?null:t.loanProduct.capitalizedIncomeStrategy.value,"catalogs"))}}function LSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Income type"),":"),a(3),h(Ft(6,4,t.loanProduct.capitalizedIncomeType==null?null:t.loanProduct.capitalizedIncomeType.value,"catalogs"))}}function VSt(e,o){if(e&1&&(l(0,"div",10)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"div",13)(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),p(11,"yesNo"),r()(),E(12,RSt,7,7,"div",13),E(13,NSt,7,7,"div",13),E(14,LSt,7,7,"div",13),r()),e&2){let t=w(2);a(2),h(m(3,7,"labels.inputs.Income capitalization")),a(2),g("inset",!0),a(3),v("",m(8,9,"labels.inputs.Enable income capitalization"),":"),a(3),h(m(11,11,t.loanProduct.enableIncomeCapitalization)),a(2),I(t.loanProduct.enableIncomeCapitalization?12:-1),a(),I(t.loanProduct.enableIncomeCapitalization?13:-1),a(),I(t.loanProduct.enableIncomeCapitalization?14:-1)}}function qSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Buy down fee calculation type"),":"),a(3),h(Ft(6,4,t.loanProduct.buyDownFeeCalculationType==null?null:t.loanProduct.buyDownFeeCalculationType.value,"catalogs"))}}function zSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Buy down fee strategy"),":"),a(3),h(Ft(6,4,t.loanProduct.buyDownFeeStrategy==null?null:t.loanProduct.buyDownFeeStrategy.value,"catalogs"))}}function HSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Buy down fee income type"),":"),a(3),h(Ft(6,4,t.loanProduct.buyDownFeeIncomeType==null?null:t.loanProduct.buyDownFeeIncomeType.value,"catalogs"))}}function GSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Merchant Buy down fee"),":"),a(3),h(m(6,4,t.loanProduct.merchantBuyDownFee))}}function jSt(e,o){if(e&1&&(l(0,"div",10)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"div",13)(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),p(11,"yesNo"),r()(),E(12,qSt,7,7,"div",13),E(13,zSt,7,7,"div",13),E(14,HSt,7,7,"div",13),E(15,GSt,7,6,"div",13),r()),e&2){let t=w(2);a(2),h(m(3,8,"labels.inputs.Buy down fees")),a(2),g("inset",!0),a(3),v("",m(8,10,"labels.inputs.Enable Buy down fee"),":"),a(3),h(m(11,12,t.loanProduct.enableBuyDownFee)),a(2),I(t.loanProduct.enableBuyDownFee?12:-1),a(),I(t.loanProduct.enableBuyDownFee?13:-1),a(),I(t.loanProduct.enableBuyDownFee?14:-1),a(),I(t.loanProduct.enableBuyDownFee?15:-1)}}function $St(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Enable Accrual Activity Posting on Installment Due Date"),":"),a(3),h(m(6,4,t.loanProduct.enableAccrualActivityPosting))}}function USt(e,o){if(e&1&&(l(0,"div",9),b(1,"mifosx-gl-account-display",38)(2,"mifosx-gl-account-display",38)(3,"mifosx-gl-account-display",38),r()),e&2){let t=w(3);a(),g("accountTitle","Interest Receivable")("glAccount",t.accountingMappings.receivableInterestAccount)("withTitle","47%"),a(),g("accountTitle","Fees Receivable")("glAccount",t.accountingMappings.receivableFeeAccount)("withTitle","47%"),a(),g("accountTitle","Penalties Receivable")("glAccount",t.accountingMappings.receivablePenaltyAccount)("withTitle","47%")}}function WSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from ChargeOff Interest")("glAccount",t.accountingMappings.incomeFromChargeOffInterestAccount)("withTitle","47%")}}function QSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from ChargeOff Fees")("glAccount",t.accountingMappings.incomeFromChargeOffFeesAccount)("withTitle","47%")}}function YSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from ChargeOff Penalty")("glAccount",t.accountingMappings.incomeFromChargeOffPenaltyAccount)("withTitle","47%")}}function JSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income capitalization")("glAccount",t.accountingMappings.incomeFromCapitalizationAccount)("withTitle","47%")}}function KSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from Buy down fees")("glAccount",t.accountingMappings.incomeFromBuyDownAccount)("withTitle","47%")}}function XSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","ChargeOff Expense")("glAccount",t.accountingMappings.chargeOffExpenseAccount)("withTitle","47%")}}function ZSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","ChargeOff Fraud Expense")("glAccount",t.accountingMappings.chargeOffFraudExpenseAccount)("withTitle","47%")}}function ewt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Buy down fee Expense")("glAccount",t.accountingMappings.buyDownExpenseAccount)("withTitle","47%")}}function twt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Deferred income")("glAccount",t.accountingMappings.deferredIncomeLiabilityAccount)("withTitle","47%")}}function iwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.heading.Payment Type")))}function nwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function owt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function awt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.fundSourceAccount.name," ")}}function rwt(e,o){e&1&&b(0,"tr",27)}function lwt(e,o){e&1&&b(0,"tr",28)}function swt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,41),F(6,iwt,3,3,"th",17)(7,nwt,2,1,"td",18),Z(),X(8,42),F(9,owt,3,3,"th",17)(10,awt,2,1,"td",18),Z(),F(11,rwt,1,0,"tr",23)(12,lwt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(2),g("dataSource",t.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function cwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.catalogs.Fees")))}function pwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function mwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function dwt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),v(" ",t.incomeAccount.name," ")}}function uwt(e,o){if(e&1&&(l(0,"td",26),E(1,dwt,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.incomeAccount?1:-1)}}function fwt(e,o){e&1&&b(0,"tr",27)}function hwt(e,o){e&1&&b(0,"tr",28)}function gwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,43),F(6,cwt,3,3,"th",17)(7,pwt,2,1,"td",18),Z(),X(8,44),F(9,mwt,3,3,"th",17)(10,uwt,2,1,"td",18),Z(),F(11,fwt,1,0,"tr",23)(12,hwt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Map Fees to Specific Income Accounts")," "),a(2),g("dataSource",t.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function _wt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function Cwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function vwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function xwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function bwt(e,o){e&1&&b(0,"tr",27)}function ywt(e,o){e&1&&b(0,"tr",28)}function Swt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,43),F(6,_wt,3,3,"th",17)(7,Cwt,2,1,"td",18),Z(),X(8,44),F(9,vwt,3,3,"th",17)(10,xwt,2,1,"td",18),Z(),F(11,bwt,1,0,"tr",23)(12,ywt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(2),g("dataSource",t.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function wwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge-off reason")))}function Pwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.reasonCodeValue.name," ")}}function Twt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function Mwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.expenseAccount.glCode,") ",t.expenseAccount.name," ")}}function Dwt(e,o){e&1&&b(0,"tr",27)}function Ewt(e,o){e&1&&b(0,"tr",28)}function Iwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,39),F(6,wwt,3,3,"th",17)(7,Pwt,2,1,"td",18),Z(),X(8,40),F(9,Twt,3,3,"th",17)(10,Mwt,2,2,"td",18),Z(),F(11,Dwt,1,0,"tr",23)(12,Ewt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Map Charge-off reasons to Expense accounts")," "),a(2),g("dataSource",t.chargeOffReasonToExpenseAccountMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function Owt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function Awt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.classificationCodeValue.name," ")}}function Fwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function kwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function Bwt(e,o){e&1&&b(0,"tr",27)}function Rwt(e,o){e&1&&b(0,"tr",28)}function Nwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function Lwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.classificationCodeValue.name," ")}}function Vwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function qwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function zwt(e,o){e&1&&b(0,"tr",27)}function Hwt(e,o){e&1&&b(0,"tr",28)}function Gwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,39),F(6,Nwt,3,3,"th",17)(7,Lwt,2,1,"td",18),Z(),X(8,40),F(9,Vwt,3,3,"th",17)(10,qwt,2,2,"td",18),Z(),F(11,zwt,1,0,"tr",23)(12,Hwt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Capitalized Income classifications to Income accounts")," "),a(2),g("dataSource",t.capitalizedIncomeClassificationToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function jwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.WriteOff Reason")))}function $wt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.reasonCodeValue.name," ")}}function Uwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function Wwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.expenseAccount.glCode,") ",t.expenseAccount.name," ")}}function Qwt(e,o){e&1&&b(0,"tr",27)}function Ywt(e,o){e&1&&b(0,"tr",28)}function Jwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,39),F(6,jwt,3,3,"th",17)(7,$wt,2,1,"td",18),Z(),X(8,40),F(9,Uwt,3,3,"th",17)(10,Wwt,2,2,"td",18),Z(),F(11,Qwt,1,0,"tr",23)(12,Ywt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.WriteOff reasons to Expense accounts")," "),a(2),g("dataSource",t.writeOffReasonsToExpenseMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function Kwt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),E(5,swt,13,6,"div",10),E(6,gwt,13,6,"div",10),E(7,Swt,13,6,"div",10),E(8,Iwt,13,6,"div",10),l(9,"div",10)(10,"h4",37),c(11),p(12,"translate"),r(),l(13,"table",32),X(14,39),F(15,Owt,3,3,"th",17)(16,Awt,2,1,"td",18),Z(),X(17,40),F(18,Fwt,3,3,"th",17)(19,kwt,2,2,"td",18),Z(),F(20,Bwt,1,0,"tr",23)(21,Rwt,1,0,"tr",24),r()(),E(22,Gwt,13,6,"div",10),E(23,Jwt,13,6,"div",10),r()),e&2){let t=w(3);a(2),h(m(3,12,"labels.heading.Advanced Accounting Rules")),a(2),g("inset",!0),a(),I((t.paymentChannelToFundSourceMappings==null?null:t.paymentChannelToFundSourceMappings.length)>0?5:-1),a(),I((t.feeToIncomeAccountMappings==null?null:t.feeToIncomeAccountMappings.length)>0?6:-1),a(),I((t.penaltyToIncomeAccountMappings==null?null:t.penaltyToIncomeAccountMappings.length)>0?7:-1),a(),I((t.chargeOffReasonToExpenseAccountMappings==null?null:t.chargeOffReasonToExpenseAccountMappings.length)>0?8:-1),a(3),v(" ",m(12,14,"labels.heading.Buydown Fee classifications to Income accounts")," "),a(2),g("dataSource",t.buydownFeeClassificationToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns),a(),I((t.capitalizedIncomeClassificationToIncomeAccountMappings==null?null:t.capitalizedIncomeClassificationToIncomeAccountMappings.length)>0?22:-1),a(),I((t.writeOffReasonsToExpenseMappings==null?null:t.writeOffReasonsToExpenseMappings.length)>0?23:-1)}}function Xwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),p(4,"translate"),r(),l(5,"div",10),b(6,"mifosx-gl-account-display",38),r(),l(7,"h4",37),c(8),p(9,"translate"),r(),l(10,"div",10),b(11,"mifosx-gl-account-display",38),E(12,USt,4,9,"div",9),b(13,"mifosx-gl-account-display",38),r(),l(14,"h4",37),c(15),p(16,"translate"),r(),b(17,"mifosx-gl-account-display",38)(18,"mifosx-gl-account-display",38)(19,"mifosx-gl-account-display",38)(20,"mifosx-gl-account-display",38),E(21,WSt,1,3,"mifosx-gl-account-display",38),E(22,QSt,1,3,"mifosx-gl-account-display",38),E(23,YSt,1,3,"mifosx-gl-account-display",38),E(24,JSt,1,3,"mifosx-gl-account-display",38),E(25,KSt,1,3,"mifosx-gl-account-display",38),l(26,"h4",37),c(27),p(28,"translate"),r(),l(29,"div",9),b(30,"mifosx-gl-account-display",38)(31,"mifosx-gl-account-display",38),E(32,XSt,1,3,"mifosx-gl-account-display",38),E(33,ZSt,1,3,"mifosx-gl-account-display",38),E(34,ewt,1,3,"mifosx-gl-account-display",38),l(35,"h4",14),c(36),p(37,"translate"),r(),b(38,"mifosx-gl-account-display",38),E(39,twt,1,3,"mifosx-gl-account-display",38),E(40,Kwt,24,16,"div",9),r()()),e&2){let t=w(2);a(2),le(" ",m(3,47,"labels.heading.Assets")," / ",m(4,49,"labels.heading.Liabilities")," "),a(4),g("accountTitle","Fund source")("glAccount",t.accountingMappings.fundSourceAccount)("withTitle","47%"),a(2),h(m(9,51,"labels.heading.Assets")),a(3),g("accountTitle","Loan portfolio")("glAccount",t.accountingMappings.loanPortfolioAccount)("withTitle","47%"),a(),I(t.loanProduct.accountingRule.id===3||t.loanProduct.accountingRule.id===4?12:-1),a(),g("accountTitle","Transfer in suspense")("glAccount",t.accountingMappings.transfersInSuspenseAccount)("withTitle","47%"),a(2),h(m(16,53,"labels.heading.Income")),a(2),g("accountTitle","Income from Interest")("glAccount",t.accountingMappings.interestOnLoanAccount)("withTitle","47%"),a(),g("accountTitle","Income from fees")("glAccount",t.accountingMappings.incomeFromFeeAccount)("withTitle","47%"),a(),g("accountTitle","Income from penalties")("glAccount",t.accountingMappings.incomeFromPenaltyAccount)("withTitle","47%"),a(),g("accountTitle","Income from Recovery Repayments")("glAccount",t.accountingMappings.incomeFromRecoveryAccount)("withTitle","47%"),a(),I(t.accountingMappings.incomeFromChargeOffInterestAccount?21:-1),a(),I(t.accountingMappings.incomeFromChargeOffFeesAccount?22:-1),a(),I(t.accountingMappings.incomeFromChargeOffPenaltyAccount?23:-1),a(),I(t.accountingMappings.incomeFromCapitalizationAccount?24:-1),a(),I(t.accountingMappings.incomeFromBuyDownAccount?25:-1),a(2),h(m(28,55,"labels.heading.Expenses")),a(3),g("accountTitle","Losses written off")("glAccount",t.accountingMappings.writeOffAccount)("withTitle","47%"),a(),g("accountTitle","Expenses from Goodwill Credit")("glAccount",t.accountingMappings.goodwillCreditAccount)("withTitle","47%"),a(),I(t.accountingMappings.chargeOffExpenseAccount?32:-1),a(),I(t.accountingMappings.chargeOffFraudExpenseAccount?33:-1),a(),I(t.accountingMappings.buyDownExpenseAccount?34:-1),a(2),h(m(37,57,"labels.heading.Liabilities")),a(2),g("accountTitle","Over payment liability")("glAccount",t.accountingMappings.overpaymentLiabilityAccount)("withTitle","47%"),a(),I(t.accountingMappings.deferredIncomeLiabilityAccount?39:-1),a(),I(t.isAdvancedAccountingEnabled()?40:-1)}}function Zwt(e,o){if(e&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),l(3,"h3",2),c(4),p(5,"translate"),r(),b(6,"mat-divider",3),l(7,"div",4)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),r()(),E(13,Myt,6,4,"div",4),E(14,Dyt,6,4,"div",4),l(15,"div",4)(16,"span",5),c(17),p(18,"translate"),r(),l(19,"span",6),c(20),p(21,"yesNo"),r()(),E(22,Eyt,7,6,"div",4),E(23,Iyt,7,6,"div",4),E(24,Oyt,6,4,"div",4),l(25,"h3",2),c(26),p(27,"translate"),r(),b(28,"mat-divider",3),l(29,"div",4)(30,"span",5),c(31),p(32,"translate"),r(),l(33,"span",6),c(34),r()(),l(35,"div",4)(36,"span",5),c(37),p(38,"translate"),r(),l(39,"span",6),c(40),r()(),l(41,"div",4)(42,"span",5),c(43),p(44,"translate"),r(),l(45,"span",6),c(46),r()(),l(47,"div",4)(48,"span",5),c(49),p(50,"translate"),r(),l(51,"span",6),c(52),r()(),l(53,"div",4)(54,"span",5),c(55),p(56,"translate"),r(),l(57,"span",6),c(58),r()(),l(59,"h3",2),c(60),p(61,"translate"),r(),b(62,"mat-divider",3),l(63,"div",4)(64,"span",5),c(65),p(66,"translate"),r(),l(67,"span",6),c(68),p(69,"formatNumber"),p(70,"formatNumber"),p(71,"formatNumber"),r()(),l(72,"div",4)(73,"span",5),c(74),p(75,"translate"),r(),l(76,"span",6),c(77),p(78,"yesNo"),r()(),E(79,kyt,6,5,"div",4),l(80,"div",4)(81,"span",5),c(82),p(83,"translate"),r(),l(84,"span",6),c(85),p(86,"translateKey"),r()(),l(87,"div",4)(88,"span",5),c(89),p(90,"translate"),r(),l(91,"span",6),c(92),r()(),l(93,"div",4)(94,"span",5),c(95),p(96,"translate"),r(),l(97,"span",6),c(98),p(99,"yesNo"),r()(),E(100,Byt,7,8,"div",4),E(101,Ryt,26,18,"div"),l(102,"div",4)(103,"span",5),c(104),p(105,"translate"),r(),l(106,"span",6),c(107),p(108,"yesNo"),r()(),E(109,Yyt,22,6,"div",4),E(110,s3t,22,6,"div",7),E(111,b3t,22,6,"div",7),l(112,"div",4)(113,"span",5),c(114),p(115,"translate"),r(),l(116,"span",6),c(117),p(118,"translateKey"),r()(),E(119,y3t,7,8,"div",4),E(120,S3t,7,6,"div",4),l(121,"h3",2),c(122),p(123,"translate"),r(),b(124,"mat-divider",3),E(125,w3t,7,7,"div",4),l(126,"div",4)(127,"span",5),c(128),p(129,"translate"),r(),l(130,"span",6),c(131),p(132,"yesNo"),r()(),l(133,"div",4)(134,"span",5),c(135),p(136,"translate"),r(),l(137,"span",6),c(138),p(139,"translateKey"),r()(),l(140,"div",4)(141,"span",5),c(142),p(143,"translate"),r(),l(144,"span",6),c(145),p(146,"translateKey"),r()(),l(147,"div",4)(148,"span",5),c(149),p(150,"translate"),r(),l(151,"span",6),c(152),p(153,"yesNo"),r()(),l(154,"div",4)(155,"span",5),c(156),p(157,"translate"),r(),l(158,"span",6),c(159),p(160,"yesNo"),r()(),l(161,"h3",2),c(162),p(163,"translate"),r(),b(164,"mat-divider",3),l(165,"div",4)(166,"span",5),c(167),p(168,"translate"),r(),l(169,"span",6),c(170),p(171,"translateKey"),r()(),l(172,"div",4)(173,"span",5),c(174),p(175,"translate"),r(),l(176,"span",8),c(177),p(178,"translateKey"),r()(),E(179,P3t,6,4,"div",4),E(180,M3t,8,3,"div",4),E(181,E3t,8,3,"div",4),E(182,I3t,6,4,"div",4),l(183,"h3",2),c(184),p(185,"translate"),r(),b(186,"mat-divider",3),l(187,"div",4)(188,"span",5),c(189),p(190,"translate"),r(),l(191,"span",6),c(192),p(193,"yesNo"),r()(),E(194,O3t,6,4,"div",9),E(195,A3t,7,6,"div",9),E(196,F3t,12,11,"div",10),l(197,"h3",2),c(198),p(199,"translate"),r(),E(200,R3t,6,5,"div",4),E(201,N3t,7,6,"div",4),E(202,L3t,7,6,"div",4),E(203,V3t,6,4,"div",4),E(204,q3t,6,4,"div",4),E(205,z3t,6,4,"div",4),E(206,H3t,6,4,"div",4),l(207,"div",4)(208,"span",5),c(209),p(210,"translate"),r(),l(211,"span",6),c(212),p(213,"translateKey"),r()(),E(214,G3t,7,7,"div",4),l(215,"div",4)(216,"span",5),c(217),p(218,"translate"),r(),l(219,"span",6),c(220),p(221,"translateKey"),r()(),l(222,"div",4)(223,"span",5),c(224),p(225,"translate"),r(),l(226,"span",6),c(227),p(228,"yesNo"),r()(),E(229,j3t,6,4,"div",4),E(230,$3t,6,4,"div",4),l(231,"div",4)(232,"span",5),c(233),p(234,"translate"),r(),l(235,"span",6),c(236),p(237,"yesNo"),r()(),E(238,U3t,6,4,"div",4),l(239,"div",4)(240,"span",5),c(241),p(242,"translate"),r(),l(243,"span",6),c(244),p(245,"yesNo"),r()(),E(246,W3t,6,4,"div",4),l(247,"div",4)(248,"span",5),c(249),p(250,"translate"),r(),l(251,"span",6),c(252),p(253,"yesNo"),r()(),l(254,"h3",2),c(255),p(256,"translate"),r(),b(257,"mat-divider",3),l(258,"div",4)(259,"span",5),c(260),p(261,"translate"),r(),l(262,"span",6),c(263),p(264,"yesNo"),r()(),E(265,aSt,38,28,"div"),l(266,"h3",2),c(267),p(268,"translate"),r(),b(269,"mat-divider",3),l(270,"div",4)(271,"span",5),c(272),p(273,"translate"),r(),l(274,"span",6),c(275),p(276,"yesNo"),r()(),E(277,sSt,8,6,"div",9),l(278,"h3",2),c(279),p(280,"translate"),r(),b(281,"mat-divider",3),l(282,"div",4)(283,"span",5),c(284),p(285,"translate"),r(),l(286,"span",6),c(287),p(288,"yesNo"),r()(),E(289,mSt,15,12),l(290,"h3",2),c(291),p(292,"translate"),r(),l(293,"div",11)(294,"span",5),c(295),p(296,"translate"),r(),l(297,"span",6),c(298),p(299,"yesNo"),r()(),E(300,dSt,7,6,"div",4),E(301,uSt,7,6,"div",4),l(302,"h3",2),c(303),p(304,"translate"),r(),b(305,"mat-divider",3),l(306,"div",4)(307,"span",5),c(308),p(309,"translate"),r(),l(310,"span",6),c(311),p(312,"yesNo"),r()(),E(313,fSt,57,48,"div"),E(314,BSt,41,20,"div",9),E(315,VSt,15,13,"div",10),E(316,jSt,16,14,"div",10),l(317,"h3",12),c(318),p(319,"translate"),r(),b(320,"mat-divider",3),l(321,"div",13)(322,"span",5),c(323),p(324,"translate"),r(),l(325,"span",6),c(326),p(327,"translate"),r()(),E(328,$St,7,6,"div",13),E(329,Xwt,41,59,"div",10),r()),e&2){let t=w();a(2),h(t.loanProduct.name),a(2),h(m(5,140,"labels.heading.Details")),a(2),g("inset",!0),a(3),v("",m(10,142,"labels.inputs.Short Name"),":"),a(3),h(t.loanProduct.shortName),a(),I(t.loanProduct.externalId?13:-1),a(),I(t.loanProduct.fundId?14:-1),a(3),v("",m(18,144,"labels.inputs.Include in Customer Loan Counter"),":"),a(3),h(m(21,146,t.loanProduct.includeInBorrowerCycle)),a(2),I(t.loanProduct.startDate?22:-1),a(),I(t.loanProduct.closeDate?23:-1),a(),I(t.loanProduct.description?24:-1),a(2),h(m(27,148,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(32,150,"labels.inputs.Currency"),":"),a(3),h(t.loanProduct.currency.code),a(3),v("",m(38,152,"labels.inputs.Currency"),":"),a(3),h(t.loanProduct.currency.displayLabel),a(3),v("",m(44,154,"labels.inputs.Decimal Places"),":"),a(3),h(t.loanProduct.currency.decimalPlaces),a(3),v("",m(50,156,"labels.inputs.Currency in multiples of"),":"),a(3),h(t.loanProduct.currency.inMultiplesOf),a(3),v("",m(56,158,"labels.inputs.Installment in multiples of"),":"),a(3),h(t.loanProduct.installmentAmountInMultiplesOf),a(2),h(m(61,160,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(66,162,"labels.inputs.Principal"),":"),a(3),ea("",m(69,164,t.loanProduct.principal)," (Min ",m(70,166,t.loanProduct.minPrincipal?t.loanProduct.minPrincipal:t.loanProduct.principal)," : Max ",m(71,168,t.loanProduct.maxPrincipal?t.loanProduct.maxPrincipal:t.loanProduct.principal),") "),a(6),v("",m(75,170,"labels.inputs.Allow Approved / Disbursed Amounts Over Applied"),":"),a(3),h(m(78,172,t.loanProduct.allowApprovedDisbursedAmountsOverApplied)),a(2),I(t.loanProduct.allowApprovedDisbursedAmountsOverApplied?79:-1),a(3),v("",m(83,174,"labels.inputs.Installment day calculation from"),":"),a(3),h(Ft(86,176,t.loanProduct.repaymentStartDateType==null?null:t.loanProduct.repaymentStartDateType.value,"catalogs")),a(4),v("",m(90,179,"labels.inputs.Number of Repayments"),":"),a(3),h(t.loanProduct.numberOfRepayments+" (Min: "+(t.loanProduct.minNumberOfRepayments?t.loanProduct.minNumberOfRepayments:t.loanProduct.numberOfRepayments)+", Max: "+(t.loanProduct.maxNumberOfRepayments?t.loanProduct.maxNumberOfRepayments:t.loanProduct.numberOfRepayments)+")"),a(3),v("",m(96,181,"labels.inputs.Linked to floating interest rates"),":"),a(3),h(m(99,183,t.loanProduct.isLinkedToFloatingInterestRates)),a(2),I(t.loanProduct.isLinkedToFloatingInterestRates?-1:100),a(),I(t.loanProduct.isLinkedToFloatingInterestRates?101:-1),a(3),v("",m(105,185,"labels.inputs.Terms vary based on loan cycle"),":"),a(3),h(m(108,187,t.loanProduct.useBorrowerCycle)),a(2),I(t.loanProduct.principalVariationsForBorrowerCycle!=null&&t.loanProduct.principalVariationsForBorrowerCycle.length?109:-1),a(),I(t.loanProduct.numberOfRepaymentVariationsForBorrowerCycle!=null&&t.loanProduct.numberOfRepaymentVariationsForBorrowerCycle.length?110:-1),a(),I(t.loanProduct.interestRateVariationsForBorrowerCycle!=null&&t.loanProduct.interestRateVariationsForBorrowerCycle.length?111:-1),a(3),v("",m(115,189,"labels.inputs.Repay Every"),":"),a(3),le("",t.loanProduct.repaymentEvery," ",Ft(118,191,t.loanProduct.repaymentFrequencyType.value,"catalogs")),a(2),I(t.loanProduct.fixedLength?119:-1),a(),I(t.loanProduct.minimumDaysBetweenDisbursalAndFirstRepayment?120:-1),a(2),h(m(123,194,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(t.loanProduct.amortizationType!=null&&t.loanProduct.amortizationType.value?125:-1),a(3),v("",m(129,196,"labels.inputs.Is Equal Amortization"),":"),a(3),h(m(132,198,t.loanProduct.isEqualAmortization)),a(4),v("",m(136,200,"labels.inputs.Interest Method"),":"),a(3),h(Ft(139,202,t.loanProduct.interestType==null?null:t.loanProduct.interestType.value,"catalogs")),a(4),v("",m(143,205,"labels.inputs.Interest Calculation Period"),":"),a(3),h(Ft(146,207,t.loanProduct.interestCalculationPeriodType==null?null:t.loanProduct.interestCalculationPeriodType.value,"catalogs")),a(4),v("",m(150,210,"labels.inputs.Allow Partial Interest Calculation with same as repayment"),":"),a(3),h(m(153,212,t.loanProduct.allowPartialPeriodInterestCalculation)),a(4),v("",m(157,214,"labels.inputs.Is interest recognition on disbursement date?"),":"),a(3),h(m(160,216,t.loanProduct.interestRecognitionOnDisbursementDate)),a(3),h(m(163,218,"labels.inputs.Loan Schedule")),a(2),g("inset",!0),a(3),v("",m(168,220,"labels.inputs.Loan Schedule Type"),":"),a(3),h(Ft(171,222,t.loanProduct.loanScheduleType.value,"catalogs")),a(4),v("",m(175,225,"labels.inputs.Repayment Strategy"),":"),a(3),h(Ft(178,227,t.loanProduct.transactionProcessingStrategyName,"catalogs")),a(2),I(t.isAdvancedPaymentAllocation?179:-1),a(),I(t.isAdvancedPaymentAllocation?180:-1),a(),I(t.isAdvancedPaymentAllocation&&t.creditAllocations.length>0?181:-1),a(),I(t.isAdvancedPaymentAllocation&&(t.supportedInterestRefundTypes==null?null:t.supportedInterestRefundTypes.length)>0?182:-1),a(2),h(m(185,230,"labels.inputs.Down Payments")),a(2),g("inset",!0),a(3),v("",m(190,232,"labels.inputs.Enable Down Payments"),":"),a(3),h(m(193,234,t.loanProduct.enableDownPayment)),a(2),I(t.loanProduct.enableDownPayment?194:-1),a(),I(t.loanProduct.enableDownPayment?195:-1),a(),I(t.isAdvancedPaymentAllocation?196:-1),a(2),h(m(199,236,"labels.heading.Moratorium")),a(2),I(t.loanProduct.delinquencyBucket?200:-1),a(),I(t.loanProduct.delinquencyBucket?-1:201),a(),I(t.loanProduct.delinquencyBucket?202:-1),a(),I(t.loanProduct.graceOnPrincipalPayment?203:-1),a(),I(t.loanProduct.graceOnInterestPayment?204:-1),a(),I(t.loanProduct.graceOnInterestCharged?205:-1),a(),I(t.loanProduct.inArrearsTolerance?206:-1),a(3),v("",m(210,238,"labels.inputs.Days in year"),":"),a(3),h(Ft(213,240,t.loanProduct.daysInYearType==null?null:t.loanProduct.daysInYearType.value,"catalogs")),a(2),I(t.isAdvancedPaymentAllocation&&t.loanProduct.daysInYearCustomStrategy?214:-1),a(3),v("",m(218,243,"labels.inputs.Days in month"),":"),a(3),h(Ft(221,245,t.loanProduct.daysInMonthType==null?null:t.loanProduct.daysInMonthType.value,"catalogs")),a(4),v("",m(225,248,"labels.inputs.Allow fixing of the installment amount"),":"),a(3),h(m(228,250,t.loanProduct.canDefineInstallmentAmount)),a(2),I(t.loanProduct.graceOnArrearsAgeing?229:-1),a(),I(t.loanProduct.overdueDaysForNPA?230:-1),a(3),v("",m(234,252,"labels.inputs.Account moves out of NPA only after all arrears have been cleared"),":"),a(3),h(m(237,254,t.loanProduct.accountMovesOutOfNPAOnlyOnArrearsCompletion)),a(2),I(t.loanProduct.principalThresholdForLastInstallment?238:-1),a(3),v("",m(242,256,"labels.inputs.Variable Installments allowed"),":"),a(3),h(m(245,258,t.loanProduct.allowVariableInstallments)),a(2),I(t.loanProduct.allowVariableInstallments?246:-1),a(3),v("",m(250,260,"labels.inputs.Allowed to be used for providing Topup Loans"),":"),a(3),h(m(253,262,t.loanProduct.canUseForTopup)),a(3),h(m(256,264,"labels.heading.Interest Recalculation")),a(2),g("inset",!0),a(3),v("",m(261,266,"labels.inputs.Recalculate Interest"),":"),a(3),h(m(264,268,t.loanProduct.isInterestRecalculationEnabled)),a(2),I(t.loanProduct.isInterestRecalculationEnabled?265:-1),a(2),h(m(268,270,"labels.heading.Guarantee Requirements")),a(2),g("inset",!0),a(3),v("",m(273,272,"labels.inputs.Place Guarantee Funds On-Hold"),":"),a(3),h(m(276,274,t.loanProduct.holdGuaranteeFunds)),a(2),I(t.loanProduct.holdGuaranteeFunds?277:-1),a(2),h(m(280,276,"labels.heading.Loan Tranche Details")),a(2),g("inset",!0),a(3),v("",m(285,278,"labels.inputs.Enable Multiple Disbursals"),":"),a(3),h(m(288,280,t.loanProduct.multiDisburseLoan)),a(2),I(t.loanProduct.multiDisburseLoan?289:-1),a(2),h(m(292,282,"labels.heading.Event Settings")),a(4),v("",m(296,284,"labels.inputs.Use the Global Configurations values to the Repayment Event (notifications)"),":"),a(3),h(m(299,286,t.useDueForRepaymentsConfigurations)),a(2),I(t.loanProduct.dueDaysForRepaymentEvent?300:-1),a(),I(t.loanProduct.overDueDaysForRepaymentEvent?301:-1),a(2),h(m(304,288,"labels.inputs.Configurable Terms and Settings")),a(2),g("inset",!0),a(3),v("",m(309,290,"labels.inputs.Allow overriding select terms and settings in loan accounts"),":"),a(3),h(m(312,292,t.loanProduct.allowAttributeConfiguration)),a(2),I(t.loanProduct.allowAttributeConfiguration?313:-1),a(),I(t.loanProduct.charges.length?314:-1),a(),I(t.isAdvancedPaymentAllocation?315:-1),a(),I(t.isAdvancedPaymentAllocation?316:-1),a(2),h(m(319,294,"labels.heading.Accounting")),a(2),g("inset",!0),a(3),v("",m(324,296,"labels.inputs.Type"),":"),a(3),h(m(327,298,"labels.accounting."+t.getAccountingRuleName(t.accountingRuleData[t.accountingRule()-1]))),a(2),I(t.isAccountingAccrualBased?328:-1),a(),I(t.isAccountingEnabled()?329:-1)}}var Ou=(()=>{class e{constructor(){this.accounting=T(To),this.variationsDisplayedColumns=["valueConditionType","borrowerCycleNumber","minValue","defaultValue","maxValue"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.chargeOffReasonExpenseDisplayedColumns=["chargeOffReasonCodeValueId","expenseAccountId"],this.accountingRuleData=[],this.isAdvancedPaymentAllocation=!1,this.accountingMappings={},this.paymentChannelToFundSourceMappings=[],this.feeToIncomeAccountMappings=[],this.penaltyToIncomeAccountMappings=[],this.chargeOffReasonToExpenseAccountMappings=[],this.buydownFeeClassificationToIncomeAccountMappings=[],this.capitalizedIncomeClassificationToIncomeAccountMappings=[],this.writeOffReasonsToExpenseMappings=[]}ngOnInit(){this.accountingRuleData=this.accounting.getAccountingRulesForLoans(),this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.isAdvancedPaymentAllocation=Ea.isAdvancedPaymentAllocationStrategy(this.loanProduct.transactionProcessingStrategyCode),this.loanProduct.currency||this.loanProductsTemplate.currencyOptions.some(t=>{t.code===this.loanProduct.currencyCode&&(this.loanProduct.currency=t)}),this.action==="view")this.accountingMappings=this.loanProduct.accountingMappings,this.paymentChannelToFundSourceMappings=this.loanProduct.paymentChannelToFundSourceMappings||[],this.feeToIncomeAccountMappings=this.loanProduct.feeToIncomeAccountMappings||[],this.penaltyToIncomeAccountMappings=this.loanProduct.penaltyToIncomeAccountMappings||[],this.chargeOffReasonToExpenseAccountMappings=this.loanProduct.chargeOffReasonToExpenseAccountMappings||[],this.buydownFeeClassificationToIncomeAccountMappings=this.loanProduct.buydownFeeClassificationToIncomeAccountMappings||[],this.capitalizedIncomeClassificationToIncomeAccountMappings=this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings||[],this.writeOffReasonsToExpenseMappings=this.loanProduct.writeOffReasonsToExpenseMappings||[];else{if(this.accountingMappings={},this.loanProduct.accountingRule&&this.loanProduct.accountingRule>1||this.loanProductsTemplate.accountingRule.value!=="NONE"){let i=this.loanProductsTemplate.accountingMappingOptions.assetAccountOptions||[],s=this.loanProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],d=this.loanProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],u=this.loanProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],f=this.loanProductsTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions||[],_=this.loanProductsTemplate.chargeOffReasonOptions||[],C=this.loanProductsTemplate.writeOffReasonOptions||[],x=this.loanProductsTemplate.buydownFeeClassificationOptions||[],y=this.loanProductsTemplate.capitalizedIncomeClassificationOptions||[];if(this.accountingMappings={fundSourceAccount:this.glAccountLookUp(this.loanProduct.fundSourceAccountId,f),loanPortfolioAccount:this.glAccountLookUp(this.loanProduct.loanPortfolioAccountId,i),receivableInterestAccount:this.glAccountLookUp(this.loanProduct.receivableInterestAccountId,i),receivableFeeAccount:this.glAccountLookUp(this.loanProduct.receivableFeeAccountId,i),receivablePenaltyAccount:this.glAccountLookUp(this.loanProduct.receivablePenaltyAccountId,i),transfersInSuspenseAccount:this.glAccountLookUp(this.loanProduct.transfersInSuspenseAccountId,i),interestOnLoanAccount:this.glAccountLookUp(this.loanProduct.interestOnLoanAccountId,s),incomeFromFeeAccount:this.glAccountLookUp(this.loanProduct.incomeFromFeeAccountId,s),incomeFromPenaltyAccount:this.glAccountLookUp(this.loanProduct.incomeFromPenaltyAccountId,s),incomeFromRecoveryAccount:this.glAccountLookUp(this.loanProduct.incomeFromRecoveryAccountId,s),incomeFromChargeOffInterestAccount:this.glAccountLookUp(this.loanProduct.incomeFromChargeOffInterestAccountId,s),incomeFromChargeOffFeesAccount:this.glAccountLookUp(this.loanProduct.incomeFromChargeOffFeesAccountId,s),incomeFromChargeOffPenaltyAccount:this.glAccountLookUp(this.loanProduct.incomeFromChargeOffPenaltyAccountId,s),incomeFromCapitalizationAccount:this.glAccountLookUp(this.loanProduct.incomeFromCapitalizationAccountId,s),incomeFromBuyDownAccount:this.glAccountLookUp(this.loanProduct.incomeFromBuyDownAccountId,s),writeOffAccount:this.glAccountLookUp(this.loanProduct.writeOffAccountId,d),goodwillCreditAccount:this.glAccountLookUp(this.loanProduct.goodwillCreditAccountId,d),chargeOffExpenseAccount:this.glAccountLookUp(this.loanProduct.writeOffAccountId,d),chargeOffFraudExpenseAccount:this.glAccountLookUp(this.loanProduct.writeOffAccountId,d),buyDownExpenseAccount:this.glAccountLookUp(this.loanProduct.buyDownExpenseAccountId,d),overpaymentLiabilityAccount:this.glAccountLookUp(this.loanProduct.overpaymentLiabilityAccountId,u),deferredIncomeLiabilityAccount:this.glAccountLookUp(this.loanProduct.deferredIncomeLiabilityAccountId,u)},this.paymentChannelToFundSourceMappings=[],this.loanProduct.paymentChannelToFundSourceMappings?.length>0){let P=this.loanProductsTemplate.paymentTypeOptions||[];this.loanProduct.paymentChannelToFundSourceMappings.forEach(S=>{this.paymentChannelToFundSourceMappings.push({fundSourceAccount:this.glAccountLookUp(S.fundSourceAccountId,f),paymentType:this.paymentTypeLookUp(S.paymentTypeId,P)})})}this.feeToIncomeAccountMappings=[],this.loanProduct.feeToIncomeAccountMappings?.length>0&&this.loanProduct.feeToIncomeAccountMappings.forEach(P=>{this.feeToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),charge:this.chargeLookUp(P.chargeId,this.loanProductsTemplate.chargeOptions)})}),this.penaltyToIncomeAccountMappings=[],this.loanProduct.penaltyToIncomeAccountMappings?.length>0&&this.loanProduct.penaltyToIncomeAccountMappings.forEach(P=>{this.penaltyToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),charge:this.chargeLookUp(P.chargeId,this.loanProductsTemplate.penaltyOptions)})}),this.chargeOffReasonToExpenseAccountMappings=[],this.loanProduct.chargeOffReasonToExpenseAccountMappings?.length>0&&this.loanProduct.chargeOffReasonToExpenseAccountMappings.forEach(P=>{let S=this.optionDataLookUp(P.chargeOffReasonCodeValueId,_);this.chargeOffReasonToExpenseAccountMappings.push({expenseAccount:this.glAccountLookUp(P.expenseAccountId,d),reasonCodeValue:{id:S.id,name:S.value}})}),this.buydownFeeClassificationToIncomeAccountMappings=[],this.loanProduct.buydownfeeClassificationToIncomeAccountMappings?.length>0&&this.loanProduct.buydownfeeClassificationToIncomeAccountMappings.forEach(P=>{let S=this.optionDataLookUp(P.classificationCodeValueId,x);S!==null&&this.buydownFeeClassificationToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),classificationCodeValue:{id:S.id,name:S.value}})}),this.capitalizedIncomeClassificationToIncomeAccountMappings=[],this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings?.length>0&&this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings.forEach(P=>{let S=this.optionDataLookUp(P.classificationCodeValueId,y);S!==null&&this.capitalizedIncomeClassificationToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),classificationCodeValue:{id:S.id,name:S.value}})}),this.writeOffReasonsToExpenseMappings=[],this.loanProduct.writeOffReasonsToExpenseMappings?.length>0&&this.loanProduct.writeOffReasonsToExpenseMappings.forEach(P=>{let S=this.optionDataLookUp(P.writeOffReasonCodeValueId,C);S!==null&&this.writeOffReasonsToExpenseMappings.push({expenseAccount:this.glAccountLookUp(P.expenseAccountId,d),reasonCodeValue:{id:S.id,name:S.value}})})}this.loanProduct.isInterestRecalculationEnabled&&(this.loanProduct.interestRecalculationData={interestRecalculationCompoundingType:this.optionDataLookUp(this.loanProduct.interestRecalculationCompoundingMethod,this.loanProductsTemplate.interestRecalculationCompoundingTypeOptions),rescheduleStrategyType:this.optionDataLookUp(this.loanProduct.rescheduleStrategyMethod,this.loanProductsTemplate.rescheduleStrategyTypeOptions),recalculationCompoundingFrequencyType:this.optionDataLookUp(this.loanProduct.recalculationCompoundingFrequencyType,this.loanProductsTemplate.interestRecalculationFrequencyTypeOptions),recalculationRestFrequencyType:this.optionDataLookUp(this.loanProduct.recalculationRestFrequencyType,this.loanProductsTemplate.interestRecalculationFrequencyTypeOptions),preClosureInterestCalculationStrategy:this.optionDataLookUp(this.loanProduct.preClosureInterestCalculationStrategy,this.loanProductsTemplate.preClosureInterestCalculationStrategyOptions),allowCompoundingOnEod:this.loanProduct.allowCompoundingOnEod,isArrearsBasedOnOriginalSchedule:this.loanProduct.isArrearsBasedOnOriginalSchedule,isCompoundingToBePostedAsTransaction:this.loanProduct.isCompoundingToBePostedAsTransaction,recalculationRestFrequencyInterval:this.loanProduct.recalculationRestFrequencyInterval,disallowInterestCalculationOnPastDue:this.loanProduct.disallowInterestCalculationOnPastDue});let t=this.optionDataLookUp(this.loanProduct.amortizationType,this.loanProductsTemplate.amortizationTypeOptions);this.loanProduct.amortizationType=t,t=this.optionDataLookUp(this.loanProduct.interestType,this.loanProductsTemplate.interestTypeOptions),this.loanProduct.interestType=t,t=this.optionDataLookUp(this.loanProduct.interestCalculationPeriodType,this.loanProductsTemplate.interestCalculationPeriodTypeOptions),this.loanProduct.interestCalculationPeriodType=t,(!this.loanProduct.repaymentFrequencyType||!this.loanProduct.repaymentFrequencyType.value)&&(t=this.optionDataLookUp(this.loanProduct.repaymentFrequencyType,this.loanProductsTemplate.repaymentFrequencyTypeOptions),this.loanProduct.repaymentFrequencyType=t),t=this.optionDataLookUp(this.loanProduct.daysInMonthType,this.loanProductsTemplate.daysInMonthTypeOptions),this.loanProduct.daysInMonthType=t,t=this.optionDataLookUp(this.loanProduct.daysInYearType,this.loanProductsTemplate.daysInYearTypeOptions),this.loanProduct.daysInYearType=t,this.isAdvancedPaymentAllocation&&this.loanProduct.daysInYearType?.id==1&&(t=this.optionDataLookUp(this.loanProduct.daysInYearCustomStrategy,this.loanProductsTemplate.daysInYearCustomStrategyOptions)),this.loanProduct.daysInYearCustomStrategy=t,this.isAdvancedPaymentAllocation&&this.loanProduct.enableIncomeCapitalization&&(t=this.optionDataLookUp(this.loanProduct.capitalizedIncomeCalculationType,this.loanProductsTemplate.capitalizedIncomeCalculationTypeOptions),this.loanProduct.capitalizedIncomeCalculationType=t,t=this.optionDataLookUp(this.loanProduct.capitalizedIncomeStrategy,this.loanProductsTemplate.capitalizedIncomeStrategyOptions),this.loanProduct.capitalizedIncomeStrategy=t,t=this.optionDataLookUp(this.loanProduct.capitalizedIncomeType,this.loanProductsTemplate.capitalizedIncomeTypeOptions),this.loanProduct.capitalizedIncomeType=t),this.isAdvancedPaymentAllocation&&this.loanProduct.enableBuyDownFee&&(t=this.optionDataLookUp(this.loanProduct.buyDownFeeCalculationType,this.loanProductsTemplate.buyDownFeeCalculationTypeOptions),this.loanProduct.buyDownFeeCalculationType=t,t=this.optionDataLookUp(this.loanProduct.buyDownFeeStrategy,this.loanProductsTemplate.buyDownFeeStrategyOptions),this.loanProduct.buyDownFeeStrategy=t,t=this.optionDataLookUp(this.loanProduct.buyDownFeeIncomeType,this.loanProductsTemplate.buyDownFeeIncomeTypeOptions),this.loanProduct.buyDownFeeIncomeType=t),t=this.optionDataLookUp(this.loanProduct.interestRateFrequencyType,this.loanProductsTemplate.interestRateFrequencyTypeOptions),this.loanProduct.interestRateFrequencyType=t,t=this.optionDataLookUp(this.loanProduct.repaymentStartDateType,this.loanProductsTemplate.repaymentStartDateTypeOptions),this.loanProduct.repaymentStartDateType=t,this.loanProduct.delinquencyBucketId&&(this.loanProduct.delinquencyBucket=this.delinquencyBucketLookUp(this.loanProduct.delinquencyBucketId,this.loanProductsTemplate.delinquencyBucketOptions));let n=this.codeNameLookUpByCode(this.loanProduct.transactionProcessingStrategyCode,this.loanProductsTemplate.transactionProcessingStrategyOptions);this.loanProduct.transactionProcessingStrategyName=n.name,(!this.loanProduct.loanScheduleType||!this.loanProduct.loanScheduleType.value)&&(this.loanProduct.loanScheduleType=this.optionDataLookUpByCode(this.loanProduct.loanScheduleType,this.loanProductsTemplate.loanScheduleTypeOptions)),this.isAdvancedPaymentAllocation&&((!this.loanProduct.loanScheduleProcessingType||!this.loanProduct.loanScheduleProcessingType.value)&&(this.loanProduct.loanScheduleProcessingType=this.optionDataLookUpByCode(this.loanProduct.loanScheduleProcessingType,this.loanProductsTemplate.loanScheduleProcessingTypeOptions)),this.loanProduct.chargeOffBehaviour.value||(this.loanProduct.chargeOffBehaviour=this.stringEnumOptionDataLookUp(this.loanProduct.chargeOffBehaviour,this.loanProductsTemplate.chargeOffBehaviourOptions)))}if(this.loanProduct.advancedPaymentAllocationTransactionTypes){let t=this.loanProduct.advancedPaymentAllocationTransactionTypes.concat(this.loanProduct.creditAllocationTransactionTypes),n=this.loanProduct.advancedPaymentAllocationTypes.concat(this.loanProduct.creditAllocationAllocationTypes);this.advancePaymentAllocationData={transactionTypes:t,allocationTypes:n,futureInstallmentAllocationRules:this.loanProduct.advancedPaymentAllocationFutureInstallmentAllocationRules}}else{let t=this.loanProductsTemplate.advancedPaymentAllocationTransactionTypes.concat(this.loanProductsTemplate.creditAllocationTransactionTypes),n=this.loanProductsTemplate.advancedPaymentAllocationTypes.concat(this.loanProductsTemplate.creditAllocationAllocationTypes);this.advancePaymentAllocationData={transactionTypes:t,allocationTypes:n,futureInstallmentAllocationRules:this.loanProductsTemplate.advancedPaymentAllocationFutureInstallmentAllocationRules}}}optionDataLookUp(t,n){let i=null;return n.some(s=>{s.id===t&&(i={id:s.id,code:s.code,value:s.value||s.name})}),i}stringEnumOptionDataLookUp(t,n){let i;return n.some(s=>{s.id===t&&(i={id:s.id,code:s.code,value:s.value})}),i}optionDataLookUpByCode(t,n){let i;return n.some(s=>{s.code===t&&(i={id:s.id||0,code:s.code,value:s.value||s.name})}),i}codeNameLookUpByCode(t,n){let i;return n.some(s=>{s.code===t&&(i={code:s.code,name:s.name})}),i}glAccountLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name,glCode:s.glCode})}),i}chargeLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name,penalty:s.penalty})}),i}paymentTypeLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name,isSystemDefined:!1})}),i}delinquencyBucketLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name})}),i}accountingRule(){return this.loanProduct.accountingRule.id?this.loanProduct.accountingRule.id:this.loanProduct.accountingRule}get isAccountingAccrualBased(){return this.accountingRule()===3||this.accountingRule()===4}isAccountingEnabled(){return this.accountingRule()>=2}isAdvancedAccountingEnabled(){return this.loanProduct.paymentChannelToFundSourceMappings?.length>0||this.loanProduct.feeToIncomeAccountMappings?.length>0||this.loanProduct.penaltyToIncomeAccountMappings?.length>0||this.loanProduct.chargeOffReasonToExpenseAccountMappings?.length>0||this.loanProduct.buydownfeeClassificationToIncomeAccountMappings?.length>0||this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings?.length>0||this.loanProduct.writeOffReasonsToExpenseMappings?.length>0}getAccountingRuleName(t){return this.accounting.getAccountRuleName(t.toUpperCase())}mapHumanReadableValueStringEnumOptionDataList(t){return t.map(n=>n.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-summary"]],inputs:{action:"action",loanProduct:"loanProduct",loanProductsTemplate:"loanProductsTemplate",useDueForRepaymentsConfigurations:"useDueForRepaymentsConfigurations",paymentAllocations:"paymentAllocations",creditAllocations:"creditAllocations",supportedInterestRefundTypes:"supportedInterestRefundTypes"},features:[Uo],decls:1,vars:1,consts:[[1,"tab-container"],[1,"mat-h2","flex-100"],[1,"mat-h3","flex-fill"],[3,"inset"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"flex-fill"],[1,"flex-60","repayment-strategy"],[1,"flex-fill","layout-row-wrap","responsive-column"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"mat-h4","flex-fill"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","valueConditionType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","borrowerCycleNumber"],["matColumnDef","minValue"],["matColumnDef","defaultValue"],["matColumnDef","maxValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"paymentAllocation","advancePaymentAllocationData"],[3,"creditAllocation","advancePaymentAllocationData"],[1,"flex-fill","layout-row","responsive-column"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],[1,"mat-h4","flex-100"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"],["matColumnDef","chargeOffReasonCodeValueId"],["matColumnDef","expenseAccountId"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&E(0,Zwt,330,300,"div",0),n&2&&I(i.loanProduct?0:-1)},dependencies:[ue,fe,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Dr,Jy,as,xp,Pi,he,ki,$g,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%;div-margin-top:3px}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-h4[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:200;color:#4461e2}.repayment-strategy[_ngcontent-%COMP%]{color:#4461e2}"]})}}return e})();var ePt=()=>["../"],Au=(()=>{class e{constructor(){this.submitEvent=new bi,this.isAdvancedPaymentAllocation=!1}ngOnInit(){this.advancedPaymentAllocation()}ngOnChanges(t){this.advancedPaymentAllocation()}advancedPaymentAllocation(){this.isAdvancedPaymentAllocation=Ea.isAdvancedPaymentAllocationStrategy(this.loanProduct.transactionProcessingStrategyCode)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-preview-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate",accountingRuleData:"accountingRuleData",loanProduct:"loanProduct"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:12,vars:18,consts:[[3,"action","loanProduct","loanProductsTemplate","useDueForRepaymentsConfigurations","paymentAllocations","creditAllocations","supportedInterestRefundTypes"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(b(0,"mifosx-loan-product-summary",0),l(1,"div",1)(2,"button",2),b(3,"fa-icon",3),c(4),p(5,"translate"),r(),l(6,"button",4),c(7),p(8,"translate"),r(),l(9,"button",5),R("click",function(){return i.submitEvent.emit()}),c(10),p(11,"translate"),r()()),n&2&&(g("action","preview")("loanProduct",i.loanProduct)("loanProductsTemplate",i.loanProductsTemplate)("useDueForRepaymentsConfigurations",i.loanProduct.useDueForRepaymentsConfigurations)("paymentAllocations",i.loanProduct.paymentAllocation)("creditAllocations",i.loanProduct.creditAllocation)("supportedInterestRefundTypes",i.loanProduct.supportedInterestRefundTypes),a(4),v(" ",m(5,11,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(17,ePt)),a(),v(" ",m(8,13,"labels.buttons.Cancel")," "),a(3),v(" ",m(11,15,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,xe,Ou,qi,ke,he],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-h4[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:200;color:#4461e2}.repayment-strategy[_ngcontent-%COMP%]{color:#4461e2}"]})}}return e})();function tPt(e,o){e&1&&b(0,"fa-icon",15)}function iPt(e,o){e&1&&b(0,"fa-icon",15)}function nPt(e,o){e&1&&b(0,"fa-icon",16)}function oPt(e,o){e&1&&b(0,"fa-icon",17)}function aPt(e,o){e&1&&b(0,"fa-icon",18)}function rPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function lPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function sPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function cPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST REFUND"))}function pPt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,cPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-interest-refund-step",19),R("supportedInterestRefundTypes",function(i){V(t);let s=w();return q(s.setSupportedInterestRefundTypes(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanProductInterestRefundForm),a(2),g("loanProductsTemplate",t.loanProductsTemplate)}}function mPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PAYMENT ALLOCATION"))}function dPt(e,o){if(e&1){let t=Y();l(0,"mat-step"),F(1,mPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-payment-strategy-step",20),R("setPaymentAllocation",function(i){V(t);let s=w();return q(s.setPaymentAllocation(i))})("setCreditAllocation",function(i){V(t);let s=w();return q(s.setCreditAllocation(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();a(2),g("advancedPaymentAllocations",t.advancedPaymentAllocations)("advancedCreditAllocations",t.advancedCreditAllocations)("advancedPaymentAllocationTransactionTypes",t.loanProductsTemplate.advancedPaymentAllocationTransactionTypes)("paymentAllocationOrderDefault",t.loanProductsTemplate.advancedPaymentAllocationTypes)("advancedCreditAllocationTransactionTypes",t.loanProductsTemplate.creditAllocationTransactionTypes)("creditAllocationOrderDefault",t.loanProductsTemplate.creditAllocationAllocationTypes)}}function uPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function fPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function hPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DEFERRED INCOME RECOGNITION"))}function gPt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,hPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-capitalized-income-step",21),R("setViewChildForm",function(i){V(t);let s=w();return q(s.setViewChildForm(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanIncomeCapitalizationForm),a(2),g("deferredIncomeRecognition",t.deferredIncomeRecognition)("capitalizedIncomeCalculationTypeOptions",t.loanProductsTemplate.capitalizedIncomeCalculationTypeOptions)("capitalizedIncomeStrategyOptions",t.loanProductsTemplate.capitalizedIncomeStrategyOptions)("capitalizedIncomeTypeOptions",t.loanProductsTemplate.capitalizedIncomeTypeOptions)("buyDownFeeCalculationTypeOptions",t.loanProductsTemplate.buyDownFeeCalculationTypeOptions)("buyDownFeeStrategyOptions",t.loanProductsTemplate.buyDownFeeStrategyOptions)("buyDownFeeIncomeTypeOptions",t.loanProductsTemplate.buyDownFeeIncomeTypeOptions)}}function _Pt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function CPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function vPt(e,o){if(e&1){let t=Y();l(0,"mat-step",14),F(1,CPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-preview-step",22),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("loanProductsTemplate",t.loanProductsTemplate)("accountingRuleData",t.accountingRuleData)("loanProduct",t.loanProduct)}}var Ky=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.loanProducts=T(Ea),this.router=T(qe),this.accounting=T(To),this.advancedPaymentStrategy=T(gm),this.accountingRuleData=[],this.itemsByDefault=[],this.isAdvancedPaymentStrategy=!1,this.paymentAllocation=[],this.creditAllocation=[],this.supportedInterestRefundTypes=[],this.advancedPaymentAllocations=[],this.advancedCreditAllocations=[],this.deferredIncomeRecognition=null,this.loanIncomeCapitalizationForm=null;let t=this.loanProducts;this.route.data.subscribe(n=>{this.loanProductsTemplate=n.loanProductsTemplate;let i=this.loanProductsTemplate.accountingMappingOptions.assetAccountOptions||[],s=this.loanProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.loanProductsTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions=i.concat(s),this.itemsByDefault=t.setItemsByDefault(n.configurations),this.loanProductsTemplate.itemsByDefault=this.itemsByDefault,this.loanProductsTemplate=t.updateLoanProductDefaults(this.loanProductsTemplate,!1)})}ngOnInit(){this.accountingRuleData=this.accounting.getAccountingRulesForLoans(),this.buildAdvancedPaymentAllocation()}get loanProductDetailsForm(){return this.loanProductDetailsStep.loanProductDetailsForm}get loanProductCurrencyForm(){if(this.loanProductCurrencyStep!=null)return this.loanProductCurrencyStep.loanProductCurrencyForm}get loanProductInterestRefundForm(){if(this.loanProductInterestRefundStep!=null)return this.loanProductInterestRefundStep.loanProductInterestRefundForm}get loanProductTermsForm(){return this.loanProductTermsStep.loanProductTermsForm}advancePaymentStrategy(t){this.isAdvancedPaymentStrategy=Ea.isAdvancedPaymentAllocationStrategy(t),this.isAdvancedPaymentStrategy&&(this.deferredIncomeRecognition==null&&(this.deferredIncomeRecognition={}),this.loanProductsTemplate.enableIncomeCapitalization?this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:this.loanProductsTemplate.capitalizedIncomeCalculationTypeOptions[0],capitalizedIncomeStrategy:this.loanProductsTemplate.capitalizedIncomeStrategyOptions[0],capitalizedIncomeType:this.loanProductsTemplate.capitalizedIncomeTypeOptions[0]}:this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!1},this.loanProductsTemplate.enableBuyDownFee?this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!0,buyDownFeeCalculationType:this.loanProductsTemplate.buyDownFeeCalculationTypeOptions[0],buyDownFeeStrategy:this.loanProductsTemplate.buyDownFeeStrategyOptions[0],buyDownFeeIncomeType:this.loanProductsTemplate.buyDownFeeIncomeTypeOptions[0],merchantBuyDownFee:!0}:this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!1})}buildAdvancedPaymentAllocation(){this.advancedPaymentAllocations=this.advancedPaymentStrategy.buildAdvancedPaymentAllocationList(this.loanProductsTemplate)}setPaymentAllocation(t){this.paymentAllocation=t}setCreditAllocation(t){this.creditAllocation=t}setSupportedInterestRefundTypes(t){this.supportedInterestRefundTypes=t}setDeferredIncomeRecognition(t){this.isAdvancedPaymentStrategy&&(this.deferredIncomeRecognition=t)}setViewChildForm(t){let n=t.getRawValue();this.loanIncomeCapitalizationForm=t;let i=n.enableIncomeCapitalization?{enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:n.capitalizedIncomeCalculationType,capitalizedIncomeStrategy:n.capitalizedIncomeStrategy,capitalizedIncomeType:n.capitalizedIncomeType}:{enableIncomeCapitalization:!1},s=n.enableBuyDownFee?{enableBuyDownFee:!0,buyDownFeeCalculationType:n.buyDownFeeCalculationType,buyDownFeeStrategy:n.buyDownFeeStrategy,buyDownFeeIncomeType:n.buyDownFeeIncomeType,merchantBuyDownFee:n.merchantBuyDownFee}:{enableBuyDownFee:!1};this.setDeferredIncomeRecognition({capitalizedIncome:i,buyDownFee:s})}get loanProductSettingsForm(){return this.loanProductSettingsStep.loanProductSettingsForm}get loanProductAccountingForm(){return this.loanProductAccountingStep.loanProductAccountingForm}get loanProductFormValid(){return this.isAdvancedPaymentStrategy?this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanIncomeCapitalizationForm.valid&&this.loanProductAccountingForm.valid:this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanProductAccountingForm.valid}get loanProduct(){let t=at(at(at(at(at(at({},this.loanProductDetailsStep.loanProductDetails),this.loanProductCurrencyStep.loanProductCurrency),this.loanProductTermsStep.loanProductTerms),this.loanProductSettingsStep.loanProductSettings),this.loanProductChargesStep.loanProductCharges),this.loanProductAccountingStep.loanProductAccounting);return this.isAdvancedPaymentStrategy&&(t.paymentAllocation=this.paymentAllocation,t.creditAllocation=this.creditAllocation,t.supportedInterestRefundTypes=this.supportedInterestRefundTypes,this.deferredIncomeRecognition.capitalizedIncome!=null&&(t.enableIncomeCapitalization=this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization,this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization&&(t.capitalizedIncomeCalculationType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType,t.capitalizedIncomeStrategy=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy,t.capitalizedIncomeType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType)),this.deferredIncomeRecognition.buyDownFee!=null&&(t.enableBuyDownFee=this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee,this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee&&(t.buyDownFeeCalculationType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,t.buyDownFeeStrategy=this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,t.buyDownFeeIncomeType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,t.merchantBuyDownFee=this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee))),t}submit(){let t=this.loanProducts.buildPayload(this.loanProduct,this.itemsByDefault);t.useDueForRepaymentsConfigurations===!0&&(t.dueDaysForRepaymentEvent=null,t.overDueDaysForRepaymentEvent=null),this.isAdvancedPaymentStrategy?t.supportedInterestRefundTypes=this.mapStringEnumOptionToIdList(t.supportedInterestRefundTypes):(delete t.supportedInterestRefundTypes,delete t.daysInYearCustomStrategy),delete t.useDueForRepaymentsConfigurations,this.productsService.createLoanProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}mapStringEnumOptionToIdList(t){return t?t.map(n=>n.id):[]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-loan-product"]],viewQuery:function(n,i){if(n&1&&(Ee(cm,7),Ee(pm,7),Ee(hm,7),Ee(_m,7),Ee(mm,7),Ee(dm,7),Ee(um,7),Ee(fm,7)),n&2){let s;Te(s=Me())&&(i.loanProductDetailsStep=s.first),Te(s=Me())&&(i.loanProductCurrencyStep=s.first),Te(s=Me())&&(i.loanProductInterestRefundStep=s.first),Te(s=Me())&&(i.loanProductDeferredIncomeRecognitionStep=s.first),Te(s=Me())&&(i.loanProductTermsStep=s.first),Te(s=Me())&&(i.loanProductSettingsStep=s.first),Te(s=Me())&&(i.loanProductChargesStep=s.first),Te(s=Me())&&(i.loanProductAccountingStep=s.first)}},decls:30,vars:22,consts:[["loanProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loanProductsTemplate"],[3,"advancePaymentStrategy","loanProductsTemplate","isLinkedToFloatingInterestRates"],[3,"loanProductsTemplate","currencyCode","multiDisburseLoan"],[3,"loanProductsTemplate","accountingRuleData","loanProductFormValid","deferredIncomeRecognition"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"supportedInterestRefundTypes","loanProductsTemplate"],[3,"setPaymentAllocation","setCreditAllocation","advancedPaymentAllocations","advancedCreditAllocations","advancedPaymentAllocationTransactionTypes","paymentAllocationOrderDefault","advancedCreditAllocationTransactionTypes","creditAllocationOrderDefault"],[3,"setViewChildForm","deferredIncomeRecognition","capitalizedIncomeCalculationTypeOptions","capitalizedIncomeStrategyOptions","capitalizedIncomeTypeOptions","buyDownFeeCalculationTypeOptions","buyDownFeeStrategyOptions","buyDownFeeIncomeTypeOptions"],[3,"submitEvent","loanProductsTemplate","accountingRuleData","loanProduct"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,tPt,1,0,"ng-template",3)(4,iPt,1,0,"ng-template",4)(5,nPt,1,0,"ng-template",5)(6,oPt,1,0,"ng-template",6)(7,aPt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,rPt,2,3,"ng-template",9),b(10,"mifosx-loan-product-details-step",10),r(),l(11,"mat-step",8),F(12,lPt,2,3,"ng-template",9),b(13,"mifosx-loan-product-currency-step",10),r(),l(14,"mat-step",8),F(15,sPt,2,3,"ng-template",9),l(16,"mifosx-loan-product-settings-step",11),R("advancePaymentStrategy",function(u){return V(s),q(i.advancePaymentStrategy(u))}),r()(),E(17,pPt,4,2,"mat-step",8),E(18,dPt,4,6,"mat-step"),l(19,"mat-step",8),F(20,uPt,2,3,"ng-template",9),b(21,"mifosx-loan-product-terms-step",10),r(),l(22,"mat-step"),F(23,fPt,2,3,"ng-template",9),b(24,"mifosx-loan-product-charges-step",12),r(),E(25,gPt,4,8,"mat-step",8),l(26,"mat-step",8),F(27,_Pt,2,3,"ng-template",9),b(28,"mifosx-loan-product-accounting-step",13),r(),E(29,vPt,3,3,"mat-step",14),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.loanProductDetailsForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate),a(),g("stepControl",i.loanProductCurrencyForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate),a(),g("stepControl",i.loanProductSettingsForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate)("isLinkedToFloatingInterestRates",i.loanProductTermsForm.get("isLinkedToFloatingInterestRates")),a(),I(i.isAdvancedPaymentStrategy?17:-1),a(),I(i.isAdvancedPaymentStrategy?18:-1),a(),g("stepControl",i.loanProductTermsForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate),a(3),g("loanProductsTemplate",i.loanProductsTemplate)("currencyCode",i.loanProductCurrencyForm.get("currencyCode"))("multiDisburseLoan",i.loanProductSettingsForm.get("multiDisburseLoan")),a(),I(i.isAdvancedPaymentStrategy?25:-1),a(),g("stepControl",i.loanProductAccountingForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate)("accountingRuleData",i.accountingRuleData)("loanProductFormValid",i.loanProductFormValid)("deferredIncomeRecognition",i.deferredIncomeRecognition),a(),I(i.loanProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,cm,pm,dm,hm,Iu,Yg,mm,um,_m,fm,Au,he],styles:[".container[_ngcontent-%COMP%]{max-width:86rem;width:96%;padding-bottom:30px}fa-icon[_ngcontent-%COMP%]{position:relative;left:5%}"]})}}return e})();var xPt=()=>["./general"],bPt=e=>["./datatables",e];function yPt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,bPt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function SPt(e,o){if(e&1&&F(0,yPt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var Xy=(()=>{class e{constructor(){this.route=T(Ie),this.loanProductDatatables=[],this.route.data.subscribe(t=>{this.loanProductDatatables=t.loanProductDatatables})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-loan-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,SPt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,xPt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.loanProductDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:90rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function wPt(e,o){e&1&&b(0,"fa-icon",16)}function PPt(e,o){e&1&&b(0,"fa-icon",16)}function TPt(e,o){e&1&&b(0,"fa-icon",17)}function MPt(e,o){e&1&&b(0,"fa-icon",18)}function DPt(e,o){e&1&&b(0,"fa-icon",19)}function EPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function IPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function OPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function APt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST REFUND"))}function FPt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,APt,2,3,"ng-template",9),l(2,"mifosx-loan-product-interest-refund-step",20),R("supportedInterestRefundTypes",function(i){V(t);let s=w();return q(s.setSupportedInterestRefundTypes(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanProductInterestRefundForm),a(2),g("loanProductsTemplate",t.loanProductAndTemplate)}}function kPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PAYMENT ALLOCATION"))}function BPt(e,o){if(e&1){let t=Y();l(0,"mat-step",12),F(1,kPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-payment-strategy-step",21),R("setPaymentAllocation",function(i){V(t);let s=w();return q(s.setPaymentAllocation(i))})("setCreditAllocation",function(i){V(t);let s=w();return q(s.setCreditAllocation(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();a(2),g("advancedPaymentAllocations",t.advancedPaymentAllocations)("advancedCreditAllocations",t.advancedCreditAllocations)("advancedPaymentAllocationTransactionTypes",t.loanProductAndTemplate.advancedPaymentAllocationTransactionTypes)("paymentAllocationOrderDefault",t.loanProductAndTemplate.advancedPaymentAllocationTypes)("advancedCreditAllocationTransactionTypes",t.loanProductAndTemplate.creditAllocationTransactionTypes)("creditAllocationOrderDefault",t.loanProductAndTemplate.creditAllocationAllocationTypes)}}function RPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function NPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function LPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DEFERRED INCOME RECOGNITION"))}function VPt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,LPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-capitalized-income-step",22),R("setViewChildForm",function(i){V(t);let s=w();return q(s.setViewChildForm(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanIncomeCapitalizationForm),a(2),g("deferredIncomeRecognition",t.deferredIncomeRecognition)("capitalizedIncomeCalculationTypeOptions",t.loanProductAndTemplate.capitalizedIncomeCalculationTypeOptions)("capitalizedIncomeStrategyOptions",t.loanProductAndTemplate.capitalizedIncomeStrategyOptions)("capitalizedIncomeTypeOptions",t.loanProductAndTemplate.capitalizedIncomeTypeOptions)("buyDownFeeCalculationTypeOptions",t.loanProductAndTemplate.buyDownFeeCalculationTypeOptions)("buyDownFeeStrategyOptions",t.loanProductAndTemplate.buyDownFeeStrategyOptions)("buyDownFeeIncomeTypeOptions",t.loanProductAndTemplate.buyDownFeeIncomeTypeOptions)}}function qPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function zPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function HPt(e,o){if(e&1){let t=Y();l(0,"mat-step",15),F(1,zPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-preview-step",23),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("loanProductsTemplate",t.loanProductAndTemplate)("accountingRuleData",t.accountingRuleData)("loanProduct",t.loanProduct)}}var Zy=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.loanProducts=T(Ea),this.router=T(qe),this.accounting=T(To),this.advancedPaymentStrategy=T(gm),this.accountingRuleData=[],this.itemsByDefault=[],this.isAdvancedPaymentStrategy=!1,this.wasPaymentAllocationChanged=!1,this.paymentAllocation=[],this.creditAllocation=[],this.advancedPaymentAllocations=[],this.advancedCreditAllocations=[],this.supportedInterestRefundTypes=[],this.deferredIncomeRecognition=null,this.loanIncomeCapitalizationForm=null;let t=this.loanProducts;this.route.data.subscribe(n=>{this.loanProductAndTemplate=n.loanProductAndTemplate;let i=this.loanProductAndTemplate.accountingMappingOptions.assetAccountOptions||[],s=this.loanProductAndTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.loanProductAndTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions=i.concat(s),this.itemsByDefault=t.setItemsByDefault(n.configurations),this.loanProductAndTemplate.itemsByDefault=this.itemsByDefault})}ngOnInit(){this.accountingRuleData=this.accounting.getAccountingRulesForLoans(),this.buildAdvancedPaymentAllocation(),this.advancePaymentStrategy(this.loanProductAndTemplate.transactionProcessingStrategyCode),this.deferredIncomeRecognition==null&&(this.deferredIncomeRecognition={}),this.isAdvancedPaymentStrategy&&(this.paymentAllocation=this.loanProductAndTemplate.paymentAllocation,this.creditAllocation=this.loanProductAndTemplate.creditAllocation,this.supportedInterestRefundTypes=this.loanProductAndTemplate.supportedInterestRefundTypes,this.loanProductAndTemplate.enableIncomeCapitalization?this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:this.loanProductAndTemplate.capitalizedIncomeCalculationType.id,capitalizedIncomeStrategy:this.loanProductAndTemplate.capitalizedIncomeStrategy.id,capitalizedIncomeType:this.loanProductAndTemplate.capitalizedIncomeType.id}:this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!1},this.loanProductAndTemplate.enableBuyDownFee?this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!0,buyDownFeeCalculationType:this.loanProductAndTemplate.buyDownFeeCalculationType.id,buyDownFeeStrategy:this.loanProductAndTemplate.buyDownFeeStrategy.id,buyDownFeeIncomeType:this.loanProductAndTemplate.buyDownFeeIncomeType.id,merchantBuyDownFee:this.loanProductAndTemplate.merchantBuyDownFee}:this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!1})}get loanProductDetailsForm(){return this.loanProductDetailsStep.loanProductDetailsForm}get loanProductCurrencyForm(){return this.loanProductCurrencyStep.loanProductCurrencyForm}get loanProductTermsForm(){return this.loanProductTermsStep.loanProductTermsForm}get loanProductSettingsForm(){return this.loanProductSettingsStep.loanProductSettingsForm}get loanProductInterestRefundForm(){if(this.loanProductInterestRefundStep!=null)return this.loanProductInterestRefundStep.loanProductInterestRefundForm}setViewChildForm(t){this.loanIncomeCapitalizationForm=t;let n=this.loanIncomeCapitalizationForm.getRawValue(),i=n.enableIncomeCapitalization?{enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:n.capitalizedIncomeCalculationType,capitalizedIncomeStrategy:n.capitalizedIncomeStrategy,capitalizedIncomeType:n.capitalizedIncomeType}:{enableIncomeCapitalization:!1},s=n.enableBuyDownFee?{enableBuyDownFee:!0,buyDownFeeCalculationType:n.buyDownFeeCalculationType,buyDownFeeStrategy:n.buyDownFeeStrategy,buyDownFeeIncomeType:n.buyDownFeeIncomeType,merchantBuyDownFee:n.merchantBuyDownFee}:{enableBuyDownFee:!1};this.setDeferredIncomeRecognition({capitalizedIncome:i,buyDownFee:s})}advancePaymentStrategy(t){this.isAdvancedPaymentStrategy=Ea.isAdvancedPaymentAllocationStrategy(t)}buildAdvancedPaymentAllocation(){this.advancedPaymentAllocations=this.advancedPaymentStrategy.buildAdvancedPaymentAllocationList(this.loanProductAndTemplate),this.advancedCreditAllocations=this.advancedPaymentStrategy.buildAdvancedCreditAllocationList(this.loanProductAndTemplate)}setPaymentAllocation(t){this.paymentAllocation=t,this.wasPaymentAllocationChanged=!0}setCreditAllocation(t){this.creditAllocation=t,this.wasPaymentAllocationChanged=!0}setSupportedInterestRefundTypes(t){this.supportedInterestRefundTypes=t}paymentAllocationChanged(t){this.wasPaymentAllocationChanged=t}setDeferredIncomeRecognition(t){this.isAdvancedPaymentStrategy&&(this.deferredIncomeRecognition=t)}get loanProductAccountingForm(){return this.loanProductAccountingStep.loanProductAccountingForm}get loanProductFormValidAndNotPristine(){return this.isAdvancedPaymentStrategy?this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanProductAccountingForm.valid&&this.loanIncomeCapitalizationForm!=null&&this.loanIncomeCapitalizationForm.valid&&(!this.loanProductDetailsForm.pristine||!this.loanProductCurrencyForm.pristine||!this.loanProductTermsForm.pristine||!this.loanProductSettingsForm.pristine||!this.loanProductChargesStep.pristine||!this.loanProductAccountingForm.pristine||!this.loanIncomeCapitalizationForm.pristine||this.wasPaymentAllocationChanged):this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanProductAccountingForm.valid&&(!this.loanProductDetailsForm.pristine||!this.loanProductCurrencyForm.pristine||!this.loanProductTermsForm.pristine||!this.loanProductSettingsForm.pristine||!this.loanProductChargesStep.pristine||!this.loanProductAccountingForm.pristine||this.wasPaymentAllocationChanged)}get loanProduct(){let t=at(at(at(at(at(at({},this.loanProductDetailsStep.loanProductDetails),this.loanProductCurrencyStep.loanProductCurrency),this.loanProductTermsStep.loanProductTerms),this.loanProductSettingsStep.loanProductSettings),this.loanProductChargesStep.loanProductCharges),this.loanProductAccountingStep.loanProductAccounting);return t.paymentAllocation=[],t.creditAllocation=[],t.supportedInterestRefundTypes=[],this.isAdvancedPaymentStrategy&&(t.paymentAllocation=this.paymentAllocation,t.creditAllocation=this.creditAllocation,t.supportedInterestRefundTypes=this.supportedInterestRefundTypes,this.deferredIncomeRecognition!=null&&(this.deferredIncomeRecognition.capitalizedIncome!=null&&(t.enableIncomeCapitalization=this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization,this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization&&(t.capitalizedIncomeCalculationType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType,t.capitalizedIncomeStrategy=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy,t.capitalizedIncomeType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType)),this.deferredIncomeRecognition.buyDownFee!=null&&(t.enableBuyDownFee=this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee,this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee&&(t.buyDownFeeCalculationType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,t.buyDownFeeStrategy=this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,t.buyDownFeeIncomeType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,t.merchantBuyDownFee=this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee)))),t}submit(){let t=this.loanProducts.buildPayload(this.loanProduct,this.itemsByDefault);t.useDueForRepaymentsConfigurations===!0&&(t.dueDaysForRepaymentEvent=null,t.overDueDaysForRepaymentEvent=null),this.isAdvancedPaymentStrategy?t.supportedInterestRefundTypes=this.mapStringEnumOptionToIdList(t.supportedInterestRefundTypes):(delete t.supportedInterestRefundTypes,delete t.daysInYearCustomStrategy),delete t.useDueForRepaymentsConfigurations,this.productsService.updateLoanProduct(this.loanProductAndTemplate.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}mapStringEnumOptionToIdList(t){return t.map(n=>n.id)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-loan-product"]],viewQuery:function(n,i){if(n&1&&(Ee(cm,7),Ee(pm,7),Ee(hm,7),Ee(_m,7),Ee(mm,7),Ee(dm,7),Ee(um,7),Ee(fm,7)),n&2){let s;Te(s=Me())&&(i.loanProductDetailsStep=s.first),Te(s=Me())&&(i.loanProductCurrencyStep=s.first),Te(s=Me())&&(i.loanProductInterestRefundStep=s.first),Te(s=Me())&&(i.loanProductCapitalizedIncomeStep=s.first),Te(s=Me())&&(i.loanProductTermsStep=s.first),Te(s=Me())&&(i.loanProductSettingsStep=s.first),Te(s=Me())&&(i.loanProductChargesStep=s.first),Te(s=Me())&&(i.loanProductAccountingStep=s.first)}},decls:30,vars:22,consts:[["loanProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed","",3,"stepControl"],["matStepLabel",""],[3,"loanProductsTemplate"],[3,"advancePaymentStrategy","loanProductsTemplate","isLinkedToFloatingInterestRates"],["completed",""],[3,"loanProductsTemplate","currencyCode","multiDisburseLoan"],[3,"loanProductsTemplate","accountingRuleData","loanProductFormValid","deferredIncomeRecognition"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"supportedInterestRefundTypes","loanProductsTemplate"],[3,"setPaymentAllocation","setCreditAllocation","advancedPaymentAllocations","advancedCreditAllocations","advancedPaymentAllocationTransactionTypes","paymentAllocationOrderDefault","advancedCreditAllocationTransactionTypes","creditAllocationOrderDefault"],[3,"setViewChildForm","deferredIncomeRecognition","capitalizedIncomeCalculationTypeOptions","capitalizedIncomeStrategyOptions","capitalizedIncomeTypeOptions","buyDownFeeCalculationTypeOptions","buyDownFeeStrategyOptions","buyDownFeeIncomeTypeOptions"],[3,"submitEvent","loanProductsTemplate","accountingRuleData","loanProduct"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,wPt,1,0,"ng-template",3)(4,PPt,1,0,"ng-template",4)(5,TPt,1,0,"ng-template",5)(6,MPt,1,0,"ng-template",6)(7,DPt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,EPt,2,3,"ng-template",9),b(10,"mifosx-loan-product-details-step",10),r(),l(11,"mat-step",8),F(12,IPt,2,3,"ng-template",9),b(13,"mifosx-loan-product-currency-step",10),r(),l(14,"mat-step",8),F(15,OPt,2,3,"ng-template",9),l(16,"mifosx-loan-product-settings-step",11),R("advancePaymentStrategy",function(u){return V(s),q(i.advancePaymentStrategy(u))}),r()(),E(17,FPt,4,2,"mat-step",8),E(18,BPt,4,6,"mat-step",12),l(19,"mat-step",8),F(20,RPt,2,3,"ng-template",9),b(21,"mifosx-loan-product-terms-step",10),r(),l(22,"mat-step",12),F(23,NPt,2,3,"ng-template",9),b(24,"mifosx-loan-product-charges-step",13),r(),E(25,VPt,4,8,"mat-step",8),l(26,"mat-step",8),F(27,qPt,2,3,"ng-template",9),b(28,"mifosx-loan-product-accounting-step",14),r(),E(29,HPt,3,3,"mat-step",15),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.loanProductDetailsForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate),a(),g("stepControl",i.loanProductCurrencyForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate),a(),g("stepControl",i.loanProductSettingsForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate)("isLinkedToFloatingInterestRates",i.loanProductTermsForm.get("isLinkedToFloatingInterestRates")),a(),I(i.isAdvancedPaymentStrategy?17:-1),a(),I(i.isAdvancedPaymentStrategy?18:-1),a(),g("stepControl",i.loanProductTermsForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate),a(3),g("loanProductsTemplate",i.loanProductAndTemplate)("currencyCode",i.loanProductCurrencyForm.get("currencyCode"))("multiDisburseLoan",i.loanProductSettingsForm.get("multiDisburseLoan")),a(),I(i.isAdvancedPaymentStrategy?25:-1),a(),g("stepControl",i.loanProductAccountingForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate)("accountingRuleData",i.accountingRuleData)("loanProductFormValid",i.loanProductFormValidAndNotPristine)("deferredIncomeRecognition",i.deferredIncomeRecognition),a(),I(i.loanProductFormValidAndNotPristine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,cm,pm,dm,hm,Yg,Iu,mm,um,_m,fm,Au,he],styles:[".container[_ngcontent-%COMP%]{max-width:86rem;width:96%;padding-bottom:30px}"]})}}return e})();var GPt=["buttonSavingProduct"],jPt=["templateButtonSavingProduct"],$Pt=["savingProductTable"],UPt=["templateSavingProductTable"],WPt=()=>[10,25,50,100],QPt=()=>["create"],YPt=e=>[e];function JPt(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,QPt)),a(2),v(" ",m(3,2,"labels.text.Create Savings Product")," "))}function KPt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function XPt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function ZPt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function eTt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function tTt(e,o){e&1&&b(0,"tr",26)}function iTt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,YPt,t.id))}}function nTt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.text.Create Savings Product")),a(3),h(m(5,7,"labels.text.This option allows you to create new savings product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function oTt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter saving products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function aTt(e,o){if(e&1){let t=Y();l(0,"h4",28),c(1),p(2,"translate"),l(3,"a",32),c(4),p(5,"translate"),r()(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of saving products in the organization"),": "),a(3),h(m(5,7,"labels.heading.Savings Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var e3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName"],this.route.data.subscribe(t=>{this.savingProductsData=t.savingProducts})}ngOnInit(){this.dataSource=new Wt(this.savingProductsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showSavingsProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonSavingProduct,this.buttonSavingProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showSavingsProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateSavingProductTable,this.savingProductTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showSavingsProductsPage=!1,this.configurationWizardService.showSavingsProductsList=!1,this.configurationWizardService.showShareProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showSavingsProductsPage=!1,this.configurationWizardService.showSavingsProductsList=!1,this.configurationWizardService.showSavingsProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(GPt,5),Ee(jPt,5),Ee($Pt,5),Ee(UPt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonSavingProduct=s.first),Te(s=Me())&&(i.templateButtonSavingProduct=s.first),Te(s=Me())&&(i.savingProductTable=s.first),Te(s=Me())&&(i.templateSavingProductTable=s.first)}},decls:30,vars:9,consts:[["buttonSavingProduct",""],["filter",""],["savingProductTable",""],["templateButtonSavingProduct",""],["templateFilter",""],["templateSavingProductTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102629497/Savings+Products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,JPt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,KPt,3,3,"th",16)(17,XPt,2,1,"td",17),Z(),X(18,18),F(19,ZPt,3,3,"th",16)(20,eTt,2,1,"td",17),Z(),F(21,tTt,1,0,"tr",19)(22,iTt,1,3,"tr",20),r(),b(23,"mat-paginator",21),r()(),F(24,nTt,16,15,"ng-template",null,3,ti)(26,oTt,13,12,"ng-template",null,4,ti)(28,aTt,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_SAVINGSPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,WPt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Cm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductDetailsForm()}ngOnInit(){this.savingProductsTemplate&&this.savingProductDetailsForm.patchValue({name:this.savingProductsTemplate.name,shortName:this.savingProductsTemplate.shortName,description:this.savingProductsTemplate.description})}createSavingProductDetailsForm(){this.savingProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:[""]})}get savingProductDetails(){return this.savingProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-details-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:43,vars:46,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required","",3,"matTooltip"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",2)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",4),p(20,"translate"),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",5)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"textarea",6),p(33,"translate"),r()(),l(34,"div",7)(35,"button",8),b(36,"fa-icon",9),c(37),p(38,"translate"),r(),l(39,"button",10),c(40),p(41,"translate"),b(42,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.savingProductDetailsForm),a(4),h(m(5,18,"labels.inputs.Product Name")),a(2),g("matTooltip",Le(m(7,20,"tooltips.A unique identifier for the saving product"))),a(3),le(" ",m(10,22,"labels.inputs.Product Name")," ",m(11,24,"labels.commons.is")," "),a(4),h(m(14,26,"labels.commons.required")),a(4),h(m(18,28,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(20,30,"tooltips.A unique identifier for the saving product"))),a(3),le(" ",m(23,32,"labels.inputs.Short Name")," ",m(24,34,"labels.commons.is")," "),a(4),h(m(27,36,"labels.commons.required")),a(4),h(m(31,38,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(33,40,"tooltips.Provides additional information"))),a(5),v(" ",m(38,42,"labels.buttons.Previous")," "),a(3),v(" ",m(41,44,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,si,Ln,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function rTt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var vm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductCurrencyForm()}ngOnInit(){this.currencyData=this.savingProductsTemplate.currencyOptions,this.savingProductCurrencyForm.patchValue({currencyCode:this.savingProductsTemplate.currency.code||this.currencyData[0].code,digitsAfterDecimal:this.savingProductsTemplate.currency.code?this.savingProductsTemplate.currency.decimalPlaces:2,inMultiplesOf:this.savingProductsTemplate.currency.inMultiplesOf||""})}createSavingProductCurrencyForm(){this.savingProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:[""]})}get savingProductCurrency(){return this.savingProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-currency-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:52,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,rTt,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()()(),l(43,"div",7)(44,"button",8),b(45,"fa-icon",9),c(46),p(47,"translate"),r(),l(48,"button",10),c(49),p(50,"translate"),b(51,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.savingProductCurrencyForm),a(4),h(m(5,21,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,23,"tooltips.The currency to be used"))),a(2),we(i.currencyData),a(3),le(" ",m(12,25,"labels.inputs.Currency")," ",m(13,27,"labels.commons.is")," "),a(4),v("r",m(16,29,"labels.commons.equired")),a(4),h(m(20,31,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,33,"tooltips.Track and report saving account"))),a(3),le(" ",m(25,35,"labels.inputs.Decimal Places")," ",m(26,37,"labels.commons.is")," "),a(4),h(m(29,39,"labels.commons.required")),a(4),h(m(33,41,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,43,"tooltips.Amount to be rounded off"))),a(3),le(" ",m(38,45,"labels.inputs.Currency in multiples of")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(5),v(" ",m(47,51,"labels.buttons.Previous")," "),a(3),v(" ",m(50,53,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function lTt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Nominal Annual Interest")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sTt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Nominal Annual Interest")," must be zero or greater "))}function cTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function pTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function mTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function dTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}var xm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductTermsForm()}ngOnInit(){this.interestCompoundingPeriodTypeData=this.savingProductsTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingProductsTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingProductsTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingProductsTemplate.interestCalculationDaysInYearTypeOptions,this.savingProductTermsForm.patchValue({nominalAnnualInterestRate:this.savingProductsTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingProductsTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingProductsTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingProductsTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingProductsTemplate.interestCalculationDaysInYearType.id})}createSavingProductTermsForm(){this.savingProductTermsForm=this.formBuilder.group({nominalAnnualInterestRate:["",[ce.required,ce.min(0)]],interestCompoundingPeriodType:["",ce.required],interestPostingPeriodType:["",ce.required],interestCalculationType:["",ce.required],interestCalculationDaysInYearType:["",ce.required]})}get savingProductTerms(){return this.savingProductTermsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-terms-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:80,vars:80,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required","","min","0","step","0.01",3,"matTooltip"],[4,"ngIf"],[1,"flex-48","hide-lt-md"],["formControlName","interestCompoundingPeriodType","required","",3,"matTooltip"],[3,"value"],["formControlName","interestPostingPeriodType","required","",3,"matTooltip"],["formControlName","interestCalculationType","required","",3,"matTooltip"],["formControlName","interestCalculationDaysInYearType","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),F(8,lTt,7,9,"mat-error",4)(9,sTt,3,3,"mat-error",4),r(),b(10,"span",5),l(11,"mat-form-field",2)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",6),p(16,"translate"),Se(17,cTt,3,5,"mat-option",7,Pe),r(),l(19,"mat-error"),c(20),p(21,"translate"),p(22,"translate"),l(23,"strong"),c(24),p(25,"translate"),r()()(),l(26,"mat-form-field",2)(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",8),p(31,"translate"),Se(32,pTt,3,5,"mat-option",7,Pe),r(),l(34,"mat-error"),c(35),p(36,"translate"),p(37,"translate"),l(38,"strong"),c(39),p(40,"translate"),r()()(),l(41,"mat-form-field",2)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",9),p(46,"translate"),Se(47,mTt,3,5,"mat-option",7,Pe),r(),l(49,"mat-error"),c(50),p(51,"translate"),p(52,"translate"),l(53,"strong"),c(54),p(55,"translate"),r()()(),l(56,"mat-form-field",2)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",10),p(61,"translate"),Se(62,dTt,3,5,"mat-option",7,Pe),r(),l(64,"mat-error"),c(65),p(66,"translate"),p(67,"translate"),l(68,"strong"),c(69),p(70,"translate"),r()()()(),l(71,"div",11)(72,"button",12),b(73,"fa-icon",13),c(74),p(75,"translate"),r(),l(76,"button",14),c(77),p(78,"translate"),b(79,"fa-icon",15),r()()()),n&2&&(g("formGroup",i.savingProductTermsForm),a(4),h(m(5,32,"labels.inputs.Nominal Annual Interest")),a(2),g("matTooltip",Le(m(7,34,"tooltips.The default interest rate set"))),a(2),g("ngIf",i.savingProductTermsForm.get("nominalAnnualInterestRate").hasError("required")),a(),g("ngIf",i.savingProductTermsForm.get("nominalAnnualInterestRate").hasError("min")),a(4),h(m(14,36,"labels.inputs.Interest Compounding Period")),a(2),g("matTooltip",Le(m(16,38,"tooltips.The period at which interest rate"))),a(2),we(i.interestCompoundingPeriodTypeData),a(3),le(" ",m(21,40,"labels.inputs.Interest Compounding Period")," ",m(22,42,"labels.commons.is")," "),a(4),h(m(25,44,"labels.commons.required")),a(4),h(m(29,46,"labels.inputs.Interest Posting Period")),a(2),g("matTooltip",Le(m(31,48,"tooltips.Interest rate is posted or credited to a saving account"))),a(2),we(i.interestPostingPeriodTypeData),a(3),le(" ",m(36,50,"labels.inputs.Interest Posting Period")," ",m(37,52,"labels.commons.is")," "),a(4),h(m(40,54,"labels.commons.required")),a(4),h(m(44,56,"labels.inputs.Interest Calculated using")),a(2),g("matTooltip",Le(m(46,58,"tooltips.The method used to calculate interest"))),a(2),we(i.interestCalculationTypeData),a(3),le(" ",m(51,60,"labels.inputs.Interest Calculated using")," ",m(52,62,"labels.commons.is")," "),a(4),h(m(55,64,"labels.commons.required")),a(4),h(m(59,66,"labels.inputs.Days in Year")),a(2),g("matTooltip",Le(m(61,68,"tooltips.To calculate interest"))),a(2),we(i.interestCalculationDaysInYearTypeData),a(3),le(" ",m(66,70,"labels.inputs.Days in Year")," ",m(67,72,"labels.commons.is")," "),a(4),h(m(70,74,"labels.commons.required")),a(5),v(" ",m(75,76,"labels.buttons.Previous")," "),a(3),v(" ",m(78,78,"labels.buttons.Next")," "))},dependencies:[ue,Js,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he,ki],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function uTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function fTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function hTt(e,o){if(e&1&&(l(0,"mat-form-field",2)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,fTt,2,2,"mat-option",7,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Tax Group")),a(3),we(t.taxGroupData),a(3),le(" ",m(9,6,"labels.inputs.Tax Group")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}function gTt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",24)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",25),p(6,"translate"),r(),l(7,"mat-form-field",24)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",26),p(12,"translate"),r(),l(13,"mat-form-field",24)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",27),p(18,"translate"),r()()),e&2&&(a(3),h(m(4,9,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),a(2),g("matTooltip",Le(m(6,11,"tooltips.Sets the overdraft required for interest calculation"))),a(4),h(m(10,13,"labels.inputs.Nominal Annual Interest for Overdraft")),a(2),g("matTooltip",Le(m(12,15,"tooltips.Default interest rate on overdraft"))),a(4),h(m(16,17,"labels.inputs.Maximum Overdraft Amount Limit")),a(2),g("matTooltip",Le(m(18,19,"tooltips.Sets the maximum allowed overdraft amount"))))}function _Tt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",24)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",28),p(6,"translate"),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()(),l(14,"mat-form-field",24)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",29),p(19,"translate"),l(20,"mat-error"),c(21),p(22,"translate"),p(23,"translate"),l(24,"strong"),c(25),p(26,"translate"),r()()(),l(27,"mat-form-field",24)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",30),p(32,"translate"),l(33,"mat-error"),c(34),p(35,"translate"),p(36,"translate"),l(37,"strong"),c(38),p(39,"translate"),r()()()()),e&2&&(a(3),h(m(4,18,"labels.inputs.Number of Days to Inactive sub-status")),a(2),g("matTooltip",Le(m(6,20,"tooltips.Inactive period to mark an account as Inactive"))),a(3),le(" ",m(9,22,"labels.inputs.Number of Days to Inactive sub-status")," ",m(10,24,"labels.commons.is")," "),a(4),h(m(13,26,"labels.commons.required")),a(4),h(m(17,28,"labels.inputs.Number of Days to Dormant sub-status")),a(2),g("matTooltip",Le(m(19,30,"tooltips.Inactive period to mark an account as Dormant"))),a(3),le(" ",m(22,32,"labels.inputs.Number of Days to Dormant sub-status")," ",m(23,34,"labels.commons.is")," "),a(4),h(m(26,36,"labels.commons.required")),a(4),h(m(30,38,"labels.inputs.Number of Days to Escheat")),a(2),g("matTooltip",Le(m(32,40,"tooltips.Inactive period to mark an account as Escheat"))),a(3),le(" ",m(35,42,"labels.inputs.Number of Days to Escheat")," ",m(36,44,"labels.commons.is")," "),a(4),h(m(39,46,"labels.commons.required")))}var bm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.lockinPeriodFrequencyTypeData=this.savingProductsTemplate.lockinPeriodFrequencyTypeOptions,this.taxGroupData=this.savingProductsTemplate.taxGroupOptions,this.savingProductSettingsForm.patchValue({minRequiredOpeningBalance:this.savingProductsTemplate.minRequiredOpeningBalance,lockinPeriodFrequency:this.savingProductsTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingProductsTemplate.lockinPeriodFrequencyType&&this.savingProductsTemplate.lockinPeriodFrequencyType.id,withdrawalFeeForTransfers:this.savingProductsTemplate.withdrawalFeeForTransfers,minBalanceForInterestCalculation:this.savingProductsTemplate.minBalanceForInterestCalculation,enforceMinRequiredBalance:this.savingProductsTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingProductsTemplate.minRequiredBalance,allowOverdraft:this.savingProductsTemplate.allowOverdraft,minOverdraftForInterestCalculation:this.savingProductsTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingProductsTemplate.nominalAnnualInterestRateOverdraft,overdraftLimit:this.savingProductsTemplate.overdraftLimit,withHoldTax:this.savingProductsTemplate.withHoldTax,taxGroupId:this.savingProductsTemplate.taxGroup&&this.savingProductsTemplate.taxGroup.id,isDormancyTrackingActive:this.savingProductsTemplate.isDormancyTrackingActive,daysToInactive:this.savingProductsTemplate.daysToInactive,daysToDormancy:this.savingProductsTemplate.daysToDormancy,daysToEscheat:this.savingProductsTemplate.daysToEscheat})}createSavingProductSettingsForm(){this.savingProductSettingsForm=this.formBuilder.group({minRequiredOpeningBalance:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],withdrawalFeeForTransfers:[!1],minBalanceForInterestCalculation:[""],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],allowOverdraft:[!1],withHoldTax:[!1],isDormancyTrackingActive:[!1]})}setConditionalControls(){this.savingProductSettingsForm.get("allowOverdraft").valueChanges.subscribe(t=>{t?(this.savingProductSettingsForm.addControl("minOverdraftForInterestCalculation",new it("")),this.savingProductSettingsForm.addControl("nominalAnnualInterestRateOverdraft",new it("")),this.savingProductSettingsForm.addControl("overdraftLimit",new it(""))):(this.savingProductSettingsForm.removeControl("minOverdraftForInterestCalculation"),this.savingProductSettingsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingProductSettingsForm.removeControl("overdraftLimit"))}),this.savingProductSettingsForm.get("withHoldTax").valueChanges.subscribe(t=>{t?this.savingProductSettingsForm.addControl("taxGroupId",new it("",ce.required)):this.savingProductSettingsForm.removeControl("taxGroupId")}),this.savingProductSettingsForm.get("isDormancyTrackingActive").valueChanges.subscribe(t=>{t?(this.savingProductSettingsForm.addControl("daysToInactive",new it("",ce.required)),this.savingProductSettingsForm.addControl("daysToDormancy",new it("",ce.required)),this.savingProductSettingsForm.addControl("daysToEscheat",new it("",ce.required))):(this.savingProductSettingsForm.removeControl("daysToInactive"),this.savingProductSettingsForm.removeControl("daysToDormancy"),this.savingProductSettingsForm.removeControl("daysToEscheat"))})}get savingProductSettings(){return this.savingProductSettingsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-settings-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:74,vars:82,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["type","number","matInput","","formControlName","minRequiredOpeningBalance",3,"matTooltip"],[1,"flex-48","hide-lt-md"],["type","number","matInput","","formControlName","lockinPeriodFrequency",3,"matTooltip"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"flex-48","margin-v",3,"matTooltip"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation",3,"matTooltip"],["labelPosition","before","formControlName","enforceMinRequiredBalance",1,"flex-48","margin-v",3,"matTooltip"],["type","number","matInput","","formControlName","minRequiredBalance",3,"matTooltip"],["labelPosition","before","formControlName","withHoldTax",1,"flex-48","margin-v",3,"matTooltip"],[1,"flex-98"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","allowOverdraft",1,"flex-73","margin-b",3,"matTooltip"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["labelPosition","before","formControlName","isDormancyTrackingActive",1,"flex-73","margin-b",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","taxGroupId","required",""],[1,"flex-31"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation",3,"matTooltip"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft",3,"matTooltip"],["type","number","matInput","","formControlName","overdraftLimit",3,"matTooltip"],["type","number","matInput","","formControlName","daysToInactive","required","",3,"matTooltip"],["type","number","matInput","","formControlName","daysToDormancy","required","",3,"matTooltip"],["type","number","matInput","","formControlName","daysToEscheat","required","",3,"matTooltip"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),r(),b(8,"span",4),l(9,"mat-form-field",2)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",5),p(14,"translate"),r(),l(15,"mat-form-field",2)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",6),Se(20,uTt,3,5,"mat-option",7,Pe),r()(),l(22,"mat-checkbox",8),p(23,"translate"),c(24),p(25,"translate"),r(),l(26,"mat-form-field",2)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",9),p(31,"translate"),r(),l(32,"mat-checkbox",10),p(33,"translate"),c(34),p(35,"translate"),r(),l(36,"mat-form-field",2)(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",11),p(41,"translate"),r(),l(42,"mat-checkbox",12),p(43,"translate"),c(44),p(45,"translate"),r(),E(46,hTt,14,12,"mat-form-field",2),b(47,"mat-divider",13),l(48,"h3",14),c(49),p(50,"translate"),r(),l(51,"mat-checkbox",15),p(52,"translate"),c(53),p(54,"translate"),r(),E(55,gTt,19,21,"div",16),b(56,"mat-divider",13),l(57,"h3",14),c(58),p(59,"translate"),r(),l(60,"mat-checkbox",17),p(61,"translate"),c(62),p(63,"translate"),r(),E(64,_Tt,40,48,"div",16),r(),l(65,"div",18)(66,"button",19),b(67,"fa-icon",20),c(68),p(69,"translate"),r(),l(70,"button",21),c(71),p(72,"translate"),b(73,"fa-icon",22),r()()()),n&2&&(g("formGroup",i.savingProductSettingsForm),a(4),h(m(5,36,"labels.inputs.Minimum Opening Balance")),a(2),g("matTooltip",Le(m(7,38,"tooltips.Sets the minimum deposit amount"))),a(5),h(m(12,40,"labels.inputs.Lock-in Period")),a(2),g("matTooltip",Le(m(14,42,"tooltips.Used to indicate the length of time"))),a(4),h(m(18,44,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(2),g("matTooltip",Le(m(23,46,"tooltips.Indicates whether the withdrawal fee"))),a(2),v(" ",m(25,48,"labels.inputs.Apply Withdrawal Fee for Transfers")," "),a(4),h(m(29,50,"labels.inputs.Balance Required for Interest Calculation")),a(2),g("matTooltip",Le(m(31,52,"tooltips.Sets the balance required for interest calculation"))),a(2),g("matTooltip",Le(m(33,54,"tooltips.Indicates whether to enforce a minimum balance"))),a(2),v(" ",m(35,56,"labels.inputs.Enforce Minimum Balance")," "),a(4),h(m(39,58,"labels.inputs.Minimum Balance")),a(2),g("matTooltip",Le(m(41,60,"tooltips.Sets the minimum balance allowed for a saving account"))),a(2),g("matTooltip",Le(m(43,62,"tooltips.An boolean flag to attach"))),a(2),v(" ",m(45,64,"labels.inputs.Is Withhold Tax Applicable")," "),a(2),I(i.savingProductSettingsForm.value.withHoldTax?46:-1),a(3),h(m(50,66,"labels.inputs.Overdraft")),a(2),g("matTooltip",Le(m(52,68,"tooltips.Indicates whether saving accounts based on this saving product"))),a(2),v(" ",m(54,70,"labels.inputs.Is Overdraft Allowed")," "),a(2),I(i.savingProductSettingsForm.value.allowOverdraft?55:-1),a(3),h(m(59,72,"labels.inputs.Dormancy Tracking")),a(2),g("matTooltip",Le(m(61,74,"tooltips.Enables definition and tracking inactive Savings Accounts"))),a(2),v(" ",m(63,76,"labels.inputs.Enable Dormancy Tracking")," "),a(2),I(i.savingProductSettingsForm.value.isDormancyTrackingActive?64:-1),a(4),v(" ",m(69,78,"labels.buttons.Previous")," "),a(3),v(" ",m(72,80,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,qi,ke,Ji,he,ki],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function CTt(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function vTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function xTt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function bTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function yTt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function STt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function wTt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function PTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function TTt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function MTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function DTt(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function ETt(e,o){e&1&&b(0,"tr",26)}function ITt(e,o){e&1&&b(0,"tr",27)}var ym=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"],this.pristine=!0}ngOnInit(){this.chargeData=this.savingProductsTemplate.chargeOptions,this.chargesDataSource=this.savingProductsTemplate.charges||[],this.pristine=!0,this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value="",this.pristine=!1}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get savingProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-charges-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,CTt,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,vTt,3,3,"th",9)(18,xTt,2,1,"td",10),Z(),X(19,11),F(20,bTt,3,3,"th",9)(21,yTt,3,4,"td",10),Z(),X(22,12),F(23,STt,3,3,"th",9)(24,wTt,3,3,"td",10),Z(),X(25,13),F(26,PTt,3,3,"th",9)(27,TTt,3,4,"td",10),Z(),X(28,14),F(29,MTt,3,3,"th",9)(30,DTt,3,0,"td",10),Z(),F(31,ETt,1,0,"tr",15)(32,ITt,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ki,ac,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function OTt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function ATt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.feesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable")}}function FTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.penaltiesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function kTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.interestReceivableAccountId)("glAccountList",t.assetAccountData)("required",!1)("inputLabel","Interest Receivable")}}function BTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.interestPayableAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Interest Payable")}}function RTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.escheatLiabilityId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Escheat liability")}}function NTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function LTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function VTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function qTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.combinedAccountData,"id","name")," ")}}function zTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function HTt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete(s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",35),r()()}}function GTt(e,o){e&1&&b(0,"tr",36)}function jTt(e,o){e&1&&b(0,"tr",37)}function $Tt(e,o){if(e&1&&(l(0,"table",21),X(1,23),F(2,NTt,3,3,"th",24)(3,LTt,3,6,"td",25),Z(),X(4,26),F(5,VTt,3,3,"th",24)(6,qTt,3,6,"td",25),Z(),X(7,27),F(8,zTt,3,3,"th",24)(9,HTt,5,0,"td",25),Z(),F(10,GTt,1,0,"tr",28)(11,jTt,1,0,"tr",29),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function UTt(e,o){if(e&1){let t=Y();l(0,"div",17)(1,"button",18),R("click",function(){V(t);let i=w(4);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(2,"fa-icon",19),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Add")," "))}function WTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function QTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function YTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function JTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function KTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function XTt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function ZTt(e,o){e&1&&b(0,"tr",36)}function e4t(e,o){e&1&&b(0,"tr",37)}function t4t(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,WTt,3,3,"th",24)(3,QTt,3,6,"td",25),Z(),X(4,39),F(5,YTt,3,3,"th",24)(6,JTt,3,6,"td",25),Z(),X(7,27),F(8,KTt,3,3,"th",24)(9,XTt,5,0,"td",25),Z(),F(10,ZTt,1,0,"tr",28)(11,e4t,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function i4t(e,o){if(e&1&&(l(0,"div",22)(1,"h4",16),c(2),p(3,"translate"),r(),E(4,UTt,5,3,"div",17),E(5,t4t,12,3,"table",21),r()),e&2){let t=w(3);a(2),h(m(3,3,"labels.heading.Map Fees to Specific Income Accounts")),a(2),I(t.existCharges()?4:-1),a(),I(t.feeToIncomeAccountMappings.value.length!==0?5:-1)}}function n4t(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function o4t(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function a4t(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function r4t(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function l4t(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function s4t(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function c4t(e,o){e&1&&b(0,"tr",36)}function p4t(e,o){e&1&&b(0,"tr",37)}function m4t(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,n4t,3,3,"th",24)(3,o4t,3,6,"td",25),Z(),X(4,39),F(5,a4t,3,3,"th",24)(6,r4t,3,6,"td",25),Z(),X(7,27),F(8,l4t,3,3,"th",24)(9,s4t,5,0,"td",25),Z(),F(10,c4t,1,0,"tr",28)(11,p4t,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function d4t(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",16),c(2),p(3,"translate"),r(),l(4,"div",17)(5,"button",18),R("click",function(){V(t);let i=w(3);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(6,"fa-icon",19),c(7),p(8,"translate"),r()(),E(9,m4t,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),v(" ",m(3,3,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?9:-1)}}function u4t(e,o){if(e&1){let t=Y();l(0,"div",14)(1,"div",15)(2,"h4",16),c(3),p(4,"translate"),r(),l(5,"div",17)(6,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(7,"fa-icon",19),c(8),p(9,"translate"),r()()(),l(10,"div",20),E(11,$Tt,12,3,"table",21),r(),E(12,i4t,6,5,"div",22),E(13,d4t,10,7,"div",22),r()}if(e&2){let t=w(2);a(3),v(" ",m(4,5,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(3),I(t.paymentChannelToFundSourceMappings.value.length!==0?11:-1),a(),I(t.existCharges()?12:-1),a(),I(t.existCharges()?13:-1)}}function f4t(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12)(5,"mifosx-gl-account-selector",12),E(6,ATt,1,4,"mifosx-gl-account-selector",12),E(7,FTt,1,4,"mifosx-gl-account-selector",12),E(8,kTt,1,4,"mifosx-gl-account-selector",12),b(9,"mat-divider",4),l(10,"h4",11),c(11),p(12,"translate"),r(),b(13,"mifosx-gl-account-selector",12)(14,"mifosx-gl-account-selector",12),E(15,BTt,1,4,"mifosx-gl-account-selector",12),E(16,RTt,1,4,"mifosx-gl-account-selector",12),l(17,"h4",11),c(18),p(19,"translate"),r(),b(20,"mifosx-gl-account-selector",12)(21,"mifosx-gl-account-selector",12)(22,"mat-divider",4),l(23,"h4",11),c(24),p(25,"translate"),r(),b(26,"mifosx-gl-account-selector",12)(27,"mifosx-gl-account-selector",12)(28,"mifosx-gl-account-selector",12)(29,"mat-divider",4),l(30,"mat-checkbox",13),c(31),p(32,"translate"),r(),E(33,u4t,14,9,"div",14),r()),e&2){let t=w();a(2),h(m(3,47,"labels.heading.Assets")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.savingsReferenceAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Saving reference"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.overdraftPortfolioControlId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Overdraft portfolio"),a(),I(t.isAccrualAccounting()?6:-1),a(),I(t.isAccrualAccounting()?7:-1),a(),I(t.isAccrualAccounting()&&t.allowOverdraft.value?8:-1),a(3),h(m(12,49,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.savingsControlAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Saving control"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Savings transfers in suspense"),a(),I(t.isAccrualAccounting()?15:-1),a(),I(t.isDormancyTrackingActive.value?16:-1),a(2),h(m(19,51,"labels.heading.Expenses")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.interestOnSavingsAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Interest on savings"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.writeOffAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Write-off"),a(3),h(m(25,53,"labels.heading.Income")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.incomeFromInterestId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Overdraft Interest Income"),a(3),h(m(32,55,"labels.heading.Advanced Accounting Rules")),a(2),I(t.savingProductAccountingForm.value.advancedAccountingRules?33:-1)}}var Sm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.createsavingProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.chargeData=this.savingProductsTemplate.chargeOptions||[],this.penaltyData=this.savingProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.savingProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.savingProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.savingProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.savingProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.combinedAccountData=[...this.assetAccountData,...this.incomeAccountData,...this.expenseAccountData,...this.liabilityAccountData],this.combinedAccountData.sort((t,n)=>{let i=t.name.toLowerCase(),s=n.name.toLowerCase();return is?1:0}),this.savingProductAccountingForm.patchValue({accountingRule:this.savingProductsTemplate.accountingRule.id}),this.isCashOrAccrualAccounting()&&(this.savingProductAccountingForm.patchValue({savingsReferenceAccountId:this.savingProductsTemplate.accountingMappings.savingsReferenceAccount.id,overdraftPortfolioControlId:this.savingProductsTemplate.accountingMappings.overdraftPortfolioControl.id,savingsControlAccountId:this.savingProductsTemplate.accountingMappings.savingsControlAccount.id,transfersInSuspenseAccountId:this.savingProductsTemplate.accountingMappings.transfersInSuspenseAccount.id,interestOnSavingsAccountId:this.savingProductsTemplate.accountingMappings.interestOnSavingsAccount.id,writeOffAccountId:this.savingProductsTemplate.accountingMappings.writeOffAccount.id,incomeFromFeeAccountId:this.savingProductsTemplate.accountingMappings.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:this.savingProductsTemplate.accountingMappings.incomeFromPenaltyAccount.id,incomeFromInterestId:this.savingProductsTemplate.accountingMappings.incomeFromInterest.id,advancedAccountingRules:!!(this.savingProductsTemplate.paymentChannelToFundSourceMappings||this.savingProductsTemplate.feeToIncomeAccountMappings||this.savingProductsTemplate.penaltyToIncomeAccountMappings||this.savingProductsTemplate.accrualCharges)}),this.isAccrualAccounting()&&this.savingProductAccountingForm.patchValue({feesReceivableAccountId:this.savingProductsTemplate.accountingMappings.feeReceivableAccount.id,penaltiesReceivableAccountId:this.savingProductsTemplate.accountingMappings.penaltyReceivableAccount.id,interestReceivableAccountId:this.savingProductsTemplate.accountingMappings.interestReceivableAccount==null?"":this.savingProductsTemplate.accountingMappings.interestReceivableAccount.id,interestPayableAccountId:this.savingProductsTemplate.accountingMappings.interestPayableAccount.id}),this.isDormancyTrackingActive.value&&this.savingProductAccountingForm.patchValue({escheatLiabilityId:this.savingProductsTemplate.accountingMappings.escheatLiabilityAccount.id}),this.savingProductAccountingForm.setControl("paymentChannelToFundSourceMappings",this.formBuilder.array((this.savingProductsTemplate.paymentChannelToFundSourceMappings||[]).map(t=>({paymentTypeId:t.paymentType.id,fundSourceAccountId:t.fundSourceAccount.id})))),this.savingProductAccountingForm.setControl("feeToIncomeAccountMappings",this.formBuilder.array((this.savingProductsTemplate.feeToIncomeAccountMappings||[]).map(t=>({chargeId:t.charge.id,incomeAccountId:t.incomeAccount.id})))),this.savingProductAccountingForm.setControl("penaltyToIncomeAccountMappings",this.formBuilder.array((this.savingProductsTemplate.penaltyToIncomeAccountMappings||[]).map(t=>({chargeId:t.charge.id,incomeAccountId:t.incomeAccount.id})))))}createsavingProductAccountingForm(){this.savingProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}setConditionalControls(){this.savingProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2||t===3?(this.savingProductAccountingForm.addControl("savingsReferenceAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("overdraftPortfolioControlId",new it("",ce.required)),this.savingProductAccountingForm.addControl("savingsControlAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("interestOnSavingsAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("writeOffAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("incomeFromInterestId",new it("",ce.required)),this.savingProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),t===3&&(this.savingProductAccountingForm.addControl("feesReceivableAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("penaltiesReceivableAccountId",new it("",ce.required)),this.allowOverdraft.value&&this.savingProductAccountingForm.addControl("interestReceivableAccountId",new it("")),this.allowOverdraft.valueChanges.subscribe(n=>{n?this.savingProductAccountingForm.addControl("interestReceivableAccountId",new it("")):this.savingProductAccountingForm.removeControl("interestReceivableAccountId")}),this.savingProductAccountingForm.addControl("interestPayableAccountId",new it("",ce.required))),t===2&&(this.savingProductAccountingForm.removeControl("feesReceivableAccountId"),this.savingProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.savingProductAccountingForm.removeControl("interestPayableAccountId")),this.isDormancyTrackingActive.value&&this.savingProductAccountingForm.addControl("escheatLiabilityId",new it("",ce.required)),this.isDormancyTrackingActive.valueChanges.subscribe(n=>{n?this.savingProductAccountingForm.addControl("escheatLiabilityId",new it("",ce.required)):this.savingProductAccountingForm.removeControl("escheatLiabilityId")}),this.savingProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.savingProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.savingProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.savingProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([]))):(this.savingProductAccountingForm.removeControl("paymentChannelToFundSourceMappings"),this.savingProductAccountingForm.removeControl("feeToIncomeAccountMappings"),this.savingProductAccountingForm.removeControl("penaltyToIncomeAccountMappings"))})):(this.savingProductAccountingForm.removeControl("savingsReferenceAccountId"),this.savingProductAccountingForm.removeControl("overdraftPortfolioControlId"),this.savingProductAccountingForm.removeControl("savingsControlAccountId"),this.savingProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.savingProductAccountingForm.removeControl("interestOnSavingsAccountId"),this.savingProductAccountingForm.removeControl("writeOffAccountId"),this.savingProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.savingProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.savingProductAccountingForm.removeControl("incomeFromInterestId"),this.savingProductAccountingForm.removeControl("advancedAccountingRules"),this.savingProductAccountingForm.removeControl("escheatLiabilityId"),this.savingProductAccountingForm.removeControl("feesReceivableAccountId"),this.savingProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.savingProductAccountingForm.removeControl("interestReceivableAccountId"),this.savingProductAccountingForm.removeControl("interestPayableAccountId"))})}get paymentChannelToFundSourceMappings(){return this.savingProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.savingProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.savingProductAccountingForm.get("penaltyToIncomeAccountMappings")}setSavingProductAccountingFormDirty(){this.savingProductAccountingForm.pristine&&this.savingProductAccountingForm.markAsDirty()}existCharges(){return this.chargeData.length>0}add(t,n){let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i,width:"20rem"}).afterClosed().subscribe(d=>{d.data&&(n.push(d.data),this.setSavingProductAccountingFormDirty())})}edit(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&(n.at(i).patchValue(u.data.value),this.setSavingProductAccountingFormDirty())})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&(t.removeAt(n),this.setSavingProductAccountingFormDirty())})}getData(t,n){switch(t){case"PaymentFundSource":return{title:this.translateService.instant("labels.heading.Configure Fund Sources for Payment Channels"),formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:this.translateService.instant("labels.heading.Map Fees to Specific Income Accounts"),formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:this.translateService.instant("labels.heading.Map Penalties to Specific Income Accounts"),formfields:this.getPenaltyIncomeFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:this.translateService.instant("labels.inputs.Payment Type"),value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:this.translateService.instant("labels.inputs.Fund Source"),value:t?t.fundSourceAccountId:this.combinedAccountData[0].id,options:{label:"name",value:"id",data:this.combinedAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:this.translateService.instant("labels.inputs.Fees"),value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:this.translateService.instant("labels.inputs.Income Account"),value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:this.translateService.instant("labels.inputs.Penalty"),value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:this.translateService.instant("labels.inputs.Income Account"),value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}get savingProductAccounting(){return this.savingProductAccountingForm.value}isCashOrAccrualAccounting(){return this.savingProductAccountingForm.value.accountingRule===2||this.savingProductAccountingForm.value.accountingRule===3}isAccrualAccounting(){return this.savingProductAccountingForm.value.accountingRule===3}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-accounting-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate",accountingRuleData:"accountingRuleData",isDormancyTrackingActive:"isDormancyTrackingActive",savingProductFormValid:"savingProductFormValid",allowOverdraft:"allowOverdraft"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","custom-gap","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-column.lt-md","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"flex-fill","layout-row-wrap","gap-1percent","responsive-column"],[1,"layout-row","flex-100"],[1,"mat-h4","flex-63"],[1,"flex-33"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"flex-100"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-100","layout-row-wrap","gap-0percent","responsive-column"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,OTt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,f4t,34,57,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.savingProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.isCashOrAccrualAccounting()?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.savingProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var h4t=()=>["../"];function g4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.savingProduct.description)}}function _4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Opening Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredOpeningBalance))}}function C4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),p(7,"translateKey"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(Ft(7,9,t.savingProduct.lockinPeriodFrequency+" "+$t(6,4,t.savingProduct.lockinPeriodFrequencyType,t.savingProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function v4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Balance Required for Interest Calculation"),":"),a(3),h(m(6,4,t.savingProduct.minBalanceForInterestCalculation))}}function x4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredBalance))}}function b4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h($t(6,4,t.savingProduct.taxGroupId,t.savingProductsTemplate.taxGroupOptions,"id","name"))}}function y4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),a(3),h(m(6,4,t.savingProduct.minOverdraftForInterestCalculation))}}function S4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),a(3),v("",m(6,4,t.savingProduct.nominalAnnualInterestRateOverdraft)," %")}}function w4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),a(3),h(m(6,4,t.savingProduct.overdraftLimit))}}function P4t(e,o){if(e&1&&(l(0,"div",7)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r(),l(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),r(),l(11,"span",5),c(12),p(13,"translate"),r(),l(14,"span",6),c(15),r()()),e&2){let t=w();a(2),v("",m(3,6,"labels.inputs.Number of Days to Inactive sub-status"),":"),a(3),h(t.savingProduct.daysToInactive),a(2),v("",m(8,8,"labels.inputs.Number of Days to Dormant sub-status"),":"),a(3),h(t.savingProduct.daysToDormancy),a(2),v("",m(13,10,"labels.inputs.Number of Days to Escheat"),":"),a(3),h(t.savingProduct.daysToEscheat)}}function T4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function M4t(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function D4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function E4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function I4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function O4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function A4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function F4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function k4t(e,o){e&1&&b(0,"tr",25)}function B4t(e,o){e&1&&b(0,"tr",26)}function R4t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",14),X(6,15),F(7,T4t,3,3,"th",16)(8,M4t,2,1,"td",17),Z(),X(9,18),F(10,D4t,3,3,"th",16)(11,E4t,3,4,"td",17),Z(),X(12,19),F(13,I4t,3,3,"th",16)(14,O4t,3,3,"td",17),Z(),X(15,20),F(16,A4t,3,3,"th",16)(17,F4t,3,4,"td",17),Z(),F(18,k4t,1,0,"tr",21)(19,B4t,1,0,"tr",22),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Charges")),a(3),g("dataSource",t.savingProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function N4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function L4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.paymentTypeId,n.savingProductsTemplate.paymentTypeOptions,"id","name")," ")}}function V4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function q4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.savingProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")," ")}}function z4t(e,o){e&1&&b(0,"tr",25)}function H4t(e,o){e&1&&b(0,"tr",26)}function G4t(e,o){if(e&1&&(l(0,"div",27)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",29),X(5,30),F(6,N4t,3,3,"th",16)(7,L4t,3,6,"td",17),Z(),X(8,31),F(9,V4t,3,3,"th",16)(10,q4t,3,6,"td",17),Z(),F(11,z4t,1,0,"tr",21)(12,H4t,1,0,"tr",22),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fund Sources for Payment Channels")),a(2),g("dataSource",t.savingProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function j4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function $4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.savingProductsTemplate.chargeOptions,"id","name")," ")}}function U4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function W4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function Q4t(e,o){e&1&&b(0,"tr",25)}function Y4t(e,o){e&1&&b(0,"tr",26)}function J4t(e,o){if(e&1&&(l(0,"div",27)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",14),X(5,32),F(6,j4t,3,3,"th",16)(7,$4t,3,6,"td",17),Z(),X(8,33),F(9,U4t,3,3,"th",16)(10,W4t,3,6,"td",17),Z(),F(11,Q4t,1,0,"tr",21)(12,Y4t,1,0,"tr",22),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fees to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function K4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function X4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.savingProductsTemplate.penaltyOptions,"id","name")," ")}}function Z4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function eMt(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function tMt(e,o){e&1&&b(0,"tr",25)}function iMt(e,o){e&1&&b(0,"tr",26)}function nMt(e,o){if(e&1&&(l(0,"div",27)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",14),X(5,32),F(6,K4t,3,3,"th",16)(7,X4t,3,6,"td",17),Z(),X(8,33),F(9,Z4t,3,3,"th",16)(10,eMt,3,6,"td",17),Z(),F(11,tMt,1,0,"tr",21)(12,iMt,1,0,"tr",22),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function oMt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),E(5,G4t,13,6,"div",27),E(6,J4t,13,6,"div",27),E(7,nMt,13,6,"div",27),r()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Advanced Accounting Rules")),a(3),I(t.savingProduct.paymentChannelToFundSourceMappings!=null&&t.savingProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.savingProduct.feeToIncomeAccountMappings!=null&&t.savingProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.savingProduct.penaltyToIncomeAccountMappings!=null&&t.savingProduct.penaltyToIncomeAccountMappings.length?7:-1)}}function aMt(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){V(t);let i=w();return q(i.submitEvent.emit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Submit")," "))}var Fu=(()=>{class e{constructor(){this.accounting=T(To),this.submitEvent=new bi,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.accountingMappings={}}ngOnInit(){this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.accountingRule=this.accounting.getAccountingRuleFrom(this.savingProduct.accountingRule),this.isCashOrAccrualAccounting()){let t=this.savingProductsTemplate.accountingMappingOptions.assetAccountOptions||[],n=this.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],i=this.savingProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],s=this.savingProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.accountingMappings={savingsReferenceAccount:this.accounting.glAccountLookUp(this.savingProduct.savingsReferenceAccountId,t),overdraftPortfolioControl:this.accounting.glAccountLookUp(this.savingProduct.overdraftPortfolioControlId,t),savingsControlAccount:this.accounting.glAccountLookUp(this.savingProduct.savingsControlAccountId,s),transfersInSuspenseAccount:this.accounting.glAccountLookUp(this.savingProduct.transfersInSuspenseAccountId,s),escheatLiability:this.accounting.glAccountLookUp(this.savingProduct.escheatLiabilityId,s),interestOnSavingsAccount:this.accounting.glAccountLookUp(this.savingProduct.interestOnSavingsAccountId,i),writeOffAccount:this.accounting.glAccountLookUp(this.savingProduct.writeOffAccountId,i),incomeFromFeeAccount:this.accounting.glAccountLookUp(this.savingProduct.incomeFromFeeAccountId,n),incomeFromPenaltyAccount:this.accounting.glAccountLookUp(this.savingProduct.incomeFromPenaltyAccountId,n),incomeFromInterest:this.accounting.glAccountLookUp(this.savingProduct.incomeFromInterestId,n)},this.isAccrualAccounting()&&(this.accountingMappings.feesReceivableAccount=this.accounting.glAccountLookUp(this.savingProduct.feesReceivableAccountId,t),this.accountingMappings.penaltiesReceivableAccount=this.accounting.glAccountLookUp(this.savingProduct.penaltiesReceivableAccountId,t),this.accountingMappings.interestPayableAccount=this.accounting.glAccountLookUp(this.savingProduct.interestPayableAccountId,s))}}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccounting(this.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccounting(this.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-preview-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate",accountingRuleData:"accountingRuleData",savingProduct:"savingProduct",taskPermission:"taskPermission"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:145,vars:144,consts:[[1,"responsive-column"],[1,"mat-h2","flex-100"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[3,"accountingRule","accountingMappings"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,g4t,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),p(48,"formatNumber"),r()(),l(49,"div",4)(50,"span",5),c(51),p(52,"translate"),r(),l(53,"span",6),c(54),p(55,"find"),p(56,"translateKey"),r()(),l(57,"div",4)(58,"span",5),c(59),p(60,"translate"),r(),l(61,"span",6),c(62),p(63,"find"),p(64,"translateKey"),r()(),l(65,"div",4)(66,"span",5),c(67),p(68,"translate"),r(),l(69,"span",6),c(70),p(71,"find"),p(72,"translateKey"),r()(),l(73,"div",4)(74,"span",5),c(75),p(76,"translate"),r(),l(77,"span",6),c(78),p(79,"find"),p(80,"translateKey"),r()(),l(81,"h3",3),c(82),p(83,"translate"),r(),b(84,"mat-divider",2),E(85,_4t,7,6,"div",4),E(86,C4t,8,12,"div",4),l(87,"div",4)(88,"span",5),c(89),p(90,"translate"),r(),l(91,"span",6),c(92),p(93,"yesNo"),r()(),E(94,v4t,7,6,"div",4),l(95,"div",4)(96,"span",5),c(97),p(98,"translate"),r(),l(99,"span",6),c(100),p(101,"yesNo"),r()(),E(102,x4t,7,6,"div",4),l(103,"div",4)(104,"span",5),c(105),p(106,"translate"),r(),l(107,"span",6),c(108),p(109,"yesNo"),r()(),E(110,b4t,7,9,"div",4),l(111,"div",4)(112,"span",5),c(113),p(114,"translate"),r(),l(115,"span",6),c(116),p(117,"yesNo"),r()(),E(118,y4t,7,6,"div",4),E(119,S4t,7,6,"div",4),E(120,w4t,7,6,"div",4),l(121,"div",4)(122,"span",5),c(123),p(124,"translate"),r(),l(125,"span",6),c(126),p(127,"yesNo"),r()(),E(128,P4t,16,12,"div",7),E(129,R4t,20,6,"div",7),l(130,"h3",3),c(131),p(132,"translate"),r(),b(133,"mat-divider",2)(134,"mifosx-view-savings-accounting-details",8),E(135,oMt,8,6,"div",7),r(),l(136,"div",9)(137,"button",10),b(138,"fa-icon",11),c(139),p(140,"translate"),r(),l(141,"button",12),c(142),p(143,"translate"),r(),F(144,aMt,3,3,"button",13),r()),n&2&&(a(2),h(i.savingProduct.name),a(3),h(m(6,52,"labels.inputs.Details")),a(5),v("",m(11,54,"labels.inputs.Short Name"),":"),a(3),h(i.savingProduct.shortName),a(),I(i.savingProduct.description?14:-1),a(2),h(m(17,56,"labels.inputs.Currency")),a(5),v("",m(22,58,"labels.inputs.Currency"),":"),a(3),h($t(25,60,i.savingProduct.currencyCode,i.savingProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,65,"labels.inputs.Decimal Places"),":"),a(3),h(i.savingProduct.digitsAfterDecimal),a(3),v("",m(35,67,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.savingProduct.inMultiplesOf),a(2),h(m(40,69,"labels.inputs.Terms")),a(5),v("",m(45,71,"labels.inputs.Nominal Annual Interest"),":"),a(3),v("",m(48,73,i.savingProduct.nominalAnnualInterestRate)," %"),a(4),v("",m(52,75,"labels.inputs.Interest Compounding Period"),":"),a(3),h(Ft(56,82,$t(55,77,i.savingProduct.interestCompoundingPeriodType,i.savingProductsTemplate.interestCompoundingPeriodTypeOptions,"id","value"),"catalogs")),a(5),v("",m(60,85,"labels.inputs.Interest Posting Period"),":"),a(3),h(Ft(64,92,$t(63,87,i.savingProduct.interestPostingPeriodType,i.savingProductsTemplate.interestPostingPeriodTypeOptions,"id","value"),"catalogs")),a(5),v("",m(68,95,"labels.inputs.Interest Calculated using"),":"),a(3),h(Ft(72,102,$t(71,97,i.savingProduct.interestCalculationType,i.savingProductsTemplate.interestCalculationTypeOptions,"id","value"),"catalogs")),a(5),v("",m(76,105,"labels.inputs.Days in Year"),":"),a(3),h(Ft(80,112,$t(79,107,i.savingProduct.interestCalculationDaysInYearType,i.savingProductsTemplate.interestCalculationDaysInYearTypeOptions,"id","value"),"catalogs")),a(4),h(m(83,115,"labels.inputs.Settings")),a(3),I(i.savingProduct.minRequiredOpeningBalance?85:-1),a(),I(i.savingProduct.lockinPeriodFrequency?86:-1),a(3),v("",m(90,117,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),a(3),h(m(93,119,i.savingProduct.withdrawalFeeForTransfers)),a(2),I(i.savingProduct.minBalanceForInterestCalculation?94:-1),a(3),v("",m(98,121,"labels.inputs.Enforce Minimum Balance"),":"),a(3),h(m(101,123,i.savingProduct.enforceMinRequiredBalance)),a(2),I(i.savingProduct.minRequiredBalance?102:-1),a(3),v("",m(106,125,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(109,127,i.savingProduct.withHoldTax)),a(2),I(i.savingProduct.withHoldTax?110:-1),a(3),v("",m(114,129,"labels.inputs.Is Overdraft Allowed"),":"),a(3),h(m(117,131,i.savingProduct.allowOverdraft)),a(2),I(i.savingProduct.minOverdraftForInterestCalculation?118:-1),a(),I(i.savingProduct.nominalAnnualInterestRateOverdraft?119:-1),a(),I(i.savingProduct.overdraftLimit?120:-1),a(3),v("",m(124,133,"labels.inputs.Enable Dormancy Tracking"),":"),a(3),h(m(127,135,i.savingProduct.isDormancyTrackingActive)),a(2),I(i.savingProduct.isDormancyTrackingActive?128:-1),a(),I(i.savingProduct.charges.length?129:-1),a(2),h(m(132,137,"labels.heading.Accounting")),a(3),g("accountingRule",i.accountingRule)("accountingMappings",i.accountingMappings),a(),I(i.savingProduct.advancedAccountingRules&&(i.savingProduct.paymentChannelToFundSourceMappings!=null&&i.savingProduct.paymentChannelToFundSourceMappings.length||i.savingProduct.feeToIncomeAccountMappings!=null&&i.savingProduct.feeToIncomeAccountMappings.length||i.savingProduct.penaltyToIncomeAccountMappings!=null&&i.savingProduct.penaltyToIncomeAccountMappings.length)?135:-1),a(4),v(" ",m(140,139,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(143,h4t)),a(),v(" ",m(143,141,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission",i.taskPermission))},dependencies:[ue,fe,Oe,xe,Ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,qi,ke,he,ki,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.interestCarts[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function rMt(e,o){e&1&&b(0,"fa-icon",14)}function lMt(e,o){e&1&&b(0,"fa-icon",14)}function sMt(e,o){e&1&&b(0,"fa-icon",15)}function cMt(e,o){e&1&&b(0,"fa-icon",16)}function pMt(e,o){e&1&&b(0,"fa-icon",17)}function mMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function dMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function uMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function fMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function hMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function gMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function _Mt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function CMt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,_Mt,2,3,"ng-template",9),l(2,"mifosx-saving-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("savingProductsTemplate",t.savingProductsTemplate)("accountingRuleData",t.accountingRuleData)("savingProduct",t.savingProduct)("taskPermission","CREATE_SAVINGSPRODUCT")}}var t3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.savingProductsTemplate=t.savingProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get savingProductDetailsForm(){return this.savingProductDetailsStep.savingProductDetailsForm}get savingProductCurrencyForm(){return this.savingProductCurrencyStep.savingProductCurrencyForm}get savingProductTermsForm(){return this.savingProductTermsStep.savingProductTermsForm}get savingProductSettingsForm(){return this.savingProductSettingsStep.savingProductSettingsForm}get savingProductAccountingForm(){return this.savingProductAccountingStep.savingProductAccountingForm}get savingProductFormValid(){return this.savingProductDetailsForm.valid&&this.savingProductCurrencyForm.valid&&this.savingProductTermsForm.valid&&this.savingProductSettingsForm.valid&&this.savingProductAccountingForm.valid}get savingProduct(){return at(at(at(at(at(at({},this.savingProductDetailsStep.savingProductDetails),this.savingProductCurrencyStep.savingProductCurrency),this.savingProductTermsStep.savingProductTerms),this.savingProductSettingsStep.savingProductSettings),this.savingProductChargesStep.savingProductCharges),this.savingProductAccountingStep.savingProductAccounting)}submit(){let t=qt(at({},this.savingProduct),{charges:this.savingProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});delete t.advancedAccountingRules,this.productsService.createSavingProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-saving-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Cm,7),Ee(vm,7),Ee(xm,7),Ee(bm,7),Ee(ym,7),Ee(Sm,7)),n&2){let s;Te(s=Me())&&(i.savingProductDetailsStep=s.first),Te(s=Me())&&(i.savingProductCurrencyStep=s.first),Te(s=Me())&&(i.savingProductTermsStep=s.first),Te(s=Me())&&(i.savingProductSettingsStep=s.first),Te(s=Me())&&(i.savingProductChargesStep=s.first),Te(s=Me())&&(i.savingProductAccountingStep=s.first)}},decls:27,vars:17,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingProductsTemplate"],[3,"savingProductsTemplate","currencyCode"],[3,"savingProductsTemplate","accountingRuleData","isDormancyTrackingActive","savingProductFormValid","allowOverdraft"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingProductsTemplate","accountingRuleData","savingProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,rMt,1,0,"ng-template",3)(4,lMt,1,0,"ng-template",4)(5,sMt,1,0,"ng-template",5)(6,cMt,1,0,"ng-template",6)(7,pMt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,mMt,2,3,"ng-template",9),b(10,"mifosx-saving-product-details-step"),r(),l(11,"mat-step",8),F(12,dMt,2,3,"ng-template",9),b(13,"mifosx-saving-product-currency-step",10),r(),l(14,"mat-step",8),F(15,uMt,2,3,"ng-template",9),b(16,"mifosx-saving-product-terms-step",10),r(),l(17,"mat-step",8),F(18,fMt,2,3,"ng-template",9),b(19,"mifosx-saving-product-settings-step",10),r(),l(20,"mat-step"),F(21,hMt,2,3,"ng-template",9),b(22,"mifosx-saving-product-charges-step",11),r(),l(23,"mat-step",8),F(24,gMt,2,3,"ng-template",9),b(25,"mifosx-saving-product-accounting-step",12),r(),E(26,CMt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.savingProductDetailsForm),a(3),g("stepControl",i.savingProductCurrencyForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate),a(),g("stepControl",i.savingProductTermsForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate),a(),g("stepControl",i.savingProductSettingsForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate),a(3),g("savingProductsTemplate",i.savingProductsTemplate)("currencyCode",i.savingProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.savingProductAccountingForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate)("accountingRuleData",i.accountingRuleData)("isDormancyTrackingActive",i.savingProductSettingsForm.get("isDormancyTrackingActive"))("savingProductFormValid",i.savingProductFormValid)("allowOverdraft",i.savingProductSettingsForm.get("allowOverdraft")),a(),I(i.savingProductFormValid?26:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Cm,vm,xm,bm,ym,Sm,Fu,he],styles:["fa-icon[_ngcontent-%COMP%]{position:relative;left:5%}"]})}}return e})();var vMt=()=>["./general"],xMt=e=>["./datatables",e];function bMt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,xMt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function yMt(e,o){if(e&1&&F(0,bMt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var i3=(()=>{class e{constructor(){this.route=T(Ie),this.savingProductDatatables=[],this.route.data.subscribe(t=>{this.savingProductDatatables=[],t.savingProductDatatables.forEach(n=>{n.entitySubType==="Savings Product"&&this.savingProductDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-saving-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,yMt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,vMt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.savingProductDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function SMt(e,o){e&1&&b(0,"fa-icon",15)}function wMt(e,o){e&1&&b(0,"fa-icon",15)}function PMt(e,o){e&1&&b(0,"fa-icon",16)}function TMt(e,o){e&1&&b(0,"fa-icon",17)}function MMt(e,o){e&1&&b(0,"fa-icon",18)}function DMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function EMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function IMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function OMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function AMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function FMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function kMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function BMt(e,o){if(e&1){let t=Y();l(0,"mat-step",14),F(1,kMt,2,3,"ng-template",9),l(2,"mifosx-saving-product-preview-step",19),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("savingProductsTemplate",t.savingProductAndTemplate)("accountingRuleData",t.accountingRuleData)("savingProduct",t.savingProduct)("taskPermission","UPDATE_SAVINGSPRODUCT")}}var n3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.savingProductAndTemplate=t.savingProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get savingProductDetailsForm(){return this.savingProductDetailsStep.savingProductDetailsForm}get savingProductCurrencyForm(){return this.savingProductCurrencyStep.savingProductCurrencyForm}get savingProductTermsForm(){return this.savingProductTermsStep.savingProductTermsForm}get savingProductSettingsForm(){return this.savingProductSettingsStep.savingProductSettingsForm}get savingProductAccountingForm(){return this.savingProductAccountingStep.savingProductAccountingForm}get savingProductFormValidAndNotPristine(){return this.savingProductDetailsForm.valid&&this.savingProductCurrencyForm.valid&&this.savingProductTermsForm.valid&&this.savingProductSettingsForm.valid&&this.savingProductAccountingForm.valid&&(!this.savingProductDetailsForm.pristine||!this.savingProductCurrencyForm.pristine||!this.savingProductTermsForm.pristine||!this.savingProductSettingsForm.pristine||!this.savingProductChargesStep.pristine||!this.savingProductAccountingForm.pristine)}get savingProduct(){return at(at(at(at(at(at({},this.savingProductDetailsStep.savingProductDetails),this.savingProductCurrencyStep.savingProductCurrency),this.savingProductTermsStep.savingProductTerms),this.savingProductSettingsStep.savingProductSettings),this.savingProductChargesStep.savingProductCharges),this.savingProductAccountingStep.savingProductAccounting)}submit(){let t=qt(at({},this.savingProduct),{charges:this.savingProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});delete t.advancedAccountingRules,this.productsService.updateSavingProduct(this.savingProductAndTemplate.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-saving-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Cm,7),Ee(vm,7),Ee(xm,7),Ee(bm,7),Ee(ym,7),Ee(Sm,7)),n&2){let s;Te(s=Me())&&(i.savingProductDetailsStep=s.first),Te(s=Me())&&(i.savingProductCurrencyStep=s.first),Te(s=Me())&&(i.savingProductTermsStep=s.first),Te(s=Me())&&(i.savingProductSettingsStep=s.first),Te(s=Me())&&(i.savingProductChargesStep=s.first),Te(s=Me())&&(i.savingProductAccountingStep=s.first)}},decls:27,vars:18,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed","",3,"stepControl"],["matStepLabel",""],[3,"savingProductsTemplate"],["completed",""],[3,"savingProductsTemplate","currencyCode"],[3,"savingProductsTemplate","accountingRuleData","isDormancyTrackingActive","savingProductFormValid","allowOverdraft"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingProductsTemplate","accountingRuleData","savingProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,SMt,1,0,"ng-template",3)(4,wMt,1,0,"ng-template",4)(5,PMt,1,0,"ng-template",5)(6,TMt,1,0,"ng-template",6)(7,MMt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,DMt,2,3,"ng-template",9),b(10,"mifosx-saving-product-details-step",10),r(),l(11,"mat-step",8),F(12,EMt,2,3,"ng-template",9),b(13,"mifosx-saving-product-currency-step",10),r(),l(14,"mat-step",8),F(15,IMt,2,3,"ng-template",9),b(16,"mifosx-saving-product-terms-step",10),r(),l(17,"mat-step",8),F(18,OMt,2,3,"ng-template",9),b(19,"mifosx-saving-product-settings-step",10),r(),l(20,"mat-step",11),F(21,AMt,2,3,"ng-template",9),b(22,"mifosx-saving-product-charges-step",12),r(),l(23,"mat-step",8),F(24,FMt,2,3,"ng-template",9),b(25,"mifosx-saving-product-accounting-step",13),r(),E(26,BMt,3,4,"mat-step",14),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.savingProductDetailsForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(),g("stepControl",i.savingProductCurrencyForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(),g("stepControl",i.savingProductTermsForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(),g("stepControl",i.savingProductSettingsForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(3),g("savingProductsTemplate",i.savingProductAndTemplate)("currencyCode",i.savingProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.savingProductAccountingForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate)("accountingRuleData",i.accountingRuleData)("isDormancyTrackingActive",i.savingProductSettingsForm.get("isDormancyTrackingActive"))("savingProductFormValid",i.savingProductFormValidAndNotPristine)("allowOverdraft",i.savingProductSettingsForm.get("allowOverdraft")),a(),I(i.savingProductFormValidAndNotPristine?26:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Cm,vm,xm,bm,ym,Sm,Fu,he],encapsulation:2})}}return e})();var RMt=["buttonCreateShareProduct"],NMt=["templateButtonCreateShareProduct"],LMt=["shareProductsTable"],VMt=["templateShareProductsTable"],qMt=()=>[10,25,50,100],zMt=()=>["create"],HMt=e=>[e];function GMt(e,o){e&1&&(l(0,"button",23),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,zMt)),a(2),v(" ",m(3,2,"labels.buttons.Create Share Product")," "))}function jMt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function $Mt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function UMt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function WMt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function QMt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Shares")))}function YMt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalShares)}}function JMt(e,o){e&1&&b(0,"tr",27)}function KMt(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,HMt,t.id))}}function XMt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Share Product")),a(3),h(m(5,7,"labels.text.This option allows you to create new share product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function ZMt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(32);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter share products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function e5t(e,o){if(e&1){let t=Y();l(0,"h4",29),c(1),p(2,"translate"),l(3,"a",33),c(4),p(5,"translate"),r()(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of share products in the organization"),": "),a(3),h(m(5,7,"labels.text.Share Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var o3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName","totalShares"],this.route.data.subscribe(t=>{this.shareProductsData=t.shareProducts.pageItems})}ngOnInit(){this.dataSource=new Wt(this.shareProductsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showShareProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateShareProduct,this.buttonCreateShareProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showShareProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateShareProductsTable,this.shareProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showShareProductsPage=!1,this.configurationWizardService.showShareProductsList=!1,this.configurationWizardService.showFixedDepositProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showShareProductsPage=!1,this.configurationWizardService.showShareProductsList=!1,this.configurationWizardService.showShareProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(RMt,5),Ee(NMt,5),Ee(LMt,5),Ee(VMt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateShareProduct=s.first),Te(s=Me())&&(i.templateButtonCreateShareProduct=s.first),Te(s=Me())&&(i.shareProductsTable=s.first),Te(s=Me())&&(i.templateShareProductsTable=s.first)}},decls:33,vars:9,consts:[["buttonCreateShareProduct",""],["filter",""],["shareProductsTable",""],["templateButtonCreateShareProduct",""],["templateFilter",""],["templateShareProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","totalShares"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/129531946/Share+products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,GMt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,jMt,3,3,"th",16)(17,$Mt,2,1,"td",17),Z(),X(18,18),F(19,UMt,3,3,"th",16)(20,WMt,2,1,"td",17),Z(),X(21,19),F(22,QMt,3,3,"th",16)(23,YMt,2,1,"td",17),Z(),F(24,JMt,1,0,"tr",20)(25,KMt,1,3,"tr",21),r(),b(26,"mat-paginator",22),r()(),F(27,XMt,16,15,"ng-template",null,3,ti)(29,ZMt,13,12,"ng-template",null,4,ti)(31,e5t,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_SHAREPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,qMt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function t5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var wm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductDetailsForm()}ngOnInit(){this.shareProductsTemplate&&this.shareProductDetailsForm.patchValue({name:this.shareProductsTemplate.name,shortName:this.shareProductsTemplate.shortName,description:this.shareProductsTemplate.description})}createShareProductDetailsForm(){this.shareProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:["",ce.required]})}get shareProductDetails(){return this.shareProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-details-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:44,vars:47,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required","",3,"matTooltip"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],[1,"flex-98"],["matInput","","formControlName","description","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){if(n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",2)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",4),p(20,"translate"),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",5)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"textarea",6),p(33,"translate"),E(34,t5t,7,9,"mat-error"),r()(),l(35,"div",7)(36,"button",8),b(37,"fa-icon",9),c(38),p(39,"translate"),r(),l(40,"button",10),c(41),p(42,"translate"),b(43,"fa-icon",11),r()()()),n&2){let s;g("formGroup",i.shareProductDetailsForm),a(4),h(m(5,19,"labels.inputs.Product Name")),a(2),g("matTooltip",Le(m(7,21,"tooltips.A unique identifier for the share product"))),a(3),le(" ",m(10,23,"labels.inputs.Product Name")," ",m(11,25,"labels.commons.is")," "),a(4),h(m(14,27,"labels.commons.required")),a(4),h(m(18,29,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(20,31,"tooltips.A unique identifier for the share product"))),a(3),le(" ",m(23,33,"labels.inputs.Short Name")," ",m(24,35,"labels.commons.is")," "),a(4),h(m(27,37,"labels.commons.required")),a(4),h(m(31,39,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(33,41,"tooltips.Provides additional information"))),a(2),I((s=i.shareProductDetailsForm.get("description"))!=null&&s.hasError("required")?34:-1),a(4),v(" ",m(39,43,"labels.buttons.Previous")," "),a(3),v(" ",m(42,45,"labels.buttons.Next")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function i5t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var Pm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductCurrencyForm()}ngOnInit(){this.currencyData=this.shareProductsTemplate.currencyOptions,this.shareProductsTemplate.currency?this.shareProductCurrencyForm.patchValue({currencyCode:this.shareProductsTemplate.currency.code,digitsAfterDecimal:this.shareProductsTemplate.currency.decimalPlaces,inMultiplesOf:this.shareProductsTemplate.currency.inMultiplesOf}):this.shareProductCurrencyForm.patchValue({currencyCode:this.currencyData[0].code,digitsAfterDecimal:2})}createShareProductCurrencyForm(){this.shareProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:["",ce.required]})}get shareProductCurrency(){return this.shareProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-currency-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:52,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,i5t,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()()(),l(43,"div",7)(44,"button",8),b(45,"fa-icon",9),c(46),p(47,"translate"),r(),l(48,"button",10),c(49),p(50,"translate"),b(51,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.shareProductCurrencyForm),a(4),h(m(5,21,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,23,"tooltips.The currency to be used"))),a(2),we(i.currencyData),a(3),le(" ",m(12,25,"labels.inputs.Currency")," ",m(13,27,"labels.commons.is")," "),a(4),h(m(16,29,"labels.commons.required")),a(4),h(m(20,31,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,33,"tooltips.Track and report on share accounts"))),a(3),le(" ",m(25,35,"labels.inputs.Decimal Places")," ",m(26,37,"labels.commons.is")," "),a(4),h(m(29,39,"labels.commons.required")),a(4),h(m(33,41,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,43,"tooltips.Amount to be rounded off"))),a(3),le(" ",m(38,45,"labels.inputs.Currency in multiples of")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(5),v(" ",m(47,51,"labels.buttons.Previous")," "),a(3),v(" ",m(50,53,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function n5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Total Number of Shares")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function o5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4,"1"),r()()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Total Number of Shares")," must be at least "))}function a5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Shares to be Issued")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function r5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4,"1"),r()()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Shares to be Issued")," must be at least "))}function l5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Nominal Price")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function s5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4,"1"),r()()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Nominal Price")," must be at least "))}var Tm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductTermsForm()}ngOnInit(){eF([this.shareProductTermsForm.get("sharesIssued").valueChanges,this.shareProductTermsForm.get("unitPrice").valueChanges]).subscribe(([t,n])=>{this.shareProductTermsForm.get("shareCapital").setValue(t*n)}),this.shareProductsTemplate&&this.shareProductTermsForm.patchValue({totalShares:this.shareProductsTemplate.totalShares,sharesIssued:this.shareProductsTemplate.totalSharesIssued,unitPrice:this.shareProductsTemplate.unitPrice,shareCapital:this.shareProductsTemplate.shareCapital})}createShareProductTermsForm(){this.shareProductTermsForm=this.formBuilder.group({totalShares:["",[ce.required,ce.min(1)]],sharesIssued:["",[ce.required,ce.min(1)]],unitPrice:["",[ce.required,ce.min(1)]],shareCapital:[""]})}get shareProductTerms(){return this.shareProductTermsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-terms-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:44,vars:44,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["type","number","matInput","","formControlName","totalShares","required","","min","1",3,"matTooltip"],["type","number","matInput","","formControlName","sharesIssued","required","","min","1",3,"matTooltip"],["type","number","matInput","","formControlName","unitPrice","required","","min","1",3,"matTooltip"],["type","number","matInput","","formControlName","shareCapital","readonly","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),E(8,n5t,7,9,"mat-error"),E(9,o5t,5,3,"mat-error"),r(),l(10,"mat-form-field",2)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",4),p(15,"translate"),E(16,a5t,7,9,"mat-error"),E(17,r5t,5,3,"mat-error"),r(),l(18,"mat-form-field",2)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",5),p(23,"translate"),E(24,l5t,7,9,"mat-error"),E(25,s5t,5,3,"mat-error"),r(),l(26,"mat-form-field",2)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",6),p(31,"translate"),l(32,"mat-hint"),c(33),p(34,"translate"),r()()(),l(35,"div",7)(36,"button",8),b(37,"fa-icon",9),c(38),p(39,"translate"),r(),l(40,"button",10),c(41),p(42,"translate"),b(43,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.shareProductTermsForm),a(4),h(m(5,22,"labels.inputs.Total Number of Shares")),a(2),g("matTooltip",Le(m(7,24,"tooltips.Total number of shares that a product is offering"))),a(2),I(i.shareProductTermsForm.get("totalShares").hasError("required")?8:-1),a(),I(i.shareProductTermsForm.get("totalShares").hasError("min")?9:-1),a(3),h(m(13,26,"labels.inputs.Shares to be Issued")),a(2),g("matTooltip",Le(m(15,28,"tooltips.Total number of shares that an orgranization"))),a(2),I(i.shareProductTermsForm.get("sharesIssued").hasError("required")?16:-1),a(),I(i.shareProductTermsForm.get("sharesIssued").hasError("min")?17:-1),a(3),h(m(21,30,"labels.inputs.Nominal/Unit Price")),a(2),g("matTooltip",Le(m(23,32,"tooltips.Unit/Nominal Price of each share"))),a(2),I(i.shareProductTermsForm.get("unitPrice").hasError("required")?24:-1),a(),I(i.shareProductTermsForm.get("unitPrice").hasError("min")?25:-1),a(3),h(m(29,34,"labels.inputs.Capital Value")),a(2),g("matTooltip",Le(m(31,36,"tooltips.Total Capital Value"))),a(3),v(" ",m(34,38,"labels.inputs.Shares to be Issued * Nominal Price (Auto calculated)")," "),a(5),v(" ",m(39,40,"labels.buttons.Previous")," "),a(3),v(" ",m(42,42,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Fe,Be,ut,qa,ze,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function c5t(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function p5t(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}var Mm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductSettingsForm()}ngOnInit(){this.minimumActivePeriodFrequencyTypeData=this.shareProductsTemplate.minimumActivePeriodFrequencyTypeOptions,this.lockinPeriodFrequencyTypeData=this.shareProductsTemplate.lockinPeriodFrequencyTypeOptions,this.shareProductSettingsForm.patchValue({minimumShares:this.shareProductsTemplate.minimumShares,nominalShares:this.shareProductsTemplate.nominalShares,maximumShares:this.shareProductsTemplate.maximumShares,minimumActivePeriodForDividends:this.shareProductsTemplate.minimumActivePeriod,minimumactiveperiodFrequencyType:this.shareProductsTemplate.minimumActivePeriodForDividendsTypeEnum&&this.shareProductsTemplate.minimumActivePeriodForDividendsTypeEnum.id,lockinPeriodFrequency:this.shareProductsTemplate.lockinPeriod,lockinPeriodFrequencyType:this.shareProductsTemplate.lockPeriodTypeEnum&&this.shareProductsTemplate.lockPeriodTypeEnum.id,allowDividendCalculationForInactiveClients:this.shareProductsTemplate.allowDividendCalculationForInactiveClients})}createShareProductSettingsForm(){this.shareProductSettingsForm=this.formBuilder.group({minimumShares:[""],nominalShares:["",ce.required],maximumShares:[""],minimumActivePeriodForDividends:[""],minimumactiveperiodFrequencyType:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowDividendCalculationForInactiveClients:[!1]})}get shareProductSettings(){return this.shareProductSettingsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-settings-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:76,vars:65,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-31"],["type","number","matInput","","formControlName","minimumShares"],["type","number","matInput","","formControlName","nominalShares","required",""],["type","number","matInput","","formControlName","maximumShares"],[1,"flex-48"],["type","number","matInput","","formControlName","minimumActivePeriodForDividends"],["formControlName","minimumactiveperiodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],["labelPosition","before","formControlName","allowDividendCalculationForInactiveClients",1,"flex-98","margin-v",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",5),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),l(17,"mat-error"),c(18),p(19,"translate"),p(20,"translate"),l(21,"strong"),c(22),p(23,"translate"),r()()(),l(24,"mat-form-field",4)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",7),r(),l(29,"h4",2),c(30),p(31,"translate"),b(32,"i",3),p(33,"translate"),r(),l(34,"mat-form-field",8)(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",9),r(),l(39,"mat-form-field",8)(40,"mat-label"),c(41),p(42,"translate"),r(),l(43,"mat-select",10),Se(44,c5t,3,5,"mat-option",11,Pe),r()(),l(46,"h4",2),c(47),p(48,"translate"),b(49,"i",3),p(50,"translate"),r(),l(51,"mat-form-field",8)(52,"mat-label"),c(53),p(54,"translate"),r(),b(55,"input",12),r(),l(56,"mat-form-field",8)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",13),Se(61,p5t,3,5,"mat-option",11,Pe),r()(),l(63,"mat-checkbox",14),p(64,"translate"),c(65),p(66,"translate"),r()(),l(67,"div",15)(68,"button",16),b(69,"fa-icon",17),c(70),p(71,"translate"),r(),l(72,"button",18),c(73),p(74,"translate"),b(75,"fa-icon",19),r()()()),n&2&&(g("formGroup",i.shareProductSettingsForm),a(3),v(" ",m(4,25,"labels.inputs.Shares per Client")," "),a(2),g("matTooltip",Le(m(6,27,"tooltips.These fields are used to define the minimum, default, maximum shares per customer"))),a(4),h(m(10,29,"labels.inputs.Minimum")),a(5),h(m(15,31,"labels.inputs.Default")),a(4),le(" ",m(19,33,"labels.inputs.Default Shares per Client")," ",m(20,35,"labels.commons.is")," "),a(4),h(m(23,37,"labels.commons.required")),a(4),h(m(27,39,"labels.inputs.Maximum")),a(4),v(" ",m(31,41,"labels.inputs.Minimum Active Period")," "),a(2),g("matTooltip",Le(m(33,43,"tooltips.Minimum active period to consider for dividend calculations"))),a(4),h(m(37,45,"labels.inputs.Frequency")),a(5),h(m(42,47,"labels.inputs.Type")),a(3),we(i.minimumActivePeriodFrequencyTypeData),a(3),v(" ",m(48,49,"labels.inputs.Lock-in Period")," "),a(2),g("matTooltip",Le(m(50,51,"tooltips.Used to indicate the length of time"))),a(4),h(m(54,53,"labels.inputs.Frequency")),a(5),h(m(59,55,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(2),g("matTooltip",Le(m(64,57,"tooltips.Indicates whether the dividends can be processed even share account of this share product is inactive"))),a(2),v(" ",m(66,59,"labels.inputs.Allow dividends for inactive clients")," "),a(5),v(" ",m(71,61,"labels.buttons.Previous")," "),a(3),v(" ",m(74,63,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,qi,ke,Ji,he,ki],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}"]})}}return e})();function m5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function d5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.fromDate)," ")}}function u5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Nominal/Unit Price")))}function f5t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.shareValue," ")}}function h5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function g5t(e,o){if(e&1){let t=Y();l(0,"td",21)(1,"button",22),R("click",function(){let i=V(t).index,s=w(2);return q(s.editMarketPricePeriod(i))}),b(2,"fa-icon",23),r(),l(3,"button",24),R("click",function(){let i=V(t).index,s=w(2);return q(s.deleteMarketPricePeriod(i))}),b(4,"fa-icon",25),r()()}}function _5t(e,o){e&1&&b(0,"tr",26)}function C5t(e,o){e&1&&b(0,"tr",27)}function v5t(e,o){if(e&1&&(l(0,"table",7),X(1,13),F(2,m5t,3,3,"th",14)(3,d5t,3,3,"td",15),Z(),X(4,16),F(5,u5t,3,3,"th",14)(6,f5t,2,1,"td",15),Z(),X(7,17),F(8,h5t,3,3,"th",14)(9,g5t,5,0,"td",15),Z(),F(10,_5t,1,0,"tr",18)(11,C5t,1,0,"tr",19),r()),e&2){let t=w();g("dataSource",t.marketPricePeriods.value),a(10),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}var Dm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.displayedColumns=["fromDate","shareValue","actions"],this.createShareProductMarketPriceForm()}ngOnInit(){this.shareProductsTemplate&&this.shareProductMarketPriceForm.setControl("marketPricePeriods",this.formBuilder.array(this.shareProductsTemplate.marketPrice))}createShareProductMarketPriceForm(){this.shareProductMarketPriceForm=this.formBuilder.group({marketPricePeriods:this.formBuilder.array([])})}get marketPricePeriods(){return this.shareProductMarketPriceForm.get("marketPricePeriods")}setShareProductMarketPriceFormDirty(){this.shareProductMarketPriceForm.pristine&&this.shareProductMarketPriceForm.markAsDirty()}addMarketPricePeriod(){let t=this.getData();this.dialog.open(an,{data:t}).afterClosed().subscribe(i=>{i.data&&(this.marketPricePeriods.push(i.data),this.setShareProductMarketPriceFormDirty())})}editMarketPricePeriod(t){let n=qt(at({},this.getData(this.marketPricePeriods.at(t).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(this.marketPricePeriods.at(t).patchValue(s.data.value),this.setShareProductMarketPriceFormDirty())})}deleteMarketPricePeriod(t){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(i=>{i.delete&&(this.marketPricePeriods.removeAt(t),this.setShareProductMarketPriceFormDirty())})}getData(t){return{title:this.translateService.instant("labels.inputs.Market Price Period"),formfields:this.getFormfields(t)}}getFormfields(t){return[new rr({controlName:"fromDate",label:this.translateService.instant("labels.inputs.From Date"),value:t?t.fromDate:void 0,maxDate:new Date(new Date().setFullYear(new Date().getFullYear()+10)),required:!0,order:1}),new vn({controlName:"shareValue",label:this.translateService.instant("labels.inputs.Nominal/Unit Price"),value:t?t.shareValue:void 0,type:"number",required:!0,order:2})]}get shareProductMarketPrice(){let t=this.settingsService.dateFormat,n=this.settingsService.language.code,i=[];for(let s of this.marketPricePeriods.value)i.push(qt(at({},s),{fromDate:this.dateUtils.formatDate(s.fromDate,t),dateFormat:t,locale:n}));return{marketPricePeriods:i}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-market-price-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:22,vars:17,consts:[[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"add-option"],[1,"mat-h4"],[1,"fas","fa-question",3,"matTooltip"],[1,""],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["matColumnDef","fromDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareValue"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"div",4)(8,"button",5),R("click",function(){return i.addMarketPricePeriod()}),b(9,"fa-icon",6),c(10),p(11,"translate"),r()()(),E(12,v5t,12,3,"table",7),r(),l(13,"div",8)(14,"button",9),b(15,"fa-icon",10),c(16),p(17,"translate"),r(),l(18,"button",11),c(19),p(20,"translate"),b(21,"fa-icon",12),r()()),n&2&&(a(3),v(" ",m(4,7,"labels.inputs.Market Price Period")," "),a(2),g("matTooltip",Le(m(6,9,"tooltips.Add future share value with date range"))),a(5),v(" ",m(11,11,"labels.buttons.Add")," "),a(2),I(i.marketPricePeriods.value.length?12:-1),a(4),v(" ",m(17,13,"labels.buttons.Previous")," "),a(3),v(" ",m(20,15,"labels.buttons.Next")," "))},dependencies:[ue,fe,xe,si,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.add-option[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:1.5rem}"]})}}return e})();function x5t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function b5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function y5t(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function S5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function w5t(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function P5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function T5t(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function M5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function D5t(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function E5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function I5t(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function O5t(e,o){e&1&&b(0,"tr",26)}function A5t(e,o){e&1&&b(0,"tr",27)}var Em=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"],this.pristine=!0}ngOnInit(){this.chargeData=this.shareProductsTemplate.chargeOptions,this.chargesDataSource=this.shareProductsTemplate.charges||[],this.pristine=!0,this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value="",this.pristine=!1}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get shareProductCharges(){return{chargesSelected:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-charges-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,x5t,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,b5t,3,3,"th",9)(18,y5t,2,1,"td",10),Z(),X(19,11),F(20,S5t,3,3,"th",9)(21,w5t,3,4,"td",10),Z(),X(22,12),F(23,P5t,3,3,"th",9)(24,T5t,3,3,"td",10),Z(),X(25,13),F(26,M5t,3,3,"th",9)(27,D5t,3,4,"td",10),Z(),X(28,14),F(29,E5t,3,3,"th",9)(30,I5t,3,0,"td",10),Z(),F(31,O5t,1,0,"tr",15)(32,A5t,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ki,ac,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function F5t(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function k5t(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12)(5,"mat-divider",4),l(6,"h4",11),c(7),p(8,"translate"),r(),b(9,"mifosx-gl-account-selector",12)(10,"mat-divider",4),l(11,"h4",11),c(12),p(13,"translate"),r(),b(14,"mifosx-gl-account-selector",12)(15,"mat-divider",4),l(16,"h4",11),c(17),p(18,"translate"),r(),b(19,"mifosx-gl-account-selector",12),r()),e&2){let t=w();a(2),h(m(3,20,"labels.heading.Assets")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.shareReferenceId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Share reference"),a(3),h(m(8,22,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.shareSuspenseId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Share suspense control"),a(3),h(m(13,24,"labels.heading.Share Equity")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.shareEquityId)("glAccountList",t.equityAccountData)("required",!0)("inputLabel","Equity"),a(3),h(m(18,26,"labels.heading.Income")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees")}}var Im=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.assetAccountData=this.shareProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.shareProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.equityAccountData=this.shareProductsTemplate.accountingMappingOptions.equityAccountOptions||[],this.liabilityAccountData=this.shareProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.shareProductsTemplate.accountingRule&&(this.shareProductAccountingForm.patchValue({accountingRule:this.shareProductsTemplate.accountingRule.id}),this.shareProductsTemplate.accountingRule.id===2&&this.shareProductAccountingForm.patchValue({shareReferenceId:this.shareProductsTemplate.accountingMappings.shareReferenceId.id,shareSuspenseId:this.shareProductsTemplate.accountingMappings.shareSuspenseId.id,shareEquityId:this.shareProductsTemplate.accountingMappings.shareEquityId.id,incomeFromFeeAccountId:this.shareProductsTemplate.accountingMappings.incomeFromFeeAccountId.id}))}createShareProductAccountingForm(){this.shareProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}setConditionalControls(){this.shareProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2?(this.shareProductAccountingForm.addControl("shareReferenceId",new it("",ce.required)),this.shareProductAccountingForm.addControl("shareSuspenseId",new it("",ce.required)),this.shareProductAccountingForm.addControl("shareEquityId",new it("",ce.required)),this.shareProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required))):(this.shareProductAccountingForm.removeControl("shareReferenceId"),this.shareProductAccountingForm.removeControl("shareSuspenseId"),this.shareProductAccountingForm.removeControl("shareEquityId"),this.shareProductAccountingForm.removeControl("incomeFromFeeAccountId"))})}get shareProductAccounting(){return this.shareProductAccountingForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-accounting-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate",accountingRuleData:"accountingRuleData",shareProductFormValid:"shareProductFormValid"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-column.lt-md","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,F5t,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,k5t,20,28,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.shareProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.shareProductAccountingForm.value.accountingRule===2?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.shareProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,tr,ir,Ri,ta,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var B5t=()=>["../"];function R5t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.shareProduct.description)}}function N5t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Active Period"),":"),a(3),h(t.shareProduct.minimumActivePeriodForDividends+" "+$t(6,4,t.shareProduct.minimumactiveperiodFrequencyType,t.shareProductsTemplate.minimumActivePeriodFrequencyTypeOptions,"id","value"))}}function L5t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.shareProduct.lockinPeriodFrequency+" "+$t(6,4,t.shareProduct.lockinPeriodFrequencyType,t.shareProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function V5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function q5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.fromDate)," ")}}function z5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Nominal/Unit Price")))}function H5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.shareValue)," ")}}function G5t(e,o){e&1&&b(0,"tr",22)}function j5t(e,o){e&1&&b(0,"tr",23)}function $5t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",13),X(6,14),F(7,V5t,3,3,"th",15)(8,q5t,3,3,"td",16),Z(),X(9,17),F(10,z5t,3,3,"th",15)(11,H5t,3,3,"td",16),Z(),F(12,G5t,1,0,"tr",18)(13,j5t,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Market Price Period")),a(3),g("dataSource",t.shareProduct.marketPricePeriods),a(7),g("matHeaderRowDef",t.marketPriceDisplayedColumns),a(),g("matRowDefColumns",t.marketPriceDisplayedColumns)}}function U5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function W5t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function Q5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Y5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function J5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function K5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function X5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function Z5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function eDt(e,o){e&1&&b(0,"tr",22)}function tDt(e,o){e&1&&b(0,"tr",23)}function iDt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",13),X(6,24),F(7,U5t,3,3,"th",15)(8,W5t,2,1,"td",16),Z(),X(9,25),F(10,Q5t,3,3,"th",15)(11,Y5t,3,4,"td",16),Z(),X(12,26),F(13,J5t,3,3,"th",15)(14,K5t,3,3,"td",16),Z(),X(15,27),F(16,X5t,3,3,"th",15)(17,Z5t,3,4,"td",16),Z(),F(18,eDt,1,0,"tr",18)(19,tDt,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Charges")),a(3),g("dataSource",t.shareProduct.chargesSelected),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function nDt(e,o){if(e&1&&(l(0,"div",7)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"div",4)(5,"span",5),c(6),p(7,"translate"),r(),l(8,"span",6),c(9),p(10,"find"),r()(),l(11,"h4",28),c(12),p(13,"translate"),r(),l(14,"div",4)(15,"span",5),c(16),p(17,"translate"),r(),l(18,"span",6),c(19),p(20,"find"),r()(),l(21,"h4",28),c(22),p(23,"translate"),r(),l(24,"div",4)(25,"span",5),c(26),p(27,"translate"),r(),l(28,"span",6),c(29),p(30,"find"),r()(),l(31,"h4",28),c(32),p(33,"translate"),r(),l(34,"div",4)(35,"span",5),c(36),p(37,"translate"),r(),l(38,"span",6),c(39),p(40,"find"),r()()()),e&2){let t=w();a(2),h(m(3,12,"labels.heading.Assets")),a(4),v("",m(7,14,"labels.inputs.Share reference"),":"),a(3),h($t(10,16,t.shareProduct.shareReferenceId,t.shareProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")),a(3),h(m(13,21,"labels.heading.Liabilities")),a(4),v("",m(17,23,"labels.inputs.Share suspense control"),":"),a(3),h($t(20,25,t.shareProduct.shareSuspenseId,t.shareProductsTemplate.accountingMappingOptions.liabilityAccountOptions,"id","name")),a(3),h(m(23,30,"labels.heading.Share Equity")),a(4),v("",m(27,32,"labels.inputs.Equity"),":"),a(3),h($t(30,34,t.shareProduct.shareEquityId,t.shareProductsTemplate.accountingMappingOptions.equityAccountOptions,"id","name")),a(3),h(m(33,39,"labels.heading.Income")),a(4),v("",m(37,41,"labels.inputs.Income from fees"),":"),a(3),h($t(40,43,t.shareProduct.incomeFromFeeAccountId,t.shareProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name"))}}function oDt(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w();return q(i.submitEvent.emit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Submit")," "))}var ku=(()=>{class e{constructor(){this.submitEvent=new bi,this.marketPriceDisplayedColumns=["fromDate","shareValue"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-preview-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate",accountingRuleData:"accountingRuleData",shareProduct:"shareProduct",taskPermission:"taskPermission"},outputs:{submitEvent:"submitEvent"},decls:111,vars:90,consts:[[1,"responsive-column"],[1,"mat-h2","flex-fill"],[1,"flex-fill"],[1,"mat-h3","flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],[1,"mat-h4","flex-fill"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,R5t,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),p(48,"formatNumber"),r()(),l(49,"div",4)(50,"span",5),c(51),p(52,"translate"),r(),l(53,"span",6),c(54),p(55,"formatNumber"),r()(),l(56,"div",4)(57,"span",5),c(58),p(59,"translate"),r(),l(60,"span",6),c(61),p(62,"formatNumber"),r()(),l(63,"div",4)(64,"span",5),c(65),p(66,"translate"),r(),l(67,"span",6),c(68),p(69,"formatNumber"),r()(),l(70,"h3",3),c(71),p(72,"translate"),r(),b(73,"mat-divider",2),l(74,"div",4)(75,"span",5),c(76),p(77,"translate"),r(),l(78,"span",6),c(79),r()(),E(80,N5t,7,9,"div",4),E(81,L5t,7,9,"div",4),l(82,"div",4)(83,"span",5),c(84),p(85,"translate"),r(),l(86,"span",6),c(87),p(88,"yesNo"),r()(),E(89,$5t,14,6,"div",7),E(90,iDt,20,6,"div",7),l(91,"h3",3),c(92),p(93,"translate"),r(),b(94,"mat-divider",2),l(95,"div",4)(96,"span",5),c(97),p(98,"translate"),r(),l(99,"span",6),c(100),r()(),E(101,nDt,41,48,"div",7),r(),l(102,"div",8)(103,"button",9),b(104,"fa-icon",10),c(105),p(106,"translate"),r(),l(107,"button",11),c(108),p(109,"translate"),r(),F(110,oDt,3,3,"button",12),r()),n&2&&(a(2),h(i.shareProduct.name),a(3),h(m(6,38,"labels.heading.Details")),a(5),v("",m(11,40,"labels.inputs.Short Name"),":"),a(3),h(i.shareProduct.shortName),a(),I(i.shareProduct.description?14:-1),a(2),h(m(17,42,"labels.heading.Currency")),a(5),v("",m(22,44,"labels.inputs.Currency"),":"),a(3),h($t(25,46,i.shareProduct.currencyCode,i.shareProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,51,"labels.inputs.Decimal Places"),":"),a(3),h(i.shareProduct.digitsAfterDecimal),a(3),v("",m(35,53,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.shareProduct.inMultiplesOf),a(2),h(m(40,55,"labels.heading.Terms")),a(5),v("",m(45,57,"labels.inputs.Total Number of Shares"),":"),a(3),h(m(48,59,i.shareProduct.totalShares)),a(4),v("",m(52,61,"labels.inputs.Shares to be Issued"),":"),a(3),h(m(55,63,i.shareProduct.sharesIssued)),a(4),v("",m(59,65,"labels.inputs.Nominal/Unit Price"),":"),a(3),h(m(62,67,i.shareProduct.unitPrice)),a(4),v("",m(66,69,"labels.inputs.Capital Value"),":"),a(3),h(m(69,71,i.shareProduct.shareCapital)),a(3),h(m(72,73,"labels.heading.Settings")),a(5),v("",m(77,75,"labels.inputs.Shares per Client"),":"),a(3),h(i.shareProduct.nominalShares+" (Min: "+(i.shareProduct.minimumShares?i.shareProduct.minimumShares:i.shareProduct.nominalShares)+", Max: "+(i.shareProduct.maximumShares?i.shareProduct.maximumShares:i.shareProduct.nominalShares)+")"),a(),I(i.shareProduct.minimumActivePeriodForDividends?80:-1),a(),I(i.shareProduct.lockinPeriodFrequency?81:-1),a(3),v("",m(85,77,"labels.inputs.Allow dividends for inactive clients"),":"),a(3),h(m(88,79,i.shareProduct.allowDividendCalculationForInactiveClients)),a(2),I(i.shareProduct.marketPricePeriods.length?89:-1),a(),I(i.shareProduct.chargesSelected.length?90:-1),a(2),h(m(93,81,"labels.heading.Accounting")),a(5),v("",m(98,83,"labels.inputs.Type"),":"),a(3),h(i.accountingRuleData[i.shareProduct.accountingRule-1]),a(),I(i.shareProduct.accountingRule===2?101:-1),a(4),v(" ",m(106,85,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(89,B5t)),a(),v(" ",m(109,87,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission",i.taskPermission))},dependencies:[ue,fe,Oe,xe,Ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,qi,ke,Pi,he,ki,Qn,In,po],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}"]})}}return e})();function aDt(e,o){e&1&&b(0,"fa-icon",14)}function rDt(e,o){e&1&&b(0,"fa-icon",14)}function lDt(e,o){e&1&&b(0,"fa-icon",15)}function sDt(e,o){e&1&&b(0,"fa-icon",16)}function cDt(e,o){e&1&&b(0,"fa-icon",17)}function pDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function mDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function dDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function uDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function fDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MARKET PRICE"))}function hDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function gDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function _Dt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function CDt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,_Dt,2,3,"ng-template",9),l(2,"mifosx-share-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("shareProductsTemplate",t.shareProductsTemplate)("accountingRuleData",t.accountingRuleData)("shareProduct",t.shareProduct)("taskPermission","CREATE_SHAREPRODUCT")}}var a3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.shareProductsTemplate=t.shareProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForShares()}get shareProductDetailsForm(){return this.shareProductDetailsStep.shareProductDetailsForm}get shareProductCurrencyForm(){return this.shareProductCurrencyStep.shareProductCurrencyForm}get shareProductTermsForm(){return this.shareProductTermsStep.shareProductTermsForm}get shareProductSettingsForm(){return this.shareProductSettingsStep.shareProductSettingsForm}get shareProductMarketPriceForm(){return this.shareProductMarketPriceStep.shareProductMarketPriceForm}get shareProductAccountingForm(){return this.shareProductAccountingStep.shareProductAccountingForm}get shareProductFormValid(){return this.shareProductDetailsForm.valid&&this.shareProductCurrencyForm.valid&&this.shareProductTermsForm.valid&&this.shareProductSettingsForm.valid&&this.shareProductMarketPriceForm.valid&&this.shareProductAccountingForm.valid}get shareProduct(){return at(at(at(at(at(at(at({},this.shareProductDetailsStep.shareProductDetails),this.shareProductCurrencyStep.shareProductCurrency),this.shareProductTermsStep.shareProductTerms),this.shareProductSettingsStep.shareProductSettings),this.shareProductMarketPriceStep.shareProductMarketPrice),this.shareProductChargesStep.shareProductCharges),this.shareProductAccountingStep.shareProductAccounting)}submit(){let t=qt(at({},this.shareProduct),{chargesSelected:this.shareProduct.chargesSelected.map(n=>({id:n.id})),locale:this.settingsService.language.code});this.productsService.createShareProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-share-product"]],viewQuery:function(n,i){if(n&1&&(Ee(wm,7),Ee(Pm,7),Ee(Tm,7),Ee(Mm,7),Ee(Dm,7),Ee(Em,7),Ee(Im,7)),n&2){let s;Te(s=Me())&&(i.shareProductDetailsStep=s.first),Te(s=Me())&&(i.shareProductCurrencyStep=s.first),Te(s=Me())&&(i.shareProductTermsStep=s.first),Te(s=Me())&&(i.shareProductSettingsStep=s.first),Te(s=Me())&&(i.shareProductMarketPriceStep=s.first),Te(s=Me())&&(i.shareProductChargesStep=s.first),Te(s=Me())&&(i.shareProductAccountingStep=s.first)}},decls:30,vars:15,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"shareProductsTemplate"],[3,"shareProductsTemplate","currencyCode"],[3,"shareProductsTemplate","accountingRuleData","shareProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","shareProductsTemplate","accountingRuleData","shareProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,aDt,1,0,"ng-template",3)(4,rDt,1,0,"ng-template",4)(5,lDt,1,0,"ng-template",5)(6,sDt,1,0,"ng-template",6)(7,cDt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,pDt,2,3,"ng-template",9),b(10,"mifosx-share-product-details-step"),r(),l(11,"mat-step",8),F(12,mDt,2,3,"ng-template",9),b(13,"mifosx-share-product-currency-step",10),r(),l(14,"mat-step",8),F(15,dDt,2,3,"ng-template",9),b(16,"mifosx-share-product-terms-step"),r(),l(17,"mat-step",8),F(18,uDt,2,3,"ng-template",9),b(19,"mifosx-share-product-settings-step",10),r(),l(20,"mat-step",8),F(21,fDt,2,3,"ng-template",9),b(22,"mifosx-share-product-market-price-step"),r(),l(23,"mat-step"),F(24,hDt,2,3,"ng-template",9),b(25,"mifosx-share-product-charges-step",11),r(),l(26,"mat-step",8),F(27,gDt,2,3,"ng-template",9),b(28,"mifosx-share-product-accounting-step",12),r(),E(29,CDt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.shareProductDetailsForm),a(3),g("stepControl",i.shareProductCurrencyForm),a(2),g("shareProductsTemplate",i.shareProductsTemplate),a(),g("stepControl",i.shareProductTermsForm),a(3),g("stepControl",i.shareProductSettingsForm),a(2),g("shareProductsTemplate",i.shareProductsTemplate),a(),g("stepControl",i.shareProductMarketPriceForm),a(5),g("shareProductsTemplate",i.shareProductsTemplate)("currencyCode",i.shareProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.shareProductAccountingForm),a(2),g("shareProductsTemplate",i.shareProductsTemplate)("accountingRuleData",i.accountingRuleData)("shareProductFormValid",i.shareProductFormValid),a(),I(i.shareProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,wm,Pm,Tm,Mm,Dm,Em,Im,ku,he],encapsulation:2})}}return e})();var vDt=()=>["./general"],xDt=e=>["./datatables",e];function bDt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,xDt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function yDt(e,o){if(e&1&&F(0,bDt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var r3=(()=>{class e{constructor(){this.route=T(Ie),this.shareProductDatatables=[],this.route.data.subscribe(t=>{this.shareProductDatatables=[],t.shareProductDatatables.forEach(n=>{this.shareProductDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-share-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,yDt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,vDt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.inputs.General")," "),a(2),we(i.shareProductDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function SDt(e,o){e&1&&b(0,"fa-icon",15)}function wDt(e,o){e&1&&b(0,"fa-icon",15)}function PDt(e,o){e&1&&b(0,"fa-icon",16)}function TDt(e,o){e&1&&b(0,"fa-icon",17)}function MDt(e,o){e&1&&b(0,"fa-icon",18)}function DDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function EDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function IDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function ODt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function ADt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MARKET PRICE"))}function FDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function kDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function BDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function RDt(e,o){if(e&1){let t=Y();l(0,"mat-step",14),F(1,BDt,2,3,"ng-template",9),l(2,"mifosx-share-product-preview-step",19),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("shareProductsTemplate",t.shareProductAndTemplate)("accountingRuleData",t.accountingRuleData)("shareProduct",t.shareProduct)("taskPermission","UPDATE_SHAREPRODUCT")}}var l3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.shareProductAndTemplate=t.shareProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForShares()}get shareProductDetailsForm(){return this.shareProductDetailsStep.shareProductDetailsForm}get shareProductCurrencyForm(){return this.shareProductCurrencyStep.shareProductCurrencyForm}get shareProductTermsForm(){return this.shareProductTermsStep.shareProductTermsForm}get shareProductSettingsForm(){return this.shareProductSettingsStep.shareProductSettingsForm}get shareProductMarketPriceForm(){return this.shareProductMarketPriceStep.shareProductMarketPriceForm}get shareProductAccountingForm(){return this.shareProductAccountingStep.shareProductAccountingForm}get shareProductFormValidAndNotPristine(){return this.shareProductDetailsForm.valid&&this.shareProductCurrencyForm.valid&&this.shareProductTermsForm.valid&&this.shareProductSettingsForm.valid&&this.shareProductMarketPriceForm.valid&&this.shareProductAccountingForm.valid&&(!this.shareProductDetailsForm.pristine||!this.shareProductCurrencyForm.pristine||!this.shareProductTermsForm.pristine||!this.shareProductSettingsForm.pristine||!this.shareProductMarketPriceForm.pristine||!this.shareProductChargesStep.pristine||!this.shareProductAccountingForm.pristine)}get shareProduct(){return at(at(at(at(at(at(at({},this.shareProductDetailsStep.shareProductDetails),this.shareProductCurrencyStep.shareProductCurrency),this.shareProductTermsStep.shareProductTerms),this.shareProductSettingsStep.shareProductSettings),this.shareProductMarketPriceStep.shareProductMarketPrice),this.shareProductChargesStep.shareProductCharges),this.shareProductAccountingStep.shareProductAccounting)}submit(){let t=qt(at({},this.shareProduct),{chargesSelected:this.shareProduct.chargesSelected.map(n=>({id:n.id})),locale:this.settingsService.language.code});this.productsService.updateShareProduct(this.shareProductAndTemplate.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-share-product"]],viewQuery:function(n,i){if(n&1&&(Ee(wm,7),Ee(Pm,7),Ee(Tm,7),Ee(Mm,7),Ee(Dm,7),Ee(Em,7),Ee(Im,7)),n&2){let s;Te(s=Me())&&(i.shareProductDetailsStep=s.first),Te(s=Me())&&(i.shareProductCurrencyStep=s.first),Te(s=Me())&&(i.shareProductTermsStep=s.first),Te(s=Me())&&(i.shareProductSettingsStep=s.first),Te(s=Me())&&(i.shareProductMarketPriceStep=s.first),Te(s=Me())&&(i.shareProductChargesStep=s.first),Te(s=Me())&&(i.shareProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed","",3,"stepControl"],["matStepLabel",""],[3,"shareProductsTemplate"],["completed",""],[3,"shareProductsTemplate","currencyCode"],[3,"shareProductsTemplate","accountingRuleData","shareProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","shareProductsTemplate","accountingRuleData","shareProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,SDt,1,0,"ng-template",3)(4,wDt,1,0,"ng-template",4)(5,PDt,1,0,"ng-template",5)(6,TDt,1,0,"ng-template",6)(7,MDt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,DDt,2,3,"ng-template",9),b(10,"mifosx-share-product-details-step",10),r(),l(11,"mat-step",8),F(12,EDt,2,3,"ng-template",9),b(13,"mifosx-share-product-currency-step",10),r(),l(14,"mat-step",8),F(15,IDt,2,3,"ng-template",9),b(16,"mifosx-share-product-terms-step",10),r(),l(17,"mat-step",8),F(18,ODt,2,3,"ng-template",9),b(19,"mifosx-share-product-settings-step",10),r(),l(20,"mat-step",8),F(21,ADt,2,3,"ng-template",9),b(22,"mifosx-share-product-market-price-step",10),r(),l(23,"mat-step",11),F(24,FDt,2,3,"ng-template",9),b(25,"mifosx-share-product-charges-step",12),r(),l(26,"mat-step",8),F(27,kDt,2,3,"ng-template",9),b(28,"mifosx-share-product-accounting-step",13),r(),E(29,RDt,3,4,"mat-step",14),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.shareProductDetailsForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductCurrencyForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductTermsForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductSettingsForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductMarketPriceForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(3),g("shareProductsTemplate",i.shareProductAndTemplate)("currencyCode",i.shareProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.shareProductAccountingForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate)("accountingRuleData",i.accountingRuleData)("shareProductFormValid",i.shareProductFormValidAndNotPristine),a(),I(i.shareProductFormValidAndNotPristine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,wm,Pm,Tm,Mm,Dm,Em,Im,ku,he],encapsulation:2})}}return e})();var s3=()=>["tax-components"],c3=()=>["tax-groups"];function NDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function LDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function VDt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,s3)),a(),v(" ",m(2,2,"labels.heading.Define Tax Components")," "))}function qDt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,NDt,1,0,"fa-icon",8),E(7,LDt,1,0,"fa-icon",9),E(8,VDt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,s3)),a(),g("routerLink",oe(10,s3)),a(2),g("routerLink",oe(11,s3)),a(),h(m(5,7,"labels.heading.Manage Tax Components")),a(2),I(t.arrowBooleans[0]?-1:6),a(),I(t.arrowBooleans[0]?7:-1),a(),I(t.arrowBooleans[0]?8:-1)}}function zDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function HDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function GDt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,c3)),a(),v(" ",m(2,2,"labels.heading.Define Tax Groups")," "))}function jDt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,zDt,1,0,"fa-icon",8),E(7,HDt,1,0,"fa-icon",9),E(8,GDt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,c3)),a(),g("routerLink",oe(10,c3)),a(2),g("routerLink",oe(11,c3)),a(),h(m(5,7,"labels.heading.Manage Tax Groups")),a(2),I(t.arrowBooleans[1]?-1:6),a(),I(t.arrowBooleans[1]?7:-1),a(),I(t.arrowBooleans[1]?8:-1)}}var p3=(()=>{class e{constructor(){this.arrowBooleans=new Array(2).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-tax-configurations"]],decls:9,vars:2,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink",4,"mifosxHasPermission"],[3,"routerLink"],["matListIcon","",3,"routerLink"],["icon","building","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list"),F(5,qDt,9,12,"mat-list-item",3),r()(),l(6,"div",2)(7,"mat-nav-list"),F(8,jDt,9,12,"mat-list-item",3),r()()()()()),n&2&&(a(5),g("mifosxHasPermission","READ_TAXCOMPONENT"),a(3),g("mifosxHasPermission","READ_TAXGROUP"))},dependencies:[ue,fe,Oe,Ue,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var $Dt=["buttonCreateRecurringProduct"],UDt=["templateButtonCreateRecurringProduct"],WDt=["recurringProductsTable"],QDt=["templateRecurringProductsTable"],YDt=()=>[10,25,50,100],JDt=()=>["create"],KDt=e=>[e];function XDt(e,o){e&1&&(l(0,"button",22),p(1,"translate"),b(2,"fa-icon",23),c(3),p(4,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,4,"tooltips.Create Recurring Deposit Product")))("routerLink",oe(8,JDt)),a(3),v(" ",m(4,6,"labels.buttons.Create Recurring Deposit Product")," "))}function ZDt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function eEt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function tEt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function iEt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function nEt(e,o){e&1&&b(0,"tr",26)}function oEt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,KDt,t.id))}}function aEt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create recurring deposit product")),a(3),h(m(5,7,"labels.text.This option allows you to create new recurring product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function rEt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(26);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(30);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter recurring deposit products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function lEt(e,o){if(e&1){let t=Y();l(0,"h4",28),c(1),p(2,"translate"),l(3,"a",32),c(4),p(5,"translate"),r()(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of recurring deposit products in the organization"),": "),a(3),h(m(5,7,"labels.heading.Recurring Deposit Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var m3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName"],this.route.data.subscribe(t=>{this.recurringDepositProductData=t.recurringDepositProducts})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setRecurringDepositProducts()}setRecurringDepositProducts(){this.dataSource=new Wt(this.recurringDepositProductData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}ngAfterViewInit(){this.configurationWizardService.showRecurringDepositProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateRecurringProduct,this.buttonCreateRecurringProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showRecurringDepositProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateRecurringProductsTable,this.recurringProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.openNextStepDialog()}previousStep(){this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.configurationWizardService.showRecurringDepositProducts=!0,this.router.navigate(["/products"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Funds and Manage Reports",previousStepName:"Products",stepPercentage:94}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.configurationWizardService.showManageFunds=!0,this.router.navigate(["/organization"])):(this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.router.navigate(["/home"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee($Dt,5),Ee(UDt,5),Ee(WDt,5),Ee(QDt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateRecurringProduct=s.first),Te(s=Me())&&(i.templateButtonCreateRecurringProduct=s.first),Te(s=Me())&&(i.recurringProductsTable=s.first),Te(s=Me())&&(i.templateRecurringProductsTable=s.first)}},decls:31,vars:13,consts:[["buttonCreateRecurringProduct",""],["filter",""],["recurringProductsTable",""],["templateButtonCreateRecurringProduct",""],["templateFilter",""],["templateRecurringProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary","matTooltipPosition","above",3,"routerLink","matTooltip",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","","matTooltipPosition","left",3,"keyup","matTooltip"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary","matTooltipPosition","above",3,"routerLink","matTooltip"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102629552/Recurring+Deposit","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,XDt,5,9,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),p(12,"translate"),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(13,"div",13,2)(15,"table",14),X(16,15),F(17,ZDt,3,3,"th",16)(18,eEt,2,1,"td",17),Z(),X(19,18),F(20,tEt,3,3,"th",16)(21,iEt,2,1,"td",17),Z(),F(22,nEt,1,0,"tr",19)(23,oEt,1,3,"tr",20),r(),b(24,"mat-paginator",21),r()(),F(25,aEt,16,15,"ng-template",null,3,ti)(27,rEt,13,12,"ng-template",null,4,ti)(29,lEt,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_RECURRINGDEPOSITPRODUCT"),a(6),h(m(10,8,"labels.inputs.Filter")),a(2),g("matTooltip",Le(m(12,10,"tooltips.Add Filters"))),a(4),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,YDt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,si,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var sEt=()=>["./general"],cEt=e=>["./datatables",e];function pEt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,cEt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function mEt(e,o){if(e&1&&F(0,pEt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var u3=(()=>{class e{constructor(){this.route=T(Ie),this.recurringDepositDatatables=[],this.route.data.subscribe(t=>{this.recurringDepositDatatables=[],t.recurringDepositDatatables.forEach(n=>{n.entitySubType==="Recurring Deposit"&&this.recurringDepositDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-recurring-deposit-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,mEt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,sEt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.recurringDepositDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var XK=(()=>{class e{getChargeAppliesToOptions(){return[{id:1,code:"chargeAppliesTo.loan",value:"Loan"},{id:2,code:"chargeAppliesTo.savings",value:"Savings"},{id:3,code:"chargeAppliesTo.client",value:"Client"},{id:4,code:"chargeAppliesTo.shares",value:"Shares"}]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var dEt=["buttonCreateCharge"],uEt=["templateButtonCreateCharge"],fEt=["chargesTable"],hEt=["templateChargesTable"],gEt=()=>[10,25,50,100],_Et=()=>["create"],CEt=e=>[e];function vEt(e,o){e&1&&(l(0,"button",32),b(1,"fa-icon",33),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,_Et)),a(2),v(" ",m(3,2,"labels.text.Create Charge")," "))}function xEt(e,o){if(e&1&&(l(0,"mat-option",15),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function bEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function yEt(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function SEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Applies To")))}function wEt(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.chargeAppliesTo.value,"catalogs"))}}function PEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Time")))}function TEt(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.chargeTimeType.value,"catalogs"))}}function MEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Calculation")))}function DEt(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.chargeCalculationType.value,"catalogs"))}}function EEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function IEt(e,o){if(e&1&&(l(0,"td",36),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amount))}}function OEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.commons.Is")," ",m(3,4,"labels.inputs.Penalty"),"? "))}function AEt(e,o){e&1&&(b(0,"fa-icon",38),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function FEt(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function kEt(e,o){if(e&1&&(l(0,"td",37),E(1,AEt,2,4,"fa-icon",38),E(2,FEt,2,4,"fa-icon",39),r()),e&2){let t=o.$implicit;a(),I(t.penalty?1:-1),a(),I(t.penalty?-1:2)}}function BEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.commons.Is")," ",m(3,4,"labels.status.Active"),"? "))}function REt(e,o){if(e&1&&(l(0,"td",37)(1,"div",40),b(2,"fa-icon",41),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.active===!0?"true":"false"),a(),g("matTooltip",Le(t.active===!0?m(3,3,"labels.inputs.Active"):m(4,5,"labels.catalogs.Inactive")))}}function NEt(e,o){e&1&&b(0,"tr",42)}function LEt(e,o){if(e&1&&b(0,"tr",43),e&2){let t=o.$implicit;g("routerLink",Nt(1,CEt,t.id))}}function VEt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(47);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.text.Create Charge")),a(3),h(m(5,7,"labels.text.Supports Loan charges, Savings & deposits")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function qEt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",45)(4,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(45);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(18),u=ve(49);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter charges.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function zEt(e,o){if(e&1){let t=Y();l(0,"h4",44),c(1),p(2,"translate"),l(3,"a",48),c(4),p(5,"translate"),r()(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(47);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of charges in the organization. For more details click"),": "),a(3),h(m(5,7,"labels.heading.Charges")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var f3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.charges=T(XK),this.chargeData=[],this.displayedColumns=["name","chargeAppliesTo","chargeTimeType","chargeCalculationType","amount","penalty","active"],this.chargeAppliesToOptions=[],this.route.data.subscribe(t=>{this.chargeData=t.charges}),this.chargeAppliesToOptions=this.charges.getChargeAppliesToOptions()}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCharges()}setCharges(){this.dataSource=new Wt(this.chargeData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"chargeAppliesTo":return t.chargeAppliesTo.value;default:return t[n]}},this.dataSource.sort=this.sort}ngAfterViewInit(){this.configurationWizardService.showChargesPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateCharge,this.buttonCreateCharge.nativeElement,"bottom",!0)}),this.configurationWizardService.showChargesList===!0&&setTimeout(()=>{this.showPopover(this.templateChargesTable,this.chargesTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showChargesPage=!1,this.configurationWizardService.showChargesList=!1,this.configurationWizardService.showLoanProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showChargesPage=!1,this.configurationWizardService.showChargesList=!1,this.configurationWizardService.showCharges=!0,this.router.navigate(["/products"])}filterByAppliesTo(t){let n=this.chargeData.filter(i=>i.chargeAppliesTo.id===t);this.dataSource=new Wt(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-charges"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(dEt,5),Ee(uEt,5),Ee(fEt,5),Ee(hEt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateCharge=s.first),Te(s=Me())&&(i.templateButtonCreateCharge=s.first),Te(s=Me())&&(i.chargesTable=s.first),Te(s=Me())&&(i.templateChargesTable=s.first)}},decls:50,vars:13,consts:[["buttonCreateCharge",""],["filter",""],["chargesTable",""],["templateButtonCreateCharge",""],["templateFilter",""],["templateChargesTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill","flex-68"],["matInput","",3,"keyup"],[1,"flex-28"],[3,"selectionChange","placeholder"],[3,"value"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeAppliesTo"],["matColumnDef","chargeTimeType"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","penalty"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","active"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",1,"r-amount"],["mat-cell","",1,"center"],["icon","check-circle","size","lg","matTooltipPosition","right",1,"ispenalty",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"nopenalty",3,"matTooltip"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/72908813/Charges","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,vEt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()(),l(12,"mat-form-field",13)(13,"mat-select",14),p(14,"translate"),R("selectionChange",function(u){return V(s),q(i.filterByAppliesTo(u.value))}),Se(15,xEt,3,5,"mat-option",15,Pe),r()()(),l(17,"div",16,2)(19,"table",17),X(20,18),F(21,bEt,3,3,"th",19)(22,yEt,2,1,"td",20),Z(),X(23,21),F(24,SEt,3,3,"th",19)(25,wEt,3,4,"td",20),Z(),X(26,22),F(27,PEt,3,3,"th",19)(28,TEt,3,4,"td",20),Z(),X(29,23),F(30,MEt,3,3,"th",19)(31,DEt,3,4,"td",20),Z(),X(32,24),F(33,EEt,3,3,"th",19)(34,IEt,3,3,"td",25),Z(),X(35,26),F(36,OEt,4,6,"th",19)(37,kEt,3,2,"td",27),Z(),X(38,28),F(39,BEt,4,6,"th",19)(40,REt,5,7,"td",27),Z(),F(41,NEt,1,0,"tr",29)(42,LEt,1,3,"tr",30),r(),b(43,"mat-paginator",31),r()(),F(44,VEt,16,15,"ng-template",null,3,ti)(46,qEt,13,12,"ng-template",null,4,ti)(48,zEt,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_CHARGE"),a(6),h(m(10,8,"labels.inputs.Filter")),a(4),g("placeholder",Le(m(14,10,"labels.inputs.Filter"))),a(2),we(i.chargeAppliesToOptions),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,gEt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,ki,In],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}.ispenalty[_ngcontent-%COMP%]{color:#32cd32}.nopenalty[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var HEt=()=>["../"],GEt=()=>["edit"];function jEt(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,GEt)),a(2),v(" ",m(3,2,"labels.heading.Edit")," "))}function $Et(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w();return q(i.deleteCharge())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.heading.Delete")," "))}function UEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Minimum Charge Cap")," "))}function WEt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.minCap," ")}}function QEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Maximum Charge Cap")," "))}function YEt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.maxCap," ")}}function JEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Add Fee Frequency")," "))}function KEt(e,o){if(e&1&&(l(0,"div",6),c(1),p(2,"translateKey"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,t.chargeData.feeFrequency.value,"catalogs")," ")}}function XEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Frequency Interval")," "))}function ZEt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.feeInterval," ")}}function eIt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",7),e&2){let t=w();g("accountTitle","Income From Charges")("glAccount",t.chargeData.incomeOrLiabilityAccount)("withTitle","50%")}}function tIt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Tax Group")," "))}function iIt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.taxGroup.name," ")}}var h3=(()=>{class e{constructor(){this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.chargeData=t.charge,this.chargeData.minCap&&(this.minCap=!0),this.chargeData.maxCap&&(this.maxCap=!0)})}deleteCharge(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+this.chargeData.id}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteCharge(this.chargeData.id).subscribe(()=>{this.router.navigate(["/products/charges"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-charge"]],decls:73,vars:70,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,jEt,4,5,"button",1)(2,$Et,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),p(17,"translateKey"),r(),l(18,"div",5),c(19),p(20,"translate"),r(),l(21,"div",6),c(22),p(23,"yesNo"),r(),l(24,"div",5),c(25),p(26,"translate"),r(),l(27,"div",6),c(28),r(),l(29,"div",5),c(30),p(31,"translate"),r(),l(32,"div",6),c(33),r(),E(34,UEt,3,3,"div",5),E(35,WEt,2,1,"div",6),E(36,QEt,3,3,"div",5),E(37,YEt,2,1,"div",6),l(38,"div",5),c(39),p(40,"translate"),r(),l(41,"div",6),c(42),p(43,"translateKey"),r(),l(44,"div",5),c(45),p(46,"translate"),r(),l(47,"div",6),c(48),p(49,"translateKey"),r(),l(50,"div",5),c(51),p(52,"translate"),r(),l(53,"div",6),c(54),p(55,"translateKey"),r(),l(56,"div",5),c(57),p(58,"translate"),r(),l(59,"div",6),c(60),p(61,"yesNo"),r(),E(62,JEt,3,3,"div",5),E(63,KEt,3,4,"div",6),E(64,XEt,3,3,"div",5),E(65,ZEt,2,1,"div",6),E(66,eIt,1,3,"mifosx-gl-account-display",7),E(67,tIt,3,3,"div",5),E(68,iIt,2,1,"div",6),r(),l(69,"div",8)(70,"button",9),c(71),p(72,"translate"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_CHARGE"),a(),g("mifosxHasPermission","DELETE_CHARGE"),a(6),v(" ",m(9,33,"labels.inputs.Charge Name")," "),a(3),v(" ",i.chargeData.name," "),a(2),v(" ",m(14,35,"labels.inputs.Charge Applies To")," "),a(3),v(" ",Ft(17,37,i.chargeData.chargeAppliesTo.value,"catalogs")," "),a(3),v(" ",m(20,40,"labels.inputs.Penalty")," "),a(3),v(" ",m(23,42,i.chargeData.penalty===!0)," "),a(3),v(" ",m(26,44,"labels.inputs.Currency")," "),a(3),v(" ",i.chargeData.currency.name," "),a(2),v(" ",m(31,46,"labels.inputs.Amount")," "),a(3),v(" ",i.chargeData.amount," "),a(),I(i.minCap?34:-1),a(),I(i.minCap?35:-1),a(),I(i.maxCap?36:-1),a(),I(i.maxCap?37:-1),a(2),v(" ",m(40,48,"labels.inputs.Charge Time Type")," "),a(3),v(" ",Ft(43,50,i.chargeData.chargeTimeType.value,"catalogs")," "),a(3),v(" ",m(46,53,"labels.inputs.Charge Calculation Type")," "),a(3),v(" ",Ft(49,55,i.chargeData.chargeCalculationType.value,"catalogs")," "),a(3),v(" ",m(52,58,"labels.inputs.Charge Payment Mode")," "),a(3),v(" ",Ft(55,60,i.chargeData.chargePaymentMode.value,"catalogs")," "),a(3),v(" ",m(58,63,"labels.status.Active")," "),a(3),v(" ",m(61,65,i.chargeData.active===!0)," "),a(2),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeFrequency?62:-1),a(),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeFrequency&&i.chargeData.feeFrequency?63:-1),a(),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeInterval?64:-1),a(),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeInterval?65:-1),a(),I(i.chargeData.incomeOrLiabilityAccount?66:-1),a(),I(i.chargeData.taxGroup?67:-1),a(),I(i.chargeData.taxGroup?68:-1),a(2),g("routerLink",oe(69,HEt)),a(),v(" ",m(72,67,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,as,he,ki,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function g3(e){return o=>{let t=o.parent?.get(e);if(!t||!o.value)return null;let n=t.value;if(typeof n>"u")return null;typeof n!="number"&&(n=n*1);let i=o.value;return typeof i!="number"&&(i=i*1),i{let t=o.parent?.get(e);if(!t||!o.value)return null;let n=t.value;if(n==null||typeof n>"u")return null;typeof n!="number"&&(n=n*1);let i=o.value;return typeof i!="number"&&(i=i*1),i>n?{maxValue:{requiredMax:n,actual:i}}:null}}var nIt=()=>["../"];function oIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function aIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Applies To")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function sIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function pIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Time Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function dIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Calculation Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function fIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Payment Mode")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",25),Se(5,uIt,3,5,"mat-option",6,Pe),r(),E(7,fIt,7,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Charge Payment Mode")),a(3),we(t.chargesTemplateData.chargePaymetModeOptions),a(2),I(t.chargeForm.controls.chargePaymentMode.hasError("required")?7:-1)}}function gIt(e,o){e&1&&(l(0,"div",16)(1,"mat-checkbox",26),c(2),p(3,"translate"),r()()),e&2&&(a(2),v(" ",m(3,1,"labels.inputs.Add Fee Frequency")," "))}function _It(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Frequency Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Frequency Interval")," "),a(3),h(m(5,4,"labels.commons.must be a positive integer")))}function vIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",27),E(5,_It,7,9,"mat-error"),E(6,CIt,6,6,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.Frequency Interval")),a(3),I(t.chargeForm.controls.feeInterval.hasError("required")?5:-1),a(),I(t.chargeForm.controls.feeInterval.hasError("pattern")?6:-1)}}function xIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function bIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",28),Se(5,xIt,3,5,"mat-option",6,Pe),r(),E(7,bIt,7,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Charge Frequency")),a(3),we(t.chargesTemplateData.feeFrequencyOptions),a(2),I(t.chargeForm.controls.feeFrequency.hasError("required")?7:-1)}}function SIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Due Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wIt(e,o){if(e&1){let t=Y();l(0,"mat-form-field",29),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",30)(5,"mat-datepicker-toggle",31)(6,"mat-datepicker",null,0),E(8,SIt,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Due Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.chargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function PIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2){let t=w(3);a(),ea(" ",m(2,4,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,") ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function TIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3);a(),le(" ",m(2,3,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,") "),a(3),h(m(5,5,"labels.commons.must be between 1 and 12"))}}function MIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3);a(),le(" ",m(2,3,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,") "),a(3),h(m(5,5,"labels.commons.must be a positive integer"))}}function DIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",27),E(5,PIt,7,10,"mat-error"),E(6,TIt,6,7,"mat-error"),E(7,MIt,6,7,"mat-error"),r()),e&2){let t=w(2);a(2),le("",m(3,5,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,")"),a(3),I(t.chargeForm.controls.feeInterval.hasError("required")?5:-1),a(),I((t.chargeForm.controls.feeInterval.hasError("min")||t.chargeForm.controls.feeInterval.hasError("max"))&&!t.chargeForm.controls.feeInterval.hasError("pattern")?6:-1),a(),I(t.chargeForm.controls.feeInterval.hasError("pattern")?7:-1)}}function EIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function IIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(3);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.minimumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.maxCap.value,") ")}}function OIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32),E(5,IIt,3,4,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Minimum Charge Cap")),a(3),I(t.chargeForm.controls.minCap.hasError("maxValue")?5:-1)}}function AIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(3);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.minCap.value,") ")}}function FIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",33),E(5,AIt,3,4,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Maximum Charge Cap")),a(3),I(t.chargeForm.controls.maxCap.hasError("minValue")?5:-1)}}function kIt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",18),e&2){let t=w(2);g("inputFormControl",t.chargeForm.controls.incomeAccountId)("glAccountList",t.incomeAndLiabilityAccountData)("inputLabel","Income from Charge")}}function BIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function RIt(e,o){if(e&1&&(l(0,"div",8)(1,"mat-form-field",4)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",12),E(6,rIt,7,9,"mat-error"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",13),Se(12,lIt,2,2,"mat-option",6,Pe),r(),E(14,sIt,7,9,"mat-error"),r(),l(15,"mat-form-field",4)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",14),Se(20,cIt,3,5,"mat-option",6,Pe),r(),E(22,pIt,7,9,"mat-error"),r(),l(23,"mat-form-field",4)(24,"mat-label"),c(25),p(26,"translate"),r(),l(27,"mat-select",15),Se(28,mIt,3,5,"mat-option",6,Pe),r(),E(30,dIt,7,9,"mat-error"),r(),E(31,hIt,8,4,"mat-form-field",4),E(32,gIt,4,3,"div",16),E(33,vIt,7,5,"mat-form-field",4),E(34,yIt,8,4,"mat-form-field",4),E(35,wIt,9,8,"mat-form-field",4),E(36,DIt,8,7,"mat-form-field",4),l(37,"mat-form-field",4)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",17),E(42,EIt,7,9,"mat-error"),r(),E(43,OIt,6,4,"mat-form-field",4),E(44,FIt,6,4,"mat-form-field",4),E(45,kIt,1,3,"mifosx-gl-account-selector",18),l(46,"mat-form-field",4)(47,"mat-label"),c(48),p(49,"translate"),r(),l(50,"mat-select",19),Se(51,BIt,2,2,"mat-option",6,Pe),r()(),l(53,"div",20)(54,"div",21)(55,"mat-checkbox",22),c(56),p(57,"translate"),r()(),l(58,"div",23)(59,"mat-checkbox",24),c(60),p(61,"translate"),p(62,"translate"),r()()()()),e&2){let t=w();a(3),h(m(4,23,"labels.inputs.Charge Name")),a(3),I(t.chargeForm.controls.name.hasError("required")?6:-1),a(3),h(m(10,25,"labels.inputs.Currency")),a(3),we(t.chargesTemplateData.currencyOptions),a(2),I(t.chargeForm.controls.currencyCode.hasError("required")?14:-1),a(3),h(m(18,27,"labels.inputs.Charge Time Type")),a(3),we(t.chargeTimeTypeData),a(2),I(t.chargeForm.controls.chargeTimeType.hasError("required")?22:-1),a(3),h(m(26,29,"labels.inputs.Charge Calculation Type")),a(3),we(t.filteredChargeCalculationType()),a(2),I(t.chargeForm.controls.chargeCalculationType.hasError("required")?30:-1),a(),I(t.chargeForm.controls.chargeAppliesTo.value===1?31:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===9?32:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===9&&t.chargeForm.controls.addFeeFrequency.value?33:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===9&&t.chargeForm.controls.addFeeFrequency.value?34:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===6||t.chargeForm.controls.chargeTimeType.value===7?35:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===7||t.chargeForm.controls.chargeTimeType.value===11?36:-1),a(3),h(m(40,31,"labels.inputs.Amount")),a(3),I(t.chargeForm.controls.amount.hasError("required")?42:-1),a(),I(t.showMinMaxCap()?43:-1),a(),I(t.showMinMaxCap()?44:-1),a(),I(t.chargeForm.controls.chargeAppliesTo.value===3?45:-1),a(3),h(m(49,33,"labels.inputs.Tax Group")),a(3),we(t.chargesTemplateData.taxGroupOptions),a(5),v(" ",m(57,35,"labels.status.Active")," "),a(4),le(" ",m(61,37,"labels.commons.Is")," ",m(62,39,"labels.inputs.Penalty")," ")}}function NIt(e,o){if(e&1&&(l(0,"button",34),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.chargeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var C3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.chargeCalculationTypeData="",this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+1)),this.route.data.subscribe(t=>{this.chargesTemplateData=t.chargesTemplate;let n=t.chargesTemplate.incomeOrLiabilityAccountOptions.incomeAccountOptions||[],i=t.chargesTemplate.incomeOrLiabilityAccountOptions.liabilityAccountOptions||[];i.length>0?this.incomeAndLiabilityAccountData=n.concat(i):this.incomeAndLiabilityAccountData=n})}ngOnInit(){this.createChargeForm(),this.setChargeForm(),this.setConditionalControls()}createChargeForm(){this.chargeForm=this.formBuilder.group({chargeAppliesTo:["",ce.required],name:["",ce.required],currencyCode:["",ce.required],chargeTimeType:["",ce.required],chargeCalculationType:["",ce.required],amount:["",[ce.required,ce.pattern("^\\s*(?=.*[1-9])\\d*(?:\\.\\d+)?\\s*$")]],active:[!1],penalty:[!1],taxGroupId:[null],minCap:[null,[_3("maxCap")]],maxCap:[null,[g3("minCap")]]})}setChargeForm(){this.chargeForm.get("chargeAppliesTo").valueChanges.subscribe(t=>{switch(t){case 1:this.chargeCalculationTypeData=this.chargesTemplateData.loanChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.loanChargeTimeTypeOptions;break;case 2:this.chargeCalculationTypeData=this.chargesTemplateData.savingsChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.savingsChargeTimeTypeOptions;break;case 3:this.chargeCalculationTypeData=this.chargesTemplateData.clientChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.clientChargeTimeTypeOptions;break;case 4:this.chargeCalculationTypeData=this.chargesTemplateData.shareChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.shareChargeTimeTypeOptions;break}})}filteredChargeCalculationType(){return this.chargeCalculationTypeData.filter(t=>!(this.chargeForm.get("chargeTimeType").value===12&&(t.id===3||t.id===4)||this.chargeForm.get("chargeTimeType").value!==12&&t.id===5||this.chargeForm.get("chargeAppliesTo").value===2&&!(this.chargeForm.get("chargeTimeType").value===5||this.chargeForm.get("chargeTimeType").value===16||this.chargeForm.get("chargeTimeType").value===17)&&t.id===2))}showMinMaxCap(){let t=this.chargeForm.controls.chargeAppliesTo.value,n=this.chargeForm.controls.chargeCalculationType.value,i=this.chargeForm.controls.chargeTimeType.value;return t===1?n===2||n===3||n===4||n===5:t===2?(i===16||i===5)&&n===2:t===4?(i===14||i===15)&&n===2:!1}setConditionalControls(){this.chargeForm.get("chargeAppliesTo").valueChanges.subscribe(t=>{switch(this.chargeForm.get("penalty").enable(),t){case 1:this.chargeForm.addControl("chargePaymentMode",new it("",ce.required)),this.chargeForm.removeControl("incomeAccountId");break;case 2:this.chargeForm.removeControl("chargePaymentMode"),this.chargeForm.removeControl("incomeAccountId");break;case 3:this.chargeForm.removeControl("chargePaymentMode"),this.chargeForm.addControl("incomeAccountId",new it(""));break;case 4:this.chargeForm.removeControl("chargePaymentMode"),this.chargeForm.removeControl("incomeAccountId"),this.chargeForm.get("penalty").setValue(!1);break}this.chargeForm.get("chargeCalculationType").reset(),this.chargeForm.get("chargeTimeType").reset()}),this.chargeForm.get("chargeTimeType").valueChanges.subscribe(t=>{switch(this.chargeForm.removeControl("feeFrequency"),this.chargeForm.removeControl("feeInterval"),this.chargeForm.removeControl("feeOnMonthDay"),this.chargeForm.removeControl("addFeeFrequency"),this.chargeForm.get("chargeAppliesTo").value!==4&&this.chargeForm.get("penalty").enable(),t){case 6:this.chargeForm.addControl("feeOnMonthDay",new it("",ce.required));break;case 7:this.chargeForm.addControl("feeOnMonthDay",new it("")),this.chargeForm.addControl("feeInterval",new it("",[ce.required,ce.min(1),ce.max(12),ce.pattern("^[1-9]\\d*$")])),this.repeatEveryLabel="Months";break;case 9:this.chargeForm.get("penalty").setValue(!0),this.chargeForm.addControl("addFeeFrequency",new it(!1)),this.chargeForm.get("addFeeFrequency").valueChanges.subscribe(n=>{n?(this.chargeForm.addControl("feeFrequency",new it("",ce.required)),this.chargeForm.addControl("feeInterval",new it("",[ce.required,ce.pattern("^[1-9]\\d*$")]))):(this.chargeForm.removeControl("feeFrequency"),this.chargeForm.removeControl("feeInterval"))});break;case 11:this.chargeForm.addControl("feeInterval",new it("",[ce.required,ce.pattern("^[1-9]\\d*$")])),this.repeatEveryLabel="Weeks";break}}),this.chargeForm.get("currencyCode").valueChanges.subscribe(t=>{this.currencyDecimalPlaces=this.chargesTemplateData.currencyOptions.find(n=>n.code===t).decimalPlaces})}submit(){let t=this.chargeForm.value,n=this.settingsService.language.code,i=this.chargeForm.value.feeOnMonthDay,s="dd MMM";t.feeOnMonthDay instanceof Date&&(t.feeOnMonthDay=this.dateUtils.formatDate(i,s));let d=qt(at({},t),{monthDayFormat:s,locale:n});delete d.addFeeFrequency,d.taxGroupId||delete d.taxGroupId,d.minCap||delete d.minCap,d.maxCap||delete d.maxCap,this.productsService.createCharge(d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-charge"]],decls:20,vars:13,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","chargeAppliesTo"],[3,"value"],[3,"inset"],[1,"layout-row-wrap","gap-2percent","layout-lt-md-column","form-section"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","required","","formControlName","name"],["required","","formControlName","currencyCode"],["required","","formControlName","chargeTimeType"],["required","","formControlName","chargeCalculationType"],[1,"flex-48","add-fee-frequency-wrapper"],["matInput","","required","","formControlName","amount"],[1,"flex-48",3,"inputFormControl","glAccountList","inputLabel"],["formControlName","taxGroupId"],[1,"flex-48","layout-row","gap-2percent","layout-lt-md-column"],[1,"flex-50","active-wrapper"],["labelPosition","before","formControlName","active"],[1,"flex-50","penalty-wrapper"],["labelPosition","before","formControlName","penalty"],["required","","formControlName","chargePaymentMode"],["labelPosition","before","formControlName","addFeeFrequency"],["matInput","","required","","formControlName","feeInterval"],["required","","formControlName","feeFrequency"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","autofocus","","formControlName","minCap","mifosxValidateOnFocus",""],["matInput","","autofocus","","formControlName","maxCap","mifosxValidateOnFocus",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,oIt,3,5,"mat-option",6,Pe),r(),E(12,aIt,7,9,"mat-error"),r(),b(13,"mat-divider",7),E(14,RIt,63,41,"div",8),r()(),l(15,"mat-card-actions",9)(16,"button",10),c(17),p(18,"translate"),r(),F(19,NIt,3,4,"button",11),r()()()()),n&2&&(a(2),g("formGroup",i.chargeForm),a(5),h(m(8,8,"labels.inputs.Charge Applies To")),a(3),we(i.chargesTemplateData.chargeAppliesToOptions),a(2),I(i.chargeForm.controls.chargeAppliesTo.hasError("required")?12:-1),a(),g("inset",!0),a(),I(i.chargeForm.controls.chargeAppliesTo.value?14:-1),a(2),g("routerLink",oe(12,nIt)),a(),v(" ",m(18,10,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,Ri,Wg,ta,he,ki],styles:[".penalty-wrapper[_ngcontent-%COMP%], .active-wrapper[_ngcontent-%COMP%], .add-fee-frequency-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var LIt=["buttonCreateFixedProduct"],VIt=["templateButtonCreateFixedProduct"],qIt=["fixedProductsTable"],zIt=["templateFixedProductsTable"],HIt=()=>[10,25,50,100],GIt=()=>["create"],jIt=e=>[e];function $It(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,GIt)),a(2),v(" ",m(3,2,"labels.buttons.Create Fixed Deposit Product")," "))}function UIt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function WIt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function QIt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function YIt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function JIt(e,o){e&1&&b(0,"tr",26)}function KIt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,jIt,t.id))}}function XIt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Fixed Deposit Product")),a(3),h(m(5,7,"labels.text.Allows you to create new fixed deposit product")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function ZIt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.text.Search bar to filter fixed deposit products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function e6t(e,o){if(e&1){let t=Y();l(0,"h4",28),c(1),p(2,"translate"),l(3,"a",32),c(4),p(5,"translate"),r()(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.text.List of fixed deposit products in the organization"),": "),a(3),h(m(5,7,"labels.inputs.Fixed Deposit Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var v3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName"],this.route.data.subscribe(t=>{this.fixedDepositProductData=t.fixedDepositProducts})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setFixedDepositProducts()}setFixedDepositProducts(){this.dataSource=new Wt(this.fixedDepositProductData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}ngAfterViewInit(){this.configurationWizardService.showFixedDepositProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateFixedProduct,this.buttonCreateFixedProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showFixedDepositProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateFixedProductsTable,this.fixedProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showFixedDepositProductsPage=!1,this.configurationWizardService.showFixedDepositProductsList=!1,this.configurationWizardService.showRecurringDepositProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showFixedDepositProductsPage=!1,this.configurationWizardService.showFixedDepositProductsList=!1,this.configurationWizardService.showFixedDepositProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(LIt,5),Ee(VIt,5),Ee(qIt,5),Ee(zIt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateFixedProduct=s.first),Te(s=Me())&&(i.templateButtonCreateFixedProduct=s.first),Te(s=Me())&&(i.fixedProductsTable=s.first),Te(s=Me())&&(i.templateFixedProductsTable=s.first)}},decls:30,vars:9,consts:[["buttonCreateFixedProduct",""],["filter",""],["fixedProductsTable",""],["templateButtonCreateFixedProduct",""],["templateFilter",""],["templateFixedProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102629544/Fixed+Deposit+Products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,$It,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,UIt,3,3,"th",16)(17,WIt,2,1,"td",17),Z(),X(18,18),F(19,QIt,3,3,"th",16)(20,YIt,2,1,"td",17),Z(),F(21,JIt,1,0,"tr",19)(22,KIt,1,3,"tr",20),r(),b(23,"mat-paginator",21),r()(),F(24,XIt,16,15,"ng-template",null,3,ti)(26,ZIt,13,12,"ng-template",null,4,ti)(28,e6t,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_FIXEDDEPOSITPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,HIt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function t6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Product Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function i6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Short Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function n6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Om=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductDetailsForm()}ngOnInit(){this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.fixedDepositProductDetailsForm.patchValue({name:this.fixedDepositProductsTemplate.name,shortName:this.fixedDepositProductsTemplate.shortName,description:this.fixedDepositProductsTemplate.description})}createFixedDepositProductDetailsForm(){this.fixedDepositProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:["",ce.required]})}get fixedDepositProductDetails(){return this.fixedDepositProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-details-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:29,vars:19,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required",""],["matInput","","formControlName","shortName","maxlength","4","required",""],[1,"flex-98"],["matInput","","formControlName","description","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),E(7,t6t,7,9,"mat-error"),r(),l(8,"mat-form-field",2)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",4),E(13,i6t,7,9,"mat-error"),r(),l(14,"mat-form-field",5)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"textarea",6),E(19,n6t,7,9,"mat-error"),r()(),l(20,"div",7)(21,"button",8),b(22,"fa-icon",9),c(23),p(24,"translate"),r(),l(25,"button",10),c(26),p(27,"translate"),b(28,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.fixedDepositProductDetailsForm),a(4),h(m(5,9,"labels.inputs.Product Name")),a(3),I(i.fixedDepositProductDetailsForm.controls.name.hasError("required")?7:-1),a(3),h(m(11,11,"labels.inputs.Short Name")),a(3),I(i.fixedDepositProductDetailsForm.controls.shortName.hasError("required")?13:-1),a(3),h(m(17,13,"labels.inputs.Description")),a(3),I(i.fixedDepositProductDetailsForm.controls.description.hasError("required")?19:-1),a(4),v(" ",m(24,15,"labels.buttons.Previous")," "),a(3),v(" ",m(27,17,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function o6t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var Am=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductCurrencyForm()}ngOnInit(){this.currencyData=this.fixedDepositProductsTemplate.currencyOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id?this.fixedDepositProductCurrencyForm.patchValue({currencyCode:this.fixedDepositProductsTemplate.currency.code,digitsAfterDecimal:this.fixedDepositProductsTemplate.currency.decimalPlaces,inMultiplesOf:this.fixedDepositProductsTemplate.currency.inMultiplesOf}):this.fixedDepositProductCurrencyForm.patchValue({currencyCode:this.currencyData[0].code,digitsAfterDecimal:2})}createFixedDepositProductCurrencyForm(){this.fixedDepositProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:[""]})}get fixedDepositProductCurrency(){return this.fixedDepositProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-currency-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:49,vars:43,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required",""],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required",""],["type","number","matInput","","formControlName","inMultiplesOf"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),Se(7,o6t,2,2,"mat-option",4,Pe),r(),l(9,"mat-error"),c(10),p(11,"translate"),p(12,"translate"),l(13,"strong"),c(14),p(15,"translate"),r()()(),l(16,"mat-form-field",2)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",5),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",2)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",6),l(33,"mat-error"),c(34),p(35,"translate"),p(36,"translate"),l(37,"strong"),c(38),p(39,"translate"),r()()()(),l(40,"div",7)(41,"button",8),b(42,"fa-icon",9),c(43),p(44,"translate"),r(),l(45,"button",10),c(46),p(47,"translate"),b(48,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.fixedDepositProductCurrencyForm),a(4),h(m(5,15,"labels.inputs.Currency")),a(3),we(i.currencyData),a(3),le(" ",m(11,17,"labels.inputs.Currency")," ",m(12,19,"labels.commons.is")," "),a(4),h(m(15,21,"labels.commons.required")),a(4),h(m(19,23,"labels.inputs.Decimal Places")),a(4),le(" ",m(23,25,"labels.inputs.Decimal Places")," ",m(24,27,"labels.commons.is")," "),a(4),h(m(27,29,"labels.commons.required")),a(4),h(m(31,31,"labels.inputs.Currency in multiples of")),a(4),le(" ",m(35,33,"labels.inputs.Currency in multiples of")," ",m(36,35,"labels.commons.is")," "),a(4),h(m(39,37,"labels.commons.required")),a(5),v(" ",m(44,39,"labels.buttons.Previous")," "),a(3),v(" ",m(47,41,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function a6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function r6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function l6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function s6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}var Fm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductTermsForm()}ngOnInit(){this.interestCompoundingPeriodTypeData=this.fixedDepositProductsTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.fixedDepositProductsTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.fixedDepositProductsTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.fixedDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.fixedDepositProductTermsForm.patchValue({minDepositAmount:this.fixedDepositProductsTemplate.minDepositAmount,depositAmount:this.fixedDepositProductsTemplate.depositAmount,maxDepositAmount:this.fixedDepositProductsTemplate.maxDepositAmount}),this.fixedDepositProductTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositProductsTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositProductsTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositProductsTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositProductsTemplate.interestCalculationDaysInYearType.id})}createFixedDepositProductTermsForm(){this.fixedDepositProductTermsForm=this.formBuilder.group({minDepositAmount:[""],depositAmount:["",ce.required],maxDepositAmount:[""],interestCompoundingPeriodType:["",ce.required],interestPostingPeriodType:["",ce.required],interestCalculationType:["",ce.required],interestCalculationDaysInYearType:["",ce.required]})}get fixedDepositProductTerms(){let t=this.fixedDepositProductTermsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-terms-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:100,vars:104,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"flex-31"],["type","number","matInput","","formControlName","minDepositAmount",3,"matTooltip"],["type","number","matInput","","formControlName","depositAmount","required","",3,"matTooltip"],["type","number","matInput","","formControlName","maxDepositAmount",3,"matTooltip"],[1,"flex-98"],[1,"flex-48"],["formControlName","interestCompoundingPeriodType","required","",3,"matTooltip"],[3,"value"],["formControlName","interestPostingPeriodType","required","",3,"matTooltip"],["formControlName","interestCalculationType","required","",3,"matTooltip"],["formControlName","interestCalculationDaysInYearType","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),r(),l(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),p(10,"translate"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),p(16,"translate"),l(17,"mat-error"),c(18),p(19,"translate"),p(20,"translate"),l(21,"strong"),c(22),p(23,"translate"),r()()(),l(24,"mat-form-field",3)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",6),p(29,"translate"),r(),b(30,"mat-divider",7),l(31,"mat-form-field",8)(32,"mat-label"),c(33),p(34,"translate"),r(),l(35,"mat-select",9),p(36,"translate"),Se(37,a6t,2,2,"mat-option",10,Pe),r(),l(39,"mat-error"),c(40),p(41,"translate"),p(42,"translate"),l(43,"strong"),c(44),p(45,"translate"),r()()(),l(46,"mat-form-field",8)(47,"mat-label"),c(48),p(49,"translate"),r(),l(50,"mat-select",11),p(51,"translate"),Se(52,r6t,2,2,"mat-option",10,Pe),r(),l(54,"mat-error"),c(55),p(56,"translate"),p(57,"translate"),l(58,"strong"),c(59),p(60,"translate"),r()()(),l(61,"mat-form-field",8)(62,"mat-label"),c(63),p(64,"translate"),r(),l(65,"mat-select",12),p(66,"translate"),Se(67,l6t,2,2,"mat-option",10,Pe),r(),l(69,"mat-error"),c(70),p(71,"translate"),p(72,"translate"),l(73,"strong"),c(74),p(75,"translate"),r()()(),l(76,"mat-form-field",8)(77,"mat-label"),c(78),p(79,"translate"),r(),l(80,"mat-select",13),p(81,"translate"),Se(82,s6t,2,2,"mat-option",10,Pe),r(),l(84,"mat-error"),c(85),p(86,"translate"),p(87,"translate"),l(88,"strong"),c(89),p(90,"translate"),r()()()(),l(91,"div",14)(92,"button",15),b(93,"fa-icon",16),c(94),p(95,"translate"),r(),l(96,"button",17),c(97),p(98,"translate"),b(99,"fa-icon",18),r()()()),n&2&&(g("formGroup",i.fixedDepositProductTermsForm),a(3),h(m(4,40,"labels.inputs.Deposit Amount")),a(4),h(m(8,42,"labels.inputs.Minimum")),a(2),g("matTooltip",Le(m(10,44,"tooltips.The minimum deposit amount required to open a fixed deposit"))),a(4),h(m(14,46,"labels.inputs.Default")),a(2),g("matTooltip",Le(m(16,48,"tooltips.The default deposit amount expected"))),a(3),le(" ",m(19,50,"labels.inputs.Default Deposit Amount")," ",m(20,52,"labels.commons.is")," "),a(4),h(m(23,54,"labels.commons.required")),a(4),h(m(27,56,"labels.inputs.Maximum")),a(2),g("matTooltip",Le(m(29,58,"tooltips.The maximum deposit amount allowed when a fixed deposit"))),a(5),h(m(34,60,"labels.inputs.Interest Compounding Period")),a(2),g("matTooltip",Le(m(36,62,"tooltips.The period at which interest rate"))),a(2),we(i.interestCompoundingPeriodTypeData),a(3),le(" ",m(41,64,"labels.inputs.Interest Compounding Period")," ",m(42,66,"labels.commons.is")," "),a(4),h(m(45,68,"labels.commons.required")),a(4),h(m(49,70,"labels.inputs.Interest Posting Period")),a(2),g("matTooltip",Le(m(51,72,"tooltips.The period at which interest rate is posted or credited"))),a(2),we(i.interestPostingPeriodTypeData),a(3),le(" ",m(56,74,"labels.inputs.Interest Posting Period")," ",m(57,76,"labels.commons.is")," "),a(4),h(m(60,78,"labels.commons.required")),a(4),h(m(64,80,"labels.inputs.Interest Calculated using")),a(2),g("matTooltip",Le(m(66,82,"tooltips.The method used to calculate interest"))),a(2),we(i.interestCalculationTypeData),a(3),le(" ",m(71,84,"labels.inputs.Interest Calculated using")," ",m(72,86,"labels.commons.is")," "),a(4),h(m(75,88,"labels.commons.required")),a(4),h(m(79,90,"labels.inputs.Days in Year")),a(2),g("matTooltip",Le(m(81,92,"tooltips.The setting for number of days"))),a(2),we(i.interestCalculationDaysInYearTypeData),a(3),le(" ",m(86,94,"labels.inputs.Days in Year")," ",m(87,96,"labels.commons.is")," "),a(4),h(m(90,98,"labels.commons.required")),a(5),v(" ",m(95,100,"labels.buttons.Previous")," "),a(3),v(" ",m(98,102,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function c6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function p6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function m6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function d6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function u6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function f6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function h6t(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",26),Se(5,f6t,2,2,"mat-option",7,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Tax Group")),a(3),we(t.taxGroupData),a(3),le(" ",m(9,6,"labels.inputs.Tax Group")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}var km=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.lockinPeriodFrequencyTypeData=this.fixedDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.fixedDepositProductsTemplate.periodFrequencyTypeOptions.slice(0,-1),this.preClosurePenalInterestOnTypeData=this.fixedDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,this.taxGroupData=this.fixedDepositProductsTemplate.taxGroupOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.fixedDepositProductSettingsForm.patchValue({isMandatoryDeposit:this.fixedDepositProductsTemplate.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:this.fixedDepositProductsTemplate.adjustAdvanceTowardsFuturePayments,allowWithdrawal:this.fixedDepositProductsTemplate.allowWithdrawal,lockinPeriodFrequency:this.fixedDepositProductsTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.fixedDepositProductsTemplate.lockinPeriodFrequencyType?this.fixedDepositProductsTemplate.lockinPeriodFrequencyType.id:"",minDepositTerm:this.fixedDepositProductsTemplate.minDepositTerm,minDepositTermTypeId:this.fixedDepositProductsTemplate.minDepositTermType?this.fixedDepositProductsTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.fixedDepositProductsTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.fixedDepositProductsTemplate.inMultiplesOfDepositTermType?this.fixedDepositProductsTemplate.inMultiplesOfDepositTerm.id:"",maxDepositTerm:this.fixedDepositProductsTemplate.maxDepositTerm,maxDepositTermTypeId:this.fixedDepositProductsTemplate.maxDepositTermType?this.fixedDepositProductsTemplate.minDepositTermType.id:"",preClosurePenalApplicable:this.fixedDepositProductsTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.fixedDepositProductsTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.fixedDepositProductsTemplate.preClosurePenalInterestOnType?this.fixedDepositProductsTemplate.preClosurePenalInterestOnType.id:"",withHoldTax:this.fixedDepositProductsTemplate.withHoldTax}),this.fixedDepositProductsTemplate.withHoldTax&&this.fixedDepositProductSettingsForm.patchValue({taxGroupId:this.fixedDepositProductsTemplate.taxGroup?this.fixedDepositProductsTemplate.taxGroup.id:""})}createFixedDepositProductSettingsForm(){this.fixedDepositProductSettingsForm=this.formBuilder.group({lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:["",ce.required],minDepositTermTypeId:["",ce.required],inMultiplesOfDepositTerm:[""],inMultiplesOfDepositTermTypeId:[""],maxDepositTerm:[""],maxDepositTermTypeId:[""],preClosurePenalApplicable:[!1],preClosurePenalInterest:[""],preClosurePenalInterestOnTypeId:[""],withHoldTax:[!1]})}setConditionalControls(){this.fixedDepositProductSettingsForm.get("withHoldTax").valueChanges.subscribe(t=>{t?this.fixedDepositProductSettingsForm.addControl("taxGroupId",new it("",ce.required)):this.fixedDepositProductSettingsForm.removeControl("taxGroupId")})}get fixedDepositProductSettings(){let t=this.fixedDepositProductSettingsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-settings-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:120,vars:101,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],[1,"fas","fa-question-circle",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],[1,"flex-98"],[1,"mat-h4","flex-23"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["labelPosition","before","formControlName","withHoldTax",1,"flex-48","margin-v",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","taxGroupId","required",""]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",5),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,c6t,2,2,"mat-option",7,Pe),r()(),l(19,"h4",2),c(20),p(21,"translate"),b(22,"i",3),p(23,"translate"),r(),l(24,"mat-form-field",4)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",8),l(29,"mat-error"),c(30),p(31,"translate"),p(32,"translate"),l(33,"strong"),c(34),p(35,"translate"),r()()(),l(36,"mat-form-field",4)(37,"mat-label"),c(38),p(39,"translate"),r(),l(40,"mat-select",9),Se(41,p6t,2,2,"mat-option",7,Pe),r(),l(43,"mat-error"),c(44),p(45,"translate"),p(46,"translate"),l(47,"strong"),c(48),p(49,"translate"),r()()(),l(50,"h4",2),c(51),p(52,"translate"),b(53,"i",10),p(54,"translate"),r(),l(55,"mat-form-field",4)(56,"mat-label"),c(57),p(58,"translate"),r(),b(59,"input",11),r(),l(60,"mat-form-field",4)(61,"mat-label"),c(62),p(63,"translate"),r(),l(64,"mat-select",12),Se(65,m6t,2,2,"mat-option",7,Pe),r()(),l(67,"h4",2),c(68),p(69,"translate"),b(70,"i",10),p(71,"translate"),r(),l(72,"mat-form-field",4)(73,"mat-label"),c(74),p(75,"translate"),r(),b(76,"input",13),r(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),l(81,"mat-select",14),Se(82,d6t,2,2,"mat-option",7,Pe),r()(),b(84,"mat-divider",15),l(85,"h4",16),c(86),p(87,"translate"),b(88,"i",10),p(89,"translate"),r(),l(90,"mat-checkbox",17),c(91),p(92,"translate"),r(),l(93,"mat-form-field",4)(94,"mat-label"),c(95),p(96,"translate"),r(),b(97,"input",18),r(),l(98,"mat-form-field",4)(99,"mat-label"),c(100),p(101,"translate"),r(),l(102,"mat-select",19),Se(103,u6t,2,2,"mat-option",7,Pe),r()(),b(105,"mat-divider",15),l(106,"mat-checkbox",20),p(107,"translate"),c(108),p(109,"translate"),r(),E(110,h6t,14,12,"mat-form-field",4),r(),l(111,"div",21)(112,"button",22),b(113,"fa-icon",23),c(114),p(115,"translate"),r(),l(116,"button",24),c(117),p(118,"translate"),b(119,"fa-icon",25),r()()()),n&2&&(g("formGroup",i.fixedDepositProductSettingsForm),a(3),v(" ",m(4,39,"labels.inputs.Lock-in Period")," "),a(2),g("matTooltip",Le(m(6,41,"tooltips.A period of time during which a fixed deposit account"))),a(4),h(m(10,43,"labels.inputs.Frequency")),a(5),h(m(15,45,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(3),v(" ",m(21,47,"labels.inputs.Minimum Deposit Term")," "),a(2),g("matTooltip",Le(m(23,49,"tooltips.The minimum length of time"))),a(4),h(m(27,51,"labels.inputs.Frequency")),a(4),le(" ",m(31,53,"labels.inputs.Minimum Deposit Term Frequency")," ",m(32,55,"labels.commons.is")," "),a(4),h(m(35,57,"labels.commons.required")),a(4),h(m(39,59,"labels.inputs.Frequency Type")),a(3),we(i.periodFrequencyTypeData),a(3),le(" ",m(45,61,"labels.inputs.Minimum Deposit Term Frequency Type")," ",m(46,63,"labels.commons.is")," "),a(4),h(m(49,65,"labels.commons.required")),a(3),v(" ",m(52,67,"labels.heading.And thereafter, in Multiples of")," "),a(2),g("matTooltip",Le(m(54,69,"tooltips.After the minimum deposit term has passed"))),a(4),h(m(58,71,"labels.inputs.Frequency")),a(5),h(m(63,73,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(3),v(" ",m(69,75,"labels.inputs.Maximum Deposit Term")," "),a(2),g("matTooltip",Le(m(71,77,"tooltips.The maximum length of time funds"))),a(4),h(m(75,79,"labels.inputs.Frequency")),a(5),h(m(80,81,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(4),v(" ",m(87,83,"labels.heading.For Pre-mature closure")," "),a(2),g("matTooltip",Le(m(89,85,"tooltips.This sections defines an interest penalty"))),a(3),v(" ",m(92,87,"labels.inputs.Apply Penal Interest (less)")," "),a(4),v("",m(96,89,"labels.inputs.Penal Interest")," (%)"),a(5),h(m(101,91,"labels.inputs.Period")),a(3),we(i.preClosurePenalInterestOnTypeData),a(3),g("matTooltip",Le(m(107,93,"tooltips.An boolean flag to attach"))),a(2),v(" ",m(109,95,"labels.inputs.Is Withhold Tax Applicable")," "),a(2),I(i.fixedDepositProductSettingsForm.value.withHoldTax?110:-1),a(4),v(" ",m(115,97,"labels.buttons.Previous")," "),a(3),v(" ",m(118,99,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var g6t=e=>({data:e});function _6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function C6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function v6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function x6t(e,o){if(e&1&&(l(0,"mat-select",10),Se(1,v6t,2,2,"mat-option",3,Pe),r()),e&2){let t=w(2);a(),we(t.attributeValueData)}}function b6t(e,o){e&1&&b(0,"input",11)}function y6t(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),E(4,x6t,3,0,"mat-select",10),E(5,b6t,1,0,"input",11),l(6,"mat-error"),c(7),p(8,"translate"),p(9,"translate"),l(10,"strong"),c(11),p(12,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,6,"labels.inputs.Value")),a(2),I(t.depositProductIncentiveForm.value.attributeName!==3?4:-1),a(),I(t.depositProductIncentiveForm.value.attributeName===3?5:-1),a(2),le(" ",m(8,8,"labels.inputs.Value")," ",m(9,10,"labels.commons.is")," "),a(4),h(m(12,12,"labels.commons.required"))}}function S6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}var Bm=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po),this.formBuilder=T(nt),this.translateService=T(yi),this.layout={addButtonText:"Add"};let t=this.data;this.createDepositProductIncentiveForm(),this.setConditionalControls(),this.layout=at(at({},this.layout),t.layout),this.dialogRef.disableClose=!0}ngOnInit(){this.dialogRef.updateSize("400px"),this.entityTypeData=this.data.chartTemplate.entityTypeOptions,this.attributeNameData=this.data.chartTemplate.attributeNameOptions,this.conditionTypeData=this.data.chartTemplate.conditionTypeOptions,this.incentiveTypeData=this.data.chartTemplate.incentiveTypeOptions,this.data.values?this.depositProductIncentiveForm.patchValue({entityType:this.data.values.entityType,attributeName:this.data.values.attributeName,conditionType:this.data.values.conditionType,attributeValue:this.data.values.attributeValue,incentiveType:this.data.values.incentiveType,amount:this.data.values.amount}):this.depositProductIncentiveForm.patchValue({entityType:this.data.entityType}),this.title=this.translateService.instant("labels.heading.Incentives")}setConditionalControls(){this.depositProductIncentiveForm.get("attributeName").valueChanges.subscribe(t=>{this.depositProductIncentiveForm.patchValue({attributeValue:""}),this.attributeValueData=this.data.chartTemplate[`${this.attributeNameData.find(n=>n.id===t).code.split(".")[1]}Options`]})}createDepositProductIncentiveForm(){this.depositProductIncentiveForm=this.formBuilder.group({entityType:[""],attributeName:["",ce.required],conditionType:["",ce.required],attributeValue:["",ce.required],incentiveType:["",ce.required],amount:["",ce.required]})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-deposit-product-incentive-form-dialog"]],decls:65,vars:61,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"layout-column",3,"formGroup"],["formControlName","attributeName","required",""],[3,"value"],["formControlName","conditionType","required",""],["formControlName","incentiveType","required",""],["type","number","matInput","","formControlName","amount","required",""],[1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"],["formControlName","attributeValue","required",""],["type","number","matInput","","formControlName","attributeValue","required",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),r(),l(2,"div",1)(3,"mat-form-field")(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"mat-select",2),Se(8,_6t,2,2,"mat-option",3,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),l(21,"mat-select",4),Se(22,C6t,2,2,"mat-option",3,Pe),r(),l(24,"mat-error"),c(25),p(26,"translate"),p(27,"translate"),l(28,"strong"),c(29),p(30,"translate"),r()()(),E(31,y6t,13,14,"mat-form-field"),l(32,"mat-form-field")(33,"mat-label"),c(34),p(35,"translate"),r(),l(36,"mat-select",5),Se(37,S6t,2,2,"mat-option",3,Pe),r(),l(39,"mat-error"),c(40),p(41,"translate"),p(42,"translate"),l(43,"strong"),c(44),p(45,"translate"),r()()(),l(46,"mat-form-field")(47,"mat-label"),c(48),p(49,"translate"),r(),b(50,"input",6),l(51,"mat-error"),c(52),p(53,"translate"),p(54,"translate"),l(55,"strong"),c(56),p(57,"translate"),r()()()(),l(58,"mat-dialog-actions",7)(59,"button",8),c(60),p(61,"translate"),r(),l(62,"button",9),c(63),p(64,"translate"),r()()),n&2&&(a(),h(i.title),a(),g("formGroup",i.depositProductIncentiveForm),a(3),h(m(6,23,"labels.inputs.Attribute")),a(3),we(i.attributeNameData),a(3),le(" ",m(12,25,"labels.inputs.Attribute")," ",m(13,27,"labels.commons.is")," "),a(4),h(m(16,29,"labels.commons.required")),a(4),h(m(20,31,"labels.inputs.Condition")),a(3),we(i.conditionTypeData),a(3),le(" ",m(26,33,"labels.inputs.Condition")," ",m(27,35,"labels.commons.is")," "),a(4),h(m(30,37,"labels.commons.required")),a(2),I(i.depositProductIncentiveForm.value.attributeName?31:-1),a(3),h(m(35,39,"labels.inputs.Type")),a(3),we(i.incentiveTypeData),a(3),le(" ",m(41,41,"labels.inputs.Type")," ",m(42,43,"labels.commons.is")," "),a(4),h(m(45,45,"labels.commons.required")),a(4),h(m(49,47,"labels.inputs.Interest")),a(4),le(" ",m(53,49,"labels.inputs.Interest")," ",m(54,51,"labels.commons.is")," "),a(4),h(m(57,53,"labels.commons.required")),a(4),h(m(61,55,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",Nt(59,g6t,i.depositProductIncentiveForm))("disabled",!i.depositProductIncentiveForm.valid||i.depositProductIncentiveForm.pristine),a(),v(" ",m(64,57,"labels.buttons."+i.layout.addButtonText)," "))},dependencies:[ue,fe,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();function w6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function P6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function T6t(e,o){e&1&&(l(0,"div",31)(1,"h3",33),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.heading.It is required to add at least one Slab")))}function M6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function D6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.periodTypeData,"id","value")," ")}}function E6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function I6t(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function O6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function A6t(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v("",t.annualInterestRate," %")}}function F6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function k6t(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function B6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function R6t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",51),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function N6t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",52),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function L6t(e,o){if(e&1){let t=Y();l(0,"td",46)(1,"button",47),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.editChartSlab(s.controls.chartSlabs,i))}),b(2,"fa-icon",48),r(),l(3,"button",49),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.delete(s.controls.chartSlabs,i))}),b(4,"fa-icon",19),r(),l(5,"button",50),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w();return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(6,R6t,4,3,"span"),E(7,N6t,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2).$index,i=w();a(6),I(i.expandChartSlabIndex[n]!==t?6:-1),a(),I(i.expandChartSlabIndex[n]===t?7:-1)}}function V6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function q6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.entityTypeData,"id","value")," ")}}function z6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function H6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.attributeNameData,"id","value")," ")}}function G6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function j6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.conditionTypeData,"id","value")," ")}}function $6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function U6t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.genderData,"id","name"))}}function W6t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function Q6t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientTypeData,"id","name"))}}function Y6t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientClassificationData,"id","name"))}}function J6t(e,o){if(e&1&&(l(0,"td",46),E(1,U6t,3,6,"span")(2,W6t,2,1,"span")(3,Q6t,3,6,"span")(4,Y6t,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function K6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function X6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.incentiveTypeData,"id","value")," ")}}function Z6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function eOt(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function tOt(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function iOt(e,o){if(e&1){let t=Y();l(0,"td",46)(1,"button",47),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.editIncentive(u.getIncentives(d.controls.chartSlabs,s),i))}),b(2,"fa-icon",48),r(),l(3,"button",49),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.delete(u.getIncentives(d.controls.chartSlabs,s),i))}),b(4,"fa-icon",19),r()()}}function nOt(e,o){e&1&&b(0,"tr",65)}function oOt(e,o){e&1&&b(0,"tr",66)}function aOt(e,o){if(e&1&&(l(0,"table",58),X(1,59),F(2,V6t,3,3,"th",35)(3,q6t,3,6,"td",36),Z(),X(4,60),F(5,z6t,3,3,"th",35)(6,H6t,3,6,"td",36),Z(),X(7,61),F(8,G6t,3,3,"th",35)(9,j6t,3,6,"td",36),Z(),X(10,62),F(11,$6t,3,3,"th",35)(12,J6t,5,1,"td",36),Z(),X(13,63),F(14,K6t,3,3,"th",35)(15,X6t,3,6,"td",36),Z(),X(16,64),F(17,Z6t,3,3,"th",35)(18,eOt,2,1,"td",36),Z(),X(19,40),F(20,tOt,3,3,"th",35)(21,iOt,5,0,"td",36),Z(),F(22,nOt,1,0,"tr",42)(23,oOt,1,0,"tr",43),r()),e&2){let t=w().$implicit,n=w(3);g("dataSource",t.incentives),a(22),g("matHeaderRowDef",n.incentivesDisplayedColumns),a(),g("matRowDefColumns",n.incentivesDisplayedColumns)}}function rOt(e,o){if(e&1){let t=Y();l(0,"td",46)(1,"div",53)(2,"mat-card",54)(3,"h4",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.addIncentive(d.getIncentives(s.controls.chartSlabs,i)))}),b(8,"fa-icon",8),c(9),p(10,"translate"),r()(),E(11,aOt,24,3,"table",58),r()()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w();Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,5,"labels.heading.Incentives")," "),a(5),v(" ",m(10,7,"labels.buttons.Add")," "),a(2),I(t.incentives.length?11:-1)}}function lOt(e,o){e&1&&b(0,"tr",65)}function sOt(e,o){e&1&&b(0,"tr",66)}function cOt(e,o){e&1&&b(0,"tr",67)}function pOt(e,o){if(e&1&&(l(0,"table",32),X(1,34),F(2,M6t,3,3,"th",35)(3,D6t,3,6,"td",36),Z(),X(4,37),F(5,E6t,3,3,"th",35)(6,I6t,2,1,"td",36),Z(),X(7,38),F(8,O6t,3,3,"th",35)(9,A6t,2,1,"td",36),Z(),X(10,39),F(11,F6t,3,3,"th",35)(12,k6t,2,1,"td",36),Z(),X(13,40),F(14,B6t,3,3,"th",35)(15,L6t,8,2,"td",36),Z(),X(16,41),F(17,rOt,12,9,"td",36),Z(),F(18,lOt,1,0,"tr",42)(19,sOt,1,0,"tr",43)(20,cOt,1,0,"tr",44),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w();g("dataSource",n.value.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function mOt(e,o){if(e&1){let t=Y();l(0,"div",9),b(1,"mat-divider",15),l(2,"div",16)(3,"div",17)(4,"button",18),p(5,"translate"),R("click",function(){let i=V(t).$index,s=w();return q(s.delete(s.charts,i))}),b(6,"fa-icon",19),r()(),l(7,"mat-form-field",20)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",21),E(12,w6t,7,9,"mat-error"),r(),l(13,"mat-form-field",22)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"textarea",23),E(18,P6t,7,9,"mat-error"),r(),l(19,"mat-form-field",24),R("click",function(){V(t);let i=ve(26);return q(i.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",25)(24,"mat-datepicker-toggle",26)(25,"mat-datepicker",null,0),l(27,"mat-error"),c(28),p(29,"translate"),p(30,"translate"),l(31,"strong"),c(32),p(33,"translate"),r()()(),l(34,"mat-form-field",24),R("click",function(){V(t);let i=ve(41);return q(i.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",27)(39,"mat-datepicker-toggle",26)(40,"mat-datepicker",null,1),r(),l(42,"div",28)(43,"mat-checkbox",29),c(44),p(45,"translate"),r()(),l(46,"div",30)(47,"button",7),R("click",function(){let i=V(t).$implicit,s=w();return q(s.addChartSlab(i.controls.chartSlabs))}),b(48,"fa-icon",8),c(49),p(50,"translate"),r()(),E(51,T6t,4,3,"div",31),E(52,pOt,21,4,"table",32),r()()}if(e&2){let t,n,i=o.$implicit,s=o.$index,d=ve(26),u=ve(41),f=w();a(2),g("formGroupName",s),a(2),g("matTooltip",Le(m(5,24,"tooltips.Delete Interest Rate Chart"))),a(5),h(m(10,26,"labels.inputs.Name")),a(3),I((t=i.get("name"))!=null&&t.touched&&((t=i.get("name"))!=null&&t.hasError("required"))?12:-1),a(3),h(m(16,28,"labels.inputs.Description")),a(3),I((n=i.get("description"))!=null&&n.touched&&((n=i.get("description"))!=null&&n.hasError("required"))?18:-1),a(3),h(m(22,30,"labels.inputs.From Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",d),a(),g("for",d),a(4),le(" ",m(29,32,"labels.inputs.Valid from Date")," ",m(30,34,"labels.commons.is")," "),a(4),h(m(33,36,"labels.commons.required")),a(4),h(m(37,38,"labels.inputs.End Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",u),a(),g("for",u),a(5),v(" ",m(45,40,"labels.inputs.Is primary grouping by amount?")," "),a(5),v(" ",m(50,42,"labels.buttons.Add Slab")," "),a(2),I(i.value.chartSlabs.length===0?51:-1),a(),I(i.value.chartSlabs.length!==0?52:-1)}}var Rm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.chartSlabsDisplayedColumns=[],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount","actions"],this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.expandChartSlabIndex=[],this.chartDetailData=[],this.chartsDetail=[],this.createFixedDepositProductInterestRateChartForm()}ngOnInit(){this.periodTypeData=this.fixedDepositProductsTemplate.chartTemplate.periodTypes,this.entityTypeData=this.fixedDepositProductsTemplate.chartTemplate.entityTypeOptions,this.attributeNameData=this.fixedDepositProductsTemplate.chartTemplate.attributeNameOptions,this.conditionTypeData=this.fixedDepositProductsTemplate.chartTemplate.conditionTypeOptions,this.genderData=this.fixedDepositProductsTemplate.chartTemplate.genderOptions,this.clientTypeData=this.fixedDepositProductsTemplate.chartTemplate.clientTypeOptions,this.clientClassificationData=this.fixedDepositProductsTemplate.chartTemplate.clientClassificationOptions,this.incentiveTypeData=this.fixedDepositProductsTemplate.chartTemplate.incentiveTypeOptions,this.fixedDepositProductsTemplate&&this.assignFormData()}assignFormData(){this.addChart();let t=Array.isArray(this.fixedDepositProductsTemplate.activeChart);this.fixedDepositProductsTemplate.activeChart&&(t?this.chartDetailData=this.fixedDepositProductsTemplate.activeChart:this.chartDetailData.push(this.fixedDepositProductsTemplate.activeChart)),this.getChartsDetailsData(),this.charts.controls.forEach((n,i)=>{this.chartsDetail[i]&&this.chartsDetail[i].chartSlabs.forEach((s,d)=>{let u=this.formBuilder.group({id:[s.id],amountRangeFrom:[s.amountRangeFrom||""],amountRangeTo:[s.amountRangeTo||""],annualInterestRate:[s.annualInterestRate,ce.required],description:[s.description,ce.required],fromPeriod:[s.fromPeriod,ce.required],toPeriod:[s.toPeriod||""],periodType:[s.periodType,ce.required],incentives:this.formBuilder.array([])});n.controls.chartSlabs.push(u);let _=n.controls.chartSlabs.controls[d];this.chartsDetail[i].chartSlabs[d].incentives.forEach(C=>{let x=this.formBuilder.group({amount:[C.amount,ce.required],attributeName:[C.attributeName,ce.required],attributeValue:[C.attributeValue,ce.required],conditionType:[C.conditionType,ce.required],entityType:[C.entityType,ce.required],incentiveType:[C.incentiveType,ce.required]});_.controls.incentives.push(x)})})})}getChartsDetailsData(){this.chartDetailData.forEach(t=>{let n={endDate:t.endDate?new Date(t.endDate):"",fromDate:t.fromDate?new Date(t.fromDate):"",isPrimaryGroupingByAmount:t.isPrimaryGroupingByAmount,name:t.name,description:t.description,chartSlabs:this.getChartSlabsData(t)};t.id&&(n.id=t.id),this.chartsDetail.push(n)}),this.fixedDepositProductInterestRateChartForm.patchValue({charts:this.chartsDetail})}getChartSlabsData(t){let n=[],i=[];return Array.isArray(t.chartSlabs)?i=t.chartSlabs:i.push(t.chartSlabs),i.forEach(d=>{let u={periodType:d.periodType.id,amountRangeFrom:d.amountRangeFrom,amountRangeTo:d.amountRangeTo,annualInterestRate:d.annualInterestRate,description:d.description?d.description:"",fromPeriod:d.fromPeriod,toPeriod:d.toPeriod,incentives:this.getIncentivesData(d)};d.id&&(u.id=d.id),n.push(u)}),n}getIncentivesData(t){let n=[],i=[];return t.incentives&&(Array.isArray(t.incentives)?i=t.incentives:i.push(t.incentives),i.forEach(d=>{let u={amount:d.amount,attributeName:d.attributeName,attributeValue:d.attributeValue,conditionType:d.conditionType,entityType:d.entityType,incentiveType:d.incentiveType};n.push(u)})),n}createFixedDepositProductInterestRateChartForm(){this.fixedDepositProductInterestRateChartForm=this.formBuilder.group({charts:this.formBuilder.array([])})}get charts(){return this.fixedDepositProductInterestRateChartForm.get("charts")}createChartForm(){return this.formBuilder.group({id:[null],name:[""],description:[""],fromDate:["",ce.required],endDate:[""],isPrimaryGroupingByAmount:[!1],chartSlabs:this.formBuilder.array([],ce.required)})}addChart(){this.charts.push(this.createChartForm()),this.setConditionalControls(this.charts.length-1)}setConditionalControls(t){this.chartSlabsDisplayedColumns[t]=["period","amountRange","annualInterestRate","description","actions"],this.charts.at(t).get("isPrimaryGroupingByAmount").valueChanges.subscribe(n=>{this.chartSlabsDisplayedColumns[t]=n?["amountRange","period"]:["period","amountRange"],this.chartSlabsDisplayedColumns[t].push("annualInterestRate","description","actions")})}getIncentives(t,n){return t.at(n).get("incentives")}addChartSlab(t){let n=at({},this.getData("Slab"));this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(s.data.addControl("incentives",this.formBuilder.array([])),t.push(s.data))})}addIncentive(t){let n=qt(at({},this.getData("Incentive")),{entityType:this.entityTypeData[0].id});this.dialog.open(Bm,{data:n}).afterClosed().subscribe(s=>{s.data&&t.push(s.data)})}editChartSlab(t,n){let i=qt(at({},this.getData("Slab",t.at(n).value)),{layout:{addButtonText:this.translateService.instant("labels.text.this")}});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}editIncentive(t,n){let i=qt(at({},this.getData("Incentive",t.at(n).value)),{layout:{addButtonText:this.translateService.instant("labels.text.this")}});this.dialog.open(Bm,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"Slab":return{title:this.translateService.instant("labels.inputs.Slab"),formfields:this.getSlabFormfields(n)};case"Incentive":return{values:n,chartTemplate:this.fixedDepositProductsTemplate.chartTemplate}}}getSlabFormfields(t){return[new $i({controlName:"periodType",label:this.translateService.instant("labels.inputs.Period Type"),value:t?t.periodType:this.periodTypeData[0].id,options:{label:"value",value:"id",data:this.periodTypeData},required:!0,order:1}),new vn({controlName:"fromPeriod",label:this.translateService.instant("labels.inputs.Period From"),value:t?t.fromPeriod:void 0,type:"number",required:!0,order:2}),new vn({controlName:"toPeriod",label:this.translateService.instant("labels.inputs.Period To"),value:t?t.toPeriod:void 0,type:"number",order:3}),new vn({controlName:"amountRangeFrom",label:this.translateService.instant("labels.inputs.Amount Range From"),value:t?t.amountRangeFrom:void 0,type:"number",order:4}),new vn({controlName:"amountRangeTo",label:this.translateService.instant("labels.inputs.Amount Range To"),value:t?t.amountRangeTo:void 0,type:"number",order:5}),new vn({controlName:"annualInterestRate",label:this.translateService.instant("labels.inputs.Interest"),value:t?t.annualInterestRate:void 0,type:"number",required:!0,order:6}),new vn({controlName:"description",label:this.translateService.instant("labels.inputs.Description"),value:t?t.description:void 0,required:!0,order:7})]}get fixedDepositProductInterestRateChart(){let t=this.settingsService.language.code,n="YYYY-MM-DD",i=this.fixedDepositProductInterestRateChartForm.value;for(let s of i.charts)s.locale=t,s.dateFormat="yyyy-MM-dd",s.fromDate instanceof Date&&(s.fromDate=this.dateUtils.formatDateAsString(s.fromDate,n)),s.endDate&&s.endDate instanceof Date&&(s.endDate=this.dateUtils.formatDateAsString(s.endDate,n)),s.endDate===""&&delete s.endDate,s.id===null&&delete s.id;return i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-interest-rate-chart-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:23,vars:17,consts:[["validFromDatePicker",""],["endDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h3","flex-83"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-13","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["formArrayName","charts",1,"flex-fill","layout-row-wrap","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","responsive-column",3,"formGroupName"],["align","end",1,"flex-100"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],[1,"flex-28","m-r-5"],["matInput","","formControlName","name","required",""],[1,"flex-70"],["matInput","","formControlName","description","required",""],[1,"flex-48","m-r-5",3,"click"],["matInput","","formControlName","fromDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"flex-100","layout-row","align-between","align-items-center"],["labelPosition","before","formControlName","isPrimaryGroupingByAmount"],[1,"center","flex-100"],[1,"flex-100"],["mat-table","","multiTemplateDataRows","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"mat-h3"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-fill","incentives"],[1,"layout-row-wrap","flex-fill"],[1,"mat-h4","flex-63"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,i){n&1&&(l(0,"form",2)(1,"div",3)(2,"h4",4),c(3),p(4,"translate"),b(5,"i",5),p(6,"translate"),r(),l(7,"div",6)(8,"button",7),R("click",function(){return i.addChart()}),b(9,"fa-icon",8),c(10),p(11,"translate"),r()(),Se(12,mOt,53,44,"div",9,Pe),r(),l(14,"div",10)(15,"button",11),b(16,"fa-icon",12),c(17),p(18,"translate"),r(),l(19,"button",13),c(20),p(21,"translate"),b(22,"fa-icon",14),r()()()),n&2&&(g("formGroup",i.fixedDepositProductInterestRateChartForm),a(3),v(" ",m(4,7,"labels.inputs.Interest Rate Chart")," "),a(2),g("matTooltip",Le(m(6,9,"tooltips.The interest rate chart"))),a(5),v(" ",m(11,11,"labels.buttons.Add")," "),a(2),we(i.charts.controls),a(5),v(" ",m(18,13,"labels.buttons.Previous")," "),a(3),v(" ",m(21,15,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,La,Ue,Fe,Be,ut,ai,ze,mi,di,pi,xe,fi,si,ke,Ri,wi,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{margin:.5em 0 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function dOt(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function uOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function fOt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function hOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function gOt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function _Ot(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function COt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function vOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function xOt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function bOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function yOt(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function SOt(e,o){e&1&&b(0,"tr",26)}function wOt(e,o){e&1&&b(0,"tr",27)}var Nm=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"]}ngOnInit(){this.chargeData=this.fixedDepositProductsTemplate.chargeOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id?this.chargesDataSource=this.fixedDepositProductsTemplate.charges:this.chargesDataSource=[],this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value=""}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]))})}get fixedDepositProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-charges-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,dOt,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,uOt,3,3,"th",9)(18,fOt,2,1,"td",10),Z(),X(19,11),F(20,hOt,3,3,"th",9)(21,gOt,2,1,"td",10),Z(),X(22,12),F(23,_Ot,3,3,"th",9)(24,COt,3,3,"td",10),Z(),X(25,13),F(26,vOt,3,3,"th",9)(27,xOt,2,1,"td",10),Z(),X(28,14),F(29,bOt,3,3,"th",9)(30,yOt,3,0,"td",10),Z(),F(31,SOt,1,0,"tr",15)(32,wOt,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ac,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function POt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function TOt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.fixedDepositProductAccountingForm.controls.feesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable")}}function MOt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.fixedDepositProductAccountingForm.controls.penaltiesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function DOt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.fixedDepositProductAccountingForm.controls.interestPayableAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Interest Payable")}}function EOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.heading.Payment Type")))}function IOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function OOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function AOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.assetAccountData,"id","name")," ")}}function FOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Actions")))}function kOt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete(s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",35),r()()}}function BOt(e,o){e&1&&b(0,"tr",36)}function ROt(e,o){e&1&&b(0,"tr",37)}function NOt(e,o){if(e&1&&(l(0,"table",21),X(1,23),F(2,EOt,3,3,"th",24)(3,IOt,3,6,"td",25),Z(),X(4,26),F(5,OOt,3,3,"th",24)(6,AOt,3,6,"td",25),Z(),X(7,27),F(8,FOt,3,3,"th",24)(9,kOt,5,0,"td",25),Z(),F(10,BOt,1,0,"tr",28)(11,ROt,1,0,"tr",29),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function LOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.catalogs.Fees")))}function VOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function qOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function zOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function HOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Actions")))}function GOt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function jOt(e,o){e&1&&b(0,"tr",36)}function $Ot(e,o){e&1&&b(0,"tr",37)}function UOt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,LOt,3,3,"th",24)(3,VOt,3,6,"td",25),Z(),X(4,39),F(5,qOt,3,3,"th",24)(6,zOt,3,6,"td",25),Z(),X(7,27),F(8,HOt,3,3,"th",24)(9,GOt,5,0,"td",25),Z(),F(10,jOt,1,0,"tr",28)(11,$Ot,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function WOt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),r(),l(4,"div",18)(5,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(6,"fa-icon",20),c(7),p(8,"translate"),r()(),E(9,UOt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),h(m(3,3,"labels.heading.Map Fees to Specific Income Accounts")),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.feeToIncomeAccountMappings.value.length!==0?9:-1)}}function QOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function YOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function JOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function KOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function XOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Actions")))}function ZOt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function eAt(e,o){e&1&&b(0,"tr",36)}function tAt(e,o){e&1&&b(0,"tr",37)}function iAt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,QOt,3,3,"th",24)(3,YOt,3,6,"td",25),Z(),X(4,39),F(5,JOt,3,3,"th",24)(6,KOt,3,6,"td",25),Z(),X(7,27),F(8,XOt,3,3,"th",24)(9,ZOt,5,0,"td",25),Z(),F(10,eAt,1,0,"tr",28)(11,tAt,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function nAt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),p(4,"translate"),r(),l(5,"div",18)(6,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(7,"fa-icon",20),c(8),p(9,"translate"),r()(),E(10,iAt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),le(" ",m(3,4,"labels.catalogs.Penalties")," ",m(4,6,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(6),v(" ",m(9,8,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?10:-1)}}function oAt(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"div",16)(2,"h4",17),c(3),p(4,"translate"),r(),l(5,"div",18)(6,"button",19),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(7,"fa-icon",20),c(8),p(9,"translate"),r()(),E(10,NOt,12,3,"table",21),r(),E(11,WOt,10,7,"div",22),E(12,nAt,11,10,"div",22),r()}if(e&2){let t=w(2);a(3),v(" ",m(4,5,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(2),I(t.paymentChannelToFundSourceMappings.value.length!==0?10:-1),a(),I(t.existCharges()?11:-1),a(),I(t.existCharges()?12:-1)}}function aAt(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12),E(5,TOt,1,4,"mifosx-gl-account-selector",12),E(6,MOt,1,4,"mifosx-gl-account-selector",12),b(7,"mat-divider",4),l(8,"h4",11),c(9),p(10,"translate"),r(),b(11,"mifosx-gl-account-selector",12)(12,"mifosx-gl-account-selector",12),E(13,DOt,1,4,"mifosx-gl-account-selector",12),b(14,"mat-divider",4),l(15,"h4",11),c(16),p(17,"translate"),r(),b(18,"mifosx-gl-account-selector",12)(19,"mat-divider",4),l(20,"h4",11),c(21),p(22,"translate"),r(),b(23,"mifosx-gl-account-selector",12)(24,"mifosx-gl-account-selector",12)(25,"mat-divider",4),l(26,"h3",13),c(27),p(28,"translate"),r(),b(29,"mat-checkbox",14),E(30,oAt,13,9,"div",15),r()),e&2){let t=w();a(2),h(m(3,33,"labels.heading.Assets")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.savingsReferenceAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Saving reference"),a(),I(t.isAccrualAccounting()?5:-1),a(),I(t.isAccrualAccounting()?6:-1),a(3),h(m(10,35,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.savingsControlAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Saving control"),a(),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Savings transfers in suspense"),a(),I(t.isAccrualAccounting()?13:-1),a(3),h(m(17,37,"labels.heading.Expenses")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.interestOnSavingsAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Interest on savings"),a(3),h(m(22,39,"labels.heading.Income")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(3),h(m(28,41,"labels.heading.Advanced Accounting Rules")),a(3),I(t.fixedDepositProductAccountingForm.value.advancedAccountingRules?30:-1)}}var Lm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.accounting=T(To),this.translateService=T(yi),this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.createfixedDepositProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.chargeData=this.fixedDepositProductsTemplate.chargeOptions||[],this.penaltyData=this.fixedDepositProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.fixedDepositProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.assignAccountingStepData()}assignAccountingStepData(){this.fixedDepositProductAccountingForm.patchValue({accountingRule:this.fixedDepositProductsTemplate.accountingRule.id}),this.isCashOrAccrualAccounting()&&(this.fixedDepositProductAccountingForm.patchValue({savingsReferenceAccountId:this.fixedDepositProductsTemplate.accountingMappings.savingsReferenceAccount.id,savingsControlAccountId:this.fixedDepositProductsTemplate.accountingMappings.savingsControlAccount.id,transfersInSuspenseAccountId:this.fixedDepositProductsTemplate.accountingMappings.transfersInSuspenseAccount.id,incomeFromFeeAccountId:this.fixedDepositProductsTemplate.accountingMappings.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:this.fixedDepositProductsTemplate.accountingMappings.incomeFromPenaltyAccount.id,interestOnSavingsAccountId:this.fixedDepositProductsTemplate.accountingMappings.interestOnSavingsAccount.id}),this.isAccrualAccounting()&&this.fixedDepositProductAccountingForm.patchValue({feesReceivableAccountId:this.fixedDepositProductsTemplate.accountingMappings.feeReceivableAccount.id,penaltiesReceivableAccountId:this.fixedDepositProductsTemplate.accountingMappings.penaltyReceivableAccount.id,interestPayableAccountId:this.fixedDepositProductsTemplate.accountingMappings.interestPayableAccount.id}),(this.fixedDepositProductsTemplate.paymentChannelToFundSourceMappings||this.fixedDepositProductsTemplate.feeToIncomeAccountMappings||this.fixedDepositProductsTemplate.penaltyToIncomeAccountMappings)&&this.fixedDepositProductAccountingForm.patchValue({advancedAccountingRules:!0}),this.fixedDepositProductsTemplate.paymentChannelToFundSourceMappings&&this.fixedDepositProductsTemplate.paymentChannelToFundSourceMappings.forEach(t=>{let n=this.formBuilder.group({paymentTypeId:[t.paymentType.id,ce.required],fundSourceAccountId:[t.fundSourceAccount.id,ce.required]});this.fixedDepositProductAccountingForm.controls.paymentChannelToFundSourceMappings.push(n)}),this.fixedDepositProductsTemplate.feeToIncomeAccountMappings&&this.fixedDepositProductsTemplate.feeToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.fixedDepositProductAccountingForm.controls.feeToIncomeAccountMappings.push(n)}),this.fixedDepositProductsTemplate.penaltyToIncomeAccountMappings&&this.fixedDepositProductsTemplate.penaltyToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.fixedDepositProductAccountingForm.controls.penaltyToIncomeAccountMappings.push(n)}))}createfixedDepositProductAccountingForm(){this.fixedDepositProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}existCharges(){return this.chargeData.length>0}setConditionalControls(){this.fixedDepositProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2||t===3?(this.fixedDepositProductAccountingForm.addControl("savingsReferenceAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("savingsControlAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("interestOnSavingsAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),t===3&&(this.fixedDepositProductAccountingForm.addControl("feesReceivableAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("penaltiesReceivableAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("interestPayableAccountId",new it("",ce.required))),this.fixedDepositProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.fixedDepositProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.fixedDepositProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.fixedDepositProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([]))):(this.fixedDepositProductAccountingForm.removeControl("paymentChannelToFundSourceMappings"),this.fixedDepositProductAccountingForm.removeControl("feeToIncomeAccountMappings"),this.fixedDepositProductAccountingForm.removeControl("penaltyToIncomeAccountMappings"))})):(this.fixedDepositProductAccountingForm.removeControl("savingsReferenceAccountId"),this.fixedDepositProductAccountingForm.removeControl("overdraftPortfolioControlId"),this.fixedDepositProductAccountingForm.removeControl("savingsControlAccountId"),this.fixedDepositProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.fixedDepositProductAccountingForm.removeControl("interestOnSavingsAccountId"),this.fixedDepositProductAccountingForm.removeControl("writeOffAccountId"),this.fixedDepositProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.fixedDepositProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.fixedDepositProductAccountingForm.removeControl("incomeFromInterestId"),this.fixedDepositProductAccountingForm.removeControl("advancedAccountingRules"),this.fixedDepositProductAccountingForm.removeControl("escheatLiabilityId"),this.fixedDepositProductAccountingForm.removeControl("feesReceivableAccountId"),this.fixedDepositProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.fixedDepositProductAccountingForm.removeControl("interestPayableAccountId"))})}get paymentChannelToFundSourceMappings(){return this.fixedDepositProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.fixedDepositProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.fixedDepositProductAccountingForm.get("penaltyToIncomeAccountMappings")}add(t,n){let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&n.push(d.data)})}edit(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&n.at(i).patchValue(u.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"PaymentFundSource":return{title:"Configure Fund Sources for Payment Channels",formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:"Map Fees to Income Accounts",formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:"Map Penalties to Specific Income Accounts",formfields:this.getPenaltyIncomeFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:"Payment Type",value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:"Fund Source",value:t?t.fundSourceAccountId:this.assetAccountData[0].id,options:{label:"name",value:"id",data:this.assetAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Fees",value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Penalty",value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}get fixedDepositProductAccounting(){return this.fixedDepositProductAccountingForm.value}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.fixedDepositProductAccountingForm.value.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.fixedDepositProductAccountingForm.value.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-accounting-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate",accountingRuleData:"accountingRuleData",fixedDepositProductFormValid:"fixedDepositProductFormValid"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-lt-md-column","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"mat-h3","flex-23"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"flex-100","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"mat-h4","flex-63"],[1,"flex-33"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-100"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,POt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,aAt,31,43,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.fixedDepositProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.isCashOrAccrualAccounting()?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.fixedDepositProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var rAt=()=>["../"];function lAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.fixedDepositProduct.description)}}function sAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.fixedDepositProduct.lockinPeriodFrequency+" "+$t(6,4,t.fixedDepositProduct.lockinPeriodFrequencyType,t.fixedDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function cAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.And thereafter, in Multiples of"),":"),a(3),h(t.fixedDepositProduct.inMultiplesOfDepositTerm+" "+$t(6,4,t.fixedDepositProduct.inMultiplesOfDepositTermTypeId,t.fixedDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function pAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Deposit Term"),":"),a(3),h(t.fixedDepositProduct.maxDepositTerm+" "+$t(6,4,t.fixedDepositProduct.maxDepositTermTypeId,t.fixedDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function mAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Penal Interest")," (%):"),a(3),h(t.fixedDepositProduct.preClosurePenalInterest+"% ("+$t(6,4,t.fixedDepositProduct.preClosurePenalInterestOnTypeId,t.fixedDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,"id","value")+")")}}function dAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h($t(6,4,t.fixedDepositProduct.taxGroupId,t.fixedDepositProductsTemplate.taxGroupOptions,"id","name"))}}function uAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.name)}}function fAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.description)}}function hAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.endDate))}}function gAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function _At(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.fixedDepositProductsTemplate.chartTemplate.periodTypes,"id","value")," ")}}function CAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function vAt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function xAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function bAt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.annualInterestRate," ")}}function yAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function SAt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function wAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function PAt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",29),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function TAt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",30),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function MAt(e,o){if(e&1){let t=Y();l(0,"td",27)(1,"button",28),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w(2);return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(2,PAt,4,3,"span"),E(3,TAt,4,3,"span"),r()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);a(),g("disabled",t.incentives.length===0),a(),I(s.expandChartSlabIndex[i]!==n?2:-1),a(),I(s.expandChartSlabIndex[i]===n?3:-1)}}function DAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function EAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.fixedDepositProductsTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function IAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function OAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.fixedDepositProductsTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function AAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function FAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.fixedDepositProductsTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function kAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function BAt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.genderOptions,"id","name"))}}function RAt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function NAt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function LAt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function VAt(e,o){if(e&1&&(l(0,"td",27),E(1,BAt,3,6,"span")(2,RAt,2,1,"span")(3,NAt,3,6,"span")(4,LAt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function qAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function zAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.fixedDepositProductsTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function HAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function GAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function jAt(e,o){e&1&&b(0,"tr",41)}function $At(e,o){e&1&&b(0,"tr",42)}function UAt(e,o){if(e&1&&(l(0,"td",27)(1,"div",31)(2,"mat-card",32)(3,"h4",33),c(4),p(5,"translate"),r(),l(6,"table",34),X(7,35),F(8,DAt,3,3,"th",16)(9,EAt,3,6,"td",17),Z(),X(10,36),F(11,IAt,3,3,"th",16)(12,OAt,3,6,"td",17),Z(),X(13,37),F(14,AAt,3,3,"th",16)(15,FAt,3,6,"td",17),Z(),X(16,38),F(17,kAt,3,3,"th",16)(18,VAt,5,1,"td",17),Z(),X(19,39),F(20,qAt,3,3,"th",16)(21,zAt,3,6,"td",17),Z(),X(22,40),F(23,HAt,3,3,"th",16)(24,GAt,3,3,"td",17),Z(),F(25,jAt,1,0,"tr",23)(26,$At,1,0,"tr",24),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",s.incentivesDisplayedColumns),a(),g("matRowDefColumns",s.incentivesDisplayedColumns)}}function WAt(e,o){e&1&&b(0,"tr",41)}function QAt(e,o){e&1&&b(0,"tr",42)}function YAt(e,o){e&1&&b(0,"tr",43)}function JAt(e,o){if(e&1&&(l(0,"table",14),X(1,15),F(2,gAt,3,3,"th",16)(3,_At,3,6,"td",17),Z(),X(4,18),F(5,CAt,3,3,"th",16)(6,vAt,2,1,"td",17),Z(),X(7,19),F(8,xAt,3,3,"th",16)(9,bAt,2,1,"td",17),Z(),X(10,20),F(11,yAt,3,3,"th",16)(12,SAt,2,1,"td",17),Z(),X(13,21),F(14,wAt,3,3,"th",16)(15,MAt,4,3,"td",17),Z(),X(16,22),F(17,UAt,27,8,"td",17),Z(),F(18,WAt,1,0,"tr",23)(19,QAt,1,0,"tr",24)(20,YAt,1,0,"tr",25),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w(2);g("dataSource",n.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function KAt(e,o){if(e&1&&(l(0,"div",7),E(1,uAt,6,4,"div",4),E(2,fAt,6,4,"div",4),l(3,"div",4)(4,"span",5),c(5),p(6,"translate"),r(),l(7,"span",6),c(8),p(9,"dateFormat"),r()(),E(10,hAt,7,6,"div",4),l(11,"div",2)(12,"span",5),c(13),p(14,"translate"),r(),l(15,"span",6),c(16),p(17,"yesNo"),r()(),E(18,JAt,21,4,"table",14),b(19,"mat-divider",2),r()),e&2){let t=o.$implicit,n=w(2);a(),I(t.name?1:-1),a(),I(t.description?2:-1),a(3),v("",m(6,8,"labels.inputs.From Date"),":"),a(3),h(m(9,10,t.fromDate)),a(2),I(t.endDate?10:-1),a(3),v("",m(14,12,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(17,14,n.fixedDepositProduct.isPrimaryGroupingByAmount)),a(2),I(t.chartSlabs.length!==0?18:-1)}}function XAt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),Se(5,KAt,20,16,"div",7,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Interest Rate Charts")),a(3),we(t.fixedDepositProduct.charts)}}function ZAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function e7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function t7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function i7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function n7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function o7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function a7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function r7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function l7t(e,o){e&1&&b(0,"tr",41)}function s7t(e,o){e&1&&b(0,"tr",42)}function c7t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",34),X(6,44),F(7,ZAt,3,3,"th",16)(8,e7t,2,1,"td",17),Z(),X(9,45),F(10,t7t,3,3,"th",16)(11,i7t,2,1,"td",17),Z(),X(12,40),F(13,n7t,3,3,"th",16)(14,o7t,2,1,"td",17),Z(),X(15,46),F(16,a7t,3,3,"th",16)(17,r7t,2,1,"td",17),Z(),F(18,l7t,1,0,"tr",23)(19,s7t,1,0,"tr",24),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Charges")),a(3),g("dataSource",t.fixedDepositProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function p7t(e,o){if(e&1&&b(0,"mifosx-view-savings-accounting-details",8),e&2){let t=w();g("accountingRule",t.accountingRule)("accountingMappings",t.accountingMappings)}}function m7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function d7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.paymentTypeId,n.fixedDepositProductsTemplate.paymentTypeOptions,"id","name")," ")}}function u7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function f7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.fixedDepositProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")," ")}}function h7t(e,o){e&1&&b(0,"tr",41)}function g7t(e,o){e&1&&b(0,"tr",42)}function _7t(e,o){if(e&1&&(l(0,"div",47)(1,"h4",48),c(2),p(3,"translate"),r(),l(4,"table",49),X(5,50),F(6,m7t,3,3,"th",16)(7,d7t,3,6,"td",17),Z(),X(8,51),F(9,u7t,3,3,"th",16)(10,f7t,3,6,"td",17),Z(),F(11,h7t,1,0,"tr",23)(12,g7t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fund Sources for Payment Channels")),a(2),g("dataSource",t.fixedDepositProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function C7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function v7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.fixedDepositProductsTemplate.chargeOptions,"id","name")," ")}}function x7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function b7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function y7t(e,o){e&1&&b(0,"tr",41)}function S7t(e,o){e&1&&b(0,"tr",42)}function w7t(e,o){if(e&1&&(l(0,"div",47)(1,"h4",48),c(2),p(3,"translate"),r(),l(4,"table",49),X(5,52),F(6,C7t,3,3,"th",16)(7,v7t,3,6,"td",17),Z(),X(8,53),F(9,x7t,3,3,"th",16)(10,b7t,3,6,"td",17),Z(),F(11,y7t,1,0,"tr",23)(12,S7t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fees to Specific Income Accounts")),a(2),g("dataSource",t.fixedDepositProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function P7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function T7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.fixedDepositProductsTemplate.penaltyOptions,"id","name")," ")}}function M7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function D7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function E7t(e,o){e&1&&b(0,"tr",41)}function I7t(e,o){e&1&&b(0,"tr",42)}function O7t(e,o){if(e&1&&(l(0,"div",47)(1,"h4",48),c(2),p(3,"translate"),r(),l(4,"table",49),X(5,52),F(6,P7t,3,3,"th",16)(7,T7t,3,6,"td",17),Z(),X(8,53),F(9,M7t,3,3,"th",16)(10,D7t,3,6,"td",17),Z(),F(11,E7t,1,0,"tr",23)(12,I7t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.fixedDepositProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function A7t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),E(5,_7t,13,6,"div",47),E(6,w7t,13,6,"div",47),E(7,O7t,13,6,"div",47),r()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Advanced Accounting Rules")),a(3),I(t.fixedDepositProduct.paymentChannelToFundSourceMappings!=null&&t.fixedDepositProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.fixedDepositProduct.feeToIncomeAccountMappings!=null&&t.fixedDepositProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.fixedDepositProduct.penaltyToIncomeAccountMappings!=null&&t.fixedDepositProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var Bu=(()=>{class e{constructor(){this.accounting=T(To),this.submitEvent=new bi,this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.expandChartSlabIndex=[],this.accountingMappings={}}ngOnInit(){this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.isCashOrAccrualAccounting()){this.accountingRule=this.accounting.getAccountingRuleFrom(this.fixedDepositProduct.accountingRule);let t=this.fixedDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],n=this.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],i=this.fixedDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],s=this.fixedDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.accountingMappings={savingsReferenceAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.savingsReferenceAccountId,t),savingsControlAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.savingsControlAccountId,s),transfersInSuspenseAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.transfersInSuspenseAccountId,s),interestOnSavingsAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.interestOnSavingsAccountId,i),incomeFromFeeAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.incomeFromFeeAccountId,n),incomeFromPenaltyAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.incomeFromPenaltyAccountId,n)},this.isAccrualAccounting()&&(this.accountingMappings.feeReceivableAccount=this.accounting.glAccountLookUp(this.fixedDepositProduct.feesReceivableAccountId,t),this.accountingMappings.penaltyReceivableAccount=this.accounting.glAccountLookUp(this.fixedDepositProduct.penaltiesReceivableAccountId,t),this.accountingMappings.interestPayableAccount=this.accounting.glAccountLookUp(this.fixedDepositProduct.interestPayableAccountId,s))}}isNoneAccounting(){return this.accounting.isNoneAccountingRuleId(this.fixedDepositProduct.accountingRule)}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.fixedDepositProduct.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.fixedDepositProduct.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-preview-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate",chartSlabsDisplayedColumns:"chartSlabsDisplayedColumns",accountingRuleData:"accountingRuleData",fixedDepositProduct:"fixedDepositProduct"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:125,vars:119,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-100"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[3,"accountingRule","accountingMappings"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click","disabled"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","chargeTimeType"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,lAt,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),r()(),l(48,"div",4)(49,"span",5),c(50),p(51,"translate"),r(),l(52,"span",6),c(53),p(54,"find"),r()(),l(55,"div",4)(56,"span",5),c(57),p(58,"translate"),r(),l(59,"span",6),c(60),p(61,"find"),r()(),l(62,"div",4)(63,"span",5),c(64),p(65,"translate"),r(),l(66,"span",6),c(67),p(68,"find"),r()(),l(69,"div",4)(70,"span",5),c(71),p(72,"translate"),r(),l(73,"span",6),c(74),p(75,"find"),r()(),l(76,"h3",3),c(77),p(78,"translate"),r(),b(79,"mat-divider",2),E(80,sAt,7,9,"div",4),l(81,"div",4)(82,"span",5),c(83),p(84,"translate"),r(),l(85,"span",6),c(86),p(87,"find"),r()(),E(88,cAt,7,9,"div",4),E(89,pAt,7,9,"div",4),l(90,"div",4)(91,"span",5),c(92),p(93,"translate"),r(),l(94,"span",6),c(95),p(96,"yesNo"),r()(),E(97,mAt,7,9,"div",4),l(98,"div",4)(99,"span",5),c(100),p(101,"translate"),r(),l(102,"span",6),c(103),p(104,"yesNo"),r()(),E(105,dAt,7,9,"div",4),E(106,XAt,7,3,"div",7),E(107,c7t,20,6,"div",7),l(108,"h3",3),c(109),p(110,"translate"),r(),b(111,"mat-divider",2),E(112,p7t,1,2,"mifosx-view-savings-accounting-details",8),E(113,A7t,8,6,"div",7),r(),l(114,"div",9)(115,"button",10),b(116,"fa-icon",11),c(117),p(118,"translate"),r(),l(119,"button",12),c(120),p(121,"translate"),r(),l(122,"button",13),R("click",function(){return i.submitEvent.emit()}),c(123),p(124,"translate"),r()()),n&2&&(a(2),h(i.fixedDepositProduct.name),a(3),h(m(6,44,"labels.inputs.Details")),a(5),v("",m(11,46,"labels.inputs.Short Name"),":"),a(3),h(i.fixedDepositProduct.shortName),a(),I(i.fixedDepositProduct.description?14:-1),a(2),h(m(17,48,"labels.inputs.Currency")),a(5),v("",m(22,50,"labels.inputs.Currency"),":"),a(3),h($t(25,52,i.fixedDepositProduct.currencyCode,i.fixedDepositProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,57,"labels.inputs.Decimal Places"),":"),a(3),h(i.fixedDepositProduct.digitsAfterDecimal),a(3),v("",m(35,59,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.fixedDepositProduct.inMultiplesOf),a(2),h(m(40,61,"labels.heading.Terms")),a(5),v("",m(45,63,"labels.inputs.Deposit Amount"),":"),a(3),h(i.fixedDepositProduct.depositAmount+" (Min: "+(i.fixedDepositProduct.minDepositAmount?i.fixedDepositProduct.minDepositAmount:i.fixedDepositProduct.depositAmount)+", Max: "+(i.fixedDepositProduct.maxDepositAmount?i.fixedDepositProduct.maxDepositAmount:i.fixedDepositProduct.depositAmount)+")"),a(3),v("",m(51,65,"labels.inputs.Interest Compounding Period"),":"),a(3),h($t(54,67,i.fixedDepositProduct.interestCompoundingPeriodType,i.fixedDepositProductsTemplate.interestCompoundingPeriodTypeOptions,"id","value")),a(4),v("",m(58,72,"labels.inputs.Interest Posting Period"),":"),a(3),h($t(61,74,i.fixedDepositProduct.interestPostingPeriodType,i.fixedDepositProductsTemplate.interestPostingPeriodTypeOptions,"id","value")),a(4),v("",m(65,79,"labels.inputs.Interest Calculated using"),":"),a(3),h($t(68,81,i.fixedDepositProduct.interestCalculationType,i.fixedDepositProductsTemplate.interestCalculationTypeOptions,"id","value")),a(4),v("",m(72,86,"labels.inputs.Days in Year"),":"),a(3),h($t(75,88,i.fixedDepositProduct.interestCalculationDaysInYearType,i.fixedDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),a(3),h(m(78,93,"labels.heading.Settings")),a(3),I(i.fixedDepositProduct.lockinPeriodFrequency?80:-1),a(3),v("",m(84,95,"labels.inputs.Minimum Deposit Term"),":"),a(3),h(i.fixedDepositProduct.minDepositTerm+" "+$t(87,97,i.fixedDepositProduct.minDepositTermTypeId,i.fixedDepositProductsTemplate.periodFrequencyTypeOptions,"id","value")),a(2),I(i.fixedDepositProduct.inMultiplesOfDepositTerm?88:-1),a(),I(i.fixedDepositProduct.maxDepositTerm?89:-1),a(3),v("",m(93,102,"labels.inputs.Apply Penal Interest (less)"),":"),a(3),h(m(96,104,i.fixedDepositProduct.preClosurePenalApplicable)),a(2),I(i.fixedDepositProduct.preClosurePenalApplicable?97:-1),a(3),v("",m(101,106,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(104,108,i.fixedDepositProduct.withHoldTax)),a(2),I(i.fixedDepositProduct.withHoldTax?105:-1),a(),I(i.fixedDepositProduct.charts.length!==0?106:-1),a(),I(i.fixedDepositProduct.charges.length?107:-1),a(2),h(m(110,110,"labels.heading.Accounting")),a(3),I(i.isNoneAccounting()?-1:112),a(),I(i.fixedDepositProduct.advancedAccountingRules&&(i.fixedDepositProduct.paymentChannelToFundSourceMappings!=null&&i.fixedDepositProduct.paymentChannelToFundSourceMappings.length||i.fixedDepositProduct.feeToIncomeAccountMappings!=null&&i.fixedDepositProduct.feeToIncomeAccountMappings.length||i.fixedDepositProduct.penaltyToIncomeAccountMappings!=null&&i.fixedDepositProduct.penaltyToIncomeAccountMappings.length)?113:-1),a(4),v(" ",m(118,112,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(118,rAt)),a(),v(" ",m(121,114,"labels.buttons.Cancel")," "),a(3),v(" ",m(124,116,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,Ue,xe,Ri,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,rs,qi,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function F7t(e,o){e&1&&b(0,"fa-icon",14)}function k7t(e,o){e&1&&b(0,"fa-icon",14)}function B7t(e,o){e&1&&b(0,"fa-icon",15)}function R7t(e,o){e&1&&b(0,"fa-icon",16)}function N7t(e,o){e&1&&b(0,"fa-icon",17)}function L7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function V7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function q7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function z7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function H7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function G7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function j7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function $7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function U7t(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,$7t,2,3,"ng-template",9),l(2,"mifosx-fixed-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("fixedDepositProductsTemplate",t.fixedDepositProductsTemplate)("chartSlabsDisplayedColumns",t.fixedDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("fixedDepositProduct",t.fixedDepositProduct)}}var x3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.fixedDepositProductsTemplate=t.fixedDepositProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get fixedDepositProductDetailsForm(){return this.fixedDepositProductDetailsStep.fixedDepositProductDetailsForm}get fixedDepositProductCurrencyForm(){return this.fixedDepositProductCurrencyStep.fixedDepositProductCurrencyForm}get fixedDepositProductTermsForm(){return this.fixedDepositProductTermsStep.fixedDepositProductTermsForm}get fixedDepositProductSettingsForm(){return this.fixedDepositProductSettingsStep.fixedDepositProductSettingsForm}get fixedDepositProductInterestRateChartForm(){return this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChartForm}get fixedDepositProductAccountingForm(){return this.fixedDepositProductAccountingStep.fixedDepositProductAccountingForm}get fixedDepositProductFormValid(){return this.fixedDepositProductDetailsForm.valid&&this.fixedDepositProductCurrencyForm.valid&&this.fixedDepositProductTermsForm.valid&&this.fixedDepositProductSettingsForm.valid&&this.fixedDepositProductInterestRateChartForm.valid&&this.fixedDepositProductAccountingForm.valid}get fixedDepositProduct(){return at(at(at(at(at(at(at({},this.fixedDepositProductDetailsStep.fixedDepositProductDetails),this.fixedDepositProductCurrencyStep.fixedDepositProductCurrency),this.fixedDepositProductTermsStep.fixedDepositProductTerms),this.fixedDepositProductSettingsStep.fixedDepositProductSettings),this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChart),this.fixedDepositProductChargesStep.fixedDepositProductCharges),this.fixedDepositProductAccountingStep.fixedDepositProductAccounting)}submit(){let t=qt(at({},this.fixedDepositProduct),{charges:this.fixedDepositProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});delete t.advancedAccountingRules,this.productsService.createFixedDepositProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-fixed-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Om,7),Ee(Am,7),Ee(Fm,7),Ee(km,7),Ee(Rm,7),Ee(Nm,7),Ee(Lm,7)),n&2){let s;Te(s=Me())&&(i.fixedDepositProductDetailsStep=s.first),Te(s=Me())&&(i.fixedDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.fixedDepositProductTermsStep=s.first),Te(s=Me())&&(i.fixedDepositProductSettingsStep=s.first),Te(s=Me())&&(i.fixedDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.fixedDepositProductChargesStep=s.first),Te(s=Me())&&(i.fixedDepositProductAccountingStep=s.first)}},decls:30,vars:17,consts:[["fixedDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositProductsTemplate"],[3,"fixedDepositProductsTemplate","currencyCode"],[3,"fixedDepositProductsTemplate","accountingRuleData","fixedDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","fixedDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,F7t,1,0,"ng-template",3)(4,k7t,1,0,"ng-template",4)(5,B7t,1,0,"ng-template",5)(6,R7t,1,0,"ng-template",6)(7,N7t,1,0,"ng-template",7),l(8,"mat-step",8),F(9,L7t,2,3,"ng-template",9),b(10,"mifosx-fixed-deposit-product-details-step"),r(),l(11,"mat-step",8),F(12,V7t,2,3,"ng-template",9),b(13,"mifosx-fixed-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,q7t,2,3,"ng-template",9),b(16,"mifosx-fixed-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,z7t,2,3,"ng-template",9),b(19,"mifosx-fixed-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,H7t,2,3,"ng-template",9),b(22,"mifosx-fixed-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,G7t,2,3,"ng-template",9),b(25,"mifosx-fixed-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,j7t,2,3,"ng-template",9),b(28,"mifosx-fixed-deposit-product-accounting-step",12),r(),E(29,U7t,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.fixedDepositProductDetailsForm),a(3),g("stepControl",i.fixedDepositProductCurrencyForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductTermsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductSettingsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductInterestRateChartForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(3),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("currencyCode",i.fixedDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.fixedDepositProductAccountingForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("fixedDepositProductFormValid",i.fixedDepositProductFormValid),a(),I(i.fixedDepositProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Om,Am,Fm,km,Rm,Nm,Lm,Bu,he],encapsulation:2})}}return e})();var W7t=()=>[10,25,50,100],Q7t=()=>["create"],Y7t=e=>[e];function J7t(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Q7t)),a(2),v("",m(3,2,"labels.buttons.Add")," "))}function K7t(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function X7t(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function Z7t(e,o){e&1&&b(0,"tr",18)}function eFt(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,Y7t,t.productId))}}var b3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["productName"],this.route.data.subscribe(t=>{this.productMixData=t.products})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setProductsMix()}setProductsMix(){this.dataSource=new Wt(this.productMixData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-products-mix"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"layout-row","align-end","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","productName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,J7t,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,K7t,3,3,"th",9)(13,X7t,2,1,"td",10),Z(),F(14,Z7t,1,0,"tr",11)(15,eFt,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_PRODUCTMIX"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,W7t)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var tFt=()=>[10,25,50,100],iFt=()=>["create"],nFt=e=>[e];function oFt(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,iFt)),a(2),v(" ",m(3,2,"labels.buttons.Create Floating Rate")," "))}function aFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function rFt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function lFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function sFt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function cFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is Base Lending Rate"),"? "))}function pFt(e,o){e&1&&(b(0,"fa-icon",21),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function mFt(e,o){e&1&&(b(0,"fa-icon",22),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function dFt(e,o){if(e&1&&(l(0,"td",20),E(1,pFt,2,4,"fa-icon",21),E(2,mFt,2,4,"fa-icon",22),r()),e&2){let t=o.$implicit;a(),I(t.isBaseLendingRate?1:-1),a(),I(t.isBaseLendingRate?-1:2)}}function uFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.catalogs.Active")))}function fFt(e,o){e&1&&(b(0,"fa-icon",21),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function hFt(e,o){e&1&&(b(0,"fa-icon",22),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function gFt(e,o){if(e&1&&(l(0,"td",20),E(1,fFt,2,4,"fa-icon",21),E(2,hFt,2,4,"fa-icon",22),r()),e&2){let t=o.$implicit;a(),I(t.isActive?1:-1),a(),I(t.isActive?-1:2)}}function _Ft(e,o){e&1&&b(0,"tr",23)}function CFt(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("routerLink",Nt(1,nFt,t.id))}}var y3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","createdBy","isBaseLendingRate","isActive"],this.route.data.subscribe(t=>{this.floatingRatesData=t.floatingrates})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setFloatingRates()}setFloatingRates(){this.dataSource=new Wt(this.floatingRatesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-floating-rates"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["matColumnDef","isBaseLendingRate"],["matColumnDef","isActive"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-base-lending-rate-or-active",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-base-lending-rate-or-active",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,oFt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,aFt,3,3,"th",9)(13,rFt,2,1,"td",10),Z(),X(14,11),F(15,lFt,3,3,"th",9)(16,sFt,2,1,"td",10),Z(),X(17,12),F(18,cFt,3,3,"th",9)(19,dFt,3,2,"td",10),Z(),X(20,13),F(21,uFt,3,3,"th",9)(22,gFt,3,2,"td",10),Z(),F(23,_Ft,1,0,"tr",14)(24,CFt,1,3,"tr",15),r(),b(25,"mat-paginator",16),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_FLOATINGRATE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,tFt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.is-base-lending-rate-or-active[_ngcontent-%COMP%]{color:#32cd32}.not-is-base-lending-rate-or-active[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();function vFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Interest Rate")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Vm=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.settingsService=T(Ot),this.data=T(Po),this.minDate=new Date}ngOnInit(){this.minDate=this.settingsService.businessDate;let t=!1;this.data&&new Date(this.data.fromDate)[10,25,50,100],yFt=()=>["../"];function SFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Floating Rate Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wFt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest effective from date"))),a(2),v(" ",m(3,5,"labels.inputs.From Date")," "))}function PFt(e,o){if(e&1&&(l(0,"td",30),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function TFt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Annualised Interest rate"))),a(2),v(" ",m(3,5,"labels.inputs.Interest Rate")," "))}function MFt(e,o){if(e&1&&(l(0,"td",30),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.interestRate))}}function DFt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest rate mentioned is added to base lending rate"))),a(2),v(" ",m(3,5,"labels.inputs.Is Differential"),"? "))}function EFt(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function IFt(e,o){e&1&&(b(0,"fa-icon",32),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function OFt(e,o){if(e&1&&(l(0,"td",30),E(1,EFt,2,4,"fa-icon",31),E(2,IFt,2,4,"fa-icon",32),r()),e&2){let t=o.$implicit;a(),I(t.isDifferentialToBaseLendingRate?1:-1),a(),I(t.isDifferentialToBaseLendingRate?-1:2)}}function AFt(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function FFt(e,o){if(e&1){let t=Y();l(0,"td",34)(1,"button",35),p(2,"translate"),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editFloatingRatePeriod(i))}),b(3,"fa-icon",36),r(),l(4,"button",37),p(5,"translate"),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteFloatingRatePeriod(i))}),b(6,"fa-icon",38),r()()}e&2&&(a(),g("matTooltip",Le(m(2,4,"tooltips.Edit Period"))),a(3),g("matTooltip",Le(m(5,6,"tooltips.Remove Period"))))}function kFt(e,o){e&1&&b(0,"tr",39)}function BFt(e,o){e&1&&b(0,"tr",40)}function RFt(e,o){if(e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.floatingRateForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var S3=(()=>{class e{constructor(){this.router=T(qe),this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.floatingRatePeriodsData=[],this.minDate=new Date,this.displayedColumns=["fromDate","interestRate","isDifferential","actions"],this.dateFormat=this.settingsService.dateFormat}ngOnInit(){this.setFloatingRates(),this.createFloatingRateForm()}createFloatingRateForm(){this.floatingRateForm=this.formBuilder.group({name:["",ce.required],isBaseLendingRate:[!1],isActive:[!1]})}setFloatingRates(){this.dataSource=new Wt(this.floatingRatePeriodsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createFloatingRatePeriodsForm(){return this.formBuilder.group({fromDate:["",ce.required],interestRate:["",ce.required],isDifferentialToBaseLendingRate:[!1]})}addFloatingRatePeriod(){this.dialog.open(Vm,{data:{fromDate:this.settingsService.businessDate}}).afterClosed().subscribe(n=>{n&&(this.floatingRatePeriodsData.push({fromDate:this.dateUtils.formatDate(n.fromDate,this.dateFormat),interestRate:n.interestRate,isDifferentialToBaseLendingRate:n.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat}),this.dataSource.connect().next(this.floatingRatePeriodsData))})}editFloatingRatePeriod(t){this.dialog.open(Vm,{data:{fromDate:t.fromDate,interestRate:t.interestRate,isDifferentialToBaseLendingRate:t.isDifferentialToBaseLendingRate,isNew:!0}}).afterClosed().subscribe(i=>{i&&(this.floatingRatePeriodsData[this.floatingRatePeriodsData.indexOf(t)]={fromDate:this.dateUtils.formatDate(i.fromDate,this.dateFormat),interestRate:i.interestRate,isDifferentialToBaseLendingRate:i.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat},this.dataSource.connect().next(this.floatingRatePeriodsData))})}deleteFloatingRatePeriod(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.floating rate period with from date as")+" "+t.fromDate}}).afterClosed().subscribe(i=>{i.delete&&(this.floatingRatePeriodsData.splice(this.floatingRatePeriodsData.indexOf(t),1),this.dataSource.connect().next(this.floatingRatePeriodsData))})}submit(){this.floatingRateForm.value.ratePeriods=this.floatingRatePeriodsData,this.productsService.createFloatingRate(this.floatingRateForm.value).subscribe(t=>{this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-floating-rate"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:54,vars:42,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-4percent"],[1,"flex-30"],["matInput","","required","","formControlName","name",3,"matTooltip"],[1,"checkbox-wrapper","flex-30"],["formControlName","isBaseLendingRate","labelPosition","before",1,"checkbox",3,"matTooltip"],["formControlName","isActive","labelPosition","before",1,"checkbox",3,"matTooltip"],[3,"inset"],[1,"layout-row-wrap","gap-70percent","m-b-10","layout-lt-md-column"],[1,"mat-title","flex-25"],[1,"fas","fa-question",3,"matTooltip"],["mat-mini-fab","","type","button","color","primary",3,"click"],["icon","plus"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","","mat-sort-header","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","interestRate"],["matColumnDef","isDifferential"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","type","submit","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell","","mat-sort-header","",3,"matTooltip"],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-differential",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-differential",3,"matTooltip"],["mat-header-cell",""],["mat-cell","",1,"gap-15percent"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","left",1,"flex-8",3,"click","matTooltip"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","right",1,"flex-8",3,"click","matTooltip"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),p(10,"translate"),E(11,SFt,7,9,"mat-error"),r(),l(12,"div",5)(13,"mat-checkbox",6),p(14,"translate"),c(15),p(16,"translate"),r()(),l(17,"div",5)(18,"mat-checkbox",7),p(19,"translate"),c(20),p(21,"translate"),r()()(),b(22,"br")(23,"mat-divider",8)(24,"br"),l(25,"div",9)(26,"p",10),c(27),p(28,"translate"),b(29,"i",11),p(30,"translate"),r(),l(31,"button",12),R("click",function(){return i.addFloatingRatePeriod()}),b(32,"fa-icon",13),r()(),l(33,"table",14),X(34,15),F(35,wFt,4,7,"th",16)(36,PFt,3,3,"td",17),Z(),X(37,18),F(38,TFt,4,7,"th",16)(39,MFt,3,3,"td",17),Z(),X(40,19),F(41,DFt,4,7,"th",16)(42,OFt,3,2,"td",17),Z(),X(43,20),F(44,AFt,3,3,"th",21)(45,FFt,7,8,"td",22),Z(),F(46,kFt,1,0,"tr",23)(47,BFt,1,0,"tr",24),r(),b(48,"mat-paginator",25),r(),l(49,"mat-card-actions",26)(50,"button",27),c(51),p(52,"translate"),r(),F(53,RFt,3,4,"button",28),r()()()()),n&2&&(a(2),g("formGroup",i.floatingRateForm),a(5),h(m(8,22,"labels.inputs.Floating Rate Name")),a(2),g("matTooltip",Le(m(10,24,"tooltips.Unique name for the floating rate scheme"))),a(2),I(i.floatingRateForm.controls.name.hasError("required")?11:-1),a(2),g("matTooltip",Le(m(14,26,"tooltips.Base lending rate for the organisation"))),a(2),v("",m(16,28,"labels.inputs.Is Base Lending Rate"),"?"),a(3),g("matTooltip",Le(m(19,30,"tooltips.Floating rate scheme to be activated"))),a(2),h(m(21,32,"labels.inputs.Active")),a(3),g("inset",!0),a(4),v(" ",m(28,34,"labels.inputs.Floating Rate Periods")," "),a(2),g("matTooltip",Le(m(30,36,"tooltips.Floating interest rate and start date"))),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(40,bFt)),a(2),g("routerLink",oe(41,yFt)),a(),v(" ",m(52,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FLOATINGRATE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,si,Ri,Og,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,Pi,he,In],styles:["@media (width >= 992px){.checkbox-wrapper[_ngcontent-%COMP%]{position:relative}.checkbox-wrapper[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}.is-differential[_ngcontent-%COMP%]{color:#32cd32}.not-is-differential[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var NFt=()=>[10,25,50,100],LFt=()=>["edit"];function VFt(e,o){e&1&&(l(0,"button",21),b(1,"fa-icon",22),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,LFt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function qFt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function zFt(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function HFt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest Rate")))}function GFt(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"number"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.interestRate))}}function jFt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is Differential"),"? "))}function $Ft(e,o){e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function UFt(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function WFt(e,o){if(e&1&&(l(0,"td",24),E(1,$Ft,2,4,"fa-icon",25),E(2,UFt,2,4,"fa-icon",26),r()),e&2){let t=o.$implicit;a(),I(t.isDifferentialToBaseLendingRate?1:-1),a(),I(t.isDifferentialToBaseLendingRate?-1:2)}}function QFt(e,o){e&1&&b(0,"tr",27)}function YFt(e,o){e&1&&b(0,"tr",28)}var w3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["fromDate","interestRate","isDifferential"],this.route.data.subscribe(t=>{this.floatingRateData=t.floatingRate})}ngOnInit(){this.setFloatingRates()}setFloatingRates(){this.dataSource=new Wt(this.floatingRateData.ratePeriods),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-floating-rate"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:43,vars:26,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","layout-lt-md-column"],[1,"mat-body-strong","flex-18"],[1,"flex-18"],[1,"mat-body-strong","flex-20"],[1,"flex-10"],[1,"mat-body-strong","flex-14"],[3,"inset"],[1,"mat-title"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","interestRate"],["matColumnDef","isDifferential"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-differential",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-differential",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,VFt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",6),c(12),p(13,"translate"),r(),l(14,"div",7),c(15),p(16,"yesNo"),r(),l(17,"div",8),c(18),p(19,"translate"),r(),l(20,"div",7),c(21),p(22,"yesNo"),r()(),b(23,"br")(24,"mat-divider",9)(25,"br"),l(26,"p",10),c(27),p(28,"translate"),r(),l(29,"div",11)(30,"table",12),X(31,13),F(32,qFt,3,3,"th",14)(33,zFt,3,3,"td",15),Z(),X(34,16),F(35,HFt,3,3,"th",14)(36,GFt,3,3,"td",15),Z(),X(37,17),F(38,jFt,3,3,"th",14)(39,WFt,3,2,"td",15),Z(),F(40,QFt,1,0,"tr",18)(41,YFt,1,0,"tr",19),r(),b(42,"mat-paginator",20),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_FLOATINGRATE"),a(6),v("",m(8,13,"labels.inputs.Floating Rate Name"),":"),a(3),v(" ",i.floatingRateData.name," "),a(2),v("",m(13,15,"labels.inputs.Is Base Lending Rate"),":"),a(3),v(" ",m(16,17,i.floatingRateData.isBaseLendingRate)," "),a(3),v("",m(19,19,"labels.inputs.Is Active"),":"),a(3),v(" ",m(22,21,i.floatingRateData.isActive)," "),a(3),g("inset",!0),a(3),h(m(28,23,"labels.inputs.Floating Rate Periods")),a(3),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(25,NFt)))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Ri,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,xp,Pi,he,po],styles:["table[_ngcontent-%COMP%]{width:100%}.is-differential[_ngcontent-%COMP%]{color:#32cd32}.not-is-differential[_ngcontent-%COMP%]{color:#f44366}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var JFt=()=>[10,25,50,100],KFt=()=>["../"];function XFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Floating Rate Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZFt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest effective from date"))),a(2),v(" ",m(3,5,"labels.inputs.From Date")," "))}function ekt(e,o){if(e&1&&(l(0,"td",30),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function tkt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Annualised Interest rate"))),a(2),v(" ",m(3,5,"labels.inputs.Interest Rate")," "))}function ikt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.interestRate)}}function nkt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest rate mentioned is added to base lending rate"))),a(2),v(" ",m(3,5,"labels.inputs.Is Differential"),"? "))}function okt(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function akt(e,o){e&1&&(b(0,"fa-icon",32),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function rkt(e,o){if(e&1&&(l(0,"td",30),E(1,okt,2,4,"fa-icon",31),E(2,akt,2,4,"fa-icon",32),r()),e&2){let t=o.$implicit;a(),I(t.isDifferentialToBaseLendingRate?1:-1),a(),I(t.isDifferentialToBaseLendingRate?-1:2)}}function lkt(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function skt(e,o){if(e&1){let t=Y();l(0,"td",30)(1,"button",34),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editFloatingRatePeriod(i))}),b(2,"fa-icon",35),r(),l(3,"button",36),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteFloatingRatePeriod(i))}),b(4,"fa-icon",37),r()()}}function ckt(e,o){e&1&&b(0,"tr",38)}function pkt(e,o){e&1&&b(0,"tr",39)}var P3=(()=>{class e{constructor(){this.router=T(qe),this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date,this.isFloatingRateFormPristine=!0,this.displayedColumns=["fromDate","interestRate","isDifferential","actions"],this.dateFormat=this.settingsService.dateFormat,this.floatingRatePeriodsData=[],this.route.data.subscribe(t=>{this.floatingRateData=t.floatingRate,this.floatingRatePeriodsData=t.floatingRate.ratePeriods?t.floatingRate.ratePeriods:[]})}ngOnInit(){this.createFloatingRateForm(),this.setFloatingRates()}createFloatingRateForm(){this.floatingRateForm=this.formBuilder.group({name:[this.floatingRateData.name,ce.required],isBaseLendingRate:[this.floatingRateData.isBaseLendingRate],isActive:[this.floatingRateData.isActive]})}setFloatingRates(){this.dataSource=new Wt(this.floatingRatePeriodsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}addFloatingRatePeriod(){this.dialog.open(Vm,{data:{}}).afterClosed().subscribe(n=>{n&&(this.floatingRatePeriodsData.push({fromDate:this.dateUtils.formatDate(n.fromDate,this.dateFormat),interestRate:n.interestRate,isDifferentialToBaseLendingRate:n.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat}),this.dataSource.connect().next(this.floatingRatePeriodsData),this.isFloatingRateFormPristine=!1)})}editFloatingRatePeriod(t){this.dialog.open(Vm,{data:{fromDate:t.fromDate,interestRate:t.interestRate,isDifferentialToBaseLendingRate:t.isDifferentialToBaseLendingRate}}).afterClosed().subscribe(i=>{i&&(this.floatingRatePeriodsData[this.floatingRatePeriodsData.indexOf(t)]={fromDate:this.dateUtils.formatDate(i.fromDate,this.dateFormat),interestRate:i.interestRate,isDifferentialToBaseLendingRate:i.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat},this.dataSource.connect().next(this.floatingRatePeriodsData),this.isFloatingRateFormPristine=!1)})}deleteFloatingRatePeriod(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.floating rate period with from date as")+" "+t.fromDate}}).afterClosed().subscribe(i=>{i.delete&&(this.floatingRatePeriodsData.splice(this.floatingRatePeriodsData.indexOf(t),1),this.dataSource.connect().next(this.floatingRatePeriodsData),this.isFloatingRateFormPristine=!1)})}submit(){this.floatingRatePeriodsData.map(t=>{t.modifiedOn=void 0,t.createdOn=void 0,t.id=void 0,t.modifiedBy=void 0,t.createdBy=void 0,t.isActive=void 0,t.locale=this.settingsService.language.code,t.dateFormat=this.dateFormat,t.fromDate=this.dateUtils.formatDate(t.fromDate,this.dateFormat)}),this.floatingRateForm.value.ratePeriods=this.floatingRatePeriodsData.length>0?this.floatingRatePeriodsData:void 0,this.productsService.updateFloatingRate(this.route.snapshot.paramMap.get("id"),this.floatingRateForm.value).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-floating-rate"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:56,vars:45,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-15percent"],[1,"flex-25"],["matInput","","required","","formControlName","name",3,"matTooltip"],[1,"checkbox-wrapper","flex-25"],["formControlName","isBaseLendingRate","labelPosition","before",1,"checkbox",3,"matTooltip"],[1,"checkbox-wrapper","flex-15"],["formControlName","isActive","labelPosition","before",1,"checkbox",3,"matTooltip"],[3,"inset"],[1,"layout-row-wrap","gap-70percent","m-b-10","layout-lt-md-column"],[1,"mat-title","flex-25"],[1,"fas","fa-question",3,"matTooltip"],["mat-mini-fab","","type","button","color","primary",3,"click"],["icon","plus"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","","mat-sort-header","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","interestRate"],["matColumnDef","isDifferential"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-header-cell","","mat-sort-header","",3,"matTooltip"],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-differential",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-differential",3,"matTooltip"],["mat-header-cell",""],["type","button","color","primary","mat-icon-button","",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),p(10,"translate"),E(11,XFt,7,9,"mat-error"),r(),l(12,"div",5)(13,"mat-checkbox",6),p(14,"translate"),c(15),p(16,"translate"),r()(),l(17,"div",7)(18,"mat-checkbox",8),p(19,"translate"),c(20),p(21,"translate"),r()()(),b(22,"br")(23,"mat-divider",9)(24,"br"),l(25,"div",10)(26,"p",11),c(27),p(28,"translate"),b(29,"i",12),p(30,"translate"),r(),l(31,"button",13),R("click",function(){return i.addFloatingRatePeriod()}),b(32,"fa-icon",14),r()(),l(33,"table",15),X(34,16),F(35,ZFt,4,7,"th",17)(36,ekt,3,3,"td",18),Z(),X(37,19),F(38,tkt,4,7,"th",17)(39,ikt,2,1,"td",18),Z(),X(40,20),F(41,nkt,4,7,"th",17)(42,rkt,3,2,"td",18),Z(),X(43,21),F(44,lkt,3,3,"th",22)(45,skt,5,0,"td",18),Z(),F(46,ckt,1,0,"tr",23)(47,pkt,1,0,"tr",24),r(),b(48,"mat-paginator",25),r(),l(49,"mat-card-actions",26)(50,"button",27),c(51),p(52,"translate"),r(),l(53,"button",28),c(54),p(55,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.floatingRateForm),a(5),h(m(8,23,"labels.inputs.Floating Rate Name")),a(2),g("matTooltip",Le(m(10,25,"tooltips.Unique name for the floating rate scheme"))),a(2),I(i.floatingRateForm.controls.name.hasError("required")?11:-1),a(2),g("matTooltip",Le(m(14,27,"tooltips.Base lending rate for the organisation"))),a(2),v(" ",m(16,29,"labels.inputs.Is Base Lending Rate"),"? "),a(3),g("matTooltip",Le(m(19,31,"tooltips.Floating rate scheme to be activated"))),a(2),v(" ",m(21,33,"labels.inputs.Active")," "),a(3),g("inset",!0),a(4),v(" ",m(28,35,"labels.inputs.Floating Rate Periods")," "),a(2),g("matTooltip",Le(m(30,37,"tooltips.Floating interest rate and start date for this floating rate scheme"))),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(43,JFt)),a(2),g("routerLink",oe(44,KFt)),a(),v(" ",m(52,39,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.floatingRateForm.valid||i.floatingRateForm.pristine&&i.isFloatingRateFormPristine),a(),v(" ",m(55,41,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,si,Ri,Og,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,Pi,he],styles:["@media (width >= 992px){.checkbox-wrapper[_ngcontent-%COMP%]{position:relative}.checkbox-wrapper[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}.is-differential[_ngcontent-%COMP%]{color:#32cd32}.not-is-differential[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var mkt=["allowed"],dkt=["restricted"],ZK=()=>[10,25,50,100],ukt=()=>["edit"];function fkt(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(g("ngClass","customWidthClass"),a(),v(" ",m(2,2,"labels.inputs.Allowed Products")," "))}function hkt(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;g("ngClass","customWidthClass"),a(),h(t.name)}}function gkt(e,o){e&1&&b(0,"tr",20)}function _kt(e,o){e&1&&b(0,"tr",21)}function Ckt(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,ukt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function vkt(e,o){if(e&1){let t=Y();l(0,"button",24),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",25),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function xkt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Restricted products")," "))}function bkt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function ykt(e,o){e&1&&b(0,"tr",20)}function Skt(e,o){e&1&&b(0,"tr",21)}var T3=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.productsService=T(ci),this.router=T(qe),this.translateService=T(yi),this.allowedProductsDisplayedColumns=["name"],this.restrictedProductsDisplayedColumns=["name"],this.route.data.subscribe(t=>{this.productMixData=t.productMix})}ngOnInit(){this.setAllowedProducts(),this.setRestrictedProducts()}setAllowedProducts(){this.allowedProductsDatasource=new Wt(this.productMixData.allowedProducts),this.allowedProductsDatasource.paginator=this.allowedPaginator,this.allowedProductsDatasource.sort=this.allowedSort}setRestrictedProducts(){this.restrictedProductsDatasource=new Wt(this.productMixData.restrictedProducts),this.restrictedProductsDatasource.paginator=this.restrictedPaginator,this.restrictedProductsDatasource.sort=this.restrictedSort}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.dialogContext.the productmix component with id")+" "+this.productMixData.productId}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteProductMix(this.productMixData.productId).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-product-mix"]],viewQuery:function(n,i){if(n&1&&(Ee(mkt,7),Ee(dkt,7),Ee(It,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.allowedPaginator=s.first),Te(s=Me())&&(i.restrictedPaginator=s.first),Te(s=Me())&&(i.allowedSort=s.first),Te(s=Me())&&(i.restrictedSort=s.first)}},decls:23,vars:12,consts:[["allowed",""],["restricted",""],[1,"product-mix-row"],[1,"mat-elevation-z8","inline-table"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"restricted-products-col"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"mat-elevation-z8","inline-table","restricted-products-box"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",3,"ngClass"],["mat-cell","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""]],template:function(n,i){n&1&&(l(0,"div",2)(1,"div",3)(2,"table",4),X(3,5),F(4,fkt,3,4,"th",6)(5,hkt,2,2,"td",7),Z(),F(6,gkt,1,0,"tr",8)(7,_kt,1,0,"tr",9),r(),b(8,"mat-paginator",10,0),r(),l(10,"div",11)(11,"div",12),F(12,Ckt,4,5,"button",13)(13,vkt,4,3,"button",14),r(),l(14,"div",15)(15,"table",4),X(16,5),F(17,xkt,3,3,"th",16)(18,bkt,2,1,"td",17),Z(),F(19,ykt,1,0,"tr",8)(20,Skt,1,0,"tr",9),r(),b(21,"mat-paginator",10,1),r()()()),n&2&&(a(2),g("dataSource",i.allowedProductsDatasource),a(4),g("matHeaderRowDef",i.allowedProductsDisplayedColumns),a(),g("matRowDefColumns",i.allowedProductsDisplayedColumns),a(),g("pageSizeOptions",oe(10,ZK)),a(4),g("mifosxHasPermission","UPDATE_PRODUCTMIX"),a(),g("mifosxHasPermission","DELETE_PRODUCTMIX"),a(2),g("dataSource",i.restrictedProductsDatasource),a(4),g("matHeaderRowDef",i.restrictedProductsDisplayedColumns),a(),g("matRowDefColumns",i.restrictedProductsDisplayedColumns),a(),g("pageSizeOptions",oe(11,ZK)))},dependencies:[ue,co,fe,Oe,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".allowed-products-align[_ngcontent-%COMP%]{margin-top:19px}.product-mix-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:32px;justify-content:center;width:100%}.restricted-products-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;min-width:340px;justify-content:flex-start}.action-buttons-wrapper[_ngcontent-%COMP%]{width:45%;margin-left:auto;margin-bottom:8px}.restricted-products-box[_ngcontent-%COMP%]{position:relative}.action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-bottom:16px}.container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-evenly}.container[_ngcontent-%COMP%] .inline-table[_ngcontent-%COMP%]{display:inline-block;width:45%}"]})}}return e})();var wkt=()=>[10,25,50,100],Pkt=()=>["create"],Tkt=e=>[e];function Mkt(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Pkt)),a(2),v(" ",m(3,2,"labels.buttons.Create Tax Component")," "))}function Dkt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Ekt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Ikt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Percentage")," %"))}function Okt(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.percentage))}}function Akt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function Fkt(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function kkt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account")))}function Bkt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",(t.creditAccount==null?null:t.creditAccount.glCode)||"",") ",(t.creditAccount==null?null:t.creditAccount.name)||""," ")}}function Rkt(e,o){e&1&&b(0,"tr",21)}function Nkt(e,o){if(e&1&&b(0,"tr",22),e&2){let t=o.$implicit;g("routerLink",Nt(1,Tkt,t.id))}}var dh=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","percentage","startDate","glAccount"],this.route.data.subscribe(t=>{this.taxComponentData=t.taxComponents})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTaxComponents()}setTaxComponents(){this.dataSource=new Wt(this.taxComponentData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-tax-components"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","percentage"],["matColumnDef","startDate"],["matColumnDef","glAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Mkt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Dkt,3,3,"th",9)(13,Ekt,2,1,"td",10),Z(),X(14,11),F(15,Ikt,3,3,"th",9)(16,Okt,3,3,"td",10),Z(),X(17,12),F(18,Akt,3,3,"th",9)(19,Fkt,3,3,"td",10),Z(),X(20,13),F(21,kkt,3,3,"th",9)(22,Bkt,2,2,"td",10),Z(),F(23,Rkt,1,0,"tr",14)(24,Nkt,1,3,"tr",15),r(),b(25,"mat-paginator",16),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TAXCOMPONENT"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,wkt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he,In],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Lkt=()=>[10,25,50,100],Vkt=()=>["create"],qkt=e=>[e];function zkt(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Vkt)),a(2),v(" ",m(3,2,"labels.buttons.Create Tax Groups")," "))}function Hkt(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Gkt(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function jkt(e,o){e&1&&b(0,"tr",18)}function $kt(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,qkt,t.id))}}var uh=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name"],this.route.data.subscribe(t=>{this.taxGroupsData=t.taxGroups})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTaxGroups()}setTaxGroups(){this.dataSource=new Wt(this.taxGroupsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-tax-groups"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,zkt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Hkt,3,3,"th",9)(13,Gkt,2,1,"td",10),Z(),F(14,jkt,1,0,"tr",11)(15,$kt,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TAXGROUP"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Lkt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Ukt=()=>["../"],Wkt=()=>["edit"];function Qkt(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Wkt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Ykt(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Debit Account Type")," "))}function Jkt(e,o){if(e&1&&(l(0,"div",5),c(1),r()),e&2){let t=w();a(),v(" ",t.taxComponentData.debitAccountType.value," ")}}function Kkt(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Debit Account")," "))}function Xkt(e,o){if(e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2){let t=w();a(),le(" (","labels.inputs.accounting."+t.taxComponentData.debitAccount.glCode,") ",m(2,2,t.taxComponentData.debitAccount.name)," ")}}function Zkt(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Credit Account Type")," "))}function e8t(e,o){if(e&1&&(l(0,"div",5),c(1),p(2,"translateKey"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,t.taxComponentData.creditAccountType.value,"catalogs")," ")}}function t8t(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Credit Account")," "))}function i8t(e,o){if(e&1&&(l(0,"div",5),c(1),r()),e&2){let t=w();a(),le(" (",t.taxComponentData.creditAccount.glCode,") ",t.taxComponentData.creditAccount.name," ")}}var M3=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.taxComponentData=t.taxComponent})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-tax-component"]],decls:35,vars:30,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","layout-lt-md-column"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Qkt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",4),c(12),p(13,"translate"),r(),l(14,"div",5),c(15),p(16,"formatNumber"),r(),E(17,Ykt,3,3,"div",4),E(18,Jkt,2,1,"div",5),E(19,Kkt,3,3,"div",4),E(20,Xkt,3,4,"div",5),E(21,Zkt,3,3,"div",4),E(22,e8t,3,4,"div",5),E(23,t8t,3,3,"div",4),E(24,i8t,2,2,"div",5),l(25,"div",4),c(26),p(27,"translate"),r(),l(28,"div",5),c(29),p(30,"dateFormat"),r()()(),l(31,"div",6)(32,"button",7),c(33),p(34,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TAXCOMPONENT"),a(6),v(" ",m(8,17,"labels.inputs.Name")," "),a(3),v(" ",i.taxComponentData.name," "),a(2),v(" ",m(13,19,"labels.inputs.Percentage")," "),a(3),v("",m(16,21,i.taxComponentData.percentage)," %"),a(2),I(i.taxComponentData.debitAccountType?17:-1),a(),I(i.taxComponentData.debitAccountType?18:-1),a(),I(i.taxComponentData.debitAccount?19:-1),a(),I(i.taxComponentData.debitAccount?20:-1),a(),I(i.taxComponentData.creditAccountType?21:-1),a(),I(i.taxComponentData.creditAccountType?22:-1),a(),I(i.taxComponentData.creditAccount?23:-1),a(),I(i.taxComponentData.creditAccount?24:-1),a(2),v(" ",m(27,23,"labels.inputs.Start Date")," "),a(3),v(" ",m(30,25,i.taxComponentData.startDate)," "),a(3),g("routerLink",oe(29,Ukt)),a(),v(" ",m(34,27,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he,ki,In],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var n8t=()=>["../"];function o8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function a8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function r8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Percentage")," "),a(3),h(m(5,5,"labels.commons.should")),a(2),v(" ",m(7,7,"labels.commons.be larger than 0 and at most 100")," "))}function l8t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"inputs.accounting")," ")}}function s8t(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",8),e&2){let t=w();g("inputFormControl",t.taxComponentForm.controls.debitAccountId)("glAccountList",t.debitAccountData)("required",!1)("inputLabel","Debit Account")}}function c8t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"inputs.accounting")," ")}}function p8t(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",8),e&2){let t=w();g("inputFormControl",t.taxComponentForm.controls.creditAccountId)("glAccountList",t.creditAccountData)("required",!1)("inputLabel","Credit Account")}}function m8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function d8t(e,o){if(e&1&&(l(0,"button",16),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxComponentForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var D3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date,this.maxDate=new Date,this.creditAccountData=[],this.debitAccountData=[],this.route.data.subscribe(t=>{this.taxComponentTemplateData=t.taxComponentTemplate})}ngOnInit(){this.minDate=this.settingsService.minAllowedDate,this.maxDate=this.settingsService.maxAllowedDate,this.createTaxComponentForm(),this.setConditionalControls()}createTaxComponentForm(){this.creditAccountTypeData=this.debitAccountTypeData=this.taxComponentTemplateData.glAccountTypeOptions,this.taxComponentForm=this.formBuilder.group({name:["",ce.required],percentage:["",[ce.required,ce.pattern("^(0*[1-9][0-9]*(\\.[0-9]+)?|0+\\.[0-9]*[1-9][0-9]*)$"),ce.max(100)]],creditAccountType:[""],debitAccountType:[""],startDate:["",ce.required]})}setConditionalControls(){this.taxComponentForm.get("debitAccountType").valueChanges.subscribe(t=>{this.debitAccountData=this.getAccountsData(t),this.taxComponentForm.addControl("debitAccountId",new it("",ce.required))}),this.taxComponentForm.get("creditAccountType").valueChanges.subscribe(t=>{this.creditAccountData=this.getAccountsData(t),this.taxComponentForm.addControl("creditAccountId",new it("",ce.required))})}getAccountsData(t){switch(t){case 1:return this.taxComponentTemplateData.glAccountOptions.assetAccountOptions||[];case 2:return this.taxComponentTemplateData.glAccountOptions.liabilityAccountOptions||[];case 3:return this.taxComponentTemplateData.glAccountOptions.equityAccountOptions||[];case 4:return this.taxComponentTemplateData.glAccountOptions.incomeAccountOptions||[];case 5:return this.taxComponentTemplateData.glAccountOptions.expenseAccountOptions||[]}}submit(){let t=this.taxComponentForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.taxComponentForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.productsService.createTaxComponent(d).subscribe(u=>{this.router.navigate(["../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-tax-component"]],decls:48,vars:32,consts:[["startDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["type","number","matInput","","required","","formControlName","percentage"],["formControlName","debitAccountType"],[3,"value"],[3,"inputFormControl","glAccountList","required","inputLabel"],["formControlName","creditAccountType"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,o8t,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,a8t,7,9,"mat-error"),E(17,r8t,8,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),l(22,"mat-select",6),Se(23,l8t,3,5,"mat-option",7,Pe),r()(),E(25,s8t,1,4,"mifosx-gl-account-selector",8),l(26,"mat-form-field")(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",9),Se(31,c8t,3,5,"mat-option",7,Pe),r()(),E(33,p8t,1,4,"mifosx-gl-account-selector",8),l(34,"mat-form-field",10),R("click",function(){V(s);let u=ve(41);return q(u.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",11)(39,"mat-datepicker-toggle",12)(40,"mat-datepicker",null,0),E(42,m8t,7,9,"mat-error"),r()()(),l(43,"mat-card-actions",13)(44,"button",14),c(45),p(46,"translate"),r(),F(47,d8t,3,4,"button",15),r()()()()}if(n&2){let s=ve(41);a(2),g("formGroup",i.taxComponentForm),a(5),h(m(8,19,"labels.inputs.Name")),a(3),I(i.taxComponentForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,21,"labels.inputs.Percentage")),a(3),I(i.taxComponentForm.controls.percentage.hasError("required")?16:-1),a(),I(i.taxComponentForm.controls.percentage.hasError("pattern")||i.taxComponentForm.controls.percentage.hasError("max")?17:-1),a(3),h(m(21,23,"labels.inputs.Debit Account Type")),a(3),we(i.debitAccountTypeData),a(2),I(i.debitAccountData.length>0?25:-1),a(3),h(m(29,25,"labels.inputs.Credit Account Type")),a(3),we(i.creditAccountTypeData),a(2),I(i.creditAccountData.length>0?33:-1),a(3),h(m(37,27,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.taxComponentForm.controls.startDate.hasError("required")?42:-1),a(2),g("routerLink",oe(31,n8t)),a(),v(" ",m(46,29,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_TAXCOMPONENT")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,ta,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var u8t=()=>["../"];function f8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function h8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function g8t(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Credit Account Type")))}function _8t(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",13),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Credit Account")))}function C8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function v8t(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxComponentForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var fh=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.taxComponentData=t.taxComponent})}ngOnInit(){this.minDate=this.settingsService.minAllowedDate,this.maxDate=this.settingsService.maxAllowedDate,this.editTaxComponent()}editTaxComponent(){let t=this.taxComponentData?.creditAccountType?.value?this.translateService.instant(`labels.inputs.accounting.${this.taxComponentData.creditAccountType.value}`):null,n=this.taxComponentData?.creditAccount?.name??null;this.taxComponentForm=this.formBuilder.group({name:[this.taxComponentData.name,[ce.required]],percentage:[this.taxComponentData.percentage,[ce.required,ce.pattern("^(0*[1-9][0-9]*(\\.[0-9]+)?|0+\\.[0-9]*[1-9][0-9]*)$"),ce.max(100)]],startDate:[this.taxComponentData.startDate&&new Date(this.taxComponentData.startDate)],creditAccountType:[{value:t,disabled:!0}],creditAccount:[{value:n,disabled:!0}]})}submit(){let t=this.taxComponentForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.taxComponentForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.productsService.updateTaxComponent(this.taxComponentData.id,d).subscribe(u=>{this.router.navigate(["../../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-tax-component"]],decls:33,vars:25,consts:[["startDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","percentage"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","creditAccountType"],["matInput","","formControlName","creditAccount"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,f8t,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,h8t,7,9,"mat-error"),r(),E(17,g8t,5,3,"mat-form-field"),E(18,_8t,5,3,"mat-form-field"),l(19,"mat-form-field",6),R("click",function(){V(s);let u=ve(26);return q(u.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",7)(24,"mat-datepicker-toggle",8)(25,"mat-datepicker",null,0),E(27,C8t,7,9,"mat-error"),r()()(),l(28,"mat-card-actions",9)(29,"button",10),c(30),p(31,"translate"),r(),F(32,v8t,3,4,"button",11),r()()()()}if(n&2){let s=ve(26);a(2),g("formGroup",i.taxComponentForm),a(5),h(m(8,16,"labels.inputs.Name")),a(3),I(i.taxComponentForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,18,"labels.inputs.Percentage")),a(3),I(i.taxComponentForm.controls.name.hasError("required")?16:-1),a(),I(!(i.taxComponentData==null||i.taxComponentData.creditAccountType==null)&&i.taxComponentData.creditAccountType.value?17:-1),a(),I(!(i.taxComponentData==null||i.taxComponentData.creditAccount==null)&&i.taxComponentData.creditAccount.name?18:-1),a(3),h(m(22,20,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.taxComponentForm.controls.startDate.hasError("required")?27:-1),a(2),g("routerLink",oe(24,u8t)),a(),v(" ",m(31,22,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_TAXCOMPONENT")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var x8t=()=>["edit"];function b8t(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,x8t)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function y8t(e,o){if(e&1&&(l(0,"div",11),c(1),p(2,"dateFormat"),r()),e&2){let t=w().$implicit;a(),v(" ",m(2,1,t.endDate)," ")}}function S8t(e,o){if(e&1&&(l(0,"div",7)(1,"div",10),c(2),r(),l(3,"div",11),c(4),p(5,"dateFormat"),r(),E(6,y8t,3,3,"div",11),r()),e&2){let t=o.$implicit;a(2),le(" ",t.taxComponent.glCode," ",t.taxComponent.name," "),a(2),v(" ",m(5,4,t.startDate)," "),a(2),I(t.endDate!==void 0||t.endDate!==null?6:-1)}}var E3=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.taxGroupData=t.taxGroup})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-tax-group"]],decls:22,vars:14,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","card-content"],[1,"mat-body-strong","flex-33"],[1,"flex-67"],[1,"mat-body-strong","flex-34"],[1,"layout-row-wrap"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"flex-34"],[1,"flex-33"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,b8t,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",6),c(12),p(13,"translate"),r(),l(14,"div",4),c(15),p(16,"translate"),r(),l(17,"div",4),c(18),p(19,"translate"),r()(),Se(20,S8t,7,6,"div",7,Pe),r()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TAXGROUP"),a(6),v(" ",m(8,6,"labels.inputs.Name")," "),a(3),v(" ",i.taxGroupData.name," "),a(2),v(" ",m(13,8,"labels.inputs.Tax Component")," "),a(3),v(" ",m(16,10,"labels.inputs.Start Date")," "),a(3),v(" ",m(19,12,"labels.inputs.End Date")," "),a(2),we(i.taxGroupData.taxAssociations))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var w8t=()=>[10,25,50,100],P8t=()=>["create"];function T8t(e,o){e&1&&(l(0,"button",18),b(1,"fa-icon",19),c(2," Initiate Dividend "),r()),e&2&&g("routerLink",oe(1,P8t))}function M8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function D8t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productData.name)}}function E8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Dividend Period Start Date")," "))}function I8t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dividendPeriodStartDate))}}function O8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Dividend Period End Date")," "))}function A8t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dividendPeriodEndDate))}}function F8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function k8t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function B8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function R8t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function N8t(e,o){e&1&&b(0,"tr",22)}function L8t(e,o){if(e&1){let t=Y();l(0,"tr",23),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showDividend(i.id,i.status.value))}),r()}}var I3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.displayedColumns=["name","dividendPeriodStartDate","dividendPeriodEndDate","amount","status"],this.route.data.subscribe(t=>{this.dividendData=t.dividends.pageItems})}ngOnInit(){this.setDividends()}setDividends(){this.dataSource=new Wt(this.dividendData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showDividend(t,n){let i={status:n};this.router.navigate([t],{relativeTo:this.route,queryParams:i})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-dividends-share-product"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","dividendPeriodStartDate"],["matColumnDef","dividendPeriodEndDate"],["matColumnDef","amount"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,T8t,3,2,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,M8t,3,3,"th",9)(13,D8t,2,1,"td",10),Z(),X(14,11),F(15,E8t,3,3,"th",9)(16,I8t,3,3,"td",10),Z(),X(17,12),F(18,O8t,3,3,"th",9)(19,A8t,3,3,"td",10),Z(),X(20,13),F(21,F8t,3,3,"th",9)(22,k8t,2,1,"td",10),Z(),X(23,14),F(24,B8t,3,3,"th",9)(25,R8t,2,1,"td",10),Z(),F(26,N8t,1,0,"tr",15)(27,L8t,1,0,"tr",16),r(),b(28,"mat-paginator",17),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_SHAREDIVIDEND"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,w8t)))},dependencies:[Ke,xe,Oe,ke,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function V8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Product Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function q8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Short Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function z8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var qm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductDetailsForm()}ngOnInit(){this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.recurringDepositProductDetailsForm.patchValue({name:this.recurringDepositProductsTemplate.name,shortName:this.recurringDepositProductsTemplate.shortName,description:this.recurringDepositProductsTemplate.description})}createrecurringDepositProductDetailsForm(){this.recurringDepositProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:["",ce.required]})}get recurringDepositProductDetails(){return this.recurringDepositProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-details-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:32,vars:31,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required","",3,"matTooltip"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),E(8,V8t,7,9,"mat-error"),r(),l(9,"mat-form-field",2)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",4),p(14,"translate"),E(15,q8t,7,9,"mat-error"),r(),l(16,"mat-form-field",5)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"textarea",6),p(21,"translate"),E(22,z8t,7,9,"mat-error"),r()(),l(23,"div",7)(24,"button",8),b(25,"fa-icon",9),c(26),p(27,"translate"),r(),l(28,"button",10),c(29),p(30,"translate"),b(31,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.recurringDepositProductDetailsForm),a(4),v("",m(5,15,"labels.inputs.Product Name")," "),a(2),g("matTooltip",Le(m(7,17,"tooltips.Product name is a unique identifier"))),a(2),I(i.recurringDepositProductDetailsForm.controls.name.hasError("required")?8:-1),a(3),h(m(12,19,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(14,21,"tooltips.Short name is a unique identifier"))),a(2),I(i.recurringDepositProductDetailsForm.controls.shortName.hasError("required")?15:-1),a(3),h(m(19,23,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(21,25,"tooltips.Description is used to provide additional information regarding the purpose"))),a(2),I(i.recurringDepositProductDetailsForm.controls.description.hasError("required")?22:-1),a(4),v(" ",m(27,27,"labels.buttons.Previous")," "),a(3),v(" ",m(30,29,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,si,Ln,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function H8t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var zm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductCurrencyForm()}ngOnInit(){this.currencyData=this.recurringDepositProductsTemplate.currencyOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id?this.recurringDepositProductCurrencyForm.patchValue({currencyCode:this.recurringDepositProductsTemplate.currency.code,digitsAfterDecimal:this.recurringDepositProductsTemplate.currency.decimalPlaces,inMultiplesOf:this.recurringDepositProductsTemplate.currency.inMultiplesOf}):this.recurringDepositProductCurrencyForm.patchValue({currencyCode:this.currencyData[0].code,digitsAfterDecimal:2})}createrecurringDepositProductCurrencyForm(){this.recurringDepositProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:[""]})}get recurringDepositProductCurrency(){return this.recurringDepositProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-currency-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:52,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,H8t,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()()(),l(43,"div",7)(44,"button",8),b(45,"fa-icon",9),c(46),p(47,"translate"),r(),l(48,"button",10),c(49),p(50,"translate"),b(51,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.recurringDepositProductCurrencyForm),a(4),h(m(5,21,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,23,"tooltips.The currency in which the deposit will be disbursed"))),a(2),we(i.currencyData),a(3),le(" ",m(12,25,"labels.inputs.Currency")," ",m(13,27,"labels.commons.is")," "),a(4),h(m(16,29,"labels.commons.required")),a(4),h(m(20,31,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,33,"tooltips.Decimal places to be used to track and report"))),a(3),le(" ",m(25,35,"labels.inputs.Decimal Places")," ",m(26,37,"labels.commons.is")," "),a(4),h(m(29,39,"labels.commons.required")),a(4),h(m(33,41,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,43,"tooltips.Enter multiples of currency value"))),a(3),le(" ",m(38,45,"labels.inputs.Currency in multiples of")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(5),v(" ",m(47,51,"labels.buttons.Previous")," "),a(3),v(" ",m(50,53,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function G8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function j8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function $8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function U8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}var Hm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductTermsForm()}ngOnInit(){this.interestCompoundingPeriodTypeData=this.recurringDepositProductsTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.recurringDepositProductsTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.recurringDepositProductsTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.recurringDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.recurringDepositProductTermsForm.patchValue({minDepositAmount:this.recurringDepositProductsTemplate.minDepositAmount,depositAmount:this.recurringDepositProductsTemplate.depositAmount,maxDepositAmount:this.recurringDepositProductsTemplate.maxDepositAmount}),this.recurringDepositProductTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositProductsTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositProductsTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositProductsTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositProductsTemplate.interestCalculationDaysInYearType.id})}createrecurringDepositProductTermsForm(){this.recurringDepositProductTermsForm=this.formBuilder.group({minDepositAmount:[""],depositAmount:["",ce.required],maxDepositAmount:[""],interestCompoundingPeriodType:["",ce.required],interestPostingPeriodType:["",ce.required],interestCalculationType:["",ce.required],interestCalculationDaysInYearType:["",ce.required]})}get recurringDepositProductTerms(){let t=this.recurringDepositProductTermsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-terms-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:94,vars:79,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"flex-31"],["type","number","matInput","","formControlName","minDepositAmount"],["type","number","matInput","","formControlName","depositAmount","required",""],["type","number","matInput","","formControlName","maxDepositAmount"],[1,"flex-98"],[1,"flex-48"],["formControlName","interestCompoundingPeriodType","required",""],[3,"value"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),r(),l(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),r(),l(10,"mat-form-field",3)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",5),l(15,"mat-error"),c(16),p(17,"translate"),p(18,"translate"),p(19,"translate"),l(20,"strong"),c(21),p(22,"translate"),r()()(),l(23,"mat-form-field",3)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",6),r(),b(28,"mat-divider",7),l(29,"mat-form-field",8)(30,"mat-label"),c(31),p(32,"translate"),r(),l(33,"mat-select",9),Se(34,G8t,2,2,"mat-option",10,Pe),r(),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()(),l(43,"mat-form-field",8)(44,"mat-label"),c(45),p(46,"translate"),r(),l(47,"mat-select",11),Se(48,j8t,2,2,"mat-option",10,Pe),r(),l(50,"mat-error"),c(51),p(52,"translate"),p(53,"translate"),l(54,"strong"),c(55),p(56,"translate"),r()()(),l(57,"mat-form-field",8)(58,"mat-label"),c(59),p(60,"translate"),r(),l(61,"mat-select",12),Se(62,$8t,2,2,"mat-option",10,Pe),r(),l(64,"mat-error"),c(65),p(66,"translate"),p(67,"translate"),l(68,"strong"),c(69),p(70,"translate"),r()()(),l(71,"mat-form-field",8)(72,"mat-label"),c(73),p(74,"translate"),r(),l(75,"mat-select",13),Se(76,U8t,2,2,"mat-option",10,Pe),r(),l(78,"mat-error"),c(79),p(80,"translate"),p(81,"translate"),l(82,"strong"),c(83),p(84,"translate"),r()()()(),l(85,"div",14)(86,"button",15),b(87,"fa-icon",16),c(88),p(89,"translate"),r(),l(90,"button",17),c(91),p(92,"translate"),b(93,"fa-icon",18),r()()()),n&2&&(g("formGroup",i.recurringDepositProductTermsForm),a(3),h(m(4,27,"labels.inputs.Deposit Amount")),a(4),h(m(8,29,"labels.inputs.Minimum")),a(5),h(m(13,31,"labels.inputs.Default")),a(4),ea(" ",m(17,33,"labels.inputs.Default")," ",m(18,35,"labels.inputs.Deposit Amount")," ",m(19,37,"labels.commons.is")," "),a(5),h(m(22,39,"labels.commons.required")),a(4),h(m(26,41,"labels.inputs.Maximum")),a(6),h(m(32,43,"labels.inputs.Interest Compounding Period")),a(3),we(i.interestCompoundingPeriodTypeData),a(3),le(" ",m(38,45,"labels.inputs.Interest Compounding Period")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(4),h(m(46,51,"labels.inputs.Interest Posting Period")),a(3),we(i.interestPostingPeriodTypeData),a(3),le(" ",m(52,53,"labels.inputs.Interest Posting Period")," ",m(53,55,"labels.commons.is")," "),a(4),h(m(56,57,"labels.commons.required")),a(4),h(m(60,59,"labels.inputs.Interest Calculated using")),a(3),we(i.interestCalculationTypeData),a(3),le(" ",m(66,61,"labels.inputs.Interest Calculated using")," ",m(67,63,"labels.commons.is")," "),a(4),h(m(70,65,"labels.commons.required")),a(4),h(m(74,67,"labels.inputs.Days in Year")),a(3),we(i.interestCalculationDaysInYearTypeData),a(3),le(" ",m(80,69,"labels.inputs.Days in Year")," ",m(81,71,"labels.commons.is")," "),a(4),h(m(84,73,"labels.commons.required")),a(5),v(" ",m(89,75,"labels.buttons.Previous")," "),a(3),v(" ",m(92,77,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function W8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Q8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Y8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function J8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function K8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function X8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Z8t(e,o){if(e&1&&(l(0,"mat-form-field",6)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",27),Se(5,X8t,2,2,"mat-option",9,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Tax Group")),a(3),we(t.taxGroupData),a(3),le(" ",m(9,6,"labels.inputs.Tax Group")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}var Gm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.lockinPeriodFrequencyTypeData=this.recurringDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.recurringDepositProductsTemplate.periodFrequencyTypeOptions.slice(0,-1),this.preClosurePenalInterestOnTypeData=this.recurringDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,this.taxGroupData=this.recurringDepositProductsTemplate.taxGroupOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.recurringDepositProductSettingsForm.patchValue({isMandatoryDeposit:this.recurringDepositProductsTemplate.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:this.recurringDepositProductsTemplate.adjustAdvanceTowardsFuturePayments,allowWithdrawal:this.recurringDepositProductsTemplate.allowWithdrawal,lockinPeriodFrequency:this.recurringDepositProductsTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositProductsTemplate.lockinPeriodFrequencyType?this.recurringDepositProductsTemplate.lockinPeriodFrequencyType.id:"",minDepositTerm:this.recurringDepositProductsTemplate.minDepositTerm,minDepositTermTypeId:this.recurringDepositProductsTemplate.minDepositTermType?this.recurringDepositProductsTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.recurringDepositProductsTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.recurringDepositProductsTemplate.inMultiplesOfDepositTermType?this.recurringDepositProductsTemplate.inMultiplesOfDepositTerm.id:"",maxDepositTerm:this.recurringDepositProductsTemplate.maxDepositTerm,maxDepositTermTypeId:this.recurringDepositProductsTemplate.maxDepositTermType?this.recurringDepositProductsTemplate.minDepositTermType.id:"",preClosurePenalApplicable:this.recurringDepositProductsTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.recurringDepositProductsTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.recurringDepositProductsTemplate.preClosurePenalInterestOnType?this.recurringDepositProductsTemplate.preClosurePenalInterestOnType.id:"",withHoldTax:this.recurringDepositProductsTemplate.withHoldTax}),this.recurringDepositProductsTemplate.withHoldTax&&this.recurringDepositProductSettingsForm.patchValue({taxGroupId:this.recurringDepositProductsTemplate.taxGroup?this.recurringDepositProductsTemplate.taxGroup.id:""})}createrecurringDepositProductSettingsForm(){this.recurringDepositProductSettingsForm=this.formBuilder.group({isMandatoryDeposit:[!1],adjustAdvanceTowardsFuturePayments:[!1],allowWithdrawal:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:["",ce.required],minDepositTermTypeId:["",ce.required],inMultiplesOfDepositTerm:[""],inMultiplesOfDepositTermTypeId:[""],maxDepositTerm:[""],maxDepositTermTypeId:[""],preClosurePenalApplicable:[!1],preClosurePenalInterest:[""],preClosurePenalInterestOnTypeId:[""],withHoldTax:[!1]})}setConditionalControls(){this.recurringDepositProductSettingsForm.get("withHoldTax").valueChanges.subscribe(t=>{t?this.recurringDepositProductSettingsForm.addControl("taxGroupId",new it("",ce.required)):this.recurringDepositProductSettingsForm.removeControl("taxGroupId")})}get recurringDepositProductSettings(){let t=this.recurringDepositProductSettingsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-settings-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:122,vars:102,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["labelPosition","before","formControlName","isMandatoryDeposit",1,"margin-v","flex-48"],["labelPosition","before","formControlName","adjustAdvanceTowardsFuturePayments",1,"flex-48","margin-v"],["labelPosition","before","formControlName","allowWithdrawal",1,"margin-v","flex-48"],[1,"mat-h4","flex-98"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency",3,"matTooltip"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","minDepositTerm","required","",3,"matTooltip"],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm",3,"matTooltip"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm",3,"matTooltip"],["formControlName","maxDepositTermTypeId"],[1,"flex-98"],[1,"mat-h4","flex-23"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["labelPosition","before","formControlName","withHoldTax",1,"margin-v","flex-48"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","taxGroupId","required",""]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-checkbox",2),c(3),p(4,"translate"),r(),l(5,"mat-checkbox",3),c(6),p(7,"translate"),r(),l(8,"mat-checkbox",4),c(9),p(10,"translate"),r(),l(11,"h4",5),c(12),p(13,"translate"),r(),l(14,"mat-form-field",6)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",7),p(19,"translate"),r(),l(20,"mat-form-field",6)(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",8),Se(25,W8t,2,2,"mat-option",9,Pe),r()(),l(27,"h4",5),c(28),p(29,"translate"),r(),l(30,"mat-form-field",6)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",10),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()(),l(43,"mat-form-field",6)(44,"mat-label"),c(45),p(46,"translate"),r(),l(47,"mat-select",11),Se(48,Q8t,2,2,"mat-option",9,Pe),r(),l(50,"mat-error"),c(51),p(52,"translate"),p(53,"translate"),l(54,"strong"),c(55),p(56,"translate"),r()()(),l(57,"h4",5),c(58),p(59,"translate"),r(),l(60,"mat-form-field",6)(61,"mat-label"),c(62),p(63,"translate"),r(),b(64,"input",12),p(65,"translate"),r(),l(66,"mat-form-field",6)(67,"mat-label"),c(68),p(69,"translate"),r(),l(70,"mat-select",13),Se(71,Y8t,2,2,"mat-option",9,Pe),r()(),l(73,"h4",5),c(74),p(75,"translate"),r(),l(76,"mat-form-field",6)(77,"mat-label"),c(78),p(79,"translate"),r(),b(80,"input",14),p(81,"translate"),r(),l(82,"mat-form-field",6)(83,"mat-label"),c(84),p(85,"translate"),r(),l(86,"mat-select",15),Se(87,J8t,2,2,"mat-option",9,Pe),r()(),b(89,"mat-divider",16),l(90,"h4",17),c(91),p(92,"translate"),r(),l(93,"mat-checkbox",18),c(94),p(95,"translate"),r(),l(96,"mat-form-field",6)(97,"mat-label"),c(98),p(99,"translate"),r(),b(100,"input",19),r(),l(101,"mat-form-field",6)(102,"mat-label"),c(103),p(104,"translate"),r(),l(105,"mat-select",20),Se(106,K8t,2,2,"mat-option",9,Pe),r()(),b(108,"mat-divider",16),l(109,"mat-checkbox",21),c(110),p(111,"translate"),r(),E(112,Z8t,14,12,"mat-form-field",6),r(),l(113,"div",22)(114,"button",23),b(115,"fa-icon",24),c(116),p(117,"translate"),r(),l(118,"button",25),c(119),p(120,"translate"),b(121,"fa-icon",26),r()()()),n&2&&(g("formGroup",i.recurringDepositProductSettingsForm),a(3),v(" ",m(4,38,"labels.inputs.Is Mandatory Deposit")," "),a(3),v(" ",m(7,40,"labels.inputs.Adjust advance payments toward future installments")," "),a(3),v(" ",m(10,42,"labels.inputs.Allow Withdrawals")," "),a(3),h(m(13,44,"labels.inputs.Lock-in Period")),a(4),h(m(17,46,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(19,48,"tooltips.The number at which lock in period occurs"))),a(4),h(m(23,50,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(3),h(m(29,52,"labels.inputs.Minimum Deposit Term")),a(4),h(m(33,54,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(35,56,"tooltips.The number at which minimum deposit occurs"))),a(3),le(" ",m(38,58,"labels.inputs.Minimum Deposit Term Frequency")," ",m(39,60,"labels.commons.is")," "),a(4),h(m(42,62,"labels.commons.required")),a(4),h(m(46,64,"labels.inputs.Frequency Type")),a(3),we(i.periodFrequencyTypeData),a(3),le(" ",m(52,66,"labels.inputs.Minimum Deposit Term Frequency Type")," ",m(53,68,"labels.commons.is")," "),a(4),h(m(56,70,"labels.commons.required")),a(3),h(m(59,72,"labels.heading.And thereafter, in Multiples of")),a(4),h(m(63,74,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(65,76,"tooltips.The number at which multiple deposits occurs"))),a(4),h(m(69,78,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(3),h(m(75,80,"labels.inputs.Maximum Deposit Term")),a(4),h(m(79,82,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(81,84,"tooltips.The number at which minimum deposit occurs"))),a(4),h(m(85,86,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(4),h(m(92,88,"labels.heading.For Pre-mature closure")),a(3),v(" ",m(95,90,"labels.inputs.Apply Penal Interest (less)")," "),a(4),v("",m(99,92,"labels.inputs.Penal Interest")," (%)"),a(5),h(m(104,94,"labels.inputs.Period")),a(3),we(i.preClosurePenalInterestOnTypeData),a(4),v(" ",m(111,96,"labels.inputs.Is Withhold Tax Applicable")," "),a(2),I(i.recurringDepositProductSettingsForm.value.withHoldTax?112:-1),a(4),v(" ",m(117,98,"labels.buttons.Previous")," "),a(3),v(" ",m(120,100,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function eBt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tBt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iBt(e,o){e&1&&(l(0,"div",30)(1,"h3",32),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.heading.It is required to add at least one Slab")))}function nBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function oBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.periodTypeData,"id","value")," ")}}function aBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function rBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function lBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function sBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.annualInterestRate," ")}}function cBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function pBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function mBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function dBt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",50),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function uBt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",51),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function fBt(e,o){if(e&1){let t=Y();l(0,"td",45)(1,"button",46),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.editChartSlab(s.controls.chartSlabs,i))}),b(2,"fa-icon",47),r(),l(3,"button",48),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.delete(s.controls.chartSlabs,i))}),b(4,"fa-icon",18),r(),l(5,"button",49),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w();return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(6,dBt,4,3,"span"),E(7,uBt,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2).$index,i=w();a(6),I(i.expandChartSlabIndex[n]!==t?6:-1),a(),I(i.expandChartSlabIndex[n]===t?7:-1)}}function hBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function gBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.entityTypeData,"id","value")," ")}}function _Bt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function CBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.attributeNameData,"id","value")," ")}}function vBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function xBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.conditionTypeData,"id","value")," ")}}function bBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function yBt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.genderData,"id","name"))}}function SBt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function wBt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientTypeData,"id","name"))}}function PBt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientClassificationData,"id","name"))}}function TBt(e,o){if(e&1&&(l(0,"td",45),E(1,yBt,3,6,"span")(2,SBt,2,1,"span")(3,wBt,3,6,"span")(4,PBt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function MBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function DBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.incentiveTypeData,"id","value")," ")}}function EBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function IBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function OBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ABt(e,o){if(e&1){let t=Y();l(0,"td",45)(1,"button",46),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.editIncentive(u.getIncentives(d.controls.chartSlabs,s),i))}),b(2,"fa-icon",47),r(),l(3,"button",48),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.delete(u.getIncentives(d.controls.chartSlabs,s),i))}),b(4,"fa-icon",18),r()()}}function FBt(e,o){e&1&&b(0,"tr",64)}function kBt(e,o){e&1&&b(0,"tr",65)}function BBt(e,o){if(e&1&&(l(0,"table",57),X(1,58),F(2,hBt,3,3,"th",34)(3,gBt,3,6,"td",35),Z(),X(4,59),F(5,_Bt,3,3,"th",34)(6,CBt,3,6,"td",35),Z(),X(7,60),F(8,vBt,3,3,"th",34)(9,xBt,3,6,"td",35),Z(),X(10,61),F(11,bBt,3,3,"th",34)(12,TBt,5,1,"td",35),Z(),X(13,62),F(14,MBt,3,3,"th",34)(15,DBt,3,6,"td",35),Z(),X(16,63),F(17,EBt,3,3,"th",34)(18,IBt,2,1,"td",35),Z(),X(19,39),F(20,OBt,3,3,"th",34)(21,ABt,5,0,"td",35),Z(),F(22,FBt,1,0,"tr",41)(23,kBt,1,0,"tr",42),r()),e&2){let t=w().$implicit,n=w(3);g("dataSource",t.incentives),a(22),g("matHeaderRowDef",n.incentivesDisplayedColumns),a(),g("matRowDefColumns",n.incentivesDisplayedColumns)}}function RBt(e,o){if(e&1){let t=Y();l(0,"td",45)(1,"div",52)(2,"mat-card",53)(3,"h4",54),c(4),p(5,"translate"),r(),l(6,"div",55)(7,"button",56),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.addIncentive(d.getIncentives(s.controls.chartSlabs,i)))}),b(8,"fa-icon",7),c(9),p(10,"translate"),r()(),E(11,BBt,24,3,"table",57),r()()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w();Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,5,"labels.heading.Incentives")," "),a(5),v(" ",m(10,7,"labels.buttons.Add")," "),a(2),I(t.incentives.length?11:-1)}}function NBt(e,o){e&1&&b(0,"tr",64)}function LBt(e,o){e&1&&b(0,"tr",65)}function VBt(e,o){e&1&&b(0,"tr",66)}function qBt(e,o){if(e&1&&(l(0,"table",31),X(1,33),F(2,nBt,3,3,"th",34)(3,oBt,3,6,"td",35),Z(),X(4,36),F(5,aBt,3,3,"th",34)(6,rBt,2,1,"td",35),Z(),X(7,37),F(8,lBt,3,3,"th",34)(9,sBt,2,1,"td",35),Z(),X(10,38),F(11,cBt,3,3,"th",34)(12,pBt,2,1,"td",35),Z(),X(13,39),F(14,mBt,3,3,"th",34)(15,fBt,8,2,"td",35),Z(),X(16,40),F(17,RBt,12,9,"td",35),Z(),F(18,NBt,1,0,"tr",41)(19,LBt,1,0,"tr",42)(20,VBt,1,0,"tr",43),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w();g("dataSource",n.value.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function zBt(e,o){if(e&1){let t=Y();l(0,"div",8),b(1,"mat-divider",14),l(2,"div",15)(3,"div",16)(4,"button",17),p(5,"translate"),R("click",function(){let i=V(t).$index,s=w();return q(s.delete(s.charts,i))}),b(6,"fa-icon",18),r()(),l(7,"mat-form-field",19)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",20),E(12,eBt,7,9,"mat-error"),r(),l(13,"mat-form-field",21)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"textarea",22),E(18,tBt,7,9,"mat-error"),r(),l(19,"mat-form-field",23),R("click",function(){V(t);let i=ve(26);return q(i.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",24)(24,"mat-datepicker-toggle",25)(25,"mat-datepicker",null,0),l(27,"mat-error"),c(28),p(29,"translate"),p(30,"translate"),l(31,"strong"),c(32),p(33,"translate"),r()()(),l(34,"mat-form-field",23),R("click",function(){V(t);let i=ve(41);return q(i.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",26)(39,"mat-datepicker-toggle",25)(40,"mat-datepicker",null,1),r(),l(42,"div",27)(43,"mat-checkbox",28),c(44),p(45,"translate"),r()(),l(46,"div",29)(47,"button",6),R("click",function(){let i=V(t).$implicit,s=w();return q(s.addChartSlab(i.controls.chartSlabs))}),b(48,"fa-icon",7),c(49),p(50,"translate"),r()(),E(51,iBt,4,3,"div",30),E(52,qBt,21,4,"table",31),r()()}if(e&2){let t,n,i=o.$implicit,s=o.$index,d=ve(26),u=ve(41),f=w();a(2),g("formGroupName",s),a(2),g("matTooltip",Le(m(5,24,"tooltips.Delete Interest Rate Chart"))),a(5),h(m(10,26,"labels.inputs.Name")),a(3),I((t=i.get("name"))!=null&&t.touched&&((t=i.get("name"))!=null&&t.hasError("required"))?12:-1),a(3),h(m(16,28,"labels.inputs.Description")),a(3),I((n=i.get("description"))!=null&&n.touched&&((n=i.get("description"))!=null&&n.hasError("required"))?18:-1),a(3),h(m(22,30,"labels.inputs.From Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",d),a(),g("for",d),a(4),le(" ",m(29,32,"labels.inputs.From Date")," ",m(30,34,"labels.commons.is")," "),a(4),h(m(33,36,"labels.commons.required")),a(4),h(m(37,38,"labels.inputs.End Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",u),a(),g("for",u),a(5),v(" ",m(45,40,"labels.inputs.Is primary grouping by amount?")," "),a(5),v(" ",m(50,42,"labels.buttons.Add Slab")," "),a(2),I(i.value.chartSlabs.length===0?51:-1),a(),I(i.value.chartSlabs.length!==0?52:-1)}}var jm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.chartSlabsDisplayedColumns=[],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount","actions"],this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.expandChartSlabIndex=[],this.chartDetailData=[],this.chartsDetail=[],this.createrecurringDepositProductInterestRateChartForm()}ngOnInit(){this.periodTypeData=this.recurringDepositProductsTemplate.chartTemplate.periodTypes,this.entityTypeData=this.recurringDepositProductsTemplate.chartTemplate.entityTypeOptions,this.attributeNameData=this.recurringDepositProductsTemplate.chartTemplate.attributeNameOptions,this.conditionTypeData=this.recurringDepositProductsTemplate.chartTemplate.conditionTypeOptions,this.genderData=this.recurringDepositProductsTemplate.chartTemplate.genderOptions,this.clientTypeData=this.recurringDepositProductsTemplate.chartTemplate.clientTypeOptions,this.clientClassificationData=this.recurringDepositProductsTemplate.chartTemplate.clientClassificationOptions,this.incentiveTypeData=this.recurringDepositProductsTemplate.chartTemplate.incentiveTypeOptions,this.recurringDepositProductsTemplate!==void 0&&this.assignFormData()}assignFormData(){this.addChart();let t=Array.isArray(this.recurringDepositProductsTemplate.activeChart);this.recurringDepositProductsTemplate.activeChart&&(t?this.chartDetailData=this.recurringDepositProductsTemplate.activeChart:this.chartDetailData.push(this.recurringDepositProductsTemplate.activeChart)),this.getChartsDetailsData(),this.charts.controls.forEach((n,i)=>{this.chartsDetail[i]&&this.chartsDetail[i].chartSlabs.forEach((s,d)=>{let u=this.formBuilder.group({id:[s.id],amountRangeFrom:[s.amountRangeFrom],amountRangeTo:[s.amountRangeTo],annualInterestRate:[s.annualInterestRate,ce.required],description:[s.description,ce.required],fromPeriod:[s.fromPeriod,ce.required],toPeriod:[s.toPeriod],periodType:[s.periodType,ce.required],incentives:this.formBuilder.array([])});n.controls.chartSlabs.push(u);let _=n.controls.chartSlabs.controls[d];this.chartsDetail[i].chartSlabs[d].incentives.forEach(C=>{let x=this.formBuilder.group({amount:[C.amount,ce.required],attributeName:[C.attributeName,ce.required],attribureValue:[C.attribureValue,ce.required],conditionType:[C.conditionType,ce.required],entityType:[C.entityType,ce.required],incentiveType:[C.incentiveType,ce.required]});_.controls.incentives.push(x)})})})}getChartsDetailsData(){this.chartDetailData.forEach(t=>{let n={endDate:t.endDate?new Date(t.endDate):"",fromDate:t.fromDate?new Date(t.fromDate):"",isPrimaryGroupingByAmount:t.isPrimaryGroupingByAmount,name:t.name,chartSlabs:this.getChartSlabsData(t)};t.id&&(n.id=t.id),this.chartsDetail.push(n)}),this.recurringDepositProductInterestRateChartForm.patchValue({charts:this.chartsDetail})}getChartSlabsData(t){let n=[],i=[];return Array.isArray(t.chartSlabs)?i=t.chartSlabs:i.push(t.chartSlabs),i.forEach(d=>{let u={periodType:d.periodType.id,amountRangeFrom:d.amountRangeFrom,amountRangeTo:d.amountRangeTo,annualInterestRate:d.annualInterestRate,description:d.description?d.description:"",fromPeriod:d.fromPeriod,toPeriod:d.toPeriod,incentives:this.getIncentivesData(i)};d.id&&(u.id=d.id),n.push(u)}),n}getIncentivesData(t){let n=[],i=[];return t.incentives&&(Array.isArray(t.incentives)?i=t.incentives:i.push(t.incentives),i.forEach(d=>{let u={amount:d.amount,attributeName:d.attributeName,attributeValue:d.attributeValue,conditionType:d.conditionType,entityType:d.entityType,incentiveType:d.incentiveType};n.push(u)})),n}createrecurringDepositProductInterestRateChartForm(){this.recurringDepositProductInterestRateChartForm=this.formBuilder.group({charts:this.formBuilder.array([])})}get charts(){return this.recurringDepositProductInterestRateChartForm.get("charts")}createChartForm(){return this.formBuilder.group({id:[null],name:[""],description:[""],fromDate:["",ce.required],endDate:[""],isPrimaryGroupingByAmount:[!1],chartSlabs:this.formBuilder.array([],ce.required)})}addChart(){this.charts.push(this.createChartForm()),this.setConditionalControls(this.charts.length-1)}setConditionalControls(t){this.chartSlabsDisplayedColumns[t]=["period","amountRange","annualInterestRate","description","actions"],this.charts.at(t).get("isPrimaryGroupingByAmount").valueChanges.subscribe(n=>{this.chartSlabsDisplayedColumns[t]=n?["amountRange","period"]:["period","amountRange"],this.chartSlabsDisplayedColumns[t].push("annualInterestRate","description","actions")})}getIncentives(t,n){return t.at(n).get("incentives")}addChartSlab(t){let n=at({},this.getData("Slab"));this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(s.data.addControl("incentives",this.formBuilder.array([])),t.push(s.data))})}addIncentive(t){let n=qt(at({},this.getData("Incentive")),{entityType:this.entityTypeData[0].id});this.dialog.open(Bm,{data:n}).afterClosed().subscribe(s=>{s.data&&t.push(s.data)})}editChartSlab(t,n){let i=qt(at({},this.getData("Slab",t.at(n).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}editIncentive(t,n){let i=qt(at({},this.getData("Incentive",t.at(n).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(Bm,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"Slab":return{title:this.translateService.instant("labels.inputs.Slab"),formfields:this.getSlabFormfields(n)};case"Incentive":return{values:n,chartTemplate:this.recurringDepositProductsTemplate.chartTemplate}}}getSlabFormfields(t){return[new $i({controlName:"periodType",label:this.translateService.instant("labels.inputs.Period Type"),value:t?t.periodType:this.periodTypeData[0].id,options:{label:"value",value:"id",data:this.periodTypeData},required:!0,order:1}),new vn({controlName:"fromPeriod",label:this.translateService.instant("labels.inputs.Period From"),value:t?t.fromPeriod:void 0,type:"number",required:!0,order:2}),new vn({controlName:"toPeriod",label:this.translateService.instant("labels.inputs.Period To"),value:t?t.toPeriod:void 0,type:"number",order:3}),new vn({controlName:"amountRangeFrom",label:this.translateService.instant("labels.inputs.Amount Range From"),value:t?t.amountRangeFrom:void 0,type:"number",order:4}),new vn({controlName:"amountRangeTo",label:this.translateService.instant("labels.inputs.Amount Range To"),value:t?t.amountRangeTo:void 0,type:"number",order:5}),new vn({controlName:"annualInterestRate",label:this.translateService.instant("labels.inputs.Interest"),value:t?t.annualInterestRate:void 0,type:"number",required:!0,order:6}),new vn({controlName:"description",label:this.translateService.instant("labels.inputs.Description"),value:t?t.description:void 0,required:!0,order:7})]}get recurringDepositProductInterestRateChart(){let t="YYYY-MM-DD",n=this.settingsService.language.code,i=this.recurringDepositProductInterestRateChartForm.value;for(let s of i.charts)s.locale=n,s.dateFormat="yyyy-MM-dd",s.fromDate instanceof Date&&(s.fromDate=this.dateUtils.formatDateAsString(s.fromDate,t)),s.endDate&&s.endDate instanceof Date&&(s.endDate=this.dateUtils.formatDateAsString(s.endDate,t)),s.endDate===""&&delete s.endDate,s.description===""&&delete s.description,s.id===null&&delete s.id;return i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-interest-rate-chart-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:21,vars:13,consts:[["validFromDatePicker",""],["endDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h3","flex-83"],[1,"flex-13","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["formArrayName","charts",1,"flex-fill","layout-row-wrap","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","responsive-column",3,"formGroupName"],["align","end",1,"flex-100"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],[1,"flex-28","m-r-5"],["matInput","","formControlName","name","required",""],[1,"flex-70"],["matInput","","formControlName","description","required",""],[1,"flex-48","m-r-5",3,"click"],["matInput","","formControlName","fromDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"flex-31","layout-row","align-between","align-items-center"],["labelPosition","before","formControlName","isPrimaryGroupingByAmount"],[1,"center","flex-100"],[1,"flex-100"],["mat-table","","multiTemplateDataRows","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"mat-h3"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","layout-row-wrap","flex-fill"],[1,"layout-row-wrap","flex-fill"],[1,"mat-h4","flex-83"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,i){n&1&&(l(0,"form",2)(1,"div",3)(2,"h3",4),c(3),p(4,"translate"),r(),l(5,"div",5)(6,"button",6),R("click",function(){return i.addChart()}),b(7,"fa-icon",7),c(8),p(9,"translate"),r()(),Se(10,zBt,53,44,"div",8,Pe),r(),l(12,"div",9)(13,"button",10),b(14,"fa-icon",11),c(15),p(16,"translate"),r(),l(17,"button",12),c(18),p(19,"translate"),b(20,"fa-icon",13),r()()()),n&2&&(g("formGroup",i.recurringDepositProductInterestRateChartForm),a(3),h(m(4,5,"labels.heading.Interest Rate Charts")),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(2),we(i.charts.controls),a(5),v(" ",m(16,9,"labels.buttons.Previous")," "),a(3),v(" ",m(19,11,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,La,Ue,Fe,Be,ut,ai,ze,mi,di,pi,xe,fi,ke,Ri,wi,si,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{margin:.5em 0 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function HBt(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function GBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function jBt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function $Bt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function UBt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function WBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function QBt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function YBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function JBt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function KBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function XBt(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function ZBt(e,o){e&1&&b(0,"tr",26)}function eRt(e,o){e&1&&b(0,"tr",27)}var $m=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"]}ngOnInit(){this.chargeData=this.recurringDepositProductsTemplate.chargeOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id?this.chargesDataSource=this.recurringDepositProductsTemplate.charges:this.chargesDataSource=[],this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value=""}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]))})}get recurringDepositProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-charges-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,HBt,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,GBt,3,3,"th",9)(18,jBt,2,1,"td",10),Z(),X(19,11),F(20,$Bt,3,3,"th",9)(21,UBt,2,1,"td",10),Z(),X(22,12),F(23,WBt,3,3,"th",9)(24,QBt,2,1,"td",10),Z(),X(25,13),F(26,YBt,3,3,"th",9)(27,JBt,2,1,"td",10),Z(),X(28,14),F(29,KBt,3,3,"th",9)(30,XBt,3,0,"td",10),Z(),F(31,ZBt,1,0,"tr",15)(32,eRt,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ac],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function tRt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function iRt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.recurringDepositProductAccountingForm.controls.feesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable")}}function nRt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.recurringDepositProductAccountingForm.controls.penaltiesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function oRt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.recurringDepositProductAccountingForm.controls.interestPayableAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Interest Payable")}}function aRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function rRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function lRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function sRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.assetAccountData,"id","name")," ")}}function cRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function pRt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete(s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",35),r()()}}function mRt(e,o){e&1&&b(0,"tr",36)}function dRt(e,o){e&1&&b(0,"tr",37)}function uRt(e,o){if(e&1&&(l(0,"table",21),X(1,23),F(2,aRt,3,3,"th",24)(3,rRt,3,6,"td",25),Z(),X(4,26),F(5,lRt,3,3,"th",24)(6,sRt,3,6,"td",25),Z(),X(7,27),F(8,cRt,3,3,"th",24)(9,pRt,5,0,"td",25),Z(),F(10,mRt,1,0,"tr",28)(11,dRt,1,0,"tr",29),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function fRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function hRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function gRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function _Rt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function CRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function vRt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function xRt(e,o){e&1&&b(0,"tr",36)}function bRt(e,o){e&1&&b(0,"tr",37)}function yRt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,fRt,3,3,"th",24)(3,hRt,3,6,"td",25),Z(),X(4,39),F(5,gRt,3,3,"th",24)(6,_Rt,3,6,"td",25),Z(),X(7,27),F(8,CRt,3,3,"th",24)(9,vRt,5,0,"td",25),Z(),F(10,xRt,1,0,"tr",28)(11,bRt,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function SRt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),r(),l(4,"div",18)(5,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(6,"fa-icon",20),c(7),p(8,"translate"),r()(),E(9,yRt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),h(m(3,3,"labels.heading.Map Fees to Specific Income Accounts")),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.feeToIncomeAccountMappings.value.length!==0?9:-1)}}function wRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function PRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function TRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function MRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function DRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ERt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function IRt(e,o){e&1&&b(0,"tr",36)}function ORt(e,o){e&1&&b(0,"tr",37)}function ARt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,wRt,3,3,"th",24)(3,PRt,3,6,"td",25),Z(),X(4,39),F(5,TRt,3,3,"th",24)(6,MRt,3,6,"td",25),Z(),X(7,27),F(8,DRt,3,3,"th",24)(9,ERt,5,0,"td",25),Z(),F(10,IRt,1,0,"tr",28)(11,ORt,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function FRt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),r(),l(4,"div",18)(5,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(6,"fa-icon",20),c(7),p(8,"translate"),r()(),E(9,ARt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),v(" ",m(3,3,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?9:-1)}}function kRt(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"div",16)(2,"h4",17),c(3),p(4,"translate"),r(),l(5,"div",18)(6,"button",19),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(7,"fa-icon",20),c(8),p(9,"translate"),r()(),E(10,uRt,12,3,"table",21),r(),E(11,SRt,10,7,"div",22),E(12,FRt,10,7,"div",22),r()}if(e&2){let t=w(2);a(3),v(" ",m(4,5,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(2),I(t.paymentChannelToFundSourceMappings.value.length!==0?10:-1),a(),I(t.existCharges()?11:-1),a(),I(t.existCharges()?12:-1)}}function BRt(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12),E(5,iRt,1,4,"mifosx-gl-account-selector",12),E(6,nRt,1,4,"mifosx-gl-account-selector",12),b(7,"mat-divider",4),l(8,"h4",11),c(9),p(10,"translate"),r(),b(11,"mifosx-gl-account-selector",12)(12,"mifosx-gl-account-selector",12),E(13,oRt,1,4,"mifosx-gl-account-selector",12),b(14,"mat-divider",4),l(15,"h4",11),c(16),p(17,"translate"),r(),b(18,"mifosx-gl-account-selector",12)(19,"mat-divider",4),l(20,"h4",11),c(21),p(22,"translate"),r(),b(23,"mifosx-gl-account-selector",12)(24,"mifosx-gl-account-selector",12)(25,"mat-divider",4),l(26,"h3",13),c(27),p(28,"translate"),r(),b(29,"mat-checkbox",14),E(30,kRt,13,9,"div",15),r()),e&2){let t=w();a(2),h(m(3,33,"labels.heading.Assets")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.savingsReferenceAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Saving reference"),a(),I(t.isAccrualAccounting()?5:-1),a(),I(t.isAccrualAccounting()?6:-1),a(3),h(m(10,35,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.savingsControlAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Saving control"),a(),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Savings transfers in suspense"),a(),I(t.isAccrualAccounting()?13:-1),a(3),h(m(17,37,"labels.heading.Expenses")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.interestOnSavingsAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Interest on savings"),a(3),h(m(22,39,"labels.heading.Income")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(3),h(m(28,41,"labels.heading.Advanced Accounting Rules")),a(3),I(t.recurringDepositProductAccountingForm.value.advancedAccountingRules?30:-1)}}var Um=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.accounting=T(To),this.translateService=T(yi),this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.createrecurringDepositProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.chargeData=this.recurringDepositProductsTemplate.chargeOptions||[],this.penaltyData=this.recurringDepositProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.recurringDepositProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.assignAccountingStepData()}assignAccountingStepData(){this.recurringDepositProductAccountingForm.patchValue({accountingRule:this.recurringDepositProductsTemplate.accountingRule.id}),this.isCashOrAccrualAccounting()&&(this.recurringDepositProductAccountingForm.patchValue({savingsReferenceAccountId:this.recurringDepositProductsTemplate.accountingMappings.savingsReferenceAccount.id,savingsControlAccountId:this.recurringDepositProductsTemplate.accountingMappings.savingsControlAccount.id,transfersInSuspenseAccountId:this.recurringDepositProductsTemplate.accountingMappings.transfersInSuspenseAccount.id,incomeFromFeeAccountId:this.recurringDepositProductsTemplate.accountingMappings.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:this.recurringDepositProductsTemplate.accountingMappings.incomeFromPenaltyAccount.id,interestOnSavingsAccountId:this.recurringDepositProductsTemplate.accountingMappings.interestOnSavingsAccount.id}),this.isAccrualAccounting()&&this.recurringDepositProductAccountingForm.patchValue({feesReceivableAccountId:this.recurringDepositProductsTemplate.accountingMappings.feeReceivableAccount.id,penaltiesReceivableAccountId:this.recurringDepositProductsTemplate.accountingMappings.penaltyReceivableAccount.id,interestPayableAccountId:this.recurringDepositProductsTemplate.accountingMappings.interestPayableAccount.id}),(this.recurringDepositProductsTemplate.paymentChannelToFundSourceMappings||this.recurringDepositProductsTemplate.feeToIncomeAccountMappings||this.recurringDepositProductsTemplate.penaltyToIncomeAccountMappings)&&this.recurringDepositProductAccountingForm.patchValue({advancedAccountingRules:!0}),this.recurringDepositProductsTemplate.paymentChannelToFundSourceMappings&&this.recurringDepositProductsTemplate.paymentChannelToFundSourceMappings.forEach(t=>{let n=this.formBuilder.group({paymentTypeId:[t.paymentType.id,ce.required],fundSourceAccountId:[t.fundSourceAccount.id,ce.required]});this.recurringDepositProductAccountingForm.controls.paymentChannelToFundSourceMappings.push(n)}),this.recurringDepositProductsTemplate.feeToIncomeAccountMappings&&this.recurringDepositProductsTemplate.feeToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.recurringDepositProductAccountingForm.controls.feeToIncomeAccountMappings.push(n)}),this.recurringDepositProductsTemplate.penaltyToIncomeAccountMappings&&this.recurringDepositProductsTemplate.penaltyToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.recurringDepositProductAccountingForm.controls.penaltyToIncomeAccountMappings.push(n)}))}createrecurringDepositProductAccountingForm(){this.recurringDepositProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}existCharges(){return this.chargeData.length>0}setConditionalControls(){this.recurringDepositProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2||t===3?(this.recurringDepositProductAccountingForm.addControl("savingsReferenceAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("savingsControlAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("interestOnSavingsAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),t===3&&(this.recurringDepositProductAccountingForm.addControl("feesReceivableAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("penaltiesReceivableAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("interestPayableAccountId",new it("",ce.required))),this.recurringDepositProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.recurringDepositProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.recurringDepositProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.recurringDepositProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([]))):(this.recurringDepositProductAccountingForm.removeControl("paymentChannelToFundSourceMappings"),this.recurringDepositProductAccountingForm.removeControl("feeToIncomeAccountMappings"),this.recurringDepositProductAccountingForm.removeControl("penaltyToIncomeAccountMappings"))})):(this.recurringDepositProductAccountingForm.removeControl("savingsReferenceAccountId"),this.recurringDepositProductAccountingForm.removeControl("overdraftPortfolioControlId"),this.recurringDepositProductAccountingForm.removeControl("savingsControlAccountId"),this.recurringDepositProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.recurringDepositProductAccountingForm.removeControl("interestOnSavingsAccountId"),this.recurringDepositProductAccountingForm.removeControl("writeOffAccountId"),this.recurringDepositProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.recurringDepositProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.recurringDepositProductAccountingForm.removeControl("incomeFromInterestId"),this.recurringDepositProductAccountingForm.removeControl("advancedAccountingRules"),this.recurringDepositProductAccountingForm.removeControl("escheatLiabilityId"),this.recurringDepositProductAccountingForm.removeControl("feesReceivableAccountId"),this.recurringDepositProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.recurringDepositProductAccountingForm.removeControl("interestPayableAccountId"))})}get paymentChannelToFundSourceMappings(){return this.recurringDepositProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.recurringDepositProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.recurringDepositProductAccountingForm.get("penaltyToIncomeAccountMappings")}add(t,n){let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&n.push(d.data)})}edit(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&n.at(i).patchValue(u.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"PaymentFundSource":return{title:this.translateService.instant("labels.heading.Configure Fund Sources for Payment Channels"),formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:this.translateService.instant("labels.heading.Map Fees to Specific Income Accounts"),formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:this.translateService.instant("labels.heading.Map Penalties to Specific Income Accounts"),formfields:this.getPenaltyIncomeFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:this.translateService.instant("labels.inputs.Payment Type"),value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:this.translateService.instant("labels.inputs.Fund Source"),value:t?t.fundSourceAccountId:this.assetAccountData[0].id,options:{label:"name",value:"id",data:this.assetAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:this.translateService.instant("labels.inputs.Fees"),value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:this.translateService.instant("labels.inputs.Income Account"),value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Penalty",value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}get recurringDepositProductAccounting(){return this.recurringDepositProductAccountingForm.value}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.recurringDepositProductAccountingForm.value.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.recurringDepositProductAccountingForm.value.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-accounting-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate",accountingRuleData:"accountingRuleData",recurringDepositProductFormValid:"recurringDepositProductFormValid"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-column.lt-md","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"mat-h3","flex-23"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"flex-100","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"mat-h4","flex-63"],[1,"flex-33"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-100"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,tRt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,BRt,31,43,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.recurringDepositProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.isCashOrAccrualAccounting()?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.recurringDepositProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var RRt=()=>["../"];function NRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.recurringDepositProduct.description)}}function LRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.recurringDepositProduct.lockinPeriodFrequency+" "+$t(6,4,t.recurringDepositProduct.lockinPeriodFrequencyType,t.recurringDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function VRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.And thereafter, in Multiples of"),":"),a(3),h(t.recurringDepositProduct.inMultiplesOfDepositTerm+" "+$t(6,4,t.recurringDepositProduct.inMultiplesOfDepositTermTypeId,t.recurringDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function qRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Deposit Term"),":"),a(3),h(t.recurringDepositProduct.maxDepositTerm+" "+$t(6,4,t.recurringDepositProduct.maxDepositTermTypeId,t.recurringDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function zRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Penal Interest")," (%):"),a(3),h(t.recurringDepositProduct.preClosurePenalInterest+"% ("+$t(6,4,t.recurringDepositProduct.preClosurePenalInterestOnTypeId,t.recurringDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,"id","value")+")")}}function HRt(e,o){e&1&&(l(0,"span",6),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function GRt(e,o){e&1&&(l(0,"span",6),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Voluntary")," "))}function jRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),E(4,HRt,3,3,"span",6),E(5,GRt,3,3,"span",6),r()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Recurring Deposit Type"),":"),a(2),I(t.recurringDepositProduct.isMandatoryDeposit?4:-1),a(),I(t.recurringDepositProduct.isMandatoryDeposit?-1:5)}}function $Rt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h($t(6,4,t.recurringDepositProduct.taxGroupId,t.recurringDepositProductsTemplate.taxGroupOptions,"id","name"))}}function URt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.name)}}function WRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.endDate))}}function QRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.description)}}function YRt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function JRt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.recurringDepositProductsTemplate.chartTemplate.periodTypes,"id","value")," ")}}function KRt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function XRt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function ZRt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function e9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v("",m(2,1,t.annualInterestRate)," %")}}function t9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function i9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function n9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function o9t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",30),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function a9t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",31),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function r9t(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w(2);return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(2,o9t,4,3,"span"),E(3,a9t,4,3,"span"),r()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);a(),g("disabled",t.incentives.length===0),a(),I(s.expandChartSlabIndex[i]!==n?2:-1),a(),I(s.expandChartSlabIndex[i]===n?3:-1)}}function l9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function s9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.recurringDepositProductsTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function c9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function p9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.recurringDepositProductsTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function m9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function d9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.recurringDepositProductsTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function u9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function f9t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductsTemplate.chartTemplate.genderOptions,"id","name"))}}function h9t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function g9t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductsTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function _9t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductsTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function C9t(e,o){if(e&1&&(l(0,"td",28),E(1,f9t,3,6,"span")(2,h9t,2,1,"span")(3,g9t,3,6,"span")(4,_9t,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function v9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function x9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.recurringDepositProductsTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function b9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function y9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function S9t(e,o){e&1&&b(0,"tr",42)}function w9t(e,o){e&1&&b(0,"tr",43)}function P9t(e,o){if(e&1&&(l(0,"td",28)(1,"div",32)(2,"mat-card",33)(3,"h4",34),c(4),p(5,"translate"),r(),l(6,"table",35),X(7,36),F(8,l9t,3,3,"th",17)(9,s9t,3,6,"td",18),Z(),X(10,37),F(11,c9t,3,3,"th",17)(12,p9t,3,6,"td",18),Z(),X(13,38),F(14,m9t,3,3,"th",17)(15,d9t,3,6,"td",18),Z(),X(16,39),F(17,u9t,3,3,"th",17)(18,C9t,5,1,"td",18),Z(),X(19,40),F(20,v9t,3,3,"th",17)(21,x9t,3,6,"td",18),Z(),X(22,41),F(23,b9t,3,3,"th",17)(24,y9t,3,3,"td",18),Z(),F(25,S9t,1,0,"tr",24)(26,w9t,1,0,"tr",25),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",s.incentivesDisplayedColumns),a(),g("matRowDefColumns",s.incentivesDisplayedColumns)}}function T9t(e,o){e&1&&b(0,"tr",42)}function M9t(e,o){e&1&&b(0,"tr",43)}function D9t(e,o){e&1&&b(0,"tr",44)}function E9t(e,o){if(e&1&&(l(0,"table",15),X(1,16),F(2,YRt,3,3,"th",17)(3,JRt,3,6,"td",18),Z(),X(4,19),F(5,KRt,3,3,"th",17)(6,XRt,2,1,"td",18),Z(),X(7,20),F(8,ZRt,3,3,"th",17)(9,e9t,3,3,"td",18),Z(),X(10,21),F(11,t9t,3,3,"th",17)(12,i9t,2,1,"td",18),Z(),X(13,22),F(14,n9t,3,3,"th",17)(15,r9t,4,3,"td",18),Z(),X(16,23),F(17,P9t,27,8,"td",18),Z(),F(18,T9t,1,0,"tr",24)(19,M9t,1,0,"tr",25)(20,D9t,1,0,"tr",26),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w(2);g("dataSource",n.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function I9t(e,o){if(e&1&&(l(0,"div",14),E(1,URt,6,4,"div",4),l(2,"div",4)(3,"span",5),c(4),p(5,"translate"),r(),l(6,"span",6),c(7),p(8,"dateFormat"),r()(),E(9,WRt,7,6,"div",4),E(10,QRt,6,4,"div",4),l(11,"div",4)(12,"span",5),c(13),p(14,"translate"),r(),l(15,"span",6),c(16),p(17,"yesNo"),r()(),E(18,E9t,21,4,"table",15),b(19,"mat-divider",2),r()),e&2){let t=o.$implicit,n=w(2);a(),I(t.name?1:-1),a(3),v("",m(5,8,"labels.inputs.From Date"),":"),a(3),h(m(8,10,t.fromDate)),a(2),I(t.endDate?9:-1),a(),I(t.description?10:-1),a(3),v("",m(14,12,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(17,14,n.recurringDepositProduct.isPrimaryGroupingByAmount)),a(2),I(t.chartSlabs.length!==0?18:-1)}}function O9t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),Se(5,I9t,20,16,"div",14,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Interest Rate Charts")),a(3),we(t.recurringDepositProduct.charts)}}function A9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function F9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function k9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function B9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function R9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function N9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function L9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function V9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function q9t(e,o){e&1&&b(0,"tr",42)}function z9t(e,o){e&1&&b(0,"tr",43)}function H9t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",35),X(6,45),F(7,A9t,3,3,"th",17)(8,F9t,2,1,"td",18),Z(),X(9,46),F(10,k9t,3,3,"th",17)(11,B9t,2,1,"td",18),Z(),X(12,41),F(13,R9t,3,3,"th",17)(14,N9t,2,1,"td",18),Z(),X(15,47),F(16,L9t,3,3,"th",17)(17,V9t,2,1,"td",18),Z(),F(18,q9t,1,0,"tr",24)(19,z9t,1,0,"tr",25),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Charges")),a(3),g("dataSource",t.recurringDepositProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function G9t(e,o){if(e&1&&b(0,"mifosx-view-savings-accounting-details",8),e&2){let t=w();g("accountingRule",t.accountingRule)("accountingMappings",t.accountingMappings)}}function j9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function $9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.paymentTypeId,n.recurringDepositProductsTemplate.paymentTypeOptions,"id","name")," ")}}function U9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function W9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.recurringDepositProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")," ")}}function Q9t(e,o){e&1&&b(0,"tr",42)}function Y9t(e,o){e&1&&b(0,"tr",43)}function J9t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,51),F(6,j9t,3,3,"th",17)(7,$9t,3,6,"td",18),Z(),X(8,52),F(9,U9t,3,3,"th",17)(10,W9t,3,6,"td",18),Z(),F(11,Q9t,1,0,"tr",24)(12,Y9t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fund Sources for Payment Channels")),a(2),g("dataSource",t.recurringDepositProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function K9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function X9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.recurringDepositProductsTemplate.chargeOptions,"id","name")," ")}}function Z9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function eNt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function tNt(e,o){e&1&&b(0,"tr",42)}function iNt(e,o){e&1&&b(0,"tr",43)}function nNt(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,K9t,3,3,"th",17)(7,X9t,3,6,"td",18),Z(),X(8,54),F(9,Z9t,3,3,"th",17)(10,eNt,3,6,"td",18),Z(),F(11,tNt,1,0,"tr",24)(12,iNt,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fees to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function oNt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function aNt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.recurringDepositProductsTemplate.penaltyOptions,"id","name")," ")}}function rNt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function lNt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function sNt(e,o){e&1&&b(0,"tr",42)}function cNt(e,o){e&1&&b(0,"tr",43)}function pNt(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,oNt,3,3,"th",17)(7,aNt,3,6,"td",18),Z(),X(8,54),F(9,rNt,3,3,"th",17)(10,lNt,3,6,"td",18),Z(),F(11,sNt,1,0,"tr",24)(12,cNt,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function mNt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),E(5,J9t,13,6,"div",48),E(6,nNt,13,6,"div",48),E(7,pNt,13,6,"div",48),r()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Advanced Accounting Rules")),a(3),I(t.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&t.recurringDepositProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.recurringDepositProduct.feeToIncomeAccountMappings!=null&&t.recurringDepositProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&t.recurringDepositProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var Ru=(()=>{class e{constructor(){this.accounting=T(To),this.submitEvent=new bi,this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.expandChartSlabIndex=[],this.accountingMappings={}}ngOnInit(){this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.isCashOrAccrualAccounting()){this.accountingRule=this.accounting.getAccountingRuleFrom(this.recurringDepositProduct.accountingRule);let t=this.recurringDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],n=this.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],i=this.recurringDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],s=this.recurringDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.accountingMappings={savingsReferenceAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.savingsReferenceAccountId,t),savingsControlAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.savingsControlAccountId,s),transfersInSuspenseAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.transfersInSuspenseAccountId,s),interestOnSavingsAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.interestOnSavingsAccountId,i),incomeFromFeeAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.incomeFromFeeAccountId,n),incomeFromPenaltyAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.incomeFromPenaltyAccountId,n)},this.isAccrualAccounting()&&(this.accountingMappings.feeReceivableAccount=this.accounting.glAccountLookUp(this.recurringDepositProduct.feesReceivableAccountId,t),this.accountingMappings.penaltyReceivableAccount=this.accounting.glAccountLookUp(this.recurringDepositProduct.penaltiesReceivableAccountId,t),this.accountingMappings.interestPayableAccount=this.accounting.glAccountLookUp(this.recurringDepositProduct.interestPayableAccountId,s))}}isNoneAccounting(){return this.accounting.isNoneAccountingRuleId(this.recurringDepositProduct.accountingRule)}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.recurringDepositProduct.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.recurringDepositProduct.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-preview-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate",chartSlabsDisplayedColumns:"chartSlabsDisplayedColumns",accountingRuleData:"accountingRuleData",recurringDepositProduct:"recurringDepositProduct"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:126,vars:120,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-100"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[3,"accountingRule","accountingMappings"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[1,"flex-100","layout-row-wrap","layout-xs-column"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click","disabled"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","chargeTimeType"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,NRt,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),r()(),l(48,"div",4)(49,"span",5),c(50),p(51,"translate"),r(),l(52,"span",6),c(53),p(54,"find"),r()(),l(55,"div",2)(56,"span",5),c(57),p(58,"translate"),r(),l(59,"span",6),c(60),p(61,"find"),r()(),l(62,"div",4)(63,"span",5),c(64),p(65,"translate"),r(),l(66,"span",6),c(67),p(68,"find"),r()(),l(69,"div",4)(70,"span",5),c(71),p(72,"translate"),r(),l(73,"span",6),c(74),p(75,"find"),r()(),l(76,"h3",3),c(77),p(78,"translate"),r(),b(79,"mat-divider",2),E(80,LRt,7,9,"div",4),l(81,"div",4)(82,"span",5),c(83),p(84,"translate"),r(),l(85,"span",6),c(86),p(87,"find"),r()(),E(88,VRt,7,9,"div",4),E(89,qRt,7,9,"div",4),l(90,"div",4)(91,"span",5),c(92),p(93,"translate"),r(),l(94,"span",6),c(95),p(96,"yesNo"),r()(),E(97,zRt,7,9,"div",4),E(98,jRt,6,5,"div",4),l(99,"div",4)(100,"span",5),c(101),p(102,"translate"),r(),l(103,"span",6),c(104),p(105,"yesNo"),r()(),E(106,$Rt,7,9,"div",4),E(107,O9t,7,3,"div",7),E(108,H9t,20,6,"div",7),l(109,"h3",3),c(110),p(111,"translate"),r(),b(112,"mat-divider",2),E(113,G9t,1,2,"mifosx-view-savings-accounting-details",8),E(114,mNt,8,6,"div",7),r(),l(115,"div",9)(116,"button",10),b(117,"fa-icon",11),c(118),p(119,"translate"),r(),l(120,"button",12),c(121),p(122,"translate"),r(),l(123,"button",13),R("click",function(){return i.submitEvent.emit()}),c(124),p(125,"translate"),r()()),n&2&&(a(2),h(i.recurringDepositProduct.name),a(3),h(m(6,45,"labels.inputs.Details")),a(5),v("",m(11,47,"labels.inputs.Short Name"),":"),a(3),h(i.recurringDepositProduct.shortName),a(),I(i.recurringDepositProduct.description?14:-1),a(2),h(m(17,49,"labels.inputs.Currency")),a(5),v("",m(22,51,"labels.inputs.Currency"),":"),a(3),h($t(25,53,i.recurringDepositProduct.currencyCode,i.recurringDepositProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,58,"labels.inputs.Decimal Places"),":"),a(3),h(i.recurringDepositProduct.digitsAfterDecimal),a(3),v("",m(35,60,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.recurringDepositProduct.inMultiplesOf),a(2),h(m(40,62,"labels.heading.Terms")),a(5),v("",m(45,64,"labels.inputs.Deposit Amount"),":"),a(3),h(i.recurringDepositProduct.depositAmount+" (Min: "+(i.recurringDepositProduct.minDepositAmount?i.recurringDepositProduct.minDepositAmount:i.recurringDepositProduct.depositAmount)+", Max: "+(i.recurringDepositProduct.maxDepositAmount?i.recurringDepositProduct.maxDepositAmount:i.recurringDepositProduct.depositAmount)+")"),a(3),v("",m(51,66,"labels.inputs.Interest Compounding Period"),":"),a(3),h($t(54,68,i.recurringDepositProduct.interestCompoundingPeriodType,i.recurringDepositProductsTemplate.interestCompoundingPeriodTypeOptions,"id","value")),a(4),v("",m(58,73,"labels.inputs.Interest Posting Period"),":"),a(3),h($t(61,75,i.recurringDepositProduct.interestPostingPeriodType,i.recurringDepositProductsTemplate.interestPostingPeriodTypeOptions,"id","value")),a(4),v("",m(65,80,"labels.inputs.Interest Calculated using"),":"),a(3),h($t(68,82,i.recurringDepositProduct.interestCalculationType,i.recurringDepositProductsTemplate.interestCalculationTypeOptions,"id","value")),a(4),v("",m(72,87,"labels.inputs.Days in Year"),":"),a(3),h($t(75,89,i.recurringDepositProduct.interestCalculationDaysInYearType,i.recurringDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),a(3),h(m(78,94,"labels.heading.Settings")),a(3),I(i.recurringDepositProduct.lockinPeriodFrequency?80:-1),a(3),v("",m(84,96,"labels.inputs.Minimum Deposit Term"),":"),a(3),h(i.recurringDepositProduct.minDepositTerm+" "+$t(87,98,i.recurringDepositProduct.minDepositTermTypeId,i.recurringDepositProductsTemplate.periodFrequencyTypeOptions,"id","value")),a(2),I(i.recurringDepositProduct.inMultiplesOfDepositTerm?88:-1),a(),I(i.recurringDepositProduct.maxDepositTerm?89:-1),a(3),v("",m(93,103,"labels.inputs.Apply Penal Interest (less)"),":"),a(3),h(m(96,105,i.recurringDepositProduct.preClosurePenalApplicable)),a(2),I(i.recurringDepositProduct.preClosurePenalApplicable?97:-1),a(),I(i.recurringDepositProduct.isMandatoryDeposit!==void 0?98:-1),a(3),v("",m(102,107,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(105,109,i.recurringDepositProduct.withHoldTax)),a(2),I(i.recurringDepositProduct.withHoldTax?106:-1),a(),I(i.recurringDepositProduct.charts.length!==0?107:-1),a(),I(i.recurringDepositProduct.charges.length?108:-1),a(2),h(m(111,111,"labels.heading.Accounting")),a(3),I(i.isNoneAccounting()?-1:113),a(),I(i.recurringDepositProduct.advancedAccountingRules&&(i.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&i.recurringDepositProduct.paymentChannelToFundSourceMappings.length||i.recurringDepositProduct.feeToIncomeAccountMappings!=null&&i.recurringDepositProduct.feeToIncomeAccountMappings.length||i.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&i.recurringDepositProduct.penaltyToIncomeAccountMappings.length)?114:-1),a(4),v(" ",m(119,113,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(119,RRt)),a(),v(" ",m(122,115,"labels.buttons.Cancel")," "),a(3),v(" ",m(125,117,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,Ue,xe,Ri,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,rs,qi,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function dNt(e,o){e&1&&b(0,"fa-icon",14)}function uNt(e,o){e&1&&b(0,"fa-icon",14)}function fNt(e,o){e&1&&b(0,"fa-icon",15)}function hNt(e,o){e&1&&b(0,"fa-icon",16)}function gNt(e,o){e&1&&b(0,"fa-icon",17)}function _Nt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function CNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function vNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function xNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function bNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function yNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function SNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function wNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function PNt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,wNt,2,3,"ng-template",9),l(2,"mifosx-recurring-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("recurringDepositProductsTemplate",t.recurringDepositProductsTemplate)("chartSlabsDisplayedColumns",t.recurringDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("recurringDepositProduct",t.recurringDepositProduct)}}var O3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.recurringDepositProductsTemplate=t.recurringDepositProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get recurringDepositProductDetailsForm(){return this.recurringDepositProductDetailsStep.recurringDepositProductDetailsForm}get recurringDepositProductCurrencyForm(){return this.recurringDepositProductCurrencyStep.recurringDepositProductCurrencyForm}get recurringDepositProductTermsForm(){return this.recurringDepositProductTermsStep.recurringDepositProductTermsForm}get recurringDepositProductSettingsForm(){return this.recurringDepositProductSettingsStep.recurringDepositProductSettingsForm}get recurringDepositProductInterestRateChartForm(){return this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChartForm}get recurringDepositProductAccountingForm(){return this.recurringDepositProductAccountingStep.recurringDepositProductAccountingForm}get recurringDepositProductFormValid(){return this.recurringDepositProductDetailsForm.valid&&this.recurringDepositProductCurrencyForm.valid&&this.recurringDepositProductTermsForm.valid&&this.recurringDepositProductSettingsForm.valid&&this.recurringDepositProductInterestRateChartForm.valid&&this.recurringDepositProductAccountingForm.valid}get recurringDepositProduct(){return at(at(at(at(at(at(at({},this.recurringDepositProductDetailsStep.recurringDepositProductDetails),this.recurringDepositProductCurrencyStep.recurringDepositProductCurrency),this.recurringDepositProductTermsStep.recurringDepositProductTerms),this.recurringDepositProductSettingsStep.recurringDepositProductSettings),this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChart),this.recurringDepositProductChargesStep.recurringDepositProductCharges),this.recurringDepositProductAccountingStep.recurringDepositProductAccounting)}submit(){let t=qt(at({},this.recurringDepositProduct),{charges:this.recurringDepositProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});t.description||(t.description=""),delete t.advancedAccountingRules,this.productsService.createRecurringDepositProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-recurring-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(qm,7),Ee(zm,7),Ee(Hm,7),Ee(Gm,7),Ee(jm,7),Ee($m,7),Ee(Um,7)),n&2){let s;Te(s=Me())&&(i.recurringDepositProductDetailsStep=s.first),Te(s=Me())&&(i.recurringDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.recurringDepositProductTermsStep=s.first),Te(s=Me())&&(i.recurringDepositProductSettingsStep=s.first),Te(s=Me())&&(i.recurringDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.recurringDepositProductChargesStep=s.first),Te(s=Me())&&(i.recurringDepositProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["recurringDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositProductsTemplate"],[3,"recurringDepositProductsTemplate","currencyCode"],[3,"recurringDepositProductsTemplate","accountingRuleData","recurringDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","recurringDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,dNt,1,0,"ng-template",3)(4,uNt,1,0,"ng-template",4)(5,fNt,1,0,"ng-template",5)(6,hNt,1,0,"ng-template",6)(7,gNt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,_Nt,2,3,"ng-template",9),b(10,"mifosx-recurring-deposit-product-details-step",10),r(),l(11,"mat-step",8),F(12,CNt,2,3,"ng-template",9),b(13,"mifosx-recurring-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,vNt,2,3,"ng-template",9),b(16,"mifosx-recurring-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,xNt,2,3,"ng-template",9),b(19,"mifosx-recurring-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,bNt,2,3,"ng-template",9),b(22,"mifosx-recurring-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,yNt,2,3,"ng-template",9),b(25,"mifosx-recurring-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,SNt,2,3,"ng-template",9),b(28,"mifosx-recurring-deposit-product-accounting-step",12),r(),E(29,PNt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.recurringDepositProductDetailsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductCurrencyForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductTermsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductSettingsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductInterestRateChartForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(3),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("currencyCode",i.recurringDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.recurringDepositProductAccountingForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("recurringDepositProductFormValid",i.recurringDepositProductFormValid),a(),I(i.recurringDepositProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,qm,zm,Hm,Gm,jm,$m,Um,Ru,he],encapsulation:2})}}return e})();var TNt=()=>["../"];function MNt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Starting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function DNt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.End Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ENt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var A3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.productService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.shareProductData=t.shareProduct})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setDividendForm()}setDividendForm(){this.createDividendForm=this.formBuilder.group({dividendPeriodStartDate:["",ce.required],dividendPeriodEndDate:["",ce.required],dividendAmount:["",ce.required]})}submit(){let t=this.createDividendForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.createDividendForm.value.dividendPeriodStartDate,d=this.createDividendForm.value.dividendPeriodEndDate;t.dividendPeriodStartDate instanceof Date&&(t.dividendPeriodStartDate=this.dateUtils.formatDate(s,i)),t.dividendPeriodEndDate instanceof Date&&(t.dividendPeriodEndDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.productService.createDividend(this.shareProductData.id,u).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-dividend"]],decls:36,vars:30,consts:[["startDatePicker",""],["endDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","dividendPeriodStartDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","dividendPeriodEndDate",3,"min","max","matDatepicker"],["matInput","","required","","formControlName","dividendAmount"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6)(10,"mat-datepicker-toggle",7)(11,"mat-datepicker",null,0),E(13,MNt,7,9,"mat-error"),r(),l(14,"mat-form-field",5),R("click",function(){V(s);let u=ve(21);return q(u.open())}),l(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8)(19,"mat-datepicker-toggle",7)(20,"mat-datepicker",null,1),E(22,DNt,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",9),E(28,ENt,7,9,"mat-error"),r()()(),l(29,"mat-card-actions",10)(30,"button",11),c(31),p(32,"translate"),r(),l(33,"button",12),c(34),p(35,"translate"),r()()()()()}if(n&2){let s=ve(12),d=ve(21);a(2),g("formGroup",i.createDividendForm),a(5),h(m(8,19,"labels.inputs.Dividend Period Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.createDividendForm.controls.dividendPeriodStartDate.hasError("required")?13:-1),a(3),h(m(17,21,"labels.inputs.Dividend Period End Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.createDividendForm.controls.dividendPeriodEndDate.hasError("required")?22:-1),a(3),h(m(26,23,"labels.inputs.Dividend Amount")),a(3),I(i.createDividendForm.controls.dividendAmount.hasError("required")?28:-1),a(2),g("routerLink",oe(29,TNt)),a(),v(" ",m(32,25,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.createDividendForm.valid),a(),v(" ",m(35,27,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var INt=()=>["./general"],ONt=e=>["./datatables",e];function ANt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,ONt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function FNt(e,o){if(e&1&&F(0,ANt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var F3=(()=>{class e{constructor(){this.route=T(Ie),this.fixedDepositDatatables=[],this.route.data.subscribe(t=>{this.fixedDepositDatatables=[],t.fixedDepositDatatables.forEach(n=>{n.entitySubType==="Fixed Deposit"&&this.fixedDepositDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-fixed-deposit-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,FNt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,INt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.fixedDepositDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}mat-card-content[_ngcontent-%COMP%]{padding-bottom:40px}"]})}}return e})();var kNt=()=>[10,25,50,100];function BNt(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w(2);return q(i.postDividends())}),b(1,"fa-icon",18),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.buttons")," "))}function RNt(e,o){e&1&&(l(0,"div",0),F(1,BNt,4,3,"button",16),r()),e&2&&(a(),g("mifosxHasPermission","POST_DIVIDENDS"))}function NNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function LNt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountData.clientName)}}function VNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Account")))}function qNt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountData.accountNo)}}function zNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Dividend Amount")))}function HNt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function GNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function jNt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function $Nt(e,o){e&1&&b(0,"tr",21)}function UNt(e,o){e&1&&b(0,"tr",22)}var k3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.isdividendPosted=!1,this.displayedColumns=["clientName","shareAccount","dividendAmount","status"],this.route.data.subscribe(t=>{this.dividendData=t.dividendData}),this.status=this.route.snapshot.queryParams.status,this.status&&(this.status==="Dividend Approved"||this.status==="Dividend Posted")&&(this.isdividendPosted=!0)}ngOnInit(){this.dataSource=new Wt(this.dividendData.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}postDividends(){let t=this.route.parent.parent.snapshot.paramMap.get("productId"),n=this.route.snapshot.paramMap.get("dividendId");this.productsService.approveDividend(t,n,{productId:t,dividendId:n}).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-dividend"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:25,vars:9,consts:[[1,"container","m-b-20","layout-row","layout-align-end","gap-20px"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","clientName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareAccount"],["matColumnDef","dividendAmount"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(E(0,RNt,2,1,"div",0),l(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",4),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(8,"div",5)(9,"table",6),X(10,7),F(11,NNt,3,3,"th",8)(12,LNt,2,1,"td",9),Z(),X(13,10),F(14,VNt,3,3,"th",8)(15,qNt,2,1,"td",9),Z(),X(16,11),F(17,zNt,3,3,"th",8)(18,HNt,2,1,"td",9),Z(),X(19,12),F(20,GNt,3,3,"th",8)(21,jNt,2,1,"td",9),Z(),F(22,$Nt,1,0,"tr",13)(23,UNt,1,0,"tr",14),r(),b(24,"mat-paginator",15),r()()),n&2&&(I(i.isdividendPosted?-1:0),a(5),h(m(6,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,kNt)))},dependencies:[ue,fe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var WNt=()=>["../"];function QNt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function YNt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function JNt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.taxComponentId,n.taxComponentOptions,"id","name")," ")}}function KNt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function XNt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function ZNt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function eLt(e,o){if(e&1){let t=Y();l(0,"td",21)(1,"button",22),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w();return q(u.editTaxGroup(s,d))}),b(2,"fa-icon",23),r(),l(3,"button",24),R("click",function(){let i=V(t).index,s=w();return q(s.delete(i))}),b(4,"fa-icon",25),r()()}}function tLt(e,o){e&1&&b(0,"tr",26)}function iLt(e,o){e&1&&b(0,"tr",27)}function nLt(e,o){if(e&1&&(l(0,"button",28),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxGroupForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var B3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["name","startDate","actions"],this.route.data.subscribe(t=>{this.taxGroupTemplateData=t.taxGroupTemplate,this.taxComponentOptions=this.taxGroupTemplateData.taxComponents})}ngOnInit(){this.createTaxGroupForm(),this.taxComponentsDataSource=[]}createTaxGroupForm(){this.taxGroupForm=this.formBuilder.group({name:["",ce.required]})}addTaxGroup(){let t=[new $i({controlName:"taxComponentId",label:this.translateService.instant("labels.inputs.Tax Component"),options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),minDate:this.minDate,maxDate:this.maxDate,order:2})],n={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.inputs.Tax Component"),layout:{addButtonText:"Add"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(this.taxComponentsDataSource=this.taxComponentsDataSource.concat(s.data.value))})}editTaxGroup(t,n){let i=[new $i({controlName:"taxComponentId",value:t.taxComponentId?t.taxComponentId:"",label:"Tax Component",options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",value:t.startDate?new Date(t.startDate):new Date,label:"Start Date",minDate:this.minDate,maxDate:this.maxDate,order:2})],s={title:"Edit Tax Component",layout:{addButtonText:"Submit"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){let f=at(at({},t),u.data.value);this.taxComponentsDataSource.splice(this.taxComponentsDataSource.indexOf(t),1,f),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([])}})}delete(t){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(i=>{i.delete&&(this.taxComponentsDataSource.splice(t,1),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([]))})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.taxGroupForm.value),{taxComponents:this.taxComponentsDataSource,dateFormat:n,locale:t});for(let s of i.taxComponents)s.startDate=this.dateUtils.formatDate(s.startDate,n)||"";this.productsService.createTaxGroup(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-tax-group"]],decls:36,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","custom-gap","responsive-column"],[1,"flex-fill","flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","edit"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,QNt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addTaxGroup()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,YNt,3,3,"th",11)(22,JNt,3,6,"td",12),Z(),X(23,13),F(24,KNt,3,3,"th",11)(25,XNt,3,3,"td",12),Z(),X(26,14),F(27,ZNt,3,3,"th",11)(28,eLt,5,0,"td",12),Z(),F(29,tLt,1,0,"tr",15)(30,iLt,1,0,"tr",16),r()()(),l(31,"mat-card-actions",17)(32,"button",18),c(33),p(34,"translate"),r(),F(35,nLt,3,4,"button",19),r()()()()),n&2&&(a(2),g("formGroup",i.taxGroupForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.taxGroupForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.inputs.Tax Components")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.taxComponentsDataSource)("hidden",i.taxComponentsDataSource.length===0),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,WNt)),a(),v(" ",m(34,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_TAXGROUP"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var oLt=()=>["../"];function aLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function lLt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.taxComponentId,n.taxComponentOptions,"id","name")," ")}}function sLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function cLt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function pLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Date")))}function mLt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",t.endDate?m(2,1,t.endDate):""," ")}}function dLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function uLt(e,o){if(e&1){let t=Y();l(0,"button",26),p(1,"translate"),R("click",function(){V(t);let i=w().index,s=w();return q(s.delete(i))}),b(2,"fa-icon",27),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete Interest Rate Chart")))}function fLt(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"button",23),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w();return q(u.editTaxGroup(s,d))}),b(2,"fa-icon",24),r(),E(3,uLt,3,4,"button",25),r()}if(e&2){let t=o.$implicit;a(3),I(t.isNew?3:-1)}}function hLt(e,o){e&1&&b(0,"tr",28)}function gLt(e,o){e&1&&b(0,"tr",29)}function _Lt(e,o){if(e&1&&(l(0,"button",30),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxGroupForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var R3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["name","startDate","actions"],this.route.data.subscribe(t=>{this.taxGroupData=t.taxGroup,this.taxComponentOptions=this.taxGroupData.taxComponents})}ngOnInit(){this.taxComponentsDataSource=[],this.createTaxGroupForm(),this.assignFormData()}createTaxGroupForm(){this.taxGroupForm=this.formBuilder.group({name:[this.taxGroupData.name,ce.required]})}addTaxGroup(){let t=[new $i({controlName:"taxComponentId",label:"Tax Component",options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",label:"Start Date",minDate:this.minDate,maxDate:this.maxDate,order:2})],n={title:"Add Tax Component",layout:{addButtonText:"Add"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=qt(at({},s.data.value),{isNew:!0});this.taxComponentsDataSource=this.taxComponentsDataSource.concat(d)}})}editTaxGroup(t,n){let i=[new $i({controlName:"taxComponentId",value:t.taxComponentId?t.taxComponentId:"",label:"Tax Component",options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",value:t.startDate?new Date(t.startDate):new Date,label:"Start Date",minDate:this.minDate,maxDate:this.maxDate,order:2})];t.isNew||i.push(new rr({controlName:"endDate",label:"End Date",minDate:this.minDate,maxDate:this.maxDate,order:3}));let s={title:"Edit Tax Component",layout:{addButtonText:"Submit"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){let f=at(at({},t),u.data.value);this.taxComponentsDataSource.splice(this.taxComponentsDataSource.indexOf(t),1,f),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([])}})}assignFormData(){this.taxGroupData.taxAssociations.forEach(t=>{let n={id:t.id,startDate:t.startDate?new Date(t.startDate):"",endDate:t.endDate?new Date(t.endDate):"",taxComponentId:t.taxComponent.id,isNew:!1};this.taxComponentsDataSource=this.taxComponentsDataSource.concat(n)})}delete(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.taxComponentsDataSource.splice(t,1),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([]))})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.taxGroupForm.value),{taxComponents:this.taxComponentsDataSource,dateFormat:n,locale:t});for(let s of i.taxComponents)s.startDate=this.dateUtils.formatDate(s.startDate,n)||"",s.endDate&&(delete s.startDate,s.endDate=this.dateUtils.formatDate(s.endDate,n)||""),delete s.isNew;this.productsService.updateTaxGroup(this.taxGroupData.id,i).subscribe(s=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-tax-group"]],decls:39,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","custom-gap","responsive-column"],[1,"flex-fill","flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","edit"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"matTooltip"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,aLt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addTaxGroup()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,rLt,3,3,"th",11)(22,lLt,3,6,"td",12),Z(),X(23,13),F(24,sLt,3,3,"th",11)(25,cLt,3,3,"td",12),Z(),X(26,14),F(27,pLt,3,3,"th",11)(28,mLt,3,3,"td",12),Z(),X(29,15),F(30,dLt,3,3,"th",11)(31,fLt,4,1,"td",12),Z(),F(32,hLt,1,0,"tr",16)(33,gLt,1,0,"tr",17),r()()(),l(34,"mat-card-actions",18)(35,"button",19),c(36),p(37,"translate"),r(),F(38,_Lt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.taxGroupForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.taxGroupForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.inputs.Tax Components")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.taxComponentsDataSource)("hidden",i.taxComponentsDataSource.length===0),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,oLt)),a(),v(" ",m(37,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_TAXGROUP"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var CLt=()=>["../"];function vLt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function xLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bLt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function yLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one restricted product")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function SLt(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",8),Se(5,bLt,2,2,"mat-option",4,Pe),r(),E(7,yLt,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Restricted products")),a(3),we(t.productData),a(2),I(t.productMixForm.controls.restrictedProducts.hasError("required")?7:-1)}}function wLt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.productMixForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var N3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.productsMixTemplateData=t.productsMixTemplate})}ngOnInit(){this.createProductMixForm(),this.setConditionalControls()}createProductMixForm(){this.productOptionData=this.productsMixTemplateData.productOptions,this.productMixForm=this.formBuilder.group({productId:["",ce.required],restrictedProducts:["",ce.required]})}setConditionalControls(){this.productMixForm.get("productId").valueChanges.subscribe(t=>{this.productData=void 0,this.productMixForm.get("restrictedProducts").reset(),this.productsService.getProductMixTemplate(t).subscribe(n=>{let i=n.restrictedProducts;this.productData=[...i,...n.allowedProducts],this.productMixForm.get("restrictedProducts").setValue([...i.map(s=>s.id)])})})}submit(){let t={restrictedProducts:this.productMixForm.value.restrictedProducts},n=this.productMixForm.value.productId;this.productsService.createProductMix(t,n).subscribe(i=>{this.router.navigate(["../",i.productId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-product-mix"]],decls:19,vars:12,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","productId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","restrictedProducts","multiple",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,vLt,2,2,"mat-option",4,Pe),r(),E(12,xLt,7,9,"mat-error"),r(),E(13,SLt,8,4,"mat-form-field"),r()(),l(14,"mat-card-actions",5)(15,"button",6),c(16),p(17,"translate"),r(),F(18,wLt,3,4,"button",7),r()()()()),n&2&&(a(2),g("formGroup",i.productMixForm),a(5),h(m(8,7,"labels.inputs.Product")),a(3),we(i.productOptionData),a(2),I(i.productMixForm.controls.productId.hasError("required")?12:-1),a(),I(i.productData?13:-1),a(2),g("routerLink",oe(11,CLt)),a(),v(" ",m(17,9,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PRODUCTMIX"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var PLt=()=>[10,25,50,100],TLt=()=>["create"],MLt=e=>[e];function DLt(e,o){e&1&&(l(0,"button",18),b(1,"fa-icon",19),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,TLt)),a(2),v(" ",m(3,2,"labels.text.Create Collateral")," "))}function ELt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function ILt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function OLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type/Quality")))}function ALt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.quality)}}function FLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Base Price")))}function kLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.basePrice)}}function BLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Base Percentage")))}function RLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.pctToBase)}}function NLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unit Type")))}function LLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.unitType)}}function VLt(e,o){e&1&&b(0,"tr",22)}function qLt(e,o){if(e&1&&b(0,"tr",23),e&2){let t=o.$implicit;g("routerLink",Nt(1,MLt,t.id))}}var L3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","quality","basePrice","basePercentage","unitType"],this.route.data.subscribe(t=>{this.collateralData=t.collaterals})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCollaterals()}setCollaterals(){this.dataSource=new Wt(this.collateralData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-collaterals"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","quality"],["matColumnDef","basePrice"],["matColumnDef","basePercentage"],["matColumnDef","unitType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,DLt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,ELt,3,3,"th",9)(13,ILt,2,1,"td",10),Z(),X(14,11),F(15,OLt,3,3,"th",9)(16,ALt,2,1,"td",10),Z(),X(17,12),F(18,FLt,3,3,"th",9)(19,kLt,2,1,"td",10),Z(),X(20,13),F(21,BLt,3,3,"th",9)(22,RLt,2,1,"td",10),Z(),X(23,14),F(24,NLt,3,3,"th",9)(25,LLt,2,1,"td",10),Z(),F(26,VLt,1,0,"tr",15)(27,qLt,1,3,"tr",16),r(),b(28,"mat-paginator",17),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_CHARGE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,PLt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}.ispenalty[_ngcontent-%COMP%]{color:#32cd32}.nopenalty[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var zLt=()=>["../"];function HLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function GLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Type/Quality")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Unit Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Lt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Base Price")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ULt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage to Base")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function WLt(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function QLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.heading.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function YLt(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.collateralForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var V3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.organizationService=T(li),this.route.data.subscribe(t=>{this.organizationService.getCurrencies().subscribe(n=>{let i=Array.isArray(n.selectedCurrencyOptions)?n.selectedCurrencyOptions:[];this.collateralTemplateData=t.collateralTemplate.filter(s=>i.some(d=>d.code===s.code))})})}ngOnInit(){this.createCollateralForm()}createCollateralForm(){this.collateralForm=this.formBuilder.group({name:["",ce.required],unitType:["",ce.required],basePrice:["",ce.required],pctToBase:["",ce.required],currency:["",ce.required],quality:["",ce.required]})}submit(){let t=this.collateralForm.value,n=this.settingsService.language.code,i=qt(at({},t),{locale:n});this.productsService.createCollateral(i).subscribe(s=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-collateral"]],decls:48,vars:31,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","quality"],["matInput","","required","","formControlName","unitType"],["matInput","","required","","formControlName","basePrice"],["matInput","","required","","formControlName","pctToBase"],["required","","formControlName","currency"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,HLt,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,GLt,7,9,"mat-error"),r(),l(17,"mat-form-field",3)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",6),E(22,jLt,7,9,"mat-error"),r(),l(23,"mat-form-field",3)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",7),E(28,$Lt,7,9,"mat-error"),r(),l(29,"mat-form-field",3)(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",8),E(34,ULt,7,9,"mat-error"),r(),l(35,"mat-form-field",3)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",9),Se(40,WLt,2,2,"mat-option",10,Pe),r(),E(42,QLt,7,9,"mat-error"),r()()(),l(43,"mat-card-actions",11)(44,"button",12),c(45),p(46,"translate"),r(),F(47,YLt,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.collateralForm),a(5),h(m(8,16,"labels.inputs.Name")),a(3),I(i.collateralForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,18,"labels.inputs.Type/Quality")),a(3),I(i.collateralForm.controls.quality.hasError("required")?16:-1),a(3),h(m(20,20,"labels.inputs.Unit Type")),a(3),I(i.collateralForm.controls.unitType.hasError("required")?22:-1),a(3),h(m(26,22,"labels.inputs.Base Price")),a(3),I(i.collateralForm.controls.basePrice.hasError("required")?28:-1),a(3),h(m(32,24,"labels.inputs.Percentage to Base")),a(3),I(i.collateralForm.controls.pctToBase.hasError("required")?34:-1),a(3),h(m(38,26,"labels.heading.Currency")),a(3),we(i.collateralTemplateData),a(2),I(i.collateralForm.controls.currency.hasError("required")?42:-1),a(2),g("routerLink",oe(30,zLt)),a(),v(" ",m(46,28,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,he],encapsulation:2})}}return e})();var JLt=()=>["../"];function KLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function XLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Type/Quality")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Unit Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Base Price")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage to Base")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iVt(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function nVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.heading.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function oVt(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.collateralForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var q3=(()=>{class e{constructor(){this.productsService=T(ci),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.collateralData=t.collateral,this.collateralTemplateData=t.collateralTemplate})}ngOnInit(){this.editCollateralForm()}editCollateralForm(){this.collateralForm=this.formBuilder.group({name:[this.collateralData.name,ce.required],quality:[this.collateralData.quality,ce.required],unitType:[this.collateralData.unitType,ce.required],basePrice:[this.collateralData.basePrice,ce.required],pctToBase:[this.collateralData.pctToBase,ce.required],currency:[this.collateralData.currency,ce.required]})}submit(){let t=this.collateralForm.value;t.locale=this.settingsService.language.code,this.productsService.updateCollateral(this.collateralData.id.toString(),t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-collateral"]],decls:48,vars:31,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","autoFocus","","formControlName","name"],["matInput","","required","","autoFocus","","formControlName","quality"],["matInput","","required","","autoFocus","","formControlName","unitType"],["matInput","","required","","autoFocus","","formControlName","basePrice"],["matInput","","required","","autoFocus","","formControlName","pctToBase"],["required","","formControlName","currency"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,KLt,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,XLt,7,9,"mat-error"),r(),l(17,"mat-form-field",3)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",6),E(22,ZLt,7,9,"mat-error"),r(),l(23,"mat-form-field",3)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",7),E(28,eVt,7,9,"mat-error"),r(),l(29,"mat-form-field",3)(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",8),E(34,tVt,7,9,"mat-error"),r(),l(35,"mat-form-field",3)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",9),Se(40,iVt,2,2,"mat-option",10,Pe),r(),E(42,nVt,7,9,"mat-error"),r()()(),l(43,"mat-card-actions",11)(44,"button",12),c(45),p(46,"translate"),r(),F(47,oVt,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.collateralForm),a(5),h(m(8,16,"labels.inputs.Name")),a(3),I(i.collateralForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,18,"labels.inputs.Type/Quality")),a(3),I(i.collateralForm.controls.quality.hasError("required")?16:-1),a(3),h(m(20,20,"labels.inputs.Unit Type")),a(3),I(i.collateralForm.controls.unitType.hasError("required")?22:-1),a(3),h(m(26,22,"labels.inputs.Base Price")),a(3),I(i.collateralForm.controls.basePrice.hasError("required")?28:-1),a(3),h(m(32,24,"labels.inputs.Percentage to Base")),a(3),I(i.collateralForm.controls.pctToBase.hasError("required")?34:-1),a(3),h(m(38,26,"labels.heading.Currency")),a(3),we(i.collateralTemplateData),a(2),I(i.collateralForm.controls.currency.hasError("required")?42:-1),a(2),g("routerLink",oe(30,JLt)),a(),v(" ",m(46,28,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,he],encapsulation:2})}}return e})();var aVt=()=>["edit"],z3=(()=>{class e{constructor(){this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.collateralData=t.collateral})}deleteCollateral(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.Collateral")+" "+this.collateralData.id}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteCollateral(this.collateralData.id).subscribe(()=>{this.router.navigate(["/products/collaterals"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-collateral"]],decls:43,vars:32,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.deleteCollateral()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r()(),l(9,"div",5)(10,"mat-card")(11,"mat-card-content")(12,"div",6)(13,"div",7),c(14),p(15,"translate"),r(),l(16,"div",8),c(17),r(),l(18,"div",7),c(19),p(20,"translate"),r(),l(21,"div",8),c(22),r(),l(23,"div",7),c(24),p(25,"translate"),r(),l(26,"div",8),c(27),r(),l(28,"div",7),c(29),p(30,"translate"),r(),l(31,"div",8),c(32),r(),l(33,"div",7),c(34),p(35,"translate"),r(),l(36,"div",8),c(37),r(),l(38,"div",7),c(39),p(40,"translate"),r(),l(41,"div",8),c(42),r()()()()()),n&2&&(a(),g("routerLink",oe(31,aVt)),a(2),v(" ",m(4,15,"labels.heading.Edit")," "),a(4),v(" ",m(8,17,"labels.heading.Delete")," "),a(7),v(" ",m(15,19,"labels.inputs.Collateral Name")," "),a(3),v(" ",i.collateralData.name," "),a(2),v(" ",m(20,21,"labels.inputs.Type/Quality")," "),a(3),v(" ",i.collateralData.quality," "),a(2),v(" ",m(25,23,"labels.inputs.Base Price")," "),a(3),v(" ",i.collateralData.basePrice," "),a(2),v(" ",m(30,25,"labels.inputs.Base Percentage")," "),a(3),v(" ",i.collateralData.pctToBase," "),a(2),v(" ",m(35,27,"labels.inputs.Unit Type")," "),a(3),v(" ",i.collateralData.unitType," "),a(2),v(" ",m(40,29,"labels.heading.Currency")," "),a(3),v(" ",i.collateralData.currency," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var KI=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getLoanProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var XI=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getLoanProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var ZI=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getLoanProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var e6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getLoanProduct(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var t6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getSavingProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var i6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getSavingProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var n6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getSavingProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var o6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("productId");return this.productsService.getSavingProduct(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var a6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getShareProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var r6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getShareProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var H3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getShareProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var l6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getShareProduct(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var s6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getRecurringDepositProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var c6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getRecurringDepositProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var p6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getCharges()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var G3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getCharge(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var m6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getChargesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var d6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getFixedDepositProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var u6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getFixedDepositProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var f6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getProductMixes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var j3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getFloatingRates()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var hh=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getFloatingRate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var gh=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getProductMix(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var h6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxComponents()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var g6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxGroups()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var _h=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getTaxComponent(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var _6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxComponentTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var rVt=()=>["../"];function lVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function sVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function pVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),l(5,"strong"),c(6),p(7,"translate"),r()()),e&2&&(a(),ea(" ",m(2,4,"labels.inputs.Currency")," ",m(3,6,"labels.inputs.Type")," ",m(4,8,"labels.commons.is")," "),a(5),h(m(7,10,"labels.commons.required")))}function mVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function dVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Time Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function fVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Calculation Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function gVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Payment Mode")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _Vt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",21),Se(5,hVt,3,5,"mat-option",5,Pe),r(),E(7,gVt,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Charge Payment By")),a(3),we(t.chargeData.chargePaymetModeOptions),a(2),I(t.chargeForm.controls.chargePaymentMode.hasError("required")?7:-1)}}function CVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vVt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.minimumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.maxCap.value,") ")}}function xVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",22),E(5,vVt,3,4,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Minimum Charge Cap")),a(3),I(t.chargeForm.controls.minCap.hasError("maxValue")?5:-1)}}function bVt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.minCap.value,") ")}}function yVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",23),E(5,bVt,3,4,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Maximum Charge Cap")),a(3),I(t.chargeForm.controls.maxCap.hasError("minValue")?5:-1)}}function SVt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w();g("inputFormControl",t.chargeForm.controls.incomeAccountId)("glAccountList",t.chargeData.incomeOrLiabilityAccountOptions.incomeAccountOptions)("required",!0)("inputLabel","Income from Charge")}}function wVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function PVt(e,o){if(e&1&&(l(0,"mat-select",13),Se(1,wVt,2,2,"mat-option",5,Pe),r()),e&2){let t=w();a(),we(t.chargeData.taxGroupOptions)}}function TVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function MVt(e,o){if(e&1&&(l(0,"mat-select",13),Se(1,TVt,2,2,"mat-option",5,Pe),r()),e&2){let t=w();a(),we(t.chargeData.taxGroupOptions)}}function DVt(e,o){if(e&1){let t=Y();l(0,"div",14)(1,"mat-checkbox",24),R("change",function(i){V(t);let s=w();return q(s.getFeeFrequency(i.checked))}),c(2),p(3,"translate"),r()()}if(e&2){let t=w();a(),g("checked",t.addFeeFrequency&&t.showFeeOptions),a(),v(" ",m(3,2,"labels.inputs.Add Fee Frequency")," ")}}function EVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Frequency Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function IVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",25),E(5,EVt,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Frequency Interval")),a(3),I(t.chargeForm.controls.feeInterval.hasError("required")?5:-1)}}function OVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function AVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Add Fee Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",26),Se(5,OVt,3,5,"mat-option",5,Pe),r(),E(7,AVt,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Charge Frequency")),a(3),we(t.chargeData.feeFrequencyOptions),a(2),I(t.chargeForm.controls.feeFrequency.hasError("required")?7:-1)}}function kVt(e,o){e&1&&(l(0,"div",17)(1,"mat-checkbox",27),c(2),p(3,"translate"),p(4,"translate"),r()()),e&2&&(a(2),le(" ",m(3,2,"labels.commons.Is")," ",m(4,4,"labels.inputs.Penalty")," "))}function BVt(e,o){if(e&1&&(l(0,"button",28),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.chargeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var $3=(()=>{class e{constructor(){this.productsService=T(ci),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.showPenalty=!0,this.addFeeFrequency=!0,this.showGLAccount=!1,this.chargePaymentMode=!1,this.showFeeOptions=!1,this.route.data.subscribe(t=>{this.chargeData=t.chargesTemplate})}ngOnInit(){this.editChargeForm()}editChargeForm(){switch(this.showFeeOptions=this.chargeData.feeInterval&&this.chargeData.feeInterval>0,this.chargeForm=this.formBuilder.group({name:[this.chargeData.name,ce.required],chargeAppliesTo:[{value:this.chargeData.chargeAppliesTo.id,disabled:!0},ce.required],currencyCode:[this.chargeData.currency.code,ce.required],amount:[this.chargeData.amount,ce.required],active:[this.chargeData.active],penalty:[this.chargeData.penalty],minCap:[this.chargeData.minCap||null,[_3("maxCap")]],maxCap:[this.chargeData.maxCap||null,[g3("minCap")]],chargeTimeType:[this.chargeData.chargeTimeType.id,ce.required],chargeCalculationType:[this.chargeData.chargeCalculationType.id,ce.required]}),this.chargeData.chargeAppliesTo.value){case"Loan":{this.chargeTimeTypeOptions=this.chargeData.loanChargeTimeTypeOptions,this.chargeCalculationTypeOptions=this.chargeData.loanChargeCalculationTypeOptions,this.addFeeFrequency=!0,this.chargePaymentMode=!0,this.chargeForm.addControl("chargePaymentMode",this.formBuilder.control(this.chargeData.chargePaymentMode.id,ce.required)),this.showFeeOptions&&(this.getFeeFrequency(this.showFeeOptions),this.chargeForm.patchValue({feeInterval:this.chargeData.feeInterval,feeFrequency:this.chargeData.feeFrequency.id}));break}case"Savings":{this.chargeTimeTypeOptions=this.chargeData.savingsChargeTimeTypeOptions,this.chargeCalculationTypeOptions=this.chargeData.savingsChargeCalculationTypeOptions,this.addFeeFrequency=!1;break}case"Shares":{this.chargeTimeTypeOptions=this.chargeData.shareChargeTimeTypeOptions,this.chargeCalculationTypeOptions=this.chargeData.shareChargeCalculationTypeOptions,this.addFeeFrequency=!1,this.showGLAccount=!1,this.showPenalty=!1;break}default:{this.chargeCalculationTypeOptions=this.chargeData.clientChargeCalculationTypeOptions,this.chargeTimeTypeOptions=this.chargeData.clientChargeTimeTypeOptions,this.showGLAccount=!0,this.addFeeFrequency=!1,this.chargeForm.addControl("incomeAccountId",this.formBuilder.control(this.chargeData.incomeOrLiabilityAccount?.id,ce.required));break}}this.chargeData.taxGroup?this.chargeForm.addControl("taxGroupId",this.formBuilder.control({value:this.chargeData.taxGroup.id,disabled:!0})):this.chargeForm.addControl("taxGroupId",this.formBuilder.control({value:""}))}getFeeFrequency(t){this.showFeeOptions=t,t?(this.chargeForm.addControl("feeInterval",this.formBuilder.control("",ce.required)),this.chargeForm.addControl("feeFrequency",this.formBuilder.control("",ce.required))):(this.chargeForm.removeControl("feeInterval"),this.chargeForm.removeControl("feeFrequency"))}submit(){let t=this.chargeForm.getRawValue();t.locale=this.settingsService.language.code,t.taxGroupId.value===""&&delete t.taxGroupId,t.minCap||delete t.minCap,t.maxCap||delete t.maxCap,this.productsService.updateCharge(this.chargeData.id.toString(),t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-charge"]],decls:73,vars:46,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","chargeAppliesTo"],[3,"value"],[1,"layout-row-wrap","gap-2percent","layout-lt-md-column","form-section"],["matInput","","required","","autofocus","","formControlName","name"],["required","","formControlName","currencyCode"],["required","","formControlName","chargeTimeType"],["required","","formControlName","chargeCalculationType"],["matInput","","required","","autofocus","","type","text","formControlName","amount"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],["formControlName","taxGroupId"],[1,"password-never-expires-wrapper","checkbox","flex-48"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","active"],[1,"send-password-to-email-wrapper","flex-48"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","chargePaymentMode"],["matInput","","autofocus","","formControlName","minCap","mifosxValidateOnFocus",""],["matInput","","autofocus","","formControlName","maxCap","mifosxValidateOnFocus",""],["labelPosition","before",3,"change","checked"],["matInput","","required","","autofocus","","type","text","formControlName","feeInterval"],["required","","formControlName","feeFrequency"],["labelPosition","before","formControlName","penalty"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,lVt,3,5,"mat-option",5,Pe),r()()(),l(12,"div",6)(13,"mat-form-field",3)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7),E(18,sVt,7,9,"mat-error"),r(),l(19,"mat-form-field",3)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",8),Se(24,cVt,2,2,"mat-option",5,Pe),r(),E(26,pVt,8,12,"mat-error"),r(),l(27,"mat-form-field",3)(28,"mat-label"),c(29),p(30,"translate"),r(),l(31,"mat-select",9),Se(32,mVt,3,5,"mat-option",5,Pe),r(),E(34,dVt,7,9,"mat-error"),r(),l(35,"mat-form-field",3)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",10),Se(40,uVt,3,5,"mat-option",5,Pe),r(),E(42,fVt,7,9,"mat-error"),r(),E(43,_Vt,8,4,"mat-form-field",3),l(44,"mat-form-field",3)(45,"mat-label"),c(46),p(47,"translate"),r(),b(48,"input",11),E(49,CVt,7,9,"mat-error"),r(),E(50,xVt,6,4,"mat-form-field",3),E(51,yVt,6,4,"mat-form-field",3),E(52,SVt,1,4,"mifosx-gl-account-selector",12),l(53,"mat-form-field",3)(54,"mat-label"),c(55),p(56,"translate"),r(),E(57,PVt,3,0,"mat-select",13),E(58,MVt,3,0,"mat-select",13),r(),E(59,DVt,4,4,"div",14),E(60,IVt,6,4,"mat-form-field",3),E(61,FVt,8,4,"mat-form-field",3),r(),l(62,"div",6)(63,"div",15)(64,"mat-checkbox",16),c(65),p(66,"translate"),r()(),E(67,kVt,5,6,"div",17),r()(),l(68,"mat-card-actions",18)(69,"button",19),c(70),p(71,"translate"),r(),F(72,BVt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.chargeForm),a(5),h(m(8,27,"labels.inputs.Charge Applies To")),a(3),we(i.chargeData.chargeAppliesToOptions),a(5),h(m(16,29,"labels.inputs.Name")),a(3),I(i.chargeForm.controls.name.hasError("required")?18:-1),a(3),h(m(22,31,"labels.inputs.Currency")),a(3),we(i.chargeData.currencyOptions),a(2),I(i.chargeForm.controls.currencyCode.hasError("required")?26:-1),a(3),h(m(30,33,"labels.inputs.Charge Time Type")),a(3),we(i.chargeTimeTypeOptions),a(2),I(i.chargeForm.controls.chargeTimeType.hasError("required")?34:-1),a(3),h(m(38,35,"labels.inputs.Charge Calculation")),a(3),we(i.chargeCalculationTypeOptions),a(2),I(i.chargeForm.controls.chargeCalculationType.hasError("required")?42:-1),a(),I(i.chargePaymentMode?43:-1),a(3),h(m(47,37,"labels.inputs.Amount")),a(3),I(i.chargeForm.controls.amount.hasError("required")?49:-1),a(),I(i.chargeForm.controls.chargeAppliesTo.value===1&&(i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeCalculationType.value===3||i.chargeForm.controls.chargeCalculationType.value===4||i.chargeForm.controls.chargeCalculationType.value===5)||i.chargeForm.controls.chargeAppliesTo.value===2&&(i.chargeForm.controls.chargeTimeType.value===16||i.chargeForm.controls.chargeTimeType.value===5)&&i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeAppliesTo.value===4&&(i.chargeForm.controls.chargeTimeType.value===14||i.chargeForm.controls.chargeTimeType.value===15)&&i.chargeForm.controls.chargeCalculationType.value===2?50:-1),a(),I(i.chargeForm.controls.chargeAppliesTo.value===1&&(i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeCalculationType.value===3||i.chargeForm.controls.chargeCalculationType.value===4||i.chargeForm.controls.chargeCalculationType.value===5)||i.chargeForm.controls.chargeAppliesTo.value===2&&(i.chargeForm.controls.chargeTimeType.value===16||i.chargeForm.controls.chargeTimeType.value===5)&&i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeAppliesTo.value===4&&(i.chargeForm.controls.chargeTimeType.value===14||i.chargeForm.controls.chargeTimeType.value===15)&&i.chargeForm.controls.chargeCalculationType.value===2?51:-1),a(),I(i.showGLAccount?52:-1),a(3),h(m(56,39,"labels.inputs.Tax Group")),a(2),I(i.chargeData.taxGroup?57:-1),a(),I(i.chargeData.taxGroup?-1:58),a(),I(i.addFeeFrequency?59:-1),a(),I(i.addFeeFrequency&&i.showFeeOptions?60:-1),a(),I(i.addFeeFrequency&&i.showFeeOptions?61:-1),a(4),v(" ",m(66,41,"labels.status.Active")," "),a(2),I(i.showPenalty?67:-1),a(2),g("routerLink",oe(45,rVt)),a(),v(" ",m(71,43,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,Wg,ta,he,ki],styles:[".checkbox[_ngcontent-%COMP%]{padding-top:10px}.form-section[_ngcontent-%COMP%]{margin-top:10px}"]})}}return e})();var U3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getTaxGroup(n,"false")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var C6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("productId");return this.productsService.getDividends(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var v6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getRecurringDepositProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();function RVt(e,o){e&1&&b(0,"fa-icon",14)}function NVt(e,o){e&1&&b(0,"fa-icon",14)}function LVt(e,o){e&1&&b(0,"fa-icon",15)}function VVt(e,o){e&1&&b(0,"fa-icon",16)}function qVt(e,o){e&1&&b(0,"fa-icon",17)}function zVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function HVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function GVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function jVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function $Vt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function UVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function WVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function QVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function YVt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,QVt,2,3,"ng-template",9),l(2,"mifosx-recurring-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("recurringDepositProductsTemplate",t.recurringDepositProductsTemplate)("chartSlabsDisplayedColumns",t.recurringDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("recurringDepositProduct",t.recurringDepositProduct)}}var W3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.recurringDepositProductsTemplate=t.recurringDepositProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get recurringDepositProductDetailsForm(){return this.recurringDepositProductDetailsStep.recurringDepositProductDetailsForm}get recurringDepositProductCurrencyForm(){return this.recurringDepositProductCurrencyStep.recurringDepositProductCurrencyForm}get recurringDepositProductTermsForm(){return this.recurringDepositProductTermsStep.recurringDepositProductTermsForm}get recurringDepositProductSettingsForm(){return this.recurringDepositProductSettingsStep.recurringDepositProductSettingsForm}get recurringDepositProductInterestRateChartForm(){return this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChartForm}get recurringDepositProductAccountingForm(){return this.recurringDepositProductAccountingStep.recurringDepositProductAccountingForm}get recurringDepositProductFormValidAndNotPrinstine(){return this.recurringDepositProductDetailsForm.valid&&this.recurringDepositProductCurrencyForm.valid&&this.recurringDepositProductTermsForm.valid&&this.recurringDepositProductSettingsForm.valid&&this.recurringDepositProductInterestRateChartForm.valid&&this.recurringDepositProductAccountingForm.valid&&(this.recurringDepositProductDetailsForm.pristine||this.recurringDepositProductCurrencyForm.pristine||this.recurringDepositProductTermsForm.pristine||this.recurringDepositProductSettingsForm.pristine||this.recurringDepositProductInterestRateChartForm.pristine||this.recurringDepositProductAccountingForm.pristine)}get recurringDepositProduct(){return at(at(at(at(at(at(at({},this.recurringDepositProductDetailsStep.recurringDepositProductDetails),this.recurringDepositProductCurrencyStep.recurringDepositProductCurrency),this.recurringDepositProductTermsStep.recurringDepositProductTerms),this.recurringDepositProductSettingsStep.recurringDepositProductSettings),this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChart),this.recurringDepositProductChargesStep.recurringDepositProductCharges),this.recurringDepositProductAccountingStep.recurringDepositProductAccounting)}submit(){let t=qt(at({},this.recurringDepositProduct),{charges:this.recurringDepositProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});t.description||(t.description=""),delete t.advancedAccountingRules,this.productsService.updateRecurringDepositProduct(this.recurringDepositProductsTemplate.id,t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-recurring-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(qm,7),Ee(zm,7),Ee(Hm,7),Ee(Gm,7),Ee(jm,7),Ee($m,7),Ee(Um,7)),n&2){let s;Te(s=Me())&&(i.recurringDepositProductDetailsStep=s.first),Te(s=Me())&&(i.recurringDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.recurringDepositProductTermsStep=s.first),Te(s=Me())&&(i.recurringDepositProductSettingsStep=s.first),Te(s=Me())&&(i.recurringDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.recurringDepositProductChargesStep=s.first),Te(s=Me())&&(i.recurringDepositProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["recurringDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositProductsTemplate"],[3,"recurringDepositProductsTemplate","currencyCode"],[3,"recurringDepositProductsTemplate","accountingRuleData","recurringDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","recurringDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,RVt,1,0,"ng-template",3)(4,NVt,1,0,"ng-template",4)(5,LVt,1,0,"ng-template",5)(6,VVt,1,0,"ng-template",6)(7,qVt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,zVt,2,3,"ng-template",9),b(10,"mifosx-recurring-deposit-product-details-step",10),r(),l(11,"mat-step",8),F(12,HVt,2,3,"ng-template",9),b(13,"mifosx-recurring-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,GVt,2,3,"ng-template",9),b(16,"mifosx-recurring-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,jVt,2,3,"ng-template",9),b(19,"mifosx-recurring-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,$Vt,2,3,"ng-template",9),b(22,"mifosx-recurring-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,UVt,2,3,"ng-template",9),b(25,"mifosx-recurring-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,WVt,2,3,"ng-template",9),b(28,"mifosx-recurring-deposit-product-accounting-step",12),r(),E(29,YVt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.recurringDepositProductDetailsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductCurrencyForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductTermsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductSettingsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductInterestRateChartForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(3),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("currencyCode",i.recurringDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.recurringDepositProductAccountingForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("recurringDepositProductFormValid",i.recurringDepositProductFormValidAndNotPrinstine),a(),I(i.recurringDepositProductFormValidAndNotPrinstine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,qm,zm,Hm,Gm,jm,$m,Um,Ru,he],encapsulation:2})}}return e})();var x6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getRecurringDepositProductAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var b6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("dividendId"),i=t.parent.parent.paramMap.get("productId");return this.productsService.getDividendData(i,n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var y6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getFixedDepositProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var S6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxGroupTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var w6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("id");return this.productsService.getTaxGroup(n,"true")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var P6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getProductsMixTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var JVt=()=>["../"];function KVt(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function XVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one restricted product")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function ZVt(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",7),Se(5,KVt,2,2,"mat-option",8,Pe),r(),E(7,XVt,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Restricted products")),a(3),we(t.productData),a(2),I(t.productMixForm.controls.restrictedProducts.hasError("required")?7:-1)}}function eqt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.productMixForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Q3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.productMixData=t.productMix})}ngOnInit(){this.createProductMixForm(),this.setFormData()}createProductMixForm(){this.productMixForm=this.formBuilder.group({productId:[{value:this.productMixData.productName,disabled:!0}],restrictedProducts:["",ce.required]})}setFormData(){let t=this.productMixData.restrictedProducts;this.productData=[...t,...this.productMixData.allowedProducts],this.productMixForm.get("restrictedProducts").setValue([...t.map(n=>n.id)])}submit(){let t={restrictedProducts:this.productMixForm.value.restrictedProducts},n=this.productMixData.productId;this.productsService.updateProductMix(t,n).subscribe(i=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-product-mix"]],decls:16,vars:11,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","formControlName","productId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","restrictedProducts","multiple",""],[3,"value"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),r(),E(10,ZVt,8,4,"mat-form-field"),r()(),l(11,"mat-card-actions",4)(12,"button",5),c(13),p(14,"translate"),r(),F(15,eqt,3,4,"button",6),r()()()()),n&2&&(a(2),g("formGroup",i.productMixForm),a(5),h(m(8,6,"labels.inputs.Product")),a(3),I(i.productData?10:-1),a(2),g("routerLink",oe(10,JVt)),a(),v(" ",m(14,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PRODUCTMIX"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var T6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getCharge(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();function tqt(e,o){e&1&&b(0,"fa-icon",14)}function iqt(e,o){e&1&&b(0,"fa-icon",14)}function nqt(e,o){e&1&&b(0,"fa-icon",15)}function oqt(e,o){e&1&&b(0,"fa-icon",16)}function aqt(e,o){e&1&&b(0,"fa-icon",17)}function rqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function lqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function sqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function cqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function pqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function mqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function dqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function uqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function fqt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,uqt,2,3,"ng-template",9),l(2,"mifosx-fixed-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("fixedDepositProductsTemplate",t.fixedDepositProductsTemplate)("chartSlabsDisplayedColumns",t.fixedDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("fixedDepositProduct",t.fixedDepositProduct)}}var Y3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.fixedDepositProductsTemplate=t.fixedDepositProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get fixedDepositProductDetailsForm(){return this.fixedDepositProductDetailsStep.fixedDepositProductDetailsForm}get fixedDepositProductCurrencyForm(){return this.fixedDepositProductCurrencyStep.fixedDepositProductCurrencyForm}get fixedDepositProductTermsForm(){return this.fixedDepositProductTermsStep.fixedDepositProductTermsForm}get fixedDepositProductSettingsForm(){return this.fixedDepositProductSettingsStep.fixedDepositProductSettingsForm}get fixedDepositProductInterestRateChartForm(){return this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChartForm}get fixedDepositProductAccountingForm(){return this.fixedDepositProductAccountingStep.fixedDepositProductAccountingForm}get fixedDepositProductFormValidAndNotPrinstine(){return this.fixedDepositProductDetailsForm.valid&&this.fixedDepositProductCurrencyForm.valid&&this.fixedDepositProductTermsForm.valid&&this.fixedDepositProductSettingsForm.valid&&this.fixedDepositProductInterestRateChartForm.valid&&this.fixedDepositProductAccountingForm.valid&&(this.fixedDepositProductDetailsForm.pristine||this.fixedDepositProductCurrencyForm.pristine||this.fixedDepositProductTermsForm.pristine||this.fixedDepositProductSettingsForm.pristine||this.fixedDepositProductInterestRateChartForm.pristine||this.fixedDepositProductAccountingForm.pristine)}get fixedDepositProduct(){return at(at(at(at(at(at(at({},this.fixedDepositProductDetailsStep.fixedDepositProductDetails),this.fixedDepositProductCurrencyStep.fixedDepositProductCurrency),this.fixedDepositProductTermsStep.fixedDepositProductTerms),this.fixedDepositProductSettingsStep.fixedDepositProductSettings),this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChart),this.fixedDepositProductChargesStep.fixedDepositProductCharges),this.fixedDepositProductAccountingStep.fixedDepositProductAccounting)}submit(){let t=qt(at({},this.fixedDepositProduct),{charges:this.fixedDepositProduct.charges.map(i=>({id:i.id})),locale:this.settingsService.language.code});t.description||(t.description="");let n=[];t.charts.forEach(i=>{i.amountRangeFrom===""&&delete i.amountRangeFrom,i.amountRangeTo===""&&delete i.amountRangeTo,n.push(i)}),t.charts=n,delete t.advancedAccountingRules,this.productsService.updateFixedDepositProduct(this.fixedDepositProductsTemplate.id,t).subscribe(i=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-fixed-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Om,7),Ee(Am,7),Ee(Fm,7),Ee(km,7),Ee(Rm,7),Ee(Nm,7),Ee(Lm,7)),n&2){let s;Te(s=Me())&&(i.fixedDepositProductDetailsStep=s.first),Te(s=Me())&&(i.fixedDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.fixedDepositProductTermsStep=s.first),Te(s=Me())&&(i.fixedDepositProductSettingsStep=s.first),Te(s=Me())&&(i.fixedDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.fixedDepositProductChargesStep=s.first),Te(s=Me())&&(i.fixedDepositProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["fixedDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositProductsTemplate"],[3,"fixedDepositProductsTemplate","currencyCode"],[3,"fixedDepositProductsTemplate","accountingRuleData","fixedDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","fixedDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,tqt,1,0,"ng-template",3)(4,iqt,1,0,"ng-template",4)(5,nqt,1,0,"ng-template",5)(6,oqt,1,0,"ng-template",6)(7,aqt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,rqt,2,3,"ng-template",9),b(10,"mifosx-fixed-deposit-product-details-step",10),r(),l(11,"mat-step",8),F(12,lqt,2,3,"ng-template",9),b(13,"mifosx-fixed-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,sqt,2,3,"ng-template",9),b(16,"mifosx-fixed-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,cqt,2,3,"ng-template",9),b(19,"mifosx-fixed-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,pqt,2,3,"ng-template",9),b(22,"mifosx-fixed-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,mqt,2,3,"ng-template",9),b(25,"mifosx-fixed-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,dqt,2,3,"ng-template",9),b(28,"mifosx-fixed-deposit-product-accounting-step",12),r(),E(29,fqt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.fixedDepositProductDetailsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductCurrencyForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductTermsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductSettingsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductInterestRateChartForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(3),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("currencyCode",i.fixedDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.fixedDepositProductAccountingForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("fixedDepositProductFormValid",i.fixedDepositProductFormValidAndNotPrinstine),a(),I(i.fixedDepositProductFormValidAndNotPrinstine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Om,Am,Fm,km,Rm,Nm,Lm,Bu,he],encapsulation:2})}}return e})();var M6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getFixedDepositProductAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Ch=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getCollateral(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var D6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getCollaterals()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var J3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getCollateralTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var K3=()=>["ranges"],X3=()=>["buckets"];function hqt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function gqt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function _qt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,K3)),a(),v(" ",m(2,2,"labels.text.Define delinquency day ranges")," "))}function Cqt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,hqt,1,0,"fa-icon",8),E(7,gqt,1,0,"fa-icon",9),E(8,_qt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,K3)),a(),g("routerLink",oe(10,K3)),a(2),g("routerLink",oe(11,K3)),a(),h(m(5,7,"labels.heading.Manage Delinquency Ranges")),a(2),I(t.arrowBooleans[0]?-1:6),a(),I(t.arrowBooleans[0]?7:-1),a(),I(t.arrowBooleans[0]?8:-1)}}function vqt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function xqt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function bqt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,X3)),a(),v(" ",m(2,2,"labels.text.Define delinquency bucket as set of ranges")," "))}function yqt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,vqt,1,0,"fa-icon",8),E(7,xqt,1,0,"fa-icon",9),E(8,bqt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,X3)),a(),g("routerLink",oe(10,X3)),a(2),g("routerLink",oe(11,X3)),a(),h(m(5,7,"labels.heading.Manage Delinquency Buckets")),a(2),I(t.arrowBooleans[1]?-1:6),a(),I(t.arrowBooleans[1]?7:-1),a(),I(t.arrowBooleans[1]?8:-1)}}var Z3=(()=>{class e{constructor(){this.arrowBooleans=new Array(2).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-delinquency-buckets"]],decls:9,vars:2,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink",4,"mifosxHasPermission"],[3,"routerLink"],["matListIcon","",3,"routerLink"],["icon","building","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list"),F(5,Cqt,9,12,"mat-list-item",3),r()(),l(6,"div",2)(7,"mat-nav-list"),F(8,yqt,9,12,"mat-list-item",3),r()()()()()),n&2&&(a(5),g("mifosxHasPermission","READ_DELINQUENCY_RANGE"),a(3),g("mifosxHasPermission","READ_DELINQUENCY_BUCKET"))},dependencies:[ue,fe,Oe,Ue,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var Sqt=()=>[10,25,50,100],wqt=()=>["create"],Pqt=e=>[e];function Tqt(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,wqt)),a(2),v(" ",m(3,2,"labels.buttons.Create Delinquency Bucket")," "))}function Mqt(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Dqt(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Eqt(e,o){e&1&&b(0,"tr",18)}function Iqt(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,Pqt,t.id))}}var eS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name"],this.route.data.subscribe(t=>{this.delinquencyBucketData=t.delinquencyBuckets})}ngOnInit(){this.setDatasource()}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}setDatasource(){this.dataSource=new Wt(this.delinquencyBucketData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-delinquency-bucket"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Tqt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Mqt,3,3,"th",9)(13,Dqt,2,1,"td",10),Z(),F(14,Eqt,1,0,"tr",11)(15,Iqt,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_DELINQUENCY_BUCKET"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Sqt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.container[_ngcontent-%COMP%] .search-button[_ngcontent-%COMP%]{min-width:30px;margin:4px}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd).td{color:#000}"]})}}return e})();var Oqt=()=>[10,25,50,100],Aqt=()=>["create"],Fqt=e=>[e];function kqt(e,o){e&1&&(l(0,"button",18),b(1,"fa-icon",19),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Aqt)),a(2),v(" ",m(3,2,"labels.text.Create Delinquency Range")," "))}function Bqt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Classification")," "))}function Rqt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.classification)}}function Nqt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Days From")," "))}function Lqt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minimumAgeDays)}}function Vqt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Days Till")," "))}function qqt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maximumAgeDays)}}function zqt(e,o){e&1&&b(0,"tr",24)}function Hqt(e,o){if(e&1&&b(0,"tr",25),e&2){let t=o.$implicit;g("routerLink",Nt(1,Fqt,t.id))}}var tS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["classification","minimumAgeDays","maximumAgeDays"],this.route.data.subscribe(t=>{this.delinquencyRangeData=t.delinquencyRanges})}ngOnInit(){this.setDatasource()}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}setDatasource(){this.dataSource=new Wt(this.delinquencyRangeData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-delinquency-range"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:23,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","classification"],["mat-header-cell","","mat-sort-header","classification",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minimumAgeDays"],["mat-header-cell","","mat-sort-header","minimumAgeDays",4,"matHeaderCellDef"],["matColumnDef","maximumAgeDays"],["mat-header-cell","","mat-sort-header","maximumAgeDays",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header","classification"],["mat-cell",""],["mat-header-cell","","mat-sort-header","minimumAgeDays"],["mat-header-cell","","mat-sort-header","maximumAgeDays"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,kqt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Bqt,3,3,"th",9)(13,Rqt,2,1,"td",10),Z(),X(14,11),F(15,Nqt,3,3,"th",12)(16,Lqt,2,1,"td",10),Z(),X(17,13),F(18,Vqt,3,3,"th",14)(19,qqt,2,1,"td",10),Z(),F(20,zqt,1,0,"tr",15)(21,Hqt,1,3,"tr",16),r(),b(22,"mat-paginator",17),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_DELINQUENCY_RANGE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Oqt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.container[_ngcontent-%COMP%] .search-button[_ngcontent-%COMP%]{min-width:30px;margin:4px}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd).td{color:#000}"]})}}return e})();var Nu=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("bucketId");return n===null?this.productsService.getDelinquencyBuckets():this.productsService.getDelinquencyBucket(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Wm=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("rangeId");return n===null?this.productsService.getDelinquencyRanges():this.productsService.getDelinquencyRange(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Gqt=()=>["edit"];function jqt(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Gqt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function $qt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.deleteDelinquencyRange())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}var iS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.productsService=T(ci),this.route.data.subscribe(t=>{this.delinquencyRangeData=t.delinquencyRange})}deleteDelinquencyRange(){this.dialog.open(vi,{data:{deleteContext:this.delinquencyRangeData.classification}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteDelinquencyRange(this.delinquencyRangeData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-range"]],decls:22,vars:14,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,jqt,4,5,"button",1)(2,$qt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_DELINQUENCY_RANGE"),a(),g("mifosxHasPermission","DELETE_DELINQUENCY_RANGE"),a(6),v(" ",m(9,8,"labels.inputs.Classification")," "),a(3),v(" ",i.delinquencyRangeData.classification," "),a(2),v(" ",m(14,10,"labels.inputs.Days From")," "),a(3),v(" ",i.delinquencyRangeData.minimumAgeDays," "),a(2),v(" ",m(19,12,"labels.inputs.Days Till")," "),a(3),v(" ",i.delinquencyRangeData.maximumAgeDays," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var Uqt=()=>["../"];function Wqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Classification")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Qqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Days From")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Yqt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.delinquencyRangeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var nS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.delinquencyRangeData=t.delinquencyRange})}ngOnInit(){this.setInputForm()}setInputForm(){this.delinquencyRangeForm=this.formBuilder.group({classification:[this.delinquencyRangeData.classification,[ce.required]],minimumAgeDays:[this.delinquencyRangeData.minimumAgeDays,[ce.required,ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e3)]],maximumAgeDays:[this.delinquencyRangeData.maximumAgeDays,[ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e4)]]})}submit(){let t=this.delinquencyRangeForm.value,n=this.settingsService.language.code,i=qt(at({},t),{locale:n});this.productsService.updateDelinquencyRange(this.delinquencyRangeData.id,i).subscribe(s=>{this.router.navigate(["../../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-range"]],decls:27,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","classification"],["matInput","","type","number","required","","formControlName","minimumAgeDays"],["matInput","","type","number","formControlName","maximumAgeDays"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Wqt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,Qqt,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),r()()(),l(22,"mat-card-actions",6)(23,"button",7),c(24),p(25,"translate"),r(),F(26,Yqt,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.delinquencyRangeForm),a(5),h(m(8,9,"labels.inputs.Classification")),a(3),I(i.delinquencyRangeForm.controls.classification.hasError("required")?10:-1),a(3),h(m(14,11,"labels.inputs.Days From")),a(3),I(i.delinquencyRangeForm.controls.minimumAgeDays.hasError("required")?16:-1),a(3),h(m(20,13,"labels.inputs.Days Till")),a(4),g("routerLink",oe(17,Uqt)),a(),v(" ",m(25,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_DELINQUENCY_RANGE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var Jqt=()=>["../"];function Kqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Classification")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Days From")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Days From")," must be a positive number. "))}function ezt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.delinquencyRangeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var oS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot)}ngOnInit(){this.setInputForm()}setInputForm(){this.delinquencyRangeForm=this.formBuilder.group({classification:["",[ce.required]],minimumAgeDays:[0,[ce.required,ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e3)]],maximumAgeDays:["",[ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e4)]]})}submit(){let t=this.delinquencyRangeForm.value,n=this.settingsService.language.code,i=qt(at({},t),{locale:n});this.productsService.createDelinquencyRange(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-range"]],decls:28,vars:19,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","classification"],["matInput","","type","number","required","","formControlName","minimumAgeDays","min","1"],["matInput","","type","number","formControlName","maximumAgeDays"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Kqt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,Xqt,7,9,"mat-error"),E(17,Zqt,3,3,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",5),r()()(),l(23,"mat-card-actions",6)(24,"button",7),c(25),p(26,"translate"),r(),F(27,ezt,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.delinquencyRangeForm),a(5),h(m(8,10,"labels.inputs.Classification")),a(3),I(i.delinquencyRangeForm.controls.classification.hasError("required")?10:-1),a(3),h(m(14,12,"labels.inputs.Days From")),a(3),I(i.delinquencyRangeForm.controls.minimumAgeDays.hasError("required")?16:-1),a(),I(i.delinquencyRangeForm.controls.minimumAgeDays.hasError("pattern")?17:-1),a(3),h(m(21,14,"labels.inputs.Days Till")),a(4),g("routerLink",oe(18,Jqt)),a(),v(" ",m(26,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_DELINQUENCY_RANGE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var tzt=()=>["../"];function izt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function ozt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","classification")," ")}}function azt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days From")))}function rzt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","minimumAgeDays")," ")}}function lzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days Till")))}function szt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","maximumAgeDays")," ")}}function czt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function pzt(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"button",23),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.deleteDelinquencyRange(i))}),b(3,"fa-icon",24),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Delete"))))}function mzt(e,o){e&1&&b(0,"tr",25)}function dzt(e,o){e&1&&b(0,"tr",26)}function uzt(e,o){if(e&1&&(l(0,"button",27),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.bucketForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var aS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.router=T(qe),this.route=T(Ie),this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["classification","minimumAgeDays","maximumAgeDays","actions"],this.route.data.subscribe(t=>{this.delinquencyRangesData=t.delinquencyRanges,this.delinquencyRangesData=this.delinquencyRangesData.sort((n,i)=>n.minimumAgeDays-i.minimumAgeDays)})}ngOnInit(){this.setupForm(),this.rangesDataSource=[],this.delinquencyRangesIds=[]}setupForm(){this.bucketForm=this.formBuilder.group({name:["",ce.required]})}addDelinquencyRange(){let t=this.delinquencyRangesData;this.delinquencyRangesIds.length>0&&(t=this.delinquencyRangesData.filter(d=>this.delinquencyRangesIds.indexOf(d.id)<0));let n=[new $i({controlName:"rangeId",label:"Delinquency Range",options:{label:"classification",value:"id",data:t},order:1})],i={title:"Add Delinquency Range",layout:{addButtonText:"Add"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&(this.rangesDataSource=this.rangesDataSource.concat(d.data.value),this.delinquencyRangesIds.push(d.data.value.rangeId))})}deleteDelinquencyRange(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.delinquencyRangesIds.splice(t,1),this.rangesDataSource.splice(t,1),this.rangesDataSource=this.rangesDataSource.concat([]))})}submit(){let t=[];if(this.rangesDataSource.forEach(n=>{t.push(n.rangeId)}),t.length>0){let n=qt(at({},this.bucketForm.value),{ranges:t});this.productsService.createDelinquencyBucket(n).subscribe(i=>{this.router.navigate(["../",i.resourceId],{relativeTo:this.route})})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-bucket"]],decls:39,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","classification"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minimumAgeDays"],["matColumnDef","maximumAgeDays"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,izt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addDelinquencyRange()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,nzt,3,3,"th",11)(22,ozt,3,6,"td",12),Z(),X(23,13),F(24,azt,3,3,"th",11)(25,rzt,3,6,"td",12),Z(),X(26,14),F(27,lzt,3,3,"th",11)(28,szt,3,6,"td",12),Z(),X(29,15),F(30,czt,3,3,"th",11)(31,pzt,4,4,"td",12),Z(),F(32,mzt,1,0,"tr",16)(33,dzt,1,0,"tr",17),r()()(),l(34,"mat-card-actions",18)(35,"button",19),c(36),p(37,"translate"),r(),F(38,uzt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.bucketForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.bucketForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.heading.Delinquency Ranges")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.rangesDataSource)("hidden",i.rangesDataSource.length===0),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,tzt)),a(),v(" ",m(37,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_DELINQUENCY_BUCKET"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var fzt=()=>["../"];function hzt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function _zt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.classification)}}function Czt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","classification")," ")}}function vzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days From")))}function xzt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minimumAgeDays)}}function bzt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","minimumAgeDays")," ")}}function yzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days Till")))}function Szt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maximumAgeDays)}}function wzt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","maximumAgeDays")," ")}}function Pzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Tzt(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"button",23),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.deleteDelinquencyRange(i))}),b(3,"fa-icon",24),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Delete"))))}function Mzt(e,o){e&1&&b(0,"tr",25)}function Dzt(e,o){e&1&&b(0,"tr",26)}function Ezt(e,o){if(e&1&&(l(0,"button",27),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.dataWasChanged),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var rS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.router=T(qe),this.route=T(Ie),this.dialog=T(Ht),this.translateService=T(yi),this.dataWasChanged=!1,this.displayedColumns=["classification","minimumAgeDays","maximumAgeDays","actions"],this.route.data.subscribe(t=>{this.delinquencyRangesData=t.delinquencyRanges,this.rangesDataSource=[],this.delinquencyRangesIds=[],this.delinquencyRangesData=this.delinquencyRangesData.sort((n,i)=>n.minimumAgeDays-i.minimumAgeDays),this.delinquencyBucketData=t.delinquencyBucket,this.delinquencyBucketId=t.delinquencyBucket.id,this.rangesDataSource=this.delinquencyBucketData.ranges,this.rangesDataSource.forEach(n=>{this.delinquencyRangesIds.push(n.id)})})}ngOnInit(){this.setupForm()}setupForm(){this.bucketForm=this.formBuilder.group({name:[{value:this.delinquencyBucketData.name,disabled:!0},ce.required]})}addDelinquencyRange(){let t=this.delinquencyRangesData;this.delinquencyRangesIds.length>0&&(t=this.delinquencyRangesData.filter(d=>this.delinquencyRangesIds.indexOf(d.id)<0));let n=[new $i({controlName:"rangeId",label:"Delinquency Range",options:{label:"classification",value:"id",data:t},order:1})],i={title:"Add Delinquency Range",layout:{addButtonText:"Add"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=d.data.value,f=this.delinquencyRangesData.filter(_=>_.id===u.rangeId);this.rangesDataSource=this.rangesDataSource.concat(f),this.delinquencyRangesIds.push(f.id),this.dataWasChanged=!0}})}deleteDelinquencyRange(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.delinquencyRangesIds.splice(t,1),this.rangesDataSource.splice(t,1),this.rangesDataSource=this.rangesDataSource.concat([]),this.dataWasChanged=!0)})}submit(){let t=[];if(this.rangesDataSource.forEach(n=>{t.push(n.id)}),t.length>0){let n=qt(at({},this.bucketForm.value),{ranges:t});this.productsService.updateDelinquencyBucket(this.delinquencyBucketId,n).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-bucket"]],decls:42,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","classification"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minimumAgeDays"],["matColumnDef","maximumAgeDays"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,hzt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addDelinquencyRange()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,gzt,3,3,"th",11)(22,_zt,2,1,"td",12)(23,Czt,3,6,"td",12),Z(),X(24,13),F(25,vzt,3,3,"th",11)(26,xzt,2,1,"td",12)(27,bzt,3,6,"td",12),Z(),X(28,14),F(29,yzt,3,3,"th",11)(30,Szt,2,1,"td",12)(31,wzt,3,6,"td",12),Z(),X(32,15),F(33,Pzt,3,3,"th",11)(34,Tzt,4,4,"td",12),Z(),F(35,Mzt,1,0,"tr",16)(36,Dzt,1,0,"tr",17),r()()(),l(37,"mat-card-actions",18)(38,"button",19),c(39),p(40,"translate"),r(),F(41,Ezt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.bucketForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.bucketForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.heading.Delinquency Ranges")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.rangesDataSource)("hidden",i.rangesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,fzt)),a(),v(" ",m(40,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_DELINQUENCY_BUCKET"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var Izt=()=>["edit"];function Ozt(e,o){e&1&&(l(0,"button",11),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Izt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Azt(e,o){if(e&1){let t=Y();l(0,"button",13),R("click",function(){V(t);let i=w();return q(i.deleteDelinquencyBucket())}),b(1,"fa-icon",14),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function Fzt(e,o){if(e&1&&(l(0,"div",10)(1,"div",15),c(2),r(),l(3,"div",16),c(4),r(),l(5,"div",16),c(6),r()()),e&2){let t=o.$implicit;a(2),v(" ",t.classification," "),a(2),v(" ",t.minimumAgeDays," "),a(2),v(" ",t.maximumAgeDays," ")}}var lS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.productsService=T(ci),this.route.data.subscribe(t=>{this.delinquencyBucketData=t.delinquencyBucket,this.delinquencyBucketData.ranges=this.delinquencyBucketData.ranges.sort((n,i)=>n.minimumAge-i.minimumAge)})}deleteDelinquencyBucket(){this.dialog.open(vi,{data:{deleteContext:this.delinquencyBucketData.name}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteDelinquencyBucket(this.delinquencyBucketData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-bucket"]],decls:25,vars:18,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100","layout-row","m-b-10"],[1,"flex-30","mat-body-strong"],[1,"flex-70"],[1,"flex-60","mat-body-strong"],[1,"mat-body-strong","flex-20"],[1,"layout-row-wrap","bucket-range"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"flex-60"],[1,"flex-20","r-value"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Ozt,4,5,"button",1)(2,Azt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5)(8,"div",6),c(9),p(10,"translate"),r(),l(11,"div",7),c(12),r()(),l(13,"div",8),c(14),p(15,"translate"),p(16,"translate"),r(),l(17,"div",9),c(18),p(19,"translate"),r(),l(20,"div",9),c(21),p(22,"translate"),r()(),Se(23,Fzt,7,3,"div",10,Pe),r()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_DELINQUENCY_BUCKET"),a(),g("mifosxHasPermission","DELETE_DELINQUENCY_BUCKET"),a(7),v(" ",m(10,8,"labels.inputs.Name")," "),a(3),v(" ",i.delinquencyBucketData.name," "),a(2),le(" ",m(15,10,"labels.inputs.Classification")," ",m(16,12,"labels.inputs.Name")," "),a(4),v(" ",m(19,14,"labels.inputs.Days From")," "),a(3),v(" ",m(22,16,"labels.inputs.Days Till")," "),a(2),we(i.delinquencyBucketData.ranges))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}.bucket-range[_ngcontent-%COMP%]{height:2rem;vertical-align:middle}.r-value[_ngcontent-%COMP%]{margin:0!important;padding:0 35px 0 0!important;text-align:right!important}"]})}}return e})();var eX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_product_loan")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var kzt=()=>["../edit"];function Bzt(e,o){if(e&1){let t=Y();l(0,"button",4),R("click",function(){V(t);let i=w();return q(i.exportDefinition())}),b(1,"fa-icon",5),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Export")," "))}function Rzt(e,o){e&1&&(l(0,"button",6),b(1,"fa-icon",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,kzt)),a(2),v("",m(3,2,"labels.buttons.Edit")," "))}var sS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.productsService=T(ci),this.settingsService=T(Ot),this.translateService=T(yi),this.useDueForRepaymentsConfigurations=!1,this.route.data.subscribe(t=>{this.loanProduct=t.loanProduct,this.useDueForRepaymentsConfigurations=!this.loanProduct.dueDaysForRepaymentEvent&&!this.loanProduct.overDueDaysForRepaymentEvent})}ngOnInit(){this.loanProduct.allowAttributeConfiguration=Object.values(this.loanProduct.allowAttributeOverrides).some(t=>t)}exportDefinition(){let t=this.loanProduct;delete t.id;let n=t.name.replace(" ","_")+".json",i=document.createElement("a");i.setAttribute("href","data:text/plain;charset=utf-u,"+encodeURIComponent(JSON.stringify(t,null,2))),i.setAttribute("download",n),document.body.appendChild(i),i.click(),document.body.removeChild(i)}copyProduct(){let t=`${this.loanProduct.name.replace(" ","_")}_${this.translateService.instant("labels.text.Copy")}`,n=JSON.parse(JSON.stringify(this.loanProduct)),i=[new vn({controlName:"name",label:this.translateService.instant("labels.inputs.Name"),value:t,type:"text",required:!0,order:2}),new vn({controlName:"shortName",label:this.translateService.instant("labels.inputs.Short Name"),value:"",type:"text",required:!0,order:2})],s={title:`${this.translateService.instant("labels.buttons.Create")} ${this.translateService.instant("labels.inputs.Loan Product")}`,layout:{addButtonText:this.translateService.instant("labels.buttons.Create")},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){n.name=u.data.value.name,n.shortName=u.data.value.shortName,n.delinquencyBucketId=n.delinquencyBucket?n.delinquencyBucket.id:null,n.currencyCode=n.currency?n.currency.code:null,n.interestRatePerPeriod=n.annualInterestRate,n.transactionProcessingStrategyCode=n.transactionProcessingStrategyName,n.allowPartialPeriodInterestCalculation=n.allowPartialPeriodInterestCalculation,n.locale=this.settingsService.language.code;let f=n.daysInMonthType.value;n.daysInMonthType=f,f=n.daysInYearType.value,n.daysInYearType=f,f=n.amortizationType.id,n.amortizationType=f,delete n.id,delete n.advancedPaymentAllocationTransactionTypes,delete n.advancedPaymentAllocationTypes,delete n.creditAllocationTransactionTypes,delete n.creditAllocationAllocationTypes,delete n.delinquencyBucketOptions,delete n.allowAttributeConfiguration,delete n.status,delete n.delinquencyBucket,delete n.currency,delete n.isRatesEnabled,delete n.annualInterestRate,delete n.transactionProcessingStrategyName,delete n.allowPartialPeriodInterestCalculation,delete n.advancedPaymentAllocationFutureInstallmentAllocationRules,this.productsService.createLoanProduct(n).subscribe(_=>{this.router.navigate(["../",_.resourceId],{relativeTo:this.route})})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:4,vars:8,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20","m-t-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[3,"action","loanProduct","useDueForRepaymentsConfigurations","paymentAllocations","creditAllocations","supportedInterestRefundTypes"],["mat-raised-button","","color","primary",3,"click"],["icon","download",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Bzt,4,3,"button",1)(2,Rzt,4,5,"button",2),r(),b(3,"mifosx-loan-product-summary",3)),n&2&&(a(),g("mifosxHasPermission","UPDATE_LOANPRODUCT"),a(),g("mifosxHasPermission","UPDATE_LOANPRODUCT"),a(),g("action","view")("loanProduct",i.loanProduct)("useDueForRepaymentsConfigurations",i.useDueForRepaymentsConfigurations)("paymentAllocations",i.loanProduct.paymentAllocation)("creditAllocations",i.loanProduct.creditAllocation)("supportedInterestRefundTypes",i.loanProduct.supportedInterestRefundTypes))},dependencies:[ue,fe,Oe,xe,Ke,ke,Ou,he],encapsulation:2})}}return e})();var cS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.loanProductDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Loan Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var tX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("productId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var pS=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("productId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var mS=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_savings_product")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Nzt=()=>["../edit"];function Lzt(e,o){e&1&&(l(0,"button",13),b(1,"fa-icon",14),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Nzt)),a(2),v("",m(3,2,"labels.buttons.Edit")," "))}function Vzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.savingProduct.description)}}function qzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Opening Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredOpeningBalance))}}function zzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.savingProduct.lockinPeriodFrequency+" "+t.savingProduct.lockinPeriodFrequencyType.value)}}function Hzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Balance Required for Interest Calculation"),":"),a(3),h(m(6,4,t.savingProduct.minBalanceForInterestCalculation))}}function Gzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredBalance))}}function jzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h(t.savingProduct.taxGroup.name)}}function $zt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),a(3),h(t.savingProduct.minOverdraftForInterestCalculation)}}function Uzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),a(3),v("",t.savingProduct.nominalAnnualInterestRateOverdraft," %")}}function Wzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),a(3),h(m(6,4,t.savingProduct.overdraftLimit))}}function Qzt(e,o){if(e&1&&(l(0,"div",10)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r(),l(6,"span",8),c(7),p(8,"translate"),r(),l(9,"span",9),c(10),r(),l(11,"span",8),c(12),p(13,"translate"),r(),l(14,"span",9),c(15),r()()),e&2){let t=w();a(2),v("",m(3,6,"labels.inputs.Number of Days to Inactive sub-status"),":"),a(3),h(t.savingProduct.daysToInactive),a(2),v("",m(8,8,"labels.inputs.Number of Days to Dormant sub-status"),":"),a(3),h(t.savingProduct.daysToDormancy),a(2),v("",m(13,10,"labels.inputs.Number of Days to Escheat"),":"),a(3),h(t.savingProduct.daysToEscheat)}}function Yzt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Jzt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function Kzt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Xzt(e,o){if(e&1&&(l(0,"td",25),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function Zzt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function eHt(e,o){if(e&1&&(l(0,"td",25),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function tHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function iHt(e,o){if(e&1&&(l(0,"td",25),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function nHt(e,o){e&1&&b(0,"tr",26)}function oHt(e,o){e&1&&b(0,"tr",27)}function aHt(e,o){if(e&1&&(l(0,"div",10)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5),l(5,"table",15),X(6,16),F(7,Yzt,3,3,"th",17)(8,Jzt,2,1,"td",18),Z(),X(9,19),F(10,Kzt,3,3,"th",17)(11,Xzt,3,4,"td",18),Z(),X(12,20),F(13,Zzt,3,3,"th",17)(14,eHt,3,3,"td",18),Z(),X(15,21),F(16,tHt,3,3,"th",17)(17,iHt,3,4,"td",18),Z(),F(18,nHt,1,0,"tr",22)(19,oHt,1,0,"tr",23),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",t.savingProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function rHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function lHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function sHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function cHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.fundSourceAccount.glCode,") ",t.fundSourceAccount.name," ")}}function pHt(e,o){e&1&&b(0,"tr",26)}function mHt(e,o){e&1&&b(0,"tr",27)}function dHt(e,o){if(e&1&&(l(0,"div",12)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",29),X(5,30),F(6,rHt,3,3,"th",17)(7,lHt,2,1,"td",18),Z(),X(8,31),F(9,sHt,3,3,"th",17)(10,cHt,2,2,"td",18),Z(),F(11,pHt,1,0,"tr",22)(12,mHt,1,0,"tr",23),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fund Sources for Payment Channels")),a(2),g("dataSource",t.savingProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function uHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function fHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function hHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function gHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function _Ht(e,o){e&1&&b(0,"tr",26)}function CHt(e,o){e&1&&b(0,"tr",27)}function vHt(e,o){if(e&1&&(l(0,"div",12)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,32),F(6,uHt,3,3,"th",17)(7,fHt,2,1,"td",18),Z(),X(8,33),F(9,hHt,3,3,"th",17)(10,gHt,2,2,"td",18),Z(),F(11,_Ht,1,0,"tr",22)(12,CHt,1,0,"tr",23),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fees to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function xHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function bHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function yHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function SHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function wHt(e,o){e&1&&b(0,"tr",26)}function PHt(e,o){e&1&&b(0,"tr",27)}function THt(e,o){if(e&1&&(l(0,"div",12)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",29),X(5,32),F(6,xHt,3,3,"th",17)(7,bHt,2,1,"td",18),Z(),X(8,33),F(9,yHt,3,3,"th",17)(10,SHt,2,2,"td",18),Z(),F(11,wHt,1,0,"tr",22)(12,PHt,1,0,"tr",23),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function MHt(e,o){if(e&1&&(l(0,"div",12)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5),E(5,dHt,13,6,"div",12),E(6,vHt,13,6,"div",12),E(7,THt,13,6,"div",12),r()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Advanced Accounting Rules")),a(2),g("inset",!0),a(),I(t.savingProduct.paymentChannelToFundSourceMappings!=null&&t.savingProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.savingProduct.feeToIncomeAccountMappings!=null&&t.savingProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.savingProduct.penaltyToIncomeAccountMappings!=null&&t.savingProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var dS=(()=>{class e{constructor(){this.route=T(Ie),this.accounting=T(To),this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.route.data.subscribe(t=>{this.savingProduct=t.savingProduct})}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccounting(this.savingProduct.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccounting(this.savingProduct.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-general-tab"]],decls:134,vars:117,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary","class","m-t-20",3,"routerLink",4,"mifosxHasPermission"],[1,"tab-container"],[1,"responsive-column"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"flex-100",3,"accountingRule","accountingMappings"],[1,"flex-fill","layout-row-wrap","responsive-column"],["mat-raised-button","","color","primary",1,"m-t-20",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"mat-h4","flex-fill"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Lzt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"h2",4),c(5),r(),b(6,"mat-divider",5),l(7,"h3",6),c(8),p(9,"translate"),r(),b(10,"mat-divider",5),l(11,"div",7)(12,"span",8),c(13),p(14,"translate"),r(),l(15,"span",9),c(16),r()(),E(17,Vzt,6,4,"div",7),l(18,"h3",6),c(19),p(20,"translate"),r(),b(21,"mat-divider",5),l(22,"div",7)(23,"span",8),c(24),p(25,"translate"),r(),l(26,"span",9),c(27),r()(),l(28,"div",7)(29,"span",8),c(30),p(31,"translate"),r(),l(32,"span",9),c(33),r()(),l(34,"div",7)(35,"span",8),c(36),p(37,"translate"),r(),l(38,"span",9),c(39),r()(),l(40,"h3",6),c(41),p(42,"translate"),r(),b(43,"mat-divider",5),l(44,"div",7)(45,"span",8),c(46),p(47,"translate"),r(),l(48,"span",9),c(49),p(50,"formatNumber"),r()(),l(51,"div",7)(52,"span",8),c(53),p(54,"translate"),r(),l(55,"span",9),c(56),p(57,"translateKey"),r()(),l(58,"div",7)(59,"span",8),c(60),p(61,"translate"),r(),l(62,"span",9),c(63),p(64,"translateKey"),r()(),l(65,"div",7)(66,"span",8),c(67),p(68,"translate"),r(),l(69,"span",9),c(70),p(71,"translateKey"),r()(),l(72,"div",7)(73,"span",8),c(74),p(75,"translate"),r(),l(76,"span",9),c(77),p(78,"translateKey"),r()(),l(79,"h3",6),c(80),p(81,"translate"),r(),b(82,"mat-divider",5),E(83,qzt,7,6,"div",7),E(84,zzt,6,4,"div",7),l(85,"div",7)(86,"span",8),c(87),p(88,"translate"),r(),l(89,"span",9),c(90),p(91,"yesNo"),r()(),E(92,Hzt,7,6,"div",7),l(93,"div",7)(94,"span",8),c(95),p(96,"translate"),r(),l(97,"span",9),c(98),p(99,"yesNo"),r()(),E(100,Gzt,7,6,"div",7),l(101,"div",7)(102,"span",8),c(103),p(104,"translate"),r(),l(105,"span",9),c(106),p(107,"yesNo"),r()(),E(108,jzt,6,4,"div",7),l(109,"div",7)(110,"span",8),c(111),p(112,"translate"),r(),l(113,"span",9),c(114),p(115,"yesNo"),r()(),E(116,$zt,6,4,"div",7),E(117,Uzt,6,4,"div",7),E(118,Wzt,7,6,"div",7),l(119,"div",7)(120,"span",8),c(121),p(122,"translate"),r(),l(123,"span",9),c(124),p(125,"yesNo"),r()(),E(126,Qzt,16,12,"div",10),E(127,aHt,20,7,"div",10),l(128,"h3",6),c(129),p(130,"translate"),r(),b(131,"mat-divider",5)(132,"mifosx-view-savings-accounting-details",11),E(133,MHt,8,7,"div",12),r()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_SAVINGSPRODUCT"),a(4),h(i.savingProduct.name),a(),g("inset",!0),a(2),h(m(9,55,"labels.heading.Details")),a(2),g("inset",!0),a(3),v("",m(14,57,"labels.inputs.Short Name"),":"),a(3),h(i.savingProduct.shortName),a(),I(i.savingProduct.description?17:-1),a(2),h(m(20,59,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(25,61,"labels.inputs.Currency"),":"),a(3),h(i.savingProduct.currency.name),a(3),v("",m(31,63,"labels.inputs.Decimal Places"),":"),a(3),h(i.savingProduct.currency.decimalPlaces),a(3),v("",m(37,65,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.savingProduct.currency.inMultiplesOf),a(2),h(m(42,67,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(47,69,"labels.inputs.Nominal Annual Interest"),":"),a(3),v("",m(50,71,i.savingProduct.nominalAnnualInterestRate)," %"),a(4),v("",m(54,73,"labels.inputs.Interest Compounding Period"),":"),a(3),h(Ft(57,75,i.savingProduct.interestCompoundingPeriodType.value,"catalogs")),a(4),v("",m(61,78,"labels.inputs.Interest Posting Period"),":"),a(3),h(Ft(64,80,i.savingProduct.interestPostingPeriodType.value,"catalogs")),a(4),v("",m(68,83,"labels.inputs.Interest Calculated using"),":"),a(3),h(Ft(71,85,i.savingProduct.interestCalculationType.value,"catalogs")),a(4),v("",m(75,88,"labels.inputs.Days in Year"),":"),a(3),h(Ft(78,90,i.savingProduct.interestCalculationDaysInYearType.value,"catalogs")),a(3),h(m(81,93,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(i.savingProduct.minRequiredOpeningBalance?83:-1),a(),I(i.savingProduct.lockinPeriodFrequency?84:-1),a(3),v("",m(88,95,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),a(3),h(m(91,97,i.savingProduct.withdrawalFeeForTransfers)),a(2),I(i.savingProduct.minBalanceForInterestCalculation?92:-1),a(3),v("",m(96,99,"labels.inputs.Enforce Minimum Balance"),":"),a(3),h(m(99,101,i.savingProduct.enforceMinRequiredBalance)),a(2),I(i.savingProduct.minRequiredBalance?100:-1),a(3),v("",m(104,103,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(107,105,i.savingProduct.withHoldTax)),a(2),I(i.savingProduct.withHoldTax?108:-1),a(3),v("",m(112,107,"labels.inputs.Is Overdraft Allowed"),":"),a(3),h(m(115,109,i.savingProduct.allowOverdraft)),a(2),I(i.savingProduct.minOverdraftForInterestCalculation?116:-1),a(),I(i.savingProduct.nominalAnnualInterestRateOverdraft?117:-1),a(),I(i.savingProduct.overdraftLimit?118:-1),a(3),v("",m(122,111,"labels.inputs.Enable Dormancy Tracking"),":"),a(3),h(m(125,113,i.savingProduct.isDormancyTrackingActive)),a(2),I(i.savingProduct.isDormancyTrackingActive?126:-1),a(),I(i.savingProduct.charges.length?127:-1),a(2),h(m(130,115,"labels.heading.Accounting")),a(2),g("inset",!0),a(),g("accountingRule",i.savingProduct.accountingRule)("accountingMappings",i.savingProduct.accountingMappings),a(),I(i.savingProduct.paymentChannelToFundSourceMappings!=null&&i.savingProduct.paymentChannelToFundSourceMappings.length||i.savingProduct.feeToIncomeAccountMappings!=null&&i.savingProduct.feeToIncomeAccountMappings.length||i.savingProduct.penaltyToIncomeAccountMappings!=null&&i.savingProduct.penaltyToIncomeAccountMappings.length?133:-1))},dependencies:[ue,fe,Oe,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,he,ki,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.interestCarts[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var uS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.savingProductDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var DHt=()=>["../edit"];function EHt(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,DHt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function IHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.fixedDepositProductData.description)}}function OHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Lock-in Period"),":"),a(3),le(" ",t.fixedDepositProductData.lockinPeriodFrequency," ",t.fixedDepositProductData.lockinPeriodFrequencyType.value)}}function AHt(e,o){if(e&1&&(l(0,"span",9),c(1),r()),e&2){let t=w(2);a(),le("",t.fixedDepositProductData.minDepositTerm," \xA0 ",t.fixedDepositProductData.minDepositTermType.value)}}function FHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),E(4,AHt,2,2,"span",9),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Deposit Term"),":"),a(2),I(t.fixedDepositProductData.minDepositTerm!==void 0?4:-1)}}function kHt(e,o){if(e&1&&(l(0,"span",9),c(1),r()),e&2){let t=w(2);a(),le("",t.fixedDepositProductData.maxDepositTerm," \xA0 ",t.fixedDepositProductData.maxDepositTermType.value)}}function BHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),E(4,kHt,2,2,"span",9),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Deposit Term"),":"),a(2),I(t.fixedDepositProductData.maxDepositTerm!==void 0?4:-1)}}function RHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Deposit Term In multiple of"),":"),a(3),le("",t.fixedDepositProductData.inMultiplesOfDepositTerm," - ",t.fixedDepositProductData.inMultiplesOfDepositTermType.value)}}function NHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Penal Interest")," (%):"),a(3),le("",t.fixedDepositProductData.preClosurePenalInterest," \xA0 \xA0 % \xA0 \xA0 On \xA0\xA0 ",t.fixedDepositProductData.preClosurePenalInterestOnType.value)}}function LHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Balance Required for Interest Calculation"),":"),a(3),h(m(6,4,t.fixedDepositProductData.minBalanceForInterestCalculation))}}function VHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Withhold Tax group"),":"),a(3),h(t.fixedDepositProductData.taxGroup.name)}}function qHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.fixedDepositProductData.activeChart.name)}}function zHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.fixedDepositProductData.activeChart.description)}}function HHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.fixedDepositProductData.activeChart.endDate))}}function GHt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function jHt(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),ea("",t.fromPeriod," - ",t.toPeriod," ",t.periodType.value)}}function $Ht(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function UHt(e,o){if(e&1&&(l(0,"td",29),E(1,jHt,2,3,"div"),E(2,$Ht,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.fromPeriod!==void 0?1:-1),a(),I(t.fromPeriod===void 0?2:-1)}}function WHt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function QHt(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),le("",t.amountRangeFrom," - ",t.amountRangeTo)}}function YHt(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function JHt(e,o){if(e&1&&(l(0,"td",29),E(1,QHt,2,2,"div"),E(2,YHt,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.amountRangeFrom!==void 0?1:-1),a(),I(t.amountRangeFrom===void 0?2:-1)}}function KHt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function XHt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v("",t.annualInterestRate," %")}}function ZHt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function eGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function tGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function iGt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",31),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function nGt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",32),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function oGt(e,o){if(e&1){let t=Y();l(0,"td",29)(1,"button",30),R("click",function(){let i=V(t).dataIndex,s=w(2);return q(s.expandChartSlabIndex=s.expandChartSlabIndex===i?null:i)}),E(2,iGt,4,3,"span"),E(3,nGt,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2);a(2),I(n.expandChartSlabIndex!==t?2:-1),a(),I(n.expandChartSlabIndex===t?3:-1)}}function aGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function rGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.entityType,n.fixedDepositProductsTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function lGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function sGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.attributeName,n.fixedDepositProductsTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function cGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function pGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.conditionType,n.fixedDepositProductsTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function mGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function dGt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.genderOptions,"id","name"))}}function uGt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function fGt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function hGt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function gGt(e,o){if(e&1&&(l(0,"td",29),E(1,dGt,3,6,"span")(2,uGt,2,1,"span")(3,fGt,3,6,"span")(4,hGt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function _Gt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function CGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incentiveType,n.fixedDepositProductsTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function vGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function xGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function bGt(e,o){e&1&&b(0,"tr",43)}function yGt(e,o){e&1&&b(0,"tr",44)}function SGt(e,o){if(e&1&&(l(0,"td",29)(1,"div",33)(2,"mat-card",34)(3,"h4",35),c(4),p(5,"translate"),r(),l(6,"table",36),X(7,37),F(8,aGt,3,3,"th",18)(9,rGt,3,6,"td",19),Z(),X(10,38),F(11,lGt,3,3,"th",18)(12,sGt,3,6,"td",19),Z(),X(13,39),F(14,cGt,3,3,"th",18)(15,pGt,3,6,"td",19),Z(),X(16,40),F(17,mGt,3,3,"th",18)(18,gGt,5,1,"td",19),Z(),X(19,41),F(20,_Gt,3,3,"th",18)(21,CGt,3,6,"td",19),Z(),X(22,42),F(23,vGt,3,3,"th",18)(24,xGt,3,3,"td",19),Z(),F(25,bGt,1,0,"tr",25)(26,yGt,1,0,"tr",26),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2);Dn("colspan",i.chartSlabsDisplayedColumns.length),a(),g("@expandChartSlab",n===i.expandChartSlabIndex?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",i.incentivesDisplayedColumns),a(),g("matRowDefColumns",i.incentivesDisplayedColumns)}}function wGt(e,o){e&1&&b(0,"tr",43)}function PGt(e,o){e&1&&b(0,"tr",44)}function TGt(e,o){e&1&&b(0,"tr",45)}function MGt(e,o){if(e&1&&(l(0,"div",10)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5),l(5,"div",10),E(6,qHt,6,4,"div",7),E(7,zHt,6,4,"div",7),l(8,"div",7)(9,"span",8),c(10),p(11,"translate"),r(),l(12,"span",9),c(13),p(14,"dateFormat"),r()(),E(15,HHt,7,6,"div",7),l(16,"div",7)(17,"span",8),c(18),p(19,"translate"),r(),l(20,"span",9),c(21),p(22,"yesNo"),r()(),l(23,"table",16),X(24,17),F(25,GHt,3,3,"th",18)(26,UHt,3,2,"td",19),Z(),X(27,20),F(28,WHt,3,3,"th",18)(29,JHt,3,2,"td",19),Z(),X(30,21),F(31,KHt,3,3,"th",18)(32,XHt,2,1,"td",19),Z(),X(33,22),F(34,ZHt,3,3,"th",18)(35,eGt,2,1,"td",19),Z(),X(36,23),F(37,tGt,3,3,"th",18)(38,oGt,4,2,"td",19),Z(),X(39,24),F(40,SGt,27,8,"td",19),Z(),F(41,wGt,1,0,"tr",25)(42,PGt,1,0,"tr",26)(43,TGt,1,0,"tr",27),r()()()),e&2){let t=w();a(2),h(m(3,13,"labels.heading.Interest Rate Chart")),a(2),g("inset",!0),a(2),I(t.fixedDepositProductData.activeChart.name?6:-1),a(),I(t.fixedDepositProductData.activeChart.description?7:-1),a(3),v("",m(11,15,"labels.inputs.From Date"),":"),a(3),h(m(14,17,t.fixedDepositProductData.activeChart.fromDate)),a(2),I(t.fixedDepositProductData.activeChart.endDate?15:-1),a(3),v("",m(19,19,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(22,21,t.fixedDepositProductData.activeChart.isPrimaryGroupingByAmount)),a(2),g("dataSource",t.fixedDepositProductData.activeChart.chartSlabs),a(18),g("matHeaderRowDef",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsIncentivesDisplayedColumns)}}function DGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function EGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}function IGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function OGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function AGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function FGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function kGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function BGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function RGt(e,o){e&1&&b(0,"tr",43)}function NGt(e,o){e&1&&b(0,"tr",44)}function LGt(e,o){if(e&1&&(l(0,"div",11)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",46),l(5,"table",36),X(6,47),F(7,DGt,3,3,"th",18)(8,EGt,2,1,"td",19),Z(),X(9,48),F(10,IGt,3,3,"th",18)(11,OGt,2,1,"td",19),Z(),X(12,42),F(13,AGt,3,3,"th",18)(14,FGt,3,3,"td",19),Z(),X(15,49),F(16,kGt,3,3,"th",18)(17,BGt,2,1,"td",19),Z(),F(18,RGt,1,0,"tr",25)(19,NGt,1,0,"tr",26),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Charges")),a(3),g("dataSource",t.fixedDepositProductData.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function VGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function qGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function zGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function HGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.fundSourceAccount.name," ")}}function GGt(e,o){e&1&&b(0,"tr",43)}function jGt(e,o){e&1&&b(0,"tr",44)}function $Gt(e,o){if(e&1&&(l(0,"div",50)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"table",52),X(5,53),F(6,VGt,3,3,"th",18)(7,qGt,2,1,"td",19),Z(),X(8,54),F(9,zGt,3,3,"th",18)(10,HGt,2,1,"td",19),Z(),F(11,GGt,1,0,"tr",25)(12,jGt,1,0,"tr",26),r()()),e&2){let t=w(2);a(2),v(" ",m(3,4,"labels.inputs.Configure Fund Sources for Payment Channels")," "),a(2),g("dataSource",t.fixedDepositProductData.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function UGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function WGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function QGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function YGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function JGt(e,o){e&1&&b(0,"tr",43)}function KGt(e,o){e&1&&b(0,"tr",44)}function XGt(e,o){if(e&1&&(l(0,"div",50)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"table",52),X(5,55),F(6,UGt,3,3,"th",18)(7,WGt,2,1,"td",19),Z(),X(8,56),F(9,QGt,3,3,"th",18)(10,YGt,2,1,"td",19),Z(),F(11,JGt,1,0,"tr",25)(12,KGt,1,0,"tr",26),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fees to Specific Income Accounts")),a(2),g("dataSource",t.fixedDepositProductData.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function ZGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function ejt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function tjt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function ijt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function njt(e,o){e&1&&b(0,"tr",43)}function ojt(e,o){e&1&&b(0,"tr",44)}function ajt(e,o){if(e&1&&(l(0,"div",50)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"table",52),X(5,55),F(6,ZGt,3,3,"th",18)(7,ejt,2,1,"td",19),Z(),X(8,56),F(9,tjt,3,3,"th",18)(10,ijt,2,1,"td",19),Z(),F(11,njt,1,0,"tr",25)(12,ojt,1,0,"tr",26),r()()),e&2){let t=w(2);a(2),v(" ",m(3,4,"labels.heading.Penalties to Specific Income Accounts")," "),a(2),g("dataSource",t.fixedDepositProductData.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function rjt(e,o){if(e&1&&(l(0,"div",13)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5)(5,"hr"),E(6,$Gt,13,6,"div",50),E(7,XGt,13,6,"div",50),E(8,ajt,13,6,"div",50),r()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Advanced Accounting Rules")),a(2),g("inset",!0),a(2),I(t.fixedDepositProductData.paymentChannelToFundSourceMappings!=null&&t.fixedDepositProductData.paymentChannelToFundSourceMappings.length?6:-1),a(),I(t.fixedDepositProductData.feeToIncomeAccountMappings!=null&&t.fixedDepositProductData.feeToIncomeAccountMappings.length?7:-1),a(),I(t.fixedDepositProductData.penaltyToIncomeAccountMappings!=null&&t.fixedDepositProductData.penaltyToIncomeAccountMappings.length?8:-1)}}var fS=(()=>{class e{constructor(){this.route=T(Ie),this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.chartSlabsDisplayedColumns=["period","amountRange","annualInterestRate","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","type","amount","collectedon"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.route.data.subscribe(t=>{this.fixedDepositProductData=t.fixedDepositProduct,this.fixedDepositProductsTemplate=t.fixedDepositProductsTemplate})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-general-tab"]],decls:110,vars:87,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-t-20","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"responsive-column"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"responsive-column","flex-100"],[1,"layout-row-wrap","responsive-column","flex-100"],[1,"container",3,"accountingRule","accountingMappings"],[1,"flex-100","layout-row-wrap","layout-lt-md-column"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","flex-100","layout-row-wrap"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],[1,"flex-100"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","collectedon"],[1,"flex-100","layout-row-wrap","layout-xs-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,EHt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"h2",4),c(7),r(),b(8,"mat-divider",5),l(9,"h3",6),c(10),p(11,"translate"),r(),b(12,"mat-divider",5),l(13,"div",7)(14,"span",8),c(15),p(16,"translate"),r(),l(17,"span",9),c(18),r()(),E(19,IHt,6,4,"div",7),l(20,"h3",6),c(21),p(22,"translate"),r(),b(23,"mat-divider",5),l(24,"div",7)(25,"span",8),c(26),p(27,"translate"),r(),l(28,"span",9),c(29),r()(),l(30,"div",7)(31,"span",8),c(32),p(33,"translate"),r(),l(34,"span",9),c(35),r()(),l(36,"div",7)(37,"span",8),c(38),p(39,"translate"),r(),l(40,"span",9),c(41),p(42,"formatNumber"),r()(),l(43,"h3",6),c(44),p(45,"translate"),r(),b(46,"mat-divider",5),l(47,"div",7)(48,"span",8),c(49),p(50,"translate"),r(),l(51,"span",9),c(52),r()(),l(53,"div",7)(54,"span",8),c(55),p(56,"translate"),r(),l(57,"span",9),c(58),r()(),l(59,"div",7)(60,"span",8),c(61),p(62,"translate"),r(),l(63,"span",9),c(64),r()(),l(65,"div",7)(66,"span",8),c(67),p(68,"translate"),r(),l(69,"span",9),c(70),r()(),l(71,"div",7)(72,"span",8),c(73),p(74,"translate"),r(),l(75,"span",9),c(76),r()(),l(77,"h3",6),c(78),p(79,"translate"),r(),b(80,"mat-divider",5),E(81,OHt,6,5,"div",7),E(82,FHt,5,4,"div",7),E(83,BHt,5,4,"div",7),E(84,RHt,6,5,"div",7),l(85,"div",7)(86,"span",8),c(87),p(88,"translate"),r(),l(89,"span",9),c(90),p(91,"yesNo"),r()(),E(92,NHt,6,5,"div",7),E(93,LHt,7,6,"div",7),l(94,"div",7)(95,"span",8),c(96),p(97,"translate"),r(),l(98,"span",9),c(99),p(100,"yesNo"),r()(),E(101,VHt,6,4,"div",7),E(102,MGt,44,23,"div",10),E(103,LGt,20,6,"div",11),l(104,"h3",6),c(105),p(106,"translate"),r(),b(107,"mat-divider",5)(108,"mifosx-view-savings-accounting-details",12),E(109,rjt,9,7,"div",13),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_SAVINGSPRODUCT"),a(6),h(i.fixedDepositProductData.name),a(),g("inset",!0),a(2),h(m(11,49,"labels.inputs.Details")),a(2),g("inset",!0),a(3),v("",m(16,51,"labels.inputs.Short Name"),":"),a(3),h(i.fixedDepositProductData.shortName),a(),I(i.fixedDepositProductData.description?19:-1),a(2),h(m(22,53,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(27,55,"labels.heading.Currency"),":"),a(3),le("(",i.fixedDepositProductData.currency.code,") ",i.fixedDepositProductData.currency.name),a(3),v("",m(33,57,"labels.inputs.Decimal Places"),":"),a(3),h(i.fixedDepositProductData.currency.decimalPlaces),a(3),v("",m(39,59,"labels.inputs.Currency in multiples of"),":"),a(3),h(m(42,61,i.fixedDepositProductData.currency.inMultiplesOf)),a(3),h(m(45,63,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(50,65,"labels.inputs.Deposit Amount"),":"),a(3),h(i.fixedDepositProductData.depositAmount+" (Min: "+(i.fixedDepositProductData.minDepositAmount?i.fixedDepositProductData.minDepositAmount:i.fixedDepositProductData.depositAmount)+", Max: "+(i.fixedDepositProductData.maxDepositAmount?i.fixedDepositProductData.maxDepositAmount:i.fixedDepositProductData.depositAmount)+")"),a(3),v("",m(56,67,"labels.inputs.Interest Compounding Period"),":"),a(3),h(i.fixedDepositProductData.interestCompoundingPeriodType.value),a(3),v("",m(62,69,"labels.inputs.Interest Posting Period"),":"),a(3),h(i.fixedDepositProductData.interestPostingPeriodType.value),a(3),v("",m(68,71,"labels.inputs.Interest Calculated Using"),":"),a(3),h(i.fixedDepositProductData.interestCalculationType.value),a(3),v("",m(74,73,"labels.inputs.Days in Year"),":"),a(3),h(i.fixedDepositProductData.interestCalculationDaysInYearType.value),a(2),h(m(79,75,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(i.fixedDepositProductData.lockinPeriodFrequency?81:-1),a(),I(i.fixedDepositProductData.minDepositTerm?82:-1),a(),I(i.fixedDepositProductData.maxDepositTerm?83:-1),a(),I(i.fixedDepositProductData.inMultiplesOfDepositTerm?84:-1),a(3),v("",m(88,77,"labels.inputs.Apply Penal Interest (less)"),":"),a(3),h(m(91,79,i.fixedDepositProductData.preClosurePenalApplicable)),a(2),I(i.fixedDepositProductData.preClosurePenalApplicable?92:-1),a(),I(i.fixedDepositProductData.minBalanceForInterestCalculation?93:-1),a(3),v("",m(97,81,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(100,83,i.fixedDepositProductData.withHoldTax)),a(2),I(i.fixedDepositProductData.withHoldTax?101:-1),a(),I(i.fixedDepositProductData.activeChart?102:-1),a(),I(i.fixedDepositProductData.charges.length?103:-1),a(2),h(m(106,85,"labels.heading.Accounting")),a(2),g("inset",!0),a(),g("accountingRule",i.fixedDepositProductData.accountingRule)("accountingMappings",i.fixedDepositProductData.accountingMappings),a(),I(i.fixedDepositProductData.advancedAccountingRules&&(i.fixedDepositProductData.paymentChannelToFundSourceMappings!=null&&i.fixedDepositProductData.paymentChannelToFundSourceMappings.length||i.fixedDepositProductData.feeToIncomeAccountMappings!=null&&i.fixedDepositProductData.feeToIncomeAccountMappings.length||i.fixedDepositProductData.penaltyToIncomeAccountMappings!=null&&i.fixedDepositProductData.penaltyToIncomeAccountMappings.length)?109:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.mat-card[_ngcontent-%COMP%] .mat-divider-horizontal.mat-divider-inset[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var hS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.fixedDepositDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Fixed Deposit Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var ljt=()=>["../edit"];function sjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.recurringDepositProduct.description)}}function cjt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le(" ",t.recurringDepositProduct.lockinPeriodFrequency," ",t.recurringDepositProduct.lockinPeriodFrequencyType.value)}}function pjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,cjt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(2),I(t.recurringDepositProduct.lockinPeriodFrequency!==void 0?4:-1)}}function mjt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le("",t.recurringDepositProduct.minDepositTerm," \xA0 ",t.recurringDepositProduct.minDepositTermType.value)}}function djt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,mjt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Deposit Term"),":"),a(2),I(t.recurringDepositProduct.minDepositTerm!==void 0?4:-1)}}function ujt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le("",t.recurringDepositProduct.maxDepositTerm," \xA0 ",t.recurringDepositProduct.maxDepositTermType.value)}}function fjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,ujt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Deposit Term"),":"),a(2),I(t.recurringDepositProduct.maxDepositTerm!==void 0?4:-1)}}function hjt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le("",t.recurringDepositProduct.inMultipleOfDepositTerm," - ",t.recurringDepositProduct.inMultipleOfDepositTermType.value)}}function gjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,hjt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Deposit Term In multiple of"),":"),a(2),I(t.recurringDepositProduct.inMultipleOfDepositTerm!==void 0?4:-1)}}function _jt(e,o){e&1&&(l(0,"span",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function Cjt(e,o){e&1&&(l(0,"span",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Voluntary")," "))}function vjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,_jt,3,3,"span",10),E(5,Cjt,3,3,"span",10),r()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Recurring Deposit Type"),":"),a(2),I(t.recurringDepositProduct.isMandatoryDeposit?4:-1),a(),I(t.recurringDepositProduct.isMandatoryDeposit?-1:5)}}function xjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10)(5,"span",14),c(6),r(),c(7,"%"),l(8,"span",14),c(9,"On"),r(),c(10),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Apply penal interest (less)"),":"),a(4),h(t.recurringDepositProduct.preClosurePenalInterest),a(4),v(" ",t.recurringDepositProduct.preClosurePenalInterestOnType.value," ")}}function bjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Withhold Tax group"),":"),a(3),h(t.recurringDepositProduct.taxGroup.name)}}function yjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.recurringDepositProduct.activeChart.name)}}function Sjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.recurringDepositProduct.activeChart.endDate))}}function wjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.recurringDepositProduct.activeChart.description)}}function Pjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function Tjt(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),ea("",t.fromPeriod," - ",t.toPeriod," ",t.periodType.value)}}function Mjt(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function Djt(e,o){if(e&1&&(l(0,"td",28),E(1,Tjt,2,3,"div"),E(2,Mjt,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.fromPeriod!==void 0?1:-1),a(),I(t.fromPeriod===void 0?2:-1)}}function Ejt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function Ijt(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),le("",t.amountRangeFrom," - ",t.amountRangeTo)}}function Ojt(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function Ajt(e,o){if(e&1&&(l(0,"td",28),E(1,Ijt,2,2,"div"),E(2,Ojt,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.amountRangeFrom!==void 0?1:-1),a(),I(t.amountRangeFrom===void 0?2:-1)}}function Fjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function kjt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.annualInterestRate," ")}}function Bjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function Rjt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function Njt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Ljt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",30),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function Vjt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",31),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function qjt(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).dataIndex,s=w(2);return q(s.expandChartSlabIndex=s.expandChartSlabIndex===i?null:i)}),E(2,Ljt,4,3,"span"),E(3,Vjt,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2);a(2),I(n.expandChartSlabIndex!==t?2:-1),a(),I(n.expandChartSlabIndex===t?3:-1)}}function zjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function Hjt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.entityType,n.recurringDepositProductTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function Gjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function jjt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.attributeName,n.recurringDepositProductTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function $jt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function Ujt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.conditionType,n.recurringDepositProductTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function Wjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function Qjt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductTemplate.chartTemplate.genderOptions,"id","name"))}}function Yjt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function Jjt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function Kjt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function Xjt(e,o){if(e&1&&(l(0,"td",28),E(1,Qjt,3,6,"span")(2,Yjt,2,1,"span")(3,Jjt,3,6,"span")(4,Kjt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function Zjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function e$t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incentiveType,n.recurringDepositProductTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function t$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function i$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function n$t(e,o){e&1&&b(0,"tr",42)}function o$t(e,o){e&1&&b(0,"tr",43)}function a$t(e,o){if(e&1&&(l(0,"td",28)(1,"div",32)(2,"mat-card",33)(3,"h4",34),c(4),p(5,"translate"),r(),l(6,"table",35),X(7,36),F(8,zjt,3,3,"th",17)(9,Hjt,3,6,"td",18),Z(),X(10,37),F(11,Gjt,3,3,"th",17)(12,jjt,3,6,"td",18),Z(),X(13,38),F(14,$jt,3,3,"th",17)(15,Ujt,3,6,"td",18),Z(),X(16,39),F(17,Wjt,3,3,"th",17)(18,Xjt,5,1,"td",18),Z(),X(19,40),F(20,Zjt,3,3,"th",17)(21,e$t,3,6,"td",18),Z(),X(22,41),F(23,t$t,3,3,"th",17)(24,i$t,2,1,"td",18),Z(),F(25,n$t,1,0,"tr",24)(26,o$t,1,0,"tr",25),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2);Dn("colspan",i.chartSlabsDisplayedColumns.length),a(),g("@expandChartSlab",n===i.expandChartSlabIndex?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",i.incentivesDisplayedColumns),a(),g("matRowDefColumns",i.incentivesDisplayedColumns)}}function r$t(e,o){e&1&&b(0,"tr",42)}function l$t(e,o){e&1&&b(0,"tr",43)}function s$t(e,o){e&1&&b(0,"tr",44)}function c$t(e,o){if(e&1&&(l(0,"div",11)(1,"h3",7),c(2),p(3,"translate"),r(),b(4,"mat-divider",6),l(5,"div",11),E(6,yjt,6,4,"div",8),l(7,"div",8)(8,"span",9),c(9),p(10,"translate"),r(),l(11,"span",10),c(12),p(13,"dateFormat"),r()(),E(14,Sjt,7,6,"div",8),E(15,wjt,6,4,"div",8),l(16,"div",8)(17,"span",9),c(18),p(19,"translate"),r(),l(20,"span",10),c(21),p(22,"yesNo"),r()(),l(23,"table",15),X(24,16),F(25,Pjt,3,3,"th",17)(26,Djt,3,2,"td",18),Z(),X(27,19),F(28,Ejt,3,3,"th",17)(29,Ajt,3,2,"td",18),Z(),X(30,20),F(31,Fjt,3,3,"th",17)(32,kjt,2,1,"td",18),Z(),X(33,21),F(34,Bjt,3,3,"th",17)(35,Rjt,2,1,"td",18),Z(),X(36,22),F(37,Njt,3,3,"th",17)(38,qjt,4,2,"td",18),Z(),X(39,23),F(40,a$t,27,8,"td",18),Z(),F(41,r$t,1,0,"tr",24)(42,l$t,1,0,"tr",25)(43,s$t,1,0,"tr",26),r(),b(44,"mat-divider",6),r()()),e&2){let t=w();a(2),h(m(3,14,"labels.heading.Interest Rate Charts")),a(2),g("inset",!0),a(2),I(t.recurringDepositProduct.activeChart.name?6:-1),a(3),v("",m(10,16,"labels.inputs.Valid from Date"),":"),a(3),h(m(13,18,t.recurringDepositProduct.activeChart.fromDate)),a(2),I(t.recurringDepositProduct.activeChart.endDate?14:-1),a(),I(t.recurringDepositProduct.activeChart.description?15:-1),a(3),v("",m(19,20,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(22,22,t.recurringDepositProduct.activeChart.isPrimaryGroupingByAmount)),a(2),g("dataSource",t.recurringDepositProduct.activeChart.chartSlabs),a(18),g("matHeaderRowDef",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsIncentivesDisplayedColumns),a(),g("inset",!0)}}function p$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function m$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}function d$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function u$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function f$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function h$t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function g$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function _$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function C$t(e,o){e&1&&b(0,"tr",42)}function v$t(e,o){e&1&&b(0,"tr",43)}function x$t(e,o){if(e&1&&(l(0,"div",11)(1,"h3",7),c(2),p(3,"translate"),r(),b(4,"mat-divider",6),l(5,"table",35),X(6,45),F(7,p$t,3,3,"th",17)(8,m$t,2,1,"td",18),Z(),X(9,46),F(10,d$t,3,3,"th",17)(11,u$t,2,1,"td",18),Z(),X(12,41),F(13,f$t,3,3,"th",17)(14,h$t,3,3,"td",18),Z(),X(15,47),F(16,g$t,3,3,"th",17)(17,_$t,2,1,"td",18),Z(),F(18,C$t,1,0,"tr",24)(19,v$t,1,0,"tr",25),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",t.recurringDepositProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function b$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function y$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function S$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function w$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.fundSourceAccount.name," ")}}function P$t(e,o){e&1&&b(0,"tr",42)}function T$t(e,o){e&1&&b(0,"tr",43)}function M$t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,51),F(6,b$t,3,3,"th",17)(7,y$t,2,1,"td",18),Z(),X(8,52),F(9,S$t,3,3,"th",17)(10,w$t,2,1,"td",18),Z(),F(11,P$t,1,0,"tr",24)(12,T$t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),v(" ",m(3,4,"labels.inputs.Configure Fund Sources for Payment Channels")," "),a(2),g("dataSource",t.recurringDepositProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function D$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function E$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function I$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function O$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function A$t(e,o){e&1&&b(0,"tr",42)}function F$t(e,o){e&1&&b(0,"tr",43)}function k$t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,D$t,3,3,"th",17)(7,E$t,2,1,"td",18),Z(),X(8,54),F(9,I$t,3,3,"th",17)(10,O$t,2,1,"td",18),Z(),F(11,A$t,1,0,"tr",24)(12,F$t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fees to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function B$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function R$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function N$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function L$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function V$t(e,o){e&1&&b(0,"tr",42)}function q$t(e,o){e&1&&b(0,"tr",43)}function z$t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,B$t,3,3,"th",17)(7,R$t,2,1,"td",18),Z(),X(8,54),F(9,N$t,3,3,"th",17)(10,L$t,2,1,"td",18),Z(),F(11,V$t,1,0,"tr",24)(12,q$t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function H$t(e,o){if(e&1&&(l(0,"div",13)(1,"h3",7),c(2),p(3,"translate"),r(),b(4,"mat-divider",6),E(5,M$t,13,6,"div",48),E(6,k$t,13,6,"div",48),E(7,z$t,13,6,"div",48),r()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Advanced Accounting Rules")),a(2),g("inset",!0),a(),I(t.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&t.recurringDepositProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.recurringDepositProduct.feeToIncomeAccountMappings!=null&&t.recurringDepositProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&t.recurringDepositProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var gS=(()=>{class e{constructor(){this.route=T(Ie),this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.chartSlabsDisplayedColumns=["period","amountRange","annualInterestRate","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","type","amount","collectedon"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.route.data.subscribe(t=>{this.recurringDepositProduct=t.recurringDepositProduct,this.recurringDepositProductTemplate=t.recurringDepositProductsTemplate})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-general-tab"]],decls:106,vars:85,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-t-20","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container"],[1,"responsive-column"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[1,"container",3,"accountingRule","accountingMappings"],[1,"flex-100","layout-row-wrap","layout-column.lt-md"],[1,"m-r-5"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","flex-100","layout-row-wrap"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","collectedon"],[1,"flex-100","layout-row-wrap","layout-xs-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"mat-card")(7,"mat-card-content")(8,"div",4)(9,"h2",5),c(10),r(),b(11,"mat-divider",6),l(12,"h3",7),c(13),p(14,"translate"),r(),b(15,"mat-divider",6),l(16,"div",8)(17,"span",9),c(18),p(19,"translate"),r(),l(20,"span",10),c(21),r()(),E(22,sjt,6,4,"div",8),l(23,"h3",7),c(24),p(25,"translate"),r(),b(26,"mat-divider",6),l(27,"div",8)(28,"span",9),c(29),p(30,"translate"),r(),l(31,"span",10),c(32),r()(),l(33,"div",8)(34,"span",9),c(35),p(36,"translate"),r(),l(37,"span",10),c(38),r()(),l(39,"div",8)(40,"span",9),c(41),p(42,"translate"),r(),l(43,"span",10),c(44),p(45,"formatNumber"),r()(),l(46,"h3",7),c(47),p(48,"translate"),r(),b(49,"mat-divider",6),l(50,"div",8)(51,"span",9),c(52),p(53,"translate"),r(),l(54,"span",10),c(55),r()(),l(56,"div",8)(57,"span",9),c(58),p(59,"translate"),r(),l(60,"span",10),c(61),r()(),l(62,"div",8)(63,"span",9),c(64),p(65,"translate"),r(),l(66,"span",10),c(67),r()(),l(68,"div",8)(69,"span",9),c(70),p(71,"translate"),r(),l(72,"span",10),c(73),r()(),l(74,"div",8)(75,"span",9),c(76),p(77,"translate"),r(),l(78,"span",10),c(79),r()(),l(80,"h3",7),c(81),p(82,"translate"),r(),b(83,"mat-divider",6),E(84,pjt,5,4,"div",8),E(85,djt,5,4,"div",8),E(86,fjt,5,4,"div",8),E(87,gjt,5,4,"div",8),E(88,vjt,6,5,"div",8),E(89,xjt,11,5,"div",8),l(90,"div",8)(91,"span",9),c(92),p(93,"translate"),r(),l(94,"span",10),c(95),p(96,"yesNo"),r()(),E(97,bjt,6,4,"div",8),E(98,c$t,45,24,"div",11),E(99,x$t,20,7,"div",11),l(100,"h3",7),c(101),p(102,"translate"),r(),b(103,"mat-divider",6)(104,"mifosx-view-savings-accounting-details",12),E(105,H$t,8,7,"div",13),r()()()()),n&2&&(a(),g("routerLink",oe(84,ljt)),a(2),v(" ",m(4,48,"labels.buttons.Edit")," "),a(7),h(i.recurringDepositProduct.name),a(),g("inset",!0),a(2),h(m(14,50,"labels.inputs.Details")),a(2),g("inset",!0),a(3),v("",m(19,52,"labels.inputs.Short Name"),":"),a(3),h(i.recurringDepositProduct.shortName),a(),I(i.recurringDepositProduct.description?22:-1),a(2),h(m(25,54,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(30,56,"labels.heading.Currency"),":"),a(3),le("(",i.recurringDepositProduct.currency.code,") ",i.recurringDepositProduct.currency.name),a(3),v("",m(36,58,"labels.inputs.Decimal Places"),":"),a(3),h(i.recurringDepositProduct.currency.decimalPlaces),a(3),v("",m(42,60,"labels.inputs.Currency in multiples of"),":"),a(3),h(m(45,62,i.recurringDepositProduct.currency.inMultiplesOf)),a(3),h(m(48,64,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(53,66,"labels.inputs.Deposit Amount"),":"),a(3),h(i.recurringDepositProduct.depositAmount+" (Min: "+(i.recurringDepositProduct.minDepositAmount?i.recurringDepositProduct.minDepositAmount:i.recurringDepositProduct.depositAmount)+", Max: "+(i.recurringDepositProduct.maxDepositAmount?i.recurringDepositProduct.maxDepositAmount:i.recurringDepositProduct.depositAmount)+")"),a(3),v("",m(59,68,"labels.inputs.Interest Compounding Period"),":"),a(3),h(i.recurringDepositProduct.interestCompoundingPeriodType.value),a(3),v("",m(65,70,"labels.inputs.Interest Posting Period"),":"),a(3),h(i.recurringDepositProduct.interestPostingPeriodType.value),a(3),v("",m(71,72,"labels.inputs.Interest Calculated using"),":"),a(3),h(i.recurringDepositProduct.interestCalculationType.value),a(3),v("",m(77,74,"labels.inputs.Days in Year"),":"),a(3),h(i.recurringDepositProduct.interestCalculationDaysInYearType.value),a(2),h(m(82,76,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(i.recurringDepositProduct.lockinPeriodFrequency?84:-1),a(),I(i.recurringDepositProduct.minDepositTerm?85:-1),a(),I(i.recurringDepositProduct.maxDepositTerm?86:-1),a(),I(i.recurringDepositProduct.inMultipleOfDepositTerm?87:-1),a(),I(i.recurringDepositProduct.isMandatoryDeposit!==void 0?88:-1),a(),I(i.recurringDepositProduct.preClosurePenalInterest?89:-1),a(3),v("",m(93,78,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(96,80,i.recurringDepositProduct.withHoldTax)),a(2),I(i.recurringDepositProduct.withHoldTax?97:-1),a(),I(i.recurringDepositProduct.activeChart?98:-1),a(),I(i.recurringDepositProduct.charges.length?99:-1),a(2),h(m(102,82,"labels.heading.Accounting")),a(2),g("inset",!0),a(),g("accountingRule",i.recurringDepositProduct.accountingRule)("accountingMappings",i.recurringDepositProduct.accountingMappings),a(),I(i.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&i.recurringDepositProduct.paymentChannelToFundSourceMappings.length||i.recurringDepositProduct.feeToIncomeAccountMappings!=null&&i.recurringDepositProduct.feeToIncomeAccountMappings.length||i.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&i.recurringDepositProduct.penaltyToIncomeAccountMappings.length?105:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.interestCarts[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var _S=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.recurringDepositDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Recurring Deposit Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var G$t=()=>["../edit"],j$t=()=>["../dividends"];function $$t(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,G$t)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function U$t(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,j$t)),a(2),v(" ",m(3,2,"labels.buttons.Dividends")," "))}function W$t(e,o){if(e&1&&(l(0,"div",6)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",8),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.shareProduct.description)}}function Q$t(e,o){if(e&1&&(l(0,"div",6)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",8),c(5),p(6,"translateKey"),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Minimum Active Period"),":"),a(3),le("",t.shareProduct.minimumActivePeriod," ",Ft(6,5,t.shareProduct.minimumActivePeriodForDividendsTypeEnum.value,"catalogs"))}}function Y$t(e,o){if(e&1&&(l(0,"div",6)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",8),c(5),p(6,"translateKey"),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Lock-in Period"),":"),a(3),le("",t.shareProduct.lockinPeriod," ",Ft(6,5,t.shareProduct.lockPeriodTypeEnum.value,"catalogs"))}}function J$t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function K$t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.fromDate)," ")}}function X$t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Nominal/Unit Price")))}function Z$t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.shareValue)," ")}}function eUt(e,o){e&1&&b(0,"tr",22)}function tUt(e,o){e&1&&b(0,"tr",23)}function iUt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",5),c(2),p(3,"translate"),r(),b(4,"mat-divider",4),l(5,"table",13),X(6,14),F(7,J$t,3,3,"th",15)(8,K$t,3,3,"td",16),Z(),X(9,17),F(10,X$t,3,3,"th",15)(11,Z$t,3,3,"td",16),Z(),F(12,eUt,1,0,"tr",18)(13,tUt,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Market Price Period")),a(2),g("inset",!0),a(),g("dataSource",t.shareProduct.marketPrice),a(7),g("matHeaderRowDef",t.marketPriceDisplayedColumns),a(),g("matRowDefColumns",t.marketPriceDisplayedColumns)}}function nUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function oUt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function aUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function rUt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function lUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function sUt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"numberFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function cUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function pUt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function mUt(e,o){e&1&&b(0,"tr",22)}function dUt(e,o){e&1&&b(0,"tr",23)}function uUt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",5),c(2),p(3,"translate"),r(),b(4,"mat-divider",4),l(5,"table",13),X(6,24),F(7,nUt,3,3,"th",15)(8,oUt,2,1,"td",16),Z(),X(9,25),F(10,aUt,3,3,"th",15)(11,rUt,3,4,"td",16),Z(),X(12,26),F(13,lUt,3,3,"th",15)(14,sUt,3,3,"td",16),Z(),X(15,27),F(16,cUt,3,3,"th",15)(17,pUt,3,4,"td",16),Z(),F(18,mUt,1,0,"tr",18)(19,dUt,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",t.shareProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function fUt(e,o){if(e&1&&(l(0,"div",9)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"div",29),b(5,"mifosx-gl-account-display",30),r(),l(6,"h4",28),c(7),p(8,"translate"),r(),l(9,"div",29),b(10,"mifosx-gl-account-display",30),r(),l(11,"h4",28),c(12),p(13,"translate"),r(),l(14,"div",29),b(15,"mifosx-gl-account-display",30),r(),l(16,"h4",28),c(17),p(18,"translate"),r(),l(19,"div",29),b(20,"mifosx-gl-account-display",30),r()()),e&2){let t=w();a(2),h(m(3,16,"labels.heading.Assets")),a(3),g("accountTitle","Share reference")("glAccount",t.shareProduct.accountingMappings.shareReferenceId)("withTitle","40%"),a(2),h(m(8,18,"labels.heading.Liabilities")),a(3),g("accountTitle","Share suspense control")("glAccount",t.shareProduct.accountingMappings.shareSuspenseId)("withTitle","40%"),a(2),h(m(13,20,"labels.heading.Share Equity")),a(3),g("accountTitle","Equity")("glAccount",t.shareProduct.accountingMappings.shareEquityId)("withTitle","40%"),a(2),h(m(18,22,"labels.heading.Income")),a(3),g("accountTitle","Income from fees")("glAccount",t.shareProduct.accountingMappings.incomeFromFeeAccountId)("withTitle","40%")}}var CS=(()=>{class e{constructor(){this.route=T(Ie),this.accounting=T(To),this.marketPriceDisplayedColumns=["fromDate","shareValue"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.route.data.subscribe(t=>{this.shareProduct=t.shareProduct})}getAccountingRuleName(t){return this.accounting.getAccountRuleName(t.toUpperCase())}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-general-tab"]],decls:105,vars:86,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20","m-t-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"tab-container"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["icon","hand-holding-usd",1,"m-r-10"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],[1,"mat-h4","flex-fill"],[1,"flex-fill"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,$$t,4,5,"button",1)(2,U$t,4,5,"button",1),r(),l(3,"div",2)(4,"h2",3),c(5),r(),b(6,"mat-divider",4),l(7,"h3",5),c(8),p(9,"translate"),r(),b(10,"mat-divider",4),l(11,"div",6)(12,"span",7),c(13),p(14,"translate"),r(),l(15,"span",8),c(16),r()(),E(17,W$t,6,4,"div",6),l(18,"h3",5),c(19),p(20,"translate"),r(),b(21,"mat-divider",4),l(22,"div",6)(23,"span",7),c(24),p(25,"translate"),r(),l(26,"span",8),c(27),r()(),l(28,"div",6)(29,"span",7),c(30),p(31,"translate"),r(),l(32,"span",8),c(33),r()(),l(34,"div",6)(35,"span",7),c(36),p(37,"translate"),r(),l(38,"span",8),c(39),r()(),l(40,"h3",5),c(41),p(42,"translate"),r(),b(43,"mat-divider",4),l(44,"div",6)(45,"span",7),c(46),p(47,"translate"),r(),l(48,"span",8),c(49),p(50,"formatNumber"),r()(),l(51,"div",6)(52,"span",7),c(53),p(54,"translate"),r(),l(55,"span",8),c(56),p(57,"formatNumber"),r()(),l(58,"div",6)(59,"span",7),c(60),p(61,"translate"),r(),l(62,"span",8),c(63),p(64,"formatNumber"),r()(),l(65,"div",6)(66,"span",7),c(67),p(68,"translate"),r(),l(69,"span",8),c(70),p(71,"formatNumber"),r()(),l(72,"h3",5),c(73),p(74,"translate"),r(),b(75,"mat-divider",4),l(76,"div",6)(77,"span",7),c(78),p(79,"translate"),r(),l(80,"span",8),c(81),r()(),E(82,Q$t,7,8,"div",6),E(83,Y$t,7,8,"div",6),l(84,"div",6)(85,"span",7),c(86),p(87,"translate"),r(),l(88,"span",8),c(89),p(90,"yesNo"),r()(),E(91,iUt,14,7,"div",9),E(92,uUt,20,7,"div",9),l(93,"h3",5),c(94),p(95,"translate"),r(),b(96,"mat-divider",4),l(97,"div",6)(98,"span",7),c(99),p(100,"translate"),r(),l(101,"span",8),c(102),p(103,"translate"),r()(),E(104,fUt,21,24,"div",9),r()),n&2&&(a(),g("mifosxHasPermission","UPDATE_SHAREPRODUCT"),a(),g("mifosxHasPermission","UPDATE_SHAREPRODUCT"),a(3),h(i.shareProduct.name),a(),g("inset",!0),a(2),h(m(9,42,"labels.inputs.Details")),a(2),g("inset",!0),a(3),v("",m(14,44,"labels.inputs.Short Name"),":"),a(3),h(i.shareProduct.shortName),a(),I(i.shareProduct.description?17:-1),a(2),h(m(20,46,"labels.heading.Currency")),a(2),g("inset",!0),a(3),v("",m(25,48,"labels.inputs.Currency"),":"),a(3),h(i.shareProduct.currency.name),a(3),v("",m(31,50,"labels.inputs.Decimal Places"),":"),a(3),h(i.shareProduct.currency.decimalPlaces),a(3),v("",m(37,52,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.shareProduct.currency.inMultiplesOf),a(2),h(m(42,54,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(47,56,"labels.inputs.Total Number of Shares"),":"),a(3),h(m(50,58,i.shareProduct.totalShares)),a(4),v("",m(54,60,"labels.inputs.Shares to be Issued"),":"),a(3),h(m(57,62,i.shareProduct.totalSharesIssued)),a(4),v("",m(61,64,"labels.inputs.Nominal/Unit Price"),":"),a(3),h(m(64,66,i.shareProduct.unitPrice)),a(4),v("",m(68,68,"labels.inputs.Capital Value"),":"),a(3),h(m(71,70,i.shareProduct.shareCapital)),a(3),h(m(74,72,"labels.heading.Settings")),a(2),g("inset",!0),a(3),v("",m(79,74,"labels.inputs.Shares per Client"),":"),a(3),h(i.shareProduct.nominalShares+" (Min: "+(i.shareProduct.minimumShares?i.shareProduct.minimumShares:i.shareProduct.nominalShares)+", Max: "+(i.shareProduct.maximumShares?i.shareProduct.maximumShares:i.shareProduct.nominalShares)+")"),a(),I(i.shareProduct.minimumActivePeriod?82:-1),a(),I(i.shareProduct.lockinPeriod?83:-1),a(3),v("",m(87,76,"labels.inputs.Allow dividends for inactive clients"),":"),a(3),h(m(90,78,i.shareProduct.allowDividendCalculationForInactiveClients)),a(2),I(i.shareProduct.marketPrice!=null&&i.shareProduct.marketPrice.length?91:-1),a(),I(i.shareProduct.charges.length?92:-1),a(2),h(m(95,80,"labels.heading.Accounting")),a(2),g("inset",!0),a(3),v("",m(100,82,"labels.inputs.Type"),":"),a(3),h(m(103,84,"labels.accounting."+i.getAccountingRuleName(i.shareProduct.accountingRule.value))),a(2),I(i.shareProduct.accountingRule.id===2?104:-1))},dependencies:[ue,fe,Oe,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,as,Pi,he,ki,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}"]})}}return e})();var vS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.shareProductDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Share Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var iX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_share_product")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var nX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("productId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var hUt=[_o.withShell([{path:"products",data:{title:"Products",breadcrumb:"Products"},children:[{path:"",component:$y},{path:"loan-products",data:{title:"Loan Products",breadcrumb:"Loan Products"},children:[{path:"",component:Uy,resolve:{loanProducts:KI}},{path:"create",component:Ky,data:{title:"Create Loan Product",breadcrumb:"Create"},resolve:{loanProductsTemplate:XI,configurations:Wp}},{path:":productId",component:Xy,resolve:{loanProductDatatables:eX},data:{title:"View Loan Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},component:sS,resolve:{loanProduct:ZI}},{path:"datatables",children:[{path:":datatableName",component:cS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanProductDatatable:tX}}]},{path:"edit",component:Zy,data:{title:"Edit Loan Product",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loanProductAndTemplate:e6,configurations:Wp}}]}]},{path:"saving-products",data:{title:"Saving Products",breadcrumb:"Saving Products"},children:[{path:"",component:e3,resolve:{savingProducts:t6}},{path:"create",component:t3,data:{title:"Create Savings Product",breadcrumb:"Create"},resolve:{savingProductsTemplate:i6}},{path:":productId",data:{title:"View Saving Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},resolve:{savingProductDatatables:mS},children:[{path:"",component:i3,children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},component:dS,resolve:{savingProduct:n6}},{path:"datatables",children:[{path:":datatableName",component:uS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{savingProductDatatable:pS}}]}]},{path:"edit",component:n3,data:{title:"Edit Saving Product",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingProductAndTemplate:o6}}]}]},{path:"share-products",data:{title:"Share Products",breadcrumb:"Share Products"},children:[{path:"",component:o3,resolve:{shareProducts:a6}},{path:"create",component:a3,data:{title:"Create Share Product",breadcrumb:"Create"},resolve:{shareProductsTemplate:r6}},{path:":productId",data:{title:"View Share Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},resolve:{shareProductDatatables:iX},children:[{path:"",component:r3,children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},component:CS,resolve:{shareProduct:H3}},{path:"datatables",children:[{path:":datatableName",component:vS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{shareProductDatatable:nX}}]}]},{path:"edit",component:l3,data:{title:"Edit Share Product",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{shareProductAndTemplate:l6}},{path:"dividends",data:{title:"Share Products Dividends",breadcrumb:"Dividends",routeParamBreadcrumb:!1},children:[{path:"",component:I3,resolve:{dividends:C6}},{path:"create",component:A3,data:{title:"Create Dividend",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{shareProduct:H3}},{path:":dividendId",component:k3,data:{title:"View Dividend",routeParamBreadcrumb:"dividendId"},resolve:{dividendData:b6}}]}]}]},{path:"tax-configurations",data:{title:"Manage Tax Configurations",breadcrumb:"Manage Tax Configurations"},children:[{path:"",component:p3},{path:"tax-components",data:{title:"Manage Tax Components",breadcrumb:"Tax Components"},children:[{path:"",component:dh,resolve:{taxComponents:h6}},{path:"create",component:D3,data:{title:"Create Tax Component",breadcrumb:"Create"},resolve:{taxComponentTemplate:_6}},{path:":id",data:{title:"View Tax Component",routeParamBreadcrumb:"id"},resolve:{taxComponent:_h},children:[{path:"",component:M3,resolve:{taxComponent:_h}},{path:"edit",data:{title:"Edit Tax Component",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:fh,resolve:{taxComponent:_h}}]}]},{path:"tax-groups",data:{title:"Manage Tax Groups",breadcrumb:"Tax Groups"},children:[{path:"",component:uh,resolve:{taxGroups:g6}},{path:"create",component:B3,data:{title:"Create Tax Group",breadcrumb:"Create"},resolve:{taxGroupTemplate:S6}},{path:":id",data:{title:"View Tax Group",routeParamBreadcrumb:"id"},resolve:{taxGroup:U3},children:[{path:"",component:E3,resolve:{taxGroup:U3}},{path:"edit",data:{title:"Edit Tax Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:R3,resolve:{taxGroup:w6}}]}]}]},{path:"delinquency-bucket-configurations",data:{title:"Manage Delinquency Bucket Configurations",breadcrumb:"Manage Delinquency Bucket Configurations"},children:[{path:"",component:Z3},{path:"ranges",data:{title:"Manage Delinquency Ranges",breadcrumb:"Delinquency Ranges"},children:[{path:"",component:tS,resolve:{delinquencyRanges:Wm}},{path:"create",component:oS,data:{title:"Create Delinquency Range",breadcrumb:"Create"}},{path:":rangeId",data:{title:"View Delinquency Range",routeParamBreadcrumb:"id"},resolve:{delinquencyRange:Wm},children:[{path:"",component:iS,resolve:{delinquencyRange:Wm}},{path:"edit",data:{title:"Edit Delinquency Range",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:nS,resolve:{delinquencyRange:Wm}}]}]},{path:"buckets",data:{title:"Manage Delinquency Bucket",breadcrumb:"Delinquency Buckets"},children:[{path:"",component:eS,resolve:{delinquencyBuckets:Nu}},{path:"create",component:aS,data:{title:"Create Delinquency Bucket",breadcrumb:"Create"},resolve:{delinquencyRanges:Wm}},{path:":bucketId",data:{title:"View Delinquency Bucket",routeParamBreadcrumb:"id"},resolve:{delinquencyBucket:Nu},children:[{path:"",component:lS,resolve:{delinquencyBucket:Nu}},{path:"edit",data:{title:"Edit Delinquency Bucket",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:rS,resolve:{delinquencyBucket:Nu,delinquencyRanges:Wm}}]}]}]},{path:"recurring-deposit-products",data:{title:"Recurring Deposit Products",breadcrumb:"Recurring Deposit Products"},children:[{path:"create",component:O3,data:{title:"Create Recurring Deposit Product",breadcrumb:"Create"},resolve:{recurringDepositProductsTemplate:v6}},{path:"",component:m3,resolve:{recurringDepositProducts:s6}},{path:":productId",data:{title:"View Recurring Deposit Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},component:u3,resolve:{recurringDepositDatatables:mS},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:gS,resolve:{recurringDepositProduct:c6}},{path:"datatables",children:[{path:":datatableName",component:_S,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{recurringDepositDatatable:pS}}]},{path:"edit",data:{title:"Edit Recurring Deposit Product",breadcrumb:"edit",routeParamBreadcrumb:!1},component:W3,resolve:{recurringDepositProductAndTemplate:x6}}]}]},{path:"fixed-deposit-products",data:{title:"Fixed Deposit Products",breadcrumb:"Fixed Deposit Products"},children:[{path:"create",component:x3,data:{title:"Create Fixed Deposit Product",breadcrumb:"Create"},resolve:{fixedDepositProductsTemplate:u6}},{path:"",component:v3,resolve:{fixedDepositProducts:d6}},{path:":productId",data:{title:"View Fixed Deposit Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},component:F3,resolve:{fixedDepositDatatables:mS},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:fS,resolve:{fixedDepositProduct:y6}},{path:"datatables",children:[{path:":datatableName",component:hS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{fixedDepositDatatable:pS}}]},{path:"edit",data:{title:"Edit Fixed Deposit Product",breadcrumb:"edit",routeParamBreadcrumb:!1},component:Y3,resolve:{fixedDepositProductAndTemplate:M6}}]}]},{path:"products-mix",data:{title:"Products Mix",breadcrumb:"Products Mix"},children:[{path:"create",component:N3,data:{title:"Create Product Mix",breadcrumb:"Create"},resolve:{productsMixTemplate:P6}},{path:"",component:b3,resolve:{products:f6}},{path:":id",data:{title:"View Product Mix",routeParamBreadcrumb:"id"},resolve:{productMix:gh},children:[{path:"",component:T3,resolve:{productMix:gh}},{path:"edit",data:{title:"Edit Product Mix",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Q3,resolve:{productMix:gh}}]}]},{path:"floating-rates",data:{title:"Floating Rates",breadcrumb:"Floating Rates"},children:[{path:"",component:y3,resolve:{floatingrates:j3}},{path:"create",component:S3,data:{title:"Create Floating Rate",breadcrumb:"Create"}},{path:":id",data:{title:"View Floating Rate",routeParamBreadcrumb:"id"},resolve:{floatingRate:hh},children:[{path:"",component:w3,resolve:{floatingRate:hh}},{path:"edit",component:P3,data:{title:"Edit Floating Rate",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{floatingRate:hh}}]}]},{path:"charges",data:{title:"Charges",breadcrumb:"Charges"},children:[{path:"create",component:C3,data:{title:"Create Charge",breadcrumb:"Create Charge"},resolve:{chargesTemplate:m6}},{path:"",component:f3,resolve:{charges:p6}},{path:":id",data:{title:"View Charges",breadcrumb:"id",routeParamBreadcrumb:"id"},resolve:{charge:G3},children:[{path:"",component:h3,resolve:{charge:G3}},{path:"edit",component:$3,data:{title:"Edit Charge",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{chargesTemplate:T6}}]}]},{path:"collaterals",data:{title:"Collaterals",breadcrumb:"Collaterals"},children:[{path:"create",component:V3,data:{title:"Create Collateral",breadcrumb:"Create Collateral"},resolve:{collateralTemplate:J3}},{path:"",component:L3,resolve:{collaterals:D6}},{path:":id",data:{title:"View Collateral",routeParamBreadcrumb:"id"},resolve:{collateral:Ch},children:[{path:"",component:z3,resolve:{collateral:Ch}},{path:"edit",component:q3,data:{title:"Edit Collateral",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{collateralTemplate:J3,collateral:Ch}}]}]}]}])],oX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[KI,XI,ZI,e6,t6,i6,n6,o6,a6,r6,H3,l6,s6,c6,p6,G3,T6,m6,d6,u6,f6,gh,h6,g6,_h,hh,j3,_6,fh,U3,C6,v6,x6,b6,y6,S6,w6,P6,M6,j3,Ch,D6,J3,Wm,Nu],imports:[gn.forChild(hUt),gn]})}}return e})();var aX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,oX,ha,Er,$y,Uy,cm,pm,hm,mm,dm,Iu,um,fm,Au,Ky,p3,m3,f3,h3,v3,dh,b3,y3,S3,w3,P3,Vm,T3,dh,Xy,Zy,e3,Cm,vm,xm,bm,ym,Sm,Fu,t3,i3,n3,o3,wm,Pm,Tm,Mm,Dm,Em,Im,ku,a3,r3,l3,x3,Om,Am,Fm,km,Rm,Nm,Lm,Bu,uh,M3,D3,fh,$3,E3,I3,Bm,u3,O3,Um,$m,zm,qm,jm,Ru,Gm,Hm,W3,A3,k3,F3,B3,R3,N3,Q3,uh,C3,Y3,L3,V3,q3,z3,Z3,eS,tS,oS,iS,nS,lS,aS,rS,cS,sS,dS,uS,fS,hS,_S,gS,CS,vS,Jy,Yy,Ou,_m,Qy]})}}return e})();var gUt=["office"],_Ut=["templateOffice"],CUt=["addEditCurrency"],vUt=["templateAddEditCurrency"],xUt=["holidays"],bUt=["templateHolidays"],yUt=["employee"],SUt=["templateEmployee"],wUt=["workingDays"],PUt=["templateWorkingDays"],TUt=["manageFunds"],MUt=["templateManageFunds"],rX=()=>["offices"],lX=()=>["holidays"],sX=()=>["employees"],cX=()=>["standing-instructions-history"],pX=()=>["investors"],mX=()=>["fund-mapping"],dX=()=>["password-preferences"],uX=()=>["provisioning-criteria"],fX=()=>["entity-data-table-checks"],hX=()=>["currencies"],gX=()=>["manage-funds"],_X=()=>["bulkloan"],CX=()=>["tellers"],vX=()=>["working-days"],xX=()=>["payment-types"],bX=()=>["sms-campaigns"],yX=()=>["adhoc-query"],SX=()=>["bulk-import"];function DUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,rX)),a(),v(" ",m(2,2,"labels.text.Add new office or modify or deactivate office")," "))}function EUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function IUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function OUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",31),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,DUt,3,5,"p",33),r()(),l(9,"div",34),E(10,EUt,1,0,"fa-icon",35),E(11,IUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,rX)),a(4),v(" ",m(7,5,"labels.heading.Manage Offices")," "),a(2),I(t.arrowBooleans[0]?8:-1),a(2),I(t.arrowBooleans[0]?-1:10),a(),I(t.arrowBooleans[0]?11:-1)}}function AUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,lX)),a(),v(" ",m(2,2,"labels.text.Define holidays for office")," "))}function FUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function kUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function BUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",39),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,AUt,3,5,"p",33),r()(),l(9,"div",34),E(10,FUt,1,0,"fa-icon",35),E(11,kUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,lX)),a(4),v(" ",m(7,5,"labels.heading.Manage Holidays")," "),a(2),I(t.arrowBooleans[1]?8:-1),a(2),I(t.arrowBooleans[1]?-1:10),a(),I(t.arrowBooleans[1]?11:-1)}}function RUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,sX)),a(),v(" ",m(2,2,"labels.text.Employee represents loan officers")," "))}function NUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function LUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function VUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",40),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,RUt,3,5,"p",33),r()(),l(9,"div",34),E(10,NUt,1,0,"fa-icon",35),E(11,LUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,sX)),a(4),v(" ",m(7,5,"labels.heading.Manage Employees")," "),a(2),I(t.arrowBooleans[2]?8:-1),a(2),I(t.arrowBooleans[2]?-1:10),a(),I(t.arrowBooleans[2]?11:-1)}}function qUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,cX)),a(),v(" ",m(2,2,"labels.text.View logged history")," "))}function zUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function HUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function GUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",41),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,qUt,3,5,"p",33),r()(),l(9,"div",34),E(10,zUt,1,0,"fa-icon",35),E(11,HUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,cX)),a(4),v(" ",m(7,5,"labels.heading.Standing Instructions History")," "),a(2),I(t.arrowBooleans[3]?8:-1),a(2),I(t.arrowBooleans[3]?-1:10),a(),I(t.arrowBooleans[3]?11:-1)}}function jUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,pX)),a(),v(" ",m(2,2,"labels.text.View the loan account details associated with the investors")," "))}function $Ut(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function UUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function WUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",42),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,jUt,3,5,"p",33),r()(),l(9,"div",34),E(10,$Ut,1,0,"fa-icon",35),E(11,UUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,pX)),a(4),v(" ",m(7,5,"labels.text.Investors")," "),a(2),I(t.arrowBooleans[4]?8:-1),a(2),I(t.arrowBooleans[4]?-1:10),a(),I(t.arrowBooleans[4]?11:-1)}}function QUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,mX)),a(),v(" ",m(2,2,"labels.text.Bulk entry screen for mapping")," "))}function YUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function JUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function KUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,QUt,3,5,"p",33),r()(),l(9,"div",34),E(10,YUt,1,0,"fa-icon",35),E(11,JUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,mX)),a(4),v(" ",m(7,5,"labels.heading.Fund Mapping")," "),a(2),I(t.arrowBooleans[5]?8:-1),a(2),I(t.arrowBooleans[5]?-1:10),a(),I(t.arrowBooleans[5]?11:-1)}}function XUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,dX)),a(),v(" ",m(2,2,"labels.text.The usage of stronger passwords")," "))}function ZUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function eWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function tWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",44),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,XUt,3,5,"p",33),r()(),l(9,"div",34),E(10,ZUt,1,0,"fa-icon",35),E(11,eWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,dX)),a(4),v(" ",m(7,5,"labels.heading.Password Preferences")," "),a(2),I(t.arrowBooleans[6]?8:-1),a(2),I(t.arrowBooleans[6]?-1:10),a(),I(t.arrowBooleans[6]?11:-1)}}function iWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,uX)),a(),v(" ",m(2,2,"labels.text.Loan Provisioning Criteria Organization")," "))}function nWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function oWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function aWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",45),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,iWt,3,5,"p",33),r()(),l(9,"div",34),E(10,nWt,1,0,"fa-icon",35),E(11,oWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,uX)),a(4),v(" ",m(7,5,"labels.heading.Loan Provisioning Criteria")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function rWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,fX)),a(),v(" ",m(2,2,"labels.text.Entity Data Table Checks Organization")," "))}function lWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function sWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function cWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",46),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,rWt,3,5,"p",33),r()(),l(9,"div",34),E(10,lWt,1,0,"fa-icon",35),E(11,sWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,fX)),a(4),v(" ",m(7,5,"labels.heading.Entity Data Table Checks")," "),a(2),I(t.arrowBooleans[8]?8:-1),a(2),I(t.arrowBooleans[8]?-1:10),a(),I(t.arrowBooleans[8]?11:-1)}}function pWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,hX)),a(),v(" ",m(2,2,"labels.text.Currencies available across organization")," "))}function mWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function dWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function uWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",47),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,pWt,3,5,"p",33),r()(),l(9,"div",34),E(10,mWt,1,0,"fa-icon",35),E(11,dWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,hX)),a(4),v(" ",m(7,5,"labels.heading.Currency Configuration")," "),a(2),I(t.arrowBooleans[9]?8:-1),a(2),I(t.arrowBooleans[9]?-1:10),a(),I(t.arrowBooleans[9]?11:-1)}}function fWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,gX)),a(),v(" ",m(2,2,"labels.text.Funds are associated with loans")," "))}function hWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function gWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function _Wt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,fWt,3,5,"p",33),r()(),l(9,"div",34),E(10,hWt,1,0,"fa-icon",35),E(11,gWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,gX)),a(4),v(" ",m(7,5,"labels.heading.Manage Funds")," "),a(2),I(t.arrowBooleans[10]?8:-1),a(2),I(t.arrowBooleans[10]?-1:10),a(),I(t.arrowBooleans[10]?11:-1)}}function CWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,_X)),a(),v(" ",m(2,2,"labels.text.Easy way to reassign all the loan")," "))}function vWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function xWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function bWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,CWt,3,5,"p",33),r()(),l(9,"div",34),E(10,vWt,1,0,"fa-icon",35),E(11,xWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,_X)),a(4),v(" ",m(7,5,"labels.heading.Bulk Loan Reassignment")," "),a(2),I(t.arrowBooleans[11]?8:-1),a(2),I(t.arrowBooleans[11]?-1:10),a(),I(t.arrowBooleans[11]?11:-1)}}function yWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,CX)),a(),v(" ",m(2,2,"labels.text.Manage Tellers / Cashiers")," "))}function SWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function wWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function PWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,yWt,3,5,"p",33),r()(),l(9,"div",34),E(10,SWt,1,0,"fa-icon",35),E(11,wWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,CX)),a(4),v(" ",m(7,5,"labels.heading.Teller / Cashier Management")," "),a(2),I(t.arrowBooleans[12]?8:-1),a(2),I(t.arrowBooleans[12]?-1:10),a(),I(t.arrowBooleans[12]?11:-1)}}function TWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,vX)),a(),v(" ",m(2,2,"labels.text.Working days and configure behaviour of payments")," "))}function MWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function DWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function EWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",39),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,TWt,3,5,"p",33),r()(),l(9,"div",34),E(10,MWt,1,0,"fa-icon",35),E(11,DWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,vX)),a(4),v(" ",m(7,5,"labels.heading.Working Days")," "),a(2),I(t.arrowBooleans[13]?8:-1),a(2),I(t.arrowBooleans[13]?-1:10),a(),I(t.arrowBooleans[13]?11:-1)}}function IWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,xX)),a(),v(" ",m(2,2,"labels.text.Manage payment types")," "))}function OWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function AWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function FWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",48),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,IWt,3,5,"p",33),r()(),l(9,"div",34),E(10,OWt,1,0,"fa-icon",35),E(11,AWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,xX)),a(4),v(" ",m(7,5,"labels.heading.Payment Type")," "),a(2),I(t.arrowBooleans[14]?8:-1),a(2),I(t.arrowBooleans[14]?-1:10),a(),I(t.arrowBooleans[14]?11:-1)}}function kWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,bX)),a(),v(" ",m(2,2,"labels.text.Define SMS Campaigns for Organization")," "))}function BWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function RWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function NWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",49),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,kWt,3,5,"p",33),r()(),l(9,"div",34),E(10,BWt,1,0,"fa-icon",35),E(11,RWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,bX)),a(4),v(" ",m(7,5,"labels.heading.SMS Campaigns")," "),a(2),I(t.arrowBooleans[15]?8:-1),a(2),I(t.arrowBooleans[15]?-1:10),a(),I(t.arrowBooleans[15]?11:-1)}}function LWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,yX)),a(),v(" ",m(2,2,"labels.text.Define AdHocQuery for Organization")," "))}function VWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function qWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function zWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",50),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,LWt,3,5,"p",33),r()(),l(9,"div",34),E(10,VWt,1,0,"fa-icon",35),E(11,qWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,yX)),a(4),v(" ",m(7,5,"labels.heading.AdHocQuery")," "),a(2),I(t.arrowBooleans[16]?8:-1),a(2),I(t.arrowBooleans[16]?-1:10),a(),I(t.arrowBooleans[16]?11:-1)}}function HWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,SX)),a(),v(" ",m(2,2,"labels.text.Bulk data import using excel spreadsheet templates")," "))}function GWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(17))}),r()}}function jWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(17))}),r()}}function $Wt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",51),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,HWt,3,5,"p",33),r()(),l(9,"div",34),E(10,GWt,1,0,"fa-icon",35),E(11,jWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,SX)),a(4),v(" ",m(7,5,"labels.heading.Bulk Import")," "),a(2),I(t.arrowBooleans[17]?8:-1),a(2),I(t.arrowBooleans[17]?-1:10),a(),I(t.arrowBooleans[17]?11:-1)}}function UWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepOffice())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepOffice())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Offices")),a(3),h(m(5,7,"labels.text.Manage Offices page allows you to create, edit")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function WWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepAddEditCurrency())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepAddEditCurrency())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Currency Configuration")),a(3),h(m(5,7,"labels.text.Define what currencies interactions within the Mifos X system")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function QWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepHolidays())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepHolidays())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Holidays")),a(3),h(m(5,7,"labels.text.Ability to manage holidays for individual offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function YWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepEmployee())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepEmployee())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Employees")),a(3),h(m(5,7,"labels.text.View, edit and delete employees of your organization")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function JWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepWorkingDays())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepWorkingDays())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Working Days")),a(3),h(m(5,7,"labels.text.Working days page allows you to define which days")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function KWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepManageFunds())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepManageFunds())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Funds")),a(3),h(m(5,7,"labels.text.This allows you to manage funds associated with loans.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var xS=(()=>{class e{constructor(){this.activatedRoute=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.shouldShowFundMapping=!1,this.arrowBooleans=new Array(18).fill(!1)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCreateOffice===!0&&setTimeout(()=>{this.showPopover(this.templateOffice,this.office.nativeElement,"bottom",!0)}),this.configurationWizardService.showAddEditCurrency===!0&&setTimeout(()=>{this.showPopover(this.templateAddEditCurrency,this.addEditCurrency.nativeElement,"bottom",!0)}),this.configurationWizardService.showCreateHoliday===!0&&setTimeout(()=>{this.showPopover(this.templateHolidays,this.holidays.nativeElement,"bottom",!0)}),this.configurationWizardService.showCreateEmployee===!0&&setTimeout(()=>{this.showPopover(this.templateEmployee,this.employee.nativeElement,"bottom",!0)}),this.configurationWizardService.showDefineWorkingDays===!0&&setTimeout(()=>{this.showPopover(this.templateWorkingDays,this.workingDays.nativeElement,"bottom",!0)}),this.configurationWizardService.showManageFunds===!0&&setTimeout(()=>{this.showPopover(this.templateManageFunds,this.manageFunds.nativeElement,"bottom",!0)})}nextStepOffice(){this.configurationWizardService.showCreateOffice=!1,this.configurationWizardService.showOfficeList=!0,this.router.navigate(["/organization/offices"])}previousStepOffice(){this.configurationWizardService.showCreateOffice=!1,this.configurationWizardService.showHomeSearchActivity=!0,this.router.navigate(["/home"])}nextStepAddEditCurrency(){this.configurationWizardService.showAddEditCurrency=!1,this.configurationWizardService.showCurrencyPage=!0,this.router.navigate(["/organization/currencies"])}previousStepAddEditCurrency(){this.configurationWizardService.showAddEditCurrency=!1,this.configurationWizardService.showOfficeForm=!0,this.router.navigate(["/organization/offices/create"])}nextStepHolidays(){this.configurationWizardService.showCreateHoliday=!1,this.configurationWizardService.showHolidayPage=!0,this.router.navigate(["/organization/holidays"])}previousStepHolidays(){this.configurationWizardService.showCreateHoliday=!1,this.configurationWizardService.showCurrencyForm=!0,this.router.navigate(["/organization/currencies/manage"])}nextStepEmployee(){this.configurationWizardService.showCreateEmployee=!1,this.configurationWizardService.showEmployeeList=!0,this.router.navigate(["/organization/employees"])}previousStepEmployee(){this.configurationWizardService.showCreateEmployee=!1,this.configurationWizardService.showHolidayFilter=!0,this.router.navigate(["/organization/holidays"])}nextStepWorkingDays(){this.router.navigate(["/organization/working-days"])}previousStepWorkingDays(){this.configurationWizardService.showDefineWorkingDays=!1,this.configurationWizardService.showEmployeeForm=!0,this.router.navigate(["/organization/employees/create"])}nextStepManageFunds(){this.router.navigate(["/organization/manage-funds"])}previousStepManageFunds(){this.configurationWizardService.showManageFunds=!1,this.configurationWizardService.showRecurringDepositProductsList=!0,this.router.navigate(["/products/recurring-deposit-products"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-products"]],viewQuery:function(n,i){if(n&1&&(Ee(gUt,5),Ee(_Ut,5),Ee(CUt,5),Ee(vUt,5),Ee(xUt,5),Ee(bUt,5),Ee(yUt,5),Ee(SUt,5),Ee(wUt,5),Ee(PUt,5),Ee(TUt,5),Ee(MUt,5)),n&2){let s;Te(s=Me())&&(i.office=s.first),Te(s=Me())&&(i.templateOffice=s.first),Te(s=Me())&&(i.addEditCurrency=s.first),Te(s=Me())&&(i.templateAddEditCurrency=s.first),Te(s=Me())&&(i.holidays=s.first),Te(s=Me())&&(i.templateHolidays=s.first),Te(s=Me())&&(i.employee=s.first),Te(s=Me())&&(i.templateEmployee=s.first),Te(s=Me())&&(i.workingDays=s.first),Te(s=Me())&&(i.templateWorkingDays=s.first),Te(s=Me())&&(i.manageFunds=s.first),Te(s=Me())&&(i.templateManageFunds=s.first)}},decls:73,vars:18,consts:[["office",""],["holidays",""],["employee",""],["standinginstructions",""],["investor",""],["fundmapping",""],["passwordpreferences",""],["provisioning",""],["entitydatatable",""],["addEditCurrency",""],["manageFunds",""],["bulkloan",""],["tellers",""],["workingDays",""],["paymenttypes",""],["smscampaigns",""],["adhocquery",""],["bulkimport",""],["templateOffice",""],["templateAddEditCurrency",""],["templateHolidays",""],["templateEmployee",""],["templateWorkingDays",""],["templateManageFunds",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[4,"mifosxHasPermission"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","building","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","calendar-alt","size","sm"],["icon","user","size","sm"],["icon","book","size","sm"],["icon","user-tie","size","sm"],["icon","money-bill-alt","size","sm"],["icon","lock","size","sm"],["icon","edit","size","sm"],["icon","check","size","sm"],["icon","cogs","size","sm"],["icon","dollar-sign","size","sm"],["icon","envelope","size","sm"],["icon","chevron-right","size","sm"],["icon","upload","size","sm"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",24)(1,"mat-card")(2,"div",25)(3,"div",26)(4,"mat-nav-list")(5,"div",null,0),F(7,OUt,12,8,"mat-list-item",27),r(),l(8,"div",null,1),F(10,BUt,12,8,"mat-list-item",27),r(),l(11,"div",null,2),F(13,VUt,12,8,"mat-list-item",27),r(),l(14,"div",null,3),F(16,GUt,12,8,"mat-list-item",27),r(),l(17,"div",null,4),F(19,WUt,12,8,"mat-list-item",27),r(),l(20,"div",null,5),F(22,KUt,12,8,"mat-list-item",27),r(),l(23,"div",null,6),F(25,tWt,12,8,"mat-list-item",27),r(),l(26,"div",null,7),F(28,aWt,12,8,"mat-list-item",27),r(),l(29,"div",null,8),F(31,cWt,12,8,"mat-list-item",27),r()()(),l(32,"div",26)(33,"mat-nav-list")(34,"div",null,9),F(36,uWt,12,8,"mat-list-item",27),r(),l(37,"div",null,10),F(39,_Wt,12,8,"mat-list-item",27),r(),l(40,"div",null,11),F(42,bWt,12,8,"mat-list-item",27),r(),l(43,"div",null,12),F(45,PWt,12,8,"mat-list-item",27),r(),l(46,"div",null,13),F(48,EWt,12,8,"mat-list-item",27),r(),l(49,"div",null,14),F(51,FWt,12,8,"mat-list-item",27),r(),l(52,"div",null,15),F(54,NWt,12,8,"mat-list-item",27),r(),l(55,"div",null,16),F(57,zWt,12,8,"mat-list-item",27),r(),l(58,"div",null,17),F(60,$Wt,12,8,"mat-list-item",27),r()()()()()(),F(61,UWt,16,15,"ng-template",null,18,ti)(63,WWt,16,15,"ng-template",null,19,ti)(65,QWt,16,15,"ng-template",null,20,ti)(67,YWt,16,15,"ng-template",null,21,ti)(69,JWt,16,15,"ng-template",null,22,ti)(71,KWt,16,15,"ng-template",null,23,ti)),n&2&&(a(7),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_HOLIDAY"),a(3),g("mifosxHasPermission","READ_STAFF"),a(3),g("mifosxHasPermission","READ_STANDINGINSTRUCTION"),a(3),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_PASSWORD_VALIDATION_POLICY"),a(3),g("mifosxHasPermission","VIEW_PROVISIONS"),a(3),g("mifosxHasPermission","READ_ENTITY_DATATABLE_CHECK"),a(5),g("mifosxHasPermission","READ_CURRENCY"),a(3),g("mifosxHasPermission","READ_FUND"),a(3),g("mifosxHasPermission","BULKREASSIGN_LOAN"),a(3),g("mifosxHasPermission","READ_TELLER"),a(3),g("mifosxHasPermission","READ_WORKINGDAYS"),a(3),g("mifosxHasPermission","READ_PAYMENTTYPE"),a(3),g("mifosxHasPermission","VIEW_SMSCAMPAIGNS"),a(3),g("mifosxHasPermission","VIEW_ADHOC"),a(3),g("mifosxHasPermission","VIEW_BULKIMPORT"))},dependencies:[ue,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var XWt=()=>[10,25,50,100],ZWt=()=>["create"],eQt=e=>[e];function tQt(e,o){e&1&&(l(0,"button",15),b(1,"fa-icon",16),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,ZWt)),a(2),v(" ",m(3,2,"labels.buttons.Create Provisioning Criteria")," "))}function iQt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function nQt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.criteriaName)}}function oQt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function aQt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function rQt(e,o){e&1&&b(0,"tr",19)}function lQt(e,o){if(e&1&&b(0,"tr",20),e&2){let t=o.$implicit;g("routerLink",Nt(1,eQt,t.criteriaId))}}var bS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["criteriaName","createdBy"],this.route.data.subscribe(t=>{this.loanProvisioningCriteriaData=t.loanProvisioningCriterias})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setLoanProvisioningCriteria()}setLoanProvisioningCriteria(){this.dataSource=new Wt(this.loanProvisioningCriteriaData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-provisioning-criteria"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:20,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","criteriaName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,tQt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,iQt,3,3,"th",9)(13,nQt,2,1,"td",10),Z(),X(14,11),F(15,oQt,3,3,"th",9)(16,aQt,2,1,"td",10),Z(),F(17,rQt,1,0,"tr",12)(18,lQt,1,3,"tr",13),r(),b(19,"mat-paginator",14),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_PROVISIONING_CRITERIA"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,XWt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var vh=class{constructor(o,t="",n="",i="",s="",d="",u=""){this.name=o,this.id=t,this.parentId=n,this.hierarchy=i,this.externalId=s,this.parentName=d,this.openingDate=u,this.children=[]}};var wX=(()=>{class e{get treeData(){return this.treeDataChange.value}constructor(){this.treeDataChange=new Ra([])}initialize(t){let n=this.buildOfficeTree(t);this.treeDataChange.next(n)}buildOfficeTree(t){let n=[],i=t.find(d=>d.hierarchy===".");n.push(new vh(i.name,i.id)),t.sort((d,u)=>(d.parentId||(d.parentId=0),d.parentId-u.parentId));let s=[];for(let d of t)s[d.id]=new vh(d.name,d.id,d.parentId,d.hierarchy,d.externalId,d.parentName,d.openingDate);for(let d of t)d.hierarchy!=="."&&(d.parentId===1?n[0].children.push(s[d.id]):s[d.parentId].children.push(s[d.id]));return n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var sQt=["buttonTreeView"],cQt=["templateButtonTreeView"],pQt=["tableOffices"],mQt=["templateTableOffices"],dQt=()=>[10,25,50,100],uQt=()=>["create"],fQt=()=>["/organization","bulk-import","Offices"],hQt=e=>[e,"general"];function gQt(e,o){e&1&&(l(0,"button",40),b(1,"fa-icon",41),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,uQt)),a(2),v(" ",m(3,2,"labels.buttons.Create Office")," "))}function _Qt(e,o){e&1&&(l(0,"button",40),b(1,"fa-icon",42),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,fQt)),a(2),v(" ",m(3,2,"labels.buttons.Import Offices")," "))}function CQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," Office Name ")))}function vQt(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function xQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," External ID ")))}function bQt(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function yQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," Parent Office ")))}function SQt(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentName)}}function wQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," Opened On ")))}function PQt(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.openingDate))}}function TQt(e,o){e&1&&b(0,"tr",45)}function MQt(e,o){if(e&1&&b(0,"tr",46),e&2){let t=o.$implicit;g("routerLink",Nt(1,hQt,t.id))}}function DQt(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",47)(1,"li",48),b(2,"button",49),l(3,"span",50),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewOfficeNode(i))}),c(4),r()()()}if(e&2){let t=o.$implicit;a(4),v(" ",t.name," ")}}function EQt(e,o){if(e&1){let t=Y();l(0,"mat-nested-tree-node")(1,"li")(2,"div",48)(3,"button",51),b(4,"fa-icon",52),r(),l(5,"span",50),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewOfficeNode(i))}),c(6),r()(),l(7,"ul"),gl(8,53),r()()()}if(e&2){let t=o.$implicit,n=w();a(3),Dn("aria-label","toggle "+t.name),a(),g("icon",Le(n.nestedTreeControl.isExpanded(t)?"chevron-down":"chevron-right")),a(2),v(" ",t.name," "),a(),_l("office-tree-invisible",!n.nestedTreeControl.isExpanded(t))}}function IQt(e,o){e&1&&(l(0,"div",60),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"Parent Office")," "))}function OQt(e,o){if(e&1&&(l(0,"div",61),c(1),r()),e&2){let t=w(2);a(),v(" ",t.office.parentName," ")}}function AQt(e,o){e&1&&(l(0,"div",60),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"External Id")," "))}function FQt(e,o){if(e&1&&(l(0,"div",61),b(1,"mifosx-external-identifier",63),r()),e&2){let t=w(2);a(),g("externalId",Le(t.office.externalId))}}function kQt(e,o){if(e&1&&b(0,"mat-tab",62),e&2){let t=o.$implicit;g("label",Le(t.registeredTableName))}}function BQt(e,o){if(e&1){let t=Y();l(0,"div",39)(1,"mat-card")(2,"mat-card-content")(3,"div",54)(4,"mat-card-title"),c(5),r(),l(6,"div",55)(7,"button",56),R("click",function(){V(t);let i=w();return q(i.closeOffice())}),b(8,"fa-icon",57),r()()(),l(9,"mat-tab-group")(10,"mat-tab",58)(11,"div",59),E(12,IQt,3,3,"div",60),E(13,OQt,2,1,"div",61),l(14,"div",60),c(15),p(16,"translate"),r(),l(17,"div",61),c(18),p(19,"date"),r(),E(20,AQt,3,3,"div",60),E(21,FQt,2,2,"div",61),r()(),Se(22,kQt,1,2,"mat-tab",62,Pe),r()()()()}if(e&2){let t=w();a(5),v(" ",t.office.name," "),a(7),I(t.office.parentId?12:-1),a(),I(t.office.parentId?13:-1),a(2),v(" ",m(16,7," Opened On")," "),a(3),v(" ",m(19,9,t.office.openingDate)," "),a(2),I(t.office.externalId?20:-1),a(),I(t.office.externalId?21:-1),a(),we(t.dataTablesData)}}function RQt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",64),c(4),p(5,"translate"),r(),l(6,"div",65)(7,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(8),u=ve(55);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Tree View")),a(3),h(m(5,7,"labels.text.Launch an alternative view for office hierarchy")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function NQt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",64),c(4),p(5,"translate"),r(),l(6,"div",65)(7,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(53);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(11),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Office")),a(3),h(m(5,7,"labels.text.Create new offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function LQt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",64),c(4),p(5,"translate"),r(),l(6,"div",65)(7,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(8),u=ve(55);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(15),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Import Offices")),a(3),h(m(5,7,"labels.text.Launch the Bulk import/Offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function VQt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",65)(4,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(11),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(22),u=ve(61);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter offices.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function qQt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",65)(4,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(15),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of offices in the organization.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var yS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.officeTreeService=T(wX),this.treeControlService=T(bv),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.viewGroup=new it("listView"),this.displayedColumns=["name","externalId","parentName","openingDate"],this.isTreeExpanded=!0,this.hasNestedChild=(n,i)=>i.children.length,this.getChildren=n=>sd(n.children);let t=this.officeTreeService;this.route.data.subscribe(n=>{this.officesData=n.offices,t.initialize(this.officesData),this.dataTablesData=n.officeDataTables}),this.nestedTreeControl=new zg(this.getChildren),this.nestedTreeDataSource=new jg}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setOffices(),this.officeTreeService.treeDataChange.subscribe(t=>{this.nestedTreeDataSource.data=t,this.nestedTreeControl.expand(this.nestedTreeDataSource.data[0]),this.nestedTreeControl.dataNodes=t})}setOffices(){this.dataSource=new Wt(this.officesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}viewOfficeNode(t){t.id?this.office=t:delete this.office}closeOffice(){delete this.office}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showOfficeList===!0&&setTimeout(()=>{this.showPopover(this.templateButtonTreeView,this.buttonTreeView.nativeElement,"bottom",!0)}),this.configurationWizardService.showOfficeTable===!0&&setTimeout(()=>{this.showPopover(this.templateTableOffices,this.tableOffices.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showOfficeList=!1,this.configurationWizardService.showOfficeTable=!1,this.configurationWizardService.showOfficeForm=!0,this.router.navigate(["/organization/offices/create"])}previousStep(){this.configurationWizardService.showOfficeList=!1,this.configurationWizardService.showOfficeTable=!1,this.configurationWizardService.showCreateOffice=!0,this.router.navigate(["/organization"])}toggleExpandCollapse(){this.isTreeExpanded=this.treeControlService.toggleExpandCollapse(this.nestedTreeControl,this.isTreeExpanded)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-offices"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(sQt,5),Ee(cQt,5),Ee(pQt,5),Ee(mQt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonTreeView=s.first),Te(s=Me())&&(i.templateButtonTreeView=s.first),Te(s=Me())&&(i.tableOffices=s.first),Te(s=Me())&&(i.templateTableOffices=s.first)}},decls:62,vars:20,consts:[["buttonTreeView",""],["buttonCreateOffice",""],["buttonImportOffices",""],["filter",""],["tableOffices",""],["templateButtonTreeView",""],["templateButtonCreateOffice",""],["templateButtonImportOffices",""],["templateFilter",""],["templateTableOffices",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[3,"formControl"],["value","listView"],["icon","list"],["value","treeView"],["icon","sitemap"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container",3,"hidden"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","externalId"],["matColumnDef","parentName"],["matColumnDef","openingDate"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"m-b-20","layout-row","align-start","gap-20px"],["mat-raised-button","",3,"click"],[1,"layout-row","gap-4percent","responsive-column"],[1,"office-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"flex-48"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["icon","upload",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["mat-icon-button","","disabled",""],[1,"m-r-10",3,"click"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror",3,"icon"],["matTreeNodeOutlet",""],[1,"layout-row"],[1,"flex","align-end"],["mat-icon-button","",3,"click"],["icon","times"],["label","General"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"label"],[3,"externalId"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",10)(1,"mat-button-toggle-group",11,0)(3,"mat-button-toggle",12),b(4,"fa-icon",13),r(),l(5,"mat-button-toggle",14),b(6,"fa-icon",15),r()(),l(7,"div",16,1),F(9,gQt,4,5,"button",17),r(),l(10,"div",16,2),F(12,_Qt,4,5,"button",17),r()(),l(13,"div",18)(14,"div",19,3)(16,"mat-form-field",20)(17,"mat-label"),c(18),p(19,"translate"),r(),l(20,"input",21),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(21,"div",22,4)(23,"table",23),X(24,24),F(25,CQt,3,3,"th",25)(26,vQt,2,1,"td",26),Z(),X(27,27),F(28,xQt,3,3,"th",25)(29,bQt,2,1,"td",26),Z(),X(30,28),F(31,yQt,3,3,"th",25)(32,SQt,2,1,"td",26),Z(),X(33,29),F(34,wQt,3,3,"th",25)(35,PQt,3,3,"td",26),Z(),F(36,TQt,1,0,"tr",30)(37,MQt,1,3,"tr",31),r(),b(38,"mat-paginator",32),r()(),l(39,"div",18)(40,"div",33)(41,"button",34),R("click",function(){return V(s),q(i.toggleExpandCollapse())}),c(42),p(43,"translate"),r()(),l(44,"div",35)(45,"div",20)(46,"mat-card")(47,"mat-card-content")(48,"mat-tree",36),F(49,DQt,5,1,"mat-tree-node",37)(50,EQt,9,6,"mat-nested-tree-node",38),r()()()(),E(51,BQt,24,11,"div",39),r()(),F(52,RQt,16,15,"ng-template",null,5,ti)(54,NQt,16,15,"ng-template",null,6,ti)(56,LQt,16,15,"ng-template",null,7,ti)(58,VQt,13,12,"ng-template",null,8,ti)(60,qQt,13,12,"ng-template",null,9,ti)}n&2&&(a(),g("formControl",i.viewGroup),a(8),g("mifosxHasPermission","CREATE_OFFICE"),a(3),g("mifosxHasPermission","CREATE_OFFICE"),a(),g("hidden",i.viewGroup.value!=="listView"),a(5),h(m(19,15,"Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(19,dQt)),a(),g("hidden",i.viewGroup.value!=="treeView"),a(3),v(" ",m(43,17,i.isTreeExpanded?"labels.buttons.Collapse All":"labels.buttons.Expand All")," "),a(6),g("dataSource",i.nestedTreeDataSource)("treeControl",i.nestedTreeControl),a(2),g("matTreeNodeDefWhen",i.hasNestedChild),a(),I(i.office?51:-1))},dependencies:[ue,fe,$e,_n,Oe,Ue,Je,Fe,Be,ze,xe,Ke,Mp,Dp,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,M0,T0,P0,D0,wi,Hg,Gg,Qo,Nr,Qr,Da,bg,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.office-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .office-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.office-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer}.office-tree[_ngcontent-%COMP%] .office-tree-invisible[_ngcontent-%COMP%]{display:none}"]})}}return e})();var zQt=["buttonImportEmployees"],HQt=["templateButtonImportEmployees"],GQt=["tableEmployees"],jQt=["templateTableEmployees"],$Qt=()=>[10,25,50,100],UQt=()=>["/","organization","bulk-import","Employees"],WQt=()=>["create"],QQt=e=>[e];function YQt(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",27),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,UQt)),a(2),v(" ",m(3,2,"labels.buttons.Import Employees")," "))}function JQt(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",28),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,WQt)),a(2),v(" ",m(3,2,"labels.buttons.Create Employee")," "))}function KQt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.First Name")))}function XQt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.firstname)}}function ZQt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Name")))}function eYt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lastname)}}function tYt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Officer")))}function iYt(e,o){e&1&&(b(0,"fa-icon",32),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function nYt(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function oYt(e,o){if(e&1&&(l(0,"td",30)(1,"div",31),E(2,iYt,2,4,"fa-icon",32),E(3,nYt,2,4,"fa-icon",33),r()()),e&2){let t=o.$implicit;a(),g("className",t.isLoanOfficer===!0?"true":"false"),a(),I(t.isLoanOfficer?2:-1),a(),I(t.isLoanOfficer?-1:3)}}function aYt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function rYt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function lYt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function sYt(e,o){if(e&1&&(l(0,"td",30)(1,"div",31),b(2,"fa-icon",34),r()()),e&2){let t=o.$implicit;a(),g("className",t.isActive===!0?"true":"false"),a(),g("matTooltip",Le(t.isActive===!0?"Active":"Inactive"))}}function cYt(e,o){e&1&&b(0,"tr",35)}function pYt(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,QQt,t.id))}}function mYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",37),c(4),p(5,"translate"),r(),l(6,"div",38)(7,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Import Employees")),a(3),h(m(5,7,"labels.text.Import employee details from your local device")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function dYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",37),c(4),p(5,"translate"),r(),l(6,"div",38)(7,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(37);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(41);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Employee")),a(3),h(m(5,7,"labels.text.Create new employees in your organization")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function uYt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",38)(4,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(16),u=ve(43);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter employees.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function fYt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",38)(4,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(41);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of employees in the organization.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var SS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["firstname","lastname","isLoanOfficer","officeName","isActive"],this.route.data.subscribe(t=>{this.employeesData=t.employees})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setEmployees()}setEmployees(){this.dataSource=new Wt(this.employeesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showEmployeeList===!0&&setTimeout(()=>{this.showPopover(this.templateButtonImportEmployees,this.buttonImportEmployees.nativeElement,"bottom",!0)}),this.configurationWizardService.showEmployeeTable===!0&&setTimeout(()=>{this.showPopover(this.templateTableEmployees,this.tableEmployees.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showEmployeeList=!1,this.configurationWizardService.showEmployeeTable=!1,this.configurationWizardService.showEmployeeForm=!0,this.router.navigate(["/organization/employees/create"])}previousStep(){this.configurationWizardService.showEmployeeList=!1,this.configurationWizardService.showEmployeeTable=!1,this.configurationWizardService.showCreateEmployee=!0,this.router.navigate(["/organization"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-employees"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(zQt,5),Ee(HQt,5),Ee(GQt,5),Ee(jQt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonImportEmployees=s.first),Te(s=Me())&&(i.templateButtonImportEmployees=s.first),Te(s=Me())&&(i.tableEmployees=s.first),Te(s=Me())&&(i.templateTableEmployees=s.first)}},decls:44,vars:10,consts:[["buttonImportEmployees",""],["buttonCreateEmployee",""],["filter",""],["tableEmployees",""],["templateButtonImportEmployees",""],["templateButtonCreateEmployee",""],["templateFilter",""],["templateTableEmployees",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","isLoanOfficer"],["matColumnDef","officeName"],["matColumnDef","isActive"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","upload",1,"m-r-10"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["icon","check-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",8)(1,"div",null,0),F(3,YQt,4,5,"button",9),r(),l(4,"div",null,1),F(6,JQt,4,5,"button",9),r()(),l(7,"div",10)(8,"div",11,2)(10,"mat-form-field",12)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",13),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(15,"div",14,3)(17,"table",15),X(18,16),F(19,KQt,3,3,"th",17)(20,XQt,2,1,"td",18),Z(),X(21,19),F(22,ZQt,3,3,"th",17)(23,eYt,2,1,"td",18),Z(),X(24,20),F(25,tYt,3,3,"th",17)(26,oYt,4,3,"td",18),Z(),X(27,21),F(28,aYt,3,3,"th",17)(29,rYt,2,1,"td",18),Z(),X(30,22),F(31,lYt,3,3,"th",17)(32,sYt,3,3,"td",18),Z(),F(33,cYt,1,0,"tr",23)(34,pYt,1,3,"tr",24),r(),b(35,"mat-paginator",25),r()(),F(36,mYt,16,15,"ng-template",null,4,ti)(38,dYt,16,15,"ng-template",null,5,ti)(40,uYt,13,12,"ng-template",null,6,ti)(42,fYt,13,12,"ng-template",null,7,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_STAFF"),a(3),g("mifosxHasPermission","CREATE_STAFF"),a(6),h(m(13,7,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(9,$Qt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var hYt=["createEmployeeFormRef"],gYt=["templateCreateEmployeeForm"],_Yt=()=>["../"];function CYt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function vYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.First Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function yYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Last Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function wYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Joining Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function PYt(e,o){if(e&1&&(l(0,"button",18),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.employeeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function TYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",19),c(4),p(5,"translate"),b(6,"br"),c(7),p(8,"translate"),l(9,"a",20),c(10),p(11,"translate"),r()(),l(12,"div",21)(13,"button",22),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(14),p(15,"translate"),r(),l(16,"button",23),R("click",function(){let i=V(t).popover;return q(i.close())}),c(17),p(18,"translate"),r(),l(19,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(20),p(21,"translate"),r(),l(22,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(23),p(24,"translate"),r()()}e&2&&(a(),h(m(2,8,"labels.heading.Create Employee")),a(3),v(" ",m(5,10,"labels.text.Start filling the details")," "),a(3),v(" ",m(8,12,"labels.text.For more details click"),": "),a(3),h(m(11,14,"labels.inputs.Manage Employees")),a(4),v(" ",m(15,16,"labels.buttons.Close")," "),a(3),v(" ",m(18,18,"labels.buttons.Create Employee")," "),a(3),v(" ",m(21,20,"labels.buttons.Back")," "),a(3),v(" ",m(24,22,"labels.buttons.Next")," "))}var wS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.dialog=T(Ht),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEmployeeForm()}createEmployeeForm(){this.employeeForm=this.formBuilder.group({officeId:["",ce.required],firstname:["",[ce.required,ce.pattern("(^[A-z]).*")]],lastname:["",[ce.required,ce.pattern("(^[A-z]).*")]],isLoanOfficer:[!1],mobileNo:[""],joiningDate:["",ce.required]})}submit(){let t=this.employeeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.employeeForm.value.joiningDate;t.joiningDate instanceof Date&&(t.joiningDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createEmployee(d).subscribe(u=>{this.configurationWizardService.showEmployeeForm===!0?(this.configurationWizardService.showEmployeeForm=!1,this.openDialog()):this.router.navigate(["../"],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showEmployeeForm===!0&&setTimeout(()=>{this.showPopover(this.templateCreateEmployeeForm,this.createEmployeeFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showEmployeeForm=!1,this.configurationWizardService.showDefineWorkingDays=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showEmployeeForm=!1,this.configurationWizardService.showEmployeeTable=!0,this.router.navigate(["/organization/employees"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"employee"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showEmployeeForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showEmployeeForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/employees/create"])):n.step===3&&(this.configurationWizardService.showEmployeeForm=!1,this.configurationWizardService.showDefineWorkingDays=!0,this.router.navigate(["/organization"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-employee"]],viewQuery:function(n,i){if(n&1&&(Ee(hYt,5),Ee(gYt,5)),n&2){let s;Te(s=Me())&&(i.createEmployeeFormRef=s.first),Te(s=Me())&&(i.templateCreateEmployeeForm=s.first)}},decls:52,vars:35,consts:[["createEmployeeFormRef",""],["joiningDatePicker",""],["templateCreateEmployeeForm",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],["labelPosition","before","formControlName","isLoanOfficer",1,"loan-officer"],["matInput","","formControlName","mobileNo"],[3,"click"],["matInput","","required","","formControlName","joiningDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141732/Manage+Employees","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",6),Se(11,CYt,2,2,"mat-option",7,Pe),r(),E(13,vYt,7,9,"mat-error"),r(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8),E(19,xYt,7,9,"mat-error"),E(20,bYt,8,9,"mat-error"),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",9),E(26,yYt,7,9,"mat-error"),E(27,SYt,8,9,"mat-error"),r(),l(28,"mat-checkbox",10),c(29),p(30,"translate"),r(),l(31,"mat-form-field")(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",11),r(),l(36,"mat-form-field",12),R("click",function(){V(s);let u=ve(43);return q(u.open())}),l(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",13)(41,"mat-datepicker-toggle",14)(42,"mat-datepicker",null,1),E(44,wYt,7,9,"mat-error"),r()()(),l(45,"mat-card-actions",15)(46,"button",16),c(47),p(48,"translate"),r(),F(49,PYt,3,4,"button",17),r()()()(),F(50,TYt,25,24,"ng-template",null,2,ti)}if(n&2){let s=ve(43);a(2),g("formGroup",i.employeeForm),a(6),h(m(9,20,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.employeeForm.controls.officeId.hasError("required")?13:-1),a(3),h(m(17,22,"labels.inputs.First Name")),a(3),I(i.employeeForm.controls.firstname.hasError("required")?19:-1),a(),I(i.employeeForm.controls.firstname.hasError("pattern")?20:-1),a(3),h(m(24,24,"labels.inputs.Last Name")),a(3),I(i.employeeForm.controls.lastname.hasError("required")?26:-1),a(),I(i.employeeForm.controls.lastname.hasError("pattern")?27:-1),a(2),v(" ",m(30,26,"labels.inputs.Is Loan Officer")," "),a(4),h(m(34,28,"labels.inputs.Mobile Number for SMS")),a(5),h(m(39,30,"labels.inputs.Joining Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.employeeForm.controls.joiningDate.hasError("required")?44:-1),a(2),g("routerLink",oe(34,_Yt)),a(),v(" ",m(48,32,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_STAFF")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.loan-officer[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var MYt=()=>["edit"];function DYt(e,o){e&1&&(l(0,"button",6),b(1,"fa-icon",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,MYt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function EYt(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Mobile Number for SMS")," "))}function IYt(e,o){if(e&1&&(l(0,"div",5),c(1),r()),e&2){let t=w();a(),v(" ",t.employeeData.mobileNo," ")}}var PS=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.employeeData=t.employee})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-employee"]],decls:40,vars:31,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,DYt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",4),c(12),p(13,"translate"),r(),l(14,"div",5),c(15),r(),l(16,"div",4),c(17),p(18,"translate"),r(),l(19,"div",5),c(20),r(),l(21,"div",4),c(22),p(23,"translate"),r(),l(24,"div",5),c(25),p(26,"yesNo"),r(),E(27,EYt,3,3,"div",4),E(28,IYt,2,1,"div",5),l(29,"div",4),c(30),p(31,"translate"),r(),l(32,"div",5),c(33),r(),l(34,"div",4),c(35),p(36,"translate"),r(),l(37,"div",5),c(38),p(39,"dateFormat"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_STAFF"),a(6),v(" ",m(8,15,"labels.inputs.First Name")," "),a(3),v(" ",i.employeeData.firstname," "),a(2),v(" ",m(13,17,"labels.inputs.Last Name")," "),a(3),v(" ",i.employeeData.lastname," "),a(2),v(" ",m(18,19,"labels.inputs.Office")," "),a(3),v(" ",i.employeeData.officeName," "),a(2),v(" ",m(23,21,"labels.inputs.Is Loan Officer")," "),a(3),v(" ",m(26,23,i.employeeData.isLoanOfficer===!0)," "),a(2),I(i.employeeData.mobileNo?27:-1),a(),I(i.employeeData.mobileNo?28:-1),a(2),v(" ",m(31,25,"labels.inputs.Status")," "),a(3),v(" ",i.employeeData.isActive===!0?"Active":"Inactive"," "),a(2),v(" ",m(36,27,"labels.inputs.Joining Date")," "),a(3),v(" ",m(39,29,i.employeeData.joiningDate)," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var OYt=["buttonAddEdit"],AYt=["templateButtonAddEdit"],FYt=["tableCurrencies"],kYt=["templateTableCurrencies"],BYt=()=>[10,25,50,100];function RYt(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink","manage"),a(2),v(" ",m(3,2,"labels.buttons.Add/Edit")," "))}function NYt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency Name")))}function LYt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function VYt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency Code")))}function qYt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.code)}}function zYt(e,o){e&1&&b(0,"tr",26)}function HYt(e,o){e&1&&b(0,"tr",27)}function GYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Add/Edit Currency")),a(3),h(m(5,7,"labels.text.List of all currencies currently in use")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function jYt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter currencies.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function $Yt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of currencies available.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var TS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","code"],this.route.data.subscribe(t=>{this.currenciesData=t.currencies.selectedCurrencyOptions})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCurrencies()}setCurrencies(){this.dataSource=new Wt(this.currenciesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCurrencyPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonAddEdit,this.buttonAddEdit.nativeElement,"bottom",!0)}),this.configurationWizardService.showCurrencyList===!0&&setTimeout(()=>{this.showPopover(this.templateTableCurrencies,this.tableCurrencies.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showCurrencyPage=!1,this.configurationWizardService.showCurrencyList=!1,this.configurationWizardService.showCurrencyForm=!0,this.router.navigate(["/organization/currencies/manage"])}previousStep(){this.configurationWizardService.showCurrencyPage=!1,this.configurationWizardService.showCurrencyList=!1,this.configurationWizardService.showAddEditCurrency=!0,this.router.navigate(["/organization"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-currencies"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(OYt,5),Ee(AYt,5),Ee(FYt,5),Ee(kYt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonAddEdit=s.first),Te(s=Me())&&(i.templateButtonAddEdit=s.first),Te(s=Me())&&(i.tableCurrencies=s.first),Te(s=Me())&&(i.templateTableCurrencies=s.first)}},decls:30,vars:9,consts:[["buttonAddEdit",""],["filter",""],["tableCurrencies",""],["templateButtonAddEdit",""],["templateFilter",""],["templateTableCurrencies",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","code"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,RYt,4,4,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,NYt,3,3,"th",16)(17,LYt,2,1,"td",17),Z(),X(18,18),F(19,VYt,3,3,"th",16)(20,qYt,2,1,"td",17),Z(),F(21,zYt,1,0,"tr",19)(22,HYt,1,0,"tr",20),r(),b(23,"mat-paginator",21),r()(),F(24,GYt,16,15,"ng-template",null,3,ti)(26,jYt,13,12,"ng-template",null,4,ti)(28,$Yt,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","UPDATE_CURRENCY"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,BYt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var UYt=()=>[10,25,50,100],WYt=()=>["create"],QYt=e=>[e];function YYt(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,WYt)),a(2),v(" ",m(3,2,"labels.buttons.Create SMS Campaign")," "))}function JYt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function KYt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignName)}}function XYt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Template Message")))}function ZYt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignMessage)}}function eJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Campaign Type")))}function tJt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignType.value)}}function iJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Trigger Type")))}function nJt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.triggerType.value)}}function oJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function aJt(e,o){if(e&1&&(l(0,"td",22)(1,"div",23),p(2,"statusLookup"),b(3,"fa-icon",24),p(4,"titlecase"),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.campaignStatus.code)),a(2),g("matTooltip",Le(m(4,5,t.campaignStatus.value)))}}function rJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved By")))}function lJt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.smsCampaignTimeLine.submittedByUsername)}}function sJt(e,o){e&1&&b(0,"tr",25)}function cJt(e,o){if(e&1&&b(0,"tr",26),e&2){let t=o.$implicit;g("routerLink",Nt(1,QYt,t.id))}}var MS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["campaignName","campaignMessage","campaignType.value","triggerType.value","campaignStatus.value","smsCampaignTimeLine.submittedByUsername"],this.route.data.subscribe(t=>{this.smsCampaignsData=t.smsCampaigns.pageItems})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setSmsCampaigns()}setSmsCampaigns(){this.dataSource=new Wt(this.smsCampaignsData),this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"campaignType.value":return t.campaignType.value;case"triggerType.value":return t.triggerType.value;case"campaignStatus.value":return t.campaignStatus.value;case"smsCampaignTimeLine.submittedByUsername":return t.smsCampaignTimeLine.submittedByUsername;default:return t[n]}},this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sms-campaigns"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","campaignName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","campaignMessage"],["matColumnDef","campaignType.value"],["matColumnDef","triggerType.value"],["matColumnDef","campaignStatus.value"],["matColumnDef","smsCampaignTimeLine.submittedByUsername"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,YYt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,JYt,3,3,"th",9)(13,KYt,2,1,"td",10),Z(),X(14,11),F(15,XYt,3,3,"th",9)(16,ZYt,2,1,"td",10),Z(),X(17,12),F(18,eJt,3,3,"th",9)(19,tJt,2,1,"td",10),Z(),X(20,13),F(21,iJt,3,3,"th",9)(22,nJt,2,1,"td",10),Z(),X(23,14),F(24,oJt,3,3,"th",9)(25,aJt,5,7,"td",10),Z(),X(26,15),F(27,rJt,3,3,"th",9)(28,lJt,2,1,"td",10),Z(),F(29,sJt,1,0,"tr",16)(30,cJt,1,3,"tr",17),r(),b(31,"mat-paginator",18),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_SMSCAMPAIGN"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,UYt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,v0,he,go],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var pJt=()=>[10,25,50,100],mJt=()=>["create"],dJt=e=>[e];function uJt(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,mJt)),a(2),v(" ",m(3,2,"labels.buttons.Create AdHoc Query")," "))}function fJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function hJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function gJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.SQL Query")))}function _Jt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.query)}}function CJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Table Affected")))}function vJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tableName)}}function xJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Email")))}function bJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.email)}}function yJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Report Run Frequency")," "))}function SJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportRunFrequency)}}function wJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function PJt(e,o){if(e&1&&(l(0,"td",23)(1,"div",24),b(2,"fa-icon",25),r()()),e&2){let t=o.$implicit;a(),g("className",t.isActive===!0?"true":"false"),a(),g("matTooltip",Le(t.isActive===!0?"Active":"Inactive"))}}function TJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function MJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function DJt(e,o){e&1&&b(0,"tr",26)}function EJt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,dJt,t.id))}}var DS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","query","tableName","email","reportRunFrequency","isActive","createdBy"],this.route.data.subscribe(t=>{this.adhocQueriesData=t.adhocQueries})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setAdhocQueries(),this.setReportRunFrequency()}setReportRunFrequency(){for(let t=0;t["edit"];function OJt(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,IJt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function AJt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.deleteAdhocQuery())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function FJt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Report Run Frequency")," "))}function kJt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.reportRunFrequency," ")}}var ES=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.adhocQueryData=t.adhocQuery})}get reportRunFrequency(){for(let t of this.adhocQueryData.reportRunFrequencies)if(t.id===this.adhocQueryData.reportRunFrequency)return t.value}deleteAdhocQuery(){this.dialog.open(vi,{data:{deleteContext:`adhoc query ${this.adhocQueryData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteAdhocQuery(this.adhocQueryData.id).subscribe(()=>{this.router.navigate(["/organization/adhoc-query"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-adhoc-query"]],decls:34,vars:24,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,OJt,4,5,"button",1)(2,AJt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r(),E(22,FJt,3,3,"div",5),E(23,kJt,2,1,"div",6),l(24,"div",5),c(25),p(26,"translate"),r(),l(27,"div",6),c(28),r(),l(29,"div",5),c(30),p(31,"translate"),r(),l(32,"div",6),c(33),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_ADHOC"),a(),g("mifosxHasPermission","DELETE_ADHOC"),a(6),v(" ",m(9,14,"labels.inputs.name")," "),a(3),v(" ",i.adhocQueryData.name," "),a(2),v(" ",m(14,16,"labels.inputs.Query")," "),a(3),v(" ",i.adhocQueryData.query," "),a(2),v(" ",m(19,18,"labels.inputs.Table Affected")," "),a(3),v(" ",i.adhocQueryData.tableName," "),a(),I(i.adhocQueryData.reportRunFrequency?22:-1),a(),I(i.adhocQueryData.reportRunFrequency?23:-1),a(2),v(" ",m(26,20,"labels.inputs.Status")," "),a(3),v(" ",i.adhocQueryData.isActive===!0?"Active":"Inactive"," "),a(2),v(" ",m(31,22,"labels.inputs.Created By")," "),a(3),v(" ",i.adhocQueryData.createdBy," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var BJt=()=>[10,25,50,100],RJt=()=>["create"],NJt=e=>[e,"cashiers"],LJt=e=>[e];function VJt(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,RJt)),a(2),v(" ",m(3,2,"labels.buttons.Create Teller")," "))}function qJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Branch")))}function zJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function HJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Teller Name")))}function GJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function jJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function $Jt(e,o){if(e&1&&(l(0,"td",23)(1,"div",24),b(2,"fa-icon",25),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.status==="ACTIVE"?"true":"false"),a(),g("matTooltip",Le(t.status==="ACTIVE"?m(3,3,"labels.inputs.Active"):m(4,5,"labels.catalogs.Inactive")))}}function UJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Started On")))}function WJt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function QJt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function YJt(e,o){if(e&1){let t=Y();l(0,"td",27),R("click",function(i){return V(t),q(i.stopPropagation())}),l(1,"button",28),b(2,"fa-icon",29),c(3),p(4,"translate"),r()()}if(e&2){let t=o.$implicit;a(),g("routerLink",Nt(4,NJt,t.id)),a(2),v("",m(4,2,"labels.buttons.View Cashiers")," ")}}function JJt(e,o){e&1&&b(0,"tr",30)}function KJt(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,LJt,t.id))}}var IS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["officeName","name","status","startDate","actions"],this.route.data.subscribe(t=>{this.tellersData=t.tellers})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTellers()}setTellers(){this.dataSource=new Wt(this.tellersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-tellers"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","status"],["matColumnDef","startDate"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-button","","color","primary",3,"routerLink"],["icon","eye",1,"m-r-10"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,VJt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,qJt,3,3,"th",9)(13,zJt,2,1,"td",10),Z(),X(14,11),F(15,HJt,3,3,"th",9)(16,GJt,2,1,"td",10),Z(),X(17,12),F(18,jJt,3,3,"th",9)(19,$Jt,5,7,"td",10),Z(),X(20,13),F(21,UJt,3,3,"th",9)(22,WJt,3,3,"td",10),Z(),X(23,14),F(24,QJt,3,3,"th",15)(25,YJt,5,6,"td",16),Z(),F(26,JJt,1,0,"tr",17)(27,KJt,1,3,"tr",18),r(),b(28,"mat-paginator",19),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TELLER"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,BJt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var XJt=()=>["edit"];function ZJt(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,XJt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function eKt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.deleteTeller())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function tKt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Description")," "))}function iKt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.tellerData.description," ")}}function nKt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.End Date")," "))}function oKt(e,o){if(e&1&&(l(0,"div",6),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.tellerData.endDate)," ")}}var OS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.tellerData=t.teller})}deleteTeller(){this.dialog.open(vi,{data:{deleteContext:`teller ${this.tellerData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteTeller(this.tellerData.id).subscribe(()=>{this.router.navigate(["/organization/tellers"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-teller"]],decls:33,vars:26,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,ZJt,4,5,"button",1)(2,eKt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),E(17,tKt,3,3,"div",5),E(18,iKt,2,1,"div",6),l(19,"div",5),c(20),p(21,"translate"),r(),l(22,"div",6),c(23),p(24,"dateFormat"),r(),E(25,nKt,3,3,"div",5),E(26,oKt,3,3,"div",6),l(27,"div",5),c(28),p(29,"translate"),r(),l(30,"div",6),c(31),p(32,"titlecase"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TELLER"),a(),g("mifosxHasPermission","DELETE_TELLER"),a(6),v(" ",m(9,14,"labels.inputs.Teller Name")," "),a(3),v(" ",i.tellerData.name," "),a(2),v(" ",m(14,16,"labels.inputs.Office")," "),a(3),v(" ",i.tellerData.officeName," "),a(),I(i.tellerData.description?17:-1),a(),I(i.tellerData.description?18:-1),a(2),v(" ",m(21,18,"labels.inputs.Start Date")," "),a(3),v(" ",m(24,20,i.tellerData.startDate)," "),a(2),I(i.tellerData.endDate?25:-1),a(),I(i.tellerData.endDate?26:-1),a(2),v(" ",m(29,22,"labels.inputs.Status")," "),a(3),v(" ",m(32,24,i.tellerData.status)," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,v0,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var aKt=()=>[10,25,50,100],rKt=()=>["create"],lKt=e=>[e,"edit"];function sKt(e,o){e&1&&(l(0,"button",23),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,rKt)),a(2),v(" ",m(3,2,"labels.buttons.Create Payment Type")," "))}function cKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function pKt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function mKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function dKt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function uKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code")))}function fKt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.codeName)}}function hKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.System Defined")))}function gKt(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function _Kt(e,o){e&1&&(b(0,"fa-icon",29),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function CKt(e,o){if(e&1&&(l(0,"td",26)(1,"div",27),E(2,gKt,2,4,"fa-icon",28),E(3,_Kt,2,4,"fa-icon",29),r()()),e&2){let t=o.$implicit;a(),g("className",t.isSystemDefined===!0?"true text-center":"false text-center"),a(),I(t.isSystemDefined?2:-1),a(),I(t.isSystemDefined?-1:3)}}function vKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Cash Payment")))}function xKt(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function bKt(e,o){e&1&&(b(0,"fa-icon",29),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function yKt(e,o){if(e&1&&(l(0,"td",26)(1,"div",27),E(2,xKt,2,4,"fa-icon",28),E(3,bKt,2,4,"fa-icon",29),r()()),e&2){let t=o.$implicit;a(),g("className",t.isCashPayment===!0?"true text-center":"false text-center"),a(),I(t.isCashPayment?2:-1),a(),I(t.isCashPayment?-1:3)}}function SKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Position")))}function wKt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.position)}}function PKt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function TKt(e,o){if(e&1&&(l(0,"button",33),b(1,"fa-icon",35),c(2),p(3,"translate"),r()),e&2){let t=w().$implicit;g("routerLink",Nt(4,lKt,t.id)),a(2),v("",m(3,2,"labels.buttons.Edit")," ")}}function MKt(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deletePaymentType(i.id))}),b(1,"fa-icon",37),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Delete")," "))}function DKt(e,o){if(e&1&&(l(0,"td",32),E(1,TKt,4,6,"button",33),E(2,MKt,4,3,"button",34),r()),e&2){let t=o.$implicit;a(),I(t.isSystemDefined?-1:1),a(),I(t.isSystemDefined?-1:2)}}function EKt(e,o){e&1&&b(0,"tr",38)}function IKt(e,o){e&1&&b(0,"tr",39)}var AS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.dialog=T(Ht),this.displayedColumns=["name","description","codeName","isSystemDefined","isCashPayment","position","actions"],this.route.data.subscribe(t=>{this.paymentTypesData=t.paymentTypes})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setPaymentTypes()}setPaymentTypes(){this.dataSource=new Wt(this.paymentTypesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}deletePaymentType(t){this.dialog.open(vi,{data:{deleteContext:`payment type ${t}`}}).afterClosed().subscribe(i=>{i.delete&&this.organizationService.deletePaymentType(t).subscribe(()=>{this.paymentTypesData=this.paymentTypesData.filter(s=>s.id!==t),this.setPaymentTypes()})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-payment-types"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","codeName"],["matColumnDef","isSystemDefined"],["matColumnDef","isCashPayment"],["matColumnDef","position"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","layout-row",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["icon","check-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["mat-cell","",1,"text-center"],["mat-header-cell",""],["mat-cell","",1,"layout-row"],["mat-button","","color","primary",1,"no-wrap",3,"routerLink"],["mat-button","","color","warn",1,"no-wrap"],["icon","edit",1,"m-r-10"],["mat-button","","color","warn",1,"no-wrap",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,sKt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,cKt,3,3,"th",9)(13,pKt,2,1,"td",10),Z(),X(14,11),F(15,mKt,3,3,"th",9)(16,dKt,2,1,"td",10),Z(),X(17,12),F(18,uKt,3,3,"th",9)(19,fKt,2,1,"td",10),Z(),X(20,13),F(21,hKt,3,3,"th",9)(22,CKt,4,3,"td",10),Z(),X(23,14),F(24,vKt,3,3,"th",9)(25,yKt,4,3,"td",10),Z(),X(26,15),F(27,SKt,3,3,"th",9)(28,wKt,2,1,"td",16),Z(),X(29,17),F(30,PKt,3,3,"th",18)(31,DKt,3,2,"td",19),Z(),F(32,EKt,1,0,"tr",20)(33,IKt,1,0,"tr",21),r(),b(34,"mat-paginator",22),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_PAYMENTTYPE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,aKt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:[".table-container[_ngcontent-%COMP%]{border-radius:10px;overflow:hidden}table[_ngcontent-%COMP%]{width:100%}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var OKt=()=>["../../"];function AKt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payment Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function FKt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Position")," must be a positive number. "))}function kKt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Position")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function BKt(e,o){if(e&1&&(l(0,"button",10),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.paymentTypeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var FS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.router=T(qe),this.route=T(Ie),this.route.data.subscribe(t=>{this.paymentTypeData=t.paymentType})}ngOnInit(){this.createPaymentTypeForm()}createPaymentTypeForm(){this.paymentTypeForm=this.formBuilder.group({name:[this.paymentTypeData.name,ce.required],description:[this.paymentTypeData.description],isCashPayment:[this.paymentTypeData.isCashPayment],position:[this.paymentTypeData.position,[ce.required,ce.min(1)]]})}submit(){let t=this.paymentTypeForm.value;this.organizationService.updatePaymentType(this.paymentTypeData.id,t).subscribe(n=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-payment-type"]],decls:31,vars:22,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","matInput","","formControlName","name"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["labelPosition","before","formControlName","isCashPayment",1,"status"],["required","","matInput","","type","number","min","1","formControlName","position"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,AKt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),r(),l(16,"mat-checkbox",5),c(17),p(18,"translate"),r(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",6),E(24,FKt,3,3,"mat-error"),E(25,kKt,7,9,"mat-error"),r()()(),l(26,"mat-card-actions",7)(27,"button",8),c(28),p(29,"translate"),r(),F(30,BKt,3,4,"button",9),r()()()()),n&2&&(a(2),g("formGroup",i.paymentTypeForm),a(5),h(m(8,11,"labels.inputs.Payment Type")),a(3),I(i.paymentTypeForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,13,"labels.inputs.Description")),a(4),v(" ",m(18,15,"labels.inputs.Is Cash Payment"),"? "),a(4),h(m(22,17,"labels.inputs.Position")),a(3),I(i.paymentTypeForm.controls.position.hasError("min")?24:-1),a(),I(i.paymentTypeForm.controls.position.hasError("required")?25:-1),a(2),g("routerLink",oe(21,OKt)),a(),v(" ",m(29,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PAYMENTTYPE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.status[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var RKt=()=>["../"];function NKt(e,o){if(e&1&&(l(0,"mat-radio-button",3)(1,"span",7),c(2),r()()),e&2){let t=o.$implicit;g("value",t.id),a(2),h(t.description)}}function LKt(e,o){if(e&1&&(l(0,"button",8),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.passwordPreferencesForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var kS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.passwordPreferencesData=t.passwordPreferencesTemplate})}ngOnInit(){this.createPasswordPreferencesForm(),this.setPasswordPreferencesForm()}createPasswordPreferencesForm(){this.passwordPreferencesForm=this.formBuilder.group({validationPolicyId:[""]})}setPasswordPreferencesForm(){for(let t of this.passwordPreferencesData)t.active===!0&&this.passwordPreferencesForm.get("validationPolicyId").setValue(t.id)}submit(){let t=this.passwordPreferencesForm.value;this.organizationService.updatePasswordPreferences(t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-password-preferences"]],decls:12,vars:7,consts:[[1,"container"],[3,"ngSubmit","formGroup"],["formControlName","validationPolicyId",1,"layout-column","gap-10px","radio-group-spacing"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[1,"description-wrap"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"mat-radio-group",2),Se(5,NKt,3,2,"mat-radio-button",3,Pe),r()(),l(7,"mat-card-actions",4)(8,"button",5),c(9),p(10,"translate"),r(),F(11,LKt,3,4,"button",6),r()()()()),n&2&&(a(2),g("formGroup",i.passwordPreferencesForm),a(3),we(i.passwordPreferencesData),a(3),g("routerLink",oe(6,RKt)),a(),v(" ",m(10,4,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PASSWORD_VALIDATION_POLICY"))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,xe,Ke,tr,ir,he],styles:[".description-wrap[_ngcontent-%COMP%]{white-space:normal}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var VKt=()=>[10,25,50,100],qKt=()=>["create"];function zKt(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,qKt)),a(2),v(" ",m(3,2,"labels.buttons.Create")," "))}function HKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function GKt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entity)}}function jKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function $Kt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function UKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Data Table")))}function WKt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.datatableName)}}function QKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function YKt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function JKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.System Defined")))}function KKt(e,o){e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function XKt(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function ZKt(e,o){if(e&1&&(l(0,"td",23)(1,"div",24),E(2,KKt,2,4,"fa-icon",25),E(3,XKt,2,4,"fa-icon",26),r()()),e&2){let t=o.$implicit;a(),g("className",t.systemDefined===!0?"true":"false"),a(),I(t.systemDefined?2:-1),a(),I(t.systemDefined?-1:3)}}function eXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function tXt(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deleteEntityDataTableCheck(i.id))}),b(1,"fa-icon",30),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Delete")," "))}function iXt(e,o){e&1&&(l(0,"td",23),F(1,tXt,4,3,"button",28),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_ENTITY_DATATABLE_CHECK"))}function nXt(e,o){e&1&&b(0,"tr",31)}function oXt(e,o){e&1&&b(0,"tr",32)}var BS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.dialog=T(Ht),this.displayedColumns=["entity","productName","datatableName","status","systemDefined","actions"],this.entityValues=[{code:"m_client",value:"Client"},{code:"m_loan",value:"Loan"},{code:"m_group",value:"Group"},{code:"m_savings_account",value:"Savings Account"}],this.route.data.subscribe(t=>{this.entityDataTableChecksData=t.entityDataTableChecks.pageItems})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setEntityDataTableChecks(),this.setEntity()}setEntity(){let t=new Map;this.entityValues.forEach(n=>{t.set(n.code,n.value)}),this.dataSource.data.forEach(n=>{let i=t.get(n.entity);i&&(n.entity=i)})}setEntityDataTableChecks(){this.dataSource=new Wt(this.entityDataTableChecksData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"status":return t.status.value;default:return t[n]}}}deleteEntityDataTableCheck(t){this.dialog.open(vi,{data:{deleteContext:`entity data table check ${t}`}}).afterClosed().subscribe(i=>{i.delete&&this.organizationService.deleteEntityDataTableCheck(t).subscribe(()=>{this.entityDataTableChecksData=this.entityDataTableChecksData.filter(s=>s.id!==t),this.dataSource.data=this.entityDataTableChecksData})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-entity-data-table-checks"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","datatableName"],["matColumnDef","status"],["matColumnDef","systemDefined"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["icon","check-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["mat-header-cell",""],["mat-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,zKt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,HKt,3,3,"th",9)(13,GKt,2,1,"td",10),Z(),X(14,11),F(15,jKt,3,3,"th",9)(16,$Kt,2,1,"td",10),Z(),X(17,12),F(18,UKt,3,3,"th",9)(19,WKt,2,1,"td",10),Z(),X(20,13),F(21,QKt,3,3,"th",9)(22,YKt,2,1,"td",10),Z(),X(23,14),F(24,JKt,3,3,"th",9)(25,ZKt,4,3,"td",10),Z(),X(26,15),F(27,eXt,3,3,"th",16)(28,iXt,2,1,"td",10),Z(),F(29,nXt,1,0,"tr",17)(30,oXt,1,0,"tr",18),r(),b(31,"mat-paginator",19),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_ENTITY_DATATABLE_CHECK"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,VKt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var aXt=["workingDaysFormRef"],rXt=["templateWorkingDaysFormRef"],lXt=()=>["../"];function sXt(e,o){if(e&1&&(l(0,"div")(1,"mat-checkbox",14),c(2),r()()),e&2){let t=o.$index,n=w();a(),g("formControlName",t),a(),v(" ",n.weekDays[t].name," ")}}function cXt(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function pXt(e,o){if(e&1&&(l(0,"button",15),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.workingDaysForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function mXt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",16),c(4),p(5,"translate"),l(6,"a",17),c(7),p(8,"translate"),r()(),l(9,"div",18)(10,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",20),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",20),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",20),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Working Days")),a(3),v(" ",m(5,9,"labels.text.Click (Define Working Days)"),": "),a(3),h(m(8,11,"labels.inputs.Working Days")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Define Working Days")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var PX="FREQ=WEEKLY;INTERVAL=1;BYDAY=",RS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.weekDays=[{name:"Monday",value:"MO",checked:!1},{name:"Tuesday",value:"TU",checked:!1},{name:"Wednesday",value:"WE",checked:!1},{name:"Thursday",value:"TH",checked:!1},{name:"Friday",value:"FR",checked:!1},{name:"Saturday",value:"SA",checked:!1},{name:"Sunday",value:"SU",checked:!1}],this.route.data.subscribe(t=>{this.workingDaysData=t.workingDays})}ngOnInit(){this.createWorkingDaysForm()}createWorkingDaysForm(){this.setWeeklyWorkingDays(),this.repaymentRescheduleTypeData=this.workingDaysData.repaymentRescheduleOptions,this.workingDaysForm=this.formBuilder.group({recurrence:this.formBuilder.array(this.createRecurrenceFormArray()),repaymentRescheduleType:[this.workingDaysData.repaymentRescheduleType.id],extendTermForDailyRepayments:[this.workingDaysData.extendTermForDailyRepayments]})}get recurrence(){return this.workingDaysForm.get("recurrence")}setWeeklyWorkingDays(){let t=this.workingDaysData.recurrence.replace(PX,"");for(let n=0;nnew it(t.checked))}submit(){let t=this.workingDaysForm.value;t.locale=this.settingsService.language.code;let n=PX;for(let i=0;i{this.configurationWizardService.showDefineWorkingDays===!0?(this.configurationWizardService.showDefineWorkingDays=!1,this.openNextStepDialog()):this.router.navigate(["../"],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDefineWorkingDays===!0&&setTimeout(()=>{this.showPopover(this.templateWorkingDaysFormRef,this.workingDaysFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showDefineWorkingDays=!1,this.openNextStepDialog()}previousStep(){this.router.navigate(["/organization"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup System",previousStepName:"Organization",stepPercentage:30}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showDefineWorkingDays=!1,this.configurationWizardService.showDatatables=!0,this.router.navigate(["/system"])):(this.configurationWizardService.showDefineWorkingDays=!1,this.router.navigate(["/home"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-working-days"]],viewQuery:function(n,i){if(n&1&&(Ee(aXt,5),Ee(rXt,5)),n&2){let s;Te(s=Me())&&(i.workingDaysFormRef=s.first),Te(s=Me())&&(i.templateWorkingDaysFormRef=s.first)}},decls:30,vars:16,consts:[["workingDaysFormRef",""],["templateWorkingDaysFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"layout-row","responsive-column"],[1,"mat-h4","flex-50"],["formArrayName","recurrence",1,"flex-50","layout-column"],["formControlName","repaymentRescheduleType"],[3,"value"],["labelPosition","before","formControlName","extendTermForDailyRepayments"],[1,"layout-row","align-center","gap-5px","responsive-column"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["labelPosition","after",3,"formControlName"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/90243212/Working+Days","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4,0)(6,"div",5)(7,"mat-label",6),c(8),p(9,"translate"),r(),l(10,"div",7),Se(11,sXt,3,2,"div",null,Pe),r()(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",8),Se(18,cXt,2,2,"mat-option",9,Pe),r()(),l(20,"mat-checkbox",10),c(21),p(22,"translate"),r()()(),l(23,"mat-card-actions",11)(24,"button",12),c(25),p(26,"translate"),r(),F(27,pXt,3,4,"button",13),r()()()(),F(28,mXt,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.workingDaysForm),a(6),h(m(9,7,"labels.inputs.Working Days")),a(3),we(i.recurrence.controls),a(4),h(m(16,9,"labels.inputs.Payments due on non working days")),a(3),we(i.repaymentRescheduleTypeData),a(3),v(" ",m(22,11,"labels.inputs.Loans daily repayment schedule")," "),a(3),g("routerLink",oe(15,lXt)),a(),h(m(26,13,"labels.buttons.Cancel")),a(2),g("mifosxHasPermission","UPDATE_WORKINGDAYS"))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,La,Oe,Ue,Je,Et,Fe,Be,gt,ft,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dXt=["createOfficeFormRef"],uXt=["templateCreateOfficeForm"],fXt=()=>["../"];function hXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gXt(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function _Xt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Parent Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Opening Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vXt(e,o){if(e&1&&(l(0,"button",16),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.officeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function xXt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",17),c(4),p(5,"translate"),l(6,"a",18),c(7),p(8,"translate"),r()(),l(9,"div",19)(10,"button",20),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",21),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",21),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",21),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create Office")),a(3),v(" ",m(5,9,"labels.text.Filling Details")," "),a(3),h(m(8,11,"labels.inputs.Manage Offices")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create Office")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var NS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.route=T(Ie),this.dateUtils=T(Zt),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createofficeForm()}createofficeForm(){this.officeForm=this.formBuilder.group({name:["",ce.required],parentId:["",ce.required],openingDate:["",ce.required],externalId:[""]})}submit(){let t=this.officeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.officeForm.value.openingDate;t.openingDate instanceof Date&&(t.openingDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createOffice(d).subscribe(u=>{this.configurationWizardService.showOfficeForm===!0?(this.configurationWizardService.showOfficeForm=!1,this.openDialog()):this.router.navigate(["../"],{relativeTo:this.route})})}openDialog(){this.dialog.open(Ar,{data:{stepName:"office"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showOfficeForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showOfficeForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/offices/create"])):n.step===3&&(this.configurationWizardService.showOfficeForm=!1,this.configurationWizardService.showAddEditCurrency=!0,this.router.navigate(["/organization"]))})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showOfficeForm===!0&&setTimeout(()=>{this.showPopover(this.templateCreateOfficeForm,this.createOfficeFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showOfficeForm=!1,this.configurationWizardService.showAddEditCurrency=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showOfficeForm=!1,this.configurationWizardService.showOfficeTable=!0,this.router.navigate(["/organization/offices"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-office"]],viewQuery:function(n,i){if(n&1&&(Ee(dXt,5),Ee(uXt,5)),n&2){let s;Te(s=Me())&&(i.createOfficeFormRef=s.first),Te(s=Me())&&(i.templateCreateOfficeForm=s.first)}},decls:41,vars:26,consts:[["createOfficeFormRef",""],["openedOnDatePicker",""],["templateCreateOfficeForm",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","matInput","","formControlName","name"],["required","","formControlName","parentId"],[3,"value"],[3,"click"],["matInput","","formControlName","openingDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141727/Manage+Offices","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",6),E(11,hXt,7,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",7),Se(17,gXt,2,2,"mat-option",8,Pe),r(),E(19,_Xt,7,9,"mat-error"),r(),l(20,"mat-form-field",9),R("click",function(){V(s);let u=ve(27);return q(u.open())}),l(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",10)(25,"mat-datepicker-toggle",11)(26,"mat-datepicker",null,1),E(28,CXt,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",12),r()()(),l(34,"mat-card-actions",13)(35,"button",14),c(36),p(37,"translate"),r(),F(38,vXt,3,4,"button",15),r()()()(),F(39,xXt,22,21,"ng-template",null,2,ti)}if(n&2){let s=ve(27);a(2),g("formGroup",i.officeForm),a(6),h(m(9,15,"labels.inputs.Office")),a(3),I(i.officeForm.controls.name.hasError("required")?11:-1),a(3),h(m(15,17,"labels.inputs.Parent Office")),a(3),we(i.officeData),a(2),I(i.officeForm.controls.parentId.hasError("required")?19:-1),a(3),h(m(23,19,"labels.inputs.Opened On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.officeForm.controls.openingDate.hasError("required")?28:-1),a(3),h(m(32,21,"labels.inputs.External ID")),a(4),g("routerLink",oe(25,fXt)),a(),v(" ",m(37,23,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_OFFICE")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var bXt=()=>["../"];function yXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payment Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Position")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Position")," must be a positive number. "))}function PXt(e,o){if(e&1&&(l(0,"button",10),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.paymentTypeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var LS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.router=T(qe),this.route=T(Ie)}ngOnInit(){this.createpaymentTypeForm()}createpaymentTypeForm(){this.paymentTypeForm=this.formBuilder.group({name:["",ce.required],description:[""],isCashPayment:[!1],position:["",[ce.required,ce.min(1)]]})}submit(){let t=this.paymentTypeForm.value;this.organizationService.createPaymentType(t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-payment-type"]],decls:31,vars:22,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","matInput","","formControlName","name"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["labelPosition","before","formControlName","isCashPayment",1,"status"],["required","","matInput","","type","number","min","1","formControlName","position"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,yXt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),r(),l(16,"mat-checkbox",5),c(17),p(18,"translate"),r(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",6),E(24,SXt,7,9,"mat-error"),E(25,wXt,3,3,"mat-error"),r()()(),l(26,"mat-card-actions",7)(27,"button",8),c(28),p(29,"translate"),r(),F(30,PXt,3,4,"button",9),r()()()()),n&2&&(a(2),g("formGroup",i.paymentTypeForm),a(5),h(m(8,11,"labels.inputs.Payment Type")),a(3),I(i.paymentTypeForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,13,"labels.inputs.Description")),a(4),v(" ",m(18,15,"labels.inputs.Is Cash Payment"),"? "),a(4),h(m(22,17,"labels.inputs.Position")),a(3),I(i.paymentTypeForm.controls.position.hasError("required")?24:-1),a(),I(i.paymentTypeForm.controls.position.hasError("min")?25:-1),a(2),g("routerLink",oe(21,bXt)),a(),v(" ",m(29,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PAYMENTTYPE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.status[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var TXt=()=>["../"];function MXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function DXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL Query")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function EXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Insert into table")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function IXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Table Fields")," ",m(3,5,"labels.commons.are")," "),a(4),h(m(6,7,"labels.commons.required")))}function OXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function AXt(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function FXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Custom Report Run Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Custom Report Run Frequency")," "),a(3),h(m(5,4,"labels.commons.must be larger than 0")))}function BXt(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14),E(5,FXt,7,9,"mat-error"),E(6,kXt,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Custom Report Run Frequency (Days)")),a(3),I(t.adhocQueryForm.controls.reportRunEvery.hasError("required")?5:-1),a(),I(t.adhocQueryForm.controls.reportRunEvery.hasError("min")?6:-1)}}function RXt(e,o){if(e&1&&(l(0,"button",15),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.adhocQueryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var VS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.adhocQueryTemplateData=t.adhocQueryTemplate})}ngOnInit(){this.createAdhocQueryForm(),this.setConditionalControls()}createAdhocQueryForm(){this.reportRunFrequencyData=this.adhocQueryTemplateData.reportRunFrequencies,this.adhocQueryForm=this.formBuilder.group({name:["",ce.required],query:["",ce.required],tableName:["",ce.required],tableFields:["",ce.required],email:["",ce.email],reportRunFrequency:[""],isActive:[!1]})}setConditionalControls(){this.adhocQueryForm.get("reportRunFrequency").valueChanges.subscribe(t=>{t===5?this.adhocQueryForm.addControl("reportRunEvery",new it("",[ce.required,ce.min(1)])):this.adhocQueryForm.removeControl("reportRunEvery")})}submit(){this.organizationService.createAdhocQuery(this.adhocQueryForm.value).subscribe(t=>{this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-adhoc-query"]],decls:51,vars:34,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","query"],["matInput","","required","","formControlName","tableName"],["matInput","","required","","formControlName","tableFields"],["matInput","","formControlName","email"],["formControlName","reportRunFrequency"],[3,"value"],["labelPosition","before","formControlName","isActive"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["type","number","matInput","","required","","formControlName","reportRunEvery"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,MXt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),E(16,DXt,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,EXt,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"textarea",6),E(28,IXt,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",7),E(34,OXt,7,9,"mat-error"),r(),l(35,"mat-form-field")(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",8),Se(40,AXt,2,2,"mat-option",9,Pe),r()(),E(42,BXt,7,5,"mat-form-field"),l(43,"mat-checkbox",10),c(44),p(45,"translate"),r()()(),l(46,"mat-card-actions",11)(47,"button",12),c(48),p(49,"translate"),r(),F(50,RXt,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.adhocQueryForm),a(5),h(m(8,17,"labels.inputs.name")),a(3),I(i.adhocQueryForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,19,"labels.inputs.SQL Query")),a(3),I(i.adhocQueryForm.controls.query.hasError("required")?16:-1),a(3),h(m(20,21,"labels.inputs.Insert into table")),a(3),I(i.adhocQueryForm.controls.tableName.hasError("required")?22:-1),a(3),h(m(26,23,"labels.inputs.Table Fields")),a(3),I(i.adhocQueryForm.controls.tableFields.hasError("required")?28:-1),a(3),h(m(32,25,"labels.inputs.Email")),a(3),I(i.adhocQueryForm.controls.email.hasError("email")?34:-1),a(3),h(m(38,27,"labels.inputs.Report Run Frequency")),a(3),we(i.reportRunFrequencyData),a(2),I(i.adhocQueryForm.controls.reportRunFrequency.value===5?42:-1),a(2),v(" ",m(45,29,"labels.inputs.Active")," "),a(3),g("routerLink",oe(33,TXt)),a(),v(" ",m(49,31,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ADHOC"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var NXt=["buttonCreateHoliday"],LXt=["templateButtonCreateHoliday"],VXt=["filterRef"],qXt=["templateFilterRef"],zXt=()=>[10,25,50,100],HXt=()=>["create"],GXt=e=>[e];function jXt(e,o){e&1&&(l(0,"button",25),b(1,"fa-icon",26),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,HXt)),a(2),v(" ",m(3,2,"labels.buttons.Create Holiday")," "))}function $Xt(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function UXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Holiday Name")))}function WXt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function QXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function YXt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function JXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Date")))}function KXt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.toDate))}}function XXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Repayments Scheduled To")," "))}function ZXt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",t.reschedulingType===1?"Next Repayment Date":m(2,1,t.repaymentsRescheduledTo)," ")}}function eZt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function tZt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function iZt(e,o){e&1&&b(0,"tr",29)}function nZt(e,o){if(e&1&&b(0,"tr",30),e&2){let t=o.$implicit;g("routerLink",Nt(1,GXt,t.id))}}function oZt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",31),c(4),p(5,"translate"),r(),l(6,"div",32)(7,"button",33),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",34),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(42);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Holiday")),a(3),h(m(5,7,"labels.text.Create holidays for different offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function aZt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",32)(4,"button",33),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",34),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(40);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Filter holidays")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var qS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.officeSelector=new it,this.displayedColumns=["name","fromDate","toDate","repaymentsRescheduledTo","status"],this.route.data.subscribe(t=>{this.officeData=t.offices})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.onChangeOffice()}onChangeOffice(){this.officeSelector.valueChanges.subscribe((t=this.officeSelector.value)=>{this.holidaysData=[],this.organizationService.getHolidays(t).subscribe(n=>{this.holidaysData=n.filter(i=>i.status.value!=="Deleted"),this.setHolidays()})})}setHolidays(){this.dataSource=new Wt(this.holidaysData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showHolidayPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateHoliday,this.buttonCreateHoliday.nativeElement,"bottom",!0)}),this.configurationWizardService.showHolidayFilter===!0&&setTimeout(()=>{this.showPopover(this.templateFilterRef,this.filterRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showHolidayPage=!1,this.configurationWizardService.showHolidayFilter=!1,this.configurationWizardService.showCreateEmployee=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showHolidayPage=!1,this.configurationWizardService.showHolidayFilter=!1,this.configurationWizardService.showCreateHoliday=!0,this.router.navigate(["/organization"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-holidays"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(NXt,5),Ee(LXt,5),Ee(VXt,5),Ee(qXt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateHoliday=s.first),Te(s=Me())&&(i.templateButtonCreateHoliday=s.first),Te(s=Me())&&(i.filterRef=s.first),Te(s=Me())&&(i.templateFilterRef=s.first)}},decls:43,vars:14,consts:[["buttonCreateHoliday",""],["filterRef",""],["templateButtonCreateHoliday",""],["templateFilterRef",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[3,"formControl"],[3,"value"],[1,"mat-elevation-z8",3,"hidden"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromDate"],["matColumnDef","toDate"],["matColumnDef","repaymentsRescheduledTo"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0),F(3,jXt,4,5,"button",6),r()(),l(4,"div",7)(5,"div",8,1)(7,"mat-form-field",9)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",10),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",11),Se(17,$Xt,2,2,"mat-option",12,Pe),r()()(),l(19,"div",13)(20,"table",14),X(21,15),F(22,UXt,3,3,"th",16)(23,WXt,2,1,"td",17),Z(),X(24,18),F(25,QXt,3,3,"th",16)(26,YXt,3,3,"td",17),Z(),X(27,19),F(28,JXt,3,3,"th",16)(29,KXt,3,3,"td",17),Z(),X(30,20),F(31,XXt,3,3,"th",16)(32,ZXt,3,3,"td",17),Z(),X(33,21),F(34,eZt,3,3,"th",16)(35,tZt,2,1,"td",17),Z(),F(36,iZt,1,0,"tr",22)(37,nZt,1,3,"tr",23),r(),b(38,"mat-paginator",24),r()(),F(39,oZt,16,15,"ng-template",null,2,ti)(41,aZt,13,12,"ng-template",null,3,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_HOLIDAY"),a(6),h(m(10,9,"labels.inputs.Filter")),a(5),v(" ",m(15,11,"labels.inputs.Select Office")," "),a(2),g("formControl",i.officeSelector),a(),we(i.officeData),a(2),g("hidden",!i.officeSelector.value),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(13,zXt)))},dependencies:[ue,fe,$e,_n,Oe,Fe,Be,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var rZt=()=>["../"];function lZt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function sZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.First Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function mZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Last Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function uZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Joining Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fZt(e,o){if(e&1&&(l(0,"button",17),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.editEmployeeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var zS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.employeeData=t.employee,this.officeData=t.employee.allowedOffices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditEmployeeForm()}createEditEmployeeForm(){this.editEmployeeForm=this.formBuilder.group({officeId:[this.employeeData.officeId,ce.required],firstname:[this.employeeData.firstname,[ce.required,ce.pattern("(^[A-z]).*")]],lastname:[this.employeeData.lastname,[ce.required,ce.pattern("(^[A-z]).*")]],isLoanOfficer:[this.employeeData.isLoanOfficer],mobileNo:[this.employeeData.mobileNo],isActive:[this.employeeData.isActive],joiningDate:[this.employeeData.joiningDate&&new Date(this.employeeData.joiningDate),ce.required]})}submit(){let t=this.editEmployeeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.editEmployeeForm.value.joiningDate;t.joiningDate instanceof Date&&(t.joiningDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.updateEmployee(this.employeeData.id,d).subscribe(u=>{this.router.navigate(["../../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-employee"]],decls:52,vars:38,consts:[["joiningDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],["labelPosition","before","formControlName","isLoanOfficer",1,"m-b-10"],["matInput","","formControlName","mobileNo"],["labelPosition","before","formControlName","isActive"],[3,"click"],["matInput","","required","","formControlName","joiningDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,lZt,2,2,"mat-option",5,Pe),r(),E(12,sZt,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",6),E(18,cZt,7,9,"mat-error"),E(19,pZt,8,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",7),E(25,mZt,7,9,"mat-error"),E(26,dZt,8,9,"mat-error"),r(),l(27,"mat-checkbox",8),c(28),p(29,"translate"),r(),l(30,"mat-form-field")(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",9),r(),l(35,"mat-checkbox",10),c(36),p(37,"translate"),r(),l(38,"mat-form-field",11),R("click",function(){V(s);let u=ve(45);return q(u.open())}),l(39,"mat-label"),c(40),p(41,"translate"),r(),b(42,"input",12)(43,"mat-datepicker-toggle",13)(44,"mat-datepicker",null,0),E(46,uZt,7,9,"mat-error"),r()()(),l(47,"mat-card-actions",14)(48,"button",15),c(49),p(50,"translate"),r(),F(51,fZt,3,4,"button",16),r()()()()}if(n&2){let s=ve(45);a(2),g("formGroup",i.editEmployeeForm),a(5),h(m(8,21,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.editEmployeeForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,23,"labels.inputs.First Name")),a(3),I(i.editEmployeeForm.controls.firstname.hasError("required")?18:-1),a(),I(i.editEmployeeForm.controls.firstname.hasError("pattern")?19:-1),a(3),h(m(23,25,"labels.inputs.Last Name")),a(3),I(i.editEmployeeForm.controls.lastname.hasError("required")?25:-1),a(),I(i.editEmployeeForm.controls.lastname.hasError("pattern")?26:-1),a(2),v(" ",m(29,27,"labels.inputs.Is Loan Officer")," "),a(4),h(m(33,29,"labels.inputs.Mobile Number for SMS")),a(4),v(" ",m(37,31,"labels.inputs.Active")," "),a(4),h(m(41,33,"labels.inputs.Joining Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.editEmployeeForm.controls.joiningDate.hasError("required")?46:-1),a(2),g("routerLink",oe(37,rZt)),a(),v(" ",m(50,35,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_STAFF")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var hZt=()=>["../"];function gZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Teller Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _Zt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Teller Name")," "),a(3),h(m(5,5,"labels.commons.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function CZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function vZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function yZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Status")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SZt(e,o){if(e&1&&(l(0,"button",17),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.tellerForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var HS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices}),this.tellerStatusesData=[{id:300,code:"300",value:"Active"},{id:400,code:"400",value:"Inactive"}]}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createTellerForm()}createTellerForm(){this.tellerForm=this.formBuilder.group({officeId:["",ce.required],name:["",[ce.required,ce.pattern("(^[A-z]).*")]],description:[""],startDate:["",ce.required],endDate:[""],status:["",ce.required]})}submit(){let t=this.tellerForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.tellerForm.value.startDate,d=this.tellerForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createTeller(u).subscribe(f=>{this.router.navigate(["../",f.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-teller"]],decls:55,vars:38,consts:[["startDatePicker",""],["endDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],["required","","formControlName","status"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,gZt,7,9,"mat-error"),E(11,_Zt,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,CZt,2,2,"mat-option",7,Pe),r(),E(19,vZt,7,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"textarea",8),r(),l(25,"mat-form-field",9),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",10)(30,"mat-datepicker-toggle",11)(31,"mat-datepicker",null,0),E(33,xZt,7,9,"mat-error"),r(),l(34,"mat-form-field",9),R("click",function(){V(s);let u=ve(41);return q(u.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",12)(39,"mat-datepicker-toggle",11)(40,"mat-datepicker",null,1),r(),l(42,"mat-form-field")(43,"mat-label"),c(44),p(45,"translate"),r(),l(46,"mat-select",13),Se(47,bZt,2,2,"mat-option",7,Pe),r(),E(49,yZt,7,9,"mat-error"),r()()(),l(50,"mat-card-actions",14)(51,"button",15),c(52),p(53,"translate"),r(),F(54,SZt,3,4,"button",16),r()()()()}if(n&2){let s=ve(32),d=ve(41);a(2),g("formGroup",i.tellerForm),a(5),h(m(8,23,"labels.inputs.Teller Name")),a(3),I(i.tellerForm.controls.name.hasError("required")?10:-1),a(),I(i.tellerForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,25,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.tellerForm.controls.officeId.hasError("required")?19:-1),a(3),h(m(23,27,"labels.inputs.Description")),a(5),h(m(28,29,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.tellerForm.controls.startDate.hasError("required")?33:-1),a(3),h(m(37,31,"labels.inputs.End Date")),a(2),g("min",i.tellerForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(5),h(m(45,33,"labels.inputs.Status")),a(3),we(i.tellerStatusesData),a(2),I(i.tellerForm.controls.status.hasError("required")?49:-1),a(2),g("routerLink",oe(37,hZt)),a(),v(" ",m(53,35,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var wZt=()=>["../"];function PZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Teller Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function TZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Teller Name")," "),a(3),h(m(5,5,"labels.commons.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function MZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function DZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function EZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function IZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Status")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OZt(e,o){if(e&1&&(l(0,"button",17),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.tellerForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var GS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.tellerData=t.teller,this.officeData=t.offices}),this.tellerData.status&&(this.tellerData.status==="ACTIVE"?this.tellerData.status=300:this.tellerData.status=400),this.tellerStatusesData=[{id:300,code:"300",value:"Active"},{id:400,code:"400",value:"Inactive"}]}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createEditTellerForm()}createEditTellerForm(){this.tellerForm=this.formBuilder.group({officeId:[{value:this.tellerData.officeId,disabled:!0}],name:[this.tellerData.name,[ce.required,ce.pattern("(^[A-z]).*")]],description:[this.tellerData.description],startDate:[this.tellerData.startDate&&new Date(this.tellerData.startDate),ce.required],endDate:[this.tellerData.endDate&&new Date(this.tellerData.endDate)],status:[this.tellerData.status,ce.required]})}submit(){let t=this.tellerForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.tellerForm.value.startDate,d=this.tellerForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{officeId:this.tellerData.officeId,dateFormat:i,locale:n});this.organizationService.updateTeller(this.tellerData.id,u).subscribe(f=>{this.router.navigate(["../../",f.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-teller"]],decls:54,vars:37,consts:[["startDatePicker",""],["endDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["formControlName","officeId"],[3,"value"],["matInput","","formControlName","description"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],["required","","formControlName","status"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,PZt,7,9,"mat-error"),E(11,TZt,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,MZt,2,2,"mat-option",7,Pe),r()(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",8),r(),l(24,"mat-form-field",9),R("click",function(){V(s);let u=ve(31);return q(u.open())}),l(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",10)(29,"mat-datepicker-toggle",11)(30,"mat-datepicker",null,0),E(32,DZt,7,9,"mat-error"),r(),l(33,"mat-form-field",9),R("click",function(){V(s);let u=ve(40);return q(u.open())}),l(34,"mat-label"),c(35),p(36,"translate"),r(),b(37,"input",12)(38,"mat-datepicker-toggle",11)(39,"mat-datepicker",null,1),r(),l(41,"mat-form-field")(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",13),Se(46,EZt,2,2,"mat-option",7,Pe),r(),E(48,IZt,7,9,"mat-error"),r()()(),l(49,"mat-card-actions",14)(50,"button",15),c(51),p(52,"translate"),r(),F(53,OZt,3,4,"button",16),r()()()()}if(n&2){let s=ve(31),d=ve(40);a(2),g("formGroup",i.tellerForm),a(5),h(m(8,22,"labels.inputs.Teller Name")),a(3),I(i.tellerForm.controls.name.hasError("required")?10:-1),a(),I(i.tellerForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,24,"labels.inputs.Office")),a(3),we(i.officeData),a(4),h(m(22,26,"labels.inputs.Description")),a(5),h(m(27,28,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.tellerForm.controls.startDate.hasError("required")?32:-1),a(3),h(m(36,30,"labels.inputs.End Date")),a(2),g("min",i.tellerForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(5),h(m(44,32,"labels.inputs.Status")),a(3),we(i.tellerStatusesData),a(2),I(i.tellerForm.controls.status.hasError("required")?48:-1),a(2),g("routerLink",oe(36,wZt)),a(),v(" ",m(52,34,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var AZt=()=>[".."],FZt=()=>["edit"];function kZt(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,FZt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function BZt(e,o){if(e&1){let t=Y();l(0,"button",11),R("click",function(){V(t);let i=w();return q(i.deleteCashier())}),b(1,"fa-icon",12),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function RZt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Description")," "))}function NZt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.cashierData.description," ")}}var jS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.organizationService=T(li),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.cashierData=t.cashier})}deleteCashier(){this.dialog.open(vi,{data:{deleteContext:`Cashier id: ${this.cashierData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteCashier(this.cashierData.tellerId,this.cashierData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-cashier"]],decls:40,vars:33,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,kZt,4,5,"button",1)(2,BZt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),E(17,RZt,3,3,"div",5),E(18,NZt,2,1,"div",6),l(19,"div",5),c(20),p(21,"translate"),r(),l(22,"div",6),c(23),p(24,"dateFormat"),r(),l(25,"div",5),c(26),p(27,"translate"),r(),l(28,"div",6),c(29),p(30,"dateFormat"),r(),l(31,"div",5),c(32),p(33,"translate"),r(),l(34,"div",6),c(35),r()()(),l(36,"mat-card-actions",7)(37,"button",8),c(38),p(39,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_CASHIER"),a(),g("mifosxHasPermission","DELETECASHIER_TELLER"),a(6),v(" ",m(9,16,"labels.inputs.Name")," "),a(3),v(" ",i.cashierData.staffName," "),a(2),v(" ",m(14,18,"labels.inputs.Teller")," "),a(3),v(" ",i.cashierData.tellerName," "),a(),I(i.cashierData.description!==""?17:-1),a(),I(i.cashierData.description!==""?18:-1),a(2),v(" ",m(21,20,"labels.inputs.Start Date")," "),a(3),v(" ",m(24,22,i.cashierData.startDate)," "),a(3),v(" ",m(27,24,"labels.inputs.End Date")," "),a(3),v(" ",m(30,26,i.cashierData.endDate)," "),a(3),v(" ",m(33,28,"labels.inputs.Full Day/Time")," "),a(3),v(" ",i.cashierData.isFullDay," "),a(2),g("routerLink",oe(32,AZt)),a(),v(" ",m(39,30,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var LZt=()=>["edit"];function VZt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w(2);return q(i.activateHoliday())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Activate")," "))}function qZt(e,o){if(e&1&&(l(0,"span"),E(1,VZt,4,3,"button",8),r()),e&2){let t=w();a(),I(t.holidayData.status.value!=="Active"?1:-1)}}function zZt(e,o){e&1&&(l(0,"button",11),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,LZt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function HZt(e,o){if(e&1){let t=Y();l(0,"button",13),R("click",function(){V(t);let i=w();return q(i.deleteHoliday())}),b(1,"fa-icon",14),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function GZt(e,o){if(e&1&&(l(0,"div",7),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.holidayData.repaymentsRescheduledTo)," ")}}function jZt(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Next Repayment Date")," "))}var $S=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.organizationService=T(li),this.route.data.subscribe(t=>{this.holidayData=t.holidays})}deleteHoliday(){this.dialog.open(vi,{data:{deleteContext:`holiday ${this.holidayData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteHoliday(this.holidayData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}activateHoliday(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Holiday"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to activate")+` ${this.holidayData.name} `+this.translateService.instant("labels.dialogContext.holiday")}}).afterClosed().subscribe(n=>{n.confirm&&this.organizationService.activateHoliday(this.holidayData.id).subscribe(()=>{this.router.navigate(["/organization/holidays"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-holidays"]],decls:30,vars:24,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,qZt,2,1,"span",1)(2,zZt,4,5,"button",2)(3,HZt,4,3,"button",3),r(),l(4,"div",4)(5,"mat-card")(6,"mat-card-content")(7,"div",5)(8,"div",6),c(9),p(10,"translate"),r(),l(11,"div",7),c(12),r(),l(13,"div",6),c(14),p(15,"translate"),r(),l(16,"div",7),c(17),p(18,"dateFormat"),r(),l(19,"div",6),c(20),p(21,"translate"),r(),l(22,"div",7),c(23),p(24,"dateFormat"),r(),l(25,"div",6),c(26),p(27,"translate"),r(),E(28,GZt,3,3,"div",7),E(29,jZt,3,3,"div",7),r()()()()),n&2&&(a(),g("mifosxHasPermission","ACTIVATE_HOLIDAY"),a(),g("mifosxHasPermission","UPDATE_HOLIDAY"),a(),g("mifosxHasPermission","DELETE_HOLIDAY"),a(6),v(" ",m(10,12,"labels.inputs.Name")," "),a(3),v(" ",i.holidayData.name," "),a(2),v(" ",m(15,14,"labels.inputs.From Date")," "),a(3),v(" ",m(18,16,i.holidayData.fromDate)," "),a(3),v(" ",m(21,18,"labels.inputs.To Date")," "),a(3),v(" ",m(24,20,i.holidayData.toDate)," "),a(3),v(" ",m(27,22,"labels.inputs.Repayments Scheduled To")," "),a(2),I(i.holidayData.repaymentsRescheduledTo!==void 0&&i.holidayData.repaymentsRescheduledTo!==null?28:-1),a(),I(i.holidayData.repaymentsRescheduledTo===void 0||i.holidayData.repaymentsRescheduledTo===null?29:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var $Zt=()=>["./general"],UZt=e=>["./datatables",e];function WZt(e,o){if(e&1&&(l(0,"a",7,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,UZt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function QZt(e,o){if(e&1&&(l(0,"span"),F(1,WZt,3,5,"a",9),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var US=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.officeDatatables=t.officeDatatables})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-office"]],decls:13,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"container","narrow-container","extra-small"],[1,"office-card"],[1,"card-content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",1,"compact-tab",3,"routerLink","active"],[1,"tab-panel"],["mat-tab-link","","routerLinkActive","","class","compact-tab",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"div",3)(1,"mat-card",4)(2,"mat-card-content",5)(3,"nav",6)(4,"a",7,0),c(6),p(7,"translate"),r(),Se(8,QZt,2,1,"span",null,Pe),r(),l(10,"mat-tab-nav-panel",8,1),b(12,"router-outlet"),r()()()()),n&2){let s=ve(5),d=ve(11);a(3),g("tabPanel",d),a(),g("routerLink",oe(6,$Zt))("active",s.isActive),a(2),v(" ",m(7,4,"labels.inputs.General")," "),a(2),we(i.officeDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".action-button[_ngcontent-%COMP%]{width:85%;margin:.2rem auto;padding:.3rem;border-radius:3px;transition:all .3s ease}.action-button[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.office-card[_ngcontent-%COMP%]{width:100%;margin:.75rem auto;padding:.5rem;border-radius:8px!important;box-shadow:0 2px 8px #0000001a!important}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto;padding:.2rem 0;scrollbar-width:thin}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]::-webkit-scrollbar{height:4px}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%] .mat-tab-label[_ngcontent-%COMP%]{min-width:80px;padding:0 .5rem;height:36px;font-size:.85rem}@media (width <= 768px){.office-card[_ngcontent-%COMP%]{width:85%;padding:.4rem}}.container[_ngcontent-%COMP%]{padding:.5rem}.narrow-container[_ngcontent-%COMP%]{max-width:600px;margin:0 auto;padding:.75rem}.extra-small[_ngcontent-%COMP%]{max-width:500px}.compact-tab[_ngcontent-%COMP%]{min-width:auto;padding:0 12px}.card-content[_ngcontent-%COMP%]{padding:.5rem}.tab-panel[_ngcontent-%COMP%]{padding:.5rem 0}"]})}}return e})();var YZt=()=>["../edit"];function JZt(e,o){if(e&1&&(l(0,"div",3),b(1,"mifosx-external-identifier",7),r()),e&2){let t=w();a(),g("externalId",Le(t.officeData.externalId))}}function KZt(e,o){e&1&&(l(0,"div",3),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function XZt(e,o){e&1&&(l(0,"span")(1,"button",8),b(2,"fa-icon",9),c(3),p(4,"translate"),r()()),e&2&&(a(),g("routerLink",oe(4,YZt)),a(2),v("",m(4,2,"labels.buttons.Edit")," "))}var WS=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.officeData=t.office})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:28,vars:20,consts:[[1,"tab-container","mat-typography","compact-view"],[1,"layout-row-wrap","responsive-column","compact-details","condensed"],[1,"flex-45","mat-body-strong","left"],[1,"flex-50","right"],[1,"section-divider"],[1,"bottom-button-container","small-buttons"],[4,"mifosxHasPermission"],[3,"externalId"],["mat-raised-button","","color","primary",1,"edit-button",3,"routerLink"],["icon","edit",1,"m-r-5"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),c(3),p(4,"translate"),r(),l(5,"div",3),c(6),r(),b(7,"hr",4),l(8,"div",2),c(9),p(10,"translate"),r(),l(11,"div",3),c(12),p(13,"dateFormat"),r(),b(14,"hr",4),l(15,"div",2),c(16),p(17,"translate"),r(),l(18,"div",3),c(19),r(),b(20,"hr",4),l(21,"div",2),c(22),p(23,"translate"),r(),E(24,JZt,2,2,"div",3),E(25,KZt,3,3,"div",3),r(),l(26,"div",5),F(27,XZt,5,5,"span",6),r()()),n&2&&(a(3),h(m(4,10,"labels.inputs.Parent Office")),a(3),v(" ",i.officeData.parentName?i.officeData.parentName:"N/A"," "),a(3),h(m(10,12,"labels.inputs.Opened On")),a(3),v(" ",i.officeData.openingDate?m(13,14,i.officeData.openingDate):"Unassigned"," "),a(4),h(m(17,16,"labels.inputs.Name Decorated")),a(3),v(" ",i.officeData.nameDecorated?i.officeData.nameDecorated:"Unassigned"," "),a(3),h(m(23,18,"labels.inputs.External Id")),a(2),I(i.officeData.externalId?24:-1),a(),I(i.officeData.externalId?-1:25),a(2),g("mifosxHasPermission","UPDATE_OFFICE"))},dependencies:[ue,fe,Oe,xe,Ke,ke,Da,Pi,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:.5rem;margin:1% auto;max-width:600px;width:90%}.tab-container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}.table-name[_ngcontent-%COMP%]{padding-left:2%}.table-data[_ngcontent-%COMP%]{margin-top:3px}.compact-button[_ngcontent-%COMP%]{padding:.25rem .75rem;font-size:.9rem;line-height:1.75}.compact-details[_ngcontent-%COMP%]{font-size:.9rem}.compact-details[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .compact-details[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{padding:.25rem 0}.compact-details[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%]{font-size:.9rem}.bottom-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:2rem;padding:1rem 0}.edit-button[_ngcontent-%COMP%]{min-width:120px;padding:.5rem 1.5rem;font-size:1rem;border-radius:4px;box-shadow:0 3px 5px #0003;transition:all .3s ease}.edit-button[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000004d;transform:translateY(-2px)}.layout-row-wrap[_ngcontent-%COMP%]{margin:0 auto;padding:.5rem}.section-divider[_ngcontent-%COMP%]{width:100%;border:0;border-top:1px solid rgba(0,0,0,.1);margin:8px 0}.compact-view[_ngcontent-%COMP%]{padding:.3rem;margin:0 auto;max-width:450px;width:90%}.condensed[_ngcontent-%COMP%] .flex-45[_ngcontent-%COMP%], .condensed[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.2rem 0;font-size:.85rem}.condensed[_ngcontent-%COMP%] .section-divider[_ngcontent-%COMP%]{margin:4px 0}.small-buttons[_ngcontent-%COMP%]{margin-top:1rem}.small-buttons[_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%]{min-width:100px;padding:.35rem 1rem;font-size:.9rem}.tab-container.compact-view[_ngcontent-%COMP%]{max-width:450px;width:90%}"]})}}return e})();var QS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("officeId"),this.route.data.subscribe(t=>{this.entityDatatable=t.officeDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Office",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var ZZt=["messageTable"],eei=()=>["edit"];function tei(e,o){e&1&&(l(0,"button",13),b(1,"fa-icon",14),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,eei)),a(2),v("",m(3,2,"labels.buttons.Edit")," "))}function iei(e,o){e&1&&(l(0,"span"),F(1,tei,4,5,"button",12),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_SMSCAMPAIGN"))}function nei(e,o){if(e&1){let t=Y();l(0,"button",16),R("click",function(){V(t);let i=w(2);return q(i.activateCampaign())}),b(1,"fa-icon",17),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Activate")," "))}function oei(e,o){e&1&&(l(0,"span"),F(1,nei,4,3,"button",15),r()),e&2&&(a(),g("mifosxHasPermission","ACTIVATE_SMSCAMPAIGN"))}function aei(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(2);return q(i.closeCampaign())}),b(1,"fa-icon",20),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Close")," "))}function rei(e,o){e&1&&(l(0,"span"),F(1,aei,4,3,"button",18),r()),e&2&&(a(),g("mifosxHasPermission","CLOSE_SMSCAMPAIGN"))}function lei(e,o){if(e&1){let t=Y();l(0,"button",16),R("click",function(){V(t);let i=w(2);return q(i.reactivateCampaign())}),b(1,"fa-icon",21),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Reactivate")," "))}function sei(e,o){e&1&&(l(0,"span"),F(1,lei,4,3,"button",15),r()),e&2&&(a(),g("mifosxHasPermission","REACTIVATE_SMSCAMPAIGN"))}function cei(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(2);return q(i.deleteCampaign())}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Delete")," "))}function pei(e,o){e&1&&(l(0,"span"),F(1,cei,4,3,"button",18),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_SMSCAMPAIGN"))}function mei(e,o){if(e&1&&(l(0,"mat-list-item"),c(1),p(2,"translate"),r()),e&2){let t=w();a(),le(" ",m(2,2,"labels.inputs.Recurrence")," : ",t.smsCampaignData.recurrence," ")}}function dei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Message")))}function uei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.message)}}function fei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function hei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function gei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Mobile No"),"."))}function _ei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.mobileNo)}}function Cei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Campaign Name")))}function vei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignName)}}function xei(e,o){e&1&&b(0,"tr",43)}function bei(e,o){e&1&&b(0,"tr",44)}function yei(e,o){if(e&1){let t=Y();l(0,"mat-tab",11)(1,"div",8)(2,"form",23),R("ngSubmit",function(){V(t);let i=w();return q(i.search())}),l(3,"div",24)(4,"mat-form-field",25),R("click",function(){V(t);let i=ve(11);return q(i.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",26)(9,"mat-datepicker-toggle",27)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",25),R("click",function(){V(t);let i=ve(19);return q(i.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",28)(17,"mat-datepicker-toggle",27)(18,"mat-datepicker",null,1),r(),l(20,"div",29)(21,"button",30),b(22,"fa-icon",31),c(23),p(24,"translate"),r()()()(),l(25,"table",32,2),X(27,33),F(28,dei,3,3,"th",34)(29,uei,2,1,"td",35),Z(),X(30,36),F(31,fei,3,3,"th",34)(32,hei,2,1,"td",35),Z(),X(33,37),F(34,gei,3,3,"th",34)(35,_ei,2,1,"td",35),Z(),X(36,38),F(37,Cei,3,3,"th",34)(38,vei,2,1,"td",35),Z(),F(39,xei,1,0,"tr",39)(40,bei,1,0,"tr",40),r()()()}if(e&2){let t=o.$implicit,n=ve(11),i=ve(19),s=w();g("label",t.label),a(2),g("formGroup",s.smsForm),a(4),h(m(7,16,"labels.inputs.From Date")),a(2),g("min",s.minDate)("max",s.maxDate)("matDatepicker",n),a(),g("for",n),a(5),h(m(15,18,"labels.inputs.To Date")),a(2),g("min",s.minDate)("max",s.maxDate)("matDatepicker",i),a(),g("for",i),a(6),v("",m(24,20,"labels.buttons.Search")," "),a(2),g("dataSource",s.dataSource),a(14),g("matHeaderRowDef",s.displayedColumns),a(),g("matRowDefColumns",s.displayedColumns)}}var YS=(()=>{class e{constructor(){this.router=T(qe),this.route=T(Ie),this.dialog=T(Ht),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.displayedColumns=["Message","Status","Mobile No.","Campaign Name"],this.dataSource=new Wt,this.smsTabs=[{label:"Pending SMS",status:100},{label:"Waiting for Delivery Report",status:150},{label:"Sent SMS",status:200},{label:"Delivered SMS",status:300},{label:"Failed SMS",status:400}],this.route.data.subscribe(t=>{this.smsCampaignData=t.smsCampaign})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSMSForm()}createSMSForm(){this.smsForm=this.formBuilder.group({fromDate:[""],toDate:[""]})}onTabChange(t){let n=t.tab?t.tab.textLabel:"Campaign",i=this.smsTabs.find(s=>n===s.label);this.status=i?i.status:void 0,this.dataSource.data=[],this.messageTableRef.renderRows(),this.smsForm.reset()}closeCampaign(){let t=[new rr({controlName:"closureDate",label:"Closure Date",value:"",type:"date",required:!0})],n={title:"Close SMS Campaign",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=this.settingsService.language.code,u=this.settingsService.dateFormat,f={closureDate:this.dateUtils.formatDate(s.data.value.closureDate,u),dateFormat:u,locale:d};this.organizationService.executeSmsCampaignCommand(this.smsCampaignData.id,f,"close").subscribe(()=>{this.reload()})}})}activateCampaign(){let t=[new rr({controlName:"activationDate",label:"Activation Date",value:"",type:"date",required:!0})],n={title:"Activate SMS Campaign",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=this.settingsService.language.code,u=this.settingsService.dateFormat,f={activationDate:this.dateUtils.formatDate(s.data.value.activationDate,u),dateFormat:u,locale:d};this.organizationService.executeSmsCampaignCommand(this.smsCampaignData.id,f,"activate").subscribe(()=>{this.reload()})}})}reactivateCampaign(){let t=[new rr({controlName:"activationDate",label:"Reactivation Date",value:"",type:"date",required:!0})],n={title:"Reactivate SMS Campaign",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=this.settingsService.language.code,u=this.settingsService.dateFormat,f={activationDate:this.dateUtils.formatDate(s.data.value.activationDate,u),dateFormat:u,locale:d};this.organizationService.executeSmsCampaignCommand(this.smsCampaignData.id,f,"reactivate").subscribe(()=>{this.reload()})}})}deleteCampaign(){this.dialog.open(vi,{data:{deleteContext:`sms campaing with id: ${this.smsCampaignData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteSmsCampaign(this.smsCampaignData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}reload(){let t=this.router.url;this.router.navigateByUrl("/organization/sms-campaigns",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}search(){let t=this.smsForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.smsForm.value.fromDate,d=this.smsForm.value.toDate;t.fromDate instanceof Date&&(t.fromDate=this.dateUtils.formatDate(s,i)),t.toDate instanceof Date&&(t.toDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{id:this.smsCampaignData.id,status:this.status,dateFormat:i,locale:n});this.organizationService.getMessagebyStatus(u).subscribe(f=>{this.dataSource.data=f.pageItems,this.messageTableRef.renderRows()})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-campaign"]],viewQuery:function(n,i){if(n&1&&Ee(ZZt,5),n&2){let s;Te(s=Me())&&(i.messageTableRef=s.first)}},decls:38,vars:32,consts:[["fromDatePicker",""],["toDatePicker",""],["messageTable",""],[1,"container"],[1,"layout-row","align-flex-end","action-buttons","m-b-20","gap-1percent"],[1,"sms-card"],[3,"selectedTabChange"],["label","Campaign"],[1,"tab-content","mat-typography"],[1,"layout-column","gap-10px","template-message"],["matInput","","disabled",""],[3,"label"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","times",1,"m-r-10"],["icon","undo",1,"m-r-10"],["icon","trash",1,"m-r-10"],[3,"ngSubmit","formGroup"],[1,"layout-row","layout-align-center","gap-3percent"],[3,"click"],["matInput","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"search-button"],["mat-raised-button","","color","primary"],["icon","search",1,"m-r-10"],["mat-table","",1,"mat-elevation-z1","m-b-25",3,"dataSource"],["matColumnDef","Message"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Status"],["matColumnDef","Mobile No."],["matColumnDef","Campaign Name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",3)(1,"div",4),E(2,iei,2,1,"span"),E(3,oei,2,1,"span"),E(4,rei,2,1,"span"),E(5,sei,2,1,"span"),E(6,pei,2,1,"span"),r(),l(7,"mat-card",5)(8,"mat-card-content")(9,"mat-tab-group",6),R("selectedTabChange",function(d){return i.onTabChange(d)}),l(10,"mat-tab",7)(11,"div",8)(12,"mat-list")(13,"mat-list-item"),c(14),p(15,"translate"),r(),l(16,"mat-list-item"),c(17),p(18,"translate"),r(),l(19,"mat-list-item"),c(20),p(21,"translate"),r(),l(22,"mat-list-item"),c(23),p(24,"translate"),r(),l(25,"mat-list-item"),c(26),p(27,"translate"),p(28,"dateFormat"),r(),E(29,mei,3,4,"mat-list-item"),l(30,"div",9)(31,"h3"),c(32),p(33,"translate"),r(),l(34,"textarea",10),c(35),r()()()()(),Se(36,yei,41,22,"mat-tab",11,Pe),r()()()()),n&2&&(a(2),I(i.smsCampaignData.campaignStatus.value!=="active"?2:-1),a(),I(i.smsCampaignData.campaignStatus.value==="Pending"?3:-1),a(),I(i.smsCampaignData.campaignStatus.value!=="closed"?4:-1),a(),I(i.smsCampaignData.campaignStatus.value!=="Pending"&&i.smsCampaignData.campaignStatus.value!=="active"?5:-1),a(),I(i.smsCampaignData.campaignStatus.value==="closed"?6:-1),a(8),le(" ",m(15,18,"labels.inputs.Campaign Name")," : ",i.smsCampaignData.campaignName," "),a(3),le(" ",m(18,20,"labels.inputs.Report Name")," : ",i.smsCampaignData.reportName," "),a(3),le(" ",m(21,22,"labels.inputs.Status")," : ",i.smsCampaignData.campaignStatus.value," "),a(3),le(" ",m(24,24,"labels.inputs.Trigger Type")," : ",i.smsCampaignData.triggerType.value," "),a(3),le(" ",m(27,26,"labels.inputs.Submitted on")," : ",m(28,28,i.smsCampaignData.smsCampaignTimeLine.submittedOnDate)," "),a(3),I(i.smsCampaignData.recurrence?29:-1),a(3),v("",m(33,30,"labels.heading.Template Message")," :"),a(3),h(i.smsCampaignData.campaignMessage),a(),we(i.smsTabs))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Oe,Ue,Je,Fe,Be,ai,ze,mi,di,pi,xe,Ke,ke,Nr,Qr,vl,Vo,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he],styles:[".action-buttons[_ngcontent-%COMP%]{width:90%}.sms-card[_ngcontent-%COMP%]{margin:0 auto;width:80%;padding:0}.sms-card[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%]{padding:1%;margin:1%}.sms-card[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%] .template-message[_ngcontent-%COMP%]{padding-inline:1.5%;margin-top:1%}.sms-card[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%] .search-button[_ngcontent-%COMP%]{max-width:3%;max-height:2%;padding-block:2.25%}"]})}}return e})();var Sei=["formRef"],wei=["fundFormRef"],Pei=["templateFundFormRef"],Tei=()=>[10,25,50,100],Mei=()=>["create"],Dei=e=>[e];function Eei(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Mei)),a(2),v(" ",m(3,2,"labels.buttons.Create Fund")," "))}function Iei(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Oei(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Aei(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function Fei(e,o){if(e&1&&(l(0,"td",23),b(1,"mifosx-external-identifier",24),r()),e&2){let t=o.$implicit;a(),g("externalId",Le(t.externalId))}}function kei(e,o){e&1&&b(0,"tr",25)}function Bei(e,o){if(e&1&&b(0,"tr",26),e&2){let t=o.$implicit;g("routerLink",Nt(1,Dei,t.id))}}function Rei(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",27),c(4),p(5,"translate"),l(6,"a",28),c(7),p(8,"translate"),r()(),l(9,"div",29)(10,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11," Close "),r(),l(12,"button",31),R("click",function(){let i=V(t).popover;return q(i.close())}),c(13),p(14,"translate"),r(),l(15,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(16),p(17,"translate"),r(),l(18,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(19),p(20,"translate"),r()()}e&2&&(a(),h(m(2,6,"labels.heading.Manage Funds")),a(3),v(" ",m(5,8,"labels.text.Used Add Fund"),": "),a(3),h(m(8,10,"labels.inputs.Manage Funds")),a(6),v(" ",m(14,12,"labels.buttons.Add Funds")," "),a(3),v(" ",m(17,14,"labels.buttons.Back")," "),a(3),v(" ",m(20,16,"labels.buttons.Next")," "))}var JS=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.organizationservice=T(li),this.dialog=T(Ht),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","externalId"],this.route.data.subscribe(t=>{this.fundsData=t.funds})}ngOnInit(){this.dataSource=new Wt(this.fundsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}createFundForm(){this.fundForm=this.formBuilder.group({name:["",ce.required]})}addFund(){let t=this.fundForm.value;this.organizationservice.createFund(t).subscribe(n=>{this.fundsData.push({id:n.resourceId,name:t.name}),this.formRef.resetForm(),this.configurationWizardService.showManageFunds===!0&&(this.configurationWizardService.showManageFunds=!1,this.openDialog())})}editFund(t,n,i){let s=[new vn({controlName:"name",label:"Fund Content",value:n,type:"text",required:!0})],d={title:"Edit Fund",layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(an,{data:d}).afterClosed().subscribe(f=>{f.data&&this.organizationservice.editFund(t,f.data.value).subscribe(()=>{this.fundsData[i].name=f.data.value.name})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showManageFunds===!0&&setTimeout(()=>{this.showPopover(this.templateFundFormRef,this.fundFormRef.nativeElement,"bottom",!0)})}previousStep(){this.router.navigate(["/organization"])}nextStep(){this.configurationWizardService.showManageFunds=!1,this.configurationWizardService.showManageReports=!0,this.router.navigate(["/system"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"fund"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showManageFunds=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showManageFunds=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/manage-funds"])):n.step===3&&(this.configurationWizardService.showManageFunds=!1,this.configurationWizardService.showManageReports=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-funds"]],viewQuery:function(n,i){if(n&1&&(Ee(Sei,5),Ee(wei,5),Ee(Pei,5),Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.formRef=s.first),Te(s=Me())&&(i.fundFormRef=s.first),Te(s=Me())&&(i.templateFundFormRef=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[["fundFormRef",""],["filter",""],["chargesTable",""],["templateFundFormRef",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","externalId"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"externalId"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141736/Manage+Funds","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0),F(3,Eei,4,5,"button",6),r()(),l(4,"div",7)(5,"div",8,1)(7,"mat-form-field",9)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",10),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",11,2)(14,"table",12),X(15,13),F(16,Iei,3,3,"th",14)(17,Oei,2,1,"td",15),Z(),X(18,16),F(19,Aei,3,3,"th",14)(20,Fei,2,2,"td",15),Z(),F(21,kei,1,0,"tr",17)(22,Bei,1,3,"tr",18),r(),b(23,"mat-paginator",19),r()(),F(24,Rei,21,18,"ng-template",null,3,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_FUND"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Tei)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,Da,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Nei=["formRef"],Lei=["currencyFormRef"],Vei=["templateCurrencyFormRef"];function qei(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),le(" (",t.code,") ",t.name," ")}}function zei(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Hei(e,o){if(e&1&&(l(0,"button",12),b(1,"fa-icon",13),r()),e&2){let t=w();g("disabled",!t.currencyForm.valid)}}function Gei(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w(),s=i.$implicit,d=i.$index,u=w();return q(u.deleteCurrency(s.code,d))}),b(1,"fa-icon",18),r()}}function jei(e,o){if(e&1&&(l(0,"mat-grid-tile",11)(1,"div",14)(2,"div"),F(3,Gei,2,0,"button",15),r(),l(4,"span",16)(5,"b"),c(6),r()()()()),e&2){let t=o.$implicit;a(3),g("mifosxHasPermission","UPDATE_CURRENCY"),a(3),h(t.name)}}function $ei(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"p",19),c(4),p(5,"translate"),l(6,"a",20),c(7),p(8,"translate"),r()(),l(9,"div",21)(10,"button",22),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",23),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Add Currency Form")),a(3),v(" ",m(5,9,"labels.text.Used to add currency"),": "),a(3),h(m(8,11,"labels.inputs.Currency Configuration")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Add Currency")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var KS=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.organizationservice=T(li),this.dialog=T(Ht),this.router=T(qe),this.translateService=T(yi),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.placeHolderLabel="",this.noEntriesFoundLabel="",this.currencyList=[],this.currencyData=new J7(1),this.filterFormCtrl=new it(""),this._onDestroy=new Rr,this.route.parent.data.subscribe(t=>{this.selectedCurrencies=t.currencies.selectedCurrencyOptions,this.currencyList=t.currencies.currencyOptions})}ngOnInit(){this.placeHolderLabel=this.translateService.instant("labels.text.Search"),this.noEntriesFoundLabel=this.translateService.instant("labels.text.No data found"),this.filterFormCtrl.valueChanges.pipe(Rl(this._onDestroy)).subscribe(()=>{this.searchItem()}),this.createCurrencyForm()}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}ngOnChanges(t){this.currencyList&&this.currencyData.next(this.currencyList.slice())}createCurrencyForm(){this.currencyForm=this.formBuilder.group({currency:["",ce.required]})}searchItem(){if(this.currencyList){let t=this.filterFormCtrl.value.toLowerCase();t?this.currencyData.next(this.currencyList.filter(n=>n.name.toLowerCase().indexOf(t)>=0||n.code.toLowerCase().indexOf(t)>=0)):this.currencyData.next(this.currencyList.slice())}}addCurrency(){let t=this.currencyForm.value.currency,n=this.selectedCurrencies.map(i=>i.code);n.includes(t.code)||(n.push(t.code),this.organizationservice.updateCurrencies(n).subscribe(i=>{this.selectedCurrencies.push(t),this.formRef.resetForm(),this.configurationWizardService.showCurrencyForm===!0&&(this.configurationWizardService.showCurrencyForm=!1,this.openDialog())}))}deleteCurrency(t,n){let i=this.selectedCurrencies.map(d=>d.code);i.splice(n,1),this.dialog.open(vi,{data:{deleteContext:`currency: ${t}`}}).afterClosed().subscribe(d=>{d.delete&&this.organizationservice.updateCurrencies(i).subscribe(()=>{this.selectedCurrencies.splice(n,1),this.formRef.resetForm()})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCurrencyForm===!0&&setTimeout(()=>{this.showPopover(this.templateCurrencyFormRef,this.currencyFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showCurrencyForm=!1,this.configurationWizardService.showCreateHoliday=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showCurrencyForm=!1,this.configurationWizardService.showCurrencyList=!0,this.router.navigate(["/organization/currencies"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"currency"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showCurrencyForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showCurrencyForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/currencies/manage"])):n.step===3&&(this.configurationWizardService.showCurrencyForm=!1,this.configurationWizardService.showCreateHoliday=!0,this.router.navigate(["/organization"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-currencies"]],viewQuery:function(n,i){if(n&1&&(Ee(Nei,7),Ee(Lei,5),Ee(Vei,5)),n&2){let s;Te(s=Me())&&(i.formRef=s.first),Te(s=Me())&&(i.currencyFormRef=s.first),Te(s=Me())&&(i.templateCurrencyFormRef=s.first)}},features:[Uo],decls:23,vars:13,consts:[["currencyFormRef",""],["formRef","ngForm"],["templateCurrencyFormRef",""],[1,"container"],[1,"layout-row","align-start-baseline","gap-20px","flex-48",3,"ngSubmit","formGroup"],[1,"flex-fill","flex-90-minus-20px"],["required","","formControlName","currency"],[3,"placeholderLabel","noEntriesFoundLabel","formControl"],[3,"value"],["mat-raised-button","","class","flex-fill","color","primary",3,"disabled",4,"mifosxHasPermission"],["cols","2","rowHeight","50px"],[1,"grid-tile-content"],["mat-raised-button","","color","primary",1,"flex-fill",3,"disabled"],["icon","plus"],[1,"grid-container"],["mat-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"label","m-l-10","p-t-5"],["mat-button","","color","warn",3,"click"],["icon","trash"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141734/Currency+Configuration","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"div",null,0)(4,"form",4,1),R("ngSubmit",function(){return V(s),q(i.addCurrency())}),l(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",6)(11,"mat-option"),b(12,"ngx-mat-select-search",7),r(),Se(13,qei,2,3,"mat-option",8,Pe),p(15,"async"),r(),E(16,zei,7,9,"mat-error"),r(),F(17,Hei,2,1,"button",9),r()(),l(18,"mat-grid-list",10),Se(19,jei,7,2,"mat-grid-tile",11,Pe),r()()(),F(21,$ei,22,21,"ng-template",null,2,ti)}n&2&&(a(4),g("formGroup",i.currencyForm),a(4),h(m(9,9,"labels.inputs.Currency")),a(4),g("placeholderLabel",Le(i.placeHolderLabel))("noEntriesFoundLabel",Le(i.noEntriesFoundLabel))("formControl",i.filterFormCtrl),a(),we(m(15,11,i.currencyData)),a(3),I(i.currencyForm.controls.currency.hasError("required")?16:-1),a(),g("mifosxHasPermission","UPDATE_CURRENCY"),a(2),we(i.selectedCurrencies))},dependencies:[ue,fe,tt,$e,Xe,dt,_n,Ze,et,Ue,Fe,Be,ut,gt,ft,xe,Ke,wk,Sk,ke,XF,KF,Ka,he],styles:[".container[_ngcontent-%COMP%]{width:74rem}.currency-grid[_ngcontent-%COMP%]{max-width:40%;justify-content:left!important}mat-grid-tile[_ngcontent-%COMP%]{justify-content:left!important}.grid-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:left;width:100%;height:100%}"]})}}return e})();var Uei=()=>[10,25,50,100],Wei=()=>["create"],Qei=e=>[e,"allocate"],Yei=e=>[e,"settle"],Jei=e=>[e,"transactions"],Kei=e=>[e];function Xei(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Wei)),a(2),v(" ",m(3,2,"labels.buttons.New Cashier")," "))}function Zei(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function eti(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"dateFormat"),p(3,"dateFormat"),r()),e&2){let t=o.$implicit;a(),le(" ",m(2,2,t.startDate)," - ",m(3,4,t.endDate)," ")}}function tti(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Cashier/Staff")))}function iti(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.staffName)}}function nti(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Full Day/Time")))}function oti(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"yesNo"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.isFullDay))}}function ati(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Vault Actions")))}function rti(e,o){if(e&1){let t=Y();l(0,"button",24),p(1,"translate"),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(2,"i",25),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.Allocate Cash")))("routerLink",Nt(5,Qei,t.id))}}function lti(e,o){if(e&1){let t=Y();l(0,"button",26),p(1,"translate"),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(2,"i",27),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.Settle Cash")))("routerLink",Nt(5,Yei,t.id))}}function sti(e,o){if(e&1){let t=Y();l(0,"button",28),p(1,"translate"),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(2,"i",29),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.View Transactions")))("routerLink",Nt(5,Jei,t.id))}}function cti(e,o){e&1&&(l(0,"td",20),F(1,rti,3,7,"button",21)(2,lti,3,7,"button",22)(3,sti,3,7,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","ALLOCATECASHIER_TELLER"),a(),g("mifosxHasPermission","SETTLECASHIER_TELLER"),a(),g("mifosxHasPermission","ALLOCATECASHIER_TELLER"))}function pti(e,o){e&1&&b(0,"tr",30)}function mti(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,Kei,t.id))}}var XS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["period","staffName","isFullDay","vaultActions"],this.route.data.subscribe(t=>{this.cashiersData=t.cashiersData.cashiers})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCashiers()}setCashiers(){this.dataSource=new Wt(this.cashiersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}routeEdit(t){t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-cashiers"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","staffName"],["matColumnDef","isFullDay"],["matColumnDef","vaultActions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","cashier-action-button","mat-raised-button","","color","accent",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],["class","cashier-action-button","mat-raised-button","","color","warn",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],["class","cashier-action-button","mat-raised-button","","color","primary",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",1,"cashier-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-arrow-up"],["mat-raised-button","","color","warn",1,"cashier-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-arrow-down"],["mat-raised-button","","color","primary",1,"cashier-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Xei,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Zei,3,3,"th",9)(13,eti,4,6,"td",10),Z(),X(14,11),F(15,tti,3,3,"th",9)(16,iti,2,1,"td",10),Z(),X(17,12),F(18,nti,3,3,"th",9)(19,oti,3,3,"td",10),Z(),X(20,13),F(21,ati,3,3,"th",9)(22,cti,4,3,"td",10),Z(),F(23,pti,1,0,"tr",14)(24,mti,1,3,"tr",15),r(),b(25,"mat-paginator",16),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_CASHIERS_FOR_TELLER"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Uei)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,Pi,he,po],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .cashier-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var dti=()=>["../allocate"],uti=()=>["../settle"],fti=()=>[10,25,50,100];function hti(e,o){e&1&&(l(0,"button",11),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,dti)),a(2),v(" ",m(3,2,"labels.buttons.Allocate Cash")," "))}function gti(e,o){e&1&&(l(0,"button",13),b(1,"fa-icon",14),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,uti)),a(2),v(" ",m(3,2,"labels.buttons.Settle Cash")," "))}function _ti(e,o){if(e&1&&(l(0,"div",3)(1,"mat-card",15)(2,"mat-card-content")(3,"div",16)(4,"div",17),c(5),p(6,"translate"),r(),l(7,"div",18),c(8),r(),l(9,"div",17),c(10),p(11,"translate"),r(),l(12,"div",18),c(13),r(),l(14,"div",17),c(15),p(16,"translate"),r(),l(17,"div",18),c(18),r(),l(19,"div",17),c(20),p(21,"translate"),r(),l(22,"div",18),c(23),p(24,"formatNumber"),r()()()()()),e&2){let t=w();a(5),v(" ",m(6,9,"labels.inputs.Branch")," "),a(3),v(" ",t.cashierData.officeName," "),a(2),v(" ",m(11,11,"labels.inputs.Teller")," "),a(3),v(" ",t.cashierData.tellerName," "),a(2),v(" ",m(16,13,"labels.inputs.Cashier")," "),a(3),v(" ",t.cashierData.cashierName," "),a(2),v(" ",m(21,15,"labels.inputs.Net Cash")," "),a(3),le("",m(24,17,t.cashierData.netCash)," [",t.currencySelector.value,"]")}}function Cti(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function vti(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Date")))}function xti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.txnDate))}}function bti(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transactions")))}function yti(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.txnType.value)}}function Sti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Allocation")," (",m(3,4,t.cashierData.sumCashAllocation),") ")}}function wti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Allocate Cash"?m(2,1,t.txnAmount):"-"," ")}}function Pti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Cash In")," (",m(3,4,t.cashierData.sumInwardCash),") ")}}function Tti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Cash In"?m(2,1,t.txnAmount):"-"," ")}}function Mti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Cash Out")," (",m(3,4,t.cashierData.sumOutwardCash),") ")}}function Dti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Cash Out"?m(2,1,t.txnAmount):"-"," ")}}function Eti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Settlement")," (",m(3,4,t.cashierData.sumCashSettlement),") ")}}function Iti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Settle Cash"?m(2,1,t.txnAmount):"-"," ")}}function Oti(e,o){e&1&&b(0,"tr",33)}function Ati(e,o){e&1&&b(0,"tr",34)}function Fti(e,o){if(e&1&&(l(0,"div")(1,"table",19),X(2,20),F(3,vti,3,3,"th",21)(4,xti,3,3,"td",22),Z(),X(5,23),F(6,bti,3,3,"th",21)(7,yti,2,1,"td",22),Z(),X(8,24),F(9,Sti,4,6,"th",21)(10,wti,3,3,"td",22),Z(),X(11,25),F(12,Pti,4,6,"th",21)(13,Tti,3,3,"td",22),Z(),X(14,26),F(15,Mti,4,6,"th",21)(16,Dti,3,3,"td",22),Z(),X(17,27),F(18,Eti,4,6,"th",21)(19,Iti,3,3,"td",22),Z(),F(20,Oti,1,0,"tr",28)(21,Ati,1,0,"tr",29),r(),b(22,"mat-paginator",30),r()),e&2){let t=w();a(),g("dataSource",t.dataSource),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(4,fti))}}var ZS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.currencySelector=new it,this.displayedColumns=["date","transactions","allocation","cashIn","cashOut","settlement"],this.route.data.subscribe(t=>{this.currencyData=t.currencies.selectedCurrencyOptions}),this.tellerId=this.route.parent.parent.parent.snapshot.params.id,this.cashierId=this.route.parent.snapshot.params.id}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.onChangeCurrency()}onChangeCurrency(){this.currencySelector.valueChanges.subscribe(t=>{this.organizationService.getCashierSummaryAndTransactions(this.tellerId,this.cashierId,t).subscribe(n=>{this.cashierData=n,this.setTransactions()})})}setTransactions(){this.dataSource=new Wt(this.cashierData.cashierTransactions.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-transactions"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:20,vars:11,consts:[[1,"layout-row","gap-1percent","layout-align-end","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"routerLink",4,"mifosxHasPermission"],[1,"container","m-b-20"],[1,"container"],[1,"layout-column","gap-2percent","mat-elevation-z8"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["matInput","",3,"keyup"],["required","",3,"formControl"],[3,"value"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","arrow-up",1,"m-r-10"],["mat-raised-button","","color","warn",3,"routerLink"],["icon","arrow-down",1,"m-r-10"],[1,"mat-elevation-z8"],[1,"layout-row-wrap"],[1,"flex-25","header"],[1,"flex-25"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactions"],["matColumnDef","allocation"],["matColumnDef","cashIn"],["matColumnDef","cashOut"],["matColumnDef","settlement"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,hti,4,5,"button",1)(2,gti,4,5,"button",2),r(),E(3,_ti,25,19,"div",3),l(4,"div",4)(5,"mat-card",5)(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",8),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",9),Se(17,Cti,2,2,"mat-option",10,Pe),r()()(),E(19,Fti,23,5,"div"),r()()),n&2&&(a(),g("mifosxHasPermission","ALLOCATECASHIER_TELLER"),a(),g("mifosxHasPermission","SETTLECASHFROMCASHIER_TELLER"),a(),I(i.cashierData?3:-1),a(6),h(m(10,7,"labels.inputs.Filter")),a(5),v(" ",m(15,9,"labels.inputs.Select Currency")," "),a(2),g("formControl",i.currencySelector),a(),we(i.currencyData),a(2),I(i.cashierData?19:-1))},dependencies:[ue,fe,$e,dt,_n,Oe,Ue,Je,Fe,Be,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he,In],styles:[".content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:3rem}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var kti=()=>["../"];function Bti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Rti(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function Nti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Vti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Notes/Comments")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function qti(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.allocateCashForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var ew=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierData=t.cashierTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setCashierForm()}setCashierForm(){this.allocateCashForm=this.formBuilder.group({office:[{value:this.cashierData.officeName,disabled:!0}],tellerName:[{value:this.cashierData.tellerName,disabled:!0}],cashier:[{value:this.cashierData.cashierName,disabled:!0}],assignmentPeriod:[{value:this.dateUtils.formatDate(this.cashierData.startDate,"dd MMMM yyyy")+" - "+this.dateUtils.formatDate(this.cashierData.endDate,"dd MMMM yyyy"),disabled:!0}],txnDate:[new Date,ce.required],currencyCode:["",ce.required],txnAmount:["",ce.required],txnNote:["",ce.required]})}submit(){let t=this.allocateCashForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.allocateCashForm.value.txnDate;t.txnDate instanceof Date&&(t.txnDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.allocateCash(this.cashierData.tellerId,this.cashierData.cashierId,d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-allocate-cash"]],decls:59,vars:39,consts:[["cashDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","office"],["matInput","","required","","formControlName","tellerName"],["matInput","","required","","formControlName","cashier"],["matInput","","formControlName","assignmentPeriod"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","txnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["required","","formControlName","currencyCode"],[3,"value"],["matInput","","required","","formControlName","txnAmount"],["matInput","","required","","formControlName","txnNote"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),r(),l(10,"mat-form-field",4)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),l(15,"mat-form-field",4)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",9),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",10)(30,"mat-datepicker-toggle",11)(31,"mat-datepicker",null,0),E(33,Bti,7,9,"mat-error"),r(),l(34,"mat-form-field",4)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",12),Se(39,Rti,2,2,"mat-option",13,Pe),r(),E(41,Nti,7,9,"mat-error"),r(),l(42,"mat-form-field",4)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"input",14),E(47,Lti,7,9,"mat-error"),r(),l(48,"mat-form-field",4)(49,"mat-label"),c(50),p(51,"translate"),r(),b(52,"input",15),E(53,Vti,7,9,"mat-error"),r()()(),l(54,"mat-card-actions",16)(55,"button",17),c(56),p(57,"translate"),r(),F(58,qti,3,4,"button",18),r()()()()}if(n&2){let s=ve(32);a(2),g("formGroup",i.allocateCashForm),a(5),h(m(8,20,"labels.inputs.Office")),a(5),h(m(13,22,"labels.inputs.Teller Name")),a(5),h(m(18,24,"labels.inputs.Cashier")),a(5),h(m(23,26,"labels.inputs.Assignment Period")),a(5),h(m(28,28,"labels.inputs.Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.allocateCashForm.controls.txnDate.hasError("required")?33:-1),a(3),h(m(37,30,"labels.inputs.Currency")),a(3),we(i.cashierData.currencyOptions),a(2),I(i.allocateCashForm.controls.currencyCode.hasError("required")?41:-1),a(3),h(m(45,32,"labels.inputs.Amount")),a(3),I(i.allocateCashForm.controls.txnAmount.hasError("required")?47:-1),a(3),h(m(51,34,"labels.inputs.Notes/Comments")),a(3),I(i.allocateCashForm.controls.txnNote.hasError("required")?53:-1),a(2),g("routerLink",oe(38,kti)),a(),v(" ",m(57,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","ALLOCATECASHIER_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],encapsulation:2})}}return e})();var zti=()=>["../"];function Hti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Gti(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function jti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $ti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Uti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Notes/Comments")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Wti(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.settleCashForm.valid),a(),v(" ",m(2,2,"labels.buttons.Settle Cash")," ")}}var tw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierData=t.cashierTemplate})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.setCashierForm()}setCashierForm(){this.settleCashForm=this.formBuilder.group({office:[{value:this.cashierData.officeName,disabled:!0}],tellerName:[{value:this.cashierData.tellerName,disabled:!0}],cashier:[{value:this.cashierData.cashierName,disabled:!0}],assignmentPeriod:[{value:this.dateUtils.formatDate(this.cashierData.startDate,"dd MMMM yyyy")+" - "+this.dateUtils.formatDate(this.cashierData.endDate,"dd MMMM yyyy"),disabled:!0}],txnDate:[new Date,ce.required],currencyCode:["",ce.required],txnAmount:["",ce.required],txnNote:["",ce.required]})}submit(){let t=this.settleCashForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.settleCashForm.value.txnDate;t.txnDate instanceof Date&&(t.txnDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.settleCash(this.cashierData.tellerId,this.cashierData.cashierId,d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-settle-cash"]],decls:59,vars:39,consts:[["cashDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","office"],["matInput","","required","","formControlName","tellerName"],["matInput","","required","","formControlName","cashier"],["matInput","","formControlName","assignmentPeriod"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","txnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["required","","formControlName","currencyCode"],[3,"value"],["matInput","","required","","formControlName","txnAmount"],["matInput","","required","","formControlName","txnNote"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),r(),l(10,"mat-form-field",4)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),l(15,"mat-form-field",4)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",9),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",10)(30,"mat-datepicker-toggle",11)(31,"mat-datepicker",null,0),E(33,Hti,7,9,"mat-error"),r(),l(34,"mat-form-field",4)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",12),Se(39,Gti,2,2,"mat-option",13,Pe),r(),E(41,jti,7,9,"mat-error"),r(),l(42,"mat-form-field",4)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"input",14),E(47,$ti,7,9,"mat-error"),r(),l(48,"mat-form-field",4)(49,"mat-label"),c(50),p(51,"translate"),r(),b(52,"input",15),E(53,Uti,7,9,"mat-error"),r()()(),l(54,"mat-card-actions",16)(55,"button",17),c(56),p(57,"translate"),r(),F(58,Wti,3,4,"button",18),r()()()()}if(n&2){let s=ve(32);a(2),g("formGroup",i.settleCashForm),a(5),h(m(8,20,"labels.inputs.Office")),a(5),h(m(13,22,"labels.inputs.Teller Name")),a(5),h(m(18,24,"labels.inputs.Cashier")),a(5),h(m(23,26,"labels.inputs.Assignment Period")),a(5),h(m(28,28,"labels.inputs.Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.settleCashForm.controls.txnDate.hasError("required")?33:-1),a(3),h(m(37,30,"labels.inputs.Currency")),a(3),we(i.cashierData.currencyOptions),a(2),I(i.settleCashForm.controls.currencyCode.hasError("required")?41:-1),a(3),h(m(45,32,"labels.inputs.Amount")),a(3),I(i.settleCashForm.controls.txnAmount.hasError("required")?47:-1),a(3),h(m(51,34,"labels.inputs.Notes/Comments")),a(3),I(i.settleCashForm.controls.txnNote.hasError("required")?53:-1),a(2),g("routerLink",oe(38,zti)),a(),v(" ",m(57,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","SETTLECASHFROMCASHIER_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],encapsulation:2})}}return e})();var Qti=()=>["../"];function Yti(e,o){if(e&1&&(l(0,"mat-option",18),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Jti(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",17),Se(5,Yti,2,2,"mat-option",18,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Cashier")),a(3),we(t.cashierData.template.staffOptions)}}function Kti(e,o){if(e&1&&(l(0,"mat-select",17)(1,"mat-option",18),c(2),p(3,"translate"),r()()),e&2){let t=w(2);a(),g("value",t.cashierData.data.staffId),a(),v(" ",m(3,2,"labels.inputs.Select Option")," ")}}function Xti(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),E(4,Kti,4,4,"mat-select",17),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Cashier")),a(2),I(t.isStaffId?-1:4)}}function Zti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tii(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.editCashierForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var iw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.cashierData=new Object,this.isStaffId=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierData.data=t.cashier,this.cashierData.template=t.cashierTemplate,this.isStaffId=this.cashierData.template.staffOptions.some(n=>n.id===this.cashierData.data.staffId)})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.setEditChargeForm()}setEditChargeForm(){this.editCashierForm=this.formBuilder.group({staffId:[{value:this.cashierData.data.staffId,disabled:!0}],description:[this.cashierData.data.description],startDate:[this.cashierData.data.startDate&&new Date(this.cashierData.data.startDate),ce.required],endDate:[this.cashierData.data.endDate&&new Date(this.cashierData.data.endDate),ce.required],isFullDay:[this.cashierData.data.isFullDay,ce.required]})}submit(){let t=this.editCashierForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.editCashierForm.value.startDate,d=this.editCashierForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{staffId:this.cashierData.data.staffId,dateFormat:i,locale:n});this.organizationService.updateCashier(this.cashierData.data.tellerId,this.cashierData.data.id,u).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-cashier"]],decls:49,vars:39,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","autofocus","","disabled","",3,"value"],["matInput","","autofocus","","formControlName","description"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"space","flex-48"],["labelPosition","before","formControlName","isFullDay"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","staffId"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),r(),l(10,"mat-form-field",5)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),E(15,Jti,7,3,"mat-form-field",5),E(16,Xti,5,4,"mat-form-field",5),l(17,"mat-form-field",5)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",7),r(),l(22,"mat-form-field",8),R("click",function(){V(s);let u=ve(29);return q(u.open())}),l(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"input",9)(27,"mat-datepicker-toggle",10)(28,"mat-datepicker",null,0),E(30,Zti,7,9,"mat-error"),r(),l(31,"mat-form-field",8),R("click",function(){V(s);let u=ve(38);return q(u.open())}),l(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",11)(36,"mat-datepicker-toggle",10)(37,"mat-datepicker",null,1),E(39,eii,7,9,"mat-error"),r(),l(40,"div",12)(41,"mat-checkbox",13),c(42),p(43,"translate"),r()()()(),l(44,"mat-card-actions",14)(45,"button",15),c(46),p(47,"translate"),r(),F(48,tii,3,4,"button",16),r()()()()}if(n&2){let s=ve(29),d=ve(38);a(2),g("formGroup",i.editCashierForm),a(5),h(m(8,24,"labels.inputs.Office")),a(2),g("value",i.cashierData.template.officeName),a(3),h(m(13,26,"labels.inputs.Teller Name")),a(2),g("value",i.cashierData.data.tellerName),a(),I(i.isStaffId?15:-1),a(),I(i.isStaffId?-1:16),a(3),h(m(20,28,"labels.inputs.Description/Notes")),a(5),h(m(25,30,"labels.inputs.From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.editCashierForm.controls.startDate.hasError("required")?30:-1),a(3),h(m(34,32,"labels.inputs.To")),a(2),g("min",i.editCashierForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.editCashierForm.controls.endDate.hasError("required")?39:-1),a(3),v(" ",m(43,34,"labels.inputs.Full Day"),"? "),a(3),g("routerLink",oe(38,Qti)),a(),v(" ",m(47,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATECASHIERALLOCATION_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".space[_ngcontent-%COMP%]{padding-top:10px}"]})}}return e})();var iii=()=>["../"];function nii(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function oii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Cashier")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lii(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.createCashierForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var nw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierTemplate=t.cashierTemplate})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.setCreateCashierForm()}setCreateCashierForm(){this.createCashierForm=this.formBuilder.group({staffId:["",ce.required],description:[""],startDate:["",ce.required],endDate:["",ce.required],isFullDay:[!1]})}submit(){let t=this.createCashierForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.createCashierForm.value.startDate,d=this.createCashierForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createCashier(this.cashierTemplate.tellerId,u).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-cashier"]],decls:55,vars:41,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","autofocus","","disabled","",3,"value"],["formControlName","staffId"],[3,"value"],["matInput","","autofocus","","formControlName","description"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"space","flex-48"],["labelPosition","before","formControlName","isFullDay"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),r(),l(10,"mat-form-field",5)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),l(15,"mat-form-field",5)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",7),Se(20,nii,2,2,"mat-option",8,Pe),r(),E(22,oii,7,9,"mat-error"),r(),l(23,"mat-form-field",5)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",9),r(),l(28,"mat-form-field",10),R("click",function(){V(s);let u=ve(35);return q(u.open())}),l(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",11)(33,"mat-datepicker-toggle",12)(34,"mat-datepicker",null,0),E(36,aii,7,9,"mat-error"),r(),l(37,"mat-form-field",10),R("click",function(){V(s);let u=ve(44);return q(u.open())}),l(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",13)(42,"mat-datepicker-toggle",12)(43,"mat-datepicker",null,1),E(45,rii,7,9,"mat-error"),r(),l(46,"div",14)(47,"mat-checkbox",15),c(48),p(49,"translate"),r()()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,lii,3,4,"button",18),r()()()()}if(n&2){let s=ve(35),d=ve(44);a(2),g("formGroup",i.createCashierForm),a(5),h(m(8,24,"labels.inputs.Office")),a(2),g("value",i.cashierTemplate.officeName),a(3),h(m(13,26,"labels.inputs.Teller Name")),a(2),g("value",i.cashierTemplate.tellerName),a(3),h(m(18,28,"labels.inputs.Cashier")),a(3),we(i.cashierTemplate.staffOptions),a(2),I(i.createCashierForm.controls.staffId.hasError("required")?22:-1),a(3),h(m(26,30,"labels.inputs.Description/Notes")),a(5),h(m(31,32,"labels.inputs.From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.createCashierForm.controls.startDate.hasError("required")?36:-1),a(3),h(m(40,34,"labels.inputs.To")),a(2),g("min",i.createCashierForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.createCashierForm.controls.endDate.hasError("required")?45:-1),a(3),v(" ",m(49,36,"labels.inputs.Full Day"),"? "),a(3),g("routerLink",oe(40,iii)),a(),v(" ",m(53,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATECASHIERALLOCATION_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".space[_ngcontent-%COMP%]{padding-top:10px}"]})}}return e})();var sii=()=>["../"];function cii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mii(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),E(8,pii,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.From Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.fromDate.hasError("required")?8:-1)}}function dii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uii(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,1),E(8,dii,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.To Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.toDate.hasError("required")?8:-1)}}function fii(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function hii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment Scheduling Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gii(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",15),Se(5,fii,2,2,"mat-option",16,Pe),r(),E(7,hii,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repayment Scheduling Type")),a(3),we(t.holidayData.repaymentSchedulingTypes),a(2),I(t.holidayForm.controls.reschedulingType.hasError("required")?7:-1)}}function _ii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment scheduled to")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Cii(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,2),E(8,_ii,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Repayment scheduled to")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.repaymentsRescheduledTo.hasError("required")?8:-1)}}function vii(e,o){if(e&1&&(l(0,"button",18),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.holidayForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var ow=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizatioService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.isActiveHoliday=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.holidayData=t.holiday,this.holidayData.repaymentSchedulingTypes=t.holidayTemplate,this.reSchedulingType=this.holidayData.reschedulingType,this.holidayData.status.value==="Active"?this.isActiveHoliday=!0:this.isActiveHoliday=!1})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setEditForm(),this.isActiveHoliday||this.getReschedulingType()}setEditForm(){this.holidayForm=this.formBuilder.group({name:[this.holidayData.name,ce.required],description:[this.holidayData.description]}),this.isActiveHoliday||(this.holidayForm.addControl("fromDate",new it(this.holidayData.fromDate&&new Date(this.holidayData.fromDate),ce.required)),this.holidayForm.addControl("toDate",new it(this.holidayData.toDate&&new Date(this.holidayData.toDate),ce.required)),this.holidayForm.addControl("reschedulingType",new it(this.holidayData.reschedulingType,ce.required)),this.reSchedulingType===2&&this.holidayForm.addControl("repaymentsRescheduledTo",new it(this.holidayData.repaymentsRescheduledTo&&new Date(this.holidayData.repaymentsRescheduledTo),ce.required)))}getReschedulingType(){this.holidayForm.get("reschedulingType").valueChanges.subscribe(t=>{this.reSchedulingType=t,t===2?this.holidayForm.addControl("repaymentsRescheduledTo",new it(new Date,ce.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let t=this.holidayForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat;if(!this.isActiveHoliday){let d=this.holidayForm.value.fromDate,u=this.holidayForm.value.toDate;if(d instanceof Date&&(t.fromDate=this.dateUtils.formatDateAsString(d,i)),u instanceof Date&&(t.toDate=this.dateUtils.formatDateAsString(u,i)),this.reSchedulingType===2){let f=this.holidayForm.value.repaymentsRescheduledTo;f instanceof Date&&(t.repaymentsRescheduledTo=this.dateUtils.formatDateAsString(f,i))}}let s=qt(at({},t),{dateFormat:i,locale:n});this.organizatioService.updateHoliday(this.holidayData.id,s).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-holiday"]],decls:25,vars:18,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],["matInput","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",5)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),E(10,cii,7,9,"mat-error"),r(),E(11,mii,9,8,"mat-form-field"),E(12,uii,9,8,"mat-form-field"),E(13,gii,8,4,"mat-form-field"),E(14,Cii,9,8,"mat-form-field"),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),r()()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),F(24,vii,3,4,"button",10),r()()()()),n&2&&(a(2),g("formGroup",i.holidayForm),a(5),h(m(8,11,"labels.inputs.name")),a(3),I(i.holidayForm.controls.name.hasError("required")?10:-1),a(),I(i.isActiveHoliday?-1:11),a(),I(i.isActiveHoliday?-1:12),a(),I(i.isActiveHoliday?-1:13),a(),I(!i.isActiveHoliday&&i.reSchedulingType===2?14:-1),a(3),h(m(18,13,"labels.inputs.Description")),a(4),g("routerLink",oe(17,sii)),a(),v(" ",m(23,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_HOLIDAY"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var xii=()=>["../"];function bii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL Query")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Sii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Insert into table")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Table Fields")," ",m(3,5,"labels.commons.are")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Tii(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Mii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Custom Report Run Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Dii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Custom Report Run Frequency")," "),a(3),h(m(5,4,"labels.commons.must be larger than 0")))}function Eii(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14),E(5,Mii,7,9,"mat-error"),E(6,Dii,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Custom Report Run Frequency (Days)")),a(3),I(t.editAdhocQueryForm.controls.reportRunEvery.hasError("required")?5:-1),a(),I(t.editAdhocQueryForm.controls.reportRunEvery.hasError("min")?6:-1)}}function Iii(e,o){if(e&1&&(l(0,"button",15),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.editAdhocQueryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var aw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.adhocQueryTemplateData=t.adhocQueryAndTemplate})}ngOnInit(){this.createEditAdhocQueryForm(),this.setConditionalControls()}createEditAdhocQueryForm(){this.reportRunFrequencyData=this.adhocQueryTemplateData.reportRunFrequencies,this.editAdhocQueryForm=this.formBuilder.group({name:[this.adhocQueryTemplateData.name,ce.required],query:[this.adhocQueryTemplateData.query,ce.required],tableName:[this.adhocQueryTemplateData.tableName,ce.required],tableFields:[this.adhocQueryTemplateData.tableFields,ce.required],email:[this.adhocQueryTemplateData.email,ce.email],reportRunFrequency:[""],isActive:[this.adhocQueryTemplateData.isActive]})}setConditionalControls(){this.editAdhocQueryForm.get("reportRunFrequency").valueChanges.subscribe(t=>{t===5?(this.editAdhocQueryForm.addControl("reportRunEvery",new it("",[ce.required,ce.min(1)])),this.editAdhocQueryForm.get("reportRunEvery").patchValue(this.adhocQueryTemplateData.reportRunEvery)):this.editAdhocQueryForm.removeControl("reportRunEvery")}),this.editAdhocQueryForm.get("reportRunFrequency").patchValue(this.adhocQueryTemplateData.reportRunFrequency)}submit(){this.organizationService.updateAdhocQuery(this.adhocQueryTemplateData.id,this.editAdhocQueryForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-adhoc-query"]],decls:51,vars:34,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","query"],["matInput","","required","","formControlName","tableName"],["matInput","","required","","formControlName","tableFields"],["matInput","","formControlName","email"],["formControlName","reportRunFrequency"],[3,"value"],["labelPosition","before","formControlName","isActive"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["type","number","matInput","","required","","formControlName","reportRunEvery"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,bii,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),E(16,yii,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,Sii,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"textarea",6),E(28,wii,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",7),E(34,Pii,7,9,"mat-error"),r(),l(35,"mat-form-field")(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",8),Se(40,Tii,2,2,"mat-option",9,Pe),r()(),E(42,Eii,7,5,"mat-form-field"),l(43,"mat-checkbox",10),c(44),p(45,"translate"),r()()(),l(46,"mat-card-actions",11)(47,"button",12),c(48),p(49,"translate"),r(),F(50,Iii,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.editAdhocQueryForm),a(5),h(m(8,17,"labels.inputs.name")),a(3),I(i.editAdhocQueryForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,19,"labels.inputs.SQL Query")),a(3),I(i.editAdhocQueryForm.controls.query.hasError("required")?16:-1),a(3),h(m(20,21,"labels.inputs.Insert into table")),a(3),I(i.editAdhocQueryForm.controls.tableName.hasError("required")?22:-1),a(3),h(m(26,23,"labels.inputs.Table Fields")),a(3),I(i.editAdhocQueryForm.controls.tableFields.hasError("required")?28:-1),a(3),h(m(32,25,"labels.inputs.Email")),a(3),I(i.editAdhocQueryForm.controls.email.hasError("email")?34:-1),a(3),h(m(38,27,"labels.inputs.Report Run Frequency")),a(3),we(i.reportRunFrequencyData),a(2),I(i.editAdhocQueryForm.controls.reportRunFrequency.value===5?42:-1),a(2),v(" ",m(45,29,"labels.inputs.Active")," "),a(3),g("routerLink",oe(33,xii)),a(),v(" ",m(49,31,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ADHOC"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Oii=()=>["../general"];function Aii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Fii(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function kii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Parent Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bii(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",12),Se(5,Fii,2,2,"mat-option",13,Pe),r(),E(7,kii,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Parent Office")),a(3),we(t.officeData.allowedParents),a(2),I(t.officeForm.controls.parentId.hasError("required")?7:-1)}}function Rii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Opening Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Nii(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.officeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var rw=(()=>{class e{constructor(){this.organizationService=T(li),this.settingsService=T(Ot),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.officeTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createOfficeForm()}createOfficeForm(){this.officeForm=this.formBuilder.group({name:[this.officeData.name,ce.required],openingDate:[this.officeData.openingDate&&new Date(this.officeData.openingDate),ce.required],externalId:[this.officeData.externalId]}),this.officeData.allowedParents.length&&this.officeForm.addControl("parentId",this.formBuilder.control(this.officeData.parentId,ce.required))}submit(){let t=this.officeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.officeForm.value.openingDate;t.openingDate instanceof Date&&(t.openingDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.updateOffice(this.officeData.id,d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-office"]],decls:31,vars:23,consts:[["openingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],[3,"click"],["matInput","","required","","formControlName","openingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","parentId"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,Aii,7,9,"mat-error"),r(),E(11,Bii,8,4,"mat-form-field"),l(12,"mat-form-field",5),R("click",function(){V(s);let u=ve(19);return q(u.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6)(17,"mat-datepicker-toggle",7)(18,"mat-datepicker",null,0),E(20,Rii,7,9,"mat-error"),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",8),r()()(),l(26,"mat-card-actions",9)(27,"button",10),c(28),p(29,"translate"),r(),F(30,Nii,3,4,"button",11),r()()()()}if(n&2){let s=ve(19);a(2),g("formGroup",i.officeForm),a(5),h(m(8,14,"labels.inputs.Office")),a(3),I(i.officeForm.controls.name.hasError("required")?10:-1),a(),I(i.officeForm.contains("parentId")?11:-1),a(3),h(m(15,16,"labels.inputs.Opened On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.officeForm.controls.openingDate.hasError("required")?20:-1),a(3),h(m(24,18,"labels.inputs.External ID")),a(4),g("routerLink",oe(22,Oii)),a(),v(" ",m(29,20,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_OFFICE")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var E6=()=>["Offices"],I6=()=>["Users"],O6=()=>["Groups"],A6=()=>["Loan Accounts"],F6=()=>["Savings Accounts"],k6=()=>["Fixed Deposit Accounts"],B6=()=>["Chart of Accounts"],R6=()=>["Share Accounts"],N6=()=>["Employees"],L6=()=>["Clients"],V6=()=>["Centers"],q6=()=>["Loan Repayments"],z6=()=>["Savings Transactions"],H6=()=>["Fixed Deposit Transactions"],G6=()=>["Recurring Deposit Transactions"],j6=()=>["Journal Entries"],$6=()=>["Guarantors"];function Lii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function Vii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function qii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,E6)),a(),v(" ",m(2,2,"labels.text.Download, Upload Offices Template")," "))}function zii(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",5),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Lii,1,0,"fa-icon",7),E(7,Vii,1,0,"fa-icon",8),E(8,qii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,E6)),a(2),g("routerLink",oe(9,E6)),a(),h(m(5,6,"labels.heading.Offices")),a(2),I(t.arrowBooleans[0]?-1:6),a(),I(t.arrowBooleans[0]?7:-1),a(),I(t.arrowBooleans[0]?8:-1)}}function Hii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function Gii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function jii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,I6)),a(),v(" ",m(2,2,"labels.text.Download offices template and Upload office excel files")," "))}function $ii(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",11),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Hii,1,0,"fa-icon",7),E(7,Gii,1,0,"fa-icon",8),E(8,jii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,I6)),a(2),g("routerLink",oe(9,I6)),a(),h(m(5,6,"labels.heading.Users")),a(2),I(t.arrowBooleans[1]?-1:6),a(),I(t.arrowBooleans[1]?7:-1),a(),I(t.arrowBooleans[1]?8:-1)}}function Uii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function Wii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function Qii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,O6)),a(),v(" ",m(2,2,"labels.text.Download groups template and Upload group excel files")," "))}function Yii(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",12),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Uii,1,0,"fa-icon",7),E(7,Wii,1,0,"fa-icon",8),E(8,Qii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,O6)),a(2),g("routerLink",oe(9,O6)),a(),h(m(5,6,"labels.heading.Groups")),a(2),I(t.arrowBooleans[2]?-1:6),a(),I(t.arrowBooleans[2]?7:-1),a(),I(t.arrowBooleans[2]?8:-1)}}function Jii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function Kii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function Xii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,A6)),a(),v(" ",m(2,2,"labels.text.Download loan accounts template and upload loan account excel files")," "))}function Zii(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",13),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Jii,1,0,"fa-icon",7),E(7,Kii,1,0,"fa-icon",8),E(8,Xii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,A6)),a(2),g("routerLink",oe(9,A6)),a(),h(m(5,6,"labels.heading.Loan Accounts")),a(2),I(t.arrowBooleans[3]?-1:6),a(),I(t.arrowBooleans[3]?7:-1),a(),I(t.arrowBooleans[3]?8:-1)}}function eni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function tni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function ini(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,F6)),a(),v(" ",m(2,2,"labels.text.Download savings accounts template and upload savings account excel files")," "))}function nni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,eni,1,0,"fa-icon",7),E(7,tni,1,0,"fa-icon",8),E(8,ini,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,F6)),a(2),g("routerLink",oe(9,F6)),a(),h(m(5,6,"labels.heading.Savings Accounts")),a(2),I(t.arrowBooleans[4]?-1:6),a(),I(t.arrowBooleans[4]?7:-1),a(),I(t.arrowBooleans[4]?8:-1)}}function oni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function ani(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function rni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,k6)),a(),v(" ",m(2,2,"labels.text.Download fixed deposit accounts template and upload fixed deposit account excel files")," "))}function lni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,oni,1,0,"fa-icon",7),E(7,ani,1,0,"fa-icon",8),E(8,rni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,k6)),a(2),g("routerLink",oe(9,k6)),a(),v(" ",m(5,6,"labels.heading.Fixed Deposit Accounts")," "),a(2),I(t.arrowBooleans[5]?-1:6),a(),I(t.arrowBooleans[5]?7:-1),a(),I(t.arrowBooleans[5]?8:-1)}}function sni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function cni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function pni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,B6)),a(),v(" ",m(2,2,"labels.text.Download chart of accounts template and upload chart of account excel files")," "))}function mni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",13),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,sni,1,0,"fa-icon",7),E(7,cni,1,0,"fa-icon",8),E(8,pni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,B6)),a(2),g("routerLink",oe(9,B6)),a(),h(m(5,6,"labels.heading.Chart of Accounts")),a(2),I(t.arrowBooleans[6]?-1:6),a(),I(t.arrowBooleans[6]?7:-1),a(),I(t.arrowBooleans[6]?8:-1)}}function dni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function uni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function fni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,R6)),a(),v(" ",m(2,2,"labels.text.Download share accounts template and upload share account excel files")," "))}function hni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,dni,1,0,"fa-icon",7),E(7,uni,1,0,"fa-icon",8),E(8,fni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,R6)),a(2),g("routerLink",oe(9,R6)),a(),h(m(5,6,"labels.heading.Share Accounts")),a(2),I(t.arrowBooleans[7]?-1:6),a(),I(t.arrowBooleans[7]?7:-1),a(),I(t.arrowBooleans[7]?8:-1)}}function gni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function _ni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function Cni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,N6)),a(),v(" ",m(2,2,"labels.text.Download loan accounts template and upload loan account excel files")," "))}function vni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",11),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,gni,1,0,"fa-icon",7),E(7,_ni,1,0,"fa-icon",8),E(8,Cni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,N6)),a(2),g("routerLink",oe(9,N6)),a(),h(m(5,6,"labels.heading.Employees")),a(2),I(t.arrowBooleans[8]?-1:6),a(),I(t.arrowBooleans[8]?7:-1),a(),I(t.arrowBooleans[8]?8:-1)}}function xni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function bni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function yni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,L6)),a(),v(" ",m(2,2,"labels.text.Download clients template and upload clients excel files")," "))}function Sni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",11),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,xni,1,0,"fa-icon",7),E(7,bni,1,0,"fa-icon",8),E(8,yni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,L6)),a(2),g("routerLink",oe(9,L6)),a(),h(m(5,6,"labels.heading.Clients")),a(2),I(t.arrowBooleans[9]?-1:6),a(),I(t.arrowBooleans[9]?7:-1),a(),I(t.arrowBooleans[9]?8:-1)}}function wni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function Pni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function Tni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,V6)),a(),v(" ",m(2,2,"labels.text.Download centers template and upload centers excel files")," "))}function Mni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",12),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,wni,1,0,"fa-icon",7),E(7,Pni,1,0,"fa-icon",8),E(8,Tni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,V6)),a(2),g("routerLink",oe(9,V6)),a(),h(m(5,6,"labels.heading.Centers")),a(2),I(t.arrowBooleans[10]?-1:6),a(),I(t.arrowBooleans[10]?7:-1),a(),I(t.arrowBooleans[10]?8:-1)}}function Dni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function Eni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function Ini(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,q6)),a(),v(" ",m(2,2,"labels.text.Download loan repayments template and upload loan repayment excel files")," "))}function Oni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Dni,1,0,"fa-icon",7),E(7,Eni,1,0,"fa-icon",8),E(8,Ini,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,q6)),a(2),g("routerLink",oe(9,q6)),a(),h(m(5,6,"labels.heading.Loan Repayments")),a(2),I(t.arrowBooleans[11]?-1:6),a(),I(t.arrowBooleans[11]?7:-1),a(),I(t.arrowBooleans[11]?8:-1)}}function Ani(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function Fni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function kni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,z6)),a(),v(" ",m(2,2,"labels.text.Download savings transactions template and upload savings transaction excel files")," "))}function Bni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Ani,1,0,"fa-icon",7),E(7,Fni,1,0,"fa-icon",8),E(8,kni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,z6)),a(2),g("routerLink",oe(9,z6)),a(),v(" ",m(5,6,"labels.heading.Savings Transactions")," "),a(2),I(t.arrowBooleans[12]?-1:6),a(),I(t.arrowBooleans[12]?7:-1),a(),I(t.arrowBooleans[12]?8:-1)}}function Rni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function Nni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function Lni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,H6)),a(),v(" ",m(2,2,"labels.text.Download fixed deposit transactions template and upload fixed deposit transaction excel files")," "))}function Vni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Rni,1,0,"fa-icon",7),E(7,Nni,1,0,"fa-icon",8),E(8,Lni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,H6)),a(2),g("routerLink",oe(9,H6)),a(),v(" ",m(5,6,"labels.heading.Fixed Deposit Transactions")," "),a(2),I(t.arrowBooleans[13]?-1:6),a(),I(t.arrowBooleans[13]?7:-1),a(),I(t.arrowBooleans[13]?8:-1)}}function qni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function zni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function Hni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,G6)),a(),v(" ",m(2,2,"labels.text.Download recurring deposit transactions template and upload recurring deposit transaction excel files")," "))}function Gni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,qni,1,0,"fa-icon",7),E(7,zni,1,0,"fa-icon",8),E(8,Hni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,G6)),a(2),g("routerLink",oe(9,G6)),a(),v(" ",m(5,6,"labels.heading.Recurring Deposit Transactions")," "),a(2),I(t.arrowBooleans[14]?-1:6),a(),I(t.arrowBooleans[14]?7:-1),a(),I(t.arrowBooleans[14]?8:-1)}}function jni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function $ni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function Uni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,j6)),a(),v(" ",m(2,2,"labels.text.Download journal entries template and upload journal entries excel files")," "))}function Wni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",15),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,jni,1,0,"fa-icon",7),E(7,$ni,1,0,"fa-icon",8),E(8,Uni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,j6)),a(2),g("routerLink",oe(9,j6)),a(),h(m(5,6,"labels.heading.Journal Entries")),a(2),I(t.arrowBooleans[15]?-1:6),a(),I(t.arrowBooleans[15]?7:-1),a(),I(t.arrowBooleans[15]?8:-1)}}function Qni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function Yni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function Jni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,$6)),a(),v(" ",m(2,2,"labels.text.Download guarantors template and upload guarantor excel files")," "))}function Kni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",15),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Qni,1,0,"fa-icon",7),E(7,Yni,1,0,"fa-icon",8),E(8,Jni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,$6)),a(2),g("routerLink",oe(9,$6)),a(),h(m(5,6,"labels.heading.Guarantors")),a(2),I(t.arrowBooleans[16]?-1:6),a(),I(t.arrowBooleans[16]?7:-1),a(),I(t.arrowBooleans[16]?8:-1)}}var lw=(()=>{class e{constructor(){this.arrowBooleans=new Array(17).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-bulk-import"]],decls:24,vars:17,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[4,"mifosxHasPermission"],["matListIcon","",3,"routerLink"],["icon","building","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","user","size","sm"],["icon","users","size","sm"],["icon","money-bill-alt","size","sm"],["icon","briefcase","size","sm"],["icon","chevron-right","size","sm"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list"),F(5,zii,9,10,"mat-list-item",3)(6,$ii,9,10,"mat-list-item",3)(7,Yii,9,10,"mat-list-item",3)(8,Zii,9,10,"mat-list-item",3)(9,nni,9,10,"mat-list-item",3)(10,lni,9,10,"mat-list-item",3)(11,mni,9,10,"mat-list-item",3)(12,hni,9,10,"mat-list-item",3),r()(),l(13,"div",2)(14,"mat-nav-list"),F(15,vni,9,10,"mat-list-item",3)(16,Sni,9,10,"mat-list-item",3)(17,Mni,9,10,"mat-list-item",3)(18,Oni,9,10,"mat-list-item",3)(19,Bni,9,10,"mat-list-item",3)(20,Vni,9,10,"mat-list-item",3)(21,Gni,9,10,"mat-list-item",3)(22,Wni,9,10,"mat-list-item",3)(23,Kni,9,10,"mat-list-item",3),r()()()()()),n&2&&(a(5),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"))},dependencies:[ue,fe,Oe,Ue,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var sw=[{name:"Offices",entityType:"offices",urlSuffix:"/offices",permission:"READ_OFFICE",formFields:0},{name:"Users",entityType:"users",urlSuffix:"/users",permission:"READ_CLIENT",formFields:2},{name:"Groups",entityType:"groups",urlSuffix:"/groups",permission:"READ_CLIENT",formFields:2},{name:"Centers",entityType:"centers",urlSuffix:"/centers",permission:"READ_CENTERS",formFields:2},{name:"Clients",entityType:"client",urlSuffix:"/clients",permission:"READ_CLIENT",formFields:3},{name:"Employees",entityType:"staff",urlSuffix:"/staff",permission:"READ_CLIENT",formFields:1},{name:"Guarantors",entityType:"guarantors",urlSuffix:"/loans/1/guarantors",permission:"READ_CLIENT",formFields:1},{name:"Journal Entries",entityType:"gljournalentries",urlSuffix:"/journalentries",permission:"READ_CLIENT",formFields:1},{name:"Loan Accounts",entityType:"loans",urlSuffix:"/loans",permission:"READ_CLIENT",formFields:2},{name:"Savings Accounts",entityType:"savingsaccount",urlSuffix:"/savingsaccounts",permission:"READ_CLIENT",formFields:2},{name:"Fixed Deposit Accounts",entityType:"fixeddepositaccounts",urlSuffix:"/fixeddepositaccounts",permission:"READ_CLIENT",formFields:2},{name:"Reccuring Deposit Accounts",entityType:"recurringdeposits",urlSuffix:"/recurringdepositaccounts",permission:"READ_CLIENT",formFields:2},{name:"Chart of Accounts",entityType:"chartofaccounts",urlSuffix:"/glaccounts",permission:"READ_CLIENT",formFields:2},{name:"Share Accounts",entityType:"shareaccounts",urlSuffix:"/accounts/share",permission:"READ_CLIENT",formFields:1},{name:"Loan Repayments",entityType:"loantransactions",urlSuffix:"/loans/repayments",permission:"READ_CLIENT",formFields:1},{name:"Savings Transactions",entityType:"savingstransactions",urlSuffix:"/savingsaccounts/transactions",permission:"READ_CLIENT",formFields:1},{name:"Fixed Deposit Transactions",entityType:"fixeddeposittransactions",urlSuffix:"/fixeddepositaccounts/transaction",permission:"READ_CLIENT",formFields:1},{name:"Recurring Deposit Transactions",entityType:"recurringdepositstransactions",urlSuffix:"/recurringdepositaccounts/transactions",permission:"READ_CLIENT",formFields:1}];var Xni=["importsTable"],Zni=()=>[10,25,50,100];function eoi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function toi(e,o){if(e&1&&(l(0,"div")(1,"mat-form-field",30)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",31),Se(6,eoi,2,2,"mat-option",32,Pe),r()()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Office")),a(3),we(t.officeData)}}function ioi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function noi(e,o){if(e&1&&(l(0,"div")(1,"mat-form-field",30)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",33),Se(6,ioi,2,2,"mat-option",32,Pe),r()()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Staff")),a(3),we(t.staffData)}}function ooi(e,o){e&1&&(l(0,"div")(1,"mat-form-field",30)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",34)(6,"mat-option",35),c(7),p(8,"translate"),r(),l(9,"mat-option",36),c(10),p(11,"translate"),r()()()()),e&2&&(a(3),h(m(4,3,"labels.inputs.Legal Form")),a(4),h(m(8,5,"labels.inputs.Entity")),a(3),h(m(11,7,"labels.inputs.Person")))}function aoi(e,o){if(e&1){let t=Y();l(0,"button",13),R("click",function(){V(t);let i=w();return q(i.downloadTemplate())}),b(1,"i",37),c(2),p(3,"translate"),r()}e&2&&(a(2),v("\xA0\xA0",m(3,1,"labels.buttons.Download")," "))}function roi(e,o){e&1&&(l(0,"mat-hint"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.Please retain the value Entity/Person in the filename.")))}function loi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function soi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function coi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Import Time")))}function poi(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.importTime))}}function moi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Time")))}function doi(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.endTime))}}function uoi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Completed")))}function foi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.completed)}}function hoi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Records")))}function goi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalRecords)}}function _oi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Success Count")))}function Coi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.successCount)}}function voi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Failure Count")))}function xoi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.failureCount)}}function boi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Download")))}function yoi(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.downloadDocument(i.name,i.importId))}),b(1,"fa-icon",42),r()}}function Soi(e,o){e&1&&(l(0,"td",39),F(1,yoi,2,0,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","READ_DOCUMENT"))}function woi(e,o){e&1&&b(0,"tr",43)}function Poi(e,o){e&1&&b(0,"tr",44)}var cw=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.organizationService=T(li),this.bulkImportsArray=sw,this.bulkImport={},this.dataSource=new Wt,this.displayedColumns=["name","importTime","endTime","completed","totalRecords","successCount","failureCount","download"],this.bulkImport.name=this.route.snapshot.params["import-name"],this.route.data.subscribe(t=>{this.officeData=t.offices,this.importsData=t.imports})}ngOnInit(){this.bulkImport=this.bulkImportsArray.find(t=>t.name===this.bulkImport.name),this.createBulkImportForm(),this.buildDependencies(),this.setImports()}createBulkImportForm(){this.bulkImportForm=this.formBuilder.group({officeId:[""],staffId:[""],legalForm:[""]})}buildDependencies(){this.bulkImportForm.get("officeId").valueChanges.subscribe(t=>{this.bulkImport.formFields>=2&&this.organizationService.getStaff(t).subscribe(n=>{this.staffData=n})})}setImports(){this.dataSource=new Wt(this.importsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}downloadTemplate(){let t=this.bulkImportForm.get("officeId").value,n=this.bulkImportForm.get("staffId").value,i="";switch(this.bulkImportForm.get("legalForm").value){case"Person":i="CLIENTS_PERSON";break;case"Entity":i="CLIENTS_ENTITY";break}this.organizationService.getImportTemplate(this.bulkImport.urlSuffix,t,n,i).subscribe(s=>{let d=s.headers.get("Content-Type"),u=new Blob([s.body],{type:d}),f=new File([u],"template.xls",{type:d});window.open(window.URL.createObjectURL(f))})}onFileSelect(t){t.target.files.length>0&&(this.template=t.target.files[0])}uploadTemplate(){let t="";this.bulkImport.name==="Clients"&&(this.template.name.toLowerCase().includes("entity")?t="CLIENTS_ENTITY":this.template.name.toLowerCase().includes("person")&&(t="CLIENTS_PERSON")),this.organizationService.uploadImportDocument(this.template,this.bulkImport.urlSuffix,t).subscribe(()=>{})}refreshDocuments(){this.organizationService.getImports(this.bulkImport.entityType).subscribe(t=>{this.dataSource=new Wt(t),this.importsTableRef.renderRows()})}downloadDocument(t,n){this.organizationService.getImportDocument(n).subscribe(i=>{let s=i.headers.get("Content-Type"),d=new Blob([i.body],{type:s}),u=new File([d],t,{type:s});window.open(window.URL.createObjectURL(u))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-bulk-import"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(Xni,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.importsTableRef=s.first)}},decls:70,vars:29,consts:[["importsTable",""],[1,"container"],[1,"gap-2percent","m-b-20"],[1,"layout-column","gap-2percent","flex-50"],[3,"formGroup"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["flex","75%","acceptFilter",".xls,.xlsx",3,"change"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"fa","fa-upload"],[1,"documents"],[1,"m-b-10","layout-align-end"],["mat-raised-button","","color","primary",3,"click"],[1,"fa","fa-repeat"],[1,"imports-table","mat-elevation-z1"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","importTime"],["matColumnDef","endTime"],["matColumnDef","completed"],["matColumnDef","totalRecords"],["matColumnDef","successCount"],["matColumnDef","failureCount"],["matColumnDef","download"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"flex-fill"],["formControlName","officeId"],[3,"value"],["formControlName","staffId"],["required","","formControlName","legalForm"],["value","Entity"],["value","Person"],[1,"fa","fa-download"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"mifosxHasPermission"],["mat-icon-button","",3,"click"],["icon","cloud-download-alt"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"div",2)(2,"mat-card",3)(3,"h3")(4,"strong"),c(5),p(6,"translate"),r()(),l(7,"form",4)(8,"mat-card-content"),E(9,toi,8,3,"div"),E(10,noi,8,3,"div"),E(11,ooi,12,9,"div"),r()(),l(12,"div",5),F(13,aoi,4,3,"button",6),r()(),l(14,"mat-card",3)(15,"h3")(16,"strong"),c(17),r()(),l(18,"h4"),c(19),p(20,"translate"),r(),l(21,"mifosx-file-upload",7),R("change",function(u){return V(s),q(i.onFileSelect(u))}),r(),E(22,roi,3,3,"mat-hint"),b(23,"div",8),l(24,"div",5)(25,"button",9),R("click",function(){return V(s),q(i.uploadTemplate())}),b(26,"i",10),c(27),p(28,"translate"),r()()()(),l(29,"mat-card")(30,"div")(31,"h3",11)(32,"strong"),c(33),p(34,"translate"),r()()(),l(35,"div",12)(36,"button",13),R("click",function(){return V(s),q(i.refreshDocuments())}),b(37,"i",14),c(38),p(39,"translate"),r()(),l(40,"div",15)(41,"table",16,0),X(43,17),F(44,loi,3,3,"th",18)(45,soi,2,1,"td",19),Z(),X(46,20),F(47,coi,3,3,"th",18)(48,poi,3,3,"td",19),Z(),X(49,21),F(50,moi,3,3,"th",18)(51,doi,3,3,"td",19),Z(),X(52,22),F(53,uoi,3,3,"th",18)(54,foi,2,1,"td",19),Z(),X(55,23),F(56,hoi,3,3,"th",18)(57,goi,2,1,"td",19),Z(),X(58,24),F(59,_oi,3,3,"th",18)(60,Coi,2,1,"td",19),Z(),X(61,25),F(62,voi,3,3,"th",18)(63,xoi,2,1,"td",19),Z(),X(64,26),F(65,boi,3,3,"th",18)(66,Soi,2,1,"td",19),Z(),F(67,woi,1,0,"tr",27)(68,Poi,1,0,"tr",28),r()(),b(69,"mat-paginator",29),r()()}n&2&&(a(5),le("",i.bulkImport.name," ",m(6,18,"labels.heading.Template")),a(2),g("formGroup",i.bulkImportForm),a(2),I(i.bulkImport.formFields>=1?9:-1),a(),I(i.bulkImport.formFields>=2?10:-1),a(),I(i.bulkImport.formFields===3?11:-1),a(2),g("mifosxHasPermission",i.bulkImport.permission),a(4),h(i.bulkImport.name),a(2),h(m(20,20,"labels.heading.Select Excel File")),a(3),I(i.bulkImport.name==="Clients"?22:-1),a(3),g("disabled",!i.template),a(2),v("\xA0\xA0",m(28,22,"labels.buttons.Upload")," "),a(6),h(m(34,24,"labels.heading.Documents")),a(5),v("\xA0\xA0",m(39,26,"labels.buttons.Refresh")," "),a(3),g("dataSource",i.dataSource),a(26),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(28,Zni)))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Ue,Je,Fe,Be,qa,gt,ft,xe,Ke,wp,_t,It,xt,vt,bt,ri,Ct,yt,wi,ke,St,Pt,wt,Tt,kt,Pi,he],styles:[".container[_ngcontent-%COMP%]{padding:24px;max-width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:24px;margin-bottom:24px;align-items:stretch}@media (width <= 768px){.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{flex-direction:column}}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{flex:1;padding:24px;display:flex;flex-direction:column;border-radius:20px;min-height:400px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:400;margin:16px 0 12px;color:#555}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0;margin-bottom:20px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%]{margin-top:auto;padding-top:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:12px 24px;font-weight:500;width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1;min-height:20px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mifosx-file-upload[_ngcontent-%COMP%]{margin:16px 0;flex-grow:1;padding-top:20px!important}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{margin:12px 0;font-size:12px;color:#666}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex.cover[_ngcontent-%COMP%]{flex-grow:1}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child{padding:24px;border-radius:20px;position:relative}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .documents[_ngcontent-%COMP%]{margin:16px 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%]{position:absolute;right:24px;top:24px;margin-bottom:0}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px 16px}.imports-table[_ngcontent-%COMP%]{overflow:auto;margin-top:16px;border-radius:8px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#0000000a}mat-paginator[_ngcontent-%COMP%]{margin-top:16px}"]})}}return e})();var Toi=()=>["edit"];function Moi(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Toi)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Doi(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w();return q(i.deleteCriteria())}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function Eoi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function Ioi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function Ooi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Min Age")))}function Aoi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minAge)}}function Foi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Max Age")))}function koi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maxAge)}}function Boi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Percentage")))}function Roi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.provisioningPercentage)}}function Noi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Liability Account")))}function Loi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.liabilityName)}}function Voi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function qoi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.expenseName)}}function zoi(e,o){e&1&&b(0,"tr",25)}function Hoi(e,o){e&1&&b(0,"tr",26)}var pw=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.loanProducts="",this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount"],this.route.data.subscribe(t=>{this.provisioningData=t.loanProvisioningCriteria})}ngOnInit(){this.setLoanProvisioningSelectedCriteria()}setLoanProvisioningSelectedCriteria(){this.dataSource=new Wt(this.provisioningData.definitions),this.provisioningData.loanProducts&&this.provisioningData.loanProducts.length>0?this.loanProducts=this.provisioningData.loanProducts.filter(t=>t&&t.name).map(t=>t.name).join(", "):this.loanProducts=""}deleteCriteria(){this.dialog.open(vi,{data:{deleteContext:`Loan Provisioning Criteria id: ${this.provisioningData.criteriaId}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteProvisioningCriteria(this.provisioningData.criteriaId).subscribe(()=>{this.router.navigate(["/organization/provisioning-criteria"])},i=>{console.error("Failed to delete provisioning criteria:",i)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-loan-provisioning-criteria"]],decls:38,vars:11,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","align-center"],[1,"mat-h2","criteria-title"],[1,"loan-product-label"],[3,"inset"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Moi,4,5,"button",1)(2,Doi,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"h2",5),c(8),r(),l(9,"span",6)(10,"strong"),c(11),p(12,"translate"),r(),l(13,"span"),c(14),r()()(),b(15,"mat-divider",7),l(16,"div")(17,"table",8),X(18,9),F(19,Eoi,3,3,"th",10)(20,Ioi,2,1,"td",11),Z(),X(21,12),F(22,Ooi,3,3,"th",10)(23,Aoi,2,1,"td",11),Z(),X(24,13),F(25,Foi,3,3,"th",10)(26,koi,2,1,"td",11),Z(),X(27,14),F(28,Boi,3,3,"th",10)(29,Roi,2,1,"td",11),Z(),X(30,15),F(31,Noi,3,3,"th",10)(32,Loi,2,1,"td",11),Z(),X(33,16),F(34,Voi,3,3,"th",10)(35,qoi,2,1,"td",11),Z(),F(36,zoi,1,0,"tr",17)(37,Hoi,1,0,"tr",18),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_CRITERIA"),a(),g("mifosxHasPermission","DELETE_CRITERIA"),a(6),v(" ",i.provisioningData.criteriaName," "),a(3),v("",m(12,9,"labels.inputs.Loan Product"),":"),a(3),h(i.loanProducts),a(),g("inset",!0),a(2),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he],styles:[".criteria-title[_ngcontent-%COMP%]{margin-bottom:0;display:inline;vertical-align:middle}.loan-product-label[_ngcontent-%COMP%]{margin-left:24px;font-size:1.1em;vertical-align:middle}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.loanProduct[_ngcontent-%COMP%]{padding:10px 0}"]})}}return e})();function Goi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function joi(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),r(),b(3,"input",14),F(4,Goi,6,7,"mat-error",10),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function $oi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Uoi(e,o){if(e&1){let t=Y();l(0,"mat-form-field",15),R("click",function(){V(t);let i=ve(6);return q(i.open())}),l(1,"mat-label"),c(2),r(),b(3,"input",16)(4,"mat-datepicker-toggle",17)(5,"mat-datepicker",null,0),F(7,$oi,6,7,"mat-error",10),r()}if(e&2){let t=ve(6),n=w(2).$implicit,i=w();a(2),h(n.label),a(),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t)("formControlName",n.name),a(),g("for",t),a(3),g("ngIf",i.ReportForm.controls[n.name].hasError("required"))}}function Woi(e,o){if(e&1&&(l(0,"mat-option",20),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function Qoi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Yoi(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),r(),l(3,"mat-select",18),F(4,Woi,2,2,"mat-option",19),r(),F(5,Qoi,6,7,"mat-error",10),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngForOf",t.selectOptions),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function Joi(e,o){e&1&&(X(0),F(1,joi,5,3,"mat-form-field",11)(2,Uoi,8,7,"mat-form-field",12)(3,Yoi,6,4,"mat-form-field",11),Z()),e&2&&(a(),g("ngSwitchCase","text"),a(),g("ngSwitchCase","date"),a(),g("ngSwitchCase","select"))}function Koi(e,o){if(e&1&&(X(0,9),F(1,Joi,4,3,"ng-container",10),Z()),e&2){let t=o.$implicit,n=w();g("ngSwitch",t.displayType),a(),g("ngIf",n.ReportForm.contains(t.name))}}var xh=(()=>{class e{constructor(){this.reportsService=T(lr),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.ReportForm=new Is({}),this.parentParameters=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.templateParameters=new bi}ngOnInit(){this.maxDate=this.settingsService.businessDate}ngOnChanges(){this.paramData&&(this.ReportForm=new Is({}),this.reportName=this.paramData.reportName,this.paramData=this.paramData.response,this.createRunReportForm())}get businessRuleFormValue(){let t=this.formatUserResponse(this.ReportForm.value,!1);return t.reportName=this.reportName,{paramValue:t}}createRunReportForm(){this.paramData.forEach(t=>{if(!t.parentParameterName)this.ReportForm.addControl(t.name,new it("",ce.required)),t.displayType==="select"&&this.fetchSelectOptions(t,t.name);else{let n=this.paramData.find(i=>i.name===t.parentParameterName);n.childParameters.push(t),this.updateParentParameters(n)}}),this.setChildControls()}updateParentParameters(t){let n=this.parentParameters.map(i=>i.name);if(!n.includes(t.name))this.parentParameters.push(t);else{let i=n.indexOf(t.name);this.parentParameters[i]=t}}setChildControls(){this.parentParameters.forEach(t=>{this.ReportForm.get(t.name).valueChanges.subscribe(n=>{t.childParameters.forEach(i=>{if(i.displayType==="none"?this.ReportForm.addControl(i.name,new it(i.defaultVal)):this.ReportForm.addControl(i.name,new it("",ce.required)),i.displayType==="select"){let s=`${i.name}?${t.inputName}=${n.id}`;this.fetchSelectOptions(i,s)}})})})}fetchSelectOptions(t,n){this.reportsService.getSelectOptions(n).subscribe(i=>{t.selectOptions=i,t.selectAll==="Y"&&t.selectOptions.push({id:"-1",name:"All"})})}formatUserResponse(t,n){let i={},s;for(let[d,u]of Object.entries(t)){let f=this.paramData.find(_=>_.name===d);switch(s=n?f.inputName:f.variable,f.displayType){case"text":i[s]=u;break;case"select":i[s]=u.id;break;case"date":let _=this.settingsService.dateFormat;i[s]=this.dateUtils.formatDate(u,_);break;case"none":i[s]=u;break}}return i}getResponseHeaders(){let t=this.formatUserResponse(this.ReportForm.value,!0);this.reportsService.getRunReportData(this.reportName,t).subscribe(n=>{this.templateParameters.emit(n.columnHeaders)},n=>{this.templateParameters.emit(null)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-business-rule-parameters"]],inputs:{paramData:"paramData"},outputs:{templateParameters:"templateParameters"},features:[Uo],decls:12,vars:9,consts:[["runReportDatePicker",""],[1,"layout-column"],[1,"flex-98"],[1,"mat-h3","flex-98"],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"layout-align-center","margin-t"],["mat-raised-button","","matStepperNext","","color","primary",3,"click","disabled"],[3,"ngSwitch"],[4,"ngIf"],["class","flex-48",4,"ngSwitchCase"],["class","flex-48",3,"click",4,"ngSwitchCase"],[1,"flex-48"],["matInput","","required","",3,"formControlName"],[1,"flex-48",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,i){n&1&&(l(0,"div",1),b(1,"mat-divider",2),l(2,"h3",3),c(3),p(4,"translate"),r(),l(5,"form",4)(6,"div",5),F(7,Koi,2,2,"ng-container",6),r()()(),l(8,"div",7)(9,"button",8),R("click",function(){return i.getResponseHeaders()}),c(10),p(11,"translate"),r()()),n&2&&(a(3),h(m(4,5,"labels.heading.Business Rule Parameters")),a(2),g("formGroup",i.ReportForm),a(2),g("ngForOf",i.paramData),a(2),g("disabled",!i.ReportForm.valid),a(),v(" ",m(11,7,"labels.buttons.Get Parameters")," "))},dependencies:[ue,ts,Js,Ks,Xs,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ri,Ji,he],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function Xoi(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Zoi(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,Xoi,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.SMS Provider")),a(3),we(t.smsProviders)}}function eai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function tai(e,o){if(e&1){let t=Y();l(0,"mat-form-field",12),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",13)(5,"mat-datepicker-toggle",14)(6,"mat-datepicker",null,0),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,8,"labels.inputs.Schedule Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(4),le(" ",m(10,10,"labels.inputs.Schedule Date")," ",m(11,12,"labels.commons.is")," "),a(4),h(m(14,14,"labels.commons.required"))}}function iai(e,o){e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",15)(5,"mat-option",6),c(6),p(7,"translate"),r(),l(8,"mat-option",6),c(9),p(10,"translate"),r(),l(11,"mat-option",6),c(12),p(13,"translate"),r(),l(14,"mat-option",6),c(15),p(16,"translate"),r()(),l(17,"mat-error"),c(18),p(19,"translate"),p(20,"translate"),l(21,"strong"),c(22),p(23,"translate"),r()()()),e&2&&(a(2),h(m(3,12,"labels.inputs.Repeats")),a(3),g("value",1),a(),h(m(7,14,"labels.inputs.Daily")),a(2),g("value",2),a(),h(m(10,16,"labels.inputs.Weekly")),a(2),g("value",3),a(),h(m(13,18,"labels.inputs.Monthly")),a(2),g("value",4),a(),h(m(16,20,"labels.inputs.Yearly")),a(3),le(" ",m(19,22,"labels.inputs.Repetition Frequency")," ",m(20,24,"labels.commons.is")," "),a(4),h(m(23,26,"labels.commons.required")))}function nai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function oai(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,nai,2,2,"mat-option",6,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Repetition Interval")),a(3),we(t.repetitionIntervals),a(3),le(" ",m(9,6,"labels.inputs.Repetition Interval")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}function aai(e,o){e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",17)(5,"mat-option",18),c(6),p(7,"translate"),r(),l(8,"mat-option",19),c(9),p(10,"translate"),r(),l(11,"mat-option",20),c(12),p(13,"translate"),r(),l(14,"mat-option",21),c(15),p(16,"translate"),r(),l(17,"mat-option",22),c(18),p(19,"translate"),r(),l(20,"mat-option",23),c(21),p(22,"translate"),r(),l(23,"mat-option",24),c(24),p(25,"translate"),r()(),l(26,"mat-error"),c(27),p(28,"translate"),l(29,"strong"),c(30),p(31,"translate"),r(),c(32),p(33,"translate"),r()()),e&2&&(a(2),h(m(3,11,"labels.inputs.Repeats on Day")),a(4),h(m(7,13,"labels.inputs.Monday")),a(3),h(m(10,15,"labels.inputs.Tuesday")),a(3),h(m(13,17,"labels.inputs.Wednesday")),a(3),h(m(16,19,"labels.inputs.Thursday")),a(3),h(m(19,21,"labels.inputs.Friday")),a(3),h(m(22,23,"labels.inputs.Saturday")),a(3),h(m(25,25,"labels.inputs.Sunday")),a(3),v(" ",m(28,27,"labels.inputs.At least")," "),a(3),h(m(31,29,"labels.inputs.one")),a(2),v(" ",m(33,31,"labels.inputs.day must be selected")," "))}function rai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.reportId),a(),v(" ",t.reportName," ")}}function lai(e,o){e&1&&(l(0,"div",9)(1,"button",25),b(2,"fa-icon",26),c(3),p(4,"translate"),r(),l(5,"button",27),c(6),p(7,"translate"),b(8,"fa-icon",28),r()()),e&2&&(a(3),v(" ",m(4,2,"labels.buttons.Previous")," "),a(3),v(" ",m(7,4,"labels.buttons.Next")," "))}function sai(e,o){if(e&1){let t=Y();l(0,"mifosx-business-rule-parameters",29),R("templateParameters",function(i){V(t);let s=w();return q(s.passParameters(i))}),r()}if(e&2){let t=w();g("paramData",t.paramData)}}var bh=(()=>{class e{constructor(){this.formBuilder=T(nt),this.reportService=T(lr),this.minDate=new Date,this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.templateParameters=new bi,this.createSMSCampaignDetailsForm(),this.buildDependencies()}ngOnInit(){this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions}get smsCampaignFormGroup(){let t;return this.businessRuleParametersComponent?t=new Is({smsCampaign:this.smsCampaignDetailsForm,businessRule:this.businessRuleParametersComponent.ReportForm}):t=new Is({smsCampaign:this.smsCampaignDetailsForm}),t}get smsCampaignFormGroupValue(){return this.businessRuleParametersComponent?at(at({},this.smsCampaignDetailsForm.value),this.businessRuleParametersComponent.businessRuleFormValue):this.smsCampaignDetailsForm.value}passParameters(t){this.templateParameters.emit(t)}createSMSCampaignDetailsForm(){this.smsCampaignDetailsForm=this.formBuilder.group({campaignName:["",ce.required],providerId:[null],triggerType:["",ce.required],runReportId:["",ce.required],isNotification:[!1]})}buildDependencies(){this.smsCampaignDetailsForm.get("isNotification").valueChanges.subscribe(t=>{t?this.smsCampaignDetailsForm.removeControl("providerId"):this.smsCampaignDetailsForm.addControl("providerId",new it(null))}),this.smsCampaignDetailsForm.get("runReportId").valueChanges.subscribe(t=>{if(t){let n=this.businessRules.find(i=>i.reportId===t);this.reportService.getReportParams(n.reportName).subscribe(i=>{this.paramData={response:i,reportName:n.reportName}})}}),this.smsCampaignDetailsForm.get("triggerType").valueChanges.subscribe(t=>{this.templateParameters.emit(null),this.businessRules=this.smsCampaignTemplate.businessRulesOptions,this.smsCampaignDetailsForm.controls.runReportId.value&&this.smsCampaignDetailsForm.get("runReportId").patchValue(""),t===3?this.businessRules=this.businessRules.filter(n=>n.reportSubType==="Triggered"):this.businessRules=this.businessRules.filter(n=>n.reportSubType!=="Triggered"),t===2?(this.smsCampaignDetailsForm.addControl("recurrenceStartDate",new it("",ce.required)),this.smsCampaignDetailsForm.addControl("frequency",new it("",ce.required)),this.smsCampaignDetailsForm.addControl("interval",new it("",ce.required)),this.smsCampaignDetailsForm.get("frequency").valueChanges.subscribe(n=>{switch(this.smsCampaignDetailsForm.removeControl("repeatsOnDay"),n){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.smsCampaignDetailsForm.addControl("repeatsOnDay",new it("",ce.required));break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}})):(this.smsCampaignDetailsForm.removeControl("recurrenceStartDate"),this.smsCampaignDetailsForm.removeControl("frequency"),this.smsCampaignDetailsForm.removeControl("interval"),this.smsCampaignDetailsForm.removeControl("repeatsOnDay"))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sms-campaign-step"]],viewQuery:function(n,i){if(n&1&&Ee(xh,5),n&2){let s;Te(s=Me())&&(i.businessRuleParametersComponent=s.first)}},inputs:{smsCampaignTemplate:"smsCampaignTemplate"},outputs:{templateParameters:"templateParameters"},decls:52,vars:47,consts:[["recurrenceStartDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","campaignName","required",""],["formControlName","triggerType","required",""],[3,"value"],["labelPosition","before","formControlName","isNotification",1,"flex-48"],["formControlName","runReportId","required",""],[1,"layout-row","layout-xs-column","layout-align-center","margin-t","gap-2percent"],[3,"paramData"],["formControlName","providerId"],[1,"flex-48",3,"click"],["matInput","","formControlName","recurrenceStartDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","frequency","required",""],["formControlName","interval","required",""],["formControlName","repeatsOnDay","required",""],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"templateParameters","paramData"]],template:function(n,i){n&1&&(l(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()(),E(14,Zoi,7,3,"mat-form-field",3),l(15,"mat-form-field",3)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",5),Se(20,eai,2,2,"mat-option",6,Pe),r(),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),l(26,"strong"),c(27),p(28,"translate"),r()()(),l(29,"mat-checkbox",7),c(30),p(31,"translate"),r(),E(32,tai,15,16,"mat-form-field",3),E(33,iai,24,28,"mat-form-field",3),E(34,oai,14,12,"mat-form-field",3),E(35,aai,34,33,"mat-form-field",3),l(36,"mat-form-field",3)(37,"mat-label"),c(38),p(39,"translate"),r(),l(40,"mat-select",8),Se(41,rai,2,2,"mat-option",6,Pe),r(),l(43,"mat-error"),c(44),p(45,"translate"),p(46,"translate"),l(47,"strong"),c(48),p(49,"translate"),r()()()(),E(50,lai,9,6,"div",9),E(51,sai,1,1,"mifosx-business-rule-parameters",10),r()),n&2&&(g("formGroup",i.smsCampaignDetailsForm),a(4),h(m(5,21,"labels.inputs.Campaign Name")),a(4),le(" ",m(9,23,"labels.inputs.Campaign Name")," ",m(10,25,"labels.commons.is")," "),a(4),h(m(13,27,"labels.commons.required")),a(2),I(i.smsCampaignDetailsForm.controls.isNotification.value?-1:14),a(3),h(m(18,29,"labels.inputs.Trigger Type")),a(3),we(i.triggerTypes),a(3),le(" ",m(24,31,"labels.inputs.Trigger Type")," ",m(25,33,"labels.commons.is")," "),a(4),h(m(28,35,"labels.commons.required")),a(3),v(" ",m(31,37,"labels.inputs.Is Notification"),"? "),a(2),I(i.smsCampaignDetailsForm.contains("recurrenceStartDate")?32:-1),a(),I(i.smsCampaignDetailsForm.contains("frequency")?33:-1),a(),I(i.smsCampaignDetailsForm.contains("interval")?34:-1),a(),I(i.smsCampaignDetailsForm.contains("repeatsOnDay")?35:-1),a(3),h(m(39,39,"labels.inputs.Business Rule")),a(3),we(i.businessRules),a(3),le(" ",m(45,41,"labels.inputs.Business Rule")," ",m(46,43,"labels.commons.is")," "),a(4),h(m(49,45,"labels.commons.required")),a(2),I(i.smsCampaignDetailsForm.controls.runReportId.value?-1:50),a(),I(i.smsCampaignDetailsForm.controls.runReportId.value?51:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,qi,ke,Ji,xh,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function cai(e,o){if(e&1){let t=Y();l(0,"button",11),R("click",function(){let i=V(t).$implicit,s=w();return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}var Qm=(()=>{class e{constructor(){this.message=new it("")}ngOnChanges(){this.message.patchValue(""),this.parameterLabels=[],this.templateParameters&&(this.parameterLabels=this.templateParameters.map(t=>t.columnName)),this.editCampaignMessage&&this.message.patchValue(this.editCampaignMessage)}get campaignMessage(){return{message:this.message.value}}addText(t){let i=this.message.value+` {{${t}}} `;this.message.patchValue(i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-campaign-message-step"]],inputs:{templateParameters:"templateParameters",smsCampaignFormValid:"smsCampaignFormValid",editCampaignMessage:"editCampaignMessage"},features:[Uo],decls:21,vars:14,consts:[[1,"layout-column"],[1,"flex-98"],["matInput","",3,"formControl"],[1,"mat-h3","flex-98"],[1,"layout-row-wrap","layout-xs-column","layout-align-center"],["mat-stroked-button","","color","primary",1,"parameter"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-stroked-button","","color","primary",1,"parameter",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"textarea",2),r(),l(6,"h3",3),c(7),p(8,"translate"),r(),l(9,"div",4),Se(10,cai,2,1,"button",5,Pe),r(),l(12,"div",6)(13,"button",7),b(14,"fa-icon",8),c(15),p(16,"translate"),r(),l(17,"button",9),c(18),p(19,"translate"),b(20,"fa-icon",10),r()()()),n&2&&(a(3),h(m(4,6,"labels.inputs.Campaign Message")),a(2),g("formControl",i.message),a(2),h(m(8,8,"labels.heading.Template Parameters")),a(3),we(i.parameterLabels),a(5),v(" ",m(16,10,"labels.buttons.Previous")," "),a(2),g("disabled",!i.smsCampaignFormValid),a(),v(" ",m(19,12,"labels.buttons.Next")," "))},dependencies:[ue,fe,st,$e,_n,Fe,Be,ze,xe,qi,ke,Ji,he],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.margin-t[_ngcontent-%COMP%]{margin-top:1.75em}.parameter[_ngcontent-%COMP%]{margin:1%}"]})}}return e})();var pai=()=>["../"],Lu=(()=>{class e{constructor(){this.submitEvent=new bi}ngOnInit(){this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-campaign-preview-step"]],inputs:{campaign:"campaign",smsCampaignTemplate:"smsCampaignTemplate",editedCampaignMessage:"editedCampaignMessage"},outputs:{submitEvent:"submitEvent"},decls:29,vars:38,consts:[[1,"tab-content","mat-typography"],[1,"layout-column","gap-10px","template-message"],["matInput","","disabled",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-list")(2,"mat-list-item"),c(3),p(4,"translate"),r(),l(5,"mat-list-item"),c(6),p(7,"translate"),p(8,"find"),r(),l(9,"mat-list-item"),c(10),p(11,"translate"),p(12,"find"),r(),l(13,"mat-list-item"),c(14),p(15,"translate"),r(),l(16,"div",1)(17,"h3"),c(18),p(19,"translate"),r(),l(20,"textarea",2),c(21),r()()(),l(22,"div",3)(23,"button",4),c(24),p(25,"translate"),r(),l(26,"button",5),R("click",function(){return i.submitEvent.emit()}),c(27),p(28,"translate"),r()()()),n&2&&(a(3),le(" ",m(4,13,"labels.inputs.Campaign Name")," : ",i.campaign.campaignName," "),a(3),le(" ",m(7,15,"labels.inputs.SMS Provider")," : ",$t(8,17,i.campaign.providerId,i.smsProviders,"id","name")||"Unassigned"," "),a(4),le(" ",m(11,22,"labels.inputs.Trigger Type")," : ",$t(12,24,i.campaign.editFlag?i.campaign.triggerType.id:i.campaign.triggerType,i.triggerTypes,"id","value")," "),a(4),le(" ",m(15,29,"labels.inputs.Bussiness Rule")," : ",i.campaign.editFlag?i.campaign.reportName:i.campaign.paramValue==null?null:i.campaign.paramValue.reportName," "),a(4),v("",m(19,31,"labels.heading.Campaign Message")," :"),a(3),h(i.campaign.editFlag?i.editedCampaignMessage:i.campaign.message),a(2),g("routerLink",oe(37,pai)),a(),v(" ",m(25,33,"labels.buttons.Cancel")," "),a(3),v(" ",m(28,35,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,ze,xe,vl,Vo,he,Qn],styles:[".tab-content[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-content[_ngcontent-%COMP%] .template-message[_ngcontent-%COMP%]{padding-inline:1.5%;margin-top:1%}.tab-content[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function mai(e,o){e&1&&b(0,"fa-icon",13)}function dai(e,o){e&1&&b(0,"fa-icon",13)}function uai(e,o){e&1&&b(0,"fa-icon",14)}function fai(e,o){e&1&&b(0,"fa-icon",15)}function hai(e,o){e&1&&b(0,"fa-icon",16)}function gai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CAMPAIGN"))}function _ai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MESSAGE"))}function Cai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function vai(e,o){if(e&1){let t=Y();l(0,"mat-step",12),F(1,Cai,2,3,"ng-template",9),l(2,"mifosx-campaign-preview-step",17),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("smsCampaignTemplate",t.smsCampaignTemplate)("campaign",t.smsCampaign)}}var mw=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.organizationService=T(li),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route.data.subscribe(t=>{this.smsCampaignTemplate=t.smsCampaignTemplate})}get smsCampaignForm(){return this.smsCampaignStep.smsCampaignFormGroup}get smsCampaign(){return at(at({},this.smsCampaignStep.smsCampaignFormGroupValue),this.campaignMessageStep.campaignMessage)}setParameters(t){this.templateParameters=t}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i="dd MMMM yyyy HH:mm:ss",s=qt(at({},this.smsCampaign),{campaignType:this.smsCampaign.isNotification?2:1,submittedOnDate:this.dateUtils.formatDate(new Date,n),dateTimeFormat:i,dateFormat:n,locale:t});if(this.smsCampaign.triggerType===2){let d=s.recurrenceStartDate;s.recurrenceStartDate=this.dateUtils.formatDate(d,i)}this.organizationService.createSmsCampaign(s).subscribe(d=>{this.router.navigate(["../",d.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-campaign"]],viewQuery:function(n,i){if(n&1&&(Ee(bh,7),Ee(Qm,7)),n&2){let s;Te(s=Me())&&(i.smsCampaignStep=s.first),Te(s=Me())&&(i.campaignMessageStep=s.first)}},decls:15,vars:6,consts:[["smsCampaignStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"templateParameters","smsCampaignTemplate"],[3,"templateParameters","smsCampaignFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","smsCampaignTemplate","campaign"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,mai,1,0,"ng-template",3)(4,dai,1,0,"ng-template",4)(5,uai,1,0,"ng-template",5)(6,fai,1,0,"ng-template",6)(7,hai,1,0,"ng-template",7),l(8,"mat-step",8),F(9,gai,2,3,"ng-template",9),l(10,"mifosx-sms-campaign-step",10),R("templateParameters",function(u){return V(s),q(i.setParameters(u))}),r()(),l(11,"mat-step"),F(12,_ai,2,3,"ng-template",9),b(13,"mifosx-campaign-message-step",11),r(),E(14,vai,3,2,"mat-step",12),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.smsCampaignForm),a(2),g("smsCampaignTemplate",i.smsCampaignTemplate),a(3),g("templateParameters",i.templateParameters)("smsCampaignFormValid",i.smsCampaignForm.valid),a(),I(i.smsCampaignForm.valid?14:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,bh,Qm,Lu,he],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();function xai(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function bai(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),r(),b(3,"input",17),F(4,xai,6,7,"mat-error",13),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function yai(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Sai(e,o){if(e&1){let t=Y();l(0,"mat-form-field",18),R("click",function(){V(t);let i=ve(6);return q(i.open())}),l(1,"mat-label"),c(2),r(),b(3,"input",19)(4,"mat-datepicker-toggle",20)(5,"mat-datepicker",null,0),F(7,yai,6,7,"mat-error",13),r()}if(e&2){let t=ve(6),n=w(2).$implicit,i=w();a(2),h(n.label),a(),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t)("formControlName",n.name),a(),g("for",t),a(3),g("ngIf",i.ReportForm.controls[n.name].hasError("required"))}}function wai(e,o){if(e&1&&(l(0,"mat-option",23),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function Pai(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Tai(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),r(),l(3,"mat-select",21),F(4,wai,2,2,"mat-option",22),r(),F(5,Pai,6,7,"mat-error",13),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name)("compareWith",n.compareOptions),a(),g("ngForOf",t.selectOptions),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function Mai(e,o){e&1&&(X(0),F(1,bai,5,3,"mat-form-field",14)(2,Sai,8,7,"mat-form-field",15)(3,Tai,6,5,"mat-form-field",14),Z()),e&2&&(a(),g("ngSwitchCase","text"),a(),g("ngSwitchCase","date"),a(),g("ngSwitchCase","select"))}function Dai(e,o){if(e&1&&(X(0,12),F(1,Mai,4,3,"ng-container",13),Z()),e&2){let t=o.$implicit,n=w();g("ngSwitch",t.displayType),a(),g("ngIf",n.ReportForm.controls[t.name])}}var dw=(()=>{class e{constructor(){this.reportsService=T(lr),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.templateParameters=new bi,this.ReportForm=new Is({}),this.parentParameters=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate}ngOnChanges(){this.paramData&&(this.ReportForm=new Is({}),this.paramValue=JSON.parse(this.smsCampaign.paramValue),this.createRunReportForm(),this.disableFormWhenValid(),this.getResponseHeaders())}createRunReportForm(){this.paramData.forEach(t=>{if(t.parentParameterName){let n=this.paramData.find(i=>i.name===t.parentParameterName);n.childParameters.push(t),this.updateParentParameters(n)}else{this.ReportForm.addControl(t.name,new it("",ce.required));let n=this.paramValue[t.variable].toString();switch(t.displayType){case"text":this.ReportForm.get(t.name).patchValue(n);break;case"select":this.fetchSelectOptions(t,t.name);break;case"date":let i=this.settingsService.dateFormat,s=this.dateUtils.formatDate(n,i);this.ReportForm.get(t.name).patchValue(s);break}}}),this.setChildControls()}updateParentParameters(t){let n=this.parentParameters.map(i=>i.name);if(!n.includes(t.name))this.parentParameters.push(t);else{let i=n.indexOf(t.name);this.parentParameters[i]=t}}setChildControls(){this.parentParameters.forEach(t=>{this.ReportForm.get(t.name).valueChanges.subscribe(n=>{t.childParameters.forEach(i=>{if(i.displayType==="none"?this.ReportForm.addControl(i.name,new it(i.defaultVal)):this.ReportForm.addControl(i.name,new it("",ce.required)),i.displayType==="select"){let s=`${i.name}?${t.inputName}=${n.id}`;this.fetchSelectOptions(i,s)}})})})}fetchSelectOptions(t,n){this.reportsService.getSelectOptions(n).subscribe(i=>{t.selectOptions=i,t.selectAll==="Y"&&t.selectOptions.push({id:"-1",name:"All"});let s=this.paramValue[t.variable].toString(),d=i.find(u=>u.id===s);this.ReportForm.controls[t.name].patchValue({id:s,name:d.name})})}compareOptions(t,n){return t&&n&&t.id===n.id}disableFormWhenValid(){this.ReportForm.statusChanges.pipe(Ao()).subscribe(t=>{t==="VALID"&&this.ReportForm.disable()})}formatUserResponse(t,n){let i={},s;for(let[d,u]of Object.entries(t)){let f=this.paramData.find(_=>_.variable===d);s=n?f.inputName:f.variable,i[s]=u}return i}getResponseHeaders(){let t=this.paramValue.reportName;delete this.paramValue.reportName;let n=this.formatUserResponse(this.paramValue,!0);this.reportsService.getRunReportData(t,n).subscribe(i=>{this.templateParameters.emit(i.columnHeaders)},i=>{this.templateParameters.emit(null),this.ReportForm.disable()})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-business-rule-parameters"]],inputs:{paramData:"paramData",smsCampaign:"smsCampaign"},outputs:{templateParameters:"templateParameters"},features:[Uo],decls:17,vars:11,consts:[["runReportDatePicker",""],[1,"layout-column"],[1,"flex-98"],[1,"mat-h3","flex-98"],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"ngSwitch"],[4,"ngIf"],["class","flex-48",4,"ngSwitchCase"],["class","flex-48",3,"click",4,"ngSwitchCase"],[1,"flex-48"],["matInput","","required","",3,"formControlName"],[1,"flex-48",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName","compareWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,i){n&1&&(l(0,"div",1),b(1,"mat-divider",2),l(2,"h3",3),c(3),p(4,"translate"),r(),l(5,"form",4)(6,"div",5),F(7,Dai,2,2,"ng-container",6),r()()(),l(8,"div",7)(9,"button",8),b(10,"fa-icon",9),c(11),p(12,"translate"),r(),l(13,"button",10),c(14),p(15,"translate"),b(16,"fa-icon",11),r()()),n&2&&(a(3),h(m(4,5,"labels.heading.Business Rule Parameters")),a(2),g("formGroup",i.ReportForm),a(2),g("ngForOf",i.paramData),a(4),v(" ",m(12,7,"labels.buttons.Previous")," "),a(3),v(" ",m(15,9,"labels.buttons.Next")," "))},dependencies:[ue,ts,Js,Ks,Xs,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ri,qi,ke,Ji,he],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function Eai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Iai(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Eai,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.SMS Provider")),a(3),we(t.smsProviders)}}function Oai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Aai(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,8,"labels.inputs.Schedule Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(4),le(" ",m(10,10,"labels.inputs.Schedule Date")," ",m(11,12,"labels.commons.is")," "),a(4),h(m(14,14,"labels.commons.required"))}}function Fai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.reportId),a(),v(" ",t.reportName," ")}}var uw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.reportService=T(lr),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.templateParameters=new bi,this.createSMSCampaignDetailsForm()}createSMSCampaignDetailsForm(){this.smsCampaignDetailsForm=this.formBuilder.group({campaignName:["",ce.required],providerId:[null],triggerType:["",ce.required],runReportId:["",ce.required],isNotification:[!1]})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions,this.businessRules=this.smsCampaignTemplate.businessRulesOptions,this.setControlValues(),this.getParameters()}passParameters(t){this.templateParameters.emit(t)}getParameters(){this.reportService.getReportParams(this.smsCampaign.reportName).subscribe(t=>{this.paramData=t}),this.smsCampaignDetailsForm.disable()}setControlValues(){this.smsCampaignDetailsForm.patchValue({campaignName:this.smsCampaign.campaignName,providerId:this.smsCampaign.providerId,triggerType:this.smsCampaign.triggerType.id,runReportId:this.smsCampaign.runReportId,isNotification:this.smsCampaign.isNotification}),this.smsCampaign.triggerType.value==="Schedule"&&this.smsCampaignDetailsForm.addControl("recurrenceStartDate",new it(new Date(this.smsCampaign.recurrenceStartDate)))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-sms-campaign-step"]],inputs:{smsCampaignTemplate:"smsCampaignTemplate",smsCampaign:"smsCampaign"},outputs:{templateParameters:"templateParameters"},decls:48,vars:44,consts:[["recurrenceStartDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","campaignName","required",""],["formControlName","triggerType","required",""],[3,"value"],["labelPosition","before","formControlName","isNotification",1,"flex-48"],["formControlName","runReportId","required",""],[3,"templateParameters","paramData","smsCampaign"],["formControlName","providerId"],[1,"flex-48",3,"click"],["matInput","","formControlName","recurrenceStartDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"]],template:function(n,i){n&1&&(l(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()(),E(14,Iai,7,3,"mat-form-field",3),l(15,"mat-form-field",3)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",5),Se(20,Oai,2,2,"mat-option",6,Pe),r(),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),l(26,"strong"),c(27),p(28,"translate"),r()()(),l(29,"mat-checkbox",7),c(30),p(31,"translate"),r(),E(32,Aai,15,16,"mat-form-field",3),l(33,"mat-form-field",3)(34,"mat-label"),c(35),p(36,"translate"),r(),l(37,"mat-select",8),Se(38,Fai,2,2,"mat-option",6,Pe),r(),l(40,"mat-error"),c(41),p(42,"translate"),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()()(),l(47,"mifosx-edit-business-rule-parameters",9),R("templateParameters",function(d){return i.passParameters(d)}),r()()),n&2&&(g("formGroup",i.smsCampaignDetailsForm),a(4),h(m(5,18,"labels.inputs.Campaign Name")),a(4),le(" ",m(9,20,"labels.inputs.Campaign Name")," ",m(10,22,"labels.commons.is")," "),a(4),h(m(13,24,"labels.commons.required")),a(2),I(i.smsCampaignDetailsForm.controls.isNotification.value?-1:14),a(3),h(m(18,26,"labels.inputs.Trigger Type")),a(3),we(i.triggerTypes),a(3),le(" ",m(24,28,"labels.inputs.Trigger Type")," ",m(25,30,"labels.commons.is")," "),a(4),h(m(28,32,"labels.commons.required")),a(3),v(" ",m(31,34,"labels.inputs.Is Notification"),"? "),a(2),I(i.smsCampaignDetailsForm.controls.recurrenceStartDate?32:-1),a(3),h(m(36,36,"labels.inputs.Business Rule")),a(3),we(i.businessRules),a(3),le(" ",m(42,38,"labels.inputs.Business Rule")," ",m(43,40,"labels.commons.is")," "),a(4),h(m(46,42,"labels.commons.required")),a(2),g("paramData",i.paramData)("smsCampaign",i.smsCampaign))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,fi,dw,he],encapsulation:2})}}return e})();function kai(e,o){e&1&&b(0,"fa-icon",14)}function Bai(e,o){e&1&&b(0,"fa-icon",14)}function Rai(e,o){e&1&&b(0,"fa-icon",15)}function Nai(e,o){e&1&&b(0,"fa-icon",16)}function Lai(e,o){e&1&&b(0,"fa-icon",17)}function Vai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CAMPAIGN"))}function qai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MESSAGE"))}function zai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}var fw=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.smsCampaignTemplate=t.smsCampaignTemplate,this.smsCampaign=t.smsCampaign,this.smsCampaign.editFlag=!0})}get campaignMessage(){return this.campaignMessageStep.campaignMessage.message}setParameters(t){this.templateParameters=t}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i="dd MMMM yyyy HH:mm:ss",s={campaignName:this.smsCampaign.campaignName,campaignType:this.smsCampaign.isNotification?2:1,isNotification:this.smsCampaign.isNotification,triggerType:this.smsCampaign.triggerType.id,providerId:this.smsCampaign.providerId===0?null:this.smsCampaign.providerId,runReportId:this.smsCampaign.runReportId,message:this.campaignMessage,paramValue:JSON.parse(this.smsCampaign.paramValue),dateTimeFormat:i,dateFormat:n,locale:t};this.smsCampaign.triggerType.id===2&&(s.recurrenceStartDate=this.dateUtils.formatDate(new Date(this.smsCampaign.recurrenceStartDate),i)),this.organizationService.updateSmsCampaign(s,this.smsCampaign.id).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-campaign"]],viewQuery:function(n,i){if(n&1&&Ee(Qm,7),n&2){let s;Te(s=Me())&&(i.campaignMessageStep=s.first)}},decls:17,vars:8,consts:[["smsCampaignStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed",""],["matStepLabel",""],[3,"templateParameters","smsCampaign","smsCampaignTemplate"],[3,"templateParameters","editCampaignMessage"],["state","preview","completed",""],[3,"submitEvent","campaign","editedCampaignMessage","smsCampaignTemplate"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,kai,1,0,"ng-template",3)(4,Bai,1,0,"ng-template",4)(5,Rai,1,0,"ng-template",5)(6,Nai,1,0,"ng-template",6)(7,Lai,1,0,"ng-template",7),l(8,"mat-step",8),F(9,Vai,2,3,"ng-template",9),l(10,"mifosx-edit-sms-campaign-step",10),R("templateParameters",function(u){return V(s),q(i.setParameters(u))}),r()(),l(11,"mat-step"),F(12,qai,2,3,"ng-template",9),b(13,"mifosx-campaign-message-step",11),r(),l(14,"mat-step",12),F(15,zai,2,3,"ng-template",9),l(16,"mifosx-campaign-preview-step",13),R("submitEvent",function(){return V(s),q(i.submit())}),r()()()()}n&2&&(a(),g("linear",!1),a(9),g("smsCampaign",i.smsCampaign)("smsCampaignTemplate",i.smsCampaignTemplate),a(3),g("templateParameters",i.templateParameters)("editCampaignMessage",i.smsCampaign.campaignMessage),a(3),g("campaign",i.smsCampaign)("editedCampaignMessage",i.campaignMessage)("smsCampaignTemplate",i.smsCampaignTemplate))},dependencies:[ue,fe,fa,da,ke,ua,ma,uw,Qm,Lu,he],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();var Hai=()=>["../"];function Gai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",t.name," ")}}function jai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Entity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $ai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function Uai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Status")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Wai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.dataTableName),a(),v(" ",t.dataTableName," ")}}function Qai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Data Table")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Yai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Jai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Loan Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Kai(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Yai,2,2,"mat-option",4,Pe),r(),E(7,Jai,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Products")),a(3),we(t.createEntityData.loanProductDatas),a(2),I(t.createEntityForm.controls.productId.hasError("required")?7:-1)}}function Xai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Zai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Loan Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eri(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Xai,2,2,"mat-option",4,Pe),r(),E(7,Zai,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Products")),a(3),we(t.createEntityData.savingsProductDatas),a(2),I(t.createEntityForm.controls.productId.hasError("required")?7:-1)}}var hw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.organizationService=T(li),this.router=T(qe),this.route.data.subscribe(t=>{this.createEntityData=t.dataTableEntity,this.entityTypes=[{name:"Client",value:"m_client"},{name:"Loan",value:"m_loan"},{name:"Group",value:"m_group"},{name:"Savings Account",value:"m_savings_account"}]})}ngOnInit(){this.setCreateEntityDataTableForm(),this.getEntityType()}setCreateEntityDataTableForm(){this.createEntityForm=this.formBuilder.group({entity:["",ce.required],status:["",ce.required],datatableName:["",ce.required]})}getEntityType(){this.createEntityForm.get("entity").valueChanges.subscribe(t=>{switch(t){case"m_client":{this.entityType="m_client",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_client"),this.statusList=this.createEntityData.statusClient,this.createEntityForm.removeControl("productId");break}case"m_loan":{this.entityType="m_loan",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_loan"),this.statusList=this.createEntityData.statusLoans,this.createEntityForm.addControl("productId",new it("",ce.required));break}case"m_group":{this.entityType="m_group",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_group"),this.statusList=this.createEntityData.statusGroup,this.createEntityForm.removeControl("productId");break}default:{this.entityType="m_savings_account",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_savings_account"),this.statusList=this.createEntityData.statusSavings,this.createEntityForm.addControl("productId",new it("",ce.required));break}}})}submit(){this.organizationService.createEntityDataTableChecks(this.createEntityForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-entity-data-table-checks"]],decls:38,vars:24,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","entity"],[3,"value"],["required","","formControlName","status"],["required","","formControlName","datatableName"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["required","","formControlName","productId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,Gai,2,2,"mat-option",4,Pe),r(),E(12,jai,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,$ai,2,2,"mat-option",4,Pe),r(),E(20,Uai,7,9,"mat-error"),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",6),Se(26,Wai,2,2,"mat-option",4,Pe),r(),E(28,Qai,7,9,"mat-error"),r(),E(29,Kai,8,4,"mat-form-field"),E(30,eri,8,4,"mat-form-field"),r()(),l(31,"mat-card-actions",7)(32,"button",8),c(33),p(34,"translate"),r(),l(35,"button",9),c(36),p(37,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.createEntityForm),a(5),h(m(8,13,"labels.inputs.Entity")),a(3),we(i.entityTypes),a(2),I(i.createEntityForm.controls.entity.hasError("required")?12:-1),a(3),h(m(16,15,"labels.inputs.Status")),a(3),we(i.statusList),a(2),I(i.createEntityForm.controls.status.hasError("required")?20:-1),a(3),h(m(24,17,"labels.inputs.Data Table")),a(3),we(i.dataTableList),a(2),I(i.createEntityForm.controls.datatableName.hasError("required")?28:-1),a(),I(i.entityType==="m_loan"?29:-1),a(),I(i.entityType==="m_savings_account"?30:-1),a(2),g("routerLink",oe(23,Hai)),a(),v(" ",m(34,19,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.createEntityForm.valid),a(),v(" ",m(37,21,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var tri=()=>["../"];function iri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Provisioning Criteria")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function ori(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Selected Products")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ari(e,o){e&1&&(l(0,"mat-hint"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Provisioning criteria definitions")))}function rri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function lri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function sri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Min Age")))}function cri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minAge||"0")}}function pri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Max Age")))}function mri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maxAge||"0")}}function dri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Percentage")," (%)"))}function uri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.provisioningPercentage||"0")}}function fri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Liability Account")))}function hri(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.liabilityAccount,n.loanProvisioningCriteriaTemplate.glAccounts,"id","name")||"-"," ")}}function gri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function _ri(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.expenseAccount,n.loanProvisioningCriteriaTemplate.glAccounts,"id","name")||"-"," ")}}function Cri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function vri(e,o){if(e&1){let t=Y();l(0,"td",24)(1,"button",25),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editDefinition(i))}),b(2,"fa-icon",26),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Edit")," "))}function xri(e,o){e&1&&b(0,"tr",27)}function bri(e,o){e&1&&b(0,"tr",28)}function yri(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.provisioningCriteriaFormValid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var gw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.route=T(Ie),this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount","edit"],this.definitions=[],this.isDefinitionValid={},this.route.data.subscribe(t=>{this.loanProvisioningCriteriaTemplate=t.loanProvisioningCriteriaTemplate,this.definitions=this.loanProvisioningCriteriaTemplate.definitions,this.liabilityAccounts=this.loanProvisioningCriteriaTemplate.glAccounts.filter(n=>n.type.value==="LIABILITY"),this.expenseAccounts=this.loanProvisioningCriteriaTemplate.glAccounts.filter(n=>n.type.value==="EXPENSE")})}ngOnInit(){this.createProvisioningCriteriaForm()}createProvisioningCriteriaForm(){this.provisioningCriteriaForm=this.formBuilder.group({criteriaName:["",ce.required],loanProducts:[[],ce.required]})}editDefinition(t){let n={title:"Edit Criteria Definition",formfields:this.getDefinitionFormFields(t),layout:{addButtonText:"Confirm"}};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=qt(at({},s.data.value),{categoryName:t.categoryName,categoryId:t.categoryId});this.definitions.splice(this.definitions.indexOf(t),1,d),this.definitions=this.definitions.concat([]),this.isDefinitionValid[t.categoryName]=!0}})}getDefinitionFormFields(t){let n=[];return n.push(new vn({controlName:"minAge",label:"Min Age",value:t?t.minAge:"",type:"number",required:!0,order:1})),n.push(new vn({controlName:"maxAge",label:"Max Age",value:t?t.maxAge:"",type:"number",required:!0,order:2})),n.push(new vn({controlName:"provisioningPercentage",label:"Percentage (%)",value:t?t.provisioningPercentage:"",type:"number",required:!0,order:3})),n.push(new $i({controlName:"liabilityAccount",label:"Liability Account",value:t?t.liabilityAccount:"",options:{label:"name",value:"id",data:this.liabilityAccounts},required:!0,order:4})),n.push(new $i({controlName:"expenseAccount",label:"Expense Account",value:t?t.expenseAccount:"",options:{label:"name",value:"id",data:this.expenseAccounts},required:!0,order:5})),n}get provisioningCriteriaFormValid(){let t=Object.entries(this.isDefinitionValid).length===this.definitions.length;return this.provisioningCriteriaForm.valid&&t}submit(){let t=this.settingsService.language.code,n=this.provisioningCriteriaForm.get("loanProducts").value,i=qt(at({},this.provisioningCriteriaForm.value),{loanProducts:n.map(s=>({id:s.id,name:s.name,includeInBorrowerCycle:s.includeInBorrowerCycle})),definitions:this.definitions,locale:t});this.organizationService.createProvisioningCriteria(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-loan-provisioning-criteria"]],decls:50,vars:19,consts:[[1,"container"],[3,"formGroup"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["required","","matInput","","formControlName","criteriaName"],["formControlName","loanProducts","multiple",""],[3,"value"],[1,"mat-elevation-z1"],["mat-table","",1,"m-t-10",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"m-t-20","layout-row","layout-align-center","gap-20px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div")(3,"form",1)(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,iri,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,nri,2,2,"mat-option",6,Pe),r(),E(18,ori,7,9,"mat-error"),r()()()(),l(19,"div",7),E(20,ari,3,3,"mat-hint"),l(21,"table",8),X(22,9),F(23,rri,3,3,"th",10)(24,lri,2,1,"td",11),Z(),X(25,12),F(26,sri,3,3,"th",10)(27,cri,2,1,"td",11),Z(),X(28,13),F(29,pri,3,3,"th",10)(30,mri,2,1,"td",11),Z(),X(31,14),F(32,dri,3,3,"th",10)(33,uri,2,1,"td",11),Z(),X(34,15),F(35,fri,3,3,"th",10)(36,hri,3,6,"td",11),Z(),X(37,16),F(38,gri,3,3,"th",10)(39,_ri,3,6,"td",11),Z(),X(40,17),F(41,Cri,3,3,"th",10)(42,vri,5,3,"td",11),Z(),F(43,xri,1,0,"tr",18)(44,bri,1,0,"tr",19),r()(),l(45,"div",20)(46,"button",21),c(47),p(48,"translate"),r(),F(49,yri,3,4,"button",22),r()()()),n&2&&(a(3),g("formGroup",i.provisioningCriteriaForm),a(4),h(m(8,12,"labels.inputs.Provisioning Criteria")),a(3),I(i.provisioningCriteriaForm.controls.criteriaName.hasError("required")?10:-1),a(3),h(m(14,14,"labels.inputs.Selected Products")),a(3),we(i.loanProvisioningCriteriaTemplate.loanProducts),a(2),I(i.provisioningCriteriaForm.controls.loanProducts.hasError("required")?18:-1),a(2),I(i.provisioningCriteriaFormValid?-1:20),a(),g("dataSource",i.definitions),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(18,tri)),a(),h(m(48,16,"labels.buttons.Cancel")),a(2),g("mifosxHasPermission","CREATE_PROVISIONING_CRITERIA"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Fe,Be,ut,qa,ze,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,he,Qn],styles:[".container[_ngcontent-%COMP%]{padding:.5rem;max-width:1200px;margin:0 auto}.layout-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}mat-card[_ngcontent-%COMP%]{padding:1rem;box-shadow:0 2px 8px #0000001a!important;border-radius:8px}mat-card[_ngcontent-%COMP%] .layout-row[_ngcontent-%COMP%]{margin-bottom:.5rem}.mat-elevation-z1[_ngcontent-%COMP%]{padding:1rem;margin-top:.5rem;border-radius:4px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600}.m-t-20[_ngcontent-%COMP%]{margin-top:2rem}.layout-align-center[_ngcontent-%COMP%]{align-items:center;justify-content:center}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:.5rem}mat-card[_ngcontent-%COMP%]{padding:1rem}.layout-row[_ngcontent-%COMP%]{flex-direction:column}.gap-20px[_ngcontent-%COMP%]{flex-direction:column;width:100%}}"]})}}return e})();var Sri=()=>["../"];function wri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Pri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Assignment Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Dri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Loan Officer")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Eri(e,o){if(e&1){let t=Y();l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),R("selectionChange",function(i){V(t);let s=w();return q(s.getFromOfficers(i.value))}),Se(5,Mri,2,2,"mat-option",6,Pe),r(),E(7,Dri,7,9,"mat-error"),r()}if(e&2){let t=w();a(2),h(m(3,2,"labels.inputs.From loan officer")),a(3),we(t.fromLoanOfficers),a(2),I(t.bulkLoanForm.controls.fromLoanOfficerId.hasError("required")?7:-1)}}function Iri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Ori(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Loan Officer")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ari(e,o){if(e&1){let t=Y();l(0,"tr")(1,"td")(2,"mat-checkbox",15),R("change",function(i){let s=V(t).$implicit,d=w(3);return q(d.getLoans(i,s.id))}),c(3),r()()()}if(e&2){let t=o.$implicit;a(3),le("",t.productName,"(",t.accountNo,")")}}function Fri(e,o){if(e&1&&(l(0,"tr")(1,"table")(2,"tr")(3,"td")(4,"strong"),c(5),r()()(),Se(6,Ari,4,2,"tr",null,Pe),r()()),e&2){let t=o.$implicit;a(5),v(" ",t.displayName," "),a(),we(t.loans)}}function kri(e,o){if(e&1&&(l(0,"table",4)(1,"thead")(2,"th"),c(3),p(4,"translate"),r()(),l(5,"tbody"),Se(6,Fri,8,1,"tr",null,Pe),r()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Clients")),a(3),we(t.officerTemplate.accountSummaryCollection.clients)}}function Bri(e,o){if(e&1){let t=Y();l(0,"tr")(1,"td")(2,"mat-checkbox",15),R("change",function(i){let s=V(t).$implicit,d=w(3);return q(d.getLoans(i,s.id))}),c(3),r()()()}if(e&2){let t=o.$implicit;a(3),le("",t.productName,"(",t.accountNo,")")}}function Rri(e,o){if(e&1&&(l(0,"tr")(1,"table")(2,"tr")(3,"td")(4,"strong"),c(5),r()()(),Se(6,Bri,4,2,"tr",null,Pe),r()()),e&2){let t=o.$implicit;a(5),v(" ",t.displayName," "),a(),we(t.loans)}}function Nri(e,o){if(e&1&&(l(0,"table",4)(1,"thead")(2,"th"),c(3),p(4,"translate"),r()(),l(5,"tbody"),Se(6,Rri,8,1,"tr",null,Pe),r()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Groups")),a(3),we(t.officerTemplate.accountSummaryCollection.groups)}}function Lri(e,o){if(e&1&&(l(0,"button",16),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.bulkLoanForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var _w=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.organizationSevice=T(li),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.router=T(qe),this.loans=new Array,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.offices=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setBulkLoanForm()}setBulkLoanForm(){this.bulkLoanForm=this.formBuilder.group({officeId:["",ce.required],assignmentDate:[this.settingsService.businessDate,ce.required],toLoanOfficerId:["",ce.required]})}getOffice(t){this.organizationSevice.getOfficeTemplate(t).subscribe(n=>{this.officeTemplate=n,this.fromLoanOfficers=this.officeTemplate.loanOfficerOptions,this.bulkLoanForm.addControl("fromLoanOfficerId",new it("",ce.required))})}getFromOfficers(t){this.toLoanOfficers=this.fromLoanOfficers?.filter(n=>n.id!==t)||[],t&&this.officeTemplate&&this.officeTemplate.id?this.organizationSevice.getOfficerTemplate(t,this.officeTemplate.id).subscribe(n=>{this.officerTemplate=n}):this.officerTemplate=void 0}getLoans(t,n){if(t.checked)this.loans.push(n);else{let s=this.loans.indexOf(n,0);this.loans.splice(s,1)}}submit(){let t=this.bulkLoanForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.bulkLoanForm.value.assignmentDate;t.assignmentDate instanceof Date&&(t.assignmentDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});d.loans=this.loans,this.organizationSevice.createLoanReassignment(d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-bulk-loan-reassignmnet"]],decls:43,vars:30,consts:[["assignmentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","officeId",3,"selectionChange"],[3,"value"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker","placeholder"],["matSuffix","",3,"for"],["required","","formControlName","toLoanOfficerId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","fromLoanOfficerId",3,"selectionChange"],[3,"change"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),R("selectionChange",function(u){return V(s),q(i.getOffice(u.value))}),Se(10,wri,2,2,"mat-option",6,Pe),r(),E(12,Pri,7,9,"mat-error"),r()(),l(13,"div",3)(14,"mat-form-field",7),R("click",function(){V(s);let u=ve(22);return q(u.open())}),l(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8),p(19,"translate"),b(20,"mat-datepicker-toggle",9)(21,"mat-datepicker",null,0),E(23,Tri,7,9,"mat-error"),r()(),l(24,"div",3),E(25,Eri,8,4,"mat-form-field",4),r(),l(26,"div",3)(27,"mat-form-field",4)(28,"mat-label"),c(29),p(30,"translate"),r(),l(31,"mat-select",10),Se(32,Iri,2,2,"mat-option",6,Pe),r(),E(34,Ori,7,9,"mat-error"),r()(),l(35,"div",3),E(36,kri,8,3,"table",4),E(37,Nri,8,3,"table",4),r()(),l(38,"mat-card-actions",11)(39,"button",12),c(40),p(41,"translate"),r(),F(42,Lri,3,4,"button",13),r()()()()}if(n&2){let s=ve(22);a(2),g("formGroup",i.bulkLoanForm),a(5),h(m(8,19,"labels.inputs.Office")),a(3),we(i.offices),a(2),I(i.bulkLoanForm.controls.officeId.hasError("required")?12:-1),a(4),h(m(17,21,"labels.inputs.Assignment Date")),a(2),g("placeholder",Le(m(19,23,"labels.inputs.Assignment Date")))("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(2),g("for",s),a(3),I(i.bulkLoanForm.controls.assignmentDate.hasError("required")?23:-1),a(2),I(i.fromLoanOfficers!==void 0?25:-1),a(4),h(m(30,25,"labels.inputs.To loan officer")),a(3),we(i.toLoanOfficers),a(2),I(i.bulkLoanForm.controls.toLoanOfficerId.hasError("required")?34:-1),a(2),I(i.officerTemplate!==void 0?36:-1),a(),I(i.officerTemplate!==void 0?37:-1),a(2),g("routerLink",oe(29,Sri)),a(),v(" ",m(41,27,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","BULKREASSIGN_LOAN")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px 12px}.container[_ngcontent-%COMP%] > mat-card[_ngcontent-%COMP%]{width:100%;max-width:560px;margin:0 auto;border-radius:4px;padding:16px 20px;box-shadow:0 1px 3px #1018281a,0 1px 2px #1018280f}mat-form-field[_ngcontent-%COMP%]{width:100%}.flex-48[_ngcontent-%COMP%]{flex:1 1 100%;min-width:100%}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var Vri=()=>["../"];function qri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Provisioning Criteria")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function Hri(e,o){e&1&&(l(0,"mat-hint"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.Provisioning criteria definitions")))}function Gri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function jri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function $ri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Min Age")))}function Uri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minAge||"0")}}function Wri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Max Age")))}function Qri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maxAge||"0")}}function Yri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Percentage")," (%)"))}function Jri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.provisioningPercentage||"0")}}function Kri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Liability Account")))}function Xri(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.liabilityAccount,n.loanProvisioningCriteriaAndTemplate.glAccounts,"id","name")||"-"," ")}}function Zri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function eli(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.expenseAccount,n.loanProvisioningCriteriaAndTemplate.glAccounts,"id","name")||"-"," ")}}function tli(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ili(e,o){if(e&1){let t=Y();l(0,"td",24)(1,"button",25),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editDefinition(i))}),b(2,"fa-icon",26),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Edit")," "))}function nli(e,o){e&1&&b(0,"tr",27)}function oli(e,o){e&1&&b(0,"tr",28)}function ali(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.provisioningCriteriaFormValid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Cw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.router=T(qe),this.settingsService=T(Ot),this.dialog=T(Ht),this.route=T(Ie),this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount","edit"],this.definitions=[],this.route.data.subscribe(t=>{this.loanProvisioningCriteriaAndTemplate=t.loanProvisioningCriteriaAndTemplate,this.definitions=this.loanProvisioningCriteriaAndTemplate.definitions,this.loanProducts=this.loanProvisioningCriteriaAndTemplate.loanProducts.concat(this.loanProvisioningCriteriaAndTemplate.selectedLoanProducts),this.liabilityAccounts=this.loanProvisioningCriteriaAndTemplate.glAccounts.filter(n=>n.type.value==="LIABILITY"),this.expenseAccounts=this.loanProvisioningCriteriaAndTemplate.glAccounts.filter(n=>n.type.value==="EXPENSE")})}ngOnInit(){this.createProvisioningCriteriaForm()}createProvisioningCriteriaForm(){this.provisioningCriteriaForm=this.formBuilder.group({criteriaName:[this.loanProvisioningCriteriaAndTemplate.criteriaName,ce.required],loanProducts:[this.loanProvisioningCriteriaAndTemplate.selectedLoanProducts]})}compareOptions(t,n){return t&&n&&t.id===n.id}editDefinition(t){let n={title:"Edit Criteria Definition",formfields:this.getDefinitionFormFields(t),layout:{addButtonText:"Confirm"}};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=at(at({},t),s.data.value);this.definitions.splice(this.definitions.indexOf(t),1,d),this.definitions=this.definitions.concat([])}})}getDefinitionFormFields(t){let n=[];return n.push(new vn({controlName:"minAge",label:"Min Age",value:t?t.minAge:"",type:"number",required:!0,order:1})),n.push(new vn({controlName:"maxAge",label:"Max Age",value:t?t.maxAge:"",type:"number",required:!0,order:2})),n.push(new vn({controlName:"provisioningPercentage",label:"Percentage (%)",value:t?t.provisioningPercentage:"",type:"number",required:!0,order:3})),n.push(new $i({controlName:"liabilityAccount",label:"Liability Account",value:t?t.liabilityAccount:"",options:{label:"name",value:"id",data:this.liabilityAccounts},required:!0,order:4})),n.push(new $i({controlName:"expenseAccount",label:"Expense Account",value:t?t.expenseAccount:"",options:{label:"name",value:"id",data:this.expenseAccounts},required:!0,order:5})),n}get provisioningCriteriaFormValid(){return this.provisioningCriteriaForm.valid}submit(){let t=this.settingsService.language.code,n=qt(at({},this.provisioningCriteriaForm.value),{loanProducts:this.provisioningCriteriaForm.get("loanProducts").value.map(i=>({id:i.id,name:i.name,includeInBorrowerCycle:i.includeInBorrowerCycle})),definitions:this.definitions,locale:t});this.organizationService.updateProvisioningCriteria(this.loanProvisioningCriteriaAndTemplate.criteriaId,n).subscribe(i=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-loan-provisioning-criteria"]],decls:49,vars:19,consts:[[1,"container"],[3,"formGroup"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["required","","matInput","","formControlName","criteriaName"],["formControlName","loanProducts","multiple","",3,"compareWith"],[3,"value"],[1,"mat-elevation-z1"],["mat-table","",1,"m-t-10",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"m-t-20","layout-row","layout-align-center","gap-20px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div")(3,"form",1)(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,qri,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,zri,2,2,"mat-option",6,Pe),r()()()()(),l(18,"div",7),E(19,Hri,3,3,"mat-hint"),l(20,"table",8),X(21,9),F(22,Gri,3,3,"th",10)(23,jri,2,1,"td",11),Z(),X(24,12),F(25,$ri,3,3,"th",10)(26,Uri,2,1,"td",11),Z(),X(27,13),F(28,Wri,3,3,"th",10)(29,Qri,2,1,"td",11),Z(),X(30,14),F(31,Yri,3,3,"th",10)(32,Jri,2,1,"td",11),Z(),X(33,15),F(34,Kri,3,3,"th",10)(35,Xri,3,6,"td",11),Z(),X(36,16),F(37,Zri,3,3,"th",10)(38,eli,3,6,"td",11),Z(),X(39,17),F(40,tli,3,3,"th",10)(41,ili,5,3,"td",11),Z(),F(42,nli,1,0,"tr",18)(43,oli,1,0,"tr",19),r()(),l(44,"div",20)(45,"button",21),c(46),p(47,"translate"),r(),F(48,ali,3,4,"button",22),r()()()),n&2&&(a(3),g("formGroup",i.provisioningCriteriaForm),a(4),h(m(8,12,"labels.inputs.Provisioning Criteria")),a(3),I(i.provisioningCriteriaForm.controls.criteriaName.hasError("required")?10:-1),a(3),h(m(14,14,"labels.inputs.Selected Products")),a(2),g("compareWith",i.compareOptions),a(),we(i.loanProducts),a(3),I(i.provisioningCriteriaFormValid?-1:19),a(),g("dataSource",i.definitions),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(18,Vri)),a(),h(m(47,16,"labels.buttons.Cancel")),a(2),g("mifosxHasPermission","UPDATE_CRITERIA"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Fe,Be,ut,qa,ze,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,he,Qn],encapsulation:2})}}return e})();var rli=()=>["../"],lli=()=>[10,25,50,100];function sli(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function cli(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function pli(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",18),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.From Account ID")))}function mli(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" \xA0 ",m(3,1,"labels.buttons.Search Instructions")," "))}function dli(e,o){if(e&1){let t=Y();l(0,"mat-card")(1,"form",4),R("ngSubmit",function(){V(t);let i=w();return q(i.search())}),l(2,"mat-card-content")(3,"div",5)(4,"mat-form-field")(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",6),r(),l(9,"mat-form-field")(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",7),r(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,sli,2,2,"mat-option",9,Pe),r()(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",10),Se(26,cli,2,2,"mat-option",9,Pe),r()(),E(28,pli,5,3,"mat-form-field"),l(29,"mat-form-field",11),R("click",function(){V(t);let i=ve(36);return q(i.open())}),l(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",12)(34,"mat-datepicker-toggle",13)(35,"mat-datepicker",null,0),r(),l(37,"mat-form-field",11),R("click",function(){V(t);let i=ve(44);return q(i.open())}),l(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",14)(42,"mat-datepicker-toggle",13)(43,"mat-datepicker",null,1),r()()(),l(45,"mat-card-actions",15)(46,"button",16),c(47),p(48,"translate"),r(),F(49,mli,4,3,"button",17),r()()()}if(e&2){let t=ve(36),n=ve(44),i=w();a(),g("formGroup",i.instructionForm),a(5),h(m(7,19,"labels.inputs.Client Name")),a(5),h(m(12,21,"labels.inputs.Client Id")),a(5),h(m(17,23,"labels.inputs.Transfer Type")),a(3),we(i.standingInstructionsTemplate.transferTypeOptions),a(4),h(m(24,25,"labels.inputs.Account Type")),a(3),we(i.standingInstructionsTemplate.fromAccountTypeOptions),a(2),I(i.instructionForm.contains("fromAccountId")?28:-1),a(3),h(m(32,27,"labels.inputs.From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t),a(),g("for",t),a(5),h(m(40,29,"labels.inputs.To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",n),a(),g("for",n),a(4),g("routerLink",oe(33,rli)),a(),v(" ",m(48,31,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function uli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Client")))}function fli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.fromClient.displayName,"(",t.fromClient.id,") ")}}function hli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Account")))}function gli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.fromAccount.productName,"(",t.fromAccount.id,") ")}}function _li(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.To Client")))}function Cli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.toClient.displayName,"(",t.toClient.id,") ")}}function vli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.To Account")))}function xli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.toAccount.productName,"(",t.toAccount.id,") ")}}function bli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Execution Time")))}function yli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.executionTime)}}function Sli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function wli(e,o){if(e&1&&(l(0,"td",38),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amount))}}function Pli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function Tli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status)}}function Mli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error Log")))}function Dli(e,o){if(e&1&&(l(0,"button",39),b(1,"i",40),r()),e&2){let t=w().$implicit;g("matTooltip",t.errorLog)}}function Eli(e,o){if(e&1&&(l(0,"td",38),E(1,Dli,2,1,"button",39),r()),e&2){let t=o.$implicit;a(),I(t.status==="failed"?1:-1)}}function Ili(e,o){e&1&&b(0,"tr",41)}function Oli(e,o){e&1&&b(0,"tr",42)}function Ali(e,o){if(e&1){let t=Y();l(0,"div",3)(1,"mat-card")(2,"div",21)(3,"button",22),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),l(6,"table",23),X(7,24),F(8,uli,3,3,"th",25)(9,fli,2,2,"td",26),Z(),X(10,27),F(11,hli,3,3,"th",25)(12,gli,2,2,"td",26),Z(),X(13,28),F(14,_li,3,3,"th",25)(15,Cli,2,2,"td",26),Z(),X(16,29),F(17,vli,3,3,"th",25)(18,xli,2,2,"td",26),Z(),X(19,30),F(20,bli,3,3,"th",25)(21,yli,2,1,"td",26),Z(),X(22,31),F(23,Sli,3,3,"th",25)(24,wli,3,3,"td",26),Z(),X(25,32),F(26,Pli,3,3,"th",25)(27,Tli,2,1,"td",26),Z(),X(28,33),F(29,Mli,3,3,"th",25)(30,Eli,2,1,"td",26),Z(),F(31,Ili,1,0,"tr",34)(32,Oli,1,0,"tr",35),r(),b(33,"mat-paginator",36),r()()}if(e&2){let t=w();a(4),v(" ",m(5,5,"labels.buttons.Parameters")," "),a(2),g("dataSource",t.dataSource),a(25),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(7,lli))}}var vw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.route=T(Ie),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["fromClient","fromAccount","toClient","toAccount","executionTime","amount","status","errorLog"],this.route.data.subscribe(t=>{this.standingInstructionsTemplate=t.standingInstructionsTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createInstructionForm(),this.buildDependencies()}createInstructionForm(){this.instructionForm=this.formBuilder.group({clientName:[""],clientId:[""],transferType:[""],fromAccountType:[""],fromDate:[""],toDate:[""]})}buildDependencies(){this.instructionForm.get("fromAccountType").valueChanges.subscribe(()=>{this.instructionForm.addControl("fromAccountId",new it(""))})}setInstructions(t){this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}search(){this.isCollapsed=!0;let t=this.instructionForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.instructionForm.value.fromDate,d=this.instructionForm.value.toDate;t.fromDate instanceof Date&&(t.fromDate=this.dateUtils.formatDate(s,i)),t.toDate instanceof Date&&(t.toDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.getStandingInstructions(u).subscribe(f=>{this.setInstructions(f.pageItems)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-standing-instructions-history"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:3,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container","input"],[1,"container","output"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","formControlName","clientName"],["matInput","","formControlName","clientId"],["formControlName","transferType"],[3,"value"],["formControlName","fromAccountType"],[3,"click"],["matInput","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",4,"mifosxHasPermission"],["matInput","","formControlName","fromAccountId"],["mat-raised-button","","color","primary"],["icon","search"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","fromClient"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","toClient"],["matColumnDef","toAccount"],["matColumnDef","executionTime"],["matColumnDef","amount"],["matColumnDef","status"],["matColumnDef","errorLog"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-raised-button","","color","warn",1,"error-log",3,"matTooltip"],[1,"fa","fa-exclamation"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",2),E(1,dli,50,34,"mat-card"),r(),E(2,Ali,34,8,"div",3)),n&2&&(a(),I(i.isCollapsed?-1:1),a(),I(i.isCollapsed?2:-1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,In],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.output[_ngcontent-%COMP%] .error-log[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var Fli=()=>["../"],kli=()=>[10,25,50,100];function Bli(e,o){if(e&1&&(l(0,"mat-option",14),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Rli(e,o){if(e&1&&(l(0,"mat-option",14),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Nli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Vli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function qli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Condition")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",33)(5,"mat-option",34),c(6),p(7,"translate"),r(),l(8,"mat-option",35),c(9,"<="),r(),l(10,"mat-option",36),c(11,">="),r(),l(12,"mat-option",37),c(13,"<"),r(),l(14,"mat-option",38),c(15,">"),r(),l(16,"mat-option",39),c(17,"="),r()(),E(18,qli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,3,"labels.inputs.Comparison Condition")),a(4),h(m(7,5,"labels.inputs.between")),a(12),I(t.fundMappingForm.controls.outStandingAmountPercentageCondition.hasError("required")?18:-1)}}function Hli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Minimum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Gli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",40),p(5,"translate"),E(6,Hli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Minimum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Minimum Value"))),a(2),I(t.fundMappingForm.controls.minOutStandingAmountPercentage.hasError("required")?6:-1)}}function jli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $li(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",41),p(5,"translate"),E(6,jli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Comparison Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Comparison Value"))),a(2),I(t.fundMappingForm.controls.outStandingAmountPercentage.hasError("required")?6:-1)}}function Uli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Maximum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Wli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",42),p(5,"translate"),E(6,Uli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Maximum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Maximum Value"))),a(2),I(t.fundMappingForm.controls.maxOutStandingAmountPercentage.hasError("required")?6:-1)}}function Qli(e,o){if(e&1&&(l(0,"div",26),E(1,zli,19,7,"mat-form-field",16),E(2,Gli,7,8,"mat-form-field",16),E(3,$li,7,8,"mat-form-field",16),E(4,Wli,7,8,"mat-form-field",16),r()),e&2){let t=w(2);a(),I(t.fundMappingForm.contains("outStandingAmountPercentageCondition")?1:-1),a(),I(t.fundMappingForm.contains("minOutStandingAmountPercentage")?2:-1),a(),I(t.fundMappingForm.contains("outStandingAmountPercentage")?3:-1),a(),I(t.fundMappingForm.contains("maxOutStandingAmountPercentage")?4:-1)}}function Yli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Condition")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Jli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",43)(5,"mat-option",34),c(6),p(7,"translate"),r(),l(8,"mat-option",35),c(9,"<="),r(),l(10,"mat-option",36),c(11,">="),r(),l(12,"mat-option",37),c(13,"<"),r(),l(14,"mat-option",38),c(15,">"),r(),l(16,"mat-option",39),c(17,"="),r()(),E(18,Yli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,3,"labels.inputs.Comparison Condition")),a(4),h(m(7,5,"labels.inputs.between")),a(12),I(t.fundMappingForm.controls.outstandingAmountCondition.hasError("required")?18:-1)}}function Kli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Minimum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",44),p(5,"translate"),E(6,Kli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Minimum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Minimum Value"))),a(2),I(t.fundMappingForm.controls.minOutstandingAmount.hasError("required")?6:-1)}}function Zli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function esi(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",45),p(5,"translate"),E(6,Zli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Comparison Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Comparison Value"))),a(2),I(t.fundMappingForm.controls.outstandingAmount.hasError("required")?6:-1)}}function tsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Maximum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function isi(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",46),p(5,"translate"),E(6,tsi,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Maximum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Maximum Value"))),a(2),I(t.fundMappingForm.controls.maxOutstandingAmount.hasError("required")?6:-1)}}function nsi(e,o){if(e&1&&(l(0,"div",28),E(1,Jli,19,7,"mat-form-field",16),E(2,Xli,7,8,"mat-form-field",16),E(3,esi,7,8,"mat-form-field",16),E(4,isi,7,8,"mat-form-field",16),r()),e&2){let t=w(2);a(),I(t.fundMappingForm.contains("outstandingAmountCondition")?1:-1),a(),I(t.fundMappingForm.contains("minOutstandingAmount")?2:-1),a(),I(t.fundMappingForm.contains("outstandingAmount")?3:-1),a(),I(t.fundMappingForm.contains("maxOutstandingAmount")?4:-1)}}function osi(e,o){if(e&1){let t=Y();l(0,"mat-card",2)(1,"form",3),R("ngSubmit",function(){V(t);let i=w();return q(i.submit())}),l(2,"mat-card-content")(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",6)(9,"mat-option",7),c(10),p(11,"translate"),r(),l(12,"mat-option",8),c(13),p(14,"translate"),r(),l(15,"mat-option",9),c(16),p(17,"translate"),r(),l(18,"mat-option",10),c(19),p(20,"translate"),r(),l(21,"mat-option",11),c(22),p(23,"translate"),r()()(),b(24,"span",12),l(25,"mat-form-field",5)(26,"mat-label"),c(27),p(28,"translate"),r(),l(29,"mat-select",13),Se(30,Bli,2,2,"mat-option",14,Pe),r()(),l(32,"mat-form-field",5)(33,"mat-label"),c(34),p(35,"translate"),r(),l(36,"mat-select",15),Se(37,Rli,2,2,"mat-option",14,Pe),r()(),l(39,"mat-form-field",16)(40,"mat-label"),c(41),p(42,"translate"),r(),l(43,"mat-select",17)(44,"mat-option",18),c(45),p(46,"translate"),r(),l(47,"mat-option",19),c(48),p(49,"translate"),r(),l(50,"mat-option",20),c(51),p(52,"translate"),r()(),E(53,Nli,7,9,"mat-error"),r(),l(54,"mat-form-field",21),R("click",function(){V(t);let i=ve(62);return q(i.open())}),l(55,"mat-label"),c(56),p(57,"translate"),r(),b(58,"input",22),p(59,"translate"),b(60,"mat-datepicker-toggle",23)(61,"mat-datepicker",null,0),E(63,Lli,7,9,"mat-error"),r(),l(64,"mat-form-field",21),R("click",function(){V(t);let i=ve(72);return q(i.open())}),l(65,"mat-label"),c(66),p(67,"translate"),r(),b(68,"input",24),p(69,"translate"),b(70,"mat-datepicker-toggle",23)(71,"mat-datepicker",null,1),E(73,Vli,7,9,"mat-error"),r(),l(74,"mat-checkbox",25),c(75),p(76,"translate"),r(),E(77,Qli,5,4,"div",26),l(78,"mat-checkbox",27),c(79),p(80,"translate"),r(),E(81,nsi,5,4,"div",28),r()(),l(82,"mat-card-actions",29)(83,"button",30),c(84),p(85,"translate"),r(),l(86,"button",31),b(87,"fa-icon",32),c(88),p(89,"translate"),r()()()()}if(e&2){let t=ve(62),n=ve(72),i=w();a(),g("formGroup",i.fundMappingForm),a(5),h(m(7,38,"labels.inputs.Loan Status")),a(4),h(m(11,40,"labels.inputs.All")),a(3),h(m(14,42,"labels.inputs.Active")),a(3),h(m(17,44,"labels.inputs.Overpaid")),a(3),h(m(20,46,"labels.inputs.Closed (obligations met)")),a(3),h(m(23,48,"labels.inputs.Closed (written-off)")),a(5),h(m(28,50,"labels.inputs.Product")),a(3),we(i.advanceSearchTemplate.loanProducts),a(4),h(m(35,52,"labels.inputs.Office")),a(3),we(i.advanceSearchTemplate.offices),a(4),h(m(42,54,"labels.inputs.Date Type")),a(4),h(m(46,56,"labels.inputs.Approval Date")),a(3),h(m(49,58,"labels.inputs.Creation Date")),a(3),h(m(52,60,"labels.inputs.Disbursement Date")),a(2),I(i.fundMappingForm.controls.loanDateOption.hasError("required")?53:-1),a(3),h(m(57,62,"labels.inputs.From Date")),a(2),g("placeholder",Le(m(59,64,"labels.inputs.From Date")))("min",i.minDate)("max",i.maxDate)("matDatepicker",t),a(2),g("for",t),a(3),I(i.fundMappingForm.controls.loanFromDate.hasError("required")?63:-1),a(3),h(m(67,66,"labels.inputs.To Date")),a(2),g("placeholder",Le(m(69,68,"labels.inputs.To Date")))("min",i.minDate)("max",i.maxDate)("matDatepicker",n),a(2),g("for",n),a(3),I(i.fundMappingForm.controls.loanToDate.hasError("required")?73:-1),a(2),v(" ",m(76,70,"labels.inputs.Loan Outstanding Percentage")," "),a(2),I(i.fundMappingForm.value.includeOutStandingAmountPercentage?77:-1),a(2),v(" ",m(80,72,"labels.inputs.Loan Outstanding Amount")," "),a(2),I(i.fundMappingForm.value.includeOutstandingAmount?81:-1),a(2),g("routerLink",oe(78,Fli)),a(),v(" ",m(85,74,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.fundMappingForm.valid),a(2),v("\xA0 ",m(89,76,"labels.buttons.Summary")," ")}}function asi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function rsi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function lsi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function ssi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanProductName)}}function csi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Count")))}function psi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.count)}}function msi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Outstanding")))}function dsi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanOutStanding)}}function usi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Percentage")))}function fsi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.percentage)}}function hsi(e,o){e&1&&b(0,"tr",62)}function gsi(e,o){e&1&&b(0,"tr",63)}function _si(e,o){if(e&1){let t=Y();l(0,"div",2)(1,"mat-card")(2,"div",47)(3,"button",48),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),l(6,"table",49),X(7,50),F(8,asi,3,3,"th",51)(9,rsi,2,1,"td",52),Z(),X(10,53),F(11,lsi,3,3,"th",51)(12,ssi,2,1,"td",52),Z(),X(13,54),F(14,csi,3,3,"th",51)(15,psi,2,1,"td",52),Z(),X(16,55),F(17,msi,3,3,"th",51)(18,dsi,2,1,"td",52),Z(),X(19,56),F(20,usi,3,3,"th",51)(21,fsi,2,1,"td",52),Z(),F(22,hsi,1,0,"tr",57)(23,gsi,1,0,"tr",58),r(),b(24,"mat-paginator",59),r()()}if(e&2){let t=w();a(4),v(" ",m(5,5,"labels.buttons.Parameters")," "),a(2),g("dataSource",t.dataSource),a(16),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(7,kli))}}var xw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["officeName","productName","count","outstanding","percentage"],this.route.data.subscribe(t=>{this.advanceSearchTemplate=t.advanceSearchTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFundMappingForm(),this.buildDependencies()}nonEmptyArrayValidator(t){let n=t.value;return!n||!Array.isArray(n)||n.length===0?{required:!0}:n.every(i=>i===""||i===null||i===void 0)?{required:!0}:null}createFundMappingForm(){this.fundMappingForm=this.formBuilder.group({loanStatus:[[],this.nonEmptyArrayValidator.bind(this)],loanProducts:[[],this.nonEmptyArrayValidator.bind(this)],offices:[[],this.nonEmptyArrayValidator.bind(this)],loanDateOption:["",ce.required],loanFromDate:["",ce.required],loanToDate:["",ce.required],includeOutStandingAmountPercentage:[!1],includeOutstandingAmount:[!1]})}buildDependencies(){this.fundMappingForm.get("includeOutStandingAmountPercentage").valueChanges.subscribe(t=>{t?(this.fundMappingForm.addControl("outStandingAmountPercentageCondition",new it("",ce.required)),this.fundMappingForm.get("outStandingAmountPercentageCondition").valueChanges.subscribe(n=>{n==="between"?(this.fundMappingForm.addControl("minOutStandingAmountPercentage",new it("",ce.required)),this.fundMappingForm.addControl("maxOutStandingAmountPercentage",new it("",ce.required)),this.fundMappingForm.removeControl("outStandingAmountPercentage")):(this.fundMappingForm.addControl("outStandingAmountPercentage",new it("",ce.required)),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"))}),this.fundMappingForm.get("outStandingAmountPercentageCondition").patchValue("between")):(this.fundMappingForm.removeControl("outStandingAmountPercentageCondition"),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"),this.fundMappingForm.removeControl("outStandingAmountPercentage"))}),this.fundMappingForm.get("includeOutStandingAmountPercentage").patchValue(!0),this.fundMappingForm.get("includeOutstandingAmount").valueChanges.subscribe(t=>{t?(this.fundMappingForm.addControl("outstandingAmountCondition",new it("",ce.required)),this.fundMappingForm.get("outstandingAmountCondition").valueChanges.subscribe(n=>{n==="between"?(this.fundMappingForm.addControl("minOutstandingAmount",new it("",ce.required)),this.fundMappingForm.addControl("maxOutstandingAmount",new it("",ce.required)),this.fundMappingForm.removeControl("outstandingAmount")):(this.fundMappingForm.addControl("outstandingAmount",new it("",ce.required)),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"))}),this.fundMappingForm.get("outstandingAmountCondition").patchValue("between")):(this.fundMappingForm.removeControl("outstandingAmountCondition"),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"),this.fundMappingForm.removeControl("outstandingAmount"))}),this.fundMappingForm.get("includeOutstandingAmount").patchValue(!0)}setLoans(t){this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}submit(){this.isCollapsed=!0;let t=this.fundMappingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.fundMappingForm.value.loanFromDate,d=this.fundMappingForm.value.loanToDate;if(t.loanFromDate instanceof Date&&(t.loanFromDate=this.dateUtils.formatDate(s,i)),this.fundMappingForm.invalid){this.fundMappingForm.markAllAsTouched();return}t.loanToDate instanceof Date&&(t.loanToDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{entities:["loans"],dateFormat:i,locale:n});this.organizationService.retrieveAdvanceSearchResults(u).subscribe(f=>{this.setLoans(f)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fund-mapping"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:2,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["formControlName","loanStatus","multiple",""],["value","all"],["value","active"],["value","closed"],["value","overpaid"],["value","writeoff"],[1,"flex-48","hide-lt-md"],["formControlName","loanProducts","multiple",""],[3,"value"],["formControlName","offices","multiple",""],[1,"flex-31"],["required","","formControlName","loanDateOption"],["value","approvalDate"],["value","createdDate"],["value","disbursalDate"],[1,"flex-31",3,"click"],["matInput","","formControlName","loanFromDate","required","",3,"min","max","matDatepicker","placeholder"],["matSuffix","",3,"for"],["matInput","","formControlName","loanToDate","required","",3,"min","max","matDatepicker","placeholder"],["labelPosition","before","formControlName","includeOutStandingAmountPercentage",1,"margin-b","flex-73"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],["labelPosition","before","formControlName","includeOutstandingAmount",1,"flex-73","margin-b"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary","type","submit",3,"disabled"],["icon","search"],["required","","formControlName","outStandingAmountPercentageCondition"],["value","between"],["value","<="],["value",">="],["value","<"],["value",">"],["value","="],["type","number","matInput","","required","","formControlName","minOutStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","outStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutStandingAmountPercentage",3,"placeholder"],["required","","formControlName","outstandingAmountCondition"],["type","number","matInput","","required","","formControlName","minOutstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","outstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutstandingAmount",3,"placeholder"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","count"],["matColumnDef","outstanding"],["matColumnDef","percentage"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(E(0,osi,90,79,"mat-card",2),E(1,_si,25,8,"div",2)),n&2&&(I(i.isCollapsed?-1:0),a(),I(i.isCollapsed?1:-1))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%]{max-width:73rem}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var bw=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var yw=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Sw=(()=>{class e{get data(){return this.dataChange.value}constructor(){this.dataChange=new Ra([]),this.TREE_DATA={}}initialize(t){this.TREE_DATA=t;let n=this.buildFileTree(this.TREE_DATA,0);this.dataChange.next(n)}buildFileTree(t,n){return Object.keys(t).reduce((i,s)=>{let d=t[s],u=new yw;return u.item=s,d!=null&&(typeof d=="object"?u.children=this.buildFileTree(d,n+1):u.item=d),i.concat(u)},[])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ww=(()=>{class e{setEmptyObjectsToNull(t){Object.keys(t).forEach(n=>{Object.keys(t[n]).length===0?t[n]=null:this.setEmptyObjectsToNull(t[n])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Csi=()=>["../"];function vsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ysi(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Ssi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment Scheduling Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment scheduled to")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Psi(e,o){if(e&1){let t=Y();l(0,"mat-form-field",7),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",20)(5,"mat-datepicker-toggle",9)(6,"mat-datepicker",null,2),E(8,wsi,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Repayment scheduled to")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.repaymentsRescheduledTo.hasError("required")?8:-1)}}function Tsi(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",21),b(1,"button",22),l(2,"mat-checkbox",23),R("change",function(){let i=V(t).$implicit,s=w();return q(s.officeLeafItemSelectionToggle(i))}),c(3),r()()}if(e&2){let t=o.$implicit,n=w();a(2),g("checked",n.checklistSelection.isSelected(t)),a(),h(n.officesDict[t.item].name)}}function Msi(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",24)(1,"button",25)(2,"mat-icon",26),c(3),r()(),l(4,"mat-checkbox",27),R("change",function(){let i=V(t).$implicit,s=w();return q(s.officeItemSelectionToggle(i))}),c(5),r()()}if(e&2){let t=o.$implicit,n=w();a(),Dn("aria-label","toggle "+t.filename),a(2),v(" ",n.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),a(),g("checked",n.descendantsAllSelected(t)),a(),h(n.officesDict[t.item].name)}}function Dsi(e,o){if(e&1&&(l(0,"button",28),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.holidayForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Pw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizationService=T(li),this.settings=T(Ot),this.router=T(qe),this._database=T(Sw),this.createHoliday=T(ww),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.officesDict={},this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.selectedParent=null,this.newItemName="",this.checklistSelection=new gr(!0),this.getLevel=n=>n.level,this.isExpandable=n=>n.expandable,this.getChildren=n=>n.children,this.hasChild=(n,i)=>i.expandable,this.hasNoContent=(n,i)=>i.item==="",this.transformer=(n,i)=>{let s=this.nestedNodeMap.get(n),d=s&&s.item===n.item?s:new bw;return d.item=n.item,d.level=i,d.expandable=!!n.children?.length,this.flatNodeMap.set(d,n),this.nestedNodeMap.set(n,d),d};let t=this._database;this.route.data.subscribe(n=>{this.officesData=n.offices,this.repaymentSchedulingTypes=n.holidayTemplate,this.constructOfficeHierarchy(),t.initialize(this.officesTrie)}),this.treeFlattener=new bk(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new vk(this.getLevel,this.isExpandable),this.dataSource=new yk(this.treeControl,this.treeFlattener),this._database.dataChange.subscribe(n=>{this.dataSource.data=n})}constructOfficeHierarchy(){let t={};this.officesData.forEach(n=>{this.officesDict[n.id]=n;let i=n.hierarchy.split(".");i=i.filter(d=>d.length>0);let s=t;i.length===0?s[n.id]={}:(s=t[Object.keys(t)[0]],i.forEach(d=>{d in s||(s[d]={}),s=s[d]}))}),this.createHoliday.setEmptyObjectsToNull(t),this.officesTrie=t}descendantsAllSelected(t){return this.checklistSelection.isSelected(t)}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(s=>this.checklistSelection.isSelected(s))&&!this.descendantsAllSelected(t)}setSelectedOffices(){this.holidayForm.patchValue({offices:this.checklistSelection.selected.map(t=>t.item)})}officeItemSelectionToggle(t){this.checklistSelection.toggle(t);let n=this.treeControl.getDescendants(t);this.checklistSelection.isSelected(t)?this.checklistSelection.select(...n):this.checklistSelection.deselect(...n),n.forEach(i=>this.checklistSelection.isSelected(i)),this.setSelectedOffices()}officeLeafItemSelectionToggle(t){this.checklistSelection.toggle(t),this.setSelectedOffices()}checkAllParentsSelection(t){let n=this.getParentNode(t);for(;n;)this.checkRootNodeSelection(n),n=this.getParentNode(n)}checkRootNodeSelection(t){let n=this.checklistSelection.isSelected(t),i=this.treeControl.getDescendants(t),s=i.length>0&&i.every(d=>this.checklistSelection.isSelected(d));n&&!s?this.checklistSelection.deselect(t):!n&&s&&this.checklistSelection.select(t)}getParentNode(t){let n=this.getLevel(t);if(n<1)return null;let i=this.treeControl.dataNodes.indexOf(t)-1;for(let s=i;s>=0;s--){let d=this.treeControl.dataNodes[s];if(this.getLevel(d){t===2?this.holidayForm.addControl("repaymentsRescheduledTo",new it("",ce.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let t=this.holidayForm.value,n=this.settings.dateFormat,i=this.settings.language.code,s=this.holidayForm.value.fromDate,d=this.holidayForm.value.toDate;if(t.fromDate=this.dateUtils.formatDateAsString(s,n),t.toDate=this.dateUtils.formatDateAsString(d,n),this.holidayForm.contains("repaymentsRescheduledTo")){let _=this.holidayForm.value.repaymentsRescheduledTo;t.repaymentsRescheduledTo=this.dateUtils.formatDateAsString(_,n)}let u=this.holidayForm.value.offices.map(_=>({officeId:Number.parseInt(_,10)})),f=qt(at({},t),{dateFormat:n,locale:i,offices:u});this.organizationService.createHoliday(f).subscribe(_=>{this.router.navigate(["../",_.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-holiday"]],decls:54,vars:41,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value"],["matInput","","formControlName","description"],[3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["matTreeNodeToggle","","matTreeNodePadding",""],["mat-icon-button","","disabled",""],[1,"checklist-leaf-node",3,"change","checked"],["matTreeNodePadding",""],["type","button","mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],[3,"change","checked"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),E(10,vsi,7,9,"mat-error"),r(),l(11,"mat-form-field",7),R("click",function(){V(s);let u=ve(18);return q(u.open())}),l(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",8)(16,"mat-datepicker-toggle",9)(17,"mat-datepicker",null,0),E(19,xsi,7,9,"mat-error"),r(),l(20,"mat-form-field",7),R("click",function(){V(s);let u=ve(27);return q(u.open())}),l(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",10)(25,"mat-datepicker-toggle",9)(26,"mat-datepicker",null,1),E(28,bsi,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),l(33,"mat-select",11),Se(34,ysi,2,2,"mat-option",12,Pe),r(),E(36,Ssi,7,9,"mat-error"),r(),E(37,Psi,9,8,"mat-form-field"),l(38,"mat-form-field")(39,"mat-label"),c(40),p(41,"translate"),r(),b(42,"input",13),r(),l(43,"label"),c(44),p(45,"translate"),r(),l(46,"mat-tree",14),F(47,Tsi,4,2,"mat-tree-node",15)(48,Msi,6,4,"mat-tree-node",16),r()()(),l(49,"mat-card-actions",17)(50,"button",18),c(51),p(52,"translate"),r(),F(53,Dsi,3,4,"button",19),r()()()()}if(n&2){let s=ve(18),d=ve(27);a(2),g("formGroup",i.holidayForm),a(5),h(m(8,26,"labels.inputs.name")),a(3),I(i.holidayForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,28,"labels.inputs.From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.holidayForm.controls.fromDate.hasError("required")?19:-1),a(3),h(m(23,30,"labels.inputs.To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.holidayForm.controls.toDate.hasError("required")?28:-1),a(3),h(m(32,32,"labels.inputs.Repayment Scheduling Type")),a(3),we(i.repaymentSchedulingTypes),a(2),I(i.holidayForm.controls.reschedulingType.hasError("required")?36:-1),a(),I(i.holidayForm.contains("repaymentsRescheduledTo")?37:-1),a(3),h(m(41,34,"labels.inputs.Description")),a(4),h(m(45,36,"labels.inputs.Select applicable offices")),a(2),g("dataSource",i.dataSource)("treeControl",i.treeControl),a(2),g("matTreeNodeDefWhen",i.hasChild),a(2),g("routerLink",oe(40,Csi)),a(),v(" ",m(52,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_HOLIDAY")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,M0,T0,P0,D0,xk,wi,Yo,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var U6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getProvisioningCriteria(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Dl=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var W6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getEmployees()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Q6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getEmployee(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Y6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getEmployee(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Tw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getCurrencies()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var J6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getSmsCampaigns()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var K6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getAdhocQueries()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var X6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getAdhocQuery(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Z6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getTellers()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Mw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getTeller(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Dw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return n?this.organizationService.getPaymentType(n):this.organizationService.getPaymentTypes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var eO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getPasswordPreferencesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var tO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getEntityDataTableChecks()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var iO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getWorkingDays()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var nO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("officeId");return this.organizationService.getOffice(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var oO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getAdhocQueryTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Ew=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getProvisioningCriterias()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Iw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id"),i=t.parent.parent.paramMap.get("id");return this.organizationService.getCashier(i,n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var aO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.paramMap.get("id");return this.organizationService.getCashiers(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Vu=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getHoliday(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var rO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.paramMap.get("officeId");return this.organizationService.getOffice(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var lO=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("officeId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var sO=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_office")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var cO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getSmsCampaign(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Ow=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getFunds()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Aw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.paramMap.get("id"),i=t.parent.parent.paramMap.get("id");return this.organizationService.getCashierTransactionTemplate(i,n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Fw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.parent.paramMap.get("id");return this.organizationService.getCashierTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var kw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getHolidayTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var pO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getAdhocQueryAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var mO=(()=>{class e{constructor(){this.organizationService=T(li),this.bulkImportsArray=sw}getEntityName(t){return this.bulkImportsArray.find(i=>t===i.name).entityType}resolve(t){let n=this.getEntityName(t.params["import-name"]);return this.organizationService.getImports(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Bw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getSmsCampaignTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var dO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getEntityDataTableChecksTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var uO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getProvisioningCriteriaTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var fO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getProvisioningCriteria(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var hO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getStandingInstructionTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var gO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getAdvanceSearchTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Rw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getFund(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Esi=()=>["../"],Isi=()=>["edit"];function Osi(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Isi)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}var Nw=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.fundData=t.fundData})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-fund"]],decls:20,vars:15,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["completed","true",3,"externalId"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Osi,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",4),c(12),p(13,"translate"),r(),l(14,"div",5),b(15,"mifosx-external-identifier",6),r()(),l(16,"div",7)(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_FUND"),a(6),v(" ",m(8,8,"labels.inputs.name")," "),a(3),v(" ",i.fundData.name," "),a(2),v(" ",m(13,10,"labels.inputs.External Id")," "),a(3),g("externalId",Le(i.fundData.externalId)),a(2),g("routerLink",oe(14,Esi)),a(),v(" ",m(19,12,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Da,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Asi=()=>["../"];function Fsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ksi(e,o){if(e&1&&(l(0,"button",8),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.fundForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Lw=(()=>{class e{constructor(){this.organizationService=T(li),this.formBuilder=T(nt),this.router=T(qe),this.route=T(Ie),this.route.data.subscribe(t=>{this.fundData=t.fundData})}ngOnInit(){this.createFundForm()}createFundForm(){this.fundForm=this.formBuilder.group({name:[this.fundData.name,ce.required],externalId:[this.fundData.externalId]})}submit(){let t=this.fundForm.getRawValue();this.organizationService.editFund(this.fundData.id.toString(),t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-fund"]],decls:21,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],["matInput","","autofocus","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Fsi,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),r()()(),l(16,"mat-card-actions",5)(17,"button",6),c(18),p(19,"translate"),r(),F(20,ksi,3,4,"button",7),r()()()()),n&2&&(a(2),g("formGroup",i.fundForm),a(5),h(m(8,7,"labels.inputs.name")),a(3),I(i.fundForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,9,"labels.inputs.External Id")),a(4),g("routerLink",oe(13,Asi)),a(),v(" ",m(19,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_FUND"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Bsi=()=>["../"];function Rsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Nsi(e,o){if(e&1&&(l(0,"button",8),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.fundForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Vw=(()=>{class e{constructor(){this.organizationService=T(li),this.formBuilder=T(nt),this.router=T(qe),this.route=T(Ie)}ngOnInit(){this.createFundForm()}createFundForm(){this.fundForm=this.formBuilder.group({name:["",ce.required],externalId:[""]})}submit(){let t=this.fundForm.getRawValue();this.organizationService.createFund(t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-fund"]],decls:21,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],["matInput","","autofocus","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Rsi,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),r()()(),l(16,"mat-card-actions",5)(17,"button",6),c(18),p(19,"translate"),r(),F(20,Nsi,3,4,"button",7),r()()()()),n&2&&(a(2),g("formGroup",i.fundForm),a(5),h(m(8,7,"labels.inputs.name")),a(3),I(i.fundForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,9,"labels.inputs.External Id")),a(4),g("routerLink",oe(13,Bsi)),a(),v(" ",m(19,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FUND"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Lsi=()=>[50,100,200];function Vsi(e,o){e&1&&(l(0,"div",15),b(1,"div",18),r())}function qsi(e,o){if(e&1&&(l(0,"tr")(1,"td",26)(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td",33)(6,"table")(7,"tbody")(8,"tr")(9,"td",34)(10,"b"),c(11),p(12,"translate"),r()(),l(13,"td",35),c(14),p(15,"formatNumber"),r()(),l(16,"tr")(17,"td",34)(18,"b"),c(19),p(20,"translate"),r()(),l(21,"td",35),c(22),p(23,"formatNumber"),r()(),l(24,"tr")(25,"td",34)(26,"b"),c(27),p(28,"translate"),r()(),l(29,"td",35),c(30),p(31,"formatNumber"),r()(),l(32,"tr")(33,"td",34)(34,"b"),c(35),p(36,"translate"),r()(),l(37,"td",35),c(38),p(39,"formatNumber"),r()(),l(40,"tr")(41,"td",34)(42,"b"),c(43),p(44,"translate"),r()(),l(45,"td",35),c(46),p(47,"formatNumber"),r()(),l(48,"tr")(49,"td",34)(50,"b"),c(51),p(52,"translate"),r()(),l(53,"td",35),c(54),p(55,"formatNumber"),r()()()()()()),e&2){let t=w().$implicit;a(3),v("",m(4,13,"labels.inputs.Details")," :"),a(8),v("",m(12,15,"labels.inputs.Principal Outstanding")," :"),a(3),v(" ",m(15,17,t.details.totalPrincipalOutstanding)," "),a(5),v("",m(20,19,"labels.inputs.Interest Outstanding")," :"),a(3),v(" ",m(23,21,t.details.totalInterestOutstanding)," "),a(5),v("",m(28,23,"labels.inputs.Fees Outstanding")," :"),a(3),v(" ",m(31,25,t.details.totalFeeChargesOutstanding)," "),a(5),v("",m(36,27,"labels.inputs.Penalties Outstanding")," :"),a(3),v(" ",m(39,29,t.details.totalPenaltyChargesOutstanding)," "),a(5),v("",m(44,31,"labels.inputs.Outstanding")," :"),a(3),h(m(47,33,t.details.totalOutstanding)),a(5),v("",m(52,35,"labels.inputs.Overpaid")," :"),a(3),h(m(55,37,t.details.totalOverpaid))}}function zsi(e,o){if(e&1){let t=Y();l(0,"div",32)(1,"button",36),p(2,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w(2);return q(s.cancelPendingSale(i))}),b(3,"fa-icon",37),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"labels.text.Cancel Pending Sale"))))}function Hsi(e,o){if(e&1&&(l(0,"mat-expansion-panel",19)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"table")(4,"tr")(5,"td")(6,"div",20),b(7,"fa-icon",21),l(8,"span",22),c(9),r()()(),l(10,"td",23),c(11),p(12,"translate"),r(),l(13,"td"),b(14,"mifosx-external-identifier",24),r(),l(15,"td",23),c(16),p(17,"translate"),r(),l(18,"td"),b(19,"mifosx-external-identifier",24),r(),l(20,"td",23),c(21),p(22,"translate"),r(),l(23,"td"),c(24),p(25,"dateFormat"),r()()()()(),l(26,"div",25)(27,"table")(28,"tbody")(29,"tr")(30,"td",26)(31,"b"),c(32),p(33,"translate"),r()(),l(34,"td",27)(35,"div",28),b(36,"fa-icon",21),l(37,"span",29),c(38),r()()(),l(39,"td",26)(40,"b"),c(41),p(42,"translate"),r()(),l(43,"td",27),b(44,"mifosx-external-identifier",30),r()(),l(45,"tr")(46,"td",26)(47,"b"),c(48),p(49,"translate"),r()(),l(50,"td",26),c(51),p(52,"dateFormat"),r(),l(53,"td",26)(54,"b"),c(55),p(56,"translate"),r()(),l(57,"td",26),c(58),p(59,"dateFormat"),r()(),E(60,qsi,56,39,"tr"),r()()(),b(61,"mat-divider",31),E(62,zsi,4,4,"div",32),r()),e&2){let t=o.$implicit,n=w(2);a(6),g("ngClass",n.itemStatus(t.status)),a(3),h(t.status),a(2),h(m(12,23,"labels.inputs.Owner External Id")),a(3),g("externalId",Le(t.owner.externalId)),a(2),h(m(17,25,"labels.inputs.Transfer External Id")),a(3),g("externalId",Le(t.transferExternalId)),a(2),h(m(22,27,"labels.inputs.Effective From")),a(3),h(m(25,29,t.effectiveFrom)),a(8),v("",m(33,31,"labels.inputs.Status")," :"),a(3),g("ngClass",n.itemStatus(t.status)),a(3),h(t.status),a(3),v("",m(42,33,"labels.inputs.Owner External Id")," :"),a(3),g("externalId",Le(t.owner.externalId)),a(4),v("",m(49,35,"labels.inputs.Settlement Date")," :"),a(3),v(" ",m(52,37,t.settlementDate)," "),a(4),v("",m(56,39,"labels.inputs.Effective Date")," :"),a(3),v(" ",m(59,41,t.effectiveFrom)," "),a(2),I(t.details?60:-1),a(),g("inset",!0),a(),I(n.canBeCancelled(t)?62:-1)}}function Gsi(e,o){if(e&1&&(l(0,"mat-accordion"),Se(1,Hsi,63,43,"mat-expansion-panel",19,Pe),r()),e&2){let t=w();a(),we(t.searchResults)}}function jsi(e,o){if(e&1){let t=Y();l(0,"mat-paginator",38),R("page",function(i){V(t);let s=w();return q(s.pageChanged(i))}),r()}if(e&2){let t=w();g("pageSize",t.pageSize)("pageSizeOptions",oe(3,Lsi))("length",t.totalRows)}}function $si(e,o){e&1&&(l(0,"div",17)(1,"div",39),b(2,"i",40),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No data found")," "))}var qw=(()=>{class e{constructor(){this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.externalAssetOwner=T(Nk),this.externalAssetOwnerService=T(Kg),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.searchResults=[],this.searchText=new it(""),this.effectiveFromDate=new it(""),this.effectiveToDate=new it(""),this.settlementFromDate=new it(""),this.settlementToDate=new it(""),this.dataSource=new Wt,this.existsDataToFilter=!1,this.isLoading=!1,this.pageSize=50,this.currentPage=0,this.filterText="",this.sortAttribute="",this.sortDirection="",this.entryTypeFilter=new it(""),this.entryTypeFilterData=[{option:"All",value:""},{option:"Sell",value:!0},{option:"Buyed Back",value:!1}],this.displayedColumns=["status","effectiveFrom","ownerExternalId","loanAccount","transferExternalId","settlementDate","purchasePriceRatio","totalAmount","actions"]}ngOnInit(){this.maxDate=this.settingsService.maxAllowedDate,this.searchEAO()}itemStatus(t){return this.externalAssetOwner.itemStatus(t)}isPending(t){return this.externalAssetOwner.isPending(t)}isPendingOrCanceled(t){return this.externalAssetOwner.isPendingOrCanceled(t)}isBuyBackPending(t){return this.externalAssetOwner.isBuyBackPending(t)}canBeCancelled(t){return this.externalAssetOwner.validateStatus(t,"PENDING")}canBeSold(t){return this.externalAssetOwner.canBeSold(t)}canBeBuyed(t){return this.externalAssetOwner.validateStatus(t,"ACTIVE")}searchEAO(){this.isLoading=!0;let t={request:{},page:this.currentPage,size:this.pageSize},n="yyyy-MM-dd",i={};this.searchText.value&&(i.text=this.searchText.value),this.effectiveFromDate.value&&(i.effectiveFromDate=this.dateUtils.formatDate(this.effectiveFromDate.value,n)),this.effectiveToDate.value&&(i.effectiveToDate=this.dateUtils.formatDate(this.effectiveToDate.value,n)),this.settlementFromDate.value&&(i.settlementFromDate=this.dateUtils.formatDate(this.settlementFromDate.value,n)),this.settlementToDate.value&&(i.settlementToDate=this.dateUtils.formatDate(this.settlementToDate.value,n)),t.request=i,this.externalAssetOwnerService.searchExternalAssetOwnerTransfer(t).subscribe(s=>{this.totalRows=s.totalElements,this.existsDataToFilter=s.totalElements>0,this.dataSource.data=s.content,this.searchResults=s.content,this.isLoading=!1})}transform(t){return t}pageChanged(t){this.pageSize=t.pageSize,this.currentPage=t.pageIndex,this.searchEAO()}cancelPendingSale(t){this.dialog.open(y0,{data:{cancelContext:`the Asset Transfer with the Owner External Id ${t.owner.externalId} `}}).afterClosed().subscribe(i=>{if(i.cancel){let s={transferExternalId:t.transferExternalId};this.externalAssetOwnerService.executeExternalAssetOwnerTransferCommand(t.transferId,s,"cancel").subscribe(d=>{this.reload()})}})}reload(){let t=this.router.url;this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}resetPaginator(){this.currentPage=0,this.paginator.firstPage()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-investors"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:50,vars:43,consts:[["effectiveFromDatePicker",""],["effectiveToDatePicker",""],["settlementFromDatePicker",""],["settlementToDatePicker",""],[1,"container"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-18"],["matInput","",3,"formControl"],[1,"flex-18",3,"click"],["matInput","",3,"min","max","matDatepicker","formControl"],["matSuffix","",3,"for"],[1,"center","m-t-15","flex-98"],["mat-raised-button","","color","primary",3,"click"],["icon","search",1,"m-r-10"],[1,"mat-elevation-z8","container","m-t-20"],[1,"loader"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions","length"],[1,"alert"],[1,"loading"],[1,"record"],[1,"m-r-20",3,"ngClass"],["icon","stop"],[1,"m-l-10","status"],[1,"field-name"],[3,"externalId"],[1,"external-asset-transfer"],[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[3,"inset"],[1,"record-actions","layout-row","align-flex-end"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"],["mat-button","","color","warn",3,"click","matTooltip"],["icon","trash"],["showFirstLastButtons","",3,"page","pageSize","pageSizeOptions","length"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",4)(1,"mat-card-content")(2,"div",5)(3,"mat-form-field",6)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",7),r(),l(8,"mat-form-field",8),R("click",function(){V(s);let u=ve(15);return q(u.open())}),l(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",9)(13,"mat-datepicker-toggle",10)(14,"mat-datepicker",null,0),r(),l(16,"mat-form-field",8),R("click",function(){V(s);let u=ve(23);return q(u.open())}),l(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",9)(21,"mat-datepicker-toggle",10)(22,"mat-datepicker",null,1),r(),l(24,"mat-form-field",8),R("click",function(){V(s);let u=ve(31);return q(u.open())}),l(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",9)(29,"mat-datepicker-toggle",10)(30,"mat-datepicker",null,2),r(),l(32,"mat-form-field",8),R("click",function(){V(s);let u=ve(39);return q(u.open())}),l(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"input",9)(37,"mat-datepicker-toggle",10)(38,"mat-datepicker",null,3),r(),l(40,"div",11)(41,"button",12),R("click",function(){return V(s),q(i.searchEAO())}),b(42,"fa-icon",13),c(43),p(44,"translate"),r()()(),l(45,"div",14),E(46,Vsi,2,0,"div",15),E(47,Gsi,3,0,"mat-accordion"),E(48,jsi,1,4,"mat-paginator",16),r(),E(49,$si,5,3,"div",17),r()()}if(n&2){let s=ve(15),d=ve(23),u=ve(31),f=ve(39);a(5),h(m(6,31,"labels.text.Search by Text")),a(2),g("formControl",i.searchText),a(3),h(m(11,33,"labels.text.Effective Date From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s)("formControl",i.effectiveFromDate),a(),g("for",s),a(5),h(m(19,35,"labels.text.Effective Date To")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d)("formControl",i.effectiveToDate),a(),g("for",d),a(5),h(m(27,37,"labels.text.Settlement Date From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",u)("formControl",i.settlementFromDate),a(),g("for",u),a(5),h(m(35,39,"labels.text.Settlement Date To")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",f)("formControl",i.settlementToDate),a(),g("for",f),a(6),v(" ",m(44,41,"labels.buttons.Search")," "),a(3),I(i.isLoading?46:-1),a(),I(i.existsDataToFilter?47:-1),a(),I(i.existsDataToFilter?48:-1),a(),I(i.existsDataToFilter?-1:49)}},dependencies:[ue,co,fe,st,$e,_n,Ue,Je,Fe,Be,ai,ze,mi,di,pi,xe,ke,Dr,Pr,Tr,Mr,Da,Ri,si,kt,Pi,he,In],styles:[".status[_ngcontent-%COMP%]{color:#000}.field-name[_ngcontent-%COMP%]{font-weight:800}.record-actions[_ngcontent-%COMP%]{margin-top:1%}.record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.external-asset-transfer[_ngcontent-%COMP%]{margin-top:10px;min-height:160px}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%]{margin-top:1%}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.record[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.record[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"],data:{animation:[Sr("detailExpand",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var Usi=[_o.withShell([{path:"organization",data:{title:"Organization",breadcrumb:"Organization"},children:[{path:"",component:xS},{path:"provisioning-criteria",data:{title:"Provisioning Criteria",breadcrumb:"Provisioning Criteria"},children:[{path:"",component:bS,resolve:{loanProvisioningCriterias:Ew}},{path:"create",data:{title:"Create Provisioning Criteria",breadcrumb:"Create Provisioning Criteria"},component:gw,resolve:{loanProvisioningCriteriaTemplate:uO}},{path:":id",data:{title:"View Provisioning Criteria",routeParamBreadcrumb:"id"},children:[{path:"",component:pw,resolve:{loanProvisioningCriteria:U6}},{path:"edit",component:Cw,data:{title:"Edit Provisioning Criteria",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loanProvisioningCriteriaAndTemplate:fO}}]}]},{path:"offices",data:{title:"Manage Offices",breadcrumb:"Manage Offices"},children:[{path:"",component:yS,resolve:{offices:Dl}},{path:"create",component:NS,data:{title:"Create Office",breadcrumb:"Create Office"},resolve:{offices:Dl}},{path:":officeId",data:{title:"View Office",breadcrumb:"officeId",routeParamBreadcrumb:"officeId"},component:US,resolve:{officeDatatables:sO},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:WS,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{office:rO}},{path:"datatables",children:[{path:":datatableName",component:QS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{officeDatatable:lO}}]}]},{path:":officeId/edit",component:rw,data:{title:"Edit Office",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{officeTemplate:nO}}]},{path:"employees",data:{title:"Manage Employees",breadcrumb:"Manage Employees"},children:[{path:"",component:SS,resolve:{employees:W6}},{path:"create",component:wS,data:{title:"Create Employee",breadcrumb:"Create Employee"},resolve:{offices:Dl}},{path:":id",data:{title:"View Employee",routeParamBreadcrumb:"id"},children:[{path:"",component:PS,resolve:{employee:Q6}},{path:"edit",component:zS,data:{title:"Edit Employee",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{employee:Y6}}]}]},{path:"currencies",data:{title:"Currency Configuration",breadcrumb:"Currency Configuration"},resolve:{currencies:Tw},children:[{path:"",component:TS},{path:"manage",data:{title:"Manage Currencies",breadcrumb:"Manage Currencies"},component:KS}]},{path:"sms-campaigns",data:{title:"SMS Campaigns",breadcrumb:"SMS Campaigns"},children:[{path:"",component:MS,resolve:{smsCampaigns:J6}},{path:"create",data:{title:"Create SMS Campaign",breadcrumb:"Create Campaign"},component:mw,resolve:{smsCampaignTemplate:Bw}},{path:":id",data:{title:"View SMS Campaign",routeResolveBreadcrumb:["smsCampaign","campaignName"]},resolve:{smsCampaign:cO},runGuardsAndResolvers:"always",children:[{path:"",component:YS},{path:"edit",component:fw,data:{title:"Edit SMS Campaign",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{smsCampaignTemplate:Bw}}]}]},{path:"standing-instructions-history",component:vw,data:{title:"Standing Instructions History",breadcrumb:"Standing Instructions History"},resolve:{standingInstructionsTemplate:hO}},{path:"fund-mapping",component:xw,data:{title:"Fund Mapping",breadcrumb:"Fund Mapping"},resolve:{advanceSearchTemplate:gO}},{path:"investors",component:qw,data:{title:"Investors",breadcrumb:"Investors"},resolve:{}},{path:"adhoc-query",data:{title:"Adhoc Query",breadcrumb:"Adhoc Query"},children:[{path:"",component:DS,resolve:{adhocQueries:K6}},{path:"create",component:VS,data:{title:"Create Adhoc Query",breadcrumb:"Create"},resolve:{adhocQueryTemplate:oO}},{path:":id",data:{title:"View Adhoc Query",routeParamBreadcrumb:"id"},children:[{path:"",component:ES,resolve:{adhocQuery:X6}},{path:"edit",component:aw,data:{title:"Edit Adhoc Query",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{adhocQueryAndTemplate:pO}}]}]},{path:"tellers",data:{title:"Tellers",breadcrumb:"Tellers"},children:[{path:"",component:IS,resolve:{tellers:Z6}},{path:"create",component:HS,data:{title:"Create Teller",breadcrumb:"Create"},resolve:{offices:Dl}},{path:":id",data:{title:"View Teller",routeParamBreadcrumb:"id"},children:[{path:"",component:OS,resolve:{teller:Mw}},{path:"edit",component:GS,data:{title:"Edit Teller",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{teller:Mw,offices:Dl}},{path:"cashiers",data:{title:"Cashiers",breadcrumb:"Cashiers",routeParamBreadcrumb:!1},children:[{path:"",component:XS,resolve:{cashiersData:aO}},{path:"create",data:{title:"Cashiers",breadcrumb:"Create Cashier"},component:nw,resolve:{cashierTemplate:Fw}},{path:":id",data:{title:"View Cashier",routeParamBreadcrumb:"id"},children:[{path:"",component:jS,data:{title:"View Cashier",breadcrumb:"View Cashier",routeParamBreadcrumb:!1},resolve:{cashier:Iw}},{path:"edit",component:iw,data:{title:"Edit Cashier",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{cashier:Iw,cashierTemplate:Fw}},{path:"transactions",data:{title:"Cashier Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},component:ZS,resolve:{currencies:Tw}},{path:"settle",component:tw,data:{title:"Settle Cash",breadcrumb:"Settle Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:Aw}},{path:"allocate",component:ew,data:{title:"Allocate Cash",breadcrumb:"Allocate Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:Aw}}]}]}]}]},{path:"payment-types",data:{title:"Payment Types",breadcrumb:"Payment Types"},children:[{path:"",component:AS,resolve:{paymentTypes:Dw}},{path:"create",component:LS,data:{title:"Create Payment Type",breadcrumb:"Create Payment Type"}},{path:":id",data:{routeParamBreadcrumb:"id",addBreadcrumbLink:!1},children:[{path:"edit",component:FS,data:{title:"Edit Payment Type",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{paymentType:Dw}}]}]},{path:"password-preferences",component:kS,data:{title:"Password Preferences",breadcrumb:"Password Preferences"},resolve:{passwordPreferencesTemplate:eO}},{path:"bulkloan",component:_w,data:{title:"Bulk Loan Reassignment",breadcrumb:"Bulk Loan Reasssignment"},resolve:{offices:Dl}},{path:"entity-data-table-checks",data:{title:"Entity Data Table Checks",breadcrumb:"Entity Data Table Checks"},children:[{path:"",component:BS,resolve:{entityDataTableChecks:tO}},{path:"create",component:hw,data:{title:"Create Entity Data Table Checks",breadcrumb:"Create"},resolve:{dataTableEntity:dO}}]},{path:"working-days",component:RS,data:{title:"Working Days",breadcrumb:"Working Days"},resolve:{workingDays:iO}},{path:"manage-funds",data:{title:"Manage Funds",breadcrumb:"Manage Funds"},children:[{path:"",component:JS,resolve:{funds:Ow}},{path:"create",component:Vw,data:{title:"Create Fund",breadcrumb:"Create"}},{path:":id",data:{title:"View Fund",breadcrumb:"id",routeParamBreadcrumb:"id"},resolve:{fundData:Rw},children:[{path:"",component:Nw,resolve:{fundData:Rw}},{path:"edit",component:Lw,data:{title:"Edit Fund",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{fundData:Rw}}]}],resolve:{funds:Ow}},{path:"bulk-import",data:{title:"Bulk Import",breadcrumb:"Bulk Import"},children:[{path:"",component:lw},{path:":import-name",component:cw,data:{title:"View Bulk Import",routeParamBreadcrumb:"import-name"},resolve:{offices:Dl,imports:mO}}]},{path:"holidays",data:{title:"Manage Holidays",breadcrumb:"Manage Holidays"},children:[{path:"",component:qS,resolve:{offices:Dl}},{path:"create",component:Pw,data:{title:"Create Holiday",breadcrumb:"Create"},resolve:{offices:Dl,holidayTemplate:kw}},{path:":id",data:{title:"View Holidays",routeParamBreadcrumb:"id"},children:[{path:"",component:$S,resolve:{holidays:Vu}},{path:"edit",component:ow,data:{title:"Edit Holidays",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{holiday:Vu,holidayTemplate:kw}}]}]}]}])],TX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[U6,Dl,W6,Q6,Y6,Tw,J6,cO,Bw,K6,X6,Z6,Mw,Dw,eO,tO,iO,nO,oO,pO,Ew,Iw,aO,Vu,rO,lO,sO,Ow,Aw,Fw,Vu,kw,mO,Vu,dO,Ew,uO,fO,hO,gO],imports:[gn.forChild(Usi),gn]})}}return e})();var MX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[ww,Sw,bw,yw],imports:[oo,ha,Er,TX,xS,bS,yS,SS,TS,MS,DS,ES,IS,OS,AS,FS,kS,BS,RS,NS,wS,LS,PS,VS,qS,rw,zS,HS,GS,pw,jS,$S,US,WS,QS,YS,JS,KS,XS,ZS,tw,ew,iw,nw,ow,aw,lw,cw,mw,bh,Qm,Lu,xh,fw,uw,dw,hw,_w,gw,Cw,vw,xw,Pw,Vw,Lw,Nw,qw]})}}return e})();var zw=()=>{let e=typeof window<"u"?window:void 0;return e&&e.tinymce?e.tinymce:null},Wsi=(()=>{class e{onBeforePaste=new bi;onBlur=new bi;onClick=new bi;onCompositionEnd=new bi;onCompositionStart=new bi;onCompositionUpdate=new bi;onContextMenu=new bi;onCopy=new bi;onCut=new bi;onDblclick=new bi;onDrag=new bi;onDragDrop=new bi;onDragEnd=new bi;onDragGesture=new bi;onDragOver=new bi;onDrop=new bi;onFocus=new bi;onFocusIn=new bi;onFocusOut=new bi;onKeyDown=new bi;onKeyPress=new bi;onKeyUp=new bi;onMouseDown=new bi;onMouseEnter=new bi;onMouseLeave=new bi;onMouseMove=new bi;onMouseOut=new bi;onMouseOver=new bi;onMouseUp=new bi;onPaste=new bi;onSelectionChange=new bi;onActivate=new bi;onAddUndo=new bi;onBeforeAddUndo=new bi;onBeforeExecCommand=new bi;onBeforeGetContent=new bi;onBeforeRenderUI=new bi;onBeforeSetContent=new bi;onChange=new bi;onClearUndos=new bi;onDeactivate=new bi;onDirty=new bi;onExecCommand=new bi;onGetContent=new bi;onHide=new bi;onInit=new bi;onInput=new bi;onInitNgModel=new bi;onLoadContent=new bi;onNodeChange=new bi;onPostProcess=new bi;onPostRender=new bi;onPreInit=new bi;onPreProcess=new bi;onProgressState=new bi;onRedo=new bi;onRemove=new bi;onReset=new bi;onResizeEditor=new bi;onSaveContent=new bi;onSetAttrib=new bi;onObjectResizeStart=new bi;onObjectResized=new bi;onObjectSelected=new bi;onSetContent=new bi;onShow=new bi;onSubmit=new bi;onUndo=new bi;onVisualAid=new bi;static \u0275fac=function(n){return new(n||e)};static \u0275dir=md({type:e,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"},standalone:!1})}return e})(),DX=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],Hw=(e,o,t)=>cd(e,o).pipe(Rl(t)),Qsi=(e,o,t)=>{Ysi(e).forEach(i=>{let s=e[i];Hw(o,i.substring(2),t).subscribe(d=>{Zsi(s)&&e.ngZone.run(()=>s.emit({event:d,editor:o}))})})},Ysi=e=>{let o=EX(e.ignoreEvents,[]);return EX(e.allowedEvents,DX).filter(n=>DX.includes(n)&&!o.includes(n))},EX=(e,o)=>typeof e=="string"?e.split(",").map(t=>t.trim()):Array.isArray(e)?e:o,IX=0,Jsi=e=>{let t=new Date().getTime(),n=Math.floor(Math.random()*1e9);return IX++,e+"_"+n+IX+String(t)},OX=e=>typeof e<"u"&&e.tagName.toLowerCase()==="textarea",AX=e=>typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" "),Ksi=(e,o)=>AX(e).concat(AX(o)),Xsi=()=>{},FX=e=>e==null,Zsi=e=>e.observed||e.observers?.length>0,kX=(e,o)=>{typeof e.mode?.set=="function"?e.mode.set(o):"setMode"in e&&typeof e.setMode=="function"&&e.setMode(o)},BX=e=>e.options&&e.options.isRegistered("disabled"),eci=()=>e=>e.pipe(oF(),Mn(()=>{})),tci=()=>{let e=new Ra(null),o=e.pipe(Fc(Boolean),rf(([t,n])=>{let i=t.createElement("script");return i.referrerPolicy="origin",i.type="application/javascript",i.src=n,t.head.appendChild(i),cd(i,"load").pipe(eci())}),aF({bufferSize:1,refCount:!0}));return{load:(...t)=>(e.getValue()||e.next(t),o),reinitialize:()=>{e.next(null)}}},ici=tci(),_O=new u0("TINYMCE_SCRIPT_SRC"),nci={provide:jF,useExisting:lF(()=>Gw),multi:!0},Gw=(()=>{class e extends Wsi{cdRef;platformId;tinymceScriptSrc;cloudChannel="8";apiKey="no-api-key";licenseKey="gpl";init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set readonly(t){this._readonly=t,this._editor&&kX(this._editor,t?"readonly":"design")}get readonly(){return this._readonly}set disabled(t){this._disabled=t,this._editor&&(BX(this._editor)?this._editor.options.set("disabled",t??!1):kX(this._editor,t?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_readonly;_editor;onTouchedCallback=Xsi;onChangeCallback;destroy$=new Rr;constructor(t,n,i,s,d){super(),this.cdRef=i,this.platformId=s,this.tinymceScriptSrc=d,this._elementRef=t,this.ngZone=n}writeValue(t){this._editor&&this._editor.initialized?this._editor.setContent(FX(t)?"":t):this.initialValue=t===null?void 0:t}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t}ngAfterViewInit(){DF(this.platformId)&&(this.id=this.id||Jsi("tiny-angular"),this.inline=this.inline!==void 0?this.inline!==!1:!!this.init?.inline,this.createElement(),zw()!==null?this.initialise():this._element&&this._element.ownerDocument&&ici.load(this._element.ownerDocument,this.getScriptSrc()).pipe(Rl(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),zw()!==null&&zw().remove(this._editor)}createElement(){let t=typeof this.tagName=="string"?this.tagName:"div";if(this._element=document.createElement(this.inline?t:"textarea"),this._element){let n=document.getElementById(this.id);n&&n!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,OX(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{let t=qt(at({},this.init),{selector:void 0,target:this._element,inline:this.inline,disabled:this.disabled,readonly:this.readonly,license_key:this.licenseKey,plugins:Ksi(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:n=>{this._editor=n,Hw(n,"init",this.destroy$).subscribe(()=>{this.initEditor(n)}),Qsi(this,n,this.destroy$),this.init&&typeof this.init.setup=="function"&&this.init.setup(n),this.disabled===!0&&(BX(n)?this._editor.options.set("disabled",this.disabled):this._editor.mode.set("readonly"))}});OX(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{zw().init(t)})};getScriptSrc(){return FX(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(t){Hw(t,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),Hw(t,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(t))}),typeof this.initialValue=="string"&&this.ngZone.run(()=>{t.setContent(this.initialValue),t.getContent()!==this.initialValue&&this.emitOnChange(t),this.onInitNgModel!==void 0&&this.onInitNgModel.emit(t)})}emitOnChange(t){this.onChangeCallback&&this.onChangeCallback(t.getContent({format:this.outputFormat}))}static \u0275fac=function(n){return new(n||e)(Zo(lf),Zo(pd),Zo(es),Zo(dF),Zo(_O,8))};static \u0275cmp=me({type:e,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",readonly:"readonly",disabled:"disabled"},features:[vg([nci]),_g],decls:0,vars:0,template:function(n,i){},dependencies:[ue,ec],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return e})(),jw=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({imports:[Gw]})}return e})();var aci=()=>[10,25,50,100],rci=()=>["create"],lci=e=>[e];function sci(e,o){e&1&&(l(0,"button",16),b(1,"fa-icon",17),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,rci)),a(2),v(" ",m(3,2,"labels.buttons.Create Template")," "))}function cci(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function pci(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entity)}}function mci(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function dci(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.type)}}function uci(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function fci(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function hci(e,o){e&1&&b(0,"tr",20)}function gci(e,o){if(e&1&&b(0,"tr",21),e&2){let t=o.$implicit;g("routerLink",Nt(1,lci,t.id))}}var $w=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["entity","type","name"],this.route.data.subscribe(t=>{this.templatesData=t.templates})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTemplates()}setTemplates(){this.dataSource=new Wt(this.templatesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-templates"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:23,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,sci,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,cci,3,3,"th",9)(13,pci,2,1,"td",10),Z(),X(14,11),F(15,mci,3,3,"th",9)(16,dci,2,1,"td",10),Z(),X(17,12),F(18,uci,3,3,"th",9)(19,fci,2,1,"td",10),Z(),F(20,hci,1,0,"tr",13)(21,gci,1,3,"tr",14),r(),b(22,"mat-paginator",15),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TEMPLATE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,aci)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Cs=(()=>{class e{constructor(){this.http=T(ko)}getTemplates(){return this.http.get("/templates")}getTemplate(t){return this.http.get(`/templates/${t}`)}getCreateTemplateData(){return this.http.get("/templates/template")}getEditTemplateData(t){return this.http.get(`/templates/${t}/template`)}createTemplate(t){return this.http.post("/templates",t)}updateTemplate(t,n){return this.http.put(`/templates/${n}`,t)}deleteTemplate(t){return this.http.delete(`/templates/${t}`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var _ci=()=>["edit"];function Cci(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,_ci)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function vci(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",11),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}var Uw=(()=>{class e{constructor(){this.route=T(Ie),this.templatesService=T(Cs),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.templateData=t.template})}delete(){this.dialog.open(vi,{data:{deleteContext:`template ${this.templateData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.templatesService.deleteTemplate(this.templateData.id).subscribe(()=>{this.router.navigate(["/templates"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-template"]],decls:26,vars:18,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"flex-50",3,"innerHTML"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Cci,4,5,"button",1)(2,vci,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r(),l(22,"div",5),c(23),p(24,"translate"),r(),b(25,"div",7),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TEMPLATE"),a(),g("mifosxHasPermission","DELETE_TEMPLATE"),a(6),v(" ",m(9,10,"labels.inputs.name")," "),a(3),v(" ",i.templateData.name," "),a(2),v(" ",m(14,12,"labels.inputs.Entity")," "),a(3),v(" ",i.templateData.entity," "),a(2),v(" ",m(19,14,"labels.inputs.Type")," "),a(3),v(" ",i.templateData.type," "),a(2),v(" ",m(24,16,"labels.inputs.Text")," "),a(2),g("innerHTML",i.templateData.text,fF))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var RX=["{{client.accountNo}}","{{client.status.value}}","{{client.fullname}}","{{client.displayName}}","{{client.officeName}}","{{#client.groups}}","{{/client.groups}}"],NX=["{{loan.accountNo}}","{{loan.status.value}}","{{loan.loanProductId}}","{{loan.loanProductName}}","{{loan.loanProductDescription}}"],LX=["{{loan.repaymentSchedule.loanTermInDays}}","{{loan.repaymentSchedule.totalPrincipalDisbursed}}","{{loan.repaymentSchedule.totalPrincipalExpected}}","{{loan.repaymentSchedule.totalPrincipalPaid}}","{{loan.repaymentSchedule.totalInterestCharged}}","{{loan.repaymentSchedule.totalFeeChargesCharged}}","{{loan.repaymentSchedule.totalPenaltyChargesCharged}}","{{loan.repaymentSchedule.totalWaived}}","{{loan.repaymentSchedule.totalWrittenOff}}","{{loan.repaymentSchedule.totalRepaymentExpected}}","{{loan.repaymentSchedule.totalRepayment}}","{{loan.repaymentSchedule.totalPaidInAdvance}}","{{loan.repaymentSchedule.totalPaidLate}}","{{loan.repaymentSchedule.totalOutstanding}}"];var xci=["tinymceEditor"],bci=()=>["../"];function yci(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Sci(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Entity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wci(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Pci(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tci(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mci(e,o){if(e&1){let t=Y();l(0,"button",26),R("click",function(){V(t);let i=w(3);return q(i.addMapper())}),b(1,"fa-icon",27),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Add")," "))}function Dci(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(){V(t);let i=w().$index,s=w(2);return q(s.removeMapper(i))}),b(1,"fa-icon",29),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Remove")," "))}function Eci(e,o){if(e&1&&(l(0,"div",21)(1,"mat-form-field",5)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",22),r(),l(6,"mat-form-field",23)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",22),r(),E(11,Mci,4,3,"button",24),E(12,Dci,4,3,"button",25),r()),e&2){let t=o.$implicit,n=o.$index;a(3),h(m(4,6,"labels.inputs.Mapper Key")),a(2),g("formControl",t.mapperskey),a(3),h(m(9,8,"labels.inputs.Mapper Value")),a(2),g("formControl",t.mappersvalue),a(),I(n===0?11:-1),a(),I(n!==0?12:-1)}}function Ici(e,o){if(e&1&&(X(0,12),Se(1,Eci,13,10,"div",21,dd().trackByMapperIndex,!0),Z()),e&2){let t=w();a(),we(t.mappers)}}function Oci(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}function Aci(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),p(4,"translate"),r()(),l(5,"div",30),Se(6,Oci,2,1,"button",31,dd().trackByLabel,!0),r()()),e&2){let t=w();a(3),v(" ",m(4,1,"labels.inputs.Client Parameters")," "),a(3),we(t.clientParameterLabels)}}function Fci(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}function kci(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),p(4,"translate"),r()(),l(5,"div",30),Se(6,Fci,2,1,"button",31,dd().trackByLabel,!0),r()()),e&2){let t=w();a(3),v(" ",m(4,1,"labels.inputs.Loan Parameters")," "),a(3),we(t.loanParameterLabels)}}function Bci(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}function Rci(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),p(4,"translate"),r()(),l(5,"div",30),Se(6,Bci,2,1,"button",31,dd().trackByLabel,!0),r()()),e&2){let t=w();a(3),v(" ",m(4,1,"labels.inputs.Repayment Schedule Parameters")," "),a(3),we(t.repaymentParameterLabels)}}var yh=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.templateService=T(Cs),this.tinymceConfig={base_url:"assets/tinymce",suffix:".min",menubar:!1,branding:!1,height:320,forced_root_block:!1,statusbar:!1,elementpath:!1,resize:!1,plugins:"lists link table media codesample",toolbar:"undo redo | blocks | bold italic underline | link | numlist bullist outdent indent | alignleft aligncenter alignright alignjustify | table media | removeformat"},this.mappers=[],this.showAdvanceOptions=!1,this.clientParameterLabels=RX,this.loanParameterLabels=NX,this.repaymentParameterLabels=LX,this.route.data.subscribe(t=>{this.templateData=t.templateData,this.mode=t.mode,this.mode==="edit"&&(this.mappers=this.templateData.template.mappers.map(n=>({mappersorder:n.mapperorder,mapperskey:new it(n.mapperkey),mappersvalue:new it(n.mappervalue)})))})}ngOnInit(){this.createTemplateForm(),this.buildDependencies()}createTemplateForm(){this.mode==="create"?this.templateForm=this.formBuilder.group({entity:["",ce.required],type:["",ce.required],name:["",ce.required],text:["",ce.required]}):this.templateForm=this.formBuilder.group({entity:[this.templateData.entities.find(t=>t.name===this.templateData.template.entity).id,ce.required],type:[this.templateData.types.find(t=>t.name===this.templateData.template.type).id,ce.required],name:[this.templateData.template.name,ce.required],text:[this.templateData.template.text,ce.required]})}buildDependencies(){let t="default";this.templateForm.get("entity").valueChanges.subscribe(n=>{n===0?this.mappers.splice(0,1,{mappersorder:0,mapperskey:new it("client"),mappersvalue:new it("clients/{{clientId}}?tenantIdentifier="+t)}):this.mappers.splice(0,1,{mappersorder:0,mapperskey:new it("loan"),mappersvalue:new it("loans/{{loanId}}?associations=all&tenantIdentifier="+t)}),this.setEditorContent(""),this.templateForm.get("text").setValue("")}),this.mode==="create"&&this.templateForm.get("entity").patchValue(0)}addMapper(){this.mappers.push({mappersorder:this.mappers.length,mapperskey:new it(""),mappersvalue:new it("")})}removeMapper(t){this.mappers.splice(t,1)}addText(t){this.tinymceEditor?.editor?.insertContent(t)}getEditorContent(){return this.tinymceEditor?.editor?.getContent({format:"html"})||""}setEditorContent(t){return this.tinymceEditor?.editor&&this.tinymceEditor.editor.setContent(t||""),""}submit(){let t=qt(at({},this.templateForm.value),{mappers:this.mappers.map(n=>({mappersorder:n.mappersorder,mapperskey:n.mapperskey.value,mappersvalue:n.mappersvalue.value})),text:this.getEditorContent()});this.mode==="create"?this.templateService.createTemplate(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})}):this.templateService.updateTemplate(t,this.templateData.template.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}trackByMapperIndex(t){return t}trackByLabel(t,n){return n}trackByEntityId(t,n){return n.id}trackByTypeId(t,n){return n.id}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-edit-template"]],viewQuery:function(n,i){if(n&1&&Ee(xci,5),n&2){let s;Te(s=Me())&&(i.tinymceEditor=s.first)}},features:[vg([{provide:_O,useValue:"assets/tinymce/tinymce.min.js"}])],decls:55,vars:35,consts:[["tinymceEditor",""],[1,"container"],[1,"layout-column","gap-2percent"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","entity"],[3,"value"],["required","","formControlName","type"],["matInput","","required","","formControlName","name"],["role","toggle",1,"advanced-options-wrapper"],["mat-raised-button","","color","primary",3,"click"],["role","mappers"],["role","editor",1,"editor-wrapper"],["for","template-text-editor",1,"required-label","required-label-editor"],[1,"required-asterisk"],["id","template-text-editor","licenseKey","gpl",3,"init","initialValue","formControl"],["role","template-parameters"],[1,"m-b-20","layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"mapper-row","layout-row","gap-2percent"],["matInput","",3,"formControl"],[1,"flex-fill","flex-38"],["mat-raised-button","","color","primary",1,"mapper-button","flex-8"],["mat-raised-button","","color","primary",1,"mapper-button","flex-9"],["mat-raised-button","","color","primary",1,"mapper-button","flex-8",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",1,"mapper-button","flex-9",3,"click"],["icon","minus",1,"m-r-10"],[1,"layout-row-wrap","layout-xs-column","layout-align-center"],["mat-stroked-button","","color","primary",1,"parameter"],["mat-stroked-button","","color","primary",1,"parameter",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card",2)(2,"form",3)(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",6),Se(10,yci,2,2,"mat-option",7,i.trackByEntityId,!0),r(),E(12,Sci,7,9,"mat-error"),r(),l(13,"mat-form-field",5)(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",8),Se(18,wci,2,2,"mat-option",7,i.trackByTypeId,!0),r(),E(20,Pci,7,9,"mat-error"),r(),l(21,"mat-form-field",5)(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",9),E(26,Tci,7,9,"mat-error"),r()()()(),l(27,"mat-card-content")(28,"div",10)(29,"button",11),R("click",function(){return V(s),q(i.showAdvanceOptions=!i.showAdvanceOptions)}),c(30),p(31,"translate"),r()(),E(32,Ici,3,0,"ng-container",12),r(),l(33,"mat-card-content")(34,"div",13)(35,"label",14),c(36),p(37,"translate"),l(38,"span",15),c(39,"*"),r()(),b(40,"editor",16,0),r()(),l(42,"mat-card-content")(43,"div",17)(44,"mat-accordion"),E(45,Aci,8,3,"mat-expansion-panel"),E(46,kci,8,3,"mat-expansion-panel"),E(47,Rci,8,3,"mat-expansion-panel"),r()()(),l(48,"mat-card-actions",18)(49,"button",19),c(50),p(51,"translate"),r(),l(52,"button",20),R("click",function(){return V(s),q(i.submit())}),c(53),p(54,"translate"),r()()()()}n&2&&(a(2),g("formGroup",i.templateForm),a(5),h(m(8,20,"labels.inputs.Entity")),a(3),we(i.templateData.entities),a(2),I(i.templateForm.controls.entity.hasError("required")?12:-1),a(3),h(m(16,22,"labels.inputs.Type")),a(3),we(i.templateData.types),a(2),I(i.templateForm.controls.type.hasError("required")?20:-1),a(3),h(m(24,24,"labels.inputs.name")),a(3),I(i.templateForm.controls.name.hasError("required")?26:-1),a(4),v(" ",m(31,26,"labels.buttons.Advanced Options")," "),a(2),I(i.showAdvanceOptions?32:-1),a(4),v(" ",m(37,28,"labels.inputs.Text")," "),a(4),g("init",i.tinymceConfig)("initialValue",(i.templateData.template==null?null:i.templateData.template.text)||"")("formControl",i.templateForm.controls.text),a(5),I(i.templateForm.controls.entity.value===0?45:-1),a(),I(i.templateForm.controls.entity.value===1?46:-1),a(),I(i.templateForm.controls.entity.value===1?47:-1),a(2),g("routerLink",oe(34,bci)),a(),h(m(51,30,"labels.buttons.Cancel")),a(2),g("disabled",!i.templateForm.valid),a(),v(" ",m(54,32,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,ke,jw,Gw,Dr,Pr,Tr,Mr,he],styles:[".advanced-options-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.mapper-row[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:8px}.mapper-row[_ngcontent-%COMP%] .mapper-button[_ngcontent-%COMP%]{margin-left:8px}.editor-wrapper[_ngcontent-%COMP%]{margin-top:16px}.editor-wrapper[_ngcontent-%COMP%] .required-label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;font-size:14px;font-weight:500}.editor-wrapper[_ngcontent-%COMP%] .required-asterisk[_ngcontent-%COMP%]{color:#f44336}.editor-wrapper[_ngcontent-%COMP%] .ck-editor{margin:0}.editor-wrapper[_ngcontent-%COMP%] .ck-editor .ck-editor__main .ck-content{min-height:200px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]})}}return e})();var CO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(){return this.templatesService.getTemplates()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var vO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(t){let n=t.paramMap.get("id");return this.templatesService.getTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var xO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(t){let n=t.paramMap.get("id");return this.templatesService.getEditTemplateData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var bO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(){return this.templatesService.getCreateTemplateData()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Nci=[_o.withShell([{path:"templates",data:{title:"Templates",breadcrumb:"Templates"},children:[{path:"",component:$w,resolve:{templates:CO}},{path:"create",component:yh,data:{mode:"create",breadcrumb:"Create Template"},resolve:{templateData:bO}},{path:":id",data:{title:"View Template",routeParamBreadcrumb:"id"},children:[{path:"",component:Uw,resolve:{template:vO}},{path:"edit",component:yh,data:{mode:"edit",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{templateData:xO}}]}]}])],VX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[CO,vO,xO,bO],imports:[gn.forChild(Nci),gn]})}}return e})();var qX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[jw,oo,Er,VX,$w,Uw,yh]})}}return e})();var Lci=["buttonCreateUser"],Vci=["templateButtonCreateUser"],qci=["usersTable"],zci=["templateUsersTable"],Hci=()=>["create"],Gci=()=>[10,25,50,100],jci=e=>[e];function $ci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.First Name")))}function Uci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.firstname)}}function Wci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Name")))}function Qci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lastname)}}function Yci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Email")))}function Jci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.email)}}function Kci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function Xci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function Zci(e,o){e&1&&b(0,"tr",27)}function epi(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,jci,t.id))}}function tpi(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create User")),a(3),v("",m(5,7,"labels.text.This option allows you to create new users in your organization"),"."),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function ipi(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(34);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(16),u=ve(38);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Search bar to filter users"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function npi(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.List of Users with their details"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var Ww=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["firstname","lastname","email","officeName"],this.route.data.subscribe(t=>{this.usersData=t.users})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setUsers()}setUsers(){this.dataSource=new Wt(this.usersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList===!0&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-users"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(Lci,5),Ee(Vci,5),Ee(qci,5),Ee(zci,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateUser=s.first),Te(s=Me())&&(i.templateButtonCreateUser=s.first),Te(s=Me())&&(i.usersTable=s.first),Te(s=Me())&&(i.templateUsersTable=s.first)}},decls:39,vars:13,consts:[["buttonCreateUser",""],["filter",""],["usersTable",""],["templateButtonCreateUser",""],["templateFilter",""],["templateUsersTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0)(3,"button",8),b(4,"fa-icon",9),c(5),p(6,"translate"),r()()(),l(7,"div",10)(8,"div",11,1)(10,"mat-form-field",12)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",13),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(15,"div",14,2)(17,"table",15),X(18,16),F(19,$ci,3,3,"th",17)(20,Uci,2,1,"td",18),Z(),X(21,19),F(22,Wci,3,3,"th",17)(23,Qci,2,1,"td",18),Z(),X(24,20),F(25,Yci,3,3,"th",17)(26,Jci,2,1,"td",18),Z(),X(27,21),F(28,Kci,3,3,"th",17)(29,Xci,2,1,"td",18),Z(),F(30,Zci,1,0,"tr",22)(31,epi,1,3,"tr",23),r(),b(32,"mat-paginator",24),r()(),F(33,tpi,16,15,"ng-template",null,3,ti)(35,ipi,13,12,"ng-template",null,4,ti)(37,npi,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("routerLink",oe(11,Hci)),a(2),v(" ",m(6,7,"labels.buttons.Create User")," "),a(7),h(m(13,9,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,Gci)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Xr=(()=>{class e{constructor(){this.http=T(ko)}getUsers(){return this.http.get("/users")}getUsersTemplate(){return this.http.get("/users/template")}createUser(t){return this.http.post("/users",t)}editUser(t,n){return this.http.put(`/users/${t}`,n)}getUser(t){return this.http.get(`/users/${t}`)}changePassword(t,n){return this.http.put(`/users/${t}`,n)}deleteUser(t){return this.http.delete(`/users/${t}`)}getStaff(t){let n=new rn().set("officeId",t.toString()).set("status","all");return this.http.get("/staff",{params:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var opi=["userFormRef"],api=["templateUserFormRef"],rpi=()=>["../"];function lpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function spi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function cpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ppi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.First Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function mpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Last Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function upi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function gpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should not be more than")," "),a(3),h(m(5,4,"labels.commons.50 characters long")))}function _pi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),l(8,"strong"),c(9),p(10,"translate"),r(),c(11," ,"),l(12,"strong"),c(13),p(14,"translate"),r()()),e&2&&(a(),v(" ",m(2,5,"labels.commons.Password should include a")," "),a(3),h(m(5,7,"labels.commons.numeral")),a(2),v(" ",m(7,9,"labels.commons.and at")," "),a(3),h(m(10,11,"labels.commons.least one uppercase")),a(4),h(m(14,13,"labels.commons.lowercase and special character")))}function Cpi(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",22),E(5,fpi,7,9,"mat-error"),E(6,hpi,6,6,"mat-error"),E(7,gpi,6,6,"mat-error"),E(8,_pi,15,15,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Password")),a(3),I(t.userForm.controls.password.hasError("required")?5:-1),a(),I(t.userForm.controls.password.hasError("minlength")?6:-1),a(),I(t.userForm.controls.password.hasError("maxlength")?7:-1),a(),I(t.userForm.controls.password.hasError("pattern")&&!(t.userForm.controls.password.hasError("minlength")||t.userForm.controls.password.hasError("maxlength"))?8:-1)}}function vpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xpi(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",23),E(5,vpi,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeat Password")),a(3),I(t.userForm.controls.repeatPassword.hasError("required")?5:-1)}}function bpi(e,o){e&1&&(l(0,"p",14),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Passwords")," "),a(3),h(m(5,4,"labels.commons.do not match")))}function ypi(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Spi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wpi(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Ppi(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Tpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one role")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function Mpi(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",24),c(4),p(5,"translate"),l(6,"a",25),c(7),p(8,"translate"),r()(),l(9,"div",26)(10,"button",27),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",28),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",28),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",28),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create User")),a(3),v(" ",m(5,9,"labels.text.Filling Details"),": "),a(3),h(m(8,11,"labels.inputs.Users")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create User")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var Qw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.usersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.passwordsUtility=T(S0),this.route.data.subscribe(t=>{this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",ce.required],email:["",[ce.required,ce.email]],firstname:["",[ce.required,ce.pattern("(^[A-z]).*")]],lastname:["",[ce.required,ce.pattern("(^[A-z]).*")]],sendPasswordToEmail:[!0],passwordNeverExpires:[!1],officeId:["",ce.required],staffId:[""],roles:["",ce.required]},{validator:jp})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(t=>{this.staffData=[],this.usersService.getStaff(t).subscribe(n=>{this.staffData=n})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(t=>{t?(this.userForm.removeControl("password"),this.userForm.removeControl("repeatPassword"),this.userForm.get("email").setValidators([ce.required,ce.email])):(this.userForm.addControl("password",new it("",this.passwordsUtility.getPasswordValidators())),this.userForm.addControl("repeatPassword",new it("",[ce.required,this.passwordsUtility.confirmPassword("password")])),this.userForm.get("email").setValidators([ce.email])),this.userForm.get("email").updateValueAndValidity()})}submit(){let t=this.userForm.value;(this.userForm.value.staffId==null||this.userForm.value.staffId==="")&&delete t.staffId,this.usersService.createUser(t).subscribe(n=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"user"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):n.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(n,i){if(n&1&&(Ee(opi,5),Ee(api,5)),n&2){let s;Te(s=Me())&&(i.userFormRef=s.first),Te(s=Me())&&(i.templateUserFormRef=s.first)}},decls:76,vars:50,consts:[["userFormRef",""],["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],["matInput","","formControlName","email",3,"required"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","passwordNeverExpires"],[1,"send-password-to-email-wrapper","flex-48"],["labelPosition","before","formControlName","sendPasswordToEmail"],[1,"flex-98","reset-password-error"],["required","","formControlName","officeId"],[3,"value"],["formControlName","staffId"],["required","","formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","required","","type","password","formControlName","password"],["matInput","","required","","type","password","formControlName","repeatPassword"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4,0)(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",6),E(11,lpi,7,9,"mat-error"),r(),l(12,"mat-form-field",5)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",7),E(17,spi,7,9,"mat-error"),E(18,cpi,7,9,"mat-error"),r(),l(19,"mat-form-field",5)(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",8),E(24,ppi,6,6,"mat-error"),E(25,mpi,7,9,"mat-error"),r(),l(26,"mat-form-field",5)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",9),E(31,dpi,6,6,"mat-error"),E(32,upi,7,9,"mat-error"),r(),l(33,"div",10)(34,"mat-checkbox",11),c(35),p(36,"translate"),r()(),l(37,"div",12)(38,"mat-checkbox",13),c(39),p(40,"translate"),r()(),E(41,Cpi,9,7,"mat-form-field",5),E(42,xpi,6,4,"mat-form-field",5),E(43,bpi,6,6,"p",14),l(44,"mat-form-field",5)(45,"mat-label"),c(46),p(47,"translate"),r(),l(48,"mat-select",15),Se(49,ypi,2,2,"mat-option",16,Pe),r(),E(51,Spi,7,9,"mat-error"),r(),l(52,"mat-form-field",5)(53,"mat-label"),c(54),p(55,"translate"),r(),l(56,"mat-select",17),Se(57,wpi,2,2,"mat-option",16,Pe),r()(),l(59,"mat-form-field",5)(60,"mat-label"),c(61),p(62,"translate"),r(),l(63,"mat-select",18),Se(64,Ppi,2,2,"mat-option",16,Pe),r(),E(66,Tpi,6,6,"mat-error"),r()()(),l(67,"mat-card-actions",19)(68,"button",20),c(69),p(70,"translate"),r(),l(71,"button",21),c(72),p(73,"translate"),r()()()()(),F(74,Mpi,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.userForm),a(6),h(m(9,27,"labels.inputs.Username")),a(3),I(i.userForm.controls.username.hasError("required")?11:-1),a(3),h(m(15,29,"labels.inputs.Email")),a(2),g("required",i.userForm.controls.sendPasswordToEmail.value),a(),I(i.userForm.controls.email.hasError("email")?17:-1),a(),I(i.userForm.controls.email.hasError("required")?18:-1),a(3),h(m(22,31,"labels.inputs.First Name")),a(3),I(i.userForm.controls.firstname.hasError("pattern")?24:-1),a(),I(i.userForm.controls.firstname.hasError("required")?25:-1),a(3),h(m(29,33,"labels.inputs.Last Name")),a(3),I(i.userForm.controls.lastname.hasError("pattern")?31:-1),a(),I(i.userForm.controls.lastname.hasError("required")?32:-1),a(3),v(" ",m(36,35,"labels.inputs.Password never expires")," "),a(4),v(" ",m(40,37,"labels.inputs.Send password to email address")," "),a(2),I(i.userForm.controls.sendPasswordToEmail.value?-1:41),a(),I(i.userForm.controls.sendPasswordToEmail.value?-1:42),a(),I(i.userForm.errors!=null&&i.userForm.errors.passwordsDoNotMatch&&!i.userForm.controls.password.hasError("required")&&!i.userForm.controls.repeatPassword.hasError("required")?43:-1),a(3),h(m(47,39,"labels.inputs.Office")),a(3),we(i.officesData),a(2),I(i.userForm.controls.officeId.hasError("required")?51:-1),a(3),h(m(55,41,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(62,43,"labels.inputs.Roles")),a(3),we(i.rolesData),a(2),I(i.userForm.controls.roles.hasError("required")?66:-1),a(2),g("routerLink",oe(49,rpi)),a(),v(" ",m(70,45,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.userForm.valid),a(),v(" ",m(73,47,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var Dpi=()=>["edit"],Epi=()=>["../"];function Ipi(e,o){if(e&1&&(l(0,"div",9)(1,"div",10),c(2),p(3,"translate"),r(),l(4,"div",11),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Email")),a(3),h(t.userData.email)}}function Opi(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}var Yw=(()=>{class e{constructor(){this.usersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.userData=t.user})}delete(){this.dialog.open(vi,{data:{deleteContext:`user ${this.userData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.usersService.deleteUser(this.userData.id).subscribe(()=>{this.router.navigate(["/appusers"])})})}changeUserPassword(){this.dialog.open(Vg,{width:"440px"}).afterClosed().subscribe(n=>{if(n.password&&n.repeatPassword){let i=n.password,s=n.repeatPassword,d=this.userData.firstname,u={password:i,repeatPassword:s,firstname:d};this.usersService.changePassword(this.userData.id,u).subscribe(()=>{this.router.navigate(["/appusers"])})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-user"]],decls:53,vars:36,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","cog",1,"m-r-10"],[1,"container"],[1,"content-rows"],[1,"content-row"],[1,"label"],[1,"value"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile","back-button-container"],["type","button","mat-raised-button","","color","primary",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.delete()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r(),l(9,"button",5),R("click",function(){return i.changeUserPassword()}),b(10,"fa-icon",6),c(11),p(12,"translate"),r()(),l(13,"div",7)(14,"mat-card")(15,"mat-card-content")(16,"div",8)(17,"div",9)(18,"div",10),c(19),p(20,"translate"),r(),l(21,"div",11),c(22),r()(),l(23,"div",9)(24,"div",10),c(25),p(26,"translate"),r(),l(27,"div",11),c(28),r()(),l(29,"div",9)(30,"div",10),c(31),p(32,"translate"),r(),l(33,"div",11),c(34),r()(),E(35,Ipi,6,4,"div",9),l(36,"div",9)(37,"div",10),c(38),p(39,"translate"),r(),l(40,"div",11),c(41),r()(),l(42,"div",9)(43,"div",10),c(44),p(45,"translate"),r(),l(46,"div",11),Se(47,Opi,2,1,"span",null,Pe),r()()(),l(49,"div",12)(50,"button",13),c(51),p(52,"translate"),r()()()()()),n&2&&(a(),g("routerLink",oe(34,Dpi)),a(2),v(" ",m(4,16,"labels.buttons.Edit")," "),a(4),v(" ",m(8,18,"labels.buttons.Delete")," "),a(4),v(" ",m(12,20,"labels.buttons.Change Password")," "),a(8),h(m(20,22,"labels.inputs.Login Name")),a(3),h(i.userData.username),a(3),h(m(26,24,"labels.inputs.First Name")),a(3),h(i.userData.firstname),a(3),h(m(32,26,"labels.inputs.Last Name")),a(3),h(i.userData.lastname),a(),I(i.userData.email?35:-1),a(3),h(m(39,28,"labels.inputs.Office")),a(3),h(i.userData.officeName),a(3),h(m(45,30,"labels.inputs.Roles")),a(3),we(i.userData.selectedRoles),a(3),g("routerLink",oe(35,Epi)),a(),v(" ",m(52,32,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var Api=()=>["../"];function Fpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Bpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Rpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.First Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function Npi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Last Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function Vpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function qpi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function zpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Hpi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Gpi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function jpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one role")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}var Jw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.usersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.userData=t.user,this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles})}ngOnInit(){this.createEditUserForm(),this.officeChanged(this.userData.officeId)}createEditUserForm(){let t=this.userData.staff?this.userData.staff.id:null;this.editUserForm=this.formBuilder.group({username:[this.userData.username,ce.required],email:[this.userData.email,[ce.required,ce.email]],firstname:[this.userData.firstname,[ce.required,ce.pattern("(^[A-z]).*")]],lastname:[this.userData.lastname,[ce.required,ce.pattern("(^[A-z]).*")]],passwordNeverExpires:[this.userData.passwordNeverExpires],officeId:[this.userData.officeId,ce.required],staffId:[t],roles:[this.userData.selectedRoles.map(n=>n.id),ce.required]})}officeChanged(t){this.staffData=[],this.usersService.getStaff(t).subscribe(n=>{this.staffData=n})}submit(){let t=this.editUserForm.value;this.usersService.editUser(this.userData.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-user"]],decls:66,vars:43,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","username"],["matInput","","required","","formControlName","email"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","passwordNeverExpires"],["required","","formControlName","officeId",3,"selectionChange"],[3,"value"],["formControlName","staffId"],["required","","formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,Fpi,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,kpi,7,9,"mat-error"),E(17,Bpi,7,9,"mat-error"),r(),l(18,"mat-form-field",3)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),E(23,Rpi,6,6,"mat-error"),E(24,Npi,7,9,"mat-error"),r(),l(25,"mat-form-field",3)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",7),E(30,Lpi,6,6,"mat-error"),E(31,Vpi,7,9,"mat-error"),r(),l(32,"div",8)(33,"mat-checkbox",9),c(34),p(35,"translate"),r()(),l(36,"mat-form-field",3)(37,"mat-label"),c(38),p(39,"translate"),r(),l(40,"mat-select",10),R("selectionChange",function(d){return i.officeChanged(d.value)}),Se(41,qpi,2,2,"mat-option",11,Pe),r(),E(43,zpi,7,9,"mat-error"),r(),l(44,"mat-form-field",3)(45,"mat-label"),c(46),p(47,"translate"),r(),l(48,"mat-select",12),Se(49,Hpi,2,2,"mat-option",11,Pe),r()(),l(51,"mat-form-field",3)(52,"mat-label"),c(53),p(54,"translate"),r(),l(55,"mat-select",13),Se(56,Gpi,2,2,"mat-option",11,Pe),r(),E(58,jpi,6,6,"mat-error"),r()()(),l(59,"mat-card-actions",14)(60,"button",15),c(61),p(62,"translate"),r(),l(63,"button",16),c(64),p(65,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.editUserForm),a(5),h(m(8,22,"labels.inputs.Username")),a(3),I(i.editUserForm.controls.username.hasError("required")?10:-1),a(3),h(m(14,24,"labels.inputs.Email")),a(3),I(i.editUserForm.controls.email.hasError("email")?16:-1),a(),I(i.editUserForm.controls.email.hasError("required")?17:-1),a(3),h(m(21,26,"labels.inputs.First Name")),a(3),I(i.editUserForm.controls.firstname.hasError("pattern")?23:-1),a(),I(i.editUserForm.controls.firstname.hasError("required")?24:-1),a(3),h(m(28,28,"labels.inputs.Last Name")),a(3),I(i.editUserForm.controls.lastname.hasError("pattern")?30:-1),a(),I(i.editUserForm.controls.lastname.hasError("required")?31:-1),a(3),v(" ",m(35,30,"labels.inputs.Password never expires")," "),a(4),h(m(39,32,"labels.inputs.Office")),a(3),we(i.officesData),a(2),I(i.editUserForm.controls.officeId.hasError("required")?43:-1),a(3),h(m(47,34,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(54,36,"labels.inputs.Roles")),a(3),we(i.rolesData),a(2),I(i.editUserForm.controls.roles.hasError("required")?58:-1),a(2),g("routerLink",oe(42,Api)),a(),v(" ",m(62,38,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editUserForm.valid),a(),v(" ",m(65,40,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var yO=(()=>{class e{constructor(){this.usersService=T(Xr)}resolve(){return this.usersService.getUsers()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Sh=(()=>{class e{constructor(){this.usersService=T(Xr)}resolve(){return this.usersService.getUsersTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Kw=(()=>{class e{constructor(){this.usersService=T(Xr)}resolve(t){let n=t.paramMap.get("id");return this.usersService.getUser(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var vs=(()=>{class e{constructor(){this.http=T(ko),this.autservice=T(Ia),this.api=un.OIDC.oidcApiUrl}createUser(t){return this.http.post(this.api+"authentication/user",t)}getExtraUserData(t){return this.http.get(`${this.api}authentication/user/db/${t}`)}assignRolesToUser(t,n){let i={userId:t,roleKeys:n.map(String)};return this.http.post(this.api+"authentication/user/role",i)}createUserBd(t){return this.http.post(this.api+"authentication/user/db",t)}getUsersTemplate(){return this.http.get("/users/template")}getUsers(){let t=this.autservice.getAccessToken();return af(fetch(`${this.api}authentication/user`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}})).pipe(rf(n=>n.json()),Mn(n=>{let i=[],s=n.object?.result;return Array.isArray(s)&&s.forEach(d=>{d.human&&i.push({id:d.id,firstname:d.human.profile.firstName,lastname:d.human.profile.lastName,email:d.human.email.email,officeName:"Head Office"})}),i}))}getUser(t){let n=`${this.api}authentication/user/${t}`;return af(fetch(n,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.autservice.getAccessToken()}`}})).pipe(rf(i=>i.json()),Mn(i=>i))}editUser(t){return this.http.put(this.api+"authentication/user",t)}editRoles(t){return this.http.put(this.api+"authentication/user/role",t)}editOffice(t){return this.http.put(this.api+"authentication/user/office",t)}getRoles(){return this.http.get(this.api+"authentication/role")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var SO=(()=>{class e{constructor(){this.usersServiceZitadel=T(vs)}resolve(){return this.usersServiceZitadel.getUsers()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var wO=(()=>{class e{constructor(){this.usersServiceZitadel=T(vs)}resolve(){return this.usersServiceZitadel.getUsersTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Xw=(()=>{class e{constructor(){this.usersServiceZitadel=T(vs)}resolve(t){let n=t.paramMap.get("id");return this.usersServiceZitadel.getUser(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Upi=["paginatorUsers"],Wpi=["sortUsers"],Qpi=["paginatorZitadel"],Ypi=["sortZitadel"],Jpi=["buttonCreateUser"],Kpi=["templateButtonCreateUser"],Xpi=["usersTable"],Zpi=["templateUsersTable"],emi=()=>["create"],tmi=()=>[10,25,50,100],imi=e=>[e];function nmi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.First Name")))}function omi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.firstname)}}function ami(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Name")))}function rmi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lastname)}}function lmi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Email")))}function smi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.email)}}function cmi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function pmi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function mmi(e,o){e&1&&b(0,"tr",25)}function dmi(e,o){if(e&1&&b(0,"tr",26),e&2){let t=o.$implicit;g("routerLink",Nt(1,imi,t.id))}}var Zw=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.usersData=[],this.usersZitadelData=[],this.displayedColumns=["firstname","lastname","email","officeName"],this.dataSource=new Wt,this.dataSourceZitadel=new Wt}ngOnInit(){this.route.data.subscribe(t=>{this.usersData=t.users||[],this.usersZitadelData=t.usersZitadel||[],this.dataSource=new Wt(this.usersData),this.dataSourceZitadel=new Wt(this.usersZitadelData),this.dataSource.paginator=this.paginatorUsers,this.dataSource.sort=this.sortUsers,this.dataSourceZitadel.paginator=this.paginatorZitadel,this.dataSourceZitadel.sort=this.sortZitadel})}applyFilter(t){let n=t.trim().toLowerCase();this.dataSource.filter=n,this.dataSourceZitadel.filter=n}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-users"]],viewQuery:function(n,i){if(n&1&&(Ee(Upi,7),Ee(Wpi,7),Ee(Qpi,7),Ee(Ypi,7),Ee(Jpi,5),Ee(Kpi,5),Ee(Xpi,5),Ee(Zpi,5)),n&2){let s;Te(s=Me())&&(i.paginatorUsers=s.first),Te(s=Me())&&(i.sortUsers=s.first),Te(s=Me())&&(i.paginatorZitadel=s.first),Te(s=Me())&&(i.sortZitadel=s.first),Te(s=Me())&&(i.buttonCreateUser=s.first),Te(s=Me())&&(i.templateButtonCreateUser=s.first),Te(s=Me())&&(i.usersTable=s.first),Te(s=Me())&&(i.templateUsersTable=s.first)}},decls:37,vars:16,consts:[["buttonCreateUser",""],["filter",""],["sortUsers","matSort"],["paginatorUsers",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container","container-margin"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"container","mat-elevation-z8","container-margin"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0)(3,"button",6),b(4,"fa-icon",7),c(5),p(6,"translate"),r()()(),l(7,"div",8)(8,"div",9,1)(10,"mat-form-field",10)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",11),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()()(),l(15,"div",12)(16,"h3"),c(17),p(18,"translate"),r(),l(19,"table",13,2),X(21,14),F(22,nmi,3,3,"th",15)(23,omi,2,1,"td",16),Z(),X(24,17),F(25,ami,3,3,"th",15)(26,rmi,2,1,"td",16),Z(),X(27,18),F(28,lmi,3,3,"th",15)(29,smi,2,1,"td",16),Z(),X(30,19),F(31,cmi,3,3,"th",15)(32,pmi,2,1,"td",16),Z(),F(33,mmi,1,0,"tr",20)(34,dmi,1,3,"tr",21),r(),b(35,"mat-paginator",22,3),r()}n&2&&(a(3),g("routerLink",oe(14,emi)),a(2),v(" ",m(6,8,"labels.buttons.Create User")," "),a(7),h(m(13,10,"labels.inputs.Filter")),a(5),h(m(18,12,"labels.heading.Users")),a(2),g("dataSource",i.dataSource),a(14),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(15,tmi)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Rg,ke,ck,kt,uk,It,ri,hk,_t,vt,St,xt,Ct,wt,bt,yt,Pt,Tt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.container-margin[_ngcontent-%COMP%]{margin-top:1rem}"]})}}return e})();var umi=e=>({minchar:e});function fmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Password Current Required")," "))}function hmi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,"labels.commons.Password validation",Nt(4,umi,t.minPasswordLength))," ")}}function gmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"inputs.passwordsDoNotMatch")," "))}var zX=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po),this.formBuilder=T(nt),this.http=T(ko),this.translateService=T(yi),this.minPasswordLength=un.minPasswordLength||12,this.api=un.OIDC.oidcApiUrl}ngOnInit(){this.createChangePasswordForm(),this.setupPasswordMatchValidation()}createChangePasswordForm(){this.changePasswordForm=this.formBuilder.group({currentPassword:["",ce.required],password:["",[ce.required,ce.minLength(this.minPasswordLength),ce.maxLength(50),ce.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)]],repeatPassword:["",ce.required]},{validators:jp})}setupPasswordMatchValidation(){this.changePasswordForm.get("password")?.valueChanges.subscribe(()=>{this.changePasswordForm.get("repeatPassword")?.updateValueAndValidity()}),this.changePasswordForm.get("repeatPassword")?.setValidators([ce.required,this.matchOtherControl("password")])}matchOtherControl(t){return n=>{let i=n?.parent;if(!i)return null;let s=i.get(t);return s?n.value===s.value?null:{notequal:!0}:null}}onSubmit(){if(this.changePasswordForm.invalid)return;let t={userId:this.data.id,currentPassword:this.changePasswordForm.value.currentPassword,newPassword:{password:this.changePasswordForm.value.password,changeRequired:!1}};this.http.put(this.api+"authentication/user/password",t).subscribe({next:n=>{this.dialogRef.close(!0)},error:n=>{try{let i=JSON.parse(n.error.message);i.code===3?alert(this.translateService.instant("labels.inputs.The current password is not correct")):i.code===9?alert(this.translateService.instant("labels.inputs.New password cannot be the same as your current password")):alert("Error: "+i.message)}catch{alert(this.translateService.instant("labels.inputs.Unable to update password"))}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-change-password-dialog"]],decls:30,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"layout-column",3,"ngSubmit","formGroup"],["appearance","fill",1,"full-width"],["matInput","","type","password","formControlName","currentPassword","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","repeatPassword","required",""],["align","center"],["mat-raised-button","","color","warn","type","button",3,"click"],["mat-raised-button","","color","primary","type","submit",3,"disabled"]],template:function(n,i){if(n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"form",2),R("ngSubmit",function(){return i.onSubmit()}),l(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,fmi,3,3,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,hmi,3,6,"mat-error"),r(),l(17,"mat-form-field",3)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",6),E(22,gmi,3,3,"mat-error"),r(),l(23,"mat-dialog-actions",7)(24,"button",8),R("click",function(){return i.dialogRef.close()}),c(25),p(26,"translate"),r(),l(27,"button",9),c(28),p(29,"translate"),r()()()()),n&2){let s,d,u;a(),h(m(2,11,"labels.heading.Change Password")),a(3),g("formGroup",i.changePasswordForm),a(3),h(m(8,13,"labels.inputs.Password Current")),a(3),I((s=i.changePasswordForm.get("currentPassword"))!=null&&s.hasError("required")?10:-1),a(3),h(m(14,15,"labels.inputs.Password New")),a(3),I((d=i.changePasswordForm.get("password"))!=null&&d.errors?16:-1),a(3),h(m(20,17,"labels.inputs.Repeat Password")),a(3),I((u=i.changePasswordForm.get("repeatPassword"))!=null&&u.hasError("notequal")?22:-1),a(3),v(" ",m(26,19,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.changePasswordForm.valid),a(),v(" ",m(29,21,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,xe,Nn,he],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return e})();var _mi=()=>["edit"],Cmi=()=>["../../"];function vmi(e,o){if(e&1){let t=Y();l(0,"div")(1,"button",14),R("click",function(){V(t);let i=w();return q(i.changeUserPassword(i.userData.id))}),b(2,"fa-icon",15),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Change Password")," "))}function xmi(e,o){if(e&1){let t=Y();l(0,"button",3),R("click",function(){V(t);let i=w();return q(i.desactiveUser(i.userData.id))}),b(1,"fa-icon",16),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Disable")," "))}function bmi(e,o){if(e&1){let t=Y();l(0,"button",14),R("click",function(){V(t);let i=w();return q(i.activeUser(i.userData.id))}),b(1,"fa-icon",17),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reactivate")," "))}function ymi(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",16),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Validate")," "))}function Smi(e,o){e&1&&(l(0,"div",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Email")," "))}function wmi(e,o){if(e&1&&(l(0,"div",11),c(1),r()),e&2){let t=w();a(),v(" ",t.userData.email," ")}}function Pmi(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}var eP=(()=>{class e{constructor(){this.usersService=T(vs),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.authService=T(Ia),this.route.data.subscribe(t=>{let n=t.user.object?.result?.[0],i={id:n.id,username:n.userName,firstname:n.human?.profile?.firstName,lastname:n.human?.profile?.lastName,officeName:"Head Office",officeId:n.user_uuid??null,availableRoles:n.availableRoles??"Admin",selectedRoles:n.selectedRoles??"Admin",isSelfServiceUser:n.state};this.userData=i})}delete(){this.dialog.open(vi,{data:{deleteContext:`user ${this.userData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.authService.deletUser(this.userData.id)})}changeUserPassword(t){this.dialog.open(zX,{width:"440px",data:{id:t}}).afterClosed().subscribe(i=>{if(i.password&&i.repeatPassword){let s=i.password,d=i.repeatPassword,u=this.userData.firstname,f={password:s,repeatPassword:d,firstname:u}}})}desactiveUser(t){this.authService.desactiveUser(t)}activeUser(t){this.authService.activeUser(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-user"]],decls:50,vars:36,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","warn"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","primary","disabled",""],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["icon","cog",1,"m-r-10"],["icon","ban",1,"m-r-10"],["icon","check",1,"m-r-10"]],template:function(n,i){if(n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.delete()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r(),E(9,vmi,5,3,"div"),l(10,"div"),E(11,xmi,4,3,"button",5)(12,bmi,4,3,"button",6)(13,ymi,4,3,"button",7),r()(),l(14,"div",8)(15,"mat-card")(16,"mat-card-content")(17,"div",9)(18,"div",10),c(19),p(20,"translate"),r(),l(21,"div",11),c(22),r(),l(23,"div",10),c(24),p(25,"translate"),r(),l(26,"div",11),c(27),r(),l(28,"div",10),c(29),p(30,"translate"),r(),l(31,"div",11),c(32),r(),E(33,Smi,3,3,"div",10),E(34,wmi,2,1,"div",11),l(35,"div",10),c(36),p(37,"translate"),r(),l(38,"div",11),c(39),r(),l(40,"div",10),c(41),p(42,"translate"),r(),l(43,"div",11),Se(44,Pmi,2,1,"span",null,Pe),r()(),l(46,"div",12)(47,"button",13),c(48),p(49,"translate"),r()()()()()),n&2){let s;a(),g("routerLink",oe(34,_mi)),a(2),v(" ",m(4,18,"labels.buttons.Edit")," "),a(4),v(" ",m(8,20,"labels.buttons.Delete")," "),a(2),I(i.userData.isSelfServiceUser==="USER_STATE_ACTIVE"||i.userData.isSelfServiceUser==="USER_STATE_INACTIVE"?9:-1),a(2),I((s=i.userData.isSelfServiceUser)==="USER_STATE_ACTIVE"?11:s==="USER_STATE_INACTIVE"?12:13),a(8),v(" ",m(20,22,"labels.inputs.Login Name")," "),a(3),v(" ",i.userData.username," "),a(2),v(" ",m(25,24,"labels.inputs.First Name")," "),a(3),v(" ",i.userData.firstname," "),a(2),v(" ",m(30,26,"labels.inputs.Last Name")," "),a(3),v(" ",i.userData.lastname," "),a(),I(i.userData.email?33:-1),a(),I(i.userData.email?34:-1),a(2),v(" ",m(37,28,"labels.inputs.Office")," "),a(3),v(" ",i.userData.officeName," "),a(2),v(" ",m(42,30,"labels.inputs.Roles")," "),a(3),we(i.userData.selectedRoles),a(3),g("routerLink",oe(35,Cmi)),a(),v(" ",m(49,32,"labels.buttons.Back")," ")}},dependencies:[ue,fe,Oe,Ue,Je,xe,Rg,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}"]})}}return e})();var tP=[{code:"+376",key:"AD"},{code:"+971",key:"AE"},{code:"+93",key:"AF"},{code:"+355",key:"AL"},{code:"+374",key:"AM"},{code:"+244",key:"AO"},{code:"+54",key:"AR"},{code:"+43",key:"AT"},{code:"+61",key:"AU"},{code:"+994",key:"AZ"},{code:"+387",key:"BA"},{code:"+880",key:"BD"},{code:"+32",key:"BE"},{code:"+359",key:"BG"},{code:"+226",key:"BF"},{code:"+257",key:"BI"},{code:"+973",key:"BH"},{code:"+591",key:"BO"},{code:"+55",key:"BR"},{code:"+375",key:"BY"},{code:"+1",key:"CA"},{code:"+237",key:"CM"},{code:"+56",key:"CL"},{code:"+86",key:"CN"},{code:"+57",key:"CO"},{code:"+506",key:"CR"},{code:"+53",key:"CU"},{code:"+357",key:"CY"},{code:"+420",key:"CZ"},{code:"+49",key:"DE"},{code:"+45",key:"DK"},{code:"+213",key:"DZ"},{code:"+20",key:"EG"},{code:"+503",key:"SV"},{code:"+372",key:"EE"},{code:"+34",key:"ES"},{code:"+251",key:"ET"},{code:"+358",key:"FI"},{code:"+33",key:"FR"},{code:"+44",key:"GB"},{code:"+995",key:"GE"},{code:"+233",key:"GH"},{code:"+30",key:"GR"},{code:"+502",key:"GT"},{code:"+504",key:"HN"},{code:"+385",key:"HR"},{code:"+36",key:"HU"},{code:"+62",key:"ID"},{code:"+91",key:"IN"},{code:"+353",key:"IE"},{code:"+972",key:"IL"},{code:"+964",key:"IQ"},{code:"+98",key:"IR"},{code:"+354",key:"IS"},{code:"+39",key:"IT"},{code:"+81",key:"JP"},{code:"+962",key:"JO"},{code:"+254",key:"KE"},{code:"+996",key:"KG"},{code:"+855",key:"KH"},{code:"+82",key:"KR"},{code:"+965",key:"KW"},{code:"+371",key:"LV"},{code:"+961",key:"LB"},{code:"+94",key:"LK"},{code:"+370",key:"LT"},{code:"+352",key:"LU"},{code:"+218",key:"LY"},{code:"+212",key:"MA"},{code:"+377",key:"MC"},{code:"+373",key:"MD"},{code:"+389",key:"MK"},{code:"+976",key:"MN"},{code:"+52",key:"MX"},{code:"+60",key:"MY"},{code:"+258",key:"MZ"},{code:"+234",key:"NG"},{code:"+505",key:"NI"},{code:"+31",key:"NL"},{code:"+47",key:"NO"},{code:"+977",key:"NP"},{code:"+64",key:"NZ"},{code:"+507",key:"PA"},{code:"+92",key:"PK"},{code:"+595",key:"PY"},{code:"+51",key:"PE"},{code:"+63",key:"PH"},{code:"+48",key:"PL"},{code:"+351",key:"PT"},{code:"+974",key:"QA"},{code:"+40",key:"RO"},{code:"+381",key:"RS"},{code:"+7",key:"RU"},{code:"+966",key:"SA"},{code:"+221",key:"SN"},{code:"+46",key:"SE"},{code:"+65",key:"SG"},{code:"+421",key:"SK"},{code:"+386",key:"SI"},{code:"+503",key:"SV"},{code:"+27",key:"ZA"},{code:"+41",key:"CH"},{code:"+886",key:"TW"},{code:"+66",key:"TH"},{code:"+90",key:"TR"},{code:"+380",key:"UA"},{code:"+256",key:"UG"},{code:"+1",key:"US"},{code:"+598",key:"UY"},{code:"+998",key:"UZ"},{code:"+58",key:"VE"},{code:"+84",key:"VN"},{code:"+967",key:"YE"},{code:"+260",key:"ZM"},{code:"+263",key:"ZW"}];var iP=[{code:"de",key:"de-DE",name:"German"},{code:"en",key:"en-US",name:"English"},{code:"es",key:"es-MX",name:"Espa\xF1ol"},{code:"fr",key:"fr-FR",name:"French"},{code:"it",key:"it-IT",name:"Italian"},{code:"ko",key:"ko-KO",name:"\uD55C\uAD6D\uC5B4"},{code:"pt",key:"pt-PT",name:"Portuguese"}];var Tmi=["userFormRef"],Mmi=["templateUserFormRef"],Dmi=()=>["../"];function Emi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Imi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Omi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ami(e,o){if(e&1&&(l(0,"mat-option",10),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",m(2,2,"languages."+t.key)," ")}}function Fmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),le(" ",m(2,3,"countries."+t.key)," (",t.code,") ")}}function kmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Bmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Rmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Nmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function Vmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should not be more than")," "),a(3),h(m(5,4,"labels.commons.50 characters long")))}function qmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),l(8,"strong"),c(9),p(10,"translate"),r(),c(11,", "),l(12,"strong"),c(13),p(14,"translate"),r()()),e&2&&(a(),v(" ",m(2,5,"labels.commons.Password should include a")," "),a(3),h(m(5,7,"labels.commons.numeral")),a(2),v(" ",m(7,9,"labels.commons.and at")," "),a(3),h(m(10,11,"labels.commons.least one uppercase")),a(4),h(m(14,13,"labels.commons.lowercase and special character")))}function zmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Hmi(e,o){e&1&&(l(0,"p",23),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Passwords")," "),a(3),h(m(5,4,"labels.commons.do not match")))}function Gmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function jmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one role")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function $mi(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),l(6,"a",29),c(7),p(8,"translate"),r()(),l(9,"div",30)(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create User")),a(3),v(" ",m(5,9,"labels.text.Filling Details"),": "),a(3),h(m(8,11,"labels.inputs.Users")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create User")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var nP=(()=>{class e{constructor(){this.formBuilder=T(nt),this.usersService=T(vs),this.usersService2=T(Xr),this.route=T(Ie),this.router=T(qe),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.passwordsUtility=T(S0),this.countryCodes=tP,this.languageCodes=iP,this.route.data.subscribe(t=>{this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",ce.required],email:["",[ce.required,ce.email]],firstName:["",ce.required],lastName:["",ce.required],preferredLanguage:["",ce.required],gender:["",ce.required],countryCode:["+1",ce.required],phoneNumber:["",[ce.required,ce.pattern(/^[0-9]{7,15}$/)]],password:["",[ce.required,ce.minLength(12),ce.maxLength(50),ce.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)]],repeatPassword:["",ce.required],roles:["",ce.required],officeId:["",ce.required],staffId:[""]},{validators:jp})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(t=>{this.staffData=[],this.usersService2.getStaff(t).subscribe(n=>{this.staffData=n})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(t=>{let n=this.userForm.get("password"),i=this.userForm.get("repeatPassword");t?(n.disable(),i.disable(),this.userForm.get("email")?.setValidators([ce.required,ce.email])):(n.enable(),i.enable(),this.userForm.get("email")?.setValidators([ce.email])),this.userForm.get("email")?.updateValueAndValidity()})}submit(){let t=this.userForm.value,n=`${t.countryCode}${t.phoneNumber}`,i=`${t.repeatPassword}`,s=`${t.firstName}`,d=`${t.lastName}`,u=`${t.username}`,f=qt(at({},t),{phone:n,password:i,givenName:s,familyName:d,nickName:u,displayName:`${t.firstName} ${t.lastName}`}),_={officeId:t.officeId,staffId:t.staffId},C=this.userForm.get("roles")?.value;delete f.officeId,delete f.staffId,delete f.roles,delete f.countryCode,delete f.phoneNumber,delete f.repeatPassword,delete f.firstName,delete f.lastName,this.usersService.createUser(f).subscribe(x=>{let y=x.object?.userId;if(y){let P={id:y,officeId:_.officeId,staffId:_.staffId,username:f.nickName,firstname:f.givenName,lastname:f.familyName,roleIds:C||[]};this.usersService.createUserBd(P).subscribe(S=>{C?.length>0?this.usersService.assignRolesToUser(y,C).subscribe(()=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["/appusers"])},M=>{console.error("Failed to assign roles to user:",M)}):console.warn("No roles were selected for this user.")},S=>{console.error("Failed to create user record in database:",S)})}else console.error("User creation failed: userId not returned by API.")})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"user"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):n.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(n,i){if(n&1&&(Ee(Tmi,5),Ee(Mmi,5)),n&2){let s;Te(s=Me())&&(i.userFormRef=s.first),Te(s=Me())&&(i.templateUserFormRef=s.first)}},decls:110,vars:69,consts:[["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],["matInput","","required","","formControlName","email"],["matInput","","formControlName","firstName","required",""],["matInput","","formControlName","lastName","required",""],["formControlName","preferredLanguage","required",""],[3,"value"],["formControlName","gender","required",""],["value","GENDER_MALE"],["value","GENDER_FEMALE"],["value","GENDER_OTHER"],[1,"flex","items-center","gap-2"],["formControlName","countryCode","required",""],["matInput","","formControlName","phoneNumber","required","","maxlength","12","minlength","4"],[1,"flex-20"],["required","","formControlName","officeId"],["formControlName","staffId"],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","repeatPassword","required",""],[1,"flex-98","reset-password-error"],["formControlName","roles","required","","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,Emi,7,9,"mat-error"),r(),l(11,"mat-form-field",4)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",6),E(16,Imi,7,9,"mat-error"),E(17,Omi,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",7),r(),l(23,"mat-form-field",4)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",8),r(),l(28,"mat-form-field",4)(29,"mat-label"),c(30),p(31,"translate"),r(),l(32,"mat-select",9),Se(33,Ami,3,4,"mat-option",10,Pe),r()(),l(35,"mat-form-field",4)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",11)(40,"mat-option",12),c(41),p(42,"translate"),r(),l(43,"mat-option",13),c(44),p(45,"translate"),r(),l(46,"mat-option",14),c(47),p(48,"translate"),r()()(),l(49,"div",15)(50,"mat-form-field",4)(51,"mat-label"),c(52),p(53,"translate"),r(),l(54,"mat-select",16),Se(55,Fmi,3,5,"mat-option",10,Pe),r()(),l(57,"mat-form-field",4)(58,"mat-label"),c(59),p(60,"translate"),r(),b(61,"input",17),r()(),l(62,"mat-form-field",18)(63,"mat-label"),c(64),p(65,"translate"),r(),l(66,"mat-select",19),Se(67,kmi,2,2,"mat-option",10,Pe),r(),E(69,Bmi,7,9,"mat-error"),r(),l(70,"mat-form-field",18)(71,"mat-label"),c(72),p(73,"translate"),r(),l(74,"mat-select",20),Se(75,Rmi,2,2,"mat-option",10,Pe),r()(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),b(81,"input",21),E(82,Nmi,7,9,"mat-error"),E(83,Lmi,6,6,"mat-error"),E(84,Vmi,6,6,"mat-error"),E(85,qmi,15,15,"mat-error"),r(),l(86,"mat-form-field",4)(87,"mat-label"),c(88),p(89,"translate"),r(),b(90,"input",22),E(91,zmi,7,9,"mat-error"),r(),E(92,Hmi,6,6,"p",23),l(93,"mat-form-field",18)(94,"mat-label"),c(95),p(96,"translate"),r(),l(97,"mat-select",24),Se(98,Gmi,2,2,"mat-option",10,Pe),r(),E(100,jmi,6,6,"mat-error"),r()()(),l(101,"mat-card-actions",25)(102,"button",26),c(103),p(104,"translate"),r(),l(105,"button",27),c(106),p(107,"translate"),r()()()()(),F(108,$mi,22,21,"ng-template",null,0,ti)}if(n&2){let s,d,u,f,_,C;a(2),g("formGroup",i.userForm),a(5),h(m(8,32,"labels.inputs.Username")),a(3),I(i.userForm.controls.username.hasError("required")?10:-1),a(3),h(m(14,34,"labels.inputs.Email")),a(3),I(i.userForm.controls.email.hasError("email")?16:-1),a(),I(i.userForm.controls.email.hasError("required")?17:-1),a(3),h(m(21,36,"labels.inputs.First Name")),a(5),h(m(26,38,"labels.inputs.Last Name")),a(5),h(m(31,40,"labels.inputs.Language")),a(3),we(i.languageCodes),a(4),h(m(38,42,"labels.inputs.Gender")),a(4),h(m(42,44,"labels.catalogs.male")),a(3),h(m(45,46,"labels.catalogs.female")),a(3),h(m(48,48,"labels.catalogs.other")),a(5),h(m(53,50,"labels.inputs.Code")),a(3),we(i.countryCodes),a(4),h(m(60,52,"labels.inputs.Phone Number")),a(5),h(m(65,54,"labels.inputs.Office")),a(3),we(i.officesData),a(2),I(i.userForm.controls.officeId.hasError("required")?69:-1),a(3),h(m(73,56,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(80,58,"labels.inputs.Password")),a(3),I((s=i.userForm.get("password"))!=null&&s.hasError("required")?82:-1),a(),I((d=i.userForm.get("password"))!=null&&d.hasError("minlength")?83:-1),a(),I((u=i.userForm.get("password"))!=null&&u.hasError("maxlength")?84:-1),a(),I((f=i.userForm.get("password"))!=null&&f.hasError("pattern")&&!((f=i.userForm.get("password"))!=null&&f.hasError("minlength"))&&!((f=i.userForm.get("password"))!=null&&f.hasError("maxlength"))?85:-1),a(3),h(m(89,60,"labels.inputs.Repeat Password")),a(3),I((_=i.userForm.get("repeatPassword"))!=null&&_.hasError("required")?91:-1),a(),I(i.userForm.errors!=null&&i.userForm.errors.passwordsDoNotMatch&&!((C=i.userForm.get("password"))!=null&&C.hasError("required"))&&!((C=i.userForm.get("repeatPassword"))!=null&&C.hasError("required"))?92:-1),a(3),h(m(96,62,"labels.inputs.Roles")),a(3),we(i.rolesData),a(2),I(i.userForm.controls.roles.hasError("required")?100:-1),a(2),g("routerLink",oe(68,Dmi)),a(),v(" ",m(104,64,"labels.buttons.Cancel")," "),a(2),g("disabled",i.userForm.invalid),a(),v(" ",m(107,66,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Bg,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var Umi=()=>["../"];function Wmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Qmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Ymi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Jmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.First Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function Kmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Last Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function Zmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function edi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),le(" ",m(2,3,"countries."+t.key)," (",t.code,") ")}}function tdi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",m(2,2,"languages."+t.key)," ")}}function idi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function ndi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function odi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function adi(e,o){if(e&1){let t=Y();l(0,"form",2),R("ngSubmit",function(){V(t);let i=w();return q(i.submit())}),l(1,"mat-card-content")(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",5),E(8,Wmi,7,9,"mat-error"),r(),l(9,"mat-form-field",4)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",6),E(14,Qmi,7,9,"mat-error"),E(15,Ymi,7,9,"mat-error"),r(),l(16,"mat-form-field",4)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",7),E(21,Jmi,6,6,"mat-error"),E(22,Kmi,7,9,"mat-error"),r(),l(23,"mat-form-field",4)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",8),E(28,Xmi,6,6,"mat-error"),E(29,Zmi,7,9,"mat-error"),r(),l(30,"mat-form-field",9)(31,"mat-label"),c(32),p(33,"translate"),r(),l(34,"mat-select",10),Se(35,edi,3,5,"mat-option",11,Pe),r()(),l(37,"mat-form-field",12)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",13),r(),l(42,"mat-form-field",4)(43,"mat-label"),c(44),p(45,"translate"),r(),l(46,"mat-select",14)(47,"mat-option",15),c(48),p(49,"translate"),r(),l(50,"mat-option",16),c(51),p(52,"translate"),r(),l(53,"mat-option",17),c(54),p(55,"translate"),r()()(),l(56,"mat-form-field",4)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",18),Se(61,tdi,3,4,"mat-option",11,Pe),r()(),l(63,"mat-form-field",4)(64,"mat-label"),c(65),p(66,"translate"),r(),l(67,"mat-select",19),R("selectionChange",function(i){V(t);let s=w();return q(s.officeChanged(i.value))}),Se(68,idi,2,2,"mat-option",11,Pe),r()(),l(70,"mat-form-field",4)(71,"mat-label"),c(72),p(73,"translate"),r(),l(74,"mat-select",20),Se(75,ndi,2,2,"mat-option",11,Pe),r()(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),l(81,"mat-select",21),Se(82,odi,2,2,"mat-option",11,Pe),r()(),l(84,"mat-card-actions",22)(85,"button",23),c(86),p(87,"translate"),r(),l(88,"button",24),c(89),p(90,"translate"),r()()()()()}if(e&2){let t=w();g("formGroup",t.editUserForm),a(5),h(m(6,25,"labels.inputs.Username")),a(3),I(t.editUserForm.controls.username.hasError("required")?8:-1),a(3),h(m(12,27,"labels.inputs.Email")),a(3),I(t.editUserForm.controls.email.hasError("email")?14:-1),a(),I(t.editUserForm.controls.email.hasError("required")?15:-1),a(3),h(m(19,29,"labels.inputs.First Name")),a(3),I(t.editUserForm.controls.firstname.hasError("pattern")?21:-1),a(),I(t.editUserForm.controls.firstname.hasError("required")?22:-1),a(3),h(m(26,31,"labels.inputs.Last Name")),a(3),I(t.editUserForm.controls.lastname.hasError("pattern")?28:-1),a(),I(t.editUserForm.controls.lastname.hasError("required")?29:-1),a(3),h(m(33,33,"labels.inputs.Code")),a(3),we(t.countryCodes),a(4),h(m(40,35,"labels.inputs.Phone Number")),a(5),h(m(45,37,"labels.inputs.Gender")),a(4),h(m(49,39,"labels.catalogs.male")),a(3),h(m(52,41,"labels.catalogs.female")),a(3),h(m(55,43,"labels.catalogs.other")),a(4),h(m(59,45,"labels.inputs.Language")),a(3),we(t.languageCodes),a(4),h(m(66,47,"labels.inputs.Office")),a(3),we(t.officesData),a(4),h(m(73,49,"labels.inputs.Staff")),a(3),we(t.staffData),a(4),h(m(80,51,"labels.inputs.Roles")),a(3),we(t.rolesData),a(3),g("routerLink",oe(57,Umi)),a(),v(" ",m(87,53,"labels.buttons.Cancel")," "),a(3),v(" ",m(90,55,"labels.buttons.Submit")," ")}}var oP=(()=>{class e{constructor(){this.formBuilder=T(nt),this.UsersServiceZitadel=T(vs),this.UsersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.countryCodes=tP,this.languageCodes=iP,this.route.data.subscribe(t=>{let n=t.user;this.userData=n.object?.result?.[0]||{},this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles,this.UsersServiceZitadel.getExtraUserData(this.userData.id).subscribe(i=>{let s=i.object;this.userData=qt(at({},this.userData),{userName:s.username_zitadel,officeId:s.office_id,staffId:s.staff_id,selectedRoles:s.roles||[]}),this.createEditUserForm(),this.officeChanged(this.userData.officeId),this.UsersServiceZitadel.getRoles().subscribe(d=>{let u=d.object?.result||[];this.rolesData=u.map(f=>({id:f.key,name:f.displayName}))})})})}ngOnInit(){}createEditUserForm(){let t=this.userData?.human?.profile??{},n=this.userData?.human?.email?.email||"",i=this.userData?.human?.phone?.phone||"",d="+1",u=i,f=t?.gender&&t.gender!==""?t.gender:"GENDER_MALE",_=t.preferredLanguage||"es";for(let C of this.countryCodes)if(i.startsWith(C.code)){d=C.code,u=i.replace(C.code,"");break}this.editUserForm=this.formBuilder.group({username:[this.userData.userName,ce.required],email:[n,[ce.required,ce.email]],firstname:[t.firstName||"",[ce.required,ce.pattern("(^[A-z]).*")]],lastname:[t.lastName||"",[ce.required,ce.pattern("(^[A-z]).*")]],countryCode:[d,ce.required],phoneNumber:[u,ce.required],gender:[f,ce.required],preferredLanguage:[_,ce.required],officeId:[this.userData.officeId,ce.required],staffId:[this.userData.staffId||null],roles:[this.userData.selectedRoles.map(C=>C.id.toString()),ce.required]})}officeChanged(t){if(!t){console.warn("No officeId provided to load staff.");return}this.staffData=[],this.UsersService.getStaff(t).subscribe(n=>{this.staffData=n})}submit(){let t=this.editUserForm.value,n=`${t.countryCode}${t.phoneNumber}`,i={userId:this.userData.id,email:{email:t.email,isVerified:!0},phone:{phone:n,isVerified:!0},profile:{username:t.username,givenName:t.firstname,familyName:t.lastname,displayName:`${t.firstname} ${t.lastname}`,nickName:t.firstname,preferredLanguage:t.preferredLanguage,gender:t.gender}},s={userId:this.userData.id,roleKeys:this.editUserForm.value.roles},d={userId:this.userData.id,officeId:t.officeId,staffId:t.staffId};this.UsersServiceZitadel.editUser(i).subscribe(),this.UsersServiceZitadel.editRoles(s).subscribe(),this.UsersServiceZitadel.editOffice(d).subscribe(u=>{this.router.navigate(["/appusers"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-user"]],decls:3,vars:1,consts:[[1,"container"],[3,"formGroup"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","username","readonline",""],["matInput","","required","","formControlName","email"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"flex-20"],["formControlName","countryCode","required",""],[3,"value"],[1,"flex-75"],["matInput","","formControlName","phoneNumber","required","","maxlength","12","minlength","4"],["formControlName","gender","required",""],["value","GENDER_MALE"],["value","GENDER_FEMALE"],["value","GENDER_OTHER"],["formControlName","preferredLanguage","required",""],["required","","formControlName","officeId",3,"selectionChange"],["formControlName","staffId"],["formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card"),E(2,adi,91,58,"form",1),r()()),n&2&&(a(2),I(i.editUserForm?2:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Bg,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var rdi=[{path:"",component:Ww,resolve:{users:yO}},{path:"create",component:Qw,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:Sh}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:Yw,resolve:{user:Kw}},{path:"edit",component:Jw,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:Kw,usersTemplate:Sh}}]}],ldi=[{path:"",component:Zw,resolve:{users:SO}},{path:"create",component:nP,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:Sh}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:eP,resolve:{user:Xw}},{path:"edit",component:oP,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:Xw,usersTemplate:wO}}]}],sdi=un.OIDC.oidcServerEnabled?ldi:rdi,cdi=[_o.withShell([{path:"appusers",data:{title:"Users",breadcrumb:"Users"},children:sdi}])],HX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[yO,Sh,Kw,SO,Xw,wO],imports:[gn.forChild(cdi),gn]})}}return e})();var GX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,HX,Ww,Qw,Yw,Jw,Zw,eP,oP,nP]})}}return e})();var pdi=()=>[10,25,50,100],mdi=e=>["/reports","run",e],ddi=(e,o)=>({type:e,id:o});function udi(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function fdi(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportName)}}function hdi(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function gdi(e,o){if(e&1&&(l(0,"td",15),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,"labels.text."+t.reportType))}}function _di(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function Cdi(e,o){if(e&1&&(l(0,"td",15),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,"labels.text."+t.reportCategory))}}function vdi(e,o){e&1&&b(0,"tr",16)}function xdi(e,o){if(e&1&&b(0,"tr",17),e&2){let t=o.$implicit;g("routerLink",Nt(2,mdi,t.reportName))("queryParams",Ja(4,ddi,t.reportType,t.id))}}var wh=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.displayedColumns=["reportName","reportType","reportCategory"],this.dataSource=new Wt,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.route.data.subscribe(t=>{this.reportsData=t.reports}),this.filter=this.route.snapshot.params.filter}ngOnInit(){this.setReports(),this.filterReportsByCategory()}applyFilter(t){t.length?(this.setCustomFilterPredicate(),this.dataSource.filter=t.trim().toLowerCase()):this.filterReportsByCategory()}setReports(){this.dataSource=new Wt(this.reportsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}filterReportsByCategory(){this.dataSource.filterPredicate=(t,n)=>t.reportCategory===n,this.dataSource.filter=this.filter}setCustomFilterPredicate(){this.dataSource.filterPredicate=(t,n)=>{let i=Object.keys(t).reduce(function(d,u){return d+t[u]+"\u25EC"},"").toLowerCase(),s=n.trim().toLowerCase();return this.filter?i.indexOf(s)!==-1&&t.reportCategory===this.filter:i.indexOf(s)!==-1}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reports"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:21,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","reportName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","reportType"],["matColumnDef","reportCategory"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink","queryParams",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink","queryParams"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"input",3),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(7,"div",4)(8,"table",5),X(9,6),F(10,udi,3,3,"th",7)(11,fdi,2,1,"td",8),Z(),X(12,9),F(13,hdi,3,3,"th",7)(14,gdi,3,3,"td",8),Z(),X(15,10),F(16,_di,3,3,"th",7)(17,Cdi,3,3,"td",8),Z(),F(18,vdi,1,0,"tr",11)(19,xdi,1,7,"tr",12),r(),b(20,"mat-paginator",13),r()()),n&2&&(a(4),h(m(5,5,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,pdi)))},dependencies:[ue,fe,Oe,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var UX=Ds(TO());var $X=Ds(TO());var bdi=()=>[100,200,300],ydi=()=>["../.."];function Sdi(e,o){if(e&1){let t=Y();l(0,"div",4)(1,"button",13),p(2,"translate"),R("click",function(){V(t);let i=w(2);return q(i.exportFile())}),c(3),p(4,"translate"),r(),l(5,"button",13),p(6,"translate"),R("click",function(){V(t);let i=w(2);return q(i.exportToXLS())}),c(7),p(8,"translate"),r()()}if(e&2){let t=w(2);a(),g("matToolTip",Le(m(2,8,"labels.text.Export the data to CSV file")))("disabled",t.notExistsReportData),a(2),v(" ",m(4,10,"labels.buttons.Export CSV")," "),a(2),g("matToolTip",Le(m(6,12,"labels.text.Export the data to XLS file")))("disabled",t.notExistsReportData),a(2),v(" ",m(8,14,"labels.buttons.Export XLS")," ")}}function wdi(e,o){if(e&1&&(l(0,"th",17),c(1),r()),e&2){let t=w().$implicit;a(),h(t)}}function Pdi(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit,n=w().$index,i=w(2);a(),h(i.toDecimal(t.row[n]))}}function Tdi(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit,n=w().$index;a(),h(t.row[n])}}function Mdi(e,o){if(e&1&&(l(0,"td",18),E(1,Pdi,2,1,"span"),E(2,Tdi,2,1,"span"),r()),e&2){let t=w().$index,n=w(2);a(),I(n.isDecimal(t)?1:-1),a(),I(n.isDecimal(t)?-1:2)}}function Ddi(e,o){if(e&1&&(l(0,"div"),X(1,14),F(2,wdi,2,1,"th",15)(3,Mdi,3,2,"td",16),Z(),r()),e&2){let t=o.$implicit;a(),g("matColumnDef",t)}}function Edi(e,o){e&1&&b(0,"tr",19)}function Idi(e,o){e&1&&b(0,"tr",20)}function Odi(e,o){if(e&1&&(l(0,"div"),E(1,Sdi,9,16,"div",4),l(2,"div",5)(3,"table",6),Se(4,Ddi,4,1,"div",null,Pe),F(6,Edi,1,0,"tr",7)(7,Idi,1,0,"tr",8),r(),b(8,"mat-paginator",9),r(),l(9,"div",10)(10,"div",11),b(11,"i",12),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(),I(t.dataObject.report.type==="Table"?1:-1),a(),g("hidden",t.notExistsReportData),a(),g("dataSource",t.dataSource),a(),we(t.displayedColumns),a(2),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(10,bdi)),a(),g("hidden",!t.notExistsReportData),a(3),v(" ",m(13,8,"labels.text.No report data was generated")," ")}}function Adi(e,o){e&1&&(l(0,"div",1)(1,"div",11),b(2,"i",12),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.The report request")," "))}function Fdi(e,o){e&1&&(l(0,"div",2),b(1,"div",21),r())}function kdi(e,o){e&1&&(l(0,"div",3)(1,"button",22),b(2,"fa-icon",23),c(3),p(4,"translate"),r()()),e&2&&(a(),g("routerLink",oe(4,ydi)),a(2),v("",m(4,2,"labels.buttons.Back")," "))}var aP=(()=>{class e{constructor(){this.reportsService=T(lr),this.dialog=T(Ht),this.decimalPipe=T(xp),this.progressBarService=T(sc),this.displayedColumns=[],this.dataSource=new Wt,this.columnTypes=[],this.hideOutput=!0,this.notExistsReportData=!1,this.toBeExportedToRepo=!1}ngOnChanges(){this.hideOutput=!0,this.columnTypes=[],this.displayedColumns=[],this.getRunReportData()}getRunReportData(){let t=this.dataObject.formData.exportS3;this.reportsService.getRunReportData(this.dataObject.report.name,this.dataObject.formData).subscribe(n=>{this.toBeExportedToRepo=t,this.toBeExportedToRepo||(this.csvData=n.data,this.notExistsReportData=n.data.length===0,this.setOutputTable(n.data),n.columnHeaders.forEach(i=>{this.columnTypes.push(i.columnDisplayType),this.displayedColumns.push(i.columnName)})),this.hideOutput=!1,this.progressBarService.decrease()})}setOutputTable(t){this.dataSource=new Wt(t),setTimeout(()=>{this.dataSource.paginator=this.paginator})}exportFile(){let t=[{name:"Comma (,)",char:","},{name:"Colon (:)",char:":"},{name:"SemiColon (;)",char:";"},{name:"Pipe (|)",char:"|"},{name:"Space ( )",char:" "}],n=`${this.dataObject.report.name}.csv`,i=[new $i({controlName:"delimiter",label:"Delimiter",value:un.defaultCharDelimiter,options:{label:"name",value:"char",data:t},required:!0,order:1}),new vn({controlName:"fileName",label:"File Name",value:n,type:"text",required:!0,order:2})],s={title:"Export data to File",layout:{addButtonText:"Export to File"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&this.downloadCSV(u.data.value.fileName,u.data.value.delimiter)})}exportToXLS(){let t=`${this.dataObject.report.name}.xlsx`,n=this.csvData.map(d=>{let u={};for(let f=0;f{s.addRow(this.displayedColumns.map(u=>d[u]))}),i.xlsx.writeBuffer().then(d=>{let u=new Blob([d],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),f=URL.createObjectURL(u),_=document.createElement("a");_.href=f,_.download="filename.xlsx",_.click(),URL.revokeObjectURL(f)})}downloadCSV(t,n){let i=this.displayedColumns,s=this.csvData.map(u=>u.row.join(n));s.unshift(`data:text/csv;charset=utf-8,${i.join(n)}`),s=s.join(`\r -`);let d=document.createElement("a");d.setAttribute("href",encodeURI(s)),d.setAttribute("download",t),document.body.appendChild(d),d.click(),document.body.removeChild(d)}toDecimal(t){let n=this.dataObject.decimalChoice;return this.decimalPipe.transform(t,`1.${n}-${n}`)}isDecimal(t){return this.columnTypes[t]==="DECIMAL"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-table-and-sms"]],viewQuery:function(n,i){if(n&1&&Ee(kt,5),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},inputs:{dataObject:"dataObject"},features:[Uo],decls:5,vars:4,consts:[[1,"container"],[1,"alert"],[1,"loader"],[1,"back-button"],["align","end",1,"m-b-10","gap-45px"],[1,"table-output",3,"hidden"],["id","report-table","mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["mat-raised-button","","color","primary",3,"click","disabled","matToolTip"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row"],[1,"loading"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),E(1,Odi,14,11,"div"),E(2,Adi,5,3,"div",1),E(3,Fdi,2,0,"div",2),E(4,kdi,5,5,"div",3),r()),n&2&&(a(),I(!i.hideOutput&&!i.toBeExportedToRepo?1:-1),a(),I(!i.hideOutput&&i.toBeExportedToRepo?2:-1),a(),I(i.hideOutput?3:-1),a(),I(i.hideOutput?-1:4))},dependencies:[ue,fe,Oe,xe,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,kt,ke,he],styles:[".table-output[_ngcontent-%COMP%]{overflow:auto}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-header-cell[_ngcontent-%COMP%], .mat-cell[_ngcontent-%COMP%]{min-width:150px;margin-left:5px;margin-right:5px}.back-button[_ngcontent-%COMP%]{text-align:center;margin-top:25px;max-height:2%;margin-bottom:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"]})}}return e})();var Bdi=e=>({display:e});Pl.register(...Gp);var rP=(()=>{class e{constructor(){this.reportsService=T(lr),this.hideOutput=!0}ngOnChanges(){this.getRunReportData()}getRunReportData(){this.reportsService.getChartRunReportData(this.dataObject.report.name,this.dataObject.formData).subscribe(t=>{this.inputData=t,this.setPieChart(this.inputData),this.hideOutput=!1})}setPieChart(t){this.chart&&this.chart.destroy(),this.chart=new Pl("output",{type:"pie",data:{labels:t.keys,datasets:[{label:t.valuesLabel,data:t.values,backgroundColor:this.randomColorArray(t.values.length)}]},options:{plugins:{title:{display:!0,text:t.keysLabel}}}})}setBarChart(t){this.chart&&this.chart.destroy(),this.chart=new Pl("output",{type:"bar",data:{labels:t.keys,datasets:[{label:t.valuesLabel,data:t.values,backgroundColor:this.randomColorArray(t.values.length)}]},options:{plugins:{legend:{display:!1}},scales:{x:{title:{display:!0,text:t.keysLabel}},y:{min:0}}}})}randomColorArray(t){let n=[];for(;t--;){let i=this.randomColor();n.push(i)}return n}randomColor(){let t=Math.floor(Math.random()*255),n=Math.floor(Math.random()*255),i=Math.floor(Math.random()*255);return`rgb(${t},${n},${i},0.6)`}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-chart"]],inputs:{dataObject:"dataObject"},features:[Uo],decls:10,vars:9,consts:[[1,"m-b-20","layout-align-end"],["aria-label","Select Chart Type"],["value","Bar",3,"click"],["value","Pie",3,"click"],[3,"ngStyle"],["id","output"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-button-toggle-group",1)(2,"mat-button-toggle",2),R("click",function(){return i.setBarChart(i.inputData)}),c(3),p(4,"translate"),r(),l(5,"mat-button-toggle",3),R("click",function(){return i.setPieChart(i.inputData)}),c(6),p(7,"translate"),r()()(),l(8,"div",4),b(9,"canvas",5),r()),n&2&&(a(3),h(m(4,3,"labels.buttons.Bar Chart")),a(3),h(m(7,5,"labels.buttons.Pie Chart")),a(2),g("ngStyle",Nt(7,Bdi,i.hideOutput?"none":"block")))},dependencies:[ue,is,fe,Mp,Dp,he],encapsulation:2})}}return e})();function Rdi(e,o){if(e&1&&Cg(0,"iframe",0),e&2){let t=w();xF("src",t.pentahoUrl,hg)}}var lP=(()=>{class e{constructor(){this.sanitizer=T(Zs),this.reportsService=T(lr),this.settingsService=T(Ot),this.progressBarService=T(sc),this.hideOutput=!0}ngOnChanges(){this.hideOutput=!0,this.getRunReportData()}getRunReportData(){this.reportsService.getPentahoRunReportData(this.dataObject.report.name,this.dataObject.formData,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(t=>{let n=t.headers.get("Content-Type"),i=new Blob([t.body],{type:n}),s=URL.createObjectURL(i);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(s),this.hideOutput=!1,this.progressBarService.decrease()})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-pentaho"]],inputs:{dataObject:"dataObject"},features:[Uo],decls:1,vars:1,consts:[["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(n,i){n&1&&E(0,Rdi,1,1,"iframe",0),n&2&&I(i.hideOutput?-1:0)},dependencies:[ue,fe],encapsulation:2})}}return e})();var Ndi=()=>["/reports"];function Ldi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Vdi(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),r(),b(3,"input",26),F(4,Ldi,6,7,"mat-error",2),r()),e&2){let t=w(2).$implicit,n=w(2);a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngIf",n.reportForm.controls[t.name].hasError("required"))}}function qdi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function zdi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,2,"labels.commons.must be after or equal to start date")," ")}}function Hdi(e,o){if(e&1){let t=Y();l(0,"mat-form-field",27),R("click",function(){V(t);let i=ve(6);return q(i.open())}),l(1,"mat-label"),c(2),r(),b(3,"input",28)(4,"mat-datepicker-toggle",29)(5,"mat-datepicker",null,0),F(7,qdi,6,7,"mat-error",2)(8,zdi,3,4,"mat-error",2),r()}if(e&2){let t=ve(6),n=w(2).$implicit,i=w(2);a(2),h(n.label),a(),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t)("formControlName",n.name),a(),g("for",t),a(3),g("ngIf",i.reportForm.controls[n.name].hasError("required")),a(),g("ngIf",i.reportForm.controls[n.name].hasError("endBeforeStart"))}}function Gdi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function jdi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function $di(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),r(),l(3,"mat-select",30),F(4,Gdi,2,2,"mat-option",31),r(),F(5,jdi,6,7,"mat-error",2),r()),e&2){let t=w(2).$implicit,n=w(2);a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngForOf",t.selectOptions),a(),g("ngIf",n.reportForm.controls[t.name].hasError("required"))}}function Udi(e,o){e&1&&(X(0,23),F(1,Vdi,5,3,"mat-form-field",24)(2,Hdi,9,8,"mat-form-field",25)(3,$di,6,4,"mat-form-field",24),Z()),e&2&&(a(),g("ngSwitchCase","text"),a(),g("ngSwitchCase","date"),a(),g("ngSwitchCase","select"))}function Wdi(e,o){if(e&1&&(X(0,21),F(1,Udi,4,3,"ng-container",22),Z()),e&2){let t=o.$implicit,n=w(2);g("ngSwitch",t.displayType),a(),g("ngIf",n.reportForm.contains(t.name))}}function Qdi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",m(2,2,"labels.inputs."+t.name)," ")}}function Ydi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.text.Report Output Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Jdi(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",33),F(5,Qdi,3,4,"mat-option",31),r(),F(6,Ydi,7,9,"mat-error",2),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.Output Type")),a(3),g("ngForOf",t.outputTypeOptions),a(),g("ngIf",t.reportForm.controls.outputType.hasError("required"))}}function Kdi(e,o){if(e&1&&(l(0,"div",34)(1,"mat-checkbox",35),c(2),p(3,"translate"),r()()),e&2){let t=w(2);a(2),le(" ",m(3,2,"labels.text.Export output data to S3 repository")," [",t.exportToS3Repository,"] ")}}function Xdi(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(i){V(t);let s=w(2);return q(s.runReportAndExport(i))}),b(1,"fa-icon",37),c(2),p(3,"translate"),r()}if(e&2){let t=w(2);g("disabled",!t.reportForm.valid||t.isProcessing),a(2),v(" ",m(3,2,"labels.buttons.Run and Download Report")," ")}}function Zdi(e,o){if(e&1){let t=Y();l(0,"mat-card")(1,"form",4)(2,"mat-card-content",5),F(3,Wdi,2,2,"ng-container",6),l(4,"mat-form-field",7)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",8)(9,"mat-option",9),c(10,"0"),r(),l(11,"mat-option",10),c(12,"1"),r(),l(13,"mat-option",11),c(14,"2"),r(),l(15,"mat-option",12),c(16,"3"),r(),l(17,"mat-option",13),c(18,"4"),r()()(),F(19,Jdi,7,5,"mat-form-field",14)(20,Kdi,4,4,"div",15),r(),l(21,"mat-card-actions",16)(22,"button",17),c(23),p(24,"translate"),r(),l(25,"button",18),R("click",function(){V(t);let i=w();return q(i.run())}),b(26,"fa-icon",19),c(27),p(28,"translate"),r(),F(29,Xdi,4,4,"button",20),r()()()}if(e&2){let t=w();a(),g("formGroup",t.reportForm),a(2),g("ngForOf",t.paramData),a(3),h(m(7,11,"labels.inputs.Decimal Places")),a(2),g("formControl",t.decimalChoice),a(11),g("ngIf",t.isPentahoReport()),a(),g("ngIf",t.exportToS3Allowed),a(2),g("routerLink",oe(17,Ndi)),a(),v(" ",m(24,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!t.reportForm.valid||t.isProcessing),a(2),v(" ",m(28,15,"labels.buttons.Run Report")," "),a(2),g("ngIf",t.isTableReport())}}function e0i(e,o){if(e&1&&b(0,"mifosx-table-and-sms",42),e&2){let t=w(2);g("dataObject",t.dataObject)}}function t0i(e,o){if(e&1&&b(0,"mifosx-chart",42),e&2){let t=w(2);g("dataObject",t.dataObject)}}function i0i(e,o){if(e&1&&b(0,"mifosx-pentaho",42),e&2){let t=w(2);g("dataObject",t.dataObject)}}function n0i(e,o){if(e&1){let t=Y();l(0,"div",38)(1,"mat-card")(2,"div",39)(3,"button",40),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),l(6,"div"),F(7,e0i,1,1,"mifosx-table-and-sms",41)(8,t0i,1,1,"mifosx-chart",41)(9,i0i,1,1,"mifosx-pentaho",41),r()()()}if(e&2){let t=w();a(4),v(" ",m(5,4,"labels.buttons.Parameters")," "),a(3),g("ngIf",!t.hideTable),a(),g("ngIf",!t.hideChart),a(),g("ngIf",!t.hidePentaho)}}var sP=(()=>{class e{constructor(){this.route=T(Ie),this.reportsService=T(lr),this.settingsService=T(Ot),this.alertService=T(Ur),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.report={},this.paramData=[],this.parentParameters=[],this.pentahoReportParameters=[],this.reportForm=new Is({}),this.decimalChoice=new it,this.isCollapsed=!1,this.hideTable=!0,this.hideChart=!0,this.hidePentaho=!0,this.reportUsesDates=!1,this.exportToS3Allowed=!1,this.outputTypeOptions=[],this.isProcessing=!1,this.report.name=this.route.snapshot.params.name,this.route.queryParams.subscribe(t=>{this.report.type=t.type,this.report.id=t.id}),this.route.data.subscribe(t=>{if(this.paramData=t.reportParameters,this.isTableReport()){let n=t.configurations.globalConfiguration.find(s=>s.name==="amazon-s3"),i=t.configurations.globalConfiguration.find(s=>s.name==="report-export-s3-folder-name");n&&n.enabled&&i&&i.enabled&&i.stringValue&&(this.exportToS3Allowed=!0,this.exportToS3Repository=i.stringValue)}})}isTableReport(){return this.report.type==="Table"}isPentahoReport(){return this.report.type==="Pentaho"}ngOnInit(){this.maxDate=this.settingsService.maxAllowedDate,this.createRunReportForm()}createRunReportForm(){this.paramData.forEach(t=>{if(!t.parentParameterName)this.reportForm.addControl(t.name,new it("",ce.required)),t.displayType==="select"&&this.fetchSelectOptions(t,t.name);else{let n=this.paramData.find(i=>i.name===t.parentParameterName);n!=null&&(n.childParameters.push(t),this.updateParentParameters(n))}}),this.isPentahoReport()&&(this.reportForm.addControl("outputType",new it("",ce.required)),this.outputTypeOptions=[{name:"PDF format",value:"PDF"},{name:"Normal format",value:"HTML"},{name:"Excel format",value:"XLS"},{name:"Excel 2007 format",value:"XLSX"},{name:"CSV format",value:"CSV"}],this.mapPentahoParams()),this.exportToS3Allowed&&this.reportForm.addControl("exportOutputToS3",new it(!1)),this.decimalChoice.patchValue("0"),this.setChildControls(),this.addDateRangeValidator()}updateParentParameters(t){let n=this.parentParameters.map(i=>i.name);if(!n.includes(t.name))this.parentParameters.push(t);else{let i=n.indexOf(t.name);this.parentParameters[i]=t}}mapPentahoParams(){this.reportsService.getPentahoParams(this.report.id).subscribe(t=>{t.forEach(n=>{let i=this.paramData.find(s=>s.name===n.parameterName);i.pentahoName=`R_${n.reportParameterName}`})})}addDateRangeValidator(){let t=this.paramData.filter(u=>u.displayType==="date"),n=t.find(u=>this.isStartDateParam(u)),i=t.find(u=>this.isEndDateParam(u));if(!n||!i)return;let s=this.reportForm.get(n.name),d=this.reportForm.get(i.name);!s||!d||(d.addValidators(this.endDateAfterStartValidator(n.name)),d.updateValueAndValidity({emitEvent:!1}),s.valueChanges.subscribe(()=>d.updateValueAndValidity({emitEvent:!1})))}endDateAfterStartValidator(t){return n=>{let s=n.parent?.get(t)?.value,d=n.value;if(!s||!d)return null;let u=new Date(s),f=new Date(d);return isNaN(u.getTime())||isNaN(f.getTime())?null:f{this.reportForm.get(t.name).valueChanges.subscribe(n=>{t.childParameters.forEach(i=>{if(i.displayType==="none"?this.reportForm.addControl(i.name,new it(i.defaultVal)):this.reportForm.addControl(i.name,new it("",ce.required)),i.displayType==="select"){let s=`${i.name}?${t.inputName}=${n.id}`;this.fetchSelectOptions(i,s)}})})})}fetchSelectOptions(t,n){this.reportsService.getSelectOptions(n).subscribe(i=>{t.selectOptions=i,t.selectAll==="Y"&&t.selectOptions.push({id:"-1",name:"All"})})}formatUserResponse(t){let n={},i;this.reportToBeExportedInRepository=!1;for(let[s,d]of Object.entries(t)){if(s==="outputType"){n["output-type"]=d;continue}else if(s==="exportOutputToS3"){this.reportToBeExportedInRepository=d;continue}let u=this.paramData.find(f=>f.name===s);switch(i=this.isPentahoReport()?u.pentahoName:u.inputName,u.displayType){case"text":n[i]=d;break;case"select":n[i]=d.id;break;case"date":this.isTableReport()?n[i]=this.dateUtils.formatDate(d,Zt.DEFAULT_DATEFORMAT):n[i]=this.dateUtils.formatDate(d,this.settingsService.dateFormat),this.reportUsesDates=!0;break;case"none":n[i]=d;break}}return n}run(){this.isCollapsed=!0;let t=this.formatUserResponse(this.reportForm.value),n=at({},t);if(this.reportUsesDates){let i=this.settingsService.dateFormat;this.isTableReport()&&(i=Zt.DEFAULT_DATEFORMAT),n=qt(at({},t),{locale:this.settingsService.language.code,dateFormat:i})}switch(this.reportToBeExportedInRepository&&(n.exportS3=!0),this.dataObject={formData:n,report:this.report,decimalChoice:this.decimalChoice.value},this.report.type){case"SMS":case"Table":this.hideTable=!1;break;case"Chart":this.hideChart=!1;break;case"Pentaho":this.hidePentaho=!1;break}}runReportAndExport(t){t.stopPropagation(),this.isProcessing=!0;let n=this.formatUserResponse(this.reportForm.value),i=this.report.name,s=qt(at({},n),{decimalChoice:this.decimalChoice.value});this.reportsService.getRunReportData(i,s).subscribe(d=>{if(d.data.length>0){this.alertService.alert({type:"Report generation",message:`Report: ${i} data generated`});let u=[];d.columnHeaders.forEach(f=>{u.push(f.columnName)}),this.exportToXLS(i,d.data,u)}else this.alertService.alert({type:"Report generation",message:`Report: ${i} without data generated`});this.isProcessing=!1})}exportToXLS(t,n,i){return qn(this,null,function*(){let s=`${t}.xlsx`,d=n.map(P=>{let S={};for(let M=0;M{f.addRow(i.map(S=>P[S]))});let _=yield u.xlsx.writeBuffer(),C=new Blob([_],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),x=URL.createObjectURL(C),y=document.createElement("a");y.href=x,y.download=s,document.body.appendChild(y),y.click(),setTimeout(()=>{document.body.removeChild(y),URL.revokeObjectURL(x)},0)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-run-report"]],decls:3,vars:2,consts:[["runReportDatePicker",""],[1,"container","input"],[4,"ngIf"],["class","container output",4,"ngIf"],[3,"formGroup"],[1,"form-grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"form-field"],[3,"formControl"],["value","0"],["value","1"],["value","2"],["value","3"],["value","4"],["class","form-field",4,"ngIf"],["class","flex-98",4,"ngIf"],[1,"layout-row","align-between","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary","id","runreport",3,"click","disabled"],["icon","file-export",1,"m-r-10"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"ngSwitch"],["class","test",4,"ngIf"],[1,"test"],["class","form-field",4,"ngSwitchCase"],["class","form-field",3,"click",4,"ngSwitchCase"],["matInput","","required","",3,"formControlName"],[1,"form-field",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["required","","formControlName","outputType"],[1,"flex-98"],["labelPosition","after","formControlName","exportOutputToS3"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","download",1,"m-r-10"],[1,"container","output"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],[3,"dataObject",4,"ngIf"],[3,"dataObject"]],template:function(n,i){n&1&&(l(0,"div",1),F(1,Zdi,30,18,"mat-card",2),r(),F(2,n0i,10,6,"div",3)),n&2&&(a(),g("ngIf",!i.isCollapsed),a(),g("ngIf",i.isCollapsed))},dependencies:[ue,ts,Js,Ks,Xs,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,ke,aP,rP,lP,he],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.form-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-field[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var MO=(()=>{class e{constructor(){this.reportsService=T(lr)}resolve(){return this.reportsService.getReports()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var DO=(()=>{class e{constructor(){this.reportsService=T(lr)}resolve(t){return this.reportsService.getReportParams(t.params.name)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var o0i=[_o.withShell([{path:"reports",data:{title:"Reports",breadcrumb:"Reports"},resolve:{reports:MO},children:[{path:"",component:wh},{path:":filter",data:{routeParamBreadcrumb:"filter"},component:wh},{path:"run/:name",data:{title:"Reports",routeParamBreadcrumb:"name"},component:sP,resolve:{reportParameters:DO,configurations:Wp}}]}])],WX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[MO,DO,eu],imports:[gn.forChild(o0i),gn]})}}return e})();var QX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[xp],imports:[oo,WX,wh,sP,aP,rP,lP]})}}return e})();var a0i=()=>[10,25,50,100],r0i=()=>["CLIENT","GROUP","CENTER"];function l0i(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"error.Searched query resulted more than 200 records")))}function s0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function c0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityType)}}function p0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Name")))}function m0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function d0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function u0i(e,o){if(e&1&&(l(0,"td",16),b(1,"mifosx-account-number",17),r()),e&2){let t=o.$implicit;a(),g("accountNo",Le(t.entityAccountNo))}}function f0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function h0i(e,o){if(e&1&&(l(0,"td",16),b(1,"mifosx-external-identifier",18),r()),e&2){let t=o.$implicit;a(),g("externalId",Le(t.entityExternalId))}}function g0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Parent Type")))}function _0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",oe(1,r0i).includes(t.entityType)?"Office":"Client"," ")}}function C0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Parent Name")))}function v0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentName)}}function x0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Details")))}function b0i(e,o){if(e&1){let t=Y();l(0,"td",16)(1,"button",19),p(2,"translate"),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.navigate(i))}),b(3,"fa-icon",20),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.View Entity"))))}function y0i(e,o){e&1&&b(0,"tr",21)}function S0i(e,o){e&1&&b(0,"tr",22)}function w0i(e,o){if(e&1&&(l(0,"mat-card",1),E(1,l0i,3,3,"mat-error"),l(2,"table",2),X(3,3),F(4,s0i,3,3,"th",4)(5,c0i,2,1,"td",5),Z(),X(6,6),F(7,p0i,3,3,"th",4)(8,m0i,2,1,"td",5),Z(),X(9,7),F(10,d0i,3,3,"th",4)(11,u0i,2,2,"td",5),Z(),X(12,8),F(13,f0i,3,3,"th",4)(14,h0i,2,2,"td",5),Z(),X(15,9),F(16,g0i,3,3,"th",4)(17,_0i,2,2,"td",5),Z(),X(18,10),F(19,C0i,3,3,"th",4)(20,v0i,2,1,"td",5),Z(),X(21,11),F(22,x0i,3,3,"th",4)(23,b0i,4,4,"td",5),Z(),F(24,y0i,1,0,"tr",12)(25,S0i,1,0,"tr",13),r(),b(26,"mat-paginator",14),r()),e&2){let t=w();a(),I(t.overload?1:-1),a(),g("dataSource",t.dataSource),a(22),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(5,a0i))}}function P0i(e,o){e&1&&(l(0,"mat-card",1)(1,"div",23)(2,"div",24),b(3,"i",25),c(4),p(5,"translate"),r()()()),e&2&&(a(4),v(" ",m(5,1,"labels.text.No data found")," "))}var cP=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.displayedColumns=["entityType","entityName","entityAccount","externalId","parentType","parentName","details"],this.hasResults=!1,this.route.data.subscribe(t=>{this.dataSource=new Wt(t.searchResults),this.dataSource.paginator=this.paginator,this.hasResults=t.searchResults.length>0,this.overload=t.searchResults.length>200,this.overload&&(this.dataSource=new Wt(t.searchResults.slice(0,200)))})}navigate(t){switch(t.entityType){case"CLIENT":this.router.navigate(["clients",t.entityId,"general"]);break;case"CLIENTIDENTIFIER":this.router.navigate(["clients",t.parentId,"general"]);break;case"CENTER":this.router.navigate(["centers",t.entityId]);break;case"GROUP":this.router.navigate(["groups",t.entityId]);break;case"SHARE":this.router.navigate(["clients",t.parentId,"shares-accounts",t.entityId]);break;case"SAVING":t.subEntityType==="depositAccountType.recurringDeposit"?this.router.navigate(["clients",t.parentId,"recurring-deposits-accounts",t.entityId,"transactions"]):t.subEntityType==="depositAccountType.fixedDeposit"?this.router.navigate(["clients",t.parentId,"fixed-deposits-accounts",t.entityId,"transactions"]):t.subEntityType==="depositAccountType.savingsDeposit"&&this.router.navigate(["clients",t.parentId,"savings-accounts",t.entityId,"transactions"]);break;case"LOAN":this.router.navigate(["clients",t.parentId,"loans-accounts",t.entityId,"general"]);break}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-search-page"]],viewQuery:function(n,i){if(n&1&&Ee(kt,7),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},decls:3,vars:2,consts:[[1,"container"],[1,"layout-column","gap-2percent"],["mat-table","",3,"dataSource"],["matColumnDef","entityType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","view-details",4,"matCellDef"],["matColumnDef","entityName"],["matColumnDef","entityAccount"],["matColumnDef","externalId"],["matColumnDef","parentType"],["matColumnDef","parentName"],["matColumnDef","details"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell","",1,"view-details"],["display","left",3,"accountNo"],[3,"externalId"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["icon","eye","size","lg"],["mat-header-row",""],["mat-row",""],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(l(0,"div",0),E(1,w0i,27,6,"mat-card",1),E(2,P0i,6,3,"mat-card",1),r()),n&2&&(a(),I(i.hasResults?1:-1),a(),I(i.hasResults?-1:2))},dependencies:[ue,fe,Ue,ut,_t,xt,vt,bt,Ct,yt,rc,Da,wi,si,ke,St,Pt,wt,Tt,kt,he],encapsulation:2})}}return e})();var YX=(()=>{class e{constructor(){this.http=T(ko)}getSearchResults(t,n){let i=new rn().set("exactMatch","false").set("query",t).set("resource",n);return this.http.get("/search",{params:i})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var EO=(()=>{class e{constructor(){this.searchService=T(YX)}resolve(t){let n=t.queryParams.query,i=t.queryParams.resource;return this.searchService.getSearchResults(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var T0i=[_o.withShell([{path:"search",component:cP,data:{title:"Search",breadcrumb:"Search"},runGuardsAndResolvers:"paramsOrQueryParamsChange",resolve:{searchResults:EO}}])],JX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[EO],imports:[gn.forChild(T0i),gn]})}}return e})();var KX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,JX,cP]})}}return e})();var M0i=()=>[10,25,50,100],D0i=(e,o)=>[e,o];function E0i(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Notification")," "))}function I0i(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.content," ")}}function O0i(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Created At")," "))}function A0i(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.createdAt," ")}}function F0i(e,o){e&1&&b(0,"tr",13)}function k0i(e,o){if(e&1&&b(0,"tr",14),e&2){let t=o.$implicit,n=w();g("routerLink",Ja(1,D0i,n.routeMap[t.objectType],t.objectId))}}function B0i(e,o){if(e&1&&(l(0,"tr")(1,"td"),c(2,"You don't have any notifications"),r()()),e&2){let t=w();a(),Dn("colspan",t.displayedColumns.length)}}var pP=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["notification","createdAt"],this.routeMap={client:"/clients/",group:"/groups/",loan:"/loans-accounts/",center:"/centers/",shareAccount:"/shares-accounts/",fixedDeposit:"/fixed-deposits-accounts/",recurringDepositAccount:"/recurring-deposits-accounts/",savingsAccount:"/savings-accounts/",shareProduct:"/products/share-products/",loanProduct:"/products/loan-products/"},this.route.data.subscribe(t=>{this.notificationsData=t.notifications.pageItems})}ngOnInit(){this.setNotifications()}setNotifications(){this.dataSource=new Wt(this.notificationsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notifications-page"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:13,vars:5,consts:[[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","notification"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[4,"matNoDataRow"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"table",2),X(3,3),F(4,E0i,3,3,"th",4)(5,I0i,2,1,"td",5),Z(),X(6,6),F(7,O0i,3,3,"th",4)(8,A0i,2,1,"td",5),Z(),F(9,F0i,1,0,"tr",7)(10,k0i,1,4,"tr",8)(11,B0i,3,1,"tr",9),r(),b(12,"mat-paginator",10),r()()),n&2&&(a(2),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("pageSizeOptions",oe(4,M0i)))},dependencies:[ue,fe,Oe,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,fk,kt,he],styles:[".select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var IO=(()=>{class e{constructor(){this.notificationsService=T(ik)}resolve(){return this.notificationsService.getNotifications(!0,50)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var R0i=[_o.withShell([{path:"notifications",component:pP,data:{title:"Notifications",breadcrumb:"Notifications"},resolve:{notifications:IO}}])],XX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[IO],imports:[gn.forChild(R0i),gn]})}}return e})();var ZX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,XX,pP]})}}return e})();var mP=(()=>{class e{constructor(){this.http=T(ko)}retrieveCollectionSheetData(t){let n=new rn().set("command","generateCollectionSheet");return this.http.post("/collectionsheet",t,{params:n})}generateCollectionSheetData(t,n){let i=new rn().set("command","generateCollectionSheet");return this.http.post(`/centers/${t}`,n,{params:i})}executeSaveCollectionSheet(t){let n=new rn().set("command","saveCollectionSheet");return this.http.post("/collectionsheet",t,{params:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eZ=()=>["../"],tZ=()=>[10,25,50,100];function N0i(e,o){e&1&&(l(0,"div",3)(1,"div",17),b(2,"i",18),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No repayments and disbursal")," "))}function L0i(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function V0i(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Branch Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function q0i(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function z0i(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function H0i(e,o){if(e&1){let t=Y();l(0,"mat-card",1),E(1,N0i,5,3,"div",3),l(2,"form",4),R("ngSubmit",function(){V(t);let i=w();return q(i.previewCollectionSheet())}),l(3,"div",5)(4,"mat-form-field",6)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",7),Se(9,L0i,2,2,"mat-option",8,Pe),r(),E(11,V0i,7,9,"mat-error"),r(),l(12,"mat-form-field",9),R("click",function(){V(t);let i=ve(19);return q(i.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",10)(17,"mat-datepicker-toggle",11)(18,"mat-datepicker",null,0),E(20,q0i,7,9,"mat-error"),r(),l(21,"mat-form-field",6)(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",12),Se(26,z0i,2,2,"mat-option",8,Pe),r()()(),l(28,"mat-card-actions",13)(29,"button",14),c(30),p(31,"translate"),r(),l(32,"button",15),b(33,"fa-icon",16),c(34),p(35,"translate"),r()()()()}if(e&2){let t=ve(19),n=w();a(),I(n.noData?1:-1),a(),g("formGroup",n.collectionSheetForm),a(4),h(m(7,15,"labels.inputs.Branch Office")),a(3),we(n.officesData),a(2),I(n.collectionSheetForm.controls.officeId.hasError("required")?11:-1),a(3),h(m(15,17,"labels.inputs.Repayment Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.collectionSheetForm.controls.transactionDate.hasError("required")?20:-1),a(3),h(m(24,19,"labels.inputs.Staff")),a(3),we(n.loanOfficerData),a(3),g("routerLink",oe(25,eZ)),a(),v(" ",m(31,21,"labels.buttons.Cancel")," "),a(2),g("disabled",!n.collectionSheetForm.valid),a(2),v(" ",m(35,23,"labels.buttons.Collection Sheet")," ")}}function G0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Loan Account")," # "))}function j0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountId)}}function $0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function U0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.productShortName,"(",t.productId,")")}}function W0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function Q0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.clientName,"(",t.clientId,")")}}function Y0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Due")))}function J0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalDue)}}function K0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charges")))}function X0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.feeDue)}}function Z0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function eui(e,o){if(e&1){let t=Y();l(0,"td",35)(1,"button",20),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w(3);return q(u.showAndStorePaymentDetails("loans/accounts",s,d))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Payment")," "))}function tui(e,o){e&1&&b(0,"tr",36)}function iui(e,o){e&1&&b(0,"tr",37)}function nui(e,o){if(e&1&&(l(0,"h2",21),c(1),p(2,"translate"),r(),l(3,"table",22),X(4,23),F(5,G0i,3,3,"th",24)(6,j0i,2,1,"td",25),Z(),X(7,26),F(8,$0i,3,3,"th",24)(9,U0i,2,2,"td",25),Z(),X(10,27),F(11,W0i,3,3,"th",24)(12,Q0i,2,2,"td",25),Z(),X(13,28),F(14,Y0i,3,3,"th",24)(15,J0i,2,1,"td",25),Z(),X(16,29),F(17,K0i,3,3,"th",24)(18,X0i,2,1,"td",25),Z(),X(19,30),F(20,Z0i,3,3,"th",24)(21,eui,4,3,"td",25),Z(),F(22,tui,1,0,"tr",31)(23,iui,1,0,"tr",32),r(),b(24,"mat-paginator",33)),e&2){let t=w(2);a(),h(m(2,5,"labels.heading.Due Collections")),a(2),g("dataSource",t.loansDataSource),a(19),g("matHeaderRowDef",t.loansDisplayedColumns),a(),g("matRowDefColumns",t.loansDisplayedColumns),a(),g("pageSizeOptions",oe(7,tZ))}}function oui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Deposit Account")," "))}function aui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.depositAccountType)}}function rui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Savings Account")," # "))}function lui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountId)}}function sui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function cui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.productName,"(",t.productId,")")}}function pui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function mui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.clientName,"(",t.clientId,")")}}function dui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Due")))}function uui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.dueAmount)}}function fui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function hui(e,o){if(e&1){let t=Y();l(0,"td",35)(1,"button",20),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w(3);return q(u.showAndStorePaymentDetails("savings",s,d))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Payment")," "))}function gui(e,o){e&1&&b(0,"tr",36)}function _ui(e,o){e&1&&b(0,"tr",37)}function Cui(e,o){if(e&1&&(l(0,"h2",21),c(1),p(2,"translate"),r(),l(3,"table",22),X(4,38),F(5,oui,3,3,"th",24)(6,aui,2,1,"td",25),Z(),X(7,39),F(8,rui,3,3,"th",24)(9,lui,2,1,"td",25),Z(),X(10,26),F(11,sui,3,3,"th",24)(12,cui,2,2,"td",25),Z(),X(13,27),F(14,pui,3,3,"th",24)(15,mui,2,2,"td",25),Z(),X(16,28),F(17,dui,3,3,"th",24)(18,uui,2,1,"td",25),Z(),X(19,30),F(20,fui,3,3,"th",24)(21,hui,4,3,"td",25),Z(),F(22,gui,1,0,"tr",31)(23,_ui,1,0,"tr",32),r(),b(24,"mat-paginator",33)),e&2){let t=w(2);a(),h(m(2,5,"labels.inputs.Due Savings Collections")),a(2),g("dataSource",t.savingsDataSource),a(19),g("matHeaderRowDef",t.savingsDisplayedColumns),a(),g("matRowDefColumns",t.savingsDisplayedColumns),a(),g("pageSizeOptions",oe(7,tZ))}}function vui(e,o){if(e&1){let t=Y();l(0,"div",1)(1,"mat-card")(2,"div",19)(3,"button",20),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),E(6,nui,25,8),E(7,Cui,25,8),l(8,"mat-card-actions",13)(9,"button",14),c(10),p(11,"translate"),r(),l(12,"button",20),R("click",function(){V(t);let i=w();return q(i.submit())}),c(13),p(14,"translate"),r()()()()}if(e&2){let t=w();a(4),v(" ",m(5,6,"labels.buttons.Parameters")," "),a(2),I(t.loansDataSource?6:-1),a(),I(t.savingsDataSource?7:-1),a(2),g("routerLink",oe(12,eZ)),a(),v(" ",m(11,8,"labels.buttons.Cancel")," "),a(3),v(" ",m(14,10,"labels.buttons.Submit")," ")}}var dP=(()=>{class e{constructor(){this.formBuilder=T(nt),this.collectionsService=T(mP),this.organizationService=T(li),this.route=T(Ie),this.dateUtils=T(Zt),this.dialog=T(Ht),this.router=T(qe),this.settingsService=T(Ot),this.loanOfficerData=[],this.loansData=[],this.savingsData=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.bulkDisbursementTransactionsData={},this.bulkRepaymentTransactions=[],this.bulkSavingsDueTransactions=[],this.noData=!1,this.loansDisplayedColumns=["loanAccount","productName","clientName","totalDue","charges","actions"],this.savingsDisplayedColumns=["depositAccount","savingsAccountNo","productName","clientName","totalDue","actions"],this.route.data.subscribe(t=>{this.officesData=t.officesData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,localStorage.getItem("Success")&&(localStorage.removeItem("Success"),this.Success=!0,setTimeout(()=>{this.Success=!1},3e3)),this.createCollectionSheetForm(),this.buildDependencies()}createCollectionSheetForm(){this.collectionSheetForm=this.formBuilder.group({officeId:["",ce.required],transactionDate:[new Date,ce.required],staffId:[""]})}buildDependencies(){this.collectionSheetForm.get("officeId").valueChanges.subscribe(t=>{this.organizationService.getStaffs(t).subscribe(n=>{this.loanOfficerData=n})})}organizeData(t){t.clients.forEach(n=>{n.loans&&n.loans.forEach(i=>{let s=qt(at({},i),{clientName:n.clientName,clientId:n.clientId});this.loansData.push(s)}),n.savings&&n.savings.forEach(i=>{let s=qt(at({},i),{clientName:n.clientName,clientId:n.clientId});this.savingsData.push(s)})}),this.loansData.length>0&&(this.loansDataSource=new Wt(this.loansData),this.loansDataSource.paginator=this.paginator,this.loansDataSource.sort=this.sort),this.savingsData.length>0&&(this.savingsDataSource=new Wt(this.savingsData),this.savingsDataSource.paginator=this.paginator,this.savingsDataSource.sort=this.sort)}getLoanTotalDueAmount(t){let n=t.totalDue,i=t.chargesDue;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),Math.ceil((Number(n)+Number(i))*100)/100}showAndStorePaymentDetails(t,n,i){let s=[new $i({controlName:"paymentTypeId",label:"Payment Type",options:{label:"name",value:"id",data:this.collectionSheetData.paymentTypeOptions},required:!1}),new vn({controlName:"accountNumber",label:"Account #",type:"number",required:!1}),new vn({controlName:"checkNumber",label:"Cheque #",type:"number",required:!1}),new vn({controlName:"routingCode",label:"Routing Code",type:"text",required:!1}),new vn({controlName:"receiptNumber",label:"Receipt #",type:"number",required:!1}),new vn({controlName:"bankNumber",label:"Bank #",type:"number",required:!1})],d={title:`Payment for ${t==="loans"?"Loan":"Saving"} Id ${t==="loans"?n.loanId:n.savingsId}`,layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(an,{data:d}).afterClosed().subscribe(f=>{if(f.data)if(t==="loans"){let _=this.getLoanTotalDueAmount(n),C={loanId:n.loanId,transactionAmount:_};f.data.value.paymentTypeId!==""&&(C.paymentTypeId=f.data.value.paymentTypeId,C.accountNumber=f.data.value.accountNumber,C.checkNumber=f.data.value.checkNumber,C.routingCode=f.data.value.routingCode,C.receiptNumber=f.data.value.receiptNumber,C.bankNumber=f.data.value.bankNumber),this.bulkRepaymentTransactions.push(C)}else{let _=n.dueAmount;isNaN(_)&&(_=0);let C={savingsId:n.savingsId,transactionAmount:_,depositAccountType:n.depositAccountType==="Saving Deposit"?100:n.depositAccountType==="Recurring Deposit"?300:400};f.data.paymentTypeId!==""&&(C.paymentTypeId=f.data.paymentTypeId,C.accountNumber=f.data.accountNumber,C.checkNumber=f.data.checkNumber,C.routingCode=f.data.routingCode,C.receiptNumber=f.data.receiptNumber,C.bankNumber=f.data.bankNumber),C.transactionAmount>0&&this.bulkSavingsDueTransactions.push(C)}})}previewCollectionSheet(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.collectionSheetForm.value),{transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,n),dateFormat:n,locale:t});i.staffId===""&&delete i.staffId,this.collectionsService.retrieveCollectionSheetData(i).subscribe(s=>{s.clients.length>0?(this.collectionSheetData=s,this.organizeData(s),this.isCollapsed=!0):(this.noData=!0,setTimeout(()=>{this.noData=!1},3e3))})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat;this.bulkDisbursementTransactionsData.bulkRepaymentTransactions=this.bulkRepaymentTransactions,this.bulkDisbursementTransactionsData.bulkSavingsDueTransactions=this.bulkSavingsDueTransactions;let i={dateFormat:n,locale:t,actualDisbursementDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,n),transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,n),bulkDisbursementTransactions:this.bulkDisbursementTransactionsData};this.collectionsService.executeSaveCollectionSheet(i).subscribe(()=>{this.reload(),localStorage.setItem("Success","true")})}reload(){let t=this.router.url;this.router.navigateByUrl("/collections",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-individual-collection-sheet"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5,!0),Ee(It,5,!0)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:3,vars:2,consts:[["transactionDatePicker",""],[1,"container"],[1,"showcollectionsheet"],[1,"alert"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["formControlName","officeId","required",""],[3,"value"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","staffId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","search",1,"m-r-10"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],[1,"mat-h2"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","loanAccount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","clientName"],["matColumnDef","totalDue"],["matColumnDef","charges"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","depositAccount"],["matColumnDef","savingsAccountNo"]],template:function(n,i){n&1&&(E(0,H0i,36,26,"mat-card",1),l(1,"div",2),E(2,vui,15,13,"div",1),r()),n&2&&(I(i.isCollapsed?-1:0),a(2),I(i.isCollapsed?2:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%]{max-width:37em;padding:20px}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}.container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.container[_ngcontent-%COMP%] .m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#0000006b}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{max-width:73rem}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{padding:24px;border-radius:8px;box-shadow:0 2px 10px #00000014}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px;padding:10px 0;display:flex;align-items:center}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px;font-weight:500;box-shadow:0 2px 4px #0000001a;transition:all .3s ease}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transform:translateY(-2px)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{margin-bottom:20px;font-weight:500;color:#000000de;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:10px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{width:100%;margin-bottom:24px;box-shadow:none;border:1px solid rgba(0,0,0,.12)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{font-weight:500;color:#000000de;background-color:#0000000a}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] td.mat-cell[_ngcontent-%COMP%], .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{padding:12px 16px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#00000005}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{background-color:#424242}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{color:#ffffffde;border-bottom-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{border-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{color:#ffffffde;background-color:#ffffff1a}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.alert[_ngcontent-%COMP%]{background-color:#fdecea;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#f44336;margin-right:2px}"]})}}return e})();var xui=()=>["../"];function bui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function yui(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Branch Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Sui(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wui(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),E(8,Sui,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Meeting Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.collectionSheetForm.controls.meetingDate.hasError("required")?8:-1)}}function Pui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Tui(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),Se(5,Pui,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Staff")),a(3),we(t.loanOfficerData)}}function Mui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Dui(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",15),Se(5,Mui,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Group")),a(3),we(t.groupsData)}}function Eui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Iui(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,Eui,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Center")),a(3),we(t.centersData)}}var iZ=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centerService=T(Jn),this.collectionsService=T(mP),this.organizationService=T(li),this.router=T(qe),this.route=T(Ie),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.groupsData=[],this.centersData=[],this.loanOfficerData=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.officeId=null,this.meetingFallCenters=null,this.route.data.subscribe(t=>{this.officesData=t.officesData})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createCollectionSheetForm(),this.buildDependencies()}createCollectionSheetForm(){this.collectionSheetForm=this.formBuilder.group({officeId:["",ce.required],meetingDate:[new Date,ce.required],staffId:["",ce.required],groupId:[""],centerId:[""]})}buildDependencies(){this.collectionSheetForm.get("officeId").valueChanges.subscribe(t=>{this.officeId=t,this.organizationService.getStaffs(t).subscribe(n=>{this.loanOfficerData=n}),this.organizationService.getCenters(t).subscribe(n=>{this.centersData=n}),this.organizationService.getGroups(t).subscribe(n=>{this.groupsData=n})})}previewCollectionSheet(){let t=this.settingsService.dateFormat,n=this.settingsService.language.code,i=this.collectionSheetForm.value.staffId,s=this.dateUtils.formatDate(this.collectionSheetForm.value.meetingDate,t);this.centerService.getAllMeetingFallCenters(this.officeId,i,s,t,n).subscribe(d=>{if(d.length>0){this.meetingFallCenters=d[0].meetingFallCenters;let u={calendarId:this.meetingFallCenters[0].collectionMeetingCalendar.calendarInstanceId,transactionDate:s,locale:n,dateFormat:t};this.collectionsService.generateCollectionSheetData(this.meetingFallCenters[0].id,u).subscribe(f=>{console.log(f)})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-collection-sheet"]],decls:23,vars:18,consts:[["meetingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["formControlName","officeId","required",""],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","download",1,"m-r-10"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","meetingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","staffId"],["formControlName","groupId"],["formControlName","centerId"]],template:function(n,i){n&1&&(l(0,"mat-card",1)(1,"form",2),R("ngSubmit",function(){return i.previewCollectionSheet()}),l(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"mat-select",5),Se(8,bui,2,2,"mat-option",6,Pe),r(),E(10,yui,7,9,"mat-error"),r(),E(11,wui,9,8,"mat-form-field",4),E(12,Tui,7,3,"mat-form-field",4),E(13,Dui,7,3,"mat-form-field",4),E(14,Iui,7,3,"mat-form-field",4),r(),l(15,"mat-card-actions",7)(16,"button",8),c(17),p(18,"translate"),r(),l(19,"button",9),b(20,"fa-icon",10),c(21),p(22,"translate"),r()()()()),n&2&&(a(),g("formGroup",i.collectionSheetForm),a(4),h(m(6,11,"labels.inputs.Branch Office")),a(3),we(i.officesData),a(2),I(i.collectionSheetForm.controls.officeId.hasError("required")?10:-1),a(),I(i.officeId!==null?11:-1),a(),I(i.officeId!==null?12:-1),a(),I(i.officeId!==null?13:-1),a(),I(i.officeId!==null?14:-1),a(2),g("routerLink",oe(17,xui)),a(),h(m(18,13,"labels.buttons.Cancel")),a(2),g("disabled",!i.collectionSheetForm.valid),a(2),v(" ",m(22,15,"labels.buttons.Productive Collection Sheet")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37em}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Oui=[_o.withShell([{path:"collections",children:[{path:"individual-collection-sheet",data:{title:"Individual Collection Sheet",breadcrumb:"Individual Collection Sheet",routeParamBreadcrumb:!1},component:dP,resolve:{officesData:Dl}},{path:"collection-sheet",data:{title:"Collection Sheet",breadcrumb:"Collection Sheet",routeParamBreadcrumb:!1},component:iZ,resolve:{officesData:Dl}}]}])],nZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(Oui),gn]})}}return e})();var oZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,nZ,dP]})}}return e})();var Aui=()=>["/system","roles-and-permissions"];function Fui(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Role")," "))}function kui(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}function Bui(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Description")," "))}function Rui(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function Nui(e,o){e&1&&b(0,"tr",18)}function Lui(e,o){e&1&&b(0,"tr",19)}var uP=(()=>{class e{constructor(){this.authenticationService=T(Wo),this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.language="English",this.dataSource=new Wt,this.displayedColumns=["role","description"];let t=this.authenticationService;this.profileData=t.getCredentials()}ngOnInit(){this.dataSource=new Wt(this.profileData.roles)}changeUserPassword(){this.dialog.open(Vg,{width:"400px",height:"300px"}).afterClosed().subscribe(n=>{if(n.password&&n.repeatPassword){let i=n.password,s=n.repeatPassword,d={password:i,repeatPassword:s};this.authenticationService.changePassword(this.profileData.userId,d).subscribe(()=>{this.router.navigate(["/home"])})}})}get tenantIdentifier(){return this.settingsService.tenantIdentifier||"default"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-profile"]],decls:58,vars:35,consts:[[1,"container","m-b-10","layout-row","layout-lt-md-column","align-end","gap-1percent"],["mat-raised-button","","color","primary",1,"m-r-10",3,"routerLink"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","primary",1,"m-r-10",3,"click"],["icon","cog",1,"m-r-10"],[1,"container","layout-column","gap-1percent"],[1,"layout-row-wrap"],[1,"info-box"],[1,"header"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","role"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.changeUserPassword()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r()(),l(9,"div",5)(10,"mat-card")(11,"div",6)(12,"div",7)(13,"div",8),c(14),p(15,"translate"),r(),l(16,"div"),c(17),r()(),l(18,"div",7)(19,"div",8),c(20),p(21,"translate"),r(),l(22,"div"),c(23),r()(),l(24,"div",7)(25,"div",8),c(26),p(27,"translate"),r(),l(28,"div"),c(29),r()(),l(30,"div",7)(31,"div",8),c(32),p(33,"translate"),r(),l(34,"div"),c(35),r()(),l(36,"div",7)(37,"div",8),c(38),p(39,"translate"),r(),l(40,"div"),c(41),r()(),l(42,"div",7)(43,"div",8),c(44),p(45,"translate"),r(),l(46,"div"),c(47),r()()()(),l(48,"mat-card")(49,"table",9),X(50,10),F(51,Fui,3,3,"th",11)(52,kui,2,1,"td",12),Z(),X(53,13),F(54,Bui,3,3,"th",11)(55,Rui,2,1,"td",12),Z(),F(56,Nui,1,0,"tr",14)(57,Lui,1,0,"tr",15),r()()()),n&2&&(a(),g("routerLink",oe(34,Aui)),a(2),v(" ",m(4,18,"labels.buttons.Permissions")," "),a(4),v(" ",m(8,20,"labels.buttons.Change Password")," "),a(7),v(" ",m(15,22,"labels.inputs.Tenant Id")," "),a(3),v(" ",i.tenantIdentifier," "),a(3),v(" ",m(21,24,"labels.inputs.User Id")," "),a(3),v(" ",i.profileData.userId," "),a(3),v(" ",m(27,26,"labels.inputs.User Name")," "),a(3),v(" ",i.profileData.username," "),a(3),v(" ",m(33,28,"labels.inputs.Office")," "),a(3),v(" ",i.profileData.officeName," "),a(3),v(" ",m(39,30,"labels.inputs.Status")," "),a(3),v(" ",i.profileData.authenticated?"Authenticated":"Not Authenticated"," "),a(3),v(" ",m(45,32,"labels.inputs.Language")," "),a(3),v(" ",i.language," "),a(2),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,Ue,xe,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--info-box-background, #fff);transition:background-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-top:1rem;border-collapse:collapse}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;text-align:left;color:var(--table-header-color, inherit);background-color:var(--table-header-bg, transparent)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem;border:1px solid var(--border-color, #ddd);color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--table-hover-bg, #f9f9f9)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:1px solid var(--border-color, rgba(0, 0, 0, .12))}th.mat-header-cell[_ngcontent-%COMP%]:not(:first-of-type), td.mat-cell[_ngcontent-%COMP%]:not(:first-of-type){border-left:1px solid var(--border-color, rgba(0, 0, 0, .12))}.mat-elevation-z1[_ngcontent-%COMP%]{margin:.5rem 0;box-shadow:0 1px 3px var(--elevation-shadow, rgba(0, 0, 0, .12));border-radius:6px}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--card-background: #2d2d2d;--info-box-background: #383838;--header-color: #e0e0e0;--text-color: #d0d0d0;--table-header-bg: #333;--table-header-color: #e0e0e0;--table-hover-bg: #3a3a3a;--elevation-shadow: rgb(0 0 0 / 30%)}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0000004d}"]})}}return e})();var Vui=[_o.withShell([{path:"profile",component:uP,data:{title:"Profile",breadcrumb:"Profile"}}])],aZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(Vui),gn]})}}return e})();var rZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,aZ,uP]})}}return e})();var qui=()=>["./checker-inbox"],zui=()=>["./client-approval"],Hui=()=>["./loan-approval"],Gui=()=>["./loan-disbursal"],jui=()=>["./reschedule-loan"];function $ui(e,o){if(e&1&&(l(0,"a",10,1),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,qui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Checker Inbox")," ")}}function Uui(e,o){if(e&1&&(l(0,"a",10,2),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,zui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Client Approval")," ")}}function Wui(e,o){if(e&1&&(l(0,"a",10,3),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,Hui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Loan Approval")," ")}}function Qui(e,o){if(e&1&&(l(0,"a",10,4),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,Gui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Loan Disbursal")," ")}}function Yui(e,o){if(e&1&&(l(0,"a",10,5),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,jui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Reschedule Loan")," ")}}var fP=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-checker-inbox-and-tasks"]],decls:12,vars:6,consts:[["tabPanel",""],["checkerInbox","routerLinkActive"],["clientApproval","routerLinkActive"],["loanApproval","routerLinkActive"],["loanDisbursal","routerLinkActive"],["rescheduleLoan","routerLinkActive"],[1,"container"],[1,"tasks-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(n,i){if(n&1&&(l(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"nav",8),F(4,$ui,4,6,"a",9)(5,Uui,4,6,"a",9)(6,Wui,4,6,"a",9)(7,Qui,4,6,"a",9)(8,Yui,4,6,"a",9),r(),l(9,"mat-tab-nav-panel",null,0),b(11,"router-outlet"),r()()()()),n&2){let s=ve(10);a(3),g("tabPanel",s),a(),g("mifosxHasPermission","ALL_FUNCTIONS_READ"),a(),g("mifosxHasPermission","READ_CLIENT"),a(),g("mifosxHasPermission","READ_LOAN"),a(),g("mifosxHasPermission","READ_LOAN"),a(),g("mifosxHasPermission","RESCHEDULE_LOAN")}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],encapsulation:2})}}return e})();var Jui=e=>[e,"view"];function Kui(e,o){if(e&1&&(l(0,"mat-option",23),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Xui(e,o){if(e&1&&(l(0,"mat-option",23),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Zui(e,o){if(e&1){let t=Y();l(0,"th",39)(1,"mat-checkbox",40),R("change",function(i){V(t);let s=w(3);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(3);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function efi(e,o){if(e&1){let t=Y();l(0,"td",41)(1,"mat-checkbox",42),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(3);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(3);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function tfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.ID")))}function ifi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function nfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made on Date")))}function ofi(e,o){if(e&1&&(l(0,"td",41),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.madeOnDate))}}function afi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function rfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.processingResult)}}function lfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.User")))}function sfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maker)}}function cfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function pfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function mfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function dfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function ufi(e,o){e&1&&b(0,"tr",43)}function ffi(e,o){if(e&1&&b(0,"tr",44),e&2){let t=o.$implicit;g("routerLink",Nt(1,Jui,t.id))}}function hfi(e,o){if(e&1&&(l(0,"table",27),X(1,28),F(2,Zui,2,3,"th",29)(3,efi,2,2,"td",30),Z(),X(4,31),F(5,tfi,3,3,"th",29)(6,ifi,2,1,"td",30),Z(),X(7,32),F(8,nfi,3,3,"th",29)(9,ofi,3,3,"td",30),Z(),X(10,33),F(11,afi,3,3,"th",29)(12,rfi,2,1,"td",30),Z(),X(13,34),F(14,lfi,3,3,"th",29)(15,sfi,2,1,"td",30),Z(),X(16,35),F(17,cfi,3,3,"th",29)(18,pfi,2,1,"td",30),Z(),X(19,36),F(20,mfi,3,3,"th",29)(21,dfi,2,1,"td",30),Z(),F(22,ufi,1,0,"tr",37)(23,ffi,1,3,"tr",38),r()),e&2){let t=w(2);g("dataSource",t.dataSource),a(22),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function gfi(e,o){e&1&&(l(0,"div",3)(1,"div",45),b(2,"i",46),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No checker inbox data available for this search")," "))}function _fi(e,o){if(e&1){let t=Y();l(0,"div",2)(1,"div",4)(2,"div",5)(3,"mat-form-field",6)(4,"input",7),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",8)(7,"button",9),R("click",function(){V(t);let i=w();return q(i.approveChecker())}),b(8,"fa-icon",10),c(9),p(10,"translate"),r(),l(11,"button",11),R("click",function(){V(t);let i=w();return q(i.deleteChecker())}),b(12,"fa-icon",12),c(13),p(14,"translate"),r(),l(15,"button",13),R("click",function(){V(t);let i=w();return q(i.rejectChecker())}),b(16,"fa-icon",14),c(17),p(18,"translate"),r()()(),l(19,"form",15)(20,"div",16)(21,"mat-form-field",17),R("click",function(){V(t);let i=ve(28);return q(i.open())}),l(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",18)(26,"mat-datepicker-toggle",19)(27,"mat-datepicker",null,0),r(),l(29,"mat-form-field",17),R("click",function(){V(t);let i=ve(36);return q(i.open())}),l(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",20)(34,"mat-datepicker-toggle",19)(35,"mat-datepicker",null,1),r(),l(37,"mat-form-field",21)(38,"mat-label"),c(39),p(40,"translate"),r(),l(41,"mat-select",22),Se(42,Kui,2,2,"mat-option",23,Pe),r()(),l(44,"mat-form-field",21)(45,"mat-label"),c(46),p(47,"translate"),r(),l(48,"mat-select",24),Se(49,Xui,2,2,"mat-option",23,Pe),r()(),l(51,"mat-form-field",21)(52,"mat-label"),c(53),p(54,"translate"),r(),b(55,"input",25),r(),l(56,"button",26),R("click",function(){V(t);let i=w();return q(i.search())}),c(57),p(58,"translate"),r()()(),E(59,hfi,24,3,"table",27),E(60,gfi,5,3,"div",3),r()}if(e&2){let t=ve(28),n=ve(36),i=w();a(4),g("placeholder",Le(m(5,22,"labels.text.Search by user"))),a(5),v("",m(10,24,"labels.buttons.Approve")," "),a(4),v("",m(14,26,"labels.buttons.Delete")," "),a(4),v("",m(18,28,"labels.buttons.Reject")," "),a(2),g("formGroup",i.makerCheckerSearchForm),a(4),h(m(24,30,"labels.inputs.From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t),a(),g("for",t),a(5),h(m(32,32,"labels.inputs.To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",n),a(),g("for",n),a(5),h(m(40,34,"labels.inputs.Action")),a(3),we(i.makerCheckerTemplate.actionNames),a(4),h(m(47,36,"labels.inputs.Entity")),a(3),we(i.makerCheckerTemplate.entityNames),a(4),h(m(54,38,"labels.inputs.Resource ID")),a(4),v(" ",m(58,40,"labels.buttons.Search")," "),a(2),I(i.noSearchedData?-1:59),a(),I(i.noSearchedData?60:-1)}}function Cfi(e,o){e&1&&(l(0,"div",3)(1,"div",45),b(2,"i",46),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No checker inbox data available for this account")," "))}var hP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.translateService=T(yi),this.tasksService=T(Ko),this.settingsService=T(Ot),this.formBuilder=T(nt),this.noSearchedData=!1,this.checkerData=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["select","id","madeOnDate","status","user","action","entity"],this.route.data.subscribe(t=>{this.searchData=t.makerCheckerResource,this.searchData.length>0&&(this.checkerData=!0),this.makerCheckerTemplate=t.makerCheckerTemplate,this.dataSource=new Wt(this.searchData),this.selection=new gr(!0,[])})}ngOnInit(){this.createMakerCheckerSearchForm()}createMakerCheckerSearchForm(){this.makerCheckerSearchForm=this.formBuilder.group({makerDateTimeFrom:[""],makerDateTimeto:[""],actionName:[""],entityName:[""],resourceId:[""]})}search(){let t=this.settingsService.dateFormat,n=qt(at({},this.makerCheckerSearchForm.value),{makerDateTimeFrom:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeFrom,t),makerDateTimeto:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeto,t)});this.tasksService.getMakerCheckerData(n).subscribe(i=>{this.searchData=i,this.searchData.length===0?this.noSearchedData=!0:this.noSearchedData=!1,this.dataSource=new Wt(this.searchData),this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length,n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}approveChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Approve Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to approve checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkCheckerApproveorReject("approve")})}rejectChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Reject Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to reject checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkCheckerApproveorReject("reject")})}deleteChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Delete Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to delete checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkDeleteChecker()})}bulkCheckerApproveorReject(t){let n=this.selection.selected.length,i=this.selection.selected,s=0;i.forEach(d=>{this.tasksService.executeMakerCheckerAction(d.id,t).subscribe(u=>{s++,n===s&&this.reload()})})}bulkDeleteChecker(){let t=this.selection.selected.length,n=this.selection.selected,i=0;n.forEach(s=>{this.tasksService.deleteMakerChecker(s.id).subscribe(d=>{i++,t===i&&this.reload()})})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-checker-inbox"]],decls:2,vars:2,consts:[["makerDateTimeFromPicker",""],["makerDateTimetoPicker",""],[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60","gap-8px"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill","flex-31",3,"click"],["matInput","","formControlName","makerDateTimeFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","makerDateTimeto",3,"min","max","matDatepicker"],[1,"flex-31"],["formControlName","actionName"],[3,"value"],["formControlName","entityName"],["matInput","","formControlName","resourceId"],["mat-raised-button","","color","primary","id","search-button",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","madeOnDate"],["matColumnDef","status"],["matColumnDef","user"],["matColumnDef","action"],["matColumnDef","entity"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check","fa-2x"]],template:function(n,i){n&1&&(E(0,_fi,61,42,"div",2),E(1,Cfi,5,3,"div",3)),n&2&&(I(i.checkerData?0:-1),a(),I(i.checkerData?-1:1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Oe,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,fi,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}.tab-container[_ngcontent-%COMP%] #search-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:1rem}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%], .tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var gP=Ds(vd());var OO=e=>["../../clients",e];function vfi(e,o){if(e&1){let t=Y();l(0,"button",8),R("click",function(){V(t);let i=w(2);return q(i.approveClients())}),b(1,"fa-icon",9),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Approve")," "))}function xfi(e,o){if(e&1){let t=Y();l(0,"th",20)(1,"mat-checkbox",21),R("change",function(i){V(t);let s=w(2).$implicit,d=w(2);return q(i?d.masterToggle(s.value):null)}),r()()}if(e&2){let t=w(2).$implicit,n=w(2);a(),g("checked",n.selection.hasValue()&&n.isAllSelected(t.value))("indeterminate",n.selection.hasValue()&&!n.isAllSelected(t.value)),br("aria-label",n.checkboxLabel(t.value))}}function bfi(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"mat-checkbox",23),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(4);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(4);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function yfi(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Sfi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,OO,t.id)),a(),v(" ",t.displayName," ")}}function wfi(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function Pfi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,OO,t.id)),a(),v(" ",t.accountNo," ")}}function Tfi(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Staff")))}function Mfi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,OO,t.id)),a(),v(" ",t.staffName," ")}}function Dfi(e,o){e&1&&b(0,"tr",25)}function Efi(e,o){if(e&1){let t=Y();l(0,"tr",26),R("click",function(){let i=V(t).$implicit,s=w(4);return q(s.selection.toggle(i))}),r()}}function Ifi(e,o){if(e&1&&(l(0,"table",10),p(1,"accountsFilter"),X(2,11),F(3,xfi,2,3,"th",12)(4,bfi,2,2,"td",13),Z(),X(5,14),F(6,yfi,3,3,"th",12)(7,Sfi,2,4,"td",15),Z(),X(8,16),F(9,wfi,3,3,"th",12)(10,Pfi,2,4,"td",15),Z(),X(11,17),F(12,Tfi,3,3,"th",12)(13,Mfi,2,4,"td",15),Z(),F(14,Dfi,1,0,"tr",18)(15,Efi,1,0,"tr",19),r()),e&2){let t=w().$implicit,n=w(2);g("dataSource",Ft(1,3,t.value,"clientApproval")),a(14),g("matHeaderRowDef",n.displayedColumns),a(),g("matRowDefColumns",n.displayedColumns)}}function Ofi(e,o){if(e&1&&(l(0,"h3"),c(1),r(),E(2,Ifi,16,6,"table",10)),e&2){let t=o.$implicit;a(),h(t.key),a(),I(t.value.length>0?2:-1)}}function Afi(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,vfi,4,3,"button",7),r()(),Se(8,Ofi,3,2,null,null,Pe),p(10,"keyvalue"),r()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,3,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","ACTIVATE_CLIENT"),a(),we(m(10,5,t.groupedClients))}}function Ffi(e,o){e&1&&(l(0,"div",1)(1,"div",27),b(2,"i",28),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending loans for approval")," "))}var _P=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.settingsService=T(Ot),this.tasksService=T(Ko),this.showData=!1,this.displayedColumns=["select","name","accountNumber","staff"],this.route.data.subscribe(t=>{this.groupedClients=gP.groupBy(t.groupedClientData.pageItems,"officeName"),Object.keys(this.groupedClients).length&&(this.showData=!0),this.dataSource=new Wt(t.groupedClientData.pageItems),this.selection=new gr(!0,[])})}isAllSelected(t){if(t){let n=this.selection.selected;return gP.difference(t,n).length===0}}masterToggle(t){t&&(this.isAllSelected(t)?t.forEach(n=>this.selection.deselect(n)):t.forEach(n=>this.selection.select(n)))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected(t)?"select":"deselect"} all`}approveClients(){let t=[new rr({controlName:"actDate",label:"Date",value:new Date,type:"datetime-local",required:!0})],n={title:"Enter Clients Activation Date",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&this.bulkClientApproval(s.data)})}bulkClientApproval(t){let n=this.settingsService.dateFormat,i=this.dateUtils.formatDate(t.value.actDate,n),s=this.settingsService.language.code,d={dateFormat:n,activationDate:i,locale:s},u=this.selection.selected.length,f=this.selection.selected,_=0;this.batchRequests=[];let C=1;f.forEach(x=>{let y="clients/"+x.id+"?command=activate",P=JSON.stringify(d),S={requestId:C++,relativeUrl:y,method:"POST",body:P};this.batchRequests.push(S)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(x=>{x.forEach(y=>{y.statusCode==="200"&&(_++,y.body=JSON.parse(y.body),u===_&&this.reload())})})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-approval"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","accountNumber"],["matColumnDef","staff"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,Afi,11,7,"div",0),E(1,Ffi,5,3,"div",1)),n&2&&(I(i.showData?0:-1),a(),I(i.showData?-1:1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,yg,he,os],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var lZ=Ds(vd());var kfi=e=>["../../clients",e,"general"],Bfi=e=>["../../clients",e,"loans-accounts","loan.id"];function Rfi(e,o){if(e&1){let t=Y();l(0,"button",8),R("click",function(){V(t);let i=w(2);return q(i.approveLoan())}),b(1,"fa-icon",9),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Approve")," "))}function Nfi(e,o){if(e&1){let t=Y();l(0,"th",22)(1,"mat-checkbox",23),R("change",function(i){V(t);let s=w(2).$implicit,d=w(2);return q(i?d.masterToggle(s.loans):null)}),r()()}if(e&2){let t=w(2).$implicit,n=w(2);a(),g("checked",n.selection.hasValue()&&n.isAllSelected(t.loans))("indeterminate",n.selection.hasValue()&&!n.isAllSelected(t.loans)),br("aria-label",n.checkboxLabel(t.loans))}}function Lfi(e,o){if(e&1){let t=Y();l(0,"td",24)(1,"mat-checkbox",25),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(4);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(4);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function Vfi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client")))}function qfi(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,kfi,t.clientId)),a(),v(" ",t.clientName," ")}}function zfi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan")))}function Hfi(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(3,Bfi,t.clientId)),a(),le(" ",t.loanProductName,"(",t.accountNo,") ")}}function Gfi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function jfi(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.principal))}}function $fi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Purpose")))}function Ufi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanPurposeName)}}function Wfi(e,o){e&1&&b(0,"tr",27)}function Qfi(e,o){if(e&1){let t=Y();l(0,"tr",28),R("click",function(){let i=V(t).$implicit,s=w(4);return q(s.selection.toggle(i))}),r()}}function Yfi(e,o){if(e&1&&(l(0,"table",11),X(1,12),F(2,Nfi,2,3,"th",13)(3,Lfi,2,2,"td",14),Z(),X(4,15),F(5,Vfi,3,3,"th",13)(6,qfi,2,4,"td",16),Z(),X(7,17),F(8,zfi,3,3,"th",13)(9,Hfi,2,5,"td",16),Z(),X(10,18),F(11,Gfi,3,3,"th",13)(12,jfi,3,3,"td",14),Z(),X(13,19),F(14,$fi,3,3,"th",13)(15,Ufi,2,1,"td",14),Z(),F(16,Wfi,1,0,"tr",20)(17,Qfi,1,0,"tr",21),r()),e&2){let t=w().$implicit,n=w(2);g("dataSource",t.loans),a(16),g("matHeaderRowDef",n.displayedColumns),a(),g("matRowDefColumns",n.displayedColumns)}}function Jfi(e,o){if(e&1&&(l(0,"h3",10),c(1),r(),E(2,Yfi,18,3,"table",11)),e&2){let t=o.$implicit;a(),h(t.name),a(),I(t.loans.length>0?2:-1)}}function Kfi(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,Rfi,4,3,"button",7),r()(),Se(8,Jfi,3,2,null,null,Pe),r()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,3,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","APPROVE_LOAN"),a(),we(t.officesArray)}}function Xfi(e,o){e&1&&(l(0,"div",1)(1,"div",29),b(2,"i",30),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending loans for approval")," "))}var CP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.translateService=T(yi),this.settingsService=T(Ot),this.tasksService=T(Ko),this.showData=!1,this.idToNodeMap={},this.displayedColumns=["select","clientName","loan","amount","loanPurpose"],this.route.data.subscribe(t=>{this.offices=t.officesData,this.loans=t.loansData.pageItems,this.setOfficeData()})}setOfficeData(){this.offices.forEach(n=>{n.loans=[],this.idToNodeMap[n.id]=n}),this.loans.forEach(n=>{if(n.status.pendingApproval){let i;n.clientOfficeId?i=this.idToNodeMap[n.clientOfficeId]:n.group?.officeId&&(i=this.idToNodeMap[n.group.officeId]),i&&i.loans.push(n)}});let t=[];this.offices.forEach(n=>{n.loans&&n.loans.length>0&&(this.showData=!0,t.push(n))}),this.officesArray=t,this.dataSource=new Wt(this.officesArray),this.selection=new gr(!0,[])}isAllSelected(t){if(t){let n=this.selection.selected;return lZ.difference(t,n).length===0}}masterToggle(t){t&&(this.isAllSelected(t)?t.forEach(n=>this.selection.deselect(n)):t.forEach(n=>this.selection.select(n)))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected(t)?"select":"deselect"} all`}approveLoan(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Approve Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Approve Loan")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkLoanApproval()})}bulkLoanApproval(){let t=this.settingsService.dateFormat,n=this.dateUtils.formatDate(new Date,t),i=this.settingsService.language.code,s={dateFormat:t,approvedOnDate:n,locale:i},d=this.selection.selected.length,u=this.selection.selected,f=0;this.batchRequests=[];let _=1;u.forEach(C=>{let x="loans/"+C.id+"?command=approve",y=JSON.stringify(s),P={requestId:_++,relativeUrl:x,method:"POST",body:y};this.batchRequests.push(P)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(x=>{x.statusCode==="200"&&(f++,x.body=JSON.parse(x.body),d===f&&this.loanResource())}),this.reload()})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}loanResource(){this.tasksService.getAllLoansToBeApproved().subscribe(t=>{this.loans=t.pageItems,this.loans=this.loans.filter(n=>n.status.waitingForDisbursal===!0),this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-approval"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],[1,"mat-h3"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","clientName"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loan"],["matColumnDef","amount"],["matColumnDef","loanPurpose"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,Kfi,10,5,"div",0),E(1,Xfi,5,3,"div",1)),n&2&&(I(i.showData?0:-1),a(),I(i.showData?-1:1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he,In],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var Zfi=e=>["../../clients",e,"general"],sZ=(e,o)=>["../../clients",e,"loans-accounts",o,"general"];function e1i(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(2);return q(i.disburseLoan())}),b(1,"fa-icon",20),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.menus.Disburse")," "))}function t1i(e,o){if(e&1){let t=Y();l(0,"th",21)(1,"mat-checkbox",22),R("change",function(i){V(t);let s=w(2);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(2);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function i1i(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"mat-checkbox",24),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(2);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(2);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function n1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function o1i(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,Zfi,t.clientId)),a(),v(" ",t.clientName," ")}}function a1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Loan Account"),"#"))}function r1i(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Ja(2,sZ,t.clientId,t.id)),a(),v(" ",t.accountNo," ")}}function l1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Product")))}function s1i(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Ja(2,sZ,t.clientId,t.id)),a(),v(" ",t.loanProductName," ")}}function c1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Principal")))}function p1i(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.principal))}}function m1i(e,o){e&1&&b(0,"tr",26)}function d1i(e,o){if(e&1){let t=Y();l(0,"tr",27),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.selection.toggle(i))}),r()}}function u1i(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,e1i,4,3,"button",7),r()(),l(8,"table",8),X(9,9),F(10,t1i,2,3,"th",10)(11,i1i,2,2,"td",11),Z(),X(12,12),F(13,n1i,3,3,"th",10)(14,o1i,2,4,"td",13),Z(),X(15,14),F(16,a1i,3,3,"th",10)(17,r1i,2,5,"td",13),Z(),X(18,15),F(19,l1i,3,3,"th",10)(20,s1i,2,5,"td",13),Z(),X(21,16),F(22,c1i,3,3,"th",10)(23,p1i,3,3,"td",11),Z(),F(24,m1i,1,0,"tr",17)(25,d1i,1,0,"tr",18),r()()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,6,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","APPROVE_LOAN"),a(),g("dataSource",t.dataSource),a(16),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function f1i(e,o){e&1&&(l(0,"div",1)(1,"div",28),b(2,"i",29),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending loan available for disbursal")," "))}var vP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.tasksService=T(Ko),this.displayedColumns=["select","client","loanAccountNumber","loanProduct","principal"],this.route.data.subscribe(t=>{this.loans=t.loansData.pageItems,this.loans=this.loans.filter(n=>n.status.waitingForDisbursal===!0),this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length,n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}disburseLoan(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Loan Disbursal"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Disburse Loan")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkLoanDisbursal()})}bulkLoanDisbursal(){let t=this.settingsService.dateFormat,n=this.dateUtils.formatDate(new Date,t),i=this.settingsService.language.code,s={dateFormat:t,approvedOnDate:n,locale:i},d=this.selection.selected.length,u=this.selection.selected,f=0;this.batchRequests=[];let _=1;u.forEach(C=>{let x="loans/"+C.id+"?command=disburse",y=JSON.stringify(s),P={requestId:_++,relativeUrl:x,method:"POST",body:y};this.batchRequests.push(P)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(x=>{x.statusCode==="200"&&(f++,x.body=JSON.parse(x.body),d===f&&this.loanResource())})})}loanResource(){this.tasksService.getAllLoansToBeDisbursed().subscribe(t=>{this.loans=t.pageItems,this.loans=this.loans.filter(n=>n.status.waitingForDisbursal===!0),this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-disbursal"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loanAccountNumber"],["matColumnDef","loanProduct"],["matColumnDef","principal"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,u1i,26,8,"div",0),E(1,f1i,5,3,"div",1)),n&2&&(I(i.loans&&i.loans.length>0?0:-1),a(),I(i.loans.length===0?1:-1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he,In],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var h1i=e=>["../../clients",e,"general"],g1i=(e,o)=>["../../clients",e,"loans",o,"general"];function _1i(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w(2);return q(i.bulkLoanReschedule("Approve"))}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Approve")," "))}function C1i(e,o){if(e&1){let t=Y();l(0,"button",23),R("click",function(){V(t);let i=w(2);return q(i.bulkLoanReschedule("Reject"))}),b(1,"fa-icon",24),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Reject")," "))}function v1i(e,o){if(e&1){let t=Y();l(0,"th",25)(1,"mat-checkbox",26),R("change",function(i){V(t);let s=w(2);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(2);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function x1i(e,o){if(e&1){let t=Y();l(0,"td",27)(1,"mat-checkbox",28),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(2);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(2);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function b1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client")))}function y1i(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,h1i,t.clientId)),a(),v(" ",t.clientName," ")}}function S1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Reschedule Request"),"#"))}function w1i(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function P1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Loan Account"),"#"))}function T1i(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Ja(2,g1i,t.clientId,t.loanId)),a(),v(" ",t.loanAccountNumber," ")}}function M1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Reschedule Form")))}function D1i(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.rescheduleFromDate))}}function E1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Reschedule Reason")))}function I1i(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.rescheduleReasonCodeValue.name)}}function O1i(e,o){e&1&&b(0,"tr",30)}function A1i(e,o){if(e&1){let t=Y();l(0,"tr",31),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.selection.toggle(i))}),r()}}function F1i(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,_1i,4,3,"button",7)(8,C1i,4,3,"button",8),r()(),l(9,"table",9),X(10,10),F(11,v1i,2,3,"th",11)(12,x1i,2,2,"td",12),Z(),X(13,13),F(14,b1i,3,3,"th",11)(15,y1i,2,4,"td",14),Z(),X(16,15),F(17,S1i,3,3,"th",11)(18,w1i,2,1,"td",12),Z(),X(19,16),F(20,P1i,3,3,"th",11)(21,T1i,2,5,"td",14),Z(),X(22,17),F(23,M1i,3,3,"th",11)(24,D1i,3,3,"td",12),Z(),X(25,18),F(26,E1i,3,3,"th",11)(27,I1i,2,1,"td",12),Z(),F(28,O1i,1,0,"tr",19)(29,A1i,1,0,"tr",20),r()()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,7,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),a(),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),a(),g("dataSource",t.dataSource),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function k1i(e,o){e&1&&(l(0,"div",1)(1,"div",32),b(2,"i",33),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending rescheduled loan available for this account")," "))}var xP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.settingsService=T(Ot),this.translateService=T(yi),this.tasksService=T(Ko),this.displayedColumns=["select","client","rescheduleRequestNo","loanAccountNo","rescheduleForm","rescheduleReason"],this.route.data.subscribe(t=>{this.loans=t.rescheduleLoansData,this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length,n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}bulkLoanReschedule(t){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Reschedule Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to")+t+this.translateService.instant("labels.dialogContext.the Reschedule Loan")}}).afterClosed().subscribe(i=>{i.confirm&&this.bulkLoanRescheduleRequest(t.toLowerCase())})}bulkLoanRescheduleRequest(t){let n=this.settingsService.dateFormat,i=this.dateUtils.formatDate(this.settingsService.businessDate,n),s=this.settingsService.language.code,d={dateFormat:n,locale:s};t==="approve"?d.approvedOnDate=i:d.rejectedOnDate=i;let u=this.selection.selected;this.batchRequests=[];let f=1;u.forEach(_=>{let C="rescheduleloans/"+_.id+"?command="+t,x=JSON.stringify(d),y={requestId:f++,relativeUrl:C,method:"POST",body:x};this.batchRequests.push(y)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(_=>{this.reload()})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reschedule-loan"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","reject",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","rescheduleRequestNo"],["matColumnDef","loanAccountNo"],["matColumnDef","rescheduleForm"],["matColumnDef","rescheduleReason"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,F1i,30,9,"div",0),E(1,k1i,5,3,"div",1)),n&2&&(I(i.loans&&i.loans.length>0?0:-1),a(),I(i.loans.length===0?1:-1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var cZ=Ds(vd());function B1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),p(3,"translate"),r(),l(4,"span",14),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Resource ID"),":"),a(3),h(t.checkerInboxDetail.resourceId)}}function R1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),p(3,"translate"),r(),l(4,"span",14),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Office"),":"),a(3),h(t.checkerInboxDetail.officeName)}}function N1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),p(3,"translate"),r(),l(4,"span",14),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Savings Account Number"),":"),a(3),h(t.checkerInboxDetail.savingsAccountNo)}}function L1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),r(),l(3,"span",14),c(4),r()()),e&2){let t=w();a(2),v(" ",t.checkerInboxDetail.groupLevelName),a(2),h(t.checkerInboxDetail.groupName)}}function V1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),r(),l(3,"span",14),c(4),r()()),e&2){let t=o.$implicit;a(2),v("",t.key,":"),a(2),h(t.value)}}function q1i(e,o){if(e&1&&(l(0,"h3",11),c(1),p(2,"translate"),r(),b(3,"mat-divider",10),Se(4,V1i,5,2,"div",12,Pe),p(6,"keyvalue")),e&2){let t=w();a(),h(m(2,2,"labels.heading.Command")),a(2),g("inset",!0),a(),we(m(6,4,t.jsondata))}}var bP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.router=T(qe),this.translateService=T(yi),this.tasksService=T(Ko),this.displayJSONData=!1,this.route.data.subscribe(t=>{this.checkerInboxDetail=t.checkerInboxDetail,this.jsondata=JSON.parse(this.checkerInboxDetail.commandAsJson),this.displayJSONData=!cZ.isEmpty(this.jsondata)})}approveChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Approve Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to approve checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.tasksService.executeMakerCheckerAction(this.checkerInboxDetail.id,"approve").subscribe(i=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}rejectChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Reject Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to reject checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.tasksService.executeMakerCheckerAction(this.checkerInboxDetail.id,"reject").subscribe(i=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}deleteChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Delete Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to delete checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.tasksService.deleteMakerChecker(this.checkerInboxDetail.id).subscribe(i=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-checker-inbox"]],decls:67,vars:48,consts:[[1,"layout-row","align-end","gap-1percent","layout-lt-md-column","container","m-b-20"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-fill"],[3,"inset"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),R("click",function(){return i.approveChecker()}),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.deleteChecker()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r(),l(9,"button",5),R("click",function(){return i.rejectChecker()}),b(10,"fa-icon",6),c(11),p(12,"translate"),r()(),l(13,"div",7)(14,"mat-card")(15,"mat-card-content")(16,"div",8)(17,"h2",9),c(18),p(19,"translate"),r(),b(20,"mat-divider",10),l(21,"h3",11),c(22),p(23,"translate"),r(),b(24,"mat-divider",10),l(25,"div",12)(26,"span",13),c(27),p(28,"translate"),r(),l(29,"span",14),c(30),r()(),l(31,"div",12)(32,"span",13),c(33),p(34,"translate"),r(),l(35,"span",14),c(36),r()(),l(37,"div",12)(38,"span",13),c(39),p(40,"translate"),r(),l(41,"span",14),c(42),r()(),l(43,"div",12)(44,"span",13),c(45),p(46,"translate"),r(),l(47,"span",14),c(48),r()(),l(49,"div",12)(50,"span",13),c(51),p(52,"translate"),r(),l(53,"span",14),c(54),r()(),E(55,B1i,6,4,"div",12),l(56,"div",12)(57,"span",13),c(58),p(59,"translate"),r(),l(60,"span",14),c(61),p(62,"dateFormat"),r()(),E(63,R1i,6,4,"div",12),E(64,N1i,6,4,"div",12),E(65,L1i,5,2,"div",12),E(66,q1i,7,6),r()()()()),n&2&&(a(3),v("",m(4,24,"labels.buttons.Approve")," "),a(4),v("",m(8,26,"labels.buttons.Delete")," "),a(4),v("",m(12,28,"labels.buttons.Reject")," "),a(7),h(m(19,30,"labels.heading.View Checker Inbox")),a(2),g("inset",!0),a(2),h(m(23,32,"labels.heading.Details")),a(2),g("inset",!0),a(3),v("",m(28,34,"labels.inputs.ID"),":"),a(3),h(i.checkerInboxDetail.id),a(3),v("",m(34,36,"labels.inputs.Status"),":"),a(3),h(i.checkerInboxDetail.processingResult),a(3),v("",m(40,38,"labels.inputs.User"),":"),a(3),h(i.checkerInboxDetail.maker),a(3),v("",m(46,40,"labels.inputs.Action"),":"),a(3),h(i.checkerInboxDetail.actionName),a(3),v("",m(52,42,"labels.inputs.Entity"),":"),a(3),h(i.checkerInboxDetail.entityName),a(),I(i.checkerInboxDetail.resourceId?55:-1),a(3),v("",m(59,44,"labels.inputs.Date"),":"),a(3),h(m(62,46,i.checkerInboxDetail.madeOnDate)),a(2),I(i.checkerInboxDetail.officeName?63:-1),a(),I(i.checkerInboxDetail.savingsAccountNo?64:-1),a(),I(i.checkerInboxDetail.groupLevelName?65:-1),a(),I(i.displayJSONData?66:-1))},dependencies:[ue,fe,Ue,Je,xe,ke,Ri,yg,Pi,he],styles:[".mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}"]})}}return e})();var AO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getMakerCheckerData()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var FO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getGroupedClientsData()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var kO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getAllOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var BO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getAllLoansToBeApproved()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var RO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getAllLoansToBeDisbursed()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var NO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getPendingRescheduleLoans()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var LO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getMakerCheckerTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var VO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(t){let n=t.paramMap.get("id");return this.tasksService.getCheckerInboxDetail(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var z1i=[_o.withShell([{path:"checker-inbox-and-tasks",component:fP,data:{title:"Checker Inbox & Tasks",breadcrumb:"Checker Inbox & Tasks"},children:[{path:"checker-inbox",component:hP,data:{title:"Checker Inbox"},resolve:{makerCheckerResource:AO,makerCheckerTemplate:LO}},{path:"client-approval",component:_P,data:{title:"Client Approval"},resolve:{groupedClientData:FO}},{path:"loan-approval",component:CP,data:{title:"Laon Approval"},resolve:{officesData:kO,loansData:BO}},{path:"loan-disbursal",component:vP,data:{title:"Loan Disbursal"},resolve:{loansData:RO}},{path:"reschedule-loan",component:xP,data:{title:"Reschedule Loan"},resolve:{rescheduleLoansData:NO}}]},{path:"checker-inbox-and-tasks/checker-inbox",children:[{path:":id/view",component:bP,data:{title:"View Checker Inbox Component",routeParamBreadcrumb:"clientId"},resolve:{checkerInboxDetail:VO}}]}])],pZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[AO,FO,kO,BO,RO,NO,LO,VO],imports:[gn.forChild(z1i),gn]})}}return e})();var mZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,pZ,Er,ha,fP,hP,_P,CP,vP,xP,bP]})}}return e})();var dZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ue,qF,Ag,kg,w_,T_,Ar,ss,Tx]})}}return e})();var uZ=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.authService=T(Ia)}ngOnInit(){return qn(this,null,function*(){try{let t=sessionStorage.getItem("auth_code");if(t){let n=sessionStorage.getItem("code_verifier");try{yield this.authService.exchangeCodeForTokens(t,n)}finally{sessionStorage.removeItem("auth_code"),sessionStorage.removeItem("code_verifier")}}}catch(t){console.error("Authentication failed:",t),this.router.navigate(["/login"])}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-callback"]],decls:5,vars:0,consts:[[1,"loader-wrapper"],[1,"bottom","triangle"],[1,"top","triangle"],[1,"left","triangle"],[1,"right","triangle"]],template:function(n,i){n&1&&(CF(0,"div",0),Cg(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),vF())},encapsulation:2})}}return e})();var H1i=[{path:"callback",component:uZ},{path:"**",component:x_}],fZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forRoot(H1i,{useHash:!0}),gn]})}}return e})();var hZ=(()=>{class e{http;prefix;suffix;constructor(t,n="/assets/i18n/",i=".json"){this.http=t,this.prefix=n,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}static \u0275fac=function(n){return new(n||e)(hl(ko),hl(String),hl(String))};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})();var gZ=(()=>{class e{constructor(){this.authService=T(Ia),this.environment=un,this.FINERACT_PLATFORM_TENANT_IDENTIFIER=un.fineractPlatformTenantId}intercept(t,n){let i=this.authService.getAccessToken(),s={"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":t.headers.get("Content-Type")||"application/json"},u=["/auth/test","/health"].some(_=>t.url.includes(_));i&&!u&&(s.Authorization=`Bearer ${i}`);let f=t.clone({setHeaders:s});return n.handle(f).pipe(ug(_=>_ instanceof AF&&_.status===401&&!u?af(this.handle401Error(f,n)):Z7(()=>_)))}handle401Error(t,n){return qn(this,null,function*(){try{yield this.authService.refreshToken();let i=this.authService.getAccessToken();if(i){let s=t.clone({setHeaders:{Authorization:`Bearer ${i}`,"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":t.headers.get("Content-Type")||"application/json"}});return n.handle(s).toPromise()}else throw new Error("No new access token obtained after refresh")}catch(i){throw console.error("Error in handle401Error, forcing logout"),i}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var qO=class{handle(o){return o.key.replace("labels.catalogs.","")}};var _Z=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e,bootstrap:[Q8]})}static{this.\u0275inj=Hi({providers:[bg,Ia,{provide:bp,useClass:un.OIDC.oidcServerEnabled?gZ:cf,multi:!0}],imports:[yp.forRoot({loader:{provide:zF,useFactory:(t,n)=>{let i=new ko(t);return new hZ(i,"/assets/translations/",".json")},deps:[OF,PF]},missingTranslationHandler:{provide:HF,useClass:qO}}),wg,C_,Ag,oB,v9,b9,rZ,S9,P9,Z9,QX,nN,lN,yN,YK,aX,MX,qX,GX,ZX,KX,oZ,mZ,dZ,fZ,x_]})}}return e})();un.production&&void 0;IF().bootstrapModule(_Z).catch(e=>console.log(e)); +`+f+" | "+MD("",i.column-1," ")+MD("",x,"^")}else o+=` + at `+d}return o};Ab.buildMessage=function(e,o){var t={literal:function(_){return'"'+i(_.text)+'"'},class:function(_){var C=_.parts.map(function(x){return Array.isArray(x)?s(x[0])+"-"+s(x[1]):s(x)});return"["+(_.inverted?"^":"")+C.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(_){return _.description}};function n(_){return _.charCodeAt(0).toString(16).toUpperCase()}function i(_){return _.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+n(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+n(C)})}function s(_){return _.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(C){return"\\x0"+n(C)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(C){return"\\x"+n(C)})}function d(_){return t[_.type](_)}function u(_){var C=_.map(d),x,y;if(C.sort(),C.length>0){for(x=1,y=1;xPJ,forceCollide:()=>py,forceLink:()=>my,forceManyBody:()=>uy,forceRadial:()=>QJ,forceSimulation:()=>dy,forceX:()=>YJ,forceY:()=>JJ});function PJ(e,o){var t,n=1;e==null&&(e=0),o==null&&(o=0);function i(){var s,d=t.length,u,f=0,_=0;for(s=0;s=(x=(u+_)/2))?u=x:_=x,(D=t>=(y=(f+C)/2))?f=y:C=y,i=s,!(s=s[k=D<<1|M]))return i[k]=d,e;if(P=+e._x.call(null,s.data),S=+e._y.call(null,s.data),o===P&&t===S)return d.next=s,i?i[k]=d:e._root=d,e;do i=i?i[k]=new Array(4):e._root=new Array(4),(M=o>=(x=(u+_)/2))?u=x:_=x,(D=t>=(y=(f+C)/2))?f=y:C=y;while((k=D<<1|M)===(z=(S>=y)<<1|P>=x));return i[z]=s,i[k]=d,e}function DJ(e){var o,t,n=e.length,i,s,d=new Array(n),u=new Array(n),f=1/0,_=1/0,C=-1/0,x=-1/0;for(t=0;tC&&(C=i),s<_&&(_=s),s>x&&(x=s));if(f>C||_>x)return this;for(this.cover(f,_).cover(C,x),t=0;te||e>=i||n>o||o>=s;)switch(_=(oC||(u=S.y0)>x||(f=S.x1)=k)<<1|e>=D)&&(S=y[y.length-1],y[y.length-1]=y[y.length-1-M],y[y.length-1-M]=S)}else{var z=e-+this._x.call(null,P.data),U=o-+this._y.call(null,P.data),J=z*z+U*U;if(J=(y=(d+f)/2))?d=y:f=y,(M=x>=(P=(u+_)/2))?u=P:_=P,o=t,!(t=t[D=M<<1|S]))return this;if(!t.length)break;(o[D+1&3]||o[D+2&3]||o[D+3&3])&&(n=o,k=D)}for(;t.data!==e;)if(i=t,!(t=t.next))return this;return(s=t.next)&&delete t.next,i?(s?i.next=s:delete i.next,this):o?(s?o[D]=s:delete o[D],(t=o[0]||o[1]||o[2]||o[3])&&t===(o[3]||o[2]||o[1]||o[0])&&!t.length&&(n?n[k]=t:this._root=t),this):(this._root=s,this)}function kJ(e){for(var o=0,t=e.length;oy.index){var j=P-se.x-se.vx,W=S-se.y-se.vy,pe=j*j+W*W;peP+de||eeS+de||ae_.r&&(_.r=_[C].r)}function f(){if(o){var _,C=o.length,x;for(t=new Array(C),_=0;_[o(re,ee,d),re])),J;for(D=0,u=new Array(k);D(e=(1664525*e+1013904223)%4294967296)/4294967296}function UJ(e){return e.x}function WJ(e){return e.y}var I1t=10,O1t=Math.PI*(3-Math.sqrt(5));function dy(e){var o,t=1,n=.001,i=1-Math.pow(n,1/300),s=0,d=.6,u=new Map,f=Rd(x),_=iu("tick","end"),C=$J();e==null&&(e=[]);function x(){y(),_.call("tick",o),t1?(D==null?u.delete(M):u.set(M,S(D)),o):u.get(M)},find:function(M,D,k){var z=0,U=e.length,J,re,ee,ae,se;for(k==null?k=1/0:k*=k,z=0;z1?(_.on(M,D),o):_.on(M)}}}function uy(){var e,o,t,n,i=wa(-30),s,d=1,u=1/0,f=.81;function _(P){var S,M=e.length,D=Qd(e,UJ,WJ).visitAfter(x);for(n=P,S=0;S=u)return;(P.data!==o||P.next)&&(k===0&&(k=zs(t),J+=k*k),z===0&&(z=zs(t),J+=z*z),J({$implicit:e});function Yht(e,o){if(e&1&&(na(),gl(0,19)),e&2){let t=w(2);g("ngTemplateOutlet",t.defsTemplate)}}function Jht(e,o){if(e&1&&(na(),b(0,"path",20)),e&2){let t=o.$implicit;Dn("d",t.textPath)("id",t.id)}}function Kht(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.clusterTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function Xht(e,o){if(e&1&&(na(),l(0,"g",25),b(1,"rect"),l(2,"text",26),c(3),r()()),e&2){let t=w().$implicit;a(),Dn("width",t.dimension.width)("height",t.dimension.height)("fill",t.data==null?null:t.data.color),a(),Dn("x",10)("y",t.dimension.height/2),a(),v(" ",t.label," ")}}function Zht(e,o){if(e&1){let t=Y();na(),l(0,"g",21,1),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.onClick(i))}),F(2,Kht,1,4,"ng-container",22)(3,Xht,4,6,"g",23),r()}if(e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldClusters.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.clusterTemplate&&!t.hidden),a(),g("ngIf",!n.clusterTemplate)}}function egt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.nodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function tgt(e,o){if(e&1&&(na(),l(0,"g",29),b(1,"rect"),l(2,"text",26),c(3),r()()),e&2){let t=w().$implicit;a(),Dn("width",t.dimension.width)("height",t.dimension.height)("fill",t.data==null?null:t.data.color),a(),Dn("x",10)("y",t.dimension.height/2),a(),v(" ",t.label," ")}}function igt(e,o){if(e&1){let t=Y();na(),l(0,"g",27,2),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.onClick(i))})("mousedown",function(i){let s=V(t).$implicit,d=w(2);return q(d.onNodeMouseDown(i,s))}),F(2,egt,1,4,"ng-container",22)(3,tgt,4,6,"g",28),r()}if(e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldCompoundNodes.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.nodeTemplate&&!t.hidden),a(),g("ngIf",!n.nodeTemplate)}}function ngt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.linkTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function ogt(e,o){if(e&1&&(na(),b(0,"path",32)),e&2){let t=w().$implicit;Dn("d",t.line)}}function agt(e,o){if(e&1&&(na(),l(0,"g",30,3),F(2,ngt,1,4,"ng-container",22)(3,ogt,1,1,"path",31),r()),e&2){let t=o.$implicit,n=w(2);g("id",t.id),a(2),g("ngIf",n.linkTemplate),a(),g("ngIf",!n.linkTemplate)}}function rgt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.nodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function lgt(e,o){if(e&1&&(na(),b(0,"circle",34)),e&2){let t=w().$implicit;Dn("cx",t.dimension.width/2)("cy",t.dimension.height/2)("fill",t.data==null?null:t.data.color)}}function sgt(e,o){if(e&1){let t=Y();na(),l(0,"g",27,2),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.onClick(i))})("mousedown",function(i){let s=V(t).$implicit,d=w(2);return q(d.onNodeMouseDown(i,s))}),F(2,rgt,1,4,"ng-container",22)(3,lgt,1,3,"circle",33),r()}if(e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldNodes.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.nodeTemplate&&!t.hidden),a(),g("ngIf",!n.nodeTemplate)}}function cgt(e,o){if(e&1){let t=Y();na(),l(0,"g",8),R("touchstart",function(i){V(t);let s=w();return q(s.onTouchStart(i))})("touchend",function(){V(t);let i=w();return q(i.onTouchEnd())}),l(1,"defs"),F(2,Yht,1,1,"ng-container",9)(3,Jht,1,2,"path",10),r(),l(4,"rect",11),R("mousedown",function(){V(t);let i=w();return q(i.isPanning=!0)}),r(),SF(5),l(6,"g",12),F(7,Zht,4,6,"g",13),r(),l(8,"g",14),F(9,igt,4,6,"g",15),r(),l(10,"g",16),F(11,agt,4,3,"g",17),r(),l(12,"g",18,0),F(14,sgt,4,6,"g",15),r()()}if(e&2){let t=w();Dn("transform",t.transform),a(2),g("ngIf",t.defsTemplate),a(),g("ngForOf",t.graph.edges),a(),Dn("width",t.dims.width*100)("height",t.dims.height*100)("transform","translate("+(-t.dims.width||0)*50+","+(-t.dims.height||0)*50+")"),a(3),g("ngForOf",t.graph.clusters)("ngForTrackBy",t.trackNodeBy),a(2),g("ngForOf",t.graph.compoundNodes)("ngForTrackBy",t.trackNodeBy),a(2),g("ngForOf",t.graph.edges)("ngForTrackBy",t.trackLinkBy),a(3),g("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy)}}function pgt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.miniMapNodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function mgt(e,o){if(e&1&&(na(),gl(0,24)),e&2){let t=w().$implicit,n=w(2);g("ngTemplateOutlet",n.nodeTemplate)("ngTemplateOutletContext",Nt(2,Eu,t))}}function dgt(e,o){if(e&1&&(na(),b(0,"circle",34)),e&2){let t=w().$implicit,n=w(2);Dn("cx",t.dimension.width/2/n.minimapScaleCoefficient)("cy",t.dimension.height/2/n.minimapScaleCoefficient)("fill",t.data==null?null:t.data.color)}}function ugt(e,o){if(e&1&&(na(),l(0,"g",40,2),F(2,pgt,1,4,"ng-container",22)(3,mgt,1,4,"ng-container",22)(4,dgt,1,3,"circle",33),r()),e&2){let t=o.$implicit,n=w(2);_l("old-node",n.animate&&n.oldNodes.has(t.id)),g("id",t.id),Dn("transform",t.transform),a(2),g("ngIf",n.miniMapNodeTemplate),a(),g("ngIf",!n.miniMapNodeTemplate&&n.nodeTemplate),a(),g("ngIf",!n.nodeTemplate&&!n.miniMapNodeTemplate)}}function fgt(e,o){if(e&1){let t=Y();na(),l(0,"g",35)(1,"rect",36),R("mousedown",function(i){V(t);let s=w();return q(s.onMinimapPanTo(i))}),r(),l(2,"g")(3,"g",37),F(4,ugt,5,7,"g",38),r(),l(5,"rect",39),R("mousedown",function(){V(t);let i=w();return q(i.onMinimapDragMouseDown())}),r()()()}if(e&2){let t=w();Dn("transform",t.minimapTransform)("clip-path","url(#"+t.minimapClipPathId+")"),a(),Dn("width",t.graphDims.width/t.minimapScaleCoefficient)("height",t.graphDims.height/t.minimapScaleCoefficient),a(),vp("transform","translate("+-t.minimapOffsetX/t.minimapScaleCoefficient+"px,"+-t.minimapOffsetY/t.minimapScaleCoefficient+"px)"),a(),vp("transform","scale("+1/t.minimapScaleCoefficient+")"),a(),g("ngForOf",t.graph.nodes)("ngForTrackBy",t.trackNodeBy),a(),_l("panning",t.isMinimapPanning),Dn("transform","translate("+t.panOffsetX/t.zoomLevel/-t.minimapScaleCoefficient+","+t.panOffsetY/t.zoomLevel/-t.minimapScaleCoefficient+")")("width",t.width/t.minimapScaleCoefficient/t.zoomLevel)("height",t.height/t.minimapScaleCoefficient/t.zoomLevel)}}var LK={};function rp(){let e=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return e=`a${e}`,LK[e]?rp():(LK[e]=!0,e)}var Ay=(function(e){return e.Both="both",e.Horizontal="horizontal",e.Vertical="vertical",e})(Ay||{}),Fy=(function(e){return e.UpperLeft="UpperLeft",e.UpperRight="UpperRight",e})(Fy||{});function hgt(e,o,t,n){n=n||{};let i,s,d=null,u=0;function f(){u=n.leading===!1?0:+new Date,d=null,s=o.apply(e,i)}return function(..._){let C=+new Date;!u&&n.leading===!1&&(u=C);let x=t-(C-u);return i=_,x<=0?(clearTimeout(d),d=null,u=C,s=o.apply(e,i)):!d&&n.trailing!==!1&&(d=setTimeout(f,x)),s}}function ggt(e,o){return function(n,i,s){return{configurable:!0,enumerable:s.enumerable,get:function(){return Object.defineProperty(this,i,{configurable:!0,enumerable:s.enumerable,value:hgt(this,s.value,e,o)}),this[i]}}}}var VK=[{name:"vivid",selectable:!0,group:"Ordinal",domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:"Ordinal",domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:"Ordinal",domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:"Ordinal",domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:"Continuous",domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:"Continuous",domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:"Continuous",domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:"Ordinal",domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:"Ordinal",domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:"Ordinal",domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:"Ordinal",domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:"Ordinal",domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:"Ordinal",domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:"Ordinal",domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:"Ordinal",domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}],EI=class{scale;colorDomain;domain;customColors;constructor(o,t,n){typeof o=="string"&&(o=VK.find(i=>i.name===o)),this.colorDomain=o.domain,this.domain=t,this.customColors=n,this.scale=this.generateColorScheme(o,this.domain)}generateColorScheme(o,t){return typeof o=="string"&&(o=VK.find(n=>n.name===o)),w1().range(o.domain).domain(t)}getColor(o){if(o==null)throw new Error("Value can not be null");if(typeof this.customColors=="function")return this.customColors(o);let t=o.toString(),n;return this.customColors&&this.customColors.length>0&&(n=this.customColors.find(i=>i.name.toLowerCase()===t.toLowerCase())),n?n.value:this.scale(o)}};function qK({width:e,height:o}){let t=e,n=o;return t=Math.max(0,t),n=Math.max(0,n),{width:Math.floor(t),height:Math.floor(n)}}var _gt=(()=>{class e{element;zone;visible=new bi;timeout;isVisible=!1;constructor(t,n){this.element=t,this.zone=n,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){let t=()=>{if(!this.element)return;let{offsetHeight:n,offsetWidth:i}=this.element.nativeElement;n&&i?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>t())})}static \u0275fac=function(n){return new(n||e)(Zo(lf),Zo(pd))};static \u0275dir=md({type:e,selectors:[["visibility-observer"]],outputs:{visible:"visible"},standalone:!1})}return e})(),ky=(function(e){return e.LEFT_TO_RIGHT="LR",e.RIGHT_TO_LEFT="RL",e.TOP_TO_BOTTOM="TB",e.BOTTOM_TO_TOM="BT",e})(ky||{});var II=class{defaultSettings={orientation:ky.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0};settings={};dagreGraph;dagreNodes;dagreEdges;run(o){this.createDagreGraph(o),sm.layout(this.dagreGraph),o.edgeLabels=this.dagreGraph._edgeLabels;for(let t in this.dagreGraph._nodes){let n=this.dagreGraph._nodes[t],i=o.nodes.find(s=>s.id===n.id);i.position={x:n.x,y:n.y},i.dimension={width:n.width,height:n.height}}return o}updateEdge(o,t){let n=o.nodes.find(f=>f.id===t.source),i=o.nodes.find(f=>f.id===t.target),s=n.position.y<=i.position.y?-1:1,d={x:n.position.x,y:n.position.y-s*(n.dimension.height/2)},u={x:i.position.x,y:i.position.y+s*(i.dimension.height/2)};return t.points=[d,u],o}createDagreGraph(o){let t=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new sm.graphlib.Graph({compound:t.compound,multigraph:t.multigraph}),this.dagreGraph.setGraph({rankdir:t.orientation,marginx:t.marginX,marginy:t.marginY,edgesep:t.edgePadding,ranksep:t.rankPadding,nodesep:t.nodePadding,align:t.align,acyclicer:t.acyclicer,ranker:t.ranker,multigraph:t.multigraph,compound:t.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=o.nodes.map(n=>{let i=Object.assign({},n);return i.width=n.dimension.width,i.height=n.dimension.height,i.x=n.position.x,i.y=n.position.y,i}),this.dagreEdges=o.edges.map(n=>{let i=Object.assign({},n);return i.id||(i.id=rp()),i});for(let n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(let n of this.dagreEdges)t.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},OI=class{defaultSettings={orientation:ky.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,multigraph:!0,compound:!0};settings={};dagreGraph;dagreNodes;dagreClusters;dagreEdges;run(o){this.createDagreGraph(o),sm.layout(this.dagreGraph),o.edgeLabels=this.dagreGraph._edgeLabels;let t=n=>{let i=this.dagreGraph._nodes[n.id];return qt(at({},n),{position:{x:i.x,y:i.y},dimension:{width:i.width,height:i.height}})};return o.clusters=(o.clusters||[]).map(t),o.nodes=o.nodes.map(t),o}updateEdge(o,t){let n=o.nodes.find(f=>f.id===t.source),i=o.nodes.find(f=>f.id===t.target),s=n.position.y<=i.position.y?-1:1,d={x:n.position.x,y:n.position.y-s*(n.dimension.height/2)},u={x:i.position.x,y:i.position.y+s*(i.dimension.height/2)};return t.points=[d,u],o}createDagreGraph(o){let t=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new sm.graphlib.Graph({compound:t.compound,multigraph:t.multigraph}),this.dagreGraph.setGraph({rankdir:t.orientation,marginx:t.marginX,marginy:t.marginY,edgesep:t.edgePadding,ranksep:t.rankPadding,nodesep:t.nodePadding,align:t.align,acyclicer:t.acyclicer,ranker:t.ranker,multigraph:t.multigraph,compound:t.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=o.nodes.map(n=>{let i=Object.assign({},n);return i.width=n.dimension.width,i.height=n.dimension.height,i.x=n.position.x,i.y=n.position.y,i}),this.dagreClusters=o.clusters||[],this.dagreEdges=o.edges.map(n=>{let i=Object.assign({},n);return i.id||(i.id=rp()),i});for(let n of this.dagreNodes)this.dagreGraph.setNode(n.id,n);for(let n of this.dagreClusters)this.dagreGraph.setNode(n.id,n),n.childNodeIds.forEach(i=>{this.dagreGraph.setParent(i,n.id)});for(let n of this.dagreEdges)t.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}},Cgt="\0";var zK="",ph=class{defaultSettings={orientation:ky.LEFT_TO_RIGHT,marginX:20,marginY:20,edgePadding:100,rankPadding:100,nodePadding:50,curveDistance:20,multigraph:!0,compound:!0};settings={};dagreGraph;dagreNodes;dagreEdges;run(o){this.createDagreGraph(o),sm.layout(this.dagreGraph),o.edgeLabels=this.dagreGraph._edgeLabels;for(let t in this.dagreGraph._nodes){let n=this.dagreGraph._nodes[t],i=o.nodes.find(s=>s.id===n.id);i.position={x:n.x,y:n.y},i.dimension={width:n.width,height:n.height}}for(let t of o.edges)this.updateEdge(o,t);return o}updateEdge(o,t){let n=o.nodes.find(S=>S.id===t.source),i=o.nodes.find(S=>S.id===t.target),s=this.settings.orientation==="BT"||this.settings.orientation==="TB"?"y":"x",d=s==="y"?"x":"y",u=s==="y"?"height":"width",f=n.position[s]<=i.position[s]?-1:1,_={[d]:n.position[d],[s]:n.position[s]-f*(n.dimension[u]/2)},C={[d]:i.position[d],[s]:i.position[s]+f*(i.dimension[u]/2)},x=this.settings.curveDistance||this.defaultSettings.curveDistance;t.points=[_,{[d]:_[d],[s]:_[s]-f*x},{[d]:C[d],[s]:C[s]+f*x},C];let y=`${t.source}${zK}${t.target}${zK}${Cgt}`,P=o.edgeLabels[y];return P&&(P.points=t.points),o}createDagreGraph(o){let t=Object.assign({},this.defaultSettings,this.settings);this.dagreGraph=new sm.graphlib.Graph({compound:t.compound,multigraph:t.multigraph}),this.dagreGraph.setGraph({rankdir:t.orientation,marginx:t.marginX,marginy:t.marginY,edgesep:t.edgePadding,ranksep:t.rankPadding,nodesep:t.nodePadding,align:t.align,acyclicer:t.acyclicer,ranker:t.ranker,multigraph:t.multigraph,compound:t.compound}),this.dagreGraph.setDefaultEdgeLabel(()=>({})),this.dagreNodes=o.nodes.map(n=>{let i=Object.assign({},n);return i.width=n.dimension.width,i.height=n.dimension.height,i.x=n.position.x,i.y=n.position.y,i}),this.dagreEdges=o.edges.map(n=>{let i=Object.assign({},n);return i.id||(i.id=rp()),i});for(let n of this.dagreNodes)n.width||(n.width=20),n.height||(n.height=30),this.dagreGraph.setNode(n.id,n);for(let n of this.dagreEdges)t.multigraph?this.dagreGraph.setEdge(n.source,n.target,n,n.id):this.dagreGraph.setEdge(n.source,n.target);return this.dagreGraph}};function Du(e){return typeof e=="string"?{id:e,x:0,y:0}:e}var AI=class{defaultSettings={force:dy().force("charge",uy().strength(-150)).force("collide",py(5)),forceLink:my().id(o=>o.id).distance(()=>100)};settings={};inputGraph;outputGraph;d3Graph;outputGraph$=new Rr;draggingStart;run(o){return this.inputGraph=o,this.d3Graph={nodes:[...this.inputGraph.nodes.map(t=>at({},t))],edges:[...this.inputGraph.edges.map(t=>at({},t))]},this.outputGraph={nodes:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&this.settings.force.nodes(this.d3Graph.nodes).force("link",this.settings.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}updateEdge(o,t){let n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.nodes(this.d3Graph.nodes).force("link",n.forceLink.links(this.d3Graph.edges)).alpha(.5).restart().on("tick",()=>{this.outputGraph$.next(this.d3GraphToOutputGraph(this.d3Graph))}),this.outputGraph$.asObservable()}d3GraphToOutputGraph(o){return this.outputGraph.nodes=this.d3Graph.nodes.map(t=>qt(at({},t),{id:t.id||rp(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=this.d3Graph.edges.map(t=>qt(at({},t),{source:Du(t.source).id,target:Du(t.target).id,points:[{x:Du(t.source).x,y:Du(t.source).y},{x:Du(t.target).x,y:Du(t.target).y}]})),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(o,t){this.settings.force.alphaTarget(.3).restart();let n=this.d3Graph.nodes.find(i=>i.id===o.id);n&&(this.draggingStart={x:t.x-n.x,y:t.y-n.y},n.fx=t.x-this.draggingStart.x,n.fy=t.y-this.draggingStart.y)}onDrag(o,t){if(!o)return;let n=this.d3Graph.nodes.find(i=>i.id===o.id);n&&(n.fx=t.x-this.draggingStart.x,n.fy=t.y-this.draggingStart.y)}onDragEnd(o,t){if(!o)return;let n=this.d3Graph.nodes.find(i=>i.id===o.id);n&&(this.settings.force.alphaTarget(0),n.fx=void 0,n.fy=void 0)}};function HK(e,o){return typeof o=="number"?e[o]:o}var FI=class{defaultSettings={force:(0,jK.d3adaptor)(at(at(at({},dD),nI),hD)).linkDistance(150).avoidOverlaps(!0),viewDimensions:{width:600,height:600}};settings={};inputGraph;outputGraph;internalGraph;outputGraph$=new Rr;draggingStart;run(o){return this.inputGraph=o,this.inputGraph.clusters||(this.inputGraph.clusters=[]),this.internalGraph={nodes:[...this.inputGraph.nodes.map(t=>qt(at({},t),{width:t.dimension?t.dimension.width:20,height:t.dimension?t.dimension.height:20}))],groups:[...this.inputGraph.clusters.map(t=>({padding:5,groups:t.childNodeIds.map(n=>this.inputGraph.clusters.findIndex(i=>i.id===n)).filter(n=>n>=0),leaves:t.childNodeIds.map(n=>this.inputGraph.nodes.findIndex(i=>i.id===n)).filter(n=>n>=0)}))],links:[...this.inputGraph.edges.map(t=>{let n=this.inputGraph.nodes.findIndex(s=>t.source===s.id),i=this.inputGraph.nodes.findIndex(s=>t.target===s.id);if(!(n===-1||i===-1))return qt(at({},t),{source:n,target:i})}).filter(t=>!!t)],groupLinks:[...this.inputGraph.edges.map(t=>{let n=this.inputGraph.nodes.findIndex(s=>t.source===s.id),i=this.inputGraph.nodes.findIndex(s=>t.target===s.id);if(!(n>=0&&i>=0))return t}).filter(t=>!!t)]},this.outputGraph={nodes:[],clusters:[],edges:[],edgeLabels:[]},this.outputGraph$.next(this.outputGraph),this.settings=Object.assign({},this.defaultSettings,this.settings),this.settings.force&&(this.settings.force=this.settings.force.nodes(this.internalGraph.nodes).groups(this.internalGraph.groups).links(this.internalGraph.links).alpha(.5).on("tick",()=>{this.settings.onTickListener&&this.settings.onTickListener(this.internalGraph),this.outputGraph$.next(this.internalGraphToOutputGraph(this.internalGraph))}),this.settings.viewDimensions&&(this.settings.force=this.settings.force.size([this.settings.viewDimensions.width,this.settings.viewDimensions.height])),this.settings.forceModifierFn&&(this.settings.force=this.settings.forceModifierFn(this.settings.force)),this.settings.force.start()),this.outputGraph$.asObservable()}updateEdge(o,t){let n=Object.assign({},this.defaultSettings,this.settings);return n.force&&n.force.start(),this.outputGraph$.asObservable()}internalGraphToOutputGraph(o){return this.outputGraph.nodes=o.nodes.map(t=>qt(at({},t),{id:t.id||rp(),position:{x:t.x,y:t.y},dimension:{width:t.dimension&&t.dimension.width||20,height:t.dimension&&t.dimension.height||20},transform:`translate(${t.x-(t.dimension&&t.dimension.width||20)/2||0}, ${t.y-(t.dimension&&t.dimension.height||20)/2||0})`})),this.outputGraph.edges=o.links.map(t=>{let n=HK(o.nodes,t.source),i=HK(o.nodes,t.target);return qt(at({},t),{source:n.id,target:i.id,points:[n.bounds.rayIntersection(i.bounds.cx(),i.bounds.cy()),i.bounds.rayIntersection(n.bounds.cx(),n.bounds.cy())]})}).concat(o.groupLinks.map(t=>{let n=o.nodes.find(u=>u.id===t.source),i=o.nodes.find(u=>u.id===t.target),s=n||o.groups.find(u=>u.id===t.source),d=i||o.groups.find(u=>u.id===t.target);return qt(at({},t),{source:s.id,target:d.id,points:[s.bounds.rayIntersection(d.bounds.cx(),d.bounds.cy()),d.bounds.rayIntersection(s.bounds.cx(),s.bounds.cy())]})})),this.outputGraph.clusters=o.groups.map((t,n)=>{let i=this.inputGraph.clusters[n];return qt(at({},i),{dimension:{width:t.bounds?t.bounds.width():20,height:t.bounds?t.bounds.height():20},position:{x:t.bounds?t.bounds.x+t.bounds.width()/2:0,y:t.bounds?t.bounds.y+t.bounds.height()/2:0}})}),this.outputGraph.edgeLabels=this.outputGraph.edges,this.outputGraph}onDragStart(o,t){let n=this.outputGraph.nodes.findIndex(s=>s.id===o.id),i=this.internalGraph.nodes[n];i&&(this.draggingStart={x:i.x-t.x,y:i.y-t.y},i.fixed=1,this.settings.force.start())}onDrag(o,t){if(!o)return;let n=this.outputGraph.nodes.findIndex(s=>s.id===o.id),i=this.internalGraph.nodes[n];i&&(i.x=this.draggingStart.x+t.x,i.y=this.draggingStart.y+t.y)}onDragEnd(o,t){if(!o)return;let n=this.outputGraph.nodes.findIndex(s=>s.id===o.id),i=this.internalGraph.nodes[n];i&&(i.fixed=0)}},GK={dagre:II,dagreCluster:OI,dagreNodesOnly:ph,d3ForceDirected:AI,colaForceDirected:FI},$K=(()=>{class e{getLayout(t){if(GK[t])return new GK[t];throw new Error(`Unknown layout type '${t}'`)}static \u0275fac=function(n){return new(n||e)};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})(),vgt=(()=>{class e{mouseWheelUp=new bi;mouseWheelDown=new bi;onMouseWheelChrome(t){this.mouseWheelFunc(t)}onMouseWheelFirefox(t){this.mouseWheelFunc(t)}onWheel(t){this.mouseWheelFunc(t)}onMouseWheelIE(t){this.mouseWheelFunc(t)}mouseWheelFunc(t){window.event&&(t=window.event);let n=Math.max(-1,Math.min(1,t.wheelDelta||-t.detail||t.deltaY||t.deltaX)),i=t.wheelDelta?n>0:n<0,s=t.wheelDelta?n<0:n>0;i?this.mouseWheelUp.emit(t):s&&this.mouseWheelDown.emit(t),t.returnValue=!1,t.preventDefault&&t.preventDefault()}static \u0275fac=function(n){return new(n||e)};static \u0275dir=md({type:e,selectors:[["","mouseWheel",""]],hostBindings:function(n,i){n&1&&R("mousewheel",function(d){return i.onMouseWheelChrome(d)})("DOMMouseScroll",function(d){return i.onMouseWheelFirefox(d)})("wheel",function(d){return i.onWheel(d)})("onmousewheel",function(d){return i.onMouseWheelIE(d)})},outputs:{mouseWheelUp:"mouseWheelUp",mouseWheelDown:"mouseWheelDown"},standalone:!1})}return e})(),ch=(function(e){return e.Init="init",e.Subscribe="subscribe",e.Transform="transform",e.Output="output",e})(ch||{}),UK=(()=>{class e{el;zone;cd;layoutService;nodes=[];clusters=[];compoundNodes=[];links=[];activeEntries=[];curve;draggingEnabled=!0;nodeHeight;nodeMaxHeight;nodeMinHeight;nodeWidth;nodeMinWidth;nodeMaxWidth;panningEnabled=!0;panningAxis=Ay.Both;enableZoom=!0;zoomSpeed=.1;minZoomLevel=.1;maxZoomLevel=4;autoZoom=!1;panOnZoom=!0;animate=!1;autoCenter=!1;update$;center$;zoomToFit$;panToNode$;layout;layoutSettings;enableTrackpadSupport=!1;showMiniMap=!1;miniMapMaxWidth=100;miniMapMaxHeight;miniMapPosition=Fy.UpperRight;view;scheme="cool";customColors;deferDisplayUntilPosition=!1;centerNodesOnPositionChange=!0;enablePreUpdateTransform=!0;select=new bi;activate=new bi;deactivate=new bi;zoomChange=new bi;clickHandler=new bi;stateChange=new bi;linkTemplate;nodeTemplate;clusterTemplate;defsTemplate;miniMapNodeTemplate;nodeElements;linkElements;chartWidth;isMouseMoveCalled=!1;graphSubscription=new nf;colors;dims;seriesDomain;transform;isPanning=!1;isDragging=!1;draggingNode;initialized=!1;graph;graphDims={width:0,height:0};_oldLinks=[];oldNodes=new Set;oldClusters=new Set;oldCompoundNodes=new Set;transformationMatrix=wV();_touchLastX=null;_touchLastY=null;minimapScaleCoefficient=3;minimapTransform;minimapOffsetX=0;minimapOffsetY=0;isMinimapPanning=!1;minimapClipPathId;width;height;resizeSubscription;visibilityObserver;destroy$=new Rr;constructor(t,n,i,s){this.el=t,this.zone=n,this.cd=i,this.layoutService=s}groupResultsBy=t=>t.label;get zoomLevel(){return this.transformationMatrix.a}set zoomLevel(t){this.zoomTo(Number(t))}get panOffsetX(){return this.transformationMatrix.e}set panOffsetX(t){this.panTo(Number(t),null)}get panOffsetY(){return this.transformationMatrix.f}set panOffsetY(t){this.panTo(null,Number(t))}ngOnInit(){this.update$&&this.update$.pipe(Rl(this.destroy$)).subscribe(()=>{this.update()}),this.center$&&this.center$.pipe(Rl(this.destroy$)).subscribe(()=>{this.center()}),this.zoomToFit$&&this.zoomToFit$.pipe(Rl(this.destroy$)).subscribe(t=>{this.zoomToFit(t||{})}),this.panToNode$&&this.panToNode$.pipe(Rl(this.destroy$)).subscribe(t=>{this.panToNodeId(t)}),this.minimapClipPathId=`minimapClip${rp()}`,this.stateChange.emit({state:ch.Subscribe})}ngOnChanges(t){this.basicUpdate();let{layoutSettings:n}=t;this.setLayout(this.layout),n&&this.setLayoutSettings(this.layoutSettings),this.layout&&this.nodes.length&&this.links.length&&this.update()}setLayout(t){this.initialized=!1,t||(t="dagre"),typeof t=="string"&&(this.layout=this.layoutService.getLayout(t),this.setLayoutSettings(this.layoutSettings))}setLayoutSettings(t){this.layout&&typeof this.layout!="string"&&(this.layout.settings=t)}ngOnDestroy(){this.unbindEvents(),this.visibilityObserver&&(this.visibilityObserver.visible.unsubscribe(),this.visibilityObserver.destroy()),this.destroy$.next(),this.destroy$.complete()}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new _gt(this.el,this.zone),this.visibilityObserver.visible.subscribe(this.update.bind(this)),setTimeout(()=>this.update())}update(){this.basicUpdate(),this.curve||(this.curve=mD.beta(1)),this.zone.run(()=>{this.dims=qK({width:this.width,height:this.height}),this.seriesDomain=this.getSeriesDomain(),this.setColors(),this.createGraph(),this.updateTransform(),this.initialized||this.stateChange.emit({state:ch.Init}),this.initialized=!0})}createGraph(){this.graphSubscription.unsubscribe(),this.graphSubscription=new nf;let t=i=>(i.meta||(i.meta={}),i.id||(i.id=rp()),i.dimension?i.meta.forceDimensions=i.meta.forceDimensions===void 0?!0:i.meta.forceDimensions:(i.dimension={width:this.nodeWidth?this.nodeWidth:30,height:this.nodeHeight?this.nodeHeight:30},i.meta.forceDimensions=!1),i.position||(i.position={x:0,y:0},this.deferDisplayUntilPosition&&(i.hidden=!0)),i.data=i.data?i.data:{},i),n=i=>(i.id||(i.id=rp()),i);this.graph={nodes:this.nodes.map(i=>t(i)),clusters:this.clusters.map(i=>t(i)),compoundNodes:this.compoundNodes.map(i=>t(i)),edges:this.links.map(i=>n(i))},requestAnimationFrame(()=>this.draw())}draw(){let t=this.layout.run(this.graph),n=t instanceof of?t:sd(t);this.graphSubscription.add(n.subscribe(i=>{this.graph=i,this.tick()}))}tick(){let t=new Set,n=new Set,i=new Set;this.graph.nodes.forEach(d=>{d.transform=`translate(${d.position.x-(this.centerNodesOnPositionChange?d.dimension.width/2:0)||0}, ${d.position.y-(this.centerNodesOnPositionChange?d.dimension.height/2:0)||0})`,d.data||(d.data={}),d.data.color=this.colors.getColor(this.groupResultsBy(d)),this.deferDisplayUntilPosition&&(d.hidden=!1),t.add(d.id)}),(this.graph.clusters||[]).forEach(d=>{d.transform=`translate(${d.position.x-(this.centerNodesOnPositionChange?d.dimension.width/2:0)||0}, ${d.position.y-(this.centerNodesOnPositionChange?d.dimension.height/2:0)||0})`,d.data||(d.data={}),d.data.color=this.colors.getColor(this.groupResultsBy(d)),this.deferDisplayUntilPosition&&(d.hidden=!1),n.add(d.id)}),(this.graph.compoundNodes||[]).forEach(d=>{d.transform=`translate(${d.position.x-(this.centerNodesOnPositionChange?d.dimension.width/2:0)||0}, ${d.position.y-(this.centerNodesOnPositionChange?d.dimension.height/2:0)||0})`,d.data||(d.data={}),d.data.color=this.colors.getColor(this.groupResultsBy(d)),this.deferDisplayUntilPosition&&(d.hidden=!1),i.add(d.id)}),setTimeout(()=>{this.oldNodes=t,this.oldClusters=n,this.oldCompoundNodes=i},500);let s=[];for(let d in this.graph.edgeLabels){let u=this.graph.edgeLabels[d],f=d.replace(/[^\w-]*/g,""),_=this.layout&&typeof this.layout!="string"&&this.layout.settings&&this.layout.settings.multigraph,C=_?this._oldLinks.find(D=>`${D.source}${D.target}${D.id}`===f):this._oldLinks.find(D=>`${D.source}${D.target}`===f),x=_?this.graph.edges.find(D=>`${D.source}${D.target}${D.id}`===f):this.graph.edges.find(D=>`${D.source}${D.target}`===f);C?C.data&&x&&x.data&&JSON.stringify(C.data)!==JSON.stringify(x.data)&&(C.data=x.data):C=x||u,C.oldLine=C.line;let y=u.points,P=this.generateLine(y),S=Object.assign({},C);S.line=P,S.points=y,this.updateMidpointOnEdge(S,y);let M=y[Math.floor(y.length/2)];M&&(S.textTransform=`translate(${M.x||0},${M.y||0})`),S.textAngle=0,S.oldLine||(S.oldLine=S.line),this.calcDominantBaseline(S),s.push(S)}this.graph.edges=s,this.graph.edges&&(this._oldLinks=this.graph.edges.map(d=>{let u=Object.assign({},d);return u.oldLine=d.line,u})),this.applyNodeDimensions(),this.redrawLines(),this.updateMinimap(),requestAnimationFrame(()=>{this.applyNodeDimensions(),this.redrawLines(),this.updateMinimap(),this.autoZoom?this.zoomToFit({autoCenter:this.autoCenter?this.autoCenter:!1}):this.autoCenter&&this.center(),this.stateChange.emit({state:ch.Output})}),this.cd.markForCheck()}getMinimapTransform(){switch(this.miniMapPosition){case Fy.UpperLeft:return"";case Fy.UpperRight:return"translate("+(this.dims.width-this.graphDims.width/this.minimapScaleCoefficient)+",0)";default:return""}}updateGraphDims(){let t=1/0,n=-1/0,i=1/0,s=-1/0;for(let d=0;dn?u.position.x+u.dimension.width:n,s=u.position.y+u.dimension.height>s?u.position.y+u.dimension.height:s}t-=100,i-=100,n+=100,s+=100,this.graphDims.width=n-t,this.graphDims.height=s-i,this.minimapOffsetX=t,this.minimapOffsetY=i}updateMinimap(){this.graph.nodes&&this.graph.nodes.length&&(this.updateGraphDims(),this.miniMapMaxWidth&&(this.minimapScaleCoefficient=this.graphDims.width/this.miniMapMaxWidth),this.miniMapMaxHeight&&(this.minimapScaleCoefficient=Math.max(this.minimapScaleCoefficient,this.graphDims.height/this.miniMapMaxHeight)),this.minimapTransform=this.getMinimapTransform())}applyNodeDimensions(){this.nodeElements&&this.nodeElements.length&&this.nodeElements.forEach(t=>{let n=t.nativeElement,i=this.graph.nodes.find(d=>d.id===n.id);if(!i)return;let s;try{if(s=n.getBBox(),!s.width||!s.height)return}catch{return}if(this.nodeHeight?i.dimension.height=i.dimension.height&&i.meta.forceDimensions?i.dimension.height:this.nodeHeight:i.dimension.height=i.dimension.height&&i.meta.forceDimensions?i.dimension.height:s.height,this.nodeMaxHeight&&(i.dimension.height=Math.max(i.dimension.height,this.nodeMaxHeight)),this.nodeMinHeight&&(i.dimension.height=Math.min(i.dimension.height,this.nodeMinHeight)),this.nodeWidth)i.dimension.width=i.dimension.width&&i.meta.forceDimensions?i.dimension.width:this.nodeWidth;else if(n.getElementsByTagName("text").length){let d;try{for(let u of n.getElementsByTagName("text")){let f=u.getBBox();d?(f.width>d.width&&(d.width=f.width),f.height>d.height&&(d.height=f.height)):d=f}}catch{return}i.dimension.width=i.dimension.width&&i.meta.forceDimensions?i.dimension.width:d.width+20}else i.dimension.width=i.dimension.width&&i.meta.forceDimensions?i.dimension.width:s.width;this.nodeMaxWidth&&(i.dimension.width=Math.max(i.dimension.width,this.nodeMaxWidth)),this.nodeMinWidth&&(i.dimension.width=Math.min(i.dimension.width,this.nodeMinWidth))})}redrawLines(t=this.animate){this.linkElements.forEach(n=>{let i=this.graph.edges.find(s=>s.id===n.nativeElement.id);i&&(mb(n.nativeElement).select(".line").attr("d",i.oldLine).transition().ease(m1).duration(t?500:0).attr("d",i.line),mb(this.el.nativeElement).select(`#${i.id}`).attr("d",i.oldTextPath).transition().ease(m1).duration(t?500:0).attr("d",i.textPath),this.updateMidpointOnEdge(i,i.points))})}calcDominantBaseline(t){let n=t.points[0],i=t.points[t.points.length-1];t.oldTextPath=t.textPath,i.xi.x).y(i=>i.y).curve(this.curve)(t)}onZoom(t,n){if(this.enableTrackpadSupport&&!t.ctrlKey){this.pan(t.deltaX*-1,t.deltaY*-1);return}let i=1+(n==="in"?this.zoomSpeed:-this.zoomSpeed),s=this.zoomLevel*i;if(!(s<=this.minZoomLevel||s>=this.maxZoomLevel)&&this.enableZoom)if(this.panOnZoom===!0&&t){let d=t.clientX,u=t.clientY,f=this.el.nativeElement.querySelector("svg"),_=f.querySelector("g.chart"),C=f.createSVGPoint();C.x=d,C.y=u;let x=C.matrixTransform(_.getScreenCTM().inverse());this.pan(x.x,x.y,!0),this.zoom(i),this.pan(-x.x,-x.y,!0)}else this.zoom(i)}pan(t,n,i=!1){let s=i?1:this.zoomLevel;this.transformationMatrix=Xc(this.transformationMatrix,Kc(t/s,n/s)),this.updateTransform()}panTo(t,n){if(t==null||isNaN(t)||n===null||n===void 0||isNaN(n))return;let i=-this.panOffsetX-t*this.zoomLevel+this.dims.width/2,s=-this.panOffsetY-n*this.zoomLevel+this.dims.height/2;this.transformationMatrix=Xc(this.transformationMatrix,Kc(i/this.zoomLevel,s/this.zoomLevel)),this.updateTransform()}zoom(t){this.transformationMatrix=Xc(this.transformationMatrix,S1(t,t)),this.zoomChange.emit(this.zoomLevel),this.updateTransform()}zoomTo(t){this.transformationMatrix.a=isNaN(t)?this.transformationMatrix.a:Number(t),this.transformationMatrix.d=isNaN(t)?this.transformationMatrix.d:Number(t),this.zoomChange.emit(this.zoomLevel),this.enablePreUpdateTransform&&this.updateTransform(),this.update()}onDrag(t){if(!this.draggingEnabled)return;let n=this.draggingNode;this.layout&&typeof this.layout!="string"&&this.layout.onDrag&&this.layout.onDrag(n,t),n.position.x+=t.movementX/this.zoomLevel,n.position.y+=t.movementY/this.zoomLevel;let i=n.position.x-(this.centerNodesOnPositionChange?n.dimension.width/2:0),s=n.position.y-(this.centerNodesOnPositionChange?n.dimension.height/2:0);n.transform=`translate(${i}, ${s})`;for(let d of this.graph.edges)if((d.target===n.id||d.source===n.id||d.target.id===n.id||d.source.id===n.id)&&this.layout&&typeof this.layout!="string"){let u=this.layout.updateEdge(this.graph,d),f=u instanceof of?u:sd(u);this.graphSubscription.add(f.subscribe(_=>{this.graph=_,this.redrawEdge(d)}))}this.redrawLines(!1),this.updateMinimap()}redrawEdge(t){let n=this.generateLine(t.points);this.calcDominantBaseline(t),t.oldLine=t.line,t.line=n}updateTransform(){this.transform=PV(TD(this.transformationMatrix,100)),this.stateChange.emit({state:ch.Transform})}onClick(t){this.select.emit(t)}onActivate(t){this.activeEntries.indexOf(t)>-1||(this.activeEntries=[t,...this.activeEntries],this.activate.emit({value:t,entries:this.activeEntries}))}onDeactivate(t){let n=this.activeEntries.indexOf(t);this.activeEntries.splice(n,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:t,entries:this.activeEntries})}getSeriesDomain(){return this.nodes.map(t=>this.groupResultsBy(t)).reduce((t,n)=>t.indexOf(n)!==-1?t:t.concat([n]),[]).sort()}trackLinkBy(t,n){return n.id}trackNodeBy(t,n){return n.id}setColors(){this.colors=new EI(this.scheme,this.seriesDomain,this.customColors)}onMouseMove(t){this.isMouseMoveCalled=!0,(this.isPanning||this.isMinimapPanning)&&this.panningEnabled?this.panWithConstraints(this.panningAxis,t):this.isDragging&&this.draggingEnabled&&this.onDrag(t)}onMouseDown(t){this.isMouseMoveCalled=!1}graphClick(t){this.isMouseMoveCalled||this.clickHandler.emit(t)}onTouchStart(t){this._touchLastX=t.changedTouches[0].clientX,this._touchLastY=t.changedTouches[0].clientY,this.isPanning=!0}onTouchMove(t){if(this.isPanning&&this.panningEnabled){let n=t.changedTouches[0].clientX,i=t.changedTouches[0].clientY,s=n-this._touchLastX,d=i-this._touchLastY;this._touchLastX=n,this._touchLastY=i,this.pan(s,d)}}onTouchEnd(){this.isPanning=!1}onMouseUp(t){this.isDragging=!1,this.isPanning=!1,this.isMinimapPanning=!1,this.layout&&typeof this.layout!="string"&&this.layout.onDragEnd&&this.layout.onDragEnd(this.draggingNode,t)}onNodeMouseDown(t,n){this.draggingEnabled&&(this.isDragging=!0,this.draggingNode=n,this.layout&&typeof this.layout!="string"&&this.layout.onDragStart&&this.layout.onDragStart(n,t))}onMinimapDragMouseDown(){this.isMinimapPanning=!0}onMinimapPanTo(t){let n=t.offsetX-(this.dims.width-(this.graphDims.width+this.minimapOffsetX)/this.minimapScaleCoefficient),i=t.offsetY+this.minimapOffsetY/this.minimapScaleCoefficient;this.panTo(n*this.minimapScaleCoefficient,i*this.minimapScaleCoefficient),this.isMinimapPanning=!0}center(){this.panTo(this.graphDims.width/2,this.graphDims.height/2)}zoomToFit(t){this.dims=qK({width:this.width,height:this.height}),this.updateGraphDims();let n=this.dims.height/this.graphDims.height,i=this.dims.width/this.graphDims.width,s=Math.min(n,i,1);sthis.maxZoomLevel&&(s=this.maxZoomLevel),(t?.force===!0||s!==this.zoomLevel)&&(this.zoomLevel=s,t?.autoCenter!==!0&&this.updateTransform(),t?.autoCenter===!0&&this.center(),this.zoomChange.emit(this.zoomLevel))}panToNodeId(t){let n=this.graph.nodes.find(i=>i.id===t);n&&this.panTo(n.position.x,n.position.y)}getCompoundNodeChildren(t){return this.nodes.filter(n=>t.includes(n.id))}panWithConstraints(t,n){let i=n.movementX,s=n.movementY;switch(this.isMinimapPanning&&(i=-this.minimapScaleCoefficient*i*this.zoomLevel,s=-this.minimapScaleCoefficient*s*this.zoomLevel),t){case Ay.Horizontal:this.pan(i,0);break;case Ay.Vertical:this.pan(0,s);break;default:this.pan(i,s);break}}updateMidpointOnEdge(t,n){if(!(!t||!n))if(n.length%2===1)t.midPoint=n[Math.floor(n.length/2)];else if(this.layout?.settings?.properties?.["elk.direction"])this._calcMidPointElk(t,n);else{let i=n[n.length/2],s=n[n.length/2-1];t.midPoint={x:(i.x+s.x)/2,y:(i.y+s.y)/2}}}_calcMidPointElk(t,n){let i=null,s=null,d=null,u=null,f=this.layout.settings?.properties["elk.direction"];(f==="RIGHT"?n.some(C=>C.y!==n[0].y):n.some(C=>C.x!==n[0].x))?(i=n[n.length-1],s=n[n.length-2],d=n[n.length-1],u=n[n.length-2]):f==="RIGHT"?(i=n[0],s=n[n.length-1],d=n[n.length/2],u=n[n.length/2-1]):(i=n[n.length/2],s=n[n.length/2-1],d=n[0],u=n[n.length-1]),t.midPoint={x:(i.x+s.x)/2,y:(d.y+u.y)/2}}basicUpdate(){if(this.view)this.width=this.view[0],this.height=this.view[1];else{let t=this.getContainerDims();t&&(this.width=t.width,this.height=t.height)}this.width||(this.width=600),this.height||(this.height=400),this.width=Math.floor(this.width),this.height=Math.floor(this.height),this.cd&&this.cd.markForCheck()}getContainerDims(){let t,n,i=this.el.nativeElement;if(i.parentNode!==null){let s=i.parentNode.getBoundingClientRect();t=s.width,n=s.height}return t&&n?{width:t,height:n}:null}hasGraphDims(){return this.graphDims.width>0&&this.graphDims.height>0}hasNodeDims(){return this.graph.nodes?.every(t=>t.dimension.width>0&&t.dimension.height>0)}hasCompoundNodeDims(){return this.graph.compoundNodes?.every(t=>t.dimension.width>0&&t.dimension.height>0)}hasClusterDims(){return this.graph.clusters?.every(t=>t.dimension.width>0&&t.dimension.height>0)}hasDims(){return this.hasGraphDims()&&this.hasNodeDims()&&((this.compoundNodes?.length?this.hasCompoundNodeDims():!0)||(this.clusters?.length?this.hasClusterDims():!0))}unbindEvents(){this.resizeSubscription&&this.resizeSubscription.unsubscribe()}bindWindowResizeEvent(){let n=cd(window,"resize").pipe(Oo(200)).subscribe(i=>{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=n}static \u0275fac=function(n){return new(n||e)(Zo(lf),Zo(pd),Zo(es),Zo($K))};static \u0275cmp=me({type:e,selectors:[["ngx-graph"]],contentQueries:function(n,i,s){if(n&1&&(g0(s,zht,5),g0(s,Hht,5),g0(s,Ght,5),g0(s,jht,5),g0(s,$ht,5)),n&2){let d;Te(d=Me())&&(i.linkTemplate=d.first),Te(d=Me())&&(i.nodeTemplate=d.first),Te(d=Me())&&(i.clusterTemplate=d.first),Te(d=Me())&&(i.defsTemplate=d.first),Te(d=Me())&&(i.miniMapNodeTemplate=d.first)}},viewQuery:function(n,i){if(n&1&&(Ee(Uht,5),Ee(Wht,5)),n&2){let s;Te(s=Me())&&(i.nodeElements=s),Te(s=Me())&&(i.linkElements=s)}},hostBindings:function(n,i){n&1&&R("mousemove",function(d){return i.onMouseMove(d)},h0)("mousedown",function(d){return i.onMouseDown(d)},h0)("click",function(d){return i.graphClick(d)},h0)("touchmove",function(d){return i.onTouchMove(d)},h0)("mouseup",function(d){return i.onMouseUp(d)},h0)},inputs:{nodes:"nodes",clusters:"clusters",compoundNodes:"compoundNodes",links:"links",activeEntries:"activeEntries",curve:"curve",draggingEnabled:"draggingEnabled",nodeHeight:"nodeHeight",nodeMaxHeight:"nodeMaxHeight",nodeMinHeight:"nodeMinHeight",nodeWidth:"nodeWidth",nodeMinWidth:"nodeMinWidth",nodeMaxWidth:"nodeMaxWidth",panningEnabled:"panningEnabled",panningAxis:"panningAxis",enableZoom:"enableZoom",zoomSpeed:"zoomSpeed",minZoomLevel:"minZoomLevel",maxZoomLevel:"maxZoomLevel",autoZoom:"autoZoom",panOnZoom:"panOnZoom",animate:"animate",autoCenter:"autoCenter",update$:"update$",center$:"center$",zoomToFit$:"zoomToFit$",panToNode$:"panToNode$",layout:"layout",layoutSettings:"layoutSettings",enableTrackpadSupport:"enableTrackpadSupport",showMiniMap:"showMiniMap",miniMapMaxWidth:"miniMapMaxWidth",miniMapMaxHeight:"miniMapMaxHeight",miniMapPosition:"miniMapPosition",view:"view",scheme:"scheme",customColors:"customColors",deferDisplayUntilPosition:"deferDisplayUntilPosition",centerNodesOnPositionChange:"centerNodesOnPositionChange",enablePreUpdateTransform:"enablePreUpdateTransform",groupResultsBy:"groupResultsBy",zoomLevel:"zoomLevel",panOffsetX:"panOffsetX",panOffsetY:"panOffsetY"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",zoomChange:"zoomChange",clickHandler:"clickHandler",stateChange:"stateChange"},standalone:!1,features:[Uo],ngContentSelectors:Qht,decls:6,vars:11,consts:[["nodeGroup",""],["clusterElement",""],["nodeElement",""],["linkElement",""],["mouseWheel","",1,"ngx-graph-outer",3,"mouseWheelUp","mouseWheelDown"],[1,"ngx-graph"],["class","graph chart",3,"touchstart","touchend",4,"ngIf"],["class","minimap",4,"ngIf"],[1,"graph","chart",3,"touchstart","touchend"],[3,"ngTemplateOutlet",4,"ngIf"],["class","text-path",4,"ngFor","ngForOf"],[1,"panning-rect",3,"mousedown"],[1,"clusters"],["class","node-group",3,"old-node","id","click",4,"ngFor","ngForOf","ngForTrackBy"],[1,"compound-nodes"],["class","node-group",3,"old-node","id","click","mousedown",4,"ngFor","ngForOf","ngForTrackBy"],[1,"links"],["class","link-group",3,"id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"nodes"],[3,"ngTemplateOutlet"],[1,"text-path"],[1,"node-group",3,"click","id"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["class","node cluster",4,"ngIf"],[3,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"node","cluster"],["alignment-baseline","central"],[1,"node-group",3,"click","mousedown","id"],["class","node compound-node",4,"ngIf"],[1,"node","compound-node"],[1,"link-group",3,"id"],["class","edge",4,"ngIf"],[1,"edge"],["r","10",4,"ngIf"],["r","10"],[1,"minimap"],[1,"minimap-background",3,"mousedown"],[1,"minimap-nodes"],["class","node-group",3,"old-node","id",4,"ngFor","ngForOf","ngForTrackBy"],[1,"minimap-drag",3,"mousedown"],[1,"node-group",3,"id"]],template:function(n,i){n&1&&(yF(),l(0,"div",4),R("mouseWheelUp",function(d){return i.onZoom(d,"in")})("mouseWheelDown",function(d){return i.onZoom(d,"out")}),na(),l(1,"svg",5),F(2,cgt,15,14,"g",6),l(3,"clipPath"),b(4,"rect"),r(),F(5,fgt,6,15,"g",7),r()()),n&2&&(vp("width",i.width,"px"),g("@animationState","active")("@.disabled",!i.animate),a(),Dn("width",i.width)("height",i.height),a(),g("ngIf",i.initialized&&i.graph),a(),Dn("id",i.minimapClipPathId),a(),Dn("width",i.graphDims.width/i.minimapScaleCoefficient)("height",i.graphDims.height/i.minimapScaleCoefficient),a(),g("ngIf",i.showMiniMap))},dependencies:[ts,Js,MF,vgt],styles:[`.minimap .minimap-background{fill:#0000001a}.minimap .minimap-drag{fill:#0003;stroke:#fff;stroke-width:1px;stroke-dasharray:2px;stroke-dashoffset:2px;cursor:pointer}.minimap .minimap-drag.panning{fill:#0000004d}.minimap .minimap-nodes{opacity:.5;pointer-events:none}.graph{-webkit-user-select:none;user-select:none}.graph .edge{stroke:#666;fill:none}.graph .edge .edge-label{stroke:none;font-size:12px;fill:#251e1e}.graph .panning-rect{fill:#0000;cursor:move}.graph .node-group.old-node{transition:transform .5s ease-in-out}.graph .node-group .node:focus{outline:none}.graph .compound-node rect{opacity:.5}.graph .cluster rect{opacity:.2} +`],encapsulation:2,data:{animation:[Sr("animationState",[hr(":enter",[Lo({opacity:0}),fr("500ms 100ms",Lo({opacity:1}))])])]},changeDetection:0})}return Z7([ggt(500)],e.prototype,"updateMinimap",null),e})(),kI=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({providers:[$K],imports:[ue]})}return e})(),WK=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({imports:[ue,kI]})}return e})();function bgt(e,o){e&1&&(na(),l(0,"marker",4),b(1,"path",5),r())}function ygt(e,o){if(e&1&&(na(),l(0,"g",6)(1,"foreignObject",7),cF(),l(2,"div",8)(3,"label",9),c(4),r(),l(5,"label"),c(6),r()()()()),e&2){let t=o.$implicit;a(4),h(t.data.name),a(2),h(t.data.order)}}function Sgt(e,o){if(e&1&&(na(),l(0,"g",14),b(1,"ellipse",15),l(2,"text",16),c(3),p(4,"translateKey"),r()()),e&2){let t=w().$implicit;Dn("transform","translate("+t.midPoint.x+","+t.midPoint.y+")"),a(3),h(Ft(4,2,t.data.linkText,"text"))}}function wgt(e,o){if(e&1&&(na(),l(0,"g",10),b(1,"path",11),l(2,"text",12)(3,"textPath",13),c(4),r()()(),E(5,Sgt,5,5,":svg:g",14)),e&2){let t=o.$implicit;a(3),vp("dominant-baseline",t.dominantBaseline),Dn("href","#"+t.id),a(),v(" ",t.label," "),a(),I(t.midPoint?5:-1)}}var By=(()=>{class e{constructor(){this.jobStepsData=[],this.diagramSize=[1024,300],this.nodes=[],this.links=[],this.layoutSettings={orientation:"LR"},this.curve=p1,this.layout=new ph,this.colorScheme={domain:["#5AA454","#A10A28","#C7B42C"]},this.center$=new Rr}ngOnInit(){let t=0;for(let n of this.jobStepsData){let i=`node_${n.order}`,s={id:i,label:n.stepName,data:{name:n.stepName,order:n.order}};if(this.nodes.push(s),t>0){let d={id:`link_${n.id}`,source:`node_${n.order-1}`,target:i,label:"",data:{linkText:"Precedes of"}};this.links.push(d)}t++}this.center$.next(void 0)}getStyles(t){return"node_odd"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-workflow-diagram"]],inputs:{jobStepsData:"jobStepsData"},decls:7,vars:9,consts:[["defsTemplate",""],["nodeTemplate",""],["linkTemplate",""],[3,"view","links","nodes","curve","layout","nodeHeight","layoutSettings","enableZoom","center$"],["id","arrow","viewBox","0 -5 10 10","refX","8","refY","0","markerWidth","4","markerHeight","4","orient","auto"],["d","M0,-5L10,0L0,5",1,"arrow-head"],["xmlns","http://www.w3.org/2000/xhtml","width","150","height","100",1,"node"],["width","150","height","100"],["xmlns","http://www.w3.org/1999/xhtml",1,"card-container"],[1,"name"],[1,"edge"],["stroke-width","2","marker-end","url(#arrow)",1,"line"],["text-anchor","middle",1,"edge-label"],["startOffset","50%",1,"text-path"],[1,"link-midpoint"],["rx","30","ry","10"],["alignment-baseline","central"]],template:function(n,i){n&1&&(l(0,"ngx-graph",3),F(1,bgt,2,0,"ng-template",null,0,ti)(3,ygt,7,2,"ng-template",null,1,ti)(5,wgt,6,5,"ng-template",null,2,ti),r()),n&2&&g("view",i.diagramSize)("links",i.links)("nodes",i.nodes)("curve",i.curve)("layout",i.layout)("nodeHeight",100)("layoutSettings",i.layoutSettings)("enableZoom",!0)("center$",i.center$)},dependencies:[ue,fe,kI,UK,ki],styles:["[_nghost-%COMP%] {display:block;height:inherit;width:inherit}[_nghost-%COMP%] .card-container{height:100;min-width:150;display:block;fill:#d7dada;border:#000}[_nghost-%COMP%] .card-container .name{font-size:12px}[_nghost-%COMP%] .card-container label{display:block;text-align:center;font-size:20px;margin-top:4px;margin-bottom:8px}[_nghost-%COMP%] .link-midpoint ellipse{fill:#fff;stroke:#000;stroke-width:1}[_nghost-%COMP%] .link-midpoint text{stroke:transparent;fill:#000;text-anchor:middle;font-size:8px}"]})}}return e})();var Pgt=["table"],Tgt=()=>["../"];function Mgt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",Ft(2,2,t,"catalogs")," ")}}function Dgt(e,o){if(e&1){let t=Y();l(0,"div",5)(1,"button",9),R("click",function(){V(t);let i=w();return q(i.addJobStep())}),b(2,"fa-icon",10),c(3),p(4,"translate"),r()()}e&2&&(a(3),v("",m(4,1,"labels.buttons.Link Job Step")," "))}function Egt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Step Name")))}function Igt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.stepName)}}function Ogt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Order")))}function Agt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.order)}}function Fgt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function kgt(e,o){if(e&1){let t=Y();l(0,"td",20)(1,"button",21),p(2,"translate"),R("click",function(){let i=V(t).index,s=w(2);return q(s.removeJobStep(i))}),b(3,"fa-icon",22),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Delete"))))}function Bgt(e,o){e&1&&b(0,"tr",23)}function Rgt(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("cdkDragData",t)}}function Ngt(e,o){if(e&1){let t=Y();l(0,"div",6)(1,"table",11,0),R("cdkDropListDropped",function(i){V(t);let s=w();return q(s.dropTable(i))}),X(3,12),F(4,Egt,3,3,"th",13)(5,Igt,2,1,"td",14),Z(),X(6,15),F(7,Ogt,3,3,"th",13)(8,Agt,2,1,"td",14),Z(),X(9,16),F(10,Fgt,3,3,"th",13)(11,kgt,4,4,"td",14),Z(),F(12,Bgt,1,0,"tr",17)(13,Rgt,1,1,"tr",18),r()()}if(e&2){let t=w();a(),g("dataSource",t.jobStepsData)("cdkDropListData",t.jobStepsData),a(11),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function Lgt(e,o){if(e&1){let t=Y();l(0,"div",7)(1,"button",25),c(2),p(3,"translate"),r(),l(4,"button",9),R("click",function(){V(t);let i=w();return q(i.saveChanges())}),c(5),p(6,"translate"),r()()}e&2&&(a(),g("routerLink",oe(7,Tgt)),a(),v(" ",m(3,3,"labels.buttons.Cancel")," "),a(3),v(" ",m(6,5,"labels.buttons.Apply Changes")," "))}function Vgt(e,o){if(e&1&&(l(0,"div",8),b(1,"mifosx-workflow-diagram",26),r()),e&2){let t=w();a(),g("jobStepsData",t.jobStepsData)}}var Ry=(()=>{class e{constructor(){this.systemService=T(ii),this.dialog=T(Ht),this.translateService=T(yi),this.stepOrderHasChanged=!1,this.jobNameOptions=[],this.jobStepsData=[],this.jobAvailableStepsData=[],this.jobStepsDataBase=[],this.jobStepName=null,this.jobName=new it("",ce.required),this.displayedColumns=["stepName","stepOrder","actions"]}ngOnInit(){this.systemService.getWorkflowJobNames().toPromise().then(t=>{this.jobNameOptions=t.businessJobs.sort(function(n,i){return n.stepName-i.stepName})})}getWorkflowJobSteps(t){this.systemService.getWorkflowJobSteps(t).subscribe(n=>{this.jobStepName=t,this.jobStepsData=n.businessSteps.sort(function(i,s){return i.order-s.order}),this.jobStepsDataBase=this.jobStepsData})}dropTable(t){let n=this.jobStepsData.findIndex(i=>i===t.item.data);Os(this.jobStepsData,n,t.currentIndex),this.jobStepsData=[...this.jobStepsData],this.table.renderRows(),this.stepOrderHasChanged=!0}removeJobStep(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.jobStepsData.splice(t,1),this.jobStepsData=this.jobStepsData.concat([]),this.jobStepsData=[...this.jobStepsData],this.stepOrderHasChanged=!0)})}addJobStep(){if(this.jobStepName!=null){let t=this.jobStepName.split("_");this.jobAvailableStepsData=[],this.systemService.getAvailablesJobSteps(t[0]).toPromise().then(n=>{this.jobAvailableStepsData=n.availableBusinessSteps.sort(function(s,d){return s.stepName-d.stepName});let i=[];if(this.jobStepsData.forEach(s=>i.push(s.stepName)),this.jobAvailableStepsData.length>0&&(this.jobAvailableStepsData=this.jobAvailableStepsData.filter(s=>i.indexOf(s.stepName)<0)),this.jobAvailableStepsData.length>0){for(let f=0;f{f.data&&(this.jobStepsData=this.jobStepsData.concat(f.data.value),this.stepOrderHasChanged=!0)})}})}}saveChanges(){let t=1;this.jobStepsData.forEach(i=>{i.order=t++});let n={businessSteps:this.jobStepsData};this.systemService.putWorkflowJobSteps(this.jobStepName,n).toPromise().then(i=>{this.stepOrderHasChanged=!1})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-workflow-jobs"]],viewQuery:function(n,i){if(n&1&&Ee(Pgt,5),n&2){let s;Te(s=Me())&&(i.table=s.first)}},decls:12,vars:8,consts:[["table",""],[1,"container","space-top","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"flex-31"],[3,"selectionChange","formControl"],[3,"value"],[1,"action-button","gap-25percent"],[1,"mat-elevation-z8","container"],[1,"container","margin-t","space-top","layout-row","gap-2percent","layout-align-center","layout-column-xs"],[1,"container","space-top"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","","cdkDropList","",3,"cdkDropListDropped","dataSource","cdkDropListData"],["matColumnDef","stepName"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","stepOrder"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","cdkDrag","",3,"cdkDragData",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row","","cdkDrag","",3,"cdkDragData"],["mat-raised-button","",3,"routerLink"],[3,"jobStepsData"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",3),R("selectionChange",function(d){return i.getWorkflowJobSteps(d.value)}),Se(6,Mgt,3,5,"mat-option",4,Pe),r()(),E(8,Dgt,5,3,"div",5),E(9,Ngt,14,4,"div",6),E(10,Lgt,7,8,"div",7),E(11,Vgt,2,1,"div",8),r()),n&2&&(a(3),h(m(4,6,"labels.inputs.Job Name")),a(2),g("formControl",i.jobName),a(),we(i.jobNameOptions),a(2),I(i.jobStepName?8:-1),a(),I(i.jobStepsData.length>0?9:-1),a(),I(i.stepOrderHasChanged?10:-1),a(),I(i.jobStepsData.length>0&&!i.stepOrderHasChanged?11:-1))},dependencies:[ue,fe,$e,_n,Oe,Fe,Be,gt,ft,xe,ke,_t,Tp,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,Pp,By,he,ki],styles:[".container[_ngcontent-%COMP%]{margin:auto!important}.workflow-graph[_ngcontent-%COMP%]{min-height:400px}.space-top[_ngcontent-%COMP%]{margin-top:20px!important}.space-bottom[_ngcontent-%COMP%]{margin-bottom:20px!important}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:0}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}}return e})();var Ko=(()=>{class e{constructor(){this.http=T(ko)}getMakerCheckerData(t){let n=new rn;if(t){let i=Object.getOwnPropertyNames(t);for(let s=0;s[100,500,1e3,5e3];function zgt(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w(3);return q(i.runInlineCOB())}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"Start inline COB")," "))}function Hgt(e,o){e&1&&(l(0,"div",6),F(1,zgt,4,3,"button",20),r()),e&2&&(a(),g("mifosxHasPermission","EXECUTE_INLINE_JOB"))}function Ggt(e,o){if(e&1){let t=Y();l(0,"th",23)(1,"mat-checkbox",24),R("change",function(i){V(t);let s=w(2);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(2);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function jgt(e,o){if(e&1){let t=Y();l(0,"td",25)(1,"mat-checkbox",26),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(2);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(2);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function $gt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Id")))}function Ugt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanId)}}function Wgt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Lock Placed On")))}function Qgt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.lockPlacedOn))}}function Ygt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Lock Owner")))}function Jgt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lockOwner)}}function Kgt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error")))}function Xgt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.error)}}function Zgt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.heading.Details")))}function e_t(e,o){if(e&1){let t=Y();l(0,"td",27)(1,"button",28),p(2,"translate"),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.showDetails(i))}),b(3,"fa-icon",29),r(),l(4,"button",30),p(5,"translate"),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.viewLoanAccount(i))}),b(6,"fa-icon",31),r()()}e&2&&(a(),g("matTooltip",Le(m(2,4,"tooltips.Error details"))),a(3),g("matTooltip",Le(m(5,6,"tooltips.View Loan Account"))))}function t_t(e,o){e&1&&b(0,"tr",32)}function i_t(e,o){if(e&1){let t=Y();l(0,"tr",33),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.selection.toggle(i))}),r()}}function n_t(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),E(5,Hgt,2,1,"div",6),r(),l(6,"table",7),X(7,8),F(8,Ggt,2,3,"th",9)(9,jgt,2,2,"td",10),Z(),X(10,11),F(11,$gt,3,3,"th",9)(12,Ugt,2,1,"td",12),Z(),X(13,13),F(14,Wgt,3,3,"th",9)(15,Qgt,3,3,"td",12),Z(),X(16,14),F(17,Ygt,3,3,"th",9)(18,Jgt,2,1,"td",12),Z(),X(19,15),F(20,Kgt,3,3,"th",9)(21,Xgt,2,1,"td",12),Z(),X(22,16),F(23,Zgt,3,3,"th",9)(24,e_t,7,8,"td",12),Z(),F(25,t_t,1,0,"tr",17)(26,i_t,1,0,"tr",18),r(),l(27,"mat-paginator",19),R("page",function(i){V(t);let s=w();return q(s.changePaging(i))}),r()()}if(e&2){let t=w();a(5),I(t.allowRunInlineJob?5:-1),a(),g("dataSource",t.dataSource),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("hidden",!t.showPaginator)("pageSizeOptions",oe(8,qgt))("pageSize",t.pageSize)("pageIndex",t.currentPage)}}function o_t(e,o){e&1&&(l(0,"div",1)(1,"div",34),b(2,"i",35),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No loan locked available"),". "))}var Ny=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.loansService=T(Tk),this.systemService=T(ii),this.tasksService=T(Ko),this.dialog=T(Ht),this.translateService=T(yi),this.loans=[],this.displayedColumns=["select","loanId","lockPlacedOn","lockOwner","error","details"],this.currentPage=0,this.itemsToRead=5e3,this.pageSize=100,this.allowRunInlineJob=!1,this.jobName="LOAN_COB",this.showPaginator=!1}set paginator(t){this.dataSource!=null&&(this.dataSource.paginator=t)}ngOnInit(){this.allowRunInlineJob=!1,this.getLoansLocked(0)}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}changePaging(t){this.pageSize=t.pageSize,this.currentPage!==t.pageIndex&&(this.currentPage=t.pageIndex)}getLoansLocked(t){this.tasksService.getAllLoansLocked(t,this.itemsToRead).subscribe(n=>{this.loans=n.content,this.dataSource=new Wt(this.loans),this.dataSource.paginator=this.paginator,this.showPaginator=this.loans.length>this.pageSize,this.allowRunInlineJob=!1,this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length;t===0?this.allowRunInlineJob=!1:this.allowRunInlineJob=!0;let n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?this.translateService.instant("labels.text.deselect"):this.translateService.instant("labels.text.select")} ${this.translateService.instant("labels.text.row")} ${t.position+1}`:`${this.isAllSelected()?this.translateService.instant("labels.text.select"):this.translateService.instant("labels.text.deselect")} ${this.translateService.instant("labels.text.All")}`}showDetails(t){this.dialog.open(qg,{width:"960px",height:"400px",data:"
"+t.stacktrace+"
"})}viewLoanAccount(t){let n=t.loanId;this.loansService.getLoanAccountDetails(n).subscribe(i=>{let s=i.clientId;this.router.navigateByUrl(`/clients/${s}/loans-accounts/${n}/general`)})}runInlineCOB(){let t=[];if(this.selection.selected.forEach(n=>{t.push(n.loanId)}),t.length>0){let n={loanIds:t};this.systemService.runInlineCOB(this.jobName,n).subscribe(i=>{this.getLoansLocked(0)})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-locked"]],viewQuery:function(n,i){if(n&1&&Ee(kt,5),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-90"],["matInput","","placeholder","Filter by loan Id or error",3,"keyup"],[1,"flex-60"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","loanId"],["mat-cell","","class","view-details",4,"matCellDef"],["matColumnDef","lockPlacedOn"],["matColumnDef","lockOwner"],["matColumnDef","error"],["matColumnDef","details"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"page","hidden","pageSizeOptions","pageSize","pageIndex"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","success",3,"click"],["icon","play",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details"],["mat-icon-button","","matTooltipPosition","left",1,"error-log",3,"click","matTooltip"],["icon","exclamation-circle","size","lg"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["icon","eye","size","lg"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,n_t,28,9,"div",0),E(1,o_t,5,3,"div",1)),n&2&&(I(i.loans&&i.loans.length>0?0:-1),a(),I(i.loans&&i.loans.length===0?1:-1))},dependencies:[ue,fe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,kt,he,Yr],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#32cd32}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffa726}.tab-container[_ngcontent-%COMP%] #search-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:1rem}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%], .tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.error-log[_ngcontent-%COMP%]{color:#ffa726}"]})}}return e})();function a_t(e,o){if(e&1){let t=Y();l(0,"button",6),R("click",function(){V(t);let i=w();return q(i.runCatchUp())}),b(1,"fa-icon",7),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Run Catch-Up")," "))}var Ly=(()=>{class e{constructor(){this.systemService=T(ii),this.waitTime=un.waitTimeForCOBCatchUp||30,this.isCatchUpRunning=!0}ngOnInit(){this.getCOBCatchUpStatus()}ngOnDestroy(){clearTimeout(this.timer)}getCOBCatchUpStatus(){this.systemService.getCOBCatchUpStatus().subscribe(t=>{this.isCatchUpRunning=t.isCatchUpRunning}),this.timer=setTimeout(()=>{this.getCOBCatchUpStatus()},this.waitTime*1e3)}runCatchUp(){this.systemService.runCOBCatchUp().subscribe(t=>{this.isCatchUpRunning=!0,this.waitTime=5e3})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-cob-workflow"]],inputs:{isCatchUpRunning:"isCatchUpRunning"},decls:13,vars:9,consts:[["cobCatchUpStatus",""],[1,"container","m-b-20","space-top","layout-row","layout-row","gap-20px"],[1,"no-m"],[1,"m-l-20","m-r-20"],["mat-raised-button","",1,"activate"],[1,"container","space-top"],["mat-raised-button","",1,"activate",3,"click"],["icon","times-circle",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"div",null,0)(3,"h2",2),c(4),p(5,"translate"),l(6,"span",3),c(7),p(8,"translate"),p(9,"translate"),r()()(),E(10,a_t,4,3,"button",4),r(),l(11,"div",5),b(12,"mifosx-loan-locked"),r()),n&2&&(a(4),v(" ",m(5,3,"labels.heading.COB Catch-Up is"),":"),a(3),h(i.isCatchUpRunning?m(8,5,"labels.catalogs.Running"):m(9,7,"labels.catalogs.Inactive")),a(3),I(i.isCatchUpRunning?-1:10))},dependencies:[ue,fe,xe,ke,Ny,he],styles:[".success[_ngcontent-%COMP%]{color:#32cd32}.fail[_ngcontent-%COMP%]{color:#f44366}.currently-running[_ngcontent-%COMP%]{color:#32cd32}.not-currently-running[_ngcontent-%COMP%]{color:#f44366}.errorlog[_ngcontent-%COMP%]{color:#ffa726}.suspend[_ngcontent-%COMP%]{background:#32cd32;color:#fff}.activate[_ngcontent-%COMP%]{background:#f44366;color:#fff}.space-top[_ngcontent-%COMP%]{margin-top:30px}"]})}}return e})();var Vy=(()=>{class e{constructor(){this.systemService=T(ii),this.translateService=T(yi),this.isCatchUpRunning=!0}onJobTabChange(t){t.index===2&&this.systemService.getCOBCatchUpStatus().subscribe(n=>{this.isCatchUpRunning=n.isCatchUpRunning})}title(t){return this.translateService.instant("labels.inputs."+t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-jobs"]],decls:10,vars:7,consts:[["tabGroup",""],[1,"container-card"],["mat-align-tabs","center",3,"selectedTabChange"],[3,"label"],[3,"isCatchUpRunning"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",1)(1,"mat-card-content")(2,"mat-tab-group",2,0),R("selectedTabChange",function(u){return V(s),q(i.onJobTabChange(u))}),l(4,"mat-tab",3),b(5,"mifosx-manage-scheduler-jobs"),r(),l(6,"mat-tab",3),b(7,"mifosx-workflow-jobs"),r(),l(8,"mat-tab",3),b(9,"mifosx-cob-workflow",4),r()()()()}n&2&&(a(4),g("label",Le(i.title("Scheduler Jobs"))),a(2),g("label",Le(i.title("Workflow Jobs"))),a(2),g("label",Le(i.title("COB"))),a(),g("isCatchUpRunning",i.isCatchUpRunning))},dependencies:[ue,fe,Ue,Je,Nr,Qr,ab,Ry,Ly],styles:[".container-card[_ngcontent-%COMP%]{margin:0 auto;max-width:90rem;width:90%;padding:0 0 50px;min-height:500px}.container-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{padding:1%}.container-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%]{margin-top:1.4rem;color:#fff;width:90%}.container-card[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .header-title-group[_ngcontent-%COMP%] .client-card-title[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#fff}.container-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.container-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var r_t=()=>["../"];function l_t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Job Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function s_t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Cron Expression")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function c_t(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.jobForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var mh=(()=>{class e{constructor(){this.route=T(Ie),this.systemService=T(ii),this.router=T(qe),this.formBuilder=T(nt),this.route.data.subscribe(t=>{this.jobData=t.jobSelected})}ngOnInit(){this.createJobForm()}createJobForm(){this.jobForm=this.formBuilder.group({displayName:[this.jobData.displayName,ce.required],cronExpression:[this.jobData.cronExpression,ce.required],active:[this.jobData.active]})}submit(){this.systemService.updateScheduler(this.jobData.jobId,this.jobForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-scheduler-job"]],decls:25,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","displayName"],["matInput","","required","","formControlName","cronExpression"],["labelPosition","before","formControlName","active"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,l_t,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,s_t,7,9,"mat-error"),r(),l(17,"mat-checkbox",5),c(18),p(19,"translate"),r()(),l(20,"mat-card-actions",6)(21,"button",7),c(22),p(23,"translate"),r(),F(24,c_t,3,4,"button",8),r()()()()()),n&2&&(a(2),g("formGroup",i.jobForm),a(5),h(m(8,9,"labels.inputs.Job Name")),a(3),I(i.jobForm.controls.displayName.hasError("required")?10:-1),a(3),h(m(14,11,"labels.inputs.Cron Expression")),a(3),I(i.jobForm.controls.cronExpression.hasError("required")?16:-1),a(2),v(" ",m(19,13,"labels.inputs.Is job active"),"? "),a(3),g("routerLink",oe(17,r_t)),a(),v(" ",m(23,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_SCHEDULER"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var BI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getSelectedJob(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var p_t=()=>[10,25,50,100],m_t=()=>["../"];function d_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Version")))}function u_t(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.version)}}function f_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Time")))}function h_t(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.jobRunStartTime))}}function g_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.End Time"),"End time"))}function __t(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"datetimeFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.jobRunEndTime))}}function C_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function v_t(e,o){e&1&&(b(0,"fa-icon",21),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Successful")))}function x_t(e,o){e&1&&(b(0,"fa-icon",22),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Failed")))}function b_t(e,o){if(e&1&&(l(0,"td",20),E(1,v_t,2,4,"fa-icon",21),E(2,x_t,2,4,"fa-icon",22),r()),e&2){let t=o.$implicit;a(),I(t.status==="success"?1:-1),a(),I(t.status!=="success"?2:-1)}}function y_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Run Type")))}function S_t(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.triggerType)}}function w_t(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error Log")))}function P_t(e,o){if(e&1){let t=Y();l(0,"button",24),p(1,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.openError(i.version))}),b(2,"fa-icon",25),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Error Log")))}function T_t(e,o){if(e&1&&(l(0,"td",20),E(1,P_t,3,4,"button",23),r()),e&2){let t=o.$implicit;a(),I(t.status!=="success"?1:-1)}}function M_t(e,o){e&1&&b(0,"tr",26)}function D_t(e,o){e&1&&b(0,"tr",27)}var qy=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.router=T(qe),this.displayedColumns=["version","run_start_time","run_end_time","status","run_type","error_log"],this.route.data.subscribe(t=>{this.jobHistoryData=t.jobsSchedulerHistory})}applyFilter(t){let n=[{id:"version",value:t}];this.dataSource.filter=JSON.stringify(n)}ngOnInit(){this.setJobHistory()}setJobHistory(){this.dataSource=new Wt(this.jobHistoryData.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.filterPredicate=(t,n)=>{let i=[];return JSON.parse(n).forEach(d=>{let u=t[d.id]===null?"":t[d.id];d.value!==""&&u!==""?i.push(parseInt(u.toString(),10)===parseInt(d.value,10)):(d.value===""||u==="")&&i.push(u.toString().toLowerCase().includes(d.value.toLowerCase()))}),i.every(Boolean)}}openError(t){this.dialog.open(qg,{width:"400px",data:this.jobHistoryData.pageItems.filter(i=>i.version===t)[0].jobRunErrorLog}).afterClosed().subscribe(i=>{this.router.navigate([""])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-history-scheduler-job"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:34,vars:13,consts:[[1,"container"],[1,"layout-row","m-b-10"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","version"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","run_start_time"],["matColumnDef","run_end_time"],["matColumnDef","status"],["matColumnDef","run_type"],["matColumnDef","error_log"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","layout-align-center"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["matTooltipPosition","right","icon","check-circle","size","lg",1,"success",3,"matTooltip"],["matTooltipPosition","right","icon","times-circle","size","lg",1,"fail",3,"matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"matTooltip"],["mat-icon-button","","matTooltipPosition","right",1,"errorlog",3,"click","matTooltip"],["icon","exclamation-circle","size","lg"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"input",3),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(7,"div",4)(8,"table",5),X(9,6),F(10,d_t,3,3,"th",7)(11,u_t,2,1,"td",8),Z(),X(12,9),F(13,f_t,3,3,"th",7)(14,h_t,3,3,"td",8),Z(),X(15,10),F(16,g_t,3,3,"th",7)(17,__t,3,3,"td",8),Z(),X(18,11),F(19,C_t,3,3,"th",7)(20,b_t,3,2,"td",8),Z(),X(21,12),F(22,y_t,3,3,"th",7)(23,S_t,2,1,"td",8),Z(),X(24,13),F(25,w_t,3,3,"th",7)(26,T_t,2,1,"td",8),Z(),F(27,M_t,1,0,"tr",14)(28,D_t,1,0,"tr",15),r(),b(29,"mat-paginator",16),l(30,"div",17)(31,"button",18),c(32),p(33,"translate"),r()()()()),n&2&&(a(4),h(m(5,7,"labels.inputs.Filter By Version")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(11,p_t)),a(2),g("routerLink",oe(12,m_t)),a(),v(" ",m(33,9,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,_t,It,xt,vt,bt,ri,Ct,yt,ke,si,wi,St,Pt,wt,Tt,kt,he,Yr],styles:[".container[_ngcontent-%COMP%]{padding-bottom:15px}table[_ngcontent-%COMP%]{width:96%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.success[_ngcontent-%COMP%]{color:#32cd32}.fail[_ngcontent-%COMP%]{color:#f44366}.currently-running[_ngcontent-%COMP%]{color:#32cd32}.not-currently-running[_ngcontent-%COMP%]{color:#f44366}.errorlog[_ngcontent-%COMP%]{color:#ffa726}.suspend[_ngcontent-%COMP%]{background:#ffa726;color:#fff}"]})}}return e})();var RI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getHistoryScheduler(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var E_t=()=>["edit"],I_t=()=>["viewhistory"],O_t=()=>["../"],zy=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.jobData=t.selectedJob})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-scheduler-job"]],decls:40,vars:35,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["href","http://www.cronmaker.com/"],[1,"layout-row","layout-align-center","flex-100","column-on-mobile"],["type","button","color","primary","mat-raised-button","",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",1),c(6),p(7,"translate"),r()(),l(8,"div",3)(9,"mat-card")(10,"mat-card-content")(11,"div",4)(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r(),l(22,"div",5),c(23),p(24,"translate"),r(),l(25,"div",6),c(26),p(27,"yesNo"),r(),l(28,"div",5),c(29),p(30,"translate"),r(),l(31,"div",6)(32,"a",7),c(33),p(34,"translate"),r()()()(),l(35,"mat-card-actions")(36,"div",8)(37,"button",9),c(38),p(39,"translate"),r()()()()()),n&2&&(a(),g("routerLink",oe(32,E_t)),a(2),v(" ",m(4,14,"labels.buttons.Edit")," "),a(2),g("routerLink",oe(33,I_t)),a(),v(" ",m(7,16,"labels.buttons.View History")," "),a(7),v(" ",m(14,18,"labels.inputs.Job Name")," "),a(3),v(" ",i.jobData.displayName," "),a(2),v(" ",m(19,20,"labels.inputs.Cron Expression")," "),a(3),v(" ",i.jobData.cronExpression," "),a(2),v("",m(24,22,"labels.inputs.Is Active Job"),"?"),a(3),v(" ",m(27,24,i.jobData.active)," "),a(3),v(" ",m(30,26,"labels.inputs.Follow")," "),a(4),v(" ",m(34,28,"labels.text.Click Here To Generate Cron Expression")," "),a(4),g("routerLink",oe(34,O_t)),a(),v(" ",m(39,30,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,ke,he,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var NI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getSelectedJob(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Hy=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getReportTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Gy=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getReport(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var LI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getReports()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var VI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getSurveys()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var jy=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getSurvey(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var qI=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(){return this.systemService.getRoles()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var $y=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.paramMap.get("id");return this.systemService.getRole(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var A_t=[_o.withShell([{path:"system",data:{title:"System",breadcrumb:"System"},children:[{path:"",component:Vx},{path:"codes",data:{title:"View Codes",breadcrumb:"Codes"},children:[{path:"",component:Kv,resolve:{codes:o1}},{path:"create",component:Xv,data:{title:"Create Code",breadcrumb:"Create"}},{path:":id",data:{title:"View Code",routeParamBreadcrumb:"id"},children:[{path:"",component:ex,resolve:{code:Hx,codeValues:K5}},{path:"edit",component:Zv,data:{title:"Edit Code",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{code:Hx}}]}]},{path:"external-events",data:{title:"Manage External Events",breadcrumb:"Manage External Events"},children:[{path:"",component:Zx,resolve:{events:MN}}]},{path:"entity-to-entity-mapping",component:tx,data:{title:"Entity to Entity Mapping",breadcrumb:"Entity to Entity Mapping"},resolve:{entityMappings:tD}},{path:"external-services",data:{title:"External Services",breadcrumb:"External Services"},children:[{path:"",component:px},{path:"amazon-s3",data:{title:"View Amazon S3 Configuration",breadcrumb:"Amazon S3"},children:[{path:"",component:ix,resolve:{amazonS3Configuration:Qx}},{path:"edit",component:nx,data:{title:"Edit Amazon S3 Configuration",breadcrumb:"Edit"},resolve:{amazonS3Configuration:Qx}}]},{path:"email",data:{title:"View Email Configuration",breadcrumb:"Email"},children:[{path:"",component:ax,resolve:{emailConfiguration:Yx}},{path:"edit",component:ox,data:{title:"Edit Email Configuration",breadcrumb:"Edit"},resolve:{emailConfiguration:Yx}}]},{path:"sms",data:{title:"View SMS Configuration",breadcrumb:"SMS"},children:[{path:"",component:fx,resolve:{smsConfiguration:Kx}},{path:"edit",data:{title:"Edit SMS Configuration",breadcrumb:"Edit"},component:ux,resolve:{smsConfiguration:Kx}}]},{path:"notification",data:{title:"View Notification Configuration",breadcrumb:"Notification"},children:[{path:"",component:dx,resolve:{notificationConfiguration:Jx}},{path:"edit",component:mx,data:{title:"Edit Notification Configuration",breadcrumb:"Edit"},resolve:{notificationConfiguration:Jx}}]}]},{path:"data-tables",data:{title:"Manage Data Tables",breadcrumb:"Manage Data Tables"},children:[{path:"",component:vx,resolve:{dataTables:iD}},{path:"create",component:_x,data:{title:"Create Data Table",breadcrumb:"Create"},resolve:{columnCodes:o1}},{path:":datatableName",data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},children:[{path:"",component:xx,resolve:{dataTable:Xx}},{path:"edit",component:Cx,data:{title:"Edit Data table",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{dataTable:Xx,columnCodes:o1}}]}]},{path:"hooks",data:{title:"Manage Hooks",breadcrumb:"Manage Hooks"},children:[{path:"",component:Sx,resolve:{hooks:nD}},{path:"create",component:bx,data:{title:"Create Hook",breadcrumb:"Create"},resolve:{hooksTemplate:eb}},{path:":id",data:{title:"View Hook",routeParamBreadcrumb:"id"},children:[{path:"",component:wx,resolve:{hook:tb}},{path:"edit",component:yx,data:{title:"Edit Hook",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{hooksTemplate:eb,hook:tb}}]}]},{path:"roles-and-permissions",data:{title:"Roles and Permissions",breadcrumb:"Roles and Permissions"},children:[{path:"",component:Rx,resolve:{roles:qI}},{path:"add",component:kx,data:{title:"Add Role",breadcrumb:"Add"}},{path:":id",data:{title:"View Role",routeParamBreadcrumb:"id"},runGuardsAndResolvers:"always",children:[{path:"",component:Nx,resolve:{roledetails:$y}},{path:"edit",component:Bx,data:{title:"Edit Role",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{role:$y}}]}]},{path:"configure-mc-tasks",data:{title:"Configure Maker Checker Tasks",breadcrumb:"Configure Maker Checker Tasks"},component:Wx,resolve:{permissions:eD}},{path:"surveys",data:{title:"Manage Surveys",breadcrumb:"Manage Surveys"},children:[{path:"",component:Ax,resolve:{surveys:VI}},{path:"create",component:Ix,data:{title:"Create Survey",breadcrumb:"Create"}},{path:":id",data:{title:"View Survey",routeParamBreadcrumb:"id"},children:[{path:"",component:Fx,resolve:{survey:jy}},{path:"edit",component:Ox,data:{title:"Edit Survey",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{survey:jy}}]}]},{path:"manage-jobs",data:{title:"Manage Scheduler and COB Jobs",breadcrumb:"Manage Scheduler and COB Jobs"},children:[{path:"",component:Vy,resolve:{}},{path:":id",data:{title:"View Scheduler Job",routeParamBreadcrumb:"id"},children:[{path:"",component:zy,resolve:{selectedJob:NI}},{path:"edit",component:mh,data:{title:"Edit Scheduler Job",routeParamBreadcrumb:!1,breadcrumb:"Edit"},resolve:{jobSelected:BI}},{path:"viewhistory",component:qy,data:{title:"Scheduler Job History",breadcrumb:"View History"},resolve:{jobsSchedulerHistory:RI}}]}]},{path:"configurations",data:{title:"Configurations",breadcrumb:"Configurations"},children:[{path:"",component:$x,resolve:{configurations:Wp}},{path:":id/edit",data:{title:"Edit Configuration",routeParamBreadcrumb:"id"},component:Ux,resolve:{configuration:X5}}]},{path:"account-number-preferences",data:{title:"Account Number Preferences",breadcrumb:"Account Number Preferences"},children:[{path:"",component:jv,resolve:{accountNumberPreferences:Q5}},{path:"create",component:$v,data:{title:"Create Account Number Preference",breadcrumb:"Create"},resolve:{accountNumberPreferencesTemplate:qx}},{path:":id",data:{title:"View Account Number Preference",routeParamBreadcrumb:"id"},children:[{path:"",component:Wv,resolve:{accountNumberPreference:zx}},{path:"edit",component:Uv,data:{title:"Edit Account Number Preference",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{accountNumberPreference:zx,accountNumberPreferencesTemplate:qx}}]}]},{path:"reports",data:{title:"Manage Reports",breadcrumb:"Manage Reports"},children:[{path:"",component:Dx,resolve:{reports:LI}},{path:"create",component:Px,data:{title:"Create Report",breadcrumb:"Create"},resolve:{reportTemplate:Hy}},{path:":id",data:{title:"View Report",routeParamBreadcrumb:"id"},children:[{path:"",component:Ex,resolve:{report:Gy}},{path:"edit",component:Tx,data:{title:"Edit Report",routeParamBreadcrumb:!1,breadcrumb:"Edit"},resolve:{report:Gy,reportTemplate:Hy}}]}]},{path:"audit-trails",data:{title:"Audit Trails",breadcrumb:"Audit Trails"},children:[{path:"",component:Yv,resolve:{auditTrailSearchTemplate:Y5}},{path:":id",component:Jv,data:{title:"View Audit",routeParamBreadcrumb:"id"},resolve:{auditTrail:J5}}]}]}])],QK=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[o1,Hx,K5,iD,Xx,nD,tb,eb,qI,VI,jy,Wp,X5,Qx,Yx,Kx,Jx,Q5,qx,zx,LI,Gy,Hy,Y5,J5,NI,BI,$y,tD,eD,RI],imports:[gn.forChild(A_t),gn]})}}return e})();var YK=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[QK,oo,ha,WK,v_,ck,Er,Vx,Kv,ex,Xv,Zv,px,vx,_x,xx,Cx,Sx,Rx,Ax,Ux,ix,ax,fx,dx,nx,ox,mx,ux,jv,$v,Wv,Uv,Dx,Ex,Px,Tx,Up,kx,yx,wx,bx,tu,$p,Yv,Jv,zy,mh,Nx,Bx,tx,Wx,Ix,mh,qy,Fx,Ox,jx,$x,Gx,Vy,ab,Ry,By,Zx,Ly,Ny,ib,a1,nb,ob,r1]})}}return e})();var F_t=["charges"],k_t=["templateCharges"],B_t=["loanProducts"],R_t=["templateLoanProducts"],N_t=["savingsProducts"],L_t=["templateSavingsProducts"],V_t=["shareProducts"],q_t=["templateShareProducts"],z_t=["fixedDepositProducts"],H_t=["templateFixedDepositProducts"],G_t=["recurringDepositProducts"],j_t=["templateRecurringDepositProducts"],zI=()=>["collaterals"],HI=()=>["loan-products"],GI=()=>["saving-products"],jI=()=>["share-products"],$I=()=>["charges"],UI=()=>["delinquency-bucket-configurations"],WI=()=>["products-mix"],QI=()=>["fixed-deposit-products"],YI=()=>["recurring-deposit-products"],JI=()=>["tax-configurations"],KI=()=>["floating-rates"];function $_t(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,HI)),a(),v(" ",m(2,2,"labels.text.Add new loan product or modify or inactivate loan product")," "))}function U_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function W_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function Q_t(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,$_t,3,5,"p",22),r()(),l(9,"div",23),E(10,U_t,1,0,"fa-icon",24),E(11,W_t,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,HI)),a(2),g("routerLink",oe(9,HI)),a(4),v(" ",m(7,6,"labels.heading.Loan Products")," "),a(2),I(t.arrowBooleans[0]?8:-1),a(2),I(t.arrowBooleans[0]?-1:10),a(),I(t.arrowBooleans[0]?11:-1)}}function Y_t(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,GI)),a(),v(" ",m(2,2,"labels.text.Add new savings product or modify or inactivate savings product")," "))}function J_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function K_t(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function X_t(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,Y_t,3,5,"p",22),r()(),l(9,"div",23),E(10,J_t,1,0,"fa-icon",24),E(11,K_t,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,GI)),a(2),g("routerLink",oe(9,GI)),a(4),v(" ",m(7,6,"labels.heading.Savings Products")," "),a(2),I(t.arrowBooleans[1]?8:-1),a(2),I(t.arrowBooleans[1]?-1:10),a(),I(t.arrowBooleans[1]?11:-1)}}function Z_t(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,jI)),a(),v(" ",m(2,2,"labels.text.Add new share product or modify or inactivate share product")," "))}function eCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function tCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(2),q(i.stopPropagation())}),r()}}function iCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,Z_t,3,5,"p",22),r()(),l(9,"div",23),E(10,eCt,1,0,"fa-icon",24),E(11,tCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,jI)),a(2),g("routerLink",oe(9,jI)),a(4),v(" ",m(7,6,"labels.heading.Share Products")," "),a(2),I(t.arrowBooleans[2]?8:-1),a(2),I(t.arrowBooleans[2]?-1:10),a(),I(t.arrowBooleans[2]?11:-1)}}function nCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,$I)),a(),v(" ",m(2,2,"labels.text.Define charges/penalties for loan products, savings and deposit products")," "))}function oCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function aCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(3),q(i.stopPropagation())}),r()}}function rCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",20),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,nCt,3,5,"p",22),r()(),l(9,"div",23),E(10,oCt,1,0,"fa-icon",24),E(11,aCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,$I)),a(2),g("routerLink",oe(9,$I)),a(4),v(" ",m(7,6,"labels.heading.Charges")," "),a(2),I(t.arrowBooleans[3]?8:-1),a(2),I(t.arrowBooleans[3]?-1:10),a(),I(t.arrowBooleans[3]?11:-1)}}function lCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,zI)),a(),v(" ",m(2,2,"labels.text.Define collaterals for Collateral Management")," "))}function sCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function cCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w().arrowBooleansToggle(4),q(i.stopPropagation())}),r()}}function pCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,UI)),a(),v(" ",m(2,2,"labels.text.Define delinquency day ranges and bucket set for loan products")," "))}function mCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function dCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(5),q(i.stopPropagation())}),r()}}function uCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,pCt,3,5,"p",22),r()(),l(9,"div",23),E(10,mCt,1,0,"fa-icon",24),E(11,dCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,UI)),a(2),g("routerLink",oe(9,UI)),a(4),v(" ",m(7,6,"labels.heading.Delinquency Buckets")," "),a(2),I(t.arrowBooleans[5]?8:-1),a(2),I(t.arrowBooleans[5]?-1:10),a(),I(t.arrowBooleans[5]?11:-1)}}function fCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,WI)),a(),v(" ",m(2,2,"labels.text.Defines rules for taking multiple rules")," "))}function hCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function gCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(6),q(i.stopPropagation())}),r()}}function _Ct(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",29),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,fCt,3,5,"p",22),r()(),l(9,"div",23),E(10,hCt,1,0,"fa-icon",24),E(11,gCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,WI)),a(2),g("routerLink",oe(9,WI)),a(4),v(" ",m(7,6,"labels.heading.Products Mix")," "),a(2),I(t.arrowBooleans[6]?8:-1),a(2),I(t.arrowBooleans[6]?-1:10),a(),I(t.arrowBooleans[6]?11:-1)}}function CCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,QI)),a(),v(" ",m(2,2,"labels.text.Add, modify or inactivate a Fixed deposit product")," "))}function vCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function xCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(7),q(i.stopPropagation())}),r()}}function bCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,CCt,3,5,"p",22),r()(),l(9,"div",23),E(10,vCt,1,0,"fa-icon",24),E(11,xCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,QI)),a(2),g("routerLink",oe(9,QI)),a(4),v(" ",m(7,6,"labels.heading.Fixed Deposit Products")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function yCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,YI)),a(),v(" ",m(2,2,"labels.text.Add, modify or inactivate a Recurring Deposit product")," "))}function SCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function wCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(8),q(i.stopPropagation())}),r()}}function PCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",26),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,yCt,3,5,"p",22),r()(),l(9,"div",23),E(10,SCt,1,0,"fa-icon",24),E(11,wCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,YI)),a(2),g("routerLink",oe(9,YI)),a(4),v(" ",m(7,6,"labels.heading.Recurring Deposit Products")," "),a(2),I(t.arrowBooleans[8]?8:-1),a(2),I(t.arrowBooleans[8]?-1:10),a(),I(t.arrowBooleans[8]?11:-1)}}function TCt(e,o){e&1&&(l(0,"p",22),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,JI)),a(),v(" ",m(2,2,"labels.text.Define Tax components and Tax groups")," "))}function MCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function DCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(9),q(i.stopPropagation())}),r()}}function ECt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",30),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,TCt,3,5,"p",22),r()(),l(9,"div",23),E(10,MCt,1,0,"fa-icon",24),E(11,DCt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,JI)),a(2),g("routerLink",oe(9,JI)),a(4),v(" ",m(7,6,"labels.heading.Manage Tax Configurations")," "),a(2),I(t.arrowBooleans[9]?8:-1),a(2),I(t.arrowBooleans[9]?-1:10),a(),I(t.arrowBooleans[9]?11:-1)}}function ICt(e,o){e&1&&(l(0,"p",31),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,KI)),a(),v(" ",m(2,2,"labels.text.Define floating rates for loan products")," "))}function OCt(e,o){if(e&1){let t=Y();l(0,"fa-icon",27),R("click",function(i){return V(t),w(2).arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function ACt(e,o){if(e&1){let t=Y();l(0,"fa-icon",28),R("click",function(i){return V(t),w(2).arrowBooleansToggle(10),q(i.stopPropagation())}),r()}}function FCt(e,o){if(e&1&&(l(0,"mat-list-item",16)(1,"div",17)(2,"div",18)(3,"mat-icon",19),b(4,"fa-icon",20),r(),l(5,"div",21),c(6),p(7,"translate"),E(8,ICt,3,5,"p",31),r()(),l(9,"div",23),E(10,OCt,1,0,"fa-icon",24),E(11,ACt,1,0,"fa-icon",25),r()()()),e&2){let t=w();g("routerLink",oe(8,KI)),a(2),g("routerLink",oe(9,KI)),a(4),v(" ",m(7,6,"labels.heading.Floating Rates")," "),a(2),I(t.arrowBooleans[10]?8:-1),a(2),I(t.arrowBooleans[10]?-1:10),a(),I(t.arrowBooleans[10]?11:-1)}}function kCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8," Close "),r(),l(9,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepCharges())}),c(10),p(11,"translate"),r(),l(12,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepCharges())}),c(13),p(14,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Charges")),a(3),h(m(5,6,"labels.text.Two types of charges\u2014fees and penalties")),a(6),v(" ",m(11,8,"labels.buttons.Back")," "),a(3),v(" ",m(14,10,"labels.buttons.Next")," "))}function BCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepLoanProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepLoanProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Loan Products")),a(3),h(m(5,7,"labels.text.Loan products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function RCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepSavingsProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepSavingsProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Savings Products")),a(3),h(m(5,7,"labels.text.Savings products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function NCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepShareProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepShareProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Share Products")),a(3),h(m(5,7,"labels.text.Share products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function LCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepFixedDepositProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepFixedDepositProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Fixed Deposit Products")),a(3),h(m(5,7,"labels.text.Fixed Deposit Products defines the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function VCt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepRecurringDepositProducts())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepRecurringDepositProducts())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Recurring Deposit Products")),a(3),h(m(5,7,"labels.text.Recurring Deposit products define the rules, default settings")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Uy=(()=>{class e{constructor(){this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.arrowBooleans=new Array(11).fill(!1)}ngAfterViewInit(){this.configurationWizardService.showCharges===!0&&setTimeout(()=>{this.showPopover(this.templateCharges,this.charges.nativeElement,"bottom",!0)}),this.configurationWizardService.showLoanProducts===!0&&setTimeout(()=>{this.showPopover(this.templateLoanProducts,this.loanProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showSavingsProducts===!0&&setTimeout(()=>{this.showPopover(this.templateSavingsProducts,this.savingsProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showShareProducts===!0&&setTimeout(()=>{this.showPopover(this.templateShareProducts,this.shareProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showFixedDepositProducts===!0&&setTimeout(()=>{this.showPopover(this.templateFixedDepositProducts,this.fixedDepositProducts.nativeElement,"bottom",!0)}),this.configurationWizardService.showRecurringDepositProducts===!0&&setTimeout(()=>{this.showPopover(this.templateRecurringDepositProducts,this.recurringDepositProducts.nativeElement,"bottom",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStepCharges(){this.configurationWizardService.showCharges=!1,this.configurationWizardService.showChargesPage=!0,this.router.navigate(["/products/charges"])}previousStepCharges(){this.configurationWizardService.showCharges=!1,this.configurationWizardService.showCreateJournalEntries=!0,this.router.navigate(["/accounting/journal-entries/create"])}nextStepLoanProducts(){this.configurationWizardService.showLoanProducts=!1,this.configurationWizardService.showLoanProductsPage=!0,this.router.navigate(["/products/loan-products"])}previousStepLoanProducts(){this.configurationWizardService.showLoanProducts=!1,this.configurationWizardService.showChargesList=!0,this.router.navigate(["/products/charges"])}nextStepSavingsProducts(){this.configurationWizardService.showSavingsProducts=!1,this.configurationWizardService.showSavingsProductsPage=!0,this.router.navigate(["/products/saving-products"])}previousStepSavingsProducts(){this.configurationWizardService.showSavingsProducts=!1,this.configurationWizardService.showLoanProductsList=!0,this.router.navigate(["/products/loan-products"])}nextStepShareProducts(){this.configurationWizardService.showShareProducts=!1,this.configurationWizardService.showShareProductsPage=!0,this.router.navigate(["/products/share-products"])}previousStepShareProducts(){this.configurationWizardService.showShareProducts=!1,this.configurationWizardService.showSavingsProductsList=!0,this.router.navigate(["/products/saving-products"])}nextStepFixedDepositProducts(){this.configurationWizardService.showFixedDepositProducts=!1,this.configurationWizardService.showFixedDepositProductsPage=!0,this.router.navigate(["/products/fixed-deposit-products"])}previousStepFixedDepositProducts(){this.configurationWizardService.showFixedDepositProducts=!1,this.configurationWizardService.showShareProductsList=!0,this.router.navigate(["/products/share-products"])}nextStepRecurringDepositProducts(){this.configurationWizardService.showRecurringDepositProducts=!1,this.configurationWizardService.showRecurringDepositProductsPage=!0,this.router.navigate(["/products/recurring-deposit-products"])}previousStepRecurringDepositProducts(){this.configurationWizardService.showRecurringDepositProducts=!1,this.configurationWizardService.showFixedDepositProductsList=!0,this.router.navigate(["/products/fixed-deposit-products"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-products"]],viewQuery:function(n,i){if(n&1&&(Ee(F_t,5),Ee(k_t,5),Ee(B_t,5),Ee(R_t,5),Ee(N_t,5),Ee(L_t,5),Ee(V_t,5),Ee(q_t,5),Ee(z_t,5),Ee(H_t,5),Ee(G_t,5),Ee(j_t,5)),n&2){let s;Te(s=Me())&&(i.charges=s.first),Te(s=Me())&&(i.templateCharges=s.first),Te(s=Me())&&(i.loanProducts=s.first),Te(s=Me())&&(i.templateLoanProducts=s.first),Te(s=Me())&&(i.savingsProducts=s.first),Te(s=Me())&&(i.templateSavingsProducts=s.first),Te(s=Me())&&(i.shareProducts=s.first),Te(s=Me())&&(i.templateShareProducts=s.first),Te(s=Me())&&(i.fixedDepositProducts=s.first),Te(s=Me())&&(i.templateFixedDepositProducts=s.first),Te(s=Me())&&(i.recurringDepositProducts=s.first),Te(s=Me())&&(i.templateRecurringDepositProducts=s.first)}},decls:53,vars:20,consts:[["loanProducts",""],["savingsProducts",""],["shareProducts",""],["charges",""],["fixedDepositProducts",""],["recurringDepositProducts",""],["templateCharges",""],["templateLoanProducts",""],["templateSavingsProducts",""],["templateShareProducts",""],["templateFixedDepositProducts",""],["templateRecurringDepositProducts",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink",4,"mifosxHasPermission"],[3,"routerLink"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","money-bill-alt","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","briefcase","size","sm"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","random","size","sm"],["icon","cogs","size","sm"],["matLine","",3,"routerLink"],[1,"mw400"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",12)(1,"mat-card")(2,"div",13)(3,"div",14)(4,"mat-nav-list")(5,"div",null,0),F(7,Q_t,12,10,"mat-list-item",15),r(),l(8,"div",null,1),F(10,X_t,12,10,"mat-list-item",15),r(),l(11,"div",null,2),F(13,iCt,12,10,"mat-list-item",15),r(),l(14,"div",null,3),F(16,rCt,12,10,"mat-list-item",15),r(),l(17,"mat-list-item",16)(18,"div",17)(19,"div",18)(20,"mat-icon",19),b(21,"fa-icon",20),r(),l(22,"div",21),c(23),p(24,"translate"),E(25,lCt,3,5,"p",22),r()(),l(26,"div",23),E(27,sCt,1,0,"fa-icon",24),E(28,cCt,1,0,"fa-icon",25),r()()(),F(29,uCt,12,10,"mat-list-item",15),r()(),l(30,"div",14)(31,"mat-nav-list"),F(32,_Ct,12,10,"mat-list-item",15),l(33,"div",null,4),F(35,bCt,12,10,"mat-list-item",15),r(),l(36,"div",null,5),F(38,PCt,12,10,"mat-list-item",15),r(),F(39,ECt,12,10,"mat-list-item",15)(40,FCt,12,10,"mat-list-item",15),r()()()()(),F(41,kCt,15,12,"ng-template",null,6,ti)(43,BCt,16,15,"ng-template",null,7,ti)(45,RCt,16,15,"ng-template",null,8,ti)(47,NCt,16,15,"ng-template",null,9,ti)(49,LCt,16,15,"ng-template",null,10,ti)(51,VCt,16,15,"ng-template",null,11,ti)),n&2&&(a(7),g("mifosxHasPermission","READ_LOANPRODUCT"),a(3),g("mifosxHasPermission","READ_SAVINGSPRODUCT"),a(3),g("mifosxHasPermission","READ_SHAREPRODUCT"),a(3),g("mifosxHasPermission","READ_CHARGE"),a(),g("routerLink",oe(18,zI)),a(2),g("routerLink",oe(19,zI)),a(4),v(" ",m(24,16,"labels.heading.Collateral Management")," "),a(2),I(i.arrowBooleans[4]?25:-1),a(2),I(i.arrowBooleans[4]?-1:27),a(),I(i.arrowBooleans[4]?28:-1),a(),g("mifosxHasPermission","READ_DELINQUENCY_BUCKET"),a(3),g("mifosxHasPermission","READ_PRODUCTMIX"),a(3),g("mifosxHasPermission","READ_FIXEDDEPOSITPRODUCT"),a(3),g("mifosxHasPermission","READ_RECURRINGDEPOSITPRODUCT"),a(),g("mifosxHasPermission","READ_TAXGROUP"),a(),g("mifosxHasPermission","READ_FLOATINGRATE"))},dependencies:[ue,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],styles:["mat-list-item[_ngcontent-%COMP%]{height:50px}"]})}}return e})();var qCt=["buttonCreateLoanProduct"],zCt=["templateButtonCreateLoanProduct"],HCt=["loanProductsTable"],GCt=["templateLoanProductsTable"],jCt=()=>[10,25,50,100],$Ct=()=>["create"],UCt=e=>[e];function WCt(e,o){e&1&&(l(0,"button",24),b(1,"fa-icon",25),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,$Ct)),a(2),v(" ",m(3,2,"labels.buttons.Create Loan Product")," "))}function QCt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function YCt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function JCt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function KCt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function XCt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expiry Date")))}function ZCt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.closeDate))}}function e2t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function t2t(e,o){if(e&1&&(l(0,"td",27)(1,"div",28),p(2,"statusLookup"),b(3,"fa-icon",29),p(4,"translate"),p(5,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.status)),a(2),g("matTooltip",Le(t.status==="loanProduct.active"?m(4,5,"labels.inputs.Active"):m(5,7,"labels.catalogs.Inactive")))}}function i2t(e,o){e&1&&b(0,"tr",30)}function n2t(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,UCt,t.id))}}function o2t(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",32),c(4),p(5,"translate"),r(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(33);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create loan product")),a(3),h(m(5,7,"labels.text.This option allows you to create new loan product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function a2t(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",33)(4,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(31);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(35);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter loan products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function r2t(e,o){if(e&1){let t=Y();l(0,"h4",32),c(1),p(2,"translate"),l(3,"a",36),c(4),p(5,"translate"),r()(),l(6,"div",33)(7,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",35),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(33);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",35),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of loan products in the organization"),": "),a(3),h(m(5,7,"labels.heading.Loan Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var Wy=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName","closeDate","status"],this.route.data.subscribe(t=>{this.loanProductsData=t.loanProducts})}ngOnInit(){this.dataSource=new Wt(this.loanProductsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showLoanProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateLoanProduct,this.buttonCreateLoanProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showLoanProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateLoanProductsTable,this.loanProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showLoanProductsPage=!1,this.configurationWizardService.showLoanProductsList=!1,this.configurationWizardService.showSavingsProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showLoanProductsPage=!1,this.configurationWizardService.showLoanProductsList=!1,this.configurationWizardService.showLoanProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(qCt,5),Ee(zCt,5),Ee(HCt,5),Ee(GCt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateLoanProduct=s.first),Te(s=Me())&&(i.templateButtonCreateLoanProduct=s.first),Te(s=Me())&&(i.loanProductsTable=s.first),Te(s=Me())&&(i.templateLoanProductsTable=s.first)}},decls:36,vars:9,consts:[["buttonCreateLoanProduct",""],["filter",""],["loanProductsTable",""],["templateButtonCreateLoanProduct",""],["templateFilter",""],["templateLoanProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","closeDate"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102039585/Loan+Products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,WCt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,QCt,3,3,"th",16)(17,YCt,2,1,"td",17),Z(),X(18,18),F(19,JCt,3,3,"th",16)(20,KCt,2,1,"td",17),Z(),X(21,19),F(22,XCt,3,3,"th",16)(23,ZCt,3,3,"td",17),Z(),X(24,20),F(25,e2t,3,3,"th",16)(26,t2t,6,9,"td",17),Z(),F(27,i2t,1,0,"tr",21)(28,n2t,1,3,"tr",22),r(),b(29,"mat-paginator",23),r()(),F(30,o2t,16,15,"ng-template",null,3,ti)(32,a2t,13,12,"ng-template",null,4,ti)(34,r2t,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_LOANPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,jCt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,Pi,he,go],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function l2t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}var cm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.createLoanProductDetailsForm()}ngOnInit(){this.fundData=this.loanProductsTemplate.fundOptions,this.loanProductDetailsForm.patchValue({name:this.loanProductsTemplate.name,shortName:this.loanProductsTemplate.shortName,description:this.loanProductsTemplate.description,externalId:this.loanProductsTemplate.externalId,fundId:this.loanProductsTemplate.fundId,startDate:this.loanProductsTemplate.startDate&&new Date(this.loanProductsTemplate.startDate),closeDate:this.loanProductsTemplate.closeDate&&new Date(this.loanProductsTemplate.closeDate),includeInBorrowerCycle:this.loanProductsTemplate.includeInBorrowerCycle})}createLoanProductDetailsForm(){this.loanProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:[""],externalId:[""],fundId:[""],startDate:[""],closeDate:[""],includeInBorrowerCycle:[!1]})}get loanProductDetails(){let t=this.loanProductDetailsForm.value,n=this.loanProductDetailsForm.value.startDate,i=this.loanProductDetailsForm.value.closeDate,s=this.settingsService.dateFormat;return t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(n,s)||""),t.closeDate instanceof Date&&(t.closeDate=this.dateUtils.formatDate(i,s)||""),t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-details-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},decls:79,vars:89,consts:[["startDatePicker",""],["closeDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["matInput","","formControlName","name","required","",3,"matTooltip"],[1,"flex-48"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],["matInput","","formControlName","externalId",3,"matTooltip"],["formControlName","fundId",3,"matTooltip"],[3,"value"],["labelPosition","before","formControlName","includeInBorrowerCycle",1,"flex-48",3,"matTooltip"],[1,"flex-48",3,"click"],["matInput","","formControlName","startDate",3,"min","max","matDatepicker","matTooltip"],["matSuffix","",3,"for"],["matInput","","formControlName","closeDate",3,"min","max","matDatepicker","matTooltip"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){if(n&1){let s=Y();l(0,"form",2)(1,"div",3)(2,"mat-form-field",4)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",5),p(7,"translate"),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",6)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),p(20,"translate"),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",6)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",8),p(33,"translate"),r(),l(34,"mat-form-field",6)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",9),p(39,"translate"),Se(40,l2t,2,2,"mat-option",10,Pe),r()(),l(42,"mat-checkbox",11),p(43,"translate"),c(44),p(45,"translate"),r(),l(46,"mat-form-field",12),R("click",function(){V(s);let u=ve(54);return q(u.open())}),l(47,"mat-label"),c(48),p(49,"translate"),r(),b(50,"input",13),p(51,"translate"),b(52,"mat-datepicker-toggle",14)(53,"mat-datepicker",null,0),r(),l(55,"mat-form-field",12),R("click",function(){V(s);let u=ve(63);return q(u.open())}),l(56,"mat-label"),c(57),p(58,"translate"),r(),b(59,"input",15),p(60,"translate"),b(61,"mat-datepicker-toggle",14)(62,"mat-datepicker",null,1),r(),l(64,"mat-form-field",4)(65,"mat-label"),c(66),p(67,"translate"),r(),b(68,"textarea",16),p(69,"translate"),r()(),l(70,"div",17)(71,"button",18),b(72,"fa-icon",19),c(73),p(74,"translate"),r(),l(75,"button",20),c(76),p(77,"translate"),b(78,"fa-icon",21),r()()()}if(n&2){let s=ve(54),d=ve(63);g("formGroup",i.loanProductDetailsForm),a(4),h(m(5,41,"labels.inputs.Product Name")),a(2),g("matTooltip",Le(m(7,43,"tooltips.Product name is a unique identifier"))),a(3),le(" ",m(10,45,"labels.inputs.Product Name")," ",m(11,47,"labels.commons.is")," "),a(4),h(m(14,49,"labels.commons.required")),a(4),h(m(18,51,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(20,53,"tooltips.Short name is a unique identifier"))),a(3),le(" ",m(23,55,"labels.inputs.Short Name")," ",m(24,57,"labels.commons.is")," "),a(4),h(m(27,59,"labels.commons.required")),a(4),h(m(31,61,"labels.inputs.External Id")),a(2),g("matTooltip",Le(m(33,63,"tooltips.External Id is a unique identifier"))),a(4),h(m(37,65,"labels.inputs.Fund")),a(2),g("matTooltip",Le(m(39,67,"tooltips.Loan products may be assigned"))),a(2),we(i.fundData),a(2),g("matTooltip",Le(m(43,69,"tooltips.A borrower loan counter (cycle)"))),a(2),v(" ",m(45,71,"labels.inputs.Include in Customer Loan Counter")," "),a(4),h(m(49,73,"labels.inputs.Start Date")),a(2),g("matTooltip",Le(m(51,75,"tooltips.loan product will be active and available to clients")))("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(2),g("for",s),a(5),h(m(58,77,"labels.inputs.Close Date")),a(2),g("matTooltip",Le(m(60,79,"tooltips.loan product will become inactive and unavailable to clients")))("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(2),g("for",d),a(5),h(m(67,81,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(69,83,"tooltips.Provide additional information"))),a(5),v(" ",m(74,85,"labels.buttons.Previous")," "),a(3),v(" ",m(77,87,"labels.buttons.Next")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,si,Ln,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function s2t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var pm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createLoanProductCurrencyForm()}ngOnInit(){this.currencyData=this.loanProductsTemplate.currencyOptions,this.loanProductCurrencyForm.patchValue({currencyCode:this.loanProductsTemplate.currency.code||this.currencyData[0].code,digitsAfterDecimal:this.loanProductsTemplate.currency.decimalPlaces?this.loanProductsTemplate.currency.decimalPlaces:2,inMultiplesOf:this.loanProductsTemplate.currency.inMultiplesOf,installmentAmountInMultiplesOf:this.loanProductsTemplate.installmentAmountInMultiplesOf})}createLoanProductCurrencyForm(){this.loanProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:[2,ce.required],inMultiplesOf:"",installmentAmountInMultiplesOf:""})}get loanProductCurrency(){return this.loanProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-currency-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},decls:50,vars:49,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf",3,"matTooltip"],["type","number","matInput","","formControlName","installmentAmountInMultiplesOf"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,s2t,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),r(),l(36,"mat-form-field",2)(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",7),r()(),l(41,"div",8)(42,"button",9),b(43,"fa-icon",10),c(44),p(45,"translate"),r(),l(46,"button",11),c(47),p(48,"translate"),b(49,"fa-icon",12),r()()()),n&2&&(g("formGroup",i.loanProductCurrencyForm),a(4),h(m(5,19,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,21,"tooltips.The currency in which the loan will be disbursed"))),a(2),we(i.currencyData),a(3),le(" ",m(12,23,"labels.inputs.Currency")," ",m(13,25,"labels.commons.is")," "),a(4),h(m(16,27,"labels.commons.required")),a(4),h(m(20,29,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,31,"tooltips.Number of decimal places to be used to track and report"))),a(3),le(" ",m(25,33,"labels.inputs.Decimal Places")," ",m(26,35,"labels.commons.is")," "),a(4),h(m(29,37,"labels.commons.required")),a(4),h(m(33,39,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,41,"tooltips.Enter multiples of currency value"))),a(4),h(m(39,43,"labels.inputs.Installment in multiples of")),a(6),v(" ",m(45,45,"labels.buttons.Previous")," "),a(3),v(" ",m(48,47,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Qy=(()=>{class e{constructor(){this.advancedTransactionProcessingStrategy=new Ra(!1)}initialize(t){this.advancedTransactionProcessingStrategy.next(t)}get isAdvancedTransactionProcessingStrategy(){return this.advancedTransactionProcessingStrategy.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function c2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function p2t(e,o){if(e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",38),Se(5,c2t,3,5,"mat-option",13,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Over Amount Calculation Type")),a(3),we(t.overAppliedCalculationTypeData)}}function m2t(e,o){e&1&&(l(0,"mat-form-field",10)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",39),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Over Amount")))}function d2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function u2t(e,o){if(e&1&&(l(0,"mat-checkbox",20),c(1),p(2,"translate"),r()),e&2){let t=w();g("formControl",t.zeroInterest),a(),v(" ",m(2,2,"labels.inputs.Is Zero Interest Rate?")," ")}}function f2t(e,o){e&1&&(l(0,"mat-checkbox",21),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is Linked to floating interest rates?")," "))}function h2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function g2t(e,o){if(e&1&&(l(0,"div",22)(1,"h4",2),c(2),p(3,"translate"),b(4,"i",11),p(5,"translate"),r(),l(6,"mat-form-field",40)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",41),l(11,"mat-error"),c(12),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",40)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",42),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",40)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",43),l(35,"mat-error"),c(36),p(37,"translate"),l(38,"strong"),c(39),p(40,"translate"),r(),c(41),p(42,"translate"),l(43,"strong"),c(44),p(45,"translate"),r()()(),l(46,"mat-form-field",40)(47,"mat-label"),c(48),p(49,"translate"),r(),l(50,"mat-select",44),Se(51,h2t,3,5,"mat-option",13,Pe),r(),l(53,"mat-error"),c(54),p(55,"translate"),p(56,"translate"),l(57,"strong"),c(58),p(59,"translate"),r()()()()),e&2){let t=w();a(2),v(" ",m(3,26,"labels.inputs.Nominal interest rate")," "),a(2),g("matTooltip",Le(m(5,28,"tooltips.Define the minimum, default, maximum, and period for the nominal interest rate"))),a(4),h(m(9,30,"labels.inputs.Minimum")),a(2),g("min",0),Dn("disabled",t.isZeroInterest()),a(2),v(" ",m(13,32,"labels.commons.Minimum Value must be")," "),a(3),h(m(16,34,"labels.commons.greater equal to than 0")),a(4),h(m(20,36,"labels.inputs.Default")),a(2),Dn("disabled",t.isZeroInterest()),a(2),ea(" ",m(24,38,"labels.catalogs.Default")," ",m(25,40,"labels.inputs.Nominal interest rate")," ",m(26,42,"labels.commons.is")," "),a(5),h(m(29,44,"labels.commons.required")),a(4),h(m(33,46,"labels.inputs.Maximum")),a(2),g("min",0),Dn("disabled",t.isZeroInterest()),a(2),v(" ",m(37,48,"labels.commons.Maximum Value must be")," "),a(3),h(m(40,50,"labels.commons.greater equal to than 0")),a(2),v(" ",m(42,52,"labels.commons.and must be greater than")," "),a(3),h(m(45,54,"labels.commons.Minimum Principal")),a(4),h(m(49,56,"labels.inputs.Frequency")),a(2),g("disabled",t.isZeroInterest()),a(),we(t.interestRateFrequencyTypeData),a(3),le(" ",m(55,58,"labels.inputs.Nominal interest rate frequency")," ",m(56,60,"labels.commons.is")," "),a(4),h(m(59,62,"labels.commons.required"))}}function _2t(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function C2t(e,o){if(e&1&&(l(0,"div",23)(1,"h4",2),c(2),p(3,"translate"),b(4,"i",11),p(5,"translate"),r(),l(6,"mat-form-field",4)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",45),Se(11,_2t,2,2,"mat-option",13,Pe),r(),l(13,"mat-error"),c(14),p(15,"translate"),p(16,"translate"),l(17,"strong"),c(18),p(19,"translate"),r()()(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",46),l(25,"mat-error"),c(26),p(27,"translate"),p(28,"translate"),l(29,"strong"),c(30),p(31,"translate"),r()()(),l(32,"mat-checkbox",47),c(33),p(34,"translate"),r(),l(35,"mat-form-field",4)(36,"mat-label"),c(37),p(38,"translate"),r(),b(39,"input",48),l(40,"mat-error"),c(41),p(42,"translate"),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()(),l(47,"mat-form-field",4)(48,"mat-label"),c(49),p(50,"translate"),r(),b(51,"input",49),l(52,"mat-error"),c(53),p(54,"translate"),p(55,"translate"),p(56,"translate"),l(57,"strong"),c(58),p(59,"translate"),r()()(),l(60,"mat-form-field",4)(61,"mat-label"),c(62),p(63,"translate"),r(),b(64,"input",50),l(65,"mat-error"),c(66),p(67,"translate"),p(68,"translate"),l(69,"strong"),c(70),p(71,"translate"),r()()()()),e&2){let t=w();a(2),v(" ",m(3,26,"labels.inputs.Floating Interest Rate")," "),a(2),g("matTooltip",Le(m(5,28,"tooltips.Define the minimum, default, maximum, and period for the floating interest rate"))),a(4),h(m(9,30,"labels.inputs.Floating Rate")),a(3),we(t.floatingRateData),a(3),le(" ",m(15,32,"labels.inputs.Floating rate")," ",m(16,34,"labels.commons.is")," "),a(4),h(m(19,36,"labels.commons.required")),a(4),h(m(23,38,"labels.inputs.Differential Rate")),a(4),le(" ",m(27,40,"labels.inputs.Differential rate")," ",m(28,42,"labels.commons.is")," "),a(4),h(m(31,44,"labels.commons.required")),a(3),v(" ",m(34,46,"labels.inputs.Is Floating calculation allowed?")," "),a(4),h(m(38,48,"labels.inputs.Minimum")),a(2),g("min",0),a(2),le(" ",m(42,50,"labels.inputs.Minimum interest rate")," ",m(43,52,"labels.commons.is")," "),a(4),h(m(46,54,"labels.commons.required")),a(4),h(m(50,56,"labels.inputs.Default")),a(4),ea(" ",m(54,58,"labels.catalogs.Default")," ",m(55,60,"labels.inputs.Interest rate")," ",m(56,62,"labels.commons.is")," "),a(5),h(m(59,64,"labels.commons.required")),a(4),h(m(63,66,"labels.inputs.Maximum")),a(4),le(" ",m(67,68,"labels.inputs.Maximum interest rate")," ",m(68,70,"labels.commons.is")," "),a(4),h(m(71,72,"labels.commons.required"))}}function v2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function x2t(e,o){if(e&1&&(l(0,"td",67),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.valueConditionType,n.valueConditionTypeData,"id","value")," ")}}function b2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function y2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function S2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function w2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function P2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function T2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function M2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function D2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function E2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function I2t(e,o){if(e&1){let t=Y();l(0,"td",67)(1,"button",68),R("click",function(){let i=V(t).index,s=w(3);return q(s.editVariationsForBorrowerCycle("Principal",s.principalVariationsForBorrowerCycle,i))}),b(2,"fa-icon",69),r(),l(3,"button",70),R("click",function(){let i=V(t).index,s=w(3);return q(s.deleteVariationsForBorrowerCycle(s.principalVariationsForBorrowerCycle,i))}),b(4,"fa-icon",71),r()()}}function O2t(e,o){e&1&&b(0,"tr",72)}function A2t(e,o){e&1&&b(0,"tr",73)}function F2t(e,o){if(e&1&&(l(0,"table",55),X(1,56),F(2,v2t,3,3,"th",57)(3,x2t,3,6,"td",58),Z(),X(4,59),F(5,b2t,3,3,"th",57)(6,y2t,2,1,"td",58),Z(),X(7,60),F(8,S2t,3,3,"th",57)(9,w2t,2,1,"td",58),Z(),X(10,61),F(11,P2t,3,3,"th",57)(12,T2t,2,1,"td",58),Z(),X(13,62),F(14,M2t,3,3,"th",57)(15,D2t,2,1,"td",58),Z(),X(16,63),F(17,E2t,3,3,"th",57)(18,I2t,5,0,"td",58),Z(),F(19,O2t,1,0,"tr",64)(20,A2t,1,0,"tr",65),r()),e&2){let t=w(2);g("dataSource",t.principalVariationsForBorrowerCycle.value),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function k2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function B2t(e,o){if(e&1&&(l(0,"td",67),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.valueConditionType,n.valueConditionTypeData,"id","value")," ")}}function R2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function N2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function L2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function V2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function q2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function z2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function H2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function G2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function j2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function $2t(e,o){if(e&1){let t=Y();l(0,"td",67)(1,"button",68),R("click",function(){let i=V(t).index,s=w(3);return q(s.editVariationsForBorrowerCycle("NumberOfRepayments",s.numberOfRepaymentVariationsForBorrowerCycle,i))}),b(2,"fa-icon",69),r(),l(3,"button",70),R("click",function(){let i=V(t).index,s=w(3);return q(s.deleteVariationsForBorrowerCycle(s.numberOfRepaymentVariationsForBorrowerCycle,i))}),b(4,"fa-icon",71),r()()}}function U2t(e,o){e&1&&b(0,"tr",72)}function W2t(e,o){e&1&&b(0,"tr",73)}function Q2t(e,o){if(e&1&&(l(0,"table",55),X(1,56),F(2,k2t,3,3,"th",57)(3,B2t,3,6,"td",58),Z(),X(4,59),F(5,R2t,3,3,"th",57)(6,N2t,2,1,"td",58),Z(),X(7,60),F(8,L2t,3,3,"th",57)(9,V2t,2,1,"td",58),Z(),X(10,61),F(11,q2t,3,3,"th",57)(12,z2t,2,1,"td",58),Z(),X(13,62),F(14,H2t,3,3,"th",57)(15,G2t,2,1,"td",58),Z(),X(16,63),F(17,j2t,3,3,"th",57)(18,$2t,5,0,"td",58),Z(),F(19,U2t,1,0,"tr",64)(20,W2t,1,0,"tr",65),r()),e&2){let t=w(2);g("dataSource",t.numberOfRepaymentVariationsForBorrowerCycle.value),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function Y2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function J2t(e,o){if(e&1&&(l(0,"td",67),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.valueConditionType,n.valueConditionTypeData,"id","value")," ")}}function K2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function X2t(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function Z2t(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function evt(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function tvt(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function ivt(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function nvt(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function ovt(e,o){if(e&1&&(l(0,"td",67),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function avt(e,o){e&1&&(l(0,"th",66),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function rvt(e,o){if(e&1){let t=Y();l(0,"td",67)(1,"button",68),R("click",function(){let i=V(t).index,s=w(3);return q(s.editVariationsForBorrowerCycle("NominalInterestRate",s.interestRateVariationsForBorrowerCycle,i))}),b(2,"fa-icon",69),r(),l(3,"button",70),R("click",function(){let i=V(t).index,s=w(3);return q(s.deleteVariationsForBorrowerCycle(s.interestRateVariationsForBorrowerCycle,i))}),b(4,"fa-icon",71),r()()}}function lvt(e,o){e&1&&b(0,"tr",72)}function svt(e,o){e&1&&b(0,"tr",73)}function cvt(e,o){if(e&1&&(l(0,"table",55),X(1,56),F(2,Y2t,3,3,"th",57)(3,J2t,3,6,"td",58),Z(),X(4,59),F(5,K2t,3,3,"th",57)(6,X2t,2,1,"td",58),Z(),X(7,60),F(8,Z2t,3,3,"th",57)(9,evt,2,1,"td",58),Z(),X(10,61),F(11,tvt,3,3,"th",57)(12,ivt,2,1,"td",58),Z(),X(13,62),F(14,nvt,3,3,"th",57)(15,ovt,2,1,"td",58),Z(),X(16,63),F(17,avt,3,3,"th",57)(18,rvt,5,0,"td",58),Z(),F(19,lvt,1,0,"tr",64)(20,svt,1,0,"tr",65),r()),e&2){let t=w(2);g("dataSource",t.interestRateVariationsForBorrowerCycle.value),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function pvt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"div",52)(5,"button",53),R("click",function(){V(t);let i=w();return q(i.addVariationsForBorrowerCycle("Principal",i.principalVariationsForBorrowerCycle))}),b(6,"fa-icon",54),c(7),p(8,"translate"),r()(),E(9,F2t,21,3,"table",55),l(10,"h4",51),c(11),p(12,"translate"),r(),l(13,"div",52)(14,"button",53),R("click",function(){V(t);let i=w();return q(i.addVariationsForBorrowerCycle("NumberOfRepayments",i.numberOfRepaymentVariationsForBorrowerCycle))}),b(15,"fa-icon",54),c(16),p(17,"translate"),r()(),E(18,Q2t,21,3,"table",55),l(19,"h4",51),c(20),p(21,"translate"),r(),l(22,"div",52)(23,"button",53),R("click",function(){V(t);let i=w();return q(i.addVariationsForBorrowerCycle("NominalInterestRate",i.interestRateVariationsForBorrowerCycle))}),b(24,"fa-icon",54),c(25),p(26,"translate"),r()(),E(27,cvt,21,3,"table",55),r()}if(e&2){let t=w();a(2),h(m(3,9,"labels.inputs.Principal by loan cycle")),a(5),v(" ",m(8,11,"labels.buttons.Add")," "),a(2),I(t.principalVariationsForBorrowerCycle.value.length?9:-1),a(2),h(m(12,13,"labels.inputs.Number of repayments by loan cycle")),a(5),v(" ",m(17,15,"labels.buttons.Add")," "),a(2),I(t.numberOfRepaymentVariationsForBorrowerCycle.value.length?18:-1),a(2),h(m(21,17,"labels.inputs.Nominal interest rate by loan cycle")),a(5),v(" ",m(26,19,"labels.buttons.Add")," "),a(2),I(t.interestRateVariationsForBorrowerCycle.value.length?27:-1)}}function mvt(e,o){if(e&1&&(l(0,"mat-option",13),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function dvt(e,o){e&1&&(l(0,"h4",29),c(1),p(2,"translate"),b(3,"i",11),p(4,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Fixed Length")," "),a(2),g("matTooltip",Le(m(4,5,"tooltips.Due to regulatory requirements in some countries"))))}function uvt(e,o){e&1&&(l(0,"mat-form-field",26)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",74),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Fixed Length")))}function fvt(e,o){if(e&1&&(l(0,"span",30),c(1),p(2,"find"),p(3,"translateKey"),r()),e&2){let t=w();a(),h(Ft(3,6,$t(2,1,t.loanProductTermsForm.value.repaymentFrequencyType,t.repaymentFrequencyTypeData,"id","value"),"catalogs"))}}var mm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.processingStrategyService=T(Qy),this.dialog=T(Ht),this.translateService=T(yi),this.zeroInterest=new it(!1),this.displayedColumns=["valueConditionType","borrowerCycleNumber","minValue","defaultValue","maxValue","actions"],this.isAdvancedTransactionProcessingStrategy=!1,this.createLoanProductTermsForm(),this.setConditionalControls()}ngOnInit(){this.valueConditionTypeData=this.loanProductsTemplate.valueConditionTypeOptions,this.floatingRateData=this.loanProductsTemplate.floatingRateOptions,this.interestRateFrequencyTypeData=this.loanProductsTemplate.interestRateFrequencyTypeOptions,this.repaymentFrequencyTypeData=this.loanProductsTemplate.repaymentFrequencyTypeOptions,this.repaymentStartDateTypeOptions=this.loanProductsTemplate.repaymentStartDateTypeOptions,this.overAppliedCalculationTypeData=[{id:"percentage",value:"Percentage"},{id:"flat",value:"Fixed Amount"}],this.loanProductTermsForm.patchValue({minPrincipal:this.loanProductsTemplate.minPrincipal,principal:this.loanProductsTemplate.principal,maxPrincipal:this.loanProductsTemplate.maxPrincipal,minNumberOfRepayments:this.loanProductsTemplate.minNumberOfRepayments,numberOfRepayments:this.loanProductsTemplate.numberOfRepayments,maxNumberOfRepayments:this.loanProductsTemplate.maxNumberOfRepayments,isLinkedToFloatingInterestRates:this.loanProductsTemplate.isLinkedToFloatingInterestRates,minInterestRatePerPeriod:this.loanProductsTemplate.minInterestRatePerPeriod,interestRatePerPeriod:this.loanProductsTemplate.interestRatePerPeriod,maxInterestRatePerPeriod:this.loanProductsTemplate.maxInterestRatePerPeriod,interestRateFrequencyType:this.loanProductsTemplate.interestRateFrequencyType.id,floatingRatesId:this.loanProductsTemplate.floatingRateId,interestRateDifferential:this.loanProductsTemplate.interestRateDifferential,isFloatingInterestRateCalculationAllowed:this.loanProductsTemplate.isFloatingInterestRateCalculationAllowed,allowApprovedDisbursedAmountsOverApplied:this.loanProductsTemplate.allowApprovedDisbursedAmountsOverApplied,minDifferentialLendingRate:this.loanProductsTemplate.minDifferentialLendingRate,defaultDifferentialLendingRate:this.loanProductsTemplate.defaultDifferentialLendingRate,maxDifferentialLendingRate:this.loanProductsTemplate.maxDifferentialLendingRate,useBorrowerCycle:this.loanProductsTemplate.useBorrowerCycle,repaymentEvery:this.loanProductsTemplate.repaymentEvery,repaymentFrequencyType:this.loanProductsTemplate.repaymentFrequencyType.id,minimumDaysBetweenDisbursalAndFirstRepayment:this.loanProductsTemplate.minimumDaysBetweenDisbursalAndFirstRepayment,repaymentStartDateType:this.loanProductsTemplate.repaymentStartDateType.id||1,interestRecognitionOnDisbursementDate:this.loanProductsTemplate.interestRecognitionOnDisbursementDate||!1}),this.loanProductsTemplate.allowApprovedDisbursedAmountsOverApplied&&this.loanProductTermsForm.patchValue({overAppliedCalculationType:this.loanProductsTemplate.overAppliedCalculationType,overAppliedNumber:this.loanProductsTemplate.overAppliedNumber}),this.loanProductTermsForm.setControl("principalVariationsForBorrowerCycle",this.formBuilder.array(this.loanProductsTemplate.principalVariationsForBorrowerCycle.map(t=>qt(at({},t),{valueConditionType:t.valueConditionType.id})))),this.loanProductTermsForm.setControl("numberOfRepaymentVariationsForBorrowerCycle",this.formBuilder.array(this.loanProductsTemplate.numberOfRepaymentVariationsForBorrowerCycle.map(t=>qt(at({},t),{valueConditionType:t.valueConditionType.id})))),this.loanProductTermsForm.setControl("interestRateVariationsForBorrowerCycle",this.formBuilder.array(this.loanProductsTemplate.interestRateVariationsForBorrowerCycle.map(t=>qt(at({},t),{valueConditionType:t.valueConditionType.id})))),this.zeroInterest.patchValue(this.loanProductsTemplate.minInterestRatePerPeriod===0&&this.loanProductsTemplate.interestRatePerPeriod===0&&this.loanProductsTemplate.maxInterestRatePerPeriod===0),this.processingStrategyService.advancedTransactionProcessingStrategy.subscribe(t=>{this.isAdvancedTransactionProcessingStrategy=t}),this.validateAdvancedPaymentStrategyControls()}createLoanProductTermsForm(){this.loanProductTermsForm=this.formBuilder.group({useBorrowerCycle:[!1],minPrincipal:[""],principal:["",ce.required],maxPrincipal:[""],minNumberOfRepayments:["",[ce.pattern("^[1-9]\\d*$")]],numberOfRepayments:["",[ce.required,ce.pattern("^[1-9]\\d*$")]],maxNumberOfRepayments:["",[ce.pattern("^[1-9]\\d*$")]],isLinkedToFloatingInterestRates:[!1],allowApprovedDisbursedAmountsOverApplied:[!1],overAppliedCalculationType:[{value:null,disabled:!0}],overAppliedNumber:[{value:null,disabled:!0}],minInterestRatePerPeriod:[""],interestRatePerPeriod:["",ce.required],maxInterestRatePerPeriod:[""],interestRateFrequencyType:["",ce.required],repaymentEvery:["",ce.required],repaymentFrequencyType:["",ce.required],minimumDaysBetweenDisbursalAndFirstRepayment:[""],repaymentStartDateType:[1],fixedLength:[null],interestRecognitionOnDisbursementDate:[!1]})}ngOnChanges(t){this.validateAdvancedPaymentStrategyControls()}setConditionalControls(){this.loanProductTermsForm.get("allowApprovedDisbursedAmountsOverApplied").valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.get("overAppliedCalculationType").enable(),this.loanProductTermsForm.get("overAppliedNumber").enable(),this.loanProductTermsForm.addControl("disallowExpectedDisbursements",new it("true"))):(this.loanProductTermsForm.get("overAppliedCalculationType").disable(),this.loanProductTermsForm.get("overAppliedCalculationType").patchValue(null),this.loanProductTermsForm.get("overAppliedNumber").disable(),this.loanProductTermsForm.get("overAppliedNumber").patchValue(null),this.loanProductTermsForm.removeControl("disallowExpectedDisbursements"))}),this.loanProductTermsForm.get("isLinkedToFloatingInterestRates").valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.removeControl("minInterestRatePerPeriod"),this.loanProductTermsForm.removeControl("interestRatePerPeriod"),this.loanProductTermsForm.removeControl("maxInterestRatePerPeriod"),this.loanProductTermsForm.removeControl("interestRateFrequencyType"),this.loanProductTermsForm.addControl("floatingRatesId",new it("",ce.required)),this.loanProductTermsForm.addControl("interestRateDifferential",new it("",ce.required)),this.loanProductTermsForm.addControl("isFloatingInterestRateCalculationAllowed",new it(!1)),this.loanProductTermsForm.addControl("minDifferentialLendingRate",new it("",ce.required)),this.loanProductTermsForm.addControl("defaultDifferentialLendingRate",new it("",ce.required)),this.loanProductTermsForm.addControl("maxDifferentialLendingRate",new it("",ce.required))):(this.loanProductTermsForm.addControl("minInterestRatePerPeriod",new it("")),this.loanProductTermsForm.addControl("interestRatePerPeriod",new it("",ce.required)),this.loanProductTermsForm.addControl("maxInterestRatePerPeriod",new it("")),this.loanProductTermsForm.addControl("interestRateFrequencyType",new it(this.interestRateFrequencyTypeData.id,ce.required)),this.loanProductTermsForm.removeControl("floatingRatesId"),this.loanProductTermsForm.removeControl("interestRateDifferential"),this.loanProductTermsForm.removeControl("isFloatingInterestRateCalculationAllowed"),this.loanProductTermsForm.removeControl("minDifferentialLendingRate"),this.loanProductTermsForm.removeControl("defaultDifferentialLendingRate"),this.loanProductTermsForm.removeControl("maxDifferentialLendingRate"))}),this.loanProductTermsForm.get("useBorrowerCycle").valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.addControl("principalVariationsForBorrowerCycle",this.formBuilder.array([])),this.loanProductTermsForm.addControl("numberOfRepaymentVariationsForBorrowerCycle",this.formBuilder.array([])),this.loanProductTermsForm.addControl("interestRateVariationsForBorrowerCycle",this.formBuilder.array([]))):(this.loanProductTermsForm.removeControl("principalVariationsForBorrowerCycle"),this.loanProductTermsForm.removeControl("numberOfRepaymentVariationsForBorrowerCycle"),this.loanProductTermsForm.removeControl("interestRateVariationsForBorrowerCycle"))}),this.zeroInterest.valueChanges.subscribe(t=>{t?(this.loanProductTermsForm.get("minInterestRatePerPeriod").patchValue(0),this.loanProductTermsForm.get("minInterestRatePerPeriod").disable(),this.loanProductTermsForm.get("interestRatePerPeriod").patchValue(0),this.loanProductTermsForm.get("interestRatePerPeriod").disable(),this.loanProductTermsForm.get("maxInterestRatePerPeriod").patchValue(0),this.loanProductTermsForm.get("maxInterestRatePerPeriod").disable()):(this.loanProductTermsForm.get("minInterestRatePerPeriod").patchValue(this.loanProductsTemplate.minInterestRatePerPeriod),this.loanProductTermsForm.get("minInterestRatePerPeriod").enable(),this.loanProductTermsForm.get("interestRatePerPeriod").patchValue(this.loanProductsTemplate.interestRatePerPeriod),this.loanProductTermsForm.get("interestRatePerPeriod").enable(),this.loanProductTermsForm.get("maxInterestRatePerPeriod").patchValue(this.loanProductsTemplate.maxInterestRatePerPeriod),this.loanProductTermsForm.get("maxInterestRatePerPeriod").enable()),this.validateAdvancedPaymentStrategyControls()})}get principalVariationsForBorrowerCycle(){return this.loanProductTermsForm.get("principalVariationsForBorrowerCycle")}get numberOfRepaymentVariationsForBorrowerCycle(){return this.loanProductTermsForm.get("numberOfRepaymentVariationsForBorrowerCycle")}get interestRateVariationsForBorrowerCycle(){return this.loanProductTermsForm.get("interestRateVariationsForBorrowerCycle")}setLoanProductTermsFormDirty(){this.loanProductTermsForm.pristine&&this.loanProductTermsForm.markAsDirty()}addVariationsForBorrowerCycle(t,n){let i=this.getData(t);this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&(n.push(d.data),this.setLoanProductTermsFormDirty())})}editVariationsForBorrowerCycle(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&(n.at(i).patchValue(u.data.value),this.setLoanProductTermsFormDirty())})}deleteVariationsForBorrowerCycle(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&(t.removeAt(n),this.setLoanProductTermsFormDirty())})}getData(t,n){switch(t){case"Principal":return{title:this.translateService.instant("labels.heading.Principal by loan cycle"),formfields:this.getFormfields(n)};case"NumberOfRepayments":return{title:this.translateService.instant("labels.heading.Number of Repayments by loan cycle"),formfields:this.getFormfields(n)};case"NominalInterestRate":return{title:this.translateService.instant("labels.heading.Nominal Interest Rate by loan cycle"),formfields:this.getFormfields(n)}}}getFormfields(t){return[new $i({controlName:"valueConditionType",label:this.translateService.instant("labels.inputs.Condition"),value:t?t.valueConditionType:this.valueConditionTypeData[0].id,options:{label:"value",value:"id",data:this.valueConditionTypeData},required:!0,order:1}),new vn({controlName:"borrowerCycleNumber",label:this.translateService.instant("labels.inputs.Loan Cycle"),value:t?t.borrowerCycleNumber:void 0,type:"number",required:!0,order:2}),new vn({controlName:"minValue",label:this.translateService.instant("labels.inputs.Minimum"),value:t?t.minValue:void 0,type:"number",order:3}),new vn({controlName:"defaultValue",label:this.translateService.instant("labels.inputs.Default"),value:t?t.defaultValue:void 0,type:"number",required:!0,order:4}),new vn({controlName:"maxValue",label:this.translateService.instant("labels.inputs.Maximum"),value:t?t.maxValue:void 0,type:"number",order:5})]}get loanProductTerms(){return this.loanProductTermsForm.getRawValue()}isZeroInterest(){return this.zeroInterest.value}allowFixedLength(){return this.isAdvancedTransactionProcessingStrategy&&this.isZeroInterest()}validateAdvancedPaymentStrategyControls(){this.allowFixedLength()?this.loanProductTermsForm.get("fixedLength").patchValue(this.loanProductsTemplate.fixedLength||null):this.loanProductTermsForm.get("fixedLength").patchValue(null)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-terms-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},features:[Uo],decls:174,vars:167,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"m-l-10","fas","fa-question",3,"matTooltip"],[1,"flex-31"],["type","number","matInput","","formControlName","minPrincipal",3,"min"],["type","number","matInput","","formControlName","principal","required",""],["type","number","matInput","","formControlName","maxPrincipal",3,"min"],["labelPosition","before","formControlName","allowApprovedDisbursedAmountsOverApplied",1,"flex-60"],[1,"flex-98","layout-row-wrap","responsive-column","gap-2percent"],[1,"flex-fill","flex-32"],[1,"fas","fa-question",3,"matTooltip"],["formControlName","repaymentStartDateType","required",""],[3,"value"],["type","number","matInput","","formControlName","minNumberOfRepayments",3,"min"],["type","number","matInput","","formControlName","numberOfRepayments","required","",3,"min"],["type","number","matInput","","formControlName","maxNumberOfRepayments",3,"min"],[1,"flex-98"],["labelPosition","before","formControlName","interestRecognitionOnDisbursementDate",1,"flex-96"],[1,"mat-h3","flex-23"],["labelPosition","before",1,"flex-23",3,"formControl"],["labelPosition","before","formControlName","isLinkedToFloatingInterestRates",1,"flex-32"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column","align-gt-sm-start-center"],["labelPosition","before","formControlName","useBorrowerCycle",1,"flex-73"],[1,"mat-h4","flex-33"],[1,"flex-30"],["type","number","matInput","","formControlName","repaymentEvery","required",""],["formControlName","repaymentFrequencyType","required",""],[1,"mat-h4","flex-30"],[1,"label-field","flex-30"],[1,"flex-48"],["type","number","matInput","","formControlName","minimumDaysBetweenDisbursalAndFirstRepayment"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","overAppliedCalculationType","required",""],["type","number","matInput","","formControlName","overAppliedNumber","required",""],[1,"flex-fill","flex-23"],["type","number","matInput","","formControlName","minInterestRatePerPeriod",3,"min"],["type","number","matInput","","formControlName","interestRatePerPeriod","required",""],["type","number","matInput","","formControlName","maxInterestRatePerPeriod",3,"min"],["formControlName","interestRateFrequencyType","required","",3,"disabled"],["formControlName","floatingRatesId","required",""],["type","number","matInput","","formControlName","interestRateDifferential","required",""],["labelPosition","before","formControlName","isFloatingInterestRateCalculationAllowed",1,"flex-31"],["type","number","matInput","","formControlName","minDifferentialLendingRate","required","",3,"min"],["type","number","matInput","","formControlName","defaultDifferentialLendingRate","required",""],["type","number","matInput","","formControlName","maxDifferentialLendingRate","required",""],[1,"mat-h4","flex-73"],[1,"flex-23"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],["matColumnDef","valueConditionType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","borrowerCycleNumber"],["matColumnDef","minValue"],["matColumnDef","defaultValue"],["matColumnDef","maxValue"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["type","number","matInput","","formControlName","fixedLength"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",5),l(12,"mat-error"),c(13),p(14,"translate"),l(15,"strong"),c(16),p(17,"translate"),r()()(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),p(27,"translate"),l(28,"strong"),c(29),p(30,"translate"),r()()(),l(31,"mat-form-field",4)(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",7),l(36,"mat-error"),c(37),p(38,"translate"),l(39,"strong"),c(40),p(41,"translate"),r(),c(42),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()(),l(47,"mat-checkbox",8),c(48),p(49,"translate"),r(),l(50,"div",9),E(51,p2t,7,3,"mat-form-field",10),E(52,m2t,5,3,"mat-form-field",10),r(),l(53,"mat-form-field",4)(54,"mat-label"),c(55),p(56,"translate"),b(57,"i",11),p(58,"translate"),r(),l(59,"mat-select",12),Se(60,d2t,3,5,"mat-option",13,Pe),r()(),l(62,"h4",2),c(63),p(64,"translate"),b(65,"i",11),p(66,"translate"),r(),l(67,"mat-form-field",4)(68,"mat-label"),c(69),p(70,"translate"),r(),b(71,"input",14),l(72,"mat-error"),c(73),p(74,"translate"),l(75,"strong"),c(76,"1"),r()()(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),b(81,"input",15),l(82,"mat-error"),c(83),p(84,"translate"),p(85,"translate"),p(86,"translate"),l(87,"strong"),c(88),p(89,"translate"),r()()(),l(90,"mat-form-field",4)(91,"mat-label"),c(92),p(93,"translate"),r(),b(94,"input",16),l(95,"mat-error"),c(96),p(97,"translate"),l(98,"strong"),c(99,"1"),r(),c(100),p(101,"translate"),l(102,"strong"),c(103),p(104,"translate"),r()()(),b(105,"mat-divider",17),l(106,"mat-checkbox",18),c(107),p(108,"translate"),r(),l(109,"h3",19),c(110),p(111,"translate"),r(),E(112,u2t,3,4,"mat-checkbox",20),E(113,f2t,3,3,"mat-checkbox",21),E(114,g2t,60,64,"div",22),E(115,C2t,72,74,"div",23),b(116,"mat-divider",17),l(117,"h3",19),c(118),p(119,"translate"),r(),l(120,"mat-checkbox",24),c(121),p(122,"translate"),r(),E(123,pvt,28,21,"div",22),b(124,"mat-divider",17),l(125,"h4",25),c(126),p(127,"translate"),b(128,"i",11),p(129,"translate"),r(),l(130,"mat-form-field",26)(131,"mat-label"),c(132),p(133,"translate"),r(),b(134,"input",27),l(135,"mat-error"),c(136),p(137,"translate"),p(138,"translate"),p(139,"translate"),l(140,"strong"),c(141),p(142,"translate"),r()()(),l(143,"mat-form-field",26)(144,"mat-label"),c(145),p(146,"translate"),r(),l(147,"mat-select",28),Se(148,mvt,3,5,"mat-option",13,Pe),r(),l(150,"mat-error"),c(151),p(152,"translate"),p(153,"translate"),l(154,"strong"),c(155),p(156,"translate"),r()()(),E(157,dvt,5,7,"h4",29),E(158,uvt,5,3,"mat-form-field",26),E(159,fvt,4,9,"span",30),l(160,"mat-form-field",31)(161,"mat-label"),c(162),p(163,"translate"),r(),b(164,"input",32),r()(),l(165,"div",33)(166,"button",34),b(167,"fa-icon",35),c(168),p(169,"translate"),r(),l(170,"button",36),c(171),p(172,"translate"),b(173,"fa-icon",37),r()()()),n&2&&(g("formGroup",i.loanProductTermsForm),a(3),v(" ",m(4,69,"labels.inputs.Principal")),a(2),g("matTooltip",Le(m(6,71,"tooltips.Fields are used to define the minimum, default, and maximum principal"))),a(4),h(m(10,73,"labels.inputs.Minimum")),a(2),g("min",0),a(2),v(" ",m(14,75,"labels.commons.Minimum Value must be")," "),a(3),h(m(17,77,"labels.commons.greater equal to than 0")),a(4),h(m(21,79,"labels.inputs.Default")),a(4),ea(" ",m(25,81,"labels.catalogs.Default")," ",m(26,83,"labels.inputs.Principal")," ",m(27,85,"labels.commons.is")," "),a(5),h(m(30,87,"labels.commons.required")),a(4),h(m(34,89,"labels.inputs.Maximum")),a(2),g("min",0),a(2),v(" ",m(38,91,"labels.commons.Minimum Value must be")," "),a(3),h(m(41,93,"labels.commons.greater equal to than 0")),a(2),v(" ",m(43,95,"labels.commons.and must be greater than")," "),a(3),h(m(46,97,"labels.commons.Minimum Principal")),a(3),v(" ",m(49,99,"labels.inputs.Allow approval / disbursal above loan applied amount")," "),a(3),I(i.loanProductTermsForm.value.allowApprovedDisbursedAmountsOverApplied?51:-1),a(),I(i.loanProductTermsForm.value.allowApprovedDisbursedAmountsOverApplied?52:-1),a(3),v("",m(56,101,"labels.inputs.Installment day calculation from")," "),a(2),g("matTooltip",Le(m(58,103,"tooltips.Repayment schedule will start the installment"))),a(3),we(i.repaymentStartDateTypeOptions),a(3),v(" ",m(64,105,"labels.inputs.Number of repayments")," "),a(2),g("matTooltip",Le(m(66,107,"tooltips.Fields are used to define the minimum, default, and maximum number of repayments"))),a(4),h(m(70,109,"labels.inputs.Minimum")),a(2),g("min",1),a(2),v(" ",m(74,111,"labels.commons.Minimum Value must be")," "),a(6),h(m(80,113,"labels.inputs.Default")),a(2),g("min",1),a(2),ea(" ",m(84,115,"labels.catalogs.Default")," ",m(85,117,"labels.inputs.Number of repayments")," ",m(86,119,"labels.commons.is")," "),a(5),h(m(89,121,"labels.commons.required")),a(4),h(m(93,123,"labels.inputs.Maximum")),a(2),g("min",1),a(2),v(" ",m(97,125,"labels.commons.Maximum Value must be")," "),a(4),v(" ",m(101,127,"labels.commons.and must be greater than")," "),a(3),h(m(104,129,"labels.inputs.Minimum")),a(4),v(" ",m(108,131,"labels.inputs.Is interest recognition on disbursement date?")," "),a(3),h(m(111,133,"labels.inputs.Interest Rates")),a(2),I(i.loanProductTermsForm.value.isLinkedToFloatingInterestRates?-1:112),a(),I(i.isZeroInterest()?-1:113),a(),I(i.loanProductTermsForm.value.isLinkedToFloatingInterestRates?-1:114),a(),I(i.loanProductTermsForm.value.isLinkedToFloatingInterestRates&&!i.isZeroInterest()?115:-1),a(3),h(m(119,135,"labels.inputs.Variations")),a(3),v(" ",m(122,137,"labels.inputs.Terms vary based on loan cycle")," "),a(2),I(i.loanProductTermsForm.value.useBorrowerCycle?123:-1),a(3),v(" ",m(127,139,"labels.inputs.Repaid every")," "),a(2),g("matTooltip",Le(m(129,141,"tooltips.Fields are input to calculating the repayment schedule"))),a(4),h(m(133,143,"labels.inputs.Frequency")),a(4),ea(" ",m(137,145,"labels.inputs.Repaid every")," ",m(138,147,"labels.inputs.Frequency")," ",m(139,149,"labels.commons.is")," "),a(5),h(m(142,151,"labels.commons.required")),a(4),h(m(146,153,"labels.inputs.Frequency Type")),a(3),we(i.repaymentFrequencyTypeData),a(3),le(" ",m(152,155,"labels.inputs.Repaid every type")," ",m(153,157,"labels.commons.is")," "),a(4),h(m(156,159,"labels.commons.required")),a(2),I(i.allowFixedLength()?157:-1),a(),I(i.allowFixedLength()?158:-1),a(),I(i.allowFixedLength()?159:-1),a(3),h(m(163,161,"labels.inputs.Minimum days between disbursal and first repayment date")),a(6),v(" ",m(169,163,"labels.buttons.Previous")," "),a(3),v(" ",m(172,165,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,_n,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ki,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function JK(e,o){return t=>t.value!==void 0&&(isNaN(t.value)||t.valueo)?{range:!0}:null}function hvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",m(2,2,"labels.inputs.products.loan.amortizationType."+t.value)," ")}}function gvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function _vt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Cvt(e,o){e&1&&(l(0,"mat-checkbox",8),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.To be used with SAME AS REPAYMENT PERIOD"))),a(2),v(" ",m(3,5,"labels.inputs.Calculate interest for exact days in partial period")," "))}function vvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function xvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.name,"catalogs")," ")}}function bvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function yvt(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",51),Se(5,bvt,3,5,"mat-option",4,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Loan Schedule Processing Type")),a(3),we(t.loanScheduleProcessingTypeData)}}function Svt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Maximum Tranche count")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wvt(e,o){e&1&&(l(0,"mat-checkbox",55),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Allow full term length for each tranche disbursement"))),a(2),v(" ",m(3,5,"labels.inputs.Allow full term for each tranche")," "))}function Pvt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",52),p(6,"translate"),E(7,Svt,7,9,"mat-error"),r(),l(8,"mat-form-field",22)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",53),p(13,"translate"),r(),l(14,"mat-checkbox",54),c(15),p(16,"translate"),r(),E(17,wvt,4,7,"mat-checkbox",55),r()),e&2){let t=w();a(3),h(m(4,9,"labels.inputs.Maximum Tranche count")),a(2),g("matTooltip",Le(m(6,11,"tooltips.Maximum number of disbursements"))),a(2),I(t.loanProductSettingsForm.controls.maxTrancheCount.hasError("required")?7:-1),a(3),h(m(11,13,"labels.inputs.Maximum allowed outstanding balance")),a(2),g("matTooltip",Le(m(13,15,"tooltips.Maximum outstanding loan account balance"))),a(3),v(" ",m(16,17,"labels.inputs.Disallow Expected Disbursements")," "),a(2),I(t.loanProductSettingsForm.value.loanScheduleType==="PROGRESSIVE"?17:-1)}}function Tvt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Disbursed Amount Percentage Down Payment")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mvt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),l(5,"strong"),c(6),p(7,"translate"),r()()),e&2&&(a(),ea(" ",m(2,4,"labels.inputs.Disbursed Amount Percentage Down Payment")," ",m(3,6,"labels.commons.is")," ",m(4,8,"labels.text.out")," "),a(5),h(m(7,10,"labels.text.percentage range")))}function Dvt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",56),p(6,"translate"),E(7,Tvt,7,9,"mat-error"),E(8,Mvt,8,12,"mat-error"),r(),l(9,"mat-checkbox",57),p(10,"translate"),c(11),p(12,"translate"),r()()),e&2){let t=w();a(3),v("",m(4,10,"labels.inputs.Disbursed Amount Percentage Down Payment")," (%)"),a(2),g("matTooltip",Le(m(6,12,"tooltips.The percentage of disbursements amount for Down Payment")))("min",0)("max",100),a(2),I(t.loanProductSettingsForm.controls.disbursedAmountPercentageForDownPayment.hasError("required")?7:-1),a(),I(t.loanProductSettingsForm.controls.disbursedAmountPercentageForDownPayment.errors!=null&&t.loanProductSettingsForm.controls.disbursedAmountPercentageForDownPayment.errors.range?8:-1),a(),g("matTooltip",Le(m(10,14,"tooltips.Enable or disable the auto repayment of down-payment."))),a(2),v(" ",m(12,16,"labels.inputs.Enable Auto Repayment for Down Payment")," ")}}function Evt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Ivt(e,o){if(e&1&&(l(0,"div")(1,"h3",10),c(2),p(3,"translate"),r(),l(4,"mat-form-field",2)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",58),Se(9,Evt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Loan Charge-off behaviour")),a(4),h(m(7,4,"labels.inputs.Loan Charge-off behaviour")),a(3),we(t.chargeOffBehaviourData)}}function Ovt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Avt(e,o){if(e&1){let t=Y();l(0,"button",59),R("click",function(i){V(t);let s=w();return q(s.clearProperty(i,"delinquencyBucketId"))}),b(1,"fa-icon",60),r()}}function Fvt(e,o){e&1&&(l(0,"mat-checkbox",27),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Enable installment level Delinquency")," "))}function kvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Bvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Rvt(e,o){if(e&1&&(l(0,"mat-form-field",22)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",61),p(5,"translate"),Se(6,Bvt,3,5,"mat-option",4,Pe),r()()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Days in year custom strategy")),a(2),g("matTooltip",Le(m(5,5,"tooltips.To calculate interest"))),a(2),we(t.daysInYearCustomStrategyOptions)}}function Nvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Lvt(e,o){e&1&&(l(0,"div",16)(1,"h4",10),c(2),p(3,"translate"),r(),l(4,"mat-form-field",22)(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",62),l(9,"mat-error"),c(10),p(11,"translate"),p(12,"translate"),l(13,"strong"),c(14),p(15,"translate"),r()()(),l(16,"mat-form-field",22)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",63),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()()()),e&2&&(a(2),h(m(3,9,"labels.inputs.Variable Installments")),a(4),h(m(7,11,"labels.inputs.Minimum gap between Installments")),a(4),le(" ",m(11,13,"labels.inputs.Minimum gap between Installments")," ",m(12,15,"labels.commons.is")," "),a(4),h(m(15,17,"labels.commons.required")),a(4),h(m(19,19,"labels.inputs.Maximum gap between Installments")),a(4),le(" ",m(23,21,"labels.inputs.Maximum gap between Installments")," ",m(24,23,"labels.commons.is")," "),a(4),h(m(27,25,"labels.commons.required")))}function Vvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function qvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function zvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Hvt(e,o){e&1&&(l(0,"mat-form-field",22)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",73),l(5,"mat-error"),c(6),p(7,"translate"),p(8,"translate"),l(9,"strong"),c(10),p(11,"translate"),r()()()),e&2&&(a(2),h(m(3,4,"labels.inputs.Frequency Interval for compounding")),a(4),le(" ",m(7,6,"labels.inputs.Frequency Interval for compounding")," ",m(8,8,"labels.commons.is")," "),a(4),h(m(11,10,"labels.commons.required")))}function Gvt(e,o){e&1&&(l(0,"mat-form-field",22)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",74),l(5,"mat-error"),c(6),p(7,"translate"),p(8,"translate"),l(9,"strong"),c(10),p(11,"translate"),r()()()),e&2&&(a(2),h(m(3,4,"labels.inputs.Frequency Interval for recalculation")),a(4),le(" ",m(7,6,"labels.inputs.Frequency Interval for recalculation")," ",m(8,8,"labels.commons.is")," "),a(4),h(m(11,10,"labels.commons.required")))}function jvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function $vt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Uvt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",77),Se(3,$vt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(3);a(3),we(t.interestRecalculationNthDayTypeData)}}function Wvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Qvt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",78),Se(3,Wvt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(3);a(3),we(t.interestRecalculationDayOfWeekTypeData)}}function Yvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Jvt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",79),Se(3,Yvt,2,2,"mat-option",4,Pe),r()()()),e&2){let t=w(3);a(3),we(t.interestRecalculationOnDayTypeData)}}function Kvt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",68)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",75),Se(6,jvt,2,2,"mat-option",4,Pe),r()(),E(8,Uvt,5,0,"div",70),E(9,Qvt,5,0,"div",70),E(10,Jvt,5,0,"div",70),r()),e&2){let t=w(2);a(3),h(m(4,4,"labels.inputs.Frequency for compounding")),a(3),we(t.interestRecalculationFrequencyTypeData),a(2),I(t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===4?8:-1),a(),I(t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===4&&t.loanProductSettingsForm.value.recalculationCompoundingFrequencyNthDayType!==-2||t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===3?9:-1),a(),I(t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType===4&&t.loanProductSettingsForm.value.recalculationCompoundingFrequencyNthDayType===-2?10:-1)}}function Xvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Zvt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function ext(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",80),Se(3,Zvt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(2);a(3),we(t.interestRecalculationNthDayTypeData)}}function txt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function ixt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",81),Se(3,txt,3,5,"mat-option",4,Pe),r()()()),e&2){let t=w(2);a(3),we(t.interestRecalculationDayOfWeekTypeData)}}function nxt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function oxt(e,o){if(e&1&&(l(0,"div",70)(1,"mat-form-field",76)(2,"mat-select",82),Se(3,nxt,2,2,"mat-option",4,Pe),r()()()),e&2){let t=w(2);a(3),we(t.interestRecalculationOnDayTypeData)}}function axt(e,o){e&1&&(l(0,"mat-checkbox",72),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Do not calculate interest on past due principal balances")," "))}function rxt(e,o){if(e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",64),Se(6,Vvt,3,5,"mat-option",4,Pe),r(),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",22)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",65),Se(20,qvt,3,5,"mat-option",4,Pe),r(),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),l(26,"strong"),c(27),p(28,"translate"),r()()(),l(29,"mat-form-field",22)(30,"mat-label"),c(31),p(32,"translate"),r(),l(33,"mat-select",66),Se(34,zvt,3,5,"mat-option",4,Pe),r(),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()(),b(43,"span",18),l(44,"div",67),E(45,Hvt,12,12,"mat-form-field",22),E(46,Gvt,12,12,"mat-form-field",22),r(),E(47,Kvt,11,6,"div",16),l(48,"mat-form-field",68)(49,"mat-label"),c(50),p(51,"translate"),r(),l(52,"mat-select",69),Se(53,Xvt,3,5,"mat-option",4,Pe),r(),l(55,"mat-error"),c(56),p(57,"translate"),p(58,"translate"),l(59,"strong"),c(60),p(61,"translate"),r()()(),E(62,ext,5,0,"div",70),E(63,ixt,5,0,"div",70),E(64,oxt,5,0,"div",70),l(65,"mat-checkbox",71),c(66),p(67,"translate"),r(),E(68,axt,3,3,"mat-checkbox",72),r()),e&2){let t=w();a(3),h(m(4,25,"labels.inputs.Pre-closure interest calculation rule")),a(3),we(t.preClosureInterestCalculationStrategyData),a(3),le(" ",m(10,27,"labels.inputs.Pre-closure interest calculation rule")," ",m(11,29,"labels.commons.is")," "),a(4),h(m(14,31,"labels.commons.required")),a(4),h(m(18,33,"labels.inputs.Advance payments adjustment type")),a(2),g("disabled",t.rescheduleStrategyTypeDisabled),a(),we(t.rescheduleStrategyTypeData),a(3),le(" ",m(24,35,"labels.inputs.Advance payments adjustment type")," ",m(25,37,"labels.commons.is")," "),a(4),h(m(28,39,"labels.commons.required")),a(4),h(m(32,41,"labels.inputs.Interest recalculation compounding on")),a(3),we(t.interestRecalculationCompoundingTypeData),a(3),le(" ",m(38,43,"labels.inputs.Interest recalculation compounding on")," ",m(39,45,"labels.commons.is")," "),a(4),h(m(42,47,"labels.commons.required")),a(4),I(t.loanProductSettingsForm.value.interestRecalculationCompoundingMethod!==0&&t.loanProductSettingsForm.value.recalculationCompoundingFrequencyType!==1?45:-1),a(),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType!==1?46:-1),a(),I(t.loanProductSettingsForm.value.interestRecalculationCompoundingMethod!==0?47:-1),a(3),h(m(51,49,"labels.inputs.Frequency for recalculate Outstanding Principal")),a(3),we(t.interestRecalculationFrequencyTypeData),a(3),le(" ",m(57,51,"labels.inputs.Frequency for recalculate Outstanding Principal")," ",m(58,53,"labels.commons.is")," "),a(4),h(m(61,55,"labels.commons.required")),a(2),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType===4?62:-1),a(),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType===4&&t.loanProductSettingsForm.value.recalculationRestFrequencyNthDayType!==-2||t.loanProductSettingsForm.value.recalculationRestFrequencyType===3?63:-1),a(),I(t.loanProductSettingsForm.value.recalculationRestFrequencyType===4&&t.loanProductSettingsForm.value.recalculationRestFrequencyNthDayType===-2?64:-1),a(2),v(" ",m(67,57,"labels.inputs.Is Arrears recognization based on original schedule"),"? "),a(2),I(t.loanProductSettingsForm.value.loanScheduleType==="PROGRESSIVE"?68:-1)}}function lxt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",68)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",83),l(6,"mat-error"),c(7),p(8,"translate"),p(9,"translate"),l(10,"strong"),c(11),p(12,"translate"),r()()(),l(13,"mat-form-field",68)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",84),r(),l(18,"mat-form-field",68)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",85),r()()),e&2&&(a(3),h(m(4,6,"labels.inputs.Mandatory Guarantee(%)")),a(4),le(" ",m(8,8,"labels.inputs.Mandatory Guarantee")," ",m(9,10,"labels.commons.is")," "),a(4),h(m(12,12,"labels.commons.required")),a(4),h(m(16,14,"labels.inputs.Minimum Guarantee from Own Funds(%)")),a(5),h(m(21,16,"labels.inputs.Minimum Guarantee from Guarantor Funds(%)")))}function sxt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",22)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",86),p(6,"translate"),r(),l(7,"mat-form-field",22)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",87),p(12,"translate"),r()()),e&2&&(a(3),h(m(4,6,"labels.inputs.Due days for repayment event")),a(2),g("matTooltip",Le(m(6,8,"tooltips.Maximum outstanding loan account balance"))),a(4),h(m(10,10,"labels.inputs.OverDue days for repayment event")),a(2),g("matTooltip",Le(m(12,12,"tooltips.Maximum outstanding loan account balance"))))}function cxt(e,o){e&1&&(l(0,"div",45)(1,"mat-checkbox",88),c(2),p(3,"translate"),r(),l(4,"mat-checkbox",89),c(5),p(6,"translate"),r(),l(7,"mat-checkbox",90),c(8),p(9,"translate"),r(),l(10,"mat-checkbox",91),c(11),p(12,"translate"),r(),l(13,"mat-checkbox",92),c(14),p(15,"translate"),r(),l(16,"mat-checkbox",93),c(17),p(18,"translate"),r(),l(19,"mat-checkbox",94),c(20),p(21,"translate"),r(),l(22,"mat-checkbox",95),c(23),p(24,"translate"),r()()),e&2&&(a(2),v(" ",m(3,8,"labels.inputs.Amortization")," "),a(3),v(" ",m(6,10,"labels.inputs.Interest method")," "),a(3),v(" ",m(9,12,"labels.inputs.Repayment strategy")," "),a(3),v(" ",m(12,14,"labels.inputs.Interest calculation period")," "),a(3),v(" ",m(15,16,"labels.inputs.Arrears tolerance")," "),a(3),v(" ",m(18,18,"labels.inputs.Repaid every")," "),a(3),v(" ",m(21,20,"labels.inputs.Moratorium")," "),a(3),v(" ",m(24,22,"labels.inputs.Number of days a loan may be overdue before moving into arrears")," "))}var dm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.processingStrategyService=T(Qy),this.DAYS_BEFORE_REPAYMENT_IS_DUE=Ea.DAYS_BEFORE_REPAYMENT_IS_DUE,this.DAYS_AFTER_REPAYMENT_IS_OVERDUE=Ea.DAYS_AFTER_REPAYMENT_IS_OVERDUE,this.advancePaymentStrategy=new bi,this.transactionProcessingStrategyData=[],this.transactionProcessingStrategyDataBase=[],this.loanScheduleTypeData=[],this.loanScheduleProcessingTypeData=[],this.isAdvancedTransactionProcessingStrategy=!1,this.advancedTransactionProcessingStrategyDisabled=!0,this.useDueForRepaymentsConfigurations=!1,this.rescheduleStrategyTypeDisabled=!1,this.chargeOffBehaviourData=[],this.daysInYearCustomStrategyOptions=[],this.useDaysInYearCustomStrategy=!1,this.defaultConfigValues=[],this.createLoanProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.defaultConfigValues=this.loanProductsTemplate.itemsByDefault,this.isLinkedToFloatingInterestRates.valueChanges.subscribe(n=>{n&&(this.loanProductSettingsForm.get("isInterestRecalculationEnabled").setValue(!0),this.loanProductSettingsForm.get("allowPartialPeriodInterestCalculation").setValue(!0))}),this.amortizationTypeData=this.loanProductsTemplate.amortizationTypeOptions,this.interestTypeData=this.loanProductsTemplate.interestTypeOptions,this.interestCalculationPeriodTypeData=this.loanProductsTemplate.interestCalculationPeriodTypeOptions,this.transactionProcessingStrategyData=this.loanProductsTemplate.transactionProcessingStrategyOptions,this.transactionProcessingStrategyDataBase=this.loanProductsTemplate.transactionProcessingStrategyOptions,this.daysInYearTypeData=this.loanProductsTemplate.daysInYearTypeOptions,this.daysInMonthTypeData=this.loanProductsTemplate.daysInMonthTypeOptions,this.preClosureInterestCalculationStrategyData=this.loanProductsTemplate.preClosureInterestCalculationStrategyOptions,this.rescheduleStrategyTypeData=this.loanProductsTemplate.rescheduleStrategyTypeOptions,this.rescheduleStrategyTypeDataBase=this.loanProductsTemplate.rescheduleStrategyTypeOptions,this.interestRecalculationCompoundingTypeData=this.loanProductsTemplate.interestRecalculationCompoundingTypeOptions,this.interestRecalculationFrequencyTypeData=this.loanProductsTemplate.interestRecalculationFrequencyTypeOptions,this.interestRecalculationNthDayTypeData=this.loanProductsTemplate.interestRecalculationNthDayTypeOptions,this.interestRecalculationNthDayTypeData.push({id:-2,code:"onDay",value:"on day"}),this.interestRecalculationDayOfWeekTypeData=this.loanProductsTemplate.interestRecalculationDayOfWeekTypeOptions,this.interestRecalculationOnDayTypeData=Array.from({length:28},(n,i)=>i+1),this.delinquencyBucketData=this.loanProductsTemplate.delinquencyBucketOptions,this.loanScheduleTypeData=this.loanProductsTemplate.loanScheduleTypeOptions,this.loanScheduleProcessingTypeData=this.loanProductsTemplate.loanScheduleProcessingTypeOptions,this.chargeOffBehaviourData=this.loanProductsTemplate.chargeOffBehaviourOptions,this.daysInYearCustomStrategyOptions=this.loanProductsTemplate.daysInYearCustomStrategyOptions;let t=this.loanProductsTemplate.transactionProcessingStrategyCode||this.transactionProcessingStrategyData[0].code;this.loanProductSettingsForm.patchValue({amortizationType:this.loanProductsTemplate.amortizationType.id,interestType:this.loanProductsTemplate.interestType.id,isEqualAmortization:this.loanProductsTemplate.isEqualAmortization,interestCalculationPeriodType:this.loanProductsTemplate.interestCalculationPeriodType.id,allowPartialPeriodInterestCalculation:this.loanProductsTemplate.allowPartialPeriodInterestCalculation,transactionProcessingStrategyCode:t,graceOnPrincipalPayment:this.loanProductsTemplate.graceOnPrincipalPayment,graceOnInterestPayment:this.loanProductsTemplate.graceOnInterestPayment,graceOnInterestCharged:this.loanProductsTemplate.graceOnInterestCharged,inArrearsTolerance:this.loanProductsTemplate.inArrearsTolerance,daysInYearType:this.loanProductsTemplate.daysInYearType.id,daysInMonthType:this.loanProductsTemplate.daysInMonthType.id,canDefineInstallmentAmount:this.loanProductsTemplate.canDefineInstallmentAmount,graceOnArrearsAgeing:this.loanProductsTemplate.graceOnArrearsAgeing,overdueDaysForNPA:this.loanProductsTemplate.overdueDaysForNPA,accountMovesOutOfNPAOnlyOnArrearsCompletion:this.loanProductsTemplate.accountMovesOutOfNPAOnlyOnArrearsCompletion,principalThresholdForLastInstallment:this.loanProductsTemplate.principalThresholdForLastInstallment,allowVariableInstallments:this.loanProductsTemplate.allowVariableInstallments,disallowExpectedDisbursements:this.loanProductsTemplate.disallowExpectedDisbursements,minimumGap:this.loanProductsTemplate.minimumGap,maximumGap:this.loanProductsTemplate.maximumGap,canUseForTopup:this.loanProductsTemplate.canUseForTopup,isInterestRecalculationEnabled:this.loanProductsTemplate.isInterestRecalculationEnabled,holdGuaranteeFunds:this.loanProductsTemplate.holdGuaranteeFunds,multiDisburseLoan:this.loanProductsTemplate.multiDisburseLoan,maxTrancheCount:this.loanProductsTemplate.maxTrancheCount,outstandingLoanBalance:this.loanProductsTemplate.outstandingLoanBalance,allowFullTermForTranche:this.loanProductsTemplate.allowFullTermForTranche,enableDownPayment:this.loanProductsTemplate.enableDownPayment,enableInstallmentLevelDelinquency:this.loanProductsTemplate.enableInstallmentLevelDelinquency,loanScheduleType:this.loanProductsTemplate.loanScheduleType.code,useDueForRepaymentsConfigurations:this.loanProductsTemplate.useDueForRepaymentsConfigurations,allowAccrualPostingInArrears:this.loanProductsTemplate.allowAccrualPostingInArrears,chargeOffBehaviour:this.loanProductsTemplate.chargeOffBehaviour.id}),this.isAdvancedTransactionProcessingStrategy=Ea.isAdvancedPaymentAllocationStrategy(t),this.processingStrategyService.initialize(this.isAdvancedTransactionProcessingStrategy),this.validateAdvancedPaymentStrategyControls(),this.loanProductsTemplate.dueDaysForRepaymentEvent!=null&&this.loanProductsTemplate.overDueDaysForRepaymentEvent!=null?this.loanProductSettingsForm.patchValue({useDueForRepaymentsConfigurations:!1,dueDaysForRepaymentEvent:this.loanProductsTemplate.dueDaysForRepaymentEvent,overDueDaysForRepaymentEvent:this.loanProductsTemplate.overDueDaysForRepaymentEvent}):this.loanProductSettingsForm.patchValue({useDueForRepaymentsConfigurations:!0,dueDaysForRepaymentEvent:null,overDueDaysForRepaymentEvent:null}),this.loanProductsTemplate.delinquencyBucket&&this.loanProductSettingsForm.patchValue({delinquencyBucketId:this.loanProductsTemplate.delinquencyBucket.id>0?this.loanProductsTemplate.delinquencyBucket.id:null}),this.loanProductsTemplate.enableDownPayment&&this.loanProductSettingsForm.patchValue({disbursedAmountPercentageForDownPayment:this.loanProductsTemplate.disbursedAmountPercentageForDownPayment||0,enableAutoRepaymentForDownPayment:this.loanProductsTemplate.enableAutoRepaymentForDownPayment||!1}),this.loanProductsTemplate.isInterestRecalculationEnabled&&this.loanProductSettingsForm.patchValue({preClosureInterestCalculationStrategy:this.loanProductsTemplate.interestRecalculationData.preClosureInterestCalculationStrategy.id,rescheduleStrategyMethod:this.loanProductsTemplate.interestRecalculationData.rescheduleStrategyType.id,interestRecalculationCompoundingMethod:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id,recalculationRestFrequencyType:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id,isArrearsBasedOnOriginalSchedule:this.loanProductsTemplate.interestRecalculationData.isArrearsBasedOnOriginalSchedule,recalculationCompoundingFrequencyType:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id,recalculationCompoundingFrequencyInterval:this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyInterval,recalculationRestFrequencyInterval:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyInterval,recalculationRestFrequencyNthDayType:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id===4&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyOnDay?-2:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyNthDay&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyNthDay.id,recalculationCompoundingFrequencyNthDayType:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyOnDay?-2:this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyNthDay&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyNthDay.id,recalculationCompoundingFrequencyDayOfWeekType:this.loanProductsTemplate.interestRecalculationData.interestRecalculationCompoundingType.id&&(this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&!this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyOnDay||this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyType.id===3)&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyWeekday&&this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyWeekday.id,recalculationRestFrequencyDayOfWeekType:(this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id===4&&!this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyOnDay||this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyType.id===3)&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyWeekday&&this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyWeekday.id,recalculationCompoundingFrequencyOnDayType:this.loanProductsTemplate.interestRecalculationData.recalculationCompoundingFrequencyOnDay,recalculationRestFrequencyOnDayType:this.loanProductsTemplate.interestRecalculationData.recalculationRestFrequencyOnDay}),this.loanProductsTemplate.holdGuaranteeFunds&&this.loanProductSettingsForm.patchValue({mandatoryGuarantee:this.loanProductsTemplate.productGuaranteeData.mandatoryGuarantee,minimumGuaranteeFromOwnFunds:this.loanProductsTemplate.productGuaranteeData.minimumGuaranteeFromOwnFunds,minimumGuaranteeFromGuarantor:this.loanProductsTemplate.productGuaranteeData.minimumGuaranteeFromGuarantor}),this.loanProductsTemplate.allowAttributeOverrides&&this.loanProductSettingsForm.patchValue({allowAttributeConfiguration:Object.values(this.loanProductsTemplate.allowAttributeOverrides).some(n=>n),allowAttributeOverrides:{amortizationType:this.loanProductsTemplate.allowAttributeOverrides.amortizationType,interestType:this.loanProductsTemplate.allowAttributeOverrides.interestType,transactionProcessingStrategyCode:this.loanProductsTemplate.allowAttributeOverrides.transactionProcessingStrategyCode,interestCalculationPeriodType:this.loanProductsTemplate.allowAttributeOverrides.interestCalculationPeriodType,inArrearsTolerance:this.loanProductsTemplate.allowAttributeOverrides.inArrearsTolerance,repaymentEvery:this.loanProductsTemplate.allowAttributeOverrides.repaymentEvery,graceOnPrincipalAndInterestPayment:this.loanProductsTemplate.allowAttributeOverrides.graceOnPrincipalAndInterestPayment,graceOnArrearsAgeing:this.loanProductsTemplate.allowAttributeOverrides.graceOnArrearsAgeing}})}createLoanProductSettingsForm(){this.loanProductSettingsForm=this.formBuilder.group({amortizationType:["",ce.required],interestType:["",ce.required],isEqualAmortization:[!1],interestCalculationPeriodType:["",ce.required],transactionProcessingStrategyCode:["",ce.required],graceOnPrincipalPayment:[""],graceOnInterestPayment:[""],graceOnInterestCharged:[""],inArrearsTolerance:[""],daysInYearType:["",ce.required],daysInMonthType:["",ce.required],canDefineInstallmentAmount:[!1],graceOnArrearsAgeing:[""],overdueDaysForNPA:[""],accountMovesOutOfNPAOnlyOnArrearsCompletion:[!1],principalThresholdForLastInstallment:[""],allowVariableInstallments:[!1],disallowExpectedDisbursements:[!1],canUseForTopup:[!1],isInterestRecalculationEnabled:[!1],holdGuaranteeFunds:[!1],multiDisburseLoan:[!1],allowFullTermForTranche:[!1],allowAttributeConfiguration:[!0],allowPartialPeriodInterestCalculation:[!1],allowAttributeOverrides:this.formBuilder.group({amortizationType:[!0],interestType:[!0],transactionProcessingStrategyCode:[!0],interestCalculationPeriodType:[!0],inArrearsTolerance:[!0],repaymentEvery:[!0],graceOnPrincipalAndInterestPayment:[!0],graceOnArrearsAgeing:[!0]}),delinquencyBucketId:[""],enableDownPayment:[!1],enableInstallmentLevelDelinquency:[!1],useDueForRepaymentsConfigurations:[!1],dueDaysForRepaymentEvent:[""],overDueDaysForRepaymentEvent:[""],loanScheduleType:[Ea.LOAN_SCHEDULE_TYPE_CUMULATIVE,ce.required],allowAccrualPostingInArrears:[!1]})}setConditionalControls(){let t=this.loanProductSettingsForm.get("allowAttributeOverrides");this.loanProductSettingsForm.get("daysInYearType").valueChanges.subscribe(n=>{if(this.isAdvancedTransactionProcessingStrategy)if(this.useDaysInYearCustomStrategy=n==1,this.useDaysInYearCustomStrategy){let i=this.loanProductsTemplate.daysInYearCustomStrategy?.id?this.loanProductsTemplate.daysInYearCustomStrategy.id:this.daysInYearCustomStrategyOptions[0].id;this.loanProductSettingsForm.addControl("daysInYearCustomStrategy",new it(i,ce.required))}else this.loanProductSettingsForm.removeControl("daysInYearCustomStrategy")}),this.loanProductSettingsForm.get("interestCalculationPeriodType").valueChanges.subscribe(n=>{n===0&&this.loanProductSettingsForm.patchValue({allowPartialPeriodInterestCalculation:!1})}),this.loanProductSettingsForm.get("allowVariableInstallments").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("minimumGap",new it("",ce.required)),this.loanProductSettingsForm.addControl("maximumGap",new it("",ce.required))):(this.loanProductSettingsForm.removeControl("minimumGap"),this.loanProductSettingsForm.removeControl("maximumGap"))}),this.loanProductSettingsForm.get("isInterestRecalculationEnabled").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("preClosureInterestCalculationStrategy",new it(this.preClosureInterestCalculationStrategyData[0].id,ce.required)),this.loanProductSettingsForm.addControl("rescheduleStrategyMethod",new it(this.rescheduleStrategyTypeData[0].id,ce.required)),this.loanProductSettingsForm.addControl("interestRecalculationCompoundingMethod",new it(this.interestRecalculationCompoundingTypeData[0].id,ce.required)),this.loanProductSettingsForm.addControl("recalculationRestFrequencyType",new it(this.interestRecalculationFrequencyTypeData[0].id,ce.required)),this.loanProductSettingsForm.addControl("isArrearsBasedOnOriginalSchedule",new it("")),this.loanProductSettingsForm.value.isInterestRecalculationEnabled&&this.setRescheduleStrategies(),this.loanProductSettingsForm.get("interestRecalculationCompoundingMethod").valueChanges.subscribe(i=>{i!==0?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyType",new it(this.interestRecalculationFrequencyTypeData[0].id,ce.required)),this.loanProductSettingsForm.get("recalculationCompoundingFrequencyType").valueChanges.subscribe(s=>{s!==1?this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyInterval",new it("",ce.required)):this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyInterval"),s===3?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyOnDayType")):s===4?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyNthDayType",new it("")),this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.get("recalculationCompoundingFrequencyNthDayType").valueChanges.subscribe(d=>{d===-2?(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyOnDayType",new it("")),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyDayOfWeekType")):(this.loanProductSettingsForm.addControl("recalculationCompoundingFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyOnDayType"))})):(this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyDayOfWeekType"),this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyOnDayType"))})):this.loanProductSettingsForm.removeControl("recalculationCompoundingFrequencyType")}),this.loanProductSettingsForm.get("recalculationRestFrequencyType").valueChanges.subscribe(i=>{i!==1?this.loanProductSettingsForm.addControl("recalculationRestFrequencyInterval",new it("",ce.required)):this.loanProductSettingsForm.removeControl("recalculationRestFrequencyInterval"),i===3?(this.loanProductSettingsForm.addControl("recalculationRestFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyOnDayType")):i===4?(this.loanProductSettingsForm.addControl("recalculationRestFrequencyNthDayType",new it("")),this.loanProductSettingsForm.addControl("recalculationRestFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.get("recalculationRestFrequencyNthDayType").valueChanges.subscribe(s=>{s===-2?(this.loanProductSettingsForm.addControl("recalculationRestFrequencyOnDayType",new it("")),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyDayOfWeekType")):(this.loanProductSettingsForm.addControl("recalculationRestFrequencyDayOfWeekType",new it("")),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyOnDayType"))})):(this.loanProductSettingsForm.removeControl("recalculationRestFrequencyNthDayType"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyDayOfWeekType"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyOnDayType"))})):(this.loanProductSettingsForm.removeControl("preClosureInterestCalculationStrategy"),this.loanProductSettingsForm.removeControl("rescheduleStrategyMethod"),this.loanProductSettingsForm.removeControl("interestRecalculationCompoundingMethod"),this.loanProductSettingsForm.removeControl("recalculationRestFrequencyType"),this.loanProductSettingsForm.removeControl("isArrearsBasedOnOriginalSchedule")),this.enableFieldsWhenScheduleTypeIsProgressiveAndInterestRateRecalculationEnabled()}),this.loanProductSettingsForm.get("holdGuaranteeFunds").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("mandatoryGuarantee",new it("",ce.required)),this.loanProductSettingsForm.addControl("minimumGuaranteeFromOwnFunds",new it("")),this.loanProductSettingsForm.addControl("minimumGuaranteeFromGuarantor",new it(""))):(this.loanProductSettingsForm.removeControl("mandatoryGuarantee"),this.loanProductSettingsForm.removeControl("minimumGuaranteeFromOwnFunds"),this.loanProductSettingsForm.removeControl("minimumGuaranteeFromGuarantor"))}),this.loanProductSettingsForm.get("multiDisburseLoan").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("maxTrancheCount",new it("",ce.required)),this.loanProductSettingsForm.addControl("outstandingLoanBalance",new it(""))):(this.loanProductSettingsForm.removeControl("maxTrancheCount"),this.loanProductSettingsForm.removeControl("outstandingLoanBalance"),this.loanProductSettingsForm.patchValue({disallowExpectedDisbursements:!1,allowFullTermForTranche:!1}))}),this.loanProductSettingsForm.get("enableDownPayment").valueChanges.subscribe(n=>{n?(this.loanProductSettingsForm.addControl("disbursedAmountPercentageForDownPayment",new it(0,[ce.required,JK(0,100)])),this.loanProductSettingsForm.addControl("enableAutoRepaymentForDownPayment",new it(!1,[]))):(this.loanProductSettingsForm.removeControl("disbursedAmountPercentageForDownPayment"),this.loanProductSettingsForm.removeControl("enableAutoRepaymentForDownPayment"))}),this.loanProductSettingsForm.get("transactionProcessingStrategyCode").valueChanges.subscribe(n=>{this.advancePaymentStrategy.emit(n),this.isAdvancedTransactionProcessingStrategy=Ea.isAdvancedPaymentAllocationStrategy(n),this.processingStrategyService.initialize(this.isAdvancedTransactionProcessingStrategy),this.validateAdvancedPaymentStrategyControls()}),this.loanProductSettingsForm.get("allowAttributeConfiguration").valueChanges.subscribe(n=>{n?t.patchValue({amortizationType:!0,interestType:!0,transactionProcessingStrategyCode:!0,interestCalculationPeriodType:!0,inArrearsTolerance:!0,repaymentEvery:!0,graceOnPrincipalAndInterestPayment:!0,graceOnArrearsAgeing:!0}):t.patchValue({amortizationType:!1,interestType:!1,transactionProcessingStrategyCode:!1,interestCalculationPeriodType:!1,inArrearsTolerance:!1,repaymentEvery:!1,graceOnPrincipalAndInterestPayment:!1,graceOnArrearsAgeing:!1})}),this.loanProductSettingsForm.get("useDueForRepaymentsConfigurations").valueChanges.subscribe(n=>{n?this.loanProductSettingsForm.patchValue({dueDaysForRepaymentEvent:null,overDueDaysForRepaymentEvent:null}):this.loanProductSettingsForm.patchValue({dueDaysForRepaymentEvent:this.getGlobalConfigValue(Ea.DAYS_BEFORE_REPAYMENT_IS_DUE),overDueDaysForRepaymentEvent:this.getGlobalConfigValue(Ea.DAYS_AFTER_REPAYMENT_IS_OVERDUE)})}),this.loanProductSettingsForm.get("loanScheduleType").valueChanges.subscribe(n=>{this.transactionProcessingStrategyData=[],n===Ea.LOAN_SCHEDULE_TYPE_CUMULATIVE?(this.transactionProcessingStrategyData=this.transactionProcessingStrategyDataBase.filter(i=>!Ea.isAdvancedPaymentAllocationStrategy(i.code)),Ea.isAdvancedPaymentAllocationStrategy(this.loanProductSettingsForm.value.transactionProcessingStrategyCode)&&this.loanProductSettingsForm.patchValue({transactionProcessingStrategyCode:this.transactionProcessingStrategyData[0].code}),this.advancedTransactionProcessingStrategyDisabled=!1,this.isAdvancedTransactionProcessingStrategy=!1,this.loanProductSettingsForm.removeControl("chargeOffBehaviour"),this.loanProductSettingsForm.patchValue({allowFullTermForTranche:!1})):(this.transactionProcessingStrategyDataBase.some(i=>{Ea.isAdvancedPaymentAllocationStrategy(i.code)&&this.transactionProcessingStrategyData.push(i)}),this.advancedTransactionProcessingStrategyDisabled=!0,this.loanProductSettingsForm.patchValue({transactionProcessingStrategyCode:this.transactionProcessingStrategyData[0].code}),this.isAdvancedTransactionProcessingStrategy=!0,this.loanProductSettingsForm.addControl("chargeOffBehaviour",new it(this.loanProductsTemplate.chargeOffBehaviour.id)),this.validateAdvancedPaymentStrategyControls()),this.loanProductSettingsForm.value.isInterestRecalculationEnabled&&this.setRescheduleStrategies(),this.processingStrategyService.initialize(this.isAdvancedTransactionProcessingStrategy),this.enableFieldsWhenScheduleTypeIsProgressiveAndInterestRateRecalculationEnabled()})}enableFieldsWhenScheduleTypeIsProgressiveAndInterestRateRecalculationEnabled(){let t=this.loanProductSettingsForm.get("loanScheduleType").value===Ea.LOAN_SCHEDULE_TYPE_PROGRESSIVE,n=this.loanProductSettingsForm.get("isInterestRecalculationEnabled").value==!0,i=t&&n,s=this.loanProductSettingsForm.contains("disallowInterestCalculationOnPastDue");i&&!s?(this.loanProductSettingsForm.addControl("disallowInterestCalculationOnPastDue",new it("")),this.loanProductSettingsForm.patchValue({disallowInterestCalculationOnPastDue:this.loanProductsTemplate.interestRecalculationData?.disallowInterestCalculationOnPastDue??!1})):s&&!i&&(this.loanProductSettingsForm.patchValue({disallowInterestCalculationOnPastDue:void 0}),this.loanProductSettingsForm.removeControl("disallowInterestCalculationOnPastDue"))}setRescheduleStrategies(){this.advancedTransactionProcessingStrategyDisabled?(this.rescheduleStrategyTypeData=this.rescheduleStrategyTypeDataBase.filter(t=>t.id>3),this.loanProductSettingsForm.patchValue({rescheduleStrategyMethod:this.rescheduleStrategyTypeData[0].id}),this.rescheduleStrategyTypeDisabled=!0):(this.rescheduleStrategyTypeData=this.rescheduleStrategyTypeDataBase.filter(t=>t.id<4),this.loanProductSettingsForm.patchValue({rescheduleStrategyMethod:this.rescheduleStrategyTypeData[0].id}),this.rescheduleStrategyTypeDisabled=!1)}getGlobalConfigValue(t){let n=null;return this.defaultConfigValues.forEach(i=>{i.name===t&&(n=i.value)}),n}clearProperty(t,n){n==="delinquencyBucketId"&&this.loanProductSettingsForm.patchValue({delinquencyBucketId:"",enableInstallmentLevelDelinquency:!1}),this.loanProductSettingsForm.markAsDirty(),t.stopPropagation()}get loanProductSettings(){let t=this.loanProductSettingsForm.value;return this.loanProductSettingsForm.value.useDueForRepaymentsConfigurations&&(t.dueDaysForRepaymentEvent=null,t.overDueDaysForRepaymentEvent=null),t.delinquencyBucketId===""&&(t.delinquencyBucketId=null),t}validateAdvancedPaymentStrategyControls(){if(this.isAdvancedTransactionProcessingStrategy){let t=this.loanProductSettingsForm.get("daysInYearType").value;if(this.loanProductSettingsForm.addControl("loanScheduleProcessingType",new it(this.loanProductsTemplate.loanScheduleProcessingType.code||Ea.LOAN_SCHEDULE_PROCESSING_TYPE_HORIZONTAL,[ce.required])),this.useDaysInYearCustomStrategy=t===1,this.useDaysInYearCustomStrategy){let n=this.loanProductsTemplate.daysInYearCustomStrategy?.id?this.loanProductsTemplate.daysInYearCustomStrategy.id:this.daysInYearCustomStrategyOptions[0].id;this.loanProductSettingsForm.addControl("daysInYearCustomStrategy",new it(n,ce.required))}}else this.useDaysInYearCustomStrategy=!1,this.loanProductSettingsForm.removeControl("loanScheduleProcessingType"),this.loanProductSettingsForm.removeControl("daysInYearCustomStrategy")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-settings-step"]],inputs:{toEdit:"toEdit",loanProductsTemplate:"loanProductsTemplate",isLinkedToFloatingInterestRates:"isLinkedToFloatingInterestRates"},outputs:{advancePaymentStrategy:"advancePaymentStrategy"},decls:251,vars:251,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-30"],["formControlName","amortizationType","required","",3,"matTooltip"],[3,"value"],["formControlName","interestType","required","",3,"matTooltip"],["formControlName","interestCalculationPeriodType","required","",3,"matTooltip"],["labelPosition","before","formControlName","isEqualAmortization",1,"flex-96"],["labelPosition","before","formControlName","allowPartialPeriodInterestCalculation",1,"flex-96",3,"matTooltip"],[1,"flex-98"],[1,"mat-h4","flex-98"],["formControlName","loanScheduleType","required",""],["formControlName","transactionProcessingStrategyCode","required","",3,"matTooltip","disabled"],[1,"flex-fill","flex-30"],[1,"mat-h3","flex-96"],["labelPosition","before","formControlName","multiDisburseLoan",1,"margin-b","flex-73",3,"matTooltip"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["labelPosition","before","formControlName","enableDownPayment",1,"margin-b","flex-73",3,"matTooltip"],[1,"flex-48","hide-lt-md"],[1,"full-width-flex"],[1,"mat-h4","m-r-10","flex-98"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-48"],["type","number","matInput","","formControlName","graceOnPrincipalPayment"],["type","number","matInput","","formControlName","graceOnInterestPayment"],["formControlName","delinquencyBucketId"],["matSuffix","","mat-icon-button","","aria-label","Clear"],["labelPosition","before","formControlName","enableInstallmentLevelDelinquency",1,"flex-48","margin-v"],["type","number","matInput","","formControlName","graceOnInterestCharged",3,"matTooltip"],["type","number","matInput","","formControlName","inArrearsTolerance",3,"matTooltip"],["formControlName","daysInYearType","required","",3,"matTooltip"],["formControlName","daysInMonthType","required","",3,"matTooltip"],["labelPosition","before","formControlName","canDefineInstallmentAmount",1,"margin-v","flex-98"],["type","number","matInput","","formControlName","graceOnArrearsAgeing"],["type","number","matInput","","formControlName","overdueDaysForNPA"],["labelPosition","before","formControlName","accountMovesOutOfNPAOnlyOnArrearsCompletion",1,"flex-48","margin-v"],["type","number","matInput","","formControlName","principalThresholdForLastInstallment"],["labelPosition","before","formControlName","allowVariableInstallments",1,"flex-48","margin-v",3,"matTooltip"],["labelPosition","before","formControlName","canUseForTopup",1,"flex-48","margin-v",3,"matTooltip"],["labelPosition","before","formControlName","isInterestRecalculationEnabled",1,"flex-73","margin-b"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","holdGuaranteeFunds",1,"flex-73","margin-b"],["labelPosition","before","formControlName","useDueForRepaymentsConfigurations",1,"flex-48","margin-b",3,"matTooltip"],[1,"mat-h3","flex-43"],["labelPosition","before","formControlName","allowAttributeConfiguration",1,"margin-b","flex-53"],["formGroupName","allowAttributeOverrides",1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","loanScheduleProcessingType","required",""],["type","number","matInput","","formControlName","maxTrancheCount","required","",3,"matTooltip"],["type","number","matInput","","formControlName","outstandingLoanBalance",3,"matTooltip"],["labelPosition","before","formControlName","disallowExpectedDisbursements",1,"flex-48","margin-v"],["labelPosition","before","formControlName","allowFullTermForTranche",1,"flex-48","margin-v",3,"matTooltip"],["type","number","matInput","","formControlName","disbursedAmountPercentageForDownPayment","required","",3,"matTooltip","min","max"],["labelPosition","before","formControlName","enableAutoRepaymentForDownPayment",1,"flex-48","margin-v",3,"matTooltip"],["formControlName","chargeOffBehaviour","required",""],["matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],["icon","close","size","md"],["formControlName","daysInYearCustomStrategy",3,"matTooltip"],["type","number","matInput","","formControlName","minimumGap","required",""],["type","number","matInput","","formControlName","maximumGap","required",""],["formControlName","preClosureInterestCalculationStrategy","required",""],["formControlName","rescheduleStrategyMethod","required","",3,"disabled"],["formControlName","interestRecalculationCompoundingMethod","required",""],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"flex-31"],["formControlName","recalculationRestFrequencyType","required",""],[1,"flex-31","layout-row","layout-lt-md-column"],["labelPosition","before","formControlName","isArrearsBasedOnOriginalSchedule",1,"flex-98","margin-v"],["labelPosition","before","formControlName","disallowInterestCalculationOnPastDue",1,"flex-98","margin-v"],["type","number","matInput","","formControlName","recalculationCompoundingFrequencyInterval","required",""],["type","number","matInput","","formControlName","recalculationRestFrequencyInterval","required",""],["formControlName","recalculationCompoundingFrequencyType","required",""],[1,"flex-fill"],["formControlName","recalculationCompoundingFrequencyNthDayType"],["formControlName","recalculationCompoundingFrequencyDayOfWeekType"],["formControlName","recalculationCompoundingFrequencyOnDayType"],["formControlName","recalculationRestFrequencyNthDayType"],["formControlName","recalculationRestFrequencyDayOfWeekType"],["formControlName","recalculationRestFrequencyOnDayType"],["type","number","matInput","","formControlName","mandatoryGuarantee","required",""],["type","number","matInput","","formControlName","minimumGuaranteeFromOwnFunds"],["type","number","matInput","","formControlName","minimumGuaranteeFromGuarantor"],["type","number","matInput","","formControlName","dueDaysForRepaymentEvent",3,"matTooltip"],["type","number","matInput","","formControlName","overDueDaysForRepaymentEvent",3,"matTooltip"],["labelPosition","before","formControlName","amortizationType",1,"margin-v","flex-48"],["labelPosition","before","formControlName","interestType",1,"margin-v","flex-48"],["labelPosition","before","formControlName","transactionProcessingStrategyCode",1,"flex-48","margin-v"],["labelPosition","before","formControlName","interestCalculationPeriodType",1,"flex-48","margin-v"],["labelPosition","before","formControlName","inArrearsTolerance",1,"margin-v","flex-48"],["labelPosition","before","formControlName","repaymentEvery",1,"margin-v","flex-48"],["labelPosition","before","formControlName","graceOnPrincipalAndInterestPayment",1,"flex-48","margin-v"],["labelPosition","before","formControlName","graceOnArrearsAgeing",1,"margin-v","flex-48"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,hvt,3,4,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),l(21,"mat-select",5),p(22,"translate"),Se(23,gvt,3,5,"mat-option",4,Pe),r(),l(25,"mat-error"),c(26),p(27,"translate"),p(28,"translate"),l(29,"strong"),c(30),p(31,"translate"),r()()(),l(32,"mat-form-field",2)(33,"mat-label"),c(34),p(35,"translate"),r(),l(36,"mat-select",6),p(37,"translate"),Se(38,_vt,3,5,"mat-option",4,Pe),r(),l(40,"mat-error"),c(41),p(42,"translate"),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()(),l(47,"mat-checkbox",7),c(48),p(49,"translate"),r(),E(50,Cvt,4,7,"mat-checkbox",8),b(51,"mat-divider",9),l(52,"h4",10),c(53),p(54,"translate"),r(),l(55,"mat-form-field",2)(56,"mat-label"),c(57),p(58,"translate"),r(),l(59,"mat-select",11),Se(60,vvt,3,5,"mat-option",4,Pe),r()(),l(62,"mat-form-field",2)(63,"mat-label"),c(64),p(65,"translate"),r(),l(66,"mat-select",12),p(67,"translate"),Se(68,xvt,3,5,"mat-option",4,Pe),r(),l(70,"mat-error"),c(71),p(72,"translate"),p(73,"translate"),l(74,"strong"),c(75),p(76,"translate"),r()()(),E(77,yvt,7,3,"mat-form-field",13),l(78,"h3",14),c(79),p(80,"translate"),r(),l(81,"mat-checkbox",15),p(82,"translate"),c(83),p(84,"translate"),r(),E(85,Pvt,18,19,"div",16),l(86,"h3",14),c(87),p(88,"translate"),r(),l(89,"mat-checkbox",17),p(90,"translate"),c(91),p(92,"translate"),r(),E(93,Dvt,13,18,"div",16),b(94,"mat-divider",9)(95,"span",18),l(96,"div",19),E(97,Ivt,11,6,"div"),r(),l(98,"h4",20),c(99),p(100,"translate"),b(101,"i",21),p(102,"translate"),r(),l(103,"mat-form-field",22)(104,"mat-label"),c(105),p(106,"translate"),r(),b(107,"input",23),r(),l(108,"mat-form-field",22)(109,"mat-label"),c(110),p(111,"translate"),r(),b(112,"input",24),r(),b(113,"mat-divider",9),l(114,"mat-form-field",22)(115,"mat-label"),c(116),p(117,"translate"),r(),l(118,"mat-select",25),Se(119,Ovt,2,2,"mat-option",4,Pe),r(),E(121,Avt,2,0,"button",26),r(),E(122,Fvt,3,3,"mat-checkbox",27),b(123,"mat-divider",9),l(124,"mat-form-field",22)(125,"mat-label"),c(126),p(127,"translate"),r(),b(128,"input",28),p(129,"translate"),r(),l(130,"mat-form-field",22)(131,"mat-label"),c(132),p(133,"translate"),r(),b(134,"input",29),p(135,"translate"),r(),l(136,"mat-form-field",22)(137,"mat-label"),c(138),p(139,"translate"),r(),l(140,"mat-select",30),p(141,"translate"),Se(142,kvt,3,5,"mat-option",4,Pe),r(),l(144,"mat-error"),c(145),p(146,"translate"),p(147,"translate"),l(148,"strong"),c(149),p(150,"translate"),r()()(),E(151,Rvt,8,7,"mat-form-field",22),l(152,"mat-form-field",22)(153,"mat-label"),c(154),p(155,"translate"),r(),l(156,"mat-select",31),p(157,"translate"),Se(158,Nvt,3,5,"mat-option",4,Pe),r(),l(160,"mat-error"),c(161),p(162,"translate"),p(163,"translate"),l(164,"strong"),c(165),p(166,"translate"),r()()(),l(167,"mat-checkbox",32),c(168),p(169,"translate"),r(),l(170,"h4",22),c(171),p(172,"translate"),b(173,"i",21),p(174,"translate"),r(),l(175,"mat-form-field",22)(176,"mat-label"),c(177),p(178,"translate"),r(),b(179,"input",33),r(),l(180,"h4",22),c(181),p(182,"translate"),b(183,"i",21),p(184,"translate"),r(),l(185,"mat-form-field",22)(186,"mat-label"),c(187),p(188,"translate"),r(),b(189,"input",34),r(),l(190,"mat-checkbox",35),c(191),p(192,"translate"),r(),l(193,"mat-form-field",22)(194,"mat-label"),c(195),p(196,"translate"),r(),b(197,"input",36),r(),l(198,"mat-checkbox",37),p(199,"translate"),c(200),p(201,"translate"),r(),E(202,Lvt,28,27,"div",16),l(203,"mat-checkbox",38),p(204,"translate"),c(205),p(206,"translate"),r(),b(207,"mat-divider",9),l(208,"h3",14),c(209),p(210,"translate"),r(),l(211,"mat-checkbox",39),c(212),p(213,"translate"),r(),E(214,rxt,69,59,"div",16),b(215,"mat-divider",9),l(216,"h3",40),c(217),p(218,"translate"),r(),l(219,"mat-checkbox",41),c(220),p(221,"translate"),r(),E(222,lxt,23,18,"div",16),b(223,"mat-divider",9),l(224,"h3",40),c(225),p(226,"translate"),b(227,"i",21),p(228,"translate"),r(),l(229,"mat-checkbox",42),p(230,"translate"),c(231),p(232,"translate"),r(),E(233,sxt,13,14,"div",16),b(234,"mat-divider",9),l(235,"h3",43),c(236),p(237,"translate"),r(),l(238,"mat-checkbox",44),c(239),p(240,"translate"),r(),E(241,cxt,25,24,"div",45),r(),l(242,"div",46)(243,"button",47),b(244,"fa-icon",48),c(245),p(246,"translate"),r(),l(247,"button",49),c(248),p(249,"translate"),b(250,"fa-icon",50),r()()()),n&2&&(g("formGroup",i.loanProductSettingsForm),a(4),h(m(5,105,"labels.inputs.products.loan.Amortization")),a(2),g("matTooltip",Le(m(7,107,"tooltips.The Amortization value"))),a(2),we(i.amortizationTypeData),a(3),le(" ",m(12,109,"labels.inputs.products.loan.Amortization")," ",m(13,111,"labels.commons.is")," "),a(4),h(m(16,113,"labels.commons.required")),a(4),h(m(20,115,"labels.inputs.Interest Method")),a(2),g("matTooltip",Le(m(22,117,"tooltips.The Interest method value"))),a(2),we(i.interestTypeData),a(3),le(" ",m(27,119,"labels.inputs.Interest Method")," ",m(28,121,"labels.commons.is")," "),a(4),h(m(31,123,"labels.commons.required")),a(4),h(m(35,125,"labels.inputs.Interest calculation period")),a(2),g("matTooltip",Le(m(37,127,"tooltips.Daily - Will Calculate the interest"))),a(2),we(i.interestCalculationPeriodTypeData),a(3),le(" ",m(42,129,"labels.inputs.Interest calculation period")," ",m(43,131,"labels.commons.is")," "),a(4),h(m(46,133,"labels.commons.required")),a(3),v(" ",m(49,135,"labels.inputs.products.loan.Is Equal Amortization?")," "),a(2),I(i.loanProductSettingsForm.value.interestCalculationPeriodType===1?50:-1),a(3),h(m(54,137,"labels.inputs.Loan Schedule")),a(4),h(m(58,139,"labels.inputs.Loan Schedule Type")),a(3),we(i.loanScheduleTypeData),a(4),h(m(65,141,"labels.inputs.Repayment strategy")),a(2),g("matTooltip",Le(m(67,143,"tooltips.The repayment strategy")))("disabled",i.advancedTransactionProcessingStrategyDisabled),a(2),we(i.transactionProcessingStrategyData),a(3),le(" ",m(72,145,"labels.inputs.Repayment strategy")," ",m(73,147,"labels.commons.is")," "),a(4),h(m(76,149,"labels.commons.required")),a(2),I(i.isAdvancedTransactionProcessingStrategy?77:-1),a(2),h(m(80,151,"labels.inputs.Loan Tranche Details")),a(2),g("matTooltip",Le(m(82,153,"tooltips.Leave this checkbox unchecked"))),a(2),v(" ",m(84,155,"labels.inputs.Enable Multiple Disbursals")," "),a(2),I(i.loanProductSettingsForm.value.multiDisburseLoan?85:-1),a(2),h(m(88,157,"labels.heading.Down Payment")),a(2),g("matTooltip",Le(m(90,159,"tooltips.Leave this checkbox unchecked"))),a(2),v(" ",m(92,161,"labels.inputs.Enable Down Payment")," "),a(2),I(i.loanProductSettingsForm.value.enableDownPayment?93:-1),a(4),I(i.isAdvancedTransactionProcessingStrategy?97:-1),a(2),v(" ",m(100,163,"labels.inputs.Moratorium")," "),a(2),g("matTooltip",Le(m(102,165,"tooltips.The moratorium information"))),a(4),h(m(106,167,"labels.inputs.Grace on principal payment")),a(5),h(m(111,169,"labels.inputs.Grace on interest payment")),a(6),h(m(117,171,"labels.inputs.Delinquency Bucket")),a(3),we(i.delinquencyBucketData),a(2),I(i.loanProductSettingsForm.controls.delinquencyBucketId?121:-1),a(),I(i.loanProductSettingsForm.value.delinquencyBucketId?122:-1),a(4),h(m(127,173,"labels.inputs.Interest free period")),a(2),g("matTooltip",Le(m(129,175,"tooltips.If the Interest Free Period"))),a(4),h(m(133,177,"labels.inputs.Arrears tolerance")),a(2),g("matTooltip",Le(m(135,179,"tooltips.With Arrears tolerance"))),a(4),h(m(139,181,"labels.inputs.Days in year")),a(2),g("matTooltip",Le(m(141,183,"tooltips.To calculate interest"))),a(2),we(i.daysInYearTypeData),a(3),le(" ",m(146,185,"labels.inputs.Days in year")," ",m(147,187,"labels.commons.is")," "),a(4),h(m(150,189,"labels.commons.required")),a(2),I(i.useDaysInYearCustomStrategy?151:-1),a(3),h(m(155,191,"labels.inputs.Days in month")),a(2),g("matTooltip",_0("",m(157,193,"tooltips.Number of days in month"),".")),a(2),we(i.daysInMonthTypeData),a(3),le(" ",m(162,195,"labels.inputs.Days in month")," ",m(163,197,"labels.commons.is")," "),a(4),h(m(166,199,"labels.commons.required")),a(3),v(" ",m(169,201,"labels.inputs.Allow fixing of the installment amount")," "),a(3),v(" ",m(172,203,"labels.inputs.Number of days a loan may be overdue before moving into arrears")," "),a(2),g("matTooltip",Le(m(174,205,"tooltips.A loan is in arrears once the number of days"))),a(4),h(m(178,207,"labels.inputs.On arrears ageing")),a(4),v(" ",m(182,209,"labels.inputs.Maximum number of days a loan may be overdue before becoming a NPA (non performing asset)")," "),a(2),g("matTooltip",Le(m(184,211,"tooltips.NPA (non performing asset) once the number of days"))),a(4),h(m(188,213,"labels.inputs.Overdue days for NPA")),a(4),v(" ",m(192,215,"labels.inputs.Account moves out of NPA only after all arrears have been cleared")," "),a(4),h(m(196,217,"labels.inputs.Principal Threshold (%) for Last Instalment")),a(3),g("matTooltip",Le(m(199,219,"tooltips.Fields are used to define the minimum, maximum gap"))),a(2),v(" ",m(201,221,"labels.inputs.Are Variable Installments allowed?")," "),a(2),I(i.loanProductSettingsForm.value.allowVariableInstallments?202:-1),a(),g("matTooltip",Le(m(204,223,"tooltips.Loan Product can be used to apply for Topup Loans"))),a(2),v(" ",m(206,225,"labels.inputs.Allowed to be used for providing Topup Loans")," "),a(4),h(m(210,227,"labels.heading.Interest Recalculation")),a(3),v(" ",m(213,229,"labels.inputs.Recalculate Interest")," "),a(2),I(i.loanProductSettingsForm.value.isInterestRecalculationEnabled?214:-1),a(3),h(m(218,231,"labels.heading.Guarantee Requirements")),a(3),v(" ",m(221,233,"labels.inputs.Place Guarantee Funds On-Hold")," "),a(2),I(i.loanProductSettingsForm.value.holdGuaranteeFunds?222:-1),a(3),v(" ",m(226,235,"labels.heading.Event Settings")),a(2),g("matTooltip",Le(m(228,237,"tooltips.Setting for event notifications to be sent"))),a(2),g("matTooltip",Le(m(230,239,"tooltips.Use or not the Global Configurations"))),a(2),v(" ",m(232,241,"labels.inputs.Use the Global Configurations values to the Repayment Event (notifications)")," "),a(2),I(i.loanProductSettingsForm.value.useDueForRepaymentsConfigurations?-1:233),a(3),h(m(237,243,"labels.inputs.Configurable Terms and Settings")),a(3),v(" ",m(240,245,"labels.inputs.Allow overriding select terms and settings in loan accounts")," "),a(2),I(i.loanProductSettingsForm.value.allowAttributeConfiguration?241:-1),a(4),v(" ",m(246,247,"labels.buttons.Previous")," "),a(3),v(" ",m(249,249,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,UF,Ze,et,la,Fe,Be,ut,ai,ze,gt,ft,xe,fi,si,Ri,wi,ke,qi,Ji,he,ki],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.by-default[_ngcontent-%COMP%]{color:#4461e2b3;font-weight:700}"]})}}return e})();function pxt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function mxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function dxt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function uxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function fxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function hxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function gxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function _xt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function Cxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function vxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function xxt(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",30),r()()}}function bxt(e,o){e&1&&b(0,"tr",31)}function yxt(e,o){e&1&&b(0,"tr",32)}function Sxt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function wxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Pxt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function Txt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Mxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function Dxt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function Ext(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function Ixt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function Oxt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function Axt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Fxt(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",30),r()()}}function kxt(e,o){e&1&&b(0,"tr",31)}function Bxt(e,o){e&1&&b(0,"tr",32)}var um=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"],this.pristine=!0}ngOnInit(){this.chargeData=this.loanProductsTemplate.chargeOptions,this.overdueChargeData=this.loanProductsTemplate.penaltyOptions?this.loanProductsTemplate.penaltyOptions.filter(t=>t.chargeTimeType.code==="chargeTimeType.overdueInstallment"):[],this.chargesDataSource=this.loanProductsTemplate.charges||[],this.pristine=!0,this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[]),this.multiDisburseLoan.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value="",this.pristine=!1}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get loanProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-charges-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate",currencyCode:"currencyCode",multiDisburseLoan:"multiDisburseLoan"},decls:83,vars:46,consts:[["charge",""],["chargesTable",""],["overdueCharge",""],["overdueChargesTable",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"flex-98"],[1,"mat-h3"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"mat-form-field",5)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,pxt,2,2,"mat-option",6,Pe),p(9,"chargesFilter"),r()(),l(10,"div",7)(11,"button",8),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",9),c(13),p(14,"translate"),r()(),l(15,"table",10,1),p(17,"chargesPenaltyFilter"),X(18,11),F(19,mxt,3,3,"th",12)(20,dxt,2,1,"td",13),Z(),X(21,14),F(22,uxt,3,3,"th",12)(23,fxt,3,4,"td",13),Z(),X(24,15),F(25,hxt,3,3,"th",12)(26,gxt,3,3,"td",13),Z(),X(27,16),F(28,_xt,3,3,"th",12)(29,Cxt,3,4,"td",13),Z(),X(30,17),F(31,vxt,3,3,"th",12)(32,xxt,3,0,"td",13),Z(),F(33,bxt,1,0,"tr",18)(34,yxt,1,0,"tr",19),r(),b(35,"mat-divider",20),l(36,"div",20)(37,"h3",21),c(38),p(39,"translate"),r()(),l(40,"mat-form-field",5)(41,"mat-label"),c(42),p(43,"translate"),r(),l(44,"mat-select",null,2),Se(46,Sxt,2,2,"mat-option",6,Pe),p(48,"chargesFilter"),r()(),l(49,"div",7)(50,"button",8),R("click",function(){V(s);let u=ve(45);return q(i.addCharge(u))}),b(51,"fa-icon",9),c(52),p(53,"translate"),r()(),l(54,"table",10,3),p(56,"chargesPenaltyFilter"),X(57,11),F(58,wxt,3,3,"th",12)(59,Pxt,2,1,"td",13),Z(),X(60,14),F(61,Txt,3,3,"th",12)(62,Mxt,3,4,"td",13),Z(),X(63,15),F(64,Dxt,3,3,"th",12)(65,Ext,3,3,"td",13),Z(),X(66,16),F(67,Ixt,3,3,"th",12)(68,Oxt,3,4,"td",13),Z(),X(69,17),F(70,Axt,3,3,"th",12)(71,Fxt,3,0,"td",13),Z(),F(72,kxt,1,0,"tr",18)(73,Bxt,1,0,"tr",19),r()(),l(74,"div",22)(75,"button",23),b(76,"fa-icon",24),c(77),p(78,"translate"),r(),l(79,"button",25),c(80),p(81,"translate"),b(82,"fa-icon",26),r()()}if(n&2){let s=ve(6),d=ve(16),u=ve(45),f=ve(55);a(3),h(m(4,17,"labels.inputs.Charge")),a(4),we($t(9,19,i.chargeData,i.chargesDataSource,i.currencyCode.value,i.multiDisburseLoan.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,24,"labels.buttons.Add")," "),a(2),g("dataSource",Ft(17,26,i.chargesDataSource,!1))("hidden",d.dataSource.length===0),a(18),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),h(m(39,29,"labels.inputs.Overdue Charges")),a(4),h(m(43,31,"labels.inputs.Overdue Charge")),a(4),we(yr(48,33,i.overdueChargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!u.value),a(2),v(" ",m(53,37,"labels.buttons.Add")," "),a(2),g("dataSource",Ft(56,39,i.chargesDataSource,!0))("hidden",f.dataSource.length===0),a(18),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(78,42,"labels.buttons.Previous")," "),a(3),v(" ",m(81,44,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,Ri,qi,Ji,he,ki,ac,$g,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function Rxt(e,o){if(e&1&&(l(0,"th",13),c(1),p(2,"translate"),r()),e&2){let t=w(2);a(),h(m(2,1,"labels.inputs."+t.textField))}}function Nxt(e,o){if(e&1&&(l(0,"td",14),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.value.name," ")}}function Lxt(e,o){e&1&&(l(0,"th",13),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.GL Account Name or Code")))}function Vxt(e,o){if(e&1&&(l(0,"td",14),c(1),r()),e&2){let t=o.$implicit;a(),le("(",t.glAccount.glCode,") ",t.glAccount.name)}}function qxt(e,o){e&1&&(l(0,"th",13),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function zxt(e,o){if(e&1){let t=Y();l(0,"td",14)(1,"button",15),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w(2);return q(u.edit(s,d))}),b(2,"fa-icon",16),r(),l(3,"button",17),R("click",function(){let i=V(t).index,s=w(2);return q(s.delete(i))}),b(4,"fa-icon",18),r()()}}function Hxt(e,o){e&1&&b(0,"tr",19)}function Gxt(e,o){e&1&&b(0,"tr",20)}function jxt(e,o){if(e&1&&(l(0,"table",5),X(1,6),F(2,Rxt,3,3,"th",7)(3,Nxt,2,1,"td",8),Z(),X(4,9),F(5,Lxt,3,3,"th",7)(6,Vxt,2,2,"td",8),Z(),X(7,10),F(8,qxt,3,3,"th",7)(9,zxt,5,0,"td",8),Z(),F(10,Hxt,1,0,"tr",11)(11,Gxt,1,0,"tr",12),r()),e&2){let t=w();g("dataSource",t.tableData),a(10),g("matHeaderRowDef",t.tableDisplayedColumns),a(),g("matRowDefColumns",t.tableDisplayedColumns)}}var Yy=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.allowAddAccountingMapping=!0,this.accountingMappingOptions=[],this.currentFormValues=[],this.formChangeEvent=new bi,this.tableData=[],this.tableDisplayedColumns=["codeValueId","glAccountId","actions"]}ngOnInit(){this.tableData=this.formArray?.value||[],this.sendParentData()}add(){if(this.currentFormValues=[],this.formType=="ChargeOffReasonExpense"&&(this.allowAddAccountingMapping=!0,this.tableData.forEach(i=>this.currentFormValues.push(i.chargeOffReasonCodeValueId)),this.accountingMappingOptions.length==this.currentFormValues.length)){this.allowAddAccountingMapping=!1;return}let t=qt(at({},this.getData(this.formType)),{pristine:!1});this.dialog.open(an,{data:t}).afterClosed().subscribe(i=>{if(i.data){if(["ChargeOffReasonExpense","WriteOffReasonToExpense"].includes(this.formType)){let s={value:this.getValueData(i.data.value.chargeOffReasonCodeValueId),glAccount:this.getGlAccountData(i.data.value.expenseAccountId)};this.addTableData(s)}else if(["BuydownFeeClassificationToIncome","CapitalizedIncomeClassificationToIncome"].includes(this.formType)){let s={value:this.getValueData(i.data.value.valueId),glAccount:this.getGlAccountData(i.data.value.glAccountId)};this.addTableData(s)}this.sendParentData(),this.formType=="ChargeOffReasonExpense"&&(this.allowAddAccountingMapping=this.tableData.length{i.delete&&(this.tableData=this.tableData.filter((s,d)=>d!==t),this.sendParentData())})}edit(t,n){let i=qt(at({},this.getData(this.formType,t)),{pristine:!1,layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u;["ChargeOffReasonExpense","WriteOffReasonToExpense"].includes(this.formType)?u={value:this.getValueData(d.data.value.chargeOffReasonCodeValueId),glAccount:this.getGlAccountData(d.data.value.expenseAccountId)}:["BuydownFeeClassificationToIncome","CapitalizedIncomeClassificationToIncome"].includes(this.formType)?u={value:this.getValueData(d.data.value.valueId),glAccount:this.getGlAccountData(d.data.value.glAccountId)}:this.formType==="PaymentFundSource"?u={value:this.getValueData(d.data.paymentTypeId),glAccount:this.getGlAccountData(d.data.fundSourceAccountId)}:this.formType==="FeesIncome"?u={value:this.getValueData(d.data.chargeId),glAccount:this.getGlAccountData(d.data.incomeAccountId)}:this.formType==="PenaltyIncome"&&(u={value:this.getValueData(d.data.chargeId),glAccount:this.getGlAccountData(d.data.incomeAccountId)}),this.updateTableData(u,n),this.sendParentData()}})}sendParentData(){let t={formType:this.formType,values:this.tableData};this.formChangeEvent.emit(t)}getData(t,n){switch(t){case"PaymentFundSource":return{title:"Configure Fund Sources for Payment Channels",formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:"Map Fees to Income Accounts",formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:"Map Penalties to Specific Income Accounts",formfields:this.getPenaltyIncomeFormfields(n)};case"ChargeOffReasonExpense":return{title:"Map Charge-off reasons to Expense accounts",formfields:this.getChargeOffReasonExpenseFormfields(n)};case"BuydownFeeClassificationToIncome":return{title:"Buydown Fee classifications to Income accounts",formfields:this.getClassificationIncomeFormfields(n)};case"CapitalizedIncomeClassificationToIncome":return{title:"Capitalized Income classifications to Income accounts",formfields:this.getClassificationIncomeFormfields(n)};case"WriteOffReasonToExpense":return{title:"Map Write-off reasons to Expense accounts",formfields:this.getChargeOffReasonExpenseFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:"Payment Type",value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:"Fund Source",value:t?t.fundSourceAccountId:this.assetAccountData[0].id,options:{label:"name",value:"id",data:this.assetAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Fees",value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAndLiabilityAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAndLiabilityAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Penalty",value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getChargeOffReasonExpenseFormfields(t){let n=this.accountingMappingOptions.filter(s=>!this.currentFormValues.includes(s.id));return[new $i({controlName:"chargeOffReasonCodeValueId",label:"Charge-off reason",value:t?t.value.id:n[0].id,options:{label:"name",value:"id",data:n},required:!0,order:1}),new $i({controlName:"expenseAccountId",label:"Expense Account",value:t?t.glAccount.id:this.expenseAccountData[0].id,options:{label:"name",value:"id",data:this.expenseAccountData},required:!0,order:2})]}getClassificationIncomeFormfields(t){let n=this.accountingMappingOptions.filter(s=>!this.currentFormValues.includes(s.id));return[new $i({controlName:"valueId",label:"Classification",value:t?t.value.id:n[0].id,options:{label:"name",value:"id",data:n},required:!0,order:1}),new $i({controlName:"glAccountId",label:"Income Account",value:t?t.glAccount.id:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getValueData(t){return this.accountingMappingOptions.find(n=>n.id===t)}getGlAccountData(t){let n=[this.incomeAccountData,this.expenseAccountData,this.assetAccountData,this.liabilityAccountData];for(let i of n)if(i){let s=i.find(d=>d.id===t);if(s)return s}return null}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-advanced-accounting-mapping-rule"]],inputs:{formType:"formType",formArray:"formArray",textHeading:"textHeading",textField:"textField",allowAddAccountingMapping:"allowAddAccountingMapping",accountingMappingOptions:"accountingMappingOptions",chargeData:"chargeData",penaltyData:"penaltyData",paymentTypeData:"paymentTypeData",assetAccountData:"assetAccountData",incomeAccountData:"incomeAccountData",expenseAccountData:"expenseAccountData",liabilityAccountData:"liabilityAccountData",incomeAndLiabilityAccountData:"incomeAndLiabilityAccountData",assetAndLiabilityAccountData:"assetAndLiabilityAccountData"},outputs:{formChangeEvent:"formChangeEvent"},decls:10,vars:9,consts:[[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-33"],[1,"flex-63"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],["matColumnDef","codeValueId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","glAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h4",1),c(2),p(3,"translateKey"),r(),l(4,"div",2)(5,"button",3),R("click",function(){return i.add()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r()(),E(9,jxt,12,3,"table",5),r()),n&2&&(a(2),v(" ",Ft(3,4,i.textHeading,"heading")," "),a(3),g("disabled",!i.allowAddAccountingMapping),a(2),v(" ",m(8,7,"labels.buttons.Add")," "),a(2),I(i.tableData.length!==0?9:-1))},dependencies:[ue,fe,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,he,ki],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();function $xt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function Uxt(e,o){e&1&&(l(0,"mat-checkbox",11),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Enable Accrual Activity Posting on Installment Due Date")))}function Wxt(e,o){if(e&1&&(l(0,"div",5),b(1,"mifosx-gl-account-selector",13)(2,"mifosx-gl-account-selector",13)(3,"mifosx-gl-account-selector",13),r()),e&2){let t=w(2);a(),g("inputFormControl",t.loanProductAccountingForm.controls.receivableInterestAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Interest Receivable"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.receivableFeeAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.receivablePenaltyAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function Qxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromCapitalizationAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income capitalization")}}function Yxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromBuyDownAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Buy down fees")}}function Jxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.buyDownExpenseAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Buy down fee Expense")}}function Kxt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",13),e&2){let t=w(2);g("inputFormControl",t.loanProductAccountingForm.controls.deferredIncomeLiabilityAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Deferred income")}}function Xxt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function Zxt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function ebt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function tbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.assetAccountData,"id","name")," ")}}function ibt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function nbt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",36),r()()}}function obt(e,o){e&1&&b(0,"tr",37)}function abt(e,o){e&1&&b(0,"tr",38)}function rbt(e,o){if(e&1&&(l(0,"table",20),X(1,24),F(2,Xxt,3,3,"th",25)(3,Zxt,3,6,"td",26),Z(),X(4,27),F(5,ebt,3,3,"th",25)(6,tbt,3,6,"td",26),Z(),X(7,28),F(8,ibt,3,3,"th",25)(9,nbt,5,0,"td",26),Z(),F(10,obt,1,0,"tr",29)(11,abt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function lbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function sbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function cbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function pbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAndLiabilityAccountData,"id","name")," ")}}function mbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function dbt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",36),r()()}}function ubt(e,o){e&1&&b(0,"tr",37)}function fbt(e,o){e&1&&b(0,"tr",38)}function hbt(e,o){if(e&1&&(l(0,"table",20),X(1,39),F(2,lbt,3,3,"th",25)(3,sbt,3,6,"td",26),Z(),X(4,40),F(5,cbt,3,3,"th",25)(6,pbt,3,6,"td",26),Z(),X(7,28),F(8,mbt,3,3,"th",25)(9,dbt,5,0,"td",26),Z(),F(10,ubt,1,0,"tr",29)(11,fbt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function gbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function _bt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function Cbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function vbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function xbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function bbt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",36),r()()}}function ybt(e,o){e&1&&b(0,"tr",37)}function Sbt(e,o){e&1&&b(0,"tr",38)}function wbt(e,o){if(e&1&&(l(0,"table",20),X(1,39),F(2,gbt,3,3,"th",25)(3,_bt,3,6,"td",26),Z(),X(4,40),F(5,Cbt,3,3,"th",25)(6,vbt,3,6,"td",26),Z(),X(7,28),F(8,xbt,3,3,"th",25)(9,bbt,5,0,"td",26),Z(),F(10,ybt,1,0,"tr",29)(11,Sbt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function Pbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge-off reason")))}function Tbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.chargeOffReasonCodeValueId,n.chargeOffReasonOptions,"id","name")," ")}}function Mbt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function Dbt(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.expenseAccountId,n.expenseAccountData,"id","name")," ")}}function Ebt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Ibt(e,o){if(e&1){let t=Y();l(0,"td",32)(1,"button",33),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("ChargeOffReasonExpense",s.chargeOffReasonToExpenseAccountMappings,i))}),b(2,"fa-icon",34),r(),l(3,"button",35),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete("ChargeOffReasonExpense",s.chargeOffReasonToExpenseAccountMappings,i))}),b(4,"fa-icon",36),r()()}}function Obt(e,o){e&1&&b(0,"tr",37)}function Abt(e,o){e&1&&b(0,"tr",38)}function Fbt(e,o){if(e&1&&(l(0,"table",20),X(1,41),F(2,Pbt,3,3,"th",25)(3,Tbt,3,6,"td",26),Z(),X(4,42),F(5,Mbt,3,3,"th",25)(6,Dbt,3,6,"td",26),Z(),X(7,28),F(8,Ebt,3,3,"th",25)(9,Ibt,5,0,"td",26),Z(),F(10,Obt,1,0,"tr",29)(11,Abt,1,0,"tr",30),r()),e&2){let t=w(3);g("dataSource",t.chargeOffReasonToExpenseAccountMappings.value),a(10),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function kbt(e,o){if(e&1){let t=Y();l(0,"div",5)(1,"h4",16),c(2),p(3,"translate"),r(),l(4,"div",17)(5,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(6,"fa-icon",19),c(7),p(8,"translate"),r()(),E(9,rbt,12,3,"table",20),l(10,"h4",16),c(11),p(12,"translate"),r(),l(13,"div",17)(14,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(15,"fa-icon",19),c(16),p(17,"translate"),r()(),E(18,hbt,12,3,"table",20),l(19,"h4",16),c(20),p(21,"translate"),r(),l(22,"div",17)(23,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(24,"fa-icon",19),c(25),p(26,"translate"),r()(),E(27,wbt,12,3,"table",20),l(28,"h4",16),c(29),p(30,"translate"),r(),l(31,"div",17)(32,"button",21),R("click",function(){V(t);let i=w(2);return q(i.add("ChargeOffReasonExpense",i.chargeOffReasonToExpenseAccountMappings))}),b(33,"fa-icon",19),c(34),p(35,"translate"),r()(),E(36,Fbt,12,3,"table",20),l(37,"mifosx-advanced-accounting-mapping-rule",22),R("formChangeEvent",function(i){V(t);let s=w(2);return q(s.formChangeEvent(i))}),r(),l(38,"mifosx-advanced-accounting-mapping-rule",22),R("formChangeEvent",function(i){V(t);let s=w(2);return q(s.formChangeEvent(i))}),r(),l(39,"mifosx-advanced-accounting-mapping-rule",23),R("formChangeEvent",function(i){V(t);let s=w(2);return q(s.formChangeEvent(i))}),r()()}if(e&2){let t=w(2);a(2),v(" ",m(3,31,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(8,33,"labels.buttons.Add")," "),a(2),I(t.paymentChannelToFundSourceMappings.value.length!==0?9:-1),a(2),h(m(12,35,"labels.heading.Map Fees to Specific Income Accounts")),a(5),v(" ",m(17,37,"labels.buttons.Add")," "),a(2),I(t.feeToIncomeAccountMappings.value.length!==0?18:-1),a(2),v(" ",m(21,39,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(5),v(" ",m(26,41,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?27:-1),a(2),v(" ",m(30,43,"labels.heading.Map Charge-off reasons to Expense accounts")," "),a(3),g("disabled",!t.allowAddChargeOffReasonExpense),a(2),v(" ",m(35,45,"labels.buttons.Add")," "),a(2),I(t.chargeOffReasonToExpenseAccountMappings.value.length!==0?36:-1),a(),g("textField","Classification")("formType","BuydownFeeClassificationToIncome")("formArray",t.buydownfeeClassificationToIncomeAccountMappings)("textHeading","Buydown Fee classifications to Income accounts")("incomeAccountData",t.incomeAccountData)("accountingMappingOptions",t.buydownFeeClassificationOptions),a(),g("textField","Classification")("formType","CapitalizedIncomeClassificationToIncome")("formArray",t.capitalizedIncomeClassificationToIncomeAccountMappings)("textHeading","Capitalized Income classifications to Income accounts")("incomeAccountData",t.incomeAccountData)("accountingMappingOptions",t.capitalizedIncomeClassificationOptions),a(),g("textField","WriteOff Reason")("formType","WriteOffReasonToExpense")("formArray",t.writeOffReasonsToExpenseMappings)("textHeading","WriteOff reasons to Expense accounts")("expenseAccountData",t.expenseAccountData)("accountingMappingOptions",t.writeOffReasonOptions)}}function Bbt(e,o){if(e&1&&(l(0,"div",5),E(1,Uxt,3,3,"mat-checkbox",11),l(2,"h4",12),c(3),p(4,"translate"),p(5,"translate"),r(),b(6,"mifosx-gl-account-selector",13),l(7,"h4",12),c(8),p(9,"translate"),r(),b(10,"mifosx-gl-account-selector",13)(11,"mifosx-gl-account-selector",13),E(12,Wxt,4,12,"div",5),b(13,"mat-divider",4),l(14,"h4",12),c(15),p(16,"translate"),r(),b(17,"mifosx-gl-account-selector",13)(18,"mifosx-gl-account-selector",13)(19,"mifosx-gl-account-selector",13)(20,"mifosx-gl-account-selector",13)(21,"mifosx-gl-account-selector",13)(22,"mifosx-gl-account-selector",13)(23,"mifosx-gl-account-selector",13)(24,"mifosx-gl-account-selector",13)(25,"mifosx-gl-account-selector",13)(26,"mifosx-gl-account-selector",13),E(27,Qxt,1,4,"mifosx-gl-account-selector",13),E(28,Yxt,1,4,"mifosx-gl-account-selector",13),b(29,"mat-divider",4),l(30,"h4",12),c(31),p(32,"translate"),r(),b(33,"mifosx-gl-account-selector",13)(34,"mifosx-gl-account-selector",13)(35,"mifosx-gl-account-selector",13)(36,"mifosx-gl-account-selector",13),E(37,Jxt,1,4,"mifosx-gl-account-selector",13),b(38,"mat-divider",4),l(39,"h4",12),c(40),p(41,"translate"),r(),b(42,"mifosx-gl-account-selector",13),E(43,Kxt,1,4,"mifosx-gl-account-selector",13),b(44,"mat-divider",14),l(45,"mat-checkbox",15),c(46),p(47,"translate"),r(),E(48,kbt,40,47,"div",5),r()),e&2){let t=w();a(),I(t.isAccountingAccrualBased?1:-1),a(2),le(" ",m(4,86,"labels.heading.Assets")," / ",m(5,88,"labels.heading.Liabilities")," "),a(3),g("inputFormControl",t.loanProductAccountingForm.controls.fundSourceAccountId)("glAccountList",t.assetAndLiabilityAccountData)("required",!0)("inputLabel","Fund source"),a(2),h(m(9,90,"labels.heading.Assets")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.loanPortfolioAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Loan portfolio"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Transfer in suspense"),a(),I(t.loanProductAccountingForm.value.accountingRule===3||t.loanProductAccountingForm.value.accountingRule===4?12:-1),a(3),h(m(16,92,"labels.heading.Income")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.interestOnLoanAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Interest"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromRecoveryAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Recovery Repayments"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromChargeOffInterestAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from ChargeOff Interest"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromChargeOffFeesAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from ChargeOff Fees"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromChargeOffPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from ChargeOff Penalty"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromGoodwillCreditInterestAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Goodwill Credit Interest"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromGoodwillCreditFeesAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Goodwill Credit Fees"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.incomeFromGoodwillCreditPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from Goodwill Credit Penalty"),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.capitalizedIncome==null)&&t.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization?27:-1),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.enableBuyDownFee?28:-1),a(3),h(m(32,94,"labels.heading.Expenses")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.writeOffAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Losses written off"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.goodwillCreditAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Expenses from Goodwill Credit"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.chargeOffExpenseAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","ChargeOff Expense"),a(),g("inputFormControl",t.loanProductAccountingForm.controls.chargeOffFraudExpenseAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","ChargeOff Fraud Expense"),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.enableBuyDownFee&&(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee)?37:-1),a(3),h(m(41,96,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.loanProductAccountingForm.controls.overpaymentLiabilityAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Over payment liability"),a(),I(!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.capitalizedIncome==null)&&t.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization||!(t.deferredIncomeRecognition==null||t.deferredIncomeRecognition.buyDownFee==null)&&t.deferredIncomeRecognition.buyDownFee.enableBuyDownFee?43:-1),a(3),h(m(47,98,"labels.heading.Advanced Accounting Rules")),a(2),I(t.loanProductAccountingForm.value.advancedAccountingRules?48:-1)}}var fm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.capitalizedIncomeClassificationOptions=[],this.buydownFeeClassificationOptions=[],this.writeOffReasonOptions=[],this.currentFormValues=[],this.allowAddChargeOffReasonExpense=!0,this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.chargeOffReasonExpenseDisplayedColumns=["chargeOffReasonCodeValueId","expenseAccountId","actions"],this.createLoanProductAccountingForm(),this.setConditionalControls()}ngOnChanges(t){this.setDeferredIncomeRecognitionControls()}ngOnInit(){this.chargeData=this.loanProductsTemplate.chargeOptions||[],this.penaltyData=this.loanProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.loanProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.loanProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.loanProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.loanProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.loanProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.incomeAndLiabilityAccountData=this.incomeAccountData.concat(this.liabilityAccountData),this.assetAndLiabilityAccountData=this.loanProductsTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions||[],this.chargeOffReasonOptions=this.loanProductsTemplate.chargeOffReasonOptions||[],this.capitalizedIncomeClassificationOptions=this.loanProductsTemplate.capitalizedIncomeClassificationOptions||[],this.buydownFeeClassificationOptions=this.loanProductsTemplate.buydownFeeClassificationOptions||[],this.writeOffReasonOptions=this.loanProductsTemplate.writeOffReasonOptions||[],this.loanProductAccountingForm.patchValue({accountingRule:this.loanProductsTemplate.accountingRule.id});let t=this.loanProductsTemplate.accountingMappings;switch(this.setDeferredIncomeRecognitionControls(),this.loanProductsTemplate.accountingRule.id){case 3:case 4:this.loanProductAccountingForm.patchValue({receivableInterestAccountId:t.receivableInterestAccount.id,receivableFeeAccountId:t.receivableFeeAccount.id,receivablePenaltyAccountId:t.receivablePenaltyAccount.id}),this.loanProductAccountingForm.patchValue({enableAccrualActivityPosting:this.loanProductsTemplate.enableAccrualActivityPosting}),this.deferredIncomeRecognition&&(this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization&&this.loanProductAccountingForm.patchValue({deferredIncomeLiabilityAccountId:t.deferredIncomeLiabilityAccount.id,incomeFromCapitalizationAccountId:t.incomeFromCapitalizationAccount.id}),this.deferredIncomeRecognition.buyDownFee?.enableBuyDownFee&&(this.loanProductAccountingForm.patchValue({deferredIncomeLiabilityAccountId:t.deferredIncomeLiabilityAccount.id,incomeFromBuyDownAccountId:t.incomeFromBuyDownAccount.id}),this.deferredIncomeRecognition.buyDownFee?.merchantBuyDownFee&&this.loanProductAccountingForm.patchValue({buyDownExpenseAccountId:t.buyDownExpenseAccount?.id})));case 2:this.loanProductAccountingForm.patchValue({fundSourceAccountId:t.fundSourceAccount.id,loanPortfolioAccountId:t.loanPortfolioAccount.id,transfersInSuspenseAccountId:t.transfersInSuspenseAccount.id,interestOnLoanAccountId:t.interestOnLoanAccount.id,incomeFromFeeAccountId:t.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:t.incomeFromPenaltyAccount.id,incomeFromRecoveryAccountId:t.incomeFromRecoveryAccount.id,writeOffAccountId:t.writeOffAccount.id,goodwillCreditAccountId:t.goodwillCreditAccount?.id||null,overpaymentLiabilityAccountId:t.overpaymentLiabilityAccount.id,chargeOffFraudExpenseAccountId:t.chargeOffFraudExpenseAccount?t.chargeOffFraudExpenseAccount.id:"",chargeOffExpenseAccountId:t.chargeOffExpenseAccount?t.chargeOffExpenseAccount.id:"",incomeFromChargeOffPenaltyAccountId:t.incomeFromChargeOffPenaltyAccount?t.incomeFromChargeOffPenaltyAccount.id:"",incomeFromChargeOffFeesAccountId:t.incomeFromChargeOffFeesAccount?t.incomeFromChargeOffFeesAccount.id:"",incomeFromChargeOffInterestAccountId:t.incomeFromChargeOffInterestAccount?t.incomeFromChargeOffInterestAccount.id:"",incomeFromGoodwillCreditInterestAccountId:t.incomeFromGoodwillCreditInterestAccount?t.incomeFromGoodwillCreditInterestAccount.id:"",incomeFromGoodwillCreditFeesAccountId:t.incomeFromGoodwillCreditFeesAccount?t.incomeFromGoodwillCreditFeesAccount.id:"",incomeFromGoodwillCreditPenaltyAccountId:t.incomeFromGoodwillCreditPenaltyAccount?t.incomeFromGoodwillCreditPenaltyAccount.id:"",advancedAccountingRules:!!(this.loanProductsTemplate.paymentChannelToFundSourceMappings||this.loanProductsTemplate.feeToIncomeAccountMappings||this.loanProductsTemplate.penaltyToIncomeAccountMappings||this.loanProductsTemplate.chargeOffReasonToExpenseAccountMappings||this.loanProductsTemplate.buydownFeeClassificationToIncomeAccountMappings||this.loanProductsTemplate.capitalizedIncomeClassificationToIncomeAccountMappings||this.loanProductsTemplate.writeOffReasonsToExpenseMappings)}),this.loanProductAccountingForm.setControl("paymentChannelToFundSourceMappings",this.formBuilder.array((this.loanProductsTemplate.paymentChannelToFundSourceMappings||[]).map(n=>({paymentTypeId:n.paymentType.id,fundSourceAccountId:n.fundSourceAccount.id})))),this.loanProductAccountingForm.setControl("feeToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.feeToIncomeAccountMappings||[]).map(n=>({chargeId:n.charge.id,incomeAccountId:n.incomeAccount.id})))),this.loanProductAccountingForm.setControl("penaltyToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.penaltyToIncomeAccountMappings||[]).map(n=>({chargeId:n.charge.id,incomeAccountId:n.incomeAccount.id})))),this.loanProductAccountingForm.setControl("chargeOffReasonToExpenseAccountMappings",this.formBuilder.array((this.loanProductsTemplate.chargeOffReasonToExpenseAccountMappings||[]).map(n=>({chargeOffReasonCodeValueId:n.reasonCodeValue.id,expenseAccountId:n.expenseAccount.id})))),this.loanProductAccountingForm.setControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.buydownFeeClassificationToIncomeAccountMappings||[]).map(n=>({value:n.classificationCodeValue,glAccount:n.incomeAccount})))),this.loanProductAccountingForm.setControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array((this.loanProductsTemplate.capitalizedIncomeClassificationToIncomeAccountMappings||[]).map(n=>({value:n.classificationCodeValue,glAccount:n.incomeAccount})))),this.loanProductAccountingForm.setControl("writeOffReasonsToExpenseMappings",this.formBuilder.array((this.loanProductsTemplate.writeOffReasonsToExpenseMappings||[]).map(n=>({value:n.reasonCodeValue,glAccount:n.expenseAccount}))))}}createLoanProductAccountingForm(){this.loanProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}setConditionalControls(){this.loanProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t>=2&&t<=4?(this.loanProductAccountingForm.addControl("fundSourceAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("loanPortfolioAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("interestOnLoanAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromRecoveryAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("writeOffAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("goodwillCreditAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("overpaymentLiabilityAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),this.loanProductAccountingForm.addControl("chargeOffFraudExpenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("chargeOffExpenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromChargeOffPenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromChargeOffFeesAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromChargeOffInterestAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromGoodwillCreditInterestAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromGoodwillCreditFeesAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromGoodwillCreditPenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.loanProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("chargeOffReasonToExpenseAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.addControl("writeOffReasonsToExpenseMappings",this.formBuilder.array([]))):(this.loanProductAccountingForm.setControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("penaltyToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("chargeOffReasonToExpenseAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array([])),this.loanProductAccountingForm.setControl("writeOffReasonsToExpenseMappings",this.formBuilder.array([])))})):(this.loanProductAccountingForm.removeControl("fundSourceAccountId"),this.loanProductAccountingForm.removeControl("loanPortfolioAccountId"),this.loanProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.loanProductAccountingForm.removeControl("interestOnLoanAccountId"),this.loanProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.loanProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.loanProductAccountingForm.removeControl("incomeFromRecoveryAccountId"),this.loanProductAccountingForm.removeControl("writeOffAccountId"),this.loanProductAccountingForm.removeControl("goodwillCreditAccountId"),this.loanProductAccountingForm.removeControl("overpaymentLiabilityAccountId"),this.loanProductAccountingForm.removeControl("advancedAccountingRules"),this.loanProductAccountingForm.removeControl("chargeOffExpenseAccountId"),this.loanProductAccountingForm.removeControl("chargeOffFraudExpenseAccountId"),this.loanProductAccountingForm.removeControl("incomeFromChargeOffPenaltyAccountId"),this.loanProductAccountingForm.removeControl("incomeFromChargeOffFeesAccountId"),this.loanProductAccountingForm.removeControl("incomeFromChargeOffInterestAccountId"),this.loanProductAccountingForm.removeControl("incomeFromGoodwillCreditInterestAccountId"),this.loanProductAccountingForm.removeControl("incomeFromGoodwillCreditFeesAccountId"),this.loanProductAccountingForm.removeControl("incomeFromGoodwillCreditPenaltyAccountId")),t===3||t===4?(this.loanProductAccountingForm.addControl("receivableInterestAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("receivableFeeAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("receivablePenaltyAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("enableAccrualActivityPosting",new it(!1))):(this.loanProductAccountingForm.removeControl("receivableInterestAccountId"),this.loanProductAccountingForm.removeControl("receivableFeeAccountId"),this.loanProductAccountingForm.removeControl("receivablePenaltyAccountId"),this.loanProductAccountingForm.removeControl("enableAccrualActivityPosting"))})}get paymentChannelToFundSourceMappings(){return this.loanProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.loanProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.loanProductAccountingForm.get("penaltyToIncomeAccountMappings")}get chargeOffReasonToExpenseAccountMappings(){return this.loanProductAccountingForm.get("chargeOffReasonToExpenseAccountMappings")}get buydownfeeClassificationToIncomeAccountMappings(){return this.loanProductAccountingForm.get("buydownfeeClassificationToIncomeAccountMappings")}get capitalizedIncomeClassificationToIncomeAccountMappings(){return this.loanProductAccountingForm.get("capitalizedIncomeClassificationToIncomeAccountMappings")}get writeOffReasonsToExpenseMappings(){return this.loanProductAccountingForm.get("writeOffReasonsToExpenseMappings")}setLoanProductAccountingFormDirty(){this.loanProductAccountingForm.pristine&&this.loanProductAccountingForm.markAsDirty()}add(t,n){if(this.currentFormValues=[],t=="ChargeOffReasonExpense"&&(this.allowAddChargeOffReasonExpense=!0,n.value.forEach(d=>this.currentFormValues.push(d.chargeOffReasonCodeValueId)),this.chargeOffReasonOptions.length==this.currentFormValues.length)){this.allowAddChargeOffReasonExpense=!1;return}let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&(n.push(d.data),t=="ChargeOffReasonExpense"&&(this.allowAddChargeOffReasonExpense=n.value.length{u.data&&(n.at(i).patchValue(u.data.value),this.setLoanProductAccountingFormDirty())})}delete(t,n,i){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(d=>{d.delete&&(n.removeAt(i),t=="ChargeOffReasonExpense"&&(this.allowAddChargeOffReasonExpense=n.value.length!this.currentFormValues.includes(s.id));return[new $i({controlName:"chargeOffReasonCodeValueId",label:"Charge-off reason",value:t?t.chargeOffReasonCodeValueId:n[0].id,options:{label:"name",value:"id",data:n},required:!0,order:1}),new $i({controlName:"expenseAccountId",label:"Expense Account",value:t?t.expenseAccountId:this.expenseAccountData[0].id,options:{label:"name",value:"id",data:this.expenseAccountData},required:!0,order:2})]}get isAccountingAccrualBased(){let t=this.loanProductAccountingForm.value.accountingRule;return t===3||t===4}get loanProductAccounting(){return this.loanProductAccountingForm.value}setDeferredIncomeRecognitionControls(){this.isAccountingAccrualBased&&this.deferredIncomeRecognition&&(this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization||this.deferredIncomeRecognition.buyDownFee?.enableBuyDownFee?this.loanProductAccountingForm.addControl("deferredIncomeLiabilityAccountId",new it("",ce.required)):this.loanProductAccountingForm.removeControl("deferredIncomeLiabilityAccountId"),this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization?this.loanProductAccountingForm.addControl("incomeFromCapitalizationAccountId",new it("",ce.required)):this.loanProductAccountingForm.removeControl("incomeFromCapitalizationAccountId"),this.deferredIncomeRecognition.buyDownFee?.enableBuyDownFee?(this.deferredIncomeRecognition.buyDownFee?.merchantBuyDownFee&&this.loanProductAccountingForm.addControl("buyDownExpenseAccountId",new it("",ce.required)),this.loanProductAccountingForm.addControl("incomeFromBuyDownAccountId",new it("",ce.required))):(this.loanProductAccountingForm.removeControl("buyDownExpenseAccountId"),this.loanProductAccountingForm.removeControl("incomeFromBuyDownAccountId")))}formChangeEvent(t){t.formType==="BuydownFeeClassificationToIncome"?this.loanProductAccountingForm.setControl("buydownfeeClassificationToIncomeAccountMappings",this.formBuilder.array((t.values||[]).map(n=>({classificationCodeValueId:n.value.id,incomeAccountId:n.glAccount.id})))):t.formType==="CapitalizedIncomeClassificationToIncome"?this.loanProductAccountingForm.setControl("capitalizedIncomeClassificationToIncomeAccountMappings",this.formBuilder.array((t.values||[]).map(n=>({classificationCodeValueId:n.value.id,incomeAccountId:n.glAccount.id})))):t.formType==="WriteOffReasonToExpense"&&this.loanProductAccountingForm.setControl("writeOffReasonsToExpenseMappings",this.formBuilder.array((t.values||[]).map(n=>({writeOffReasonCodeValueId:n.value.id,expenseAccountId:n.glAccount.id})))),this.setLoanProductAccountingFormDirty()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-accounting-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate",accountingRuleData:"accountingRuleData",loanProductFormValid:"loanProductFormValid",deferredIncomeRecognition:"deferredIncomeRecognition"},features:[Uo],decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-lt-md-column","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"layout-row","align-center","margin-t","responsive-column","gap-2percent"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["formControlName","enableAccrualActivityPosting",1,"flex-73"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],["fxFlex","flex-98"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"mat-h4","flex-33"],[1,"flex-63"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],[1,"flex-100","m-t-10",3,"formChangeEvent","textField","formType","formArray","textHeading","incomeAccountData","accountingMappingOptions"],[1,"flex-100","m-t-10",3,"formChangeEvent","textField","formType","formArray","textHeading","expenseAccountData","accountingMappingOptions"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"],["matColumnDef","chargeOffReasonCodeValueId"],["matColumnDef","expenseAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,$xt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,Bbt,49,100,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.loanProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.loanProductAccountingForm.value.accountingRule>=2&&i.loanProductAccountingForm.value.accountingRule<=4?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.loanProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,Yy,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();function Rbt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}var hm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.supportedInterestRefundTypes=new bi,this.createLoanProductInterestRefundForm(),this.setConditionalControls()}ngOnInit(){this.supportedInterestRefundTypesOptions=this.loanProductsTemplate.supportedInterestRefundTypesOptions;let t=this.loanProductsTemplate.supportedInterestRefundTypes,n=this.mapStringEnumOptionToIdList(t);this.loanProductInterestRefundForm.patchValue({supportedInterestRefundTypes:n}),this.supportedInterestRefundTypes.emit(t)}createLoanProductInterestRefundForm(){this.loanProductInterestRefundForm=this.formBuilder.group({supportedInterestRefundTypes:""})}setConditionalControls(){this.loanProductInterestRefundForm.get("supportedInterestRefundTypes").valueChanges.subscribe(t=>{this.supportedInterestRefundTypes.emit(this.mapIdToStringEnumOptionList(t,this.loanProductsTemplate.supportedInterestRefundTypesOptions))})}mapStringEnumOptionToIdList(t){return t?t.map(n=>n.id):[]}mapIdToStringEnumOptionList(t,n){return n.filter(i=>t.includes(i.id))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-interest-refund-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate"},outputs:{supportedInterestRefundTypes:"supportedInterestRefundTypes"},decls:10,vars:8,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["multiple","","formControlName","supportedInterestRefundTypes",3,"matTooltip"],[3,"value"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,Rbt,3,5,"mat-option",4,Pe),r()()()()),n&2&&(g("formGroup",i.loanProductInterestRefundForm),a(4),h(m(5,4,"labels.inputs.Supported Interest Refund Types")),a(2),g("matTooltip",Le(m(7,6,"tooltips.Refund transactions where interest refund will automatically be calculated"))),a(2),we(i.supportedInterestRefundTypesOptions))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Fe,Be,gt,ft,si,he,ki],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var KK=(()=>{class e{static{this.DEFAULT_TRANSACTION={id:1,value:"Default",code:"DEFAULT"}}}return e})();var gm=(()=>{class e{buildAdvancedCreditAllocationList(t){let n=[],i=t.creditAllocationTransactionTypes,s=t.creditAllocationAllocationTypes;return t.creditAllocation&&t.creditAllocation.forEach(d=>{n.push({transaction:this.getItemByCode(d.transactionType,i),creditAllocationOrder:this.buildCurrentCreditAllocationOrder(d.creditAllocationOrder,s)})}),n}buildAdvancedPaymentAllocationList(t){let n=[],i=t.advancedPaymentAllocationTransactionTypes,s=t.advancedPaymentAllocationTypes,d=t.advancedPaymentAllocationFutureInstallmentAllocationRules;return t.paymentAllocation&&t.paymentAllocation.forEach(u=>{n.push({transaction:this.getItemByCode(u.transactionType,i),paymentAllocationOrder:this.buildCurrentPaymentAllocationOrder(u.paymentAllocationOrder,s),futureInstallmentAllocationRule:this.getItemByCode(u.futureInstallmentAllocationRule,d),futureInstallmentAllocationRules:d})}),n.length===0&&n.push({transaction:KK.DEFAULT_TRANSACTION,paymentAllocationOrder:this.buildPaymentAllocationTransactionOrder(!0,[],t.advancedPaymentAllocationTypes),futureInstallmentAllocationRule:t.advancedPaymentAllocationFutureInstallmentAllocationRules[0],futureInstallmentAllocationRules:t.advancedPaymentAllocationFutureInstallmentAllocationRules}),n}buildAdvancedPaymentAllocation(t,n,i,s){return{transaction:n,paymentAllocationOrder:this.buildPaymentAllocationTransactionOrder(t,i,i),futureInstallmentAllocationRule:s[0],futureInstallmentAllocationRules:s}}buildAdvancedCreditAllocation(t,n){return{transaction:t,creditAllocationOrder:this.buildCreditAllocationTransactionOrder(!0,n,n)}}buildPaymentAllocationTransactionOrder(t,n,i){let s=[];return t?i:(n.forEach(d=>{i.forEach(u=>{d.id===u.id&&s.push(u)})}),s)}buildCreditAllocationTransactionOrder(t,n,i){let s=[];return t?i:(n.forEach(d=>{i.forEach(u=>{d.id===u.id&&s.push(u)})}),s)}buildPaymentAllocations(t){let n=[];return t.forEach(i=>{i.paymentAllocationOrder&&n.push({transactionType:i.transaction.code,paymentAllocationOrder:this.buildPaymentAllocationOrder(i.paymentAllocationOrder),futureInstallmentAllocationRule:i.futureInstallmentAllocationRule.code})}),n}buildCreditAllocations(t){let n=[];return t.forEach(i=>{n.push({transactionType:i.transaction.code,creditAllocationOrder:this.buildCreditAllocationOrder(i.creditAllocationOrder)})}),n}buildPaymentAllocationOrder(t){let n=[];return t.forEach((i,s)=>{n.push({order:s+1,paymentAllocationRule:i.code})}),n}buildCreditAllocationOrder(t){let n=[];return t.forEach((i,s)=>{n.push({order:s+1,creditAllocationRule:i.code})}),n}buildCurrentPaymentAllocationOrder(t,n){let i=[];return t.forEach(s=>{i.push(this.getItemByCode(s.paymentAllocationRule,n))}),i}buildCurrentCreditAllocationOrder(t,n){let i=[];return t.forEach(s=>{i.push(this.getItemByCode(s.creditAllocationRule,n))}),i}getItemByCode(t,n){let i;return n.forEach(s=>{s.code===t&&(i=s)}),i}isDefault(t){return t.code===KK.DEFAULT_TRANSACTION.code}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Nbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Lbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",6),Se(5,Nbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Income capitalization calculation type")),a(3),we(t.capitalizedIncomeCalculationTypeOptions)}}function Vbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function qbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",8),Se(5,Vbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Income capitalization strategy")),a(3),we(t.capitalizedIncomeStrategyOptions)}}function zbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Hbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",9),Se(5,zbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Income type")),a(3),we(t.capitalizedIncomeTypeOptions)}}function Gbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function jbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Gbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Buy down fee calculation type")),a(3),we(t.buyDownFeeCalculationTypeOptions)}}function $bt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Ubt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,$bt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Buy down fee strategy")),a(3),we(t.buyDownFeeStrategyOptions)}}function Wbt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function Qbt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",12),Se(5,Wbt,3,5,"mat-option",7,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Buy down fee income type")),a(3),we(t.buyDownFeeIncomeTypeOptions)}}function Ybt(e,o){e&1&&(l(0,"mat-checkbox",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Merchant Buy down fee")," "))}var _m=(()=>{class e{constructor(){this.formBuilder=T(nt),this.setViewChildForm=new bi,this.enableIncomeCapitalization=this.deferredIncomeRecognition!=null?this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization:!1,this.enableBuyDownFee=this.deferredIncomeRecognition!=null?this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee:!1,this.createCapitalizedIncomeForm(),this.setConditionalControls()}createCapitalizedIncomeForm(){this.loanDeferredIncomeRecognitionForm=this.formBuilder.group({enableIncomeCapitalization:[this.enableIncomeCapitalization],enableBuyDownFee:[this.enableBuyDownFee]}),this.enableIncomeCapitalization&&(this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeCalculationType",[this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeStrategy",[this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeType",[this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType,ce.required])),this.enableBuyDownFee&&(this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeCalculationType",[this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeStrategy",[this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeIncomeType",[this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,ce.required]),this.loanDeferredIncomeRecognitionForm.addControl("merchantBuyDownFee",[this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee]))}ngOnInit(){this.enableIncomeCapitalization=this.deferredIncomeRecognition.capitalizedIncome?this.deferredIncomeRecognition.capitalizedIncome?.enableIncomeCapitalization:!1,this.enableBuyDownFee=this.deferredIncomeRecognition.buyDownFee?this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee:!1,this.enableIncomeCapitalization&&this.loanDeferredIncomeRecognitionForm.patchValue({enableIncomeCapitalization:this.enableIncomeCapitalization,capitalizedIncomeCalculationType:this.deferredIncomeRecognition.capitalizedIncome?.capitalizedIncomeCalculationType,capitalizedIncomeStrategy:this.deferredIncomeRecognition.capitalizedIncome?.capitalizedIncomeStrategy,capitalizedIncomeType:this.deferredIncomeRecognition.capitalizedIncome?.capitalizedIncomeType}),this.enableBuyDownFee&&this.loanDeferredIncomeRecognitionForm.patchValue({enableBuyDownFee:this.enableBuyDownFee,buyDownFeeCalculationType:this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,buyDownFeeStrategy:this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,buyDownFeeIncomeType:this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,merchantBuyDownFee:this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee}),this.setViewChildForm.emit(this.loanDeferredIncomeRecognitionForm)}setConditionalControls(){this.loanDeferredIncomeRecognitionForm.get("enableIncomeCapitalization").valueChanges.subscribe(t=>{if(this.enableIncomeCapitalization=t,this.enableIncomeCapitalization){let n=!(this.deferredIncomeRecognition.capitalizedIncome&&this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType)||this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType==""?this.capitalizedIncomeCalculationTypeOptions[0].id:this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType;this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeCalculationType",new it(n,ce.required));let i=!this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy||this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy==""?this.capitalizedIncomeStrategyOptions[0].id:this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy;this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeStrategy",new it(i,ce.required));let s=!this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType||this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType==""?this.capitalizedIncomeTypeOptions[0].id:this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType;this.loanDeferredIncomeRecognitionForm.addControl("capitalizedIncomeType",new it(s,ce.required)),this.loanDeferredIncomeRecognitionForm.get("capitalizedIncomeCalculationType").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("capitalizedIncomeStrategy").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("capitalizedIncomeType").valueChanges.subscribe(d=>{this.emitValuesChange()})}else this.loanDeferredIncomeRecognitionForm.removeControl("capitalizedIncomeCalculationType"),this.loanDeferredIncomeRecognitionForm.removeControl("capitalizedIncomeStrategy"),this.loanDeferredIncomeRecognitionForm.removeControl("capitalizedIncomeType");this.emitValuesChange(),this.setViewChildForm.emit(this.loanDeferredIncomeRecognitionForm)}),this.loanDeferredIncomeRecognitionForm.get("enableBuyDownFee").valueChanges.subscribe(t=>{if(this.enableBuyDownFee=t,this.enableBuyDownFee){let n=!this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType||this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType==""?this.buyDownFeeCalculationTypeOptions[0].id:this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType;this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeCalculationType",new it(n,ce.required));let i=!this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy||this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy==""?this.buyDownFeeStrategyOptions[0].id:this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy;this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeStrategy",new it(i,ce.required));let s=!this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType||this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType==""?this.buyDownFeeIncomeTypeOptions[0].id:this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType;this.loanDeferredIncomeRecognitionForm.addControl("buyDownFeeIncomeType",new it(s,ce.required)),this.loanDeferredIncomeRecognitionForm.addControl("merchantBuyDownFee",new it(this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee)),this.loanDeferredIncomeRecognitionForm.get("buyDownFeeCalculationType").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("buyDownFeeStrategy").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("buyDownFeeIncomeType").valueChanges.subscribe(d=>{this.emitValuesChange()}),this.loanDeferredIncomeRecognitionForm.get("merchantBuyDownFee").valueChanges.subscribe(d=>{this.emitValuesChange()})}else this.loanDeferredIncomeRecognitionForm.removeControl("buyDownFeeCalculationType"),this.loanDeferredIncomeRecognitionForm.removeControl("buyDownFeeStrategy"),this.loanDeferredIncomeRecognitionForm.removeControl("buyDownFeeIncomeType"),this.loanDeferredIncomeRecognitionForm.removeControl("merchantBuyDownFee");this.emitValuesChange()})}emitValuesChange(){this.setViewChildForm.emit(this.loanDeferredIncomeRecognitionForm)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-capitalized-income-step"]],inputs:{deferredIncomeRecognition:"deferredIncomeRecognition",capitalizedIncomeCalculationTypeOptions:"capitalizedIncomeCalculationTypeOptions",capitalizedIncomeStrategyOptions:"capitalizedIncomeStrategyOptions",capitalizedIncomeTypeOptions:"capitalizedIncomeTypeOptions",buyDownFeeCalculationTypeOptions:"buyDownFeeCalculationTypeOptions",buyDownFeeStrategyOptions:"buyDownFeeStrategyOptions",buyDownFeeIncomeTypeOptions:"buyDownFeeIncomeTypeOptions"},outputs:{setViewChildForm:"setViewChildForm"},decls:16,vars:14,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","layout-column-lt-md"],["labelPosition","before","formControlName","enableIncomeCapitalization",1,"flex-98"],[1,"flex-48"],["labelPosition","before","formControlName","enableBuyDownFee",1,"flex-98"],["labelPosition","before","formControlName","merchantBuyDownFee",1,"flex-48"],["formControlName","capitalizedIncomeCalculationType","required",""],[3,"value"],["formControlName","capitalizedIncomeStrategy","required",""],["formControlName","capitalizedIncomeType","required",""],["formControlName","buyDownFeeCalculationType","required",""],["formControlName","buyDownFeeStrategy","required",""],["formControlName","buyDownFeeIncomeType","required",""]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-checkbox",2),c(3),p(4,"translate"),r(),E(5,Lbt,7,3,"mat-form-field",3),E(6,qbt,7,3,"mat-form-field",3),E(7,Hbt,7,3,"mat-form-field",3),r(),l(8,"div",1)(9,"mat-checkbox",4),c(10),p(11,"translate"),r(),E(12,jbt,7,3,"mat-form-field",3),E(13,Ubt,7,3,"mat-form-field",3),E(14,Qbt,7,3,"mat-form-field",3),E(15,Ybt,3,3,"mat-checkbox",5),r()()),n&2&&(g("formGroup",i.loanDeferredIncomeRecognitionForm),a(3),v(" ",m(4,10,"labels.inputs.Enable income capitalization")," "),a(2),I(i.enableIncomeCapitalization?5:-1),a(),I(i.enableIncomeCapitalization?6:-1),a(),I(i.enableIncomeCapitalization?7:-1),a(3),v(" ",m(11,12,"labels.inputs.Enable Buy down fee")," "),a(2),I(i.enableBuyDownFee?12:-1),a(),I(i.enableBuyDownFee?13:-1),a(),I(i.enableBuyDownFee?14:-1),a(),I(i.enableBuyDownFee?15:-1))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Fe,Be,gt,ft,fi,he,ki],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Jbt=["table"];function Kbt(e,o){if(e&1){let t=Y();l(0,"div",3)(1,"button",7),R("click",function(){V(t);let i=w();return q(i.removeTransaction())}),b(2,"fa-icon",8),r()()}}function Xbt(e,o){e&1&&b(0,"th",17)}function Zbt(e,o){e&1&&(l(0,"td",18),b(1,"fa-icon",19),r())}function eyt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Order")))}function tyt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.index;a(),h(t+1)}}function iyt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Allocation Rule")))}function nyt(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.value,"catalogs"))}}function oyt(e,o){e&1&&b(0,"tr",20)}function ayt(e,o){if(e&1&&b(0,"tr",21),e&2){let t=o.$implicit;g("cdkDragData",t)}}function ryt(e,o){if(e&1){let t=Y();l(0,"div",4)(1,"table",9,0),R("cdkDropListDropped",function(i){V(t);let s=w();return q(s.dropTable(i,!1))}),X(3,10),F(4,Xbt,1,0,"th",11)(5,Zbt,2,0,"td",12),Z(),X(6,13),F(7,eyt,3,3,"th",11)(8,tyt,2,1,"td",12),Z(),X(9,14),F(10,iyt,3,3,"th",11)(11,nyt,3,4,"td",12),Z(),F(12,oyt,1,0,"tr",15)(13,ayt,1,1,"tr",16),r()()}if(e&2){let t=w();a(),g("dataSource",t.paymentAllocationsData)("cdkDropListData",t.paymentAllocationsData),a(11),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function lyt(e,o){e&1&&b(0,"th",17)}function syt(e,o){e&1&&(l(0,"td",18),b(1,"fa-icon",19),r())}function cyt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Order")))}function pyt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.index;a(),h(t+1)}}function myt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Credit Allocation Rule")))}function dyt(e,o){if(e&1&&(l(0,"td",18),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.value,"catalogs"))}}function uyt(e,o){e&1&&b(0,"tr",20)}function fyt(e,o){if(e&1&&b(0,"tr",21),e&2){let t=o.$implicit;g("cdkDragData",t)}}function hyt(e,o){if(e&1){let t=Y();l(0,"div",5)(1,"table",9,0),R("cdkDropListDropped",function(i){V(t);let s=w();return q(s.dropTable(i,!0))}),X(3,10),F(4,lyt,1,0,"th",11)(5,syt,2,0,"td",12),Z(),X(6,13),F(7,cyt,3,3,"th",11)(8,pyt,2,1,"td",12),Z(),X(9,14),F(10,myt,3,3,"th",11)(11,dyt,3,4,"td",12),Z(),F(12,uyt,1,0,"tr",15)(13,fyt,1,1,"tr",16),r()()}if(e&2){let t=w();a(),g("dataSource",t.creditAllocationsData)("cdkDropListData",t.creditAllocationsData),a(11),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function gyt(e,o){if(e&1&&(l(0,"mat-option",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function _yt(e,o){if(e&1&&(l(0,"mat-form-field",6)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",22),Se(5,gyt,3,5,"mat-option",23,Pe),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Future Installment Allocation Rule")),a(2),g("formControl",t.futureInstallmentAllocationRule),a(),we(t.advancedPaymentAllocation.futureInstallmentAllocationRules)}}var Jy=(()=>{class e{constructor(){this.dialog=T(Ht),this.advancedPaymentStrategy=T(gm),this.translateService=T(yi),this.allocationChanged=new bi,this.transactionTypeRemoved=new bi,this.paymentAllocationsData=null,this.creditAllocationsData=null,this.displayedColumns=["actions","order","allocationRule"],this.futureInstallmentAllocationRule=new it("",ce.required)}ngOnInit(){this.advancedCreditAllocation&&(this.creditAllocationsData=this.advancedCreditAllocation?.creditAllocationOrder),this.advancedPaymentAllocation&&(this.paymentAllocationsData=this.advancedPaymentAllocation?.paymentAllocationOrder,this.advancedPaymentAllocation.futureInstallmentAllocationRule&&this.futureInstallmentAllocationRule.patchValue(this.advancedPaymentAllocation.futureInstallmentAllocationRule.code),this.futureInstallmentAllocationRule.valueChanges.subscribe(t=>{this.advancedPaymentAllocation.futureInstallmentAllocationRules.forEach(n=>{t===n.code&&(this.advancedPaymentAllocation.futureInstallmentAllocationRule=n,this.allocationChanged.emit(!0))})}))}dropTable(t,n){if(n){let i=this.creditAllocationsData.findIndex(s=>s===t.item.data);Os(this.creditAllocationsData,i,t.currentIndex),this.creditAllocationsData=[...this.creditAllocationsData],this.advancedCreditAllocation.creditAllocationOrder=this.creditAllocationsData,this.table.renderRows(),this.allocationChanged.emit(!0)}else{let i=this.paymentAllocationsData.findIndex(s=>s===t.item.data);Os(this.paymentAllocationsData,i,t.currentIndex),this.paymentAllocationsData=[...this.paymentAllocationsData],this.advancedPaymentAllocation.paymentAllocationOrder=this.paymentAllocationsData,this.table.renderRows(),this.allocationChanged.emit(!0)}}isDefault(){return this.advancedPaymentAllocation&&this.advancedPaymentAllocation.transaction?this.advancedPaymentStrategy.isDefault(this.advancedPaymentAllocation.transaction):!1}removeTransaction(){let t=null;this.advancedPaymentAllocation&&this.advancedPaymentAllocation.transaction?t=this.advancedPaymentAllocation.transaction:this.advancedCreditAllocation&&this.advancedCreditAllocation.transaction&&(t=this.advancedCreditAllocation.transaction,t.credit=!0),this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.dialogContext.the Transaction Type")+" "+t.value}}).afterClosed().subscribe(i=>{i.delete&&this.transactionTypeRemoved.emit(t)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-advance-payment-allocation-tab"]],viewQuery:function(n,i){if(n&1&&Ee(Jbt,5),n&2){let s;Te(s=Me())&&(i.table=s.first)}},inputs:{advancedPaymentAllocation:"advancedPaymentAllocation",advancedCreditAllocation:"advancedCreditAllocation"},outputs:{allocationChanged:"allocationChanged",transactionTypeRemoved:"transactionTypeRemoved"},decls:8,vars:7,consts:[["table",""],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"m-b-15","right","flex-90"],[1,"right","flex-4"],[1,"mat-elevation-z8","container","m-t-15"],[1,"mat-elevation-z8","container","m-t-15","m-b-15"],[1,"m-t-20","flex-33"],["mat-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-table","","cdkDropList","",3,"cdkDropListDropped","dataSource","cdkDropListData"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","order"],["matColumnDef","allocationRule"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","cdkDrag","",3,"cdkDragData",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["icon","bars"],["mat-header-row",""],["mat-row","","cdkDrag","",3,"cdkDragData"],[3,"formControl"],[3,"value"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"h4",2),c(2),p(3,"translate"),r(),E(4,Kbt,3,0,"div",3),E(5,ryt,14,4,"div",4),E(6,hyt,14,4,"div",5),E(7,_yt,7,4,"mat-form-field",6),r()),n&2&&(a(2),v(" ",m(3,5,"labels.heading.You can drag and drop the rows to set a Payment Allocations order")," "),a(2),I(i.isDefault()?-1:4),a(),I(i.paymentAllocationsData?5:-1),a(),I(i.creditAllocationsData?6:-1),a(),I(i.advancedPaymentAllocation&&i.advancedPaymentAllocation.futureInstallmentAllocationRules?7:-1))},dependencies:[ue,fe,$e,_n,Fe,Be,gt,ft,xe,ke,_t,Tp,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pp,he,ki],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}tr[_ngcontent-%COMP%]:hover{cursor:move}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:4px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;display:table;background-color:#fff}.cdk-drag-preview[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{flex-grow:2;font-size:14px;padding:4px;vertical-align:middle}.cdk-drag-placeholder[_ngcontent-%COMP%]{background-color:#4461e2;opacity:.2}.cdk-drag-animating[_ngcontent-%COMP%]{cursor:move;transition:transform .25s cubic-bezier(0,0,.2,1)}.cdk-drop-list-dragging[_ngcontent-%COMP%] .mat-row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"]})}}return e})();function Cyt(e,o){if(e&1&&(c(0),p(1,"translateKey")),e&2){let t=w().$implicit;v(" ",Ft(1,1,t.transaction.value,"catalogs")," ")}}function vyt(e,o){if(e&1){let t=Y();l(0,"mat-tab"),F(1,Cyt,2,4,"ng-template",1),l(2,"mifosx-advance-payment-allocation-tab",3),R("allocationChanged",function(i){V(t);let s=w();return q(s.allocationChanged(i))})("transactionTypeRemoved",function(i){V(t);let s=w();return q(s.transactionTypeRemoved(i))}),r()()}if(e&2){let t=o.$implicit;a(2),g("advancedPaymentAllocation",t)}}function xyt(e,o){if(e&1&&(c(0),p(1,"translateKey")),e&2){let t=w().$implicit;v(" ",Ft(1,1,t.transaction.value,"catalogs")," ")}}function byt(e,o){if(e&1){let t=Y();l(0,"mat-tab"),F(1,xyt,2,4,"ng-template",1),l(2,"mifosx-advance-payment-allocation-tab",4),R("allocationChanged",function(i){V(t);let s=w();return q(s.allocationChanged(i))})("transactionTypeRemoved",function(i){V(t);let s=w();return q(s.transactionTypeRemoved(i))}),r()()}if(e&2){let t=o.$implicit;a(2),g("advancedCreditAllocation",t)}}function yyt(e,o){if(e&1){let t=Y();l(0,"button",5),R("click",function(i){return V(t),w().addTransaction(),q(i.stopPropagation())}),l(1,"mat-icon"),b(2,"fa-icon",6),r()()}}function Syt(e,o){}var Iu=(()=>{class e{constructor(){this.dialog=T(Ht),this.advancedPaymentStrategy=T(gm),this.translateService=T(yi),this.advancedPaymentAllocations=[],this.advancedCreditAllocations=[],this.advancedPaymentAllocationTransactionTypes=[],this.advancedCreditAllocationTransactionTypes=[],this.paymentAllocationChange=new bi,this.setPaymentAllocation=new bi,this.setCreditAllocation=new bi}ngOnInit(){this.sendAllocations()}sendAllocations(){this.setPaymentAllocation.emit(this.advancedPaymentStrategy.buildPaymentAllocations(this.advancedPaymentAllocations)),this.setCreditAllocation.emit(this.advancedPaymentStrategy.buildCreditAllocations(this.advancedCreditAllocations))}allocationChanged(t){this.paymentAllocationChange.emit(t),this.sendAllocations()}addTransaction(){let t=[];this.advancedPaymentAllocations.forEach(u=>{t.push(u.transaction.code)}),this.advancedCreditAllocations.forEach(u=>{t.push(u.transaction.code)});let n=[];this.advancedPaymentAllocationTransactionTypes.forEach(u=>{!this.advancedPaymentStrategy.isDefault(u)&&t.indexOf(u.code)<0&&(u.credit=!1,u.value=this.translateService.instant("labels.catalogs."+u.value),n.push(u))}),this.advancedCreditAllocationTransactionTypes.forEach(u=>{t.indexOf(u.code)<0&&(u.credit=!0,u.value=this.translateService.instant("labels.catalogs."+u.value),n.push(u))});let i=[new $i({controlName:"code",label:this.translateService.instant("labels.inputs.Transaction Type"),options:{label:"value",value:"code",data:n},order:1})],s={title:this.translateService.instant("labels.inputs.Advanced Payment Allocation Transaction Type"),layout:{addButtonText:this.translateService.instant("labels.buttons.Add"),cancelButtonText:this.translateService.instant("labels.buttons.Cancel")},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){let f=this.advancedPaymentAllocations[0];n.forEach(_=>{_.code===u.data.value.code&&(_.credit?this.advancedCreditAllocations.push(this.advancedPaymentStrategy.buildAdvancedCreditAllocation(_,this.creditAllocationOrderDefault)):this.advancedPaymentAllocations.push(this.advancedPaymentStrategy.buildAdvancedPaymentAllocation(!0,_,this.paymentAllocationOrderDefault,f.futureInstallmentAllocationRules)),this.paymentAllocationChange.emit(!0),this.sendAllocations())})}})}transactionTypeRemoved(t){t.credit?this.advancedCreditAllocations.forEach((n,i)=>{n.transaction.code===t.code&&(this.advancedCreditAllocations.splice(i,1),this.paymentAllocationChange.emit(!0),this.tabGroup.selectedIndex=i-1,this.sendAllocations())}):this.advancedPaymentAllocations.forEach((n,i)=>{n.transaction.code===t.code&&(this.advancedPaymentAllocations.splice(i,1),this.paymentAllocationChange.emit(!0),this.tabGroup.selectedIndex=i-1,this.sendAllocations())})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-payment-strategy-step"]],viewQuery:function(n,i){if(n&1&&Ee(Nr,5),n&2){let s;Te(s=Me())&&(i.tabGroup=s.first)}},inputs:{advancedPaymentAllocations:"advancedPaymentAllocations",advancedCreditAllocations:"advancedCreditAllocations",advancedPaymentAllocationTransactionTypes:"advancedPaymentAllocationTransactionTypes",paymentAllocationOrderDefault:"paymentAllocationOrderDefault",advancedCreditAllocationTransactionTypes:"advancedCreditAllocationTransactionTypes",creditAllocationOrderDefault:"creditAllocationOrderDefault"},outputs:{paymentAllocationChange:"paymentAllocationChange",setPaymentAllocation:"setPaymentAllocation",setCreditAllocation:"setCreditAllocation"},decls:8,vars:0,consts:[["animationDuration","0ms",1,"layout-row-wrap","gap-2percent","layout-lt-md-column"],["mat-tab-label",""],["matTabContent",""],[3,"allocationChanged","transactionTypeRemoved","advancedPaymentAllocation"],[3,"allocationChanged","transactionTypeRemoved","advancedCreditAllocation"],["mat-icon-button","","type","button",3,"click"],["icon","plus","size","sm"]],template:function(n,i){n&1&&(l(0,"mat-tab-group",0),Se(1,vyt,3,1,"mat-tab",null,Pe),Se(3,byt,3,1,"mat-tab",null,Pe),l(5,"mat-tab"),F(6,yyt,3,0,"ng-template",1)(7,Syt,0,0,"ng-template",2),r()()),n&2&&(a(),we(i.advancedPaymentAllocations),a(2),we(i.advancedCreditAllocations))},dependencies:[ue,fe,Nr,Qr,Ck,Jy,wi,Yo,ke,_k,ki],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366} .mat-tab-body-wrapper{width:96%;margin:auto} .mat-tab-label.mat-tab-disabled{padding:0;margin:0;justify-content:left;color:#4461e2}"]})}}return e})();function wyt(e,o){if(e&1&&(l(0,"tr")(1,"td"),c(2),r(),l(3,"td"),c(4),p(5,"translateKey"),r()()),e&2){let t=o.$implicit,n=o.$index,i=w(2);a(2),h(n+1),a(2),h(Ft(5,2,i.allocationRuleValue(t.paymentAllocationRule),"catalogs"))}}function Pyt(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"div",0)(4,"span",1),c(5),p(6,"translate"),r(),l(7,"span",2),c(8),r()()()(),l(9,"div",0)(10,"div",0)(11,"span",1),c(12),p(13,"translate"),r(),l(14,"span",2),c(15),p(16,"translateKey"),r()(),l(17,"div",0)(18,"span",1),c(19),p(20,"translate"),r(),l(21,"span",2)(22,"table")(23,"thead")(24,"tr")(25,"th"),c(26),p(27,"translate"),r(),l(28,"th"),c(29),p(30,"translate"),r()()(),l(31,"tbody"),Se(32,wyt,6,5,"tr",null,Pe),r()()()()()()),e&2){let t=w();a(5),v("",m(6,7,"labels.inputs.Transaction Type"),":"),a(3),h(t.transactionTypeValue(t.paymentAllocation.transactionType)),a(4),v("",m(13,9,"labels.inputs.Future Installment Allocation Rule"),":"),a(3),h(Ft(16,11,t.futureInstallmentRuleValue(t.paymentAllocation.futureInstallmentAllocationRule),"catalogs")),a(4),h(m(20,14,"labels.inputs.Payment Allocation Order")),a(7),h(m(27,16,"labels.inputs.Order")),a(3),h(m(30,18,"labels.inputs.Payment Allocation Rule")),a(3),we(t.paymentAllocation.paymentAllocationOrder)}}function Tyt(e,o){if(e&1&&(l(0,"tr")(1,"td"),c(2),r(),l(3,"td"),c(4),p(5,"translateKey"),r()()),e&2){let t=o.$implicit,n=o.$index,i=w(2);a(2),h(n+1),a(2),h(Ft(5,2,i.allocationRuleValue(t.creditAllocationRule),"catalogs"))}}function Myt(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"div",0)(4,"span",1),c(5),p(6,"translate"),r(),l(7,"span",2),c(8),r()()()(),l(9,"div",0)(10,"div",0)(11,"span",1),c(12),p(13,"translate"),r(),l(14,"span",2)(15,"table")(16,"thead")(17,"tr")(18,"th"),c(19),p(20,"translate"),r(),l(21,"th"),c(22),p(23,"translate"),r()()(),l(24,"tbody"),Se(25,Tyt,6,5,"tr",null,Pe),r()()()()()()),e&2){let t=w();a(5),v("",m(6,5,"labels.inputs.Transaction Type"),":"),a(3),h(t.transactionTypeValue(t.creditAllocation.transactionType)),a(4),h(m(13,7,"labels.inputs.Credit Allocation Order")),a(7),h(m(20,9,"labels.inputs.Order")),a(3),h(m(23,11,"labels.inputs.Credit Allocation Rule")),a(3),we(t.creditAllocation.creditAllocationOrder)}}var Ky=(()=>{class e{constructor(){}transactionTypeValue(t){return this.advancePaymentAllocationData==null?t:this.advancePaymentAllocationData.transactionTypes.find(i=>i.code===t).value}allocationRuleValue(t){return this.advancePaymentAllocationData==null?t:this.advancePaymentAllocationData.allocationTypes.find(i=>i.code===t).value}futureInstallmentRuleValue(t){return this.advancePaymentAllocationData==null?t:this.advancePaymentAllocationData.futureInstallmentAllocationRules.find(i=>i.code===t).value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-advance-paymeny-allocation"]],inputs:{paymentAllocation:"paymentAllocation",creditAllocation:"creditAllocation",advancePaymentAllocationData:"advancePaymentAllocationData"},decls:2,vars:2,consts:[[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"]],template:function(n,i){n&1&&(E(0,Pyt,34,20,"mat-expansion-panel"),E(1,Myt,27,13,"mat-expansion-panel")),n&2&&(I(i.paymentAllocation?0:-1),a(),I(i.creditAllocation?1:-1))},dependencies:[ue,fe,Pr,Tr,Mr,he,ki],encapsulation:2})}}return e})();function Dyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.External Id"),":"),a(3),h(t.loanProduct.externalId)}}function Eyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Fund"),":"),a(3),h(t.loanProduct.fundName)}}function Iyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Start Date"),":"),a(3),h(m(6,4,t.loanProduct.startDate))}}function Oyt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Close Date"),":"),a(3),h(m(6,4,t.loanProduct.closeDate))}}function Ayt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.loanProduct.description)}}function Fyt(e,o){if(e&1&&(l(0,"span",6),c(1),p(2,"formatNumber"),r()),e&2){let t=w(3);a(),v("",Ft(2,1,t.loanProduct.overAppliedNumber,0)," %")}}function kyt(e,o){if(e&1&&(l(0,"span",6),c(1),p(2,"formatNumber"),r()),e&2){let t=w(3);a(),le("",m(2,2,t.loanProduct.overAppliedNumber)," ",t.loanProduct.currencyCode)}}function Byt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),E(4,Fyt,3,4,"span",6),E(5,kyt,3,4,"span",6),r()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Over Amount"),":"),a(2),I(t.loanProduct.overAppliedCalculationType==="percentage"?4:-1),a(),I(t.loanProduct.overAppliedCalculationType==="flat"?5:-1)}}function Ryt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Nominal interest rate"),":"),a(3),le("",t.loanProduct.interestRatePerPeriod+" (Min: "+(t.loanProduct.minInterestRatePerPeriod?t.loanProduct.minInterestRatePerPeriod:t.loanProduct.interestRatePerPeriod)+", Max: "+(t.loanProduct.maxInterestRatePerPeriod?t.loanProduct.maxInterestRatePerPeriod:t.loanProduct.interestRatePerPeriod)+")"," ",Ft(6,5,t.loanProduct.interestRateFrequencyType==null?null:t.loanProduct.interestRateFrequencyType.value,"catalogs"))}}function Nyt(e,o){if(e&1&&(l(0,"div")(1,"div",9)(2,"span",5),c(3),p(4,"translate"),r(),l(5,"span",6),c(6),r()(),l(7,"div",9)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),r()(),l(13,"div",9)(14,"span",5),c(15),p(16,"translate"),r(),l(17,"span",6),c(18),p(19,"yesNo"),r()(),l(20,"div",9)(21,"span",5),c(22),p(23,"translate"),r(),l(24,"span",6),c(25),r()()()),e&2){let t=w(2);a(3),v("",m(4,8,"labels.inputs.Floating Lending Interest Rate"),":"),a(3),h(t.loanProduct.floatingRateName),a(3),v("",m(10,10,"labels.inputs.Interest Rate Differential"),":"),a(3),h(t.loanProduct.interestRateDifferential),a(3),v("",m(16,12,"labels.inputs.Floating Interest Rate Calculation Allowed"),":"),a(3),h(m(19,14,t.loanProduct.isFloatingInterestRateCalculationAllowed)),a(4),v("",m(23,16,"labels.inputs.Floating Interest Rate"),":"),a(3),h(t.loanProduct.defaultDifferentialLendingRate+" (Min: "+(t.loanProduct.minDifferentialLendingRate?t.loanProduct.minDifferentialLendingRate:t.loanProduct.defaultDifferentialLendingRate)+", Max: "+(t.loanProduct.maxDifferentialLendingRate?t.loanProduct.maxDifferentialLendingRate:t.loanProduct.defaultDifferentialLendingRate)+")")}}function Lyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function Vyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.valueConditionType.value,"catalogs")," ")}}function qyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function zyt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function Hyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function Gyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.minValue)," ")}}function jyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function $yt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.defaultValue)," ")}}function Uyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function Wyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.maxValue)," ")}}function Qyt(e,o){e&1&&b(0,"tr",27)}function Yyt(e,o){e&1&&b(0,"tr",28)}function Jyt(e,o){if(e&1&&(l(0,"div",4)(1,"h4",14),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,16),F(6,Lyt,3,3,"th",17)(7,Vyt,3,4,"td",18),Z(),X(8,19),F(9,qyt,3,3,"th",17)(10,zyt,2,1,"td",18),Z(),X(11,20),F(12,Hyt,3,3,"th",17)(13,Gyt,3,3,"td",18),Z(),X(14,21),F(15,jyt,3,3,"th",17)(16,$yt,3,3,"td",18),Z(),X(17,22),F(18,Uyt,3,3,"th",17)(19,Wyt,3,3,"td",18),Z(),F(20,Qyt,1,0,"tr",23)(21,Yyt,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Principal by loan cycle")),a(2),g("dataSource",t.loanProduct.principalVariationsForBorrowerCycle),a(16),g("matHeaderRowDef",t.variationsDisplayedColumns),a(),g("matRowDefColumns",t.variationsDisplayedColumns)}}function Kyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function Xyt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.valueConditionType.value,"catalogs")," ")}}function Zyt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function e3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function t3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function i3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function n3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function o3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function a3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function r3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function l3t(e,o){e&1&&b(0,"tr",27)}function s3t(e,o){e&1&&b(0,"tr",28)}function c3t(e,o){if(e&1&&(l(0,"div",7)(1,"h4",14),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,16),F(6,Kyt,3,3,"th",17)(7,Xyt,3,4,"td",18),Z(),X(8,19),F(9,Zyt,3,3,"th",17)(10,e3t,2,1,"td",18),Z(),X(11,20),F(12,t3t,3,3,"th",17)(13,i3t,2,1,"td",18),Z(),X(14,21),F(15,n3t,3,3,"th",17)(16,o3t,2,1,"td",18),Z(),X(17,22),F(18,a3t,3,3,"th",17)(19,r3t,2,1,"td",18),Z(),F(20,l3t,1,0,"tr",23)(21,s3t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Number of Repayments by loan cycle")),a(2),g("dataSource",t.loanProduct.numberOfRepaymentVariationsForBorrowerCycle),a(16),g("matHeaderRowDef",t.variationsDisplayedColumns),a(),g("matRowDefColumns",t.variationsDisplayedColumns)}}function p3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition")))}function m3t(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.valueConditionType.value,"catalogs")," ")}}function d3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Cycle")))}function u3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.borrowerCycleNumber," ")}}function f3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Minimum")))}function h3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.minValue," ")}}function g3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Default")))}function _3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.defaultValue," ")}}function C3t(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Maximum")))}function v3t(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.maxValue," ")}}function x3t(e,o){e&1&&b(0,"tr",27)}function b3t(e,o){e&1&&b(0,"tr",28)}function y3t(e,o){if(e&1&&(l(0,"div",7)(1,"h4",14),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,16),F(6,p3t,3,3,"th",17)(7,m3t,3,4,"td",18),Z(),X(8,19),F(9,d3t,3,3,"th",17)(10,u3t,2,1,"td",18),Z(),X(11,20),F(12,f3t,3,3,"th",17)(13,h3t,2,1,"td",18),Z(),X(14,21),F(15,g3t,3,3,"th",17)(16,_3t,2,1,"td",18),Z(),X(17,22),F(18,C3t,3,3,"th",17)(19,v3t,2,1,"td",18),Z(),F(20,x3t,1,0,"tr",23)(21,b3t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Nominal Interest Rate by loan cycle")),a(2),g("dataSource",t.loanProduct.interestRateVariationsForBorrowerCycle),a(16),g("matHeaderRowDef",t.variationsDisplayedColumns),a(),g("matRowDefColumns",t.variationsDisplayedColumns)}}function S3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Fixed Length"),":"),a(3),le("",t.loanProduct.fixedLength," ",Ft(6,5,t.loanProduct.repaymentFrequencyType.value,"catalogs"))}}function w3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Minimum days between disbursal and first repayment date"),":"),a(3),h(m(6,4,t.loanProduct.minimumDaysBetweenDisbursalAndFirstRepayment))}}function P3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Amortization"),":"),a(3),h(Ft(6,4,t.loanProduct.amortizationType.value,"catalogs"))}}function T3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Loan Schedule Processing Type"),":"),a(3),h(t.loanProduct.loanScheduleProcessingType.value)}}function M3t(e,o){if(e&1&&b(0,"mifosx-view-advance-paymeny-allocation",29),e&2){let t=o.$implicit,n=w(3);g("paymentAllocation",t)("advancePaymentAllocationData",n.advancePaymentAllocationData)}}function D3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6)(5,"mat-accordion"),Se(6,M3t,1,2,"mifosx-view-advance-paymeny-allocation",29,Pe),r()()()),e&2){let t=w(2);a(2),v("",m(3,1,"labels.inputs.Advanced Payment Allocation Transactions"),":"),a(4),we(t.paymentAllocations)}}function E3t(e,o){if(e&1&&b(0,"mifosx-view-advance-paymeny-allocation",30),e&2){let t=o.$implicit,n=w(3);g("creditAllocation",t)("advancePaymentAllocationData",n.advancePaymentAllocationData)}}function I3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6)(5,"mat-accordion"),Se(6,E3t,1,2,"mifosx-view-advance-paymeny-allocation",30,Pe),r()()()),e&2){let t=w(2);a(2),v("",m(3,1,"labels.inputs.Advanced Credit Allocation Transactions"),":"),a(4),we(t.creditAllocations)}}function O3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Supported Interest Refund Types"),":"),a(3),v(" ",t.mapHumanReadableValueStringEnumOptionDataList(t.supportedInterestRefundTypes)," ")}}function A3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Disbursed Amount Percentage Down Payment")," (%):"),a(3),v("",t.loanProduct.disbursedAmountPercentageForDownPayment," %")}}function F3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Enable Auto Repayment for Down Payment"),":"),a(3),h(m(6,4,t.loanProduct.enableAutoRepaymentForDownPayment))}}function k3t(e,o){if(e&1&&(l(0,"div",10)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"div",13)(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),p(11,"translateKey"),r()()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Loan Charge-off behaviour")),a(2),g("inset",!0),a(3),v("",m(8,6,"labels.inputs.Loan Charge-off behaviour"),":"),a(3),h(Ft(11,8,t.loanProduct.chargeOffBehaviour.value,"catalogs"))}}function B3t(e,o){if(e&1&&(l(0,"span",6),c(1),r()),e&2){let t=w(3);a(),h(t.loanProduct.delinquencyBucket.name)}}function R3t(e,o){e&1&&(l(0,"span",6),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unassigned")))}function N3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),E(4,B3t,2,1,"span",6),E(5,R3t,3,3,"span",6),r()),e&2){let t=w(2);a(2),v("",m(3,3,"labels.inputs.Delinquency Bucket"),":"),a(2),I(t.loanProduct.delinquencyBucket.name?4:-1),a(),I(t.loanProduct.delinquencyBucket.name?-1:5)}}function L3t(e,o){e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translate"),r()()),e&2&&(a(2),v("",m(3,2,"labels.inputs.Delinquency Bucket"),":"),a(3),h(m(6,4,"labels.inputs.Unassigned")))}function V3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Enable installment level Delinquency"),":"),a(3),h(m(6,4,t.loanProduct.enableInstallmentLevelDelinquency))}}function q3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Grace on principal payment"),":"),a(3),h(t.loanProduct.graceOnPrincipalPayment)}}function z3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Grace on interest payment"),":"),a(3),h(t.loanProduct.graceOnInterestPayment)}}function H3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Interest free period"),":"),a(3),h(t.loanProduct.graceOnInterestCharged)}}function G3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Arrears tolerance"),":"),a(3),h(t.loanProduct.inArrearsTolerance)}}function j3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Days in year custom strategy"),":"),a(3),h(Ft(6,4,t.loanProduct.daysInYearCustomStrategy.value,"catalogs"))}}function $3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Number of days a loan may be overdue before moving into arrears"),":"),a(3),h(t.loanProduct.graceOnArrearsAgeing)}}function U3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Maximum number of days a loan may be overdue before becoming a NPA (non performing asset)"),":"),a(3),h(t.loanProduct.overdueDaysForNPA)}}function W3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Principal Threshold (%) for Last Instalment"),":"),a(3),h(t.loanProduct.principalThresholdForLastInstallment)}}function Q3t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Variable Installments"),":"),a(3),h("(Min: "+t.loanProduct.minimumGap+", Max: "+(t.loanProduct.maximumGap?t.loanProduct.maximumGap:t.loanProduct.minimumGap)+")")}}function Y3t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(4);a(),v("\xA0\xA0","on "+(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyNthDay==null?null:t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyNthDay.value))}}function J3t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(4);a(),v("\xA0\xA0",t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyWeekday==null?null:t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value)}}function K3t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(4);a(),v("\xA0\xA0","on day "+t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyOnDay)}}function X3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(4);a(2),v("",m(3,2,"labels.inputs.Frequency Interval for compounding"),":"),a(3),h(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyInterval)}}function Z3t(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),E(6,Y3t,2,1,"span"),E(7,J3t,2,1,"span"),E(8,K3t,2,1,"span"),r(),E(9,X3t,6,4,"div",9),r()),e&2){let t=w(3);a(2),v("",m(3,6,"labels.inputs.Frequency for compounding"),":"),a(3),v(" ",t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.value," "),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyNthDay?6:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&!t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyOnDay||t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===3?7:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyOnDay?8:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationCompoundingFrequencyType.id!==1?9:-1)}}function eSt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(3);a(),v("\xA0\xA0","on "+(t.loanProduct.interestRecalculationData.recalculationRestFrequencyNthDay==null?null:t.loanProduct.interestRecalculationData.recalculationRestFrequencyNthDay.value))}}function tSt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(3);a(),v("\xA0\xA0",t.loanProduct.interestRecalculationData.recalculationRestFrequencyWeekday==null?null:t.loanProduct.interestRecalculationData.recalculationRestFrequencyWeekday.value)}}function iSt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w(3);a(),v("\xA0\xA0","on day "+t.loanProduct.interestRecalculationData.recalculationRestFrequencyOnDay)}}function nSt(e,o){if(e&1&&(l(0,"div",7)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(4);a(2),v("",m(3,2,"labels.inputs.Rest Frequency Date"),":"),a(3),h(t.loanProduct.interestRecalculationData.recalculationRestFrequencyDate)}}function oSt(e,o){if(e&1&&(l(0,"div",10)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r(),E(6,nSt,6,4,"div",7),r()),e&2){let t=w(3);a(2),v("",m(3,3,"labels.inputs.Frequency Interval for recalculation"),":"),a(3),h(t.loanProduct.interestRecalculationData.recalculationRestFrequencyInterval),a(),I(t.loanProduct.recalculationRestFrequencyDate?6:-1)}}function aSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Do not calculate interest on past due principal balances"),":"),a(3),h(m(6,4,t.loanProduct.interestRecalculationData.disallowInterestCalculationOnPastDue))}}function rSt(e,o){if(e&1&&(l(0,"div")(1,"div",9)(2,"span",5),c(3),p(4,"translate"),r(),l(5,"span",6),c(6),r()(),l(7,"div",9)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),r()(),l(13,"div",9)(14,"span",5),c(15),p(16,"translate"),r(),l(17,"span",6),c(18),r()(),E(19,Z3t,10,8,"div",9),l(20,"div",31)(21,"span",5),c(22),p(23,"translate"),r(),l(24,"span",6),c(25),E(26,eSt,2,1,"span"),E(27,tSt,2,1,"span"),E(28,iSt,2,1,"span"),r()(),E(29,oSt,7,5,"div",10),l(30,"div",13)(31,"span",5),c(32),p(33,"translate"),r(),l(34,"span",6),c(35),p(36,"yesNo"),r()(),E(37,aSt,7,6,"div",4),r()),e&2){let t=w(2);a(3),v("",m(4,16,"labels.inputs.Pre-closure interest calculation rule"),":"),a(3),h(t.loanProduct.interestRecalculationData.preClosureInterestCalculationStrategy.value),a(3),v("",m(10,18,"labels.inputs.Advance payments adjustment type"),":"),a(3),h(t.loanProduct.interestRecalculationData.rescheduleStrategyType.value),a(3),v("",m(16,20,"labels.inputs.Interest recalculation compounding on"),":"),a(3),h(t.loanProduct.interestRecalculationData.interestRecalculationCompoundingType.value),a(),I(t.loanProduct.interestRecalculationData.interestRecalculationCompoundingType.id!==0?19:-1),a(3),v("",m(23,22,"labels.inputs.Frequency for recalculate Outstanding Principal"),":"),a(3),v(" ",t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.value," "),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationRestFrequencyNthDay?26:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===4&&!t.loanProduct.interestRecalculationData.recalculationRestFrequencyOnDay||t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===3?27:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id===4&&t.loanProduct.interestRecalculationData.recalculationRestFrequencyOnDay?28:-1),a(),I(t.loanProduct.interestRecalculationData.recalculationRestFrequencyType.id!==1?29:-1),a(3),v("",m(33,24,"labels.inputs.Is Arrears recognization based on original schedule"),":"),a(3),h(m(36,26,t.loanProduct.interestRecalculationData.isArrearsBasedOnOriginalSchedule)),a(2),I(t.loanProduct.loanScheduleType.code==="PROGRESSIVE"?37:-1)}}function lSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Minimum Guarantee from Own Funds")," (%):"),a(3),h(t.loanProduct.productGuaranteeData.minimumGuaranteeFromOwnFunds)}}function sSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Minimum Guarantee from Guarantor Funds")," (%):"),a(3),h(t.loanProduct.productGuaranteeData.minimumGuaranteeFromGuarantor)}}function cSt(e,o){if(e&1&&(l(0,"div",9)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r(),E(6,lSt,6,4,"div",4),E(7,sSt,6,4,"div",4),r()),e&2){let t=w(2);a(2),v("",m(3,4,"labels.inputs.Mandatory Guarantee")," (%):"),a(3),h(t.loanProduct.productGuaranteeData.mandatoryGuarantee),a(),I(t.loanProduct.productGuaranteeData.minimumGuaranteeFromOwnFunds?6:-1),a(),I(t.loanProduct.productGuaranteeData.minimumGuaranteeFromGuarantor?7:-1)}}function pSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Maximum allowed outstanding balance"),":"),a(3),h(t.loanProduct.outstandingLoanBalance)}}function mSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Allow full term for each tranche"),":"),a(3),h(m(6,4,t.loanProduct.allowFullTermForTranche))}}function dSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()(),E(6,pSt,6,4,"div",4),l(7,"div",4)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),p(13,"yesNo"),r()(),E(14,mSt,7,6,"div",4)),e&2){let t=w(2);a(2),v("",m(3,6,"labels.inputs.Maximum Tranche count"),":"),a(3),h(t.loanProduct.maxTrancheCount),a(),I(t.loanProduct.outstandingLoanBalance?6:-1),a(3),v("",m(10,8,"labels.inputs.Disallow Expected Disbursements"),":"),a(3),h(m(13,10,t.loanProduct.disallowExpectedDisbursements)),a(2),I(t.loanProduct.loanScheduleType&&t.loanProduct.loanScheduleType.code==="PROGRESSIVE"?14:-1)}}function uSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"number"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Due days for repayment event"),":"),a(3),h(m(6,4,t.loanProduct.dueDaysForRepaymentEvent))}}function fSt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"number"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.OverDue days for repayment event"),":"),a(3),h(m(6,4,t.loanProduct.overDueDaysForRepaymentEvent))}}function hSt(e,o){if(e&1&&(l(0,"div")(1,"div",4)(2,"span",5),c(3),p(4,"translate"),r(),l(5,"span",6),c(6),p(7,"yesNo"),r()(),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),p(14,"yesNo"),r()(),l(15,"div",4)(16,"span",5),c(17),p(18,"translate"),r(),l(19,"span",6),c(20),p(21,"yesNo"),r()(),l(22,"div",4)(23,"span",5),c(24),p(25,"translate"),r(),l(26,"span",6),c(27),p(28,"yesNo"),r()(),l(29,"div",4)(30,"span",5),c(31),p(32,"translate"),r(),l(33,"span",6),c(34),p(35,"yesNo"),r()(),l(36,"div",4)(37,"span",5),c(38),p(39,"translate"),r(),l(40,"span",6),c(41),p(42,"yesNo"),r()(),l(43,"div",4)(44,"span",5),c(45),p(46,"translate"),r(),l(47,"span",6),c(48),p(49,"yesNo"),r()(),l(50,"div",4)(51,"span",5),c(52),p(53,"translate"),r(),l(54,"span",6),c(55),p(56,"yesNo"),r()()()),e&2){let t=w(2);a(3),v("",m(4,16,"labels.inputs.Amortization"),":"),a(3),h(m(7,18,t.loanProduct.allowAttributeOverrides.amortizationType)),a(4),v("",m(11,20,"labels.inputs.Interest method"),":"),a(3),h(m(14,22,t.loanProduct.allowAttributeOverrides.interestType)),a(4),v("",m(18,24,"labels.inputs.Repayment strategy"),":"),a(3),h(m(21,26,t.loanProduct.allowAttributeOverrides.transactionProcessingStrategyCode)),a(4),v("",m(25,28,"labels.inputs.Interest calculation period"),":"),a(3),h(m(28,30,t.loanProduct.allowAttributeOverrides.interestCalculationPeriodType)),a(4),v("",m(32,32,"labels.inputs.Arrears tolerance"),":"),a(3),h(m(35,34,t.loanProduct.allowAttributeOverrides.inArrearsTolerance)),a(4),v("",m(39,36,"labels.inputs.Repaid every"),":"),a(3),h(m(42,38,t.loanProduct.allowAttributeOverrides.repaymentEvery)),a(4),v("",m(46,40,"labels.inputs.Moratorium"),":"),a(3),h(m(49,42,t.loanProduct.allowAttributeOverrides.graceOnPrincipalAndInterestPayment)),a(4),v("",m(53,44,"labels.inputs.Number of days a loan may be overdue before moving into arrears"),":"),a(3),h(m(56,46,t.loanProduct.allowAttributeOverrides.graceOnArrearsAgeing))}}function gSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function _St(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function CSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge Type")))}function vSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function xSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function bSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function ySt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function SSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function wSt(e,o){e&1&&b(0,"tr",27)}function PSt(e,o){e&1&&b(0,"tr",28)}function TSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function MSt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function DSt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge Type")))}function ESt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function ISt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function OSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function ASt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function FSt(e,o){if(e&1&&(l(0,"td",26),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function kSt(e,o){e&1&&b(0,"tr",27)}function BSt(e,o){e&1&&b(0,"tr",28)}function RSt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",2),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"table",32),p(6,"chargesPenaltyFilter"),X(7,33),F(8,gSt,3,3,"th",17)(9,_St,2,1,"td",18),Z(),X(10,34),F(11,CSt,3,3,"th",17)(12,vSt,3,4,"td",18),Z(),X(13,35),F(14,xSt,3,3,"th",17)(15,bSt,3,3,"td",18),Z(),X(16,36),F(17,ySt,3,3,"th",17)(18,SSt,3,4,"td",18),Z(),F(19,wSt,1,0,"tr",23)(20,PSt,1,0,"tr",24),r(),l(21,"h3",2),c(22),p(23,"translate"),r(),b(24,"mat-divider",3),l(25,"table",32),p(26,"chargesPenaltyFilter"),X(27,33),F(28,TSt,3,3,"th",17)(29,MSt,2,1,"td",18),Z(),X(30,34),F(31,DSt,3,3,"th",17)(32,ESt,3,4,"td",18),Z(),X(33,35),F(34,ISt,3,3,"th",17)(35,OSt,3,3,"td",18),Z(),X(36,36),F(37,ASt,3,3,"th",17)(38,FSt,3,4,"td",18),Z(),F(39,kSt,1,0,"tr",23)(40,BSt,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,10,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",Ft(6,12,t.loanProduct.charges,!1)),a(14),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns),a(2),h(m(23,15,"labels.inputs.Overdue Charges")),a(2),g("inset",!0),a(),g("dataSource",Ft(26,17,t.loanProduct.charges,!0)),a(14),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function NSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Income capitalization calculation type"),":"),a(3),h(Ft(6,4,t.loanProduct.capitalizedIncomeCalculationType==null?null:t.loanProduct.capitalizedIncomeCalculationType.value,"catalogs"))}}function LSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Income capitalization strategy"),":"),a(3),h(Ft(6,4,t.loanProduct.capitalizedIncomeStrategy==null?null:t.loanProduct.capitalizedIncomeStrategy.value,"catalogs"))}}function VSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Income type"),":"),a(3),h(Ft(6,4,t.loanProduct.capitalizedIncomeType==null?null:t.loanProduct.capitalizedIncomeType.value,"catalogs"))}}function qSt(e,o){if(e&1&&(l(0,"div",10)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"div",13)(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),p(11,"yesNo"),r()(),E(12,NSt,7,7,"div",13),E(13,LSt,7,7,"div",13),E(14,VSt,7,7,"div",13),r()),e&2){let t=w(2);a(2),h(m(3,7,"labels.inputs.Income capitalization")),a(2),g("inset",!0),a(3),v("",m(8,9,"labels.inputs.Enable income capitalization"),":"),a(3),h(m(11,11,t.loanProduct.enableIncomeCapitalization)),a(2),I(t.loanProduct.enableIncomeCapitalization?12:-1),a(),I(t.loanProduct.enableIncomeCapitalization?13:-1),a(),I(t.loanProduct.enableIncomeCapitalization?14:-1)}}function zSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Buy down fee calculation type"),":"),a(3),h(Ft(6,4,t.loanProduct.buyDownFeeCalculationType==null?null:t.loanProduct.buyDownFeeCalculationType.value,"catalogs"))}}function HSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Buy down fee strategy"),":"),a(3),h(Ft(6,4,t.loanProduct.buyDownFeeStrategy==null?null:t.loanProduct.buyDownFeeStrategy.value,"catalogs"))}}function GSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"translateKey"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Buy down fee income type"),":"),a(3),h(Ft(6,4,t.loanProduct.buyDownFeeIncomeType==null?null:t.loanProduct.buyDownFeeIncomeType.value,"catalogs"))}}function jSt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(3);a(2),v("",m(3,2,"labels.inputs.Merchant Buy down fee"),":"),a(3),h(m(6,4,t.loanProduct.merchantBuyDownFee))}}function $St(e,o){if(e&1&&(l(0,"div",10)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),l(5,"div",13)(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),p(11,"yesNo"),r()(),E(12,zSt,7,7,"div",13),E(13,HSt,7,7,"div",13),E(14,GSt,7,7,"div",13),E(15,jSt,7,6,"div",13),r()),e&2){let t=w(2);a(2),h(m(3,8,"labels.inputs.Buy down fees")),a(2),g("inset",!0),a(3),v("",m(8,10,"labels.inputs.Enable Buy down fee"),":"),a(3),h(m(11,12,t.loanProduct.enableBuyDownFee)),a(2),I(t.loanProduct.enableBuyDownFee?12:-1),a(),I(t.loanProduct.enableBuyDownFee?13:-1),a(),I(t.loanProduct.enableBuyDownFee?14:-1),a(),I(t.loanProduct.enableBuyDownFee?15:-1)}}function USt(e,o){if(e&1&&(l(0,"div",13)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"yesNo"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Enable Accrual Activity Posting on Installment Due Date"),":"),a(3),h(m(6,4,t.loanProduct.enableAccrualActivityPosting))}}function WSt(e,o){if(e&1&&(l(0,"div",9),b(1,"mifosx-gl-account-display",38)(2,"mifosx-gl-account-display",38)(3,"mifosx-gl-account-display",38),r()),e&2){let t=w(3);a(),g("accountTitle","Interest Receivable")("glAccount",t.accountingMappings.receivableInterestAccount)("withTitle","47%"),a(),g("accountTitle","Fees Receivable")("glAccount",t.accountingMappings.receivableFeeAccount)("withTitle","47%"),a(),g("accountTitle","Penalties Receivable")("glAccount",t.accountingMappings.receivablePenaltyAccount)("withTitle","47%")}}function QSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from ChargeOff Interest")("glAccount",t.accountingMappings.incomeFromChargeOffInterestAccount)("withTitle","47%")}}function YSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from ChargeOff Fees")("glAccount",t.accountingMappings.incomeFromChargeOffFeesAccount)("withTitle","47%")}}function JSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from ChargeOff Penalty")("glAccount",t.accountingMappings.incomeFromChargeOffPenaltyAccount)("withTitle","47%")}}function KSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income capitalization")("glAccount",t.accountingMappings.incomeFromCapitalizationAccount)("withTitle","47%")}}function XSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Income from Buy down fees")("glAccount",t.accountingMappings.incomeFromBuyDownAccount)("withTitle","47%")}}function ZSt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","ChargeOff Expense")("glAccount",t.accountingMappings.chargeOffExpenseAccount)("withTitle","47%")}}function ewt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","ChargeOff Fraud Expense")("glAccount",t.accountingMappings.chargeOffFraudExpenseAccount)("withTitle","47%")}}function twt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Buy down fee Expense")("glAccount",t.accountingMappings.buyDownExpenseAccount)("withTitle","47%")}}function iwt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",38),e&2){let t=w(3);g("accountTitle","Deferred income")("glAccount",t.accountingMappings.deferredIncomeLiabilityAccount)("withTitle","47%")}}function nwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.heading.Payment Type")))}function owt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function awt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function rwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.fundSourceAccount.name," ")}}function lwt(e,o){e&1&&b(0,"tr",27)}function swt(e,o){e&1&&b(0,"tr",28)}function cwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,41),F(6,nwt,3,3,"th",17)(7,owt,2,1,"td",18),Z(),X(8,42),F(9,awt,3,3,"th",17)(10,rwt,2,1,"td",18),Z(),F(11,lwt,1,0,"tr",23)(12,swt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(2),g("dataSource",t.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function pwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.catalogs.Fees")))}function mwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function dwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function uwt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),v(" ",t.incomeAccount.name," ")}}function fwt(e,o){if(e&1&&(l(0,"td",26),E(1,uwt,2,1,"span"),r()),e&2){let t=o.$implicit;a(),I(t.incomeAccount?1:-1)}}function hwt(e,o){e&1&&b(0,"tr",27)}function gwt(e,o){e&1&&b(0,"tr",28)}function _wt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,43),F(6,pwt,3,3,"th",17)(7,mwt,2,1,"td",18),Z(),X(8,44),F(9,dwt,3,3,"th",17)(10,fwt,2,1,"td",18),Z(),F(11,hwt,1,0,"tr",23)(12,gwt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Map Fees to Specific Income Accounts")," "),a(2),g("dataSource",t.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function Cwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function vwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function xwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function bwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function ywt(e,o){e&1&&b(0,"tr",27)}function Swt(e,o){e&1&&b(0,"tr",28)}function wwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,43),F(6,Cwt,3,3,"th",17)(7,vwt,2,1,"td",18),Z(),X(8,44),F(9,xwt,3,3,"th",17)(10,bwt,2,1,"td",18),Z(),F(11,ywt,1,0,"tr",23)(12,Swt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(2),g("dataSource",t.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function Pwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charge-off reason")))}function Twt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.reasonCodeValue.name," ")}}function Mwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function Dwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.expenseAccount.glCode,") ",t.expenseAccount.name," ")}}function Ewt(e,o){e&1&&b(0,"tr",27)}function Iwt(e,o){e&1&&b(0,"tr",28)}function Owt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,39),F(6,Pwt,3,3,"th",17)(7,Twt,2,1,"td",18),Z(),X(8,40),F(9,Mwt,3,3,"th",17)(10,Dwt,2,2,"td",18),Z(),F(11,Ewt,1,0,"tr",23)(12,Iwt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Map Charge-off reasons to Expense accounts")," "),a(2),g("dataSource",t.chargeOffReasonToExpenseAccountMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function Awt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function Fwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.classificationCodeValue.name," ")}}function kwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function Bwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function Rwt(e,o){e&1&&b(0,"tr",27)}function Nwt(e,o){e&1&&b(0,"tr",28)}function Lwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function Vwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.classificationCodeValue.name," ")}}function qwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function zwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function Hwt(e,o){e&1&&b(0,"tr",27)}function Gwt(e,o){e&1&&b(0,"tr",28)}function jwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,39),F(6,Lwt,3,3,"th",17)(7,Vwt,2,1,"td",18),Z(),X(8,40),F(9,qwt,3,3,"th",17)(10,zwt,2,2,"td",18),Z(),F(11,Hwt,1,0,"tr",23)(12,Gwt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.Capitalized Income classifications to Income accounts")," "),a(2),g("dataSource",t.capitalizedIncomeClassificationToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function $wt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.WriteOff Reason")))}function Uwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.reasonCodeValue.name," ")}}function Wwt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function Qwt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.expenseAccount.glCode,") ",t.expenseAccount.name," ")}}function Ywt(e,o){e&1&&b(0,"tr",27)}function Jwt(e,o){e&1&&b(0,"tr",28)}function Kwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),r(),l(4,"table",32),X(5,39),F(6,$wt,3,3,"th",17)(7,Uwt,2,1,"td",18),Z(),X(8,40),F(9,Wwt,3,3,"th",17)(10,Qwt,2,2,"td",18),Z(),F(11,Ywt,1,0,"tr",23)(12,Jwt,1,0,"tr",24),r()()),e&2){let t=w(4);a(2),v(" ",m(3,4,"labels.heading.WriteOff reasons to Expense accounts")," "),a(2),g("dataSource",t.writeOffReasonsToExpenseMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns)}}function Xwt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",12),c(2),p(3,"translate"),r(),b(4,"mat-divider",3),E(5,cwt,13,6,"div",10),E(6,_wt,13,6,"div",10),E(7,wwt,13,6,"div",10),E(8,Owt,13,6,"div",10),l(9,"div",10)(10,"h4",37),c(11),p(12,"translate"),r(),l(13,"table",32),X(14,39),F(15,Awt,3,3,"th",17)(16,Fwt,2,1,"td",18),Z(),X(17,40),F(18,kwt,3,3,"th",17)(19,Bwt,2,2,"td",18),Z(),F(20,Rwt,1,0,"tr",23)(21,Nwt,1,0,"tr",24),r()(),E(22,jwt,13,6,"div",10),E(23,Kwt,13,6,"div",10),r()),e&2){let t=w(3);a(2),h(m(3,12,"labels.heading.Advanced Accounting Rules")),a(2),g("inset",!0),a(),I((t.paymentChannelToFundSourceMappings==null?null:t.paymentChannelToFundSourceMappings.length)>0?5:-1),a(),I((t.feeToIncomeAccountMappings==null?null:t.feeToIncomeAccountMappings.length)>0?6:-1),a(),I((t.penaltyToIncomeAccountMappings==null?null:t.penaltyToIncomeAccountMappings.length)>0?7:-1),a(),I((t.chargeOffReasonToExpenseAccountMappings==null?null:t.chargeOffReasonToExpenseAccountMappings.length)>0?8:-1),a(3),v(" ",m(12,14,"labels.heading.Buydown Fee classifications to Income accounts")," "),a(2),g("dataSource",t.buydownFeeClassificationToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.chargeOffReasonExpenseDisplayedColumns),a(),g("matRowDefColumns",t.chargeOffReasonExpenseDisplayedColumns),a(),I((t.capitalizedIncomeClassificationToIncomeAccountMappings==null?null:t.capitalizedIncomeClassificationToIncomeAccountMappings.length)>0?22:-1),a(),I((t.writeOffReasonsToExpenseMappings==null?null:t.writeOffReasonsToExpenseMappings.length)>0?23:-1)}}function Zwt(e,o){if(e&1&&(l(0,"div",10)(1,"h4",37),c(2),p(3,"translate"),p(4,"translate"),r(),l(5,"div",10),b(6,"mifosx-gl-account-display",38),r(),l(7,"h4",37),c(8),p(9,"translate"),r(),l(10,"div",10),b(11,"mifosx-gl-account-display",38),E(12,WSt,4,9,"div",9),b(13,"mifosx-gl-account-display",38),r(),l(14,"h4",37),c(15),p(16,"translate"),r(),b(17,"mifosx-gl-account-display",38)(18,"mifosx-gl-account-display",38)(19,"mifosx-gl-account-display",38)(20,"mifosx-gl-account-display",38),E(21,QSt,1,3,"mifosx-gl-account-display",38),E(22,YSt,1,3,"mifosx-gl-account-display",38),E(23,JSt,1,3,"mifosx-gl-account-display",38),E(24,KSt,1,3,"mifosx-gl-account-display",38),E(25,XSt,1,3,"mifosx-gl-account-display",38),l(26,"h4",37),c(27),p(28,"translate"),r(),l(29,"div",9),b(30,"mifosx-gl-account-display",38)(31,"mifosx-gl-account-display",38),E(32,ZSt,1,3,"mifosx-gl-account-display",38),E(33,ewt,1,3,"mifosx-gl-account-display",38),E(34,twt,1,3,"mifosx-gl-account-display",38),l(35,"h4",14),c(36),p(37,"translate"),r(),b(38,"mifosx-gl-account-display",38),E(39,iwt,1,3,"mifosx-gl-account-display",38),E(40,Xwt,24,16,"div",9),r()()),e&2){let t=w(2);a(2),le(" ",m(3,47,"labels.heading.Assets")," / ",m(4,49,"labels.heading.Liabilities")," "),a(4),g("accountTitle","Fund source")("glAccount",t.accountingMappings.fundSourceAccount)("withTitle","47%"),a(2),h(m(9,51,"labels.heading.Assets")),a(3),g("accountTitle","Loan portfolio")("glAccount",t.accountingMappings.loanPortfolioAccount)("withTitle","47%"),a(),I(t.loanProduct.accountingRule.id===3||t.loanProduct.accountingRule.id===4?12:-1),a(),g("accountTitle","Transfer in suspense")("glAccount",t.accountingMappings.transfersInSuspenseAccount)("withTitle","47%"),a(2),h(m(16,53,"labels.heading.Income")),a(2),g("accountTitle","Income from Interest")("glAccount",t.accountingMappings.interestOnLoanAccount)("withTitle","47%"),a(),g("accountTitle","Income from fees")("glAccount",t.accountingMappings.incomeFromFeeAccount)("withTitle","47%"),a(),g("accountTitle","Income from penalties")("glAccount",t.accountingMappings.incomeFromPenaltyAccount)("withTitle","47%"),a(),g("accountTitle","Income from Recovery Repayments")("glAccount",t.accountingMappings.incomeFromRecoveryAccount)("withTitle","47%"),a(),I(t.accountingMappings.incomeFromChargeOffInterestAccount?21:-1),a(),I(t.accountingMappings.incomeFromChargeOffFeesAccount?22:-1),a(),I(t.accountingMappings.incomeFromChargeOffPenaltyAccount?23:-1),a(),I(t.accountingMappings.incomeFromCapitalizationAccount?24:-1),a(),I(t.accountingMappings.incomeFromBuyDownAccount?25:-1),a(2),h(m(28,55,"labels.heading.Expenses")),a(3),g("accountTitle","Losses written off")("glAccount",t.accountingMappings.writeOffAccount)("withTitle","47%"),a(),g("accountTitle","Expenses from Goodwill Credit")("glAccount",t.accountingMappings.goodwillCreditAccount)("withTitle","47%"),a(),I(t.accountingMappings.chargeOffExpenseAccount?32:-1),a(),I(t.accountingMappings.chargeOffFraudExpenseAccount?33:-1),a(),I(t.accountingMappings.buyDownExpenseAccount?34:-1),a(2),h(m(37,57,"labels.heading.Liabilities")),a(2),g("accountTitle","Over payment liability")("glAccount",t.accountingMappings.overpaymentLiabilityAccount)("withTitle","47%"),a(),I(t.accountingMappings.deferredIncomeLiabilityAccount?39:-1),a(),I(t.isAdvancedAccountingEnabled()?40:-1)}}function ePt(e,o){if(e&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),l(3,"h3",2),c(4),p(5,"translate"),r(),b(6,"mat-divider",3),l(7,"div",4)(8,"span",5),c(9),p(10,"translate"),r(),l(11,"span",6),c(12),r()(),E(13,Dyt,6,4,"div",4),E(14,Eyt,6,4,"div",4),l(15,"div",4)(16,"span",5),c(17),p(18,"translate"),r(),l(19,"span",6),c(20),p(21,"yesNo"),r()(),E(22,Iyt,7,6,"div",4),E(23,Oyt,7,6,"div",4),E(24,Ayt,6,4,"div",4),l(25,"h3",2),c(26),p(27,"translate"),r(),b(28,"mat-divider",3),l(29,"div",4)(30,"span",5),c(31),p(32,"translate"),r(),l(33,"span",6),c(34),r()(),l(35,"div",4)(36,"span",5),c(37),p(38,"translate"),r(),l(39,"span",6),c(40),r()(),l(41,"div",4)(42,"span",5),c(43),p(44,"translate"),r(),l(45,"span",6),c(46),r()(),l(47,"div",4)(48,"span",5),c(49),p(50,"translate"),r(),l(51,"span",6),c(52),r()(),l(53,"div",4)(54,"span",5),c(55),p(56,"translate"),r(),l(57,"span",6),c(58),r()(),l(59,"h3",2),c(60),p(61,"translate"),r(),b(62,"mat-divider",3),l(63,"div",4)(64,"span",5),c(65),p(66,"translate"),r(),l(67,"span",6),c(68),p(69,"formatNumber"),p(70,"formatNumber"),p(71,"formatNumber"),r()(),l(72,"div",4)(73,"span",5),c(74),p(75,"translate"),r(),l(76,"span",6),c(77),p(78,"yesNo"),r()(),E(79,Byt,6,5,"div",4),l(80,"div",4)(81,"span",5),c(82),p(83,"translate"),r(),l(84,"span",6),c(85),p(86,"translateKey"),r()(),l(87,"div",4)(88,"span",5),c(89),p(90,"translate"),r(),l(91,"span",6),c(92),r()(),l(93,"div",4)(94,"span",5),c(95),p(96,"translate"),r(),l(97,"span",6),c(98),p(99,"yesNo"),r()(),E(100,Ryt,7,8,"div",4),E(101,Nyt,26,18,"div"),l(102,"div",4)(103,"span",5),c(104),p(105,"translate"),r(),l(106,"span",6),c(107),p(108,"yesNo"),r()(),E(109,Jyt,22,6,"div",4),E(110,c3t,22,6,"div",7),E(111,y3t,22,6,"div",7),l(112,"div",4)(113,"span",5),c(114),p(115,"translate"),r(),l(116,"span",6),c(117),p(118,"translateKey"),r()(),E(119,S3t,7,8,"div",4),E(120,w3t,7,6,"div",4),l(121,"h3",2),c(122),p(123,"translate"),r(),b(124,"mat-divider",3),E(125,P3t,7,7,"div",4),l(126,"div",4)(127,"span",5),c(128),p(129,"translate"),r(),l(130,"span",6),c(131),p(132,"yesNo"),r()(),l(133,"div",4)(134,"span",5),c(135),p(136,"translate"),r(),l(137,"span",6),c(138),p(139,"translateKey"),r()(),l(140,"div",4)(141,"span",5),c(142),p(143,"translate"),r(),l(144,"span",6),c(145),p(146,"translateKey"),r()(),l(147,"div",4)(148,"span",5),c(149),p(150,"translate"),r(),l(151,"span",6),c(152),p(153,"yesNo"),r()(),l(154,"div",4)(155,"span",5),c(156),p(157,"translate"),r(),l(158,"span",6),c(159),p(160,"yesNo"),r()(),l(161,"h3",2),c(162),p(163,"translate"),r(),b(164,"mat-divider",3),l(165,"div",4)(166,"span",5),c(167),p(168,"translate"),r(),l(169,"span",6),c(170),p(171,"translateKey"),r()(),l(172,"div",4)(173,"span",5),c(174),p(175,"translate"),r(),l(176,"span",8),c(177),p(178,"translateKey"),r()(),E(179,T3t,6,4,"div",4),E(180,D3t,8,3,"div",4),E(181,I3t,8,3,"div",4),E(182,O3t,6,4,"div",4),l(183,"h3",2),c(184),p(185,"translate"),r(),b(186,"mat-divider",3),l(187,"div",4)(188,"span",5),c(189),p(190,"translate"),r(),l(191,"span",6),c(192),p(193,"yesNo"),r()(),E(194,A3t,6,4,"div",9),E(195,F3t,7,6,"div",9),E(196,k3t,12,11,"div",10),l(197,"h3",2),c(198),p(199,"translate"),r(),E(200,N3t,6,5,"div",4),E(201,L3t,7,6,"div",4),E(202,V3t,7,6,"div",4),E(203,q3t,6,4,"div",4),E(204,z3t,6,4,"div",4),E(205,H3t,6,4,"div",4),E(206,G3t,6,4,"div",4),l(207,"div",4)(208,"span",5),c(209),p(210,"translate"),r(),l(211,"span",6),c(212),p(213,"translateKey"),r()(),E(214,j3t,7,7,"div",4),l(215,"div",4)(216,"span",5),c(217),p(218,"translate"),r(),l(219,"span",6),c(220),p(221,"translateKey"),r()(),l(222,"div",4)(223,"span",5),c(224),p(225,"translate"),r(),l(226,"span",6),c(227),p(228,"yesNo"),r()(),E(229,$3t,6,4,"div",4),E(230,U3t,6,4,"div",4),l(231,"div",4)(232,"span",5),c(233),p(234,"translate"),r(),l(235,"span",6),c(236),p(237,"yesNo"),r()(),E(238,W3t,6,4,"div",4),l(239,"div",4)(240,"span",5),c(241),p(242,"translate"),r(),l(243,"span",6),c(244),p(245,"yesNo"),r()(),E(246,Q3t,6,4,"div",4),l(247,"div",4)(248,"span",5),c(249),p(250,"translate"),r(),l(251,"span",6),c(252),p(253,"yesNo"),r()(),l(254,"h3",2),c(255),p(256,"translate"),r(),b(257,"mat-divider",3),l(258,"div",4)(259,"span",5),c(260),p(261,"translate"),r(),l(262,"span",6),c(263),p(264,"yesNo"),r()(),E(265,rSt,38,28,"div"),l(266,"h3",2),c(267),p(268,"translate"),r(),b(269,"mat-divider",3),l(270,"div",4)(271,"span",5),c(272),p(273,"translate"),r(),l(274,"span",6),c(275),p(276,"yesNo"),r()(),E(277,cSt,8,6,"div",9),l(278,"h3",2),c(279),p(280,"translate"),r(),b(281,"mat-divider",3),l(282,"div",4)(283,"span",5),c(284),p(285,"translate"),r(),l(286,"span",6),c(287),p(288,"yesNo"),r()(),E(289,dSt,15,12),l(290,"h3",2),c(291),p(292,"translate"),r(),l(293,"div",11)(294,"span",5),c(295),p(296,"translate"),r(),l(297,"span",6),c(298),p(299,"yesNo"),r()(),E(300,uSt,7,6,"div",4),E(301,fSt,7,6,"div",4),l(302,"h3",2),c(303),p(304,"translate"),r(),b(305,"mat-divider",3),l(306,"div",4)(307,"span",5),c(308),p(309,"translate"),r(),l(310,"span",6),c(311),p(312,"yesNo"),r()(),E(313,hSt,57,48,"div"),E(314,RSt,41,20,"div",9),E(315,qSt,15,13,"div",10),E(316,$St,16,14,"div",10),l(317,"h3",12),c(318),p(319,"translate"),r(),b(320,"mat-divider",3),l(321,"div",13)(322,"span",5),c(323),p(324,"translate"),r(),l(325,"span",6),c(326),p(327,"translate"),r()(),E(328,USt,7,6,"div",13),E(329,Zwt,41,59,"div",10),r()),e&2){let t=w();a(2),h(t.loanProduct.name),a(2),h(m(5,140,"labels.heading.Details")),a(2),g("inset",!0),a(3),v("",m(10,142,"labels.inputs.Short Name"),":"),a(3),h(t.loanProduct.shortName),a(),I(t.loanProduct.externalId?13:-1),a(),I(t.loanProduct.fundId?14:-1),a(3),v("",m(18,144,"labels.inputs.Include in Customer Loan Counter"),":"),a(3),h(m(21,146,t.loanProduct.includeInBorrowerCycle)),a(2),I(t.loanProduct.startDate?22:-1),a(),I(t.loanProduct.closeDate?23:-1),a(),I(t.loanProduct.description?24:-1),a(2),h(m(27,148,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(32,150,"labels.inputs.Currency"),":"),a(3),h(t.loanProduct.currency.code),a(3),v("",m(38,152,"labels.inputs.Currency"),":"),a(3),h(t.loanProduct.currency.displayLabel),a(3),v("",m(44,154,"labels.inputs.Decimal Places"),":"),a(3),h(t.loanProduct.currency.decimalPlaces),a(3),v("",m(50,156,"labels.inputs.Currency in multiples of"),":"),a(3),h(t.loanProduct.currency.inMultiplesOf),a(3),v("",m(56,158,"labels.inputs.Installment in multiples of"),":"),a(3),h(t.loanProduct.installmentAmountInMultiplesOf),a(2),h(m(61,160,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(66,162,"labels.inputs.Principal"),":"),a(3),ea("",m(69,164,t.loanProduct.principal)," (Min ",m(70,166,t.loanProduct.minPrincipal?t.loanProduct.minPrincipal:t.loanProduct.principal)," : Max ",m(71,168,t.loanProduct.maxPrincipal?t.loanProduct.maxPrincipal:t.loanProduct.principal),") "),a(6),v("",m(75,170,"labels.inputs.Allow Approved / Disbursed Amounts Over Applied"),":"),a(3),h(m(78,172,t.loanProduct.allowApprovedDisbursedAmountsOverApplied)),a(2),I(t.loanProduct.allowApprovedDisbursedAmountsOverApplied?79:-1),a(3),v("",m(83,174,"labels.inputs.Installment day calculation from"),":"),a(3),h(Ft(86,176,t.loanProduct.repaymentStartDateType==null?null:t.loanProduct.repaymentStartDateType.value,"catalogs")),a(4),v("",m(90,179,"labels.inputs.Number of Repayments"),":"),a(3),h(t.loanProduct.numberOfRepayments+" (Min: "+(t.loanProduct.minNumberOfRepayments?t.loanProduct.minNumberOfRepayments:t.loanProduct.numberOfRepayments)+", Max: "+(t.loanProduct.maxNumberOfRepayments?t.loanProduct.maxNumberOfRepayments:t.loanProduct.numberOfRepayments)+")"),a(3),v("",m(96,181,"labels.inputs.Linked to floating interest rates"),":"),a(3),h(m(99,183,t.loanProduct.isLinkedToFloatingInterestRates)),a(2),I(t.loanProduct.isLinkedToFloatingInterestRates?-1:100),a(),I(t.loanProduct.isLinkedToFloatingInterestRates?101:-1),a(3),v("",m(105,185,"labels.inputs.Terms vary based on loan cycle"),":"),a(3),h(m(108,187,t.loanProduct.useBorrowerCycle)),a(2),I(t.loanProduct.principalVariationsForBorrowerCycle!=null&&t.loanProduct.principalVariationsForBorrowerCycle.length?109:-1),a(),I(t.loanProduct.numberOfRepaymentVariationsForBorrowerCycle!=null&&t.loanProduct.numberOfRepaymentVariationsForBorrowerCycle.length?110:-1),a(),I(t.loanProduct.interestRateVariationsForBorrowerCycle!=null&&t.loanProduct.interestRateVariationsForBorrowerCycle.length?111:-1),a(3),v("",m(115,189,"labels.inputs.Repay Every"),":"),a(3),le("",t.loanProduct.repaymentEvery," ",Ft(118,191,t.loanProduct.repaymentFrequencyType.value,"catalogs")),a(2),I(t.loanProduct.fixedLength?119:-1),a(),I(t.loanProduct.minimumDaysBetweenDisbursalAndFirstRepayment?120:-1),a(2),h(m(123,194,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(t.loanProduct.amortizationType!=null&&t.loanProduct.amortizationType.value?125:-1),a(3),v("",m(129,196,"labels.inputs.Is Equal Amortization"),":"),a(3),h(m(132,198,t.loanProduct.isEqualAmortization)),a(4),v("",m(136,200,"labels.inputs.Interest Method"),":"),a(3),h(Ft(139,202,t.loanProduct.interestType==null?null:t.loanProduct.interestType.value,"catalogs")),a(4),v("",m(143,205,"labels.inputs.Interest Calculation Period"),":"),a(3),h(Ft(146,207,t.loanProduct.interestCalculationPeriodType==null?null:t.loanProduct.interestCalculationPeriodType.value,"catalogs")),a(4),v("",m(150,210,"labels.inputs.Allow Partial Interest Calculation with same as repayment"),":"),a(3),h(m(153,212,t.loanProduct.allowPartialPeriodInterestCalculation)),a(4),v("",m(157,214,"labels.inputs.Is interest recognition on disbursement date?"),":"),a(3),h(m(160,216,t.loanProduct.interestRecognitionOnDisbursementDate)),a(3),h(m(163,218,"labels.inputs.Loan Schedule")),a(2),g("inset",!0),a(3),v("",m(168,220,"labels.inputs.Loan Schedule Type"),":"),a(3),h(Ft(171,222,t.loanProduct.loanScheduleType.value,"catalogs")),a(4),v("",m(175,225,"labels.inputs.Repayment Strategy"),":"),a(3),h(Ft(178,227,t.loanProduct.transactionProcessingStrategyName,"catalogs")),a(2),I(t.isAdvancedPaymentAllocation?179:-1),a(),I(t.isAdvancedPaymentAllocation?180:-1),a(),I(t.isAdvancedPaymentAllocation&&t.creditAllocations.length>0?181:-1),a(),I(t.isAdvancedPaymentAllocation&&(t.supportedInterestRefundTypes==null?null:t.supportedInterestRefundTypes.length)>0?182:-1),a(2),h(m(185,230,"labels.inputs.Down Payments")),a(2),g("inset",!0),a(3),v("",m(190,232,"labels.inputs.Enable Down Payments"),":"),a(3),h(m(193,234,t.loanProduct.enableDownPayment)),a(2),I(t.loanProduct.enableDownPayment?194:-1),a(),I(t.loanProduct.enableDownPayment?195:-1),a(),I(t.isAdvancedPaymentAllocation?196:-1),a(2),h(m(199,236,"labels.heading.Moratorium")),a(2),I(t.loanProduct.delinquencyBucket?200:-1),a(),I(t.loanProduct.delinquencyBucket?-1:201),a(),I(t.loanProduct.delinquencyBucket?202:-1),a(),I(t.loanProduct.graceOnPrincipalPayment?203:-1),a(),I(t.loanProduct.graceOnInterestPayment?204:-1),a(),I(t.loanProduct.graceOnInterestCharged?205:-1),a(),I(t.loanProduct.inArrearsTolerance?206:-1),a(3),v("",m(210,238,"labels.inputs.Days in year"),":"),a(3),h(Ft(213,240,t.loanProduct.daysInYearType==null?null:t.loanProduct.daysInYearType.value,"catalogs")),a(2),I(t.isAdvancedPaymentAllocation&&t.loanProduct.daysInYearCustomStrategy?214:-1),a(3),v("",m(218,243,"labels.inputs.Days in month"),":"),a(3),h(Ft(221,245,t.loanProduct.daysInMonthType==null?null:t.loanProduct.daysInMonthType.value,"catalogs")),a(4),v("",m(225,248,"labels.inputs.Allow fixing of the installment amount"),":"),a(3),h(m(228,250,t.loanProduct.canDefineInstallmentAmount)),a(2),I(t.loanProduct.graceOnArrearsAgeing?229:-1),a(),I(t.loanProduct.overdueDaysForNPA?230:-1),a(3),v("",m(234,252,"labels.inputs.Account moves out of NPA only after all arrears have been cleared"),":"),a(3),h(m(237,254,t.loanProduct.accountMovesOutOfNPAOnlyOnArrearsCompletion)),a(2),I(t.loanProduct.principalThresholdForLastInstallment?238:-1),a(3),v("",m(242,256,"labels.inputs.Variable Installments allowed"),":"),a(3),h(m(245,258,t.loanProduct.allowVariableInstallments)),a(2),I(t.loanProduct.allowVariableInstallments?246:-1),a(3),v("",m(250,260,"labels.inputs.Allowed to be used for providing Topup Loans"),":"),a(3),h(m(253,262,t.loanProduct.canUseForTopup)),a(3),h(m(256,264,"labels.heading.Interest Recalculation")),a(2),g("inset",!0),a(3),v("",m(261,266,"labels.inputs.Recalculate Interest"),":"),a(3),h(m(264,268,t.loanProduct.isInterestRecalculationEnabled)),a(2),I(t.loanProduct.isInterestRecalculationEnabled?265:-1),a(2),h(m(268,270,"labels.heading.Guarantee Requirements")),a(2),g("inset",!0),a(3),v("",m(273,272,"labels.inputs.Place Guarantee Funds On-Hold"),":"),a(3),h(m(276,274,t.loanProduct.holdGuaranteeFunds)),a(2),I(t.loanProduct.holdGuaranteeFunds?277:-1),a(2),h(m(280,276,"labels.heading.Loan Tranche Details")),a(2),g("inset",!0),a(3),v("",m(285,278,"labels.inputs.Enable Multiple Disbursals"),":"),a(3),h(m(288,280,t.loanProduct.multiDisburseLoan)),a(2),I(t.loanProduct.multiDisburseLoan?289:-1),a(2),h(m(292,282,"labels.heading.Event Settings")),a(4),v("",m(296,284,"labels.inputs.Use the Global Configurations values to the Repayment Event (notifications)"),":"),a(3),h(m(299,286,t.useDueForRepaymentsConfigurations)),a(2),I(t.loanProduct.dueDaysForRepaymentEvent?300:-1),a(),I(t.loanProduct.overDueDaysForRepaymentEvent?301:-1),a(2),h(m(304,288,"labels.inputs.Configurable Terms and Settings")),a(2),g("inset",!0),a(3),v("",m(309,290,"labels.inputs.Allow overriding select terms and settings in loan accounts"),":"),a(3),h(m(312,292,t.loanProduct.allowAttributeConfiguration)),a(2),I(t.loanProduct.allowAttributeConfiguration?313:-1),a(),I(t.loanProduct.charges.length?314:-1),a(),I(t.isAdvancedPaymentAllocation?315:-1),a(),I(t.isAdvancedPaymentAllocation?316:-1),a(2),h(m(319,294,"labels.heading.Accounting")),a(2),g("inset",!0),a(3),v("",m(324,296,"labels.inputs.Type"),":"),a(3),h(m(327,298,"labels.accounting."+t.getAccountingRuleName(t.accountingRuleData[t.accountingRule()-1]))),a(2),I(t.isAccountingAccrualBased?328:-1),a(),I(t.isAccountingEnabled()?329:-1)}}var Ou=(()=>{class e{constructor(){this.accounting=T(To),this.variationsDisplayedColumns=["valueConditionType","borrowerCycleNumber","minValue","defaultValue","maxValue"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.chargeOffReasonExpenseDisplayedColumns=["chargeOffReasonCodeValueId","expenseAccountId"],this.accountingRuleData=[],this.isAdvancedPaymentAllocation=!1,this.accountingMappings={},this.paymentChannelToFundSourceMappings=[],this.feeToIncomeAccountMappings=[],this.penaltyToIncomeAccountMappings=[],this.chargeOffReasonToExpenseAccountMappings=[],this.buydownFeeClassificationToIncomeAccountMappings=[],this.capitalizedIncomeClassificationToIncomeAccountMappings=[],this.writeOffReasonsToExpenseMappings=[]}ngOnInit(){this.accountingRuleData=this.accounting.getAccountingRulesForLoans(),this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.isAdvancedPaymentAllocation=Ea.isAdvancedPaymentAllocationStrategy(this.loanProduct.transactionProcessingStrategyCode),this.loanProduct.currency||this.loanProductsTemplate.currencyOptions.some(t=>{t.code===this.loanProduct.currencyCode&&(this.loanProduct.currency=t)}),this.action==="view")this.accountingMappings=this.loanProduct.accountingMappings,this.paymentChannelToFundSourceMappings=this.loanProduct.paymentChannelToFundSourceMappings||[],this.feeToIncomeAccountMappings=this.loanProduct.feeToIncomeAccountMappings||[],this.penaltyToIncomeAccountMappings=this.loanProduct.penaltyToIncomeAccountMappings||[],this.chargeOffReasonToExpenseAccountMappings=this.loanProduct.chargeOffReasonToExpenseAccountMappings||[],this.buydownFeeClassificationToIncomeAccountMappings=this.loanProduct.buydownFeeClassificationToIncomeAccountMappings||[],this.capitalizedIncomeClassificationToIncomeAccountMappings=this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings||[],this.writeOffReasonsToExpenseMappings=this.loanProduct.writeOffReasonsToExpenseMappings||[];else{if(this.accountingMappings={},this.loanProduct.accountingRule&&this.loanProduct.accountingRule>1||this.loanProductsTemplate.accountingRule.value!=="NONE"){let i=this.loanProductsTemplate.accountingMappingOptions.assetAccountOptions||[],s=this.loanProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],d=this.loanProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],u=this.loanProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],f=this.loanProductsTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions||[],_=this.loanProductsTemplate.chargeOffReasonOptions||[],C=this.loanProductsTemplate.writeOffReasonOptions||[],x=this.loanProductsTemplate.buydownFeeClassificationOptions||[],y=this.loanProductsTemplate.capitalizedIncomeClassificationOptions||[];if(this.accountingMappings={fundSourceAccount:this.glAccountLookUp(this.loanProduct.fundSourceAccountId,f),loanPortfolioAccount:this.glAccountLookUp(this.loanProduct.loanPortfolioAccountId,i),receivableInterestAccount:this.glAccountLookUp(this.loanProduct.receivableInterestAccountId,i),receivableFeeAccount:this.glAccountLookUp(this.loanProduct.receivableFeeAccountId,i),receivablePenaltyAccount:this.glAccountLookUp(this.loanProduct.receivablePenaltyAccountId,i),transfersInSuspenseAccount:this.glAccountLookUp(this.loanProduct.transfersInSuspenseAccountId,i),interestOnLoanAccount:this.glAccountLookUp(this.loanProduct.interestOnLoanAccountId,s),incomeFromFeeAccount:this.glAccountLookUp(this.loanProduct.incomeFromFeeAccountId,s),incomeFromPenaltyAccount:this.glAccountLookUp(this.loanProduct.incomeFromPenaltyAccountId,s),incomeFromRecoveryAccount:this.glAccountLookUp(this.loanProduct.incomeFromRecoveryAccountId,s),incomeFromChargeOffInterestAccount:this.glAccountLookUp(this.loanProduct.incomeFromChargeOffInterestAccountId,s),incomeFromChargeOffFeesAccount:this.glAccountLookUp(this.loanProduct.incomeFromChargeOffFeesAccountId,s),incomeFromChargeOffPenaltyAccount:this.glAccountLookUp(this.loanProduct.incomeFromChargeOffPenaltyAccountId,s),incomeFromCapitalizationAccount:this.glAccountLookUp(this.loanProduct.incomeFromCapitalizationAccountId,s),incomeFromBuyDownAccount:this.glAccountLookUp(this.loanProduct.incomeFromBuyDownAccountId,s),writeOffAccount:this.glAccountLookUp(this.loanProduct.writeOffAccountId,d),goodwillCreditAccount:this.glAccountLookUp(this.loanProduct.goodwillCreditAccountId,d),chargeOffExpenseAccount:this.glAccountLookUp(this.loanProduct.writeOffAccountId,d),chargeOffFraudExpenseAccount:this.glAccountLookUp(this.loanProduct.writeOffAccountId,d),buyDownExpenseAccount:this.glAccountLookUp(this.loanProduct.buyDownExpenseAccountId,d),overpaymentLiabilityAccount:this.glAccountLookUp(this.loanProduct.overpaymentLiabilityAccountId,u),deferredIncomeLiabilityAccount:this.glAccountLookUp(this.loanProduct.deferredIncomeLiabilityAccountId,u)},this.paymentChannelToFundSourceMappings=[],this.loanProduct.paymentChannelToFundSourceMappings?.length>0){let P=this.loanProductsTemplate.paymentTypeOptions||[];this.loanProduct.paymentChannelToFundSourceMappings.forEach(S=>{this.paymentChannelToFundSourceMappings.push({fundSourceAccount:this.glAccountLookUp(S.fundSourceAccountId,f),paymentType:this.paymentTypeLookUp(S.paymentTypeId,P)})})}this.feeToIncomeAccountMappings=[],this.loanProduct.feeToIncomeAccountMappings?.length>0&&this.loanProduct.feeToIncomeAccountMappings.forEach(P=>{this.feeToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),charge:this.chargeLookUp(P.chargeId,this.loanProductsTemplate.chargeOptions)})}),this.penaltyToIncomeAccountMappings=[],this.loanProduct.penaltyToIncomeAccountMappings?.length>0&&this.loanProduct.penaltyToIncomeAccountMappings.forEach(P=>{this.penaltyToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),charge:this.chargeLookUp(P.chargeId,this.loanProductsTemplate.penaltyOptions)})}),this.chargeOffReasonToExpenseAccountMappings=[],this.loanProduct.chargeOffReasonToExpenseAccountMappings?.length>0&&this.loanProduct.chargeOffReasonToExpenseAccountMappings.forEach(P=>{let S=this.optionDataLookUp(P.chargeOffReasonCodeValueId,_);this.chargeOffReasonToExpenseAccountMappings.push({expenseAccount:this.glAccountLookUp(P.expenseAccountId,d),reasonCodeValue:{id:S.id,name:S.value}})}),this.buydownFeeClassificationToIncomeAccountMappings=[],this.loanProduct.buydownfeeClassificationToIncomeAccountMappings?.length>0&&this.loanProduct.buydownfeeClassificationToIncomeAccountMappings.forEach(P=>{let S=this.optionDataLookUp(P.classificationCodeValueId,x);S!==null&&this.buydownFeeClassificationToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),classificationCodeValue:{id:S.id,name:S.value}})}),this.capitalizedIncomeClassificationToIncomeAccountMappings=[],this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings?.length>0&&this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings.forEach(P=>{let S=this.optionDataLookUp(P.classificationCodeValueId,y);S!==null&&this.capitalizedIncomeClassificationToIncomeAccountMappings.push({incomeAccount:this.glAccountLookUp(P.incomeAccountId,s),classificationCodeValue:{id:S.id,name:S.value}})}),this.writeOffReasonsToExpenseMappings=[],this.loanProduct.writeOffReasonsToExpenseMappings?.length>0&&this.loanProduct.writeOffReasonsToExpenseMappings.forEach(P=>{let S=this.optionDataLookUp(P.writeOffReasonCodeValueId,C);S!==null&&this.writeOffReasonsToExpenseMappings.push({expenseAccount:this.glAccountLookUp(P.expenseAccountId,d),reasonCodeValue:{id:S.id,name:S.value}})})}this.loanProduct.isInterestRecalculationEnabled&&(this.loanProduct.interestRecalculationData={interestRecalculationCompoundingType:this.optionDataLookUp(this.loanProduct.interestRecalculationCompoundingMethod,this.loanProductsTemplate.interestRecalculationCompoundingTypeOptions),rescheduleStrategyType:this.optionDataLookUp(this.loanProduct.rescheduleStrategyMethod,this.loanProductsTemplate.rescheduleStrategyTypeOptions),recalculationCompoundingFrequencyType:this.optionDataLookUp(this.loanProduct.recalculationCompoundingFrequencyType,this.loanProductsTemplate.interestRecalculationFrequencyTypeOptions),recalculationRestFrequencyType:this.optionDataLookUp(this.loanProduct.recalculationRestFrequencyType,this.loanProductsTemplate.interestRecalculationFrequencyTypeOptions),preClosureInterestCalculationStrategy:this.optionDataLookUp(this.loanProduct.preClosureInterestCalculationStrategy,this.loanProductsTemplate.preClosureInterestCalculationStrategyOptions),allowCompoundingOnEod:this.loanProduct.allowCompoundingOnEod,isArrearsBasedOnOriginalSchedule:this.loanProduct.isArrearsBasedOnOriginalSchedule,isCompoundingToBePostedAsTransaction:this.loanProduct.isCompoundingToBePostedAsTransaction,recalculationRestFrequencyInterval:this.loanProduct.recalculationRestFrequencyInterval,disallowInterestCalculationOnPastDue:this.loanProduct.disallowInterestCalculationOnPastDue});let t=this.optionDataLookUp(this.loanProduct.amortizationType,this.loanProductsTemplate.amortizationTypeOptions);this.loanProduct.amortizationType=t,t=this.optionDataLookUp(this.loanProduct.interestType,this.loanProductsTemplate.interestTypeOptions),this.loanProduct.interestType=t,t=this.optionDataLookUp(this.loanProduct.interestCalculationPeriodType,this.loanProductsTemplate.interestCalculationPeriodTypeOptions),this.loanProduct.interestCalculationPeriodType=t,(!this.loanProduct.repaymentFrequencyType||!this.loanProduct.repaymentFrequencyType.value)&&(t=this.optionDataLookUp(this.loanProduct.repaymentFrequencyType,this.loanProductsTemplate.repaymentFrequencyTypeOptions),this.loanProduct.repaymentFrequencyType=t),t=this.optionDataLookUp(this.loanProduct.daysInMonthType,this.loanProductsTemplate.daysInMonthTypeOptions),this.loanProduct.daysInMonthType=t,t=this.optionDataLookUp(this.loanProduct.daysInYearType,this.loanProductsTemplate.daysInYearTypeOptions),this.loanProduct.daysInYearType=t,this.isAdvancedPaymentAllocation&&this.loanProduct.daysInYearType?.id==1&&(t=this.optionDataLookUp(this.loanProduct.daysInYearCustomStrategy,this.loanProductsTemplate.daysInYearCustomStrategyOptions)),this.loanProduct.daysInYearCustomStrategy=t,this.isAdvancedPaymentAllocation&&this.loanProduct.enableIncomeCapitalization&&(t=this.optionDataLookUp(this.loanProduct.capitalizedIncomeCalculationType,this.loanProductsTemplate.capitalizedIncomeCalculationTypeOptions),this.loanProduct.capitalizedIncomeCalculationType=t,t=this.optionDataLookUp(this.loanProduct.capitalizedIncomeStrategy,this.loanProductsTemplate.capitalizedIncomeStrategyOptions),this.loanProduct.capitalizedIncomeStrategy=t,t=this.optionDataLookUp(this.loanProduct.capitalizedIncomeType,this.loanProductsTemplate.capitalizedIncomeTypeOptions),this.loanProduct.capitalizedIncomeType=t),this.isAdvancedPaymentAllocation&&this.loanProduct.enableBuyDownFee&&(t=this.optionDataLookUp(this.loanProduct.buyDownFeeCalculationType,this.loanProductsTemplate.buyDownFeeCalculationTypeOptions),this.loanProduct.buyDownFeeCalculationType=t,t=this.optionDataLookUp(this.loanProduct.buyDownFeeStrategy,this.loanProductsTemplate.buyDownFeeStrategyOptions),this.loanProduct.buyDownFeeStrategy=t,t=this.optionDataLookUp(this.loanProduct.buyDownFeeIncomeType,this.loanProductsTemplate.buyDownFeeIncomeTypeOptions),this.loanProduct.buyDownFeeIncomeType=t),t=this.optionDataLookUp(this.loanProduct.interestRateFrequencyType,this.loanProductsTemplate.interestRateFrequencyTypeOptions),this.loanProduct.interestRateFrequencyType=t,t=this.optionDataLookUp(this.loanProduct.repaymentStartDateType,this.loanProductsTemplate.repaymentStartDateTypeOptions),this.loanProduct.repaymentStartDateType=t,this.loanProduct.delinquencyBucketId&&(this.loanProduct.delinquencyBucket=this.delinquencyBucketLookUp(this.loanProduct.delinquencyBucketId,this.loanProductsTemplate.delinquencyBucketOptions));let n=this.codeNameLookUpByCode(this.loanProduct.transactionProcessingStrategyCode,this.loanProductsTemplate.transactionProcessingStrategyOptions);this.loanProduct.transactionProcessingStrategyName=n.name,(!this.loanProduct.loanScheduleType||!this.loanProduct.loanScheduleType.value)&&(this.loanProduct.loanScheduleType=this.optionDataLookUpByCode(this.loanProduct.loanScheduleType,this.loanProductsTemplate.loanScheduleTypeOptions)),this.isAdvancedPaymentAllocation&&((!this.loanProduct.loanScheduleProcessingType||!this.loanProduct.loanScheduleProcessingType.value)&&(this.loanProduct.loanScheduleProcessingType=this.optionDataLookUpByCode(this.loanProduct.loanScheduleProcessingType,this.loanProductsTemplate.loanScheduleProcessingTypeOptions)),this.loanProduct.chargeOffBehaviour.value||(this.loanProduct.chargeOffBehaviour=this.stringEnumOptionDataLookUp(this.loanProduct.chargeOffBehaviour,this.loanProductsTemplate.chargeOffBehaviourOptions)))}if(this.loanProduct.advancedPaymentAllocationTransactionTypes){let t=this.loanProduct.advancedPaymentAllocationTransactionTypes.concat(this.loanProduct.creditAllocationTransactionTypes),n=this.loanProduct.advancedPaymentAllocationTypes.concat(this.loanProduct.creditAllocationAllocationTypes);this.advancePaymentAllocationData={transactionTypes:t,allocationTypes:n,futureInstallmentAllocationRules:this.loanProduct.advancedPaymentAllocationFutureInstallmentAllocationRules}}else{let t=this.loanProductsTemplate.advancedPaymentAllocationTransactionTypes.concat(this.loanProductsTemplate.creditAllocationTransactionTypes),n=this.loanProductsTemplate.advancedPaymentAllocationTypes.concat(this.loanProductsTemplate.creditAllocationAllocationTypes);this.advancePaymentAllocationData={transactionTypes:t,allocationTypes:n,futureInstallmentAllocationRules:this.loanProductsTemplate.advancedPaymentAllocationFutureInstallmentAllocationRules}}}optionDataLookUp(t,n){let i=null;return n.some(s=>{s.id===t&&(i={id:s.id,code:s.code,value:s.value||s.name})}),i}stringEnumOptionDataLookUp(t,n){let i;return n.some(s=>{s.id===t&&(i={id:s.id,code:s.code,value:s.value})}),i}optionDataLookUpByCode(t,n){let i;return n.some(s=>{s.code===t&&(i={id:s.id||0,code:s.code,value:s.value||s.name})}),i}codeNameLookUpByCode(t,n){let i;return n.some(s=>{s.code===t&&(i={code:s.code,name:s.name})}),i}glAccountLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name,glCode:s.glCode})}),i}chargeLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name,penalty:s.penalty})}),i}paymentTypeLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name,isSystemDefined:!1})}),i}delinquencyBucketLookUp(t,n){let i=null;return t&&n.some(s=>{s.id===t&&(i={id:s.id,name:s.name})}),i}accountingRule(){return this.loanProduct.accountingRule.id?this.loanProduct.accountingRule.id:this.loanProduct.accountingRule}get isAccountingAccrualBased(){return this.accountingRule()===3||this.accountingRule()===4}isAccountingEnabled(){return this.accountingRule()>=2}isAdvancedAccountingEnabled(){return this.loanProduct.paymentChannelToFundSourceMappings?.length>0||this.loanProduct.feeToIncomeAccountMappings?.length>0||this.loanProduct.penaltyToIncomeAccountMappings?.length>0||this.loanProduct.chargeOffReasonToExpenseAccountMappings?.length>0||this.loanProduct.buydownfeeClassificationToIncomeAccountMappings?.length>0||this.loanProduct.capitalizedIncomeClassificationToIncomeAccountMappings?.length>0||this.loanProduct.writeOffReasonsToExpenseMappings?.length>0}getAccountingRuleName(t){return this.accounting.getAccountRuleName(t.toUpperCase())}mapHumanReadableValueStringEnumOptionDataList(t){return t.map(n=>n.value)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-summary"]],inputs:{action:"action",loanProduct:"loanProduct",loanProductsTemplate:"loanProductsTemplate",useDueForRepaymentsConfigurations:"useDueForRepaymentsConfigurations",paymentAllocations:"paymentAllocations",creditAllocations:"creditAllocations",supportedInterestRefundTypes:"supportedInterestRefundTypes"},features:[Uo],decls:1,vars:1,consts:[[1,"tab-container"],[1,"mat-h2","flex-100"],[1,"mat-h3","flex-fill"],[3,"inset"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"flex-fill"],[1,"flex-60","repayment-strategy"],[1,"flex-fill","layout-row-wrap","responsive-column"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"mat-h4","flex-fill"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","valueConditionType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","borrowerCycleNumber"],["matColumnDef","minValue"],["matColumnDef","defaultValue"],["matColumnDef","maxValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[3,"paymentAllocation","advancePaymentAllocationData"],[3,"creditAllocation","advancePaymentAllocationData"],[1,"flex-fill","layout-row","responsive-column"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],[1,"mat-h4","flex-100"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"],["matColumnDef","chargeOffReasonCodeValueId"],["matColumnDef","expenseAccountId"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&E(0,ePt,330,300,"div",0),n&2&&I(i.loanProduct?0:-1)},dependencies:[ue,fe,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Dr,Ky,as,xp,Pi,he,ki,$g,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%;div-margin-top:3px}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-h4[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:200;color:#4461e2}.repayment-strategy[_ngcontent-%COMP%]{color:#4461e2}"]})}}return e})();var tPt=()=>["../"],Au=(()=>{class e{constructor(){this.submitEvent=new bi,this.isAdvancedPaymentAllocation=!1}ngOnInit(){this.advancedPaymentAllocation()}ngOnChanges(t){this.advancedPaymentAllocation()}advancedPaymentAllocation(){this.isAdvancedPaymentAllocation=Ea.isAdvancedPaymentAllocationStrategy(this.loanProduct.transactionProcessingStrategyCode)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-product-preview-step"]],inputs:{loanProductsTemplate:"loanProductsTemplate",accountingRuleData:"accountingRuleData",loanProduct:"loanProduct"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:12,vars:18,consts:[[3,"action","loanProduct","loanProductsTemplate","useDueForRepaymentsConfigurations","paymentAllocations","creditAllocations","supportedInterestRefundTypes"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(b(0,"mifosx-loan-product-summary",0),l(1,"div",1)(2,"button",2),b(3,"fa-icon",3),c(4),p(5,"translate"),r(),l(6,"button",4),c(7),p(8,"translate"),r(),l(9,"button",5),R("click",function(){return i.submitEvent.emit()}),c(10),p(11,"translate"),r()()),n&2&&(g("action","preview")("loanProduct",i.loanProduct)("loanProductsTemplate",i.loanProductsTemplate)("useDueForRepaymentsConfigurations",i.loanProduct.useDueForRepaymentsConfigurations)("paymentAllocations",i.loanProduct.paymentAllocation)("creditAllocations",i.loanProduct.creditAllocation)("supportedInterestRefundTypes",i.loanProduct.supportedInterestRefundTypes),a(4),v(" ",m(5,11,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(17,tPt)),a(),v(" ",m(8,13,"labels.buttons.Cancel")," "),a(3),v(" ",m(11,15,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,xe,Ou,qi,ke,he],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-h4[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:200;color:#4461e2}.repayment-strategy[_ngcontent-%COMP%]{color:#4461e2}"]})}}return e})();function iPt(e,o){e&1&&b(0,"fa-icon",15)}function nPt(e,o){e&1&&b(0,"fa-icon",15)}function oPt(e,o){e&1&&b(0,"fa-icon",16)}function aPt(e,o){e&1&&b(0,"fa-icon",17)}function rPt(e,o){e&1&&b(0,"fa-icon",18)}function lPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function sPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function cPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function pPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST REFUND"))}function mPt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,pPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-interest-refund-step",19),R("supportedInterestRefundTypes",function(i){V(t);let s=w();return q(s.setSupportedInterestRefundTypes(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanProductInterestRefundForm),a(2),g("loanProductsTemplate",t.loanProductsTemplate)}}function dPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PAYMENT ALLOCATION"))}function uPt(e,o){if(e&1){let t=Y();l(0,"mat-step"),F(1,dPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-payment-strategy-step",20),R("setPaymentAllocation",function(i){V(t);let s=w();return q(s.setPaymentAllocation(i))})("setCreditAllocation",function(i){V(t);let s=w();return q(s.setCreditAllocation(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();a(2),g("advancedPaymentAllocations",t.advancedPaymentAllocations)("advancedCreditAllocations",t.advancedCreditAllocations)("advancedPaymentAllocationTransactionTypes",t.loanProductsTemplate.advancedPaymentAllocationTransactionTypes)("paymentAllocationOrderDefault",t.loanProductsTemplate.advancedPaymentAllocationTypes)("advancedCreditAllocationTransactionTypes",t.loanProductsTemplate.creditAllocationTransactionTypes)("creditAllocationOrderDefault",t.loanProductsTemplate.creditAllocationAllocationTypes)}}function fPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function hPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function gPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DEFERRED INCOME RECOGNITION"))}function _Pt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,gPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-capitalized-income-step",21),R("setViewChildForm",function(i){V(t);let s=w();return q(s.setViewChildForm(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanIncomeCapitalizationForm),a(2),g("deferredIncomeRecognition",t.deferredIncomeRecognition)("capitalizedIncomeCalculationTypeOptions",t.loanProductsTemplate.capitalizedIncomeCalculationTypeOptions)("capitalizedIncomeStrategyOptions",t.loanProductsTemplate.capitalizedIncomeStrategyOptions)("capitalizedIncomeTypeOptions",t.loanProductsTemplate.capitalizedIncomeTypeOptions)("buyDownFeeCalculationTypeOptions",t.loanProductsTemplate.buyDownFeeCalculationTypeOptions)("buyDownFeeStrategyOptions",t.loanProductsTemplate.buyDownFeeStrategyOptions)("buyDownFeeIncomeTypeOptions",t.loanProductsTemplate.buyDownFeeIncomeTypeOptions)}}function CPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function vPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function xPt(e,o){if(e&1){let t=Y();l(0,"mat-step",14),F(1,vPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-preview-step",22),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("loanProductsTemplate",t.loanProductsTemplate)("accountingRuleData",t.accountingRuleData)("loanProduct",t.loanProduct)}}var Xy=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.loanProducts=T(Ea),this.router=T(qe),this.accounting=T(To),this.advancedPaymentStrategy=T(gm),this.accountingRuleData=[],this.itemsByDefault=[],this.isAdvancedPaymentStrategy=!1,this.paymentAllocation=[],this.creditAllocation=[],this.supportedInterestRefundTypes=[],this.advancedPaymentAllocations=[],this.advancedCreditAllocations=[],this.deferredIncomeRecognition=null,this.loanIncomeCapitalizationForm=null;let t=this.loanProducts;this.route.data.subscribe(n=>{this.loanProductsTemplate=n.loanProductsTemplate;let i=this.loanProductsTemplate.accountingMappingOptions.assetAccountOptions||[],s=this.loanProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.loanProductsTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions=i.concat(s),this.itemsByDefault=t.setItemsByDefault(n.configurations),this.loanProductsTemplate.itemsByDefault=this.itemsByDefault,this.loanProductsTemplate=t.updateLoanProductDefaults(this.loanProductsTemplate,!1)})}ngOnInit(){this.accountingRuleData=this.accounting.getAccountingRulesForLoans(),this.buildAdvancedPaymentAllocation()}get loanProductDetailsForm(){return this.loanProductDetailsStep.loanProductDetailsForm}get loanProductCurrencyForm(){if(this.loanProductCurrencyStep!=null)return this.loanProductCurrencyStep.loanProductCurrencyForm}get loanProductInterestRefundForm(){if(this.loanProductInterestRefundStep!=null)return this.loanProductInterestRefundStep.loanProductInterestRefundForm}get loanProductTermsForm(){return this.loanProductTermsStep.loanProductTermsForm}advancePaymentStrategy(t){this.isAdvancedPaymentStrategy=Ea.isAdvancedPaymentAllocationStrategy(t),this.isAdvancedPaymentStrategy&&(this.deferredIncomeRecognition==null&&(this.deferredIncomeRecognition={}),this.loanProductsTemplate.enableIncomeCapitalization?this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:this.loanProductsTemplate.capitalizedIncomeCalculationTypeOptions[0],capitalizedIncomeStrategy:this.loanProductsTemplate.capitalizedIncomeStrategyOptions[0],capitalizedIncomeType:this.loanProductsTemplate.capitalizedIncomeTypeOptions[0]}:this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!1},this.loanProductsTemplate.enableBuyDownFee?this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!0,buyDownFeeCalculationType:this.loanProductsTemplate.buyDownFeeCalculationTypeOptions[0],buyDownFeeStrategy:this.loanProductsTemplate.buyDownFeeStrategyOptions[0],buyDownFeeIncomeType:this.loanProductsTemplate.buyDownFeeIncomeTypeOptions[0],merchantBuyDownFee:!0}:this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!1})}buildAdvancedPaymentAllocation(){this.advancedPaymentAllocations=this.advancedPaymentStrategy.buildAdvancedPaymentAllocationList(this.loanProductsTemplate)}setPaymentAllocation(t){this.paymentAllocation=t}setCreditAllocation(t){this.creditAllocation=t}setSupportedInterestRefundTypes(t){this.supportedInterestRefundTypes=t}setDeferredIncomeRecognition(t){this.isAdvancedPaymentStrategy&&(this.deferredIncomeRecognition=t)}setViewChildForm(t){let n=t.getRawValue();this.loanIncomeCapitalizationForm=t;let i=n.enableIncomeCapitalization?{enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:n.capitalizedIncomeCalculationType,capitalizedIncomeStrategy:n.capitalizedIncomeStrategy,capitalizedIncomeType:n.capitalizedIncomeType}:{enableIncomeCapitalization:!1},s=n.enableBuyDownFee?{enableBuyDownFee:!0,buyDownFeeCalculationType:n.buyDownFeeCalculationType,buyDownFeeStrategy:n.buyDownFeeStrategy,buyDownFeeIncomeType:n.buyDownFeeIncomeType,merchantBuyDownFee:n.merchantBuyDownFee}:{enableBuyDownFee:!1};this.setDeferredIncomeRecognition({capitalizedIncome:i,buyDownFee:s})}get loanProductSettingsForm(){return this.loanProductSettingsStep.loanProductSettingsForm}get loanProductAccountingForm(){return this.loanProductAccountingStep.loanProductAccountingForm}get loanProductFormValid(){return this.isAdvancedPaymentStrategy?this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanIncomeCapitalizationForm.valid&&this.loanProductAccountingForm.valid:this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanProductAccountingForm.valid}get loanProduct(){let t=at(at(at(at(at(at({},this.loanProductDetailsStep.loanProductDetails),this.loanProductCurrencyStep.loanProductCurrency),this.loanProductTermsStep.loanProductTerms),this.loanProductSettingsStep.loanProductSettings),this.loanProductChargesStep.loanProductCharges),this.loanProductAccountingStep.loanProductAccounting);return this.isAdvancedPaymentStrategy&&(t.paymentAllocation=this.paymentAllocation,t.creditAllocation=this.creditAllocation,t.supportedInterestRefundTypes=this.supportedInterestRefundTypes,this.deferredIncomeRecognition.capitalizedIncome!=null&&(t.enableIncomeCapitalization=this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization,this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization&&(t.capitalizedIncomeCalculationType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType,t.capitalizedIncomeStrategy=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy,t.capitalizedIncomeType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType)),this.deferredIncomeRecognition.buyDownFee!=null&&(t.enableBuyDownFee=this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee,this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee&&(t.buyDownFeeCalculationType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,t.buyDownFeeStrategy=this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,t.buyDownFeeIncomeType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,t.merchantBuyDownFee=this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee))),t}submit(){let t=this.loanProducts.buildPayload(this.loanProduct,this.itemsByDefault);t.useDueForRepaymentsConfigurations===!0&&(t.dueDaysForRepaymentEvent=null,t.overDueDaysForRepaymentEvent=null),this.isAdvancedPaymentStrategy?t.supportedInterestRefundTypes=this.mapStringEnumOptionToIdList(t.supportedInterestRefundTypes):(delete t.supportedInterestRefundTypes,delete t.daysInYearCustomStrategy),delete t.useDueForRepaymentsConfigurations,this.productsService.createLoanProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}mapStringEnumOptionToIdList(t){return t?t.map(n=>n.id):[]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-loan-product"]],viewQuery:function(n,i){if(n&1&&(Ee(cm,7),Ee(pm,7),Ee(hm,7),Ee(_m,7),Ee(mm,7),Ee(dm,7),Ee(um,7),Ee(fm,7)),n&2){let s;Te(s=Me())&&(i.loanProductDetailsStep=s.first),Te(s=Me())&&(i.loanProductCurrencyStep=s.first),Te(s=Me())&&(i.loanProductInterestRefundStep=s.first),Te(s=Me())&&(i.loanProductDeferredIncomeRecognitionStep=s.first),Te(s=Me())&&(i.loanProductTermsStep=s.first),Te(s=Me())&&(i.loanProductSettingsStep=s.first),Te(s=Me())&&(i.loanProductChargesStep=s.first),Te(s=Me())&&(i.loanProductAccountingStep=s.first)}},decls:30,vars:22,consts:[["loanProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"loanProductsTemplate"],[3,"advancePaymentStrategy","loanProductsTemplate","isLinkedToFloatingInterestRates"],[3,"loanProductsTemplate","currencyCode","multiDisburseLoan"],[3,"loanProductsTemplate","accountingRuleData","loanProductFormValid","deferredIncomeRecognition"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"supportedInterestRefundTypes","loanProductsTemplate"],[3,"setPaymentAllocation","setCreditAllocation","advancedPaymentAllocations","advancedCreditAllocations","advancedPaymentAllocationTransactionTypes","paymentAllocationOrderDefault","advancedCreditAllocationTransactionTypes","creditAllocationOrderDefault"],[3,"setViewChildForm","deferredIncomeRecognition","capitalizedIncomeCalculationTypeOptions","capitalizedIncomeStrategyOptions","capitalizedIncomeTypeOptions","buyDownFeeCalculationTypeOptions","buyDownFeeStrategyOptions","buyDownFeeIncomeTypeOptions"],[3,"submitEvent","loanProductsTemplate","accountingRuleData","loanProduct"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,iPt,1,0,"ng-template",3)(4,nPt,1,0,"ng-template",4)(5,oPt,1,0,"ng-template",5)(6,aPt,1,0,"ng-template",6)(7,rPt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,lPt,2,3,"ng-template",9),b(10,"mifosx-loan-product-details-step",10),r(),l(11,"mat-step",8),F(12,sPt,2,3,"ng-template",9),b(13,"mifosx-loan-product-currency-step",10),r(),l(14,"mat-step",8),F(15,cPt,2,3,"ng-template",9),l(16,"mifosx-loan-product-settings-step",11),R("advancePaymentStrategy",function(u){return V(s),q(i.advancePaymentStrategy(u))}),r()(),E(17,mPt,4,2,"mat-step",8),E(18,uPt,4,6,"mat-step"),l(19,"mat-step",8),F(20,fPt,2,3,"ng-template",9),b(21,"mifosx-loan-product-terms-step",10),r(),l(22,"mat-step"),F(23,hPt,2,3,"ng-template",9),b(24,"mifosx-loan-product-charges-step",12),r(),E(25,_Pt,4,8,"mat-step",8),l(26,"mat-step",8),F(27,CPt,2,3,"ng-template",9),b(28,"mifosx-loan-product-accounting-step",13),r(),E(29,xPt,3,3,"mat-step",14),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.loanProductDetailsForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate),a(),g("stepControl",i.loanProductCurrencyForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate),a(),g("stepControl",i.loanProductSettingsForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate)("isLinkedToFloatingInterestRates",i.loanProductTermsForm.get("isLinkedToFloatingInterestRates")),a(),I(i.isAdvancedPaymentStrategy?17:-1),a(),I(i.isAdvancedPaymentStrategy?18:-1),a(),g("stepControl",i.loanProductTermsForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate),a(3),g("loanProductsTemplate",i.loanProductsTemplate)("currencyCode",i.loanProductCurrencyForm.get("currencyCode"))("multiDisburseLoan",i.loanProductSettingsForm.get("multiDisburseLoan")),a(),I(i.isAdvancedPaymentStrategy?25:-1),a(),g("stepControl",i.loanProductAccountingForm),a(2),g("loanProductsTemplate",i.loanProductsTemplate)("accountingRuleData",i.accountingRuleData)("loanProductFormValid",i.loanProductFormValid)("deferredIncomeRecognition",i.deferredIncomeRecognition),a(),I(i.loanProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,cm,pm,dm,hm,Iu,Jg,mm,um,_m,fm,Au,he],styles:[".container[_ngcontent-%COMP%]{max-width:86rem;width:96%;padding-bottom:30px}fa-icon[_ngcontent-%COMP%]{position:relative;left:5%}"]})}}return e})();var bPt=()=>["./general"],yPt=e=>["./datatables",e];function SPt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,yPt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function wPt(e,o){if(e&1&&F(0,SPt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var Zy=(()=>{class e{constructor(){this.route=T(Ie),this.loanProductDatatables=[],this.route.data.subscribe(t=>{this.loanProductDatatables=t.loanProductDatatables})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-loan-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,wPt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,bPt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.loanProductDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:90rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function PPt(e,o){e&1&&b(0,"fa-icon",16)}function TPt(e,o){e&1&&b(0,"fa-icon",16)}function MPt(e,o){e&1&&b(0,"fa-icon",17)}function DPt(e,o){e&1&&b(0,"fa-icon",18)}function EPt(e,o){e&1&&b(0,"fa-icon",19)}function IPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function OPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function APt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function FPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST REFUND"))}function kPt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,FPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-interest-refund-step",20),R("supportedInterestRefundTypes",function(i){V(t);let s=w();return q(s.setSupportedInterestRefundTypes(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanProductInterestRefundForm),a(2),g("loanProductsTemplate",t.loanProductAndTemplate)}}function BPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PAYMENT ALLOCATION"))}function RPt(e,o){if(e&1){let t=Y();l(0,"mat-step",12),F(1,BPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-payment-strategy-step",21),R("setPaymentAllocation",function(i){V(t);let s=w();return q(s.setPaymentAllocation(i))})("setCreditAllocation",function(i){V(t);let s=w();return q(s.setCreditAllocation(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();a(2),g("advancedPaymentAllocations",t.advancedPaymentAllocations)("advancedCreditAllocations",t.advancedCreditAllocations)("advancedPaymentAllocationTransactionTypes",t.loanProductAndTemplate.advancedPaymentAllocationTransactionTypes)("paymentAllocationOrderDefault",t.loanProductAndTemplate.advancedPaymentAllocationTypes)("advancedCreditAllocationTransactionTypes",t.loanProductAndTemplate.creditAllocationTransactionTypes)("creditAllocationOrderDefault",t.loanProductAndTemplate.creditAllocationAllocationTypes)}}function NPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function LPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function VPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DEFERRED INCOME RECOGNITION"))}function qPt(e,o){if(e&1){let t=Y();l(0,"mat-step",8),F(1,VPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-capitalized-income-step",22),R("setViewChildForm",function(i){V(t);let s=w();return q(s.setViewChildForm(i))}),r(),b(3,"mifosx-stepper-buttons"),r()}if(e&2){let t=w();g("stepControl",t.loanIncomeCapitalizationForm),a(2),g("deferredIncomeRecognition",t.deferredIncomeRecognition)("capitalizedIncomeCalculationTypeOptions",t.loanProductAndTemplate.capitalizedIncomeCalculationTypeOptions)("capitalizedIncomeStrategyOptions",t.loanProductAndTemplate.capitalizedIncomeStrategyOptions)("capitalizedIncomeTypeOptions",t.loanProductAndTemplate.capitalizedIncomeTypeOptions)("buyDownFeeCalculationTypeOptions",t.loanProductAndTemplate.buyDownFeeCalculationTypeOptions)("buyDownFeeStrategyOptions",t.loanProductAndTemplate.buyDownFeeStrategyOptions)("buyDownFeeIncomeTypeOptions",t.loanProductAndTemplate.buyDownFeeIncomeTypeOptions)}}function zPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function HPt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function GPt(e,o){if(e&1){let t=Y();l(0,"mat-step",15),F(1,HPt,2,3,"ng-template",9),l(2,"mifosx-loan-product-preview-step",23),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("loanProductsTemplate",t.loanProductAndTemplate)("accountingRuleData",t.accountingRuleData)("loanProduct",t.loanProduct)}}var e3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.loanProducts=T(Ea),this.router=T(qe),this.accounting=T(To),this.advancedPaymentStrategy=T(gm),this.accountingRuleData=[],this.itemsByDefault=[],this.isAdvancedPaymentStrategy=!1,this.wasPaymentAllocationChanged=!1,this.paymentAllocation=[],this.creditAllocation=[],this.advancedPaymentAllocations=[],this.advancedCreditAllocations=[],this.supportedInterestRefundTypes=[],this.deferredIncomeRecognition=null,this.loanIncomeCapitalizationForm=null;let t=this.loanProducts;this.route.data.subscribe(n=>{this.loanProductAndTemplate=n.loanProductAndTemplate;let i=this.loanProductAndTemplate.accountingMappingOptions.assetAccountOptions||[],s=this.loanProductAndTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.loanProductAndTemplate.accountingMappingOptions.assetAndLiabilityAccountOptions=i.concat(s),this.itemsByDefault=t.setItemsByDefault(n.configurations),this.loanProductAndTemplate.itemsByDefault=this.itemsByDefault})}ngOnInit(){this.accountingRuleData=this.accounting.getAccountingRulesForLoans(),this.buildAdvancedPaymentAllocation(),this.advancePaymentStrategy(this.loanProductAndTemplate.transactionProcessingStrategyCode),this.deferredIncomeRecognition==null&&(this.deferredIncomeRecognition={}),this.isAdvancedPaymentStrategy&&(this.paymentAllocation=this.loanProductAndTemplate.paymentAllocation,this.creditAllocation=this.loanProductAndTemplate.creditAllocation,this.supportedInterestRefundTypes=this.loanProductAndTemplate.supportedInterestRefundTypes,this.loanProductAndTemplate.enableIncomeCapitalization?this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:this.loanProductAndTemplate.capitalizedIncomeCalculationType.id,capitalizedIncomeStrategy:this.loanProductAndTemplate.capitalizedIncomeStrategy.id,capitalizedIncomeType:this.loanProductAndTemplate.capitalizedIncomeType.id}:this.deferredIncomeRecognition.capitalizedIncome={enableIncomeCapitalization:!1},this.loanProductAndTemplate.enableBuyDownFee?this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!0,buyDownFeeCalculationType:this.loanProductAndTemplate.buyDownFeeCalculationType.id,buyDownFeeStrategy:this.loanProductAndTemplate.buyDownFeeStrategy.id,buyDownFeeIncomeType:this.loanProductAndTemplate.buyDownFeeIncomeType.id,merchantBuyDownFee:this.loanProductAndTemplate.merchantBuyDownFee}:this.deferredIncomeRecognition.buyDownFee={enableBuyDownFee:!1})}get loanProductDetailsForm(){return this.loanProductDetailsStep.loanProductDetailsForm}get loanProductCurrencyForm(){return this.loanProductCurrencyStep.loanProductCurrencyForm}get loanProductTermsForm(){return this.loanProductTermsStep.loanProductTermsForm}get loanProductSettingsForm(){return this.loanProductSettingsStep.loanProductSettingsForm}get loanProductInterestRefundForm(){if(this.loanProductInterestRefundStep!=null)return this.loanProductInterestRefundStep.loanProductInterestRefundForm}setViewChildForm(t){this.loanIncomeCapitalizationForm=t;let n=this.loanIncomeCapitalizationForm.getRawValue(),i=n.enableIncomeCapitalization?{enableIncomeCapitalization:!0,capitalizedIncomeCalculationType:n.capitalizedIncomeCalculationType,capitalizedIncomeStrategy:n.capitalizedIncomeStrategy,capitalizedIncomeType:n.capitalizedIncomeType}:{enableIncomeCapitalization:!1},s=n.enableBuyDownFee?{enableBuyDownFee:!0,buyDownFeeCalculationType:n.buyDownFeeCalculationType,buyDownFeeStrategy:n.buyDownFeeStrategy,buyDownFeeIncomeType:n.buyDownFeeIncomeType,merchantBuyDownFee:n.merchantBuyDownFee}:{enableBuyDownFee:!1};this.setDeferredIncomeRecognition({capitalizedIncome:i,buyDownFee:s})}advancePaymentStrategy(t){this.isAdvancedPaymentStrategy=Ea.isAdvancedPaymentAllocationStrategy(t)}buildAdvancedPaymentAllocation(){this.advancedPaymentAllocations=this.advancedPaymentStrategy.buildAdvancedPaymentAllocationList(this.loanProductAndTemplate),this.advancedCreditAllocations=this.advancedPaymentStrategy.buildAdvancedCreditAllocationList(this.loanProductAndTemplate)}setPaymentAllocation(t){this.paymentAllocation=t,this.wasPaymentAllocationChanged=!0}setCreditAllocation(t){this.creditAllocation=t,this.wasPaymentAllocationChanged=!0}setSupportedInterestRefundTypes(t){this.supportedInterestRefundTypes=t}paymentAllocationChanged(t){this.wasPaymentAllocationChanged=t}setDeferredIncomeRecognition(t){this.isAdvancedPaymentStrategy&&(this.deferredIncomeRecognition=t)}get loanProductAccountingForm(){return this.loanProductAccountingStep.loanProductAccountingForm}get loanProductFormValidAndNotPristine(){return this.isAdvancedPaymentStrategy?this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanProductAccountingForm.valid&&this.loanIncomeCapitalizationForm!=null&&this.loanIncomeCapitalizationForm.valid&&(!this.loanProductDetailsForm.pristine||!this.loanProductCurrencyForm.pristine||!this.loanProductTermsForm.pristine||!this.loanProductSettingsForm.pristine||!this.loanProductChargesStep.pristine||!this.loanProductAccountingForm.pristine||!this.loanIncomeCapitalizationForm.pristine||this.wasPaymentAllocationChanged):this.loanProductDetailsForm.valid&&this.loanProductCurrencyForm.valid&&this.loanProductTermsForm.valid&&this.loanProductSettingsForm.valid&&this.loanProductAccountingForm.valid&&(!this.loanProductDetailsForm.pristine||!this.loanProductCurrencyForm.pristine||!this.loanProductTermsForm.pristine||!this.loanProductSettingsForm.pristine||!this.loanProductChargesStep.pristine||!this.loanProductAccountingForm.pristine||this.wasPaymentAllocationChanged)}get loanProduct(){let t=at(at(at(at(at(at({},this.loanProductDetailsStep.loanProductDetails),this.loanProductCurrencyStep.loanProductCurrency),this.loanProductTermsStep.loanProductTerms),this.loanProductSettingsStep.loanProductSettings),this.loanProductChargesStep.loanProductCharges),this.loanProductAccountingStep.loanProductAccounting);return t.paymentAllocation=[],t.creditAllocation=[],t.supportedInterestRefundTypes=[],this.isAdvancedPaymentStrategy&&(t.paymentAllocation=this.paymentAllocation,t.creditAllocation=this.creditAllocation,t.supportedInterestRefundTypes=this.supportedInterestRefundTypes,this.deferredIncomeRecognition!=null&&(this.deferredIncomeRecognition.capitalizedIncome!=null&&(t.enableIncomeCapitalization=this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization,this.deferredIncomeRecognition.capitalizedIncome.enableIncomeCapitalization&&(t.capitalizedIncomeCalculationType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeCalculationType,t.capitalizedIncomeStrategy=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeStrategy,t.capitalizedIncomeType=this.deferredIncomeRecognition.capitalizedIncome.capitalizedIncomeType)),this.deferredIncomeRecognition.buyDownFee!=null&&(t.enableBuyDownFee=this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee,this.deferredIncomeRecognition.buyDownFee.enableBuyDownFee&&(t.buyDownFeeCalculationType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeCalculationType,t.buyDownFeeStrategy=this.deferredIncomeRecognition.buyDownFee.buyDownFeeStrategy,t.buyDownFeeIncomeType=this.deferredIncomeRecognition.buyDownFee.buyDownFeeIncomeType,t.merchantBuyDownFee=this.deferredIncomeRecognition.buyDownFee.merchantBuyDownFee)))),t}submit(){let t=this.loanProducts.buildPayload(this.loanProduct,this.itemsByDefault);t.useDueForRepaymentsConfigurations===!0&&(t.dueDaysForRepaymentEvent=null,t.overDueDaysForRepaymentEvent=null),this.isAdvancedPaymentStrategy?t.supportedInterestRefundTypes=this.mapStringEnumOptionToIdList(t.supportedInterestRefundTypes):(delete t.supportedInterestRefundTypes,delete t.daysInYearCustomStrategy),delete t.useDueForRepaymentsConfigurations,this.productsService.updateLoanProduct(this.loanProductAndTemplate.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}mapStringEnumOptionToIdList(t){return t.map(n=>n.id)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-loan-product"]],viewQuery:function(n,i){if(n&1&&(Ee(cm,7),Ee(pm,7),Ee(hm,7),Ee(_m,7),Ee(mm,7),Ee(dm,7),Ee(um,7),Ee(fm,7)),n&2){let s;Te(s=Me())&&(i.loanProductDetailsStep=s.first),Te(s=Me())&&(i.loanProductCurrencyStep=s.first),Te(s=Me())&&(i.loanProductInterestRefundStep=s.first),Te(s=Me())&&(i.loanProductCapitalizedIncomeStep=s.first),Te(s=Me())&&(i.loanProductTermsStep=s.first),Te(s=Me())&&(i.loanProductSettingsStep=s.first),Te(s=Me())&&(i.loanProductChargesStep=s.first),Te(s=Me())&&(i.loanProductAccountingStep=s.first)}},decls:30,vars:22,consts:[["loanProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed","",3,"stepControl"],["matStepLabel",""],[3,"loanProductsTemplate"],[3,"advancePaymentStrategy","loanProductsTemplate","isLinkedToFloatingInterestRates"],["completed",""],[3,"loanProductsTemplate","currencyCode","multiDisburseLoan"],[3,"loanProductsTemplate","accountingRuleData","loanProductFormValid","deferredIncomeRecognition"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"supportedInterestRefundTypes","loanProductsTemplate"],[3,"setPaymentAllocation","setCreditAllocation","advancedPaymentAllocations","advancedCreditAllocations","advancedPaymentAllocationTransactionTypes","paymentAllocationOrderDefault","advancedCreditAllocationTransactionTypes","creditAllocationOrderDefault"],[3,"setViewChildForm","deferredIncomeRecognition","capitalizedIncomeCalculationTypeOptions","capitalizedIncomeStrategyOptions","capitalizedIncomeTypeOptions","buyDownFeeCalculationTypeOptions","buyDownFeeStrategyOptions","buyDownFeeIncomeTypeOptions"],[3,"submitEvent","loanProductsTemplate","accountingRuleData","loanProduct"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,PPt,1,0,"ng-template",3)(4,TPt,1,0,"ng-template",4)(5,MPt,1,0,"ng-template",5)(6,DPt,1,0,"ng-template",6)(7,EPt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,IPt,2,3,"ng-template",9),b(10,"mifosx-loan-product-details-step",10),r(),l(11,"mat-step",8),F(12,OPt,2,3,"ng-template",9),b(13,"mifosx-loan-product-currency-step",10),r(),l(14,"mat-step",8),F(15,APt,2,3,"ng-template",9),l(16,"mifosx-loan-product-settings-step",11),R("advancePaymentStrategy",function(u){return V(s),q(i.advancePaymentStrategy(u))}),r()(),E(17,kPt,4,2,"mat-step",8),E(18,RPt,4,6,"mat-step",12),l(19,"mat-step",8),F(20,NPt,2,3,"ng-template",9),b(21,"mifosx-loan-product-terms-step",10),r(),l(22,"mat-step",12),F(23,LPt,2,3,"ng-template",9),b(24,"mifosx-loan-product-charges-step",13),r(),E(25,qPt,4,8,"mat-step",8),l(26,"mat-step",8),F(27,zPt,2,3,"ng-template",9),b(28,"mifosx-loan-product-accounting-step",14),r(),E(29,GPt,3,3,"mat-step",15),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.loanProductDetailsForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate),a(),g("stepControl",i.loanProductCurrencyForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate),a(),g("stepControl",i.loanProductSettingsForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate)("isLinkedToFloatingInterestRates",i.loanProductTermsForm.get("isLinkedToFloatingInterestRates")),a(),I(i.isAdvancedPaymentStrategy?17:-1),a(),I(i.isAdvancedPaymentStrategy?18:-1),a(),g("stepControl",i.loanProductTermsForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate),a(3),g("loanProductsTemplate",i.loanProductAndTemplate)("currencyCode",i.loanProductCurrencyForm.get("currencyCode"))("multiDisburseLoan",i.loanProductSettingsForm.get("multiDisburseLoan")),a(),I(i.isAdvancedPaymentStrategy?25:-1),a(),g("stepControl",i.loanProductAccountingForm),a(2),g("loanProductsTemplate",i.loanProductAndTemplate)("accountingRuleData",i.accountingRuleData)("loanProductFormValid",i.loanProductFormValidAndNotPristine)("deferredIncomeRecognition",i.deferredIncomeRecognition),a(),I(i.loanProductFormValidAndNotPristine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,cm,pm,dm,hm,Jg,Iu,mm,um,_m,fm,Au,he],styles:[".container[_ngcontent-%COMP%]{max-width:86rem;width:96%;padding-bottom:30px}"]})}}return e})();var jPt=["buttonSavingProduct"],$Pt=["templateButtonSavingProduct"],UPt=["savingProductTable"],WPt=["templateSavingProductTable"],QPt=()=>[10,25,50,100],YPt=()=>["create"],JPt=e=>[e];function KPt(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,YPt)),a(2),v(" ",m(3,2,"labels.text.Create Savings Product")," "))}function XPt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function ZPt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function eTt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function tTt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function iTt(e,o){e&1&&b(0,"tr",26)}function nTt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,JPt,t.id))}}function oTt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.text.Create Savings Product")),a(3),h(m(5,7,"labels.text.This option allows you to create new savings product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function aTt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter saving products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function rTt(e,o){if(e&1){let t=Y();l(0,"h4",28),c(1),p(2,"translate"),l(3,"a",32),c(4),p(5,"translate"),r()(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of saving products in the organization"),": "),a(3),h(m(5,7,"labels.heading.Savings Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var t3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName"],this.route.data.subscribe(t=>{this.savingProductsData=t.savingProducts})}ngOnInit(){this.dataSource=new Wt(this.savingProductsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showSavingsProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonSavingProduct,this.buttonSavingProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showSavingsProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateSavingProductTable,this.savingProductTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showSavingsProductsPage=!1,this.configurationWizardService.showSavingsProductsList=!1,this.configurationWizardService.showShareProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showSavingsProductsPage=!1,this.configurationWizardService.showSavingsProductsList=!1,this.configurationWizardService.showSavingsProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(jPt,5),Ee($Pt,5),Ee(UPt,5),Ee(WPt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonSavingProduct=s.first),Te(s=Me())&&(i.templateButtonSavingProduct=s.first),Te(s=Me())&&(i.savingProductTable=s.first),Te(s=Me())&&(i.templateSavingProductTable=s.first)}},decls:30,vars:9,consts:[["buttonSavingProduct",""],["filter",""],["savingProductTable",""],["templateButtonSavingProduct",""],["templateFilter",""],["templateSavingProductTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102629497/Savings+Products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,KPt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,XPt,3,3,"th",16)(17,ZPt,2,1,"td",17),Z(),X(18,18),F(19,eTt,3,3,"th",16)(20,tTt,2,1,"td",17),Z(),F(21,iTt,1,0,"tr",19)(22,nTt,1,3,"tr",20),r(),b(23,"mat-paginator",21),r()(),F(24,oTt,16,15,"ng-template",null,3,ti)(26,aTt,13,12,"ng-template",null,4,ti)(28,rTt,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_SAVINGSPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,QPt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Cm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductDetailsForm()}ngOnInit(){this.savingProductsTemplate&&this.savingProductDetailsForm.patchValue({name:this.savingProductsTemplate.name,shortName:this.savingProductsTemplate.shortName,description:this.savingProductsTemplate.description})}createSavingProductDetailsForm(){this.savingProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:[""]})}get savingProductDetails(){return this.savingProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-details-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:43,vars:46,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required","",3,"matTooltip"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",2)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",4),p(20,"translate"),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",5)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"textarea",6),p(33,"translate"),r()(),l(34,"div",7)(35,"button",8),b(36,"fa-icon",9),c(37),p(38,"translate"),r(),l(39,"button",10),c(40),p(41,"translate"),b(42,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.savingProductDetailsForm),a(4),h(m(5,18,"labels.inputs.Product Name")),a(2),g("matTooltip",Le(m(7,20,"tooltips.A unique identifier for the saving product"))),a(3),le(" ",m(10,22,"labels.inputs.Product Name")," ",m(11,24,"labels.commons.is")," "),a(4),h(m(14,26,"labels.commons.required")),a(4),h(m(18,28,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(20,30,"tooltips.A unique identifier for the saving product"))),a(3),le(" ",m(23,32,"labels.inputs.Short Name")," ",m(24,34,"labels.commons.is")," "),a(4),h(m(27,36,"labels.commons.required")),a(4),h(m(31,38,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(33,40,"tooltips.Provides additional information"))),a(5),v(" ",m(38,42,"labels.buttons.Previous")," "),a(3),v(" ",m(41,44,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,si,Ln,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function lTt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var vm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductCurrencyForm()}ngOnInit(){this.currencyData=this.savingProductsTemplate.currencyOptions,this.savingProductCurrencyForm.patchValue({currencyCode:this.savingProductsTemplate.currency.code||this.currencyData[0].code,digitsAfterDecimal:this.savingProductsTemplate.currency.code?this.savingProductsTemplate.currency.decimalPlaces:2,inMultiplesOf:this.savingProductsTemplate.currency.inMultiplesOf||""})}createSavingProductCurrencyForm(){this.savingProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:[""]})}get savingProductCurrency(){return this.savingProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-currency-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:52,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,lTt,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()()(),l(43,"div",7)(44,"button",8),b(45,"fa-icon",9),c(46),p(47,"translate"),r(),l(48,"button",10),c(49),p(50,"translate"),b(51,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.savingProductCurrencyForm),a(4),h(m(5,21,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,23,"tooltips.The currency to be used"))),a(2),we(i.currencyData),a(3),le(" ",m(12,25,"labels.inputs.Currency")," ",m(13,27,"labels.commons.is")," "),a(4),v("r",m(16,29,"labels.commons.equired")),a(4),h(m(20,31,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,33,"tooltips.Track and report saving account"))),a(3),le(" ",m(25,35,"labels.inputs.Decimal Places")," ",m(26,37,"labels.commons.is")," "),a(4),h(m(29,39,"labels.commons.required")),a(4),h(m(33,41,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,43,"tooltips.Amount to be rounded off"))),a(3),le(" ",m(38,45,"labels.inputs.Currency in multiples of")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(5),v(" ",m(47,51,"labels.buttons.Previous")," "),a(3),v(" ",m(50,53,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function sTt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Nominal Annual Interest")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cTt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Nominal Annual Interest")," must be zero or greater "))}function pTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function mTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function dTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function uTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}var xm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductTermsForm()}ngOnInit(){this.interestCompoundingPeriodTypeData=this.savingProductsTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingProductsTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingProductsTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingProductsTemplate.interestCalculationDaysInYearTypeOptions,this.savingProductTermsForm.patchValue({nominalAnnualInterestRate:this.savingProductsTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingProductsTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingProductsTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingProductsTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingProductsTemplate.interestCalculationDaysInYearType.id})}createSavingProductTermsForm(){this.savingProductTermsForm=this.formBuilder.group({nominalAnnualInterestRate:["",[ce.required,ce.min(0)]],interestCompoundingPeriodType:["",ce.required],interestPostingPeriodType:["",ce.required],interestCalculationType:["",ce.required],interestCalculationDaysInYearType:["",ce.required]})}get savingProductTerms(){return this.savingProductTermsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-terms-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:80,vars:80,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required","","min","0","step","0.01",3,"matTooltip"],[4,"ngIf"],[1,"flex-48","hide-lt-md"],["formControlName","interestCompoundingPeriodType","required","",3,"matTooltip"],[3,"value"],["formControlName","interestPostingPeriodType","required","",3,"matTooltip"],["formControlName","interestCalculationType","required","",3,"matTooltip"],["formControlName","interestCalculationDaysInYearType","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),F(8,sTt,7,9,"mat-error",4)(9,cTt,3,3,"mat-error",4),r(),b(10,"span",5),l(11,"mat-form-field",2)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",6),p(16,"translate"),Se(17,pTt,3,5,"mat-option",7,Pe),r(),l(19,"mat-error"),c(20),p(21,"translate"),p(22,"translate"),l(23,"strong"),c(24),p(25,"translate"),r()()(),l(26,"mat-form-field",2)(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",8),p(31,"translate"),Se(32,mTt,3,5,"mat-option",7,Pe),r(),l(34,"mat-error"),c(35),p(36,"translate"),p(37,"translate"),l(38,"strong"),c(39),p(40,"translate"),r()()(),l(41,"mat-form-field",2)(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",9),p(46,"translate"),Se(47,dTt,3,5,"mat-option",7,Pe),r(),l(49,"mat-error"),c(50),p(51,"translate"),p(52,"translate"),l(53,"strong"),c(54),p(55,"translate"),r()()(),l(56,"mat-form-field",2)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",10),p(61,"translate"),Se(62,uTt,3,5,"mat-option",7,Pe),r(),l(64,"mat-error"),c(65),p(66,"translate"),p(67,"translate"),l(68,"strong"),c(69),p(70,"translate"),r()()()(),l(71,"div",11)(72,"button",12),b(73,"fa-icon",13),c(74),p(75,"translate"),r(),l(76,"button",14),c(77),p(78,"translate"),b(79,"fa-icon",15),r()()()),n&2&&(g("formGroup",i.savingProductTermsForm),a(4),h(m(5,32,"labels.inputs.Nominal Annual Interest")),a(2),g("matTooltip",Le(m(7,34,"tooltips.The default interest rate set"))),a(2),g("ngIf",i.savingProductTermsForm.get("nominalAnnualInterestRate").hasError("required")),a(),g("ngIf",i.savingProductTermsForm.get("nominalAnnualInterestRate").hasError("min")),a(4),h(m(14,36,"labels.inputs.Interest Compounding Period")),a(2),g("matTooltip",Le(m(16,38,"tooltips.The period at which interest rate"))),a(2),we(i.interestCompoundingPeriodTypeData),a(3),le(" ",m(21,40,"labels.inputs.Interest Compounding Period")," ",m(22,42,"labels.commons.is")," "),a(4),h(m(25,44,"labels.commons.required")),a(4),h(m(29,46,"labels.inputs.Interest Posting Period")),a(2),g("matTooltip",Le(m(31,48,"tooltips.Interest rate is posted or credited to a saving account"))),a(2),we(i.interestPostingPeriodTypeData),a(3),le(" ",m(36,50,"labels.inputs.Interest Posting Period")," ",m(37,52,"labels.commons.is")," "),a(4),h(m(40,54,"labels.commons.required")),a(4),h(m(44,56,"labels.inputs.Interest Calculated using")),a(2),g("matTooltip",Le(m(46,58,"tooltips.The method used to calculate interest"))),a(2),we(i.interestCalculationTypeData),a(3),le(" ",m(51,60,"labels.inputs.Interest Calculated using")," ",m(52,62,"labels.commons.is")," "),a(4),h(m(55,64,"labels.commons.required")),a(4),h(m(59,66,"labels.inputs.Days in Year")),a(2),g("matTooltip",Le(m(61,68,"tooltips.To calculate interest"))),a(2),we(i.interestCalculationDaysInYearTypeData),a(3),le(" ",m(66,70,"labels.inputs.Days in Year")," ",m(67,72,"labels.commons.is")," "),a(4),h(m(70,74,"labels.commons.required")),a(5),v(" ",m(75,76,"labels.buttons.Previous")," "),a(3),v(" ",m(78,78,"labels.buttons.Next")," "))},dependencies:[ue,Js,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he,ki],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function fTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function hTt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function gTt(e,o){if(e&1&&(l(0,"mat-form-field",2)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",23),Se(5,hTt,2,2,"mat-option",7,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Tax Group")),a(3),we(t.taxGroupData),a(3),le(" ",m(9,6,"labels.inputs.Tax Group")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}function _Tt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",24)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",25),p(6,"translate"),r(),l(7,"mat-form-field",24)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",26),p(12,"translate"),r(),l(13,"mat-form-field",24)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",27),p(18,"translate"),r()()),e&2&&(a(3),h(m(4,9,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),a(2),g("matTooltip",Le(m(6,11,"tooltips.Sets the overdraft required for interest calculation"))),a(4),h(m(10,13,"labels.inputs.Nominal Annual Interest for Overdraft")),a(2),g("matTooltip",Le(m(12,15,"tooltips.Default interest rate on overdraft"))),a(4),h(m(16,17,"labels.inputs.Maximum Overdraft Amount Limit")),a(2),g("matTooltip",Le(m(18,19,"tooltips.Sets the maximum allowed overdraft amount"))))}function CTt(e,o){e&1&&(l(0,"div",16)(1,"mat-form-field",24)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",28),p(6,"translate"),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()(),l(14,"mat-form-field",24)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",29),p(19,"translate"),l(20,"mat-error"),c(21),p(22,"translate"),p(23,"translate"),l(24,"strong"),c(25),p(26,"translate"),r()()(),l(27,"mat-form-field",24)(28,"mat-label"),c(29),p(30,"translate"),r(),b(31,"input",30),p(32,"translate"),l(33,"mat-error"),c(34),p(35,"translate"),p(36,"translate"),l(37,"strong"),c(38),p(39,"translate"),r()()()()),e&2&&(a(3),h(m(4,18,"labels.inputs.Number of Days to Inactive sub-status")),a(2),g("matTooltip",Le(m(6,20,"tooltips.Inactive period to mark an account as Inactive"))),a(3),le(" ",m(9,22,"labels.inputs.Number of Days to Inactive sub-status")," ",m(10,24,"labels.commons.is")," "),a(4),h(m(13,26,"labels.commons.required")),a(4),h(m(17,28,"labels.inputs.Number of Days to Dormant sub-status")),a(2),g("matTooltip",Le(m(19,30,"tooltips.Inactive period to mark an account as Dormant"))),a(3),le(" ",m(22,32,"labels.inputs.Number of Days to Dormant sub-status")," ",m(23,34,"labels.commons.is")," "),a(4),h(m(26,36,"labels.commons.required")),a(4),h(m(30,38,"labels.inputs.Number of Days to Escheat")),a(2),g("matTooltip",Le(m(32,40,"tooltips.Inactive period to mark an account as Escheat"))),a(3),le(" ",m(35,42,"labels.inputs.Number of Days to Escheat")," ",m(36,44,"labels.commons.is")," "),a(4),h(m(39,46,"labels.commons.required")))}var bm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createSavingProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.lockinPeriodFrequencyTypeData=this.savingProductsTemplate.lockinPeriodFrequencyTypeOptions,this.taxGroupData=this.savingProductsTemplate.taxGroupOptions,this.savingProductSettingsForm.patchValue({minRequiredOpeningBalance:this.savingProductsTemplate.minRequiredOpeningBalance,lockinPeriodFrequency:this.savingProductsTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingProductsTemplate.lockinPeriodFrequencyType&&this.savingProductsTemplate.lockinPeriodFrequencyType.id,withdrawalFeeForTransfers:this.savingProductsTemplate.withdrawalFeeForTransfers,minBalanceForInterestCalculation:this.savingProductsTemplate.minBalanceForInterestCalculation,enforceMinRequiredBalance:this.savingProductsTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingProductsTemplate.minRequiredBalance,allowOverdraft:this.savingProductsTemplate.allowOverdraft,minOverdraftForInterestCalculation:this.savingProductsTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingProductsTemplate.nominalAnnualInterestRateOverdraft,overdraftLimit:this.savingProductsTemplate.overdraftLimit,withHoldTax:this.savingProductsTemplate.withHoldTax,taxGroupId:this.savingProductsTemplate.taxGroup&&this.savingProductsTemplate.taxGroup.id,isDormancyTrackingActive:this.savingProductsTemplate.isDormancyTrackingActive,daysToInactive:this.savingProductsTemplate.daysToInactive,daysToDormancy:this.savingProductsTemplate.daysToDormancy,daysToEscheat:this.savingProductsTemplate.daysToEscheat})}createSavingProductSettingsForm(){this.savingProductSettingsForm=this.formBuilder.group({minRequiredOpeningBalance:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],withdrawalFeeForTransfers:[!1],minBalanceForInterestCalculation:[""],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],allowOverdraft:[!1],withHoldTax:[!1],isDormancyTrackingActive:[!1]})}setConditionalControls(){this.savingProductSettingsForm.get("allowOverdraft").valueChanges.subscribe(t=>{t?(this.savingProductSettingsForm.addControl("minOverdraftForInterestCalculation",new it("")),this.savingProductSettingsForm.addControl("nominalAnnualInterestRateOverdraft",new it("")),this.savingProductSettingsForm.addControl("overdraftLimit",new it(""))):(this.savingProductSettingsForm.removeControl("minOverdraftForInterestCalculation"),this.savingProductSettingsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingProductSettingsForm.removeControl("overdraftLimit"))}),this.savingProductSettingsForm.get("withHoldTax").valueChanges.subscribe(t=>{t?this.savingProductSettingsForm.addControl("taxGroupId",new it("",ce.required)):this.savingProductSettingsForm.removeControl("taxGroupId")}),this.savingProductSettingsForm.get("isDormancyTrackingActive").valueChanges.subscribe(t=>{t?(this.savingProductSettingsForm.addControl("daysToInactive",new it("",ce.required)),this.savingProductSettingsForm.addControl("daysToDormancy",new it("",ce.required)),this.savingProductSettingsForm.addControl("daysToEscheat",new it("",ce.required))):(this.savingProductSettingsForm.removeControl("daysToInactive"),this.savingProductSettingsForm.removeControl("daysToDormancy"),this.savingProductSettingsForm.removeControl("daysToEscheat"))})}get savingProductSettings(){return this.savingProductSettingsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-settings-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate"},decls:74,vars:82,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["type","number","matInput","","formControlName","minRequiredOpeningBalance",3,"matTooltip"],[1,"flex-48","hide-lt-md"],["type","number","matInput","","formControlName","lockinPeriodFrequency",3,"matTooltip"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"flex-48","margin-v",3,"matTooltip"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation",3,"matTooltip"],["labelPosition","before","formControlName","enforceMinRequiredBalance",1,"flex-48","margin-v",3,"matTooltip"],["type","number","matInput","","formControlName","minRequiredBalance",3,"matTooltip"],["labelPosition","before","formControlName","withHoldTax",1,"flex-48","margin-v",3,"matTooltip"],[1,"flex-98"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","allowOverdraft",1,"flex-73","margin-b",3,"matTooltip"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["labelPosition","before","formControlName","isDormancyTrackingActive",1,"flex-73","margin-b",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","taxGroupId","required",""],[1,"flex-31"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation",3,"matTooltip"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft",3,"matTooltip"],["type","number","matInput","","formControlName","overdraftLimit",3,"matTooltip"],["type","number","matInput","","formControlName","daysToInactive","required","",3,"matTooltip"],["type","number","matInput","","formControlName","daysToDormancy","required","",3,"matTooltip"],["type","number","matInput","","formControlName","daysToEscheat","required","",3,"matTooltip"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),r(),b(8,"span",4),l(9,"mat-form-field",2)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",5),p(14,"translate"),r(),l(15,"mat-form-field",2)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",6),Se(20,fTt,3,5,"mat-option",7,Pe),r()(),l(22,"mat-checkbox",8),p(23,"translate"),c(24),p(25,"translate"),r(),l(26,"mat-form-field",2)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",9),p(31,"translate"),r(),l(32,"mat-checkbox",10),p(33,"translate"),c(34),p(35,"translate"),r(),l(36,"mat-form-field",2)(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",11),p(41,"translate"),r(),l(42,"mat-checkbox",12),p(43,"translate"),c(44),p(45,"translate"),r(),E(46,gTt,14,12,"mat-form-field",2),b(47,"mat-divider",13),l(48,"h3",14),c(49),p(50,"translate"),r(),l(51,"mat-checkbox",15),p(52,"translate"),c(53),p(54,"translate"),r(),E(55,_Tt,19,21,"div",16),b(56,"mat-divider",13),l(57,"h3",14),c(58),p(59,"translate"),r(),l(60,"mat-checkbox",17),p(61,"translate"),c(62),p(63,"translate"),r(),E(64,CTt,40,48,"div",16),r(),l(65,"div",18)(66,"button",19),b(67,"fa-icon",20),c(68),p(69,"translate"),r(),l(70,"button",21),c(71),p(72,"translate"),b(73,"fa-icon",22),r()()()),n&2&&(g("formGroup",i.savingProductSettingsForm),a(4),h(m(5,36,"labels.inputs.Minimum Opening Balance")),a(2),g("matTooltip",Le(m(7,38,"tooltips.Sets the minimum deposit amount"))),a(5),h(m(12,40,"labels.inputs.Lock-in Period")),a(2),g("matTooltip",Le(m(14,42,"tooltips.Used to indicate the length of time"))),a(4),h(m(18,44,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(2),g("matTooltip",Le(m(23,46,"tooltips.Indicates whether the withdrawal fee"))),a(2),v(" ",m(25,48,"labels.inputs.Apply Withdrawal Fee for Transfers")," "),a(4),h(m(29,50,"labels.inputs.Balance Required for Interest Calculation")),a(2),g("matTooltip",Le(m(31,52,"tooltips.Sets the balance required for interest calculation"))),a(2),g("matTooltip",Le(m(33,54,"tooltips.Indicates whether to enforce a minimum balance"))),a(2),v(" ",m(35,56,"labels.inputs.Enforce Minimum Balance")," "),a(4),h(m(39,58,"labels.inputs.Minimum Balance")),a(2),g("matTooltip",Le(m(41,60,"tooltips.Sets the minimum balance allowed for a saving account"))),a(2),g("matTooltip",Le(m(43,62,"tooltips.An boolean flag to attach"))),a(2),v(" ",m(45,64,"labels.inputs.Is Withhold Tax Applicable")," "),a(2),I(i.savingProductSettingsForm.value.withHoldTax?46:-1),a(3),h(m(50,66,"labels.inputs.Overdraft")),a(2),g("matTooltip",Le(m(52,68,"tooltips.Indicates whether saving accounts based on this saving product"))),a(2),v(" ",m(54,70,"labels.inputs.Is Overdraft Allowed")," "),a(2),I(i.savingProductSettingsForm.value.allowOverdraft?55:-1),a(3),h(m(59,72,"labels.inputs.Dormancy Tracking")),a(2),g("matTooltip",Le(m(61,74,"tooltips.Enables definition and tracking inactive Savings Accounts"))),a(2),v(" ",m(63,76,"labels.inputs.Enable Dormancy Tracking")," "),a(2),I(i.savingProductSettingsForm.value.isDormancyTrackingActive?64:-1),a(4),v(" ",m(69,78,"labels.buttons.Previous")," "),a(3),v(" ",m(72,80,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,qi,ke,Ji,he,ki],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function vTt(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function xTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function bTt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function yTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function STt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function wTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function PTt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function TTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function MTt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function DTt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ETt(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function ITt(e,o){e&1&&b(0,"tr",26)}function OTt(e,o){e&1&&b(0,"tr",27)}var ym=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"],this.pristine=!0}ngOnInit(){this.chargeData=this.savingProductsTemplate.chargeOptions,this.chargesDataSource=this.savingProductsTemplate.charges||[],this.pristine=!0,this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value="",this.pristine=!1}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get savingProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-charges-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,vTt,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,xTt,3,3,"th",9)(18,bTt,2,1,"td",10),Z(),X(19,11),F(20,yTt,3,3,"th",9)(21,STt,3,4,"td",10),Z(),X(22,12),F(23,wTt,3,3,"th",9)(24,PTt,3,3,"td",10),Z(),X(25,13),F(26,TTt,3,3,"th",9)(27,MTt,3,4,"td",10),Z(),X(28,14),F(29,DTt,3,3,"th",9)(30,ETt,3,0,"td",10),Z(),F(31,ITt,1,0,"tr",15)(32,OTt,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ki,ac,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function ATt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function FTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.feesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable")}}function kTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.penaltiesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function BTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.interestReceivableAccountId)("glAccountList",t.assetAccountData)("required",!1)("inputLabel","Interest Receivable")}}function RTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.interestPayableAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Interest Payable")}}function NTt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.savingProductAccountingForm.controls.escheatLiabilityId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Escheat liability")}}function LTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function VTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function qTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function zTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.combinedAccountData,"id","name")," ")}}function HTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function GTt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete(s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",35),r()()}}function jTt(e,o){e&1&&b(0,"tr",36)}function $Tt(e,o){e&1&&b(0,"tr",37)}function UTt(e,o){if(e&1&&(l(0,"table",21),X(1,23),F(2,LTt,3,3,"th",24)(3,VTt,3,6,"td",25),Z(),X(4,26),F(5,qTt,3,3,"th",24)(6,zTt,3,6,"td",25),Z(),X(7,27),F(8,HTt,3,3,"th",24)(9,GTt,5,0,"td",25),Z(),F(10,jTt,1,0,"tr",28)(11,$Tt,1,0,"tr",29),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function WTt(e,o){if(e&1){let t=Y();l(0,"div",17)(1,"button",18),R("click",function(){V(t);let i=w(4);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(2,"fa-icon",19),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Add")," "))}function QTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function YTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function JTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function KTt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function XTt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ZTt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function e4t(e,o){e&1&&b(0,"tr",36)}function t4t(e,o){e&1&&b(0,"tr",37)}function i4t(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,QTt,3,3,"th",24)(3,YTt,3,6,"td",25),Z(),X(4,39),F(5,JTt,3,3,"th",24)(6,KTt,3,6,"td",25),Z(),X(7,27),F(8,XTt,3,3,"th",24)(9,ZTt,5,0,"td",25),Z(),F(10,e4t,1,0,"tr",28)(11,t4t,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function n4t(e,o){if(e&1&&(l(0,"div",22)(1,"h4",16),c(2),p(3,"translate"),r(),E(4,WTt,5,3,"div",17),E(5,i4t,12,3,"table",21),r()),e&2){let t=w(3);a(2),h(m(3,3,"labels.heading.Map Fees to Specific Income Accounts")),a(2),I(t.existCharges()?4:-1),a(),I(t.feeToIncomeAccountMappings.value.length!==0?5:-1)}}function o4t(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function a4t(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function r4t(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function l4t(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function s4t(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function c4t(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function p4t(e,o){e&1&&b(0,"tr",36)}function m4t(e,o){e&1&&b(0,"tr",37)}function d4t(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,o4t,3,3,"th",24)(3,a4t,3,6,"td",25),Z(),X(4,39),F(5,r4t,3,3,"th",24)(6,l4t,3,6,"td",25),Z(),X(7,27),F(8,s4t,3,3,"th",24)(9,c4t,5,0,"td",25),Z(),F(10,p4t,1,0,"tr",28)(11,m4t,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function u4t(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",16),c(2),p(3,"translate"),r(),l(4,"div",17)(5,"button",18),R("click",function(){V(t);let i=w(3);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(6,"fa-icon",19),c(7),p(8,"translate"),r()(),E(9,d4t,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),v(" ",m(3,3,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?9:-1)}}function f4t(e,o){if(e&1){let t=Y();l(0,"div",14)(1,"div",15)(2,"h4",16),c(3),p(4,"translate"),r(),l(5,"div",17)(6,"button",18),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(7,"fa-icon",19),c(8),p(9,"translate"),r()()(),l(10,"div",20),E(11,UTt,12,3,"table",21),r(),E(12,n4t,6,5,"div",22),E(13,u4t,10,7,"div",22),r()}if(e&2){let t=w(2);a(3),v(" ",m(4,5,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(3),I(t.paymentChannelToFundSourceMappings.value.length!==0?11:-1),a(),I(t.existCharges()?12:-1),a(),I(t.existCharges()?13:-1)}}function h4t(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12)(5,"mifosx-gl-account-selector",12),E(6,FTt,1,4,"mifosx-gl-account-selector",12),E(7,kTt,1,4,"mifosx-gl-account-selector",12),E(8,BTt,1,4,"mifosx-gl-account-selector",12),b(9,"mat-divider",4),l(10,"h4",11),c(11),p(12,"translate"),r(),b(13,"mifosx-gl-account-selector",12)(14,"mifosx-gl-account-selector",12),E(15,RTt,1,4,"mifosx-gl-account-selector",12),E(16,NTt,1,4,"mifosx-gl-account-selector",12),l(17,"h4",11),c(18),p(19,"translate"),r(),b(20,"mifosx-gl-account-selector",12)(21,"mifosx-gl-account-selector",12)(22,"mat-divider",4),l(23,"h4",11),c(24),p(25,"translate"),r(),b(26,"mifosx-gl-account-selector",12)(27,"mifosx-gl-account-selector",12)(28,"mifosx-gl-account-selector",12)(29,"mat-divider",4),l(30,"mat-checkbox",13),c(31),p(32,"translate"),r(),E(33,f4t,14,9,"div",14),r()),e&2){let t=w();a(2),h(m(3,47,"labels.heading.Assets")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.savingsReferenceAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Saving reference"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.overdraftPortfolioControlId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Overdraft portfolio"),a(),I(t.isAccrualAccounting()?6:-1),a(),I(t.isAccrualAccounting()?7:-1),a(),I(t.isAccrualAccounting()&&t.allowOverdraft.value?8:-1),a(3),h(m(12,49,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.savingsControlAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Saving control"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Savings transfers in suspense"),a(),I(t.isAccrualAccounting()?15:-1),a(),I(t.isDormancyTrackingActive.value?16:-1),a(2),h(m(19,51,"labels.heading.Expenses")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.interestOnSavingsAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Interest on savings"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.writeOffAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Write-off"),a(3),h(m(25,53,"labels.heading.Income")),a(2),g("inputFormControl",t.savingProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(),g("inputFormControl",t.savingProductAccountingForm.controls.incomeFromInterestId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Overdraft Interest Income"),a(3),h(m(32,55,"labels.heading.Advanced Accounting Rules")),a(2),I(t.savingProductAccountingForm.value.advancedAccountingRules?33:-1)}}var Sm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.translateService=T(yi),this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.createsavingProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.chargeData=this.savingProductsTemplate.chargeOptions||[],this.penaltyData=this.savingProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.savingProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.savingProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.savingProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.savingProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.combinedAccountData=[...this.assetAccountData,...this.incomeAccountData,...this.expenseAccountData,...this.liabilityAccountData],this.combinedAccountData.sort((t,n)=>{let i=t.name.toLowerCase(),s=n.name.toLowerCase();return is?1:0}),this.savingProductAccountingForm.patchValue({accountingRule:this.savingProductsTemplate.accountingRule.id}),this.isCashOrAccrualAccounting()&&(this.savingProductAccountingForm.patchValue({savingsReferenceAccountId:this.savingProductsTemplate.accountingMappings.savingsReferenceAccount.id,overdraftPortfolioControlId:this.savingProductsTemplate.accountingMappings.overdraftPortfolioControl.id,savingsControlAccountId:this.savingProductsTemplate.accountingMappings.savingsControlAccount.id,transfersInSuspenseAccountId:this.savingProductsTemplate.accountingMappings.transfersInSuspenseAccount.id,interestOnSavingsAccountId:this.savingProductsTemplate.accountingMappings.interestOnSavingsAccount.id,writeOffAccountId:this.savingProductsTemplate.accountingMappings.writeOffAccount.id,incomeFromFeeAccountId:this.savingProductsTemplate.accountingMappings.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:this.savingProductsTemplate.accountingMappings.incomeFromPenaltyAccount.id,incomeFromInterestId:this.savingProductsTemplate.accountingMappings.incomeFromInterest.id,advancedAccountingRules:!!(this.savingProductsTemplate.paymentChannelToFundSourceMappings||this.savingProductsTemplate.feeToIncomeAccountMappings||this.savingProductsTemplate.penaltyToIncomeAccountMappings||this.savingProductsTemplate.accrualCharges)}),this.isAccrualAccounting()&&this.savingProductAccountingForm.patchValue({feesReceivableAccountId:this.savingProductsTemplate.accountingMappings.feeReceivableAccount.id,penaltiesReceivableAccountId:this.savingProductsTemplate.accountingMappings.penaltyReceivableAccount.id,interestReceivableAccountId:this.savingProductsTemplate.accountingMappings.interestReceivableAccount==null?"":this.savingProductsTemplate.accountingMappings.interestReceivableAccount.id,interestPayableAccountId:this.savingProductsTemplate.accountingMappings.interestPayableAccount.id}),this.isDormancyTrackingActive.value&&this.savingProductAccountingForm.patchValue({escheatLiabilityId:this.savingProductsTemplate.accountingMappings.escheatLiabilityAccount.id}),this.savingProductAccountingForm.setControl("paymentChannelToFundSourceMappings",this.formBuilder.array((this.savingProductsTemplate.paymentChannelToFundSourceMappings||[]).map(t=>({paymentTypeId:t.paymentType.id,fundSourceAccountId:t.fundSourceAccount.id})))),this.savingProductAccountingForm.setControl("feeToIncomeAccountMappings",this.formBuilder.array((this.savingProductsTemplate.feeToIncomeAccountMappings||[]).map(t=>({chargeId:t.charge.id,incomeAccountId:t.incomeAccount.id})))),this.savingProductAccountingForm.setControl("penaltyToIncomeAccountMappings",this.formBuilder.array((this.savingProductsTemplate.penaltyToIncomeAccountMappings||[]).map(t=>({chargeId:t.charge.id,incomeAccountId:t.incomeAccount.id})))))}createsavingProductAccountingForm(){this.savingProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}setConditionalControls(){this.savingProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2||t===3?(this.savingProductAccountingForm.addControl("savingsReferenceAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("overdraftPortfolioControlId",new it("",ce.required)),this.savingProductAccountingForm.addControl("savingsControlAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("interestOnSavingsAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("writeOffAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("incomeFromInterestId",new it("",ce.required)),this.savingProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),t===3&&(this.savingProductAccountingForm.addControl("feesReceivableAccountId",new it("",ce.required)),this.savingProductAccountingForm.addControl("penaltiesReceivableAccountId",new it("",ce.required)),this.allowOverdraft.value&&this.savingProductAccountingForm.addControl("interestReceivableAccountId",new it("")),this.allowOverdraft.valueChanges.subscribe(n=>{n?this.savingProductAccountingForm.addControl("interestReceivableAccountId",new it("")):this.savingProductAccountingForm.removeControl("interestReceivableAccountId")}),this.savingProductAccountingForm.addControl("interestPayableAccountId",new it("",ce.required))),t===2&&(this.savingProductAccountingForm.removeControl("feesReceivableAccountId"),this.savingProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.savingProductAccountingForm.removeControl("interestPayableAccountId")),this.isDormancyTrackingActive.value&&this.savingProductAccountingForm.addControl("escheatLiabilityId",new it("",ce.required)),this.isDormancyTrackingActive.valueChanges.subscribe(n=>{n?this.savingProductAccountingForm.addControl("escheatLiabilityId",new it("",ce.required)):this.savingProductAccountingForm.removeControl("escheatLiabilityId")}),this.savingProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.savingProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.savingProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.savingProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([]))):(this.savingProductAccountingForm.removeControl("paymentChannelToFundSourceMappings"),this.savingProductAccountingForm.removeControl("feeToIncomeAccountMappings"),this.savingProductAccountingForm.removeControl("penaltyToIncomeAccountMappings"))})):(this.savingProductAccountingForm.removeControl("savingsReferenceAccountId"),this.savingProductAccountingForm.removeControl("overdraftPortfolioControlId"),this.savingProductAccountingForm.removeControl("savingsControlAccountId"),this.savingProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.savingProductAccountingForm.removeControl("interestOnSavingsAccountId"),this.savingProductAccountingForm.removeControl("writeOffAccountId"),this.savingProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.savingProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.savingProductAccountingForm.removeControl("incomeFromInterestId"),this.savingProductAccountingForm.removeControl("advancedAccountingRules"),this.savingProductAccountingForm.removeControl("escheatLiabilityId"),this.savingProductAccountingForm.removeControl("feesReceivableAccountId"),this.savingProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.savingProductAccountingForm.removeControl("interestReceivableAccountId"),this.savingProductAccountingForm.removeControl("interestPayableAccountId"))})}get paymentChannelToFundSourceMappings(){return this.savingProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.savingProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.savingProductAccountingForm.get("penaltyToIncomeAccountMappings")}setSavingProductAccountingFormDirty(){this.savingProductAccountingForm.pristine&&this.savingProductAccountingForm.markAsDirty()}existCharges(){return this.chargeData.length>0}add(t,n){let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i,width:"20rem"}).afterClosed().subscribe(d=>{d.data&&(n.push(d.data),this.setSavingProductAccountingFormDirty())})}edit(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&(n.at(i).patchValue(u.data.value),this.setSavingProductAccountingFormDirty())})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&(t.removeAt(n),this.setSavingProductAccountingFormDirty())})}getData(t,n){switch(t){case"PaymentFundSource":return{title:this.translateService.instant("labels.heading.Configure Fund Sources for Payment Channels"),formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:this.translateService.instant("labels.heading.Map Fees to Specific Income Accounts"),formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:this.translateService.instant("labels.heading.Map Penalties to Specific Income Accounts"),formfields:this.getPenaltyIncomeFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:this.translateService.instant("labels.inputs.Payment Type"),value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:this.translateService.instant("labels.inputs.Fund Source"),value:t?t.fundSourceAccountId:this.combinedAccountData[0].id,options:{label:"name",value:"id",data:this.combinedAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:this.translateService.instant("labels.inputs.Fees"),value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:this.translateService.instant("labels.inputs.Income Account"),value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:this.translateService.instant("labels.inputs.Penalty"),value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:this.translateService.instant("labels.inputs.Income Account"),value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}get savingProductAccounting(){return this.savingProductAccountingForm.value}isCashOrAccrualAccounting(){return this.savingProductAccountingForm.value.accountingRule===2||this.savingProductAccountingForm.value.accountingRule===3}isAccrualAccounting(){return this.savingProductAccountingForm.value.accountingRule===3}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-accounting-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate",accountingRuleData:"accountingRuleData",isDormancyTrackingActive:"isDormancyTrackingActive",savingProductFormValid:"savingProductFormValid",allowOverdraft:"allowOverdraft"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","custom-gap","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-column.lt-md","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"flex-fill","layout-row-wrap","gap-1percent","responsive-column"],[1,"layout-row","flex-100"],[1,"mat-h4","flex-63"],[1,"flex-33"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],[1,"flex-100"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-100","layout-row-wrap","gap-0percent","responsive-column"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,ATt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,h4t,34,57,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.savingProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.isCashOrAccrualAccounting()?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.savingProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var g4t=()=>["../"];function _4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.savingProduct.description)}}function C4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Opening Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredOpeningBalance))}}function v4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),p(7,"translateKey"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(Ft(7,9,t.savingProduct.lockinPeriodFrequency+" "+$t(6,4,t.savingProduct.lockinPeriodFrequencyType,t.savingProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function x4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Balance Required for Interest Calculation"),":"),a(3),h(m(6,4,t.savingProduct.minBalanceForInterestCalculation))}}function b4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredBalance))}}function y4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h($t(6,4,t.savingProduct.taxGroupId,t.savingProductsTemplate.taxGroupOptions,"id","name"))}}function S4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),a(3),h(m(6,4,t.savingProduct.minOverdraftForInterestCalculation))}}function w4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),a(3),v("",m(6,4,t.savingProduct.nominalAnnualInterestRateOverdraft)," %")}}function P4t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),a(3),h(m(6,4,t.savingProduct.overdraftLimit))}}function T4t(e,o){if(e&1&&(l(0,"div",7)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r(),l(6,"span",5),c(7),p(8,"translate"),r(),l(9,"span",6),c(10),r(),l(11,"span",5),c(12),p(13,"translate"),r(),l(14,"span",6),c(15),r()()),e&2){let t=w();a(2),v("",m(3,6,"labels.inputs.Number of Days to Inactive sub-status"),":"),a(3),h(t.savingProduct.daysToInactive),a(2),v("",m(8,8,"labels.inputs.Number of Days to Dormant sub-status"),":"),a(3),h(t.savingProduct.daysToDormancy),a(2),v("",m(13,10,"labels.inputs.Number of Days to Escheat"),":"),a(3),h(t.savingProduct.daysToEscheat)}}function M4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function D4t(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function E4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function I4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function O4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function A4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function F4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function k4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function B4t(e,o){e&1&&b(0,"tr",25)}function R4t(e,o){e&1&&b(0,"tr",26)}function N4t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",14),X(6,15),F(7,M4t,3,3,"th",16)(8,D4t,2,1,"td",17),Z(),X(9,18),F(10,E4t,3,3,"th",16)(11,I4t,3,4,"td",17),Z(),X(12,19),F(13,O4t,3,3,"th",16)(14,A4t,3,3,"td",17),Z(),X(15,20),F(16,F4t,3,3,"th",16)(17,k4t,3,4,"td",17),Z(),F(18,B4t,1,0,"tr",21)(19,R4t,1,0,"tr",22),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Charges")),a(3),g("dataSource",t.savingProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function L4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function V4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.paymentTypeId,n.savingProductsTemplate.paymentTypeOptions,"id","name")," ")}}function q4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function z4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.savingProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")," ")}}function H4t(e,o){e&1&&b(0,"tr",25)}function G4t(e,o){e&1&&b(0,"tr",26)}function j4t(e,o){if(e&1&&(l(0,"div",27)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",29),X(5,30),F(6,L4t,3,3,"th",16)(7,V4t,3,6,"td",17),Z(),X(8,31),F(9,q4t,3,3,"th",16)(10,z4t,3,6,"td",17),Z(),F(11,H4t,1,0,"tr",21)(12,G4t,1,0,"tr",22),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fund Sources for Payment Channels")),a(2),g("dataSource",t.savingProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function $4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function U4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.savingProductsTemplate.chargeOptions,"id","name")," ")}}function W4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function Q4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function Y4t(e,o){e&1&&b(0,"tr",25)}function J4t(e,o){e&1&&b(0,"tr",26)}function K4t(e,o){if(e&1&&(l(0,"div",27)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",14),X(5,32),F(6,$4t,3,3,"th",16)(7,U4t,3,6,"td",17),Z(),X(8,33),F(9,W4t,3,3,"th",16)(10,Q4t,3,6,"td",17),Z(),F(11,Y4t,1,0,"tr",21)(12,J4t,1,0,"tr",22),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fees to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function X4t(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function Z4t(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.savingProductsTemplate.penaltyOptions,"id","name")," ")}}function eMt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function tMt(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function iMt(e,o){e&1&&b(0,"tr",25)}function nMt(e,o){e&1&&b(0,"tr",26)}function oMt(e,o){if(e&1&&(l(0,"div",27)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",14),X(5,32),F(6,X4t,3,3,"th",16)(7,Z4t,3,6,"td",17),Z(),X(8,33),F(9,eMt,3,3,"th",16)(10,tMt,3,6,"td",17),Z(),F(11,iMt,1,0,"tr",21)(12,nMt,1,0,"tr",22),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function aMt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),E(5,j4t,13,6,"div",27),E(6,K4t,13,6,"div",27),E(7,oMt,13,6,"div",27),r()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Advanced Accounting Rules")),a(3),I(t.savingProduct.paymentChannelToFundSourceMappings!=null&&t.savingProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.savingProduct.feeToIncomeAccountMappings!=null&&t.savingProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.savingProduct.penaltyToIncomeAccountMappings!=null&&t.savingProduct.penaltyToIncomeAccountMappings.length?7:-1)}}function rMt(e,o){if(e&1){let t=Y();l(0,"button",34),R("click",function(){V(t);let i=w();return q(i.submitEvent.emit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Submit")," "))}var Fu=(()=>{class e{constructor(){this.accounting=T(To),this.submitEvent=new bi,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.accountingMappings={}}ngOnInit(){this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.accountingRule=this.accounting.getAccountingRuleFrom(this.savingProduct.accountingRule),this.isCashOrAccrualAccounting()){let t=this.savingProductsTemplate.accountingMappingOptions.assetAccountOptions||[],n=this.savingProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],i=this.savingProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],s=this.savingProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.accountingMappings={savingsReferenceAccount:this.accounting.glAccountLookUp(this.savingProduct.savingsReferenceAccountId,t),overdraftPortfolioControl:this.accounting.glAccountLookUp(this.savingProduct.overdraftPortfolioControlId,t),savingsControlAccount:this.accounting.glAccountLookUp(this.savingProduct.savingsControlAccountId,s),transfersInSuspenseAccount:this.accounting.glAccountLookUp(this.savingProduct.transfersInSuspenseAccountId,s),escheatLiability:this.accounting.glAccountLookUp(this.savingProduct.escheatLiabilityId,s),interestOnSavingsAccount:this.accounting.glAccountLookUp(this.savingProduct.interestOnSavingsAccountId,i),writeOffAccount:this.accounting.glAccountLookUp(this.savingProduct.writeOffAccountId,i),incomeFromFeeAccount:this.accounting.glAccountLookUp(this.savingProduct.incomeFromFeeAccountId,n),incomeFromPenaltyAccount:this.accounting.glAccountLookUp(this.savingProduct.incomeFromPenaltyAccountId,n),incomeFromInterest:this.accounting.glAccountLookUp(this.savingProduct.incomeFromInterestId,n)},this.isAccrualAccounting()&&(this.accountingMappings.feesReceivableAccount=this.accounting.glAccountLookUp(this.savingProduct.feesReceivableAccountId,t),this.accountingMappings.penaltiesReceivableAccount=this.accounting.glAccountLookUp(this.savingProduct.penaltiesReceivableAccountId,t),this.accountingMappings.interestPayableAccount=this.accounting.glAccountLookUp(this.savingProduct.interestPayableAccountId,s))}}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccounting(this.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccounting(this.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-preview-step"]],inputs:{savingProductsTemplate:"savingProductsTemplate",accountingRuleData:"accountingRuleData",savingProduct:"savingProduct",taskPermission:"taskPermission"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:145,vars:144,consts:[[1,"responsive-column"],[1,"mat-h2","flex-100"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[3,"accountingRule","accountingMappings"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,_4t,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),p(48,"formatNumber"),r()(),l(49,"div",4)(50,"span",5),c(51),p(52,"translate"),r(),l(53,"span",6),c(54),p(55,"find"),p(56,"translateKey"),r()(),l(57,"div",4)(58,"span",5),c(59),p(60,"translate"),r(),l(61,"span",6),c(62),p(63,"find"),p(64,"translateKey"),r()(),l(65,"div",4)(66,"span",5),c(67),p(68,"translate"),r(),l(69,"span",6),c(70),p(71,"find"),p(72,"translateKey"),r()(),l(73,"div",4)(74,"span",5),c(75),p(76,"translate"),r(),l(77,"span",6),c(78),p(79,"find"),p(80,"translateKey"),r()(),l(81,"h3",3),c(82),p(83,"translate"),r(),b(84,"mat-divider",2),E(85,C4t,7,6,"div",4),E(86,v4t,8,12,"div",4),l(87,"div",4)(88,"span",5),c(89),p(90,"translate"),r(),l(91,"span",6),c(92),p(93,"yesNo"),r()(),E(94,x4t,7,6,"div",4),l(95,"div",4)(96,"span",5),c(97),p(98,"translate"),r(),l(99,"span",6),c(100),p(101,"yesNo"),r()(),E(102,b4t,7,6,"div",4),l(103,"div",4)(104,"span",5),c(105),p(106,"translate"),r(),l(107,"span",6),c(108),p(109,"yesNo"),r()(),E(110,y4t,7,9,"div",4),l(111,"div",4)(112,"span",5),c(113),p(114,"translate"),r(),l(115,"span",6),c(116),p(117,"yesNo"),r()(),E(118,S4t,7,6,"div",4),E(119,w4t,7,6,"div",4),E(120,P4t,7,6,"div",4),l(121,"div",4)(122,"span",5),c(123),p(124,"translate"),r(),l(125,"span",6),c(126),p(127,"yesNo"),r()(),E(128,T4t,16,12,"div",7),E(129,N4t,20,6,"div",7),l(130,"h3",3),c(131),p(132,"translate"),r(),b(133,"mat-divider",2)(134,"mifosx-view-savings-accounting-details",8),E(135,aMt,8,6,"div",7),r(),l(136,"div",9)(137,"button",10),b(138,"fa-icon",11),c(139),p(140,"translate"),r(),l(141,"button",12),c(142),p(143,"translate"),r(),F(144,rMt,3,3,"button",13),r()),n&2&&(a(2),h(i.savingProduct.name),a(3),h(m(6,52,"labels.inputs.Details")),a(5),v("",m(11,54,"labels.inputs.Short Name"),":"),a(3),h(i.savingProduct.shortName),a(),I(i.savingProduct.description?14:-1),a(2),h(m(17,56,"labels.inputs.Currency")),a(5),v("",m(22,58,"labels.inputs.Currency"),":"),a(3),h($t(25,60,i.savingProduct.currencyCode,i.savingProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,65,"labels.inputs.Decimal Places"),":"),a(3),h(i.savingProduct.digitsAfterDecimal),a(3),v("",m(35,67,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.savingProduct.inMultiplesOf),a(2),h(m(40,69,"labels.inputs.Terms")),a(5),v("",m(45,71,"labels.inputs.Nominal Annual Interest"),":"),a(3),v("",m(48,73,i.savingProduct.nominalAnnualInterestRate)," %"),a(4),v("",m(52,75,"labels.inputs.Interest Compounding Period"),":"),a(3),h(Ft(56,82,$t(55,77,i.savingProduct.interestCompoundingPeriodType,i.savingProductsTemplate.interestCompoundingPeriodTypeOptions,"id","value"),"catalogs")),a(5),v("",m(60,85,"labels.inputs.Interest Posting Period"),":"),a(3),h(Ft(64,92,$t(63,87,i.savingProduct.interestPostingPeriodType,i.savingProductsTemplate.interestPostingPeriodTypeOptions,"id","value"),"catalogs")),a(5),v("",m(68,95,"labels.inputs.Interest Calculated using"),":"),a(3),h(Ft(72,102,$t(71,97,i.savingProduct.interestCalculationType,i.savingProductsTemplate.interestCalculationTypeOptions,"id","value"),"catalogs")),a(5),v("",m(76,105,"labels.inputs.Days in Year"),":"),a(3),h(Ft(80,112,$t(79,107,i.savingProduct.interestCalculationDaysInYearType,i.savingProductsTemplate.interestCalculationDaysInYearTypeOptions,"id","value"),"catalogs")),a(4),h(m(83,115,"labels.inputs.Settings")),a(3),I(i.savingProduct.minRequiredOpeningBalance?85:-1),a(),I(i.savingProduct.lockinPeriodFrequency?86:-1),a(3),v("",m(90,117,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),a(3),h(m(93,119,i.savingProduct.withdrawalFeeForTransfers)),a(2),I(i.savingProduct.minBalanceForInterestCalculation?94:-1),a(3),v("",m(98,121,"labels.inputs.Enforce Minimum Balance"),":"),a(3),h(m(101,123,i.savingProduct.enforceMinRequiredBalance)),a(2),I(i.savingProduct.minRequiredBalance?102:-1),a(3),v("",m(106,125,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(109,127,i.savingProduct.withHoldTax)),a(2),I(i.savingProduct.withHoldTax?110:-1),a(3),v("",m(114,129,"labels.inputs.Is Overdraft Allowed"),":"),a(3),h(m(117,131,i.savingProduct.allowOverdraft)),a(2),I(i.savingProduct.minOverdraftForInterestCalculation?118:-1),a(),I(i.savingProduct.nominalAnnualInterestRateOverdraft?119:-1),a(),I(i.savingProduct.overdraftLimit?120:-1),a(3),v("",m(124,133,"labels.inputs.Enable Dormancy Tracking"),":"),a(3),h(m(127,135,i.savingProduct.isDormancyTrackingActive)),a(2),I(i.savingProduct.isDormancyTrackingActive?128:-1),a(),I(i.savingProduct.charges.length?129:-1),a(2),h(m(132,137,"labels.heading.Accounting")),a(3),g("accountingRule",i.accountingRule)("accountingMappings",i.accountingMappings),a(),I(i.savingProduct.advancedAccountingRules&&(i.savingProduct.paymentChannelToFundSourceMappings!=null&&i.savingProduct.paymentChannelToFundSourceMappings.length||i.savingProduct.feeToIncomeAccountMappings!=null&&i.savingProduct.feeToIncomeAccountMappings.length||i.savingProduct.penaltyToIncomeAccountMappings!=null&&i.savingProduct.penaltyToIncomeAccountMappings.length)?135:-1),a(4),v(" ",m(140,139,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(143,g4t)),a(),v(" ",m(143,141,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission",i.taskPermission))},dependencies:[ue,fe,Oe,xe,Ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,qi,ke,he,ki,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.interestCarts[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function lMt(e,o){e&1&&b(0,"fa-icon",14)}function sMt(e,o){e&1&&b(0,"fa-icon",14)}function cMt(e,o){e&1&&b(0,"fa-icon",15)}function pMt(e,o){e&1&&b(0,"fa-icon",16)}function mMt(e,o){e&1&&b(0,"fa-icon",17)}function dMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function uMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function fMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function hMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function gMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function _Mt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function CMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function vMt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,CMt,2,3,"ng-template",9),l(2,"mifosx-saving-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("savingProductsTemplate",t.savingProductsTemplate)("accountingRuleData",t.accountingRuleData)("savingProduct",t.savingProduct)("taskPermission","CREATE_SAVINGSPRODUCT")}}var i3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.savingProductsTemplate=t.savingProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get savingProductDetailsForm(){return this.savingProductDetailsStep.savingProductDetailsForm}get savingProductCurrencyForm(){return this.savingProductCurrencyStep.savingProductCurrencyForm}get savingProductTermsForm(){return this.savingProductTermsStep.savingProductTermsForm}get savingProductSettingsForm(){return this.savingProductSettingsStep.savingProductSettingsForm}get savingProductAccountingForm(){return this.savingProductAccountingStep.savingProductAccountingForm}get savingProductFormValid(){return this.savingProductDetailsForm.valid&&this.savingProductCurrencyForm.valid&&this.savingProductTermsForm.valid&&this.savingProductSettingsForm.valid&&this.savingProductAccountingForm.valid}get savingProduct(){return at(at(at(at(at(at({},this.savingProductDetailsStep.savingProductDetails),this.savingProductCurrencyStep.savingProductCurrency),this.savingProductTermsStep.savingProductTerms),this.savingProductSettingsStep.savingProductSettings),this.savingProductChargesStep.savingProductCharges),this.savingProductAccountingStep.savingProductAccounting)}submit(){let t=qt(at({},this.savingProduct),{charges:this.savingProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});delete t.advancedAccountingRules,this.productsService.createSavingProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-saving-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Cm,7),Ee(vm,7),Ee(xm,7),Ee(bm,7),Ee(ym,7),Ee(Sm,7)),n&2){let s;Te(s=Me())&&(i.savingProductDetailsStep=s.first),Te(s=Me())&&(i.savingProductCurrencyStep=s.first),Te(s=Me())&&(i.savingProductTermsStep=s.first),Te(s=Me())&&(i.savingProductSettingsStep=s.first),Te(s=Me())&&(i.savingProductChargesStep=s.first),Te(s=Me())&&(i.savingProductAccountingStep=s.first)}},decls:27,vars:17,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingProductsTemplate"],[3,"savingProductsTemplate","currencyCode"],[3,"savingProductsTemplate","accountingRuleData","isDormancyTrackingActive","savingProductFormValid","allowOverdraft"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingProductsTemplate","accountingRuleData","savingProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,lMt,1,0,"ng-template",3)(4,sMt,1,0,"ng-template",4)(5,cMt,1,0,"ng-template",5)(6,pMt,1,0,"ng-template",6)(7,mMt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,dMt,2,3,"ng-template",9),b(10,"mifosx-saving-product-details-step"),r(),l(11,"mat-step",8),F(12,uMt,2,3,"ng-template",9),b(13,"mifosx-saving-product-currency-step",10),r(),l(14,"mat-step",8),F(15,fMt,2,3,"ng-template",9),b(16,"mifosx-saving-product-terms-step",10),r(),l(17,"mat-step",8),F(18,hMt,2,3,"ng-template",9),b(19,"mifosx-saving-product-settings-step",10),r(),l(20,"mat-step"),F(21,gMt,2,3,"ng-template",9),b(22,"mifosx-saving-product-charges-step",11),r(),l(23,"mat-step",8),F(24,_Mt,2,3,"ng-template",9),b(25,"mifosx-saving-product-accounting-step",12),r(),E(26,vMt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.savingProductDetailsForm),a(3),g("stepControl",i.savingProductCurrencyForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate),a(),g("stepControl",i.savingProductTermsForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate),a(),g("stepControl",i.savingProductSettingsForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate),a(3),g("savingProductsTemplate",i.savingProductsTemplate)("currencyCode",i.savingProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.savingProductAccountingForm),a(2),g("savingProductsTemplate",i.savingProductsTemplate)("accountingRuleData",i.accountingRuleData)("isDormancyTrackingActive",i.savingProductSettingsForm.get("isDormancyTrackingActive"))("savingProductFormValid",i.savingProductFormValid)("allowOverdraft",i.savingProductSettingsForm.get("allowOverdraft")),a(),I(i.savingProductFormValid?26:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Cm,vm,xm,bm,ym,Sm,Fu,he],styles:["fa-icon[_ngcontent-%COMP%]{position:relative;left:5%}"]})}}return e})();var xMt=()=>["./general"],bMt=e=>["./datatables",e];function yMt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,bMt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function SMt(e,o){if(e&1&&F(0,yMt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var n3=(()=>{class e{constructor(){this.route=T(Ie),this.savingProductDatatables=[],this.route.data.subscribe(t=>{this.savingProductDatatables=[],t.savingProductDatatables.forEach(n=>{n.entitySubType==="Savings Product"&&this.savingProductDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-saving-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,SMt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,xMt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.savingProductDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function wMt(e,o){e&1&&b(0,"fa-icon",15)}function PMt(e,o){e&1&&b(0,"fa-icon",15)}function TMt(e,o){e&1&&b(0,"fa-icon",16)}function MMt(e,o){e&1&&b(0,"fa-icon",17)}function DMt(e,o){e&1&&b(0,"fa-icon",18)}function EMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function IMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function OMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function AMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function FMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function kMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function BMt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function RMt(e,o){if(e&1){let t=Y();l(0,"mat-step",14),F(1,BMt,2,3,"ng-template",9),l(2,"mifosx-saving-product-preview-step",19),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("savingProductsTemplate",t.savingProductAndTemplate)("accountingRuleData",t.accountingRuleData)("savingProduct",t.savingProduct)("taskPermission","UPDATE_SAVINGSPRODUCT")}}var o3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.savingProductAndTemplate=t.savingProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get savingProductDetailsForm(){return this.savingProductDetailsStep.savingProductDetailsForm}get savingProductCurrencyForm(){return this.savingProductCurrencyStep.savingProductCurrencyForm}get savingProductTermsForm(){return this.savingProductTermsStep.savingProductTermsForm}get savingProductSettingsForm(){return this.savingProductSettingsStep.savingProductSettingsForm}get savingProductAccountingForm(){return this.savingProductAccountingStep.savingProductAccountingForm}get savingProductFormValidAndNotPristine(){return this.savingProductDetailsForm.valid&&this.savingProductCurrencyForm.valid&&this.savingProductTermsForm.valid&&this.savingProductSettingsForm.valid&&this.savingProductAccountingForm.valid&&(!this.savingProductDetailsForm.pristine||!this.savingProductCurrencyForm.pristine||!this.savingProductTermsForm.pristine||!this.savingProductSettingsForm.pristine||!this.savingProductChargesStep.pristine||!this.savingProductAccountingForm.pristine)}get savingProduct(){return at(at(at(at(at(at({},this.savingProductDetailsStep.savingProductDetails),this.savingProductCurrencyStep.savingProductCurrency),this.savingProductTermsStep.savingProductTerms),this.savingProductSettingsStep.savingProductSettings),this.savingProductChargesStep.savingProductCharges),this.savingProductAccountingStep.savingProductAccounting)}submit(){let t=qt(at({},this.savingProduct),{charges:this.savingProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});delete t.advancedAccountingRules,this.productsService.updateSavingProduct(this.savingProductAndTemplate.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-saving-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Cm,7),Ee(vm,7),Ee(xm,7),Ee(bm,7),Ee(ym,7),Ee(Sm,7)),n&2){let s;Te(s=Me())&&(i.savingProductDetailsStep=s.first),Te(s=Me())&&(i.savingProductCurrencyStep=s.first),Te(s=Me())&&(i.savingProductTermsStep=s.first),Te(s=Me())&&(i.savingProductSettingsStep=s.first),Te(s=Me())&&(i.savingProductChargesStep=s.first),Te(s=Me())&&(i.savingProductAccountingStep=s.first)}},decls:27,vars:18,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed","",3,"stepControl"],["matStepLabel",""],[3,"savingProductsTemplate"],["completed",""],[3,"savingProductsTemplate","currencyCode"],[3,"savingProductsTemplate","accountingRuleData","isDormancyTrackingActive","savingProductFormValid","allowOverdraft"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingProductsTemplate","accountingRuleData","savingProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,wMt,1,0,"ng-template",3)(4,PMt,1,0,"ng-template",4)(5,TMt,1,0,"ng-template",5)(6,MMt,1,0,"ng-template",6)(7,DMt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,EMt,2,3,"ng-template",9),b(10,"mifosx-saving-product-details-step",10),r(),l(11,"mat-step",8),F(12,IMt,2,3,"ng-template",9),b(13,"mifosx-saving-product-currency-step",10),r(),l(14,"mat-step",8),F(15,OMt,2,3,"ng-template",9),b(16,"mifosx-saving-product-terms-step",10),r(),l(17,"mat-step",8),F(18,AMt,2,3,"ng-template",9),b(19,"mifosx-saving-product-settings-step",10),r(),l(20,"mat-step",11),F(21,FMt,2,3,"ng-template",9),b(22,"mifosx-saving-product-charges-step",12),r(),l(23,"mat-step",8),F(24,kMt,2,3,"ng-template",9),b(25,"mifosx-saving-product-accounting-step",13),r(),E(26,RMt,3,4,"mat-step",14),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.savingProductDetailsForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(),g("stepControl",i.savingProductCurrencyForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(),g("stepControl",i.savingProductTermsForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(),g("stepControl",i.savingProductSettingsForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate),a(3),g("savingProductsTemplate",i.savingProductAndTemplate)("currencyCode",i.savingProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.savingProductAccountingForm),a(2),g("savingProductsTemplate",i.savingProductAndTemplate)("accountingRuleData",i.accountingRuleData)("isDormancyTrackingActive",i.savingProductSettingsForm.get("isDormancyTrackingActive"))("savingProductFormValid",i.savingProductFormValidAndNotPristine)("allowOverdraft",i.savingProductSettingsForm.get("allowOverdraft")),a(),I(i.savingProductFormValidAndNotPristine?26:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Cm,vm,xm,bm,ym,Sm,Fu,he],encapsulation:2})}}return e})();var NMt=["buttonCreateShareProduct"],LMt=["templateButtonCreateShareProduct"],VMt=["shareProductsTable"],qMt=["templateShareProductsTable"],zMt=()=>[10,25,50,100],HMt=()=>["create"],GMt=e=>[e];function jMt(e,o){e&1&&(l(0,"button",23),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,HMt)),a(2),v(" ",m(3,2,"labels.buttons.Create Share Product")," "))}function $Mt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function UMt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function WMt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function QMt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function YMt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Shares")))}function JMt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalShares)}}function KMt(e,o){e&1&&b(0,"tr",27)}function XMt(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,GMt,t.id))}}function ZMt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Share Product")),a(3),h(m(5,7,"labels.text.This option allows you to create new share product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function e5t(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(32);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter share products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function t5t(e,o){if(e&1){let t=Y();l(0,"h4",29),c(1),p(2,"translate"),l(3,"a",33),c(4),p(5,"translate"),r()(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(30);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of share products in the organization"),": "),a(3),h(m(5,7,"labels.text.Share Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var a3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName","totalShares"],this.route.data.subscribe(t=>{this.shareProductsData=t.shareProducts.pageItems})}ngOnInit(){this.dataSource=new Wt(this.shareProductsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngAfterViewInit(){this.configurationWizardService.showShareProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateShareProduct,this.buttonCreateShareProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showShareProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateShareProductsTable,this.shareProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showShareProductsPage=!1,this.configurationWizardService.showShareProductsList=!1,this.configurationWizardService.showFixedDepositProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showShareProductsPage=!1,this.configurationWizardService.showShareProductsList=!1,this.configurationWizardService.showShareProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(NMt,5),Ee(LMt,5),Ee(VMt,5),Ee(qMt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateShareProduct=s.first),Te(s=Me())&&(i.templateButtonCreateShareProduct=s.first),Te(s=Me())&&(i.shareProductsTable=s.first),Te(s=Me())&&(i.templateShareProductsTable=s.first)}},decls:33,vars:9,consts:[["buttonCreateShareProduct",""],["filter",""],["shareProductsTable",""],["templateButtonCreateShareProduct",""],["templateFilter",""],["templateShareProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["matColumnDef","totalShares"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/129531946/Share+products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,jMt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,$Mt,3,3,"th",16)(17,UMt,2,1,"td",17),Z(),X(18,18),F(19,WMt,3,3,"th",16)(20,QMt,2,1,"td",17),Z(),X(21,19),F(22,YMt,3,3,"th",16)(23,JMt,2,1,"td",17),Z(),F(24,KMt,1,0,"tr",20)(25,XMt,1,3,"tr",21),r(),b(26,"mat-paginator",22),r()(),F(27,ZMt,16,15,"ng-template",null,3,ti)(29,e5t,13,12,"ng-template",null,4,ti)(31,t5t,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_SHAREPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,zMt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function i5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var wm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductDetailsForm()}ngOnInit(){this.shareProductsTemplate&&this.shareProductDetailsForm.patchValue({name:this.shareProductsTemplate.name,shortName:this.shareProductsTemplate.shortName,description:this.shareProductsTemplate.description})}createShareProductDetailsForm(){this.shareProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:["",ce.required]})}get shareProductDetails(){return this.shareProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-details-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:44,vars:47,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required","",3,"matTooltip"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],[1,"flex-98"],["matInput","","formControlName","description","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){if(n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()(),l(15,"mat-form-field",2)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",4),p(20,"translate"),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",5)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"textarea",6),p(33,"translate"),E(34,i5t,7,9,"mat-error"),r()(),l(35,"div",7)(36,"button",8),b(37,"fa-icon",9),c(38),p(39,"translate"),r(),l(40,"button",10),c(41),p(42,"translate"),b(43,"fa-icon",11),r()()()),n&2){let s;g("formGroup",i.shareProductDetailsForm),a(4),h(m(5,19,"labels.inputs.Product Name")),a(2),g("matTooltip",Le(m(7,21,"tooltips.A unique identifier for the share product"))),a(3),le(" ",m(10,23,"labels.inputs.Product Name")," ",m(11,25,"labels.commons.is")," "),a(4),h(m(14,27,"labels.commons.required")),a(4),h(m(18,29,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(20,31,"tooltips.A unique identifier for the share product"))),a(3),le(" ",m(23,33,"labels.inputs.Short Name")," ",m(24,35,"labels.commons.is")," "),a(4),h(m(27,37,"labels.commons.required")),a(4),h(m(31,39,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(33,41,"tooltips.Provides additional information"))),a(2),I((s=i.shareProductDetailsForm.get("description"))!=null&&s.hasError("required")?34:-1),a(4),v(" ",m(39,43,"labels.buttons.Previous")," "),a(3),v(" ",m(42,45,"labels.buttons.Next")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function n5t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var Pm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductCurrencyForm()}ngOnInit(){this.currencyData=this.shareProductsTemplate.currencyOptions,this.shareProductsTemplate.currency?this.shareProductCurrencyForm.patchValue({currencyCode:this.shareProductsTemplate.currency.code,digitsAfterDecimal:this.shareProductsTemplate.currency.decimalPlaces,inMultiplesOf:this.shareProductsTemplate.currency.inMultiplesOf}):this.shareProductCurrencyForm.patchValue({currencyCode:this.currencyData[0].code,digitsAfterDecimal:2})}createShareProductCurrencyForm(){this.shareProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:["",ce.required]})}get shareProductCurrency(){return this.shareProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-currency-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:52,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,n5t,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()()(),l(43,"div",7)(44,"button",8),b(45,"fa-icon",9),c(46),p(47,"translate"),r(),l(48,"button",10),c(49),p(50,"translate"),b(51,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.shareProductCurrencyForm),a(4),h(m(5,21,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,23,"tooltips.The currency to be used"))),a(2),we(i.currencyData),a(3),le(" ",m(12,25,"labels.inputs.Currency")," ",m(13,27,"labels.commons.is")," "),a(4),h(m(16,29,"labels.commons.required")),a(4),h(m(20,31,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,33,"tooltips.Track and report on share accounts"))),a(3),le(" ",m(25,35,"labels.inputs.Decimal Places")," ",m(26,37,"labels.commons.is")," "),a(4),h(m(29,39,"labels.commons.required")),a(4),h(m(33,41,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,43,"tooltips.Amount to be rounded off"))),a(3),le(" ",m(38,45,"labels.inputs.Currency in multiples of")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(5),v(" ",m(47,51,"labels.buttons.Previous")," "),a(3),v(" ",m(50,53,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function o5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Total Number of Shares")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function a5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4,"1"),r()()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Total Number of Shares")," must be at least "))}function r5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Shares to be Issued")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function l5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4,"1"),r()()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Shares to be Issued")," must be at least "))}function s5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Nominal Price")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function c5t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4,"1"),r()()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Nominal Price")," must be at least "))}var Tm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductTermsForm()}ngOnInit(){tF([this.shareProductTermsForm.get("sharesIssued").valueChanges,this.shareProductTermsForm.get("unitPrice").valueChanges]).subscribe(([t,n])=>{this.shareProductTermsForm.get("shareCapital").setValue(t*n)}),this.shareProductsTemplate&&this.shareProductTermsForm.patchValue({totalShares:this.shareProductsTemplate.totalShares,sharesIssued:this.shareProductsTemplate.totalSharesIssued,unitPrice:this.shareProductsTemplate.unitPrice,shareCapital:this.shareProductsTemplate.shareCapital})}createShareProductTermsForm(){this.shareProductTermsForm=this.formBuilder.group({totalShares:["",[ce.required,ce.min(1)]],sharesIssued:["",[ce.required,ce.min(1)]],unitPrice:["",[ce.required,ce.min(1)]],shareCapital:[""]})}get shareProductTerms(){return this.shareProductTermsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-terms-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:44,vars:44,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["type","number","matInput","","formControlName","totalShares","required","","min","1",3,"matTooltip"],["type","number","matInput","","formControlName","sharesIssued","required","","min","1",3,"matTooltip"],["type","number","matInput","","formControlName","unitPrice","required","","min","1",3,"matTooltip"],["type","number","matInput","","formControlName","shareCapital","readonly","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),E(8,o5t,7,9,"mat-error"),E(9,a5t,5,3,"mat-error"),r(),l(10,"mat-form-field",2)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",4),p(15,"translate"),E(16,r5t,7,9,"mat-error"),E(17,l5t,5,3,"mat-error"),r(),l(18,"mat-form-field",2)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",5),p(23,"translate"),E(24,s5t,7,9,"mat-error"),E(25,c5t,5,3,"mat-error"),r(),l(26,"mat-form-field",2)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",6),p(31,"translate"),l(32,"mat-hint"),c(33),p(34,"translate"),r()()(),l(35,"div",7)(36,"button",8),b(37,"fa-icon",9),c(38),p(39,"translate"),r(),l(40,"button",10),c(41),p(42,"translate"),b(43,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.shareProductTermsForm),a(4),h(m(5,22,"labels.inputs.Total Number of Shares")),a(2),g("matTooltip",Le(m(7,24,"tooltips.Total number of shares that a product is offering"))),a(2),I(i.shareProductTermsForm.get("totalShares").hasError("required")?8:-1),a(),I(i.shareProductTermsForm.get("totalShares").hasError("min")?9:-1),a(3),h(m(13,26,"labels.inputs.Shares to be Issued")),a(2),g("matTooltip",Le(m(15,28,"tooltips.Total number of shares that an orgranization"))),a(2),I(i.shareProductTermsForm.get("sharesIssued").hasError("required")?16:-1),a(),I(i.shareProductTermsForm.get("sharesIssued").hasError("min")?17:-1),a(3),h(m(21,30,"labels.inputs.Nominal/Unit Price")),a(2),g("matTooltip",Le(m(23,32,"tooltips.Unit/Nominal Price of each share"))),a(2),I(i.shareProductTermsForm.get("unitPrice").hasError("required")?24:-1),a(),I(i.shareProductTermsForm.get("unitPrice").hasError("min")?25:-1),a(3),h(m(29,34,"labels.inputs.Capital Value")),a(2),g("matTooltip",Le(m(31,36,"tooltips.Total Capital Value"))),a(3),v(" ",m(34,38,"labels.inputs.Shares to be Issued * Nominal Price (Auto calculated)")," "),a(5),v(" ",m(39,40,"labels.buttons.Previous")," "),a(3),v(" ",m(42,42,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Fe,Be,ut,qa,ze,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function p5t(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function m5t(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}var Mm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductSettingsForm()}ngOnInit(){this.minimumActivePeriodFrequencyTypeData=this.shareProductsTemplate.minimumActivePeriodFrequencyTypeOptions,this.lockinPeriodFrequencyTypeData=this.shareProductsTemplate.lockinPeriodFrequencyTypeOptions,this.shareProductSettingsForm.patchValue({minimumShares:this.shareProductsTemplate.minimumShares,nominalShares:this.shareProductsTemplate.nominalShares,maximumShares:this.shareProductsTemplate.maximumShares,minimumActivePeriodForDividends:this.shareProductsTemplate.minimumActivePeriod,minimumactiveperiodFrequencyType:this.shareProductsTemplate.minimumActivePeriodForDividendsTypeEnum&&this.shareProductsTemplate.minimumActivePeriodForDividendsTypeEnum.id,lockinPeriodFrequency:this.shareProductsTemplate.lockinPeriod,lockinPeriodFrequencyType:this.shareProductsTemplate.lockPeriodTypeEnum&&this.shareProductsTemplate.lockPeriodTypeEnum.id,allowDividendCalculationForInactiveClients:this.shareProductsTemplate.allowDividendCalculationForInactiveClients})}createShareProductSettingsForm(){this.shareProductSettingsForm=this.formBuilder.group({minimumShares:[""],nominalShares:["",ce.required],maximumShares:[""],minimumActivePeriodForDividends:[""],minimumactiveperiodFrequencyType:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowDividendCalculationForInactiveClients:[!1]})}get shareProductSettings(){return this.shareProductSettingsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-settings-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:76,vars:65,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-31"],["type","number","matInput","","formControlName","minimumShares"],["type","number","matInput","","formControlName","nominalShares","required",""],["type","number","matInput","","formControlName","maximumShares"],[1,"flex-48"],["type","number","matInput","","formControlName","minimumActivePeriodForDividends"],["formControlName","minimumactiveperiodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],["labelPosition","before","formControlName","allowDividendCalculationForInactiveClients",1,"flex-98","margin-v",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",5),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6),l(17,"mat-error"),c(18),p(19,"translate"),p(20,"translate"),l(21,"strong"),c(22),p(23,"translate"),r()()(),l(24,"mat-form-field",4)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",7),r(),l(29,"h4",2),c(30),p(31,"translate"),b(32,"i",3),p(33,"translate"),r(),l(34,"mat-form-field",8)(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",9),r(),l(39,"mat-form-field",8)(40,"mat-label"),c(41),p(42,"translate"),r(),l(43,"mat-select",10),Se(44,p5t,3,5,"mat-option",11,Pe),r()(),l(46,"h4",2),c(47),p(48,"translate"),b(49,"i",3),p(50,"translate"),r(),l(51,"mat-form-field",8)(52,"mat-label"),c(53),p(54,"translate"),r(),b(55,"input",12),r(),l(56,"mat-form-field",8)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",13),Se(61,m5t,3,5,"mat-option",11,Pe),r()(),l(63,"mat-checkbox",14),p(64,"translate"),c(65),p(66,"translate"),r()(),l(67,"div",15)(68,"button",16),b(69,"fa-icon",17),c(70),p(71,"translate"),r(),l(72,"button",18),c(73),p(74,"translate"),b(75,"fa-icon",19),r()()()),n&2&&(g("formGroup",i.shareProductSettingsForm),a(3),v(" ",m(4,25,"labels.inputs.Shares per Client")," "),a(2),g("matTooltip",Le(m(6,27,"tooltips.These fields are used to define the minimum, default, maximum shares per customer"))),a(4),h(m(10,29,"labels.inputs.Minimum")),a(5),h(m(15,31,"labels.inputs.Default")),a(4),le(" ",m(19,33,"labels.inputs.Default Shares per Client")," ",m(20,35,"labels.commons.is")," "),a(4),h(m(23,37,"labels.commons.required")),a(4),h(m(27,39,"labels.inputs.Maximum")),a(4),v(" ",m(31,41,"labels.inputs.Minimum Active Period")," "),a(2),g("matTooltip",Le(m(33,43,"tooltips.Minimum active period to consider for dividend calculations"))),a(4),h(m(37,45,"labels.inputs.Frequency")),a(5),h(m(42,47,"labels.inputs.Type")),a(3),we(i.minimumActivePeriodFrequencyTypeData),a(3),v(" ",m(48,49,"labels.inputs.Lock-in Period")," "),a(2),g("matTooltip",Le(m(50,51,"tooltips.Used to indicate the length of time"))),a(4),h(m(54,53,"labels.inputs.Frequency")),a(5),h(m(59,55,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(2),g("matTooltip",Le(m(64,57,"tooltips.Indicates whether the dividends can be processed even share account of this share product is inactive"))),a(2),v(" ",m(66,59,"labels.inputs.Allow dividends for inactive clients")," "),a(5),v(" ",m(71,61,"labels.buttons.Previous")," "),a(3),v(" ",m(74,63,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,qi,ke,Ji,he,ki],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}"]})}}return e})();function d5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function u5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.fromDate)," ")}}function f5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Nominal/Unit Price")))}function h5t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.shareValue," ")}}function g5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function _5t(e,o){if(e&1){let t=Y();l(0,"td",21)(1,"button",22),R("click",function(){let i=V(t).index,s=w(2);return q(s.editMarketPricePeriod(i))}),b(2,"fa-icon",23),r(),l(3,"button",24),R("click",function(){let i=V(t).index,s=w(2);return q(s.deleteMarketPricePeriod(i))}),b(4,"fa-icon",25),r()()}}function C5t(e,o){e&1&&b(0,"tr",26)}function v5t(e,o){e&1&&b(0,"tr",27)}function x5t(e,o){if(e&1&&(l(0,"table",7),X(1,13),F(2,d5t,3,3,"th",14)(3,u5t,3,3,"td",15),Z(),X(4,16),F(5,f5t,3,3,"th",14)(6,h5t,2,1,"td",15),Z(),X(7,17),F(8,g5t,3,3,"th",14)(9,_5t,5,0,"td",15),Z(),F(10,C5t,1,0,"tr",18)(11,v5t,1,0,"tr",19),r()),e&2){let t=w();g("dataSource",t.marketPricePeriods.value),a(10),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}var Dm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.displayedColumns=["fromDate","shareValue","actions"],this.createShareProductMarketPriceForm()}ngOnInit(){this.shareProductsTemplate&&this.shareProductMarketPriceForm.setControl("marketPricePeriods",this.formBuilder.array(this.shareProductsTemplate.marketPrice))}createShareProductMarketPriceForm(){this.shareProductMarketPriceForm=this.formBuilder.group({marketPricePeriods:this.formBuilder.array([])})}get marketPricePeriods(){return this.shareProductMarketPriceForm.get("marketPricePeriods")}setShareProductMarketPriceFormDirty(){this.shareProductMarketPriceForm.pristine&&this.shareProductMarketPriceForm.markAsDirty()}addMarketPricePeriod(){let t=this.getData();this.dialog.open(an,{data:t}).afterClosed().subscribe(i=>{i.data&&(this.marketPricePeriods.push(i.data),this.setShareProductMarketPriceFormDirty())})}editMarketPricePeriod(t){let n=qt(at({},this.getData(this.marketPricePeriods.at(t).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(this.marketPricePeriods.at(t).patchValue(s.data.value),this.setShareProductMarketPriceFormDirty())})}deleteMarketPricePeriod(t){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(i=>{i.delete&&(this.marketPricePeriods.removeAt(t),this.setShareProductMarketPriceFormDirty())})}getData(t){return{title:this.translateService.instant("labels.inputs.Market Price Period"),formfields:this.getFormfields(t)}}getFormfields(t){return[new rr({controlName:"fromDate",label:this.translateService.instant("labels.inputs.From Date"),value:t?t.fromDate:void 0,maxDate:new Date(new Date().setFullYear(new Date().getFullYear()+10)),required:!0,order:1}),new vn({controlName:"shareValue",label:this.translateService.instant("labels.inputs.Nominal/Unit Price"),value:t?t.shareValue:void 0,type:"number",required:!0,order:2})]}get shareProductMarketPrice(){let t=this.settingsService.dateFormat,n=this.settingsService.language.code,i=[];for(let s of this.marketPricePeriods.value)i.push(qt(at({},s),{fromDate:this.dateUtils.formatDate(s.fromDate,t),dateFormat:t,locale:n}));return{marketPricePeriods:i}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-market-price-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate"},decls:22,vars:17,consts:[[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"add-option"],[1,"mat-h4"],[1,"fas","fa-question",3,"matTooltip"],[1,""],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["matColumnDef","fromDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareValue"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"div",4)(8,"button",5),R("click",function(){return i.addMarketPricePeriod()}),b(9,"fa-icon",6),c(10),p(11,"translate"),r()()(),E(12,x5t,12,3,"table",7),r(),l(13,"div",8)(14,"button",9),b(15,"fa-icon",10),c(16),p(17,"translate"),r(),l(18,"button",11),c(19),p(20,"translate"),b(21,"fa-icon",12),r()()),n&2&&(a(3),v(" ",m(4,7,"labels.inputs.Market Price Period")," "),a(2),g("matTooltip",Le(m(6,9,"tooltips.Add future share value with date range"))),a(5),v(" ",m(11,11,"labels.buttons.Add")," "),a(2),I(i.marketPricePeriods.value.length?12:-1),a(4),v(" ",m(17,13,"labels.buttons.Previous")," "),a(3),v(" ",m(20,15,"labels.buttons.Next")," "))},dependencies:[ue,fe,xe,si,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.add-option[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;gap:1.5rem}"]})}}return e})();function b5t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function y5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function S5t(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function w5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function P5t(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function T5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function M5t(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function D5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function E5t(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function I5t(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function O5t(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function A5t(e,o){e&1&&b(0,"tr",26)}function F5t(e,o){e&1&&b(0,"tr",27)}var Em=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"],this.pristine=!0}ngOnInit(){this.chargeData=this.shareProductsTemplate.chargeOptions,this.chargesDataSource=this.shareProductsTemplate.charges||[],this.pristine=!0,this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value="",this.pristine=!1}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get shareProductCharges(){return{chargesSelected:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-charges-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,b5t,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,y5t,3,3,"th",9)(18,S5t,2,1,"td",10),Z(),X(19,11),F(20,w5t,3,3,"th",9)(21,P5t,3,4,"td",10),Z(),X(22,12),F(23,T5t,3,3,"th",9)(24,M5t,3,3,"td",10),Z(),X(25,13),F(26,D5t,3,3,"th",9)(27,E5t,3,4,"td",10),Z(),X(28,14),F(29,I5t,3,3,"th",9)(30,O5t,3,0,"td",10),Z(),F(31,A5t,1,0,"tr",15)(32,F5t,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ki,ac,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function k5t(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function B5t(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12)(5,"mat-divider",4),l(6,"h4",11),c(7),p(8,"translate"),r(),b(9,"mifosx-gl-account-selector",12)(10,"mat-divider",4),l(11,"h4",11),c(12),p(13,"translate"),r(),b(14,"mifosx-gl-account-selector",12)(15,"mat-divider",4),l(16,"h4",11),c(17),p(18,"translate"),r(),b(19,"mifosx-gl-account-selector",12),r()),e&2){let t=w();a(2),h(m(3,20,"labels.heading.Assets")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.shareReferenceId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Share reference"),a(3),h(m(8,22,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.shareSuspenseId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Share suspense control"),a(3),h(m(13,24,"labels.heading.Share Equity")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.shareEquityId)("glAccountList",t.equityAccountData)("required",!0)("inputLabel","Equity"),a(3),h(m(18,26,"labels.heading.Income")),a(2),g("inputFormControl",t.shareProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees")}}var Im=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createShareProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.assetAccountData=this.shareProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.shareProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.equityAccountData=this.shareProductsTemplate.accountingMappingOptions.equityAccountOptions||[],this.liabilityAccountData=this.shareProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.shareProductsTemplate.accountingRule&&(this.shareProductAccountingForm.patchValue({accountingRule:this.shareProductsTemplate.accountingRule.id}),this.shareProductsTemplate.accountingRule.id===2&&this.shareProductAccountingForm.patchValue({shareReferenceId:this.shareProductsTemplate.accountingMappings.shareReferenceId.id,shareSuspenseId:this.shareProductsTemplate.accountingMappings.shareSuspenseId.id,shareEquityId:this.shareProductsTemplate.accountingMappings.shareEquityId.id,incomeFromFeeAccountId:this.shareProductsTemplate.accountingMappings.incomeFromFeeAccountId.id}))}createShareProductAccountingForm(){this.shareProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}setConditionalControls(){this.shareProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2?(this.shareProductAccountingForm.addControl("shareReferenceId",new it("",ce.required)),this.shareProductAccountingForm.addControl("shareSuspenseId",new it("",ce.required)),this.shareProductAccountingForm.addControl("shareEquityId",new it("",ce.required)),this.shareProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required))):(this.shareProductAccountingForm.removeControl("shareReferenceId"),this.shareProductAccountingForm.removeControl("shareSuspenseId"),this.shareProductAccountingForm.removeControl("shareEquityId"),this.shareProductAccountingForm.removeControl("incomeFromFeeAccountId"))})}get shareProductAccounting(){return this.shareProductAccountingForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-accounting-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate",accountingRuleData:"accountingRuleData",shareProductFormValid:"shareProductFormValid"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-column.lt-md","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,k5t,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,B5t,20,28,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.shareProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.shareProductAccountingForm.value.accountingRule===2?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.shareProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,tr,ir,Ri,ta,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var R5t=()=>["../"];function N5t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.shareProduct.description)}}function L5t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Active Period"),":"),a(3),h(t.shareProduct.minimumActivePeriodForDividends+" "+$t(6,4,t.shareProduct.minimumactiveperiodFrequencyType,t.shareProductsTemplate.minimumActivePeriodFrequencyTypeOptions,"id","value"))}}function V5t(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.shareProduct.lockinPeriodFrequency+" "+$t(6,4,t.shareProduct.lockinPeriodFrequencyType,t.shareProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function q5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function z5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.fromDate)," ")}}function H5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Nominal/Unit Price")))}function G5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.shareValue)," ")}}function j5t(e,o){e&1&&b(0,"tr",22)}function $5t(e,o){e&1&&b(0,"tr",23)}function U5t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",13),X(6,14),F(7,q5t,3,3,"th",15)(8,z5t,3,3,"td",16),Z(),X(9,17),F(10,H5t,3,3,"th",15)(11,G5t,3,3,"td",16),Z(),F(12,j5t,1,0,"tr",18)(13,$5t,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Market Price Period")),a(3),g("dataSource",t.shareProduct.marketPricePeriods),a(7),g("matHeaderRowDef",t.marketPriceDisplayedColumns),a(),g("matRowDefColumns",t.marketPriceDisplayedColumns)}}function W5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Q5t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function Y5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function J5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function K5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function X5t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function Z5t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function eDt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function tDt(e,o){e&1&&b(0,"tr",22)}function iDt(e,o){e&1&&b(0,"tr",23)}function nDt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",13),X(6,24),F(7,W5t,3,3,"th",15)(8,Q5t,2,1,"td",16),Z(),X(9,25),F(10,Y5t,3,3,"th",15)(11,J5t,3,4,"td",16),Z(),X(12,26),F(13,K5t,3,3,"th",15)(14,X5t,3,3,"td",16),Z(),X(15,27),F(16,Z5t,3,3,"th",15)(17,eDt,3,4,"td",16),Z(),F(18,tDt,1,0,"tr",18)(19,iDt,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Charges")),a(3),g("dataSource",t.shareProduct.chargesSelected),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function oDt(e,o){if(e&1&&(l(0,"div",7)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"div",4)(5,"span",5),c(6),p(7,"translate"),r(),l(8,"span",6),c(9),p(10,"find"),r()(),l(11,"h4",28),c(12),p(13,"translate"),r(),l(14,"div",4)(15,"span",5),c(16),p(17,"translate"),r(),l(18,"span",6),c(19),p(20,"find"),r()(),l(21,"h4",28),c(22),p(23,"translate"),r(),l(24,"div",4)(25,"span",5),c(26),p(27,"translate"),r(),l(28,"span",6),c(29),p(30,"find"),r()(),l(31,"h4",28),c(32),p(33,"translate"),r(),l(34,"div",4)(35,"span",5),c(36),p(37,"translate"),r(),l(38,"span",6),c(39),p(40,"find"),r()()()),e&2){let t=w();a(2),h(m(3,12,"labels.heading.Assets")),a(4),v("",m(7,14,"labels.inputs.Share reference"),":"),a(3),h($t(10,16,t.shareProduct.shareReferenceId,t.shareProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")),a(3),h(m(13,21,"labels.heading.Liabilities")),a(4),v("",m(17,23,"labels.inputs.Share suspense control"),":"),a(3),h($t(20,25,t.shareProduct.shareSuspenseId,t.shareProductsTemplate.accountingMappingOptions.liabilityAccountOptions,"id","name")),a(3),h(m(23,30,"labels.heading.Share Equity")),a(4),v("",m(27,32,"labels.inputs.Equity"),":"),a(3),h($t(30,34,t.shareProduct.shareEquityId,t.shareProductsTemplate.accountingMappingOptions.equityAccountOptions,"id","name")),a(3),h(m(33,39,"labels.heading.Income")),a(4),v("",m(37,41,"labels.inputs.Income from fees"),":"),a(3),h($t(40,43,t.shareProduct.incomeFromFeeAccountId,t.shareProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name"))}}function aDt(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w();return q(i.submitEvent.emit())}),c(1),p(2,"translate"),r()}e&2&&(a(),v(" ",m(2,1,"labels.buttons.Submit")," "))}var ku=(()=>{class e{constructor(){this.submitEvent=new bi,this.marketPriceDisplayedColumns=["fromDate","shareValue"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-preview-step"]],inputs:{shareProductsTemplate:"shareProductsTemplate",accountingRuleData:"accountingRuleData",shareProduct:"shareProduct",taskPermission:"taskPermission"},outputs:{submitEvent:"submitEvent"},decls:111,vars:90,consts:[[1,"responsive-column"],[1,"mat-h2","flex-fill"],[1,"flex-fill"],[1,"mat-h3","flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],[1,"mat-h4","flex-fill"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,N5t,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),p(48,"formatNumber"),r()(),l(49,"div",4)(50,"span",5),c(51),p(52,"translate"),r(),l(53,"span",6),c(54),p(55,"formatNumber"),r()(),l(56,"div",4)(57,"span",5),c(58),p(59,"translate"),r(),l(60,"span",6),c(61),p(62,"formatNumber"),r()(),l(63,"div",4)(64,"span",5),c(65),p(66,"translate"),r(),l(67,"span",6),c(68),p(69,"formatNumber"),r()(),l(70,"h3",3),c(71),p(72,"translate"),r(),b(73,"mat-divider",2),l(74,"div",4)(75,"span",5),c(76),p(77,"translate"),r(),l(78,"span",6),c(79),r()(),E(80,L5t,7,9,"div",4),E(81,V5t,7,9,"div",4),l(82,"div",4)(83,"span",5),c(84),p(85,"translate"),r(),l(86,"span",6),c(87),p(88,"yesNo"),r()(),E(89,U5t,14,6,"div",7),E(90,nDt,20,6,"div",7),l(91,"h3",3),c(92),p(93,"translate"),r(),b(94,"mat-divider",2),l(95,"div",4)(96,"span",5),c(97),p(98,"translate"),r(),l(99,"span",6),c(100),r()(),E(101,oDt,41,48,"div",7),r(),l(102,"div",8)(103,"button",9),b(104,"fa-icon",10),c(105),p(106,"translate"),r(),l(107,"button",11),c(108),p(109,"translate"),r(),F(110,aDt,3,3,"button",12),r()),n&2&&(a(2),h(i.shareProduct.name),a(3),h(m(6,38,"labels.heading.Details")),a(5),v("",m(11,40,"labels.inputs.Short Name"),":"),a(3),h(i.shareProduct.shortName),a(),I(i.shareProduct.description?14:-1),a(2),h(m(17,42,"labels.heading.Currency")),a(5),v("",m(22,44,"labels.inputs.Currency"),":"),a(3),h($t(25,46,i.shareProduct.currencyCode,i.shareProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,51,"labels.inputs.Decimal Places"),":"),a(3),h(i.shareProduct.digitsAfterDecimal),a(3),v("",m(35,53,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.shareProduct.inMultiplesOf),a(2),h(m(40,55,"labels.heading.Terms")),a(5),v("",m(45,57,"labels.inputs.Total Number of Shares"),":"),a(3),h(m(48,59,i.shareProduct.totalShares)),a(4),v("",m(52,61,"labels.inputs.Shares to be Issued"),":"),a(3),h(m(55,63,i.shareProduct.sharesIssued)),a(4),v("",m(59,65,"labels.inputs.Nominal/Unit Price"),":"),a(3),h(m(62,67,i.shareProduct.unitPrice)),a(4),v("",m(66,69,"labels.inputs.Capital Value"),":"),a(3),h(m(69,71,i.shareProduct.shareCapital)),a(3),h(m(72,73,"labels.heading.Settings")),a(5),v("",m(77,75,"labels.inputs.Shares per Client"),":"),a(3),h(i.shareProduct.nominalShares+" (Min: "+(i.shareProduct.minimumShares?i.shareProduct.minimumShares:i.shareProduct.nominalShares)+", Max: "+(i.shareProduct.maximumShares?i.shareProduct.maximumShares:i.shareProduct.nominalShares)+")"),a(),I(i.shareProduct.minimumActivePeriodForDividends?80:-1),a(),I(i.shareProduct.lockinPeriodFrequency?81:-1),a(3),v("",m(85,77,"labels.inputs.Allow dividends for inactive clients"),":"),a(3),h(m(88,79,i.shareProduct.allowDividendCalculationForInactiveClients)),a(2),I(i.shareProduct.marketPricePeriods.length?89:-1),a(),I(i.shareProduct.chargesSelected.length?90:-1),a(2),h(m(93,81,"labels.heading.Accounting")),a(5),v("",m(98,83,"labels.inputs.Type"),":"),a(3),h(i.accountingRuleData[i.shareProduct.accountingRule-1]),a(),I(i.shareProduct.accountingRule===2?101:-1),a(4),v(" ",m(106,85,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(89,R5t)),a(),v(" ",m(109,87,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission",i.taskPermission))},dependencies:[ue,fe,Oe,xe,Ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,qi,ke,Pi,he,ki,Qn,In,po],styles:[".column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}"]})}}return e})();function rDt(e,o){e&1&&b(0,"fa-icon",14)}function lDt(e,o){e&1&&b(0,"fa-icon",14)}function sDt(e,o){e&1&&b(0,"fa-icon",15)}function cDt(e,o){e&1&&b(0,"fa-icon",16)}function pDt(e,o){e&1&&b(0,"fa-icon",17)}function mDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function dDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function uDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function fDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function hDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MARKET PRICE"))}function gDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function _Dt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function CDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function vDt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,CDt,2,3,"ng-template",9),l(2,"mifosx-share-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("shareProductsTemplate",t.shareProductsTemplate)("accountingRuleData",t.accountingRuleData)("shareProduct",t.shareProduct)("taskPermission","CREATE_SHAREPRODUCT")}}var r3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.shareProductsTemplate=t.shareProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForShares()}get shareProductDetailsForm(){return this.shareProductDetailsStep.shareProductDetailsForm}get shareProductCurrencyForm(){return this.shareProductCurrencyStep.shareProductCurrencyForm}get shareProductTermsForm(){return this.shareProductTermsStep.shareProductTermsForm}get shareProductSettingsForm(){return this.shareProductSettingsStep.shareProductSettingsForm}get shareProductMarketPriceForm(){return this.shareProductMarketPriceStep.shareProductMarketPriceForm}get shareProductAccountingForm(){return this.shareProductAccountingStep.shareProductAccountingForm}get shareProductFormValid(){return this.shareProductDetailsForm.valid&&this.shareProductCurrencyForm.valid&&this.shareProductTermsForm.valid&&this.shareProductSettingsForm.valid&&this.shareProductMarketPriceForm.valid&&this.shareProductAccountingForm.valid}get shareProduct(){return at(at(at(at(at(at(at({},this.shareProductDetailsStep.shareProductDetails),this.shareProductCurrencyStep.shareProductCurrency),this.shareProductTermsStep.shareProductTerms),this.shareProductSettingsStep.shareProductSettings),this.shareProductMarketPriceStep.shareProductMarketPrice),this.shareProductChargesStep.shareProductCharges),this.shareProductAccountingStep.shareProductAccounting)}submit(){let t=qt(at({},this.shareProduct),{chargesSelected:this.shareProduct.chargesSelected.map(n=>({id:n.id})),locale:this.settingsService.language.code});this.productsService.createShareProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-share-product"]],viewQuery:function(n,i){if(n&1&&(Ee(wm,7),Ee(Pm,7),Ee(Tm,7),Ee(Mm,7),Ee(Dm,7),Ee(Em,7),Ee(Im,7)),n&2){let s;Te(s=Me())&&(i.shareProductDetailsStep=s.first),Te(s=Me())&&(i.shareProductCurrencyStep=s.first),Te(s=Me())&&(i.shareProductTermsStep=s.first),Te(s=Me())&&(i.shareProductSettingsStep=s.first),Te(s=Me())&&(i.shareProductMarketPriceStep=s.first),Te(s=Me())&&(i.shareProductChargesStep=s.first),Te(s=Me())&&(i.shareProductAccountingStep=s.first)}},decls:30,vars:15,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"shareProductsTemplate"],[3,"shareProductsTemplate","currencyCode"],[3,"shareProductsTemplate","accountingRuleData","shareProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","shareProductsTemplate","accountingRuleData","shareProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,rDt,1,0,"ng-template",3)(4,lDt,1,0,"ng-template",4)(5,sDt,1,0,"ng-template",5)(6,cDt,1,0,"ng-template",6)(7,pDt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,mDt,2,3,"ng-template",9),b(10,"mifosx-share-product-details-step"),r(),l(11,"mat-step",8),F(12,dDt,2,3,"ng-template",9),b(13,"mifosx-share-product-currency-step",10),r(),l(14,"mat-step",8),F(15,uDt,2,3,"ng-template",9),b(16,"mifosx-share-product-terms-step"),r(),l(17,"mat-step",8),F(18,fDt,2,3,"ng-template",9),b(19,"mifosx-share-product-settings-step",10),r(),l(20,"mat-step",8),F(21,hDt,2,3,"ng-template",9),b(22,"mifosx-share-product-market-price-step"),r(),l(23,"mat-step"),F(24,gDt,2,3,"ng-template",9),b(25,"mifosx-share-product-charges-step",11),r(),l(26,"mat-step",8),F(27,_Dt,2,3,"ng-template",9),b(28,"mifosx-share-product-accounting-step",12),r(),E(29,vDt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.shareProductDetailsForm),a(3),g("stepControl",i.shareProductCurrencyForm),a(2),g("shareProductsTemplate",i.shareProductsTemplate),a(),g("stepControl",i.shareProductTermsForm),a(3),g("stepControl",i.shareProductSettingsForm),a(2),g("shareProductsTemplate",i.shareProductsTemplate),a(),g("stepControl",i.shareProductMarketPriceForm),a(5),g("shareProductsTemplate",i.shareProductsTemplate)("currencyCode",i.shareProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.shareProductAccountingForm),a(2),g("shareProductsTemplate",i.shareProductsTemplate)("accountingRuleData",i.accountingRuleData)("shareProductFormValid",i.shareProductFormValid),a(),I(i.shareProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,wm,Pm,Tm,Mm,Dm,Em,Im,ku,he],encapsulation:2})}}return e})();var xDt=()=>["./general"],bDt=e=>["./datatables",e];function yDt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,bDt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function SDt(e,o){if(e&1&&F(0,yDt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var l3=(()=>{class e{constructor(){this.route=T(Ie),this.shareProductDatatables=[],this.route.data.subscribe(t=>{this.shareProductDatatables=[],t.shareProductDatatables.forEach(n=>{this.shareProductDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-share-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,SDt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,xDt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.inputs.General")," "),a(2),we(i.shareProductDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function wDt(e,o){e&1&&b(0,"fa-icon",15)}function PDt(e,o){e&1&&b(0,"fa-icon",15)}function TDt(e,o){e&1&&b(0,"fa-icon",16)}function MDt(e,o){e&1&&b(0,"fa-icon",17)}function DDt(e,o){e&1&&b(0,"fa-icon",18)}function EDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function IDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function ODt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function ADt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function FDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MARKET PRICE"))}function kDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function BDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function RDt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function NDt(e,o){if(e&1){let t=Y();l(0,"mat-step",14),F(1,RDt,2,3,"ng-template",9),l(2,"mifosx-share-product-preview-step",19),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("shareProductsTemplate",t.shareProductAndTemplate)("accountingRuleData",t.accountingRuleData)("shareProduct",t.shareProduct)("taskPermission","UPDATE_SHAREPRODUCT")}}var s3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.shareProductAndTemplate=t.shareProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForShares()}get shareProductDetailsForm(){return this.shareProductDetailsStep.shareProductDetailsForm}get shareProductCurrencyForm(){return this.shareProductCurrencyStep.shareProductCurrencyForm}get shareProductTermsForm(){return this.shareProductTermsStep.shareProductTermsForm}get shareProductSettingsForm(){return this.shareProductSettingsStep.shareProductSettingsForm}get shareProductMarketPriceForm(){return this.shareProductMarketPriceStep.shareProductMarketPriceForm}get shareProductAccountingForm(){return this.shareProductAccountingStep.shareProductAccountingForm}get shareProductFormValidAndNotPristine(){return this.shareProductDetailsForm.valid&&this.shareProductCurrencyForm.valid&&this.shareProductTermsForm.valid&&this.shareProductSettingsForm.valid&&this.shareProductMarketPriceForm.valid&&this.shareProductAccountingForm.valid&&(!this.shareProductDetailsForm.pristine||!this.shareProductCurrencyForm.pristine||!this.shareProductTermsForm.pristine||!this.shareProductSettingsForm.pristine||!this.shareProductMarketPriceForm.pristine||!this.shareProductChargesStep.pristine||!this.shareProductAccountingForm.pristine)}get shareProduct(){return at(at(at(at(at(at(at({},this.shareProductDetailsStep.shareProductDetails),this.shareProductCurrencyStep.shareProductCurrency),this.shareProductTermsStep.shareProductTerms),this.shareProductSettingsStep.shareProductSettings),this.shareProductMarketPriceStep.shareProductMarketPrice),this.shareProductChargesStep.shareProductCharges),this.shareProductAccountingStep.shareProductAccounting)}submit(){let t=qt(at({},this.shareProduct),{chargesSelected:this.shareProduct.chargesSelected.map(n=>({id:n.id})),locale:this.settingsService.language.code});this.productsService.updateShareProduct(this.shareProductAndTemplate.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-share-product"]],viewQuery:function(n,i){if(n&1&&(Ee(wm,7),Ee(Pm,7),Ee(Tm,7),Ee(Mm,7),Ee(Dm,7),Ee(Em,7),Ee(Im,7)),n&2){let s;Te(s=Me())&&(i.shareProductDetailsStep=s.first),Te(s=Me())&&(i.shareProductCurrencyStep=s.first),Te(s=Me())&&(i.shareProductTermsStep=s.first),Te(s=Me())&&(i.shareProductSettingsStep=s.first),Te(s=Me())&&(i.shareProductMarketPriceStep=s.first),Te(s=Me())&&(i.shareProductChargesStep=s.first),Te(s=Me())&&(i.shareProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed","",3,"stepControl"],["matStepLabel",""],[3,"shareProductsTemplate"],["completed",""],[3,"shareProductsTemplate","currencyCode"],[3,"shareProductsTemplate","accountingRuleData","shareProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","shareProductsTemplate","accountingRuleData","shareProduct","taskPermission"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,wDt,1,0,"ng-template",3)(4,PDt,1,0,"ng-template",4)(5,TDt,1,0,"ng-template",5)(6,MDt,1,0,"ng-template",6)(7,DDt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,EDt,2,3,"ng-template",9),b(10,"mifosx-share-product-details-step",10),r(),l(11,"mat-step",8),F(12,IDt,2,3,"ng-template",9),b(13,"mifosx-share-product-currency-step",10),r(),l(14,"mat-step",8),F(15,ODt,2,3,"ng-template",9),b(16,"mifosx-share-product-terms-step",10),r(),l(17,"mat-step",8),F(18,ADt,2,3,"ng-template",9),b(19,"mifosx-share-product-settings-step",10),r(),l(20,"mat-step",8),F(21,FDt,2,3,"ng-template",9),b(22,"mifosx-share-product-market-price-step",10),r(),l(23,"mat-step",11),F(24,kDt,2,3,"ng-template",9),b(25,"mifosx-share-product-charges-step",12),r(),l(26,"mat-step",8),F(27,BDt,2,3,"ng-template",9),b(28,"mifosx-share-product-accounting-step",13),r(),E(29,NDt,3,4,"mat-step",14),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.shareProductDetailsForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductCurrencyForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductTermsForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductSettingsForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(),g("stepControl",i.shareProductMarketPriceForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate),a(3),g("shareProductsTemplate",i.shareProductAndTemplate)("currencyCode",i.shareProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.shareProductAccountingForm),a(2),g("shareProductsTemplate",i.shareProductAndTemplate)("accountingRuleData",i.accountingRuleData)("shareProductFormValid",i.shareProductFormValidAndNotPristine),a(),I(i.shareProductFormValidAndNotPristine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,wm,Pm,Tm,Mm,Dm,Em,Im,ku,he],encapsulation:2})}}return e})();var c3=()=>["tax-components"],p3=()=>["tax-groups"];function LDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function VDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function qDt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,c3)),a(),v(" ",m(2,2,"labels.heading.Define Tax Components")," "))}function zDt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,LDt,1,0,"fa-icon",8),E(7,VDt,1,0,"fa-icon",9),E(8,qDt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,c3)),a(),g("routerLink",oe(10,c3)),a(2),g("routerLink",oe(11,c3)),a(),h(m(5,7,"labels.heading.Manage Tax Components")),a(2),I(t.arrowBooleans[0]?-1:6),a(),I(t.arrowBooleans[0]?7:-1),a(),I(t.arrowBooleans[0]?8:-1)}}function HDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function GDt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function jDt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,p3)),a(),v(" ",m(2,2,"labels.heading.Define Tax Groups")," "))}function $Dt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,HDt,1,0,"fa-icon",8),E(7,GDt,1,0,"fa-icon",9),E(8,jDt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,p3)),a(),g("routerLink",oe(10,p3)),a(2),g("routerLink",oe(11,p3)),a(),h(m(5,7,"labels.heading.Manage Tax Groups")),a(2),I(t.arrowBooleans[1]?-1:6),a(),I(t.arrowBooleans[1]?7:-1),a(),I(t.arrowBooleans[1]?8:-1)}}var m3=(()=>{class e{constructor(){this.arrowBooleans=new Array(2).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-tax-configurations"]],decls:9,vars:2,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink",4,"mifosxHasPermission"],[3,"routerLink"],["matListIcon","",3,"routerLink"],["icon","building","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list"),F(5,zDt,9,12,"mat-list-item",3),r()(),l(6,"div",2)(7,"mat-nav-list"),F(8,$Dt,9,12,"mat-list-item",3),r()()()()()),n&2&&(a(5),g("mifosxHasPermission","READ_TAXCOMPONENT"),a(3),g("mifosxHasPermission","READ_TAXGROUP"))},dependencies:[ue,fe,Oe,Ue,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var UDt=["buttonCreateRecurringProduct"],WDt=["templateButtonCreateRecurringProduct"],QDt=["recurringProductsTable"],YDt=["templateRecurringProductsTable"],JDt=()=>[10,25,50,100],KDt=()=>["create"],XDt=e=>[e];function ZDt(e,o){e&1&&(l(0,"button",22),p(1,"translate"),b(2,"fa-icon",23),c(3),p(4,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,4,"tooltips.Create Recurring Deposit Product")))("routerLink",oe(8,KDt)),a(3),v(" ",m(4,6,"labels.buttons.Create Recurring Deposit Product")," "))}function eEt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function tEt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function iEt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function nEt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function oEt(e,o){e&1&&b(0,"tr",26)}function aEt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,XDt,t.id))}}function rEt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create recurring deposit product")),a(3),h(m(5,7,"labels.text.This option allows you to create new recurring product.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function lEt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(26);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(14),u=ve(30);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter recurring deposit products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function sEt(e,o){if(e&1){let t=Y();l(0,"h4",28),c(1),p(2,"translate"),l(3,"a",32),c(4),p(5,"translate"),r()(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(28);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of recurring deposit products in the organization"),": "),a(3),h(m(5,7,"labels.heading.Recurring Deposit Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var u3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName"],this.route.data.subscribe(t=>{this.recurringDepositProductData=t.recurringDepositProducts})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setRecurringDepositProducts()}setRecurringDepositProducts(){this.dataSource=new Wt(this.recurringDepositProductData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}ngAfterViewInit(){this.configurationWizardService.showRecurringDepositProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateRecurringProduct,this.buttonCreateRecurringProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showRecurringDepositProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateRecurringProductsTable,this.recurringProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.openNextStepDialog()}previousStep(){this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.configurationWizardService.showRecurringDepositProducts=!0,this.router.navigate(["/products"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup Funds and Manage Reports",previousStepName:"Products",stepPercentage:94}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.configurationWizardService.showManageFunds=!0,this.router.navigate(["/organization"])):(this.configurationWizardService.showRecurringDepositProductsPage=!1,this.configurationWizardService.showRecurringDepositProductsList=!1,this.router.navigate(["/home"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(UDt,5),Ee(WDt,5),Ee(QDt,5),Ee(YDt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateRecurringProduct=s.first),Te(s=Me())&&(i.templateButtonCreateRecurringProduct=s.first),Te(s=Me())&&(i.recurringProductsTable=s.first),Te(s=Me())&&(i.templateRecurringProductsTable=s.first)}},decls:31,vars:13,consts:[["buttonCreateRecurringProduct",""],["filter",""],["recurringProductsTable",""],["templateButtonCreateRecurringProduct",""],["templateFilter",""],["templateRecurringProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary","matTooltipPosition","above",3,"routerLink","matTooltip",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","","matTooltipPosition","left",3,"keyup","matTooltip"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary","matTooltipPosition","above",3,"routerLink","matTooltip"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102629552/Recurring+Deposit","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,ZDt,5,9,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),p(12,"translate"),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(13,"div",13,2)(15,"table",14),X(16,15),F(17,eEt,3,3,"th",16)(18,tEt,2,1,"td",17),Z(),X(19,18),F(20,iEt,3,3,"th",16)(21,nEt,2,1,"td",17),Z(),F(22,oEt,1,0,"tr",19)(23,aEt,1,3,"tr",20),r(),b(24,"mat-paginator",21),r()(),F(25,rEt,16,15,"ng-template",null,3,ti)(27,lEt,13,12,"ng-template",null,4,ti)(29,sEt,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_RECURRINGDEPOSITPRODUCT"),a(6),h(m(10,8,"labels.inputs.Filter")),a(2),g("matTooltip",Le(m(12,10,"tooltips.Add Filters"))),a(4),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,JDt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,si,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var cEt=()=>["./general"],pEt=e=>["./datatables",e];function mEt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,pEt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function dEt(e,o){if(e&1&&F(0,mEt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var f3=(()=>{class e{constructor(){this.route=T(Ie),this.recurringDepositDatatables=[],this.route.data.subscribe(t=>{this.recurringDepositDatatables=[],t.recurringDepositDatatables.forEach(n=>{n.entitySubType==="Recurring Deposit"&&this.recurringDepositDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-recurring-deposit-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,dEt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,cEt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.recurringDepositDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var XK=(()=>{class e{getChargeAppliesToOptions(){return[{id:1,code:"chargeAppliesTo.loan",value:"Loan"},{id:2,code:"chargeAppliesTo.savings",value:"Savings"},{id:3,code:"chargeAppliesTo.client",value:"Client"},{id:4,code:"chargeAppliesTo.shares",value:"Shares"}]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var uEt=["buttonCreateCharge"],fEt=["templateButtonCreateCharge"],hEt=["chargesTable"],gEt=["templateChargesTable"],_Et=()=>[10,25,50,100],CEt=()=>["create"],vEt=e=>[e];function xEt(e,o){e&1&&(l(0,"button",32),b(1,"fa-icon",33),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,CEt)),a(2),v(" ",m(3,2,"labels.text.Create Charge")," "))}function bEt(e,o){if(e&1&&(l(0,"mat-option",15),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function yEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function SEt(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function wEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Applies To")))}function PEt(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.chargeAppliesTo.value,"catalogs"))}}function TEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Time")))}function MEt(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.chargeTimeType.value,"catalogs"))}}function DEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Calculation")))}function EEt(e,o){if(e&1&&(l(0,"td",35),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),h(Ft(2,1,t.chargeCalculationType.value,"catalogs"))}}function IEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function OEt(e,o){if(e&1&&(l(0,"td",36),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amount))}}function AEt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.commons.Is")," ",m(3,4,"labels.inputs.Penalty"),"? "))}function FEt(e,o){e&1&&(b(0,"fa-icon",38),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function kEt(e,o){e&1&&(b(0,"fa-icon",39),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function BEt(e,o){if(e&1&&(l(0,"td",37),E(1,FEt,2,4,"fa-icon",38),E(2,kEt,2,4,"fa-icon",39),r()),e&2){let t=o.$implicit;a(),I(t.penalty?1:-1),a(),I(t.penalty?-1:2)}}function REt(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),p(3,"translate"),r()),e&2&&(a(),le(" ",m(2,2,"labels.commons.Is")," ",m(3,4,"labels.status.Active"),"? "))}function NEt(e,o){if(e&1&&(l(0,"td",37)(1,"div",40),b(2,"fa-icon",41),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.active===!0?"true":"false"),a(),g("matTooltip",Le(t.active===!0?m(3,3,"labels.inputs.Active"):m(4,5,"labels.catalogs.Inactive")))}}function LEt(e,o){e&1&&b(0,"tr",42)}function VEt(e,o){if(e&1&&b(0,"tr",43),e&2){let t=o.$implicit;g("routerLink",Nt(1,vEt,t.id))}}function qEt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",44),c(4),p(5,"translate"),r(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(47);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.text.Create Charge")),a(3),h(m(5,7,"labels.text.Supports Loan charges, Savings & deposits")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function zEt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",45)(4,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(45);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(18),u=ve(49);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter charges.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function HEt(e,o){if(e&1){let t=Y();l(0,"h4",44),c(1),p(2,"translate"),l(3,"a",48),c(4),p(5,"translate"),r()(),l(6,"div",45)(7,"button",46),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",47),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(47);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",47),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.heading.List of charges in the organization. For more details click"),": "),a(3),h(m(5,7,"labels.heading.Charges")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var h3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.charges=T(XK),this.chargeData=[],this.displayedColumns=["name","chargeAppliesTo","chargeTimeType","chargeCalculationType","amount","penalty","active"],this.chargeAppliesToOptions=[],this.route.data.subscribe(t=>{this.chargeData=t.charges}),this.chargeAppliesToOptions=this.charges.getChargeAppliesToOptions()}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCharges()}setCharges(){this.dataSource=new Wt(this.chargeData),this.dataSource.paginator=this.paginator,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"chargeAppliesTo":return t.chargeAppliesTo.value;default:return t[n]}},this.dataSource.sort=this.sort}ngAfterViewInit(){this.configurationWizardService.showChargesPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateCharge,this.buttonCreateCharge.nativeElement,"bottom",!0)}),this.configurationWizardService.showChargesList===!0&&setTimeout(()=>{this.showPopover(this.templateChargesTable,this.chargesTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showChargesPage=!1,this.configurationWizardService.showChargesList=!1,this.configurationWizardService.showLoanProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showChargesPage=!1,this.configurationWizardService.showChargesList=!1,this.configurationWizardService.showCharges=!0,this.router.navigate(["/products"])}filterByAppliesTo(t){let n=this.chargeData.filter(i=>i.chargeAppliesTo.id===t);this.dataSource=new Wt(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-charges"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(uEt,5),Ee(fEt,5),Ee(hEt,5),Ee(gEt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateCharge=s.first),Te(s=Me())&&(i.templateButtonCreateCharge=s.first),Te(s=Me())&&(i.chargesTable=s.first),Te(s=Me())&&(i.templateChargesTable=s.first)}},decls:50,vars:13,consts:[["buttonCreateCharge",""],["filter",""],["chargesTable",""],["templateButtonCreateCharge",""],["templateFilter",""],["templateChargesTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill","flex-68"],["matInput","",3,"keyup"],[1,"flex-28"],[3,"selectionChange","placeholder"],[3,"value"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeAppliesTo"],["matColumnDef","chargeTimeType"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["mat-cell","","class","r-amount",4,"matCellDef"],["matColumnDef","penalty"],["mat-cell","","class","center",4,"matCellDef"],["matColumnDef","active"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-cell","",1,"r-amount"],["mat-cell","",1,"center"],["icon","check-circle","size","lg","matTooltipPosition","right",1,"ispenalty",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"nopenalty",3,"matTooltip"],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/72908813/Charges","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,xEt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()(),l(12,"mat-form-field",13)(13,"mat-select",14),p(14,"translate"),R("selectionChange",function(u){return V(s),q(i.filterByAppliesTo(u.value))}),Se(15,bEt,3,5,"mat-option",15,Pe),r()()(),l(17,"div",16,2)(19,"table",17),X(20,18),F(21,yEt,3,3,"th",19)(22,SEt,2,1,"td",20),Z(),X(23,21),F(24,wEt,3,3,"th",19)(25,PEt,3,4,"td",20),Z(),X(26,22),F(27,TEt,3,3,"th",19)(28,MEt,3,4,"td",20),Z(),X(29,23),F(30,DEt,3,3,"th",19)(31,EEt,3,4,"td",20),Z(),X(32,24),F(33,IEt,3,3,"th",19)(34,OEt,3,3,"td",25),Z(),X(35,26),F(36,AEt,4,6,"th",19)(37,BEt,3,2,"td",27),Z(),X(38,28),F(39,REt,4,6,"th",19)(40,NEt,5,7,"td",27),Z(),F(41,LEt,1,0,"tr",29)(42,VEt,1,3,"tr",30),r(),b(43,"mat-paginator",31),r()(),F(44,qEt,16,15,"ng-template",null,3,ti)(46,zEt,13,12,"ng-template",null,4,ti)(48,HEt,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_CHARGE"),a(6),h(m(10,8,"labels.inputs.Filter")),a(4),g("placeholder",Le(m(14,10,"labels.inputs.Filter"))),a(2),we(i.chargeAppliesToOptions),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,_Et)))},dependencies:[ue,fe,Oe,Fe,Be,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,ki,In],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}.ispenalty[_ngcontent-%COMP%]{color:#32cd32}.nopenalty[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var GEt=()=>["../"],jEt=()=>["edit"];function $Et(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,jEt)),a(2),v(" ",m(3,2,"labels.heading.Edit")," "))}function UEt(e,o){if(e&1){let t=Y();l(0,"button",12),R("click",function(){V(t);let i=w();return q(i.deleteCharge())}),b(1,"fa-icon",13),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.heading.Delete")," "))}function WEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Minimum Charge Cap")," "))}function QEt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.minCap," ")}}function YEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Maximum Charge Cap")," "))}function JEt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.maxCap," ")}}function KEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Add Fee Frequency")," "))}function XEt(e,o){if(e&1&&(l(0,"div",6),c(1),p(2,"translateKey"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,t.chargeData.feeFrequency.value,"catalogs")," ")}}function ZEt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Frequency Interval")," "))}function eIt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.feeInterval," ")}}function tIt(e,o){if(e&1&&b(0,"mifosx-gl-account-display",7),e&2){let t=w();g("accountTitle","Income From Charges")("glAccount",t.chargeData.incomeOrLiabilityAccount)("withTitle","50%")}}function iIt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Tax Group")," "))}function nIt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.chargeData.taxGroup.name," ")}}var g3=(()=>{class e{constructor(){this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.chargeData=t.charge,this.chargeData.minCap&&(this.minCap=!0),this.chargeData.maxCap&&(this.maxCap=!0)})}deleteCharge(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+this.chargeData.id}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteCharge(this.chargeData.id).subscribe(()=>{this.router.navigate(["/products/charges"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-charge"]],decls:73,vars:70,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,$Et,4,5,"button",1)(2,UEt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),p(17,"translateKey"),r(),l(18,"div",5),c(19),p(20,"translate"),r(),l(21,"div",6),c(22),p(23,"yesNo"),r(),l(24,"div",5),c(25),p(26,"translate"),r(),l(27,"div",6),c(28),r(),l(29,"div",5),c(30),p(31,"translate"),r(),l(32,"div",6),c(33),r(),E(34,WEt,3,3,"div",5),E(35,QEt,2,1,"div",6),E(36,YEt,3,3,"div",5),E(37,JEt,2,1,"div",6),l(38,"div",5),c(39),p(40,"translate"),r(),l(41,"div",6),c(42),p(43,"translateKey"),r(),l(44,"div",5),c(45),p(46,"translate"),r(),l(47,"div",6),c(48),p(49,"translateKey"),r(),l(50,"div",5),c(51),p(52,"translate"),r(),l(53,"div",6),c(54),p(55,"translateKey"),r(),l(56,"div",5),c(57),p(58,"translate"),r(),l(59,"div",6),c(60),p(61,"yesNo"),r(),E(62,KEt,3,3,"div",5),E(63,XEt,3,4,"div",6),E(64,ZEt,3,3,"div",5),E(65,eIt,2,1,"div",6),E(66,tIt,1,3,"mifosx-gl-account-display",7),E(67,iIt,3,3,"div",5),E(68,nIt,2,1,"div",6),r(),l(69,"div",8)(70,"button",9),c(71),p(72,"translate"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_CHARGE"),a(),g("mifosxHasPermission","DELETE_CHARGE"),a(6),v(" ",m(9,33,"labels.inputs.Charge Name")," "),a(3),v(" ",i.chargeData.name," "),a(2),v(" ",m(14,35,"labels.inputs.Charge Applies To")," "),a(3),v(" ",Ft(17,37,i.chargeData.chargeAppliesTo.value,"catalogs")," "),a(3),v(" ",m(20,40,"labels.inputs.Penalty")," "),a(3),v(" ",m(23,42,i.chargeData.penalty===!0)," "),a(3),v(" ",m(26,44,"labels.inputs.Currency")," "),a(3),v(" ",i.chargeData.currency.name," "),a(2),v(" ",m(31,46,"labels.inputs.Amount")," "),a(3),v(" ",i.chargeData.amount," "),a(),I(i.minCap?34:-1),a(),I(i.minCap?35:-1),a(),I(i.maxCap?36:-1),a(),I(i.maxCap?37:-1),a(2),v(" ",m(40,48,"labels.inputs.Charge Time Type")," "),a(3),v(" ",Ft(43,50,i.chargeData.chargeTimeType.value,"catalogs")," "),a(3),v(" ",m(46,53,"labels.inputs.Charge Calculation Type")," "),a(3),v(" ",Ft(49,55,i.chargeData.chargeCalculationType.value,"catalogs")," "),a(3),v(" ",m(52,58,"labels.inputs.Charge Payment Mode")," "),a(3),v(" ",Ft(55,60,i.chargeData.chargePaymentMode.value,"catalogs")," "),a(3),v(" ",m(58,63,"labels.status.Active")," "),a(3),v(" ",m(61,65,i.chargeData.active===!0)," "),a(2),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeFrequency?62:-1),a(),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeFrequency&&i.chargeData.feeFrequency?63:-1),a(),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeInterval?64:-1),a(),I(i.chargeData.chargeTimeType.id===9&&i.chargeData.feeInterval?65:-1),a(),I(i.chargeData.incomeOrLiabilityAccount?66:-1),a(),I(i.chargeData.taxGroup?67:-1),a(),I(i.chargeData.taxGroup?68:-1),a(2),g("routerLink",oe(69,GEt)),a(),v(" ",m(72,67,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,as,he,ki,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();function _3(e){return o=>{let t=o.parent?.get(e);if(!t||!o.value)return null;let n=t.value;if(typeof n>"u")return null;typeof n!="number"&&(n=n*1);let i=o.value;return typeof i!="number"&&(i=i*1),i{let t=o.parent?.get(e);if(!t||!o.value)return null;let n=t.value;if(n==null||typeof n>"u")return null;typeof n!="number"&&(n=n*1);let i=o.value;return typeof i!="number"&&(i=i*1),i>n?{maxValue:{requiredMax:n,actual:i}}:null}}var oIt=()=>["../"];function aIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function rIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Applies To")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function cIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function mIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Time Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function uIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Calculation Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function hIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Payment Mode")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",25),Se(5,fIt,3,5,"mat-option",6,Pe),r(),E(7,hIt,7,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Charge Payment Mode")),a(3),we(t.chargesTemplateData.chargePaymetModeOptions),a(2),I(t.chargeForm.controls.chargePaymentMode.hasError("required")?7:-1)}}function _It(e,o){e&1&&(l(0,"div",16)(1,"mat-checkbox",26),c(2),p(3,"translate"),r()()),e&2&&(a(2),v(" ",m(3,1,"labels.inputs.Add Fee Frequency")," "))}function CIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Frequency Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Frequency Interval")," "),a(3),h(m(5,4,"labels.commons.must be a positive integer")))}function xIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",27),E(5,CIt,7,9,"mat-error"),E(6,vIt,6,6,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.Frequency Interval")),a(3),I(t.chargeForm.controls.feeInterval.hasError("required")?5:-1),a(),I(t.chargeForm.controls.feeInterval.hasError("pattern")?6:-1)}}function bIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function yIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function SIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",28),Se(5,bIt,3,5,"mat-option",6,Pe),r(),E(7,yIt,7,9,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Charge Frequency")),a(3),we(t.chargesTemplateData.feeFrequencyOptions),a(2),I(t.chargeForm.controls.feeFrequency.hasError("required")?7:-1)}}function wIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Due Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function PIt(e,o){if(e&1){let t=Y();l(0,"mat-form-field",29),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",30)(5,"mat-datepicker-toggle",31)(6,"mat-datepicker",null,0),E(8,wIt,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w(2);a(2),h(m(3,6,"labels.inputs.Due Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.chargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function TIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2){let t=w(3);a(),ea(" ",m(2,4,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,") ",m(3,6,"labels.commons.is")," "),a(4),h(m(6,8,"labels.commons.required"))}}function MIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3);a(),le(" ",m(2,3,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,") "),a(3),h(m(5,5,"labels.commons.must be between 1 and 12"))}}function DIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3);a(),le(" ",m(2,3,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,") "),a(3),h(m(5,5,"labels.commons.must be a positive integer"))}}function EIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",27),E(5,TIt,7,10,"mat-error"),E(6,MIt,6,7,"mat-error"),E(7,DIt,6,7,"mat-error"),r()),e&2){let t=w(2);a(2),le("",m(3,5,"labels.inputs.Repeat Every")," (",t.repeatEveryLabel,")"),a(3),I(t.chargeForm.controls.feeInterval.hasError("required")?5:-1),a(),I((t.chargeForm.controls.feeInterval.hasError("min")||t.chargeForm.controls.feeInterval.hasError("max"))&&!t.chargeForm.controls.feeInterval.hasError("pattern")?6:-1),a(),I(t.chargeForm.controls.feeInterval.hasError("pattern")?7:-1)}}function IIt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(3);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.minimumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.maxCap.value,") ")}}function AIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",32),E(5,OIt,3,4,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Minimum Charge Cap")),a(3),I(t.chargeForm.controls.minCap.hasError("maxValue")?5:-1)}}function FIt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(3);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.minCap.value,") ")}}function kIt(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",33),E(5,FIt,3,4,"mat-error"),r()),e&2){let t=w(2);a(2),h(m(3,2,"labels.inputs.Maximum Charge Cap")),a(3),I(t.chargeForm.controls.maxCap.hasError("minValue")?5:-1)}}function BIt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",18),e&2){let t=w(2);g("inputFormControl",t.chargeForm.controls.incomeAccountId)("glAccountList",t.incomeAndLiabilityAccountData)("inputLabel","Income from Charge")}}function RIt(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function NIt(e,o){if(e&1&&(l(0,"div",8)(1,"mat-form-field",4)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",12),E(6,lIt,7,9,"mat-error"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"mat-select",13),Se(12,sIt,2,2,"mat-option",6,Pe),r(),E(14,cIt,7,9,"mat-error"),r(),l(15,"mat-form-field",4)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",14),Se(20,pIt,3,5,"mat-option",6,Pe),r(),E(22,mIt,7,9,"mat-error"),r(),l(23,"mat-form-field",4)(24,"mat-label"),c(25),p(26,"translate"),r(),l(27,"mat-select",15),Se(28,dIt,3,5,"mat-option",6,Pe),r(),E(30,uIt,7,9,"mat-error"),r(),E(31,gIt,8,4,"mat-form-field",4),E(32,_It,4,3,"div",16),E(33,xIt,7,5,"mat-form-field",4),E(34,SIt,8,4,"mat-form-field",4),E(35,PIt,9,8,"mat-form-field",4),E(36,EIt,8,7,"mat-form-field",4),l(37,"mat-form-field",4)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",17),E(42,IIt,7,9,"mat-error"),r(),E(43,AIt,6,4,"mat-form-field",4),E(44,kIt,6,4,"mat-form-field",4),E(45,BIt,1,3,"mifosx-gl-account-selector",18),l(46,"mat-form-field",4)(47,"mat-label"),c(48),p(49,"translate"),r(),l(50,"mat-select",19),Se(51,RIt,2,2,"mat-option",6,Pe),r()(),l(53,"div",20)(54,"div",21)(55,"mat-checkbox",22),c(56),p(57,"translate"),r()(),l(58,"div",23)(59,"mat-checkbox",24),c(60),p(61,"translate"),p(62,"translate"),r()()()()),e&2){let t=w();a(3),h(m(4,23,"labels.inputs.Charge Name")),a(3),I(t.chargeForm.controls.name.hasError("required")?6:-1),a(3),h(m(10,25,"labels.inputs.Currency")),a(3),we(t.chargesTemplateData.currencyOptions),a(2),I(t.chargeForm.controls.currencyCode.hasError("required")?14:-1),a(3),h(m(18,27,"labels.inputs.Charge Time Type")),a(3),we(t.chargeTimeTypeData),a(2),I(t.chargeForm.controls.chargeTimeType.hasError("required")?22:-1),a(3),h(m(26,29,"labels.inputs.Charge Calculation Type")),a(3),we(t.filteredChargeCalculationType()),a(2),I(t.chargeForm.controls.chargeCalculationType.hasError("required")?30:-1),a(),I(t.chargeForm.controls.chargeAppliesTo.value===1?31:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===9?32:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===9&&t.chargeForm.controls.addFeeFrequency.value?33:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===9&&t.chargeForm.controls.addFeeFrequency.value?34:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===6||t.chargeForm.controls.chargeTimeType.value===7?35:-1),a(),I(t.chargeForm.controls.chargeTimeType.value===7||t.chargeForm.controls.chargeTimeType.value===11?36:-1),a(3),h(m(40,31,"labels.inputs.Amount")),a(3),I(t.chargeForm.controls.amount.hasError("required")?42:-1),a(),I(t.showMinMaxCap()?43:-1),a(),I(t.showMinMaxCap()?44:-1),a(),I(t.chargeForm.controls.chargeAppliesTo.value===3?45:-1),a(3),h(m(49,33,"labels.inputs.Tax Group")),a(3),we(t.chargesTemplateData.taxGroupOptions),a(5),v(" ",m(57,35,"labels.status.Active")," "),a(4),le(" ",m(61,37,"labels.commons.Is")," ",m(62,39,"labels.inputs.Penalty")," ")}}function LIt(e,o){if(e&1&&(l(0,"button",34),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.chargeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var v3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.chargeCalculationTypeData="",this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+1)),this.route.data.subscribe(t=>{this.chargesTemplateData=t.chargesTemplate;let n=t.chargesTemplate.incomeOrLiabilityAccountOptions.incomeAccountOptions||[],i=t.chargesTemplate.incomeOrLiabilityAccountOptions.liabilityAccountOptions||[];i.length>0?this.incomeAndLiabilityAccountData=n.concat(i):this.incomeAndLiabilityAccountData=n})}ngOnInit(){this.createChargeForm(),this.setChargeForm(),this.setConditionalControls()}createChargeForm(){this.chargeForm=this.formBuilder.group({chargeAppliesTo:["",ce.required],name:["",ce.required],currencyCode:["",ce.required],chargeTimeType:["",ce.required],chargeCalculationType:["",ce.required],amount:["",[ce.required,ce.pattern("^\\s*(?=.*[1-9])\\d*(?:\\.\\d+)?\\s*$")]],active:[!1],penalty:[!1],taxGroupId:[null],minCap:[null,[C3("maxCap")]],maxCap:[null,[_3("minCap")]]})}setChargeForm(){this.chargeForm.get("chargeAppliesTo").valueChanges.subscribe(t=>{switch(t){case 1:this.chargeCalculationTypeData=this.chargesTemplateData.loanChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.loanChargeTimeTypeOptions;break;case 2:this.chargeCalculationTypeData=this.chargesTemplateData.savingsChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.savingsChargeTimeTypeOptions;break;case 3:this.chargeCalculationTypeData=this.chargesTemplateData.clientChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.clientChargeTimeTypeOptions;break;case 4:this.chargeCalculationTypeData=this.chargesTemplateData.shareChargeCalculationTypeOptions,this.chargeTimeTypeData=this.chargesTemplateData.shareChargeTimeTypeOptions;break}})}filteredChargeCalculationType(){return this.chargeCalculationTypeData.filter(t=>!(this.chargeForm.get("chargeTimeType").value===12&&(t.id===3||t.id===4)||this.chargeForm.get("chargeTimeType").value!==12&&t.id===5||this.chargeForm.get("chargeAppliesTo").value===2&&!(this.chargeForm.get("chargeTimeType").value===5||this.chargeForm.get("chargeTimeType").value===16||this.chargeForm.get("chargeTimeType").value===17)&&t.id===2))}showMinMaxCap(){let t=this.chargeForm.controls.chargeAppliesTo.value,n=this.chargeForm.controls.chargeCalculationType.value,i=this.chargeForm.controls.chargeTimeType.value;return t===1?n===2||n===3||n===4||n===5:t===2?(i===16||i===5)&&n===2:t===4?(i===14||i===15)&&n===2:!1}setConditionalControls(){this.chargeForm.get("chargeAppliesTo").valueChanges.subscribe(t=>{switch(this.chargeForm.get("penalty").enable(),t){case 1:this.chargeForm.addControl("chargePaymentMode",new it("",ce.required)),this.chargeForm.removeControl("incomeAccountId");break;case 2:this.chargeForm.removeControl("chargePaymentMode"),this.chargeForm.removeControl("incomeAccountId");break;case 3:this.chargeForm.removeControl("chargePaymentMode"),this.chargeForm.addControl("incomeAccountId",new it(""));break;case 4:this.chargeForm.removeControl("chargePaymentMode"),this.chargeForm.removeControl("incomeAccountId"),this.chargeForm.get("penalty").setValue(!1);break}this.chargeForm.get("chargeCalculationType").reset(),this.chargeForm.get("chargeTimeType").reset()}),this.chargeForm.get("chargeTimeType").valueChanges.subscribe(t=>{switch(this.chargeForm.removeControl("feeFrequency"),this.chargeForm.removeControl("feeInterval"),this.chargeForm.removeControl("feeOnMonthDay"),this.chargeForm.removeControl("addFeeFrequency"),this.chargeForm.get("chargeAppliesTo").value!==4&&this.chargeForm.get("penalty").enable(),t){case 6:this.chargeForm.addControl("feeOnMonthDay",new it("",ce.required));break;case 7:this.chargeForm.addControl("feeOnMonthDay",new it("")),this.chargeForm.addControl("feeInterval",new it("",[ce.required,ce.min(1),ce.max(12),ce.pattern("^[1-9]\\d*$")])),this.repeatEveryLabel="Months";break;case 9:this.chargeForm.get("penalty").setValue(!0),this.chargeForm.addControl("addFeeFrequency",new it(!1)),this.chargeForm.get("addFeeFrequency").valueChanges.subscribe(n=>{n?(this.chargeForm.addControl("feeFrequency",new it("",ce.required)),this.chargeForm.addControl("feeInterval",new it("",[ce.required,ce.pattern("^[1-9]\\d*$")]))):(this.chargeForm.removeControl("feeFrequency"),this.chargeForm.removeControl("feeInterval"))});break;case 11:this.chargeForm.addControl("feeInterval",new it("",[ce.required,ce.pattern("^[1-9]\\d*$")])),this.repeatEveryLabel="Weeks";break}}),this.chargeForm.get("currencyCode").valueChanges.subscribe(t=>{this.currencyDecimalPlaces=this.chargesTemplateData.currencyOptions.find(n=>n.code===t).decimalPlaces})}submit(){let t=this.chargeForm.value,n=this.settingsService.language.code,i=this.chargeForm.value.feeOnMonthDay,s="dd MMM";t.feeOnMonthDay instanceof Date&&(t.feeOnMonthDay=this.dateUtils.formatDate(i,s));let d=qt(at({},t),{monthDayFormat:s,locale:n});delete d.addFeeFrequency,d.taxGroupId||delete d.taxGroupId,d.minCap||delete d.minCap,d.maxCap||delete d.maxCap,this.productsService.createCharge(d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-charge"]],decls:20,vars:13,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","chargeAppliesTo"],[3,"value"],[3,"inset"],[1,"layout-row-wrap","gap-2percent","layout-lt-md-column","form-section"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","required","","formControlName","name"],["required","","formControlName","currencyCode"],["required","","formControlName","chargeTimeType"],["required","","formControlName","chargeCalculationType"],[1,"flex-48","add-fee-frequency-wrapper"],["matInput","","required","","formControlName","amount"],[1,"flex-48",3,"inputFormControl","glAccountList","inputLabel"],["formControlName","taxGroupId"],[1,"flex-48","layout-row","gap-2percent","layout-lt-md-column"],[1,"flex-50","active-wrapper"],["labelPosition","before","formControlName","active"],[1,"flex-50","penalty-wrapper"],["labelPosition","before","formControlName","penalty"],["required","","formControlName","chargePaymentMode"],["labelPosition","before","formControlName","addFeeFrequency"],["matInput","","required","","formControlName","feeInterval"],["required","","formControlName","feeFrequency"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","autofocus","","formControlName","minCap","mifosxValidateOnFocus",""],["matInput","","autofocus","","formControlName","maxCap","mifosxValidateOnFocus",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),Se(10,aIt,3,5,"mat-option",6,Pe),r(),E(12,rIt,7,9,"mat-error"),r(),b(13,"mat-divider",7),E(14,NIt,63,41,"div",8),r()(),l(15,"mat-card-actions",9)(16,"button",10),c(17),p(18,"translate"),r(),F(19,LIt,3,4,"button",11),r()()()()),n&2&&(a(2),g("formGroup",i.chargeForm),a(5),h(m(8,8,"labels.inputs.Charge Applies To")),a(3),we(i.chargesTemplateData.chargeAppliesToOptions),a(2),I(i.chargeForm.controls.chargeAppliesTo.hasError("required")?12:-1),a(),g("inset",!0),a(),I(i.chargeForm.controls.chargeAppliesTo.value?14:-1),a(2),g("routerLink",oe(12,oIt)),a(),v(" ",m(18,10,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,Ri,Wg,ta,he,ki],styles:[".penalty-wrapper[_ngcontent-%COMP%], .active-wrapper[_ngcontent-%COMP%], .add-fee-frequency-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var VIt=["buttonCreateFixedProduct"],qIt=["templateButtonCreateFixedProduct"],zIt=["fixedProductsTable"],HIt=["templateFixedProductsTable"],GIt=()=>[10,25,50,100],jIt=()=>["create"],$It=e=>[e];function UIt(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,jIt)),a(2),v(" ",m(3,2,"labels.buttons.Create Fixed Deposit Product")," "))}function WIt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function QIt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function YIt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Short Name")))}function JIt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.shortName)}}function KIt(e,o){e&1&&b(0,"tr",26)}function XIt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,$It,t.id))}}function ZIt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create Fixed Deposit Product")),a(3),h(m(5,7,"labels.text.Allows you to create new fixed deposit product")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function e6t(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.text.Search bar to filter fixed deposit products.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function t6t(e,o){if(e&1){let t=Y();l(0,"h4",28),c(1),p(2,"translate"),l(3,"a",32),c(4),p(5,"translate"),r()(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(14),p(15,"translate"),r()()}e&2&&(a(),v(" ",m(2,5,"labels.text.List of fixed deposit products in the organization"),": "),a(3),h(m(5,7,"labels.inputs.Fixed Deposit Products")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var x3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","shortName"],this.route.data.subscribe(t=>{this.fixedDepositProductData=t.fixedDepositProducts})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setFixedDepositProducts()}setFixedDepositProducts(){this.dataSource=new Wt(this.fixedDepositProductData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}ngAfterViewInit(){this.configurationWizardService.showFixedDepositProductsPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateFixedProduct,this.buttonCreateFixedProduct.nativeElement,"bottom",!0)}),this.configurationWizardService.showFixedDepositProductsList===!0&&setTimeout(()=>{this.showPopover(this.templateFixedProductsTable,this.fixedProductsTable.nativeElement,"top",!0)})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}nextStep(){this.configurationWizardService.showFixedDepositProductsPage=!1,this.configurationWizardService.showFixedDepositProductsList=!1,this.configurationWizardService.showRecurringDepositProducts=!0,this.router.navigate(["/products"])}previousStep(){this.configurationWizardService.showFixedDepositProductsPage=!1,this.configurationWizardService.showFixedDepositProductsList=!1,this.configurationWizardService.showFixedDepositProducts=!0,this.router.navigate(["/products"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-products"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(VIt,5),Ee(qIt,5),Ee(zIt,5),Ee(HIt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateFixedProduct=s.first),Te(s=Me())&&(i.templateButtonCreateFixedProduct=s.first),Te(s=Me())&&(i.fixedProductsTable=s.first),Te(s=Me())&&(i.templateFixedProductsTable=s.first)}},decls:30,vars:9,consts:[["buttonCreateFixedProduct",""],["filter",""],["fixedProductsTable",""],["templateButtonCreateFixedProduct",""],["templateFilter",""],["templateFixedProductsTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/102629544/Fixed+Deposit+Products","target","_blank"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,UIt,4,5,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,WIt,3,3,"th",16)(17,QIt,2,1,"td",17),Z(),X(18,18),F(19,YIt,3,3,"th",16)(20,JIt,2,1,"td",17),Z(),F(21,KIt,1,0,"tr",19)(22,XIt,1,3,"tr",20),r(),b(23,"mat-paginator",21),r()(),F(24,ZIt,16,15,"ng-template",null,3,ti)(26,e6t,13,12,"ng-template",null,4,ti)(28,t6t,16,15,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_FIXEDDEPOSITPRODUCT"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,GIt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function i6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Product Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function n6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Short Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function o6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Om=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductDetailsForm()}ngOnInit(){this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.fixedDepositProductDetailsForm.patchValue({name:this.fixedDepositProductsTemplate.name,shortName:this.fixedDepositProductsTemplate.shortName,description:this.fixedDepositProductsTemplate.description})}createFixedDepositProductDetailsForm(){this.fixedDepositProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:["",ce.required]})}get fixedDepositProductDetails(){return this.fixedDepositProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-details-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:29,vars:19,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required",""],["matInput","","formControlName","shortName","maxlength","4","required",""],[1,"flex-98"],["matInput","","formControlName","description","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),E(7,i6t,7,9,"mat-error"),r(),l(8,"mat-form-field",2)(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",4),E(13,n6t,7,9,"mat-error"),r(),l(14,"mat-form-field",5)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"textarea",6),E(19,o6t,7,9,"mat-error"),r()(),l(20,"div",7)(21,"button",8),b(22,"fa-icon",9),c(23),p(24,"translate"),r(),l(25,"button",10),c(26),p(27,"translate"),b(28,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.fixedDepositProductDetailsForm),a(4),h(m(5,9,"labels.inputs.Product Name")),a(3),I(i.fixedDepositProductDetailsForm.controls.name.hasError("required")?7:-1),a(3),h(m(11,11,"labels.inputs.Short Name")),a(3),I(i.fixedDepositProductDetailsForm.controls.shortName.hasError("required")?13:-1),a(3),h(m(17,13,"labels.inputs.Description")),a(3),I(i.fixedDepositProductDetailsForm.controls.description.hasError("required")?19:-1),a(4),v(" ",m(24,15,"labels.buttons.Previous")," "),a(3),v(" ",m(27,17,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function a6t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var Am=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductCurrencyForm()}ngOnInit(){this.currencyData=this.fixedDepositProductsTemplate.currencyOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id?this.fixedDepositProductCurrencyForm.patchValue({currencyCode:this.fixedDepositProductsTemplate.currency.code,digitsAfterDecimal:this.fixedDepositProductsTemplate.currency.decimalPlaces,inMultiplesOf:this.fixedDepositProductsTemplate.currency.inMultiplesOf}):this.fixedDepositProductCurrencyForm.patchValue({currencyCode:this.currencyData[0].code,digitsAfterDecimal:2})}createFixedDepositProductCurrencyForm(){this.fixedDepositProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:[""]})}get fixedDepositProductCurrency(){return this.fixedDepositProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-currency-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:49,vars:43,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required",""],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required",""],["type","number","matInput","","formControlName","inMultiplesOf"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),Se(7,a6t,2,2,"mat-option",4,Pe),r(),l(9,"mat-error"),c(10),p(11,"translate"),p(12,"translate"),l(13,"strong"),c(14),p(15,"translate"),r()()(),l(16,"mat-form-field",2)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",5),l(21,"mat-error"),c(22),p(23,"translate"),p(24,"translate"),l(25,"strong"),c(26),p(27,"translate"),r()()(),l(28,"mat-form-field",2)(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",6),l(33,"mat-error"),c(34),p(35,"translate"),p(36,"translate"),l(37,"strong"),c(38),p(39,"translate"),r()()()(),l(40,"div",7)(41,"button",8),b(42,"fa-icon",9),c(43),p(44,"translate"),r(),l(45,"button",10),c(46),p(47,"translate"),b(48,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.fixedDepositProductCurrencyForm),a(4),h(m(5,15,"labels.inputs.Currency")),a(3),we(i.currencyData),a(3),le(" ",m(11,17,"labels.inputs.Currency")," ",m(12,19,"labels.commons.is")," "),a(4),h(m(15,21,"labels.commons.required")),a(4),h(m(19,23,"labels.inputs.Decimal Places")),a(4),le(" ",m(23,25,"labels.inputs.Decimal Places")," ",m(24,27,"labels.commons.is")," "),a(4),h(m(27,29,"labels.commons.required")),a(4),h(m(31,31,"labels.inputs.Currency in multiples of")),a(4),le(" ",m(35,33,"labels.inputs.Currency in multiples of")," ",m(36,35,"labels.commons.is")," "),a(4),h(m(39,37,"labels.commons.required")),a(5),v(" ",m(44,39,"labels.buttons.Previous")," "),a(3),v(" ",m(47,41,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function r6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function l6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function s6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function c6t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}var Fm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductTermsForm()}ngOnInit(){this.interestCompoundingPeriodTypeData=this.fixedDepositProductsTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.fixedDepositProductsTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.fixedDepositProductsTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.fixedDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.fixedDepositProductTermsForm.patchValue({minDepositAmount:this.fixedDepositProductsTemplate.minDepositAmount,depositAmount:this.fixedDepositProductsTemplate.depositAmount,maxDepositAmount:this.fixedDepositProductsTemplate.maxDepositAmount}),this.fixedDepositProductTermsForm.patchValue({interestCompoundingPeriodType:this.fixedDepositProductsTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.fixedDepositProductsTemplate.interestPostingPeriodType.id,interestCalculationType:this.fixedDepositProductsTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.fixedDepositProductsTemplate.interestCalculationDaysInYearType.id})}createFixedDepositProductTermsForm(){this.fixedDepositProductTermsForm=this.formBuilder.group({minDepositAmount:[""],depositAmount:["",ce.required],maxDepositAmount:[""],interestCompoundingPeriodType:["",ce.required],interestPostingPeriodType:["",ce.required],interestCalculationType:["",ce.required],interestCalculationDaysInYearType:["",ce.required]})}get fixedDepositProductTerms(){let t=this.fixedDepositProductTermsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-terms-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:100,vars:104,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"flex-31"],["type","number","matInput","","formControlName","minDepositAmount",3,"matTooltip"],["type","number","matInput","","formControlName","depositAmount","required","",3,"matTooltip"],["type","number","matInput","","formControlName","maxDepositAmount",3,"matTooltip"],[1,"flex-98"],[1,"flex-48"],["formControlName","interestCompoundingPeriodType","required","",3,"matTooltip"],[3,"value"],["formControlName","interestPostingPeriodType","required","",3,"matTooltip"],["formControlName","interestCalculationType","required","",3,"matTooltip"],["formControlName","interestCalculationDaysInYearType","required","",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),r(),l(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),p(10,"translate"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),p(16,"translate"),l(17,"mat-error"),c(18),p(19,"translate"),p(20,"translate"),l(21,"strong"),c(22),p(23,"translate"),r()()(),l(24,"mat-form-field",3)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",6),p(29,"translate"),r(),b(30,"mat-divider",7),l(31,"mat-form-field",8)(32,"mat-label"),c(33),p(34,"translate"),r(),l(35,"mat-select",9),p(36,"translate"),Se(37,r6t,2,2,"mat-option",10,Pe),r(),l(39,"mat-error"),c(40),p(41,"translate"),p(42,"translate"),l(43,"strong"),c(44),p(45,"translate"),r()()(),l(46,"mat-form-field",8)(47,"mat-label"),c(48),p(49,"translate"),r(),l(50,"mat-select",11),p(51,"translate"),Se(52,l6t,2,2,"mat-option",10,Pe),r(),l(54,"mat-error"),c(55),p(56,"translate"),p(57,"translate"),l(58,"strong"),c(59),p(60,"translate"),r()()(),l(61,"mat-form-field",8)(62,"mat-label"),c(63),p(64,"translate"),r(),l(65,"mat-select",12),p(66,"translate"),Se(67,s6t,2,2,"mat-option",10,Pe),r(),l(69,"mat-error"),c(70),p(71,"translate"),p(72,"translate"),l(73,"strong"),c(74),p(75,"translate"),r()()(),l(76,"mat-form-field",8)(77,"mat-label"),c(78),p(79,"translate"),r(),l(80,"mat-select",13),p(81,"translate"),Se(82,c6t,2,2,"mat-option",10,Pe),r(),l(84,"mat-error"),c(85),p(86,"translate"),p(87,"translate"),l(88,"strong"),c(89),p(90,"translate"),r()()()(),l(91,"div",14)(92,"button",15),b(93,"fa-icon",16),c(94),p(95,"translate"),r(),l(96,"button",17),c(97),p(98,"translate"),b(99,"fa-icon",18),r()()()),n&2&&(g("formGroup",i.fixedDepositProductTermsForm),a(3),h(m(4,40,"labels.inputs.Deposit Amount")),a(4),h(m(8,42,"labels.inputs.Minimum")),a(2),g("matTooltip",Le(m(10,44,"tooltips.The minimum deposit amount required to open a fixed deposit"))),a(4),h(m(14,46,"labels.inputs.Default")),a(2),g("matTooltip",Le(m(16,48,"tooltips.The default deposit amount expected"))),a(3),le(" ",m(19,50,"labels.inputs.Default Deposit Amount")," ",m(20,52,"labels.commons.is")," "),a(4),h(m(23,54,"labels.commons.required")),a(4),h(m(27,56,"labels.inputs.Maximum")),a(2),g("matTooltip",Le(m(29,58,"tooltips.The maximum deposit amount allowed when a fixed deposit"))),a(5),h(m(34,60,"labels.inputs.Interest Compounding Period")),a(2),g("matTooltip",Le(m(36,62,"tooltips.The period at which interest rate"))),a(2),we(i.interestCompoundingPeriodTypeData),a(3),le(" ",m(41,64,"labels.inputs.Interest Compounding Period")," ",m(42,66,"labels.commons.is")," "),a(4),h(m(45,68,"labels.commons.required")),a(4),h(m(49,70,"labels.inputs.Interest Posting Period")),a(2),g("matTooltip",Le(m(51,72,"tooltips.The period at which interest rate is posted or credited"))),a(2),we(i.interestPostingPeriodTypeData),a(3),le(" ",m(56,74,"labels.inputs.Interest Posting Period")," ",m(57,76,"labels.commons.is")," "),a(4),h(m(60,78,"labels.commons.required")),a(4),h(m(64,80,"labels.inputs.Interest Calculated using")),a(2),g("matTooltip",Le(m(66,82,"tooltips.The method used to calculate interest"))),a(2),we(i.interestCalculationTypeData),a(3),le(" ",m(71,84,"labels.inputs.Interest Calculated using")," ",m(72,86,"labels.commons.is")," "),a(4),h(m(75,88,"labels.commons.required")),a(4),h(m(79,90,"labels.inputs.Days in Year")),a(2),g("matTooltip",Le(m(81,92,"tooltips.The setting for number of days"))),a(2),we(i.interestCalculationDaysInYearTypeData),a(3),le(" ",m(86,94,"labels.inputs.Days in Year")," ",m(87,96,"labels.commons.is")," "),a(4),h(m(90,98,"labels.commons.required")),a(5),v(" ",m(95,100,"labels.buttons.Previous")," "),a(3),v(" ",m(98,102,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function p6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function m6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function d6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function u6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function f6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function h6t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function g6t(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",26),Se(5,h6t,2,2,"mat-option",7,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Tax Group")),a(3),we(t.taxGroupData),a(3),le(" ",m(9,6,"labels.inputs.Tax Group")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}var km=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createFixedDepositProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.lockinPeriodFrequencyTypeData=this.fixedDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.fixedDepositProductsTemplate.periodFrequencyTypeOptions.slice(0,-1),this.preClosurePenalInterestOnTypeData=this.fixedDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,this.taxGroupData=this.fixedDepositProductsTemplate.taxGroupOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.fixedDepositProductSettingsForm.patchValue({isMandatoryDeposit:this.fixedDepositProductsTemplate.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:this.fixedDepositProductsTemplate.adjustAdvanceTowardsFuturePayments,allowWithdrawal:this.fixedDepositProductsTemplate.allowWithdrawal,lockinPeriodFrequency:this.fixedDepositProductsTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.fixedDepositProductsTemplate.lockinPeriodFrequencyType?this.fixedDepositProductsTemplate.lockinPeriodFrequencyType.id:"",minDepositTerm:this.fixedDepositProductsTemplate.minDepositTerm,minDepositTermTypeId:this.fixedDepositProductsTemplate.minDepositTermType?this.fixedDepositProductsTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.fixedDepositProductsTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.fixedDepositProductsTemplate.inMultiplesOfDepositTermType?this.fixedDepositProductsTemplate.inMultiplesOfDepositTerm.id:"",maxDepositTerm:this.fixedDepositProductsTemplate.maxDepositTerm,maxDepositTermTypeId:this.fixedDepositProductsTemplate.maxDepositTermType?this.fixedDepositProductsTemplate.minDepositTermType.id:"",preClosurePenalApplicable:this.fixedDepositProductsTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.fixedDepositProductsTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.fixedDepositProductsTemplate.preClosurePenalInterestOnType?this.fixedDepositProductsTemplate.preClosurePenalInterestOnType.id:"",withHoldTax:this.fixedDepositProductsTemplate.withHoldTax}),this.fixedDepositProductsTemplate.withHoldTax&&this.fixedDepositProductSettingsForm.patchValue({taxGroupId:this.fixedDepositProductsTemplate.taxGroup?this.fixedDepositProductsTemplate.taxGroup.id:""})}createFixedDepositProductSettingsForm(){this.fixedDepositProductSettingsForm=this.formBuilder.group({lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:["",ce.required],minDepositTermTypeId:["",ce.required],inMultiplesOfDepositTerm:[""],inMultiplesOfDepositTermTypeId:[""],maxDepositTerm:[""],maxDepositTermTypeId:[""],preClosurePenalApplicable:[!1],preClosurePenalInterest:[""],preClosurePenalInterestOnTypeId:[""],withHoldTax:[!1]})}setConditionalControls(){this.fixedDepositProductSettingsForm.get("withHoldTax").valueChanges.subscribe(t=>{t?this.fixedDepositProductSettingsForm.addControl("taxGroupId",new it("",ce.required)):this.fixedDepositProductSettingsForm.removeControl("taxGroupId")})}get fixedDepositProductSettings(){let t=this.fixedDepositProductSettingsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-settings-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:120,vars:101,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],[1,"fas","fa-question-circle",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],[1,"flex-98"],[1,"mat-h4","flex-23"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["labelPosition","before","formControlName","withHoldTax",1,"flex-48","margin-v",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","taxGroupId","required",""]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),b(5,"i",3),p(6,"translate"),r(),l(7,"mat-form-field",4)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",5),r(),l(12,"mat-form-field",4)(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,p6t,2,2,"mat-option",7,Pe),r()(),l(19,"h4",2),c(20),p(21,"translate"),b(22,"i",3),p(23,"translate"),r(),l(24,"mat-form-field",4)(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",8),l(29,"mat-error"),c(30),p(31,"translate"),p(32,"translate"),l(33,"strong"),c(34),p(35,"translate"),r()()(),l(36,"mat-form-field",4)(37,"mat-label"),c(38),p(39,"translate"),r(),l(40,"mat-select",9),Se(41,m6t,2,2,"mat-option",7,Pe),r(),l(43,"mat-error"),c(44),p(45,"translate"),p(46,"translate"),l(47,"strong"),c(48),p(49,"translate"),r()()(),l(50,"h4",2),c(51),p(52,"translate"),b(53,"i",10),p(54,"translate"),r(),l(55,"mat-form-field",4)(56,"mat-label"),c(57),p(58,"translate"),r(),b(59,"input",11),r(),l(60,"mat-form-field",4)(61,"mat-label"),c(62),p(63,"translate"),r(),l(64,"mat-select",12),Se(65,d6t,2,2,"mat-option",7,Pe),r()(),l(67,"h4",2),c(68),p(69,"translate"),b(70,"i",10),p(71,"translate"),r(),l(72,"mat-form-field",4)(73,"mat-label"),c(74),p(75,"translate"),r(),b(76,"input",13),r(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),l(81,"mat-select",14),Se(82,u6t,2,2,"mat-option",7,Pe),r()(),b(84,"mat-divider",15),l(85,"h4",16),c(86),p(87,"translate"),b(88,"i",10),p(89,"translate"),r(),l(90,"mat-checkbox",17),c(91),p(92,"translate"),r(),l(93,"mat-form-field",4)(94,"mat-label"),c(95),p(96,"translate"),r(),b(97,"input",18),r(),l(98,"mat-form-field",4)(99,"mat-label"),c(100),p(101,"translate"),r(),l(102,"mat-select",19),Se(103,f6t,2,2,"mat-option",7,Pe),r()(),b(105,"mat-divider",15),l(106,"mat-checkbox",20),p(107,"translate"),c(108),p(109,"translate"),r(),E(110,g6t,14,12,"mat-form-field",4),r(),l(111,"div",21)(112,"button",22),b(113,"fa-icon",23),c(114),p(115,"translate"),r(),l(116,"button",24),c(117),p(118,"translate"),b(119,"fa-icon",25),r()()()),n&2&&(g("formGroup",i.fixedDepositProductSettingsForm),a(3),v(" ",m(4,39,"labels.inputs.Lock-in Period")," "),a(2),g("matTooltip",Le(m(6,41,"tooltips.A period of time during which a fixed deposit account"))),a(4),h(m(10,43,"labels.inputs.Frequency")),a(5),h(m(15,45,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(3),v(" ",m(21,47,"labels.inputs.Minimum Deposit Term")," "),a(2),g("matTooltip",Le(m(23,49,"tooltips.The minimum length of time"))),a(4),h(m(27,51,"labels.inputs.Frequency")),a(4),le(" ",m(31,53,"labels.inputs.Minimum Deposit Term Frequency")," ",m(32,55,"labels.commons.is")," "),a(4),h(m(35,57,"labels.commons.required")),a(4),h(m(39,59,"labels.inputs.Frequency Type")),a(3),we(i.periodFrequencyTypeData),a(3),le(" ",m(45,61,"labels.inputs.Minimum Deposit Term Frequency Type")," ",m(46,63,"labels.commons.is")," "),a(4),h(m(49,65,"labels.commons.required")),a(3),v(" ",m(52,67,"labels.heading.And thereafter, in Multiples of")," "),a(2),g("matTooltip",Le(m(54,69,"tooltips.After the minimum deposit term has passed"))),a(4),h(m(58,71,"labels.inputs.Frequency")),a(5),h(m(63,73,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(3),v(" ",m(69,75,"labels.inputs.Maximum Deposit Term")," "),a(2),g("matTooltip",Le(m(71,77,"tooltips.The maximum length of time funds"))),a(4),h(m(75,79,"labels.inputs.Frequency")),a(5),h(m(80,81,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(4),v(" ",m(87,83,"labels.heading.For Pre-mature closure")," "),a(2),g("matTooltip",Le(m(89,85,"tooltips.This sections defines an interest penalty"))),a(3),v(" ",m(92,87,"labels.inputs.Apply Penal Interest (less)")," "),a(4),v("",m(96,89,"labels.inputs.Penal Interest")," (%)"),a(5),h(m(101,91,"labels.inputs.Period")),a(3),we(i.preClosurePenalInterestOnTypeData),a(3),g("matTooltip",Le(m(107,93,"tooltips.An boolean flag to attach"))),a(2),v(" ",m(109,95,"labels.inputs.Is Withhold Tax Applicable")," "),a(2),I(i.fixedDepositProductSettingsForm.value.withHoldTax?110:-1),a(4),v(" ",m(115,97,"labels.buttons.Previous")," "),a(3),v(" ",m(118,99,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var _6t=e=>({data:e});function C6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function v6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function x6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function b6t(e,o){if(e&1&&(l(0,"mat-select",10),Se(1,x6t,2,2,"mat-option",3,Pe),r()),e&2){let t=w(2);a(),we(t.attributeValueData)}}function y6t(e,o){e&1&&b(0,"input",11)}function S6t(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),E(4,b6t,3,0,"mat-select",10),E(5,y6t,1,0,"input",11),l(6,"mat-error"),c(7),p(8,"translate"),p(9,"translate"),l(10,"strong"),c(11),p(12,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,6,"labels.inputs.Value")),a(2),I(t.depositProductIncentiveForm.value.attributeName!==3?4:-1),a(),I(t.depositProductIncentiveForm.value.attributeName===3?5:-1),a(2),le(" ",m(8,8,"labels.inputs.Value")," ",m(9,10,"labels.commons.is")," "),a(4),h(m(12,12,"labels.commons.required"))}}function w6t(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}var Bm=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po),this.formBuilder=T(nt),this.translateService=T(yi),this.layout={addButtonText:"Add"};let t=this.data;this.createDepositProductIncentiveForm(),this.setConditionalControls(),this.layout=at(at({},this.layout),t.layout),this.dialogRef.disableClose=!0}ngOnInit(){this.dialogRef.updateSize("400px"),this.entityTypeData=this.data.chartTemplate.entityTypeOptions,this.attributeNameData=this.data.chartTemplate.attributeNameOptions,this.conditionTypeData=this.data.chartTemplate.conditionTypeOptions,this.incentiveTypeData=this.data.chartTemplate.incentiveTypeOptions,this.data.values?this.depositProductIncentiveForm.patchValue({entityType:this.data.values.entityType,attributeName:this.data.values.attributeName,conditionType:this.data.values.conditionType,attributeValue:this.data.values.attributeValue,incentiveType:this.data.values.incentiveType,amount:this.data.values.amount}):this.depositProductIncentiveForm.patchValue({entityType:this.data.entityType}),this.title=this.translateService.instant("labels.heading.Incentives")}setConditionalControls(){this.depositProductIncentiveForm.get("attributeName").valueChanges.subscribe(t=>{this.depositProductIncentiveForm.patchValue({attributeValue:""}),this.attributeValueData=this.data.chartTemplate[`${this.attributeNameData.find(n=>n.id===t).code.split(".")[1]}Options`]})}createDepositProductIncentiveForm(){this.depositProductIncentiveForm=this.formBuilder.group({entityType:[""],attributeName:["",ce.required],conditionType:["",ce.required],attributeValue:["",ce.required],incentiveType:["",ce.required],amount:["",ce.required]})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-deposit-product-incentive-form-dialog"]],decls:65,vars:61,consts:[["mat-dialog-title",""],["mat-dialog-content","",1,"layout-column",3,"formGroup"],["formControlName","attributeName","required",""],[3,"value"],["formControlName","conditionType","required",""],["formControlName","incentiveType","required",""],["type","number","matInput","","formControlName","amount","required",""],[1,"layout-row","layout-xs-column","layout-align-center","gap-2percent"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close","disabled"],["formControlName","attributeValue","required",""],["type","number","matInput","","formControlName","attributeValue","required",""]],template:function(n,i){n&1&&(l(0,"h1",0),c(1),r(),l(2,"div",1)(3,"mat-form-field")(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"mat-select",2),Se(8,C6t,2,2,"mat-option",3,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),l(21,"mat-select",4),Se(22,v6t,2,2,"mat-option",3,Pe),r(),l(24,"mat-error"),c(25),p(26,"translate"),p(27,"translate"),l(28,"strong"),c(29),p(30,"translate"),r()()(),E(31,S6t,13,14,"mat-form-field"),l(32,"mat-form-field")(33,"mat-label"),c(34),p(35,"translate"),r(),l(36,"mat-select",5),Se(37,w6t,2,2,"mat-option",3,Pe),r(),l(39,"mat-error"),c(40),p(41,"translate"),p(42,"translate"),l(43,"strong"),c(44),p(45,"translate"),r()()(),l(46,"mat-form-field")(47,"mat-label"),c(48),p(49,"translate"),r(),b(50,"input",6),l(51,"mat-error"),c(52),p(53,"translate"),p(54,"translate"),l(55,"strong"),c(56),p(57,"translate"),r()()()(),l(58,"mat-dialog-actions",7)(59,"button",8),c(60),p(61,"translate"),r(),l(62,"button",9),c(63),p(64,"translate"),r()()),n&2&&(a(),h(i.title),a(),g("formGroup",i.depositProductIncentiveForm),a(3),h(m(6,23,"labels.inputs.Attribute")),a(3),we(i.attributeNameData),a(3),le(" ",m(12,25,"labels.inputs.Attribute")," ",m(13,27,"labels.commons.is")," "),a(4),h(m(16,29,"labels.commons.required")),a(4),h(m(20,31,"labels.inputs.Condition")),a(3),we(i.conditionTypeData),a(3),le(" ",m(26,33,"labels.inputs.Condition")," ",m(27,35,"labels.commons.is")," "),a(4),h(m(30,37,"labels.commons.required")),a(2),I(i.depositProductIncentiveForm.value.attributeName?31:-1),a(3),h(m(35,39,"labels.inputs.Type")),a(3),we(i.incentiveTypeData),a(3),le(" ",m(41,41,"labels.inputs.Type")," ",m(42,43,"labels.commons.is")," "),a(4),h(m(45,45,"labels.commons.required")),a(4),h(m(49,47,"labels.inputs.Interest")),a(4),le(" ",m(53,49,"labels.inputs.Interest")," ",m(54,51,"labels.commons.is")," "),a(4),h(m(57,53,"labels.commons.required")),a(4),h(m(61,55,"labels.buttons.Cancel")),a(2),g("mat-dialog-close",Nt(59,_6t,i.depositProductIncentiveForm))("disabled",!i.depositProductIncentiveForm.valid||i.depositProductIncentiveForm.pristine),a(),v(" ",m(64,57,"labels.buttons."+i.layout.addButtonText)," "))},dependencies:[ue,fe,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,Wn,ho,Nn,Un,he],encapsulation:2})}}return e})();function P6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function T6t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function M6t(e,o){e&1&&(l(0,"div",31)(1,"h3",33),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.heading.It is required to add at least one Slab")))}function D6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function E6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.periodTypeData,"id","value")," ")}}function I6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function O6t(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function A6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function F6t(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v("",t.annualInterestRate," %")}}function k6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function B6t(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function R6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function N6t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",51),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function L6t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",52),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function V6t(e,o){if(e&1){let t=Y();l(0,"td",46)(1,"button",47),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.editChartSlab(s.controls.chartSlabs,i))}),b(2,"fa-icon",48),r(),l(3,"button",49),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.delete(s.controls.chartSlabs,i))}),b(4,"fa-icon",19),r(),l(5,"button",50),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w();return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(6,N6t,4,3,"span"),E(7,L6t,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2).$index,i=w();a(6),I(i.expandChartSlabIndex[n]!==t?6:-1),a(),I(i.expandChartSlabIndex[n]===t?7:-1)}}function q6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function z6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.entityTypeData,"id","value")," ")}}function H6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function G6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.attributeNameData,"id","value")," ")}}function j6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function $6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.conditionTypeData,"id","value")," ")}}function U6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function W6t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.genderData,"id","name"))}}function Q6t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function Y6t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientTypeData,"id","name"))}}function J6t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientClassificationData,"id","name"))}}function K6t(e,o){if(e&1&&(l(0,"td",46),E(1,W6t,3,6,"span")(2,Q6t,2,1,"span")(3,Y6t,3,6,"span")(4,J6t,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function X6t(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function Z6t(e,o){if(e&1&&(l(0,"td",46),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.incentiveTypeData,"id","value")," ")}}function eOt(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function tOt(e,o){if(e&1&&(l(0,"td",46),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function iOt(e,o){e&1&&(l(0,"th",45),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function nOt(e,o){if(e&1){let t=Y();l(0,"td",46)(1,"button",47),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.editIncentive(u.getIncentives(d.controls.chartSlabs,s),i))}),b(2,"fa-icon",48),r(),l(3,"button",49),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.delete(u.getIncentives(d.controls.chartSlabs,s),i))}),b(4,"fa-icon",19),r()()}}function oOt(e,o){e&1&&b(0,"tr",65)}function aOt(e,o){e&1&&b(0,"tr",66)}function rOt(e,o){if(e&1&&(l(0,"table",58),X(1,59),F(2,q6t,3,3,"th",35)(3,z6t,3,6,"td",36),Z(),X(4,60),F(5,H6t,3,3,"th",35)(6,G6t,3,6,"td",36),Z(),X(7,61),F(8,j6t,3,3,"th",35)(9,$6t,3,6,"td",36),Z(),X(10,62),F(11,U6t,3,3,"th",35)(12,K6t,5,1,"td",36),Z(),X(13,63),F(14,X6t,3,3,"th",35)(15,Z6t,3,6,"td",36),Z(),X(16,64),F(17,eOt,3,3,"th",35)(18,tOt,2,1,"td",36),Z(),X(19,40),F(20,iOt,3,3,"th",35)(21,nOt,5,0,"td",36),Z(),F(22,oOt,1,0,"tr",42)(23,aOt,1,0,"tr",43),r()),e&2){let t=w().$implicit,n=w(3);g("dataSource",t.incentives),a(22),g("matHeaderRowDef",n.incentivesDisplayedColumns),a(),g("matRowDefColumns",n.incentivesDisplayedColumns)}}function lOt(e,o){if(e&1){let t=Y();l(0,"td",46)(1,"div",53)(2,"mat-card",54)(3,"h4",55),c(4),p(5,"translate"),r(),l(6,"div",56)(7,"button",57),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.addIncentive(d.getIncentives(s.controls.chartSlabs,i)))}),b(8,"fa-icon",8),c(9),p(10,"translate"),r()(),E(11,rOt,24,3,"table",58),r()()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w();Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,5,"labels.heading.Incentives")," "),a(5),v(" ",m(10,7,"labels.buttons.Add")," "),a(2),I(t.incentives.length?11:-1)}}function sOt(e,o){e&1&&b(0,"tr",65)}function cOt(e,o){e&1&&b(0,"tr",66)}function pOt(e,o){e&1&&b(0,"tr",67)}function mOt(e,o){if(e&1&&(l(0,"table",32),X(1,34),F(2,D6t,3,3,"th",35)(3,E6t,3,6,"td",36),Z(),X(4,37),F(5,I6t,3,3,"th",35)(6,O6t,2,1,"td",36),Z(),X(7,38),F(8,A6t,3,3,"th",35)(9,F6t,2,1,"td",36),Z(),X(10,39),F(11,k6t,3,3,"th",35)(12,B6t,2,1,"td",36),Z(),X(13,40),F(14,R6t,3,3,"th",35)(15,V6t,8,2,"td",36),Z(),X(16,41),F(17,lOt,12,9,"td",36),Z(),F(18,sOt,1,0,"tr",42)(19,cOt,1,0,"tr",43)(20,pOt,1,0,"tr",44),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w();g("dataSource",n.value.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function dOt(e,o){if(e&1){let t=Y();l(0,"div",9),b(1,"mat-divider",15),l(2,"div",16)(3,"div",17)(4,"button",18),p(5,"translate"),R("click",function(){let i=V(t).$index,s=w();return q(s.delete(s.charts,i))}),b(6,"fa-icon",19),r()(),l(7,"mat-form-field",20)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",21),E(12,P6t,7,9,"mat-error"),r(),l(13,"mat-form-field",22)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"textarea",23),E(18,T6t,7,9,"mat-error"),r(),l(19,"mat-form-field",24),R("click",function(){V(t);let i=ve(26);return q(i.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",25)(24,"mat-datepicker-toggle",26)(25,"mat-datepicker",null,0),l(27,"mat-error"),c(28),p(29,"translate"),p(30,"translate"),l(31,"strong"),c(32),p(33,"translate"),r()()(),l(34,"mat-form-field",24),R("click",function(){V(t);let i=ve(41);return q(i.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",27)(39,"mat-datepicker-toggle",26)(40,"mat-datepicker",null,1),r(),l(42,"div",28)(43,"mat-checkbox",29),c(44),p(45,"translate"),r()(),l(46,"div",30)(47,"button",7),R("click",function(){let i=V(t).$implicit,s=w();return q(s.addChartSlab(i.controls.chartSlabs))}),b(48,"fa-icon",8),c(49),p(50,"translate"),r()(),E(51,M6t,4,3,"div",31),E(52,mOt,21,4,"table",32),r()()}if(e&2){let t,n,i=o.$implicit,s=o.$index,d=ve(26),u=ve(41),f=w();a(2),g("formGroupName",s),a(2),g("matTooltip",Le(m(5,24,"tooltips.Delete Interest Rate Chart"))),a(5),h(m(10,26,"labels.inputs.Name")),a(3),I((t=i.get("name"))!=null&&t.touched&&((t=i.get("name"))!=null&&t.hasError("required"))?12:-1),a(3),h(m(16,28,"labels.inputs.Description")),a(3),I((n=i.get("description"))!=null&&n.touched&&((n=i.get("description"))!=null&&n.hasError("required"))?18:-1),a(3),h(m(22,30,"labels.inputs.From Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",d),a(),g("for",d),a(4),le(" ",m(29,32,"labels.inputs.Valid from Date")," ",m(30,34,"labels.commons.is")," "),a(4),h(m(33,36,"labels.commons.required")),a(4),h(m(37,38,"labels.inputs.End Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",u),a(),g("for",u),a(5),v(" ",m(45,40,"labels.inputs.Is primary grouping by amount?")," "),a(5),v(" ",m(50,42,"labels.buttons.Add Slab")," "),a(2),I(i.value.chartSlabs.length===0?51:-1),a(),I(i.value.chartSlabs.length!==0?52:-1)}}var Rm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.chartSlabsDisplayedColumns=[],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount","actions"],this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.expandChartSlabIndex=[],this.chartDetailData=[],this.chartsDetail=[],this.createFixedDepositProductInterestRateChartForm()}ngOnInit(){this.periodTypeData=this.fixedDepositProductsTemplate.chartTemplate.periodTypes,this.entityTypeData=this.fixedDepositProductsTemplate.chartTemplate.entityTypeOptions,this.attributeNameData=this.fixedDepositProductsTemplate.chartTemplate.attributeNameOptions,this.conditionTypeData=this.fixedDepositProductsTemplate.chartTemplate.conditionTypeOptions,this.genderData=this.fixedDepositProductsTemplate.chartTemplate.genderOptions,this.clientTypeData=this.fixedDepositProductsTemplate.chartTemplate.clientTypeOptions,this.clientClassificationData=this.fixedDepositProductsTemplate.chartTemplate.clientClassificationOptions,this.incentiveTypeData=this.fixedDepositProductsTemplate.chartTemplate.incentiveTypeOptions,this.fixedDepositProductsTemplate&&this.assignFormData()}assignFormData(){this.addChart();let t=Array.isArray(this.fixedDepositProductsTemplate.activeChart);this.fixedDepositProductsTemplate.activeChart&&(t?this.chartDetailData=this.fixedDepositProductsTemplate.activeChart:this.chartDetailData.push(this.fixedDepositProductsTemplate.activeChart)),this.getChartsDetailsData(),this.charts.controls.forEach((n,i)=>{this.chartsDetail[i]&&this.chartsDetail[i].chartSlabs.forEach((s,d)=>{let u=this.formBuilder.group({id:[s.id],amountRangeFrom:[s.amountRangeFrom||""],amountRangeTo:[s.amountRangeTo||""],annualInterestRate:[s.annualInterestRate,ce.required],description:[s.description,ce.required],fromPeriod:[s.fromPeriod,ce.required],toPeriod:[s.toPeriod||""],periodType:[s.periodType,ce.required],incentives:this.formBuilder.array([])});n.controls.chartSlabs.push(u);let _=n.controls.chartSlabs.controls[d];this.chartsDetail[i].chartSlabs[d].incentives.forEach(C=>{let x=this.formBuilder.group({amount:[C.amount,ce.required],attributeName:[C.attributeName,ce.required],attributeValue:[C.attributeValue,ce.required],conditionType:[C.conditionType,ce.required],entityType:[C.entityType,ce.required],incentiveType:[C.incentiveType,ce.required]});_.controls.incentives.push(x)})})})}getChartsDetailsData(){this.chartDetailData.forEach(t=>{let n={endDate:t.endDate?new Date(t.endDate):"",fromDate:t.fromDate?new Date(t.fromDate):"",isPrimaryGroupingByAmount:t.isPrimaryGroupingByAmount,name:t.name,description:t.description,chartSlabs:this.getChartSlabsData(t)};t.id&&(n.id=t.id),this.chartsDetail.push(n)}),this.fixedDepositProductInterestRateChartForm.patchValue({charts:this.chartsDetail})}getChartSlabsData(t){let n=[],i=[];return Array.isArray(t.chartSlabs)?i=t.chartSlabs:i.push(t.chartSlabs),i.forEach(d=>{let u={periodType:d.periodType.id,amountRangeFrom:d.amountRangeFrom,amountRangeTo:d.amountRangeTo,annualInterestRate:d.annualInterestRate,description:d.description?d.description:"",fromPeriod:d.fromPeriod,toPeriod:d.toPeriod,incentives:this.getIncentivesData(d)};d.id&&(u.id=d.id),n.push(u)}),n}getIncentivesData(t){let n=[],i=[];return t.incentives&&(Array.isArray(t.incentives)?i=t.incentives:i.push(t.incentives),i.forEach(d=>{let u={amount:d.amount,attributeName:d.attributeName,attributeValue:d.attributeValue,conditionType:d.conditionType,entityType:d.entityType,incentiveType:d.incentiveType};n.push(u)})),n}createFixedDepositProductInterestRateChartForm(){this.fixedDepositProductInterestRateChartForm=this.formBuilder.group({charts:this.formBuilder.array([])})}get charts(){return this.fixedDepositProductInterestRateChartForm.get("charts")}createChartForm(){return this.formBuilder.group({id:[null],name:[""],description:[""],fromDate:["",ce.required],endDate:[""],isPrimaryGroupingByAmount:[!1],chartSlabs:this.formBuilder.array([],ce.required)})}addChart(){this.charts.push(this.createChartForm()),this.setConditionalControls(this.charts.length-1)}setConditionalControls(t){this.chartSlabsDisplayedColumns[t]=["period","amountRange","annualInterestRate","description","actions"],this.charts.at(t).get("isPrimaryGroupingByAmount").valueChanges.subscribe(n=>{this.chartSlabsDisplayedColumns[t]=n?["amountRange","period"]:["period","amountRange"],this.chartSlabsDisplayedColumns[t].push("annualInterestRate","description","actions")})}getIncentives(t,n){return t.at(n).get("incentives")}addChartSlab(t){let n=at({},this.getData("Slab"));this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(s.data.addControl("incentives",this.formBuilder.array([])),t.push(s.data))})}addIncentive(t){let n=qt(at({},this.getData("Incentive")),{entityType:this.entityTypeData[0].id});this.dialog.open(Bm,{data:n}).afterClosed().subscribe(s=>{s.data&&t.push(s.data)})}editChartSlab(t,n){let i=qt(at({},this.getData("Slab",t.at(n).value)),{layout:{addButtonText:this.translateService.instant("labels.text.this")}});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}editIncentive(t,n){let i=qt(at({},this.getData("Incentive",t.at(n).value)),{layout:{addButtonText:this.translateService.instant("labels.text.this")}});this.dialog.open(Bm,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"Slab":return{title:this.translateService.instant("labels.inputs.Slab"),formfields:this.getSlabFormfields(n)};case"Incentive":return{values:n,chartTemplate:this.fixedDepositProductsTemplate.chartTemplate}}}getSlabFormfields(t){return[new $i({controlName:"periodType",label:this.translateService.instant("labels.inputs.Period Type"),value:t?t.periodType:this.periodTypeData[0].id,options:{label:"value",value:"id",data:this.periodTypeData},required:!0,order:1}),new vn({controlName:"fromPeriod",label:this.translateService.instant("labels.inputs.Period From"),value:t?t.fromPeriod:void 0,type:"number",required:!0,order:2}),new vn({controlName:"toPeriod",label:this.translateService.instant("labels.inputs.Period To"),value:t?t.toPeriod:void 0,type:"number",order:3}),new vn({controlName:"amountRangeFrom",label:this.translateService.instant("labels.inputs.Amount Range From"),value:t?t.amountRangeFrom:void 0,type:"number",order:4}),new vn({controlName:"amountRangeTo",label:this.translateService.instant("labels.inputs.Amount Range To"),value:t?t.amountRangeTo:void 0,type:"number",order:5}),new vn({controlName:"annualInterestRate",label:this.translateService.instant("labels.inputs.Interest"),value:t?t.annualInterestRate:void 0,type:"number",required:!0,order:6}),new vn({controlName:"description",label:this.translateService.instant("labels.inputs.Description"),value:t?t.description:void 0,required:!0,order:7})]}get fixedDepositProductInterestRateChart(){let t=this.settingsService.language.code,n="YYYY-MM-DD",i=this.fixedDepositProductInterestRateChartForm.value;for(let s of i.charts)s.locale=t,s.dateFormat="yyyy-MM-dd",s.fromDate instanceof Date&&(s.fromDate=this.dateUtils.formatDateAsString(s.fromDate,n)),s.endDate&&s.endDate instanceof Date&&(s.endDate=this.dateUtils.formatDateAsString(s.endDate,n)),s.endDate===""&&delete s.endDate,s.id===null&&delete s.id;return i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-interest-rate-chart-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate"},decls:23,vars:17,consts:[["validFromDatePicker",""],["endDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h3","flex-83"],[1,"fas","fa-question",3,"matTooltip"],[1,"flex-13","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["formArrayName","charts",1,"flex-fill","layout-row-wrap","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","responsive-column",3,"formGroupName"],["align","end",1,"flex-100"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],[1,"flex-28","m-r-5"],["matInput","","formControlName","name","required",""],[1,"flex-70"],["matInput","","formControlName","description","required",""],[1,"flex-48","m-r-5",3,"click"],["matInput","","formControlName","fromDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"flex-100","layout-row","align-between","align-items-center"],["labelPosition","before","formControlName","isPrimaryGroupingByAmount"],[1,"center","flex-100"],[1,"flex-100"],["mat-table","","multiTemplateDataRows","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"mat-h3"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-fill","incentives"],[1,"layout-row-wrap","flex-fill"],[1,"mat-h4","flex-63"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,i){n&1&&(l(0,"form",2)(1,"div",3)(2,"h4",4),c(3),p(4,"translate"),b(5,"i",5),p(6,"translate"),r(),l(7,"div",6)(8,"button",7),R("click",function(){return i.addChart()}),b(9,"fa-icon",8),c(10),p(11,"translate"),r()(),Se(12,dOt,53,44,"div",9,Pe),r(),l(14,"div",10)(15,"button",11),b(16,"fa-icon",12),c(17),p(18,"translate"),r(),l(19,"button",13),c(20),p(21,"translate"),b(22,"fa-icon",14),r()()()),n&2&&(g("formGroup",i.fixedDepositProductInterestRateChartForm),a(3),v(" ",m(4,7,"labels.inputs.Interest Rate Chart")," "),a(2),g("matTooltip",Le(m(6,9,"tooltips.The interest rate chart"))),a(5),v(" ",m(11,11,"labels.buttons.Add")," "),a(2),we(i.charts.controls),a(5),v(" ",m(18,13,"labels.buttons.Previous")," "),a(3),v(" ",m(21,15,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,La,Ue,Fe,Be,ut,ai,ze,mi,di,pi,xe,fi,si,ke,Ri,wi,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{margin:.5em 0 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function uOt(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function fOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function hOt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function gOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function _Ot(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function COt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function vOt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function xOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function bOt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function yOt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function SOt(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function wOt(e,o){e&1&&b(0,"tr",26)}function POt(e,o){e&1&&b(0,"tr",27)}var Nm=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"]}ngOnInit(){this.chargeData=this.fixedDepositProductsTemplate.chargeOptions,this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id?this.chargesDataSource=this.fixedDepositProductsTemplate.charges:this.chargesDataSource=[],this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value=""}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]))})}get fixedDepositProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-charges-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,uOt,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,fOt,3,3,"th",9)(18,hOt,2,1,"td",10),Z(),X(19,11),F(20,gOt,3,3,"th",9)(21,_Ot,2,1,"td",10),Z(),X(22,12),F(23,COt,3,3,"th",9)(24,vOt,3,3,"td",10),Z(),X(25,13),F(26,xOt,3,3,"th",9)(27,bOt,2,1,"td",10),Z(),X(28,14),F(29,yOt,3,3,"th",9)(30,SOt,3,0,"td",10),Z(),F(31,wOt,1,0,"tr",15)(32,POt,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ac,In],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function TOt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function MOt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.fixedDepositProductAccountingForm.controls.feesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable")}}function DOt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.fixedDepositProductAccountingForm.controls.penaltiesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function EOt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.fixedDepositProductAccountingForm.controls.interestPayableAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Interest Payable")}}function IOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.heading.Payment Type")))}function OOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function AOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function FOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.assetAccountData,"id","name")," ")}}function kOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Actions")))}function BOt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete(s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",35),r()()}}function ROt(e,o){e&1&&b(0,"tr",36)}function NOt(e,o){e&1&&b(0,"tr",37)}function LOt(e,o){if(e&1&&(l(0,"table",21),X(1,23),F(2,IOt,3,3,"th",24)(3,OOt,3,6,"td",25),Z(),X(4,26),F(5,AOt,3,3,"th",24)(6,FOt,3,6,"td",25),Z(),X(7,27),F(8,kOt,3,3,"th",24)(9,BOt,5,0,"td",25),Z(),F(10,ROt,1,0,"tr",28)(11,NOt,1,0,"tr",29),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function VOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.catalogs.Fees")))}function qOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function zOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function HOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function GOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Actions")))}function jOt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function $Ot(e,o){e&1&&b(0,"tr",36)}function UOt(e,o){e&1&&b(0,"tr",37)}function WOt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,VOt,3,3,"th",24)(3,qOt,3,6,"td",25),Z(),X(4,39),F(5,zOt,3,3,"th",24)(6,HOt,3,6,"td",25),Z(),X(7,27),F(8,GOt,3,3,"th",24)(9,jOt,5,0,"td",25),Z(),F(10,$Ot,1,0,"tr",28)(11,UOt,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function QOt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),r(),l(4,"div",18)(5,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(6,"fa-icon",20),c(7),p(8,"translate"),r()(),E(9,WOt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),h(m(3,3,"labels.heading.Map Fees to Specific Income Accounts")),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.feeToIncomeAccountMappings.value.length!==0?9:-1)}}function YOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function JOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function KOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function XOt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function ZOt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.buttons.Actions")))}function eAt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function tAt(e,o){e&1&&b(0,"tr",36)}function iAt(e,o){e&1&&b(0,"tr",37)}function nAt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,YOt,3,3,"th",24)(3,JOt,3,6,"td",25),Z(),X(4,39),F(5,KOt,3,3,"th",24)(6,XOt,3,6,"td",25),Z(),X(7,27),F(8,ZOt,3,3,"th",24)(9,eAt,5,0,"td",25),Z(),F(10,tAt,1,0,"tr",28)(11,iAt,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function oAt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),p(4,"translate"),r(),l(5,"div",18)(6,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(7,"fa-icon",20),c(8),p(9,"translate"),r()(),E(10,nAt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),le(" ",m(3,4,"labels.catalogs.Penalties")," ",m(4,6,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(6),v(" ",m(9,8,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?10:-1)}}function aAt(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"div",16)(2,"h4",17),c(3),p(4,"translate"),r(),l(5,"div",18)(6,"button",19),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(7,"fa-icon",20),c(8),p(9,"translate"),r()(),E(10,LOt,12,3,"table",21),r(),E(11,QOt,10,7,"div",22),E(12,oAt,11,10,"div",22),r()}if(e&2){let t=w(2);a(3),v(" ",m(4,5,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(2),I(t.paymentChannelToFundSourceMappings.value.length!==0?10:-1),a(),I(t.existCharges()?11:-1),a(),I(t.existCharges()?12:-1)}}function rAt(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12),E(5,MOt,1,4,"mifosx-gl-account-selector",12),E(6,DOt,1,4,"mifosx-gl-account-selector",12),b(7,"mat-divider",4),l(8,"h4",11),c(9),p(10,"translate"),r(),b(11,"mifosx-gl-account-selector",12)(12,"mifosx-gl-account-selector",12),E(13,EOt,1,4,"mifosx-gl-account-selector",12),b(14,"mat-divider",4),l(15,"h4",11),c(16),p(17,"translate"),r(),b(18,"mifosx-gl-account-selector",12)(19,"mat-divider",4),l(20,"h4",11),c(21),p(22,"translate"),r(),b(23,"mifosx-gl-account-selector",12)(24,"mifosx-gl-account-selector",12)(25,"mat-divider",4),l(26,"h3",13),c(27),p(28,"translate"),r(),b(29,"mat-checkbox",14),E(30,aAt,13,9,"div",15),r()),e&2){let t=w();a(2),h(m(3,33,"labels.heading.Assets")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.savingsReferenceAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Saving reference"),a(),I(t.isAccrualAccounting()?5:-1),a(),I(t.isAccrualAccounting()?6:-1),a(3),h(m(10,35,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.savingsControlAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Saving control"),a(),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Savings transfers in suspense"),a(),I(t.isAccrualAccounting()?13:-1),a(3),h(m(17,37,"labels.heading.Expenses")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.interestOnSavingsAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Interest on savings"),a(3),h(m(22,39,"labels.heading.Income")),a(2),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.fixedDepositProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(3),h(m(28,41,"labels.heading.Advanced Accounting Rules")),a(3),I(t.fixedDepositProductAccountingForm.value.advancedAccountingRules?30:-1)}}var Lm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.accounting=T(To),this.translateService=T(yi),this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.createfixedDepositProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.chargeData=this.fixedDepositProductsTemplate.chargeOptions||[],this.penaltyData=this.fixedDepositProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.fixedDepositProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.fixedDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.fixedDepositProductsTemplate!==void 0&&this.fixedDepositProductsTemplate.id&&this.assignAccountingStepData()}assignAccountingStepData(){this.fixedDepositProductAccountingForm.patchValue({accountingRule:this.fixedDepositProductsTemplate.accountingRule.id}),this.isCashOrAccrualAccounting()&&(this.fixedDepositProductAccountingForm.patchValue({savingsReferenceAccountId:this.fixedDepositProductsTemplate.accountingMappings.savingsReferenceAccount.id,savingsControlAccountId:this.fixedDepositProductsTemplate.accountingMappings.savingsControlAccount.id,transfersInSuspenseAccountId:this.fixedDepositProductsTemplate.accountingMappings.transfersInSuspenseAccount.id,incomeFromFeeAccountId:this.fixedDepositProductsTemplate.accountingMappings.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:this.fixedDepositProductsTemplate.accountingMappings.incomeFromPenaltyAccount.id,interestOnSavingsAccountId:this.fixedDepositProductsTemplate.accountingMappings.interestOnSavingsAccount.id}),this.isAccrualAccounting()&&this.fixedDepositProductAccountingForm.patchValue({feesReceivableAccountId:this.fixedDepositProductsTemplate.accountingMappings.feeReceivableAccount.id,penaltiesReceivableAccountId:this.fixedDepositProductsTemplate.accountingMappings.penaltyReceivableAccount.id,interestPayableAccountId:this.fixedDepositProductsTemplate.accountingMappings.interestPayableAccount.id}),(this.fixedDepositProductsTemplate.paymentChannelToFundSourceMappings||this.fixedDepositProductsTemplate.feeToIncomeAccountMappings||this.fixedDepositProductsTemplate.penaltyToIncomeAccountMappings)&&this.fixedDepositProductAccountingForm.patchValue({advancedAccountingRules:!0}),this.fixedDepositProductsTemplate.paymentChannelToFundSourceMappings&&this.fixedDepositProductsTemplate.paymentChannelToFundSourceMappings.forEach(t=>{let n=this.formBuilder.group({paymentTypeId:[t.paymentType.id,ce.required],fundSourceAccountId:[t.fundSourceAccount.id,ce.required]});this.fixedDepositProductAccountingForm.controls.paymentChannelToFundSourceMappings.push(n)}),this.fixedDepositProductsTemplate.feeToIncomeAccountMappings&&this.fixedDepositProductsTemplate.feeToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.fixedDepositProductAccountingForm.controls.feeToIncomeAccountMappings.push(n)}),this.fixedDepositProductsTemplate.penaltyToIncomeAccountMappings&&this.fixedDepositProductsTemplate.penaltyToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.fixedDepositProductAccountingForm.controls.penaltyToIncomeAccountMappings.push(n)}))}createfixedDepositProductAccountingForm(){this.fixedDepositProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}existCharges(){return this.chargeData.length>0}setConditionalControls(){this.fixedDepositProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2||t===3?(this.fixedDepositProductAccountingForm.addControl("savingsReferenceAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("savingsControlAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("interestOnSavingsAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),t===3&&(this.fixedDepositProductAccountingForm.addControl("feesReceivableAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("penaltiesReceivableAccountId",new it("",ce.required)),this.fixedDepositProductAccountingForm.addControl("interestPayableAccountId",new it("",ce.required))),this.fixedDepositProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.fixedDepositProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.fixedDepositProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.fixedDepositProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([]))):(this.fixedDepositProductAccountingForm.removeControl("paymentChannelToFundSourceMappings"),this.fixedDepositProductAccountingForm.removeControl("feeToIncomeAccountMappings"),this.fixedDepositProductAccountingForm.removeControl("penaltyToIncomeAccountMappings"))})):(this.fixedDepositProductAccountingForm.removeControl("savingsReferenceAccountId"),this.fixedDepositProductAccountingForm.removeControl("overdraftPortfolioControlId"),this.fixedDepositProductAccountingForm.removeControl("savingsControlAccountId"),this.fixedDepositProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.fixedDepositProductAccountingForm.removeControl("interestOnSavingsAccountId"),this.fixedDepositProductAccountingForm.removeControl("writeOffAccountId"),this.fixedDepositProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.fixedDepositProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.fixedDepositProductAccountingForm.removeControl("incomeFromInterestId"),this.fixedDepositProductAccountingForm.removeControl("advancedAccountingRules"),this.fixedDepositProductAccountingForm.removeControl("escheatLiabilityId"),this.fixedDepositProductAccountingForm.removeControl("feesReceivableAccountId"),this.fixedDepositProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.fixedDepositProductAccountingForm.removeControl("interestPayableAccountId"))})}get paymentChannelToFundSourceMappings(){return this.fixedDepositProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.fixedDepositProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.fixedDepositProductAccountingForm.get("penaltyToIncomeAccountMappings")}add(t,n){let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&n.push(d.data)})}edit(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&n.at(i).patchValue(u.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"PaymentFundSource":return{title:"Configure Fund Sources for Payment Channels",formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:"Map Fees to Income Accounts",formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:"Map Penalties to Specific Income Accounts",formfields:this.getPenaltyIncomeFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:"Payment Type",value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:"Fund Source",value:t?t.fundSourceAccountId:this.assetAccountData[0].id,options:{label:"name",value:"id",data:this.assetAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Fees",value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Penalty",value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}get fixedDepositProductAccounting(){return this.fixedDepositProductAccountingForm.value}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.fixedDepositProductAccountingForm.value.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.fixedDepositProductAccountingForm.value.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-accounting-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate",accountingRuleData:"accountingRuleData",fixedDepositProductFormValid:"fixedDepositProductFormValid"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-lt-md-column","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"mat-h3","flex-23"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"flex-100","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"mat-h4","flex-63"],[1,"flex-33"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-100"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,TOt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,rAt,31,43,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.fixedDepositProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.isCashOrAccrualAccounting()?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.fixedDepositProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var lAt=()=>["../"];function sAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.fixedDepositProduct.description)}}function cAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.fixedDepositProduct.lockinPeriodFrequency+" "+$t(6,4,t.fixedDepositProduct.lockinPeriodFrequencyType,t.fixedDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function pAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.And thereafter, in Multiples of"),":"),a(3),h(t.fixedDepositProduct.inMultiplesOfDepositTerm+" "+$t(6,4,t.fixedDepositProduct.inMultiplesOfDepositTermTypeId,t.fixedDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function mAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Deposit Term"),":"),a(3),h(t.fixedDepositProduct.maxDepositTerm+" "+$t(6,4,t.fixedDepositProduct.maxDepositTermTypeId,t.fixedDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function dAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Penal Interest")," (%):"),a(3),h(t.fixedDepositProduct.preClosurePenalInterest+"% ("+$t(6,4,t.fixedDepositProduct.preClosurePenalInterestOnTypeId,t.fixedDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,"id","value")+")")}}function uAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h($t(6,4,t.fixedDepositProduct.taxGroupId,t.fixedDepositProductsTemplate.taxGroupOptions,"id","name"))}}function fAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.name)}}function hAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.description)}}function gAt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.endDate))}}function _At(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function CAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.fixedDepositProductsTemplate.chartTemplate.periodTypes,"id","value")," ")}}function vAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function xAt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function bAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function yAt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.annualInterestRate," ")}}function SAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function wAt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function PAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function TAt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",29),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function MAt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",30),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function DAt(e,o){if(e&1){let t=Y();l(0,"td",27)(1,"button",28),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w(2);return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(2,TAt,4,3,"span"),E(3,MAt,4,3,"span"),r()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);a(),g("disabled",t.incentives.length===0),a(),I(s.expandChartSlabIndex[i]!==n?2:-1),a(),I(s.expandChartSlabIndex[i]===n?3:-1)}}function EAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function IAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.fixedDepositProductsTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function OAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function AAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.fixedDepositProductsTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function FAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function kAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.fixedDepositProductsTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function BAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function RAt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.genderOptions,"id","name"))}}function NAt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function LAt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function VAt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function qAt(e,o){if(e&1&&(l(0,"td",27),E(1,RAt,3,6,"span")(2,NAt,2,1,"span")(3,LAt,3,6,"span")(4,VAt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function zAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function HAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.fixedDepositProductsTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function GAt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function jAt(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function $At(e,o){e&1&&b(0,"tr",41)}function UAt(e,o){e&1&&b(0,"tr",42)}function WAt(e,o){if(e&1&&(l(0,"td",27)(1,"div",31)(2,"mat-card",32)(3,"h4",33),c(4),p(5,"translate"),r(),l(6,"table",34),X(7,35),F(8,EAt,3,3,"th",16)(9,IAt,3,6,"td",17),Z(),X(10,36),F(11,OAt,3,3,"th",16)(12,AAt,3,6,"td",17),Z(),X(13,37),F(14,FAt,3,3,"th",16)(15,kAt,3,6,"td",17),Z(),X(16,38),F(17,BAt,3,3,"th",16)(18,qAt,5,1,"td",17),Z(),X(19,39),F(20,zAt,3,3,"th",16)(21,HAt,3,6,"td",17),Z(),X(22,40),F(23,GAt,3,3,"th",16)(24,jAt,3,3,"td",17),Z(),F(25,$At,1,0,"tr",23)(26,UAt,1,0,"tr",24),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",s.incentivesDisplayedColumns),a(),g("matRowDefColumns",s.incentivesDisplayedColumns)}}function QAt(e,o){e&1&&b(0,"tr",41)}function YAt(e,o){e&1&&b(0,"tr",42)}function JAt(e,o){e&1&&b(0,"tr",43)}function KAt(e,o){if(e&1&&(l(0,"table",14),X(1,15),F(2,_At,3,3,"th",16)(3,CAt,3,6,"td",17),Z(),X(4,18),F(5,vAt,3,3,"th",16)(6,xAt,2,1,"td",17),Z(),X(7,19),F(8,bAt,3,3,"th",16)(9,yAt,2,1,"td",17),Z(),X(10,20),F(11,SAt,3,3,"th",16)(12,wAt,2,1,"td",17),Z(),X(13,21),F(14,PAt,3,3,"th",16)(15,DAt,4,3,"td",17),Z(),X(16,22),F(17,WAt,27,8,"td",17),Z(),F(18,QAt,1,0,"tr",23)(19,YAt,1,0,"tr",24)(20,JAt,1,0,"tr",25),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w(2);g("dataSource",n.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function XAt(e,o){if(e&1&&(l(0,"div",7),E(1,fAt,6,4,"div",4),E(2,hAt,6,4,"div",4),l(3,"div",4)(4,"span",5),c(5),p(6,"translate"),r(),l(7,"span",6),c(8),p(9,"dateFormat"),r()(),E(10,gAt,7,6,"div",4),l(11,"div",2)(12,"span",5),c(13),p(14,"translate"),r(),l(15,"span",6),c(16),p(17,"yesNo"),r()(),E(18,KAt,21,4,"table",14),b(19,"mat-divider",2),r()),e&2){let t=o.$implicit,n=w(2);a(),I(t.name?1:-1),a(),I(t.description?2:-1),a(3),v("",m(6,8,"labels.inputs.From Date"),":"),a(3),h(m(9,10,t.fromDate)),a(2),I(t.endDate?10:-1),a(3),v("",m(14,12,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(17,14,n.fixedDepositProduct.isPrimaryGroupingByAmount)),a(2),I(t.chartSlabs.length!==0?18:-1)}}function ZAt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),Se(5,XAt,20,16,"div",7,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Interest Rate Charts")),a(3),we(t.fixedDepositProduct.charts)}}function e7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function t7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function i7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function n7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function o7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function a7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function r7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function l7t(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function s7t(e,o){e&1&&b(0,"tr",41)}function c7t(e,o){e&1&&b(0,"tr",42)}function p7t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",34),X(6,44),F(7,e7t,3,3,"th",16)(8,t7t,2,1,"td",17),Z(),X(9,45),F(10,i7t,3,3,"th",16)(11,n7t,2,1,"td",17),Z(),X(12,40),F(13,o7t,3,3,"th",16)(14,a7t,2,1,"td",17),Z(),X(15,46),F(16,r7t,3,3,"th",16)(17,l7t,2,1,"td",17),Z(),F(18,s7t,1,0,"tr",23)(19,c7t,1,0,"tr",24),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Charges")),a(3),g("dataSource",t.fixedDepositProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function m7t(e,o){if(e&1&&b(0,"mifosx-view-savings-accounting-details",8),e&2){let t=w();g("accountingRule",t.accountingRule)("accountingMappings",t.accountingMappings)}}function d7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function u7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.paymentTypeId,n.fixedDepositProductsTemplate.paymentTypeOptions,"id","name")," ")}}function f7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function h7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.fixedDepositProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")," ")}}function g7t(e,o){e&1&&b(0,"tr",41)}function _7t(e,o){e&1&&b(0,"tr",42)}function C7t(e,o){if(e&1&&(l(0,"div",47)(1,"h4",48),c(2),p(3,"translate"),r(),l(4,"table",49),X(5,50),F(6,d7t,3,3,"th",16)(7,u7t,3,6,"td",17),Z(),X(8,51),F(9,f7t,3,3,"th",16)(10,h7t,3,6,"td",17),Z(),F(11,g7t,1,0,"tr",23)(12,_7t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fund Sources for Payment Channels")),a(2),g("dataSource",t.fixedDepositProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function v7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function x7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.fixedDepositProductsTemplate.chargeOptions,"id","name")," ")}}function b7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function y7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function S7t(e,o){e&1&&b(0,"tr",41)}function w7t(e,o){e&1&&b(0,"tr",42)}function P7t(e,o){if(e&1&&(l(0,"div",47)(1,"h4",48),c(2),p(3,"translate"),r(),l(4,"table",49),X(5,52),F(6,v7t,3,3,"th",16)(7,x7t,3,6,"td",17),Z(),X(8,53),F(9,b7t,3,3,"th",16)(10,y7t,3,6,"td",17),Z(),F(11,S7t,1,0,"tr",23)(12,w7t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fees to Specific Income Accounts")),a(2),g("dataSource",t.fixedDepositProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function T7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function M7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.fixedDepositProductsTemplate.penaltyOptions,"id","name")," ")}}function D7t(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function E7t(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function I7t(e,o){e&1&&b(0,"tr",41)}function O7t(e,o){e&1&&b(0,"tr",42)}function A7t(e,o){if(e&1&&(l(0,"div",47)(1,"h4",48),c(2),p(3,"translate"),r(),l(4,"table",49),X(5,52),F(6,T7t,3,3,"th",16)(7,M7t,3,6,"td",17),Z(),X(8,53),F(9,D7t,3,3,"th",16)(10,E7t,3,6,"td",17),Z(),F(11,I7t,1,0,"tr",23)(12,O7t,1,0,"tr",24),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.fixedDepositProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function F7t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),E(5,C7t,13,6,"div",47),E(6,P7t,13,6,"div",47),E(7,A7t,13,6,"div",47),r()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Advanced Accounting Rules")),a(3),I(t.fixedDepositProduct.paymentChannelToFundSourceMappings!=null&&t.fixedDepositProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.fixedDepositProduct.feeToIncomeAccountMappings!=null&&t.fixedDepositProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.fixedDepositProduct.penaltyToIncomeAccountMappings!=null&&t.fixedDepositProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var Bu=(()=>{class e{constructor(){this.accounting=T(To),this.submitEvent=new bi,this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.expandChartSlabIndex=[],this.accountingMappings={}}ngOnInit(){this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.isCashOrAccrualAccounting()){this.accountingRule=this.accounting.getAccountingRuleFrom(this.fixedDepositProduct.accountingRule);let t=this.fixedDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],n=this.fixedDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],i=this.fixedDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],s=this.fixedDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.accountingMappings={savingsReferenceAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.savingsReferenceAccountId,t),savingsControlAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.savingsControlAccountId,s),transfersInSuspenseAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.transfersInSuspenseAccountId,s),interestOnSavingsAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.interestOnSavingsAccountId,i),incomeFromFeeAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.incomeFromFeeAccountId,n),incomeFromPenaltyAccount:this.accounting.glAccountLookUp(this.fixedDepositProduct.incomeFromPenaltyAccountId,n)},this.isAccrualAccounting()&&(this.accountingMappings.feeReceivableAccount=this.accounting.glAccountLookUp(this.fixedDepositProduct.feesReceivableAccountId,t),this.accountingMappings.penaltyReceivableAccount=this.accounting.glAccountLookUp(this.fixedDepositProduct.penaltiesReceivableAccountId,t),this.accountingMappings.interestPayableAccount=this.accounting.glAccountLookUp(this.fixedDepositProduct.interestPayableAccountId,s))}}isNoneAccounting(){return this.accounting.isNoneAccountingRuleId(this.fixedDepositProduct.accountingRule)}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.fixedDepositProduct.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.fixedDepositProduct.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-product-preview-step"]],inputs:{fixedDepositProductsTemplate:"fixedDepositProductsTemplate",chartSlabsDisplayedColumns:"chartSlabsDisplayedColumns",accountingRuleData:"accountingRuleData",fixedDepositProduct:"fixedDepositProduct"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:125,vars:119,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-100"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[3,"accountingRule","accountingMappings"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click","disabled"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","chargeTimeType"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,sAt,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),r()(),l(48,"div",4)(49,"span",5),c(50),p(51,"translate"),r(),l(52,"span",6),c(53),p(54,"find"),r()(),l(55,"div",4)(56,"span",5),c(57),p(58,"translate"),r(),l(59,"span",6),c(60),p(61,"find"),r()(),l(62,"div",4)(63,"span",5),c(64),p(65,"translate"),r(),l(66,"span",6),c(67),p(68,"find"),r()(),l(69,"div",4)(70,"span",5),c(71),p(72,"translate"),r(),l(73,"span",6),c(74),p(75,"find"),r()(),l(76,"h3",3),c(77),p(78,"translate"),r(),b(79,"mat-divider",2),E(80,cAt,7,9,"div",4),l(81,"div",4)(82,"span",5),c(83),p(84,"translate"),r(),l(85,"span",6),c(86),p(87,"find"),r()(),E(88,pAt,7,9,"div",4),E(89,mAt,7,9,"div",4),l(90,"div",4)(91,"span",5),c(92),p(93,"translate"),r(),l(94,"span",6),c(95),p(96,"yesNo"),r()(),E(97,dAt,7,9,"div",4),l(98,"div",4)(99,"span",5),c(100),p(101,"translate"),r(),l(102,"span",6),c(103),p(104,"yesNo"),r()(),E(105,uAt,7,9,"div",4),E(106,ZAt,7,3,"div",7),E(107,p7t,20,6,"div",7),l(108,"h3",3),c(109),p(110,"translate"),r(),b(111,"mat-divider",2),E(112,m7t,1,2,"mifosx-view-savings-accounting-details",8),E(113,F7t,8,6,"div",7),r(),l(114,"div",9)(115,"button",10),b(116,"fa-icon",11),c(117),p(118,"translate"),r(),l(119,"button",12),c(120),p(121,"translate"),r(),l(122,"button",13),R("click",function(){return i.submitEvent.emit()}),c(123),p(124,"translate"),r()()),n&2&&(a(2),h(i.fixedDepositProduct.name),a(3),h(m(6,44,"labels.inputs.Details")),a(5),v("",m(11,46,"labels.inputs.Short Name"),":"),a(3),h(i.fixedDepositProduct.shortName),a(),I(i.fixedDepositProduct.description?14:-1),a(2),h(m(17,48,"labels.inputs.Currency")),a(5),v("",m(22,50,"labels.inputs.Currency"),":"),a(3),h($t(25,52,i.fixedDepositProduct.currencyCode,i.fixedDepositProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,57,"labels.inputs.Decimal Places"),":"),a(3),h(i.fixedDepositProduct.digitsAfterDecimal),a(3),v("",m(35,59,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.fixedDepositProduct.inMultiplesOf),a(2),h(m(40,61,"labels.heading.Terms")),a(5),v("",m(45,63,"labels.inputs.Deposit Amount"),":"),a(3),h(i.fixedDepositProduct.depositAmount+" (Min: "+(i.fixedDepositProduct.minDepositAmount?i.fixedDepositProduct.minDepositAmount:i.fixedDepositProduct.depositAmount)+", Max: "+(i.fixedDepositProduct.maxDepositAmount?i.fixedDepositProduct.maxDepositAmount:i.fixedDepositProduct.depositAmount)+")"),a(3),v("",m(51,65,"labels.inputs.Interest Compounding Period"),":"),a(3),h($t(54,67,i.fixedDepositProduct.interestCompoundingPeriodType,i.fixedDepositProductsTemplate.interestCompoundingPeriodTypeOptions,"id","value")),a(4),v("",m(58,72,"labels.inputs.Interest Posting Period"),":"),a(3),h($t(61,74,i.fixedDepositProduct.interestPostingPeriodType,i.fixedDepositProductsTemplate.interestPostingPeriodTypeOptions,"id","value")),a(4),v("",m(65,79,"labels.inputs.Interest Calculated using"),":"),a(3),h($t(68,81,i.fixedDepositProduct.interestCalculationType,i.fixedDepositProductsTemplate.interestCalculationTypeOptions,"id","value")),a(4),v("",m(72,86,"labels.inputs.Days in Year"),":"),a(3),h($t(75,88,i.fixedDepositProduct.interestCalculationDaysInYearType,i.fixedDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),a(3),h(m(78,93,"labels.heading.Settings")),a(3),I(i.fixedDepositProduct.lockinPeriodFrequency?80:-1),a(3),v("",m(84,95,"labels.inputs.Minimum Deposit Term"),":"),a(3),h(i.fixedDepositProduct.minDepositTerm+" "+$t(87,97,i.fixedDepositProduct.minDepositTermTypeId,i.fixedDepositProductsTemplate.periodFrequencyTypeOptions,"id","value")),a(2),I(i.fixedDepositProduct.inMultiplesOfDepositTerm?88:-1),a(),I(i.fixedDepositProduct.maxDepositTerm?89:-1),a(3),v("",m(93,102,"labels.inputs.Apply Penal Interest (less)"),":"),a(3),h(m(96,104,i.fixedDepositProduct.preClosurePenalApplicable)),a(2),I(i.fixedDepositProduct.preClosurePenalApplicable?97:-1),a(3),v("",m(101,106,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(104,108,i.fixedDepositProduct.withHoldTax)),a(2),I(i.fixedDepositProduct.withHoldTax?105:-1),a(),I(i.fixedDepositProduct.charts.length!==0?106:-1),a(),I(i.fixedDepositProduct.charges.length?107:-1),a(2),h(m(110,110,"labels.heading.Accounting")),a(3),I(i.isNoneAccounting()?-1:112),a(),I(i.fixedDepositProduct.advancedAccountingRules&&(i.fixedDepositProduct.paymentChannelToFundSourceMappings!=null&&i.fixedDepositProduct.paymentChannelToFundSourceMappings.length||i.fixedDepositProduct.feeToIncomeAccountMappings!=null&&i.fixedDepositProduct.feeToIncomeAccountMappings.length||i.fixedDepositProduct.penaltyToIncomeAccountMappings!=null&&i.fixedDepositProduct.penaltyToIncomeAccountMappings.length)?113:-1),a(4),v(" ",m(118,112,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(118,lAt)),a(),v(" ",m(121,114,"labels.buttons.Cancel")," "),a(3),v(" ",m(124,116,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,Ue,xe,Ri,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,rs,qi,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function k7t(e,o){e&1&&b(0,"fa-icon",14)}function B7t(e,o){e&1&&b(0,"fa-icon",14)}function R7t(e,o){e&1&&b(0,"fa-icon",15)}function N7t(e,o){e&1&&b(0,"fa-icon",16)}function L7t(e,o){e&1&&b(0,"fa-icon",17)}function V7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function q7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function z7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function H7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function G7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function j7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function $7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function U7t(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function W7t(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,U7t,2,3,"ng-template",9),l(2,"mifosx-fixed-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("fixedDepositProductsTemplate",t.fixedDepositProductsTemplate)("chartSlabsDisplayedColumns",t.fixedDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("fixedDepositProduct",t.fixedDepositProduct)}}var b3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.fixedDepositProductsTemplate=t.fixedDepositProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get fixedDepositProductDetailsForm(){return this.fixedDepositProductDetailsStep.fixedDepositProductDetailsForm}get fixedDepositProductCurrencyForm(){return this.fixedDepositProductCurrencyStep.fixedDepositProductCurrencyForm}get fixedDepositProductTermsForm(){return this.fixedDepositProductTermsStep.fixedDepositProductTermsForm}get fixedDepositProductSettingsForm(){return this.fixedDepositProductSettingsStep.fixedDepositProductSettingsForm}get fixedDepositProductInterestRateChartForm(){return this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChartForm}get fixedDepositProductAccountingForm(){return this.fixedDepositProductAccountingStep.fixedDepositProductAccountingForm}get fixedDepositProductFormValid(){return this.fixedDepositProductDetailsForm.valid&&this.fixedDepositProductCurrencyForm.valid&&this.fixedDepositProductTermsForm.valid&&this.fixedDepositProductSettingsForm.valid&&this.fixedDepositProductInterestRateChartForm.valid&&this.fixedDepositProductAccountingForm.valid}get fixedDepositProduct(){return at(at(at(at(at(at(at({},this.fixedDepositProductDetailsStep.fixedDepositProductDetails),this.fixedDepositProductCurrencyStep.fixedDepositProductCurrency),this.fixedDepositProductTermsStep.fixedDepositProductTerms),this.fixedDepositProductSettingsStep.fixedDepositProductSettings),this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChart),this.fixedDepositProductChargesStep.fixedDepositProductCharges),this.fixedDepositProductAccountingStep.fixedDepositProductAccounting)}submit(){let t=qt(at({},this.fixedDepositProduct),{charges:this.fixedDepositProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});delete t.advancedAccountingRules,this.productsService.createFixedDepositProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-fixed-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Om,7),Ee(Am,7),Ee(Fm,7),Ee(km,7),Ee(Rm,7),Ee(Nm,7),Ee(Lm,7)),n&2){let s;Te(s=Me())&&(i.fixedDepositProductDetailsStep=s.first),Te(s=Me())&&(i.fixedDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.fixedDepositProductTermsStep=s.first),Te(s=Me())&&(i.fixedDepositProductSettingsStep=s.first),Te(s=Me())&&(i.fixedDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.fixedDepositProductChargesStep=s.first),Te(s=Me())&&(i.fixedDepositProductAccountingStep=s.first)}},decls:30,vars:17,consts:[["fixedDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositProductsTemplate"],[3,"fixedDepositProductsTemplate","currencyCode"],[3,"fixedDepositProductsTemplate","accountingRuleData","fixedDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","fixedDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,k7t,1,0,"ng-template",3)(4,B7t,1,0,"ng-template",4)(5,R7t,1,0,"ng-template",5)(6,N7t,1,0,"ng-template",6)(7,L7t,1,0,"ng-template",7),l(8,"mat-step",8),F(9,V7t,2,3,"ng-template",9),b(10,"mifosx-fixed-deposit-product-details-step"),r(),l(11,"mat-step",8),F(12,q7t,2,3,"ng-template",9),b(13,"mifosx-fixed-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,z7t,2,3,"ng-template",9),b(16,"mifosx-fixed-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,H7t,2,3,"ng-template",9),b(19,"mifosx-fixed-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,G7t,2,3,"ng-template",9),b(22,"mifosx-fixed-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,j7t,2,3,"ng-template",9),b(25,"mifosx-fixed-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,$7t,2,3,"ng-template",9),b(28,"mifosx-fixed-deposit-product-accounting-step",12),r(),E(29,W7t,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.fixedDepositProductDetailsForm),a(3),g("stepControl",i.fixedDepositProductCurrencyForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductTermsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductSettingsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductInterestRateChartForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(3),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("currencyCode",i.fixedDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.fixedDepositProductAccountingForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("fixedDepositProductFormValid",i.fixedDepositProductFormValid),a(),I(i.fixedDepositProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Om,Am,Fm,km,Rm,Nm,Lm,Bu,he],encapsulation:2})}}return e})();var Q7t=()=>[10,25,50,100],Y7t=()=>["create"],J7t=e=>[e];function K7t(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Y7t)),a(2),v("",m(3,2,"labels.buttons.Add")," "))}function X7t(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function Z7t(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function eFt(e,o){e&1&&b(0,"tr",18)}function tFt(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,J7t,t.productId))}}var y3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["productName"],this.route.data.subscribe(t=>{this.productMixData=t.products})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setProductsMix()}setProductsMix(){this.dataSource=new Wt(this.productMixData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-products-mix"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"layout-row","align-end","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","productName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,K7t,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,X7t,3,3,"th",9)(13,Z7t,2,1,"td",10),Z(),F(14,eFt,1,0,"tr",11)(15,tFt,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_PRODUCTMIX"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Q7t)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var iFt=()=>[10,25,50,100],nFt=()=>["create"],oFt=e=>[e];function aFt(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,nFt)),a(2),v(" ",m(3,2,"labels.buttons.Create Floating Rate")," "))}function rFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function lFt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function sFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function cFt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function pFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is Base Lending Rate"),"? "))}function mFt(e,o){e&1&&(b(0,"fa-icon",21),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function dFt(e,o){e&1&&(b(0,"fa-icon",22),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function uFt(e,o){if(e&1&&(l(0,"td",20),E(1,mFt,2,4,"fa-icon",21),E(2,dFt,2,4,"fa-icon",22),r()),e&2){let t=o.$implicit;a(),I(t.isBaseLendingRate?1:-1),a(),I(t.isBaseLendingRate?-1:2)}}function fFt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.catalogs.Active")))}function hFt(e,o){e&1&&(b(0,"fa-icon",21),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function gFt(e,o){e&1&&(b(0,"fa-icon",22),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function _Ft(e,o){if(e&1&&(l(0,"td",20),E(1,hFt,2,4,"fa-icon",21),E(2,gFt,2,4,"fa-icon",22),r()),e&2){let t=o.$implicit;a(),I(t.isActive?1:-1),a(),I(t.isActive?-1:2)}}function CFt(e,o){e&1&&b(0,"tr",23)}function vFt(e,o){if(e&1&&b(0,"tr",24),e&2){let t=o.$implicit;g("routerLink",Nt(1,oFt,t.id))}}var S3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","createdBy","isBaseLendingRate","isActive"],this.route.data.subscribe(t=>{this.floatingRatesData=t.floatingrates})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setFloatingRates()}setFloatingRates(){this.dataSource=new Wt(this.floatingRatesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-floating-rates"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["matColumnDef","isBaseLendingRate"],["matColumnDef","isActive"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-base-lending-rate-or-active",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-base-lending-rate-or-active",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,aFt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,rFt,3,3,"th",9)(13,lFt,2,1,"td",10),Z(),X(14,11),F(15,sFt,3,3,"th",9)(16,cFt,2,1,"td",10),Z(),X(17,12),F(18,pFt,3,3,"th",9)(19,uFt,3,2,"td",10),Z(),X(20,13),F(21,fFt,3,3,"th",9)(22,_Ft,3,2,"td",10),Z(),F(23,CFt,1,0,"tr",14)(24,vFt,1,3,"tr",15),r(),b(25,"mat-paginator",16),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_FLOATINGRATE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,iFt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.is-base-lending-rate-or-active[_ngcontent-%COMP%]{color:#32cd32}.not-is-base-lending-rate-or-active[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();function xFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Interest Rate")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var Vm=(()=>{class e{constructor(){this.dialogRef=T(eo),this.formBuilder=T(nt),this.settingsService=T(Ot),this.data=T(Po),this.minDate=new Date}ngOnInit(){this.minDate=this.settingsService.businessDate;let t=!1;this.data&&new Date(this.data.fromDate)[10,25,50,100],SFt=()=>["../"];function wFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Floating Rate Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function PFt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest effective from date"))),a(2),v(" ",m(3,5,"labels.inputs.From Date")," "))}function TFt(e,o){if(e&1&&(l(0,"td",30),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function MFt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Annualised Interest rate"))),a(2),v(" ",m(3,5,"labels.inputs.Interest Rate")," "))}function DFt(e,o){if(e&1&&(l(0,"td",30),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.interestRate))}}function EFt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest rate mentioned is added to base lending rate"))),a(2),v(" ",m(3,5,"labels.inputs.Is Differential"),"? "))}function IFt(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function OFt(e,o){e&1&&(b(0,"fa-icon",32),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function AFt(e,o){if(e&1&&(l(0,"td",30),E(1,IFt,2,4,"fa-icon",31),E(2,OFt,2,4,"fa-icon",32),r()),e&2){let t=o.$implicit;a(),I(t.isDifferentialToBaseLendingRate?1:-1),a(),I(t.isDifferentialToBaseLendingRate?-1:2)}}function FFt(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function kFt(e,o){if(e&1){let t=Y();l(0,"td",34)(1,"button",35),p(2,"translate"),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editFloatingRatePeriod(i))}),b(3,"fa-icon",36),r(),l(4,"button",37),p(5,"translate"),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteFloatingRatePeriod(i))}),b(6,"fa-icon",38),r()()}e&2&&(a(),g("matTooltip",Le(m(2,4,"tooltips.Edit Period"))),a(3),g("matTooltip",Le(m(5,6,"tooltips.Remove Period"))))}function BFt(e,o){e&1&&b(0,"tr",39)}function RFt(e,o){e&1&&b(0,"tr",40)}function NFt(e,o){if(e&1&&(l(0,"button",41),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.floatingRateForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var w3=(()=>{class e{constructor(){this.router=T(qe),this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.floatingRatePeriodsData=[],this.minDate=new Date,this.displayedColumns=["fromDate","interestRate","isDifferential","actions"],this.dateFormat=this.settingsService.dateFormat}ngOnInit(){this.setFloatingRates(),this.createFloatingRateForm()}createFloatingRateForm(){this.floatingRateForm=this.formBuilder.group({name:["",ce.required],isBaseLendingRate:[!1],isActive:[!1]})}setFloatingRates(){this.dataSource=new Wt(this.floatingRatePeriodsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}createFloatingRatePeriodsForm(){return this.formBuilder.group({fromDate:["",ce.required],interestRate:["",ce.required],isDifferentialToBaseLendingRate:[!1]})}addFloatingRatePeriod(){this.dialog.open(Vm,{data:{fromDate:this.settingsService.businessDate}}).afterClosed().subscribe(n=>{n&&(this.floatingRatePeriodsData.push({fromDate:this.dateUtils.formatDate(n.fromDate,this.dateFormat),interestRate:n.interestRate,isDifferentialToBaseLendingRate:n.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat}),this.dataSource.connect().next(this.floatingRatePeriodsData))})}editFloatingRatePeriod(t){this.dialog.open(Vm,{data:{fromDate:t.fromDate,interestRate:t.interestRate,isDifferentialToBaseLendingRate:t.isDifferentialToBaseLendingRate,isNew:!0}}).afterClosed().subscribe(i=>{i&&(this.floatingRatePeriodsData[this.floatingRatePeriodsData.indexOf(t)]={fromDate:this.dateUtils.formatDate(i.fromDate,this.dateFormat),interestRate:i.interestRate,isDifferentialToBaseLendingRate:i.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat},this.dataSource.connect().next(this.floatingRatePeriodsData))})}deleteFloatingRatePeriod(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.floating rate period with from date as")+" "+t.fromDate}}).afterClosed().subscribe(i=>{i.delete&&(this.floatingRatePeriodsData.splice(this.floatingRatePeriodsData.indexOf(t),1),this.dataSource.connect().next(this.floatingRatePeriodsData))})}submit(){this.floatingRateForm.value.ratePeriods=this.floatingRatePeriodsData,this.productsService.createFloatingRate(this.floatingRateForm.value).subscribe(t=>{this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-floating-rate"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:54,vars:42,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-4percent"],[1,"flex-30"],["matInput","","required","","formControlName","name",3,"matTooltip"],[1,"checkbox-wrapper","flex-30"],["formControlName","isBaseLendingRate","labelPosition","before",1,"checkbox",3,"matTooltip"],["formControlName","isActive","labelPosition","before",1,"checkbox",3,"matTooltip"],[3,"inset"],[1,"layout-row-wrap","gap-70percent","m-b-10","layout-lt-md-column"],[1,"mat-title","flex-25"],[1,"fas","fa-question",3,"matTooltip"],["mat-mini-fab","","type","button","color","primary",3,"click"],["icon","plus"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","","mat-sort-header","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","interestRate"],["matColumnDef","isDifferential"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","gap-15percent",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","type","submit","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell","","mat-sort-header","",3,"matTooltip"],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-differential",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-differential",3,"matTooltip"],["mat-header-cell",""],["mat-cell","",1,"gap-15percent"],["type","button","color","primary","mat-icon-button","","matTooltipPosition","left",1,"flex-8",3,"click","matTooltip"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","","matTooltipPosition","right",1,"flex-8",3,"click","matTooltip"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","type","submit","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),p(10,"translate"),E(11,wFt,7,9,"mat-error"),r(),l(12,"div",5)(13,"mat-checkbox",6),p(14,"translate"),c(15),p(16,"translate"),r()(),l(17,"div",5)(18,"mat-checkbox",7),p(19,"translate"),c(20),p(21,"translate"),r()()(),b(22,"br")(23,"mat-divider",8)(24,"br"),l(25,"div",9)(26,"p",10),c(27),p(28,"translate"),b(29,"i",11),p(30,"translate"),r(),l(31,"button",12),R("click",function(){return i.addFloatingRatePeriod()}),b(32,"fa-icon",13),r()(),l(33,"table",14),X(34,15),F(35,PFt,4,7,"th",16)(36,TFt,3,3,"td",17),Z(),X(37,18),F(38,MFt,4,7,"th",16)(39,DFt,3,3,"td",17),Z(),X(40,19),F(41,EFt,4,7,"th",16)(42,AFt,3,2,"td",17),Z(),X(43,20),F(44,FFt,3,3,"th",21)(45,kFt,7,8,"td",22),Z(),F(46,BFt,1,0,"tr",23)(47,RFt,1,0,"tr",24),r(),b(48,"mat-paginator",25),r(),l(49,"mat-card-actions",26)(50,"button",27),c(51),p(52,"translate"),r(),F(53,NFt,3,4,"button",28),r()()()()),n&2&&(a(2),g("formGroup",i.floatingRateForm),a(5),h(m(8,22,"labels.inputs.Floating Rate Name")),a(2),g("matTooltip",Le(m(10,24,"tooltips.Unique name for the floating rate scheme"))),a(2),I(i.floatingRateForm.controls.name.hasError("required")?11:-1),a(2),g("matTooltip",Le(m(14,26,"tooltips.Base lending rate for the organisation"))),a(2),v("",m(16,28,"labels.inputs.Is Base Lending Rate"),"?"),a(3),g("matTooltip",Le(m(19,30,"tooltips.Floating rate scheme to be activated"))),a(2),h(m(21,32,"labels.inputs.Active")),a(3),g("inset",!0),a(4),v(" ",m(28,34,"labels.inputs.Floating Rate Periods")," "),a(2),g("matTooltip",Le(m(30,36,"tooltips.Floating interest rate and start date"))),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(40,yFt)),a(2),g("routerLink",oe(41,SFt)),a(),v(" ",m(52,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FLOATINGRATE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,si,Ri,Og,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,Pi,he,In],styles:["@media (width >= 992px){.checkbox-wrapper[_ngcontent-%COMP%]{position:relative}.checkbox-wrapper[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}.is-differential[_ngcontent-%COMP%]{color:#32cd32}.not-is-differential[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var LFt=()=>[10,25,50,100],VFt=()=>["edit"];function qFt(e,o){e&1&&(l(0,"button",21),b(1,"fa-icon",22),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,VFt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function zFt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function HFt(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function GFt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest Rate")))}function jFt(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"number"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.interestRate))}}function $Ft(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Is Differential"),"? "))}function UFt(e,o){e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function WFt(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function QFt(e,o){if(e&1&&(l(0,"td",24),E(1,UFt,2,4,"fa-icon",25),E(2,WFt,2,4,"fa-icon",26),r()),e&2){let t=o.$implicit;a(),I(t.isDifferentialToBaseLendingRate?1:-1),a(),I(t.isDifferentialToBaseLendingRate?-1:2)}}function YFt(e,o){e&1&&b(0,"tr",27)}function JFt(e,o){e&1&&b(0,"tr",28)}var P3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["fromDate","interestRate","isDifferential"],this.route.data.subscribe(t=>{this.floatingRateData=t.floatingRate})}ngOnInit(){this.setFloatingRates()}setFloatingRates(){this.dataSource=new Wt(this.floatingRateData.ratePeriods),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-floating-rate"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:43,vars:26,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","layout-lt-md-column"],[1,"mat-body-strong","flex-18"],[1,"flex-18"],[1,"mat-body-strong","flex-20"],[1,"flex-10"],[1,"mat-body-strong","flex-14"],[3,"inset"],[1,"mat-title"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","interestRate"],["matColumnDef","isDifferential"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-differential",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-differential",3,"matTooltip"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,qFt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",6),c(12),p(13,"translate"),r(),l(14,"div",7),c(15),p(16,"yesNo"),r(),l(17,"div",8),c(18),p(19,"translate"),r(),l(20,"div",7),c(21),p(22,"yesNo"),r()(),b(23,"br")(24,"mat-divider",9)(25,"br"),l(26,"p",10),c(27),p(28,"translate"),r(),l(29,"div",11)(30,"table",12),X(31,13),F(32,zFt,3,3,"th",14)(33,HFt,3,3,"td",15),Z(),X(34,16),F(35,GFt,3,3,"th",14)(36,jFt,3,3,"td",15),Z(),X(37,17),F(38,$Ft,3,3,"th",14)(39,QFt,3,2,"td",15),Z(),F(40,YFt,1,0,"tr",18)(41,JFt,1,0,"tr",19),r(),b(42,"mat-paginator",20),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_FLOATINGRATE"),a(6),v("",m(8,13,"labels.inputs.Floating Rate Name"),":"),a(3),v(" ",i.floatingRateData.name," "),a(2),v("",m(13,15,"labels.inputs.Is Base Lending Rate"),":"),a(3),v(" ",m(16,17,i.floatingRateData.isBaseLendingRate)," "),a(3),v("",m(19,19,"labels.inputs.Is Active"),":"),a(3),v(" ",m(22,21,i.floatingRateData.isActive)," "),a(3),g("inset",!0),a(3),h(m(28,23,"labels.inputs.Floating Rate Periods")),a(3),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(25,LFt)))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Ri,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,xp,Pi,he,po],styles:["table[_ngcontent-%COMP%]{width:100%}.is-differential[_ngcontent-%COMP%]{color:#32cd32}.not-is-differential[_ngcontent-%COMP%]{color:#f44366}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var KFt=()=>[10,25,50,100],XFt=()=>["../"];function ZFt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Floating Rate Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ekt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest effective from date"))),a(2),v(" ",m(3,5,"labels.inputs.From Date")," "))}function tkt(e,o){if(e&1&&(l(0,"td",30),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function ikt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Annualised Interest rate"))),a(2),v(" ",m(3,5,"labels.inputs.Interest Rate")," "))}function nkt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.interestRate)}}function okt(e,o){e&1&&(l(0,"th",29),p(1,"translate"),c(2),p(3,"translate"),r()),e&2&&(g("matTooltip",Le(m(1,3,"tooltips.Interest rate mentioned is added to base lending rate"))),a(2),v(" ",m(3,5,"labels.inputs.Is Differential"),"? "))}function akt(e,o){e&1&&(b(0,"fa-icon",31),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function rkt(e,o){e&1&&(b(0,"fa-icon",32),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function lkt(e,o){if(e&1&&(l(0,"td",30),E(1,akt,2,4,"fa-icon",31),E(2,rkt,2,4,"fa-icon",32),r()),e&2){let t=o.$implicit;a(),I(t.isDifferentialToBaseLendingRate?1:-1),a(),I(t.isDifferentialToBaseLendingRate?-1:2)}}function skt(e,o){e&1&&(l(0,"th",33),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ckt(e,o){if(e&1){let t=Y();l(0,"td",30)(1,"button",34),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editFloatingRatePeriod(i))}),b(2,"fa-icon",35),r(),l(3,"button",36),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteFloatingRatePeriod(i))}),b(4,"fa-icon",37),r()()}}function pkt(e,o){e&1&&b(0,"tr",38)}function mkt(e,o){e&1&&b(0,"tr",39)}var T3=(()=>{class e{constructor(){this.router=T(qe),this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date,this.isFloatingRateFormPristine=!0,this.displayedColumns=["fromDate","interestRate","isDifferential","actions"],this.dateFormat=this.settingsService.dateFormat,this.floatingRatePeriodsData=[],this.route.data.subscribe(t=>{this.floatingRateData=t.floatingRate,this.floatingRatePeriodsData=t.floatingRate.ratePeriods?t.floatingRate.ratePeriods:[]})}ngOnInit(){this.createFloatingRateForm(),this.setFloatingRates()}createFloatingRateForm(){this.floatingRateForm=this.formBuilder.group({name:[this.floatingRateData.name,ce.required],isBaseLendingRate:[this.floatingRateData.isBaseLendingRate],isActive:[this.floatingRateData.isActive]})}setFloatingRates(){this.dataSource=new Wt(this.floatingRatePeriodsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}addFloatingRatePeriod(){this.dialog.open(Vm,{data:{}}).afterClosed().subscribe(n=>{n&&(this.floatingRatePeriodsData.push({fromDate:this.dateUtils.formatDate(n.fromDate,this.dateFormat),interestRate:n.interestRate,isDifferentialToBaseLendingRate:n.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat}),this.dataSource.connect().next(this.floatingRatePeriodsData),this.isFloatingRateFormPristine=!1)})}editFloatingRatePeriod(t){this.dialog.open(Vm,{data:{fromDate:t.fromDate,interestRate:t.interestRate,isDifferentialToBaseLendingRate:t.isDifferentialToBaseLendingRate}}).afterClosed().subscribe(i=>{i&&(this.floatingRatePeriodsData[this.floatingRatePeriodsData.indexOf(t)]={fromDate:this.dateUtils.formatDate(i.fromDate,this.dateFormat),interestRate:i.interestRate,isDifferentialToBaseLendingRate:i.isDifferentialToBaseLendingRate,locale:this.settingsService.language.code,dateFormat:this.dateFormat},this.dataSource.connect().next(this.floatingRatePeriodsData),this.isFloatingRateFormPristine=!1)})}deleteFloatingRatePeriod(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.floating rate period with from date as")+" "+t.fromDate}}).afterClosed().subscribe(i=>{i.delete&&(this.floatingRatePeriodsData.splice(this.floatingRatePeriodsData.indexOf(t),1),this.dataSource.connect().next(this.floatingRatePeriodsData),this.isFloatingRateFormPristine=!1)})}submit(){this.floatingRatePeriodsData.map(t=>{t.modifiedOn=void 0,t.createdOn=void 0,t.id=void 0,t.modifiedBy=void 0,t.createdBy=void 0,t.isActive=void 0,t.locale=this.settingsService.language.code,t.dateFormat=this.dateFormat,t.fromDate=this.dateUtils.formatDate(t.fromDate,this.dateFormat)}),this.floatingRateForm.value.ratePeriods=this.floatingRatePeriodsData.length>0?this.floatingRatePeriodsData:void 0,this.productsService.updateFloatingRate(this.route.snapshot.paramMap.get("id"),this.floatingRateForm.value).subscribe(t=>{this.router.navigate(["../../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-floating-rate"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:56,vars:45,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","responsive-column","gap-15percent"],[1,"flex-25"],["matInput","","required","","formControlName","name",3,"matTooltip"],[1,"checkbox-wrapper","flex-25"],["formControlName","isBaseLendingRate","labelPosition","before",1,"checkbox",3,"matTooltip"],[1,"checkbox-wrapper","flex-15"],["formControlName","isActive","labelPosition","before",1,"checkbox",3,"matTooltip"],[3,"inset"],[1,"layout-row-wrap","gap-70percent","m-b-10","layout-lt-md-column"],[1,"mat-title","flex-25"],[1,"fas","fa-question",3,"matTooltip"],["mat-mini-fab","","type","button","color","primary",3,"click"],["icon","plus"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","","mat-sort-header","",3,"matTooltip",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","interestRate"],["matColumnDef","isDifferential"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","type","submit","color","primary",3,"disabled"],["mat-header-cell","","mat-sort-header","",3,"matTooltip"],["mat-cell",""],["icon","check-circle","size","lg","matTooltipPosition","right",1,"is-differential",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",1,"not-is-differential",3,"matTooltip"],["mat-header-cell",""],["type","button","color","primary","mat-icon-button","",3,"click"],["icon","edit","size","lg"],["type","button","color","warn","mat-icon-button","",3,"click"],["icon","trash","size","lg"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),p(10,"translate"),E(11,ZFt,7,9,"mat-error"),r(),l(12,"div",5)(13,"mat-checkbox",6),p(14,"translate"),c(15),p(16,"translate"),r()(),l(17,"div",7)(18,"mat-checkbox",8),p(19,"translate"),c(20),p(21,"translate"),r()()(),b(22,"br")(23,"mat-divider",9)(24,"br"),l(25,"div",10)(26,"p",11),c(27),p(28,"translate"),b(29,"i",12),p(30,"translate"),r(),l(31,"button",13),R("click",function(){return i.addFloatingRatePeriod()}),b(32,"fa-icon",14),r()(),l(33,"table",15),X(34,16),F(35,ekt,4,7,"th",17)(36,tkt,3,3,"td",18),Z(),X(37,19),F(38,ikt,4,7,"th",17)(39,nkt,2,1,"td",18),Z(),X(40,20),F(41,okt,4,7,"th",17)(42,lkt,3,2,"td",18),Z(),X(43,21),F(44,skt,3,3,"th",22)(45,ckt,5,0,"td",18),Z(),F(46,pkt,1,0,"tr",23)(47,mkt,1,0,"tr",24),r(),b(48,"mat-paginator",25),r(),l(49,"mat-card-actions",26)(50,"button",27),c(51),p(52,"translate"),r(),l(53,"button",28),c(54),p(55,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.floatingRateForm),a(5),h(m(8,23,"labels.inputs.Floating Rate Name")),a(2),g("matTooltip",Le(m(10,25,"tooltips.Unique name for the floating rate scheme"))),a(2),I(i.floatingRateForm.controls.name.hasError("required")?11:-1),a(2),g("matTooltip",Le(m(14,27,"tooltips.Base lending rate for the organisation"))),a(2),v(" ",m(16,29,"labels.inputs.Is Base Lending Rate"),"? "),a(3),g("matTooltip",Le(m(19,31,"tooltips.Floating rate scheme to be activated"))),a(2),v(" ",m(21,33,"labels.inputs.Active")," "),a(3),g("inset",!0),a(4),v(" ",m(28,35,"labels.inputs.Floating Rate Periods")," "),a(2),g("matTooltip",Le(m(30,37,"tooltips.Floating interest rate and start date for this floating rate scheme"))),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(43,KFt)),a(2),g("routerLink",oe(44,XFt)),a(),v(" ",m(52,39,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.floatingRateForm.valid||i.floatingRateForm.pristine&&i.isFloatingRateFormPristine),a(),v(" ",m(55,41,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,si,Ri,Og,ke,_t,It,xt,vt,bt,ri,Ct,yt,wi,St,Pt,wt,Tt,kt,Pi,he],styles:["@media (width >= 992px){.checkbox-wrapper[_ngcontent-%COMP%]{position:relative}.checkbox-wrapper[_ngcontent-%COMP%] .checkbox[_ngcontent-%COMP%]{padding:0 0 17.5px;position:absolute;bottom:0}}.is-differential[_ngcontent-%COMP%]{color:#32cd32}.not-is-differential[_ngcontent-%COMP%]{color:#f44366}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var dkt=["allowed"],ukt=["restricted"],ZK=()=>[10,25,50,100],fkt=()=>["edit"];function hkt(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(g("ngClass","customWidthClass"),a(),v(" ",m(2,2,"labels.inputs.Allowed Products")," "))}function gkt(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;g("ngClass","customWidthClass"),a(),h(t.name)}}function _kt(e,o){e&1&&b(0,"tr",20)}function Ckt(e,o){e&1&&b(0,"tr",21)}function vkt(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,fkt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function xkt(e,o){if(e&1){let t=Y();l(0,"button",24),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",25),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function bkt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Restricted products")," "))}function ykt(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Skt(e,o){e&1&&b(0,"tr",20)}function wkt(e,o){e&1&&b(0,"tr",21)}var M3=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.productsService=T(ci),this.router=T(qe),this.translateService=T(yi),this.allowedProductsDisplayedColumns=["name"],this.restrictedProductsDisplayedColumns=["name"],this.route.data.subscribe(t=>{this.productMixData=t.productMix})}ngOnInit(){this.setAllowedProducts(),this.setRestrictedProducts()}setAllowedProducts(){this.allowedProductsDatasource=new Wt(this.productMixData.allowedProducts),this.allowedProductsDatasource.paginator=this.allowedPaginator,this.allowedProductsDatasource.sort=this.allowedSort}setRestrictedProducts(){this.restrictedProductsDatasource=new Wt(this.productMixData.restrictedProducts),this.restrictedProductsDatasource.paginator=this.restrictedPaginator,this.restrictedProductsDatasource.sort=this.restrictedSort}delete(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.dialogContext.the productmix component with id")+" "+this.productMixData.productId}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteProductMix(this.productMixData.productId).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-product-mix"]],viewQuery:function(n,i){if(n&1&&(Ee(dkt,7),Ee(ukt,7),Ee(It,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.allowedPaginator=s.first),Te(s=Me())&&(i.restrictedPaginator=s.first),Te(s=Me())&&(i.allowedSort=s.first),Te(s=Me())&&(i.restrictedSort=s.first)}},decls:23,vars:12,consts:[["allowed",""],["restricted",""],[1,"product-mix-row"],[1,"mat-elevation-z8","inline-table"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",3,"ngClass",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"restricted-products-col"],[1,"action-buttons"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"mat-elevation-z8","inline-table","restricted-products-box"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell","","mat-sort-header","",3,"ngClass"],["mat-cell","",3,"ngClass"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""]],template:function(n,i){n&1&&(l(0,"div",2)(1,"div",3)(2,"table",4),X(3,5),F(4,hkt,3,4,"th",6)(5,gkt,2,2,"td",7),Z(),F(6,_kt,1,0,"tr",8)(7,Ckt,1,0,"tr",9),r(),b(8,"mat-paginator",10,0),r(),l(10,"div",11)(11,"div",12),F(12,vkt,4,5,"button",13)(13,xkt,4,3,"button",14),r(),l(14,"div",15)(15,"table",4),X(16,5),F(17,bkt,3,3,"th",16)(18,ykt,2,1,"td",17),Z(),F(19,Skt,1,0,"tr",8)(20,wkt,1,0,"tr",9),r(),b(21,"mat-paginator",10,1),r()()()),n&2&&(a(2),g("dataSource",i.allowedProductsDatasource),a(4),g("matHeaderRowDef",i.allowedProductsDisplayedColumns),a(),g("matRowDefColumns",i.allowedProductsDisplayedColumns),a(),g("pageSizeOptions",oe(10,ZK)),a(4),g("mifosxHasPermission","UPDATE_PRODUCTMIX"),a(),g("mifosxHasPermission","DELETE_PRODUCTMIX"),a(2),g("dataSource",i.restrictedProductsDatasource),a(4),g("matHeaderRowDef",i.restrictedProductsDisplayedColumns),a(),g("matRowDefColumns",i.restrictedProductsDisplayedColumns),a(),g("pageSizeOptions",oe(11,ZK)))},dependencies:[ue,co,fe,Oe,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".allowed-products-align[_ngcontent-%COMP%]{margin-top:19px}.product-mix-row[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:32px;justify-content:center;width:100%}.restricted-products-col[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:flex-end;min-width:340px;justify-content:flex-start}.action-buttons-wrapper[_ngcontent-%COMP%]{width:45%;margin-left:auto;margin-bottom:8px}.restricted-products-box[_ngcontent-%COMP%]{position:relative}.action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-bottom:16px}.container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;justify-content:space-evenly}.container[_ngcontent-%COMP%] .inline-table[_ngcontent-%COMP%]{display:inline-block;width:45%}"]})}}return e})();var Pkt=()=>[10,25,50,100],Tkt=()=>["create"],Mkt=e=>[e];function Dkt(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Tkt)),a(2),v(" ",m(3,2,"labels.buttons.Create Tax Component")," "))}function Ekt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Ikt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Okt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Percentage")," %"))}function Akt(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.percentage))}}function Fkt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function kkt(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function Bkt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account")))}function Rkt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",(t.creditAccount==null?null:t.creditAccount.glCode)||"",") ",(t.creditAccount==null?null:t.creditAccount.name)||""," ")}}function Nkt(e,o){e&1&&b(0,"tr",21)}function Lkt(e,o){if(e&1&&b(0,"tr",22),e&2){let t=o.$implicit;g("routerLink",Nt(1,Mkt,t.id))}}var dh=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","percentage","startDate","glAccount"],this.route.data.subscribe(t=>{this.taxComponentData=t.taxComponents})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTaxComponents()}setTaxComponents(){this.dataSource=new Wt(this.taxComponentData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-tax-components"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","percentage"],["matColumnDef","startDate"],["matColumnDef","glAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Dkt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Ekt,3,3,"th",9)(13,Ikt,2,1,"td",10),Z(),X(14,11),F(15,Okt,3,3,"th",9)(16,Akt,3,3,"td",10),Z(),X(17,12),F(18,Fkt,3,3,"th",9)(19,kkt,3,3,"td",10),Z(),X(20,13),F(21,Bkt,3,3,"th",9)(22,Rkt,2,2,"td",10),Z(),F(23,Nkt,1,0,"tr",14)(24,Lkt,1,3,"tr",15),r(),b(25,"mat-paginator",16),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TAXCOMPONENT"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Pkt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he,In],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Vkt=()=>[10,25,50,100],qkt=()=>["create"],zkt=e=>[e];function Hkt(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,qkt)),a(2),v(" ",m(3,2,"labels.buttons.Create Tax Groups")," "))}function Gkt(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function jkt(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function $kt(e,o){e&1&&b(0,"tr",18)}function Ukt(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,zkt,t.id))}}var uh=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name"],this.route.data.subscribe(t=>{this.taxGroupsData=t.taxGroups})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTaxGroups()}setTaxGroups(){this.dataSource=new Wt(this.taxGroupsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-tax-groups"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Hkt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Gkt,3,3,"th",9)(13,jkt,2,1,"td",10),Z(),F(14,$kt,1,0,"tr",11)(15,Ukt,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TAXGROUP"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Vkt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Wkt=()=>["../"],Qkt=()=>["edit"];function Ykt(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Qkt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Jkt(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Debit Account Type")," "))}function Kkt(e,o){if(e&1&&(l(0,"div",5),c(1),r()),e&2){let t=w();a(),v(" ",t.taxComponentData.debitAccountType.value," ")}}function Xkt(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Debit Account")," "))}function Zkt(e,o){if(e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2){let t=w();a(),le(" (","labels.inputs.accounting."+t.taxComponentData.debitAccount.glCode,") ",m(2,2,t.taxComponentData.debitAccount.name)," ")}}function e8t(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Credit Account Type")," "))}function t8t(e,o){if(e&1&&(l(0,"div",5),c(1),p(2,"translateKey"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,t.taxComponentData.creditAccountType.value,"catalogs")," ")}}function i8t(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Credit Account")," "))}function n8t(e,o){if(e&1&&(l(0,"div",5),c(1),r()),e&2){let t=w();a(),le(" (",t.taxComponentData.creditAccount.glCode,") ",t.taxComponentData.creditAccount.name," ")}}var D3=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.taxComponentData=t.taxComponent})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-tax-component"]],decls:35,vars:30,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","layout-lt-md-column"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Ykt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",4),c(12),p(13,"translate"),r(),l(14,"div",5),c(15),p(16,"formatNumber"),r(),E(17,Jkt,3,3,"div",4),E(18,Kkt,2,1,"div",5),E(19,Xkt,3,3,"div",4),E(20,Zkt,3,4,"div",5),E(21,e8t,3,3,"div",4),E(22,t8t,3,4,"div",5),E(23,i8t,3,3,"div",4),E(24,n8t,2,2,"div",5),l(25,"div",4),c(26),p(27,"translate"),r(),l(28,"div",5),c(29),p(30,"dateFormat"),r()()(),l(31,"div",6)(32,"button",7),c(33),p(34,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TAXCOMPONENT"),a(6),v(" ",m(8,17,"labels.inputs.Name")," "),a(3),v(" ",i.taxComponentData.name," "),a(2),v(" ",m(13,19,"labels.inputs.Percentage")," "),a(3),v("",m(16,21,i.taxComponentData.percentage)," %"),a(2),I(i.taxComponentData.debitAccountType?17:-1),a(),I(i.taxComponentData.debitAccountType?18:-1),a(),I(i.taxComponentData.debitAccount?19:-1),a(),I(i.taxComponentData.debitAccount?20:-1),a(),I(i.taxComponentData.creditAccountType?21:-1),a(),I(i.taxComponentData.creditAccountType?22:-1),a(),I(i.taxComponentData.creditAccount?23:-1),a(),I(i.taxComponentData.creditAccount?24:-1),a(2),v(" ",m(27,23,"labels.inputs.Start Date")," "),a(3),v(" ",m(30,25,i.taxComponentData.startDate)," "),a(3),g("routerLink",oe(29,Wkt)),a(),v(" ",m(34,27,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he,ki,In],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var o8t=()=>["../"];function a8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function r8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function l8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Percentage")," "),a(3),h(m(5,5,"labels.commons.should")),a(2),v(" ",m(7,7,"labels.commons.be larger than 0 and at most 100")," "))}function s8t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"inputs.accounting")," ")}}function c8t(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",8),e&2){let t=w();g("inputFormControl",t.taxComponentForm.controls.debitAccountId)("glAccountList",t.debitAccountData)("required",!1)("inputLabel","Debit Account")}}function p8t(e,o){if(e&1&&(l(0,"mat-option",7),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"inputs.accounting")," ")}}function m8t(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",8),e&2){let t=w();g("inputFormControl",t.taxComponentForm.controls.creditAccountId)("glAccountList",t.creditAccountData)("required",!1)("inputLabel","Credit Account")}}function d8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function u8t(e,o){if(e&1&&(l(0,"button",16),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxComponentForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var E3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.minDate=new Date,this.maxDate=new Date,this.creditAccountData=[],this.debitAccountData=[],this.route.data.subscribe(t=>{this.taxComponentTemplateData=t.taxComponentTemplate})}ngOnInit(){this.minDate=this.settingsService.minAllowedDate,this.maxDate=this.settingsService.maxAllowedDate,this.createTaxComponentForm(),this.setConditionalControls()}createTaxComponentForm(){this.creditAccountTypeData=this.debitAccountTypeData=this.taxComponentTemplateData.glAccountTypeOptions,this.taxComponentForm=this.formBuilder.group({name:["",ce.required],percentage:["",[ce.required,ce.pattern("^(0*[1-9][0-9]*(\\.[0-9]+)?|0+\\.[0-9]*[1-9][0-9]*)$"),ce.max(100)]],creditAccountType:[""],debitAccountType:[""],startDate:["",ce.required]})}setConditionalControls(){this.taxComponentForm.get("debitAccountType").valueChanges.subscribe(t=>{this.debitAccountData=this.getAccountsData(t),this.taxComponentForm.addControl("debitAccountId",new it("",ce.required))}),this.taxComponentForm.get("creditAccountType").valueChanges.subscribe(t=>{this.creditAccountData=this.getAccountsData(t),this.taxComponentForm.addControl("creditAccountId",new it("",ce.required))})}getAccountsData(t){switch(t){case 1:return this.taxComponentTemplateData.glAccountOptions.assetAccountOptions||[];case 2:return this.taxComponentTemplateData.glAccountOptions.liabilityAccountOptions||[];case 3:return this.taxComponentTemplateData.glAccountOptions.equityAccountOptions||[];case 4:return this.taxComponentTemplateData.glAccountOptions.incomeAccountOptions||[];case 5:return this.taxComponentTemplateData.glAccountOptions.expenseAccountOptions||[]}}submit(){let t=this.taxComponentForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.taxComponentForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.productsService.createTaxComponent(d).subscribe(u=>{this.router.navigate(["../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-tax-component"]],decls:48,vars:32,consts:[["startDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["type","number","matInput","","required","","formControlName","percentage"],["formControlName","debitAccountType"],[3,"value"],[3,"inputFormControl","glAccountList","required","inputLabel"],["formControlName","creditAccountType"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,a8t,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,r8t,7,9,"mat-error"),E(17,l8t,8,9,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),l(22,"mat-select",6),Se(23,s8t,3,5,"mat-option",7,Pe),r()(),E(25,c8t,1,4,"mifosx-gl-account-selector",8),l(26,"mat-form-field")(27,"mat-label"),c(28),p(29,"translate"),r(),l(30,"mat-select",9),Se(31,p8t,3,5,"mat-option",7,Pe),r()(),E(33,m8t,1,4,"mifosx-gl-account-selector",8),l(34,"mat-form-field",10),R("click",function(){V(s);let u=ve(41);return q(u.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",11)(39,"mat-datepicker-toggle",12)(40,"mat-datepicker",null,0),E(42,d8t,7,9,"mat-error"),r()()(),l(43,"mat-card-actions",13)(44,"button",14),c(45),p(46,"translate"),r(),F(47,u8t,3,4,"button",15),r()()()()}if(n&2){let s=ve(41);a(2),g("formGroup",i.taxComponentForm),a(5),h(m(8,19,"labels.inputs.Name")),a(3),I(i.taxComponentForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,21,"labels.inputs.Percentage")),a(3),I(i.taxComponentForm.controls.percentage.hasError("required")?16:-1),a(),I(i.taxComponentForm.controls.percentage.hasError("pattern")||i.taxComponentForm.controls.percentage.hasError("max")?17:-1),a(3),h(m(21,23,"labels.inputs.Debit Account Type")),a(3),we(i.debitAccountTypeData),a(2),I(i.debitAccountData.length>0?25:-1),a(3),h(m(29,25,"labels.inputs.Credit Account Type")),a(3),we(i.creditAccountTypeData),a(2),I(i.creditAccountData.length>0?33:-1),a(3),h(m(37,27,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.taxComponentForm.controls.startDate.hasError("required")?42:-1),a(2),g("routerLink",oe(31,o8t)),a(),v(" ",m(46,29,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_TAXCOMPONENT")}},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,ta,he,ki],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var f8t=()=>["../"];function h8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function g8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _8t(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Credit Account Type")))}function C8t(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",13),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.Credit Account")))}function v8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function x8t(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxComponentForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var fh=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.taxComponentData=t.taxComponent})}ngOnInit(){this.minDate=this.settingsService.minAllowedDate,this.maxDate=this.settingsService.maxAllowedDate,this.editTaxComponent()}editTaxComponent(){let t=this.taxComponentData?.creditAccountType?.value?this.translateService.instant(`labels.inputs.accounting.${this.taxComponentData.creditAccountType.value}`):null,n=this.taxComponentData?.creditAccount?.name??null;this.taxComponentForm=this.formBuilder.group({name:[this.taxComponentData.name,[ce.required]],percentage:[this.taxComponentData.percentage,[ce.required,ce.pattern("^(0*[1-9][0-9]*(\\.[0-9]+)?|0+\\.[0-9]*[1-9][0-9]*)$"),ce.max(100)]],startDate:[this.taxComponentData.startDate&&new Date(this.taxComponentData.startDate)],creditAccountType:[{value:t,disabled:!0}],creditAccount:[{value:n,disabled:!0}]})}submit(){let t=this.taxComponentForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.taxComponentForm.value.startDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.productsService.updateTaxComponent(this.taxComponentData.id,d).subscribe(u=>{this.router.navigate(["../../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-tax-component"]],decls:33,vars:25,consts:[["startDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","percentage"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","formControlName","creditAccountType"],["matInput","","formControlName","creditAccount"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,h8t,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,g8t,7,9,"mat-error"),r(),E(17,_8t,5,3,"mat-form-field"),E(18,C8t,5,3,"mat-form-field"),l(19,"mat-form-field",6),R("click",function(){V(s);let u=ve(26);return q(u.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",7)(24,"mat-datepicker-toggle",8)(25,"mat-datepicker",null,0),E(27,v8t,7,9,"mat-error"),r()()(),l(28,"mat-card-actions",9)(29,"button",10),c(30),p(31,"translate"),r(),F(32,x8t,3,4,"button",11),r()()()()}if(n&2){let s=ve(26);a(2),g("formGroup",i.taxComponentForm),a(5),h(m(8,16,"labels.inputs.Name")),a(3),I(i.taxComponentForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,18,"labels.inputs.Percentage")),a(3),I(i.taxComponentForm.controls.name.hasError("required")?16:-1),a(),I(!(i.taxComponentData==null||i.taxComponentData.creditAccountType==null)&&i.taxComponentData.creditAccountType.value?17:-1),a(),I(!(i.taxComponentData==null||i.taxComponentData.creditAccount==null)&&i.taxComponentData.creditAccount.name?18:-1),a(3),h(m(22,20,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.taxComponentForm.controls.startDate.hasError("required")?27:-1),a(2),g("routerLink",oe(24,f8t)),a(),v(" ",m(31,22,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_TAXCOMPONENT")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var b8t=()=>["edit"];function y8t(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,b8t)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function S8t(e,o){if(e&1&&(l(0,"div",11),c(1),p(2,"dateFormat"),r()),e&2){let t=w().$implicit;a(),v(" ",m(2,1,t.endDate)," ")}}function w8t(e,o){if(e&1&&(l(0,"div",7)(1,"div",10),c(2),r(),l(3,"div",11),c(4),p(5,"dateFormat"),r(),E(6,S8t,3,3,"div",11),r()),e&2){let t=o.$implicit;a(2),le(" ",t.taxComponent.glCode," ",t.taxComponent.name," "),a(2),v(" ",m(5,4,t.startDate)," "),a(2),I(t.endDate!==void 0||t.endDate!==null?6:-1)}}var I3=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.taxGroupData=t.taxGroup})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-tax-group"]],decls:22,vars:14,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","card-content"],[1,"mat-body-strong","flex-33"],[1,"flex-67"],[1,"mat-body-strong","flex-34"],[1,"layout-row-wrap"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"flex-34"],[1,"flex-33"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,y8t,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",6),c(12),p(13,"translate"),r(),l(14,"div",4),c(15),p(16,"translate"),r(),l(17,"div",4),c(18),p(19,"translate"),r()(),Se(20,w8t,7,6,"div",7,Pe),r()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TAXGROUP"),a(6),v(" ",m(8,6,"labels.inputs.Name")," "),a(3),v(" ",i.taxGroupData.name," "),a(2),v(" ",m(13,8,"labels.inputs.Tax Component")," "),a(3),v(" ",m(16,10,"labels.inputs.Start Date")," "),a(3),v(" ",m(19,12,"labels.inputs.End Date")," "),a(2),we(i.taxGroupData.taxAssociations))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var P8t=()=>[10,25,50,100],T8t=()=>["create"];function M8t(e,o){e&1&&(l(0,"button",18),b(1,"fa-icon",19),c(2," Initiate Dividend "),r()),e&2&&g("routerLink",oe(1,T8t))}function D8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function E8t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productData.name)}}function I8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Dividend Period Start Date")," "))}function O8t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dividendPeriodStartDate))}}function A8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Dividend Period End Date")," "))}function F8t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.dividendPeriodEndDate))}}function k8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function B8t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function R8t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function N8t(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function L8t(e,o){e&1&&b(0,"tr",22)}function V8t(e,o){if(e&1){let t=Y();l(0,"tr",23),R("click",function(){let i=V(t).$implicit,s=w();return q(s.showDividend(i.id,i.status.value))}),r()}}var O3=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.displayedColumns=["name","dividendPeriodStartDate","dividendPeriodEndDate","amount","status"],this.route.data.subscribe(t=>{this.dividendData=t.dividends.pageItems})}ngOnInit(){this.setDividends()}setDividends(){this.dataSource=new Wt(this.dividendData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showDividend(t,n){let i={status:n};this.router.navigate([t],{relativeTo:this.route,queryParams:i})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-dividends-share-product"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","dividendPeriodStartDate"],["matColumnDef","dividendPeriodEndDate"],["matColumnDef","amount"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"click",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,M8t,3,2,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,D8t,3,3,"th",9)(13,E8t,2,1,"td",10),Z(),X(14,11),F(15,I8t,3,3,"th",9)(16,O8t,3,3,"td",10),Z(),X(17,12),F(18,A8t,3,3,"th",9)(19,F8t,3,3,"td",10),Z(),X(20,13),F(21,k8t,3,3,"th",9)(22,B8t,2,1,"td",10),Z(),X(23,14),F(24,R8t,3,3,"th",9)(25,N8t,2,1,"td",10),Z(),F(26,L8t,1,0,"tr",15)(27,V8t,1,0,"tr",16),r(),b(28,"mat-paginator",17),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_SHAREDIVIDEND"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,P8t)))},dependencies:[Ke,xe,Oe,ke,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function q8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Product Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function z8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Short Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function H8t(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var qm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductDetailsForm()}ngOnInit(){this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.recurringDepositProductDetailsForm.patchValue({name:this.recurringDepositProductsTemplate.name,shortName:this.recurringDepositProductsTemplate.shortName,description:this.recurringDepositProductsTemplate.description})}createrecurringDepositProductDetailsForm(){this.recurringDepositProductDetailsForm=this.formBuilder.group({name:["",ce.required],shortName:["",ce.required],description:["",ce.required]})}get recurringDepositProductDetails(){return this.recurringDepositProductDetailsForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-details-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:32,vars:31,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","formControlName","name","required","",3,"matTooltip"],["matInput","","formControlName","shortName","maxlength","4","required","",3,"matTooltip"],[1,"flex-98"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",3),p(7,"translate"),E(8,q8t,7,9,"mat-error"),r(),l(9,"mat-form-field",2)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",4),p(14,"translate"),E(15,z8t,7,9,"mat-error"),r(),l(16,"mat-form-field",5)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"textarea",6),p(21,"translate"),E(22,H8t,7,9,"mat-error"),r()(),l(23,"div",7)(24,"button",8),b(25,"fa-icon",9),c(26),p(27,"translate"),r(),l(28,"button",10),c(29),p(30,"translate"),b(31,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.recurringDepositProductDetailsForm),a(4),v("",m(5,15,"labels.inputs.Product Name")," "),a(2),g("matTooltip",Le(m(7,17,"tooltips.Product name is a unique identifier"))),a(2),I(i.recurringDepositProductDetailsForm.controls.name.hasError("required")?8:-1),a(3),h(m(12,19,"labels.inputs.Short Name")),a(2),g("matTooltip",Le(m(14,21,"tooltips.Short name is a unique identifier"))),a(2),I(i.recurringDepositProductDetailsForm.controls.shortName.hasError("required")?15:-1),a(3),h(m(19,23,"labels.inputs.Description")),a(2),g("matTooltip",Le(m(21,25,"tooltips.Description is used to provide additional information regarding the purpose"))),a(2),I(i.recurringDepositProductDetailsForm.controls.description.hasError("required")?22:-1),a(4),v(" ",m(27,27,"labels.buttons.Previous")," "),a(3),v(" ",m(30,29,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Va,Ze,et,Fe,Be,ut,ze,xe,si,Ln,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function G8t(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}var zm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductCurrencyForm()}ngOnInit(){this.currencyData=this.recurringDepositProductsTemplate.currencyOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id?this.recurringDepositProductCurrencyForm.patchValue({currencyCode:this.recurringDepositProductsTemplate.currency.code,digitsAfterDecimal:this.recurringDepositProductsTemplate.currency.decimalPlaces,inMultiplesOf:this.recurringDepositProductsTemplate.currency.inMultiplesOf}):this.recurringDepositProductCurrencyForm.patchValue({currencyCode:this.currencyData[0].code,digitsAfterDecimal:2})}createrecurringDepositProductCurrencyForm(){this.recurringDepositProductCurrencyForm=this.formBuilder.group({currencyCode:["",ce.required],digitsAfterDecimal:["",ce.required],inMultiplesOf:[""]})}get recurringDepositProductCurrency(){return this.recurringDepositProductCurrencyForm.value}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-currency-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:52,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","currencyCode","required","",3,"matTooltip"],[3,"value"],["type","number","matInput","","formControlName","digitsAfterDecimal","required","",3,"matTooltip"],["type","number","matInput","","formControlName","inMultiplesOf",3,"matTooltip"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"mat-select",3),p(7,"translate"),Se(8,G8t,2,2,"mat-option",4,Pe),r(),l(10,"mat-error"),c(11),p(12,"translate"),p(13,"translate"),l(14,"strong"),c(15),p(16,"translate"),r()()(),l(17,"mat-form-field",2)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),p(22,"translate"),l(23,"mat-error"),c(24),p(25,"translate"),p(26,"translate"),l(27,"strong"),c(28),p(29,"translate"),r()()(),l(30,"mat-form-field",2)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",6),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()()(),l(43,"div",7)(44,"button",8),b(45,"fa-icon",9),c(46),p(47,"translate"),r(),l(48,"button",10),c(49),p(50,"translate"),b(51,"fa-icon",11),r()()()),n&2&&(g("formGroup",i.recurringDepositProductCurrencyForm),a(4),h(m(5,21,"labels.inputs.Currency")),a(2),g("matTooltip",Le(m(7,23,"tooltips.The currency in which the deposit will be disbursed"))),a(2),we(i.currencyData),a(3),le(" ",m(12,25,"labels.inputs.Currency")," ",m(13,27,"labels.commons.is")," "),a(4),h(m(16,29,"labels.commons.required")),a(4),h(m(20,31,"labels.inputs.Decimal Places")),a(2),g("matTooltip",Le(m(22,33,"tooltips.Decimal places to be used to track and report"))),a(3),le(" ",m(25,35,"labels.inputs.Decimal Places")," ",m(26,37,"labels.commons.is")," "),a(4),h(m(29,39,"labels.commons.required")),a(4),h(m(33,41,"labels.inputs.Currency in multiples of")),a(2),g("matTooltip",Le(m(35,43,"tooltips.Enter multiples of currency value"))),a(3),le(" ",m(38,45,"labels.inputs.Currency in multiples of")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(5),v(" ",m(47,51,"labels.buttons.Previous")," "),a(3),v(" ",m(50,53,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,si,qi,ke,Ji,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function j8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function $8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function U8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function W8t(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}var Hm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductTermsForm()}ngOnInit(){this.interestCompoundingPeriodTypeData=this.recurringDepositProductsTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.recurringDepositProductsTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.recurringDepositProductsTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.recurringDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.recurringDepositProductTermsForm.patchValue({minDepositAmount:this.recurringDepositProductsTemplate.minDepositAmount,depositAmount:this.recurringDepositProductsTemplate.depositAmount,maxDepositAmount:this.recurringDepositProductsTemplate.maxDepositAmount}),this.recurringDepositProductTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositProductsTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositProductsTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositProductsTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositProductsTemplate.interestCalculationDaysInYearType.id})}createrecurringDepositProductTermsForm(){this.recurringDepositProductTermsForm=this.formBuilder.group({minDepositAmount:[""],depositAmount:["",ce.required],maxDepositAmount:[""],interestCompoundingPeriodType:["",ce.required],interestPostingPeriodType:["",ce.required],interestCalculationType:["",ce.required],interestCalculationDaysInYearType:["",ce.required]})}get recurringDepositProductTerms(){let t=this.recurringDepositProductTermsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-terms-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:94,vars:79,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h4","flex-98"],[1,"flex-31"],["type","number","matInput","","formControlName","minDepositAmount"],["type","number","matInput","","formControlName","depositAmount","required",""],["type","number","matInput","","formControlName","maxDepositAmount"],[1,"flex-98"],[1,"flex-48"],["formControlName","interestCompoundingPeriodType","required",""],[3,"value"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"h4",2),c(3),p(4,"translate"),r(),l(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),r(),l(10,"mat-form-field",3)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",5),l(15,"mat-error"),c(16),p(17,"translate"),p(18,"translate"),p(19,"translate"),l(20,"strong"),c(21),p(22,"translate"),r()()(),l(23,"mat-form-field",3)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",6),r(),b(28,"mat-divider",7),l(29,"mat-form-field",8)(30,"mat-label"),c(31),p(32,"translate"),r(),l(33,"mat-select",9),Se(34,j8t,2,2,"mat-option",10,Pe),r(),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()(),l(43,"mat-form-field",8)(44,"mat-label"),c(45),p(46,"translate"),r(),l(47,"mat-select",11),Se(48,$8t,2,2,"mat-option",10,Pe),r(),l(50,"mat-error"),c(51),p(52,"translate"),p(53,"translate"),l(54,"strong"),c(55),p(56,"translate"),r()()(),l(57,"mat-form-field",8)(58,"mat-label"),c(59),p(60,"translate"),r(),l(61,"mat-select",12),Se(62,U8t,2,2,"mat-option",10,Pe),r(),l(64,"mat-error"),c(65),p(66,"translate"),p(67,"translate"),l(68,"strong"),c(69),p(70,"translate"),r()()(),l(71,"mat-form-field",8)(72,"mat-label"),c(73),p(74,"translate"),r(),l(75,"mat-select",13),Se(76,W8t,2,2,"mat-option",10,Pe),r(),l(78,"mat-error"),c(79),p(80,"translate"),p(81,"translate"),l(82,"strong"),c(83),p(84,"translate"),r()()()(),l(85,"div",14)(86,"button",15),b(87,"fa-icon",16),c(88),p(89,"translate"),r(),l(90,"button",17),c(91),p(92,"translate"),b(93,"fa-icon",18),r()()()),n&2&&(g("formGroup",i.recurringDepositProductTermsForm),a(3),h(m(4,27,"labels.inputs.Deposit Amount")),a(4),h(m(8,29,"labels.inputs.Minimum")),a(5),h(m(13,31,"labels.inputs.Default")),a(4),ea(" ",m(17,33,"labels.inputs.Default")," ",m(18,35,"labels.inputs.Deposit Amount")," ",m(19,37,"labels.commons.is")," "),a(5),h(m(22,39,"labels.commons.required")),a(4),h(m(26,41,"labels.inputs.Maximum")),a(6),h(m(32,43,"labels.inputs.Interest Compounding Period")),a(3),we(i.interestCompoundingPeriodTypeData),a(3),le(" ",m(38,45,"labels.inputs.Interest Compounding Period")," ",m(39,47,"labels.commons.is")," "),a(4),h(m(42,49,"labels.commons.required")),a(4),h(m(46,51,"labels.inputs.Interest Posting Period")),a(3),we(i.interestPostingPeriodTypeData),a(3),le(" ",m(52,53,"labels.inputs.Interest Posting Period")," ",m(53,55,"labels.commons.is")," "),a(4),h(m(56,57,"labels.commons.required")),a(4),h(m(60,59,"labels.inputs.Interest Calculated using")),a(3),we(i.interestCalculationTypeData),a(3),le(" ",m(66,61,"labels.inputs.Interest Calculated using")," ",m(67,63,"labels.commons.is")," "),a(4),h(m(70,65,"labels.commons.required")),a(4),h(m(74,67,"labels.inputs.Days in Year")),a(3),we(i.interestCalculationDaysInYearTypeData),a(3),le(" ",m(80,69,"labels.inputs.Days in Year")," ",m(81,71,"labels.commons.is")," "),a(4),h(m(84,73,"labels.commons.required")),a(5),v(" ",m(89,75,"labels.buttons.Previous")," "),a(3),v(" ",m(92,77,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function Q8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Y8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function J8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function K8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function X8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Z8t(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eBt(e,o){if(e&1&&(l(0,"mat-form-field",6)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",27),Se(5,Z8t,2,2,"mat-option",9,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Tax Group")),a(3),we(t.taxGroupData),a(3),le(" ",m(9,6,"labels.inputs.Tax Group")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}var Gm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.createrecurringDepositProductSettingsForm(),this.setConditionalControls()}ngOnInit(){this.lockinPeriodFrequencyTypeData=this.recurringDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=this.recurringDepositProductsTemplate.periodFrequencyTypeOptions.slice(0,-1),this.preClosurePenalInterestOnTypeData=this.recurringDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,this.taxGroupData=this.recurringDepositProductsTemplate.taxGroupOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.recurringDepositProductSettingsForm.patchValue({isMandatoryDeposit:this.recurringDepositProductsTemplate.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:this.recurringDepositProductsTemplate.adjustAdvanceTowardsFuturePayments,allowWithdrawal:this.recurringDepositProductsTemplate.allowWithdrawal,lockinPeriodFrequency:this.recurringDepositProductsTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositProductsTemplate.lockinPeriodFrequencyType?this.recurringDepositProductsTemplate.lockinPeriodFrequencyType.id:"",minDepositTerm:this.recurringDepositProductsTemplate.minDepositTerm,minDepositTermTypeId:this.recurringDepositProductsTemplate.minDepositTermType?this.recurringDepositProductsTemplate.minDepositTermType.id:"",inMultiplesOfDepositTerm:this.recurringDepositProductsTemplate.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:this.recurringDepositProductsTemplate.inMultiplesOfDepositTermType?this.recurringDepositProductsTemplate.inMultiplesOfDepositTerm.id:"",maxDepositTerm:this.recurringDepositProductsTemplate.maxDepositTerm,maxDepositTermTypeId:this.recurringDepositProductsTemplate.maxDepositTermType?this.recurringDepositProductsTemplate.minDepositTermType.id:"",preClosurePenalApplicable:this.recurringDepositProductsTemplate.preClosurePenalApplicable,preClosurePenalInterest:this.recurringDepositProductsTemplate.preClosurePenalInterest,preClosurePenalInterestOnTypeId:this.recurringDepositProductsTemplate.preClosurePenalInterestOnType?this.recurringDepositProductsTemplate.preClosurePenalInterestOnType.id:"",withHoldTax:this.recurringDepositProductsTemplate.withHoldTax}),this.recurringDepositProductsTemplate.withHoldTax&&this.recurringDepositProductSettingsForm.patchValue({taxGroupId:this.recurringDepositProductsTemplate.taxGroup?this.recurringDepositProductsTemplate.taxGroup.id:""})}createrecurringDepositProductSettingsForm(){this.recurringDepositProductSettingsForm=this.formBuilder.group({isMandatoryDeposit:[!1],adjustAdvanceTowardsFuturePayments:[!1],allowWithdrawal:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],minDepositTerm:["",ce.required],minDepositTermTypeId:["",ce.required],inMultiplesOfDepositTerm:[""],inMultiplesOfDepositTermTypeId:[""],maxDepositTerm:[""],maxDepositTermTypeId:[""],preClosurePenalApplicable:[!1],preClosurePenalInterest:[""],preClosurePenalInterestOnTypeId:[""],withHoldTax:[!1]})}setConditionalControls(){this.recurringDepositProductSettingsForm.get("withHoldTax").valueChanges.subscribe(t=>{t?this.recurringDepositProductSettingsForm.addControl("taxGroupId",new it("",ce.required)):this.recurringDepositProductSettingsForm.removeControl("taxGroupId")})}get recurringDepositProductSettings(){let t=this.recurringDepositProductSettingsForm.value;for(let n in t)t[n]===""&&delete t[n];return t}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-settings-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:122,vars:102,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["labelPosition","before","formControlName","isMandatoryDeposit",1,"margin-v","flex-48"],["labelPosition","before","formControlName","adjustAdvanceTowardsFuturePayments",1,"flex-48","margin-v"],["labelPosition","before","formControlName","allowWithdrawal",1,"margin-v","flex-48"],[1,"mat-h4","flex-98"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency",3,"matTooltip"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],["type","number","matInput","","formControlName","minDepositTerm","required","",3,"matTooltip"],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm",3,"matTooltip"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm",3,"matTooltip"],["formControlName","maxDepositTermTypeId"],[1,"flex-98"],[1,"mat-h4","flex-23"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["labelPosition","before","formControlName","withHoldTax",1,"margin-v","flex-48"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["formControlName","taxGroupId","required",""]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-checkbox",2),c(3),p(4,"translate"),r(),l(5,"mat-checkbox",3),c(6),p(7,"translate"),r(),l(8,"mat-checkbox",4),c(9),p(10,"translate"),r(),l(11,"h4",5),c(12),p(13,"translate"),r(),l(14,"mat-form-field",6)(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",7),p(19,"translate"),r(),l(20,"mat-form-field",6)(21,"mat-label"),c(22),p(23,"translate"),r(),l(24,"mat-select",8),Se(25,Q8t,2,2,"mat-option",9,Pe),r()(),l(27,"h4",5),c(28),p(29,"translate"),r(),l(30,"mat-form-field",6)(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",10),p(35,"translate"),l(36,"mat-error"),c(37),p(38,"translate"),p(39,"translate"),l(40,"strong"),c(41),p(42,"translate"),r()()(),l(43,"mat-form-field",6)(44,"mat-label"),c(45),p(46,"translate"),r(),l(47,"mat-select",11),Se(48,Y8t,2,2,"mat-option",9,Pe),r(),l(50,"mat-error"),c(51),p(52,"translate"),p(53,"translate"),l(54,"strong"),c(55),p(56,"translate"),r()()(),l(57,"h4",5),c(58),p(59,"translate"),r(),l(60,"mat-form-field",6)(61,"mat-label"),c(62),p(63,"translate"),r(),b(64,"input",12),p(65,"translate"),r(),l(66,"mat-form-field",6)(67,"mat-label"),c(68),p(69,"translate"),r(),l(70,"mat-select",13),Se(71,J8t,2,2,"mat-option",9,Pe),r()(),l(73,"h4",5),c(74),p(75,"translate"),r(),l(76,"mat-form-field",6)(77,"mat-label"),c(78),p(79,"translate"),r(),b(80,"input",14),p(81,"translate"),r(),l(82,"mat-form-field",6)(83,"mat-label"),c(84),p(85,"translate"),r(),l(86,"mat-select",15),Se(87,K8t,2,2,"mat-option",9,Pe),r()(),b(89,"mat-divider",16),l(90,"h4",17),c(91),p(92,"translate"),r(),l(93,"mat-checkbox",18),c(94),p(95,"translate"),r(),l(96,"mat-form-field",6)(97,"mat-label"),c(98),p(99,"translate"),r(),b(100,"input",19),r(),l(101,"mat-form-field",6)(102,"mat-label"),c(103),p(104,"translate"),r(),l(105,"mat-select",20),Se(106,X8t,2,2,"mat-option",9,Pe),r()(),b(108,"mat-divider",16),l(109,"mat-checkbox",21),c(110),p(111,"translate"),r(),E(112,eBt,14,12,"mat-form-field",6),r(),l(113,"div",22)(114,"button",23),b(115,"fa-icon",24),c(116),p(117,"translate"),r(),l(118,"button",25),c(119),p(120,"translate"),b(121,"fa-icon",26),r()()()),n&2&&(g("formGroup",i.recurringDepositProductSettingsForm),a(3),v(" ",m(4,38,"labels.inputs.Is Mandatory Deposit")," "),a(3),v(" ",m(7,40,"labels.inputs.Adjust advance payments toward future installments")," "),a(3),v(" ",m(10,42,"labels.inputs.Allow Withdrawals")," "),a(3),h(m(13,44,"labels.inputs.Lock-in Period")),a(4),h(m(17,46,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(19,48,"tooltips.The number at which lock in period occurs"))),a(4),h(m(23,50,"labels.inputs.Type")),a(3),we(i.lockinPeriodFrequencyTypeData),a(3),h(m(29,52,"labels.inputs.Minimum Deposit Term")),a(4),h(m(33,54,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(35,56,"tooltips.The number at which minimum deposit occurs"))),a(3),le(" ",m(38,58,"labels.inputs.Minimum Deposit Term Frequency")," ",m(39,60,"labels.commons.is")," "),a(4),h(m(42,62,"labels.commons.required")),a(4),h(m(46,64,"labels.inputs.Frequency Type")),a(3),we(i.periodFrequencyTypeData),a(3),le(" ",m(52,66,"labels.inputs.Minimum Deposit Term Frequency Type")," ",m(53,68,"labels.commons.is")," "),a(4),h(m(56,70,"labels.commons.required")),a(3),h(m(59,72,"labels.heading.And thereafter, in Multiples of")),a(4),h(m(63,74,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(65,76,"tooltips.The number at which multiple deposits occurs"))),a(4),h(m(69,78,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(3),h(m(75,80,"labels.inputs.Maximum Deposit Term")),a(4),h(m(79,82,"labels.inputs.Frequency")),a(2),g("matTooltip",Le(m(81,84,"tooltips.The number at which minimum deposit occurs"))),a(4),h(m(85,86,"labels.inputs.Type")),a(3),we(i.periodFrequencyTypeData),a(4),h(m(92,88,"labels.heading.For Pre-mature closure")),a(3),v(" ",m(95,90,"labels.inputs.Apply Penal Interest (less)")," "),a(4),v("",m(99,92,"labels.inputs.Penal Interest")," (%)"),a(5),h(m(104,94,"labels.inputs.Period")),a(3),we(i.preClosurePenalInterestOnTypeData),a(4),v(" ",m(111,96,"labels.inputs.Is Withhold Tax Applicable")," "),a(2),I(i.recurringDepositProductSettingsForm.value.withHoldTax?112:-1),a(4),v(" ",m(117,98,"labels.buttons.Previous")," "),a(3),v(" ",m(120,100,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,gt,ft,xe,fi,si,Ri,qi,ke,Ji,he],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function tBt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iBt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Description")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nBt(e,o){e&1&&(l(0,"div",30)(1,"h3",32),c(2),p(3,"translate"),r()()),e&2&&(a(2),h(m(3,1,"labels.heading.It is required to add at least one Slab")))}function oBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function aBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.periodTypeData,"id","value")," ")}}function rBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function lBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function sBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function cBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.annualInterestRate," ")}}function pBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function mBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function dBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function uBt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",50),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function fBt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",51),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function hBt(e,o){if(e&1){let t=Y();l(0,"td",45)(1,"button",46),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.editChartSlab(s.controls.chartSlabs,i))}),b(2,"fa-icon",47),r(),l(3,"button",48),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.delete(s.controls.chartSlabs,i))}),b(4,"fa-icon",18),r(),l(5,"button",49),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w();return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(6,uBt,4,3,"span"),E(7,fBt,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2).$index,i=w();a(6),I(i.expandChartSlabIndex[n]!==t?6:-1),a(),I(i.expandChartSlabIndex[n]===t?7:-1)}}function gBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function _Bt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.entityTypeData,"id","value")," ")}}function CBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function vBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.attributeNameData,"id","value")," ")}}function xBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function bBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.conditionTypeData,"id","value")," ")}}function yBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function SBt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.genderData,"id","name"))}}function wBt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function PBt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientTypeData,"id","name"))}}function TBt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.clientClassificationData,"id","name"))}}function MBt(e,o){if(e&1&&(l(0,"td",45),E(1,SBt,3,6,"span")(2,wBt,2,1,"span")(3,PBt,3,6,"span")(4,TBt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function DBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function EBt(e,o){if(e&1&&(l(0,"td",45),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.incentiveTypeData,"id","value")," ")}}function IBt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function OBt(e,o){if(e&1&&(l(0,"td",45),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function ABt(e,o){e&1&&(l(0,"th",44),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function FBt(e,o){if(e&1){let t=Y();l(0,"td",45)(1,"button",46),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.editIncentive(u.getIncentives(d.controls.chartSlabs,s),i))}),b(2,"fa-icon",47),r(),l(3,"button",48),R("click",function(){let i=V(t).index,s=w(2).dataIndex,d=w(2).$implicit,u=w();return q(u.delete(u.getIncentives(d.controls.chartSlabs,s),i))}),b(4,"fa-icon",18),r()()}}function kBt(e,o){e&1&&b(0,"tr",64)}function BBt(e,o){e&1&&b(0,"tr",65)}function RBt(e,o){if(e&1&&(l(0,"table",57),X(1,58),F(2,gBt,3,3,"th",34)(3,_Bt,3,6,"td",35),Z(),X(4,59),F(5,CBt,3,3,"th",34)(6,vBt,3,6,"td",35),Z(),X(7,60),F(8,xBt,3,3,"th",34)(9,bBt,3,6,"td",35),Z(),X(10,61),F(11,yBt,3,3,"th",34)(12,MBt,5,1,"td",35),Z(),X(13,62),F(14,DBt,3,3,"th",34)(15,EBt,3,6,"td",35),Z(),X(16,63),F(17,IBt,3,3,"th",34)(18,OBt,2,1,"td",35),Z(),X(19,39),F(20,ABt,3,3,"th",34)(21,FBt,5,0,"td",35),Z(),F(22,kBt,1,0,"tr",41)(23,BBt,1,0,"tr",42),r()),e&2){let t=w().$implicit,n=w(3);g("dataSource",t.incentives),a(22),g("matHeaderRowDef",n.incentivesDisplayedColumns),a(),g("matRowDefColumns",n.incentivesDisplayedColumns)}}function NBt(e,o){if(e&1){let t=Y();l(0,"td",45)(1,"div",52)(2,"mat-card",53)(3,"h4",54),c(4),p(5,"translate"),r(),l(6,"div",55)(7,"button",56),R("click",function(){let i=V(t).dataIndex,s=w(2).$implicit,d=w();return q(d.addIncentive(d.getIncentives(s.controls.chartSlabs,i)))}),b(8,"fa-icon",7),c(9),p(10,"translate"),r()(),E(11,RBt,24,3,"table",57),r()()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w();Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,5,"labels.heading.Incentives")," "),a(5),v(" ",m(10,7,"labels.buttons.Add")," "),a(2),I(t.incentives.length?11:-1)}}function LBt(e,o){e&1&&b(0,"tr",64)}function VBt(e,o){e&1&&b(0,"tr",65)}function qBt(e,o){e&1&&b(0,"tr",66)}function zBt(e,o){if(e&1&&(l(0,"table",31),X(1,33),F(2,oBt,3,3,"th",34)(3,aBt,3,6,"td",35),Z(),X(4,36),F(5,rBt,3,3,"th",34)(6,lBt,2,1,"td",35),Z(),X(7,37),F(8,sBt,3,3,"th",34)(9,cBt,2,1,"td",35),Z(),X(10,38),F(11,pBt,3,3,"th",34)(12,mBt,2,1,"td",35),Z(),X(13,39),F(14,dBt,3,3,"th",34)(15,hBt,8,2,"td",35),Z(),X(16,40),F(17,NBt,12,9,"td",35),Z(),F(18,LBt,1,0,"tr",41)(19,VBt,1,0,"tr",42)(20,qBt,1,0,"tr",43),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w();g("dataSource",n.value.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function HBt(e,o){if(e&1){let t=Y();l(0,"div",8),b(1,"mat-divider",14),l(2,"div",15)(3,"div",16)(4,"button",17),p(5,"translate"),R("click",function(){let i=V(t).$index,s=w();return q(s.delete(s.charts,i))}),b(6,"fa-icon",18),r()(),l(7,"mat-form-field",19)(8,"mat-label"),c(9),p(10,"translate"),r(),b(11,"input",20),E(12,tBt,7,9,"mat-error"),r(),l(13,"mat-form-field",21)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"textarea",22),E(18,iBt,7,9,"mat-error"),r(),l(19,"mat-form-field",23),R("click",function(){V(t);let i=ve(26);return q(i.open())}),l(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",24)(24,"mat-datepicker-toggle",25)(25,"mat-datepicker",null,0),l(27,"mat-error"),c(28),p(29,"translate"),p(30,"translate"),l(31,"strong"),c(32),p(33,"translate"),r()()(),l(34,"mat-form-field",23),R("click",function(){V(t);let i=ve(41);return q(i.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",26)(39,"mat-datepicker-toggle",25)(40,"mat-datepicker",null,1),r(),l(42,"div",27)(43,"mat-checkbox",28),c(44),p(45,"translate"),r()(),l(46,"div",29)(47,"button",6),R("click",function(){let i=V(t).$implicit,s=w();return q(s.addChartSlab(i.controls.chartSlabs))}),b(48,"fa-icon",7),c(49),p(50,"translate"),r()(),E(51,nBt,4,3,"div",30),E(52,zBt,21,4,"table",31),r()()}if(e&2){let t,n,i=o.$implicit,s=o.$index,d=ve(26),u=ve(41),f=w();a(2),g("formGroupName",s),a(2),g("matTooltip",Le(m(5,24,"tooltips.Delete Interest Rate Chart"))),a(5),h(m(10,26,"labels.inputs.Name")),a(3),I((t=i.get("name"))!=null&&t.touched&&((t=i.get("name"))!=null&&t.hasError("required"))?12:-1),a(3),h(m(16,28,"labels.inputs.Description")),a(3),I((n=i.get("description"))!=null&&n.touched&&((n=i.get("description"))!=null&&n.hasError("required"))?18:-1),a(3),h(m(22,30,"labels.inputs.From Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",d),a(),g("for",d),a(4),le(" ",m(29,32,"labels.inputs.From Date")," ",m(30,34,"labels.commons.is")," "),a(4),h(m(33,36,"labels.commons.required")),a(4),h(m(37,38,"labels.inputs.End Date")),a(2),g("min",f.minDate)("max",f.maxDate)("matDatepicker",u),a(),g("for",u),a(5),v(" ",m(45,40,"labels.inputs.Is primary grouping by amount?")," "),a(5),v(" ",m(50,42,"labels.buttons.Add Slab")," "),a(2),I(i.value.chartSlabs.length===0?51:-1),a(),I(i.value.chartSlabs.length!==0?52:-1)}}var jm=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.chartSlabsDisplayedColumns=[],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount","actions"],this.minDate=new Date(2e3,0,1),this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.expandChartSlabIndex=[],this.chartDetailData=[],this.chartsDetail=[],this.createrecurringDepositProductInterestRateChartForm()}ngOnInit(){this.periodTypeData=this.recurringDepositProductsTemplate.chartTemplate.periodTypes,this.entityTypeData=this.recurringDepositProductsTemplate.chartTemplate.entityTypeOptions,this.attributeNameData=this.recurringDepositProductsTemplate.chartTemplate.attributeNameOptions,this.conditionTypeData=this.recurringDepositProductsTemplate.chartTemplate.conditionTypeOptions,this.genderData=this.recurringDepositProductsTemplate.chartTemplate.genderOptions,this.clientTypeData=this.recurringDepositProductsTemplate.chartTemplate.clientTypeOptions,this.clientClassificationData=this.recurringDepositProductsTemplate.chartTemplate.clientClassificationOptions,this.incentiveTypeData=this.recurringDepositProductsTemplate.chartTemplate.incentiveTypeOptions,this.recurringDepositProductsTemplate!==void 0&&this.assignFormData()}assignFormData(){this.addChart();let t=Array.isArray(this.recurringDepositProductsTemplate.activeChart);this.recurringDepositProductsTemplate.activeChart&&(t?this.chartDetailData=this.recurringDepositProductsTemplate.activeChart:this.chartDetailData.push(this.recurringDepositProductsTemplate.activeChart)),this.getChartsDetailsData(),this.charts.controls.forEach((n,i)=>{this.chartsDetail[i]&&this.chartsDetail[i].chartSlabs.forEach((s,d)=>{let u=this.formBuilder.group({id:[s.id],amountRangeFrom:[s.amountRangeFrom],amountRangeTo:[s.amountRangeTo],annualInterestRate:[s.annualInterestRate,ce.required],description:[s.description,ce.required],fromPeriod:[s.fromPeriod,ce.required],toPeriod:[s.toPeriod],periodType:[s.periodType,ce.required],incentives:this.formBuilder.array([])});n.controls.chartSlabs.push(u);let _=n.controls.chartSlabs.controls[d];this.chartsDetail[i].chartSlabs[d].incentives.forEach(C=>{let x=this.formBuilder.group({amount:[C.amount,ce.required],attributeName:[C.attributeName,ce.required],attribureValue:[C.attribureValue,ce.required],conditionType:[C.conditionType,ce.required],entityType:[C.entityType,ce.required],incentiveType:[C.incentiveType,ce.required]});_.controls.incentives.push(x)})})})}getChartsDetailsData(){this.chartDetailData.forEach(t=>{let n={endDate:t.endDate?new Date(t.endDate):"",fromDate:t.fromDate?new Date(t.fromDate):"",isPrimaryGroupingByAmount:t.isPrimaryGroupingByAmount,name:t.name,chartSlabs:this.getChartSlabsData(t)};t.id&&(n.id=t.id),this.chartsDetail.push(n)}),this.recurringDepositProductInterestRateChartForm.patchValue({charts:this.chartsDetail})}getChartSlabsData(t){let n=[],i=[];return Array.isArray(t.chartSlabs)?i=t.chartSlabs:i.push(t.chartSlabs),i.forEach(d=>{let u={periodType:d.periodType.id,amountRangeFrom:d.amountRangeFrom,amountRangeTo:d.amountRangeTo,annualInterestRate:d.annualInterestRate,description:d.description?d.description:"",fromPeriod:d.fromPeriod,toPeriod:d.toPeriod,incentives:this.getIncentivesData(i)};d.id&&(u.id=d.id),n.push(u)}),n}getIncentivesData(t){let n=[],i=[];return t.incentives&&(Array.isArray(t.incentives)?i=t.incentives:i.push(t.incentives),i.forEach(d=>{let u={amount:d.amount,attributeName:d.attributeName,attributeValue:d.attributeValue,conditionType:d.conditionType,entityType:d.entityType,incentiveType:d.incentiveType};n.push(u)})),n}createrecurringDepositProductInterestRateChartForm(){this.recurringDepositProductInterestRateChartForm=this.formBuilder.group({charts:this.formBuilder.array([])})}get charts(){return this.recurringDepositProductInterestRateChartForm.get("charts")}createChartForm(){return this.formBuilder.group({id:[null],name:[""],description:[""],fromDate:["",ce.required],endDate:[""],isPrimaryGroupingByAmount:[!1],chartSlabs:this.formBuilder.array([],ce.required)})}addChart(){this.charts.push(this.createChartForm()),this.setConditionalControls(this.charts.length-1)}setConditionalControls(t){this.chartSlabsDisplayedColumns[t]=["period","amountRange","annualInterestRate","description","actions"],this.charts.at(t).get("isPrimaryGroupingByAmount").valueChanges.subscribe(n=>{this.chartSlabsDisplayedColumns[t]=n?["amountRange","period"]:["period","amountRange"],this.chartSlabsDisplayedColumns[t].push("annualInterestRate","description","actions")})}getIncentives(t,n){return t.at(n).get("incentives")}addChartSlab(t){let n=at({},this.getData("Slab"));this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(s.data.addControl("incentives",this.formBuilder.array([])),t.push(s.data))})}addIncentive(t){let n=qt(at({},this.getData("Incentive")),{entityType:this.entityTypeData[0].id});this.dialog.open(Bm,{data:n}).afterClosed().subscribe(s=>{s.data&&t.push(s.data)})}editChartSlab(t,n){let i=qt(at({},this.getData("Slab",t.at(n).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}editIncentive(t,n){let i=qt(at({},this.getData("Incentive",t.at(n).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(Bm,{data:i}).afterClosed().subscribe(d=>{d.data&&t.at(n).patchValue(d.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"Slab":return{title:this.translateService.instant("labels.inputs.Slab"),formfields:this.getSlabFormfields(n)};case"Incentive":return{values:n,chartTemplate:this.recurringDepositProductsTemplate.chartTemplate}}}getSlabFormfields(t){return[new $i({controlName:"periodType",label:this.translateService.instant("labels.inputs.Period Type"),value:t?t.periodType:this.periodTypeData[0].id,options:{label:"value",value:"id",data:this.periodTypeData},required:!0,order:1}),new vn({controlName:"fromPeriod",label:this.translateService.instant("labels.inputs.Period From"),value:t?t.fromPeriod:void 0,type:"number",required:!0,order:2}),new vn({controlName:"toPeriod",label:this.translateService.instant("labels.inputs.Period To"),value:t?t.toPeriod:void 0,type:"number",order:3}),new vn({controlName:"amountRangeFrom",label:this.translateService.instant("labels.inputs.Amount Range From"),value:t?t.amountRangeFrom:void 0,type:"number",order:4}),new vn({controlName:"amountRangeTo",label:this.translateService.instant("labels.inputs.Amount Range To"),value:t?t.amountRangeTo:void 0,type:"number",order:5}),new vn({controlName:"annualInterestRate",label:this.translateService.instant("labels.inputs.Interest"),value:t?t.annualInterestRate:void 0,type:"number",required:!0,order:6}),new vn({controlName:"description",label:this.translateService.instant("labels.inputs.Description"),value:t?t.description:void 0,required:!0,order:7})]}get recurringDepositProductInterestRateChart(){let t="YYYY-MM-DD",n=this.settingsService.language.code,i=this.recurringDepositProductInterestRateChartForm.value;for(let s of i.charts)s.locale=n,s.dateFormat="yyyy-MM-dd",s.fromDate instanceof Date&&(s.fromDate=this.dateUtils.formatDateAsString(s.fromDate,t)),s.endDate&&s.endDate instanceof Date&&(s.endDate=this.dateUtils.formatDateAsString(s.endDate,t)),s.endDate===""&&delete s.endDate,s.description===""&&delete s.description,s.id===null&&delete s.id;return i}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-interest-rate-chart-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate"},decls:21,vars:13,consts:[["validFromDatePicker",""],["endDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"mat-h3","flex-83"],[1,"flex-13","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["formArrayName","charts",1,"flex-fill","layout-row-wrap","responsive-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","responsive-column",3,"formGroupName"],["align","end",1,"flex-100"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],[1,"flex-28","m-r-5"],["matInput","","formControlName","name","required",""],[1,"flex-70"],["matInput","","formControlName","description","required",""],[1,"flex-48","m-r-5",3,"click"],["matInput","","formControlName","fromDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"flex-31","layout-row","align-between","align-items-center"],["labelPosition","before","formControlName","isPrimaryGroupingByAmount"],[1,"center","flex-100"],[1,"flex-100"],["mat-table","","multiTemplateDataRows","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"mat-h3"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","layout-row-wrap","flex-fill"],[1,"layout-row-wrap","flex-fill"],[1,"mat-h4","flex-83"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(n,i){n&1&&(l(0,"form",2)(1,"div",3)(2,"h3",4),c(3),p(4,"translate"),r(),l(5,"div",5)(6,"button",6),R("click",function(){return i.addChart()}),b(7,"fa-icon",7),c(8),p(9,"translate"),r()(),Se(10,HBt,53,44,"div",8,Pe),r(),l(12,"div",9)(13,"button",10),b(14,"fa-icon",11),c(15),p(16,"translate"),r(),l(17,"button",12),c(18),p(19,"translate"),b(20,"fa-icon",13),r()()()),n&2&&(g("formGroup",i.recurringDepositProductInterestRateChartForm),a(3),h(m(4,5,"labels.heading.Interest Rate Charts")),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(2),we(i.charts.controls),a(5),v(" ",m(16,9,"labels.buttons.Previous")," "),a(3),v(" ",m(19,11,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,la,La,Ue,Fe,Be,ut,ai,ze,mi,di,pi,xe,fi,ke,Ri,wi,si,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{margin:.5em 0 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function GBt(e,o){if(e&1&&(l(0,"mat-option",3),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function jBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function $Bt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function UBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function WBt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function QBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function YBt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function JBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function KBt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function XBt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function ZBt(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"button",24),R("click",function(){let i=V(t).$implicit,s=w();return q(s.deleteCharge(i))}),b(2,"fa-icon",25),r()()}}function eRt(e,o){e&1&&b(0,"tr",26)}function tRt(e,o){e&1&&b(0,"tr",27)}var $m=(()=>{class e{constructor(){this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"]}ngOnInit(){this.chargeData=this.recurringDepositProductsTemplate.chargeOptions,this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id?this.chargesDataSource=this.recurringDepositProductsTemplate.charges:this.chargesDataSource=[],this.currencyCode.valueChanges.subscribe(()=>this.chargesDataSource=[])}addCharge(t){this.chargesDataSource=this.chargesDataSource.concat([t.value]),t.value=""}deleteCharge(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.inputs.Charge")+" "+t.name}}).afterClosed().subscribe(i=>{i.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(t),1),this.chargesDataSource=this.chargesDataSource.concat([]))})}get recurringDepositProductCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-charges-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate",currencyCode:"currencyCode"},decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",null,0),Se(7,GBt,2,2,"mat-option",3,Pe),p(9,"chargesFilter"),r()(),l(10,"div",4)(11,"button",5),R("click",function(){V(s);let u=ve(6);return q(i.addCharge(u))}),b(12,"fa-icon",6),c(13),p(14,"translate"),r()(),l(15,"table",7),X(16,8),F(17,jBt,3,3,"th",9)(18,$Bt,2,1,"td",10),Z(),X(19,11),F(20,UBt,3,3,"th",9)(21,WBt,2,1,"td",10),Z(),X(22,12),F(23,QBt,3,3,"th",9)(24,YBt,2,1,"td",10),Z(),X(25,13),F(26,JBt,3,3,"th",9)(27,KBt,2,1,"td",10),Z(),X(28,14),F(29,XBt,3,3,"th",9)(30,ZBt,3,0,"td",10),Z(),F(31,eRt,1,0,"tr",15)(32,tRt,1,0,"tr",16),r()(),l(33,"div",17)(34,"button",18),b(35,"fa-icon",19),c(36),p(37,"translate"),r(),l(38,"button",20),c(39),p(40,"translate"),b(41,"fa-icon",21),r()()}if(n&2){let s=ve(6);a(3),h(m(4,9,"labels.inputs.Charge")),a(4),we(yr(9,11,i.chargeData,i.chargesDataSource,i.currencyCode.value)),a(4),g("disabled",!s.value),a(2),v(" ",m(14,15,"labels.buttons.Add")," "),a(2),g("dataSource",i.chargesDataSource)("hidden",i.chargesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(4),v(" ",m(37,17,"labels.buttons.Previous")," "),a(3),v(" ",m(40,19,"labels.buttons.Next")," ")}},dependencies:[ue,fe,Fe,Be,gt,ft,xe,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,ac],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function iRt(e,o){if(e&1&&(l(0,"mat-radio-button",3),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit,n=o.$index;g("value",n+1),a(),v(" ",m(2,2,"labels.accounting."+t)," ")}}function nRt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.recurringDepositProductAccountingForm.controls.feesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Fees Receivable")}}function oRt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.recurringDepositProductAccountingForm.controls.penaltiesReceivableAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Penalties Receivable")}}function aRt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w(2);g("inputFormControl",t.recurringDepositProductAccountingForm.controls.interestPayableAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Interest Payable")}}function rRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function lRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.paymentTypeId,n.paymentTypeData,"id","name")," ")}}function sRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function cRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.assetAccountData,"id","name")," ")}}function pRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function mRt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(4);return q(s.edit("PaymentFundSource",s.paymentChannelToFundSourceMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(4);return q(s.delete(s.paymentChannelToFundSourceMappings,i))}),b(4,"fa-icon",35),r()()}}function dRt(e,o){e&1&&b(0,"tr",36)}function uRt(e,o){e&1&&b(0,"tr",37)}function fRt(e,o){if(e&1&&(l(0,"table",21),X(1,23),F(2,rRt,3,3,"th",24)(3,lRt,3,6,"td",25),Z(),X(4,26),F(5,sRt,3,3,"th",24)(6,cRt,3,6,"td",25),Z(),X(7,27),F(8,pRt,3,3,"th",24)(9,mRt,5,0,"td",25),Z(),F(10,dRt,1,0,"tr",28)(11,uRt,1,0,"tr",29),r()),e&2){let t=w(3);g("dataSource",t.paymentChannelToFundSourceMappings.value),a(10),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function hRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function gRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.chargeData,"id","name")," ")}}function _Rt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function CRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function vRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function xRt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("FeesIncome",s.feeToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.feeToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function bRt(e,o){e&1&&b(0,"tr",36)}function yRt(e,o){e&1&&b(0,"tr",37)}function SRt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,hRt,3,3,"th",24)(3,gRt,3,6,"td",25),Z(),X(4,39),F(5,_Rt,3,3,"th",24)(6,CRt,3,6,"td",25),Z(),X(7,27),F(8,vRt,3,3,"th",24)(9,xRt,5,0,"td",25),Z(),F(10,bRt,1,0,"tr",28)(11,yRt,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.feeToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function wRt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),r(),l(4,"div",18)(5,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("FeesIncome",i.feeToIncomeAccountMappings))}),b(6,"fa-icon",20),c(7),p(8,"translate"),r()(),E(9,SRt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),h(m(3,3,"labels.heading.Map Fees to Specific Income Accounts")),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.feeToIncomeAccountMappings.value.length!==0?9:-1)}}function PRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function TRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.chargeId,n.penaltyData,"id","name")," ")}}function MRt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function DRt(e,o){if(e&1&&(l(0,"td",31),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incomeAccountId,n.incomeAccountData,"id","name")," ")}}function ERt(e,o){e&1&&(l(0,"th",30),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function IRt(e,o){if(e&1){let t=Y();l(0,"td",31)(1,"button",32),R("click",function(){let i=V(t).index,s=w(5);return q(s.edit("PenaltyIncome",s.penaltyToIncomeAccountMappings,i))}),b(2,"fa-icon",33),r(),l(3,"button",34),R("click",function(){let i=V(t).index,s=w(5);return q(s.delete(s.penaltyToIncomeAccountMappings,i))}),b(4,"fa-icon",35),r()()}}function ORt(e,o){e&1&&b(0,"tr",36)}function ARt(e,o){e&1&&b(0,"tr",37)}function FRt(e,o){if(e&1&&(l(0,"table",21),X(1,38),F(2,PRt,3,3,"th",24)(3,TRt,3,6,"td",25),Z(),X(4,39),F(5,MRt,3,3,"th",24)(6,DRt,3,6,"td",25),Z(),X(7,27),F(8,ERt,3,3,"th",24)(9,IRt,5,0,"td",25),Z(),F(10,ORt,1,0,"tr",28)(11,ARt,1,0,"tr",29),r()),e&2){let t=w(4);g("dataSource",t.penaltyToIncomeAccountMappings.value),a(10),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function kRt(e,o){if(e&1){let t=Y();l(0,"div",22)(1,"h4",17),c(2),p(3,"translate"),r(),l(4,"div",18)(5,"button",19),R("click",function(){V(t);let i=w(3);return q(i.add("PenaltyIncome",i.penaltyToIncomeAccountMappings))}),b(6,"fa-icon",20),c(7),p(8,"translate"),r()(),E(9,FRt,12,3,"table",21),r()}if(e&2){let t=w(3);a(2),v(" ",m(3,3,"labels.heading.Map Penalties to Specific Income Accounts")," "),a(5),v(" ",m(8,5,"labels.buttons.Add")," "),a(2),I(t.penaltyToIncomeAccountMappings.value.length!==0?9:-1)}}function BRt(e,o){if(e&1){let t=Y();l(0,"div",15)(1,"div",16)(2,"h4",17),c(3),p(4,"translate"),r(),l(5,"div",18)(6,"button",19),R("click",function(){V(t);let i=w(2);return q(i.add("PaymentFundSource",i.paymentChannelToFundSourceMappings))}),b(7,"fa-icon",20),c(8),p(9,"translate"),r()(),E(10,fRt,12,3,"table",21),r(),E(11,wRt,10,7,"div",22),E(12,kRt,10,7,"div",22),r()}if(e&2){let t=w(2);a(3),v(" ",m(4,5,"labels.heading.Configure Fund Sources for Payment Channels")," "),a(5),v(" ",m(9,7,"labels.buttons.Add")," "),a(2),I(t.paymentChannelToFundSourceMappings.value.length!==0?10:-1),a(),I(t.existCharges()?11:-1),a(),I(t.existCharges()?12:-1)}}function RRt(e,o){if(e&1&&(l(0,"div",5)(1,"h4",11),c(2),p(3,"translate"),r(),b(4,"mifosx-gl-account-selector",12),E(5,nRt,1,4,"mifosx-gl-account-selector",12),E(6,oRt,1,4,"mifosx-gl-account-selector",12),b(7,"mat-divider",4),l(8,"h4",11),c(9),p(10,"translate"),r(),b(11,"mifosx-gl-account-selector",12)(12,"mifosx-gl-account-selector",12),E(13,aRt,1,4,"mifosx-gl-account-selector",12),b(14,"mat-divider",4),l(15,"h4",11),c(16),p(17,"translate"),r(),b(18,"mifosx-gl-account-selector",12)(19,"mat-divider",4),l(20,"h4",11),c(21),p(22,"translate"),r(),b(23,"mifosx-gl-account-selector",12)(24,"mifosx-gl-account-selector",12)(25,"mat-divider",4),l(26,"h3",13),c(27),p(28,"translate"),r(),b(29,"mat-checkbox",14),E(30,BRt,13,9,"div",15),r()),e&2){let t=w();a(2),h(m(3,33,"labels.heading.Assets")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.savingsReferenceAccountId)("glAccountList",t.assetAccountData)("required",!0)("inputLabel","Saving reference"),a(),I(t.isAccrualAccounting()?5:-1),a(),I(t.isAccrualAccounting()?6:-1),a(3),h(m(10,35,"labels.heading.Liabilities")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.savingsControlAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Saving control"),a(),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.transfersInSuspenseAccountId)("glAccountList",t.liabilityAccountData)("required",!0)("inputLabel","Savings transfers in suspense"),a(),I(t.isAccrualAccounting()?13:-1),a(3),h(m(17,37,"labels.heading.Expenses")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.interestOnSavingsAccountId)("glAccountList",t.expenseAccountData)("required",!0)("inputLabel","Interest on savings"),a(3),h(m(22,39,"labels.heading.Income")),a(2),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.incomeFromFeeAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from fees"),a(),g("inputFormControl",t.recurringDepositProductAccountingForm.controls.incomeFromPenaltyAccountId)("glAccountList",t.incomeAccountData)("required",!0)("inputLabel","Income from penalties"),a(3),h(m(28,41,"labels.heading.Advanced Accounting Rules")),a(3),I(t.recurringDepositProductAccountingForm.value.advancedAccountingRules?30:-1)}}var Um=(()=>{class e{constructor(){this.formBuilder=T(nt),this.dialog=T(Ht),this.accounting=T(To),this.translateService=T(yi),this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId","actions"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId","actions"],this.createrecurringDepositProductAccountingForm(),this.setConditionalControls()}ngOnInit(){this.chargeData=this.recurringDepositProductsTemplate.chargeOptions||[],this.penaltyData=this.recurringDepositProductsTemplate.penaltyOptions||[],this.paymentTypeData=this.recurringDepositProductsTemplate.paymentTypeOptions||[],this.assetAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],this.incomeAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],this.expenseAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],this.liabilityAccountData=this.recurringDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[],this.recurringDepositProductsTemplate!==void 0&&this.recurringDepositProductsTemplate.id&&this.assignAccountingStepData()}assignAccountingStepData(){this.recurringDepositProductAccountingForm.patchValue({accountingRule:this.recurringDepositProductsTemplate.accountingRule.id}),this.isCashOrAccrualAccounting()&&(this.recurringDepositProductAccountingForm.patchValue({savingsReferenceAccountId:this.recurringDepositProductsTemplate.accountingMappings.savingsReferenceAccount.id,savingsControlAccountId:this.recurringDepositProductsTemplate.accountingMappings.savingsControlAccount.id,transfersInSuspenseAccountId:this.recurringDepositProductsTemplate.accountingMappings.transfersInSuspenseAccount.id,incomeFromFeeAccountId:this.recurringDepositProductsTemplate.accountingMappings.incomeFromFeeAccount.id,incomeFromPenaltyAccountId:this.recurringDepositProductsTemplate.accountingMappings.incomeFromPenaltyAccount.id,interestOnSavingsAccountId:this.recurringDepositProductsTemplate.accountingMappings.interestOnSavingsAccount.id}),this.isAccrualAccounting()&&this.recurringDepositProductAccountingForm.patchValue({feesReceivableAccountId:this.recurringDepositProductsTemplate.accountingMappings.feeReceivableAccount.id,penaltiesReceivableAccountId:this.recurringDepositProductsTemplate.accountingMappings.penaltyReceivableAccount.id,interestPayableAccountId:this.recurringDepositProductsTemplate.accountingMappings.interestPayableAccount.id}),(this.recurringDepositProductsTemplate.paymentChannelToFundSourceMappings||this.recurringDepositProductsTemplate.feeToIncomeAccountMappings||this.recurringDepositProductsTemplate.penaltyToIncomeAccountMappings)&&this.recurringDepositProductAccountingForm.patchValue({advancedAccountingRules:!0}),this.recurringDepositProductsTemplate.paymentChannelToFundSourceMappings&&this.recurringDepositProductsTemplate.paymentChannelToFundSourceMappings.forEach(t=>{let n=this.formBuilder.group({paymentTypeId:[t.paymentType.id,ce.required],fundSourceAccountId:[t.fundSourceAccount.id,ce.required]});this.recurringDepositProductAccountingForm.controls.paymentChannelToFundSourceMappings.push(n)}),this.recurringDepositProductsTemplate.feeToIncomeAccountMappings&&this.recurringDepositProductsTemplate.feeToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.recurringDepositProductAccountingForm.controls.feeToIncomeAccountMappings.push(n)}),this.recurringDepositProductsTemplate.penaltyToIncomeAccountMappings&&this.recurringDepositProductsTemplate.penaltyToIncomeAccountMappings.forEach(t=>{let n=this.formBuilder.group({chargeId:[t.charge.id,ce.required],incomeAccountId:[t.incomeAccount.id,ce.required]});this.recurringDepositProductAccountingForm.controls.penaltyToIncomeAccountMappings.push(n)}))}createrecurringDepositProductAccountingForm(){this.recurringDepositProductAccountingForm=this.formBuilder.group({accountingRule:[1]})}existCharges(){return this.chargeData.length>0}setConditionalControls(){this.recurringDepositProductAccountingForm.get("accountingRule").valueChanges.subscribe(t=>{t===2||t===3?(this.recurringDepositProductAccountingForm.addControl("savingsReferenceAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("savingsControlAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("transfersInSuspenseAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("interestOnSavingsAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("incomeFromFeeAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("incomeFromPenaltyAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("advancedAccountingRules",new it(!1)),t===3&&(this.recurringDepositProductAccountingForm.addControl("feesReceivableAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("penaltiesReceivableAccountId",new it("",ce.required)),this.recurringDepositProductAccountingForm.addControl("interestPayableAccountId",new it("",ce.required))),this.recurringDepositProductAccountingForm.get("advancedAccountingRules").valueChanges.subscribe(n=>{n?(this.recurringDepositProductAccountingForm.addControl("paymentChannelToFundSourceMappings",this.formBuilder.array([])),this.recurringDepositProductAccountingForm.addControl("feeToIncomeAccountMappings",this.formBuilder.array([])),this.recurringDepositProductAccountingForm.addControl("penaltyToIncomeAccountMappings",this.formBuilder.array([]))):(this.recurringDepositProductAccountingForm.removeControl("paymentChannelToFundSourceMappings"),this.recurringDepositProductAccountingForm.removeControl("feeToIncomeAccountMappings"),this.recurringDepositProductAccountingForm.removeControl("penaltyToIncomeAccountMappings"))})):(this.recurringDepositProductAccountingForm.removeControl("savingsReferenceAccountId"),this.recurringDepositProductAccountingForm.removeControl("overdraftPortfolioControlId"),this.recurringDepositProductAccountingForm.removeControl("savingsControlAccountId"),this.recurringDepositProductAccountingForm.removeControl("transfersInSuspenseAccountId"),this.recurringDepositProductAccountingForm.removeControl("interestOnSavingsAccountId"),this.recurringDepositProductAccountingForm.removeControl("writeOffAccountId"),this.recurringDepositProductAccountingForm.removeControl("incomeFromFeeAccountId"),this.recurringDepositProductAccountingForm.removeControl("incomeFromPenaltyAccountId"),this.recurringDepositProductAccountingForm.removeControl("incomeFromInterestId"),this.recurringDepositProductAccountingForm.removeControl("advancedAccountingRules"),this.recurringDepositProductAccountingForm.removeControl("escheatLiabilityId"),this.recurringDepositProductAccountingForm.removeControl("feesReceivableAccountId"),this.recurringDepositProductAccountingForm.removeControl("penaltiesReceivableAccountId"),this.recurringDepositProductAccountingForm.removeControl("interestPayableAccountId"))})}get paymentChannelToFundSourceMappings(){return this.recurringDepositProductAccountingForm.get("paymentChannelToFundSourceMappings")}get feeToIncomeAccountMappings(){return this.recurringDepositProductAccountingForm.get("feeToIncomeAccountMappings")}get penaltyToIncomeAccountMappings(){return this.recurringDepositProductAccountingForm.get("penaltyToIncomeAccountMappings")}add(t,n){let i=qt(at({},this.getData(t)),{pristine:!1});this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&n.push(d.data)})}edit(t,n,i){let s=qt(at({},this.getData(t,n.at(i).value)),{layout:{addButtonText:"Edit"}});this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&n.at(i).patchValue(u.data.value)})}delete(t,n){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(s=>{s.delete&&t.removeAt(n)})}getData(t,n){switch(t){case"PaymentFundSource":return{title:this.translateService.instant("labels.heading.Configure Fund Sources for Payment Channels"),formfields:this.getPaymentFundSourceFormfields(n)};case"FeesIncome":return{title:this.translateService.instant("labels.heading.Map Fees to Specific Income Accounts"),formfields:this.getFeesIncomeFormfields(n)};case"PenaltyIncome":return{title:this.translateService.instant("labels.heading.Map Penalties to Specific Income Accounts"),formfields:this.getPenaltyIncomeFormfields(n)}}}getPaymentFundSourceFormfields(t){return[new $i({controlName:"paymentTypeId",label:this.translateService.instant("labels.inputs.Payment Type"),value:t?t.paymentTypeId:this.paymentTypeData[0].id,options:{label:"name",value:"id",data:this.paymentTypeData},required:!0,order:1}),new $i({controlName:"fundSourceAccountId",label:this.translateService.instant("labels.inputs.Fund Source"),value:t?t.fundSourceAccountId:this.assetAccountData[0].id,options:{label:"name",value:"id",data:this.assetAccountData},required:!0,order:2})]}getFeesIncomeFormfields(t){return[new $i({controlName:"chargeId",label:this.translateService.instant("labels.inputs.Fees"),value:t?t.chargeId:this.chargeData[0].id,options:{label:"name",value:"id",data:this.chargeData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:this.translateService.instant("labels.inputs.Income Account"),value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}getPenaltyIncomeFormfields(t){return[new $i({controlName:"chargeId",label:"Penalty",value:t?t.chargeId:this.penaltyData[0].id,options:{label:"name",value:"id",data:this.penaltyData},required:!0,order:1}),new $i({controlName:"incomeAccountId",label:"Income Account",value:t?t.incomeAccountId:this.incomeAccountData[0].id,options:{label:"name",value:"id",data:this.incomeAccountData},required:!0,order:2})]}get recurringDepositProductAccounting(){return this.recurringDepositProductAccountingForm.value}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.recurringDepositProductAccountingForm.value.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.recurringDepositProductAccountingForm.value.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-accounting-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate",accountingRuleData:"accountingRuleData",recurringDepositProductFormValid:"recurringDepositProductFormValid"},decls:16,vars:9,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["formControlName","accountingRule",1,"flex-98","layout-row","gap-5percent","layout-column.lt-md","radio-group-spacing"],[3,"value"],[1,"flex-98"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"mat-h4","flex-98"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],[1,"mat-h3","flex-23"],["formControlName","advancedAccountingRules",1,"flex-73"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"flex-100","layout-row-wrap","gap-2percent","layout-lt-md-column"],[1,"mat-h4","flex-63"],[1,"flex-33"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-100"],["matColumnDef","paymentTypeId"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fundSourceAccountId"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","edit"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"form",0)(1,"div",1)(2,"mat-radio-group",2),Se(3,iRt,3,4,"mat-radio-button",3,Pe),r(),b(5,"mat-divider",4),E(6,RRt,31,43,"div",5),r(),l(7,"div",6)(8,"button",7),b(9,"fa-icon",8),c(10),p(11,"translate"),r(),l(12,"button",9),c(13),p(14,"translate"),b(15,"fa-icon",10),r()()()),n&2&&(g("formGroup",i.recurringDepositProductAccountingForm),a(3),we(i.accountingRuleData),a(3),I(i.isCashOrAccrualAccounting()?6:-1),a(4),v(" ",m(11,5,"labels.buttons.Previous")," "),a(2),g("disabled",!i.recurringDepositProductFormValid),a(),v(" ",m(14,7,"labels.buttons.Next")," "))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,xe,fi,tr,ir,Ri,ta,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,qi,Ji,he,Qn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{font-weight:500}mat-radio-group[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:1em 0}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var NRt=()=>["../"];function LRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.recurringDepositProduct.description)}}function VRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.recurringDepositProduct.lockinPeriodFrequency+" "+$t(6,4,t.recurringDepositProduct.lockinPeriodFrequencyType,t.recurringDepositProductsTemplate.lockinPeriodFrequencyTypeOptions,"id","value"))}}function qRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.And thereafter, in Multiples of"),":"),a(3),h(t.recurringDepositProduct.inMultiplesOfDepositTerm+" "+$t(6,4,t.recurringDepositProduct.inMultiplesOfDepositTermTypeId,t.recurringDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function zRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Deposit Term"),":"),a(3),h(t.recurringDepositProduct.maxDepositTerm+" "+$t(6,4,t.recurringDepositProduct.maxDepositTermTypeId,t.recurringDepositProductsTemplate.periodFrequencyTypeOptions,"id","value"))}}function HRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Penal Interest")," (%):"),a(3),h(t.recurringDepositProduct.preClosurePenalInterest+"% ("+$t(6,4,t.recurringDepositProduct.preClosurePenalInterestOnTypeId,t.recurringDepositProductsTemplate.preClosurePenalInterestOnTypeOptions,"id","value")+")")}}function GRt(e,o){e&1&&(l(0,"span",6),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function jRt(e,o){e&1&&(l(0,"span",6),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Voluntary")," "))}function $Rt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),E(4,GRt,3,3,"span",6),E(5,jRt,3,3,"span",6),r()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Recurring Deposit Type"),":"),a(2),I(t.recurringDepositProduct.isMandatoryDeposit?4:-1),a(),I(t.recurringDepositProduct.isMandatoryDeposit?-1:5)}}function URt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"find"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h($t(6,4,t.recurringDepositProduct.taxGroupId,t.recurringDepositProductsTemplate.taxGroupOptions,"id","name"))}}function WRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.name)}}function QRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),p(6,"dateFormat"),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.endDate))}}function YRt(e,o){if(e&1&&(l(0,"div",4)(1,"span",5),c(2),p(3,"translate"),r(),l(4,"span",6),c(5),r()()),e&2){let t=w().$implicit;a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.description)}}function JRt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function KRt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(4);a(),v(" ",t.fromPeriod+" - "+t.toPeriod+" "+$t(2,1,t.periodType,n.recurringDepositProductsTemplate.chartTemplate.periodTypes,"id","value")," ")}}function XRt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function ZRt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amountRangeFrom+" - "+t.amountRangeTo," ")}}function e9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function t9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v("",m(2,1,t.annualInterestRate)," %")}}function i9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function n9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function o9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function a9t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",30),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function r9t(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",31),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function l9t(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).dataIndex,s=w(2).$index,d=w(2);return q(d.expandChartSlabIndex[s]=d.expandChartSlabIndex[s]===i?null:i)}),E(2,a9t,4,3,"span"),E(3,r9t,4,3,"span"),r()()}if(e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);a(),g("disabled",t.incentives.length===0),a(),I(s.expandChartSlabIndex[i]!==n?2:-1),a(),I(s.expandChartSlabIndex[i]===n?3:-1)}}function s9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function c9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.entityType,n.recurringDepositProductsTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function p9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function m9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.attributeName,n.recurringDepositProductsTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function d9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function u9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.conditionType,n.recurringDepositProductsTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function f9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function h9t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductsTemplate.chartTemplate.genderOptions,"id","name"))}}function g9t(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function _9t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductsTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function C9t(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(5);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductsTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function v9t(e,o){if(e&1&&(l(0,"td",28),E(1,h9t,3,6,"span")(2,g9t,2,1,"span")(3,_9t,3,6,"span")(4,C9t,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function x9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function b9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(5);a(),v(" ",$t(2,1,t.incentiveType,n.recurringDepositProductsTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function y9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function S9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function w9t(e,o){e&1&&b(0,"tr",42)}function P9t(e,o){e&1&&b(0,"tr",43)}function T9t(e,o){if(e&1&&(l(0,"td",28)(1,"div",32)(2,"mat-card",33)(3,"h4",34),c(4),p(5,"translate"),r(),l(6,"table",35),X(7,36),F(8,s9t,3,3,"th",17)(9,c9t,3,6,"td",18),Z(),X(10,37),F(11,p9t,3,3,"th",17)(12,m9t,3,6,"td",18),Z(),X(13,38),F(14,d9t,3,3,"th",17)(15,u9t,3,6,"td",18),Z(),X(16,39),F(17,f9t,3,3,"th",17)(18,v9t,5,1,"td",18),Z(),X(19,40),F(20,x9t,3,3,"th",17)(21,b9t,3,6,"td",18),Z(),X(22,41),F(23,y9t,3,3,"th",17)(24,S9t,3,3,"td",18),Z(),F(25,w9t,1,0,"tr",24)(26,P9t,1,0,"tr",25),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2).$index,s=w(2);Dn("colspan",s.chartSlabsDisplayedColumns[i].length),a(),g("@expandChartSlab",n===s.expandChartSlabIndex[i]?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",s.incentivesDisplayedColumns),a(),g("matRowDefColumns",s.incentivesDisplayedColumns)}}function M9t(e,o){e&1&&b(0,"tr",42)}function D9t(e,o){e&1&&b(0,"tr",43)}function E9t(e,o){e&1&&b(0,"tr",44)}function I9t(e,o){if(e&1&&(l(0,"table",15),X(1,16),F(2,JRt,3,3,"th",17)(3,KRt,3,6,"td",18),Z(),X(4,19),F(5,XRt,3,3,"th",17)(6,ZRt,2,1,"td",18),Z(),X(7,20),F(8,e9t,3,3,"th",17)(9,t9t,3,3,"td",18),Z(),X(10,21),F(11,i9t,3,3,"th",17)(12,n9t,2,1,"td",18),Z(),X(13,22),F(14,o9t,3,3,"th",17)(15,l9t,4,3,"td",18),Z(),X(16,23),F(17,T9t,27,8,"td",18),Z(),F(18,M9t,1,0,"tr",24)(19,D9t,1,0,"tr",25)(20,E9t,1,0,"tr",26),r()),e&2){let t=w(),n=t.$implicit,i=t.$index,s=w(2);g("dataSource",n.chartSlabs),a(18),g("matHeaderRowDef",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsDisplayedColumns[i]),a(),g("matRowDefColumns",s.chartSlabsIncentivesDisplayedColumns)}}function O9t(e,o){if(e&1&&(l(0,"div",14),E(1,WRt,6,4,"div",4),l(2,"div",4)(3,"span",5),c(4),p(5,"translate"),r(),l(6,"span",6),c(7),p(8,"dateFormat"),r()(),E(9,QRt,7,6,"div",4),E(10,YRt,6,4,"div",4),l(11,"div",4)(12,"span",5),c(13),p(14,"translate"),r(),l(15,"span",6),c(16),p(17,"yesNo"),r()(),E(18,I9t,21,4,"table",15),b(19,"mat-divider",2),r()),e&2){let t=o.$implicit,n=w(2);a(),I(t.name?1:-1),a(3),v("",m(5,8,"labels.inputs.From Date"),":"),a(3),h(m(8,10,t.fromDate)),a(2),I(t.endDate?9:-1),a(),I(t.description?10:-1),a(3),v("",m(14,12,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(17,14,n.recurringDepositProduct.isPrimaryGroupingByAmount)),a(2),I(t.chartSlabs.length!==0?18:-1)}}function A9t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),Se(5,O9t,20,16,"div",14,Pe),r()),e&2){let t=w();a(2),h(m(3,1,"labels.heading.Interest Rate Charts")),a(3),we(t.recurringDepositProduct.charts)}}function F9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function k9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function B9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function R9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function N9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function L9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function V9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function q9t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function z9t(e,o){e&1&&b(0,"tr",42)}function H9t(e,o){e&1&&b(0,"tr",43)}function G9t(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),l(5,"table",35),X(6,45),F(7,F9t,3,3,"th",17)(8,k9t,2,1,"td",18),Z(),X(9,46),F(10,B9t,3,3,"th",17)(11,R9t,2,1,"td",18),Z(),X(12,41),F(13,N9t,3,3,"th",17)(14,L9t,2,1,"td",18),Z(),X(15,47),F(16,V9t,3,3,"th",17)(17,q9t,2,1,"td",18),Z(),F(18,z9t,1,0,"tr",24)(19,H9t,1,0,"tr",25),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Charges")),a(3),g("dataSource",t.recurringDepositProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function j9t(e,o){if(e&1&&b(0,"mifosx-view-savings-accounting-details",8),e&2){let t=w();g("accountingRule",t.accountingRule)("accountingMappings",t.accountingMappings)}}function $9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function U9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.paymentTypeId,n.recurringDepositProductsTemplate.paymentTypeOptions,"id","name")," ")}}function W9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function Q9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.fundSourceAccountId,n.recurringDepositProductsTemplate.accountingMappingOptions.assetAccountOptions,"id","name")," ")}}function Y9t(e,o){e&1&&b(0,"tr",42)}function J9t(e,o){e&1&&b(0,"tr",43)}function K9t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,51),F(6,$9t,3,3,"th",17)(7,U9t,3,6,"td",18),Z(),X(8,52),F(9,W9t,3,3,"th",17)(10,Q9t,3,6,"td",18),Z(),F(11,Y9t,1,0,"tr",24)(12,J9t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fund Sources for Payment Channels")),a(2),g("dataSource",t.recurringDepositProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function X9t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function Z9t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.recurringDepositProductsTemplate.chargeOptions,"id","name")," ")}}function eNt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function tNt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function iNt(e,o){e&1&&b(0,"tr",42)}function nNt(e,o){e&1&&b(0,"tr",43)}function oNt(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,X9t,3,3,"th",17)(7,Z9t,3,6,"td",18),Z(),X(8,54),F(9,eNt,3,3,"th",17)(10,tNt,3,6,"td",18),Z(),F(11,iNt,1,0,"tr",24)(12,nNt,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Fees to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function aNt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function rNt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.chargeId,n.recurringDepositProductsTemplate.penaltyOptions,"id","name")," ")}}function lNt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function sNt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incomeAccountId,n.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions,"id","name")," ")}}function cNt(e,o){e&1&&b(0,"tr",42)}function pNt(e,o){e&1&&b(0,"tr",43)}function mNt(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,aNt,3,3,"th",17)(7,rNt,3,6,"td",18),Z(),X(8,54),F(9,lNt,3,3,"th",17)(10,sNt,3,6,"td",18),Z(),F(11,cNt,1,0,"tr",24)(12,pNt,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.heading.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function dNt(e,o){if(e&1&&(l(0,"div",7)(1,"h3",3),c(2),p(3,"translate"),r(),b(4,"mat-divider",2),E(5,K9t,13,6,"div",48),E(6,oNt,13,6,"div",48),E(7,mNt,13,6,"div",48),r()),e&2){let t=w();a(2),h(m(3,4,"labels.heading.Advanced Accounting Rules")),a(3),I(t.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&t.recurringDepositProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.recurringDepositProduct.feeToIncomeAccountMappings!=null&&t.recurringDepositProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&t.recurringDepositProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var Ru=(()=>{class e{constructor(){this.accounting=T(To),this.submitEvent=new bi,this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.expandChartSlabIndex=[],this.accountingMappings={}}ngOnInit(){this.setCurrentValues()}ngOnChanges(t){this.setCurrentValues()}setCurrentValues(){if(this.isCashOrAccrualAccounting()){this.accountingRule=this.accounting.getAccountingRuleFrom(this.recurringDepositProduct.accountingRule);let t=this.recurringDepositProductsTemplate.accountingMappingOptions.assetAccountOptions||[],n=this.recurringDepositProductsTemplate.accountingMappingOptions.incomeAccountOptions||[],i=this.recurringDepositProductsTemplate.accountingMappingOptions.expenseAccountOptions||[],s=this.recurringDepositProductsTemplate.accountingMappingOptions.liabilityAccountOptions||[];this.accountingMappings={savingsReferenceAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.savingsReferenceAccountId,t),savingsControlAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.savingsControlAccountId,s),transfersInSuspenseAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.transfersInSuspenseAccountId,s),interestOnSavingsAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.interestOnSavingsAccountId,i),incomeFromFeeAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.incomeFromFeeAccountId,n),incomeFromPenaltyAccount:this.accounting.glAccountLookUp(this.recurringDepositProduct.incomeFromPenaltyAccountId,n)},this.isAccrualAccounting()&&(this.accountingMappings.feeReceivableAccount=this.accounting.glAccountLookUp(this.recurringDepositProduct.feesReceivableAccountId,t),this.accountingMappings.penaltyReceivableAccount=this.accounting.glAccountLookUp(this.recurringDepositProduct.penaltiesReceivableAccountId,t),this.accountingMappings.interestPayableAccount=this.accounting.glAccountLookUp(this.recurringDepositProduct.interestPayableAccountId,s))}}isNoneAccounting(){return this.accounting.isNoneAccountingRuleId(this.recurringDepositProduct.accountingRule)}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccountingRuleId(this.recurringDepositProduct.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccountingRuleId(this.recurringDepositProduct.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-product-preview-step"]],inputs:{recurringDepositProductsTemplate:"recurringDepositProductsTemplate",chartSlabsDisplayedColumns:"chartSlabsDisplayedColumns",accountingRuleData:"accountingRuleData",recurringDepositProduct:"recurringDepositProduct"},outputs:{submitEvent:"submitEvent"},features:[Uo],decls:126,vars:120,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-100"],[1,"flex-100"],[1,"mat-h3","flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[3,"accountingRule","accountingMappings"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[1,"flex-100","layout-row-wrap","layout-xs-column"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click","disabled"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","chargeTimeType"],[1,"flex-100","layout-row-wrap","responsive-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"h2",1),c(2),r(),b(3,"mat-divider",2),l(4,"h3",3),c(5),p(6,"translate"),r(),b(7,"mat-divider",2),l(8,"div",4)(9,"span",5),c(10),p(11,"translate"),r(),l(12,"span",6),c(13),r()(),E(14,LRt,6,4,"div",4),l(15,"h3",3),c(16),p(17,"translate"),r(),b(18,"mat-divider",2),l(19,"div",4)(20,"span",5),c(21),p(22,"translate"),r(),l(23,"span",6),c(24),p(25,"find"),r()(),l(26,"div",4)(27,"span",5),c(28),p(29,"translate"),r(),l(30,"span",6),c(31),r()(),l(32,"div",4)(33,"span",5),c(34),p(35,"translate"),r(),l(36,"span",6),c(37),r()(),l(38,"h3",3),c(39),p(40,"translate"),r(),b(41,"mat-divider",2),l(42,"div",4)(43,"span",5),c(44),p(45,"translate"),r(),l(46,"span",6),c(47),r()(),l(48,"div",4)(49,"span",5),c(50),p(51,"translate"),r(),l(52,"span",6),c(53),p(54,"find"),r()(),l(55,"div",2)(56,"span",5),c(57),p(58,"translate"),r(),l(59,"span",6),c(60),p(61,"find"),r()(),l(62,"div",4)(63,"span",5),c(64),p(65,"translate"),r(),l(66,"span",6),c(67),p(68,"find"),r()(),l(69,"div",4)(70,"span",5),c(71),p(72,"translate"),r(),l(73,"span",6),c(74),p(75,"find"),r()(),l(76,"h3",3),c(77),p(78,"translate"),r(),b(79,"mat-divider",2),E(80,VRt,7,9,"div",4),l(81,"div",4)(82,"span",5),c(83),p(84,"translate"),r(),l(85,"span",6),c(86),p(87,"find"),r()(),E(88,qRt,7,9,"div",4),E(89,zRt,7,9,"div",4),l(90,"div",4)(91,"span",5),c(92),p(93,"translate"),r(),l(94,"span",6),c(95),p(96,"yesNo"),r()(),E(97,HRt,7,9,"div",4),E(98,$Rt,6,5,"div",4),l(99,"div",4)(100,"span",5),c(101),p(102,"translate"),r(),l(103,"span",6),c(104),p(105,"yesNo"),r()(),E(106,URt,7,9,"div",4),E(107,A9t,7,3,"div",7),E(108,G9t,20,6,"div",7),l(109,"h3",3),c(110),p(111,"translate"),r(),b(112,"mat-divider",2),E(113,j9t,1,2,"mifosx-view-savings-accounting-details",8),E(114,dNt,8,6,"div",7),r(),l(115,"div",9)(116,"button",10),b(117,"fa-icon",11),c(118),p(119,"translate"),r(),l(120,"button",12),c(121),p(122,"translate"),r(),l(123,"button",13),R("click",function(){return i.submitEvent.emit()}),c(124),p(125,"translate"),r()()),n&2&&(a(2),h(i.recurringDepositProduct.name),a(3),h(m(6,45,"labels.inputs.Details")),a(5),v("",m(11,47,"labels.inputs.Short Name"),":"),a(3),h(i.recurringDepositProduct.shortName),a(),I(i.recurringDepositProduct.description?14:-1),a(2),h(m(17,49,"labels.inputs.Currency")),a(5),v("",m(22,51,"labels.inputs.Currency"),":"),a(3),h($t(25,53,i.recurringDepositProduct.currencyCode,i.recurringDepositProductsTemplate.currencyOptions,"code","name")),a(4),v("",m(29,58,"labels.inputs.Decimal Places"),":"),a(3),h(i.recurringDepositProduct.digitsAfterDecimal),a(3),v("",m(35,60,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.recurringDepositProduct.inMultiplesOf),a(2),h(m(40,62,"labels.heading.Terms")),a(5),v("",m(45,64,"labels.inputs.Deposit Amount"),":"),a(3),h(i.recurringDepositProduct.depositAmount+" (Min: "+(i.recurringDepositProduct.minDepositAmount?i.recurringDepositProduct.minDepositAmount:i.recurringDepositProduct.depositAmount)+", Max: "+(i.recurringDepositProduct.maxDepositAmount?i.recurringDepositProduct.maxDepositAmount:i.recurringDepositProduct.depositAmount)+")"),a(3),v("",m(51,66,"labels.inputs.Interest Compounding Period"),":"),a(3),h($t(54,68,i.recurringDepositProduct.interestCompoundingPeriodType,i.recurringDepositProductsTemplate.interestCompoundingPeriodTypeOptions,"id","value")),a(4),v("",m(58,73,"labels.inputs.Interest Posting Period"),":"),a(3),h($t(61,75,i.recurringDepositProduct.interestPostingPeriodType,i.recurringDepositProductsTemplate.interestPostingPeriodTypeOptions,"id","value")),a(4),v("",m(65,80,"labels.inputs.Interest Calculated using"),":"),a(3),h($t(68,82,i.recurringDepositProduct.interestCalculationType,i.recurringDepositProductsTemplate.interestCalculationTypeOptions,"id","value")),a(4),v("",m(72,87,"labels.inputs.Days in Year"),":"),a(3),h($t(75,89,i.recurringDepositProduct.interestCalculationDaysInYearType,i.recurringDepositProductsTemplate.interestCalculationDaysInYearTypeOptions,"id","value")),a(3),h(m(78,94,"labels.heading.Settings")),a(3),I(i.recurringDepositProduct.lockinPeriodFrequency?80:-1),a(3),v("",m(84,96,"labels.inputs.Minimum Deposit Term"),":"),a(3),h(i.recurringDepositProduct.minDepositTerm+" "+$t(87,98,i.recurringDepositProduct.minDepositTermTypeId,i.recurringDepositProductsTemplate.periodFrequencyTypeOptions,"id","value")),a(2),I(i.recurringDepositProduct.inMultiplesOfDepositTerm?88:-1),a(),I(i.recurringDepositProduct.maxDepositTerm?89:-1),a(3),v("",m(93,103,"labels.inputs.Apply Penal Interest (less)"),":"),a(3),h(m(96,105,i.recurringDepositProduct.preClosurePenalApplicable)),a(2),I(i.recurringDepositProduct.preClosurePenalApplicable?97:-1),a(),I(i.recurringDepositProduct.isMandatoryDeposit!==void 0?98:-1),a(3),v("",m(102,107,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(105,109,i.recurringDepositProduct.withHoldTax)),a(2),I(i.recurringDepositProduct.withHoldTax?106:-1),a(),I(i.recurringDepositProduct.charts.length!==0?107:-1),a(),I(i.recurringDepositProduct.charges.length?108:-1),a(2),h(m(111,111,"labels.heading.Accounting")),a(3),I(i.isNoneAccounting()?-1:113),a(),I(i.recurringDepositProduct.advancedAccountingRules&&(i.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&i.recurringDepositProduct.paymentChannelToFundSourceMappings.length||i.recurringDepositProduct.feeToIncomeAccountMappings!=null&&i.recurringDepositProduct.feeToIncomeAccountMappings.length||i.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&i.recurringDepositProduct.penaltyToIncomeAccountMappings.length)?114:-1),a(4),v(" ",m(119,113,"labels.buttons.Previous")," "),a(2),g("routerLink",oe(119,NRt)),a(),v(" ",m(122,115,"labels.buttons.Cancel")," "),a(3),v(" ",m(125,117,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,Ue,xe,Ri,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,rs,qi,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();function uNt(e,o){e&1&&b(0,"fa-icon",14)}function fNt(e,o){e&1&&b(0,"fa-icon",14)}function hNt(e,o){e&1&&b(0,"fa-icon",15)}function gNt(e,o){e&1&&b(0,"fa-icon",16)}function _Nt(e,o){e&1&&b(0,"fa-icon",17)}function CNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function vNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function xNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function bNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function yNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function SNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function wNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function PNt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function TNt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,PNt,2,3,"ng-template",9),l(2,"mifosx-recurring-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("recurringDepositProductsTemplate",t.recurringDepositProductsTemplate)("chartSlabsDisplayedColumns",t.recurringDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("recurringDepositProduct",t.recurringDepositProduct)}}var A3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.recurringDepositProductsTemplate=t.recurringDepositProductsTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get recurringDepositProductDetailsForm(){return this.recurringDepositProductDetailsStep.recurringDepositProductDetailsForm}get recurringDepositProductCurrencyForm(){return this.recurringDepositProductCurrencyStep.recurringDepositProductCurrencyForm}get recurringDepositProductTermsForm(){return this.recurringDepositProductTermsStep.recurringDepositProductTermsForm}get recurringDepositProductSettingsForm(){return this.recurringDepositProductSettingsStep.recurringDepositProductSettingsForm}get recurringDepositProductInterestRateChartForm(){return this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChartForm}get recurringDepositProductAccountingForm(){return this.recurringDepositProductAccountingStep.recurringDepositProductAccountingForm}get recurringDepositProductFormValid(){return this.recurringDepositProductDetailsForm.valid&&this.recurringDepositProductCurrencyForm.valid&&this.recurringDepositProductTermsForm.valid&&this.recurringDepositProductSettingsForm.valid&&this.recurringDepositProductInterestRateChartForm.valid&&this.recurringDepositProductAccountingForm.valid}get recurringDepositProduct(){return at(at(at(at(at(at(at({},this.recurringDepositProductDetailsStep.recurringDepositProductDetails),this.recurringDepositProductCurrencyStep.recurringDepositProductCurrency),this.recurringDepositProductTermsStep.recurringDepositProductTerms),this.recurringDepositProductSettingsStep.recurringDepositProductSettings),this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChart),this.recurringDepositProductChargesStep.recurringDepositProductCharges),this.recurringDepositProductAccountingStep.recurringDepositProductAccounting)}submit(){let t=qt(at({},this.recurringDepositProduct),{charges:this.recurringDepositProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});t.description||(t.description=""),delete t.advancedAccountingRules,this.productsService.createRecurringDepositProduct(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-recurring-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(qm,7),Ee(zm,7),Ee(Hm,7),Ee(Gm,7),Ee(jm,7),Ee($m,7),Ee(Um,7)),n&2){let s;Te(s=Me())&&(i.recurringDepositProductDetailsStep=s.first),Te(s=Me())&&(i.recurringDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.recurringDepositProductTermsStep=s.first),Te(s=Me())&&(i.recurringDepositProductSettingsStep=s.first),Te(s=Me())&&(i.recurringDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.recurringDepositProductChargesStep=s.first),Te(s=Me())&&(i.recurringDepositProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["recurringDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositProductsTemplate"],[3,"recurringDepositProductsTemplate","currencyCode"],[3,"recurringDepositProductsTemplate","accountingRuleData","recurringDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","recurringDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,uNt,1,0,"ng-template",3)(4,fNt,1,0,"ng-template",4)(5,hNt,1,0,"ng-template",5)(6,gNt,1,0,"ng-template",6)(7,_Nt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,CNt,2,3,"ng-template",9),b(10,"mifosx-recurring-deposit-product-details-step",10),r(),l(11,"mat-step",8),F(12,vNt,2,3,"ng-template",9),b(13,"mifosx-recurring-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,xNt,2,3,"ng-template",9),b(16,"mifosx-recurring-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,bNt,2,3,"ng-template",9),b(19,"mifosx-recurring-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,yNt,2,3,"ng-template",9),b(22,"mifosx-recurring-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,SNt,2,3,"ng-template",9),b(25,"mifosx-recurring-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,wNt,2,3,"ng-template",9),b(28,"mifosx-recurring-deposit-product-accounting-step",12),r(),E(29,TNt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.recurringDepositProductDetailsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductCurrencyForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductTermsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductSettingsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductInterestRateChartForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(3),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("currencyCode",i.recurringDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.recurringDepositProductAccountingForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("recurringDepositProductFormValid",i.recurringDepositProductFormValid),a(),I(i.recurringDepositProductFormValid?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,qm,zm,Hm,Gm,jm,$m,Um,Ru,he],encapsulation:2})}}return e})();var MNt=()=>["../"];function DNt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Starting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ENt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.End Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function INt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}var F3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.productService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.shareProductData=t.shareProduct})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setDividendForm()}setDividendForm(){this.createDividendForm=this.formBuilder.group({dividendPeriodStartDate:["",ce.required],dividendPeriodEndDate:["",ce.required],dividendAmount:["",ce.required]})}submit(){let t=this.createDividendForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.createDividendForm.value.dividendPeriodStartDate,d=this.createDividendForm.value.dividendPeriodEndDate;t.dividendPeriodStartDate instanceof Date&&(t.dividendPeriodStartDate=this.dateUtils.formatDate(s,i)),t.dividendPeriodEndDate instanceof Date&&(t.dividendPeriodEndDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.productService.createDividend(this.shareProductData.id,u).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-dividend"]],decls:36,vars:30,consts:[["startDatePicker",""],["endDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","dividendPeriodStartDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","dividendPeriodEndDate",3,"min","max","matDatepicker"],["matInput","","required","","formControlName","dividendAmount"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5),R("click",function(){V(s);let u=ve(12);return q(u.open())}),l(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6)(10,"mat-datepicker-toggle",7)(11,"mat-datepicker",null,0),E(13,DNt,7,9,"mat-error"),r(),l(14,"mat-form-field",5),R("click",function(){V(s);let u=ve(21);return q(u.open())}),l(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8)(19,"mat-datepicker-toggle",7)(20,"mat-datepicker",null,1),E(22,ENt,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",9),E(28,INt,7,9,"mat-error"),r()()(),l(29,"mat-card-actions",10)(30,"button",11),c(31),p(32,"translate"),r(),l(33,"button",12),c(34),p(35,"translate"),r()()()()()}if(n&2){let s=ve(12),d=ve(21);a(2),g("formGroup",i.createDividendForm),a(5),h(m(8,19,"labels.inputs.Dividend Period Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.createDividendForm.controls.dividendPeriodStartDate.hasError("required")?13:-1),a(3),h(m(17,21,"labels.inputs.Dividend Period End Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.createDividendForm.controls.dividendPeriodEndDate.hasError("required")?22:-1),a(3),h(m(26,23,"labels.inputs.Dividend Amount")),a(3),I(i.createDividendForm.controls.dividendAmount.hasError("required")?28:-1),a(2),g("routerLink",oe(29,MNt)),a(),v(" ",m(32,25,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.createDividendForm.valid),a(),v(" ",m(35,27,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,mi,di,pi,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var ONt=()=>["./general"],ANt=e=>["./datatables",e];function FNt(e,o){if(e&1&&(l(0,"a",5,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,ANt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function kNt(e,o){if(e&1&&F(0,FNt,3,5,"a",6),e&2){let t=o.$implicit;g("mifosxHasPermission","READ_"+t.registeredTableName)}}var k3=(()=>{class e{constructor(){this.route=T(Ie),this.fixedDepositDatatables=[],this.route.data.subscribe(t=>{this.fixedDepositDatatables=[],t.fixedDepositDatatables.forEach(n=>{n.entitySubType==="Fixed Deposit"&&this.fixedDepositDatatables.push(n)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-fixed-deposit-product"]],decls:12,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"product-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"mat-card",3)(1,"mat-card-content")(2,"nav",4)(3,"a",5,0),c(5),p(6,"translate"),r(),Se(7,kNt,1,1,"a",5,Pe),r(),l(9,"mat-tab-nav-panel",null,1),b(11,"router-outlet"),r()()()),n&2){let s=ve(4),d=ve(10);a(2),g("tabPanel",d),a(),g("routerLink",oe(6,ONt))("active",s.isActive),a(2),v(" ",m(6,4,"labels.heading.General")," "),a(2),we(i.fixedDepositDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".product-card[_ngcontent-%COMP%]{margin:0 auto;max-width:80rem;width:90%;padding:0}.product-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto}.product-card[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}mat-card-content[_ngcontent-%COMP%]{padding-bottom:40px}"]})}}return e})();var BNt=()=>[10,25,50,100];function RNt(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w(2);return q(i.postDividends())}),b(1,"fa-icon",18),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.buttons")," "))}function NNt(e,o){e&1&&(l(0,"div",0),F(1,RNt,4,3,"button",16),r()),e&2&&(a(),g("mifosxHasPermission","POST_DIVIDENDS"))}function LNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function VNt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountData.clientName)}}function qNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Share Account")))}function zNt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountData.accountNo)}}function HNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Dividend Amount")))}function GNt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.amount)}}function jNt(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function $Nt(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function UNt(e,o){e&1&&b(0,"tr",21)}function WNt(e,o){e&1&&b(0,"tr",22)}var B3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.isdividendPosted=!1,this.displayedColumns=["clientName","shareAccount","dividendAmount","status"],this.route.data.subscribe(t=>{this.dividendData=t.dividendData}),this.status=this.route.snapshot.queryParams.status,this.status&&(this.status==="Dividend Approved"||this.status==="Dividend Posted")&&(this.isdividendPosted=!0)}ngOnInit(){this.dataSource=new Wt(this.dividendData.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}postDividends(){let t=this.route.parent.parent.snapshot.paramMap.get("productId"),n=this.route.snapshot.paramMap.get("dividendId");this.productsService.approveDividend(t,n,{productId:t,dividendId:n}).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-dividend"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:25,vars:9,consts:[[1,"container","m-b-20","layout-row","layout-align-end","gap-20px"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","clientName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareAccount"],["matColumnDef","dividendAmount"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(E(0,NNt,2,1,"div",0),l(1,"div",1)(2,"div",2)(3,"mat-form-field",3)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"input",4),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(8,"div",5)(9,"table",6),X(10,7),F(11,LNt,3,3,"th",8)(12,VNt,2,1,"td",9),Z(),X(13,10),F(14,qNt,3,3,"th",8)(15,zNt,2,1,"td",9),Z(),X(16,11),F(17,HNt,3,3,"th",8)(18,GNt,2,1,"td",9),Z(),X(19,12),F(20,jNt,3,3,"th",8)(21,$Nt,2,1,"td",9),Z(),F(22,UNt,1,0,"tr",13)(23,WNt,1,0,"tr",14),r(),b(24,"mat-paginator",15),r()()),n&2&&(I(i.isdividendPosted?-1:0),a(5),h(m(6,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,BNt)))},dependencies:[ue,fe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var QNt=()=>["../"];function YNt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function JNt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function KNt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.taxComponentId,n.taxComponentOptions,"id","name")," ")}}function XNt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function ZNt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function eLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function tLt(e,o){if(e&1){let t=Y();l(0,"td",21)(1,"button",22),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w();return q(u.editTaxGroup(s,d))}),b(2,"fa-icon",23),r(),l(3,"button",24),R("click",function(){let i=V(t).index,s=w();return q(s.delete(i))}),b(4,"fa-icon",25),r()()}}function iLt(e,o){e&1&&b(0,"tr",26)}function nLt(e,o){e&1&&b(0,"tr",27)}function oLt(e,o){if(e&1&&(l(0,"button",28),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxGroupForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var R3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["name","startDate","actions"],this.route.data.subscribe(t=>{this.taxGroupTemplateData=t.taxGroupTemplate,this.taxComponentOptions=this.taxGroupTemplateData.taxComponents})}ngOnInit(){this.createTaxGroupForm(),this.taxComponentsDataSource=[]}createTaxGroupForm(){this.taxGroupForm=this.formBuilder.group({name:["",ce.required]})}addTaxGroup(){let t=[new $i({controlName:"taxComponentId",label:this.translateService.instant("labels.inputs.Tax Component"),options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",label:this.translateService.instant("labels.inputs.Start Date"),minDate:this.minDate,maxDate:this.maxDate,order:2})],n={title:this.translateService.instant("labels.buttons.Add")+" "+this.translateService.instant("labels.inputs.Tax Component"),layout:{addButtonText:"Add"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&(this.taxComponentsDataSource=this.taxComponentsDataSource.concat(s.data.value))})}editTaxGroup(t,n){let i=[new $i({controlName:"taxComponentId",value:t.taxComponentId?t.taxComponentId:"",label:"Tax Component",options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",value:t.startDate?new Date(t.startDate):new Date,label:"Start Date",minDate:this.minDate,maxDate:this.maxDate,order:2})],s={title:"Edit Tax Component",layout:{addButtonText:"Submit"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){let f=at(at({},t),u.data.value);this.taxComponentsDataSource.splice(this.taxComponentsDataSource.indexOf(t),1,f),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([])}})}delete(t){this.dialog.open(vi,{data:{deleteContext:"this"}}).afterClosed().subscribe(i=>{i.delete&&(this.taxComponentsDataSource.splice(t,1),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([]))})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.taxGroupForm.value),{taxComponents:this.taxComponentsDataSource,dateFormat:n,locale:t});for(let s of i.taxComponents)s.startDate=this.dateUtils.formatDate(s.startDate,n)||"";this.productsService.createTaxGroup(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-tax-group"]],decls:36,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","custom-gap","responsive-column"],[1,"flex-fill","flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","edit"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,YNt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addTaxGroup()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,JNt,3,3,"th",11)(22,KNt,3,6,"td",12),Z(),X(23,13),F(24,XNt,3,3,"th",11)(25,ZNt,3,3,"td",12),Z(),X(26,14),F(27,eLt,3,3,"th",11)(28,tLt,5,0,"td",12),Z(),F(29,iLt,1,0,"tr",15)(30,nLt,1,0,"tr",16),r()()(),l(31,"mat-card-actions",17)(32,"button",18),c(33),p(34,"translate"),r(),F(35,oLt,3,4,"button",19),r()()()()),n&2&&(a(2),g("formGroup",i.taxGroupForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.taxGroupForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.inputs.Tax Components")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.taxComponentsDataSource)("hidden",i.taxComponentsDataSource.length===0),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,QNt)),a(),v(" ",m(34,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_TAXGROUP"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var aLt=()=>["../"];function rLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function sLt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.taxComponentId,n.taxComponentOptions,"id","name")," ")}}function cLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function pLt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function mLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Date")))}function dLt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",t.endDate?m(2,1,t.endDate):""," ")}}function uLt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function fLt(e,o){if(e&1){let t=Y();l(0,"button",26),p(1,"translate"),R("click",function(){V(t);let i=w().index,s=w();return q(s.delete(i))}),b(2,"fa-icon",27),r()}e&2&&g("matTooltip",Le(m(1,2,"tooltips.Delete Interest Rate Chart")))}function hLt(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"button",23),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w();return q(u.editTaxGroup(s,d))}),b(2,"fa-icon",24),r(),E(3,fLt,3,4,"button",25),r()}if(e&2){let t=o.$implicit;a(3),I(t.isNew?3:-1)}}function gLt(e,o){e&1&&b(0,"tr",28)}function _Lt(e,o){e&1&&b(0,"tr",29)}function CLt(e,o){if(e&1&&(l(0,"button",30),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.taxGroupForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var N3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.dialog=T(Ht),this.settingsService=T(Ot),this.translateService=T(yi),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["name","startDate","actions"],this.route.data.subscribe(t=>{this.taxGroupData=t.taxGroup,this.taxComponentOptions=this.taxGroupData.taxComponents})}ngOnInit(){this.taxComponentsDataSource=[],this.createTaxGroupForm(),this.assignFormData()}createTaxGroupForm(){this.taxGroupForm=this.formBuilder.group({name:[this.taxGroupData.name,ce.required]})}addTaxGroup(){let t=[new $i({controlName:"taxComponentId",label:"Tax Component",options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",label:"Start Date",minDate:this.minDate,maxDate:this.maxDate,order:2})],n={title:"Add Tax Component",layout:{addButtonText:"Add"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=qt(at({},s.data.value),{isNew:!0});this.taxComponentsDataSource=this.taxComponentsDataSource.concat(d)}})}editTaxGroup(t,n){let i=[new $i({controlName:"taxComponentId",value:t.taxComponentId?t.taxComponentId:"",label:"Tax Component",options:{label:"name",value:"id",data:this.taxComponentOptions},order:1}),new rr({controlName:"startDate",value:t.startDate?new Date(t.startDate):new Date,label:"Start Date",minDate:this.minDate,maxDate:this.maxDate,order:2})];t.isNew||i.push(new rr({controlName:"endDate",label:"End Date",minDate:this.minDate,maxDate:this.maxDate,order:3}));let s={title:"Edit Tax Component",layout:{addButtonText:"Submit"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){let f=at(at({},t),u.data.value);this.taxComponentsDataSource.splice(this.taxComponentsDataSource.indexOf(t),1,f),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([])}})}assignFormData(){this.taxGroupData.taxAssociations.forEach(t=>{let n={id:t.id,startDate:t.startDate?new Date(t.startDate):"",endDate:t.endDate?new Date(t.endDate):"",taxComponentId:t.taxComponent.id,isNew:!1};this.taxComponentsDataSource=this.taxComponentsDataSource.concat(n)})}delete(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.taxComponentsDataSource.splice(t,1),this.taxComponentsDataSource=this.taxComponentsDataSource.concat([]))})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.taxGroupForm.value),{taxComponents:this.taxComponentsDataSource,dateFormat:n,locale:t});for(let s of i.taxComponents)s.startDate=this.dateUtils.formatDate(s.startDate,n)||"",s.endDate&&(delete s.startDate,s.endDate=this.dateUtils.formatDate(s.endDate,n)||""),delete s.isNew;this.productsService.updateTaxGroup(this.taxGroupData.id,i).subscribe(s=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-tax-group"]],decls:39,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","custom-gap","responsive-column"],[1,"flex-fill","flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","startDate"],["matColumnDef","endDate"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","primary",3,"click"],["icon","edit"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"matTooltip"],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,rLt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addTaxGroup()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,lLt,3,3,"th",11)(22,sLt,3,6,"td",12),Z(),X(23,13),F(24,cLt,3,3,"th",11)(25,pLt,3,3,"td",12),Z(),X(26,14),F(27,mLt,3,3,"th",11)(28,dLt,3,3,"td",12),Z(),X(29,15),F(30,uLt,3,3,"th",11)(31,hLt,4,1,"td",12),Z(),F(32,gLt,1,0,"tr",16)(33,_Lt,1,0,"tr",17),r()()(),l(34,"mat-card-actions",18)(35,"button",19),c(36),p(37,"translate"),r(),F(38,CLt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.taxGroupForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.taxGroupForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.inputs.Tax Components")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.taxComponentsDataSource)("hidden",i.taxComponentsDataSource.length===0),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,aLt)),a(),v(" ",m(37,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_TAXGROUP"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,Pi,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var vLt=()=>["../"];function xLt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function bLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yLt(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function SLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one restricted product")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function wLt(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",8),Se(5,yLt,2,2,"mat-option",4,Pe),r(),E(7,SLt,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Restricted products")),a(3),we(t.productData),a(2),I(t.productMixForm.controls.restrictedProducts.hasError("required")?7:-1)}}function PLt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.productMixForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var L3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.productsMixTemplateData=t.productsMixTemplate})}ngOnInit(){this.createProductMixForm(),this.setConditionalControls()}createProductMixForm(){this.productOptionData=this.productsMixTemplateData.productOptions,this.productMixForm=this.formBuilder.group({productId:["",ce.required],restrictedProducts:["",ce.required]})}setConditionalControls(){this.productMixForm.get("productId").valueChanges.subscribe(t=>{this.productData=void 0,this.productMixForm.get("restrictedProducts").reset(),this.productsService.getProductMixTemplate(t).subscribe(n=>{let i=n.restrictedProducts;this.productData=[...i,...n.allowedProducts],this.productMixForm.get("restrictedProducts").setValue([...i.map(s=>s.id)])})})}submit(){let t={restrictedProducts:this.productMixForm.value.restrictedProducts},n=this.productMixForm.value.productId;this.productsService.createProductMix(t,n).subscribe(i=>{this.router.navigate(["../",i.productId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-product-mix"]],decls:19,vars:12,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","productId"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","restrictedProducts","multiple",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,xLt,2,2,"mat-option",4,Pe),r(),E(12,bLt,7,9,"mat-error"),r(),E(13,wLt,8,4,"mat-form-field"),r()(),l(14,"mat-card-actions",5)(15,"button",6),c(16),p(17,"translate"),r(),F(18,PLt,3,4,"button",7),r()()()()),n&2&&(a(2),g("formGroup",i.productMixForm),a(5),h(m(8,7,"labels.inputs.Product")),a(3),we(i.productOptionData),a(2),I(i.productMixForm.controls.productId.hasError("required")?12:-1),a(),I(i.productData?13:-1),a(2),g("routerLink",oe(11,vLt)),a(),v(" ",m(17,9,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PRODUCTMIX"))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var TLt=()=>[10,25,50,100],MLt=()=>["create"],DLt=e=>[e];function ELt(e,o){e&1&&(l(0,"button",18),b(1,"fa-icon",19),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,MLt)),a(2),v(" ",m(3,2,"labels.text.Create Collateral")," "))}function ILt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function OLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function ALt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type/Quality")))}function FLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.quality)}}function kLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Base Price")))}function BLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.basePrice)}}function RLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Base Percentage")))}function NLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.pctToBase)}}function LLt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Unit Type")))}function VLt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.unitType)}}function qLt(e,o){e&1&&b(0,"tr",22)}function zLt(e,o){if(e&1&&b(0,"tr",23),e&2){let t=o.$implicit;g("routerLink",Nt(1,DLt,t.id))}}var V3=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","quality","basePrice","basePercentage","unitType"],this.route.data.subscribe(t=>{this.collateralData=t.collaterals})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCollaterals()}setCollaterals(){this.dataSource=new Wt(this.collateralData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-collaterals"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","quality"],["matColumnDef","basePrice"],["matColumnDef","basePercentage"],["matColumnDef","unitType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,ELt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,ILt,3,3,"th",9)(13,OLt,2,1,"td",10),Z(),X(14,11),F(15,ALt,3,3,"th",9)(16,FLt,2,1,"td",10),Z(),X(17,12),F(18,kLt,3,3,"th",9)(19,BLt,2,1,"td",10),Z(),X(20,13),F(21,RLt,3,3,"th",9)(22,NLt,2,1,"td",10),Z(),X(23,14),F(24,LLt,3,3,"th",9)(25,VLt,2,1,"td",10),Z(),F(26,qLt,1,0,"tr",15)(27,zLt,1,3,"tr",16),r(),b(28,"mat-paginator",17),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_CHARGE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,TLt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}.ispenalty[_ngcontent-%COMP%]{color:#32cd32}.nopenalty[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var HLt=()=>["../"];function GLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Type/Quality")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function $Lt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Unit Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ULt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Base Price")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function WLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage to Base")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function QLt(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function YLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.heading.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function JLt(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.collateralForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var q3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.organizationService=T(li),this.route.data.subscribe(t=>{this.organizationService.getCurrencies().subscribe(n=>{let i=Array.isArray(n.selectedCurrencyOptions)?n.selectedCurrencyOptions:[];this.collateralTemplateData=t.collateralTemplate.filter(s=>i.some(d=>d.code===s.code))})})}ngOnInit(){this.createCollateralForm()}createCollateralForm(){this.collateralForm=this.formBuilder.group({name:["",ce.required],unitType:["",ce.required],basePrice:["",ce.required],pctToBase:["",ce.required],currency:["",ce.required],quality:["",ce.required]})}submit(){let t=this.collateralForm.value,n=this.settingsService.language.code,i=qt(at({},t),{locale:n});this.productsService.createCollateral(i).subscribe(s=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-collateral"]],decls:48,vars:31,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","quality"],["matInput","","required","","formControlName","unitType"],["matInput","","required","","formControlName","basePrice"],["matInput","","required","","formControlName","pctToBase"],["required","","formControlName","currency"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,GLt,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,jLt,7,9,"mat-error"),r(),l(17,"mat-form-field",3)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",6),E(22,$Lt,7,9,"mat-error"),r(),l(23,"mat-form-field",3)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",7),E(28,ULt,7,9,"mat-error"),r(),l(29,"mat-form-field",3)(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",8),E(34,WLt,7,9,"mat-error"),r(),l(35,"mat-form-field",3)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",9),Se(40,QLt,2,2,"mat-option",10,Pe),r(),E(42,YLt,7,9,"mat-error"),r()()(),l(43,"mat-card-actions",11)(44,"button",12),c(45),p(46,"translate"),r(),F(47,JLt,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.collateralForm),a(5),h(m(8,16,"labels.inputs.Name")),a(3),I(i.collateralForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,18,"labels.inputs.Type/Quality")),a(3),I(i.collateralForm.controls.quality.hasError("required")?16:-1),a(3),h(m(20,20,"labels.inputs.Unit Type")),a(3),I(i.collateralForm.controls.unitType.hasError("required")?22:-1),a(3),h(m(26,22,"labels.inputs.Base Price")),a(3),I(i.collateralForm.controls.basePrice.hasError("required")?28:-1),a(3),h(m(32,24,"labels.inputs.Percentage to Base")),a(3),I(i.collateralForm.controls.pctToBase.hasError("required")?34:-1),a(3),h(m(38,26,"labels.heading.Currency")),a(3),we(i.collateralTemplateData),a(2),I(i.collateralForm.controls.currency.hasError("required")?42:-1),a(2),g("routerLink",oe(30,HLt)),a(),v(" ",m(46,28,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,he],encapsulation:2})}}return e})();var KLt=()=>["../"];function XLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ZLt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Type/Quality")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function eVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Unit Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Base Price")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Percentage to Base")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nVt(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function oVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.heading.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function aVt(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.collateralForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var z3=(()=>{class e{constructor(){this.productsService=T(ci),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.collateralData=t.collateral,this.collateralTemplateData=t.collateralTemplate})}ngOnInit(){this.editCollateralForm()}editCollateralForm(){this.collateralForm=this.formBuilder.group({name:[this.collateralData.name,ce.required],quality:[this.collateralData.quality,ce.required],unitType:[this.collateralData.unitType,ce.required],basePrice:[this.collateralData.basePrice,ce.required],pctToBase:[this.collateralData.pctToBase,ce.required],currency:[this.collateralData.currency,ce.required]})}submit(){let t=this.collateralForm.value;t.locale=this.settingsService.language.code,this.productsService.updateCollateral(this.collateralData.id.toString(),t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-collateral"]],decls:48,vars:31,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","autoFocus","","formControlName","name"],["matInput","","required","","autoFocus","","formControlName","quality"],["matInput","","required","","autoFocus","","formControlName","unitType"],["matInput","","required","","autoFocus","","formControlName","basePrice"],["matInput","","required","","autoFocus","","formControlName","pctToBase"],["required","","formControlName","currency"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,XLt,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,ZLt,7,9,"mat-error"),r(),l(17,"mat-form-field",3)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",6),E(22,eVt,7,9,"mat-error"),r(),l(23,"mat-form-field",3)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",7),E(28,tVt,7,9,"mat-error"),r(),l(29,"mat-form-field",3)(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",8),E(34,iVt,7,9,"mat-error"),r(),l(35,"mat-form-field",3)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",9),Se(40,nVt,2,2,"mat-option",10,Pe),r(),E(42,oVt,7,9,"mat-error"),r()()(),l(43,"mat-card-actions",11)(44,"button",12),c(45),p(46,"translate"),r(),F(47,aVt,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.collateralForm),a(5),h(m(8,16,"labels.inputs.Name")),a(3),I(i.collateralForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,18,"labels.inputs.Type/Quality")),a(3),I(i.collateralForm.controls.quality.hasError("required")?16:-1),a(3),h(m(20,20,"labels.inputs.Unit Type")),a(3),I(i.collateralForm.controls.unitType.hasError("required")?22:-1),a(3),h(m(26,22,"labels.inputs.Base Price")),a(3),I(i.collateralForm.controls.basePrice.hasError("required")?28:-1),a(3),h(m(32,24,"labels.inputs.Percentage to Base")),a(3),I(i.collateralForm.controls.pctToBase.hasError("required")?34:-1),a(3),h(m(38,26,"labels.heading.Currency")),a(3),we(i.collateralTemplateData),a(2),I(i.collateralForm.controls.currency.hasError("required")?42:-1),a(2),g("routerLink",oe(30,KLt)),a(),v(" ",m(46,28,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,he],encapsulation:2})}}return e})();var rVt=()=>["edit"],H3=(()=>{class e{constructor(){this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.route.data.subscribe(t=>{this.collateralData=t.collateral})}deleteCollateral(){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.Collateral")+" "+this.collateralData.id}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteCollateral(this.collateralData.id).subscribe(()=>{this.router.navigate(["/products/collaterals"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-collateral"]],decls:43,vars:32,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.deleteCollateral()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r()(),l(9,"div",5)(10,"mat-card")(11,"mat-card-content")(12,"div",6)(13,"div",7),c(14),p(15,"translate"),r(),l(16,"div",8),c(17),r(),l(18,"div",7),c(19),p(20,"translate"),r(),l(21,"div",8),c(22),r(),l(23,"div",7),c(24),p(25,"translate"),r(),l(26,"div",8),c(27),r(),l(28,"div",7),c(29),p(30,"translate"),r(),l(31,"div",8),c(32),r(),l(33,"div",7),c(34),p(35,"translate"),r(),l(36,"div",8),c(37),r(),l(38,"div",7),c(39),p(40,"translate"),r(),l(41,"div",8),c(42),r()()()()()),n&2&&(a(),g("routerLink",oe(31,rVt)),a(2),v(" ",m(4,15,"labels.heading.Edit")," "),a(4),v(" ",m(8,17,"labels.heading.Delete")," "),a(7),v(" ",m(15,19,"labels.inputs.Collateral Name")," "),a(3),v(" ",i.collateralData.name," "),a(2),v(" ",m(20,21,"labels.inputs.Type/Quality")," "),a(3),v(" ",i.collateralData.quality," "),a(2),v(" ",m(25,23,"labels.inputs.Base Price")," "),a(3),v(" ",i.collateralData.basePrice," "),a(2),v(" ",m(30,25,"labels.inputs.Base Percentage")," "),a(3),v(" ",i.collateralData.pctToBase," "),a(2),v(" ",m(35,27,"labels.inputs.Unit Type")," "),a(3),v(" ",i.collateralData.unitType," "),a(2),v(" ",m(40,29,"labels.heading.Currency")," "),a(3),v(" ",i.collateralData.currency," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var XI=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getLoanProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var ZI=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getLoanProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var e6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getLoanProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var t6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getLoanProduct(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var i6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getSavingProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var n6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getSavingProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var o6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getSavingProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var a6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("productId");return this.productsService.getSavingProduct(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var r6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getShareProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var l6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getShareProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var G3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getShareProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var s6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getShareProduct(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var c6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getRecurringDepositProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var p6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getRecurringDepositProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var m6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getCharges()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var j3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getCharge(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var d6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getChargesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var u6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getFixedDepositProducts()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var f6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getFixedDepositProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var h6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getProductMixes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var $3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getFloatingRates()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var hh=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getFloatingRate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var gh=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getProductMix(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var g6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxComponents()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var _6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxGroups()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var _h=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getTaxComponent(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var C6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxComponentTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var lVt=()=>["../"];function sVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function cVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function mVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),p(4,"translate"),l(5,"strong"),c(6),p(7,"translate"),r()()),e&2&&(a(),ea(" ",m(2,4,"labels.inputs.Currency")," ",m(3,6,"labels.inputs.Type")," ",m(4,8,"labels.commons.is")," "),a(5),h(m(7,10,"labels.commons.required")))}function dVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function uVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Time Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function hVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Calculation Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function _Vt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Charge Payment Mode")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",21),Se(5,gVt,3,5,"mat-option",5,Pe),r(),E(7,_Vt,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Charge Payment By")),a(3),we(t.chargeData.chargePaymetModeOptions),a(2),I(t.chargeForm.controls.chargePaymentMode.hasError("required")?7:-1)}}function vVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xVt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.minimumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.maxCap.value,") ")}}function bVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",22),E(5,xVt,3,4,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Minimum Charge Cap")),a(3),I(t.chargeForm.controls.minCap.hasError("maxValue")?5:-1)}}function yVt(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"errors.validation.msg.loanproduct.maximumGap.not.greater.than.specified.number")," (",t.chargeForm.controls.minCap.value,") ")}}function SVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",23),E(5,yVt,3,4,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Maximum Charge Cap")),a(3),I(t.chargeForm.controls.maxCap.hasError("minValue")?5:-1)}}function wVt(e,o){if(e&1&&b(0,"mifosx-gl-account-selector",12),e&2){let t=w();g("inputFormControl",t.chargeForm.controls.incomeAccountId)("glAccountList",t.chargeData.incomeOrLiabilityAccountOptions.incomeAccountOptions)("required",!0)("inputLabel","Income from Charge")}}function PVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function TVt(e,o){if(e&1&&(l(0,"mat-select",13),Se(1,PVt,2,2,"mat-option",5,Pe),r()),e&2){let t=w();a(),we(t.chargeData.taxGroupOptions)}}function MVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function DVt(e,o){if(e&1&&(l(0,"mat-select",13),Se(1,MVt,2,2,"mat-option",5,Pe),r()),e&2){let t=w();a(),we(t.chargeData.taxGroupOptions)}}function EVt(e,o){if(e&1){let t=Y();l(0,"div",14)(1,"mat-checkbox",24),R("change",function(i){V(t);let s=w();return q(s.getFeeFrequency(i.checked))}),c(2),p(3,"translate"),r()()}if(e&2){let t=w();a(),g("checked",t.addFeeFrequency&&t.showFeeOptions),a(),v(" ",m(3,2,"labels.inputs.Add Fee Frequency")," ")}}function IVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Frequency Interval")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",25),E(5,IVt,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Frequency Interval")),a(3),I(t.chargeForm.controls.feeInterval.hasError("required")?5:-1)}}function AVt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",Ft(2,2,t.value,"catalogs")," ")}}function FVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Add Fee Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kVt(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",26),Se(5,AVt,3,5,"mat-option",5,Pe),r(),E(7,FVt,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Charge Frequency")),a(3),we(t.chargeData.feeFrequencyOptions),a(2),I(t.chargeForm.controls.feeFrequency.hasError("required")?7:-1)}}function BVt(e,o){e&1&&(l(0,"div",17)(1,"mat-checkbox",27),c(2),p(3,"translate"),p(4,"translate"),r()()),e&2&&(a(2),le(" ",m(3,2,"labels.commons.Is")," ",m(4,4,"labels.inputs.Penalty")," "))}function RVt(e,o){if(e&1&&(l(0,"button",28),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.chargeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var U3=(()=>{class e{constructor(){this.productsService=T(ci),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.showPenalty=!0,this.addFeeFrequency=!0,this.showGLAccount=!1,this.chargePaymentMode=!1,this.showFeeOptions=!1,this.route.data.subscribe(t=>{this.chargeData=t.chargesTemplate})}ngOnInit(){this.editChargeForm()}editChargeForm(){switch(this.showFeeOptions=this.chargeData.feeInterval&&this.chargeData.feeInterval>0,this.chargeForm=this.formBuilder.group({name:[this.chargeData.name,ce.required],chargeAppliesTo:[{value:this.chargeData.chargeAppliesTo.id,disabled:!0},ce.required],currencyCode:[this.chargeData.currency.code,ce.required],amount:[this.chargeData.amount,ce.required],active:[this.chargeData.active],penalty:[this.chargeData.penalty],minCap:[this.chargeData.minCap||null,[C3("maxCap")]],maxCap:[this.chargeData.maxCap||null,[_3("minCap")]],chargeTimeType:[this.chargeData.chargeTimeType.id,ce.required],chargeCalculationType:[this.chargeData.chargeCalculationType.id,ce.required]}),this.chargeData.chargeAppliesTo.value){case"Loan":{this.chargeTimeTypeOptions=this.chargeData.loanChargeTimeTypeOptions,this.chargeCalculationTypeOptions=this.chargeData.loanChargeCalculationTypeOptions,this.addFeeFrequency=!0,this.chargePaymentMode=!0,this.chargeForm.addControl("chargePaymentMode",this.formBuilder.control(this.chargeData.chargePaymentMode.id,ce.required)),this.showFeeOptions&&(this.getFeeFrequency(this.showFeeOptions),this.chargeForm.patchValue({feeInterval:this.chargeData.feeInterval,feeFrequency:this.chargeData.feeFrequency.id}));break}case"Savings":{this.chargeTimeTypeOptions=this.chargeData.savingsChargeTimeTypeOptions,this.chargeCalculationTypeOptions=this.chargeData.savingsChargeCalculationTypeOptions,this.addFeeFrequency=!1;break}case"Shares":{this.chargeTimeTypeOptions=this.chargeData.shareChargeTimeTypeOptions,this.chargeCalculationTypeOptions=this.chargeData.shareChargeCalculationTypeOptions,this.addFeeFrequency=!1,this.showGLAccount=!1,this.showPenalty=!1;break}default:{this.chargeCalculationTypeOptions=this.chargeData.clientChargeCalculationTypeOptions,this.chargeTimeTypeOptions=this.chargeData.clientChargeTimeTypeOptions,this.showGLAccount=!0,this.addFeeFrequency=!1,this.chargeForm.addControl("incomeAccountId",this.formBuilder.control(this.chargeData.incomeOrLiabilityAccount?.id,ce.required));break}}this.chargeData.taxGroup?this.chargeForm.addControl("taxGroupId",this.formBuilder.control({value:this.chargeData.taxGroup.id,disabled:!0})):this.chargeForm.addControl("taxGroupId",this.formBuilder.control({value:""}))}getFeeFrequency(t){this.showFeeOptions=t,t?(this.chargeForm.addControl("feeInterval",this.formBuilder.control("",ce.required)),this.chargeForm.addControl("feeFrequency",this.formBuilder.control("",ce.required))):(this.chargeForm.removeControl("feeInterval"),this.chargeForm.removeControl("feeFrequency"))}submit(){let t=this.chargeForm.getRawValue();t.locale=this.settingsService.language.code,t.taxGroupId.value===""&&delete t.taxGroupId,t.minCap||delete t.minCap,t.maxCap||delete t.maxCap,this.productsService.updateCharge(this.chargeData.id.toString(),t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-charge"]],decls:73,vars:46,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","chargeAppliesTo"],[3,"value"],[1,"layout-row-wrap","gap-2percent","layout-lt-md-column","form-section"],["matInput","","required","","autofocus","","formControlName","name"],["required","","formControlName","currencyCode"],["required","","formControlName","chargeTimeType"],["required","","formControlName","chargeCalculationType"],["matInput","","required","","autofocus","","type","text","formControlName","amount"],[1,"flex-48",3,"inputFormControl","glAccountList","required","inputLabel"],["formControlName","taxGroupId"],[1,"password-never-expires-wrapper","checkbox","flex-48"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","active"],[1,"send-password-to-email-wrapper","flex-48"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","chargePaymentMode"],["matInput","","autofocus","","formControlName","minCap","mifosxValidateOnFocus",""],["matInput","","autofocus","","formControlName","maxCap","mifosxValidateOnFocus",""],["labelPosition","before",3,"change","checked"],["matInput","","required","","autofocus","","type","text","formControlName","feeInterval"],["required","","formControlName","feeFrequency"],["labelPosition","before","formControlName","penalty"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,sVt,3,5,"mat-option",5,Pe),r()()(),l(12,"div",6)(13,"mat-form-field",3)(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",7),E(18,cVt,7,9,"mat-error"),r(),l(19,"mat-form-field",3)(20,"mat-label"),c(21),p(22,"translate"),r(),l(23,"mat-select",8),Se(24,pVt,2,2,"mat-option",5,Pe),r(),E(26,mVt,8,12,"mat-error"),r(),l(27,"mat-form-field",3)(28,"mat-label"),c(29),p(30,"translate"),r(),l(31,"mat-select",9),Se(32,dVt,3,5,"mat-option",5,Pe),r(),E(34,uVt,7,9,"mat-error"),r(),l(35,"mat-form-field",3)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",10),Se(40,fVt,3,5,"mat-option",5,Pe),r(),E(42,hVt,7,9,"mat-error"),r(),E(43,CVt,8,4,"mat-form-field",3),l(44,"mat-form-field",3)(45,"mat-label"),c(46),p(47,"translate"),r(),b(48,"input",11),E(49,vVt,7,9,"mat-error"),r(),E(50,bVt,6,4,"mat-form-field",3),E(51,SVt,6,4,"mat-form-field",3),E(52,wVt,1,4,"mifosx-gl-account-selector",12),l(53,"mat-form-field",3)(54,"mat-label"),c(55),p(56,"translate"),r(),E(57,TVt,3,0,"mat-select",13),E(58,DVt,3,0,"mat-select",13),r(),E(59,EVt,4,4,"div",14),E(60,OVt,6,4,"mat-form-field",3),E(61,kVt,8,4,"mat-form-field",3),r(),l(62,"div",6)(63,"div",15)(64,"mat-checkbox",16),c(65),p(66,"translate"),r()(),E(67,BVt,5,6,"div",17),r()(),l(68,"mat-card-actions",18)(69,"button",19),c(70),p(71,"translate"),r(),F(72,RVt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.chargeForm),a(5),h(m(8,27,"labels.inputs.Charge Applies To")),a(3),we(i.chargeData.chargeAppliesToOptions),a(5),h(m(16,29,"labels.inputs.Name")),a(3),I(i.chargeForm.controls.name.hasError("required")?18:-1),a(3),h(m(22,31,"labels.inputs.Currency")),a(3),we(i.chargeData.currencyOptions),a(2),I(i.chargeForm.controls.currencyCode.hasError("required")?26:-1),a(3),h(m(30,33,"labels.inputs.Charge Time Type")),a(3),we(i.chargeTimeTypeOptions),a(2),I(i.chargeForm.controls.chargeTimeType.hasError("required")?34:-1),a(3),h(m(38,35,"labels.inputs.Charge Calculation")),a(3),we(i.chargeCalculationTypeOptions),a(2),I(i.chargeForm.controls.chargeCalculationType.hasError("required")?42:-1),a(),I(i.chargePaymentMode?43:-1),a(3),h(m(47,37,"labels.inputs.Amount")),a(3),I(i.chargeForm.controls.amount.hasError("required")?49:-1),a(),I(i.chargeForm.controls.chargeAppliesTo.value===1&&(i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeCalculationType.value===3||i.chargeForm.controls.chargeCalculationType.value===4||i.chargeForm.controls.chargeCalculationType.value===5)||i.chargeForm.controls.chargeAppliesTo.value===2&&(i.chargeForm.controls.chargeTimeType.value===16||i.chargeForm.controls.chargeTimeType.value===5)&&i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeAppliesTo.value===4&&(i.chargeForm.controls.chargeTimeType.value===14||i.chargeForm.controls.chargeTimeType.value===15)&&i.chargeForm.controls.chargeCalculationType.value===2?50:-1),a(),I(i.chargeForm.controls.chargeAppliesTo.value===1&&(i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeCalculationType.value===3||i.chargeForm.controls.chargeCalculationType.value===4||i.chargeForm.controls.chargeCalculationType.value===5)||i.chargeForm.controls.chargeAppliesTo.value===2&&(i.chargeForm.controls.chargeTimeType.value===16||i.chargeForm.controls.chargeTimeType.value===5)&&i.chargeForm.controls.chargeCalculationType.value===2||i.chargeForm.controls.chargeAppliesTo.value===4&&(i.chargeForm.controls.chargeTimeType.value===14||i.chargeForm.controls.chargeTimeType.value===15)&&i.chargeForm.controls.chargeCalculationType.value===2?51:-1),a(),I(i.showGLAccount?52:-1),a(3),h(m(56,39,"labels.inputs.Tax Group")),a(2),I(i.chargeData.taxGroup?57:-1),a(),I(i.chargeData.taxGroup?-1:58),a(),I(i.addFeeFrequency?59:-1),a(),I(i.addFeeFrequency&&i.showFeeOptions?60:-1),a(),I(i.addFeeFrequency&&i.showFeeOptions?61:-1),a(4),v(" ",m(66,41,"labels.status.Active")," "),a(2),I(i.showPenalty?67:-1),a(2),g("routerLink",oe(45,lVt)),a(),v(" ",m(71,43,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_CHARGE"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,Wg,ta,he,ki],styles:[".checkbox[_ngcontent-%COMP%]{padding-top:10px}.form-section[_ngcontent-%COMP%]{margin-top:10px}"]})}}return e})();var W3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getTaxGroup(n,"false")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var v6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("productId");return this.productsService.getDividends(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var x6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getRecurringDepositProductsTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();function NVt(e,o){e&1&&b(0,"fa-icon",14)}function LVt(e,o){e&1&&b(0,"fa-icon",14)}function VVt(e,o){e&1&&b(0,"fa-icon",15)}function qVt(e,o){e&1&&b(0,"fa-icon",16)}function zVt(e,o){e&1&&b(0,"fa-icon",17)}function HVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function GVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function jVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function $Vt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function UVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function WVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function QVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function YVt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function JVt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,YVt,2,3,"ng-template",9),l(2,"mifosx-recurring-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("recurringDepositProductsTemplate",t.recurringDepositProductsTemplate)("chartSlabsDisplayedColumns",t.recurringDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("recurringDepositProduct",t.recurringDepositProduct)}}var Q3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.recurringDepositProductsTemplate=t.recurringDepositProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get recurringDepositProductDetailsForm(){return this.recurringDepositProductDetailsStep.recurringDepositProductDetailsForm}get recurringDepositProductCurrencyForm(){return this.recurringDepositProductCurrencyStep.recurringDepositProductCurrencyForm}get recurringDepositProductTermsForm(){return this.recurringDepositProductTermsStep.recurringDepositProductTermsForm}get recurringDepositProductSettingsForm(){return this.recurringDepositProductSettingsStep.recurringDepositProductSettingsForm}get recurringDepositProductInterestRateChartForm(){return this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChartForm}get recurringDepositProductAccountingForm(){return this.recurringDepositProductAccountingStep.recurringDepositProductAccountingForm}get recurringDepositProductFormValidAndNotPrinstine(){return this.recurringDepositProductDetailsForm.valid&&this.recurringDepositProductCurrencyForm.valid&&this.recurringDepositProductTermsForm.valid&&this.recurringDepositProductSettingsForm.valid&&this.recurringDepositProductInterestRateChartForm.valid&&this.recurringDepositProductAccountingForm.valid&&(this.recurringDepositProductDetailsForm.pristine||this.recurringDepositProductCurrencyForm.pristine||this.recurringDepositProductTermsForm.pristine||this.recurringDepositProductSettingsForm.pristine||this.recurringDepositProductInterestRateChartForm.pristine||this.recurringDepositProductAccountingForm.pristine)}get recurringDepositProduct(){return at(at(at(at(at(at(at({},this.recurringDepositProductDetailsStep.recurringDepositProductDetails),this.recurringDepositProductCurrencyStep.recurringDepositProductCurrency),this.recurringDepositProductTermsStep.recurringDepositProductTerms),this.recurringDepositProductSettingsStep.recurringDepositProductSettings),this.recurringDepositProductInterestRateChartStep.recurringDepositProductInterestRateChart),this.recurringDepositProductChargesStep.recurringDepositProductCharges),this.recurringDepositProductAccountingStep.recurringDepositProductAccounting)}submit(){let t=qt(at({},this.recurringDepositProduct),{charges:this.recurringDepositProduct.charges.map(n=>({id:n.id})),locale:this.settingsService.language.code});t.description||(t.description=""),delete t.advancedAccountingRules,this.productsService.updateRecurringDepositProduct(this.recurringDepositProductsTemplate.id,t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-recurring-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(qm,7),Ee(zm,7),Ee(Hm,7),Ee(Gm,7),Ee(jm,7),Ee($m,7),Ee(Um,7)),n&2){let s;Te(s=Me())&&(i.recurringDepositProductDetailsStep=s.first),Te(s=Me())&&(i.recurringDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.recurringDepositProductTermsStep=s.first),Te(s=Me())&&(i.recurringDepositProductSettingsStep=s.first),Te(s=Me())&&(i.recurringDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.recurringDepositProductChargesStep=s.first),Te(s=Me())&&(i.recurringDepositProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["recurringDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositProductsTemplate"],[3,"recurringDepositProductsTemplate","currencyCode"],[3,"recurringDepositProductsTemplate","accountingRuleData","recurringDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","recurringDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,NVt,1,0,"ng-template",3)(4,LVt,1,0,"ng-template",4)(5,VVt,1,0,"ng-template",5)(6,qVt,1,0,"ng-template",6)(7,zVt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,HVt,2,3,"ng-template",9),b(10,"mifosx-recurring-deposit-product-details-step",10),r(),l(11,"mat-step",8),F(12,GVt,2,3,"ng-template",9),b(13,"mifosx-recurring-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,jVt,2,3,"ng-template",9),b(16,"mifosx-recurring-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,$Vt,2,3,"ng-template",9),b(19,"mifosx-recurring-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,UVt,2,3,"ng-template",9),b(22,"mifosx-recurring-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,WVt,2,3,"ng-template",9),b(25,"mifosx-recurring-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,QVt,2,3,"ng-template",9),b(28,"mifosx-recurring-deposit-product-accounting-step",12),r(),E(29,JVt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.recurringDepositProductDetailsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductCurrencyForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductTermsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductSettingsForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(),g("stepControl",i.recurringDepositProductInterestRateChartForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate),a(3),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("currencyCode",i.recurringDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.recurringDepositProductAccountingForm),a(2),g("recurringDepositProductsTemplate",i.recurringDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("recurringDepositProductFormValid",i.recurringDepositProductFormValidAndNotPrinstine),a(),I(i.recurringDepositProductFormValidAndNotPrinstine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,qm,zm,Hm,Gm,jm,$m,Um,Ru,he],encapsulation:2})}}return e})();var b6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getRecurringDepositProductAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var y6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("dividendId"),i=t.parent.parent.paramMap.get("productId");return this.productsService.getDividendData(i,n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var S6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getFixedDepositProduct(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var w6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getTaxGroupTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var P6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("id");return this.productsService.getTaxGroup(n,"true")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var T6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getProductsMixTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var KVt=()=>["../"];function XVt(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function ZVt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one restricted product")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function eqt(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",7),Se(5,XVt,2,2,"mat-option",8,Pe),r(),E(7,ZVt,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Restricted products")),a(3),we(t.productData),a(2),I(t.productMixForm.controls.restrictedProducts.hasError("required")?7:-1)}}function tqt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.productMixForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Y3=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.productMixData=t.productMix})}ngOnInit(){this.createProductMixForm(),this.setFormData()}createProductMixForm(){this.productMixForm=this.formBuilder.group({productId:[{value:this.productMixData.productName,disabled:!0}],restrictedProducts:["",ce.required]})}setFormData(){let t=this.productMixData.restrictedProducts;this.productData=[...t,...this.productMixData.allowedProducts],this.productMixForm.get("restrictedProducts").setValue([...t.map(n=>n.id)])}submit(){let t={restrictedProducts:this.productMixForm.value.restrictedProducts},n=this.productMixData.productId;this.productsService.updateProductMix(t,n).subscribe(i=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-product-mix"]],decls:16,vars:11,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","formControlName","productId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","restrictedProducts","multiple",""],[3,"value"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),r(),E(10,eqt,8,4,"mat-form-field"),r()(),l(11,"mat-card-actions",4)(12,"button",5),c(13),p(14,"translate"),r(),F(15,tqt,3,4,"button",6),r()()()()),n&2&&(a(2),g("formGroup",i.productMixForm),a(5),h(m(8,6,"labels.inputs.Product")),a(3),I(i.productData?10:-1),a(2),g("routerLink",oe(10,KVt)),a(),v(" ",m(14,8,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PRODUCTMIX"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var M6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getCharge(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();function iqt(e,o){e&1&&b(0,"fa-icon",14)}function nqt(e,o){e&1&&b(0,"fa-icon",14)}function oqt(e,o){e&1&&b(0,"fa-icon",15)}function aqt(e,o){e&1&&b(0,"fa-icon",16)}function rqt(e,o){e&1&&b(0,"fa-icon",17)}function lqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.DETAILS"))}function sqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CURRENCY"))}function cqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.TERMS"))}function pqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.SETTINGS"))}function mqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.INTEREST RATE CHART"))}function dqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CHARGES"))}function uqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.ACCOUNTING"))}function fqt(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function hqt(e,o){if(e&1){let t=Y();l(0,"mat-step",13),F(1,fqt,2,3,"ng-template",9),l(2,"mifosx-fixed-deposit-product-preview-step",18),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("fixedDepositProductsTemplate",t.fixedDepositProductsTemplate)("chartSlabsDisplayedColumns",t.fixedDepositProductInterestRateChartStep.chartSlabsDisplayedColumns)("accountingRuleData",t.accountingRuleData)("fixedDepositProduct",t.fixedDepositProduct)}}var J3=(()=>{class e{constructor(){this.route=T(Ie),this.productsService=T(ci),this.router=T(qe),this.settingsService=T(Ot),this.accounting=T(To),this.accountingRuleData=[],this.route.data.subscribe(t=>{this.fixedDepositProductsTemplate=t.fixedDepositProductAndTemplate}),this.accountingRuleData=this.accounting.getAccountingRulesForSavings()}get fixedDepositProductDetailsForm(){return this.fixedDepositProductDetailsStep.fixedDepositProductDetailsForm}get fixedDepositProductCurrencyForm(){return this.fixedDepositProductCurrencyStep.fixedDepositProductCurrencyForm}get fixedDepositProductTermsForm(){return this.fixedDepositProductTermsStep.fixedDepositProductTermsForm}get fixedDepositProductSettingsForm(){return this.fixedDepositProductSettingsStep.fixedDepositProductSettingsForm}get fixedDepositProductInterestRateChartForm(){return this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChartForm}get fixedDepositProductAccountingForm(){return this.fixedDepositProductAccountingStep.fixedDepositProductAccountingForm}get fixedDepositProductFormValidAndNotPrinstine(){return this.fixedDepositProductDetailsForm.valid&&this.fixedDepositProductCurrencyForm.valid&&this.fixedDepositProductTermsForm.valid&&this.fixedDepositProductSettingsForm.valid&&this.fixedDepositProductInterestRateChartForm.valid&&this.fixedDepositProductAccountingForm.valid&&(this.fixedDepositProductDetailsForm.pristine||this.fixedDepositProductCurrencyForm.pristine||this.fixedDepositProductTermsForm.pristine||this.fixedDepositProductSettingsForm.pristine||this.fixedDepositProductInterestRateChartForm.pristine||this.fixedDepositProductAccountingForm.pristine)}get fixedDepositProduct(){return at(at(at(at(at(at(at({},this.fixedDepositProductDetailsStep.fixedDepositProductDetails),this.fixedDepositProductCurrencyStep.fixedDepositProductCurrency),this.fixedDepositProductTermsStep.fixedDepositProductTerms),this.fixedDepositProductSettingsStep.fixedDepositProductSettings),this.fixedDepositProductInterestRateChartStep.fixedDepositProductInterestRateChart),this.fixedDepositProductChargesStep.fixedDepositProductCharges),this.fixedDepositProductAccountingStep.fixedDepositProductAccounting)}submit(){let t=qt(at({},this.fixedDepositProduct),{charges:this.fixedDepositProduct.charges.map(i=>({id:i.id})),locale:this.settingsService.language.code});t.description||(t.description="");let n=[];t.charts.forEach(i=>{i.amountRangeFrom===""&&delete i.amountRangeFrom,i.amountRangeTo===""&&delete i.amountRangeTo,n.push(i)}),t.charts=n,delete t.advancedAccountingRules,this.productsService.updateFixedDepositProduct(this.fixedDepositProductsTemplate.id,t).subscribe(i=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-fixed-deposit-product"]],viewQuery:function(n,i){if(n&1&&(Ee(Om,7),Ee(Am,7),Ee(Fm,7),Ee(km,7),Ee(Rm,7),Ee(Nm,7),Ee(Lm,7)),n&2){let s;Te(s=Me())&&(i.fixedDepositProductDetailsStep=s.first),Te(s=Me())&&(i.fixedDepositProductCurrencyStep=s.first),Te(s=Me())&&(i.fixedDepositProductTermsStep=s.first),Te(s=Me())&&(i.fixedDepositProductSettingsStep=s.first),Te(s=Me())&&(i.fixedDepositProductInterestRateChartStep=s.first),Te(s=Me())&&(i.fixedDepositProductChargesStep=s.first),Te(s=Me())&&(i.fixedDepositProductAccountingStep=s.first)}},decls:30,vars:18,consts:[["fixedDepositProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"fixedDepositProductsTemplate"],[3,"fixedDepositProductsTemplate","currencyCode"],[3,"fixedDepositProductsTemplate","accountingRuleData","fixedDepositProductFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","fixedDepositProductsTemplate","chartSlabsDisplayedColumns","accountingRuleData","fixedDepositProduct"]],template:function(n,i){n&1&&(l(0,"div",1)(1,"mat-stepper",2,0),F(3,iqt,1,0,"ng-template",3)(4,nqt,1,0,"ng-template",4)(5,oqt,1,0,"ng-template",5)(6,aqt,1,0,"ng-template",6)(7,rqt,1,0,"ng-template",7),l(8,"mat-step",8),F(9,lqt,2,3,"ng-template",9),b(10,"mifosx-fixed-deposit-product-details-step",10),r(),l(11,"mat-step",8),F(12,sqt,2,3,"ng-template",9),b(13,"mifosx-fixed-deposit-product-currency-step",10),r(),l(14,"mat-step",8),F(15,cqt,2,3,"ng-template",9),b(16,"mifosx-fixed-deposit-product-terms-step",10),r(),l(17,"mat-step",8),F(18,pqt,2,3,"ng-template",9),b(19,"mifosx-fixed-deposit-product-settings-step",10),r(),l(20,"mat-step",8),F(21,mqt,2,3,"ng-template",9),b(22,"mifosx-fixed-deposit-product-interest-rate-chart-step",10),r(),l(23,"mat-step"),F(24,dqt,2,3,"ng-template",9),b(25,"mifosx-fixed-deposit-product-charges-step",11),r(),l(26,"mat-step",8),F(27,uqt,2,3,"ng-template",9),b(28,"mifosx-fixed-deposit-product-accounting-step",12),r(),E(29,hqt,3,4,"mat-step",13),r()()),n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.fixedDepositProductDetailsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductCurrencyForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductTermsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductSettingsForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(),g("stepControl",i.fixedDepositProductInterestRateChartForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate),a(3),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("currencyCode",i.fixedDepositProductCurrencyForm.get("currencyCode")),a(),g("stepControl",i.fixedDepositProductAccountingForm),a(2),g("fixedDepositProductsTemplate",i.fixedDepositProductsTemplate)("accountingRuleData",i.accountingRuleData)("fixedDepositProductFormValid",i.fixedDepositProductFormValidAndNotPrinstine),a(),I(i.fixedDepositProductFormValidAndNotPrinstine?29:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,Om,Am,Fm,km,Rm,Nm,Lm,Bu,he],encapsulation:2})}}return e})();var D6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.parent.paramMap.get("productId");return this.productsService.getFixedDepositProductAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Ch=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("id");return this.productsService.getCollateral(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var E6=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getCollaterals()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var K3=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(){return this.productsService.getCollateralTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var X3=()=>["ranges"],Z3=()=>["buckets"];function gqt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function _qt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(0),q(i.stopPropagation())}),r()}}function Cqt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,X3)),a(),v(" ",m(2,2,"labels.text.Define delinquency day ranges")," "))}function vqt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,gqt,1,0,"fa-icon",8),E(7,_qt,1,0,"fa-icon",9),E(8,Cqt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,X3)),a(),g("routerLink",oe(10,X3)),a(2),g("routerLink",oe(11,X3)),a(),h(m(5,7,"labels.heading.Manage Delinquency Ranges")),a(2),I(t.arrowBooleans[0]?-1:6),a(),I(t.arrowBooleans[0]?7:-1),a(),I(t.arrowBooleans[0]?8:-1)}}function xqt(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function bqt(e,o){if(e&1){let t=Y();l(0,"fa-icon",11),R("click",function(i){return V(t),w(2).arrowBooleansToggle(1),q(i.stopPropagation())}),r()}}function yqt(e,o){e&1&&(l(0,"p",7),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,Z3)),a(),v(" ",m(2,2,"labels.text.Define delinquency bucket as set of ranges")," "))}function Sqt(e,o){if(e&1&&(l(0,"mat-list-item",4)(1,"mat-icon",5),b(2,"fa-icon",6),r(),l(3,"h4",7),c(4),p(5,"translate"),r(),E(6,xqt,1,0,"fa-icon",8),E(7,bqt,1,0,"fa-icon",9),E(8,yqt,3,5,"p",7),r()),e&2){let t=w();g("routerLink",oe(9,Z3)),a(),g("routerLink",oe(10,Z3)),a(2),g("routerLink",oe(11,Z3)),a(),h(m(5,7,"labels.heading.Manage Delinquency Buckets")),a(2),I(t.arrowBooleans[1]?-1:6),a(),I(t.arrowBooleans[1]?7:-1),a(),I(t.arrowBooleans[1]?8:-1)}}var eS=(()=>{class e{constructor(){this.arrowBooleans=new Array(2).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-delinquency-buckets"]],decls:9,vars:2,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[3,"routerLink",4,"mifosxHasPermission"],[3,"routerLink"],["matListIcon","",3,"routerLink"],["icon","building","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list"),F(5,vqt,9,12,"mat-list-item",3),r()(),l(6,"div",2)(7,"mat-nav-list"),F(8,Sqt,9,12,"mat-list-item",3),r()()()()()),n&2&&(a(5),g("mifosxHasPermission","READ_DELINQUENCY_RANGE"),a(3),g("mifosxHasPermission","READ_DELINQUENCY_BUCKET"))},dependencies:[ue,fe,Oe,Ue,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var wqt=()=>[10,25,50,100],Pqt=()=>["create"],Tqt=e=>[e];function Mqt(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Pqt)),a(2),v(" ",m(3,2,"labels.buttons.Create Delinquency Bucket")," "))}function Dqt(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Eqt(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Iqt(e,o){e&1&&b(0,"tr",18)}function Oqt(e,o){if(e&1&&b(0,"tr",19),e&2){let t=o.$implicit;g("routerLink",Nt(1,Tqt,t.id))}}var tS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name"],this.route.data.subscribe(t=>{this.delinquencyBucketData=t.delinquencyBuckets})}ngOnInit(){this.setDatasource()}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}setDatasource(){this.dataSource=new Wt(this.delinquencyBucketData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-delinquency-bucket"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:17,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Mqt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Dqt,3,3,"th",9)(13,Eqt,2,1,"td",10),Z(),F(14,Iqt,1,0,"tr",11)(15,Oqt,1,3,"tr",12),r(),b(16,"mat-paginator",13),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_DELINQUENCY_BUCKET"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(4),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,wqt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.container[_ngcontent-%COMP%] .search-button[_ngcontent-%COMP%]{min-width:30px;margin:4px}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd).td{color:#000}"]})}}return e})();var Aqt=()=>[10,25,50,100],Fqt=()=>["create"],kqt=e=>[e];function Bqt(e,o){e&1&&(l(0,"button",18),b(1,"fa-icon",19),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Fqt)),a(2),v(" ",m(3,2,"labels.text.Create Delinquency Range")," "))}function Rqt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Classification")," "))}function Nqt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.classification)}}function Lqt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Days From")," "))}function Vqt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minimumAgeDays)}}function qqt(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Days Till")," "))}function zqt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maximumAgeDays)}}function Hqt(e,o){e&1&&b(0,"tr",24)}function Gqt(e,o){if(e&1&&b(0,"tr",25),e&2){let t=o.$implicit;g("routerLink",Nt(1,kqt,t.id))}}var iS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["classification","minimumAgeDays","maximumAgeDays"],this.route.data.subscribe(t=>{this.delinquencyRangeData=t.delinquencyRanges})}ngOnInit(){this.setDatasource()}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}setDatasource(){this.dataSource=new Wt(this.delinquencyRangeData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-delinquency-range"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:23,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","classification"],["mat-header-cell","","mat-sort-header","classification",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minimumAgeDays"],["mat-header-cell","","mat-sort-header","minimumAgeDays",4,"matHeaderCellDef"],["matColumnDef","maximumAgeDays"],["mat-header-cell","","mat-sort-header","maximumAgeDays",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header","classification"],["mat-cell",""],["mat-header-cell","","mat-sort-header","minimumAgeDays"],["mat-header-cell","","mat-sort-header","maximumAgeDays"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Bqt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,Rqt,3,3,"th",9)(13,Nqt,2,1,"td",10),Z(),X(14,11),F(15,Lqt,3,3,"th",12)(16,Vqt,2,1,"td",10),Z(),X(17,13),F(18,qqt,3,3,"th",14)(19,zqt,2,1,"td",10),Z(),F(20,Hqt,1,0,"tr",15)(21,Gqt,1,3,"tr",16),r(),b(22,"mat-paginator",17),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_DELINQUENCY_RANGE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Aqt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.container[_ngcontent-%COMP%] .search-button[_ngcontent-%COMP%]{min-width:30px;margin:4px}table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(odd).td{color:#000}"]})}}return e})();var Nu=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("bucketId");return n===null?this.productsService.getDelinquencyBuckets():this.productsService.getDelinquencyBucket(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Wm=(()=>{class e{constructor(){this.productsService=T(ci)}resolve(t){let n=t.paramMap.get("rangeId");return n===null?this.productsService.getDelinquencyRanges():this.productsService.getDelinquencyRange(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var jqt=()=>["edit"];function $qt(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,jqt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Uqt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.deleteDelinquencyRange())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}var nS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.productsService=T(ci),this.route.data.subscribe(t=>{this.delinquencyRangeData=t.delinquencyRange})}deleteDelinquencyRange(){this.dialog.open(vi,{data:{deleteContext:this.delinquencyRangeData.classification}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteDelinquencyRange(this.delinquencyRangeData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-range"]],decls:22,vars:14,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,$qt,4,5,"button",1)(2,Uqt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_DELINQUENCY_RANGE"),a(),g("mifosxHasPermission","DELETE_DELINQUENCY_RANGE"),a(6),v(" ",m(9,8,"labels.inputs.Classification")," "),a(3),v(" ",i.delinquencyRangeData.classification," "),a(2),v(" ",m(14,10,"labels.inputs.Days From")," "),a(3),v(" ",i.delinquencyRangeData.minimumAgeDays," "),a(2),v(" ",m(19,12,"labels.inputs.Days Till")," "),a(3),v(" ",i.delinquencyRangeData.maximumAgeDays," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var Wqt=()=>["../"];function Qqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Classification")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Yqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Days From")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Jqt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.delinquencyRangeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var oS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.delinquencyRangeData=t.delinquencyRange})}ngOnInit(){this.setInputForm()}setInputForm(){this.delinquencyRangeForm=this.formBuilder.group({classification:[this.delinquencyRangeData.classification,[ce.required]],minimumAgeDays:[this.delinquencyRangeData.minimumAgeDays,[ce.required,ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e3)]],maximumAgeDays:[this.delinquencyRangeData.maximumAgeDays,[ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e4)]]})}submit(){let t=this.delinquencyRangeForm.value,n=this.settingsService.language.code,i=qt(at({},t),{locale:n});this.productsService.updateDelinquencyRange(this.delinquencyRangeData.id,i).subscribe(s=>{this.router.navigate(["../../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-range"]],decls:27,vars:18,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","classification"],["matInput","","type","number","required","","formControlName","minimumAgeDays"],["matInput","","type","number","formControlName","maximumAgeDays"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Qqt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,Yqt,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),r()()(),l(22,"mat-card-actions",6)(23,"button",7),c(24),p(25,"translate"),r(),F(26,Jqt,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.delinquencyRangeForm),a(5),h(m(8,9,"labels.inputs.Classification")),a(3),I(i.delinquencyRangeForm.controls.classification.hasError("required")?10:-1),a(3),h(m(14,11,"labels.inputs.Days From")),a(3),I(i.delinquencyRangeForm.controls.minimumAgeDays.hasError("required")?16:-1),a(3),h(m(20,13,"labels.inputs.Days Till")),a(4),g("routerLink",oe(17,Wqt)),a(),v(" ",m(25,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_DELINQUENCY_RANGE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var Kqt=()=>["../"];function Xqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Classification")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zqt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Days From")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ezt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Days From")," must be a positive number. "))}function tzt(e,o){if(e&1&&(l(0,"button",9),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.delinquencyRangeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var aS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.route=T(Ie),this.router=T(qe),this.settingsService=T(Ot)}ngOnInit(){this.setInputForm()}setInputForm(){this.delinquencyRangeForm=this.formBuilder.group({classification:["",[ce.required]],minimumAgeDays:[0,[ce.required,ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e3)]],maximumAgeDays:["",[ce.pattern("^(0*[1-9][0-9]*?)$"),ce.max(1e4)]]})}submit(){let t=this.delinquencyRangeForm.value,n=this.settingsService.language.code,i=qt(at({},t),{locale:n});this.productsService.createDelinquencyRange(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-range"]],decls:28,vars:19,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","classification"],["matInput","","type","number","required","","formControlName","minimumAgeDays","min","1"],["matInput","","type","number","formControlName","maximumAgeDays"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Xqt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),E(16,Zqt,7,9,"mat-error"),E(17,ezt,3,3,"mat-error"),r(),l(18,"mat-form-field")(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",5),r()()(),l(23,"mat-card-actions",6)(24,"button",7),c(25),p(26,"translate"),r(),F(27,tzt,3,4,"button",8),r()()()()),n&2&&(a(2),g("formGroup",i.delinquencyRangeForm),a(5),h(m(8,10,"labels.inputs.Classification")),a(3),I(i.delinquencyRangeForm.controls.classification.hasError("required")?10:-1),a(3),h(m(14,12,"labels.inputs.Days From")),a(3),I(i.delinquencyRangeForm.controls.minimumAgeDays.hasError("required")?16:-1),a(),I(i.delinquencyRangeForm.controls.minimumAgeDays.hasError("pattern")?17:-1),a(3),h(m(21,14,"labels.inputs.Days Till")),a(4),g("routerLink",oe(18,Kqt)),a(),v(" ",m(26,16,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_DELINQUENCY_RANGE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var izt=()=>["../"];function nzt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ozt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function azt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","classification")," ")}}function rzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days From")))}function lzt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","minimumAgeDays")," ")}}function szt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days Till")))}function czt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","maximumAgeDays")," ")}}function pzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function mzt(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"button",23),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.deleteDelinquencyRange(i))}),b(3,"fa-icon",24),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Delete"))))}function dzt(e,o){e&1&&b(0,"tr",25)}function uzt(e,o){e&1&&b(0,"tr",26)}function fzt(e,o){if(e&1&&(l(0,"button",27),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.bucketForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var rS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.router=T(qe),this.route=T(Ie),this.dialog=T(Ht),this.translateService=T(yi),this.displayedColumns=["classification","minimumAgeDays","maximumAgeDays","actions"],this.route.data.subscribe(t=>{this.delinquencyRangesData=t.delinquencyRanges,this.delinquencyRangesData=this.delinquencyRangesData.sort((n,i)=>n.minimumAgeDays-i.minimumAgeDays)})}ngOnInit(){this.setupForm(),this.rangesDataSource=[],this.delinquencyRangesIds=[]}setupForm(){this.bucketForm=this.formBuilder.group({name:["",ce.required]})}addDelinquencyRange(){let t=this.delinquencyRangesData;this.delinquencyRangesIds.length>0&&(t=this.delinquencyRangesData.filter(d=>this.delinquencyRangesIds.indexOf(d.id)<0));let n=[new $i({controlName:"rangeId",label:"Delinquency Range",options:{label:"classification",value:"id",data:t},order:1})],i={title:"Add Delinquency Range",layout:{addButtonText:"Add"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{d.data&&(this.rangesDataSource=this.rangesDataSource.concat(d.data.value),this.delinquencyRangesIds.push(d.data.value.rangeId))})}deleteDelinquencyRange(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.delinquencyRangesIds.splice(t,1),this.rangesDataSource.splice(t,1),this.rangesDataSource=this.rangesDataSource.concat([]))})}submit(){let t=[];if(this.rangesDataSource.forEach(n=>{t.push(n.rangeId)}),t.length>0){let n=qt(at({},this.bucketForm.value),{ranges:t});this.productsService.createDelinquencyBucket(n).subscribe(i=>{this.router.navigate(["../",i.resourceId],{relativeTo:this.route})})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-bucket"]],decls:39,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","classification"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minimumAgeDays"],["matColumnDef","maximumAgeDays"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,nzt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addDelinquencyRange()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,ozt,3,3,"th",11)(22,azt,3,6,"td",12),Z(),X(23,13),F(24,rzt,3,3,"th",11)(25,lzt,3,6,"td",12),Z(),X(26,14),F(27,szt,3,3,"th",11)(28,czt,3,6,"td",12),Z(),X(29,15),F(30,pzt,3,3,"th",11)(31,mzt,4,4,"td",12),Z(),F(32,dzt,1,0,"tr",16)(33,uzt,1,0,"tr",17),r()()(),l(34,"mat-card-actions",18)(35,"button",19),c(36),p(37,"translate"),r(),F(38,fzt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.bucketForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.bucketForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.heading.Delinquency Ranges")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.rangesDataSource)("hidden",i.rangesDataSource.length===0),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,izt)),a(),v(" ",m(37,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_DELINQUENCY_BUCKET"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var hzt=()=>["../"];function gzt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _zt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Classification")))}function Czt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.classification)}}function vzt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","classification")," ")}}function xzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days From")))}function bzt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minimumAgeDays)}}function yzt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","minimumAgeDays")," ")}}function Szt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Days Till")))}function wzt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maximumAgeDays)}}function Pzt(e,o){if(e&1&&(l(0,"td",22),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.rangeId,n.delinquencyRangesData,"id","maximumAgeDays")," ")}}function Tzt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Mzt(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"button",23),p(2,"translate"),R("click",function(){let i=V(t).index,s=w();return q(s.deleteDelinquencyRange(i))}),b(3,"fa-icon",24),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.Delete"))))}function Dzt(e,o){e&1&&b(0,"tr",25)}function Ezt(e,o){e&1&&b(0,"tr",26)}function Izt(e,o){if(e&1&&(l(0,"button",27),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.dataWasChanged),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var lS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.productsService=T(ci),this.router=T(qe),this.route=T(Ie),this.dialog=T(Ht),this.translateService=T(yi),this.dataWasChanged=!1,this.displayedColumns=["classification","minimumAgeDays","maximumAgeDays","actions"],this.route.data.subscribe(t=>{this.delinquencyRangesData=t.delinquencyRanges,this.rangesDataSource=[],this.delinquencyRangesIds=[],this.delinquencyRangesData=this.delinquencyRangesData.sort((n,i)=>n.minimumAgeDays-i.minimumAgeDays),this.delinquencyBucketData=t.delinquencyBucket,this.delinquencyBucketId=t.delinquencyBucket.id,this.rangesDataSource=this.delinquencyBucketData.ranges,this.rangesDataSource.forEach(n=>{this.delinquencyRangesIds.push(n.id)})})}ngOnInit(){this.setupForm()}setupForm(){this.bucketForm=this.formBuilder.group({name:[{value:this.delinquencyBucketData.name,disabled:!0},ce.required]})}addDelinquencyRange(){let t=this.delinquencyRangesData;this.delinquencyRangesIds.length>0&&(t=this.delinquencyRangesData.filter(d=>this.delinquencyRangesIds.indexOf(d.id)<0));let n=[new $i({controlName:"rangeId",label:"Delinquency Range",options:{label:"classification",value:"id",data:t},order:1})],i={title:"Add Delinquency Range",layout:{addButtonText:"Add"},formfields:n};this.dialog.open(an,{data:i}).afterClosed().subscribe(d=>{if(d.data){let u=d.data.value,f=this.delinquencyRangesData.filter(_=>_.id===u.rangeId);this.rangesDataSource=this.rangesDataSource.concat(f),this.delinquencyRangesIds.push(f.id),this.dataWasChanged=!0}})}deleteDelinquencyRange(t){this.dialog.open(vi,{data:{deleteContext:this.translateService.instant("labels.text.this")}}).afterClosed().subscribe(i=>{i.delete&&(this.delinquencyRangesIds.splice(t,1),this.rangesDataSource.splice(t,1),this.rangesDataSource=this.rangesDataSource.concat([]),this.dataWasChanged=!0)})}submit(){let t=[];if(this.rangesDataSource.forEach(n=>{t.push(n.id)}),t.length>0){let n=qt(at({},this.bucketForm.value),{ranges:t});this.productsService.updateDelinquencyBucket(this.delinquencyBucketId,n).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-bucket"]],decls:42,vars:21,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-100"],["matInput","","required","","formControlName","name"],[1,"mat-h3","flex-40"],[1,"flex-40","layout-row","align-start-center"],["type","button","mat-raised-button","","color","primary",3,"click"],["icon","plus",1,"m-r-10"],["mat-table","",3,"dataSource","hidden"],["matColumnDef","classification"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minimumAgeDays"],["matColumnDef","maximumAgeDays"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["type","button","mat-icon-button","","color","warn","matTooltipPosition","left",3,"click","matTooltip"],["icon","trash"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,gzt,7,9,"mat-error"),r(),l(11,"h3",5),c(12),p(13,"translate"),r(),l(14,"div",6)(15,"button",7),R("click",function(){return i.addDelinquencyRange()}),b(16,"fa-icon",8),c(17),p(18,"translate"),r()(),l(19,"table",9),X(20,10),F(21,_zt,3,3,"th",11)(22,Czt,2,1,"td",12)(23,vzt,3,6,"td",12),Z(),X(24,13),F(25,xzt,3,3,"th",11)(26,bzt,2,1,"td",12)(27,yzt,3,6,"td",12),Z(),X(28,14),F(29,Szt,3,3,"th",11)(30,wzt,2,1,"td",12)(31,Pzt,3,6,"td",12),Z(),X(32,15),F(33,Tzt,3,3,"th",11)(34,Mzt,4,4,"td",12),Z(),F(35,Dzt,1,0,"tr",16)(36,Ezt,1,0,"tr",17),r()()(),l(37,"mat-card-actions",18)(38,"button",19),c(39),p(40,"translate"),r(),F(41,Izt,3,4,"button",20),r()()()()),n&2&&(a(2),g("formGroup",i.bucketForm),a(5),h(m(8,12,"labels.inputs.Name")),a(3),I(i.bucketForm.controls.name.hasError("required")?10:-1),a(2),h(m(13,14,"labels.heading.Delinquency Ranges")),a(5),v(" ",m(18,16,"labels.buttons.Add")," "),a(2),g("dataSource",i.rangesDataSource)("hidden",i.rangesDataSource.length===0),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(20,hzt)),a(),v(" ",m(40,18,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_DELINQUENCY_BUCKET"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,ke,_t,xt,vt,bt,Ct,yt,wi,si,St,Pt,wt,Tt,he,Qn],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}"]})}}return e})();var Ozt=()=>["edit"];function Azt(e,o){e&1&&(l(0,"button",11),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Ozt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Fzt(e,o){if(e&1){let t=Y();l(0,"button",13),R("click",function(){V(t);let i=w();return q(i.deleteDelinquencyBucket())}),b(1,"fa-icon",14),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function kzt(e,o){if(e&1&&(l(0,"div",10)(1,"div",15),c(2),r(),l(3,"div",16),c(4),r(),l(5,"div",16),c(6),r()()),e&2){let t=o.$implicit;a(2),v(" ",t.classification," "),a(2),v(" ",t.minimumAgeDays," "),a(2),v(" ",t.maximumAgeDays," ")}}var sS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.productsService=T(ci),this.route.data.subscribe(t=>{this.delinquencyBucketData=t.delinquencyBucket,this.delinquencyBucketData.ranges=this.delinquencyBucketData.ranges.sort((n,i)=>n.minimumAge-i.minimumAge)})}deleteDelinquencyBucket(){this.dialog.open(vi,{data:{deleteContext:this.delinquencyBucketData.name}}).afterClosed().subscribe(n=>{n.delete&&this.productsService.deleteDelinquencyBucket(this.delinquencyBucketData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-bucket"]],decls:25,vars:18,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100","layout-row","m-b-10"],[1,"flex-30","mat-body-strong"],[1,"flex-70"],[1,"flex-60","mat-body-strong"],[1,"mat-body-strong","flex-20"],[1,"layout-row-wrap","bucket-range"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],[1,"flex-60"],[1,"flex-20","r-value"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Azt,4,5,"button",1)(2,Fzt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5)(8,"div",6),c(9),p(10,"translate"),r(),l(11,"div",7),c(12),r()(),l(13,"div",8),c(14),p(15,"translate"),p(16,"translate"),r(),l(17,"div",9),c(18),p(19,"translate"),r(),l(20,"div",9),c(21),p(22,"translate"),r()(),Se(23,kzt,7,3,"div",10,Pe),r()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_DELINQUENCY_BUCKET"),a(),g("mifosxHasPermission","DELETE_DELINQUENCY_BUCKET"),a(7),v(" ",m(10,8,"labels.inputs.Name")," "),a(3),v(" ",i.delinquencyBucketData.name," "),a(2),le(" ",m(15,10,"labels.inputs.Classification")," ",m(16,12,"labels.inputs.Name")," "),a(4),v(" ",m(19,14,"labels.inputs.Days From")," "),a(3),v(" ",m(22,16,"labels.inputs.Days Till")," "),a(2),we(i.delinquencyBucketData.ranges))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:.8rem 0;word-wrap:break-word}.bucket-range[_ngcontent-%COMP%]{height:2rem;vertical-align:middle}.r-value[_ngcontent-%COMP%]{margin:0!important;padding:0 35px 0 0!important;text-align:right!important}"]})}}return e})();var eX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_product_loan")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Bzt=()=>["../edit"];function Rzt(e,o){if(e&1){let t=Y();l(0,"button",4),R("click",function(){V(t);let i=w();return q(i.exportDefinition())}),b(1,"fa-icon",5),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Export")," "))}function Nzt(e,o){e&1&&(l(0,"button",6),b(1,"fa-icon",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Bzt)),a(2),v("",m(3,2,"labels.buttons.Edit")," "))}var cS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.productsService=T(ci),this.settingsService=T(Ot),this.translateService=T(yi),this.useDueForRepaymentsConfigurations=!1,this.route.data.subscribe(t=>{this.loanProduct=t.loanProduct,this.useDueForRepaymentsConfigurations=!this.loanProduct.dueDaysForRepaymentEvent&&!this.loanProduct.overDueDaysForRepaymentEvent})}ngOnInit(){this.loanProduct.allowAttributeConfiguration=Object.values(this.loanProduct.allowAttributeOverrides).some(t=>t)}exportDefinition(){let t=this.loanProduct;delete t.id;let n=t.name.replace(" ","_")+".json",i=document.createElement("a");i.setAttribute("href","data:text/plain;charset=utf-u,"+encodeURIComponent(JSON.stringify(t,null,2))),i.setAttribute("download",n),document.body.appendChild(i),i.click(),document.body.removeChild(i)}copyProduct(){let t=`${this.loanProduct.name.replace(" ","_")}_${this.translateService.instant("labels.text.Copy")}`,n=JSON.parse(JSON.stringify(this.loanProduct)),i=[new vn({controlName:"name",label:this.translateService.instant("labels.inputs.Name"),value:t,type:"text",required:!0,order:2}),new vn({controlName:"shortName",label:this.translateService.instant("labels.inputs.Short Name"),value:"",type:"text",required:!0,order:2})],s={title:`${this.translateService.instant("labels.buttons.Create")} ${this.translateService.instant("labels.inputs.Loan Product")}`,layout:{addButtonText:this.translateService.instant("labels.buttons.Create")},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{if(u.data){n.name=u.data.value.name,n.shortName=u.data.value.shortName,n.delinquencyBucketId=n.delinquencyBucket?n.delinquencyBucket.id:null,n.currencyCode=n.currency?n.currency.code:null,n.interestRatePerPeriod=n.annualInterestRate,n.transactionProcessingStrategyCode=n.transactionProcessingStrategyName,n.allowPartialPeriodInterestCalculation=n.allowPartialPeriodInterestCalculation,n.locale=this.settingsService.language.code;let f=n.daysInMonthType.value;n.daysInMonthType=f,f=n.daysInYearType.value,n.daysInYearType=f,f=n.amortizationType.id,n.amortizationType=f,delete n.id,delete n.advancedPaymentAllocationTransactionTypes,delete n.advancedPaymentAllocationTypes,delete n.creditAllocationTransactionTypes,delete n.creditAllocationAllocationTypes,delete n.delinquencyBucketOptions,delete n.allowAttributeConfiguration,delete n.status,delete n.delinquencyBucket,delete n.currency,delete n.isRatesEnabled,delete n.annualInterestRate,delete n.transactionProcessingStrategyName,delete n.allowPartialPeriodInterestCalculation,delete n.advancedPaymentAllocationFutureInstallmentAllocationRules,this.productsService.createLoanProduct(n).subscribe(_=>{this.router.navigate(["../",_.resourceId],{relativeTo:this.route})})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:4,vars:8,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20","m-t-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[3,"action","loanProduct","useDueForRepaymentsConfigurations","paymentAllocations","creditAllocations","supportedInterestRefundTypes"],["mat-raised-button","","color","primary",3,"click"],["icon","download",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Rzt,4,3,"button",1)(2,Nzt,4,5,"button",2),r(),b(3,"mifosx-loan-product-summary",3)),n&2&&(a(),g("mifosxHasPermission","UPDATE_LOANPRODUCT"),a(),g("mifosxHasPermission","UPDATE_LOANPRODUCT"),a(),g("action","view")("loanProduct",i.loanProduct)("useDueForRepaymentsConfigurations",i.useDueForRepaymentsConfigurations)("paymentAllocations",i.loanProduct.paymentAllocation)("creditAllocations",i.loanProduct.creditAllocation)("supportedInterestRefundTypes",i.loanProduct.supportedInterestRefundTypes))},dependencies:[ue,fe,Oe,xe,Ke,ke,Ou,he],encapsulation:2})}}return e})();var pS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.loanProductDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Loan Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var tX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("productId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var mS=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("productId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var dS=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_savings_product")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Lzt=()=>["../edit"];function Vzt(e,o){e&1&&(l(0,"button",13),b(1,"fa-icon",14),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Lzt)),a(2),v("",m(3,2,"labels.buttons.Edit")," "))}function qzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.savingProduct.description)}}function zzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Opening Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredOpeningBalance))}}function Hzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(3),h(t.savingProduct.lockinPeriodFrequency+" "+t.savingProduct.lockinPeriodFrequencyType.value)}}function Gzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Balance Required for Interest Calculation"),":"),a(3),h(m(6,4,t.savingProduct.minBalanceForInterestCalculation))}}function jzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Balance"),":"),a(3),h(m(6,4,t.savingProduct.minRequiredBalance))}}function $zt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Tax Group"),":"),a(3),h(t.savingProduct.taxGroup.name)}}function Uzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),a(3),h(t.savingProduct.minOverdraftForInterestCalculation)}}function Wzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),a(3),v("",t.savingProduct.nominalAnnualInterestRateOverdraft," %")}}function Qzt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),a(3),h(m(6,4,t.savingProduct.overdraftLimit))}}function Yzt(e,o){if(e&1&&(l(0,"div",10)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r(),l(6,"span",8),c(7),p(8,"translate"),r(),l(9,"span",9),c(10),r(),l(11,"span",8),c(12),p(13,"translate"),r(),l(14,"span",9),c(15),r()()),e&2){let t=w();a(2),v("",m(3,6,"labels.inputs.Number of Days to Inactive sub-status"),":"),a(3),h(t.savingProduct.daysToInactive),a(2),v("",m(8,8,"labels.inputs.Number of Days to Dormant sub-status"),":"),a(3),h(t.savingProduct.daysToDormancy),a(2),v("",m(13,10,"labels.inputs.Number of Days to Escheat"),":"),a(3),h(t.savingProduct.daysToEscheat)}}function Jzt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function Kzt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function Xzt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function Zzt(e,o){if(e&1&&(l(0,"td",25),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function eHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function tHt(e,o){if(e&1&&(l(0,"td",25),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function iHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function nHt(e,o){if(e&1&&(l(0,"td",25),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function oHt(e,o){e&1&&b(0,"tr",26)}function aHt(e,o){e&1&&b(0,"tr",27)}function rHt(e,o){if(e&1&&(l(0,"div",10)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5),l(5,"table",15),X(6,16),F(7,Jzt,3,3,"th",17)(8,Kzt,2,1,"td",18),Z(),X(9,19),F(10,Xzt,3,3,"th",17)(11,Zzt,3,4,"td",18),Z(),X(12,20),F(13,eHt,3,3,"th",17)(14,tHt,3,3,"td",18),Z(),X(15,21),F(16,iHt,3,3,"th",17)(17,nHt,3,4,"td",18),Z(),F(18,oHt,1,0,"tr",22)(19,aHt,1,0,"tr",23),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",t.savingProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function lHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function sHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function cHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function pHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.fundSourceAccount.glCode,") ",t.fundSourceAccount.name," ")}}function mHt(e,o){e&1&&b(0,"tr",26)}function dHt(e,o){e&1&&b(0,"tr",27)}function uHt(e,o){if(e&1&&(l(0,"div",12)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",29),X(5,30),F(6,lHt,3,3,"th",17)(7,sHt,2,1,"td",18),Z(),X(8,31),F(9,cHt,3,3,"th",17)(10,pHt,2,2,"td",18),Z(),F(11,mHt,1,0,"tr",22)(12,dHt,1,0,"tr",23),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fund Sources for Payment Channels")),a(2),g("dataSource",t.savingProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function fHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function hHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function gHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function _Ht(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function CHt(e,o){e&1&&b(0,"tr",26)}function vHt(e,o){e&1&&b(0,"tr",27)}function xHt(e,o){if(e&1&&(l(0,"div",12)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",15),X(5,32),F(6,fHt,3,3,"th",17)(7,hHt,2,1,"td",18),Z(),X(8,33),F(9,gHt,3,3,"th",17)(10,_Ht,2,2,"td",18),Z(),F(11,CHt,1,0,"tr",22)(12,vHt,1,0,"tr",23),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fees to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function bHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function yHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function SHt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function wHt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),le(" (",t.incomeAccount.glCode,") ",t.incomeAccount.name," ")}}function PHt(e,o){e&1&&b(0,"tr",26)}function THt(e,o){e&1&&b(0,"tr",27)}function MHt(e,o){if(e&1&&(l(0,"div",12)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"table",29),X(5,32),F(6,bHt,3,3,"th",17)(7,yHt,2,1,"td",18),Z(),X(8,33),F(9,SHt,3,3,"th",17)(10,wHt,2,2,"td",18),Z(),F(11,PHt,1,0,"tr",22)(12,THt,1,0,"tr",23),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.savingProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function DHt(e,o){if(e&1&&(l(0,"div",12)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5),E(5,uHt,13,6,"div",12),E(6,xHt,13,6,"div",12),E(7,MHt,13,6,"div",12),r()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Advanced Accounting Rules")),a(2),g("inset",!0),a(),I(t.savingProduct.paymentChannelToFundSourceMappings!=null&&t.savingProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.savingProduct.feeToIncomeAccountMappings!=null&&t.savingProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.savingProduct.penaltyToIncomeAccountMappings!=null&&t.savingProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var uS=(()=>{class e{constructor(){this.route=T(Ie),this.accounting=T(To),this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.route.data.subscribe(t=>{this.savingProduct=t.savingProduct})}isCashOrAccrualAccounting(){return this.accounting.isCashOrAccrualAccounting(this.savingProduct.accountingRule)}isAccrualAccounting(){return this.accounting.isAccrualAccounting(this.savingProduct.accountingRule)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-general-tab"]],decls:134,vars:117,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary","class","m-t-20",3,"routerLink",4,"mifosxHasPermission"],[1,"tab-container"],[1,"responsive-column"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"flex-100",3,"accountingRule","accountingMappings"],[1,"flex-fill","layout-row-wrap","responsive-column"],["mat-raised-button","","color","primary",1,"m-t-20",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"mat-h4","flex-fill"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Vzt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"h2",4),c(5),r(),b(6,"mat-divider",5),l(7,"h3",6),c(8),p(9,"translate"),r(),b(10,"mat-divider",5),l(11,"div",7)(12,"span",8),c(13),p(14,"translate"),r(),l(15,"span",9),c(16),r()(),E(17,qzt,6,4,"div",7),l(18,"h3",6),c(19),p(20,"translate"),r(),b(21,"mat-divider",5),l(22,"div",7)(23,"span",8),c(24),p(25,"translate"),r(),l(26,"span",9),c(27),r()(),l(28,"div",7)(29,"span",8),c(30),p(31,"translate"),r(),l(32,"span",9),c(33),r()(),l(34,"div",7)(35,"span",8),c(36),p(37,"translate"),r(),l(38,"span",9),c(39),r()(),l(40,"h3",6),c(41),p(42,"translate"),r(),b(43,"mat-divider",5),l(44,"div",7)(45,"span",8),c(46),p(47,"translate"),r(),l(48,"span",9),c(49),p(50,"formatNumber"),r()(),l(51,"div",7)(52,"span",8),c(53),p(54,"translate"),r(),l(55,"span",9),c(56),p(57,"translateKey"),r()(),l(58,"div",7)(59,"span",8),c(60),p(61,"translate"),r(),l(62,"span",9),c(63),p(64,"translateKey"),r()(),l(65,"div",7)(66,"span",8),c(67),p(68,"translate"),r(),l(69,"span",9),c(70),p(71,"translateKey"),r()(),l(72,"div",7)(73,"span",8),c(74),p(75,"translate"),r(),l(76,"span",9),c(77),p(78,"translateKey"),r()(),l(79,"h3",6),c(80),p(81,"translate"),r(),b(82,"mat-divider",5),E(83,zzt,7,6,"div",7),E(84,Hzt,6,4,"div",7),l(85,"div",7)(86,"span",8),c(87),p(88,"translate"),r(),l(89,"span",9),c(90),p(91,"yesNo"),r()(),E(92,Gzt,7,6,"div",7),l(93,"div",7)(94,"span",8),c(95),p(96,"translate"),r(),l(97,"span",9),c(98),p(99,"yesNo"),r()(),E(100,jzt,7,6,"div",7),l(101,"div",7)(102,"span",8),c(103),p(104,"translate"),r(),l(105,"span",9),c(106),p(107,"yesNo"),r()(),E(108,$zt,6,4,"div",7),l(109,"div",7)(110,"span",8),c(111),p(112,"translate"),r(),l(113,"span",9),c(114),p(115,"yesNo"),r()(),E(116,Uzt,6,4,"div",7),E(117,Wzt,6,4,"div",7),E(118,Qzt,7,6,"div",7),l(119,"div",7)(120,"span",8),c(121),p(122,"translate"),r(),l(123,"span",9),c(124),p(125,"yesNo"),r()(),E(126,Yzt,16,12,"div",10),E(127,rHt,20,7,"div",10),l(128,"h3",6),c(129),p(130,"translate"),r(),b(131,"mat-divider",5)(132,"mifosx-view-savings-accounting-details",11),E(133,DHt,8,7,"div",12),r()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_SAVINGSPRODUCT"),a(4),h(i.savingProduct.name),a(),g("inset",!0),a(2),h(m(9,55,"labels.heading.Details")),a(2),g("inset",!0),a(3),v("",m(14,57,"labels.inputs.Short Name"),":"),a(3),h(i.savingProduct.shortName),a(),I(i.savingProduct.description?17:-1),a(2),h(m(20,59,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(25,61,"labels.inputs.Currency"),":"),a(3),h(i.savingProduct.currency.name),a(3),v("",m(31,63,"labels.inputs.Decimal Places"),":"),a(3),h(i.savingProduct.currency.decimalPlaces),a(3),v("",m(37,65,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.savingProduct.currency.inMultiplesOf),a(2),h(m(42,67,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(47,69,"labels.inputs.Nominal Annual Interest"),":"),a(3),v("",m(50,71,i.savingProduct.nominalAnnualInterestRate)," %"),a(4),v("",m(54,73,"labels.inputs.Interest Compounding Period"),":"),a(3),h(Ft(57,75,i.savingProduct.interestCompoundingPeriodType.value,"catalogs")),a(4),v("",m(61,78,"labels.inputs.Interest Posting Period"),":"),a(3),h(Ft(64,80,i.savingProduct.interestPostingPeriodType.value,"catalogs")),a(4),v("",m(68,83,"labels.inputs.Interest Calculated using"),":"),a(3),h(Ft(71,85,i.savingProduct.interestCalculationType.value,"catalogs")),a(4),v("",m(75,88,"labels.inputs.Days in Year"),":"),a(3),h(Ft(78,90,i.savingProduct.interestCalculationDaysInYearType.value,"catalogs")),a(3),h(m(81,93,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(i.savingProduct.minRequiredOpeningBalance?83:-1),a(),I(i.savingProduct.lockinPeriodFrequency?84:-1),a(3),v("",m(88,95,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),a(3),h(m(91,97,i.savingProduct.withdrawalFeeForTransfers)),a(2),I(i.savingProduct.minBalanceForInterestCalculation?92:-1),a(3),v("",m(96,99,"labels.inputs.Enforce Minimum Balance"),":"),a(3),h(m(99,101,i.savingProduct.enforceMinRequiredBalance)),a(2),I(i.savingProduct.minRequiredBalance?100:-1),a(3),v("",m(104,103,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(107,105,i.savingProduct.withHoldTax)),a(2),I(i.savingProduct.withHoldTax?108:-1),a(3),v("",m(112,107,"labels.inputs.Is Overdraft Allowed"),":"),a(3),h(m(115,109,i.savingProduct.allowOverdraft)),a(2),I(i.savingProduct.minOverdraftForInterestCalculation?116:-1),a(),I(i.savingProduct.nominalAnnualInterestRateOverdraft?117:-1),a(),I(i.savingProduct.overdraftLimit?118:-1),a(3),v("",m(122,111,"labels.inputs.Enable Dormancy Tracking"),":"),a(3),h(m(125,113,i.savingProduct.isDormancyTrackingActive)),a(2),I(i.savingProduct.isDormancyTrackingActive?126:-1),a(),I(i.savingProduct.charges.length?127:-1),a(2),h(m(130,115,"labels.heading.Accounting")),a(2),g("inset",!0),a(),g("accountingRule",i.savingProduct.accountingRule)("accountingMappings",i.savingProduct.accountingMappings),a(),I(i.savingProduct.paymentChannelToFundSourceMappings!=null&&i.savingProduct.paymentChannelToFundSourceMappings.length||i.savingProduct.feeToIncomeAccountMappings!=null&&i.savingProduct.feeToIncomeAccountMappings.length||i.savingProduct.penaltyToIncomeAccountMappings!=null&&i.savingProduct.penaltyToIncomeAccountMappings.length?133:-1))},dependencies:[ue,fe,Oe,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,he,ki,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.interestCarts[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var fS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.savingProductDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-saving-product-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var EHt=()=>["../edit"];function IHt(e,o){e&1&&(l(0,"button",14),b(1,"fa-icon",15),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,EHt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function OHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.fixedDepositProductData.description)}}function AHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Lock-in Period"),":"),a(3),le(" ",t.fixedDepositProductData.lockinPeriodFrequency," ",t.fixedDepositProductData.lockinPeriodFrequencyType.value)}}function FHt(e,o){if(e&1&&(l(0,"span",9),c(1),r()),e&2){let t=w(2);a(),le("",t.fixedDepositProductData.minDepositTerm," \xA0 ",t.fixedDepositProductData.minDepositTermType.value)}}function kHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),E(4,FHt,2,2,"span",9),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Deposit Term"),":"),a(2),I(t.fixedDepositProductData.minDepositTerm!==void 0?4:-1)}}function BHt(e,o){if(e&1&&(l(0,"span",9),c(1),r()),e&2){let t=w(2);a(),le("",t.fixedDepositProductData.maxDepositTerm," \xA0 ",t.fixedDepositProductData.maxDepositTermType.value)}}function RHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),E(4,BHt,2,2,"span",9),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Deposit Term"),":"),a(2),I(t.fixedDepositProductData.maxDepositTerm!==void 0?4:-1)}}function NHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Deposit Term In multiple of"),":"),a(3),le("",t.fixedDepositProductData.inMultiplesOfDepositTerm," - ",t.fixedDepositProductData.inMultiplesOfDepositTermType.value)}}function LHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Penal Interest")," (%):"),a(3),le("",t.fixedDepositProductData.preClosurePenalInterest," \xA0 \xA0 % \xA0 \xA0 On \xA0\xA0 ",t.fixedDepositProductData.preClosurePenalInterestOnType.value)}}function VHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"formatNumber"),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Balance Required for Interest Calculation"),":"),a(3),h(m(6,4,t.fixedDepositProductData.minBalanceForInterestCalculation))}}function qHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Withhold Tax group"),":"),a(3),h(t.fixedDepositProductData.taxGroup.name)}}function zHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.fixedDepositProductData.activeChart.name)}}function HHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.fixedDepositProductData.activeChart.description)}}function GHt(e,o){if(e&1&&(l(0,"div",7)(1,"span",8),c(2),p(3,"translate"),r(),l(4,"span",9),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.fixedDepositProductData.activeChart.endDate))}}function jHt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function $Ht(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),ea("",t.fromPeriod," - ",t.toPeriod," ",t.periodType.value)}}function UHt(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function WHt(e,o){if(e&1&&(l(0,"td",29),E(1,$Ht,2,3,"div"),E(2,UHt,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.fromPeriod!==void 0?1:-1),a(),I(t.fromPeriod===void 0?2:-1)}}function QHt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function YHt(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),le("",t.amountRangeFrom," - ",t.amountRangeTo)}}function JHt(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function KHt(e,o){if(e&1&&(l(0,"td",29),E(1,YHt,2,2,"div"),E(2,JHt,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.amountRangeFrom!==void 0?1:-1),a(),I(t.amountRangeFrom===void 0?2:-1)}}function XHt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function ZHt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v("",t.annualInterestRate," %")}}function eGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function tGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function iGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function nGt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",31),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function oGt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",32),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function aGt(e,o){if(e&1){let t=Y();l(0,"td",29)(1,"button",30),R("click",function(){let i=V(t).dataIndex,s=w(2);return q(s.expandChartSlabIndex=s.expandChartSlabIndex===i?null:i)}),E(2,nGt,4,3,"span"),E(3,oGt,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2);a(2),I(n.expandChartSlabIndex!==t?2:-1),a(),I(n.expandChartSlabIndex===t?3:-1)}}function rGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function lGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.entityType,n.fixedDepositProductsTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function sGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function cGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.attributeName,n.fixedDepositProductsTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function pGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function mGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.conditionType,n.fixedDepositProductsTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function dGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function uGt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.genderOptions,"id","name"))}}function fGt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function hGt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function gGt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.fixedDepositProductsTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function _Gt(e,o){if(e&1&&(l(0,"td",29),E(1,uGt,3,6,"span")(2,fGt,2,1,"span")(3,hGt,3,6,"span")(4,gGt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function CGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function vGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incentiveType,n.fixedDepositProductsTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function xGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function bGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function yGt(e,o){e&1&&b(0,"tr",43)}function SGt(e,o){e&1&&b(0,"tr",44)}function wGt(e,o){if(e&1&&(l(0,"td",29)(1,"div",33)(2,"mat-card",34)(3,"h4",35),c(4),p(5,"translate"),r(),l(6,"table",36),X(7,37),F(8,rGt,3,3,"th",18)(9,lGt,3,6,"td",19),Z(),X(10,38),F(11,sGt,3,3,"th",18)(12,cGt,3,6,"td",19),Z(),X(13,39),F(14,pGt,3,3,"th",18)(15,mGt,3,6,"td",19),Z(),X(16,40),F(17,dGt,3,3,"th",18)(18,_Gt,5,1,"td",19),Z(),X(19,41),F(20,CGt,3,3,"th",18)(21,vGt,3,6,"td",19),Z(),X(22,42),F(23,xGt,3,3,"th",18)(24,bGt,3,3,"td",19),Z(),F(25,yGt,1,0,"tr",25)(26,SGt,1,0,"tr",26),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2);Dn("colspan",i.chartSlabsDisplayedColumns.length),a(),g("@expandChartSlab",n===i.expandChartSlabIndex?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",i.incentivesDisplayedColumns),a(),g("matRowDefColumns",i.incentivesDisplayedColumns)}}function PGt(e,o){e&1&&b(0,"tr",43)}function TGt(e,o){e&1&&b(0,"tr",44)}function MGt(e,o){e&1&&b(0,"tr",45)}function DGt(e,o){if(e&1&&(l(0,"div",10)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5),l(5,"div",10),E(6,zHt,6,4,"div",7),E(7,HHt,6,4,"div",7),l(8,"div",7)(9,"span",8),c(10),p(11,"translate"),r(),l(12,"span",9),c(13),p(14,"dateFormat"),r()(),E(15,GHt,7,6,"div",7),l(16,"div",7)(17,"span",8),c(18),p(19,"translate"),r(),l(20,"span",9),c(21),p(22,"yesNo"),r()(),l(23,"table",16),X(24,17),F(25,jHt,3,3,"th",18)(26,WHt,3,2,"td",19),Z(),X(27,20),F(28,QHt,3,3,"th",18)(29,KHt,3,2,"td",19),Z(),X(30,21),F(31,XHt,3,3,"th",18)(32,ZHt,2,1,"td",19),Z(),X(33,22),F(34,eGt,3,3,"th",18)(35,tGt,2,1,"td",19),Z(),X(36,23),F(37,iGt,3,3,"th",18)(38,aGt,4,2,"td",19),Z(),X(39,24),F(40,wGt,27,8,"td",19),Z(),F(41,PGt,1,0,"tr",25)(42,TGt,1,0,"tr",26)(43,MGt,1,0,"tr",27),r()()()),e&2){let t=w();a(2),h(m(3,13,"labels.heading.Interest Rate Chart")),a(2),g("inset",!0),a(2),I(t.fixedDepositProductData.activeChart.name?6:-1),a(),I(t.fixedDepositProductData.activeChart.description?7:-1),a(3),v("",m(11,15,"labels.inputs.From Date"),":"),a(3),h(m(14,17,t.fixedDepositProductData.activeChart.fromDate)),a(2),I(t.fixedDepositProductData.activeChart.endDate?15:-1),a(3),v("",m(19,19,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(22,21,t.fixedDepositProductData.activeChart.isPrimaryGroupingByAmount)),a(2),g("dataSource",t.fixedDepositProductData.activeChart.chartSlabs),a(18),g("matHeaderRowDef",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsIncentivesDisplayedColumns)}}function EGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function IGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}function OGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function AGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function FGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function kGt(e,o){if(e&1&&(l(0,"td",29),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function BGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function RGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function NGt(e,o){e&1&&b(0,"tr",43)}function LGt(e,o){e&1&&b(0,"tr",44)}function VGt(e,o){if(e&1&&(l(0,"div",11)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",46),l(5,"table",36),X(6,47),F(7,EGt,3,3,"th",18)(8,IGt,2,1,"td",19),Z(),X(9,48),F(10,OGt,3,3,"th",18)(11,AGt,2,1,"td",19),Z(),X(12,42),F(13,FGt,3,3,"th",18)(14,kGt,3,3,"td",19),Z(),X(15,49),F(16,BGt,3,3,"th",18)(17,RGt,2,1,"td",19),Z(),F(18,NGt,1,0,"tr",25)(19,LGt,1,0,"tr",26),r()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Charges")),a(3),g("dataSource",t.fixedDepositProductData.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function qGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function zGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function HGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function GGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.fundSourceAccount.name," ")}}function jGt(e,o){e&1&&b(0,"tr",43)}function $Gt(e,o){e&1&&b(0,"tr",44)}function UGt(e,o){if(e&1&&(l(0,"div",50)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"table",52),X(5,53),F(6,qGt,3,3,"th",18)(7,zGt,2,1,"td",19),Z(),X(8,54),F(9,HGt,3,3,"th",18)(10,GGt,2,1,"td",19),Z(),F(11,jGt,1,0,"tr",25)(12,$Gt,1,0,"tr",26),r()()),e&2){let t=w(2);a(2),v(" ",m(3,4,"labels.inputs.Configure Fund Sources for Payment Channels")," "),a(2),g("dataSource",t.fixedDepositProductData.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function WGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function QGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function YGt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function JGt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function KGt(e,o){e&1&&b(0,"tr",43)}function XGt(e,o){e&1&&b(0,"tr",44)}function ZGt(e,o){if(e&1&&(l(0,"div",50)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"table",52),X(5,55),F(6,WGt,3,3,"th",18)(7,QGt,2,1,"td",19),Z(),X(8,56),F(9,YGt,3,3,"th",18)(10,JGt,2,1,"td",19),Z(),F(11,KGt,1,0,"tr",25)(12,XGt,1,0,"tr",26),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fees to Specific Income Accounts")),a(2),g("dataSource",t.fixedDepositProductData.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function ejt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function tjt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function ijt(e,o){e&1&&(l(0,"th",28),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function njt(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function ojt(e,o){e&1&&b(0,"tr",43)}function ajt(e,o){e&1&&b(0,"tr",44)}function rjt(e,o){if(e&1&&(l(0,"div",50)(1,"h4",51),c(2),p(3,"translate"),r(),l(4,"table",52),X(5,55),F(6,ejt,3,3,"th",18)(7,tjt,2,1,"td",19),Z(),X(8,56),F(9,ijt,3,3,"th",18)(10,njt,2,1,"td",19),Z(),F(11,ojt,1,0,"tr",25)(12,ajt,1,0,"tr",26),r()()),e&2){let t=w(2);a(2),v(" ",m(3,4,"labels.heading.Penalties to Specific Income Accounts")," "),a(2),g("dataSource",t.fixedDepositProductData.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function ljt(e,o){if(e&1&&(l(0,"div",13)(1,"h3",6),c(2),p(3,"translate"),r(),b(4,"mat-divider",5)(5,"hr"),E(6,UGt,13,6,"div",50),E(7,ZGt,13,6,"div",50),E(8,rjt,13,6,"div",50),r()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Advanced Accounting Rules")),a(2),g("inset",!0),a(2),I(t.fixedDepositProductData.paymentChannelToFundSourceMappings!=null&&t.fixedDepositProductData.paymentChannelToFundSourceMappings.length?6:-1),a(),I(t.fixedDepositProductData.feeToIncomeAccountMappings!=null&&t.fixedDepositProductData.feeToIncomeAccountMappings.length?7:-1),a(),I(t.fixedDepositProductData.penaltyToIncomeAccountMappings!=null&&t.fixedDepositProductData.penaltyToIncomeAccountMappings.length?8:-1)}}var hS=(()=>{class e{constructor(){this.route=T(Ie),this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.chartSlabsDisplayedColumns=["period","amountRange","annualInterestRate","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","type","amount","collectedon"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.route.data.subscribe(t=>{this.fixedDepositProductData=t.fixedDepositProduct,this.fixedDepositProductsTemplate=t.fixedDepositProductsTemplate})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-general-tab"]],decls:110,vars:87,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-t-20","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"responsive-column"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"responsive-column","flex-100"],[1,"layout-row-wrap","responsive-column","flex-100"],[1,"container",3,"accountingRule","accountingMappings"],[1,"flex-100","layout-row-wrap","layout-lt-md-column"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","flex-100","layout-row-wrap"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],[1,"flex-100"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","collectedon"],[1,"flex-100","layout-row-wrap","layout-xs-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,IHt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"h2",4),c(7),r(),b(8,"mat-divider",5),l(9,"h3",6),c(10),p(11,"translate"),r(),b(12,"mat-divider",5),l(13,"div",7)(14,"span",8),c(15),p(16,"translate"),r(),l(17,"span",9),c(18),r()(),E(19,OHt,6,4,"div",7),l(20,"h3",6),c(21),p(22,"translate"),r(),b(23,"mat-divider",5),l(24,"div",7)(25,"span",8),c(26),p(27,"translate"),r(),l(28,"span",9),c(29),r()(),l(30,"div",7)(31,"span",8),c(32),p(33,"translate"),r(),l(34,"span",9),c(35),r()(),l(36,"div",7)(37,"span",8),c(38),p(39,"translate"),r(),l(40,"span",9),c(41),p(42,"formatNumber"),r()(),l(43,"h3",6),c(44),p(45,"translate"),r(),b(46,"mat-divider",5),l(47,"div",7)(48,"span",8),c(49),p(50,"translate"),r(),l(51,"span",9),c(52),r()(),l(53,"div",7)(54,"span",8),c(55),p(56,"translate"),r(),l(57,"span",9),c(58),r()(),l(59,"div",7)(60,"span",8),c(61),p(62,"translate"),r(),l(63,"span",9),c(64),r()(),l(65,"div",7)(66,"span",8),c(67),p(68,"translate"),r(),l(69,"span",9),c(70),r()(),l(71,"div",7)(72,"span",8),c(73),p(74,"translate"),r(),l(75,"span",9),c(76),r()(),l(77,"h3",6),c(78),p(79,"translate"),r(),b(80,"mat-divider",5),E(81,AHt,6,5,"div",7),E(82,kHt,5,4,"div",7),E(83,RHt,5,4,"div",7),E(84,NHt,6,5,"div",7),l(85,"div",7)(86,"span",8),c(87),p(88,"translate"),r(),l(89,"span",9),c(90),p(91,"yesNo"),r()(),E(92,LHt,6,5,"div",7),E(93,VHt,7,6,"div",7),l(94,"div",7)(95,"span",8),c(96),p(97,"translate"),r(),l(98,"span",9),c(99),p(100,"yesNo"),r()(),E(101,qHt,6,4,"div",7),E(102,DGt,44,23,"div",10),E(103,VGt,20,6,"div",11),l(104,"h3",6),c(105),p(106,"translate"),r(),b(107,"mat-divider",5)(108,"mifosx-view-savings-accounting-details",12),E(109,ljt,9,7,"div",13),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_SAVINGSPRODUCT"),a(6),h(i.fixedDepositProductData.name),a(),g("inset",!0),a(2),h(m(11,49,"labels.inputs.Details")),a(2),g("inset",!0),a(3),v("",m(16,51,"labels.inputs.Short Name"),":"),a(3),h(i.fixedDepositProductData.shortName),a(),I(i.fixedDepositProductData.description?19:-1),a(2),h(m(22,53,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(27,55,"labels.heading.Currency"),":"),a(3),le("(",i.fixedDepositProductData.currency.code,") ",i.fixedDepositProductData.currency.name),a(3),v("",m(33,57,"labels.inputs.Decimal Places"),":"),a(3),h(i.fixedDepositProductData.currency.decimalPlaces),a(3),v("",m(39,59,"labels.inputs.Currency in multiples of"),":"),a(3),h(m(42,61,i.fixedDepositProductData.currency.inMultiplesOf)),a(3),h(m(45,63,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(50,65,"labels.inputs.Deposit Amount"),":"),a(3),h(i.fixedDepositProductData.depositAmount+" (Min: "+(i.fixedDepositProductData.minDepositAmount?i.fixedDepositProductData.minDepositAmount:i.fixedDepositProductData.depositAmount)+", Max: "+(i.fixedDepositProductData.maxDepositAmount?i.fixedDepositProductData.maxDepositAmount:i.fixedDepositProductData.depositAmount)+")"),a(3),v("",m(56,67,"labels.inputs.Interest Compounding Period"),":"),a(3),h(i.fixedDepositProductData.interestCompoundingPeriodType.value),a(3),v("",m(62,69,"labels.inputs.Interest Posting Period"),":"),a(3),h(i.fixedDepositProductData.interestPostingPeriodType.value),a(3),v("",m(68,71,"labels.inputs.Interest Calculated Using"),":"),a(3),h(i.fixedDepositProductData.interestCalculationType.value),a(3),v("",m(74,73,"labels.inputs.Days in Year"),":"),a(3),h(i.fixedDepositProductData.interestCalculationDaysInYearType.value),a(2),h(m(79,75,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(i.fixedDepositProductData.lockinPeriodFrequency?81:-1),a(),I(i.fixedDepositProductData.minDepositTerm?82:-1),a(),I(i.fixedDepositProductData.maxDepositTerm?83:-1),a(),I(i.fixedDepositProductData.inMultiplesOfDepositTerm?84:-1),a(3),v("",m(88,77,"labels.inputs.Apply Penal Interest (less)"),":"),a(3),h(m(91,79,i.fixedDepositProductData.preClosurePenalApplicable)),a(2),I(i.fixedDepositProductData.preClosurePenalApplicable?92:-1),a(),I(i.fixedDepositProductData.minBalanceForInterestCalculation?93:-1),a(3),v("",m(97,81,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(100,83,i.fixedDepositProductData.withHoldTax)),a(2),I(i.fixedDepositProductData.withHoldTax?101:-1),a(),I(i.fixedDepositProductData.activeChart?102:-1),a(),I(i.fixedDepositProductData.charges.length?103:-1),a(2),h(m(106,85,"labels.heading.Accounting")),a(2),g("inset",!0),a(),g("accountingRule",i.fixedDepositProductData.accountingRule)("accountingMappings",i.fixedDepositProductData.accountingMappings),a(),I(i.fixedDepositProductData.advancedAccountingRules&&(i.fixedDepositProductData.paymentChannelToFundSourceMappings!=null&&i.fixedDepositProductData.paymentChannelToFundSourceMappings.length||i.fixedDepositProductData.feeToIncomeAccountMappings!=null&&i.fixedDepositProductData.feeToIncomeAccountMappings.length||i.fixedDepositProductData.penaltyToIncomeAccountMappings!=null&&i.fixedDepositProductData.penaltyToIncomeAccountMappings.length)?109:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.mat-card[_ngcontent-%COMP%] .mat-divider-horizontal.mat-divider-inset[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var gS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.fixedDepositDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fixed-deposit-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Fixed Deposit Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var sjt=()=>["../edit"];function cjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.recurringDepositProduct.description)}}function pjt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le(" ",t.recurringDepositProduct.lockinPeriodFrequency," ",t.recurringDepositProduct.lockinPeriodFrequencyType.value)}}function mjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,pjt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Lock-in Period"),":"),a(2),I(t.recurringDepositProduct.lockinPeriodFrequency!==void 0?4:-1)}}function djt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le("",t.recurringDepositProduct.minDepositTerm," \xA0 ",t.recurringDepositProduct.minDepositTermType.value)}}function ujt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,djt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Minimum Deposit Term"),":"),a(2),I(t.recurringDepositProduct.minDepositTerm!==void 0?4:-1)}}function fjt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le("",t.recurringDepositProduct.maxDepositTerm," \xA0 ",t.recurringDepositProduct.maxDepositTermType.value)}}function hjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,fjt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Maximum Deposit Term"),":"),a(2),I(t.recurringDepositProduct.maxDepositTerm!==void 0?4:-1)}}function gjt(e,o){if(e&1&&(l(0,"span",10),c(1),r()),e&2){let t=w(2);a(),le("",t.recurringDepositProduct.inMultipleOfDepositTerm," - ",t.recurringDepositProduct.inMultipleOfDepositTermType.value)}}function _jt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,gjt,2,2,"span",10),r()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Deposit Term In multiple of"),":"),a(2),I(t.recurringDepositProduct.inMultipleOfDepositTerm!==void 0?4:-1)}}function Cjt(e,o){e&1&&(l(0,"span",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Mandatory")," "))}function vjt(e,o){e&1&&(l(0,"span",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Voluntary")," "))}function xjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),E(4,Cjt,3,3,"span",10),E(5,vjt,3,3,"span",10),r()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Recurring Deposit Type"),":"),a(2),I(t.recurringDepositProduct.isMandatoryDeposit?4:-1),a(),I(t.recurringDepositProduct.isMandatoryDeposit?-1:5)}}function bjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10)(5,"span",14),c(6),r(),c(7,"%"),l(8,"span",14),c(9,"On"),r(),c(10),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Apply penal interest (less)"),":"),a(4),h(t.recurringDepositProduct.preClosurePenalInterest),a(4),v(" ",t.recurringDepositProduct.preClosurePenalInterestOnType.value," ")}}function yjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Withhold Tax group"),":"),a(3),h(t.recurringDepositProduct.taxGroup.name)}}function Sjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Name"),":"),a(3),h(t.recurringDepositProduct.activeChart.name)}}function wjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),p(6,"dateFormat"),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.End Date"),":"),a(3),h(m(6,4,t.recurringDepositProduct.activeChart.endDate))}}function Pjt(e,o){if(e&1&&(l(0,"div",8)(1,"span",9),c(2),p(3,"translate"),r(),l(4,"span",10),c(5),r()()),e&2){let t=w(2);a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.recurringDepositProduct.activeChart.description)}}function Tjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function Mjt(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),ea("",t.fromPeriod," - ",t.toPeriod," ",t.periodType.value)}}function Djt(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function Ejt(e,o){if(e&1&&(l(0,"td",28),E(1,Mjt,2,3,"div"),E(2,Djt,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.fromPeriod!==void 0?1:-1),a(),I(t.fromPeriod===void 0?2:-1)}}function Ijt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount Range")))}function Ojt(e,o){if(e&1&&(l(0,"div"),c(1),r()),e&2){let t=w().$implicit;a(),le("",t.amountRangeFrom," - ",t.amountRangeTo)}}function Ajt(e,o){e&1&&(l(0,"div"),c(1,"\xA0"),r())}function Fjt(e,o){if(e&1&&(l(0,"td",28),E(1,Ojt,2,2,"div"),E(2,Ajt,2,0,"div"),r()),e&2){let t=o.$implicit;a(),I(t.amountRangeFrom!==void 0?1:-1),a(),I(t.amountRangeFrom===void 0?2:-1)}}function kjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Interest")))}function Bjt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.annualInterestRate," ")}}function Rjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function Njt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function Ljt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function Vjt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",30),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.View Incentives")," "))}function qjt(e,o){e&1&&(l(0,"span"),b(1,"fa-icon",31),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Hide Incentives")," "))}function zjt(e,o){if(e&1){let t=Y();l(0,"td",28)(1,"button",29),R("click",function(){let i=V(t).dataIndex,s=w(2);return q(s.expandChartSlabIndex=s.expandChartSlabIndex===i?null:i)}),E(2,Vjt,4,3,"span"),E(3,qjt,4,3,"span"),r()()}if(e&2){let t=o.dataIndex,n=w(2);a(2),I(n.expandChartSlabIndex!==t?2:-1),a(),I(n.expandChartSlabIndex===t?3:-1)}}function Hjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function Gjt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.entityType,n.recurringDepositProductTemplate.chartTemplate.entityTypeOptions,"id","value")," ")}}function jjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Name")))}function $jt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.attributeName,n.recurringDepositProductTemplate.chartTemplate.attributeNameOptions,"id","value")," ")}}function Ujt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Condition Type")))}function Wjt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.conditionType,n.recurringDepositProductTemplate.chartTemplate.conditionTypeOptions,"id","value")," ")}}function Qjt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Attribute Value")))}function Yjt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductTemplate.chartTemplate.genderOptions,"id","name"))}}function Jjt(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit;a(),h(t.attributeValue)}}function Kjt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductTemplate.chartTemplate.clientTypeOptions,"id","name"))}}function Xjt(e,o){if(e&1&&(l(0,"span"),c(1),p(2,"find"),r()),e&2){let t=w().$implicit,n=w(3);a(),h($t(2,1,t.attributeValue,n.recurringDepositProductTemplate.chartTemplate.clientClassificationOptions,"id","name"))}}function Zjt(e,o){if(e&1&&(l(0,"td",28),E(1,Yjt,3,6,"span")(2,Jjt,2,1,"span")(3,Kjt,3,6,"span")(4,Xjt,3,6,"span"),r()),e&2){let t,n=o.$implicit;a(),I((t=n.attributeName)===2?1:t===3?2:t===4?3:t===5?4:-1)}}function e$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Incentive Type")))}function t$t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w(3);a(),v(" ",$t(2,1,t.incentiveType,n.recurringDepositProductTemplate.chartTemplate.incentiveTypeOptions,"id","value")," ")}}function i$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function n$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.amount," ")}}function o$t(e,o){e&1&&b(0,"tr",42)}function a$t(e,o){e&1&&b(0,"tr",43)}function r$t(e,o){if(e&1&&(l(0,"td",28)(1,"div",32)(2,"mat-card",33)(3,"h4",34),c(4),p(5,"translate"),r(),l(6,"table",35),X(7,36),F(8,Hjt,3,3,"th",17)(9,Gjt,3,6,"td",18),Z(),X(10,37),F(11,jjt,3,3,"th",17)(12,$jt,3,6,"td",18),Z(),X(13,38),F(14,Ujt,3,3,"th",17)(15,Wjt,3,6,"td",18),Z(),X(16,39),F(17,Qjt,3,3,"th",17)(18,Zjt,5,1,"td",18),Z(),X(19,40),F(20,e$t,3,3,"th",17)(21,t$t,3,6,"td",18),Z(),X(22,41),F(23,i$t,3,3,"th",17)(24,n$t,2,1,"td",18),Z(),F(25,o$t,1,0,"tr",24)(26,a$t,1,0,"tr",25),r()()()()),e&2){let t=o.$implicit,n=o.dataIndex,i=w(2);Dn("colspan",i.chartSlabsDisplayedColumns.length),a(),g("@expandChartSlab",n===i.expandChartSlabIndex?"expanded":"collapsed"),a(3),v(" ",m(5,6,"labels.heading.Incentives")," "),a(2),g("dataSource",t.incentives),a(19),g("matHeaderRowDef",i.incentivesDisplayedColumns),a(),g("matRowDefColumns",i.incentivesDisplayedColumns)}}function l$t(e,o){e&1&&b(0,"tr",42)}function s$t(e,o){e&1&&b(0,"tr",43)}function c$t(e,o){e&1&&b(0,"tr",44)}function p$t(e,o){if(e&1&&(l(0,"div",11)(1,"h3",7),c(2),p(3,"translate"),r(),b(4,"mat-divider",6),l(5,"div",11),E(6,Sjt,6,4,"div",8),l(7,"div",8)(8,"span",9),c(9),p(10,"translate"),r(),l(11,"span",10),c(12),p(13,"dateFormat"),r()(),E(14,wjt,7,6,"div",8),E(15,Pjt,6,4,"div",8),l(16,"div",8)(17,"span",9),c(18),p(19,"translate"),r(),l(20,"span",10),c(21),p(22,"yesNo"),r()(),l(23,"table",15),X(24,16),F(25,Tjt,3,3,"th",17)(26,Ejt,3,2,"td",18),Z(),X(27,19),F(28,Ijt,3,3,"th",17)(29,Fjt,3,2,"td",18),Z(),X(30,20),F(31,kjt,3,3,"th",17)(32,Bjt,2,1,"td",18),Z(),X(33,21),F(34,Rjt,3,3,"th",17)(35,Njt,2,1,"td",18),Z(),X(36,22),F(37,Ljt,3,3,"th",17)(38,zjt,4,2,"td",18),Z(),X(39,23),F(40,r$t,27,8,"td",18),Z(),F(41,l$t,1,0,"tr",24)(42,s$t,1,0,"tr",25)(43,c$t,1,0,"tr",26),r(),b(44,"mat-divider",6),r()()),e&2){let t=w();a(2),h(m(3,14,"labels.heading.Interest Rate Charts")),a(2),g("inset",!0),a(2),I(t.recurringDepositProduct.activeChart.name?6:-1),a(3),v("",m(10,16,"labels.inputs.Valid from Date"),":"),a(3),h(m(13,18,t.recurringDepositProduct.activeChart.fromDate)),a(2),I(t.recurringDepositProduct.activeChart.endDate?14:-1),a(),I(t.recurringDepositProduct.activeChart.description?15:-1),a(3),v("",m(19,20,"labels.inputs.Primary Grouping by Amount"),":"),a(3),h(m(22,22,t.recurringDepositProduct.activeChart.isPrimaryGroupingByAmount)),a(2),g("dataSource",t.recurringDepositProduct.activeChart.chartSlabs),a(18),g("matHeaderRowDef",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsDisplayedColumns),a(),g("matRowDefColumns",t.chartSlabsIncentivesDisplayedColumns),a(),g("inset",!0)}}function m$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function d$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}function u$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function f$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeCalculationType.value," ")}}function h$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function g$t(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function _$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function C$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.chargeTimeType.value," ")}}function v$t(e,o){e&1&&b(0,"tr",42)}function x$t(e,o){e&1&&b(0,"tr",43)}function b$t(e,o){if(e&1&&(l(0,"div",11)(1,"h3",7),c(2),p(3,"translate"),r(),b(4,"mat-divider",6),l(5,"table",35),X(6,45),F(7,m$t,3,3,"th",17)(8,d$t,2,1,"td",18),Z(),X(9,46),F(10,u$t,3,3,"th",17)(11,f$t,2,1,"td",18),Z(),X(12,41),F(13,h$t,3,3,"th",17)(14,g$t,3,3,"td",18),Z(),X(15,47),F(16,_$t,3,3,"th",17)(17,C$t,2,1,"td",18),Z(),F(18,v$t,1,0,"tr",24)(19,x$t,1,0,"tr",25),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",t.recurringDepositProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function y$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Payment Type")))}function S$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.paymentType.name," ")}}function w$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fund Source")))}function P$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.fundSourceAccount.name," ")}}function T$t(e,o){e&1&&b(0,"tr",42)}function M$t(e,o){e&1&&b(0,"tr",43)}function D$t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,51),F(6,y$t,3,3,"th",17)(7,S$t,2,1,"td",18),Z(),X(8,52),F(9,w$t,3,3,"th",17)(10,P$t,2,1,"td",18),Z(),F(11,T$t,1,0,"tr",24)(12,M$t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),v(" ",m(3,4,"labels.inputs.Configure Fund Sources for Payment Channels")," "),a(2),g("dataSource",t.recurringDepositProduct.paymentChannelToFundSourceMappings),a(7),g("matHeaderRowDef",t.paymentFundSourceDisplayedColumns),a(),g("matRowDefColumns",t.paymentFundSourceDisplayedColumns)}}function E$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Fees")))}function I$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function O$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function A$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function F$t(e,o){e&1&&b(0,"tr",42)}function k$t(e,o){e&1&&b(0,"tr",43)}function B$t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,E$t,3,3,"th",17)(7,I$t,2,1,"td",18),Z(),X(8,54),F(9,O$t,3,3,"th",17)(10,A$t,2,1,"td",18),Z(),F(11,F$t,1,0,"tr",24)(12,k$t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Fees to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.feeToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function R$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Penalty")))}function N$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.charge.name," ")}}function L$t(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Income Account")))}function V$t(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.incomeAccount.name," ")}}function q$t(e,o){e&1&&b(0,"tr",42)}function z$t(e,o){e&1&&b(0,"tr",43)}function H$t(e,o){if(e&1&&(l(0,"div",48)(1,"h4",49),c(2),p(3,"translate"),r(),l(4,"table",50),X(5,53),F(6,R$t,3,3,"th",17)(7,N$t,2,1,"td",18),Z(),X(8,54),F(9,L$t,3,3,"th",17)(10,V$t,2,1,"td",18),Z(),F(11,q$t,1,0,"tr",24)(12,z$t,1,0,"tr",25),r()()),e&2){let t=w(2);a(2),h(m(3,4,"labels.inputs.Penalties to Specific Income Accounts")),a(2),g("dataSource",t.recurringDepositProduct.penaltyToIncomeAccountMappings),a(7),g("matHeaderRowDef",t.feesPenaltyIncomeDisplayedColumns),a(),g("matRowDefColumns",t.feesPenaltyIncomeDisplayedColumns)}}function G$t(e,o){if(e&1&&(l(0,"div",13)(1,"h3",7),c(2),p(3,"translate"),r(),b(4,"mat-divider",6),E(5,D$t,13,6,"div",48),E(6,B$t,13,6,"div",48),E(7,H$t,13,6,"div",48),r()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Advanced Accounting Rules")),a(2),g("inset",!0),a(),I(t.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&t.recurringDepositProduct.paymentChannelToFundSourceMappings.length?5:-1),a(),I(t.recurringDepositProduct.feeToIncomeAccountMappings!=null&&t.recurringDepositProduct.feeToIncomeAccountMappings.length?6:-1),a(),I(t.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&t.recurringDepositProduct.penaltyToIncomeAccountMappings.length?7:-1)}}var _S=(()=>{class e{constructor(){this.route=T(Ie),this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.chartSlabsDisplayedColumns=["period","amountRange","annualInterestRate","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chargesDisplayedColumns=["name","type","amount","collectedon"],this.paymentFundSourceDisplayedColumns=["paymentTypeId","fundSourceAccountId"],this.feesPenaltyIncomeDisplayedColumns=["chargeId","incomeAccountId"],this.route.data.subscribe(t=>{this.recurringDepositProduct=t.recurringDepositProduct,this.recurringDepositProductTemplate=t.recurringDepositProductsTemplate})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-general-tab"]],decls:106,vars:85,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-t-20","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],[1,"container"],[1,"responsive-column"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-100"],[1,"flex-100","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-100"],[1,"container",3,"accountingRule","accountingMappings"],[1,"flex-100","layout-row-wrap","layout-column.lt-md"],[1,"m-r-5"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","annualInterestRate"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","flex-100","layout-row-wrap"],[1,"layout-row-wrap","flex-100"],[1,"mat-h4","flex-23"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],["matColumnDef","name"],["matColumnDef","type"],["matColumnDef","collectedon"],[1,"flex-100","layout-row-wrap","layout-xs-column"],[1,"mat-h4","flex-100"],["mat-table","",1,"mat-elevation-z1","flex-100",3,"dataSource"],["matColumnDef","paymentTypeId"],["matColumnDef","fundSourceAccountId"],["matColumnDef","chargeId"],["matColumnDef","incomeAccountId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r()(),l(5,"div",3)(6,"mat-card")(7,"mat-card-content")(8,"div",4)(9,"h2",5),c(10),r(),b(11,"mat-divider",6),l(12,"h3",7),c(13),p(14,"translate"),r(),b(15,"mat-divider",6),l(16,"div",8)(17,"span",9),c(18),p(19,"translate"),r(),l(20,"span",10),c(21),r()(),E(22,cjt,6,4,"div",8),l(23,"h3",7),c(24),p(25,"translate"),r(),b(26,"mat-divider",6),l(27,"div",8)(28,"span",9),c(29),p(30,"translate"),r(),l(31,"span",10),c(32),r()(),l(33,"div",8)(34,"span",9),c(35),p(36,"translate"),r(),l(37,"span",10),c(38),r()(),l(39,"div",8)(40,"span",9),c(41),p(42,"translate"),r(),l(43,"span",10),c(44),p(45,"formatNumber"),r()(),l(46,"h3",7),c(47),p(48,"translate"),r(),b(49,"mat-divider",6),l(50,"div",8)(51,"span",9),c(52),p(53,"translate"),r(),l(54,"span",10),c(55),r()(),l(56,"div",8)(57,"span",9),c(58),p(59,"translate"),r(),l(60,"span",10),c(61),r()(),l(62,"div",8)(63,"span",9),c(64),p(65,"translate"),r(),l(66,"span",10),c(67),r()(),l(68,"div",8)(69,"span",9),c(70),p(71,"translate"),r(),l(72,"span",10),c(73),r()(),l(74,"div",8)(75,"span",9),c(76),p(77,"translate"),r(),l(78,"span",10),c(79),r()(),l(80,"h3",7),c(81),p(82,"translate"),r(),b(83,"mat-divider",6),E(84,mjt,5,4,"div",8),E(85,ujt,5,4,"div",8),E(86,hjt,5,4,"div",8),E(87,_jt,5,4,"div",8),E(88,xjt,6,5,"div",8),E(89,bjt,11,5,"div",8),l(90,"div",8)(91,"span",9),c(92),p(93,"translate"),r(),l(94,"span",10),c(95),p(96,"yesNo"),r()(),E(97,yjt,6,4,"div",8),E(98,p$t,45,24,"div",11),E(99,b$t,20,7,"div",11),l(100,"h3",7),c(101),p(102,"translate"),r(),b(103,"mat-divider",6)(104,"mifosx-view-savings-accounting-details",12),E(105,G$t,8,7,"div",13),r()()()()),n&2&&(a(),g("routerLink",oe(84,sjt)),a(2),v(" ",m(4,48,"labels.buttons.Edit")," "),a(7),h(i.recurringDepositProduct.name),a(),g("inset",!0),a(2),h(m(14,50,"labels.inputs.Details")),a(2),g("inset",!0),a(3),v("",m(19,52,"labels.inputs.Short Name"),":"),a(3),h(i.recurringDepositProduct.shortName),a(),I(i.recurringDepositProduct.description?22:-1),a(2),h(m(25,54,"labels.inputs.Currency")),a(2),g("inset",!0),a(3),v("",m(30,56,"labels.heading.Currency"),":"),a(3),le("(",i.recurringDepositProduct.currency.code,") ",i.recurringDepositProduct.currency.name),a(3),v("",m(36,58,"labels.inputs.Decimal Places"),":"),a(3),h(i.recurringDepositProduct.currency.decimalPlaces),a(3),v("",m(42,60,"labels.inputs.Currency in multiples of"),":"),a(3),h(m(45,62,i.recurringDepositProduct.currency.inMultiplesOf)),a(3),h(m(48,64,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(53,66,"labels.inputs.Deposit Amount"),":"),a(3),h(i.recurringDepositProduct.depositAmount+" (Min: "+(i.recurringDepositProduct.minDepositAmount?i.recurringDepositProduct.minDepositAmount:i.recurringDepositProduct.depositAmount)+", Max: "+(i.recurringDepositProduct.maxDepositAmount?i.recurringDepositProduct.maxDepositAmount:i.recurringDepositProduct.depositAmount)+")"),a(3),v("",m(59,68,"labels.inputs.Interest Compounding Period"),":"),a(3),h(i.recurringDepositProduct.interestCompoundingPeriodType.value),a(3),v("",m(65,70,"labels.inputs.Interest Posting Period"),":"),a(3),h(i.recurringDepositProduct.interestPostingPeriodType.value),a(3),v("",m(71,72,"labels.inputs.Interest Calculated using"),":"),a(3),h(i.recurringDepositProduct.interestCalculationType.value),a(3),v("",m(77,74,"labels.inputs.Days in Year"),":"),a(3),h(i.recurringDepositProduct.interestCalculationDaysInYearType.value),a(2),h(m(82,76,"labels.heading.Settings")),a(2),g("inset",!0),a(),I(i.recurringDepositProduct.lockinPeriodFrequency?84:-1),a(),I(i.recurringDepositProduct.minDepositTerm?85:-1),a(),I(i.recurringDepositProduct.maxDepositTerm?86:-1),a(),I(i.recurringDepositProduct.inMultipleOfDepositTerm?87:-1),a(),I(i.recurringDepositProduct.isMandatoryDeposit!==void 0?88:-1),a(),I(i.recurringDepositProduct.preClosurePenalInterest?89:-1),a(3),v("",m(93,78,"labels.inputs.Withhold Tax is Applicable"),":"),a(3),h(m(96,80,i.recurringDepositProduct.withHoldTax)),a(2),I(i.recurringDepositProduct.withHoldTax?97:-1),a(),I(i.recurringDepositProduct.activeChart?98:-1),a(),I(i.recurringDepositProduct.charges.length?99:-1),a(2),h(m(102,82,"labels.heading.Accounting")),a(2),g("inset",!0),a(),g("accountingRule",i.recurringDepositProduct.accountingRule)("accountingMappings",i.recurringDepositProduct.accountingMappings),a(),I(i.recurringDepositProduct.paymentChannelToFundSourceMappings!=null&&i.recurringDepositProduct.paymentChannelToFundSourceMappings.length||i.recurringDepositProduct.feeToIncomeAccountMappings!=null&&i.recurringDepositProduct.feeToIncomeAccountMappings.length||i.recurringDepositProduct.penaltyToIncomeAccountMappings!=null&&i.recurringDepositProduct.penaltyToIncomeAccountMappings.length?105:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,rs,Pi,he,Qn,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.interestCarts[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%] > h4[_ngcontent-%COMP%]{font-weight:500;margin:.5em 0 0}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"],data:{animation:[Sr("expandChartSlab",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var CS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.recurringDepositDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-recurring-deposit-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Recurring Deposit Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var j$t=()=>["../edit"],$$t=()=>["../dividends"];function U$t(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",11),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,j$t)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function W$t(e,o){e&1&&(l(0,"button",10),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,$$t)),a(2),v(" ",m(3,2,"labels.buttons.Dividends")," "))}function Q$t(e,o){if(e&1&&(l(0,"div",6)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",8),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Description"),":"),a(3),h(t.shareProduct.description)}}function Y$t(e,o){if(e&1&&(l(0,"div",6)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",8),c(5),p(6,"translateKey"),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Minimum Active Period"),":"),a(3),le("",t.shareProduct.minimumActivePeriod," ",Ft(6,5,t.shareProduct.minimumActivePeriodForDividendsTypeEnum.value,"catalogs"))}}function J$t(e,o){if(e&1&&(l(0,"div",6)(1,"span",7),c(2),p(3,"translate"),r(),l(4,"span",8),c(5),p(6,"translateKey"),r()()),e&2){let t=w();a(2),v("",m(3,3,"labels.inputs.Lock-in Period"),":"),a(3),le("",t.shareProduct.lockinPeriod," ",Ft(6,5,t.shareProduct.lockPeriodTypeEnum.value,"catalogs"))}}function K$t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Date")))}function X$t(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.fromDate)," ")}}function Z$t(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Nominal/Unit Price")))}function eUt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.shareValue)," ")}}function tUt(e,o){e&1&&b(0,"tr",22)}function iUt(e,o){e&1&&b(0,"tr",23)}function nUt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",5),c(2),p(3,"translate"),r(),b(4,"mat-divider",4),l(5,"table",13),X(6,14),F(7,K$t,3,3,"th",15)(8,X$t,3,3,"td",16),Z(),X(9,17),F(10,Z$t,3,3,"th",15)(11,eUt,3,3,"td",16),Z(),F(12,tUt,1,0,"tr",18)(13,iUt,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Market Price Period")),a(2),g("inset",!0),a(),g("dataSource",t.shareProduct.marketPrice),a(7),g("matHeaderRowDef",t.marketPriceDisplayedColumns),a(),g("matRowDefColumns",t.marketPriceDisplayedColumns)}}function oUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Name")))}function aUt(e,o){if(e&1&&(l(0,"td",21),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name+", "+t.currency.displaySymbol," ")}}function rUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function lUt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeCalculationType.value,"catalogs")," ")}}function sUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function cUt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"numberFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",m(2,1,t.amount)," ")}}function pUt(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Collected On")))}function mUt(e,o){if(e&1&&(l(0,"td",21),c(1),p(2,"translateKey"),r()),e&2){let t=o.$implicit;a(),v(" ",Ft(2,1,t.chargeTimeType.value,"catalogs")," ")}}function dUt(e,o){e&1&&b(0,"tr",22)}function uUt(e,o){e&1&&b(0,"tr",23)}function fUt(e,o){if(e&1&&(l(0,"div",9)(1,"h3",5),c(2),p(3,"translate"),r(),b(4,"mat-divider",4),l(5,"table",13),X(6,24),F(7,oUt,3,3,"th",15)(8,aUt,2,1,"td",16),Z(),X(9,25),F(10,rUt,3,3,"th",15)(11,lUt,3,4,"td",16),Z(),X(12,26),F(13,sUt,3,3,"th",15)(14,cUt,3,3,"td",16),Z(),X(15,27),F(16,pUt,3,3,"th",15)(17,mUt,3,4,"td",16),Z(),F(18,dUt,1,0,"tr",18)(19,uUt,1,0,"tr",19),r()()),e&2){let t=w();a(2),h(m(3,5,"labels.heading.Charges")),a(2),g("inset",!0),a(),g("dataSource",t.shareProduct.charges),a(13),g("matHeaderRowDef",t.chargesDisplayedColumns),a(),g("matRowDefColumns",t.chargesDisplayedColumns)}}function hUt(e,o){if(e&1&&(l(0,"div",9)(1,"h4",28),c(2),p(3,"translate"),r(),l(4,"div",29),b(5,"mifosx-gl-account-display",30),r(),l(6,"h4",28),c(7),p(8,"translate"),r(),l(9,"div",29),b(10,"mifosx-gl-account-display",30),r(),l(11,"h4",28),c(12),p(13,"translate"),r(),l(14,"div",29),b(15,"mifosx-gl-account-display",30),r(),l(16,"h4",28),c(17),p(18,"translate"),r(),l(19,"div",29),b(20,"mifosx-gl-account-display",30),r()()),e&2){let t=w();a(2),h(m(3,16,"labels.heading.Assets")),a(3),g("accountTitle","Share reference")("glAccount",t.shareProduct.accountingMappings.shareReferenceId)("withTitle","40%"),a(2),h(m(8,18,"labels.heading.Liabilities")),a(3),g("accountTitle","Share suspense control")("glAccount",t.shareProduct.accountingMappings.shareSuspenseId)("withTitle","40%"),a(2),h(m(13,20,"labels.heading.Share Equity")),a(3),g("accountTitle","Equity")("glAccount",t.shareProduct.accountingMappings.shareEquityId)("withTitle","40%"),a(2),h(m(18,22,"labels.heading.Income")),a(3),g("accountTitle","Income from fees")("glAccount",t.shareProduct.accountingMappings.incomeFromFeeAccountId)("withTitle","40%")}}var vS=(()=>{class e{constructor(){this.route=T(Ie),this.accounting=T(To),this.marketPriceDisplayedColumns=["fromDate","shareValue"],this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.route.data.subscribe(t=>{this.shareProduct=t.shareProduct})}getAccountingRuleName(t){return this.accounting.getAccountRuleName(t.toUpperCase())}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-general-tab"]],decls:105,vars:86,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20","m-t-10"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"tab-container"],[1,"mat-h2","flex-100"],[3,"inset"],[1,"mat-h3","flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["icon","hand-holding-usd",1,"m-r-10"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","fromDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shareValue"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],[1,"mat-h4","flex-fill"],[1,"flex-fill"],[1,"flex-100",3,"accountTitle","glAccount","withTitle"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,U$t,4,5,"button",1)(2,W$t,4,5,"button",1),r(),l(3,"div",2)(4,"h2",3),c(5),r(),b(6,"mat-divider",4),l(7,"h3",5),c(8),p(9,"translate"),r(),b(10,"mat-divider",4),l(11,"div",6)(12,"span",7),c(13),p(14,"translate"),r(),l(15,"span",8),c(16),r()(),E(17,Q$t,6,4,"div",6),l(18,"h3",5),c(19),p(20,"translate"),r(),b(21,"mat-divider",4),l(22,"div",6)(23,"span",7),c(24),p(25,"translate"),r(),l(26,"span",8),c(27),r()(),l(28,"div",6)(29,"span",7),c(30),p(31,"translate"),r(),l(32,"span",8),c(33),r()(),l(34,"div",6)(35,"span",7),c(36),p(37,"translate"),r(),l(38,"span",8),c(39),r()(),l(40,"h3",5),c(41),p(42,"translate"),r(),b(43,"mat-divider",4),l(44,"div",6)(45,"span",7),c(46),p(47,"translate"),r(),l(48,"span",8),c(49),p(50,"formatNumber"),r()(),l(51,"div",6)(52,"span",7),c(53),p(54,"translate"),r(),l(55,"span",8),c(56),p(57,"formatNumber"),r()(),l(58,"div",6)(59,"span",7),c(60),p(61,"translate"),r(),l(62,"span",8),c(63),p(64,"formatNumber"),r()(),l(65,"div",6)(66,"span",7),c(67),p(68,"translate"),r(),l(69,"span",8),c(70),p(71,"formatNumber"),r()(),l(72,"h3",5),c(73),p(74,"translate"),r(),b(75,"mat-divider",4),l(76,"div",6)(77,"span",7),c(78),p(79,"translate"),r(),l(80,"span",8),c(81),r()(),E(82,Y$t,7,8,"div",6),E(83,J$t,7,8,"div",6),l(84,"div",6)(85,"span",7),c(86),p(87,"translate"),r(),l(88,"span",8),c(89),p(90,"yesNo"),r()(),E(91,nUt,14,7,"div",9),E(92,fUt,20,7,"div",9),l(93,"h3",5),c(94),p(95,"translate"),r(),b(96,"mat-divider",4),l(97,"div",6)(98,"span",7),c(99),p(100,"translate"),r(),l(101,"span",8),c(102),p(103,"translate"),r()(),E(104,hUt,21,24,"div",9),r()),n&2&&(a(),g("mifosxHasPermission","UPDATE_SHAREPRODUCT"),a(),g("mifosxHasPermission","UPDATE_SHAREPRODUCT"),a(3),h(i.shareProduct.name),a(),g("inset",!0),a(2),h(m(9,42,"labels.inputs.Details")),a(2),g("inset",!0),a(3),v("",m(14,44,"labels.inputs.Short Name"),":"),a(3),h(i.shareProduct.shortName),a(),I(i.shareProduct.description?17:-1),a(2),h(m(20,46,"labels.heading.Currency")),a(2),g("inset",!0),a(3),v("",m(25,48,"labels.inputs.Currency"),":"),a(3),h(i.shareProduct.currency.name),a(3),v("",m(31,50,"labels.inputs.Decimal Places"),":"),a(3),h(i.shareProduct.currency.decimalPlaces),a(3),v("",m(37,52,"labels.inputs.Currency in multiples of"),":"),a(3),h(i.shareProduct.currency.inMultiplesOf),a(2),h(m(42,54,"labels.heading.Terms")),a(2),g("inset",!0),a(3),v("",m(47,56,"labels.inputs.Total Number of Shares"),":"),a(3),h(m(50,58,i.shareProduct.totalShares)),a(4),v("",m(54,60,"labels.inputs.Shares to be Issued"),":"),a(3),h(m(57,62,i.shareProduct.totalSharesIssued)),a(4),v("",m(61,64,"labels.inputs.Nominal/Unit Price"),":"),a(3),h(m(64,66,i.shareProduct.unitPrice)),a(4),v("",m(68,68,"labels.inputs.Capital Value"),":"),a(3),h(m(71,70,i.shareProduct.shareCapital)),a(3),h(m(74,72,"labels.heading.Settings")),a(2),g("inset",!0),a(3),v("",m(79,74,"labels.inputs.Shares per Client"),":"),a(3),h(i.shareProduct.nominalShares+" (Min: "+(i.shareProduct.minimumShares?i.shareProduct.minimumShares:i.shareProduct.nominalShares)+", Max: "+(i.shareProduct.maximumShares?i.shareProduct.maximumShares:i.shareProduct.nominalShares)+")"),a(),I(i.shareProduct.minimumActivePeriod?82:-1),a(),I(i.shareProduct.lockinPeriod?83:-1),a(3),v("",m(87,76,"labels.inputs.Allow dividends for inactive clients"),":"),a(3),h(m(90,78,i.shareProduct.allowDividendCalculationForInactiveClients)),a(2),I(i.shareProduct.marketPrice!=null&&i.shareProduct.marketPrice.length?91:-1),a(),I(i.shareProduct.charges.length?92:-1),a(2),h(m(95,80,"labels.heading.Accounting")),a(2),g("inset",!0),a(3),v("",m(100,82,"labels.inputs.Type"),":"),a(3),h(m(103,84,"labels.accounting."+i.getAccountingRuleName(i.shareProduct.accountingRule.value))),a(2),I(i.shareProduct.accountingRule.id===2?104:-1))},dependencies:[ue,fe,Oe,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,as,Pi,he,ki,In,po],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.mat-h3[_ngcontent-%COMP%]{margin-top:10px!important;font-weight:300;color:#4461e2}"]})}}return e})();var xS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("productId"),this.route.data.subscribe(t=>{this.entityDatatable=t.shareProductDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-share-product-datatable-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Share Product",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var iX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_share_product")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var nX=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("productId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var gUt=[_o.withShell([{path:"products",data:{title:"Products",breadcrumb:"Products"},children:[{path:"",component:Uy},{path:"loan-products",data:{title:"Loan Products",breadcrumb:"Loan Products"},children:[{path:"",component:Wy,resolve:{loanProducts:XI}},{path:"create",component:Xy,data:{title:"Create Loan Product",breadcrumb:"Create"},resolve:{loanProductsTemplate:ZI,configurations:Wp}},{path:":productId",component:Zy,resolve:{loanProductDatatables:eX},data:{title:"View Loan Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},component:cS,resolve:{loanProduct:e6}},{path:"datatables",children:[{path:":datatableName",component:pS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{loanProductDatatable:tX}}]},{path:"edit",component:e3,data:{title:"Edit Loan Product",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loanProductAndTemplate:t6,configurations:Wp}}]}]},{path:"saving-products",data:{title:"Saving Products",breadcrumb:"Saving Products"},children:[{path:"",component:t3,resolve:{savingProducts:i6}},{path:"create",component:i3,data:{title:"Create Savings Product",breadcrumb:"Create"},resolve:{savingProductsTemplate:n6}},{path:":productId",data:{title:"View Saving Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},resolve:{savingProductDatatables:dS},children:[{path:"",component:n3,children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},component:uS,resolve:{savingProduct:o6}},{path:"datatables",children:[{path:":datatableName",component:fS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{savingProductDatatable:mS}}]}]},{path:"edit",component:o3,data:{title:"Edit Saving Product",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingProductAndTemplate:a6}}]}]},{path:"share-products",data:{title:"Share Products",breadcrumb:"Share Products"},children:[{path:"",component:a3,resolve:{shareProducts:r6}},{path:"create",component:r3,data:{title:"Create Share Product",breadcrumb:"Create"},resolve:{shareProductsTemplate:l6}},{path:":productId",data:{title:"View Share Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},resolve:{shareProductDatatables:iX},children:[{path:"",component:l3,children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},component:vS,resolve:{shareProduct:G3}},{path:"datatables",children:[{path:":datatableName",component:xS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{shareProductDatatable:nX}}]}]},{path:"edit",component:s3,data:{title:"Edit Share Product",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{shareProductAndTemplate:s6}},{path:"dividends",data:{title:"Share Products Dividends",breadcrumb:"Dividends",routeParamBreadcrumb:!1},children:[{path:"",component:O3,resolve:{dividends:v6}},{path:"create",component:F3,data:{title:"Create Dividend",breadcrumb:"Create",routeParamBreadcrumb:!1},resolve:{shareProduct:G3}},{path:":dividendId",component:B3,data:{title:"View Dividend",routeParamBreadcrumb:"dividendId"},resolve:{dividendData:y6}}]}]}]},{path:"tax-configurations",data:{title:"Manage Tax Configurations",breadcrumb:"Manage Tax Configurations"},children:[{path:"",component:m3},{path:"tax-components",data:{title:"Manage Tax Components",breadcrumb:"Tax Components"},children:[{path:"",component:dh,resolve:{taxComponents:g6}},{path:"create",component:E3,data:{title:"Create Tax Component",breadcrumb:"Create"},resolve:{taxComponentTemplate:C6}},{path:":id",data:{title:"View Tax Component",routeParamBreadcrumb:"id"},resolve:{taxComponent:_h},children:[{path:"",component:D3,resolve:{taxComponent:_h}},{path:"edit",data:{title:"Edit Tax Component",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:fh,resolve:{taxComponent:_h}}]}]},{path:"tax-groups",data:{title:"Manage Tax Groups",breadcrumb:"Tax Groups"},children:[{path:"",component:uh,resolve:{taxGroups:_6}},{path:"create",component:R3,data:{title:"Create Tax Group",breadcrumb:"Create"},resolve:{taxGroupTemplate:w6}},{path:":id",data:{title:"View Tax Group",routeParamBreadcrumb:"id"},resolve:{taxGroup:W3},children:[{path:"",component:I3,resolve:{taxGroup:W3}},{path:"edit",data:{title:"Edit Tax Group",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:N3,resolve:{taxGroup:P6}}]}]}]},{path:"delinquency-bucket-configurations",data:{title:"Manage Delinquency Bucket Configurations",breadcrumb:"Manage Delinquency Bucket Configurations"},children:[{path:"",component:eS},{path:"ranges",data:{title:"Manage Delinquency Ranges",breadcrumb:"Delinquency Ranges"},children:[{path:"",component:iS,resolve:{delinquencyRanges:Wm}},{path:"create",component:aS,data:{title:"Create Delinquency Range",breadcrumb:"Create"}},{path:":rangeId",data:{title:"View Delinquency Range",routeParamBreadcrumb:"id"},resolve:{delinquencyRange:Wm},children:[{path:"",component:nS,resolve:{delinquencyRange:Wm}},{path:"edit",data:{title:"Edit Delinquency Range",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:oS,resolve:{delinquencyRange:Wm}}]}]},{path:"buckets",data:{title:"Manage Delinquency Bucket",breadcrumb:"Delinquency Buckets"},children:[{path:"",component:tS,resolve:{delinquencyBuckets:Nu}},{path:"create",component:rS,data:{title:"Create Delinquency Bucket",breadcrumb:"Create"},resolve:{delinquencyRanges:Wm}},{path:":bucketId",data:{title:"View Delinquency Bucket",routeParamBreadcrumb:"id"},resolve:{delinquencyBucket:Nu},children:[{path:"",component:sS,resolve:{delinquencyBucket:Nu}},{path:"edit",data:{title:"Edit Delinquency Bucket",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:lS,resolve:{delinquencyBucket:Nu,delinquencyRanges:Wm}}]}]}]},{path:"recurring-deposit-products",data:{title:"Recurring Deposit Products",breadcrumb:"Recurring Deposit Products"},children:[{path:"create",component:A3,data:{title:"Create Recurring Deposit Product",breadcrumb:"Create"},resolve:{recurringDepositProductsTemplate:x6}},{path:"",component:u3,resolve:{recurringDepositProducts:c6}},{path:":productId",data:{title:"View Recurring Deposit Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},component:f3,resolve:{recurringDepositDatatables:dS},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:_S,resolve:{recurringDepositProduct:p6}},{path:"datatables",children:[{path:":datatableName",component:CS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{recurringDepositDatatable:mS}}]},{path:"edit",data:{title:"Edit Recurring Deposit Product",breadcrumb:"edit",routeParamBreadcrumb:!1},component:Q3,resolve:{recurringDepositProductAndTemplate:b6}}]}]},{path:"fixed-deposit-products",data:{title:"Fixed Deposit Products",breadcrumb:"Fixed Deposit Products"},children:[{path:"create",component:b3,data:{title:"Create Fixed Deposit Product",breadcrumb:"Create"},resolve:{fixedDepositProductsTemplate:f6}},{path:"",component:x3,resolve:{fixedDepositProducts:u6}},{path:":productId",data:{title:"View Fixed Deposit Product",breadcrumb:"productId",routeParamBreadcrumb:"productId"},component:k3,resolve:{fixedDepositDatatables:dS},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:hS,resolve:{fixedDepositProduct:S6}},{path:"datatables",children:[{path:":datatableName",component:gS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{fixedDepositDatatable:mS}}]},{path:"edit",data:{title:"Edit Fixed Deposit Product",breadcrumb:"edit",routeParamBreadcrumb:!1},component:J3,resolve:{fixedDepositProductAndTemplate:D6}}]}]},{path:"products-mix",data:{title:"Products Mix",breadcrumb:"Products Mix"},children:[{path:"create",component:L3,data:{title:"Create Product Mix",breadcrumb:"Create"},resolve:{productsMixTemplate:T6}},{path:"",component:y3,resolve:{products:h6}},{path:":id",data:{title:"View Product Mix",routeParamBreadcrumb:"id"},resolve:{productMix:gh},children:[{path:"",component:M3,resolve:{productMix:gh}},{path:"edit",data:{title:"Edit Product Mix",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Y3,resolve:{productMix:gh}}]}]},{path:"floating-rates",data:{title:"Floating Rates",breadcrumb:"Floating Rates"},children:[{path:"",component:S3,resolve:{floatingrates:$3}},{path:"create",component:w3,data:{title:"Create Floating Rate",breadcrumb:"Create"}},{path:":id",data:{title:"View Floating Rate",routeParamBreadcrumb:"id"},resolve:{floatingRate:hh},children:[{path:"",component:P3,resolve:{floatingRate:hh}},{path:"edit",component:T3,data:{title:"Edit Floating Rate",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{floatingRate:hh}}]}]},{path:"charges",data:{title:"Charges",breadcrumb:"Charges"},children:[{path:"create",component:v3,data:{title:"Create Charge",breadcrumb:"Create Charge"},resolve:{chargesTemplate:d6}},{path:"",component:h3,resolve:{charges:m6}},{path:":id",data:{title:"View Charges",breadcrumb:"id",routeParamBreadcrumb:"id"},resolve:{charge:j3},children:[{path:"",component:g3,resolve:{charge:j3}},{path:"edit",component:U3,data:{title:"Edit Charge",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{chargesTemplate:M6}}]}]},{path:"collaterals",data:{title:"Collaterals",breadcrumb:"Collaterals"},children:[{path:"create",component:q3,data:{title:"Create Collateral",breadcrumb:"Create Collateral"},resolve:{collateralTemplate:K3}},{path:"",component:V3,resolve:{collaterals:E6}},{path:":id",data:{title:"View Collateral",routeParamBreadcrumb:"id"},resolve:{collateral:Ch},children:[{path:"",component:H3,resolve:{collateral:Ch}},{path:"edit",component:z3,data:{title:"Edit Collateral",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{collateralTemplate:K3,collateral:Ch}}]}]}]}])],oX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[XI,ZI,e6,t6,i6,n6,o6,a6,r6,l6,G3,s6,c6,p6,m6,j3,M6,d6,u6,f6,h6,gh,g6,_6,_h,hh,$3,C6,fh,W3,v6,x6,b6,y6,S6,w6,P6,T6,D6,$3,Ch,E6,K3,Wm,Nu],imports:[gn.forChild(gUt),gn]})}}return e})();var aX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,oX,ha,Er,Uy,Wy,cm,pm,hm,mm,dm,Iu,um,fm,Au,Xy,m3,u3,h3,g3,x3,dh,y3,S3,w3,P3,T3,Vm,M3,dh,Zy,e3,t3,Cm,vm,xm,bm,ym,Sm,Fu,i3,n3,o3,a3,wm,Pm,Tm,Mm,Dm,Em,Im,ku,r3,l3,s3,b3,Om,Am,Fm,km,Rm,Nm,Lm,Bu,uh,D3,E3,fh,U3,I3,O3,Bm,f3,A3,Um,$m,zm,qm,jm,Ru,Gm,Hm,Q3,F3,B3,k3,R3,N3,L3,Y3,uh,v3,J3,V3,q3,z3,H3,eS,tS,iS,aS,nS,oS,sS,rS,lS,pS,cS,uS,fS,hS,gS,CS,_S,vS,xS,Ky,Jy,Ou,_m,Yy]})}}return e})();var _Ut=["office"],CUt=["templateOffice"],vUt=["addEditCurrency"],xUt=["templateAddEditCurrency"],bUt=["holidays"],yUt=["templateHolidays"],SUt=["employee"],wUt=["templateEmployee"],PUt=["workingDays"],TUt=["templateWorkingDays"],MUt=["manageFunds"],DUt=["templateManageFunds"],rX=()=>["offices"],lX=()=>["holidays"],sX=()=>["employees"],cX=()=>["standing-instructions-history"],pX=()=>["investors"],mX=()=>["fund-mapping"],dX=()=>["password-preferences"],uX=()=>["provisioning-criteria"],fX=()=>["entity-data-table-checks"],hX=()=>["currencies"],gX=()=>["manage-funds"],_X=()=>["bulkloan"],CX=()=>["tellers"],vX=()=>["working-days"],xX=()=>["payment-types"],bX=()=>["sms-campaigns"],yX=()=>["adhoc-query"],SX=()=>["bulk-import"];function EUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,rX)),a(),v(" ",m(2,2,"labels.text.Add new office or modify or deactivate office")," "))}function IUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function OUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function AUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",31),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,EUt,3,5,"p",33),r()(),l(9,"div",34),E(10,IUt,1,0,"fa-icon",35),E(11,OUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,rX)),a(4),v(" ",m(7,5,"labels.heading.Manage Offices")," "),a(2),I(t.arrowBooleans[0]?8:-1),a(2),I(t.arrowBooleans[0]?-1:10),a(),I(t.arrowBooleans[0]?11:-1)}}function FUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,lX)),a(),v(" ",m(2,2,"labels.text.Define holidays for office")," "))}function kUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function BUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function RUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",39),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,FUt,3,5,"p",33),r()(),l(9,"div",34),E(10,kUt,1,0,"fa-icon",35),E(11,BUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,lX)),a(4),v(" ",m(7,5,"labels.heading.Manage Holidays")," "),a(2),I(t.arrowBooleans[1]?8:-1),a(2),I(t.arrowBooleans[1]?-1:10),a(),I(t.arrowBooleans[1]?11:-1)}}function NUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,sX)),a(),v(" ",m(2,2,"labels.text.Employee represents loan officers")," "))}function LUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function VUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function qUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",40),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,NUt,3,5,"p",33),r()(),l(9,"div",34),E(10,LUt,1,0,"fa-icon",35),E(11,VUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,sX)),a(4),v(" ",m(7,5,"labels.heading.Manage Employees")," "),a(2),I(t.arrowBooleans[2]?8:-1),a(2),I(t.arrowBooleans[2]?-1:10),a(),I(t.arrowBooleans[2]?11:-1)}}function zUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,cX)),a(),v(" ",m(2,2,"labels.text.View logged history")," "))}function HUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function GUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function jUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",41),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,zUt,3,5,"p",33),r()(),l(9,"div",34),E(10,HUt,1,0,"fa-icon",35),E(11,GUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,cX)),a(4),v(" ",m(7,5,"labels.heading.Standing Instructions History")," "),a(2),I(t.arrowBooleans[3]?8:-1),a(2),I(t.arrowBooleans[3]?-1:10),a(),I(t.arrowBooleans[3]?11:-1)}}function $Ut(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,pX)),a(),v(" ",m(2,2,"labels.text.View the loan account details associated with the investors")," "))}function UUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function WUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function QUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",42),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,$Ut,3,5,"p",33),r()(),l(9,"div",34),E(10,UUt,1,0,"fa-icon",35),E(11,WUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,pX)),a(4),v(" ",m(7,5,"labels.text.Investors")," "),a(2),I(t.arrowBooleans[4]?8:-1),a(2),I(t.arrowBooleans[4]?-1:10),a(),I(t.arrowBooleans[4]?11:-1)}}function YUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,mX)),a(),v(" ",m(2,2,"labels.text.Bulk entry screen for mapping")," "))}function JUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function KUt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function XUt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,YUt,3,5,"p",33),r()(),l(9,"div",34),E(10,JUt,1,0,"fa-icon",35),E(11,KUt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,mX)),a(4),v(" ",m(7,5,"labels.heading.Fund Mapping")," "),a(2),I(t.arrowBooleans[5]?8:-1),a(2),I(t.arrowBooleans[5]?-1:10),a(),I(t.arrowBooleans[5]?11:-1)}}function ZUt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,dX)),a(),v(" ",m(2,2,"labels.text.The usage of stronger passwords")," "))}function eWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function tWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function iWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",44),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,ZUt,3,5,"p",33),r()(),l(9,"div",34),E(10,eWt,1,0,"fa-icon",35),E(11,tWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,dX)),a(4),v(" ",m(7,5,"labels.heading.Password Preferences")," "),a(2),I(t.arrowBooleans[6]?8:-1),a(2),I(t.arrowBooleans[6]?-1:10),a(),I(t.arrowBooleans[6]?11:-1)}}function nWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,uX)),a(),v(" ",m(2,2,"labels.text.Loan Provisioning Criteria Organization")," "))}function oWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function aWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function rWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",45),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,nWt,3,5,"p",33),r()(),l(9,"div",34),E(10,oWt,1,0,"fa-icon",35),E(11,aWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,uX)),a(4),v(" ",m(7,5,"labels.heading.Loan Provisioning Criteria")," "),a(2),I(t.arrowBooleans[7]?8:-1),a(2),I(t.arrowBooleans[7]?-1:10),a(),I(t.arrowBooleans[7]?11:-1)}}function lWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,fX)),a(),v(" ",m(2,2,"labels.text.Entity Data Table Checks Organization")," "))}function sWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function cWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function pWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",46),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,lWt,3,5,"p",33),r()(),l(9,"div",34),E(10,sWt,1,0,"fa-icon",35),E(11,cWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,fX)),a(4),v(" ",m(7,5,"labels.heading.Entity Data Table Checks")," "),a(2),I(t.arrowBooleans[8]?8:-1),a(2),I(t.arrowBooleans[8]?-1:10),a(),I(t.arrowBooleans[8]?11:-1)}}function mWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,hX)),a(),v(" ",m(2,2,"labels.text.Currencies available across organization")," "))}function dWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function uWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function fWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",47),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,mWt,3,5,"p",33),r()(),l(9,"div",34),E(10,dWt,1,0,"fa-icon",35),E(11,uWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,hX)),a(4),v(" ",m(7,5,"labels.heading.Currency Configuration")," "),a(2),I(t.arrowBooleans[9]?8:-1),a(2),I(t.arrowBooleans[9]?-1:10),a(),I(t.arrowBooleans[9]?11:-1)}}function hWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,gX)),a(),v(" ",m(2,2,"labels.text.Funds are associated with loans")," "))}function gWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function _Wt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function CWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,hWt,3,5,"p",33),r()(),l(9,"div",34),E(10,gWt,1,0,"fa-icon",35),E(11,_Wt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,gX)),a(4),v(" ",m(7,5,"labels.heading.Manage Funds")," "),a(2),I(t.arrowBooleans[10]?8:-1),a(2),I(t.arrowBooleans[10]?-1:10),a(),I(t.arrowBooleans[10]?11:-1)}}function vWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,_X)),a(),v(" ",m(2,2,"labels.text.Easy way to reassign all the loan")," "))}function xWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function bWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function yWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,vWt,3,5,"p",33),r()(),l(9,"div",34),E(10,xWt,1,0,"fa-icon",35),E(11,bWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,_X)),a(4),v(" ",m(7,5,"labels.heading.Bulk Loan Reassignment")," "),a(2),I(t.arrowBooleans[11]?8:-1),a(2),I(t.arrowBooleans[11]?-1:10),a(),I(t.arrowBooleans[11]?11:-1)}}function SWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,CX)),a(),v(" ",m(2,2,"labels.text.Manage Tellers / Cashiers")," "))}function wWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function PWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function TWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",43),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,SWt,3,5,"p",33),r()(),l(9,"div",34),E(10,wWt,1,0,"fa-icon",35),E(11,PWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,CX)),a(4),v(" ",m(7,5,"labels.heading.Teller / Cashier Management")," "),a(2),I(t.arrowBooleans[12]?8:-1),a(2),I(t.arrowBooleans[12]?-1:10),a(),I(t.arrowBooleans[12]?11:-1)}}function MWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,vX)),a(),v(" ",m(2,2,"labels.text.Working days and configure behaviour of payments")," "))}function DWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function EWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function IWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon"),b(4,"fa-icon",39),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,MWt,3,5,"p",33),r()(),l(9,"div",34),E(10,DWt,1,0,"fa-icon",35),E(11,EWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,vX)),a(4),v(" ",m(7,5,"labels.heading.Working Days")," "),a(2),I(t.arrowBooleans[13]?8:-1),a(2),I(t.arrowBooleans[13]?-1:10),a(),I(t.arrowBooleans[13]?11:-1)}}function OWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,xX)),a(),v(" ",m(2,2,"labels.text.Manage payment types")," "))}function AWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function FWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function kWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",48),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,OWt,3,5,"p",33),r()(),l(9,"div",34),E(10,AWt,1,0,"fa-icon",35),E(11,FWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,xX)),a(4),v(" ",m(7,5,"labels.heading.Payment Type")," "),a(2),I(t.arrowBooleans[14]?8:-1),a(2),I(t.arrowBooleans[14]?-1:10),a(),I(t.arrowBooleans[14]?11:-1)}}function BWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,bX)),a(),v(" ",m(2,2,"labels.text.Define SMS Campaigns for Organization")," "))}function RWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function NWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function LWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",49),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,BWt,3,5,"p",33),r()(),l(9,"div",34),E(10,RWt,1,0,"fa-icon",35),E(11,NWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,bX)),a(4),v(" ",m(7,5,"labels.heading.SMS Campaigns")," "),a(2),I(t.arrowBooleans[15]?8:-1),a(2),I(t.arrowBooleans[15]?-1:10),a(),I(t.arrowBooleans[15]?11:-1)}}function VWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,yX)),a(),v(" ",m(2,2,"labels.text.Define AdHocQuery for Organization")," "))}function qWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function zWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function HWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",50),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,VWt,3,5,"p",33),r()(),l(9,"div",34),E(10,qWt,1,0,"fa-icon",35),E(11,zWt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,yX)),a(4),v(" ",m(7,5,"labels.heading.AdHocQuery")," "),a(2),I(t.arrowBooleans[16]?8:-1),a(2),I(t.arrowBooleans[16]?-1:10),a(),I(t.arrowBooleans[16]?11:-1)}}function GWt(e,o){e&1&&(l(0,"p",33),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,SX)),a(),v(" ",m(2,2,"labels.text.Bulk data import using excel spreadsheet templates")," "))}function jWt(e,o){if(e&1){let t=Y();l(0,"fa-icon",37),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(17))}),r()}}function $Wt(e,o){if(e&1){let t=Y();l(0,"fa-icon",38),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(17))}),r()}}function UWt(e,o){if(e&1&&(l(0,"mat-list-item")(1,"div",28)(2,"div",29)(3,"mat-icon",30),b(4,"fa-icon",51),r(),l(5,"div",32),c(6),p(7,"translate"),E(8,GWt,3,5,"p",33),r()(),l(9,"div",34),E(10,jWt,1,0,"fa-icon",35),E(11,$Wt,1,0,"fa-icon",36),r()()()),e&2){let t=w();a(2),g("routerLink",oe(7,SX)),a(4),v(" ",m(7,5,"labels.heading.Bulk Import")," "),a(2),I(t.arrowBooleans[17]?8:-1),a(2),I(t.arrowBooleans[17]?-1:10),a(),I(t.arrowBooleans[17]?11:-1)}}function WWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepOffice())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepOffice())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Offices")),a(3),h(m(5,7,"labels.text.Manage Offices page allows you to create, edit")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function QWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepAddEditCurrency())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepAddEditCurrency())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Currency Configuration")),a(3),h(m(5,7,"labels.text.Define what currencies interactions within the Mifos X system")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function YWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepHolidays())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepHolidays())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Holidays")),a(3),h(m(5,7,"labels.text.Ability to manage holidays for individual offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function JWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepEmployee())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepEmployee())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Employees")),a(3),h(m(5,7,"labels.text.View, edit and delete employees of your organization")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function KWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepWorkingDays())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepWorkingDays())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Working Days")),a(3),h(m(5,7,"labels.text.Working days page allows you to define which days")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function XWt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",52),c(4),p(5,"translate"),r(),l(6,"div",53)(7,"button",54),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStepManageFunds())}),c(11),p(12,"translate"),r(),l(13,"button",55),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStepManageFunds())}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Manage Funds")),a(3),h(m(5,7,"labels.text.This allows you to manage funds associated with loans.")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}var bS=(()=>{class e{constructor(){this.activatedRoute=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.shouldShowFundMapping=!1,this.arrowBooleans=new Array(18).fill(!1)}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCreateOffice===!0&&setTimeout(()=>{this.showPopover(this.templateOffice,this.office.nativeElement,"bottom",!0)}),this.configurationWizardService.showAddEditCurrency===!0&&setTimeout(()=>{this.showPopover(this.templateAddEditCurrency,this.addEditCurrency.nativeElement,"bottom",!0)}),this.configurationWizardService.showCreateHoliday===!0&&setTimeout(()=>{this.showPopover(this.templateHolidays,this.holidays.nativeElement,"bottom",!0)}),this.configurationWizardService.showCreateEmployee===!0&&setTimeout(()=>{this.showPopover(this.templateEmployee,this.employee.nativeElement,"bottom",!0)}),this.configurationWizardService.showDefineWorkingDays===!0&&setTimeout(()=>{this.showPopover(this.templateWorkingDays,this.workingDays.nativeElement,"bottom",!0)}),this.configurationWizardService.showManageFunds===!0&&setTimeout(()=>{this.showPopover(this.templateManageFunds,this.manageFunds.nativeElement,"bottom",!0)})}nextStepOffice(){this.configurationWizardService.showCreateOffice=!1,this.configurationWizardService.showOfficeList=!0,this.router.navigate(["/organization/offices"])}previousStepOffice(){this.configurationWizardService.showCreateOffice=!1,this.configurationWizardService.showHomeSearchActivity=!0,this.router.navigate(["/home"])}nextStepAddEditCurrency(){this.configurationWizardService.showAddEditCurrency=!1,this.configurationWizardService.showCurrencyPage=!0,this.router.navigate(["/organization/currencies"])}previousStepAddEditCurrency(){this.configurationWizardService.showAddEditCurrency=!1,this.configurationWizardService.showOfficeForm=!0,this.router.navigate(["/organization/offices/create"])}nextStepHolidays(){this.configurationWizardService.showCreateHoliday=!1,this.configurationWizardService.showHolidayPage=!0,this.router.navigate(["/organization/holidays"])}previousStepHolidays(){this.configurationWizardService.showCreateHoliday=!1,this.configurationWizardService.showCurrencyForm=!0,this.router.navigate(["/organization/currencies/manage"])}nextStepEmployee(){this.configurationWizardService.showCreateEmployee=!1,this.configurationWizardService.showEmployeeList=!0,this.router.navigate(["/organization/employees"])}previousStepEmployee(){this.configurationWizardService.showCreateEmployee=!1,this.configurationWizardService.showHolidayFilter=!0,this.router.navigate(["/organization/holidays"])}nextStepWorkingDays(){this.router.navigate(["/organization/working-days"])}previousStepWorkingDays(){this.configurationWizardService.showDefineWorkingDays=!1,this.configurationWizardService.showEmployeeForm=!0,this.router.navigate(["/organization/employees/create"])}nextStepManageFunds(){this.router.navigate(["/organization/manage-funds"])}previousStepManageFunds(){this.configurationWizardService.showManageFunds=!1,this.configurationWizardService.showRecurringDepositProductsList=!0,this.router.navigate(["/products/recurring-deposit-products"])}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-products"]],viewQuery:function(n,i){if(n&1&&(Ee(_Ut,5),Ee(CUt,5),Ee(vUt,5),Ee(xUt,5),Ee(bUt,5),Ee(yUt,5),Ee(SUt,5),Ee(wUt,5),Ee(PUt,5),Ee(TUt,5),Ee(MUt,5),Ee(DUt,5)),n&2){let s;Te(s=Me())&&(i.office=s.first),Te(s=Me())&&(i.templateOffice=s.first),Te(s=Me())&&(i.addEditCurrency=s.first),Te(s=Me())&&(i.templateAddEditCurrency=s.first),Te(s=Me())&&(i.holidays=s.first),Te(s=Me())&&(i.templateHolidays=s.first),Te(s=Me())&&(i.employee=s.first),Te(s=Me())&&(i.templateEmployee=s.first),Te(s=Me())&&(i.workingDays=s.first),Te(s=Me())&&(i.templateWorkingDays=s.first),Te(s=Me())&&(i.manageFunds=s.first),Te(s=Me())&&(i.templateManageFunds=s.first)}},decls:73,vars:18,consts:[["office",""],["holidays",""],["employee",""],["standinginstructions",""],["investor",""],["fundmapping",""],["passwordpreferences",""],["provisioning",""],["entitydatatable",""],["addEditCurrency",""],["manageFunds",""],["bulkloan",""],["tellers",""],["workingDays",""],["paymenttypes",""],["smscampaigns",""],["adhocquery",""],["bulkimport",""],["templateOffice",""],["templateAddEditCurrency",""],["templateHolidays",""],["templateEmployee",""],["templateWorkingDays",""],["templateManageFunds",""],[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[4,"mifosxHasPermission"],[1,"menu-list-item-content"],[1,"menu-left-section",3,"routerLink"],["matListIcon",""],["icon","building","size","sm"],["matLine",""],["matLine","",1,"menu-explanation",3,"routerLink"],[1,"menu-right-section"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","calendar-alt","size","sm"],["icon","user","size","sm"],["icon","book","size","sm"],["icon","user-tie","size","sm"],["icon","money-bill-alt","size","sm"],["icon","lock","size","sm"],["icon","edit","size","sm"],["icon","check","size","sm"],["icon","cogs","size","sm"],["icon","dollar-sign","size","sm"],["icon","envelope","size","sm"],["icon","chevron-right","size","sm"],["icon","upload","size","sm"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",24)(1,"mat-card")(2,"div",25)(3,"div",26)(4,"mat-nav-list")(5,"div",null,0),F(7,AUt,12,8,"mat-list-item",27),r(),l(8,"div",null,1),F(10,RUt,12,8,"mat-list-item",27),r(),l(11,"div",null,2),F(13,qUt,12,8,"mat-list-item",27),r(),l(14,"div",null,3),F(16,jUt,12,8,"mat-list-item",27),r(),l(17,"div",null,4),F(19,QUt,12,8,"mat-list-item",27),r(),l(20,"div",null,5),F(22,XUt,12,8,"mat-list-item",27),r(),l(23,"div",null,6),F(25,iWt,12,8,"mat-list-item",27),r(),l(26,"div",null,7),F(28,rWt,12,8,"mat-list-item",27),r(),l(29,"div",null,8),F(31,pWt,12,8,"mat-list-item",27),r()()(),l(32,"div",26)(33,"mat-nav-list")(34,"div",null,9),F(36,fWt,12,8,"mat-list-item",27),r(),l(37,"div",null,10),F(39,CWt,12,8,"mat-list-item",27),r(),l(40,"div",null,11),F(42,yWt,12,8,"mat-list-item",27),r(),l(43,"div",null,12),F(45,TWt,12,8,"mat-list-item",27),r(),l(46,"div",null,13),F(48,IWt,12,8,"mat-list-item",27),r(),l(49,"div",null,14),F(51,kWt,12,8,"mat-list-item",27),r(),l(52,"div",null,15),F(54,LWt,12,8,"mat-list-item",27),r(),l(55,"div",null,16),F(57,HWt,12,8,"mat-list-item",27),r(),l(58,"div",null,17),F(60,UWt,12,8,"mat-list-item",27),r()()()()()(),F(61,WWt,16,15,"ng-template",null,18,ti)(63,QWt,16,15,"ng-template",null,19,ti)(65,YWt,16,15,"ng-template",null,20,ti)(67,JWt,16,15,"ng-template",null,21,ti)(69,KWt,16,15,"ng-template",null,22,ti)(71,XWt,16,15,"ng-template",null,23,ti)),n&2&&(a(7),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_HOLIDAY"),a(3),g("mifosxHasPermission","READ_STAFF"),a(3),g("mifosxHasPermission","READ_STANDINGINSTRUCTION"),a(3),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_PASSWORD_VALIDATION_POLICY"),a(3),g("mifosxHasPermission","VIEW_PROVISIONS"),a(3),g("mifosxHasPermission","READ_ENTITY_DATATABLE_CHECK"),a(5),g("mifosxHasPermission","READ_CURRENCY"),a(3),g("mifosxHasPermission","READ_FUND"),a(3),g("mifosxHasPermission","BULKREASSIGN_LOAN"),a(3),g("mifosxHasPermission","READ_TELLER"),a(3),g("mifosxHasPermission","READ_WORKINGDAYS"),a(3),g("mifosxHasPermission","READ_PAYMENTTYPE"),a(3),g("mifosxHasPermission","VIEW_SMSCAMPAIGNS"),a(3),g("mifosxHasPermission","VIEW_ADHOC"),a(3),g("mifosxHasPermission","VIEW_BULKIMPORT"))},dependencies:[ue,fe,Oe,Ue,xe,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var ZWt=()=>[10,25,50,100],eQt=()=>["create"],tQt=e=>[e];function iQt(e,o){e&1&&(l(0,"button",15),b(1,"fa-icon",16),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,eQt)),a(2),v(" ",m(3,2,"labels.buttons.Create Provisioning Criteria")," "))}function nQt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function oQt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.criteriaName)}}function aQt(e,o){e&1&&(l(0,"th",17),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function rQt(e,o){if(e&1&&(l(0,"td",18),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function lQt(e,o){e&1&&b(0,"tr",19)}function sQt(e,o){if(e&1&&b(0,"tr",20),e&2){let t=o.$implicit;g("routerLink",Nt(1,tQt,t.criteriaId))}}var yS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["criteriaName","createdBy"],this.route.data.subscribe(t=>{this.loanProvisioningCriteriaData=t.loanProvisioningCriterias})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setLoanProvisioningCriteria()}setLoanProvisioningCriteria(){this.dataSource=new Wt(this.loanProvisioningCriteriaData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-provisioning-criteria"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:20,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","criteriaName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdBy"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,iQt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,nQt,3,3,"th",9)(13,oQt,2,1,"td",10),Z(),X(14,11),F(15,aQt,3,3,"th",9)(16,rQt,2,1,"td",10),Z(),F(17,lQt,1,0,"tr",12)(18,sQt,1,3,"tr",13),r(),b(19,"mat-paginator",14),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_PROVISIONING_CRITERIA"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,ZWt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var vh=class{constructor(o,t="",n="",i="",s="",d="",u=""){this.name=o,this.id=t,this.parentId=n,this.hierarchy=i,this.externalId=s,this.parentName=d,this.openingDate=u,this.children=[]}};var wX=(()=>{class e{get treeData(){return this.treeDataChange.value}constructor(){this.treeDataChange=new Ra([])}initialize(t){let n=this.buildOfficeTree(t);this.treeDataChange.next(n)}buildOfficeTree(t){let n=[],i=t.find(d=>d.hierarchy===".");n.push(new vh(i.name,i.id)),t.sort((d,u)=>(d.parentId||(d.parentId=0),d.parentId-u.parentId));let s=[];for(let d of t)s[d.id]=new vh(d.name,d.id,d.parentId,d.hierarchy,d.externalId,d.parentName,d.openingDate);for(let d of t)d.hierarchy!=="."&&(d.parentId===1?n[0].children.push(s[d.id]):s[d.parentId].children.push(s[d.id]));return n}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var cQt=["buttonTreeView"],pQt=["templateButtonTreeView"],mQt=["tableOffices"],dQt=["templateTableOffices"],uQt=()=>[10,25,50,100],fQt=()=>["create"],hQt=()=>["/organization","bulk-import","Offices"],gQt=e=>[e,"general"];function _Qt(e,o){e&1&&(l(0,"button",40),b(1,"fa-icon",41),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,fQt)),a(2),v(" ",m(3,2,"labels.buttons.Create Office")," "))}function CQt(e,o){e&1&&(l(0,"button",40),b(1,"fa-icon",42),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,hQt)),a(2),v(" ",m(3,2,"labels.buttons.Import Offices")," "))}function vQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," Office Name ")))}function xQt(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function bQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," External ID ")))}function yQt(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.externalId)}}function SQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," Parent Office ")))}function wQt(e,o){if(e&1&&(l(0,"td",44),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentName)}}function PQt(e,o){e&1&&(l(0,"th",43),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1," Opened On ")))}function TQt(e,o){if(e&1&&(l(0,"td",44),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.openingDate))}}function MQt(e,o){e&1&&b(0,"tr",45)}function DQt(e,o){if(e&1&&b(0,"tr",46),e&2){let t=o.$implicit;g("routerLink",Nt(1,gQt,t.id))}}function EQt(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",47)(1,"li",48),b(2,"button",49),l(3,"span",50),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewOfficeNode(i))}),c(4),r()()()}if(e&2){let t=o.$implicit;a(4),v(" ",t.name," ")}}function IQt(e,o){if(e&1){let t=Y();l(0,"mat-nested-tree-node")(1,"li")(2,"div",48)(3,"button",51),b(4,"fa-icon",52),r(),l(5,"span",50),R("click",function(){let i=V(t).$implicit,s=w();return q(s.viewOfficeNode(i))}),c(6),r()(),l(7,"ul"),gl(8,53),r()()()}if(e&2){let t=o.$implicit,n=w();a(3),Dn("aria-label","toggle "+t.name),a(),g("icon",Le(n.nestedTreeControl.isExpanded(t)?"chevron-down":"chevron-right")),a(2),v(" ",t.name," "),a(),_l("office-tree-invisible",!n.nestedTreeControl.isExpanded(t))}}function OQt(e,o){e&1&&(l(0,"div",60),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"Parent Office")," "))}function AQt(e,o){if(e&1&&(l(0,"div",61),c(1),r()),e&2){let t=w(2);a(),v(" ",t.office.parentName," ")}}function FQt(e,o){e&1&&(l(0,"div",60),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"External Id")," "))}function kQt(e,o){if(e&1&&(l(0,"div",61),b(1,"mifosx-external-identifier",63),r()),e&2){let t=w(2);a(),g("externalId",Le(t.office.externalId))}}function BQt(e,o){if(e&1&&b(0,"mat-tab",62),e&2){let t=o.$implicit;g("label",Le(t.registeredTableName))}}function RQt(e,o){if(e&1){let t=Y();l(0,"div",39)(1,"mat-card")(2,"mat-card-content")(3,"div",54)(4,"mat-card-title"),c(5),r(),l(6,"div",55)(7,"button",56),R("click",function(){V(t);let i=w();return q(i.closeOffice())}),b(8,"fa-icon",57),r()()(),l(9,"mat-tab-group")(10,"mat-tab",58)(11,"div",59),E(12,OQt,3,3,"div",60),E(13,AQt,2,1,"div",61),l(14,"div",60),c(15),p(16,"translate"),r(),l(17,"div",61),c(18),p(19,"date"),r(),E(20,FQt,3,3,"div",60),E(21,kQt,2,2,"div",61),r()(),Se(22,BQt,1,2,"mat-tab",62,Pe),r()()()()}if(e&2){let t=w();a(5),v(" ",t.office.name," "),a(7),I(t.office.parentId?12:-1),a(),I(t.office.parentId?13:-1),a(2),v(" ",m(16,7," Opened On")," "),a(3),v(" ",m(19,9,t.office.openingDate)," "),a(2),I(t.office.externalId?20:-1),a(),I(t.office.externalId?21:-1),a(),we(t.dataTablesData)}}function NQt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",64),c(4),p(5,"translate"),r(),l(6,"div",65)(7,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(8),u=ve(55);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Tree View")),a(3),h(m(5,7,"labels.text.Launch an alternative view for office hierarchy")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function LQt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",64),c(4),p(5,"translate"),r(),l(6,"div",65)(7,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(53);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(11),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Office")),a(3),h(m(5,7,"labels.text.Create new offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function VQt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",64),c(4),p(5,"translate"),r(),l(6,"div",65)(7,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(8),u=ve(55);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(15),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Import Offices")),a(3),h(m(5,7,"labels.text.Launch the Bulk import/Offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function qQt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",65)(4,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(11),u=ve(57);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(22),u=ve(61);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter offices.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function zQt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",65)(4,"button",66),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",67),R("click",function(){let i=V(t).popover,s=w(),d=ve(15),u=ve(59);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",67),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of offices in the organization.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var SS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.officeTreeService=T(wX),this.treeControlService=T(yv),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.viewGroup=new it("listView"),this.displayedColumns=["name","externalId","parentName","openingDate"],this.isTreeExpanded=!0,this.hasNestedChild=(n,i)=>i.children.length,this.getChildren=n=>sd(n.children);let t=this.officeTreeService;this.route.data.subscribe(n=>{this.officesData=n.offices,t.initialize(this.officesData),this.dataTablesData=n.officeDataTables}),this.nestedTreeControl=new zg(this.getChildren),this.nestedTreeDataSource=new jg}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setOffices(),this.officeTreeService.treeDataChange.subscribe(t=>{this.nestedTreeDataSource.data=t,this.nestedTreeControl.expand(this.nestedTreeDataSource.data[0]),this.nestedTreeControl.dataNodes=t})}setOffices(){this.dataSource=new Wt(this.officesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}viewOfficeNode(t){t.id?this.office=t:delete this.office}closeOffice(){delete this.office}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showOfficeList===!0&&setTimeout(()=>{this.showPopover(this.templateButtonTreeView,this.buttonTreeView.nativeElement,"bottom",!0)}),this.configurationWizardService.showOfficeTable===!0&&setTimeout(()=>{this.showPopover(this.templateTableOffices,this.tableOffices.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showOfficeList=!1,this.configurationWizardService.showOfficeTable=!1,this.configurationWizardService.showOfficeForm=!0,this.router.navigate(["/organization/offices/create"])}previousStep(){this.configurationWizardService.showOfficeList=!1,this.configurationWizardService.showOfficeTable=!1,this.configurationWizardService.showCreateOffice=!0,this.router.navigate(["/organization"])}toggleExpandCollapse(){this.isTreeExpanded=this.treeControlService.toggleExpandCollapse(this.nestedTreeControl,this.isTreeExpanded)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-offices"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(cQt,5),Ee(pQt,5),Ee(mQt,5),Ee(dQt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonTreeView=s.first),Te(s=Me())&&(i.templateButtonTreeView=s.first),Te(s=Me())&&(i.tableOffices=s.first),Te(s=Me())&&(i.templateTableOffices=s.first)}},decls:62,vars:20,consts:[["buttonTreeView",""],["buttonCreateOffice",""],["buttonImportOffices",""],["filter",""],["tableOffices",""],["templateButtonTreeView",""],["templateButtonCreateOffice",""],["templateButtonImportOffices",""],["templateFilter",""],["templateTableOffices",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[3,"formControl"],["value","listView"],["icon","list"],["value","treeView"],["icon","sitemap"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container",3,"hidden"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","externalId"],["matColumnDef","parentName"],["matColumnDef","openingDate"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"m-b-20","layout-row","align-start","gap-20px"],["mat-raised-button","",3,"click"],[1,"layout-row","gap-4percent","responsive-column"],[1,"office-tree",3,"dataSource","treeControl"],["matTreeNodeToggle","",4,"matTreeNodeDef"],[4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"flex-48"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["icon","upload",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],["matTreeNodeToggle",""],[1,"mat-tree-node"],["mat-icon-button","","disabled",""],[1,"m-r-10",3,"click"],["mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror",3,"icon"],["matTreeNodeOutlet",""],[1,"layout-row"],[1,"flex","align-end"],["mat-icon-button","",3,"click"],["icon","times"],["label","General"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"label"],[3,"externalId"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",10)(1,"mat-button-toggle-group",11,0)(3,"mat-button-toggle",12),b(4,"fa-icon",13),r(),l(5,"mat-button-toggle",14),b(6,"fa-icon",15),r()(),l(7,"div",16,1),F(9,_Qt,4,5,"button",17),r(),l(10,"div",16,2),F(12,CQt,4,5,"button",17),r()(),l(13,"div",18)(14,"div",19,3)(16,"mat-form-field",20)(17,"mat-label"),c(18),p(19,"translate"),r(),l(20,"input",21),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(21,"div",22,4)(23,"table",23),X(24,24),F(25,vQt,3,3,"th",25)(26,xQt,2,1,"td",26),Z(),X(27,27),F(28,bQt,3,3,"th",25)(29,yQt,2,1,"td",26),Z(),X(30,28),F(31,SQt,3,3,"th",25)(32,wQt,2,1,"td",26),Z(),X(33,29),F(34,PQt,3,3,"th",25)(35,TQt,3,3,"td",26),Z(),F(36,MQt,1,0,"tr",30)(37,DQt,1,3,"tr",31),r(),b(38,"mat-paginator",32),r()(),l(39,"div",18)(40,"div",33)(41,"button",34),R("click",function(){return V(s),q(i.toggleExpandCollapse())}),c(42),p(43,"translate"),r()(),l(44,"div",35)(45,"div",20)(46,"mat-card")(47,"mat-card-content")(48,"mat-tree",36),F(49,EQt,5,1,"mat-tree-node",37)(50,IQt,9,6,"mat-nested-tree-node",38),r()()()(),E(51,RQt,24,11,"div",39),r()(),F(52,NQt,16,15,"ng-template",null,5,ti)(54,LQt,16,15,"ng-template",null,6,ti)(56,VQt,16,15,"ng-template",null,7,ti)(58,qQt,13,12,"ng-template",null,8,ti)(60,zQt,13,12,"ng-template",null,9,ti)}n&2&&(a(),g("formControl",i.viewGroup),a(8),g("mifosxHasPermission","CREATE_OFFICE"),a(3),g("mifosxHasPermission","CREATE_OFFICE"),a(),g("hidden",i.viewGroup.value!=="listView"),a(5),h(m(19,15,"Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(19,uQt)),a(),g("hidden",i.viewGroup.value!=="treeView"),a(3),v(" ",m(43,17,i.isTreeExpanded?"labels.buttons.Collapse All":"labels.buttons.Expand All")," "),a(6),g("dataSource",i.nestedTreeDataSource)("treeControl",i.nestedTreeControl),a(2),g("matTreeNodeDefWhen",i.hasNestedChild),a(),I(i.office?51:-1))},dependencies:[ue,fe,$e,_n,Oe,Ue,Je,Fe,Be,ze,xe,Ke,Mp,Dp,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,M0,T0,P0,D0,wi,Hg,Gg,Qo,Nr,Qr,Da,bg,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.office-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .office-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}.office-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{cursor:pointer}.office-tree[_ngcontent-%COMP%] .office-tree-invisible[_ngcontent-%COMP%]{display:none}"]})}}return e})();var HQt=["buttonImportEmployees"],GQt=["templateButtonImportEmployees"],jQt=["tableEmployees"],$Qt=["templateTableEmployees"],UQt=()=>[10,25,50,100],WQt=()=>["/","organization","bulk-import","Employees"],QQt=()=>["create"],YQt=e=>[e];function JQt(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",27),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,WQt)),a(2),v(" ",m(3,2,"labels.buttons.Import Employees")," "))}function KQt(e,o){e&1&&(l(0,"button",26),b(1,"fa-icon",28),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,QQt)),a(2),v(" ",m(3,2,"labels.buttons.Create Employee")," "))}function XQt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.First Name")))}function ZQt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.firstname)}}function eYt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Name")))}function tYt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lastname)}}function iYt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Officer")))}function nYt(e,o){e&1&&(b(0,"fa-icon",32),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function oYt(e,o){e&1&&(b(0,"fa-icon",33),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function aYt(e,o){if(e&1&&(l(0,"td",30)(1,"div",31),E(2,nYt,2,4,"fa-icon",32),E(3,oYt,2,4,"fa-icon",33),r()()),e&2){let t=o.$implicit;a(),g("className",t.isLoanOfficer===!0?"true":"false"),a(),I(t.isLoanOfficer?2:-1),a(),I(t.isLoanOfficer?-1:3)}}function rYt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function lYt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function sYt(e,o){e&1&&(l(0,"th",29),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function cYt(e,o){if(e&1&&(l(0,"td",30)(1,"div",31),b(2,"fa-icon",34),r()()),e&2){let t=o.$implicit;a(),g("className",t.isActive===!0?"true":"false"),a(),g("matTooltip",Le(t.isActive===!0?"Active":"Inactive"))}}function pYt(e,o){e&1&&b(0,"tr",35)}function mYt(e,o){if(e&1&&b(0,"tr",36),e&2){let t=o.$implicit;g("routerLink",Nt(1,YQt,t.id))}}function dYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",37),c(4),p(5,"translate"),r(),l(6,"div",38)(7,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Import Employees")),a(3),h(m(5,7,"labels.text.Import employee details from your local device")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function uYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",37),c(4),p(5,"translate"),r(),l(6,"div",38)(7,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(37);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(11),p(12,"translate"),r(),l(13,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(41);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Employee")),a(3),h(m(5,7,"labels.text.Create new employees in your organization")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function fYt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",38)(4,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(5),u=ve(39);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(16),u=ve(43);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter employees.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function hYt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",38)(4,"button",39),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",40),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(41);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",40),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of employees in the organization.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var wS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["firstname","lastname","isLoanOfficer","officeName","isActive"],this.route.data.subscribe(t=>{this.employeesData=t.employees})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setEmployees()}setEmployees(){this.dataSource=new Wt(this.employeesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showEmployeeList===!0&&setTimeout(()=>{this.showPopover(this.templateButtonImportEmployees,this.buttonImportEmployees.nativeElement,"bottom",!0)}),this.configurationWizardService.showEmployeeTable===!0&&setTimeout(()=>{this.showPopover(this.templateTableEmployees,this.tableEmployees.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showEmployeeList=!1,this.configurationWizardService.showEmployeeTable=!1,this.configurationWizardService.showEmployeeForm=!0,this.router.navigate(["/organization/employees/create"])}previousStep(){this.configurationWizardService.showEmployeeList=!1,this.configurationWizardService.showEmployeeTable=!1,this.configurationWizardService.showCreateEmployee=!0,this.router.navigate(["/organization"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-employees"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(HQt,5),Ee(GQt,5),Ee(jQt,5),Ee($Qt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonImportEmployees=s.first),Te(s=Me())&&(i.templateButtonImportEmployees=s.first),Te(s=Me())&&(i.tableEmployees=s.first),Te(s=Me())&&(i.templateTableEmployees=s.first)}},decls:44,vars:10,consts:[["buttonImportEmployees",""],["buttonCreateEmployee",""],["filter",""],["tableEmployees",""],["templateButtonImportEmployees",""],["templateButtonCreateEmployee",""],["templateFilter",""],["templateTableEmployees",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","isLoanOfficer"],["matColumnDef","officeName"],["matColumnDef","isActive"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","upload",1,"m-r-10"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["icon","check-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",8)(1,"div",null,0),F(3,JQt,4,5,"button",9),r(),l(4,"div",null,1),F(6,KQt,4,5,"button",9),r()(),l(7,"div",10)(8,"div",11,2)(10,"mat-form-field",12)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",13),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(15,"div",14,3)(17,"table",15),X(18,16),F(19,XQt,3,3,"th",17)(20,ZQt,2,1,"td",18),Z(),X(21,19),F(22,eYt,3,3,"th",17)(23,tYt,2,1,"td",18),Z(),X(24,20),F(25,iYt,3,3,"th",17)(26,aYt,4,3,"td",18),Z(),X(27,21),F(28,rYt,3,3,"th",17)(29,lYt,2,1,"td",18),Z(),X(30,22),F(31,sYt,3,3,"th",17)(32,cYt,3,3,"td",18),Z(),F(33,pYt,1,0,"tr",23)(34,mYt,1,3,"tr",24),r(),b(35,"mat-paginator",25),r()(),F(36,dYt,16,15,"ng-template",null,4,ti)(38,uYt,16,15,"ng-template",null,5,ti)(40,fYt,13,12,"ng-template",null,6,ti)(42,hYt,13,12,"ng-template",null,7,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_STAFF"),a(3),g("mifosxHasPermission","CREATE_STAFF"),a(6),h(m(13,7,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(9,UQt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var gYt=["createEmployeeFormRef"],_Yt=["templateCreateEmployeeForm"],CYt=()=>["../"];function vYt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function xYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.First Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function SYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Last Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function PYt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Joining Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function TYt(e,o){if(e&1&&(l(0,"button",18),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.employeeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function MYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",19),c(4),p(5,"translate"),b(6,"br"),c(7),p(8,"translate"),l(9,"a",20),c(10),p(11,"translate"),r()(),l(12,"div",21)(13,"button",22),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(14),p(15,"translate"),r(),l(16,"button",23),R("click",function(){let i=V(t).popover;return q(i.close())}),c(17),p(18,"translate"),r(),l(19,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(20),p(21,"translate"),r(),l(22,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(23),p(24,"translate"),r()()}e&2&&(a(),h(m(2,8,"labels.heading.Create Employee")),a(3),v(" ",m(5,10,"labels.text.Start filling the details")," "),a(3),v(" ",m(8,12,"labels.text.For more details click"),": "),a(3),h(m(11,14,"labels.inputs.Manage Employees")),a(4),v(" ",m(15,16,"labels.buttons.Close")," "),a(3),v(" ",m(18,18,"labels.buttons.Create Employee")," "),a(3),v(" ",m(21,20,"labels.buttons.Back")," "),a(3),v(" ",m(24,22,"labels.buttons.Next")," "))}var PS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.dialog=T(Ht),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEmployeeForm()}createEmployeeForm(){this.employeeForm=this.formBuilder.group({officeId:["",ce.required],firstname:["",[ce.required,ce.pattern("(^[A-z]).*")]],lastname:["",[ce.required,ce.pattern("(^[A-z]).*")]],isLoanOfficer:[!1],mobileNo:[""],joiningDate:["",ce.required]})}submit(){let t=this.employeeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.employeeForm.value.joiningDate;t.joiningDate instanceof Date&&(t.joiningDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createEmployee(d).subscribe(u=>{this.configurationWizardService.showEmployeeForm===!0?(this.configurationWizardService.showEmployeeForm=!1,this.openDialog()):this.router.navigate(["../"],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showEmployeeForm===!0&&setTimeout(()=>{this.showPopover(this.templateCreateEmployeeForm,this.createEmployeeFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showEmployeeForm=!1,this.configurationWizardService.showDefineWorkingDays=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showEmployeeForm=!1,this.configurationWizardService.showEmployeeTable=!0,this.router.navigate(["/organization/employees"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"employee"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showEmployeeForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showEmployeeForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/employees/create"])):n.step===3&&(this.configurationWizardService.showEmployeeForm=!1,this.configurationWizardService.showDefineWorkingDays=!0,this.router.navigate(["/organization"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-employee"]],viewQuery:function(n,i){if(n&1&&(Ee(gYt,5),Ee(_Yt,5)),n&2){let s;Te(s=Me())&&(i.createEmployeeFormRef=s.first),Te(s=Me())&&(i.templateCreateEmployeeForm=s.first)}},decls:52,vars:35,consts:[["createEmployeeFormRef",""],["joiningDatePicker",""],["templateCreateEmployeeForm",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],["labelPosition","before","formControlName","isLoanOfficer",1,"loan-officer"],["matInput","","formControlName","mobileNo"],[3,"click"],["matInput","","required","","formControlName","joiningDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141732/Manage+Employees","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",6),Se(11,vYt,2,2,"mat-option",7,Pe),r(),E(13,xYt,7,9,"mat-error"),r(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8),E(19,bYt,7,9,"mat-error"),E(20,yYt,8,9,"mat-error"),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",9),E(26,SYt,7,9,"mat-error"),E(27,wYt,8,9,"mat-error"),r(),l(28,"mat-checkbox",10),c(29),p(30,"translate"),r(),l(31,"mat-form-field")(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",11),r(),l(36,"mat-form-field",12),R("click",function(){V(s);let u=ve(43);return q(u.open())}),l(37,"mat-label"),c(38),p(39,"translate"),r(),b(40,"input",13)(41,"mat-datepicker-toggle",14)(42,"mat-datepicker",null,1),E(44,PYt,7,9,"mat-error"),r()()(),l(45,"mat-card-actions",15)(46,"button",16),c(47),p(48,"translate"),r(),F(49,TYt,3,4,"button",17),r()()()(),F(50,MYt,25,24,"ng-template",null,2,ti)}if(n&2){let s=ve(43);a(2),g("formGroup",i.employeeForm),a(6),h(m(9,20,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.employeeForm.controls.officeId.hasError("required")?13:-1),a(3),h(m(17,22,"labels.inputs.First Name")),a(3),I(i.employeeForm.controls.firstname.hasError("required")?19:-1),a(),I(i.employeeForm.controls.firstname.hasError("pattern")?20:-1),a(3),h(m(24,24,"labels.inputs.Last Name")),a(3),I(i.employeeForm.controls.lastname.hasError("required")?26:-1),a(),I(i.employeeForm.controls.lastname.hasError("pattern")?27:-1),a(2),v(" ",m(30,26,"labels.inputs.Is Loan Officer")," "),a(4),h(m(34,28,"labels.inputs.Mobile Number for SMS")),a(5),h(m(39,30,"labels.inputs.Joining Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.employeeForm.controls.joiningDate.hasError("required")?44:-1),a(2),g("routerLink",oe(34,CYt)),a(),v(" ",m(48,32,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_STAFF")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.loan-officer[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var DYt=()=>["edit"];function EYt(e,o){e&1&&(l(0,"button",6),b(1,"fa-icon",7),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,DYt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function IYt(e,o){e&1&&(l(0,"div",4),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Mobile Number for SMS")," "))}function OYt(e,o){if(e&1&&(l(0,"div",5),c(1),r()),e&2){let t=w();a(),v(" ",t.employeeData.mobileNo," ")}}var TS=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.employeeData=t.employee})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-employee"]],decls:40,vars:31,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,EYt,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",4),c(12),p(13,"translate"),r(),l(14,"div",5),c(15),r(),l(16,"div",4),c(17),p(18,"translate"),r(),l(19,"div",5),c(20),r(),l(21,"div",4),c(22),p(23,"translate"),r(),l(24,"div",5),c(25),p(26,"yesNo"),r(),E(27,IYt,3,3,"div",4),E(28,OYt,2,1,"div",5),l(29,"div",4),c(30),p(31,"translate"),r(),l(32,"div",5),c(33),r(),l(34,"div",4),c(35),p(36,"translate"),r(),l(37,"div",5),c(38),p(39,"dateFormat"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_STAFF"),a(6),v(" ",m(8,15,"labels.inputs.First Name")," "),a(3),v(" ",i.employeeData.firstname," "),a(2),v(" ",m(13,17,"labels.inputs.Last Name")," "),a(3),v(" ",i.employeeData.lastname," "),a(2),v(" ",m(18,19,"labels.inputs.Office")," "),a(3),v(" ",i.employeeData.officeName," "),a(2),v(" ",m(23,21,"labels.inputs.Is Loan Officer")," "),a(3),v(" ",m(26,23,i.employeeData.isLoanOfficer===!0)," "),a(2),I(i.employeeData.mobileNo?27:-1),a(),I(i.employeeData.mobileNo?28:-1),a(2),v(" ",m(31,25,"labels.inputs.Status")," "),a(3),v(" ",i.employeeData.isActive===!0?"Active":"Inactive"," "),a(2),v(" ",m(36,27,"labels.inputs.Joining Date")," "),a(3),v(" ",m(39,29,i.employeeData.joiningDate)," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he,po],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var AYt=["buttonAddEdit"],FYt=["templateButtonAddEdit"],kYt=["tableCurrencies"],BYt=["templateTableCurrencies"],RYt=()=>[10,25,50,100];function NYt(e,o){e&1&&(l(0,"button",22),b(1,"fa-icon",23),c(2),p(3,"translate"),r()),e&2&&(g("routerLink","manage"),a(2),v(" ",m(3,2,"labels.buttons.Add/Edit")," "))}function LYt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency Name")))}function VYt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function qYt(e,o){e&1&&(l(0,"th",24),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Currency Code")))}function zYt(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;a(),h(t.code)}}function HYt(e,o){e&1&&b(0,"tr",26)}function GYt(e,o){e&1&&b(0,"tr",27)}function jYt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),r(),l(6,"div",29)(7,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Add/Edit Currency")),a(3),h(m(5,7,"labels.text.List of all currencies currently in use")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function $Yt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(25);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(13),u=ve(29);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Search bar to filter currencies.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function UYt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",29)(4,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",31),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(27);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.List of currencies available.")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var MS=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","code"],this.route.data.subscribe(t=>{this.currenciesData=t.currencies.selectedCurrencyOptions})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCurrencies()}setCurrencies(){this.dataSource=new Wt(this.currenciesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCurrencyPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonAddEdit,this.buttonAddEdit.nativeElement,"bottom",!0)}),this.configurationWizardService.showCurrencyList===!0&&setTimeout(()=>{this.showPopover(this.templateTableCurrencies,this.tableCurrencies.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showCurrencyPage=!1,this.configurationWizardService.showCurrencyList=!1,this.configurationWizardService.showCurrencyForm=!0,this.router.navigate(["/organization/currencies/manage"])}previousStep(){this.configurationWizardService.showCurrencyPage=!1,this.configurationWizardService.showCurrencyList=!1,this.configurationWizardService.showAddEditCurrency=!0,this.router.navigate(["/organization"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-currencies"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(AYt,5),Ee(FYt,5),Ee(kYt,5),Ee(BYt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonAddEdit=s.first),Te(s=Me())&&(i.templateButtonAddEdit=s.first),Te(s=Me())&&(i.tableCurrencies=s.first),Te(s=Me())&&(i.templateTableCurrencies=s.first)}},decls:30,vars:9,consts:[["buttonAddEdit",""],["filter",""],["tableCurrencies",""],["templateButtonAddEdit",""],["templateFilter",""],["templateTableCurrencies",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","code"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0),F(3,NYt,4,4,"button",8),r()(),l(4,"div",9)(5,"div",10,1)(7,"mat-form-field",11)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",12),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",13,2)(14,"table",14),X(15,15),F(16,LYt,3,3,"th",16)(17,VYt,2,1,"td",17),Z(),X(18,18),F(19,qYt,3,3,"th",16)(20,zYt,2,1,"td",17),Z(),F(21,HYt,1,0,"tr",19)(22,GYt,1,0,"tr",20),r(),b(23,"mat-paginator",21),r()(),F(24,jYt,16,15,"ng-template",null,3,ti)(26,$Yt,13,12,"ng-template",null,4,ti)(28,UYt,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("mifosxHasPermission","UPDATE_CURRENCY"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,RYt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var WYt=()=>[10,25,50,100],QYt=()=>["create"],YYt=e=>[e];function JYt(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,QYt)),a(2),v(" ",m(3,2,"labels.buttons.Create SMS Campaign")," "))}function KYt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function XYt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignName)}}function ZYt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Template Message")))}function eJt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignMessage)}}function tJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Campaign Type")))}function iJt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignType.value)}}function nJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Trigger Type")))}function oJt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.triggerType.value)}}function aJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function rJt(e,o){if(e&1&&(l(0,"td",22)(1,"div",23),p(2,"statusLookup"),b(3,"fa-icon",24),p(4,"titlecase"),r()()),e&2){let t=o.$implicit;a(),g("className",m(2,3,t.campaignStatus.code)),a(2),g("matTooltip",Le(m(4,5,t.campaignStatus.value)))}}function lJt(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Approved By")))}function sJt(e,o){if(e&1&&(l(0,"td",22),c(1),r()),e&2){let t=o.$implicit;a(),h(t.smsCampaignTimeLine.submittedByUsername)}}function cJt(e,o){e&1&&b(0,"tr",25)}function pJt(e,o){if(e&1&&b(0,"tr",26),e&2){let t=o.$implicit;g("routerLink",Nt(1,YYt,t.id))}}var DS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["campaignName","campaignMessage","campaignType.value","triggerType.value","campaignStatus.value","smsCampaignTimeLine.submittedByUsername"],this.route.data.subscribe(t=>{this.smsCampaignsData=t.smsCampaigns.pageItems})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setSmsCampaigns()}setSmsCampaigns(){this.dataSource=new Wt(this.smsCampaignsData),this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"campaignType.value":return t.campaignType.value;case"triggerType.value":return t.triggerType.value;case"campaignStatus.value":return t.campaignStatus.value;case"smsCampaignTimeLine.submittedByUsername":return t.smsCampaignTimeLine.submittedByUsername;default:return t[n]}},this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sms-campaigns"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","campaignName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","campaignMessage"],["matColumnDef","campaignType.value"],["matColumnDef","triggerType.value"],["matColumnDef","campaignStatus.value"],["matColumnDef","smsCampaignTimeLine.submittedByUsername"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,JYt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,KYt,3,3,"th",9)(13,XYt,2,1,"td",10),Z(),X(14,11),F(15,ZYt,3,3,"th",9)(16,eJt,2,1,"td",10),Z(),X(17,12),F(18,tJt,3,3,"th",9)(19,iJt,2,1,"td",10),Z(),X(20,13),F(21,nJt,3,3,"th",9)(22,oJt,2,1,"td",10),Z(),X(23,14),F(24,aJt,3,3,"th",9)(25,rJt,5,7,"td",10),Z(),X(26,15),F(27,lJt,3,3,"th",9)(28,sJt,2,1,"td",10),Z(),F(29,cJt,1,0,"tr",16)(30,pJt,1,3,"tr",17),r(),b(31,"mat-paginator",18),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_SMSCAMPAIGN"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,WYt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,v0,he,go],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var mJt=()=>[10,25,50,100],dJt=()=>["create"],uJt=e=>[e];function fJt(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,dJt)),a(2),v(" ",m(3,2,"labels.buttons.Create AdHoc Query")," "))}function hJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function gJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function _Jt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.SQL Query")))}function CJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.query)}}function vJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Table Affected")))}function xJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.tableName)}}function bJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Email")))}function yJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.email)}}function SJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Report Run Frequency")," "))}function wJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportRunFrequency)}}function PJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function TJt(e,o){if(e&1&&(l(0,"td",23)(1,"div",24),b(2,"fa-icon",25),r()()),e&2){let t=o.$implicit;a(),g("className",t.isActive===!0?"true":"false"),a(),g("matTooltip",Le(t.isActive===!0?"Active":"Inactive"))}}function MJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Created By")))}function DJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.createdBy)}}function EJt(e,o){e&1&&b(0,"tr",26)}function IJt(e,o){if(e&1&&b(0,"tr",27),e&2){let t=o.$implicit;g("routerLink",Nt(1,uJt,t.id))}}var ES=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["name","query","tableName","email","reportRunFrequency","isActive","createdBy"],this.route.data.subscribe(t=>{this.adhocQueriesData=t.adhocQueries})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setAdhocQueries(),this.setReportRunFrequency()}setReportRunFrequency(){for(let t=0;t["edit"];function AJt(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,OJt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function FJt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.deleteAdhocQuery())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function kJt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Report Run Frequency")," "))}function BJt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.reportRunFrequency," ")}}var IS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.adhocQueryData=t.adhocQuery})}get reportRunFrequency(){for(let t of this.adhocQueryData.reportRunFrequencies)if(t.id===this.adhocQueryData.reportRunFrequency)return t.value}deleteAdhocQuery(){this.dialog.open(vi,{data:{deleteContext:`adhoc query ${this.adhocQueryData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteAdhocQuery(this.adhocQueryData.id).subscribe(()=>{this.router.navigate(["/organization/adhoc-query"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-adhoc-query"]],decls:34,vars:24,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,AJt,4,5,"button",1)(2,FJt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r(),E(22,kJt,3,3,"div",5),E(23,BJt,2,1,"div",6),l(24,"div",5),c(25),p(26,"translate"),r(),l(27,"div",6),c(28),r(),l(29,"div",5),c(30),p(31,"translate"),r(),l(32,"div",6),c(33),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_ADHOC"),a(),g("mifosxHasPermission","DELETE_ADHOC"),a(6),v(" ",m(9,14,"labels.inputs.name")," "),a(3),v(" ",i.adhocQueryData.name," "),a(2),v(" ",m(14,16,"labels.inputs.Query")," "),a(3),v(" ",i.adhocQueryData.query," "),a(2),v(" ",m(19,18,"labels.inputs.Table Affected")," "),a(3),v(" ",i.adhocQueryData.tableName," "),a(),I(i.adhocQueryData.reportRunFrequency?22:-1),a(),I(i.adhocQueryData.reportRunFrequency?23:-1),a(2),v(" ",m(26,20,"labels.inputs.Status")," "),a(3),v(" ",i.adhocQueryData.isActive===!0?"Active":"Inactive"," "),a(2),v(" ",m(31,22,"labels.inputs.Created By")," "),a(3),v(" ",i.adhocQueryData.createdBy," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var RJt=()=>[10,25,50,100],NJt=()=>["create"],LJt=e=>[e,"cashiers"],VJt=e=>[e];function qJt(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,NJt)),a(2),v(" ",m(3,2,"labels.buttons.Create Teller")," "))}function zJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Branch")))}function HJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function GJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Teller Name")))}function jJt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function $Jt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function UJt(e,o){if(e&1&&(l(0,"td",23)(1,"div",24),b(2,"fa-icon",25),p(3,"translate"),p(4,"translate"),r()()),e&2){let t=o.$implicit;a(),g("className",t.status==="ACTIVE"?"true":"false"),a(),g("matTooltip",Le(t.status==="ACTIVE"?m(3,3,"labels.inputs.Active"):m(4,5,"labels.catalogs.Inactive")))}}function WJt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Started On")))}function QJt(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.startDate))}}function YJt(e,o){e&1&&(l(0,"th",26),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function JJt(e,o){if(e&1){let t=Y();l(0,"td",27),R("click",function(i){return V(t),q(i.stopPropagation())}),l(1,"button",28),b(2,"fa-icon",29),c(3),p(4,"translate"),r()()}if(e&2){let t=o.$implicit;a(),g("routerLink",Nt(4,LJt,t.id)),a(2),v("",m(4,2,"labels.buttons.View Cashiers")," ")}}function KJt(e,o){e&1&&b(0,"tr",30)}function XJt(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,VJt,t.id))}}var OS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["officeName","name","status","startDate","actions"],this.route.data.subscribe(t=>{this.tellersData=t.tellers})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTellers()}setTellers(){this.dataSource=new Wt(this.tellersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-tellers"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:29,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["matColumnDef","status"],["matColumnDef","startDate"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["matTooltipPosition","right","icon","circle","size","lg",3,"matTooltip"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-button","","color","primary",3,"routerLink"],["icon","eye",1,"m-r-10"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,qJt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,zJt,3,3,"th",9)(13,HJt,2,1,"td",10),Z(),X(14,11),F(15,GJt,3,3,"th",9)(16,jJt,2,1,"td",10),Z(),X(17,12),F(18,$Jt,3,3,"th",9)(19,UJt,5,7,"td",10),Z(),X(20,13),F(21,WJt,3,3,"th",9)(22,QJt,3,3,"td",10),Z(),X(23,14),F(24,YJt,3,3,"th",15)(25,JJt,5,6,"td",16),Z(),F(26,KJt,1,0,"tr",17)(27,XJt,1,3,"tr",18),r(),b(28,"mat-paginator",19),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TELLER"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,RJt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var ZJt=()=>["edit"];function eKt(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",8),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,ZJt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function tKt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w();return q(i.deleteTeller())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function iKt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Description")," "))}function nKt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.tellerData.description," ")}}function oKt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.End Date")," "))}function aKt(e,o){if(e&1&&(l(0,"div",6),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.tellerData.endDate)," ")}}var AS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.tellerData=t.teller})}deleteTeller(){this.dialog.open(vi,{data:{deleteContext:`teller ${this.tellerData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteTeller(this.tellerData.id).subscribe(()=>{this.router.navigate(["/organization/tellers"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-teller"]],decls:33,vars:26,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,eKt,4,5,"button",1)(2,tKt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),E(17,iKt,3,3,"div",5),E(18,nKt,2,1,"div",6),l(19,"div",5),c(20),p(21,"translate"),r(),l(22,"div",6),c(23),p(24,"dateFormat"),r(),E(25,oKt,3,3,"div",5),E(26,aKt,3,3,"div",6),l(27,"div",5),c(28),p(29,"translate"),r(),l(30,"div",6),c(31),p(32,"titlecase"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TELLER"),a(),g("mifosxHasPermission","DELETE_TELLER"),a(6),v(" ",m(9,14,"labels.inputs.Teller Name")," "),a(3),v(" ",i.tellerData.name," "),a(2),v(" ",m(14,16,"labels.inputs.Office")," "),a(3),v(" ",i.tellerData.officeName," "),a(),I(i.tellerData.description?17:-1),a(),I(i.tellerData.description?18:-1),a(2),v(" ",m(21,18,"labels.inputs.Start Date")," "),a(3),v(" ",m(24,20,i.tellerData.startDate)," "),a(2),I(i.tellerData.endDate?25:-1),a(),I(i.tellerData.endDate?26:-1),a(2),v(" ",m(29,22,"labels.inputs.Status")," "),a(3),v(" ",m(32,24,i.tellerData.status)," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,v0,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var rKt=()=>[10,25,50,100],lKt=()=>["create"],sKt=e=>[e,"edit"];function cKt(e,o){e&1&&(l(0,"button",23),b(1,"fa-icon",24),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,lKt)),a(2),v(" ",m(3,2,"labels.buttons.Create Payment Type")," "))}function pKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function mKt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function dKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Description")))}function uKt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.description)}}function fKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Code")))}function hKt(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.codeName)}}function gKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.System Defined")))}function _Kt(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function CKt(e,o){e&1&&(b(0,"fa-icon",29),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function vKt(e,o){if(e&1&&(l(0,"td",26)(1,"div",27),E(2,_Kt,2,4,"fa-icon",28),E(3,CKt,2,4,"fa-icon",29),r()()),e&2){let t=o.$implicit;a(),g("className",t.isSystemDefined===!0?"true text-center":"false text-center"),a(),I(t.isSystemDefined?2:-1),a(),I(t.isSystemDefined?-1:3)}}function xKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Cash Payment")))}function bKt(e,o){e&1&&(b(0,"fa-icon",28),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function yKt(e,o){e&1&&(b(0,"fa-icon",29),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function SKt(e,o){if(e&1&&(l(0,"td",26)(1,"div",27),E(2,bKt,2,4,"fa-icon",28),E(3,yKt,2,4,"fa-icon",29),r()()),e&2){let t=o.$implicit;a(),g("className",t.isCashPayment===!0?"true text-center":"false text-center"),a(),I(t.isCashPayment?2:-1),a(),I(t.isCashPayment?-1:3)}}function wKt(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Position")))}function PKt(e,o){if(e&1&&(l(0,"td",30),c(1),r()),e&2){let t=o.$implicit;a(),h(t.position)}}function TKt(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function MKt(e,o){if(e&1&&(l(0,"button",33),b(1,"fa-icon",35),c(2),p(3,"translate"),r()),e&2){let t=w().$implicit;g("routerLink",Nt(4,sKt,t.id)),a(2),v("",m(3,2,"labels.buttons.Edit")," ")}}function DKt(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deletePaymentType(i.id))}),b(1,"fa-icon",37),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Delete")," "))}function EKt(e,o){if(e&1&&(l(0,"td",32),E(1,MKt,4,6,"button",33),E(2,DKt,4,3,"button",34),r()),e&2){let t=o.$implicit;a(),I(t.isSystemDefined?-1:1),a(),I(t.isSystemDefined?-1:2)}}function IKt(e,o){e&1&&b(0,"tr",38)}function OKt(e,o){e&1&&b(0,"tr",39)}var FS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.dialog=T(Ht),this.displayedColumns=["name","description","codeName","isSystemDefined","isCashPayment","position","actions"],this.route.data.subscribe(t=>{this.paymentTypesData=t.paymentTypes})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setPaymentTypes()}setPaymentTypes(){this.dataSource=new Wt(this.paymentTypesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}deletePaymentType(t){this.dialog.open(vi,{data:{deleteContext:`payment type ${t}`}}).afterClosed().subscribe(i=>{i.delete&&this.organizationService.deletePaymentType(t).subscribe(()=>{this.paymentTypesData=this.paymentTypesData.filter(s=>s.id!==t),this.setPaymentTypes()})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-payment-types"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:35,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["matColumnDef","codeName"],["matColumnDef","isSystemDefined"],["matColumnDef","isCashPayment"],["matColumnDef","position"],["mat-cell","","class","text-center",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","layout-row",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["icon","check-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["mat-cell","",1,"text-center"],["mat-header-cell",""],["mat-cell","",1,"layout-row"],["mat-button","","color","primary",1,"no-wrap",3,"routerLink"],["mat-button","","color","warn",1,"no-wrap"],["icon","edit",1,"m-r-10"],["mat-button","","color","warn",1,"no-wrap",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,cKt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,pKt,3,3,"th",9)(13,mKt,2,1,"td",10),Z(),X(14,11),F(15,dKt,3,3,"th",9)(16,uKt,2,1,"td",10),Z(),X(17,12),F(18,fKt,3,3,"th",9)(19,hKt,2,1,"td",10),Z(),X(20,13),F(21,gKt,3,3,"th",9)(22,vKt,4,3,"td",10),Z(),X(23,14),F(24,xKt,3,3,"th",9)(25,SKt,4,3,"td",10),Z(),X(26,15),F(27,wKt,3,3,"th",9)(28,PKt,2,1,"td",16),Z(),X(29,17),F(30,TKt,3,3,"th",18)(31,EKt,3,2,"td",19),Z(),F(32,IKt,1,0,"tr",20)(33,OKt,1,0,"tr",21),r(),b(34,"mat-paginator",22),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_PAYMENTTYPE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,rKt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:[".table-container[_ngcontent-%COMP%]{border-radius:10px;overflow:hidden}table[_ngcontent-%COMP%]{width:100%}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var AKt=()=>["../../"];function FKt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payment Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kKt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Position")," must be a positive number. "))}function BKt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Position")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function RKt(e,o){if(e&1&&(l(0,"button",10),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.paymentTypeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var kS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.router=T(qe),this.route=T(Ie),this.route.data.subscribe(t=>{this.paymentTypeData=t.paymentType})}ngOnInit(){this.createPaymentTypeForm()}createPaymentTypeForm(){this.paymentTypeForm=this.formBuilder.group({name:[this.paymentTypeData.name,ce.required],description:[this.paymentTypeData.description],isCashPayment:[this.paymentTypeData.isCashPayment],position:[this.paymentTypeData.position,[ce.required,ce.min(1)]]})}submit(){let t=this.paymentTypeForm.value;this.organizationService.updatePaymentType(this.paymentTypeData.id,t).subscribe(n=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-payment-type"]],decls:31,vars:22,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","matInput","","formControlName","name"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["labelPosition","before","formControlName","isCashPayment",1,"status"],["required","","matInput","","type","number","min","1","formControlName","position"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,FKt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),r(),l(16,"mat-checkbox",5),c(17),p(18,"translate"),r(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",6),E(24,kKt,3,3,"mat-error"),E(25,BKt,7,9,"mat-error"),r()()(),l(26,"mat-card-actions",7)(27,"button",8),c(28),p(29,"translate"),r(),F(30,RKt,3,4,"button",9),r()()()()),n&2&&(a(2),g("formGroup",i.paymentTypeForm),a(5),h(m(8,11,"labels.inputs.Payment Type")),a(3),I(i.paymentTypeForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,13,"labels.inputs.Description")),a(4),v(" ",m(18,15,"labels.inputs.Is Cash Payment"),"? "),a(4),h(m(22,17,"labels.inputs.Position")),a(3),I(i.paymentTypeForm.controls.position.hasError("min")?24:-1),a(),I(i.paymentTypeForm.controls.position.hasError("required")?25:-1),a(2),g("routerLink",oe(21,AKt)),a(),v(" ",m(29,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PAYMENTTYPE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.status[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var NKt=()=>["../"];function LKt(e,o){if(e&1&&(l(0,"mat-radio-button",3)(1,"span",7),c(2),r()()),e&2){let t=o.$implicit;g("value",t.id),a(2),h(t.description)}}function VKt(e,o){if(e&1&&(l(0,"button",8),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.passwordPreferencesForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var BS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.passwordPreferencesData=t.passwordPreferencesTemplate})}ngOnInit(){this.createPasswordPreferencesForm(),this.setPasswordPreferencesForm()}createPasswordPreferencesForm(){this.passwordPreferencesForm=this.formBuilder.group({validationPolicyId:[""]})}setPasswordPreferencesForm(){for(let t of this.passwordPreferencesData)t.active===!0&&this.passwordPreferencesForm.get("validationPolicyId").setValue(t.id)}submit(){let t=this.passwordPreferencesForm.value;this.organizationService.updatePasswordPreferences(t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-password-preferences"]],decls:12,vars:7,consts:[[1,"container"],[3,"ngSubmit","formGroup"],["formControlName","validationPolicyId",1,"layout-column","gap-10px","radio-group-spacing"],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[1,"description-wrap"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"mat-radio-group",2),Se(5,LKt,3,2,"mat-radio-button",3,Pe),r()(),l(7,"mat-card-actions",4)(8,"button",5),c(9),p(10,"translate"),r(),F(11,VKt,3,4,"button",6),r()()()()),n&2&&(a(2),g("formGroup",i.passwordPreferencesForm),a(3),we(i.passwordPreferencesData),a(3),g("routerLink",oe(6,NKt)),a(),v(" ",m(10,4,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_PASSWORD_VALIDATION_POLICY"))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,Oe,Ue,Je,Et,xe,Ke,tr,ir,he],styles:[".description-wrap[_ngcontent-%COMP%]{white-space:normal}.radio-group-spacing[_ngcontent-%COMP%]{display:flex;gap:2rem;flex-direction:row}@media (width <= 768px){.radio-group-spacing[_ngcontent-%COMP%]{flex-direction:column}}"]})}}return e})();var qKt=()=>[10,25,50,100],zKt=()=>["create"];function HKt(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,zKt)),a(2),v(" ",m(3,2,"labels.buttons.Create")," "))}function GKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function jKt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entity)}}function $Kt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function UKt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.productName)}}function WKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Data Table")))}function QKt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.datatableName)}}function YKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function JKt(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function KKt(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.System Defined")))}function XKt(e,o){e&1&&(b(0,"fa-icon",25),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.Yes")))}function ZKt(e,o){e&1&&(b(0,"fa-icon",26),p(1,"translate")),e&2&&g("matTooltip",Le(m(1,2,"tooltips.No")))}function eXt(e,o){if(e&1&&(l(0,"td",23)(1,"div",24),E(2,XKt,2,4,"fa-icon",25),E(3,ZKt,2,4,"fa-icon",26),r()()),e&2){let t=o.$implicit;a(),g("className",t.systemDefined===!0?"true":"false"),a(),I(t.systemDefined?2:-1),a(),I(t.systemDefined?-1:3)}}function tXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function iXt(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.deleteEntityDataTableCheck(i.id))}),b(1,"fa-icon",30),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Delete")," "))}function nXt(e,o){e&1&&(l(0,"td",23),F(1,iXt,4,3,"button",28),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_ENTITY_DATATABLE_CHECK"))}function oXt(e,o){e&1&&b(0,"tr",31)}function aXt(e,o){e&1&&b(0,"tr",32)}var RS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.dialog=T(Ht),this.displayedColumns=["entity","productName","datatableName","status","systemDefined","actions"],this.entityValues=[{code:"m_client",value:"Client"},{code:"m_loan",value:"Loan"},{code:"m_group",value:"Group"},{code:"m_savings_account",value:"Savings Account"}],this.route.data.subscribe(t=>{this.entityDataTableChecksData=t.entityDataTableChecks.pageItems})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setEntityDataTableChecks(),this.setEntity()}setEntity(){let t=new Map;this.entityValues.forEach(n=>{t.set(n.code,n.value)}),this.dataSource.data.forEach(n=>{let i=t.get(n.entity);i&&(n.entity=i)})}setEntityDataTableChecks(){this.dataSource=new Wt(this.entityDataTableChecksData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=(t,n)=>{switch(n){case"status":return t.status.value;default:return t[n]}}}deleteEntityDataTableCheck(t){this.dialog.open(vi,{data:{deleteContext:`entity data table check ${t}`}}).afterClosed().subscribe(i=>{i.delete&&this.organizationService.deleteEntityDataTableCheck(t).subscribe(()=>{this.entityDataTableChecksData=this.entityDataTableChecksData.filter(s=>s.id!==t),this.dataSource.data=this.entityDataTableChecksData})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-entity-data-table-checks"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:32,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","datatableName"],["matColumnDef","status"],["matColumnDef","systemDefined"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"className"],["icon","check-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["icon","times-circle","size","lg","matTooltipPosition","right",3,"matTooltip"],["mat-header-cell",""],["mat-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,HKt,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,GKt,3,3,"th",9)(13,jKt,2,1,"td",10),Z(),X(14,11),F(15,$Kt,3,3,"th",9)(16,UKt,2,1,"td",10),Z(),X(17,12),F(18,WKt,3,3,"th",9)(19,QKt,2,1,"td",10),Z(),X(20,13),F(21,YKt,3,3,"th",9)(22,JKt,2,1,"td",10),Z(),X(23,14),F(24,KKt,3,3,"th",9)(25,eXt,4,3,"td",10),Z(),X(26,15),F(27,tXt,3,3,"th",16)(28,nXt,2,1,"td",10),Z(),F(29,oXt,1,0,"tr",17)(30,aXt,1,0,"tr",18),r(),b(31,"mat-paginator",19),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_ENTITY_DATATABLE_CHECK"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,qKt)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}.true[_ngcontent-%COMP%]{color:#32cd32}.false[_ngcontent-%COMP%]{color:#f44366}"]})}}return e})();var rXt=["workingDaysFormRef"],lXt=["templateWorkingDaysFormRef"],sXt=()=>["../"];function cXt(e,o){if(e&1&&(l(0,"div")(1,"mat-checkbox",14),c(2),r()()),e&2){let t=o.$index,n=w();a(),g("formControlName",t),a(),v(" ",n.weekDays[t].name," ")}}function pXt(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function mXt(e,o){if(e&1&&(l(0,"button",15),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",t.workingDaysForm.pristine),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function dXt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",16),c(4),p(5,"translate"),l(6,"a",17),c(7),p(8,"translate"),r()(),l(9,"div",18)(10,"button",19),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",20),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",20),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",20),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Working Days")),a(3),v(" ",m(5,9,"labels.text.Click (Define Working Days)"),": "),a(3),h(m(8,11,"labels.inputs.Working Days")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Define Working Days")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var PX="FREQ=WEEKLY;INTERVAL=1;BYDAY=",NS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.weekDays=[{name:"Monday",value:"MO",checked:!1},{name:"Tuesday",value:"TU",checked:!1},{name:"Wednesday",value:"WE",checked:!1},{name:"Thursday",value:"TH",checked:!1},{name:"Friday",value:"FR",checked:!1},{name:"Saturday",value:"SA",checked:!1},{name:"Sunday",value:"SU",checked:!1}],this.route.data.subscribe(t=>{this.workingDaysData=t.workingDays})}ngOnInit(){this.createWorkingDaysForm()}createWorkingDaysForm(){this.setWeeklyWorkingDays(),this.repaymentRescheduleTypeData=this.workingDaysData.repaymentRescheduleOptions,this.workingDaysForm=this.formBuilder.group({recurrence:this.formBuilder.array(this.createRecurrenceFormArray()),repaymentRescheduleType:[this.workingDaysData.repaymentRescheduleType.id],extendTermForDailyRepayments:[this.workingDaysData.extendTermForDailyRepayments]})}get recurrence(){return this.workingDaysForm.get("recurrence")}setWeeklyWorkingDays(){let t=this.workingDaysData.recurrence.replace(PX,"");for(let n=0;nnew it(t.checked))}submit(){let t=this.workingDaysForm.value;t.locale=this.settingsService.language.code;let n=PX;for(let i=0;i{this.configurationWizardService.showDefineWorkingDays===!0?(this.configurationWizardService.showDefineWorkingDays=!1,this.openNextStepDialog()):this.router.navigate(["../"],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showDefineWorkingDays===!0&&setTimeout(()=>{this.showPopover(this.templateWorkingDaysFormRef,this.workingDaysFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showDefineWorkingDays=!1,this.openNextStepDialog()}previousStep(){this.router.navigate(["/organization"])}openNextStepDialog(){this.dialog.open(ss,{data:{nextStepName:"Setup System",previousStepName:"Organization",stepPercentage:30}}).afterClosed().subscribe(n=>{n.nextStep?(this.configurationWizardService.showDefineWorkingDays=!1,this.configurationWizardService.showDatatables=!0,this.router.navigate(["/system"])):(this.configurationWizardService.showDefineWorkingDays=!1,this.router.navigate(["/home"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-working-days"]],viewQuery:function(n,i){if(n&1&&(Ee(rXt,5),Ee(lXt,5)),n&2){let s;Te(s=Me())&&(i.workingDaysFormRef=s.first),Te(s=Me())&&(i.templateWorkingDaysFormRef=s.first)}},decls:30,vars:16,consts:[["workingDaysFormRef",""],["templateWorkingDaysFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"layout-row","responsive-column"],[1,"mat-h4","flex-50"],["formArrayName","recurrence",1,"flex-50","layout-column"],["formControlName","repaymentRescheduleType"],[3,"value"],["labelPosition","before","formControlName","extendTermForDailyRepayments"],[1,"layout-row","align-center","gap-5px","responsive-column"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["labelPosition","after",3,"formControlName"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/90243212/Working+Days","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4,0)(6,"div",5)(7,"mat-label",6),c(8),p(9,"translate"),r(),l(10,"div",7),Se(11,cXt,3,2,"div",null,Pe),r()(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",8),Se(18,pXt,2,2,"mat-option",9,Pe),r()(),l(20,"mat-checkbox",10),c(21),p(22,"translate"),r()()(),l(23,"mat-card-actions",11)(24,"button",12),c(25),p(26,"translate"),r(),F(27,mXt,3,4,"button",13),r()()()(),F(28,dXt,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.workingDaysForm),a(6),h(m(9,7,"labels.inputs.Working Days")),a(3),we(i.recurrence.controls),a(4),h(m(16,9,"labels.inputs.Payments due on non working days")),a(3),we(i.repaymentRescheduleTypeData),a(3),v(" ",m(22,11,"labels.inputs.Loans daily repayment schedule")," "),a(3),g("routerLink",oe(15,sXt)),a(),h(m(26,13,"labels.buttons.Cancel")),a(2),g("mifosxHasPermission","UPDATE_WORKINGDAYS"))},dependencies:[ue,fe,tt,$e,Xe,Ze,et,La,Oe,Ue,Je,Et,Fe,Be,gt,ft,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var uXt=["createOfficeFormRef"],fXt=["templateCreateOfficeForm"],hXt=()=>["../"];function gXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _Xt(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function CXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Parent Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Opening Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function xXt(e,o){if(e&1&&(l(0,"button",16),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.officeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}function bXt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",17),c(4),p(5,"translate"),l(6,"a",18),c(7),p(8,"translate"),r()(),l(9,"div",19)(10,"button",20),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",21),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",21),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",21),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create Office")),a(3),v(" ",m(5,9,"labels.text.Filling Details")," "),a(3),h(m(8,11,"labels.inputs.Manage Offices")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create Office")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var LS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.route=T(Ie),this.dateUtils=T(Zt),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createofficeForm()}createofficeForm(){this.officeForm=this.formBuilder.group({name:["",ce.required],parentId:["",ce.required],openingDate:["",ce.required],externalId:[""]})}submit(){let t=this.officeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.officeForm.value.openingDate;t.openingDate instanceof Date&&(t.openingDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createOffice(d).subscribe(u=>{this.configurationWizardService.showOfficeForm===!0?(this.configurationWizardService.showOfficeForm=!1,this.openDialog()):this.router.navigate(["../"],{relativeTo:this.route})})}openDialog(){this.dialog.open(Ar,{data:{stepName:"office"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showOfficeForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showOfficeForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/offices/create"])):n.step===3&&(this.configurationWizardService.showOfficeForm=!1,this.configurationWizardService.showAddEditCurrency=!0,this.router.navigate(["/organization"]))})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showOfficeForm===!0&&setTimeout(()=>{this.showPopover(this.templateCreateOfficeForm,this.createOfficeFormRef.nativeElement,"right",!0)})}nextStep(){this.configurationWizardService.showOfficeForm=!1,this.configurationWizardService.showAddEditCurrency=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showOfficeForm=!1,this.configurationWizardService.showOfficeTable=!0,this.router.navigate(["/organization/offices"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-office"]],viewQuery:function(n,i){if(n&1&&(Ee(uXt,5),Ee(fXt,5)),n&2){let s;Te(s=Me())&&(i.createOfficeFormRef=s.first),Te(s=Me())&&(i.templateCreateOfficeForm=s.first)}},decls:41,vars:26,consts:[["createOfficeFormRef",""],["openedOnDatePicker",""],["templateCreateOfficeForm",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","matInput","","formControlName","name"],["required","","formControlName","parentId"],[3,"value"],[3,"click"],["matInput","","formControlName","openingDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141727/Manage+Offices","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5,0)(6,"mat-form-field")(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",6),E(11,gXt,7,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",7),Se(17,_Xt,2,2,"mat-option",8,Pe),r(),E(19,CXt,7,9,"mat-error"),r(),l(20,"mat-form-field",9),R("click",function(){V(s);let u=ve(27);return q(u.open())}),l(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",10)(25,"mat-datepicker-toggle",11)(26,"mat-datepicker",null,1),E(28,vXt,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",12),r()()(),l(34,"mat-card-actions",13)(35,"button",14),c(36),p(37,"translate"),r(),F(38,xXt,3,4,"button",15),r()()()(),F(39,bXt,22,21,"ng-template",null,2,ti)}if(n&2){let s=ve(27);a(2),g("formGroup",i.officeForm),a(6),h(m(9,15,"labels.inputs.Office")),a(3),I(i.officeForm.controls.name.hasError("required")?11:-1),a(3),h(m(15,17,"labels.inputs.Parent Office")),a(3),we(i.officeData),a(2),I(i.officeForm.controls.parentId.hasError("required")?19:-1),a(3),h(m(23,19,"labels.inputs.Opened On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.officeForm.controls.openingDate.hasError("required")?28:-1),a(3),h(m(32,21,"labels.inputs.External ID")),a(4),g("routerLink",oe(25,hXt)),a(),v(" ",m(37,23,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_OFFICE")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var yXt=()=>["../"];function SXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Payment Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Position")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function PXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Position")," must be a positive number. "))}function TXt(e,o){if(e&1&&(l(0,"button",10),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.paymentTypeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var VS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.router=T(qe),this.route=T(Ie)}ngOnInit(){this.createpaymentTypeForm()}createpaymentTypeForm(){this.paymentTypeForm=this.formBuilder.group({name:["",ce.required],description:[""],isCashPayment:[!1],position:["",[ce.required,ce.min(1)]]})}submit(){let t=this.paymentTypeForm.value;this.organizationService.createPaymentType(t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-payment-type"]],decls:31,vars:22,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","matInput","","formControlName","name"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],["labelPosition","before","formControlName","isCashPayment",1,"status"],["required","","matInput","","type","number","min","1","formControlName","position"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,SXt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),r(),l(16,"mat-checkbox",5),c(17),p(18,"translate"),r(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",6),E(24,wXt,7,9,"mat-error"),E(25,PXt,3,3,"mat-error"),r()()(),l(26,"mat-card-actions",7)(27,"button",8),c(28),p(29,"translate"),r(),F(30,TXt,3,4,"button",9),r()()()()),n&2&&(a(2),g("formGroup",i.paymentTypeForm),a(5),h(m(8,11,"labels.inputs.Payment Type")),a(3),I(i.paymentTypeForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,13,"labels.inputs.Description")),a(4),v(" ",m(18,15,"labels.inputs.Is Cash Payment"),"? "),a(4),h(m(22,17,"labels.inputs.Position")),a(3),I(i.paymentTypeForm.controls.position.hasError("required")?24:-1),a(),I(i.paymentTypeForm.controls.position.hasError("min")?25:-1),a(2),g("routerLink",oe(21,yXt)),a(),v(" ",m(29,19,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_PAYMENTTYPE"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Xa,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,fi,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.status[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var MXt=()=>["../"];function DXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function EXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL Query")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function IXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Insert into table")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function OXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Table Fields")," ",m(3,5,"labels.commons.are")," "),a(4),h(m(6,7,"labels.commons.required")))}function AXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function FXt(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function kXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Custom Report Run Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function BXt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Custom Report Run Frequency")," "),a(3),h(m(5,4,"labels.commons.must be larger than 0")))}function RXt(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14),E(5,kXt,7,9,"mat-error"),E(6,BXt,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Custom Report Run Frequency (Days)")),a(3),I(t.adhocQueryForm.controls.reportRunEvery.hasError("required")?5:-1),a(),I(t.adhocQueryForm.controls.reportRunEvery.hasError("min")?6:-1)}}function NXt(e,o){if(e&1&&(l(0,"button",15),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.adhocQueryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var qS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.adhocQueryTemplateData=t.adhocQueryTemplate})}ngOnInit(){this.createAdhocQueryForm(),this.setConditionalControls()}createAdhocQueryForm(){this.reportRunFrequencyData=this.adhocQueryTemplateData.reportRunFrequencies,this.adhocQueryForm=this.formBuilder.group({name:["",ce.required],query:["",ce.required],tableName:["",ce.required],tableFields:["",ce.required],email:["",ce.email],reportRunFrequency:[""],isActive:[!1]})}setConditionalControls(){this.adhocQueryForm.get("reportRunFrequency").valueChanges.subscribe(t=>{t===5?this.adhocQueryForm.addControl("reportRunEvery",new it("",[ce.required,ce.min(1)])):this.adhocQueryForm.removeControl("reportRunEvery")})}submit(){this.organizationService.createAdhocQuery(this.adhocQueryForm.value).subscribe(t=>{this.router.navigate(["../",t.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-adhoc-query"]],decls:51,vars:34,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","query"],["matInput","","required","","formControlName","tableName"],["matInput","","required","","formControlName","tableFields"],["matInput","","formControlName","email"],["formControlName","reportRunFrequency"],[3,"value"],["labelPosition","before","formControlName","isActive"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["type","number","matInput","","required","","formControlName","reportRunEvery"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,DXt,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),E(16,EXt,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,IXt,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"textarea",6),E(28,OXt,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",7),E(34,AXt,7,9,"mat-error"),r(),l(35,"mat-form-field")(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",8),Se(40,FXt,2,2,"mat-option",9,Pe),r()(),E(42,RXt,7,5,"mat-form-field"),l(43,"mat-checkbox",10),c(44),p(45,"translate"),r()()(),l(46,"mat-card-actions",11)(47,"button",12),c(48),p(49,"translate"),r(),F(50,NXt,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.adhocQueryForm),a(5),h(m(8,17,"labels.inputs.name")),a(3),I(i.adhocQueryForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,19,"labels.inputs.SQL Query")),a(3),I(i.adhocQueryForm.controls.query.hasError("required")?16:-1),a(3),h(m(20,21,"labels.inputs.Insert into table")),a(3),I(i.adhocQueryForm.controls.tableName.hasError("required")?22:-1),a(3),h(m(26,23,"labels.inputs.Table Fields")),a(3),I(i.adhocQueryForm.controls.tableFields.hasError("required")?28:-1),a(3),h(m(32,25,"labels.inputs.Email")),a(3),I(i.adhocQueryForm.controls.email.hasError("email")?34:-1),a(3),h(m(38,27,"labels.inputs.Report Run Frequency")),a(3),we(i.reportRunFrequencyData),a(2),I(i.adhocQueryForm.controls.reportRunFrequency.value===5?42:-1),a(2),v(" ",m(45,29,"labels.inputs.Active")," "),a(3),g("routerLink",oe(33,MXt)),a(),v(" ",m(49,31,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_ADHOC"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var LXt=["buttonCreateHoliday"],VXt=["templateButtonCreateHoliday"],qXt=["filterRef"],zXt=["templateFilterRef"],HXt=()=>[10,25,50,100],GXt=()=>["create"],jXt=e=>[e];function $Xt(e,o){e&1&&(l(0,"button",25),b(1,"fa-icon",26),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,GXt)),a(2),v(" ",m(3,2,"labels.buttons.Create Holiday")," "))}function UXt(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function WXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Holiday Name")))}function QXt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function YXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Start Date")))}function JXt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.fromDate))}}function KXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Date")))}function XXt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.toDate))}}function ZXt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Repayments Scheduled To")," "))}function eZt(e,o){if(e&1&&(l(0,"td",28),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),v(" ",t.reschedulingType===1?"Next Repayment Date":m(2,1,t.repaymentsRescheduledTo)," ")}}function tZt(e,o){e&1&&(l(0,"th",27),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function iZt(e,o){if(e&1&&(l(0,"td",28),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function nZt(e,o){e&1&&b(0,"tr",29)}function oZt(e,o){if(e&1&&b(0,"tr",30),e&2){let t=o.$implicit;g("routerLink",Nt(1,jXt,t.id))}}function aZt(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",31),c(4),p(5,"translate"),r(),l(6,"div",32)(7,"button",33),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",34),R("click",function(){let i=V(t).popover,s=w(),d=ve(6),u=ve(42);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.heading.Create Holiday")),a(3),h(m(5,7,"labels.text.Create holidays for different offices")),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function rZt(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",32)(4,"button",33),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",34),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(40);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",34),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),h(m(2,4,"labels.heading.Filter holidays")),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var zS=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.officeSelector=new it,this.displayedColumns=["name","fromDate","toDate","repaymentsRescheduledTo","status"],this.route.data.subscribe(t=>{this.officeData=t.offices})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.onChangeOffice()}onChangeOffice(){this.officeSelector.valueChanges.subscribe((t=this.officeSelector.value)=>{this.holidaysData=[],this.organizationService.getHolidays(t).subscribe(n=>{this.holidaysData=n.filter(i=>i.status.value!=="Deleted"),this.setHolidays()})})}setHolidays(){this.dataSource=new Wt(this.holidaysData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showHolidayPage===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateHoliday,this.buttonCreateHoliday.nativeElement,"bottom",!0)}),this.configurationWizardService.showHolidayFilter===!0&&setTimeout(()=>{this.showPopover(this.templateFilterRef,this.filterRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showHolidayPage=!1,this.configurationWizardService.showHolidayFilter=!1,this.configurationWizardService.showCreateEmployee=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showHolidayPage=!1,this.configurationWizardService.showHolidayFilter=!1,this.configurationWizardService.showCreateHoliday=!0,this.router.navigate(["/organization"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-holidays"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(LXt,5),Ee(VXt,5),Ee(qXt,5),Ee(zXt,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateHoliday=s.first),Te(s=Me())&&(i.templateButtonCreateHoliday=s.first),Te(s=Me())&&(i.filterRef=s.first),Te(s=Me())&&(i.templateFilterRef=s.first)}},decls:43,vars:14,consts:[["buttonCreateHoliday",""],["filterRef",""],["templateButtonCreateHoliday",""],["templateFilterRef",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[3,"formControl"],[3,"value"],[1,"mat-elevation-z8",3,"hidden"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromDate"],["matColumnDef","toDate"],["matColumnDef","repaymentsRescheduledTo"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0),F(3,$Xt,4,5,"button",6),r()(),l(4,"div",7)(5,"div",8,1)(7,"mat-form-field",9)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",10),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",11),Se(17,UXt,2,2,"mat-option",12,Pe),r()()(),l(19,"div",13)(20,"table",14),X(21,15),F(22,WXt,3,3,"th",16)(23,QXt,2,1,"td",17),Z(),X(24,18),F(25,YXt,3,3,"th",16)(26,JXt,3,3,"td",17),Z(),X(27,19),F(28,KXt,3,3,"th",16)(29,XXt,3,3,"td",17),Z(),X(30,20),F(31,ZXt,3,3,"th",16)(32,eZt,3,3,"td",17),Z(),X(33,21),F(34,tZt,3,3,"th",16)(35,iZt,2,1,"td",17),Z(),F(36,nZt,1,0,"tr",22)(37,oZt,1,3,"tr",23),r(),b(38,"mat-paginator",24),r()(),F(39,aZt,16,15,"ng-template",null,2,ti)(41,rZt,13,12,"ng-template",null,3,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_HOLIDAY"),a(6),h(m(10,9,"labels.inputs.Filter")),a(5),v(" ",m(15,11,"labels.inputs.Select Office")," "),a(2),g("formControl",i.officeSelector),a(),we(i.officeData),a(2),g("hidden",!i.officeSelector.value),a(),g("dataSource",i.dataSource),a(16),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(13,HXt)))},dependencies:[ue,fe,$e,_n,Oe,Fe,Be,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var lZt=()=>["../"];function sZt(e,o){if(e&1&&(l(0,"mat-option",5),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function cZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function pZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.First Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function dZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function uZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Last Name")," "),a(3),h(m(5,5,"labels.inputs.cannot")),a(2),v(" ",m(7,7,"labels.inputs.begin with a special character or number")," "))}function fZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Joining Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hZt(e,o){if(e&1&&(l(0,"button",17),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.editEmployeeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var HS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.employeeData=t.employee,this.officeData=t.employee.allowedOffices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditEmployeeForm()}createEditEmployeeForm(){this.editEmployeeForm=this.formBuilder.group({officeId:[this.employeeData.officeId,ce.required],firstname:[this.employeeData.firstname,[ce.required,ce.pattern("(^[A-z]).*")]],lastname:[this.employeeData.lastname,[ce.required,ce.pattern("(^[A-z]).*")]],isLoanOfficer:[this.employeeData.isLoanOfficer],mobileNo:[this.employeeData.mobileNo],isActive:[this.employeeData.isActive],joiningDate:[this.employeeData.joiningDate&&new Date(this.employeeData.joiningDate),ce.required]})}submit(){let t=this.editEmployeeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.editEmployeeForm.value.joiningDate;t.joiningDate instanceof Date&&(t.joiningDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.updateEmployee(this.employeeData.id,d).subscribe(u=>{this.router.navigate(["../../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-employee"]],decls:52,vars:38,consts:[["joiningDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","officeId"],[3,"value"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],["labelPosition","before","formControlName","isLoanOfficer",1,"m-b-10"],["matInput","","formControlName","mobileNo"],["labelPosition","before","formControlName","isActive"],[3,"click"],["matInput","","required","","formControlName","joiningDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",4),Se(10,sZt,2,2,"mat-option",5,Pe),r(),E(12,cZt,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),b(17,"input",6),E(18,pZt,7,9,"mat-error"),E(19,mZt,8,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",7),E(25,dZt,7,9,"mat-error"),E(26,uZt,8,9,"mat-error"),r(),l(27,"mat-checkbox",8),c(28),p(29,"translate"),r(),l(30,"mat-form-field")(31,"mat-label"),c(32),p(33,"translate"),r(),b(34,"input",9),r(),l(35,"mat-checkbox",10),c(36),p(37,"translate"),r(),l(38,"mat-form-field",11),R("click",function(){V(s);let u=ve(45);return q(u.open())}),l(39,"mat-label"),c(40),p(41,"translate"),r(),b(42,"input",12)(43,"mat-datepicker-toggle",13)(44,"mat-datepicker",null,0),E(46,fZt,7,9,"mat-error"),r()()(),l(47,"mat-card-actions",14)(48,"button",15),c(49),p(50,"translate"),r(),F(51,hZt,3,4,"button",16),r()()()()}if(n&2){let s=ve(45);a(2),g("formGroup",i.editEmployeeForm),a(5),h(m(8,21,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.editEmployeeForm.controls.officeId.hasError("required")?12:-1),a(3),h(m(16,23,"labels.inputs.First Name")),a(3),I(i.editEmployeeForm.controls.firstname.hasError("required")?18:-1),a(),I(i.editEmployeeForm.controls.firstname.hasError("pattern")?19:-1),a(3),h(m(23,25,"labels.inputs.Last Name")),a(3),I(i.editEmployeeForm.controls.lastname.hasError("required")?25:-1),a(),I(i.editEmployeeForm.controls.lastname.hasError("pattern")?26:-1),a(2),v(" ",m(29,27,"labels.inputs.Is Loan Officer")," "),a(4),h(m(33,29,"labels.inputs.Mobile Number for SMS")),a(4),v(" ",m(37,31,"labels.inputs.Active")," "),a(4),h(m(41,33,"labels.inputs.Joining Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.editEmployeeForm.controls.joiningDate.hasError("required")?46:-1),a(2),g("routerLink",oe(37,lZt)),a(),v(" ",m(50,35,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_STAFF")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var gZt=()=>["../"];function _Zt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Teller Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function CZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Teller Name")," "),a(3),h(m(5,5,"labels.commons.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function vZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function xZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function yZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function SZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Status")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wZt(e,o){if(e&1&&(l(0,"button",17),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.tellerForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var GS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.offices}),this.tellerStatusesData=[{id:300,code:"300",value:"Active"},{id:400,code:"400",value:"Inactive"}]}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createTellerForm()}createTellerForm(){this.tellerForm=this.formBuilder.group({officeId:["",ce.required],name:["",[ce.required,ce.pattern("(^[A-z]).*")]],description:[""],startDate:["",ce.required],endDate:[""],status:["",ce.required]})}submit(){let t=this.tellerForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.tellerForm.value.startDate,d=this.tellerForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createTeller(u).subscribe(f=>{this.router.navigate(["../",f.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-teller"]],decls:55,vars:38,consts:[["startDatePicker",""],["endDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["required","","formControlName","officeId"],[3,"value"],["matInput","","formControlName","description","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],["required","","formControlName","status"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,_Zt,7,9,"mat-error"),E(11,CZt,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,vZt,2,2,"mat-option",7,Pe),r(),E(19,xZt,7,9,"mat-error"),r(),l(20,"mat-form-field")(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"textarea",8),r(),l(25,"mat-form-field",9),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",10)(30,"mat-datepicker-toggle",11)(31,"mat-datepicker",null,0),E(33,bZt,7,9,"mat-error"),r(),l(34,"mat-form-field",9),R("click",function(){V(s);let u=ve(41);return q(u.open())}),l(35,"mat-label"),c(36),p(37,"translate"),r(),b(38,"input",12)(39,"mat-datepicker-toggle",11)(40,"mat-datepicker",null,1),r(),l(42,"mat-form-field")(43,"mat-label"),c(44),p(45,"translate"),r(),l(46,"mat-select",13),Se(47,yZt,2,2,"mat-option",7,Pe),r(),E(49,SZt,7,9,"mat-error"),r()()(),l(50,"mat-card-actions",14)(51,"button",15),c(52),p(53,"translate"),r(),F(54,wZt,3,4,"button",16),r()()()()}if(n&2){let s=ve(32),d=ve(41);a(2),g("formGroup",i.tellerForm),a(5),h(m(8,23,"labels.inputs.Teller Name")),a(3),I(i.tellerForm.controls.name.hasError("required")?10:-1),a(),I(i.tellerForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,25,"labels.inputs.Office")),a(3),we(i.officeData),a(2),I(i.tellerForm.controls.officeId.hasError("required")?19:-1),a(3),h(m(23,27,"labels.inputs.Description")),a(5),h(m(28,29,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.tellerForm.controls.startDate.hasError("required")?33:-1),a(3),h(m(37,31,"labels.inputs.End Date")),a(2),g("min",i.tellerForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(5),h(m(45,33,"labels.inputs.Status")),a(3),we(i.tellerStatusesData),a(2),I(i.tellerForm.controls.status.hasError("required")?49:-1),a(2),g("routerLink",oe(37,gZt)),a(),v(" ",m(53,35,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,Ln,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var PZt=()=>["../"];function TZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Teller Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function MZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),r()),e&2&&(a(),v(" ",m(2,3,"labels.inputs.Teller Name")," "),a(3),h(m(5,5,"labels.commons.cannot")),a(2),v(" ",m(7,7,"labels.commons.begin with a special character or number")," "))}function DZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function EZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Start Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function IZt(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function OZt(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Status")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function AZt(e,o){if(e&1&&(l(0,"button",17),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.tellerForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var jS=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.tellerData=t.teller,this.officeData=t.offices}),this.tellerData.status&&(this.tellerData.status==="ACTIVE"?this.tellerData.status=300:this.tellerData.status=400),this.tellerStatusesData=[{id:300,code:"300",value:"Active"},{id:400,code:"400",value:"Inactive"}]}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createEditTellerForm()}createEditTellerForm(){this.tellerForm=this.formBuilder.group({officeId:[{value:this.tellerData.officeId,disabled:!0}],name:[this.tellerData.name,[ce.required,ce.pattern("(^[A-z]).*")]],description:[this.tellerData.description],startDate:[this.tellerData.startDate&&new Date(this.tellerData.startDate),ce.required],endDate:[this.tellerData.endDate&&new Date(this.tellerData.endDate)],status:[this.tellerData.status,ce.required]})}submit(){let t=this.tellerForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.tellerForm.value.startDate,d=this.tellerForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{officeId:this.tellerData.officeId,dateFormat:i,locale:n});this.organizationService.updateTeller(this.tellerData.id,u).subscribe(f=>{this.router.navigate(["../../",f.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-teller"]],decls:54,vars:37,consts:[["startDatePicker",""],["endDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["formControlName","officeId"],[3,"value"],["matInput","","formControlName","description"],[3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","endDate",3,"min","max","matDatepicker"],["required","","formControlName","status"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,TZt,7,9,"mat-error"),E(11,MZt,8,9,"mat-error"),r(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",6),Se(17,DZt,2,2,"mat-option",7,Pe),r()(),l(19,"mat-form-field")(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",8),r(),l(24,"mat-form-field",9),R("click",function(){V(s);let u=ve(31);return q(u.open())}),l(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",10)(29,"mat-datepicker-toggle",11)(30,"mat-datepicker",null,0),E(32,EZt,7,9,"mat-error"),r(),l(33,"mat-form-field",9),R("click",function(){V(s);let u=ve(40);return q(u.open())}),l(34,"mat-label"),c(35),p(36,"translate"),r(),b(37,"input",12)(38,"mat-datepicker-toggle",11)(39,"mat-datepicker",null,1),r(),l(41,"mat-form-field")(42,"mat-label"),c(43),p(44,"translate"),r(),l(45,"mat-select",13),Se(46,IZt,2,2,"mat-option",7,Pe),r(),E(48,OZt,7,9,"mat-error"),r()()(),l(49,"mat-card-actions",14)(50,"button",15),c(51),p(52,"translate"),r(),F(53,AZt,3,4,"button",16),r()()()()}if(n&2){let s=ve(31),d=ve(40);a(2),g("formGroup",i.tellerForm),a(5),h(m(8,22,"labels.inputs.Teller Name")),a(3),I(i.tellerForm.controls.name.hasError("required")?10:-1),a(),I(i.tellerForm.controls.name.hasError("pattern")?11:-1),a(3),h(m(15,24,"labels.inputs.Office")),a(3),we(i.officeData),a(4),h(m(22,26,"labels.inputs.Description")),a(5),h(m(27,28,"labels.inputs.Start Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.tellerForm.controls.startDate.hasError("required")?32:-1),a(3),h(m(36,30,"labels.inputs.End Date")),a(2),g("min",i.tellerForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(5),h(m(44,32,"labels.inputs.Status")),a(3),we(i.tellerStatusesData),a(2),I(i.tellerForm.controls.status.hasError("required")?48:-1),a(2),g("routerLink",oe(36,PZt)),a(),v(" ",m(52,34,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var FZt=()=>[".."],kZt=()=>["edit"];function BZt(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,kZt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function RZt(e,o){if(e&1){let t=Y();l(0,"button",11),R("click",function(){V(t);let i=w();return q(i.deleteCashier())}),b(1,"fa-icon",12),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function NZt(e,o){e&1&&(l(0,"div",5),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Description")," "))}function LZt(e,o){if(e&1&&(l(0,"div",6),c(1),r()),e&2){let t=w();a(),v(" ",t.cashierData.description," ")}}var $S=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.organizationService=T(li),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.cashierData=t.cashier})}deleteCashier(){this.dialog.open(vi,{data:{deleteContext:`Cashier id: ${this.cashierData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteCashier(this.cashierData.tellerId,this.cashierData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-cashier"]],decls:40,vars:33,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,BZt,4,5,"button",1)(2,RZt,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),E(17,NZt,3,3,"div",5),E(18,LZt,2,1,"div",6),l(19,"div",5),c(20),p(21,"translate"),r(),l(22,"div",6),c(23),p(24,"dateFormat"),r(),l(25,"div",5),c(26),p(27,"translate"),r(),l(28,"div",6),c(29),p(30,"dateFormat"),r(),l(31,"div",5),c(32),p(33,"translate"),r(),l(34,"div",6),c(35),r()()(),l(36,"mat-card-actions",7)(37,"button",8),c(38),p(39,"translate"),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_CASHIER"),a(),g("mifosxHasPermission","DELETECASHIER_TELLER"),a(6),v(" ",m(9,16,"labels.inputs.Name")," "),a(3),v(" ",i.cashierData.staffName," "),a(2),v(" ",m(14,18,"labels.inputs.Teller")," "),a(3),v(" ",i.cashierData.tellerName," "),a(),I(i.cashierData.description!==""?17:-1),a(),I(i.cashierData.description!==""?18:-1),a(2),v(" ",m(21,20,"labels.inputs.Start Date")," "),a(3),v(" ",m(24,22,i.cashierData.startDate)," "),a(3),v(" ",m(27,24,"labels.inputs.End Date")," "),a(3),v(" ",m(30,26,i.cashierData.endDate)," "),a(3),v(" ",m(33,28,"labels.inputs.Full Day/Time")," "),a(3),v(" ",i.cashierData.isFullDay," "),a(2),g("routerLink",oe(32,FZt)),a(),v(" ",m(39,30,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,Et,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var VZt=()=>["edit"];function qZt(e,o){if(e&1){let t=Y();l(0,"button",9),R("click",function(){V(t);let i=w(2);return q(i.activateHoliday())}),b(1,"fa-icon",10),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Activate")," "))}function zZt(e,o){if(e&1&&(l(0,"span"),E(1,qZt,4,3,"button",8),r()),e&2){let t=w();a(),I(t.holidayData.status.value!=="Active"?1:-1)}}function HZt(e,o){e&1&&(l(0,"button",11),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,VZt)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function GZt(e,o){if(e&1){let t=Y();l(0,"button",13),R("click",function(){V(t);let i=w();return q(i.deleteHoliday())}),b(1,"fa-icon",14),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function jZt(e,o){if(e&1&&(l(0,"div",7),c(1),p(2,"dateFormat"),r()),e&2){let t=w();a(),v(" ",m(2,1,t.holidayData.repaymentsRescheduledTo)," ")}}function $Zt(e,o){e&1&&(l(0,"div",7),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Next Repayment Date")," "))}var US=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.translateService=T(yi),this.organizationService=T(li),this.route.data.subscribe(t=>{this.holidayData=t.holidays})}deleteHoliday(){this.dialog.open(vi,{data:{deleteContext:`holiday ${this.holidayData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteHoliday(this.holidayData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}activateHoliday(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Holiday"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to activate")+` ${this.holidayData.name} `+this.translateService.instant("labels.dialogContext.holiday")}}).afterClosed().subscribe(n=>{n.confirm&&this.organizationService.activateHoliday(this.holidayData.id).subscribe(()=>{this.router.navigate(["/organization/holidays"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-holidays"]],decls:30,vars:24,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","header"],[1,"flex-50"],["mat-raised-button","","color","accent"],["mat-raised-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,zZt,2,1,"span",1)(2,HZt,4,5,"button",2)(3,GZt,4,3,"button",3),r(),l(4,"div",4)(5,"mat-card")(6,"mat-card-content")(7,"div",5)(8,"div",6),c(9),p(10,"translate"),r(),l(11,"div",7),c(12),r(),l(13,"div",6),c(14),p(15,"translate"),r(),l(16,"div",7),c(17),p(18,"dateFormat"),r(),l(19,"div",6),c(20),p(21,"translate"),r(),l(22,"div",7),c(23),p(24,"dateFormat"),r(),l(25,"div",6),c(26),p(27,"translate"),r(),E(28,jZt,3,3,"div",7),E(29,$Zt,3,3,"div",7),r()()()()),n&2&&(a(),g("mifosxHasPermission","ACTIVATE_HOLIDAY"),a(),g("mifosxHasPermission","UPDATE_HOLIDAY"),a(),g("mifosxHasPermission","DELETE_HOLIDAY"),a(6),v(" ",m(10,12,"labels.inputs.Name")," "),a(3),v(" ",i.holidayData.name," "),a(2),v(" ",m(15,14,"labels.inputs.From Date")," "),a(3),v(" ",m(18,16,i.holidayData.fromDate)," "),a(3),v(" ",m(21,18,"labels.inputs.To Date")," "),a(3),v(" ",m(24,20,i.holidayData.toDate)," "),a(3),v(" ",m(27,22,"labels.inputs.Repayments Scheduled To")," "),a(2),I(i.holidayData.repaymentsRescheduledTo!==void 0&&i.holidayData.repaymentsRescheduledTo!==null?28:-1),a(),I(i.holidayData.repaymentsRescheduledTo===void 0||i.holidayData.repaymentsRescheduledTo===null?29:-1))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Pi,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}"]})}}return e})();var UZt=()=>["./general"],WZt=e=>["./datatables",e];function QZt(e,o){if(e&1&&(l(0,"a",7,2),c(2),r()),e&2){let t=ve(1),n=w().$implicit;g("routerLink",Nt(3,WZt,n.registeredTableName))("active",t.isActive),a(2),v(" ",n.registeredTableName," ")}}function YZt(e,o){if(e&1&&(l(0,"span"),F(1,QZt,3,5,"a",9),r()),e&2){let t=o.$implicit;a(),g("mifosxHasPermission","READ_"+t.registeredTableName)}}var WS=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.officeDatatables=t.officeDatatables})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-office"]],decls:13,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"container","narrow-container","extra-small"],[1,"office-card"],[1,"card-content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",1,"compact-tab",3,"routerLink","active"],[1,"tab-panel"],["mat-tab-link","","routerLinkActive","","class","compact-tab",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(n,i){if(n&1&&(l(0,"div",3)(1,"mat-card",4)(2,"mat-card-content",5)(3,"nav",6)(4,"a",7,0),c(6),p(7,"translate"),r(),Se(8,YZt,2,1,"span",null,Pe),r(),l(10,"mat-tab-nav-panel",8,1),b(12,"router-outlet"),r()()()()),n&2){let s=ve(5),d=ve(11);a(3),g("tabPanel",d),a(),g("routerLink",oe(6,UZt))("active",s.isActive),a(2),v(" ",m(7,4,"labels.inputs.General")," "),a(2),we(i.officeDatatables)}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],styles:[".action-button[_ngcontent-%COMP%]{width:85%;margin:.2rem auto;padding:.3rem;border-radius:3px;transition:all .3s ease}.action-button[_ngcontent-%COMP%]:hover{transform:translateY(-2px);box-shadow:0 4px 8px #0000001a}.office-card[_ngcontent-%COMP%]{width:100%;margin:.75rem auto;padding:.5rem;border-radius:8px!important;box-shadow:0 2px 8px #0000001a!important}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]{overflow:auto;padding:.2rem 0;scrollbar-width:thin}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]::-webkit-scrollbar{height:4px}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#0003;border-radius:4px}.office-card[_ngcontent-%COMP%] .navigation-tabs[_ngcontent-%COMP%] .mat-tab-label[_ngcontent-%COMP%]{min-width:80px;padding:0 .5rem;height:36px;font-size:.85rem}@media (width <= 768px){.office-card[_ngcontent-%COMP%]{width:85%;padding:.4rem}}.container[_ngcontent-%COMP%]{padding:.5rem}.narrow-container[_ngcontent-%COMP%]{max-width:600px;margin:0 auto;padding:.75rem}.extra-small[_ngcontent-%COMP%]{max-width:500px}.compact-tab[_ngcontent-%COMP%]{min-width:auto;padding:0 12px}.card-content[_ngcontent-%COMP%]{padding:.5rem}.tab-panel[_ngcontent-%COMP%]{padding:.5rem 0}"]})}}return e})();var JZt=()=>["../edit"];function KZt(e,o){if(e&1&&(l(0,"div",3),b(1,"mifosx-external-identifier",7),r()),e&2){let t=w();a(),g("externalId",Le(t.officeData.externalId))}}function XZt(e,o){e&1&&(l(0,"div",3),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Unassigned")," "))}function ZZt(e,o){e&1&&(l(0,"span")(1,"button",8),b(2,"fa-icon",9),c(3),p(4,"translate"),r()()),e&2&&(a(),g("routerLink",oe(4,JZt)),a(2),v("",m(4,2,"labels.buttons.Edit")," "))}var QS=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.officeData=t.office})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-general-tab"]],decls:28,vars:20,consts:[[1,"tab-container","mat-typography","compact-view"],[1,"layout-row-wrap","responsive-column","compact-details","condensed"],[1,"flex-45","mat-body-strong","left"],[1,"flex-50","right"],[1,"section-divider"],[1,"bottom-button-container","small-buttons"],[4,"mifosxHasPermission"],[3,"externalId"],["mat-raised-button","","color","primary",1,"edit-button",3,"routerLink"],["icon","edit",1,"m-r-5"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),c(3),p(4,"translate"),r(),l(5,"div",3),c(6),r(),b(7,"hr",4),l(8,"div",2),c(9),p(10,"translate"),r(),l(11,"div",3),c(12),p(13,"dateFormat"),r(),b(14,"hr",4),l(15,"div",2),c(16),p(17,"translate"),r(),l(18,"div",3),c(19),r(),b(20,"hr",4),l(21,"div",2),c(22),p(23,"translate"),r(),E(24,KZt,2,2,"div",3),E(25,XZt,3,3,"div",3),r(),l(26,"div",5),F(27,ZZt,5,5,"span",6),r()()),n&2&&(a(3),h(m(4,10,"labels.inputs.Parent Office")),a(3),v(" ",i.officeData.parentName?i.officeData.parentName:"N/A"," "),a(3),h(m(10,12,"labels.inputs.Opened On")),a(3),v(" ",i.officeData.openingDate?m(13,14,i.officeData.openingDate):"Unassigned"," "),a(4),h(m(17,16,"labels.inputs.Name Decorated")),a(3),v(" ",i.officeData.nameDecorated?i.officeData.nameDecorated:"Unassigned"," "),a(3),h(m(23,18,"labels.inputs.External Id")),a(2),I(i.officeData.externalId?24:-1),a(),I(i.officeData.externalId?-1:25),a(2),g("mifosxHasPermission","UPDATE_OFFICE"))},dependencies:[ue,fe,Oe,xe,Ke,ke,Da,Pi,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:.5rem;margin:1% auto;max-width:600px;width:90%}.tab-container[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{margin-left:1%}.table-name[_ngcontent-%COMP%]{padding-left:2%}.table-data[_ngcontent-%COMP%]{margin-top:3px}.compact-button[_ngcontent-%COMP%]{padding:.25rem .75rem;font-size:.9rem;line-height:1.75}.compact-details[_ngcontent-%COMP%]{font-size:.9rem}.compact-details[_ngcontent-%COMP%] .left[_ngcontent-%COMP%], .compact-details[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{padding:.25rem 0}.compact-details[_ngcontent-%COMP%] .mat-body-strong[_ngcontent-%COMP%]{font-size:.9rem}.bottom-button-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-top:2rem;padding:1rem 0}.edit-button[_ngcontent-%COMP%]{min-width:120px;padding:.5rem 1.5rem;font-size:1rem;border-radius:4px;box-shadow:0 3px 5px #0003;transition:all .3s ease}.edit-button[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #0000004d;transform:translateY(-2px)}.layout-row-wrap[_ngcontent-%COMP%]{margin:0 auto;padding:.5rem}.section-divider[_ngcontent-%COMP%]{width:100%;border:0;border-top:1px solid rgba(0,0,0,.1);margin:8px 0}.compact-view[_ngcontent-%COMP%]{padding:.3rem;margin:0 auto;max-width:450px;width:90%}.condensed[_ngcontent-%COMP%] .flex-45[_ngcontent-%COMP%], .condensed[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.2rem 0;font-size:.85rem}.condensed[_ngcontent-%COMP%] .section-divider[_ngcontent-%COMP%]{margin:4px 0}.small-buttons[_ngcontent-%COMP%]{margin-top:1rem}.small-buttons[_ngcontent-%COMP%] .edit-button[_ngcontent-%COMP%]{min-width:100px;padding:.35rem 1rem;font-size:.9rem}.tab-container.compact-view[_ngcontent-%COMP%]{max-width:450px;width:90%}"]})}}return e})();var YS=(()=>{class e{constructor(){this.route=T(Ie),this.entityId=this.route.parent.parent.snapshot.paramMap.get("officeId"),this.route.data.subscribe(t=>{this.entityDatatable=t.officeDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Office",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(n,i){n&1&&(l(0,"div",0),b(1,"mifosx-entity-datatable-tab",1),r()),n&2&&(a(),g("entityId",i.entityId)("multiRowDatatableFlag",i.multiRowDatatableFlag)("entityDatatable",i.entityDatatable))},dependencies:[ue,fe,Ir],encapsulation:2})}}return e})();var eei=["messageTable"],tei=()=>["edit"];function iei(e,o){e&1&&(l(0,"button",13),b(1,"fa-icon",14),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,tei)),a(2),v("",m(3,2,"labels.buttons.Edit")," "))}function nei(e,o){e&1&&(l(0,"span"),F(1,iei,4,5,"button",12),r()),e&2&&(a(),g("mifosxHasPermission","UPDATE_SMSCAMPAIGN"))}function oei(e,o){if(e&1){let t=Y();l(0,"button",16),R("click",function(){V(t);let i=w(2);return q(i.activateCampaign())}),b(1,"fa-icon",17),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Activate")," "))}function aei(e,o){e&1&&(l(0,"span"),F(1,oei,4,3,"button",15),r()),e&2&&(a(),g("mifosxHasPermission","ACTIVATE_SMSCAMPAIGN"))}function rei(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(2);return q(i.closeCampaign())}),b(1,"fa-icon",20),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Close")," "))}function lei(e,o){e&1&&(l(0,"span"),F(1,rei,4,3,"button",18),r()),e&2&&(a(),g("mifosxHasPermission","CLOSE_SMSCAMPAIGN"))}function sei(e,o){if(e&1){let t=Y();l(0,"button",16),R("click",function(){V(t);let i=w(2);return q(i.reactivateCampaign())}),b(1,"fa-icon",21),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Reactivate")," "))}function cei(e,o){e&1&&(l(0,"span"),F(1,sei,4,3,"button",15),r()),e&2&&(a(),g("mifosxHasPermission","REACTIVATE_SMSCAMPAIGN"))}function pei(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(2);return q(i.deleteCampaign())}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Delete")," "))}function mei(e,o){e&1&&(l(0,"span"),F(1,pei,4,3,"button",18),r()),e&2&&(a(),g("mifosxHasPermission","DELETE_SMSCAMPAIGN"))}function dei(e,o){if(e&1&&(l(0,"mat-list-item"),c(1),p(2,"translate"),r()),e&2){let t=w();a(),le(" ",m(2,2,"labels.inputs.Recurrence")," : ",t.smsCampaignData.recurrence," ")}}function uei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Message")))}function fei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.message)}}function hei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function gei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status.value)}}function _ei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Mobile No"),"."))}function Cei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.mobileNo)}}function vei(e,o){e&1&&(l(0,"th",41),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Campaign Name")))}function xei(e,o){if(e&1&&(l(0,"td",42),c(1),r()),e&2){let t=o.$implicit;a(),h(t.campaignName)}}function bei(e,o){e&1&&b(0,"tr",43)}function yei(e,o){e&1&&b(0,"tr",44)}function Sei(e,o){if(e&1){let t=Y();l(0,"mat-tab",11)(1,"div",8)(2,"form",23),R("ngSubmit",function(){V(t);let i=w();return q(i.search())}),l(3,"div",24)(4,"mat-form-field",25),R("click",function(){V(t);let i=ve(11);return q(i.open())}),l(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",26)(9,"mat-datepicker-toggle",27)(10,"mat-datepicker",null,0),r(),l(12,"mat-form-field",25),R("click",function(){V(t);let i=ve(19);return q(i.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",28)(17,"mat-datepicker-toggle",27)(18,"mat-datepicker",null,1),r(),l(20,"div",29)(21,"button",30),b(22,"fa-icon",31),c(23),p(24,"translate"),r()()()(),l(25,"table",32,2),X(27,33),F(28,uei,3,3,"th",34)(29,fei,2,1,"td",35),Z(),X(30,36),F(31,hei,3,3,"th",34)(32,gei,2,1,"td",35),Z(),X(33,37),F(34,_ei,3,3,"th",34)(35,Cei,2,1,"td",35),Z(),X(36,38),F(37,vei,3,3,"th",34)(38,xei,2,1,"td",35),Z(),F(39,bei,1,0,"tr",39)(40,yei,1,0,"tr",40),r()()()}if(e&2){let t=o.$implicit,n=ve(11),i=ve(19),s=w();g("label",t.label),a(2),g("formGroup",s.smsForm),a(4),h(m(7,16,"labels.inputs.From Date")),a(2),g("min",s.minDate)("max",s.maxDate)("matDatepicker",n),a(),g("for",n),a(5),h(m(15,18,"labels.inputs.To Date")),a(2),g("min",s.minDate)("max",s.maxDate)("matDatepicker",i),a(),g("for",i),a(6),v("",m(24,20,"labels.buttons.Search")," "),a(2),g("dataSource",s.dataSource),a(14),g("matHeaderRowDef",s.displayedColumns),a(),g("matRowDefColumns",s.displayedColumns)}}var JS=(()=>{class e{constructor(){this.router=T(qe),this.route=T(Ie),this.dialog=T(Ht),this.formBuilder=T(nt),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.displayedColumns=["Message","Status","Mobile No.","Campaign Name"],this.dataSource=new Wt,this.smsTabs=[{label:"Pending SMS",status:100},{label:"Waiting for Delivery Report",status:150},{label:"Sent SMS",status:200},{label:"Delivered SMS",status:300},{label:"Failed SMS",status:400}],this.route.data.subscribe(t=>{this.smsCampaignData=t.smsCampaign})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSMSForm()}createSMSForm(){this.smsForm=this.formBuilder.group({fromDate:[""],toDate:[""]})}onTabChange(t){let n=t.tab?t.tab.textLabel:"Campaign",i=this.smsTabs.find(s=>n===s.label);this.status=i?i.status:void 0,this.dataSource.data=[],this.messageTableRef.renderRows(),this.smsForm.reset()}closeCampaign(){let t=[new rr({controlName:"closureDate",label:"Closure Date",value:"",type:"date",required:!0})],n={title:"Close SMS Campaign",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=this.settingsService.language.code,u=this.settingsService.dateFormat,f={closureDate:this.dateUtils.formatDate(s.data.value.closureDate,u),dateFormat:u,locale:d};this.organizationService.executeSmsCampaignCommand(this.smsCampaignData.id,f,"close").subscribe(()=>{this.reload()})}})}activateCampaign(){let t=[new rr({controlName:"activationDate",label:"Activation Date",value:"",type:"date",required:!0})],n={title:"Activate SMS Campaign",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=this.settingsService.language.code,u=this.settingsService.dateFormat,f={activationDate:this.dateUtils.formatDate(s.data.value.activationDate,u),dateFormat:u,locale:d};this.organizationService.executeSmsCampaignCommand(this.smsCampaignData.id,f,"activate").subscribe(()=>{this.reload()})}})}reactivateCampaign(){let t=[new rr({controlName:"activationDate",label:"Reactivation Date",value:"",type:"date",required:!0})],n={title:"Reactivate SMS Campaign",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=this.settingsService.language.code,u=this.settingsService.dateFormat,f={activationDate:this.dateUtils.formatDate(s.data.value.activationDate,u),dateFormat:u,locale:d};this.organizationService.executeSmsCampaignCommand(this.smsCampaignData.id,f,"reactivate").subscribe(()=>{this.reload()})}})}deleteCampaign(){this.dialog.open(vi,{data:{deleteContext:`sms campaing with id: ${this.smsCampaignData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteSmsCampaign(this.smsCampaignData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})})}reload(){let t=this.router.url;this.router.navigateByUrl("/organization/sms-campaigns",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}search(){let t=this.smsForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.smsForm.value.fromDate,d=this.smsForm.value.toDate;t.fromDate instanceof Date&&(t.fromDate=this.dateUtils.formatDate(s,i)),t.toDate instanceof Date&&(t.toDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{id:this.smsCampaignData.id,status:this.status,dateFormat:i,locale:n});this.organizationService.getMessagebyStatus(u).subscribe(f=>{this.dataSource.data=f.pageItems,this.messageTableRef.renderRows()})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-campaign"]],viewQuery:function(n,i){if(n&1&&Ee(eei,5),n&2){let s;Te(s=Me())&&(i.messageTableRef=s.first)}},decls:38,vars:32,consts:[["fromDatePicker",""],["toDatePicker",""],["messageTable",""],[1,"container"],[1,"layout-row","align-flex-end","action-buttons","m-b-20","gap-1percent"],[1,"sms-card"],[3,"selectedTabChange"],["label","Campaign"],[1,"tab-content","mat-typography"],[1,"layout-column","gap-10px","template-message"],["matInput","","disabled",""],[3,"label"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","times",1,"m-r-10"],["icon","undo",1,"m-r-10"],["icon","trash",1,"m-r-10"],[3,"ngSubmit","formGroup"],[1,"layout-row","layout-align-center","gap-3percent"],[3,"click"],["matInput","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"search-button"],["mat-raised-button","","color","primary"],["icon","search",1,"m-r-10"],["mat-table","",1,"mat-elevation-z1","m-b-25",3,"dataSource"],["matColumnDef","Message"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","Status"],["matColumnDef","Mobile No."],["matColumnDef","Campaign Name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",3)(1,"div",4),E(2,nei,2,1,"span"),E(3,aei,2,1,"span"),E(4,lei,2,1,"span"),E(5,cei,2,1,"span"),E(6,mei,2,1,"span"),r(),l(7,"mat-card",5)(8,"mat-card-content")(9,"mat-tab-group",6),R("selectedTabChange",function(d){return i.onTabChange(d)}),l(10,"mat-tab",7)(11,"div",8)(12,"mat-list")(13,"mat-list-item"),c(14),p(15,"translate"),r(),l(16,"mat-list-item"),c(17),p(18,"translate"),r(),l(19,"mat-list-item"),c(20),p(21,"translate"),r(),l(22,"mat-list-item"),c(23),p(24,"translate"),r(),l(25,"mat-list-item"),c(26),p(27,"translate"),p(28,"dateFormat"),r(),E(29,dei,3,4,"mat-list-item"),l(30,"div",9)(31,"h3"),c(32),p(33,"translate"),r(),l(34,"textarea",10),c(35),r()()()()(),Se(36,Sei,41,22,"mat-tab",11,Pe),r()()()()),n&2&&(a(2),I(i.smsCampaignData.campaignStatus.value!=="active"?2:-1),a(),I(i.smsCampaignData.campaignStatus.value==="Pending"?3:-1),a(),I(i.smsCampaignData.campaignStatus.value!=="closed"?4:-1),a(),I(i.smsCampaignData.campaignStatus.value!=="Pending"&&i.smsCampaignData.campaignStatus.value!=="active"?5:-1),a(),I(i.smsCampaignData.campaignStatus.value==="closed"?6:-1),a(8),le(" ",m(15,18,"labels.inputs.Campaign Name")," : ",i.smsCampaignData.campaignName," "),a(3),le(" ",m(18,20,"labels.inputs.Report Name")," : ",i.smsCampaignData.reportName," "),a(3),le(" ",m(21,22,"labels.inputs.Status")," : ",i.smsCampaignData.campaignStatus.value," "),a(3),le(" ",m(24,24,"labels.inputs.Trigger Type")," : ",i.smsCampaignData.triggerType.value," "),a(3),le(" ",m(27,26,"labels.inputs.Submitted on")," : ",m(28,28,i.smsCampaignData.smsCampaignTimeLine.submittedOnDate)," "),a(3),I(i.smsCampaignData.recurrence?29:-1),a(3),v("",m(33,30,"labels.heading.Template Message")," :"),a(3),h(i.smsCampaignData.campaignMessage),a(),we(i.smsTabs))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Oe,Ue,Je,Fe,Be,ai,ze,mi,di,pi,xe,Ke,ke,Nr,Qr,vl,Vo,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he],styles:[".action-buttons[_ngcontent-%COMP%]{width:90%}.sms-card[_ngcontent-%COMP%]{margin:0 auto;width:80%;padding:0}.sms-card[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%]{padding:1%;margin:1%}.sms-card[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%] .template-message[_ngcontent-%COMP%]{padding-inline:1.5%;margin-top:1%}.sms-card[_ngcontent-%COMP%] .tab-content[_ngcontent-%COMP%] .search-button[_ngcontent-%COMP%]{max-width:3%;max-height:2%;padding-block:2.25%}"]})}}return e})();var wei=["formRef"],Pei=["fundFormRef"],Tei=["templateFundFormRef"],Mei=()=>[10,25,50,100],Dei=()=>["create"],Eei=e=>[e];function Iei(e,o){e&1&&(l(0,"button",20),b(1,"fa-icon",21),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Dei)),a(2),v(" ",m(3,2,"labels.buttons.Create Fund")," "))}function Oei(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function Aei(e,o){if(e&1&&(l(0,"td",23),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function Fei(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function kei(e,o){if(e&1&&(l(0,"td",23),b(1,"mifosx-external-identifier",24),r()),e&2){let t=o.$implicit;a(),g("externalId",Le(t.externalId))}}function Bei(e,o){e&1&&b(0,"tr",25)}function Rei(e,o){if(e&1&&b(0,"tr",26),e&2){let t=o.$implicit;g("routerLink",Nt(1,Eei,t.id))}}function Nei(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",27),c(4),p(5,"translate"),l(6,"a",28),c(7),p(8,"translate"),r()(),l(9,"div",29)(10,"button",30),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11," Close "),r(),l(12,"button",31),R("click",function(){let i=V(t).popover;return q(i.close())}),c(13),p(14,"translate"),r(),l(15,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(16),p(17,"translate"),r(),l(18,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(19),p(20,"translate"),r()()}e&2&&(a(),h(m(2,6,"labels.heading.Manage Funds")),a(3),v(" ",m(5,8,"labels.text.Used Add Fund"),": "),a(3),h(m(8,10,"labels.inputs.Manage Funds")),a(6),v(" ",m(14,12,"labels.buttons.Add Funds")," "),a(3),v(" ",m(17,14,"labels.buttons.Back")," "),a(3),v(" ",m(20,16,"labels.buttons.Next")," "))}var KS=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.organizationservice=T(li),this.dialog=T(Ht),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["name","externalId"],this.route.data.subscribe(t=>{this.fundsData=t.funds})}ngOnInit(){this.dataSource=new Wt(this.fundsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}createFundForm(){this.fundForm=this.formBuilder.group({name:["",ce.required]})}addFund(){let t=this.fundForm.value;this.organizationservice.createFund(t).subscribe(n=>{this.fundsData.push({id:n.resourceId,name:t.name}),this.formRef.resetForm(),this.configurationWizardService.showManageFunds===!0&&(this.configurationWizardService.showManageFunds=!1,this.openDialog())})}editFund(t,n,i){let s=[new vn({controlName:"name",label:"Fund Content",value:n,type:"text",required:!0})],d={title:"Edit Fund",layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(an,{data:d}).afterClosed().subscribe(f=>{f.data&&this.organizationservice.editFund(t,f.data.value).subscribe(()=>{this.fundsData[i].name=f.data.value.name})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showManageFunds===!0&&setTimeout(()=>{this.showPopover(this.templateFundFormRef,this.fundFormRef.nativeElement,"bottom",!0)})}previousStep(){this.router.navigate(["/organization"])}nextStep(){this.configurationWizardService.showManageFunds=!1,this.configurationWizardService.showManageReports=!0,this.router.navigate(["/system"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"fund"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showManageFunds=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showManageFunds=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/manage-funds"])):n.step===3&&(this.configurationWizardService.showManageFunds=!1,this.configurationWizardService.showManageReports=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-funds"]],viewQuery:function(n,i){if(n&1&&(Ee(wei,5),Ee(Pei,5),Ee(Tei,5),Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.formRef=s.first),Te(s=Me())&&(i.fundFormRef=s.first),Te(s=Me())&&(i.templateFundFormRef=s.first),Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[["fundFormRef",""],["filter",""],["chargesTable",""],["templateFundFormRef",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8","table-container"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","externalId"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[3,"externalId"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141736/Manage+Funds","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0),F(3,Iei,4,5,"button",6),r()(),l(4,"div",7)(5,"div",8,1)(7,"mat-form-field",9)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",10),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(12,"div",11,2)(14,"table",12),X(15,13),F(16,Oei,3,3,"th",14)(17,Aei,2,1,"td",15),Z(),X(18,16),F(19,Fei,3,3,"th",14)(20,kei,2,2,"td",15),Z(),F(21,Bei,1,0,"tr",17)(22,Rei,1,3,"tr",18),r(),b(23,"mat-paginator",19),r()(),F(24,Nei,21,18,"ng-template",null,3,ti)}n&2&&(a(3),g("mifosxHasPermission","CREATE_FUND"),a(6),h(m(10,6,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Mei)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,Da,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Lei=["formRef"],Vei=["currencyFormRef"],qei=["templateCurrencyFormRef"];function zei(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),le(" (",t.code,") ",t.name," ")}}function Hei(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Gei(e,o){if(e&1&&(l(0,"button",12),b(1,"fa-icon",13),r()),e&2){let t=w();g("disabled",!t.currencyForm.valid)}}function jei(e,o){if(e&1){let t=Y();l(0,"button",17),R("click",function(){V(t);let i=w(),s=i.$implicit,d=i.$index,u=w();return q(u.deleteCurrency(s.code,d))}),b(1,"fa-icon",18),r()}}function $ei(e,o){if(e&1&&(l(0,"mat-grid-tile",11)(1,"div",14)(2,"div"),F(3,jei,2,0,"button",15),r(),l(4,"span",16)(5,"b"),c(6),r()()()()),e&2){let t=o.$implicit;a(3),g("mifosxHasPermission","UPDATE_CURRENCY"),a(3),h(t.name)}}function Uei(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"p",19),c(4),p(5,"translate"),l(6,"a",20),c(7),p(8,"translate"),r()(),l(9,"div",21)(10,"button",22),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",23),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",23),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Add Currency Form")),a(3),v(" ",m(5,9,"labels.text.Used to add currency"),": "),a(3),h(m(8,11,"labels.inputs.Currency Configuration")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Add Currency")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var XS=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.organizationservice=T(li),this.dialog=T(Ht),this.router=T(qe),this.translateService=T(yi),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.placeHolderLabel="",this.noEntriesFoundLabel="",this.currencyList=[],this.currencyData=new K7(1),this.filterFormCtrl=new it(""),this._onDestroy=new Rr,this.route.parent.data.subscribe(t=>{this.selectedCurrencies=t.currencies.selectedCurrencyOptions,this.currencyList=t.currencies.currencyOptions})}ngOnInit(){this.placeHolderLabel=this.translateService.instant("labels.text.Search"),this.noEntriesFoundLabel=this.translateService.instant("labels.text.No data found"),this.filterFormCtrl.valueChanges.pipe(Rl(this._onDestroy)).subscribe(()=>{this.searchItem()}),this.createCurrencyForm()}ngOnDestroy(){this._onDestroy.next(),this._onDestroy.complete()}ngOnChanges(t){this.currencyList&&this.currencyData.next(this.currencyList.slice())}createCurrencyForm(){this.currencyForm=this.formBuilder.group({currency:["",ce.required]})}searchItem(){if(this.currencyList){let t=this.filterFormCtrl.value.toLowerCase();t?this.currencyData.next(this.currencyList.filter(n=>n.name.toLowerCase().indexOf(t)>=0||n.code.toLowerCase().indexOf(t)>=0)):this.currencyData.next(this.currencyList.slice())}}addCurrency(){let t=this.currencyForm.value.currency,n=this.selectedCurrencies.map(i=>i.code);n.includes(t.code)||(n.push(t.code),this.organizationservice.updateCurrencies(n).subscribe(i=>{this.selectedCurrencies.push(t),this.formRef.resetForm(),this.configurationWizardService.showCurrencyForm===!0&&(this.configurationWizardService.showCurrencyForm=!1,this.openDialog())}))}deleteCurrency(t,n){let i=this.selectedCurrencies.map(d=>d.code);i.splice(n,1),this.dialog.open(vi,{data:{deleteContext:`currency: ${t}`}}).afterClosed().subscribe(d=>{d.delete&&this.organizationservice.updateCurrencies(i).subscribe(()=>{this.selectedCurrencies.splice(n,1),this.formRef.resetForm()})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showCurrencyForm===!0&&setTimeout(()=>{this.showPopover(this.templateCurrencyFormRef,this.currencyFormRef.nativeElement,"bottom",!0)})}nextStep(){this.configurationWizardService.showCurrencyForm=!1,this.configurationWizardService.showCreateHoliday=!0,this.router.navigate(["/organization"])}previousStep(){this.configurationWizardService.showCurrencyForm=!1,this.configurationWizardService.showCurrencyList=!0,this.router.navigate(["/organization/currencies"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"currency"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showCurrencyForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showCurrencyForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/currencies/manage"])):n.step===3&&(this.configurationWizardService.showCurrencyForm=!1,this.configurationWizardService.showCreateHoliday=!0,this.router.navigate(["/organization"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-manage-currencies"]],viewQuery:function(n,i){if(n&1&&(Ee(Lei,7),Ee(Vei,5),Ee(qei,5)),n&2){let s;Te(s=Me())&&(i.formRef=s.first),Te(s=Me())&&(i.currencyFormRef=s.first),Te(s=Me())&&(i.templateCurrencyFormRef=s.first)}},features:[Uo],decls:23,vars:13,consts:[["currencyFormRef",""],["formRef","ngForm"],["templateCurrencyFormRef",""],[1,"container"],[1,"layout-row","align-start-baseline","gap-20px","flex-48",3,"ngSubmit","formGroup"],[1,"flex-fill","flex-90-minus-20px"],["required","","formControlName","currency"],[3,"placeholderLabel","noEntriesFoundLabel","formControl"],[3,"value"],["mat-raised-button","","class","flex-fill","color","primary",3,"disabled",4,"mifosxHasPermission"],["cols","2","rowHeight","50px"],[1,"grid-tile-content"],["mat-raised-button","","color","primary",1,"flex-fill",3,"disabled"],["icon","plus"],[1,"grid-container"],["mat-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"label","m-l-10","p-t-5"],["mat-button","","color","warn",3,"click"],["icon","trash"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141734/Currency+Configuration","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"div",null,0)(4,"form",4,1),R("ngSubmit",function(){return V(s),q(i.addCurrency())}),l(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),l(10,"mat-select",6)(11,"mat-option"),b(12,"ngx-mat-select-search",7),r(),Se(13,zei,2,3,"mat-option",8,Pe),p(15,"async"),r(),E(16,Hei,7,9,"mat-error"),r(),F(17,Gei,2,1,"button",9),r()(),l(18,"mat-grid-list",10),Se(19,$ei,7,2,"mat-grid-tile",11,Pe),r()()(),F(21,Uei,22,21,"ng-template",null,2,ti)}n&2&&(a(4),g("formGroup",i.currencyForm),a(4),h(m(9,9,"labels.inputs.Currency")),a(4),g("placeholderLabel",Le(i.placeHolderLabel))("noEntriesFoundLabel",Le(i.noEntriesFoundLabel))("formControl",i.filterFormCtrl),a(),we(m(15,11,i.currencyData)),a(3),I(i.currencyForm.controls.currency.hasError("required")?16:-1),a(),g("mifosxHasPermission","UPDATE_CURRENCY"),a(2),we(i.selectedCurrencies))},dependencies:[ue,fe,tt,$e,Xe,dt,_n,Ze,et,Ue,Fe,Be,ut,gt,ft,xe,Ke,Pk,wk,ke,ZF,XF,Ka,he],styles:[".container[_ngcontent-%COMP%]{width:74rem}.currency-grid[_ngcontent-%COMP%]{max-width:40%;justify-content:left!important}mat-grid-tile[_ngcontent-%COMP%]{justify-content:left!important}.grid-container[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:left;width:100%;height:100%}"]})}}return e})();var Wei=()=>[10,25,50,100],Qei=()=>["create"],Yei=e=>[e,"allocate"],Jei=e=>[e,"settle"],Kei=e=>[e,"transactions"],Xei=e=>[e];function Zei(e,o){e&1&&(l(0,"button",17),b(1,"fa-icon",18),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Qei)),a(2),v(" ",m(3,2,"labels.buttons.New Cashier")," "))}function eti(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Period")))}function tti(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"dateFormat"),p(3,"dateFormat"),r()),e&2){let t=o.$implicit;a(),le(" ",m(2,2,t.startDate)," - ",m(3,4,t.endDate)," ")}}function iti(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Cashier/Staff")))}function nti(e,o){if(e&1&&(l(0,"td",20),c(1),r()),e&2){let t=o.$implicit;a(),h(t.staffName)}}function oti(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Full Day/Time")))}function ati(e,o){if(e&1&&(l(0,"td",20),c(1),p(2,"yesNo"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.isFullDay))}}function rti(e,o){e&1&&(l(0,"th",19),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Vault Actions")))}function lti(e,o){if(e&1){let t=Y();l(0,"button",24),p(1,"translate"),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(2,"i",25),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.Allocate Cash")))("routerLink",Nt(5,Yei,t.id))}}function sti(e,o){if(e&1){let t=Y();l(0,"button",26),p(1,"translate"),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(2,"i",27),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.Settle Cash")))("routerLink",Nt(5,Jei,t.id))}}function cti(e,o){if(e&1){let t=Y();l(0,"button",28),p(1,"translate"),R("click",function(i){V(t);let s=w(2);return q(s.routeEdit(i))}),b(2,"i",29),r()}if(e&2){let t=w().$implicit;g("matTooltip",Le(m(1,3,"tooltips.View Transactions")))("routerLink",Nt(5,Kei,t.id))}}function pti(e,o){e&1&&(l(0,"td",20),F(1,lti,3,7,"button",21)(2,sti,3,7,"button",22)(3,cti,3,7,"button",23),r()),e&2&&(a(),g("mifosxHasPermission","ALLOCATECASHIER_TELLER"),a(),g("mifosxHasPermission","SETTLECASHIER_TELLER"),a(),g("mifosxHasPermission","ALLOCATECASHIER_TELLER"))}function mti(e,o){e&1&&b(0,"tr",30)}function dti(e,o){if(e&1&&b(0,"tr",31),e&2){let t=o.$implicit;g("routerLink",Nt(1,Xei,t.id))}}var ZS=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["period","staffName","isFullDay","vaultActions"],this.route.data.subscribe(t=>{this.cashiersData=t.cashiersData.cashiers})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setCashiers()}setCashiers(){this.dataSource=new Wt(this.cashiersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}routeEdit(t){t.stopPropagation()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-cashiers"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:26,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","staffName"],["matColumnDef","isFullDay"],["matColumnDef","vaultActions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["class","cashier-action-button","mat-raised-button","","color","accent",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],["class","cashier-action-button","mat-raised-button","","color","warn",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],["class","cashier-action-button","mat-raised-button","","color","primary",3,"matTooltip","routerLink","click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",1,"cashier-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-arrow-up"],["mat-raised-button","","color","warn",1,"cashier-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-arrow-down"],["mat-raised-button","","color","primary",1,"cashier-action-button",3,"click","matTooltip","routerLink"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Zei,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,eti,3,3,"th",9)(13,tti,4,6,"td",10),Z(),X(14,11),F(15,iti,3,3,"th",9)(16,nti,2,1,"td",10),Z(),X(17,12),F(18,oti,3,3,"th",9)(19,ati,3,3,"td",10),Z(),X(20,13),F(21,rti,3,3,"th",9)(22,pti,4,3,"td",10),Z(),F(23,mti,1,0,"tr",14)(24,dti,1,3,"tr",15),r(),b(25,"mat-paginator",16),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_CASHIERS_FOR_TELLER"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,Wei)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,Pi,he,po],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .cashier-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var uti=()=>["../allocate"],fti=()=>["../settle"],hti=()=>[10,25,50,100];function gti(e,o){e&1&&(l(0,"button",11),b(1,"fa-icon",12),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,uti)),a(2),v(" ",m(3,2,"labels.buttons.Allocate Cash")," "))}function _ti(e,o){e&1&&(l(0,"button",13),b(1,"fa-icon",14),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,fti)),a(2),v(" ",m(3,2,"labels.buttons.Settle Cash")," "))}function Cti(e,o){if(e&1&&(l(0,"div",3)(1,"mat-card",15)(2,"mat-card-content")(3,"div",16)(4,"div",17),c(5),p(6,"translate"),r(),l(7,"div",18),c(8),r(),l(9,"div",17),c(10),p(11,"translate"),r(),l(12,"div",18),c(13),r(),l(14,"div",17),c(15),p(16,"translate"),r(),l(17,"div",18),c(18),r(),l(19,"div",17),c(20),p(21,"translate"),r(),l(22,"div",18),c(23),p(24,"formatNumber"),r()()()()()),e&2){let t=w();a(5),v(" ",m(6,9,"labels.inputs.Branch")," "),a(3),v(" ",t.cashierData.officeName," "),a(2),v(" ",m(11,11,"labels.inputs.Teller")," "),a(3),v(" ",t.cashierData.tellerName," "),a(2),v(" ",m(16,13,"labels.inputs.Cashier")," "),a(3),v(" ",t.cashierData.cashierName," "),a(2),v(" ",m(21,15,"labels.inputs.Net Cash")," "),a(3),le("",m(24,17,t.cashierData.netCash)," [",t.currencySelector.value,"]")}}function vti(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function xti(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Date")))}function bti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.txnDate))}}function yti(e,o){e&1&&(l(0,"th",31),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Transactions")))}function Sti(e,o){if(e&1&&(l(0,"td",32),c(1),r()),e&2){let t=o.$implicit;a(),h(t.txnType.value)}}function wti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Allocation")," (",m(3,4,t.cashierData.sumCashAllocation),") ")}}function Pti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Allocate Cash"?m(2,1,t.txnAmount):"-"," ")}}function Tti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Cash In")," (",m(3,4,t.cashierData.sumInwardCash),") ")}}function Mti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Cash In"?m(2,1,t.txnAmount):"-"," ")}}function Dti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Cash Out")," (",m(3,4,t.cashierData.sumOutwardCash),") ")}}function Eti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Cash Out"?m(2,1,t.txnAmount):"-"," ")}}function Iti(e,o){if(e&1&&(l(0,"th",31),c(1),p(2,"translate"),p(3,"formatNumber"),r()),e&2){let t=w(2);a(),le(" ",m(2,2,"labels.inputs.Settlement")," (",m(3,4,t.cashierData.sumCashSettlement),") ")}}function Oti(e,o){if(e&1&&(l(0,"td",32),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),v(" ",t.txnType.value==="Settle Cash"?m(2,1,t.txnAmount):"-"," ")}}function Ati(e,o){e&1&&b(0,"tr",33)}function Fti(e,o){e&1&&b(0,"tr",34)}function kti(e,o){if(e&1&&(l(0,"div")(1,"table",19),X(2,20),F(3,xti,3,3,"th",21)(4,bti,3,3,"td",22),Z(),X(5,23),F(6,yti,3,3,"th",21)(7,Sti,2,1,"td",22),Z(),X(8,24),F(9,wti,4,6,"th",21)(10,Pti,3,3,"td",22),Z(),X(11,25),F(12,Tti,4,6,"th",21)(13,Mti,3,3,"td",22),Z(),X(14,26),F(15,Dti,4,6,"th",21)(16,Eti,3,3,"td",22),Z(),X(17,27),F(18,Iti,4,6,"th",21)(19,Oti,3,3,"td",22),Z(),F(20,Ati,1,0,"tr",28)(21,Fti,1,0,"tr",29),r(),b(22,"mat-paginator",30),r()),e&2){let t=w();a(),g("dataSource",t.dataSource),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(4,hti))}}var ew=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.currencySelector=new it,this.displayedColumns=["date","transactions","allocation","cashIn","cashOut","settlement"],this.route.data.subscribe(t=>{this.currencyData=t.currencies.selectedCurrencyOptions}),this.tellerId=this.route.parent.parent.parent.snapshot.params.id,this.cashierId=this.route.parent.snapshot.params.id}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.onChangeCurrency()}onChangeCurrency(){this.currencySelector.valueChanges.subscribe(t=>{this.organizationService.getCashierSummaryAndTransactions(this.tellerId,this.cashierId,t).subscribe(n=>{this.cashierData=n,this.setTransactions()})})}setTransactions(){this.dataSource=new Wt(this.cashierData.cashierTransactions.pageItems),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-transactions"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:20,vars:11,consts:[[1,"layout-row","gap-1percent","layout-align-end","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"routerLink",4,"mifosxHasPermission"],[1,"container","m-b-20"],[1,"container"],[1,"layout-column","gap-2percent","mat-elevation-z8"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["matInput","",3,"keyup"],["required","",3,"formControl"],[3,"value"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","arrow-up",1,"m-r-10"],["mat-raised-button","","color","warn",3,"routerLink"],["icon","arrow-down",1,"m-r-10"],[1,"mat-elevation-z8"],[1,"layout-row-wrap"],[1,"flex-25","header"],[1,"flex-25"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","date"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactions"],["matColumnDef","allocation"],["matColumnDef","cashIn"],["matColumnDef","cashOut"],["matColumnDef","settlement"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,gti,4,5,"button",1)(2,_ti,4,5,"button",2),r(),E(3,Cti,25,19,"div",3),l(4,"div",4)(5,"mat-card",5)(6,"div",6)(7,"mat-form-field",7)(8,"mat-label"),c(9),p(10,"translate"),r(),l(11,"input",8),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()(),l(12,"mat-form-field")(13,"mat-label"),c(14),p(15,"translate"),r(),l(16,"mat-select",9),Se(17,vti,2,2,"mat-option",10,Pe),r()()(),E(19,kti,23,5,"div"),r()()),n&2&&(a(),g("mifosxHasPermission","ALLOCATECASHIER_TELLER"),a(),g("mifosxHasPermission","SETTLECASHFROMCASHIER_TELLER"),a(),I(i.cashierData?3:-1),a(6),h(m(10,7,"labels.inputs.Filter")),a(5),v(" ",m(15,9,"labels.inputs.Select Currency")," "),a(2),g("formControl",i.currencySelector),a(),we(i.currencyData),a(2),I(i.cashierData?19:-1))},dependencies:[ue,fe,$e,dt,_n,Oe,Ue,Je,Fe,Be,ze,gt,ft,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,Pi,he,In],styles:[".content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{line-height:3rem}.content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:500}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var Bti=()=>["../"];function Rti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Nti(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function Lti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Vti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function qti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Notes/Comments")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zti(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.allocateCashForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var tw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierData=t.cashierTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setCashierForm()}setCashierForm(){this.allocateCashForm=this.formBuilder.group({office:[{value:this.cashierData.officeName,disabled:!0}],tellerName:[{value:this.cashierData.tellerName,disabled:!0}],cashier:[{value:this.cashierData.cashierName,disabled:!0}],assignmentPeriod:[{value:this.dateUtils.formatDate(this.cashierData.startDate,"dd MMMM yyyy")+" - "+this.dateUtils.formatDate(this.cashierData.endDate,"dd MMMM yyyy"),disabled:!0}],txnDate:[new Date,ce.required],currencyCode:["",ce.required],txnAmount:["",ce.required],txnNote:["",ce.required]})}submit(){let t=this.allocateCashForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.allocateCashForm.value.txnDate;t.txnDate instanceof Date&&(t.txnDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.allocateCash(this.cashierData.tellerId,this.cashierData.cashierId,d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-allocate-cash"]],decls:59,vars:39,consts:[["cashDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","office"],["matInput","","required","","formControlName","tellerName"],["matInput","","required","","formControlName","cashier"],["matInput","","formControlName","assignmentPeriod"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","txnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["required","","formControlName","currencyCode"],[3,"value"],["matInput","","required","","formControlName","txnAmount"],["matInput","","required","","formControlName","txnNote"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),r(),l(10,"mat-form-field",4)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),l(15,"mat-form-field",4)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",9),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",10)(30,"mat-datepicker-toggle",11)(31,"mat-datepicker",null,0),E(33,Rti,7,9,"mat-error"),r(),l(34,"mat-form-field",4)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",12),Se(39,Nti,2,2,"mat-option",13,Pe),r(),E(41,Lti,7,9,"mat-error"),r(),l(42,"mat-form-field",4)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"input",14),E(47,Vti,7,9,"mat-error"),r(),l(48,"mat-form-field",4)(49,"mat-label"),c(50),p(51,"translate"),r(),b(52,"input",15),E(53,qti,7,9,"mat-error"),r()()(),l(54,"mat-card-actions",16)(55,"button",17),c(56),p(57,"translate"),r(),F(58,zti,3,4,"button",18),r()()()()}if(n&2){let s=ve(32);a(2),g("formGroup",i.allocateCashForm),a(5),h(m(8,20,"labels.inputs.Office")),a(5),h(m(13,22,"labels.inputs.Teller Name")),a(5),h(m(18,24,"labels.inputs.Cashier")),a(5),h(m(23,26,"labels.inputs.Assignment Period")),a(5),h(m(28,28,"labels.inputs.Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.allocateCashForm.controls.txnDate.hasError("required")?33:-1),a(3),h(m(37,30,"labels.inputs.Currency")),a(3),we(i.cashierData.currencyOptions),a(2),I(i.allocateCashForm.controls.currencyCode.hasError("required")?41:-1),a(3),h(m(45,32,"labels.inputs.Amount")),a(3),I(i.allocateCashForm.controls.txnAmount.hasError("required")?47:-1),a(3),h(m(51,34,"labels.inputs.Notes/Comments")),a(3),I(i.allocateCashForm.controls.txnNote.hasError("required")?53:-1),a(2),g("routerLink",oe(38,Bti)),a(),v(" ",m(57,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","ALLOCATECASHIER_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],encapsulation:2})}}return e})();var Hti=()=>["../"];function Gti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jti(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function $ti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Currency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Uti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Amount")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Wti(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Notes/Comments")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Qti(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.settleCashForm.valid),a(),v(" ",m(2,2,"labels.buttons.Settle Cash")," ")}}var iw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierData=t.cashierTemplate})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.setCashierForm()}setCashierForm(){this.settleCashForm=this.formBuilder.group({office:[{value:this.cashierData.officeName,disabled:!0}],tellerName:[{value:this.cashierData.tellerName,disabled:!0}],cashier:[{value:this.cashierData.cashierName,disabled:!0}],assignmentPeriod:[{value:this.dateUtils.formatDate(this.cashierData.startDate,"dd MMMM yyyy")+" - "+this.dateUtils.formatDate(this.cashierData.endDate,"dd MMMM yyyy"),disabled:!0}],txnDate:[new Date,ce.required],currencyCode:["",ce.required],txnAmount:["",ce.required],txnNote:["",ce.required]})}submit(){let t=this.settleCashForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.settleCashForm.value.txnDate;t.txnDate instanceof Date&&(t.txnDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.settleCash(this.cashierData.tellerId,this.cashierData.cashierId,d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-settle-cash"]],decls:59,vars:39,consts:[["cashDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","office"],["matInput","","required","","formControlName","tellerName"],["matInput","","required","","formControlName","cashier"],["matInput","","formControlName","assignmentPeriod"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","txnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["required","","formControlName","currencyCode"],[3,"value"],["matInput","","required","","formControlName","txnAmount"],["matInput","","required","","formControlName","txnNote"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),r(),l(10,"mat-form-field",4)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),l(15,"mat-form-field",4)(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),r(),l(20,"mat-form-field",4)(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",8),r(),l(25,"mat-form-field",9),R("click",function(){V(s);let u=ve(32);return q(u.open())}),l(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",10)(30,"mat-datepicker-toggle",11)(31,"mat-datepicker",null,0),E(33,Gti,7,9,"mat-error"),r(),l(34,"mat-form-field",4)(35,"mat-label"),c(36),p(37,"translate"),r(),l(38,"mat-select",12),Se(39,jti,2,2,"mat-option",13,Pe),r(),E(41,$ti,7,9,"mat-error"),r(),l(42,"mat-form-field",4)(43,"mat-label"),c(44),p(45,"translate"),r(),b(46,"input",14),E(47,Uti,7,9,"mat-error"),r(),l(48,"mat-form-field",4)(49,"mat-label"),c(50),p(51,"translate"),r(),b(52,"input",15),E(53,Wti,7,9,"mat-error"),r()()(),l(54,"mat-card-actions",16)(55,"button",17),c(56),p(57,"translate"),r(),F(58,Qti,3,4,"button",18),r()()()()}if(n&2){let s=ve(32);a(2),g("formGroup",i.settleCashForm),a(5),h(m(8,20,"labels.inputs.Office")),a(5),h(m(13,22,"labels.inputs.Teller Name")),a(5),h(m(18,24,"labels.inputs.Cashier")),a(5),h(m(23,26,"labels.inputs.Assignment Period")),a(5),h(m(28,28,"labels.inputs.Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.settleCashForm.controls.txnDate.hasError("required")?33:-1),a(3),h(m(37,30,"labels.inputs.Currency")),a(3),we(i.cashierData.currencyOptions),a(2),I(i.settleCashForm.controls.currencyCode.hasError("required")?41:-1),a(3),h(m(45,32,"labels.inputs.Amount")),a(3),I(i.settleCashForm.controls.txnAmount.hasError("required")?47:-1),a(3),h(m(51,34,"labels.inputs.Notes/Comments")),a(3),I(i.settleCashForm.controls.txnNote.hasError("required")?53:-1),a(2),g("routerLink",oe(38,Hti)),a(),v(" ",m(57,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","SETTLECASHFROMCASHIER_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],encapsulation:2})}}return e})();var Yti=()=>["../"];function Jti(e,o){if(e&1&&(l(0,"mat-option",18),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Kti(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",17),Se(5,Jti,2,2,"mat-option",18,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Cashier")),a(3),we(t.cashierData.template.staffOptions)}}function Xti(e,o){if(e&1&&(l(0,"mat-select",17)(1,"mat-option",18),c(2),p(3,"translate"),r()()),e&2){let t=w(2);a(),g("value",t.cashierData.data.staffId),a(),v(" ",m(3,2,"labels.inputs.Select Option")," ")}}function Zti(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),E(4,Xti,4,4,"mat-select",17),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Cashier")),a(2),I(t.isStaffId?-1:4)}}function eii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function iii(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.editCashierForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var nw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.cashierData=new Object,this.isStaffId=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierData.data=t.cashier,this.cashierData.template=t.cashierTemplate,this.isStaffId=this.cashierData.template.staffOptions.some(n=>n.id===this.cashierData.data.staffId)})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.setEditChargeForm()}setEditChargeForm(){this.editCashierForm=this.formBuilder.group({staffId:[{value:this.cashierData.data.staffId,disabled:!0}],description:[this.cashierData.data.description],startDate:[this.cashierData.data.startDate&&new Date(this.cashierData.data.startDate),ce.required],endDate:[this.cashierData.data.endDate&&new Date(this.cashierData.data.endDate),ce.required],isFullDay:[this.cashierData.data.isFullDay,ce.required]})}submit(){let t=this.editCashierForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.editCashierForm.value.startDate,d=this.editCashierForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{staffId:this.cashierData.data.staffId,dateFormat:i,locale:n});this.organizationService.updateCashier(this.cashierData.data.tellerId,this.cashierData.data.id,u).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-cashier"]],decls:49,vars:39,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","autofocus","","disabled","",3,"value"],["matInput","","autofocus","","formControlName","description"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"space","flex-48"],["labelPosition","before","formControlName","isFullDay"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["formControlName","staffId"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),r(),l(10,"mat-form-field",5)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),E(15,Kti,7,3,"mat-form-field",5),E(16,Zti,5,4,"mat-form-field",5),l(17,"mat-form-field",5)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",7),r(),l(22,"mat-form-field",8),R("click",function(){V(s);let u=ve(29);return q(u.open())}),l(23,"mat-label"),c(24),p(25,"translate"),r(),b(26,"input",9)(27,"mat-datepicker-toggle",10)(28,"mat-datepicker",null,0),E(30,eii,7,9,"mat-error"),r(),l(31,"mat-form-field",8),R("click",function(){V(s);let u=ve(38);return q(u.open())}),l(32,"mat-label"),c(33),p(34,"translate"),r(),b(35,"input",11)(36,"mat-datepicker-toggle",10)(37,"mat-datepicker",null,1),E(39,tii,7,9,"mat-error"),r(),l(40,"div",12)(41,"mat-checkbox",13),c(42),p(43,"translate"),r()()()(),l(44,"mat-card-actions",14)(45,"button",15),c(46),p(47,"translate"),r(),F(48,iii,3,4,"button",16),r()()()()}if(n&2){let s=ve(29),d=ve(38);a(2),g("formGroup",i.editCashierForm),a(5),h(m(8,24,"labels.inputs.Office")),a(2),g("value",i.cashierData.template.officeName),a(3),h(m(13,26,"labels.inputs.Teller Name")),a(2),g("value",i.cashierData.data.tellerName),a(),I(i.isStaffId?15:-1),a(),I(i.isStaffId?-1:16),a(3),h(m(20,28,"labels.inputs.Description/Notes")),a(5),h(m(25,30,"labels.inputs.From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.editCashierForm.controls.startDate.hasError("required")?30:-1),a(3),h(m(34,32,"labels.inputs.To")),a(2),g("min",i.editCashierForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.editCashierForm.controls.endDate.hasError("required")?39:-1),a(3),v(" ",m(43,34,"labels.inputs.Full Day"),"? "),a(3),g("routerLink",oe(38,Yti)),a(),v(" ",m(47,36,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATECASHIERALLOCATION_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".space[_ngcontent-%COMP%]{padding-top:10px}"]})}}return e})();var nii=()=>["../"];function oii(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function aii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Cashier")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function lii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function sii(e,o){if(e&1&&(l(0,"button",19),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.createCashierForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var ow=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.cashierTemplate=t.cashierTemplate})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.setCreateCashierForm()}setCreateCashierForm(){this.createCashierForm=this.formBuilder.group({staffId:["",ce.required],description:[""],startDate:["",ce.required],endDate:["",ce.required],isFullDay:[!1]})}submit(){let t=this.createCashierForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.createCashierForm.value.startDate,d=this.createCashierForm.value.endDate;t.startDate instanceof Date&&(t.startDate=this.dateUtils.formatDate(s,i)),t.endDate instanceof Date&&(t.endDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.createCashier(this.cashierTemplate.tellerId,u).subscribe(f=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-cashier"]],decls:55,vars:41,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","autofocus","","disabled","",3,"value"],["formControlName","staffId"],[3,"value"],["matInput","","autofocus","","formControlName","description"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","startDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","endDate",3,"min","max","matDatepicker"],[1,"space","flex-48"],["labelPosition","before","formControlName","isFullDay"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),r(),l(10,"mat-form-field",5)(11,"mat-label"),c(12),p(13,"translate"),r(),b(14,"input",6),r(),l(15,"mat-form-field",5)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",7),Se(20,oii,2,2,"mat-option",8,Pe),r(),E(22,aii,7,9,"mat-error"),r(),l(23,"mat-form-field",5)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",9),r(),l(28,"mat-form-field",10),R("click",function(){V(s);let u=ve(35);return q(u.open())}),l(29,"mat-label"),c(30),p(31,"translate"),r(),b(32,"input",11)(33,"mat-datepicker-toggle",12)(34,"mat-datepicker",null,0),E(36,rii,7,9,"mat-error"),r(),l(37,"mat-form-field",10),R("click",function(){V(s);let u=ve(44);return q(u.open())}),l(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",13)(42,"mat-datepicker-toggle",12)(43,"mat-datepicker",null,1),E(45,lii,7,9,"mat-error"),r(),l(46,"div",14)(47,"mat-checkbox",15),c(48),p(49,"translate"),r()()()(),l(50,"mat-card-actions",16)(51,"button",17),c(52),p(53,"translate"),r(),F(54,sii,3,4,"button",18),r()()()()}if(n&2){let s=ve(35),d=ve(44);a(2),g("formGroup",i.createCashierForm),a(5),h(m(8,24,"labels.inputs.Office")),a(2),g("value",i.cashierTemplate.officeName),a(3),h(m(13,26,"labels.inputs.Teller Name")),a(2),g("value",i.cashierTemplate.tellerName),a(3),h(m(18,28,"labels.inputs.Cashier")),a(3),we(i.cashierTemplate.staffOptions),a(2),I(i.createCashierForm.controls.staffId.hasError("required")?22:-1),a(3),h(m(26,30,"labels.inputs.Description/Notes")),a(5),h(m(31,32,"labels.inputs.From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.createCashierForm.controls.startDate.hasError("required")?36:-1),a(3),h(m(40,34,"labels.inputs.To")),a(2),g("min",i.createCashierForm.value.startDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.createCashierForm.controls.endDate.hasError("required")?45:-1),a(3),v(" ",m(49,36,"labels.inputs.Full Day"),"? "),a(3),g("routerLink",oe(40,nii)),a(),v(" ",m(53,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATECASHIERALLOCATION_TELLER")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".space[_ngcontent-%COMP%]{padding-top:10px}"]})}}return e})();var cii=()=>["../"];function pii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function dii(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),E(8,mii,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.From Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.fromDate.hasError("required")?8:-1)}}function uii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function fii(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,1),E(8,uii,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.To Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.toDate.hasError("required")?8:-1)}}function hii(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function gii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment Scheduling Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function _ii(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",15),Se(5,hii,2,2,"mat-option",16,Pe),r(),E(7,gii,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repayment Scheduling Type")),a(3),we(t.holidayData.repaymentSchedulingTypes),a(2),I(t.holidayForm.controls.reschedulingType.hasError("required")?7:-1)}}function Cii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment scheduled to")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function vii(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",17)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,2),E(8,Cii,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Repayment scheduled to")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.repaymentsRescheduledTo.hasError("required")?8:-1)}}function xii(e,o){if(e&1&&(l(0,"button",18),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.holidayForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var aw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizatioService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.isActiveHoliday=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.holidayData=t.holiday,this.holidayData.repaymentSchedulingTypes=t.holidayTemplate,this.reSchedulingType=this.holidayData.reschedulingType,this.holidayData.status.value==="Active"?this.isActiveHoliday=!0:this.isActiveHoliday=!1})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setEditForm(),this.isActiveHoliday||this.getReschedulingType()}setEditForm(){this.holidayForm=this.formBuilder.group({name:[this.holidayData.name,ce.required],description:[this.holidayData.description]}),this.isActiveHoliday||(this.holidayForm.addControl("fromDate",new it(this.holidayData.fromDate&&new Date(this.holidayData.fromDate),ce.required)),this.holidayForm.addControl("toDate",new it(this.holidayData.toDate&&new Date(this.holidayData.toDate),ce.required)),this.holidayForm.addControl("reschedulingType",new it(this.holidayData.reschedulingType,ce.required)),this.reSchedulingType===2&&this.holidayForm.addControl("repaymentsRescheduledTo",new it(this.holidayData.repaymentsRescheduledTo&&new Date(this.holidayData.repaymentsRescheduledTo),ce.required)))}getReschedulingType(){this.holidayForm.get("reschedulingType").valueChanges.subscribe(t=>{this.reSchedulingType=t,t===2?this.holidayForm.addControl("repaymentsRescheduledTo",new it(new Date,ce.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let t=this.holidayForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat;if(!this.isActiveHoliday){let d=this.holidayForm.value.fromDate,u=this.holidayForm.value.toDate;if(d instanceof Date&&(t.fromDate=this.dateUtils.formatDateAsString(d,i)),u instanceof Date&&(t.toDate=this.dateUtils.formatDateAsString(u,i)),this.reSchedulingType===2){let f=this.holidayForm.value.repaymentsRescheduledTo;f instanceof Date&&(t.repaymentsRescheduledTo=this.dateUtils.formatDateAsString(f,i))}}let s=qt(at({},t),{dateFormat:i,locale:n});this.organizatioService.updateHoliday(this.holidayData.id,s).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-holiday"]],decls:25,vars:18,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],["matInput","","formControlName","description"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",5)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),E(10,pii,7,9,"mat-error"),r(),E(11,dii,9,8,"mat-form-field"),E(12,fii,9,8,"mat-form-field"),E(13,_ii,8,4,"mat-form-field"),E(14,vii,9,8,"mat-form-field"),l(15,"mat-form-field")(16,"mat-label"),c(17),p(18,"translate"),r(),b(19,"input",7),r()()(),l(20,"mat-card-actions",8)(21,"button",9),c(22),p(23,"translate"),r(),F(24,xii,3,4,"button",10),r()()()()),n&2&&(a(2),g("formGroup",i.holidayForm),a(5),h(m(8,11,"labels.inputs.name")),a(3),I(i.holidayForm.controls.name.hasError("required")?10:-1),a(),I(i.isActiveHoliday?-1:11),a(),I(i.isActiveHoliday?-1:12),a(),I(i.isActiveHoliday?-1:13),a(),I(!i.isActiveHoliday&&i.reSchedulingType===2?14:-1),a(3),h(m(18,13,"labels.inputs.Description")),a(4),g("routerLink",oe(17,cii)),a(),v(" ",m(23,15,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_HOLIDAY"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var bii=()=>["../"];function yii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Sii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.SQL Query")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Insert into table")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Table Fields")," ",m(3,5,"labels.commons.are")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Mii(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Dii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Custom Report Run Frequency")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Eii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Custom Report Run Frequency")," "),a(3),h(m(5,4,"labels.commons.must be larger than 0")))}function Iii(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",14),E(5,Dii,7,9,"mat-error"),E(6,Eii,6,6,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,3,"labels.inputs.Custom Report Run Frequency (Days)")),a(3),I(t.editAdhocQueryForm.controls.reportRunEvery.hasError("required")?5:-1),a(),I(t.editAdhocQueryForm.controls.reportRunEvery.hasError("min")?6:-1)}}function Oii(e,o){if(e&1&&(l(0,"button",15),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.editAdhocQueryForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var rw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.adhocQueryTemplateData=t.adhocQueryAndTemplate})}ngOnInit(){this.createEditAdhocQueryForm(),this.setConditionalControls()}createEditAdhocQueryForm(){this.reportRunFrequencyData=this.adhocQueryTemplateData.reportRunFrequencies,this.editAdhocQueryForm=this.formBuilder.group({name:[this.adhocQueryTemplateData.name,ce.required],query:[this.adhocQueryTemplateData.query,ce.required],tableName:[this.adhocQueryTemplateData.tableName,ce.required],tableFields:[this.adhocQueryTemplateData.tableFields,ce.required],email:[this.adhocQueryTemplateData.email,ce.email],reportRunFrequency:[""],isActive:[this.adhocQueryTemplateData.isActive]})}setConditionalControls(){this.editAdhocQueryForm.get("reportRunFrequency").valueChanges.subscribe(t=>{t===5?(this.editAdhocQueryForm.addControl("reportRunEvery",new it("",[ce.required,ce.min(1)])),this.editAdhocQueryForm.get("reportRunEvery").patchValue(this.adhocQueryTemplateData.reportRunEvery)):this.editAdhocQueryForm.removeControl("reportRunEvery")}),this.editAdhocQueryForm.get("reportRunFrequency").patchValue(this.adhocQueryTemplateData.reportRunFrequency)}submit(){this.organizationService.updateAdhocQuery(this.adhocQueryTemplateData.id,this.editAdhocQueryForm.value).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-adhoc-query"]],decls:51,vars:34,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],["matInput","","required","","formControlName","query"],["matInput","","required","","formControlName","tableName"],["matInput","","required","","formControlName","tableFields"],["matInput","","formControlName","email"],["formControlName","reportRunFrequency"],[3,"value"],["labelPosition","before","formControlName","isActive"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["type","number","matInput","","required","","formControlName","reportRunEvery"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,yii,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"textarea",4),E(16,Sii,7,9,"mat-error"),r(),l(17,"mat-form-field")(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",5),E(22,wii,7,9,"mat-error"),r(),l(23,"mat-form-field")(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"textarea",6),E(28,Pii,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",7),E(34,Tii,7,9,"mat-error"),r(),l(35,"mat-form-field")(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",8),Se(40,Mii,2,2,"mat-option",9,Pe),r()(),E(42,Iii,7,5,"mat-form-field"),l(43,"mat-checkbox",10),c(44),p(45,"translate"),r()()(),l(46,"mat-card-actions",11)(47,"button",12),c(48),p(49,"translate"),r(),F(50,Oii,3,4,"button",13),r()()()()),n&2&&(a(2),g("formGroup",i.editAdhocQueryForm),a(5),h(m(8,17,"labels.inputs.name")),a(3),I(i.editAdhocQueryForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,19,"labels.inputs.SQL Query")),a(3),I(i.editAdhocQueryForm.controls.query.hasError("required")?16:-1),a(3),h(m(20,21,"labels.inputs.Insert into table")),a(3),I(i.editAdhocQueryForm.controls.tableName.hasError("required")?22:-1),a(3),h(m(26,23,"labels.inputs.Table Fields")),a(3),I(i.editAdhocQueryForm.controls.tableFields.hasError("required")?28:-1),a(3),h(m(32,25,"labels.inputs.Email")),a(3),I(i.editAdhocQueryForm.controls.email.hasError("email")?34:-1),a(3),h(m(38,27,"labels.inputs.Report Run Frequency")),a(3),we(i.reportRunFrequencyData),a(2),I(i.editAdhocQueryForm.controls.reportRunFrequency.value===5?42:-1),a(2),v(" ",m(45,29,"labels.inputs.Active")," "),a(3),g("routerLink",oe(33,bii)),a(),v(" ",m(49,31,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_ADHOC"))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Aii=()=>["../general"];function Fii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function kii(e,o){if(e&1&&(l(0,"mat-option",13),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Bii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Parent Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Rii(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",12),Se(5,kii,2,2,"mat-option",13,Pe),r(),E(7,Bii,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Parent Office")),a(3),we(t.officeData.allowedParents),a(2),I(t.officeForm.controls.parentId.hasError("required")?7:-1)}}function Nii(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Opening Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lii(e,o){if(e&1&&(l(0,"button",14),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.officeForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var lw=(()=>{class e{constructor(){this.organizationService=T(li),this.settingsService=T(Ot),this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.officeData=t.officeTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createOfficeForm()}createOfficeForm(){this.officeForm=this.formBuilder.group({name:[this.officeData.name,ce.required],openingDate:[this.officeData.openingDate&&new Date(this.officeData.openingDate),ce.required],externalId:[this.officeData.externalId]}),this.officeData.allowedParents.length&&this.officeForm.addControl("parentId",this.formBuilder.control(this.officeData.parentId,ce.required))}submit(){let t=this.officeForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.officeForm.value.openingDate;t.openingDate instanceof Date&&(t.openingDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.updateOffice(this.officeData.id,d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-office"]],decls:31,vars:23,consts:[["openingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","formControlName","name"],[3,"click"],["matInput","","required","","formControlName","openingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","parentId"],[3,"value"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,Fii,7,9,"mat-error"),r(),E(11,Rii,8,4,"mat-form-field"),l(12,"mat-form-field",5),R("click",function(){V(s);let u=ve(19);return q(u.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",6)(17,"mat-datepicker-toggle",7)(18,"mat-datepicker",null,0),E(20,Nii,7,9,"mat-error"),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",8),r()()(),l(26,"mat-card-actions",9)(27,"button",10),c(28),p(29,"translate"),r(),F(30,Lii,3,4,"button",11),r()()()()}if(n&2){let s=ve(19);a(2),g("formGroup",i.officeForm),a(5),h(m(8,14,"labels.inputs.Office")),a(3),I(i.officeForm.controls.name.hasError("required")?10:-1),a(),I(i.officeForm.contains("parentId")?11:-1),a(3),h(m(15,16,"labels.inputs.Opened On")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.officeForm.controls.openingDate.hasError("required")?20:-1),a(3),h(m(24,18,"labels.inputs.External ID")),a(4),g("routerLink",oe(22,Aii)),a(),v(" ",m(29,20,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_OFFICE")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var I6=()=>["Offices"],O6=()=>["Users"],A6=()=>["Groups"],F6=()=>["Loan Accounts"],k6=()=>["Savings Accounts"],B6=()=>["Fixed Deposit Accounts"],R6=()=>["Chart of Accounts"],N6=()=>["Share Accounts"],L6=()=>["Employees"],V6=()=>["Clients"],q6=()=>["Centers"],z6=()=>["Loan Repayments"],H6=()=>["Savings Transactions"],G6=()=>["Fixed Deposit Transactions"],j6=()=>["Recurring Deposit Transactions"],$6=()=>["Journal Entries"],U6=()=>["Guarantors"];function Vii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function qii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(0))}),r()}}function zii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,I6)),a(),v(" ",m(2,2,"labels.text.Download, Upload Offices Template")," "))}function Hii(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",5),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Vii,1,0,"fa-icon",7),E(7,qii,1,0,"fa-icon",8),E(8,zii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,I6)),a(2),g("routerLink",oe(9,I6)),a(),h(m(5,6,"labels.heading.Offices")),a(2),I(t.arrowBooleans[0]?-1:6),a(),I(t.arrowBooleans[0]?7:-1),a(),I(t.arrowBooleans[0]?8:-1)}}function Gii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function jii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(1))}),r()}}function $ii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,O6)),a(),v(" ",m(2,2,"labels.text.Download offices template and Upload office excel files")," "))}function Uii(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",11),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Gii,1,0,"fa-icon",7),E(7,jii,1,0,"fa-icon",8),E(8,$ii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,O6)),a(2),g("routerLink",oe(9,O6)),a(),h(m(5,6,"labels.heading.Users")),a(2),I(t.arrowBooleans[1]?-1:6),a(),I(t.arrowBooleans[1]?7:-1),a(),I(t.arrowBooleans[1]?8:-1)}}function Wii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function Qii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(2))}),r()}}function Yii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,A6)),a(),v(" ",m(2,2,"labels.text.Download groups template and Upload group excel files")," "))}function Jii(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",12),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Wii,1,0,"fa-icon",7),E(7,Qii,1,0,"fa-icon",8),E(8,Yii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,A6)),a(2),g("routerLink",oe(9,A6)),a(),h(m(5,6,"labels.heading.Groups")),a(2),I(t.arrowBooleans[2]?-1:6),a(),I(t.arrowBooleans[2]?7:-1),a(),I(t.arrowBooleans[2]?8:-1)}}function Kii(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function Xii(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(3))}),r()}}function Zii(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,F6)),a(),v(" ",m(2,2,"labels.text.Download loan accounts template and upload loan account excel files")," "))}function eni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",13),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Kii,1,0,"fa-icon",7),E(7,Xii,1,0,"fa-icon",8),E(8,Zii,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,F6)),a(2),g("routerLink",oe(9,F6)),a(),h(m(5,6,"labels.heading.Loan Accounts")),a(2),I(t.arrowBooleans[3]?-1:6),a(),I(t.arrowBooleans[3]?7:-1),a(),I(t.arrowBooleans[3]?8:-1)}}function tni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function ini(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(4))}),r()}}function nni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,k6)),a(),v(" ",m(2,2,"labels.text.Download savings accounts template and upload savings account excel files")," "))}function oni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,tni,1,0,"fa-icon",7),E(7,ini,1,0,"fa-icon",8),E(8,nni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,k6)),a(2),g("routerLink",oe(9,k6)),a(),h(m(5,6,"labels.heading.Savings Accounts")),a(2),I(t.arrowBooleans[4]?-1:6),a(),I(t.arrowBooleans[4]?7:-1),a(),I(t.arrowBooleans[4]?8:-1)}}function ani(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function rni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(5))}),r()}}function lni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,B6)),a(),v(" ",m(2,2,"labels.text.Download fixed deposit accounts template and upload fixed deposit account excel files")," "))}function sni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,ani,1,0,"fa-icon",7),E(7,rni,1,0,"fa-icon",8),E(8,lni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,B6)),a(2),g("routerLink",oe(9,B6)),a(),v(" ",m(5,6,"labels.heading.Fixed Deposit Accounts")," "),a(2),I(t.arrowBooleans[5]?-1:6),a(),I(t.arrowBooleans[5]?7:-1),a(),I(t.arrowBooleans[5]?8:-1)}}function cni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function pni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(6))}),r()}}function mni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,R6)),a(),v(" ",m(2,2,"labels.text.Download chart of accounts template and upload chart of account excel files")," "))}function dni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",13),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,cni,1,0,"fa-icon",7),E(7,pni,1,0,"fa-icon",8),E(8,mni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,R6)),a(2),g("routerLink",oe(9,R6)),a(),h(m(5,6,"labels.heading.Chart of Accounts")),a(2),I(t.arrowBooleans[6]?-1:6),a(),I(t.arrowBooleans[6]?7:-1),a(),I(t.arrowBooleans[6]?8:-1)}}function uni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function fni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(7))}),r()}}function hni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,N6)),a(),v(" ",m(2,2,"labels.text.Download share accounts template and upload share account excel files")," "))}function gni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,uni,1,0,"fa-icon",7),E(7,fni,1,0,"fa-icon",8),E(8,hni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,N6)),a(2),g("routerLink",oe(9,N6)),a(),h(m(5,6,"labels.heading.Share Accounts")),a(2),I(t.arrowBooleans[7]?-1:6),a(),I(t.arrowBooleans[7]?7:-1),a(),I(t.arrowBooleans[7]?8:-1)}}function _ni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function Cni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(8))}),r()}}function vni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,L6)),a(),v(" ",m(2,2,"labels.text.Download loan accounts template and upload loan account excel files")," "))}function xni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",11),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,_ni,1,0,"fa-icon",7),E(7,Cni,1,0,"fa-icon",8),E(8,vni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,L6)),a(2),g("routerLink",oe(9,L6)),a(),h(m(5,6,"labels.heading.Employees")),a(2),I(t.arrowBooleans[8]?-1:6),a(),I(t.arrowBooleans[8]?7:-1),a(),I(t.arrowBooleans[8]?8:-1)}}function bni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function yni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(9))}),r()}}function Sni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,V6)),a(),v(" ",m(2,2,"labels.text.Download clients template and upload clients excel files")," "))}function wni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",11),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,bni,1,0,"fa-icon",7),E(7,yni,1,0,"fa-icon",8),E(8,Sni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,V6)),a(2),g("routerLink",oe(9,V6)),a(),h(m(5,6,"labels.heading.Clients")),a(2),I(t.arrowBooleans[9]?-1:6),a(),I(t.arrowBooleans[9]?7:-1),a(),I(t.arrowBooleans[9]?8:-1)}}function Pni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function Tni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(10))}),r()}}function Mni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,q6)),a(),v(" ",m(2,2,"labels.text.Download centers template and upload centers excel files")," "))}function Dni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",12),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Pni,1,0,"fa-icon",7),E(7,Tni,1,0,"fa-icon",8),E(8,Mni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,q6)),a(2),g("routerLink",oe(9,q6)),a(),h(m(5,6,"labels.heading.Centers")),a(2),I(t.arrowBooleans[10]?-1:6),a(),I(t.arrowBooleans[10]?7:-1),a(),I(t.arrowBooleans[10]?8:-1)}}function Eni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function Ini(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(11))}),r()}}function Oni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,z6)),a(),v(" ",m(2,2,"labels.text.Download loan repayments template and upload loan repayment excel files")," "))}function Ani(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Eni,1,0,"fa-icon",7),E(7,Ini,1,0,"fa-icon",8),E(8,Oni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,z6)),a(2),g("routerLink",oe(9,z6)),a(),h(m(5,6,"labels.heading.Loan Repayments")),a(2),I(t.arrowBooleans[11]?-1:6),a(),I(t.arrowBooleans[11]?7:-1),a(),I(t.arrowBooleans[11]?8:-1)}}function Fni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function kni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(12))}),r()}}function Bni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,H6)),a(),v(" ",m(2,2,"labels.text.Download savings transactions template and upload savings transaction excel files")," "))}function Rni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Fni,1,0,"fa-icon",7),E(7,kni,1,0,"fa-icon",8),E(8,Bni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,H6)),a(2),g("routerLink",oe(9,H6)),a(),v(" ",m(5,6,"labels.heading.Savings Transactions")," "),a(2),I(t.arrowBooleans[12]?-1:6),a(),I(t.arrowBooleans[12]?7:-1),a(),I(t.arrowBooleans[12]?8:-1)}}function Nni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function Lni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(13))}),r()}}function Vni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,G6)),a(),v(" ",m(2,2,"labels.text.Download fixed deposit transactions template and upload fixed deposit transaction excel files")," "))}function qni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Nni,1,0,"fa-icon",7),E(7,Lni,1,0,"fa-icon",8),E(8,Vni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,G6)),a(2),g("routerLink",oe(9,G6)),a(),v(" ",m(5,6,"labels.heading.Fixed Deposit Transactions")," "),a(2),I(t.arrowBooleans[13]?-1:6),a(),I(t.arrowBooleans[13]?7:-1),a(),I(t.arrowBooleans[13]?8:-1)}}function zni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function Hni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(14))}),r()}}function Gni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,j6)),a(),v(" ",m(2,2,"labels.text.Download recurring deposit transactions template and upload recurring deposit transaction excel files")," "))}function jni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",14),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,zni,1,0,"fa-icon",7),E(7,Hni,1,0,"fa-icon",8),E(8,Gni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,j6)),a(2),g("routerLink",oe(9,j6)),a(),v(" ",m(5,6,"labels.heading.Recurring Deposit Transactions")," "),a(2),I(t.arrowBooleans[14]?-1:6),a(),I(t.arrowBooleans[14]?7:-1),a(),I(t.arrowBooleans[14]?8:-1)}}function $ni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function Uni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(15))}),r()}}function Wni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,$6)),a(),v(" ",m(2,2,"labels.text.Download journal entries template and upload journal entries excel files")," "))}function Qni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",15),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,$ni,1,0,"fa-icon",7),E(7,Uni,1,0,"fa-icon",8),E(8,Wni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,$6)),a(2),g("routerLink",oe(9,$6)),a(),h(m(5,6,"labels.heading.Journal Entries")),a(2),I(t.arrowBooleans[15]?-1:6),a(),I(t.arrowBooleans[15]?7:-1),a(),I(t.arrowBooleans[15]?8:-1)}}function Yni(e,o){if(e&1){let t=Y();l(0,"fa-icon",9),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function Jni(e,o){if(e&1){let t=Y();l(0,"fa-icon",10),R("click",function(){V(t);let i=w(2);return q(i.arrowBooleansToggle(16))}),r()}}function Kni(e,o){e&1&&(l(0,"p",6),c(1),p(2,"translate"),r()),e&2&&(g("routerLink",oe(4,U6)),a(),v(" ",m(2,2,"labels.text.Download guarantors template and upload guarantor excel files")," "))}function Xni(e,o){if(e&1&&(l(0,"mat-list-item")(1,"mat-icon",4),b(2,"fa-icon",15),r(),l(3,"h4",6),c(4),p(5,"translate"),r(),E(6,Yni,1,0,"fa-icon",7),E(7,Jni,1,0,"fa-icon",8),E(8,Kni,3,5,"p",6),r()),e&2){let t=w();a(),g("routerLink",oe(8,U6)),a(2),g("routerLink",oe(9,U6)),a(),h(m(5,6,"labels.heading.Guarantors")),a(2),I(t.arrowBooleans[16]?-1:6),a(),I(t.arrowBooleans[16]?7:-1),a(),I(t.arrowBooleans[16]?8:-1)}}var sw=(()=>{class e{constructor(){this.arrowBooleans=new Array(17).fill(!1)}arrowBooleansToggle(t){this.arrowBooleans[t]=!this.arrowBooleans[t]}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-bulk-import"]],decls:24,vars:17,consts:[[1,"container"],[1,"layout-row","responsive-column","gap-20px"],[1,"flex-50"],[4,"mifosxHasPermission"],["matListIcon","",3,"routerLink"],["icon","building","size","sm"],["matLine","",3,"routerLink"],["icon","arrow-down","size","md"],["icon","arrow-up","size","md"],["icon","arrow-down","size","md",3,"click"],["icon","arrow-up","size","md",3,"click"],["icon","user","size","sm"],["icon","users","size","sm"],["icon","money-bill-alt","size","sm"],["icon","briefcase","size","sm"],["icon","chevron-right","size","sm"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div",1)(3,"div",2)(4,"mat-nav-list"),F(5,Hii,9,10,"mat-list-item",3)(6,Uii,9,10,"mat-list-item",3)(7,Jii,9,10,"mat-list-item",3)(8,eni,9,10,"mat-list-item",3)(9,oni,9,10,"mat-list-item",3)(10,sni,9,10,"mat-list-item",3)(11,dni,9,10,"mat-list-item",3)(12,gni,9,10,"mat-list-item",3),r()(),l(13,"div",2)(14,"mat-nav-list"),F(15,xni,9,10,"mat-list-item",3)(16,wni,9,10,"mat-list-item",3)(17,Dni,9,10,"mat-list-item",3)(18,Ani,9,10,"mat-list-item",3)(19,Rni,9,10,"mat-list-item",3)(20,qni,9,10,"mat-list-item",3)(21,jni,9,10,"mat-list-item",3)(22,Qni,9,10,"mat-list-item",3)(23,Xni,9,10,"mat-list-item",3),r()()()()()),n&2&&(a(5),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(3),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"),a(),g("mifosxHasPermission","READ_OFFICE"))},dependencies:[ue,fe,Oe,Ue,Ke,pa,Vo,Yo,ke,ca,he],encapsulation:2})}}return e})();var cw=[{name:"Offices",entityType:"offices",urlSuffix:"/offices",permission:"READ_OFFICE",formFields:0},{name:"Users",entityType:"users",urlSuffix:"/users",permission:"READ_CLIENT",formFields:2},{name:"Groups",entityType:"groups",urlSuffix:"/groups",permission:"READ_CLIENT",formFields:2},{name:"Centers",entityType:"centers",urlSuffix:"/centers",permission:"READ_CENTERS",formFields:2},{name:"Clients",entityType:"client",urlSuffix:"/clients",permission:"READ_CLIENT",formFields:3},{name:"Employees",entityType:"staff",urlSuffix:"/staff",permission:"READ_CLIENT",formFields:1},{name:"Guarantors",entityType:"guarantors",urlSuffix:"/loans/1/guarantors",permission:"READ_CLIENT",formFields:1},{name:"Journal Entries",entityType:"gljournalentries",urlSuffix:"/journalentries",permission:"READ_CLIENT",formFields:1},{name:"Loan Accounts",entityType:"loans",urlSuffix:"/loans",permission:"READ_CLIENT",formFields:2},{name:"Savings Accounts",entityType:"savingsaccount",urlSuffix:"/savingsaccounts",permission:"READ_CLIENT",formFields:2},{name:"Fixed Deposit Accounts",entityType:"fixeddepositaccounts",urlSuffix:"/fixeddepositaccounts",permission:"READ_CLIENT",formFields:2},{name:"Reccuring Deposit Accounts",entityType:"recurringdeposits",urlSuffix:"/recurringdepositaccounts",permission:"READ_CLIENT",formFields:2},{name:"Chart of Accounts",entityType:"chartofaccounts",urlSuffix:"/glaccounts",permission:"READ_CLIENT",formFields:2},{name:"Share Accounts",entityType:"shareaccounts",urlSuffix:"/accounts/share",permission:"READ_CLIENT",formFields:1},{name:"Loan Repayments",entityType:"loantransactions",urlSuffix:"/loans/repayments",permission:"READ_CLIENT",formFields:1},{name:"Savings Transactions",entityType:"savingstransactions",urlSuffix:"/savingsaccounts/transactions",permission:"READ_CLIENT",formFields:1},{name:"Fixed Deposit Transactions",entityType:"fixeddeposittransactions",urlSuffix:"/fixeddepositaccounts/transaction",permission:"READ_CLIENT",formFields:1},{name:"Recurring Deposit Transactions",entityType:"recurringdepositstransactions",urlSuffix:"/recurringdepositaccounts/transactions",permission:"READ_CLIENT",formFields:1}];var Zni=["importsTable"],eoi=()=>[10,25,50,100];function toi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function ioi(e,o){if(e&1&&(l(0,"div")(1,"mat-form-field",30)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",31),Se(6,toi,2,2,"mat-option",32,Pe),r()()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Office")),a(3),we(t.officeData)}}function noi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function ooi(e,o){if(e&1&&(l(0,"div")(1,"mat-form-field",30)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",33),Se(6,noi,2,2,"mat-option",32,Pe),r()()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Staff")),a(3),we(t.staffData)}}function aoi(e,o){e&1&&(l(0,"div")(1,"mat-form-field",30)(2,"mat-label"),c(3),p(4,"translate"),r(),l(5,"mat-select",34)(6,"mat-option",35),c(7),p(8,"translate"),r(),l(9,"mat-option",36),c(10),p(11,"translate"),r()()()()),e&2&&(a(3),h(m(4,3,"labels.inputs.Legal Form")),a(4),h(m(8,5,"labels.inputs.Entity")),a(3),h(m(11,7,"labels.inputs.Person")))}function roi(e,o){if(e&1){let t=Y();l(0,"button",13),R("click",function(){V(t);let i=w();return q(i.downloadTemplate())}),b(1,"i",37),c(2),p(3,"translate"),r()}e&2&&(a(2),v("\xA0\xA0",m(3,1,"labels.buttons.Download")," "))}function loi(e,o){e&1&&(l(0,"mat-hint"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.Please retain the value Entity/Person in the filename.")))}function soi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function coi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function poi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Import Time")))}function moi(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.importTime))}}function doi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.End Time")))}function uoi(e,o){if(e&1&&(l(0,"td",39),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.endTime))}}function foi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Completed")))}function hoi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.completed)}}function goi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Records")))}function _oi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalRecords)}}function Coi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Success Count")))}function voi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.successCount)}}function xoi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Failure Count")))}function boi(e,o){if(e&1&&(l(0,"td",39),c(1),r()),e&2){let t=o.$implicit;a(),h(t.failureCount)}}function yoi(e,o){e&1&&(l(0,"th",38),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Download")))}function Soi(e,o){if(e&1){let t=Y();l(0,"button",41),R("click",function(){V(t);let i=w().$implicit,s=w();return q(s.downloadDocument(i.name,i.importId))}),b(1,"fa-icon",42),r()}}function woi(e,o){e&1&&(l(0,"td",39),F(1,Soi,2,0,"button",40),r()),e&2&&(a(),g("mifosxHasPermission","READ_DOCUMENT"))}function Poi(e,o){e&1&&b(0,"tr",43)}function Toi(e,o){e&1&&b(0,"tr",44)}var pw=(()=>{class e{constructor(){this.route=T(Ie),this.formBuilder=T(nt),this.organizationService=T(li),this.bulkImportsArray=cw,this.bulkImport={},this.dataSource=new Wt,this.displayedColumns=["name","importTime","endTime","completed","totalRecords","successCount","failureCount","download"],this.bulkImport.name=this.route.snapshot.params["import-name"],this.route.data.subscribe(t=>{this.officeData=t.offices,this.importsData=t.imports})}ngOnInit(){this.bulkImport=this.bulkImportsArray.find(t=>t.name===this.bulkImport.name),this.createBulkImportForm(),this.buildDependencies(),this.setImports()}createBulkImportForm(){this.bulkImportForm=this.formBuilder.group({officeId:[""],staffId:[""],legalForm:[""]})}buildDependencies(){this.bulkImportForm.get("officeId").valueChanges.subscribe(t=>{this.bulkImport.formFields>=2&&this.organizationService.getStaff(t).subscribe(n=>{this.staffData=n})})}setImports(){this.dataSource=new Wt(this.importsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}downloadTemplate(){let t=this.bulkImportForm.get("officeId").value,n=this.bulkImportForm.get("staffId").value,i="";switch(this.bulkImportForm.get("legalForm").value){case"Person":i="CLIENTS_PERSON";break;case"Entity":i="CLIENTS_ENTITY";break}this.organizationService.getImportTemplate(this.bulkImport.urlSuffix,t,n,i).subscribe(s=>{let d=s.headers.get("Content-Type"),u=new Blob([s.body],{type:d}),f=new File([u],"template.xls",{type:d});window.open(window.URL.createObjectURL(f))})}onFileSelect(t){t.target.files.length>0&&(this.template=t.target.files[0])}uploadTemplate(){let t="";this.bulkImport.name==="Clients"&&(this.template.name.toLowerCase().includes("entity")?t="CLIENTS_ENTITY":this.template.name.toLowerCase().includes("person")&&(t="CLIENTS_PERSON")),this.organizationService.uploadImportDocument(this.template,this.bulkImport.urlSuffix,t).subscribe(()=>{})}refreshDocuments(){this.organizationService.getImports(this.bulkImport.entityType).subscribe(t=>{this.dataSource=new Wt(t),this.importsTableRef.renderRows()})}downloadDocument(t,n){this.organizationService.getImportDocument(n).subscribe(i=>{let s=i.headers.get("Content-Type"),d=new Blob([i.body],{type:s}),u=new File([d],t,{type:s});window.open(window.URL.createObjectURL(u))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-bulk-import"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(Zni,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.importsTableRef=s.first)}},decls:70,vars:29,consts:[["importsTable",""],[1,"container"],[1,"gap-2percent","m-b-20"],[1,"layout-column","gap-2percent","flex-50"],[3,"formGroup"],[1,"flex-13"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["flex","75%","acceptFilter",".xls,.xlsx",3,"change"],[1,"flex-spacer"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"fa","fa-upload"],[1,"documents"],[1,"m-b-10","layout-align-end"],["mat-raised-button","","color","primary",3,"click"],[1,"fa","fa-repeat"],[1,"imports-table","mat-elevation-z1"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","importTime"],["matColumnDef","endTime"],["matColumnDef","completed"],["matColumnDef","totalRecords"],["matColumnDef","successCount"],["matColumnDef","failureCount"],["matColumnDef","download"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"flex-fill"],["formControlName","officeId"],[3,"value"],["formControlName","staffId"],["required","","formControlName","legalForm"],["value","Entity"],["value","Person"],[1,"fa","fa-download"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-icon-button","",3,"click",4,"mifosxHasPermission"],["mat-icon-button","",3,"click"],["icon","cloud-download-alt"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"div",2)(2,"mat-card",3)(3,"h3")(4,"strong"),c(5),p(6,"translate"),r()(),l(7,"form",4)(8,"mat-card-content"),E(9,ioi,8,3,"div"),E(10,ooi,8,3,"div"),E(11,aoi,12,9,"div"),r()(),l(12,"div",5),F(13,roi,4,3,"button",6),r()(),l(14,"mat-card",3)(15,"h3")(16,"strong"),c(17),r()(),l(18,"h4"),c(19),p(20,"translate"),r(),l(21,"mifosx-file-upload",7),R("change",function(u){return V(s),q(i.onFileSelect(u))}),r(),E(22,loi,3,3,"mat-hint"),b(23,"div",8),l(24,"div",5)(25,"button",9),R("click",function(){return V(s),q(i.uploadTemplate())}),b(26,"i",10),c(27),p(28,"translate"),r()()()(),l(29,"mat-card")(30,"div")(31,"h3",11)(32,"strong"),c(33),p(34,"translate"),r()()(),l(35,"div",12)(36,"button",13),R("click",function(){return V(s),q(i.refreshDocuments())}),b(37,"i",14),c(38),p(39,"translate"),r()(),l(40,"div",15)(41,"table",16,0),X(43,17),F(44,soi,3,3,"th",18)(45,coi,2,1,"td",19),Z(),X(46,20),F(47,poi,3,3,"th",18)(48,moi,3,3,"td",19),Z(),X(49,21),F(50,doi,3,3,"th",18)(51,uoi,3,3,"td",19),Z(),X(52,22),F(53,foi,3,3,"th",18)(54,hoi,2,1,"td",19),Z(),X(55,23),F(56,goi,3,3,"th",18)(57,_oi,2,1,"td",19),Z(),X(58,24),F(59,Coi,3,3,"th",18)(60,voi,2,1,"td",19),Z(),X(61,25),F(62,xoi,3,3,"th",18)(63,boi,2,1,"td",19),Z(),X(64,26),F(65,yoi,3,3,"th",18)(66,woi,2,1,"td",19),Z(),F(67,Poi,1,0,"tr",27)(68,Toi,1,0,"tr",28),r()(),b(69,"mat-paginator",29),r()()}n&2&&(a(5),le("",i.bulkImport.name," ",m(6,18,"labels.heading.Template")),a(2),g("formGroup",i.bulkImportForm),a(2),I(i.bulkImport.formFields>=1?9:-1),a(),I(i.bulkImport.formFields>=2?10:-1),a(),I(i.bulkImport.formFields===3?11:-1),a(2),g("mifosxHasPermission",i.bulkImport.permission),a(4),h(i.bulkImport.name),a(2),h(m(20,20,"labels.heading.Select Excel File")),a(3),I(i.bulkImport.name==="Clients"?22:-1),a(3),g("disabled",!i.template),a(2),v("\xA0\xA0",m(28,22,"labels.buttons.Upload")," "),a(6),h(m(34,24,"labels.heading.Documents")),a(5),v("\xA0\xA0",m(39,26,"labels.buttons.Refresh")," "),a(3),g("dataSource",i.dataSource),a(26),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(28,eoi)))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Ue,Je,Fe,Be,qa,gt,ft,xe,Ke,wp,_t,It,xt,vt,bt,ri,Ct,yt,wi,ke,St,Pt,wt,Tt,kt,Pi,he],styles:[".container[_ngcontent-%COMP%]{padding:24px;max-width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{display:flex;flex-direction:row;gap:24px;margin-bottom:24px;align-items:stretch}@media (width <= 768px){.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%]{flex-direction:column}}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{flex:1;padding:24px;display:flex;flex-direction:column;border-radius:20px;min-height:400px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] h4[_ngcontent-%COMP%]{font-weight:400;margin:16px 0 12px;color:#555}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%]{padding:0;margin-bottom:20px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-card-content[_ngcontent-%COMP%] mat-form-field[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%]{margin-top:auto;padding-top:16px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-13[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:12px 24px;font-weight:500;width:100%}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex-spacer[_ngcontent-%COMP%]{flex:1;min-height:20px}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mifosx-file-upload[_ngcontent-%COMP%]{margin:16px 0;flex-grow:1;padding-top:20px!important}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] mat-hint[_ngcontent-%COMP%]{margin:12px 0;font-size:12px;color:#666}.container[_ngcontent-%COMP%] .gap-2percent[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .flex.cover[_ngcontent-%COMP%]{flex-grow:1}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child{padding:24px;border-radius:20px;position:relative}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .documents[_ngcontent-%COMP%]{margin:16px 0 20px;font-weight:500;color:#333}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%]{position:absolute;right:24px;top:24px;margin-bottom:0}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]:last-child .m-b-10[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{padding:8px 16px}.imports-table[_ngcontent-%COMP%]{overflow:auto;margin-top:16px;border-radius:8px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:500;padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:16px 12px}.imports-table[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{background-color:#0000000a}mat-paginator[_ngcontent-%COMP%]{margin-top:16px}"]})}}return e})();var Moi=()=>["edit"];function Doi(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Moi)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function Eoi(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w();return q(i.deleteCriteria())}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}function Ioi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function Ooi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function Aoi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Min Age")))}function Foi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minAge)}}function koi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Max Age")))}function Boi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maxAge)}}function Roi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Percentage")))}function Noi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.provisioningPercentage)}}function Loi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Liability Account")))}function Voi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.liabilityName)}}function qoi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function zoi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.expenseName)}}function Hoi(e,o){e&1&&b(0,"tr",25)}function Goi(e,o){e&1&&b(0,"tr",26)}var mw=(()=>{class e{constructor(){this.organizationService=T(li),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.loanProducts="",this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount"],this.route.data.subscribe(t=>{this.provisioningData=t.loanProvisioningCriteria})}ngOnInit(){this.setLoanProvisioningSelectedCriteria()}setLoanProvisioningSelectedCriteria(){this.dataSource=new Wt(this.provisioningData.definitions),this.provisioningData.loanProducts&&this.provisioningData.loanProducts.length>0?this.loanProducts=this.provisioningData.loanProducts.filter(t=>t&&t.name).map(t=>t.name).join(", "):this.loanProducts=""}deleteCriteria(){this.dialog.open(vi,{data:{deleteContext:`Loan Provisioning Criteria id: ${this.provisioningData.criteriaId}`}}).afterClosed().subscribe(n=>{n.delete&&this.organizationService.deleteProvisioningCriteria(this.provisioningData.criteriaId).subscribe(()=>{this.router.navigate(["/organization/provisioning-criteria"])},i=>{console.error("Failed to delete provisioning criteria:",i)})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-loan-provisioning-criteria"]],decls:38,vars:11,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap","align-center"],[1,"mat-h2","criteria-title"],[1,"loan-product-label"],[3,"inset"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Doi,4,5,"button",1)(2,Eoi,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"h2",5),c(8),r(),l(9,"span",6)(10,"strong"),c(11),p(12,"translate"),r(),l(13,"span"),c(14),r()()(),b(15,"mat-divider",7),l(16,"div")(17,"table",8),X(18,9),F(19,Ioi,3,3,"th",10)(20,Ooi,2,1,"td",11),Z(),X(21,12),F(22,Aoi,3,3,"th",10)(23,Foi,2,1,"td",11),Z(),X(24,13),F(25,koi,3,3,"th",10)(26,Boi,2,1,"td",11),Z(),X(27,14),F(28,Roi,3,3,"th",10)(29,Noi,2,1,"td",11),Z(),X(30,15),F(31,Loi,3,3,"th",10)(32,Voi,2,1,"td",11),Z(),X(33,16),F(34,qoi,3,3,"th",10)(35,zoi,2,1,"td",11),Z(),F(36,Hoi,1,0,"tr",17)(37,Goi,1,0,"tr",18),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_CRITERIA"),a(),g("mifosxHasPermission","DELETE_CRITERIA"),a(6),v(" ",i.provisioningData.criteriaName," "),a(3),v("",m(12,9,"labels.inputs.Loan Product"),":"),a(3),h(i.loanProducts),a(),g("inset",!0),a(2),g("dataSource",i.dataSource),a(19),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Ri,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he],styles:[".criteria-title[_ngcontent-%COMP%]{margin-bottom:0;display:inline;vertical-align:middle}.loan-product-label[_ngcontent-%COMP%]{margin-left:24px;font-size:1.1em;vertical-align:middle}table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.loanProduct[_ngcontent-%COMP%]{padding:10px 0}"]})}}return e})();function joi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function $oi(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),r(),b(3,"input",14),F(4,joi,6,7,"mat-error",10),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function Uoi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Woi(e,o){if(e&1){let t=Y();l(0,"mat-form-field",15),R("click",function(){V(t);let i=ve(6);return q(i.open())}),l(1,"mat-label"),c(2),r(),b(3,"input",16)(4,"mat-datepicker-toggle",17)(5,"mat-datepicker",null,0),F(7,Uoi,6,7,"mat-error",10),r()}if(e&2){let t=ve(6),n=w(2).$implicit,i=w();a(2),h(n.label),a(),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t)("formControlName",n.name),a(),g("for",t),a(3),g("ngIf",i.ReportForm.controls[n.name].hasError("required"))}}function Qoi(e,o){if(e&1&&(l(0,"mat-option",20),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function Yoi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Joi(e,o){if(e&1&&(l(0,"mat-form-field",13)(1,"mat-label"),c(2),r(),l(3,"mat-select",18),F(4,Qoi,2,2,"mat-option",19),r(),F(5,Yoi,6,7,"mat-error",10),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngForOf",t.selectOptions),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function Koi(e,o){e&1&&(X(0),F(1,$oi,5,3,"mat-form-field",11)(2,Woi,8,7,"mat-form-field",12)(3,Joi,6,4,"mat-form-field",11),Z()),e&2&&(a(),g("ngSwitchCase","text"),a(),g("ngSwitchCase","date"),a(),g("ngSwitchCase","select"))}function Xoi(e,o){if(e&1&&(X(0,9),F(1,Koi,4,3,"ng-container",10),Z()),e&2){let t=o.$implicit,n=w();g("ngSwitch",t.displayType),a(),g("ngIf",n.ReportForm.contains(t.name))}}var xh=(()=>{class e{constructor(){this.reportsService=T(lr),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.ReportForm=new Is({}),this.parentParameters=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.templateParameters=new bi}ngOnInit(){this.maxDate=this.settingsService.businessDate}ngOnChanges(){this.paramData&&(this.ReportForm=new Is({}),this.reportName=this.paramData.reportName,this.paramData=this.paramData.response,this.createRunReportForm())}get businessRuleFormValue(){let t=this.formatUserResponse(this.ReportForm.value,!1);return t.reportName=this.reportName,{paramValue:t}}createRunReportForm(){this.paramData.forEach(t=>{if(!t.parentParameterName)this.ReportForm.addControl(t.name,new it("",ce.required)),t.displayType==="select"&&this.fetchSelectOptions(t,t.name);else{let n=this.paramData.find(i=>i.name===t.parentParameterName);n.childParameters.push(t),this.updateParentParameters(n)}}),this.setChildControls()}updateParentParameters(t){let n=this.parentParameters.map(i=>i.name);if(!n.includes(t.name))this.parentParameters.push(t);else{let i=n.indexOf(t.name);this.parentParameters[i]=t}}setChildControls(){this.parentParameters.forEach(t=>{this.ReportForm.get(t.name).valueChanges.subscribe(n=>{t.childParameters.forEach(i=>{if(i.displayType==="none"?this.ReportForm.addControl(i.name,new it(i.defaultVal)):this.ReportForm.addControl(i.name,new it("",ce.required)),i.displayType==="select"){let s=`${i.name}?${t.inputName}=${n.id}`;this.fetchSelectOptions(i,s)}})})})}fetchSelectOptions(t,n){this.reportsService.getSelectOptions(n).subscribe(i=>{t.selectOptions=i,t.selectAll==="Y"&&t.selectOptions.push({id:"-1",name:"All"})})}formatUserResponse(t,n){let i={},s;for(let[d,u]of Object.entries(t)){let f=this.paramData.find(_=>_.name===d);switch(s=n?f.inputName:f.variable,f.displayType){case"text":i[s]=u;break;case"select":i[s]=u.id;break;case"date":let _=this.settingsService.dateFormat;i[s]=this.dateUtils.formatDate(u,_);break;case"none":i[s]=u;break}}return i}getResponseHeaders(){let t=this.formatUserResponse(this.ReportForm.value,!0);this.reportsService.getRunReportData(this.reportName,t).subscribe(n=>{this.templateParameters.emit(n.columnHeaders)},n=>{this.templateParameters.emit(null)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-business-rule-parameters"]],inputs:{paramData:"paramData"},outputs:{templateParameters:"templateParameters"},features:[Uo],decls:12,vars:9,consts:[["runReportDatePicker",""],[1,"layout-column"],[1,"flex-98"],[1,"mat-h3","flex-98"],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"layout-align-center","margin-t"],["mat-raised-button","","matStepperNext","","color","primary",3,"click","disabled"],[3,"ngSwitch"],[4,"ngIf"],["class","flex-48",4,"ngSwitchCase"],["class","flex-48",3,"click",4,"ngSwitchCase"],[1,"flex-48"],["matInput","","required","",3,"formControlName"],[1,"flex-48",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,i){n&1&&(l(0,"div",1),b(1,"mat-divider",2),l(2,"h3",3),c(3),p(4,"translate"),r(),l(5,"form",4)(6,"div",5),F(7,Xoi,2,2,"ng-container",6),r()()(),l(8,"div",7)(9,"button",8),R("click",function(){return i.getResponseHeaders()}),c(10),p(11,"translate"),r()()),n&2&&(a(3),h(m(4,5,"labels.heading.Business Rule Parameters")),a(2),g("formGroup",i.ReportForm),a(2),g("ngForOf",i.paramData),a(2),g("disabled",!i.ReportForm.valid),a(),v(" ",m(11,7,"labels.buttons.Get Parameters")," "))},dependencies:[ue,ts,Js,Ks,Xs,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ri,Ji,he],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function Zoi(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function eai(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",11),Se(5,Zoi,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.SMS Provider")),a(3),we(t.smsProviders)}}function tai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function iai(e,o){if(e&1){let t=Y();l(0,"mat-form-field",12),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",13)(5,"mat-datepicker-toggle",14)(6,"mat-datepicker",null,0),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,8,"labels.inputs.Schedule Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(4),le(" ",m(10,10,"labels.inputs.Schedule Date")," ",m(11,12,"labels.commons.is")," "),a(4),h(m(14,14,"labels.commons.required"))}}function nai(e,o){e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",15)(5,"mat-option",6),c(6),p(7,"translate"),r(),l(8,"mat-option",6),c(9),p(10,"translate"),r(),l(11,"mat-option",6),c(12),p(13,"translate"),r(),l(14,"mat-option",6),c(15),p(16,"translate"),r()(),l(17,"mat-error"),c(18),p(19,"translate"),p(20,"translate"),l(21,"strong"),c(22),p(23,"translate"),r()()()),e&2&&(a(2),h(m(3,12,"labels.inputs.Repeats")),a(3),g("value",1),a(),h(m(7,14,"labels.inputs.Daily")),a(2),g("value",2),a(),h(m(10,16,"labels.inputs.Weekly")),a(2),g("value",3),a(),h(m(13,18,"labels.inputs.Monthly")),a(2),g("value",4),a(),h(m(16,20,"labels.inputs.Yearly")),a(3),le(" ",m(19,22,"labels.inputs.Repetition Frequency")," ",m(20,24,"labels.commons.is")," "),a(4),h(m(23,26,"labels.commons.required")))}function oai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function aai(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,oai,2,2,"mat-option",6,Pe),r(),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(2),h(m(3,4,"labels.inputs.Repetition Interval")),a(3),we(t.repetitionIntervals),a(3),le(" ",m(9,6,"labels.inputs.Repetition Interval")," ",m(10,8,"labels.commons.is")," "),a(4),h(m(13,10,"labels.commons.required"))}}function rai(e,o){e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",17)(5,"mat-option",18),c(6),p(7,"translate"),r(),l(8,"mat-option",19),c(9),p(10,"translate"),r(),l(11,"mat-option",20),c(12),p(13,"translate"),r(),l(14,"mat-option",21),c(15),p(16,"translate"),r(),l(17,"mat-option",22),c(18),p(19,"translate"),r(),l(20,"mat-option",23),c(21),p(22,"translate"),r(),l(23,"mat-option",24),c(24),p(25,"translate"),r()(),l(26,"mat-error"),c(27),p(28,"translate"),l(29,"strong"),c(30),p(31,"translate"),r(),c(32),p(33,"translate"),r()()),e&2&&(a(2),h(m(3,11,"labels.inputs.Repeats on Day")),a(4),h(m(7,13,"labels.inputs.Monday")),a(3),h(m(10,15,"labels.inputs.Tuesday")),a(3),h(m(13,17,"labels.inputs.Wednesday")),a(3),h(m(16,19,"labels.inputs.Thursday")),a(3),h(m(19,21,"labels.inputs.Friday")),a(3),h(m(22,23,"labels.inputs.Saturday")),a(3),h(m(25,25,"labels.inputs.Sunday")),a(3),v(" ",m(28,27,"labels.inputs.At least")," "),a(3),h(m(31,29,"labels.inputs.one")),a(2),v(" ",m(33,31,"labels.inputs.day must be selected")," "))}function lai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.reportId),a(),v(" ",t.reportName," ")}}function sai(e,o){e&1&&(l(0,"div",9)(1,"button",25),b(2,"fa-icon",26),c(3),p(4,"translate"),r(),l(5,"button",27),c(6),p(7,"translate"),b(8,"fa-icon",28),r()()),e&2&&(a(3),v(" ",m(4,2,"labels.buttons.Previous")," "),a(3),v(" ",m(7,4,"labels.buttons.Next")," "))}function cai(e,o){if(e&1){let t=Y();l(0,"mifosx-business-rule-parameters",29),R("templateParameters",function(i){V(t);let s=w();return q(s.passParameters(i))}),r()}if(e&2){let t=w();g("paramData",t.paramData)}}var bh=(()=>{class e{constructor(){this.formBuilder=T(nt),this.reportService=T(lr),this.minDate=new Date,this.maxDate=new Date(new Date().setFullYear(new Date().getFullYear()+10)),this.templateParameters=new bi,this.createSMSCampaignDetailsForm(),this.buildDependencies()}ngOnInit(){this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions}get smsCampaignFormGroup(){let t;return this.businessRuleParametersComponent?t=new Is({smsCampaign:this.smsCampaignDetailsForm,businessRule:this.businessRuleParametersComponent.ReportForm}):t=new Is({smsCampaign:this.smsCampaignDetailsForm}),t}get smsCampaignFormGroupValue(){return this.businessRuleParametersComponent?at(at({},this.smsCampaignDetailsForm.value),this.businessRuleParametersComponent.businessRuleFormValue):this.smsCampaignDetailsForm.value}passParameters(t){this.templateParameters.emit(t)}createSMSCampaignDetailsForm(){this.smsCampaignDetailsForm=this.formBuilder.group({campaignName:["",ce.required],providerId:[null],triggerType:["",ce.required],runReportId:["",ce.required],isNotification:[!1]})}buildDependencies(){this.smsCampaignDetailsForm.get("isNotification").valueChanges.subscribe(t=>{t?this.smsCampaignDetailsForm.removeControl("providerId"):this.smsCampaignDetailsForm.addControl("providerId",new it(null))}),this.smsCampaignDetailsForm.get("runReportId").valueChanges.subscribe(t=>{if(t){let n=this.businessRules.find(i=>i.reportId===t);this.reportService.getReportParams(n.reportName).subscribe(i=>{this.paramData={response:i,reportName:n.reportName}})}}),this.smsCampaignDetailsForm.get("triggerType").valueChanges.subscribe(t=>{this.templateParameters.emit(null),this.businessRules=this.smsCampaignTemplate.businessRulesOptions,this.smsCampaignDetailsForm.controls.runReportId.value&&this.smsCampaignDetailsForm.get("runReportId").patchValue(""),t===3?this.businessRules=this.businessRules.filter(n=>n.reportSubType==="Triggered"):this.businessRules=this.businessRules.filter(n=>n.reportSubType!=="Triggered"),t===2?(this.smsCampaignDetailsForm.addControl("recurrenceStartDate",new it("",ce.required)),this.smsCampaignDetailsForm.addControl("frequency",new it("",ce.required)),this.smsCampaignDetailsForm.addControl("interval",new it("",ce.required)),this.smsCampaignDetailsForm.get("frequency").valueChanges.subscribe(n=>{switch(this.smsCampaignDetailsForm.removeControl("repeatsOnDay"),n){case 1:this.repetitionIntervals=["1","2","3"];break;case 2:this.repetitionIntervals=["1","2","3"],this.smsCampaignDetailsForm.addControl("repeatsOnDay",new it("",ce.required));break;case 3:this.repetitionIntervals=["1","2","3","4","5","6","7","8","9","10","11"];break;case 4:this.repetitionIntervals=["1","2","3","4","5"];break}})):(this.smsCampaignDetailsForm.removeControl("recurrenceStartDate"),this.smsCampaignDetailsForm.removeControl("frequency"),this.smsCampaignDetailsForm.removeControl("interval"),this.smsCampaignDetailsForm.removeControl("repeatsOnDay"))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-sms-campaign-step"]],viewQuery:function(n,i){if(n&1&&Ee(xh,5),n&2){let s;Te(s=Me())&&(i.businessRuleParametersComponent=s.first)}},inputs:{smsCampaignTemplate:"smsCampaignTemplate"},outputs:{templateParameters:"templateParameters"},decls:52,vars:47,consts:[["recurrenceStartDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","campaignName","required",""],["formControlName","triggerType","required",""],[3,"value"],["labelPosition","before","formControlName","isNotification",1,"flex-48"],["formControlName","runReportId","required",""],[1,"layout-row","layout-xs-column","layout-align-center","margin-t","gap-2percent"],[3,"paramData"],["formControlName","providerId"],[1,"flex-48",3,"click"],["matInput","","formControlName","recurrenceStartDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","frequency","required",""],["formControlName","interval","required",""],["formControlName","repeatsOnDay","required",""],["value","1"],["value","2"],["value","3"],["value","4"],["value","5"],["value","6"],["value","7"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"templateParameters","paramData"]],template:function(n,i){n&1&&(l(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()(),E(14,eai,7,3,"mat-form-field",3),l(15,"mat-form-field",3)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",5),Se(20,tai,2,2,"mat-option",6,Pe),r(),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),l(26,"strong"),c(27),p(28,"translate"),r()()(),l(29,"mat-checkbox",7),c(30),p(31,"translate"),r(),E(32,iai,15,16,"mat-form-field",3),E(33,nai,24,28,"mat-form-field",3),E(34,aai,14,12,"mat-form-field",3),E(35,rai,34,33,"mat-form-field",3),l(36,"mat-form-field",3)(37,"mat-label"),c(38),p(39,"translate"),r(),l(40,"mat-select",8),Se(41,lai,2,2,"mat-option",6,Pe),r(),l(43,"mat-error"),c(44),p(45,"translate"),p(46,"translate"),l(47,"strong"),c(48),p(49,"translate"),r()()()(),E(50,sai,9,6,"div",9),E(51,cai,1,1,"mifosx-business-rule-parameters",10),r()),n&2&&(g("formGroup",i.smsCampaignDetailsForm),a(4),h(m(5,21,"labels.inputs.Campaign Name")),a(4),le(" ",m(9,23,"labels.inputs.Campaign Name")," ",m(10,25,"labels.commons.is")," "),a(4),h(m(13,27,"labels.commons.required")),a(2),I(i.smsCampaignDetailsForm.controls.isNotification.value?-1:14),a(3),h(m(18,29,"labels.inputs.Trigger Type")),a(3),we(i.triggerTypes),a(3),le(" ",m(24,31,"labels.inputs.Trigger Type")," ",m(25,33,"labels.commons.is")," "),a(4),h(m(28,35,"labels.commons.required")),a(3),v(" ",m(31,37,"labels.inputs.Is Notification"),"? "),a(2),I(i.smsCampaignDetailsForm.contains("recurrenceStartDate")?32:-1),a(),I(i.smsCampaignDetailsForm.contains("frequency")?33:-1),a(),I(i.smsCampaignDetailsForm.contains("interval")?34:-1),a(),I(i.smsCampaignDetailsForm.contains("repeatsOnDay")?35:-1),a(3),h(m(39,39,"labels.inputs.Business Rule")),a(3),we(i.businessRules),a(3),le(" ",m(45,41,"labels.inputs.Business Rule")," ",m(46,43,"labels.commons.is")," "),a(4),h(m(49,45,"labels.commons.required")),a(2),I(i.smsCampaignDetailsForm.controls.runReportId.value?-1:50),a(),I(i.smsCampaignDetailsForm.controls.runReportId.value?51:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,qi,ke,Ji,xh,he],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function pai(e,o){if(e&1){let t=Y();l(0,"button",11),R("click",function(){let i=V(t).$implicit,s=w();return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}var Qm=(()=>{class e{constructor(){this.message=new it("")}ngOnChanges(){this.message.patchValue(""),this.parameterLabels=[],this.templateParameters&&(this.parameterLabels=this.templateParameters.map(t=>t.columnName)),this.editCampaignMessage&&this.message.patchValue(this.editCampaignMessage)}get campaignMessage(){return{message:this.message.value}}addText(t){let i=this.message.value+` {{${t}}} `;this.message.patchValue(i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-campaign-message-step"]],inputs:{templateParameters:"templateParameters",smsCampaignFormValid:"smsCampaignFormValid",editCampaignMessage:"editCampaignMessage"},features:[Uo],decls:21,vars:14,consts:[[1,"layout-column"],[1,"flex-98"],["matInput","",3,"formControl"],[1,"mat-h3","flex-98"],[1,"layout-row-wrap","layout-xs-column","layout-align-center"],["mat-stroked-button","","color","primary",1,"parameter"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-stroked-button","","color","primary",1,"parameter",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-form-field",1)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"textarea",2),r(),l(6,"h3",3),c(7),p(8,"translate"),r(),l(9,"div",4),Se(10,pai,2,1,"button",5,Pe),r(),l(12,"div",6)(13,"button",7),b(14,"fa-icon",8),c(15),p(16,"translate"),r(),l(17,"button",9),c(18),p(19,"translate"),b(20,"fa-icon",10),r()()()),n&2&&(a(3),h(m(4,6,"labels.inputs.Campaign Message")),a(2),g("formControl",i.message),a(2),h(m(8,8,"labels.heading.Template Parameters")),a(3),we(i.parameterLabels),a(5),v(" ",m(16,10,"labels.buttons.Previous")," "),a(2),g("disabled",!i.smsCampaignFormValid),a(),v(" ",m(19,12,"labels.buttons.Next")," "))},dependencies:[ue,fe,st,$e,_n,Fe,Be,ze,xe,qi,ke,Ji,he],styles:["h3[_ngcontent-%COMP%]{font-weight:500}.margin-t[_ngcontent-%COMP%]{margin-top:1.75em}.parameter[_ngcontent-%COMP%]{margin:1%}"]})}}return e})();var mai=()=>["../"],Lu=(()=>{class e{constructor(){this.submitEvent=new bi}ngOnInit(){this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-campaign-preview-step"]],inputs:{campaign:"campaign",smsCampaignTemplate:"smsCampaignTemplate",editedCampaignMessage:"editedCampaignMessage"},outputs:{submitEvent:"submitEvent"},decls:29,vars:38,consts:[[1,"tab-content","mat-typography"],[1,"layout-column","gap-10px","template-message"],["matInput","","disabled",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-list")(2,"mat-list-item"),c(3),p(4,"translate"),r(),l(5,"mat-list-item"),c(6),p(7,"translate"),p(8,"find"),r(),l(9,"mat-list-item"),c(10),p(11,"translate"),p(12,"find"),r(),l(13,"mat-list-item"),c(14),p(15,"translate"),r(),l(16,"div",1)(17,"h3"),c(18),p(19,"translate"),r(),l(20,"textarea",2),c(21),r()()(),l(22,"div",3)(23,"button",4),c(24),p(25,"translate"),r(),l(26,"button",5),R("click",function(){return i.submitEvent.emit()}),c(27),p(28,"translate"),r()()()),n&2&&(a(3),le(" ",m(4,13,"labels.inputs.Campaign Name")," : ",i.campaign.campaignName," "),a(3),le(" ",m(7,15,"labels.inputs.SMS Provider")," : ",$t(8,17,i.campaign.providerId,i.smsProviders,"id","name")||"Unassigned"," "),a(4),le(" ",m(11,22,"labels.inputs.Trigger Type")," : ",$t(12,24,i.campaign.editFlag?i.campaign.triggerType.id:i.campaign.triggerType,i.triggerTypes,"id","value")," "),a(4),le(" ",m(15,29,"labels.inputs.Bussiness Rule")," : ",i.campaign.editFlag?i.campaign.reportName:i.campaign.paramValue==null?null:i.campaign.paramValue.reportName," "),a(4),v("",m(19,31,"labels.heading.Campaign Message")," :"),a(3),h(i.campaign.editFlag?i.editedCampaignMessage:i.campaign.message),a(2),g("routerLink",oe(37,mai)),a(),v(" ",m(25,33,"labels.buttons.Cancel")," "),a(3),v(" ",m(28,35,"labels.buttons.Submit")," "))},dependencies:[ue,fe,Oe,ze,xe,vl,Vo,he,Qn],styles:[".tab-content[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-content[_ngcontent-%COMP%] .template-message[_ngcontent-%COMP%]{padding-inline:1.5%;margin-top:1%}.tab-content[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function dai(e,o){e&1&&b(0,"fa-icon",13)}function uai(e,o){e&1&&b(0,"fa-icon",13)}function fai(e,o){e&1&&b(0,"fa-icon",14)}function hai(e,o){e&1&&b(0,"fa-icon",15)}function gai(e,o){e&1&&b(0,"fa-icon",16)}function _ai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CAMPAIGN"))}function Cai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MESSAGE"))}function vai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}function xai(e,o){if(e&1){let t=Y();l(0,"mat-step",12),F(1,vai,2,3,"ng-template",9),l(2,"mifosx-campaign-preview-step",17),R("submitEvent",function(){V(t);let i=w();return q(i.submit())}),r()()}if(e&2){let t=w();a(2),g("smsCampaignTemplate",t.smsCampaignTemplate)("campaign",t.smsCampaign)}}var dw=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.organizationService=T(li),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.route.data.subscribe(t=>{this.smsCampaignTemplate=t.smsCampaignTemplate})}get smsCampaignForm(){return this.smsCampaignStep.smsCampaignFormGroup}get smsCampaign(){return at(at({},this.smsCampaignStep.smsCampaignFormGroupValue),this.campaignMessageStep.campaignMessage)}setParameters(t){this.templateParameters=t}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i="dd MMMM yyyy HH:mm:ss",s=qt(at({},this.smsCampaign),{campaignType:this.smsCampaign.isNotification?2:1,submittedOnDate:this.dateUtils.formatDate(new Date,n),dateTimeFormat:i,dateFormat:n,locale:t});if(this.smsCampaign.triggerType===2){let d=s.recurrenceStartDate;s.recurrenceStartDate=this.dateUtils.formatDate(d,i)}this.organizationService.createSmsCampaign(s).subscribe(d=>{this.router.navigate(["../",d.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-campaign"]],viewQuery:function(n,i){if(n&1&&(Ee(bh,7),Ee(Qm,7)),n&2){let s;Te(s=Me())&&(i.smsCampaignStep=s.first),Te(s=Me())&&(i.campaignMessageStep=s.first)}},decls:15,vars:6,consts:[["smsCampaignStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"templateParameters","smsCampaignTemplate"],[3,"templateParameters","smsCampaignFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","smsCampaignTemplate","campaign"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,dai,1,0,"ng-template",3)(4,uai,1,0,"ng-template",4)(5,fai,1,0,"ng-template",5)(6,hai,1,0,"ng-template",6)(7,gai,1,0,"ng-template",7),l(8,"mat-step",8),F(9,_ai,2,3,"ng-template",9),l(10,"mifosx-sms-campaign-step",10),R("templateParameters",function(u){return V(s),q(i.setParameters(u))}),r()(),l(11,"mat-step"),F(12,Cai,2,3,"ng-template",9),b(13,"mifosx-campaign-message-step",11),r(),E(14,xai,3,2,"mat-step",12),r()()}n&2&&(a(),g("linear",!1),a(7),g("stepControl",i.smsCampaignForm),a(2),g("smsCampaignTemplate",i.smsCampaignTemplate),a(3),g("templateParameters",i.templateParameters)("smsCampaignFormValid",i.smsCampaignForm.valid),a(),I(i.smsCampaignForm.valid?14:-1))},dependencies:[ue,fe,fa,da,ke,ua,ma,bh,Qm,Lu,he],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();function bai(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function yai(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),r(),b(3,"input",17),F(4,bai,6,7,"mat-error",13),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function Sai(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function wai(e,o){if(e&1){let t=Y();l(0,"mat-form-field",18),R("click",function(){V(t);let i=ve(6);return q(i.open())}),l(1,"mat-label"),c(2),r(),b(3,"input",19)(4,"mat-datepicker-toggle",20)(5,"mat-datepicker",null,0),F(7,Sai,6,7,"mat-error",13),r()}if(e&2){let t=ve(6),n=w(2).$implicit,i=w();a(2),h(n.label),a(),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t)("formControlName",n.name),a(),g("for",t),a(3),g("ngIf",i.ReportForm.controls[n.name].hasError("required"))}}function Pai(e,o){if(e&1&&(l(0,"mat-option",23),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function Tai(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Mai(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),r(),l(3,"mat-select",21),F(4,Pai,2,2,"mat-option",22),r(),F(5,Tai,6,7,"mat-error",13),r()),e&2){let t=w(2).$implicit,n=w();a(2),h(t.label),a(),g("formControlName",t.name)("compareWith",n.compareOptions),a(),g("ngForOf",t.selectOptions),a(),g("ngIf",n.ReportForm.controls[t.name].hasError("required"))}}function Dai(e,o){e&1&&(X(0),F(1,yai,5,3,"mat-form-field",14)(2,wai,8,7,"mat-form-field",15)(3,Mai,6,5,"mat-form-field",14),Z()),e&2&&(a(),g("ngSwitchCase","text"),a(),g("ngSwitchCase","date"),a(),g("ngSwitchCase","select"))}function Eai(e,o){if(e&1&&(X(0,12),F(1,Dai,4,3,"ng-container",13),Z()),e&2){let t=o.$implicit,n=w();g("ngSwitch",t.displayType),a(),g("ngIf",n.ReportForm.controls[t.name])}}var uw=(()=>{class e{constructor(){this.reportsService=T(lr),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.templateParameters=new bi,this.ReportForm=new Is({}),this.parentParameters=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date}ngOnInit(){this.maxDate=this.settingsService.businessDate}ngOnChanges(){this.paramData&&(this.ReportForm=new Is({}),this.paramValue=JSON.parse(this.smsCampaign.paramValue),this.createRunReportForm(),this.disableFormWhenValid(),this.getResponseHeaders())}createRunReportForm(){this.paramData.forEach(t=>{if(t.parentParameterName){let n=this.paramData.find(i=>i.name===t.parentParameterName);n.childParameters.push(t),this.updateParentParameters(n)}else{this.ReportForm.addControl(t.name,new it("",ce.required));let n=this.paramValue[t.variable].toString();switch(t.displayType){case"text":this.ReportForm.get(t.name).patchValue(n);break;case"select":this.fetchSelectOptions(t,t.name);break;case"date":let i=this.settingsService.dateFormat,s=this.dateUtils.formatDate(n,i);this.ReportForm.get(t.name).patchValue(s);break}}}),this.setChildControls()}updateParentParameters(t){let n=this.parentParameters.map(i=>i.name);if(!n.includes(t.name))this.parentParameters.push(t);else{let i=n.indexOf(t.name);this.parentParameters[i]=t}}setChildControls(){this.parentParameters.forEach(t=>{this.ReportForm.get(t.name).valueChanges.subscribe(n=>{t.childParameters.forEach(i=>{if(i.displayType==="none"?this.ReportForm.addControl(i.name,new it(i.defaultVal)):this.ReportForm.addControl(i.name,new it("",ce.required)),i.displayType==="select"){let s=`${i.name}?${t.inputName}=${n.id}`;this.fetchSelectOptions(i,s)}})})})}fetchSelectOptions(t,n){this.reportsService.getSelectOptions(n).subscribe(i=>{t.selectOptions=i,t.selectAll==="Y"&&t.selectOptions.push({id:"-1",name:"All"});let s=this.paramValue[t.variable].toString(),d=i.find(u=>u.id===s);this.ReportForm.controls[t.name].patchValue({id:s,name:d.name})})}compareOptions(t,n){return t&&n&&t.id===n.id}disableFormWhenValid(){this.ReportForm.statusChanges.pipe(Ao()).subscribe(t=>{t==="VALID"&&this.ReportForm.disable()})}formatUserResponse(t,n){let i={},s;for(let[d,u]of Object.entries(t)){let f=this.paramData.find(_=>_.variable===d);s=n?f.inputName:f.variable,i[s]=u}return i}getResponseHeaders(){let t=this.paramValue.reportName;delete this.paramValue.reportName;let n=this.formatUserResponse(this.paramValue,!0);this.reportsService.getRunReportData(t,n).subscribe(i=>{this.templateParameters.emit(i.columnHeaders)},i=>{this.templateParameters.emit(null),this.ReportForm.disable()})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-business-rule-parameters"]],inputs:{paramData:"paramData",smsCampaign:"smsCampaign"},outputs:{templateParameters:"templateParameters"},features:[Uo],decls:17,vars:11,consts:[["runReportDatePicker",""],[1,"layout-column"],[1,"flex-98"],[1,"mat-h3","flex-98"],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[3,"ngSwitch"],[4,"ngIf"],["class","flex-48",4,"ngSwitchCase"],["class","flex-48",3,"click",4,"ngSwitchCase"],[1,"flex-48"],["matInput","","required","",3,"formControlName"],[1,"flex-48",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName","compareWith"],[3,"value",4,"ngFor","ngForOf"],[3,"value"]],template:function(n,i){n&1&&(l(0,"div",1),b(1,"mat-divider",2),l(2,"h3",3),c(3),p(4,"translate"),r(),l(5,"form",4)(6,"div",5),F(7,Eai,2,2,"ng-container",6),r()()(),l(8,"div",7)(9,"button",8),b(10,"fa-icon",9),c(11),p(12,"translate"),r(),l(13,"button",10),c(14),p(15,"translate"),b(16,"fa-icon",11),r()()),n&2&&(a(3),h(m(4,5,"labels.heading.Business Rule Parameters")),a(2),g("formGroup",i.ReportForm),a(2),g("ngForOf",i.paramData),a(4),v(" ",m(12,7,"labels.buttons.Previous")," "),a(3),v(" ",m(15,9,"labels.buttons.Next")," "))},dependencies:[ue,ts,Js,Ks,Xs,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,Ri,qi,ke,Ji,he],styles:["h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.parameter[_ngcontent-%COMP%]{margin-inline:1%}"]})}}return e})();function Iai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Oai(e,o){if(e&1&&(l(0,"mat-form-field",3)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Iai,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.SMS Provider")),a(3),we(t.smsProviders)}}function Aai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function Fai(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),l(8,"mat-error"),c(9),p(10,"translate"),p(11,"translate"),l(12,"strong"),c(13),p(14,"translate"),r()()()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,8,"labels.inputs.Schedule Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(4),le(" ",m(10,10,"labels.inputs.Schedule Date")," ",m(11,12,"labels.commons.is")," "),a(4),h(m(14,14,"labels.commons.required"))}}function kai(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.reportId),a(),v(" ",t.reportName," ")}}var fw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.reportService=T(lr),this.settingsService=T(Ot),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.templateParameters=new bi,this.createSMSCampaignDetailsForm()}createSMSCampaignDetailsForm(){this.smsCampaignDetailsForm=this.formBuilder.group({campaignName:["",ce.required],providerId:[null],triggerType:["",ce.required],runReportId:["",ce.required],isNotification:[!1]})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.triggerTypes=this.smsCampaignTemplate.triggerTypeOptions,this.smsProviders=this.smsCampaignTemplate.smsProviderOptions,this.businessRules=this.smsCampaignTemplate.businessRulesOptions,this.setControlValues(),this.getParameters()}passParameters(t){this.templateParameters.emit(t)}getParameters(){this.reportService.getReportParams(this.smsCampaign.reportName).subscribe(t=>{this.paramData=t}),this.smsCampaignDetailsForm.disable()}setControlValues(){this.smsCampaignDetailsForm.patchValue({campaignName:this.smsCampaign.campaignName,providerId:this.smsCampaign.providerId,triggerType:this.smsCampaign.triggerType.id,runReportId:this.smsCampaign.runReportId,isNotification:this.smsCampaign.isNotification}),this.smsCampaign.triggerType.value==="Schedule"&&this.smsCampaignDetailsForm.addControl("recurrenceStartDate",new it(new Date(this.smsCampaign.recurrenceStartDate)))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-sms-campaign-step"]],inputs:{smsCampaignTemplate:"smsCampaignTemplate",smsCampaign:"smsCampaign"},outputs:{templateParameters:"templateParameters"},decls:48,vars:44,consts:[["recurrenceStartDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","campaignName","required",""],["formControlName","triggerType","required",""],[3,"value"],["labelPosition","before","formControlName","isNotification",1,"flex-48"],["formControlName","runReportId","required",""],[3,"templateParameters","paramData","smsCampaign"],["formControlName","providerId"],[1,"flex-48",3,"click"],["matInput","","formControlName","recurrenceStartDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"]],template:function(n,i){n&1&&(l(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),c(4),p(5,"translate"),r(),b(6,"input",4),l(7,"mat-error"),c(8),p(9,"translate"),p(10,"translate"),l(11,"strong"),c(12),p(13,"translate"),r()()(),E(14,Oai,7,3,"mat-form-field",3),l(15,"mat-form-field",3)(16,"mat-label"),c(17),p(18,"translate"),r(),l(19,"mat-select",5),Se(20,Aai,2,2,"mat-option",6,Pe),r(),l(22,"mat-error"),c(23),p(24,"translate"),p(25,"translate"),l(26,"strong"),c(27),p(28,"translate"),r()()(),l(29,"mat-checkbox",7),c(30),p(31,"translate"),r(),E(32,Fai,15,16,"mat-form-field",3),l(33,"mat-form-field",3)(34,"mat-label"),c(35),p(36,"translate"),r(),l(37,"mat-select",8),Se(38,kai,2,2,"mat-option",6,Pe),r(),l(40,"mat-error"),c(41),p(42,"translate"),p(43,"translate"),l(44,"strong"),c(45),p(46,"translate"),r()()()(),l(47,"mifosx-edit-business-rule-parameters",9),R("templateParameters",function(d){return i.passParameters(d)}),r()()),n&2&&(g("formGroup",i.smsCampaignDetailsForm),a(4),h(m(5,18,"labels.inputs.Campaign Name")),a(4),le(" ",m(9,20,"labels.inputs.Campaign Name")," ",m(10,22,"labels.commons.is")," "),a(4),h(m(13,24,"labels.commons.required")),a(2),I(i.smsCampaignDetailsForm.controls.isNotification.value?-1:14),a(3),h(m(18,26,"labels.inputs.Trigger Type")),a(3),we(i.triggerTypes),a(3),le(" ",m(24,28,"labels.inputs.Trigger Type")," ",m(25,30,"labels.commons.is")," "),a(4),h(m(28,32,"labels.commons.required")),a(3),v(" ",m(31,34,"labels.inputs.Is Notification"),"? "),a(2),I(i.smsCampaignDetailsForm.controls.recurrenceStartDate?32:-1),a(3),h(m(36,36,"labels.inputs.Business Rule")),a(3),we(i.businessRules),a(3),le(" ",m(42,38,"labels.inputs.Business Rule")," ",m(43,40,"labels.commons.is")," "),a(4),h(m(46,42,"labels.commons.required")),a(2),g("paramData",i.paramData)("smsCampaign",i.smsCampaign))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,fi,uw,he],encapsulation:2})}}return e})();function Bai(e,o){e&1&&b(0,"fa-icon",14)}function Rai(e,o){e&1&&b(0,"fa-icon",14)}function Nai(e,o){e&1&&b(0,"fa-icon",15)}function Lai(e,o){e&1&&b(0,"fa-icon",16)}function Vai(e,o){e&1&&b(0,"fa-icon",17)}function qai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.CAMPAIGN"))}function zai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.MESSAGE"))}function Hai(e,o){e&1&&(c(0),p(1,"translate")),e&2&&h(m(1,1,"labels.inputs.PREVIEW"))}var hw=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.dateUtils=T(Zt),this.organizationService=T(li),this.settingsService=T(Ot),this.route.data.subscribe(t=>{this.smsCampaignTemplate=t.smsCampaignTemplate,this.smsCampaign=t.smsCampaign,this.smsCampaign.editFlag=!0})}get campaignMessage(){return this.campaignMessageStep.campaignMessage.message}setParameters(t){this.templateParameters=t}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i="dd MMMM yyyy HH:mm:ss",s={campaignName:this.smsCampaign.campaignName,campaignType:this.smsCampaign.isNotification?2:1,isNotification:this.smsCampaign.isNotification,triggerType:this.smsCampaign.triggerType.id,providerId:this.smsCampaign.providerId===0?null:this.smsCampaign.providerId,runReportId:this.smsCampaign.runReportId,message:this.campaignMessage,paramValue:JSON.parse(this.smsCampaign.paramValue),dateTimeFormat:i,dateFormat:n,locale:t};this.smsCampaign.triggerType.id===2&&(s.recurrenceStartDate=this.dateUtils.formatDate(new Date(this.smsCampaign.recurrenceStartDate),i)),this.organizationService.updateSmsCampaign(s,this.smsCampaign.id).subscribe(d=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-campaign"]],viewQuery:function(n,i){if(n&1&&Ee(Qm,7),n&2){let s;Te(s=Me())&&(i.campaignMessageStep=s.first)}},decls:17,vars:8,consts:[["smsCampaignStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],["completed",""],["matStepLabel",""],[3,"templateParameters","smsCampaign","smsCampaignTemplate"],[3,"templateParameters","editCampaignMessage"],["state","preview","completed",""],[3,"submitEvent","campaign","editedCampaignMessage","smsCampaignTemplate"],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-stepper",2,0),F(3,Bai,1,0,"ng-template",3)(4,Rai,1,0,"ng-template",4)(5,Nai,1,0,"ng-template",5)(6,Lai,1,0,"ng-template",6)(7,Vai,1,0,"ng-template",7),l(8,"mat-step",8),F(9,qai,2,3,"ng-template",9),l(10,"mifosx-edit-sms-campaign-step",10),R("templateParameters",function(u){return V(s),q(i.setParameters(u))}),r()(),l(11,"mat-step"),F(12,zai,2,3,"ng-template",9),b(13,"mifosx-campaign-message-step",11),r(),l(14,"mat-step",12),F(15,Hai,2,3,"ng-template",9),l(16,"mifosx-campaign-preview-step",13),R("submitEvent",function(){return V(s),q(i.submit())}),r()()()()}n&2&&(a(),g("linear",!1),a(9),g("smsCampaign",i.smsCampaign)("smsCampaignTemplate",i.smsCampaignTemplate),a(3),g("templateParameters",i.templateParameters)("editCampaignMessage",i.smsCampaign.campaignMessage),a(3),g("campaign",i.smsCampaign)("editedCampaignMessage",i.campaignMessage)("smsCampaignTemplate",i.smsCampaignTemplate))},dependencies:[ue,fe,fa,da,ke,ua,ma,fw,Qm,Lu,he],styles:[".container[_ngcontent-%COMP%]{width:60%}"]})}}return e})();var Gai=()=>["../"];function jai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",t.name," ")}}function $ai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Entity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Uai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",t.name," ")}}function Wai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Status")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Qai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.dataTableName),a(),v(" ",t.dataTableName," ")}}function Yai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Data Table")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Jai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Kai(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Loan Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Xai(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Jai,2,2,"mat-option",4,Pe),r(),E(7,Kai,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Products")),a(3),we(t.createEntityData.loanProductDatas),a(2),I(t.createEntityForm.controls.productId.hasError("required")?7:-1)}}function Zai(e,o){if(e&1&&(l(0,"mat-option",4),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function eri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Loan Product")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tri(e,o){if(e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",10),Se(5,Zai,2,2,"mat-option",4,Pe),r(),E(7,eri,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Products")),a(3),we(t.createEntityData.savingsProductDatas),a(2),I(t.createEntityForm.controls.productId.hasError("required")?7:-1)}}var gw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.organizationService=T(li),this.router=T(qe),this.route.data.subscribe(t=>{this.createEntityData=t.dataTableEntity,this.entityTypes=[{name:"Client",value:"m_client"},{name:"Loan",value:"m_loan"},{name:"Group",value:"m_group"},{name:"Savings Account",value:"m_savings_account"}]})}ngOnInit(){this.setCreateEntityDataTableForm(),this.getEntityType()}setCreateEntityDataTableForm(){this.createEntityForm=this.formBuilder.group({entity:["",ce.required],status:["",ce.required],datatableName:["",ce.required]})}getEntityType(){this.createEntityForm.get("entity").valueChanges.subscribe(t=>{switch(t){case"m_client":{this.entityType="m_client",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_client"),this.statusList=this.createEntityData.statusClient,this.createEntityForm.removeControl("productId");break}case"m_loan":{this.entityType="m_loan",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_loan"),this.statusList=this.createEntityData.statusLoans,this.createEntityForm.addControl("productId",new it("",ce.required));break}case"m_group":{this.entityType="m_group",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_group"),this.statusList=this.createEntityData.statusGroup,this.createEntityForm.removeControl("productId");break}default:{this.entityType="m_savings_account",this.dataTableList=this.createEntityData.datatables.filter(n=>n.entity==="m_savings_account"),this.statusList=this.createEntityData.statusSavings,this.createEntityForm.addControl("productId",new it("",ce.required));break}}})}submit(){this.organizationService.createEntityDataTableChecks(this.createEntityForm.value).subscribe(t=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-entity-data-table-checks"]],decls:38,vars:24,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","entity"],[3,"value"],["required","","formControlName","status"],["required","","formControlName","datatableName"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["required","","formControlName","productId"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",3),Se(10,jai,2,2,"mat-option",4,Pe),r(),E(12,$ai,7,9,"mat-error"),r(),l(13,"mat-form-field")(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",5),Se(18,Uai,2,2,"mat-option",4,Pe),r(),E(20,Wai,7,9,"mat-error"),r(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",6),Se(26,Qai,2,2,"mat-option",4,Pe),r(),E(28,Yai,7,9,"mat-error"),r(),E(29,Xai,8,4,"mat-form-field"),E(30,tri,8,4,"mat-form-field"),r()(),l(31,"mat-card-actions",7)(32,"button",8),c(33),p(34,"translate"),r(),l(35,"button",9),c(36),p(37,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.createEntityForm),a(5),h(m(8,13,"labels.inputs.Entity")),a(3),we(i.entityTypes),a(2),I(i.createEntityForm.controls.entity.hasError("required")?12:-1),a(3),h(m(16,15,"labels.inputs.Status")),a(3),we(i.statusList),a(2),I(i.createEntityForm.controls.status.hasError("required")?20:-1),a(3),h(m(24,17,"labels.inputs.Data Table")),a(3),we(i.dataTableList),a(2),I(i.createEntityForm.controls.datatableName.hasError("required")?28:-1),a(),I(i.entityType==="m_loan"?29:-1),a(),I(i.entityType==="m_savings_account"?30:-1),a(2),g("routerLink",oe(23,Gai)),a(),v(" ",m(34,19,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.createEntityForm.valid),a(),v(" ",m(37,21,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,gt,ft,xe,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var iri=()=>["../"];function nri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Provisioning Criteria")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ori(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function ari(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Selected Products")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function rri(e,o){e&1&&(l(0,"mat-hint"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.text.Provisioning criteria definitions")))}function lri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function sri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function cri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Min Age")))}function pri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minAge||"0")}}function mri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Max Age")))}function dri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maxAge||"0")}}function uri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Percentage")," (%)"))}function fri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.provisioningPercentage||"0")}}function hri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Liability Account")))}function gri(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.liabilityAccount,n.loanProvisioningCriteriaTemplate.glAccounts,"id","name")||"-"," ")}}function _ri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function Cri(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.expenseAccount,n.loanProvisioningCriteriaTemplate.glAccounts,"id","name")||"-"," ")}}function vri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function xri(e,o){if(e&1){let t=Y();l(0,"td",24)(1,"button",25),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editDefinition(i))}),b(2,"fa-icon",26),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Edit")," "))}function bri(e,o){e&1&&b(0,"tr",27)}function yri(e,o){e&1&&b(0,"tr",28)}function Sri(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.provisioningCriteriaFormValid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var _w=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.route=T(Ie),this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount","edit"],this.definitions=[],this.isDefinitionValid={},this.route.data.subscribe(t=>{this.loanProvisioningCriteriaTemplate=t.loanProvisioningCriteriaTemplate,this.definitions=this.loanProvisioningCriteriaTemplate.definitions,this.liabilityAccounts=this.loanProvisioningCriteriaTemplate.glAccounts.filter(n=>n.type.value==="LIABILITY"),this.expenseAccounts=this.loanProvisioningCriteriaTemplate.glAccounts.filter(n=>n.type.value==="EXPENSE")})}ngOnInit(){this.createProvisioningCriteriaForm()}createProvisioningCriteriaForm(){this.provisioningCriteriaForm=this.formBuilder.group({criteriaName:["",ce.required],loanProducts:[[],ce.required]})}editDefinition(t){let n={title:"Edit Criteria Definition",formfields:this.getDefinitionFormFields(t),layout:{addButtonText:"Confirm"}};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=qt(at({},s.data.value),{categoryName:t.categoryName,categoryId:t.categoryId});this.definitions.splice(this.definitions.indexOf(t),1,d),this.definitions=this.definitions.concat([]),this.isDefinitionValid[t.categoryName]=!0}})}getDefinitionFormFields(t){let n=[];return n.push(new vn({controlName:"minAge",label:"Min Age",value:t?t.minAge:"",type:"number",required:!0,order:1})),n.push(new vn({controlName:"maxAge",label:"Max Age",value:t?t.maxAge:"",type:"number",required:!0,order:2})),n.push(new vn({controlName:"provisioningPercentage",label:"Percentage (%)",value:t?t.provisioningPercentage:"",type:"number",required:!0,order:3})),n.push(new $i({controlName:"liabilityAccount",label:"Liability Account",value:t?t.liabilityAccount:"",options:{label:"name",value:"id",data:this.liabilityAccounts},required:!0,order:4})),n.push(new $i({controlName:"expenseAccount",label:"Expense Account",value:t?t.expenseAccount:"",options:{label:"name",value:"id",data:this.expenseAccounts},required:!0,order:5})),n}get provisioningCriteriaFormValid(){let t=Object.entries(this.isDefinitionValid).length===this.definitions.length;return this.provisioningCriteriaForm.valid&&t}submit(){let t=this.settingsService.language.code,n=this.provisioningCriteriaForm.get("loanProducts").value,i=qt(at({},this.provisioningCriteriaForm.value),{loanProducts:n.map(s=>({id:s.id,name:s.name,includeInBorrowerCycle:s.includeInBorrowerCycle})),definitions:this.definitions,locale:t});this.organizationService.createProvisioningCriteria(i).subscribe(s=>{this.router.navigate(["../",s.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-loan-provisioning-criteria"]],decls:50,vars:19,consts:[[1,"container"],[3,"formGroup"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["required","","matInput","","formControlName","criteriaName"],["formControlName","loanProducts","multiple",""],[3,"value"],[1,"mat-elevation-z1"],["mat-table","",1,"m-t-10",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"m-t-20","layout-row","layout-align-center","gap-20px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div")(3,"form",1)(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,nri,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,ori,2,2,"mat-option",6,Pe),r(),E(18,ari,7,9,"mat-error"),r()()()(),l(19,"div",7),E(20,rri,3,3,"mat-hint"),l(21,"table",8),X(22,9),F(23,lri,3,3,"th",10)(24,sri,2,1,"td",11),Z(),X(25,12),F(26,cri,3,3,"th",10)(27,pri,2,1,"td",11),Z(),X(28,13),F(29,mri,3,3,"th",10)(30,dri,2,1,"td",11),Z(),X(31,14),F(32,uri,3,3,"th",10)(33,fri,2,1,"td",11),Z(),X(34,15),F(35,hri,3,3,"th",10)(36,gri,3,6,"td",11),Z(),X(37,16),F(38,_ri,3,3,"th",10)(39,Cri,3,6,"td",11),Z(),X(40,17),F(41,vri,3,3,"th",10)(42,xri,5,3,"td",11),Z(),F(43,bri,1,0,"tr",18)(44,yri,1,0,"tr",19),r()(),l(45,"div",20)(46,"button",21),c(47),p(48,"translate"),r(),F(49,Sri,3,4,"button",22),r()()()),n&2&&(a(3),g("formGroup",i.provisioningCriteriaForm),a(4),h(m(8,12,"labels.inputs.Provisioning Criteria")),a(3),I(i.provisioningCriteriaForm.controls.criteriaName.hasError("required")?10:-1),a(3),h(m(14,14,"labels.inputs.Selected Products")),a(3),we(i.loanProvisioningCriteriaTemplate.loanProducts),a(2),I(i.provisioningCriteriaForm.controls.loanProducts.hasError("required")?18:-1),a(2),I(i.provisioningCriteriaFormValid?-1:20),a(),g("dataSource",i.definitions),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(18,iri)),a(),h(m(48,16,"labels.buttons.Cancel")),a(2),g("mifosxHasPermission","CREATE_PROVISIONING_CRITERIA"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Fe,Be,ut,qa,ze,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,he,Qn],styles:[".container[_ngcontent-%COMP%]{padding:.5rem;max-width:1200px;margin:0 auto}.layout-row[_ngcontent-%COMP%]{display:flex;flex-direction:row}mat-card[_ngcontent-%COMP%]{padding:1rem;box-shadow:0 2px 8px #0000001a!important;border-radius:8px}mat-card[_ngcontent-%COMP%] .layout-row[_ngcontent-%COMP%]{margin-bottom:.5rem}.mat-elevation-z1[_ngcontent-%COMP%]{padding:1rem;margin-top:.5rem;border-radius:4px}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600}.m-t-20[_ngcontent-%COMP%]{margin-top:2rem}.layout-align-center[_ngcontent-%COMP%]{align-items:center;justify-content:center}@media (width <= 768px){.container[_ngcontent-%COMP%]{padding:.5rem}mat-card[_ngcontent-%COMP%]{padding:1rem}.layout-row[_ngcontent-%COMP%]{flex-direction:column}.gap-20px[_ngcontent-%COMP%]{flex-direction:column;width:100%}}"]})}}return e})();var wri=()=>["../"];function Pri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Tri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Assignment Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Dri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Eri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Loan Officer")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Iri(e,o){if(e&1){let t=Y();l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),R("selectionChange",function(i){V(t);let s=w();return q(s.getFromOfficers(i.value))}),Se(5,Dri,2,2,"mat-option",6,Pe),r(),E(7,Eri,7,9,"mat-error"),r()}if(e&2){let t=w();a(2),h(m(3,2,"labels.inputs.From loan officer")),a(3),we(t.fromLoanOfficers),a(2),I(t.bulkLoanForm.controls.fromLoanOfficerId.hasError("required")?7:-1)}}function Ori(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Ari(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Loan Officer")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Fri(e,o){if(e&1){let t=Y();l(0,"tr")(1,"td")(2,"mat-checkbox",15),R("change",function(i){let s=V(t).$implicit,d=w(3);return q(d.getLoans(i,s.id))}),c(3),r()()()}if(e&2){let t=o.$implicit;a(3),le("",t.productName,"(",t.accountNo,")")}}function kri(e,o){if(e&1&&(l(0,"tr")(1,"table")(2,"tr")(3,"td")(4,"strong"),c(5),r()()(),Se(6,Fri,4,2,"tr",null,Pe),r()()),e&2){let t=o.$implicit;a(5),v(" ",t.displayName," "),a(),we(t.loans)}}function Bri(e,o){if(e&1&&(l(0,"table",4)(1,"thead")(2,"th"),c(3),p(4,"translate"),r()(),l(5,"tbody"),Se(6,kri,8,1,"tr",null,Pe),r()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Clients")),a(3),we(t.officerTemplate.accountSummaryCollection.clients)}}function Rri(e,o){if(e&1){let t=Y();l(0,"tr")(1,"td")(2,"mat-checkbox",15),R("change",function(i){let s=V(t).$implicit,d=w(3);return q(d.getLoans(i,s.id))}),c(3),r()()()}if(e&2){let t=o.$implicit;a(3),le("",t.productName,"(",t.accountNo,")")}}function Nri(e,o){if(e&1&&(l(0,"tr")(1,"table")(2,"tr")(3,"td")(4,"strong"),c(5),r()()(),Se(6,Rri,4,2,"tr",null,Pe),r()()),e&2){let t=o.$implicit;a(5),v(" ",t.displayName," "),a(),we(t.loans)}}function Lri(e,o){if(e&1&&(l(0,"table",4)(1,"thead")(2,"th"),c(3),p(4,"translate"),r()(),l(5,"tbody"),Se(6,Nri,8,1,"tr",null,Pe),r()()),e&2){let t=w();a(3),h(m(4,1,"labels.inputs.Groups")),a(3),we(t.officerTemplate.accountSummaryCollection.groups)}}function Vri(e,o){if(e&1&&(l(0,"button",16),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.bulkLoanForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Cw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.organizationSevice=T(li),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.router=T(qe),this.loans=new Array,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(t=>{this.offices=t.offices})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.setBulkLoanForm()}setBulkLoanForm(){this.bulkLoanForm=this.formBuilder.group({officeId:["",ce.required],assignmentDate:[this.settingsService.businessDate,ce.required],toLoanOfficerId:["",ce.required]})}getOffice(t){this.organizationSevice.getOfficeTemplate(t).subscribe(n=>{this.officeTemplate=n,this.fromLoanOfficers=this.officeTemplate.loanOfficerOptions,this.bulkLoanForm.addControl("fromLoanOfficerId",new it("",ce.required))})}getFromOfficers(t){this.toLoanOfficers=this.fromLoanOfficers?.filter(n=>n.id!==t)||[],t&&this.officeTemplate&&this.officeTemplate.id?this.organizationSevice.getOfficerTemplate(t,this.officeTemplate.id).subscribe(n=>{this.officerTemplate=n}):this.officerTemplate=void 0}getLoans(t,n){if(t.checked)this.loans.push(n);else{let s=this.loans.indexOf(n,0);this.loans.splice(s,1)}}submit(){let t=this.bulkLoanForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.bulkLoanForm.value.assignmentDate;t.assignmentDate instanceof Date&&(t.assignmentDate=this.dateUtils.formatDate(s,i));let d=qt(at({},t),{dateFormat:i,locale:n});d.loans=this.loans,this.organizationSevice.createLoanReassignment(d).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-bulk-loan-reassignmnet"]],decls:43,vars:30,consts:[["assignmentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","officeId",3,"selectionChange"],[3,"value"],[1,"flex-48",3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker","placeholder"],["matSuffix","",3,"for"],["required","","formControlName","toLoanOfficerId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["type","submit","mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["required","","formControlName","fromLoanOfficerId",3,"selectionChange"],[3,"change"],["type","submit","mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",5),R("selectionChange",function(u){return V(s),q(i.getOffice(u.value))}),Se(10,Pri,2,2,"mat-option",6,Pe),r(),E(12,Tri,7,9,"mat-error"),r()(),l(13,"div",3)(14,"mat-form-field",7),R("click",function(){V(s);let u=ve(22);return q(u.open())}),l(15,"mat-label"),c(16),p(17,"translate"),r(),b(18,"input",8),p(19,"translate"),b(20,"mat-datepicker-toggle",9)(21,"mat-datepicker",null,0),E(23,Mri,7,9,"mat-error"),r()(),l(24,"div",3),E(25,Iri,8,4,"mat-form-field",4),r(),l(26,"div",3)(27,"mat-form-field",4)(28,"mat-label"),c(29),p(30,"translate"),r(),l(31,"mat-select",10),Se(32,Ori,2,2,"mat-option",6,Pe),r(),E(34,Ari,7,9,"mat-error"),r()(),l(35,"div",3),E(36,Bri,8,3,"table",4),E(37,Lri,8,3,"table",4),r()(),l(38,"mat-card-actions",11)(39,"button",12),c(40),p(41,"translate"),r(),F(42,Vri,3,4,"button",13),r()()()()}if(n&2){let s=ve(22);a(2),g("formGroup",i.bulkLoanForm),a(5),h(m(8,19,"labels.inputs.Office")),a(3),we(i.offices),a(2),I(i.bulkLoanForm.controls.officeId.hasError("required")?12:-1),a(4),h(m(17,21,"labels.inputs.Assignment Date")),a(2),g("placeholder",Le(m(19,23,"labels.inputs.Assignment Date")))("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(2),g("for",s),a(3),I(i.bulkLoanForm.controls.assignmentDate.hasError("required")?23:-1),a(2),I(i.fromLoanOfficers!==void 0?25:-1),a(4),h(m(30,25,"labels.inputs.To loan officer")),a(3),we(i.toLoanOfficers),a(2),I(i.bulkLoanForm.controls.toLoanOfficerId.hasError("required")?34:-1),a(2),I(i.officerTemplate!==void 0?36:-1),a(),I(i.officerTemplate!==void 0?37:-1),a(2),g("routerLink",oe(29,wri)),a(),v(" ",m(41,27,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","BULKREASSIGN_LOAN")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,he],styles:[".container[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:16px 12px}.container[_ngcontent-%COMP%] > mat-card[_ngcontent-%COMP%]{width:100%;max-width:560px;margin:0 auto;border-radius:4px;padding:16px 20px;box-shadow:0 1px 3px #1018281a,0 1px 2px #1018280f}mat-form-field[_ngcontent-%COMP%]{width:100%}.flex-48[_ngcontent-%COMP%]{flex:1 1 100%;min-width:100%}table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var qri=()=>["../"];function zri(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Provisioning Criteria")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Hri(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function Gri(e,o){e&1&&(l(0,"mat-hint"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.text.Provisioning criteria definitions")))}function jri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function $ri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.categoryName)}}function Uri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Min Age")))}function Wri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.minAge||"0")}}function Qri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Max Age")))}function Yri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maxAge||"0")}}function Jri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Percentage")," (%)"))}function Kri(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.provisioningPercentage||"0")}}function Xri(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Liability Account")))}function Zri(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.liabilityAccount,n.loanProvisioningCriteriaAndTemplate.glAccounts,"id","name")||"-"," ")}}function eli(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Expense Account")))}function tli(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"find"),r()),e&2){let t=o.$implicit,n=w();a(),v(" ",$t(2,1,t.expenseAccount,n.loanProvisioningCriteriaAndTemplate.glAccounts,"id","name")||"-"," ")}}function ili(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function nli(e,o){if(e&1){let t=Y();l(0,"td",24)(1,"button",25),R("click",function(){let i=V(t).$implicit,s=w();return q(s.editDefinition(i))}),b(2,"fa-icon",26),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Edit")," "))}function oli(e,o){e&1&&b(0,"tr",27)}function ali(e,o){e&1&&b(0,"tr",28)}function rli(e,o){if(e&1){let t=Y();l(0,"button",29),R("click",function(){V(t);let i=w();return q(i.submit())}),c(1),p(2,"translate"),r()}if(e&2){let t=w();g("disabled",!t.provisioningCriteriaFormValid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var vw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.router=T(qe),this.settingsService=T(Ot),this.dialog=T(Ht),this.route=T(Ie),this.displayedColumns=["category","minAge","maxAge","percentage","liabilityAccount","expenseAccount","edit"],this.definitions=[],this.route.data.subscribe(t=>{this.loanProvisioningCriteriaAndTemplate=t.loanProvisioningCriteriaAndTemplate,this.definitions=this.loanProvisioningCriteriaAndTemplate.definitions,this.loanProducts=this.loanProvisioningCriteriaAndTemplate.loanProducts.concat(this.loanProvisioningCriteriaAndTemplate.selectedLoanProducts),this.liabilityAccounts=this.loanProvisioningCriteriaAndTemplate.glAccounts.filter(n=>n.type.value==="LIABILITY"),this.expenseAccounts=this.loanProvisioningCriteriaAndTemplate.glAccounts.filter(n=>n.type.value==="EXPENSE")})}ngOnInit(){this.createProvisioningCriteriaForm()}createProvisioningCriteriaForm(){this.provisioningCriteriaForm=this.formBuilder.group({criteriaName:[this.loanProvisioningCriteriaAndTemplate.criteriaName,ce.required],loanProducts:[this.loanProvisioningCriteriaAndTemplate.selectedLoanProducts]})}compareOptions(t,n){return t&&n&&t.id===n.id}editDefinition(t){let n={title:"Edit Criteria Definition",formfields:this.getDefinitionFormFields(t),layout:{addButtonText:"Confirm"}};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{if(s.data){let d=at(at({},t),s.data.value);this.definitions.splice(this.definitions.indexOf(t),1,d),this.definitions=this.definitions.concat([])}})}getDefinitionFormFields(t){let n=[];return n.push(new vn({controlName:"minAge",label:"Min Age",value:t?t.minAge:"",type:"number",required:!0,order:1})),n.push(new vn({controlName:"maxAge",label:"Max Age",value:t?t.maxAge:"",type:"number",required:!0,order:2})),n.push(new vn({controlName:"provisioningPercentage",label:"Percentage (%)",value:t?t.provisioningPercentage:"",type:"number",required:!0,order:3})),n.push(new $i({controlName:"liabilityAccount",label:"Liability Account",value:t?t.liabilityAccount:"",options:{label:"name",value:"id",data:this.liabilityAccounts},required:!0,order:4})),n.push(new $i({controlName:"expenseAccount",label:"Expense Account",value:t?t.expenseAccount:"",options:{label:"name",value:"id",data:this.expenseAccounts},required:!0,order:5})),n}get provisioningCriteriaFormValid(){return this.provisioningCriteriaForm.valid}submit(){let t=this.settingsService.language.code,n=qt(at({},this.provisioningCriteriaForm.value),{loanProducts:this.provisioningCriteriaForm.get("loanProducts").value.map(i=>({id:i.id,name:i.name,includeInBorrowerCycle:i.includeInBorrowerCycle})),definitions:this.definitions,locale:t});this.organizationService.updateProvisioningCriteria(this.loanProvisioningCriteriaAndTemplate.criteriaId,n).subscribe(i=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-loan-provisioning-criteria"]],decls:49,vars:19,consts:[[1,"container"],[3,"formGroup"],[1,"layout-row","gap-2percent"],[1,"flex-fill"],["required","","matInput","","formControlName","criteriaName"],["formControlName","loanProducts","multiple","",3,"compareWith"],[3,"value"],[1,"mat-elevation-z1"],["mat-table","",1,"m-t-10",3,"dataSource"],["matColumnDef","category"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","minAge"],["matColumnDef","maxAge"],["matColumnDef","percentage"],["matColumnDef","liabilityAccount"],["matColumnDef","expenseAccount"],["matColumnDef","edit"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"m-t-20","layout-row","layout-align-center","gap-20px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled","click",4,"mifosxHasPermission"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","edit",1,"m-r-10"],["mat-header-row",""],["mat-row",""],["mat-raised-button","","color","primary",3,"click","disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"div")(3,"form",1)(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,zri,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),l(15,"mat-select",5),Se(16,Hri,2,2,"mat-option",6,Pe),r()()()()(),l(18,"div",7),E(19,Gri,3,3,"mat-hint"),l(20,"table",8),X(21,9),F(22,jri,3,3,"th",10)(23,$ri,2,1,"td",11),Z(),X(24,12),F(25,Uri,3,3,"th",10)(26,Wri,2,1,"td",11),Z(),X(27,13),F(28,Qri,3,3,"th",10)(29,Yri,2,1,"td",11),Z(),X(30,14),F(31,Jri,3,3,"th",10)(32,Kri,2,1,"td",11),Z(),X(33,15),F(34,Xri,3,3,"th",10)(35,Zri,3,6,"td",11),Z(),X(36,16),F(37,eli,3,3,"th",10)(38,tli,3,6,"td",11),Z(),X(39,17),F(40,ili,3,3,"th",10)(41,nli,5,3,"td",11),Z(),F(42,oli,1,0,"tr",18)(43,ali,1,0,"tr",19),r()(),l(44,"div",20)(45,"button",21),c(46),p(47,"translate"),r(),F(48,rli,3,4,"button",22),r()()()),n&2&&(a(3),g("formGroup",i.provisioningCriteriaForm),a(4),h(m(8,12,"labels.inputs.Provisioning Criteria")),a(3),I(i.provisioningCriteriaForm.controls.criteriaName.hasError("required")?10:-1),a(3),h(m(14,14,"labels.inputs.Selected Products")),a(2),g("compareWith",i.compareOptions),a(),we(i.loanProducts),a(3),I(i.provisioningCriteriaFormValid?-1:19),a(),g("dataSource",i.definitions),a(22),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("routerLink",oe(18,qri)),a(),h(m(47,16,"labels.buttons.Cancel")),a(2),g("mifosxHasPermission","UPDATE_CRITERIA"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Fe,Be,ut,qa,ze,gt,ft,xe,Ke,_t,xt,vt,bt,Ct,yt,ke,St,Pt,wt,Tt,he,Qn],encapsulation:2})}}return e})();var lli=()=>["../"],sli=()=>[10,25,50,100];function cli(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function pli(e,o){if(e&1&&(l(0,"mat-option",9),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function mli(e,o){e&1&&(l(0,"mat-form-field")(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",18),r()),e&2&&(a(2),h(m(3,1,"labels.inputs.From Account ID")))}function dli(e,o){e&1&&(l(0,"button",19),b(1,"fa-icon",20),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" \xA0 ",m(3,1,"labels.buttons.Search Instructions")," "))}function uli(e,o){if(e&1){let t=Y();l(0,"mat-card")(1,"form",4),R("ngSubmit",function(){V(t);let i=w();return q(i.search())}),l(2,"mat-card-content")(3,"div",5)(4,"mat-form-field")(5,"mat-label"),c(6),p(7,"translate"),r(),b(8,"input",6),r(),l(9,"mat-form-field")(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",7),r(),l(14,"mat-form-field")(15,"mat-label"),c(16),p(17,"translate"),r(),l(18,"mat-select",8),Se(19,cli,2,2,"mat-option",9,Pe),r()(),l(21,"mat-form-field")(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",10),Se(26,pli,2,2,"mat-option",9,Pe),r()(),E(28,mli,5,3,"mat-form-field"),l(29,"mat-form-field",11),R("click",function(){V(t);let i=ve(36);return q(i.open())}),l(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",12)(34,"mat-datepicker-toggle",13)(35,"mat-datepicker",null,0),r(),l(37,"mat-form-field",11),R("click",function(){V(t);let i=ve(44);return q(i.open())}),l(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",14)(42,"mat-datepicker-toggle",13)(43,"mat-datepicker",null,1),r()()(),l(45,"mat-card-actions",15)(46,"button",16),c(47),p(48,"translate"),r(),F(49,dli,4,3,"button",17),r()()()}if(e&2){let t=ve(36),n=ve(44),i=w();a(),g("formGroup",i.instructionForm),a(5),h(m(7,19,"labels.inputs.Client Name")),a(5),h(m(12,21,"labels.inputs.Client Id")),a(5),h(m(17,23,"labels.inputs.Transfer Type")),a(3),we(i.standingInstructionsTemplate.transferTypeOptions),a(4),h(m(24,25,"labels.inputs.Account Type")),a(3),we(i.standingInstructionsTemplate.fromAccountTypeOptions),a(2),I(i.instructionForm.contains("fromAccountId")?28:-1),a(3),h(m(32,27,"labels.inputs.From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t),a(),g("for",t),a(5),h(m(40,29,"labels.inputs.To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",n),a(),g("for",n),a(4),g("routerLink",oe(33,lli)),a(),v(" ",m(48,31,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function fli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Client")))}function hli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.fromClient.displayName,"(",t.fromClient.id,") ")}}function gli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.From Account")))}function _li(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.fromAccount.productName,"(",t.fromAccount.id,") ")}}function Cli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.To Client")))}function vli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.toClient.displayName,"(",t.toClient.id,") ")}}function xli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.To Account")))}function bli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),le(" ",t.toAccount.productName,"(",t.toAccount.id,") ")}}function yli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Execution Time")))}function Sli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.executionTime)}}function wli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function Pli(e,o){if(e&1&&(l(0,"td",38),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.amount))}}function Tli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function Mli(e,o){if(e&1&&(l(0,"td",38),c(1),r()),e&2){let t=o.$implicit;a(),h(t.status)}}function Dli(e,o){e&1&&(l(0,"th",37),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Error Log")))}function Eli(e,o){if(e&1&&(l(0,"button",39),b(1,"i",40),r()),e&2){let t=w().$implicit;g("matTooltip",t.errorLog)}}function Ili(e,o){if(e&1&&(l(0,"td",38),E(1,Eli,2,1,"button",39),r()),e&2){let t=o.$implicit;a(),I(t.status==="failed"?1:-1)}}function Oli(e,o){e&1&&b(0,"tr",41)}function Ali(e,o){e&1&&b(0,"tr",42)}function Fli(e,o){if(e&1){let t=Y();l(0,"div",3)(1,"mat-card")(2,"div",21)(3,"button",22),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),l(6,"table",23),X(7,24),F(8,fli,3,3,"th",25)(9,hli,2,2,"td",26),Z(),X(10,27),F(11,gli,3,3,"th",25)(12,_li,2,2,"td",26),Z(),X(13,28),F(14,Cli,3,3,"th",25)(15,vli,2,2,"td",26),Z(),X(16,29),F(17,xli,3,3,"th",25)(18,bli,2,2,"td",26),Z(),X(19,30),F(20,yli,3,3,"th",25)(21,Sli,2,1,"td",26),Z(),X(22,31),F(23,wli,3,3,"th",25)(24,Pli,3,3,"td",26),Z(),X(25,32),F(26,Tli,3,3,"th",25)(27,Mli,2,1,"td",26),Z(),X(28,33),F(29,Dli,3,3,"th",25)(30,Ili,2,1,"td",26),Z(),F(31,Oli,1,0,"tr",34)(32,Ali,1,0,"tr",35),r(),b(33,"mat-paginator",36),r()()}if(e&2){let t=w();a(4),v(" ",m(5,5,"labels.buttons.Parameters")," "),a(2),g("dataSource",t.dataSource),a(25),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(7,sli))}}var xw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.router=T(qe),this.route=T(Ie),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["fromClient","fromAccount","toClient","toAccount","executionTime","amount","status","errorLog"],this.route.data.subscribe(t=>{this.standingInstructionsTemplate=t.standingInstructionsTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createInstructionForm(),this.buildDependencies()}createInstructionForm(){this.instructionForm=this.formBuilder.group({clientName:[""],clientId:[""],transferType:[""],fromAccountType:[""],fromDate:[""],toDate:[""]})}buildDependencies(){this.instructionForm.get("fromAccountType").valueChanges.subscribe(()=>{this.instructionForm.addControl("fromAccountId",new it(""))})}setInstructions(t){this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}search(){this.isCollapsed=!0;let t=this.instructionForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.instructionForm.value.fromDate,d=this.instructionForm.value.toDate;t.fromDate instanceof Date&&(t.fromDate=this.dateUtils.formatDate(s,i)),t.toDate instanceof Date&&(t.toDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{dateFormat:i,locale:n});this.organizationService.getStandingInstructions(u).subscribe(f=>{this.setInstructions(f.pageItems)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-standing-instructions-history"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:3,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container","input"],[1,"container","output"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","formControlName","clientName"],["matInput","","formControlName","clientId"],["formControlName","transferType"],[3,"value"],["formControlName","fromAccountType"],[3,"click"],["matInput","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",4,"mifosxHasPermission"],["matInput","","formControlName","fromAccountId"],["mat-raised-button","","color","primary"],["icon","search"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","fromClient"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","toClient"],["matColumnDef","toAccount"],["matColumnDef","executionTime"],["matColumnDef","amount"],["matColumnDef","status"],["matColumnDef","errorLog"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-raised-button","","color","warn",1,"error-log",3,"matTooltip"],[1,"fa","fa-exclamation"],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",2),E(1,uli,50,34,"mat-card"),r(),E(2,Fli,34,8,"div",3)),n&2&&(a(),I(i.isCollapsed?-1:1),a(),I(i.isCollapsed?2:-1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Oe,Ue,Je,Et,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,si,St,Pt,wt,Tt,kt,he,In],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.output[_ngcontent-%COMP%] .error-log[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var kli=()=>["../"],Bli=()=>[10,25,50,100];function Rli(e,o){if(e&1&&(l(0,"mat-option",14),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Nli(e,o){if(e&1&&(l(0,"mat-option",14),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Lli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Date Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Vli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function qli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Condition")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Hli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",33)(5,"mat-option",34),c(6),p(7,"translate"),r(),l(8,"mat-option",35),c(9,"<="),r(),l(10,"mat-option",36),c(11,">="),r(),l(12,"mat-option",37),c(13,"<"),r(),l(14,"mat-option",38),c(15,">"),r(),l(16,"mat-option",39),c(17,"="),r()(),E(18,zli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,3,"labels.inputs.Comparison Condition")),a(4),h(m(7,5,"labels.inputs.between")),a(12),I(t.fundMappingForm.controls.outStandingAmountPercentageCondition.hasError("required")?18:-1)}}function Gli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Minimum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function jli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",40),p(5,"translate"),E(6,Gli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Minimum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Minimum Value"))),a(2),I(t.fundMappingForm.controls.minOutStandingAmountPercentage.hasError("required")?6:-1)}}function $li(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Uli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",41),p(5,"translate"),E(6,$li,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Comparison Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Comparison Value"))),a(2),I(t.fundMappingForm.controls.outStandingAmountPercentage.hasError("required")?6:-1)}}function Wli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Maximum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Qli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",42),p(5,"translate"),E(6,Wli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Maximum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Maximum Value"))),a(2),I(t.fundMappingForm.controls.maxOutStandingAmountPercentage.hasError("required")?6:-1)}}function Yli(e,o){if(e&1&&(l(0,"div",26),E(1,Hli,19,7,"mat-form-field",16),E(2,jli,7,8,"mat-form-field",16),E(3,Uli,7,8,"mat-form-field",16),E(4,Qli,7,8,"mat-form-field",16),r()),e&2){let t=w(2);a(),I(t.fundMappingForm.contains("outStandingAmountPercentageCondition")?1:-1),a(),I(t.fundMappingForm.contains("minOutStandingAmountPercentage")?2:-1),a(),I(t.fundMappingForm.contains("outStandingAmountPercentage")?3:-1),a(),I(t.fundMappingForm.contains("maxOutStandingAmountPercentage")?4:-1)}}function Jli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Condition")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Kli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",43)(5,"mat-option",34),c(6),p(7,"translate"),r(),l(8,"mat-option",35),c(9,"<="),r(),l(10,"mat-option",36),c(11,">="),r(),l(12,"mat-option",37),c(13,"<"),r(),l(14,"mat-option",38),c(15,">"),r(),l(16,"mat-option",39),c(17,"="),r()(),E(18,Jli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,3,"labels.inputs.Comparison Condition")),a(4),h(m(7,5,"labels.inputs.between")),a(12),I(t.fundMappingForm.controls.outstandingAmountCondition.hasError("required")?18:-1)}}function Xli(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Minimum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zli(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",44),p(5,"translate"),E(6,Xli,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Minimum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Minimum Value"))),a(2),I(t.fundMappingForm.controls.minOutstandingAmount.hasError("required")?6:-1)}}function esi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Comparison Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tsi(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",45),p(5,"translate"),E(6,esi,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Comparison Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Comparison Value"))),a(2),I(t.fundMappingForm.controls.outstandingAmount.hasError("required")?6:-1)}}function isi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Maximum Value")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function nsi(e,o){if(e&1&&(l(0,"mat-form-field",16)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",46),p(5,"translate"),E(6,isi,7,9,"mat-error"),r()),e&2){let t=w(3);a(2),h(m(3,4,"labels.inputs.Maximum Value")),a(2),g("placeholder",Le(m(5,6,"labels.inputs.Maximum Value"))),a(2),I(t.fundMappingForm.controls.maxOutstandingAmount.hasError("required")?6:-1)}}function osi(e,o){if(e&1&&(l(0,"div",28),E(1,Kli,19,7,"mat-form-field",16),E(2,Zli,7,8,"mat-form-field",16),E(3,tsi,7,8,"mat-form-field",16),E(4,nsi,7,8,"mat-form-field",16),r()),e&2){let t=w(2);a(),I(t.fundMappingForm.contains("outstandingAmountCondition")?1:-1),a(),I(t.fundMappingForm.contains("minOutstandingAmount")?2:-1),a(),I(t.fundMappingForm.contains("outstandingAmount")?3:-1),a(),I(t.fundMappingForm.contains("maxOutstandingAmount")?4:-1)}}function asi(e,o){if(e&1){let t=Y();l(0,"mat-card",2)(1,"form",3),R("ngSubmit",function(){V(t);let i=w();return q(i.submit())}),l(2,"mat-card-content")(3,"div",4)(4,"mat-form-field",5)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",6)(9,"mat-option",7),c(10),p(11,"translate"),r(),l(12,"mat-option",8),c(13),p(14,"translate"),r(),l(15,"mat-option",9),c(16),p(17,"translate"),r(),l(18,"mat-option",10),c(19),p(20,"translate"),r(),l(21,"mat-option",11),c(22),p(23,"translate"),r()()(),b(24,"span",12),l(25,"mat-form-field",5)(26,"mat-label"),c(27),p(28,"translate"),r(),l(29,"mat-select",13),Se(30,Rli,2,2,"mat-option",14,Pe),r()(),l(32,"mat-form-field",5)(33,"mat-label"),c(34),p(35,"translate"),r(),l(36,"mat-select",15),Se(37,Nli,2,2,"mat-option",14,Pe),r()(),l(39,"mat-form-field",16)(40,"mat-label"),c(41),p(42,"translate"),r(),l(43,"mat-select",17)(44,"mat-option",18),c(45),p(46,"translate"),r(),l(47,"mat-option",19),c(48),p(49,"translate"),r(),l(50,"mat-option",20),c(51),p(52,"translate"),r()(),E(53,Lli,7,9,"mat-error"),r(),l(54,"mat-form-field",21),R("click",function(){V(t);let i=ve(62);return q(i.open())}),l(55,"mat-label"),c(56),p(57,"translate"),r(),b(58,"input",22),p(59,"translate"),b(60,"mat-datepicker-toggle",23)(61,"mat-datepicker",null,0),E(63,Vli,7,9,"mat-error"),r(),l(64,"mat-form-field",21),R("click",function(){V(t);let i=ve(72);return q(i.open())}),l(65,"mat-label"),c(66),p(67,"translate"),r(),b(68,"input",24),p(69,"translate"),b(70,"mat-datepicker-toggle",23)(71,"mat-datepicker",null,1),E(73,qli,7,9,"mat-error"),r(),l(74,"mat-checkbox",25),c(75),p(76,"translate"),r(),E(77,Yli,5,4,"div",26),l(78,"mat-checkbox",27),c(79),p(80,"translate"),r(),E(81,osi,5,4,"div",28),r()(),l(82,"mat-card-actions",29)(83,"button",30),c(84),p(85,"translate"),r(),l(86,"button",31),b(87,"fa-icon",32),c(88),p(89,"translate"),r()()()()}if(e&2){let t=ve(62),n=ve(72),i=w();a(),g("formGroup",i.fundMappingForm),a(5),h(m(7,38,"labels.inputs.Loan Status")),a(4),h(m(11,40,"labels.inputs.All")),a(3),h(m(14,42,"labels.inputs.Active")),a(3),h(m(17,44,"labels.inputs.Overpaid")),a(3),h(m(20,46,"labels.inputs.Closed (obligations met)")),a(3),h(m(23,48,"labels.inputs.Closed (written-off)")),a(5),h(m(28,50,"labels.inputs.Product")),a(3),we(i.advanceSearchTemplate.loanProducts),a(4),h(m(35,52,"labels.inputs.Office")),a(3),we(i.advanceSearchTemplate.offices),a(4),h(m(42,54,"labels.inputs.Date Type")),a(4),h(m(46,56,"labels.inputs.Approval Date")),a(3),h(m(49,58,"labels.inputs.Creation Date")),a(3),h(m(52,60,"labels.inputs.Disbursement Date")),a(2),I(i.fundMappingForm.controls.loanDateOption.hasError("required")?53:-1),a(3),h(m(57,62,"labels.inputs.From Date")),a(2),g("placeholder",Le(m(59,64,"labels.inputs.From Date")))("min",i.minDate)("max",i.maxDate)("matDatepicker",t),a(2),g("for",t),a(3),I(i.fundMappingForm.controls.loanFromDate.hasError("required")?63:-1),a(3),h(m(67,66,"labels.inputs.To Date")),a(2),g("placeholder",Le(m(69,68,"labels.inputs.To Date")))("min",i.minDate)("max",i.maxDate)("matDatepicker",n),a(2),g("for",n),a(3),I(i.fundMappingForm.controls.loanToDate.hasError("required")?73:-1),a(2),v(" ",m(76,70,"labels.inputs.Loan Outstanding Percentage")," "),a(2),I(i.fundMappingForm.value.includeOutStandingAmountPercentage?77:-1),a(2),v(" ",m(80,72,"labels.inputs.Loan Outstanding Amount")," "),a(2),I(i.fundMappingForm.value.includeOutstandingAmount?81:-1),a(2),g("routerLink",oe(78,kli)),a(),v(" ",m(85,74,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.fundMappingForm.valid),a(2),v("\xA0 ",m(89,76,"labels.buttons.Summary")," ")}}function rsi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office Name")))}function lsi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function ssi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function csi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanProductName)}}function psi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Count")))}function msi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.count)}}function dsi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Outstanding")))}function usi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanOutStanding)}}function fsi(e,o){e&1&&(l(0,"th",60),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Percentage")))}function hsi(e,o){if(e&1&&(l(0,"td",61),c(1),r()),e&2){let t=o.$implicit;a(),h(t.percentage)}}function gsi(e,o){e&1&&b(0,"tr",62)}function _si(e,o){e&1&&b(0,"tr",63)}function Csi(e,o){if(e&1){let t=Y();l(0,"div",2)(1,"mat-card")(2,"div",47)(3,"button",48),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),l(6,"table",49),X(7,50),F(8,rsi,3,3,"th",51)(9,lsi,2,1,"td",52),Z(),X(10,53),F(11,ssi,3,3,"th",51)(12,csi,2,1,"td",52),Z(),X(13,54),F(14,psi,3,3,"th",51)(15,msi,2,1,"td",52),Z(),X(16,55),F(17,dsi,3,3,"th",51)(18,usi,2,1,"td",52),Z(),X(19,56),F(20,fsi,3,3,"th",51)(21,hsi,2,1,"td",52),Z(),F(22,gsi,1,0,"tr",57)(23,_si,1,0,"tr",58),r(),b(24,"mat-paginator",59),r()()}if(e&2){let t=w();a(4),v(" ",m(5,5,"labels.buttons.Parameters")," "),a(2),g("dataSource",t.dataSource),a(16),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(7,Bli))}}var bw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.organizationService=T(li),this.settingsService=T(Ot),this.route=T(Ie),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.displayedColumns=["officeName","productName","count","outstanding","percentage"],this.route.data.subscribe(t=>{this.advanceSearchTemplate=t.advanceSearchTemplate})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createFundMappingForm(),this.buildDependencies()}nonEmptyArrayValidator(t){let n=t.value;return!n||!Array.isArray(n)||n.length===0?{required:!0}:n.every(i=>i===""||i===null||i===void 0)?{required:!0}:null}createFundMappingForm(){this.fundMappingForm=this.formBuilder.group({loanStatus:[[],this.nonEmptyArrayValidator.bind(this)],loanProducts:[[],this.nonEmptyArrayValidator.bind(this)],offices:[[],this.nonEmptyArrayValidator.bind(this)],loanDateOption:["",ce.required],loanFromDate:["",ce.required],loanToDate:["",ce.required],includeOutStandingAmountPercentage:[!1],includeOutstandingAmount:[!1]})}buildDependencies(){this.fundMappingForm.get("includeOutStandingAmountPercentage").valueChanges.subscribe(t=>{t?(this.fundMappingForm.addControl("outStandingAmountPercentageCondition",new it("",ce.required)),this.fundMappingForm.get("outStandingAmountPercentageCondition").valueChanges.subscribe(n=>{n==="between"?(this.fundMappingForm.addControl("minOutStandingAmountPercentage",new it("",ce.required)),this.fundMappingForm.addControl("maxOutStandingAmountPercentage",new it("",ce.required)),this.fundMappingForm.removeControl("outStandingAmountPercentage")):(this.fundMappingForm.addControl("outStandingAmountPercentage",new it("",ce.required)),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"))}),this.fundMappingForm.get("outStandingAmountPercentageCondition").patchValue("between")):(this.fundMappingForm.removeControl("outStandingAmountPercentageCondition"),this.fundMappingForm.removeControl("minOutStandingAmountPercentage"),this.fundMappingForm.removeControl("maxOutStandingAmountPercentage"),this.fundMappingForm.removeControl("outStandingAmountPercentage"))}),this.fundMappingForm.get("includeOutStandingAmountPercentage").patchValue(!0),this.fundMappingForm.get("includeOutstandingAmount").valueChanges.subscribe(t=>{t?(this.fundMappingForm.addControl("outstandingAmountCondition",new it("",ce.required)),this.fundMappingForm.get("outstandingAmountCondition").valueChanges.subscribe(n=>{n==="between"?(this.fundMappingForm.addControl("minOutstandingAmount",new it("",ce.required)),this.fundMappingForm.addControl("maxOutstandingAmount",new it("",ce.required)),this.fundMappingForm.removeControl("outstandingAmount")):(this.fundMappingForm.addControl("outstandingAmount",new it("",ce.required)),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"))}),this.fundMappingForm.get("outstandingAmountCondition").patchValue("between")):(this.fundMappingForm.removeControl("outstandingAmountCondition"),this.fundMappingForm.removeControl("minOutstandingAmount"),this.fundMappingForm.removeControl("maxOutstandingAmount"),this.fundMappingForm.removeControl("outstandingAmount"))}),this.fundMappingForm.get("includeOutstandingAmount").patchValue(!0)}setLoans(t){this.dataSource=new Wt(t),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}submit(){this.isCollapsed=!0;let t=this.fundMappingForm.value,n=this.settingsService.language.code,i=this.settingsService.dateFormat,s=this.fundMappingForm.value.loanFromDate,d=this.fundMappingForm.value.loanToDate;if(t.loanFromDate instanceof Date&&(t.loanFromDate=this.dateUtils.formatDate(s,i)),this.fundMappingForm.invalid){this.fundMappingForm.markAllAsTouched();return}t.loanToDate instanceof Date&&(t.loanToDate=this.dateUtils.formatDate(d,i));let u=qt(at({},t),{entities:["loans"],dateFormat:i,locale:n});this.organizationService.retrieveAdvanceSearchResults(u).subscribe(f=>{this.setLoans(f)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-fund-mapping"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:2,vars:2,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["formControlName","loanStatus","multiple",""],["value","all"],["value","active"],["value","closed"],["value","overpaid"],["value","writeoff"],[1,"flex-48","hide-lt-md"],["formControlName","loanProducts","multiple",""],[3,"value"],["formControlName","offices","multiple",""],[1,"flex-31"],["required","","formControlName","loanDateOption"],["value","approvalDate"],["value","createdDate"],["value","disbursalDate"],[1,"flex-31",3,"click"],["matInput","","formControlName","loanFromDate","required","",3,"min","max","matDatepicker","placeholder"],["matSuffix","",3,"for"],["matInput","","formControlName","loanToDate","required","",3,"min","max","matDatepicker","placeholder"],["labelPosition","before","formControlName","includeOutStandingAmountPercentage",1,"margin-b","flex-73"],[1,"flex-fill","layout-row-wrap","gap-2percent","layout-xs-column"],["labelPosition","before","formControlName","includeOutstandingAmount",1,"flex-73","margin-b"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary","type","submit",3,"disabled"],["icon","search"],["required","","formControlName","outStandingAmountPercentageCondition"],["value","between"],["value","<="],["value",">="],["value","<"],["value",">"],["value","="],["type","number","matInput","","required","","formControlName","minOutStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","outStandingAmountPercentage",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutStandingAmountPercentage",3,"placeholder"],["required","","formControlName","outstandingAmountCondition"],["type","number","matInput","","required","","formControlName","minOutstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","outstandingAmount",3,"placeholder"],["type","number","matInput","","required","","formControlName","maxOutstandingAmount",3,"placeholder"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","officeName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","count"],["matColumnDef","outstanding"],["matColumnDef","percentage"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(E(0,asi,90,79,"mat-card",2),E(1,Csi,25,8,"div",2)),n&2&&(I(i.isCollapsed?-1:0),a(),I(i.isCollapsed?1:-1))},dependencies:[ue,fe,tt,st,tn,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%]{max-width:73rem}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var yw=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Sw=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var ww=(()=>{class e{get data(){return this.dataChange.value}constructor(){this.dataChange=new Ra([]),this.TREE_DATA={}}initialize(t){this.TREE_DATA=t;let n=this.buildFileTree(this.TREE_DATA,0);this.dataChange.next(n)}buildFileTree(t,n){return Object.keys(t).reduce((i,s)=>{let d=t[s],u=new Sw;return u.item=s,d!=null&&(typeof d=="object"?u.children=this.buildFileTree(d,n+1):u.item=d),i.concat(u)},[])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pw=(()=>{class e{setEmptyObjectsToNull(t){Object.keys(t).forEach(n=>{Object.keys(t[n]).length===0?t[n]=null:this.setEmptyObjectsToNull(t[n])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var vsi=()=>["../"];function xsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.From Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function ysi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.To Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ssi(e,o){if(e&1&&(l(0,"mat-option",12),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.value," ")}}function wsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment Scheduling Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Psi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment scheduled to")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Tsi(e,o){if(e&1){let t=Y();l(0,"mat-form-field",7),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",20)(5,"mat-datepicker-toggle",9)(6,"mat-datepicker",null,2),E(8,Psi,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Repayment scheduled to")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.holidayForm.controls.repaymentsRescheduledTo.hasError("required")?8:-1)}}function Msi(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",21),b(1,"button",22),l(2,"mat-checkbox",23),R("change",function(){let i=V(t).$implicit,s=w();return q(s.officeLeafItemSelectionToggle(i))}),c(3),r()()}if(e&2){let t=o.$implicit,n=w();a(2),g("checked",n.checklistSelection.isSelected(t)),a(),h(n.officesDict[t.item].name)}}function Dsi(e,o){if(e&1){let t=Y();l(0,"mat-tree-node",24)(1,"button",25)(2,"mat-icon",26),c(3),r()(),l(4,"mat-checkbox",27),R("change",function(){let i=V(t).$implicit,s=w();return q(s.officeItemSelectionToggle(i))}),c(5),r()()}if(e&2){let t=o.$implicit,n=w();a(),Dn("aria-label","toggle "+t.filename),a(2),v(" ",n.treeControl.isExpanded(t)?"expand_more":"chevron_right"," "),a(),g("checked",n.descendantsAllSelected(t)),a(),h(n.officesDict[t.item].name)}}function Esi(e,o){if(e&1&&(l(0,"button",28),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.holidayForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Tw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.dateUtils=T(Zt),this.organizationService=T(li),this.settings=T(Ot),this.router=T(qe),this._database=T(ww),this.createHoliday=T(Pw),this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.officesDict={},this.flatNodeMap=new Map,this.nestedNodeMap=new Map,this.selectedParent=null,this.newItemName="",this.checklistSelection=new gr(!0),this.getLevel=n=>n.level,this.isExpandable=n=>n.expandable,this.getChildren=n=>n.children,this.hasChild=(n,i)=>i.expandable,this.hasNoContent=(n,i)=>i.item==="",this.transformer=(n,i)=>{let s=this.nestedNodeMap.get(n),d=s&&s.item===n.item?s:new yw;return d.item=n.item,d.level=i,d.expandable=!!n.children?.length,this.flatNodeMap.set(d,n),this.nestedNodeMap.set(n,d),d};let t=this._database;this.route.data.subscribe(n=>{this.officesData=n.offices,this.repaymentSchedulingTypes=n.holidayTemplate,this.constructOfficeHierarchy(),t.initialize(this.officesTrie)}),this.treeFlattener=new yk(this.transformer,this.getLevel,this.isExpandable,this.getChildren),this.treeControl=new xk(this.getLevel,this.isExpandable),this.dataSource=new Sk(this.treeControl,this.treeFlattener),this._database.dataChange.subscribe(n=>{this.dataSource.data=n})}constructOfficeHierarchy(){let t={};this.officesData.forEach(n=>{this.officesDict[n.id]=n;let i=n.hierarchy.split(".");i=i.filter(d=>d.length>0);let s=t;i.length===0?s[n.id]={}:(s=t[Object.keys(t)[0]],i.forEach(d=>{d in s||(s[d]={}),s=s[d]}))}),this.createHoliday.setEmptyObjectsToNull(t),this.officesTrie=t}descendantsAllSelected(t){return this.checklistSelection.isSelected(t)}descendantsPartiallySelected(t){return this.treeControl.getDescendants(t).some(s=>this.checklistSelection.isSelected(s))&&!this.descendantsAllSelected(t)}setSelectedOffices(){this.holidayForm.patchValue({offices:this.checklistSelection.selected.map(t=>t.item)})}officeItemSelectionToggle(t){this.checklistSelection.toggle(t);let n=this.treeControl.getDescendants(t);this.checklistSelection.isSelected(t)?this.checklistSelection.select(...n):this.checklistSelection.deselect(...n),n.forEach(i=>this.checklistSelection.isSelected(i)),this.setSelectedOffices()}officeLeafItemSelectionToggle(t){this.checklistSelection.toggle(t),this.setSelectedOffices()}checkAllParentsSelection(t){let n=this.getParentNode(t);for(;n;)this.checkRootNodeSelection(n),n=this.getParentNode(n)}checkRootNodeSelection(t){let n=this.checklistSelection.isSelected(t),i=this.treeControl.getDescendants(t),s=i.length>0&&i.every(d=>this.checklistSelection.isSelected(d));n&&!s?this.checklistSelection.deselect(t):!n&&s&&this.checklistSelection.select(t)}getParentNode(t){let n=this.getLevel(t);if(n<1)return null;let i=this.treeControl.dataNodes.indexOf(t)-1;for(let s=i;s>=0;s--){let d=this.treeControl.dataNodes[s];if(this.getLevel(d){t===2?this.holidayForm.addControl("repaymentsRescheduledTo",new it("",ce.required)):this.holidayForm.removeControl("repaymentsRescheduledTo")})}submit(){let t=this.holidayForm.value,n=this.settings.dateFormat,i=this.settings.language.code,s=this.holidayForm.value.fromDate,d=this.holidayForm.value.toDate;if(t.fromDate=this.dateUtils.formatDateAsString(s,n),t.toDate=this.dateUtils.formatDateAsString(d,n),this.holidayForm.contains("repaymentsRescheduledTo")){let _=this.holidayForm.value.repaymentsRescheduledTo;t.repaymentsRescheduledTo=this.dateUtils.formatDateAsString(_,n)}let u=this.holidayForm.value.offices.map(_=>({officeId:Number.parseInt(_,10)})),f=qt(at({},t),{dateFormat:n,locale:i,offices:u});this.organizationService.createHoliday(f).subscribe(_=>{this.router.navigate(["../",_.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-holiday"]],decls:54,vars:41,consts:[["fromDatePicker",""],["toDatePicker",""],["repaymentDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],[3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],["required","","formControlName","reschedulingType"],[3,"value"],["matInput","","formControlName","description"],[3,"dataSource","treeControl"],["matTreeNodeToggle","","matTreeNodePadding","",4,"matTreeNodeDef"],["matTreeNodePadding","",4,"matTreeNodeDef","matTreeNodeDefWhen"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["matInput","","required","","formControlName","repaymentsRescheduledTo",3,"min","max","matDatepicker"],["matTreeNodeToggle","","matTreeNodePadding",""],["mat-icon-button","","disabled",""],[1,"checklist-leaf-node",3,"change","checked"],["matTreeNodePadding",""],["type","button","mat-icon-button","","matTreeNodeToggle",""],[1,"mat-icon-rtl-mirror"],[3,"change","checked"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",3)(1,"mat-card")(2,"form",4),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",5)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",6),E(10,xsi,7,9,"mat-error"),r(),l(11,"mat-form-field",7),R("click",function(){V(s);let u=ve(18);return q(u.open())}),l(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",8)(16,"mat-datepicker-toggle",9)(17,"mat-datepicker",null,0),E(19,bsi,7,9,"mat-error"),r(),l(20,"mat-form-field",7),R("click",function(){V(s);let u=ve(27);return q(u.open())}),l(21,"mat-label"),c(22),p(23,"translate"),r(),b(24,"input",10)(25,"mat-datepicker-toggle",9)(26,"mat-datepicker",null,1),E(28,ysi,7,9,"mat-error"),r(),l(29,"mat-form-field")(30,"mat-label"),c(31),p(32,"translate"),r(),l(33,"mat-select",11),Se(34,Ssi,2,2,"mat-option",12,Pe),r(),E(36,wsi,7,9,"mat-error"),r(),E(37,Tsi,9,8,"mat-form-field"),l(38,"mat-form-field")(39,"mat-label"),c(40),p(41,"translate"),r(),b(42,"input",13),r(),l(43,"label"),c(44),p(45,"translate"),r(),l(46,"mat-tree",14),F(47,Msi,4,2,"mat-tree-node",15)(48,Dsi,6,4,"mat-tree-node",16),r()()(),l(49,"mat-card-actions",17)(50,"button",18),c(51),p(52,"translate"),r(),F(53,Esi,3,4,"button",19),r()()()()}if(n&2){let s=ve(18),d=ve(27);a(2),g("formGroup",i.holidayForm),a(5),h(m(8,26,"labels.inputs.name")),a(3),I(i.holidayForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,28,"labels.inputs.From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s),a(),g("for",s),a(3),I(i.holidayForm.controls.fromDate.hasError("required")?19:-1),a(3),h(m(23,30,"labels.inputs.To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d),a(),g("for",d),a(3),I(i.holidayForm.controls.toDate.hasError("required")?28:-1),a(3),h(m(32,32,"labels.inputs.Repayment Scheduling Type")),a(3),we(i.repaymentSchedulingTypes),a(2),I(i.holidayForm.controls.reschedulingType.hasError("required")?36:-1),a(),I(i.holidayForm.contains("repaymentsRescheduledTo")?37:-1),a(3),h(m(41,34,"labels.inputs.Description")),a(4),h(m(45,36,"labels.inputs.Select applicable offices")),a(2),g("dataSource",i.dataSource)("treeControl",i.treeControl),a(2),g("matTreeNodeDefWhen",i.hasChild),a(2),g("routerLink",oe(40,vsi)),a(),v(" ",m(52,38,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_HOLIDAY")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,Ke,M0,T0,P0,D0,bk,wi,Yo,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var W6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getProvisioningCriteria(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Dl=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Q6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getEmployees()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Y6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getEmployee(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var J6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getEmployee(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Mw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getCurrencies()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var K6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getSmsCampaigns()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var X6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getAdhocQueries()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Z6=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getAdhocQuery(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var eO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getTellers()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Dw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getTeller(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Ew=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return n?this.organizationService.getPaymentType(n):this.organizationService.getPaymentTypes()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var tO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getPasswordPreferencesTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var iO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getEntityDataTableChecks()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var nO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getWorkingDays()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var oO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("officeId");return this.organizationService.getOffice(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var aO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getAdhocQueryTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Iw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getProvisioningCriterias()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Ow=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id"),i=t.parent.parent.paramMap.get("id");return this.organizationService.getCashier(i,n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var rO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.paramMap.get("id");return this.organizationService.getCashiers(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Vu=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getHoliday(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var lO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.paramMap.get("officeId");return this.organizationService.getOffice(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var sO=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){let n=t.parent.parent.paramMap.get("officeId"),i=t.paramMap.get("datatableName");return this.systemService.getEntityDatatable(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var cO=(()=>{class e{constructor(){this.systemService=T(ii)}resolve(t){return this.systemService.getEntityDatatables("m_office")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var pO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getSmsCampaign(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Aw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getFunds()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Fw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.paramMap.get("id"),i=t.parent.parent.paramMap.get("id");return this.organizationService.getCashierTransactionTemplate(i,n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var kw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.parent.parent.paramMap.get("id");return this.organizationService.getCashierTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Bw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getHolidayTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var mO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getAdhocQueryAndTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var dO=(()=>{class e{constructor(){this.organizationService=T(li),this.bulkImportsArray=cw}getEntityName(t){return this.bulkImportsArray.find(i=>t===i.name).entityType}resolve(t){let n=this.getEntityName(t.params["import-name"]);return this.organizationService.getImports(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Rw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getSmsCampaignTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var uO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getEntityDataTableChecksTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var fO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getProvisioningCriteriaTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var hO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getProvisioningCriteria(n,!0)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var gO=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getStandingInstructionTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var _O=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(){return this.organizationService.getAdvanceSearchTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Nw=(()=>{class e{constructor(){this.organizationService=T(li)}resolve(t){let n=t.paramMap.get("id");return this.organizationService.getFund(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Isi=()=>["../"],Osi=()=>["edit"];function Asi(e,o){e&1&&(l(0,"button",9),b(1,"fa-icon",10),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Osi)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}var Lw=(()=>{class e{constructor(){this.route=T(Ie),this.route.data.subscribe(t=>{this.fundData=t.fundData})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-fund"]],decls:20,vars:15,consts:[[1,"layout-row","align-end","gap-2px","responsive-column","container","m-b-20"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],["completed","true",3,"externalId"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,Asi,4,5,"button",1),r(),l(2,"div",2)(3,"mat-card")(4,"mat-card-content")(5,"div",3)(6,"div",4),c(7),p(8,"translate"),r(),l(9,"div",5),c(10),r(),l(11,"div",4),c(12),p(13,"translate"),r(),l(14,"div",5),b(15,"mifosx-external-identifier",6),r()(),l(16,"div",7)(17,"button",8),c(18),p(19,"translate"),r()()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_FUND"),a(6),v(" ",m(8,8,"labels.inputs.name")," "),a(3),v(" ",i.fundData.name," "),a(2),v(" ",m(13,10,"labels.inputs.External Id")," "),a(3),g("externalId",Le(i.fundData.externalId)),a(2),g("routerLink",oe(14,Isi)),a(),v(" ",m(19,12,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,Da,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var Fsi=()=>["../"];function ksi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bsi(e,o){if(e&1&&(l(0,"button",8),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.fundForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var Vw=(()=>{class e{constructor(){this.organizationService=T(li),this.formBuilder=T(nt),this.router=T(qe),this.route=T(Ie),this.route.data.subscribe(t=>{this.fundData=t.fundData})}ngOnInit(){this.createFundForm()}createFundForm(){this.fundForm=this.formBuilder.group({name:[this.fundData.name,ce.required],externalId:[this.fundData.externalId]})}submit(){let t=this.fundForm.getRawValue();this.organizationService.editFund(this.fundData.id.toString(),t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-fund"]],decls:21,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],["matInput","","autofocus","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,ksi,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),r()()(),l(16,"mat-card-actions",5)(17,"button",6),c(18),p(19,"translate"),r(),F(20,Bsi,3,4,"button",7),r()()()()),n&2&&(a(2),g("formGroup",i.fundForm),a(5),h(m(8,7,"labels.inputs.name")),a(3),I(i.fundForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,9,"labels.inputs.External Id")),a(4),g("routerLink",oe(13,Fsi)),a(),v(" ",m(19,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","UPDATE_FUND"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Rsi=()=>["../"];function Nsi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Lsi(e,o){if(e&1&&(l(0,"button",8),c(1),p(2,"translate"),r()),e&2){let t=w();g("disabled",!t.fundForm.valid),a(),v(" ",m(2,2,"labels.buttons.Submit")," ")}}var qw=(()=>{class e{constructor(){this.organizationService=T(li),this.formBuilder=T(nt),this.router=T(qe),this.route=T(Ie)}ngOnInit(){this.createFundForm()}createFundForm(){this.fundForm=this.formBuilder.group({name:["",ce.required],externalId:[""]})}submit(){let t=this.fundForm.getRawValue();this.organizationService.createFund(t).subscribe(n=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-fund"]],decls:21,vars:14,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["matInput","","required","","autofocus","","formControlName","name"],["matInput","","autofocus","","formControlName","externalId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field")(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",3),E(10,Nsi,7,9,"mat-error"),r(),l(11,"mat-form-field")(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",4),r()()(),l(16,"mat-card-actions",5)(17,"button",6),c(18),p(19,"translate"),r(),F(20,Lsi,3,4,"button",7),r()()()()),n&2&&(a(2),g("formGroup",i.fundForm),a(5),h(m(8,7,"labels.inputs.name")),a(3),I(i.fundForm.controls.name.hasError("required")?10:-1),a(3),h(m(14,9,"labels.inputs.External Id")),a(4),g("routerLink",oe(13,Rsi)),a(),v(" ",m(19,11,"labels.buttons.Cancel")," "),a(2),g("mifosxHasPermission","CREATE_FUND"))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,xe,Ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var Vsi=()=>[50,100,200];function qsi(e,o){e&1&&(l(0,"div",15),b(1,"div",18),r())}function zsi(e,o){if(e&1&&(l(0,"tr")(1,"td",26)(2,"b"),c(3),p(4,"translate"),r()(),l(5,"td",33)(6,"table")(7,"tbody")(8,"tr")(9,"td",34)(10,"b"),c(11),p(12,"translate"),r()(),l(13,"td",35),c(14),p(15,"formatNumber"),r()(),l(16,"tr")(17,"td",34)(18,"b"),c(19),p(20,"translate"),r()(),l(21,"td",35),c(22),p(23,"formatNumber"),r()(),l(24,"tr")(25,"td",34)(26,"b"),c(27),p(28,"translate"),r()(),l(29,"td",35),c(30),p(31,"formatNumber"),r()(),l(32,"tr")(33,"td",34)(34,"b"),c(35),p(36,"translate"),r()(),l(37,"td",35),c(38),p(39,"formatNumber"),r()(),l(40,"tr")(41,"td",34)(42,"b"),c(43),p(44,"translate"),r()(),l(45,"td",35),c(46),p(47,"formatNumber"),r()(),l(48,"tr")(49,"td",34)(50,"b"),c(51),p(52,"translate"),r()(),l(53,"td",35),c(54),p(55,"formatNumber"),r()()()()()()),e&2){let t=w().$implicit;a(3),v("",m(4,13,"labels.inputs.Details")," :"),a(8),v("",m(12,15,"labels.inputs.Principal Outstanding")," :"),a(3),v(" ",m(15,17,t.details.totalPrincipalOutstanding)," "),a(5),v("",m(20,19,"labels.inputs.Interest Outstanding")," :"),a(3),v(" ",m(23,21,t.details.totalInterestOutstanding)," "),a(5),v("",m(28,23,"labels.inputs.Fees Outstanding")," :"),a(3),v(" ",m(31,25,t.details.totalFeeChargesOutstanding)," "),a(5),v("",m(36,27,"labels.inputs.Penalties Outstanding")," :"),a(3),v(" ",m(39,29,t.details.totalPenaltyChargesOutstanding)," "),a(5),v("",m(44,31,"labels.inputs.Outstanding")," :"),a(3),h(m(47,33,t.details.totalOutstanding)),a(5),v("",m(52,35,"labels.inputs.Overpaid")," :"),a(3),h(m(55,37,t.details.totalOverpaid))}}function Hsi(e,o){if(e&1){let t=Y();l(0,"div",32)(1,"button",36),p(2,"translate"),R("click",function(){V(t);let i=w().$implicit,s=w(2);return q(s.cancelPendingSale(i))}),b(3,"fa-icon",37),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"labels.text.Cancel Pending Sale"))))}function Gsi(e,o){if(e&1&&(l(0,"mat-expansion-panel",19)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"table")(4,"tr")(5,"td")(6,"div",20),b(7,"fa-icon",21),l(8,"span",22),c(9),r()()(),l(10,"td",23),c(11),p(12,"translate"),r(),l(13,"td"),b(14,"mifosx-external-identifier",24),r(),l(15,"td",23),c(16),p(17,"translate"),r(),l(18,"td"),b(19,"mifosx-external-identifier",24),r(),l(20,"td",23),c(21),p(22,"translate"),r(),l(23,"td"),c(24),p(25,"dateFormat"),r()()()()(),l(26,"div",25)(27,"table")(28,"tbody")(29,"tr")(30,"td",26)(31,"b"),c(32),p(33,"translate"),r()(),l(34,"td",27)(35,"div",28),b(36,"fa-icon",21),l(37,"span",29),c(38),r()()(),l(39,"td",26)(40,"b"),c(41),p(42,"translate"),r()(),l(43,"td",27),b(44,"mifosx-external-identifier",30),r()(),l(45,"tr")(46,"td",26)(47,"b"),c(48),p(49,"translate"),r()(),l(50,"td",26),c(51),p(52,"dateFormat"),r(),l(53,"td",26)(54,"b"),c(55),p(56,"translate"),r()(),l(57,"td",26),c(58),p(59,"dateFormat"),r()(),E(60,zsi,56,39,"tr"),r()()(),b(61,"mat-divider",31),E(62,Hsi,4,4,"div",32),r()),e&2){let t=o.$implicit,n=w(2);a(6),g("ngClass",n.itemStatus(t.status)),a(3),h(t.status),a(2),h(m(12,23,"labels.inputs.Owner External Id")),a(3),g("externalId",Le(t.owner.externalId)),a(2),h(m(17,25,"labels.inputs.Transfer External Id")),a(3),g("externalId",Le(t.transferExternalId)),a(2),h(m(22,27,"labels.inputs.Effective From")),a(3),h(m(25,29,t.effectiveFrom)),a(8),v("",m(33,31,"labels.inputs.Status")," :"),a(3),g("ngClass",n.itemStatus(t.status)),a(3),h(t.status),a(3),v("",m(42,33,"labels.inputs.Owner External Id")," :"),a(3),g("externalId",Le(t.owner.externalId)),a(4),v("",m(49,35,"labels.inputs.Settlement Date")," :"),a(3),v(" ",m(52,37,t.settlementDate)," "),a(4),v("",m(56,39,"labels.inputs.Effective Date")," :"),a(3),v(" ",m(59,41,t.effectiveFrom)," "),a(2),I(t.details?60:-1),a(),g("inset",!0),a(),I(n.canBeCancelled(t)?62:-1)}}function jsi(e,o){if(e&1&&(l(0,"mat-accordion"),Se(1,Gsi,63,43,"mat-expansion-panel",19,Pe),r()),e&2){let t=w();a(),we(t.searchResults)}}function $si(e,o){if(e&1){let t=Y();l(0,"mat-paginator",38),R("page",function(i){V(t);let s=w();return q(s.pageChanged(i))}),r()}if(e&2){let t=w();g("pageSize",t.pageSize)("pageSizeOptions",oe(3,Vsi))("length",t.totalRows)}}function Usi(e,o){e&1&&(l(0,"div",17)(1,"div",39),b(2,"i",40),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No data found")," "))}var zw=(()=>{class e{constructor(){this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.externalAssetOwner=T(Nk),this.externalAssetOwnerService=T(Xg),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.searchResults=[],this.searchText=new it(""),this.effectiveFromDate=new it(""),this.effectiveToDate=new it(""),this.settlementFromDate=new it(""),this.settlementToDate=new it(""),this.dataSource=new Wt,this.existsDataToFilter=!1,this.isLoading=!1,this.pageSize=50,this.currentPage=0,this.filterText="",this.sortAttribute="",this.sortDirection="",this.entryTypeFilter=new it(""),this.entryTypeFilterData=[{option:"All",value:""},{option:"Sell",value:!0},{option:"Buyed Back",value:!1}],this.displayedColumns=["status","effectiveFrom","ownerExternalId","loanAccount","transferExternalId","settlementDate","purchasePriceRatio","totalAmount","actions"]}ngOnInit(){this.maxDate=this.settingsService.maxAllowedDate,this.searchEAO()}itemStatus(t){return this.externalAssetOwner.itemStatus(t)}isPending(t){return this.externalAssetOwner.isPending(t)}isPendingOrCanceled(t){return this.externalAssetOwner.isPendingOrCanceled(t)}isBuyBackPending(t){return this.externalAssetOwner.isBuyBackPending(t)}canBeCancelled(t){return this.externalAssetOwner.validateStatus(t,"PENDING")}canBeSold(t){return this.externalAssetOwner.canBeSold(t)}canBeBuyed(t){return this.externalAssetOwner.validateStatus(t,"ACTIVE")}searchEAO(){this.isLoading=!0;let t={request:{},page:this.currentPage,size:this.pageSize},n="yyyy-MM-dd",i={};this.searchText.value&&(i.text=this.searchText.value),this.effectiveFromDate.value&&(i.effectiveFromDate=this.dateUtils.formatDate(this.effectiveFromDate.value,n)),this.effectiveToDate.value&&(i.effectiveToDate=this.dateUtils.formatDate(this.effectiveToDate.value,n)),this.settlementFromDate.value&&(i.settlementFromDate=this.dateUtils.formatDate(this.settlementFromDate.value,n)),this.settlementToDate.value&&(i.settlementToDate=this.dateUtils.formatDate(this.settlementToDate.value,n)),t.request=i,this.externalAssetOwnerService.searchExternalAssetOwnerTransfer(t).subscribe(s=>{this.totalRows=s.totalElements,this.existsDataToFilter=s.totalElements>0,this.dataSource.data=s.content,this.searchResults=s.content,this.isLoading=!1})}transform(t){return t}pageChanged(t){this.pageSize=t.pageSize,this.currentPage=t.pageIndex,this.searchEAO()}cancelPendingSale(t){this.dialog.open(y0,{data:{cancelContext:`the Asset Transfer with the Owner External Id ${t.owner.externalId} `}}).afterClosed().subscribe(i=>{if(i.cancel){let s={transferExternalId:t.transferExternalId};this.externalAssetOwnerService.executeExternalAssetOwnerTransferCommand(t.transferId,s,"cancel").subscribe(d=>{this.reload()})}})}reload(){let t=this.router.url;this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}resetPaginator(){this.currentPage=0,this.paginator.firstPage()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-investors"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5),Ee(It,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:50,vars:43,consts:[["effectiveFromDatePicker",""],["effectiveToDatePicker",""],["settlementFromDatePicker",""],["settlementToDatePicker",""],[1,"container"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-18"],["matInput","",3,"formControl"],[1,"flex-18",3,"click"],["matInput","",3,"min","max","matDatepicker","formControl"],["matSuffix","",3,"for"],[1,"center","m-t-15","flex-98"],["mat-raised-button","","color","primary",3,"click"],["icon","search",1,"m-r-10"],[1,"mat-elevation-z8","container","m-t-20"],[1,"loader"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions","length"],[1,"alert"],[1,"loading"],[1,"record"],[1,"m-r-20",3,"ngClass"],["icon","stop"],[1,"m-l-10","status"],[1,"field-name"],[3,"externalId"],[1,"external-asset-transfer"],[1,"m-l-5","flex-25"],[1,"flex-25","m-l-5","left"],[3,"ngClass"],[1,"m-l-5","status"],["completed","true",3,"externalId"],[3,"inset"],[1,"record-actions","layout-row","align-flex-end"],[1,"flex-75","left"],[1,"flex-50","m-l-5"],[1,"flex-50","r-amount"],["mat-button","","color","warn",3,"click","matTooltip"],["icon","trash"],["showFirstLastButtons","",3,"page","pageSize","pageSizeOptions","length"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){if(n&1){let s=Y();l(0,"mat-card",4)(1,"mat-card-content")(2,"div",5)(3,"mat-form-field",6)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",7),r(),l(8,"mat-form-field",8),R("click",function(){V(s);let u=ve(15);return q(u.open())}),l(9,"mat-label"),c(10),p(11,"translate"),r(),b(12,"input",9)(13,"mat-datepicker-toggle",10)(14,"mat-datepicker",null,0),r(),l(16,"mat-form-field",8),R("click",function(){V(s);let u=ve(23);return q(u.open())}),l(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",9)(21,"mat-datepicker-toggle",10)(22,"mat-datepicker",null,1),r(),l(24,"mat-form-field",8),R("click",function(){V(s);let u=ve(31);return q(u.open())}),l(25,"mat-label"),c(26),p(27,"translate"),r(),b(28,"input",9)(29,"mat-datepicker-toggle",10)(30,"mat-datepicker",null,2),r(),l(32,"mat-form-field",8),R("click",function(){V(s);let u=ve(39);return q(u.open())}),l(33,"mat-label"),c(34),p(35,"translate"),r(),b(36,"input",9)(37,"mat-datepicker-toggle",10)(38,"mat-datepicker",null,3),r(),l(40,"div",11)(41,"button",12),R("click",function(){return V(s),q(i.searchEAO())}),b(42,"fa-icon",13),c(43),p(44,"translate"),r()()(),l(45,"div",14),E(46,qsi,2,0,"div",15),E(47,jsi,3,0,"mat-accordion"),E(48,$si,1,4,"mat-paginator",16),r(),E(49,Usi,5,3,"div",17),r()()}if(n&2){let s=ve(15),d=ve(23),u=ve(31),f=ve(39);a(5),h(m(6,31,"labels.text.Search by Text")),a(2),g("formControl",i.searchText),a(3),h(m(11,33,"labels.text.Effective Date From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",s)("formControl",i.effectiveFromDate),a(),g("for",s),a(5),h(m(19,35,"labels.text.Effective Date To")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",d)("formControl",i.effectiveToDate),a(),g("for",d),a(5),h(m(27,37,"labels.text.Settlement Date From")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",u)("formControl",i.settlementFromDate),a(),g("for",u),a(5),h(m(35,39,"labels.text.Settlement Date To")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",f)("formControl",i.settlementToDate),a(),g("for",f),a(6),v(" ",m(44,41,"labels.buttons.Search")," "),a(3),I(i.isLoading?46:-1),a(),I(i.existsDataToFilter?47:-1),a(),I(i.existsDataToFilter?48:-1),a(),I(i.existsDataToFilter?-1:49)}},dependencies:[ue,co,fe,st,$e,_n,Ue,Je,Fe,Be,ai,ze,mi,di,pi,xe,ke,Dr,Pr,Tr,Mr,Da,Ri,si,kt,Pi,he,In],styles:[".status[_ngcontent-%COMP%]{color:#000}.field-name[_ngcontent-%COMP%]{font-weight:800}.record-actions[_ngcontent-%COMP%]{margin-top:1%}.record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.external-asset-transfer[_ngcontent-%COMP%]{margin-top:10px;min-height:160px}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%]{margin-top:1%}.record[_ngcontent-%COMP%] .record-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{margin-right:1%}.record[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.record[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{line-height:30px;margin-left:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"],data:{animation:[Sr("detailExpand",[Ua("collapsed",Lo({height:"0px",minHeight:"0"})),Ua("expanded",Lo({height:"*"})),hr("expanded <=> collapsed",fr("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return e})();var Wsi=[_o.withShell([{path:"organization",data:{title:"Organization",breadcrumb:"Organization"},children:[{path:"",component:bS},{path:"provisioning-criteria",data:{title:"Provisioning Criteria",breadcrumb:"Provisioning Criteria"},children:[{path:"",component:yS,resolve:{loanProvisioningCriterias:Iw}},{path:"create",data:{title:"Create Provisioning Criteria",breadcrumb:"Create Provisioning Criteria"},component:_w,resolve:{loanProvisioningCriteriaTemplate:fO}},{path:":id",data:{title:"View Provisioning Criteria",routeParamBreadcrumb:"id"},children:[{path:"",component:mw,resolve:{loanProvisioningCriteria:W6}},{path:"edit",component:vw,data:{title:"Edit Provisioning Criteria",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{loanProvisioningCriteriaAndTemplate:hO}}]}]},{path:"offices",data:{title:"Manage Offices",breadcrumb:"Manage Offices"},children:[{path:"",component:SS,resolve:{offices:Dl}},{path:"create",component:LS,data:{title:"Create Office",breadcrumb:"Create Office"},resolve:{offices:Dl}},{path:":officeId",data:{title:"View Office",breadcrumb:"officeId",routeParamBreadcrumb:"officeId"},component:WS,resolve:{officeDatatables:cO},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:QS,data:{title:"General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{office:lO}},{path:"datatables",children:[{path:":datatableName",component:YS,data:{title:"Data Table View",routeParamBreadcrumb:"datatableName"},resolve:{officeDatatable:sO}}]}]},{path:":officeId/edit",component:lw,data:{title:"Edit Office",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{officeTemplate:oO}}]},{path:"employees",data:{title:"Manage Employees",breadcrumb:"Manage Employees"},children:[{path:"",component:wS,resolve:{employees:Q6}},{path:"create",component:PS,data:{title:"Create Employee",breadcrumb:"Create Employee"},resolve:{offices:Dl}},{path:":id",data:{title:"View Employee",routeParamBreadcrumb:"id"},children:[{path:"",component:TS,resolve:{employee:Y6}},{path:"edit",component:HS,data:{title:"Edit Employee",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{employee:J6}}]}]},{path:"currencies",data:{title:"Currency Configuration",breadcrumb:"Currency Configuration"},resolve:{currencies:Mw},children:[{path:"",component:MS},{path:"manage",data:{title:"Manage Currencies",breadcrumb:"Manage Currencies"},component:XS}]},{path:"sms-campaigns",data:{title:"SMS Campaigns",breadcrumb:"SMS Campaigns"},children:[{path:"",component:DS,resolve:{smsCampaigns:K6}},{path:"create",data:{title:"Create SMS Campaign",breadcrumb:"Create Campaign"},component:dw,resolve:{smsCampaignTemplate:Rw}},{path:":id",data:{title:"View SMS Campaign",routeResolveBreadcrumb:["smsCampaign","campaignName"]},resolve:{smsCampaign:pO},runGuardsAndResolvers:"always",children:[{path:"",component:JS},{path:"edit",component:hw,data:{title:"Edit SMS Campaign",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{smsCampaignTemplate:Rw}}]}]},{path:"standing-instructions-history",component:xw,data:{title:"Standing Instructions History",breadcrumb:"Standing Instructions History"},resolve:{standingInstructionsTemplate:gO}},{path:"fund-mapping",component:bw,data:{title:"Fund Mapping",breadcrumb:"Fund Mapping"},resolve:{advanceSearchTemplate:_O}},{path:"investors",component:zw,data:{title:"Investors",breadcrumb:"Investors"},resolve:{}},{path:"adhoc-query",data:{title:"Adhoc Query",breadcrumb:"Adhoc Query"},children:[{path:"",component:ES,resolve:{adhocQueries:X6}},{path:"create",component:qS,data:{title:"Create Adhoc Query",breadcrumb:"Create"},resolve:{adhocQueryTemplate:aO}},{path:":id",data:{title:"View Adhoc Query",routeParamBreadcrumb:"id"},children:[{path:"",component:IS,resolve:{adhocQuery:Z6}},{path:"edit",component:rw,data:{title:"Edit Adhoc Query",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{adhocQueryAndTemplate:mO}}]}]},{path:"tellers",data:{title:"Tellers",breadcrumb:"Tellers"},children:[{path:"",component:OS,resolve:{tellers:eO}},{path:"create",component:GS,data:{title:"Create Teller",breadcrumb:"Create"},resolve:{offices:Dl}},{path:":id",data:{title:"View Teller",routeParamBreadcrumb:"id"},children:[{path:"",component:AS,resolve:{teller:Dw}},{path:"edit",component:jS,data:{title:"Edit Teller",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{teller:Dw,offices:Dl}},{path:"cashiers",data:{title:"Cashiers",breadcrumb:"Cashiers",routeParamBreadcrumb:!1},children:[{path:"",component:ZS,resolve:{cashiersData:rO}},{path:"create",data:{title:"Cashiers",breadcrumb:"Create Cashier"},component:ow,resolve:{cashierTemplate:kw}},{path:":id",data:{title:"View Cashier",routeParamBreadcrumb:"id"},children:[{path:"",component:$S,data:{title:"View Cashier",breadcrumb:"View Cashier",routeParamBreadcrumb:!1},resolve:{cashier:Ow}},{path:"edit",component:nw,data:{title:"Edit Cashier",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{cashier:Ow,cashierTemplate:kw}},{path:"transactions",data:{title:"Cashier Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},component:ew,resolve:{currencies:Mw}},{path:"settle",component:iw,data:{title:"Settle Cash",breadcrumb:"Settle Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:Fw}},{path:"allocate",component:tw,data:{title:"Allocate Cash",breadcrumb:"Allocate Cash",routeParamBreadcrumb:!1},resolve:{cashierTemplate:Fw}}]}]}]}]},{path:"payment-types",data:{title:"Payment Types",breadcrumb:"Payment Types"},children:[{path:"",component:FS,resolve:{paymentTypes:Ew}},{path:"create",component:VS,data:{title:"Create Payment Type",breadcrumb:"Create Payment Type"}},{path:":id",data:{routeParamBreadcrumb:"id",addBreadcrumbLink:!1},children:[{path:"edit",component:kS,data:{title:"Edit Payment Type",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{paymentType:Ew}}]}]},{path:"password-preferences",component:BS,data:{title:"Password Preferences",breadcrumb:"Password Preferences"},resolve:{passwordPreferencesTemplate:tO}},{path:"bulkloan",component:Cw,data:{title:"Bulk Loan Reassignment",breadcrumb:"Bulk Loan Reasssignment"},resolve:{offices:Dl}},{path:"entity-data-table-checks",data:{title:"Entity Data Table Checks",breadcrumb:"Entity Data Table Checks"},children:[{path:"",component:RS,resolve:{entityDataTableChecks:iO}},{path:"create",component:gw,data:{title:"Create Entity Data Table Checks",breadcrumb:"Create"},resolve:{dataTableEntity:uO}}]},{path:"working-days",component:NS,data:{title:"Working Days",breadcrumb:"Working Days"},resolve:{workingDays:nO}},{path:"manage-funds",data:{title:"Manage Funds",breadcrumb:"Manage Funds"},children:[{path:"",component:KS,resolve:{funds:Aw}},{path:"create",component:qw,data:{title:"Create Fund",breadcrumb:"Create"}},{path:":id",data:{title:"View Fund",breadcrumb:"id",routeParamBreadcrumb:"id"},resolve:{fundData:Nw},children:[{path:"",component:Lw,resolve:{fundData:Nw}},{path:"edit",component:Vw,data:{title:"Edit Fund",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{fundData:Nw}}]}],resolve:{funds:Aw}},{path:"bulk-import",data:{title:"Bulk Import",breadcrumb:"Bulk Import"},children:[{path:"",component:sw},{path:":import-name",component:pw,data:{title:"View Bulk Import",routeParamBreadcrumb:"import-name"},resolve:{offices:Dl,imports:dO}}]},{path:"holidays",data:{title:"Manage Holidays",breadcrumb:"Manage Holidays"},children:[{path:"",component:zS,resolve:{offices:Dl}},{path:"create",component:Tw,data:{title:"Create Holiday",breadcrumb:"Create"},resolve:{offices:Dl,holidayTemplate:Bw}},{path:":id",data:{title:"View Holidays",routeParamBreadcrumb:"id"},children:[{path:"",component:US,resolve:{holidays:Vu}},{path:"edit",component:aw,data:{title:"Edit Holidays",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{holiday:Vu,holidayTemplate:Bw}}]}]}]}])],TX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[W6,Dl,Q6,Y6,J6,Mw,K6,pO,Rw,X6,Z6,eO,Dw,Ew,tO,iO,nO,oO,aO,mO,Iw,Ow,rO,Vu,lO,sO,cO,Aw,Fw,kw,Vu,Bw,dO,Vu,uO,Iw,fO,hO,gO,_O],imports:[gn.forChild(Wsi),gn]})}}return e})();var MX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[Pw,ww,yw,Sw],imports:[oo,ha,Er,TX,bS,yS,SS,wS,MS,DS,ES,IS,OS,AS,FS,kS,BS,RS,NS,LS,PS,VS,TS,qS,zS,lw,HS,GS,jS,mw,$S,US,WS,QS,YS,JS,KS,XS,ZS,ew,iw,tw,nw,ow,aw,rw,sw,pw,dw,bh,Qm,Lu,xh,hw,fw,uw,gw,Cw,_w,vw,xw,bw,Tw,qw,Vw,Lw,zw]})}}return e})();var Hw=()=>{let e=typeof window<"u"?window:void 0;return e&&e.tinymce?e.tinymce:null},Qsi=(()=>{class e{onBeforePaste=new bi;onBlur=new bi;onClick=new bi;onCompositionEnd=new bi;onCompositionStart=new bi;onCompositionUpdate=new bi;onContextMenu=new bi;onCopy=new bi;onCut=new bi;onDblclick=new bi;onDrag=new bi;onDragDrop=new bi;onDragEnd=new bi;onDragGesture=new bi;onDragOver=new bi;onDrop=new bi;onFocus=new bi;onFocusIn=new bi;onFocusOut=new bi;onKeyDown=new bi;onKeyPress=new bi;onKeyUp=new bi;onMouseDown=new bi;onMouseEnter=new bi;onMouseLeave=new bi;onMouseMove=new bi;onMouseOut=new bi;onMouseOver=new bi;onMouseUp=new bi;onPaste=new bi;onSelectionChange=new bi;onActivate=new bi;onAddUndo=new bi;onBeforeAddUndo=new bi;onBeforeExecCommand=new bi;onBeforeGetContent=new bi;onBeforeRenderUI=new bi;onBeforeSetContent=new bi;onChange=new bi;onClearUndos=new bi;onDeactivate=new bi;onDirty=new bi;onExecCommand=new bi;onGetContent=new bi;onHide=new bi;onInit=new bi;onInput=new bi;onInitNgModel=new bi;onLoadContent=new bi;onNodeChange=new bi;onPostProcess=new bi;onPostRender=new bi;onPreInit=new bi;onPreProcess=new bi;onProgressState=new bi;onRedo=new bi;onRemove=new bi;onReset=new bi;onResizeEditor=new bi;onSaveContent=new bi;onSetAttrib=new bi;onObjectResizeStart=new bi;onObjectResized=new bi;onObjectSelected=new bi;onSetContent=new bi;onShow=new bi;onSubmit=new bi;onUndo=new bi;onVisualAid=new bi;static \u0275fac=function(n){return new(n||e)};static \u0275dir=md({type:e,outputs:{onBeforePaste:"onBeforePaste",onBlur:"onBlur",onClick:"onClick",onCompositionEnd:"onCompositionEnd",onCompositionStart:"onCompositionStart",onCompositionUpdate:"onCompositionUpdate",onContextMenu:"onContextMenu",onCopy:"onCopy",onCut:"onCut",onDblclick:"onDblclick",onDrag:"onDrag",onDragDrop:"onDragDrop",onDragEnd:"onDragEnd",onDragGesture:"onDragGesture",onDragOver:"onDragOver",onDrop:"onDrop",onFocus:"onFocus",onFocusIn:"onFocusIn",onFocusOut:"onFocusOut",onKeyDown:"onKeyDown",onKeyPress:"onKeyPress",onKeyUp:"onKeyUp",onMouseDown:"onMouseDown",onMouseEnter:"onMouseEnter",onMouseLeave:"onMouseLeave",onMouseMove:"onMouseMove",onMouseOut:"onMouseOut",onMouseOver:"onMouseOver",onMouseUp:"onMouseUp",onPaste:"onPaste",onSelectionChange:"onSelectionChange",onActivate:"onActivate",onAddUndo:"onAddUndo",onBeforeAddUndo:"onBeforeAddUndo",onBeforeExecCommand:"onBeforeExecCommand",onBeforeGetContent:"onBeforeGetContent",onBeforeRenderUI:"onBeforeRenderUI",onBeforeSetContent:"onBeforeSetContent",onChange:"onChange",onClearUndos:"onClearUndos",onDeactivate:"onDeactivate",onDirty:"onDirty",onExecCommand:"onExecCommand",onGetContent:"onGetContent",onHide:"onHide",onInit:"onInit",onInput:"onInput",onInitNgModel:"onInitNgModel",onLoadContent:"onLoadContent",onNodeChange:"onNodeChange",onPostProcess:"onPostProcess",onPostRender:"onPostRender",onPreInit:"onPreInit",onPreProcess:"onPreProcess",onProgressState:"onProgressState",onRedo:"onRedo",onRemove:"onRemove",onReset:"onReset",onResizeEditor:"onResizeEditor",onSaveContent:"onSaveContent",onSetAttrib:"onSetAttrib",onObjectResizeStart:"onObjectResizeStart",onObjectResized:"onObjectResized",onObjectSelected:"onObjectSelected",onSetContent:"onSetContent",onShow:"onShow",onSubmit:"onSubmit",onUndo:"onUndo",onVisualAid:"onVisualAid"},standalone:!1})}return e})(),DX=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onCompositionEnd","onCompositionStart","onCompositionUpdate","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onInput","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onResizeEditor","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],Gw=(e,o,t)=>cd(e,o).pipe(Rl(t)),Ysi=(e,o,t)=>{Jsi(e).forEach(i=>{let s=e[i];Gw(o,i.substring(2),t).subscribe(d=>{eci(s)&&e.ngZone.run(()=>s.emit({event:d,editor:o}))})})},Jsi=e=>{let o=EX(e.ignoreEvents,[]);return EX(e.allowedEvents,DX).filter(n=>DX.includes(n)&&!o.includes(n))},EX=(e,o)=>typeof e=="string"?e.split(",").map(t=>t.trim()):Array.isArray(e)?e:o,IX=0,Ksi=e=>{let t=new Date().getTime(),n=Math.floor(Math.random()*1e9);return IX++,e+"_"+n+IX+String(t)},OX=e=>typeof e<"u"&&e.tagName.toLowerCase()==="textarea",AX=e=>typeof e>"u"||e===""?[]:Array.isArray(e)?e:e.split(" "),Xsi=(e,o)=>AX(e).concat(AX(o)),Zsi=()=>{},FX=e=>e==null,eci=e=>e.observed||e.observers?.length>0,kX=(e,o)=>{typeof e.mode?.set=="function"?e.mode.set(o):"setMode"in e&&typeof e.setMode=="function"&&e.setMode(o)},BX=e=>e.options&&e.options.isRegistered("disabled"),tci=()=>e=>e.pipe(aF(),Mn(()=>{})),ici=()=>{let e=new Ra(null),o=e.pipe(Fc(Boolean),rf(([t,n])=>{let i=t.createElement("script");return i.referrerPolicy="origin",i.type="application/javascript",i.src=n,t.head.appendChild(i),cd(i,"load").pipe(tci())}),rF({bufferSize:1,refCount:!0}));return{load:(...t)=>(e.getValue()||e.next(t),o),reinitialize:()=>{e.next(null)}}},nci=ici(),CO=new u0("TINYMCE_SCRIPT_SRC"),oci={provide:$F,useExisting:sF(()=>jw),multi:!0},jw=(()=>{class e extends Qsi{cdRef;platformId;tinymceScriptSrc;cloudChannel="8";apiKey="no-api-key";licenseKey="gpl";init;id="";initialValue;outputFormat;inline;tagName;plugins;toolbar;modelEvents="change input undo redo";allowedEvents;ignoreEvents;set readonly(t){this._readonly=t,this._editor&&kX(this._editor,t?"readonly":"design")}get readonly(){return this._readonly}set disabled(t){this._disabled=t,this._editor&&(BX(this._editor)?this._editor.options.set("disabled",t??!1):kX(this._editor,t?"readonly":"design"))}get disabled(){return this._disabled}get editor(){return this._editor}ngZone;_elementRef;_element;_disabled;_readonly;_editor;onTouchedCallback=Zsi;onChangeCallback;destroy$=new Rr;constructor(t,n,i,s,d){super(),this.cdRef=i,this.platformId=s,this.tinymceScriptSrc=d,this._elementRef=t,this.ngZone=n}writeValue(t){this._editor&&this._editor.initialized?this._editor.setContent(FX(t)?"":t):this.initialValue=t===null?void 0:t}registerOnChange(t){this.onChangeCallback=t}registerOnTouched(t){this.onTouchedCallback=t}setDisabledState(t){this.disabled=t}ngAfterViewInit(){EF(this.platformId)&&(this.id=this.id||Ksi("tiny-angular"),this.inline=this.inline!==void 0?this.inline!==!1:!!this.init?.inline,this.createElement(),Hw()!==null?this.initialise():this._element&&this._element.ownerDocument&&nci.load(this._element.ownerDocument,this.getScriptSrc()).pipe(Rl(this.destroy$)).subscribe(this.initialise))}ngOnDestroy(){this.destroy$.next(),Hw()!==null&&Hw().remove(this._editor)}createElement(){let t=typeof this.tagName=="string"?this.tagName:"div";if(this._element=document.createElement(this.inline?t:"textarea"),this._element){let n=document.getElementById(this.id);n&&n!==this._elementRef.nativeElement&&console.warn(`TinyMCE-Angular: an element with id [${this.id}] already exists. Editors with duplicate Id will not be able to mount`),this._element.id=this.id,OX(this._element)&&(this._element.style.visibility="hidden"),this._elementRef.nativeElement.appendChild(this._element)}}initialise=()=>{let t=qt(at({},this.init),{selector:void 0,target:this._element,inline:this.inline,disabled:this.disabled,readonly:this.readonly,license_key:this.licenseKey,plugins:Xsi(this.init&&this.init.plugins,this.plugins),toolbar:this.toolbar||this.init&&this.init.toolbar,setup:n=>{this._editor=n,Gw(n,"init",this.destroy$).subscribe(()=>{this.initEditor(n)}),Ysi(this,n,this.destroy$),this.init&&typeof this.init.setup=="function"&&this.init.setup(n),this.disabled===!0&&(BX(n)?this._editor.options.set("disabled",this.disabled):this._editor.mode.set("readonly"))}});OX(this._element)&&(this._element.style.visibility=""),this.ngZone.runOutsideAngular(()=>{Hw().init(t)})};getScriptSrc(){return FX(this.tinymceScriptSrc)?`https://cdn.tiny.cloud/1/${this.apiKey}/tinymce/${this.cloudChannel}/tinymce.min.js`:this.tinymceScriptSrc}initEditor(t){Gw(t,"blur",this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.onTouchedCallback())}),Gw(t,this.modelEvents,this.destroy$).subscribe(()=>{this.cdRef.markForCheck(),this.ngZone.run(()=>this.emitOnChange(t))}),typeof this.initialValue=="string"&&this.ngZone.run(()=>{t.setContent(this.initialValue),t.getContent()!==this.initialValue&&this.emitOnChange(t),this.onInitNgModel!==void 0&&this.onInitNgModel.emit(t)})}emitOnChange(t){this.onChangeCallback&&this.onChangeCallback(t.getContent({format:this.outputFormat}))}static \u0275fac=function(n){return new(n||e)(Zo(lf),Zo(pd),Zo(es),Zo(uF),Zo(CO,8))};static \u0275cmp=me({type:e,selectors:[["editor"]],inputs:{cloudChannel:"cloudChannel",apiKey:"apiKey",licenseKey:"licenseKey",init:"init",id:"id",initialValue:"initialValue",outputFormat:"outputFormat",inline:"inline",tagName:"tagName",plugins:"plugins",toolbar:"toolbar",modelEvents:"modelEvents",allowedEvents:"allowedEvents",ignoreEvents:"ignoreEvents",readonly:"readonly",disabled:"disabled"},features:[vg([oci]),_g],decls:0,vars:0,template:function(n,i){},dependencies:[ue,ec],styles:["[_nghost-%COMP%]{display:block}"],changeDetection:0})}return e})(),$w=(()=>{class e{static \u0275fac=function(n){return new(n||e)};static \u0275mod=Gi({type:e});static \u0275inj=Hi({imports:[jw]})}return e})();var rci=()=>[10,25,50,100],lci=()=>["create"],sci=e=>[e];function cci(e,o){e&1&&(l(0,"button",16),b(1,"fa-icon",17),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,lci)),a(2),v(" ",m(3,2,"labels.buttons.Create Template")," "))}function pci(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function mci(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entity)}}function dci(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function uci(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.type)}}function fci(e,o){e&1&&(l(0,"th",18),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function hci(e,o){if(e&1&&(l(0,"td",19),c(1),r()),e&2){let t=o.$implicit;a(),h(t.name)}}function gci(e,o){e&1&&b(0,"tr",20)}function _ci(e,o){if(e&1&&b(0,"tr",21),e&2){let t=o.$implicit;g("routerLink",Nt(1,sci,t.id))}}var Uw=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["entity","type","name"],this.route.data.subscribe(t=>{this.templatesData=t.templates})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setTemplates()}setTemplates(){this.dataSource=new Wt(this.templatesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-templates"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:23,vars:9,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","entity"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","type"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,cci,4,5,"button",1),r(),l(2,"div",2)(3,"div",3)(4,"mat-form-field",4)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"input",5),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(9,"div",6)(10,"table",7),X(11,8),F(12,pci,3,3,"th",9)(13,mci,2,1,"td",10),Z(),X(14,11),F(15,dci,3,3,"th",9)(16,uci,2,1,"td",10),Z(),X(17,12),F(18,fci,3,3,"th",9)(19,hci,2,1,"td",10),Z(),F(20,gci,1,0,"tr",13)(21,_ci,1,3,"tr",14),r(),b(22,"mat-paginator",15),r()()),n&2&&(a(),g("mifosxHasPermission","CREATE_TEMPLATE"),a(5),h(m(7,6,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(8,rci)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Ke,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Cs=(()=>{class e{constructor(){this.http=T(ko)}getTemplates(){return this.http.get("/templates")}getTemplate(t){return this.http.get(`/templates/${t}`)}getCreateTemplateData(){return this.http.get("/templates/template")}getEditTemplateData(t){return this.http.get(`/templates/${t}/template`)}createTemplate(t){return this.http.post("/templates",t)}updateTemplate(t,n){return this.http.put(`/templates/${n}`,t)}deleteTemplate(t){return this.http.delete(`/templates/${t}`)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Cci=()=>["edit"];function vci(e,o){e&1&&(l(0,"button",8),b(1,"fa-icon",9),c(2),p(3,"translate"),r()),e&2&&(g("routerLink",oe(4,Cci)),a(2),v(" ",m(3,2,"labels.buttons.Edit")," "))}function xci(e,o){if(e&1){let t=Y();l(0,"button",10),R("click",function(){V(t);let i=w();return q(i.delete())}),b(1,"fa-icon",11),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Delete")," "))}var Ww=(()=>{class e{constructor(){this.route=T(Ie),this.templatesService=T(Cs),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.templateData=t.template})}delete(){this.dialog.open(vi,{data:{deleteContext:`template ${this.templateData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.templatesService.deleteTemplate(this.templateData.id).subscribe(()=>{this.router.navigate(["/templates"])})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-template"]],decls:26,vars:18,consts:[[1,"container","m-b-20","layout-row","align-end","gap-20px"],["mat-raised-button","","color","primary",3,"routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"flex-50",3,"innerHTML"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),F(1,vci,4,5,"button",1)(2,xci,4,3,"button",2),r(),l(3,"div",3)(4,"mat-card")(5,"mat-card-content")(6,"div",4)(7,"div",5),c(8),p(9,"translate"),r(),l(10,"div",6),c(11),r(),l(12,"div",5),c(13),p(14,"translate"),r(),l(15,"div",6),c(16),r(),l(17,"div",5),c(18),p(19,"translate"),r(),l(20,"div",6),c(21),r(),l(22,"div",5),c(23),p(24,"translate"),r(),b(25,"div",7),r()()()()),n&2&&(a(),g("mifosxHasPermission","UPDATE_TEMPLATE"),a(),g("mifosxHasPermission","DELETE_TEMPLATE"),a(6),v(" ",m(9,10,"labels.inputs.name")," "),a(3),v(" ",i.templateData.name," "),a(2),v(" ",m(14,12,"labels.inputs.Entity")," "),a(3),v(" ",i.templateData.entity," "),a(2),v(" ",m(19,14,"labels.inputs.Type")," "),a(3),v(" ",i.templateData.type," "),a(2),v(" ",m(24,16,"labels.inputs.Text")," "),a(2),g("innerHTML",i.templateData.text,hF))},dependencies:[ue,fe,Oe,Ue,Je,xe,Ke,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return e})();var RX=["{{client.accountNo}}","{{client.status.value}}","{{client.fullname}}","{{client.displayName}}","{{client.officeName}}","{{#client.groups}}","{{/client.groups}}"],NX=["{{loan.accountNo}}","{{loan.status.value}}","{{loan.loanProductId}}","{{loan.loanProductName}}","{{loan.loanProductDescription}}"],LX=["{{loan.repaymentSchedule.loanTermInDays}}","{{loan.repaymentSchedule.totalPrincipalDisbursed}}","{{loan.repaymentSchedule.totalPrincipalExpected}}","{{loan.repaymentSchedule.totalPrincipalPaid}}","{{loan.repaymentSchedule.totalInterestCharged}}","{{loan.repaymentSchedule.totalFeeChargesCharged}}","{{loan.repaymentSchedule.totalPenaltyChargesCharged}}","{{loan.repaymentSchedule.totalWaived}}","{{loan.repaymentSchedule.totalWrittenOff}}","{{loan.repaymentSchedule.totalRepaymentExpected}}","{{loan.repaymentSchedule.totalRepayment}}","{{loan.repaymentSchedule.totalPaidInAdvance}}","{{loan.repaymentSchedule.totalPaidLate}}","{{loan.repaymentSchedule.totalOutstanding}}"];var bci=["tinymceEditor"],yci=()=>["../"];function Sci(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function wci(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Entity")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pci(e,o){if(e&1&&(l(0,"mat-option",7),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Tci(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Mci(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Dci(e,o){if(e&1){let t=Y();l(0,"button",26),R("click",function(){V(t);let i=w(3);return q(i.addMapper())}),b(1,"fa-icon",27),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Add")," "))}function Eci(e,o){if(e&1){let t=Y();l(0,"button",28),R("click",function(){V(t);let i=w().$index,s=w(2);return q(s.removeMapper(i))}),b(1,"fa-icon",29),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Remove")," "))}function Ici(e,o){if(e&1&&(l(0,"div",21)(1,"mat-form-field",5)(2,"mat-label"),c(3),p(4,"translate"),r(),b(5,"input",22),r(),l(6,"mat-form-field",23)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",22),r(),E(11,Dci,4,3,"button",24),E(12,Eci,4,3,"button",25),r()),e&2){let t=o.$implicit,n=o.$index;a(3),h(m(4,6,"labels.inputs.Mapper Key")),a(2),g("formControl",t.mapperskey),a(3),h(m(9,8,"labels.inputs.Mapper Value")),a(2),g("formControl",t.mappersvalue),a(),I(n===0?11:-1),a(),I(n!==0?12:-1)}}function Oci(e,o){if(e&1&&(X(0,12),Se(1,Ici,13,10,"div",21,dd().trackByMapperIndex,!0),Z()),e&2){let t=w();a(),we(t.mappers)}}function Aci(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}function Fci(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),p(4,"translate"),r()(),l(5,"div",30),Se(6,Aci,2,1,"button",31,dd().trackByLabel,!0),r()()),e&2){let t=w();a(3),v(" ",m(4,1,"labels.inputs.Client Parameters")," "),a(3),we(t.clientParameterLabels)}}function kci(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}function Bci(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),p(4,"translate"),r()(),l(5,"div",30),Se(6,kci,2,1,"button",31,dd().trackByLabel,!0),r()()),e&2){let t=w();a(3),v(" ",m(4,1,"labels.inputs.Loan Parameters")," "),a(3),we(t.loanParameterLabels)}}function Rci(e,o){if(e&1){let t=Y();l(0,"button",32),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.addText(i))}),c(1),r()}if(e&2){let t=o.$implicit;a(),v(" ",t," ")}}function Nci(e,o){if(e&1&&(l(0,"mat-expansion-panel")(1,"mat-expansion-panel-header")(2,"mat-panel-title"),c(3),p(4,"translate"),r()(),l(5,"div",30),Se(6,Rci,2,1,"button",31,dd().trackByLabel,!0),r()()),e&2){let t=w();a(3),v(" ",m(4,1,"labels.inputs.Repayment Schedule Parameters")," "),a(3),we(t.repaymentParameterLabels)}}var yh=(()=>{class e{constructor(){this.formBuilder=T(nt),this.route=T(Ie),this.router=T(qe),this.templateService=T(Cs),this.tinymceConfig={base_url:"assets/tinymce",suffix:".min",menubar:!1,branding:!1,height:320,forced_root_block:!1,statusbar:!1,elementpath:!1,resize:!1,plugins:"lists link table media codesample",toolbar:"undo redo | blocks | bold italic underline | link | numlist bullist outdent indent | alignleft aligncenter alignright alignjustify | table media | removeformat"},this.mappers=[],this.showAdvanceOptions=!1,this.clientParameterLabels=RX,this.loanParameterLabels=NX,this.repaymentParameterLabels=LX,this.route.data.subscribe(t=>{this.templateData=t.templateData,this.mode=t.mode,this.mode==="edit"&&(this.mappers=this.templateData.template.mappers.map(n=>({mappersorder:n.mapperorder,mapperskey:new it(n.mapperkey),mappersvalue:new it(n.mappervalue)})))})}ngOnInit(){this.createTemplateForm(),this.buildDependencies()}createTemplateForm(){this.mode==="create"?this.templateForm=this.formBuilder.group({entity:["",ce.required],type:["",ce.required],name:["",ce.required],text:["",ce.required]}):this.templateForm=this.formBuilder.group({entity:[this.templateData.entities.find(t=>t.name===this.templateData.template.entity).id,ce.required],type:[this.templateData.types.find(t=>t.name===this.templateData.template.type).id,ce.required],name:[this.templateData.template.name,ce.required],text:[this.templateData.template.text,ce.required]})}buildDependencies(){let t="default";this.templateForm.get("entity").valueChanges.subscribe(n=>{n===0?this.mappers.splice(0,1,{mappersorder:0,mapperskey:new it("client"),mappersvalue:new it("clients/{{clientId}}?tenantIdentifier="+t)}):this.mappers.splice(0,1,{mappersorder:0,mapperskey:new it("loan"),mappersvalue:new it("loans/{{loanId}}?associations=all&tenantIdentifier="+t)}),this.setEditorContent(""),this.templateForm.get("text").setValue("")}),this.mode==="create"&&this.templateForm.get("entity").patchValue(0)}addMapper(){this.mappers.push({mappersorder:this.mappers.length,mapperskey:new it(""),mappersvalue:new it("")})}removeMapper(t){this.mappers.splice(t,1)}addText(t){this.tinymceEditor?.editor?.insertContent(t)}getEditorContent(){return this.tinymceEditor?.editor?.getContent({format:"html"})||""}setEditorContent(t){return this.tinymceEditor?.editor&&this.tinymceEditor.editor.setContent(t||""),""}submit(){let t=qt(at({},this.templateForm.value),{mappers:this.mappers.map(n=>({mappersorder:n.mappersorder,mapperskey:n.mapperskey.value,mappersvalue:n.mappersvalue.value})),text:this.getEditorContent()});this.mode==="create"?this.templateService.createTemplate(t).subscribe(n=>{this.router.navigate(["../",n.resourceId],{relativeTo:this.route})}):this.templateService.updateTemplate(t,this.templateData.template.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}trackByMapperIndex(t){return t}trackByLabel(t,n){return n}trackByEntityId(t,n){return n.id}trackByTypeId(t,n){return n.id}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-edit-template"]],viewQuery:function(n,i){if(n&1&&Ee(bci,5),n&2){let s;Te(s=Me())&&(i.tinymceEditor=s.first)}},features:[vg([{provide:CO,useValue:"assets/tinymce/tinymce.min.js"}])],decls:55,vars:35,consts:[["tinymceEditor",""],[1,"container"],[1,"layout-column","gap-2percent"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["required","","formControlName","entity"],[3,"value"],["required","","formControlName","type"],["matInput","","required","","formControlName","name"],["role","toggle",1,"advanced-options-wrapper"],["mat-raised-button","","color","primary",3,"click"],["role","mappers"],["role","editor",1,"editor-wrapper"],["for","template-text-editor",1,"required-label","required-label-editor"],[1,"required-asterisk"],["id","template-text-editor","licenseKey","gpl",3,"init","initialValue","formControl"],["role","template-parameters"],[1,"m-b-20","layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click","disabled"],[1,"mapper-row","layout-row","gap-2percent"],["matInput","",3,"formControl"],[1,"flex-fill","flex-38"],["mat-raised-button","","color","primary",1,"mapper-button","flex-8"],["mat-raised-button","","color","primary",1,"mapper-button","flex-9"],["mat-raised-button","","color","primary",1,"mapper-button","flex-8",3,"click"],["icon","plus",1,"m-r-10"],["mat-raised-button","","color","primary",1,"mapper-button","flex-9",3,"click"],["icon","minus",1,"m-r-10"],[1,"layout-row-wrap","layout-xs-column","layout-align-center"],["mat-stroked-button","","color","primary",1,"parameter"],["mat-stroked-button","","color","primary",1,"parameter",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card",2)(2,"form",3)(3,"mat-card-content")(4,"div",4)(5,"mat-form-field",5)(6,"mat-label"),c(7),p(8,"translate"),r(),l(9,"mat-select",6),Se(10,Sci,2,2,"mat-option",7,i.trackByEntityId,!0),r(),E(12,wci,7,9,"mat-error"),r(),l(13,"mat-form-field",5)(14,"mat-label"),c(15),p(16,"translate"),r(),l(17,"mat-select",8),Se(18,Pci,2,2,"mat-option",7,i.trackByTypeId,!0),r(),E(20,Tci,7,9,"mat-error"),r(),l(21,"mat-form-field",5)(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",9),E(26,Mci,7,9,"mat-error"),r()()()(),l(27,"mat-card-content")(28,"div",10)(29,"button",11),R("click",function(){return V(s),q(i.showAdvanceOptions=!i.showAdvanceOptions)}),c(30),p(31,"translate"),r()(),E(32,Oci,3,0,"ng-container",12),r(),l(33,"mat-card-content")(34,"div",13)(35,"label",14),c(36),p(37,"translate"),l(38,"span",15),c(39,"*"),r()(),b(40,"editor",16,0),r()(),l(42,"mat-card-content")(43,"div",17)(44,"mat-accordion"),E(45,Fci,8,3,"mat-expansion-panel"),E(46,Bci,8,3,"mat-expansion-panel"),E(47,Nci,8,3,"mat-expansion-panel"),r()()(),l(48,"mat-card-actions",18)(49,"button",19),c(50),p(51,"translate"),r(),l(52,"button",20),R("click",function(){return V(s),q(i.submit())}),c(53),p(54,"translate"),r()()()()}n&2&&(a(2),g("formGroup",i.templateForm),a(5),h(m(8,20,"labels.inputs.Entity")),a(3),we(i.templateData.entities),a(2),I(i.templateForm.controls.entity.hasError("required")?12:-1),a(3),h(m(16,22,"labels.inputs.Type")),a(3),we(i.templateData.types),a(2),I(i.templateForm.controls.type.hasError("required")?20:-1),a(3),h(m(24,24,"labels.inputs.name")),a(3),I(i.templateForm.controls.name.hasError("required")?26:-1),a(4),v(" ",m(31,26,"labels.buttons.Advanced Options")," "),a(2),I(i.showAdvanceOptions?32:-1),a(4),v(" ",m(37,28,"labels.inputs.Text")," "),a(4),g("init",i.tinymceConfig)("initialValue",(i.templateData.template==null?null:i.templateData.template.text)||"")("formControl",i.templateForm.controls.text),a(5),I(i.templateForm.controls.entity.value===0?45:-1),a(),I(i.templateForm.controls.entity.value===1?46:-1),a(),I(i.templateForm.controls.entity.value===1?47:-1),a(2),g("routerLink",oe(34,yci)),a(),h(m(51,30,"labels.buttons.Cancel")),a(2),g("disabled",!i.templateForm.valid),a(),v(" ",m(54,32,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,ke,$w,jw,Dr,Pr,Tr,Mr,he],styles:[".advanced-options-wrapper[_ngcontent-%COMP%]{margin-bottom:16px}.mapper-row[_ngcontent-%COMP%]{margin-top:16px;margin-bottom:8px}.mapper-row[_ngcontent-%COMP%] .mapper-button[_ngcontent-%COMP%]{margin-left:8px}.editor-wrapper[_ngcontent-%COMP%]{margin-top:16px}.editor-wrapper[_ngcontent-%COMP%] .required-label[_ngcontent-%COMP%]{display:block;margin-bottom:8px;font-size:14px;font-weight:500}.editor-wrapper[_ngcontent-%COMP%] .required-asterisk[_ngcontent-%COMP%]{color:#f44336}.editor-wrapper[_ngcontent-%COMP%] .ck-editor{margin:0}.editor-wrapper[_ngcontent-%COMP%] .ck-editor .ck-editor__main .ck-content{min-height:200px}mat-card-content[_ngcontent-%COMP%]{padding:16px}"]})}}return e})();var vO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(){return this.templatesService.getTemplates()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var xO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(t){let n=t.paramMap.get("id");return this.templatesService.getTemplate(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var bO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(t){let n=t.paramMap.get("id");return this.templatesService.getEditTemplateData(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var yO=(()=>{class e{constructor(){this.templatesService=T(Cs)}resolve(){return this.templatesService.getCreateTemplateData()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Lci=[_o.withShell([{path:"templates",data:{title:"Templates",breadcrumb:"Templates"},children:[{path:"",component:Uw,resolve:{templates:vO}},{path:"create",component:yh,data:{mode:"create",breadcrumb:"Create Template"},resolve:{templateData:yO}},{path:":id",data:{title:"View Template",routeParamBreadcrumb:"id"},children:[{path:"",component:Ww,resolve:{template:xO}},{path:"edit",component:yh,data:{mode:"edit",breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{templateData:bO}}]}]}])],VX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[vO,xO,bO,yO],imports:[gn.forChild(Lci),gn]})}}return e})();var qX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[$w,oo,Er,VX,Uw,Ww,yh]})}}return e})();var Vci=["buttonCreateUser"],qci=["templateButtonCreateUser"],zci=["usersTable"],Hci=["templateUsersTable"],Gci=()=>["create"],jci=()=>[10,25,50,100],$ci=e=>[e];function Uci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.First Name")))}function Wci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.firstname)}}function Qci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Name")))}function Yci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lastname)}}function Jci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Email")))}function Kci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.email)}}function Xci(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function Zci(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function epi(e,o){e&1&&b(0,"tr",27)}function tpi(e,o){if(e&1&&b(0,"tr",28),e&2){let t=o.$implicit;g("routerLink",Nt(1,$ci,t.id))}}function ipi(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",29),c(4),p(5,"translate"),r(),l(6,"div",30)(7,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(14),p(15,"translate"),r()()}e&2&&(a(),h(m(2,5,"labels.buttons.Create User")),a(3),v("",m(5,7,"labels.text.This option allows you to create new users in your organization"),"."),a(4),v(" ",m(9,9,"labels.buttons.Close")," "),a(3),v(" ",m(12,11,"labels.buttons.Back")," "),a(3),v(" ",m(15,13,"labels.buttons.Next")," "))}function npi(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(2),u=ve(34);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(16),u=ve(38);return i.close(),q(s.showPopover(u,d,"top",!0))}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.Search bar to filter users"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}function opi(e,o){if(e&1){let t=Y();l(0,"h4"),c(1),p(2,"translate"),r(),l(3,"div",30)(4,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(5),p(6,"translate"),r(),l(7,"button",32),R("click",function(){let i=V(t).popover,s=w(),d=ve(9),u=ve(36);return i.close(),q(s.showPopover(u,d,"bottom",!0))}),c(8),p(9,"translate"),r(),l(10,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(11),p(12,"translate"),r()()}e&2&&(a(),v("",m(2,4,"labels.heading.List of Users with their details"),"."),a(4),v(" ",m(6,6,"labels.buttons.Close")," "),a(3),v(" ",m(9,8,"labels.buttons.Back")," "),a(3),v(" ",m(12,10,"labels.buttons.Next")," "))}var Qw=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.displayedColumns=["firstname","lastname","email","officeName"],this.route.data.subscribe(t=>{this.usersData=t.users})}applyFilter(t){this.dataSource.filter=t.trim().toLowerCase()}ngOnInit(){this.setUsers()}setUsers(){this.dataSource=new Wt(this.usersData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers===!0&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList===!0&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-users"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7),Ee(Vci,5),Ee(qci,5),Ee(zci,5),Ee(Hci,5)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first),Te(s=Me())&&(i.buttonCreateUser=s.first),Te(s=Me())&&(i.templateButtonCreateUser=s.first),Te(s=Me())&&(i.usersTable=s.first),Te(s=Me())&&(i.templateUsersTable=s.first)}},decls:39,vars:13,consts:[["buttonCreateUser",""],["filter",""],["usersTable",""],["templateButtonCreateUser",""],["templateFilter",""],["templateUsersTable",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"mw300"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",6)(1,"div",7,0)(3,"button",8),b(4,"fa-icon",9),c(5),p(6,"translate"),r()()(),l(7,"div",10)(8,"div",11,1)(10,"mat-form-field",12)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",13),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()(),l(15,"div",14,2)(17,"table",15),X(18,16),F(19,Uci,3,3,"th",17)(20,Wci,2,1,"td",18),Z(),X(21,19),F(22,Qci,3,3,"th",17)(23,Yci,2,1,"td",18),Z(),X(24,20),F(25,Jci,3,3,"th",17)(26,Kci,2,1,"td",18),Z(),X(27,21),F(28,Xci,3,3,"th",17)(29,Zci,2,1,"td",18),Z(),F(30,epi,1,0,"tr",22)(31,tpi,1,3,"tr",23),r(),b(32,"mat-paginator",24),r()(),F(33,ipi,16,15,"ng-template",null,3,ti)(35,npi,13,12,"ng-template",null,4,ti)(37,opi,13,12,"ng-template",null,5,ti)}n&2&&(a(3),g("routerLink",oe(11,Gci)),a(2),v(" ",m(6,7,"labels.buttons.Create User")," "),a(7),h(m(13,9,"labels.inputs.Filter")),a(5),g("dataSource",i.dataSource),a(13),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(12,jci)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var Xr=(()=>{class e{constructor(){this.http=T(ko)}getUsers(){return this.http.get("/users")}getUsersTemplate(){return this.http.get("/users/template")}createUser(t){return this.http.post("/users",t)}editUser(t,n){return this.http.put(`/users/${t}`,n)}getUser(t){return this.http.get(`/users/${t}`)}changePassword(t,n){return this.http.put(`/users/${t}`,n)}deleteUser(t){return this.http.delete(`/users/${t}`)}getStaff(t){let n=new rn().set("officeId",t.toString()).set("status","all");return this.http.get("/staff",{params:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var api=["userFormRef"],rpi=["templateUserFormRef"],lpi=()=>["../"];function spi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function cpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function ppi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function mpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.First Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function dpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function upi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Last Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function fpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function hpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function gpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function _pi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should not be more than")," "),a(3),h(m(5,4,"labels.commons.50 characters long")))}function Cpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),l(8,"strong"),c(9),p(10,"translate"),r(),c(11," ,"),l(12,"strong"),c(13),p(14,"translate"),r()()),e&2&&(a(),v(" ",m(2,5,"labels.commons.Password should include a")," "),a(3),h(m(5,7,"labels.commons.numeral")),a(2),v(" ",m(7,9,"labels.commons.and at")," "),a(3),h(m(10,11,"labels.commons.least one uppercase")),a(4),h(m(14,13,"labels.commons.lowercase and special character")))}function vpi(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",22),E(5,hpi,7,9,"mat-error"),E(6,gpi,6,6,"mat-error"),E(7,_pi,6,6,"mat-error"),E(8,Cpi,15,15,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,5,"labels.inputs.Password")),a(3),I(t.userForm.controls.password.hasError("required")?5:-1),a(),I(t.userForm.controls.password.hasError("minlength")?6:-1),a(),I(t.userForm.controls.password.hasError("maxlength")?7:-1),a(),I(t.userForm.controls.password.hasError("pattern")&&!(t.userForm.controls.password.hasError("minlength")||t.userForm.controls.password.hasError("maxlength"))?8:-1)}}function xpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function bpi(e,o){if(e&1&&(l(0,"mat-form-field",5)(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",23),E(5,xpi,7,9,"mat-error"),r()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Repeat Password")),a(3),I(t.userForm.controls.repeatPassword.hasError("required")?5:-1)}}function ypi(e,o){e&1&&(l(0,"p",14),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Passwords")," "),a(3),h(m(5,4,"labels.commons.do not match")))}function Spi(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function wpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ppi(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Tpi(e,o){if(e&1&&(l(0,"mat-option",16),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Mpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one role")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function Dpi(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",24),c(4),p(5,"translate"),l(6,"a",25),c(7),p(8,"translate"),r()(),l(9,"div",26)(10,"button",27),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",28),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",28),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",28),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create User")),a(3),v(" ",m(5,9,"labels.text.Filling Details"),": "),a(3),h(m(8,11,"labels.inputs.Users")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create User")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var Yw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.usersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.passwordsUtility=T(S0),this.route.data.subscribe(t=>{this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",ce.required],email:["",[ce.required,ce.email]],firstname:["",[ce.required,ce.pattern("(^[A-z]).*")]],lastname:["",[ce.required,ce.pattern("(^[A-z]).*")]],sendPasswordToEmail:[!0],passwordNeverExpires:[!1],officeId:["",ce.required],staffId:[""],roles:["",ce.required]},{validator:jp})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(t=>{this.staffData=[],this.usersService.getStaff(t).subscribe(n=>{this.staffData=n})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(t=>{t?(this.userForm.removeControl("password"),this.userForm.removeControl("repeatPassword"),this.userForm.get("email").setValidators([ce.required,ce.email])):(this.userForm.addControl("password",new it("",this.passwordsUtility.getPasswordValidators())),this.userForm.addControl("repeatPassword",new it("",[ce.required,this.passwordsUtility.confirmPassword("password")])),this.userForm.get("email").setValidators([ce.email])),this.userForm.get("email").updateValueAndValidity()})}submit(){let t=this.userForm.value;(this.userForm.value.staffId==null||this.userForm.value.staffId==="")&&delete t.staffId,this.usersService.createUser(t).subscribe(n=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["../",n.resourceId],{relativeTo:this.route})})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"user"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):n.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(n,i){if(n&1&&(Ee(api,5),Ee(rpi,5)),n&2){let s;Te(s=Me())&&(i.userFormRef=s.first),Te(s=Me())&&(i.templateUserFormRef=s.first)}},decls:76,vars:50,consts:[["userFormRef",""],["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],["matInput","","formControlName","email",3,"required"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","passwordNeverExpires"],[1,"send-password-to-email-wrapper","flex-48"],["labelPosition","before","formControlName","sendPasswordToEmail"],[1,"flex-98","reset-password-error"],["required","","formControlName","officeId"],[3,"value"],["formControlName","staffId"],["required","","formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","required","","type","password","formControlName","password"],["matInput","","required","","type","password","formControlName","repeatPassword"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",2)(1,"mat-card")(2,"form",3),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",4,0)(6,"mat-form-field",5)(7,"mat-label"),c(8),p(9,"translate"),r(),b(10,"input",6),E(11,spi,7,9,"mat-error"),r(),l(12,"mat-form-field",5)(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",7),E(17,cpi,7,9,"mat-error"),E(18,ppi,7,9,"mat-error"),r(),l(19,"mat-form-field",5)(20,"mat-label"),c(21),p(22,"translate"),r(),b(23,"input",8),E(24,mpi,6,6,"mat-error"),E(25,dpi,7,9,"mat-error"),r(),l(26,"mat-form-field",5)(27,"mat-label"),c(28),p(29,"translate"),r(),b(30,"input",9),E(31,upi,6,6,"mat-error"),E(32,fpi,7,9,"mat-error"),r(),l(33,"div",10)(34,"mat-checkbox",11),c(35),p(36,"translate"),r()(),l(37,"div",12)(38,"mat-checkbox",13),c(39),p(40,"translate"),r()(),E(41,vpi,9,7,"mat-form-field",5),E(42,bpi,6,4,"mat-form-field",5),E(43,ypi,6,6,"p",14),l(44,"mat-form-field",5)(45,"mat-label"),c(46),p(47,"translate"),r(),l(48,"mat-select",15),Se(49,Spi,2,2,"mat-option",16,Pe),r(),E(51,wpi,7,9,"mat-error"),r(),l(52,"mat-form-field",5)(53,"mat-label"),c(54),p(55,"translate"),r(),l(56,"mat-select",17),Se(57,Ppi,2,2,"mat-option",16,Pe),r()(),l(59,"mat-form-field",5)(60,"mat-label"),c(61),p(62,"translate"),r(),l(63,"mat-select",18),Se(64,Tpi,2,2,"mat-option",16,Pe),r(),E(66,Mpi,6,6,"mat-error"),r()()(),l(67,"mat-card-actions",19)(68,"button",20),c(69),p(70,"translate"),r(),l(71,"button",21),c(72),p(73,"translate"),r()()()()(),F(74,Dpi,22,21,"ng-template",null,1,ti)}n&2&&(a(2),g("formGroup",i.userForm),a(6),h(m(9,27,"labels.inputs.Username")),a(3),I(i.userForm.controls.username.hasError("required")?11:-1),a(3),h(m(15,29,"labels.inputs.Email")),a(2),g("required",i.userForm.controls.sendPasswordToEmail.value),a(),I(i.userForm.controls.email.hasError("email")?17:-1),a(),I(i.userForm.controls.email.hasError("required")?18:-1),a(3),h(m(22,31,"labels.inputs.First Name")),a(3),I(i.userForm.controls.firstname.hasError("pattern")?24:-1),a(),I(i.userForm.controls.firstname.hasError("required")?25:-1),a(3),h(m(29,33,"labels.inputs.Last Name")),a(3),I(i.userForm.controls.lastname.hasError("pattern")?31:-1),a(),I(i.userForm.controls.lastname.hasError("required")?32:-1),a(3),v(" ",m(36,35,"labels.inputs.Password never expires")," "),a(4),v(" ",m(40,37,"labels.inputs.Send password to email address")," "),a(2),I(i.userForm.controls.sendPasswordToEmail.value?-1:41),a(),I(i.userForm.controls.sendPasswordToEmail.value?-1:42),a(),I(i.userForm.errors!=null&&i.userForm.errors.passwordsDoNotMatch&&!i.userForm.controls.password.hasError("required")&&!i.userForm.controls.repeatPassword.hasError("required")?43:-1),a(3),h(m(47,39,"labels.inputs.Office")),a(3),we(i.officesData),a(2),I(i.userForm.controls.officeId.hasError("required")?51:-1),a(3),h(m(55,41,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(62,43,"labels.inputs.Roles")),a(3),we(i.rolesData),a(2),I(i.userForm.controls.roles.hasError("required")?66:-1),a(2),g("routerLink",oe(49,lpi)),a(),v(" ",m(70,45,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.userForm.valid),a(),v(" ",m(73,47,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var Epi=()=>["edit"],Ipi=()=>["../"];function Opi(e,o){if(e&1&&(l(0,"div",9)(1,"div",10),c(2),p(3,"translate"),r(),l(4,"div",11),c(5),r()()),e&2){let t=w();a(2),h(m(3,2,"labels.inputs.Email")),a(3),h(t.userData.email)}}function Api(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}var Jw=(()=>{class e{constructor(){this.usersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.route.data.subscribe(t=>{this.userData=t.user})}delete(){this.dialog.open(vi,{data:{deleteContext:`user ${this.userData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.usersService.deleteUser(this.userData.id).subscribe(()=>{this.router.navigate(["/appusers"])})})}changeUserPassword(){this.dialog.open(Vg,{width:"440px"}).afterClosed().subscribe(n=>{if(n.password&&n.repeatPassword){let i=n.password,s=n.repeatPassword,d=this.userData.firstname,u={password:i,repeatPassword:s,firstname:d};this.usersService.changePassword(this.userData.id,u).subscribe(()=>{this.router.navigate(["/appusers"])})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-user"]],decls:53,vars:36,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","cog",1,"m-r-10"],[1,"container"],[1,"content-rows"],[1,"content-row"],[1,"label"],[1,"value"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile","back-button-container"],["type","button","mat-raised-button","","color","primary",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.delete()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r(),l(9,"button",5),R("click",function(){return i.changeUserPassword()}),b(10,"fa-icon",6),c(11),p(12,"translate"),r()(),l(13,"div",7)(14,"mat-card")(15,"mat-card-content")(16,"div",8)(17,"div",9)(18,"div",10),c(19),p(20,"translate"),r(),l(21,"div",11),c(22),r()(),l(23,"div",9)(24,"div",10),c(25),p(26,"translate"),r(),l(27,"div",11),c(28),r()(),l(29,"div",9)(30,"div",10),c(31),p(32,"translate"),r(),l(33,"div",11),c(34),r()(),E(35,Opi,6,4,"div",9),l(36,"div",9)(37,"div",10),c(38),p(39,"translate"),r(),l(40,"div",11),c(41),r()(),l(42,"div",9)(43,"div",10),c(44),p(45,"translate"),r(),l(46,"div",11),Se(47,Api,2,1,"span",null,Pe),r()()(),l(49,"div",12)(50,"button",13),c(51),p(52,"translate"),r()()()()()),n&2&&(a(),g("routerLink",oe(34,Epi)),a(2),v(" ",m(4,16,"labels.buttons.Edit")," "),a(4),v(" ",m(8,18,"labels.buttons.Delete")," "),a(4),v(" ",m(12,20,"labels.buttons.Change Password")," "),a(8),h(m(20,22,"labels.inputs.Login Name")),a(3),h(i.userData.username),a(3),h(m(26,24,"labels.inputs.First Name")),a(3),h(i.userData.firstname),a(3),h(m(32,26,"labels.inputs.Last Name")),a(3),h(i.userData.lastname),a(),I(i.userData.email?35:-1),a(3),h(m(39,28,"labels.inputs.Office")),a(3),h(i.userData.officeName),a(3),h(m(45,30,"labels.inputs.Roles")),a(3),we(i.userData.selectedRoles),a(3),g("routerLink",oe(35,Ipi)),a(),v(" ",m(52,32,"labels.buttons.Back")," "))},dependencies:[ue,fe,Oe,Ue,Je,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;margin:0 auto;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:8px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50[_ngcontent-%COMP%]{padding:.5rem}.container[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .flex-50.mat-body-strong[_ngcontent-%COMP%]{color:var(--label-color, #555);font-weight:600}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%]{display:flex;flex-direction:row;border-bottom:1px solid var(--border-color-light, #eee);padding-bottom:.5rem}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{flex:0 0 40%;font-weight:600;color:var(--label-color, #555);padding:.5rem 1rem .5rem 0}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{flex:0 0 60%;padding:.5rem 0;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content-rows[_ngcontent-%COMP%] .content-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block;padding:.25rem 0}.container[_ngcontent-%COMP%] .back-button-container[_ngcontent-%COMP%]{margin-top:2rem}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{transition:all .2s ease}.container[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{transform:translateY(-2px)}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--border-color-light: #3a3a3a;--card-background: #2d2d2d;--label-color: #b8b8b8;--text-color: #e0e0e0}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}"]})}}return e})();var Fpi=()=>["../"];function kpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Bpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Rpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Npi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.First Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function Lpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Vpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Last Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function qpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function zpi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Hpi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Gpi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function jpi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function $pi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one role")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}var Kw=(()=>{class e{constructor(){this.formBuilder=T(nt),this.usersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.route.data.subscribe(t=>{this.userData=t.user,this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles})}ngOnInit(){this.createEditUserForm(),this.officeChanged(this.userData.officeId)}createEditUserForm(){let t=this.userData.staff?this.userData.staff.id:null;this.editUserForm=this.formBuilder.group({username:[this.userData.username,ce.required],email:[this.userData.email,[ce.required,ce.email]],firstname:[this.userData.firstname,[ce.required,ce.pattern("(^[A-z]).*")]],lastname:[this.userData.lastname,[ce.required,ce.pattern("(^[A-z]).*")]],passwordNeverExpires:[this.userData.passwordNeverExpires],officeId:[this.userData.officeId,ce.required],staffId:[t],roles:[this.userData.selectedRoles.map(n=>n.id),ce.required]})}officeChanged(t){this.staffData=[],this.usersService.getStaff(t).subscribe(n=>{this.staffData=n})}submit(){let t=this.editUserForm.value;this.usersService.editUser(this.userData.id,t).subscribe(n=>{this.router.navigate(["../../",n.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-user"]],decls:66,vars:43,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","username"],["matInput","","required","","formControlName","email"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"password-never-expires-wrapper","flex-48"],["labelPosition","before","formControlName","passwordNeverExpires"],["required","","formControlName","officeId",3,"selectionChange"],[3,"value"],["formControlName","staffId"],["required","","formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card")(2,"form",1),R("ngSubmit",function(){return i.submit()}),l(3,"mat-card-content")(4,"div",2)(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,kpi,7,9,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,Bpi,7,9,"mat-error"),E(17,Rpi,7,9,"mat-error"),r(),l(18,"mat-form-field",3)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",6),E(23,Npi,6,6,"mat-error"),E(24,Lpi,7,9,"mat-error"),r(),l(25,"mat-form-field",3)(26,"mat-label"),c(27),p(28,"translate"),r(),b(29,"input",7),E(30,Vpi,6,6,"mat-error"),E(31,qpi,7,9,"mat-error"),r(),l(32,"div",8)(33,"mat-checkbox",9),c(34),p(35,"translate"),r()(),l(36,"mat-form-field",3)(37,"mat-label"),c(38),p(39,"translate"),r(),l(40,"mat-select",10),R("selectionChange",function(d){return i.officeChanged(d.value)}),Se(41,zpi,2,2,"mat-option",11,Pe),r(),E(43,Hpi,7,9,"mat-error"),r(),l(44,"mat-form-field",3)(45,"mat-label"),c(46),p(47,"translate"),r(),l(48,"mat-select",12),Se(49,Gpi,2,2,"mat-option",11,Pe),r()(),l(51,"mat-form-field",3)(52,"mat-label"),c(53),p(54,"translate"),r(),l(55,"mat-select",13),Se(56,jpi,2,2,"mat-option",11,Pe),r(),E(58,$pi,6,6,"mat-error"),r()()(),l(59,"mat-card-actions",14)(60,"button",15),c(61),p(62,"translate"),r(),l(63,"button",16),c(64),p(65,"translate"),r()()()()()),n&2&&(a(2),g("formGroup",i.editUserForm),a(5),h(m(8,22,"labels.inputs.Username")),a(3),I(i.editUserForm.controls.username.hasError("required")?10:-1),a(3),h(m(14,24,"labels.inputs.Email")),a(3),I(i.editUserForm.controls.email.hasError("email")?16:-1),a(),I(i.editUserForm.controls.email.hasError("required")?17:-1),a(3),h(m(21,26,"labels.inputs.First Name")),a(3),I(i.editUserForm.controls.firstname.hasError("pattern")?23:-1),a(),I(i.editUserForm.controls.firstname.hasError("required")?24:-1),a(3),h(m(28,28,"labels.inputs.Last Name")),a(3),I(i.editUserForm.controls.lastname.hasError("pattern")?30:-1),a(),I(i.editUserForm.controls.lastname.hasError("required")?31:-1),a(3),v(" ",m(35,30,"labels.inputs.Password never expires")," "),a(4),h(m(39,32,"labels.inputs.Office")),a(3),we(i.officesData),a(2),I(i.editUserForm.controls.officeId.hasError("required")?43:-1),a(3),h(m(47,34,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(54,36,"labels.inputs.Roles")),a(3),we(i.rolesData),a(2),I(i.editUserForm.controls.roles.hasError("required")?58:-1),a(2),g("routerLink",oe(42,Fpi)),a(),v(" ",m(62,38,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.editUserForm.valid),a(),v(" ",m(65,40,"labels.buttons.Submit")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,fi,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var SO=(()=>{class e{constructor(){this.usersService=T(Xr)}resolve(){return this.usersService.getUsers()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Sh=(()=>{class e{constructor(){this.usersService=T(Xr)}resolve(){return this.usersService.getUsersTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Xw=(()=>{class e{constructor(){this.usersService=T(Xr)}resolve(t){let n=t.paramMap.get("id");return this.usersService.getUser(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var vs=(()=>{class e{constructor(){this.http=T(ko),this.autservice=T(Ia),this.api=un.OIDC.oidcApiUrl}createUser(t){return this.http.post(this.api+"authentication/user",t)}getExtraUserData(t){return this.http.get(`${this.api}authentication/user/db/${t}`)}assignRolesToUser(t,n){let i={userId:t,roleKeys:n.map(String)};return this.http.post(this.api+"authentication/user/role",i)}createUserBd(t){return this.http.post(this.api+"authentication/user/db",t)}getUsersTemplate(){return this.http.get("/users/template")}getUsers(){let t=this.autservice.getAccessToken();return af(fetch(`${this.api}authentication/user`,{headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`}})).pipe(rf(n=>n.json()),Mn(n=>{let i=[],s=n.object?.result;return Array.isArray(s)&&s.forEach(d=>{d.human&&i.push({id:d.id,firstname:d.human.profile.firstName,lastname:d.human.profile.lastName,email:d.human.email.email,officeName:"Head Office"})}),i}))}getUser(t){let n=`${this.api}authentication/user/${t}`;return af(fetch(n,{method:"GET",headers:{"Content-Type":"application/json",Authorization:`Bearer ${this.autservice.getAccessToken()}`}})).pipe(rf(i=>i.json()),Mn(i=>i))}editUser(t){return this.http.put(this.api+"authentication/user",t)}editRoles(t){return this.http.put(this.api+"authentication/user/role",t)}editOffice(t){return this.http.put(this.api+"authentication/user/office",t)}getRoles(){return this.http.get(this.api+"authentication/role")}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var wO=(()=>{class e{constructor(){this.usersServiceZitadel=T(vs)}resolve(){return this.usersServiceZitadel.getUsers()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var PO=(()=>{class e{constructor(){this.usersServiceZitadel=T(vs)}resolve(){return this.usersServiceZitadel.getUsersTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Zw=(()=>{class e{constructor(){this.usersServiceZitadel=T(vs)}resolve(t){let n=t.paramMap.get("id");return this.usersServiceZitadel.getUser(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var Wpi=["paginatorUsers"],Qpi=["sortUsers"],Ypi=["paginatorZitadel"],Jpi=["sortZitadel"],Kpi=["buttonCreateUser"],Xpi=["templateButtonCreateUser"],Zpi=["usersTable"],emi=["templateUsersTable"],tmi=()=>["create"],imi=()=>[10,25,50,100],nmi=e=>[e];function omi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.First Name")))}function ami(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.firstname)}}function rmi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Last Name")))}function lmi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.lastname)}}function smi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Email")))}function cmi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.email)}}function pmi(e,o){e&1&&(l(0,"th",23),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Office")))}function mmi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.officeName)}}function dmi(e,o){e&1&&b(0,"tr",25)}function umi(e,o){if(e&1&&b(0,"tr",26),e&2){let t=o.$implicit;g("routerLink",Nt(1,nmi,t.id))}}var eP=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.configurationWizardService=T(Qi),this.popoverService=T(Wi),this.usersData=[],this.usersZitadelData=[],this.displayedColumns=["firstname","lastname","email","officeName"],this.dataSource=new Wt,this.dataSourceZitadel=new Wt}ngOnInit(){this.route.data.subscribe(t=>{this.usersData=t.users||[],this.usersZitadelData=t.usersZitadel||[],this.dataSource=new Wt(this.usersData),this.dataSourceZitadel=new Wt(this.usersZitadelData),this.dataSource.paginator=this.paginatorUsers,this.dataSource.sort=this.sortUsers,this.dataSourceZitadel.paginator=this.paginatorZitadel,this.dataSourceZitadel.sort=this.sortZitadel})}applyFilter(t){let n=t.trim().toLowerCase();this.dataSource.filter=n,this.dataSourceZitadel.filter=n}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsers&&setTimeout(()=>{this.showPopover(this.templateButtonCreateUser,this.buttonCreateUser.nativeElement,"bottom",!0)}),this.configurationWizardService.showUsersList&&setTimeout(()=>{this.showPopover(this.templateUsersTable,this.usersTable.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showUsersForm=!0,this.router.navigate(["/appusers/create"])}previousStep(){this.configurationWizardService.showUsers=!1,this.configurationWizardService.showUsersList=!1,this.configurationWizardService.showRolesandPermissionList=!0,this.router.navigate(["/system/roles-and-permissions"])}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-users"]],viewQuery:function(n,i){if(n&1&&(Ee(Wpi,7),Ee(Qpi,7),Ee(Ypi,7),Ee(Jpi,7),Ee(Kpi,5),Ee(Xpi,5),Ee(Zpi,5),Ee(emi,5)),n&2){let s;Te(s=Me())&&(i.paginatorUsers=s.first),Te(s=Me())&&(i.sortUsers=s.first),Te(s=Me())&&(i.paginatorZitadel=s.first),Te(s=Me())&&(i.sortZitadel=s.first),Te(s=Me())&&(i.buttonCreateUser=s.first),Te(s=Me())&&(i.templateButtonCreateUser=s.first),Te(s=Me())&&(i.usersTable=s.first),Te(s=Me())&&(i.templateUsersTable=s.first)}},decls:37,vars:16,consts:[["buttonCreateUser",""],["filter",""],["sortUsers","matSort"],["paginatorUsers",""],[1,"container","m-b-20","layout-row","align-end","gap-20px"],[1,"in-block"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","plus",1,"m-r-10"],[1,"container","container-margin"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"container","mat-elevation-z8","container-margin"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","firstname"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","lastname"],["matColumnDef","email"],["matColumnDef","officeName"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",4)(1,"div",5,0)(3,"button",6),b(4,"fa-icon",7),c(5),p(6,"translate"),r()()(),l(7,"div",8)(8,"div",9,1)(10,"mat-form-field",10)(11,"mat-label"),c(12),p(13,"translate"),r(),l(14,"input",11),R("keyup",function(u){return V(s),q(i.applyFilter(u.target.value))}),r()()()(),l(15,"div",12)(16,"h3"),c(17),p(18,"translate"),r(),l(19,"table",13,2),X(21,14),F(22,omi,3,3,"th",15)(23,ami,2,1,"td",16),Z(),X(24,17),F(25,rmi,3,3,"th",15)(26,lmi,2,1,"td",16),Z(),X(27,18),F(28,smi,3,3,"th",15)(29,cmi,2,1,"td",16),Z(),X(30,19),F(31,pmi,3,3,"th",15)(32,mmi,2,1,"td",16),Z(),F(33,dmi,1,0,"tr",20)(34,umi,1,3,"tr",21),r(),b(35,"mat-paginator",22,3),r()}n&2&&(a(3),g("routerLink",oe(14,tmi)),a(2),v(" ",m(6,8,"labels.buttons.Create User")," "),a(7),h(m(13,10,"labels.inputs.Filter")),a(5),h(m(18,12,"labels.heading.Users")),a(2),g("dataSource",i.dataSource),a(14),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(15,imi)))},dependencies:[ue,fe,Oe,Fe,Be,ze,xe,Rg,ke,pk,kt,fk,It,ri,gk,_t,vt,St,xt,Ct,wt,bt,yt,Pt,Tt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.container-margin[_ngcontent-%COMP%]{margin-top:1rem}"]})}}return e})();var fmi=e=>({minchar:e});function hmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Password Current Required")," "))}function gmi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w();a(),v(" ",Ft(2,1,"labels.commons.Password validation",Nt(4,fmi,t.minPasswordLength))," ")}}function _mi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"inputs.passwordsDoNotMatch")," "))}var zX=(()=>{class e{constructor(){this.dialogRef=T(eo),this.data=T(Po),this.formBuilder=T(nt),this.http=T(ko),this.translateService=T(yi),this.minPasswordLength=un.minPasswordLength||12,this.api=un.OIDC.oidcApiUrl}ngOnInit(){this.createChangePasswordForm(),this.setupPasswordMatchValidation()}createChangePasswordForm(){this.changePasswordForm=this.formBuilder.group({currentPassword:["",ce.required],password:["",[ce.required,ce.minLength(this.minPasswordLength),ce.maxLength(50),ce.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)]],repeatPassword:["",ce.required]},{validators:jp})}setupPasswordMatchValidation(){this.changePasswordForm.get("password")?.valueChanges.subscribe(()=>{this.changePasswordForm.get("repeatPassword")?.updateValueAndValidity()}),this.changePasswordForm.get("repeatPassword")?.setValidators([ce.required,this.matchOtherControl("password")])}matchOtherControl(t){return n=>{let i=n?.parent;if(!i)return null;let s=i.get(t);return s?n.value===s.value?null:{notequal:!0}:null}}onSubmit(){if(this.changePasswordForm.invalid)return;let t={userId:this.data.id,currentPassword:this.changePasswordForm.value.currentPassword,newPassword:{password:this.changePasswordForm.value.password,changeRequired:!1}};this.http.put(this.api+"authentication/user/password",t).subscribe({next:n=>{this.dialogRef.close(!0)},error:n=>{try{let i=JSON.parse(n.error.message);i.code===3?alert(this.translateService.instant("labels.inputs.The current password is not correct")):i.code===9?alert(this.translateService.instant("labels.inputs.New password cannot be the same as your current password")):alert("Error: "+i.message)}catch{alert(this.translateService.instant("labels.inputs.Unable to update password"))}}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-change-password-dialog"]],decls:30,vars:23,consts:[["mat-dialog-title",""],["mat-dialog-content",""],[1,"layout-column",3,"ngSubmit","formGroup"],["appearance","fill",1,"full-width"],["matInput","","type","password","formControlName","currentPassword","required",""],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","repeatPassword","required",""],["align","center"],["mat-raised-button","","color","warn","type","button",3,"click"],["mat-raised-button","","color","primary","type","submit",3,"disabled"]],template:function(n,i){if(n&1&&(l(0,"h1",0),c(1),p(2,"translate"),r(),l(3,"div",1)(4,"form",2),R("ngSubmit",function(){return i.onSubmit()}),l(5,"mat-form-field",3)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",4),E(10,hmi,3,3,"mat-error"),r(),l(11,"mat-form-field",3)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",5),E(16,gmi,3,6,"mat-error"),r(),l(17,"mat-form-field",3)(18,"mat-label"),c(19),p(20,"translate"),r(),b(21,"input",6),E(22,_mi,3,3,"mat-error"),r(),l(23,"mat-dialog-actions",7)(24,"button",8),R("click",function(){return i.dialogRef.close()}),c(25),p(26,"translate"),r(),l(27,"button",9),c(28),p(29,"translate"),r()()()()),n&2){let s,d,u;a(),h(m(2,11,"labels.heading.Change Password")),a(3),g("formGroup",i.changePasswordForm),a(3),h(m(8,13,"labels.inputs.Password Current")),a(3),I((s=i.changePasswordForm.get("currentPassword"))!=null&&s.hasError("required")?10:-1),a(3),h(m(14,15,"labels.inputs.Password New")),a(3),I((d=i.changePasswordForm.get("password"))!=null&&d.errors?16:-1),a(3),h(m(20,17,"labels.inputs.Repeat Password")),a(3),I((u=i.changePasswordForm.get("repeatPassword"))!=null&&u.hasError("notequal")?22:-1),a(3),v(" ",m(26,19,"labels.buttons.Cancel")," "),a(2),g("disabled",!i.changePasswordForm.valid),a(),v(" ",m(29,21,"labels.buttons.Confirm")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Fe,Be,ut,ze,xe,Nn,he],styles:[".error[_ngcontent-%COMP%]{color:red}mat-dialog-content[_ngcontent-%COMP%]{min-width:240px;width:240px}"]})}}return e})();var Cmi=()=>["edit"],vmi=()=>["../../"];function xmi(e,o){if(e&1){let t=Y();l(0,"div")(1,"button",14),R("click",function(){V(t);let i=w();return q(i.changeUserPassword(i.userData.id))}),b(2,"fa-icon",15),c(3),p(4,"translate"),r()()}e&2&&(a(3),v(" ",m(4,1,"labels.buttons.Change Password")," "))}function bmi(e,o){if(e&1){let t=Y();l(0,"button",3),R("click",function(){V(t);let i=w();return q(i.desactiveUser(i.userData.id))}),b(1,"fa-icon",16),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Disable")," "))}function ymi(e,o){if(e&1){let t=Y();l(0,"button",14),R("click",function(){V(t);let i=w();return q(i.activeUser(i.userData.id))}),b(1,"fa-icon",17),c(2),p(3,"translate"),r()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Reactivate")," "))}function Smi(e,o){e&1&&(l(0,"button",7),b(1,"fa-icon",16),c(2),p(3,"translate"),r()),e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Validate")," "))}function wmi(e,o){e&1&&(l(0,"div",10),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Email")," "))}function Pmi(e,o){if(e&1&&(l(0,"div",11),c(1),r()),e&2){let t=w();a(),v(" ",t.userData.email," ")}}function Tmi(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}var tP=(()=>{class e{constructor(){this.usersService=T(vs),this.route=T(Ie),this.router=T(qe),this.dialog=T(Ht),this.authService=T(Ia),this.route.data.subscribe(t=>{let n=t.user.object?.result?.[0],i={id:n.id,username:n.userName,firstname:n.human?.profile?.firstName,lastname:n.human?.profile?.lastName,officeName:"Head Office",officeId:n.user_uuid??null,availableRoles:n.availableRoles??"Admin",selectedRoles:n.selectedRoles??"Admin",isSelfServiceUser:n.state};this.userData=i})}delete(){this.dialog.open(vi,{data:{deleteContext:`user ${this.userData.id}`}}).afterClosed().subscribe(n=>{n.delete&&this.authService.deletUser(this.userData.id)})}changeUserPassword(t){this.dialog.open(zX,{width:"440px",data:{id:t}}).afterClosed().subscribe(i=>{if(i.password&&i.repeatPassword){let s=i.password,d=i.repeatPassword,u=this.userData.firstname,f={password:s,repeatPassword:d,firstname:u}}})}desactiveUser(t){this.authService.desactiveUser(t)}activeUser(t){this.authService.activeUser(t)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-user"]],decls:50,vars:36,consts:[[1,"container","m-b-20","layout-row","layout-lt-md-column","align-end","gap-2percent"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","warn"],["mat-raised-button","","color","primary"],["mat-raised-button","","color","primary","disabled",""],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["icon","cog",1,"m-r-10"],["icon","ban",1,"m-r-10"],["icon","check",1,"m-r-10"]],template:function(n,i){if(n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.delete()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r(),E(9,xmi,5,3,"div"),l(10,"div"),E(11,bmi,4,3,"button",5)(12,ymi,4,3,"button",6)(13,Smi,4,3,"button",7),r()(),l(14,"div",8)(15,"mat-card")(16,"mat-card-content")(17,"div",9)(18,"div",10),c(19),p(20,"translate"),r(),l(21,"div",11),c(22),r(),l(23,"div",10),c(24),p(25,"translate"),r(),l(26,"div",11),c(27),r(),l(28,"div",10),c(29),p(30,"translate"),r(),l(31,"div",11),c(32),r(),E(33,wmi,3,3,"div",10),E(34,Pmi,2,1,"div",11),l(35,"div",10),c(36),p(37,"translate"),r(),l(38,"div",11),c(39),r(),l(40,"div",10),c(41),p(42,"translate"),r(),l(43,"div",11),Se(44,Tmi,2,1,"span",null,Pe),r()(),l(46,"div",12)(47,"button",13),c(48),p(49,"translate"),r()()()()()),n&2){let s;a(),g("routerLink",oe(34,Cmi)),a(2),v(" ",m(4,18,"labels.buttons.Edit")," "),a(4),v(" ",m(8,20,"labels.buttons.Delete")," "),a(2),I(i.userData.isSelfServiceUser==="USER_STATE_ACTIVE"||i.userData.isSelfServiceUser==="USER_STATE_INACTIVE"?9:-1),a(2),I((s=i.userData.isSelfServiceUser)==="USER_STATE_ACTIVE"?11:s==="USER_STATE_INACTIVE"?12:13),a(8),v(" ",m(20,22,"labels.inputs.Login Name")," "),a(3),v(" ",i.userData.username," "),a(2),v(" ",m(25,24,"labels.inputs.First Name")," "),a(3),v(" ",i.userData.firstname," "),a(2),v(" ",m(30,26,"labels.inputs.Last Name")," "),a(3),v(" ",i.userData.lastname," "),a(),I(i.userData.email?33:-1),a(),I(i.userData.email?34:-1),a(2),v(" ",m(37,28,"labels.inputs.Office")," "),a(3),v(" ",i.userData.officeName," "),a(2),v(" ",m(42,30,"labels.inputs.Roles")," "),a(3),we(i.userData.selectedRoles),a(3),g("routerLink",oe(35,vmi)),a(),v(" ",m(49,32,"labels.buttons.Back")," ")}},dependencies:[ue,fe,Oe,Ue,Je,xe,Rg,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:block}"]})}}return e})();var iP=[{code:"+376",key:"AD"},{code:"+971",key:"AE"},{code:"+93",key:"AF"},{code:"+355",key:"AL"},{code:"+374",key:"AM"},{code:"+244",key:"AO"},{code:"+54",key:"AR"},{code:"+43",key:"AT"},{code:"+61",key:"AU"},{code:"+994",key:"AZ"},{code:"+387",key:"BA"},{code:"+880",key:"BD"},{code:"+32",key:"BE"},{code:"+359",key:"BG"},{code:"+226",key:"BF"},{code:"+257",key:"BI"},{code:"+973",key:"BH"},{code:"+591",key:"BO"},{code:"+55",key:"BR"},{code:"+375",key:"BY"},{code:"+1",key:"CA"},{code:"+237",key:"CM"},{code:"+56",key:"CL"},{code:"+86",key:"CN"},{code:"+57",key:"CO"},{code:"+506",key:"CR"},{code:"+53",key:"CU"},{code:"+357",key:"CY"},{code:"+420",key:"CZ"},{code:"+49",key:"DE"},{code:"+45",key:"DK"},{code:"+213",key:"DZ"},{code:"+20",key:"EG"},{code:"+503",key:"SV"},{code:"+372",key:"EE"},{code:"+34",key:"ES"},{code:"+251",key:"ET"},{code:"+358",key:"FI"},{code:"+33",key:"FR"},{code:"+44",key:"GB"},{code:"+995",key:"GE"},{code:"+233",key:"GH"},{code:"+30",key:"GR"},{code:"+502",key:"GT"},{code:"+504",key:"HN"},{code:"+385",key:"HR"},{code:"+36",key:"HU"},{code:"+62",key:"ID"},{code:"+91",key:"IN"},{code:"+353",key:"IE"},{code:"+972",key:"IL"},{code:"+964",key:"IQ"},{code:"+98",key:"IR"},{code:"+354",key:"IS"},{code:"+39",key:"IT"},{code:"+81",key:"JP"},{code:"+962",key:"JO"},{code:"+254",key:"KE"},{code:"+996",key:"KG"},{code:"+855",key:"KH"},{code:"+82",key:"KR"},{code:"+965",key:"KW"},{code:"+371",key:"LV"},{code:"+961",key:"LB"},{code:"+94",key:"LK"},{code:"+370",key:"LT"},{code:"+352",key:"LU"},{code:"+218",key:"LY"},{code:"+212",key:"MA"},{code:"+377",key:"MC"},{code:"+373",key:"MD"},{code:"+389",key:"MK"},{code:"+976",key:"MN"},{code:"+52",key:"MX"},{code:"+60",key:"MY"},{code:"+258",key:"MZ"},{code:"+234",key:"NG"},{code:"+505",key:"NI"},{code:"+31",key:"NL"},{code:"+47",key:"NO"},{code:"+977",key:"NP"},{code:"+64",key:"NZ"},{code:"+507",key:"PA"},{code:"+92",key:"PK"},{code:"+595",key:"PY"},{code:"+51",key:"PE"},{code:"+63",key:"PH"},{code:"+48",key:"PL"},{code:"+351",key:"PT"},{code:"+974",key:"QA"},{code:"+40",key:"RO"},{code:"+381",key:"RS"},{code:"+7",key:"RU"},{code:"+966",key:"SA"},{code:"+221",key:"SN"},{code:"+46",key:"SE"},{code:"+65",key:"SG"},{code:"+421",key:"SK"},{code:"+386",key:"SI"},{code:"+503",key:"SV"},{code:"+27",key:"ZA"},{code:"+41",key:"CH"},{code:"+886",key:"TW"},{code:"+66",key:"TH"},{code:"+90",key:"TR"},{code:"+380",key:"UA"},{code:"+256",key:"UG"},{code:"+1",key:"US"},{code:"+598",key:"UY"},{code:"+998",key:"UZ"},{code:"+58",key:"VE"},{code:"+84",key:"VN"},{code:"+967",key:"YE"},{code:"+260",key:"ZM"},{code:"+263",key:"ZW"}];var nP=[{code:"de",key:"de-DE",name:"German"},{code:"en",key:"en-US",name:"English"},{code:"es",key:"es-MX",name:"Espa\xF1ol"},{code:"fr",key:"fr-FR",name:"French"},{code:"it",key:"it-IT",name:"Italian"},{code:"ko",key:"ko-KO",name:"\uD55C\uAD6D\uC5B4"},{code:"pt",key:"pt-PT",name:"Portuguese"}];var Mmi=["userFormRef"],Dmi=["templateUserFormRef"],Emi=()=>["../"];function Imi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Omi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Ami(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Fmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",m(2,2,"languages."+t.key)," ")}}function kmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),le(" ",m(2,3,"countries."+t.key)," (",t.code,") ")}}function Bmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Rmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Nmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Lmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Vmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should be at least")," "),a(3),h(m(5,4,"labels.commons.12 characters long")))}function qmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.Password should not be more than")," "),a(3),h(m(5,4,"labels.commons.50 characters long")))}function zmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r(),c(6),p(7,"translate"),l(8,"strong"),c(9),p(10,"translate"),r(),c(11,", "),l(12,"strong"),c(13),p(14,"translate"),r()()),e&2&&(a(),v(" ",m(2,5,"labels.commons.Password should include a")," "),a(3),h(m(5,7,"labels.commons.numeral")),a(2),v(" ",m(7,9,"labels.commons.and at")," "),a(3),h(m(10,11,"labels.commons.least one uppercase")),a(4),h(m(14,13,"labels.commons.lowercase and special character")))}function Hmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Password")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Gmi(e,o){e&1&&(l(0,"p",23),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Passwords")," "),a(3),h(m(5,4,"labels.commons.do not match")))}function jmi(e,o){if(e&1&&(l(0,"mat-option",10),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function $mi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.commons.At least one role")," "),a(3),h(m(5,4,"labels.commons.must be selected")))}function Umi(e,o){if(e&1){let t=Y();l(0,"h2"),c(1),p(2,"translate"),r(),l(3,"p",28),c(4),p(5,"translate"),l(6,"a",29),c(7),p(8,"translate"),r()(),l(9,"div",30)(10,"button",31),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.configurationWizardService.closeConfigWizard())}),c(11),p(12,"translate"),r(),l(13,"button",32),R("click",function(){let i=V(t).popover;return q(i.close())}),c(14),p(15,"translate"),r(),l(16,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.previousStep())}),c(17),p(18,"translate"),r(),l(19,"button",32),R("click",function(){let i=V(t).popover,s=w();return i.close(),q(s.nextStep())}),c(20),p(21,"translate"),r()()}e&2&&(a(),h(m(2,7,"labels.heading.Create User")),a(3),v(" ",m(5,9,"labels.text.Filling Details"),": "),a(3),h(m(8,11,"labels.inputs.Users")),a(4),v(" ",m(12,13,"labels.buttons.Close")," "),a(3),v(" ",m(15,15,"labels.buttons.Create User")," "),a(3),v(" ",m(18,17,"labels.buttons.Back")," "),a(3),v(" ",m(21,19,"labels.buttons.Next")," "))}var oP=(()=>{class e{constructor(){this.formBuilder=T(nt),this.usersService=T(vs),this.usersService2=T(Xr),this.route=T(Ie),this.router=T(qe),this.popoverService=T(Wi),this.configurationWizardService=T(Qi),this.dialog=T(Ht),this.passwordsUtility=T(S0),this.countryCodes=iP,this.languageCodes=nP,this.route.data.subscribe(t=>{this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles})}ngOnInit(){this.createUserForm(),this.setStaffData(),this.setConditionalControls()}createUserForm(){this.userForm=this.formBuilder.group({username:["",ce.required],email:["",[ce.required,ce.email]],firstName:["",ce.required],lastName:["",ce.required],preferredLanguage:["",ce.required],gender:["",ce.required],countryCode:["+1",ce.required],phoneNumber:["",[ce.required,ce.pattern(/^[0-9]{7,15}$/)]],password:["",[ce.required,ce.minLength(12),ce.maxLength(50),ce.pattern(/^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[\W_]).+$/)]],repeatPassword:["",ce.required],roles:["",ce.required],officeId:["",ce.required],staffId:[""]},{validators:jp})}setStaffData(){this.userForm.get("officeId").valueChanges.subscribe(t=>{this.staffData=[],this.usersService2.getStaff(t).subscribe(n=>{this.staffData=n})})}setConditionalControls(){this.userForm.get("sendPasswordToEmail").valueChanges.subscribe(t=>{let n=this.userForm.get("password"),i=this.userForm.get("repeatPassword");t?(n.disable(),i.disable(),this.userForm.get("email")?.setValidators([ce.required,ce.email])):(n.enable(),i.enable(),this.userForm.get("email")?.setValidators([ce.email])),this.userForm.get("email")?.updateValueAndValidity()})}submit(){let t=this.userForm.value,n=`${t.countryCode}${t.phoneNumber}`,i=`${t.repeatPassword}`,s=`${t.firstName}`,d=`${t.lastName}`,u=`${t.username}`,f=qt(at({},t),{phone:n,password:i,givenName:s,familyName:d,nickName:u,displayName:`${t.firstName} ${t.lastName}`}),_={officeId:t.officeId,staffId:t.staffId},C=this.userForm.get("roles")?.value;delete f.officeId,delete f.staffId,delete f.roles,delete f.countryCode,delete f.phoneNumber,delete f.repeatPassword,delete f.firstName,delete f.lastName,this.usersService.createUser(f).subscribe(x=>{let y=x.object?.userId;if(y){let P={id:y,officeId:_.officeId,staffId:_.staffId,username:f.nickName,firstname:f.givenName,lastname:f.familyName,roleIds:C||[]};this.usersService.createUserBd(P).subscribe(S=>{C?.length>0?this.usersService.assignRolesToUser(y,C).subscribe(()=>{this.configurationWizardService.showUsersForm===!0?(this.configurationWizardService.showUsersForm=!1,this.openDialog()):this.router.navigate(["/appusers"])},M=>{console.error("Failed to assign roles to user:",M)}):console.warn("No roles were selected for this user.")},S=>{console.error("Failed to create user record in database:",S)})}else console.error("User creation failed: userId not returned by API.")})}showPopover(t,n,i,s){setTimeout(()=>this.popoverService.open(t,n,i,s,{}),200)}ngAfterViewInit(){this.configurationWizardService.showUsersForm===!0&&setTimeout(()=>{this.showPopover(this.templateUserFormRef,this.userFormRef.nativeElement,"top",!0)})}nextStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"])}previousStep(){this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showUsersList=!0,this.router.navigate(["/appusers"])}openDialog(){this.dialog.open(Ar,{data:{stepName:"user"}}).afterClosed().subscribe(n=>{n.step===1?(this.configurationWizardService.showUsersForm=!1,this.router.navigate(["../"],{relativeTo:this.route})):n.step===2?(this.configurationWizardService.showUsersForm=!0,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.router.navigate(["/organization/users/create"])):n.step===3&&(this.configurationWizardService.showUsersForm=!1,this.configurationWizardService.showMakerCheckerTable=!0,this.router.navigate(["/system"]))})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-create-user"]],viewQuery:function(n,i){if(n&1&&(Ee(Mmi,5),Ee(Dmi,5)),n&2){let s;Te(s=Me())&&(i.userFormRef=s.first),Te(s=Me())&&(i.templateUserFormRef=s.first)}},decls:110,vars:69,consts:[["templateUserFormRef",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","layout-lt-md-column","gap-2percent"],[1,"flex-48"],["matInput","","required","","formControlName","username"],["matInput","","required","","formControlName","email"],["matInput","","formControlName","firstName","required",""],["matInput","","formControlName","lastName","required",""],["formControlName","preferredLanguage","required",""],[3,"value"],["formControlName","gender","required",""],["value","GENDER_MALE"],["value","GENDER_FEMALE"],["value","GENDER_OTHER"],[1,"flex","items-center","gap-2"],["formControlName","countryCode","required",""],["matInput","","formControlName","phoneNumber","required","","maxlength","12","minlength","4"],[1,"flex-20"],["required","","formControlName","officeId"],["formControlName","staffId"],["matInput","","type","password","formControlName","password","required",""],["matInput","","type","password","formControlName","repeatPassword","required",""],[1,"flex-98","reset-password-error"],["formControlName","roles","required","","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[1,"mw400"],["href","https://mifosforge.jira.com/wiki/spaces/docs/pages/67141740/Users","target","_blank"],[1,"layout-row","align-end","gap-2px","responsive-column"],["mat-raised-button","","color","warn",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(n,i){if(n&1){let s=Y();l(0,"div",1)(1,"mat-card")(2,"form",2),R("ngSubmit",function(){return V(s),q(i.submit())}),l(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),c(7),p(8,"translate"),r(),b(9,"input",5),E(10,Imi,7,9,"mat-error"),r(),l(11,"mat-form-field",4)(12,"mat-label"),c(13),p(14,"translate"),r(),b(15,"input",6),E(16,Omi,7,9,"mat-error"),E(17,Ami,7,9,"mat-error"),r(),l(18,"mat-form-field",4)(19,"mat-label"),c(20),p(21,"translate"),r(),b(22,"input",7),r(),l(23,"mat-form-field",4)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",8),r(),l(28,"mat-form-field",4)(29,"mat-label"),c(30),p(31,"translate"),r(),l(32,"mat-select",9),Se(33,Fmi,3,4,"mat-option",10,Pe),r()(),l(35,"mat-form-field",4)(36,"mat-label"),c(37),p(38,"translate"),r(),l(39,"mat-select",11)(40,"mat-option",12),c(41),p(42,"translate"),r(),l(43,"mat-option",13),c(44),p(45,"translate"),r(),l(46,"mat-option",14),c(47),p(48,"translate"),r()()(),l(49,"div",15)(50,"mat-form-field",4)(51,"mat-label"),c(52),p(53,"translate"),r(),l(54,"mat-select",16),Se(55,kmi,3,5,"mat-option",10,Pe),r()(),l(57,"mat-form-field",4)(58,"mat-label"),c(59),p(60,"translate"),r(),b(61,"input",17),r()(),l(62,"mat-form-field",18)(63,"mat-label"),c(64),p(65,"translate"),r(),l(66,"mat-select",19),Se(67,Bmi,2,2,"mat-option",10,Pe),r(),E(69,Rmi,7,9,"mat-error"),r(),l(70,"mat-form-field",18)(71,"mat-label"),c(72),p(73,"translate"),r(),l(74,"mat-select",20),Se(75,Nmi,2,2,"mat-option",10,Pe),r()(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),b(81,"input",21),E(82,Lmi,7,9,"mat-error"),E(83,Vmi,6,6,"mat-error"),E(84,qmi,6,6,"mat-error"),E(85,zmi,15,15,"mat-error"),r(),l(86,"mat-form-field",4)(87,"mat-label"),c(88),p(89,"translate"),r(),b(90,"input",22),E(91,Hmi,7,9,"mat-error"),r(),E(92,Gmi,6,6,"p",23),l(93,"mat-form-field",18)(94,"mat-label"),c(95),p(96,"translate"),r(),l(97,"mat-select",24),Se(98,jmi,2,2,"mat-option",10,Pe),r(),E(100,$mi,6,6,"mat-error"),r()()(),l(101,"mat-card-actions",25)(102,"button",26),c(103),p(104,"translate"),r(),l(105,"button",27),c(106),p(107,"translate"),r()()()()(),F(108,Umi,22,21,"ng-template",null,0,ti)}if(n&2){let s,d,u,f,_,C;a(2),g("formGroup",i.userForm),a(5),h(m(8,32,"labels.inputs.Username")),a(3),I(i.userForm.controls.username.hasError("required")?10:-1),a(3),h(m(14,34,"labels.inputs.Email")),a(3),I(i.userForm.controls.email.hasError("email")?16:-1),a(),I(i.userForm.controls.email.hasError("required")?17:-1),a(3),h(m(21,36,"labels.inputs.First Name")),a(5),h(m(26,38,"labels.inputs.Last Name")),a(5),h(m(31,40,"labels.inputs.Language")),a(3),we(i.languageCodes),a(4),h(m(38,42,"labels.inputs.Gender")),a(4),h(m(42,44,"labels.catalogs.male")),a(3),h(m(45,46,"labels.catalogs.female")),a(3),h(m(48,48,"labels.catalogs.other")),a(5),h(m(53,50,"labels.inputs.Code")),a(3),we(i.countryCodes),a(4),h(m(60,52,"labels.inputs.Phone Number")),a(5),h(m(65,54,"labels.inputs.Office")),a(3),we(i.officesData),a(2),I(i.userForm.controls.officeId.hasError("required")?69:-1),a(3),h(m(73,56,"labels.inputs.Staff")),a(3),we(i.staffData),a(4),h(m(80,58,"labels.inputs.Password")),a(3),I((s=i.userForm.get("password"))!=null&&s.hasError("required")?82:-1),a(),I((d=i.userForm.get("password"))!=null&&d.hasError("minlength")?83:-1),a(),I((u=i.userForm.get("password"))!=null&&u.hasError("maxlength")?84:-1),a(),I((f=i.userForm.get("password"))!=null&&f.hasError("pattern")&&!((f=i.userForm.get("password"))!=null&&f.hasError("minlength"))&&!((f=i.userForm.get("password"))!=null&&f.hasError("maxlength"))?85:-1),a(3),h(m(89,60,"labels.inputs.Repeat Password")),a(3),I((_=i.userForm.get("repeatPassword"))!=null&&_.hasError("required")?91:-1),a(),I(i.userForm.errors!=null&&i.userForm.errors.passwordsDoNotMatch&&!((C=i.userForm.get("password"))!=null&&C.hasError("required"))&&!((C=i.userForm.get("repeatPassword"))!=null&&C.hasError("required"))?92:-1),a(3),h(m(96,62,"labels.inputs.Roles")),a(3),we(i.rolesData),a(2),I(i.userForm.controls.roles.hasError("required")?100:-1),a(2),g("routerLink",oe(68,Emi)),a(),v(" ",m(104,64,"labels.buttons.Cancel")," "),a(2),g("disabled",i.userForm.invalid),a(),v(" ",m(107,66,"labels.buttons.Submit")," ")}},dependencies:[ue,fe,tt,st,$e,Xe,dt,Bg,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%], .send-password-to-email-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}.reset-password-error[_ngcontent-%COMP%]{color:#f44336;font-size:80%;margin:0}"]})}}return e})();var Wmi=()=>["../"];function Qmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Username")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Ymi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.invalid")))}function Jmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Email")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Kmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.First Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function Xmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.First Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Zmi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2&&(a(),v(" ",m(2,2,"labels.inputs.Last Name")," "),a(3),h(m(5,4,"labels.commons.cannot begin with a special character or number")))}function edi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Last Name")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function tdi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),le(" ",m(2,3,"countries."+t.key)," (",t.code,") ")}}function idi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.code),a(),v(" ",m(2,2,"languages."+t.key)," ")}}function ndi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function odi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function adi(e,o){if(e&1&&(l(0,"mat-option",11),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function rdi(e,o){if(e&1){let t=Y();l(0,"form",2),R("ngSubmit",function(){V(t);let i=w();return q(i.submit())}),l(1,"mat-card-content")(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),b(7,"input",5),E(8,Qmi,7,9,"mat-error"),r(),l(9,"mat-form-field",4)(10,"mat-label"),c(11),p(12,"translate"),r(),b(13,"input",6),E(14,Ymi,7,9,"mat-error"),E(15,Jmi,7,9,"mat-error"),r(),l(16,"mat-form-field",4)(17,"mat-label"),c(18),p(19,"translate"),r(),b(20,"input",7),E(21,Kmi,6,6,"mat-error"),E(22,Xmi,7,9,"mat-error"),r(),l(23,"mat-form-field",4)(24,"mat-label"),c(25),p(26,"translate"),r(),b(27,"input",8),E(28,Zmi,6,6,"mat-error"),E(29,edi,7,9,"mat-error"),r(),l(30,"mat-form-field",9)(31,"mat-label"),c(32),p(33,"translate"),r(),l(34,"mat-select",10),Se(35,tdi,3,5,"mat-option",11,Pe),r()(),l(37,"mat-form-field",12)(38,"mat-label"),c(39),p(40,"translate"),r(),b(41,"input",13),r(),l(42,"mat-form-field",4)(43,"mat-label"),c(44),p(45,"translate"),r(),l(46,"mat-select",14)(47,"mat-option",15),c(48),p(49,"translate"),r(),l(50,"mat-option",16),c(51),p(52,"translate"),r(),l(53,"mat-option",17),c(54),p(55,"translate"),r()()(),l(56,"mat-form-field",4)(57,"mat-label"),c(58),p(59,"translate"),r(),l(60,"mat-select",18),Se(61,idi,3,4,"mat-option",11,Pe),r()(),l(63,"mat-form-field",4)(64,"mat-label"),c(65),p(66,"translate"),r(),l(67,"mat-select",19),R("selectionChange",function(i){V(t);let s=w();return q(s.officeChanged(i.value))}),Se(68,ndi,2,2,"mat-option",11,Pe),r()(),l(70,"mat-form-field",4)(71,"mat-label"),c(72),p(73,"translate"),r(),l(74,"mat-select",20),Se(75,odi,2,2,"mat-option",11,Pe),r()(),l(77,"mat-form-field",4)(78,"mat-label"),c(79),p(80,"translate"),r(),l(81,"mat-select",21),Se(82,adi,2,2,"mat-option",11,Pe),r()(),l(84,"mat-card-actions",22)(85,"button",23),c(86),p(87,"translate"),r(),l(88,"button",24),c(89),p(90,"translate"),r()()()()()}if(e&2){let t=w();g("formGroup",t.editUserForm),a(5),h(m(6,25,"labels.inputs.Username")),a(3),I(t.editUserForm.controls.username.hasError("required")?8:-1),a(3),h(m(12,27,"labels.inputs.Email")),a(3),I(t.editUserForm.controls.email.hasError("email")?14:-1),a(),I(t.editUserForm.controls.email.hasError("required")?15:-1),a(3),h(m(19,29,"labels.inputs.First Name")),a(3),I(t.editUserForm.controls.firstname.hasError("pattern")?21:-1),a(),I(t.editUserForm.controls.firstname.hasError("required")?22:-1),a(3),h(m(26,31,"labels.inputs.Last Name")),a(3),I(t.editUserForm.controls.lastname.hasError("pattern")?28:-1),a(),I(t.editUserForm.controls.lastname.hasError("required")?29:-1),a(3),h(m(33,33,"labels.inputs.Code")),a(3),we(t.countryCodes),a(4),h(m(40,35,"labels.inputs.Phone Number")),a(5),h(m(45,37,"labels.inputs.Gender")),a(4),h(m(49,39,"labels.catalogs.male")),a(3),h(m(52,41,"labels.catalogs.female")),a(3),h(m(55,43,"labels.catalogs.other")),a(4),h(m(59,45,"labels.inputs.Language")),a(3),we(t.languageCodes),a(4),h(m(66,47,"labels.inputs.Office")),a(3),we(t.officesData),a(4),h(m(73,49,"labels.inputs.Staff")),a(3),we(t.staffData),a(4),h(m(80,51,"labels.inputs.Roles")),a(3),we(t.rolesData),a(3),g("routerLink",oe(57,Wmi)),a(),v(" ",m(87,53,"labels.buttons.Cancel")," "),a(3),v(" ",m(90,55,"labels.buttons.Submit")," ")}}var aP=(()=>{class e{constructor(){this.formBuilder=T(nt),this.UsersServiceZitadel=T(vs),this.UsersService=T(Xr),this.route=T(Ie),this.router=T(qe),this.countryCodes=iP,this.languageCodes=nP,this.route.data.subscribe(t=>{let n=t.user;this.userData=n.object?.result?.[0]||{},this.officesData=t.usersTemplate.allowedOffices,this.rolesData=t.usersTemplate.availableRoles,this.UsersServiceZitadel.getExtraUserData(this.userData.id).subscribe(i=>{let s=i.object;this.userData=qt(at({},this.userData),{userName:s.username_zitadel,officeId:s.office_id,staffId:s.staff_id,selectedRoles:s.roles||[]}),this.createEditUserForm(),this.officeChanged(this.userData.officeId),this.UsersServiceZitadel.getRoles().subscribe(d=>{let u=d.object?.result||[];this.rolesData=u.map(f=>({id:f.key,name:f.displayName}))})})})}ngOnInit(){}createEditUserForm(){let t=this.userData?.human?.profile??{},n=this.userData?.human?.email?.email||"",i=this.userData?.human?.phone?.phone||"",d="+1",u=i,f=t?.gender&&t.gender!==""?t.gender:"GENDER_MALE",_=t.preferredLanguage||"es";for(let C of this.countryCodes)if(i.startsWith(C.code)){d=C.code,u=i.replace(C.code,"");break}this.editUserForm=this.formBuilder.group({username:[this.userData.userName,ce.required],email:[n,[ce.required,ce.email]],firstname:[t.firstName||"",[ce.required,ce.pattern("(^[A-z]).*")]],lastname:[t.lastName||"",[ce.required,ce.pattern("(^[A-z]).*")]],countryCode:[d,ce.required],phoneNumber:[u,ce.required],gender:[f,ce.required],preferredLanguage:[_,ce.required],officeId:[this.userData.officeId,ce.required],staffId:[this.userData.staffId||null],roles:[this.userData.selectedRoles.map(C=>C.id.toString()),ce.required]})}officeChanged(t){if(!t){console.warn("No officeId provided to load staff.");return}this.staffData=[],this.UsersService.getStaff(t).subscribe(n=>{this.staffData=n})}submit(){let t=this.editUserForm.value,n=`${t.countryCode}${t.phoneNumber}`,i={userId:this.userData.id,email:{email:t.email,isVerified:!0},phone:{phone:n,isVerified:!0},profile:{username:t.username,givenName:t.firstname,familyName:t.lastname,displayName:`${t.firstname} ${t.lastname}`,nickName:t.firstname,preferredLanguage:t.preferredLanguage,gender:t.gender}},s={userId:this.userData.id,roleKeys:this.editUserForm.value.roles},d={userId:this.userData.id,officeId:t.officeId,staffId:t.staffId};this.UsersServiceZitadel.editUser(i).subscribe(),this.UsersServiceZitadel.editRoles(s).subscribe(),this.UsersServiceZitadel.editOffice(d).subscribe(u=>{this.router.navigate(["/appusers"])})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-edit-user"]],decls:3,vars:1,consts:[[1,"container"],[3,"formGroup"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["matInput","","required","","formControlName","username","readonline",""],["matInput","","required","","formControlName","email"],["matInput","","required","","formControlName","firstname"],["matInput","","required","","formControlName","lastname"],[1,"flex-20"],["formControlName","countryCode","required",""],[3,"value"],[1,"flex-75"],["matInput","","formControlName","phoneNumber","required","","maxlength","12","minlength","4"],["formControlName","gender","required",""],["value","GENDER_MALE"],["value","GENDER_FEMALE"],["value","GENDER_OTHER"],["formControlName","preferredLanguage","required",""],["required","","formControlName","officeId",3,"selectionChange"],["formControlName","staffId"],["formControlName","roles","multiple",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-card"),E(2,rdi,91,58,"form",1),r()()),n&2&&(a(2),I(i.editUserForm?2:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Bg,Va,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ze,gt,ft,xe,he],styles:[".password-never-expires-wrapper[_ngcontent-%COMP%]{padding:17.5px 0}"]})}}return e})();var ldi=[{path:"",component:Qw,resolve:{users:SO}},{path:"create",component:Yw,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:Sh}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:Jw,resolve:{user:Xw}},{path:"edit",component:Kw,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:Xw,usersTemplate:Sh}}]}],sdi=[{path:"",component:eP,resolve:{users:wO}},{path:"create",component:oP,data:{title:"Create User",breadcrumb:"Create User"},resolve:{usersTemplate:Sh}},{path:":id",data:{title:"View User",routeParamBreadcrumb:"id"},children:[{path:"",component:tP,resolve:{user:Zw}},{path:"edit",component:aP,data:{title:"Edit User",breadcrumb:"Edit",routeResolveBreadcrumb:!1},resolve:{user:Zw,usersTemplate:PO}}]}],cdi=un.OIDC.oidcServerEnabled?sdi:ldi,pdi=[_o.withShell([{path:"appusers",data:{title:"Users",breadcrumb:"Users"},children:cdi}])],HX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[SO,Sh,Xw,wO,Zw,PO],imports:[gn.forChild(pdi),gn]})}}return e})();var GX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,HX,Qw,Yw,Jw,Kw,eP,tP,aP,oP]})}}return e})();var mdi=()=>[10,25,50,100],ddi=e=>["/reports","run",e],udi=(e,o)=>({type:e,id:o});function fdi(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function hdi(e,o){if(e&1&&(l(0,"td",15),c(1),r()),e&2){let t=o.$implicit;a(),h(t.reportName)}}function gdi(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Type")))}function _di(e,o){if(e&1&&(l(0,"td",15),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,"labels.text."+t.reportType))}}function Cdi(e,o){e&1&&(l(0,"th",14),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Category")))}function vdi(e,o){if(e&1&&(l(0,"td",15),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,"labels.text."+t.reportCategory))}}function xdi(e,o){e&1&&b(0,"tr",16)}function bdi(e,o){if(e&1&&b(0,"tr",17),e&2){let t=o.$implicit;g("routerLink",Nt(2,ddi,t.reportName))("queryParams",Ja(4,udi,t.reportType,t.id))}}var wh=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.displayedColumns=["reportName","reportType","reportCategory"],this.dataSource=new Wt,this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.route.data.subscribe(t=>{this.reportsData=t.reports}),this.filter=this.route.snapshot.params.filter}ngOnInit(){this.setReports(),this.filterReportsByCategory()}applyFilter(t){t.length?(this.setCustomFilterPredicate(),this.dataSource.filter=t.trim().toLowerCase()):this.filterReportsByCategory()}setReports(){this.dataSource=new Wt(this.reportsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}filterReportsByCategory(){this.dataSource.filterPredicate=(t,n)=>t.reportCategory===n,this.dataSource.filter=this.filter}setCustomFilterPredicate(){this.dataSource.filterPredicate=(t,n)=>{let i=Object.keys(t).reduce(function(d,u){return d+t[u]+"\u25EC"},"").toLowerCase(),s=n.trim().toLowerCase();return this.filter?i.indexOf(s)!==-1&&t.reportCategory===this.filter:i.indexOf(s)!==-1}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reports"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:21,vars:8,consts:[[1,"container"],[1,"layout-row","gap-20px"],[1,"flex-fill"],["matInput","",3,"keyup"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","reportName"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","reportType"],["matColumnDef","reportCategory"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink","queryParams",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink","queryParams"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),c(4),p(5,"translate"),r(),l(6,"input",3),R("keyup",function(d){return i.applyFilter(d.target.value)}),r()()(),l(7,"div",4)(8,"table",5),X(9,6),F(10,fdi,3,3,"th",7)(11,hdi,2,1,"td",8),Z(),X(12,9),F(13,gdi,3,3,"th",7)(14,_di,3,3,"td",8),Z(),X(15,10),F(16,Cdi,3,3,"th",7)(17,vdi,3,3,"td",8),Z(),F(18,xdi,1,0,"tr",11)(19,bdi,1,7,"tr",12),r(),b(20,"mat-paginator",13),r()()),n&2&&(a(4),h(m(5,5,"labels.inputs.Filter")),a(4),g("dataSource",i.dataSource),a(10),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(),g("pageSizeOptions",oe(7,mdi)))},dependencies:[ue,fe,Oe,Fe,Be,ze,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var UX=Ds(MO());var $X=Ds(MO());var ydi=()=>[100,200,300],Sdi=()=>["../.."];function wdi(e,o){if(e&1){let t=Y();l(0,"div",4)(1,"button",13),p(2,"translate"),R("click",function(){V(t);let i=w(2);return q(i.exportFile())}),c(3),p(4,"translate"),r(),l(5,"button",13),p(6,"translate"),R("click",function(){V(t);let i=w(2);return q(i.exportToXLS())}),c(7),p(8,"translate"),r()()}if(e&2){let t=w(2);a(),g("matToolTip",Le(m(2,8,"labels.text.Export the data to CSV file")))("disabled",t.notExistsReportData),a(2),v(" ",m(4,10,"labels.buttons.Export CSV")," "),a(2),g("matToolTip",Le(m(6,12,"labels.text.Export the data to XLS file")))("disabled",t.notExistsReportData),a(2),v(" ",m(8,14,"labels.buttons.Export XLS")," ")}}function Pdi(e,o){if(e&1&&(l(0,"th",17),c(1),r()),e&2){let t=w().$implicit;a(),h(t)}}function Tdi(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit,n=w().$index,i=w(2);a(),h(i.toDecimal(t.row[n]))}}function Mdi(e,o){if(e&1&&(l(0,"span"),c(1),r()),e&2){let t=w().$implicit,n=w().$index;a(),h(t.row[n])}}function Ddi(e,o){if(e&1&&(l(0,"td",18),E(1,Tdi,2,1,"span"),E(2,Mdi,2,1,"span"),r()),e&2){let t=w().$index,n=w(2);a(),I(n.isDecimal(t)?1:-1),a(),I(n.isDecimal(t)?-1:2)}}function Edi(e,o){if(e&1&&(l(0,"div"),X(1,14),F(2,Pdi,2,1,"th",15)(3,Ddi,3,2,"td",16),Z(),r()),e&2){let t=o.$implicit;a(),g("matColumnDef",t)}}function Idi(e,o){e&1&&b(0,"tr",19)}function Odi(e,o){e&1&&b(0,"tr",20)}function Adi(e,o){if(e&1&&(l(0,"div"),E(1,wdi,9,16,"div",4),l(2,"div",5)(3,"table",6),Se(4,Edi,4,1,"div",null,Pe),F(6,Idi,1,0,"tr",7)(7,Odi,1,0,"tr",8),r(),b(8,"mat-paginator",9),r(),l(9,"div",10)(10,"div",11),b(11,"i",12),c(12),p(13,"translate"),r()()()),e&2){let t=w();a(),I(t.dataObject.report.type==="Table"?1:-1),a(),g("hidden",t.notExistsReportData),a(),g("dataSource",t.dataSource),a(),we(t.displayedColumns),a(2),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(10,ydi)),a(),g("hidden",!t.notExistsReportData),a(3),v(" ",m(13,8,"labels.text.No report data was generated")," ")}}function Fdi(e,o){e&1&&(l(0,"div",1)(1,"div",11),b(2,"i",12),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.The report request")," "))}function kdi(e,o){e&1&&(l(0,"div",2),b(1,"div",21),r())}function Bdi(e,o){e&1&&(l(0,"div",3)(1,"button",22),b(2,"fa-icon",23),c(3),p(4,"translate"),r()()),e&2&&(a(),g("routerLink",oe(4,Sdi)),a(2),v("",m(4,2,"labels.buttons.Back")," "))}var rP=(()=>{class e{constructor(){this.reportsService=T(lr),this.dialog=T(Ht),this.decimalPipe=T(xp),this.progressBarService=T(sc),this.displayedColumns=[],this.dataSource=new Wt,this.columnTypes=[],this.hideOutput=!0,this.notExistsReportData=!1,this.toBeExportedToRepo=!1}ngOnChanges(){this.hideOutput=!0,this.columnTypes=[],this.displayedColumns=[],this.getRunReportData()}getRunReportData(){let t=this.dataObject.formData.exportS3;this.reportsService.getRunReportData(this.dataObject.report.name,this.dataObject.formData).subscribe(n=>{this.toBeExportedToRepo=t,this.toBeExportedToRepo||(this.csvData=n.data,this.notExistsReportData=n.data.length===0,this.setOutputTable(n.data),n.columnHeaders.forEach(i=>{this.columnTypes.push(i.columnDisplayType),this.displayedColumns.push(i.columnName)})),this.hideOutput=!1,this.progressBarService.decrease()})}setOutputTable(t){this.dataSource=new Wt(t),setTimeout(()=>{this.dataSource.paginator=this.paginator})}exportFile(){let t=[{name:"Comma (,)",char:","},{name:"Colon (:)",char:":"},{name:"SemiColon (;)",char:";"},{name:"Pipe (|)",char:"|"},{name:"Space ( )",char:" "}],n=`${this.dataObject.report.name}.csv`,i=[new $i({controlName:"delimiter",label:"Delimiter",value:un.defaultCharDelimiter,options:{label:"name",value:"char",data:t},required:!0,order:1}),new vn({controlName:"fileName",label:"File Name",value:n,type:"text",required:!0,order:2})],s={title:"Export data to File",layout:{addButtonText:"Export to File"},formfields:i};this.dialog.open(an,{data:s}).afterClosed().subscribe(u=>{u.data&&this.downloadCSV(u.data.value.fileName,u.data.value.delimiter)})}exportToXLS(){let t=`${this.dataObject.report.name}.xlsx`,n=this.csvData.map(d=>{let u={};for(let f=0;f{s.addRow(this.displayedColumns.map(u=>d[u]))}),i.xlsx.writeBuffer().then(d=>{let u=new Blob([d],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),f=URL.createObjectURL(u),_=document.createElement("a");_.href=f,_.download="filename.xlsx",_.click(),URL.revokeObjectURL(f)})}downloadCSV(t,n){let i=this.displayedColumns,s=this.csvData.map(u=>u.row.join(n));s.unshift(`data:text/csv;charset=utf-8,${i.join(n)}`),s=s.join(`\r +`);let d=document.createElement("a");d.setAttribute("href",encodeURI(s)),d.setAttribute("download",t),document.body.appendChild(d),d.click(),document.body.removeChild(d)}toDecimal(t){let n=this.dataObject.decimalChoice;return this.decimalPipe.transform(t,`1.${n}-${n}`)}isDecimal(t){return this.columnTypes[t]==="DECIMAL"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-table-and-sms"]],viewQuery:function(n,i){if(n&1&&Ee(kt,5),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},inputs:{dataObject:"dataObject"},features:[Uo],decls:5,vars:4,consts:[[1,"container"],[1,"alert"],[1,"loader"],[1,"back-button"],["align","end",1,"m-b-10","gap-45px"],[1,"table-output",3,"hidden"],["id","report-table","mat-table","",3,"dataSource"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],["mat-raised-button","","color","primary",3,"click","disabled","matToolTip"],[3,"matColumnDef"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row"],[1,"loading"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"]],template:function(n,i){n&1&&(l(0,"div",0),E(1,Adi,14,11,"div"),E(2,Fdi,5,3,"div",1),E(3,kdi,2,0,"div",2),E(4,Bdi,5,5,"div",3),r()),n&2&&(a(),I(!i.hideOutput&&!i.toBeExportedToRepo?1:-1),a(),I(!i.hideOutput&&i.toBeExportedToRepo?2:-1),a(),I(i.hideOutput?3:-1),a(),I(i.hideOutput?-1:4))},dependencies:[ue,fe,Oe,xe,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,kt,ke,he],styles:[".table-output[_ngcontent-%COMP%]{overflow:auto}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.mat-header-cell[_ngcontent-%COMP%], .mat-cell[_ngcontent-%COMP%]{min-width:150px;margin-left:5px;margin-right:5px}.back-button[_ngcontent-%COMP%]{text-align:center;margin-top:25px;max-height:2%;margin-bottom:2%}.loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:560px}50%{left:980px}66.7%{left:560px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:140px}16.7%{width:560px}33.3%{width:560px}50%{width:140px}66.7%{width:560px}83.3%{width:560px}to{width:140px}}"]})}}return e})();var Rdi=e=>({display:e});Pl.register(...Gp);var lP=(()=>{class e{constructor(){this.reportsService=T(lr),this.hideOutput=!0}ngOnChanges(){this.getRunReportData()}getRunReportData(){this.reportsService.getChartRunReportData(this.dataObject.report.name,this.dataObject.formData).subscribe(t=>{this.inputData=t,this.setPieChart(this.inputData),this.hideOutput=!1})}setPieChart(t){this.chart&&this.chart.destroy(),this.chart=new Pl("output",{type:"pie",data:{labels:t.keys,datasets:[{label:t.valuesLabel,data:t.values,backgroundColor:this.randomColorArray(t.values.length)}]},options:{plugins:{title:{display:!0,text:t.keysLabel}}}})}setBarChart(t){this.chart&&this.chart.destroy(),this.chart=new Pl("output",{type:"bar",data:{labels:t.keys,datasets:[{label:t.valuesLabel,data:t.values,backgroundColor:this.randomColorArray(t.values.length)}]},options:{plugins:{legend:{display:!1}},scales:{x:{title:{display:!0,text:t.keysLabel}},y:{min:0}}}})}randomColorArray(t){let n=[];for(;t--;){let i=this.randomColor();n.push(i)}return n}randomColor(){let t=Math.floor(Math.random()*255),n=Math.floor(Math.random()*255),i=Math.floor(Math.random()*255);return`rgb(${t},${n},${i},0.6)`}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-chart"]],inputs:{dataObject:"dataObject"},features:[Uo],decls:10,vars:9,consts:[[1,"m-b-20","layout-align-end"],["aria-label","Select Chart Type"],["value","Bar",3,"click"],["value","Pie",3,"click"],[3,"ngStyle"],["id","output"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"mat-button-toggle-group",1)(2,"mat-button-toggle",2),R("click",function(){return i.setBarChart(i.inputData)}),c(3),p(4,"translate"),r(),l(5,"mat-button-toggle",3),R("click",function(){return i.setPieChart(i.inputData)}),c(6),p(7,"translate"),r()()(),l(8,"div",4),b(9,"canvas",5),r()),n&2&&(a(3),h(m(4,3,"labels.buttons.Bar Chart")),a(3),h(m(7,5,"labels.buttons.Pie Chart")),a(2),g("ngStyle",Nt(7,Rdi,i.hideOutput?"none":"block")))},dependencies:[ue,is,fe,Mp,Dp,he],encapsulation:2})}}return e})();function Ndi(e,o){if(e&1&&Cg(0,"iframe",0),e&2){let t=w();bF("src",t.pentahoUrl,hg)}}var sP=(()=>{class e{constructor(){this.sanitizer=T(Zs),this.reportsService=T(lr),this.settingsService=T(Ot),this.progressBarService=T(sc),this.hideOutput=!0}ngOnChanges(){this.hideOutput=!0,this.getRunReportData()}getRunReportData(){this.reportsService.getPentahoRunReportData(this.dataObject.report.name,this.dataObject.formData,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(t=>{let n=t.headers.get("Content-Type"),i=new Blob([t.body],{type:n}),s=URL.createObjectURL(i);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(s),this.hideOutput=!1,this.progressBarService.decrease()})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-pentaho"]],inputs:{dataObject:"dataObject"},features:[Uo],decls:1,vars:1,consts:[["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(n,i){n&1&&E(0,Ndi,1,1,"iframe",0),n&2&&I(i.hideOutput?-1:0)},dependencies:[ue,fe],encapsulation:2})}}return e})();var Ldi=()=>["/reports"];function Vdi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function qdi(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),r(),b(3,"input",26),F(4,Vdi,6,7,"mat-error",2),r()),e&2){let t=w(2).$implicit,n=w(2);a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngIf",n.reportForm.controls[t.name].hasError("required"))}}function zdi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Hdi(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,2,"labels.commons.must be after or equal to start date")," ")}}function Gdi(e,o){if(e&1){let t=Y();l(0,"mat-form-field",27),R("click",function(){V(t);let i=ve(6);return q(i.open())}),l(1,"mat-label"),c(2),r(),b(3,"input",28)(4,"mat-datepicker-toggle",29)(5,"mat-datepicker",null,0),F(7,zdi,6,7,"mat-error",2)(8,Hdi,3,4,"mat-error",2),r()}if(e&2){let t=ve(6),n=w(2).$implicit,i=w(2);a(2),h(n.label),a(),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t)("formControlName",n.name),a(),g("for",t),a(3),g("ngIf",i.reportForm.controls[n.name].hasError("required")),a(),g("ngIf",i.reportForm.controls[n.name].hasError("endBeforeStart"))}}function jdi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t.name," ")}}function $di(e,o){if(e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),l(3,"strong"),c(4),p(5,"translate"),r()()),e&2){let t=w(3).$implicit;a(),le(" ",t.label," ",m(2,3,"labels.commons.is")," "),a(3),h(m(5,5,"labels.commons.required"))}}function Udi(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),r(),l(3,"mat-select",30),F(4,jdi,2,2,"mat-option",31),r(),F(5,$di,6,7,"mat-error",2),r()),e&2){let t=w(2).$implicit,n=w(2);a(2),h(t.label),a(),g("formControlName",t.name),a(),g("ngForOf",t.selectOptions),a(),g("ngIf",n.reportForm.controls[t.name].hasError("required"))}}function Wdi(e,o){e&1&&(X(0,23),F(1,qdi,5,3,"mat-form-field",24)(2,Gdi,9,8,"mat-form-field",25)(3,Udi,6,4,"mat-form-field",24),Z()),e&2&&(a(),g("ngSwitchCase","text"),a(),g("ngSwitchCase","date"),a(),g("ngSwitchCase","select"))}function Qdi(e,o){if(e&1&&(X(0,21),F(1,Wdi,4,3,"ng-container",22),Z()),e&2){let t=o.$implicit,n=w(2);g("ngSwitch",t.displayType),a(),g("ngIf",n.reportForm.contains(t.name))}}function Ydi(e,o){if(e&1&&(l(0,"mat-option",32),c(1),p(2,"translate"),r()),e&2){let t=o.$implicit;g("value",t.value),a(),v(" ",m(2,2,"labels.inputs."+t.name)," ")}}function Jdi(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.text.Report Output Type")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Kdi(e,o){if(e&1&&(l(0,"mat-form-field",7)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",33),F(5,Ydi,3,4,"mat-option",31),r(),F(6,Jdi,7,9,"mat-error",2),r()),e&2){let t=w(2);a(2),h(m(3,3,"labels.inputs.Output Type")),a(3),g("ngForOf",t.outputTypeOptions),a(),g("ngIf",t.reportForm.controls.outputType.hasError("required"))}}function Xdi(e,o){if(e&1&&(l(0,"div",34)(1,"mat-checkbox",35),c(2),p(3,"translate"),r()()),e&2){let t=w(2);a(2),le(" ",m(3,2,"labels.text.Export output data to S3 repository")," [",t.exportToS3Repository,"] ")}}function Zdi(e,o){if(e&1){let t=Y();l(0,"button",36),R("click",function(i){V(t);let s=w(2);return q(s.runReportAndExport(i))}),b(1,"fa-icon",37),c(2),p(3,"translate"),r()}if(e&2){let t=w(2);g("disabled",!t.reportForm.valid||t.isProcessing),a(2),v(" ",m(3,2,"labels.buttons.Run and Download Report")," ")}}function e0i(e,o){if(e&1){let t=Y();l(0,"mat-card")(1,"form",4)(2,"mat-card-content",5),F(3,Qdi,2,2,"ng-container",6),l(4,"mat-form-field",7)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",8)(9,"mat-option",9),c(10,"0"),r(),l(11,"mat-option",10),c(12,"1"),r(),l(13,"mat-option",11),c(14,"2"),r(),l(15,"mat-option",12),c(16,"3"),r(),l(17,"mat-option",13),c(18,"4"),r()()(),F(19,Kdi,7,5,"mat-form-field",14)(20,Xdi,4,4,"div",15),r(),l(21,"mat-card-actions",16)(22,"button",17),c(23),p(24,"translate"),r(),l(25,"button",18),R("click",function(){V(t);let i=w();return q(i.run())}),b(26,"fa-icon",19),c(27),p(28,"translate"),r(),F(29,Zdi,4,4,"button",20),r()()()}if(e&2){let t=w();a(),g("formGroup",t.reportForm),a(2),g("ngForOf",t.paramData),a(3),h(m(7,11,"labels.inputs.Decimal Places")),a(2),g("formControl",t.decimalChoice),a(11),g("ngIf",t.isPentahoReport()),a(),g("ngIf",t.exportToS3Allowed),a(2),g("routerLink",oe(17,Ldi)),a(),v(" ",m(24,13,"labels.buttons.Cancel")," "),a(2),g("disabled",!t.reportForm.valid||t.isProcessing),a(2),v(" ",m(28,15,"labels.buttons.Run Report")," "),a(2),g("ngIf",t.isTableReport())}}function t0i(e,o){if(e&1&&b(0,"mifosx-table-and-sms",42),e&2){let t=w(2);g("dataObject",t.dataObject)}}function i0i(e,o){if(e&1&&b(0,"mifosx-chart",42),e&2){let t=w(2);g("dataObject",t.dataObject)}}function n0i(e,o){if(e&1&&b(0,"mifosx-pentaho",42),e&2){let t=w(2);g("dataObject",t.dataObject)}}function o0i(e,o){if(e&1){let t=Y();l(0,"div",38)(1,"mat-card")(2,"div",39)(3,"button",40),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),l(6,"div"),F(7,t0i,1,1,"mifosx-table-and-sms",41)(8,i0i,1,1,"mifosx-chart",41)(9,n0i,1,1,"mifosx-pentaho",41),r()()()}if(e&2){let t=w();a(4),v(" ",m(5,4,"labels.buttons.Parameters")," "),a(3),g("ngIf",!t.hideTable),a(),g("ngIf",!t.hideChart),a(),g("ngIf",!t.hidePentaho)}}var cP=(()=>{class e{constructor(){this.route=T(Ie),this.reportsService=T(lr),this.settingsService=T(Ot),this.alertService=T(Ur),this.dateUtils=T(Zt),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.report={},this.paramData=[],this.parentParameters=[],this.pentahoReportParameters=[],this.reportForm=new Is({}),this.decimalChoice=new it,this.isCollapsed=!1,this.hideTable=!0,this.hideChart=!0,this.hidePentaho=!0,this.reportUsesDates=!1,this.exportToS3Allowed=!1,this.outputTypeOptions=[],this.isProcessing=!1,this.report.name=this.route.snapshot.params.name,this.route.queryParams.subscribe(t=>{this.report.type=t.type,this.report.id=t.id}),this.route.data.subscribe(t=>{if(this.paramData=t.reportParameters,this.isTableReport()){let n=t.configurations.globalConfiguration.find(s=>s.name==="amazon-s3"),i=t.configurations.globalConfiguration.find(s=>s.name==="report-export-s3-folder-name");n&&n.enabled&&i&&i.enabled&&i.stringValue&&(this.exportToS3Allowed=!0,this.exportToS3Repository=i.stringValue)}})}isTableReport(){return this.report.type==="Table"}isPentahoReport(){return this.report.type==="Pentaho"}ngOnInit(){this.maxDate=this.settingsService.maxAllowedDate,this.createRunReportForm()}createRunReportForm(){this.paramData.forEach(t=>{if(!t.parentParameterName)this.reportForm.addControl(t.name,new it("",ce.required)),t.displayType==="select"&&this.fetchSelectOptions(t,t.name);else{let n=this.paramData.find(i=>i.name===t.parentParameterName);n!=null&&(n.childParameters.push(t),this.updateParentParameters(n))}}),this.isPentahoReport()&&(this.reportForm.addControl("outputType",new it("",ce.required)),this.outputTypeOptions=[{name:"PDF format",value:"PDF"},{name:"Normal format",value:"HTML"},{name:"Excel format",value:"XLS"},{name:"Excel 2007 format",value:"XLSX"},{name:"CSV format",value:"CSV"}],this.mapPentahoParams()),this.exportToS3Allowed&&this.reportForm.addControl("exportOutputToS3",new it(!1)),this.decimalChoice.patchValue("0"),this.setChildControls(),this.addDateRangeValidator()}updateParentParameters(t){let n=this.parentParameters.map(i=>i.name);if(!n.includes(t.name))this.parentParameters.push(t);else{let i=n.indexOf(t.name);this.parentParameters[i]=t}}mapPentahoParams(){this.reportsService.getPentahoParams(this.report.id).subscribe(t=>{t.forEach(n=>{let i=this.paramData.find(s=>s.name===n.parameterName);i.pentahoName=`R_${n.reportParameterName}`})})}addDateRangeValidator(){let t=this.paramData.filter(u=>u.displayType==="date"),n=t.find(u=>this.isStartDateParam(u)),i=t.find(u=>this.isEndDateParam(u));if(!n||!i)return;let s=this.reportForm.get(n.name),d=this.reportForm.get(i.name);!s||!d||(d.addValidators(this.endDateAfterStartValidator(n.name)),d.updateValueAndValidity({emitEvent:!1}),s.valueChanges.subscribe(()=>d.updateValueAndValidity({emitEvent:!1})))}endDateAfterStartValidator(t){return n=>{let s=n.parent?.get(t)?.value,d=n.value;if(!s||!d)return null;let u=new Date(s),f=new Date(d);return isNaN(u.getTime())||isNaN(f.getTime())?null:f{this.reportForm.get(t.name).valueChanges.subscribe(n=>{t.childParameters.forEach(i=>{if(i.displayType==="none"?this.reportForm.addControl(i.name,new it(i.defaultVal)):this.reportForm.addControl(i.name,new it("",ce.required)),i.displayType==="select"){let s=`${i.name}?${t.inputName}=${n.id}`;this.fetchSelectOptions(i,s)}})})})}fetchSelectOptions(t,n){this.reportsService.getSelectOptions(n).subscribe(i=>{t.selectOptions=i,t.selectAll==="Y"&&t.selectOptions.push({id:"-1",name:"All"})})}formatUserResponse(t){let n={},i;this.reportToBeExportedInRepository=!1;for(let[s,d]of Object.entries(t)){if(s==="outputType"){n["output-type"]=d;continue}else if(s==="exportOutputToS3"){this.reportToBeExportedInRepository=d;continue}let u=this.paramData.find(f=>f.name===s);switch(i=this.isPentahoReport()?u.pentahoName:u.inputName,u.displayType){case"text":n[i]=d;break;case"select":n[i]=d.id;break;case"date":this.isTableReport()?n[i]=this.dateUtils.formatDate(d,Zt.DEFAULT_DATEFORMAT):n[i]=this.dateUtils.formatDate(d,this.settingsService.dateFormat),this.reportUsesDates=!0;break;case"none":n[i]=d;break}}return n}run(){this.isCollapsed=!0;let t=this.formatUserResponse(this.reportForm.value),n=at({},t);if(this.reportUsesDates){let i=this.settingsService.dateFormat;this.isTableReport()&&(i=Zt.DEFAULT_DATEFORMAT),n=qt(at({},t),{locale:this.settingsService.language.code,dateFormat:i})}switch(this.reportToBeExportedInRepository&&(n.exportS3=!0),this.dataObject={formData:n,report:this.report,decimalChoice:this.decimalChoice.value},this.report.type){case"SMS":case"Table":this.hideTable=!1;break;case"Chart":this.hideChart=!1;break;case"Pentaho":this.hidePentaho=!1;break}}runReportAndExport(t){t.stopPropagation(),this.isProcessing=!0;let n=this.formatUserResponse(this.reportForm.value),i=this.report.name,s=qt(at({},n),{decimalChoice:this.decimalChoice.value});this.reportsService.getRunReportData(i,s).subscribe(d=>{if(d.data.length>0){this.alertService.alert({type:"Report generation",message:`Report: ${i} data generated`});let u=[];d.columnHeaders.forEach(f=>{u.push(f.columnName)}),this.exportToXLS(i,d.data,u)}else this.alertService.alert({type:"Report generation",message:`Report: ${i} without data generated`});this.isProcessing=!1})}exportToXLS(t,n,i){return qn(this,null,function*(){let s=`${t}.xlsx`,d=n.map(P=>{let S={};for(let M=0;M{f.addRow(i.map(S=>P[S]))});let _=yield u.xlsx.writeBuffer(),C=new Blob([_],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),x=URL.createObjectURL(C),y=document.createElement("a");y.href=x,y.download=s,document.body.appendChild(y),y.click(),setTimeout(()=>{document.body.removeChild(y),URL.revokeObjectURL(x)},0)})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-run-report"]],decls:3,vars:2,consts:[["runReportDatePicker",""],[1,"container","input"],[4,"ngIf"],["class","container output",4,"ngIf"],[3,"formGroup"],[1,"form-grid"],[3,"ngSwitch",4,"ngFor","ngForOf"],[1,"form-field"],[3,"formControl"],["value","0"],["value","1"],["value","2"],["value","3"],["value","4"],["class","form-field",4,"ngIf"],["class","flex-98",4,"ngIf"],[1,"layout-row","align-between","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary","id","runreport",3,"click","disabled"],["icon","file-export",1,"m-r-10"],["mat-raised-button","","color","primary",3,"disabled","click",4,"ngIf"],[3,"ngSwitch"],["class","test",4,"ngIf"],[1,"test"],["class","form-field",4,"ngSwitchCase"],["class","form-field",3,"click",4,"ngSwitchCase"],["matInput","","required","",3,"formControlName"],[1,"form-field",3,"click"],["matInput","","required","",3,"min","max","matDatepicker","formControlName"],["matSuffix","",3,"for"],["required","",3,"formControlName"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["required","","formControlName","outputType"],[1,"flex-98"],["labelPosition","after","formControlName","exportOutputToS3"],["mat-raised-button","","color","primary",3,"click","disabled"],["icon","download",1,"m-r-10"],[1,"container","output"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],[3,"dataObject",4,"ngIf"],[3,"dataObject"]],template:function(n,i){n&1&&(l(0,"div",1),F(1,e0i,30,18,"mat-card",2),r(),F(2,o0i,10,6,"div",3)),n&2&&(a(),g("ngIf",!i.isCollapsed),a(),g("ngIf",i.isCollapsed))},dependencies:[ue,ts,Js,Ks,Xs,fe,tt,st,$e,Xe,dt,_n,Ze,et,Oe,Ue,Je,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,fi,ke,rP,lP,sP,he],styles:[".input[_ngcontent-%COMP%]{max-width:37rem}.form-grid[_ngcontent-%COMP%]{display:flex;flex-direction:column}.form-field[_ngcontent-%COMP%]{width:100%}"]})}}return e})();var DO=(()=>{class e{constructor(){this.reportsService=T(lr)}resolve(){return this.reportsService.getReports()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var EO=(()=>{class e{constructor(){this.reportsService=T(lr)}resolve(t){return this.reportsService.getReportParams(t.params.name)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var a0i=[_o.withShell([{path:"reports",data:{title:"Reports",breadcrumb:"Reports"},resolve:{reports:DO},children:[{path:"",component:wh},{path:":filter",data:{routeParamBreadcrumb:"filter"},component:wh},{path:"run/:name",data:{title:"Reports",routeParamBreadcrumb:"name"},component:cP,resolve:{reportParameters:EO,configurations:Wp}}]}])],WX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[DO,EO,eu],imports:[gn.forChild(a0i),gn]})}}return e})();var QX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[xp],imports:[oo,WX,wh,cP,rP,lP,sP]})}}return e})();var r0i=()=>[10,25,50,100],l0i=()=>["CLIENT","GROUP","CENTER"];function s0i(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"error.Searched query resulted more than 200 records")))}function c0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Type")))}function p0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityType)}}function m0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity Name")))}function d0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function u0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account No")))}function f0i(e,o){if(e&1&&(l(0,"td",16),b(1,"mifosx-account-number",17),r()),e&2){let t=o.$implicit;a(),g("accountNo",Le(t.entityAccountNo))}}function h0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.External Id")))}function g0i(e,o){if(e&1&&(l(0,"td",16),b(1,"mifosx-external-identifier",18),r()),e&2){let t=o.$implicit;a(),g("externalId",Le(t.entityExternalId))}}function _0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Parent Type")))}function C0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",oe(1,l0i).includes(t.entityType)?"Office":"Client"," ")}}function v0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Parent Name")))}function x0i(e,o){if(e&1&&(l(0,"td",16),c(1),r()),e&2){let t=o.$implicit;a(),h(t.parentName)}}function b0i(e,o){e&1&&(l(0,"th",15),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Details")))}function y0i(e,o){if(e&1){let t=Y();l(0,"td",16)(1,"button",19),p(2,"translate"),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.navigate(i))}),b(3,"fa-icon",20),r()()}e&2&&(a(),g("matTooltip",Le(m(2,2,"tooltips.View Entity"))))}function S0i(e,o){e&1&&b(0,"tr",21)}function w0i(e,o){e&1&&b(0,"tr",22)}function P0i(e,o){if(e&1&&(l(0,"mat-card",1),E(1,s0i,3,3,"mat-error"),l(2,"table",2),X(3,3),F(4,c0i,3,3,"th",4)(5,p0i,2,1,"td",5),Z(),X(6,6),F(7,m0i,3,3,"th",4)(8,d0i,2,1,"td",5),Z(),X(9,7),F(10,u0i,3,3,"th",4)(11,f0i,2,2,"td",5),Z(),X(12,8),F(13,h0i,3,3,"th",4)(14,g0i,2,2,"td",5),Z(),X(15,9),F(16,_0i,3,3,"th",4)(17,C0i,2,2,"td",5),Z(),X(18,10),F(19,v0i,3,3,"th",4)(20,x0i,2,1,"td",5),Z(),X(21,11),F(22,b0i,3,3,"th",4)(23,y0i,4,4,"td",5),Z(),F(24,S0i,1,0,"tr",12)(25,w0i,1,0,"tr",13),r(),b(26,"mat-paginator",14),r()),e&2){let t=w();a(),I(t.overload?1:-1),a(),g("dataSource",t.dataSource),a(22),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns),a(),g("pageSizeOptions",oe(5,r0i))}}function T0i(e,o){e&1&&(l(0,"mat-card",1)(1,"div",23)(2,"div",24),b(3,"i",25),c(4),p(5,"translate"),r()()()),e&2&&(a(4),v(" ",m(5,1,"labels.text.No data found")," "))}var pP=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.displayedColumns=["entityType","entityName","entityAccount","externalId","parentType","parentName","details"],this.hasResults=!1,this.route.data.subscribe(t=>{this.dataSource=new Wt(t.searchResults),this.dataSource.paginator=this.paginator,this.hasResults=t.searchResults.length>0,this.overload=t.searchResults.length>200,this.overload&&(this.dataSource=new Wt(t.searchResults.slice(0,200)))})}navigate(t){switch(t.entityType){case"CLIENT":this.router.navigate(["clients",t.entityId,"general"]);break;case"CLIENTIDENTIFIER":this.router.navigate(["clients",t.parentId,"general"]);break;case"CENTER":this.router.navigate(["centers",t.entityId]);break;case"GROUP":this.router.navigate(["groups",t.entityId]);break;case"SHARE":this.router.navigate(["clients",t.parentId,"shares-accounts",t.entityId]);break;case"SAVING":t.subEntityType==="depositAccountType.recurringDeposit"?this.router.navigate(["clients",t.parentId,"recurring-deposits-accounts",t.entityId,"transactions"]):t.subEntityType==="depositAccountType.fixedDeposit"?this.router.navigate(["clients",t.parentId,"fixed-deposits-accounts",t.entityId,"transactions"]):t.subEntityType==="depositAccountType.savingsDeposit"&&this.router.navigate(["clients",t.parentId,"savings-accounts",t.entityId,"transactions"]);break;case"LOAN":this.router.navigate(["clients",t.parentId,"loans-accounts",t.entityId,"general"]);break}}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-search-page"]],viewQuery:function(n,i){if(n&1&&Ee(kt,7),n&2){let s;Te(s=Me())&&(i.paginator=s.first)}},decls:3,vars:2,consts:[[1,"container"],[1,"layout-column","gap-2percent"],["mat-table","",3,"dataSource"],["matColumnDef","entityType"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","class","view-details",4,"matCellDef"],["matColumnDef","entityName"],["matColumnDef","entityAccount"],["matColumnDef","externalId"],["matColumnDef","parentType"],["matColumnDef","parentName"],["matColumnDef","details"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell","",1,"view-details"],["display","left",3,"accountNo"],[3,"externalId"],["mat-icon-button","","matTooltipPosition","right",3,"click","matTooltip"],["icon","eye","size","lg"],["mat-header-row",""],["mat-row",""],[1,"alert"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(l(0,"div",0),E(1,P0i,27,6,"mat-card",1),E(2,T0i,6,3,"mat-card",1),r()),n&2&&(a(),I(i.hasResults?1:-1),a(),I(i.hasResults?-1:2))},dependencies:[ue,fe,Ue,ut,_t,xt,vt,bt,Ct,yt,rc,Da,wi,si,ke,St,Pt,wt,Tt,kt,he],encapsulation:2})}}return e})();var YX=(()=>{class e{constructor(){this.http=T(ko)}getSearchResults(t,n){let i=new rn().set("exactMatch","false").set("query",t).set("resource",n);return this.http.get("/search",{params:i})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var IO=(()=>{class e{constructor(){this.searchService=T(YX)}resolve(t){let n=t.queryParams.query,i=t.queryParams.resource;return this.searchService.getSearchResults(n,i)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var M0i=[_o.withShell([{path:"search",component:pP,data:{title:"Search",breadcrumb:"Search"},runGuardsAndResolvers:"paramsOrQueryParamsChange",resolve:{searchResults:IO}}])],JX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[IO],imports:[gn.forChild(M0i),gn]})}}return e})();var KX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,JX,pP]})}}return e})();var D0i=()=>[10,25,50,100],E0i=(e,o)=>[e,o];function I0i(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Notification")," "))}function O0i(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.content," ")}}function A0i(e,o){e&1&&(l(0,"th",11),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Created At")," "))}function F0i(e,o){if(e&1&&(l(0,"td",12),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.createdAt," ")}}function k0i(e,o){e&1&&b(0,"tr",13)}function B0i(e,o){if(e&1&&b(0,"tr",14),e&2){let t=o.$implicit,n=w();g("routerLink",Ja(1,E0i,n.routeMap[t.objectType],t.objectId))}}function R0i(e,o){if(e&1&&(l(0,"tr")(1,"td"),c(2,"You don't have any notifications"),r()()),e&2){let t=w();a(),Dn("colspan",t.displayedColumns.length)}}var mP=(()=>{class e{constructor(){this.route=T(Ie),this.displayedColumns=["notification","createdAt"],this.routeMap={client:"/clients/",group:"/groups/",loan:"/loans-accounts/",center:"/centers/",shareAccount:"/shares-accounts/",fixedDeposit:"/fixed-deposits-accounts/",recurringDepositAccount:"/recurring-deposits-accounts/",savingsAccount:"/savings-accounts/",shareProduct:"/products/share-products/",loanProduct:"/products/loan-products/"},this.route.data.subscribe(t=>{this.notificationsData=t.notifications.pageItems})}ngOnInit(){this.setNotifications()}setNotifications(){this.dataSource=new Wt(this.notificationsData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-notifications-page"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,7),Ee(It,7)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:13,vars:5,consts:[[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","notification"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","createdAt"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],[4,"matNoDataRow"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"div",1)(2,"table",2),X(3,3),F(4,I0i,3,3,"th",4)(5,O0i,2,1,"td",5),Z(),X(6,6),F(7,A0i,3,3,"th",4)(8,F0i,2,1,"td",5),Z(),F(9,k0i,1,0,"tr",7)(10,B0i,1,4,"tr",8)(11,R0i,3,1,"tr",9),r(),b(12,"mat-paginator",10),r()()),n&2&&(a(2),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns),a(2),g("pageSizeOptions",oe(4,D0i)))},dependencies:[ue,fe,Oe,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,hk,kt,he],styles:[".select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();var OO=(()=>{class e{constructor(){this.notificationsService=T(nk)}resolve(){return this.notificationsService.getNotifications(!0,50)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var N0i=[_o.withShell([{path:"notifications",component:mP,data:{title:"Notifications",breadcrumb:"Notifications"},resolve:{notifications:OO}}])],XX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[OO],imports:[gn.forChild(N0i),gn]})}}return e})();var ZX=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,XX,mP]})}}return e})();var dP=(()=>{class e{constructor(){this.http=T(ko)}retrieveCollectionSheetData(t){let n=new rn().set("command","generateCollectionSheet");return this.http.post("/collectionsheet",t,{params:n})}generateCollectionSheetData(t,n){let i=new rn().set("command","generateCollectionSheet");return this.http.post(`/centers/${t}`,n,{params:i})}executeSaveCollectionSheet(t){let n=new rn().set("command","saveCollectionSheet");return this.http.post("/collectionsheet",t,{params:n})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var eZ=()=>["../"],tZ=()=>[10,25,50,100];function L0i(e,o){e&1&&(l(0,"div",3)(1,"div",17),b(2,"i",18),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No repayments and disbursal")," "))}function V0i(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function q0i(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Branch Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function z0i(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Repayment Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function H0i(e,o){if(e&1&&(l(0,"mat-option",8),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function G0i(e,o){if(e&1){let t=Y();l(0,"mat-card",1),E(1,L0i,5,3,"div",3),l(2,"form",4),R("ngSubmit",function(){V(t);let i=w();return q(i.previewCollectionSheet())}),l(3,"div",5)(4,"mat-form-field",6)(5,"mat-label"),c(6),p(7,"translate"),r(),l(8,"mat-select",7),Se(9,V0i,2,2,"mat-option",8,Pe),r(),E(11,q0i,7,9,"mat-error"),r(),l(12,"mat-form-field",9),R("click",function(){V(t);let i=ve(19);return q(i.open())}),l(13,"mat-label"),c(14),p(15,"translate"),r(),b(16,"input",10)(17,"mat-datepicker-toggle",11)(18,"mat-datepicker",null,0),E(20,z0i,7,9,"mat-error"),r(),l(21,"mat-form-field",6)(22,"mat-label"),c(23),p(24,"translate"),r(),l(25,"mat-select",12),Se(26,H0i,2,2,"mat-option",8,Pe),r()()(),l(28,"mat-card-actions",13)(29,"button",14),c(30),p(31,"translate"),r(),l(32,"button",15),b(33,"fa-icon",16),c(34),p(35,"translate"),r()()()()}if(e&2){let t=ve(19),n=w();a(),I(n.noData?1:-1),a(),g("formGroup",n.collectionSheetForm),a(4),h(m(7,15,"labels.inputs.Branch Office")),a(3),we(n.officesData),a(2),I(n.collectionSheetForm.controls.officeId.hasError("required")?11:-1),a(3),h(m(15,17,"labels.inputs.Repayment Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.collectionSheetForm.controls.transactionDate.hasError("required")?20:-1),a(3),h(m(24,19,"labels.inputs.Staff")),a(3),we(n.loanOfficerData),a(3),g("routerLink",oe(25,eZ)),a(),v(" ",m(31,21,"labels.buttons.Cancel")," "),a(2),g("disabled",!n.collectionSheetForm.valid),a(2),v(" ",m(35,23,"labels.buttons.Collection Sheet")," ")}}function j0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Loan Account")," # "))}function $0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountId)}}function U0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function W0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.productShortName,"(",t.productId,")")}}function Q0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function Y0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.clientName,"(",t.clientId,")")}}function J0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Due")))}function K0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.totalDue)}}function X0i(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Charges")))}function Z0i(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.feeDue)}}function eui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function tui(e,o){if(e&1){let t=Y();l(0,"td",35)(1,"button",20),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w(3);return q(u.showAndStorePaymentDetails("loans/accounts",s,d))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Payment")," "))}function iui(e,o){e&1&&b(0,"tr",36)}function nui(e,o){e&1&&b(0,"tr",37)}function oui(e,o){if(e&1&&(l(0,"h2",21),c(1),p(2,"translate"),r(),l(3,"table",22),X(4,23),F(5,j0i,3,3,"th",24)(6,$0i,2,1,"td",25),Z(),X(7,26),F(8,U0i,3,3,"th",24)(9,W0i,2,2,"td",25),Z(),X(10,27),F(11,Q0i,3,3,"th",24)(12,Y0i,2,2,"td",25),Z(),X(13,28),F(14,J0i,3,3,"th",24)(15,K0i,2,1,"td",25),Z(),X(16,29),F(17,X0i,3,3,"th",24)(18,Z0i,2,1,"td",25),Z(),X(19,30),F(20,eui,3,3,"th",24)(21,tui,4,3,"td",25),Z(),F(22,iui,1,0,"tr",31)(23,nui,1,0,"tr",32),r(),b(24,"mat-paginator",33)),e&2){let t=w(2);a(),h(m(2,5,"labels.heading.Due Collections")),a(2),g("dataSource",t.loansDataSource),a(19),g("matHeaderRowDef",t.loansDisplayedColumns),a(),g("matRowDefColumns",t.loansDisplayedColumns),a(),g("pageSizeOptions",oe(7,tZ))}}function aui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Deposit Account")," "))}function rui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.depositAccountType)}}function lui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Savings Account")," # "))}function sui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.accountId)}}function cui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Product Name")))}function pui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.productName,"(",t.productId,")")}}function mui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function dui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),le("",t.clientName,"(",t.clientId,")")}}function uui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Total Due")))}function fui(e,o){if(e&1&&(l(0,"td",35),c(1),r()),e&2){let t=o.$implicit;a(),h(t.dueAmount)}}function hui(e,o){e&1&&(l(0,"th",34),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Actions")))}function gui(e,o){if(e&1){let t=Y();l(0,"td",35)(1,"button",20),R("click",function(){let i=V(t),s=i.$implicit,d=i.index,u=w(3);return q(u.showAndStorePaymentDetails("savings",s,d))}),c(2),p(3,"translate"),r()()}e&2&&(a(2),v(" ",m(3,1,"labels.buttons.Add Payment")," "))}function _ui(e,o){e&1&&b(0,"tr",36)}function Cui(e,o){e&1&&b(0,"tr",37)}function vui(e,o){if(e&1&&(l(0,"h2",21),c(1),p(2,"translate"),r(),l(3,"table",22),X(4,38),F(5,aui,3,3,"th",24)(6,rui,2,1,"td",25),Z(),X(7,39),F(8,lui,3,3,"th",24)(9,sui,2,1,"td",25),Z(),X(10,26),F(11,cui,3,3,"th",24)(12,pui,2,2,"td",25),Z(),X(13,27),F(14,mui,3,3,"th",24)(15,dui,2,2,"td",25),Z(),X(16,28),F(17,uui,3,3,"th",24)(18,fui,2,1,"td",25),Z(),X(19,30),F(20,hui,3,3,"th",24)(21,gui,4,3,"td",25),Z(),F(22,_ui,1,0,"tr",31)(23,Cui,1,0,"tr",32),r(),b(24,"mat-paginator",33)),e&2){let t=w(2);a(),h(m(2,5,"labels.inputs.Due Savings Collections")),a(2),g("dataSource",t.savingsDataSource),a(19),g("matHeaderRowDef",t.savingsDisplayedColumns),a(),g("matRowDefColumns",t.savingsDisplayedColumns),a(),g("pageSizeOptions",oe(7,tZ))}}function xui(e,o){if(e&1){let t=Y();l(0,"div",1)(1,"mat-card")(2,"div",19)(3,"button",20),R("click",function(){V(t);let i=w();return q(i.isCollapsed=!1)}),c(4),p(5,"translate"),r()(),E(6,oui,25,8),E(7,vui,25,8),l(8,"mat-card-actions",13)(9,"button",14),c(10),p(11,"translate"),r(),l(12,"button",20),R("click",function(){V(t);let i=w();return q(i.submit())}),c(13),p(14,"translate"),r()()()()}if(e&2){let t=w();a(4),v(" ",m(5,6,"labels.buttons.Parameters")," "),a(2),I(t.loansDataSource?6:-1),a(),I(t.savingsDataSource?7:-1),a(2),g("routerLink",oe(12,eZ)),a(),v(" ",m(11,8,"labels.buttons.Cancel")," "),a(3),v(" ",m(14,10,"labels.buttons.Submit")," ")}}var uP=(()=>{class e{constructor(){this.formBuilder=T(nt),this.collectionsService=T(dP),this.organizationService=T(li),this.route=T(Ie),this.dateUtils=T(Zt),this.dialog=T(Ht),this.router=T(qe),this.settingsService=T(Ot),this.loanOfficerData=[],this.loansData=[],this.savingsData=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isCollapsed=!1,this.bulkDisbursementTransactionsData={},this.bulkRepaymentTransactions=[],this.bulkSavingsDueTransactions=[],this.noData=!1,this.loansDisplayedColumns=["loanAccount","productName","clientName","totalDue","charges","actions"],this.savingsDisplayedColumns=["depositAccount","savingsAccountNo","productName","clientName","totalDue","actions"],this.route.data.subscribe(t=>{this.officesData=t.officesData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,localStorage.getItem("Success")&&(localStorage.removeItem("Success"),this.Success=!0,setTimeout(()=>{this.Success=!1},3e3)),this.createCollectionSheetForm(),this.buildDependencies()}createCollectionSheetForm(){this.collectionSheetForm=this.formBuilder.group({officeId:["",ce.required],transactionDate:[new Date,ce.required],staffId:[""]})}buildDependencies(){this.collectionSheetForm.get("officeId").valueChanges.subscribe(t=>{this.organizationService.getStaffs(t).subscribe(n=>{this.loanOfficerData=n})})}organizeData(t){t.clients.forEach(n=>{n.loans&&n.loans.forEach(i=>{let s=qt(at({},i),{clientName:n.clientName,clientId:n.clientId});this.loansData.push(s)}),n.savings&&n.savings.forEach(i=>{let s=qt(at({},i),{clientName:n.clientName,clientId:n.clientId});this.savingsData.push(s)})}),this.loansData.length>0&&(this.loansDataSource=new Wt(this.loansData),this.loansDataSource.paginator=this.paginator,this.loansDataSource.sort=this.sort),this.savingsData.length>0&&(this.savingsDataSource=new Wt(this.savingsData),this.savingsDataSource.paginator=this.paginator,this.savingsDataSource.sort=this.sort)}getLoanTotalDueAmount(t){let n=t.totalDue,i=t.chargesDue;return isNaN(n)&&(n=0),isNaN(i)&&(i=0),Math.ceil((Number(n)+Number(i))*100)/100}showAndStorePaymentDetails(t,n,i){let s=[new $i({controlName:"paymentTypeId",label:"Payment Type",options:{label:"name",value:"id",data:this.collectionSheetData.paymentTypeOptions},required:!1}),new vn({controlName:"accountNumber",label:"Account #",type:"number",required:!1}),new vn({controlName:"checkNumber",label:"Cheque #",type:"number",required:!1}),new vn({controlName:"routingCode",label:"Routing Code",type:"text",required:!1}),new vn({controlName:"receiptNumber",label:"Receipt #",type:"number",required:!1}),new vn({controlName:"bankNumber",label:"Bank #",type:"number",required:!1})],d={title:`Payment for ${t==="loans"?"Loan":"Saving"} Id ${t==="loans"?n.loanId:n.savingsId}`,layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(an,{data:d}).afterClosed().subscribe(f=>{if(f.data)if(t==="loans"){let _=this.getLoanTotalDueAmount(n),C={loanId:n.loanId,transactionAmount:_};f.data.value.paymentTypeId!==""&&(C.paymentTypeId=f.data.value.paymentTypeId,C.accountNumber=f.data.value.accountNumber,C.checkNumber=f.data.value.checkNumber,C.routingCode=f.data.value.routingCode,C.receiptNumber=f.data.value.receiptNumber,C.bankNumber=f.data.value.bankNumber),this.bulkRepaymentTransactions.push(C)}else{let _=n.dueAmount;isNaN(_)&&(_=0);let C={savingsId:n.savingsId,transactionAmount:_,depositAccountType:n.depositAccountType==="Saving Deposit"?100:n.depositAccountType==="Recurring Deposit"?300:400};f.data.paymentTypeId!==""&&(C.paymentTypeId=f.data.paymentTypeId,C.accountNumber=f.data.accountNumber,C.checkNumber=f.data.checkNumber,C.routingCode=f.data.routingCode,C.receiptNumber=f.data.receiptNumber,C.bankNumber=f.data.bankNumber),C.transactionAmount>0&&this.bulkSavingsDueTransactions.push(C)}})}previewCollectionSheet(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat,i=qt(at({},this.collectionSheetForm.value),{transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,n),dateFormat:n,locale:t});i.staffId===""&&delete i.staffId,this.collectionsService.retrieveCollectionSheetData(i).subscribe(s=>{s.clients.length>0?(this.collectionSheetData=s,this.organizeData(s),this.isCollapsed=!0):(this.noData=!0,setTimeout(()=>{this.noData=!1},3e3))})}submit(){let t=this.settingsService.language.code,n=this.settingsService.dateFormat;this.bulkDisbursementTransactionsData.bulkRepaymentTransactions=this.bulkRepaymentTransactions,this.bulkDisbursementTransactionsData.bulkSavingsDueTransactions=this.bulkSavingsDueTransactions;let i={dateFormat:n,locale:t,actualDisbursementDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,n),transactionDate:this.dateUtils.formatDate(this.collectionSheetForm.value.transactionDate,n),bulkDisbursementTransactions:this.bulkDisbursementTransactionsData};this.collectionsService.executeSaveCollectionSheet(i).subscribe(()=>{this.reload(),localStorage.setItem("Success","true")})}reload(){let t=this.router.url;this.router.navigateByUrl("/collections",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-individual-collection-sheet"]],viewQuery:function(n,i){if(n&1&&(Ee(kt,5,!0),Ee(It,5,!0)),n&2){let s;Te(s=Me())&&(i.paginator=s.first),Te(s=Me())&&(i.sort=s.first)}},decls:3,vars:2,consts:[["transactionDatePicker",""],[1,"container"],[1,"showcollectionsheet"],[1,"alert"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["formControlName","officeId","required",""],[3,"value"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","staffId"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","search",1,"m-r-10"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],[1,"m-b-20"],["mat-raised-button","","color","primary",3,"click"],[1,"mat-h2"],["mat-table","","matSort","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","loanAccount"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","productName"],["matColumnDef","clientName"],["matColumnDef","totalDue"],["matColumnDef","charges"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["matColumnDef","depositAccount"],["matColumnDef","savingsAccountNo"]],template:function(n,i){n&1&&(E(0,G0i,36,26,"mat-card",1),l(1,"div",2),E(2,xui,15,13,"div",1),r()),n&2&&(I(i.isCollapsed?-1:0),a(2),I(i.isCollapsed?2:-1))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,ke,_t,It,xt,vt,bt,ri,Ct,yt,St,Pt,wt,Tt,kt,he],styles:[".container[_ngcontent-%COMP%]{max-width:37em;padding:20px}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}.container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.container[_ngcontent-%COMP%] .m-r-10[_ngcontent-%COMP%]{margin-right:10px}.container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#0000006b}.container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#0000006b}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{max-width:73rem}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{padding:24px;border-radius:8px;box-shadow:0 2px 10px #00000014}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%]{margin-bottom:20px;padding:10px 0;display:flex;align-items:center}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{min-width:120px;font-weight:500;box-shadow:0 2px 4px #0000001a;transition:all .3s ease}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{box-shadow:0 4px 8px #00000026;transform:translateY(-2px)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{margin-bottom:20px;font-weight:500;color:#000000de;border-bottom:1px solid rgba(0,0,0,.12);padding-bottom:10px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{width:100%;margin-bottom:24px;box-shadow:none;border:1px solid rgba(0,0,0,.12)}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{font-weight:500;color:#000000de;background-color:#0000000a}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] td.mat-cell[_ngcontent-%COMP%], .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{padding:12px 16px}.showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#00000005}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-form-field.mat-form-field .mat-form-field-underline{background-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mat-mdc-form-field-bottom-align:before{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:before, .dark-theme[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .mat-mdc-form-field.mat-mdc-form-field .mdc-line-ripple:after{border-bottom-color:#ffffffb3}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{background-color:#424242}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] .m-b-20[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] h2.mat-h2[_ngcontent-%COMP%]{color:#ffffffde;border-bottom-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%]{border-color:#ffffff1f}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] th.mat-header-cell[_ngcontent-%COMP%]{color:#ffffffde;background-color:#ffffff1a}.dark-theme[_ngcontent-%COMP%] .showcollectionsheet[_ngcontent-%COMP%] .container[_ngcontent-%COMP%] table.mat-elevation-z1[_ngcontent-%COMP%] tr.mat-row[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.alert[_ngcontent-%COMP%]{background-color:#fdecea;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#f44336;margin-right:2px}"]})}}return e})();var bui=()=>["../"];function yui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Sui(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Branch Office")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function wui(e,o){e&1&&(l(0,"mat-error"),c(1),p(2,"translate"),p(3,"translate"),l(4,"strong"),c(5),p(6,"translate"),r()()),e&2&&(a(),le(" ",m(2,3,"labels.inputs.Meeting Date")," ",m(3,5,"labels.commons.is")," "),a(4),h(m(6,7,"labels.commons.required")))}function Pui(e,o){if(e&1){let t=Y();l(0,"mat-form-field",11),R("click",function(){V(t);let i=ve(7);return q(i.open())}),l(1,"mat-label"),c(2),p(3,"translate"),r(),b(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),E(8,wui,7,9,"mat-error"),r()}if(e&2){let t=ve(7),n=w();a(2),h(m(3,6,"labels.inputs.Meeting Date")),a(2),g("min",n.minDate)("max",n.maxDate)("matDatepicker",t),a(),g("for",t),a(3),I(n.collectionSheetForm.controls.meetingDate.hasError("required")?8:-1)}}function Tui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.displayName," ")}}function Mui(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",14),Se(5,Tui,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Staff")),a(3),we(t.loanOfficerData)}}function Dui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Eui(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",15),Se(5,Dui,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Group")),a(3),we(t.groupsData)}}function Iui(e,o){if(e&1&&(l(0,"mat-option",6),c(1),r()),e&2){let t=o.$implicit;g("value",t.id),a(),v(" ",t.name," ")}}function Oui(e,o){if(e&1&&(l(0,"mat-form-field",4)(1,"mat-label"),c(2),p(3,"translate"),r(),l(4,"mat-select",16),Se(5,Iui,2,2,"mat-option",6,Pe),r()()),e&2){let t=w();a(2),h(m(3,1,"labels.inputs.Center")),a(3),we(t.centersData)}}var iZ=(()=>{class e{constructor(){this.formBuilder=T(nt),this.centerService=T(Jn),this.collectionsService=T(dP),this.organizationService=T(li),this.router=T(qe),this.route=T(Ie),this.settingsService=T(Ot),this.dateUtils=T(Zt),this.groupsData=[],this.centersData=[],this.loanOfficerData=[],this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.officeId=null,this.meetingFallCenters=null,this.route.data.subscribe(t=>{this.officesData=t.officesData})}ngOnInit(){this.maxDate=this.settingsService.maxFutureDate,this.createCollectionSheetForm(),this.buildDependencies()}createCollectionSheetForm(){this.collectionSheetForm=this.formBuilder.group({officeId:["",ce.required],meetingDate:[new Date,ce.required],staffId:["",ce.required],groupId:[""],centerId:[""]})}buildDependencies(){this.collectionSheetForm.get("officeId").valueChanges.subscribe(t=>{this.officeId=t,this.organizationService.getStaffs(t).subscribe(n=>{this.loanOfficerData=n}),this.organizationService.getCenters(t).subscribe(n=>{this.centersData=n}),this.organizationService.getGroups(t).subscribe(n=>{this.groupsData=n})})}previewCollectionSheet(){let t=this.settingsService.dateFormat,n=this.settingsService.language.code,i=this.collectionSheetForm.value.staffId,s=this.dateUtils.formatDate(this.collectionSheetForm.value.meetingDate,t);this.centerService.getAllMeetingFallCenters(this.officeId,i,s,t,n).subscribe(d=>{if(d.length>0){this.meetingFallCenters=d[0].meetingFallCenters;let u={calendarId:this.meetingFallCenters[0].collectionMeetingCalendar.calendarInstanceId,transactionDate:s,locale:n,dateFormat:t};this.collectionsService.generateCollectionSheetData(this.meetingFallCenters[0].id,u).subscribe(f=>{console.log(f)})}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-collection-sheet"]],decls:23,vars:18,consts:[["meetingDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-98"],["formControlName","officeId","required",""],[3,"value"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","download",1,"m-r-10"],[1,"flex-98",3,"click"],["matInput","","required","","formControlName","meetingDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","staffId"],["formControlName","groupId"],["formControlName","centerId"]],template:function(n,i){n&1&&(l(0,"mat-card",1)(1,"form",2),R("ngSubmit",function(){return i.previewCollectionSheet()}),l(2,"div",3)(3,"mat-form-field",4)(4,"mat-label"),c(5),p(6,"translate"),r(),l(7,"mat-select",5),Se(8,yui,2,2,"mat-option",6,Pe),r(),E(10,Sui,7,9,"mat-error"),r(),E(11,Pui,9,8,"mat-form-field",4),E(12,Mui,7,3,"mat-form-field",4),E(13,Eui,7,3,"mat-form-field",4),E(14,Oui,7,3,"mat-form-field",4),r(),l(15,"mat-card-actions",7)(16,"button",8),c(17),p(18,"translate"),r(),l(19,"button",9),b(20,"fa-icon",10),c(21),p(22,"translate"),r()()()()),n&2&&(a(),g("formGroup",i.collectionSheetForm),a(4),h(m(6,11,"labels.inputs.Branch Office")),a(3),we(i.officesData),a(2),I(i.collectionSheetForm.controls.officeId.hasError("required")?10:-1),a(),I(i.officeId!==null?11:-1),a(),I(i.officeId!==null?12:-1),a(),I(i.officeId!==null?13:-1),a(),I(i.officeId!==null?14:-1),a(2),g("routerLink",oe(17,bui)),a(),h(m(18,13,"labels.buttons.Cancel")),a(2),g("disabled",!i.collectionSheetForm.valid),a(2),v(" ",m(22,15,"labels.buttons.Productive Collection Sheet")," "))},dependencies:[ue,fe,tt,st,$e,Xe,dt,Ze,et,Oe,Ue,Et,Fe,Be,ut,ai,ze,gt,ft,mi,di,pi,xe,ke,he],styles:[".container[_ngcontent-%COMP%]{max-width:37em}.container[_ngcontent-%COMP%] .margin-v[_ngcontent-%COMP%]{margin:1em 0}.container[_ngcontent-%COMP%] .margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.container[_ngcontent-%COMP%] .margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Aui=[_o.withShell([{path:"collections",children:[{path:"individual-collection-sheet",data:{title:"Individual Collection Sheet",breadcrumb:"Individual Collection Sheet",routeParamBreadcrumb:!1},component:uP,resolve:{officesData:Dl}},{path:"collection-sheet",data:{title:"Collection Sheet",breadcrumb:"Collection Sheet",routeParamBreadcrumb:!1},component:iZ,resolve:{officesData:Dl}}]}])],nZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(Aui),gn]})}}return e})();var oZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ha,nZ,uP]})}}return e})();var Fui=()=>["/system","roles-and-permissions"];function kui(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Role")," "))}function Bui(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.name," ")}}function Rui(e,o){e&1&&(l(0,"th",16),c(1),p(2,"translate"),r()),e&2&&(a(),v(" ",m(2,1,"labels.inputs.Description")," "))}function Nui(e,o){if(e&1&&(l(0,"td",17),c(1),r()),e&2){let t=o.$implicit;a(),v(" ",t.description," ")}}function Lui(e,o){e&1&&b(0,"tr",18)}function Vui(e,o){e&1&&b(0,"tr",19)}var fP=(()=>{class e{constructor(){this.authenticationService=T(Wo),this.settingsService=T(Ot),this.router=T(qe),this.dialog=T(Ht),this.language="English",this.dataSource=new Wt,this.displayedColumns=["role","description"];let t=this.authenticationService;this.profileData=t.getCredentials()}ngOnInit(){this.dataSource=new Wt(this.profileData.roles)}changeUserPassword(){this.dialog.open(Vg,{width:"400px",height:"300px"}).afterClosed().subscribe(n=>{if(n.password&&n.repeatPassword){let i=n.password,s=n.repeatPassword,d={password:i,repeatPassword:s};this.authenticationService.changePassword(this.profileData.userId,d).subscribe(()=>{this.router.navigate(["/home"])})}})}get tenantIdentifier(){return this.settingsService.tenantIdentifier||"default"}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-profile"]],decls:58,vars:35,consts:[[1,"container","m-b-10","layout-row","layout-lt-md-column","align-end","gap-1percent"],["mat-raised-button","","color","primary",1,"m-r-10",3,"routerLink"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","primary",1,"m-r-10",3,"click"],["icon","cog",1,"m-r-10"],[1,"container","layout-column","gap-1percent"],[1,"layout-row-wrap"],[1,"info-box"],[1,"header"],["mat-table","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","role"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","description"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.changeUserPassword()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r()(),l(9,"div",5)(10,"mat-card")(11,"div",6)(12,"div",7)(13,"div",8),c(14),p(15,"translate"),r(),l(16,"div"),c(17),r()(),l(18,"div",7)(19,"div",8),c(20),p(21,"translate"),r(),l(22,"div"),c(23),r()(),l(24,"div",7)(25,"div",8),c(26),p(27,"translate"),r(),l(28,"div"),c(29),r()(),l(30,"div",7)(31,"div",8),c(32),p(33,"translate"),r(),l(34,"div"),c(35),r()(),l(36,"div",7)(37,"div",8),c(38),p(39,"translate"),r(),l(40,"div"),c(41),r()(),l(42,"div",7)(43,"div",8),c(44),p(45,"translate"),r(),l(46,"div"),c(47),r()()()(),l(48,"mat-card")(49,"table",9),X(50,10),F(51,kui,3,3,"th",11)(52,Bui,2,1,"td",12),Z(),X(53,13),F(54,Rui,3,3,"th",11)(55,Nui,2,1,"td",12),Z(),F(56,Lui,1,0,"tr",14)(57,Vui,1,0,"tr",15),r()()()),n&2&&(a(),g("routerLink",oe(34,Fui)),a(2),v(" ",m(4,18,"labels.buttons.Permissions")," "),a(4),v(" ",m(8,20,"labels.buttons.Change Password")," "),a(7),v(" ",m(15,22,"labels.inputs.Tenant Id")," "),a(3),v(" ",i.tenantIdentifier," "),a(3),v(" ",m(21,24,"labels.inputs.User Id")," "),a(3),v(" ",i.profileData.userId," "),a(3),v(" ",m(27,26,"labels.inputs.User Name")," "),a(3),v(" ",i.profileData.username," "),a(3),v(" ",m(33,28,"labels.inputs.Office")," "),a(3),v(" ",i.profileData.officeName," "),a(3),v(" ",m(39,30,"labels.inputs.Status")," "),a(3),v(" ",i.profileData.authenticated?"Authenticated":"Not Authenticated"," "),a(3),v(" ",m(45,32,"labels.inputs.Language")," "),a(3),v(" ",i.language," "),a(2),g("dataSource",i.dataSource),a(7),g("matHeaderRowDef",i.displayedColumns),a(),g("matRowDefColumns",i.displayedColumns))},dependencies:[ue,fe,Oe,Ue,xe,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he],styles:[".container[_ngcontent-%COMP%]{max-width:37rem;padding:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{margin-bottom:1rem;padding:1.5rem;box-shadow:0 2px 4px #0000001a;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--card-background, #fff);transition:background-color .3s ease,border-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%]{display:grid;grid-template-columns:50% 50%;gap:1rem}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding:.75rem;border:1px solid var(--border-color, #ddd);border-radius:6px;background-color:var(--info-box-background, #fff);transition:background-color .3s ease}.container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%] .layout-row-wrap[_ngcontent-%COMP%] .info-box[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word;color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div.header[_ngcontent-%COMP%]{font-weight:600;margin-bottom:.5rem;font-size:1.1rem;color:var(--header-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-top:1rem;border-collapse:collapse}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{font-weight:600;text-align:left;color:var(--table-header-color, inherit);background-color:var(--table-header-bg, transparent)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{padding:.75rem;border:1px solid var(--border-color, #ddd);color:var(--text-color, inherit)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{background-color:var(--table-hover-bg, #f9f9f9)}.container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border-top:1px solid var(--border-color, rgba(0, 0, 0, .12))}th.mat-header-cell[_ngcontent-%COMP%]:not(:first-of-type), td.mat-cell[_ngcontent-%COMP%]:not(:first-of-type){border-left:1px solid var(--border-color, rgba(0, 0, 0, .12))}.mat-elevation-z1[_ngcontent-%COMP%]{margin:.5rem 0;box-shadow:0 1px 3px var(--elevation-shadow, rgba(0, 0, 0, .12));border-radius:6px}.dark-theme[_nghost-%COMP%], .dark-theme [_nghost-%COMP%]{--border-color: #444;--card-background: #2d2d2d;--info-box-background: #383838;--header-color: #e0e0e0;--text-color: #d0d0d0;--table-header-bg: #333;--table-header-color: #e0e0e0;--table-hover-bg: #3a3a3a;--elevation-shadow: rgb(0 0 0 / 30%)}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] mat-card[_ngcontent-%COMP%]{box-shadow:0 2px 4px #0000004d}.dark-theme[_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%], .dark-theme [_nghost-%COMP%] .container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{box-shadow:0 1px 3px #0000004d}"]})}}return e})();var qui=[_o.withShell([{path:"profile",component:fP,data:{title:"Profile",breadcrumb:"Profile"}}])],aZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forChild(qui),gn]})}}return e})();var rZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,aZ,fP]})}}return e})();var zui=()=>["./checker-inbox"],Hui=()=>["./client-approval"],Gui=()=>["./loan-approval"],jui=()=>["./loan-disbursal"],$ui=()=>["./reschedule-loan"];function Uui(e,o){if(e&1&&(l(0,"a",10,1),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,zui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Checker Inbox")," ")}}function Wui(e,o){if(e&1&&(l(0,"a",10,2),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,Hui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Client Approval")," ")}}function Qui(e,o){if(e&1&&(l(0,"a",10,3),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,Gui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Loan Approval")," ")}}function Yui(e,o){if(e&1&&(l(0,"a",10,4),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,jui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Loan Disbursal")," ")}}function Jui(e,o){if(e&1&&(l(0,"a",10,5),c(2),p(3,"translate"),r()),e&2){let t=ve(1);g("routerLink",oe(5,$ui))("active",t.isActive),a(2),v(" ",m(3,3,"labels.inputs.Reschedule Loan")," ")}}var hP=(()=>{class e{constructor(){}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-checker-inbox-and-tasks"]],decls:12,vars:6,consts:[["tabPanel",""],["checkerInbox","routerLinkActive"],["clientApproval","routerLinkActive"],["loanApproval","routerLinkActive"],["loanDisbursal","routerLinkActive"],["rescheduleLoan","routerLinkActive"],[1,"container"],[1,"tasks-card"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(n,i){if(n&1&&(l(0,"div",6)(1,"mat-card",7)(2,"mat-card-content")(3,"nav",8),F(4,Uui,4,6,"a",9)(5,Wui,4,6,"a",9)(6,Qui,4,6,"a",9)(7,Yui,4,6,"a",9)(8,Jui,4,6,"a",9),r(),l(9,"mat-tab-nav-panel",null,0),b(11,"router-outlet"),r()()()()),n&2){let s=ve(10);a(3),g("tabPanel",s),a(),g("mifosxHasPermission","ALL_FUNCTIONS_READ"),a(),g("mifosxHasPermission","READ_CLIENT"),a(),g("mifosxHasPermission","READ_LOAN"),a(),g("mifosxHasPermission","READ_LOAN"),a(),g("mifosxHasPermission","RESCHEDULE_LOAN")}},dependencies:[ue,fe,Oe,Ue,Je,Ke,nr,or,Na,ar,ra,he],encapsulation:2})}}return e})();var Kui=e=>[e,"view"];function Xui(e,o){if(e&1&&(l(0,"mat-option",23),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function Zui(e,o){if(e&1&&(l(0,"mat-option",23),c(1),r()),e&2){let t=o.$implicit;g("value",t),a(),v(" ",t," ")}}function efi(e,o){if(e&1){let t=Y();l(0,"th",39)(1,"mat-checkbox",40),R("change",function(i){V(t);let s=w(3);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(3);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function tfi(e,o){if(e&1){let t=Y();l(0,"td",41)(1,"mat-checkbox",42),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(3);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(3);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function ifi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.ID")))}function nfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function ofi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Made on Date")))}function afi(e,o){if(e&1&&(l(0,"td",41),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.madeOnDate))}}function rfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Status")))}function lfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.processingResult)}}function sfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.User")))}function cfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.maker)}}function pfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Action")))}function mfi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.actionName)}}function dfi(e,o){e&1&&(l(0,"th",39),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Entity")))}function ufi(e,o){if(e&1&&(l(0,"td",41),c(1),r()),e&2){let t=o.$implicit;a(),h(t.entityName)}}function ffi(e,o){e&1&&b(0,"tr",43)}function hfi(e,o){if(e&1&&b(0,"tr",44),e&2){let t=o.$implicit;g("routerLink",Nt(1,Kui,t.id))}}function gfi(e,o){if(e&1&&(l(0,"table",27),X(1,28),F(2,efi,2,3,"th",29)(3,tfi,2,2,"td",30),Z(),X(4,31),F(5,ifi,3,3,"th",29)(6,nfi,2,1,"td",30),Z(),X(7,32),F(8,ofi,3,3,"th",29)(9,afi,3,3,"td",30),Z(),X(10,33),F(11,rfi,3,3,"th",29)(12,lfi,2,1,"td",30),Z(),X(13,34),F(14,sfi,3,3,"th",29)(15,cfi,2,1,"td",30),Z(),X(16,35),F(17,pfi,3,3,"th",29)(18,mfi,2,1,"td",30),Z(),X(19,36),F(20,dfi,3,3,"th",29)(21,ufi,2,1,"td",30),Z(),F(22,ffi,1,0,"tr",37)(23,hfi,1,3,"tr",38),r()),e&2){let t=w(2);g("dataSource",t.dataSource),a(22),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function _fi(e,o){e&1&&(l(0,"div",3)(1,"div",45),b(2,"i",46),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No checker inbox data available for this search")," "))}function Cfi(e,o){if(e&1){let t=Y();l(0,"div",2)(1,"div",4)(2,"div",5)(3,"mat-form-field",6)(4,"input",7),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",8)(7,"button",9),R("click",function(){V(t);let i=w();return q(i.approveChecker())}),b(8,"fa-icon",10),c(9),p(10,"translate"),r(),l(11,"button",11),R("click",function(){V(t);let i=w();return q(i.deleteChecker())}),b(12,"fa-icon",12),c(13),p(14,"translate"),r(),l(15,"button",13),R("click",function(){V(t);let i=w();return q(i.rejectChecker())}),b(16,"fa-icon",14),c(17),p(18,"translate"),r()()(),l(19,"form",15)(20,"div",16)(21,"mat-form-field",17),R("click",function(){V(t);let i=ve(28);return q(i.open())}),l(22,"mat-label"),c(23),p(24,"translate"),r(),b(25,"input",18)(26,"mat-datepicker-toggle",19)(27,"mat-datepicker",null,0),r(),l(29,"mat-form-field",17),R("click",function(){V(t);let i=ve(36);return q(i.open())}),l(30,"mat-label"),c(31),p(32,"translate"),r(),b(33,"input",20)(34,"mat-datepicker-toggle",19)(35,"mat-datepicker",null,1),r(),l(37,"mat-form-field",21)(38,"mat-label"),c(39),p(40,"translate"),r(),l(41,"mat-select",22),Se(42,Xui,2,2,"mat-option",23,Pe),r()(),l(44,"mat-form-field",21)(45,"mat-label"),c(46),p(47,"translate"),r(),l(48,"mat-select",24),Se(49,Zui,2,2,"mat-option",23,Pe),r()(),l(51,"mat-form-field",21)(52,"mat-label"),c(53),p(54,"translate"),r(),b(55,"input",25),r(),l(56,"button",26),R("click",function(){V(t);let i=w();return q(i.search())}),c(57),p(58,"translate"),r()()(),E(59,gfi,24,3,"table",27),E(60,_fi,5,3,"div",3),r()}if(e&2){let t=ve(28),n=ve(36),i=w();a(4),g("placeholder",Le(m(5,22,"labels.text.Search by user"))),a(5),v("",m(10,24,"labels.buttons.Approve")," "),a(4),v("",m(14,26,"labels.buttons.Delete")," "),a(4),v("",m(18,28,"labels.buttons.Reject")," "),a(2),g("formGroup",i.makerCheckerSearchForm),a(4),h(m(24,30,"labels.inputs.From Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",t),a(),g("for",t),a(5),h(m(32,32,"labels.inputs.To Date")),a(2),g("min",i.minDate)("max",i.maxDate)("matDatepicker",n),a(),g("for",n),a(5),h(m(40,34,"labels.inputs.Action")),a(3),we(i.makerCheckerTemplate.actionNames),a(4),h(m(47,36,"labels.inputs.Entity")),a(3),we(i.makerCheckerTemplate.entityNames),a(4),h(m(54,38,"labels.inputs.Resource ID")),a(4),v(" ",m(58,40,"labels.buttons.Search")," "),a(2),I(i.noSearchedData?-1:59),a(),I(i.noSearchedData?60:-1)}}function vfi(e,o){e&1&&(l(0,"div",3)(1,"div",45),b(2,"i",46),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No checker inbox data available for this account")," "))}var gP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.translateService=T(yi),this.tasksService=T(Ko),this.settingsService=T(Ot),this.formBuilder=T(nt),this.noSearchedData=!1,this.checkerData=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date(2100,0,1),this.displayedColumns=["select","id","madeOnDate","status","user","action","entity"],this.route.data.subscribe(t=>{this.searchData=t.makerCheckerResource,this.searchData.length>0&&(this.checkerData=!0),this.makerCheckerTemplate=t.makerCheckerTemplate,this.dataSource=new Wt(this.searchData),this.selection=new gr(!0,[])})}ngOnInit(){this.createMakerCheckerSearchForm()}createMakerCheckerSearchForm(){this.makerCheckerSearchForm=this.formBuilder.group({makerDateTimeFrom:[""],makerDateTimeto:[""],actionName:[""],entityName:[""],resourceId:[""]})}search(){let t=this.settingsService.dateFormat,n=qt(at({},this.makerCheckerSearchForm.value),{makerDateTimeFrom:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeFrom,t),makerDateTimeto:this.dateUtils.formatDate(this.makerCheckerSearchForm.value.makerDateTimeto,t)});this.tasksService.getMakerCheckerData(n).subscribe(i=>{this.searchData=i,this.searchData.length===0?this.noSearchedData=!0:this.noSearchedData=!1,this.dataSource=new Wt(this.searchData),this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length,n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}approveChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Approve Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to approve checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkCheckerApproveorReject("approve")})}rejectChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Reject Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to reject checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkCheckerApproveorReject("reject")})}deleteChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Delete Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to delete checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkDeleteChecker()})}bulkCheckerApproveorReject(t){let n=this.selection.selected.length,i=this.selection.selected,s=0;i.forEach(d=>{this.tasksService.executeMakerCheckerAction(d.id,t).subscribe(u=>{s++,n===s&&this.reload()})})}bulkDeleteChecker(){let t=this.selection.selected.length,n=this.selection.selected,i=0;n.forEach(s=>{this.tasksService.deleteMakerChecker(s.id).subscribe(d=>{i++,t===i&&this.reload()})})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-checker-inbox"]],decls:2,vars:2,consts:[["makerDateTimeFromPicker",""],["makerDateTimetoPicker",""],[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60","gap-8px"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-fill","flex-31",3,"click"],["matInput","","formControlName","makerDateTimeFrom",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","makerDateTimeto",3,"min","max","matDatepicker"],[1,"flex-31"],["formControlName","actionName"],[3,"value"],["formControlName","entityName"],["matInput","","formControlName","resourceId"],["mat-raised-button","","color","primary","id","search-button",3,"click"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","madeOnDate"],["matColumnDef","status"],["matColumnDef","user"],["matColumnDef","action"],["matColumnDef","entity"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check","fa-2x"]],template:function(n,i){n&1&&(E(0,Cfi,61,42,"div",2),E(1,vfi,5,3,"div",3)),n&2&&(I(i.checkerData?0:-1),a(),I(i.checkerData?-1:1))},dependencies:[ue,fe,tt,st,$e,Xe,Ze,et,Oe,Fe,Be,ai,ze,gt,ft,mi,di,pi,xe,fi,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}.tab-container[_ngcontent-%COMP%] #search-button[_ngcontent-%COMP%]{height:2.5rem;margin-top:1rem}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%], .tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var _P=Ds(vd());var AO=e=>["../../clients",e];function xfi(e,o){if(e&1){let t=Y();l(0,"button",8),R("click",function(){V(t);let i=w(2);return q(i.approveClients())}),b(1,"fa-icon",9),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Approve")," "))}function bfi(e,o){if(e&1){let t=Y();l(0,"th",20)(1,"mat-checkbox",21),R("change",function(i){V(t);let s=w(2).$implicit,d=w(2);return q(i?d.masterToggle(s.value):null)}),r()()}if(e&2){let t=w(2).$implicit,n=w(2);a(),g("checked",n.selection.hasValue()&&n.isAllSelected(t.value))("indeterminate",n.selection.hasValue()&&!n.isAllSelected(t.value)),br("aria-label",n.checkboxLabel(t.value))}}function yfi(e,o){if(e&1){let t=Y();l(0,"td",22)(1,"mat-checkbox",23),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(4);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(4);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function Sfi(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.name")))}function wfi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,AO,t.id)),a(),v(" ",t.displayName," ")}}function Pfi(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Account Number")))}function Tfi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,AO,t.id)),a(),v(" ",t.accountNo," ")}}function Mfi(e,o){e&1&&(l(0,"th",20),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Staff")))}function Dfi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,AO,t.id)),a(),v(" ",t.staffName," ")}}function Efi(e,o){e&1&&b(0,"tr",25)}function Ifi(e,o){if(e&1){let t=Y();l(0,"tr",26),R("click",function(){let i=V(t).$implicit,s=w(4);return q(s.selection.toggle(i))}),r()}}function Ofi(e,o){if(e&1&&(l(0,"table",10),p(1,"accountsFilter"),X(2,11),F(3,bfi,2,3,"th",12)(4,yfi,2,2,"td",13),Z(),X(5,14),F(6,Sfi,3,3,"th",12)(7,wfi,2,4,"td",15),Z(),X(8,16),F(9,Pfi,3,3,"th",12)(10,Tfi,2,4,"td",15),Z(),X(11,17),F(12,Mfi,3,3,"th",12)(13,Dfi,2,4,"td",15),Z(),F(14,Efi,1,0,"tr",18)(15,Ifi,1,0,"tr",19),r()),e&2){let t=w().$implicit,n=w(2);g("dataSource",Ft(1,3,t.value,"clientApproval")),a(14),g("matHeaderRowDef",n.displayedColumns),a(),g("matRowDefColumns",n.displayedColumns)}}function Afi(e,o){if(e&1&&(l(0,"h3"),c(1),r(),E(2,Ofi,16,6,"table",10)),e&2){let t=o.$implicit;a(),h(t.key),a(),I(t.value.length>0?2:-1)}}function Ffi(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,xfi,4,3,"button",7),r()(),Se(8,Afi,3,2,null,null,Pe),p(10,"keyvalue"),r()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,3,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","ACTIVATE_CLIENT"),a(),we(m(10,5,t.groupedClients))}}function kfi(e,o){e&1&&(l(0,"div",1)(1,"div",27),b(2,"i",28),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending loans for approval")," "))}var CP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.settingsService=T(Ot),this.tasksService=T(Ko),this.showData=!1,this.displayedColumns=["select","name","accountNumber","staff"],this.route.data.subscribe(t=>{this.groupedClients=_P.groupBy(t.groupedClientData.pageItems,"officeName"),Object.keys(this.groupedClients).length&&(this.showData=!0),this.dataSource=new Wt(t.groupedClientData.pageItems),this.selection=new gr(!0,[])})}isAllSelected(t){if(t){let n=this.selection.selected;return _P.difference(t,n).length===0}}masterToggle(t){t&&(this.isAllSelected(t)?t.forEach(n=>this.selection.deselect(n)):t.forEach(n=>this.selection.select(n)))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected(t)?"select":"deselect"} all`}approveClients(){let t=[new rr({controlName:"actDate",label:"Date",value:new Date,type:"datetime-local",required:!0})],n={title:"Enter Clients Activation Date",layout:{addButtonText:"Confirm"},formfields:t};this.dialog.open(an,{data:n}).afterClosed().subscribe(s=>{s.data&&this.bulkClientApproval(s.data)})}bulkClientApproval(t){let n=this.settingsService.dateFormat,i=this.dateUtils.formatDate(t.value.actDate,n),s=this.settingsService.language.code,d={dateFormat:n,activationDate:i,locale:s},u=this.selection.selected.length,f=this.selection.selected,_=0;this.batchRequests=[];let C=1;f.forEach(x=>{let y="clients/"+x.id+"?command=activate",P=JSON.stringify(d),S={requestId:C++,relativeUrl:y,method:"POST",body:P};this.batchRequests.push(S)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(x=>{x.forEach(y=>{y.statusCode==="200"&&(_++,y.body=JSON.parse(y.body),u===_&&this.reload())})})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-client-approval"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","accountNumber"],["matColumnDef","staff"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,Ffi,11,7,"div",0),E(1,kfi,5,3,"div",1)),n&2&&(I(i.showData?0:-1),a(),I(i.showData?-1:1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,yg,he,os],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var lZ=Ds(vd());var Bfi=e=>["../../clients",e,"general"],Rfi=e=>["../../clients",e,"loans-accounts","loan.id"];function Nfi(e,o){if(e&1){let t=Y();l(0,"button",8),R("click",function(){V(t);let i=w(2);return q(i.approveLoan())}),b(1,"fa-icon",9),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Approve")," "))}function Lfi(e,o){if(e&1){let t=Y();l(0,"th",22)(1,"mat-checkbox",23),R("change",function(i){V(t);let s=w(2).$implicit,d=w(2);return q(i?d.masterToggle(s.loans):null)}),r()()}if(e&2){let t=w(2).$implicit,n=w(2);a(),g("checked",n.selection.hasValue()&&n.isAllSelected(t.loans))("indeterminate",n.selection.hasValue()&&!n.isAllSelected(t.loans)),br("aria-label",n.checkboxLabel(t.loans))}}function Vfi(e,o){if(e&1){let t=Y();l(0,"td",24)(1,"mat-checkbox",25),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(4);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(4);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function qfi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client")))}function zfi(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,Bfi,t.clientId)),a(),v(" ",t.clientName," ")}}function Hfi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan")))}function Gfi(e,o){if(e&1&&(l(0,"td",26),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(3,Rfi,t.clientId)),a(),le(" ",t.loanProductName,"(",t.accountNo,") ")}}function jfi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Amount")))}function $fi(e,o){if(e&1&&(l(0,"td",24),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.principal))}}function Ufi(e,o){e&1&&(l(0,"th",22),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Purpose")))}function Wfi(e,o){if(e&1&&(l(0,"td",24),c(1),r()),e&2){let t=o.$implicit;a(),h(t.loanPurposeName)}}function Qfi(e,o){e&1&&b(0,"tr",27)}function Yfi(e,o){if(e&1){let t=Y();l(0,"tr",28),R("click",function(){let i=V(t).$implicit,s=w(4);return q(s.selection.toggle(i))}),r()}}function Jfi(e,o){if(e&1&&(l(0,"table",11),X(1,12),F(2,Lfi,2,3,"th",13)(3,Vfi,2,2,"td",14),Z(),X(4,15),F(5,qfi,3,3,"th",13)(6,zfi,2,4,"td",16),Z(),X(7,17),F(8,Hfi,3,3,"th",13)(9,Gfi,2,5,"td",16),Z(),X(10,18),F(11,jfi,3,3,"th",13)(12,$fi,3,3,"td",14),Z(),X(13,19),F(14,Ufi,3,3,"th",13)(15,Wfi,2,1,"td",14),Z(),F(16,Qfi,1,0,"tr",20)(17,Yfi,1,0,"tr",21),r()),e&2){let t=w().$implicit,n=w(2);g("dataSource",t.loans),a(16),g("matHeaderRowDef",n.displayedColumns),a(),g("matRowDefColumns",n.displayedColumns)}}function Kfi(e,o){if(e&1&&(l(0,"h3",10),c(1),r(),E(2,Jfi,18,3,"table",11)),e&2){let t=o.$implicit;a(),h(t.name),a(),I(t.loans.length>0?2:-1)}}function Xfi(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,Nfi,4,3,"button",7),r()(),Se(8,Kfi,3,2,null,null,Pe),r()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,3,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","APPROVE_LOAN"),a(),we(t.officesArray)}}function Zfi(e,o){e&1&&(l(0,"div",1)(1,"div",29),b(2,"i",30),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending loans for approval")," "))}var vP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.translateService=T(yi),this.settingsService=T(Ot),this.tasksService=T(Ko),this.showData=!1,this.idToNodeMap={},this.displayedColumns=["select","clientName","loan","amount","loanPurpose"],this.route.data.subscribe(t=>{this.offices=t.officesData,this.loans=t.loansData.pageItems,this.setOfficeData()})}setOfficeData(){this.offices.forEach(n=>{n.loans=[],this.idToNodeMap[n.id]=n}),this.loans.forEach(n=>{if(n.status.pendingApproval){let i;n.clientOfficeId?i=this.idToNodeMap[n.clientOfficeId]:n.group?.officeId&&(i=this.idToNodeMap[n.group.officeId]),i&&i.loans.push(n)}});let t=[];this.offices.forEach(n=>{n.loans&&n.loans.length>0&&(this.showData=!0,t.push(n))}),this.officesArray=t,this.dataSource=new Wt(this.officesArray),this.selection=new gr(!0,[])}isAllSelected(t){if(t){let n=this.selection.selected;return lZ.difference(t,n).length===0}}masterToggle(t){t&&(this.isAllSelected(t)?t.forEach(n=>this.selection.deselect(n)):t.forEach(n=>this.selection.select(n)))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected(t)?"select":"deselect"} all`}approveLoan(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Approve Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Approve Loan")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkLoanApproval()})}bulkLoanApproval(){let t=this.settingsService.dateFormat,n=this.dateUtils.formatDate(new Date,t),i=this.settingsService.language.code,s={dateFormat:t,approvedOnDate:n,locale:i},d=this.selection.selected.length,u=this.selection.selected,f=0;this.batchRequests=[];let _=1;u.forEach(C=>{let x="loans/"+C.id+"?command=approve",y=JSON.stringify(s),P={requestId:_++,relativeUrl:x,method:"POST",body:y};this.batchRequests.push(P)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(x=>{x.statusCode==="200"&&(f++,x.body=JSON.parse(x.body),d===f&&this.loanResource())}),this.reload()})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}loanResource(){this.tasksService.getAllLoansToBeApproved().subscribe(t=>{this.loans=t.pageItems,this.loans=this.loans.filter(n=>n.status.waitingForDisbursal===!0),this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-approval"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],[1,"mat-h3"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","clientName"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loan"],["matColumnDef","amount"],["matColumnDef","loanPurpose"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,Xfi,10,5,"div",0),E(1,Zfi,5,3,"div",1)),n&2&&(I(i.showData?0:-1),a(),I(i.showData?-1:1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he,In],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var e1i=e=>["../../clients",e,"general"],sZ=(e,o)=>["../../clients",e,"loans-accounts",o,"general"];function t1i(e,o){if(e&1){let t=Y();l(0,"button",19),R("click",function(){V(t);let i=w(2);return q(i.disburseLoan())}),b(1,"fa-icon",20),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.menus.Disburse")," "))}function i1i(e,o){if(e&1){let t=Y();l(0,"th",21)(1,"mat-checkbox",22),R("change",function(i){V(t);let s=w(2);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(2);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function n1i(e,o){if(e&1){let t=Y();l(0,"td",23)(1,"mat-checkbox",24),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(2);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(2);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function o1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client Name")))}function a1i(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,e1i,t.clientId)),a(),v(" ",t.clientName," ")}}function r1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Loan Account"),"#"))}function l1i(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Ja(2,sZ,t.clientId,t.id)),a(),v(" ",t.accountNo," ")}}function s1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Loan Product")))}function c1i(e,o){if(e&1&&(l(0,"td",25),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Ja(2,sZ,t.clientId,t.id)),a(),v(" ",t.loanProductName," ")}}function p1i(e,o){e&1&&(l(0,"th",21),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Principal")))}function m1i(e,o){if(e&1&&(l(0,"td",23),c(1),p(2,"formatNumber"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.principal))}}function d1i(e,o){e&1&&b(0,"tr",26)}function u1i(e,o){if(e&1){let t=Y();l(0,"tr",27),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.selection.toggle(i))}),r()}}function f1i(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,t1i,4,3,"button",7),r()(),l(8,"table",8),X(9,9),F(10,i1i,2,3,"th",10)(11,n1i,2,2,"td",11),Z(),X(12,12),F(13,o1i,3,3,"th",10)(14,a1i,2,4,"td",13),Z(),X(15,14),F(16,r1i,3,3,"th",10)(17,l1i,2,5,"td",13),Z(),X(18,15),F(19,s1i,3,3,"th",10)(20,c1i,2,5,"td",13),Z(),X(21,16),F(22,p1i,3,3,"th",10)(23,m1i,3,3,"td",11),Z(),F(24,d1i,1,0,"tr",17)(25,u1i,1,0,"tr",18),r()()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,6,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","APPROVE_LOAN"),a(),g("dataSource",t.dataSource),a(16),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function h1i(e,o){e&1&&(l(0,"div",1)(1,"div",28),b(2,"i",29),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending loan available for disbursal")," "))}var xP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.settingsService=T(Ot),this.translateService=T(yi),this.tasksService=T(Ko),this.displayedColumns=["select","client","loanAccountNumber","loanProduct","principal"],this.route.data.subscribe(t=>{this.loans=t.loansData.pageItems,this.loans=this.loans.filter(n=>n.status.waitingForDisbursal===!0),this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length,n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}disburseLoan(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Loan Disbursal"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to Disburse Loan")}}).afterClosed().subscribe(n=>{n.confirm&&this.bulkLoanDisbursal()})}bulkLoanDisbursal(){let t=this.settingsService.dateFormat,n=this.dateUtils.formatDate(new Date,t),i=this.settingsService.language.code,s={dateFormat:t,approvedOnDate:n,locale:i},d=this.selection.selected.length,u=this.selection.selected,f=0;this.batchRequests=[];let _=1;u.forEach(C=>{let x="loans/"+C.id+"?command=disburse",y=JSON.stringify(s),P={requestId:_++,relativeUrl:x,method:"POST",body:y};this.batchRequests.push(P)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(C=>{C.forEach(x=>{x.statusCode==="200"&&(f++,x.body=JSON.parse(x.body),d===f&&this.loanResource())})})}loanResource(){this.tasksService.getAllLoansToBeDisbursed().subscribe(t=>{this.loans=t.pageItems,this.loans=this.loans.filter(n=>n.status.waitingForDisbursal===!0),this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-loan-disbursal"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-fill","flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","loanAccountNumber"],["matColumnDef","loanProduct"],["matColumnDef","principal"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,f1i,26,8,"div",0),E(1,h1i,5,3,"div",1)),n&2&&(I(i.loans&&i.loans.length>0?0:-1),a(),I(i.loans.length===0?1:-1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,he,In],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var g1i=e=>["../../clients",e,"general"],_1i=(e,o)=>["../../clients",e,"loans",o,"general"];function C1i(e,o){if(e&1){let t=Y();l(0,"button",21),R("click",function(){V(t);let i=w(2);return q(i.bulkLoanReschedule("Approve"))}),b(1,"fa-icon",22),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Approve")," "))}function v1i(e,o){if(e&1){let t=Y();l(0,"button",23),R("click",function(){V(t);let i=w(2);return q(i.bulkLoanReschedule("Reject"))}),b(1,"fa-icon",24),c(2),p(3,"translate"),r()}e&2&&(a(2),v("",m(3,1,"labels.buttons.Reject")," "))}function x1i(e,o){if(e&1){let t=Y();l(0,"th",25)(1,"mat-checkbox",26),R("change",function(i){V(t);let s=w(2);return q(i?s.masterToggle():null)}),r()()}if(e&2){let t=w(2);a(),g("checked",t.selection.hasValue()&&t.isAllSelected())("indeterminate",t.selection.hasValue()&&!t.isAllSelected()),br("aria-label",t.checkboxLabel())}}function b1i(e,o){if(e&1){let t=Y();l(0,"td",27)(1,"mat-checkbox",28),R("click",function(i){return V(t),q(i.stopPropagation())})("change",function(i){let s=V(t).$implicit,d=w(2);return q(i?d.selection.toggle(s):null)}),r()()}if(e&2){let t=o.$implicit,n=w(2);a(),g("checked",n.selection.isSelected(t)),br("aria-label",n.checkboxLabel(t))}}function y1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Client")))}function S1i(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Nt(2,g1i,t.clientId)),a(),v(" ",t.clientName," ")}}function w1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Reschedule Request"),"#"))}function P1i(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.id)}}function T1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),v("",m(2,1,"labels.inputs.Loan Account"),"#"))}function M1i(e,o){if(e&1&&(l(0,"td",29),c(1),r()),e&2){let t=o.$implicit;g("routerLink",Ja(2,_1i,t.clientId,t.loanId)),a(),v(" ",t.loanAccountNumber," ")}}function D1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Reschedule Form")))}function E1i(e,o){if(e&1&&(l(0,"td",27),c(1),p(2,"dateFormat"),r()),e&2){let t=o.$implicit;a(),h(m(2,1,t.rescheduleFromDate))}}function I1i(e,o){e&1&&(l(0,"th",25),c(1),p(2,"translate"),r()),e&2&&(a(),h(m(2,1,"labels.inputs.Reschedule Reason")))}function O1i(e,o){if(e&1&&(l(0,"td",27),c(1),r()),e&2){let t=o.$implicit;a(),h(t.rescheduleReasonCodeValue.name)}}function A1i(e,o){e&1&&b(0,"tr",30)}function F1i(e,o){if(e&1){let t=Y();l(0,"tr",31),R("click",function(){let i=V(t).$implicit,s=w(2);return q(s.selection.toggle(i))}),r()}}function k1i(e,o){if(e&1){let t=Y();l(0,"div",0)(1,"div",2)(2,"div",3)(3,"mat-form-field",4)(4,"input",5),p(5,"translate"),R("keyup",function(i){V(t);let s=w();return q(s.applyFilter(i.target.value))}),r()()(),l(6,"div",6),F(7,C1i,4,3,"button",7)(8,v1i,4,3,"button",8),r()(),l(9,"table",9),X(10,10),F(11,x1i,2,3,"th",11)(12,b1i,2,2,"td",12),Z(),X(13,13),F(14,y1i,3,3,"th",11)(15,S1i,2,4,"td",14),Z(),X(16,15),F(17,w1i,3,3,"th",11)(18,P1i,2,1,"td",12),Z(),X(19,16),F(20,T1i,3,3,"th",11)(21,M1i,2,5,"td",14),Z(),X(22,17),F(23,D1i,3,3,"th",11)(24,E1i,3,3,"td",12),Z(),X(25,18),F(26,I1i,3,3,"th",11)(27,O1i,2,1,"td",12),Z(),F(28,A1i,1,0,"tr",19)(29,F1i,1,0,"tr",20),r()()}if(e&2){let t=w();a(4),g("placeholder",Le(m(5,7,"labels.text.Filter by name"))),a(3),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),a(),g("mifosxHasPermission","APPROVE_LOANRESCHEDULE"),a(),g("dataSource",t.dataSource),a(19),g("matHeaderRowDef",t.displayedColumns),a(),g("matRowDefColumns",t.displayedColumns)}}function B1i(e,o){e&1&&(l(0,"div",1)(1,"div",32),b(2,"i",33),c(3),p(4,"translate"),r()()),e&2&&(a(3),v(" ",m(4,1,"labels.text.No pending rescheduled loan available for this account")," "))}var bP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.dateUtils=T(Zt),this.router=T(qe),this.settingsService=T(Ot),this.translateService=T(yi),this.tasksService=T(Ko),this.displayedColumns=["select","client","rescheduleRequestNo","loanAccountNo","rescheduleForm","rescheduleReason"],this.route.data.subscribe(t=>{this.loans=t.rescheduleLoansData,this.dataSource=new Wt(this.loans),this.selection=new gr(!0,[])})}isAllSelected(){let t=this.selection.selected.length,n=this.dataSource.data.length;return t===n}masterToggle(){this.isAllSelected()?this.selection.clear():this.dataSource.data.forEach(t=>this.selection.select(t))}checkboxLabel(t){return t?`${this.selection.isSelected(t)?"deselect":"select"} row ${t.position+1}`:`${this.isAllSelected()?"select":"deselect"} all`}bulkLoanReschedule(t){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Reschedule Loan"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to")+t+this.translateService.instant("labels.dialogContext.the Reschedule Loan")}}).afterClosed().subscribe(i=>{i.confirm&&this.bulkLoanRescheduleRequest(t.toLowerCase())})}bulkLoanRescheduleRequest(t){let n=this.settingsService.dateFormat,i=this.dateUtils.formatDate(this.settingsService.businessDate,n),s=this.settingsService.language.code,d={dateFormat:n,locale:s};t==="approve"?d.approvedOnDate=i:d.rejectedOnDate=i;let u=this.selection.selected;this.batchRequests=[];let f=1;u.forEach(_=>{let C="rescheduleloans/"+_.id+"?command="+t,x=JSON.stringify(d),y={requestId:f++,relativeUrl:C,method:"POST",body:x};this.batchRequests.push(y)}),this.tasksService.submitBatchData(this.batchRequests).subscribe(_=>{this.reload()})}applyFilter(t=""){this.dataSource.filter=t.trim().toLowerCase()}reload(){let t=this.router.url;this.router.navigateByUrl("/checker-inbox-and-tasks",{skipLocationChange:!0}).then(()=>this.router.navigate([t]))}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-reschedule-loan"]],decls:2,vars:2,consts:[[1,"tab-container","mat-typography"],[1,"alert"],[1,"layout-row","align-start-center"],[1,"search-box","flex-40"],[1,"flex-90"],["matInput","",3,"keyup","placeholder"],[1,"flex-60"],["mat-raised-button","","color","success",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","reject",3,"click",4,"mifosxHasPermission"],["mat-table","",3,"dataSource"],["matColumnDef","select"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","client"],["mat-cell","","class","view-details",3,"routerLink",4,"matCellDef"],["matColumnDef","rescheduleRequestNo"],["matColumnDef","loanAccountNo"],["matColumnDef","rescheduleForm"],["matColumnDef","rescheduleReason"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"click",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],["mat-header-cell",""],[3,"change","checked","indeterminate","aria-label"],["mat-cell",""],[3,"click","change","checked","aria-label"],["mat-cell","",1,"view-details",3,"routerLink"],["mat-header-row",""],["mat-row","",3,"click"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"]],template:function(n,i){n&1&&(E(0,k1i,30,9,"div",0),E(1,B1i,5,3,"div",1)),n&2&&(I(i.loans&&i.loans.length>0?0:-1),a(),I(i.loans.length===0?1:-1))},dependencies:[ue,fe,Oe,Fe,ze,xe,fi,Ke,ke,_t,xt,vt,bt,Ct,yt,St,Pt,wt,Tt,Pi,he],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] .mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.tab-container[_ngcontent-%COMP%] .view-details[_ngcontent-%COMP%]{cursor:pointer}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem}"]})}}return e})();var cZ=Ds(vd());function R1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),p(3,"translate"),r(),l(4,"span",14),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Resource ID"),":"),a(3),h(t.checkerInboxDetail.resourceId)}}function N1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),p(3,"translate"),r(),l(4,"span",14),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Office"),":"),a(3),h(t.checkerInboxDetail.officeName)}}function L1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),p(3,"translate"),r(),l(4,"span",14),c(5),r()()),e&2){let t=w();a(2),v("",m(3,2,"labels.inputs.Savings Account Number"),":"),a(3),h(t.checkerInboxDetail.savingsAccountNo)}}function V1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),r(),l(3,"span",14),c(4),r()()),e&2){let t=w();a(2),v(" ",t.checkerInboxDetail.groupLevelName),a(2),h(t.checkerInboxDetail.groupName)}}function q1i(e,o){if(e&1&&(l(0,"div",12)(1,"span",13),c(2),r(),l(3,"span",14),c(4),r()()),e&2){let t=o.$implicit;a(2),v("",t.key,":"),a(2),h(t.value)}}function z1i(e,o){if(e&1&&(l(0,"h3",11),c(1),p(2,"translate"),r(),b(3,"mat-divider",10),Se(4,q1i,5,2,"div",12,Pe),p(6,"keyvalue")),e&2){let t=w();a(),h(m(2,2,"labels.heading.Command")),a(2),g("inset",!0),a(),we(m(6,4,t.jsondata))}}var yP=(()=>{class e{constructor(){this.route=T(Ie),this.dialog=T(Ht),this.router=T(qe),this.translateService=T(yi),this.tasksService=T(Ko),this.displayJSONData=!1,this.route.data.subscribe(t=>{this.checkerInboxDetail=t.checkerInboxDetail,this.jsondata=JSON.parse(this.checkerInboxDetail.commandAsJson),this.displayJSONData=!cZ.isEmpty(this.jsondata)})}approveChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Approve Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to approve checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.tasksService.executeMakerCheckerAction(this.checkerInboxDetail.id,"approve").subscribe(i=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}rejectChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Reject Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to reject checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.tasksService.executeMakerCheckerAction(this.checkerInboxDetail.id,"reject").subscribe(i=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}deleteChecker(){this.dialog.open(wr,{data:{heading:this.translateService.instant("labels.heading.Delete Checker"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to delete checker")}}).afterClosed().subscribe(n=>{n.confirm&&this.tasksService.deleteMakerChecker(this.checkerInboxDetail.id).subscribe(i=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-view-checker-inbox"]],decls:67,vars:48,consts:[[1,"layout-row","align-end","gap-1percent","layout-lt-md-column","container","m-b-20"],["mat-raised-button","","color","success",3,"click"],["icon","check",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["mat-raised-button","","color","reject",3,"click"],["icon","times",1,"m-r-10"],[1,"container"],[1,"layout-row-wrap","responsive-column"],[1,"mat-h2","flex-fill"],[3,"inset"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"]],template:function(n,i){n&1&&(l(0,"div",0)(1,"button",1),R("click",function(){return i.approveChecker()}),b(2,"fa-icon",2),c(3),p(4,"translate"),r(),l(5,"button",3),R("click",function(){return i.deleteChecker()}),b(6,"fa-icon",4),c(7),p(8,"translate"),r(),l(9,"button",5),R("click",function(){return i.rejectChecker()}),b(10,"fa-icon",6),c(11),p(12,"translate"),r()(),l(13,"div",7)(14,"mat-card")(15,"mat-card-content")(16,"div",8)(17,"h2",9),c(18),p(19,"translate"),r(),b(20,"mat-divider",10),l(21,"h3",11),c(22),p(23,"translate"),r(),b(24,"mat-divider",10),l(25,"div",12)(26,"span",13),c(27),p(28,"translate"),r(),l(29,"span",14),c(30),r()(),l(31,"div",12)(32,"span",13),c(33),p(34,"translate"),r(),l(35,"span",14),c(36),r()(),l(37,"div",12)(38,"span",13),c(39),p(40,"translate"),r(),l(41,"span",14),c(42),r()(),l(43,"div",12)(44,"span",13),c(45),p(46,"translate"),r(),l(47,"span",14),c(48),r()(),l(49,"div",12)(50,"span",13),c(51),p(52,"translate"),r(),l(53,"span",14),c(54),r()(),E(55,R1i,6,4,"div",12),l(56,"div",12)(57,"span",13),c(58),p(59,"translate"),r(),l(60,"span",14),c(61),p(62,"dateFormat"),r()(),E(63,N1i,6,4,"div",12),E(64,L1i,6,4,"div",12),E(65,V1i,5,2,"div",12),E(66,z1i,7,6),r()()()()),n&2&&(a(3),v("",m(4,24,"labels.buttons.Approve")," "),a(4),v("",m(8,26,"labels.buttons.Delete")," "),a(4),v("",m(12,28,"labels.buttons.Reject")," "),a(7),h(m(19,30,"labels.heading.View Checker Inbox")),a(2),g("inset",!0),a(2),h(m(23,32,"labels.heading.Details")),a(2),g("inset",!0),a(3),v("",m(28,34,"labels.inputs.ID"),":"),a(3),h(i.checkerInboxDetail.id),a(3),v("",m(34,36,"labels.inputs.Status"),":"),a(3),h(i.checkerInboxDetail.processingResult),a(3),v("",m(40,38,"labels.inputs.User"),":"),a(3),h(i.checkerInboxDetail.maker),a(3),v("",m(46,40,"labels.inputs.Action"),":"),a(3),h(i.checkerInboxDetail.actionName),a(3),v("",m(52,42,"labels.inputs.Entity"),":"),a(3),h(i.checkerInboxDetail.entityName),a(),I(i.checkerInboxDetail.resourceId?55:-1),a(3),v("",m(59,44,"labels.inputs.Date"),":"),a(3),h(m(62,46,i.checkerInboxDetail.madeOnDate)),a(2),I(i.checkerInboxDetail.officeName?63:-1),a(),I(i.checkerInboxDetail.savingsAccountNo?64:-1),a(),I(i.checkerInboxDetail.groupLevelName?65:-1),a(),I(i.displayJSONData?66:-1))},dependencies:[ue,fe,Ue,Je,xe,ke,Ri,yg,Pi,he],styles:[".mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.mat-raised-button.mat-success[_ngcontent-%COMP%]{color:#fff;background-color:#008000ab}.mat-raised-button.mat-reject[_ngcontent-%COMP%]{color:#fff;background-color:#ffca00}"]})}}return e})();var FO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getMakerCheckerData()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var kO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getGroupedClientsData()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var BO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getAllOffices()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var RO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getAllLoansToBeApproved()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var NO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getAllLoansToBeDisbursed()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var LO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getPendingRescheduleLoans()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var VO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(){return this.tasksService.getMakerCheckerTemplate()}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var qO=(()=>{class e{constructor(){this.tasksService=T(Ko)}resolve(t){let n=t.paramMap.get("id");return this.tasksService.getCheckerInboxDetail(n)}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var H1i=[_o.withShell([{path:"checker-inbox-and-tasks",component:hP,data:{title:"Checker Inbox & Tasks",breadcrumb:"Checker Inbox & Tasks"},children:[{path:"checker-inbox",component:gP,data:{title:"Checker Inbox"},resolve:{makerCheckerResource:FO,makerCheckerTemplate:VO}},{path:"client-approval",component:CP,data:{title:"Client Approval"},resolve:{groupedClientData:kO}},{path:"loan-approval",component:vP,data:{title:"Laon Approval"},resolve:{officesData:BO,loansData:RO}},{path:"loan-disbursal",component:xP,data:{title:"Loan Disbursal"},resolve:{loansData:NO}},{path:"reschedule-loan",component:bP,data:{title:"Reschedule Loan"},resolve:{rescheduleLoansData:LO}}]},{path:"checker-inbox-and-tasks/checker-inbox",children:[{path:":id/view",component:yP,data:{title:"View Checker Inbox Component",routeParamBreadcrumb:"clientId"},resolve:{checkerInboxDetail:qO}}]}])],pZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({providers:[FO,kO,BO,RO,NO,LO,VO,qO],imports:[gn.forChild(H1i),gn]})}}return e})();var mZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,pZ,Er,ha,hP,gP,CP,vP,xP,bP,yP]})}}return e})();var dZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[oo,ue,zF,Ag,kg,P_,M_,Ar,ss,Mx]})}}return e})();var uZ=(()=>{class e{constructor(){this.route=T(Ie),this.router=T(qe),this.authService=T(Ia)}ngOnInit(){return qn(this,null,function*(){try{let t=sessionStorage.getItem("auth_code");if(t){let n=sessionStorage.getItem("code_verifier");try{yield this.authService.exchangeCodeForTokens(t,n)}finally{sessionStorage.removeItem("auth_code"),sessionStorage.removeItem("code_verifier")}}}catch(t){console.error("Authentication failed:",t),this.router.navigate(["/login"])}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275cmp=me({type:e,selectors:[["mifosx-callback"]],decls:5,vars:0,consts:[[1,"loader-wrapper"],[1,"bottom","triangle"],[1,"top","triangle"],[1,"left","triangle"],[1,"right","triangle"]],template:function(n,i){n&1&&(vF(0,"div",0),Cg(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4),xF())},encapsulation:2})}}return e})();var G1i=[{path:"callback",component:uZ},{path:"**",component:b_}],fZ=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e})}static{this.\u0275inj=Hi({imports:[gn.forRoot(G1i,{useHash:!0}),gn]})}}return e})();var hZ=(()=>{class e{http;prefix;suffix;constructor(t,n="/assets/i18n/",i=".json"){this.http=t,this.prefix=n,this.suffix=i}getTranslation(t){return this.http.get(`${this.prefix}${t}${this.suffix}`)}static \u0275fac=function(n){return new(n||e)(hl(ko),hl(String),hl(String))};static \u0275prov=Re({token:e,factory:e.\u0275fac})}return e})();var gZ=(()=>{class e{constructor(){this.authService=T(Ia),this.environment=un,this.FINERACT_PLATFORM_TENANT_IDENTIFIER=un.fineractPlatformTenantId}intercept(t,n){let i=this.authService.getAccessToken(),s={"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":t.headers.get("Content-Type")||"application/json"},u=["/auth/test","/health"].some(_=>t.url.includes(_));i&&!u&&(s.Authorization=`Bearer ${i}`);let f=t.clone({setHeaders:s});return n.handle(f).pipe(ug(_=>_ instanceof FF&&_.status===401&&!u?af(this.handle401Error(f,n)):eF(()=>_)))}handle401Error(t,n){return qn(this,null,function*(){try{yield this.authService.refreshToken();let i=this.authService.getAccessToken();if(i){let s=t.clone({setHeaders:{Authorization:`Bearer ${i}`,"Fineract-Platform-TenantId":this.FINERACT_PLATFORM_TENANT_IDENTIFIER,"Content-Type":t.headers.get("Content-Type")||"application/json"}});return n.handle(s).toPromise()}else throw new Error("No new access token obtained after refresh")}catch(i){throw console.error("Error in handle401Error, forcing logout"),i}})}static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275prov=Re({token:e,factory:e.\u0275fac})}}return e})();var zO=class{handle(o){return o.key.replace("labels.catalogs.","")}};var _Z=(()=>{class e{static{this.\u0275fac=function(n){return new(n||e)}}static{this.\u0275mod=Gi({type:e,bootstrap:[Q8]})}static{this.\u0275inj=Hi({providers:[bg,Ia,{provide:bp,useClass:un.OIDC.oidcServerEnabled?gZ:cf,multi:!0}],imports:[yp.forRoot({loader:{provide:HF,useFactory:(t,n)=>{let i=new ko(t);return new hZ(i,"/assets/translations/",".json")},deps:[AF,TF]},missingTranslationHandler:{provide:GF,useClass:zO}}),wg,v_,Ag,oB,v9,b9,rZ,S9,P9,Z9,QX,nN,lN,yN,YK,aX,MX,qX,GX,ZX,KX,oZ,mZ,dZ,fZ,b_]})}}return e})();un.production&&void 0;OF().bootstrapModule(_Z).catch(e=>console.log(e)); diff --git a/browser/recurring-deposits.module-WSJHPYGD.js b/browser/recurring-deposits.module-TS72WU3A.js similarity index 99% rename from browser/recurring-deposits.module-WSJHPYGD.js rename to browser/recurring-deposits.module-TS72WU3A.js index 2fad73f95..d5ab81fa2 100644 --- a/browser/recurring-deposits.module-WSJHPYGD.js +++ b/browser/recurring-deposits.module-TS72WU3A.js @@ -1 +1 @@ -import{a as Tn,b as Sn}from"./chunk-LTHWICVL.js";import{a as si}from"./chunk-SKSBMOXL.js";import{$d as ce,$f as ni,Ad as Kn,Bc as Vn,Bd as et,Bg as ci,Cc as qn,Cd as gt,Cf as Jn,Da as v,Db as Ge,Dc as Xt,Df as Xn,Ea as P,Eb as Se,Ec as Gn,Ef as Zn,Fb as I,Fc as Hn,Fd as ht,G as At,Ga as y,Gc as Un,Gd as nt,H as Ne,Hc as $n,Hd as Lt,Ia as T,Id as Ct,Ja as f,Jd as yt,Jg as Ee,K as _,Kg as pi,L as S,Lc as Ie,Ld as Ot,M,Mc as w,Na as Pt,Nd as oe,Oa as Tt,Ob as Jt,Od as xt,Pa as St,Pd as Dt,Qa as E,Qd as bt,Qe as Qn,Rb as Fn,Rc as X,Rd as He,Sc as $,Sd as It,T as Yt,Td as Rt,Ua as o,Ud as re,Uf as ti,Va as m,Wa as u,Wc as mt,Xa as A,Xc as q,Xd as _t,Ya as ae,Yc as Z,Zb as Me,Zc as ot,Ze as We,Zf as ei,_ as En,_b as Ae,_d as Ce,_e as Yn,_f as Wt,ac as ee,ad as tt,ag as Xe,bb as Mt,bc as ne,bf as Ke,bg as ii,ca as n,cc as ye,cd as rt,cf as Qe,da as Ve,dd as Re,de as Ue,df as Ye,eb as K,ed as zn,ef as Je,fb as ge,fd as ct,ff as Zt,fg as pe,ge as $e,gf as jt,hb as r,hc as N,he as ze,hf as wt,ib as c,ic as kn,id as pt,ie as Le,if as Et,ja as O,jb as B,jf as Bt,ka as qe,kc as W,lb as U,lc as Q,ld as dt,lf as Ft,mc as Nn,mf as kt,na as h,nc as Pn,ne as je,of as Nt,pa as De,pb as Bn,pd as st,pf as Vt,pg as ai,qb as be,qc as Oe,qg as Ze,ra as x,rc as V,rd as R,rf as qt,rg as we,sa as D,sb as ve,sd as Y,sf as Gt,ta as z,tb as Pe,td as Ln,ua as L,ud as jn,uf as Ht,ug as oi,va as j,vd as ut,wa as d,xa as a,xd as ft,xf as _e,ya as i,yd as Wn,za as C,zb as Te,zg as ri}from"./chunk-AA5NALQN.js";import{a as F,b as J}from"./chunk-PHUH23IY.js";var k=(()=>{class t{constructor(){this.http=_(Fn)}getRecurringDepositsAccountData(e){let l=new Jt().set("associations","all");return this.http.get(`/recurringdepositaccounts/${e}`,{params:l})}getStandingInstructions(e,l,p,g,b){let G=new Jt().set("clientId",e).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",g).set("dateFormat",b);return this.http.get("/standinginstructions",{params:G})}getRecurringDepositsAccountTemplate(e,l){let p=new Jt().set("clientId",e);return p=l?p.set("productId",l):p,this.http.get("/recurringdepositaccounts/template",{params:p})}createRecurringDepositAccount(e){return this.http.post("/recurringdepositaccounts",e)}executeRecurringDepositsAccountCommand(e,l,p){let g=new Jt().set("command",l);return l==="deposit"||l==="withdrawal"?this.http.post(`/recurringdepositaccounts/${e}/transactions`,p,{params:g}):this.http.post(`/recurringdepositaccounts/${e}`,p,{params:g})}deleteRecurringDepositsAccount(e){return this.http.delete(`/recurringdepositaccounts/${e}`)}getRecurringDepositsAccountAndTemplate(e){let l=new Jt().set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${e}`,{params:l})}updateRecurringDepositAccount(e,l){return this.http.put(`/recurringdepositaccounts/${e}`,l)}getRecurringDepositAccountActionResource(e,l){let p=new Jt().set("command",l);return this.http.get(`/recurringdepositaccounts/${e}/template`,{params:p})}getRecurringDepositAccountTransactionTemplateResource(e,l){let p=new Jt().set("command",l);return this.http.get(`/recurringdepositaccounts/${e}/transactions/template`,{params:p})}getRecurringDepositsAccountTransaction(e,l){return this.http.get(`/recurringdepositaccounts/${e}/transactions/${l}`)}getRecurringDepositsAccountTransactionTemplate(e,l){let p=new Jt().set("template","true");return this.http.get(`/recurringdepositaccounts/${e}/transactions/${l}`,{params:p})}executeRecurringDepositsAccountTransactionsCommand(e,l,p,g){let b=new Jt().set("command",l);return this.http.post(`/recurringdepositaccounts/${e}/transactions/${g}`,p,{params:b})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tn=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Deposit",icon:"fa fa-arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawal",icon:"fa fa-arrow-down",taskPermissionName:"WITHDRAWAL_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"fa fa-arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Undo Activation",icon:"fa fa-undo",taskPermissionName:"UNDO_ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"fa fa-check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"fa fa-check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"fa fa-money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by Client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}addButton(s){this.buttonsArray.push(s)}};var di=()=>({confirm:!0}),Kt=(()=>{class t{constructor(){this.dialogRef=_(Vn),this.data=_(qn)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:12,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(l,p){l&1&&(a(0,"h1",0),o(1),i(),a(2,"div",1)(3,"p"),o(4),i()(),a(5,"mat-dialog-actions",2)(6,"button",3),o(7),r(8,"translate"),i(),a(9,"button",4),o(10),r(11,"translate"),i()()),l&2&&(n(),m(p.data.heading),n(3),m(p.data.dialogContext),n(3),m(c(8,5,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",K(9,di)),n(),u(" ",c(11,7,"labels.buttons.Confirm")," "))},dependencies:[I,R,V,Hn,Un,$n,Gn,w],encapsulation:2})}}return t})();var ui=()=>["./general"],gi=()=>["./interest-rate-chart"],Ci=()=>["./charges"],_i=()=>["./transactions"],fi=()=>["./standing-instructions-tab"],hi=t=>["./datatables",t];function xi(t,s){if(t&1&&(a(0,"span",20),C(1,"mifosx-account-number",18),i()),t&2){let e=f();n(),d("accountNo",Mt(e.recurringDepositsAccountData.clientAccountNo))}}function Di(t,s){if(t&1&&(a(0,"div",21)(1,"h3"),o(2),r(3,"translate"),i(),a(4,"table",19)(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td",30),o(11),r(12,"currency"),i()(),a(13,"tr")(14,"td"),o(15),r(16,"translate"),i(),a(17,"td",30),o(18),r(19,"currency"),i()(),a(20,"tr")(21,"td"),o(22),r(23,"translate"),i(),a(24,"td",30),o(25),r(26,"number"),i()()()()()),t&2){let e=f();n(2),m(c(3,7,"labels.heading.Account Overview")),n(6),m(c(9,9,"labels.inputs.Current Balance")),n(3),u(" ",U(12,11,e.recurringDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),m(c(16,16,"labels.inputs.Deposit Amount")),n(3),u(" ",U(19,18,e.recurringDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),m(c(23,23,"labels.inputs.Deposit Period")),n(3),m(c(26,25,e.recurringDepositsAccountData.depositPeriod))}}function bi(t,s){if(t&1){let e=y();a(0,"button",32),T("click",function(){S(e);let p=f().$implicit,g=f();return M(g.doAction(p.name))}),C(1,"i",33),o(2),r(3,"translate"),i()}if(t&2){let e=f().$implicit;n(),d("ngClass",Mt(e.icon)),n(),u(" ",c(3,3,"labels.menus."+e.name)," ")}}function vi(t,s){if(t&1&&h(0,bi,4,5,"button",31),t&2){let e=s.$implicit;d("mifosxHasPermission",e.taskPermissionName)}}function Pi(t,s){if(t&1){let e=y();a(0,"button",32),T("click",function(){S(e);let p=f().$implicit,g=f(2);return M(g.doAction(p.name))}),o(1),r(2,"translate"),i()}if(t&2){let e=f().$implicit;n(),u(" ",c(2,1,"labels.menus."+e.name)," ")}}function Ti(t,s){if(t&1&&(a(0,"span"),h(1,Pi,3,3,"button",31),i()),t&2){let e=s.$implicit;n(),d("mifosxHasPermission",e.taskPermissionName)}}function Si(t,s){if(t&1&&(a(0,"button",34),o(1),r(2,"translate"),i(),a(3,"mat-menu",null,5),L(5,Ti,2,1,"span",null,z),i()),t&2){let e=E(4),l=f();d("matMenuTriggerFor",e),n(),m(c(2,2,"labels.menus.More")),n(4),j(l.buttonConfig.options)}}function Mi(t,s){if(t&1&&(a(0,"a",29,6),o(2),r(3,"translate"),i()),t&2){let e=E(1);d("routerLink",K(5,_i))("active",e.isActive),n(2),u(" ",c(3,3,"labels.inputs.Transactions")," ")}}function Ai(t,s){if(t&1&&(a(0,"a",29,7),o(2),r(3,"translate"),i()),t&2){let e=E(1);d("routerLink",K(5,fi))("active",e.isActive),n(2),u(" ",c(3,3,"labels.inputs.Standing Instructions")," ")}}function yi(t,s){if(t&1&&(a(0,"a",29,8),o(2),i()),t&2){let e=E(1),l=f().$implicit;d("routerLink",ge(3,hi,l.registeredTableName))("active",e.isActive),n(2),u(" ",l.registeredTableName," ")}}function Oi(t,s){if(t&1&&h(0,yi,3,5,"a",35),t&2){let e=s.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}var en=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.recurringDepositsService=_(k),this.savingsService=_(pe),this.dialog=_(Xt),this.translateService=_(Ie),this.showTransactions=!1,this.route.data.subscribe(e=>{this.recurringDepositsAccountData=e.recurringDepositsAccountData,this.charges=this.recurringDepositsAccountData.charges,this.savingsDatatables=e.savingsDatatables,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=e.recurringDepositsAccountData.maturityDate!=null,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center");let l=e.recurringDepositsAccountData.status;this.showTransactions=l.id>=300})}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){let e=this.recurringDepositsAccountData.status.value;this.buttonConfig=new tn(e),this.recurringDepositsAccountData.clientId&&this.recurringDepositsAccountData.status.value==="Matured"&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.recurringDepositsAccountData.charges&&this.recurringDepositsAccountData.status.value==="Matured"&&this.charges.forEach(l=>{l.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.recurringDepositsAccountData.clientId&&this.recurringDepositsAccountData.status.value==="Active"&&(this.recurringDepositsAccountData.allowWithdrawal===!0&&this.buttonConfig.addOption({name:"Withdrawal",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.charges&&this.charges.forEach(l=>{l.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.isprematureAllowed||this.buttonConfig.addButton({name:"Close",icon:"arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.taxGroup&&(this.recurringDepositsAccountData.withHoldTax?this.buttonConfig.addOption({name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}):this.buttonConfig.addOption({name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"})))}reload(){let e=this.recurringDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/recurring-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}doAction(e){switch(e){case"Activate":case"Undo Activation":case"Approve":case"Reject":case"Undo Approval":case"Add Charge":case"Withdrawn by Client":case"Premature Close":case"Close":case"Deposit":case"Withdrawal":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit-recurring-deposit-account"],{relativeTo:this.route});break;case"Delete":this.deleteRecurringDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break}}deleteRecurringDepositsAccount(){this.dialog.open(ce,{data:{deleteContext:`Recurring deposit account with id: ${this.recurringDepositsAccountData.id}`}}).afterClosed().subscribe(l=>{l.delete&&this.recurringDepositsService.deleteRecurringDepositsAccount(this.recurringDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Calculate Interest"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to calculate interest ?")}}).afterClosed().subscribe(l=>{l.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Post Interest"),dialogContext:this.translateService.instant("labels.text.Are you sure you want to post interest")+" ?"}}).afterClosed().subscribe(l=>{l.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Enable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Enable withhold tax for this account ?")}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Disable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Disable withhold tax for this account ?")}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-view"]],decls:53,vars:47,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],["tabPanel",""],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],[1,"m-l-10"],[1,"flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],[3,"ngClass"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(l,p){if(l&1&&(a(0,"mat-card",9)(1,"mat-card-header",10)(2,"mat-card-title-group",11)(3,"div",12)(4,"div"),C(5,"img",13),r(6,"translate"),i()(),a(7,"div",14)(8,"mat-card-title")(9,"div",15)(10,"div",16)(11,"h3"),C(12,"i",17),r(13,"statusLookup"),o(14),r(15,"translate"),C(16,"mifosx-account-number",18),i(),a(17,"span",19),o(18),r(19,"translate"),r(20,"translate"),x(21,xi,2,2,"span",20),i()(),x(22,Di,27,27,"div",21),a(23,"div",22)(24,"button",23)(25,"mat-icon",24),C(26,"fa-icon",25),i()()()()()(),a(27,"mat-menu",null,0),L(29,vi,1,1,"button",26,z),x(31,Si,7,4),i()()(),a(32,"mat-card-content",27)(33,"nav",28)(34,"a",29,1),o(36),r(37,"translate"),i(),a(38,"a",29,2),o(40),r(41,"translate"),i(),x(42,Mi,4,6,"a",29),a(43,"a",29,3),o(45),r(46,"translate"),i(),x(47,Ai,4,6,"a",29),L(48,Oi,1,1,"a",29,z),i(),a(50,"mat-tab-nav-panel",null,4),C(52,"router-outlet"),i()()()),l&2){let g=E(28),b=E(35),G=E(39),ue=E(44),ie=E(51);n(5),d("matTooltip",Mt(c(6,28,"tooltips.Recurring Deposits Account")))("src","assets/images/recurring-deposits_account_placeholder.png",En),n(7),d("ngClass",c(13,30,p.recurringDepositsAccountData.status.code))("matTooltip",p.recurringDepositsAccountData.status.value),n(2),A(" ",c(15,32,"labels.inputs.Recurring Deposit")," : ",p.recurringDepositsAccountData.depositProductName," "),n(2),d("accountNo",Mt(p.recurringDepositsAccountData.accountNo)),n(2),ae(" ",c(19,34,"labels.text."+p.entityType)," ",c(20,36,"labels.inputs.name"),": ",p.recurringDepositsAccountData.clientName||p.recurringDepositsAccountData.groupName," "),n(3),D(p.recurringDepositsAccountData.clientAccountNo?21:-1),n(),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?22:-1),n(2),d("matMenuTriggerFor",g),n(5),j(p.buttonConfig.singleButtons),n(2),D(p.buttonConfig.options.length?31:-1),n(2),d("tabPanel",ie),n(),d("routerLink",K(44,ui))("active",b.isActive),n(2),u(" ",c(37,38,"labels.inputs.General")," "),n(2),d("routerLink",K(45,gi))("active",G.isActive),n(2),u(" ",c(41,40,"labels.inputs.Interest Rate Chart")," "),n(2),D(p.showTransactions?42:-1),n(),d("routerLink",K(46,Ci))("active",ue.isActive),n(2),u(" ",c(46,42,"labels.inputs.Charges")," "),n(2),D(p.recurringDepositsAccountData.clientId?47:-1),n(),j(p.savingsDatatables)}},dependencies:[I,be,R,Q,Y,ut,re,Wn,jn,Kn,oe,Ln,ri,Oe,Le,je,_t,ze,$e,Jn,Xn,Nn,Zn,kn,Ge,Se,w,ni],encapsulation:2})}}return t})();function Ii(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Period")))}function Ri(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),ae(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",B(2,3,e.periodType.value,"catalogs")," ")}}function wi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount Range")))}function Ei(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"formatNumber"),r(3,"formatNumber"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function Bi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Fi(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u("",c(2,1,e.annualInterestRate)," %")}}function ki(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Description")))}function Ni(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),m(e.description)}}function Vi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function qi(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",21),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function Gi(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",22),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Hi(t,s){if(t&1){let e=y();a(0,"td",18)(1,"button",19),T("click",function(){let p=S(e).dataIndex,g=f();return M(g.expandChartSlabIndex=g.expandChartSlabIndex===p?null:p)}),h(2,qi,4,3,"span",20)(3,Gi,4,3,"span",20),i()()}if(t&2){let e=s.dataIndex,l=f();n(2),d("ngIf",l.expandChartSlabIndex!==e),n(),d("ngIf",l.expandChartSlabIndex===e)}}function Ui(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Entity Type")))}function $i(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.entityType.value," ")}}function zi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Name")))}function Li(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.attributeName.value," ")}}function ji(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Condition Type")))}function Wi(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"titlecase"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.conditionType.value)," ")}}function Ki(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Value")))}function Qi(t,s){if(t&1&&(a(0,"td",35),o(1),i()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),n(),u(" ",e.attributeValueDesc," ")}}function Yi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Incentive Type")))}function Ji(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.incentiveType.value," ")}}function Xi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Zi(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function ta(t,s){t&1&&C(0,"tr",36)}function ea(t,s){t&1&&C(0,"tr",37)}function na(t,s){if(t&1&&(a(0,"table",27),v(1,28),h(2,Ui,3,3,"th",7)(3,$i,2,1,"td",8),P(),v(4,29),h(5,zi,3,3,"th",7)(6,Li,2,1,"td",8),P(),v(7,30),h(8,ji,3,3,"th",7)(9,Wi,3,3,"td",8),P(),v(10,31),h(11,Ki,3,3,"th",7)(12,Qi,2,2,"td",32),P(),v(13,33),h(14,Yi,3,3,"th",7)(15,Ji,2,1,"td",8),P(),v(16,34),h(17,Xi,3,3,"th",7)(18,Zi,3,3,"td",8),P(),h(19,ta,1,0,"tr",14)(20,ea,1,0,"tr",15),i()),t&2){let e=f().$implicit,l=f();d("dataSource",e.incentives),n(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),n(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function ia(t,s){if(t&1&&(a(0,"td",18)(1,"div",23)(2,"mat-card",24)(3,"h4",25),o(4),r(5,"translate"),i(),h(6,na,21,3,"table",26),i()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=f();De("colspan",p.chartSlabsDisplayedColumns.length),n(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),n(3),u(" ",c(5,4,"labels.heading.Incentives")," "),n(2),d("ngIf",e.incentives==null?null:e.incentives.length)}}function aa(t,s){t&1&&C(0,"tr",36)}function oa(t,s){t&1&&C(0,"tr",37)}function ra(t,s){t&1&&C(0,"tr",38)}var nn=(()=>{class t{constructor(){this.route=_(N),this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(e=>{this.interestRateChartData=e.recurringDepositsAccountData.accountChart.chartSlabs})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-interest-rate-chart-tab"]],decls:29,vars:7,consts:[["chartsTable",""],[1,"tab-container","mat-typography"],[1,"align-start"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-fill","incentives"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","flex-fill mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),o(4),r(5,"translate"),i()()(),a(6,"div",4)(7,"table",5,0),v(9,6),h(10,Ii,3,3,"th",7)(11,Ri,3,6,"td",8),P(),v(12,9),h(13,wi,3,3,"th",7)(14,Ei,4,6,"td",8),P(),v(15,10),h(16,Bi,3,3,"th",7)(17,Fi,3,3,"td",8),P(),v(18,11),h(19,ki,3,3,"th",7)(20,Ni,2,1,"td",8),P(),v(21,12),h(22,Vi,3,3,"th",7)(23,Hi,4,2,"td",8),P(),v(24,13),h(25,ia,7,6,"td",8),P(),h(26,aa,1,0,"tr",14)(27,oa,1,0,"tr",15)(28,ra,1,0,"tr",16),i()()()),l&2&&(n(4),m(c(5,5,"labels.heading.All Interest Rates")),n(3),d("dataSource",p.interestRateChartData),n(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns))},dependencies:[I,ve,Pe,R,Y,V,wt,Ft,Bt,kt,Et,Nt,_t,Vt,Gt,qt,Ht,Te,w,Rt,Wt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Me("expandChartSlab",[ne("collapsed",ee({height:"0px",minHeight:"0"})),ne("expanded",ee({height:"*"})),ye("expanded <=> collapsed",Ae("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var pa=t=>["/","journal-entry","view",t];function sa(t,s){if(t&1){let e=y();a(0,"div",5)(1,"mat-checkbox",23),T("click",function(){S(e);let p=f();return M(p.hideReversed())}),o(2),r(3,"translate"),i(),a(4,"mat-checkbox",23),T("click",function(){S(e);let p=f();return M(p.hideAccruals())}),o(5),r(6,"translate"),i()()}if(t&2){let e=f();n(),d("formControl",e.hideReversedParam),n(),u(" ",c(3,4,"labels.inputs.Hide Reversed")),n(2),d("formControl",e.hideAccrualsParam),n(),u(" ",c(6,6,"labels.inputs.Hide Accruals"))}}function la(t,s){t&1&&(a(0,"th",24),o(1,"#"),i())}function ma(t,s){if(t&1){let e=y();a(0,"td",25),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.index;n(),u(" ",e+1," ")}}function da(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.ID")))}function ua(t,s){if(t&1){let e=y();a(0,"td",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",e.id," ")}}function ga(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Transaction Date")))}function Ca(t,s){if(t&1){let e=y();a(0,"td",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),r(2,"dateFormat"),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",c(2,2,e.date)," ")}}function _a(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Transaction Type")))}function fa(t,s){if(t&1){let e=y();a(0,"td",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",e.transactionType.value," ")}}function ha(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Debit")))}function xa(t,s){if(t&1){let e=y();a(0,"td",28),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",l.isDebit(e.transactionType)?e.amount:"N/A"," ")}}function Da(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Credit")))}function ba(t,s){if(t&1){let e=y();a(0,"td",28),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",l.isDebit(e.transactionType)?"N/A":e.amount," ")}}function va(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Balance")))}function Pa(t,s){if(t&1){let e=y();a(0,"td",28),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),r(2,"formatNumber"),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",c(2,2,e.runningBalance)," ")}}function Ta(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function Sa(t,s){if(t&1){let e=y();a(0,"td",29)(1,"button",30)(2,"mat-icon"),o(3,"more_vert"),i()(),a(4,"mat-menu",null,0)(6,"button",31),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),a(7,"mat-icon"),C(8,"fa-icon",32),i(),a(9,"span"),o(10),r(11,"translate"),i()(),a(12,"button",33),T("click",function(p){S(e);let g=f();return M(g.routeEdit(p))}),a(13,"mat-icon"),C(14,"fa-icon",34),i(),a(15,"span"),o(16),r(17,"translate"),i()()()()}if(t&2){let e=s.$implicit,l=E(5);n(),d("matMenuTriggerFor",l),n(9),m(c(11,4,"labels.text.View Transaction")),n(2),d("routerLink",ge(8,pa,"S"+e.id)),n(4),m(c(17,6,"tooltips.View Journal Entries"))}}function Ma(t,s){t&1&&C(0,"tr",35)}function Aa(t,s){t&1&&C(0,"tr",36)}var an=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.displayedColumns=["row","id","transactionDate","transactionType","debit","credit","balance","actions"],this.route.parent.data.subscribe(e=>{this.transactionsData=e.recurringDepositsAccountData.transactions,this.status=e.recurringDepositsAccountData.status.value})}ngOnInit(){this.dataSource=new _e(this.transactionsData),this.hideAccrualsParam=new tt(!1),this.hideReversedParam=new tt(!1)}isDebit(e){return e.withdrawal===!0||e.feeDeduction===!0||e.overdraftInterest===!0||e.withholdTax===!0}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,!this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(!this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,l){let p=this.transactionsData;(l||e)&&(p=this.transactionsData.filter(g=>!(e&&g.reversed)&&!(l&&g.transactionType.accrual))),this.dataSource=new _e(p),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}checkStatus(){return this.status==="Active"||this.status==="Closed"||this.status==="Transfer in progress"||this.status==="Transfer on hold"||this.status==="Premature Closed"||this.status==="Matured"}showTransactions(e){e.transfer?this.router.navigate([`../transfer-funds/account-transfers/${e.transfer.id}`],{relativeTo:this.route}):this.router.navigate([e.id],{relativeTo:this.route})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(l,p){if(l&1&&(Pt(Qn,7),Pt(Yn,7)),l&2){let g;Tt(g=St())&&(p.paginator=g.first),Tt(g=St())&&(p.sort=g.first)}},decls:35,vars:7,consts:[["transactionMenu","matMenu"],[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25"],[1,"layout-row","align-start"],[1,"m-b-20"],[1,"action-button","m-b-20","layout-row","gap-20px"],["mat-table","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",3,"ngClass","click",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],[1,"accruals",3,"click","formControl"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-cell","",3,"click","ngClass"],["mat-header-cell","",1,"center"],["mat-cell","",1,"r-amount",3,"click","ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",3,"click","routerLink"],["icon","table-cells","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h3"),o(5),r(6,"translate"),i()(),x(7,sa,7,8,"div",5),i(),a(8,"table",6),v(9,7),h(10,la,2,0,"th",8)(11,ma,2,1,"td",9),P(),v(12,10),h(13,da,3,3,"th",8)(14,ua,2,2,"td",11),P(),v(15,12),h(16,ga,3,3,"th",8)(17,Ca,3,4,"td",11),P(),v(18,13),h(19,_a,3,3,"th",8)(20,fa,2,2,"td",11),P(),v(21,14),h(22,ha,3,3,"th",15)(23,xa,2,2,"td",16),P(),v(24,17),h(25,Da,3,3,"th",15)(26,ba,2,2,"td",16),P(),v(27,18),h(28,va,3,3,"th",15)(29,Pa,3,4,"td",16),P(),v(30,19),h(31,Ta,3,3,"th",8)(32,Sa,18,10,"td",20),P(),h(33,Ma,1,0,"tr",21)(34,Aa,1,0,"tr",22),i()()()),l&2&&(n(5),m(c(6,5,"labels.heading.All Transactions")),n(2),D(p.checkStatus()?7:-1),n(),d("dataSource",p.dataSource),n(25),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns))},dependencies:[I,be,R,Z,zn,Q,He,wt,Ft,Bt,kt,Et,Nt,Oe,Le,je,ze,$e,_t,Vt,Gt,qt,Ht,It,w,Wt],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:800}"]})}}return t})();var ya=["instructionsTable"],Oa=t=>["../","standing-instructions",t,"edit"],Ia=t=>["../","standing-instructions",t,"view"];function Ra(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Client")))}function wa(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function Ea(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.From Account")))}function Ba(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function Fa(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Beneficiary")))}function ka(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),m(e.toClient.displayName)}}function Na(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.To Account")))}function Va(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function qa(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount")))}function Ga(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.instructionType.value,"/",e.amount)}}function Ha(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Validity")))}function Ua(t,s){if(t&1&&(a(0,"td",17),o(1),r(2,"dateFormat"),r(3,"dateFormat"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.validFrom)," to ",c(3,4,e.validTill)," ")}}function $a(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function za(t,s){if(t&1&&(a(0,"button",19),r(1,"translate"),C(2,"i",20),i()),t&2){let e=f(2).$implicit;d("matTooltip",Mt(c(1,3,"tooltips.Edit Standing Instruction")))("routerLink",ge(5,Oa,e.id))}}function La(t,s){t&1&&(a(0,"span"),h(1,za,3,7,"button",18),i()),t&2&&(n(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function ja(t,s){if(t&1){let e=y();a(0,"button",22),r(1,"translate"),T("click",function(){S(e);let p=f(2).$implicit,g=f();return M(g.deleteStandingInstruction(p.id))}),C(2,"i",23),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Delete Standing Instruction")))}function Wa(t,s){t&1&&(a(0,"span"),h(1,ja,3,4,"button",21),i()),t&2&&(n(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function Ka(t,s){if(t&1&&(a(0,"button",19),r(1,"translate"),C(2,"i",24),i()),t&2){let e=f().$implicit;d("matTooltip",Mt(c(1,3,"tooltips.View Standing Instruction")))("routerLink",ge(5,Ia,e.id))}}function Qa(t,s){if(t&1&&(a(0,"td",17),x(1,La,2,1,"span"),x(2,Wa,2,1,"span"),h(3,Ka,3,7,"button",18),i()),t&2){let e=s.$implicit;n(),D(e.status.value!=="Deleted"?1:-1),n(),D(e.status.value!=="Deleted"?2:-1),n(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Ya(t,s){t&1&&C(0,"tr",25)}function Ja(t,s){t&1&&C(0,"tr",26)}var on=(()=>{class t{constructor(){this.route=_(N),this.recurringDepositsService=_(k),this.dialog=_(Xt),this.accountTransfersService=_(si),this.settingsService=_($),this.dataSource=new _e,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.recurringDepositsData=e.recurringDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.recurringDepositsData.clientId,l=this.recurringDepositsData.clientName,p=this.recurringDepositsData.id,g=this.settingsService.language.code,b=this.settingsService.dateFormat;this.recurringDepositsService.getStandingInstructions(e,l,p,g,b).subscribe(G=>{this.instructionsData=G.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ce,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(l,p){if(l&1&&Pt(ya,7),l&2){let g;Tt(g=St())&&(p.instructionTableRef=g.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip","routerLink"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"h3"),o(3),r(4,"translate"),i()(),a(5,"div",3)(6,"table",4,0),v(8,5),h(9,Ra,3,3,"th",6)(10,wa,2,2,"td",7),P(),v(11,8),h(12,Ea,3,3,"th",6)(13,Ba,2,2,"td",7),P(),v(14,9),h(15,Fa,3,3,"th",6)(16,ka,2,1,"td",7),P(),v(17,10),h(18,Na,3,3,"th",6)(19,Va,2,2,"td",7),P(),v(20,11),h(21,qa,3,3,"th",6)(22,Ga,2,2,"td",7),P(),v(23,12),h(24,Ha,3,3,"th",6)(25,Ua,4,6,"td",7),P(),v(26,13),h(27,$a,3,3,"th",6)(28,Qa,4,3,"td",7),P(),h(29,Ya,1,0,"tr",14)(30,Ja,1,0,"tr",15),i()()()),l&2&&(n(3),m(c(4,4,"labels.heading.All Standing Instructions")),n(3),d("dataSource",p.dataSource),n(23),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns))},dependencies:[I,R,Q,V,re,wt,Ft,Bt,kt,Et,Nt,oe,Vt,Gt,qt,Ht,It,w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var Xa=["chargesTable"],Za=()=>[2e3];function to(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.name")))}function eo(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.name)}}function no(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Fee/Penalty")))}function io(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.penalty===!0?"Penalty":"Fee")}}function ao(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Payment Due At")))}function oo(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.chargeTimeType.value)}}function ro(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Due As Of")))}function co(t,s){if(t&1&&(a(0,"td",22),o(1),r(2,"dateFormat"),i()),t&2){let e=s.$implicit;n(),m(c(2,1,e.dueDate))}}function po(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Repeats On")))}function so(t,s){if(t&1&&(a(0,"td",22),o(1),r(2,"dateFormat"),i()),t&2){let e=s.$implicit;n(),u(" ",e.feeOnMonthDay?B(2,1,K(4,Za).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function lo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Calculation Type")))}function mo(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.chargeCalculationType.value)}}function uo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Due")))}function go(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.currency.displaySymbol,"\xA0",e.amount)}}function Co(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Paid")))}function _o(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.currency.displaySymbol,"\xA0",e.amountPaid)}}function fo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Waived")))}function ho(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.currency.displaySymbol,"\xA0",e.amountWaived)}}function xo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Outstanding")))}function Do(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.currency.displaySymbol,"\xA0",e.amountOutstanding," ")}}function bo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function vo(t,s){if(t&1){let e=y();a(0,"button",25),r(1,"translate"),T("click",function(p){S(e);let g=f(2).$implicit,b=f();return b.routeEdit(p),M(b.editCharge(g))}),C(2,"i",26),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Edit Charge")))}function Po(t,s){if(t&1){let e=y();a(0,"button",27),r(1,"translate"),T("click",function(p){S(e);let g=f(2).$implicit,b=f();return b.routeEdit(p),M(b.deleteCharge(g.id))}),C(2,"i",28),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Delete Charge")))}function To(t,s){t&1&&(a(0,"span"),h(1,vo,3,4,"button",23)(2,Po,3,4,"button",24),i()),t&2&&(n(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function So(t,s){if(t&1){let e=y();a(0,"button",25),r(1,"translate"),T("click",function(p){S(e);let g=f(3).$implicit,b=f();return b.routeEdit(p),M(b.payCharge(g.id))}),C(2,"i",29),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Pay Charge")))}function Mo(t,s){if(t&1){let e=y();a(0,"button",25),r(1,"translate"),T("click",function(p){S(e);let g=f(3).$implicit,b=f();return b.routeEdit(p),M(b.waiveCharge(g.id))}),C(2,"i",30),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Waive Charge")))}function Ao(t,s){t&1&&(a(0,"span"),h(1,So,3,4,"button",23)(2,Mo,3,4,"button",23),i()),t&2&&(n(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"))}function yo(t,s){if(t&1&&(a(0,"span"),x(1,Ao,3,2,"span"),i()),t&2){let e=f().$implicit;n(),D(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?1:-1)}}function Oo(t,s){if(t&1&&(a(0,"td",22),x(1,To,3,2,"span"),x(2,yo,2,1,"span"),i()),t&2){let e=s.$implicit,l=f();n(),D(l.recurringDepositsAccountData.status.value==="Submitted and pending approval"?1:-1),n(),D(l.recurringDepositsAccountData.status.value!=="Submitted and pending approval"&&e.amountOutstanding!==0?2:-1)}}function Io(t,s){t&1&&C(0,"tr",31)}function Ro(t,s){t&1&&C(0,"tr",32)}var rn=(()=>{class t{constructor(){this.route=_(N),this.savingsService=_(pe),this.dateUtils=_(X),this.router=_(W),this.dialog=_(Xt),this.translateService=_(Ie),this.settingsService=_($),this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(e=>{this.recurringDepositsAccountData=e.recurringDepositsAccountData,this.chargesData=this.recurringDepositsAccountData.charges})}ngOnInit(){let e=this.chargesData?this.chargesData.filter(l=>l.isActive):[];this.dataSource=new _e(e)}payCharge(e){let l=[new we({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new Ze({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],p={title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G=this.settingsService.language.code,ue=this.settingsService.dateFormat,ie=J(F({},b.data.value),{dueDate:this.dateUtils.formatDate(b.data.value.dueDate,ue),dateFormat:ue,locale:G});this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"paycharge",ie,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Waive Charge"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to waive charge with id: ")+`${e} ?`}}).afterClosed().subscribe(p=>{p.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}editCharge(e){let l=[new we({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})],p={title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let ie=J(F({},b.data.value),{dateFormat:"dd MMMM yyyy",locale:"en"});this.savingsService.editSavingsAccountCharge(this.recurringDepositsAccountData.id,ie,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(ce,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.savingsService.deleteSavingsAccountCharge(this.recurringDepositsAccountData.id,e).subscribe(()=>{this.reload()})})}routeEdit(e){e.stopPropagation()}reload(){let e=this.recurringDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/recurring-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(l,p){if(l&1&&Pt(Xa,7),l&2){let g;Tt(g=St())&&(p.chargesTableRef=g.first)}},decls:44,vars:6,consts:[["chargesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),o(4),r(5,"translate"),i()()(),a(6,"div",4)(7,"table",5,0),v(9,6),h(10,to,3,3,"th",7)(11,eo,2,1,"td",8),P(),v(12,9),h(13,no,3,3,"th",7)(14,io,2,1,"td",8),P(),v(15,10),h(16,ao,3,3,"th",7)(17,oo,2,1,"td",8),P(),v(18,11),h(19,ro,3,3,"th",7)(20,co,3,3,"td",8),P(),v(21,12),h(22,po,3,3,"th",7)(23,so,3,5,"td",8),P(),v(24,13),h(25,lo,3,3,"th",7)(26,mo,2,1,"td",8),P(),v(27,14),h(28,uo,3,3,"th",7)(29,go,2,2,"td",8),P(),v(30,15),h(31,Co,3,3,"th",7)(32,_o,2,2,"td",8),P(),v(33,16),h(34,fo,3,3,"th",7)(35,ho,2,2,"td",8),P(),v(36,17),h(37,xo,3,3,"th",7)(38,Do,2,2,"td",8),P(),v(39,18),h(40,bo,3,3,"th",7)(41,Oo,3,2,"td",8),P(),h(42,Io,1,0,"tr",19)(43,Ro,1,0,"tr",20),i()()()),l&2&&(n(4),m(c(5,4,"labels.heading.All Charges")),n(3),d("dataSource",p.dataSource),n(35),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns))},dependencies:[I,R,V,re,wt,Ft,Bt,kt,Et,Nt,oe,Vt,Gt,qt,Ht,It,w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var cn=(()=>{class t{constructor(){this.route=_(N),this.entityId=this.route.parent.parent.snapshot.paramMap.get("recurringDepositAccountId"),this.route.data.subscribe(e=>{this.entityDatatable=e.savingsDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Recurring Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(l,p){l&1&&(a(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),i()),l&2&&(n(),d("entityId",p.entityId)("multiRowDatatableFlag",p.multiRowDatatableFlag)("entityDatatable",p.entityDatatable))},dependencies:[I,R,oi],encapsulation:2})}}return t})();function wo(t,s){if(t&1&&(a(0,"mat-option",5),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function Eo(t,s){if(t&1){let e=y();a(0,"mat-form-field",11),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),a(8,"mat-error"),o(9),r(10,"translate"),r(11,"translate"),a(12,"strong"),o(13),r(14,"translate"),i()()()}if(t&2){let e=E(7),l=f();n(2),m(c(3,8,"labels.inputs.Submitted On")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(4),A(" ",c(10,10,"labels.inputs.Submission Date")," ",c(11,12,"labels.commons.is")," "),n(4),m(c(14,14,"labels.commons.required"))}}function Bo(t,s){if(t&1&&(a(0,"mat-option",5),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.displayName," ")}}function Fo(t,s){if(t&1&&(a(0,"mat-form-field",3)(1,"mat-label"),o(2),r(3,"translate"),i(),a(4,"mat-select",14),L(5,Bo,2,2,"mat-option",5,z),i()()),t&2){let e=f();n(2),m(c(3,1,"labels.inputs.Field Officer")),n(3),j(e.fieldOfficerData)}}function ko(t,s){t&1&&(a(0,"mat-form-field",3)(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",15),r(5,"translate"),i()),t&2&&(n(2),m(c(3,3,"labels.inputs.External id")),n(2),d("matTooltip",Mt(c(5,5,"tooltips.Provides an external id"))))}var se=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.recurringDepositsAccountProductTemplate=new Ve,this.createRecurringDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.recurringDepositsAccountTemplate&&(this.productData=this.recurringDepositsAccountTemplate.productOptions,this.recurringDepositsAccountTemplate.depositProductId&&this.recurringDepositAccountDetailsForm.patchValue({productId:this.recurringDepositsAccountTemplate.depositProductId,submittedOnDate:this.recurringDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.recurringDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.recurringDepositsAccountTemplate.externalId}))}createRecurringDepositsAccountDetailsForm(){this.recurringDepositAccountDetailsForm=this.formBuilder.group({productId:["",q.required],submittedOnDate:["",q.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){let e=this.recurringDepositsAccountTemplate.clientId;this.recurringDepositAccountDetailsForm.get("productId").valueChanges.subscribe(l=>{this.recurringDepositsService.getRecurringDepositsAccountTemplate(e,l).subscribe(p=>{this.recurringDepositsAccountProductTemplate.emit(p),this.fieldOfficerData=p.fieldOfficerOptions,this.isProductSelected=!0,!this.isFieldOfficerPatched&&this.recurringDepositsAccountTemplate.fieldOfficerId?(this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.recurringDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get recurringDepositAccountDetails(){return this.recurringDepositAccountDetailsForm.value}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-details-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate"},outputs:{recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},decls:28,vars:23,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(l,p){if(l&1&&(a(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),o(4),r(5,"translate"),i(),a(6,"mat-select",4),L(7,wo,2,2,"mat-option",5,z),i(),a(9,"mat-error"),o(10),r(11,"translate"),r(12,"translate"),a(13,"strong"),o(14),r(15,"translate"),i()()(),x(16,Eo,15,16,"mat-form-field",3),x(17,Fo,7,3,"mat-form-field",3),x(18,ko,6,7,"mat-form-field",3),i(),a(19,"div",6)(20,"button",7),C(21,"fa-icon",8),o(22),r(23,"translate"),i(),a(24,"button",9),o(25),r(26,"translate"),C(27,"fa-icon",10),i()()()),l&2){let g;d("formGroup",p.recurringDepositAccountDetailsForm),n(4),m(c(5,11,"labels.inputs.Product Name")),n(3),j(p.productData),n(3),A(" ",c(11,13,"labels.inputs.Product Name")," ",c(12,15,"labels.commons.is")," "),n(4),m(c(15,17,"labels.commons.required")),n(2),D(p.isProductSelected?16:-1),n(),D(p.isProductSelected?17:-1),n(),D(p.isProductSelected?18:-1),n(4),u(" ",c(23,19,"labels.buttons.Previous")," "),n(2),d("disabled",!((g=p.recurringDepositAccountDetailsForm.get("productId"))!=null&&g.value)||!((g=p.recurringDepositAccountDetailsForm.get("submittedOnDate"))!=null&&g.value)),n(),u(" ",c(26,21,"labels.buttons.Next")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,oe,jt,_t,Zt,w],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function No(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Vo(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function qo(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Go(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}var le=(()=>{class t{constructor(){this.formBuilder=_(st),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createRecurringDepositsAccountTermsForm()}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&this.setOptions()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate.id&&this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountTemplate.interestCalculationDaysInYearType.id})}createRecurringDepositsAccountTermsForm(){this.recurringDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",q.required],interestPostingPeriodType:["",q.required],interestCalculationType:["",q.required],interestCalculationDaysInYearType:["",q.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.recurringDepositsAccountTemplate.id||this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearType.id})}get recurringDepositAccountTerms(){return this.recurringDepositAccountTermsForm.value}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-terms-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[Yt],decls:67,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","interestCompoundingPeriodType","required",""],[3,"value"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(l,p){l&1&&(a(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),o(4),r(5,"translate"),i(),a(6,"mat-select",3),L(7,No,3,5,"mat-option",4,z),i(),a(9,"mat-error"),o(10),r(11,"translate"),r(12,"translate"),a(13,"strong"),o(14),r(15,"translate"),i()()(),a(16,"mat-form-field",2)(17,"mat-label"),o(18),r(19,"translate"),i(),a(20,"mat-select",5),L(21,Vo,3,5,"mat-option",4,z),i(),a(23,"mat-error"),o(24),r(25,"translate"),r(26,"translate"),a(27,"strong"),o(28),r(29,"translate"),i()()(),a(30,"mat-form-field",2)(31,"mat-label"),o(32),r(33,"translate"),i(),a(34,"mat-select",6),L(35,qo,3,5,"mat-option",4,z),i(),a(37,"mat-error"),o(38),r(39,"translate"),r(40,"translate"),a(41,"strong"),o(42),r(43,"translate"),i()()(),a(44,"mat-form-field",2)(45,"mat-label"),o(46),r(47,"translate"),i(),a(48,"mat-select",7),L(49,Go,3,5,"mat-option",4,z),i(),a(51,"mat-error"),o(52),r(53,"translate"),r(54,"translate"),a(55,"strong"),o(56),r(57,"translate"),i()()()(),a(58,"div",8)(59,"button",9),C(60,"fa-icon",10),o(61),r(62,"translate"),i(),a(63,"button",11),o(64),r(65,"translate"),C(66,"fa-icon",12),i()()()),l&2&&(d("formGroup",p.recurringDepositAccountTermsForm),n(4),m(c(5,19,"labels.inputs.Interest Compounding Period")),n(3),j(p.interestCompoundingPeriodTypeData),n(3),A(" ",c(11,21,"labels.inputs.Interest Compounding Period")," ",c(12,23,"labels.commons.is")," "),n(4),m(c(15,25,"labels.commons.required")),n(4),m(c(19,27,"labels.inputs.Interest Posting Period")),n(3),j(p.interestPostingPeriodTypeData),n(3),A(" ",c(25,29,"labels.inputs.Interest Posting Period")," ",c(26,31,"labels.commons.is")," "),n(4),m(c(29,33,"labels.commons.required")),n(4),m(c(33,35,"labels.inputs.Interest Calculated using")),n(3),j(p.interestCalculationTypeData),n(3),A(" ",c(39,37,"labels.inputs.Interest Calculated using")," ",c(40,39,"labels.commons.is")," "),n(4),m(c(43,41,"labels.commons.required")),n(4),m(c(47,43,"labels.inputs.Days in Year")),n(3),j(p.interestCalculationDaysInYearTypeData),n(3),A(" ",c(53,45,"labels.inputs.Days in Year")," ",c(54,47,"labels.commons.is")," "),n(4),m(c(57,49,"labels.commons.required")),n(5),u(" ",c(62,51,"labels.buttons.Previous")," "),n(3),u(" ",c(65,53,"labels.buttons.Next")," "))},dependencies:[I,R,rt,Z,ot,dt,ct,pt,nt,et,gt,Ot,yt,V,jt,_t,Zt,w,Rt],encapsulation:2})}}return t})();function Ho(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Uo(t,s){if(t&1&&C(0,"mifosx-input-amount",11),t&2){let e=f();d("currency",e.currency)("isRequired",!0)("inputFormControl",e.recurringDepositAccountSettingsForm.controls.mandatoryRecommendedDepositAmount)("inputLabel","Recurring Deposit Amount")}}function $o(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function zo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Lo(t,s){if(t&1){let e=y();a(0,"mat-form-field",31),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",32)(5,"mat-datepicker-toggle",33)(6,"mat-datepicker",null,0),i(),a(8,"h4",6),o(9),r(10,"translate"),i(),a(11,"mat-form-field",7)(12,"mat-label"),o(13),r(14,"translate"),i(),C(15,"input",34),a(16,"mat-error"),o(17),r(18,"translate"),r(19,"translate"),a(20,"strong"),o(21),r(22,"translate"),i()()(),a(23,"mat-form-field",7)(24,"mat-label"),o(25),r(26,"translate"),i(),a(27,"mat-select",35),L(28,zo,3,5,"mat-option",10,z),i(),a(30,"mat-error"),o(31),r(32,"translate"),r(33,"translate"),a(34,"strong"),o(35),r(36,"translate"),i()()()}if(t&2){let e=E(7),l=f();n(2),m(c(3,14,"labels.inputs.Deposit Start Date")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(4),m(c(10,16,"labels.heading.Deposit Frequency")),n(4),m(c(14,18,"labels.inputs.Deposit Frequency")),n(4),A(" ",c(18,20,"labels.inputs.Deposit Frequency")," ",c(19,22,"labels.commons.is")," "),n(4),m(c(22,24,"labels.commons.required")),n(4),m(c(26,26,"labels.inputs.Type")),n(3),j(l.periodFrequencyTypeData),n(3),A(" ",c(32,28,"labels.inputs.Deposit Frequency Type")," ",c(33,30,"labels.commons.is")," "),n(4),m(c(36,32,"labels.commons.required"))}}function jo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Wo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Ko(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Qo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Yo(t,s){t&1&&(a(0,"mat-form-field",7)(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",37),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Tax Group")))}function Jo(t,s){if(t&1&&(a(0,"h4",6),o(1),r(2,"translate"),i(),a(3,"mat-checkbox",36),o(4),r(5,"translate"),i(),x(6,Yo,5,3,"mat-form-field",7)),t&2){let e=f();n(),m(c(2,3,"labels.heading.Tax Group")),n(3),u(" ",c(5,5,"labels.inputs.Is Withhold Tax Applicable"),"? "),n(2),D(e.recurringDepositAccountSettingsForm.controls.taxGroupId?6:-1)}}var me=(()=>{class t{constructor(){this.formBuilder=_(st),this.settingsService=_($),this.isNew=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.currency=null,this.createRecurringDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){let e=this.isNew?this.recurringDepositsAccountProductTemplate:this.recurringDepositsAccountTemplate;e&&(this.currency=e.currency,this.recurringDepositAccountSettingsForm.patchValue({isMandatoryDeposit:e.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:e.adjustAdvanceTowardsFuturePayments,allowWithdrawal:e.allowWithdrawal,lockinPeriodFrequency:e.lockinPeriodFrequency,lockinPeriodFrequencyType:e.lockinPeriodFrequencyType?e.lockinPeriodFrequencyType.id:"",minDepositTerm:e.minDepositTerm,minDepositTermTypeId:e.minDepositTermType?e.minDepositTermType.id:"",inMultiplesOfDepositTerm:e.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:e.inMultiplesOfDepositTermType?e.inMultiplesOfDepositTermType.id:"",maxDepositTerm:e.maxDepositTerm,maxDepositTermTypeId:e.maxDepositTermType?e.maxDepositTermType.id:"",preClosurePenalApplicable:e.preClosurePenalApplicable,preClosurePenalInterest:e.preClosurePenalInterest,preClosurePenalInterestOnTypeId:e.preClosurePenalInterestOnType?e.preClosurePenalInterestOnType.id:"",minBalanceForInterestCalculation:e.minBalanceForInterestCalculation,depositPeriod:e.minDepositTerm,depositPeriodFrequencyId:e.minDepositTermType.id,expectedFirstDepositOnDate:e.expectedFirstDepositOnDate&&new Date(e.expectedFirstDepositOnDate),recurringFrequency:e.recurringFrequency,recurringFrequencyType:e.recurringFrequencyType?e.recurringFrequencyType.id:""}),e.withHoldTax?(this.recurringDepositAccountSettingsForm.addControl("withHoldTax",new tt(!1)),this.recurringDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(l=>{l?(this.recurringDepositAccountSettingsForm.addControl("taxGroupId",new tt({value:"",disabled:!0})),this.recurringDepositAccountSettingsForm.get("taxGroupId").patchValue(e.taxGroup&&e.taxGroup.name)):this.recurringDepositAccountSettingsForm.removeControl("taxGroupId")}),this.recurringDepositAccountSettingsForm.get("withHoldTax").patchValue(this.recurringDepositsAccountTemplate.withHoldTax)):this.recurringDepositAccountSettingsForm.removeControl("withHoldTax"),this.taxGroup=e.taxGroup,this.setOptions(e))}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate&&this.recurringDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.recurringDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType&&this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType.id,mandatoryRecommendedDepositAmount:this.recurringDepositsAccountTemplate.mandatoryRecommendedDepositAmount})}createRecurringDepositAccountSettingsForm(){this.recurringDepositAccountSettingsForm=this.formBuilder.group({isMandatoryDeposit:[""],adjustAdvanceTowardsFuturePayments:[""],allowWithdrawal:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],mandatoryRecommendedDepositAmount:["",q.required],depositPeriod:["",q.required],depositPeriodFrequencyId:["",q.required],isCalendarInherited:[""],expectedFirstDepositOnDate:[""],recurringFrequency:["",q.required],recurringFrequencyType:["",q.required],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(e){this.lockinPeriodFrequencyTypeData=e.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=e.periodFrequencyTypeOptions,this.preClosurePenalInterestOnTypeData=e.preClosurePenalInterestOnTypeOptions}buildDependencies(){this.recurringDepositAccountSettingsForm.get("isCalendarInherited").valueChanges.subscribe(e=>{e?(this.recurringDepositAccountSettingsForm.removeControl("expectedFirstDepositOnDate"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequency"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequencyType")):(this.recurringDepositAccountSettingsForm.addControl("expectedFirstDepositOnDate",new tt),this.recurringDepositAccountSettingsForm.addControl("recurringFrequency",new tt("")),this.recurringDepositAccountSettingsForm.addControl("recurringFrequencyType",new tt("")))})}get recurringDepositAccountSettings(){return this.recurringDepositAccountSettingsForm.value}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-settings-step"]],inputs:{isNew:"isNew",recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[Yt],decls:143,vars:103,consts:[["expectedFirstDepositOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["labelPosition","before","formControlName","isMandatoryDeposit",1,"margin-v","flex-48"],["labelPosition","before","formControlName","adjustAdvanceTowardsFuturePayments",1,"flex-48","margin-v"],["labelPosition","before","formControlName","allowWithdrawal",1,"margin-v","flex-48"],[1,"mat-h4","flex-98"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],[1,"flex-48",3,"currency","isRequired","inputFormControl","inputLabel"],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],["labelPosition","before","formControlName","isCalendarInherited",1,"margin-v","flex-48"],[1,"flex-98"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","expectedFirstDepositOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["type","number","matInput","","formControlName","recurringFrequency","required",""],["formControlName","recurringFrequencyType","required",""],["labelPosition","before","formControlName","withHoldTax",1,"margin-v","flex-48"],["type","text","matInput","","formControlName","taxGroupId"]],template:function(l,p){l&1&&(a(0,"form",1)(1,"div",2)(2,"mat-checkbox",3),o(3),r(4,"translate"),i(),a(5,"mat-checkbox",4),o(6),r(7,"translate"),i(),a(8,"mat-checkbox",5),o(9),r(10,"translate"),i(),a(11,"h4",6),o(12),r(13,"translate"),i(),a(14,"mat-form-field",7)(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"input",8),i(),a(19,"mat-form-field",7)(20,"mat-label"),o(21),r(22,"translate"),i(),a(23,"mat-select",9),L(24,Ho,3,5,"mat-option",10,z),i()(),a(26,"h4",6),o(27),r(28,"translate"),i(),x(29,Uo,1,4,"mifosx-input-amount",11),a(30,"h4",6),o(31),r(32,"translate"),i(),a(33,"mat-form-field",7)(34,"mat-label"),o(35),r(36,"translate"),i(),C(37,"input",12),i(),a(38,"mat-form-field",7)(39,"mat-label"),o(40),r(41,"translate"),i(),a(42,"mat-select",13),L(43,$o,3,5,"mat-option",10,z),i()(),a(45,"mat-checkbox",14),o(46),r(47,"translate"),i(),x(48,Lo,37,34),C(49,"mat-divider",15),a(50,"h4",6),o(51),r(52,"translate"),i(),a(53,"mat-form-field",7)(54,"mat-label"),o(55),r(56,"translate"),i(),C(57,"input",16),a(58,"mat-error"),o(59),r(60,"translate"),r(61,"translate"),a(62,"strong"),o(63),r(64,"translate"),i()()(),a(65,"mat-form-field",7)(66,"mat-label"),o(67),r(68,"translate"),i(),a(69,"mat-select",17),L(70,jo,3,5,"mat-option",10,z),i(),a(72,"mat-error"),o(73),r(74,"translate"),r(75,"translate"),a(76,"strong"),o(77),r(78,"translate"),i()()(),a(79,"h4",6),o(80),r(81,"translate"),i(),a(82,"mat-form-field",7)(83,"mat-label"),o(84),r(85,"translate"),i(),C(86,"input",18),i(),a(87,"mat-form-field",7)(88,"mat-label"),o(89),r(90,"translate"),i(),a(91,"mat-select",19),L(92,Wo,3,5,"mat-option",10,z),i()(),a(94,"h4",6),o(95),r(96,"translate"),i(),a(97,"mat-form-field",7)(98,"mat-label"),o(99),r(100,"translate"),i(),C(101,"input",20),i(),a(102,"mat-form-field",7)(103,"mat-label"),o(104),r(105,"translate"),i(),a(106,"mat-select",21),L(107,Ko,3,5,"mat-option",10,z),i()(),C(109,"mat-divider",15),a(110,"h4",6),o(111),r(112,"translate"),i(),a(113,"mat-checkbox",22),o(114),r(115,"translate"),i(),a(116,"mat-form-field",7)(117,"mat-label"),o(118),r(119,"translate"),i(),C(120,"input",23),i(),a(121,"mat-form-field",7)(122,"mat-label"),o(123),r(124,"translate"),i(),a(125,"mat-select",24),L(126,Qo,3,5,"mat-option",10,z),i()(),a(128,"mat-form-field",7)(129,"mat-label"),o(130),r(131,"translate"),i(),C(132,"input",25),i(),x(133,Jo,7,7),i(),a(134,"div",26)(135,"button",27),C(136,"fa-icon",28),o(137),r(138,"translate"),i(),a(139,"button",29),o(140),r(141,"translate"),C(142,"fa-icon",30),i()()()),l&2&&(d("formGroup",p.recurringDepositAccountSettingsForm),n(3),u(" ",c(4,37,"labels.inputs.Is Mandatory Deposit"),"? "),n(3),u(" ",c(7,39,"labels.inputs.Adjust advance payments toward future installments"),"? "),n(3),u(" ",c(10,41,"labels.inputs.Allow Withdrawals"),"? "),n(3),m(c(13,43,"labels.heading.Lock-in Period")),n(4),m(c(17,45,"labels.inputs.Frequency")),n(5),m(c(22,47,"labels.inputs.Type")),n(3),j(p.lockinPeriodFrequencyTypeData),n(3),m(c(28,49,"labels.heading.Recurring Deposit Details")),n(2),D(p.currency?29:-1),n(2),m(c(32,51,"labels.heading.Deposit Period")),n(4),m(c(36,53,"labels.inputs.Deposit Period")),n(5),m(c(41,55,"labels.inputs.Type")),n(3),j(p.periodFrequencyTypeData),n(3),u(" ",c(47,57,"labels.inputs.Deposit Frequency Same as Group/Center meeting")," "),n(2),D(p.recurringDepositAccountSettingsForm.value.isCalendarInherited?-1:48),n(3),m(c(52,59,"labels.heading.Minimum Deposit Term")),n(4),m(c(56,61,"labels.inputs.Frequency")),n(4),A(" ",c(60,63,"labels.inputs.Minimum Deposit Term Frequency")," ",c(61,65,"labels.commons.is")," "),n(4),m(c(64,67,"labels.commons.required")),n(4),m(c(68,69,"labels.inputs.Frequency Type")),n(3),j(p.periodFrequencyTypeData),n(3),A(" ",c(74,71,"labels.inputs.Minimum Deposit Term Frequency Type")," ",c(75,73,"labels.commons.is")," "),n(4),m(c(78,75,"labels.commons.required")),n(3),m(c(81,77,"labels.heading.And thereafter, in Multiples of")),n(4),m(c(85,79,"labels.inputs.Frequency")),n(5),m(c(90,81,"labels.inputs.Type")),n(3),j(p.periodFrequencyTypeData),n(3),m(c(96,83,"labels.heading.Maximum Deposit Term")),n(4),m(c(100,85,"labels.inputs.Frequency")),n(5),m(c(105,87,"labels.inputs.Type")),n(3),j(p.periodFrequencyTypeData),n(4),m(c(112,89,"labels.heading.For Pre-mature closure")),n(3),u(" ",c(115,91,"labels.inputs.Apply Penal Interest (less)")," "),n(4),u("",c(119,93,"labels.inputs.Penal Interest")," (%)"),n(5),m(c(124,95,"labels.inputs.Period")),n(3),j(p.preClosurePenalInterestOnTypeData),n(4),m(c(131,97,"labels.inputs.Minimum Balance For Interest Calculation")),n(3),D(p.taxGroup?133:-1),n(4),u(" ",c(138,99,"labels.buttons.Previous")," "),n(3),u(" ",c(141,101,"labels.buttons.Next")," "))},dependencies:[I,R,rt,mt,Re,Z,ot,dt,ct,pt,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,He,Ee,Ue,jt,_t,Zt,w,Rt],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function Xo(t,s){if(t&1&&(a(0,"mat-option",3),o(1),i()),t&2){let e=s.$implicit;d("value",e),n(),u(" ",e.name," ")}}function Zo(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.name")))}function tr(t,s){if(t&1&&(a(0,"td",25),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function er(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Type")))}function nr(t,s){if(t&1&&(a(0,"td",25),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),u(" ",B(2,1,e.chargeCalculationType.value,"catalogs")," ")}}function ir(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount")))}function ar(t,s){if(t&1){let e=y();a(0,"td",25),o(1),r(2,"formatNumber"),a(3,"button",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.editChargeAmount(p))}),C(4,"fa-icon",27),i()()}if(t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function or(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Collected On")))}function rr(t,s){if(t&1&&(a(0,"td",25),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),u(" ",B(2,1,e.chargeTimeType.value,"catalogs")," ")}}function cr(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Date")))}function pr(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.dueDate)||"Unassigned"," ")}}function sr(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function lr(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function mr(t,s){if(t&1){let e=y();a(0,"button",26),T("click",function(){S(e);let p=f().$implicit,g=f();return M(g.editChargeDate(p))}),C(1,"fa-icon",27),i()}}function dr(t,s){if(t&1&&(a(0,"td",25),x(1,pr,3,3,"span"),x(2,sr,3,3,"span"),x(3,lr,3,3,"span"),x(4,mr,2,0,"button",28),i()),t&2){let e=s.$implicit;n(),D(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),n(),D(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),n(),D(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3),n(),D(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?4:-1)}}function ur(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Repayments Every")))}function gr(t,s){if(t&1){let e=y();a(0,"button",26),T("click",function(){S(e);let p=f().$implicit,g=f();return M(g.editChargeFeeInterval(p))}),C(1,"fa-icon",27),i()}}function Cr(t,s){if(t&1&&(a(0,"td",25),o(1),x(2,gr,2,0,"button",28),i()),t&2){let e=s.$implicit;n(),u(" ",e.feeInterval||"Not Provided"," "),n(),D(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"?2:-1)}}function _r(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function fr(t,s){if(t&1){let e=y();a(0,"td",25)(1,"button",29),T("click",function(){let p=S(e).$implicit,g=f();return M(g.deleteCharge(p))}),C(2,"fa-icon",30),i()()}}function hr(t,s){t&1&&C(0,"tr",31)}function xr(t,s){t&1&&C(0,"tr",32)}var de=(()=>{class t{constructor(){this.dialog=_(Xt),this.dateUtils=_(X),this.settingsService=_($),this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.pristine=!0,this.isChargesPatched=!1,this.currency=null}ngOnInit(){this.chargesDataSource=[],this.recurringDepositsAccountTemplate.id&&this.recurringDepositsAccountTemplate.charges&&(this.chargesDataSource=this.recurringDepositsAccountTemplate.charges.map(e=>J(F({},e),{id:e.chargeId}))||[])}ngOnChanges(){this.currency==null&&(this.recurringDepositsAccountTemplate.currency?this.currency=this.recurringDepositsAccountTemplate.currency:this.recurringDepositsAccountProductTemplate&&this.recurringDepositsAccountProductTemplate.currency&&(this.currency=this.recurringDepositsAccountProductTemplate.currency)),this.recurringDepositsAccountProductTemplate&&(this.chargeData=this.recurringDepositsAccountProductTemplate.chargeOptions.filter(e=>e.currency.code===this.currency.code))}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){let l=[new we({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})],p={title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G=J(F({},e),{amount:b.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,G),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){let l=[new Ze({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],p={title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G,ue=this.settingsService.dateFormat,ie=this.dateUtils.formatDate(b.data.value.date,ue);switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":G=J(F({},e),{dueDate:ie});break;case"Annual Fee":G=J(F({},e),{feeOnMonthDay:ie});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,G),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let l=[new we({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],p={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G=J(F({},e),{feeInterval:b.data.value.feeInterval});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,G),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.dialog.open(ce,{data:{deleteContext:`charge ${e.name}`}}).afterClosed().subscribe(p=>{p.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get recurringDepositAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-charges-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",currencyCode:"currencyCode",recurringDepositAccountFormValid:"recurringDepositAccountFormValid"},features:[Yt],decls:47,vars:18,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","primary"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),o(3),r(4,"translate"),i(),a(5,"mat-select",null,0),L(7,Xo,2,2,"mat-option",3,z),i()(),a(9,"div",4)(10,"button",5),T("click",function(){S(g);let G=E(6);return M(p.addCharge(G))}),C(11,"fa-icon",6),o(12),r(13,"translate"),i()(),a(14,"table",7),v(15,8),h(16,Zo,3,3,"th",9)(17,tr,2,1,"td",10),P(),v(18,11),h(19,er,3,3,"th",9)(20,nr,3,4,"td",10),P(),v(21,12),h(22,ir,3,3,"th",9)(23,ar,5,3,"td",10),P(),v(24,13),h(25,or,3,3,"th",9)(26,rr,3,4,"td",10),P(),v(27,14),h(28,cr,3,3,"th",9)(29,dr,5,4,"td",10),P(),v(30,15),h(31,ur,3,3,"th",9)(32,Cr,3,2,"td",10),P(),v(33,16),h(34,_r,3,3,"th",9)(35,fr,3,0,"td",10),P(),h(36,hr,1,0,"tr",17)(37,xr,1,0,"tr",18),i()(),a(38,"div",19)(39,"button",20),C(40,"fa-icon",21),o(41),r(42,"translate"),i(),a(43,"button",22),o(44),r(45,"translate"),C(46,"fa-icon",23),i()()}if(l&2){let g=E(6);n(3),m(c(4,10,"labels.inputs.Charge")),n(4),j(p.chargeData),n(3),d("disabled",!g.value),n(2),u(" ",c(13,12,"labels.buttons.Add")," "),n(2),d("dataSource",p.chargesDataSource)("hidden",p.chargesDataSource.length===0),n(22),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns),n(4),u(" ",c(42,14,"labels.buttons.Previous")," "),n(2),d("disabled",!p.recurringDepositAccountFormValid),n(),u(" ",c(45,16,"labels.buttons.Next")," ")}},dependencies:[I,R,nt,et,Ot,yt,V,_t,wt,Ft,Bt,kt,Et,Nt,Oe,Vt,Gt,qt,Ht,jt,Zt,It,w,Rt,Wt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var Dr=["chartsTable"];function br(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.name"),":"),n(3),m(e.recurringDepositsAccountProductTemplate.accountChart.name)}}function vr(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"dateFormat"),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.End Date"),":"),n(3),m(c(6,4,e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function Pr(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.Description"),":"),n(3),m(e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.description)}}function Tr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Period")))}function Sr(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),ae(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",B(2,3,e.periodType.value,"catalogs")," ")}}function Mr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount Range")))}function Ar(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"formatNumber"),r(3,"formatNumber"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function yr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Or(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u("",c(2,1,e.annualInterestRate)," %")}}function Ir(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Description")))}function Rr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),m(e.description)}}function wr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function Er(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",27),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function Br(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",28),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Fr(t,s){if(t&1){let e=y();a(0,"td",24)(1,"button",25),T("click",function(){let p=S(e).dataIndex,g=f();return M(g.expandChartSlabIndex=g.expandChartSlabIndex===p?null:p)}),h(2,Er,4,3,"span",26)(3,Br,4,3,"span",26),i()()}if(t&2){let e=s.dataIndex,l=f();n(2),d("ngIf",l.expandChartSlabIndex!==e),n(),d("ngIf",l.expandChartSlabIndex===e)}}function kr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Entity Type")))}function Nr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.entityType.value," ")}}function Vr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Name")))}function qr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.attributeName.value," ")}}function Gr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Condition Type")))}function Hr(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"titlecase"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.conditionType.value)," ")}}function Ur(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Value")))}function $r(t,s){if(t&1&&(a(0,"td",41),o(1),i()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),n(),u(" ",e.attributeValueDesc," ")}}function zr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Incentive Type")))}function Lr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.incentiveType.value," ")}}function jr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Wr(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function Kr(t,s){t&1&&C(0,"tr",42)}function Qr(t,s){t&1&&C(0,"tr",43)}function Yr(t,s){if(t&1&&(a(0,"table",33),v(1,34),h(2,kr,3,3,"th",8)(3,Nr,2,1,"td",9),P(),v(4,35),h(5,Vr,3,3,"th",8)(6,qr,2,1,"td",9),P(),v(7,36),h(8,Gr,3,3,"th",8)(9,Hr,3,3,"td",9),P(),v(10,37),h(11,Ur,3,3,"th",8)(12,$r,2,2,"td",38),P(),v(13,39),h(14,zr,3,3,"th",8)(15,Lr,2,1,"td",9),P(),v(16,40),h(17,jr,3,3,"th",8)(18,Wr,3,3,"td",9),P(),h(19,Kr,1,0,"tr",15)(20,Qr,1,0,"tr",16),i()),t&2){let e=f().$implicit,l=f();d("dataSource",e.incentives),n(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),n(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function Jr(t,s){if(t&1&&(a(0,"td",24)(1,"div",29)(2,"mat-card",30)(3,"h4",31),o(4),r(5,"translate"),i(),h(6,Yr,21,3,"table",32),i()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=f();De("colspan",p.chartSlabsDisplayedColumns.length),n(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),n(3),u(" ",c(5,4,"labels.heading.Incentives")," "),n(2),d("ngIf",e.incentives.length)}}function Xr(t,s){t&1&&C(0,"tr",42)}function Zr(t,s){t&1&&C(0,"tr",43)}function tc(t,s){t&1&&C(0,"tr",44)}var Fe=(()=>{class t{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}ngOnInit(){this.interestRateChartData=[]}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-interest-rate-chart-step"]],viewQuery:function(l,p){if(l&1&&Pt(Dr,7),l&2){let g;Tt(g=St())&&(p.chartsTableRef=g.first)}},inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[Yt],decls:49,vars:25,consts:[["chartsTable",""],[1,"layout-column","gap-2px"],["class","flex-fill",4,"ngIf"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","flex-fill","layout-row","flex-wrap"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","mat-elevation-z1 flex-fill","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(a(0,"div",1),h(1,br,6,4,"div",2),a(2,"div",3)(3,"span",4),o(4),r(5,"translate"),i(),a(6,"span",5),o(7),r(8,"dateFormat"),i()(),h(9,vr,7,6,"div",2)(10,Pr,6,4,"div",2),a(11,"div",3)(12,"span",4),o(13),r(14,"translate"),i(),a(15,"span",5),o(16),r(17,"yesNo"),i()(),a(18,"table",6,0),v(20,7),h(21,Tr,3,3,"th",8)(22,Sr,3,6,"td",9),P(),v(23,10),h(24,Mr,3,3,"th",8)(25,Ar,4,6,"td",9),P(),v(26,11),h(27,yr,3,3,"th",8)(28,Or,3,3,"td",9),P(),v(29,12),h(30,Ir,3,3,"th",8)(31,Rr,2,1,"td",9),P(),v(32,13),h(33,wr,3,3,"th",8)(34,Fr,4,2,"td",9),P(),v(35,14),h(36,Jr,7,6,"td",9),P(),h(37,Xr,1,0,"tr",15)(38,Zr,1,0,"tr",16)(39,tc,1,0,"tr",17),i()(),a(40,"div",18)(41,"button",19),C(42,"fa-icon",20),o(43),r(44,"translate"),i(),a(45,"button",21),o(46),r(47,"translate"),C(48,"fa-icon",22),i()()),l&2&&(n(),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.name),n(3),u("",c(5,13,"labels.inputs.Valid from Date"),":"),n(3),m(c(8,15,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.fromDate)),n(2),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.endDate),n(),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.description),n(3),u("",c(14,17,"labels.inputs.Primary Grouping by Amount"),":"),n(3),m(c(17,19,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),n(2),d("dataSource",p.interestRateChartData),n(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),n(4),u(" ",c(44,21,"labels.buttons.Previous")," "),n(3),u(" ",c(47,23,"labels.buttons.Next")," "))},dependencies:[I,ve,Pe,R,Y,V,wt,Ft,Bt,kt,Et,Nt,_t,Vt,Gt,qt,Ht,jt,Zt,Te,It,w,Rt,Wt,Xe],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Me("expandChartSlab",[ne("collapsed",ee({height:"0px",minHeight:"0"})),ne("expanded",ee({height:"*"})),ye("expanded <=> collapsed",Ae("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var ec=()=>["../.."];function nc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"find"),r(7,"translateKey"),i()()),t&2){let e=f();n(2),u("",c(3,3,"labels.inputs.Lock-in Period"),":"),n(3),A("",e.recurringDepositAccountData.lockinPeriodFrequency," ",B(7,10,U(6,5,e.recurringDepositAccountData.lockinPeriodFrequencyType,e.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function ic(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"formatNumber"),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.Recurring Deposit Amount"),":"),n(3),m(c(6,4,e.recurringDepositAccountData.mandatoryRecommendedDepositAmount))}}function ac(t,s){if(t&1&&(a(0,"span",5),o(1),r(2,"find"),r(3,"translateKey"),i()),t&2){let e=f(2);n(),A("",e.recurringDepositAccountData.recurringFrequency," ",B(3,7,U(2,2,e.recurringDepositAccountData.recurringFrequencyType,e.recurringDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value"),"catalogs"))}}function oc(t,s){if(t&1&&(v(0),a(1,"div",3)(2,"span",4),o(3),r(4,"translate"),i(),a(5,"span",5),o(6),r(7,"dateFormat"),i()(),a(8,"div",3)(9,"span",4),o(10),r(11,"translate"),i(),h(12,ac,4,10,"span",26),i(),P()),t&2){let e=f();n(3),u("",c(4,4,"labels.inputs.Deposit Start Date"),":"),n(3),m(c(7,6,e.recurringDepositAccountData.expectedFirstDepositOnDate)),n(4),u("",c(11,8,"labels.inputs.Deposit Frequency"),":"),n(2),d("ngIf",e.recurringDepositAccountData.recurringFrequency)}}function rc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.name"),":"),n(3),m(e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.name)}}function cc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"dateFormat"),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.End Date"),":"),n(3),m(c(6,4,e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function pc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.Description"),":"),n(3),m(e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.description)}}function sc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Period")))}function lc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),ae(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",B(2,3,e.periodType.value,"catalogs")," ")}}function mc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount Range")))}function dc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"formatNumber"),r(3,"formatNumber"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function uc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function gc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u("",c(2,1,e.annualInterestRate)," %")}}function Cc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Description")))}function _c(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),m(e.description)}}function fc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function hc(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",30),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function xc(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",31),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Dc(t,s){if(t&1){let e=y();a(0,"td",28)(1,"button",29),T("click",function(){let p=S(e).dataIndex,g=f();return M(g.expandChartSlabIndex=g.expandChartSlabIndex===p?null:p)}),h(2,hc,4,3,"span",7)(3,xc,4,3,"span",7),i()()}if(t&2){let e=s.dataIndex,l=f();n(2),d("ngIf",l.expandChartSlabIndex!==e),n(),d("ngIf",l.expandChartSlabIndex===e)}}function bc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Entity Type")))}function vc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.entityType.value," ")}}function Pc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Name")))}function Tc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.attributeName.value," ")}}function Sc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Condition Type")))}function Mc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"titlecase"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.conditionType.value)," ")}}function Ac(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Value")))}function yc(t,s){if(t&1&&(a(0,"td",44),o(1),i()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),n(),u(" ",e.attributeValueDesc," ")}}function Oc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Incentive Type")))}function Ic(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.incentiveType.value," ")}}function Rc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function wc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.amount," ")}}function Ec(t,s){t&1&&C(0,"tr",45)}function Bc(t,s){t&1&&C(0,"tr",46)}function Fc(t,s){if(t&1&&(a(0,"table",36),v(1,37),h(2,bc,3,3,"th",10)(3,vc,2,1,"td",11),P(),v(4,38),h(5,Pc,3,3,"th",10)(6,Tc,2,1,"td",11),P(),v(7,39),h(8,Sc,3,3,"th",10)(9,Mc,3,3,"td",11),P(),v(10,40),h(11,Ac,3,3,"th",10)(12,yc,2,2,"td",41),P(),v(13,42),h(14,Oc,3,3,"th",10)(15,Ic,2,1,"td",11),P(),v(16,43),h(17,Rc,3,3,"th",10)(18,wc,2,1,"td",11),P(),h(19,Ec,1,0,"tr",17)(20,Bc,1,0,"tr",18),i()),t&2){let e=f().$implicit,l=f();d("dataSource",e.incentives),n(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),n(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function kc(t,s){if(t&1&&(a(0,"td",28)(1,"div",32)(2,"mat-card",33)(3,"h4",34),o(4),r(5,"translate"),i(),h(6,Fc,21,3,"table",35),i()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=f();De("colspan",p.chartSlabsDisplayedColumns.length),n(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),n(3),u(" ",c(5,4,"labels.heading.Incentives")," "),n(2),d("ngIf",e.incentives.length)}}function Nc(t,s){t&1&&C(0,"tr",45)}function Vc(t,s){t&1&&C(0,"tr",46)}function qc(t,s){t&1&&C(0,"tr",47)}function Gc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.name")))}function Hc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function Uc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Type")))}function $c(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),u(" ",B(2,1,e.chargeCalculationType.value,"catalogs")," ")}}function zc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount")))}function Lc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function jc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Date")))}function Wc(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.dueDate)||"Unassigned"," ")}}function Kc(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function Qc(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function Yc(t,s){if(t&1&&(a(0,"td",28),h(1,Wc,3,3,"span",7)(2,Kc,3,3,"span",7)(3,Qc,3,3,"span",7),i()),t&2){let e=s.$implicit;n(),d("ngIf",e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"),n(),d("ngIf",e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"),n(),d("ngIf",!(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"))}}function Jc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Repayments Every")))}function Xc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.feeInterval||"Not Provided"," ")}}function Zc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Collected On")))}function tp(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.chargeTimeType.value," ")}}function ep(t,s){t&1&&C(0,"tr",45)}function np(t,s){t&1&&C(0,"tr",46)}function ip(t,s){if(t&1&&(a(0,"div",48)(1,"h3",1),o(2),r(3,"translate"),i(),C(4,"mat-divider",2),a(5,"table",36),v(6,49),h(7,Gc,3,3,"th",10)(8,Hc,2,1,"td",11),P(),v(9,50),h(10,Uc,3,3,"th",10)(11,$c,3,4,"td",11),P(),v(12,43),h(13,zc,3,3,"th",10)(14,Lc,3,3,"td",11),P(),v(15,51),h(16,jc,3,3,"th",10)(17,Yc,4,3,"td",11),P(),v(18,52),h(19,Jc,3,3,"th",10)(20,Xc,2,1,"td",11),P(),v(21,53),h(22,Zc,3,3,"th",10)(23,tp,2,1,"td",11),P(),h(24,ep,1,0,"tr",17)(25,np,1,0,"tr",18),i()()),t&2){let e=f();n(2),m(c(3,4,"labels.heading.Charges")),n(3),d("dataSource",e.recurringDepositAccountData.charges),n(19),d("matHeaderRowDef",e.chargesDisplayedColumns),n(),d("matRowDefColumns",e.chargesDisplayedColumns)}}var ke=(()=>{class t{constructor(){this.submitEvent=new Ve,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-preview-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",recurringDepositAccountData:"recurringDepositAccountData"},outputs:{submitEvent:"submitEvent"},features:[Yt],decls:181,vars:176,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h3","flex-100"],[1,"flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],["class","layout-row flex-100",4,"ngIf"],[4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["class","layout-row-wrap responsive-column flex-100",4,"ngIf"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["class","flex-60",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"m-b-10","flex-13"],["class","flex-100 mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],[1,"layout-row-wrap","responsive-column","flex-100"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(l,p){l&1&&(a(0,"div",0)(1,"h3",1),o(2),r(3,"translate"),i(),C(4,"mat-divider",2),a(5,"div",3)(6,"span",4),o(7),r(8,"translate"),i(),a(9,"span",5),o(10),r(11,"find"),i()(),a(12,"div",3)(13,"span",4),o(14),r(15,"translate"),i(),a(16,"span",5),o(17),r(18,"dateFormat"),i()(),a(19,"div",3)(20,"span",4),o(21),r(22,"translate"),i(),a(23,"span",5),o(24),r(25,"find"),i()(),a(26,"h3",1),o(27),r(28,"translate"),i(),C(29,"mat-divider",2),a(30,"div",3)(31,"span",4),o(32),r(33,"translate"),i(),a(34,"span",5),o(35),i()(),a(36,"div",3)(37,"span",4),o(38),r(39,"translate"),i(),a(40,"span",5),o(41),i()(),a(42,"div",3)(43,"span",4),o(44),r(45,"translate"),i(),a(46,"span",5),o(47),i()(),a(48,"h3",1),o(49),r(50,"translate"),i(),C(51,"mat-divider",2),a(52,"div",3)(53,"span",4),o(54),r(55,"translate"),i(),a(56,"span",5),o(57),r(58,"find"),r(59,"translateKey"),i()(),a(60,"div",3)(61,"span",4),o(62),r(63,"translate"),i(),a(64,"span",5),o(65),r(66,"find"),r(67,"translateKey"),i()(),a(68,"div",3)(69,"span",4),o(70),r(71,"translate"),i(),a(72,"span",5),o(73),r(74,"find"),r(75,"translateKey"),i()(),a(76,"div",3)(77,"span",4),o(78),r(79,"translate"),i(),a(80,"span",5),o(81),r(82,"find"),r(83,"translateKey"),i()(),a(84,"h3",1),o(85),r(86,"translate"),i(),C(87,"mat-divider",2),h(88,nc,8,13,"div",6)(89,ic,7,6,"div",6),a(90,"div",3)(91,"span",4),o(92),r(93,"translate"),i(),a(94,"span",5),o(95),r(96,"find"),r(97,"translateKey"),i()(),a(98,"div",3)(99,"span",4),o(100),r(101,"translate"),i(),a(102,"span",5),o(103),r(104,"yesNo"),i()(),h(105,oc,13,10,"ng-container",7),a(106,"div",3)(107,"span",4),o(108),r(109,"translate"),i(),a(110,"span",5),o(111),r(112,"translateKey"),i()(),a(113,"div",3)(114,"span",4),o(115),r(116,"translate"),i(),a(117,"span",5),o(118),r(119,"translateKey"),i()(),a(120,"div",3)(121,"span",4),o(122),r(123,"translate"),i(),a(124,"span",5),o(125),r(126,"translateKey"),i()(),a(127,"h3",1),o(128),r(129,"translate"),i(),C(130,"mat-divider",2),h(131,rc,6,4,"div",6),a(132,"div",3)(133,"span",4),o(134),r(135,"translate"),i(),a(136,"span",5),o(137),r(138,"dateFormat"),i()(),h(139,cc,7,6,"div",6)(140,pc,6,4,"div",6),a(141,"div",3)(142,"span",4),o(143),r(144,"translate"),i(),a(145,"span",5),o(146),r(147,"yesNo"),i()(),a(148,"table",8),v(149,9),h(150,sc,3,3,"th",10)(151,lc,3,6,"td",11),P(),v(152,12),h(153,mc,3,3,"th",10)(154,dc,4,6,"td",11),P(),v(155,13),h(156,uc,3,3,"th",10)(157,gc,3,3,"td",11),P(),v(158,14),h(159,Cc,3,3,"th",10)(160,_c,2,1,"td",11),P(),v(161,15),h(162,fc,3,3,"th",10)(163,Dc,4,2,"td",11),P(),v(164,16),h(165,kc,7,6,"td",11),P(),h(166,Nc,1,0,"tr",17)(167,Vc,1,0,"tr",18)(168,qc,1,0,"tr",19),i(),h(169,ip,26,6,"div",20),i(),a(170,"div",21)(171,"button",22),C(172,"fa-icon",23),o(173),r(174,"translate"),i(),a(175,"button",24),o(176),r(177,"translate"),i(),a(178,"button",25),T("click",function(){return p.submitEvent.emit()}),o(179),r(180,"translate"),i()()),l&2&&(n(2),m(c(3,58,"labels.heading.Details")),n(5),m(c(8,60,"labels.inputs.Product")),n(3),m(U(11,62,p.recurringDepositAccountData.productId,p.recurringDepositsAccountTemplate.productOptions,"id","name")),n(4),m(c(15,67,"labels.inputs.Submitted On")),n(3),m(c(18,69,p.recurringDepositAccountData.submittedOnDate)),n(4),m(c(22,71,"labels.inputs.Field Officer")),n(3),m(U(25,73,p.recurringDepositAccountData.fieldOfficerId,p.recurringDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),n(3),m(c(28,78,"labels.heading.Currency")),n(5),m(c(33,80,"labels.inputs.Currency")),n(3),m(p.recurringDepositsAccountProductTemplate.currency.code),n(3),m(c(39,82,"labels.inputs.Decimal Places")),n(3),m(p.recurringDepositsAccountProductTemplate.currency.decimalPlaces),n(3),m(c(45,84,"labels.inputs.Currency In Multiples Of")),n(3),m(p.recurringDepositsAccountProductTemplate.currency.inMultiplesOf),n(2),m(c(50,86,"labels.heading.Terms")),n(5),u("",c(55,88,"labels.inputs.Interest Compounding Period"),":"),n(3),m(B(59,95,U(58,90,p.recurringDepositAccountData.interestCompoundingPeriodType,p.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value"),"catalogs")),n(5),u("",c(63,98,"labels.inputs.Interest Posting Period"),":"),n(3),m(B(67,105,U(66,100,p.recurringDepositAccountData.interestPostingPeriodType,p.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value"),"catalogs")),n(5),u("",c(71,108,"labels.inputs.Interest Calculated using"),":"),n(3),m(B(75,115,U(74,110,p.recurringDepositAccountData.interestCalculationType,p.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value"),"catalogs")),n(5),u("",c(79,118,"labels.inputs.Days in Year"),":"),n(3),m(B(83,125,U(82,120,p.recurringDepositAccountData.interestCalculationDaysInYearType,p.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value"),"catalogs")),n(4),m(c(86,128,"labels.heading.Settings")),n(3),d("ngIf",p.recurringDepositAccountData.lockinPeriodFrequency),n(),d("ngIf",p.recurringDepositAccountData.mandatoryRecommendedDepositAmount),n(3),u("",c(93,130,"labels.inputs.Deposit Period"),":"),n(3),A("",p.recurringDepositAccountData.depositPeriod," ",B(97,137,U(96,132,p.recurringDepositAccountData.depositPeriodFrequencyId,p.recurringDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value"),"catalogs")),n(5),u("",c(101,140,"labels.inputs.Deposit Frequency Same as Group/Center meeting"),":"),n(3),m(c(104,142,p.recurringDepositsAccountProductTemplate.isCalendarInherited)),n(2),d("ngIf",!p.recurringDepositsAccountProductTemplate.isCalendarInherited),n(3),u("",c(109,144,"labels.inputs.Minimum Deposit Term"),":"),n(3),A("",p.recurringDepositsAccountProductTemplate.minDepositTerm?p.recurringDepositsAccountProductTemplate.minDepositTerm:""," ",B(112,146,p.recurringDepositsAccountProductTemplate.minDepositTermType?p.recurringDepositsAccountProductTemplate.minDepositTermType.value:"","catalogs")),n(4),u("",c(116,149,"labels.inputs.In Multiples Of"),":"),n(3),A("",p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm?p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm:""," ",B(119,151,p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType?p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value:"","catalogs")),n(4),m(c(123,154,"labels.inputs.Maximum Deposit Term")),n(3),A("",p.recurringDepositsAccountProductTemplate.maxDepositTerm?p.recurringDepositsAccountProductTemplate.maxDepositTerm:""," ",B(126,156,p.recurringDepositsAccountProductTemplate.maxDepositTermType?p.recurringDepositsAccountProductTemplate.maxDepositTermType.value:"","catalogs")),n(3),m(c(129,159,"labels.inputs.Interest Rate Chart")),n(3),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.name),n(3),u("",c(135,161,"labels.inputs.Valid from Date"),":"),n(3),m(c(138,163,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.fromDate)),n(2),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.endDate),n(),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.description),n(3),u("",c(144,165,"labels.inputs.Primary Grouping by Amount"),":"),n(3),m(c(147,167,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),n(2),d("dataSource",p.interestRateChartData),n(18),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),n(),d("ngIf",p.recurringDepositAccountData.charges.length),n(4),u(" ",c(174,169,"labels.buttons.Previous")," "),n(2),d("routerLink",K(175,ec)),n(),u(" ",c(177,171,"labels.buttons.Cancel")," "),n(3),u(" ",c(180,173,"labels.buttons.Submit")," "))},dependencies:[I,ve,Pe,R,Q,Y,V,Ue,wt,Ft,Bt,kt,Et,Nt,_t,Vt,Gt,qt,Ht,jt,Te,It,w,Rt,ei,Wt,Xe],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Me("expandChartSlab",[ne("collapsed",ee({height:"0px",minHeight:"0"})),ne("expanded",ee({height:"*"})),ye("expanded <=> collapsed",Ae("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();function ap(t,s){t&1&&C(0,"fa-icon",14)}function op(t,s){t&1&&C(0,"fa-icon",14)}function rp(t,s){t&1&&C(0,"fa-icon",15)}function cp(t,s){t&1&&C(0,"fa-icon",16)}function pp(t,s){t&1&&C(0,"fa-icon",17)}function sp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function lp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function mp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function dp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function up(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function gp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Cp(t,s){if(t&1){let e=y();a(0,"mat-step",13),h(1,gp,2,3,"ng-template",9),a(2,"mifosx-recurring-deposits-account-preview-step",18),T("submitEvent",function(){S(e);let p=f();return M(p.submit())}),i()()}if(t&2){let e=f();n(2),d("recurringDepositsAccountTemplate",e.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",e.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",e.recurringDepositAccountData)}}var pn=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.route.data.subscribe(e=>{this.recurringDepositsAccountTemplate=e.recurringDepositsAccountTemplate})}setTemplate(e){this.recurringDepositsAccountProductTemplate=e}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValid(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid}get recurringDepositAccountData(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}get recurringDepositAccount(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,g=J(F({},this.recurringDepositAccount),{clientId:this.recurringDepositsAccountTemplate.clientId,charges:this.recurringDepositAccount.charges.map(b=>({chargeId:b.id,amount:b.amount,dueDate:b.dueDate&&this.dateUtils.formatDate(b.dueDate,l),feeOnMonthDay:b.feeOnMonthDay,feeInterval:b.feeInterval})),isCalendarInherited:this.recurringDepositAccount.recurringDepositAccount?this.recurringDepositAccount.recurringDepositAccount:!1,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,l),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,l),dateFormat:l,monthDayFormat:"dd MMMM",locale:e});this.recurringDepositsService.createRecurringDepositAccount(g).subscribe(b=>{this.router.navigate(["../",b.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-create-recurring-deposits-account"]],viewQuery:function(l,p){if(l&1&&(Pt(se,7),Pt(le,7),Pt(me,7),Pt(de,7)),l&2){let g;Tt(g=St())&&(p.recurringDepositsAccountDetailsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountTermsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountSettingsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountChargesStep=g.first)}},decls:24,vars:15,consts:[["recurringDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountProductTemplate","recurringDepositsAccountTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-stepper",2,0),h(3,ap,1,0,"ng-template",3)(4,op,1,0,"ng-template",4)(5,rp,1,0,"ng-template",5)(6,cp,1,0,"ng-template",6)(7,pp,1,0,"ng-template",7),a(8,"mat-step",8),h(9,sp,2,3,"ng-template",9),a(10,"mifosx-recurring-deposits-account-details-step",10),T("recurringDepositsAccountProductTemplate",function(G){return S(g),M(p.setTemplate(G))}),i()(),a(11,"mat-step",8),h(12,lp,2,3,"ng-template",9),C(13,"mifosx-recurring-deposits-account-terms-step",11),i(),a(14,"mat-step",8),h(15,mp,2,3,"ng-template",9),C(16,"mifosx-recurring-deposits-account-settings-step",11),i(),a(17,"mat-step"),h(18,dp,2,3,"ng-template",9),C(19,"mifosx-recurring-deposits-account-interest-rate-chart-step",11),i(),a(20,"mat-step"),h(21,up,2,3,"ng-template",9),C(22,"mifosx-recurring-deposits-account-charges-step",12),i(),x(23,Cp,3,3,"mat-step",13),i()()}l&2&&(n(),d("linear",!1),n(7),d("stepControl",p.recurringDepositAccountDetailsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate),n(),d("stepControl",p.recurringDepositAccountTermsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(),d("stepControl",p.recurringDepositAccountSettingsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",p.recurringDepositAccountFormValid),n(),D(p.recurringDepositAccountFormValid?23:-1))},dependencies:[I,R,Je,Qe,_t,Ye,Ke,se,le,me,Fe,de,ke,w],encapsulation:2})}}return t})();var _p=()=>["../../"];function fp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Activated On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var sn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateRecurringDepositsAccountForm()}createActivateRecurringDepositsAccountForm(){this.activateRecurringDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",q.required]})}submit(){let e=this.activateRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.activateRecurringDepositsAccountForm.value.activatedOnDate;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"activate",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-activate-recurring-deposits-account"]],decls:20,vars:18,consts:[["activatedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"mat-form-field",3),T("click",function(){S(g);let G=E(11);return M(G.open())}),a(5,"mat-label"),o(6),r(7,"translate"),i(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),x(12,fp,7,9,"mat-error"),i()(),a(13,"mat-card-actions",6)(14,"button",7),o(15),r(16,"translate"),i(),a(17,"button",8),o(18),r(19,"translate"),i()()()()()}if(l&2){let g=E(11);n(2),d("formGroup",p.activateRecurringDepositsAccountForm),n(4),m(c(7,11,"labels.inputs.Activated On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.activateRecurringDepositsAccountForm.controls.activatedOnDate.hasError("required")?12:-1),n(2),d("routerLink",K(17,_p)),n(),u(" ",c(16,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.activateRecurringDepositsAccountForm.valid),n(),u(" ",c(19,15,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var hp=()=>["../../"],ln=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.route=_(N),this.router=_(W),this.undoCommand="undoapproval",this.undoAction=this.route.snapshot.params.name,this.undoAction==="Undo Activation"&&(this.undoCommand="undoactivate"),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.createUndoApprovalRecurringDepositsAccountForm()}createUndoApprovalRecurringDepositsAccountForm(){this.undoApprovalRecurringDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){let e=F({},this.undoApprovalRecurringDepositsAccountForm.value);this.undoAction==="Undo Activation"?this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})}):this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-undo-approval-recurring-deposits-account"]],decls:16,vars:13,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(l,p){l&1&&(a(0,"div",0)(1,"mat-card")(2,"form",1),T("ngSubmit",function(){return p.submit()}),a(3,"mat-card-content")(4,"mat-form-field",2)(5,"mat-label"),o(6),r(7,"translate"),i(),C(8,"textarea",3),i()(),a(9,"mat-card-actions",4)(10,"button",5),o(11),r(12,"translate"),i(),a(13,"button",6),o(14),r(15,"translate"),i()()()()()),l&2&&(n(2),d("formGroup",p.undoApprovalRecurringDepositsAccountForm),n(4),m(c(7,6,"labels.inputs.Note")),n(4),d("routerLink",K(12,hp)),n(),u(" ",c(12,8,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.undoApprovalRecurringDepositsAccountForm.valid),n(),u(" ",c(15,10,"labels.buttons.Confirm")," "))},dependencies:[I,R,rt,mt,Z,ot,ct,pt,Q,Y,ut,ft,nt,et,Ct,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var xp=()=>["../../"];function Dp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Approved On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var mn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveRecurringDepositsAccountForm()}createApproveRecurringDepositsAccountForm(){this.approveRecurringDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",q.required],note:[""]})}submit(){let e=this.approveRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.approveRecurringDepositsAccountForm.value.approvedOnDate;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"approve",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-approve-recurring-deposits-account"]],decls:26,vars:21,consts:[["approvedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,Dp,7,9,"mat-error"),i(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"textarea",7),i()()(),a(19,"mat-card-actions",8)(20,"button",9),o(21),r(22,"translate"),i(),a(23,"button",10),o(24),r(25,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.approveRecurringDepositsAccountForm),n(5),m(c(8,12,"labels.inputs.Approved On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.approveRecurringDepositsAccountForm.controls.approvedOnDate.hasError("required")?13:-1),n(3),m(c(17,14,"labels.inputs.Note")),n(4),d("routerLink",K(20,xp)),n(),u(" ",c(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.approveRecurringDepositsAccountForm),n(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var bp=()=>["../../"];function vp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Rejected On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var dn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectRecurringDepositsAccountForm()}createRejectRecurringDepositsAccountForm(){this.rejectRecurringDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",q.required],note:[""]})}submit(){let e=this.rejectRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.rejectRecurringDepositsAccountForm.value.rejectedOnDate;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"reject",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-reject-recurring-deposits-account"]],decls:26,vars:21,consts:[["rejectedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,vp,7,9,"mat-error"),i(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"textarea",7),i()()(),a(19,"mat-card-actions",8)(20,"button",9),o(21),r(22,"translate"),i(),a(23,"button",10),o(24),r(25,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.rejectRecurringDepositsAccountForm),n(5),m(c(8,12,"labels.inputs.Rejected On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.rejectRecurringDepositsAccountForm.controls.rejectedOnDate.hasError("required")?13:-1),n(3),m(c(17,14,"labels.inputs.Note")),n(4),d("routerLink",K(20,bp)),n(),u(" ",c(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.rejectRecurringDepositsAccountForm),n(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Pp=()=>["../../"];function Tp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Withdrawn On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var un=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawRecurringDepositsAccountForm()}createWithdrawRecurringDepositsAccountForm(){this.withdrawRecurringDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",q.required],note:[""]})}submit(){let e=this.withdrawRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.withdrawRecurringDepositsAccountForm.value.withdrawnOnDate;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"withdrawnByApplicant",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-withdraw-by-client-recurring-deposits-account"]],decls:26,vars:21,consts:[["withdrawnOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,Tp,7,9,"mat-error"),i(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"textarea",7),i()()(),a(19,"mat-card-actions",8)(20,"button",9),o(21),r(22,"translate"),i(),a(23,"button",10),o(24),r(25,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.withdrawRecurringDepositsAccountForm),n(5),m(c(8,12,"labels.inputs.Withdrawn On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.withdrawRecurringDepositsAccountForm.controls.withdrawnOnDate.hasError("required")?13:-1),n(3),m(c(17,14,"labels.inputs.Note")),n(4),d("routerLink",K(20,Pp)),n(),u(" ",c(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.withdrawRecurringDepositsAccountForm.valid),n(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Sp=()=>["../../"];function Mp(t,s){if(t&1&&(a(0,"mat-option",6),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name+" ("+e.currency.name+")"," ")}}function Ap(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Charge")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function yp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Amount")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Op(t,s){if(t&1&&(a(0,"mat-option",6),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.value," ")}}function Ip(t,s){if(t&1&&(a(0,"mat-option",6),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.value," ")}}function Rp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Due for collection on")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function wp(t,s){if(t&1){let e=y();a(0,"mat-form-field",13),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),x(8,Rp,7,9,"mat-error"),i()}if(t&2){let e=E(7),l=f(2);n(2),m(c(3,6,"labels.inputs.Due for collection on")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(3),D(l.recurringDepositsChargeForm.controls.dueDate.hasError("required")?8:-1)}}function Ep(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Due Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Bp(t,s){if(t&1){let e=y();a(0,"mat-form-field",13),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),x(8,Ep,7,9,"mat-error"),i()}if(t&2){let e=E(7),l=f(2);n(2),m(c(3,6,"labels.inputs.Due On")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(3),D(l.recurringDepositsChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function Fp(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",17),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Repeats Every")))}function kp(t,s){if(t&1&&(a(0,"div",4)(1,"mat-form-field")(2,"mat-label"),o(3),r(4,"translate"),i(),C(5,"input",10),x(6,yp,7,9,"mat-error"),i(),a(7,"mat-form-field")(8,"mat-label"),o(9),r(10,"translate"),i(),a(11,"mat-select",11),L(12,Op,2,2,"mat-option",6,z),i()(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),a(18,"mat-select",12),L(19,Ip,2,2,"mat-option",6,z),i()(),x(21,wp,9,8,"mat-form-field"),x(22,Bp,9,8,"mat-form-field"),x(23,Fp,5,3,"mat-form-field"),i()),t&2){let e=f();n(3),m(c(4,7,"labels.inputs.Amount")),n(3),D(e.recurringDepositsChargeForm.controls.amount.hasError("required")?6:-1),n(3),m(c(10,9,"labels.inputs.Charge Calculation")),n(3),j(e.chargeDetails.chargeCalculationTypeOptions),n(4),m(c(17,11,"labels.inputs.Charge time type")),n(3),j(e.chargeDetails.chargeTimeTypeOptions),n(2),D(e.recurringDepositsChargeForm.contains("dueDate")?21:-1),n(),D(e.recurringDepositsChargeForm.contains("feeOnMonthDay")?22:-1),n(),D(e.recurringDepositsChargeForm.contains("feeInterval")?23:-1)}}var gn=(()=>{class t{constructor(){this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.savingsService=_(pe),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsChargeOptions=e.recurringDepositsAccountActionData.chargeOptions}),this.recurringDepositAccountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRecurringDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.recurringDepositsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(l=>{this.chargeDetails=l;let p=l.chargeTimeType.id;(l.chargeTimeType.value==="Withdrawal Fee"||l.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(l.chargeTimeType.value==="Annual Fee"||l.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.addControl("dueDate",new tt("",q.required)):this.recurringDepositsChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.addControl("feeOnMonthDay",new tt("",q.required)):this.recurringDepositsChargeForm.removeControl("feeOnMonthDay"),p.value==="Monthly Fee"?this.recurringDepositsChargeForm.addControl("feeInterval",new tt(l.feeInterval,q.required)):this.recurringDepositsChargeForm.removeControl("feeInterval"),this.recurringDepositsChargeForm.patchValue({amount:l.amount,chargeCalculationType:l.chargeCalculationType.id,chargeTimeType:l.chargeTimeType.id})})})}createRecurringDepositsChargeForm(){this.recurringDepositsChargeForm=this.formBuilder.group({chargeId:["",q.required],amount:["",q.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let e=this.recurringDepositsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let l="MMMM-dd";if(e.monthDayFormat=l,e.feeOnMonthDay){let p=this.recurringDepositsChargeForm.value.feeOnMonthDay;e.feeOnMonthDay=this.dateUtils.formatDate(p,l)}}else{let l=this.settingsService.dateFormat;if(e.dateFormat=l,e.dueDate){let p=this.recurringDepositsChargeForm.value.dueDate;e.dueDate=this.dateUtils.formatDate(p,l)}}this.savingsService.createSavingsCharge(this.recurringDepositAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-add-charge-recurring-deposits-account"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(l,p){l&1&&(a(0,"div",2)(1,"mat-card")(2,"form",3),T("ngSubmit",function(){return p.submit()}),a(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),o(7),r(8,"translate"),i(),a(9,"mat-select",5),L(10,Mp,2,2,"mat-option",6,z),i(),x(12,Ap,7,9,"mat-error"),i(),x(13,kp,24,13,"div",4),i(),a(14,"mat-card-actions",7)(15,"button",8),o(16),r(17,"translate"),i(),a(18,"button",9),o(19),r(20,"translate"),i()()()()()()),l&2&&(n(2),d("formGroup",p.recurringDepositsChargeForm),n(5),m(c(8,8,"labels.inputs.Charge")),n(3),j(p.savingsChargeOptions),n(2),D(p.recurringDepositsChargeForm.controls.chargeId.hasError("required")?12:-1),n(),D(p.chargeDetails?13:-1),n(2),d("routerLink",K(14,Sp)),n(),u(" ",c(17,10,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.recurringDepositsChargeForm.valid),n(),u(" ",c(20,12,"labels.buttons.Submit")," "))},dependencies:[I,R,rt,mt,Re,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,w],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var Np=()=>["../../"];function Vp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Closed On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var Cn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createprematureCloseRecurringDepositsAccountForm()}createprematureCloseRecurringDepositsAccountForm(){this.prematureCloseRecurringDepositsAccountForm=this.formBuilder.group({closedOnDate:["",q.required]})}submit(){let e=this.prematureCloseRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.prematureCloseRecurringDepositsAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"prematureClose",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-premature-close-recurring-deposit-account"]],decls:21,vars:18,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,Vp,7,9,"mat-error"),i()()(),a(14,"mat-card-actions",7)(15,"button",8),o(16),r(17,"translate"),i(),a(18,"button",9),o(19),r(20,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.prematureCloseRecurringDepositsAccountForm),n(5),m(c(8,11,"labels.inputs.Closed On")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.prematureCloseRecurringDepositsAccountForm.controls.closedOnDate.hasError("required")?13:-1),n(2),d("routerLink",K(17,Np)),n(),u(" ",c(17,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.prematureCloseRecurringDepositsAccountForm),n(),u(" ",c(20,15,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var qp=()=>["../general"];function Gp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Closed On")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Hp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Maturity Amount")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Up(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.value," ")}}function $p(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Action")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function zp(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.accountNo," ")}}function Lp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Transfer to savings account")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function jp(t,s){if(t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),a(4,"mat-select",20),L(5,zp,2,2,"mat-option",10,z),i(),x(7,Lp,7,9,"mat-error"),i()),t&2){let e=f();n(2),m(c(3,2,"labels.inputs.Transfer to Savings")),n(3),j(e.savingsAccountsData),n(2),D(e.closeRecurringDepositForm.controls.toSavingsAccountId.hasError("required")?7:-1)}}function Wp(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",21),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Transfer Description")))}function Kp(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function Qp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Payment Type")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Yp(t,s){t&1&&(a(0,"button",15),C(1,"i",22),i())}function Jp(t,s){t&1&&(a(0,"button",15),C(1,"i",23),i())}function Xp(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",24),i(),a(5,"mat-form-field")(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",25),i(),a(10,"mat-form-field")(11,"mat-label"),o(12),r(13,"translate"),i(),C(14,"input",26),i(),a(15,"mat-form-field")(16,"mat-label"),o(17),r(18,"translate"),i(),C(19,"input",27),i(),a(20,"mat-form-field")(21,"mat-label"),o(22),r(23,"translate"),i(),C(24,"input",28),i()),t&2&&(n(2),u(" ",c(3,5,"labels.inputs.Account")," #"),n(5),u("",c(8,7,"labels.inputs.Cheque")," #"),n(5),m(c(13,9,"labels.inputs.Routing Code")),n(5),u("",c(18,11,"labels.inputs.Reciept")," #"),n(5),u("",c(23,13,"labels.inputs.Bank")," #"))}var _n=(()=>{class t{constructor(){this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsAccountsData=e.recurringDepositsAccountActionData.savingsAccounts,this.maturityAmount=e.recurringDepositsAccountActionData.maturityAmount,this.onAccountClosureOptions=e.recurringDepositsAccountActionData.onAccountClosureOptions,this.paymentTypes=e.recurringDepositsAccountActionData.paymentTypeOptions,e.recurringDepositsAccountActionData.maturityAmount?this.title="Recurring Deposit Closure on Maturity":this.title="Recurring Deposit Closure"}),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createcloseRecurringDepositForm(),this.addTransferDetails()}createcloseRecurringDepositForm(){this.closeRecurringDepositForm=this.formBuilder.group({closedOnDate:[new Date,q.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",q.required],paymentTypeId:["",q.required],accountNumber:"",checkNumber:"",routingCode:"",receiptNumber:"",bankNumber:"",note:""})}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}addTransferDetails(){this.closeRecurringDepositForm.get("onAccountClosureId").valueChanges.subscribe(e=>{e===200?(this.closeRecurringDepositForm.addControl("toSavingsAccountId",new tt("",q.required)),this.closeRecurringDepositForm.addControl("transferDescription",new tt(""))):(this.closeRecurringDepositForm.removeControl("toSavingsAccountId"),this.closeRecurringDepositForm.removeControl("transferDescription"))})}submit(){let e=this.closeRecurringDepositForm.value,l=this.closeRecurringDepositForm.value.closedOnDate,p=this.settingsService.dateFormat,g=this.settingsService.language.code;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(l,p));let b=J(F({},e),{dateFormat:p,locale:g});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"close",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-close-recurring-deposits-account"]],decls:60,vars:42,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"mat-h3","flex-fill"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","maturityAmount"],["formControlName","onAccountClosureId","required",""],[3,"value"],["formControlName","paymentTypeId","required",""],[1,"flex-fill"],[1,"flex-25"],[1,"expandcollapsebutton","flex-75",3,"click"],["mat-raised-button","","color","primary"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"],[1,"fa","fa-minus"],[1,"fa","fa-plus"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","chequeNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"h3",4),o(6),i(),a(7,"mat-form-field",5),T("click",function(){S(g);let G=E(14);return M(G.open())}),a(8,"mat-label"),o(9),r(10,"translate"),i(),C(11,"input",6)(12,"mat-datepicker-toggle",7)(13,"mat-datepicker",null,0),x(15,Gp,7,9,"mat-error"),i(),a(16,"mat-form-field")(17,"mat-label"),o(18),r(19,"translate"),i(),C(20,"input",8),x(21,Hp,7,9,"mat-error"),i(),a(22,"mat-form-field")(23,"mat-label"),o(24),r(25,"translate"),i(),a(26,"mat-select",9),L(27,Up,2,2,"mat-option",10,z),i(),x(29,$p,7,9,"mat-error"),i(),x(30,jp,8,4,"mat-form-field"),x(31,Wp,5,3,"mat-form-field"),a(32,"mat-form-field")(33,"mat-label"),o(34),r(35,"translate"),i(),a(36,"mat-select",11),L(37,Kp,2,2,"mat-option",10,z),i(),x(39,Qp,7,9,"mat-error"),i(),a(40,"div",12)(41,"span",13),o(42),r(43,"translate"),i(),a(44,"span",14),T("click",function(){return S(g),M(p.toggleDisplay())}),x(45,Yp,2,0,"button",15),x(46,Jp,2,0,"button",15),i()(),x(47,Xp,25,15),a(48,"mat-form-field")(49,"mat-label"),o(50),r(51,"translate"),i(),C(52,"textarea",16),i()()(),a(53,"mat-card-actions",17)(54,"button",18),o(55),r(56,"translate"),i(),a(57,"button",19),o(58),r(59,"translate"),i()()()()()}if(l&2){let g=E(14);n(2),d("formGroup",p.closeRecurringDepositForm),n(4),m(p.title),n(3),m(c(10,25,"labels.inputs.Closed On")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.closeRecurringDepositForm.controls.closedOnDate.hasError("required")?15:-1),n(3),m(c(19,27,"labels.inputs.Maturity Amount")),n(3),D(p.closeRecurringDepositForm.controls.maturityAmount.hasError("required")?21:-1),n(3),m(c(25,29,"labels.inputs.Action")),n(3),j(p.onAccountClosureOptions),n(2),D(p.closeRecurringDepositForm.controls.onAccountClosureId.hasError("required")?29:-1),n(),D(p.closeRecurringDepositForm.contains("toSavingsAccountId")?30:-1),n(),D(p.closeRecurringDepositForm.contains("transferDescription")?31:-1),n(3),m(c(35,31,"labels.inputs.Payment Type Id")),n(3),j(p.paymentTypes),n(2),D(p.closeRecurringDepositForm.controls.paymentTypeId.hasError("required")?39:-1),n(3),u(" ",c(43,33,"labels.inputs.Show Payment Details")),n(3),D(p.showPaymentDetails?45:-1),n(),D(p.showPaymentDetails?-1:46),n(),D(p.showPaymentDetails?47:-1),n(3),m(c(51,35,"labels.inputs.Note")),n(4),d("routerLink",K(41,qp)),n(),u(" ",c(56,37,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.closeRecurringDepositForm.valid),n(),u(" ",c(59,39,"labels.buttons.Submit")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}"]})}}return t})();var Zp=()=>["../../general"];function ts(t,s){if(t&1&&(a(0,"h2",2),o(1),r(2,"translate"),r(3,"translate"),i()),t&2){let e=f();n(),A(" ",c(2,2,"labels.menus."+e.actionName)," ",c(3,4,"labels.heading.Recurring Deposit Transactions")," ")}}function es(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Transaction Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function ns(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function is(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Payment Type")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function as(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",19),i(),a(5,"mat-form-field")(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",20),i(),a(10,"mat-form-field")(11,"mat-label"),o(12),r(13,"translate"),i(),C(14,"input",21),i(),a(15,"mat-form-field")(16,"mat-label"),o(17),r(18,"translate"),i(),C(19,"input",22),i(),a(20,"mat-form-field")(21,"mat-label"),o(22),r(23,"translate"),i(),C(24,"input",23),i()),t&2&&(n(2),u(" ",c(3,5,"labels.inputs.Account")," #"),n(5),u("",c(8,7,"labels.inputs.Cheque")," #"),n(5),m(c(13,9,"labels.inputs.Routing Code")),n(5),u("",c(18,11,"labels.inputs.Reciept")," #"),n(5),u("",c(23,13,"labels.inputs.Bank")," #"))}var fn=(()=>{class t{constructor(){if(this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(e=>{this.transactionAmount=e.recurringDepositsAccountActionData.amount,this.paymentTypes=e.recurringDepositsAccountActionData.paymentTypeOptions,e.recurringDepositsAccountActionData.outstandingChargeAmount&&e.recurringDepositsAccountActionData.outstandingChargeAmount>0&&(this.outstandingChargeAmount=e.recurringDepositsAccountActionData.outstandingChargeAmount,this.transactionAmount+=this.outstandingChargeAmount)}),this.actionName=this.route.snapshot.params.name,this.action=this.actionName.toLowerCase(),this.action==="deposit"||this.action==="withdrawal")this.transactionCommand=this.action,this.transactionType[this.transactionCommand]=!0;else throw new Error(`Invalid transaction action: ${this.actionName}`);this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createdepositRecurringDepositForm()}createdepositRecurringDepositForm(){this.depositRecurringDepositForm=this.formBuilder.group({transactionDate:[new Date,q.required],transactionAmount:[0,q.required],paymentTypeId:["",q.required],note:""})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.depositRecurringDepositForm.addControl("accountNumber",new tt("")),this.depositRecurringDepositForm.addControl("checkNumber",new tt("")),this.depositRecurringDepositForm.addControl("routingCode",new tt("")),this.depositRecurringDepositForm.addControl("receiptNumber",new tt("")),this.depositRecurringDepositForm.addControl("bankNumber",new tt(""))):(this.depositRecurringDepositForm.removeControl("accountNumber"),this.depositRecurringDepositForm.removeControl("checkNumber"),this.depositRecurringDepositForm.removeControl("routingCode"),this.depositRecurringDepositForm.removeControl("receiptNumber"),this.depositRecurringDepositForm.removeControl("bankNumber"))}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}submit(){let e=this.depositRecurringDepositForm.value,l=this.settingsService.dateFormat,p=this.settingsService.language.code,g=this.depositRecurringDepositForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(g,l));let b=J(F({},e),{dateFormat:l,locale:p});delete b.note,b.transactionAmount=b.transactionAmount*1,this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,this.action,b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-deposit-recurring-deposits-account"]],inputs:{currency:"currency"},decls:44,vars:35,consts:[["transactionDatePicker",""],[1,"container"],["mat-title",""],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["formControlName","paymentTypeId","required",""],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card"),x(2,ts,4,6,"h2",2),a(3,"form",3),T("ngSubmit",function(){return S(g),M(p.submit())}),a(4,"mat-card-content")(5,"div",4)(6,"mat-form-field",5),T("click",function(){S(g);let G=E(13);return M(G.open())}),a(7,"mat-label"),o(8),r(9,"translate"),i(),C(10,"input",6)(11,"mat-datepicker-toggle",7)(12,"mat-datepicker",null,0),x(14,es,7,9,"mat-error"),i(),C(15,"mifosx-input-amount",8),a(16,"mat-form-field")(17,"mat-label"),o(18),r(19,"translate"),i(),a(20,"mat-select",9),L(21,ns,2,2,"mat-option",10,z),i(),x(23,is,7,9,"mat-error"),i(),a(24,"div",11)(25,"span",12),T("click",function(){return S(g),M(p.addPaymentDetails())}),a(26,"mat-slide-toggle")(27,"div",13)(28,"span",14),o(29),r(30,"translate"),i()()()()(),x(31,as,25,15),a(32,"mat-form-field")(33,"mat-label"),o(34),r(35,"translate"),i(),C(36,"textarea",15),i()()(),a(37,"mat-card-actions",16)(38,"button",17),o(39),r(40,"translate"),i(),a(41,"button",18),o(42),r(43,"translate"),i()()()()()}if(l&2){let g=E(13);n(2),D(p.transactionType.withdrawal?2:-1),n(),d("formGroup",p.depositRecurringDepositForm),n(5),m(c(9,22,"labels.inputs.Transaction Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.depositRecurringDepositForm.controls.transactionDate.hasError("required")?14:-1),n(),d("currency",p.currency)("isRequired",!0)("inputFormControl",p.depositRecurringDepositForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),m(c(19,24,"labels.inputs.Payment Type Id")),n(3),j(p.paymentTypes),n(2),D(p.depositRecurringDepositForm.controls.paymentTypeId.hasError("required")?23:-1),n(4),d("className",p.showPaymentDetails?"enabled":"disabled"),n(2),m(c(30,26,"labels.inputs.Show Payment Details")),n(2),D(p.showPaymentDetails?31:-1),n(3),m(c(35,28,"labels.inputs.Note")),n(4),d("routerLink",K(34,Zp)),n(),u(" ",c(40,30,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.depositRecurringDepositForm.valid),n(),u(" ",c(43,32,"labels.buttons.Submit")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,Ee,We,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();function os(t,s){t&1&&C(0,"mifosx-activate-recurring-deposits-account")}function rs(t,s){t&1&&C(0,"mifosx-undo-approval-recurring-deposits-account")}function cs(t,s){t&1&&C(0,"mifosx-approve-recurring-deposits-account")}function ps(t,s){t&1&&C(0,"mifosx-reject-recurring-deposits-account")}function ss(t,s){t&1&&C(0,"mifosx-withdraw-by-client-recurring-deposits-account")}function ls(t,s){t&1&&C(0,"mifosx-add-charge-recurring-deposits-account")}function ms(t,s){t&1&&C(0,"mifosx-premature-close-recurring-deposit-account")}function ds(t,s){t&1&&C(0,"mifosx-close-recurring-deposits-account")}function us(t,s){if(t&1&&C(0,"mifosx-deposit-recurring-deposits-account",0),t&2){let e=f();d("currency",e.currency)}}var hn=(()=>{class t{constructor(){this.route=_(N),this.actions={Activate:!1,"Undo Activation":!1,"Undo Approval":!1,Approve:!1,Reject:!1,"Withdrawn by Client":!1,"Add Charge":!1,"Premature Close":!1,Close:!1,Deposit:!1,Withdrawal:!1},this.route.data.subscribe(l=>{l.recurringDepositsAccountActionData&&(this.currency=l.recurringDepositsAccountActionData.currency)});let e=this.route.snapshot.params.name;e&&e in this.actions&&(this.actions[e]=!0)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-actions"]],decls:9,vars:9,consts:[[3,"currency"]],template:function(l,p){l&1&&(x(0,os,1,0,"mifosx-activate-recurring-deposits-account"),x(1,rs,1,0,"mifosx-undo-approval-recurring-deposits-account"),x(2,cs,1,0,"mifosx-approve-recurring-deposits-account"),x(3,ps,1,0,"mifosx-reject-recurring-deposits-account"),x(4,ss,1,0,"mifosx-withdraw-by-client-recurring-deposits-account"),x(5,ls,1,0,"mifosx-add-charge-recurring-deposits-account"),x(6,ms,1,0,"mifosx-premature-close-recurring-deposit-account"),x(7,ds,1,0,"mifosx-close-recurring-deposits-account"),x(8,us,1,1,"mifosx-deposit-recurring-deposits-account",0)),l&2&&(D(p.actions.Activate?0:-1),n(),D(p.actions["Undo Approval"]||p.actions["Undo Activation"]?1:-1),n(),D(p.actions.Approve?2:-1),n(),D(p.actions.Reject?3:-1),n(),D(p.actions["Withdrawn by Client"]?4:-1),n(),D(p.actions["Add Charge"]?5:-1),n(),D(p.actions["Premature Close"]?6:-1),n(),D(p.actions.Close?7:-1),n(),D(p.actions.Deposit||p.actions.Withdrawal?8:-1))},dependencies:[I,R,sn,ln,mn,dn,un,gn,Cn,_n,fn],encapsulation:2})}}return t})();function gs(t,s){t&1&&(a(0,"button",11),C(1,"fa-icon",12),o(2),r(3,"translate"),i()),t&2&&(d("routerLink","edit"),n(2),u("",c(3,2,"labels.buttons.Edit")," "))}function Cs(t,s){if(t&1&&(a(0,"span"),x(1,gs,4,4,"button",11),i()),t&2){let e=f(2);n(),D(e.transactionData.transactionType.value==="Transfer"||e.transactionData.reversed==="true"?-1:1)}}function _s(t,s){if(t&1){let e=y();a(0,"button",13),T("click",function(){S(e);let p=f(2);return M(p.undoTransaction())}),C(1,"fa-icon",14),o(2),r(3,"translate"),i()}t&2&&(n(2),u("",c(3,1,"labels.buttons.Undo")," "))}function fs(t,s){t&1&&(a(0,"div",0),h(1,Cs,2,1,"span",9)(2,_s,4,3,"button",10),i()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"),n(),d("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function hs(t,s){t&1&&(a(0,"div",4),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Note")," "))}function xs(t,s){if(t&1&&(a(0,"div",5),o(1),i()),t&2){let e=f();n(),u(" ",e.transactionData.note," ")}}function Ds(t,s){if(t&1&&C(0,"mifosx-transaction-payment-detail",6),t&2){let e=f();d("paymentDetailData",e.transactionData.paymentDetailData)}}var xn=(()=>{class t{constructor(){this.recurringDepositsService=_(k),this.route=_(N),this.location=_(Bn),this.dateUtils=_(X),this.router=_(W),this.dialog=_(Xt),this.translateService=_(Ie),this.settingsService=_($),this.route.data.subscribe(e=>{this.transactionData=e.recurringDepositsAccountTransaction})}undoTransaction(){let e=this.route.parent.snapshot.params.recurringDepositAccountId;this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to undo this transaction ?")}}).afterClosed().subscribe(p=>{if(p.confirm){let g=this.settingsService.language.code,b=this.settingsService.dateFormat,G={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),b),transactionAmount:0,dateFormat:b,locale:g};this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(e,"undo",G,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}transactionColor(){return this.transactionData.reversed?"undo":"active"}goBack(){this.location.back()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-transaction"]],decls:40,vars:35,consts:[[1,"container","m-b-20","align-end","gap-2percent"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"paymentDetailData"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px","m-b-20"],["type","button","color","primary","mat-raised-button","",3,"click"],[4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(l,p){l&1&&(x(0,fs,3,2,"div",0),a(1,"div",1)(2,"mat-card")(3,"mat-card-content")(4,"div",2),C(5,"div",3),a(6,"div",4),o(7),r(8,"translate"),i(),a(9,"div",5),o(10),i(),a(11,"div",4),o(12),r(13,"translate"),i(),a(14,"div",5),o(15),i(),a(16,"div",4),o(17),r(18,"translate"),i(),a(19,"div",5),o(20),r(21,"dateFormat"),i(),a(22,"div",4),o(23),r(24,"translate"),i(),a(25,"div",5),o(26),i(),a(27,"div",4),o(28),r(29,"translate"),i(),a(30,"div",5),o(31),r(32,"currency"),i(),x(33,hs,3,3,"div",4),x(34,xs,2,1,"div",5),x(35,Ds,1,1,"mifosx-transaction-payment-detail",6),i()(),a(36,"mat-card-actions",7)(37,"button",8),T("click",function(){return p.goBack()}),o(38),r(39,"translate"),i()()()()),l&2&&(D(p.transactionData.reversed?-1:0),n(5),d("ngClass",p.transactionColor()),n(2),u(" ",c(8,16,"labels.inputs.Transaction Id")," "),n(3),u(" ",p.transactionData.id," "),n(2),u(" ",c(13,18,"labels.inputs.Type")," "),n(3),u(" ",p.transactionData.transactionType.value," "),n(2),u(" ",c(18,20,"labels.inputs.Transaction Date")," "),n(3),u(" ",c(21,22,p.transactionData.date)," "),n(3),u(" ",c(24,24,"labels.inputs.Currency")," "),n(3),u(" ",p.transactionData.currency.displayLabel," "),n(2),u(" ",c(29,26,"labels.inputs.Amount")," "),n(3),u(" ",U(32,28,p.transactionData.amount,p.transactionData.currency.code,"symbol-narrow","1.2-2")," "),n(2),D(p.transactionData.note?33:-1),n(),D(p.transactionData.note?34:-1),n(),D(p.transactionData.paymentDetailData?35:-1),n(3),u(" ",c(39,33,"labels.buttons.Back")," "))},dependencies:[I,be,R,Q,Y,ut,ft,V,re,_t,ci,Se,It,w],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();var bs=()=>["../"];function vs(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Transaction Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Ps(t,s){if(t&1&&(a(0,"mat-option",9),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function Ts(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",17),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Account Number")))}function Ss(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",18),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Cheque")))}function Ms(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",19),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Routing Code")))}function As(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",20),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Receipt Number")))}function ys(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",21),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Bank")))}var Dn=(()=>{class t{constructor(){this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.currency=null,this.route.data.subscribe(e=>{this.transactionTemplateData=e.recurringDepositsAccountTransactionTemplate,this.transactionTemplateData.currency&&(this.currency=this.transactionTemplateData.currency),this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.recurringDepositAccountId=this.route.parent.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",q.required],transactionAmount:["",q.required],paymentTypeId:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.editTransactionForm.addControl("accountNumber",new tt("")),this.editTransactionForm.addControl("checkNumber",new tt("")),this.editTransactionForm.addControl("routingCode",new tt("")),this.editTransactionForm.addControl("receiptNumber",new tt("")),this.editTransactionForm.addControl("bankNumber",new tt(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){let e=this.editTransactionForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.editTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});b.transactionAmount=b.transactionAmount*1,this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(this.recurringDepositAccountId,"modify",b,this.transactionTemplateData.id).subscribe(G=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-transaction"]],decls:40,vars:34,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content",3)(4,"mat-form-field",4),T("click",function(){S(g);let G=E(11);return M(G.open())}),a(5,"mat-label"),o(6),r(7,"translate"),i(),C(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),x(12,vs,7,9,"mat-error"),i(),C(13,"mifosx-input-amount",7),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),a(18,"mat-select",8),L(19,Ps,2,2,"mat-option",9,z),i()(),a(21,"div",10)(22,"span",11),T("click",function(){return S(g),M(p.addPaymentDetails())}),a(23,"mat-slide-toggle")(24,"div",12)(25,"span",13),o(26),r(27,"translate"),i()()()()(),x(28,Ts,5,3,"mat-form-field"),x(29,Ss,5,3,"mat-form-field"),x(30,Ms,5,3,"mat-form-field"),x(31,As,5,3,"mat-form-field"),x(32,ys,5,3,"mat-form-field"),a(33,"mat-card-actions",14)(34,"button",15),o(35),r(36,"translate"),i(),a(37,"button",16),o(38),r(39,"translate"),i()()()()()()}if(l&2){let g=E(11);n(2),d("formGroup",p.editTransactionForm),n(4),m(c(7,23,"labels.inputs.Transaction Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.editTransactionForm.controls.transactionDate.hasError("required")?12:-1),n(),d("currency",p.currency)("isRequired",!0)("inputFormControl",p.editTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),m(c(17,25,"labels.inputs.Payment Type")),n(3),j(p.paymentTypeOptions),n(5),d("className",p.addPaymentDetailsFlag?"enabled":"disabled"),n(2),m(c(27,27,"labels.inputs.Show Payment Details")),n(2),D(p.editTransactionForm.controls.accountNumber?28:-1),n(),D(p.editTransactionForm.controls.checkNumber?29:-1),n(),D(p.editTransactionForm.controls.routingCode?30:-1),n(),D(p.editTransactionForm.controls.receiptNumber?31:-1),n(),D(p.editTransactionForm.controls.bankNumber?32:-1),n(2),d("routerLink",K(33,bs)),n(),u(" ",c(36,29,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.editTransactionForm.valid),n(),u(" ",c(39,31,"labels.buttons.Submit")," ")}},dependencies:[I,R,rt,mt,Re,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,Ee,We,w],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var li=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var An=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var yn=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.parent.paramMap.get("clientId");return this.recurringDepositsService.getRecurringDepositsAccountTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var On=(()=>{class t{constructor(){this.savingsService=_(pe),this.recurringDepositsService=_(k)}resolve(e){let l=e.paramMap.get("name"),p=e.paramMap.get("recurringDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId");switch(l){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(p);case"Close":return this.recurringDepositsService.getRecurringDepositAccountActionResource(p,"close");case"Deposit":case"Withdrawal":return this.recurringDepositsService.getRecurringDepositAccountTransactionTemplateResource(p,l.toLocaleLowerCase());default:return}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();function Os(t,s){t&1&&C(0,"fa-icon",15)}function Is(t,s){t&1&&C(0,"fa-icon",15)}function Rs(t,s){t&1&&C(0,"fa-icon",16)}function ws(t,s){t&1&&C(0,"fa-icon",17)}function Es(t,s){t&1&&C(0,"fa-icon",18)}function Bs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function Fs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function ks(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function Ns(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function Vs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function qs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Gs(t,s){if(t&1){let e=y();a(0,"mat-step",14),h(1,qs,2,3,"ng-template",9),a(2,"mifosx-recurring-deposits-account-preview-step",19),T("submitEvent",function(){S(e);let p=f();return M(p.submit())}),i()()}if(t&2){let e=f();n(2),d("recurringDepositsAccountTemplate",e.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",e.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",e.recurringDepositAccountData)}}var bn=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.route.data.subscribe(e=>{this.recurringDepositsAccountAndTemplate=e.recurringDepositsAccountAndTemplate})}setTemplate(e){this.recurringDepositsAccountProductTemplate=e}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValidAndNotPristine(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid&&(!this.recurringDepositAccountDetailsForm.pristine||!this.recurringDepositAccountTermsForm.pristine||!this.recurringDepositAccountSettingsForm.pristine||!this.recurringDepositAccountChargesStep.pristine)}get recurringDepositAccountData(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}get recurringDepositAccount(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,g=J(F({},this.recurringDepositAccount),{clientId:this.recurringDepositsAccountAndTemplate.clientId,charges:this.recurringDepositAccount.charges.map(b=>({chargeId:b.id,amount:b.amount,dueDate:b.dueDate&&this.dateUtils.formatDate(b.dueDate,l),feeOnMonthDay:b.feeOnMonthDay,feeInterval:b.feeInterval})),isCalendarInherited:this.recurringDepositAccount.recurringDepositAccount?this.recurringDepositAccount.recurringDepositAccount:!1,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,l),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,l),dateFormat:l,monthDayFormat:"dd MMMM",locale:e});this.recurringDepositsService.updateRecurringDepositAccount(this.recurringDepositsAccountAndTemplate.id,g).subscribe(b=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-recurring-deposit-account"]],viewQuery:function(l,p){if(l&1&&(Pt(se,7),Pt(le,7),Pt(me,7),Pt(de,7)),l&2){let g;Tt(g=St())&&(p.recurringDepositsAccountDetailsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountTermsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountSettingsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountChargesStep=g.first)}},decls:24,vars:16,consts:[["recurringDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountProductTemplate","recurringDepositsAccountTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"isNew","recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-stepper",2,0),h(3,Os,1,0,"ng-template",3)(4,Is,1,0,"ng-template",4)(5,Rs,1,0,"ng-template",5)(6,ws,1,0,"ng-template",6)(7,Es,1,0,"ng-template",7),a(8,"mat-step",8),h(9,Bs,2,3,"ng-template",9),a(10,"mifosx-recurring-deposits-account-details-step",10),T("recurringDepositsAccountProductTemplate",function(G){return S(g),M(p.setTemplate(G))}),i()(),a(11,"mat-step",8),h(12,Fs,2,3,"ng-template",9),C(13,"mifosx-recurring-deposits-account-terms-step",11),i(),a(14,"mat-step",8),h(15,ks,2,3,"ng-template",9),C(16,"mifosx-recurring-deposits-account-settings-step",12),i(),a(17,"mat-step"),h(18,Ns,2,3,"ng-template",9),C(19,"mifosx-recurring-deposits-account-interest-rate-chart-step",11),i(),a(20,"mat-step"),h(21,Vs,2,3,"ng-template",9),C(22,"mifosx-recurring-deposits-account-charges-step",13),i(),x(23,Gs,3,3,"mat-step",14),i()()}l&2&&(n(),d("linear",!1),n(7),d("stepControl",p.recurringDepositAccountDetailsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate),n(),d("stepControl",p.recurringDepositAccountTermsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(),d("stepControl",p.recurringDepositAccountSettingsForm),n(2),d("isNew",!1)("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",p.recurringDepositAccountFormValidAndNotPristine),n(),D(p.recurringDepositAccountFormValidAndNotPristine?23:-1))},dependencies:[I,R,Je,Qe,_t,Ye,Ke,se,le,me,Fe,de,ke,w],encapsulation:2})}}return t})();var In=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountAndTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var Rn=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.paramMap.get("recurringDepositAccountId"),p=e.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransaction(l,p)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var wn=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.paramMap.get("recurringDepositAccountId"),p=e.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransactionTemplate(l,p)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();function Hs(t,s){if(t&1&&(a(0,"span"),C(1,"mifosx-external-identifier",4),i()),t&2){let e=f(2);n(),d("externalId",Mt(e.recurringDepositsAccountData.externalId))}}function Us(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Not Available")," "))}function $s(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Unassigned")))}function zs(t,s){t&1&&(a(0,"td"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Closed on Date")," "))}function Ls(t,s){if(t&1&&(a(0,"tr"),x(1,zs,3,3,"td"),a(2,"td")(3,"span"),o(4),r(5,"dateFormat"),i()()()),t&2){let e=f(2);n(),D(e.recurringDepositsAccountData.timeline.closedOnDate?1:-1),n(3),m(c(5,2,e.recurringDepositsAccountData.timeline.closedOnDate))}}function js(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Balance Required for Interest Calculation")),n(4),m(e.recurringDepositsAccountData.minBalanceForInterestCalculation)}}function Ws(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Witdhold Tax Group")),n(4),m(e.recurringDepositsAccountData.taxGroup.name)}}function Ks(t,s){if(t&1&&(a(0,"div",1)(1,"h4",2),o(2),r(3,"translate"),i(),a(4,"table")(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td"),x(11,Hs,2,2,"span"),x(12,Us,3,3,"span"),i()(),a(13,"tr")(14,"td"),o(15),r(16,"translate"),i(),a(17,"td"),o(18),x(19,$s,3,3,"span"),i()(),a(20,"tr")(21,"td"),o(22),r(23,"translate"),i(),a(24,"td"),o(25),r(26,"dateFormat"),i()(),a(27,"tr")(28,"td"),o(29),r(30,"translate"),i(),a(31,"td")(32,"span"),o(33),r(34,"dateFormat"),i()()(),x(35,Ls,6,4,"tr"),C(36,"tr"),a(37,"tr")(38,"td"),o(39),r(40,"translate"),i(),a(41,"td")(42,"span",3),o(43),i(),o(44),r(45,"translateKey"),i()(),x(46,js,7,4,"tr"),x(47,Ws,7,4,"tr"),i()()()),t&2){let e=f();n(2),m(c(3,17,"labels.inputs.Account Details")),n(6),m(c(9,19,"labels.inputs.External Id")),n(3),D(e.recurringDepositsAccountData.externalId?11:-1),n(),D(e.recurringDepositsAccountData.externalId?-1:12),n(3),m(c(16,21,"labels.inputs.Field Officer")),n(3),u(" ",e.recurringDepositsAccountData.fieldOfficerName," "),n(),D(e.recurringDepositsAccountData.fieldOfficerName?-1:19),n(3),m(c(23,23,"labels.inputs.Activation date")),n(3),m(c(26,25,e.recurringDepositsAccountData.timeline.activatedOnDate)),n(4),m(c(30,27,"labels.inputs.Maturity Date")),n(4),m(c(34,29,e.recurringDepositsAccountData.maturityDate)),n(2),D(e.recurringDepositsAccountData.timeline.closedOnDate||e.recurringDepositsAccountData.summary.totalWitddrawals?35:-1),n(4),m(c(40,31,"labels.inputs.Deposit Frequency")),n(4),m(e.recurringDepositsAccountData.recurringFrequency),n(),u(" ",B(45,33,e.recurringDepositsAccountData.recurringFrequencyType.value,"catalogs")," "),n(2),D(e.recurringDepositsAccountData.minBalanceForInterestCalculation?46:-1),n(),D(e.recurringDepositsAccountData.witdHoldTax?47:-1)}}function Qs(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function Ys(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function Js(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function Xs(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function Zs(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"currency"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Interest Earned")),n(4),m(U(7,4,e.recurringDepositsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function tl(t,s){if(t&1&&(a(0,"div",1)(1,"h4",2),o(2),r(3,"translate"),i(),a(4,"table")(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td",5)(11,"span"),o(12),r(13,"currency"),i()()(),a(14,"tr")(15,"td"),o(16),r(17,"translate"),i(),a(18,"td",5)(19,"span"),o(20),r(21,"currency"),i()()(),a(22,"tr")(23,"td"),o(24),r(25,"translate"),i(),a(26,"td",5)(27,"span"),o(28),r(29,"currency"),i()()(),a(30,"tr")(31,"td"),o(32),r(33,"translate"),i(),a(34,"td",5),x(35,Qs,3,6,"span"),x(36,Ys,3,6,"span"),i()(),a(37,"tr")(38,"td"),o(39),r(40,"translate"),i(),a(41,"td",5),x(42,Js,3,6,"span"),x(43,Xs,3,6,"span"),i()(),x(44,Zs,8,9,"tr"),i()()()),t&2){let e=f();n(2),m(c(3,14,"labels.heading.Performance History")),n(6),m(c(9,16,"labels.inputs.Principal Amount")),n(4),m(U(13,18,e.recurringDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")),n(4),m(c(17,23,"labels.inputs.Maturity Amount")),n(4),m(U(21,25,e.recurringDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")),n(4),m(c(25,30,"labels.inputs.Recurring Deposit Amount")),n(4),m(U(29,32,e.recurringDepositsAccountData==null?null:e.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,e.currency.code,"symbol-narrow","1.2-2")),n(4),m(c(33,37,"labels.inputs.Deposits till Date")),n(3),D(e.recurringDepositsAccountData.summary.totalDeposits?35:-1),n(),D(e.recurringDepositsAccountData.summary.totalDeposits?-1:36),n(3),m(c(40,39,"labels.inputs.Withdrwals till Date")),n(3),D(e.recurringDepositsAccountData.summary.totalWithdrawals?42:-1),n(),D(e.recurringDepositsAccountData.summary.totalWithdrawals?-1:43),n(),D(e.recurringDepositsAccountData.summary.totalInterestEarned>=0?44:-1)}}function el(t,s){if(t&1&&(a(0,"span"),C(1,"mifosx-external-identifier",4),i()),t&2){let e=f(2);n(),d("externalId",Mt(e.recurringDepositsAccountData.externalId))}}function nl(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Not Available")," "))}function il(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Not Activated")))}function al(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),x(3,il,3,3,"span"),i()),t&2){let e=f(2);n(),u("",c(2,2,e.recurringDepositsAccountData.timeline.activatedOnDate)," "),n(2),D(e.recurringDepositsAccountData.timeline.activatedOnDate?-1:3)}}function ol(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Not Activated")))}function rl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),x(3,ol,3,3,"span"),i()),t&2){let e=f(2);n(),u("",c(2,2,e.recurringDepositsAccountData.expectedFirstDepositOnDate)," "),n(2),D(e.recurringDepositsAccountData.expectedFirstDepositOnDate?-1:3)}}function cl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),r(7,"dateFormat"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Maturity Date")),n(4),m(c(7,4,e.recurringDepositsAccountData.maturityDate))}}function pl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function sl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function ll(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Interests Earned")),n(4),A("",e.recurringDepositsAccountData.currency.displaySymbol,"\xA0",e.recurringDepositsAccountData.summary.totalInterestEarned)}}function ml(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"currency"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Total Withdrawls")),n(4),m(U(7,4,e.recurringDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function dl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"number"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Balance Required for Interest Calculation")),n(4),m(c(7,4,e.recurringDepositsAccountData.minBalanceForInterestCalculation))}}function ul(t,s){if(t&1&&(a(0,"div",1)(1,"table")(2,"tbody")(3,"tr")(4,"td"),o(5),r(6,"translate"),i(),a(7,"td"),x(8,el,2,2,"span"),x(9,nl,3,3,"span"),i()(),a(10,"tr")(11,"td"),o(12),r(13,"translate"),i(),a(14,"td"),x(15,al,4,4,"span"),x(16,rl,4,4,"span"),i()(),a(17,"tr")(18,"td"),o(19),r(20,"translate"),i(),a(21,"td")(22,"span"),o(23),i()()(),x(24,cl,8,6,"tr"),a(25,"tr")(26,"td"),o(27),r(28,"translate"),i(),a(29,"td",5),x(30,pl,3,6,"span"),x(31,sl,3,6,"span"),i()(),a(32,"tr")(33,"td"),o(34),r(35,"translate"),i(),a(36,"td",5),o(37),r(38,"currency"),i()(),a(39,"tr")(40,"td"),o(41),r(42,"translate"),i(),a(43,"td",5),o(44),r(45,"currency"),i()(),x(46,ll,7,5,"tr"),x(47,ml,8,9,"tr"),x(48,dl,8,6,"tr"),i()()()),t&2){let e=f();n(5),m(c(6,20,"labels.inputs.External Id")),n(3),D(e.recurringDepositsAccountData.externalId?8:-1),n(),D(e.recurringDepositsAccountData.externalId?-1:9),n(3),m(c(13,22,"labels.inputs.Date of Deposit")),n(3),D(e.recurringDepositsAccountData.expectedFirstDepositOnDate?-1:15),n(),D(e.recurringDepositsAccountData.expectedFirstDepositOnDate?16:-1),n(3),m(c(20,24,"labels.inputs.Period")),n(4),A("",e.recurringDepositsAccountData.depositPeriod,"\xA0",e.recurringDepositsAccountData.depositPeriodFrequency.value),n(),D(e.recurringDepositsAccountData.maturityDate?24:-1),n(3),m(c(28,26,"labels.inputs.Total Deposits")),n(3),D(e.recurringDepositsAccountData.summary.totalDeposits?30:-1),n(),D(e.recurringDepositsAccountData.summary.totalDeposits?-1:31),n(3),m(c(35,28,"labels.inputs.Actual Available Balance")),n(3),u(" ",U(38,30,e.recurringDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),m(c(42,35,"labels.inputs.Recurring Deposit Amount")),n(3),u(" ",U(45,37,e.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),n(2),D(e.recurringDepositsAccountData.summary.totalInterestEarned?46:-1),n(),D(e.recurringDepositsAccountData.summary.totalWithdrawals?47:-1),n(),D(e.recurringDepositsAccountData.minBalanceForInterestCalculation?48:-1)}}function gl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2"))}}function Cl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function _l(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"currency"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Maturity Amount")),n(4),m(U(7,4,e.recurringDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2"))}}function fl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function hl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function xl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td"),o(5),r(6,"dateFormat"),i()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Closed on Date")),n(3),u(" ",c(6,4,e.recurringDepositsAccountData.timeline.closedOnDate)," ")}}function Dl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(3);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalInterestPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function bl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(3);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function vl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5),x(5,Dl,3,6,"span"),x(6,bl,3,6,"span"),i()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Interests Posted")),n(3),D(e.recurringDepositsAccountData.summary.totalInterestPosted?5:-1),n(),D(e.recurringDepositsAccountData.summary.totalInterestPosted?-1:6)}}function Pl(t,s){if(t&1&&(a(0,"div",1)(1,"table")(2,"tbody")(3,"tr")(4,"td"),o(5),r(6,"translate"),i(),a(7,"td",5),x(8,gl,3,6,"span"),x(9,Cl,3,6,"span"),i()(),a(10,"tr")(11,"td"),o(12),r(13,"translate"),i(),a(14,"td",5)(15,"span"),o(16),r(17,"formatNumber"),i()()(),x(18,_l,8,9,"tr"),a(19,"tr")(20,"td"),o(21),r(22,"translate"),i(),a(23,"td",5),x(24,fl,3,6,"span"),x(25,hl,3,6,"span"),i()(),x(26,xl,7,6,"tr"),a(27,"tr")(28,"td"),o(29),r(30,"translate"),i(),a(31,"td"),o(32),r(33,"translateKey"),i()(),x(34,vl,7,5,"tr"),i()()()),t&2){let e=f();n(5),m(c(6,14,"labels.inputs.Principal Amount")),n(3),D(e.recurringDepositsAccountData.depositAmount?8:-1),n(),D(e.recurringDepositsAccountData.depositAmount?-1:9),n(3),m(c(13,16,"labels.inputs.Rate of Interest")),n(4),u("",c(17,18,e.recurringDepositsAccountData.nominalAnnualInterestRate)," %"),n(2),D(e.recurringDepositsAccountData.maturityDate?18:-1),n(3),m(c(22,20,"labels.inputs.Total Withdrawls")),n(3),D(e.recurringDepositsAccountData.summary.totalWithdrawals?24:-1),n(),D(e.recurringDepositsAccountData.summary.totalWithdrawals?-1:25),n(),D(e.recurringDepositsAccountData.timeline.closedOnDate?26:-1),n(3),m(c(30,22,"labels.inputs.Deposits Frequency")),n(3),A(" ",e.recurringDepositsAccountData.recurringFrequency,"\xA0",B(33,24,e.recurringDepositsAccountData.recurringFrequencyType.value,"catalogs")," "),n(2),D(e.recurringDepositsAccountData.summary.totalInterestEarned?34:-1)}}function Tl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),r(7,"translateKey"),i()()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Pre-closure penal Interest (less)")),n(4),A("",e.recurringDepositsAccountData.preClosurePenalInterest," % on ",B(7,5,e.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"catalogs"))}}function Sl(t,s){if(t&1&&(a(0,"div",1)(1,"h4",2),o(2),r(3,"translate"),i(),a(4,"table")(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td",5),o(11),r(12,"formatNumber"),i()(),a(13,"tr")(14,"td"),o(15),r(16,"translate"),i(),a(17,"td")(18,"span"),o(19),r(20,"translateKey"),i()()(),a(21,"tr")(22,"td"),o(23),r(24,"translate"),i(),a(25,"td")(26,"span"),o(27),r(28,"translateKey"),i()()(),a(29,"tr")(30,"td"),o(31),r(32,"translate"),i(),a(33,"td")(34,"span"),o(35),r(36,"translateKey"),i()()(),a(37,"tr")(38,"td"),o(39),r(40,"translate"),i(),a(41,"td")(42,"span"),o(43),r(44,"translateKey"),i()()(),x(45,Tl,8,8,"tr"),i()()()),t&2){let e=f();n(2),m(c(3,12,"labels.heading.Interest Details")),n(6),m(c(9,14,"labels.inputs.Interest Rate")),n(3),u("",c(12,16,e.recurringDepositsAccountData.nominalAnnualInterestRate)," %"),n(4),m(c(16,18,"labels.inputs.Interest Compounding Period")),n(4),m(B(20,20,e.recurringDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),n(4),m(c(24,23,"labels.inputs.Interest Posting Period")),n(4),m(B(28,25,e.recurringDepositsAccountData.interestPostingPeriodType.value,"catalogs")),n(4),m(c(32,28,"labels.inputs.Interest calculated using")),n(4),m(B(36,30,e.recurringDepositsAccountData.interestCalculationType.value,"catalogs")),n(4),m(c(40,33,"labels.inputs.Days in Year")),n(4),m(B(44,35,e.recurringDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),n(2),D(e.recurringDepositsAccountData.preClosurePenalApplicable?45:-1)}}function Ml(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),r(7,"translateKey"),i()()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Pre-closure penal Interest (less)")),n(4),A("",e.recurringDepositsAccountData.preClosurePenalInterest," % on ",B(7,5,e.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"catalogs"))}}function Al(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Witdhold Tax Group")),n(4),m(e.recurringDepositsAccountData.taxGroup.name)}}function yl(t,s){if(t&1&&(a(0,"div",1)(1,"table")(2,"tbody")(3,"tr")(4,"td"),o(5),r(6,"translate"),i(),a(7,"td")(8,"span"),o(9),r(10,"translateKey"),i()()(),a(11,"tr")(12,"td"),o(13),r(14,"translate"),i(),a(15,"td")(16,"span"),o(17),r(18,"translateKey"),i()()(),a(19,"tr")(20,"td"),o(21),r(22,"translate"),i(),a(23,"td")(24,"span"),o(25),r(26,"translateKey"),i()()(),a(27,"tr")(28,"td"),o(29),r(30,"translate"),i(),a(31,"td")(32,"span"),o(33),r(34,"translateKey"),i()()(),x(35,Ml,8,8,"tr"),x(36,Al,7,4,"tr"),i()()()),t&2){let e=f();n(5),m(c(6,10,"labels.inputs.Interest Compounding Period")),n(4),m(B(10,12,e.recurringDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),n(4),m(c(14,15,"labels.inputs.Interest Posting Period")),n(4),m(B(18,17,e.recurringDepositsAccountData.interestPostingPeriodType.value,"catalogs")),n(4),m(c(22,20,"labels.inputs.Interest calculated using")),n(4),m(B(26,22,e.recurringDepositsAccountData.interestCalculationType.value,"catalogs")),n(4),m(c(30,25,"labels.inputs.Days in Year")),n(4),m(B(34,27,e.recurringDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),n(2),D(e.recurringDepositsAccountData.preClosurePenalApplicable?35:-1),n(),D(e.recurringDepositsAccountData.witdHoldTax?36:-1)}}var vn=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.isprematureAllowed=!1,this.route.parent.data.subscribe(e=>{this.recurringDepositsAccountData=e.recurringDepositsAccountData,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=e.recurringDepositsAccountData.maturityDate!=null,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-general-tab"]],decls:8,vars:6,consts:[[1,"recurring-deposits-account-tables","layout-row","gap-2percent"],[1,"flex-49"],[1,"table-headers"],[1,"m-r-5"],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(l,p){l&1&&(a(0,"div",0),x(1,Ks,48,36,"div",1),x(2,tl,45,41,"div",1),x(3,ul,49,42,"div",1),x(4,Pl,35,27,"div",1),i(),a(5,"div",0),x(6,Sl,46,38,"div",1),x(7,yl,37,30,"div",1),i()),l&2&&(n(),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?1:-1),n(),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?2:-1),n(),D(p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval?3:-1),n(),D(p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval?4:-1),n(2),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?6:-1),n(),D(p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval?7:-1))},dependencies:[I,R,ti,Ge,Se,It,w,Rt,Wt],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return t})();var Ol=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:pn,resolve:{recurringDepositsAccountTemplate:yn}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:en,resolve:{recurringDepositsAccountData:An,savingsDatatables:Sn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:vn,data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:nn,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:an,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:rn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:on,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:cn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Tn}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:bn,resolve:{recurringDepositsAccountAndTemplate:In}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:xn,resolve:{recurringDepositsAccountTransaction:Rn}},{path:"edit",component:Dn,resolve:{recurringDepositsAccountTransactionTemplate:wn}}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:hn,resolve:{recurringDepositsAccountActionData:On}}]},{path:":recurringDepositAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-WS265DLT.js").then(t=>t.AccountTransfersModule)}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-WS265DLT.js").then(t=>t.AccountTransfersModule)}]}]}],mi=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=qe({type:t})}static{this.\u0275inj=Ne({providers:[li,An,Tn,Sn,yn,On,In,Rn,wn],imports:[Pn.forChild(Ol),Pn]})}}return t})();var xf=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=qe({type:t})}static{this.\u0275inj=Ne({imports:[pi,ii,ai,mi,en,nn,an,on,rn,cn,pn,se,le,me,Fe,de,ke,hn,sn,ln,mn,dn,un,gn,Kt,bn,Cn,_n,fn,xn,Dn,vn]})}}return t})();export{xf as RecurringDepositsModule}; +import{a as Tn,b as Sn}from"./chunk-E6PLTH6T.js";import{a as si}from"./chunk-3NGD4RPL.js";import{$d as ce,$f as ni,Ad as Kn,Bc as Vn,Bd as et,Bg as ci,Cc as qn,Cd as gt,Cf as Jn,Da as v,Db as Ge,Dc as Xt,Df as Xn,Ea as P,Eb as Se,Ec as Gn,Ef as Zn,Fb as I,Fc as Hn,Fd as ht,G as At,Ga as y,Gc as Un,Gd as nt,H as Ne,Hc as $n,Hd as Lt,Ia as T,Id as Ct,Ja as f,Jd as yt,Jg as Ee,K as _,Kg as pi,L as S,Lc as Ie,Ld as Ot,M,Mc as w,Na as Pt,Nd as oe,Oa as Tt,Ob as Jt,Od as xt,Pa as St,Pd as Dt,Qa as E,Qd as bt,Qe as Qn,Rb as Fn,Rc as X,Rd as He,Sc as $,Sd as It,T as Yt,Td as Rt,Ua as o,Ud as re,Uf as ti,Va as m,Wa as u,Wc as mt,Xa as A,Xc as q,Xd as _t,Ya as ae,Yc as Z,Zb as Me,Zc as ot,Ze as We,Zf as ei,_ as En,_b as Ae,_d as Ce,_e as Yn,_f as Wt,ac as ee,ad as tt,ag as Xe,bb as Mt,bc as ne,bf as Ke,bg as ii,ca as n,cc as ye,cd as rt,cf as Qe,da as Ve,dd as Re,de as Ue,df as Ye,eb as K,ed as zn,ef as Je,fb as ge,fd as ct,ff as Zt,fg as pe,ge as $e,gf as jt,hb as r,hc as N,he as ze,hf as wt,ib as c,ic as kn,id as pt,ie as Le,if as Et,ja as O,jb as B,jf as Bt,ka as qe,kc as W,lb as U,lc as Q,ld as dt,lf as Ft,mc as Nn,mf as kt,na as h,nc as Pn,ne as je,of as Nt,pa as De,pb as Bn,pd as st,pf as Vt,pg as ai,qb as be,qc as Oe,qg as Ze,ra as x,rc as V,rd as R,rf as qt,rg as we,sa as D,sb as ve,sd as Y,sf as Gt,ta as z,tb as Pe,td as Ln,ua as L,ud as jn,uf as Ht,ug as oi,va as j,vd as ut,wa as d,xa as a,xd as ft,xf as _e,ya as i,yd as Wn,za as C,zb as Te,zg as ri}from"./chunk-BJA4FJSH.js";import{a as F,b as J}from"./chunk-PHUH23IY.js";var k=(()=>{class t{constructor(){this.http=_(Fn)}getRecurringDepositsAccountData(e){let l=new Jt().set("associations","all");return this.http.get(`/recurringdepositaccounts/${e}`,{params:l})}getStandingInstructions(e,l,p,g,b){let G=new Jt().set("clientId",e).set("clientName",l).set("fromAccountId",p).set("fromAccountType","2").set("locale",g).set("dateFormat",b);return this.http.get("/standinginstructions",{params:G})}getRecurringDepositsAccountTemplate(e,l){let p=new Jt().set("clientId",e);return p=l?p.set("productId",l):p,this.http.get("/recurringdepositaccounts/template",{params:p})}createRecurringDepositAccount(e){return this.http.post("/recurringdepositaccounts",e)}executeRecurringDepositsAccountCommand(e,l,p){let g=new Jt().set("command",l);return l==="deposit"||l==="withdrawal"?this.http.post(`/recurringdepositaccounts/${e}/transactions`,p,{params:g}):this.http.post(`/recurringdepositaccounts/${e}`,p,{params:g})}deleteRecurringDepositsAccount(e){return this.http.delete(`/recurringdepositaccounts/${e}`)}getRecurringDepositsAccountAndTemplate(e){let l=new Jt().set("associations","charges").set("template","true");return this.http.get(`/recurringdepositaccounts/${e}`,{params:l})}updateRecurringDepositAccount(e,l){return this.http.put(`/recurringdepositaccounts/${e}`,l)}getRecurringDepositAccountActionResource(e,l){let p=new Jt().set("command",l);return this.http.get(`/recurringdepositaccounts/${e}/template`,{params:p})}getRecurringDepositAccountTransactionTemplateResource(e,l){let p=new Jt().set("command",l);return this.http.get(`/recurringdepositaccounts/${e}/transactions/template`,{params:p})}getRecurringDepositsAccountTransaction(e,l){return this.http.get(`/recurringdepositaccounts/${e}/transactions/${l}`)}getRecurringDepositsAccountTransactionTemplate(e,l){let p=new Jt().set("template","true");return this.http.get(`/recurringdepositaccounts/${e}/transactions/${l}`,{params:p})}executeRecurringDepositsAccountTransactionsCommand(e,l,p,g){let b=new Jt().set("command",l);return this.http.post(`/recurringdepositaccounts/${e}/transactions/${g}`,p,{params:b})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var tn=class{constructor(s){this.setOptions(s),this.setButtons(s)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(s){switch(s){case"Active":this.buttonsArray=[{name:"Deposit",icon:"fa fa-arrow-up",taskPermissionName:"DEPOSIT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawal",icon:"fa fa-arrow-down",taskPermissionName:"WITHDRAWAL_RECURRINGDEPOSITACCOUNT"},{name:"Premature Close",icon:"fa fa-arrow-left",taskPermissionName:"PREMATURECLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Undo Activation",icon:"fa fa-undo",taskPermissionName:"UNDO_ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"fa fa-edit",taskPermissionName:"UPDATE_RECURRINGDEPOSITACCOUNT"},{name:"Approve",icon:"fa fa-check",taskPermissionName:"APPROVE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"fa fa-undo",taskPermissionName:"APPROVALUNDO_RECURRINGDEPOSITACCOUNT"},{name:"Activate",icon:"fa fa-check",taskPermissionName:"ACTIVATE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.buttonsArray=[{name:"Close",icon:"fa fa-arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"},{name:"Calculate Interest",icon:"fa fa-calculator",taskPermissionName:"CALCULATEINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Post Interest",icon:"fa fa-money",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(s){switch(s){case"Active":this.optionArray=[{name:"Post Interest",icon:"table",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"POSTINTEREST_RECURRINGDEPOSITACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",icon:"ban",taskPermissionName:"REJECT_RECURRINGDEPOSITACCOUNT"},{name:"Withdrawn by Client",icon:"arrow-down",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"},{name:"Delete",icon:"trash",taskPermissionName:"DELETE_RECURRINGDEPOSITACCOUNT"}];break;case"Matured":this.optionArray=[{name:"Add Charge",icon:"plus",taskPermissionName:"ADDCHARGE_RECURRINGDEPOSITACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(s){this.optionArray.push(s)}addButton(s){this.buttonsArray.push(s)}};var di=()=>({confirm:!0}),Kt=(()=>{class t{constructor(){this.dialogRef=_(Vn),this.data=_(qn)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposit-confirmation-action"]],decls:12,vars:10,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(l,p){l&1&&(a(0,"h1",0),o(1),i(),a(2,"div",1)(3,"p"),o(4),i()(),a(5,"mat-dialog-actions",2)(6,"button",3),o(7),r(8,"translate"),i(),a(9,"button",4),o(10),r(11,"translate"),i()()),l&2&&(n(),m(p.data.heading),n(3),m(p.data.dialogContext),n(3),m(c(8,5,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",K(9,di)),n(),u(" ",c(11,7,"labels.buttons.Confirm")," "))},dependencies:[I,R,V,Hn,Un,$n,Gn,w],encapsulation:2})}}return t})();var ui=()=>["./general"],gi=()=>["./interest-rate-chart"],Ci=()=>["./charges"],_i=()=>["./transactions"],fi=()=>["./standing-instructions-tab"],hi=t=>["./datatables",t];function xi(t,s){if(t&1&&(a(0,"span",20),C(1,"mifosx-account-number",18),i()),t&2){let e=f();n(),d("accountNo",Mt(e.recurringDepositsAccountData.clientAccountNo))}}function Di(t,s){if(t&1&&(a(0,"div",21)(1,"h3"),o(2),r(3,"translate"),i(),a(4,"table",19)(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td",30),o(11),r(12,"currency"),i()(),a(13,"tr")(14,"td"),o(15),r(16,"translate"),i(),a(17,"td",30),o(18),r(19,"currency"),i()(),a(20,"tr")(21,"td"),o(22),r(23,"translate"),i(),a(24,"td",30),o(25),r(26,"number"),i()()()()()),t&2){let e=f();n(2),m(c(3,7,"labels.heading.Account Overview")),n(6),m(c(9,9,"labels.inputs.Current Balance")),n(3),u(" ",U(12,11,e.recurringDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),m(c(16,16,"labels.inputs.Deposit Amount")),n(3),u(" ",U(19,18,e.recurringDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),m(c(23,23,"labels.inputs.Deposit Period")),n(3),m(c(26,25,e.recurringDepositsAccountData.depositPeriod))}}function bi(t,s){if(t&1){let e=y();a(0,"button",32),T("click",function(){S(e);let p=f().$implicit,g=f();return M(g.doAction(p.name))}),C(1,"i",33),o(2),r(3,"translate"),i()}if(t&2){let e=f().$implicit;n(),d("ngClass",Mt(e.icon)),n(),u(" ",c(3,3,"labels.menus."+e.name)," ")}}function vi(t,s){if(t&1&&h(0,bi,4,5,"button",31),t&2){let e=s.$implicit;d("mifosxHasPermission",e.taskPermissionName)}}function Pi(t,s){if(t&1){let e=y();a(0,"button",32),T("click",function(){S(e);let p=f().$implicit,g=f(2);return M(g.doAction(p.name))}),o(1),r(2,"translate"),i()}if(t&2){let e=f().$implicit;n(),u(" ",c(2,1,"labels.menus."+e.name)," ")}}function Ti(t,s){if(t&1&&(a(0,"span"),h(1,Pi,3,3,"button",31),i()),t&2){let e=s.$implicit;n(),d("mifosxHasPermission",e.taskPermissionName)}}function Si(t,s){if(t&1&&(a(0,"button",34),o(1),r(2,"translate"),i(),a(3,"mat-menu",null,5),L(5,Ti,2,1,"span",null,z),i()),t&2){let e=E(4),l=f();d("matMenuTriggerFor",e),n(),m(c(2,2,"labels.menus.More")),n(4),j(l.buttonConfig.options)}}function Mi(t,s){if(t&1&&(a(0,"a",29,6),o(2),r(3,"translate"),i()),t&2){let e=E(1);d("routerLink",K(5,_i))("active",e.isActive),n(2),u(" ",c(3,3,"labels.inputs.Transactions")," ")}}function Ai(t,s){if(t&1&&(a(0,"a",29,7),o(2),r(3,"translate"),i()),t&2){let e=E(1);d("routerLink",K(5,fi))("active",e.isActive),n(2),u(" ",c(3,3,"labels.inputs.Standing Instructions")," ")}}function yi(t,s){if(t&1&&(a(0,"a",29,8),o(2),i()),t&2){let e=E(1),l=f().$implicit;d("routerLink",ge(3,hi,l.registeredTableName))("active",e.isActive),n(2),u(" ",l.registeredTableName," ")}}function Oi(t,s){if(t&1&&h(0,yi,3,5,"a",35),t&2){let e=s.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}var en=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.recurringDepositsService=_(k),this.savingsService=_(pe),this.dialog=_(Xt),this.translateService=_(Ie),this.showTransactions=!1,this.route.data.subscribe(e=>{this.recurringDepositsAccountData=e.recurringDepositsAccountData,this.charges=this.recurringDepositsAccountData.charges,this.savingsDatatables=e.savingsDatatables,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=e.recurringDepositsAccountData.maturityDate!=null,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center");let l=e.recurringDepositsAccountData.status;this.showTransactions=l.id>=300})}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){let e=this.recurringDepositsAccountData.status.value;this.buttonConfig=new tn(e),this.recurringDepositsAccountData.clientId&&this.recurringDepositsAccountData.status.value==="Matured"&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.recurringDepositsAccountData.charges&&this.recurringDepositsAccountData.status.value==="Matured"&&this.charges.forEach(l=>{l.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.recurringDepositsAccountData.clientId&&this.recurringDepositsAccountData.status.value==="Active"&&(this.recurringDepositsAccountData.allowWithdrawal===!0&&this.buttonConfig.addOption({name:"Withdrawal",taskPermissionName:"WITHDRAW_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.charges&&this.charges.forEach(l=>{l.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.isprematureAllowed||this.buttonConfig.addButton({name:"Close",icon:"arrow-right",taskPermissionName:"CLOSE_RECURRINGDEPOSITACCOUNT"}),this.recurringDepositsAccountData.taxGroup&&(this.recurringDepositsAccountData.withHoldTax?this.buttonConfig.addOption({name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}):this.buttonConfig.addOption({name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"})))}reload(){let e=this.recurringDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/recurring-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}doAction(e){switch(e){case"Activate":case"Undo Activation":case"Approve":case"Reject":case"Undo Approval":case"Add Charge":case"Withdrawn by Client":case"Premature Close":case"Close":case"Deposit":case"Withdrawal":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit-recurring-deposit-account"],{relativeTo:this.route});break;case"Delete":this.deleteRecurringDepositsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break}}deleteRecurringDepositsAccount(){this.dialog.open(ce,{data:{deleteContext:`Recurring deposit account with id: ${this.recurringDepositsAccountData.id}`}}).afterClosed().subscribe(l=>{l.delete&&this.recurringDepositsService.deleteRecurringDepositsAccount(this.recurringDepositsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Calculate Interest"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to calculate interest ?")}}).afterClosed().subscribe(l=>{l.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Post Interest"),dialogContext:this.translateService.instant("labels.text.Are you sure you want to post interest")+" ?"}}).afterClosed().subscribe(l=>{l.confirm&&this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.recurringDepositsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Enable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Enable withhold tax for this account ?")}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Disable Withhold Tax"),dialogContext:this.translateService.instant("labels.dialogContext.Disable withhold tax for this account ?")}}).afterClosed().subscribe(l=>{l.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.recurringDepositsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-view"]],decls:53,vars:47,consts:[["accountMenu","matMenu"],["general","routerLinkActive"],["IRC","routerLinkActive"],["charges","routerLinkActive"],["tabPanel",""],["More","matMenu"],["transactions","routerLinkActive"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[3,"accountNo"],[1,"account-overview"],[1,"m-l-10"],[1,"flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],[3,"ngClass"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(l,p){if(l&1&&(a(0,"mat-card",9)(1,"mat-card-header",10)(2,"mat-card-title-group",11)(3,"div",12)(4,"div"),C(5,"img",13),r(6,"translate"),i()(),a(7,"div",14)(8,"mat-card-title")(9,"div",15)(10,"div",16)(11,"h3"),C(12,"i",17),r(13,"statusLookup"),o(14),r(15,"translate"),C(16,"mifosx-account-number",18),i(),a(17,"span",19),o(18),r(19,"translate"),r(20,"translate"),x(21,xi,2,2,"span",20),i()(),x(22,Di,27,27,"div",21),a(23,"div",22)(24,"button",23)(25,"mat-icon",24),C(26,"fa-icon",25),i()()()()()(),a(27,"mat-menu",null,0),L(29,vi,1,1,"button",26,z),x(31,Si,7,4),i()()(),a(32,"mat-card-content",27)(33,"nav",28)(34,"a",29,1),o(36),r(37,"translate"),i(),a(38,"a",29,2),o(40),r(41,"translate"),i(),x(42,Mi,4,6,"a",29),a(43,"a",29,3),o(45),r(46,"translate"),i(),x(47,Ai,4,6,"a",29),L(48,Oi,1,1,"a",29,z),i(),a(50,"mat-tab-nav-panel",null,4),C(52,"router-outlet"),i()()()),l&2){let g=E(28),b=E(35),G=E(39),ue=E(44),ie=E(51);n(5),d("matTooltip",Mt(c(6,28,"tooltips.Recurring Deposits Account")))("src","assets/images/recurring-deposits_account_placeholder.png",En),n(7),d("ngClass",c(13,30,p.recurringDepositsAccountData.status.code))("matTooltip",p.recurringDepositsAccountData.status.value),n(2),A(" ",c(15,32,"labels.inputs.Recurring Deposit")," : ",p.recurringDepositsAccountData.depositProductName," "),n(2),d("accountNo",Mt(p.recurringDepositsAccountData.accountNo)),n(2),ae(" ",c(19,34,"labels.text."+p.entityType)," ",c(20,36,"labels.inputs.name"),": ",p.recurringDepositsAccountData.clientName||p.recurringDepositsAccountData.groupName," "),n(3),D(p.recurringDepositsAccountData.clientAccountNo?21:-1),n(),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?22:-1),n(2),d("matMenuTriggerFor",g),n(5),j(p.buttonConfig.singleButtons),n(2),D(p.buttonConfig.options.length?31:-1),n(2),d("tabPanel",ie),n(),d("routerLink",K(44,ui))("active",b.isActive),n(2),u(" ",c(37,38,"labels.inputs.General")," "),n(2),d("routerLink",K(45,gi))("active",G.isActive),n(2),u(" ",c(41,40,"labels.inputs.Interest Rate Chart")," "),n(2),D(p.showTransactions?42:-1),n(),d("routerLink",K(46,Ci))("active",ue.isActive),n(2),u(" ",c(46,42,"labels.inputs.Charges")," "),n(2),D(p.recurringDepositsAccountData.clientId?47:-1),n(),j(p.savingsDatatables)}},dependencies:[I,be,R,Q,Y,ut,re,Wn,jn,Kn,oe,Ln,ri,Oe,Le,je,_t,ze,$e,Jn,Xn,Nn,Zn,kn,Ge,Se,w,ni],encapsulation:2})}}return t})();function Ii(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Period")))}function Ri(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),ae(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",B(2,3,e.periodType.value,"catalogs")," ")}}function wi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount Range")))}function Ei(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"formatNumber"),r(3,"formatNumber"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function Bi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Fi(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u("",c(2,1,e.annualInterestRate)," %")}}function ki(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Description")))}function Ni(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),m(e.description)}}function Vi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function qi(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",21),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function Gi(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",22),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Hi(t,s){if(t&1){let e=y();a(0,"td",18)(1,"button",19),T("click",function(){let p=S(e).dataIndex,g=f();return M(g.expandChartSlabIndex=g.expandChartSlabIndex===p?null:p)}),h(2,qi,4,3,"span",20)(3,Gi,4,3,"span",20),i()()}if(t&2){let e=s.dataIndex,l=f();n(2),d("ngIf",l.expandChartSlabIndex!==e),n(),d("ngIf",l.expandChartSlabIndex===e)}}function Ui(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Entity Type")))}function $i(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.entityType.value," ")}}function zi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Name")))}function Li(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.attributeName.value," ")}}function ji(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Condition Type")))}function Wi(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"titlecase"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.conditionType.value)," ")}}function Ki(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Value")))}function Qi(t,s){if(t&1&&(a(0,"td",35),o(1),i()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),n(),u(" ",e.attributeValueDesc," ")}}function Yi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Incentive Type")))}function Ji(t,s){if(t&1&&(a(0,"td",18),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.incentiveType.value," ")}}function Xi(t,s){t&1&&(a(0,"th",17),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Zi(t,s){if(t&1&&(a(0,"td",18),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function ta(t,s){t&1&&C(0,"tr",36)}function ea(t,s){t&1&&C(0,"tr",37)}function na(t,s){if(t&1&&(a(0,"table",27),v(1,28),h(2,Ui,3,3,"th",7)(3,$i,2,1,"td",8),P(),v(4,29),h(5,zi,3,3,"th",7)(6,Li,2,1,"td",8),P(),v(7,30),h(8,ji,3,3,"th",7)(9,Wi,3,3,"td",8),P(),v(10,31),h(11,Ki,3,3,"th",7)(12,Qi,2,2,"td",32),P(),v(13,33),h(14,Yi,3,3,"th",7)(15,Ji,2,1,"td",8),P(),v(16,34),h(17,Xi,3,3,"th",7)(18,Zi,3,3,"td",8),P(),h(19,ta,1,0,"tr",14)(20,ea,1,0,"tr",15),i()),t&2){let e=f().$implicit,l=f();d("dataSource",e.incentives),n(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),n(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function ia(t,s){if(t&1&&(a(0,"td",18)(1,"div",23)(2,"mat-card",24)(3,"h4",25),o(4),r(5,"translate"),i(),h(6,na,21,3,"table",26),i()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=f();De("colspan",p.chartSlabsDisplayedColumns.length),n(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),n(3),u(" ",c(5,4,"labels.heading.Incentives")," "),n(2),d("ngIf",e.incentives==null?null:e.incentives.length)}}function aa(t,s){t&1&&C(0,"tr",36)}function oa(t,s){t&1&&C(0,"tr",37)}function ra(t,s){t&1&&C(0,"tr",38)}var nn=(()=>{class t{constructor(){this.route=_(N),this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"],this.route.parent.data.subscribe(e=>{this.interestRateChartData=e.recurringDepositsAccountData.accountChart.chartSlabs})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-interest-rate-chart-tab"]],decls:29,vars:7,consts:[["chartsTable",""],[1,"tab-container","mat-typography"],[1,"align-start"],[1,"m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","","multiTemplateDataRows","",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-fill","incentives"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","flex-fill mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),o(4),r(5,"translate"),i()()(),a(6,"div",4)(7,"table",5,0),v(9,6),h(10,Ii,3,3,"th",7)(11,Ri,3,6,"td",8),P(),v(12,9),h(13,wi,3,3,"th",7)(14,Ei,4,6,"td",8),P(),v(15,10),h(16,Bi,3,3,"th",7)(17,Fi,3,3,"td",8),P(),v(18,11),h(19,ki,3,3,"th",7)(20,Ni,2,1,"td",8),P(),v(21,12),h(22,Vi,3,3,"th",7)(23,Hi,4,2,"td",8),P(),v(24,13),h(25,ia,7,6,"td",8),P(),h(26,aa,1,0,"tr",14)(27,oa,1,0,"tr",15)(28,ra,1,0,"tr",16),i()()()),l&2&&(n(4),m(c(5,5,"labels.heading.All Interest Rates")),n(3),d("dataSource",p.interestRateChartData),n(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns))},dependencies:[I,ve,Pe,R,Y,V,wt,Ft,Bt,kt,Et,Nt,_t,Vt,Gt,qt,Ht,Te,w,Rt,Wt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Me("expandChartSlab",[ne("collapsed",ee({height:"0px",minHeight:"0"})),ne("expanded",ee({height:"*"})),ye("expanded <=> collapsed",Ae("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var pa=t=>["/","journal-entry","view",t];function sa(t,s){if(t&1){let e=y();a(0,"div",5)(1,"mat-checkbox",23),T("click",function(){S(e);let p=f();return M(p.hideReversed())}),o(2),r(3,"translate"),i(),a(4,"mat-checkbox",23),T("click",function(){S(e);let p=f();return M(p.hideAccruals())}),o(5),r(6,"translate"),i()()}if(t&2){let e=f();n(),d("formControl",e.hideReversedParam),n(),u(" ",c(3,4,"labels.inputs.Hide Reversed")),n(2),d("formControl",e.hideAccrualsParam),n(),u(" ",c(6,6,"labels.inputs.Hide Accruals"))}}function la(t,s){t&1&&(a(0,"th",24),o(1,"#"),i())}function ma(t,s){if(t&1){let e=y();a(0,"td",25),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.index;n(),u(" ",e+1," ")}}function da(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.ID")))}function ua(t,s){if(t&1){let e=y();a(0,"td",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",e.id," ")}}function ga(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Transaction Date")))}function Ca(t,s){if(t&1){let e=y();a(0,"td",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),r(2,"dateFormat"),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",c(2,2,e.date)," ")}}function _a(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Transaction Type")))}function fa(t,s){if(t&1){let e=y();a(0,"td",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",e.transactionType.value," ")}}function ha(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Debit")))}function xa(t,s){if(t&1){let e=y();a(0,"td",28),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",l.isDebit(e.transactionType)?e.amount:"N/A"," ")}}function Da(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Credit")))}function ba(t,s){if(t&1){let e=y();a(0,"td",28),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",l.isDebit(e.transactionType)?"N/A":e.amount," ")}}function va(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Balance")))}function Pa(t,s){if(t&1){let e=y();a(0,"td",28),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),o(1),r(2,"formatNumber"),i()}if(t&2){let e=s.$implicit,l=f();d("ngClass",l.savingsTransactionColor(e)),n(),u(" ",c(2,2,e.runningBalance)," ")}}function Ta(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function Sa(t,s){if(t&1){let e=y();a(0,"td",29)(1,"button",30)(2,"mat-icon"),o(3,"more_vert"),i()(),a(4,"mat-menu",null,0)(6,"button",31),T("click",function(){let p=S(e).$implicit,g=f();return M(g.showTransactions(p))}),a(7,"mat-icon"),C(8,"fa-icon",32),i(),a(9,"span"),o(10),r(11,"translate"),i()(),a(12,"button",33),T("click",function(p){S(e);let g=f();return M(g.routeEdit(p))}),a(13,"mat-icon"),C(14,"fa-icon",34),i(),a(15,"span"),o(16),r(17,"translate"),i()()()()}if(t&2){let e=s.$implicit,l=E(5);n(),d("matMenuTriggerFor",l),n(9),m(c(11,4,"labels.text.View Transaction")),n(2),d("routerLink",ge(8,pa,"S"+e.id)),n(4),m(c(17,6,"tooltips.View Journal Entries"))}}function Ma(t,s){t&1&&C(0,"tr",35)}function Aa(t,s){t&1&&C(0,"tr",36)}var an=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.displayedColumns=["row","id","transactionDate","transactionType","debit","credit","balance","actions"],this.route.parent.data.subscribe(e=>{this.transactionsData=e.recurringDepositsAccountData.transactions,this.status=e.recurringDepositsAccountData.status.value})}ngOnInit(){this.dataSource=new _e(this.transactionsData),this.hideAccrualsParam=new tt(!1),this.hideReversedParam=new tt(!1)}isDebit(e){return e.withdrawal===!0||e.feeDeduction===!0||e.overdraftInterest===!0||e.withholdTax===!0}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,!this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(!this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,l){let p=this.transactionsData;(l||e)&&(p=this.transactionsData.filter(g=>!(e&&g.reversed)&&!(l&&g.transactionType.accrual))),this.dataSource=new _e(p),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}checkStatus(){return this.status==="Active"||this.status==="Closed"||this.status==="Transfer in progress"||this.status==="Transfer on hold"||this.status==="Premature Closed"||this.status==="Matured"}showTransactions(e){e.transfer?this.router.navigate([`../transfer-funds/account-transfers/${e.transfer.id}`],{relativeTo:this.route}):this.router.navigate([e.id],{relativeTo:this.route})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(l,p){if(l&1&&(Pt(Qn,7),Pt(Yn,7)),l&2){let g;Tt(g=St())&&(p.paginator=g.first),Tt(g=St())&&(p.sort=g.first)}},decls:35,vars:7,consts:[["transactionMenu","matMenu"],[1,"tab-container","mat-typography"],[1,"mat-elevation-z1","m-b-25"],[1,"layout-row","align-start"],[1,"m-b-20"],[1,"action-button","m-b-20","layout-row","gap-20px"],["mat-table","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","id"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","transactionDate"],["matColumnDef","transactionType"],["matColumnDef","debit"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",3,"ngClass","click",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],[1,"accruals",3,"click","formControl"],["mat-header-cell",""],["mat-cell","",3,"click"],["mat-cell","",3,"click","ngClass"],["mat-header-cell","",1,"center"],["mat-cell","",1,"r-amount",3,"click","ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",3,"click","routerLink"],["icon","table-cells","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"div",4)(4,"h3"),o(5),r(6,"translate"),i()(),x(7,sa,7,8,"div",5),i(),a(8,"table",6),v(9,7),h(10,la,2,0,"th",8)(11,ma,2,1,"td",9),P(),v(12,10),h(13,da,3,3,"th",8)(14,ua,2,2,"td",11),P(),v(15,12),h(16,ga,3,3,"th",8)(17,Ca,3,4,"td",11),P(),v(18,13),h(19,_a,3,3,"th",8)(20,fa,2,2,"td",11),P(),v(21,14),h(22,ha,3,3,"th",15)(23,xa,2,2,"td",16),P(),v(24,17),h(25,Da,3,3,"th",15)(26,ba,2,2,"td",16),P(),v(27,18),h(28,va,3,3,"th",15)(29,Pa,3,4,"td",16),P(),v(30,19),h(31,Ta,3,3,"th",8)(32,Sa,18,10,"td",20),P(),h(33,Ma,1,0,"tr",21)(34,Aa,1,0,"tr",22),i()()()),l&2&&(n(5),m(c(6,5,"labels.heading.All Transactions")),n(2),D(p.checkStatus()?7:-1),n(),d("dataSource",p.dataSource),n(25),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns))},dependencies:[I,be,R,Z,zn,Q,He,wt,Ft,Bt,kt,Et,Nt,Oe,Le,je,ze,$e,_t,Vt,Gt,qt,Ht,It,w,Wt],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:800}"]})}}return t})();var ya=["instructionsTable"],Oa=t=>["../","standing-instructions",t,"edit"],Ia=t=>["../","standing-instructions",t,"view"];function Ra(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Client")))}function wa(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function Ea(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.From Account")))}function Ba(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function Fa(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Beneficiary")))}function ka(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),m(e.toClient.displayName)}}function Na(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.To Account")))}function Va(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function qa(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount")))}function Ga(t,s){if(t&1&&(a(0,"td",17),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.instructionType.value,"/",e.amount)}}function Ha(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Validity")))}function Ua(t,s){if(t&1&&(a(0,"td",17),o(1),r(2,"dateFormat"),r(3,"dateFormat"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.validFrom)," to ",c(3,4,e.validTill)," ")}}function $a(t,s){t&1&&(a(0,"th",16),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function za(t,s){if(t&1&&(a(0,"button",19),r(1,"translate"),C(2,"i",20),i()),t&2){let e=f(2).$implicit;d("matTooltip",Mt(c(1,3,"tooltips.Edit Standing Instruction")))("routerLink",ge(5,Oa,e.id))}}function La(t,s){t&1&&(a(0,"span"),h(1,za,3,7,"button",18),i()),t&2&&(n(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function ja(t,s){if(t&1){let e=y();a(0,"button",22),r(1,"translate"),T("click",function(){S(e);let p=f(2).$implicit,g=f();return M(g.deleteStandingInstruction(p.id))}),C(2,"i",23),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Delete Standing Instruction")))}function Wa(t,s){t&1&&(a(0,"span"),h(1,ja,3,4,"button",21),i()),t&2&&(n(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function Ka(t,s){if(t&1&&(a(0,"button",19),r(1,"translate"),C(2,"i",24),i()),t&2){let e=f().$implicit;d("matTooltip",Mt(c(1,3,"tooltips.View Standing Instruction")))("routerLink",ge(5,Ia,e.id))}}function Qa(t,s){if(t&1&&(a(0,"td",17),x(1,La,2,1,"span"),x(2,Wa,2,1,"span"),h(3,Ka,3,7,"button",18),i()),t&2){let e=s.$implicit;n(),D(e.status.value!=="Deleted"?1:-1),n(),D(e.status.value!=="Deleted"?2:-1),n(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function Ya(t,s){t&1&&C(0,"tr",25)}function Ja(t,s){t&1&&C(0,"tr",26)}var on=(()=>{class t{constructor(){this.route=_(N),this.recurringDepositsService=_(k),this.dialog=_(Xt),this.accountTransfersService=_(si),this.settingsService=_($),this.dataSource=new _e,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.recurringDepositsData=e.recurringDepositsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.recurringDepositsData.clientId,l=this.recurringDepositsData.clientName,p=this.recurringDepositsData.id,g=this.settingsService.language.code,b=this.settingsService.dateFormat;this.recurringDepositsService.getStandingInstructions(e,l,p,g,b).subscribe(G=>{this.instructionsData=G.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ce,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(l,p){if(l&1&&Pt(ya,7),l&2){let g;Tt(g=St())&&(p.instructionTableRef=g.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","routerLink",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip","routerLink"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"h3"),o(3),r(4,"translate"),i()(),a(5,"div",3)(6,"table",4,0),v(8,5),h(9,Ra,3,3,"th",6)(10,wa,2,2,"td",7),P(),v(11,8),h(12,Ea,3,3,"th",6)(13,Ba,2,2,"td",7),P(),v(14,9),h(15,Fa,3,3,"th",6)(16,ka,2,1,"td",7),P(),v(17,10),h(18,Na,3,3,"th",6)(19,Va,2,2,"td",7),P(),v(20,11),h(21,qa,3,3,"th",6)(22,Ga,2,2,"td",7),P(),v(23,12),h(24,Ha,3,3,"th",6)(25,Ua,4,6,"td",7),P(),v(26,13),h(27,$a,3,3,"th",6)(28,Qa,4,3,"td",7),P(),h(29,Ya,1,0,"tr",14)(30,Ja,1,0,"tr",15),i()()()),l&2&&(n(3),m(c(4,4,"labels.heading.All Standing Instructions")),n(3),d("dataSource",p.dataSource),n(23),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns))},dependencies:[I,R,Q,V,re,wt,Ft,Bt,kt,Et,Nt,oe,Vt,Gt,qt,Ht,It,w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var Xa=["chargesTable"],Za=()=>[2e3];function to(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.name")))}function eo(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.name)}}function no(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Fee/Penalty")))}function io(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.penalty===!0?"Penalty":"Fee")}}function ao(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Payment Due At")))}function oo(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.chargeTimeType.value)}}function ro(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Due As Of")))}function co(t,s){if(t&1&&(a(0,"td",22),o(1),r(2,"dateFormat"),i()),t&2){let e=s.$implicit;n(),m(c(2,1,e.dueDate))}}function po(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Repeats On")))}function so(t,s){if(t&1&&(a(0,"td",22),o(1),r(2,"dateFormat"),i()),t&2){let e=s.$implicit;n(),u(" ",e.feeOnMonthDay?B(2,1,K(4,Za).concat(e.feeOnMonthDay),"dd MMMM"):"Unassigned"," ")}}function lo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Calculation Type")))}function mo(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),m(e.chargeCalculationType.value)}}function uo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Due")))}function go(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.currency.displaySymbol,"\xA0",e.amount)}}function Co(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Paid")))}function _o(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.currency.displaySymbol,"\xA0",e.amountPaid)}}function fo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Waived")))}function ho(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A("",e.currency.displaySymbol,"\xA0",e.amountWaived)}}function xo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Outstanding")))}function Do(t,s){if(t&1&&(a(0,"td",22),o(1),i()),t&2){let e=s.$implicit;n(),A(" ",e.currency.displaySymbol,"\xA0",e.amountOutstanding," ")}}function bo(t,s){t&1&&(a(0,"th",21),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function vo(t,s){if(t&1){let e=y();a(0,"button",25),r(1,"translate"),T("click",function(p){S(e);let g=f(2).$implicit,b=f();return b.routeEdit(p),M(b.editCharge(g))}),C(2,"i",26),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Edit Charge")))}function Po(t,s){if(t&1){let e=y();a(0,"button",27),r(1,"translate"),T("click",function(p){S(e);let g=f(2).$implicit,b=f();return b.routeEdit(p),M(b.deleteCharge(g.id))}),C(2,"i",28),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Delete Charge")))}function To(t,s){t&1&&(a(0,"span"),h(1,vo,3,4,"button",23)(2,Po,3,4,"button",24),i()),t&2&&(n(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function So(t,s){if(t&1){let e=y();a(0,"button",25),r(1,"translate"),T("click",function(p){S(e);let g=f(3).$implicit,b=f();return b.routeEdit(p),M(b.payCharge(g.id))}),C(2,"i",29),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Pay Charge")))}function Mo(t,s){if(t&1){let e=y();a(0,"button",25),r(1,"translate"),T("click",function(p){S(e);let g=f(3).$implicit,b=f();return b.routeEdit(p),M(b.waiveCharge(g.id))}),C(2,"i",30),i()}t&2&&d("matTooltip",Mt(c(1,2,"tooltips.Waive Charge")))}function Ao(t,s){t&1&&(a(0,"span"),h(1,So,3,4,"button",23)(2,Mo,3,4,"button",23),i()),t&2&&(n(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"))}function yo(t,s){if(t&1&&(a(0,"span"),x(1,Ao,3,2,"span"),i()),t&2){let e=f().$implicit;n(),D(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?1:-1)}}function Oo(t,s){if(t&1&&(a(0,"td",22),x(1,To,3,2,"span"),x(2,yo,2,1,"span"),i()),t&2){let e=s.$implicit,l=f();n(),D(l.recurringDepositsAccountData.status.value==="Submitted and pending approval"?1:-1),n(),D(l.recurringDepositsAccountData.status.value!=="Submitted and pending approval"&&e.amountOutstanding!==0?2:-1)}}function Io(t,s){t&1&&C(0,"tr",31)}function Ro(t,s){t&1&&C(0,"tr",32)}var rn=(()=>{class t{constructor(){this.route=_(N),this.savingsService=_(pe),this.dateUtils=_(X),this.router=_(W),this.dialog=_(Xt),this.translateService=_(Ie),this.settingsService=_($),this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(e=>{this.recurringDepositsAccountData=e.recurringDepositsAccountData,this.chargesData=this.recurringDepositsAccountData.charges})}ngOnInit(){let e=this.chargesData?this.chargesData.filter(l=>l.isActive):[];this.dataSource=new _e(e)}payCharge(e){let l=[new we({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new Ze({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],p={title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G=this.settingsService.language.code,ue=this.settingsService.dateFormat,ie=J(F({},b.data.value),{dueDate:this.dateUtils.formatDate(b.data.value.dueDate,ue),dateFormat:ue,locale:G});this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"paycharge",ie,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Waive Charge"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to waive charge with id: ")+`${e} ?`}}).afterClosed().subscribe(p=>{p.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.recurringDepositsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}editCharge(e){let l=[new we({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})],p={title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let ie=J(F({},b.data.value),{dateFormat:"dd MMMM yyyy",locale:"en"});this.savingsService.editSavingsAccountCharge(this.recurringDepositsAccountData.id,ie,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(ce,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(p=>{p.delete&&this.savingsService.deleteSavingsAccountCharge(this.recurringDepositsAccountData.id,e).subscribe(()=>{this.reload()})})}routeEdit(e){e.stopPropagation()}reload(){let e=this.recurringDepositsAccountData.clientId,l=this.router.url;this.router.navigateByUrl(`/clients/${e}/recurring-deposits-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([l]))}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(l,p){if(l&1&&Pt(Xa,7),l&2){let g;Tt(g=St())&&(p.chargesTableRef=g.first)}},decls:44,vars:6,consts:[["chargesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row",""]],template:function(l,p){l&1&&(a(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),o(4),r(5,"translate"),i()()(),a(6,"div",4)(7,"table",5,0),v(9,6),h(10,to,3,3,"th",7)(11,eo,2,1,"td",8),P(),v(12,9),h(13,no,3,3,"th",7)(14,io,2,1,"td",8),P(),v(15,10),h(16,ao,3,3,"th",7)(17,oo,2,1,"td",8),P(),v(18,11),h(19,ro,3,3,"th",7)(20,co,3,3,"td",8),P(),v(21,12),h(22,po,3,3,"th",7)(23,so,3,5,"td",8),P(),v(24,13),h(25,lo,3,3,"th",7)(26,mo,2,1,"td",8),P(),v(27,14),h(28,uo,3,3,"th",7)(29,go,2,2,"td",8),P(),v(30,15),h(31,Co,3,3,"th",7)(32,_o,2,2,"td",8),P(),v(33,16),h(34,fo,3,3,"th",7)(35,ho,2,2,"td",8),P(),v(36,17),h(37,xo,3,3,"th",7)(38,Do,2,2,"td",8),P(),v(39,18),h(40,bo,3,3,"th",7)(41,Oo,3,2,"td",8),P(),h(42,Io,1,0,"tr",19)(43,Ro,1,0,"tr",20),i()()()),l&2&&(n(4),m(c(5,4,"labels.heading.All Charges")),n(3),d("dataSource",p.dataSource),n(35),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns))},dependencies:[I,R,V,re,wt,Ft,Bt,kt,Et,Nt,oe,Vt,Gt,qt,Ht,It,w],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var cn=(()=>{class t{constructor(){this.route=_(N),this.entityId=this.route.parent.parent.snapshot.paramMap.get("recurringDepositAccountId"),this.route.data.subscribe(e=>{this.entityDatatable=e.savingsDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Recurring Deposit",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(l,p){l&1&&(a(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),i()),l&2&&(n(),d("entityId",p.entityId)("multiRowDatatableFlag",p.multiRowDatatableFlag)("entityDatatable",p.entityDatatable))},dependencies:[I,R,oi],encapsulation:2})}}return t})();function wo(t,s){if(t&1&&(a(0,"mat-option",5),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function Eo(t,s){if(t&1){let e=y();a(0,"mat-form-field",11),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),a(8,"mat-error"),o(9),r(10,"translate"),r(11,"translate"),a(12,"strong"),o(13),r(14,"translate"),i()()()}if(t&2){let e=E(7),l=f();n(2),m(c(3,8,"labels.inputs.Submitted On")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(4),A(" ",c(10,10,"labels.inputs.Submission Date")," ",c(11,12,"labels.commons.is")," "),n(4),m(c(14,14,"labels.commons.required"))}}function Bo(t,s){if(t&1&&(a(0,"mat-option",5),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.displayName," ")}}function Fo(t,s){if(t&1&&(a(0,"mat-form-field",3)(1,"mat-label"),o(2),r(3,"translate"),i(),a(4,"mat-select",14),L(5,Bo,2,2,"mat-option",5,z),i()()),t&2){let e=f();n(2),m(c(3,1,"labels.inputs.Field Officer")),n(3),j(e.fieldOfficerData)}}function ko(t,s){t&1&&(a(0,"mat-form-field",3)(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",15),r(5,"translate"),i()),t&2&&(n(2),m(c(3,3,"labels.inputs.External id")),n(2),d("matTooltip",Mt(c(5,5,"tooltips.Provides an external id"))))}var se=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.isProductSelected=!1,this.recurringDepositsAccountProductTemplate=new Ve,this.createRecurringDepositsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.recurringDepositsAccountTemplate&&(this.productData=this.recurringDepositsAccountTemplate.productOptions,this.recurringDepositsAccountTemplate.depositProductId&&this.recurringDepositAccountDetailsForm.patchValue({productId:this.recurringDepositsAccountTemplate.depositProductId,submittedOnDate:this.recurringDepositsAccountTemplate.timeline.submittedOnDate&&new Date(this.recurringDepositsAccountTemplate.timeline.submittedOnDate),externalId:this.recurringDepositsAccountTemplate.externalId}))}createRecurringDepositsAccountDetailsForm(){this.recurringDepositAccountDetailsForm=this.formBuilder.group({productId:["",q.required],submittedOnDate:["",q.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){let e=this.recurringDepositsAccountTemplate.clientId;this.recurringDepositAccountDetailsForm.get("productId").valueChanges.subscribe(l=>{this.recurringDepositsService.getRecurringDepositsAccountTemplate(e,l).subscribe(p=>{this.recurringDepositsAccountProductTemplate.emit(p),this.fieldOfficerData=p.fieldOfficerOptions,this.isProductSelected=!0,!this.isFieldOfficerPatched&&this.recurringDepositsAccountTemplate.fieldOfficerId?(this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue(this.recurringDepositsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.recurringDepositAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get recurringDepositAccountDetails(){return this.recurringDepositAccountDetailsForm.value}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-details-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate"},outputs:{recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},decls:28,vars:23,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId",3,"matTooltip"]],template:function(l,p){if(l&1&&(a(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),o(4),r(5,"translate"),i(),a(6,"mat-select",4),L(7,wo,2,2,"mat-option",5,z),i(),a(9,"mat-error"),o(10),r(11,"translate"),r(12,"translate"),a(13,"strong"),o(14),r(15,"translate"),i()()(),x(16,Eo,15,16,"mat-form-field",3),x(17,Fo,7,3,"mat-form-field",3),x(18,ko,6,7,"mat-form-field",3),i(),a(19,"div",6)(20,"button",7),C(21,"fa-icon",8),o(22),r(23,"translate"),i(),a(24,"button",9),o(25),r(26,"translate"),C(27,"fa-icon",10),i()()()),l&2){let g;d("formGroup",p.recurringDepositAccountDetailsForm),n(4),m(c(5,11,"labels.inputs.Product Name")),n(3),j(p.productData),n(3),A(" ",c(11,13,"labels.inputs.Product Name")," ",c(12,15,"labels.commons.is")," "),n(4),m(c(15,17,"labels.commons.required")),n(2),D(p.isProductSelected?16:-1),n(),D(p.isProductSelected?17:-1),n(),D(p.isProductSelected?18:-1),n(4),u(" ",c(23,19,"labels.buttons.Previous")," "),n(2),d("disabled",!((g=p.recurringDepositAccountDetailsForm.get("productId"))!=null&&g.value)||!((g=p.recurringDepositAccountDetailsForm.get("submittedOnDate"))!=null&&g.value)),n(),u(" ",c(26,21,"labels.buttons.Next")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,oe,jt,_t,Zt,w],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function No(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Vo(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function qo(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Go(t,s){if(t&1&&(a(0,"mat-option",4),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}var le=(()=>{class t{constructor(){this.formBuilder=_(st),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createRecurringDepositsAccountTermsForm()}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&this.setOptions()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate.id&&this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountTemplate.interestCalculationDaysInYearType.id})}createRecurringDepositsAccountTermsForm(){this.recurringDepositAccountTermsForm=this.formBuilder.group({interestCompoundingPeriodType:["",q.required],interestPostingPeriodType:["",q.required],interestCalculationType:["",q.required],interestCalculationDaysInYearType:["",q.required]})}setOptions(){this.interestCompoundingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,this.recurringDepositsAccountTemplate.id||this.recurringDepositAccountTermsForm.patchValue({interestCompoundingPeriodType:this.recurringDepositsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.recurringDepositsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.recurringDepositsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearType.id})}get recurringDepositAccountTerms(){return this.recurringDepositAccountTermsForm.value}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-terms-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[Yt],decls:67,vars:55,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","interestCompoundingPeriodType","required",""],[3,"value"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(l,p){l&1&&(a(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),o(4),r(5,"translate"),i(),a(6,"mat-select",3),L(7,No,3,5,"mat-option",4,z),i(),a(9,"mat-error"),o(10),r(11,"translate"),r(12,"translate"),a(13,"strong"),o(14),r(15,"translate"),i()()(),a(16,"mat-form-field",2)(17,"mat-label"),o(18),r(19,"translate"),i(),a(20,"mat-select",5),L(21,Vo,3,5,"mat-option",4,z),i(),a(23,"mat-error"),o(24),r(25,"translate"),r(26,"translate"),a(27,"strong"),o(28),r(29,"translate"),i()()(),a(30,"mat-form-field",2)(31,"mat-label"),o(32),r(33,"translate"),i(),a(34,"mat-select",6),L(35,qo,3,5,"mat-option",4,z),i(),a(37,"mat-error"),o(38),r(39,"translate"),r(40,"translate"),a(41,"strong"),o(42),r(43,"translate"),i()()(),a(44,"mat-form-field",2)(45,"mat-label"),o(46),r(47,"translate"),i(),a(48,"mat-select",7),L(49,Go,3,5,"mat-option",4,z),i(),a(51,"mat-error"),o(52),r(53,"translate"),r(54,"translate"),a(55,"strong"),o(56),r(57,"translate"),i()()()(),a(58,"div",8)(59,"button",9),C(60,"fa-icon",10),o(61),r(62,"translate"),i(),a(63,"button",11),o(64),r(65,"translate"),C(66,"fa-icon",12),i()()()),l&2&&(d("formGroup",p.recurringDepositAccountTermsForm),n(4),m(c(5,19,"labels.inputs.Interest Compounding Period")),n(3),j(p.interestCompoundingPeriodTypeData),n(3),A(" ",c(11,21,"labels.inputs.Interest Compounding Period")," ",c(12,23,"labels.commons.is")," "),n(4),m(c(15,25,"labels.commons.required")),n(4),m(c(19,27,"labels.inputs.Interest Posting Period")),n(3),j(p.interestPostingPeriodTypeData),n(3),A(" ",c(25,29,"labels.inputs.Interest Posting Period")," ",c(26,31,"labels.commons.is")," "),n(4),m(c(29,33,"labels.commons.required")),n(4),m(c(33,35,"labels.inputs.Interest Calculated using")),n(3),j(p.interestCalculationTypeData),n(3),A(" ",c(39,37,"labels.inputs.Interest Calculated using")," ",c(40,39,"labels.commons.is")," "),n(4),m(c(43,41,"labels.commons.required")),n(4),m(c(47,43,"labels.inputs.Days in Year")),n(3),j(p.interestCalculationDaysInYearTypeData),n(3),A(" ",c(53,45,"labels.inputs.Days in Year")," ",c(54,47,"labels.commons.is")," "),n(4),m(c(57,49,"labels.commons.required")),n(5),u(" ",c(62,51,"labels.buttons.Previous")," "),n(3),u(" ",c(65,53,"labels.buttons.Next")," "))},dependencies:[I,R,rt,Z,ot,dt,ct,pt,nt,et,gt,Ot,yt,V,jt,_t,Zt,w,Rt],encapsulation:2})}}return t})();function Ho(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Uo(t,s){if(t&1&&C(0,"mifosx-input-amount",11),t&2){let e=f();d("currency",e.currency)("isRequired",!0)("inputFormControl",e.recurringDepositAccountSettingsForm.controls.mandatoryRecommendedDepositAmount)("inputLabel","Recurring Deposit Amount")}}function $o(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function zo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Lo(t,s){if(t&1){let e=y();a(0,"mat-form-field",31),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",32)(5,"mat-datepicker-toggle",33)(6,"mat-datepicker",null,0),i(),a(8,"h4",6),o(9),r(10,"translate"),i(),a(11,"mat-form-field",7)(12,"mat-label"),o(13),r(14,"translate"),i(),C(15,"input",34),a(16,"mat-error"),o(17),r(18,"translate"),r(19,"translate"),a(20,"strong"),o(21),r(22,"translate"),i()()(),a(23,"mat-form-field",7)(24,"mat-label"),o(25),r(26,"translate"),i(),a(27,"mat-select",35),L(28,zo,3,5,"mat-option",10,z),i(),a(30,"mat-error"),o(31),r(32,"translate"),r(33,"translate"),a(34,"strong"),o(35),r(36,"translate"),i()()()}if(t&2){let e=E(7),l=f();n(2),m(c(3,14,"labels.inputs.Deposit Start Date")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(4),m(c(10,16,"labels.heading.Deposit Frequency")),n(4),m(c(14,18,"labels.inputs.Deposit Frequency")),n(4),A(" ",c(18,20,"labels.inputs.Deposit Frequency")," ",c(19,22,"labels.commons.is")," "),n(4),m(c(22,24,"labels.commons.required")),n(4),m(c(26,26,"labels.inputs.Type")),n(3),j(l.periodFrequencyTypeData),n(3),A(" ",c(32,28,"labels.inputs.Deposit Frequency Type")," ",c(33,30,"labels.commons.is")," "),n(4),m(c(36,32,"labels.commons.required"))}}function jo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Wo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Ko(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Qo(t,s){if(t&1&&(a(0,"mat-option",10),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",B(2,2,e.value,"catalogs")," ")}}function Yo(t,s){t&1&&(a(0,"mat-form-field",7)(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",37),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Tax Group")))}function Jo(t,s){if(t&1&&(a(0,"h4",6),o(1),r(2,"translate"),i(),a(3,"mat-checkbox",36),o(4),r(5,"translate"),i(),x(6,Yo,5,3,"mat-form-field",7)),t&2){let e=f();n(),m(c(2,3,"labels.heading.Tax Group")),n(3),u(" ",c(5,5,"labels.inputs.Is Withhold Tax Applicable"),"? "),n(2),D(e.recurringDepositAccountSettingsForm.controls.taxGroupId?6:-1)}}var me=(()=>{class t{constructor(){this.formBuilder=_(st),this.settingsService=_($),this.isNew=!0,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.currency=null,this.createRecurringDepositAccountSettingsForm(),this.buildDependencies()}ngOnChanges(){let e=this.isNew?this.recurringDepositsAccountProductTemplate:this.recurringDepositsAccountTemplate;e&&(this.currency=e.currency,this.recurringDepositAccountSettingsForm.patchValue({isMandatoryDeposit:e.isMandatoryDeposit,adjustAdvanceTowardsFuturePayments:e.adjustAdvanceTowardsFuturePayments,allowWithdrawal:e.allowWithdrawal,lockinPeriodFrequency:e.lockinPeriodFrequency,lockinPeriodFrequencyType:e.lockinPeriodFrequencyType?e.lockinPeriodFrequencyType.id:"",minDepositTerm:e.minDepositTerm,minDepositTermTypeId:e.minDepositTermType?e.minDepositTermType.id:"",inMultiplesOfDepositTerm:e.inMultiplesOfDepositTerm,inMultiplesOfDepositTermTypeId:e.inMultiplesOfDepositTermType?e.inMultiplesOfDepositTermType.id:"",maxDepositTerm:e.maxDepositTerm,maxDepositTermTypeId:e.maxDepositTermType?e.maxDepositTermType.id:"",preClosurePenalApplicable:e.preClosurePenalApplicable,preClosurePenalInterest:e.preClosurePenalInterest,preClosurePenalInterestOnTypeId:e.preClosurePenalInterestOnType?e.preClosurePenalInterestOnType.id:"",minBalanceForInterestCalculation:e.minBalanceForInterestCalculation,depositPeriod:e.minDepositTerm,depositPeriodFrequencyId:e.minDepositTermType.id,expectedFirstDepositOnDate:e.expectedFirstDepositOnDate&&new Date(e.expectedFirstDepositOnDate),recurringFrequency:e.recurringFrequency,recurringFrequencyType:e.recurringFrequencyType?e.recurringFrequencyType.id:""}),e.withHoldTax?(this.recurringDepositAccountSettingsForm.addControl("withHoldTax",new tt(!1)),this.recurringDepositAccountSettingsForm.get("withHoldTax").valueChanges.subscribe(l=>{l?(this.recurringDepositAccountSettingsForm.addControl("taxGroupId",new tt({value:"",disabled:!0})),this.recurringDepositAccountSettingsForm.get("taxGroupId").patchValue(e.taxGroup&&e.taxGroup.name)):this.recurringDepositAccountSettingsForm.removeControl("taxGroupId")}),this.recurringDepositAccountSettingsForm.get("withHoldTax").patchValue(this.recurringDepositsAccountTemplate.withHoldTax)):this.recurringDepositAccountSettingsForm.removeControl("withHoldTax"),this.taxGroup=e.taxGroup,this.setOptions(e))}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.recurringDepositsAccountTemplate&&this.recurringDepositAccountSettingsForm.patchValue({lockinPeriodFrequency:this.recurringDepositsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType&&this.recurringDepositsAccountTemplate.lockinPeriodFrequencyType.id,mandatoryRecommendedDepositAmount:this.recurringDepositsAccountTemplate.mandatoryRecommendedDepositAmount})}createRecurringDepositAccountSettingsForm(){this.recurringDepositAccountSettingsForm=this.formBuilder.group({isMandatoryDeposit:[""],adjustAdvanceTowardsFuturePayments:[""],allowWithdrawal:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],mandatoryRecommendedDepositAmount:["",q.required],depositPeriod:["",q.required],depositPeriodFrequencyId:["",q.required],isCalendarInherited:[""],expectedFirstDepositOnDate:[""],recurringFrequency:["",q.required],recurringFrequencyType:["",q.required],minDepositTerm:[{value:"",disabled:!0}],minDepositTermTypeId:[{value:"",disabled:!0}],inMultiplesOfDepositTerm:[{value:"",disabled:!0}],inMultiplesOfDepositTermTypeId:[{value:"",disabled:!0}],maxDepositTerm:[{value:"",disabled:!0}],maxDepositTermTypeId:[{value:"",disabled:!0}],preClosurePenalApplicable:[{value:"",disabled:!0}],preClosurePenalInterest:[{value:"",disabled:!0}],preClosurePenalInterestOnTypeId:[{value:"",disabled:!0}],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(e){this.lockinPeriodFrequencyTypeData=e.lockinPeriodFrequencyTypeOptions,this.periodFrequencyTypeData=e.periodFrequencyTypeOptions,this.preClosurePenalInterestOnTypeData=e.preClosurePenalInterestOnTypeOptions}buildDependencies(){this.recurringDepositAccountSettingsForm.get("isCalendarInherited").valueChanges.subscribe(e=>{e?(this.recurringDepositAccountSettingsForm.removeControl("expectedFirstDepositOnDate"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequency"),this.recurringDepositAccountSettingsForm.removeControl("recurringFrequencyType")):(this.recurringDepositAccountSettingsForm.addControl("expectedFirstDepositOnDate",new tt),this.recurringDepositAccountSettingsForm.addControl("recurringFrequency",new tt("")),this.recurringDepositAccountSettingsForm.addControl("recurringFrequencyType",new tt("")))})}get recurringDepositAccountSettings(){return this.recurringDepositAccountSettingsForm.value}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-settings-step"]],inputs:{isNew:"isNew",recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[Yt],decls:143,vars:103,consts:[["expectedFirstDepositOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],["labelPosition","before","formControlName","isMandatoryDeposit",1,"margin-v","flex-48"],["labelPosition","before","formControlName","adjustAdvanceTowardsFuturePayments",1,"flex-48","margin-v"],["labelPosition","before","formControlName","allowWithdrawal",1,"margin-v","flex-48"],[1,"mat-h4","flex-98"],[1,"flex-48"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[3,"value"],[1,"flex-48",3,"currency","isRequired","inputFormControl","inputLabel"],["type","number","matInput","","formControlName","depositPeriod","required",""],["formControlName","depositPeriodFrequencyId","required",""],["labelPosition","before","formControlName","isCalendarInherited",1,"margin-v","flex-48"],[1,"flex-98"],["type","number","matInput","","formControlName","minDepositTerm","required",""],["formControlName","minDepositTermTypeId","required",""],["type","number","matInput","","formControlName","inMultiplesOfDepositTerm"],["formControlName","inMultiplesOfDepositTermTypeId"],["type","number","matInput","","formControlName","maxDepositTerm"],["formControlName","maxDepositTermTypeId"],["labelPosition","before","formControlName","preClosurePenalApplicable",1,"flex-73","margin-v"],["type","number","matInput","","formControlName","preClosurePenalInterest"],["formControlName","preClosurePenalInterestOnTypeId"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","expectedFirstDepositOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["type","number","matInput","","formControlName","recurringFrequency","required",""],["formControlName","recurringFrequencyType","required",""],["labelPosition","before","formControlName","withHoldTax",1,"margin-v","flex-48"],["type","text","matInput","","formControlName","taxGroupId"]],template:function(l,p){l&1&&(a(0,"form",1)(1,"div",2)(2,"mat-checkbox",3),o(3),r(4,"translate"),i(),a(5,"mat-checkbox",4),o(6),r(7,"translate"),i(),a(8,"mat-checkbox",5),o(9),r(10,"translate"),i(),a(11,"h4",6),o(12),r(13,"translate"),i(),a(14,"mat-form-field",7)(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"input",8),i(),a(19,"mat-form-field",7)(20,"mat-label"),o(21),r(22,"translate"),i(),a(23,"mat-select",9),L(24,Ho,3,5,"mat-option",10,z),i()(),a(26,"h4",6),o(27),r(28,"translate"),i(),x(29,Uo,1,4,"mifosx-input-amount",11),a(30,"h4",6),o(31),r(32,"translate"),i(),a(33,"mat-form-field",7)(34,"mat-label"),o(35),r(36,"translate"),i(),C(37,"input",12),i(),a(38,"mat-form-field",7)(39,"mat-label"),o(40),r(41,"translate"),i(),a(42,"mat-select",13),L(43,$o,3,5,"mat-option",10,z),i()(),a(45,"mat-checkbox",14),o(46),r(47,"translate"),i(),x(48,Lo,37,34),C(49,"mat-divider",15),a(50,"h4",6),o(51),r(52,"translate"),i(),a(53,"mat-form-field",7)(54,"mat-label"),o(55),r(56,"translate"),i(),C(57,"input",16),a(58,"mat-error"),o(59),r(60,"translate"),r(61,"translate"),a(62,"strong"),o(63),r(64,"translate"),i()()(),a(65,"mat-form-field",7)(66,"mat-label"),o(67),r(68,"translate"),i(),a(69,"mat-select",17),L(70,jo,3,5,"mat-option",10,z),i(),a(72,"mat-error"),o(73),r(74,"translate"),r(75,"translate"),a(76,"strong"),o(77),r(78,"translate"),i()()(),a(79,"h4",6),o(80),r(81,"translate"),i(),a(82,"mat-form-field",7)(83,"mat-label"),o(84),r(85,"translate"),i(),C(86,"input",18),i(),a(87,"mat-form-field",7)(88,"mat-label"),o(89),r(90,"translate"),i(),a(91,"mat-select",19),L(92,Wo,3,5,"mat-option",10,z),i()(),a(94,"h4",6),o(95),r(96,"translate"),i(),a(97,"mat-form-field",7)(98,"mat-label"),o(99),r(100,"translate"),i(),C(101,"input",20),i(),a(102,"mat-form-field",7)(103,"mat-label"),o(104),r(105,"translate"),i(),a(106,"mat-select",21),L(107,Ko,3,5,"mat-option",10,z),i()(),C(109,"mat-divider",15),a(110,"h4",6),o(111),r(112,"translate"),i(),a(113,"mat-checkbox",22),o(114),r(115,"translate"),i(),a(116,"mat-form-field",7)(117,"mat-label"),o(118),r(119,"translate"),i(),C(120,"input",23),i(),a(121,"mat-form-field",7)(122,"mat-label"),o(123),r(124,"translate"),i(),a(125,"mat-select",24),L(126,Qo,3,5,"mat-option",10,z),i()(),a(128,"mat-form-field",7)(129,"mat-label"),o(130),r(131,"translate"),i(),C(132,"input",25),i(),x(133,Jo,7,7),i(),a(134,"div",26)(135,"button",27),C(136,"fa-icon",28),o(137),r(138,"translate"),i(),a(139,"button",29),o(140),r(141,"translate"),C(142,"fa-icon",30),i()()()),l&2&&(d("formGroup",p.recurringDepositAccountSettingsForm),n(3),u(" ",c(4,37,"labels.inputs.Is Mandatory Deposit"),"? "),n(3),u(" ",c(7,39,"labels.inputs.Adjust advance payments toward future installments"),"? "),n(3),u(" ",c(10,41,"labels.inputs.Allow Withdrawals"),"? "),n(3),m(c(13,43,"labels.heading.Lock-in Period")),n(4),m(c(17,45,"labels.inputs.Frequency")),n(5),m(c(22,47,"labels.inputs.Type")),n(3),j(p.lockinPeriodFrequencyTypeData),n(3),m(c(28,49,"labels.heading.Recurring Deposit Details")),n(2),D(p.currency?29:-1),n(2),m(c(32,51,"labels.heading.Deposit Period")),n(4),m(c(36,53,"labels.inputs.Deposit Period")),n(5),m(c(41,55,"labels.inputs.Type")),n(3),j(p.periodFrequencyTypeData),n(3),u(" ",c(47,57,"labels.inputs.Deposit Frequency Same as Group/Center meeting")," "),n(2),D(p.recurringDepositAccountSettingsForm.value.isCalendarInherited?-1:48),n(3),m(c(52,59,"labels.heading.Minimum Deposit Term")),n(4),m(c(56,61,"labels.inputs.Frequency")),n(4),A(" ",c(60,63,"labels.inputs.Minimum Deposit Term Frequency")," ",c(61,65,"labels.commons.is")," "),n(4),m(c(64,67,"labels.commons.required")),n(4),m(c(68,69,"labels.inputs.Frequency Type")),n(3),j(p.periodFrequencyTypeData),n(3),A(" ",c(74,71,"labels.inputs.Minimum Deposit Term Frequency Type")," ",c(75,73,"labels.commons.is")," "),n(4),m(c(78,75,"labels.commons.required")),n(3),m(c(81,77,"labels.heading.And thereafter, in Multiples of")),n(4),m(c(85,79,"labels.inputs.Frequency")),n(5),m(c(90,81,"labels.inputs.Type")),n(3),j(p.periodFrequencyTypeData),n(3),m(c(96,83,"labels.heading.Maximum Deposit Term")),n(4),m(c(100,85,"labels.inputs.Frequency")),n(5),m(c(105,87,"labels.inputs.Type")),n(3),j(p.periodFrequencyTypeData),n(4),m(c(112,89,"labels.heading.For Pre-mature closure")),n(3),u(" ",c(115,91,"labels.inputs.Apply Penal Interest (less)")," "),n(4),u("",c(119,93,"labels.inputs.Penal Interest")," (%)"),n(5),m(c(124,95,"labels.inputs.Period")),n(3),j(p.preClosurePenalInterestOnTypeData),n(4),m(c(131,97,"labels.inputs.Minimum Balance For Interest Calculation")),n(3),D(p.taxGroup?133:-1),n(4),u(" ",c(138,99,"labels.buttons.Previous")," "),n(3),u(" ",c(141,101,"labels.buttons.Next")," "))},dependencies:[I,R,rt,mt,Re,Z,ot,dt,ct,pt,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,He,Ee,Ue,jt,_t,Zt,w,Rt],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function Xo(t,s){if(t&1&&(a(0,"mat-option",3),o(1),i()),t&2){let e=s.$implicit;d("value",e),n(),u(" ",e.name," ")}}function Zo(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.name")))}function tr(t,s){if(t&1&&(a(0,"td",25),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function er(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Type")))}function nr(t,s){if(t&1&&(a(0,"td",25),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),u(" ",B(2,1,e.chargeCalculationType.value,"catalogs")," ")}}function ir(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount")))}function ar(t,s){if(t&1){let e=y();a(0,"td",25),o(1),r(2,"formatNumber"),a(3,"button",26),T("click",function(){let p=S(e).$implicit,g=f();return M(g.editChargeAmount(p))}),C(4,"fa-icon",27),i()()}if(t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function or(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Collected On")))}function rr(t,s){if(t&1&&(a(0,"td",25),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),u(" ",B(2,1,e.chargeTimeType.value,"catalogs")," ")}}function cr(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Date")))}function pr(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.dueDate)||"Unassigned"," ")}}function sr(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function lr(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function mr(t,s){if(t&1){let e=y();a(0,"button",26),T("click",function(){S(e);let p=f().$implicit,g=f();return M(g.editChargeDate(p))}),C(1,"fa-icon",27),i()}}function dr(t,s){if(t&1&&(a(0,"td",25),x(1,pr,3,3,"span"),x(2,sr,3,3,"span"),x(3,lr,3,3,"span"),x(4,mr,2,0,"button",28),i()),t&2){let e=s.$implicit;n(),D(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),n(),D(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),n(),D(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3),n(),D(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?4:-1)}}function ur(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Repayments Every")))}function gr(t,s){if(t&1){let e=y();a(0,"button",26),T("click",function(){S(e);let p=f().$implicit,g=f();return M(g.editChargeFeeInterval(p))}),C(1,"fa-icon",27),i()}}function Cr(t,s){if(t&1&&(a(0,"td",25),o(1),x(2,gr,2,0,"button",28),i()),t&2){let e=s.$implicit;n(),u(" ",e.feeInterval||"Not Provided"," "),n(),D(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"?2:-1)}}function _r(t,s){t&1&&(a(0,"th",24),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function fr(t,s){if(t&1){let e=y();a(0,"td",25)(1,"button",29),T("click",function(){let p=S(e).$implicit,g=f();return M(g.deleteCharge(p))}),C(2,"fa-icon",30),i()()}}function hr(t,s){t&1&&C(0,"tr",31)}function xr(t,s){t&1&&C(0,"tr",32)}var de=(()=>{class t{constructor(){this.dialog=_(Xt),this.dateUtils=_(X),this.settingsService=_($),this.chargesDataSource=[],this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.pristine=!0,this.isChargesPatched=!1,this.currency=null}ngOnInit(){this.chargesDataSource=[],this.recurringDepositsAccountTemplate.id&&this.recurringDepositsAccountTemplate.charges&&(this.chargesDataSource=this.recurringDepositsAccountTemplate.charges.map(e=>J(F({},e),{id:e.chargeId}))||[])}ngOnChanges(){this.currency==null&&(this.recurringDepositsAccountTemplate.currency?this.currency=this.recurringDepositsAccountTemplate.currency:this.recurringDepositsAccountProductTemplate&&this.recurringDepositsAccountProductTemplate.currency&&(this.currency=this.recurringDepositsAccountProductTemplate.currency)),this.recurringDepositsAccountProductTemplate&&(this.chargeData=this.recurringDepositsAccountProductTemplate.chargeOptions.filter(e=>e.currency.code===this.currency.code))}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){let l=[new we({controlName:"amount",label:"Amount",value:e.amount,type:"number",required:!1})],p={title:"Edit Charge Amount",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G=J(F({},e),{amount:b.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,G),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){let l=[new Ze({controlName:"date",label:"Date",value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],p={title:"Edit Charge Date",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G,ue=this.settingsService.dateFormat,ie=this.dateUtils.formatDate(b.data.value.date,ue);switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":G=J(F({},e),{dueDate:ie});break;case"Annual Fee":G=J(F({},e),{feeOnMonthDay:ie});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,G),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let l=[new we({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],p={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:l};this.dialog.open(Ce,{data:p}).afterClosed().subscribe(b=>{if(b.data){let G=J(F({},e),{feeInterval:b.data.value.feeInterval});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,G),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.dialog.open(ce,{data:{deleteContext:`charge ${e.name}`}}).afterClosed().subscribe(p=>{p.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1)})}get recurringDepositAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-charges-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",currencyCode:"currencyCode",recurringDepositAccountFormValid:"recurringDepositAccountFormValid"},features:[Yt],decls:47,vars:18,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","primary"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),o(3),r(4,"translate"),i(),a(5,"mat-select",null,0),L(7,Xo,2,2,"mat-option",3,z),i()(),a(9,"div",4)(10,"button",5),T("click",function(){S(g);let G=E(6);return M(p.addCharge(G))}),C(11,"fa-icon",6),o(12),r(13,"translate"),i()(),a(14,"table",7),v(15,8),h(16,Zo,3,3,"th",9)(17,tr,2,1,"td",10),P(),v(18,11),h(19,er,3,3,"th",9)(20,nr,3,4,"td",10),P(),v(21,12),h(22,ir,3,3,"th",9)(23,ar,5,3,"td",10),P(),v(24,13),h(25,or,3,3,"th",9)(26,rr,3,4,"td",10),P(),v(27,14),h(28,cr,3,3,"th",9)(29,dr,5,4,"td",10),P(),v(30,15),h(31,ur,3,3,"th",9)(32,Cr,3,2,"td",10),P(),v(33,16),h(34,_r,3,3,"th",9)(35,fr,3,0,"td",10),P(),h(36,hr,1,0,"tr",17)(37,xr,1,0,"tr",18),i()(),a(38,"div",19)(39,"button",20),C(40,"fa-icon",21),o(41),r(42,"translate"),i(),a(43,"button",22),o(44),r(45,"translate"),C(46,"fa-icon",23),i()()}if(l&2){let g=E(6);n(3),m(c(4,10,"labels.inputs.Charge")),n(4),j(p.chargeData),n(3),d("disabled",!g.value),n(2),u(" ",c(13,12,"labels.buttons.Add")," "),n(2),d("dataSource",p.chargesDataSource)("hidden",p.chargesDataSource.length===0),n(22),d("matHeaderRowDef",p.displayedColumns),n(),d("matRowDefColumns",p.displayedColumns),n(4),u(" ",c(42,14,"labels.buttons.Previous")," "),n(2),d("disabled",!p.recurringDepositAccountFormValid),n(),u(" ",c(45,16,"labels.buttons.Next")," ")}},dependencies:[I,R,nt,et,Ot,yt,V,_t,wt,Ft,Bt,kt,Et,Nt,Oe,Vt,Gt,qt,Ht,jt,Zt,It,w,Rt,Wt],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var Dr=["chartsTable"];function br(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.name"),":"),n(3),m(e.recurringDepositsAccountProductTemplate.accountChart.name)}}function vr(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"dateFormat"),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.End Date"),":"),n(3),m(c(6,4,e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function Pr(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.Description"),":"),n(3),m(e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.description)}}function Tr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Period")))}function Sr(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),ae(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",B(2,3,e.periodType.value,"catalogs")," ")}}function Mr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount Range")))}function Ar(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"formatNumber"),r(3,"formatNumber"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function yr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Or(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u("",c(2,1,e.annualInterestRate)," %")}}function Ir(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Description")))}function Rr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),m(e.description)}}function wr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function Er(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",27),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function Br(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",28),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Fr(t,s){if(t&1){let e=y();a(0,"td",24)(1,"button",25),T("click",function(){let p=S(e).dataIndex,g=f();return M(g.expandChartSlabIndex=g.expandChartSlabIndex===p?null:p)}),h(2,Er,4,3,"span",26)(3,Br,4,3,"span",26),i()()}if(t&2){let e=s.dataIndex,l=f();n(2),d("ngIf",l.expandChartSlabIndex!==e),n(),d("ngIf",l.expandChartSlabIndex===e)}}function kr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Entity Type")))}function Nr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.entityType.value," ")}}function Vr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Name")))}function qr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.attributeName.value," ")}}function Gr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Condition Type")))}function Hr(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"titlecase"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.conditionType.value)," ")}}function Ur(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Value")))}function $r(t,s){if(t&1&&(a(0,"td",41),o(1),i()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),n(),u(" ",e.attributeValueDesc," ")}}function zr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Incentive Type")))}function Lr(t,s){if(t&1&&(a(0,"td",24),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.incentiveType.value," ")}}function jr(t,s){t&1&&(a(0,"th",23),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function Wr(t,s){if(t&1&&(a(0,"td",24),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function Kr(t,s){t&1&&C(0,"tr",42)}function Qr(t,s){t&1&&C(0,"tr",43)}function Yr(t,s){if(t&1&&(a(0,"table",33),v(1,34),h(2,kr,3,3,"th",8)(3,Nr,2,1,"td",9),P(),v(4,35),h(5,Vr,3,3,"th",8)(6,qr,2,1,"td",9),P(),v(7,36),h(8,Gr,3,3,"th",8)(9,Hr,3,3,"td",9),P(),v(10,37),h(11,Ur,3,3,"th",8)(12,$r,2,2,"td",38),P(),v(13,39),h(14,zr,3,3,"th",8)(15,Lr,2,1,"td",9),P(),v(16,40),h(17,jr,3,3,"th",8)(18,Wr,3,3,"td",9),P(),h(19,Kr,1,0,"tr",15)(20,Qr,1,0,"tr",16),i()),t&2){let e=f().$implicit,l=f();d("dataSource",e.incentives),n(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),n(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function Jr(t,s){if(t&1&&(a(0,"td",24)(1,"div",29)(2,"mat-card",30)(3,"h4",31),o(4),r(5,"translate"),i(),h(6,Yr,21,3,"table",32),i()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=f();De("colspan",p.chartSlabsDisplayedColumns.length),n(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),n(3),u(" ",c(5,4,"labels.heading.Incentives")," "),n(2),d("ngIf",e.incentives.length)}}function Xr(t,s){t&1&&C(0,"tr",42)}function Zr(t,s){t&1&&C(0,"tr",43)}function tc(t,s){t&1&&C(0,"tr",44)}var Fe=(()=>{class t{constructor(){this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}ngOnInit(){this.interestRateChartData=[]}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-interest-rate-chart-step"]],viewQuery:function(l,p){if(l&1&&Pt(Dr,7),l&2){let g;Tt(g=St())&&(p.chartsTableRef=g.first)}},inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate"},features:[Yt],decls:49,vars:25,consts:[["chartsTable",""],[1,"layout-column","gap-2px"],["class","flex-fill",4,"ngIf"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],[4,"ngIf"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"incentives","flex-fill","layout-row","flex-wrap"],[1,"layout-row-wrap","flex-fill"],[1,"m-b-10","flex-13"],["class","mat-elevation-z1 flex-fill","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"mat-elevation-z1","flex-fill",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"]],template:function(l,p){l&1&&(a(0,"div",1),h(1,br,6,4,"div",2),a(2,"div",3)(3,"span",4),o(4),r(5,"translate"),i(),a(6,"span",5),o(7),r(8,"dateFormat"),i()(),h(9,vr,7,6,"div",2)(10,Pr,6,4,"div",2),a(11,"div",3)(12,"span",4),o(13),r(14,"translate"),i(),a(15,"span",5),o(16),r(17,"yesNo"),i()(),a(18,"table",6,0),v(20,7),h(21,Tr,3,3,"th",8)(22,Sr,3,6,"td",9),P(),v(23,10),h(24,Mr,3,3,"th",8)(25,Ar,4,6,"td",9),P(),v(26,11),h(27,yr,3,3,"th",8)(28,Or,3,3,"td",9),P(),v(29,12),h(30,Ir,3,3,"th",8)(31,Rr,2,1,"td",9),P(),v(32,13),h(33,wr,3,3,"th",8)(34,Fr,4,2,"td",9),P(),v(35,14),h(36,Jr,7,6,"td",9),P(),h(37,Xr,1,0,"tr",15)(38,Zr,1,0,"tr",16)(39,tc,1,0,"tr",17),i()(),a(40,"div",18)(41,"button",19),C(42,"fa-icon",20),o(43),r(44,"translate"),i(),a(45,"button",21),o(46),r(47,"translate"),C(48,"fa-icon",22),i()()),l&2&&(n(),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.name),n(3),u("",c(5,13,"labels.inputs.Valid from Date"),":"),n(3),m(c(8,15,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.fromDate)),n(2),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.endDate),n(),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.description),n(3),u("",c(14,17,"labels.inputs.Primary Grouping by Amount"),":"),n(3),m(c(17,19,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),n(2),d("dataSource",p.interestRateChartData),n(19),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),n(4),u(" ",c(44,21,"labels.buttons.Previous")," "),n(3),u(" ",c(47,23,"labels.buttons.Next")," "))},dependencies:[I,ve,Pe,R,Y,V,wt,Ft,Bt,kt,Et,Nt,_t,Vt,Gt,qt,Ht,jt,Zt,Te,It,w,Rt,Wt,Xe],styles:[".margin-t[_ngcontent-%COMP%]{margin-top:2em}table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Me("expandChartSlab",[ne("collapsed",ee({height:"0px",minHeight:"0"})),ne("expanded",ee({height:"*"})),ye("expanded <=> collapsed",Ae("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();var ec=()=>["../.."];function nc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"find"),r(7,"translateKey"),i()()),t&2){let e=f();n(2),u("",c(3,3,"labels.inputs.Lock-in Period"),":"),n(3),A("",e.recurringDepositAccountData.lockinPeriodFrequency," ",B(7,10,U(6,5,e.recurringDepositAccountData.lockinPeriodFrequencyType,e.recurringDepositsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function ic(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"formatNumber"),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.Recurring Deposit Amount"),":"),n(3),m(c(6,4,e.recurringDepositAccountData.mandatoryRecommendedDepositAmount))}}function ac(t,s){if(t&1&&(a(0,"span",5),o(1),r(2,"find"),r(3,"translateKey"),i()),t&2){let e=f(2);n(),A("",e.recurringDepositAccountData.recurringFrequency," ",B(3,7,U(2,2,e.recurringDepositAccountData.recurringFrequencyType,e.recurringDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value"),"catalogs"))}}function oc(t,s){if(t&1&&(v(0),a(1,"div",3)(2,"span",4),o(3),r(4,"translate"),i(),a(5,"span",5),o(6),r(7,"dateFormat"),i()(),a(8,"div",3)(9,"span",4),o(10),r(11,"translate"),i(),h(12,ac,4,10,"span",26),i(),P()),t&2){let e=f();n(3),u("",c(4,4,"labels.inputs.Deposit Start Date"),":"),n(3),m(c(7,6,e.recurringDepositAccountData.expectedFirstDepositOnDate)),n(4),u("",c(11,8,"labels.inputs.Deposit Frequency"),":"),n(2),d("ngIf",e.recurringDepositAccountData.recurringFrequency)}}function rc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.name"),":"),n(3),m(e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.name)}}function cc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),r(6,"dateFormat"),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.End Date"),":"),n(3),m(c(6,4,e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.endDate))}}function pc(t,s){if(t&1&&(a(0,"div",3)(1,"span",4),o(2),r(3,"translate"),i(),a(4,"span",5),o(5),i()()),t&2){let e=f();n(2),u("",c(3,2,"labels.inputs.Description"),":"),n(3),m(e.recurringDepositsAccountProductTemplate==null?null:e.recurringDepositsAccountProductTemplate.accountChart.description)}}function sc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Period")))}function lc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),ae(" ",e.fromPeriod," - ",e.toPeriod,"\xA0",B(2,3,e.periodType.value,"catalogs")," ")}}function mc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount Range")))}function dc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"formatNumber"),r(3,"formatNumber"),i()),t&2){let e=s.$implicit;n(),A(" ",c(2,2,e.amountRangeFrom)," - ",c(3,4,e.amountRangeTo)," ")}}function uc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function gc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u("",c(2,1,e.annualInterestRate)," %")}}function Cc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Description")))}function _c(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),m(e.description)}}function fc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Actions")))}function hc(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",30),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.View Incentives")," "))}function xc(t,s){t&1&&(a(0,"span"),C(1,"fa-icon",31),o(2),r(3,"translate"),i()),t&2&&(n(2),u(" ",c(3,1,"labels.buttons.Hide Incentives")," "))}function Dc(t,s){if(t&1){let e=y();a(0,"td",28)(1,"button",29),T("click",function(){let p=S(e).dataIndex,g=f();return M(g.expandChartSlabIndex=g.expandChartSlabIndex===p?null:p)}),h(2,hc,4,3,"span",7)(3,xc,4,3,"span",7),i()()}if(t&2){let e=s.dataIndex,l=f();n(2),d("ngIf",l.expandChartSlabIndex!==e),n(),d("ngIf",l.expandChartSlabIndex===e)}}function bc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Entity Type")))}function vc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.entityType.value," ")}}function Pc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Name")))}function Tc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.attributeName.value," ")}}function Sc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Condition Type")))}function Mc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"titlecase"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.conditionType.value)," ")}}function Ac(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Attribute Value")))}function yc(t,s){if(t&1&&(a(0,"td",44),o(1),i()),t&2){let e=s.$implicit;d("ngSwitch",e.attributeName),n(),u(" ",e.attributeValueDesc," ")}}function Oc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Incentive Type")))}function Ic(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.incentiveType.value," ")}}function Rc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Interest")))}function wc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.amount," ")}}function Ec(t,s){t&1&&C(0,"tr",45)}function Bc(t,s){t&1&&C(0,"tr",46)}function Fc(t,s){if(t&1&&(a(0,"table",36),v(1,37),h(2,bc,3,3,"th",10)(3,vc,2,1,"td",11),P(),v(4,38),h(5,Pc,3,3,"th",10)(6,Tc,2,1,"td",11),P(),v(7,39),h(8,Sc,3,3,"th",10)(9,Mc,3,3,"td",11),P(),v(10,40),h(11,Ac,3,3,"th",10)(12,yc,2,2,"td",41),P(),v(13,42),h(14,Oc,3,3,"th",10)(15,Ic,2,1,"td",11),P(),v(16,43),h(17,Rc,3,3,"th",10)(18,wc,2,1,"td",11),P(),h(19,Ec,1,0,"tr",17)(20,Bc,1,0,"tr",18),i()),t&2){let e=f().$implicit,l=f();d("dataSource",e.incentives),n(19),d("matHeaderRowDef",l.incentivesDisplayedColumns),n(),d("matRowDefColumns",l.incentivesDisplayedColumns)}}function kc(t,s){if(t&1&&(a(0,"td",28)(1,"div",32)(2,"mat-card",33)(3,"h4",34),o(4),r(5,"translate"),i(),h(6,Fc,21,3,"table",35),i()()()),t&2){let e=s.$implicit,l=s.dataIndex,p=f();De("colspan",p.chartSlabsDisplayedColumns.length),n(),d("@expandChartSlab",l===p.expandChartSlabIndex?"expanded":"collapsed"),n(3),u(" ",c(5,4,"labels.heading.Incentives")," "),n(2),d("ngIf",e.incentives.length)}}function Nc(t,s){t&1&&C(0,"tr",45)}function Vc(t,s){t&1&&C(0,"tr",46)}function qc(t,s){t&1&&C(0,"tr",47)}function Gc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.name")))}function Hc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.name+", "+e.currency.displaySymbol," ")}}function Uc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Type")))}function $c(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"translateKey"),i()),t&2){let e=s.$implicit;n(),u(" ",B(2,1,e.chargeCalculationType.value,"catalogs")," ")}}function zc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Amount")))}function Lc(t,s){if(t&1&&(a(0,"td",28),o(1),r(2,"formatNumber"),i()),t&2){let e=s.$implicit;n(),u(" ",c(2,1,e.amount)," ")}}function jc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Date")))}function Wc(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.dueDate)||"Unassigned"," ")}}function Kc(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),i()),t&2){let e=f().$implicit;n(),u(" ",c(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function Qc(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.N/A")," "))}function Yc(t,s){if(t&1&&(a(0,"td",28),h(1,Wc,3,3,"span",7)(2,Kc,3,3,"span",7)(3,Qc,3,3,"span",7),i()),t&2){let e=s.$implicit;n(),d("ngIf",e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"),n(),d("ngIf",e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"),n(),d("ngIf",!(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"))}}function Jc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Repayments Every")))}function Xc(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.feeInterval||"Not Provided"," ")}}function Zc(t,s){t&1&&(a(0,"th",27),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Collected On")))}function tp(t,s){if(t&1&&(a(0,"td",28),o(1),i()),t&2){let e=s.$implicit;n(),u(" ",e.chargeTimeType.value," ")}}function ep(t,s){t&1&&C(0,"tr",45)}function np(t,s){t&1&&C(0,"tr",46)}function ip(t,s){if(t&1&&(a(0,"div",48)(1,"h3",1),o(2),r(3,"translate"),i(),C(4,"mat-divider",2),a(5,"table",36),v(6,49),h(7,Gc,3,3,"th",10)(8,Hc,2,1,"td",11),P(),v(9,50),h(10,Uc,3,3,"th",10)(11,$c,3,4,"td",11),P(),v(12,43),h(13,zc,3,3,"th",10)(14,Lc,3,3,"td",11),P(),v(15,51),h(16,jc,3,3,"th",10)(17,Yc,4,3,"td",11),P(),v(18,52),h(19,Jc,3,3,"th",10)(20,Xc,2,1,"td",11),P(),v(21,53),h(22,Zc,3,3,"th",10)(23,tp,2,1,"td",11),P(),h(24,ep,1,0,"tr",17)(25,np,1,0,"tr",18),i()()),t&2){let e=f();n(2),m(c(3,4,"labels.heading.Charges")),n(3),d("dataSource",e.recurringDepositAccountData.charges),n(19),d("matHeaderRowDef",e.chargesDisplayedColumns),n(),d("matRowDefColumns",e.chargesDisplayedColumns)}}var ke=(()=>{class t{constructor(){this.submitEvent=new Ve,this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.interestRateChartData=[],this.chartSlabsDisplayedColumns=["period","amountRange","interest","description","actions"],this.incentivesDisplayedColumns=["entityType","attributeName","conditionType","attributeValue","incentiveType","amount"],this.chartSlabsIncentivesDisplayedColumns=["incentives"]}ngOnChanges(){this.recurringDepositsAccountProductTemplate&&(this.interestRateChartData=this.recurringDepositsAccountProductTemplate.accountChart.chartSlabs)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-preview-step"]],inputs:{recurringDepositsAccountTemplate:"recurringDepositsAccountTemplate",recurringDepositsAccountProductTemplate:"recurringDepositsAccountProductTemplate",recurringDepositAccountData:"recurringDepositAccountData"},outputs:{submitEvent:"submitEvent"},features:[Yt],decls:181,vars:176,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h3","flex-100"],[1,"flex-100"],[1,"layout-row","flex-100"],[1,"flex-40"],[1,"flex-60"],["class","layout-row flex-100",4,"ngIf"],[4,"ngIf"],["mat-table","","multiTemplateDataRows","",1,"mat-elevation-z1","irc-table",3,"dataSource"],["matColumnDef","period"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amountRange"],["matColumnDef","interest"],["matColumnDef","description"],["matColumnDef","actions"],["matColumnDef","incentives"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-row","","class","incentives-row",4,"matRowDef","matRowDefColumns"],["class","layout-row-wrap responsive-column flex-100",4,"ngIf"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],["class","flex-60",4,"ngIf"],["mat-header-cell",""],["mat-cell",""],["mat-button","","color","primary",3,"click"],["icon","eye",1,"m-r-10"],["icon","eye-slash",1,"m-r-10"],[1,"layout-row-wrap","flex-100","incentives"],[1,"layout-row-wrap","flex-100"],[1,"m-b-10","flex-13"],["class","flex-100 mat-elevation-z1","mat-table","",3,"dataSource",4,"ngIf"],["mat-table","",1,"flex-100","mat-elevation-z1",3,"dataSource"],["matColumnDef","entityType"],["matColumnDef","attributeName"],["matColumnDef","conditionType"],["matColumnDef","attributeValue"],["mat-cell","",3,"ngSwitch",4,"matCellDef"],["matColumnDef","incentiveType"],["matColumnDef","amount"],["mat-cell","",3,"ngSwitch"],["mat-header-row",""],["mat-row",""],["mat-row","",1,"incentives-row"],[1,"layout-row-wrap","responsive-column","flex-100"],["matColumnDef","name"],["matColumnDef","chargeCalculationType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(l,p){l&1&&(a(0,"div",0)(1,"h3",1),o(2),r(3,"translate"),i(),C(4,"mat-divider",2),a(5,"div",3)(6,"span",4),o(7),r(8,"translate"),i(),a(9,"span",5),o(10),r(11,"find"),i()(),a(12,"div",3)(13,"span",4),o(14),r(15,"translate"),i(),a(16,"span",5),o(17),r(18,"dateFormat"),i()(),a(19,"div",3)(20,"span",4),o(21),r(22,"translate"),i(),a(23,"span",5),o(24),r(25,"find"),i()(),a(26,"h3",1),o(27),r(28,"translate"),i(),C(29,"mat-divider",2),a(30,"div",3)(31,"span",4),o(32),r(33,"translate"),i(),a(34,"span",5),o(35),i()(),a(36,"div",3)(37,"span",4),o(38),r(39,"translate"),i(),a(40,"span",5),o(41),i()(),a(42,"div",3)(43,"span",4),o(44),r(45,"translate"),i(),a(46,"span",5),o(47),i()(),a(48,"h3",1),o(49),r(50,"translate"),i(),C(51,"mat-divider",2),a(52,"div",3)(53,"span",4),o(54),r(55,"translate"),i(),a(56,"span",5),o(57),r(58,"find"),r(59,"translateKey"),i()(),a(60,"div",3)(61,"span",4),o(62),r(63,"translate"),i(),a(64,"span",5),o(65),r(66,"find"),r(67,"translateKey"),i()(),a(68,"div",3)(69,"span",4),o(70),r(71,"translate"),i(),a(72,"span",5),o(73),r(74,"find"),r(75,"translateKey"),i()(),a(76,"div",3)(77,"span",4),o(78),r(79,"translate"),i(),a(80,"span",5),o(81),r(82,"find"),r(83,"translateKey"),i()(),a(84,"h3",1),o(85),r(86,"translate"),i(),C(87,"mat-divider",2),h(88,nc,8,13,"div",6)(89,ic,7,6,"div",6),a(90,"div",3)(91,"span",4),o(92),r(93,"translate"),i(),a(94,"span",5),o(95),r(96,"find"),r(97,"translateKey"),i()(),a(98,"div",3)(99,"span",4),o(100),r(101,"translate"),i(),a(102,"span",5),o(103),r(104,"yesNo"),i()(),h(105,oc,13,10,"ng-container",7),a(106,"div",3)(107,"span",4),o(108),r(109,"translate"),i(),a(110,"span",5),o(111),r(112,"translateKey"),i()(),a(113,"div",3)(114,"span",4),o(115),r(116,"translate"),i(),a(117,"span",5),o(118),r(119,"translateKey"),i()(),a(120,"div",3)(121,"span",4),o(122),r(123,"translate"),i(),a(124,"span",5),o(125),r(126,"translateKey"),i()(),a(127,"h3",1),o(128),r(129,"translate"),i(),C(130,"mat-divider",2),h(131,rc,6,4,"div",6),a(132,"div",3)(133,"span",4),o(134),r(135,"translate"),i(),a(136,"span",5),o(137),r(138,"dateFormat"),i()(),h(139,cc,7,6,"div",6)(140,pc,6,4,"div",6),a(141,"div",3)(142,"span",4),o(143),r(144,"translate"),i(),a(145,"span",5),o(146),r(147,"yesNo"),i()(),a(148,"table",8),v(149,9),h(150,sc,3,3,"th",10)(151,lc,3,6,"td",11),P(),v(152,12),h(153,mc,3,3,"th",10)(154,dc,4,6,"td",11),P(),v(155,13),h(156,uc,3,3,"th",10)(157,gc,3,3,"td",11),P(),v(158,14),h(159,Cc,3,3,"th",10)(160,_c,2,1,"td",11),P(),v(161,15),h(162,fc,3,3,"th",10)(163,Dc,4,2,"td",11),P(),v(164,16),h(165,kc,7,6,"td",11),P(),h(166,Nc,1,0,"tr",17)(167,Vc,1,0,"tr",18)(168,qc,1,0,"tr",19),i(),h(169,ip,26,6,"div",20),i(),a(170,"div",21)(171,"button",22),C(172,"fa-icon",23),o(173),r(174,"translate"),i(),a(175,"button",24),o(176),r(177,"translate"),i(),a(178,"button",25),T("click",function(){return p.submitEvent.emit()}),o(179),r(180,"translate"),i()()),l&2&&(n(2),m(c(3,58,"labels.heading.Details")),n(5),m(c(8,60,"labels.inputs.Product")),n(3),m(U(11,62,p.recurringDepositAccountData.productId,p.recurringDepositsAccountTemplate.productOptions,"id","name")),n(4),m(c(15,67,"labels.inputs.Submitted On")),n(3),m(c(18,69,p.recurringDepositAccountData.submittedOnDate)),n(4),m(c(22,71,"labels.inputs.Field Officer")),n(3),m(U(25,73,p.recurringDepositAccountData.fieldOfficerId,p.recurringDepositsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),n(3),m(c(28,78,"labels.heading.Currency")),n(5),m(c(33,80,"labels.inputs.Currency")),n(3),m(p.recurringDepositsAccountProductTemplate.currency.code),n(3),m(c(39,82,"labels.inputs.Decimal Places")),n(3),m(p.recurringDepositsAccountProductTemplate.currency.decimalPlaces),n(3),m(c(45,84,"labels.inputs.Currency In Multiples Of")),n(3),m(p.recurringDepositsAccountProductTemplate.currency.inMultiplesOf),n(2),m(c(50,86,"labels.heading.Terms")),n(5),u("",c(55,88,"labels.inputs.Interest Compounding Period"),":"),n(3),m(B(59,95,U(58,90,p.recurringDepositAccountData.interestCompoundingPeriodType,p.recurringDepositsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value"),"catalogs")),n(5),u("",c(63,98,"labels.inputs.Interest Posting Period"),":"),n(3),m(B(67,105,U(66,100,p.recurringDepositAccountData.interestPostingPeriodType,p.recurringDepositsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value"),"catalogs")),n(5),u("",c(71,108,"labels.inputs.Interest Calculated using"),":"),n(3),m(B(75,115,U(74,110,p.recurringDepositAccountData.interestCalculationType,p.recurringDepositsAccountProductTemplate.interestCalculationTypeOptions,"id","value"),"catalogs")),n(5),u("",c(79,118,"labels.inputs.Days in Year"),":"),n(3),m(B(83,125,U(82,120,p.recurringDepositAccountData.interestCalculationDaysInYearType,p.recurringDepositsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value"),"catalogs")),n(4),m(c(86,128,"labels.heading.Settings")),n(3),d("ngIf",p.recurringDepositAccountData.lockinPeriodFrequency),n(),d("ngIf",p.recurringDepositAccountData.mandatoryRecommendedDepositAmount),n(3),u("",c(93,130,"labels.inputs.Deposit Period"),":"),n(3),A("",p.recurringDepositAccountData.depositPeriod," ",B(97,137,U(96,132,p.recurringDepositAccountData.depositPeriodFrequencyId,p.recurringDepositsAccountProductTemplate.periodFrequencyTypeOptions,"id","value"),"catalogs")),n(5),u("",c(101,140,"labels.inputs.Deposit Frequency Same as Group/Center meeting"),":"),n(3),m(c(104,142,p.recurringDepositsAccountProductTemplate.isCalendarInherited)),n(2),d("ngIf",!p.recurringDepositsAccountProductTemplate.isCalendarInherited),n(3),u("",c(109,144,"labels.inputs.Minimum Deposit Term"),":"),n(3),A("",p.recurringDepositsAccountProductTemplate.minDepositTerm?p.recurringDepositsAccountProductTemplate.minDepositTerm:""," ",B(112,146,p.recurringDepositsAccountProductTemplate.minDepositTermType?p.recurringDepositsAccountProductTemplate.minDepositTermType.value:"","catalogs")),n(4),u("",c(116,149,"labels.inputs.In Multiples Of"),":"),n(3),A("",p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm?p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTerm:""," ",B(119,151,p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType?p.recurringDepositsAccountProductTemplate.inMultiplesOfDepositTermType.value:"","catalogs")),n(4),m(c(123,154,"labels.inputs.Maximum Deposit Term")),n(3),A("",p.recurringDepositsAccountProductTemplate.maxDepositTerm?p.recurringDepositsAccountProductTemplate.maxDepositTerm:""," ",B(126,156,p.recurringDepositsAccountProductTemplate.maxDepositTermType?p.recurringDepositsAccountProductTemplate.maxDepositTermType.value:"","catalogs")),n(3),m(c(129,159,"labels.inputs.Interest Rate Chart")),n(3),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.name),n(3),u("",c(135,161,"labels.inputs.Valid from Date"),":"),n(3),m(c(138,163,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.fromDate)),n(2),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.endDate),n(),d("ngIf",p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.description),n(3),u("",c(144,165,"labels.inputs.Primary Grouping by Amount"),":"),n(3),m(c(147,167,p.recurringDepositsAccountProductTemplate==null?null:p.recurringDepositsAccountProductTemplate.accountChart.isPrimaryGroupingByAmount)),n(2),d("dataSource",p.interestRateChartData),n(18),d("matHeaderRowDef",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsDisplayedColumns),n(),d("matRowDefColumns",p.chartSlabsIncentivesDisplayedColumns),n(),d("ngIf",p.recurringDepositAccountData.charges.length),n(4),u(" ",c(174,169,"labels.buttons.Previous")," "),n(2),d("routerLink",K(175,ec)),n(),u(" ",c(177,171,"labels.buttons.Cancel")," "),n(3),u(" ",c(180,173,"labels.buttons.Submit")," "))},dependencies:[I,ve,Pe,R,Q,Y,V,Ue,wt,Ft,Bt,kt,Et,Nt,_t,Vt,Gt,qt,Ht,jt,Te,It,w,Rt,ei,Wt,Xe],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}.margin-b[_ngcontent-%COMP%]{margin-bottom:.25em}.irc-table[_ngcontent-%COMP%]{width:100%}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%]{height:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] > td[_ngcontent-%COMP%]{padding:0}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .incentives[_ngcontent-%COMP%]{overflow:hidden}.irc-table[_ngcontent-%COMP%] tr.incentives-row[_ngcontent-%COMP%] .mat-card[_ngcontent-%COMP%]{border-radius:0}"],data:{animation:[Me("expandChartSlab",[ne("collapsed",ee({height:"0px",minHeight:"0"})),ne("expanded",ee({height:"*"})),ye("expanded <=> collapsed",Ae("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])]}})}}return t})();function ap(t,s){t&1&&C(0,"fa-icon",14)}function op(t,s){t&1&&C(0,"fa-icon",14)}function rp(t,s){t&1&&C(0,"fa-icon",15)}function cp(t,s){t&1&&C(0,"fa-icon",16)}function pp(t,s){t&1&&C(0,"fa-icon",17)}function sp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function lp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function mp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function dp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function up(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function gp(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Cp(t,s){if(t&1){let e=y();a(0,"mat-step",13),h(1,gp,2,3,"ng-template",9),a(2,"mifosx-recurring-deposits-account-preview-step",18),T("submitEvent",function(){S(e);let p=f();return M(p.submit())}),i()()}if(t&2){let e=f();n(2),d("recurringDepositsAccountTemplate",e.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",e.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",e.recurringDepositAccountData)}}var pn=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.route.data.subscribe(e=>{this.recurringDepositsAccountTemplate=e.recurringDepositsAccountTemplate})}setTemplate(e){this.recurringDepositsAccountProductTemplate=e}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValid(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid}get recurringDepositAccountData(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}get recurringDepositAccount(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,g=J(F({},this.recurringDepositAccount),{clientId:this.recurringDepositsAccountTemplate.clientId,charges:this.recurringDepositAccount.charges.map(b=>({chargeId:b.id,amount:b.amount,dueDate:b.dueDate&&this.dateUtils.formatDate(b.dueDate,l),feeOnMonthDay:b.feeOnMonthDay,feeInterval:b.feeInterval})),isCalendarInherited:this.recurringDepositAccount.recurringDepositAccount?this.recurringDepositAccount.recurringDepositAccount:!1,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,l),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,l),dateFormat:l,monthDayFormat:"dd MMMM",locale:e});this.recurringDepositsService.createRecurringDepositAccount(g).subscribe(b=>{this.router.navigate(["../",b.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-create-recurring-deposits-account"]],viewQuery:function(l,p){if(l&1&&(Pt(se,7),Pt(le,7),Pt(me,7),Pt(de,7)),l&2){let g;Tt(g=St())&&(p.recurringDepositsAccountDetailsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountTermsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountSettingsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountChargesStep=g.first)}},decls:24,vars:15,consts:[["recurringDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountProductTemplate","recurringDepositsAccountTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-stepper",2,0),h(3,ap,1,0,"ng-template",3)(4,op,1,0,"ng-template",4)(5,rp,1,0,"ng-template",5)(6,cp,1,0,"ng-template",6)(7,pp,1,0,"ng-template",7),a(8,"mat-step",8),h(9,sp,2,3,"ng-template",9),a(10,"mifosx-recurring-deposits-account-details-step",10),T("recurringDepositsAccountProductTemplate",function(G){return S(g),M(p.setTemplate(G))}),i()(),a(11,"mat-step",8),h(12,lp,2,3,"ng-template",9),C(13,"mifosx-recurring-deposits-account-terms-step",11),i(),a(14,"mat-step",8),h(15,mp,2,3,"ng-template",9),C(16,"mifosx-recurring-deposits-account-settings-step",11),i(),a(17,"mat-step"),h(18,dp,2,3,"ng-template",9),C(19,"mifosx-recurring-deposits-account-interest-rate-chart-step",11),i(),a(20,"mat-step"),h(21,up,2,3,"ng-template",9),C(22,"mifosx-recurring-deposits-account-charges-step",12),i(),x(23,Cp,3,3,"mat-step",13),i()()}l&2&&(n(),d("linear",!1),n(7),d("stepControl",p.recurringDepositAccountDetailsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate),n(),d("stepControl",p.recurringDepositAccountTermsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(),d("stepControl",p.recurringDepositAccountSettingsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",p.recurringDepositAccountFormValid),n(),D(p.recurringDepositAccountFormValid?23:-1))},dependencies:[I,R,Je,Qe,_t,Ye,Ke,se,le,me,Fe,de,ke,w],encapsulation:2})}}return t})();var _p=()=>["../../"];function fp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Activated On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var sn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateRecurringDepositsAccountForm()}createActivateRecurringDepositsAccountForm(){this.activateRecurringDepositsAccountForm=this.formBuilder.group({activatedOnDate:["",q.required]})}submit(){let e=this.activateRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.activateRecurringDepositsAccountForm.value.activatedOnDate;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"activate",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-activate-recurring-deposits-account"]],decls:20,vars:18,consts:[["activatedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"mat-form-field",3),T("click",function(){S(g);let G=E(11);return M(G.open())}),a(5,"mat-label"),o(6),r(7,"translate"),i(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),x(12,fp,7,9,"mat-error"),i()(),a(13,"mat-card-actions",6)(14,"button",7),o(15),r(16,"translate"),i(),a(17,"button",8),o(18),r(19,"translate"),i()()()()()}if(l&2){let g=E(11);n(2),d("formGroup",p.activateRecurringDepositsAccountForm),n(4),m(c(7,11,"labels.inputs.Activated On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.activateRecurringDepositsAccountForm.controls.activatedOnDate.hasError("required")?12:-1),n(2),d("routerLink",K(17,_p)),n(),u(" ",c(16,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.activateRecurringDepositsAccountForm.valid),n(),u(" ",c(19,15,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var hp=()=>["../../"],ln=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.route=_(N),this.router=_(W),this.undoCommand="undoapproval",this.undoAction=this.route.snapshot.params.name,this.undoAction==="Undo Activation"&&(this.undoCommand="undoactivate"),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.createUndoApprovalRecurringDepositsAccountForm()}createUndoApprovalRecurringDepositsAccountForm(){this.undoApprovalRecurringDepositsAccountForm=this.formBuilder.group({note:[""]})}submit(){let e=F({},this.undoApprovalRecurringDepositsAccountForm.value);this.undoAction==="Undo Activation"?this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,this.undoCommand,e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})}):this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-undo-approval-recurring-deposits-account"]],decls:16,vars:13,consts:[[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-100"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(l,p){l&1&&(a(0,"div",0)(1,"mat-card")(2,"form",1),T("ngSubmit",function(){return p.submit()}),a(3,"mat-card-content")(4,"mat-form-field",2)(5,"mat-label"),o(6),r(7,"translate"),i(),C(8,"textarea",3),i()(),a(9,"mat-card-actions",4)(10,"button",5),o(11),r(12,"translate"),i(),a(13,"button",6),o(14),r(15,"translate"),i()()()()()),l&2&&(n(2),d("formGroup",p.undoApprovalRecurringDepositsAccountForm),n(4),m(c(7,6,"labels.inputs.Note")),n(4),d("routerLink",K(12,hp)),n(),u(" ",c(12,8,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.undoApprovalRecurringDepositsAccountForm.valid),n(),u(" ",c(15,10,"labels.buttons.Confirm")," "))},dependencies:[I,R,rt,mt,Z,ot,ct,pt,Q,Y,ut,ft,nt,et,Ct,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var xp=()=>["../../"];function Dp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Approved On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var mn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveRecurringDepositsAccountForm()}createApproveRecurringDepositsAccountForm(){this.approveRecurringDepositsAccountForm=this.formBuilder.group({approvedOnDate:["",q.required],note:[""]})}submit(){let e=this.approveRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.approveRecurringDepositsAccountForm.value.approvedOnDate;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"approve",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-approve-recurring-deposits-account"]],decls:26,vars:21,consts:[["approvedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,Dp,7,9,"mat-error"),i(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"textarea",7),i()()(),a(19,"mat-card-actions",8)(20,"button",9),o(21),r(22,"translate"),i(),a(23,"button",10),o(24),r(25,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.approveRecurringDepositsAccountForm),n(5),m(c(8,12,"labels.inputs.Approved On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.approveRecurringDepositsAccountForm.controls.approvedOnDate.hasError("required")?13:-1),n(3),m(c(17,14,"labels.inputs.Note")),n(4),d("routerLink",K(20,xp)),n(),u(" ",c(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.approveRecurringDepositsAccountForm),n(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var bp=()=>["../../"];function vp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Rejected On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var dn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectRecurringDepositsAccountForm()}createRejectRecurringDepositsAccountForm(){this.rejectRecurringDepositsAccountForm=this.formBuilder.group({rejectedOnDate:["",q.required],note:[""]})}submit(){let e=this.rejectRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.rejectRecurringDepositsAccountForm.value.rejectedOnDate;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"reject",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-reject-recurring-deposits-account"]],decls:26,vars:21,consts:[["rejectedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,vp,7,9,"mat-error"),i(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"textarea",7),i()()(),a(19,"mat-card-actions",8)(20,"button",9),o(21),r(22,"translate"),i(),a(23,"button",10),o(24),r(25,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.rejectRecurringDepositsAccountForm),n(5),m(c(8,12,"labels.inputs.Rejected On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.rejectRecurringDepositsAccountForm.controls.rejectedOnDate.hasError("required")?13:-1),n(3),m(c(17,14,"labels.inputs.Note")),n(4),d("routerLink",K(20,bp)),n(),u(" ",c(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.rejectRecurringDepositsAccountForm),n(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Pp=()=>["../../"];function Tp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Withdrawn On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var un=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawRecurringDepositsAccountForm()}createWithdrawRecurringDepositsAccountForm(){this.withdrawRecurringDepositsAccountForm=this.formBuilder.group({withdrawnOnDate:["",q.required],note:[""]})}submit(){let e=this.withdrawRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.withdrawRecurringDepositsAccountForm.value.withdrawnOnDate;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"withdrawnByApplicant",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-withdraw-by-client-recurring-deposits-account"]],decls:26,vars:21,consts:[["withdrawnOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,Tp,7,9,"mat-error"),i(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),C(18,"textarea",7),i()()(),a(19,"mat-card-actions",8)(20,"button",9),o(21),r(22,"translate"),i(),a(23,"button",10),o(24),r(25,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.withdrawRecurringDepositsAccountForm),n(5),m(c(8,12,"labels.inputs.Withdrawn On Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.withdrawRecurringDepositsAccountForm.controls.withdrawnOnDate.hasError("required")?13:-1),n(3),m(c(17,14,"labels.inputs.Note")),n(4),d("routerLink",K(20,Pp)),n(),u(" ",c(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.withdrawRecurringDepositsAccountForm.valid),n(),u(" ",c(25,18,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Sp=()=>["../../"];function Mp(t,s){if(t&1&&(a(0,"mat-option",6),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name+" ("+e.currency.name+")"," ")}}function Ap(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Charge")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function yp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Amount")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Op(t,s){if(t&1&&(a(0,"mat-option",6),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.value," ")}}function Ip(t,s){if(t&1&&(a(0,"mat-option",6),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.value," ")}}function Rp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Due for collection on")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function wp(t,s){if(t&1){let e=y();a(0,"mat-form-field",13),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),x(8,Rp,7,9,"mat-error"),i()}if(t&2){let e=E(7),l=f(2);n(2),m(c(3,6,"labels.inputs.Due for collection on")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(3),D(l.recurringDepositsChargeForm.controls.dueDate.hasError("required")?8:-1)}}function Ep(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Due Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Bp(t,s){if(t&1){let e=y();a(0,"mat-form-field",13),T("click",function(){S(e);let p=E(7);return M(p.open())}),a(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),x(8,Ep,7,9,"mat-error"),i()}if(t&2){let e=E(7),l=f(2);n(2),m(c(3,6,"labels.inputs.Due On")),n(2),d("min",l.minDate)("max",l.maxDate)("matDatepicker",e),n(),d("for",e),n(3),D(l.recurringDepositsChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function Fp(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",17),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Repeats Every")))}function kp(t,s){if(t&1&&(a(0,"div",4)(1,"mat-form-field")(2,"mat-label"),o(3),r(4,"translate"),i(),C(5,"input",10),x(6,yp,7,9,"mat-error"),i(),a(7,"mat-form-field")(8,"mat-label"),o(9),r(10,"translate"),i(),a(11,"mat-select",11),L(12,Op,2,2,"mat-option",6,z),i()(),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),a(18,"mat-select",12),L(19,Ip,2,2,"mat-option",6,z),i()(),x(21,wp,9,8,"mat-form-field"),x(22,Bp,9,8,"mat-form-field"),x(23,Fp,5,3,"mat-form-field"),i()),t&2){let e=f();n(3),m(c(4,7,"labels.inputs.Amount")),n(3),D(e.recurringDepositsChargeForm.controls.amount.hasError("required")?6:-1),n(3),m(c(10,9,"labels.inputs.Charge Calculation")),n(3),j(e.chargeDetails.chargeCalculationTypeOptions),n(4),m(c(17,11,"labels.inputs.Charge time type")),n(3),j(e.chargeDetails.chargeTimeTypeOptions),n(2),D(e.recurringDepositsChargeForm.contains("dueDate")?21:-1),n(),D(e.recurringDepositsChargeForm.contains("feeOnMonthDay")?22:-1),n(),D(e.recurringDepositsChargeForm.contains("feeInterval")?23:-1)}}var gn=(()=>{class t{constructor(){this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.savingsService=_(pe),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsChargeOptions=e.recurringDepositsAccountActionData.chargeOptions}),this.recurringDepositAccountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRecurringDepositsChargeForm(),this.buildDependencies()}buildDependencies(){this.recurringDepositsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(l=>{this.chargeDetails=l;let p=l.chargeTimeType.id;(l.chargeTimeType.value==="Withdrawal Fee"||l.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(l.chargeTimeType.value==="Annual Fee"||l.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.addControl("dueDate",new tt("",q.required)):this.recurringDepositsChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.recurringDepositsChargeForm.addControl("feeOnMonthDay",new tt("",q.required)):this.recurringDepositsChargeForm.removeControl("feeOnMonthDay"),p.value==="Monthly Fee"?this.recurringDepositsChargeForm.addControl("feeInterval",new tt(l.feeInterval,q.required)):this.recurringDepositsChargeForm.removeControl("feeInterval"),this.recurringDepositsChargeForm.patchValue({amount:l.amount,chargeCalculationType:l.chargeCalculationType.id,chargeTimeType:l.chargeTimeType.id})})})}createRecurringDepositsChargeForm(){this.recurringDepositsChargeForm=this.formBuilder.group({chargeId:["",q.required],amount:["",q.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let e=this.recurringDepositsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let l="MMMM-dd";if(e.monthDayFormat=l,e.feeOnMonthDay){let p=this.recurringDepositsChargeForm.value.feeOnMonthDay;e.feeOnMonthDay=this.dateUtils.formatDate(p,l)}}else{let l=this.settingsService.dateFormat;if(e.dateFormat=l,e.dueDate){let p=this.recurringDepositsChargeForm.value.dueDate;e.dueDate=this.dateUtils.formatDate(p,l)}}this.savingsService.createSavingsCharge(this.recurringDepositAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-add-charge-recurring-deposits-account"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(l,p){l&1&&(a(0,"div",2)(1,"mat-card")(2,"form",3),T("ngSubmit",function(){return p.submit()}),a(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),o(7),r(8,"translate"),i(),a(9,"mat-select",5),L(10,Mp,2,2,"mat-option",6,z),i(),x(12,Ap,7,9,"mat-error"),i(),x(13,kp,24,13,"div",4),i(),a(14,"mat-card-actions",7)(15,"button",8),o(16),r(17,"translate"),i(),a(18,"button",9),o(19),r(20,"translate"),i()()()()()()),l&2&&(n(2),d("formGroup",p.recurringDepositsChargeForm),n(5),m(c(8,8,"labels.inputs.Charge")),n(3),j(p.savingsChargeOptions),n(2),D(p.recurringDepositsChargeForm.controls.chargeId.hasError("required")?12:-1),n(),D(p.chargeDetails?13:-1),n(2),d("routerLink",K(14,Sp)),n(),u(" ",c(17,10,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.recurringDepositsChargeForm.valid),n(),u(" ",c(20,12,"labels.buttons.Submit")," "))},dependencies:[I,R,rt,mt,Re,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,w],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var Np=()=>["../../"];function Vp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Closed On Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}var Cn=(()=>{class t{constructor(){this.formBuilder=_(st),this.recurringDepositsService=_(k),this.dateUtils=_(X),this.route=_(N),this.router=_(W),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createprematureCloseRecurringDepositsAccountForm()}createprematureCloseRecurringDepositsAccountForm(){this.prematureCloseRecurringDepositsAccountForm=this.formBuilder.group({closedOnDate:["",q.required]})}submit(){let e=this.prematureCloseRecurringDepositsAccountForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.prematureCloseRecurringDepositsAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"prematureClose",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-premature-close-recurring-deposit-account"]],decls:21,vars:18,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),T("click",function(){S(g);let G=E(12);return M(G.open())}),a(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),x(13,Vp,7,9,"mat-error"),i()()(),a(14,"mat-card-actions",7)(15,"button",8),o(16),r(17,"translate"),i(),a(18,"button",9),o(19),r(20,"translate"),i()()()()()}if(l&2){let g=E(12);n(2),d("formGroup",p.prematureCloseRecurringDepositsAccountForm),n(5),m(c(8,11,"labels.inputs.Closed On")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.prematureCloseRecurringDepositsAccountForm.controls.closedOnDate.hasError("required")?13:-1),n(2),d("routerLink",K(17,Np)),n(),u(" ",c(17,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.prematureCloseRecurringDepositsAccountForm),n(),u(" ",c(20,15,"labels.buttons.Confirm")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Dt,bt,xt,V,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var qp=()=>["../general"];function Gp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Closed On")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Hp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Maturity Amount")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Up(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.value," ")}}function $p(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Action")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function zp(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.accountNo," ")}}function Lp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Transfer to savings account")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function jp(t,s){if(t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),a(4,"mat-select",20),L(5,zp,2,2,"mat-option",10,z),i(),x(7,Lp,7,9,"mat-error"),i()),t&2){let e=f();n(2),m(c(3,2,"labels.inputs.Transfer to Savings")),n(3),j(e.savingsAccountsData),n(2),D(e.closeRecurringDepositForm.controls.toSavingsAccountId.hasError("required")?7:-1)}}function Wp(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",21),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Transfer Description")))}function Kp(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function Qp(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Payment Type")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Yp(t,s){t&1&&(a(0,"button",15),C(1,"i",22),i())}function Jp(t,s){t&1&&(a(0,"button",15),C(1,"i",23),i())}function Xp(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",24),i(),a(5,"mat-form-field")(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",25),i(),a(10,"mat-form-field")(11,"mat-label"),o(12),r(13,"translate"),i(),C(14,"input",26),i(),a(15,"mat-form-field")(16,"mat-label"),o(17),r(18,"translate"),i(),C(19,"input",27),i(),a(20,"mat-form-field")(21,"mat-label"),o(22),r(23,"translate"),i(),C(24,"input",28),i()),t&2&&(n(2),u(" ",c(3,5,"labels.inputs.Account")," #"),n(5),u("",c(8,7,"labels.inputs.Cheque")," #"),n(5),m(c(13,9,"labels.inputs.Routing Code")),n(5),u("",c(18,11,"labels.inputs.Reciept")," #"),n(5),u("",c(23,13,"labels.inputs.Bank")," #"))}var _n=(()=>{class t{constructor(){this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsAccountsData=e.recurringDepositsAccountActionData.savingsAccounts,this.maturityAmount=e.recurringDepositsAccountActionData.maturityAmount,this.onAccountClosureOptions=e.recurringDepositsAccountActionData.onAccountClosureOptions,this.paymentTypes=e.recurringDepositsAccountActionData.paymentTypeOptions,e.recurringDepositsAccountActionData.maturityAmount?this.title="Recurring Deposit Closure on Maturity":this.title="Recurring Deposit Closure"}),this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createcloseRecurringDepositForm(),this.addTransferDetails()}createcloseRecurringDepositForm(){this.closeRecurringDepositForm=this.formBuilder.group({closedOnDate:[new Date,q.required],maturityAmount:[{value:this.maturityAmount,disabled:!0}],onAccountClosureId:["",q.required],paymentTypeId:["",q.required],accountNumber:"",checkNumber:"",routingCode:"",receiptNumber:"",bankNumber:"",note:""})}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}addTransferDetails(){this.closeRecurringDepositForm.get("onAccountClosureId").valueChanges.subscribe(e=>{e===200?(this.closeRecurringDepositForm.addControl("toSavingsAccountId",new tt("",q.required)),this.closeRecurringDepositForm.addControl("transferDescription",new tt(""))):(this.closeRecurringDepositForm.removeControl("toSavingsAccountId"),this.closeRecurringDepositForm.removeControl("transferDescription"))})}submit(){let e=this.closeRecurringDepositForm.value,l=this.closeRecurringDepositForm.value.closedOnDate,p=this.settingsService.dateFormat,g=this.settingsService.language.code;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(l,p));let b=J(F({},e),{dateFormat:p,locale:g});this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,"close",b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-close-recurring-deposits-account"]],decls:60,vars:42,consts:[["closedOnDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"mat-h3","flex-fill"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","maturityAmount"],["formControlName","onAccountClosureId","required",""],[3,"value"],["formControlName","paymentTypeId","required",""],[1,"flex-fill"],[1,"flex-25"],[1,"expandcollapsebutton","flex-75",3,"click"],["mat-raised-button","","color","primary"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["required","","formControlName","toSavingsAccountId"],["matInput","","formControlName","transferDescription"],[1,"fa","fa-minus"],[1,"fa","fa-plus"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","chequeNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"h3",4),o(6),i(),a(7,"mat-form-field",5),T("click",function(){S(g);let G=E(14);return M(G.open())}),a(8,"mat-label"),o(9),r(10,"translate"),i(),C(11,"input",6)(12,"mat-datepicker-toggle",7)(13,"mat-datepicker",null,0),x(15,Gp,7,9,"mat-error"),i(),a(16,"mat-form-field")(17,"mat-label"),o(18),r(19,"translate"),i(),C(20,"input",8),x(21,Hp,7,9,"mat-error"),i(),a(22,"mat-form-field")(23,"mat-label"),o(24),r(25,"translate"),i(),a(26,"mat-select",9),L(27,Up,2,2,"mat-option",10,z),i(),x(29,$p,7,9,"mat-error"),i(),x(30,jp,8,4,"mat-form-field"),x(31,Wp,5,3,"mat-form-field"),a(32,"mat-form-field")(33,"mat-label"),o(34),r(35,"translate"),i(),a(36,"mat-select",11),L(37,Kp,2,2,"mat-option",10,z),i(),x(39,Qp,7,9,"mat-error"),i(),a(40,"div",12)(41,"span",13),o(42),r(43,"translate"),i(),a(44,"span",14),T("click",function(){return S(g),M(p.toggleDisplay())}),x(45,Yp,2,0,"button",15),x(46,Jp,2,0,"button",15),i()(),x(47,Xp,25,15),a(48,"mat-form-field")(49,"mat-label"),o(50),r(51,"translate"),i(),C(52,"textarea",16),i()()(),a(53,"mat-card-actions",17)(54,"button",18),o(55),r(56,"translate"),i(),a(57,"button",19),o(58),r(59,"translate"),i()()()()()}if(l&2){let g=E(14);n(2),d("formGroup",p.closeRecurringDepositForm),n(4),m(p.title),n(3),m(c(10,25,"labels.inputs.Closed On")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.closeRecurringDepositForm.controls.closedOnDate.hasError("required")?15:-1),n(3),m(c(19,27,"labels.inputs.Maturity Amount")),n(3),D(p.closeRecurringDepositForm.controls.maturityAmount.hasError("required")?21:-1),n(3),m(c(25,29,"labels.inputs.Action")),n(3),j(p.onAccountClosureOptions),n(2),D(p.closeRecurringDepositForm.controls.onAccountClosureId.hasError("required")?29:-1),n(),D(p.closeRecurringDepositForm.contains("toSavingsAccountId")?30:-1),n(),D(p.closeRecurringDepositForm.contains("transferDescription")?31:-1),n(3),m(c(35,31,"labels.inputs.Payment Type Id")),n(3),j(p.paymentTypes),n(2),D(p.closeRecurringDepositForm.controls.paymentTypeId.hasError("required")?39:-1),n(3),u(" ",c(43,33,"labels.inputs.Show Payment Details")),n(3),D(p.showPaymentDetails?45:-1),n(),D(p.showPaymentDetails?-1:46),n(),D(p.showPaymentDetails?47:-1),n(3),m(c(51,35,"labels.inputs.Note")),n(4),d("routerLink",K(41,qp)),n(),u(" ",c(56,37,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.closeRecurringDepositForm.valid),n(),u(" ",c(59,39,"labels.buttons.Submit")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}"]})}}return t})();var Zp=()=>["../../general"];function ts(t,s){if(t&1&&(a(0,"h2",2),o(1),r(2,"translate"),r(3,"translate"),i()),t&2){let e=f();n(),A(" ",c(2,2,"labels.menus."+e.actionName)," ",c(3,4,"labels.heading.Recurring Deposit Transactions")," ")}}function es(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Transaction Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function ns(t,s){if(t&1&&(a(0,"mat-option",10),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function is(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Payment Type")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function as(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",19),i(),a(5,"mat-form-field")(6,"mat-label"),o(7),r(8,"translate"),i(),C(9,"input",20),i(),a(10,"mat-form-field")(11,"mat-label"),o(12),r(13,"translate"),i(),C(14,"input",21),i(),a(15,"mat-form-field")(16,"mat-label"),o(17),r(18,"translate"),i(),C(19,"input",22),i(),a(20,"mat-form-field")(21,"mat-label"),o(22),r(23,"translate"),i(),C(24,"input",23),i()),t&2&&(n(2),u(" ",c(3,5,"labels.inputs.Account")," #"),n(5),u("",c(8,7,"labels.inputs.Cheque")," #"),n(5),m(c(13,9,"labels.inputs.Routing Code")),n(5),u("",c(18,11,"labels.inputs.Reciept")," #"),n(5),u("",c(23,13,"labels.inputs.Bank")," #"))}var fn=(()=>{class t{constructor(){if(this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.showPaymentDetails=!1,this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.transactionType={deposit:!1,withdrawal:!1},this.route.data.subscribe(e=>{this.transactionAmount=e.recurringDepositsAccountActionData.amount,this.paymentTypes=e.recurringDepositsAccountActionData.paymentTypeOptions,e.recurringDepositsAccountActionData.outstandingChargeAmount&&e.recurringDepositsAccountActionData.outstandingChargeAmount>0&&(this.outstandingChargeAmount=e.recurringDepositsAccountActionData.outstandingChargeAmount,this.transactionAmount+=this.outstandingChargeAmount)}),this.actionName=this.route.snapshot.params.name,this.action=this.actionName.toLowerCase(),this.action==="deposit"||this.action==="withdrawal")this.transactionCommand=this.action,this.transactionType[this.transactionCommand]=!0;else throw new Error(`Invalid transaction action: ${this.actionName}`);this.accountId=this.route.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createdepositRecurringDepositForm()}createdepositRecurringDepositForm(){this.depositRecurringDepositForm=this.formBuilder.group({transactionDate:[new Date,q.required],transactionAmount:[0,q.required],paymentTypeId:["",q.required],note:""})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.depositRecurringDepositForm.addControl("accountNumber",new tt("")),this.depositRecurringDepositForm.addControl("checkNumber",new tt("")),this.depositRecurringDepositForm.addControl("routingCode",new tt("")),this.depositRecurringDepositForm.addControl("receiptNumber",new tt("")),this.depositRecurringDepositForm.addControl("bankNumber",new tt(""))):(this.depositRecurringDepositForm.removeControl("accountNumber"),this.depositRecurringDepositForm.removeControl("checkNumber"),this.depositRecurringDepositForm.removeControl("routingCode"),this.depositRecurringDepositForm.removeControl("receiptNumber"),this.depositRecurringDepositForm.removeControl("bankNumber"))}toggleDisplay(){this.showPaymentDetails=!this.showPaymentDetails}submit(){let e=this.depositRecurringDepositForm.value,l=this.settingsService.dateFormat,p=this.settingsService.language.code,g=this.depositRecurringDepositForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(g,l));let b=J(F({},e),{dateFormat:l,locale:p});delete b.note,b.transactionAmount=b.transactionAmount*1,this.recurringDepositsService.executeRecurringDepositsAccountCommand(this.accountId,this.action,b).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-deposit-recurring-deposits-account"]],inputs:{currency:"currency"},decls:44,vars:35,consts:[["transactionDatePicker",""],[1,"container"],["mat-title",""],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["formControlName","paymentTypeId","required",""],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["matInput","","formControlName","accountNumber"],["matInput","","formControlName","checkNumber"],["matInput","","formControlName","routingCode"],["matInput","","formControlName","receiptNumber"],["matInput","","formControlName","bankNumber"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card"),x(2,ts,4,6,"h2",2),a(3,"form",3),T("ngSubmit",function(){return S(g),M(p.submit())}),a(4,"mat-card-content")(5,"div",4)(6,"mat-form-field",5),T("click",function(){S(g);let G=E(13);return M(G.open())}),a(7,"mat-label"),o(8),r(9,"translate"),i(),C(10,"input",6)(11,"mat-datepicker-toggle",7)(12,"mat-datepicker",null,0),x(14,es,7,9,"mat-error"),i(),C(15,"mifosx-input-amount",8),a(16,"mat-form-field")(17,"mat-label"),o(18),r(19,"translate"),i(),a(20,"mat-select",9),L(21,ns,2,2,"mat-option",10,z),i(),x(23,is,7,9,"mat-error"),i(),a(24,"div",11)(25,"span",12),T("click",function(){return S(g),M(p.addPaymentDetails())}),a(26,"mat-slide-toggle")(27,"div",13)(28,"span",14),o(29),r(30,"translate"),i()()()()(),x(31,as,25,15),a(32,"mat-form-field")(33,"mat-label"),o(34),r(35,"translate"),i(),C(36,"textarea",15),i()()(),a(37,"mat-card-actions",16)(38,"button",17),o(39),r(40,"translate"),i(),a(41,"button",18),o(42),r(43,"translate"),i()()()()()}if(l&2){let g=E(13);n(2),D(p.transactionType.withdrawal?2:-1),n(),d("formGroup",p.depositRecurringDepositForm),n(5),m(c(9,22,"labels.inputs.Transaction Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.depositRecurringDepositForm.controls.transactionDate.hasError("required")?14:-1),n(),d("currency",p.currency)("isRequired",!0)("inputFormControl",p.depositRecurringDepositForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),m(c(19,24,"labels.inputs.Payment Type Id")),n(3),j(p.paymentTypes),n(2),D(p.depositRecurringDepositForm.controls.paymentTypeId.hasError("required")?23:-1),n(4),d("className",p.showPaymentDetails?"enabled":"disabled"),n(2),m(c(30,26,"labels.inputs.Show Payment Details")),n(2),D(p.showPaymentDetails?31:-1),n(3),m(c(35,28,"labels.inputs.Note")),n(4),d("routerLink",K(34,Zp)),n(),u(" ",c(40,30,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.depositRecurringDepositForm.valid),n(),u(" ",c(43,32,"labels.buttons.Submit")," ")}},dependencies:[I,R,rt,mt,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,Ee,We,Lt,w],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px;margin-left:2%}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();function os(t,s){t&1&&C(0,"mifosx-activate-recurring-deposits-account")}function rs(t,s){t&1&&C(0,"mifosx-undo-approval-recurring-deposits-account")}function cs(t,s){t&1&&C(0,"mifosx-approve-recurring-deposits-account")}function ps(t,s){t&1&&C(0,"mifosx-reject-recurring-deposits-account")}function ss(t,s){t&1&&C(0,"mifosx-withdraw-by-client-recurring-deposits-account")}function ls(t,s){t&1&&C(0,"mifosx-add-charge-recurring-deposits-account")}function ms(t,s){t&1&&C(0,"mifosx-premature-close-recurring-deposit-account")}function ds(t,s){t&1&&C(0,"mifosx-close-recurring-deposits-account")}function us(t,s){if(t&1&&C(0,"mifosx-deposit-recurring-deposits-account",0),t&2){let e=f();d("currency",e.currency)}}var hn=(()=>{class t{constructor(){this.route=_(N),this.actions={Activate:!1,"Undo Activation":!1,"Undo Approval":!1,Approve:!1,Reject:!1,"Withdrawn by Client":!1,"Add Charge":!1,"Premature Close":!1,Close:!1,Deposit:!1,Withdrawal:!1},this.route.data.subscribe(l=>{l.recurringDepositsAccountActionData&&(this.currency=l.recurringDepositsAccountActionData.currency)});let e=this.route.snapshot.params.name;e&&e in this.actions&&(this.actions[e]=!0)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-recurring-deposits-account-actions"]],decls:9,vars:9,consts:[[3,"currency"]],template:function(l,p){l&1&&(x(0,os,1,0,"mifosx-activate-recurring-deposits-account"),x(1,rs,1,0,"mifosx-undo-approval-recurring-deposits-account"),x(2,cs,1,0,"mifosx-approve-recurring-deposits-account"),x(3,ps,1,0,"mifosx-reject-recurring-deposits-account"),x(4,ss,1,0,"mifosx-withdraw-by-client-recurring-deposits-account"),x(5,ls,1,0,"mifosx-add-charge-recurring-deposits-account"),x(6,ms,1,0,"mifosx-premature-close-recurring-deposit-account"),x(7,ds,1,0,"mifosx-close-recurring-deposits-account"),x(8,us,1,1,"mifosx-deposit-recurring-deposits-account",0)),l&2&&(D(p.actions.Activate?0:-1),n(),D(p.actions["Undo Approval"]||p.actions["Undo Activation"]?1:-1),n(),D(p.actions.Approve?2:-1),n(),D(p.actions.Reject?3:-1),n(),D(p.actions["Withdrawn by Client"]?4:-1),n(),D(p.actions["Add Charge"]?5:-1),n(),D(p.actions["Premature Close"]?6:-1),n(),D(p.actions.Close?7:-1),n(),D(p.actions.Deposit||p.actions.Withdrawal?8:-1))},dependencies:[I,R,sn,ln,mn,dn,un,gn,Cn,_n,fn],encapsulation:2})}}return t})();function gs(t,s){t&1&&(a(0,"button",11),C(1,"fa-icon",12),o(2),r(3,"translate"),i()),t&2&&(d("routerLink","edit"),n(2),u("",c(3,2,"labels.buttons.Edit")," "))}function Cs(t,s){if(t&1&&(a(0,"span"),x(1,gs,4,4,"button",11),i()),t&2){let e=f(2);n(),D(e.transactionData.transactionType.value==="Transfer"||e.transactionData.reversed==="true"?-1:1)}}function _s(t,s){if(t&1){let e=y();a(0,"button",13),T("click",function(){S(e);let p=f(2);return M(p.undoTransaction())}),C(1,"fa-icon",14),o(2),r(3,"translate"),i()}t&2&&(n(2),u("",c(3,1,"labels.buttons.Undo")," "))}function fs(t,s){t&1&&(a(0,"div",0),h(1,Cs,2,1,"span",9)(2,_s,4,3,"button",10),i()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"),n(),d("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function hs(t,s){t&1&&(a(0,"div",4),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Note")," "))}function xs(t,s){if(t&1&&(a(0,"div",5),o(1),i()),t&2){let e=f();n(),u(" ",e.transactionData.note," ")}}function Ds(t,s){if(t&1&&C(0,"mifosx-transaction-payment-detail",6),t&2){let e=f();d("paymentDetailData",e.transactionData.paymentDetailData)}}var xn=(()=>{class t{constructor(){this.recurringDepositsService=_(k),this.route=_(N),this.location=_(Bn),this.dateUtils=_(X),this.router=_(W),this.dialog=_(Xt),this.translateService=_(Ie),this.settingsService=_($),this.route.data.subscribe(e=>{this.transactionData=e.recurringDepositsAccountTransaction})}undoTransaction(){let e=this.route.parent.snapshot.params.recurringDepositAccountId;this.dialog.open(Kt,{data:{heading:this.translateService.instant("labels.heading.Undo Transaction"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want to undo this transaction ?")}}).afterClosed().subscribe(p=>{if(p.confirm){let g=this.settingsService.language.code,b=this.settingsService.dateFormat,G={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),b),transactionAmount:0,dateFormat:b,locale:g};this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(e,"undo",G,this.transactionData.id).subscribe(()=>{this.router.navigate(["../"],{relativeTo:this.route})})}})}transactionColor(){return this.transactionData.reversed?"undo":"active"}goBack(){this.location.back()}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-view-transaction"]],decls:40,vars:35,consts:[[1,"container","m-b-20","align-end","gap-2percent"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"paymentDetailData"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px","m-b-20"],["type","button","color","primary","mat-raised-button","",3,"click"],[4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(l,p){l&1&&(x(0,fs,3,2,"div",0),a(1,"div",1)(2,"mat-card")(3,"mat-card-content")(4,"div",2),C(5,"div",3),a(6,"div",4),o(7),r(8,"translate"),i(),a(9,"div",5),o(10),i(),a(11,"div",4),o(12),r(13,"translate"),i(),a(14,"div",5),o(15),i(),a(16,"div",4),o(17),r(18,"translate"),i(),a(19,"div",5),o(20),r(21,"dateFormat"),i(),a(22,"div",4),o(23),r(24,"translate"),i(),a(25,"div",5),o(26),i(),a(27,"div",4),o(28),r(29,"translate"),i(),a(30,"div",5),o(31),r(32,"currency"),i(),x(33,hs,3,3,"div",4),x(34,xs,2,1,"div",5),x(35,Ds,1,1,"mifosx-transaction-payment-detail",6),i()(),a(36,"mat-card-actions",7)(37,"button",8),T("click",function(){return p.goBack()}),o(38),r(39,"translate"),i()()()()),l&2&&(D(p.transactionData.reversed?-1:0),n(5),d("ngClass",p.transactionColor()),n(2),u(" ",c(8,16,"labels.inputs.Transaction Id")," "),n(3),u(" ",p.transactionData.id," "),n(2),u(" ",c(13,18,"labels.inputs.Type")," "),n(3),u(" ",p.transactionData.transactionType.value," "),n(2),u(" ",c(18,20,"labels.inputs.Transaction Date")," "),n(3),u(" ",c(21,22,p.transactionData.date)," "),n(3),u(" ",c(24,24,"labels.inputs.Currency")," "),n(3),u(" ",p.transactionData.currency.displayLabel," "),n(2),u(" ",c(29,26,"labels.inputs.Amount")," "),n(3),u(" ",U(32,28,p.transactionData.amount,p.transactionData.currency.code,"symbol-narrow","1.2-2")," "),n(2),D(p.transactionData.note?33:-1),n(),D(p.transactionData.note?34:-1),n(),D(p.transactionData.paymentDetailData?35:-1),n(3),u(" ",c(39,33,"labels.buttons.Back")," "))},dependencies:[I,be,R,Q,Y,ut,ft,V,re,_t,ci,Se,It,w],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();var bs=()=>["../"];function vs(t,s){t&1&&(a(0,"mat-error"),o(1),r(2,"translate"),r(3,"translate"),a(4,"strong"),o(5),r(6,"translate"),i()()),t&2&&(n(),A(" ",c(2,3,"labels.inputs.Transaction Date")," ",c(3,5,"labels.commons.is")," "),n(4),m(c(6,7,"labels.commons.required")))}function Ps(t,s){if(t&1&&(a(0,"mat-option",9),o(1),i()),t&2){let e=s.$implicit;d("value",e.id),n(),u(" ",e.name," ")}}function Ts(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",17),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Account Number")))}function Ss(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",18),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Cheque")))}function Ms(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",19),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Routing Code")))}function As(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",20),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Receipt Number")))}function ys(t,s){t&1&&(a(0,"mat-form-field")(1,"mat-label"),o(2),r(3,"translate"),i(),C(4,"input",21),i()),t&2&&(n(2),m(c(3,1,"labels.inputs.Bank")))}var Dn=(()=>{class t{constructor(){this.formBuilder=_(st),this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.currency=null,this.route.data.subscribe(e=>{this.transactionTemplateData=e.recurringDepositsAccountTransactionTemplate,this.transactionTemplateData.currency&&(this.currency=this.transactionTemplateData.currency),this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.recurringDepositAccountId=this.route.parent.parent.snapshot.params.recurringDepositAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",q.required],transactionAmount:["",q.required],paymentTypeId:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.editTransactionForm.addControl("accountNumber",new tt("")),this.editTransactionForm.addControl("checkNumber",new tt("")),this.editTransactionForm.addControl("routingCode",new tt("")),this.editTransactionForm.addControl("receiptNumber",new tt("")),this.editTransactionForm.addControl("bankNumber",new tt(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){let e=this.editTransactionForm.value,l=this.settingsService.language.code,p=this.settingsService.dateFormat,g=this.editTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(g,p));let b=J(F({},e),{dateFormat:p,locale:l});b.transactionAmount=b.transactionAmount*1,this.recurringDepositsService.executeRecurringDepositsAccountTransactionsCommand(this.recurringDepositAccountId,"modify",b,this.transactionTemplateData.id).subscribe(G=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-transaction"]],decls:40,vars:34,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-card")(2,"form",2),T("ngSubmit",function(){return S(g),M(p.submit())}),a(3,"mat-card-content",3)(4,"mat-form-field",4),T("click",function(){S(g);let G=E(11);return M(G.open())}),a(5,"mat-label"),o(6),r(7,"translate"),i(),C(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),x(12,vs,7,9,"mat-error"),i(),C(13,"mifosx-input-amount",7),a(14,"mat-form-field")(15,"mat-label"),o(16),r(17,"translate"),i(),a(18,"mat-select",8),L(19,Ps,2,2,"mat-option",9,z),i()(),a(21,"div",10)(22,"span",11),T("click",function(){return S(g),M(p.addPaymentDetails())}),a(23,"mat-slide-toggle")(24,"div",12)(25,"span",13),o(26),r(27,"translate"),i()()()()(),x(28,Ts,5,3,"mat-form-field"),x(29,Ss,5,3,"mat-form-field"),x(30,Ms,5,3,"mat-form-field"),x(31,As,5,3,"mat-form-field"),x(32,ys,5,3,"mat-form-field"),a(33,"mat-card-actions",14)(34,"button",15),o(35),r(36,"translate"),i(),a(37,"button",16),o(38),r(39,"translate"),i()()()()()()}if(l&2){let g=E(11);n(2),d("formGroup",p.editTransactionForm),n(4),m(c(7,23,"labels.inputs.Transaction Date")),n(2),d("min",p.minDate)("max",p.maxDate)("matDatepicker",g),n(),d("for",g),n(3),D(p.editTransactionForm.controls.transactionDate.hasError("required")?12:-1),n(),d("currency",p.currency)("isRequired",!0)("inputFormControl",p.editTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),m(c(17,25,"labels.inputs.Payment Type")),n(3),j(p.paymentTypeOptions),n(5),d("className",p.addPaymentDetailsFlag?"enabled":"disabled"),n(2),m(c(27,27,"labels.inputs.Show Payment Details")),n(2),D(p.editTransactionForm.controls.accountNumber?28:-1),n(),D(p.editTransactionForm.controls.checkNumber?29:-1),n(),D(p.editTransactionForm.controls.routingCode?30:-1),n(),D(p.editTransactionForm.controls.receiptNumber?31:-1),n(),D(p.editTransactionForm.controls.bankNumber?32:-1),n(2),d("routerLink",K(33,bs)),n(),u(" ",c(36,29,"labels.buttons.Cancel")," "),n(2),d("disabled",!p.editTransactionForm.valid),n(),u(" ",c(39,31,"labels.buttons.Submit")," ")}},dependencies:[I,R,rt,mt,Re,Z,ot,dt,ct,pt,Q,Y,ut,ft,nt,et,gt,ht,Ct,Ot,yt,Dt,bt,xt,V,Ee,We,w],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var li=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var An=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountData(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var yn=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.parent.paramMap.get("clientId");return this.recurringDepositsService.getRecurringDepositsAccountTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var On=(()=>{class t{constructor(){this.savingsService=_(pe),this.recurringDepositsService=_(k)}resolve(e){let l=e.paramMap.get("name"),p=e.paramMap.get("recurringDepositAccountId")||e.parent.parent.paramMap.get("recurringDepositAccountId");switch(l){case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(p);case"Close":return this.recurringDepositsService.getRecurringDepositAccountActionResource(p,"close");case"Deposit":case"Withdrawal":return this.recurringDepositsService.getRecurringDepositAccountTransactionTemplateResource(p,l.toLocaleLowerCase());default:return}}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();function Os(t,s){t&1&&C(0,"fa-icon",15)}function Is(t,s){t&1&&C(0,"fa-icon",15)}function Rs(t,s){t&1&&C(0,"fa-icon",16)}function ws(t,s){t&1&&C(0,"fa-icon",17)}function Es(t,s){t&1&&C(0,"fa-icon",18)}function Bs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.DETAILS"))}function Fs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.TERMS"))}function ks(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.SETTINGS"))}function Ns(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.INTEREST RATE CHART"))}function Vs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.CHARGES"))}function qs(t,s){t&1&&(o(0),r(1,"translate")),t&2&&m(c(1,1,"labels.inputs.PREVIEW"))}function Gs(t,s){if(t&1){let e=y();a(0,"mat-step",14),h(1,qs,2,3,"ng-template",9),a(2,"mifosx-recurring-deposits-account-preview-step",19),T("submitEvent",function(){S(e);let p=f();return M(p.submit())}),i()()}if(t&2){let e=f();n(2),d("recurringDepositsAccountTemplate",e.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",e.recurringDepositsAccountProductTemplate)("recurringDepositAccountData",e.recurringDepositAccountData)}}var bn=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.dateUtils=_(X),this.recurringDepositsService=_(k),this.settingsService=_($),this.route.data.subscribe(e=>{this.recurringDepositsAccountAndTemplate=e.recurringDepositsAccountAndTemplate})}setTemplate(e){this.recurringDepositsAccountProductTemplate=e}get recurringDepositAccountDetailsForm(){return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm}get recurringDepositAccountTermsForm(){return this.recurringDepositAccountTermsStep.recurringDepositAccountTermsForm}get recurringDepositAccountSettingsForm(){return this.recurringDepositAccountSettingsStep.recurringDepositAccountSettingsForm}get recurringDepositAccountFormValidAndNotPristine(){return this.recurringDepositAccountDetailsForm.valid&&this.recurringDepositAccountTermsForm.valid&&this.recurringDepositAccountSettingsForm.valid&&(!this.recurringDepositAccountDetailsForm.pristine||!this.recurringDepositAccountTermsForm.pristine||!this.recurringDepositAccountSettingsForm.pristine||!this.recurringDepositAccountChargesStep.pristine)}get recurringDepositAccountData(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}get recurringDepositAccount(){return F(F(F(F({},this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetails),this.recurringDepositAccountTermsStep.recurringDepositAccountTerms),this.recurringDepositAccountSettingsStep.recurringDepositAccountSettings),this.recurringDepositAccountChargesStep.recurringDepositAccountCharges)}submit(){let e=this.settingsService.language.code,l=this.settingsService.dateFormat,g=J(F({},this.recurringDepositAccount),{clientId:this.recurringDepositsAccountAndTemplate.clientId,charges:this.recurringDepositAccount.charges.map(b=>({chargeId:b.id,amount:b.amount,dueDate:b.dueDate&&this.dateUtils.formatDate(b.dueDate,l),feeOnMonthDay:b.feeOnMonthDay,feeInterval:b.feeInterval})),isCalendarInherited:this.recurringDepositAccount.recurringDepositAccount?this.recurringDepositAccount.recurringDepositAccount:!1,submittedOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.submittedOnDate,l),expectedFirstDepositOnDate:this.dateUtils.formatDate(this.recurringDepositAccount.expectedFirstDepositOnDate,l),dateFormat:l,monthDayFormat:"dd MMMM",locale:e});this.recurringDepositsService.updateRecurringDepositAccount(this.recurringDepositsAccountAndTemplate.id,g).subscribe(b=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-edit-recurring-deposit-account"]],viewQuery:function(l,p){if(l&1&&(Pt(se,7),Pt(le,7),Pt(me,7),Pt(de,7)),l&2){let g;Tt(g=St())&&(p.recurringDepositsAccountDetailsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountTermsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountSettingsStep=g.first),Tt(g=St())&&(p.recurringDepositAccountChargesStep=g.first)}},decls:24,vars:16,consts:[["recurringDepositAccountStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"recurringDepositsAccountProductTemplate","recurringDepositsAccountTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"isNew","recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate"],[3,"recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountFormValid"],["state","preview","completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","recurringDepositsAccountTemplate","recurringDepositsAccountProductTemplate","recurringDepositAccountData"]],template:function(l,p){if(l&1){let g=y();a(0,"div",1)(1,"mat-stepper",2,0),h(3,Os,1,0,"ng-template",3)(4,Is,1,0,"ng-template",4)(5,Rs,1,0,"ng-template",5)(6,ws,1,0,"ng-template",6)(7,Es,1,0,"ng-template",7),a(8,"mat-step",8),h(9,Bs,2,3,"ng-template",9),a(10,"mifosx-recurring-deposits-account-details-step",10),T("recurringDepositsAccountProductTemplate",function(G){return S(g),M(p.setTemplate(G))}),i()(),a(11,"mat-step",8),h(12,Fs,2,3,"ng-template",9),C(13,"mifosx-recurring-deposits-account-terms-step",11),i(),a(14,"mat-step",8),h(15,ks,2,3,"ng-template",9),C(16,"mifosx-recurring-deposits-account-settings-step",12),i(),a(17,"mat-step"),h(18,Ns,2,3,"ng-template",9),C(19,"mifosx-recurring-deposits-account-interest-rate-chart-step",11),i(),a(20,"mat-step"),h(21,Vs,2,3,"ng-template",9),C(22,"mifosx-recurring-deposits-account-charges-step",13),i(),x(23,Gs,3,3,"mat-step",14),i()()}l&2&&(n(),d("linear",!1),n(7),d("stepControl",p.recurringDepositAccountDetailsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate),n(),d("stepControl",p.recurringDepositAccountTermsForm),n(2),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(),d("stepControl",p.recurringDepositAccountSettingsForm),n(2),d("isNew",!1)("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate),n(3),d("recurringDepositsAccountTemplate",p.recurringDepositsAccountAndTemplate)("recurringDepositsAccountProductTemplate",p.recurringDepositsAccountProductTemplate)("recurringDepositAccountFormValid",p.recurringDepositAccountFormValidAndNotPristine),n(),D(p.recurringDepositAccountFormValidAndNotPristine?23:-1))},dependencies:[I,R,Je,Qe,_t,Ye,Ke,se,le,me,Fe,de,ke,w],encapsulation:2})}}return t})();var In=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.paramMap.get("recurringDepositAccountId");return this.recurringDepositsService.getRecurringDepositsAccountAndTemplate(l)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var Rn=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.paramMap.get("recurringDepositAccountId"),p=e.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransaction(l,p)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var wn=(()=>{class t{constructor(){this.recurringDepositsService=_(k)}resolve(e){let l=e.parent.paramMap.get("recurringDepositAccountId"),p=e.paramMap.get("id");return this.recurringDepositsService.getRecurringDepositsAccountTransactionTemplate(l,p)}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();function Hs(t,s){if(t&1&&(a(0,"span"),C(1,"mifosx-external-identifier",4),i()),t&2){let e=f(2);n(),d("externalId",Mt(e.recurringDepositsAccountData.externalId))}}function Us(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Not Available")," "))}function $s(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Unassigned")))}function zs(t,s){t&1&&(a(0,"td"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Closed on Date")," "))}function Ls(t,s){if(t&1&&(a(0,"tr"),x(1,zs,3,3,"td"),a(2,"td")(3,"span"),o(4),r(5,"dateFormat"),i()()()),t&2){let e=f(2);n(),D(e.recurringDepositsAccountData.timeline.closedOnDate?1:-1),n(3),m(c(5,2,e.recurringDepositsAccountData.timeline.closedOnDate))}}function js(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Balance Required for Interest Calculation")),n(4),m(e.recurringDepositsAccountData.minBalanceForInterestCalculation)}}function Ws(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Witdhold Tax Group")),n(4),m(e.recurringDepositsAccountData.taxGroup.name)}}function Ks(t,s){if(t&1&&(a(0,"div",1)(1,"h4",2),o(2),r(3,"translate"),i(),a(4,"table")(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td"),x(11,Hs,2,2,"span"),x(12,Us,3,3,"span"),i()(),a(13,"tr")(14,"td"),o(15),r(16,"translate"),i(),a(17,"td"),o(18),x(19,$s,3,3,"span"),i()(),a(20,"tr")(21,"td"),o(22),r(23,"translate"),i(),a(24,"td"),o(25),r(26,"dateFormat"),i()(),a(27,"tr")(28,"td"),o(29),r(30,"translate"),i(),a(31,"td")(32,"span"),o(33),r(34,"dateFormat"),i()()(),x(35,Ls,6,4,"tr"),C(36,"tr"),a(37,"tr")(38,"td"),o(39),r(40,"translate"),i(),a(41,"td")(42,"span",3),o(43),i(),o(44),r(45,"translateKey"),i()(),x(46,js,7,4,"tr"),x(47,Ws,7,4,"tr"),i()()()),t&2){let e=f();n(2),m(c(3,17,"labels.inputs.Account Details")),n(6),m(c(9,19,"labels.inputs.External Id")),n(3),D(e.recurringDepositsAccountData.externalId?11:-1),n(),D(e.recurringDepositsAccountData.externalId?-1:12),n(3),m(c(16,21,"labels.inputs.Field Officer")),n(3),u(" ",e.recurringDepositsAccountData.fieldOfficerName," "),n(),D(e.recurringDepositsAccountData.fieldOfficerName?-1:19),n(3),m(c(23,23,"labels.inputs.Activation date")),n(3),m(c(26,25,e.recurringDepositsAccountData.timeline.activatedOnDate)),n(4),m(c(30,27,"labels.inputs.Maturity Date")),n(4),m(c(34,29,e.recurringDepositsAccountData.maturityDate)),n(2),D(e.recurringDepositsAccountData.timeline.closedOnDate||e.recurringDepositsAccountData.summary.totalWitddrawals?35:-1),n(4),m(c(40,31,"labels.inputs.Deposit Frequency")),n(4),m(e.recurringDepositsAccountData.recurringFrequency),n(),u(" ",B(45,33,e.recurringDepositsAccountData.recurringFrequencyType.value,"catalogs")," "),n(2),D(e.recurringDepositsAccountData.minBalanceForInterestCalculation?46:-1),n(),D(e.recurringDepositsAccountData.witdHoldTax?47:-1)}}function Qs(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function Ys(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function Js(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function Xs(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function Zs(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"currency"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Interest Earned")),n(4),m(U(7,4,e.recurringDepositsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2"))}}function tl(t,s){if(t&1&&(a(0,"div",1)(1,"h4",2),o(2),r(3,"translate"),i(),a(4,"table")(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td",5)(11,"span"),o(12),r(13,"currency"),i()()(),a(14,"tr")(15,"td"),o(16),r(17,"translate"),i(),a(18,"td",5)(19,"span"),o(20),r(21,"currency"),i()()(),a(22,"tr")(23,"td"),o(24),r(25,"translate"),i(),a(26,"td",5)(27,"span"),o(28),r(29,"currency"),i()()(),a(30,"tr")(31,"td"),o(32),r(33,"translate"),i(),a(34,"td",5),x(35,Qs,3,6,"span"),x(36,Ys,3,6,"span"),i()(),a(37,"tr")(38,"td"),o(39),r(40,"translate"),i(),a(41,"td",5),x(42,Js,3,6,"span"),x(43,Xs,3,6,"span"),i()(),x(44,Zs,8,9,"tr"),i()()()),t&2){let e=f();n(2),m(c(3,14,"labels.heading.Performance History")),n(6),m(c(9,16,"labels.inputs.Principal Amount")),n(4),m(U(13,18,e.recurringDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2")),n(4),m(c(17,23,"labels.inputs.Maturity Amount")),n(4),m(U(21,25,e.recurringDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2")),n(4),m(c(25,30,"labels.inputs.Recurring Deposit Amount")),n(4),m(U(29,32,e.recurringDepositsAccountData==null?null:e.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,e.currency.code,"symbol-narrow","1.2-2")),n(4),m(c(33,37,"labels.inputs.Deposits till Date")),n(3),D(e.recurringDepositsAccountData.summary.totalDeposits?35:-1),n(),D(e.recurringDepositsAccountData.summary.totalDeposits?-1:36),n(3),m(c(40,39,"labels.inputs.Withdrwals till Date")),n(3),D(e.recurringDepositsAccountData.summary.totalWithdrawals?42:-1),n(),D(e.recurringDepositsAccountData.summary.totalWithdrawals?-1:43),n(),D(e.recurringDepositsAccountData.summary.totalInterestEarned>=0?44:-1)}}function el(t,s){if(t&1&&(a(0,"span"),C(1,"mifosx-external-identifier",4),i()),t&2){let e=f(2);n(),d("externalId",Mt(e.recurringDepositsAccountData.externalId))}}function nl(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),u(" ",c(2,1,"labels.inputs.Not Available")," "))}function il(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Not Activated")))}function al(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),x(3,il,3,3,"span"),i()),t&2){let e=f(2);n(),u("",c(2,2,e.recurringDepositsAccountData.timeline.activatedOnDate)," "),n(2),D(e.recurringDepositsAccountData.timeline.activatedOnDate?-1:3)}}function ol(t,s){t&1&&(a(0,"span"),o(1),r(2,"translate"),i()),t&2&&(n(),m(c(2,1,"labels.inputs.Not Activated")))}function rl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"dateFormat"),x(3,ol,3,3,"span"),i()),t&2){let e=f(2);n(),u("",c(2,2,e.recurringDepositsAccountData.expectedFirstDepositOnDate)," "),n(2),D(e.recurringDepositsAccountData.expectedFirstDepositOnDate?-1:3)}}function cl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),r(7,"dateFormat"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Maturity Date")),n(4),m(c(7,4,e.recurringDepositsAccountData.maturityDate))}}function pl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2"))}}function sl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function ll(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Interests Earned")),n(4),A("",e.recurringDepositsAccountData.currency.displaySymbol,"\xA0",e.recurringDepositsAccountData.summary.totalInterestEarned)}}function ml(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"currency"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Total Withdrawls")),n(4),m(U(7,4,e.recurringDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function dl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"number"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Balance Required for Interest Calculation")),n(4),m(c(7,4,e.recurringDepositsAccountData.minBalanceForInterestCalculation))}}function ul(t,s){if(t&1&&(a(0,"div",1)(1,"table")(2,"tbody")(3,"tr")(4,"td"),o(5),r(6,"translate"),i(),a(7,"td"),x(8,el,2,2,"span"),x(9,nl,3,3,"span"),i()(),a(10,"tr")(11,"td"),o(12),r(13,"translate"),i(),a(14,"td"),x(15,al,4,4,"span"),x(16,rl,4,4,"span"),i()(),a(17,"tr")(18,"td"),o(19),r(20,"translate"),i(),a(21,"td")(22,"span"),o(23),i()()(),x(24,cl,8,6,"tr"),a(25,"tr")(26,"td"),o(27),r(28,"translate"),i(),a(29,"td",5),x(30,pl,3,6,"span"),x(31,sl,3,6,"span"),i()(),a(32,"tr")(33,"td"),o(34),r(35,"translate"),i(),a(36,"td",5),o(37),r(38,"currency"),i()(),a(39,"tr")(40,"td"),o(41),r(42,"translate"),i(),a(43,"td",5),o(44),r(45,"currency"),i()(),x(46,ll,7,5,"tr"),x(47,ml,8,9,"tr"),x(48,dl,8,6,"tr"),i()()()),t&2){let e=f();n(5),m(c(6,20,"labels.inputs.External Id")),n(3),D(e.recurringDepositsAccountData.externalId?8:-1),n(),D(e.recurringDepositsAccountData.externalId?-1:9),n(3),m(c(13,22,"labels.inputs.Date of Deposit")),n(3),D(e.recurringDepositsAccountData.expectedFirstDepositOnDate?-1:15),n(),D(e.recurringDepositsAccountData.expectedFirstDepositOnDate?16:-1),n(3),m(c(20,24,"labels.inputs.Period")),n(4),A("",e.recurringDepositsAccountData.depositPeriod,"\xA0",e.recurringDepositsAccountData.depositPeriodFrequency.value),n(),D(e.recurringDepositsAccountData.maturityDate?24:-1),n(3),m(c(28,26,"labels.inputs.Total Deposits")),n(3),D(e.recurringDepositsAccountData.summary.totalDeposits?30:-1),n(),D(e.recurringDepositsAccountData.summary.totalDeposits?-1:31),n(3),m(c(35,28,"labels.inputs.Actual Available Balance")),n(3),u(" ",U(38,30,e.recurringDepositsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),m(c(42,35,"labels.inputs.Recurring Deposit Amount")),n(3),u(" ",U(45,37,e.recurringDepositsAccountData.mandatoryRecommendedDepositAmount,e.currency.code,"symbol-narrow","1.2-2")," "),n(2),D(e.recurringDepositsAccountData.summary.totalInterestEarned?46:-1),n(),D(e.recurringDepositsAccountData.summary.totalWithdrawals?47:-1),n(),D(e.recurringDepositsAccountData.minBalanceForInterestCalculation?48:-1)}}function gl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.depositAmount,e.currency.code,"symbol-narrow","1.2-2"))}}function Cl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function _l(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5)(5,"span"),o(6),r(7,"currency"),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Maturity Amount")),n(4),m(U(7,4,e.recurringDepositsAccountData.maturityAmount,e.currency.code,"symbol-narrow","1.2-2"))}}function fl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2"))}}function hl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(2);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function xl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td"),o(5),r(6,"dateFormat"),i()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Closed on Date")),n(3),u(" ",c(6,4,e.recurringDepositsAccountData.timeline.closedOnDate)," ")}}function Dl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(3);n(),m(U(2,1,e.recurringDepositsAccountData.summary.totalInterestPosted,e.currency.code,"symbol-narrow","1.2-2"))}}function bl(t,s){if(t&1&&(a(0,"span"),o(1),r(2,"currency"),i()),t&2){let e=f(3);n(),m(U(2,1,0,e.currency.code,"symbol-narrow","1.2-2"))}}function vl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td",5),x(5,Dl,3,6,"span"),x(6,bl,3,6,"span"),i()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Interests Posted")),n(3),D(e.recurringDepositsAccountData.summary.totalInterestPosted?5:-1),n(),D(e.recurringDepositsAccountData.summary.totalInterestPosted?-1:6)}}function Pl(t,s){if(t&1&&(a(0,"div",1)(1,"table")(2,"tbody")(3,"tr")(4,"td"),o(5),r(6,"translate"),i(),a(7,"td",5),x(8,gl,3,6,"span"),x(9,Cl,3,6,"span"),i()(),a(10,"tr")(11,"td"),o(12),r(13,"translate"),i(),a(14,"td",5)(15,"span"),o(16),r(17,"formatNumber"),i()()(),x(18,_l,8,9,"tr"),a(19,"tr")(20,"td"),o(21),r(22,"translate"),i(),a(23,"td",5),x(24,fl,3,6,"span"),x(25,hl,3,6,"span"),i()(),x(26,xl,7,6,"tr"),a(27,"tr")(28,"td"),o(29),r(30,"translate"),i(),a(31,"td"),o(32),r(33,"translateKey"),i()(),x(34,vl,7,5,"tr"),i()()()),t&2){let e=f();n(5),m(c(6,14,"labels.inputs.Principal Amount")),n(3),D(e.recurringDepositsAccountData.depositAmount?8:-1),n(),D(e.recurringDepositsAccountData.depositAmount?-1:9),n(3),m(c(13,16,"labels.inputs.Rate of Interest")),n(4),u("",c(17,18,e.recurringDepositsAccountData.nominalAnnualInterestRate)," %"),n(2),D(e.recurringDepositsAccountData.maturityDate?18:-1),n(3),m(c(22,20,"labels.inputs.Total Withdrawls")),n(3),D(e.recurringDepositsAccountData.summary.totalWithdrawals?24:-1),n(),D(e.recurringDepositsAccountData.summary.totalWithdrawals?-1:25),n(),D(e.recurringDepositsAccountData.timeline.closedOnDate?26:-1),n(3),m(c(30,22,"labels.inputs.Deposits Frequency")),n(3),A(" ",e.recurringDepositsAccountData.recurringFrequency,"\xA0",B(33,24,e.recurringDepositsAccountData.recurringFrequencyType.value,"catalogs")," "),n(2),D(e.recurringDepositsAccountData.summary.totalInterestEarned?34:-1)}}function Tl(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),r(7,"translateKey"),i()()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Pre-closure penal Interest (less)")),n(4),A("",e.recurringDepositsAccountData.preClosurePenalInterest," % on ",B(7,5,e.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"catalogs"))}}function Sl(t,s){if(t&1&&(a(0,"div",1)(1,"h4",2),o(2),r(3,"translate"),i(),a(4,"table")(5,"tbody")(6,"tr")(7,"td"),o(8),r(9,"translate"),i(),a(10,"td",5),o(11),r(12,"formatNumber"),i()(),a(13,"tr")(14,"td"),o(15),r(16,"translate"),i(),a(17,"td")(18,"span"),o(19),r(20,"translateKey"),i()()(),a(21,"tr")(22,"td"),o(23),r(24,"translate"),i(),a(25,"td")(26,"span"),o(27),r(28,"translateKey"),i()()(),a(29,"tr")(30,"td"),o(31),r(32,"translate"),i(),a(33,"td")(34,"span"),o(35),r(36,"translateKey"),i()()(),a(37,"tr")(38,"td"),o(39),r(40,"translate"),i(),a(41,"td")(42,"span"),o(43),r(44,"translateKey"),i()()(),x(45,Tl,8,8,"tr"),i()()()),t&2){let e=f();n(2),m(c(3,12,"labels.heading.Interest Details")),n(6),m(c(9,14,"labels.inputs.Interest Rate")),n(3),u("",c(12,16,e.recurringDepositsAccountData.nominalAnnualInterestRate)," %"),n(4),m(c(16,18,"labels.inputs.Interest Compounding Period")),n(4),m(B(20,20,e.recurringDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),n(4),m(c(24,23,"labels.inputs.Interest Posting Period")),n(4),m(B(28,25,e.recurringDepositsAccountData.interestPostingPeriodType.value,"catalogs")),n(4),m(c(32,28,"labels.inputs.Interest calculated using")),n(4),m(B(36,30,e.recurringDepositsAccountData.interestCalculationType.value,"catalogs")),n(4),m(c(40,33,"labels.inputs.Days in Year")),n(4),m(B(44,35,e.recurringDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),n(2),D(e.recurringDepositsAccountData.preClosurePenalApplicable?45:-1)}}function Ml(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),r(7,"translateKey"),i()()()),t&2){let e=f(2);n(2),m(c(3,3,"labels.inputs.Pre-closure penal Interest (less)")),n(4),A("",e.recurringDepositsAccountData.preClosurePenalInterest," % on ",B(7,5,e.recurringDepositsAccountData.preClosurePenalInterestOnType.value,"catalogs"))}}function Al(t,s){if(t&1&&(a(0,"tr")(1,"td"),o(2),r(3,"translate"),i(),a(4,"td")(5,"span"),o(6),i()()()),t&2){let e=f(2);n(2),m(c(3,2,"labels.inputs.Witdhold Tax Group")),n(4),m(e.recurringDepositsAccountData.taxGroup.name)}}function yl(t,s){if(t&1&&(a(0,"div",1)(1,"table")(2,"tbody")(3,"tr")(4,"td"),o(5),r(6,"translate"),i(),a(7,"td")(8,"span"),o(9),r(10,"translateKey"),i()()(),a(11,"tr")(12,"td"),o(13),r(14,"translate"),i(),a(15,"td")(16,"span"),o(17),r(18,"translateKey"),i()()(),a(19,"tr")(20,"td"),o(21),r(22,"translate"),i(),a(23,"td")(24,"span"),o(25),r(26,"translateKey"),i()()(),a(27,"tr")(28,"td"),o(29),r(30,"translate"),i(),a(31,"td")(32,"span"),o(33),r(34,"translateKey"),i()()(),x(35,Ml,8,8,"tr"),x(36,Al,7,4,"tr"),i()()()),t&2){let e=f();n(5),m(c(6,10,"labels.inputs.Interest Compounding Period")),n(4),m(B(10,12,e.recurringDepositsAccountData.interestCompoundingPeriodType.value,"catalogs")),n(4),m(c(14,15,"labels.inputs.Interest Posting Period")),n(4),m(B(18,17,e.recurringDepositsAccountData.interestPostingPeriodType.value,"catalogs")),n(4),m(c(22,20,"labels.inputs.Interest calculated using")),n(4),m(B(26,22,e.recurringDepositsAccountData.interestCalculationType.value,"catalogs")),n(4),m(c(30,25,"labels.inputs.Days in Year")),n(4),m(B(34,27,e.recurringDepositsAccountData.interestCalculationDaysInYearType.value,"catalogs")),n(2),D(e.recurringDepositsAccountData.preClosurePenalApplicable?35:-1),n(),D(e.recurringDepositsAccountData.witdHoldTax?36:-1)}}var vn=(()=>{class t{constructor(){this.route=_(N),this.router=_(W),this.isprematureAllowed=!1,this.route.parent.data.subscribe(e=>{this.recurringDepositsAccountData=e.recurringDepositsAccountData,this.currency=this.recurringDepositsAccountData.currency,this.isprematureAllowed=e.recurringDepositsAccountData.maturityDate!=null,this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")})}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=O({type:t,selectors:[["mifosx-general-tab"]],decls:8,vars:6,consts:[[1,"recurring-deposits-account-tables","layout-row","gap-2percent"],[1,"flex-49"],[1,"table-headers"],[1,"m-r-5"],["completed","true",3,"externalId"],[1,"r-amount"]],template:function(l,p){l&1&&(a(0,"div",0),x(1,Ks,48,36,"div",1),x(2,tl,45,41,"div",1),x(3,ul,49,42,"div",1),x(4,Pl,35,27,"div",1),i(),a(5,"div",0),x(6,Sl,46,38,"div",1),x(7,yl,37,30,"div",1),i()),l&2&&(n(),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?1:-1),n(),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?2:-1),n(),D(p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval?3:-1),n(),D(p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval?4:-1),n(2),D(!p.recurringDepositsAccountData.status.rejected&&!p.recurringDepositsAccountData.status.submittedAndPendingApproval?6:-1),n(),D(p.recurringDepositsAccountData.status.rejected||p.recurringDepositsAccountData.status.submittedAndPendingApproval?7:-1))},dependencies:[I,R,ti,Ge,Se,It,w,Rt,Wt],styles:[".recurring-deposits-account-tables[_ngcontent-%COMP%]{padding:1%}"]})}}return t})();var Ol=[{path:"",data:{title:"Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:"create-recurring-deposits-account",data:{title:"Create Recurring Deposits Account",breadcrumb:"Create Recurring Deposits Account"},component:pn,resolve:{recurringDepositsAccountTemplate:yn}},{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"",component:en,resolve:{recurringDepositsAccountData:An,savingsDatatables:Sn},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:vn,data:{title:"Recurring Deposit Account Details",breadcrumb:"General",routeParamBreadcrumb:!1}},{path:"interest-rate-chart",component:nn,data:{title:"Recurring Deposit Account Interest Rate Chart",breadcrumb:"Interest Rate Chart",routeParamBreadcrumb:!1}},{path:"transactions",component:an,data:{title:"Recurring Deposit Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:rn,data:{title:"Recurring Deposit Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions-tab",component:on,data:{title:"Recurring Deposit Account Standing Instructions",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"datatables",children:[{path:":datatableName",component:cn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:Tn}}]}]},{path:"edit-recurring-deposit-account",data:{title:"Edit Recurring Deposit Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:bn,resolve:{recurringDepositsAccountAndTemplate:In}},{path:"transactions",data:{title:"Recurring Deposits Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../transactions",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},children:[{path:"",component:xn,resolve:{recurringDepositsAccountTransaction:Rn}},{path:"edit",component:Dn,resolve:{recurringDepositsAccountTransactionTemplate:wn}}]}]},{path:"actions/:name",data:{title:"Recurring Deposits Account Actions",routeParamBreadcrumb:"name"},component:hn,resolve:{recurringDepositsAccountActionData:On}}]},{path:":recurringDepositAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-3HW2IDTS.js").then(t=>t.AccountTransfersModule)}]},{path:"",data:{title:"All Recurring Deposits",breadcrumb:"Recurring Deposits",routeParamBreadcrumb:!1},children:[{path:":recurringDepositAccountId",data:{title:"RecurringDeposit Account View",routeParamBreadcrumb:"recurringDepositAccountId"},children:[{path:"standing-instructions",loadChildren:()=>import("./account-transfers.module-3HW2IDTS.js").then(t=>t.AccountTransfersModule)}]}]}],mi=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=qe({type:t})}static{this.\u0275inj=Ne({providers:[li,An,Tn,Sn,yn,On,In,Rn,wn],imports:[Pn.forChild(Ol),Pn]})}}return t})();var xf=(()=>{class t{static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275mod=qe({type:t})}static{this.\u0275inj=Ne({imports:[pi,ii,ai,mi,en,nn,an,on,rn,cn,pn,se,le,me,Fe,de,ke,hn,sn,ln,mn,dn,un,gn,Kt,bn,Cn,_n,fn,xn,Dn,vn]})}}return t})();export{xf as RecurringDepositsModule}; diff --git a/browser/savings.module-IVI3UD24.js b/browser/savings.module-BWCLPAVJ.js similarity index 99% rename from browser/savings.module-IVI3UD24.js rename to browser/savings.module-BWCLPAVJ.js index 16693fca8..57da40f3c 100644 --- a/browser/savings.module-IVI3UD24.js +++ b/browser/savings.module-BWCLPAVJ.js @@ -1,2 +1,2 @@ -import{a as qe}from"./chunk-E77RWCNF.js";import{a as dn,b as ni,c as Ui,d as qi}from"./chunk-QZU3VMUE.js";import{a as Ve}from"./chunk-Q3AW2LXK.js";import{a as ii,b as ai}from"./chunk-LTHWICVL.js";import{a as Gi}from"./chunk-SKSBMOXL.js";import{$ as $e,$a as Xn,$d as ve,$e as yi,$f as ln,Aa as vi,Ad as Pi,Ba as _i,Bc as Xt,Bd as X,Bg as Ri,Cc as De,Cd as mt,Cf as rn,Da as N,Dc as yt,Df as cn,Ea as R,Eb as ue,Ec as Zt,Ef as sn,Fb as P,Fc as te,Fd as vt,G as At,Ga as D,Gc as ee,Gd as Z,H as je,Hc as ne,Hd as ae,Ia as b,Id as st,Ig as Vi,Ja as h,Jd as It,Jg as Re,K as g,Kg as Li,L as S,Lc as ge,Ld as wt,M,Mc as y,Na as Pt,Nd as fe,Oa as Ot,Oc as Xe,Od as _t,Pa as Dt,Pd as ht,Qa as w,Qd as xt,Qe as ye,Rc as j,Rd as Ce,Sc as U,Sd as Bt,T as Te,Td as Nt,Ua as r,Uc as xi,Ud as Rt,Uf as Be,Va as p,Wa as f,Wb as Ke,Wc as et,Wf as Ii,Xa as V,Xc as H,Xd as St,Ya as Pe,Yc as K,Zc as nt,Ze as Ie,Zf as wi,_ as Ci,_a as Jn,_d as se,_e as ei,_f as me,ab as Zn,ad as Ct,ag as mn,bb as ft,bd as bi,bf as we,bg as Ei,ca as n,cd as it,ce as Oi,cf as Ee,da as We,dd as ie,de as tn,df as Fe,eb as k,ed as Si,ef as ke,fb as kt,fd as at,ff as _e,fg as I,ge as en,gf as le,gg as Fi,hb as c,hc as E,he as nn,hf as Lt,ib as l,ic as Ye,id as ot,ie as an,if as Gt,ja as T,jb as Mt,jf as Ut,ka as Qe,kb as hi,kc as z,lb as tt,lc as q,ld as lt,lf as qt,mc as Je,mf as Ht,n as fi,na as A,nc as ti,ne as on,ng as ki,of as zt,pd as rt,pf as jt,pg as Bi,qb as de,qc as Oe,qd as Mi,qg as Ne,ra as v,rc as F,rd as O,re as Di,rf as $t,rg as pe,sa as _,sd as J,sf as Wt,ta as dt,td as Ze,ua as ut,ud as Ai,uf as Qt,ug as pn,va as gt,vd as ct,wa as d,xa as i,xd as bt,xf as Jt,ya as a,yd as Ti,za as C,zg as Ni}from"./chunk-AA5NALQN.js";import{a as G,b as Q}from"./chunk-PHUH23IY.js";var Qi=()=>({confirm:!0}),un=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-calculate-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,5,"labels.heading.Calculate Interest")),n(4),f("",l(6,7,"labels.text.Are you sure you want to calculate interest")," ?"),n(4),p(l(10,9,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(13,Qi)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var Ki=()=>({confirm:!0}),gn=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-post-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,5,"labels.heading.Post Interest")),n(4),f("",l(6,7,"labels.text.Are you sure you want to post interest")," ?"),n(4),p(l(10,9,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(13,Ki)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var Yi=()=>({confirm:!0}),He=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(De)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:17,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),c(3,"translate"),a(),i(4,"div",1)(5,"p"),r(6),c(7,"translate"),c(8,"translate"),c(9,"translate"),a()(),i(10,"mat-dialog-actions",2)(11,"button",3),r(12),c(13,"translate"),a(),i(14,"button",4),r(15),c(16,"translate"),a()()),s&2&&(n(),V(" ",l(2,10,o.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",l(3,12,"labels.heading.Withhold Tax"),` -`),n(5),Pe(" ",l(7,14,"labels.text.Are you sure you want to")," ",l(8,16,o.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",l(9,18,"labels.text.withhold tax for this account")," ? "),n(6),p(l(13,20,"labels.buttons.Cancel")),n(2),d("color",ft(o.data.isEnable?"accent":"warn"))("mat-dialog-close",k(24,Yi)),n(),f(" ",l(16,22,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var fn=class{constructor(m,e){this.setOptions(m),this.setButtons(m,e)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(m,e){switch(m){case"Active":this.buttonsArray=[],e.block?this.buttonsArray=[{name:"Unblock Account",icon:"lock-open",taskPermissionName:"UNBLOCK_SAVINGSACCOUNT"}]:(e.blockCredit?this.buttonsArray.push({name:"Unblock Deposit",icon:"lock-open",taskPermissionName:"UNBLOCKDEPOSIT_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_SAVINGSACCOUNT"},{name:"Block Deposit",icon:"lock",taskPermissionName:"BLOCKDEPOSIT_SAVINGSACCOUNT"}),e.blockDebit?this.buttonsArray.push({name:"Unblock Withdrawal",icon:"lock-open",taskPermissionName:"UNBLOCKWITHDRAWAL_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Withdrawal",icon:"arrow-down",taskPermissionName:"WITHDRAWAL_SAVINGSACCOUNT"},{name:"Block Withdrawal",icon:"lock",taskPermissionName:"BLOCKWITHDRAWAL_SAVINGSACCOUNT"}),this.buttonsArray=this.buttonsArray.concat([{name:"Block Account",icon:"lock",taskPermissionName:"BLOCK_SAVINGSACCOUNT"},{name:"Hold Amount",icon:"lock",taskPermissionName:"HOLDAMOUNT_SAVINGSACCOUNT"},{name:"Calculate Interest",icon:"table",taskPermissionName:"CALCULATEINTEREST_SAVINGSACCOUNT"},{name:"Post Interest As On",icon:"arrow-right",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"}]));break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pen",taskPermissionName:"UPDATE_SAVINGSACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SAVINGSACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SAVINGSACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SAVINGSACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"}];break;default:this.buttonsArray=[]}}setOptions(m){switch(m){case"Active":this.optionArray=[{name:"Post Interest",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Close",taskPermissionName:"CLOSE_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SAVINGSACCOUNT"},{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Delete",taskPermissionName:"DELETE_SAVINGSACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(m){this.optionArray.push(m)}};var Ji=()=>["./general"],Xi=()=>["./transactions"],Zi=()=>["./charges"],ta=()=>["./documents"],ea=()=>["./notes"],na=()=>["./standing-instructions"],ia=t=>["./datatables",t];function aa(t,m){if(t&1&&(C(0,"i",18),c(1,"statusLookup")),t&2){let e=h();d("ngClass",l(1,2,e.savingsAccountData.status.code))("matTooltip",e.savingsAccountData.status.value)}}function oa(t,m){if(t&1&&(C(0,"i",18),c(1,"statusLookup")),t&2){let e=h();d("ngClass",l(1,2,e.savingsAccountData.subStatus.value))("matTooltip",e.savingsAccountData.subStatus.value)}}function ra(t,m){if(t&1&&(i(0,"span",23),C(1,"mifosx-account-number",32),a()),t&2){let e=h();n(),d("accountNo",ft(e.savingsAccountData.clientAccountNo))}}function ca(t,m){if(t&1&&(i(0,"div",24)(1,"h3"),r(2),c(3,"translate"),a(),i(4,"table",22)(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),i(10,"td",33),r(11),c(12,"currency"),a()(),i(13,"tr")(14,"td"),r(15),c(16,"translate"),a(),i(17,"td",33),r(18),c(19,"currency"),a()()()()()),t&2){let e=h();n(2),p(l(3,5,"labels.heading.Account Overview")),n(6),p(l(9,7,"labels.inputs.Current Balance")),n(3),f(" ",tt(12,9,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),p(l(16,14,"labels.inputs.Available Balance")),n(3),f(" ",tt(19,16,e.savingsAccountData.summary.availableBalance,e.currency.code,"symbol-narrow","1.2-2")," ")}}function sa(t,m){if(t&1){let e=D();i(0,"button",35),b("click",function(){S(e);let o=h().$implicit,u=h();return M(u.doAction(o.name))}),i(1,"mat-icon",36),C(2,"fa-icon",37),a(),i(3,"span"),r(4),c(5,"translate"),a()()}if(t&2){let e=h().$implicit;n(2),d("icon",ft(e.icon)),n(2),f(" ",l(5,3,"labels.menus."+e.name)," ")}}function la(t,m){if(t&1&&A(0,sa,6,5,"button",34),t&2){let e=m.$implicit;d("mifosxHasPermission",e.taskPermissionName)}}function ma(t,m){if(t&1){let e=D();i(0,"button",35),b("click",function(){S(e);let o=h().$implicit,u=h(2);return M(u.doAction(o.name))}),r(1),c(2,"translate"),a()}if(t&2){let e=h().$implicit;n(),f(" ",l(2,1,"labels.menus."+e.name)," ")}}function pa(t,m){if(t&1&&(i(0,"span"),A(1,ma,3,3,"button",34),a()),t&2){let e=m.$implicit;n(),d("mifosxHasPermission",e.taskPermissionName)}}function da(t,m){if(t&1&&(i(0,"button",38),r(1),c(2,"translate"),a(),i(3,"mat-menu",null,2),ut(5,pa,2,1,"span",null,dt),a()),t&2){let e=w(4),s=h();d("matMenuTriggerFor",e),n(),p(l(2,2,"labels.menus.More")),n(4),gt(s.buttonConfig.options)}}function ua(t,m){if(t&1&&(i(0,"a",39,7),r(2),c(3,"translate"),a()),t&2){let e=w(1);d("routerLink",k(5,ea))("active",e.isActive),n(2),f(" ",l(3,3,"labels.inputs.Notes")," ")}}function ga(t,m){if(t&1&&(i(0,"a",39,8),r(2),c(3,"translate"),a()),t&2){let e=w(1);d("routerLink",k(5,na))("active",e.isActive),n(2),f(" ",l(3,3,"labels.inputs.Standing Instructions")," ")}}function fa(t,m){if(t&1&&(N(0),v(1,ga,4,6,"a",39),R()),t&2){let e=h(2);n(),_(e.savingsAccountData.clientId?1:-1)}}function Ca(t,m){if(t&1&&(i(0,"a",39,9),r(2),a()),t&2){let e=w(1),s=h().$implicit;d("routerLink",kt(3,ia,s.registeredTableName))("active",e.isActive),n(2),f(" ",s.registeredTableName," ")}}function va(t,m){if(t&1&&A(0,Ca,3,5,"a",40),t&2){let e=m.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}function _a(t,m){if(t&1&&(i(0,"nav",31)(1,"a",39,3),r(3),c(4,"translate"),a(),i(5,"a",39,4),r(7),c(8,"translate"),a(),i(9,"a",39,5),r(11),c(12,"translate"),a(),i(13,"a",39,6),r(15),c(16,"translate"),a(),A(17,ua,4,6,"a",40)(18,fa,2,1,"ng-container",41),ut(19,va,1,1,"a",39,dt),a()),t&2){let e=w(2),s=w(6),o=w(10),u=w(14),x=h(),B=w(37);d("tabPanel",B),n(),d("routerLink",k(23,Ji))("active",e.isActive),n(2),f(" ",l(4,15,"labels.inputs.General")," "),n(2),d("routerLink",k(24,Xi))("active",s.isActive),n(2),f(" ",l(8,17,"labels.inputs.Transactions")," "),n(2),d("routerLink",k(25,Zi))("active",o.isActive),n(2),f(" ",l(12,19,"labels.inputs.Charges")," "),n(2),d("routerLink",k(26,ta))("active",u.isActive),n(2),f(" ",l(16,21,"labels.inputs.Documents")," "),n(2),d("mifosxHasPermission","READ_SAVINGSNOTE"),n(),d("mifosxHasPermission","READ_SAVINGSACCOUNTCHARGE"),n(),gt(x.savingsDatatables)}}var Cn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.savingsService=g(I),this.translateService=g(ge),this.dialog=g(yt),this.isActive=!1,this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData,this.currency=this.savingsAccountData.currency,this.savingsDatatables=e.savingsDatatables}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){let e=this.savingsAccountData.status.value;this.isActive=e==="Active";let s=this.savingsAccountData.subStatus;this.buttonConfig=new fn(e,s),this.savingsAccountData.clientId&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.savingsAccountData.externalId&&Xe.interbankTransfers&&this.buttonConfig.addOption({name:"Interbank Transfer",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.savingsAccountData.fieldOfficerId?this.buttonConfig.addOption({name:"Unassign Staff",taskPermissionName:"REMOVESAVINGSOFFICER_SAVINGSACCOUNT"}):this.buttonConfig.addOption({name:"Assign Staff",taskPermissionName:"UPDATESAVINGSOFFICER_SAVINGSACCOUNT"}),this.savingsAccountData.charges&&this.savingsAccountData.charges.forEach(u=>{u.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.savingsAccountData.taxGroup&&(this.savingsAccountData.withHoldTax?this.buttonConfig.addOption({name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}):this.buttonConfig.addOption({name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}))}reload(){let e=this.router.url,s=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(s,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}doAction(e){switch(e){case"Approve":case"Reject":case"Deposit":case"Activate":case"Close":case"Undo Approval":case"Post Interest As On":case"Assign Staff":case"Add Charge":case"Hold Amount":case"Block Account":case"Block Deposit":case"Block Withdrawal":case"Unassign Staff":case"Withdrawn by Client":case"Apply Annual Fees":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Withdrawal":this.router.navigate(["actions/Withdrawal"],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSavingsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break;case"Transfer Funds":let s={interbank:!1,savingsId:this.savingsAccountData.id,accountType:"fromsavings"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:s,state:{balance:this.savingsAccountData.summary.availableBalance}});break;case"Interbank Transfer":{let o={interbank:!0,savingsId:this.savingsAccountData.id,accountType:"interbank"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:o,state:{balance:this.savingsAccountData.summary.availableBalance}});break}case"Unblock Account":case"Unblock Deposit":case"Unblock Withdrawal":this.unblockSavingsAccount(e);break}}deleteSavingsAccount(){this.dialog.open(ve,{data:{deleteContext:`savings account with id: ${this.savingsAccountData.id}`}}).afterClosed().subscribe(s=>{s.delete&&this.savingsService.deleteSavingsAccount(this.savingsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(un).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(gn).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(He,{data:{isEnable:!0}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(He,{data:{isEnable:!1}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}unblockSavingsAccount(e){let s=this.dialog.open(Di,{data:{heading:this.translateService.instant("labels.heading.Savings Account"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want")+e+this.translateService.instant("this Savings Account")}}),o="unblock";e==="Unblock Deposit"&&(o="unblockCredit"),e==="Unblock Withdrawal"&&(o="unblockDebit"),s.afterClosed().subscribe(u=>{u.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,o,{}).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-view"]],decls:39,vars:26,consts:[["accountMenu","matMenu"],["tabPanel",""],["More","matMenu"],["general","routerLinkActive"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["savingsDocuments","routerLinkActive"],["notes","routerLinkActive"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],[1,"layout-row","layout-lt-md-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"account-overview"],[1,"m-l-10"],[1,"flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],[3,"accountNo"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[4,"mifosxHasPermission"]],template:function(s,o){if(s&1&&(i(0,"mat-card",10)(1,"mat-card-header",11)(2,"mat-card-title-group",12)(3,"div",13)(4,"div"),C(5,"img",14),c(6,"translate"),a()(),i(7,"div",15)(8,"mat-card-title",16)(9,"div",17)(10,"h3"),v(11,aa,2,4,"i",18),v(12,oa,2,4,"i",18),i(13,"span",19),r(14),c(15,"translate"),a(),i(16,"span",19),C(17,"mifosx-long-text",20),a(),C(18,"mifosx-account-number",21),a(),i(19,"span",22),r(20),c(21,"translate"),c(22,"translate"),v(23,ra,2,2,"span",23),a()(),v(24,ca,20,21,"div",24),i(25,"div",25)(26,"button",26)(27,"mat-icon",27),C(28,"fa-icon",28),a()()()()(),i(29,"mat-menu",null,0),ut(31,la,1,1,"button",29,dt),v(33,da,7,4),a()()(),i(34,"mat-card-content",30),v(35,_a,21,27,"nav",31),i(36,"mat-tab-nav-panel",null,1),C(38,"router-outlet"),a()()()),s&2){let u=w(30);n(5),d("matTooltip",ft(l(6,18,"tooltips.Savings Account")))("src","assets/images/savings_account_placeholder.png",Ci),n(6),_(o.savingsAccountData.subStatus.block?-1:11),n(),_(o.savingsAccountData.subStatus.block?12:-1),n(2),f("",l(15,20,"labels.inputs.Savings Product")," :"),n(3),d("textValue",ft(o.savingsAccountData.savingsProductName)),n(),d("accountNo",ft(o.savingsAccountData.accountNo)),n(2),Pe(" ",l(21,22,"labels.text."+o.entityType)," ",l(22,24,"labels.inputs.name"),": ",o.savingsAccountData.clientName||o.savingsAccountData.groupName," "),n(3),_(o.savingsAccountData.clientAccountNo?23:-1),n(),_(!o.savingsAccountData.status.rejected&&!o.savingsAccountData.status.submittedAndPendingApproval?24:-1),n(2),d("matMenuTriggerFor",u),n(5),gt(o.buttonConfig.singleButtons),n(2),_(o.buttonConfig.options&&!o.savingsAccountData.subStatus.block?33:-1),n(2),_(o.isActive?35:-1)}},dependencies:[P,de,O,q,J,ct,Rt,Ti,Ai,Pi,fe,Ze,Vi,Ni,Oe,an,on,St,nn,en,rn,cn,Je,sn,Ye,ue,y,ln],styles:["mat-card-title[_ngcontent-%COMP%]{display:flex}"]})}}return t})();var ha=()=>[50,100,200],xa=()=>["export"],ba=t=>[t,"reciept"],Sa=t=>["/","journal-entry","view",t];function Ma(t,m){if(t&1){let e=D();i(0,"div",4)(1,"mat-checkbox",31),b("click",function(){S(e);let o=h();return M(o.hideReversed())}),r(2),c(3,"translate"),a(),i(4,"mat-checkbox",31),b("click",function(){S(e);let o=h();return M(o.hideAccruals())}),r(5),c(6,"translate"),a(),i(7,"button",32),r(8),c(9,"translate"),a()()}if(t&2){let e=h();n(),d("formControl",e.hideReversedParam),n(),f(" ",l(3,6,"labels.inputs.Hide Reversed")),n(2),d("formControl",e.hideAccrualsParam),n(),f(" ",l(6,8,"labels.inputs.Hide Accruals")),n(2),d("routerLink",k(12,xa)),n(),f(" ",l(9,10,"labels.buttons.Export")," ")}}function Aa(t,m){t&1&&(i(0,"th",33),r(1,"#"),a())}function Ta(t,m){if(t&1){let e=D();i(0,"td",34),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),a()}if(t&2){let e=m.index;n(),f(" ",e+1," ")}}function Pa(t,m){t&1&&(i(0,"th",33),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Id")))}function Oa(t,m){if(t&1){let e=D();i(0,"td",35),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",e.id," ")}}function Da(t,m){t&1&&(i(0,"th",36),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Transaction Date")," "))}function ya(t,m){if(t&1){let e=D();i(0,"td",37),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"dateFormat"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",l(2,2,e.date)," ")}}function Ia(t,m){t&1&&(i(0,"th",33),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.External Id")))}function wa(t,m){if(t&1&&(i(0,"td",38),C(1,"mifosx-external-identifier",39),a()),t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),d("externalId",ft(e.externalId))}}function Ea(t,m){t&1&&(i(0,"th",40),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Transaction Type")))}function Fa(t,m){if(t&1){let e=D();i(0,"td",37),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"translateKey"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",Mt(2,2,e.transactionType.value,"catalogs")," ")}}function ka(t,m){t&1&&(i(0,"th",41),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Debit")))}function Ba(t,m){if(t&1){let e=D();i(0,"td",42),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"formatNumber"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",s.isDebit(e.transactionType)?l(2,2,e.amount):"N/A"," ")}}function Na(t,m){t&1&&(i(0,"th",41),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Credit")))}function Ra(t,m){if(t&1){let e=D();i(0,"td",42),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"formatNumber"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",s.isDebit(e.transactionType)?"N/A":l(2,2,e.amount)," ")}}function Va(t,m){t&1&&(i(0,"th",41),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Balance")))}function La(t,m){if(t&1){let e=D();i(0,"td",42),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"formatNumber"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",l(2,2,e.runningBalance)," ")}}function Ga(t,m){t&1&&(i(0,"th",40),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Ua(t,m){if(t&1){let e=D();i(0,"button",45),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return M(x.undoTransaction(u,o))}),i(1,"mat-icon"),C(2,"fa-icon",52),a(),i(3,"span"),r(4),c(5,"translate"),a()()}t&2&&(n(4),p(l(5,1,"tooltips.Undo Transaction")))}function qa(t,m){t&1&&(i(0,"span"),A(1,Ua,6,3,"button",51),a()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function Ha(t,m){if(t&1){let e=D();i(0,"td",43)(1,"button",44)(2,"mat-icon"),r(3),c(4,"translate"),a()(),i(5,"mat-menu",null,0)(7,"button",45),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),i(8,"mat-icon"),C(9,"fa-icon",46),a(),i(10,"span"),r(11),c(12,"translate"),a()(),v(13,qa,2,1,"span"),i(14,"button",47),b("click",function(o){S(e);let u=h();return M(u.routeEdit(o))}),i(15,"mat-icon"),C(16,"fa-icon",48),a(),i(17,"span"),r(18),c(19,"translate"),a()(),i(20,"button",49),b("click",function(o){S(e);let u=h();return M(u.routeEdit(o))}),i(21,"mat-icon"),C(22,"fa-icon",50),a(),i(23,"span"),r(24),c(25,"translate"),a()()()()}if(t&2){let e=m.$implicit,s=w(6);n(),d("matMenuTriggerFor",s),n(2),p(l(4,8,"labels.text.more_vert")),n(8),p(l(12,10,"labels.text.View Transaction")),n(2),_(e.reversed?-1:13),n(),d("routerLink",kt(16,ba,e.id)),n(4),p(l(19,12,"tooltips.View Receipts")),n(2),d("routerLink",kt(18,Sa,"S"+e.id)),n(4),p(l(25,14,"tooltips.View Journal Entries"))}}function za(t,m){t&1&&C(0,"tr",53)}function ja(t,m){t&1&&C(0,"tr",54)}var vn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.savingsService=g(I),this.settingsService=g(U),this.dialog=g(yt),this.dateUtils=g(j),this.transactionsData=[],this.displayedColumns=["row","id","date","externalId","transactionType","debit","credit","balance","actions"],this.accountWithTransactions=!1,this.route.parent.parent.data.subscribe(e=>{this.transactionsData=e.savingsAccountData.transactions,this.status=e.savingsAccountData.status.value}),this.accountId=this.route.parent.parent.snapshot.params.savingAccountId}ngOnInit(){this.hideAccrualsParam=new Ct(!1),this.hideReversedParam=new Ct(!1),this.setTransactions()}setTransactions(){this.dataSource=new Jt(this.transactionsData),this.accountWithTransactions=this.transactionsData&&this.transactionsData.length>0,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}isDebit(e){return e.withdrawal===!0||e.feeDeduction===!0||e.overdraftInterest===!0||e.withholdTax===!0}isAccrual(e){return e.accrual||e.code==="savingsAccountTransactionType.accrual"}checkStatus(){return this.status==="Active"||this.status==="Closed"||this.status==="Transfer in progress"||this.status==="Transfer on hold"||this.status==="Premature Closed"||this.status==="Matured"}showTransactions(e){e.transfer?this.router.navigate([`../transfer-funds/account-transfers/${e.transfer.id}`],{relativeTo:this.route}):this.router.navigate([e.id,"general"],{relativeTo:this.route})}routeEdit(e){e.stopPropagation()}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,s){let o=this.transactionsData;(s||e)&&(o=this.transactionsData.filter(u=>!(e&&u.reversed)&&!(s&&u.transactionType.accrual))),this.dataSource=new Jt(o),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}undoTransaction(e){this.dialog.open(Ve).afterClosed().subscribe(o=>{if(o.confirm){let u=this.settingsService.language.code,x=this.settingsService.dateFormat,B={transactionDate:this.dateUtils.parseDate(e.date),transactionAmount:0,dateFormat:x,locale:u};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",B,e.id).subscribe(()=>{this.reload()})}})}reload(){let e=this.route.parent.parent.snapshot.params.clientId,s=this.router.url;this.router.navigateByUrl(`/clients/${e}/savings-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([s]))}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(s,o){if(s&1&&(Pt(ye,7),Pt(ei,7)),s&2){let u;Ot(u=Dt())&&(o.paginator=u.first),Ot(u=Dt())&&(o.sort=u.first)}},decls:40,vars:12,consts:[["transactionMenu","matMenu"],[1,"container"],[1,"mat-elevation-z1","m-b-25",3,"hidden"],[1,"layout-row","align-end"],[1,"action-button","m-b-20","layout-row","gap-20px"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","id"],["mat-cell","","class","td-select",3,"ngClass","click",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","externalId"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","transactionType"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","debit"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",3,"ngClass","click",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],[1,"accruals",3,"click","formControl"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"click"],["mat-cell","",1,"td-select",3,"click","ngClass"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell","",3,"click","ngClass"],["mat-cell","",3,"ngClass"],[3,"externalId"],["mat-header-cell","",1,"center"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount",3,"click","ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",1,"account-action-button",3,"click","routerLink"],["icon","receipt","size","sm"],["mat-menu-item","",3,"click","routerLink"],["icon","table-cells","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["icon","undo","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"div",2)(2,"div",3),v(3,Ma,10,13,"div",4),a(),i(4,"table",5),N(5,6),A(6,Aa,2,0,"th",7)(7,Ta,2,1,"td",8),R(),N(8,9),A(9,Pa,3,3,"th",7)(10,Oa,2,2,"td",10),R(),N(11,11),A(12,Da,3,3,"th",12)(13,ya,3,4,"td",13),R(),N(14,14),A(15,Ia,3,3,"th",7)(16,wa,2,3,"td",15),R(),N(17,16),A(18,Ea,3,3,"th",17)(19,Fa,3,5,"td",13),R(),N(20,18),A(21,ka,3,3,"th",19)(22,Ba,3,4,"td",20),R(),N(23,21),A(24,Na,3,3,"th",19)(25,Ra,3,4,"td",20),R(),N(26,22),A(27,Va,3,3,"th",19)(28,La,3,4,"td",20),R(),N(29,23),A(30,Ga,3,3,"th",17)(31,Ha,26,20,"td",24),R(),A(32,za,1,0,"tr",25)(33,ja,1,0,"tr",26),a(),C(34,"mat-paginator",27),a(),i(35,"div",28)(36,"div",29),C(37,"i",30),r(38),c(39,"translate"),a()()()),s&2&&(n(),d("hidden",!o.accountWithTransactions),n(2),_(o.checkStatus()?3:-1),n(),d("dataSource",o.dataSource),n(28),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns),n(),d("pageSize",50)("pageSizeOptions",k(11,ha)),n(),d("hidden",o.accountWithTransactions),n(3),f(" ",l(39,9,"labels.text.No transaction was found")," "))},dependencies:[P,de,O,K,Si,q,F,Ce,Rt,Lt,ei,qt,Ut,Ht,yi,Gt,zt,Be,Oe,an,on,nn,en,St,jt,Wt,$t,Qt,ye,Bt,y,Nt,me],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:800}"]})}}return t})();var _n=(()=>{class t{constructor(){this.route=g(E),this.entityId=this.route.parent.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.entityDatatable=e.transactionDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-datatable-transaction-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Saving Account Transaction",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(s,o){s&1&&(i(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),a()),s&2&&(n(),d("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[P,O,pn],encapsulation:2})}}return t})();var $a=()=>["../../"];function Wa(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Approved On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var hn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSavingsAccountForm()}createApproveSavingsAccountForm(){this.approveSavingsAccountForm=this.formBuilder.group({approvedOnDate:["",H.required],note:[""]})}submit(){let e=this.approveSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.approveSavingsAccountForm.value.approvedOnDate;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"approve",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-approve-savings-account"]],decls:26,vars:21,consts:[["approvedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Wa,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),c(22,"translate"),a(),i(23,"button",10),r(24),c(25,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.approveSavingsAccountForm),n(5),p(l(8,12,"labels.inputs.Approved On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.approveSavingsAccountForm.controls.approvedOnDate.hasError("required")?13:-1),n(3),p(l(17,14,"labels.inputs.Note")),n(4),d("routerLink",k(20,$a)),n(),f(" ",l(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.approveSavingsAccountForm.valid),n(),f(" ",l(25,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Qa=()=>["../../"];function Ka(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Rejected On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var xn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSavingsAccountForm()}createRejectSavingsAccountForm(){this.rejectSavingsAccountForm=this.formBuilder.group({rejectedOnDate:["",H.required],note:[""]})}submit(){let e=this.rejectSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.rejectSavingsAccountForm.value.rejectedOnDate;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"reject",x).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-reject-savings-account"]],decls:26,vars:21,consts:[["rejectedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Ka,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),c(22,"translate"),a(),i(23,"button",10),r(24),c(25,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.rejectSavingsAccountForm),n(5),p(l(8,12,"labels.inputs.Rejected On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.rejectSavingsAccountForm.controls.rejectedOnDate.hasError("required")?13:-1),n(3),p(l(17,14,"labels.inputs.Note")),n(4),d("routerLink",k(20,Qa)),n(),f(" ",l(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.rejectSavingsAccountForm.valid),n(),f(" ",l(25,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Ya=()=>["../../transactions"];function Ja(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Activated On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var bn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSavingsAccountForm()}createActivateSavingsAccountForm(){this.activateSavingsAccountForm=this.formBuilder.group({activatedOnDate:["",H.required]})}submit(){let e=this.activateSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.activateSavingsAccountForm.value.activatedOnDate;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-activate-savings-account"]],decls:21,vars:18,consts:[["activatedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Ja,7,9,"mat-error"),a()()(),i(14,"mat-card-actions",7)(15,"button",8),r(16),c(17,"translate"),a(),i(18,"button",9),r(19),c(20,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.activateSavingsAccountForm),n(5),p(l(8,11,"labels.inputs.Activated On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.activateSavingsAccountForm.controls.activatedOnDate.hasError("required")?13:-1),n(2),d("routerLink",k(17,Ya)),n(),f(" ",l(17,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.activateSavingsAccountForm.valid),n(),f(" ",l(20,15,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Xa=()=>["../../"],Sn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.route=g(E),this.router=g(z),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.createUndoApprovalSavingsAccountForm()}createUndoApprovalSavingsAccountForm(){this.undoApprovalSavingsAccountForm=this.formBuilder.group({note:[""]})}submit(){let e=G({},this.undoApprovalSavingsAccountForm.value);this.savingsService.executeSavingsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-undo-approval-savings-account"]],decls:16,vars:13,consts:[[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(s,o){s&1&&(i(0,"div",0)(1,"mat-card")(2,"form",1),b("ngSubmit",function(){return o.submit()}),i(3,"mat-card-content")(4,"mat-form-field",2)(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"textarea",3),a()(),i(9,"mat-card-actions",4)(10,"button",5),r(11),c(12,"translate"),a(),i(13,"button",6),r(14),c(15,"translate"),a()()()()()),s&2&&(n(2),d("formGroup",o.undoApprovalSavingsAccountForm),n(4),p(l(7,6,"labels.inputs.Note")),n(4),d("routerLink",k(12,Xa)),n(),f(" ",l(12,8,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.undoApprovalSavingsAccountForm.valid),n(),f(" ",l(15,10,"labels.buttons.Confirm")," "))},dependencies:[P,O,it,et,K,nt,at,ot,q,J,ct,bt,Z,X,st,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Za=()=>["../../"];function to(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var Mn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPostInterestSavingsAccountForm()}createPostInterestSavingsAccountForm(){this.postInterestSavingsAccountForm=this.formBuilder.group({transactionDate:["",H.required]})}submit(){let e=this.postInterestSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.postInterestSavingsAccountForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{IsPostInterestAsOn:!0,dateFormat:o,locale:s});this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"postInterestAsOn",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-post-interest-as-on-savings-account"]],decls:20,vars:18,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){S(u);let B=w(11);return M(B.open())}),i(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,to,7,9,"mat-error"),a()(),i(13,"mat-card-actions",6)(14,"button",7),r(15),c(16,"translate"),a(),i(17,"button",8),r(18),c(19,"translate"),a()()()()()}if(s&2){let u=w(11);n(2),d("formGroup",o.postInterestSavingsAccountForm),n(4),p(l(7,11,"labels.inputs.Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.postInterestSavingsAccountForm.controls.transactionDate.hasError("required")?12:-1),n(2),d("routerLink",k(17,Za)),n(),f(" ",l(16,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.postInterestSavingsAccountForm.valid),n(),f(" ",l(19,15,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var eo=()=>["../../"];function no(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.displayName," ")}}function io(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Assignment Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var An=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fieldOfficerData=this.savingsAccountData.fieldOfficerOptions,this.createSavingsAssignStaffForm()}createSavingsAssignStaffForm(){this.savingsAssignStaffForm=this.formBuilder.group({toSavingsOfficerId:[""],assignmentDate:["",H.required]})}submit(){let e=this.savingsAssignStaffForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.savingsAssignStaffForm.value.assignmentDate;e.assignmentDate instanceof Date&&(e.assignmentDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{fromSavingsOfficerId:"",dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"assignSavingsOfficer",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-assign-staff"]],decls:28,vars:21,consts:[["assignmentDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","toSavingsOfficerId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),r(7),c(8,"translate"),a(),i(9,"mat-select",5),ut(10,no,2,2,"mat-option",6,dt),a()(),i(12,"mat-form-field",7),b("click",function(){S(u);let B=w(19);return M(B.open())}),i(13,"mat-label"),r(14),c(15,"translate"),a(),C(16,"input",8)(17,"mat-datepicker-toggle",9)(18,"mat-datepicker",null,0),v(20,io,7,9,"mat-error"),a()()(),i(21,"mat-card-actions",10)(22,"button",11),r(23),c(24,"translate"),a(),i(25,"button",12),r(26),c(27,"translate"),a()()()()()}if(s&2){let u=w(19);n(2),d("formGroup",o.savingsAssignStaffForm),n(5),p(l(8,12,"labels.inputs.To Savings Officer")),n(3),gt(o.fieldOfficerData),n(4),p(l(15,14,"labels.inputs.Assignment Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.savingsAssignStaffForm.controls.assignmentDate.hasError("required")?20:-1),n(2),d("routerLink",k(20,eo)),n(),f(" ",l(24,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingsAssignStaffForm.valid),n(),f(" ",l(27,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ao=()=>["../../"];function oo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Unassignment Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var Tn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsUnassignStaffForm()}createSavingsUnassignStaffForm(){this.savingsUnassignStaffForm=this.formBuilder.group({unassignedDate:["",H.required]})}submit(){let e=this.savingsUnassignStaffForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.savingsUnassignStaffForm.value.unassignedDate;e.unassignedDate instanceof Date&&(e.unassignedDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"unassignSavingsOfficer",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-unassign-staff"]],decls:20,vars:18,consts:[["unassignedDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","unassignedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){S(u);let B=w(11);return M(B.open())}),i(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,oo,7,9,"mat-error"),a()(),i(13,"mat-card-actions",6)(14,"button",7),r(15),c(16,"translate"),a(),i(17,"button",8),r(18),c(19,"translate"),a()()()()()}if(s&2){let u=w(11);n(2),d("formGroup",o.savingsUnassignStaffForm),n(4),p(l(7,11,"labels.inputs.Unassignment Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.savingsUnassignStaffForm.controls.unassignedDate.hasError("required")?12:-1),n(2),d("routerLink",k(17,ao)),n(),f(" ",l(16,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingsUnassignStaffForm.valid),n(),f(" ",l(19,15,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ro=()=>["../../"];function co(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Withdrawn On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var Pn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawSavingsAccountForm()}createWithdrawSavingsAccountForm(){this.withdrawSavingsAccountForm=this.formBuilder.group({withdrawnOnDate:["",H.required],note:[""]})}submit(){let e=this.withdrawSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.withdrawSavingsAccountForm.value.withdrawnOnDate;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"withdrawnByApplicant",x).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-withdraw-by-client-savings-account"]],decls:26,vars:21,consts:[["withdrawnOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,co,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),c(22,"translate"),a(),i(23,"button",10),r(24),c(25,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.withdrawSavingsAccountForm),n(5),p(l(8,12,"labels.inputs.Withdrawn On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.withdrawSavingsAccountForm.controls.withdrawnOnDate.hasError("required")?13:-1),n(3),p(l(17,14,"labels.inputs.Note")),n(4),d("routerLink",k(20,ro)),n(),f(" ",l(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.withdrawSavingsAccountForm.valid),n(),f(" ",l(25,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var so=()=>["../../transactions"];function lo(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name+" ("+e.currency.name+")"," ")}}function mo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Charge")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function po(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function uo(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.value," ")}}function go(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.value," ")}}function fo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Due for collection on")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Co(t,m){if(t&1){let e=D();i(0,"mat-form-field",13),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),v(8,fo,7,9,"mat-error"),a()}if(t&2){let e=w(7),s=h(2);n(2),p(l(3,6,"labels.inputs.Due for collection on")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(s.savingsChargeForm.controls.dueDate.hasError("required")?8:-1)}}function vo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Due Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function _o(t,m){if(t&1){let e=D();i(0,"mat-form-field",13),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),v(8,vo,7,9,"mat-error"),a()}if(t&2){let e=w(7),s=h(2);n(2),p(l(3,6,"labels.inputs.Due On")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(s.savingsChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function ho(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",17),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Repeats Every")))}function xo(t,m){if(t&1&&(i(0,"div",4)(1,"mat-form-field")(2,"mat-label"),r(3),c(4,"translate"),a(),C(5,"input",10),v(6,po,7,9,"mat-error"),a(),i(7,"mat-form-field")(8,"mat-label"),r(9),c(10,"translate"),a(),i(11,"mat-select",11),ut(12,uo,2,2,"mat-option",6,dt),a()(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),i(18,"mat-select",12),ut(19,go,2,2,"mat-option",6,dt),a()(),v(21,Co,9,8,"mat-form-field"),v(22,_o,9,8,"mat-form-field"),v(23,ho,5,3,"mat-form-field"),a()),t&2){let e=h();n(3),p(l(4,7,"labels.inputs.Amount")),n(3),_(e.savingsChargeForm.controls.amount.hasError("required")?6:-1),n(3),p(l(10,9,"labels.inputs.Charge Calculation")),n(3),gt(e.chargeDetails.chargeCalculationTypeOptions),n(4),p(l(17,11,"labels.inputs.Charge time type")),n(3),gt(e.chargeDetails.chargeTimeTypeOptions),n(2),_(e.savingsChargeForm.contains("dueDate")?21:-1),n(),_(e.savingsChargeForm.contains("feeOnMonthDay")?22:-1),n(),_(e.savingsChargeForm.contains("feeInterval")?23:-1)}}var On=(()=>{class t{constructor(){this.formBuilder=g(rt),this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsChargeOptions=e.savingsAccountActionData.chargeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsChargeForm(),this.buildDependencies()}buildDependencies(){this.savingsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(s=>{this.chargeDetails=s;let o=s.chargeTimeType.id;(s.chargeTimeType.value==="Withdrawal Fee"||s.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(s.chargeTimeType.value==="Annual Fee"||s.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("dueDate",new Ct("",H.required)):this.savingsChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("feeOnMonthDay",new Ct("",H.required)):this.savingsChargeForm.removeControl("feeOnMonthDay"),o.value==="Monthly Fee"?this.savingsChargeForm.addControl("feeInterval",new Ct(s.feeInterval,H.required)):this.savingsChargeForm.removeControl("feeInterval"),this.savingsChargeForm.patchValue({amount:s.amount,chargeCalculationType:s.chargeCalculationType.id,chargeTimeType:s.chargeTimeType.id})})})}createSavingsChargeForm(){this.savingsChargeForm=this.formBuilder.group({chargeId:["",H.required],amount:["",H.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let e=this.savingsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let s="MMMM-dd";if(e.monthDayFormat=s,e.feeOnMonthDay){let o=this.savingsChargeForm.value.feeOnMonthDay;e.feeOnMonthDay=this.dateUtils.formatDate(o,s)}}else{let s=this.settingsService.dateFormat;if(e.dateFormat=s,e.dueDate){let o=this.savingsChargeForm.value.dueDate;e.dueDate=this.dateUtils.formatDate(o,s)}}this.savingsService.createSavingsCharge(this.savingAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-add-charge-savings-account"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(s,o){s&1&&(i(0,"div",2)(1,"mat-card")(2,"form",3),b("ngSubmit",function(){return o.submit()}),i(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),r(7),c(8,"translate"),a(),i(9,"mat-select",5),ut(10,lo,2,2,"mat-option",6,dt),a(),v(12,mo,7,9,"mat-error"),a(),v(13,xo,24,13,"div",4),a(),i(14,"mat-card-actions",7)(15,"button",8),r(16),c(17,"translate"),a(),i(18,"button",9),r(19),c(20,"translate"),a()()()()()()),s&2&&(n(2),d("formGroup",o.savingsChargeForm),n(5),p(l(8,8,"labels.inputs.Charge")),n(3),gt(o.savingsChargeOptions),n(2),_(o.savingsChargeForm.controls.chargeId.hasError("required")?12:-1),n(),_(o.chargeDetails?13:-1),n(2),d("routerLink",k(14,so)),n(),f(" ",l(17,10,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingsChargeForm.valid),n(),f(" ",l(20,12,"labels.buttons.Submit")," "))},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var bo=()=>["../../transactions"];function So(t,m){t&1&&(i(0,"h2",2),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.heading.Withdraw Money From Saving Account")," "))}function Mo(t,m){t&1&&(i(0,"h2",2),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.heading.Deposit Money To Saving Account")," "))}function Ao(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function To(t,m){if(t&1&&(i(0,"mat-option",10),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function Po(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",19),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function Oo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",20),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function Do(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function yo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",22),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function Io(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",23),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}var Dn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.currency=null,this.route.data.subscribe(e=>{this.paymentTypeOptions=e.savingsAccountActionData.paymentTypeOptions,e.savingsAccountActionData.currency&&(this.currency=e.savingsAccountActionData.currency)}),this.transactionCommand=this.route.snapshot.params.name.toLowerCase(),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.savingAccountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,H.required],transactionAmount:[0,H.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.savingAccountTransactionForm.addControl("accountNumber",new Ct("")),this.savingAccountTransactionForm.addControl("checkNumber",new Ct("")),this.savingAccountTransactionForm.addControl("routingCode",new Ct("")),this.savingAccountTransactionForm.addControl("receiptNumber",new Ct("")),this.savingAccountTransactionForm.addControl("bankNumber",new Ct(""))):(this.savingAccountTransactionForm.removeControl("accountNumber"),this.savingAccountTransactionForm.removeControl("checkNumber"),this.savingAccountTransactionForm.removeControl("routingCode"),this.savingAccountTransactionForm.removeControl("receiptNumber"),this.savingAccountTransactionForm.removeControl("bankNumber"))}submit(){let e=this.savingAccountTransactionForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.savingAccountTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});x.transactionAmount=x.transactionAmount*1,this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,this.transactionCommand,x).subscribe(B=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transactions"]],decls:48,vars:39,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],["mat-title","",1,"m-l-10"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["required","","formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card"),v(2,So,3,3,"h2",2),v(3,Mo,3,3,"h2",2),i(4,"form",3),b("ngSubmit",function(){return S(u),M(o.submit())}),i(5,"mat-card-content")(6,"div",4)(7,"mat-form-field",5),b("click",function(){S(u);let B=w(14);return M(B.open())}),i(8,"mat-label"),r(9),c(10,"translate"),a(),C(11,"input",6)(12,"mat-datepicker-toggle",7)(13,"mat-datepicker",null,0),v(15,Ao,7,9,"mat-error"),a(),C(16,"mifosx-input-amount",8),i(17,"mat-form-field")(18,"mat-label"),r(19),c(20,"translate"),a(),i(21,"mat-select",9),ut(22,To,2,2,"mat-option",10,dt),a()(),i(24,"div",11)(25,"span",12),b("click",function(){return S(u),M(o.addPaymentDetails())}),i(26,"mat-slide-toggle")(27,"div",13)(28,"span",14),r(29),c(30,"translate"),a()()()()(),v(31,Po,5,3,"mat-form-field"),v(32,Oo,5,3,"mat-form-field"),v(33,Do,5,3,"mat-form-field"),v(34,yo,5,3,"mat-form-field"),v(35,Io,5,3,"mat-form-field"),i(36,"mat-form-field")(37,"mat-label"),r(38),c(39,"translate"),a(),C(40,"textarea",15),a(),i(41,"mat-card-actions",16)(42,"button",17),r(43),c(44,"translate"),a(),i(45,"button",18),r(46),c(47,"translate"),a()()()()()()()}if(s&2){let u=w(14);n(2),_(o.transactionType.withdrawal?2:-1),n(),_(o.transactionType.deposit?3:-1),n(),d("formGroup",o.savingAccountTransactionForm),n(5),p(l(10,26,"labels.inputs.Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.savingAccountTransactionForm.controls.transactionDate.hasError("required")?15:-1),n(),d("currency",o.currency)("isRequired",!0)("inputFormControl",o.savingAccountTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),p(l(20,28,"labels.inputs.Payment Type")),n(3),gt(o.paymentTypeOptions),n(5),d("className",o.addPaymentDetailsFlag?"enabled":"disabled"),n(2),p(l(30,30,"labels.inputs.Show Payment Details")),n(2),_(o.addPaymentDetailsFlag?31:-1),n(),_(o.addPaymentDetailsFlag?32:-1),n(),_(o.addPaymentDetailsFlag?33:-1),n(),_(o.addPaymentDetailsFlag?34:-1),n(),_(o.addPaymentDetailsFlag?35:-1),n(3),p(l(39,32,"labels.inputs.Notes")),n(4),d("routerLink",k(38,bo)),n(),f(" ",l(44,34,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingAccountTransactionForm.valid),n(),f(" ",l(47,36,"labels.buttons.Submit")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Re,Ie,ae,y],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();var wo=()=>["../../"];function Eo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Closed On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Fo(t,m){t&1&&(i(0,"mat-form-field",13)(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",18),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Transaction Amount")))}function ko(t,m){if(t&1&&(i(0,"mat-option",20),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function Bo(t,m){if(t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),i(4,"mat-select",19),ut(5,ko,2,2,"mat-option",20,dt),a()()),t&2){let e=h(2);n(2),p(l(3,1,"labels.inputs.Payment Type")),n(3),gt(e.paymentTypeOptions)}}function No(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function Ro(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",22),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function Vo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",23),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function Lo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",24),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function Go(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",25),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}function Uo(t,m){if(t&1){let e=D();i(0,"div",3),v(1,Fo,5,3,"mat-form-field",13),v(2,Bo,7,3,"mat-form-field"),i(3,"div",14)(4,"span",15),b("click",function(){S(e);let o=h();return M(o.addPaymentDetails())}),i(5,"mat-slide-toggle")(6,"div",16)(7,"span",17),r(8),c(9,"translate"),a()()()()(),v(10,No,5,3,"mat-form-field"),v(11,Ro,5,3,"mat-form-field"),v(12,Vo,5,3,"mat-form-field"),v(13,Lo,5,3,"mat-form-field"),v(14,Go,5,3,"mat-form-field"),a()}if(t&2){let e=h();n(),_(e.closeSavingsAccountForm.controls.amount?1:-1),n(),_(e.closeSavingsAccountForm.controls.paymentTypeId?2:-1),n(4),d("className",e.showPaymentDetails?"enabled":"disabled"),n(2),p(l(9,9,"labels.inputs.Show Payment Details")),n(2),_(e.closeSavingsAccountForm.controls.accountNumber?10:-1),n(),_(e.closeSavingsAccountForm.controls.checkNumber?11:-1),n(),_(e.closeSavingsAccountForm.controls.routingCode?12:-1),n(),_(e.closeSavingsAccountForm.controls.receiptNumber?13:-1),n(),_(e.closeSavingsAccountForm.controls.bankNumber?14:-1)}}var yn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(e=>{this.paymentTypeOptions=e.savingsAccountActionData[0].paymentTypeOptions,this.transactionAmount=e.savingsAccountActionData[1].summary.accountBalance}),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSavingsAccountForm(),this.buildDependencies()}createCloseSavingsAccountForm(){this.closeSavingsAccountForm=this.formBuilder.group({closedOnDate:["",H.required],withdrawBalance:[!1],postInterestValidationOnClosure:[!1],note:[""]})}buildDependencies(){this.closeSavingsAccountForm.get("withdrawBalance").valueChanges.subscribe(e=>{e?(this.closeSavingsAccountForm.addControl("amount",new Ct({value:this.transactionAmount,disabled:!0})),this.closeSavingsAccountForm.addControl("paymentTypeId",new Ct(""))):(this.closeSavingsAccountForm.removeControl("amount"),this.closeSavingsAccountForm.removeControl("paymentTypeId"))})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.closeSavingsAccountForm.addControl("accountNumber",new Ct("")),this.closeSavingsAccountForm.addControl("checkNumber",new Ct("")),this.closeSavingsAccountForm.addControl("routingCode",new Ct("")),this.closeSavingsAccountForm.addControl("receiptNumber",new Ct("")),this.closeSavingsAccountForm.addControl("bankNumber",new Ct(""))):(this.closeSavingsAccountForm.removeControl("accountNumber"),this.closeSavingsAccountForm.removeControl("checkNumber"),this.closeSavingsAccountForm.removeControl("routingCode"),this.closeSavingsAccountForm.removeControl("receiptNumber"),this.closeSavingsAccountForm.removeControl("bankNumber"))}submit(){let e=this.closeSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.closeSavingsAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"close",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-close-savings-account"]],decls:33,vars:28,consts:[["closedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","withdrawBalance",1,"m-b-25","m-t-15"],["formControlName","postInterestValidationOnClosure"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],[1,"m-t-20"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","paymentTypeId"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Eo,7,9,"mat-error"),a(),i(14,"mat-checkbox",7),r(15),c(16,"translate"),a(),i(17,"mat-checkbox",8),r(18),c(19,"translate"),a(),v(20,Uo,15,11,"div",3),i(21,"mat-form-field")(22,"mat-label"),r(23),c(24,"translate"),a(),C(25,"textarea",9),a()()(),i(26,"mat-card-actions",10)(27,"button",11),r(28),c(29,"translate"),a(),i(30,"button",12),r(31),c(32,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.closeSavingsAccountForm),n(5),p(l(8,15,"labels.inputs.Closed On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.closeSavingsAccountForm.controls.closedOnDate.hasError("required")?13:-1),n(2),f(" ",l(16,17,"labels.inputs.Withdraw Balance")," "),n(3),f(" ",l(19,19,"labels.inputs.Is Interest Posting required on closure date"),"? "),n(2),_(o.closeSavingsAccountForm.controls.withdrawBalance.value?20:-1),n(3),p(l(24,21,"labels.inputs.Note")),n(4),d("routerLink",k(27,wo)),n(),f(" ",l(29,23,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.closeSavingsAccountForm.valid),n(),f(" ",l(32,25,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Ce,Ie,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var qo=()=>["../../"];function Ho(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Due Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function zo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var In=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplyAnnualFeesForm(),this.applyCharge()}createApplyAnnualFeesForm(){this.applyAnnualFeesForm=this.formBuilder.group({dueDate:["",H.required],amount:[""]})}applyCharge(){this.savingsAccountData.charges.forEach(s=>{s.name==="Annual fee - INR"&&(this.chargeId=s.id,this.applyAnnualFeesForm.get("amount").patchValue(s.amount))})}submit(){let e=this.applyAnnualFeesForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.applyAnnualFeesForm.value.dueDate;e.dueDate instanceof Date&&(e.dueDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountChargesCommand(this.accountId,"paycharge",x,this.chargeId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-apply-annual-fees-savings-account"]],decls:27,vars:22,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["type","number","formControlName","amount","required","","matInput",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Ho,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"input",7),v(19,zo,7,9,"mat-error"),a()()(),i(20,"mat-card-actions",8)(21,"button",9),r(22),c(23,"translate"),a(),i(24,"button",10),r(25),c(26,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.applyAnnualFeesForm),n(5),p(l(8,13,"labels.inputs.Annual Fees Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.applyAnnualFeesForm.controls.dueDate.hasError("required")?13:-1),n(3),p(l(17,15,"labels.inputs.Amount")),n(3),_(o.applyAnnualFeesForm.controls.amount.hasError("required")?19:-1),n(2),d("routerLink",k(21,qo)),n(),f(" ",l(23,17,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.applyAnnualFeesForm.valid),n(),f(" ",l(26,19,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var jo=()=>["../../transactions"];function $o(t,m){t&1&&(i(0,"mat-card-title"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.heading.Hold Amount")))}function Wo(t,m){t&1&&(i(0,"mat-card-title"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.heading.Block Savings Account")))}function Qo(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function Ko(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Reason")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Yo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Jo(t,m){if(t&1){let e=D();i(0,"mat-form-field",11),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),v(8,Yo,7,9,"mat-error"),a()}if(t&2){let e=w(7),s=h();n(2),p(l(3,6,"labels.inputs.Transaction Date")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(s.manageSavingsAccountForm.controls.transactionDate.hasError("required")?8:-1)}}function Xo(t,m){if(t&1&&C(0,"mifosx-input-amount",7),t&2){let e=h();d("currency",e.currency)("isRequired",!0)("inputFormControl",e.manageSavingsAccountForm.controls.transactionAmount)("inputLabel","Transaction Amount")}}var wn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.systemService=g(Oi),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.reasonOptions=[],this.transactionType={holdamount:!1,blockaccount:!1,blockdeposit:!1,blockwithdrawal:!1},this.transactionCommand=this.route.snapshot.params.name.toLowerCase().replaceAll(" ",""),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createManageSavingsAccountForm(),(this.transactionType.holdamount||this.transactionType.blockaccount||this.transactionType.blockdeposit||this.transactionType.blockwithdrawal)&&this.getCodeValues()}getCodeValues(){let e="SavingsTransactionFreezeReasons";this.transactionType.blockaccount?e="SavingsAccountBlockReasons":this.transactionType.blockdeposit?e="CreditTransactionFreezeReasons":this.transactionType.blockwithdrawal&&(e="DebitTransactionFreezeReasons"),this.systemService.getCodes().subscribe(s=>{s.some(o=>(o.name===e&&this.systemService.getCodeValues(o.id).subscribe(u=>(this.reasonOptions=u,!0)),!1))})}createManageSavingsAccountForm(){this.transactionType.holdamount?this.manageSavingsAccountForm=this.formBuilder.group({reasonForBlock:["",H.required],transactionDate:["",H.required],transactionAmount:[0,H.required]}):this.manageSavingsAccountForm=this.formBuilder.group({reasonForBlock:["",H.required]})}submit(){let e="",s={};if(this.transactionType.holdamount){let o=this.manageSavingsAccountForm.value,u=this.settingsService.language.code,x=this.settingsService.dateFormat,B=this.manageSavingsAccountForm.value.transactionDate;o.transactionDate instanceof Date&&(o.transactionDate=this.dateUtils.formatDate(B,x)),s=Q(G({},o),{dateFormat:x,locale:u}),e="holdAmount",s.transactionAmount=s.transactionAmount*1,this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,e,s).subscribe(Yt=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}else s=G({},this.manageSavingsAccountForm.value),e="block",this.transactionType.blockdeposit?e="blockCredit":this.transactionType.blockwithdrawal&&(e="blockDebit"),this.savingsService.executeSavingsAccountCommand(this.savingAccountId,e,s).subscribe(o=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-manage-savings-account"]],inputs:{currency:"currency"},decls:23,vars:18,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-row"],[1,"flex-100"],["required","","formControlName","reasonForBlock"],[3,"value"],[1,"flex-100",3,"currency","isRequired","inputFormControl","inputLabel"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"mat-card"),v(2,$o,3,3,"mat-card-title"),v(3,Wo,3,3,"mat-card-title"),i(4,"form",2),b("ngSubmit",function(){return o.submit()}),i(5,"mat-card-content",3)(6,"mat-form-field",4)(7,"mat-label"),r(8),c(9,"translate"),a(),i(10,"mat-select",5),ut(11,Qo,2,2,"mat-option",6,dt),a(),v(13,Ko,7,9,"mat-error"),a(),v(14,Jo,9,8,"mat-form-field",4),v(15,Xo,1,4,"mifosx-input-amount",7),a(),i(16,"mat-card-actions",8)(17,"button",9),r(18),c(19,"translate"),a(),i(20,"button",10),r(21),c(22,"translate"),a()()()()()),s&2&&(n(2),_(o.transactionType.holdamount?2:-1),n(),_(o.transactionType.blockaccount?3:-1),n(),d("formGroup",o.manageSavingsAccountForm),n(4),p(l(9,11,"labels.inputs.Reason")),n(3),gt(o.reasonOptions),n(2),_(o.manageSavingsAccountForm.controls.reasonForBlock.hasError("required")?13:-1),n(),_(o.transactionType.holdamount?14:-1),n(),_(o.transactionType.holdamount?15:-1),n(2),d("routerLink",k(17,jo)),n(),f(" ",l(19,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.manageSavingsAccountForm.valid),n(),f(" ",l(22,15,"labels.buttons.Confirm")," "))},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Ze,Re,y],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();function Zo(t,m){t&1&&C(0,"mifosx-approve-savings-account")}function tr(t,m){t&1&&C(0,"mifosx-reject-savings-account")}function er(t,m){t&1&&C(0,"mifosx-activate-savings-account")}function nr(t,m){t&1&&C(0,"mifosx-undo-approval-savings-account")}function ir(t,m){t&1&&C(0,"mifosx-post-interest-as-on-savings-account")}function ar(t,m){t&1&&C(0,"mifosx-savings-account-assign-staff")}function or(t,m){t&1&&C(0,"mifosx-savings-account-unassign-staff")}function rr(t,m){t&1&&C(0,"mifosx-withdraw-by-client-savings-account")}function cr(t,m){t&1&&C(0,"mifosx-add-charge-savings-account")}function sr(t,m){t&1&&C(0,"mifosx-savings-transactions")}function lr(t,m){t&1&&C(0,"mifosx-close-savings-account")}function mr(t,m){t&1&&C(0,"mifosx-apply-annual-fees-savings-account")}function pr(t,m){if(t&1&&C(0,"mifosx-manage-savings-account",0),t&2){let e=h();d("currency",e.currency)}}var En=(()=>{class t{constructor(){this.route=g(E),this.actions={Approve:!1,Reject:!1,Withdrawal:!1,Deposit:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Post Interest As On":!1,"Assign Staff":!1,"Add Charge":!1,"Unassign Staff":!1,"Withdrawn by Client":!1,"Apply Annual Fees":!1,"Hold Amount":!1,"Block Account":!1,"Unblock Account":!1,"Block Deposit":!1,"Unblock Deposit":!1,"Block Withdrawal":!1,"Unblock Withdrawal":!1},this.route.data.subscribe(s=>{s.savingsAccountActionData&&(this.currency=s.savingsAccountActionData.currency)});let e=this.route.snapshot.params.name;e in this.actions&&(this.actions[e]=!0)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-saving-account-actions"]],decls:13,vars:13,consts:[[3,"currency"]],template:function(s,o){s&1&&(v(0,Zo,1,0,"mifosx-approve-savings-account"),v(1,tr,1,0,"mifosx-reject-savings-account"),v(2,er,1,0,"mifosx-activate-savings-account"),v(3,nr,1,0,"mifosx-undo-approval-savings-account"),v(4,ir,1,0,"mifosx-post-interest-as-on-savings-account"),v(5,ar,1,0,"mifosx-savings-account-assign-staff"),v(6,or,1,0,"mifosx-savings-account-unassign-staff"),v(7,rr,1,0,"mifosx-withdraw-by-client-savings-account"),v(8,cr,1,0,"mifosx-add-charge-savings-account"),v(9,sr,1,0,"mifosx-savings-transactions"),v(10,lr,1,0,"mifosx-close-savings-account"),v(11,mr,1,0,"mifosx-apply-annual-fees-savings-account"),v(12,pr,1,1,"mifosx-manage-savings-account",0)),s&2&&(_(o.actions.Approve?0:-1),n(),_(o.actions.Reject?1:-1),n(),_(o.actions.Activate?2:-1),n(),_(o.actions["Undo Approval"]?3:-1),n(),_(o.actions["Post Interest As On"]?4:-1),n(),_(o.actions["Assign Staff"]?5:-1),n(),_(o.actions["Unassign Staff"]?6:-1),n(),_(o.actions["Withdrawn by Client"]?7:-1),n(),_(o.actions["Add Charge"]?8:-1),n(),_(o.actions.Withdrawal||o.actions.Deposit?9:-1),n(),_(o.actions.Close?10:-1),n(),_(o.actions["Apply Annual Fees"]?11:-1),n(),_(o.actions["Hold Amount"]||o.actions["Block Account"]||o.actions["Block Deposit"]||o.actions["Block Withdrawal"]?12:-1))},dependencies:[P,O,hn,xn,bn,Sn,Mn,An,Tn,Pn,On,Dn,yn,In,wn],encapsulation:2})}}return t})();var dr=()=>({confirm:!0}),Le=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(De)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-waive-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,6,"labels.buttons.Waive Charge")),n(4),V("",l(6,8,"labels.text.Are you sure you want to waive charge with id"),": ",o.data.id," ?"),n(4),p(l(10,10,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(14,dr)),n(),f(" ",l(13,12,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var ur=()=>({confirm:!0}),Ge=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(De)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-inactivate-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,6,"tooltips.Inactivate Charge")),n(4),V("",l(6,8,"labels.text.Are you sure you want to inactivate charge with id"),": ",o.data.id," ?"),n(4),p(l(10,10,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(14,ur)),n(),f(" ",l(13,12,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var gr=["chargesTable"],fr=t=>[t];function Cr(t,m){if(t&1){let e=D();i(0,"div",4)(1,"button",22),b("click",function(){S(e);let o=h();return M(o.toggleCharges())}),r(2),a()()}if(t&2){let e=h();n(2),f(" ",e.showInactiveCharges?e.viewAllChargeButtons("View Active Charges"):e.viewAllChargeButtons("View Inactive Charges")," ")}}function vr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function _r(t,m){if(t&1&&(i(0,"td",24),r(1),a()),t&2){let e=m.$implicit;n(),p(e.name)}}function hr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Charge Type")))}function xr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(e.penalty?"Penalty":Mt(2,1,"Fee","catalogs"))}}function br(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Payment Due At")))}function Sr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(Mt(2,1,e.chargeTimeType.value,"catalogs"))}}function Mr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Due As Of")))}function Ar(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"dateFormat"),a()),t&2){let e=m.$implicit;n(),p(l(2,1,e.dueDate))}}function Tr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repeats On (M/d)")))}function Pr(t,m){if(t&1&&(i(0,"td",24),r(1),a()),t&2){let e=m.$implicit;n(),p(e.feeOnMonthDay?e.feeOnMonthDay.join("/"):"")}}function Or(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Calculation Type")))}function Dr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(Mt(2,1,e.chargeCalculationType.value,"catalogs"))}}function yr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Due")))}function Ir(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function wr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Paid")))}function Er(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Fr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Waived")))}function kr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Br(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Outstanding")))}function Nr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Rr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Vr(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.editCharge(u))}),C(2,"i",28),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Edit Charge")))}function Lr(t,m){if(t&1){let e=D();i(0,"button",29),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.deleteCharge(u.id))}),C(2,"i",30),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Delete Charge")))}function Gr(t,m){t&1&&(i(0,"span"),A(1,Vr,3,4,"button",25)(2,Lr,3,4,"button",26),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function Ur(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.payCharge(u.id))}),C(2,"i",32),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Pay Charge")))}function qr(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.waiveCharge(u.id))}),C(2,"i",33),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Waive Charge")))}function Hr(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(3).$implicit,x=h();return x.routeEdit(o),M(x.inactivateCharge(u.id))}),C(2,"i",34),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Inactivate Charge")))}function zr(t,m){t&1&&A(0,Hr,3,4,"button",25),t&2&&d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE")}function jr(t,m){if(t&1&&(i(0,"span"),A(1,Ur,3,4,"button",25)(2,qr,3,4,"button",25),v(3,zr,1,1,"button",31),a()),t&2){let e=h().$implicit,s=h();n(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),n(),_(s.isRecurringCharge(e)?3:-1)}}function $r(t,m){if(t&1&&(i(0,"td",24),v(1,Gr,3,2,"span"),v(2,jr,4,3,"span"),a()),t&2){let e=m.$implicit,s=h();n(),_(s.savingsAccountData.status.value==="Submitted and pending approval"?1:-1),n(),_(s.savingsAccountData.status.value==="Active"&&e.amountOutstanding!==0?2:-1)}}function Wr(t,m){t&1&&C(0,"tr",35)}function Qr(t,m){if(t&1&&C(0,"tr",36),t&2){let e=m.$implicit;d("routerLink",kt(1,fr,e.id))}}var Fn=(()=>{class t{constructor(){this.savingsService=g(I),this.route=g(E),this.dateUtils=g(j),this.router=g(z),this.dialog=g(yt),this.settingsService=g(U),this.translateService=g(ge),this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData,this.chargesData=this.savingsAccountData.charges})}ngOnInit(){let e=this.chargesData?this.chargesData.filter(s=>s.isActive):[];this.dataSource=new Jt(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){let e=this.chargesData.filter(s=>!s.isActive);this.dataSource.data=e}else{let e=this.chargesData.filter(s=>s.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){let s=[new pe({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new Ne({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],o={title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=this.settingsService.language.code,Yt=this.settingsService.dateFormat,Ue=Q(G({},x.data.value),{dueDate:this.dateUtils.formatDate(x.data.value.dueDate,Yt),dateFormat:Yt,locale:B});this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"paycharge",Ue,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(Le,{data:{id:e}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(Ge,{data:{id:e}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){let s=[new pe({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})],o={title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=this.settingsService.language.code,Yt=this.settingsService.dateFormat,Ue=Q(G({},x.data.value),{dateFormat:Yt,locale:B});this.savingsService.editSavingsAccountCharge(this.savingsAccountData.id,Ue,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(ve,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(o=>{o.delete&&this.savingsService.deleteSavingsAccountCharge(this.savingsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Weekly Fee"}routeEdit(e){e.stopPropagation()}reload(){let e=this.router.url,s=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(s,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}viewAllChargeButtons(e){return this.translateService.instant("labels.buttons."+e)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(s,o){if(s&1&&Pt(gr,7),s&2){let u;Ot(u=Dt())&&(o.chargesTableRef=u.first)}},decls:45,vars:7,consts:[["chargesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),r(4),c(5,"translate"),a()(),v(6,Cr,3,1,"div",4),a(),i(7,"div",5)(8,"table",6,0),N(10,7),A(11,vr,3,3,"th",8)(12,_r,2,1,"td",9),R(),N(13,10),A(14,hr,3,3,"th",8)(15,xr,3,4,"td",9),R(),N(16,11),A(17,br,3,3,"th",8)(18,Sr,3,4,"td",9),R(),N(19,12),A(20,Mr,3,3,"th",8)(21,Ar,3,3,"td",9),R(),N(22,13),A(23,Tr,3,3,"th",8)(24,Pr,2,1,"td",9),R(),N(25,14),A(26,Or,3,3,"th",8)(27,Dr,3,4,"td",9),R(),N(28,15),A(29,yr,3,3,"th",8)(30,Ir,3,6,"td",9),R(),N(31,16),A(32,wr,3,3,"th",8)(33,Er,3,6,"td",9),R(),N(34,17),A(35,Fr,3,3,"th",8)(36,kr,3,6,"td",9),R(),N(37,18),A(38,Br,3,3,"th",8)(39,Nr,3,6,"td",9),R(),N(40,19),A(41,Rr,3,3,"th",8)(42,$r,3,2,"td",9),R(),A(43,Wr,1,0,"tr",20)(44,Qr,1,3,"tr",21),a()()()),s&2&&(n(4),p(l(5,5,"labels.inputs.Charges")),n(2),_(o.chargesData?6:-1),n(2),d("dataSource",o.dataSource),n(35),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns))},dependencies:[P,O,q,F,Rt,Lt,qt,Ut,Ht,Gt,zt,fe,jt,Wt,$t,Qt,ue,Bt,y,Nt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();var Kr=["instructionsTable"];function Yr(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client")))}function Jr(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function Xr(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.From Account")))}function Zr(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function tc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Beneficiary")))}function ec(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),p(e.toClient.displayName)}}function nc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.To Account")))}function ic(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function ac(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function oc(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V("",e.instructionType.value,"/",e.amount)}}function rc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Validity")))}function cc(t,m){if(t&1&&(i(0,"td",17),r(1),c(2,"dateFormat"),c(3,"translate"),c(4,"dateFormat"),a()),t&2){let e=m.$implicit;n(),Pe(" ",l(2,3,e.validFrom)," ",l(3,5,"labels.inputs.To")," ",l(4,7,e.validTill)," ")}}function sc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function lc(t,m){t&1&&(i(0,"button",19),c(1,"translate"),C(2,"i",20),a()),t&2&&d("matTooltip",ft(l(1,2,"tooltips.Edit Standing Instruction")))}function mc(t,m){t&1&&(i(0,"span"),A(1,lc,3,4,"button",18),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function pc(t,m){if(t&1){let e=D();i(0,"button",22),c(1,"translate"),b("click",function(){S(e);let o=h(2).$implicit,u=h();return M(u.deleteStandingInstruction(o.id))}),C(2,"i",23),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Delete Standing Instruction")))}function dc(t,m){t&1&&(i(0,"span"),A(1,pc,3,4,"button",21),a()),t&2&&(n(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function uc(t,m){t&1&&(i(0,"button",19),c(1,"translate"),C(2,"i",24),a()),t&2&&d("matTooltip",ft(l(1,2,"tooltips.View Standing Instruction")))}function gc(t,m){if(t&1&&(i(0,"td",17),v(1,mc,2,1,"span"),v(2,dc,2,1,"span"),A(3,uc,3,4,"button",18),a()),t&2){let e=m.$implicit;n(),_(e.status.value!=="Deleted"?1:-1),n(),_(e.status.value!=="Deleted"?2:-1),n(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function fc(t,m){t&1&&C(0,"tr",25)}function Cc(t,m){t&1&&C(0,"tr",26)}var kn=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.dialog=g(yt),this.accountTransfersService=g(Gi),this.settingsService=g(U),this.dataSource=new Jt,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.savingsData=e.savingsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.savingsData.clientId,s=this.savingsData.clientName,o=this.savingsData.id,u=this.settingsService.language.code,x=this.settingsService.dateFormat;this.savingsService.getStandingInstructions(e,s,o,u,x).subscribe(B=>{this.instructionsData=B.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ve,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(o=>{o.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(s,o){if(s&1&&Pt(Kr,7),s&2){let u;Ot(u=Dt())&&(o.instructionTableRef=u.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(s,o){s&1&&(i(0,"div",1)(1,"div",2)(2,"h3"),r(3),c(4,"translate"),a()(),i(5,"div",3)(6,"table",4,0),N(8,5),A(9,Yr,3,3,"th",6)(10,Jr,2,2,"td",7),R(),N(11,8),A(12,Xr,3,3,"th",6)(13,Zr,2,2,"td",7),R(),N(14,9),A(15,tc,3,3,"th",6)(16,ec,2,1,"td",7),R(),N(17,10),A(18,nc,3,3,"th",6)(19,ic,2,2,"td",7),R(),N(20,11),A(21,ac,3,3,"th",6)(22,oc,2,2,"td",7),R(),N(23,12),A(24,rc,3,3,"th",6)(25,cc,5,9,"td",7),R(),N(26,13),A(27,sc,3,3,"th",6)(28,gc,4,3,"td",7),R(),A(29,fc,1,0,"tr",14)(30,Cc,1,0,"tr",15),a()()()),s&2&&(n(3),p(l(4,4,"labels.heading.All Standing Instructions")),n(3),d("dataSource",o.dataSource),n(23),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns))},dependencies:[P,O,F,Rt,Lt,qt,Ut,Ht,Gt,zt,fe,jt,Wt,$t,Qt,Bt,y],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var Bn=(()=>{class t{constructor(){this.route=g(E),this.entityId=this.route.parent.parent.snapshot.paramMap.get("savingAccountId"),this.route.data.subscribe(e=>{this.entityDatatable=e.savingsDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(s,o){s&1&&(i(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),a()),s&2&&(n(),d("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[P,O,pn],encapsulation:2})}}return t})();function vc(t,m){if(t&1&&(i(0,"mat-option",5),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function _c(t,m){if(t&1){let e=D();i(0,"mat-form-field",11),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),i(8,"mat-error"),r(9),c(10,"translate"),c(11,"translate"),i(12,"strong"),r(13),c(14,"translate"),a()()()}if(t&2){let e=w(7),s=h();n(2),p(l(3,8,"labels.inputs.Submitted On")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(4),V(" ",l(10,10,"labels.inputs.Submitted On")," ",l(11,12,"labels.commons.is")," "),n(4),p(l(14,14,"labels.commons.required"))}}function hc(t,m){if(t&1&&(i(0,"mat-option",5),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.displayName," ")}}function xc(t,m){if(t&1&&(i(0,"mat-form-field",3)(1,"mat-label"),r(2),c(3,"translate"),a(),i(4,"mat-select",14),ut(5,hc,2,2,"mat-option",5,dt),a()()),t&2){let e=h();n(2),p(l(3,1,"labels.inputs.Field Officer")),n(3),gt(e.fieldOfficerData)}}function bc(t,m){t&1&&(i(0,"mat-form-field",3)(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",15),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.External ID")))}var oe=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.savingsProductSelected=!1,this.savingsAccountProductTemplate=new We,this.createSavingsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.savingsAccountTemplate&&(this.productData=this.savingsAccountTemplate.productOptions,this.savingsAccountTemplate.savingsProductId?this.savingsAccountDetailsForm.patchValue({productId:this.savingsAccountTemplate.savingsProductId,submittedOnDate:this.savingsAccountTemplate.timeline.submittedOnDate&&new Date(this.savingsAccountTemplate.timeline.submittedOnDate),externalId:this.savingsAccountTemplate.externalId}):this.savingsAccountDetailsForm.patchValue({submittedOnDate:new Date}))}createSavingsAccountDetailsForm(){this.savingsAccountDetailsForm=this.formBuilder.group({productId:["",H.required],submittedOnDate:["",H.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){let e=this.savingsAccountTemplate.groupId||this.savingsAccountTemplate.clientId;this.savingsAccountDetailsForm.get("productId").valueChanges.subscribe(s=>{this.savingsService.getSavingsAccountTemplate(e,s,!!this.savingsAccountTemplate.groupId).subscribe(o=>{this.savingsAccountProductTemplate.emit(o),this.fieldOfficerData=o.fieldOfficerOptions,this.savingsProductSelected=!0,!this.isFieldOfficerPatched&&this.savingsAccountTemplate.fieldOfficerId?(this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue(this.savingsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get savingsAccountDetails(){return this.savingsAccountDetailsForm.getRawValue()}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-details-step"]],inputs:{savingsAccountTemplate:"savingsAccountTemplate"},outputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate"},decls:28,vars:23,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId"]],template:function(s,o){s&1&&(i(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),r(4),c(5,"translate"),a(),i(6,"mat-select",4),ut(7,vc,2,2,"mat-option",5,dt),a(),i(9,"mat-error"),r(10),c(11,"translate"),c(12,"translate"),i(13,"strong"),r(14),c(15,"translate"),a()()(),v(16,_c,15,16,"mat-form-field",3),v(17,xc,7,3,"mat-form-field",3),v(18,bc,5,3,"mat-form-field",3),a(),i(19,"div",6)(20,"button",7),C(21,"fa-icon",8),r(22),c(23,"translate"),a(),i(24,"button",9),r(25),c(26,"translate"),C(27,"fa-icon",10),a()()()),s&2&&(d("formGroup",o.savingsAccountDetailsForm),n(4),p(l(5,11,"labels.inputs.Product Name")),n(3),gt(o.productData),n(3),V(" ",l(11,13,"labels.inputs.Product Name")," ",l(12,15,"labels.commons.is")," "),n(4),p(l(15,17,"labels.commons.required")),n(2),_(o.savingsProductSelected?16:-1),n(),_(o.savingsProductSelected?17:-1),n(),_(o.savingsProductSelected?18:-1),n(4),f(" ",l(23,19,"labels.buttons.Previous")," "),n(2),d("disabled",o.savingsAccountDetailsForm.invalid),n(),f(" ",l(26,21,"labels.buttons.Next")," "))},dependencies:[P,O,it,et,K,nt,lt,at,ot,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,le,St,_e,y],encapsulation:2})}}return t})();function Sc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Mc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Ac(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Tc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Pc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Oc(t,m){t&1&&(i(0,"div",19)(1,"mat-form-field",27)(2,"mat-label"),r(3),c(4,"translate"),a(),C(5,"input",28),a(),i(6,"mat-form-field",27)(7,"mat-label"),r(8),c(9,"translate"),a(),C(10,"input",29),a(),i(11,"mat-form-field",27)(12,"mat-label"),r(13),c(14,"translate"),a(),C(15,"input",30),a()()),t&2&&(n(3),p(l(4,3,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),n(5),p(l(9,5,"labels.inputs.Nominal Annual Interest for Overdraft")),n(5),p(l(14,7,"labels.inputs.Maximum Overdraft Amount Limit")))}function Dc(t,m){t&1&&(i(0,"mat-form-field",2)(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",31),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Balance Required for Interest Calculation")))}var re=(()=>{class t{constructor(){this.formBuilder=g(rt),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createSavingsAccountTermsForm(),this.buildDependencies()}ngOnChanges(){this.savingsAccountProductTemplate&&(this.savingsAccountTermsForm.patchValue({currencyCode:this.savingsAccountProductTemplate.currency.code,decimal:this.savingsAccountProductTemplate.currency.decimalPlaces,minBalanceForInterestCalculation:this.savingsAccountProductTemplate.minBalanceForInterestCalculation,nominalAnnualInterestRate:this.savingsAccountProductTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountProductTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountProductTemplate.minRequiredOpeningBalance,allowOverdraft:this.savingsAccountProductTemplate.allowOverdraft,overdraftLimit:this.savingsAccountProductTemplate.overdraftLimit,enforceMinRequiredBalance:this.savingsAccountProductTemplate.enforceMinRequiredBalance,minOverdraftForInterestCalculation:this.savingsAccountProductTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingsAccountProductTemplate.nominalAnnualInterestRateOverdraft,minRequiredBalance:this.savingsAccountProductTemplate.minRequiredBalance,withdrawalFeeForTransfers:this.savingsAccountProductTemplate.withdrawalFeeForTransfers}),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.savingsAccountTemplate&&this.savingsAccountTermsForm.patchValue({nominalAnnualInterestRate:this.savingsAccountTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountTemplate.minRequiredOpeningBalance,withdrawalFeeForTransfers:this.savingsAccountTemplate.withdrawalFeeForTransfers,lockinPeriodFrequency:this.savingsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingsAccountTemplate.lockinPeriodFrequencyType&&this.savingsAccountTemplate.lockinPeriodFrequencyType.id,allowOverdraft:this.savingsAccountTemplate.allowOverdraft,enforceMinRequiredBalance:this.savingsAccountTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingsAccountTemplate.minRequiredBalance})}createSavingsAccountTermsForm(){this.savingsAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],nominalAnnualInterestRate:["",H.required],interestCompoundingPeriodType:["",H.required],interestPostingPeriodType:["",H.required],interestCalculationType:["",H.required],interestCalculationDaysInYearType:["",H.required],minRequiredOpeningBalance:[""],withdrawalFeeForTransfers:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowOverdraft:[!1],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.interestCompoundingPeriodTypeData=this.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions}buildDependencies(){this.savingsAccountTermsForm.get("allowOverdraft").valueChanges.subscribe(e=>{e?(this.savingsAccountTermsForm.addControl("minOverdraftForInterestCalculation",new Ct("")),this.savingsAccountTermsForm.addControl("nominalAnnualInterestRateOverdraft",new Ct("")),this.savingsAccountTermsForm.addControl("overdraftLimit",new Ct(""))):(this.savingsAccountTermsForm.removeControl("minOverdraftForInterestCalculation"),this.savingsAccountTermsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingsAccountTermsForm.removeControl("overdraftLimit"))})}get savingsAccountTerms(){let e=this.savingsAccountTermsForm.getRawValue();return delete e.currencyCode,delete e.decimal,delete e.minBalanceForInterestCalculation,e}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-terms-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate"},features:[Te],decls:130,vars:102,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","decimal"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required",""],["formControlName","interestCompoundingPeriodType","required",""],[3,"value"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["type","number","matInput","","formControlName","minRequiredOpeningBalance"],["labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"margin-v","flex-48"],[1,"mat-h4","flex-98"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[1,"flex-98"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","allowOverdraft",1,"flex-73","margin-b"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["labelPosition","before","formControlName","enforceMinRequiredBalance",1,"margin-v","flex-48"],["type","number","matInput","","formControlName","minRequiredBalance"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-31"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft"],["type","number","matInput","","formControlName","overdraftLimit"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"]],template:function(s,o){s&1&&(i(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),r(4),c(5,"translate"),a(),C(6,"input",3),a(),i(7,"mat-form-field",2)(8,"mat-label"),r(9),c(10,"translate"),a(),C(11,"input",4),a(),i(12,"mat-form-field",2)(13,"mat-label"),r(14),c(15,"translate"),a(),C(16,"input",5),i(17,"mat-error"),r(18),c(19,"translate"),c(20,"translate"),i(21,"strong"),r(22),c(23,"translate"),a()()(),i(24,"mat-form-field",2)(25,"mat-label"),r(26),c(27,"translate"),a(),i(28,"mat-select",6),ut(29,Sc,3,5,"mat-option",7,dt),a(),i(31,"mat-error"),r(32),c(33,"translate"),c(34,"translate"),i(35,"strong"),r(36),c(37,"translate"),a()()(),i(38,"mat-form-field",2)(39,"mat-label"),r(40),c(41,"translate"),a(),i(42,"mat-select",8),ut(43,Mc,3,5,"mat-option",7,dt),a(),i(45,"mat-error"),r(46),c(47,"translate"),c(48,"translate"),i(49,"strong"),r(50),c(51,"translate"),a()()(),i(52,"mat-form-field",2)(53,"mat-label"),r(54),c(55,"translate"),a(),i(56,"mat-select",9),ut(57,Ac,3,5,"mat-option",7,dt),a(),i(59,"mat-error"),r(60),c(61,"translate"),c(62,"translate"),i(63,"strong"),r(64),c(65,"translate"),a()()(),i(66,"mat-form-field",2)(67,"mat-label"),r(68),c(69,"translate"),a(),i(70,"mat-select",10),ut(71,Tc,3,5,"mat-option",7,dt),a(),i(73,"mat-error"),r(74),c(75,"translate"),c(76,"translate"),i(77,"strong"),r(78),c(79,"translate"),a()()(),i(80,"mat-form-field",2)(81,"mat-label"),r(82),c(83,"translate"),a(),C(84,"input",11),a(),i(85,"mat-checkbox",12),r(86),c(87,"translate"),a(),i(88,"h4",13),r(89),c(90,"translate"),a(),i(91,"mat-form-field",2)(92,"mat-label"),r(93),c(94,"translate"),a(),C(95,"input",14),a(),i(96,"mat-form-field",2)(97,"mat-label"),r(98),c(99,"translate"),a(),i(100,"mat-select",15),ut(101,Pc,3,5,"mat-option",7,dt),a()(),C(103,"mat-divider",16),i(104,"h3",17),r(105),c(106,"translate"),a(),i(107,"mat-checkbox",18),r(108),c(109,"translate"),a(),v(110,Oc,16,9,"div",19),C(111,"mat-divider",16),i(112,"mat-checkbox",20),r(113),c(114,"translate"),a(),i(115,"mat-form-field",2)(116,"mat-label"),r(117),c(118,"translate"),a(),C(119,"input",21),a(),v(120,Dc,5,3,"mat-form-field",2),a(),i(121,"div",22)(122,"button",23),C(123,"fa-icon",24),r(124),c(125,"translate"),a(),i(126,"button",25),r(127),c(128,"translate"),C(129,"fa-icon",26),a()()()),s&2&&(d("formGroup",o.savingsAccountTermsForm),n(4),p(l(5,36,"labels.inputs.Currency")),n(5),p(l(10,38,"labels.inputs.Decimal Places")),n(5),p(l(15,40,"labels.inputs.Nominal Annual Interest")),n(4),V(" ",l(19,42,"labels.inputs.Nominal Annual Interest")," ",l(20,44,"labels.commons.is")," "),n(4),p(l(23,46,"labels.commons.required")),n(4),p(l(27,48,"labels.inputs.Interest Compounding Period")),n(3),gt(o.interestCompoundingPeriodTypeData),n(3),V(" ",l(33,50,"labels.inputs.Interest Compounding Period")," ",l(34,52,"labels.commons.is")," "),n(4),p(l(37,54,"labels.commons.required")),n(4),p(l(41,56,"labels.inputs.Interest Posting Period")),n(3),gt(o.interestPostingPeriodTypeData),n(3),V(" ",l(47,58,"labels.inputs.Interest Posting Period")," ",l(48,60,"labels.commons.is")," "),n(4),p(l(51,62,"labels.commons.required")),n(4),p(l(55,64,"labels.inputs.Interest Calculated using")),n(3),gt(o.interestCalculationTypeData),n(3),V(" ",l(61,66,"labels.inputs.Interest Calculated using")," ",l(62,68,"labels.commons.is")," "),n(4),p(l(65,70,"labels.commons.required")),n(4),p(l(69,72,"labels.inputs.Days in Year")),n(3),gt(o.interestCalculationDaysInYearTypeData),n(3),V(" ",l(75,74,"labels.inputs.Days in Year")," ",l(76,76,"labels.commons.is")," "),n(4),p(l(79,78,"labels.commons.required")),n(4),p(l(83,80,"labels.inputs.Minimum Opening Balance")),n(4),f(" ",l(87,82,"labels.inputs.Apply Withdrawal Fee for Transfers")," "),n(3),p(l(90,84,"labels.inputs.Lock-in Period")),n(4),p(l(94,86,"labels.inputs.Frequency")),n(5),p(l(99,88,"labels.inputs.Type")),n(3),gt(o.lockinPeriodFrequencyTypeData),n(4),p(l(106,90,"labels.inputs.Overdraft")),n(3),f(" ",l(109,92,"labels.inputs.Is Overdraft Allowed")," "),n(2),_(o.savingsAccountTermsForm.value.allowOverdraft?110:-1),n(3),f(" ",l(114,94,"labels.inputs.Enforce Minimum Balance")," "),n(4),p(l(118,96,"labels.inputs.Minimum Balance")),n(3),_(o.savingsAccountTermsForm.controls.minBalanceForInterestCalculation.value?120:-1),n(4),f(" ",l(125,98,"labels.buttons.Previous")," "),n(3),f(" ",l(128,100,"labels.buttons.Next")," "))},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,Z,X,mt,st,wt,It,F,Ce,tn,le,St,_e,y,Nt],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function yc(t,m){if(t&1&&(i(0,"mat-option",3),r(1),a()),t&2){let e=m.$implicit;d("value",e),n(),f(" ",e.name," ")}}function Ic(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function wc(t,m){if(t&1&&(i(0,"td",25),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.name+", "+e.currency.displaySymbol," ")}}function Ec(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Type")))}function Fc(t,m){if(t&1&&(i(0,"td",25),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.chargeCalculationType.value," ")}}function kc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function Bc(t,m){if(t&1){let e=D();i(0,"td",25),r(1),c(2,"formatNumber"),i(3,"button",26),b("click",function(){let o=S(e).$implicit,u=h(2);return M(u.editChargeAmount(o))}),C(4,"fa-icon",27),a()()}if(t&2){let e=m.$implicit;n(),f(" ",l(2,1,e.amount)," ")}}function Nc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Collected On")))}function Rc(t,m){if(t&1&&(i(0,"td",25),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),f(" ",Mt(2,1,e.chargeTimeType.value,"catalogs")," ")}}function Vc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Date")))}function Lc(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.dueDate)||"Unassigned"," ")}}function Gc(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function Uc(t,m){t&1&&(i(0,"span"),r(1," N/A "),a())}function qc(t,m){if(t&1){let e=D();i(0,"button",26),b("click",function(){S(e);let o=h().$implicit,u=h(2);return M(u.editChargeDate(o))}),C(1,"fa-icon",27),a()}}function Hc(t,m){if(t&1&&(i(0,"td",25),v(1,Lc,3,3,"span"),v(2,Gc,3,3,"span"),v(3,Uc,2,0,"span"),v(4,qc,2,0,"button",28),a()),t&2){let e=m.$implicit;n(),_(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3),n(),_(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?4:-1)}}function zc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repayments Every")))}function jc(t,m){if(t&1&&(i(0,"span"),r(1),a()),t&2){let e=h().$implicit;n(),p(e.feeInterval)}}function $c(t,m){t&1&&(i(0,"span"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function Wc(t,m){if(t&1){let e=D();i(0,"button",26),b("click",function(){S(e);let o=h().$implicit,u=h(2);return M(u.editChargeFeeInterval(o))}),C(1,"fa-icon",27),a()}}function Qc(t,m){if(t&1&&(i(0,"td",25),v(1,jc,2,1,"span"),v(2,$c,3,3,"span"),v(3,Wc,2,0,"button",28),a()),t&2){let e=m.$implicit;n(),_(e.feeInterval?1:-1),n(),_(e.feeInterval?-1:2),n(),_(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"?3:-1)}}function Kc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Yc(t,m){if(t&1){let e=D();i(0,"td",25)(1,"button",29),b("click",function(){let o=S(e).$implicit,u=h(2);return M(u.deleteCharge(o))}),C(2,"fa-icon",30),a()()}}function Jc(t,m){t&1&&C(0,"tr",31)}function Xc(t,m){t&1&&C(0,"tr",32)}function Zc(t,m){if(t&1&&(i(0,"table",7),N(1,13),A(2,Ic,3,3,"th",14)(3,wc,2,1,"td",15),R(),N(4,16),A(5,Ec,3,3,"th",14)(6,Fc,2,1,"td",15),R(),N(7,17),A(8,kc,3,3,"th",14)(9,Bc,5,3,"td",15),R(),N(10,18),A(11,Nc,3,3,"th",14)(12,Rc,3,4,"td",15),R(),N(13,19),A(14,Vc,3,3,"th",14)(15,Hc,5,4,"td",15),R(),N(16,20),A(17,zc,3,3,"th",14)(18,Qc,4,3,"td",15),R(),N(19,21),A(20,Kc,3,3,"th",14)(21,Yc,3,0,"td",15),R(),A(22,Jc,1,0,"tr",22)(23,Xc,1,0,"tr",23),a()),t&2){let e=h();d("dataSource",e.chargesDataSource),n(22),d("matHeaderRowDef",e.displayedColumns),n(),d("matRowDefColumns",e.displayedColumns)}}var ce=(()=>{class t{constructor(){this.dialog=g(yt),this.dateUtils=g(j),this.translateService=g(ge),this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name"]}ngOnInit(){this.savingsAccountTemplate&&(!this.isChargesPatched&&this.savingsAccountTemplate.charges?(this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>Q(G({},e),{id:e.chargeId}))||[],this.isChargesPatched=!0):this.chargesDataSource=[])}ngOnChanges(){this.savingsAccountProductTemplate&&(this.chargeData=this.savingsAccountProductTemplate.chargeOptions,this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>Q(G({},e),{id:e.chargeId}))||[])}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){let s=[new pe({controlName:"amount",label:this.translateService.instant("labels.inputs.Amount"),value:e.amount,type:"number",required:!1})],o={title:this.translateService.instant("labels.heading.Edit Charge Amount"),layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=Q(G({},e),{amount:x.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,B),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){let s=[new Ne({controlName:"date",label:this.translateService.instant("labels.inputs.Date"),value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],o={title:this.translateService.instant("labels.heading.Edit Charge Date"),layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B,Ue=this.dateUtils.formatDate(x.data.value.date,"dd MMMM yyyy");switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":B=Q(G({},e),{dueDate:Ue});break;case"Annual Fee":case"Monthly Fee":let Wi=this.dateUtils.formatDate(x.data.value.date,"dd MMMM");B=Q(G({},e),{feeOnMonthDay:Wi});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,B),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let s=[new pe({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],o={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=Q(G({},e),{feeInterval:x.data.value.feeInterval});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,B),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get savingsAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-charges-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",currencyCode:"currencyCode",activeClientMembers:"activeClientMembers"},features:[Te],decls:25,vars:18,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-98","layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","primary"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),r(3),c(4,"translate"),a(),i(5,"mat-select",null,0),ut(7,yc,2,2,"mat-option",3,dt),c(9,"chargesFilter"),a()(),i(10,"div",4)(11,"button",5),b("click",function(){S(u);let B=w(6);return M(o.addCharge(B))}),C(12,"fa-icon",6),r(13),c(14,"translate"),a()(),v(15,Zc,24,3,"table",7),i(16,"div",8)(17,"button",9),C(18,"fa-icon",10),r(19),c(20,"translate"),a(),i(21,"button",11),r(22),c(23,"translate"),C(24,"fa-icon",12),a()()()}if(s&2){let u=w(6);n(3),p(l(4,6,"labels.inputs.Charge")),n(4),gt(hi(9,8,o.chargeData,o.chargesDataSource,o.currencyCode.value)),n(4),d("disabled",!u.value),n(2),f(" ",l(14,12,"labels.buttons.Add")," "),n(2),_(o.chargesDataSource.length>0?15:-1),n(4),f(" ",l(20,14,"labels.buttons.Previous")," "),n(3),f(" ",l(23,16,"labels.buttons.Next")," ")}},dependencies:[P,O,Z,X,wt,It,F,St,Lt,qt,Ut,Ht,Gt,zt,Oe,jt,Wt,$t,Qt,le,_e,Bt,y,Nt,Ii,me],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var ts=()=>["../.."];function es(t,m){if(t&1&&(i(0,"span",6),C(1,"mifosx-external-identifier",14),a()),t&2){let e=h();n(),d("externalId",ft(e.savingsAccount.externalId))}}function ns(t,m){t&1&&(i(0,"span",6),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Unassigned")," "))}function is(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client ID")))}function as(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),p(e.id)}}function os(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client Name")))}function rs(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),p(e.displayName)}}function cs(t,m){t&1&&C(0,"tr",24)}function ss(t,m){t&1&&C(0,"tr",25)}function ls(t,m){if(t&1&&(i(0,"h3",7),r(1),c(2,"translate"),a(),C(3,"mat-divider",3),i(4,"div",6)(5,"table",15,0),N(7,16),A(8,is,3,3,"th",17)(9,as,2,1,"td",18),R(),N(10,19),A(11,os,3,3,"th",17)(12,rs,2,1,"td",18),R(),A(13,cs,1,0,"tr",20)(14,ss,1,0,"tr",21),a()()),t&2){let e=h();n(),p(l(2,4,"labels.heading.Client Members")),n(4),d("dataSource",e.dataSource),n(8),d("matHeaderRowDef",e.membersDisplayedColumns),n(),d("matRowDefColumns",e.membersDisplayedColumns)}}function ms(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Minimum Opening Balance"),":"),n(3),p(l(6,4,e.savingsAccount.minRequiredOpeningBalance))}}function ps(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"find"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Lock-in Period"),":"),n(3),p(e.getCatalogTranslation(e.savingsAccount.lockinPeriodFrequency+" "+tt(6,4,e.savingsAccount.lockinPeriodFrequencyType,e.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value")))}}function ds(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),n(3),p(l(6,4,e.savingsAccount.minOverdraftForInterestCalculation))}}function us(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),n(3),f("",l(6,4,e.savingsAccount.nominalAnnualInterestRateOverdraft)," %")}}function gs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),n(3),p(l(6,4,e.savingsAccount.overdraftLimit))}}function fs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Minimum Balance"),":"),n(3),p(e.savingsAccount.minRequiredBalance)}}function Cs(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function vs(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.name+", "+e.currency.displaySymbol," ")}}function _s(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Type")))}function hs(t,m){if(t&1&&(i(0,"td",23),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),f(" ",Mt(2,1,e.chargeCalculationType.value,"catalogs")," ")}}function xs(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function bs(t,m){if(t&1&&(i(0,"td",23),r(1),c(2,"formatNumber"),a()),t&2){let e=m.$implicit;n(),f(" ",l(2,1,e.amount)," ")}}function Ss(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Date")))}function Ms(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.dueDate)||"Unassigned"," ")}}function As(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function Ts(t,m){t&1&&(i(0,"span"),r(1," N/A "),a())}function Ps(t,m){if(t&1&&(i(0,"td",23),v(1,Ms,3,3,"span"),v(2,As,3,3,"span"),v(3,Ts,2,0,"span"),a()),t&2){let e=m.$implicit;n(),_(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3)}}function Os(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repayments Every")))}function Ds(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.feeInterval||"Not Provided"," ")}}function ys(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Collected On")))}function Is(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.chargeTimeType.value," ")}}function ws(t,m){t&1&&C(0,"tr",24)}function Es(t,m){t&1&&C(0,"tr",25)}function Fs(t,m){if(t&1&&(i(0,"div",8)(1,"h3",2),r(2),c(3,"translate"),a(),C(4,"mat-divider",3),i(5,"table",26),N(6,19),A(7,Cs,3,3,"th",17)(8,vs,2,1,"td",18),R(),N(9,27),A(10,_s,3,3,"th",17)(11,hs,3,4,"td",18),R(),N(12,28),A(13,xs,3,3,"th",17)(14,bs,3,3,"td",18),R(),N(15,29),A(16,Ss,3,3,"th",17)(17,Ps,4,3,"td",18),R(),N(18,30),A(19,Os,3,3,"th",17)(20,Ds,2,1,"td",18),R(),N(21,31),A(22,ys,3,3,"th",17)(23,Is,2,1,"td",18),R(),A(24,ws,1,0,"tr",20)(25,Es,1,0,"tr",21),a()()),t&2){let e=h();n(2),p(l(3,4,"labels.inputs.Charges")),n(3),d("dataSource",e.savingsAccount.charges),n(19),d("matHeaderRowDef",e.chargesDisplayedColumns),n(),d("matRowDefColumns",e.chargesDisplayedColumns)}}var be=(()=>{class t{constructor(){this.translateService=g(ge),this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.membersDisplayedColumns=["id","name"],this.submitEvent=new We}ngOnChanges(){this.activeClientMembers?.length>0&&(this.dataSource=new Jt(this.activeClientMembers.filter(e=>e.selected)))}getCatalogTranslation(e){return this.translateService.instant("labels.catalogs."+e)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-preview-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",savingsAccountTermsForm:"savingsAccountTermsForm",savingsAccount:"savingsAccount",activeClientMembers:"activeClientMembers"},outputs:{submitEvent:"submitEvent"},features:[Te],decls:123,vars:122,consts:[["membersTable",""],[1,"responsive-column"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"mat-h3","margin-t","flex-fill"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"h3",2),r(2),c(3,"translate"),a(),C(4,"mat-divider",3),i(5,"div",4)(6,"span",5),r(7),c(8,"translate"),a(),i(9,"span",6),r(10),c(11,"find"),a()(),i(12,"div",4)(13,"span",5),r(14),c(15,"translate"),a(),i(16,"span",6),r(17),c(18,"dateFormat"),a()(),i(19,"div",4)(20,"span",5),r(21),c(22,"translate"),a(),v(23,es,2,2,"span",6),v(24,ns,3,3,"span",6),a(),i(25,"div",4)(26,"span",5),r(27),c(28,"translate"),a(),i(29,"span",6),r(30),c(31,"find"),a()(),v(32,ls,15,6),i(33,"h3",7),r(34),c(35,"translate"),a(),C(36,"mat-divider",3),i(37,"div",4)(38,"span",5),r(39),c(40,"translate"),a(),i(41,"span",6),r(42),a()(),i(43,"div",4)(44,"span",5),r(45),c(46,"translate"),a(),i(47,"span",6),r(48),a()(),i(49,"div",4)(50,"span",5),r(51),c(52,"translate"),a(),i(53,"span",6),r(54),c(55,"formatNumber"),a()(),i(56,"div",4)(57,"span",5),r(58),c(59,"translate"),a(),i(60,"span",6),r(61),c(62,"find"),a()(),i(63,"div",4)(64,"span",5),r(65),c(66,"translate"),a(),i(67,"span",6),r(68),c(69,"find"),a()(),i(70,"div",4)(71,"span",5),r(72),c(73,"translate"),a(),i(74,"span",6),r(75),c(76,"find"),a()(),i(77,"div",4)(78,"span",5),r(79),c(80,"translate"),a(),i(81,"span",6),r(82),c(83,"find"),a()(),v(84,ms,7,6,"div",4),i(85,"div",4)(86,"span",5),r(87),c(88,"translate"),a(),i(89,"span",6),r(90),c(91,"yesNo"),a()(),v(92,ps,7,9,"div",4),i(93,"div",4)(94,"span",5),r(95),c(96,"translate"),a(),i(97,"span",6),r(98),c(99,"yesNo"),a()(),v(100,ds,7,6,"div",4),v(101,us,7,6,"div",4),v(102,gs,7,6,"div",4),i(103,"div",4)(104,"span",5),r(105),c(106,"translate"),a(),i(107,"span",6),r(108),c(109,"yesNo"),a()(),v(110,fs,6,4,"div",4),v(111,Fs,26,6,"div",8),a(),i(112,"div",9)(113,"button",10),C(114,"fa-icon",11),r(115),c(116,"translate"),a(),i(117,"button",12),r(118),c(119,"translate"),a(),i(120,"button",13),b("click",function(){return o.submitEvent.emit()}),r(121),c(122,"translate"),a()()),s&2&&(n(2),p(l(3,43,"labels.heading.Details")),n(5),p(l(8,45,"labels.inputs.Product")),n(3),p(tt(11,47,o.savingsAccount.productId,o.savingsAccountTemplate.productOptions,"id","name")),n(4),p(l(15,52,"labels.inputs.Submitted On")),n(3),p(l(18,54,o.savingsAccount.submittedOnDate)),n(4),p(l(22,56,"labels.inputs.External Id")),n(2),_(o.savingsAccount.externalId?23:-1),n(),_(o.savingsAccount.externalId?-1:24),n(3),p(l(28,58,"labels.inputs.Field Officer")),n(3),p(tt(31,60,o.savingsAccount.fieldOfficerId,o.savingsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),n(2),_(o.activeClientMembers?32:-1),n(2),p(l(35,65,"labels.heading.Terms")),n(5),p(l(40,67,"labels.inputs.Currency")),n(3),p(o.savingsAccountTermsForm.get("currencyCode").value),n(3),p(l(46,69,"labels.inputs.Decimal Places")),n(3),p(o.savingsAccountTermsForm.get("decimal").value),n(3),f("",l(52,71,"labels.inputs.Nominal Annual Interest"),":"),n(3),f("",l(55,73,o.savingsAccount.nominalAnnualInterestRate)," %"),n(4),f("",l(59,75,"labels.inputs.Interest Compounding Period"),":"),n(3),p(o.getCatalogTranslation(tt(62,77,o.savingsAccount.interestCompoundingPeriodType,o.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value"))),n(4),f("",l(66,82,"labels.inputs.Interest Posting Period"),":"),n(3),p(o.getCatalogTranslation(tt(69,84,o.savingsAccount.interestPostingPeriodType,o.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value"))),n(4),f("",l(73,89,"labels.inputs.Interest Calculated using"),":"),n(3),p(o.getCatalogTranslation(tt(76,91,o.savingsAccount.interestCalculationType,o.savingsAccountProductTemplate.interestCalculationTypeOptions,"id","value"))),n(4),f("",l(80,96,"labels.inputs.Days in Year"),":"),n(3),p(o.getCatalogTranslation(tt(83,98,o.savingsAccount.interestCalculationDaysInYearType,o.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value"))),n(2),_(o.savingsAccount.minRequiredOpeningBalance?84:-1),n(3),f("",l(88,103,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),n(3),p(l(91,105,o.savingsAccount.withdrawalFeeForTransfers)),n(2),_(o.savingsAccount.lockinPeriodFrequency?92:-1),n(3),f("",l(96,107,"labels.inputs.Is Overdraft Allowed"),":"),n(3),p(l(99,109,o.savingsAccount.allowOverdraft)),n(2),_(o.savingsAccount.minOverdraftForInterestCalculation?100:-1),n(),_(o.savingsAccount.nominalAnnualInterestRateOverdraft?101:-1),n(),_(o.savingsAccount.overdraftLimit?102:-1),n(3),f("",l(106,111,"labels.inputs.Enforce Minimum Balance"),":"),n(3),p(l(109,113,o.savingsAccount.enforceMinRequiredBalance)),n(2),_(o.savingsAccount.minRequiredBalance?110:-1),n(),_(o.savingsAccount.charges.length?111:-1),n(4),f(" ",l(116,115,"labels.buttons.Previous")," "),n(2),d("routerLink",k(121,ts)),n(),f(" ",l(119,117,"labels.buttons.Cancel")," "),n(3),f(" ",l(122,119,"labels.buttons.Submit")," "))},dependencies:[P,O,q,F,tn,Be,Lt,qt,Ut,Ht,Gt,zt,jt,Wt,$t,Qt,le,St,Bt,y,Nt,wi,me,mn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function ks(t,m){t&1&&C(0,"fa-icon",14)}function Bs(t,m){t&1&&C(0,"fa-icon",14)}function Ns(t,m){t&1&&C(0,"fa-icon",15)}function Rs(t,m){t&1&&C(0,"fa-icon",16)}function Vs(t,m){t&1&&C(0,"fa-icon",17)}function Ls(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Gs(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function Us(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function qs(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function Hs(t,m){if(t&1){let e=D();i(0,"mat-step",13),A(1,qs,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",18),b("submitEvent",function(){S(e);let o=h();return M(o.submit())}),a()()}if(t&2){let e=h();n(2),d("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}var Nn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.route.data.subscribe(e=>{this.savingsAccountTemplate=e.savingsAccountTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return G(G(G({},this.savingsAccountDetailsStep.savingsAccountDetails),this.savingsAccountTermsStep.savingsAccountTerms),this.savingsAccountChargesStep.savingsAccountCharges)}submit(){let e=this.settingsService.language.code,s=this.settingsService.dateFormat,u=Q(G({},this.savingsAccount),{charges:this.savingsAccount.charges.map(x=>({chargeId:x.id,amount:x.amount,dueDate:x.dueDate,feeOnMonthDay:x.feeOnMonthDay,feeInterval:x.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,s),dateFormat:s,monthDayFormat:"dd MMMM",locale:e});this.savingsAccountTemplate.clientId?u.clientId=this.savingsAccountTemplate.clientId:u.groupId=this.savingsAccountTemplate.groupId,this.savingsService.createSavingsAccount(u).subscribe(x=>{this.router.navigate(["../",x.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-create-savings-account"]],viewQuery:function(s,o){if(s&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7)),s&2){let u;Ot(u=Dt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=Dt())&&(o.savingsAccountTermsStep=u.first),Ot(u=Dt())&&(o.savingsAccountChargesStep=u.first)}},decls:18,vars:9,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-stepper",2,0),A(3,ks,1,0,"ng-template",3)(4,Bs,1,0,"ng-template",4)(5,Ns,1,0,"ng-template",5)(6,Rs,1,0,"ng-template",6)(7,Vs,1,0,"ng-template",7),i(8,"mat-step",8),A(9,Ls,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return S(u),M(o.setTemplate(B))}),a()(),i(11,"mat-step",8),A(12,Gs,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",11),a(),i(14,"mat-step"),A(15,Us,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",12),a(),v(17,Hs,3,4,"mat-step",13),a()()}s&2&&(n(),d("linear",!1),n(7),d("stepControl",o.savingsAccountDetailsForm),n(2),d("savingsAccountTemplate",o.savingsAccountTemplate),n(),d("stepControl",o.savingsAccountTermsForm),n(2),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate),n(3),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountTemplate)("currencyCode",o.savingsAccountTermsForm.get("currencyCode")),n(),_(o.savingsAccountFormValid?17:-1))},dependencies:[P,O,ke,Ee,St,Fe,we,oe,re,ce,be,y],encapsulation:2})}}return t})();function zs(t,m){t&1&&C(0,"fa-icon",13)}function js(t,m){t&1&&C(0,"fa-icon",13)}function $s(t,m){t&1&&C(0,"fa-icon",14)}function Ws(t,m){t&1&&C(0,"fa-icon",15)}function Qs(t,m){t&1&&C(0,"fa-icon",16)}function Ks(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Ys(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function Js(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function Xs(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function Zs(t,m){if(t&1){let e=D();i(0,"mat-step",12),A(1,Xs,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",17),b("submitEvent",function(){S(e);let o=h();return M(o.submit())}),a()()}if(t&2){let e=h();n(2),d("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountAndTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}var Rn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.route.data.subscribe(e=>{this.savingsAccountAndTemplate=e.savingsAccountAndTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValidAndNotPristine(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&(!this.savingsAccountDetailsForm.pristine||!this.savingsAccountTermsForm.pristine||!this.savingsAccountChargesStep.pristine)}get savingsAccount(){return G(G(G({},this.savingsAccountDetailsStep.savingsAccountDetails),this.savingsAccountTermsStep.savingsAccountTerms),this.savingsAccountChargesStep.savingsAccountCharges)}submit(){let e=this.settingsService.language.code,s=this.settingsService.dateFormat,u=Q(G({},this.savingsAccount),{charges:this.savingsAccount.charges.map(x=>({chargeId:x.id,amount:x.amount,dueDate:this.dateUtils.formatDate(x.dueDate,s),feeOnMonthDay:this.dateUtils.formatDate(x.feeOnMonthDay,s),feeInterval:x.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,s),dateFormat:s,monthDayFormat:"dd MMMM",locale:e});this.savingsAccountAndTemplate.clientId?u.clientId=this.savingsAccountAndTemplate.clientId:u.groupId=this.savingsAccountAndTemplate.groupId,this.savingsService.updateSavingsAccount(this.savingsAccountAndTemplate.id,u).subscribe(x=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-edit-savings-account"]],viewQuery:function(s,o){if(s&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7)),s&2){let u;Ot(u=Dt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=Dt())&&(o.savingsAccountTermsStep=u.first),Ot(u=Dt())&&(o.savingsAccountChargesStep=u.first)}},decls:18,vars:10,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-stepper",2,0),A(3,zs,1,0,"ng-template",3)(4,js,1,0,"ng-template",4)(5,$s,1,0,"ng-template",5)(6,Ws,1,0,"ng-template",6)(7,Qs,1,0,"ng-template",7),i(8,"mat-step",8),A(9,Ks,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return S(u),M(o.setTemplate(B))}),a()(),i(11,"mat-step",8),A(12,Ys,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",10),a(),i(14,"mat-step"),A(15,Js,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",11),a(),v(17,Zs,3,4,"mat-step",12),a()()}s&2&&(n(),d("linear",!1),n(7),d("stepControl",o.savingsAccountDetailsForm),n(2),d("savingsAccountTemplate",o.savingsAccountAndTemplate),n(),d("stepControl",o.savingsAccountTermsForm),n(2),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountAndTemplate),n(3),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountAndTemplate)("currencyCode",o.savingsAccountTermsForm.get("currencyCode")),n(),_(o.savingsAccountFormValidAndNotPristine?17:-1))},dependencies:[P,O,ke,Ee,St,Fe,we,oe,re,ce,be,y],encapsulation:2})}}return t})();var tl=()=>["./general"],el=t=>["./datatables",t];function nl(t,m){if(t&1&&(i(0,"a",5,2),r(2),a()),t&2){let e=w(1),s=h().$implicit;d("routerLink",kt(3,el,s.registeredTableName))("active",e.isActive),n(2),f(" ",s.registeredTableName," ")}}function il(t,m){if(t&1&&A(0,nl,3,5,"a",6),t&2){let e=m.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}var Vn=(()=>{class t{constructor(){this.route=g(E),this.dialog=g(yt),this.route.data.subscribe(e=>{this.accountId=this.route.snapshot.params.savingAccountId,this.entityDatatables=e.transactionDatatables})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-view-transaction"]],decls:11,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"container"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(s,o){if(s&1&&(i(0,"div",3)(1,"nav",4)(2,"a",5,0),r(4),c(5,"translate"),a(),ut(6,il,1,1,"a",5,dt),a(),i(8,"mat-tab-nav-panel",null,1),C(10,"router-outlet"),a()()),s&2){let u=w(3),x=w(9);n(),d("tabPanel",x),n(),d("routerLink",k(6,tl))("active",u.isActive),n(2),f(" ",l(5,4,"labels.heading.General")," "),n(2),gt(o.entityDatatables)}},dependencies:[P,O,q,Rt,rn,cn,Je,sn,Ye,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return t})();var al=()=>["../"];function ol(t,m){if(t&1){let e=D();i(0,"button",9),b("click",function(){S(e);let o=h(2);return M(o.payCharge())}),C(1,"fa-icon",10),r(2," Pay "),a()}}function rl(t,m){if(t&1){let e=D();i(0,"button",11),b("click",function(){S(e);let o=h(2);return M(o.waiveCharge())}),C(1,"fa-icon",12),r(2," Waive "),a()}}function cl(t,m){if(t&1){let e=D();i(0,"button",14),b("click",function(){S(e);let o=h(3);return M(o.inactivateCharge())}),C(1,"fa-icon",15),r(2," Inactivate "),a()}}function sl(t,m){t&1&&(i(0,"span"),A(1,cl,3,0,"button",13),a()),t&2&&(n(),d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function ll(t,m){if(t&1&&(i(0,"div",0),A(1,ol,3,0,"button",7)(2,rl,3,0,"button",8),v(3,sl,2,1,"span"),a()),t&2){let e=h();n(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),n(),_(e.isRecurringCharge()?3:-1)}}function ml(t,m){if(t&1){let e=D();i(0,"button",11),b("click",function(){S(e);let o=h(2);return M(o.editCharge())}),C(1,"fa-icon",16),r(2," Edit "),a()}}function pl(t,m){if(t&1){let e=D();i(0,"button",14),b("click",function(){S(e);let o=h(2);return M(o.deleteCharge())}),C(1,"fa-icon",15),r(2," Delete "),a()}}function dl(t,m){t&1&&(i(0,"div",0),A(1,ml,3,0,"button",8)(2,pl,3,0,"button",13),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}var Ln=(()=>{class t{constructor(){this.savingsService=g(I),this.route=g(E),this.dateUtils=g(j),this.router=g(z),this.dialog=g(yt),this.settingsService=g(U),this.route.data.subscribe(e=>{this.chargeData=e.savingsAccountCharge}),this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData})}payCharge(){let e=[new pe({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new Ne({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],s={title:"Pay Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(se,{data:s}).afterClosed().subscribe(u=>{if(u.data){let x=this.settingsService.language.code,B=this.settingsService.dateFormat,Yt=Q(G({},u.data.value),{dueDate:this.dateUtils.formatDate(u.data.value.dueDate,B),dateFormat:B,locale:x});this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"pay",Yt,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(Le,{data:{id:this.chargeData.id}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}inactivateCharge(){this.dialog.open(Ge,{data:{id:this.chargeData.id}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"inactivate",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){let e=[new pe({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0})],s={title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(se,{data:s}).afterClosed().subscribe(u=>{if(u.data){let x=this.settingsService.language.code,B=this.settingsService.dateFormat,Yt=Q(G({},u.data.value),{dateFormat:B,locale:x});this.savingsService.editSavingsAccountCharge(this.chargeData.accountId,Yt,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(ve,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(s=>{s.delete&&this.savingsService.deleteSavingsAccountCharge(this.chargeData.accountId,this.chargeData.id).subscribe(()=>{this.reload()})})}isRecurringCharge(){let e=this.chargeData.chargeTimeType.value;return e==="Monthly Fee"||e==="Annual Fee"||e==="Weekly Fee"}reload(){let e=this.router.url.replace(`/${this.chargeData.id}`,""),s=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(s,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-view-charge"]],decls:68,vars:66,consts:[[1,"layout-row","align-end","gap-2percent","layout-xs-column","container","m-b-20"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["icon","edit",1,"m-r-10"]],template:function(s,o){s&1&&(v(0,ll,4,3,"div",0),v(1,dl,3,2,"div",0),i(2,"div",1)(3,"mat-card")(4,"mat-card-content")(5,"div",2)(6,"div",3),r(7),c(8,"translate"),a(),i(9,"div",4),r(10),a(),i(11,"div",3),r(12),c(13,"translate"),a(),i(14,"div",4),r(15),c(16,"translateKey"),a(),i(17,"div",3),r(18),c(19,"translate"),a(),i(20,"div",4),r(21),a(),i(22,"div",3),r(23),c(24,"translate"),a(),i(25,"div",4),r(26),c(27,"translateKey"),a(),i(28,"div",3),r(29),c(30,"translate"),a(),i(31,"div",4),r(32),c(33,"dateFormat"),a(),i(34,"div",3),r(35),c(36,"translate"),a(),i(37,"div",4),r(38),c(39,"translateKey"),a(),i(40,"div",3),r(41),c(42,"translate"),a(),i(43,"div",4),r(44),c(45,"formatNumber"),a(),i(46,"div",3),r(47),c(48,"translate"),a(),i(49,"div",4),r(50),c(51,"formatNumber"),a(),i(52,"div",3),r(53),c(54,"translate"),a(),i(55,"div",4),r(56),c(57,"formatNumber"),a(),i(58,"div",3),r(59),c(60,"translate"),a(),i(61,"div",4),r(62),c(63,"formatNumber"),a()(),i(64,"div",5)(65,"button",6),r(66),c(67,"translate"),a()()()()()),s&2&&(_(o.savingsAccountData.status.value==="Active"&&o.chargeData.amountOutstanding!==0?0:-1),n(),_(o.savingsAccountData.status.value==="Submitted and pending approval"?1:-1),n(6),f(" ",l(8,24,"labels.inputs.Name")," "),n(3),f(" ",o.chargeData.name," "),n(2),f(" ",l(13,26,"labels.inputs.Charge Type")," "),n(3),f(" ",o.chargeData.penalty?"Penalty":Mt(16,28,"Fee","catalogs")," "),n(3),f(" ",l(19,31,"labels.inputs.Currency")," "),n(3),f(" ",o.chargeData.currency.displayLabel," "),n(2),f(" ",l(24,33,"labels.inputs.Payment due at")," "),n(3),f(" ",Mt(27,35,o.chargeData.chargeTimeType.value,"catalogs")," "),n(3),f(" ",l(30,38,"labels.inputs.Payment due as of")," "),n(3),f(" ",l(33,40,o.chargeData.dueDate)," "),n(3),f(" ",l(36,42,"labels.inputs.Calculation Type")," "),n(3),f(" ",Mt(39,44,o.chargeData.chargeCalculationType.value,"catalogs")," "),n(3),f(" ",l(42,47,"labels.inputs.Due")," "),n(3),f(" ",l(45,49,o.chargeData.amount)," "),n(3),f(" ",l(48,51,"labels.inputs.Paid")," "),n(3),f(" ",l(51,53,o.chargeData.amountPaid)," "),n(3),f(" ",l(54,55,"labels.inputs.Waived")," "),n(3),f(" ",l(57,57,o.chargeData.amountWaived)," "),n(3),f(" ",l(60,59,"labels.inputs.Outstanding")," "),n(3),f(" ",l(63,61,o.chargeData.amountOutstanding)," "),n(3),d("routerLink",k(65,al)),n(),f(" ",l(67,63,"labels.buttons.Back")," "))},dependencies:[P,O,q,J,ct,F,Rt,St,Bt,y,Nt,me],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return t})();var ul=()=>["../../"],Gn=(()=>{class t{constructor(){this.sanitizer=g(Ke),this.route=g(E),this.route.data.subscribe(e=>{this.transactionRecieptData=e.savingsTransactionReciept})}ngOnInit(){let e=this.transactionRecieptData.headers.get("Content-Type"),s=new Blob([this.transactionRecieptData.body],{type:e}),o=URL.createObjectURL(s);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-view-reciept"]],decls:6,vars:3,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(s,o){s&1&&(i(0,"mat-card",0)(1,"div",1)(2,"button",2),C(3,"fa-icon",3),r(4,"Back "),a()(),C(5,"iframe",4),a()),s&2&&(n(2),d("routerLink",k(2,ul)),n(3),d("src",o.pentahoUrl,$e))},dependencies:[P,O,q,J,F,St],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]})}}return t})();var gl=()=>["../"];function fl(t,m){if(t&1&&C(0,"iframe",12),t&2){let e=h();d("src",e.pentahoUrl,$e)}}var Un=(()=>{class t{constructor(){this.sanitizer=g(Ke),this.reportsService=g(dn),this.formBuilder=g(rt),this.dateUtils=g(j),this.route=g(E),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(e=>{this.savingsAccountId=e.savingsAccountData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",H.required],toDate:["",H.required]})}generate(){let e={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,this.settingsService.dateFormat),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,this.settingsService.dateFormat),R_savingsAccountId:this.savingsAccountId};this.reportsService.getPentahoRunReportData("Client Saving Transactions",e,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(s=>{let o=s.headers.get("Content-Type"),u=new Blob([s.body],{type:o}),x=URL.createObjectURL(u);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(x),this.hideOutput=!1})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-export-transactions"]],decls:41,vars:43,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"m-t-20","layout-column",3,"ngSubmit","formGroup"],[1,"layout-row","layout-align-center","gap-3percent"],[1,"flex-30",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"generate-button","layout-row","layout-xs-column","layout-align-center","gap-5percent"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(s,o){if(s&1){let u=D();i(0,"form",2),b("ngSubmit",function(){return S(u),M(o.generate())}),i(1,"div",3)(2,"mat-form-field",4),b("click",function(){S(u);let B=w(9);return M(B.open())}),i(3,"mat-label"),r(4),c(5,"translate"),a(),C(6,"input",5)(7,"mat-datepicker-toggle",6)(8,"mat-datepicker",null,0),i(10,"mat-error"),r(11),c(12,"translate"),c(13,"translate"),i(14,"strong"),r(15),c(16,"translate"),a()()(),i(17,"mat-form-field",4),b("click",function(){S(u);let B=w(24);return M(B.open())}),i(18,"mat-label"),r(19),c(20,"translate"),a(),C(21,"input",7)(22,"mat-datepicker-toggle",6)(23,"mat-datepicker",null,1),i(25,"mat-error"),r(26),c(27,"translate"),c(28,"translate"),i(29,"strong"),r(30),c(31,"translate"),a()()()(),i(32,"div",8)(33,"button",9),r(34),c(35,"translate"),a(),i(36,"button",10),C(37,"fa-icon",11),r(38),c(39,"translate"),a()()(),v(40,fl,1,1,"iframe",12)}if(s&2){let u=w(9),x=w(24);d("formGroup",o.transactionsReportForm),n(4),p(l(5,22,"labels.inputs.From Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(4),V(" ",l(12,24,"labels.inputs.From Date")," ",l(13,26,"labels.commons.is")," "),n(4),p(l(16,28,"labels.commons.required")),n(4),p(l(20,30,"labels.inputs.To Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",x),n(),d("for",x),n(4),V(" ",l(27,32,"labels.inputs.To Date")," ",l(28,34,"labels.commons.is")," "),n(4),p(l(31,36,"labels.commons.required")),n(3),d("routerLink",k(42,gl)),n(),p(l(35,38,"labels.buttons.Cancel")),n(2),d("disabled",!o.transactionsReportForm.valid),n(2),f("",l(39,40,"labels.buttons.Generate Report")," \xA0 "),n(2),_(o.hideOutput?-1:40)}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,Z,X,mt,vt,st,ht,xt,_t,F,St,y],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]})}}return t})();var Cl=()=>["../"];function vl(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function _l(t,m){if(t&1&&(i(0,"mat-option",9),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function hl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",17),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function xl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",18),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function bl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",19),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function Sl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",20),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function Ml(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}var qn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(e=>{this.transactionTemplateData=e.savingsAccountTransactionTemplate,e.savingsAccountTransactionTemplate.currency&&(this.currency=e.savingsAccountTransactionTemplate.currency),this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",H.required],transactionAmount:["",H.required],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new Ct("")),this.editTransactionForm.addControl("checkNumber",new Ct("")),this.editTransactionForm.addControl("routingCode",new Ct("")),this.editTransactionForm.addControl("receiptNumber",new Ct("")),this.editTransactionForm.addControl("bankNumber",new Ct(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){let e=this.editTransactionForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.editTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,"modify",x,this.transactionTemplateData.id).subscribe(B=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-edit-transaction"]],decls:40,vars:34,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content",3)(4,"mat-form-field",4),b("click",function(){S(u);let B=w(11);return M(B.open())}),i(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),v(12,vl,7,9,"mat-error"),a(),C(13,"mifosx-input-amount",7),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),i(18,"mat-select",8),ut(19,_l,2,2,"mat-option",9,dt),a()(),i(21,"div",10)(22,"span",11),b("click",function(){return S(u),M(o.addPaymentDetails())}),i(23,"mat-slide-toggle")(24,"div",12)(25,"span",13),r(26),c(27,"translate"),a()()()()(),v(28,hl,5,3,"mat-form-field"),v(29,xl,5,3,"mat-form-field"),v(30,bl,5,3,"mat-form-field"),v(31,Sl,5,3,"mat-form-field"),v(32,Ml,5,3,"mat-form-field"),i(33,"mat-card-actions",14)(34,"button",15),r(35),c(36,"translate"),a(),i(37,"button",16),r(38),c(39,"translate"),a()()()()()()}if(s&2){let u=w(11);n(2),d("formGroup",o.editTransactionForm),n(4),p(l(7,23,"labels.inputs.Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.editTransactionForm.controls.transactionDate.hasError("required")?12:-1),n(),d("currency",o.currency)("isRequired",!0)("inputFormControl",o.editTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),p(l(17,25,"labels.inputs.Payment Type")),n(3),gt(o.paymentTypeOptions),n(5),d("className",o.showPaymentDetails?"enabled":"disabled"),n(2),p(l(27,27,"labels.inputs.Show Payment Details")),n(2),_(o.editTransactionForm.controls.accountNumber?28:-1),n(),_(o.editTransactionForm.controls.checkNumber?29:-1),n(),_(o.editTransactionForm.controls.routingCode?30:-1),n(),_(o.editTransactionForm.controls.receiptNumber?31:-1),n(),_(o.editTransactionForm.controls.bankNumber?32:-1),n(2),d("routerLink",k(33,Cl)),n(),f(" ",l(36,29,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.editTransactionForm.valid),n(),f(" ",l(39,31,"labels.buttons.Submit")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Re,Ie,y],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();function Al(t,m){if(t&1){let e=D();i(0,"th",13)(1,"mat-checkbox",14),b("change",function(){S(e);let o=h(2);return M(o.toggleSelects())}),Zn("ngModelChange",function(o){S(e);let u=h(2);return Xn(u.selectAllItems,o)||(u.selectAllItems=o),M(o)}),a()()}if(t&2){let e=h(2);n(),Jn("ngModel",e.selectAllItems)}}function Tl(t,m){if(t&1){let e=D();i(0,"td",15)(1,"mat-checkbox",14),b("change",function(){S(e);let o=h(2);return M(o.toggleSelect())}),Zn("ngModelChange",function(o){let u=S(e).$implicit;return Xn(u.selected,o)||(u.selected=o),M(o)}),a()()}if(t&2){let e=m.$implicit;n(),Jn("ngModel",e.selected)}}function Pl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client ID")))}function Ol(t,m){if(t&1&&(i(0,"td",15),r(1),a()),t&2){let e=m.$implicit;n(),p(e.id)}}function Dl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client Name")))}function yl(t,m){if(t&1&&(i(0,"td",15),r(1),a()),t&2){let e=m.$implicit;n(),p(e.displayName)}}function Il(t,m){t&1&&C(0,"tr",16)}function wl(t,m){t&1&&C(0,"tr",17)}function El(t,m){if(t&1&&(i(0,"div")(1,"table",5),N(2,6),A(3,Al,2,1,"th",7)(4,Tl,2,1,"td",8),R(),N(5,9),A(6,Pl,3,3,"th",7)(7,Ol,2,1,"td",8),R(),N(8,10),A(9,Dl,3,3,"th",7)(10,yl,2,1,"td",8),R(),A(11,Il,1,0,"tr",11)(12,wl,1,0,"tr",12),a()()),t&2){let e=h();n(),d("dataSource",e.dataSource),n(10),d("matHeaderRowDef",e.displayedColumn),n(),d("matRowDefColumns",e.displayedColumn)}}var ze=(()=>{class t{constructor(){this.selectAllItems=!1,this.displayedColumn=["check","id","name"]}ngOnInit(){this.dataSource=new Jt(this.activeClientMembers)}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(let e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){let e=this.activeClientMembers.length;this.selectAllItems=e===0?!1:this.activeClientMembers.filter(s=>s.selected).length===e}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-active-client-members"]],inputs:{activeClientMembers:"activeClientMembers"},decls:10,vars:8,consts:[[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-table","",1,"flex-98",3,"dataSource"],["matColumnDef","check"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","ngModelChange","ngModel"],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(s,o){s&1&&(v(0,El,13,3,"div"),i(1,"div",0)(2,"button",1),C(3,"fa-icon",2),r(4),c(5,"translate"),a(),i(6,"button",3),r(7),c(8,"translate"),C(9,"fa-icon",4),a()()),s&2&&(_(o.activeClientMembers?0:-1),n(4),f(" ",l(5,4,"labels.buttons.Previous")," "),n(2),d("disabled",o.selectedClientMembers.selectedMembers.length===0),n(),f(" ",l(8,6,"labels.buttons.Next")," "))},dependencies:[P,O,K,F,Ce,Lt,qt,Ut,Ht,Mi,bi,Gt,zt,jt,Wt,$t,Qt,le,St,_e,y],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function Fl(t,m){t&1&&C(0,"fa-icon",15)}function kl(t,m){t&1&&C(0,"fa-icon",15)}function Bl(t,m){t&1&&C(0,"fa-icon",16)}function Nl(t,m){t&1&&C(0,"fa-icon",17)}function Rl(t,m){t&1&&C(0,"fa-icon",18)}function Vl(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Ll(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function Gl(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function Ul(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.heading.Active Client Members"))}function ql(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function Hl(t,m){if(t&1){let e=D();i(0,"mat-step",14),A(1,ql,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",19),b("submitEvent",function(){S(e);let o=h();return M(o.submit())}),a()()}if(t&2){let e=h();n(2),d("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)("activeClientMembers",e.activeClientMembers)}}var Hn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.route.data.subscribe(e=>{this.savingsAccountTemplate=e.savingsAccountTemplate,this.dataSource=e.groupsData.activeClientMembers})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get activeClientMembers(){return this.dataSource}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&this.activeClientMembers.filter(e=>e.selected).length>0}get savingsAccount(){return this.selectedMembers=this.savingsActiveClientMembers.selectedClientMembers,G(G(G({},this.savingsAccountDetailsStep.savingsAccountDetails),this.savingsAccountTermsStep.savingsAccountTerms),this.savingsAccountChargesStep.savingsAccountCharges)}setData(e,s){let o=this.settingsService.language.code,u=this.settingsService.dateFormat,B=Q(G({},this.savingsAccount),{charges:this.savingsAccount.charges.map(Yt=>({chargeId:Yt.id,amount:Yt.amount})),clientId:e.id,isGSIM:!0,isParentAccount:s,submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,u),dateFormat:u,monthDayFormat:"dd MMMM",locale:o});return B.groupId=this.savingsAccountTemplate.groupId,B}buildRequestData(){let e=[],s=this.selectedMembers.selectedMembers;for(let o=0;o<1;o++)e.push(this.setData(s[o],!0));for(let o=1;o{this.router.navigate(["../",o.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-create-gsim-account"]],viewQuery:function(s,o){if(s&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7),Pt(ze,7)),s&2){let u;Ot(u=Dt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=Dt())&&(o.savingsAccountTermsStep=u.first),Ot(u=Dt())&&(o.savingsAccountChargesStep=u.first),Ot(u=Dt())&&(o.savingsActiveClientMembers=u.first)}},decls:21,vars:11,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode","activeClientMembers"],[3,"activeClientMembers"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","activeClientMembers"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-stepper",2,0),A(3,Fl,1,0,"ng-template",3)(4,kl,1,0,"ng-template",4)(5,Bl,1,0,"ng-template",5)(6,Nl,1,0,"ng-template",6)(7,Rl,1,0,"ng-template",7),i(8,"mat-step",8),A(9,Vl,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return S(u),M(o.setTemplate(B))}),a()(),i(11,"mat-step",8),A(12,Ll,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",11),a(),i(14,"mat-step"),A(15,Gl,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",12),a(),i(17,"mat-step"),A(18,Ul,2,3,"ng-template",9),C(19,"mifosx-savings-active-client-members",13),a(),v(20,Hl,3,5,"mat-step",14),a()()}s&2&&(n(),d("linear",!1),n(7),d("stepControl",o.savingsAccountDetailsForm),n(2),d("savingsAccountTemplate",o.savingsAccountTemplate),n(),d("stepControl",o.savingsAccountTermsForm),n(2),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate),n(3),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountTemplate)("currencyCode",o.savingsAccountTermsForm.get("currencyCode"))("activeClientMembers",o.activeClientMembers),n(3),d("activeClientMembers",o.activeClientMembers),n(),_(o.savingsAccountFormValid?20:-1))},dependencies:[P,O,ke,Ee,St,Fe,we,oe,re,ce,ze,be,y],encapsulation:2})}}return t})();var zl=()=>[10,20,25],jl=t=>["../","savings-accounts",t,"actions","Deposit"],$l=t=>["../","savings-accounts",t,"actions","Withdrawal"],Wl=t=>["../../../","savings-accounts",t,"actions","Approve"],Ql=t=>["../../../","savings-accounts",t,"actions","Undo Approval"],Kl=t=>["../../",t,"actions","Activate"],Yl=t=>["../../",t,"transactions"];function Jl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),c(3,"translate"),a()),t&2&&(n(),V(" ",l(2,2,"labels.inputs.Client")," ",l(3,4,"labels.inputs.Details")," "))}function Xl(t,m){if(t&1&&(i(0,"td",14),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.displayName," ")}}function Zl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Saving Account")))}function tm(t,m){if(t&1&&(i(0,"td",14),C(1,"i",15),c(2,"statusLookup"),r(3),a()),t&2){let e=m.$implicit;n(),d("ngClass",l(2,3,e.status.code))("matTooltip",e.status.value),n(2),f(" ",e.accountNo," ")}}function em(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.menus.Products")))}function nm(t,m){if(t&1&&(i(0,"td",14),r(1),a()),t&2){let e=m.$implicit;n(),p(e.productName)}}function im(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Balance")))}function am(t,m){t&1&&C(0,"td",14)}function om(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function rm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",18),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,jl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Deposit")))}}function cm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",19),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,$l,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Withdraw")))}}function sm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",20),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,Wl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Approve")))}}function lm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",21),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,Ql,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Undo Approval")))}}function mm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",22),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,Kl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Activate")))}}function pm(t,m){if(t&1&&(i(0,"td",14),v(1,rm,3,7,"button",16),v(2,cm,3,7,"button",16),v(3,sm,3,7,"button",16),v(4,lm,3,7,"button",16),v(5,mm,3,7,"button",16),a()),t&2){let e=m.$implicit;n(),_(e.status.active?1:-1),n(),_(e.status.active?2:-1),n(),_(e.status.submittedAndPendingApproval?3:-1),n(),_(!e.status.submittedAndPendingApproval&&!e.status.active?4:-1),n(),_(!e.status.submittedAndPendingApproval&&!e.status.active?5:-1)}}function dm(t,m){t&1&&C(0,"tr",23)}function um(t,m){if(t&1&&C(0,"tr",24),t&2){let e=m.$implicit;d("routerLink",kt(1,Yl,e.id))}}var zn=(()=>{class t{constructor(){this.route=g(E),this.dialog=g(yt),this.displayedColumns=["clientDetails","savingsAccount","products","balance","Actions"],this.route.data.subscribe(e=>{this.gsimOverviewData=e.gsimData[0].childGSIMAccounts,this.savingAccountData=e.savingAccountData,this.groupsData=e.groupsData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new Jt(this.gsimOverviewData)}routeEdit(e){e.stopPropagation()}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-gsim-account"]],viewQuery:function(s,o){if(s&1&&Pt(ye,7),s&2){let u;Ot(u=Dt())&&(o.paginator=u.first)}},decls:24,vars:8,consts:[[1,"tab-container","mat-typography"],[1,"content-container"],["mat-table","",3,"dataSource"],["matColumnDef","clientDetails"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","savingsAccount"],["matColumnDef","products"],["matColumnDef","balance"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-arrow-up",3,"matTooltip"],[1,"fa","fa-arrow-down",3,"matTooltip"],[1,"fa","fa-check",3,"matTooltip"],[1,"fa","fa-undo",3,"matTooltip"],[1,"fa","fa-check-circle",3,"matTooltip"],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(s,o){s&1&&(i(0,"div",0)(1,"div",1)(2,"h2"),r(3),c(4,"translate"),a(),i(5,"table",2),N(6,3),A(7,Jl,4,6,"th",4)(8,Xl,2,1,"td",5),R(),N(9,6),A(10,Zl,3,3,"th",4)(11,tm,4,5,"td",5),R(),N(12,7),A(13,em,3,3,"th",4)(14,nm,2,1,"td",5),R(),N(15,8),A(16,im,3,3,"th",4)(17,am,1,0,"td",5),R(),N(18,9),A(19,om,3,3,"th",4)(20,pm,6,5,"td",5),R(),A(21,dm,1,0,"tr",10)(22,um,1,3,"tr",11),a(),C(23,"mat-paginator",12),a()()),s&2&&(n(3),p(l(4,5,"labels.heading.GSIM Account Overview")),n(2),d("dataSource",o.dataSource),n(16),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns),n(),d("pageSizeOptions",k(7,zl)))},dependencies:[P,de,O,q,F,Lt,qt,Ut,Ht,Gt,zt,fe,jt,Wt,$t,Qt,ye,y,ln],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{margin-top:5px}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();var ri=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.parent.paramMap.get("id"),o=e.paramMap.get("datatableName");return this.savingsService.getSavingsTransactionDatatable(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var ci=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){return this.savingsService.getSavingsTransactionDatatables()}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var jn=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("clientId")||e.paramMap.get("groupId")||e.paramMap.get("centerId"),o=!!(e.paramMap.get("groupId")||e.paramMap.get("centerId"));return this.savingsService.getSavingsAccountTemplate(s,void 0,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var si=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountAndTemplate(s,!0)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var li=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId"),o=e.parent.paramMap.get("id");return this.savingsService.getSavingsAccountTransaction(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var mi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId"),o=e.paramMap.get("id");return this.savingsService.getSavingsAccountCharge(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var pi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("name"),o=e.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("savingAccountId");switch(s){case"Assign Staff":return this.savingsService.getSavingsAccountAndTemplate(o,!0);case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(o);case"Withdrawal":case"Deposit":case"Hold Amount":return this.savingsService.getSavingsTransactionTemplateResource(o);case"Close":return fi([this.savingsService.getSavingsTransactionTemplateResource(o),this.savingsService.getSavingsAccountData(o)]);case"Apply Annual Fees":return this.savingsService.getSavingsAccountData(o);default:return}}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var di=(()=>{class t{constructor(){this.reportsService=g(dn),this.settingsService=g(U)}resolve(e){let o={"output-type":"PDF",R_transactionId:e.paramMap.get("id")};return this.reportsService.getPentahoRunReportData("Savings Transaction Receipt",o,"default",this.settingsService.language.code,this.settingsService.dateFormat)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var ui=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId"),o=e.paramMap.get("id");return this.savingsService.getSavingsAccountTransactionTemplate(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var gi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("groupId"),o=e.paramMap.get("savingAccountId");return this.savingsService.getGSIMAccountData(o,s)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var $n=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.settingsService=g(U),this.dialog=g(yt),this.entityType="savings",this.route.data.subscribe(e=>{this.setSavingsDocumentsData(e.savingsDocuments)}),this.entityId=this.route.parent.snapshot.paramMap.get("savingAccountId")}setSavingsDocumentsData(e){e.forEach(s=>{s.docUrl=this.settingsService.serverUrl+"/savings/"+s.parentEntityId+"/documents/"+s.id+"/attachment?tenantIdentifier="+Xe.fineractPlatformTenantId,s.fileName&&(s.fileName.toLowerCase().indexOf(".jpg")!==-1||s.fileName.toLowerCase().indexOf(".jpeg")!==-1||s.fileName.toLowerCase().indexOf(".png")!==-1)&&(s.fileIsImage=!0),s.type&&s.type.toLowerCase().indexOf("image")!==-1&&(s.fileIsImage=!0)}),this.entityDocuments=e}uploadDocument(e){return this.savingsService.loadSavingsDocument(this.entityId,e)}deleteDocument(e){this.savingsService.deleteSavingsDocument(this.entityId,e).subscribe(s=>{})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-documents-tab"]],decls:1,vars:5,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDelete"]],template:function(s,o){s&1&&C(0,"mifosx-entity-documents-tab",0),s&2&&d("entityType",o.entityType)("entityId",o.entityId)("entityDocuments",o.entityDocuments)("callbackUpload",o.uploadDocument)("callbackDelete",o.deleteDocument)},dependencies:[P,O,ki],encapsulation:2})}}return t})();var Wn=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.authenticationService=g(xi);let e=this.authenticationService.getCredentials();this.username=e.username,this.entityId=this.route.parent.snapshot.params.savingAccountId,this.route.data.subscribe(s=>{this.entityNotes=s.savingAccountNotes})}addNote(e){this.savingsService.createSavingsNote(this.entityId,e).subscribe(s=>{this.entityNotes.push({id:s.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,s,o){this.savingsService.editSavingsNote(this.entityId,e,s).subscribe(()=>{this.entityNotes[o].note=s.note})}deleteNote(e,s){this.savingsService.deleteSavingsNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(s,1)})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(s,o){s&1&&C(0,"mifosx-entity-notes-tab",0),s&2&&d("entityId",o.entityId)("entityNotes",o.entityNotes)("callbackAdd",o.addNote)("callbackEdit",o.editNote)("callbackDelete",o.deleteNote)},dependencies:[P,O,Fi],encapsulation:2})}}return t})();var Hi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsNotes(s)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsDocuments(s)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gm=()=>({confirm:!0}),Qn=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-release-amount-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,5,"labels.heading.Release Amount")),n(4),p(l(6,7,"labels.text.Are you sure you want to release this amount")),n(4),p(l(10,9,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(13,gm)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var fm=()=>["../../"];function Cm(t,m){t&1&&(i(0,"button",10),C(1,"fa-icon",11),r(2),c(3,"translate"),a()),t&2&&(d("routerLink","edit"),n(2),f("",l(3,2,"labels.buttons.Edit")," "))}function vm(t,m){if(t&1&&(i(0,"span"),v(1,Cm,4,4,"button",10),a()),t&2){let e=h(2);n(),_(e.transactionData.transactionType.value==="Transfer"||e.transactionData.reversed==="true"||e.transactionData.transactionType.id===3||e.transactionData.transactionType.id===17?1:-1)}}function _m(t,m){t&1&&(i(0,"span"),A(1,vm,2,1,"span",9),a()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function hm(t,m){if(t&1){let e=D();i(0,"button",13),b("click",function(){S(e);let o=h(2);return M(o.releaseAmount())}),C(1,"fa-icon",14),r(2),c(3,"translate"),a()}t&2&&(n(2),f("",l(3,1,"labels.buttons.Release Amount")," "))}function xm(t,m){t&1&&(i(0,"span"),A(1,hm,4,3,"button",12),a()),t&2&&(n(),d("mifosxHasPermission","RELEASEAMOUNT_SAVINGSACCOUNT"))}function bm(t,m){if(t&1){let e=D();i(0,"button",16),b("click",function(){S(e);let o=h(2);return M(o.undoTransaction())}),C(1,"fa-icon",17),r(2),c(3,"translate"),a()}t&2&&(n(2),f("",l(3,1,"labels.buttons.Undo")," "))}function Sm(t,m){t&1&&(i(0,"span"),A(1,bm,4,3,"button",15),a()),t&2&&(n(),d("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function Mm(t,m){t&1&&(i(0,"div",4),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Note")," "))}function Am(t,m){if(t&1&&(i(0,"div",5),r(1),a()),t&2){let e=h();n(),f(" ",e.transactionData.note," ")}}function Tm(t,m){if(t&1&&C(0,"mifosx-transaction-payment-detail",6),t&2){let e=h();d("paymentDetailData",e.transactionData.paymentDetailData)}}var Kn=(()=>{class t{constructor(){this.savingsService=g(I),this.route=g(E),this.dateUtils=g(j),this.router=g(z),this.dialog=g(yt),this.settingsService=g(U),this.route.data.subscribe(e=>{this.accountId=this.route.parent.snapshot.params.savingAccountId,this.transactionData=e.savingsAccountTransaction})}allowUndo(){return this.transactionData.reversed&&this.transactionData.transactionType.amountHold?!1:!this.transactionData.reversed}releaseAmount(){this.dialog.open(Qn).afterClosed().subscribe(s=>{if(s.confirm){let o={};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"releaseAmount",o,this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})}})}undoTransaction(){this.dialog.open(Ve).afterClosed().subscribe(s=>{if(s.confirm){let o=this.settingsService.language.code,u=this.settingsService.dateFormat,x={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),u),transactionAmount:0,dateFormat:u,locale:o};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",x,this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})}})}transactionColor(){return this.transactionData.reversed?"undo":"active"}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transaction-general-tab"]],decls:44,vars:42,consts:[["align","end",1,"container","transaction-buttons","m-b-20","align-end-center","gap-2percent"],[1,"container"],[1,"layout-row-wrap","card-content"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"paymentDetailData"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(s,o){s&1&&(i(0,"div",0),v(1,_m,2,1,"span"),v(2,xm,2,1,"span"),v(3,Sm,2,1,"span"),a(),i(4,"div",1)(5,"mat-card")(6,"mat-card-content")(7,"div",2),C(8,"div",3),i(9,"div",4),r(10),c(11,"translate"),a(),i(12,"div",5),r(13),a(),i(14,"div",4),r(15),c(16,"translate"),a(),i(17,"div",5),r(18),c(19,"translateKey"),a(),i(20,"div",4),r(21),c(22,"translate"),a(),i(23,"div",5),r(24),c(25,"dateFormat"),a(),i(26,"div",4),r(27),c(28,"translate"),a(),i(29,"div",5),r(30),a(),i(31,"div",4),r(32),c(33,"translate"),a(),i(34,"div",5),r(35),c(36,"currency"),a(),v(37,Mm,3,3,"div",4),v(38,Am,2,1,"div",5),v(39,Tm,1,1,"mifosx-transaction-payment-detail",6),a(),i(40,"div",7)(41,"button",8),r(42),c(43,"translate"),a()()()()()),s&2&&(n(),_(o.transactionData.interestedPostedAsOn===!1&&(o.transactionData.transactionType.id===17||o.transactionData.transactionType.id===3)?-1:1),n(),_(!o.transactionData.reversed&&o.transactionData.transactionType.amountHold?2:-1),n(),_(o.allowUndo()?3:-1),n(5),d("ngClass",o.transactionColor()),n(2),f(" ",l(11,19,"labels.inputs.Id")," "),n(3),f(" ",o.transactionData.id," "),n(2),f(" ",l(16,21,"labels.inputs.Transaction Type")," "),n(3),f(" ",Mt(19,23,o.transactionData.transactionType.value,"catalogs")," "),n(3),f(" ",l(22,26,"labels.inputs.Transaction Date")," "),n(3),f(" ",l(25,28,o.transactionData.date)," "),n(3),f(" ",l(28,30,"labels.inputs.Currency")," "),n(3),f(" ",o.transactionData.currency.displayLabel," "),n(2),f(" ",l(33,32,"labels.inputs.Amount")," "),n(3),f(" ",tt(36,34,o.transactionData.amount,o.transactionData.currency.code,"symbol-narrow","1.2-2")," "),n(2),_(o.transactionData.note?37:-1),n(),_(o.transactionData.note?38:-1),n(),_(o.transactionData.paymentDetailData?39:-1),n(2),d("routerLink",k(41,fm)),n(),f(" ",l(43,39,"labels.buttons.Back")," "))},dependencies:[P,de,O,q,J,ct,F,Rt,St,Ri,ue,Bt,y,Nt],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();function Pm(t,m){t&1&&(i(0,"div",0),C(1,"div",2),a())}function Om(t,m){if(t&1&&(i(0,"td"),C(1,"mifosx-external-identifier",7),a()),t&2){let e=h(3);n(),d("externalId",ft(e.savingsAccountData.externalId))}}function Dm(t,m){t&1&&(i(0,"td"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function ym(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"formatNumber"),a()),t&2){let e=h(3);n(),f("",l(2,1,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function Im(t,m){t&1&&(i(0,"span"),r(1,"0 %"),a())}function wm(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),v(10,Om,2,2,"td"),v(11,Dm,3,3,"td"),a(),i(12,"tr")(13,"td"),r(14),c(15,"translate"),a(),i(16,"td"),r(17),c(18,"dateFormat"),a()(),i(19,"tr")(20,"td"),r(21),c(22,"translate"),a(),i(23,"td"),r(24),a()(),i(25,"tr")(26,"td"),r(27),c(28,"translate"),a(),i(29,"td"),r(30),a()(),i(31,"tr")(32,"td"),r(33),c(34,"translate"),a(),i(35,"td",6),v(36,ym,3,3,"span"),v(37,Im,2,0,"span"),a()()()()()),t&2){let e=h(2);n(2),p(l(3,14,"labels.heading.Savings Details")),n(6),p(l(9,16,"labels.inputs.External Id")),n(2),_(e.savingsAccountData.externalId?10:-1),n(),_(e.savingsAccountData.externalId?-1:11),n(3),p(l(15,18,"labels.inputs.Activated On")),n(3),f(" ",e.savingsAccountData.timeline.activatedOnDate?l(18,20,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"," "),n(4),p(l(22,22,"labels.inputs.Field Officer")),n(3),p(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),n(3),p(l(28,24,"labels.inputs.Currency")),n(3),V("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),n(3),p(l(34,26,"labels.inputs.Nominal Interest Rate")),n(3),_(e.savingsAccountData.nominalAnnualInterestRate?36:-1),n(),_(e.savingsAccountData.nominalAnnualInterestRate?-1:37)}}function Em(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),i(10,"td"),r(11),a()(),i(12,"tr")(13,"td"),r(14),c(15,"translate"),a(),i(16,"td",6),r(17),c(18,"currency"),a()()()()()),t&2){let e=h(2);n(2),p(l(3,5,"labels.heading.Savings Details")),n(6),p(l(9,7,"labels.inputs.Field Officer")),n(3),p(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),n(3),p(l(15,9,"labels.inputs.Balance")),n(3),f(" ",tt(18,11,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Fm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Deposits")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2")," ")}}function km(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Interest Earned")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Bm(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody"),v(6,Fm,7,9,"tr"),v(7,km,7,9,"tr"),a()()()),t&2){let e=h(2);n(2),p(l(3,3,"labels.heading.Performance History")),n(4),_(e.savingsAccountData.summary.totalDeposits?6:-1),n(),_(e.savingsAccountData.summary.totalInterestEarned>=0?7:-1)}}function Nm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Withdrawls")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Rm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withdrawals Fees")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalWithdrawalFees,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Vm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Annual Fees")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalAnnualFees,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Lm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Earned")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Gm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Posted")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalInterestPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Um(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Earned Not Posted")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function qm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest On Overdraft")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalOverdraftInterestDerived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Hm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Overdraft Interest Not Posted")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function zm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Nominal Interest Rate")),n(3),f("",l(6,4,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function jm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withdrawal Fee")),n(3),f(" ",tt(6,4,e.savingsAccountData.withdrawalFee.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function $m(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"dateFormat"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Last Active Transaction Date")),n(3),p(l(6,4,e.savingsAccountData.lastActiveTransactionDate))}}function Wm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Substatus")),n(3),p(e.savingsAccountData.subStatus.value)}}function Qm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Days to Inactive")),n(3),p(e.savingsAccountData.daysToInactive)}}function Km(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Days to Dormancy")),n(3),p(e.savingsAccountData.daysToDormancy)}}function Ym(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Days to Escheat")),n(3),p(e.savingsAccountData.daysToEscheat)}}function Jm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Annual Fee")),n(3),f(" ",tt(6,4,e.savingsAccountData.annualFee.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Xm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Overdraft Limit")),n(3),f(" ",tt(6,4,e.savingsAccountData.overdraftLimit,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Zm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),n(3),f(" ",tt(6,4,e.savingsAccountData.minOverdraftForInterestCalculation,e.currency.code,"symbol-narrow","1.2-2")," ")}}function tp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"formatNumber"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Min Balance Required for Interest Calculation")),n(3),p(l(6,4,e.savingsAccountData.minBalanceForInterestCalculation))}}function ep(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"formatNumber"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Minimum Required Balance")),n(3),p(l(6,4,e.savingsAccountData.minRequiredBalance))}}function np(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"yesNo"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Enforce Minimum Required Balance")),n(3),p(l(6,4,e.savingsAccountData.enforceMinRequiredBalance))}}function ip(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"dateFormat"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Recalculation Date")),n(3),p(l(6,4,e.savingsAccountData.summary.lastInterestCalculationDate))}}function ap(t,m){if(t&1&&(i(0,"a"),r(1),c(2,"currency"),a()),t&2){let e=h(4);n(),p(tt(2,1,e.savingsAccountData.onHoldFunds,e.currency.code,"symbol-narrow","1.2-2"))}}function op(t,m){t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),A(5,ap,3,6,"a",8),a()()),t&2&&(n(2),p(l(3,2,"labels.inputs.On Hold Funds")),n(3),d("mifosxHasPermission","READ_SAVINGSACCOUNT"))}function rp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withhold Tax Group")),n(3),p(e.savingsAccountData.taxGroup.name)}}function cp(t,m){if(t&1&&(i(0,"div",4)(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody"),v(6,Nm,7,9,"tr"),v(7,Rm,7,9,"tr"),v(8,Vm,7,9,"tr"),v(9,Lm,7,9,"tr"),v(10,Gm,7,9,"tr"),v(11,Um,7,9,"tr"),v(12,qm,7,9,"tr"),v(13,Hm,7,9,"tr"),v(14,zm,7,6,"tr"),i(15,"tr")(16,"td"),r(17),c(18,"translate"),a(),i(19,"td"),r(20),c(21,"translateKey"),a()(),i(22,"tr")(23,"td"),r(24),c(25,"translate"),a(),i(26,"td"),r(27),c(28,"translateKey"),a()(),i(29,"tr")(30,"td"),r(31),c(32,"translate"),a(),i(33,"td"),r(34),c(35,"translateKey"),a()(),i(36,"tr")(37,"td"),r(38),c(39,"translate"),a(),i(40,"td"),r(41),c(42,"translateKey"),a()(),v(43,jm,7,9,"tr"),v(44,$m,7,6,"tr"),v(45,Wm,6,4,"tr"),v(46,Qm,6,4,"tr"),v(47,Km,6,4,"tr"),v(48,Ym,6,4,"tr"),v(49,Jm,7,9,"tr"),v(50,Xm,7,9,"tr"),v(51,Zm,7,9,"tr"),v(52,tp,7,6,"tr"),v(53,ep,7,6,"tr"),v(54,np,7,6,"tr"),v(55,ip,7,6,"tr"),v(56,op,6,4,"tr"),v(57,rp,6,4,"tr"),a()()()),t&2){let e=h(2);n(2),p(l(3,33,"labels.heading.Account Summary")),n(4),_(e.savingsAccountData.summary.totalWithdrawals?6:-1),n(),_(e.savingsAccountData.summary.totalWithdrawalFees?7:-1),n(),_(e.savingsAccountData.summary.totalAnnualFees?8:-1),n(),_(e.savingsAccountData.summary.totalInterestEarned>=0?9:-1),n(),_(e.savingsAccountData.summary.totalInterestPosted?10:-1),n(),_(e.savingsAccountData.summary.interestNotPosted>=0?11:-1),n(),_(e.savingsAccountData.summary.totalOverdraftInterestDerived?12:-1),n(),_(e.savingsAccountData.summary.interestNotPosted<0?13:-1),n(),_(e.savingsAccountData.nominalAnnualInterestRate?14:-1),n(3),p(l(18,35,"labels.inputs.Interest Compounding Period")),n(3),p(Mt(21,37,e.savingsAccountData.interestCompoundingPeriodType.value,"catalogs")),n(4),p(l(25,40,"labels.inputs.Interest Posting Period")),n(3),p(Mt(28,42,e.savingsAccountData.interestPostingPeriodType.value,"catalogs")),n(4),p(l(32,45,"labels.inputs.Interest Calculated Using")),n(3),p(Mt(35,47,e.savingsAccountData.interestCalculationType.value,"catalogs")),n(4),p(l(39,50,"labels.inputs.Days in Year")),n(3),p(Mt(42,52,e.savingsAccountData.interestCalculationDaysInYearType.value,"catalogs")),n(2),_(e.savingsAccountData.withdrawalFee?43:-1),n(),_(e.savingsAccountData.lastActiveTransactionDate?44:-1),n(),_(e.savingsAccountData.subStatus.id!==0?45:-1),n(),_(e.savingsAccountData.daysToInactive?46:-1),n(),_(e.savingsAccountData.daysToDormancy?47:-1),n(),_(e.savingsAccountData.daysToEscheat?48:-1),n(),_(e.savingsAccountData.annualFee?49:-1),n(),_(e.savingsAccountData.allowOverdraft?50:-1),n(),_(e.savingsAccountData.allowOverdraft?51:-1),n(),_(e.savingsAccountData.minBalanceForInterestCalculation?52:-1),n(),_(e.savingsAccountData.minRequiredBalance?53:-1),n(),_(e.savingsAccountData.enforceMinRequiredBalance?54:-1),n(),_(e.savingsAccountData.summary.lastInterestCalculationDate?55:-1),n(),_(e.savingsAccountData.onHoldFunds?56:-1),n(),_(e.savingsAccountData.withHoldTax?57:-1)}}function sp(t,m){if(t&1&&(i(0,"td"),C(1,"mifosx-external-identifier",7),a()),t&2){let e=h(3);n(),d("externalId",ft(e.savingsAccountData.externalId))}}function lp(t,m){t&1&&(i(0,"td"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function mp(t,m){if(t&1&&(i(0,"div",4)(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),v(10,sp,2,2,"td"),v(11,lp,3,3,"td"),a(),i(12,"tr")(13,"td"),r(14),c(15,"translate"),a(),i(16,"td"),r(17),c(18,"dateFormat"),a()(),i(19,"tr")(20,"td"),r(21),c(22,"translate"),a(),i(23,"td"),r(24),a()()()()()),t&2){let e=h(2);n(2),p(l(3,9,"labels.heading.Account Summary")),n(6),p(l(9,11,"labels.inputs.External Id")),n(2),_(e.savingsAccountData.externalId?10:-1),n(),_(e.savingsAccountData.externalId?-1:11),n(3),p(l(15,13,"labels.inputs.Activated On")),n(3),f(" ",e.savingsAccountData.timeline.activatedOnDate?l(18,15,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"," "),n(4),p(l(22,17,"labels.inputs.Currency")),n(3),V("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]")}}function pp(t,m){if(t&1&&(i(0,"div",1)(1,"div",3),v(2,wm,38,28,"div")(3,Em,19,16,"div"),v(4,Bm,8,5,"div"),a(),v(5,cp,58,55,"div",4)(6,mp,25,19,"div",4),a()),t&2){let e=h();n(2),_(!e.savingsAccountData.status.rejected&&!e.savingsAccountData.status.submittedAndPendingApproval?2:3),n(2),_(!e.savingsAccountData.status.rejected&&!e.savingsAccountData.status.submittedAndPendingApproval?4:-1),n(),_(e.isActive?5:6)}}var Yn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.isLoading=!0,this.isActive=!1,this.route.parent.parent.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData,this.currency=this.savingsAccountData.currency,this.isLoading=!1;let s=this.savingsAccountData.status.value;this.isActive=s==="Active"}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-general-tab"]],decls:2,vars:2,consts:[[1,"loader"],[1,"savings-account-tables","layout-row","gap-2percent"],[1,"loading"],[1,"flex-49","layout-column","gap-4percent"],[1,"flex-49"],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],[4,"mifosxHasPermission"]],template:function(s,o){s&1&&(v(0,Pm,2,0,"div",0),v(1,pp,7,3,"div",1)),s&2&&(_(o.isLoading?0:-1),n(),_(o.isLoading?-1:1))},dependencies:[P,O,Rt,Be,ue,Bt,y,Nt,me,mn],styles:[".loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:640px}50%{left:1120px}66.7%{left:640px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:160px}16.7%{width:640px}33.3%{width:640px}50%{width:160px}66.7%{width:640px}83.3%{width:640px}to{width:160px}}.general-tab-container[_ngcontent-%COMP%]{padding:16px 20px;width:100%;box-sizing:border-box;position:relative;background-color:var(--background-color, #f8f9fa);color:var(--text-color, #333);transition:background-color .3s ease,color .3s ease}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:24px;padding:16px 0;position:relative;border-bottom:1px solid var(--border-color, #e9ecef)}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:600;margin:0 0 8px;line-height:1.2;color:var(--primary-color, #007bff);position:relative}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.95rem;margin:0;line-height:1.4;color:var(--text-secondary, #6c757d);position:relative}.general-tab-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%]{background:var(--card-background, #fff);border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;position:relative;width:100%;max-width:600px;transition:box-shadow .3s ease,background-color .3s ease}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:16px 20px;background:var(--card-header-bg, #f8f9fa);border-bottom:1px solid var(--border-color, #e9ecef);position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;line-height:1.3;color:var(--text-color, #333)}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:20px;position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--border-light, #f1f3f4);position:relative;min-height:24px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:var(--text-secondary, #6c757d);flex:0 0 auto;margin-right:16px;white-space:nowrap;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color, #333);text-align:right;flex:1 1 auto;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value.currency[_ngcontent-%COMP%]{color:var(--success-color, #28a745);font-size:1.05rem}[data-theme=dark][_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%]{--background-color: #1a1a1a;--text-color: #e9ecef;--text-secondary: #adb5bd;--primary-color: #4dabf7;--card-background: #2d3748;--card-header-bg: #374151;--border-color: #4a5568;--border-light: #2d3748;--success-color: #68d391}@media (width <= 768px){.general-tab-container[_ngcontent-%COMP%]{padding:12px 16px}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:20px;padding:12px 0}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.5rem}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:14px 16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{padding:8px 0}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-right:12px}}"]})}}return t})();var dp=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:Nn,resolve:{savingsAccountTemplate:jn}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:Cn,resolve:{savingsAccountData:qe,savingsDatatables:ai},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:Yn}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:vn},{path:"export",component:Un}]},{path:"charges",component:Fn,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:kn,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:Wn,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:Hi}},{path:"documents",component:$n,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:zi}},{path:"datatables",children:[{path:":datatableName",component:Bn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ii}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Rn,resolve:{savingsAccountAndTemplate:si}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Vn,resolve:{transactionDatatables:ci},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Kn,resolve:{savingsAccountTransaction:li}},{path:"datatables",children:[{path:":datatableName",component:_n,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:ri}}]}]},{path:"edit",component:qn,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:ui}},{path:"reciept",component:Gn,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:di}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:Ln,resolve:{savingsAccountData:qe,savingsAccountCharge:mi}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:En,resolve:{savingsAccountActionData:pi}},{path:":savingAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-WS265DLT.js").then(t=>t.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:Hn,resolve:{groupsData:qi,savingsAccountTemplate:jn}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:zn,resolve:{gsimData:gi,savingAccountData:qe,groupsData:ni}}]}]}]}],ji=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=Qe({type:t})}static{this.\u0275inj=je({providers:[qe,ai,ii,ri,ci,jn,si,li,mi,pi,di,ui,Ui,ni,gi],imports:[ti.forChild(dp),ti]})}}return t})();var $i=(()=>{class t{constructor(){}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transaction-datatable-tab"]],decls:3,vars:3,template:function(s,o){s&1&&(vi(0,"p"),r(1),c(2,"translate"),_i()),s&2&&(n(),f("",l(2,1,"labels.heading.savings-transaction-datatable-tab works"),"!"))},dependencies:[P,O,y],encapsulation:2})}}return t})();var l2=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=Qe({type:t})}static{this.\u0275inj=je({imports:[Li,Ei,Bi,ji,En,Dn,vn,Cn,Fn,kn,Bn,Nn,oe,ce,re,be,Rn,hn,xn,bn,Sn,Mn,An,Tn,un,gn,Vn,Ve,Ln,Le,Ge,Pn,On,yn,He,Gn,Un,qn,In,zn,Hn,wn,Qn,$n,Wn,_n,Kn,$i,Yn,ze]})}}return t})();export{l2 as SavingsModule}; +import{a as qe}from"./chunk-6OZIX2D7.js";import{a as dn,b as ni,c as Ui,d as qi}from"./chunk-TV7M7AUH.js";import{a as Ve}from"./chunk-WKS5MOZ4.js";import{a as ii,b as ai}from"./chunk-E6PLTH6T.js";import{a as Gi}from"./chunk-3NGD4RPL.js";import{$ as $e,$a as Xn,$d as ve,$e as yi,$f as ln,Aa as vi,Ad as Pi,Ba as _i,Bc as Xt,Bd as X,Bg as Ri,Cc as De,Cd as mt,Cf as rn,Da as N,Dc as yt,Df as cn,Ea as R,Eb as ue,Ec as Zt,Ef as sn,Fb as P,Fc as te,Fd as vt,G as At,Ga as D,Gc as ee,Gd as Z,H as je,Hc as ne,Hd as ae,Ia as b,Id as st,Ig as Vi,Ja as h,Jd as It,Jg as Re,K as g,Kg as Li,L as S,Lc as ge,Ld as wt,M,Mc as y,Na as Pt,Nd as fe,Oa as Ot,Oc as Xe,Od as _t,Pa as Dt,Pd as ht,Qa as w,Qd as xt,Qe as ye,Rc as j,Rd as Ce,Sc as U,Sd as Bt,T as Te,Td as Nt,Ua as r,Uc as xi,Ud as Rt,Uf as Be,Va as p,Wa as f,Wb as Ke,Wc as et,Wf as Ii,Xa as V,Xc as H,Xd as St,Ya as Pe,Yc as K,Zc as nt,Ze as Ie,Zf as wi,_ as Ci,_a as Jn,_d as se,_e as ei,_f as me,ab as Zn,ad as Ct,ag as mn,bb as ft,bd as bi,bf as we,bg as Ei,ca as n,cd as it,ce as Oi,cf as Ee,da as We,dd as ie,de as tn,df as Fe,eb as k,ed as Si,ef as ke,fb as kt,fd as at,ff as _e,fg as I,ge as en,gf as le,gg as Fi,hb as c,hc as E,he as nn,hf as Lt,ib as l,ic as Ye,id as ot,ie as an,if as Gt,ja as T,jb as Mt,jf as Ut,ka as Qe,kb as hi,kc as z,lb as tt,lc as q,ld as lt,lf as qt,mc as Je,mf as Ht,n as fi,na as A,nc as ti,ne as on,ng as ki,of as zt,pd as rt,pf as jt,pg as Bi,qb as de,qc as Oe,qd as Mi,qg as Ne,ra as v,rc as F,rd as O,re as Di,rf as $t,rg as pe,sa as _,sd as J,sf as Wt,ta as dt,td as Ze,ua as ut,ud as Ai,uf as Qt,ug as pn,va as gt,vd as ct,wa as d,xa as i,xd as bt,xf as Jt,ya as a,yd as Ti,za as C,zg as Ni}from"./chunk-BJA4FJSH.js";import{a as G,b as Q}from"./chunk-PHUH23IY.js";var Qi=()=>({confirm:!0}),un=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-calculate-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,5,"labels.heading.Calculate Interest")),n(4),f("",l(6,7,"labels.text.Are you sure you want to calculate interest")," ?"),n(4),p(l(10,9,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(13,Qi)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var Ki=()=>({confirm:!0}),gn=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-post-interest-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,5,"labels.heading.Post Interest")),n(4),f("",l(6,7,"labels.text.Are you sure you want to post interest")," ?"),n(4),p(l(10,9,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(13,Ki)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var Yi=()=>({confirm:!0}),He=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(De)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-toggle-withhold-tax-dialog"]],decls:17,vars:25,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","",3,"color","mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),c(3,"translate"),a(),i(4,"div",1)(5,"p"),r(6),c(7,"translate"),c(8,"translate"),c(9,"translate"),a()(),i(10,"mat-dialog-actions",2)(11,"button",3),r(12),c(13,"translate"),a(),i(14,"button",4),r(15),c(16,"translate"),a()()),s&2&&(n(),V(" ",l(2,10,o.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",l(3,12,"labels.heading.Withhold Tax"),` +`),n(5),Pe(" ",l(7,14,"labels.text.Are you sure you want to")," ",l(8,16,o.data.isEnable?"labels.heading.Enable":"labels.heading.Disable")," ",l(9,18,"labels.text.withhold tax for this account")," ? "),n(6),p(l(13,20,"labels.buttons.Cancel")),n(2),d("color",ft(o.data.isEnable?"accent":"warn"))("mat-dialog-close",k(24,Yi)),n(),f(" ",l(16,22,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var fn=class{constructor(m,e){this.setOptions(m),this.setButtons(m,e)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(m,e){switch(m){case"Active":this.buttonsArray=[],e.block?this.buttonsArray=[{name:"Unblock Account",icon:"lock-open",taskPermissionName:"UNBLOCK_SAVINGSACCOUNT"}]:(e.blockCredit?this.buttonsArray.push({name:"Unblock Deposit",icon:"lock-open",taskPermissionName:"UNBLOCKDEPOSIT_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Deposit",icon:"arrow-up",taskPermissionName:"DEPOSIT_SAVINGSACCOUNT"},{name:"Block Deposit",icon:"lock",taskPermissionName:"BLOCKDEPOSIT_SAVINGSACCOUNT"}),e.blockDebit?this.buttonsArray.push({name:"Unblock Withdrawal",icon:"lock-open",taskPermissionName:"UNBLOCKWITHDRAWAL_SAVINGSACCOUNT"}):this.buttonsArray.push({name:"Withdrawal",icon:"arrow-down",taskPermissionName:"WITHDRAWAL_SAVINGSACCOUNT"},{name:"Block Withdrawal",icon:"lock",taskPermissionName:"BLOCKWITHDRAWAL_SAVINGSACCOUNT"}),this.buttonsArray=this.buttonsArray.concat([{name:"Block Account",icon:"lock",taskPermissionName:"BLOCK_SAVINGSACCOUNT"},{name:"Hold Amount",icon:"lock",taskPermissionName:"HOLDAMOUNT_SAVINGSACCOUNT"},{name:"Calculate Interest",icon:"table",taskPermissionName:"CALCULATEINTEREST_SAVINGSACCOUNT"},{name:"Post Interest As On",icon:"arrow-right",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"}]));break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pen",taskPermissionName:"UPDATE_SAVINGSACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SAVINGSACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SAVINGSACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SAVINGSACCOUNT"},{name:"Add Charge",icon:"plus",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"}];break;default:this.buttonsArray=[]}}setOptions(m){switch(m){case"Active":this.optionArray=[{name:"Post Interest",taskPermissionName:"POSTINTEREST_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Close",taskPermissionName:"CLOSE_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SAVINGSACCOUNT"},{name:"Withdrawn by Client",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"},{name:"Add Charge",taskPermissionName:"CREATE_SAVINGSACCOUNTCHARGE"},{name:"Delete",taskPermissionName:"DELETE_SAVINGSACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(m){this.optionArray.push(m)}};var Ji=()=>["./general"],Xi=()=>["./transactions"],Zi=()=>["./charges"],ta=()=>["./documents"],ea=()=>["./notes"],na=()=>["./standing-instructions"],ia=t=>["./datatables",t];function aa(t,m){if(t&1&&(C(0,"i",18),c(1,"statusLookup")),t&2){let e=h();d("ngClass",l(1,2,e.savingsAccountData.status.code))("matTooltip",e.savingsAccountData.status.value)}}function oa(t,m){if(t&1&&(C(0,"i",18),c(1,"statusLookup")),t&2){let e=h();d("ngClass",l(1,2,e.savingsAccountData.subStatus.value))("matTooltip",e.savingsAccountData.subStatus.value)}}function ra(t,m){if(t&1&&(i(0,"span",23),C(1,"mifosx-account-number",32),a()),t&2){let e=h();n(),d("accountNo",ft(e.savingsAccountData.clientAccountNo))}}function ca(t,m){if(t&1&&(i(0,"div",24)(1,"h3"),r(2),c(3,"translate"),a(),i(4,"table",22)(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),i(10,"td",33),r(11),c(12,"currency"),a()(),i(13,"tr")(14,"td"),r(15),c(16,"translate"),a(),i(17,"td",33),r(18),c(19,"currency"),a()()()()()),t&2){let e=h();n(2),p(l(3,5,"labels.heading.Account Overview")),n(6),p(l(9,7,"labels.inputs.Current Balance")),n(3),f(" ",tt(12,9,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," "),n(4),p(l(16,14,"labels.inputs.Available Balance")),n(3),f(" ",tt(19,16,e.savingsAccountData.summary.availableBalance,e.currency.code,"symbol-narrow","1.2-2")," ")}}function sa(t,m){if(t&1){let e=D();i(0,"button",35),b("click",function(){S(e);let o=h().$implicit,u=h();return M(u.doAction(o.name))}),i(1,"mat-icon",36),C(2,"fa-icon",37),a(),i(3,"span"),r(4),c(5,"translate"),a()()}if(t&2){let e=h().$implicit;n(2),d("icon",ft(e.icon)),n(2),f(" ",l(5,3,"labels.menus."+e.name)," ")}}function la(t,m){if(t&1&&A(0,sa,6,5,"button",34),t&2){let e=m.$implicit;d("mifosxHasPermission",e.taskPermissionName)}}function ma(t,m){if(t&1){let e=D();i(0,"button",35),b("click",function(){S(e);let o=h().$implicit,u=h(2);return M(u.doAction(o.name))}),r(1),c(2,"translate"),a()}if(t&2){let e=h().$implicit;n(),f(" ",l(2,1,"labels.menus."+e.name)," ")}}function pa(t,m){if(t&1&&(i(0,"span"),A(1,ma,3,3,"button",34),a()),t&2){let e=m.$implicit;n(),d("mifosxHasPermission",e.taskPermissionName)}}function da(t,m){if(t&1&&(i(0,"button",38),r(1),c(2,"translate"),a(),i(3,"mat-menu",null,2),ut(5,pa,2,1,"span",null,dt),a()),t&2){let e=w(4),s=h();d("matMenuTriggerFor",e),n(),p(l(2,2,"labels.menus.More")),n(4),gt(s.buttonConfig.options)}}function ua(t,m){if(t&1&&(i(0,"a",39,7),r(2),c(3,"translate"),a()),t&2){let e=w(1);d("routerLink",k(5,ea))("active",e.isActive),n(2),f(" ",l(3,3,"labels.inputs.Notes")," ")}}function ga(t,m){if(t&1&&(i(0,"a",39,8),r(2),c(3,"translate"),a()),t&2){let e=w(1);d("routerLink",k(5,na))("active",e.isActive),n(2),f(" ",l(3,3,"labels.inputs.Standing Instructions")," ")}}function fa(t,m){if(t&1&&(N(0),v(1,ga,4,6,"a",39),R()),t&2){let e=h(2);n(),_(e.savingsAccountData.clientId?1:-1)}}function Ca(t,m){if(t&1&&(i(0,"a",39,9),r(2),a()),t&2){let e=w(1),s=h().$implicit;d("routerLink",kt(3,ia,s.registeredTableName))("active",e.isActive),n(2),f(" ",s.registeredTableName," ")}}function va(t,m){if(t&1&&A(0,Ca,3,5,"a",40),t&2){let e=m.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}function _a(t,m){if(t&1&&(i(0,"nav",31)(1,"a",39,3),r(3),c(4,"translate"),a(),i(5,"a",39,4),r(7),c(8,"translate"),a(),i(9,"a",39,5),r(11),c(12,"translate"),a(),i(13,"a",39,6),r(15),c(16,"translate"),a(),A(17,ua,4,6,"a",40)(18,fa,2,1,"ng-container",41),ut(19,va,1,1,"a",39,dt),a()),t&2){let e=w(2),s=w(6),o=w(10),u=w(14),x=h(),B=w(37);d("tabPanel",B),n(),d("routerLink",k(23,Ji))("active",e.isActive),n(2),f(" ",l(4,15,"labels.inputs.General")," "),n(2),d("routerLink",k(24,Xi))("active",s.isActive),n(2),f(" ",l(8,17,"labels.inputs.Transactions")," "),n(2),d("routerLink",k(25,Zi))("active",o.isActive),n(2),f(" ",l(12,19,"labels.inputs.Charges")," "),n(2),d("routerLink",k(26,ta))("active",u.isActive),n(2),f(" ",l(16,21,"labels.inputs.Documents")," "),n(2),d("mifosxHasPermission","READ_SAVINGSNOTE"),n(),d("mifosxHasPermission","READ_SAVINGSACCOUNTCHARGE"),n(),gt(x.savingsDatatables)}}var Cn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.savingsService=g(I),this.translateService=g(ge),this.dialog=g(yt),this.isActive=!1,this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData,this.currency=this.savingsAccountData.currency,this.savingsDatatables=e.savingsDatatables}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}ngOnInit(){this.setConditionalButtons()}setConditionalButtons(){let e=this.savingsAccountData.status.value;this.isActive=e==="Active";let s=this.savingsAccountData.subStatus;this.buttonConfig=new fn(e,s),this.savingsAccountData.clientId&&this.buttonConfig.addOption({name:"Transfer Funds",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.savingsAccountData.externalId&&Xe.interbankTransfers&&this.buttonConfig.addOption({name:"Interbank Transfer",taskPermissionName:"CREATE_ACCOUNTTRANSFER"}),this.savingsAccountData.fieldOfficerId?this.buttonConfig.addOption({name:"Unassign Staff",taskPermissionName:"REMOVESAVINGSOFFICER_SAVINGSACCOUNT"}):this.buttonConfig.addOption({name:"Assign Staff",taskPermissionName:"UPDATESAVINGSOFFICER_SAVINGSACCOUNT"}),this.savingsAccountData.charges&&this.savingsAccountData.charges.forEach(u=>{u.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Annual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),this.savingsAccountData.taxGroup&&(this.savingsAccountData.withHoldTax?this.buttonConfig.addOption({name:"Disable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}):this.buttonConfig.addOption({name:"Enable Withhold Tax",taskPermissionName:"UPDATEWITHHOLDTAX_SAVINGSACCOUNT"}))}reload(){let e=this.router.url,s=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(s,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}doAction(e){switch(e){case"Approve":case"Reject":case"Deposit":case"Activate":case"Close":case"Undo Approval":case"Post Interest As On":case"Assign Staff":case"Add Charge":case"Hold Amount":case"Block Account":case"Block Deposit":case"Block Withdrawal":case"Unassign Staff":case"Withdrawn by Client":case"Apply Annual Fees":this.router.navigate([`actions/${e}`],{relativeTo:this.route});break;case"Withdrawal":this.router.navigate(["actions/Withdrawal"],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSavingsAccount();break;case"Calculate Interest":this.calculateInterest();break;case"Post Interest":this.postInterest();break;case"Enable Withhold Tax":this.enableWithHoldTax();break;case"Disable Withhold Tax":this.disableWithHoldTax();break;case"Transfer Funds":let s={interbank:!1,savingsId:this.savingsAccountData.id,accountType:"fromsavings"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:s,state:{balance:this.savingsAccountData.summary.availableBalance}});break;case"Interbank Transfer":{let o={interbank:!0,savingsId:this.savingsAccountData.id,accountType:"interbank"};this.router.navigate(["transfer-funds/make-account-transfer"],{relativeTo:this.route,queryParams:o,state:{balance:this.savingsAccountData.summary.availableBalance}});break}case"Unblock Account":case"Unblock Deposit":case"Unblock Withdrawal":this.unblockSavingsAccount(e);break}}deleteSavingsAccount(){this.dialog.open(ve,{data:{deleteContext:`savings account with id: ${this.savingsAccountData.id}`}}).afterClosed().subscribe(s=>{s.delete&&this.savingsService.deleteSavingsAccount(this.savingsAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}calculateInterest(){this.dialog.open(un).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"calculateInterest",{}).subscribe(()=>{this.reload()})})}postInterest(){this.dialog.open(gn).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,"postInterest",{}).subscribe(()=>{this.reload()})})}enableWithHoldTax(){this.dialog.open(He,{data:{isEnable:!0}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!0}).subscribe(()=>{this.reload()})})}disableWithHoldTax(){this.dialog.open(He,{data:{isEnable:!1}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountUpdateCommand(this.savingsAccountData.id,"updateWithHoldTax",{withHoldTax:!1}).subscribe(()=>{this.reload()})})}unblockSavingsAccount(e){let s=this.dialog.open(Di,{data:{heading:this.translateService.instant("labels.heading.Savings Account"),dialogContext:this.translateService.instant("labels.dialogContext.Are you sure you want")+e+this.translateService.instant("this Savings Account")}}),o="unblock";e==="Unblock Deposit"&&(o="unblockCredit"),e==="Unblock Withdrawal"&&(o="unblockDebit"),s.afterClosed().subscribe(u=>{u.confirm&&this.savingsService.executeSavingsAccountCommand(this.savingsAccountData.id,o,{}).subscribe(()=>{this.reload()})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-view"]],decls:39,vars:26,consts:[["accountMenu","matMenu"],["tabPanel",""],["More","matMenu"],["general","routerLinkActive"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["savingsDocuments","routerLinkActive"],["notes","routerLinkActive"],["standingInstructions","routerLinkActive"],["datatable","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","",1,"profile-image",3,"matTooltip","src"],[1,"mat-typography","account-card-title"],[1,"layout-row","layout-lt-md-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"account-overview"],[1,"m-l-10"],[1,"flex-30"],[1,"flex-5"],["mat-icon-button","","aria-label","Loan account actions","yPosition","below",3,"matMenuTriggerFor"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],[3,"accountNo"],[1,"r-amount"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[4,"mifosxHasPermission"]],template:function(s,o){if(s&1&&(i(0,"mat-card",10)(1,"mat-card-header",11)(2,"mat-card-title-group",12)(3,"div",13)(4,"div"),C(5,"img",14),c(6,"translate"),a()(),i(7,"div",15)(8,"mat-card-title",16)(9,"div",17)(10,"h3"),v(11,aa,2,4,"i",18),v(12,oa,2,4,"i",18),i(13,"span",19),r(14),c(15,"translate"),a(),i(16,"span",19),C(17,"mifosx-long-text",20),a(),C(18,"mifosx-account-number",21),a(),i(19,"span",22),r(20),c(21,"translate"),c(22,"translate"),v(23,ra,2,2,"span",23),a()(),v(24,ca,20,21,"div",24),i(25,"div",25)(26,"button",26)(27,"mat-icon",27),C(28,"fa-icon",28),a()()()()(),i(29,"mat-menu",null,0),ut(31,la,1,1,"button",29,dt),v(33,da,7,4),a()()(),i(34,"mat-card-content",30),v(35,_a,21,27,"nav",31),i(36,"mat-tab-nav-panel",null,1),C(38,"router-outlet"),a()()()),s&2){let u=w(30);n(5),d("matTooltip",ft(l(6,18,"tooltips.Savings Account")))("src","assets/images/savings_account_placeholder.png",Ci),n(6),_(o.savingsAccountData.subStatus.block?-1:11),n(),_(o.savingsAccountData.subStatus.block?12:-1),n(2),f("",l(15,20,"labels.inputs.Savings Product")," :"),n(3),d("textValue",ft(o.savingsAccountData.savingsProductName)),n(),d("accountNo",ft(o.savingsAccountData.accountNo)),n(2),Pe(" ",l(21,22,"labels.text."+o.entityType)," ",l(22,24,"labels.inputs.name"),": ",o.savingsAccountData.clientName||o.savingsAccountData.groupName," "),n(3),_(o.savingsAccountData.clientAccountNo?23:-1),n(),_(!o.savingsAccountData.status.rejected&&!o.savingsAccountData.status.submittedAndPendingApproval?24:-1),n(2),d("matMenuTriggerFor",u),n(5),gt(o.buttonConfig.singleButtons),n(2),_(o.buttonConfig.options&&!o.savingsAccountData.subStatus.block?33:-1),n(2),_(o.isActive?35:-1)}},dependencies:[P,de,O,q,J,ct,Rt,Ti,Ai,Pi,fe,Ze,Vi,Ni,Oe,an,on,St,nn,en,rn,cn,Je,sn,Ye,ue,y,ln],styles:["mat-card-title[_ngcontent-%COMP%]{display:flex}"]})}}return t})();var ha=()=>[50,100,200],xa=()=>["export"],ba=t=>[t,"reciept"],Sa=t=>["/","journal-entry","view",t];function Ma(t,m){if(t&1){let e=D();i(0,"div",4)(1,"mat-checkbox",31),b("click",function(){S(e);let o=h();return M(o.hideReversed())}),r(2),c(3,"translate"),a(),i(4,"mat-checkbox",31),b("click",function(){S(e);let o=h();return M(o.hideAccruals())}),r(5),c(6,"translate"),a(),i(7,"button",32),r(8),c(9,"translate"),a()()}if(t&2){let e=h();n(),d("formControl",e.hideReversedParam),n(),f(" ",l(3,6,"labels.inputs.Hide Reversed")),n(2),d("formControl",e.hideAccrualsParam),n(),f(" ",l(6,8,"labels.inputs.Hide Accruals")),n(2),d("routerLink",k(12,xa)),n(),f(" ",l(9,10,"labels.buttons.Export")," ")}}function Aa(t,m){t&1&&(i(0,"th",33),r(1,"#"),a())}function Ta(t,m){if(t&1){let e=D();i(0,"td",34),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),a()}if(t&2){let e=m.index;n(),f(" ",e+1," ")}}function Pa(t,m){t&1&&(i(0,"th",33),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Id")))}function Oa(t,m){if(t&1){let e=D();i(0,"td",35),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",e.id," ")}}function Da(t,m){t&1&&(i(0,"th",36),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Transaction Date")," "))}function ya(t,m){if(t&1){let e=D();i(0,"td",37),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"dateFormat"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",l(2,2,e.date)," ")}}function Ia(t,m){t&1&&(i(0,"th",33),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.External Id")))}function wa(t,m){if(t&1&&(i(0,"td",38),C(1,"mifosx-external-identifier",39),a()),t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),d("externalId",ft(e.externalId))}}function Ea(t,m){t&1&&(i(0,"th",40),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Transaction Type")))}function Fa(t,m){if(t&1){let e=D();i(0,"td",37),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"translateKey"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",Mt(2,2,e.transactionType.value,"catalogs")," ")}}function ka(t,m){t&1&&(i(0,"th",41),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Debit")))}function Ba(t,m){if(t&1){let e=D();i(0,"td",42),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"formatNumber"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",s.isDebit(e.transactionType)?l(2,2,e.amount):"N/A"," ")}}function Na(t,m){t&1&&(i(0,"th",41),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Credit")))}function Ra(t,m){if(t&1){let e=D();i(0,"td",42),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"formatNumber"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",s.isDebit(e.transactionType)?"N/A":l(2,2,e.amount)," ")}}function Va(t,m){t&1&&(i(0,"th",41),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Balance")))}function La(t,m){if(t&1){let e=D();i(0,"td",42),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),r(1),c(2,"formatNumber"),a()}if(t&2){let e=m.$implicit,s=h();d("ngClass",s.savingsTransactionColor(e)),n(),f(" ",l(2,2,e.runningBalance)," ")}}function Ga(t,m){t&1&&(i(0,"th",40),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Ua(t,m){if(t&1){let e=D();i(0,"button",45),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return M(x.undoTransaction(u,o))}),i(1,"mat-icon"),C(2,"fa-icon",52),a(),i(3,"span"),r(4),c(5,"translate"),a()()}t&2&&(n(4),p(l(5,1,"tooltips.Undo Transaction")))}function qa(t,m){t&1&&(i(0,"span"),A(1,Ua,6,3,"button",51),a()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function Ha(t,m){if(t&1){let e=D();i(0,"td",43)(1,"button",44)(2,"mat-icon"),r(3),c(4,"translate"),a()(),i(5,"mat-menu",null,0)(7,"button",45),b("click",function(){let o=S(e).$implicit,u=h();return M(u.showTransactions(o))}),i(8,"mat-icon"),C(9,"fa-icon",46),a(),i(10,"span"),r(11),c(12,"translate"),a()(),v(13,qa,2,1,"span"),i(14,"button",47),b("click",function(o){S(e);let u=h();return M(u.routeEdit(o))}),i(15,"mat-icon"),C(16,"fa-icon",48),a(),i(17,"span"),r(18),c(19,"translate"),a()(),i(20,"button",49),b("click",function(o){S(e);let u=h();return M(u.routeEdit(o))}),i(21,"mat-icon"),C(22,"fa-icon",50),a(),i(23,"span"),r(24),c(25,"translate"),a()()()()}if(t&2){let e=m.$implicit,s=w(6);n(),d("matMenuTriggerFor",s),n(2),p(l(4,8,"labels.text.more_vert")),n(8),p(l(12,10,"labels.text.View Transaction")),n(2),_(e.reversed?-1:13),n(),d("routerLink",kt(16,ba,e.id)),n(4),p(l(19,12,"tooltips.View Receipts")),n(2),d("routerLink",kt(18,Sa,"S"+e.id)),n(4),p(l(25,14,"tooltips.View Journal Entries"))}}function za(t,m){t&1&&C(0,"tr",53)}function ja(t,m){t&1&&C(0,"tr",54)}var vn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.savingsService=g(I),this.settingsService=g(U),this.dialog=g(yt),this.dateUtils=g(j),this.transactionsData=[],this.displayedColumns=["row","id","date","externalId","transactionType","debit","credit","balance","actions"],this.accountWithTransactions=!1,this.route.parent.parent.data.subscribe(e=>{this.transactionsData=e.savingsAccountData.transactions,this.status=e.savingsAccountData.status.value}),this.accountId=this.route.parent.parent.snapshot.params.savingAccountId}ngOnInit(){this.hideAccrualsParam=new Ct(!1),this.hideReversedParam=new Ct(!1),this.setTransactions()}setTransactions(){this.dataSource=new Jt(this.transactionsData),this.accountWithTransactions=this.transactionsData&&this.transactionsData.length>0,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}isDebit(e){return e.withdrawal===!0||e.feeDeduction===!0||e.overdraftInterest===!0||e.withholdTax===!0}isAccrual(e){return e.accrual||e.code==="savingsAccountTransactionType.accrual"}checkStatus(){return this.status==="Active"||this.status==="Closed"||this.status==="Transfer in progress"||this.status==="Transfer on hold"||this.status==="Premature Closed"||this.status==="Matured"}showTransactions(e){e.transfer?this.router.navigate([`../transfer-funds/account-transfers/${e.transfer.id}`],{relativeTo:this.route}):this.router.navigate([e.id,"general"],{relativeTo:this.route})}routeEdit(e){e.stopPropagation()}hideAccruals(){this.filterTransactions(this.hideReversedParam.value,this.hideAccrualsParam.value)}hideReversed(){this.filterTransactions(this.hideReversedParam.value,this.hideAccrualsParam.value)}filterTransactions(e,s){let o=this.transactionsData;(s||e)&&(o=this.transactionsData.filter(u=>!(e&&u.reversed)&&!(s&&u.transactionType.accrual))),this.dataSource=new Jt(o),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}savingsTransactionColor(e){return e.reversed?"strike":e.transfer?"transfer":e.transactionType.accrual?"accrual":""}undoTransaction(e){this.dialog.open(Ve).afterClosed().subscribe(o=>{if(o.confirm){let u=this.settingsService.language.code,x=this.settingsService.dateFormat,B={transactionDate:this.dateUtils.parseDate(e.date),transactionAmount:0,dateFormat:x,locale:u};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",B,e.id).subscribe(()=>{this.reload()})}})}reload(){let e=this.route.parent.parent.snapshot.params.clientId,s=this.router.url;this.router.navigateByUrl(`/clients/${e}/savings-accounts`,{skipLocationChange:!0}).then(()=>this.router.navigate([s]))}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-transactions-tab"]],viewQuery:function(s,o){if(s&1&&(Pt(ye,7),Pt(ei,7)),s&2){let u;Ot(u=Dt())&&(o.paginator=u.first),Ot(u=Dt())&&(o.sort=u.first)}},decls:40,vars:12,consts:[["transactionMenu","matMenu"],[1,"container"],[1,"mat-elevation-z1","m-b-25",3,"hidden"],[1,"layout-row","align-end"],[1,"action-button","m-b-20","layout-row","gap-20px"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","row"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"click",4,"matCellDef"],["matColumnDef","id"],["mat-cell","","class","td-select",3,"ngClass","click",4,"matCellDef"],["matColumnDef","date"],["mat-header-cell","","class","center","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",3,"ngClass","click",4,"matCellDef"],["matColumnDef","externalId"],["mat-cell","",3,"ngClass",4,"matCellDef"],["matColumnDef","transactionType"],["mat-header-cell","","class","center",4,"matHeaderCellDef"],["matColumnDef","debit"],["mat-header-cell","","class","r-amount",4,"matHeaderCellDef"],["mat-cell","","class","r-amount",3,"ngClass","click",4,"matCellDef"],["matColumnDef","credit"],["matColumnDef","balance"],["matColumnDef","actions"],["mat-cell","","class","center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSize","pageSizeOptions"],[1,"alert",3,"hidden"],[1,"message"],[1,"fa","fa-exclamation-circle","alert-check"],[1,"accruals",3,"click","formControl"],["mat-raised-button","","color","primary",3,"routerLink"],["mat-header-cell","","mat-sort-header",""],["mat-cell","",3,"click"],["mat-cell","",1,"td-select",3,"click","ngClass"],["mat-header-cell","","mat-sort-header","",1,"center"],["mat-cell","",3,"click","ngClass"],["mat-cell","",3,"ngClass"],[3,"externalId"],["mat-header-cell","",1,"center"],["mat-header-cell","",1,"r-amount"],["mat-cell","",1,"r-amount",3,"click","ngClass"],["mat-cell","",1,"center"],["mat-icon-button","","aria-label","",1,"action-button",3,"matMenuTriggerFor"],["mat-menu-item","",3,"click"],["icon","eye","size","sm"],["mat-menu-item","",1,"account-action-button",3,"click","routerLink"],["icon","receipt","size","sm"],["mat-menu-item","",3,"click","routerLink"],["icon","table-cells","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["icon","undo","size","sm"],["mat-header-row",""],["mat-row","",1,"select-row"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"div",2)(2,"div",3),v(3,Ma,10,13,"div",4),a(),i(4,"table",5),N(5,6),A(6,Aa,2,0,"th",7)(7,Ta,2,1,"td",8),R(),N(8,9),A(9,Pa,3,3,"th",7)(10,Oa,2,2,"td",10),R(),N(11,11),A(12,Da,3,3,"th",12)(13,ya,3,4,"td",13),R(),N(14,14),A(15,Ia,3,3,"th",7)(16,wa,2,3,"td",15),R(),N(17,16),A(18,Ea,3,3,"th",17)(19,Fa,3,5,"td",13),R(),N(20,18),A(21,ka,3,3,"th",19)(22,Ba,3,4,"td",20),R(),N(23,21),A(24,Na,3,3,"th",19)(25,Ra,3,4,"td",20),R(),N(26,22),A(27,Va,3,3,"th",19)(28,La,3,4,"td",20),R(),N(29,23),A(30,Ga,3,3,"th",17)(31,Ha,26,20,"td",24),R(),A(32,za,1,0,"tr",25)(33,ja,1,0,"tr",26),a(),C(34,"mat-paginator",27),a(),i(35,"div",28)(36,"div",29),C(37,"i",30),r(38),c(39,"translate"),a()()()),s&2&&(n(),d("hidden",!o.accountWithTransactions),n(2),_(o.checkStatus()?3:-1),n(),d("dataSource",o.dataSource),n(28),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns),n(),d("pageSize",50)("pageSizeOptions",k(11,ha)),n(),d("hidden",o.accountWithTransactions),n(3),f(" ",l(39,9,"labels.text.No transaction was found")," "))},dependencies:[P,de,O,K,Si,q,F,Ce,Rt,Lt,ei,qt,Ut,Ht,yi,Gt,zt,Be,Oe,an,on,nn,en,St,jt,Wt,$t,Qt,ye,Bt,y,Nt,me],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 0 3px;margin:0 10%;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%] .accruals[_ngcontent-%COMP%]{padding-top:1%}.select-row[_ngcontent-%COMP%]:hover{cursor:pointer;font-weight:800}"]})}}return t})();var _n=(()=>{class t{constructor(){this.route=g(E),this.entityId=this.route.parent.parent.snapshot.paramMap.get("id"),this.route.data.subscribe(e=>{this.entityDatatable=e.transactionDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-datatable-transaction-tab"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Saving Account Transaction",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(s,o){s&1&&(i(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),a()),s&2&&(n(),d("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[P,O,pn],encapsulation:2})}}return t})();var $a=()=>["../../"];function Wa(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Approved On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var hn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSavingsAccountForm()}createApproveSavingsAccountForm(){this.approveSavingsAccountForm=this.formBuilder.group({approvedOnDate:["",H.required],note:[""]})}submit(){let e=this.approveSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.approveSavingsAccountForm.value.approvedOnDate;e.approvedOnDate instanceof Date&&(e.approvedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"approve",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-approve-savings-account"]],decls:26,vars:21,consts:[["approvedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Wa,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),c(22,"translate"),a(),i(23,"button",10),r(24),c(25,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.approveSavingsAccountForm),n(5),p(l(8,12,"labels.inputs.Approved On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.approveSavingsAccountForm.controls.approvedOnDate.hasError("required")?13:-1),n(3),p(l(17,14,"labels.inputs.Note")),n(4),d("routerLink",k(20,$a)),n(),f(" ",l(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.approveSavingsAccountForm.valid),n(),f(" ",l(25,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Qa=()=>["../../"];function Ka(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Rejected On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var xn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSavingsAccountForm()}createRejectSavingsAccountForm(){this.rejectSavingsAccountForm=this.formBuilder.group({rejectedOnDate:["",H.required],note:[""]})}submit(){let e=this.rejectSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.rejectSavingsAccountForm.value.rejectedOnDate;e.rejectedOnDate instanceof Date&&(e.rejectedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"reject",x).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-reject-savings-account"]],decls:26,vars:21,consts:[["rejectedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Ka,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),c(22,"translate"),a(),i(23,"button",10),r(24),c(25,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.rejectSavingsAccountForm),n(5),p(l(8,12,"labels.inputs.Rejected On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.rejectSavingsAccountForm.controls.rejectedOnDate.hasError("required")?13:-1),n(3),p(l(17,14,"labels.inputs.Note")),n(4),d("routerLink",k(20,Qa)),n(),f(" ",l(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.rejectSavingsAccountForm.valid),n(),f(" ",l(25,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Ya=()=>["../../transactions"];function Ja(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Activated On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var bn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSavingsAccountForm()}createActivateSavingsAccountForm(){this.activateSavingsAccountForm=this.formBuilder.group({activatedOnDate:["",H.required]})}submit(){let e=this.activateSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.activateSavingsAccountForm.value.activatedOnDate;e.activatedOnDate instanceof Date&&(e.activatedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"activate",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-activate-savings-account"]],decls:21,vars:18,consts:[["activatedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activatedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Ja,7,9,"mat-error"),a()()(),i(14,"mat-card-actions",7)(15,"button",8),r(16),c(17,"translate"),a(),i(18,"button",9),r(19),c(20,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.activateSavingsAccountForm),n(5),p(l(8,11,"labels.inputs.Activated On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.activateSavingsAccountForm.controls.activatedOnDate.hasError("required")?13:-1),n(2),d("routerLink",k(17,Ya)),n(),f(" ",l(17,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.activateSavingsAccountForm.valid),n(),f(" ",l(20,15,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Xa=()=>["../../"],Sn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.route=g(E),this.router=g(z),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.createUndoApprovalSavingsAccountForm()}createUndoApprovalSavingsAccountForm(){this.undoApprovalSavingsAccountForm=this.formBuilder.group({note:[""]})}submit(){let e=G({},this.undoApprovalSavingsAccountForm.value);this.savingsService.executeSavingsAccountCommand(this.accountId,"undoapproval",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-undo-approval-savings-account"]],decls:16,vars:13,consts:[[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"flex-fill"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(s,o){s&1&&(i(0,"div",0)(1,"mat-card")(2,"form",1),b("ngSubmit",function(){return o.submit()}),i(3,"mat-card-content")(4,"mat-form-field",2)(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"textarea",3),a()(),i(9,"mat-card-actions",4)(10,"button",5),r(11),c(12,"translate"),a(),i(13,"button",6),r(14),c(15,"translate"),a()()()()()),s&2&&(n(2),d("formGroup",o.undoApprovalSavingsAccountForm),n(4),p(l(7,6,"labels.inputs.Note")),n(4),d("routerLink",k(12,Xa)),n(),f(" ",l(12,8,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.undoApprovalSavingsAccountForm.valid),n(),f(" ",l(15,10,"labels.buttons.Confirm")," "))},dependencies:[P,O,it,et,K,nt,at,ot,q,J,ct,bt,Z,X,st,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var Za=()=>["../../"];function to(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var Mn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createPostInterestSavingsAccountForm()}createPostInterestSavingsAccountForm(){this.postInterestSavingsAccountForm=this.formBuilder.group({transactionDate:["",H.required]})}submit(){let e=this.postInterestSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.postInterestSavingsAccountForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{IsPostInterestAsOn:!0,dateFormat:o,locale:s});this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"postInterestAsOn",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-post-interest-as-on-savings-account"]],decls:20,vars:18,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){S(u);let B=w(11);return M(B.open())}),i(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,to,7,9,"mat-error"),a()(),i(13,"mat-card-actions",6)(14,"button",7),r(15),c(16,"translate"),a(),i(17,"button",8),r(18),c(19,"translate"),a()()()()()}if(s&2){let u=w(11);n(2),d("formGroup",o.postInterestSavingsAccountForm),n(4),p(l(7,11,"labels.inputs.Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.postInterestSavingsAccountForm.controls.transactionDate.hasError("required")?12:-1),n(2),d("routerLink",k(17,Za)),n(),f(" ",l(16,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.postInterestSavingsAccountForm.valid),n(),f(" ",l(19,15,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var eo=()=>["../../"];function no(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.displayName," ")}}function io(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Assignment Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var An=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.fieldOfficerData=this.savingsAccountData.fieldOfficerOptions,this.createSavingsAssignStaffForm()}createSavingsAssignStaffForm(){this.savingsAssignStaffForm=this.formBuilder.group({toSavingsOfficerId:[""],assignmentDate:["",H.required]})}submit(){let e=this.savingsAssignStaffForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.savingsAssignStaffForm.value.assignmentDate;e.assignmentDate instanceof Date&&(e.assignmentDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{fromSavingsOfficerId:"",dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"assignSavingsOfficer",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-assign-staff"]],decls:28,vars:21,consts:[["assignmentDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[1,"flex-48"],["formControlName","toSavingsOfficerId"],[3,"value"],[3,"click"],["matInput","","required","","formControlName","assignmentDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4)(6,"mat-label"),r(7),c(8,"translate"),a(),i(9,"mat-select",5),ut(10,no,2,2,"mat-option",6,dt),a()(),i(12,"mat-form-field",7),b("click",function(){S(u);let B=w(19);return M(B.open())}),i(13,"mat-label"),r(14),c(15,"translate"),a(),C(16,"input",8)(17,"mat-datepicker-toggle",9)(18,"mat-datepicker",null,0),v(20,io,7,9,"mat-error"),a()()(),i(21,"mat-card-actions",10)(22,"button",11),r(23),c(24,"translate"),a(),i(25,"button",12),r(26),c(27,"translate"),a()()()()()}if(s&2){let u=w(19);n(2),d("formGroup",o.savingsAssignStaffForm),n(5),p(l(8,12,"labels.inputs.To Savings Officer")),n(3),gt(o.fieldOfficerData),n(4),p(l(15,14,"labels.inputs.Assignment Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.savingsAssignStaffForm.controls.assignmentDate.hasError("required")?20:-1),n(2),d("routerLink",k(20,eo)),n(),f(" ",l(24,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingsAssignStaffForm.valid),n(),f(" ",l(27,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ao=()=>["../../"];function oo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Unassignment Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var Tn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsUnassignStaffForm()}createSavingsUnassignStaffForm(){this.savingsUnassignStaffForm=this.formBuilder.group({unassignedDate:["",H.required]})}submit(){let e=this.savingsUnassignStaffForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.savingsUnassignStaffForm.value.unassignedDate;e.unassignedDate instanceof Date&&(e.unassignedDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"unassignSavingsOfficer",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-unassign-staff"]],decls:20,vars:18,consts:[["unassignedDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","unassignedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){S(u);let B=w(11);return M(B.open())}),i(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,oo,7,9,"mat-error"),a()(),i(13,"mat-card-actions",6)(14,"button",7),r(15),c(16,"translate"),a(),i(17,"button",8),r(18),c(19,"translate"),a()()()()()}if(s&2){let u=w(11);n(2),d("formGroup",o.savingsUnassignStaffForm),n(4),p(l(7,11,"labels.inputs.Unassignment Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.savingsUnassignStaffForm.controls.unassignedDate.hasError("required")?12:-1),n(2),d("routerLink",k(17,ao)),n(),f(" ",l(16,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingsUnassignStaffForm.valid),n(),f(" ",l(19,15,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var ro=()=>["../../"];function co(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Withdrawn On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var Pn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createWithdrawSavingsAccountForm()}createWithdrawSavingsAccountForm(){this.withdrawSavingsAccountForm=this.formBuilder.group({withdrawnOnDate:["",H.required],note:[""]})}submit(){let e=this.withdrawSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.withdrawSavingsAccountForm.value.withdrawnOnDate;e.withdrawnOnDate instanceof Date&&(e.withdrawnOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"withdrawnByApplicant",x).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-withdraw-by-client-savings-account"]],decls:26,vars:21,consts:[["withdrawnOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","withdrawnOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,co,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"textarea",7),a()()(),i(19,"mat-card-actions",8)(20,"button",9),r(21),c(22,"translate"),a(),i(23,"button",10),r(24),c(25,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.withdrawSavingsAccountForm),n(5),p(l(8,12,"labels.inputs.Withdrawn On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.withdrawSavingsAccountForm.controls.withdrawnOnDate.hasError("required")?13:-1),n(3),p(l(17,14,"labels.inputs.Note")),n(4),d("routerLink",k(20,ro)),n(),f(" ",l(22,16,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.withdrawSavingsAccountForm.valid),n(),f(" ",l(25,18,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var so=()=>["../../transactions"];function lo(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name+" ("+e.currency.name+")"," ")}}function mo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Charge")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function po(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function uo(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.value," ")}}function go(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.value," ")}}function fo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Due for collection on")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Co(t,m){if(t&1){let e=D();i(0,"mat-form-field",13),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",14)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,0),v(8,fo,7,9,"mat-error"),a()}if(t&2){let e=w(7),s=h(2);n(2),p(l(3,6,"labels.inputs.Due for collection on")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(s.savingsChargeForm.controls.dueDate.hasError("required")?8:-1)}}function vo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Due Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function _o(t,m){if(t&1){let e=D();i(0,"mat-form-field",13),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",16)(5,"mat-datepicker-toggle",15)(6,"mat-datepicker",null,1),v(8,vo,7,9,"mat-error"),a()}if(t&2){let e=w(7),s=h(2);n(2),p(l(3,6,"labels.inputs.Due On")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(s.savingsChargeForm.controls.feeOnMonthDay.hasError("required")?8:-1)}}function ho(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",17),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Repeats Every")))}function xo(t,m){if(t&1&&(i(0,"div",4)(1,"mat-form-field")(2,"mat-label"),r(3),c(4,"translate"),a(),C(5,"input",10),v(6,po,7,9,"mat-error"),a(),i(7,"mat-form-field")(8,"mat-label"),r(9),c(10,"translate"),a(),i(11,"mat-select",11),ut(12,uo,2,2,"mat-option",6,dt),a()(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),i(18,"mat-select",12),ut(19,go,2,2,"mat-option",6,dt),a()(),v(21,Co,9,8,"mat-form-field"),v(22,_o,9,8,"mat-form-field"),v(23,ho,5,3,"mat-form-field"),a()),t&2){let e=h();n(3),p(l(4,7,"labels.inputs.Amount")),n(3),_(e.savingsChargeForm.controls.amount.hasError("required")?6:-1),n(3),p(l(10,9,"labels.inputs.Charge Calculation")),n(3),gt(e.chargeDetails.chargeCalculationTypeOptions),n(4),p(l(17,11,"labels.inputs.Charge time type")),n(3),gt(e.chargeDetails.chargeTimeTypeOptions),n(2),_(e.savingsChargeForm.contains("dueDate")?21:-1),n(),_(e.savingsChargeForm.contains("feeOnMonthDay")?22:-1),n(),_(e.savingsChargeForm.contains("feeInterval")?23:-1)}}var On=(()=>{class t{constructor(){this.formBuilder=g(rt),this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.route.data.subscribe(e=>{this.savingsChargeOptions=e.savingsAccountActionData.chargeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingsChargeForm(),this.buildDependencies()}buildDependencies(){this.savingsChargeForm.controls.chargeId.valueChanges.subscribe(e=>{this.savingsService.getChargeTemplate(e).subscribe(s=>{this.chargeDetails=s;let o=s.chargeTimeType.id;(s.chargeTimeType.value==="Withdrawal Fee"||s.chargeTimeType.value==="Saving No Activity Fee")&&(this.chargeDetails.dueDateNotRequired=!0),(s.chargeTimeType.value==="Annual Fee"||s.chargeTimeType.value==="Monthly Fee")&&(this.chargeDetails.chargeTimeTypeAnnualOrMonth=!0),!this.chargeDetails.dueDateNotRequired&&!this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("dueDate",new Ct("",H.required)):this.savingsChargeForm.removeControl("dueDate"),!this.chargeDetails.dueDateNotRequired&&this.chargeDetails.chargeTimeTypeAnnualOrMonth?this.savingsChargeForm.addControl("feeOnMonthDay",new Ct("",H.required)):this.savingsChargeForm.removeControl("feeOnMonthDay"),o.value==="Monthly Fee"?this.savingsChargeForm.addControl("feeInterval",new Ct(s.feeInterval,H.required)):this.savingsChargeForm.removeControl("feeInterval"),this.savingsChargeForm.patchValue({amount:s.amount,chargeCalculationType:s.chargeCalculationType.id,chargeTimeType:s.chargeTimeType.id})})})}createSavingsChargeForm(){this.savingsChargeForm=this.formBuilder.group({chargeId:["",H.required],amount:["",H.required],chargeCalculationType:[{value:"",disabled:!0}],chargeTimeType:[{value:"",disabled:!0}]})}submit(){let e=this.savingsChargeForm.value;if(e.locale=this.settingsService.language.code,e.feeInterval||(e.feeInterval=this.chargeDetails.feeInterval),this.chargeDetails.dueDateNotRequired!==!0)if(this.chargeDetails.chargeTimeTypeAnnualOrMonth===!0){let s="MMMM-dd";if(e.monthDayFormat=s,e.feeOnMonthDay){let o=this.savingsChargeForm.value.feeOnMonthDay;e.feeOnMonthDay=this.dateUtils.formatDate(o,s)}}else{let s=this.settingsService.dateFormat;if(e.dateFormat=s,e.dueDate){let o=this.savingsChargeForm.value.dueDate;e.dueDate=this.dateUtils.formatDate(o,s)}}this.savingsService.createSavingsCharge(this.savingAccountId,"charges",e).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-add-charge-savings-account"]],decls:21,vars:15,consts:[["dueDatePicker",""],["feeOnMonthDayPicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],["required","","formControlName","chargeId"],[3,"value"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","chargeCalculationType"],["formControlName","chargeTimeType"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","feeOnMonthDay",3,"min","max","matDatepicker"],["matInput","","formControlName","feeInterval"]],template:function(s,o){s&1&&(i(0,"div",2)(1,"mat-card")(2,"form",3),b("ngSubmit",function(){return o.submit()}),i(3,"mat-card-content")(4,"div",4)(5,"mat-form-field")(6,"mat-label"),r(7),c(8,"translate"),a(),i(9,"mat-select",5),ut(10,lo,2,2,"mat-option",6,dt),a(),v(12,mo,7,9,"mat-error"),a(),v(13,xo,24,13,"div",4),a(),i(14,"mat-card-actions",7)(15,"button",8),r(16),c(17,"translate"),a(),i(18,"button",9),r(19),c(20,"translate"),a()()()()()()),s&2&&(n(2),d("formGroup",o.savingsChargeForm),n(5),p(l(8,8,"labels.inputs.Charge")),n(3),gt(o.savingsChargeOptions),n(2),_(o.savingsChargeForm.controls.chargeId.hasError("required")?12:-1),n(),_(o.chargeDetails?13:-1),n(2),d("routerLink",k(14,so)),n(),f(" ",l(17,10,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingsChargeForm.valid),n(),f(" ",l(20,12,"labels.buttons.Submit")," "))},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();var bo=()=>["../../transactions"];function So(t,m){t&1&&(i(0,"h2",2),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.heading.Withdraw Money From Saving Account")," "))}function Mo(t,m){t&1&&(i(0,"h2",2),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.heading.Deposit Money To Saving Account")," "))}function Ao(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function To(t,m){if(t&1&&(i(0,"mat-option",10),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function Po(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",19),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function Oo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",20),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function Do(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function yo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",22),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function Io(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",23),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}var Dn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.transactionType={deposit:!1,withdrawal:!1},this.currency=null,this.route.data.subscribe(e=>{this.paymentTypeOptions=e.savingsAccountActionData.paymentTypeOptions,e.savingsAccountActionData.currency&&(this.currency=e.savingsAccountActionData.currency)}),this.transactionCommand=this.route.snapshot.params.name.toLowerCase(),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createSavingAccountTransactionForm()}createSavingAccountTransactionForm(){this.savingAccountTransactionForm=this.formBuilder.group({transactionDate:[this.settingsService.businessDate,H.required],transactionAmount:[0,H.required],paymentTypeId:[""],note:[""]})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.savingAccountTransactionForm.addControl("accountNumber",new Ct("")),this.savingAccountTransactionForm.addControl("checkNumber",new Ct("")),this.savingAccountTransactionForm.addControl("routingCode",new Ct("")),this.savingAccountTransactionForm.addControl("receiptNumber",new Ct("")),this.savingAccountTransactionForm.addControl("bankNumber",new Ct(""))):(this.savingAccountTransactionForm.removeControl("accountNumber"),this.savingAccountTransactionForm.removeControl("checkNumber"),this.savingAccountTransactionForm.removeControl("routingCode"),this.savingAccountTransactionForm.removeControl("receiptNumber"),this.savingAccountTransactionForm.removeControl("bankNumber"))}submit(){let e=this.savingAccountTransactionForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.savingAccountTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});x.transactionAmount=x.transactionAmount*1,this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,this.transactionCommand,x).subscribe(B=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transactions"]],decls:48,vars:39,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],["mat-title","",1,"m-l-10"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["required","","formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["formControlName","note","matInput","","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card"),v(2,So,3,3,"h2",2),v(3,Mo,3,3,"h2",2),i(4,"form",3),b("ngSubmit",function(){return S(u),M(o.submit())}),i(5,"mat-card-content")(6,"div",4)(7,"mat-form-field",5),b("click",function(){S(u);let B=w(14);return M(B.open())}),i(8,"mat-label"),r(9),c(10,"translate"),a(),C(11,"input",6)(12,"mat-datepicker-toggle",7)(13,"mat-datepicker",null,0),v(15,Ao,7,9,"mat-error"),a(),C(16,"mifosx-input-amount",8),i(17,"mat-form-field")(18,"mat-label"),r(19),c(20,"translate"),a(),i(21,"mat-select",9),ut(22,To,2,2,"mat-option",10,dt),a()(),i(24,"div",11)(25,"span",12),b("click",function(){return S(u),M(o.addPaymentDetails())}),i(26,"mat-slide-toggle")(27,"div",13)(28,"span",14),r(29),c(30,"translate"),a()()()()(),v(31,Po,5,3,"mat-form-field"),v(32,Oo,5,3,"mat-form-field"),v(33,Do,5,3,"mat-form-field"),v(34,yo,5,3,"mat-form-field"),v(35,Io,5,3,"mat-form-field"),i(36,"mat-form-field")(37,"mat-label"),r(38),c(39,"translate"),a(),C(40,"textarea",15),a(),i(41,"mat-card-actions",16)(42,"button",17),r(43),c(44,"translate"),a(),i(45,"button",18),r(46),c(47,"translate"),a()()()()()()()}if(s&2){let u=w(14);n(2),_(o.transactionType.withdrawal?2:-1),n(),_(o.transactionType.deposit?3:-1),n(),d("formGroup",o.savingAccountTransactionForm),n(5),p(l(10,26,"labels.inputs.Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.savingAccountTransactionForm.controls.transactionDate.hasError("required")?15:-1),n(),d("currency",o.currency)("isRequired",!0)("inputFormControl",o.savingAccountTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),p(l(20,28,"labels.inputs.Payment Type")),n(3),gt(o.paymentTypeOptions),n(5),d("className",o.addPaymentDetailsFlag?"enabled":"disabled"),n(2),p(l(30,30,"labels.inputs.Show Payment Details")),n(2),_(o.addPaymentDetailsFlag?31:-1),n(),_(o.addPaymentDetailsFlag?32:-1),n(),_(o.addPaymentDetailsFlag?33:-1),n(),_(o.addPaymentDetailsFlag?34:-1),n(),_(o.addPaymentDetailsFlag?35:-1),n(3),p(l(39,32,"labels.inputs.Notes")),n(4),d("routerLink",k(38,bo)),n(),f(" ",l(44,34,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.savingAccountTransactionForm.valid),n(),f(" ",l(47,36,"labels.buttons.Submit")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Re,Ie,ae,y],styles:[".expandcollapsebutton[_ngcontent-%COMP%]{margin-top:-7px}.container[_ngcontent-%COMP%]{max-width:37rem}.right-input[_ngcontent-%COMP%]{text-align:right}.right-label[_ngcontent-%COMP%]{padding-right:25px!important}"]})}}return t})();var wo=()=>["../../"];function Eo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Closed On Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Fo(t,m){t&1&&(i(0,"mat-form-field",13)(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",18),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Transaction Amount")))}function ko(t,m){if(t&1&&(i(0,"mat-option",20),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function Bo(t,m){if(t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),i(4,"mat-select",19),ut(5,ko,2,2,"mat-option",20,dt),a()()),t&2){let e=h(2);n(2),p(l(3,1,"labels.inputs.Payment Type")),n(3),gt(e.paymentTypeOptions)}}function No(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function Ro(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",22),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function Vo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",23),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function Lo(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",24),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function Go(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",25),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}function Uo(t,m){if(t&1){let e=D();i(0,"div",3),v(1,Fo,5,3,"mat-form-field",13),v(2,Bo,7,3,"mat-form-field"),i(3,"div",14)(4,"span",15),b("click",function(){S(e);let o=h();return M(o.addPaymentDetails())}),i(5,"mat-slide-toggle")(6,"div",16)(7,"span",17),r(8),c(9,"translate"),a()()()()(),v(10,No,5,3,"mat-form-field"),v(11,Ro,5,3,"mat-form-field"),v(12,Vo,5,3,"mat-form-field"),v(13,Lo,5,3,"mat-form-field"),v(14,Go,5,3,"mat-form-field"),a()}if(t&2){let e=h();n(),_(e.closeSavingsAccountForm.controls.amount?1:-1),n(),_(e.closeSavingsAccountForm.controls.paymentTypeId?2:-1),n(4),d("className",e.showPaymentDetails?"enabled":"disabled"),n(2),p(l(9,9,"labels.inputs.Show Payment Details")),n(2),_(e.closeSavingsAccountForm.controls.accountNumber?10:-1),n(),_(e.closeSavingsAccountForm.controls.checkNumber?11:-1),n(),_(e.closeSavingsAccountForm.controls.routingCode?12:-1),n(),_(e.closeSavingsAccountForm.controls.receiptNumber?13:-1),n(),_(e.closeSavingsAccountForm.controls.bankNumber?14:-1)}}var yn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.addPaymentDetailsFlag=!1,this.route.data.subscribe(e=>{this.paymentTypeOptions=e.savingsAccountActionData[0].paymentTypeOptions,this.transactionAmount=e.savingsAccountActionData[1].summary.accountBalance}),this.accountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSavingsAccountForm(),this.buildDependencies()}createCloseSavingsAccountForm(){this.closeSavingsAccountForm=this.formBuilder.group({closedOnDate:["",H.required],withdrawBalance:[!1],postInterestValidationOnClosure:[!1],note:[""]})}buildDependencies(){this.closeSavingsAccountForm.get("withdrawBalance").valueChanges.subscribe(e=>{e?(this.closeSavingsAccountForm.addControl("amount",new Ct({value:this.transactionAmount,disabled:!0})),this.closeSavingsAccountForm.addControl("paymentTypeId",new Ct(""))):(this.closeSavingsAccountForm.removeControl("amount"),this.closeSavingsAccountForm.removeControl("paymentTypeId"))})}addPaymentDetails(){this.addPaymentDetailsFlag=!this.addPaymentDetailsFlag,this.addPaymentDetailsFlag?(this.closeSavingsAccountForm.addControl("accountNumber",new Ct("")),this.closeSavingsAccountForm.addControl("checkNumber",new Ct("")),this.closeSavingsAccountForm.addControl("routingCode",new Ct("")),this.closeSavingsAccountForm.addControl("receiptNumber",new Ct("")),this.closeSavingsAccountForm.addControl("bankNumber",new Ct(""))):(this.closeSavingsAccountForm.removeControl("accountNumber"),this.closeSavingsAccountForm.removeControl("checkNumber"),this.closeSavingsAccountForm.removeControl("routingCode"),this.closeSavingsAccountForm.removeControl("receiptNumber"),this.closeSavingsAccountForm.removeControl("bankNumber"))}submit(){let e=this.closeSavingsAccountForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.closeSavingsAccountForm.value.closedOnDate;e.closedOnDate instanceof Date&&(e.closedOnDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountCommand(this.accountId,"close",x).subscribe(()=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-close-savings-account"]],decls:33,vars:28,consts:[["closedOnDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedOnDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","withdrawBalance",1,"m-b-25","m-t-15"],["formControlName","postInterestValidationOnClosure"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"],[1,"m-t-20"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],["type","number","required","","matInput","","formControlName","amount"],["formControlName","paymentTypeId"],[3,"value"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Eo,7,9,"mat-error"),a(),i(14,"mat-checkbox",7),r(15),c(16,"translate"),a(),i(17,"mat-checkbox",8),r(18),c(19,"translate"),a(),v(20,Uo,15,11,"div",3),i(21,"mat-form-field")(22,"mat-label"),r(23),c(24,"translate"),a(),C(25,"textarea",9),a()()(),i(26,"mat-card-actions",10)(27,"button",11),r(28),c(29,"translate"),a(),i(30,"button",12),r(31),c(32,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.closeSavingsAccountForm),n(5),p(l(8,15,"labels.inputs.Closed On Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.closeSavingsAccountForm.controls.closedOnDate.hasError("required")?13:-1),n(2),f(" ",l(16,17,"labels.inputs.Withdraw Balance")," "),n(3),f(" ",l(19,19,"labels.inputs.Is Interest Posting required on closure date"),"? "),n(2),_(o.closeSavingsAccountForm.controls.withdrawBalance.value?20:-1),n(3),p(l(24,21,"labels.inputs.Note")),n(4),d("routerLink",k(27,wo)),n(),f(" ",l(29,23,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.closeSavingsAccountForm.valid),n(),f(" ",l(32,25,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Ce,Ie,ae,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var qo=()=>["../../"];function Ho(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Due Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function zo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Amount")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}var In=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.snapshot.params.savingAccountId,this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplyAnnualFeesForm(),this.applyCharge()}createApplyAnnualFeesForm(){this.applyAnnualFeesForm=this.formBuilder.group({dueDate:["",H.required],amount:[""]})}applyCharge(){this.savingsAccountData.charges.forEach(s=>{s.name==="Annual fee - INR"&&(this.chargeId=s.id,this.applyAnnualFeesForm.get("amount").patchValue(s.amount))})}submit(){let e=this.applyAnnualFeesForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.applyAnnualFeesForm.value.dueDate;e.dueDate instanceof Date&&(e.dueDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountChargesCommand(this.accountId,"paycharge",x,this.chargeId).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-apply-annual-fees-savings-account"]],decls:27,vars:22,consts:[["dueDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","dueDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["type","number","formControlName","amount","required","","matInput",""],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){S(u);let B=w(12);return M(B.open())}),i(6,"mat-label"),r(7),c(8,"translate"),a(),C(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,Ho,7,9,"mat-error"),a(),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),C(18,"input",7),v(19,zo,7,9,"mat-error"),a()()(),i(20,"mat-card-actions",8)(21,"button",9),r(22),c(23,"translate"),a(),i(24,"button",10),r(25),c(26,"translate"),a()()()()()}if(s&2){let u=w(12);n(2),d("formGroup",o.applyAnnualFeesForm),n(5),p(l(8,13,"labels.inputs.Annual Fees Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.applyAnnualFeesForm.controls.dueDate.hasError("required")?13:-1),n(3),p(l(17,15,"labels.inputs.Amount")),n(3),_(o.applyAnnualFeesForm.controls.amount.hasError("required")?19:-1),n(2),d("routerLink",k(21,qo)),n(),f(" ",l(23,17,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.applyAnnualFeesForm.valid),n(),f(" ",l(26,19,"labels.buttons.Confirm")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,ht,xt,_t,F,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return t})();var jo=()=>["../../transactions"];function $o(t,m){t&1&&(i(0,"mat-card-title"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.heading.Hold Amount")))}function Wo(t,m){t&1&&(i(0,"mat-card-title"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.heading.Block Savings Account")))}function Qo(t,m){if(t&1&&(i(0,"mat-option",6),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function Ko(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Reason")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Yo(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function Jo(t,m){if(t&1){let e=D();i(0,"mat-form-field",11),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),v(8,Yo,7,9,"mat-error"),a()}if(t&2){let e=w(7),s=h();n(2),p(l(3,6,"labels.inputs.Transaction Date")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(3),_(s.manageSavingsAccountForm.controls.transactionDate.hasError("required")?8:-1)}}function Xo(t,m){if(t&1&&C(0,"mifosx-input-amount",7),t&2){let e=h();d("currency",e.currency)("isRequired",!0)("inputFormControl",e.manageSavingsAccountForm.controls.transactionAmount)("inputLabel","Transaction Amount")}}var wn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.dateUtils=g(j),this.route=g(E),this.router=g(z),this.systemService=g(Oi),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.reasonOptions=[],this.transactionType={holdamount:!1,blockaccount:!1,blockdeposit:!1,blockwithdrawal:!1},this.transactionCommand=this.route.snapshot.params.name.toLowerCase().replaceAll(" ",""),this.transactionType[this.transactionCommand]=!0,this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createManageSavingsAccountForm(),(this.transactionType.holdamount||this.transactionType.blockaccount||this.transactionType.blockdeposit||this.transactionType.blockwithdrawal)&&this.getCodeValues()}getCodeValues(){let e="SavingsTransactionFreezeReasons";this.transactionType.blockaccount?e="SavingsAccountBlockReasons":this.transactionType.blockdeposit?e="CreditTransactionFreezeReasons":this.transactionType.blockwithdrawal&&(e="DebitTransactionFreezeReasons"),this.systemService.getCodes().subscribe(s=>{s.some(o=>(o.name===e&&this.systemService.getCodeValues(o.id).subscribe(u=>(this.reasonOptions=u,!0)),!1))})}createManageSavingsAccountForm(){this.transactionType.holdamount?this.manageSavingsAccountForm=this.formBuilder.group({reasonForBlock:["",H.required],transactionDate:["",H.required],transactionAmount:[0,H.required]}):this.manageSavingsAccountForm=this.formBuilder.group({reasonForBlock:["",H.required]})}submit(){let e="",s={};if(this.transactionType.holdamount){let o=this.manageSavingsAccountForm.value,u=this.settingsService.language.code,x=this.settingsService.dateFormat,B=this.manageSavingsAccountForm.value.transactionDate;o.transactionDate instanceof Date&&(o.transactionDate=this.dateUtils.formatDate(B,x)),s=Q(G({},o),{dateFormat:x,locale:u}),e="holdAmount",s.transactionAmount=s.transactionAmount*1,this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,e,s).subscribe(Yt=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}else s=G({},this.manageSavingsAccountForm.value),e="block",this.transactionType.blockdeposit?e="blockCredit":this.transactionType.blockwithdrawal&&(e="blockDebit"),this.savingsService.executeSavingsAccountCommand(this.savingAccountId,e,s).subscribe(o=>{this.router.navigate(["../../transactions"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-manage-savings-account"]],inputs:{currency:"currency"},decls:23,vars:18,consts:[["transactionDatePicker",""],[1,"container","mat-elevation-z8"],[3,"ngSubmit","formGroup"],[1,"layout-row"],[1,"flex-100"],["required","","formControlName","reasonForBlock"],[3,"value"],[1,"flex-100",3,"currency","isRequired","inputFormControl","inputLabel"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],[1,"flex-100",3,"click"],["matInput","","required","","formControlName","transactionDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"mat-card"),v(2,$o,3,3,"mat-card-title"),v(3,Wo,3,3,"mat-card-title"),i(4,"form",2),b("ngSubmit",function(){return o.submit()}),i(5,"mat-card-content",3)(6,"mat-form-field",4)(7,"mat-label"),r(8),c(9,"translate"),a(),i(10,"mat-select",5),ut(11,Qo,2,2,"mat-option",6,dt),a(),v(13,Ko,7,9,"mat-error"),a(),v(14,Jo,9,8,"mat-form-field",4),v(15,Xo,1,4,"mifosx-input-amount",7),a(),i(16,"mat-card-actions",8)(17,"button",9),r(18),c(19,"translate"),a(),i(20,"button",10),r(21),c(22,"translate"),a()()()()()),s&2&&(n(2),_(o.transactionType.holdamount?2:-1),n(),_(o.transactionType.blockaccount?3:-1),n(),d("formGroup",o.manageSavingsAccountForm),n(4),p(l(9,11,"labels.inputs.Reason")),n(3),gt(o.reasonOptions),n(2),_(o.manageSavingsAccountForm.controls.reasonForBlock.hasError("required")?13:-1),n(),_(o.transactionType.holdamount?14:-1),n(),_(o.transactionType.holdamount?15:-1),n(2),d("routerLink",k(17,jo)),n(),f(" ",l(19,13,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.manageSavingsAccountForm.valid),n(),f(" ",l(22,15,"labels.buttons.Confirm")," "))},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Ze,Re,y],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();function Zo(t,m){t&1&&C(0,"mifosx-approve-savings-account")}function tr(t,m){t&1&&C(0,"mifosx-reject-savings-account")}function er(t,m){t&1&&C(0,"mifosx-activate-savings-account")}function nr(t,m){t&1&&C(0,"mifosx-undo-approval-savings-account")}function ir(t,m){t&1&&C(0,"mifosx-post-interest-as-on-savings-account")}function ar(t,m){t&1&&C(0,"mifosx-savings-account-assign-staff")}function or(t,m){t&1&&C(0,"mifosx-savings-account-unassign-staff")}function rr(t,m){t&1&&C(0,"mifosx-withdraw-by-client-savings-account")}function cr(t,m){t&1&&C(0,"mifosx-add-charge-savings-account")}function sr(t,m){t&1&&C(0,"mifosx-savings-transactions")}function lr(t,m){t&1&&C(0,"mifosx-close-savings-account")}function mr(t,m){t&1&&C(0,"mifosx-apply-annual-fees-savings-account")}function pr(t,m){if(t&1&&C(0,"mifosx-manage-savings-account",0),t&2){let e=h();d("currency",e.currency)}}var En=(()=>{class t{constructor(){this.route=g(E),this.actions={Approve:!1,Reject:!1,Withdrawal:!1,Deposit:!1,Activate:!1,Close:!1,"Undo Approval":!1,"Post Interest As On":!1,"Assign Staff":!1,"Add Charge":!1,"Unassign Staff":!1,"Withdrawn by Client":!1,"Apply Annual Fees":!1,"Hold Amount":!1,"Block Account":!1,"Unblock Account":!1,"Block Deposit":!1,"Unblock Deposit":!1,"Block Withdrawal":!1,"Unblock Withdrawal":!1},this.route.data.subscribe(s=>{s.savingsAccountActionData&&(this.currency=s.savingsAccountActionData.currency)});let e=this.route.snapshot.params.name;e in this.actions&&(this.actions[e]=!0)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-saving-account-actions"]],decls:13,vars:13,consts:[[3,"currency"]],template:function(s,o){s&1&&(v(0,Zo,1,0,"mifosx-approve-savings-account"),v(1,tr,1,0,"mifosx-reject-savings-account"),v(2,er,1,0,"mifosx-activate-savings-account"),v(3,nr,1,0,"mifosx-undo-approval-savings-account"),v(4,ir,1,0,"mifosx-post-interest-as-on-savings-account"),v(5,ar,1,0,"mifosx-savings-account-assign-staff"),v(6,or,1,0,"mifosx-savings-account-unassign-staff"),v(7,rr,1,0,"mifosx-withdraw-by-client-savings-account"),v(8,cr,1,0,"mifosx-add-charge-savings-account"),v(9,sr,1,0,"mifosx-savings-transactions"),v(10,lr,1,0,"mifosx-close-savings-account"),v(11,mr,1,0,"mifosx-apply-annual-fees-savings-account"),v(12,pr,1,1,"mifosx-manage-savings-account",0)),s&2&&(_(o.actions.Approve?0:-1),n(),_(o.actions.Reject?1:-1),n(),_(o.actions.Activate?2:-1),n(),_(o.actions["Undo Approval"]?3:-1),n(),_(o.actions["Post Interest As On"]?4:-1),n(),_(o.actions["Assign Staff"]?5:-1),n(),_(o.actions["Unassign Staff"]?6:-1),n(),_(o.actions["Withdrawn by Client"]?7:-1),n(),_(o.actions["Add Charge"]?8:-1),n(),_(o.actions.Withdrawal||o.actions.Deposit?9:-1),n(),_(o.actions.Close?10:-1),n(),_(o.actions["Apply Annual Fees"]?11:-1),n(),_(o.actions["Hold Amount"]||o.actions["Block Account"]||o.actions["Block Deposit"]||o.actions["Block Withdrawal"]?12:-1))},dependencies:[P,O,hn,xn,bn,Sn,Mn,An,Tn,Pn,On,Dn,yn,In,wn],encapsulation:2})}}return t})();var dr=()=>({confirm:!0}),Le=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(De)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-waive-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,6,"labels.buttons.Waive Charge")),n(4),V("",l(6,8,"labels.text.Are you sure you want to waive charge with id"),": ",o.data.id," ?"),n(4),p(l(10,10,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(14,dr)),n(),f(" ",l(13,12,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var ur=()=>({confirm:!0}),Ge=(()=>{class t{constructor(){this.dialogRef=g(Xt),this.data=g(De)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-inactivate-charge-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,6,"tooltips.Inactivate Charge")),n(4),V("",l(6,8,"labels.text.Are you sure you want to inactivate charge with id"),": ",o.data.id," ?"),n(4),p(l(10,10,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(14,ur)),n(),f(" ",l(13,12,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var gr=["chargesTable"],fr=t=>[t];function Cr(t,m){if(t&1){let e=D();i(0,"div",4)(1,"button",22),b("click",function(){S(e);let o=h();return M(o.toggleCharges())}),r(2),a()()}if(t&2){let e=h();n(2),f(" ",e.showInactiveCharges?e.viewAllChargeButtons("View Active Charges"):e.viewAllChargeButtons("View Inactive Charges")," ")}}function vr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function _r(t,m){if(t&1&&(i(0,"td",24),r(1),a()),t&2){let e=m.$implicit;n(),p(e.name)}}function hr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Charge Type")))}function xr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(e.penalty?"Penalty":Mt(2,1,"Fee","catalogs"))}}function br(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Payment Due At")))}function Sr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(Mt(2,1,e.chargeTimeType.value,"catalogs"))}}function Mr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Due As Of")))}function Ar(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"dateFormat"),a()),t&2){let e=m.$implicit;n(),p(l(2,1,e.dueDate))}}function Tr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repeats On (M/d)")))}function Pr(t,m){if(t&1&&(i(0,"td",24),r(1),a()),t&2){let e=m.$implicit;n(),p(e.feeOnMonthDay?e.feeOnMonthDay.join("/"):"")}}function Or(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Calculation Type")))}function Dr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),p(Mt(2,1,e.chargeCalculationType.value,"catalogs"))}}function yr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Due")))}function Ir(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function wr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Paid")))}function Er(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amountPaid,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Fr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Waived")))}function kr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amountWaived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Br(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Outstanding")))}function Nr(t,m){if(t&1&&(i(0,"td",24),r(1),c(2,"currency"),a()),t&2){let e=m.$implicit;n(),f(" ",tt(2,1,e.amountOutstanding,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Rr(t,m){t&1&&(i(0,"th",23),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Vr(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.editCharge(u))}),C(2,"i",28),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Edit Charge")))}function Lr(t,m){if(t&1){let e=D();i(0,"button",29),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.deleteCharge(u.id))}),C(2,"i",30),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Delete Charge")))}function Gr(t,m){t&1&&(i(0,"span"),A(1,Vr,3,4,"button",25)(2,Lr,3,4,"button",26),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}function Ur(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.payCharge(u.id))}),C(2,"i",32),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Pay Charge")))}function qr(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(2).$implicit,x=h();return x.routeEdit(o),M(x.waiveCharge(u.id))}),C(2,"i",33),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Waive Charge")))}function Hr(t,m){if(t&1){let e=D();i(0,"button",27),c(1,"translate"),b("click",function(o){S(e);let u=h(3).$implicit,x=h();return x.routeEdit(o),M(x.inactivateCharge(u.id))}),C(2,"i",34),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Inactivate Charge")))}function zr(t,m){t&1&&A(0,Hr,3,4,"button",25),t&2&&d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE")}function jr(t,m){if(t&1&&(i(0,"span"),A(1,Ur,3,4,"button",25)(2,qr,3,4,"button",25),v(3,zr,1,1,"button",31),a()),t&2){let e=h().$implicit,s=h();n(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),n(),_(s.isRecurringCharge(e)?3:-1)}}function $r(t,m){if(t&1&&(i(0,"td",24),v(1,Gr,3,2,"span"),v(2,jr,4,3,"span"),a()),t&2){let e=m.$implicit,s=h();n(),_(s.savingsAccountData.status.value==="Submitted and pending approval"?1:-1),n(),_(s.savingsAccountData.status.value==="Active"&&e.amountOutstanding!==0?2:-1)}}function Wr(t,m){t&1&&C(0,"tr",35)}function Qr(t,m){if(t&1&&C(0,"tr",36),t&2){let e=m.$implicit;d("routerLink",kt(1,fr,e.id))}}var Fn=(()=>{class t{constructor(){this.savingsService=g(I),this.route=g(E),this.dateUtils=g(j),this.router=g(z),this.dialog=g(yt),this.settingsService=g(U),this.translateService=g(ge),this.showInactiveCharges=!1,this.displayedColumns=["name","feeOrPenalty","paymentDueAt","dueAsOf","repeatsOn","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData,this.chargesData=this.savingsAccountData.charges})}ngOnInit(){let e=this.chargesData?this.chargesData.filter(s=>s.isActive):[];this.dataSource=new Jt(e)}toggleCharges(){if(this.showInactiveCharges=!this.showInactiveCharges,this.showInactiveCharges){let e=this.chargesData.filter(s=>!s.isActive);this.dataSource.data=e}else{let e=this.chargesData.filter(s=>s.isActive);this.dataSource.data=e}this.chargesTableRef.renderRows()}payCharge(e){let s=[new pe({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new Ne({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],o={title:`Pay Charge ${e}`,layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=this.settingsService.language.code,Yt=this.settingsService.dateFormat,Ue=Q(G({},x.data.value),{dueDate:this.dateUtils.formatDate(x.data.value.dueDate,Yt),dateFormat:Yt,locale:B});this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"paycharge",Ue,e).subscribe(()=>{this.reload()})}})}waiveCharge(e){this.dialog.open(Le,{data:{id:e}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"waive",{},e).subscribe(()=>{this.reload()})})}inactivateCharge(e){this.dialog.open(Ge,{data:{id:e}}).afterClosed().subscribe(o=>{o.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.savingsAccountData.id,"inactivate",{},e).subscribe(()=>{this.reload()})})}editCharge(e){let s=[new pe({controlName:"amount",label:"Amount",value:e.amount||e.amountOrPercentage,type:"number",required:!0})],o={title:`Edit Charge ${e.id}`,layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=this.settingsService.language.code,Yt=this.settingsService.dateFormat,Ue=Q(G({},x.data.value),{dateFormat:Yt,locale:B});this.savingsService.editSavingsAccountCharge(this.savingsAccountData.id,Ue,e.id).subscribe(()=>{this.reload()})}})}deleteCharge(e){this.dialog.open(ve,{data:{deleteContext:`charge id:${e}`}}).afterClosed().subscribe(o=>{o.delete&&this.savingsService.deleteSavingsAccountCharge(this.savingsAccountData.id,e).subscribe(()=>{this.reload()})})}isRecurringCharge(e){return e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Weekly Fee"}routeEdit(e){e.stopPropagation()}reload(){let e=this.router.url,s=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(s,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}viewAllChargeButtons(e){return this.translateService.instant("labels.buttons."+e)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-charges-tab"]],viewQuery:function(s,o){if(s&1&&Pt(gr,7),s&2){let u;Ot(u=Dt())&&(o.chargesTableRef=u.first)}},decls:45,vars:7,consts:[["chargesTable",""],[1,"tab-container","mat-typography"],[1,"layout-row","align-start"],[1,"m-b-10"],[1,"action-button","m-b-20"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","dueAsOf"],["matColumnDef","repeatsOn"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","","class","select-row",3,"routerLink",4,"matRowDef","matRowDefColumns"],["mat-raised-button","","color","primary",3,"click"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],[1,"fa","fa-ban"],["mat-header-row",""],["mat-row","",1,"select-row",3,"routerLink"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"div",2)(2,"div",3)(3,"h3"),r(4),c(5,"translate"),a()(),v(6,Cr,3,1,"div",4),a(),i(7,"div",5)(8,"table",6,0),N(10,7),A(11,vr,3,3,"th",8)(12,_r,2,1,"td",9),R(),N(13,10),A(14,hr,3,3,"th",8)(15,xr,3,4,"td",9),R(),N(16,11),A(17,br,3,3,"th",8)(18,Sr,3,4,"td",9),R(),N(19,12),A(20,Mr,3,3,"th",8)(21,Ar,3,3,"td",9),R(),N(22,13),A(23,Tr,3,3,"th",8)(24,Pr,2,1,"td",9),R(),N(25,14),A(26,Or,3,3,"th",8)(27,Dr,3,4,"td",9),R(),N(28,15),A(29,yr,3,3,"th",8)(30,Ir,3,6,"td",9),R(),N(31,16),A(32,wr,3,3,"th",8)(33,Er,3,6,"td",9),R(),N(34,17),A(35,Fr,3,3,"th",8)(36,kr,3,6,"td",9),R(),N(37,18),A(38,Br,3,3,"th",8)(39,Nr,3,6,"td",9),R(),N(40,19),A(41,Rr,3,3,"th",8)(42,$r,3,2,"td",9),R(),A(43,Wr,1,0,"tr",20)(44,Qr,1,3,"tr",21),a()()()),s&2&&(n(4),p(l(5,5,"labels.inputs.Charges")),n(2),_(o.chargesData?6:-1),n(2),d("dataSource",o.dataSource),n(35),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns))},dependencies:[P,O,q,F,Rt,Lt,qt,Ut,Ht,Gt,zt,fe,jt,Wt,$t,Qt,ue,Bt,y,Nt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();var Kr=["instructionsTable"];function Yr(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client")))}function Jr(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V(" ",e.fromClient.displayName,"-",e.fromClient.id," ")}}function Xr(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.From Account")))}function Zr(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V(" ",e.fromAccount.accountNo," (",e.fromAccountType.value,") ")}}function tc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Beneficiary")))}function ec(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),p(e.toClient.displayName)}}function nc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.To Account")))}function ic(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V(" ",e.toAccount.accountNo," (",e.toAccountType.value,") ")}}function ac(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function oc(t,m){if(t&1&&(i(0,"td",17),r(1),a()),t&2){let e=m.$implicit;n(),V("",e.instructionType.value,"/",e.amount)}}function rc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Validity")))}function cc(t,m){if(t&1&&(i(0,"td",17),r(1),c(2,"dateFormat"),c(3,"translate"),c(4,"dateFormat"),a()),t&2){let e=m.$implicit;n(),Pe(" ",l(2,3,e.validFrom)," ",l(3,5,"labels.inputs.To")," ",l(4,7,e.validTill)," ")}}function sc(t,m){t&1&&(i(0,"th",16),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function lc(t,m){t&1&&(i(0,"button",19),c(1,"translate"),C(2,"i",20),a()),t&2&&d("matTooltip",ft(l(1,2,"tooltips.Edit Standing Instruction")))}function mc(t,m){t&1&&(i(0,"span"),A(1,lc,3,4,"button",18),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_STANDINGINSTRUCTION"))}function pc(t,m){if(t&1){let e=D();i(0,"button",22),c(1,"translate"),b("click",function(){S(e);let o=h(2).$implicit,u=h();return M(u.deleteStandingInstruction(o.id))}),C(2,"i",23),a()}t&2&&d("matTooltip",ft(l(1,2,"tooltips.Delete Standing Instruction")))}function dc(t,m){t&1&&(i(0,"span"),A(1,pc,3,4,"button",21),a()),t&2&&(n(),d("mifosxHasPermission","DELETE_STANDINGINSTRUCTION"))}function uc(t,m){t&1&&(i(0,"button",19),c(1,"translate"),C(2,"i",24),a()),t&2&&d("matTooltip",ft(l(1,2,"tooltips.View Standing Instruction")))}function gc(t,m){if(t&1&&(i(0,"td",17),v(1,mc,2,1,"span"),v(2,dc,2,1,"span"),A(3,uc,3,4,"button",18),a()),t&2){let e=m.$implicit;n(),_(e.status.value!=="Deleted"?1:-1),n(),_(e.status.value!=="Deleted"?2:-1),n(),d("mifosxHasPermission","READ_STANDINGINSTRUCTION")}}function fc(t,m){t&1&&C(0,"tr",25)}function Cc(t,m){t&1&&C(0,"tr",26)}var kn=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.dialog=g(yt),this.accountTransfersService=g(Gi),this.settingsService=g(U),this.dataSource=new Jt,this.displayedColumns=["client","fromAccount","beneficiary","toAccount","amount","validity","actions"],this.route.parent.data.subscribe(e=>{this.savingsData=e.savingsAccountData})}ngOnInit(){this.getStandingInstructions()}getStandingInstructions(){let e=this.savingsData.clientId,s=this.savingsData.clientName,o=this.savingsData.id,u=this.settingsService.language.code,x=this.settingsService.dateFormat;this.savingsService.getStandingInstructions(e,s,o,u,x).subscribe(B=>{this.instructionsData=B.pageItems,this.dataSource.data=this.instructionsData,this.instructionTableRef.renderRows()})}deleteStandingInstruction(e){this.dialog.open(ve,{data:{deleteContext:`standing instruction id: ${e}`}}).afterClosed().subscribe(o=>{o.delete&&this.accountTransfersService.deleteStandingInstrucions(e).subscribe(()=>{})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-standing-instructions-tab"]],viewQuery:function(s,o){if(s&1&&Pt(Kr,7),s&2){let u;Ot(u=Dt())&&(o.instructionTableRef=u.first)}},decls:31,vars:6,consts:[["instructionsTable",""],[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","client"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","fromAccount"],["matColumnDef","beneficiary"],["matColumnDef","toAccount"],["matColumnDef","amount"],["matColumnDef","validity"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"matTooltip"],[1,"fa","fa-edit"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],[1,"fa","fa-eye"],["mat-header-row",""],["mat-row",""]],template:function(s,o){s&1&&(i(0,"div",1)(1,"div",2)(2,"h3"),r(3),c(4,"translate"),a()(),i(5,"div",3)(6,"table",4,0),N(8,5),A(9,Yr,3,3,"th",6)(10,Jr,2,2,"td",7),R(),N(11,8),A(12,Xr,3,3,"th",6)(13,Zr,2,2,"td",7),R(),N(14,9),A(15,tc,3,3,"th",6)(16,ec,2,1,"td",7),R(),N(17,10),A(18,nc,3,3,"th",6)(19,ic,2,2,"td",7),R(),N(20,11),A(21,ac,3,3,"th",6)(22,oc,2,2,"td",7),R(),N(23,12),A(24,rc,3,3,"th",6)(25,cc,5,9,"td",7),R(),N(26,13),A(27,sc,3,3,"th",6)(28,gc,4,3,"td",7),R(),A(29,fc,1,0,"tr",14)(30,Cc,1,0,"tr",15),a()()()),s&2&&(n(3),p(l(4,4,"labels.heading.All Standing Instructions")),n(3),d("dataSource",o.dataSource),n(23),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns))},dependencies:[P,O,F,Rt,Lt,qt,Ut,Ht,Gt,zt,fe,jt,Wt,$t,Qt,Bt,y],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return t})();var Bn=(()=>{class t{constructor(){this.route=g(E),this.entityId=this.route.parent.parent.snapshot.paramMap.get("savingAccountId"),this.route.data.subscribe(e=>{this.entityDatatable=e.savingsDatatable,this.multiRowDatatableFlag=this.entityDatatable.columnHeaders[0].columnName==="id"})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-datatable-tabs"]],decls:2,vars:3,consts:[[1,"tab-container","mat-typography"],["entityType","Savings",3,"entityId","multiRowDatatableFlag","entityDatatable"]],template:function(s,o){s&1&&(i(0,"div",0),C(1,"mifosx-entity-datatable-tab",1),a()),s&2&&(n(),d("entityId",o.entityId)("multiRowDatatableFlag",o.multiRowDatatableFlag)("entityDatatable",o.entityDatatable))},dependencies:[P,O,pn],encapsulation:2})}}return t})();function vc(t,m){if(t&1&&(i(0,"mat-option",5),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function _c(t,m){if(t&1){let e=D();i(0,"mat-form-field",11),b("click",function(){S(e);let o=w(7);return M(o.open())}),i(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",12)(5,"mat-datepicker-toggle",13)(6,"mat-datepicker",null,0),i(8,"mat-error"),r(9),c(10,"translate"),c(11,"translate"),i(12,"strong"),r(13),c(14,"translate"),a()()()}if(t&2){let e=w(7),s=h();n(2),p(l(3,8,"labels.inputs.Submitted On")),n(2),d("min",s.minDate)("max",s.maxDate)("matDatepicker",e),n(),d("for",e),n(4),V(" ",l(10,10,"labels.inputs.Submitted On")," ",l(11,12,"labels.commons.is")," "),n(4),p(l(14,14,"labels.commons.required"))}}function hc(t,m){if(t&1&&(i(0,"mat-option",5),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.displayName," ")}}function xc(t,m){if(t&1&&(i(0,"mat-form-field",3)(1,"mat-label"),r(2),c(3,"translate"),a(),i(4,"mat-select",14),ut(5,hc,2,2,"mat-option",5,dt),a()()),t&2){let e=h();n(2),p(l(3,1,"labels.inputs.Field Officer")),n(3),gt(e.fieldOfficerData)}}function bc(t,m){t&1&&(i(0,"mat-form-field",3)(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",15),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.External ID")))}var oe=(()=>{class t{constructor(){this.formBuilder=g(rt),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isFieldOfficerPatched=!1,this.savingsProductSelected=!1,this.savingsAccountProductTemplate=new We,this.createSavingsAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.savingsAccountTemplate&&(this.productData=this.savingsAccountTemplate.productOptions,this.savingsAccountTemplate.savingsProductId?this.savingsAccountDetailsForm.patchValue({productId:this.savingsAccountTemplate.savingsProductId,submittedOnDate:this.savingsAccountTemplate.timeline.submittedOnDate&&new Date(this.savingsAccountTemplate.timeline.submittedOnDate),externalId:this.savingsAccountTemplate.externalId}):this.savingsAccountDetailsForm.patchValue({submittedOnDate:new Date}))}createSavingsAccountDetailsForm(){this.savingsAccountDetailsForm=this.formBuilder.group({productId:["",H.required],submittedOnDate:["",H.required],fieldOfficerId:[""],externalId:[""]})}buildDependencies(){let e=this.savingsAccountTemplate.groupId||this.savingsAccountTemplate.clientId;this.savingsAccountDetailsForm.get("productId").valueChanges.subscribe(s=>{this.savingsService.getSavingsAccountTemplate(e,s,!!this.savingsAccountTemplate.groupId).subscribe(o=>{this.savingsAccountProductTemplate.emit(o),this.fieldOfficerData=o.fieldOfficerOptions,this.savingsProductSelected=!0,!this.isFieldOfficerPatched&&this.savingsAccountTemplate.fieldOfficerId?(this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue(this.savingsAccountTemplate.fieldOfficerId),this.isFieldOfficerPatched=!0):this.savingsAccountDetailsForm.get("fieldOfficerId").patchValue("")})})}get savingsAccountDetails(){return this.savingsAccountDetailsForm.getRawValue()}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-details-step"]],inputs:{savingsAccountTemplate:"savingsAccountTemplate"},outputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate"},decls:28,vars:23,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedOnDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["formControlName","fieldOfficerId"],["matInput","","formControlName","externalId"]],template:function(s,o){s&1&&(i(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),r(4),c(5,"translate"),a(),i(6,"mat-select",4),ut(7,vc,2,2,"mat-option",5,dt),a(),i(9,"mat-error"),r(10),c(11,"translate"),c(12,"translate"),i(13,"strong"),r(14),c(15,"translate"),a()()(),v(16,_c,15,16,"mat-form-field",3),v(17,xc,7,3,"mat-form-field",3),v(18,bc,5,3,"mat-form-field",3),a(),i(19,"div",6)(20,"button",7),C(21,"fa-icon",8),r(22),c(23,"translate"),a(),i(24,"button",9),r(25),c(26,"translate"),C(27,"fa-icon",10),a()()()),s&2&&(d("formGroup",o.savingsAccountDetailsForm),n(4),p(l(5,11,"labels.inputs.Product Name")),n(3),gt(o.productData),n(3),V(" ",l(11,13,"labels.inputs.Product Name")," ",l(12,15,"labels.commons.is")," "),n(4),p(l(15,17,"labels.commons.required")),n(2),_(o.savingsProductSelected?16:-1),n(),_(o.savingsProductSelected?17:-1),n(),_(o.savingsProductSelected?18:-1),n(4),f(" ",l(23,19,"labels.buttons.Previous")," "),n(2),d("disabled",o.savingsAccountDetailsForm.invalid),n(),f(" ",l(26,21,"labels.buttons.Next")," "))},dependencies:[P,O,it,et,K,nt,lt,at,ot,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,le,St,_e,y],encapsulation:2})}}return t})();function Sc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Mc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Ac(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Tc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Pc(t,m){if(t&1&&(i(0,"mat-option",7),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",Mt(2,2,e.value,"catalogs")," ")}}function Oc(t,m){t&1&&(i(0,"div",19)(1,"mat-form-field",27)(2,"mat-label"),r(3),c(4,"translate"),a(),C(5,"input",28),a(),i(6,"mat-form-field",27)(7,"mat-label"),r(8),c(9,"translate"),a(),C(10,"input",29),a(),i(11,"mat-form-field",27)(12,"mat-label"),r(13),c(14,"translate"),a(),C(15,"input",30),a()()),t&2&&(n(3),p(l(4,3,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),n(5),p(l(9,5,"labels.inputs.Nominal Annual Interest for Overdraft")),n(5),p(l(14,7,"labels.inputs.Maximum Overdraft Amount Limit")))}function Dc(t,m){t&1&&(i(0,"mat-form-field",2)(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",31),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Balance Required for Interest Calculation")))}var re=(()=>{class t{constructor(){this.formBuilder=g(rt),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.createSavingsAccountTermsForm(),this.buildDependencies()}ngOnChanges(){this.savingsAccountProductTemplate&&(this.savingsAccountTermsForm.patchValue({currencyCode:this.savingsAccountProductTemplate.currency.code,decimal:this.savingsAccountProductTemplate.currency.decimalPlaces,minBalanceForInterestCalculation:this.savingsAccountProductTemplate.minBalanceForInterestCalculation,nominalAnnualInterestRate:this.savingsAccountProductTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountProductTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountProductTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountProductTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountProductTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountProductTemplate.minRequiredOpeningBalance,allowOverdraft:this.savingsAccountProductTemplate.allowOverdraft,overdraftLimit:this.savingsAccountProductTemplate.overdraftLimit,enforceMinRequiredBalance:this.savingsAccountProductTemplate.enforceMinRequiredBalance,minOverdraftForInterestCalculation:this.savingsAccountProductTemplate.minOverdraftForInterestCalculation,nominalAnnualInterestRateOverdraft:this.savingsAccountProductTemplate.nominalAnnualInterestRateOverdraft,minRequiredBalance:this.savingsAccountProductTemplate.minRequiredBalance,withdrawalFeeForTransfers:this.savingsAccountProductTemplate.withdrawalFeeForTransfers}),this.setOptions())}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.savingsAccountTemplate&&this.savingsAccountTermsForm.patchValue({nominalAnnualInterestRate:this.savingsAccountTemplate.nominalAnnualInterestRate,interestCompoundingPeriodType:this.savingsAccountTemplate.interestCompoundingPeriodType.id,interestPostingPeriodType:this.savingsAccountTemplate.interestPostingPeriodType.id,interestCalculationType:this.savingsAccountTemplate.interestCalculationType.id,interestCalculationDaysInYearType:this.savingsAccountTemplate.interestCalculationDaysInYearType.id,minRequiredOpeningBalance:this.savingsAccountTemplate.minRequiredOpeningBalance,withdrawalFeeForTransfers:this.savingsAccountTemplate.withdrawalFeeForTransfers,lockinPeriodFrequency:this.savingsAccountTemplate.lockinPeriodFrequency,lockinPeriodFrequencyType:this.savingsAccountTemplate.lockinPeriodFrequencyType&&this.savingsAccountTemplate.lockinPeriodFrequencyType.id,allowOverdraft:this.savingsAccountTemplate.allowOverdraft,enforceMinRequiredBalance:this.savingsAccountTemplate.enforceMinRequiredBalance,minRequiredBalance:this.savingsAccountTemplate.minRequiredBalance})}createSavingsAccountTermsForm(){this.savingsAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],nominalAnnualInterestRate:["",H.required],interestCompoundingPeriodType:["",H.required],interestPostingPeriodType:["",H.required],interestCalculationType:["",H.required],interestCalculationDaysInYearType:["",H.required],minRequiredOpeningBalance:[""],withdrawalFeeForTransfers:[!1],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],allowOverdraft:[!1],enforceMinRequiredBalance:[!1],minRequiredBalance:[""],minBalanceForInterestCalculation:[{value:"",disabled:!0}]})}setOptions(){this.lockinPeriodFrequencyTypeData=this.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.interestCompoundingPeriodTypeData=this.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,this.interestPostingPeriodTypeData=this.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,this.interestCalculationTypeData=this.savingsAccountProductTemplate.interestCalculationTypeOptions,this.interestCalculationDaysInYearTypeData=this.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions}buildDependencies(){this.savingsAccountTermsForm.get("allowOverdraft").valueChanges.subscribe(e=>{e?(this.savingsAccountTermsForm.addControl("minOverdraftForInterestCalculation",new Ct("")),this.savingsAccountTermsForm.addControl("nominalAnnualInterestRateOverdraft",new Ct("")),this.savingsAccountTermsForm.addControl("overdraftLimit",new Ct(""))):(this.savingsAccountTermsForm.removeControl("minOverdraftForInterestCalculation"),this.savingsAccountTermsForm.removeControl("nominalAnnualInterestRateOverdraft"),this.savingsAccountTermsForm.removeControl("overdraftLimit"))})}get savingsAccountTerms(){let e=this.savingsAccountTermsForm.getRawValue();return delete e.currencyCode,delete e.decimal,delete e.minBalanceForInterestCalculation,e}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-terms-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate"},features:[Te],decls:130,vars:102,consts:[[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","decimal"],["type","number","matInput","","formControlName","nominalAnnualInterestRate","required",""],["formControlName","interestCompoundingPeriodType","required",""],[3,"value"],["formControlName","interestPostingPeriodType","required",""],["formControlName","interestCalculationType","required",""],["formControlName","interestCalculationDaysInYearType","required",""],["type","number","matInput","","formControlName","minRequiredOpeningBalance"],["labelPosition","before","formControlName","withdrawalFeeForTransfers",1,"margin-v","flex-48"],[1,"mat-h4","flex-98"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[1,"flex-98"],[1,"mat-h3","flex-23"],["labelPosition","before","formControlName","allowOverdraft",1,"flex-73","margin-b"],[1,"flex-fill","layout-row-wrap","gap-2percent","responsive-column"],["labelPosition","before","formControlName","enforceMinRequiredBalance",1,"margin-v","flex-48"],["type","number","matInput","","formControlName","minRequiredBalance"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],[1,"flex-31"],["type","number","matInput","","formControlName","minOverdraftForInterestCalculation"],["type","number","matInput","","formControlName","nominalAnnualInterestRateOverdraft"],["type","number","matInput","","formControlName","overdraftLimit"],["type","number","matInput","","formControlName","minBalanceForInterestCalculation"]],template:function(s,o){s&1&&(i(0,"form",0)(1,"div",1)(2,"mat-form-field",2)(3,"mat-label"),r(4),c(5,"translate"),a(),C(6,"input",3),a(),i(7,"mat-form-field",2)(8,"mat-label"),r(9),c(10,"translate"),a(),C(11,"input",4),a(),i(12,"mat-form-field",2)(13,"mat-label"),r(14),c(15,"translate"),a(),C(16,"input",5),i(17,"mat-error"),r(18),c(19,"translate"),c(20,"translate"),i(21,"strong"),r(22),c(23,"translate"),a()()(),i(24,"mat-form-field",2)(25,"mat-label"),r(26),c(27,"translate"),a(),i(28,"mat-select",6),ut(29,Sc,3,5,"mat-option",7,dt),a(),i(31,"mat-error"),r(32),c(33,"translate"),c(34,"translate"),i(35,"strong"),r(36),c(37,"translate"),a()()(),i(38,"mat-form-field",2)(39,"mat-label"),r(40),c(41,"translate"),a(),i(42,"mat-select",8),ut(43,Mc,3,5,"mat-option",7,dt),a(),i(45,"mat-error"),r(46),c(47,"translate"),c(48,"translate"),i(49,"strong"),r(50),c(51,"translate"),a()()(),i(52,"mat-form-field",2)(53,"mat-label"),r(54),c(55,"translate"),a(),i(56,"mat-select",9),ut(57,Ac,3,5,"mat-option",7,dt),a(),i(59,"mat-error"),r(60),c(61,"translate"),c(62,"translate"),i(63,"strong"),r(64),c(65,"translate"),a()()(),i(66,"mat-form-field",2)(67,"mat-label"),r(68),c(69,"translate"),a(),i(70,"mat-select",10),ut(71,Tc,3,5,"mat-option",7,dt),a(),i(73,"mat-error"),r(74),c(75,"translate"),c(76,"translate"),i(77,"strong"),r(78),c(79,"translate"),a()()(),i(80,"mat-form-field",2)(81,"mat-label"),r(82),c(83,"translate"),a(),C(84,"input",11),a(),i(85,"mat-checkbox",12),r(86),c(87,"translate"),a(),i(88,"h4",13),r(89),c(90,"translate"),a(),i(91,"mat-form-field",2)(92,"mat-label"),r(93),c(94,"translate"),a(),C(95,"input",14),a(),i(96,"mat-form-field",2)(97,"mat-label"),r(98),c(99,"translate"),a(),i(100,"mat-select",15),ut(101,Pc,3,5,"mat-option",7,dt),a()(),C(103,"mat-divider",16),i(104,"h3",17),r(105),c(106,"translate"),a(),i(107,"mat-checkbox",18),r(108),c(109,"translate"),a(),v(110,Oc,16,9,"div",19),C(111,"mat-divider",16),i(112,"mat-checkbox",20),r(113),c(114,"translate"),a(),i(115,"mat-form-field",2)(116,"mat-label"),r(117),c(118,"translate"),a(),C(119,"input",21),a(),v(120,Dc,5,3,"mat-form-field",2),a(),i(121,"div",22)(122,"button",23),C(123,"fa-icon",24),r(124),c(125,"translate"),a(),i(126,"button",25),r(127),c(128,"translate"),C(129,"fa-icon",26),a()()()),s&2&&(d("formGroup",o.savingsAccountTermsForm),n(4),p(l(5,36,"labels.inputs.Currency")),n(5),p(l(10,38,"labels.inputs.Decimal Places")),n(5),p(l(15,40,"labels.inputs.Nominal Annual Interest")),n(4),V(" ",l(19,42,"labels.inputs.Nominal Annual Interest")," ",l(20,44,"labels.commons.is")," "),n(4),p(l(23,46,"labels.commons.required")),n(4),p(l(27,48,"labels.inputs.Interest Compounding Period")),n(3),gt(o.interestCompoundingPeriodTypeData),n(3),V(" ",l(33,50,"labels.inputs.Interest Compounding Period")," ",l(34,52,"labels.commons.is")," "),n(4),p(l(37,54,"labels.commons.required")),n(4),p(l(41,56,"labels.inputs.Interest Posting Period")),n(3),gt(o.interestPostingPeriodTypeData),n(3),V(" ",l(47,58,"labels.inputs.Interest Posting Period")," ",l(48,60,"labels.commons.is")," "),n(4),p(l(51,62,"labels.commons.required")),n(4),p(l(55,64,"labels.inputs.Interest Calculated using")),n(3),gt(o.interestCalculationTypeData),n(3),V(" ",l(61,66,"labels.inputs.Interest Calculated using")," ",l(62,68,"labels.commons.is")," "),n(4),p(l(65,70,"labels.commons.required")),n(4),p(l(69,72,"labels.inputs.Days in Year")),n(3),gt(o.interestCalculationDaysInYearTypeData),n(3),V(" ",l(75,74,"labels.inputs.Days in Year")," ",l(76,76,"labels.commons.is")," "),n(4),p(l(79,78,"labels.commons.required")),n(4),p(l(83,80,"labels.inputs.Minimum Opening Balance")),n(4),f(" ",l(87,82,"labels.inputs.Apply Withdrawal Fee for Transfers")," "),n(3),p(l(90,84,"labels.inputs.Lock-in Period")),n(4),p(l(94,86,"labels.inputs.Frequency")),n(5),p(l(99,88,"labels.inputs.Type")),n(3),gt(o.lockinPeriodFrequencyTypeData),n(4),p(l(106,90,"labels.inputs.Overdraft")),n(3),f(" ",l(109,92,"labels.inputs.Is Overdraft Allowed")," "),n(2),_(o.savingsAccountTermsForm.value.allowOverdraft?110:-1),n(3),f(" ",l(114,94,"labels.inputs.Enforce Minimum Balance")," "),n(4),p(l(118,96,"labels.inputs.Minimum Balance")),n(3),_(o.savingsAccountTermsForm.controls.minBalanceForInterestCalculation.value?120:-1),n(4),f(" ",l(125,98,"labels.buttons.Previous")," "),n(3),f(" ",l(128,100,"labels.buttons.Next")," "))},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,Z,X,mt,st,wt,It,F,Ce,tn,le,St,_e,y,Nt],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}h3[_ngcontent-%COMP%]{font-weight:500}mat-divider[_ngcontent-%COMP%]{margin:1em 0 2em}.margin-v[_ngcontent-%COMP%]{margin:1em 0}.margin-b[_ngcontent-%COMP%]{margin:0 0 1em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function yc(t,m){if(t&1&&(i(0,"mat-option",3),r(1),a()),t&2){let e=m.$implicit;d("value",e),n(),f(" ",e.name," ")}}function Ic(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function wc(t,m){if(t&1&&(i(0,"td",25),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.name+", "+e.currency.displaySymbol," ")}}function Ec(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Type")))}function Fc(t,m){if(t&1&&(i(0,"td",25),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.chargeCalculationType.value," ")}}function kc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function Bc(t,m){if(t&1){let e=D();i(0,"td",25),r(1),c(2,"formatNumber"),i(3,"button",26),b("click",function(){let o=S(e).$implicit,u=h(2);return M(u.editChargeAmount(o))}),C(4,"fa-icon",27),a()()}if(t&2){let e=m.$implicit;n(),f(" ",l(2,1,e.amount)," ")}}function Nc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Collected On")))}function Rc(t,m){if(t&1&&(i(0,"td",25),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),f(" ",Mt(2,1,e.chargeTimeType.value,"catalogs")," ")}}function Vc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Date")))}function Lc(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.dueDate)||"Unassigned"," ")}}function Gc(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function Uc(t,m){t&1&&(i(0,"span"),r(1," N/A "),a())}function qc(t,m){if(t&1){let e=D();i(0,"button",26),b("click",function(){S(e);let o=h().$implicit,u=h(2);return M(u.editChargeDate(o))}),C(1,"fa-icon",27),a()}}function Hc(t,m){if(t&1&&(i(0,"td",25),v(1,Lc,3,3,"span"),v(2,Gc,3,3,"span"),v(3,Uc,2,0,"span"),v(4,qc,2,0,"button",28),a()),t&2){let e=m.$implicit;n(),_(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3),n(),_(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"?4:-1)}}function zc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repayments Every")))}function jc(t,m){if(t&1&&(i(0,"span"),r(1),a()),t&2){let e=h().$implicit;n(),p(e.feeInterval)}}function $c(t,m){t&1&&(i(0,"span"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function Wc(t,m){if(t&1){let e=D();i(0,"button",26),b("click",function(){S(e);let o=h().$implicit,u=h(2);return M(u.editChargeFeeInterval(o))}),C(1,"fa-icon",27),a()}}function Qc(t,m){if(t&1&&(i(0,"td",25),v(1,jc,2,1,"span"),v(2,$c,3,3,"span"),v(3,Wc,2,0,"button",28),a()),t&2){let e=m.$implicit;n(),_(e.feeInterval?1:-1),n(),_(e.feeInterval?-1:2),n(),_(e.chargeTimeType.value==="Weekly Fee"||e.chargeTimeType.value==="Monthly Fee"?3:-1)}}function Kc(t,m){t&1&&(i(0,"th",24),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function Yc(t,m){if(t&1){let e=D();i(0,"td",25)(1,"button",29),b("click",function(){let o=S(e).$implicit,u=h(2);return M(u.deleteCharge(o))}),C(2,"fa-icon",30),a()()}}function Jc(t,m){t&1&&C(0,"tr",31)}function Xc(t,m){t&1&&C(0,"tr",32)}function Zc(t,m){if(t&1&&(i(0,"table",7),N(1,13),A(2,Ic,3,3,"th",14)(3,wc,2,1,"td",15),R(),N(4,16),A(5,Ec,3,3,"th",14)(6,Fc,2,1,"td",15),R(),N(7,17),A(8,kc,3,3,"th",14)(9,Bc,5,3,"td",15),R(),N(10,18),A(11,Nc,3,3,"th",14)(12,Rc,3,4,"td",15),R(),N(13,19),A(14,Vc,3,3,"th",14)(15,Hc,5,4,"td",15),R(),N(16,20),A(17,zc,3,3,"th",14)(18,Qc,4,3,"td",15),R(),N(19,21),A(20,Kc,3,3,"th",14)(21,Yc,3,0,"td",15),R(),A(22,Jc,1,0,"tr",22)(23,Xc,1,0,"tr",23),a()),t&2){let e=h();d("dataSource",e.chargesDataSource),n(22),d("matHeaderRowDef",e.displayedColumns),n(),d("matRowDefColumns",e.displayedColumns)}}var ce=(()=>{class t{constructor(){this.dialog=g(yt),this.dateUtils=g(j),this.translateService=g(ge),this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery","action"],this.selectAllItems=!1,this.loanPurposeOptions=[],this.displayedColumn=["check","id","name"]}ngOnInit(){this.savingsAccountTemplate&&(!this.isChargesPatched&&this.savingsAccountTemplate.charges?(this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>Q(G({},e),{id:e.chargeId}))||[],this.isChargesPatched=!0):this.chargesDataSource=[])}ngOnChanges(){this.savingsAccountProductTemplate&&(this.chargeData=this.savingsAccountProductTemplate.chargeOptions,this.chargesDataSource=this.savingsAccountProductTemplate.charges.map(e=>Q(G({},e),{id:e.chargeId}))||[])}addCharge(e){this.chargesDataSource=this.chargesDataSource.concat([e.value]),e.value="",this.pristine=!1}editChargeAmount(e){let s=[new pe({controlName:"amount",label:this.translateService.instant("labels.inputs.Amount"),value:e.amount,type:"number",required:!1})],o={title:this.translateService.instant("labels.heading.Edit Charge Amount"),layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=Q(G({},e),{amount:x.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,B),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeDate(e){let s=[new Ne({controlName:"date",label:this.translateService.instant("labels.inputs.Date"),value:e.dueDate||e.feeOnMonthDay||"",type:"datetime-local",required:!1})],o={title:this.translateService.instant("labels.heading.Edit Charge Date"),layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B,Ue=this.dateUtils.formatDate(x.data.value.date,"dd MMMM yyyy");switch(e.chargeTimeType.value){case"Specified due date":case"Weekly Fee":B=Q(G({},e),{dueDate:Ue});break;case"Annual Fee":case"Monthly Fee":let Wi=this.dateUtils.formatDate(x.data.value.date,"dd MMMM");B=Q(G({},e),{feeOnMonthDay:Wi});break}this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,B),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}editChargeFeeInterval(e){let s=[new pe({controlName:"feeInterval",label:"Fee Interval",value:e.feeInterval,type:"text",required:!1})],o={title:"Edit Charge Fee Interval",layout:{addButtonText:"Confirm"},formfields:s};this.dialog.open(se,{data:o}).afterClosed().subscribe(x=>{if(x.data){let B=Q(G({},e),{feeInterval:x.data.value.feeInterval});this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1,B),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(e){this.chargesDataSource.splice(this.chargesDataSource.indexOf(e),1),this.chargesDataSource=this.chargesDataSource.concat([]),this.pristine=!1}get savingsAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-charges-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",currencyCode:"currencyCode",activeClientMembers:"activeClientMembers"},features:[Te],decls:25,vars:18,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource"],[1,"flex-98","layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","primary"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),r(3),c(4,"translate"),a(),i(5,"mat-select",null,0),ut(7,yc,2,2,"mat-option",3,dt),c(9,"chargesFilter"),a()(),i(10,"div",4)(11,"button",5),b("click",function(){S(u);let B=w(6);return M(o.addCharge(B))}),C(12,"fa-icon",6),r(13),c(14,"translate"),a()(),v(15,Zc,24,3,"table",7),i(16,"div",8)(17,"button",9),C(18,"fa-icon",10),r(19),c(20,"translate"),a(),i(21,"button",11),r(22),c(23,"translate"),C(24,"fa-icon",12),a()()()}if(s&2){let u=w(6);n(3),p(l(4,6,"labels.inputs.Charge")),n(4),gt(hi(9,8,o.chargeData,o.chargesDataSource,o.currencyCode.value)),n(4),d("disabled",!u.value),n(2),f(" ",l(14,12,"labels.buttons.Add")," "),n(2),_(o.chargesDataSource.length>0?15:-1),n(4),f(" ",l(20,14,"labels.buttons.Previous")," "),n(3),f(" ",l(23,16,"labels.buttons.Next")," ")}},dependencies:[P,O,Z,X,wt,It,F,St,Lt,qt,Ut,Ht,Gt,zt,Oe,jt,Wt,$t,Qt,le,_e,Bt,y,Nt,Ii,me],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();var ts=()=>["../.."];function es(t,m){if(t&1&&(i(0,"span",6),C(1,"mifosx-external-identifier",14),a()),t&2){let e=h();n(),d("externalId",ft(e.savingsAccount.externalId))}}function ns(t,m){t&1&&(i(0,"span",6),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Unassigned")," "))}function is(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client ID")))}function as(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),p(e.id)}}function os(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client Name")))}function rs(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),p(e.displayName)}}function cs(t,m){t&1&&C(0,"tr",24)}function ss(t,m){t&1&&C(0,"tr",25)}function ls(t,m){if(t&1&&(i(0,"h3",7),r(1),c(2,"translate"),a(),C(3,"mat-divider",3),i(4,"div",6)(5,"table",15,0),N(7,16),A(8,is,3,3,"th",17)(9,as,2,1,"td",18),R(),N(10,19),A(11,os,3,3,"th",17)(12,rs,2,1,"td",18),R(),A(13,cs,1,0,"tr",20)(14,ss,1,0,"tr",21),a()()),t&2){let e=h();n(),p(l(2,4,"labels.heading.Client Members")),n(4),d("dataSource",e.dataSource),n(8),d("matHeaderRowDef",e.membersDisplayedColumns),n(),d("matRowDefColumns",e.membersDisplayedColumns)}}function ms(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Minimum Opening Balance"),":"),n(3),p(l(6,4,e.savingsAccount.minRequiredOpeningBalance))}}function ps(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"find"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Lock-in Period"),":"),n(3),p(e.getCatalogTranslation(e.savingsAccount.lockinPeriodFrequency+" "+tt(6,4,e.savingsAccount.lockinPeriodFrequencyType,e.savingsAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value")))}}function ds(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation"),":"),n(3),p(l(6,4,e.savingsAccount.minOverdraftForInterestCalculation))}}function us(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Nominal Annual Interest for Overdraft"),":"),n(3),f("",l(6,4,e.savingsAccount.nominalAnnualInterestRateOverdraft)," %")}}function gs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Maximum Overdraft Amount Limit"),":"),n(3),p(l(6,4,e.savingsAccount.overdraftLimit))}}function fs(t,m){if(t&1&&(i(0,"div",4)(1,"span",5),r(2),c(3,"translate"),a(),i(4,"span",6),r(5),a()()),t&2){let e=h();n(2),f("",l(3,2,"labels.inputs.Minimum Balance"),":"),n(3),p(e.savingsAccount.minRequiredBalance)}}function Cs(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Name")))}function vs(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.name+", "+e.currency.displaySymbol," ")}}function _s(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Type")))}function hs(t,m){if(t&1&&(i(0,"td",23),r(1),c(2,"translateKey"),a()),t&2){let e=m.$implicit;n(),f(" ",Mt(2,1,e.chargeCalculationType.value,"catalogs")," ")}}function xs(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Amount")))}function bs(t,m){if(t&1&&(i(0,"td",23),r(1),c(2,"formatNumber"),a()),t&2){let e=m.$implicit;n(),f(" ",l(2,1,e.amount)," ")}}function Ss(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Date")))}function Ms(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.dueDate)||"Unassigned"," ")}}function As(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"dateFormat"),a()),t&2){let e=h().$implicit;n(),f(" ",l(2,1,e.feeOnMonthDay)||"Unassigned"," ")}}function Ts(t,m){t&1&&(i(0,"span"),r(1," N/A "),a())}function Ps(t,m){if(t&1&&(i(0,"td",23),v(1,Ms,3,3,"span"),v(2,As,3,3,"span"),v(3,Ts,2,0,"span"),a()),t&2){let e=m.$implicit;n(),_(e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?1:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"?2:-1),n(),_(e.chargeTimeType.value==="Monthly Fee"||e.chargeTimeType.value==="Annual Fee"||e.chargeTimeType.value==="Specified due date"||e.chargeTimeType.value==="Weekly Fee"?-1:3)}}function Os(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Repayments Every")))}function Ds(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.feeInterval||"Not Provided"," ")}}function ys(t,m){t&1&&(i(0,"th",22),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Collected On")))}function Is(t,m){if(t&1&&(i(0,"td",23),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.chargeTimeType.value," ")}}function ws(t,m){t&1&&C(0,"tr",24)}function Es(t,m){t&1&&C(0,"tr",25)}function Fs(t,m){if(t&1&&(i(0,"div",8)(1,"h3",2),r(2),c(3,"translate"),a(),C(4,"mat-divider",3),i(5,"table",26),N(6,19),A(7,Cs,3,3,"th",17)(8,vs,2,1,"td",18),R(),N(9,27),A(10,_s,3,3,"th",17)(11,hs,3,4,"td",18),R(),N(12,28),A(13,xs,3,3,"th",17)(14,bs,3,3,"td",18),R(),N(15,29),A(16,Ss,3,3,"th",17)(17,Ps,4,3,"td",18),R(),N(18,30),A(19,Os,3,3,"th",17)(20,Ds,2,1,"td",18),R(),N(21,31),A(22,ys,3,3,"th",17)(23,Is,2,1,"td",18),R(),A(24,ws,1,0,"tr",20)(25,Es,1,0,"tr",21),a()()),t&2){let e=h();n(2),p(l(3,4,"labels.inputs.Charges")),n(3),d("dataSource",e.savingsAccount.charges),n(19),d("matHeaderRowDef",e.chargesDisplayedColumns),n(),d("matRowDefColumns",e.chargesDisplayedColumns)}}var be=(()=>{class t{constructor(){this.translateService=g(ge),this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType","date","repaymentsEvery"],this.membersDisplayedColumns=["id","name"],this.submitEvent=new We}ngOnChanges(){this.activeClientMembers?.length>0&&(this.dataSource=new Jt(this.activeClientMembers.filter(e=>e.selected)))}getCatalogTranslation(e){return this.translateService.instant("labels.catalogs."+e)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-account-preview-step"]],inputs:{savingsAccountProductTemplate:"savingsAccountProductTemplate",savingsAccountTemplate:"savingsAccountTemplate",savingsAccountTermsForm:"savingsAccountTermsForm",savingsAccount:"savingsAccount",activeClientMembers:"activeClientMembers"},outputs:{submitEvent:"submitEvent"},features:[Te],decls:123,vars:122,consts:[["membersTable",""],[1,"responsive-column"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-fill","layout-row"],[1,"flex-40"],[1,"flex-60"],[1,"mat-h3","margin-t","flex-fill"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["mat-table","",3,"dataSource"],["matColumnDef","id"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","date"],["matColumnDef","repaymentsEvery"],["matColumnDef","chargeTimeType"]],template:function(s,o){s&1&&(i(0,"div",1)(1,"h3",2),r(2),c(3,"translate"),a(),C(4,"mat-divider",3),i(5,"div",4)(6,"span",5),r(7),c(8,"translate"),a(),i(9,"span",6),r(10),c(11,"find"),a()(),i(12,"div",4)(13,"span",5),r(14),c(15,"translate"),a(),i(16,"span",6),r(17),c(18,"dateFormat"),a()(),i(19,"div",4)(20,"span",5),r(21),c(22,"translate"),a(),v(23,es,2,2,"span",6),v(24,ns,3,3,"span",6),a(),i(25,"div",4)(26,"span",5),r(27),c(28,"translate"),a(),i(29,"span",6),r(30),c(31,"find"),a()(),v(32,ls,15,6),i(33,"h3",7),r(34),c(35,"translate"),a(),C(36,"mat-divider",3),i(37,"div",4)(38,"span",5),r(39),c(40,"translate"),a(),i(41,"span",6),r(42),a()(),i(43,"div",4)(44,"span",5),r(45),c(46,"translate"),a(),i(47,"span",6),r(48),a()(),i(49,"div",4)(50,"span",5),r(51),c(52,"translate"),a(),i(53,"span",6),r(54),c(55,"formatNumber"),a()(),i(56,"div",4)(57,"span",5),r(58),c(59,"translate"),a(),i(60,"span",6),r(61),c(62,"find"),a()(),i(63,"div",4)(64,"span",5),r(65),c(66,"translate"),a(),i(67,"span",6),r(68),c(69,"find"),a()(),i(70,"div",4)(71,"span",5),r(72),c(73,"translate"),a(),i(74,"span",6),r(75),c(76,"find"),a()(),i(77,"div",4)(78,"span",5),r(79),c(80,"translate"),a(),i(81,"span",6),r(82),c(83,"find"),a()(),v(84,ms,7,6,"div",4),i(85,"div",4)(86,"span",5),r(87),c(88,"translate"),a(),i(89,"span",6),r(90),c(91,"yesNo"),a()(),v(92,ps,7,9,"div",4),i(93,"div",4)(94,"span",5),r(95),c(96,"translate"),a(),i(97,"span",6),r(98),c(99,"yesNo"),a()(),v(100,ds,7,6,"div",4),v(101,us,7,6,"div",4),v(102,gs,7,6,"div",4),i(103,"div",4)(104,"span",5),r(105),c(106,"translate"),a(),i(107,"span",6),r(108),c(109,"yesNo"),a()(),v(110,fs,6,4,"div",4),v(111,Fs,26,6,"div",8),a(),i(112,"div",9)(113,"button",10),C(114,"fa-icon",11),r(115),c(116,"translate"),a(),i(117,"button",12),r(118),c(119,"translate"),a(),i(120,"button",13),b("click",function(){return o.submitEvent.emit()}),r(121),c(122,"translate"),a()()),s&2&&(n(2),p(l(3,43,"labels.heading.Details")),n(5),p(l(8,45,"labels.inputs.Product")),n(3),p(tt(11,47,o.savingsAccount.productId,o.savingsAccountTemplate.productOptions,"id","name")),n(4),p(l(15,52,"labels.inputs.Submitted On")),n(3),p(l(18,54,o.savingsAccount.submittedOnDate)),n(4),p(l(22,56,"labels.inputs.External Id")),n(2),_(o.savingsAccount.externalId?23:-1),n(),_(o.savingsAccount.externalId?-1:24),n(3),p(l(28,58,"labels.inputs.Field Officer")),n(3),p(tt(31,60,o.savingsAccount.fieldOfficerId,o.savingsAccountProductTemplate.fieldOfficerOptions,"id","displayName")),n(2),_(o.activeClientMembers?32:-1),n(2),p(l(35,65,"labels.heading.Terms")),n(5),p(l(40,67,"labels.inputs.Currency")),n(3),p(o.savingsAccountTermsForm.get("currencyCode").value),n(3),p(l(46,69,"labels.inputs.Decimal Places")),n(3),p(o.savingsAccountTermsForm.get("decimal").value),n(3),f("",l(52,71,"labels.inputs.Nominal Annual Interest"),":"),n(3),f("",l(55,73,o.savingsAccount.nominalAnnualInterestRate)," %"),n(4),f("",l(59,75,"labels.inputs.Interest Compounding Period"),":"),n(3),p(o.getCatalogTranslation(tt(62,77,o.savingsAccount.interestCompoundingPeriodType,o.savingsAccountProductTemplate.interestCompoundingPeriodTypeOptions,"id","value"))),n(4),f("",l(66,82,"labels.inputs.Interest Posting Period"),":"),n(3),p(o.getCatalogTranslation(tt(69,84,o.savingsAccount.interestPostingPeriodType,o.savingsAccountProductTemplate.interestPostingPeriodTypeOptions,"id","value"))),n(4),f("",l(73,89,"labels.inputs.Interest Calculated using"),":"),n(3),p(o.getCatalogTranslation(tt(76,91,o.savingsAccount.interestCalculationType,o.savingsAccountProductTemplate.interestCalculationTypeOptions,"id","value"))),n(4),f("",l(80,96,"labels.inputs.Days in Year"),":"),n(3),p(o.getCatalogTranslation(tt(83,98,o.savingsAccount.interestCalculationDaysInYearType,o.savingsAccountProductTemplate.interestCalculationDaysInYearTypeOptions,"id","value"))),n(2),_(o.savingsAccount.minRequiredOpeningBalance?84:-1),n(3),f("",l(88,103,"labels.inputs.Apply Withdrawal Fee for Transfers"),":"),n(3),p(l(91,105,o.savingsAccount.withdrawalFeeForTransfers)),n(2),_(o.savingsAccount.lockinPeriodFrequency?92:-1),n(3),f("",l(96,107,"labels.inputs.Is Overdraft Allowed"),":"),n(3),p(l(99,109,o.savingsAccount.allowOverdraft)),n(2),_(o.savingsAccount.minOverdraftForInterestCalculation?100:-1),n(),_(o.savingsAccount.nominalAnnualInterestRateOverdraft?101:-1),n(),_(o.savingsAccount.overdraftLimit?102:-1),n(3),f("",l(106,111,"labels.inputs.Enforce Minimum Balance"),":"),n(3),p(l(109,113,o.savingsAccount.enforceMinRequiredBalance)),n(2),_(o.savingsAccount.minRequiredBalance?110:-1),n(),_(o.savingsAccount.charges.length?111:-1),n(4),f(" ",l(116,115,"labels.buttons.Previous")," "),n(2),d("routerLink",k(121,ts)),n(),f(" ",l(119,117,"labels.buttons.Cancel")," "),n(3),f(" ",l(122,119,"labels.buttons.Submit")," "))},dependencies:[P,O,q,F,tn,Be,Lt,qt,Ut,Ht,Gt,zt,jt,Wt,$t,Qt,le,St,Bt,y,Nt,wi,me,mn],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function ks(t,m){t&1&&C(0,"fa-icon",14)}function Bs(t,m){t&1&&C(0,"fa-icon",14)}function Ns(t,m){t&1&&C(0,"fa-icon",15)}function Rs(t,m){t&1&&C(0,"fa-icon",16)}function Vs(t,m){t&1&&C(0,"fa-icon",17)}function Ls(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Gs(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function Us(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function qs(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function Hs(t,m){if(t&1){let e=D();i(0,"mat-step",13),A(1,qs,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",18),b("submitEvent",function(){S(e);let o=h();return M(o.submit())}),a()()}if(t&2){let e=h();n(2),d("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}var Nn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.route.data.subscribe(e=>{this.savingsAccountTemplate=e.savingsAccountTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid}get savingsAccount(){return G(G(G({},this.savingsAccountDetailsStep.savingsAccountDetails),this.savingsAccountTermsStep.savingsAccountTerms),this.savingsAccountChargesStep.savingsAccountCharges)}submit(){let e=this.settingsService.language.code,s=this.settingsService.dateFormat,u=Q(G({},this.savingsAccount),{charges:this.savingsAccount.charges.map(x=>({chargeId:x.id,amount:x.amount,dueDate:x.dueDate,feeOnMonthDay:x.feeOnMonthDay,feeInterval:x.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,s),dateFormat:s,monthDayFormat:"dd MMMM",locale:e});this.savingsAccountTemplate.clientId?u.clientId=this.savingsAccountTemplate.clientId:u.groupId=this.savingsAccountTemplate.groupId,this.savingsService.createSavingsAccount(u).subscribe(x=>{this.router.navigate(["../",x.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-create-savings-account"]],viewQuery:function(s,o){if(s&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7)),s&2){let u;Ot(u=Dt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=Dt())&&(o.savingsAccountTermsStep=u.first),Ot(u=Dt())&&(o.savingsAccountChargesStep=u.first)}},decls:18,vars:9,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-stepper",2,0),A(3,ks,1,0,"ng-template",3)(4,Bs,1,0,"ng-template",4)(5,Ns,1,0,"ng-template",5)(6,Rs,1,0,"ng-template",6)(7,Vs,1,0,"ng-template",7),i(8,"mat-step",8),A(9,Ls,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return S(u),M(o.setTemplate(B))}),a()(),i(11,"mat-step",8),A(12,Gs,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",11),a(),i(14,"mat-step"),A(15,Us,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",12),a(),v(17,Hs,3,4,"mat-step",13),a()()}s&2&&(n(),d("linear",!1),n(7),d("stepControl",o.savingsAccountDetailsForm),n(2),d("savingsAccountTemplate",o.savingsAccountTemplate),n(),d("stepControl",o.savingsAccountTermsForm),n(2),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate),n(3),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountTemplate)("currencyCode",o.savingsAccountTermsForm.get("currencyCode")),n(),_(o.savingsAccountFormValid?17:-1))},dependencies:[P,O,ke,Ee,St,Fe,we,oe,re,ce,be,y],encapsulation:2})}}return t})();function zs(t,m){t&1&&C(0,"fa-icon",13)}function js(t,m){t&1&&C(0,"fa-icon",13)}function $s(t,m){t&1&&C(0,"fa-icon",14)}function Ws(t,m){t&1&&C(0,"fa-icon",15)}function Qs(t,m){t&1&&C(0,"fa-icon",16)}function Ks(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Ys(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function Js(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function Xs(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function Zs(t,m){if(t&1){let e=D();i(0,"mat-step",12),A(1,Xs,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",17),b("submitEvent",function(){S(e);let o=h();return M(o.submit())}),a()()}if(t&2){let e=h();n(2),d("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountAndTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)}}var Rn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.route.data.subscribe(e=>{this.savingsAccountAndTemplate=e.savingsAccountAndTemplate})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get savingsAccountFormValidAndNotPristine(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&(!this.savingsAccountDetailsForm.pristine||!this.savingsAccountTermsForm.pristine||!this.savingsAccountChargesStep.pristine)}get savingsAccount(){return G(G(G({},this.savingsAccountDetailsStep.savingsAccountDetails),this.savingsAccountTermsStep.savingsAccountTerms),this.savingsAccountChargesStep.savingsAccountCharges)}submit(){let e=this.settingsService.language.code,s=this.settingsService.dateFormat,u=Q(G({},this.savingsAccount),{charges:this.savingsAccount.charges.map(x=>({chargeId:x.id,amount:x.amount,dueDate:this.dateUtils.formatDate(x.dueDate,s),feeOnMonthDay:this.dateUtils.formatDate(x.feeOnMonthDay,s),feeInterval:x.feeInterval})),submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,s),dateFormat:s,monthDayFormat:"dd MMMM",locale:e});this.savingsAccountAndTemplate.clientId?u.clientId=this.savingsAccountAndTemplate.clientId:u.groupId=this.savingsAccountAndTemplate.groupId,this.savingsService.updateSavingsAccount(this.savingsAccountAndTemplate.id,u).subscribe(x=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-edit-savings-account"]],viewQuery:function(s,o){if(s&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7)),s&2){let u;Ot(u=Dt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=Dt())&&(o.savingsAccountTermsStep=u.first),Ot(u=Dt())&&(o.savingsAccountChargesStep=u.first)}},decls:18,vars:10,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-stepper",2,0),A(3,zs,1,0,"ng-template",3)(4,js,1,0,"ng-template",4)(5,$s,1,0,"ng-template",5)(6,Ws,1,0,"ng-template",6)(7,Qs,1,0,"ng-template",7),i(8,"mat-step",8),A(9,Ks,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return S(u),M(o.setTemplate(B))}),a()(),i(11,"mat-step",8),A(12,Ys,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",10),a(),i(14,"mat-step"),A(15,Js,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",11),a(),v(17,Zs,3,4,"mat-step",12),a()()}s&2&&(n(),d("linear",!1),n(7),d("stepControl",o.savingsAccountDetailsForm),n(2),d("savingsAccountTemplate",o.savingsAccountAndTemplate),n(),d("stepControl",o.savingsAccountTermsForm),n(2),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountAndTemplate),n(3),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountAndTemplate)("currencyCode",o.savingsAccountTermsForm.get("currencyCode")),n(),_(o.savingsAccountFormValidAndNotPristine?17:-1))},dependencies:[P,O,ke,Ee,St,Fe,we,oe,re,ce,be,y],encapsulation:2})}}return t})();var tl=()=>["./general"],el=t=>["./datatables",t];function nl(t,m){if(t&1&&(i(0,"a",5,2),r(2),a()),t&2){let e=w(1),s=h().$implicit;d("routerLink",kt(3,el,s.registeredTableName))("active",e.isActive),n(2),f(" ",s.registeredTableName," ")}}function il(t,m){if(t&1&&A(0,nl,3,5,"a",6),t&2){let e=m.$implicit;d("mifosxHasPermission","READ_"+e.registeredTableName)}}var Vn=(()=>{class t{constructor(){this.route=g(E),this.dialog=g(yt),this.route.data.subscribe(e=>{this.accountId=this.route.snapshot.params.savingAccountId,this.entityDatatables=e.transactionDatatables})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-view-transaction"]],decls:11,vars:7,consts:[["general","routerLinkActive"],["tabPanel",""],["datatable","routerLinkActive"],[1,"container"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"]],template:function(s,o){if(s&1&&(i(0,"div",3)(1,"nav",4)(2,"a",5,0),r(4),c(5,"translate"),a(),ut(6,il,1,1,"a",5,dt),a(),i(8,"mat-tab-nav-panel",null,1),C(10,"router-outlet"),a()()),s&2){let u=w(3),x=w(9);n(),d("tabPanel",x),n(),d("routerLink",k(6,tl))("active",u.isActive),n(2),f(" ",l(5,4,"labels.heading.General")," "),n(2),gt(o.entityDatatables)}},dependencies:[P,O,q,Rt,rn,cn,Je,sn,Ye,y],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return t})();var al=()=>["../"];function ol(t,m){if(t&1){let e=D();i(0,"button",9),b("click",function(){S(e);let o=h(2);return M(o.payCharge())}),C(1,"fa-icon",10),r(2," Pay "),a()}}function rl(t,m){if(t&1){let e=D();i(0,"button",11),b("click",function(){S(e);let o=h(2);return M(o.waiveCharge())}),C(1,"fa-icon",12),r(2," Waive "),a()}}function cl(t,m){if(t&1){let e=D();i(0,"button",14),b("click",function(){S(e);let o=h(3);return M(o.inactivateCharge())}),C(1,"fa-icon",15),r(2," Inactivate "),a()}}function sl(t,m){t&1&&(i(0,"span"),A(1,cl,3,0,"button",13),a()),t&2&&(n(),d("mifosxHasPermission","INACTIVATE_SAVINGSACCOUNTCHARGE"))}function ll(t,m){if(t&1&&(i(0,"div",0),A(1,ol,3,0,"button",7)(2,rl,3,0,"button",8),v(3,sl,2,1,"span"),a()),t&2){let e=h();n(),d("mifosxHasPermission","PAY_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","WAIVE_SAVINGSACCOUNTCHARGE"),n(),_(e.isRecurringCharge()?3:-1)}}function ml(t,m){if(t&1){let e=D();i(0,"button",11),b("click",function(){S(e);let o=h(2);return M(o.editCharge())}),C(1,"fa-icon",16),r(2," Edit "),a()}}function pl(t,m){if(t&1){let e=D();i(0,"button",14),b("click",function(){S(e);let o=h(2);return M(o.deleteCharge())}),C(1,"fa-icon",15),r(2," Delete "),a()}}function dl(t,m){t&1&&(i(0,"div",0),A(1,ml,3,0,"button",8)(2,pl,3,0,"button",13),a()),t&2&&(n(),d("mifosxHasPermission","UPDATE_SAVINGSACCOUNTCHARGE"),n(),d("mifosxHasPermission","DELETE_SAVINGSACCOUNTCHARGE"))}var Ln=(()=>{class t{constructor(){this.savingsService=g(I),this.route=g(E),this.dateUtils=g(j),this.router=g(z),this.dialog=g(yt),this.settingsService=g(U),this.route.data.subscribe(e=>{this.chargeData=e.savingsAccountCharge}),this.route.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData})}payCharge(){let e=[new pe({controlName:"amount",label:"Amount",value:"",type:"number",required:!0}),new Ne({controlName:"dueDate",label:"Payment Date",value:"",type:"date",required:!0})],s={title:"Pay Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(se,{data:s}).afterClosed().subscribe(u=>{if(u.data){let x=this.settingsService.language.code,B=this.settingsService.dateFormat,Yt=Q(G({},u.data.value),{dueDate:this.dateUtils.formatDate(u.data.value.dueDate,B),dateFormat:B,locale:x});this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"pay",Yt,this.chargeData.id).subscribe(()=>{this.reload()})}})}waiveCharge(){this.dialog.open(Le,{data:{id:this.chargeData.id}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"waive",{},this.chargeData.id).subscribe(()=>{this.reload()})})}inactivateCharge(){this.dialog.open(Ge,{data:{id:this.chargeData.id}}).afterClosed().subscribe(s=>{s.confirm&&this.savingsService.executeSavingsAccountChargesCommand(this.chargeData.accountId,"inactivate",{},this.chargeData.id).subscribe(()=>{this.reload()})})}editCharge(){let e=[new pe({controlName:"amount",label:"Amount",value:this.chargeData.amount||this.chargeData.amountOrPercentage,type:"number",required:!0})],s={title:"Edit Charge",layout:{addButtonText:"Confirm"},formfields:e};this.dialog.open(se,{data:s}).afterClosed().subscribe(u=>{if(u.data){let x=this.settingsService.language.code,B=this.settingsService.dateFormat,Yt=Q(G({},u.data.value),{dateFormat:B,locale:x});this.savingsService.editSavingsAccountCharge(this.chargeData.accountId,Yt,this.chargeData.id).subscribe(()=>{this.reload()})}})}deleteCharge(){this.dialog.open(ve,{data:{deleteContext:`charge id:${this.chargeData.id}`}}).afterClosed().subscribe(s=>{s.delete&&this.savingsService.deleteSavingsAccountCharge(this.chargeData.accountId,this.chargeData.id).subscribe(()=>{this.reload()})})}isRecurringCharge(){let e=this.chargeData.chargeTimeType.value;return e==="Monthly Fee"||e==="Annual Fee"||e==="Weekly Fee"}reload(){let e=this.router.url.replace(`/${this.chargeData.id}`,""),s=this.router.url.slice(0,this.router.url.indexOf("savings-accounts")+16);this.router.navigateByUrl(s,{skipLocationChange:!0}).then(()=>this.router.navigate([e]))}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-view-charge"]],decls:68,vars:66,consts:[[1,"layout-row","align-end","gap-2percent","layout-xs-column","container","m-b-20"],[1,"container"],[1,"layout-row-wrap"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],["mat-raised-button","","color","accent",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","accent",3,"click"],["icon","dollar-sign",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click"],["icon","flag",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","trash",1,"m-r-10"],["icon","edit",1,"m-r-10"]],template:function(s,o){s&1&&(v(0,ll,4,3,"div",0),v(1,dl,3,2,"div",0),i(2,"div",1)(3,"mat-card")(4,"mat-card-content")(5,"div",2)(6,"div",3),r(7),c(8,"translate"),a(),i(9,"div",4),r(10),a(),i(11,"div",3),r(12),c(13,"translate"),a(),i(14,"div",4),r(15),c(16,"translateKey"),a(),i(17,"div",3),r(18),c(19,"translate"),a(),i(20,"div",4),r(21),a(),i(22,"div",3),r(23),c(24,"translate"),a(),i(25,"div",4),r(26),c(27,"translateKey"),a(),i(28,"div",3),r(29),c(30,"translate"),a(),i(31,"div",4),r(32),c(33,"dateFormat"),a(),i(34,"div",3),r(35),c(36,"translate"),a(),i(37,"div",4),r(38),c(39,"translateKey"),a(),i(40,"div",3),r(41),c(42,"translate"),a(),i(43,"div",4),r(44),c(45,"formatNumber"),a(),i(46,"div",3),r(47),c(48,"translate"),a(),i(49,"div",4),r(50),c(51,"formatNumber"),a(),i(52,"div",3),r(53),c(54,"translate"),a(),i(55,"div",4),r(56),c(57,"formatNumber"),a(),i(58,"div",3),r(59),c(60,"translate"),a(),i(61,"div",4),r(62),c(63,"formatNumber"),a()(),i(64,"div",5)(65,"button",6),r(66),c(67,"translate"),a()()()()()),s&2&&(_(o.savingsAccountData.status.value==="Active"&&o.chargeData.amountOutstanding!==0?0:-1),n(),_(o.savingsAccountData.status.value==="Submitted and pending approval"?1:-1),n(6),f(" ",l(8,24,"labels.inputs.Name")," "),n(3),f(" ",o.chargeData.name," "),n(2),f(" ",l(13,26,"labels.inputs.Charge Type")," "),n(3),f(" ",o.chargeData.penalty?"Penalty":Mt(16,28,"Fee","catalogs")," "),n(3),f(" ",l(19,31,"labels.inputs.Currency")," "),n(3),f(" ",o.chargeData.currency.displayLabel," "),n(2),f(" ",l(24,33,"labels.inputs.Payment due at")," "),n(3),f(" ",Mt(27,35,o.chargeData.chargeTimeType.value,"catalogs")," "),n(3),f(" ",l(30,38,"labels.inputs.Payment due as of")," "),n(3),f(" ",l(33,40,o.chargeData.dueDate)," "),n(3),f(" ",l(36,42,"labels.inputs.Calculation Type")," "),n(3),f(" ",Mt(39,44,o.chargeData.chargeCalculationType.value,"catalogs")," "),n(3),f(" ",l(42,47,"labels.inputs.Due")," "),n(3),f(" ",l(45,49,o.chargeData.amount)," "),n(3),f(" ",l(48,51,"labels.inputs.Paid")," "),n(3),f(" ",l(51,53,o.chargeData.amountPaid)," "),n(3),f(" ",l(54,55,"labels.inputs.Waived")," "),n(3),f(" ",l(57,57,o.chargeData.amountWaived)," "),n(3),f(" ",l(60,59,"labels.inputs.Outstanding")," "),n(3),f(" ",l(63,61,o.chargeData.amountOutstanding)," "),n(3),d("routerLink",k(65,al)),n(),f(" ",l(67,63,"labels.buttons.Back")," "))},dependencies:[P,O,q,J,ct,F,Rt,St,Bt,y,Nt,me],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}"]})}}return t})();var ul=()=>["../../"],Gn=(()=>{class t{constructor(){this.sanitizer=g(Ke),this.route=g(E),this.route.data.subscribe(e=>{this.transactionRecieptData=e.savingsTransactionReciept})}ngOnInit(){let e=this.transactionRecieptData.headers.get("Content-Type"),s=new Blob([this.transactionRecieptData.body],{type:e}),o=URL.createObjectURL(s);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-view-reciept"]],decls:6,vars:3,consts:[[1,"container"],[1,"back-button"],["type","button","color","primary","mat-raised-button","",3,"routerLink"],["icon","arrow-left",1,"m-r-10"],["frameborder","0","width","100%","height","600px;",3,"src"]],template:function(s,o){s&1&&(i(0,"mat-card",0)(1,"div",1)(2,"button",2),C(3,"fa-icon",3),r(4,"Back "),a()(),C(5,"iframe",4),a()),s&2&&(n(2),d("routerLink",k(2,ul)),n(3),d("src",o.pentahoUrl,$e))},dependencies:[P,O,q,J,F,St],styles:[".container[_ngcontent-%COMP%]{max-width:50rem}.container[_ngcontent-%COMP%] .back-button[_ngcontent-%COMP%]{max-height:2%;margin-bottom:2%}"]})}}return t})();var gl=()=>["../"];function fl(t,m){if(t&1&&C(0,"iframe",12),t&2){let e=h();d("src",e.pentahoUrl,$e)}}var Un=(()=>{class t{constructor(){this.sanitizer=g(Ke),this.reportsService=g(dn),this.formBuilder=g(rt),this.dateUtils=g(j),this.route=g(E),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.hideOutput=!0,this.route.parent.parent.data.subscribe(e=>{this.savingsAccountId=e.savingsAccountData.accountNo})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createTransactionsReportForm()}createTransactionsReportForm(){this.transactionsReportForm=this.formBuilder.group({fromDate:["",H.required],toDate:["",H.required]})}generate(){let e={"output-type":"PDF",R_startDate:this.dateUtils.formatDate(this.transactionsReportForm.value.fromDate,this.settingsService.dateFormat),R_endDate:this.dateUtils.formatDate(this.transactionsReportForm.value.toDate,this.settingsService.dateFormat),R_savingsAccountId:this.savingsAccountId};this.reportsService.getPentahoRunReportData("Client Saving Transactions",e,"default",this.settingsService.language.code,this.settingsService.dateFormat).subscribe(s=>{let o=s.headers.get("Content-Type"),u=new Blob([s.body],{type:o}),x=URL.createObjectURL(u);this.pentahoUrl=this.sanitizer.bypassSecurityTrustResourceUrl(x),this.hideOutput=!1})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-export-transactions"]],decls:41,vars:43,consts:[["fromDatePicker",""],["toDatePicker",""],[1,"m-t-20","layout-column",3,"ngSubmit","formGroup"],[1,"layout-row","layout-align-center","gap-3percent"],[1,"flex-30",3,"click"],["matInput","","required","","formControlName","fromDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","toDate",3,"min","max","matDatepicker"],[1,"generate-button","layout-row","layout-xs-column","layout-align-center","gap-5percent"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["icon","cogs",1,"m-r-10"],["frameborder","0","width","100%","height","750px;",3,"src"]],template:function(s,o){if(s&1){let u=D();i(0,"form",2),b("ngSubmit",function(){return S(u),M(o.generate())}),i(1,"div",3)(2,"mat-form-field",4),b("click",function(){S(u);let B=w(9);return M(B.open())}),i(3,"mat-label"),r(4),c(5,"translate"),a(),C(6,"input",5)(7,"mat-datepicker-toggle",6)(8,"mat-datepicker",null,0),i(10,"mat-error"),r(11),c(12,"translate"),c(13,"translate"),i(14,"strong"),r(15),c(16,"translate"),a()()(),i(17,"mat-form-field",4),b("click",function(){S(u);let B=w(24);return M(B.open())}),i(18,"mat-label"),r(19),c(20,"translate"),a(),C(21,"input",7)(22,"mat-datepicker-toggle",6)(23,"mat-datepicker",null,1),i(25,"mat-error"),r(26),c(27,"translate"),c(28,"translate"),i(29,"strong"),r(30),c(31,"translate"),a()()()(),i(32,"div",8)(33,"button",9),r(34),c(35,"translate"),a(),i(36,"button",10),C(37,"fa-icon",11),r(38),c(39,"translate"),a()()(),v(40,fl,1,1,"iframe",12)}if(s&2){let u=w(9),x=w(24);d("formGroup",o.transactionsReportForm),n(4),p(l(5,22,"labels.inputs.From Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(4),V(" ",l(12,24,"labels.inputs.From Date")," ",l(13,26,"labels.commons.is")," "),n(4),p(l(16,28,"labels.commons.required")),n(4),p(l(20,30,"labels.inputs.To Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",x),n(),d("for",x),n(4),V(" ",l(27,32,"labels.inputs.To Date")," ",l(28,34,"labels.commons.is")," "),n(4),p(l(31,36,"labels.commons.required")),n(3),d("routerLink",k(42,gl)),n(),p(l(35,38,"labels.buttons.Cancel")),n(2),d("disabled",!o.transactionsReportForm.valid),n(2),f("",l(39,40,"labels.buttons.Generate Report")," \xA0 "),n(2),_(o.hideOutput?-1:40)}},dependencies:[P,O,it,et,K,nt,lt,at,ot,q,Z,X,mt,vt,st,ht,xt,_t,F,St,y],styles:[".generate-button[_ngcontent-%COMP%]{max-height:2%;padding:1% 0 2% 6%;align-self:center}"]})}}return t})();var Cl=()=>["../"];function vl(t,m){t&1&&(i(0,"mat-error"),r(1),c(2,"translate"),c(3,"translate"),i(4,"strong"),r(5),c(6,"translate"),a()()),t&2&&(n(),V(" ",l(2,3,"labels.inputs.Transaction Date")," ",l(3,5,"labels.commons.is")," "),n(4),p(l(6,7,"labels.commons.required")))}function _l(t,m){if(t&1&&(i(0,"mat-option",9),r(1),a()),t&2){let e=m.$implicit;d("value",e.id),n(),f(" ",e.name," ")}}function hl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",17),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Account Number")))}function xl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",18),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Cheque")))}function bl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",19),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Routing Code")))}function Sl(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",20),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Receipt Number")))}function Ml(t,m){t&1&&(i(0,"mat-form-field")(1,"mat-label"),r(2),c(3,"translate"),a(),C(4,"input",21),a()),t&2&&(n(2),p(l(3,1,"labels.inputs.Bank")))}var qn=(()=>{class t{constructor(){this.formBuilder=g(rt),this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.showPaymentDetails=!1,this.route.data.subscribe(e=>{this.transactionTemplateData=e.savingsAccountTransactionTemplate,e.savingsAccountTransactionTemplate.currency&&(this.currency=e.savingsAccountTransactionTemplate.currency),this.paymentTypeOptions=this.transactionTemplateData.paymentTypeOptions}),this.savingAccountId=this.route.snapshot.params.savingAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createEditTransactionForm(),this.editTransactionForm.patchValue({transactionDate:this.transactionTemplateData.date&&new Date(this.transactionTemplateData.date),transactionAmount:this.transactionTemplateData.amount,paymentTypeId:this.transactionTemplateData.paymentTypeId})}createEditTransactionForm(){this.editTransactionForm=this.formBuilder.group({transactionDate:["",H.required],transactionAmount:["",H.required],paymentTypeId:[""]})}addPaymentDetails(){this.showPaymentDetails=!this.showPaymentDetails,this.showPaymentDetails?(this.editTransactionForm.addControl("accountNumber",new Ct("")),this.editTransactionForm.addControl("checkNumber",new Ct("")),this.editTransactionForm.addControl("routingCode",new Ct("")),this.editTransactionForm.addControl("receiptNumber",new Ct("")),this.editTransactionForm.addControl("bankNumber",new Ct(""))):(this.editTransactionForm.removeControl("accountNumber"),this.editTransactionForm.removeControl("checkNumber"),this.editTransactionForm.removeControl("routingCode"),this.editTransactionForm.removeControl("receiptNumber"),this.editTransactionForm.removeControl("bankNumber"))}submit(){let e=this.editTransactionForm.value,s=this.settingsService.language.code,o=this.settingsService.dateFormat,u=this.editTransactionForm.value.transactionDate;e.transactionDate instanceof Date&&(e.transactionDate=this.dateUtils.formatDate(u,o));let x=Q(G({},e),{dateFormat:o,locale:s});this.savingsService.executeSavingsAccountTransactionsCommand(this.savingAccountId,"modify",x,this.transactionTemplateData.id).subscribe(B=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-edit-transaction"]],decls:40,vars:34,consts:[["dueDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","formControlName","transactionDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[3,"currency","isRequired","inputFormControl","inputLabel"],["formControlName","paymentTypeId"],[3,"value"],[1,"flex-fill"],[1,"expandcollapsebutton","m-l-10","m-t-40","flex-75",3,"click"],[3,"className"],[1,"m-l-10"],[1,"layout-row","layout-xs-column","layout-align-center","gap-5px"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"],["type","number","formControlName","accountNumber","matInput",""],["type","number","formControlName","checkNumber","matInput",""],["formControlName","routingCode","matInput",""],["formControlName","receiptNumber","matInput",""],["formControlName","bankNumber","matInput",""]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return S(u),M(o.submit())}),i(3,"mat-card-content",3)(4,"mat-form-field",4),b("click",function(){S(u);let B=w(11);return M(B.open())}),i(5,"mat-label"),r(6),c(7,"translate"),a(),C(8,"input",5)(9,"mat-datepicker-toggle",6)(10,"mat-datepicker",null,0),v(12,vl,7,9,"mat-error"),a(),C(13,"mifosx-input-amount",7),i(14,"mat-form-field")(15,"mat-label"),r(16),c(17,"translate"),a(),i(18,"mat-select",8),ut(19,_l,2,2,"mat-option",9,dt),a()(),i(21,"div",10)(22,"span",11),b("click",function(){return S(u),M(o.addPaymentDetails())}),i(23,"mat-slide-toggle")(24,"div",12)(25,"span",13),r(26),c(27,"translate"),a()()()()(),v(28,hl,5,3,"mat-form-field"),v(29,xl,5,3,"mat-form-field"),v(30,bl,5,3,"mat-form-field"),v(31,Sl,5,3,"mat-form-field"),v(32,Ml,5,3,"mat-form-field"),i(33,"mat-card-actions",14)(34,"button",15),r(35),c(36,"translate"),a(),i(37,"button",16),r(38),c(39,"translate"),a()()()()()()}if(s&2){let u=w(11);n(2),d("formGroup",o.editTransactionForm),n(4),p(l(7,23,"labels.inputs.Transaction Date")),n(2),d("min",o.minDate)("max",o.maxDate)("matDatepicker",u),n(),d("for",u),n(3),_(o.editTransactionForm.controls.transactionDate.hasError("required")?12:-1),n(),d("currency",o.currency)("isRequired",!0)("inputFormControl",o.editTransactionForm.controls.transactionAmount)("inputLabel","Transaction Amount"),n(3),p(l(17,25,"labels.inputs.Payment Type")),n(3),gt(o.paymentTypeOptions),n(5),d("className",o.showPaymentDetails?"enabled":"disabled"),n(2),p(l(27,27,"labels.inputs.Show Payment Details")),n(2),_(o.editTransactionForm.controls.accountNumber?28:-1),n(),_(o.editTransactionForm.controls.checkNumber?29:-1),n(),_(o.editTransactionForm.controls.routingCode?30:-1),n(),_(o.editTransactionForm.controls.receiptNumber?31:-1),n(),_(o.editTransactionForm.controls.bankNumber?32:-1),n(2),d("routerLink",k(33,Cl)),n(),f(" ",l(36,29,"labels.buttons.Cancel")," "),n(2),d("disabled",!o.editTransactionForm.valid),n(),f(" ",l(39,31,"labels.buttons.Submit")," ")}},dependencies:[P,O,it,et,ie,K,nt,lt,at,ot,q,J,ct,bt,Z,X,mt,vt,st,wt,It,ht,xt,_t,F,Re,Ie,y],styles:[".container[_ngcontent-%COMP%]{width:37rem}"]})}}return t})();function Al(t,m){if(t&1){let e=D();i(0,"th",13)(1,"mat-checkbox",14),b("change",function(){S(e);let o=h(2);return M(o.toggleSelects())}),Zn("ngModelChange",function(o){S(e);let u=h(2);return Xn(u.selectAllItems,o)||(u.selectAllItems=o),M(o)}),a()()}if(t&2){let e=h(2);n(),Jn("ngModel",e.selectAllItems)}}function Tl(t,m){if(t&1){let e=D();i(0,"td",15)(1,"mat-checkbox",14),b("change",function(){S(e);let o=h(2);return M(o.toggleSelect())}),Zn("ngModelChange",function(o){let u=S(e).$implicit;return Xn(u.selected,o)||(u.selected=o),M(o)}),a()()}if(t&2){let e=m.$implicit;n(),Jn("ngModel",e.selected)}}function Pl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client ID")))}function Ol(t,m){if(t&1&&(i(0,"td",15),r(1),a()),t&2){let e=m.$implicit;n(),p(e.id)}}function Dl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Client Name")))}function yl(t,m){if(t&1&&(i(0,"td",15),r(1),a()),t&2){let e=m.$implicit;n(),p(e.displayName)}}function Il(t,m){t&1&&C(0,"tr",16)}function wl(t,m){t&1&&C(0,"tr",17)}function El(t,m){if(t&1&&(i(0,"div")(1,"table",5),N(2,6),A(3,Al,2,1,"th",7)(4,Tl,2,1,"td",8),R(),N(5,9),A(6,Pl,3,3,"th",7)(7,Ol,2,1,"td",8),R(),N(8,10),A(9,Dl,3,3,"th",7)(10,yl,2,1,"td",8),R(),A(11,Il,1,0,"tr",11)(12,wl,1,0,"tr",12),a()()),t&2){let e=h();n(),d("dataSource",e.dataSource),n(10),d("matHeaderRowDef",e.displayedColumn),n(),d("matRowDefColumns",e.displayedColumn)}}var ze=(()=>{class t{constructor(){this.selectAllItems=!1,this.displayedColumn=["check","id","name"]}ngOnInit(){this.dataSource=new Jt(this.activeClientMembers)}get selectedClientMembers(){return{selectedMembers:this.activeClientMembers.filter(e=>e.selected)}}toggleSelects(){for(let e of this.activeClientMembers)e.selected=this.selectAllItems}toggleSelect(){let e=this.activeClientMembers.length;this.selectAllItems=e===0?!1:this.activeClientMembers.filter(s=>s.selected).length===e}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-active-client-members"]],inputs:{activeClientMembers:"activeClientMembers"},decls:10,vars:8,consts:[[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"],["mat-table","",1,"flex-98",3,"dataSource"],["matColumnDef","check"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","name"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],[3,"change","ngModelChange","ngModel"],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(s,o){s&1&&(v(0,El,13,3,"div"),i(1,"div",0)(2,"button",1),C(3,"fa-icon",2),r(4),c(5,"translate"),a(),i(6,"button",3),r(7),c(8,"translate"),C(9,"fa-icon",4),a()()),s&2&&(_(o.activeClientMembers?0:-1),n(4),f(" ",l(5,4,"labels.buttons.Previous")," "),n(2),d("disabled",o.selectedClientMembers.selectedMembers.length===0),n(),f(" ",l(8,6,"labels.buttons.Next")," "))},dependencies:[P,O,K,F,Ce,Lt,qt,Ut,Ht,Mi,bi,Gt,zt,jt,Wt,$t,Qt,le,St,_e,y],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return t})();function Fl(t,m){t&1&&C(0,"fa-icon",15)}function kl(t,m){t&1&&C(0,"fa-icon",15)}function Bl(t,m){t&1&&C(0,"fa-icon",16)}function Nl(t,m){t&1&&C(0,"fa-icon",17)}function Rl(t,m){t&1&&C(0,"fa-icon",18)}function Vl(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.DETAILS"))}function Ll(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.TERMS"))}function Gl(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.CHARGES"))}function Ul(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.heading.Active Client Members"))}function ql(t,m){t&1&&(r(0),c(1,"translate")),t&2&&p(l(1,1,"labels.inputs.PREVIEW"))}function Hl(t,m){if(t&1){let e=D();i(0,"mat-step",14),A(1,ql,2,3,"ng-template",9),i(2,"mifosx-savings-account-preview-step",19),b("submitEvent",function(){S(e);let o=h();return M(o.submit())}),a()()}if(t&2){let e=h();n(2),d("savingsAccountProductTemplate",e.savingsAccountProductTemplate)("savingsAccountTemplate",e.savingsAccountTemplate)("savingsAccountTermsForm",e.savingsAccountTermsForm)("savingsAccount",e.savingsAccount)("activeClientMembers",e.activeClientMembers)}}var Hn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.dateUtils=g(j),this.savingsService=g(I),this.settingsService=g(U),this.route.data.subscribe(e=>{this.savingsAccountTemplate=e.savingsAccountTemplate,this.dataSource=e.groupsData.activeClientMembers})}setTemplate(e){this.savingsAccountProductTemplate=e}get savingsAccountDetailsForm(){return this.savingsAccountDetailsStep.savingsAccountDetailsForm}get savingsAccountTermsForm(){return this.savingsAccountTermsStep.savingsAccountTermsForm}get activeClientMembers(){return this.dataSource}get savingsAccountFormValid(){return this.savingsAccountDetailsForm.valid&&this.savingsAccountTermsForm.valid&&this.activeClientMembers.filter(e=>e.selected).length>0}get savingsAccount(){return this.selectedMembers=this.savingsActiveClientMembers.selectedClientMembers,G(G(G({},this.savingsAccountDetailsStep.savingsAccountDetails),this.savingsAccountTermsStep.savingsAccountTerms),this.savingsAccountChargesStep.savingsAccountCharges)}setData(e,s){let o=this.settingsService.language.code,u=this.settingsService.dateFormat,B=Q(G({},this.savingsAccount),{charges:this.savingsAccount.charges.map(Yt=>({chargeId:Yt.id,amount:Yt.amount})),clientId:e.id,isGSIM:!0,isParentAccount:s,submittedOnDate:this.dateUtils.formatDate(this.savingsAccount.submittedOnDate,u),dateFormat:u,monthDayFormat:"dd MMMM",locale:o});return B.groupId=this.savingsAccountTemplate.groupId,B}buildRequestData(){let e=[],s=this.selectedMembers.selectedMembers;for(let o=0;o<1;o++)e.push(this.setData(s[o],!0));for(let o=1;o{this.router.navigate(["../",o.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-create-gsim-account"]],viewQuery:function(s,o){if(s&1&&(Pt(oe,7),Pt(re,7),Pt(ce,7),Pt(ze,7)),s&2){let u;Ot(u=Dt())&&(o.savingsAccountDetailsStep=u.first),Ot(u=Dt())&&(o.savingsAccountTermsStep=u.first),Ot(u=Dt())&&(o.savingsAccountChargesStep=u.first),Ot(u=Dt())&&(o.savingsActiveClientMembers=u.first)}},decls:21,vars:11,consts:[["savingProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"savingsAccountProductTemplate","savingsAccountTemplate"],[3,"savingsAccountProductTemplate"],[3,"savingsAccountProductTemplate","savingsAccountTemplate","currencyCode","activeClientMembers"],[3,"activeClientMembers"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","savingsAccountProductTemplate","savingsAccountTemplate","savingsAccountTermsForm","savingsAccount","activeClientMembers"]],template:function(s,o){if(s&1){let u=D();i(0,"div",1)(1,"mat-stepper",2,0),A(3,Fl,1,0,"ng-template",3)(4,kl,1,0,"ng-template",4)(5,Bl,1,0,"ng-template",5)(6,Nl,1,0,"ng-template",6)(7,Rl,1,0,"ng-template",7),i(8,"mat-step",8),A(9,Vl,2,3,"ng-template",9),i(10,"mifosx-savings-account-details-step",10),b("savingsAccountProductTemplate",function(B){return S(u),M(o.setTemplate(B))}),a()(),i(11,"mat-step",8),A(12,Ll,2,3,"ng-template",9),C(13,"mifosx-savings-account-terms-step",11),a(),i(14,"mat-step"),A(15,Gl,2,3,"ng-template",9),C(16,"mifosx-savings-account-charges-step",12),a(),i(17,"mat-step"),A(18,Ul,2,3,"ng-template",9),C(19,"mifosx-savings-active-client-members",13),a(),v(20,Hl,3,5,"mat-step",14),a()()}s&2&&(n(),d("linear",!1),n(7),d("stepControl",o.savingsAccountDetailsForm),n(2),d("savingsAccountTemplate",o.savingsAccountTemplate),n(),d("stepControl",o.savingsAccountTermsForm),n(2),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate),n(3),d("savingsAccountProductTemplate",o.savingsAccountProductTemplate)("savingsAccountTemplate",o.savingsAccountTemplate)("currencyCode",o.savingsAccountTermsForm.get("currencyCode"))("activeClientMembers",o.activeClientMembers),n(3),d("activeClientMembers",o.activeClientMembers),n(),_(o.savingsAccountFormValid?20:-1))},dependencies:[P,O,ke,Ee,St,Fe,we,oe,re,ce,ze,be,y],encapsulation:2})}}return t})();var zl=()=>[10,20,25],jl=t=>["../","savings-accounts",t,"actions","Deposit"],$l=t=>["../","savings-accounts",t,"actions","Withdrawal"],Wl=t=>["../../../","savings-accounts",t,"actions","Approve"],Ql=t=>["../../../","savings-accounts",t,"actions","Undo Approval"],Kl=t=>["../../",t,"actions","Activate"],Yl=t=>["../../",t,"transactions"];function Jl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),c(3,"translate"),a()),t&2&&(n(),V(" ",l(2,2,"labels.inputs.Client")," ",l(3,4,"labels.inputs.Details")," "))}function Xl(t,m){if(t&1&&(i(0,"td",14),r(1),a()),t&2){let e=m.$implicit;n(),f(" ",e.displayName," ")}}function Zl(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Saving Account")))}function tm(t,m){if(t&1&&(i(0,"td",14),C(1,"i",15),c(2,"statusLookup"),r(3),a()),t&2){let e=m.$implicit;n(),d("ngClass",l(2,3,e.status.code))("matTooltip",e.status.value),n(2),f(" ",e.accountNo," ")}}function em(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.menus.Products")))}function nm(t,m){if(t&1&&(i(0,"td",14),r(1),a()),t&2){let e=m.$implicit;n(),p(e.productName)}}function im(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Balance")))}function am(t,m){t&1&&C(0,"td",14)}function om(t,m){t&1&&(i(0,"th",13),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Actions")))}function rm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",18),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,jl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Deposit")))}}function cm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",19),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,$l,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Withdraw")))}}function sm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",20),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,Wl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Approve")))}}function lm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",21),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,Ql,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Undo Approval")))}}function mm(t,m){if(t&1){let e=D();i(0,"button",17),b("click",function(o){S(e);let u=h(2);return M(u.routeEdit(o))}),C(1,"i",22),c(2,"translate"),a()}if(t&2){let e=h().$implicit;d("routerLink",kt(5,Kl,e.id)),n(),d("matTooltip",ft(l(2,3,"tooltips.Activate")))}}function pm(t,m){if(t&1&&(i(0,"td",14),v(1,rm,3,7,"button",16),v(2,cm,3,7,"button",16),v(3,sm,3,7,"button",16),v(4,lm,3,7,"button",16),v(5,mm,3,7,"button",16),a()),t&2){let e=m.$implicit;n(),_(e.status.active?1:-1),n(),_(e.status.active?2:-1),n(),_(e.status.submittedAndPendingApproval?3:-1),n(),_(!e.status.submittedAndPendingApproval&&!e.status.active?4:-1),n(),_(!e.status.submittedAndPendingApproval&&!e.status.active?5:-1)}}function dm(t,m){t&1&&C(0,"tr",23)}function um(t,m){if(t&1&&C(0,"tr",24),t&2){let e=m.$implicit;d("routerLink",kt(1,Yl,e.id))}}var zn=(()=>{class t{constructor(){this.route=g(E),this.dialog=g(yt),this.displayedColumns=["clientDetails","savingsAccount","products","balance","Actions"],this.route.data.subscribe(e=>{this.gsimOverviewData=e.gsimData[0].childGSIMAccounts,this.savingAccountData=e.savingAccountData,this.groupsData=e.groupsData})}ngOnInit(){this.setLoanClientChargeOverview()}setLoanClientChargeOverview(){this.dataSource=new Jt(this.gsimOverviewData)}routeEdit(e){e.stopPropagation()}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-gsim-account"]],viewQuery:function(s,o){if(s&1&&Pt(ye,7),s&2){let u;Ot(u=Dt())&&(o.paginator=u.first)}},decls:24,vars:8,consts:[[1,"tab-container","mat-typography"],[1,"content-container"],["mat-table","",3,"dataSource"],["matColumnDef","clientDetails"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","savingsAccount"],["matColumnDef","products"],["matColumnDef","balance"],["matColumnDef","Actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",3,"routerLink",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell",""],["mat-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-raised-button","","color","primary",1,"account-action-button",3,"routerLink"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","routerLink"],[1,"fa","fa-arrow-up",3,"matTooltip"],[1,"fa","fa-arrow-down",3,"matTooltip"],[1,"fa","fa-check",3,"matTooltip"],[1,"fa","fa-undo",3,"matTooltip"],[1,"fa","fa-check-circle",3,"matTooltip"],["mat-header-row",""],["mat-row","",3,"routerLink"]],template:function(s,o){s&1&&(i(0,"div",0)(1,"div",1)(2,"h2"),r(3),c(4,"translate"),a(),i(5,"table",2),N(6,3),A(7,Jl,4,6,"th",4)(8,Xl,2,1,"td",5),R(),N(9,6),A(10,Zl,3,3,"th",4)(11,tm,4,5,"td",5),R(),N(12,7),A(13,em,3,3,"th",4)(14,nm,2,1,"td",5),R(),N(15,8),A(16,im,3,3,"th",4)(17,am,1,0,"td",5),R(),N(18,9),A(19,om,3,3,"th",4)(20,pm,6,5,"td",5),R(),A(21,dm,1,0,"tr",10)(22,um,1,3,"tr",11),a(),C(23,"mat-paginator",12),a()()),s&2&&(n(3),p(l(4,5,"labels.heading.GSIM Account Overview")),n(2),d("dataSource",o.dataSource),n(16),d("matHeaderRowDef",o.displayedColumns),n(),d("matRowDefColumns",o.displayedColumns),n(),d("pageSizeOptions",k(7,zl)))},dependencies:[P,de,O,q,F,Lt,qt,Ut,Ht,Gt,zt,fe,jt,Wt,$t,Qt,ye,y,ln],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .content-container[_ngcontent-%COMP%]{margin-top:5px}.tab-container[_ngcontent-%COMP%] .group-details-container[_ngcontent-%COMP%]{border:1px solid;padding:1%}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tr.select-row[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover, .tab-container[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return t})();var ri=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.parent.paramMap.get("id"),o=e.paramMap.get("datatableName");return this.savingsService.getSavingsTransactionDatatable(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var ci=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){return this.savingsService.getSavingsTransactionDatatables()}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var jn=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("clientId")||e.paramMap.get("groupId")||e.paramMap.get("centerId"),o=!!(e.paramMap.get("groupId")||e.paramMap.get("centerId"));return this.savingsService.getSavingsAccountTemplate(s,void 0,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var si=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("savingAccountId");return this.savingsService.getSavingsAccountAndTemplate(s,!0)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var li=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId"),o=e.parent.paramMap.get("id");return this.savingsService.getSavingsAccountTransaction(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var mi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId"),o=e.paramMap.get("id");return this.savingsService.getSavingsAccountCharge(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var pi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("name"),o=e.paramMap.get("savingAccountId")||e.parent.parent.paramMap.get("savingAccountId");switch(s){case"Assign Staff":return this.savingsService.getSavingsAccountAndTemplate(o,!0);case"Add Charge":return this.savingsService.getSavingsChargeTemplateResource(o);case"Withdrawal":case"Deposit":case"Hold Amount":return this.savingsService.getSavingsTransactionTemplateResource(o);case"Close":return fi([this.savingsService.getSavingsTransactionTemplateResource(o),this.savingsService.getSavingsAccountData(o)]);case"Apply Annual Fees":return this.savingsService.getSavingsAccountData(o);default:return}}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var di=(()=>{class t{constructor(){this.reportsService=g(dn),this.settingsService=g(U)}resolve(e){let o={"output-type":"PDF",R_transactionId:e.paramMap.get("id")};return this.reportsService.getPentahoRunReportData("Savings Transaction Receipt",o,"default",this.settingsService.language.code,this.settingsService.dateFormat)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var ui=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId"),o=e.paramMap.get("id");return this.savingsService.getSavingsAccountTransactionTemplate(s,o)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var gi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.paramMap.get("groupId"),o=e.paramMap.get("savingAccountId");return this.savingsService.getGSIMAccountData(o,s)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac})}}return t})();var $n=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.settingsService=g(U),this.dialog=g(yt),this.entityType="savings",this.route.data.subscribe(e=>{this.setSavingsDocumentsData(e.savingsDocuments)}),this.entityId=this.route.parent.snapshot.paramMap.get("savingAccountId")}setSavingsDocumentsData(e){e.forEach(s=>{s.docUrl=this.settingsService.serverUrl+"/savings/"+s.parentEntityId+"/documents/"+s.id+"/attachment?tenantIdentifier="+Xe.fineractPlatformTenantId,s.fileName&&(s.fileName.toLowerCase().indexOf(".jpg")!==-1||s.fileName.toLowerCase().indexOf(".jpeg")!==-1||s.fileName.toLowerCase().indexOf(".png")!==-1)&&(s.fileIsImage=!0),s.type&&s.type.toLowerCase().indexOf("image")!==-1&&(s.fileIsImage=!0)}),this.entityDocuments=e}uploadDocument(e){return this.savingsService.loadSavingsDocument(this.entityId,e)}deleteDocument(e){this.savingsService.deleteSavingsDocument(this.entityId,e).subscribe(s=>{})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-documents-tab"]],decls:1,vars:5,consts:[[3,"entityType","entityId","entityDocuments","callbackUpload","callbackDelete"]],template:function(s,o){s&1&&C(0,"mifosx-entity-documents-tab",0),s&2&&d("entityType",o.entityType)("entityId",o.entityId)("entityDocuments",o.entityDocuments)("callbackUpload",o.uploadDocument)("callbackDelete",o.deleteDocument)},dependencies:[P,O,ki],encapsulation:2})}}return t})();var Wn=(()=>{class t{constructor(){this.route=g(E),this.savingsService=g(I),this.authenticationService=g(xi);let e=this.authenticationService.getCredentials();this.username=e.username,this.entityId=this.route.parent.snapshot.params.savingAccountId,this.route.data.subscribe(s=>{this.entityNotes=s.savingAccountNotes})}addNote(e){this.savingsService.createSavingsNote(this.entityId,e).subscribe(s=>{this.entityNotes.push({id:s.resourceId,createdByUsername:this.username,createdOn:new Date,note:e.note})})}editNote(e,s,o){this.savingsService.editSavingsNote(this.entityId,e,s).subscribe(()=>{this.entityNotes[o].note=s.note})}deleteNote(e,s){this.savingsService.deleteSavingsNote(this.entityId,e).subscribe(()=>{this.entityNotes.splice(s,1)})}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-notes-tab"]],decls:1,vars:5,consts:[[3,"entityId","entityNotes","callbackAdd","callbackEdit","callbackDelete"]],template:function(s,o){s&1&&C(0,"mifosx-entity-notes-tab",0),s&2&&d("entityId",o.entityId)("entityNotes",o.entityNotes)("callbackAdd",o.addNote)("callbackEdit",o.editNote)("callbackDelete",o.deleteNote)},dependencies:[P,O,Fi],encapsulation:2})}}return t})();var Hi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsNotes(s)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var zi=(()=>{class t{constructor(){this.savingsService=g(I)}resolve(e){let s=e.parent.paramMap.get("savingAccountId");return this.savingsService.getSavingsDocuments(s)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275prov=At({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();var gm=()=>({confirm:!0}),Qn=(()=>{class t{constructor(){this.dialogRef=g(Xt)}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-release-amount-dialog"]],decls:14,vars:14,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(s,o){s&1&&(i(0,"h1",0),r(1),c(2,"translate"),a(),i(3,"div",1)(4,"p"),r(5),c(6,"translate"),a()(),i(7,"mat-dialog-actions",2)(8,"button",3),r(9),c(10,"translate"),a(),i(11,"button",4),r(12),c(13,"translate"),a()()),s&2&&(n(),p(l(2,5,"labels.heading.Release Amount")),n(4),p(l(6,7,"labels.text.Are you sure you want to release this amount")),n(4),p(l(10,9,"labels.buttons.Cancel")),n(2),d("mat-dialog-close",k(13,gm)),n(),f(" ",l(13,11,"labels.buttons.Confirm")," "))},dependencies:[P,O,F,te,ee,ne,Zt,y],encapsulation:2})}}return t})();var fm=()=>["../../"];function Cm(t,m){t&1&&(i(0,"button",10),C(1,"fa-icon",11),r(2),c(3,"translate"),a()),t&2&&(d("routerLink","edit"),n(2),f("",l(3,2,"labels.buttons.Edit")," "))}function vm(t,m){if(t&1&&(i(0,"span"),v(1,Cm,4,4,"button",10),a()),t&2){let e=h(2);n(),_(e.transactionData.transactionType.value==="Transfer"||e.transactionData.reversed==="true"||e.transactionData.transactionType.id===3||e.transactionData.transactionType.id===17?1:-1)}}function _m(t,m){t&1&&(i(0,"span"),A(1,vm,2,1,"span",9),a()),t&2&&(n(),d("mifosxHasPermission","ADJUSTTRANSACTION_SAVINGSACCOUNT"))}function hm(t,m){if(t&1){let e=D();i(0,"button",13),b("click",function(){S(e);let o=h(2);return M(o.releaseAmount())}),C(1,"fa-icon",14),r(2),c(3,"translate"),a()}t&2&&(n(2),f("",l(3,1,"labels.buttons.Release Amount")," "))}function xm(t,m){t&1&&(i(0,"span"),A(1,hm,4,3,"button",12),a()),t&2&&(n(),d("mifosxHasPermission","RELEASEAMOUNT_SAVINGSACCOUNT"))}function bm(t,m){if(t&1){let e=D();i(0,"button",16),b("click",function(){S(e);let o=h(2);return M(o.undoTransaction())}),C(1,"fa-icon",17),r(2),c(3,"translate"),a()}t&2&&(n(2),f("",l(3,1,"labels.buttons.Undo")," "))}function Sm(t,m){t&1&&(i(0,"span"),A(1,bm,4,3,"button",15),a()),t&2&&(n(),d("mifosxHasPermission","UNDOTRANSACTION_SAVINGSACCOUNT"))}function Mm(t,m){t&1&&(i(0,"div",4),r(1),c(2,"translate"),a()),t&2&&(n(),f(" ",l(2,1,"labels.inputs.Note")," "))}function Am(t,m){if(t&1&&(i(0,"div",5),r(1),a()),t&2){let e=h();n(),f(" ",e.transactionData.note," ")}}function Tm(t,m){if(t&1&&C(0,"mifosx-transaction-payment-detail",6),t&2){let e=h();d("paymentDetailData",e.transactionData.paymentDetailData)}}var Kn=(()=>{class t{constructor(){this.savingsService=g(I),this.route=g(E),this.dateUtils=g(j),this.router=g(z),this.dialog=g(yt),this.settingsService=g(U),this.route.data.subscribe(e=>{this.accountId=this.route.parent.snapshot.params.savingAccountId,this.transactionData=e.savingsAccountTransaction})}allowUndo(){return this.transactionData.reversed&&this.transactionData.transactionType.amountHold?!1:!this.transactionData.reversed}releaseAmount(){this.dialog.open(Qn).afterClosed().subscribe(s=>{if(s.confirm){let o={};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"releaseAmount",o,this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})}})}undoTransaction(){this.dialog.open(Ve).afterClosed().subscribe(s=>{if(s.confirm){let o=this.settingsService.language.code,u=this.settingsService.dateFormat,x={transactionDate:this.dateUtils.formatDate(this.transactionData.date&&new Date(this.transactionData.date),u),transactionAmount:0,dateFormat:u,locale:o};this.savingsService.executeSavingsAccountTransactionsCommand(this.accountId,"undo",x,this.transactionData.id).subscribe(()=>{this.router.navigate(["../.."],{relativeTo:this.route})})}})}transactionColor(){return this.transactionData.reversed?"undo":"active"}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transaction-general-tab"]],decls:44,vars:42,consts:[["align","end",1,"container","transaction-buttons","m-b-20","align-end-center","gap-2percent"],[1,"container"],[1,"layout-row-wrap","card-content"],[1,"flex-100",3,"ngClass"],[1,"flex-50","mat-body-strong"],[1,"flex-50"],[3,"paymentDetailData"],[1,"layout-row","layout-align-center","gap-2percent","column-on-mobile"],["type","button","mat-raised-button","","color","primary",3,"routerLink"],[4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"routerLink"],["icon","edit",1,"m-r-10"],["mat-raised-button","","color","primary",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",3,"click"],["icon","lock-open",1,"m-r-10"],["mat-raised-button","","color","warn",3,"click",4,"mifosxHasPermission"],["mat-raised-button","","color","warn",3,"click"],["icon","undo",1,"m-r-10"]],template:function(s,o){s&1&&(i(0,"div",0),v(1,_m,2,1,"span"),v(2,xm,2,1,"span"),v(3,Sm,2,1,"span"),a(),i(4,"div",1)(5,"mat-card")(6,"mat-card-content")(7,"div",2),C(8,"div",3),i(9,"div",4),r(10),c(11,"translate"),a(),i(12,"div",5),r(13),a(),i(14,"div",4),r(15),c(16,"translate"),a(),i(17,"div",5),r(18),c(19,"translateKey"),a(),i(20,"div",4),r(21),c(22,"translate"),a(),i(23,"div",5),r(24),c(25,"dateFormat"),a(),i(26,"div",4),r(27),c(28,"translate"),a(),i(29,"div",5),r(30),a(),i(31,"div",4),r(32),c(33,"translate"),a(),i(34,"div",5),r(35),c(36,"currency"),a(),v(37,Mm,3,3,"div",4),v(38,Am,2,1,"div",5),v(39,Tm,1,1,"mifosx-transaction-payment-detail",6),a(),i(40,"div",7)(41,"button",8),r(42),c(43,"translate"),a()()()()()),s&2&&(n(),_(o.transactionData.interestedPostedAsOn===!1&&(o.transactionData.transactionType.id===17||o.transactionData.transactionType.id===3)?-1:1),n(),_(!o.transactionData.reversed&&o.transactionData.transactionType.amountHold?2:-1),n(),_(o.allowUndo()?3:-1),n(5),d("ngClass",o.transactionColor()),n(2),f(" ",l(11,19,"labels.inputs.Id")," "),n(3),f(" ",o.transactionData.id," "),n(2),f(" ",l(16,21,"labels.inputs.Transaction Type")," "),n(3),f(" ",Mt(19,23,o.transactionData.transactionType.value,"catalogs")," "),n(3),f(" ",l(22,26,"labels.inputs.Transaction Date")," "),n(3),f(" ",l(25,28,o.transactionData.date)," "),n(3),f(" ",l(28,30,"labels.inputs.Currency")," "),n(3),f(" ",o.transactionData.currency.displayLabel," "),n(2),f(" ",l(33,32,"labels.inputs.Amount")," "),n(3),f(" ",tt(36,34,o.transactionData.amount,o.transactionData.currency.code,"symbol-narrow","1.2-2")," "),n(2),_(o.transactionData.note?37:-1),n(),_(o.transactionData.note?38:-1),n(),_(o.transactionData.paymentDetailData?39:-1),n(2),d("routerLink",k(41,fm)),n(),f(" ",l(43,39,"labels.buttons.Back")," "))},dependencies:[P,de,O,q,J,ct,F,Rt,St,Ri,ue,Bt,y,Nt],styles:["body[_ngcontent-%COMP%] table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%] tr[_ngcontent-%COMP%]:nth-child(2n){background-color:#f2f2f2}.bg-black[_ngcontent-%COMP%]{background-color:#000}.bg-light-grey[_ngcontent-%COMP%]{background-color:#e5e5e5}.bg-medium-grey[_ngcontent-%COMP%]{background-color:#ccc}.bg-grey[_ngcontent-%COMP%]{background-color:#999}.bg-dark-grey[_ngcontent-%COMP%]{background-color:#222}.bg-white[_ngcontent-%COMP%], .bg-fff[_ngcontent-%COMP%]{background-color:#fff}.bg-none[_ngcontent-%COMP%], .no-bg[_ngcontent-%COMP%]{background:none;background-image:none;background-color:transparent}.bg-facebook[_ngcontent-%COMP%]{background-color:#47639e}.bg-twitter[_ngcontent-%COMP%]{background-color:#02a8f3}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{border:1px solid rgba(0,0,0,.12)}.no-border[_ngcontent-%COMP%]{border:none}.no-border-t[_ngcontent-%COMP%]{border-top:none}.no-border-r[_ngcontent-%COMP%]{border-right:none}.no-border-b[_ngcontent-%COMP%]{border-bottom:none}.no-border-l[_ngcontent-%COMP%]{border-left:none}.no-border-lr[_ngcontent-%COMP%], .no-border-rl[_ngcontent-%COMP%]{border-left:none;border-right:none}.no-border-tb[_ngcontent-%COMP%], .no-border-bt[_ngcontent-%COMP%]{border-top:none;border-bottom:none}.no-border-tl[_ngcontent-%COMP%], .no-border-lt[_ngcontent-%COMP%]{border-top:none;border-left:none}.no-border-tr[_ngcontent-%COMP%], .no-border-rt[_ngcontent-%COMP%]{border-top:none;border-right:none}.no-border-bl[_ngcontent-%COMP%], .no-border-lb[_ngcontent-%COMP%]{border-bottom:none;border-left:none}.no-border-br[_ngcontent-%COMP%], .no-border-rb[_ngcontent-%COMP%]{border-bottom:none;border-right:none}.border-dashed[_ngcontent-%COMP%], .border-dotted[_ngcontent-%COMP%]{border-style:dashed}.border-black[_ngcontent-%COMP%]{border-color:#000}.border-light-grey[_ngcontent-%COMP%]{border-color:#e5e5e5}.border-medium-grey[_ngcontent-%COMP%]{border-color:#ccc}.border-grey[_ngcontent-%COMP%]{border-color:#999}.border-dark-grey[_ngcontent-%COMP%]{border-color:#2222}.border-white[_ngcontent-%COMP%], .border-fff[_ngcontent-%COMP%]{border-color:#fff}.no-border-radius[_ngcontent-%COMP%]{border-radius:0}.radius3[_ngcontent-%COMP%]{border-radius:3px}.radius5[_ngcontent-%COMP%]{border-radius:5px}.radius10[_ngcontent-%COMP%]{border-radius:10px}.column-mandatory[_ngcontent-%COMP%]{color:#5cb85c;text-align:center}.not-column-mandatory[_ngcontent-%COMP%]{color:#666f73;text-align:center}.cdk-drag-placeholder[_ngcontent-%COMP%]{background:#3498db}.yes[_ngcontent-%COMP%]{color:#5cb85c!important;background-color:#5cb85c;height:4px;cursor:none}.no[_ngcontent-%COMP%]{color:red;background-color:red;height:4px;cursor:none}.strike[_ngcontent-%COMP%]{text-decoration:line-through;color:red}.transfer[_ngcontent-%COMP%]{color:#16a085}.linked[_ngcontent-%COMP%]{color:#4461e2}.accrual[_ngcontent-%COMP%]{color:#999}.fa-question[_ngcontent-%COMP%]{color:#4461e2}.enabled[_ngcontent-%COMP%]{color:#32cd32}.disabled[_ngcontent-%COMP%]{color:#f44366}.v-mid[_ngcontent-%COMP%], .v-m[_ngcontent-%COMP%]{vertical-align:middle}.v-top[_ngcontent-%COMP%], .v-t[_ngcontent-%COMP%]{vertical-align:top}.v-bottom[_ngcontent-%COMP%], .v-b[_ngcontent-%COMP%]{vertical-align:bottom}.v-super[_ngcontent-%COMP%]{vertical-align:super}.r-amount[_ngcontent-%COMP%]{text-align:right!important;padding-right:5px!important}.left[_ngcontent-%COMP%]{text-align:left!important}.right[_ngcontent-%COMP%]{text-align:right!important}.center[_ngcontent-%COMP%]{text-align:center!important}.amount-plus[_ngcontent-%COMP%]{color:#000}.amount-minus[_ngcontent-%COMP%]{color:#4461e2}.block[_ngcontent-%COMP%]{display:block}.inline[_ngcontent-%COMP%]{display:inline}.in-block[_ngcontent-%COMP%]{display:inline-block;zoom:1}.d-none[_ngcontent-%COMP%], .hide[_ngcontent-%COMP%], .hidden[_ngcontent-%COMP%]{display:none}.t-0[_ngcontent-%COMP%]{top:0}.b-0[_ngcontent-%COMP%]{bottom:0}.l-0[_ngcontent-%COMP%]{left:0}.r-0[_ngcontent-%COMP%]{right:0}.tb-0[_ngcontent-%COMP%]{top:0;bottom:0}.lr-0[_ngcontent-%COMP%]{left:0;right:0}.f-left[_ngcontent-%COMP%]{float:left}.f-right[_ngcontent-%COMP%]{float:right}.f-none[_ngcontent-%COMP%]{float:none}textarea[_ngcontent-%COMP%]{resize:both}textarea.vertical[_ngcontent-%COMP%], textarea.horizontal[_ngcontent-%COMP%]{resize:vertical}textarea.noresize[_ngcontent-%COMP%]{resize:none}.full-input[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%]{width:100%}.normal[_ngcontent-%COMP%] input[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] select[_ngcontent-%COMP%], .normal[_ngcontent-%COMP%] textarea[_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=checkbox][_ngcontent-%COMP%], .full-input[_ngcontent-%COMP%] [type=radio][_ngcontent-%COMP%]{width:auto}.mat-tab-body-content[_ngcontent-%COMP%]{margin-bottom:20px}.mat-datepicker-input[_ngcontent-%COMP%]{margin-top:5px;margin-bottom:5px}.loader-wrapper[_ngcontent-%COMP%]{height:100vh;width:100vw}.loader-wrapper[_ngcontent-%COMP%] .triangle[_ngcontent-%COMP%]{width:0;height:0;border-style:solid;position:absolute;animation:_ngcontent-%COMP%_rotate .8s infinite .2s}.loader-wrapper[_ngcontent-%COMP%] .bottom[_ngcontent-%COMP%]{border-width:0 90px 90px;border-color:transparent transparent #1fb050;bottom:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .top[_ngcontent-%COMP%]{border-width:90px 90px 0;border-color:#b4d575 transparent transparent;top:calc(50% - 100px);left:calc(50% - 90px)}.loader-wrapper[_ngcontent-%COMP%] .left[_ngcontent-%COMP%]{border-width:90px 0 90px 90px;border-color:transparent transparent transparent #1074b9;top:calc(50% - 90px);left:calc(50% - 100px)}.loader-wrapper[_ngcontent-%COMP%] .right[_ngcontent-%COMP%]{border-width:90px 90px 90px 0;border-color:transparent #1daeec transparent transparent;top:calc(50% - 90px);right:calc(50% - 100px)}@keyframes _ngcontent-%COMP%_rotate{0%{transform:rotate(0)}to{transform:rotate(360deg)}}body[_ngcontent-%COMP%]{margin:0}.container[_ngcontent-%COMP%]{margin:0 auto}.mb-05[_ngcontent-%COMP%]{margin-bottom:.5rem}.mr-05[_ngcontent-%COMP%]{margin-right:.5rem}.mb-1[_ngcontent-%COMP%]{margin-bottom:1rem}.mt-1[_ngcontent-%COMP%]{margin-top:1rem}.m-5[_ngcontent-%COMP%]{margin:5px}.m-t-5[_ngcontent-%COMP%]{margin-top:5px}.m-r-5[_ngcontent-%COMP%]{margin-right:5px}.m-b-5[_ngcontent-%COMP%]{margin-bottom:5px}.m-l-5[_ngcontent-%COMP%]{margin-left:5px}.m-v-5[_ngcontent-%COMP%]{margin:5px 0}.m-h-5[_ngcontent-%COMP%]{margin:0 5px}.m-10[_ngcontent-%COMP%]{margin:10px}.m-t-10[_ngcontent-%COMP%]{margin-top:10px}.m-r-10[_ngcontent-%COMP%]{margin-right:10px}.m-b-10[_ngcontent-%COMP%]{margin-bottom:10px}.m-l-10[_ngcontent-%COMP%]{margin-left:10px}.m-v-10[_ngcontent-%COMP%]{margin:10px 0}.m-h-10[_ngcontent-%COMP%]{margin:0 10px}.m-15[_ngcontent-%COMP%]{margin:15px}.m-t-15[_ngcontent-%COMP%]{margin-top:15px}.m-r-15[_ngcontent-%COMP%]{margin-right:15px}.m-b-15[_ngcontent-%COMP%]{margin-bottom:15px}.m-l-15[_ngcontent-%COMP%]{margin-left:15px}.m-v-15[_ngcontent-%COMP%]{margin:15px 0}.m-h-15[_ngcontent-%COMP%]{margin:0 15px}.m-20[_ngcontent-%COMP%]{margin:20px}.m-t-20[_ngcontent-%COMP%]{margin-top:20px}.m-r-20[_ngcontent-%COMP%]{margin-right:20px}.m-b-20[_ngcontent-%COMP%]{margin-bottom:20px}.m-l-20[_ngcontent-%COMP%]{margin-left:20px}.m-v-20[_ngcontent-%COMP%]{margin:20px 0}.m-h-20[_ngcontent-%COMP%]{margin:0 20px}.m-25[_ngcontent-%COMP%]{margin:25px}.m-t-25[_ngcontent-%COMP%]{margin-top:25px}.m-r-25[_ngcontent-%COMP%]{margin-right:25px}.m-b-25[_ngcontent-%COMP%]{margin-bottom:25px}.m-l-25[_ngcontent-%COMP%]{margin-left:25px}.m-v-25[_ngcontent-%COMP%]{margin:25px 0}.m-h-25[_ngcontent-%COMP%]{margin:0 25px}.m-30[_ngcontent-%COMP%]{margin:30px}.m-t-30[_ngcontent-%COMP%]{margin-top:30px}.m-r-30[_ngcontent-%COMP%]{margin-right:30px}.m-b-30[_ngcontent-%COMP%]{margin-bottom:30px}.m-l-30[_ngcontent-%COMP%]{margin-left:30px}.m-v-30[_ngcontent-%COMP%]{margin:30px 0}.m-h-30[_ngcontent-%COMP%]{margin:0 30px}.m-35[_ngcontent-%COMP%]{margin:35px}.m-t-35[_ngcontent-%COMP%]{margin-top:35px}.m-r-35[_ngcontent-%COMP%]{margin-right:35px}.m-b-35[_ngcontent-%COMP%]{margin-bottom:35px}.m-l-35[_ngcontent-%COMP%]{margin-left:35px}.m-v-35[_ngcontent-%COMP%]{margin:35px 0}.m-h-35[_ngcontent-%COMP%]{margin:0 35px}.m-40[_ngcontent-%COMP%]{margin:40px}.m-t-40[_ngcontent-%COMP%]{margin-top:40px}.m-r-40[_ngcontent-%COMP%]{margin-right:40px}.m-b-40[_ngcontent-%COMP%]{margin-bottom:40px}.m-l-40[_ngcontent-%COMP%]{margin-left:40px}.m-v-40[_ngcontent-%COMP%]{margin:40px 0}.m-h-40[_ngcontent-%COMP%]{margin:0 40px}.m-45[_ngcontent-%COMP%]{margin:45px}.m-t-45[_ngcontent-%COMP%]{margin-top:45px}.m-r-45[_ngcontent-%COMP%]{margin-right:45px}.m-b-45[_ngcontent-%COMP%]{margin-bottom:45px}.m-l-45[_ngcontent-%COMP%]{margin-left:45px}.m-v-45[_ngcontent-%COMP%]{margin:45px 0}.m-h-45[_ngcontent-%COMP%]{margin:0 45px}.m-50[_ngcontent-%COMP%]{margin:50px}.m-t-50[_ngcontent-%COMP%]{margin-top:50px}.m-r-50[_ngcontent-%COMP%]{margin-right:50px}.m-b-50[_ngcontent-%COMP%]{margin-bottom:50px}.m-l-50[_ngcontent-%COMP%]{margin-left:50px}.m-v-50[_ngcontent-%COMP%]{margin:50px 0}.m-h-50[_ngcontent-%COMP%]{margin:0 50px}.m-55[_ngcontent-%COMP%]{margin:55px}.m-t-55[_ngcontent-%COMP%]{margin-top:55px}.m-r-55[_ngcontent-%COMP%]{margin-right:55px}.m-b-55[_ngcontent-%COMP%]{margin-bottom:55px}.m-l-55[_ngcontent-%COMP%]{margin-left:55px}.m-v-55[_ngcontent-%COMP%]{margin:55px 0}.m-h-55[_ngcontent-%COMP%]{margin:0 55px}.m-60[_ngcontent-%COMP%]{margin:60px}.m-t-60[_ngcontent-%COMP%]{margin-top:60px}.m-r-60[_ngcontent-%COMP%]{margin-right:60px}.m-b-60[_ngcontent-%COMP%]{margin-bottom:60px}.m-l-60[_ngcontent-%COMP%]{margin-left:60px}.m-v-60[_ngcontent-%COMP%]{margin:60px 0}.m-h-60[_ngcontent-%COMP%]{margin:0 60px}.m-65[_ngcontent-%COMP%]{margin:65px}.m-t-65[_ngcontent-%COMP%]{margin-top:65px}.m-r-65[_ngcontent-%COMP%]{margin-right:65px}.m-b-65[_ngcontent-%COMP%]{margin-bottom:65px}.m-l-65[_ngcontent-%COMP%]{margin-left:65px}.m-v-65[_ngcontent-%COMP%]{margin:65px 0}.m-h-65[_ngcontent-%COMP%]{margin:0 65px}.m-70[_ngcontent-%COMP%]{margin:70px}.m-t-70[_ngcontent-%COMP%]{margin-top:70px}.m-r-70[_ngcontent-%COMP%]{margin-right:70px}.m-b-70[_ngcontent-%COMP%]{margin-bottom:70px}.m-l-70[_ngcontent-%COMP%]{margin-left:70px}.m-v-70[_ngcontent-%COMP%]{margin:70px 0}.m-h-70[_ngcontent-%COMP%]{margin:0 70px}.m-75[_ngcontent-%COMP%]{margin:75px}.m-t-75[_ngcontent-%COMP%]{margin-top:75px}.m-r-75[_ngcontent-%COMP%]{margin-right:75px}.m-b-75[_ngcontent-%COMP%]{margin-bottom:75px}.m-l-75[_ngcontent-%COMP%]{margin-left:75px}.m-v-75[_ngcontent-%COMP%]{margin:75px 0}.m-h-75[_ngcontent-%COMP%]{margin:0 75px}.m-80[_ngcontent-%COMP%]{margin:80px}.m-t-80[_ngcontent-%COMP%]{margin-top:80px}.m-r-80[_ngcontent-%COMP%]{margin-right:80px}.m-b-80[_ngcontent-%COMP%]{margin-bottom:80px}.m-l-80[_ngcontent-%COMP%]{margin-left:80px}.m-v-80[_ngcontent-%COMP%]{margin:80px 0}.m-h-80[_ngcontent-%COMP%]{margin:0 80px}.no-m[_ngcontent-%COMP%]{margin:0}.no-m-t[_ngcontent-%COMP%]{margin-top:0}.no-m-r[_ngcontent-%COMP%]{margin-right:0}.no-m-b[_ngcontent-%COMP%]{margin-bottom:0}.no-m-l[_ngcontent-%COMP%]{margin-left:0}.no-m-v[_ngcontent-%COMP%], .no-m-h[_ngcontent-%COMP%], .no-margin[_ngcontent-%COMP%]{margin:0}.no-m-lr[_ngcontent-%COMP%], .no-m-rl[_ngcontent-%COMP%]{margin-left:0;margin-right:0}.no-m-tb[_ngcontent-%COMP%], .no-m-bt[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0}.m-t-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-bottom:0}.m-b-only[_ngcontent-%COMP%]{margin-left:0;margin-right:0;margin-top:0}.m-l-only[_ngcontent-%COMP%]{margin-right:0;margin-top:0;margin-bottom:0}.m-r-only[_ngcontent-%COMP%]{margin-left:0;margin-top:0;margin-bottom:0}.m-auto[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.ls-0[_ngcontent-%COMP%]{margin-left:10px;margin-right:10px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent}div[_ngcontent-%COMP%]{box-sizing:border-box}.color-inherit[_ngcontent-%COMP%]{color:inherit}.no-shadow[_ngcontent-%COMP%]{box-shadow:none}.pointer[_ngcontent-%COMP%]{cursor:pointer}.nolist[_ngcontent-%COMP%]{list-style:none}.actions-menu[_ngcontent-%COMP%]{color:#fff}.alert[_ngcontent-%COMP%]{background-color:#e8f4fd;padding:6px 16px;font-size:.875rem;font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;line-height:1.43;border-radius:4px;letter-spacing:normal;margin:10px}.alert[_ngcontent-%COMP%] .message[_ngcontent-%COMP%]{padding:8px 0;font-size:18px}.alert[_ngcontent-%COMP%] .alert-check[_ngcontent-%COMP%]{color:#359ff4;margin-right:2px;font-size:1.4rem} .mat-tooltip{font-size:15px;color:#fff!important;background-color:#4461e2b3;border:1px solid rgb(25.7777777778,51.5555555556,166.2222222222);max-width:400px!important;white-space:pre-line!important}.loading[_ngcontent-%COMP%]{position:absolute;min-width:100%;width:100px;height:12px;background:linear-gradient(125deg,#fff,#4461e2,#fff);animation:grow 4s linear infinite,move 4s linear infinite}mat-card-title[_ngcontent-%COMP%]{font-weight:600;font-size:x-large;padding-left:20px;padding-top:20px}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{overflow:hidden}.overflow-x-scroll[_ngcontent-%COMP%]{max-width:100%;overflow-x:auto}.overflow-no[_ngcontent-%COMP%]{overflow:hidden}.overflow-auto[_ngcontent-%COMP%]{overflow:auto}.overflow-scroll[_ngcontent-%COMP%]{overflow:scroll}.table-container[_ngcontent-%COMP%]{overflow-x:auto;max-width:100%}body[_ngcontent-%COMP%], .no-p[_ngcontent-%COMP%]{padding:0}.no-p-t[_ngcontent-%COMP%]{padding-top:0}.no-p-r[_ngcontent-%COMP%]{padding-right:0}.no-p-b[_ngcontent-%COMP%]{padding-bottom:0}.no-p-l[_ngcontent-%COMP%]{padding-left:0}.no-p-v[_ngcontent-%COMP%], .no-p-h[_ngcontent-%COMP%]{padding:0}.p-5[_ngcontent-%COMP%]{padding:5px}.p-t-5[_ngcontent-%COMP%]{padding-top:5px}.p-r-5[_ngcontent-%COMP%]{padding-right:5px}.p-b-5[_ngcontent-%COMP%]{padding-bottom:5px}.p-l-5[_ngcontent-%COMP%]{padding-left:5px}.p-v-5[_ngcontent-%COMP%]{padding:5px 0}.p-h-5[_ngcontent-%COMP%]{padding:0 5px}.p-10[_ngcontent-%COMP%]{padding:10px}.p-t-10[_ngcontent-%COMP%]{padding-top:10px}.p-b-10[_ngcontent-%COMP%]{padding-bottom:10px}.p-v-10[_ngcontent-%COMP%]{padding:10px 0}.p-h-10[_ngcontent-%COMP%]{padding:0 10px}.p-15[_ngcontent-%COMP%]{padding:15px}.p-t-15[_ngcontent-%COMP%]{padding-top:15px}.p-r-15[_ngcontent-%COMP%]{padding-right:15px}.p-b-15[_ngcontent-%COMP%]{padding-bottom:15px}.p-l-15[_ngcontent-%COMP%]{padding-left:15px}.p-v-15[_ngcontent-%COMP%]{padding:15px 0}.p-h-15[_ngcontent-%COMP%]{padding:0 15px}.p-20[_ngcontent-%COMP%]{padding:20px}.p-t-20[_ngcontent-%COMP%]{padding-top:20px}.p-r-20[_ngcontent-%COMP%]{padding-right:20px}.p-b-20[_ngcontent-%COMP%]{padding-bottom:20px}.p-l-20[_ngcontent-%COMP%]{padding-left:20px}.p-v-20[_ngcontent-%COMP%]{padding:20px 0}.p-h-20[_ngcontent-%COMP%]{padding:0 20px}.p-25[_ngcontent-%COMP%]{padding:25px}.p-t-25[_ngcontent-%COMP%]{padding-top:25px}.p-r-25[_ngcontent-%COMP%]{padding-right:25px}.p-b-25[_ngcontent-%COMP%]{padding-bottom:25px}.p-l-25[_ngcontent-%COMP%]{padding-left:25px}.p-v-25[_ngcontent-%COMP%]{padding:25px 0}.p-h-25[_ngcontent-%COMP%]{padding:0 25px}.p-30[_ngcontent-%COMP%]{padding:30px}.p-t-30[_ngcontent-%COMP%]{padding-top:30px}.p-r-30[_ngcontent-%COMP%]{padding-right:30px}.p-b-30[_ngcontent-%COMP%]{padding-bottom:30px}.p-l-30[_ngcontent-%COMP%]{padding-left:30px}.p-v-30[_ngcontent-%COMP%]{padding:30px 0}.p-h-30[_ngcontent-%COMP%]{padding:0 30px}.p-35[_ngcontent-%COMP%]{padding:35px}.p-t-35[_ngcontent-%COMP%]{padding-top:35px}.p-r-35[_ngcontent-%COMP%]{padding-right:35px}.p-b-35[_ngcontent-%COMP%]{padding-bottom:35px}.p-l-35[_ngcontent-%COMP%]{padding-left:35px}.p-v-35[_ngcontent-%COMP%]{padding:35px 0}.p-h-35[_ngcontent-%COMP%]{padding:0 35px}.p-40[_ngcontent-%COMP%]{padding:40px}.p-t-40[_ngcontent-%COMP%]{padding-top:40px}.p-r-40[_ngcontent-%COMP%]{padding-right:40px}.p-b-40[_ngcontent-%COMP%]{padding-bottom:40px}.p-l-40[_ngcontent-%COMP%]{padding-left:40px}.p-v-40[_ngcontent-%COMP%]{padding-top:40px;padding-bottom:40px}.p-h-40[_ngcontent-%COMP%]{padding:0 40px}.p-45[_ngcontent-%COMP%]{padding:45px}.p-t-45[_ngcontent-%COMP%]{padding-top:45px}.p-r-45[_ngcontent-%COMP%]{padding-right:45px}.p-b-45[_ngcontent-%COMP%]{padding-bottom:45px}.p-l-45[_ngcontent-%COMP%]{padding-left:45px}.p-v-45[_ngcontent-%COMP%]{padding:45px 0}.p-h-45[_ngcontent-%COMP%]{padding:0 45px}.p-50[_ngcontent-%COMP%]{padding:50px}.p-t-50[_ngcontent-%COMP%]{padding-top:50px}.p-r-50[_ngcontent-%COMP%]{padding-right:50px}.p-b-50[_ngcontent-%COMP%]{padding-bottom:50px}.p-l-50[_ngcontent-%COMP%]{padding-left:50px}.p-v-50[_ngcontent-%COMP%]{padding:50px 0}.p-h-50[_ngcontent-%COMP%]{padding:0 50px}.p-55[_ngcontent-%COMP%]{padding:55px}.p-t-55[_ngcontent-%COMP%]{padding-top:55px}.p-r-55[_ngcontent-%COMP%]{padding-right:55px}.p-b-55[_ngcontent-%COMP%]{padding-bottom:55px}.p-l-55[_ngcontent-%COMP%]{padding-left:55px}.p-v-55[_ngcontent-%COMP%]{padding:55px 0}.p-h-55[_ngcontent-%COMP%]{padding:0 55px}.p-60[_ngcontent-%COMP%]{padding:60px}.p-t-60[_ngcontent-%COMP%]{padding-top:60px}.p-r-60[_ngcontent-%COMP%]{padding-right:60px}.p-b-60[_ngcontent-%COMP%]{padding-bottom:60px}.p-l-60[_ngcontent-%COMP%]{padding-left:60px}.p-v-60[_ngcontent-%COMP%]{padding:60px 0}.p-h-60[_ngcontent-%COMP%]{padding:0 60px}.p-65[_ngcontent-%COMP%]{padding:65px}.p-t-65[_ngcontent-%COMP%]{padding-top:65px}.p-r-65[_ngcontent-%COMP%]{padding-right:65px}.p-b-65[_ngcontent-%COMP%]{padding-bottom:65px}.p-l-65[_ngcontent-%COMP%]{padding-left:65px}.p-v-65[_ngcontent-%COMP%]{padding:65px 0}.p-h-65[_ngcontent-%COMP%]{padding:0 65px}.p-70[_ngcontent-%COMP%]{padding:70px}.p-t-70[_ngcontent-%COMP%]{padding-top:70px}.p-r-70[_ngcontent-%COMP%]{padding-right:70px}.p-b-70[_ngcontent-%COMP%]{padding-bottom:70px}.p-l-70[_ngcontent-%COMP%]{padding-left:70px}.p-v-70[_ngcontent-%COMP%]{padding:70px 0}.p-h-70[_ngcontent-%COMP%]{padding:0 70px}.p-75[_ngcontent-%COMP%]{padding:75px}.p-t-75[_ngcontent-%COMP%]{padding-top:75px}.p-r-75[_ngcontent-%COMP%]{padding-right:75px}.p-b-75[_ngcontent-%COMP%]{padding-bottom:75px}.p-l-75[_ngcontent-%COMP%]{padding-left:75px}.p-v-75[_ngcontent-%COMP%]{padding:75px 0}.p-h-75[_ngcontent-%COMP%]{padding:0 75px}.p-80[_ngcontent-%COMP%]{padding:80px}.p-t-80[_ngcontent-%COMP%]{padding-top:80px}.p-r-80[_ngcontent-%COMP%]{padding-right:80px}.p-b-80[_ngcontent-%COMP%]{padding-bottom:80px}.p-l-80[_ngcontent-%COMP%]{padding-left:80px}.p-v-80[_ngcontent-%COMP%]{padding:80px 0}.p-h-80[_ngcontent-%COMP%]{padding:0 80px}.no-padding[_ngcontent-%COMP%]{padding:0!important}.no-pad-lr[_ngcontent-%COMP%], .no-pad-rl[_ngcontent-%COMP%]{padding-left:0;padding-right:0}.no-pad-tb[_ngcontent-%COMP%], .no-pad-bt[_ngcontent-%COMP%]{padding-top:0;padding-bottom:0}.pad-t-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-bottom:0}.pad-b-only[_ngcontent-%COMP%]{padding-left:0;padding-right:0;padding-top:0}.pad-l-only[_ngcontent-%COMP%]{padding-right:0;padding-top:0;padding-bottom:0}.pad-r-only[_ngcontent-%COMP%]{padding-left:0;padding-top:0;padding-bottom:0}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%], .rel[_ngcontent-%COMP%], .relative[_ngcontent-%COMP%]{position:relative}.abs[_ngcontent-%COMP%], .absolute[_ngcontent-%COMP%]{position:absolute}.fixed[_ngcontent-%COMP%]{position:fixed}.status-active[_ngcontent-%COMP%]{color:#5cb85c}.status-inactive[_ngcontent-%COMP%]{color:#666f73}.status-deleted[_ngcontent-%COMP%]{color:#000}.status-pending[_ngcontent-%COMP%]{color:orange}.status-approved[_ngcontent-%COMP%]{color:#4461e2}.status-overpaid[_ngcontent-%COMP%]{color:purple}.status-chargeoff[_ngcontent-%COMP%]{color:#f39c12}.status-active-overdue[_ngcontent-%COMP%], .status-block[_ngcontent-%COMP%]{color:red}.status-matured[_ngcontent-%COMP%]{color:#ff4000}.subStatus-contract-termination[_ngcontent-%COMP%]{color:#b3b3b3}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%]{background-color:#2af72a}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-progress[_ngcontent-%COMP%]{color:#ff4000}.mat-step-header[_ngcontent-%COMP%] .mat-step-icon-state-done[_ngcontent-%COMP%] .status-transfer-hold[_ngcontent-%COMP%]{color:#df0101}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{-webkit-font-smoothing:antialiased}html[_ngcontent-%COMP%]{font-size:16px}body[_ngcontent-%COMP%]{font-family:Roboto,Helvetica Neue,sans-serif;font-weight:400;font-size:14px;color:#000000de;line-height:1.5;letter-spacing:normal}.mat-h1[_ngcontent-%COMP%], .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-h1[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] .mat-headline[_ngcontent-%COMP%], .mat-typography[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font:400 24px/32px Roboto,Helvetica Neue,sans-serif;letter-spacing:normal;margin:0 0 16px}.lh-1[_ngcontent-%COMP%]{line-height:1}.lh-13[_ngcontent-%COMP%]{line-height:1.3}.lh-15[_ngcontent-%COMP%]{line-height:1.5}.bold[_ngcontent-%COMP%], .strong[_ngcontent-%COMP%]{font-weight:700}.no-bold[_ngcontent-%COMP%]{font-weight:400}.italic[_ngcontent-%COMP%], .em[_ngcontent-%COMP%]{font-style:italic}.strike[_ngcontent-%COMP%]{text-decoration:line-through}.normal[_ngcontent-%COMP%]{font-weight:400;font-style:normal}.uppercase[_ngcontent-%COMP%]{text-transform:uppercase}.text-left[_ngcontent-%COMP%]{text-align:left}.text-center[_ngcontent-%COMP%]{text-align:center}.text-right[_ngcontent-%COMP%]{text-align:right}.w100[_ngcontent-%COMP%]{font-weight:100}.w200[_ngcontent-%COMP%]{font-weight:200}.w300[_ngcontent-%COMP%]{font-weight:300}.w400[_ngcontent-%COMP%]{font-weight:400}.w500[_ngcontent-%COMP%]{font-weight:500}.w600[_ngcontent-%COMP%]{font-weight:600}.w700[_ngcontent-%COMP%]{font-weight:700}.w800[_ngcontent-%COMP%]{font-weight:800}.w900[_ngcontent-%COMP%]{font-weight:900}.f9[_ngcontent-%COMP%]{font-size:9px}.f10[_ngcontent-%COMP%]{font-size:10px}.f11[_ngcontent-%COMP%]{font-size:11px}.f12[_ngcontent-%COMP%]{font-size:12px}.f13[_ngcontent-%COMP%]{font-size:13px}.f14[_ngcontent-%COMP%]{font-size:14px}.f15[_ngcontent-%COMP%]{font-size:15px}.f16[_ngcontent-%COMP%]{font-size:16px}.f17[_ngcontent-%COMP%]{font-size:17px}.f18[_ngcontent-%COMP%]{font-size:18px;line-height:30px}.f19[_ngcontent-%COMP%]{font-size:19px}.f20[_ngcontent-%COMP%]{font-size:20px}.f30[_ngcontent-%COMP%]{font-size:30px}.f40[_ngcontent-%COMP%]{font-size:40px}.f50[_ngcontent-%COMP%]{font-size:50px}.f60[_ngcontent-%COMP%]{font-size:60px}.size-small[_ngcontent-%COMP%]{font-size:75%}.size-normal[_ngcontent-%COMP%]{font-size:100%}.size-medium[_ngcontent-%COMP%]{font-size:125%}.size-big[_ngcontent-%COMP%], .size-large[_ngcontent-%COMP%]{font-size:150%}.size-huge[_ngcontent-%COMP%]{font-size:200%}.inherit[_ngcontent-%COMP%]{font:inherit}.text-shadow[_ngcontent-%COMP%]{text-shadow:1px 1px 1px rgba(0,0,0,.4)}.text-rgb-2[_ngcontent-%COMP%]{color:#0003}.text-rgb-3[_ngcontent-%COMP%]{color:#0000004d}.text-rgb-4[_ngcontent-%COMP%]{color:#0006}.text-rgb-5[_ngcontent-%COMP%]{color:#00000080}.no-ul[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%]:hover, .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%], .no-ul[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{text-decoration:none}.no-wrap[_ngcontent-%COMP%]{white-space:nowrap}.auto-cell-size[_ngcontent-%COMP%]{white-space:nowrap;width:1%}.ls-0[_ngcontent-%COMP%]{letter-spacing:-3px;white-space:nowrap}.label-field[_ngcontent-%COMP%]{margin-top:32px}.wrap-content[_ngcontent-%COMP%]{overflow-wrap:break-word;word-wrap:break-word}.no-break-content[_ngcontent-%COMP%]{overflow-wrap:anywhere!important}.fit[_ngcontent-%COMP%]{max-width:100%}.half-width[_ngcontent-%COMP%]{width:50%}.full-width[_ngcontent-%COMP%]{width:100%}.full-height[_ngcontent-%COMP%]{height:100%}html[_ngcontent-%COMP%], body[_ngcontent-%COMP%]{width:100%;height:100%;min-height:100%}body[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.container[_ngcontent-%COMP%]{max-width:74rem;width:90%}.mw300[_ngcontent-%COMP%]{max-width:300px}.mw400[_ngcontent-%COMP%]{max-width:400px}.mw500[_ngcontent-%COMP%]{max-width:500px}.mw600[_ngcontent-%COMP%]{max-width:600px}.fullwidth[_ngcontent-%COMP%]{width:100%}.zindex-1[_ngcontent-%COMP%]{z-index:1}.zindex-2[_ngcontent-%COMP%]{z-index:2}.zindex-3[_ngcontent-%COMP%]{z-index:3}.zindex-4[_ngcontent-%COMP%]{z-index:4}.container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{margin:1rem 0;word-wrap:break-word}.container[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] mifosx-transaction-payment-detail[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}.transaction-buttons[_ngcontent-%COMP%]{margin-top:3%}.active[_ngcontent-%COMP%]{background-color:#5cb85c;height:4px}.linked[_ngcontent-%COMP%]{background-color:#4461e2;height:4px}.undo[_ngcontent-%COMP%]{background-color:red;height:4px}"]})}}return t})();function Pm(t,m){t&1&&(i(0,"div",0),C(1,"div",2),a())}function Om(t,m){if(t&1&&(i(0,"td"),C(1,"mifosx-external-identifier",7),a()),t&2){let e=h(3);n(),d("externalId",ft(e.savingsAccountData.externalId))}}function Dm(t,m){t&1&&(i(0,"td"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function ym(t,m){if(t&1&&(i(0,"span"),r(1),c(2,"formatNumber"),a()),t&2){let e=h(3);n(),f("",l(2,1,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function Im(t,m){t&1&&(i(0,"span"),r(1,"0 %"),a())}function wm(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),v(10,Om,2,2,"td"),v(11,Dm,3,3,"td"),a(),i(12,"tr")(13,"td"),r(14),c(15,"translate"),a(),i(16,"td"),r(17),c(18,"dateFormat"),a()(),i(19,"tr")(20,"td"),r(21),c(22,"translate"),a(),i(23,"td"),r(24),a()(),i(25,"tr")(26,"td"),r(27),c(28,"translate"),a(),i(29,"td"),r(30),a()(),i(31,"tr")(32,"td"),r(33),c(34,"translate"),a(),i(35,"td",6),v(36,ym,3,3,"span"),v(37,Im,2,0,"span"),a()()()()()),t&2){let e=h(2);n(2),p(l(3,14,"labels.heading.Savings Details")),n(6),p(l(9,16,"labels.inputs.External Id")),n(2),_(e.savingsAccountData.externalId?10:-1),n(),_(e.savingsAccountData.externalId?-1:11),n(3),p(l(15,18,"labels.inputs.Activated On")),n(3),f(" ",e.savingsAccountData.timeline.activatedOnDate?l(18,20,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"," "),n(4),p(l(22,22,"labels.inputs.Field Officer")),n(3),p(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),n(3),p(l(28,24,"labels.inputs.Currency")),n(3),V("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]"),n(3),p(l(34,26,"labels.inputs.Nominal Interest Rate")),n(3),_(e.savingsAccountData.nominalAnnualInterestRate?36:-1),n(),_(e.savingsAccountData.nominalAnnualInterestRate?-1:37)}}function Em(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),i(10,"td"),r(11),a()(),i(12,"tr")(13,"td"),r(14),c(15,"translate"),a(),i(16,"td",6),r(17),c(18,"currency"),a()()()()()),t&2){let e=h(2);n(2),p(l(3,5,"labels.heading.Savings Details")),n(6),p(l(9,7,"labels.inputs.Field Officer")),n(3),p(e.savingsAccountData.fieldOfficerName?e.savingsAccountData.fieldOfficerName:"Unassigned"),n(3),p(l(15,9,"labels.inputs.Balance")),n(3),f(" ",tt(18,11,e.savingsAccountData.summary.accountBalance,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Fm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Deposits")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalDeposits,e.currency.code,"symbol-narrow","1.2-2")," ")}}function km(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Interest Earned")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Bm(t,m){if(t&1&&(i(0,"div")(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody"),v(6,Fm,7,9,"tr"),v(7,km,7,9,"tr"),a()()()),t&2){let e=h(2);n(2),p(l(3,3,"labels.heading.Performance History")),n(4),_(e.savingsAccountData.summary.totalDeposits?6:-1),n(),_(e.savingsAccountData.summary.totalInterestEarned>=0?7:-1)}}function Nm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Total Withdrawls")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalWithdrawals,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Rm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withdrawals Fees")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalWithdrawalFees,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Vm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Annual Fees")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalAnnualFees,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Lm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Earned")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalInterestEarned,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Gm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Posted")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalInterestPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Um(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Earned Not Posted")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function qm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest On Overdraft")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.totalOverdraftInterestDerived,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Hm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Overdraft Interest Not Posted")),n(3),f(" ",tt(6,4,e.savingsAccountData.summary.interestNotPosted,e.currency.code,"symbol-narrow","1.2-2")," ")}}function zm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"formatNumber"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Nominal Interest Rate")),n(3),f("",l(6,4,e.savingsAccountData.nominalAnnualInterestRate)," %")}}function jm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withdrawal Fee")),n(3),f(" ",tt(6,4,e.savingsAccountData.withdrawalFee.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function $m(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"dateFormat"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Last Active Transaction Date")),n(3),p(l(6,4,e.savingsAccountData.lastActiveTransactionDate))}}function Wm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Substatus")),n(3),p(e.savingsAccountData.subStatus.value)}}function Qm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Days to Inactive")),n(3),p(e.savingsAccountData.daysToInactive)}}function Km(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Days to Dormancy")),n(3),p(e.savingsAccountData.daysToDormancy)}}function Ym(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Days to Escheat")),n(3),p(e.savingsAccountData.daysToEscheat)}}function Jm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Annual Fee")),n(3),f(" ",tt(6,4,e.savingsAccountData.annualFee.amount,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Xm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td",6),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Overdraft Limit")),n(3),f(" ",tt(6,4,e.savingsAccountData.overdraftLimit,e.currency.code,"symbol-narrow","1.2-2")," ")}}function Zm(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"currency"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Minimum Overdraft Required for Interest Calculation")),n(3),f(" ",tt(6,4,e.savingsAccountData.minOverdraftForInterestCalculation,e.currency.code,"symbol-narrow","1.2-2")," ")}}function tp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"formatNumber"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Min Balance Required for Interest Calculation")),n(3),p(l(6,4,e.savingsAccountData.minBalanceForInterestCalculation))}}function ep(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"formatNumber"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Minimum Required Balance")),n(3),p(l(6,4,e.savingsAccountData.minRequiredBalance))}}function np(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"yesNo"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Enforce Minimum Required Balance")),n(3),p(l(6,4,e.savingsAccountData.enforceMinRequiredBalance))}}function ip(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),c(6,"dateFormat"),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Interest Recalculation Date")),n(3),p(l(6,4,e.savingsAccountData.summary.lastInterestCalculationDate))}}function ap(t,m){if(t&1&&(i(0,"a"),r(1),c(2,"currency"),a()),t&2){let e=h(4);n(),p(tt(2,1,e.savingsAccountData.onHoldFunds,e.currency.code,"symbol-narrow","1.2-2"))}}function op(t,m){t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),A(5,ap,3,6,"a",8),a()()),t&2&&(n(2),p(l(3,2,"labels.inputs.On Hold Funds")),n(3),d("mifosxHasPermission","READ_SAVINGSACCOUNT"))}function rp(t,m){if(t&1&&(i(0,"tr")(1,"td"),r(2),c(3,"translate"),a(),i(4,"td"),r(5),a()()),t&2){let e=h(3);n(2),p(l(3,2,"labels.inputs.Withhold Tax Group")),n(3),p(e.savingsAccountData.taxGroup.name)}}function cp(t,m){if(t&1&&(i(0,"div",4)(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody"),v(6,Nm,7,9,"tr"),v(7,Rm,7,9,"tr"),v(8,Vm,7,9,"tr"),v(9,Lm,7,9,"tr"),v(10,Gm,7,9,"tr"),v(11,Um,7,9,"tr"),v(12,qm,7,9,"tr"),v(13,Hm,7,9,"tr"),v(14,zm,7,6,"tr"),i(15,"tr")(16,"td"),r(17),c(18,"translate"),a(),i(19,"td"),r(20),c(21,"translateKey"),a()(),i(22,"tr")(23,"td"),r(24),c(25,"translate"),a(),i(26,"td"),r(27),c(28,"translateKey"),a()(),i(29,"tr")(30,"td"),r(31),c(32,"translate"),a(),i(33,"td"),r(34),c(35,"translateKey"),a()(),i(36,"tr")(37,"td"),r(38),c(39,"translate"),a(),i(40,"td"),r(41),c(42,"translateKey"),a()(),v(43,jm,7,9,"tr"),v(44,$m,7,6,"tr"),v(45,Wm,6,4,"tr"),v(46,Qm,6,4,"tr"),v(47,Km,6,4,"tr"),v(48,Ym,6,4,"tr"),v(49,Jm,7,9,"tr"),v(50,Xm,7,9,"tr"),v(51,Zm,7,9,"tr"),v(52,tp,7,6,"tr"),v(53,ep,7,6,"tr"),v(54,np,7,6,"tr"),v(55,ip,7,6,"tr"),v(56,op,6,4,"tr"),v(57,rp,6,4,"tr"),a()()()),t&2){let e=h(2);n(2),p(l(3,33,"labels.heading.Account Summary")),n(4),_(e.savingsAccountData.summary.totalWithdrawals?6:-1),n(),_(e.savingsAccountData.summary.totalWithdrawalFees?7:-1),n(),_(e.savingsAccountData.summary.totalAnnualFees?8:-1),n(),_(e.savingsAccountData.summary.totalInterestEarned>=0?9:-1),n(),_(e.savingsAccountData.summary.totalInterestPosted?10:-1),n(),_(e.savingsAccountData.summary.interestNotPosted>=0?11:-1),n(),_(e.savingsAccountData.summary.totalOverdraftInterestDerived?12:-1),n(),_(e.savingsAccountData.summary.interestNotPosted<0?13:-1),n(),_(e.savingsAccountData.nominalAnnualInterestRate?14:-1),n(3),p(l(18,35,"labels.inputs.Interest Compounding Period")),n(3),p(Mt(21,37,e.savingsAccountData.interestCompoundingPeriodType.value,"catalogs")),n(4),p(l(25,40,"labels.inputs.Interest Posting Period")),n(3),p(Mt(28,42,e.savingsAccountData.interestPostingPeriodType.value,"catalogs")),n(4),p(l(32,45,"labels.inputs.Interest Calculated Using")),n(3),p(Mt(35,47,e.savingsAccountData.interestCalculationType.value,"catalogs")),n(4),p(l(39,50,"labels.inputs.Days in Year")),n(3),p(Mt(42,52,e.savingsAccountData.interestCalculationDaysInYearType.value,"catalogs")),n(2),_(e.savingsAccountData.withdrawalFee?43:-1),n(),_(e.savingsAccountData.lastActiveTransactionDate?44:-1),n(),_(e.savingsAccountData.subStatus.id!==0?45:-1),n(),_(e.savingsAccountData.daysToInactive?46:-1),n(),_(e.savingsAccountData.daysToDormancy?47:-1),n(),_(e.savingsAccountData.daysToEscheat?48:-1),n(),_(e.savingsAccountData.annualFee?49:-1),n(),_(e.savingsAccountData.allowOverdraft?50:-1),n(),_(e.savingsAccountData.allowOverdraft?51:-1),n(),_(e.savingsAccountData.minBalanceForInterestCalculation?52:-1),n(),_(e.savingsAccountData.minRequiredBalance?53:-1),n(),_(e.savingsAccountData.enforceMinRequiredBalance?54:-1),n(),_(e.savingsAccountData.summary.lastInterestCalculationDate?55:-1),n(),_(e.savingsAccountData.onHoldFunds?56:-1),n(),_(e.savingsAccountData.withHoldTax?57:-1)}}function sp(t,m){if(t&1&&(i(0,"td"),C(1,"mifosx-external-identifier",7),a()),t&2){let e=h(3);n(),d("externalId",ft(e.savingsAccountData.externalId))}}function lp(t,m){t&1&&(i(0,"td"),r(1),c(2,"translate"),a()),t&2&&(n(),p(l(2,1,"labels.inputs.Not Provided")))}function mp(t,m){if(t&1&&(i(0,"div",4)(1,"h4",5),r(2),c(3,"translate"),a(),i(4,"table")(5,"tbody")(6,"tr")(7,"td"),r(8),c(9,"translate"),a(),v(10,sp,2,2,"td"),v(11,lp,3,3,"td"),a(),i(12,"tr")(13,"td"),r(14),c(15,"translate"),a(),i(16,"td"),r(17),c(18,"dateFormat"),a()(),i(19,"tr")(20,"td"),r(21),c(22,"translate"),a(),i(23,"td"),r(24),a()()()()()),t&2){let e=h(2);n(2),p(l(3,9,"labels.heading.Account Summary")),n(6),p(l(9,11,"labels.inputs.External Id")),n(2),_(e.savingsAccountData.externalId?10:-1),n(),_(e.savingsAccountData.externalId?-1:11),n(3),p(l(15,13,"labels.inputs.Activated On")),n(3),f(" ",e.savingsAccountData.timeline.activatedOnDate?l(18,15,e.savingsAccountData.timeline.activatedOnDate):"Not Activated"," "),n(4),p(l(22,17,"labels.inputs.Currency")),n(3),V("",e.savingsAccountData.currency.name," [",e.savingsAccountData.currency.code,"]")}}function pp(t,m){if(t&1&&(i(0,"div",1)(1,"div",3),v(2,wm,38,28,"div")(3,Em,19,16,"div"),v(4,Bm,8,5,"div"),a(),v(5,cp,58,55,"div",4)(6,mp,25,19,"div",4),a()),t&2){let e=h();n(2),_(!e.savingsAccountData.status.rejected&&!e.savingsAccountData.status.submittedAndPendingApproval?2:3),n(2),_(!e.savingsAccountData.status.rejected&&!e.savingsAccountData.status.submittedAndPendingApproval?4:-1),n(),_(e.isActive?5:6)}}var Yn=(()=>{class t{constructor(){this.route=g(E),this.router=g(z),this.isLoading=!0,this.isActive=!1,this.route.parent.parent.data.subscribe(e=>{this.savingsAccountData=e.savingsAccountData,this.currency=this.savingsAccountData.currency,this.isLoading=!1;let s=this.savingsAccountData.status.value;this.isActive=s==="Active"}),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-general-tab"]],decls:2,vars:2,consts:[[1,"loader"],[1,"savings-account-tables","layout-row","gap-2percent"],[1,"loading"],[1,"flex-49","layout-column","gap-4percent"],[1,"flex-49"],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],[4,"mifosxHasPermission"]],template:function(s,o){s&1&&(v(0,Pm,2,0,"div",0),v(1,pp,7,3,"div",1)),s&2&&(_(o.isLoading?0:-1),n(),_(o.isLoading?-1:1))},dependencies:[P,O,Rt,Be,ue,Bt,y,Nt,me,mn],styles:[".loader[_ngcontent-%COMP%]{margin-bottom:39px;overflow:auto}.sidenav[_ngcontent-%COMP%]{overflow-x:hidden}@keyframes _ngcontent-%COMP%_move{0%{left:0}16.7%{left:0}33.3%{left:640px}50%{left:1120px}66.7%{left:640px}83.3%{left:0}to{left:0}}@keyframes _ngcontent-%COMP%_grow{0%{width:160px}16.7%{width:640px}33.3%{width:640px}50%{width:160px}66.7%{width:640px}83.3%{width:640px}to{width:160px}}.general-tab-container[_ngcontent-%COMP%]{padding:16px 20px;width:100%;box-sizing:border-box;position:relative;background-color:var(--background-color, #f8f9fa);color:var(--text-color, #333);transition:background-color .3s ease,color .3s ease}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:24px;padding:16px 0;position:relative;border-bottom:1px solid var(--border-color, #e9ecef)}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.75rem;font-weight:600;margin:0 0 8px;line-height:1.2;color:var(--primary-color, #007bff);position:relative}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.95rem;margin:0;line-height:1.4;color:var(--text-secondary, #6c757d);position:relative}.general-tab-container[_ngcontent-%COMP%] .content-wrapper[_ngcontent-%COMP%]{position:relative;width:100%}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%]{background:var(--card-background, #fff);border-radius:8px;box-shadow:0 2px 4px #0000001a;overflow:hidden;position:relative;width:100%;max-width:600px;transition:box-shadow .3s ease,background-color .3s ease}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:16px 20px;background:var(--card-header-bg, #f8f9fa);border-bottom:1px solid var(--border-color, #e9ecef);position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:1.1rem;font-weight:600;line-height:1.3;color:var(--text-color, #333)}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:20px;position:relative}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:baseline;padding:10px 0;border-bottom:1px solid var(--border-light, #f1f3f4);position:relative;min-height:24px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]:last-child{border-bottom:none}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{font-weight:500;color:var(--text-secondary, #6c757d);flex:0 0 auto;margin-right:16px;white-space:nowrap;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value[_ngcontent-%COMP%]{font-weight:600;color:var(--text-color, #333);text-align:right;flex:1 1 auto;line-height:1.4}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .value.currency[_ngcontent-%COMP%]{color:var(--success-color, #28a745);font-size:1.05rem}[data-theme=dark][_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%], .dark-theme[_ngcontent-%COMP%] .general-tab-container[_ngcontent-%COMP%]{--background-color: #1a1a1a;--text-color: #e9ecef;--text-secondary: #adb5bd;--primary-color: #4dabf7;--card-background: #2d3748;--card-header-bg: #374151;--border-color: #4a5568;--border-light: #2d3748;--success-color: #68d391}@media (width <= 768px){.general-tab-container[_ngcontent-%COMP%]{padding:12px 16px}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%]{margin-bottom:20px;padding:12px 0}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-title[_ngcontent-%COMP%]{font-size:1.5rem}.general-tab-container[_ngcontent-%COMP%] .page-header[_ngcontent-%COMP%] .header-subtitle[_ngcontent-%COMP%]{font-size:.9rem}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-header[_ngcontent-%COMP%]{padding:14px 16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%]{padding:16px}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%]{padding:8px 0}.general-tab-container[_ngcontent-%COMP%] .account-info-card[_ngcontent-%COMP%] .card-content[_ngcontent-%COMP%] .info-row[_ngcontent-%COMP%] .label[_ngcontent-%COMP%]{margin-right:12px}}"]})}}return t})();var dp=[{path:"",data:{title:"All Savings",breadcrumb:"Savings",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Savings Account",breadcrumb:"Create Savings Account"},component:Nn,resolve:{savingsAccountTemplate:jn}},{path:":savingAccountId",data:{title:"Saving Account View",routeParamBreadcrumb:"savingAccountId"},component:Cn,resolve:{savingsAccountData:qe,savingsDatatables:ai},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",data:{title:"Savings Account Details",breadcrumb:"General",routeParamBreadcrumb:!1},children:[{path:"",component:Yn}]},{path:"transactions",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:vn},{path:"export",component:Un}]},{path:"charges",component:Fn,data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"standing-instructions",component:kn,data:{title:"Savings Account SIH",breadcrumb:"Standing Instructions",routeParamBreadcrumb:!1}},{path:"notes",component:Wn,data:{title:"Savings Account Notes",breadcrumb:"Notes",routeParamBreadcrumb:!1},resolve:{savingAccountNotes:Hi}},{path:"documents",component:$n,data:{title:"Savings Account Documents",breadcrumb:"Documents",routeParamBreadcrumb:!1},resolve:{savingsDocuments:zi}},{path:"datatables",children:[{path:":datatableName",component:Bn,data:{title:"View Data Table",routeParamBreadcrumb:"datatableName"},resolve:{savingsDatatable:ii}}]}]},{path:":savingAccountId/edit",data:{title:"Edit Savings Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Rn,resolve:{savingsAccountAndTemplate:si}},{path:":savingAccountId/transactions/:id",data:{title:"Savings Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1},children:[{path:"",component:Vn,resolve:{transactionDatatables:ci},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Kn,resolve:{savingsAccountTransaction:li}},{path:"datatables",children:[{path:":datatableName",component:_n,data:{title:"View Data table",routeParamBreadcrumb:"datatableName"},resolve:{transactionDatatable:ri}}]}]},{path:"edit",component:qn,data:{breadcrumb:"Edit",routeParamBreadcrumb:!1},resolve:{savingsAccountTransactionTemplate:ui}},{path:"reciept",component:Gn,data:{breadcrumb:"Reciept",routeParamBreadcrumb:!1},resolve:{savingsTransactionReciept:di}}]},{path:":savingAccountId/charges",data:{title:"Savings Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1},children:[{path:"",redirectTo:"../charges",pathMatch:"prefix"},{path:":id",data:{routeParamBreadcrumb:"id"},component:Ln,resolve:{savingsAccountData:qe,savingsAccountCharge:mi}}]},{path:":savingAccountId/actions/:name",data:{title:"Savings Account Actions",breadcrumb:"Savings Account Actions",routeParamBreadcrumb:"name"},component:En,resolve:{savingsAccountActionData:pi}},{path:":savingAccountId/transfer-funds",loadChildren:()=>import("./account-transfers.module-3HW2IDTS.js").then(t=>t.AccountTransfersModule)},{path:"gsim-account",children:[{path:"create",data:{title:"Create GSIM Application",breadcrumb:"Create GSIM Application"},component:Hn,resolve:{groupsData:qi,savingsAccountTemplate:jn}},{path:":savingAccountId",data:{title:"GSIM Account View",routeParamBreadcrumb:"savingAccountId"},children:[{path:"",component:zn,resolve:{gsimData:gi,savingAccountData:qe,groupsData:ni}}]}]}]}],ji=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=Qe({type:t})}static{this.\u0275inj=je({providers:[qe,ai,ii,ri,ci,jn,si,li,mi,pi,di,ui,Ui,ni,gi],imports:[ti.forChild(dp),ti]})}}return t})();var $i=(()=>{class t{constructor(){}static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275cmp=T({type:t,selectors:[["mifosx-savings-transaction-datatable-tab"]],decls:3,vars:3,template:function(s,o){s&1&&(vi(0,"p"),r(1),c(2,"translate"),_i()),s&2&&(n(),f("",l(2,1,"labels.heading.savings-transaction-datatable-tab works"),"!"))},dependencies:[P,O,y],encapsulation:2})}}return t})();var l2=(()=>{class t{static{this.\u0275fac=function(s){return new(s||t)}}static{this.\u0275mod=Qe({type:t})}static{this.\u0275inj=je({imports:[Li,Ei,Bi,ji,En,Dn,vn,Cn,Fn,kn,Bn,Nn,oe,ce,re,be,Rn,hn,xn,bn,Sn,Mn,An,Tn,un,gn,Vn,Ve,Ln,Le,Ge,Pn,On,yn,He,Gn,Un,qn,In,zn,Hn,wn,Qn,$n,Wn,_n,Kn,$i,Yn,ze]})}}return t})();export{l2 as SavingsModule}; diff --git a/browser/shares.module-LLFRCDC7.js b/browser/shares.module-JMFI4QBM.js similarity index 99% rename from browser/shares.module-LLFRCDC7.js rename to browser/shares.module-JMFI4QBM.js index b2b055e9e..f1b2894ae 100644 --- a/browser/shares.module-LLFRCDC7.js +++ b/browser/shares.module-JMFI4QBM.js @@ -1 +1 @@ -import{$c as li,$d as bt,$e as xt,$f as ot,Ad as Ci,Bc as ft,Bd as X,Cc as St,Cd as ue,Cf as Di,Da as y,Dc as He,Df as yi,Ea as E,Eb as Xe,Ec as Ct,Ef as Ei,Fb as T,Fc as vt,Fd as he,G as Oe,Ga as R,Gc as _t,Gd as Z,H as mt,Hc as At,Hd as Ze,Ia as b,Id as fe,Ig as Bi,Ja as A,Jd as et,K as f,Kg as ki,L as I,Lc as pi,Ld as tt,M,Mc as P,Na as ee,Nd as je,Oa as te,Ob as ut,Od as Se,Pa as ie,Pd as Ce,Qa as F,Qd as ve,Qe as it,Rb as si,Rc as ne,Rd as vi,Sc as j,Sd as Fe,T as pt,Td as Ve,Ua as s,Ud as gt,Uf as It,Va as l,Wa as S,Wc as re,Wf as Ii,Xa as w,Xc as G,Xd as be,Yc as oe,Zc as Y,Zf as Mi,_d as _i,_e as at,_f as rt,ag as Pi,bb as L,bf as Tt,bg as wi,ca as t,cd as J,cf as Dt,da as lt,dd as di,de as Ai,df as yt,eb as O,ef as Et,fb as ri,fd as se,ff as nt,ge as gi,gf as Le,hb as o,hc as B,he as bi,hf as xe,ib as c,ic as ci,id as ce,ie as xi,if as Te,ja as x,jb as ae,jf as De,ka as dt,kb as oi,kc as Q,lb as _e,lc as W,ld as me,lf as ye,mc as mi,mf as Ee,na as C,nc as ti,ne as Ti,of as Ie,pd as pe,pf as Me,pg as Ri,qb as Je,qc as ht,qd as ui,ra as v,rc as N,rd as D,rf as Pe,rg as Fi,sa as _,sd as le,sf as we,ta as Be,td as hi,ua as ke,ud as fi,uf as Re,va as Ne,vd as de,wa as d,xa as a,xd as ge,xf as qe,ya as n,yd as Si,za as h,zg as Mt}from"./chunk-AA5NALQN.js";import{a as H,b as K}from"./chunk-PHUH23IY.js";var k=(()=>{class e{constructor(){this.http=f(si)}getSharesAccountData(i,m){let r=new ut().set("template",m.toString());return this.http.get(`/accounts/share/${i}`,{params:r})}getSharesAccountTemplate(i,m){let r=new ut().set("clientId",i);return r=m?r.set("productId",m):r,this.http.get("/accounts/share/template",{params:r})}createSharesAccount(i){return this.http.post("/accounts/share",i)}updateSharesAccount(i,m){return this.http.put(`/accounts/share/${i}`,m)}deleteSharesAccount(i){return this.http.delete(`/accounts/share/${i}`)}executeSharesAccountCommand(i,m,r){let u=new ut().set("command",m);return this.http.post(`/accounts/share/${i}`,r,{params:u})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pt=class{constructor(p){this.setOptions(p),this.setButtons(p)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(p){switch(p){case"Active":this.buttonsArray=[{name:"Apply Additional Shares",icon:"arrow-right",taskPermissionName:"APPLYADDITIONAL_SHAREACCOUNT"},{name:"Approve Additional Shares",icon:"arrow-right",taskPermissionName:"APPROVEADDITIONAL_SHAREACCOUNT"},{name:"Reject Additional Shares",icon:"arrow-left",taskPermissionName:"REJECTADDITIONAL_SHAREACCOUNT"},{name:"Redeem Shares",icon:"arrow-left",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pencil",taskPermissionName:"UPDATE_SHAREACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SHAREACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SHAREACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SHAREACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(p){switch(p){case"Active":this.optionArray=[{name:"Close",taskPermissionName:"CLOSE_SHAREACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SHAREACCOUNT"},{name:"Delete",taskPermissionName:"DELETE_SHAREACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(p){this.optionArray.push(p)}removeButton(p){let m=this.buttonsArray.map(r=>r.name).indexOf(p);this.buttonsArray.splice(m,1)}};var Hi=()=>["./general"],ji=()=>["./transactions"],Li=()=>["./charges"],Ui=()=>["./dividends"];function $i(e,p){if(e&1&&(a(0,"span",21),h(1,"mifosx-account-number",30),n()),e&2){let i=A();t(),d("accountNo",L(i.sharesAccountData.clientAccountNo))}}function Gi(e,p){if(e&1&&(a(0,"tr")(1,"td"),s(2),o(3,"translate"),n(),a(4,"td"),s(5),o(6,"translateKey"),n()()),e&2){let i=A();t(2),S("",c(3,3,"labels.inputs.Lockin Period")," :"),t(3),w(" ",i.sharesAccountData.lockinPeriod," ",ae(6,5,i.sharesAccountData.lockPeriodTypeEnum.value,"catalogs")," ")}}function zi(e,p){if(e&1&&(a(0,"button",25)(1,"mat-icon",31),h(2,"fa-icon",32),n()()),e&2){A();let i=F(42);d("matMenuTriggerFor",i)}}function Qi(e,p){if(e&1){let i=R();a(0,"button",34),b("click",function(){I(i);let r=A().$implicit,u=A();return M(u.doAction(r.name))}),a(1,"mat-icon",35),h(2,"fa-icon",36),n(),a(3,"span"),s(4),o(5,"translate"),n()()}if(e&2){let i=A().$implicit;t(2),d("icon",L(i.icon)),t(2),l(c(5,3,"labels.menus."+i.name))}}function Ki(e,p){if(e&1&&C(0,Qi,6,5,"button",33),e&2){let i=p.$implicit;d("mifosxHasPermission",i.taskPermissionName)}}function Wi(e,p){if(e&1){let i=R();a(0,"button",34),b("click",function(){I(i);let r=A().$implicit,u=A(2);return M(u.doAction(r.name))}),s(1),o(2,"translate"),n()}if(e&2){let i=A().$implicit;t(),S(" ",c(2,1,"labels.menus."+i.name)," ")}}function Yi(e,p){if(e&1&&(a(0,"span"),C(1,Wi,3,3,"button",33),n()),e&2){let i=p.$implicit;t(),d("mifosxHasPermission",i.taskPermissionName)}}function Ji(e,p){if(e&1&&(a(0,"button",37),s(1),o(2,"translate"),n(),a(3,"mat-menu",null,2),ke(5,Yi,2,1,"span",null,Be),n()),e&2){let i=F(4),m=A();d("matMenuTriggerFor",i),t(),l(c(2,2,"labels.menus.More")),t(4),Ne(m.buttonConfig.options)}}function Xi(e,p){if(e&1&&(a(0,"a",38,3),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,Hi))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.General")," ")}}function Zi(e,p){if(e&1&&(a(0,"a",38,4),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,ji))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.Transactions")," ")}}function ea(e,p){if(e&1&&(a(0,"a",38,5),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,Li))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.Charges")," ")}}function ta(e,p){if(e&1&&(a(0,"a",38,6),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,Ui))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.Dividends")," ")}}var Rt=(()=>{class e{constructor(){this.route=f(B),this.router=f(Q),this.sharesService=f(k),this.dialog=f(He),this.route.data.subscribe(i=>{this.sharesAccountData=i.sharesAccountData})}ngOnInit(){this.setConditionalButtons(),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}setConditionalButtons(){let i=this.sharesAccountData.status.value;if(this.buttonConfig=new Pt(i),this.sharesAccountData.charges&&this.sharesAccountData.charges.forEach(r=>{r.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Anuual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),i==="Active"){let m=this.sharesAccountData.purchasedShares,r=!1;m.forEach(u=>{u.status.code==="purchasedSharesStatusType.applied"&&u.type.code==="purchasedSharesType.purchased"&&(r=!0)}),r||(this.buttonConfig.removeButton("Approve Additional Shares"),this.buttonConfig.removeButton("Reject Additional Shares"))}}doAction(i){switch(i){case"Approve":case"Reject":case"Close":case"Activate":case"Undo Approval":case"Apply Additional Shares":case"Redeem Shares":case"Approve Additional Shares":case"Reject Additional Shares":this.router.navigate([`actions/${i}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSharesAccount();break}}deleteSharesAccount(){this.dialog.open(bt,{data:{deleteContext:`shares account with id: ${this.sharesAccountData.id}`}}).afterClosed().subscribe(m=>{m.delete&&this.sharesService.deleteSharesAccount(this.sharesAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-view"]],decls:55,vars:37,consts:[["accountMenu","matMenu"],["tabPanel",""],["More","matMenu"],["general","routerLinkActive"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["dividends","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","","src","assets/images/shares_account_placeholder.png",1,"profile-image",3,"matTooltip"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"shares-overview"],[1,"m-r-10"],[1,"m-l-10"],[1,"account-overview"],[1,"flex-auto"],[1,"flex-40"],["mat-icon-button","","aria-label","Share account actions","yPosition","below",3,"matMenuTriggerFor"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[3,"accountNo"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(m,r){if(m&1&&(a(0,"mat-card",7)(1,"mat-card-header",8)(2,"mat-card-title-group",9)(3,"div",10)(4,"div"),h(5,"img",11),o(6,"translate"),n()(),a(7,"div",12)(8,"mat-card-title")(9,"div",13)(10,"div",14)(11,"h3"),h(12,"i",15),o(13,"statusLookup"),a(14,"span",16),s(15),o(16,"translate"),n(),a(17,"span",16),h(18,"mifosx-long-text",17),n(),h(19,"mifosx-account-number",18),n(),a(20,"span",19)(21,"span",20),s(22),o(23,"translate"),o(24,"translate"),n(),s(25),v(26,$i,2,2,"span",21),n(),a(27,"div")(28,"table",22)(29,"tbody")(30,"tr")(31,"td"),s(32),o(33,"translate"),n(),a(34,"td"),s(35),o(36,"formatNumber"),n()(),v(37,Gi,7,8,"tr"),n()()()(),h(38,"span",23),a(39,"div",24),v(40,zi,3,1,"button",25),n()()()()(),a(41,"mat-menu",null,0),ke(43,Ki,1,1,"button",26,Be),v(45,Ji,7,4),n()(),a(46,"mat-card-content",27)(47,"nav",28),C(48,Xi,4,6,"a",29)(49,Zi,4,6,"a",29)(50,ea,4,6,"a",29)(51,ta,4,6,"a",29),n(),a(52,"mat-tab-nav-panel",null,1),h(54,"router-outlet"),n()()()),m&2){let u=F(53);t(5),d("matTooltip",L(c(6,23,"tooltips.Shares Account"))),t(7),d("ngClass",c(13,25,r.sharesAccountData.status.code))("matTooltip",r.sharesAccountData.status.value),t(3),S("",c(16,27,"labels.inputs.Share Product")," :"),t(3),d("textValue",L(r.sharesAccountData.productName)),t(),d("accountNo",L(r.sharesAccountData.accountNo)),t(3),w("",c(23,29,"labels.text."+r.entityType)," ",c(24,31,"labels.inputs.name")," :"),t(3),S("",r.sharesAccountData.clientName||r.sharesAccountData.groupName," "),t(),_(r.sharesAccountData.clientAccountNo?26:-1),t(6),S("",c(33,33,"labels.inputs.Current Market Price")," :"),t(3),l(c(36,35,r.sharesAccountData.currentMarketPrice)),t(2),_(r.sharesAccountData.lockinPeriod?37:-1),t(3),_(r.buttonConfig.singleButtons.length>0?40:-1),t(3),Ne(r.buttonConfig.singleButtons),t(2),_(r.buttonConfig.options.length?45:-1),t(2),d("tabPanel",u),t(),d("mifosxHasPermission","READ_SHAREACCOUNTPURCHASE"),t(),d("mifosxHasPermission","READ_SHAREACCOUNTPURCHASE"),t(),d("mifosxHasPermission","READ_SHAREACCOUNTCHARGE"),t(),d("mifosxHasPermission","READ_SHAREACCOUNTDIVIDENDS")}},dependencies:[T,Je,D,W,le,de,gt,Si,fi,Ci,je,hi,Bi,Mt,ht,xi,Ti,be,bi,gi,Di,yi,mi,Ei,ci,P,Ve,ot,rt],styles:[".shares-overview[_ngcontent-%COMP%]{font-size:14px}.account-overview[_ngcontent-%COMP%]{min-width:60%;font-weight:400}"]})}}return e})();function ia(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function aa(e,p){if(e&1&&(a(0,"td",15),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.purchasedDate))}}function na(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Type")))}function ra(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit;t(),w(" ",i.type.value," ",i.type.value!=="Charge Payment"?"("+i.status.value+")":""," ")}}function oa(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Total Shares")))}function sa(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit;t(),l(i.numberOfShares)}}function ca(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Purhcased/Redeemed Price")))}function ma(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit,m=A();t(),w(" ",m.shareAccountData.currency.displaySymbol,"\xA0",i.purchasedPrice," ")}}function pa(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Charge Amount")))}function la(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit,m=A();t(),w(" ",m.shareAccountData.currency.displaySymbol,"\xA0",i.type.value==="Charge Payment"?i.amount:i.chargeAmount," ")}}function da(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount Recieved/Returned")))}function ua(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit,m=A();t(),w(" ",m.shareAccountData.currency.displaySymbol,"\xA0",i.amount," ")}}function ha(e,p){e&1&&h(0,"tr",16)}function fa(e,p){e&1&&h(0,"tr",17)}var Ft=(()=>{class e{constructor(){this.route=f(B),this.displayedColumns=["transactionDate","transactionType","totalShares","purchasedOrRedeemedPrice","chargeAmount","amountRecievedOrReturned"],this.route.parent.data.subscribe(i=>{this.shareAccountData=i.sharesAccountData,this.transactionsData=this.shareAccountData.purchasedShares})}ngOnInit(){this.dataSource=new qe(this.transactionsData)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-transactions-tab"]],decls:27,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactionType"],["matColumnDef","totalShares"],["matColumnDef","purchasedOrRedeemedPrice"],["matColumnDef","chargeAmount"],["matColumnDef","amountRecievedOrReturned"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"h3"),s(3),o(4,"translate"),n()(),a(5,"div",2)(6,"table",3),y(7,4),C(8,ia,3,3,"th",5)(9,aa,3,3,"td",6),E(),y(10,7),C(11,na,3,3,"th",5)(12,ra,2,2,"td",6),E(),y(13,8),C(14,oa,3,3,"th",5)(15,sa,2,1,"td",6),E(),y(16,9),C(17,ca,3,3,"th",5)(18,ma,2,2,"td",6),E(),y(19,10),C(20,pa,3,3,"th",5)(21,la,2,2,"td",6),E(),y(22,11),C(23,da,3,3,"th",5)(24,ua,2,2,"td",6),E(),C(25,ha,1,0,"tr",12)(26,fa,1,0,"tr",13),n()()()),m&2&&(t(3),l(c(4,4,"labels.heading.All Transactions")),t(3),d("dataSource",r.dataSource),t(19),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns))},dependencies:[T,D,xe,ye,De,Ee,Te,Ie,Me,we,Pe,Re,Fe,P],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function Sa(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.name")))}function Ca(e,p){if(e&1&&(a(0,"td",18),s(1),n()),e&2){let i=p.$implicit;t(),l(i.name)}}function va(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Fee/Penalty")))}function _a(e,p){if(e&1&&(a(0,"td",18),s(1),n()),e&2){let i=p.$implicit;t(),l(i.penalty===!0?"Penalty":"Fee")}}function Aa(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Payment Due At")))}function ga(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),l(ae(2,1,i.chargeTimeType.value,"catalogs"))}}function ba(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Calculation Type")))}function xa(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),l(ae(2,1,i.chargeCalculationType.value,"catalogs"))}}function Ta(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Due")))}function Da(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amount,i.currency.code,"symbol-narrow","1.2-2")," ")}}function ya(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Paid")))}function Ea(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amountPaid,i.currency.code,"symbol-narrow","1.2-2")," ")}}function Ia(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Waived")))}function Ma(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amountWaived,i.currency.code,"symbol-narrow","1.2-2")," ")}}function Pa(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Outstanding")))}function wa(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amountOutstanding,i.currency.code,"symbol-narrow","1.2-2")," ")}}function Ra(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Actions")))}function Fa(e,p){if(e&1){let i=R();a(0,"button",21),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.editCharge(u))}),h(2,"i",22),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Edit Charge")))}function Ba(e,p){if(e&1){let i=R();a(0,"button",23),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.deleteCharge(u.id))}),h(2,"i",24),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Delete Charge")))}function ka(e,p){e&1&&(a(0,"span"),C(1,Fa,3,4,"button",19)(2,Ba,3,4,"button",20),n()),e&2&&(t(),d("mifosxHasPermission","UPDATE_SHARESACCOUNTCHARGE"),t(),d("mifosxHasPermission","DELETE_SHARESACCOUNTCHARGE"))}function Na(e,p){if(e&1){let i=R();a(0,"button",21),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.payCharge(u.id))}),h(2,"i",25),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Pay Charge")))}function Oa(e,p){if(e&1){let i=R();a(0,"button",21),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.waiveCharge(u.id))}),h(2,"i",26),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Waive Charge")))}function Va(e,p){e&1&&(a(0,"span"),C(1,Na,3,4,"button",19)(2,Oa,3,4,"button",19),n()),e&2&&(t(),d("mifosxHasPermission","PAY_SHARESACCOUNTCHARGE"),t(),d("mifosxHasPermission","WAIVE_SHARESACCOUNTCHARGE"))}function qa(e,p){if(e&1&&(a(0,"td",18),v(1,ka,3,2,"span"),v(2,Va,3,2,"span"),n()),e&2){let i=A();t(),_(i.sharesAccountData.status.value==="Submitted and pending approval"?1:-1),t(),_(i.sharesAccountData.status.value==="Active"?2:-1)}}function Ha(e,p){e&1&&h(0,"tr",27)}function ja(e,p){e&1&&h(0,"tr",28)}var Bt=(()=>{class e{constructor(){this.route=f(B),this.displayedColumns=["name","feeOrPenalty","paymentDueAt","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(i=>{this.sharesAccountData=i.sharesAccountData,this.chargesData=this.sharesAccountData.charges})}ngOnInit(){let i=this.chargesData?this.chargesData.filter(m=>m.isActive):[];this.dataSource=new qe(i)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-charges-tab"]],decls:36,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"h3"),s(3),o(4,"translate"),n()(),a(5,"div",2)(6,"table",3),y(7,4),C(8,Sa,3,3,"th",5)(9,Ca,2,1,"td",6),E(),y(10,7),C(11,va,3,3,"th",5)(12,_a,2,1,"td",6),E(),y(13,8),C(14,Aa,3,3,"th",5)(15,ga,3,4,"td",6),E(),y(16,9),C(17,ba,3,3,"th",5)(18,xa,3,4,"td",6),E(),y(19,10),C(20,Ta,3,3,"th",5)(21,Da,3,6,"td",6),E(),y(22,11),C(23,ya,3,3,"th",5)(24,Ea,3,6,"td",6),E(),y(25,12),C(26,Ia,3,3,"th",5)(27,Ma,3,6,"td",6),E(),y(28,13),C(29,Pa,3,3,"th",5)(30,wa,3,6,"td",6),E(),y(31,14),C(32,Ra,3,3,"th",5)(33,qa,3,2,"td",6),E(),C(34,Ha,1,0,"tr",15)(35,ja,1,0,"tr",16),n()()()),m&2&&(t(3),l(c(4,4,"labels.heading.All Charges")),t(3),d("dataSource",r.dataSource),t(28),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns))},dependencies:[T,D,N,gt,xe,ye,De,Ee,Te,Ie,je,Me,we,Pe,Re,Xe,P,Ve],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function La(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function Ua(e,p){if(e&1&&(a(0,"td",13),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.postedDate))}}function $a(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount")))}function Ga(e,p){if(e&1&&(a(0,"td",13),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit,m=A();t(),S(" ",_e(2,1,i.amount,m.shareAccountData.currency.code,"symbol-narrow","1.2-2")," ")}}function za(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Reference")))}function Qa(e,p){if(e&1&&(a(0,"td",13),s(1),n()),e&2){let i=p.$implicit;t(),l(i.savingsTransactionId)}}function Ka(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Status")))}function Wa(e,p){if(e&1&&(a(0,"td",13),s(1),o(2,"translate"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,"labels.status."+i.status.value))}}function Ya(e,p){e&1&&h(0,"tr",14)}function Ja(e,p){e&1&&h(0,"tr",15)}var kt=(()=>{class e{constructor(){this.route=f(B),this.displayedColumns=["transactionDate","amount","transactionReference","status"],this.route.parent.data.subscribe(i=>{this.shareAccountData=i.sharesAccountData,this.dividendsData=this.shareAccountData.dividends})}ngOnInit(){this.dataSource=new qe(this.dividendsData)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-dividends-tab"]],decls:21,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["matColumnDef","transactionReference"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"h3"),s(3),o(4,"translate"),n()(),a(5,"div",2)(6,"table",3),y(7,4),C(8,La,3,3,"th",5)(9,Ua,3,3,"td",6),E(),y(10,7),C(11,$a,3,3,"th",5)(12,Ga,3,6,"td",6),E(),y(13,8),C(14,za,3,3,"th",5)(15,Qa,2,1,"td",6),E(),y(16,9),C(17,Ka,3,3,"th",5)(18,Wa,3,3,"td",6),E(),C(19,Ya,1,0,"tr",10)(20,Ja,1,0,"tr",11),n()()()),m&2&&(t(3),l(c(4,4,"labels.inputs.Dividends")),t(3),d("dataSource",r.dataSource),t(13),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns))},dependencies:[T,D,xe,ye,De,Ee,Te,Ie,Me,we,Pe,Re,Xe,Fe,P],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function Xa(e,p){if(e&1&&(a(0,"mat-option",5),s(1),n()),e&2){let i=p.$implicit;d("value",i.id),t(),S(" ",i.name," ")}}var Ge=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.sharesAccountProductTemplate=new lt,this.createSharesAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.sharesAccountTemplate&&(this.productData=this.sharesAccountTemplate.productOptions,this.sharesAccountTemplate.productId&&this.sharesAccountDetailsForm.patchValue({productId:this.sharesAccountTemplate.productId,submittedDate:this.sharesAccountTemplate.timeline.submittedOnDate&&new Date(this.sharesAccountTemplate.timeline.submittedOnDate),externalId:this.sharesAccountTemplate.externalId}))}createSharesAccountDetailsForm(){this.sharesAccountDetailsForm=this.formBuilder.group({productId:["",G.required],submittedDate:["",G.required],externalId:[""]})}buildDependencies(){let i=this.sharesAccountTemplate.clientId;this.sharesAccountDetailsForm.get("productId").valueChanges.subscribe(m=>{this.sharesService.getSharesAccountTemplate(i,m).subscribe(r=>{this.sharesAccountProductTemplate.emit(r)})})}get sharesAccountDetails(){return this.sharesAccountDetailsForm.value}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-details-step"]],inputs:{sharesAccountTemplate:"sharesAccountTemplate"},outputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate"},decls:45,vars:39,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"]],template:function(m,r){if(m&1){let u=R();a(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),s(4),o(5,"translate"),n(),a(6,"mat-select",4),ke(7,Xa,2,2,"mat-option",5,Be),n(),a(9,"mat-error"),s(10),o(11,"translate"),o(12,"translate"),a(13,"strong"),s(14),o(15,"translate"),n()()(),a(16,"mat-form-field",6),b("click",function(){I(u);let q=F(23);return M(q.open())}),a(17,"mat-label"),s(18),o(19,"translate"),n(),h(20,"input",7)(21,"mat-datepicker-toggle",8)(22,"mat-datepicker",null,0),a(24,"mat-error"),s(25),o(26,"translate"),o(27,"translate"),a(28,"strong"),s(29),o(30,"translate"),n()()(),a(31,"mat-form-field",3)(32,"mat-label"),s(33),o(34,"translate"),n(),h(35,"input",9),n()(),a(36,"div",10)(37,"button",11),h(38,"fa-icon",12),s(39),o(40,"translate"),n(),a(41,"button",13),s(42),o(43,"translate"),h(44,"fa-icon",14),n()()()}if(m&2){let u,g=F(23);d("formGroup",r.sharesAccountDetailsForm),t(4),l(c(5,17,"labels.inputs.Product Name")),t(3),Ne(r.productData),t(3),w(" ",c(11,19,"labels.inputs.Product Name")," ",c(12,21,"labels.commons.is")," "),t(4),l(c(15,23,"labels.commons.required")),t(4),l(c(19,25,"labels.inputs.Submitted On")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",g),t(),d("for",g),t(4),w(" ",c(26,27,"labels.inputs.Submission Date")," ",c(27,29,"labels.commons.is")," "),t(4),l(c(30,31,"labels.commons.required")),t(4),l(c(34,33,"labels.inputs.External ID")),t(6),S(" ",c(40,35,"labels.buttons.Previous")," "),t(2),d("disabled",!((u=r.sharesAccountDetailsForm.get("productId"))!=null&&u.value&&((u=r.sharesAccountDetailsForm.get("submittedDate"))!=null&&u.value))),t(),S(" ",c(43,37,"labels.buttons.Next")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,Z,X,ue,he,fe,tt,et,Ce,ve,Se,N,Le,be,nt,P],encapsulation:2})}}return e})();function Za(e,p){if(e&1&&(a(0,"span",3),s(1),o(2,"currency"),n()),e&2){let i=A();t(),l(_e(2,1,i.calculateCurrenValue(),i.currency.code,"symbol-narrow","1.2-2"))}}function en(e,p){if(e&1&&(a(0,"mat-option",8),s(1),n()),e&2){let i=p.$implicit;d("value",i.id),t(),w(" ",i.accountNo," - ",i.savingsProductName," ")}}function tn(e,p){if(e&1&&(a(0,"mat-option",8),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;d("value",i.id),t(),S(" ",ae(2,2,i.value,"catalogs")," ")}}function an(e,p){if(e&1&&(a(0,"mat-option",8),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;d("value",i.id),t(),S(" ",ae(2,2,i.value,"catalogs")," ")}}var ze=(()=>{class e{constructor(){this.formBuilder=f(pe),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isSavingsPatched=!1,this.currency=null,this.createSharesAccountTermsForm()}ngOnChanges(){this.sharesAccountProductTemplate&&(this.currency=this.sharesAccountProductTemplate.currency,this.sharesAccountTermsForm.patchValue({currencyCode:this.sharesAccountProductTemplate.currency.code,decimal:this.sharesAccountProductTemplate.currency.decimalPlaces,currencyMultiple:this.sharesAccountProductTemplate.currency.inMultiplesOf,unitPrice:this.sharesAccountProductTemplate.currentMarketPrice,savingsAccountId:""}),this.setOptions(),this.sharesAccountTemplate&&!this.isSavingsPatched&&this.sharesAccountTemplate.savingsAccountId&&(this.sharesAccountTermsForm.get("savingsAccountId").patchValue(this.sharesAccountTemplate.savingsAccountId),this.isSavingsPatched=!0))}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.sharesAccountTemplate&&this.sharesAccountTermsForm.patchValue({requestedShares:this.sharesAccountTemplate.summary.totalPendingForApprovalShares,minimumActivePeriod:this.sharesAccountTemplate.minimumActivePeriod,minimumActivePeriodFrequencyType:this.sharesAccountTemplate.minimumActivePeriod&&this.sharesAccountTemplate.minimumActivePeriodTypeEnum.id,lockinPeriodFrequency:this.sharesAccountTemplate.lockinPeriod,lockinPeriodFrequencyType:this.sharesAccountTemplate.lockinPeriod&&this.sharesAccountTemplate.lockPeriodTypeEnum.id,applicationDate:this.sharesAccountTemplate.purchasedShares[0].purchasedDate&&new Date(this.sharesAccountTemplate.purchasedShares[0].purchasedDate),allowDividendCalculationForInactiveClients:this.sharesAccountTemplate.allowDividendCalculationForInactiveClients})}createSharesAccountTermsForm(){this.sharesAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],requestedShares:["",G.required],unitPrice:[{value:"",disabled:!0}],currencyMultiple:[{value:"",disabled:!0}],savingsAccountId:["",G.required],minimumActivePeriod:[""],minimumActivePeriodFrequencyType:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],applicationDate:["",G.required],allowDividendCalculationForInactiveClients:[!1]})}setOptions(){this.minimumActivePeriodFrequencyTypeData=this.sharesAccountProductTemplate.minimumActivePeriodFrequencyTypeOptions,this.lockinPeriodFrequencyTypeData=this.sharesAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.savingsAccountsData=this.sharesAccountProductTemplate.clientSavingsAccounts}get sharesAccountTerms(){return this.sharesAccountTermsForm.value}calculateCurrenValue(){return this.sharesAccountTermsForm.value.requestedShares&&this.sharesAccountProductTemplate.currentMarketPrice?this.sharesAccountProductTemplate.currentMarketPrice*this.sharesAccountTermsForm.value.requestedShares:0}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-terms-step"]],inputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate",sharesAccountTemplate:"sharesAccountTemplate"},features:[pt],decls:96,vars:75,consts:[["applicationDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","unitPrice"],["type","number","matInput","","formControlName","requestedShares","required",""],["formControlName","savingsAccountId","required",""],[3,"value"],[1,"flex-48",3,"click"],["matInput","","formControlName","applicationDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","allowDividendCalculationForInactiveClients",1,"flex-48"],[1,"mat-h4","flex-98"],["type","number","matInput","","formControlName","minimumActivePeriod"],["formControlName","minimumActivePeriodFrequencyType"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(m,r){if(m&1){let u=R();a(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),s(4),o(5,"translate"),n(),h(6,"input",4),n(),a(7,"mat-form-field",3)(8,"mat-label"),s(9),o(10,"translate"),n(),h(11,"input",5),n(),a(12,"mat-form-field",3)(13,"mat-label"),s(14),o(15,"translate"),n(),h(16,"input",6),a(17,"mat-error"),s(18),o(19,"translate"),o(20,"translate"),a(21,"strong"),s(22),o(23,"translate"),n()()(),v(24,Za,3,6,"span",3),a(25,"mat-form-field",3)(26,"mat-label"),s(27),o(28,"translate"),n(),a(29,"mat-select",7),ke(30,en,2,3,"mat-option",8,Be),n(),a(32,"mat-error"),s(33),o(34,"translate"),o(35,"translate"),a(36,"strong"),s(37),o(38,"translate"),n()()(),a(39,"mat-form-field",9),b("click",function(){I(u);let q=F(46);return M(q.open())}),a(40,"mat-label"),s(41),o(42,"translate"),n(),h(43,"input",10)(44,"mat-datepicker-toggle",11)(45,"mat-datepicker",null,0),a(47,"mat-error"),s(48),o(49,"translate"),o(50,"translate"),a(51,"strong"),s(52),o(53,"translate"),n()()(),a(54,"mat-checkbox",12),s(55),o(56,"translate"),n(),a(57,"h4",13),s(58),o(59,"translate"),n(),a(60,"mat-form-field",3)(61,"mat-label"),s(62),o(63,"translate"),n(),h(64,"input",14),n(),a(65,"mat-form-field",3)(66,"mat-label"),s(67),o(68,"translate"),n(),a(69,"mat-select",15),ke(70,tn,3,5,"mat-option",8,Be),n()(),a(72,"h4",13),s(73),o(74,"translate"),n(),a(75,"mat-form-field",3)(76,"mat-label"),s(77),o(78,"translate"),n(),h(79,"input",16),n(),a(80,"mat-form-field",3)(81,"mat-label"),s(82),o(83,"translate"),n(),a(84,"mat-select",17),ke(85,an,3,5,"mat-option",8,Be),n()()(),a(87,"div",18)(88,"button",19),h(89,"fa-icon",20),s(90),o(91,"translate"),n(),a(92,"button",21),s(93),o(94,"translate"),h(95,"fa-icon",22),n()()()}if(m&2){let u=F(46);d("formGroup",r.sharesAccountTermsForm),t(4),l(c(5,29,"labels.inputs.Currency")),t(5),l(c(10,31,"labels.inputs.Current Price")),t(5),l(c(15,33,"labels.inputs.Total Number of Shares")),t(4),w(" ",c(19,35,"labels.inputs.Total Number of Shares")," ",c(20,37,"labels.commons.is")," "),t(4),l(c(23,39,"labels.commons.required")),t(2),_(r.currency?24:-1),t(3),l(c(28,41,"labels.inputs.Default Savings Account")),t(3),Ne(r.savingsAccountsData),t(3),w(" ",c(34,43,"labels.inputs.Default Savings Account")," ",c(35,45,"labels.commons.is")," "),t(4),l(c(38,47,"labels.commons.required")),t(4),l(c(42,49,"labels.inputs.Application Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(4),w(" ",c(49,51,"labels.inputs.Application Date")," ",c(50,53,"labels.commons.is")," "),t(4),l(c(53,55,"labels.commons.required")),t(3),S(" ",c(56,57,"labels.inputs.Allow dividends for inactive clients")," "),t(3),l(c(59,59,"labels.heading.Minimum Active Period")),t(4),l(c(63,61,"labels.inputs.Frequency")),t(5),l(c(68,63,"labels.inputs.Type")),t(3),Ne(r.minimumActivePeriodFrequencyTypeData),t(3),l(c(74,65,"labels.heading.Lock-in Period")),t(4),l(c(78,67,"labels.inputs.Frequency")),t(5),l(c(83,69,"labels.inputs.Type")),t(3),Ne(r.lockinPeriodFrequencyTypeData),t(5),S(" ",c(91,71,"labels.buttons.Previous")," "),t(3),S(" ",c(94,73,"labels.buttons.Next")," ")}},dependencies:[T,D,J,re,di,oe,Y,me,se,ce,Z,X,ue,he,fe,tt,et,Ce,ve,Se,N,vi,Le,be,nt,Xe,P,Ve],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function nn(e,p){if(e&1&&(a(0,"mat-option",3),s(1),n()),e&2){let i=p.$implicit;d("value",i),t(),S(" ",i.name," ")}}function rn(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.name")))}function on(e,p){if(e&1&&(a(0,"td",23),s(1),n()),e&2){let i=p.$implicit;t(),S(" ",i.name+", "+i.currency.displaySymbol," ")}}function sn(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Type")))}function cn(e,p){if(e&1&&(a(0,"td",23),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeCalculationType.value,"catalogs")," ")}}function mn(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount")))}function pn(e,p){if(e&1){let i=R();a(0,"td",23),s(1),a(2,"button",24),b("click",function(){let r=I(i).$implicit,u=A();return M(u.editCharge(r))}),h(3,"fa-icon",25),n()()}if(e&2){let i=p.$implicit;t(),S(" ",i.amount||i.amountOrPercentage," ")}}function ln(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Collected On")))}function dn(e,p){if(e&1&&(a(0,"td",23),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeTimeType.value,"catalogs")," ")}}function un(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Actions")))}function hn(e,p){if(e&1){let i=R();a(0,"td",23)(1,"button",26),b("click",function(){let r=I(i).$implicit,u=A();return M(u.deleteCharge(r))}),h(2,"fa-icon",27),n()()}}function fn(e,p){e&1&&h(0,"tr",28)}function Sn(e,p){e&1&&h(0,"tr",29)}var Qe=(()=>{class e{constructor(){this.dialog=f(He),this.translateService=f(pi),this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"]}ngOnInit(){this.currencyCode.valueChanges.subscribe(()=>{!this.isChargesPatched&&this.sharesAccountTemplate.charges?(this.chargesDataSource=this.sharesAccountTemplate.charges,this.isChargesPatched=!0):this.chargesDataSource=[]})}ngOnChanges(){this.sharesAccountProductTemplate&&(this.chargeData=this.sharesAccountTemplate.chargeOptions,this.chargesDataSource=this.sharesAccountProductTemplate.charges)}addCharge(i){this.chargesDataSource=this.chargesDataSource.concat([i.value]),i.value="",this.pristine=!1}editCharge(i){let m=[new Fi({controlName:"amount",label:this.translateService.instant("labels.inputs.Amount"),value:i.amount||i.amountOrPercentage,type:"number",required:!1})],r={title:this.translateService.instant("labels.heading.Edit Charge"),layout:{addButtonText:"Submit"},formfields:m};this.dialog.open(_i,{data:r}).afterClosed().subscribe(g=>{if(g.data){let q=K(H({},i),{amount:g.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(i),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(i){this.dialog.open(bt,{data:{deleteContext:`charge ${i.name}`}}).afterClosed().subscribe(r=>{r.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(i),1),this.chargesDataSource=this.chargesDataSource.concat([]))}),this.pristine=!1}get sharesAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-charges-step"]],inputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate",sharesAccountTemplate:"sharesAccountTemplate",currencyCode:"currencyCode"},features:[pt],decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),s(3),o(4,"translate"),n(),a(5,"mat-select",null,0),ke(7,nn,2,2,"mat-option",3,Be),o(9,"chargesFilter"),n()(),a(10,"div",4)(11,"button",5),b("click",function(){I(u);let q=F(6);return M(r.addCharge(q))}),h(12,"fa-icon",6),s(13),o(14,"translate"),n()(),a(15,"table",7),y(16,8),C(17,rn,3,3,"th",9)(18,on,2,1,"td",10),E(),y(19,11),C(20,sn,3,3,"th",9)(21,cn,3,4,"td",10),E(),y(22,12),C(23,mn,3,3,"th",9)(24,pn,4,1,"td",10),E(),y(25,13),C(26,ln,3,3,"th",9)(27,dn,3,4,"td",10),E(),y(28,14),C(29,un,3,3,"th",9)(30,hn,3,0,"td",10),E(),C(31,fn,1,0,"tr",15)(32,Sn,1,0,"tr",16),n()(),a(33,"div",17)(34,"button",18),h(35,"fa-icon",19),s(36),o(37,"translate"),n(),a(38,"button",20),s(39),o(40,"translate"),h(41,"fa-icon",21),n()()}if(m&2){let u=F(6);t(3),l(c(4,9,"labels.inputs.Charge")),t(4),Ne(oi(9,11,r.chargeData,r.chargesDataSource,r.currencyCode.value)),t(4),d("disabled",!u.value),t(2),S(" ",c(14,15,"labels.buttons.Add")," "),t(2),d("dataSource",r.chargesDataSource)("hidden",r.chargesDataSource.length===0),t(16),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns),t(4),S(" ",c(37,17,"labels.buttons.Previous")," "),t(3),S(" ",c(40,19,"labels.buttons.Next")," ")}},dependencies:[T,D,Z,X,tt,et,N,be,xe,ye,De,Ee,Te,Ie,ht,Me,we,Pe,Re,Le,nt,P,Ve,Ii],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Cn=e=>[e],vn=()=>["../"];function _n(e,p){if(e&1&&(a(0,"span",4),h(1,"mifosx-external-identifier",11),n()),e&2){let i=A();t(),d("externalId",L(i.sharesAccount.externalId))}}function An(e,p){e&1&&(a(0,"span",4),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Unassigned")," "))}function gn(e,p){if(e&1&&(a(0,"div",2)(1,"span",3),s(2),o(3,"translate"),n(),a(4,"span",4),s(5),o(6,"find"),o(7,"translateKey"),n()()),e&2){let i=A();t(2),l(c(3,3,"labels.inputs.Minimum Active Period")),t(3),w("",i.sharesAccount.minimumActivePeriod,"\xA0",ae(7,10,_e(6,5,i.sharesAccount.minimumActivePeriodFrequencyType,i.sharesAccountProductTemplate.minimumActivePeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function bn(e,p){if(e&1&&(a(0,"div",2)(1,"span",3),s(2),o(3,"translate"),n(),a(4,"span",4),s(5),o(6,"find"),o(7,"translateKey"),n()()),e&2){let i=A();t(2),l(c(3,3,"labels.inputs.Lock-in Period")),t(3),w("",i.sharesAccount.lockinPeriodFrequency,"\xA0",ae(7,10,_e(6,5,i.sharesAccount.lockinPeriodFrequencyType,i.sharesAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function xn(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.name")))}function Tn(e,p){if(e&1&&(a(0,"td",22),s(1),n()),e&2){let i=p.$implicit;t(),S(" ",i.name+", "+i.currency.displaySymbol," ")}}function Dn(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Type")))}function yn(e,p){if(e&1&&(a(0,"td",22),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeCalculationType.value,"catalogs")," ")}}function En(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount")))}function In(e,p){if(e&1&&(a(0,"td",22),s(1),n()),e&2){let i=p.$implicit;t(),S(" ",i.amount||i.amountOrPercentage," ")}}function Mn(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Collected On")))}function Pn(e,p){if(e&1&&(a(0,"td",22),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeTimeType.value,"catalogs")," ")}}function wn(e,p){e&1&&h(0,"tr",23)}function Rn(e,p){e&1&&h(0,"tr",24)}function Fn(e,p){if(e&1&&(a(0,"div",5)(1,"h3",1),s(2),o(3,"translate"),n(),h(4,"mat-divider",2),a(5,"table",12),y(6,13),C(7,xn,3,3,"th",14)(8,Tn,2,1,"td",15),E(),y(9,16),C(10,Dn,3,3,"th",14)(11,yn,3,4,"td",15),E(),y(12,17),C(13,En,3,3,"th",14)(14,In,2,1,"td",15),E(),y(15,18),C(16,Mn,3,3,"th",14)(17,Pn,3,4,"td",15),E(),C(18,wn,1,0,"tr",19)(19,Rn,1,0,"tr",20),n()()),e&2){let i=A();t(2),l(c(3,4,"labels.heading.Charges")),t(3),d("dataSource",i.sharesAccount.charges),t(13),d("matHeaderRowDef",i.chargesDisplayedColumns),t(),d("matRowDefColumns",i.chargesDisplayedColumns)}}var st=(()=>{class e{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.submitEvent=new lt}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-preview-step"]],inputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate",sharesAccountTemplate:"sharesAccountTemplate",sharesAccountTermsForm:"sharesAccountTermsForm",sharesAccount:"sharesAccount"},outputs:{submitEvent:"submitEvent"},decls:92,vars:90,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"h3",1),s(2),o(3,"translate"),n(),h(4,"mat-divider",2),a(5,"div",2)(6,"span",3),s(7),o(8,"translate"),n(),a(9,"span",4),s(10),o(11,"find"),n()(),a(12,"div",2)(13,"span",3),s(14),o(15,"translate"),n(),a(16,"span",4),s(17),o(18,"dateFormat"),n()(),a(19,"div",2)(20,"span",3),s(21),o(22,"translate"),n(),v(23,_n,2,2,"span",4),v(24,An,3,3,"span",4),n(),a(25,"h3",1),s(26),o(27,"translate"),n(),h(28,"mat-divider",2),a(29,"div",2)(30,"span",3),s(31),o(32,"translate"),n(),a(33,"span",4),s(34),o(35,"find"),n()(),a(36,"div",2)(37,"span",3),s(38),o(39,"translate"),n(),a(40,"span",4),s(41),o(42,"formatNumber"),n()(),a(43,"div",2)(44,"span",3),s(45),o(46,"translate"),n(),a(47,"span",4),s(48),o(49,"formatNumber"),n()(),a(50,"div",2)(51,"span",3),s(52),o(53,"translate"),n(),a(54,"span",4),s(55),o(56,"formatNumber"),n()(),a(57,"div",2)(58,"span",3),s(59),o(60,"translate"),n(),a(61,"span",4),s(62),o(63,"find"),n()(),v(64,gn,8,13,"div",2),v(65,bn,8,13,"div",2),a(66,"div",2)(67,"span",3),s(68),o(69,"translate"),n(),a(70,"span",4),s(71),o(72,"dateFormat"),n()(),a(73,"div",2)(74,"span",3),s(75),o(76,"translate"),n(),a(77,"span",4),s(78),o(79,"yesNo"),n()(),v(80,Fn,20,6,"div",5),n(),a(81,"div",6)(82,"button",7),h(83,"fa-icon",8),s(84),o(85,"translate"),n(),a(86,"button",9),s(87),o(88,"translate"),n(),a(89,"button",10),b("click",function(){return r.submitEvent.emit()}),s(90),o(91,"translate"),n()()),m&2&&(t(2),l(c(3,30,"labels.heading.Details")),t(5),l(c(8,32,"labels.inputs.Product")),t(3),l(_e(11,34,r.sharesAccount.productId,r.sharesAccountTemplate.productOptions,"id","name")),t(4),l(c(15,39,"labels.inputs.Submitted On")),t(3),l(c(18,41,r.sharesAccount.submittedDate)),t(4),l(c(22,43,"labels.inputs.External Id")),t(2),_(r.sharesAccount.externalId?23:-1),t(),_(r.sharesAccount.externalId?-1:24),t(2),l(c(27,45,"labels.heading.Terms")),t(5),l(c(32,47,"labels.inputs.Currency")),t(3),l(_e(35,49,r.sharesAccountTermsForm.get("currencyCode").value,ri(87,Cn,r.sharesAccountProductTemplate.currency),"code","displayLabel")),t(4),l(c(39,54,"labels.inputs.Total Number of Shares")),t(3),l(c(42,56,r.sharesAccount.requestedShares)),t(4),l(c(46,58,"labels.inputs.Current Price")),t(3),l(c(49,60,r.sharesAccountTermsForm.get("unitPrice").value)),t(4),l(c(53,62,"labels.inputs.Amount")),t(3),l(c(56,64,r.sharesAccount.requestedShares*r.sharesAccountTermsForm.get("unitPrice").value)),t(4),l(c(60,66,"labels.inputs.Default Savings Account")),t(3),l(_e(63,68,r.sharesAccount.savingsAccountId,r.sharesAccountProductTemplate.clientSavingsAccounts,"id","accountNo")),t(2),_(r.sharesAccount.minimumActivePeriod?64:-1),t(),_(r.sharesAccount.lockinPeriodFrequency?65:-1),t(3),l(c(69,73,"labels.inputs.Application Date")),t(3),l(c(72,75,r.sharesAccount.applicationDate)),t(4),l(c(76,77,"labels.inputs.Allow dividends for inactive clients")),t(3),l(c(79,79,r.sharesAccount.allowDividendCalculationForInactiveClients)),t(2),_(r.sharesAccount.charges.length?80:-1),t(4),S(" ",c(85,81,"labels.buttons.Previous")," "),t(2),d("routerLink",O(89,vn)),t(),S(" ",c(88,83,"labels.buttons.Cancel")," "),t(3),S(" ",c(91,85,"labels.buttons.Submit")," "))},dependencies:[T,D,W,N,Ai,It,xe,ye,De,Ee,Te,Ie,Me,we,Pe,Re,Le,be,Fe,P,Ve,Mi,rt,Pi],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function Bn(e,p){e&1&&h(0,"fa-icon",14)}function kn(e,p){e&1&&h(0,"fa-icon",14)}function Nn(e,p){e&1&&h(0,"fa-icon",15)}function On(e,p){e&1&&h(0,"fa-icon",16)}function Vn(e,p){e&1&&h(0,"fa-icon",17)}function qn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.DETAILS"))}function Hn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.TERMS"))}function jn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.CHARGES"))}function Ln(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.PREVIEW"))}function Un(e,p){if(e&1){let i=R();a(0,"mat-step",13),C(1,Ln,2,3,"ng-template",9),a(2,"mifosx-shares-account-preview-step",18),b("submitEvent",function(){I(i);let r=A();return M(r.submit())}),n()()}if(e&2){let i=A();t(2),d("sharesAccountProductTemplate",i.sharesAccountProductTemplate)("sharesAccountTemplate",i.sharesAccountTemplate)("sharesAccountTermsForm",i.sharesAccountTermsForm)("sharesAccount",i.sharesAccount)}}var Nt=(()=>{class e{constructor(){this.route=f(B),this.router=f(Q),this.dateUtils=f(ne),this.sharesService=f(k),this.settingsService=f(j),this.route.data.subscribe(i=>{this.sharesAccountTemplate=i.sharesAccountTemplate})}setTemplate(i){this.sharesAccountProductTemplate=i}get sharesAccountDetailsForm(){return this.sharesAccountDetailsStep.sharesAccountDetailsForm}get sharesAccountTermsForm(){return this.sharesAccountTermsStep.sharesAccountTermsForm}get sharesAccountFormValid(){return this.sharesAccountDetailsForm.valid&&this.sharesAccountTermsForm.valid}get sharesAccount(){return H(H(H({},this.sharesAccountDetailsStep.sharesAccountDetails),this.sharesAccountTermsStep.sharesAccountTerms),this.sharesAccountChargesStep.sharesAccountCharges)}submit(){let i=this.settingsService.language.code,m=this.settingsService.dateFormat,r=K(H({},this.sharesAccount),{clientId:this.sharesAccountTemplate.clientId,charges:this.sharesAccount.charges.map(u=>({chargeId:u.id,amount:u.amount})),applicationDate:this.dateUtils.formatDate(this.sharesAccount.applicationDate,m),submittedDate:this.dateUtils.formatDate(this.sharesAccount.submittedDate,m),unitPrice:this.sharesAccountTermsForm.get("unitPrice").value,dateFormat:m,locale:i});this.sharesService.createSharesAccount(r).subscribe(u=>{this.router.navigate(["../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-create-shares-account"]],viewQuery:function(m,r){if(m&1&&(ee(Ge,7),ee(ze,7),ee(Qe,7)),m&2){let u;te(u=ie())&&(r.sharesAccountDetailsStep=u.first),te(u=ie())&&(r.sharesAccountTermsStep=u.first),te(u=ie())&&(r.sharesAccountChargesStep=u.first)}},decls:18,vars:9,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"sharesAccountProductTemplate","sharesAccountTemplate"],[3,"sharesAccountProductTemplate"],[3,"sharesAccountProductTemplate","sharesAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","sharesAccountProductTemplate","sharesAccountTemplate","sharesAccountTermsForm","sharesAccount"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-stepper",2,0),C(3,Bn,1,0,"ng-template",3)(4,kn,1,0,"ng-template",4)(5,Nn,1,0,"ng-template",5)(6,On,1,0,"ng-template",6)(7,Vn,1,0,"ng-template",7),a(8,"mat-step",8),C(9,qn,2,3,"ng-template",9),a(10,"mifosx-shares-account-details-step",10),b("sharesAccountProductTemplate",function(q){return I(u),M(r.setTemplate(q))}),n()(),a(11,"mat-step",8),C(12,Hn,2,3,"ng-template",9),h(13,"mifosx-shares-account-terms-step",11),n(),a(14,"mat-step"),C(15,jn,2,3,"ng-template",9),h(16,"mifosx-shares-account-charges-step",12),n(),v(17,Un,3,4,"mat-step",13),n()()}m&2&&(t(),d("linear",!1),t(7),d("stepControl",r.sharesAccountDetailsForm),t(2),d("sharesAccountTemplate",r.sharesAccountTemplate),t(),d("stepControl",r.sharesAccountTermsForm),t(2),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate),t(3),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate)("sharesAccountTemplate",r.sharesAccountTemplate)("currencyCode",r.sharesAccountTermsForm.get("currencyCode")),t(),_(r.sharesAccountFormValid?17:-1))},dependencies:[T,D,Et,Dt,be,yt,Tt,Ge,ze,Qe,st,P],encapsulation:2})}}return e})();function $n(e,p){e&1&&h(0,"fa-icon",13)}function Gn(e,p){e&1&&h(0,"fa-icon",13)}function zn(e,p){e&1&&h(0,"fa-icon",14)}function Qn(e,p){e&1&&h(0,"fa-icon",15)}function Kn(e,p){e&1&&h(0,"fa-icon",16)}function Wn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.DETAILS"))}function Yn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.TERMS"))}function Jn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.CHARGES"))}function Xn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.PREVIEW"))}function Zn(e,p){if(e&1){let i=R();a(0,"mat-step",12),C(1,Xn,2,3,"ng-template",9),a(2,"mifosx-shares-account-preview-step",17),b("submitEvent",function(){I(i);let r=A();return M(r.submit())}),n()()}if(e&2){let i=A();t(2),d("sharesAccountProductTemplate",i.sharesAccountProductTemplate)("sharesAccountTemplate",i.sharesAccountAndTemplate)("sharesAccountTermsForm",i.sharesAccountTermsForm)("sharesAccount",i.sharesAccount)}}var Ot=(()=>{class e{constructor(){this.route=f(B),this.router=f(Q),this.dateUtils=f(ne),this.sharesService=f(k),this.settingsService=f(j),this.route.data.subscribe(i=>{this.sharesAccountAndTemplate=i.sharesAccountAndTemplate})}setTemplate(i){this.sharesAccountProductTemplate=i}get sharesAccountDetailsForm(){return this.sharesAccountDetailsStep.sharesAccountDetailsForm}get sharesAccountTermsForm(){return this.sharesAccountTermsStep.sharesAccountTermsForm}get sharesAccountFormValidAndNotPristine(){return this.sharesAccountDetailsForm.valid&&this.sharesAccountTermsForm.valid&&(!this.sharesAccountDetailsForm.pristine||!this.sharesAccountTermsForm.pristine||!this.sharesAccountChargesStep.pristine)}get sharesAccount(){return H(H(H({},this.sharesAccountDetailsStep.sharesAccountDetails),this.sharesAccountTermsStep.sharesAccountTerms),this.sharesAccountChargesStep.sharesAccountCharges)}submit(){let i=this.settingsService.language.code,m=this.settingsService.dateFormat,r=K(H({},this.sharesAccount),{clientId:this.sharesAccountAndTemplate.clientId,charges:this.sharesAccount.charges.map(u=>({chargeId:u.id,amount:u.amount})),applicationDate:this.dateUtils.formatDate(this.sharesAccount.applicationDate,m),submittedDate:this.dateUtils.formatDate(this.sharesAccount.submittedDate,m),unitPrice:this.sharesAccountTermsForm.get("unitPrice").value,dateFormat:m,locale:i});this.sharesService.updateSharesAccount(this.sharesAccountAndTemplate.id,r).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-edit-shares-account"]],viewQuery:function(m,r){if(m&1&&(ee(Ge,7),ee(ze,7),ee(Qe,7)),m&2){let u;te(u=ie())&&(r.sharesAccountDetailsStep=u.first),te(u=ie())&&(r.sharesAccountTermsStep=u.first),te(u=ie())&&(r.sharesAccountChargesStep=u.first)}},decls:18,vars:10,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"sharesAccountProductTemplate","sharesAccountTemplate"],[3,"sharesAccountProductTemplate","sharesAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","sharesAccountProductTemplate","sharesAccountTemplate","sharesAccountTermsForm","sharesAccount"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-stepper",2,0),C(3,$n,1,0,"ng-template",3)(4,Gn,1,0,"ng-template",4)(5,zn,1,0,"ng-template",5)(6,Qn,1,0,"ng-template",6)(7,Kn,1,0,"ng-template",7),a(8,"mat-step",8),C(9,Wn,2,3,"ng-template",9),a(10,"mifosx-shares-account-details-step",10),b("sharesAccountProductTemplate",function(q){return I(u),M(r.setTemplate(q))}),n()(),a(11,"mat-step",8),C(12,Yn,2,3,"ng-template",9),h(13,"mifosx-shares-account-terms-step",10),n(),a(14,"mat-step"),C(15,Jn,2,3,"ng-template",9),h(16,"mifosx-shares-account-charges-step",11),n(),v(17,Zn,3,4,"mat-step",12),n()()}m&2&&(t(),d("linear",!1),t(7),d("stepControl",r.sharesAccountDetailsForm),t(2),d("sharesAccountTemplate",r.sharesAccountAndTemplate),t(),d("stepControl",r.sharesAccountTermsForm),t(2),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate)("sharesAccountTemplate",r.sharesAccountAndTemplate),t(3),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate)("sharesAccountTemplate",r.sharesAccountAndTemplate)("currencyCode",r.sharesAccountTermsForm.get("currencyCode")),t(),_(r.sharesAccountFormValidAndNotPristine?17:-1))},dependencies:[T,D,Et,Dt,be,yt,Tt,Ge,ze,Qe,st,P],encapsulation:2})}}return e})();var er=()=>["../../"];function tr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Approved On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var Vt=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSharesAccountForm()}createApproveSharesAccountForm(){this.approveSharesAccountForm=this.formBuilder.group({approvedDate:["",G.required],note:[""]})}submit(){let i=this.approveSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.approveSharesAccountForm.value.approvedDate;i.approvedDate instanceof Date&&(i.approvedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"approve",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-approve-shares-account"]],decls:26,vars:21,consts:[["approvedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,tr,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"textarea",7),n()()(),a(19,"mat-card-actions",8)(20,"button",9),s(21),o(22,"translate"),n(),a(23,"button",10),s(24),o(25,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.approveSharesAccountForm),t(5),l(c(8,12,"labels.inputs.Approved On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.approveSharesAccountForm.controls.approvedDate.hasError("required")?13:-1),t(3),l(c(17,14,"labels.inputs.Note")),t(4),d("routerLink",O(20,er)),t(),S(" ",c(22,16,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.approveSharesAccountForm.valid),t(),S(" ",c(25,18,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,Ze,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var ir=()=>["../../"];function ar(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Rejected On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var qt=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSharesAccountForm()}createRejectSharesAccountForm(){this.rejectSharesAccountForm=this.formBuilder.group({rejectedDate:["",G.required],note:[""]})}submit(){let i=this.rejectSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.rejectSharesAccountForm.value.rejectedDate;i.rejectedDate instanceof Date&&(i.rejectedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"reject",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-reject-shares-account"]],decls:26,vars:21,consts:[["rejectedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,ar,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"textarea",7),n()()(),a(19,"mat-card-actions",8)(20,"button",9),s(21),o(22,"translate"),n(),a(23,"button",10),s(24),o(25,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.rejectSharesAccountForm),t(5),l(c(8,12,"labels.inputs.Rejected On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.rejectSharesAccountForm.controls.rejectedDate.hasError("required")?13:-1),t(3),l(c(17,14,"labels.inputs.Note")),t(4),d("routerLink",O(20,ir)),t(),S(" ",c(22,16,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.rejectSharesAccountForm.valid),t(),S(" ",c(25,18,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,Ze,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var nr=()=>["../../"];function rr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Closed On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var Ht=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSharesAccountForm()}createCloseSharesAccountForm(){this.closeSharesAccountForm=this.formBuilder.group({closedDate:["",G.required],note:[""]})}submit(){let i=this.closeSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.closeSharesAccountForm.value.closedDate;i.closedDate instanceof Date&&(i.closedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"close",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-close-shares-account"]],decls:26,vars:21,consts:[["closedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,rr,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"textarea",7),n()()(),a(19,"mat-card-actions",8)(20,"button",9),s(21),o(22,"translate"),n(),a(23,"button",10),s(24),o(25,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.closeSharesAccountForm),t(5),l(c(8,12,"labels.inputs.Closed On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.closeSharesAccountForm.controls.closedDate.hasError("required")?13:-1),t(3),l(c(17,14,"labels.inputs.Note")),t(4),d("routerLink",O(20,nr)),t(),S(" ",c(22,16,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.closeSharesAccountForm.valid),t(),S(" ",c(25,18,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,Ze,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var or=()=>["../../"];function sr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Activated On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var jt=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSharesAccountForm()}createActivateSharesAccountForm(){this.activateSharesAccountForm=this.formBuilder.group({activatedDate:["",G.required]})}submit(){let i=this.activateSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.activateSharesAccountForm.value.activatedDate;i.activatedDate instanceof Date&&(i.activatedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"activate",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-activate-shares-account"]],decls:20,vars:18,consts:[["activatedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activatedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){I(u);let q=F(11);return M(q.open())}),a(5,"mat-label"),s(6),o(7,"translate"),n(),h(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,sr,7,9,"mat-error"),n()(),a(13,"mat-card-actions",6)(14,"button",7),s(15),o(16,"translate"),n(),a(17,"button",8),s(18),o(19,"translate"),n()()()()()}if(m&2){let u=F(11);t(2),d("formGroup",r.activateSharesAccountForm),t(4),l(c(7,11,"labels.inputs.Activated On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.activateSharesAccountForm.controls.activatedDate.hasError("required")?12:-1),t(2),d("routerLink",O(17,or)),t(),S(" ",c(16,13,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.activateSharesAccountForm.valid),t(),S(" ",c(19,15,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var cr=()=>["../../"],Lt=(()=>{class e{constructor(){this.sharesService=f(k),this.route=f(B),this.router=f(Q),this.accountId=this.route.parent.snapshot.params.shareAccountId}submit(){this.sharesService.executeSharesAccountCommand(this.accountId,"undoapproval",{}).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-undo-approval-shares-account"]],decls:15,vars:12,consts:[[1,"container"],[3,"ngSubmit"],[1,"mat-typography","confirm-text"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn"]],template:function(m,r){m&1&&(a(0,"div",0)(1,"mat-card")(2,"form",1),b("ngSubmit",function(){return r.submit()}),a(3,"mat-card-content")(4,"div")(5,"p",2),s(6),o(7,"translate"),n()()(),a(8,"mat-card-actions",3)(9,"button",4),s(10),o(11,"translate"),n(),a(12,"button",5),s(13),o(14,"translate"),n()()()()()),m&2&&(t(6),w(" ",c(7,5,"labels.text.Undo approval of shares account with ID"),": ",r.accountId," ? "),t(3),d("routerLink",O(11,cr)),t(),S(" ",c(11,7,"labels.buttons.Cancel")," "),t(3),l(c(14,9,"labels.buttons.Submit")))},dependencies:[T,D,J,Y,W,le,de,ge,N,ui,li,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .confirm-text[_ngcontent-%COMP%]{font-size:16px;text-align:center}"]})}}return e})();var mr=()=>["../../"];function pr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Request Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}function lr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Requested Shares")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var Ut=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplySharesAccountForm(),this.applySharesForm.get("unitPrice").patchValue(this.sharesAccountData.currentMarketPrice||"")}createApplySharesAccountForm(){this.applySharesForm=this.formBuilder.group({requestedDate:["",G.required],requestedShares:["",G.required],unitPrice:[{value:"",disabled:!0}]})}submit(){let i=this.applySharesForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.applySharesForm.value.requestedDate;i.requestedDate instanceof Date&&(i.requestedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{unitPrice:this.applySharesForm.get("unitPrice").value,dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"applyadditionalshares",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-apply-shares"]],decls:32,vars:25,consts:[["requestedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","requestedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","requestedShares"],["matInput","","required","","formControlName","unitPrice"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,pr,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"input",7),v(19,lr,7,9,"mat-error"),n(),a(20,"mat-form-field")(21,"mat-label"),s(22),o(23,"translate"),n(),h(24,"input",8),n()()(),a(25,"mat-card-actions",9)(26,"button",10),s(27),o(28,"translate"),n(),a(29,"button",11),s(30),o(31,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.applySharesForm),t(5),l(c(8,14,"labels.inputs.Request Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.applySharesForm.controls.requestedDate.hasError("required")?13:-1),t(3),l(c(17,16,"labels.inputs.Total No. of Shares")),t(3),_(r.applySharesForm.controls.requestedShares.hasError("required")?19:-1),t(3),l(c(23,18,"labels.inputs.Current Price")),t(4),d("routerLink",O(24,mr)),t(),S(" ",c(28,20,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.applySharesForm.valid),t(),S(" ",c(31,22,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dr=()=>["../../"];function ur(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Request Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}function hr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Requested Shares")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var $t=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRedeemSharesAccountForm(),this.redeemSharesForm.get("unitPrice").patchValue(this.sharesAccountData.currentMarketPrice||"")}createRedeemSharesAccountForm(){this.redeemSharesForm=this.formBuilder.group({requestedDate:["",G.required],requestedShares:["",G.required],unitPrice:[{value:"",disabled:!0}]})}submit(){let i=this.redeemSharesForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.redeemSharesForm.value.requestedDate;i.requestedDate instanceof Date&&(i.requestedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{unitPrice:this.redeemSharesForm.get("unitPrice").value,dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"redeemshares",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-redeem-shares"]],decls:32,vars:25,consts:[["requestedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","requestedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","requestedShares"],["matInput","","required","","formControlName","unitPrice"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,ur,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"input",7),v(19,hr,7,9,"mat-error"),n(),a(20,"mat-form-field")(21,"mat-label"),s(22),o(23,"translate"),n(),h(24,"input",8),n()()(),a(25,"mat-card-actions",9)(26,"button",10),s(27),o(28,"translate"),n(),a(29,"button",11),s(30),o(31,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.redeemSharesForm),t(5),l(c(8,14,"labels.inputs.Request Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.redeemSharesForm.controls.requestedDate.hasError("required")?13:-1),t(3),l(c(17,16,"labels.inputs.Total No. of Shares")),t(3),_(r.redeemSharesForm.controls.requestedShares.hasError("required")?19:-1),t(3),l(c(23,18,"labels.inputs.Current Price")),t(4),d("routerLink",O(24,dr)),t(),S(" ",c(28,20,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.redeemSharesForm.valid),t(),S(" ",c(31,22,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var fr=()=>({approve:!0}),Gt=(()=>{class e{constructor(){this.dialogRef=f(ft),this.data=f(St)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-approve-share-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(m,r){m&1&&(a(0,"h1",0),s(1),o(2,"translate"),n(),a(3,"div",1)(4,"p"),s(5),o(6,"translate"),n()(),a(7,"mat-dialog-actions",2)(8,"button",3),s(9),o(10,"translate"),n(),a(11,"button",4),s(12),o(13,"translate"),n()()),m&2&&(t(),l(c(2,6,"labels.heading.Approve Share")),t(4),w("",c(6,8,"labels.text.Are you sure you want to approve share with id"),": ",r.data.shareId," ?"),t(4),l(c(10,10,"labels.buttons.Cancel")),t(2),d("mat-dialog-close",O(14,fr)),t(),S(" ",c(13,12,"labels.buttons.Submit")," "))},dependencies:[T,D,N,vt,_t,At,Ct,P],encapsulation:2})}}return e})();var Sr=["sharesTable"],Cr=()=>[10,25,50,100];function vr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function _r(e,p){if(e&1&&(a(0,"td",16),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.purchasedDate))}}function Ar(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Total Shares")))}function gr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.numberOfShares)}}function br(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Purchased/Redeemed Price")," "))}function xr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.purchasedPrice)}}function Tr(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Status")))}function Dr(e,p){if(e&1&&(a(0,"td",16),h(1,"i",18),o(2,"statusLookup"),n()),e&2){let i=p.$implicit;t(),d("ngClass",c(2,2,i.status.code))("matTooltip",i.status.value)}}function yr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Confirm Approve")))}function Er(e,p){if(e&1){let i=R();a(0,"td",16)(1,"button",19),o(2,"translate"),b("click",function(){let r=I(i).$implicit,u=A();return M(u.approve(r.id))}),h(3,"i",20),n()()}e&2&&(t(),d("matTooltip",L(c(2,2,"tooltips.Approve Share"))))}function Ir(e,p){e&1&&h(0,"tr",21)}function Mr(e,p){e&1&&h(0,"tr",22)}var zt=(()=>{class e{constructor(){this.sharesService=f(k),this.route=f(B),this.dialog=f(He),this.settingsService=f(j),this.displayedColumns=["transactionDate","totalShares","redeemedPrice","status","approve"],this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.sharesData=this.sharesAccountData.purchasedShares.filter(i=>i.status.value==="Pending Approval"),this.setShares()}setShares(){this.dataSource=new qe(this.sharesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}approve(i){this.dialog.open(Gt,{data:{shareId:i}}).afterClosed().subscribe(r=>{if(r.approve){let u=this.settingsService.language.code,g=this.settingsService.dateFormat,q={requestedShares:[{id:i}],dateFormat:g,locale:u};this.sharesService.executeSharesAccountCommand(this.accountId,"approveadditionalshares",q).subscribe(()=>{let Xt=this.sharesData.find(ei=>ei.id===i),Zt=this.sharesData.indexOf(Xt);this.sharesData.splice(Zt,1),this.dataSource.data=this.sharesData,this.sharesTableRef.renderRows()})}})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-approve-shares"]],viewQuery:function(m,r){if(m&1&&(ee(it,7),ee(at,7),ee(Sr,7)),m&2){let u;te(u=ie())&&(r.paginator=u.first),te(u=ie())&&(r.sort=u.first),te(u=ie())&&(r.sharesTableRef=u.first)}},decls:22,vars:5,consts:[["sharesTable",""],[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalShares"],["matColumnDef","redeemedPrice"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","approve"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-raised-button","","color","accent",1,"share-action-button",3,"click","matTooltip"],[1,"fa","fa-check"],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",1)(1,"div",2)(2,"table",3,0),y(4,4),C(5,vr,3,3,"th",5)(6,_r,3,3,"td",6),E(),y(7,7),C(8,Ar,3,3,"th",5)(9,gr,2,1,"td",6),E(),y(10,8),C(11,br,3,3,"th",5)(12,xr,2,1,"td",6),E(),y(13,9),C(14,Tr,3,3,"th",10)(15,Dr,3,4,"td",6),E(),y(16,11),C(17,yr,3,3,"th",5)(18,Er,4,4,"td",6),E(),C(19,Ir,1,0,"tr",12)(20,Mr,1,0,"tr",13),n(),h(21,"mat-paginator",14),n()()),m&2&&(t(2),d("dataSource",r.dataSource),t(17),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns),t(),d("pageSizeOptions",O(4,Cr)))},dependencies:[T,Je,D,N,xe,at,ye,De,Ee,xt,Te,Ie,je,Me,we,Pe,Re,it,Fe,P,ot],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] .share-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var Pr=()=>({reject:!0}),Qt=(()=>{class e{constructor(){this.dialogRef=f(ft),this.data=f(St)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-reject-share-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(m,r){m&1&&(a(0,"h1",0),s(1),o(2,"translate"),n(),a(3,"div",1)(4,"p"),s(5),o(6,"translate"),n()(),a(7,"mat-dialog-actions",2)(8,"button",3),s(9),o(10,"translate"),n(),a(11,"button",4),s(12),o(13,"translate"),n()()),m&2&&(t(),l(c(2,6,"labels.heading.Reject Share")),t(4),w("",c(6,8,"labels.text.Are you sure you want to reject share with id"),": ",r.data.shareId," ?"),t(4),l(c(10,10,"labels.buttons.Cancel")),t(2),d("mat-dialog-close",O(14,Pr)),t(),S(" ",c(13,12,"labels.buttons.Submit")," "))},dependencies:[T,D,N,vt,_t,At,Ct,P],encapsulation:2})}}return e})();var wr=["sharesTable"],Rr=()=>[10,25,50,100];function Fr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function Br(e,p){if(e&1&&(a(0,"td",16),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.purchasedDate))}}function kr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Total Shares")))}function Nr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.numberOfShares)}}function Or(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Purchased/Redeemed Price")," "))}function Vr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.purchasedPrice)}}function qr(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Status")))}function Hr(e,p){if(e&1&&(a(0,"td",16),h(1,"i",18),o(2,"statusLookup"),n()),e&2){let i=p.$implicit;t(),d("ngClass",c(2,2,i.status.code))("matTooltip",i.status.value)}}function jr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),S("",c(2,1,"labels.inputs.Confirm Reject"),"t"))}function Lr(e,p){if(e&1){let i=R();a(0,"td",16)(1,"button",19),o(2,"translate"),b("click",function(){let r=I(i).$implicit,u=A();return M(u.reject(r.id))}),h(3,"i",20),n()()}e&2&&(t(),d("matTooltip",L(c(2,2,"tooltips.Reject Share"))))}function Ur(e,p){e&1&&h(0,"tr",21)}function $r(e,p){e&1&&h(0,"tr",22)}var Kt=(()=>{class e{constructor(){this.sharesService=f(k),this.route=f(B),this.dialog=f(He),this.settingsService=f(j),this.displayedColumns=["transactionDate","totalShares","redeemedPrice","status","reject"],this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.sharesData=this.sharesAccountData.purchasedShares.filter(i=>i.status.value==="Pending Approval"),this.setShares()}setShares(){this.dataSource=new qe(this.sharesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}reject(i){this.dialog.open(Qt,{data:{shareId:i}}).afterClosed().subscribe(r=>{if(r.reject){let u=this.settingsService.language.code,g=this.settingsService.dateFormat,q={requestedShares:[{id:i}],dateFormat:g,locale:u};this.sharesService.executeSharesAccountCommand(this.accountId,"rejectadditionalshares",q).subscribe(()=>{let Xt=this.sharesData.find(ei=>ei.id===i),Zt=this.sharesData.indexOf(Xt);this.sharesData.splice(Zt,1),this.dataSource.data=this.sharesData,this.sharesTableRef.renderRows()})}})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-reject-shares"]],viewQuery:function(m,r){if(m&1&&(ee(it,7),ee(at,7),ee(wr,7)),m&2){let u;te(u=ie())&&(r.paginator=u.first),te(u=ie())&&(r.sort=u.first),te(u=ie())&&(r.sharesTableRef=u.first)}},decls:22,vars:5,consts:[["sharesTable",""],[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalShares"],["matColumnDef","redeemedPrice"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","reject"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-raised-button","","color","warn",1,"share-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",1)(1,"div",2)(2,"table",3,0),y(4,4),C(5,Fr,3,3,"th",5)(6,Br,3,3,"td",6),E(),y(7,7),C(8,kr,3,3,"th",5)(9,Nr,2,1,"td",6),E(),y(10,8),C(11,Or,3,3,"th",5)(12,Vr,2,1,"td",6),E(),y(13,9),C(14,qr,3,3,"th",10)(15,Hr,3,4,"td",6),E(),y(16,11),C(17,jr,3,3,"th",5)(18,Lr,4,4,"td",6),E(),C(19,Ur,1,0,"tr",12)(20,$r,1,0,"tr",13),n(),h(21,"mat-paginator",14),n()()),m&2&&(t(2),d("dataSource",r.dataSource),t(17),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns),t(),d("pageSizeOptions",O(4,Rr)))},dependencies:[T,Je,D,N,xe,at,ye,De,Ee,xt,Te,Ie,je,Me,we,Pe,Re,it,Fe,P,ot],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] .share-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();function Gr(e,p){e&1&&h(0,"mifosx-approve-shares-account")}function zr(e,p){e&1&&h(0,"mifosx-reject-shares-account")}function Qr(e,p){e&1&&h(0,"mifosx-close-shares-account")}function Kr(e,p){e&1&&h(0,"mifosx-activate-shares-account")}function Wr(e,p){e&1&&h(0,"mifosx-undo-approval-shares-account")}function Yr(e,p){e&1&&h(0,"mifosx-apply-shares")}function Jr(e,p){e&1&&h(0,"mifosx-redeem-shares")}function Xr(e,p){e&1&&h(0,"mifosx-approve-shares")}function Zr(e,p){e&1&&h(0,"mifosx-reject-shares")}var Wt=(()=>{class e{constructor(){this.route=f(B),this.actions={Approve:!1,Reject:!1,Close:!1,Activate:!1,"Undo Approval":!1,"Apply Additional Shares":!1,"Redeem Shares":!1,"Approve Additional Shares":!1,"Reject Additional Shares":!1};let i=this.route.snapshot.params.name;i&&i in this.actions&&(this.actions[i]=!0)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-actions"]],decls:9,vars:9,template:function(m,r){m&1&&(v(0,Gr,1,0,"mifosx-approve-shares-account"),v(1,zr,1,0,"mifosx-reject-shares-account"),v(2,Qr,1,0,"mifosx-close-shares-account"),v(3,Kr,1,0,"mifosx-activate-shares-account"),v(4,Wr,1,0,"mifosx-undo-approval-shares-account"),v(5,Yr,1,0,"mifosx-apply-shares"),v(6,Jr,1,0,"mifosx-redeem-shares"),v(7,Xr,1,0,"mifosx-approve-shares"),v(8,Zr,1,0,"mifosx-reject-shares")),m&2&&(_(r.actions.Approve?0:-1),t(),_(r.actions.Reject?1:-1),t(),_(r.actions.Close?2:-1),t(),_(r.actions.Activate?3:-1),t(),_(r.actions["Undo Approval"]?4:-1),t(),_(r.actions["Apply Additional Shares"]?5:-1),t(),_(r.actions["Redeem Shares"]?6:-1),t(),_(r.actions["Approve Additional Shares"]?7:-1),t(),_(r.actions["Reject Additional Shares"]?8:-1))},dependencies:[T,D,Vt,qt,Ht,jt,Lt,Ut,$t,zt,Kt],encapsulation:2})}}return e})();var Yt=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.paramMap.get("shareAccountId")||i.parent.paramMap.get("shareAccountId");return this.sharesService.getSharesAccountData(m,!1)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();var ii=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.paramMap.get("name"),r=i.paramMap.get("shareAccountId")||i.parent.parent.paramMap.get("shareAccountId");switch(m){case"Apply Additional Shares":case"Redeem Shares":case"Approve Additional Shares":case"Reject Additional Shares":return this.sharesService.getSharesAccountData(r,!0);default:return}}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();var ai=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.parent.parent.paramMap.get("clientId");return this.sharesService.getSharesAccountTemplate(m)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();var ni=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.paramMap.get("shareAccountId");return this.sharesService.getSharesAccountData(m,!0)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();function eo(e,p){if(e&1&&(a(0,"td"),s(1),o(2,"dateFormat"),n()),e&2){let i=A();t(),S(" ",c(2,1,i.sharesAccountData.timeline.activatedDate)," ")}}function to(e,p){e&1&&(a(0,"td"),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.text.Not Activated")," "))}function io(e,p){if(e&1&&(a(0,"td"),h(1,"mifosx-external-identifier",5),n()),e&2){let i=A();t(),d("externalId",L(i.sharesAccountData.externalId))}}function ao(e,p){e&1&&(a(0,"td"),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Unassigned")," "))}function no(e,p){if(e&1&&(a(0,"td"),h(1,"mifosx-account-number",6),n()),e&2){let i=A();t(),d("clientId",L(i.sharesAccountData.clientId))("accountId",L(i.sharesAccountData.savingsAccountId))("accountNo",L(i.sharesAccountData.savingsAccountNumber))}}function ro(e,p){e&1&&(a(0,"td"),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Unassigned")," "))}var Jt=(()=>{class e{constructor(){this.route=f(B),this.route.data.subscribe(i=>{this.sharesAccountData=i.sharesAccountData})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-general-tab"]],decls:52,vars:38,consts:[[1,"tab-container","mat-typography"],[1,"shares-account-tables","layout-row","gap-2percent"],[1,"flex-49"],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],["accountType","2",3,"clientId","accountId","accountNo"]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),s(4),o(5,"translate"),n(),a(6,"table")(7,"tbody")(8,"tr")(9,"td"),s(10),o(11,"translate"),n(),v(12,eo,3,3,"td"),v(13,to,3,3,"td"),n(),a(14,"tr")(15,"td"),s(16),o(17,"translate"),n(),a(18,"td"),s(19),n()(),a(20,"tr")(21,"td"),s(22),o(23,"translate"),n(),v(24,io,2,2,"td"),v(25,ao,3,3,"td"),n(),a(26,"tr")(27,"td"),s(28),o(29,"translate"),n(),v(30,no,2,6,"td"),v(31,ro,3,3,"td"),n()()()(),a(32,"div",2)(33,"h4",3),s(34),o(35,"translate"),n(),a(36,"table")(37,"tbody")(38,"tr")(39,"td"),s(40),o(41,"translate"),n(),a(42,"td",4),s(43),o(44,"formatNumber"),n()(),a(45,"tr")(46,"td"),s(47),o(48,"translate"),n(),a(49,"td",4),s(50),o(51,"formatNumber"),n()()()()()()()),m&2&&(t(4),l(c(5,18,"labels.heading.Shares Details")),t(6),l(c(11,20,"labels.inputs.Activated On")),t(2),_(r.sharesAccountData.timeline.activatedDate?12:-1),t(),_(r.sharesAccountData.timeline.activatedDate?-1:13),t(3),l(c(17,22,"labels.inputs.Currency")),t(3),w("",r.sharesAccountData.currency.name," [",r.sharesAccountData.currency.code,"]"),t(3),l(c(23,24,"labels.inputs.External Id")),t(2),_(r.sharesAccountData.externalId?24:-1),t(),_(r.sharesAccountData.externalId?-1:25),t(3),l(c(29,26,"labels.inputs.Linked Savings Account(Dividend Posting)")),t(2),_(r.sharesAccountData.savingsAccountNumber?30:-1),t(),_(r.sharesAccountData.savingsAccountNumber?-1:31),t(3),l(c(35,28,"labels.heading.Account Summary")),t(6),l(c(41,30,"labels.inputs.Pending for Approval Shares")),t(3),l(c(44,32,r.sharesAccountData.summary.totalPendingForApprovalShares)),t(4),l(c(48,34,"labels.inputs.Approved Shares")),t(3),l(c(51,36,r.sharesAccountData.summary.totalApprovedShares)))},dependencies:[T,D,It,Mt,Fe,P,rt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return e})();var oo=[{path:"",data:{title:"Shares",breadcrumb:"Shares",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Shares Account",breadcrumb:"Create Shares Account"},component:Nt,resolve:{sharesAccountTemplate:ai}},{path:":shareAccountId",data:{title:"Shares Account View",routeParamBreadcrumb:"shareAccountId"},children:[{path:"",component:Rt,resolve:{sharesAccountData:Yt},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Jt,data:{title:"Shares Account General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{sharesAccountData:Yt}},{path:"transactions",component:Ft,data:{title:"Shares Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:Bt,data:{title:"Shares Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"dividends",component:kt,data:{title:"Shares Account Dividends",breadcrumb:"Dividends",routeParamBreadcrumb:!1}}]},{path:"edit",data:{title:"Edit Shares Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ot,resolve:{sharesAccountAndTemplate:ni}},{path:"actions/:name",data:{title:"Shares Account Actions",breadcrumb:"Actions",routeParamBreadcrumb:"name"},component:Wt,resolve:{shareAccountActionData:ii}}]}]}],Vi=(()=>{class e{static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=mt({providers:[Yt,ai,ni,ii],imports:[ti.forChild(oo),ti]})}}return e})();var O0=(()=>{class e{static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=mt({imports:[ki,wi,Ri,Vi,Rt,Ft,kt,Bt,Nt,Ge,ze,Qe,st,Ot,Wt,Vt,qt,Ht,jt,Lt,Ut,$t,zt,Gt,Kt,Qt,Jt]})}}return e})();export{O0 as SharesModule}; +import{$c as li,$d as bt,$e as xt,$f as ot,Ad as Ci,Bc as ft,Bd as X,Cc as St,Cd as ue,Cf as Di,Da as y,Dc as He,Df as yi,Ea as E,Eb as Xe,Ec as Ct,Ef as Ei,Fb as T,Fc as vt,Fd as he,G as Oe,Ga as R,Gc as _t,Gd as Z,H as mt,Hc as At,Hd as Ze,Ia as b,Id as fe,Ig as Bi,Ja as A,Jd as et,K as f,Kg as ki,L as I,Lc as pi,Ld as tt,M,Mc as P,Na as ee,Nd as je,Oa as te,Ob as ut,Od as Se,Pa as ie,Pd as Ce,Qa as F,Qd as ve,Qe as it,Rb as si,Rc as ne,Rd as vi,Sc as j,Sd as Fe,T as pt,Td as Ve,Ua as s,Ud as gt,Uf as It,Va as l,Wa as S,Wc as re,Wf as Ii,Xa as w,Xc as G,Xd as be,Yc as oe,Zc as Y,Zf as Mi,_d as _i,_e as at,_f as rt,ag as Pi,bb as L,bf as Tt,bg as wi,ca as t,cd as J,cf as Dt,da as lt,dd as di,de as Ai,df as yt,eb as O,ef as Et,fb as ri,fd as se,ff as nt,ge as gi,gf as Le,hb as o,hc as B,he as bi,hf as xe,ib as c,ic as ci,id as ce,ie as xi,if as Te,ja as x,jb as ae,jf as De,ka as dt,kb as oi,kc as Q,lb as _e,lc as W,ld as me,lf as ye,mc as mi,mf as Ee,na as C,nc as ti,ne as Ti,of as Ie,pd as pe,pf as Me,pg as Ri,qb as Je,qc as ht,qd as ui,ra as v,rc as N,rd as D,rf as Pe,rg as Fi,sa as _,sd as le,sf as we,ta as Be,td as hi,ua as ke,ud as fi,uf as Re,va as Ne,vd as de,wa as d,xa as a,xd as ge,xf as qe,ya as n,yd as Si,za as h,zg as Mt}from"./chunk-BJA4FJSH.js";import{a as H,b as K}from"./chunk-PHUH23IY.js";var k=(()=>{class e{constructor(){this.http=f(si)}getSharesAccountData(i,m){let r=new ut().set("template",m.toString());return this.http.get(`/accounts/share/${i}`,{params:r})}getSharesAccountTemplate(i,m){let r=new ut().set("clientId",i);return r=m?r.set("productId",m):r,this.http.get("/accounts/share/template",{params:r})}createSharesAccount(i){return this.http.post("/accounts/share",i)}updateSharesAccount(i,m){return this.http.put(`/accounts/share/${i}`,m)}deleteSharesAccount(i){return this.http.delete(`/accounts/share/${i}`)}executeSharesAccountCommand(i,m,r){let u=new ut().set("command",m);return this.http.post(`/accounts/share/${i}`,r,{params:u})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Pt=class{constructor(p){this.setOptions(p),this.setButtons(p)}get singleButtons(){return this.buttonsArray}get options(){return this.optionArray}setButtons(p){switch(p){case"Active":this.buttonsArray=[{name:"Apply Additional Shares",icon:"arrow-right",taskPermissionName:"APPLYADDITIONAL_SHAREACCOUNT"},{name:"Approve Additional Shares",icon:"arrow-right",taskPermissionName:"APPROVEADDITIONAL_SHAREACCOUNT"},{name:"Reject Additional Shares",icon:"arrow-left",taskPermissionName:"REJECTADDITIONAL_SHAREACCOUNT"},{name:"Redeem Shares",icon:"arrow-left",taskPermissionName:"WITHDRAW_SAVINGSACCOUNT"}];break;case"Submitted and pending approval":this.buttonsArray=[{name:"Modify Application",icon:"pencil",taskPermissionName:"UPDATE_SHAREACCOUNT"},{name:"Approve",icon:"check",taskPermissionName:"APPROVE_SHAREACCOUNT"}];break;case"Approved":this.buttonsArray=[{name:"Undo Approval",icon:"undo",taskPermissionName:"APPROVALUNDO_SHAREACCOUNT"},{name:"Activate",icon:"check",taskPermissionName:"ACTIVATE_SHAREACCOUNT"}];break;default:this.buttonsArray=[]}}setOptions(p){switch(p){case"Active":this.optionArray=[{name:"Close",taskPermissionName:"CLOSE_SHAREACCOUNT"}];break;case"Submitted and pending approval":this.optionArray=[{name:"Reject",taskPermissionName:"REJECT_SHAREACCOUNT"},{name:"Delete",taskPermissionName:"DELETE_SHAREACCOUNT"}];break;case"Approved":default:this.optionArray=[]}}addOption(p){this.optionArray.push(p)}removeButton(p){let m=this.buttonsArray.map(r=>r.name).indexOf(p);this.buttonsArray.splice(m,1)}};var Hi=()=>["./general"],ji=()=>["./transactions"],Li=()=>["./charges"],Ui=()=>["./dividends"];function $i(e,p){if(e&1&&(a(0,"span",21),h(1,"mifosx-account-number",30),n()),e&2){let i=A();t(),d("accountNo",L(i.sharesAccountData.clientAccountNo))}}function Gi(e,p){if(e&1&&(a(0,"tr")(1,"td"),s(2),o(3,"translate"),n(),a(4,"td"),s(5),o(6,"translateKey"),n()()),e&2){let i=A();t(2),S("",c(3,3,"labels.inputs.Lockin Period")," :"),t(3),w(" ",i.sharesAccountData.lockinPeriod," ",ae(6,5,i.sharesAccountData.lockPeriodTypeEnum.value,"catalogs")," ")}}function zi(e,p){if(e&1&&(a(0,"button",25)(1,"mat-icon",31),h(2,"fa-icon",32),n()()),e&2){A();let i=F(42);d("matMenuTriggerFor",i)}}function Qi(e,p){if(e&1){let i=R();a(0,"button",34),b("click",function(){I(i);let r=A().$implicit,u=A();return M(u.doAction(r.name))}),a(1,"mat-icon",35),h(2,"fa-icon",36),n(),a(3,"span"),s(4),o(5,"translate"),n()()}if(e&2){let i=A().$implicit;t(2),d("icon",L(i.icon)),t(2),l(c(5,3,"labels.menus."+i.name))}}function Ki(e,p){if(e&1&&C(0,Qi,6,5,"button",33),e&2){let i=p.$implicit;d("mifosxHasPermission",i.taskPermissionName)}}function Wi(e,p){if(e&1){let i=R();a(0,"button",34),b("click",function(){I(i);let r=A().$implicit,u=A(2);return M(u.doAction(r.name))}),s(1),o(2,"translate"),n()}if(e&2){let i=A().$implicit;t(),S(" ",c(2,1,"labels.menus."+i.name)," ")}}function Yi(e,p){if(e&1&&(a(0,"span"),C(1,Wi,3,3,"button",33),n()),e&2){let i=p.$implicit;t(),d("mifosxHasPermission",i.taskPermissionName)}}function Ji(e,p){if(e&1&&(a(0,"button",37),s(1),o(2,"translate"),n(),a(3,"mat-menu",null,2),ke(5,Yi,2,1,"span",null,Be),n()),e&2){let i=F(4),m=A();d("matMenuTriggerFor",i),t(),l(c(2,2,"labels.menus.More")),t(4),Ne(m.buttonConfig.options)}}function Xi(e,p){if(e&1&&(a(0,"a",38,3),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,Hi))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.General")," ")}}function Zi(e,p){if(e&1&&(a(0,"a",38,4),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,ji))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.Transactions")," ")}}function ea(e,p){if(e&1&&(a(0,"a",38,5),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,Li))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.Charges")," ")}}function ta(e,p){if(e&1&&(a(0,"a",38,6),s(2),o(3,"translate"),n()),e&2){let i=F(1);d("routerLink",O(5,Ui))("active",i.isActive),t(2),S(" ",c(3,3,"labels.inputs.Dividends")," ")}}var Rt=(()=>{class e{constructor(){this.route=f(B),this.router=f(Q),this.sharesService=f(k),this.dialog=f(He),this.route.data.subscribe(i=>{this.sharesAccountData=i.sharesAccountData})}ngOnInit(){this.setConditionalButtons(),this.router.url.includes("clients")?this.entityType="Client":this.router.url.includes("groups")?this.entityType="Group":this.router.url.includes("centers")&&(this.entityType="Center")}setConditionalButtons(){let i=this.sharesAccountData.status.value;if(this.buttonConfig=new Pt(i),this.sharesAccountData.charges&&this.sharesAccountData.charges.forEach(r=>{r.name==="Annual fee - INR"&&this.buttonConfig.addOption({name:"Apply Anuual Fees",taskPermissionName:"APPLYANNUALFEE_SAVINGSACCOUNT"})}),i==="Active"){let m=this.sharesAccountData.purchasedShares,r=!1;m.forEach(u=>{u.status.code==="purchasedSharesStatusType.applied"&&u.type.code==="purchasedSharesType.purchased"&&(r=!0)}),r||(this.buttonConfig.removeButton("Approve Additional Shares"),this.buttonConfig.removeButton("Reject Additional Shares"))}}doAction(i){switch(i){case"Approve":case"Reject":case"Close":case"Activate":case"Undo Approval":case"Apply Additional Shares":case"Redeem Shares":case"Approve Additional Shares":case"Reject Additional Shares":this.router.navigate([`actions/${i}`],{relativeTo:this.route});break;case"Modify Application":this.router.navigate(["edit"],{relativeTo:this.route});break;case"Delete":this.deleteSharesAccount();break}}deleteSharesAccount(){this.dialog.open(bt,{data:{deleteContext:`shares account with id: ${this.sharesAccountData.id}`}}).afterClosed().subscribe(m=>{m.delete&&this.sharesService.deleteSharesAccount(this.sharesAccountData.id).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-view"]],decls:55,vars:37,consts:[["accountMenu","matMenu"],["tabPanel",""],["More","matMenu"],["general","routerLinkActive"],["transactions","routerLinkActive"],["charges","routerLinkActive"],["dividends","routerLinkActive"],[1,"account-card"],[1,"header","layout-column"],[1,"header-title-group"],[1,"profile-image-container"],["mat-card-md-image","","src","assets/images/shares_account_placeholder.png",1,"profile-image",3,"matTooltip"],[1,"mat-typography","account-card-title"],[1,"layout-row","responsive-column"],[1,"flex-60"],[1,"fa","fa-stop",3,"ngClass","matTooltip"],[1,"m-r-5"],[3,"textValue"],["display","left",3,"accountNo"],[1,"shares-overview"],[1,"m-r-10"],[1,"m-l-10"],[1,"account-overview"],[1,"flex-auto"],[1,"flex-40"],["mat-icon-button","","aria-label","Share account actions","yPosition","below",3,"matMenuTriggerFor"],["mat-menu-item",""],[1,"content"],["mat-tab-nav-bar","",1,"navigation-tabs",3,"tabPanel"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active",4,"mifosxHasPermission"],[3,"accountNo"],["matListIcon","",1,"actions-menu"],["icon","bars","size","sm"],["mat-menu-item","",3,"click",4,"mifosxHasPermission"],["mat-menu-item","",3,"click"],["matListIcon",""],["size","sm",3,"icon"],["mat-menu-item","",3,"matMenuTriggerFor"],["mat-tab-link","","routerLinkActive","",3,"routerLink","active"]],template:function(m,r){if(m&1&&(a(0,"mat-card",7)(1,"mat-card-header",8)(2,"mat-card-title-group",9)(3,"div",10)(4,"div"),h(5,"img",11),o(6,"translate"),n()(),a(7,"div",12)(8,"mat-card-title")(9,"div",13)(10,"div",14)(11,"h3"),h(12,"i",15),o(13,"statusLookup"),a(14,"span",16),s(15),o(16,"translate"),n(),a(17,"span",16),h(18,"mifosx-long-text",17),n(),h(19,"mifosx-account-number",18),n(),a(20,"span",19)(21,"span",20),s(22),o(23,"translate"),o(24,"translate"),n(),s(25),v(26,$i,2,2,"span",21),n(),a(27,"div")(28,"table",22)(29,"tbody")(30,"tr")(31,"td"),s(32),o(33,"translate"),n(),a(34,"td"),s(35),o(36,"formatNumber"),n()(),v(37,Gi,7,8,"tr"),n()()()(),h(38,"span",23),a(39,"div",24),v(40,zi,3,1,"button",25),n()()()()(),a(41,"mat-menu",null,0),ke(43,Ki,1,1,"button",26,Be),v(45,Ji,7,4),n()(),a(46,"mat-card-content",27)(47,"nav",28),C(48,Xi,4,6,"a",29)(49,Zi,4,6,"a",29)(50,ea,4,6,"a",29)(51,ta,4,6,"a",29),n(),a(52,"mat-tab-nav-panel",null,1),h(54,"router-outlet"),n()()()),m&2){let u=F(53);t(5),d("matTooltip",L(c(6,23,"tooltips.Shares Account"))),t(7),d("ngClass",c(13,25,r.sharesAccountData.status.code))("matTooltip",r.sharesAccountData.status.value),t(3),S("",c(16,27,"labels.inputs.Share Product")," :"),t(3),d("textValue",L(r.sharesAccountData.productName)),t(),d("accountNo",L(r.sharesAccountData.accountNo)),t(3),w("",c(23,29,"labels.text."+r.entityType)," ",c(24,31,"labels.inputs.name")," :"),t(3),S("",r.sharesAccountData.clientName||r.sharesAccountData.groupName," "),t(),_(r.sharesAccountData.clientAccountNo?26:-1),t(6),S("",c(33,33,"labels.inputs.Current Market Price")," :"),t(3),l(c(36,35,r.sharesAccountData.currentMarketPrice)),t(2),_(r.sharesAccountData.lockinPeriod?37:-1),t(3),_(r.buttonConfig.singleButtons.length>0?40:-1),t(3),Ne(r.buttonConfig.singleButtons),t(2),_(r.buttonConfig.options.length?45:-1),t(2),d("tabPanel",u),t(),d("mifosxHasPermission","READ_SHAREACCOUNTPURCHASE"),t(),d("mifosxHasPermission","READ_SHAREACCOUNTPURCHASE"),t(),d("mifosxHasPermission","READ_SHAREACCOUNTCHARGE"),t(),d("mifosxHasPermission","READ_SHAREACCOUNTDIVIDENDS")}},dependencies:[T,Je,D,W,le,de,gt,Si,fi,Ci,je,hi,Bi,Mt,ht,xi,Ti,be,bi,gi,Di,yi,mi,Ei,ci,P,Ve,ot,rt],styles:[".shares-overview[_ngcontent-%COMP%]{font-size:14px}.account-overview[_ngcontent-%COMP%]{min-width:60%;font-weight:400}"]})}}return e})();function ia(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function aa(e,p){if(e&1&&(a(0,"td",15),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.purchasedDate))}}function na(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Type")))}function ra(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit;t(),w(" ",i.type.value," ",i.type.value!=="Charge Payment"?"("+i.status.value+")":""," ")}}function oa(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Total Shares")))}function sa(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit;t(),l(i.numberOfShares)}}function ca(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Purhcased/Redeemed Price")))}function ma(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit,m=A();t(),w(" ",m.shareAccountData.currency.displaySymbol,"\xA0",i.purchasedPrice," ")}}function pa(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Charge Amount")))}function la(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit,m=A();t(),w(" ",m.shareAccountData.currency.displaySymbol,"\xA0",i.type.value==="Charge Payment"?i.amount:i.chargeAmount," ")}}function da(e,p){e&1&&(a(0,"th",14),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount Recieved/Returned")))}function ua(e,p){if(e&1&&(a(0,"td",15),s(1),n()),e&2){let i=p.$implicit,m=A();t(),w(" ",m.shareAccountData.currency.displaySymbol,"\xA0",i.amount," ")}}function ha(e,p){e&1&&h(0,"tr",16)}function fa(e,p){e&1&&h(0,"tr",17)}var Ft=(()=>{class e{constructor(){this.route=f(B),this.displayedColumns=["transactionDate","transactionType","totalShares","purchasedOrRedeemedPrice","chargeAmount","amountRecievedOrReturned"],this.route.parent.data.subscribe(i=>{this.shareAccountData=i.sharesAccountData,this.transactionsData=this.shareAccountData.purchasedShares})}ngOnInit(){this.dataSource=new qe(this.transactionsData)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-transactions-tab"]],decls:27,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","transactionType"],["matColumnDef","totalShares"],["matColumnDef","purchasedOrRedeemedPrice"],["matColumnDef","chargeAmount"],["matColumnDef","amountRecievedOrReturned"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"h3"),s(3),o(4,"translate"),n()(),a(5,"div",2)(6,"table",3),y(7,4),C(8,ia,3,3,"th",5)(9,aa,3,3,"td",6),E(),y(10,7),C(11,na,3,3,"th",5)(12,ra,2,2,"td",6),E(),y(13,8),C(14,oa,3,3,"th",5)(15,sa,2,1,"td",6),E(),y(16,9),C(17,ca,3,3,"th",5)(18,ma,2,2,"td",6),E(),y(19,10),C(20,pa,3,3,"th",5)(21,la,2,2,"td",6),E(),y(22,11),C(23,da,3,3,"th",5)(24,ua,2,2,"td",6),E(),C(25,ha,1,0,"tr",12)(26,fa,1,0,"tr",13),n()()()),m&2&&(t(3),l(c(4,4,"labels.heading.All Transactions")),t(3),d("dataSource",r.dataSource),t(19),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns))},dependencies:[T,D,xe,ye,De,Ee,Te,Ie,Me,we,Pe,Re,Fe,P],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function Sa(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.name")))}function Ca(e,p){if(e&1&&(a(0,"td",18),s(1),n()),e&2){let i=p.$implicit;t(),l(i.name)}}function va(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Fee/Penalty")))}function _a(e,p){if(e&1&&(a(0,"td",18),s(1),n()),e&2){let i=p.$implicit;t(),l(i.penalty===!0?"Penalty":"Fee")}}function Aa(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Payment Due At")))}function ga(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),l(ae(2,1,i.chargeTimeType.value,"catalogs"))}}function ba(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Calculation Type")))}function xa(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),l(ae(2,1,i.chargeCalculationType.value,"catalogs"))}}function Ta(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Due")))}function Da(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amount,i.currency.code,"symbol-narrow","1.2-2")," ")}}function ya(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Paid")))}function Ea(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amountPaid,i.currency.code,"symbol-narrow","1.2-2")," ")}}function Ia(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Waived")))}function Ma(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amountWaived,i.currency.code,"symbol-narrow","1.2-2")," ")}}function Pa(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Outstanding")))}function wa(e,p){if(e&1&&(a(0,"td",18),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit;t(),S(" ",_e(2,1,i.amountOutstanding,i.currency.code,"symbol-narrow","1.2-2")," ")}}function Ra(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Actions")))}function Fa(e,p){if(e&1){let i=R();a(0,"button",21),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.editCharge(u))}),h(2,"i",22),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Edit Charge")))}function Ba(e,p){if(e&1){let i=R();a(0,"button",23),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.deleteCharge(u.id))}),h(2,"i",24),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Delete Charge")))}function ka(e,p){e&1&&(a(0,"span"),C(1,Fa,3,4,"button",19)(2,Ba,3,4,"button",20),n()),e&2&&(t(),d("mifosxHasPermission","UPDATE_SHARESACCOUNTCHARGE"),t(),d("mifosxHasPermission","DELETE_SHARESACCOUNTCHARGE"))}function Na(e,p){if(e&1){let i=R();a(0,"button",21),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.payCharge(u.id))}),h(2,"i",25),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Pay Charge")))}function Oa(e,p){if(e&1){let i=R();a(0,"button",21),o(1,"translate"),b("click",function(r){I(i);let u=A(2).$implicit,g=A();return g.routeEdit(r),M(g.waiveCharge(u.id))}),h(2,"i",26),n()}e&2&&d("matTooltip",L(c(1,2,"tooltips.Waive Charge")))}function Va(e,p){e&1&&(a(0,"span"),C(1,Na,3,4,"button",19)(2,Oa,3,4,"button",19),n()),e&2&&(t(),d("mifosxHasPermission","PAY_SHARESACCOUNTCHARGE"),t(),d("mifosxHasPermission","WAIVE_SHARESACCOUNTCHARGE"))}function qa(e,p){if(e&1&&(a(0,"td",18),v(1,ka,3,2,"span"),v(2,Va,3,2,"span"),n()),e&2){let i=A();t(),_(i.sharesAccountData.status.value==="Submitted and pending approval"?1:-1),t(),_(i.sharesAccountData.status.value==="Active"?2:-1)}}function Ha(e,p){e&1&&h(0,"tr",27)}function ja(e,p){e&1&&h(0,"tr",28)}var Bt=(()=>{class e{constructor(){this.route=f(B),this.displayedColumns=["name","feeOrPenalty","paymentDueAt","calculationType","due","paid","waived","outstanding","actions"],this.route.parent.data.subscribe(i=>{this.sharesAccountData=i.sharesAccountData,this.chargesData=this.sharesAccountData.charges})}ngOnInit(){let i=this.chargesData?this.chargesData.filter(m=>m.isActive):[];this.dataSource=new qe(i)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-charges-tab"]],decls:36,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","feeOrPenalty"],["matColumnDef","paymentDueAt"],["matColumnDef","calculationType"],["matColumnDef","due"],["matColumnDef","paid"],["matColumnDef","waived"],["matColumnDef","outstanding"],["matColumnDef","actions"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["class","account-action-button","mat-raised-button","","color","primary",3,"matTooltip","click",4,"mifosxHasPermission"],["class","account-action-button","mat-raised-button","","color","warn",3,"matTooltip","click",4,"mifosxHasPermission"],["mat-raised-button","","color","primary",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-pencil"],["mat-raised-button","","color","warn",1,"account-action-button",3,"click","matTooltip"],[1,"fa","fa-trash"],[1,"fa","fa-dollar"],[1,"fa","fa-flag"],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"h3"),s(3),o(4,"translate"),n()(),a(5,"div",2)(6,"table",3),y(7,4),C(8,Sa,3,3,"th",5)(9,Ca,2,1,"td",6),E(),y(10,7),C(11,va,3,3,"th",5)(12,_a,2,1,"td",6),E(),y(13,8),C(14,Aa,3,3,"th",5)(15,ga,3,4,"td",6),E(),y(16,9),C(17,ba,3,3,"th",5)(18,xa,3,4,"td",6),E(),y(19,10),C(20,Ta,3,3,"th",5)(21,Da,3,6,"td",6),E(),y(22,11),C(23,ya,3,3,"th",5)(24,Ea,3,6,"td",6),E(),y(25,12),C(26,Ia,3,3,"th",5)(27,Ma,3,6,"td",6),E(),y(28,13),C(29,Pa,3,3,"th",5)(30,wa,3,6,"td",6),E(),y(31,14),C(32,Ra,3,3,"th",5)(33,qa,3,2,"td",6),E(),C(34,Ha,1,0,"tr",15)(35,ja,1,0,"tr",16),n()()()),m&2&&(t(3),l(c(4,4,"labels.heading.All Charges")),t(3),d("dataSource",r.dataSource),t(28),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns))},dependencies:[T,D,N,gt,xe,ye,De,Ee,Te,Ie,je,Me,we,Pe,Re,Xe,P,Ve],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .action-button[_ngcontent-%COMP%]{margin-left:auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .account-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%] .select-row[_ngcontent-%COMP%]:hover{cursor:pointer}"]})}}return e})();function La(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function Ua(e,p){if(e&1&&(a(0,"td",13),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.postedDate))}}function $a(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount")))}function Ga(e,p){if(e&1&&(a(0,"td",13),s(1),o(2,"currency"),n()),e&2){let i=p.$implicit,m=A();t(),S(" ",_e(2,1,i.amount,m.shareAccountData.currency.code,"symbol-narrow","1.2-2")," ")}}function za(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Reference")))}function Qa(e,p){if(e&1&&(a(0,"td",13),s(1),n()),e&2){let i=p.$implicit;t(),l(i.savingsTransactionId)}}function Ka(e,p){e&1&&(a(0,"th",12),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Status")))}function Wa(e,p){if(e&1&&(a(0,"td",13),s(1),o(2,"translate"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,"labels.status."+i.status.value))}}function Ya(e,p){e&1&&h(0,"tr",14)}function Ja(e,p){e&1&&h(0,"tr",15)}var kt=(()=>{class e{constructor(){this.route=f(B),this.displayedColumns=["transactionDate","amount","transactionReference","status"],this.route.parent.data.subscribe(i=>{this.shareAccountData=i.sharesAccountData,this.dividendsData=this.shareAccountData.dividends})}ngOnInit(){this.dataSource=new qe(this.dividendsData)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-dividends-tab"]],decls:21,vars:6,consts:[[1,"tab-container","mat-typography"],[1,"m-b-10"],[1,"mat-elevation-z1","m-b-25"],["mat-table","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","amount"],["matColumnDef","transactionReference"],["matColumnDef","status"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"h3"),s(3),o(4,"translate"),n()(),a(5,"div",2)(6,"table",3),y(7,4),C(8,La,3,3,"th",5)(9,Ua,3,3,"td",6),E(),y(10,7),C(11,$a,3,3,"th",5)(12,Ga,3,6,"td",6),E(),y(13,8),C(14,za,3,3,"th",5)(15,Qa,2,1,"td",6),E(),y(16,9),C(17,Ka,3,3,"th",5)(18,Wa,3,3,"td",6),E(),C(19,Ya,1,0,"tr",10)(20,Ja,1,0,"tr",11),n()()()),m&2&&(t(3),l(c(4,4,"labels.inputs.Dividends")),t(3),d("dataSource",r.dataSource),t(13),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns))},dependencies:[T,D,xe,ye,De,Ee,Te,Ie,Me,we,Pe,Re,Xe,Fe,P],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%}"]})}}return e})();function Xa(e,p){if(e&1&&(a(0,"mat-option",5),s(1),n()),e&2){let i=p.$implicit;d("value",i.id),t(),S(" ",i.name," ")}}var Ge=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.sharesAccountProductTemplate=new lt,this.createSharesAccountDetailsForm()}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.buildDependencies(),this.sharesAccountTemplate&&(this.productData=this.sharesAccountTemplate.productOptions,this.sharesAccountTemplate.productId&&this.sharesAccountDetailsForm.patchValue({productId:this.sharesAccountTemplate.productId,submittedDate:this.sharesAccountTemplate.timeline.submittedOnDate&&new Date(this.sharesAccountTemplate.timeline.submittedOnDate),externalId:this.sharesAccountTemplate.externalId}))}createSharesAccountDetailsForm(){this.sharesAccountDetailsForm=this.formBuilder.group({productId:["",G.required],submittedDate:["",G.required],externalId:[""]})}buildDependencies(){let i=this.sharesAccountTemplate.clientId;this.sharesAccountDetailsForm.get("productId").valueChanges.subscribe(m=>{this.sharesService.getSharesAccountTemplate(i,m).subscribe(r=>{this.sharesAccountProductTemplate.emit(r)})})}get sharesAccountDetails(){return this.sharesAccountDetailsForm.value}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-details-step"]],inputs:{sharesAccountTemplate:"sharesAccountTemplate"},outputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate"},decls:45,vars:39,consts:[["submittedOnDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],["formControlName","productId","required",""],[3,"value"],[1,"flex-48",3,"click"],["matInput","","formControlName","submittedDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","externalId"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious","","disabled",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext","",3,"disabled"],["icon","arrow-right",1,"m-l-10"]],template:function(m,r){if(m&1){let u=R();a(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),s(4),o(5,"translate"),n(),a(6,"mat-select",4),ke(7,Xa,2,2,"mat-option",5,Be),n(),a(9,"mat-error"),s(10),o(11,"translate"),o(12,"translate"),a(13,"strong"),s(14),o(15,"translate"),n()()(),a(16,"mat-form-field",6),b("click",function(){I(u);let q=F(23);return M(q.open())}),a(17,"mat-label"),s(18),o(19,"translate"),n(),h(20,"input",7)(21,"mat-datepicker-toggle",8)(22,"mat-datepicker",null,0),a(24,"mat-error"),s(25),o(26,"translate"),o(27,"translate"),a(28,"strong"),s(29),o(30,"translate"),n()()(),a(31,"mat-form-field",3)(32,"mat-label"),s(33),o(34,"translate"),n(),h(35,"input",9),n()(),a(36,"div",10)(37,"button",11),h(38,"fa-icon",12),s(39),o(40,"translate"),n(),a(41,"button",13),s(42),o(43,"translate"),h(44,"fa-icon",14),n()()()}if(m&2){let u,g=F(23);d("formGroup",r.sharesAccountDetailsForm),t(4),l(c(5,17,"labels.inputs.Product Name")),t(3),Ne(r.productData),t(3),w(" ",c(11,19,"labels.inputs.Product Name")," ",c(12,21,"labels.commons.is")," "),t(4),l(c(15,23,"labels.commons.required")),t(4),l(c(19,25,"labels.inputs.Submitted On")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",g),t(),d("for",g),t(4),w(" ",c(26,27,"labels.inputs.Submission Date")," ",c(27,29,"labels.commons.is")," "),t(4),l(c(30,31,"labels.commons.required")),t(4),l(c(34,33,"labels.inputs.External ID")),t(6),S(" ",c(40,35,"labels.buttons.Previous")," "),t(2),d("disabled",!((u=r.sharesAccountDetailsForm.get("productId"))!=null&&u.value&&((u=r.sharesAccountDetailsForm.get("submittedDate"))!=null&&u.value))),t(),S(" ",c(43,37,"labels.buttons.Next")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,Z,X,ue,he,fe,tt,et,Ce,ve,Se,N,Le,be,nt,P],encapsulation:2})}}return e})();function Za(e,p){if(e&1&&(a(0,"span",3),s(1),o(2,"currency"),n()),e&2){let i=A();t(),l(_e(2,1,i.calculateCurrenValue(),i.currency.code,"symbol-narrow","1.2-2"))}}function en(e,p){if(e&1&&(a(0,"mat-option",8),s(1),n()),e&2){let i=p.$implicit;d("value",i.id),t(),w(" ",i.accountNo," - ",i.savingsProductName," ")}}function tn(e,p){if(e&1&&(a(0,"mat-option",8),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;d("value",i.id),t(),S(" ",ae(2,2,i.value,"catalogs")," ")}}function an(e,p){if(e&1&&(a(0,"mat-option",8),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;d("value",i.id),t(),S(" ",ae(2,2,i.value,"catalogs")," ")}}var ze=(()=>{class e{constructor(){this.formBuilder=f(pe),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.isSavingsPatched=!1,this.currency=null,this.createSharesAccountTermsForm()}ngOnChanges(){this.sharesAccountProductTemplate&&(this.currency=this.sharesAccountProductTemplate.currency,this.sharesAccountTermsForm.patchValue({currencyCode:this.sharesAccountProductTemplate.currency.code,decimal:this.sharesAccountProductTemplate.currency.decimalPlaces,currencyMultiple:this.sharesAccountProductTemplate.currency.inMultiplesOf,unitPrice:this.sharesAccountProductTemplate.currentMarketPrice,savingsAccountId:""}),this.setOptions(),this.sharesAccountTemplate&&!this.isSavingsPatched&&this.sharesAccountTemplate.savingsAccountId&&(this.sharesAccountTermsForm.get("savingsAccountId").patchValue(this.sharesAccountTemplate.savingsAccountId),this.isSavingsPatched=!0))}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.sharesAccountTemplate&&this.sharesAccountTermsForm.patchValue({requestedShares:this.sharesAccountTemplate.summary.totalPendingForApprovalShares,minimumActivePeriod:this.sharesAccountTemplate.minimumActivePeriod,minimumActivePeriodFrequencyType:this.sharesAccountTemplate.minimumActivePeriod&&this.sharesAccountTemplate.minimumActivePeriodTypeEnum.id,lockinPeriodFrequency:this.sharesAccountTemplate.lockinPeriod,lockinPeriodFrequencyType:this.sharesAccountTemplate.lockinPeriod&&this.sharesAccountTemplate.lockPeriodTypeEnum.id,applicationDate:this.sharesAccountTemplate.purchasedShares[0].purchasedDate&&new Date(this.sharesAccountTemplate.purchasedShares[0].purchasedDate),allowDividendCalculationForInactiveClients:this.sharesAccountTemplate.allowDividendCalculationForInactiveClients})}createSharesAccountTermsForm(){this.sharesAccountTermsForm=this.formBuilder.group({currencyCode:[{value:"",disabled:!0}],decimal:[{value:"",disabled:!0}],requestedShares:["",G.required],unitPrice:[{value:"",disabled:!0}],currencyMultiple:[{value:"",disabled:!0}],savingsAccountId:["",G.required],minimumActivePeriod:[""],minimumActivePeriodFrequencyType:[""],lockinPeriodFrequency:[""],lockinPeriodFrequencyType:[""],applicationDate:["",G.required],allowDividendCalculationForInactiveClients:[!1]})}setOptions(){this.minimumActivePeriodFrequencyTypeData=this.sharesAccountProductTemplate.minimumActivePeriodFrequencyTypeOptions,this.lockinPeriodFrequencyTypeData=this.sharesAccountProductTemplate.lockinPeriodFrequencyTypeOptions,this.savingsAccountsData=this.sharesAccountProductTemplate.clientSavingsAccounts}get sharesAccountTerms(){return this.sharesAccountTermsForm.value}calculateCurrenValue(){return this.sharesAccountTermsForm.value.requestedShares&&this.sharesAccountProductTemplate.currentMarketPrice?this.sharesAccountProductTemplate.currentMarketPrice*this.sharesAccountTermsForm.value.requestedShares:0}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-terms-step"]],inputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate",sharesAccountTemplate:"sharesAccountTemplate"},features:[pt],decls:96,vars:75,consts:[["applicationDatePicker",""],[3,"formGroup"],[1,"layout-row-wrap","gap-2percent","responsive-column","align-start-center"],[1,"flex-48"],["matInput","","formControlName","currencyCode"],["type","number","matInput","","formControlName","unitPrice"],["type","number","matInput","","formControlName","requestedShares","required",""],["formControlName","savingsAccountId","required",""],[3,"value"],[1,"flex-48",3,"click"],["matInput","","formControlName","applicationDate","required","",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["labelPosition","before","formControlName","allowDividendCalculationForInactiveClients",1,"flex-48"],[1,"mat-h4","flex-98"],["type","number","matInput","","formControlName","minimumActivePeriod"],["formControlName","minimumActivePeriodFrequencyType"],["type","number","matInput","","formControlName","lockinPeriodFrequency"],["formControlName","lockinPeriodFrequencyType"],[1,"layout-row","align-center","gap-2percent","margin-t","responsive-column"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"]],template:function(m,r){if(m&1){let u=R();a(0,"form",1)(1,"div",2)(2,"mat-form-field",3)(3,"mat-label"),s(4),o(5,"translate"),n(),h(6,"input",4),n(),a(7,"mat-form-field",3)(8,"mat-label"),s(9),o(10,"translate"),n(),h(11,"input",5),n(),a(12,"mat-form-field",3)(13,"mat-label"),s(14),o(15,"translate"),n(),h(16,"input",6),a(17,"mat-error"),s(18),o(19,"translate"),o(20,"translate"),a(21,"strong"),s(22),o(23,"translate"),n()()(),v(24,Za,3,6,"span",3),a(25,"mat-form-field",3)(26,"mat-label"),s(27),o(28,"translate"),n(),a(29,"mat-select",7),ke(30,en,2,3,"mat-option",8,Be),n(),a(32,"mat-error"),s(33),o(34,"translate"),o(35,"translate"),a(36,"strong"),s(37),o(38,"translate"),n()()(),a(39,"mat-form-field",9),b("click",function(){I(u);let q=F(46);return M(q.open())}),a(40,"mat-label"),s(41),o(42,"translate"),n(),h(43,"input",10)(44,"mat-datepicker-toggle",11)(45,"mat-datepicker",null,0),a(47,"mat-error"),s(48),o(49,"translate"),o(50,"translate"),a(51,"strong"),s(52),o(53,"translate"),n()()(),a(54,"mat-checkbox",12),s(55),o(56,"translate"),n(),a(57,"h4",13),s(58),o(59,"translate"),n(),a(60,"mat-form-field",3)(61,"mat-label"),s(62),o(63,"translate"),n(),h(64,"input",14),n(),a(65,"mat-form-field",3)(66,"mat-label"),s(67),o(68,"translate"),n(),a(69,"mat-select",15),ke(70,tn,3,5,"mat-option",8,Be),n()(),a(72,"h4",13),s(73),o(74,"translate"),n(),a(75,"mat-form-field",3)(76,"mat-label"),s(77),o(78,"translate"),n(),h(79,"input",16),n(),a(80,"mat-form-field",3)(81,"mat-label"),s(82),o(83,"translate"),n(),a(84,"mat-select",17),ke(85,an,3,5,"mat-option",8,Be),n()()(),a(87,"div",18)(88,"button",19),h(89,"fa-icon",20),s(90),o(91,"translate"),n(),a(92,"button",21),s(93),o(94,"translate"),h(95,"fa-icon",22),n()()()}if(m&2){let u=F(46);d("formGroup",r.sharesAccountTermsForm),t(4),l(c(5,29,"labels.inputs.Currency")),t(5),l(c(10,31,"labels.inputs.Current Price")),t(5),l(c(15,33,"labels.inputs.Total Number of Shares")),t(4),w(" ",c(19,35,"labels.inputs.Total Number of Shares")," ",c(20,37,"labels.commons.is")," "),t(4),l(c(23,39,"labels.commons.required")),t(2),_(r.currency?24:-1),t(3),l(c(28,41,"labels.inputs.Default Savings Account")),t(3),Ne(r.savingsAccountsData),t(3),w(" ",c(34,43,"labels.inputs.Default Savings Account")," ",c(35,45,"labels.commons.is")," "),t(4),l(c(38,47,"labels.commons.required")),t(4),l(c(42,49,"labels.inputs.Application Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(4),w(" ",c(49,51,"labels.inputs.Application Date")," ",c(50,53,"labels.commons.is")," "),t(4),l(c(53,55,"labels.commons.required")),t(3),S(" ",c(56,57,"labels.inputs.Allow dividends for inactive clients")," "),t(3),l(c(59,59,"labels.heading.Minimum Active Period")),t(4),l(c(63,61,"labels.inputs.Frequency")),t(5),l(c(68,63,"labels.inputs.Type")),t(3),Ne(r.minimumActivePeriodFrequencyTypeData),t(3),l(c(74,65,"labels.heading.Lock-in Period")),t(4),l(c(78,67,"labels.inputs.Frequency")),t(5),l(c(83,69,"labels.inputs.Type")),t(3),Ne(r.lockinPeriodFrequencyTypeData),t(5),S(" ",c(91,71,"labels.buttons.Previous")," "),t(3),S(" ",c(94,73,"labels.buttons.Next")," ")}},dependencies:[T,D,J,re,di,oe,Y,me,se,ce,Z,X,ue,he,fe,tt,et,Ce,ve,Se,N,vi,Le,be,nt,Xe,P,Ve],styles:["h4[_ngcontent-%COMP%]{font-weight:500;margin:1em 0}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function nn(e,p){if(e&1&&(a(0,"mat-option",3),s(1),n()),e&2){let i=p.$implicit;d("value",i),t(),S(" ",i.name," ")}}function rn(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.name")))}function on(e,p){if(e&1&&(a(0,"td",23),s(1),n()),e&2){let i=p.$implicit;t(),S(" ",i.name+", "+i.currency.displaySymbol," ")}}function sn(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Type")))}function cn(e,p){if(e&1&&(a(0,"td",23),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeCalculationType.value,"catalogs")," ")}}function mn(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount")))}function pn(e,p){if(e&1){let i=R();a(0,"td",23),s(1),a(2,"button",24),b("click",function(){let r=I(i).$implicit,u=A();return M(u.editCharge(r))}),h(3,"fa-icon",25),n()()}if(e&2){let i=p.$implicit;t(),S(" ",i.amount||i.amountOrPercentage," ")}}function ln(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Collected On")))}function dn(e,p){if(e&1&&(a(0,"td",23),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeTimeType.value,"catalogs")," ")}}function un(e,p){e&1&&(a(0,"th",22),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Actions")))}function hn(e,p){if(e&1){let i=R();a(0,"td",23)(1,"button",26),b("click",function(){let r=I(i).$implicit,u=A();return M(u.deleteCharge(r))}),h(2,"fa-icon",27),n()()}}function fn(e,p){e&1&&h(0,"tr",28)}function Sn(e,p){e&1&&h(0,"tr",29)}var Qe=(()=>{class e{constructor(){this.dialog=f(He),this.translateService=f(pi),this.chargeData=[],this.chargesDataSource=[],this.pristine=!0,this.isChargesPatched=!1,this.displayedColumns=["name","chargeCalculationType","amount","chargeTimeType","action"]}ngOnInit(){this.currencyCode.valueChanges.subscribe(()=>{!this.isChargesPatched&&this.sharesAccountTemplate.charges?(this.chargesDataSource=this.sharesAccountTemplate.charges,this.isChargesPatched=!0):this.chargesDataSource=[]})}ngOnChanges(){this.sharesAccountProductTemplate&&(this.chargeData=this.sharesAccountTemplate.chargeOptions,this.chargesDataSource=this.sharesAccountProductTemplate.charges)}addCharge(i){this.chargesDataSource=this.chargesDataSource.concat([i.value]),i.value="",this.pristine=!1}editCharge(i){let m=[new Fi({controlName:"amount",label:this.translateService.instant("labels.inputs.Amount"),value:i.amount||i.amountOrPercentage,type:"number",required:!1})],r={title:this.translateService.instant("labels.heading.Edit Charge"),layout:{addButtonText:"Submit"},formfields:m};this.dialog.open(_i,{data:r}).afterClosed().subscribe(g=>{if(g.data){let q=K(H({},i),{amount:g.data.value.amount});this.chargesDataSource.splice(this.chargesDataSource.indexOf(i),1,q),this.chargesDataSource=this.chargesDataSource.concat([])}}),this.pristine=!1}deleteCharge(i){this.dialog.open(bt,{data:{deleteContext:`charge ${i.name}`}}).afterClosed().subscribe(r=>{r.delete&&(this.chargesDataSource.splice(this.chargesDataSource.indexOf(i),1),this.chargesDataSource=this.chargesDataSource.concat([]))}),this.pristine=!1}get sharesAccountCharges(){return{charges:this.chargesDataSource}}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-charges-step"]],inputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate",sharesAccountTemplate:"sharesAccountTemplate",currencyCode:"currencyCode"},features:[pt],decls:42,vars:21,consts:[["charge",""],[1,"layout-row-wrap","gap-2px","responsive-column"],[1,"flex-48"],[3,"value"],[1,"flex-48","align-center"],["type","button","mat-raised-button","","color","primary",3,"click","disabled"],["icon","plus",1,"m-r-10"],["mat-table","",1,"flex-98","mat-elevation-z1",3,"dataSource","hidden"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["matColumnDef","action"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","","matStepperNext",""],["icon","arrow-right",1,"m-l-10"],["mat-header-cell",""],["mat-cell",""],["mat-icon-button","","color","primary",3,"click"],["icon","pen"],["mat-icon-button","","color","warn",3,"click"],["icon","trash"],["mat-header-row",""],["mat-row",""]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-form-field",2)(2,"mat-label"),s(3),o(4,"translate"),n(),a(5,"mat-select",null,0),ke(7,nn,2,2,"mat-option",3,Be),o(9,"chargesFilter"),n()(),a(10,"div",4)(11,"button",5),b("click",function(){I(u);let q=F(6);return M(r.addCharge(q))}),h(12,"fa-icon",6),s(13),o(14,"translate"),n()(),a(15,"table",7),y(16,8),C(17,rn,3,3,"th",9)(18,on,2,1,"td",10),E(),y(19,11),C(20,sn,3,3,"th",9)(21,cn,3,4,"td",10),E(),y(22,12),C(23,mn,3,3,"th",9)(24,pn,4,1,"td",10),E(),y(25,13),C(26,ln,3,3,"th",9)(27,dn,3,4,"td",10),E(),y(28,14),C(29,un,3,3,"th",9)(30,hn,3,0,"td",10),E(),C(31,fn,1,0,"tr",15)(32,Sn,1,0,"tr",16),n()(),a(33,"div",17)(34,"button",18),h(35,"fa-icon",19),s(36),o(37,"translate"),n(),a(38,"button",20),s(39),o(40,"translate"),h(41,"fa-icon",21),n()()}if(m&2){let u=F(6);t(3),l(c(4,9,"labels.inputs.Charge")),t(4),Ne(oi(9,11,r.chargeData,r.chargesDataSource,r.currencyCode.value)),t(4),d("disabled",!u.value),t(2),S(" ",c(14,15,"labels.buttons.Add")," "),t(2),d("dataSource",r.chargesDataSource)("hidden",r.chargesDataSource.length===0),t(16),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns),t(4),S(" ",c(37,17,"labels.buttons.Previous")," "),t(3),S(" ",c(40,19,"labels.buttons.Next")," ")}},dependencies:[T,D,Z,X,tt,et,N,be,xe,ye,De,Ee,Te,Ie,ht,Me,we,Pe,Re,Le,nt,P,Ve,Ii],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();var Cn=e=>[e],vn=()=>["../"];function _n(e,p){if(e&1&&(a(0,"span",4),h(1,"mifosx-external-identifier",11),n()),e&2){let i=A();t(),d("externalId",L(i.sharesAccount.externalId))}}function An(e,p){e&1&&(a(0,"span",4),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Unassigned")," "))}function gn(e,p){if(e&1&&(a(0,"div",2)(1,"span",3),s(2),o(3,"translate"),n(),a(4,"span",4),s(5),o(6,"find"),o(7,"translateKey"),n()()),e&2){let i=A();t(2),l(c(3,3,"labels.inputs.Minimum Active Period")),t(3),w("",i.sharesAccount.minimumActivePeriod,"\xA0",ae(7,10,_e(6,5,i.sharesAccount.minimumActivePeriodFrequencyType,i.sharesAccountProductTemplate.minimumActivePeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function bn(e,p){if(e&1&&(a(0,"div",2)(1,"span",3),s(2),o(3,"translate"),n(),a(4,"span",4),s(5),o(6,"find"),o(7,"translateKey"),n()()),e&2){let i=A();t(2),l(c(3,3,"labels.inputs.Lock-in Period")),t(3),w("",i.sharesAccount.lockinPeriodFrequency,"\xA0",ae(7,10,_e(6,5,i.sharesAccount.lockinPeriodFrequencyType,i.sharesAccountProductTemplate.lockinPeriodFrequencyTypeOptions,"id","value"),"catalogs"))}}function xn(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.name")))}function Tn(e,p){if(e&1&&(a(0,"td",22),s(1),n()),e&2){let i=p.$implicit;t(),S(" ",i.name+", "+i.currency.displaySymbol," ")}}function Dn(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Type")))}function yn(e,p){if(e&1&&(a(0,"td",22),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeCalculationType.value,"catalogs")," ")}}function En(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Amount")))}function In(e,p){if(e&1&&(a(0,"td",22),s(1),n()),e&2){let i=p.$implicit;t(),S(" ",i.amount||i.amountOrPercentage," ")}}function Mn(e,p){e&1&&(a(0,"th",21),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Collected On")))}function Pn(e,p){if(e&1&&(a(0,"td",22),s(1),o(2,"translateKey"),n()),e&2){let i=p.$implicit;t(),S(" ",ae(2,1,i.chargeTimeType.value,"catalogs")," ")}}function wn(e,p){e&1&&h(0,"tr",23)}function Rn(e,p){e&1&&h(0,"tr",24)}function Fn(e,p){if(e&1&&(a(0,"div",5)(1,"h3",1),s(2),o(3,"translate"),n(),h(4,"mat-divider",2),a(5,"table",12),y(6,13),C(7,xn,3,3,"th",14)(8,Tn,2,1,"td",15),E(),y(9,16),C(10,Dn,3,3,"th",14)(11,yn,3,4,"td",15),E(),y(12,17),C(13,En,3,3,"th",14)(14,In,2,1,"td",15),E(),y(15,18),C(16,Mn,3,3,"th",14)(17,Pn,3,4,"td",15),E(),C(18,wn,1,0,"tr",19)(19,Rn,1,0,"tr",20),n()()),e&2){let i=A();t(2),l(c(3,4,"labels.heading.Charges")),t(3),d("dataSource",i.sharesAccount.charges),t(13),d("matHeaderRowDef",i.chargesDisplayedColumns),t(),d("matRowDefColumns",i.chargesDisplayedColumns)}}var st=(()=>{class e{constructor(){this.chargesDisplayedColumns=["name","chargeCalculationType","amount","chargeTimeType"],this.submitEvent=new lt}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-preview-step"]],inputs:{sharesAccountProductTemplate:"sharesAccountProductTemplate",sharesAccountTemplate:"sharesAccountTemplate",sharesAccountTermsForm:"sharesAccountTermsForm",sharesAccount:"sharesAccount"},outputs:{submitEvent:"submitEvent"},decls:92,vars:90,consts:[[1,"layout-row-wrap","responsive-column"],[1,"mat-h3","flex-fill"],[1,"flex-fill"],[1,"flex-40"],[1,"flex-60"],[1,"layout-row-wrap","responsive-column","flex-fill"],[1,"layout-row","responsive-column","align-center","gap-2px","margin-t"],["mat-raised-button","","matStepperPrevious",""],["icon","arrow-left",1,"m-r-10"],["mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"click"],[3,"externalId"],["mat-table","",1,"flex-fill","mat-elevation-z1",3,"dataSource"],["matColumnDef","name"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","chargeCalculationType"],["matColumnDef","amount"],["matColumnDef","chargeTimeType"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",0)(1,"h3",1),s(2),o(3,"translate"),n(),h(4,"mat-divider",2),a(5,"div",2)(6,"span",3),s(7),o(8,"translate"),n(),a(9,"span",4),s(10),o(11,"find"),n()(),a(12,"div",2)(13,"span",3),s(14),o(15,"translate"),n(),a(16,"span",4),s(17),o(18,"dateFormat"),n()(),a(19,"div",2)(20,"span",3),s(21),o(22,"translate"),n(),v(23,_n,2,2,"span",4),v(24,An,3,3,"span",4),n(),a(25,"h3",1),s(26),o(27,"translate"),n(),h(28,"mat-divider",2),a(29,"div",2)(30,"span",3),s(31),o(32,"translate"),n(),a(33,"span",4),s(34),o(35,"find"),n()(),a(36,"div",2)(37,"span",3),s(38),o(39,"translate"),n(),a(40,"span",4),s(41),o(42,"formatNumber"),n()(),a(43,"div",2)(44,"span",3),s(45),o(46,"translate"),n(),a(47,"span",4),s(48),o(49,"formatNumber"),n()(),a(50,"div",2)(51,"span",3),s(52),o(53,"translate"),n(),a(54,"span",4),s(55),o(56,"formatNumber"),n()(),a(57,"div",2)(58,"span",3),s(59),o(60,"translate"),n(),a(61,"span",4),s(62),o(63,"find"),n()(),v(64,gn,8,13,"div",2),v(65,bn,8,13,"div",2),a(66,"div",2)(67,"span",3),s(68),o(69,"translate"),n(),a(70,"span",4),s(71),o(72,"dateFormat"),n()(),a(73,"div",2)(74,"span",3),s(75),o(76,"translate"),n(),a(77,"span",4),s(78),o(79,"yesNo"),n()(),v(80,Fn,20,6,"div",5),n(),a(81,"div",6)(82,"button",7),h(83,"fa-icon",8),s(84),o(85,"translate"),n(),a(86,"button",9),s(87),o(88,"translate"),n(),a(89,"button",10),b("click",function(){return r.submitEvent.emit()}),s(90),o(91,"translate"),n()()),m&2&&(t(2),l(c(3,30,"labels.heading.Details")),t(5),l(c(8,32,"labels.inputs.Product")),t(3),l(_e(11,34,r.sharesAccount.productId,r.sharesAccountTemplate.productOptions,"id","name")),t(4),l(c(15,39,"labels.inputs.Submitted On")),t(3),l(c(18,41,r.sharesAccount.submittedDate)),t(4),l(c(22,43,"labels.inputs.External Id")),t(2),_(r.sharesAccount.externalId?23:-1),t(),_(r.sharesAccount.externalId?-1:24),t(2),l(c(27,45,"labels.heading.Terms")),t(5),l(c(32,47,"labels.inputs.Currency")),t(3),l(_e(35,49,r.sharesAccountTermsForm.get("currencyCode").value,ri(87,Cn,r.sharesAccountProductTemplate.currency),"code","displayLabel")),t(4),l(c(39,54,"labels.inputs.Total Number of Shares")),t(3),l(c(42,56,r.sharesAccount.requestedShares)),t(4),l(c(46,58,"labels.inputs.Current Price")),t(3),l(c(49,60,r.sharesAccountTermsForm.get("unitPrice").value)),t(4),l(c(53,62,"labels.inputs.Amount")),t(3),l(c(56,64,r.sharesAccount.requestedShares*r.sharesAccountTermsForm.get("unitPrice").value)),t(4),l(c(60,66,"labels.inputs.Default Savings Account")),t(3),l(_e(63,68,r.sharesAccount.savingsAccountId,r.sharesAccountProductTemplate.clientSavingsAccounts,"id","accountNo")),t(2),_(r.sharesAccount.minimumActivePeriod?64:-1),t(),_(r.sharesAccount.lockinPeriodFrequency?65:-1),t(3),l(c(69,73,"labels.inputs.Application Date")),t(3),l(c(72,75,r.sharesAccount.applicationDate)),t(4),l(c(76,77,"labels.inputs.Allow dividends for inactive clients")),t(3),l(c(79,79,r.sharesAccount.allowDividendCalculationForInactiveClients)),t(2),_(r.sharesAccount.charges.length?80:-1),t(4),S(" ",c(85,81,"labels.buttons.Previous")," "),t(2),d("routerLink",O(89,vn)),t(),S(" ",c(88,83,"labels.buttons.Cancel")," "),t(3),S(" ",c(91,85,"labels.buttons.Submit")," "))},dependencies:[T,D,W,N,Ai,It,xe,ye,De,Ee,Te,Ie,Me,we,Pe,Re,Le,be,Fe,P,Ve,Mi,rt,Pi],styles:["table[_ngcontent-%COMP%]{width:100%}.mat-elevation-z1[_ngcontent-%COMP%]{margin:1em 0 1.5em}h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%]{margin:0;font-weight:500}span[_ngcontent-%COMP%]{margin:.5em 0}mat-divider[_ngcontent-%COMP%]{margin:0 0 .5em}.margin-t[_ngcontent-%COMP%]{margin-top:1em}"]})}}return e})();function Bn(e,p){e&1&&h(0,"fa-icon",14)}function kn(e,p){e&1&&h(0,"fa-icon",14)}function Nn(e,p){e&1&&h(0,"fa-icon",15)}function On(e,p){e&1&&h(0,"fa-icon",16)}function Vn(e,p){e&1&&h(0,"fa-icon",17)}function qn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.DETAILS"))}function Hn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.TERMS"))}function jn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.CHARGES"))}function Ln(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.PREVIEW"))}function Un(e,p){if(e&1){let i=R();a(0,"mat-step",13),C(1,Ln,2,3,"ng-template",9),a(2,"mifosx-shares-account-preview-step",18),b("submitEvent",function(){I(i);let r=A();return M(r.submit())}),n()()}if(e&2){let i=A();t(2),d("sharesAccountProductTemplate",i.sharesAccountProductTemplate)("sharesAccountTemplate",i.sharesAccountTemplate)("sharesAccountTermsForm",i.sharesAccountTermsForm)("sharesAccount",i.sharesAccount)}}var Nt=(()=>{class e{constructor(){this.route=f(B),this.router=f(Q),this.dateUtils=f(ne),this.sharesService=f(k),this.settingsService=f(j),this.route.data.subscribe(i=>{this.sharesAccountTemplate=i.sharesAccountTemplate})}setTemplate(i){this.sharesAccountProductTemplate=i}get sharesAccountDetailsForm(){return this.sharesAccountDetailsStep.sharesAccountDetailsForm}get sharesAccountTermsForm(){return this.sharesAccountTermsStep.sharesAccountTermsForm}get sharesAccountFormValid(){return this.sharesAccountDetailsForm.valid&&this.sharesAccountTermsForm.valid}get sharesAccount(){return H(H(H({},this.sharesAccountDetailsStep.sharesAccountDetails),this.sharesAccountTermsStep.sharesAccountTerms),this.sharesAccountChargesStep.sharesAccountCharges)}submit(){let i=this.settingsService.language.code,m=this.settingsService.dateFormat,r=K(H({},this.sharesAccount),{clientId:this.sharesAccountTemplate.clientId,charges:this.sharesAccount.charges.map(u=>({chargeId:u.id,amount:u.amount})),applicationDate:this.dateUtils.formatDate(this.sharesAccount.applicationDate,m),submittedDate:this.dateUtils.formatDate(this.sharesAccount.submittedDate,m),unitPrice:this.sharesAccountTermsForm.get("unitPrice").value,dateFormat:m,locale:i});this.sharesService.createSharesAccount(r).subscribe(u=>{this.router.navigate(["../",u.resourceId],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-create-shares-account"]],viewQuery:function(m,r){if(m&1&&(ee(Ge,7),ee(ze,7),ee(Qe,7)),m&2){let u;te(u=ie())&&(r.sharesAccountDetailsStep=u.first),te(u=ie())&&(r.sharesAccountTermsStep=u.first),te(u=ie())&&(r.sharesAccountChargesStep=u.first)}},decls:18,vars:9,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"sharesAccountProductTemplate","sharesAccountTemplate"],[3,"sharesAccountProductTemplate"],[3,"sharesAccountProductTemplate","sharesAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","sharesAccountProductTemplate","sharesAccountTemplate","sharesAccountTermsForm","sharesAccount"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-stepper",2,0),C(3,Bn,1,0,"ng-template",3)(4,kn,1,0,"ng-template",4)(5,Nn,1,0,"ng-template",5)(6,On,1,0,"ng-template",6)(7,Vn,1,0,"ng-template",7),a(8,"mat-step",8),C(9,qn,2,3,"ng-template",9),a(10,"mifosx-shares-account-details-step",10),b("sharesAccountProductTemplate",function(q){return I(u),M(r.setTemplate(q))}),n()(),a(11,"mat-step",8),C(12,Hn,2,3,"ng-template",9),h(13,"mifosx-shares-account-terms-step",11),n(),a(14,"mat-step"),C(15,jn,2,3,"ng-template",9),h(16,"mifosx-shares-account-charges-step",12),n(),v(17,Un,3,4,"mat-step",13),n()()}m&2&&(t(),d("linear",!1),t(7),d("stepControl",r.sharesAccountDetailsForm),t(2),d("sharesAccountTemplate",r.sharesAccountTemplate),t(),d("stepControl",r.sharesAccountTermsForm),t(2),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate),t(3),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate)("sharesAccountTemplate",r.sharesAccountTemplate)("currencyCode",r.sharesAccountTermsForm.get("currencyCode")),t(),_(r.sharesAccountFormValid?17:-1))},dependencies:[T,D,Et,Dt,be,yt,Tt,Ge,ze,Qe,st,P],encapsulation:2})}}return e})();function $n(e,p){e&1&&h(0,"fa-icon",13)}function Gn(e,p){e&1&&h(0,"fa-icon",13)}function zn(e,p){e&1&&h(0,"fa-icon",14)}function Qn(e,p){e&1&&h(0,"fa-icon",15)}function Kn(e,p){e&1&&h(0,"fa-icon",16)}function Wn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.DETAILS"))}function Yn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.TERMS"))}function Jn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.CHARGES"))}function Xn(e,p){e&1&&(s(0),o(1,"translate")),e&2&&l(c(1,1,"labels.inputs.PREVIEW"))}function Zn(e,p){if(e&1){let i=R();a(0,"mat-step",12),C(1,Xn,2,3,"ng-template",9),a(2,"mifosx-shares-account-preview-step",17),b("submitEvent",function(){I(i);let r=A();return M(r.submit())}),n()()}if(e&2){let i=A();t(2),d("sharesAccountProductTemplate",i.sharesAccountProductTemplate)("sharesAccountTemplate",i.sharesAccountAndTemplate)("sharesAccountTermsForm",i.sharesAccountTermsForm)("sharesAccount",i.sharesAccount)}}var Ot=(()=>{class e{constructor(){this.route=f(B),this.router=f(Q),this.dateUtils=f(ne),this.sharesService=f(k),this.settingsService=f(j),this.route.data.subscribe(i=>{this.sharesAccountAndTemplate=i.sharesAccountAndTemplate})}setTemplate(i){this.sharesAccountProductTemplate=i}get sharesAccountDetailsForm(){return this.sharesAccountDetailsStep.sharesAccountDetailsForm}get sharesAccountTermsForm(){return this.sharesAccountTermsStep.sharesAccountTermsForm}get sharesAccountFormValidAndNotPristine(){return this.sharesAccountDetailsForm.valid&&this.sharesAccountTermsForm.valid&&(!this.sharesAccountDetailsForm.pristine||!this.sharesAccountTermsForm.pristine||!this.sharesAccountChargesStep.pristine)}get sharesAccount(){return H(H(H({},this.sharesAccountDetailsStep.sharesAccountDetails),this.sharesAccountTermsStep.sharesAccountTerms),this.sharesAccountChargesStep.sharesAccountCharges)}submit(){let i=this.settingsService.language.code,m=this.settingsService.dateFormat,r=K(H({},this.sharesAccount),{clientId:this.sharesAccountAndTemplate.clientId,charges:this.sharesAccount.charges.map(u=>({chargeId:u.id,amount:u.amount})),applicationDate:this.dateUtils.formatDate(this.sharesAccount.applicationDate,m),submittedDate:this.dateUtils.formatDate(this.sharesAccount.submittedDate,m),unitPrice:this.sharesAccountTermsForm.get("unitPrice").value,dateFormat:m,locale:i});this.sharesService.updateSharesAccount(this.sharesAccountAndTemplate.id,r).subscribe(u=>{this.router.navigate(["../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-edit-shares-account"]],viewQuery:function(m,r){if(m&1&&(ee(Ge,7),ee(ze,7),ee(Qe,7)),m&2){let u;te(u=ie())&&(r.sharesAccountDetailsStep=u.first),te(u=ie())&&(r.sharesAccountTermsStep=u.first),te(u=ie())&&(r.sharesAccountChargesStep=u.first)}},decls:18,vars:10,consts:[["shareProductStepper",""],[1,"container"],["orientation","vertical","labelPosition","bottom",1,"mat-elevation-z8",3,"linear"],["matStepperIcon","number"],["matStepperIcon","edit"],["matStepperIcon","done"],["matStepperIcon","error"],["matStepperIcon","preview"],[3,"stepControl"],["matStepLabel",""],[3,"sharesAccountProductTemplate","sharesAccountTemplate"],[3,"sharesAccountProductTemplate","sharesAccountTemplate","currencyCode"],["completed",""],["icon","pencil-alt","size","sm"],["icon","check","size","sm"],["icon","exclamation-triangle","size","lg"],["icon","eye","size","sm"],[3,"submitEvent","sharesAccountProductTemplate","sharesAccountTemplate","sharesAccountTermsForm","sharesAccount"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-stepper",2,0),C(3,$n,1,0,"ng-template",3)(4,Gn,1,0,"ng-template",4)(5,zn,1,0,"ng-template",5)(6,Qn,1,0,"ng-template",6)(7,Kn,1,0,"ng-template",7),a(8,"mat-step",8),C(9,Wn,2,3,"ng-template",9),a(10,"mifosx-shares-account-details-step",10),b("sharesAccountProductTemplate",function(q){return I(u),M(r.setTemplate(q))}),n()(),a(11,"mat-step",8),C(12,Yn,2,3,"ng-template",9),h(13,"mifosx-shares-account-terms-step",10),n(),a(14,"mat-step"),C(15,Jn,2,3,"ng-template",9),h(16,"mifosx-shares-account-charges-step",11),n(),v(17,Zn,3,4,"mat-step",12),n()()}m&2&&(t(),d("linear",!1),t(7),d("stepControl",r.sharesAccountDetailsForm),t(2),d("sharesAccountTemplate",r.sharesAccountAndTemplate),t(),d("stepControl",r.sharesAccountTermsForm),t(2),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate)("sharesAccountTemplate",r.sharesAccountAndTemplate),t(3),d("sharesAccountProductTemplate",r.sharesAccountProductTemplate)("sharesAccountTemplate",r.sharesAccountAndTemplate)("currencyCode",r.sharesAccountTermsForm.get("currencyCode")),t(),_(r.sharesAccountFormValidAndNotPristine?17:-1))},dependencies:[T,D,Et,Dt,be,yt,Tt,Ge,ze,Qe,st,P],encapsulation:2})}}return e})();var er=()=>["../../"];function tr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Approved On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var Vt=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApproveSharesAccountForm()}createApproveSharesAccountForm(){this.approveSharesAccountForm=this.formBuilder.group({approvedDate:["",G.required],note:[""]})}submit(){let i=this.approveSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.approveSharesAccountForm.value.approvedDate;i.approvedDate instanceof Date&&(i.approvedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"approve",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-approve-shares-account"]],decls:26,vars:21,consts:[["approvedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","approvedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,tr,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"textarea",7),n()()(),a(19,"mat-card-actions",8)(20,"button",9),s(21),o(22,"translate"),n(),a(23,"button",10),s(24),o(25,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.approveSharesAccountForm),t(5),l(c(8,12,"labels.inputs.Approved On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.approveSharesAccountForm.controls.approvedDate.hasError("required")?13:-1),t(3),l(c(17,14,"labels.inputs.Note")),t(4),d("routerLink",O(20,er)),t(),S(" ",c(22,16,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.approveSharesAccountForm.valid),t(),S(" ",c(25,18,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,Ze,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var ir=()=>["../../"];function ar(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Rejected On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var qt=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRejectSharesAccountForm()}createRejectSharesAccountForm(){this.rejectSharesAccountForm=this.formBuilder.group({rejectedDate:["",G.required],note:[""]})}submit(){let i=this.rejectSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.rejectSharesAccountForm.value.rejectedDate;i.rejectedDate instanceof Date&&(i.rejectedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"reject",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-reject-shares-account"]],decls:26,vars:21,consts:[["rejectedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","rejectedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,ar,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"textarea",7),n()()(),a(19,"mat-card-actions",8)(20,"button",9),s(21),o(22,"translate"),n(),a(23,"button",10),s(24),o(25,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.rejectSharesAccountForm),t(5),l(c(8,12,"labels.inputs.Rejected On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.rejectSharesAccountForm.controls.rejectedDate.hasError("required")?13:-1),t(3),l(c(17,14,"labels.inputs.Note")),t(4),d("routerLink",O(20,ir)),t(),S(" ",c(22,16,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.rejectSharesAccountForm.valid),t(),S(" ",c(25,18,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,Ze,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var nr=()=>["../../"];function rr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Closed On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var Ht=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createCloseSharesAccountForm()}createCloseSharesAccountForm(){this.closeSharesAccountForm=this.formBuilder.group({closedDate:["",G.required],note:[""]})}submit(){let i=this.closeSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.closeSharesAccountForm.value.closedDate;i.closedDate instanceof Date&&(i.closedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"close",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-close-shares-account"]],decls:26,vars:21,consts:[["closedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","closedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","formControlName","note","cdkTextareaAutosize","","cdkAutosizeMinRows","2"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,rr,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"textarea",7),n()()(),a(19,"mat-card-actions",8)(20,"button",9),s(21),o(22,"translate"),n(),a(23,"button",10),s(24),o(25,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.closeSharesAccountForm),t(5),l(c(8,12,"labels.inputs.Closed On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.closeSharesAccountForm.controls.closedDate.hasError("required")?13:-1),t(3),l(c(17,14,"labels.inputs.Note")),t(4),d("routerLink",O(20,nr)),t(),S(" ",c(22,16,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.closeSharesAccountForm.valid),t(),S(" ",c(25,18,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,Ze,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var or=()=>["../../"];function sr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Activated On Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var jt=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createActivateSharesAccountForm()}createActivateSharesAccountForm(){this.activateSharesAccountForm=this.formBuilder.group({activatedDate:["",G.required]})}submit(){let i=this.activateSharesAccountForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.activateSharesAccountForm.value.activatedDate;i.activatedDate instanceof Date&&(i.activatedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"activate",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-activate-shares-account"]],decls:20,vars:18,consts:[["activatedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"flex-fill",3,"click"],["matInput","","required","","formControlName","activatedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"mat-form-field",3),b("click",function(){I(u);let q=F(11);return M(q.open())}),a(5,"mat-label"),s(6),o(7,"translate"),n(),h(8,"input",4)(9,"mat-datepicker-toggle",5)(10,"mat-datepicker",null,0),v(12,sr,7,9,"mat-error"),n()(),a(13,"mat-card-actions",6)(14,"button",7),s(15),o(16,"translate"),n(),a(17,"button",8),s(18),o(19,"translate"),n()()()()()}if(m&2){let u=F(11);t(2),d("formGroup",r.activateSharesAccountForm),t(4),l(c(7,11,"labels.inputs.Activated On Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.activateSharesAccountForm.controls.activatedDate.hasError("required")?12:-1),t(2),d("routerLink",O(17,or)),t(),S(" ",c(16,13,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.activateSharesAccountForm.valid),t(),S(" ",c(19,15,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var cr=()=>["../../"],Lt=(()=>{class e{constructor(){this.sharesService=f(k),this.route=f(B),this.router=f(Q),this.accountId=this.route.parent.snapshot.params.shareAccountId}submit(){this.sharesService.executeSharesAccountCommand(this.accountId,"undoapproval",{}).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-undo-approval-shares-account"]],decls:15,vars:12,consts:[[1,"container"],[3,"ngSubmit"],[1,"mat-typography","confirm-text"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn"]],template:function(m,r){m&1&&(a(0,"div",0)(1,"mat-card")(2,"form",1),b("ngSubmit",function(){return r.submit()}),a(3,"mat-card-content")(4,"div")(5,"p",2),s(6),o(7,"translate"),n()()(),a(8,"mat-card-actions",3)(9,"button",4),s(10),o(11,"translate"),n(),a(12,"button",5),s(13),o(14,"translate"),n()()()()()),m&2&&(t(6),w(" ",c(7,5,"labels.text.Undo approval of shares account with ID"),": ",r.accountId," ? "),t(3),d("routerLink",O(11,cr)),t(),S(" ",c(11,7,"labels.buttons.Cancel")," "),t(3),l(c(14,9,"labels.buttons.Submit")))},dependencies:[T,D,J,Y,W,le,de,ge,N,ui,li,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}.container[_ngcontent-%COMP%] .confirm-text[_ngcontent-%COMP%]{font-size:16px;text-align:center}"]})}}return e})();var mr=()=>["../../"];function pr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Request Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}function lr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Requested Shares")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var Ut=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createApplySharesAccountForm(),this.applySharesForm.get("unitPrice").patchValue(this.sharesAccountData.currentMarketPrice||"")}createApplySharesAccountForm(){this.applySharesForm=this.formBuilder.group({requestedDate:["",G.required],requestedShares:["",G.required],unitPrice:[{value:"",disabled:!0}]})}submit(){let i=this.applySharesForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.applySharesForm.value.requestedDate;i.requestedDate instanceof Date&&(i.requestedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{unitPrice:this.applySharesForm.get("unitPrice").value,dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"applyadditionalshares",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-apply-shares"]],decls:32,vars:25,consts:[["requestedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","requestedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","requestedShares"],["matInput","","required","","formControlName","unitPrice"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","primary",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,pr,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"input",7),v(19,lr,7,9,"mat-error"),n(),a(20,"mat-form-field")(21,"mat-label"),s(22),o(23,"translate"),n(),h(24,"input",8),n()()(),a(25,"mat-card-actions",9)(26,"button",10),s(27),o(28,"translate"),n(),a(29,"button",11),s(30),o(31,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.applySharesForm),t(5),l(c(8,14,"labels.inputs.Request Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.applySharesForm.controls.requestedDate.hasError("required")?13:-1),t(3),l(c(17,16,"labels.inputs.Total No. of Shares")),t(3),_(r.applySharesForm.controls.requestedShares.hasError("required")?19:-1),t(3),l(c(23,18,"labels.inputs.Current Price")),t(4),d("routerLink",O(24,mr)),t(),S(" ",c(28,20,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.applySharesForm.valid),t(),S(" ",c(31,22,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var dr=()=>["../../"];function ur(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Request Date")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}function hr(e,p){e&1&&(a(0,"mat-error"),s(1),o(2,"translate"),o(3,"translate"),a(4,"strong"),s(5),o(6,"translate"),n()()),e&2&&(t(),w(" ",c(2,3,"labels.inputs.Requested Shares")," ",c(3,5,"labels.commons.is")," "),t(4),l(c(6,7,"labels.commons.required")))}var $t=(()=>{class e{constructor(){this.formBuilder=f(pe),this.sharesService=f(k),this.dateUtils=f(ne),this.route=f(B),this.router=f(Q),this.settingsService=f(j),this.minDate=new Date(2e3,0,1),this.maxDate=new Date,this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.maxDate=this.settingsService.businessDate,this.createRedeemSharesAccountForm(),this.redeemSharesForm.get("unitPrice").patchValue(this.sharesAccountData.currentMarketPrice||"")}createRedeemSharesAccountForm(){this.redeemSharesForm=this.formBuilder.group({requestedDate:["",G.required],requestedShares:["",G.required],unitPrice:[{value:"",disabled:!0}]})}submit(){let i=this.redeemSharesForm.value,m=this.settingsService.language.code,r=this.settingsService.dateFormat,u=this.redeemSharesForm.value.requestedDate;i.requestedDate instanceof Date&&(i.requestedDate=this.dateUtils.formatDate(u,r));let g=K(H({},i),{unitPrice:this.redeemSharesForm.get("unitPrice").value,dateFormat:r,locale:m});this.sharesService.executeSharesAccountCommand(this.accountId,"redeemshares",g).subscribe(()=>{this.router.navigate(["../../"],{relativeTo:this.route})})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-redeem-shares"]],decls:32,vars:25,consts:[["requestedDatePicker",""],[1,"container"],[3,"ngSubmit","formGroup"],[1,"layout-column"],[3,"click"],["matInput","","required","","formControlName","requestedDate",3,"min","max","matDatepicker"],["matSuffix","",3,"for"],["matInput","","required","","formControlName","requestedShares"],["matInput","","required","","formControlName","unitPrice"],[1,"layout-row","align-center","gap-5px","responsive-column"],["type","button","mat-raised-button","",3,"routerLink"],["mat-raised-button","","color","warn",3,"disabled"]],template:function(m,r){if(m&1){let u=R();a(0,"div",1)(1,"mat-card")(2,"form",2),b("ngSubmit",function(){return I(u),M(r.submit())}),a(3,"mat-card-content")(4,"div",3)(5,"mat-form-field",4),b("click",function(){I(u);let q=F(12);return M(q.open())}),a(6,"mat-label"),s(7),o(8,"translate"),n(),h(9,"input",5)(10,"mat-datepicker-toggle",6)(11,"mat-datepicker",null,0),v(13,ur,7,9,"mat-error"),n(),a(14,"mat-form-field")(15,"mat-label"),s(16),o(17,"translate"),n(),h(18,"input",7),v(19,hr,7,9,"mat-error"),n(),a(20,"mat-form-field")(21,"mat-label"),s(22),o(23,"translate"),n(),h(24,"input",8),n()()(),a(25,"mat-card-actions",9)(26,"button",10),s(27),o(28,"translate"),n(),a(29,"button",11),s(30),o(31,"translate"),n()()()()()}if(m&2){let u=F(12);t(2),d("formGroup",r.redeemSharesForm),t(5),l(c(8,14,"labels.inputs.Request Date")),t(2),d("min",r.minDate)("max",r.maxDate)("matDatepicker",u),t(),d("for",u),t(3),_(r.redeemSharesForm.controls.requestedDate.hasError("required")?13:-1),t(3),l(c(17,16,"labels.inputs.Total No. of Shares")),t(3),_(r.redeemSharesForm.controls.requestedShares.hasError("required")?19:-1),t(3),l(c(23,18,"labels.inputs.Current Price")),t(4),d("routerLink",O(24,dr)),t(),S(" ",c(28,20,"labels.buttons.Cancel")," "),t(2),d("disabled",!r.redeemSharesForm.valid),t(),S(" ",c(31,22,"labels.buttons.Submit")," ")}},dependencies:[T,D,J,re,oe,Y,me,se,ce,W,le,de,ge,Z,X,ue,he,fe,Ce,ve,Se,N,P],styles:[".container[_ngcontent-%COMP%]{max-width:37rem}"]})}}return e})();var fr=()=>({approve:!0}),Gt=(()=>{class e{constructor(){this.dialogRef=f(ft),this.data=f(St)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-approve-share-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","primary",3,"mat-dialog-close"]],template:function(m,r){m&1&&(a(0,"h1",0),s(1),o(2,"translate"),n(),a(3,"div",1)(4,"p"),s(5),o(6,"translate"),n()(),a(7,"mat-dialog-actions",2)(8,"button",3),s(9),o(10,"translate"),n(),a(11,"button",4),s(12),o(13,"translate"),n()()),m&2&&(t(),l(c(2,6,"labels.heading.Approve Share")),t(4),w("",c(6,8,"labels.text.Are you sure you want to approve share with id"),": ",r.data.shareId," ?"),t(4),l(c(10,10,"labels.buttons.Cancel")),t(2),d("mat-dialog-close",O(14,fr)),t(),S(" ",c(13,12,"labels.buttons.Submit")," "))},dependencies:[T,D,N,vt,_t,At,Ct,P],encapsulation:2})}}return e})();var Sr=["sharesTable"],Cr=()=>[10,25,50,100];function vr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function _r(e,p){if(e&1&&(a(0,"td",16),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.purchasedDate))}}function Ar(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Total Shares")))}function gr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.numberOfShares)}}function br(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Purchased/Redeemed Price")," "))}function xr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.purchasedPrice)}}function Tr(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Status")))}function Dr(e,p){if(e&1&&(a(0,"td",16),h(1,"i",18),o(2,"statusLookup"),n()),e&2){let i=p.$implicit;t(),d("ngClass",c(2,2,i.status.code))("matTooltip",i.status.value)}}function yr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Confirm Approve")))}function Er(e,p){if(e&1){let i=R();a(0,"td",16)(1,"button",19),o(2,"translate"),b("click",function(){let r=I(i).$implicit,u=A();return M(u.approve(r.id))}),h(3,"i",20),n()()}e&2&&(t(),d("matTooltip",L(c(2,2,"tooltips.Approve Share"))))}function Ir(e,p){e&1&&h(0,"tr",21)}function Mr(e,p){e&1&&h(0,"tr",22)}var zt=(()=>{class e{constructor(){this.sharesService=f(k),this.route=f(B),this.dialog=f(He),this.settingsService=f(j),this.displayedColumns=["transactionDate","totalShares","redeemedPrice","status","approve"],this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.sharesData=this.sharesAccountData.purchasedShares.filter(i=>i.status.value==="Pending Approval"),this.setShares()}setShares(){this.dataSource=new qe(this.sharesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}approve(i){this.dialog.open(Gt,{data:{shareId:i}}).afterClosed().subscribe(r=>{if(r.approve){let u=this.settingsService.language.code,g=this.settingsService.dateFormat,q={requestedShares:[{id:i}],dateFormat:g,locale:u};this.sharesService.executeSharesAccountCommand(this.accountId,"approveadditionalshares",q).subscribe(()=>{let Xt=this.sharesData.find(ei=>ei.id===i),Zt=this.sharesData.indexOf(Xt);this.sharesData.splice(Zt,1),this.dataSource.data=this.sharesData,this.sharesTableRef.renderRows()})}})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-approve-shares"]],viewQuery:function(m,r){if(m&1&&(ee(it,7),ee(at,7),ee(Sr,7)),m&2){let u;te(u=ie())&&(r.paginator=u.first),te(u=ie())&&(r.sort=u.first),te(u=ie())&&(r.sharesTableRef=u.first)}},decls:22,vars:5,consts:[["sharesTable",""],[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalShares"],["matColumnDef","redeemedPrice"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","approve"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-raised-button","","color","accent",1,"share-action-button",3,"click","matTooltip"],[1,"fa","fa-check"],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",1)(1,"div",2)(2,"table",3,0),y(4,4),C(5,vr,3,3,"th",5)(6,_r,3,3,"td",6),E(),y(7,7),C(8,Ar,3,3,"th",5)(9,gr,2,1,"td",6),E(),y(10,8),C(11,br,3,3,"th",5)(12,xr,2,1,"td",6),E(),y(13,9),C(14,Tr,3,3,"th",10)(15,Dr,3,4,"td",6),E(),y(16,11),C(17,yr,3,3,"th",5)(18,Er,4,4,"td",6),E(),C(19,Ir,1,0,"tr",12)(20,Mr,1,0,"tr",13),n(),h(21,"mat-paginator",14),n()()),m&2&&(t(2),d("dataSource",r.dataSource),t(17),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns),t(),d("pageSizeOptions",O(4,Cr)))},dependencies:[T,Je,D,N,xe,at,ye,De,Ee,xt,Te,Ie,je,Me,we,Pe,Re,it,Fe,P,ot],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] .share-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();var Pr=()=>({reject:!0}),Qt=(()=>{class e{constructor(){this.dialogRef=f(ft),this.data=f(St)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-reject-share-dialog"]],decls:14,vars:15,consts:[["mat-dialog-title",""],["mat-dialog-content",""],["align","end"],["mat-raised-button","","mat-dialog-close",""],["mat-raised-button","","color","warn",3,"mat-dialog-close"]],template:function(m,r){m&1&&(a(0,"h1",0),s(1),o(2,"translate"),n(),a(3,"div",1)(4,"p"),s(5),o(6,"translate"),n()(),a(7,"mat-dialog-actions",2)(8,"button",3),s(9),o(10,"translate"),n(),a(11,"button",4),s(12),o(13,"translate"),n()()),m&2&&(t(),l(c(2,6,"labels.heading.Reject Share")),t(4),w("",c(6,8,"labels.text.Are you sure you want to reject share with id"),": ",r.data.shareId," ?"),t(4),l(c(10,10,"labels.buttons.Cancel")),t(2),d("mat-dialog-close",O(14,Pr)),t(),S(" ",c(13,12,"labels.buttons.Submit")," "))},dependencies:[T,D,N,vt,_t,At,Ct,P],encapsulation:2})}}return e})();var wr=["sharesTable"],Rr=()=>[10,25,50,100];function Fr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Transaction Date")))}function Br(e,p){if(e&1&&(a(0,"td",16),s(1),o(2,"dateFormat"),n()),e&2){let i=p.$implicit;t(),l(c(2,1,i.purchasedDate))}}function kr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Total Shares")))}function Nr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.numberOfShares)}}function Or(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Purchased/Redeemed Price")," "))}function Vr(e,p){if(e&1&&(a(0,"td",16),s(1),n()),e&2){let i=p.$implicit;t(),l(i.purchasedPrice)}}function qr(e,p){e&1&&(a(0,"th",17),s(1),o(2,"translate"),n()),e&2&&(t(),l(c(2,1,"labels.inputs.Status")))}function Hr(e,p){if(e&1&&(a(0,"td",16),h(1,"i",18),o(2,"statusLookup"),n()),e&2){let i=p.$implicit;t(),d("ngClass",c(2,2,i.status.code))("matTooltip",i.status.value)}}function jr(e,p){e&1&&(a(0,"th",15),s(1),o(2,"translate"),n()),e&2&&(t(),S("",c(2,1,"labels.inputs.Confirm Reject"),"t"))}function Lr(e,p){if(e&1){let i=R();a(0,"td",16)(1,"button",19),o(2,"translate"),b("click",function(){let r=I(i).$implicit,u=A();return M(u.reject(r.id))}),h(3,"i",20),n()()}e&2&&(t(),d("matTooltip",L(c(2,2,"tooltips.Reject Share"))))}function Ur(e,p){e&1&&h(0,"tr",21)}function $r(e,p){e&1&&h(0,"tr",22)}var Kt=(()=>{class e{constructor(){this.sharesService=f(k),this.route=f(B),this.dialog=f(He),this.settingsService=f(j),this.displayedColumns=["transactionDate","totalShares","redeemedPrice","status","reject"],this.accountId=this.route.parent.snapshot.params.shareAccountId,this.route.data.subscribe(i=>{this.sharesAccountData=i.shareAccountActionData})}ngOnInit(){this.sharesData=this.sharesAccountData.purchasedShares.filter(i=>i.status.value==="Pending Approval"),this.setShares()}setShares(){this.dataSource=new qe(this.sharesData),this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort}reject(i){this.dialog.open(Qt,{data:{shareId:i}}).afterClosed().subscribe(r=>{if(r.reject){let u=this.settingsService.language.code,g=this.settingsService.dateFormat,q={requestedShares:[{id:i}],dateFormat:g,locale:u};this.sharesService.executeSharesAccountCommand(this.accountId,"rejectadditionalshares",q).subscribe(()=>{let Xt=this.sharesData.find(ei=>ei.id===i),Zt=this.sharesData.indexOf(Xt);this.sharesData.splice(Zt,1),this.dataSource.data=this.sharesData,this.sharesTableRef.renderRows()})}})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-reject-shares"]],viewQuery:function(m,r){if(m&1&&(ee(it,7),ee(at,7),ee(wr,7)),m&2){let u;te(u=ie())&&(r.paginator=u.first),te(u=ie())&&(r.sort=u.first),te(u=ie())&&(r.sharesTableRef=u.first)}},decls:22,vars:5,consts:[["sharesTable",""],[1,"container"],[1,"mat-elevation-z8"],["mat-table","","matSort","",3,"dataSource"],["matColumnDef","transactionDate"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","totalShares"],["matColumnDef","redeemedPrice"],["matColumnDef","status"],["mat-header-cell","",4,"matHeaderCellDef"],["matColumnDef","reject"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["showFirstLastButtons","",3,"pageSizeOptions"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],[1,"fa","fa-stop",3,"ngClass","matTooltip"],["mat-raised-button","","color","warn",1,"share-action-button",3,"click","matTooltip"],[1,"fa","fa-times"],["mat-header-row",""],["mat-row",""]],template:function(m,r){m&1&&(a(0,"div",1)(1,"div",2)(2,"table",3,0),y(4,4),C(5,Fr,3,3,"th",5)(6,Br,3,3,"td",6),E(),y(7,7),C(8,kr,3,3,"th",5)(9,Nr,2,1,"td",6),E(),y(10,8),C(11,Or,3,3,"th",5)(12,Vr,2,1,"td",6),E(),y(13,9),C(14,qr,3,3,"th",10)(15,Hr,3,4,"td",6),E(),y(16,11),C(17,jr,3,3,"th",5)(18,Lr,4,4,"td",6),E(),C(19,Ur,1,0,"tr",12)(20,$r,1,0,"tr",13),n(),h(21,"mat-paginator",14),n()()),m&2&&(t(2),d("dataSource",r.dataSource),t(17),d("matHeaderRowDef",r.displayedColumns),t(),d("matRowDefColumns",r.displayedColumns),t(),d("pageSizeOptions",O(4,Rr)))},dependencies:[T,Je,D,N,xe,at,ye,De,Ee,xt,Te,Ie,je,Me,we,Pe,Re,it,Fe,P,ot],styles:["table[_ngcontent-%COMP%]{width:100%}table[_ngcontent-%COMP%] i[_ngcontent-%COMP%]:hover{cursor:pointer}table[_ngcontent-%COMP%] .share-action-button[_ngcontent-%COMP%]{min-width:26px;padding:0 6px;margin:4px;line-height:25px}"]})}}return e})();function Gr(e,p){e&1&&h(0,"mifosx-approve-shares-account")}function zr(e,p){e&1&&h(0,"mifosx-reject-shares-account")}function Qr(e,p){e&1&&h(0,"mifosx-close-shares-account")}function Kr(e,p){e&1&&h(0,"mifosx-activate-shares-account")}function Wr(e,p){e&1&&h(0,"mifosx-undo-approval-shares-account")}function Yr(e,p){e&1&&h(0,"mifosx-apply-shares")}function Jr(e,p){e&1&&h(0,"mifosx-redeem-shares")}function Xr(e,p){e&1&&h(0,"mifosx-approve-shares")}function Zr(e,p){e&1&&h(0,"mifosx-reject-shares")}var Wt=(()=>{class e{constructor(){this.route=f(B),this.actions={Approve:!1,Reject:!1,Close:!1,Activate:!1,"Undo Approval":!1,"Apply Additional Shares":!1,"Redeem Shares":!1,"Approve Additional Shares":!1,"Reject Additional Shares":!1};let i=this.route.snapshot.params.name;i&&i in this.actions&&(this.actions[i]=!0)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-shares-account-actions"]],decls:9,vars:9,template:function(m,r){m&1&&(v(0,Gr,1,0,"mifosx-approve-shares-account"),v(1,zr,1,0,"mifosx-reject-shares-account"),v(2,Qr,1,0,"mifosx-close-shares-account"),v(3,Kr,1,0,"mifosx-activate-shares-account"),v(4,Wr,1,0,"mifosx-undo-approval-shares-account"),v(5,Yr,1,0,"mifosx-apply-shares"),v(6,Jr,1,0,"mifosx-redeem-shares"),v(7,Xr,1,0,"mifosx-approve-shares"),v(8,Zr,1,0,"mifosx-reject-shares")),m&2&&(_(r.actions.Approve?0:-1),t(),_(r.actions.Reject?1:-1),t(),_(r.actions.Close?2:-1),t(),_(r.actions.Activate?3:-1),t(),_(r.actions["Undo Approval"]?4:-1),t(),_(r.actions["Apply Additional Shares"]?5:-1),t(),_(r.actions["Redeem Shares"]?6:-1),t(),_(r.actions["Approve Additional Shares"]?7:-1),t(),_(r.actions["Reject Additional Shares"]?8:-1))},dependencies:[T,D,Vt,qt,Ht,jt,Lt,Ut,$t,zt,Kt],encapsulation:2})}}return e})();var Yt=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.paramMap.get("shareAccountId")||i.parent.paramMap.get("shareAccountId");return this.sharesService.getSharesAccountData(m,!1)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();var ii=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.paramMap.get("name"),r=i.paramMap.get("shareAccountId")||i.parent.parent.paramMap.get("shareAccountId");switch(m){case"Apply Additional Shares":case"Redeem Shares":case"Approve Additional Shares":case"Reject Additional Shares":return this.sharesService.getSharesAccountData(r,!0);default:return}}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();var ai=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.parent.parent.paramMap.get("clientId");return this.sharesService.getSharesAccountTemplate(m)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();var ni=(()=>{class e{constructor(){this.sharesService=f(k)}resolve(i){let m=i.paramMap.get("shareAccountId");return this.sharesService.getSharesAccountData(m,!0)}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275prov=Oe({token:e,factory:e.\u0275fac})}}return e})();function eo(e,p){if(e&1&&(a(0,"td"),s(1),o(2,"dateFormat"),n()),e&2){let i=A();t(),S(" ",c(2,1,i.sharesAccountData.timeline.activatedDate)," ")}}function to(e,p){e&1&&(a(0,"td"),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.text.Not Activated")," "))}function io(e,p){if(e&1&&(a(0,"td"),h(1,"mifosx-external-identifier",5),n()),e&2){let i=A();t(),d("externalId",L(i.sharesAccountData.externalId))}}function ao(e,p){e&1&&(a(0,"td"),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Unassigned")," "))}function no(e,p){if(e&1&&(a(0,"td"),h(1,"mifosx-account-number",6),n()),e&2){let i=A();t(),d("clientId",L(i.sharesAccountData.clientId))("accountId",L(i.sharesAccountData.savingsAccountId))("accountNo",L(i.sharesAccountData.savingsAccountNumber))}}function ro(e,p){e&1&&(a(0,"td"),s(1),o(2,"translate"),n()),e&2&&(t(),S(" ",c(2,1,"labels.inputs.Unassigned")," "))}var Jt=(()=>{class e{constructor(){this.route=f(B),this.route.data.subscribe(i=>{this.sharesAccountData=i.sharesAccountData})}static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275cmp=x({type:e,selectors:[["mifosx-general-tab"]],decls:52,vars:38,consts:[[1,"tab-container","mat-typography"],[1,"shares-account-tables","layout-row","gap-2percent"],[1,"flex-49"],[1,"table-headers"],[1,"r-amount"],[3,"externalId"],["accountType","2",3,"clientId","accountId","accountNo"]],template:function(m,r){m&1&&(a(0,"div",0)(1,"div",1)(2,"div",2)(3,"h4",3),s(4),o(5,"translate"),n(),a(6,"table")(7,"tbody")(8,"tr")(9,"td"),s(10),o(11,"translate"),n(),v(12,eo,3,3,"td"),v(13,to,3,3,"td"),n(),a(14,"tr")(15,"td"),s(16),o(17,"translate"),n(),a(18,"td"),s(19),n()(),a(20,"tr")(21,"td"),s(22),o(23,"translate"),n(),v(24,io,2,2,"td"),v(25,ao,3,3,"td"),n(),a(26,"tr")(27,"td"),s(28),o(29,"translate"),n(),v(30,no,2,6,"td"),v(31,ro,3,3,"td"),n()()()(),a(32,"div",2)(33,"h4",3),s(34),o(35,"translate"),n(),a(36,"table")(37,"tbody")(38,"tr")(39,"td"),s(40),o(41,"translate"),n(),a(42,"td",4),s(43),o(44,"formatNumber"),n()(),a(45,"tr")(46,"td"),s(47),o(48,"translate"),n(),a(49,"td",4),s(50),o(51,"formatNumber"),n()()()()()()()),m&2&&(t(4),l(c(5,18,"labels.heading.Shares Details")),t(6),l(c(11,20,"labels.inputs.Activated On")),t(2),_(r.sharesAccountData.timeline.activatedDate?12:-1),t(),_(r.sharesAccountData.timeline.activatedDate?-1:13),t(3),l(c(17,22,"labels.inputs.Currency")),t(3),w("",r.sharesAccountData.currency.name," [",r.sharesAccountData.currency.code,"]"),t(3),l(c(23,24,"labels.inputs.External Id")),t(2),_(r.sharesAccountData.externalId?24:-1),t(),_(r.sharesAccountData.externalId?-1:25),t(3),l(c(29,26,"labels.inputs.Linked Savings Account(Dividend Posting)")),t(2),_(r.sharesAccountData.savingsAccountNumber?30:-1),t(),_(r.sharesAccountData.savingsAccountNumber?-1:31),t(3),l(c(35,28,"labels.heading.Account Summary")),t(6),l(c(41,30,"labels.inputs.Pending for Approval Shares")),t(3),l(c(44,32,r.sharesAccountData.summary.totalPendingForApprovalShares)),t(4),l(c(48,34,"labels.inputs.Approved Shares")),t(3),l(c(51,36,r.sharesAccountData.summary.totalApprovedShares)))},dependencies:[T,D,It,Mt,Fe,P,rt],styles:[".tab-container[_ngcontent-%COMP%]{padding:1%;margin:1%}.tab-container[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:1% auto}.tab-container[_ngcontent-%COMP%] .performance-history-container[_ngcontent-%COMP%]{border:1px solid;padding:1%;margin-bottom:20px}.tab-container[_ngcontent-%COMP%] table[_ngcontent-%COMP%]{width:100%;margin-bottom:20px}span[_ngcontent-%COMP%]{margin:.5em 0}"]})}}return e})();var oo=[{path:"",data:{title:"Shares",breadcrumb:"Shares",routeParamBreadcrumb:!1,addBreadcrumbLink:!1},children:[{path:"create",data:{title:"Create Shares Account",breadcrumb:"Create Shares Account"},component:Nt,resolve:{sharesAccountTemplate:ai}},{path:":shareAccountId",data:{title:"Shares Account View",routeParamBreadcrumb:"shareAccountId"},children:[{path:"",component:Rt,resolve:{sharesAccountData:Yt},children:[{path:"",redirectTo:"general",pathMatch:"full"},{path:"general",component:Jt,data:{title:"Shares Account General",breadcrumb:"General",routeParamBreadcrumb:!1},resolve:{sharesAccountData:Yt}},{path:"transactions",component:Ft,data:{title:"Shares Account Transactions",breadcrumb:"Transactions",routeParamBreadcrumb:!1}},{path:"charges",component:Bt,data:{title:"Shares Account Charges",breadcrumb:"Charges",routeParamBreadcrumb:!1}},{path:"dividends",component:kt,data:{title:"Shares Account Dividends",breadcrumb:"Dividends",routeParamBreadcrumb:!1}}]},{path:"edit",data:{title:"Edit Shares Account",breadcrumb:"Edit",routeParamBreadcrumb:!1},component:Ot,resolve:{sharesAccountAndTemplate:ni}},{path:"actions/:name",data:{title:"Shares Account Actions",breadcrumb:"Actions",routeParamBreadcrumb:"name"},component:Wt,resolve:{shareAccountActionData:ii}}]}]}],Vi=(()=>{class e{static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=mt({providers:[Yt,ai,ni,ii],imports:[ti.forChild(oo),ti]})}}return e})();var O0=(()=>{class e{static{this.\u0275fac=function(m){return new(m||e)}}static{this.\u0275mod=dt({type:e})}static{this.\u0275inj=mt({imports:[ki,wi,Ri,Vi,Rt,Ft,kt,Bt,Nt,Ge,ze,Qe,st,Ot,Wt,Vt,qt,Ht,jt,Lt,Ut,$t,zt,Gt,Kt,Qt,Jt]})}}return e})();export{O0 as SharesModule};